diff options
author | AlexSm <alex@ydb.tech> | 2025-03-12 15:41:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-12 14:41:22 +0000 |
commit | 266a61832d9cc260665eebcef16d91eb91be2e68 (patch) | |
tree | dab0f218dc27570161b03621d9349a4887240bce | |
parent | b898a462078c02b1681718a72cece243beaa07c4 (diff) | |
download | ydb-266a61832d9cc260665eebcef16d91eb91be2e68.tar.gz |
build: refresh Embedded UI (v8.14.0) (#15638)
Co-authored-by: artemmufazalov <artemmufazalov@users.noreply.github.com>
69 files changed, 125 insertions, 125 deletions
diff --git a/ydb/core/viewer/monitoring/asset-manifest.json b/ydb/core/viewer/monitoring/asset-manifest.json index 0e07c0cc3b..3c204bc5b3 100644 --- a/ydb/core/viewer/monitoring/asset-manifest.json +++ b/ydb/core/viewer/monitoring/asset-manifest.json @@ -1,13 +1,7 @@ { "files": { - "main.css": "./static/css/main.bc1b7571.css", - "main.js": "./static/js/main.9d6586d0.js", - "static/js/7329.514640a4.chunk.js": "./static/js/7329.514640a4.chunk.js", - "static/js/3238.a9505f7f.chunk.js": "./static/js/3238.a9505f7f.chunk.js", - "static/js/3872.a25d87b5.chunk.js": "./static/js/3872.a25d87b5.chunk.js", - "static/js/1299.aaedb42e.chunk.js": "./static/js/1299.aaedb42e.chunk.js", - "static/js/5875.f8a190bf.chunk.js": "./static/js/5875.f8a190bf.chunk.js", - "static/js/6990.70257b9b.chunk.js": "./static/js/6990.70257b9b.chunk.js", + "main.css": "./static/css/main.8f03af14.css", + "main.js": "./static/js/main.806ca619.js", "static/js/9222.a1913f85.chunk.js": "./static/js/9222.a1913f85.chunk.js", "static/js/9243.cb95c73b.chunk.js": "./static/js/9243.cb95c73b.chunk.js", "static/js/6881.7e6434c9.chunk.js": "./static/js/6881.7e6434c9.chunk.js", @@ -152,25 +146,31 @@ "static/js/221.b740df48.chunk.js": "./static/js/221.b740df48.chunk.js", "static/js/6879.2965a366.chunk.js": "./static/js/6879.2965a366.chunk.js", "static/css/5652.261c3a7a.chunk.css": "./static/css/5652.261c3a7a.chunk.css", - "static/js/5652.6c4f054d.chunk.js": "./static/js/5652.6c4f054d.chunk.js", - "static/css/3456.a5760e03.chunk.css": "./static/css/3456.a5760e03.chunk.css", - "static/js/3456.72251ae0.chunk.js": "./static/js/3456.72251ae0.chunk.js", - "static/css/4905.028ad14b.chunk.css": "./static/css/4905.028ad14b.chunk.css", - "static/js/4905.8121426d.chunk.js": "./static/js/4905.8121426d.chunk.js", - "static/css/7145.90fbb646.chunk.css": "./static/css/7145.90fbb646.chunk.css", - "static/js/7145.7676c06d.chunk.js": "./static/js/7145.7676c06d.chunk.js", - "static/css/8155.fd13e90a.chunk.css": "./static/css/8155.fd13e90a.chunk.css", - "static/js/8155.654c40b5.chunk.js": "./static/js/8155.654c40b5.chunk.js", + "static/js/5652.40b9a7d3.chunk.js": "./static/js/5652.40b9a7d3.chunk.js", + "static/css/431.3826ea2f.chunk.css": "./static/css/431.3826ea2f.chunk.css", + "static/js/431.f23349ec.chunk.js": "./static/js/431.f23349ec.chunk.js", + "static/css/8393.09a78946.chunk.css": "./static/css/8393.09a78946.chunk.css", + "static/js/8393.2e643149.chunk.js": "./static/js/8393.2e643149.chunk.js", + "static/css/684.a4d29f42.chunk.css": "./static/css/684.a4d29f42.chunk.css", + "static/js/684.9346e985.chunk.js": "./static/js/684.9346e985.chunk.js", + "static/css/6030.05f92b81.chunk.css": "./static/css/6030.05f92b81.chunk.css", + "static/js/6030.b30fca36.chunk.js": "./static/js/6030.b30fca36.chunk.js", "static/css/3812.440ff245.chunk.css": "./static/css/3812.440ff245.chunk.css", "static/js/3812.368eb751.chunk.js": "./static/js/3812.368eb751.chunk.js", - "static/css/535.c6fb8cd9.chunk.css": "./static/css/535.c6fb8cd9.chunk.css", - "static/js/535.688ceefb.chunk.js": "./static/js/535.688ceefb.chunk.js", + "static/css/9393.c6fb8cd9.chunk.css": "./static/css/9393.c6fb8cd9.chunk.css", + "static/js/9393.b0a1bf0a.chunk.js": "./static/js/9393.b0a1bf0a.chunk.js", "static/css/3779.66c0ef83.chunk.css": "./static/css/3779.66c0ef83.chunk.css", - "static/js/3779.31972bdb.chunk.js": "./static/js/3779.31972bdb.chunk.js", + "static/js/3779.1d869a05.chunk.js": "./static/js/3779.1d869a05.chunk.js", + "static/js/7329.514640a4.chunk.js": "./static/js/7329.514640a4.chunk.js", + "static/js/3238.a9505f7f.chunk.js": "./static/js/3238.a9505f7f.chunk.js", + "static/js/3872.a25d87b5.chunk.js": "./static/js/3872.a25d87b5.chunk.js", + "static/js/1299.aaedb42e.chunk.js": "./static/js/1299.aaedb42e.chunk.js", + "static/js/5875.f8a190bf.chunk.js": "./static/js/5875.f8a190bf.chunk.js", + "static/js/6990.70257b9b.chunk.js": "./static/js/6990.70257b9b.chunk.js", "static/css/5438.615bd68a.chunk.css": "./static/css/5438.615bd68a.chunk.css", - "static/js/5438.179dc201.chunk.js": "./static/js/5438.179dc201.chunk.js", + "static/js/5438.91fe1c76.chunk.js": "./static/js/5438.91fe1c76.chunk.js", "static/css/99.7cffb936.chunk.css": "./static/css/99.7cffb936.chunk.css", - "static/js/99.dd803d0d.chunk.js": "./static/js/99.dd803d0d.chunk.js", + "static/js/99.73d10ff1.chunk.js": "./static/js/99.73d10ff1.chunk.js", "static/js/2308.9e3a980c.chunk.js": "./static/js/2308.9e3a980c.chunk.js", "static/js/245.041a06df.chunk.js": "./static/js/245.041a06df.chunk.js", "static/css/8593.95df9723.chunk.css": "./static/css/8593.95df9723.chunk.css", @@ -205,7 +205,7 @@ "static/js/8821.96eeccd6.chunk.js": "./static/js/8821.96eeccd6.chunk.js", "static/js/4678.4e2f4af4.chunk.js": "./static/js/4678.4e2f4af4.chunk.js", "static/js/9176.3f08336f.chunk.js": "./static/js/9176.3f08336f.chunk.js", - "static/js/2726.e753cb7c.chunk.js": "./static/js/2726.e753cb7c.chunk.js", + "static/js/2726.abc3a0c2.chunk.js": "./static/js/2726.abc3a0c2.chunk.js", "static/js/6447.2c0d9bda.chunk.js": "./static/js/6447.2c0d9bda.chunk.js", "static/js/7642.39707d60.chunk.js": "./static/js/7642.39707d60.chunk.js", "static/js/2350.a7af0a2e.chunk.js": "./static/js/2350.a7af0a2e.chunk.js", @@ -264,21 +264,21 @@ "static/js/6397.b8cf6fae.chunk.js": "./static/js/6397.b8cf6fae.chunk.js", "static/js/5475.20ce4f75.chunk.js": "./static/js/5475.20ce4f75.chunk.js", "static/js/9507.14872b99.chunk.js": "./static/js/9507.14872b99.chunk.js", - "static/css/3940.0971684f.chunk.css": "./static/css/3940.0971684f.chunk.css", - "static/js/3940.f5079e40.chunk.js": "./static/js/3940.f5079e40.chunk.js", - "static/js/4130.e9433987.chunk.js": "./static/js/4130.e9433987.chunk.js", - "static/js/4872.2eea7e0a.chunk.js": "./static/js/4872.2eea7e0a.chunk.js", - "static/js/7341.6e678529.chunk.js": "./static/js/7341.6e678529.chunk.js", - "static/js/6820.73ff230e.chunk.js": "./static/js/6820.73ff230e.chunk.js", - "static/css/114.1e565ac5.chunk.css": "./static/css/114.1e565ac5.chunk.css", - "static/js/114.7d7ab57f.chunk.js": "./static/js/114.7d7ab57f.chunk.js", - "static/js/1836.f49bfd4f.chunk.js": "./static/js/1836.f49bfd4f.chunk.js", - "static/js/856.78147a4f.chunk.js": "./static/js/856.78147a4f.chunk.js", - "static/js/8452.551c16c8.chunk.js": "./static/js/8452.551c16c8.chunk.js", + "static/css/9802.d30d0ff3.chunk.css": "./static/css/9802.d30d0ff3.chunk.css", + "static/js/9802.b15025e5.chunk.js": "./static/js/9802.b15025e5.chunk.js", + "static/js/4130.4d4b9fad.chunk.js": "./static/js/4130.4d4b9fad.chunk.js", + "static/js/4872.bbf7ab34.chunk.js": "./static/js/4872.bbf7ab34.chunk.js", + "static/js/9172.f332051f.chunk.js": "./static/js/9172.f332051f.chunk.js", + "static/js/6820.bff2520f.chunk.js": "./static/js/6820.bff2520f.chunk.js", + "static/css/2031.1e565ac5.chunk.css": "./static/css/2031.1e565ac5.chunk.css", + "static/js/2031.d8f098f9.chunk.js": "./static/js/2031.d8f098f9.chunk.js", + "static/js/1836.1a1c6d4b.chunk.js": "./static/js/1836.1a1c6d4b.chunk.js", + "static/js/856.36f195a5.chunk.js": "./static/js/856.36f195a5.chunk.js", + "static/js/8452.3bfa9018.chunk.js": "./static/js/8452.3bfa9018.chunk.js", "static/css/9796.828f7385.chunk.css": "./static/css/9796.828f7385.chunk.css", - "static/js/9796.47d2388f.chunk.js": "./static/js/9796.47d2388f.chunk.js", - "static/js/5168.5c3dfc04.chunk.js": "./static/js/5168.5c3dfc04.chunk.js", - "static/js/1434.b8423300.chunk.js": "./static/js/1434.b8423300.chunk.js", + "static/js/9796.23c68f38.chunk.js": "./static/js/9796.23c68f38.chunk.js", + "static/js/1329.d6e31925.chunk.js": "./static/js/1329.d6e31925.chunk.js", + "static/js/9300.89daa9ec.chunk.js": "./static/js/9300.89daa9ec.chunk.js", "ts.worker.js": "./ts.worker.js", "css.worker.js": "./css.worker.js", "html.worker.js": "./html.worker.js", @@ -291,7 +291,7 @@ "index.html": "./index.html" }, "entrypoints": [ - "static/css/main.bc1b7571.css", - "static/js/main.9d6586d0.js" + "static/css/main.8f03af14.css", + "static/js/main.806ca619.js" ] }
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/css.worker.js b/ydb/core/viewer/monitoring/css.worker.js index f27300c9c0..ee79810452 100644 --- a/ydb/core/viewer/monitoring/css.worker.js +++ b/ydb/core/viewer/monitoring/css.worker.js @@ -1,2 +1,2 @@ /*! For license information please see css.worker.js.LICENSE.txt */ -(()=>{var e={9861:(e,t,n)=>{"use strict";function i(e,t,n=(e,t)=>e===t){if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(let i=0,r=e.length;i<r;i++)if(!n(e[i],t[i]))return!1;return!0}function*r(e,t){let n,i;for(const r of e)void 0!==i&&t(i,r)?n.push(r):(n&&(yield n),n=[r]),i=r;n&&(yield n)}function s(e,t){for(let n=0;n<=e.length;n++)t(0===n?void 0:e[n-1],n===e.length?void 0:e[n])}function o(e,t){for(let n=0;n<e.length;n++)t(0===n?void 0:e[n-1],e[n],n+1===e.length?void 0:e[n+1])}function a(e,t=e=>e){const n=new Set;return e.filter((e=>{const i=t(e);return!n.has(i)&&(n.add(i),!0)}))}function l(e,t){return e.length>0?e[0]:t}function c(e,t,n){const i=e.slice(0,t),r=e.slice(t);return i.concat(n,r)}function h(e,t){for(const n of t)e.push(n)}var d;function u(e,t){return(n,i)=>t(e(n),e(i))}n.d(t,{E4:()=>h,Fy:()=>l,Hw:()=>m,U9:()=>p,VE:()=>u,aI:()=>i,c1:()=>g,dM:()=>a,j3:()=>f,kj:()=>o,n:()=>r,nK:()=>c,pN:()=>s}),function(e){e.isLessThan=function(e){return e<0},e.isLessThanOrEqual=function(e){return e<=0},e.isGreaterThan=function(e){return e>0},e.isNeitherLessOrGreaterThan=function(e){return 0===e},e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0}(d||(d={}));const p=(e,t)=>e-t;function m(e){return(t,n)=>-e(t,n)}class f{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t<this.items.length&&e(this.items[t]);)t++;const n=t===this.firstIdx?null:this.items.slice(this.firstIdx,t);return this.firstIdx=t,n}takeFromEndWhile(e){let t=this.lastIdx;for(;t>=0&&e(this.items[t]);)t--;const n=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,n}peek(){if(0!==this.length)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class g{static{this.empty=new g((e=>{}))}constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate((t=>(e.push(t),!0))),e}filter(e){return new g((t=>this.iterate((n=>!e(n)||t(n)))))}map(e){return new g((t=>this.iterate((n=>t(e(n))))))}findLast(e){let t;return this.iterate((n=>(e(n)&&(t=n),!0))),t}findLastMaxBy(e){let t,n=!0;return this.iterate((i=>((n||d.isGreaterThan(e(i,t)))&&(n=!1,t=i),!0))),t}}},6041:(e,t,n)=>{"use strict";function i(e,t){const n=function(e,t,n=e.length-1){for(let i=n;i>=0;i--){if(t(e[i]))return i}return-1}(e,t);if(-1!==n)return e[n]}function r(e,t){const n=s(e,t);return-1===n?void 0:e[n]}function s(e,t,n=0,i=e.length){let r=n,s=i;for(;r<s;){const n=Math.floor((r+s)/2);t(e[n])?r=n+1:s=n}return r-1}function o(e,t){const n=a(e,t);return n===e.length?void 0:e[n]}function a(e,t,n=0,i=e.length){let r=n,s=i;for(;r<s;){const n=Math.floor((r+s)/2);t(e[n])?s=n:r=n+1}return r}n.d(t,{Uk:()=>i,XP:()=>o,hw:()=>a,iM:()=>s,lx:()=>r,vJ:()=>l});class l{static{this.assertInvariants=!1}constructor(e){this._array=e,this._findLastMonotonousLastIdx=0}findLastMonotonous(e){if(l.assertInvariants){if(this._prevFindLastPredicate)for(const t of this._array)if(this._prevFindLastPredicate(t)&&!e(t))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.");this._prevFindLastPredicate=e}const t=s(this._array,e,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=t+1,-1===t?void 0:this._array[t]}}},6782:(e,t,n)=>{"use strict";n.d(t,{Ft:()=>o,Xo:()=>a,ok:()=>r,xb:()=>s});var i=n(4383);function r(e,t){if(!e)throw new Error(t?`Assertion failed (${t})`:"Assertion Failed")}function s(e,t="Unreachable"){throw new Error(t)}function o(e){e()||(e(),(0,i.dz)(new i.D7("Assertion Failed")))}function a(e,t){let n=0;for(;n<e.length-1;){if(!t(e[n],e[n+1]))return!1;n++}return!0}},1940:(e,t,n)=>{"use strict";n.d(t,{vb:()=>l,uC:()=>c,Qg:()=>a,$6:()=>h});n(8447);var i=n(4383),r=n(1234),s=n(1484),o=n(8067);Symbol("MicrotaskDelay");function a(e){return!!e&&"function"===typeof e.then}class l{constructor(){this.disposable=void 0,this.isDisposed=!1}cancel(){this.disposable?.dispose(),this.disposable=void 0}cancelAndSet(e,t,n=globalThis){if(this.isDisposed)throw new i.D7("Calling 'cancelAndSet' on a disposed IntervalTimer");this.cancel();const r=n.setInterval((()=>{e()}),t);this.disposable=(0,s.s)((()=>{n.clearInterval(r),this.disposable=void 0}))}dispose(){this.cancel(),this.isDisposed=!0}}class c{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return-1!==this.timeoutToken}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner?.()}}let h,d;d="function"!==typeof globalThis.requestIdleCallback||"function"!==typeof globalThis.cancelIdleCallback?(e,t)=>{(0,o._p)((()=>{if(n)return;const e=Date.now()+15,i={didTimeout:!0,timeRemaining:()=>Math.max(0,e-Date.now())};t(Object.freeze(i))}));let n=!1;return{dispose(){n||(n=!0)}}}:(e,t,n)=>{const i=e.requestIdleCallback(t,"number"===typeof n?{timeout:n}:void 0);let r=!1;return{dispose(){r||(r=!0,e.cancelIdleCallback(i))}}},h=e=>d(globalThis,e);var u;!function(e){e.settled=async function(e){let t;const n=await Promise.all(e.map((e=>e.then((e=>e),(e=>{t||(t=e)})))));if("undefined"!==typeof t)throw t;return n},e.withAsyncBody=function(e){return new Promise((async(t,n)=>{try{await e(t,n)}catch(i){n(i)}}))}}(u||(u={}));class p{static fromArray(e){return new p((t=>{t.emitMany(e)}))}static fromPromise(e){return new p((async t=>{t.emitMany(await e)}))}static fromPromises(e){return new p((async t=>{await Promise.all(e.map((async e=>t.emitOne(await e))))}))}static merge(e){return new p((async t=>{await Promise.all(e.map((async e=>{for await(const n of e)t.emitOne(n)})))}))}static{this.EMPTY=p.fromArray([])}constructor(e,t){this._state=0,this._results=[],this._error=null,this._onReturn=t,this._onStateChanged=new r.vl,queueMicrotask((async()=>{const t={emitOne:e=>this.emitOne(e),emitMany:e=>this.emitMany(e),reject:e=>this.reject(e)};try{await Promise.resolve(e(t)),this.resolve()}catch(n){this.reject(n)}finally{t.emitOne=void 0,t.emitMany=void 0,t.reject=void 0}}))}[Symbol.asyncIterator](){let e=0;return{next:async()=>{for(;;){if(2===this._state)throw this._error;if(e<this._results.length)return{done:!1,value:this._results[e++]};if(1===this._state)return{done:!0,value:void 0};await r.Jh.toPromise(this._onStateChanged.event)}},return:async()=>(this._onReturn?.(),{done:!0,value:void 0})}}static map(e,t){return new p((async n=>{for await(const i of e)n.emitOne(t(i))}))}map(e){return p.map(this,e)}static filter(e,t){return new p((async n=>{for await(const i of e)t(i)&&n.emitOne(i)}))}filter(e){return p.filter(this,e)}static coalesce(e){return p.filter(e,(e=>!!e))}coalesce(){return p.coalesce(this)}static async toPromise(e){const t=[];for await(const n of e)t.push(n);return t}toPromise(){return p.toPromise(this)}emitOne(e){0===this._state&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){0===this._state&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){0===this._state&&(this._state=1,this._onStateChanged.fire())}reject(e){0===this._state&&(this._state=2,this._error=e,this._onStateChanged.fire())}}},1674:(e,t,n)=>{"use strict";n.d(t,{$l:()=>a,Gs:()=>u,MB:()=>o,Sw:()=>h,bb:()=>c,gN:()=>l,pJ:()=>d});var i=n(1090);const r="undefined"!==typeof Buffer;new i.d((()=>new Uint8Array(256)));let s;class o{static wrap(e){return r&&!Buffer.isBuffer(e)&&(e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),new o(e)}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}toString(){return r?this.buffer.toString():(s||(s=new TextDecoder),s.decode(this.buffer))}}function a(e,t){return(e[t+0]|0)>>>0|e[t+1]<<8>>>0}function l(e,t,n){e[n+0]=255&t,t>>>=8,e[n+1]=255&t}function c(e,t){return e[t]*2**24+65536*e[t+1]+256*e[t+2]+e[t+3]}function h(e,t,n){e[n+3]=t,t>>>=8,e[n+2]=t,t>>>=8,e[n+1]=t,t>>>=8,e[n]=t}function d(e,t){return e[t]}function u(e,t,n){e[n]=t}},1788:(e,t,n)=>{"use strict";function i(e){return e}n.d(t,{VV:()=>s,o5:()=>r});class r{constructor(e,t){this.lastCache=void 0,this.lastArgKey=void 0,"function"===typeof e?(this._fn=e,this._computeKey=i):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this._fn(e)),this.lastCache}}class s{get cachedValues(){return this._map}constructor(e,t){this._map=new Map,this._map2=new Map,"function"===typeof e?(this._fn=e,this._computeKey=i):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);if(this._map2.has(t))return this._map2.get(t);const n=this._fn(e);return this._map.set(e,n),this._map2.set(t,n),n}}},8447:(e,t,n)=>{"use strict";n.d(t,{Qi:()=>a});var i=n(1234);const r=Object.freeze((function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}}));var s;!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||(t instanceof o||!(!t||"object"!==typeof t)&&("boolean"===typeof t.isCancellationRequested&&"function"===typeof t.onCancellationRequested))},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:i.Jh.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:r})}(s||(s={}));class o{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?r:(this._emitter||(this._emitter=new i.vl),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class a{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new o),this._token}cancel(){this._token?this._token instanceof o&&this._token.cancel():this._token=s.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof o&&this._token.dispose():this._token=s.None}}},9493:(e,t,n)=>{"use strict";n.d(t,{W:()=>o});var i=n(631);const r=Object.create(null);function s(e,t){if((0,i.Kg)(t)){const n=r[t];if(void 0===n)throw new Error(`${e} references an unknown codicon: ${t}`);t=n}return r[e]=t,{id:e}}const o={...{add:s("add",6e4),plus:s("plus",6e4),gistNew:s("gist-new",6e4),repoCreate:s("repo-create",6e4),lightbulb:s("lightbulb",60001),lightBulb:s("light-bulb",60001),repo:s("repo",60002),repoDelete:s("repo-delete",60002),gistFork:s("gist-fork",60003),repoForked:s("repo-forked",60003),gitPullRequest:s("git-pull-request",60004),gitPullRequestAbandoned:s("git-pull-request-abandoned",60004),recordKeys:s("record-keys",60005),keyboard:s("keyboard",60005),tag:s("tag",60006),gitPullRequestLabel:s("git-pull-request-label",60006),tagAdd:s("tag-add",60006),tagRemove:s("tag-remove",60006),person:s("person",60007),personFollow:s("person-follow",60007),personOutline:s("person-outline",60007),personFilled:s("person-filled",60007),gitBranch:s("git-branch",60008),gitBranchCreate:s("git-branch-create",60008),gitBranchDelete:s("git-branch-delete",60008),sourceControl:s("source-control",60008),mirror:s("mirror",60009),mirrorPublic:s("mirror-public",60009),star:s("star",60010),starAdd:s("star-add",60010),starDelete:s("star-delete",60010),starEmpty:s("star-empty",60010),comment:s("comment",60011),commentAdd:s("comment-add",60011),alert:s("alert",60012),warning:s("warning",60012),search:s("search",60013),searchSave:s("search-save",60013),logOut:s("log-out",60014),signOut:s("sign-out",60014),logIn:s("log-in",60015),signIn:s("sign-in",60015),eye:s("eye",60016),eyeUnwatch:s("eye-unwatch",60016),eyeWatch:s("eye-watch",60016),circleFilled:s("circle-filled",60017),primitiveDot:s("primitive-dot",60017),closeDirty:s("close-dirty",60017),debugBreakpoint:s("debug-breakpoint",60017),debugBreakpointDisabled:s("debug-breakpoint-disabled",60017),debugHint:s("debug-hint",60017),terminalDecorationSuccess:s("terminal-decoration-success",60017),primitiveSquare:s("primitive-square",60018),edit:s("edit",60019),pencil:s("pencil",60019),info:s("info",60020),issueOpened:s("issue-opened",60020),gistPrivate:s("gist-private",60021),gitForkPrivate:s("git-fork-private",60021),lock:s("lock",60021),mirrorPrivate:s("mirror-private",60021),close:s("close",60022),removeClose:s("remove-close",60022),x:s("x",60022),repoSync:s("repo-sync",60023),sync:s("sync",60023),clone:s("clone",60024),desktopDownload:s("desktop-download",60024),beaker:s("beaker",60025),microscope:s("microscope",60025),vm:s("vm",60026),deviceDesktop:s("device-desktop",60026),file:s("file",60027),fileText:s("file-text",60027),more:s("more",60028),ellipsis:s("ellipsis",60028),kebabHorizontal:s("kebab-horizontal",60028),mailReply:s("mail-reply",60029),reply:s("reply",60029),organization:s("organization",60030),organizationFilled:s("organization-filled",60030),organizationOutline:s("organization-outline",60030),newFile:s("new-file",60031),fileAdd:s("file-add",60031),newFolder:s("new-folder",60032),fileDirectoryCreate:s("file-directory-create",60032),trash:s("trash",60033),trashcan:s("trashcan",60033),history:s("history",60034),clock:s("clock",60034),folder:s("folder",60035),fileDirectory:s("file-directory",60035),symbolFolder:s("symbol-folder",60035),logoGithub:s("logo-github",60036),markGithub:s("mark-github",60036),github:s("github",60036),terminal:s("terminal",60037),console:s("console",60037),repl:s("repl",60037),zap:s("zap",60038),symbolEvent:s("symbol-event",60038),error:s("error",60039),stop:s("stop",60039),variable:s("variable",60040),symbolVariable:s("symbol-variable",60040),array:s("array",60042),symbolArray:s("symbol-array",60042),symbolModule:s("symbol-module",60043),symbolPackage:s("symbol-package",60043),symbolNamespace:s("symbol-namespace",60043),symbolObject:s("symbol-object",60043),symbolMethod:s("symbol-method",60044),symbolFunction:s("symbol-function",60044),symbolConstructor:s("symbol-constructor",60044),symbolBoolean:s("symbol-boolean",60047),symbolNull:s("symbol-null",60047),symbolNumeric:s("symbol-numeric",60048),symbolNumber:s("symbol-number",60048),symbolStructure:s("symbol-structure",60049),symbolStruct:s("symbol-struct",60049),symbolParameter:s("symbol-parameter",60050),symbolTypeParameter:s("symbol-type-parameter",60050),symbolKey:s("symbol-key",60051),symbolText:s("symbol-text",60051),symbolReference:s("symbol-reference",60052),goToFile:s("go-to-file",60052),symbolEnum:s("symbol-enum",60053),symbolValue:s("symbol-value",60053),symbolRuler:s("symbol-ruler",60054),symbolUnit:s("symbol-unit",60054),activateBreakpoints:s("activate-breakpoints",60055),archive:s("archive",60056),arrowBoth:s("arrow-both",60057),arrowDown:s("arrow-down",60058),arrowLeft:s("arrow-left",60059),arrowRight:s("arrow-right",60060),arrowSmallDown:s("arrow-small-down",60061),arrowSmallLeft:s("arrow-small-left",60062),arrowSmallRight:s("arrow-small-right",60063),arrowSmallUp:s("arrow-small-up",60064),arrowUp:s("arrow-up",60065),bell:s("bell",60066),bold:s("bold",60067),book:s("book",60068),bookmark:s("bookmark",60069),debugBreakpointConditionalUnverified:s("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:s("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:s("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:s("debug-breakpoint-data-unverified",60072),debugBreakpointData:s("debug-breakpoint-data",60073),debugBreakpointDataDisabled:s("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:s("debug-breakpoint-log-unverified",60074),debugBreakpointLog:s("debug-breakpoint-log",60075),debugBreakpointLogDisabled:s("debug-breakpoint-log-disabled",60075),briefcase:s("briefcase",60076),broadcast:s("broadcast",60077),browser:s("browser",60078),bug:s("bug",60079),calendar:s("calendar",60080),caseSensitive:s("case-sensitive",60081),check:s("check",60082),checklist:s("checklist",60083),chevronDown:s("chevron-down",60084),chevronLeft:s("chevron-left",60085),chevronRight:s("chevron-right",60086),chevronUp:s("chevron-up",60087),chromeClose:s("chrome-close",60088),chromeMaximize:s("chrome-maximize",60089),chromeMinimize:s("chrome-minimize",60090),chromeRestore:s("chrome-restore",60091),circleOutline:s("circle-outline",60092),circle:s("circle",60092),debugBreakpointUnverified:s("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:s("terminal-decoration-incomplete",60092),circleSlash:s("circle-slash",60093),circuitBoard:s("circuit-board",60094),clearAll:s("clear-all",60095),clippy:s("clippy",60096),closeAll:s("close-all",60097),cloudDownload:s("cloud-download",60098),cloudUpload:s("cloud-upload",60099),code:s("code",60100),collapseAll:s("collapse-all",60101),colorMode:s("color-mode",60102),commentDiscussion:s("comment-discussion",60103),creditCard:s("credit-card",60105),dash:s("dash",60108),dashboard:s("dashboard",60109),database:s("database",60110),debugContinue:s("debug-continue",60111),debugDisconnect:s("debug-disconnect",60112),debugPause:s("debug-pause",60113),debugRestart:s("debug-restart",60114),debugStart:s("debug-start",60115),debugStepInto:s("debug-step-into",60116),debugStepOut:s("debug-step-out",60117),debugStepOver:s("debug-step-over",60118),debugStop:s("debug-stop",60119),debug:s("debug",60120),deviceCameraVideo:s("device-camera-video",60121),deviceCamera:s("device-camera",60122),deviceMobile:s("device-mobile",60123),diffAdded:s("diff-added",60124),diffIgnored:s("diff-ignored",60125),diffModified:s("diff-modified",60126),diffRemoved:s("diff-removed",60127),diffRenamed:s("diff-renamed",60128),diff:s("diff",60129),diffSidebyside:s("diff-sidebyside",60129),discard:s("discard",60130),editorLayout:s("editor-layout",60131),emptyWindow:s("empty-window",60132),exclude:s("exclude",60133),extensions:s("extensions",60134),eyeClosed:s("eye-closed",60135),fileBinary:s("file-binary",60136),fileCode:s("file-code",60137),fileMedia:s("file-media",60138),filePdf:s("file-pdf",60139),fileSubmodule:s("file-submodule",60140),fileSymlinkDirectory:s("file-symlink-directory",60141),fileSymlinkFile:s("file-symlink-file",60142),fileZip:s("file-zip",60143),files:s("files",60144),filter:s("filter",60145),flame:s("flame",60146),foldDown:s("fold-down",60147),foldUp:s("fold-up",60148),fold:s("fold",60149),folderActive:s("folder-active",60150),folderOpened:s("folder-opened",60151),gear:s("gear",60152),gift:s("gift",60153),gistSecret:s("gist-secret",60154),gist:s("gist",60155),gitCommit:s("git-commit",60156),gitCompare:s("git-compare",60157),compareChanges:s("compare-changes",60157),gitMerge:s("git-merge",60158),githubAction:s("github-action",60159),githubAlt:s("github-alt",60160),globe:s("globe",60161),grabber:s("grabber",60162),graph:s("graph",60163),gripper:s("gripper",60164),heart:s("heart",60165),home:s("home",60166),horizontalRule:s("horizontal-rule",60167),hubot:s("hubot",60168),inbox:s("inbox",60169),issueReopened:s("issue-reopened",60171),issues:s("issues",60172),italic:s("italic",60173),jersey:s("jersey",60174),json:s("json",60175),kebabVertical:s("kebab-vertical",60176),key:s("key",60177),law:s("law",60178),lightbulbAutofix:s("lightbulb-autofix",60179),linkExternal:s("link-external",60180),link:s("link",60181),listOrdered:s("list-ordered",60182),listUnordered:s("list-unordered",60183),liveShare:s("live-share",60184),loading:s("loading",60185),location:s("location",60186),mailRead:s("mail-read",60187),mail:s("mail",60188),markdown:s("markdown",60189),megaphone:s("megaphone",60190),mention:s("mention",60191),milestone:s("milestone",60192),gitPullRequestMilestone:s("git-pull-request-milestone",60192),mortarBoard:s("mortar-board",60193),move:s("move",60194),multipleWindows:s("multiple-windows",60195),mute:s("mute",60196),noNewline:s("no-newline",60197),note:s("note",60198),octoface:s("octoface",60199),openPreview:s("open-preview",60200),package:s("package",60201),paintcan:s("paintcan",60202),pin:s("pin",60203),play:s("play",60204),run:s("run",60204),plug:s("plug",60205),preserveCase:s("preserve-case",60206),preview:s("preview",60207),project:s("project",60208),pulse:s("pulse",60209),question:s("question",60210),quote:s("quote",60211),radioTower:s("radio-tower",60212),reactions:s("reactions",60213),references:s("references",60214),refresh:s("refresh",60215),regex:s("regex",60216),remoteExplorer:s("remote-explorer",60217),remote:s("remote",60218),remove:s("remove",60219),replaceAll:s("replace-all",60220),replace:s("replace",60221),repoClone:s("repo-clone",60222),repoForcePush:s("repo-force-push",60223),repoPull:s("repo-pull",60224),repoPush:s("repo-push",60225),report:s("report",60226),requestChanges:s("request-changes",60227),rocket:s("rocket",60228),rootFolderOpened:s("root-folder-opened",60229),rootFolder:s("root-folder",60230),rss:s("rss",60231),ruby:s("ruby",60232),saveAll:s("save-all",60233),saveAs:s("save-as",60234),save:s("save",60235),screenFull:s("screen-full",60236),screenNormal:s("screen-normal",60237),searchStop:s("search-stop",60238),server:s("server",60240),settingsGear:s("settings-gear",60241),settings:s("settings",60242),shield:s("shield",60243),smiley:s("smiley",60244),sortPrecedence:s("sort-precedence",60245),splitHorizontal:s("split-horizontal",60246),splitVertical:s("split-vertical",60247),squirrel:s("squirrel",60248),starFull:s("star-full",60249),starHalf:s("star-half",60250),symbolClass:s("symbol-class",60251),symbolColor:s("symbol-color",60252),symbolConstant:s("symbol-constant",60253),symbolEnumMember:s("symbol-enum-member",60254),symbolField:s("symbol-field",60255),symbolFile:s("symbol-file",60256),symbolInterface:s("symbol-interface",60257),symbolKeyword:s("symbol-keyword",60258),symbolMisc:s("symbol-misc",60259),symbolOperator:s("symbol-operator",60260),symbolProperty:s("symbol-property",60261),wrench:s("wrench",60261),wrenchSubaction:s("wrench-subaction",60261),symbolSnippet:s("symbol-snippet",60262),tasklist:s("tasklist",60263),telescope:s("telescope",60264),textSize:s("text-size",60265),threeBars:s("three-bars",60266),thumbsdown:s("thumbsdown",60267),thumbsup:s("thumbsup",60268),tools:s("tools",60269),triangleDown:s("triangle-down",60270),triangleLeft:s("triangle-left",60271),triangleRight:s("triangle-right",60272),triangleUp:s("triangle-up",60273),twitter:s("twitter",60274),unfold:s("unfold",60275),unlock:s("unlock",60276),unmute:s("unmute",60277),unverified:s("unverified",60278),verified:s("verified",60279),versions:s("versions",60280),vmActive:s("vm-active",60281),vmOutline:s("vm-outline",60282),vmRunning:s("vm-running",60283),watch:s("watch",60284),whitespace:s("whitespace",60285),wholeWord:s("whole-word",60286),window:s("window",60287),wordWrap:s("word-wrap",60288),zoomIn:s("zoom-in",60289),zoomOut:s("zoom-out",60290),listFilter:s("list-filter",60291),listFlat:s("list-flat",60292),listSelection:s("list-selection",60293),selection:s("selection",60293),listTree:s("list-tree",60294),debugBreakpointFunctionUnverified:s("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:s("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:s("debug-breakpoint-function-disabled",60296),debugStackframeActive:s("debug-stackframe-active",60297),circleSmallFilled:s("circle-small-filled",60298),debugStackframeDot:s("debug-stackframe-dot",60298),terminalDecorationMark:s("terminal-decoration-mark",60298),debugStackframe:s("debug-stackframe",60299),debugStackframeFocused:s("debug-stackframe-focused",60299),debugBreakpointUnsupported:s("debug-breakpoint-unsupported",60300),symbolString:s("symbol-string",60301),debugReverseContinue:s("debug-reverse-continue",60302),debugStepBack:s("debug-step-back",60303),debugRestartFrame:s("debug-restart-frame",60304),debugAlt:s("debug-alt",60305),callIncoming:s("call-incoming",60306),callOutgoing:s("call-outgoing",60307),menu:s("menu",60308),expandAll:s("expand-all",60309),feedback:s("feedback",60310),gitPullRequestReviewer:s("git-pull-request-reviewer",60310),groupByRefType:s("group-by-ref-type",60311),ungroupByRefType:s("ungroup-by-ref-type",60312),account:s("account",60313),gitPullRequestAssignee:s("git-pull-request-assignee",60313),bellDot:s("bell-dot",60314),debugConsole:s("debug-console",60315),library:s("library",60316),output:s("output",60317),runAll:s("run-all",60318),syncIgnored:s("sync-ignored",60319),pinned:s("pinned",60320),githubInverted:s("github-inverted",60321),serverProcess:s("server-process",60322),serverEnvironment:s("server-environment",60323),pass:s("pass",60324),issueClosed:s("issue-closed",60324),stopCircle:s("stop-circle",60325),playCircle:s("play-circle",60326),record:s("record",60327),debugAltSmall:s("debug-alt-small",60328),vmConnect:s("vm-connect",60329),cloud:s("cloud",60330),merge:s("merge",60331),export:s("export",60332),graphLeft:s("graph-left",60333),magnet:s("magnet",60334),notebook:s("notebook",60335),redo:s("redo",60336),checkAll:s("check-all",60337),pinnedDirty:s("pinned-dirty",60338),passFilled:s("pass-filled",60339),circleLargeFilled:s("circle-large-filled",60340),circleLarge:s("circle-large",60341),circleLargeOutline:s("circle-large-outline",60341),combine:s("combine",60342),gather:s("gather",60342),table:s("table",60343),variableGroup:s("variable-group",60344),typeHierarchy:s("type-hierarchy",60345),typeHierarchySub:s("type-hierarchy-sub",60346),typeHierarchySuper:s("type-hierarchy-super",60347),gitPullRequestCreate:s("git-pull-request-create",60348),runAbove:s("run-above",60349),runBelow:s("run-below",60350),notebookTemplate:s("notebook-template",60351),debugRerun:s("debug-rerun",60352),workspaceTrusted:s("workspace-trusted",60353),workspaceUntrusted:s("workspace-untrusted",60354),workspaceUnknown:s("workspace-unknown",60355),terminalCmd:s("terminal-cmd",60356),terminalDebian:s("terminal-debian",60357),terminalLinux:s("terminal-linux",60358),terminalPowershell:s("terminal-powershell",60359),terminalTmux:s("terminal-tmux",60360),terminalUbuntu:s("terminal-ubuntu",60361),terminalBash:s("terminal-bash",60362),arrowSwap:s("arrow-swap",60363),copy:s("copy",60364),personAdd:s("person-add",60365),filterFilled:s("filter-filled",60366),wand:s("wand",60367),debugLineByLine:s("debug-line-by-line",60368),inspect:s("inspect",60369),layers:s("layers",60370),layersDot:s("layers-dot",60371),layersActive:s("layers-active",60372),compass:s("compass",60373),compassDot:s("compass-dot",60374),compassActive:s("compass-active",60375),azure:s("azure",60376),issueDraft:s("issue-draft",60377),gitPullRequestClosed:s("git-pull-request-closed",60378),gitPullRequestDraft:s("git-pull-request-draft",60379),debugAll:s("debug-all",60380),debugCoverage:s("debug-coverage",60381),runErrors:s("run-errors",60382),folderLibrary:s("folder-library",60383),debugContinueSmall:s("debug-continue-small",60384),beakerStop:s("beaker-stop",60385),graphLine:s("graph-line",60386),graphScatter:s("graph-scatter",60387),pieChart:s("pie-chart",60388),bracket:s("bracket",60175),bracketDot:s("bracket-dot",60389),bracketError:s("bracket-error",60390),lockSmall:s("lock-small",60391),azureDevops:s("azure-devops",60392),verifiedFilled:s("verified-filled",60393),newline:s("newline",60394),layout:s("layout",60395),layoutActivitybarLeft:s("layout-activitybar-left",60396),layoutActivitybarRight:s("layout-activitybar-right",60397),layoutPanelLeft:s("layout-panel-left",60398),layoutPanelCenter:s("layout-panel-center",60399),layoutPanelJustify:s("layout-panel-justify",60400),layoutPanelRight:s("layout-panel-right",60401),layoutPanel:s("layout-panel",60402),layoutSidebarLeft:s("layout-sidebar-left",60403),layoutSidebarRight:s("layout-sidebar-right",60404),layoutStatusbar:s("layout-statusbar",60405),layoutMenubar:s("layout-menubar",60406),layoutCentered:s("layout-centered",60407),target:s("target",60408),indent:s("indent",60409),recordSmall:s("record-small",60410),errorSmall:s("error-small",60411),terminalDecorationError:s("terminal-decoration-error",60411),arrowCircleDown:s("arrow-circle-down",60412),arrowCircleLeft:s("arrow-circle-left",60413),arrowCircleRight:s("arrow-circle-right",60414),arrowCircleUp:s("arrow-circle-up",60415),layoutSidebarRightOff:s("layout-sidebar-right-off",60416),layoutPanelOff:s("layout-panel-off",60417),layoutSidebarLeftOff:s("layout-sidebar-left-off",60418),blank:s("blank",60419),heartFilled:s("heart-filled",60420),map:s("map",60421),mapHorizontal:s("map-horizontal",60421),foldHorizontal:s("fold-horizontal",60421),mapFilled:s("map-filled",60422),mapHorizontalFilled:s("map-horizontal-filled",60422),foldHorizontalFilled:s("fold-horizontal-filled",60422),circleSmall:s("circle-small",60423),bellSlash:s("bell-slash",60424),bellSlashDot:s("bell-slash-dot",60425),commentUnresolved:s("comment-unresolved",60426),gitPullRequestGoToChanges:s("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:s("git-pull-request-new-changes",60428),searchFuzzy:s("search-fuzzy",60429),commentDraft:s("comment-draft",60430),send:s("send",60431),sparkle:s("sparkle",60432),insert:s("insert",60433),mic:s("mic",60434),thumbsdownFilled:s("thumbsdown-filled",60435),thumbsupFilled:s("thumbsup-filled",60436),coffee:s("coffee",60437),snake:s("snake",60438),game:s("game",60439),vr:s("vr",60440),chip:s("chip",60441),piano:s("piano",60442),music:s("music",60443),micFilled:s("mic-filled",60444),repoFetch:s("repo-fetch",60445),copilot:s("copilot",60446),lightbulbSparkle:s("lightbulb-sparkle",60447),robot:s("robot",60448),sparkleFilled:s("sparkle-filled",60449),diffSingle:s("diff-single",60450),diffMultiple:s("diff-multiple",60451),surroundWith:s("surround-with",60452),share:s("share",60453),gitStash:s("git-stash",60454),gitStashApply:s("git-stash-apply",60455),gitStashPop:s("git-stash-pop",60456),vscode:s("vscode",60457),vscodeInsiders:s("vscode-insiders",60458),codeOss:s("code-oss",60459),runCoverage:s("run-coverage",60460),runAllCoverage:s("run-all-coverage",60461),coverage:s("coverage",60462),githubProject:s("github-project",60463),mapVertical:s("map-vertical",60464),foldVertical:s("fold-vertical",60464),mapVerticalFilled:s("map-vertical-filled",60465),foldVerticalFilled:s("fold-vertical-filled",60465),goToSearch:s("go-to-search",60466),percentage:s("percentage",60467),sortPercentage:s("sort-percentage",60467),attach:s("attach",60468)},...{dialogError:s("dialog-error","error"),dialogWarning:s("dialog-warning","warning"),dialogInfo:s("dialog-info","info"),dialogClose:s("dialog-close","close"),treeItemExpanded:s("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:s("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:s("tree-filter-on-type-off","list-selection"),treeFilterClear:s("tree-filter-clear","close"),treeItemLoading:s("tree-item-loading","loading"),menuSelection:s("menu-selection","check"),menuSubmenu:s("menu-submenu","chevron-right"),menuBarMore:s("menubar-more","more"),scrollbarButtonLeft:s("scrollbar-button-left","triangle-left"),scrollbarButtonRight:s("scrollbar-button-right","triangle-right"),scrollbarButtonUp:s("scrollbar-button-up","triangle-up"),scrollbarButtonDown:s("scrollbar-button-down","triangle-down"),toolBarMore:s("toolbar-more","more"),quickInputBack:s("quick-input-back","arrow-left"),dropDownButton:s("drop-down-button",60084),symbolCustomColor:s("symbol-customcolor",60252),exportIcon:s("export",60332),workspaceUnspecified:s("workspace-unspecified",60355),newLine:s("newline",60394),thumbsDownFilled:s("thumbsdown-filled",60435),thumbsUpFilled:s("thumbsup-filled",60436),gitFetch:s("git-fetch",60445),lightbulbSparkleAutofix:s("lightbulb-sparkle-autofix",60447),debugBreakpointPending:s("debug-breakpoint-pending",60377)}}},7661:(e,t,n)=>{"use strict";function i(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}n.d(t,{Q1:()=>a,bU:()=>r,hB:()=>s});class r{constructor(e,t,n,r=1){this._rgbaBrand=void 0,this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,t)),this.b=0|Math.min(255,Math.max(0,n)),this.a=i(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}}class s{constructor(e,t,n,r){this._hslaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=i(Math.max(Math.min(1,t),0),3),this.l=i(Math.max(Math.min(1,n),0),3),this.a=i(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(e){const t=e.r/255,n=e.g/255,i=e.b/255,r=e.a,o=Math.max(t,n,i),a=Math.min(t,n,i);let l=0,c=0;const h=(a+o)/2,d=o-a;if(d>0){switch(c=Math.min(h<=.5?d/(2*h):d/(2-2*h),1),o){case t:l=(n-i)/d+(n<i?6:0);break;case n:l=(i-t)/d+2;break;case i:l=(t-n)/d+4}l*=60,l=Math.round(l)}return new s(l,c,h,r)}static _hue2rgb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}static toRGBA(e){const t=e.h/360,{s:n,l:i,a:o}=e;let a,l,c;if(0===n)a=l=c=i;else{const e=i<.5?i*(1+n):i+n-i*n,r=2*i-e;a=s._hue2rgb(r,e,t+1/3),l=s._hue2rgb(r,e,t),c=s._hue2rgb(r,e,t-1/3)}return new r(Math.round(255*a),Math.round(255*l),Math.round(255*c),o)}}class o{constructor(e,t,n,r){this._hsvaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=i(Math.max(Math.min(1,t),0),3),this.v=i(Math.max(Math.min(1,n),0),3),this.a=i(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(e){const t=e.r/255,n=e.g/255,i=e.b/255,r=Math.max(t,n,i),s=r-Math.min(t,n,i),a=0===r?0:s/r;let l;return l=0===s?0:r===t?((n-i)/s%6+6)%6:r===n?(i-t)/s+2:(t-n)/s+4,new o(Math.round(60*l),a,r,e.a)}static toRGBA(e){const{h:t,s:n,v:i,a:s}=e,o=i*n,a=o*(1-Math.abs(t/60%2-1)),l=i-o;let[c,h,d]=[0,0,0];return t<60?(c=o,h=a):t<120?(c=a,h=o):t<180?(h=o,d=a):t<240?(h=a,d=o):t<300?(c=a,d=o):t<=360&&(c=o,d=a),c=Math.round(255*(c+l)),h=Math.round(255*(h+l)),d=Math.round(255*(d+l)),new r(c,h,d,s)}}class a{static fromHex(e){return a.Format.CSS.parseHex(e)||a.red}static equals(e,t){return!e&&!t||!(!e||!t)&&e.equals(t)}get hsla(){return this._hsla?this._hsla:s.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:o.fromRGBA(this.rgba)}constructor(e){if(!e)throw new Error("Color needs a value");if(e instanceof r)this.rgba=e;else if(e instanceof s)this._hsla=e,this.rgba=s.toRGBA(e);else{if(!(e instanceof o))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=o.toRGBA(e)}}equals(e){return!!e&&r.equals(this.rgba,e.rgba)&&s.equals(this.hsla,e.hsla)&&o.equals(this.hsva,e.hsva)}getRelativeLuminance(){return i(.2126*a._relativeLuminanceForComponent(this.rgba.r)+.7152*a._relativeLuminanceForComponent(this.rgba.g)+.0722*a._relativeLuminanceForComponent(this.rgba.b),4)}static _relativeLuminanceForComponent(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}isLighter(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128}isLighterThan(e){return this.getRelativeLuminance()>e.getRelativeLuminance()}isDarkerThan(e){return this.getRelativeLuminance()<e.getRelativeLuminance()}lighten(e){return new a(new s(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*e,this.hsla.a))}darken(e){return new a(new s(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*e,this.hsla.a))}transparent(e){const{r:t,g:n,b:i,a:s}=this.rgba;return new a(new r(t,n,i,s*e))}isTransparent(){return 0===this.rgba.a}isOpaque(){return 1===this.rgba.a}opposite(){return new a(new r(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(e){if(this.isOpaque()||1!==e.rgba.a)return this;const{r:t,g:n,b:i,a:s}=this.rgba;return new a(new r(e.rgba.r-s*(e.rgba.r-t),e.rgba.g-s*(e.rgba.g-n),e.rgba.b-s*(e.rgba.b-i),1))}toString(){return this._toString||(this._toString=a.Format.CSS.format(this)),this._toString}static getLighterColor(e,t,n){if(e.isLighterThan(t))return e;n=n||.5;const i=e.getRelativeLuminance(),r=t.getRelativeLuminance();return n=n*(r-i)/r,e.lighten(n)}static getDarkerColor(e,t,n){if(e.isDarkerThan(t))return e;n=n||.5;const i=e.getRelativeLuminance();return n=n*(i-t.getRelativeLuminance())/i,e.darken(n)}static{this.white=new a(new r(255,255,255,1))}static{this.black=new a(new r(0,0,0,1))}static{this.red=new a(new r(255,0,0,1))}static{this.blue=new a(new r(0,0,255,1))}static{this.green=new a(new r(0,255,0,1))}static{this.cyan=new a(new r(0,255,255,1))}static{this.lightgrey=new a(new r(211,211,211,1))}static{this.transparent=new a(new r(0,0,0,0))}}!function(e){let t;!function(t){let n;!function(t){function n(e){const t=e.toString(16);return 2!==t.length?"0"+t:t}function i(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:case 65:return 10;case 98:case 66:return 11;case 99:case 67:return 12;case 100:case 68:return 13;case 101:case 69:return 14;case 102:case 70:return 15}return 0}t.formatRGB=function(t){return 1===t.rgba.a?`rgb(${t.rgba.r}, ${t.rgba.g}, ${t.rgba.b})`:e.Format.CSS.formatRGBA(t)},t.formatRGBA=function(e){return`rgba(${e.rgba.r}, ${e.rgba.g}, ${e.rgba.b}, ${+e.rgba.a.toFixed(2)})`},t.formatHSL=function(t){return 1===t.hsla.a?`hsl(${t.hsla.h}, ${(100*t.hsla.s).toFixed(2)}%, ${(100*t.hsla.l).toFixed(2)}%)`:e.Format.CSS.formatHSLA(t)},t.formatHSLA=function(e){return`hsla(${e.hsla.h}, ${(100*e.hsla.s).toFixed(2)}%, ${(100*e.hsla.l).toFixed(2)}%, ${e.hsla.a.toFixed(2)})`},t.formatHex=function(e){return`#${n(e.rgba.r)}${n(e.rgba.g)}${n(e.rgba.b)}`},t.formatHexA=function(t,i=!1){return i&&1===t.rgba.a?e.Format.CSS.formatHex(t):`#${n(t.rgba.r)}${n(t.rgba.g)}${n(t.rgba.b)}${n(Math.round(255*t.rgba.a))}`},t.format=function(t){return t.isOpaque()?e.Format.CSS.formatHex(t):e.Format.CSS.formatRGBA(t)},t.parseHex=function(t){const n=t.length;if(0===n)return null;if(35!==t.charCodeAt(0))return null;if(7===n){const n=16*i(t.charCodeAt(1))+i(t.charCodeAt(2)),s=16*i(t.charCodeAt(3))+i(t.charCodeAt(4)),o=16*i(t.charCodeAt(5))+i(t.charCodeAt(6));return new e(new r(n,s,o,1))}if(9===n){const n=16*i(t.charCodeAt(1))+i(t.charCodeAt(2)),s=16*i(t.charCodeAt(3))+i(t.charCodeAt(4)),o=16*i(t.charCodeAt(5))+i(t.charCodeAt(6)),a=16*i(t.charCodeAt(7))+i(t.charCodeAt(8));return new e(new r(n,s,o,a/255))}if(4===n){const n=i(t.charCodeAt(1)),s=i(t.charCodeAt(2)),o=i(t.charCodeAt(3));return new e(new r(16*n+n,16*s+s,16*o+o))}if(5===n){const n=i(t.charCodeAt(1)),s=i(t.charCodeAt(2)),o=i(t.charCodeAt(3)),a=i(t.charCodeAt(4));return new e(new r(16*n+n,16*s+s,16*o+o,(16*a+a)/255))}return null}}(n=t.CSS||(t.CSS={}))}(t=e.Format||(e.Format={}))}(a||(a={}))},4383:(e,t,n)=>{"use strict";n.d(t,{D7:()=>p,EM:()=>d,Qg:()=>c,cU:()=>s,dz:()=>r,iH:()=>h});const i=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((()=>{if(e.stack){if(u.isErrorNoTelemetry(e))throw new u(e.message+"\n\n"+e.stack);throw new Error(e.message+"\n\n"+e.stack)}throw e}),0)}}emit(e){this.listeners.forEach((t=>{t(e)}))}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function r(e){a(e)||i.onUnexpectedError(e)}function s(e){if(e instanceof Error){const{name:t,message:n}=e;return{$isError:!0,name:t,message:n,stack:e.stacktrace||e.stack,noTelemetry:u.isErrorNoTelemetry(e)}}return e}const o="Canceled";function a(e){return e instanceof l||e instanceof Error&&e.name===o&&e.message===o}class l extends Error{constructor(){super(o),this.name=this.message}}function c(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")}function h(e){return e?new Error(`Illegal state: ${e}`):new Error("Illegal state")}class d extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class u extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof u)return e;const t=new u;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return"CodeExpectedError"===e.name}}class p extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,p.prototype)}}},1234:(e,t,n)=>{"use strict";n.d(t,{Jh:()=>o,vl:()=>m});var i=n(4383),r=n(1484),s=(n(8925),n(8381));var o;!function(e){function t(e){false}function n(e){return(t,n=null,i)=>{let r,s=!1;return r=e((e=>{if(!s)return r?r.dispose():s=!0,t.call(n,e)}),null,i),s&&r.dispose(),r}}function i(e,t,n){return o(((n,i=null,r)=>e((e=>n.call(i,t(e))),null,r)),n)}function s(e,t,n){return o(((n,i=null,r)=>e((e=>t(e)&&n.call(i,e)),null,r)),n)}function o(e,n){let i;const r={onWillAddFirstListener(){i=e(s.fire,s)},onDidRemoveLastListener(){i?.dispose()}};n||t();const s=new m(r);return n?.add(s),s.event}function a(e,n,i=100,r=!1,s=!1,o,a){let l,c,h,d,u=0;const p={leakWarningThreshold:o,onWillAddFirstListener(){l=e((e=>{u++,c=n(c,e),r&&!h&&(f.fire(c),c=void 0),d=()=>{const e=c;c=void 0,h=void 0,(!r||u>1)&&f.fire(e),u=0},"number"===typeof i?(clearTimeout(h),h=setTimeout(d,i)):void 0===h&&(h=0,queueMicrotask(d))}))},onWillRemoveListener(){s&&u>0&&d?.()},onDidRemoveLastListener(){d=void 0,l.dispose()}};a||t();const f=new m(p);return a?.add(f),f.event}e.None=()=>r.jG.None,e.defer=function(e,t){return a(e,(()=>{}),0,void 0,!0,void 0,t)},e.once=n,e.onceIf=function(t,n){return e.once(e.filter(t,n))},e.map=i,e.forEach=function(e,t,n){return o(((n,i=null,r)=>e((e=>{t(e),n.call(i,e)}),null,r)),n)},e.filter=s,e.signal=function(e){return e},e.any=function(...e){return(t,n=null,i)=>function(e,t){t instanceof Array?t.push(e):t&&t.add(e);return e}((0,r.qE)(...e.map((e=>e((e=>t.call(n,e)))))),i)},e.reduce=function(e,t,n,r){let s=n;return i(e,(e=>(s=t(s,e),s)),r)},e.debounce=a,e.accumulate=function(t,n=0,i){return e.debounce(t,((e,t)=>e?(e.push(t),e):[t]),n,void 0,!0,void 0,i)},e.latch=function(e,t=(e,t)=>e===t,n){let i,r=!0;return s(e,(e=>{const n=r||!t(e,i);return r=!1,i=e,n}),n)},e.split=function(t,n,i){return[e.filter(t,n,i),e.filter(t,(e=>!n(e)),i)]},e.buffer=function(e,t=!1,n=[],i){let r=n.slice(),s=e((e=>{r?r.push(e):a.fire(e)}));i&&i.add(s);const o=()=>{r?.forEach((e=>a.fire(e))),r=null},a=new m({onWillAddFirstListener(){s||(s=e((e=>a.fire(e))),i&&i.add(s))},onDidAddFirstListener(){r&&(t?setTimeout(o):o())},onDidRemoveLastListener(){s&&s.dispose(),s=null}});return i&&i.add(a),a.event},e.chain=function(e,t){return(n,i,r)=>{const s=t(new c);return e((function(e){const t=s.evaluate(e);t!==l&&n.call(i,t)}),void 0,r)}};const l=Symbol("HaltChainable");class c{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:l)),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,n=!0;return this.steps.push((i=>{const r=n||!e(i,t);return n=!1,t=i,r?i:l})),this}evaluate(e){for(const t of this.steps)if((e=t(e))===l)break;return e}}e.fromNodeEventEmitter=function(e,t,n=e=>e){const i=(...e)=>r.fire(n(...e)),r=new m({onWillAddFirstListener:()=>e.on(t,i),onDidRemoveLastListener:()=>e.removeListener(t,i)});return r.event},e.fromDOMEventEmitter=function(e,t,n=e=>e){const i=(...e)=>r.fire(n(...e)),r=new m({onWillAddFirstListener:()=>e.addEventListener(t,i),onDidRemoveLastListener:()=>e.removeEventListener(t,i)});return r.event},e.toPromise=function(e){return new Promise((t=>n(e)(t)))},e.fromPromise=function(e){const t=new m;return e.then((e=>{t.fire(e)}),(()=>{t.fire(void 0)})).finally((()=>{t.dispose()})),t.event},e.forward=function(e,t){return e((e=>t.fire(e)))},e.runAndSubscribe=function(e,t,n){return t(n),e((e=>t(e)))};class h{constructor(e,n){this._observable=e,this._counter=0,this._hasChanged=!1;const i={onWillAddFirstListener:()=>{e.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{e.removeObserver(this)}};n||t(),this.emitter=new m(i),n&&n.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,0===this._counter&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}e.fromObservable=function(e,t){return new h(e,t).emitter.event},e.fromObservableLight=function(e){return(t,n,i)=>{let s=0,o=!1;const a={beginUpdate(){s++},endUpdate(){s--,0===s&&(e.reportChanges(),o&&(o=!1,t.call(n)))},handlePossibleChange(){},handleChange(){o=!0}};e.addObserver(a),e.reportChanges();const l={dispose(){e.removeObserver(a)}};return i instanceof r.Cm?i.add(l):Array.isArray(i)&&i.push(l),l}}}(o||(o={}));class a{static{this.all=new Set}static{this._idPool=0}constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${a._idPool++}`,a.all.add(this)}start(e){this._stopWatch=new s.W,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}class l{static{this._idPool=1}constructor(e,t,n=(l._idPool++).toString(16).padStart(3,"0")){this._errorHandler=e,this.threshold=t,this.name=n,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(e,t){const n=this.threshold;if(n<=0||t<n)return;this._stacks||(this._stacks=new Map);const i=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,i+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=.5*n;const[e,i]=this.getMostFrequentStack(),r=`[${this.name}] potential listener LEAK detected, having ${t} listeners already. MOST frequent listener (${i}):`;console.warn(r),console.warn(e);const s=new h(r,e);this._errorHandler(s)}return()=>{const t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}getMostFrequentStack(){if(!this._stacks)return;let e,t=0;for(const[n,i]of this._stacks)(!e||t<i)&&(e=[n,i],t=i);return e}}class c{static create(){const e=new Error;return new c(e.stack??"")}constructor(e){this.value=e}print(){console.warn(this.value.split("\n").slice(2).join("\n"))}}class h extends Error{constructor(e,t){super(e),this.name="ListenerLeakError",this.stack=t}}class d extends Error{constructor(e,t){super(e),this.name="ListenerRefusalError",this.stack=t}}class u{constructor(e){this.value=e}}let p;class m{constructor(e){this._size=0,this._options=e,this._leakageMon=this._options?.leakWarningThreshold?new l(e?.onListenerError??i.dz,this._options?.leakWarningThreshold??-1):void 0,this._perfMon=this._options?._profName?new a(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,t,n)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const 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);const t=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],n=new d(`${e}. HINT: Stack shows most frequent listener (${t[1]}-times)`,t[0]);return(this._options?.onListenerError||i.dz)(n),r.jG.None}if(this._disposed)return r.jG.None;t&&(e=e.bind(t));const s=new u(e);let o;this._leakageMon&&this._size>=Math.ceil(.2*this._leakageMon.threshold)&&(s.stack=c.create(),o=this._leakageMon.check(s.stack,this._size+1)),this._listeners?this._listeners instanceof u?(this._deliveryQueue??=new f,this._listeners=[this._listeners,s]):this._listeners.push(s):(this._options?.onWillAddFirstListener?.(this),this._listeners=s,this._options?.onDidAddFirstListener?.(this)),this._size++;const a=(0,r.s)((()=>{p?.unregister(a),o?.(),this._removeListener(s)}));if(n instanceof r.Cm?n.add(a):Array.isArray(n)&&n.push(a),p){const e=(new Error).stack.split("\n").slice(2,3).join("\n").trim(),t=/(file:|vscode-file:\/\/vscode-app)?(\/[^:]*:\d+:\d+)/.exec(e);p.register(a,t?.[2]??e,a)}return a},this._event}_removeListener(e){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(1===this._size)return this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),void(this._size=0);const t=this._listeners,n=t.indexOf(e);if(-1===n)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,t[n]=void 0;const i=this._deliveryQueue.current===this;if(2*this._size<=t.length){let e=0;for(let n=0;n<t.length;n++)t[n]?t[e++]=t[n]:i&&(this._deliveryQueue.end--,e<this._deliveryQueue.i&&this._deliveryQueue.i--);t.length=e}}_deliver(e,t){if(!e)return;const n=this._options?.onListenerError||i.dz;if(n)try{e.value(t)}catch(r){n(r)}else e.value(t)}_deliverQueue(e){const 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 u)this._deliver(this._listeners,e);else{const t=this._deliveryQueue;t.enqueue(this,e,this._listeners.length),this._deliverQueue(t)}else;this._perfMon?.stop()}hasListeners(){return this._size>0}}class f{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}}},9326:(e,t,n)=>{"use strict";n.d(t,{TH:()=>o,Zn:()=>l,_1:()=>c,kb:()=>a});var i=n(8821),r=(n(8067),n(1508));function s(e){return 47===e||92===e}function o(e){return e.replace(/[\\/]/g,i.SA.sep)}function a(e){return-1===e.indexOf("/")&&(e=o(e)),/^[a-zA-Z]:(\/|$)/.test(e)&&(e="/"+e),e}function l(e,t=i.SA.sep){if(!e)return"";const n=e.length,r=e.charCodeAt(0);if(s(r)){if(s(e.charCodeAt(1))&&!s(e.charCodeAt(2))){let i=3;const r=i;for(;i<n&&!s(e.charCodeAt(i));i++);if(r!==i&&!s(e.charCodeAt(i+1)))for(i+=1;i<n;i++)if(s(e.charCodeAt(i)))return e.slice(0,i+1).replace(/[\\/]/g,t)}return t}if(h(r)&&58===e.charCodeAt(1))return s(e.charCodeAt(2))?e.slice(0,2)+t:e.slice(0,2);let o=e.indexOf("://");if(-1!==o)for(o+=3;o<n;o++)if(s(e.charCodeAt(o)))return e.slice(0,o+1);return""}function c(e,t,n,s=i.Vn){if(e===t)return!0;if(!e||!t)return!1;if(t.length>e.length)return!1;if(n){if(!(0,r.ns)(e,t))return!1;if(t.length===e.length)return!0;let n=t.length;return t.charAt(t.length-1)===s&&n--,e.charAt(n)===s}return t.charAt(t.length-1)!==s&&(t+=s),0===e.indexOf(t)}function h(e){return e>=65&&e<=90||e>=97&&e<=122}},6958:(e,t,n)=>{"use strict";n.d(t,{YW:()=>T,qg:()=>N});var i=n(1940),r=n(9326),s=n(4320),o=n(8821),a=n(8067),l=n(1508);const c="**",h="/",d="[/\\\\]",u="[^/\\\\]",p=/\//g;function m(e,t){switch(e){case 0:return"";case 1:return`${u}*?`;default:return`(?:${d}|${u}+${d}${t?`|${d}${u}+`:""})*?`}}function f(e,t){if(!e)return[];const n=[];let i=!1,r=!1,s="";for(const o of e){switch(o){case t:if(!i&&!r){n.push(s),s="";continue}break;case"{":i=!0;break;case"}":i=!1;break;case"[":r=!0;break;case"]":r=!1}s+=o}return s&&n.push(s),n}function g(e){if(!e)return"";let t="";const n=f(e,h);if(n.every((e=>e===c)))t=".*";else{let e=!1;n.forEach(((i,r)=>{if(i===c){if(e)return;t+=m(2,r===n.length-1)}else{let e=!1,s="",o=!1,a="";for(const n of i)if("}"!==n&&e)s+=n;else if(!o||"]"===n&&a)switch(n){case"{":e=!0;continue;case"[":o=!0;continue;case"}":{const n=`(?:${f(s,",").map((e=>g(e))).join("|")})`;t+=n,e=!1,s="";break}case"]":t+="["+a+"]",o=!1,a="";break;case"?":t+=u;continue;case"*":t+=m(1);continue;default:t+=(0,l.bm)(n)}else{let e;e="-"===n?n:"^"!==n&&"!"!==n||a?n===h?"":(0,l.bm)(n):"^",a+=e}r<n.length-1&&(n[r+1]!==c||r+2<n.length)&&(t+=d)}e=i===c}))}return t}const b=/^\*\*\/\*\.[\w\.-]+$/,v=/^\*\*\/([\w\.-]+)\/?$/,y=/^{\*\*\/\*?[\w\.-]+\/?(,\*\*\/\*?[\w\.-]+\/?)*}$/,w=/^{\*\*\/\*?[\w\.-]+(\/(\*\*)?)?(,\*\*\/\*?[\w\.-]+(\/(\*\*)?)?)*}$/,_=/^\*\*((\/[\w\.-]+)+)\/?$/,k=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,C=new s.qK(1e4),S=function(){return!1},x=function(){return null};function E(e,t){if(!e)return x;let n;n="string"!==typeof e?e.pattern:e,n=n.trim();const i=`${n}_${!!t.trimForExclusions}`;let r,s=C.get(i);return s||(s=b.test(n)?function(e,t){return function(n,i){return"string"===typeof n&&n.endsWith(e)?t:null}}(n.substr(4),n):(r=v.exec(L(n,t)))?function(e,t){const n=`/${e}`,i=`\\${e}`,r=function(r,s){return"string"!==typeof r?null:s?s===e?t:null:r===e||r.endsWith(n)||r.endsWith(i)?t:null},s=[e];return r.basenames=s,r.patterns=[t],r.allBasenames=s,r}(r[1],n):(t.trimForExclusions?w:y).test(n)?function(e,t){const n=R(e.slice(1,-1).split(",").map((e=>E(e,t))).filter((e=>e!==x)),e),i=n.length;if(!i)return x;if(1===i)return n[0];const r=function(t,i){for(let r=0,s=n.length;r<s;r++)if(n[r](t,i))return e;return null},s=n.find((e=>!!e.allBasenames));s&&(r.allBasenames=s.allBasenames);const o=n.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);o.length&&(r.allPaths=o);return r}(n,t):(r=_.exec(L(n,t)))?I(r[1].substr(1),n,!0):(r=k.exec(L(n,t)))?I(r[1],n,!1):function(e){try{const t=new RegExp(`^${g(e)}$`);return function(n){return t.lastIndex=0,"string"===typeof n&&t.test(n)?e:null}}catch(t){return x}}(n),C.set(i,s)),F(s,e)}function F(e,t){if("string"===typeof t)return e;const n=function(n,i){return(0,r._1)(n,t.base,!a.j9)?e((0,l.NB)(n.substr(t.base.length),o.Vn),i):null};return n.allBasenames=e.allBasenames,n.allPaths=e.allPaths,n.basenames=e.basenames,n.patterns=e.patterns,n}function L(e,t){return t.trimForExclusions&&e.endsWith("/**")?e.substr(0,e.length-2):e}function I(e,t,n){const i=o.Vn===o.SA.sep,r=i?e:e.replace(p,o.Vn),s=o.Vn+r,a=o.SA.sep+e;let l;return l=n?function(n,o){return"string"!==typeof n||n!==r&&!n.endsWith(s)&&(i||n!==e&&!n.endsWith(a))?null:t}:function(n,s){return"string"!==typeof n||n!==r&&(i||n!==e)?null:t},l.allPaths=[(n?"*/":"./")+e],l}function T(e,t,n){return!(!e||"string"!==typeof t)&&N(e)(t,void 0,n)}function N(e,t={}){if(!e)return S;if("string"===typeof e||function(e){const t=e;if(!t)return!1;return"string"===typeof t.base&&"string"===typeof t.pattern}(e)){const n=E(e,t);if(n===x)return S;const i=function(e,t){return!!n(e,t)};return n.allBasenames&&(i.allBasenames=n.allBasenames),n.allPaths&&(i.allPaths=n.allPaths),i}return function(e,t){const n=R(Object.getOwnPropertyNames(e).map((n=>function(e,t,n){if(!1===t)return x;const r=E(e,n);if(r===x)return x;if("boolean"===typeof t)return r;if(t){const n=t.when;if("string"===typeof n){const t=(t,s,o,a)=>{if(!a||!r(t,s))return null;const l=a(n.replace("$(basename)",(()=>o)));return(0,i.Qg)(l)?l.then((t=>t?e:null)):l?e:null};return t.requiresSiblings=!0,t}}return r}(n,e[n],t))).filter((e=>e!==x))),r=n.length;if(!r)return x;if(!n.some((e=>!!e.requiresSiblings))){if(1===r)return n[0];const e=function(e,t){let r;for(let s=0,o=n.length;s<o;s++){const o=n[s](e,t);if("string"===typeof o)return o;(0,i.Qg)(o)&&(r||(r=[]),r.push(o))}return r?(async()=>{for(const e of r){const t=await e;if("string"===typeof t)return t}return null})():null},t=n.find((e=>!!e.allBasenames));t&&(e.allBasenames=t.allBasenames);const s=n.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);return s.length&&(e.allPaths=s),e}const s=function(e,t,r){let s,a;for(let l=0,c=n.length;l<c;l++){const c=n[l];c.requiresSiblings&&r&&(t||(t=(0,o.P8)(e)),s||(s=t.substr(0,t.length-(0,o.LC)(e).length)));const h=c(e,t,s,r);if("string"===typeof h)return h;(0,i.Qg)(h)&&(a||(a=[]),a.push(h))}return a?(async()=>{for(const e of a){const t=await e;if("string"===typeof t)return t}return null})():null},a=n.find((e=>!!e.allBasenames));a&&(s.allBasenames=a.allBasenames);const l=n.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);l.length&&(s.allPaths=l);return s}(e,t)}function R(e,t){const n=e.filter((e=>!!e.basenames));if(n.length<2)return e;const i=n.reduce(((e,t)=>{const n=t.basenames;return n?e.concat(n):e}),[]);let r;if(t){r=[];for(let e=0,n=i.length;e<n;e++)r.push(t)}else r=n.reduce(((e,t)=>{const n=t.patterns;return n?e.concat(n):e}),[]);const s=function(e,t){if("string"!==typeof e)return null;if(!t){let n;for(n=e.length;n>0;n--){const t=e.charCodeAt(n-1);if(47===t||92===t)break}t=e.substr(n)}const n=i.indexOf(t);return-1!==n?r[n]:null};s.basenames=i,s.patterns=r,s.allBasenames=i;const o=e.filter((e=>!e.basenames));return o.push(s),o}},5600:(e,t,n)=>{"use strict";n.d(t,{e2:()=>o,sN:()=>r,v7:()=>h});var i=n(1508);function r(e,t){switch(typeof e){case"object":return null===e?s(349,t):Array.isArray(e)?(n=e,i=s(104579,i=t),n.reduce(((e,t)=>r(t,e)),i)):function(e,t){return t=s(181387,t),Object.keys(e).sort().reduce(((t,n)=>(t=o(n,t),r(e[n],t))),t)}(e,t);case"string":return o(e,t);case"boolean":return function(e,t){return s(e?433:863,t)}(e,t);case"number":return s(e,t);case"undefined":return s(937,t);default:return s(617,t)}var n,i}function s(e,t){return(t<<5)-t+e|0}function o(e,t){t=s(149417,t);for(let n=0,i=e.length;n<i;n++)t=s(e.charCodeAt(n),t);return t}function a(e,t,n=32){const i=n-t;return(e<<t|(~((1<<i)-1)&e)>>>i)>>>0}function l(e,t=0,n=e.byteLength,i=0){for(let r=0;r<n;r++)e[t+r]=i}function c(e,t=32){return e instanceof ArrayBuffer?Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join(""):function(e,t,n="0"){for(;e.length<t;)e=n+e;return e}((e>>>0).toString(16),t/4)}class h{static{this._bigBlock32=new DataView(new ArrayBuffer(320))}constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(0===t)return;const n=this._buff;let r,s,o=this._buffLen,a=this._leftoverHighSurrogate;for(0!==a?(r=a,s=-1,a=0):(r=e.charCodeAt(0),s=0);;){let l=r;if(i.pc(r)){if(!(s+1<t)){a=r;break}{const t=e.charCodeAt(s+1);i.LJ(t)?(s++,l=i.z_(r,t)):l=65533}}else i.LJ(r)&&(l=65533);if(o=this._push(n,o,l),s++,!(s<t))break;r=e.charCodeAt(s)}this._buffLen=o,this._leftoverHighSurrogate=a}_push(e,t,n){return n<128?e[t++]=n:n<2048?(e[t++]=192|(1984&n)>>>6,e[t++]=128|(63&n)>>>0):n<65536?(e[t++]=224|(61440&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0):(e[t++]=240|(1835008&n)>>>18,e[t++]=128|(258048&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>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()),c(this._h0)+c(this._h1)+c(this._h2)+c(this._h3)+c(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,l(this._buff,this._buffLen),this._buffLen>56&&(this._step(),l(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=h._bigBlock32,t=this._buffDV;for(let a=0;a<64;a+=4)e.setUint32(a,t.getUint32(a,!1),!1);for(let h=64;h<320;h+=4)e.setUint32(h,a(e.getUint32(h-12,!1)^e.getUint32(h-32,!1)^e.getUint32(h-56,!1)^e.getUint32(h-64,!1),1),!1);let n,i,r,s=this._h0,o=this._h1,l=this._h2,c=this._h3,d=this._h4;for(let h=0;h<80;h++)h<20?(n=o&l|~o&c,i=1518500249):h<40?(n=o^l^c,i=1859775393):h<60?(n=o&l|o&c|l&c,i=2400959708):(n=o^l^c,i=3395469782),r=a(s,5)+n+d+i+e.getUint32(4*h,!1)&4294967295,d=c,c=l,l=a(o,30),o=s,s=r;this._h0=this._h0+s&4294967295,this._h1=this._h1+o&4294967295,this._h2=this._h2+l&4294967295,this._h3=this._h3+c&4294967295,this._h4=this._h4+d&4294967295}}},2522:(e,t,n)=>{"use strict";var i;n.d(t,{f:()=>i}),function(e){function t(e){return e&&"object"===typeof e&&"function"===typeof e[Symbol.iterator]}e.is=t;const n=Object.freeze([]);function*i(e){yield e}e.empty=function(){return n},e.single=i,e.wrap=function(e){return t(e)?e:i(e)},e.from=function(e){return e||n},e.reverse=function*(e){for(let t=e.length-1;t>=0;t--)yield e[t]},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){let n=0;for(const i of e)if(t(i,n++))return!0;return!1},e.find=function(e,t){for(const n of e)if(t(n))return n},e.filter=function*(e,t){for(const n of e)t(n)&&(yield n)},e.map=function*(e,t){let n=0;for(const i of e)yield t(i,n++)},e.flatMap=function*(e,t){let n=0;for(const i of e)yield*t(i,n++)},e.concat=function*(...e){for(const t of e)yield*t},e.reduce=function(e,t,n){let i=n;for(const r of e)i=t(i,r);return i},e.slice=function*(e,t,n=e.length){for(t<0&&(t+=e.length),n<0?n+=e.length:n>e.length&&(n=e.length);t<n;t++)yield e[t]},e.consume=function(t,n=Number.POSITIVE_INFINITY){const i=[];if(0===n)return[i,t];const r=t[Symbol.iterator]();for(let s=0;s<n;s++){const t=r.next();if(t.done)return[i,e.empty()];i.push(t.value)}return[i,{[Symbol.iterator]:()=>r}]},e.asyncToArray=async function(e){const t=[];for await(const n of e)t.push(n);return Promise.resolve(t)}}(i||(i={}))},1090:(e,t,n)=>{"use strict";n.d(t,{d:()=>i});class i{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}},1484:(e,t,n)=>{"use strict";function i(e,t){const n=this;let i,r=!1;return function(){if(r)return i;if(r=!0,t)try{i=e.apply(n,arguments)}finally{t()}else i=e.apply(n,arguments);return i}}n.d(t,{jG:()=>p,$w:()=>f,Cm:()=>u,HE:()=>m,qE:()=>h,AS:()=>c,VD:()=>a,s:()=>d,Ay:()=>o});var r=n(2522);let s=null;function o(e){return s?.trackDisposable(e),e}function a(e){s?.markAsDisposed(e)}function l(e,t){s?.setParent(e,t)}function c(e){if(r.f.is(e)){const n=[];for(const i of e)if(i)try{i.dispose()}catch(t){n.push(t)}if(1===n.length)throw n[0];if(n.length>1)throw new AggregateError(n,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function h(...e){const t=d((()=>c(e)));return function(e,t){if(s)for(const n of e)s.setParent(n,t)}(e,t),t}function d(e){const t=o({dispose:i((()=>{a(t),e()}))});return t}class u{static{this.DISABLE_DISPOSED_WARNING=!1}constructor(){this._toDispose=new Set,this._isDisposed=!1,o(this)}dispose(){this._isDisposed||(a(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(0!==this._toDispose.size)try{c(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return l(e,this),this._isDisposed?u.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}deleteAndLeak(e){e&&this._toDispose.has(e)&&(this._toDispose.delete(e),l(e,null))}}class p{static{this.None=Object.freeze({dispose(){}})}constructor(){this._store=new u,o(this),l(this._store,this)}dispose(){a(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}class m{constructor(){this._isDisposed=!1,o(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){this._isDisposed||e===this._value||(this._value?.dispose(),e&&l(e,this),this._value=e)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,a(this),this._value?.dispose(),this._value=void 0}}class f{constructor(){this._store=new Map,this._isDisposed=!1,o(this)}dispose(){a(this),this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{c(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,t,n=!1){this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),n||this._store.get(e)?.dispose(),this._store.set(e,t)}deleteAndDispose(e){this._store.get(e)?.dispose(),this._store.delete(e)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}},8925:(e,t,n)=>{"use strict";n.d(t,{w:()=>r});class i{static{this.Undefined=new i(void 0)}constructor(e){this.element=e,this.next=i.Undefined,this.prev=i.Undefined}}class r{constructor(){this._first=i.Undefined,this._last=i.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===i.Undefined}clear(){let e=this._first;for(;e!==i.Undefined;){const t=e.next;e.prev=i.Undefined,e.next=i.Undefined,e=t}this._first=i.Undefined,this._last=i.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new i(e);if(this._first===i.Undefined)this._first=n,this._last=n;else if(t){const e=this._last;this._last=n,n.prev=e,e.next=n}else{const 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!==i.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==i.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==i.Undefined&&e.next!==i.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===i.Undefined&&e.next===i.Undefined?(this._first=i.Undefined,this._last=i.Undefined):e.next===i.Undefined?(this._last=this._last.prev,this._last.next=i.Undefined):e.prev===i.Undefined&&(this._first=this._first.next,this._first.prev=i.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==i.Undefined;)yield e.element,e=e.next}}},4320:(e,t,n)=>{"use strict";var i,r;n.d(t,{cO:()=>h,db:()=>d,fT:()=>o,qK:()=>c});class s{constructor(e,t){this.uri=e,this.value=t}}class o{static{this.defaultToKey=e=>e.toString()}constructor(e,t){if(this[i]="ResourceMap",e instanceof o)this.map=new Map(e.map),this.toKey=t??o.defaultToKey;else if(function(e){return Array.isArray(e)}(e)){this.map=new Map,this.toKey=t??o.defaultToKey;for(const[t,n]of e)this.set(t,n)}else this.map=new Map,this.toKey=e??o.defaultToKey}set(e,t){return this.map.set(this.toKey(e),new s(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){"undefined"!==typeof t&&(e=e.bind(t));for(const[n,i]of this.map)e(i.value,i.uri,this)}*values(){for(const e of this.map.values())yield e.value}*keys(){for(const e of this.map.values())yield e.uri}*entries(){for(const e of this.map.values())yield[e.uri,e.value]}*[(i=Symbol.toStringTag,Symbol.iterator)](){for(const[,e]of this.map)yield[e.uri,e.value]}}class a{constructor(){this[r]="LinkedMap",this._map=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){const n=this._map.get(e);if(n)return 0!==t&&this.touch(n,t),n.value}set(e,t,n=0){let i=this._map.get(e);if(i)i.value=t,0!==n&&this.touch(i,n);else{switch(i={key:e,value:t,next:void 0,previous:void 0},n){case 0:case 2:default:this.addItemLast(i);break;case 1:this.addItemFirst(i)}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const 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 new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const n=this._state;let i=this._head;for(;i;){if(t?e.bind(t)(i.value,i.key,this):e(i.value,i.key,this),this._state!==n)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.key,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}values(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.value,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}entries(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:[n.key,n.value],done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}[(r=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();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(0===e)return void this.clear();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){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;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 new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,n=e.previous;if(!t||!n)throw new 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 new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;const 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(2===t){if(e===this._tail)return;const 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(){const e=[];return this.forEach(((t,n)=>{e.push([n,t])})),e}fromJSON(e){this.clear();for(const[t,n]of e)this.set(t,n)}}class l extends a{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))}}class c extends l{constructor(e,t=1){super(e,t)}trim(e){this.trimOld(e)}set(e,t){return super.set(e,t),this.checkTrim(),this}}class h{constructor(e){if(this._m1=new Map,this._m2=new Map,e)for(const[t,n]of e)this.set(t,n)}clear(){this._m1.clear(),this._m2.clear()}set(e,t){this._m1.set(e,t),this._m2.set(t,e)}get(e){return this._m1.get(e)}getKey(e){return this._m2.get(e)}delete(e){const t=this._m1.get(e);return void 0!==t&&(this._m1.delete(e),this._m2.delete(t),!0)}keys(){return this._m1.keys()}values(){return this._m1.values()}}class d{constructor(){this.map=new Map}add(e,t){let n=this.map.get(e);n||(n=new Set,this.map.set(e,n)),n.add(t)}delete(e,t){const n=this.map.get(e);n&&(n.delete(t),0===n.size&&this.map.delete(e))}forEach(e,t){const n=this.map.get(e);n&&n.forEach(t)}get(e){const t=this.map.get(e);return t||new Set}}},1939:(e,t,n)=>{"use strict";n.d(t,{K:()=>i});const i=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"})},6456:(e,t,n)=>{"use strict";n.d(t,{ny:()=>i,v$:()=>c,zl:()=>u});var i,r=n(4383),s=n(8067),o=n(1508),a=n(9400),l=n(8821);function c(e,t){return a.r.isUri(e)?(0,o.Q_)(e.scheme,t):(0,o.ns)(e,t+":")}!function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command",e.vscodeRemote="vscode-remote",e.vscodeRemoteResource="vscode-remote-resource",e.vscodeManagedRemoteResource="vscode-managed-remote-resource",e.vscodeUserData="vscode-userdata",e.vscodeCustomEditor="vscode-custom-editor",e.vscodeNotebookCell="vscode-notebook-cell",e.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",e.vscodeNotebookCellMetadataDiff="vscode-notebook-cell-metadata-diff",e.vscodeNotebookCellOutput="vscode-notebook-cell-output",e.vscodeNotebookCellOutputDiff="vscode-notebook-cell-output-diff",e.vscodeNotebookMetadata="vscode-notebook-metadata",e.vscodeInteractiveInput="vscode-interactive-input",e.vscodeSettings="vscode-settings",e.vscodeWorkspaceTrust="vscode-workspace-trust",e.vscodeTerminal="vscode-terminal",e.vscodeChatCodeBlock="vscode-chat-code-block",e.vscodeChatCodeCompareBlock="vscode-chat-code-compare-block",e.vscodeChatSesssion="vscode-chat-editor",e.webviewPanel="webview-panel",e.vscodeWebview="vscode-webview",e.extension="extension",e.vscodeFileResource="vscode-file",e.tmp="tmp",e.vsls="vsls",e.vscodeSourceControl="vscode-scm",e.commentsInput="comment",e.codeSetting="code-setting",e.outputChannel="output"}(i||(i={}));const h=new class{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(e){this._preferredWebSchema=e}get _remoteResourcesPath(){return l.SA.join(this._serverRootPath,i.vscodeRemoteResource)}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(h){return r.dz(h),e}const t=e.authority;let n=this._hosts[t];n&&-1!==n.indexOf(":")&&-1===n.indexOf("[")&&(n=`[${n}]`);const o=this._ports[t],l=this._connectionTokens[t];let c=`path=${encodeURIComponent(e.path)}`;return"string"===typeof l&&(c+=`&tkn=${encodeURIComponent(l)}`),a.r.from({scheme:s.HZ?this._preferredWebSchema:i.vscodeRemoteResource,authority:`${n}:${o}`,path:this._remoteResourcesPath,query:c})}};class d{static{this.FALLBACK_AUTHORITY="vscode-app"}asBrowserUri(e){const t=this.toUri(e);return this.uriToBrowserUri(t)}uriToBrowserUri(e){return e.scheme===i.vscodeRemote?h.rewrite(e):e.scheme!==i.file||!s.ib&&s.lg!==`${i.vscodeFileResource}://${d.FALLBACK_AUTHORITY}`?e:e.with({scheme:i.vscodeFileResource,authority:e.authority||d.FALLBACK_AUTHORITY,query:null,fragment:null})}toUri(e,t){if(a.r.isUri(e))return e;if(globalThis._VSCODE_FILE_ROOT){const t=globalThis._VSCODE_FILE_ROOT;if(/^\w[\w\d+.-]*:\/\//.test(t))return a.r.joinPath(a.r.parse(t,!0),e);const n=l.fj(t,e);return a.r.file(n)}return a.r.parse(t.toUrl(e))}}const u=new d;var p;!function(e){const t=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);e.CoopAndCoep=Object.freeze(t.get("3"));const n="vscode-coi";e.getHeadersFromQuery=function(e){let i;"string"===typeof e?i=new URL(e).searchParams:e instanceof URL?i=e.searchParams:a.r.isUri(e)&&(i=new URL(e.toString(!0)).searchParams);const r=i?.get(n);if(r)return t.get(r)},e.addSearchParam=function(e,t,i){if(!globalThis.crossOriginIsolated)return;const r=t&&i?"3":i?"2":"1";e instanceof URLSearchParams?e.set(n,r):e[n]=r}}(p||(p={}))},146:(e,t,n)=>{"use strict";n.d(t,{V0:()=>r,aI:()=>i,kT:()=>s});Object.prototype.hasOwnProperty;function i(e,t){if(e===t)return!0;if(null===e||void 0===e||null===t||void 0===t)return!1;if(typeof e!==typeof t)return!1;if("object"!==typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;let n,r;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!i(e[n],t[n]))return!1}else{const s=[];for(r in e)s.push(r);s.sort();const o=[];for(r in t)o.push(r);if(o.sort(),!i(s,o))return!1;for(n=0;n<s.length;n++)if(!i(e[s[n]],t[s[n]]))return!1}return!0}function r(e){const t=[];for(const n of function(e){let t=[];for(;Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}(e))"function"===typeof e[n]&&t.push(n);return t}function s(e,t){const n=e=>function(){const n=Array.prototype.slice.call(arguments,0);return t(e,n)},i={};for(const r of e)i[r]=n(r);return i}},8821:(e,t,n)=>{"use strict";n.d(t,{P8:()=>L,pD:()=>F,LC:()=>I,fj:()=>S,S8:()=>C,SA:()=>k,V8:()=>E,hd:()=>x,Vn:()=>T,IN:()=>w});var i=n(8067);let r;const s=globalThis.vscode;if("undefined"!==typeof s&&"undefined"!==typeof s.process){const e=s.process;r={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd:()=>e.cwd()}}else r="undefined"!==typeof process&&"string"===typeof process?.versions?.node?{get platform(){return process.platform},get arch(){return process.arch},get env(){return{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}},cwd:()=>({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}.VSCODE_CWD||process.cwd())}:{get platform(){return i.uF?"win32":i.zx?"darwin":"linux"},get arch(){},get env(){return{}},cwd:()=>"/"};const o=r.cwd,a=(r.env,r.platform),l=46,c=47,h=92,d=58;class u extends Error{constructor(e,t,n){let i;"string"===typeof t&&0===t.indexOf("not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";const r=-1!==e.indexOf(".")?"property":"argument";let s=`The "${e}" ${r} ${i} of type ${t}`;s+=". Received type "+typeof n,super(s),this.code="ERR_INVALID_ARG_TYPE"}}function p(e,t){if("string"!==typeof e)throw new u(t,"string",e)}const m="win32"===a;function f(e){return e===c||e===h}function g(e){return e===c}function b(e){return e>=65&&e<=90||e>=97&&e<=122}function v(e,t,n,i){let r="",s=0,o=-1,a=0,h=0;for(let d=0;d<=e.length;++d){if(d<e.length)h=e.charCodeAt(d);else{if(i(h))break;h=c}if(i(h)){if(o===d-1||1===a);else if(2===a){if(r.length<2||2!==s||r.charCodeAt(r.length-1)!==l||r.charCodeAt(r.length-2)!==l){if(r.length>2){const e=r.lastIndexOf(n);-1===e?(r="",s=0):(r=r.slice(0,e),s=r.length-1-r.lastIndexOf(n)),o=d,a=0;continue}if(0!==r.length){r="",s=0,o=d,a=0;continue}}t&&(r+=r.length>0?`${n}..`:"..",s=2)}else r.length>0?r+=`${n}${e.slice(o+1,d)}`:r=e.slice(o+1,d),s=d-o-1;o=d,a=0}else h===l&&-1!==a?++a:a=-1}return r}function y(e,t){!function(e,t){if(null===e||"object"!==typeof e)throw new u(t,"Object",e)}(t,"pathObject");const n=t.dir||t.root,i=t.base||`${t.name||""}${r=t.ext,r?`${"."===r[0]?"":"."}${r}`:""}`;var r;return n?n===t.root?`${n}${i}`:`${n}${e}${i}`:i}const w={resolve(...e){let t="",n="",i=!1;for(let r=e.length-1;r>=-1;r--){let s;if(r>=0){if(s=e[r],p(s,`paths[${r}]`),0===s.length)continue}else 0===t.length?s=o():(s={NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}[`=${t}`]||o(),(void 0===s||s.slice(0,2).toLowerCase()!==t.toLowerCase()&&s.charCodeAt(2)===h)&&(s=`${t}\\`));const a=s.length;let l=0,c="",u=!1;const m=s.charCodeAt(0);if(1===a)f(m)&&(l=1,u=!0);else if(f(m))if(u=!0,f(s.charCodeAt(1))){let e=2,t=e;for(;e<a&&!f(s.charCodeAt(e));)e++;if(e<a&&e!==t){const n=s.slice(t,e);for(t=e;e<a&&f(s.charCodeAt(e));)e++;if(e<a&&e!==t){for(t=e;e<a&&!f(s.charCodeAt(e));)e++;e!==a&&e===t||(c=`\\\\${n}\\${s.slice(t,e)}`,l=e)}}}else l=1;else b(m)&&s.charCodeAt(1)===d&&(c=s.slice(0,2),l=2,a>2&&f(s.charCodeAt(2))&&(u=!0,l=3));if(c.length>0)if(t.length>0){if(c.toLowerCase()!==t.toLowerCase())continue}else t=c;if(i){if(t.length>0)break}else if(n=`${s.slice(l)}\\${n}`,i=u,u&&t.length>0)break}return n=v(n,!i,"\\",f),i?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){p(e,"path");const t=e.length;if(0===t)return".";let n,i=0,r=!1;const s=e.charCodeAt(0);if(1===t)return g(s)?"\\":e;if(f(s))if(r=!0,f(e.charCodeAt(1))){let r=2,s=r;for(;r<t&&!f(e.charCodeAt(r));)r++;if(r<t&&r!==s){const o=e.slice(s,r);for(s=r;r<t&&f(e.charCodeAt(r));)r++;if(r<t&&r!==s){for(s=r;r<t&&!f(e.charCodeAt(r));)r++;if(r===t)return`\\\\${o}\\${e.slice(s)}\\`;r!==s&&(n=`\\\\${o}\\${e.slice(s,r)}`,i=r)}}}else i=1;else b(s)&&e.charCodeAt(1)===d&&(n=e.slice(0,2),i=2,t>2&&f(e.charCodeAt(2))&&(r=!0,i=3));let o=i<t?v(e.slice(i),!r,"\\",f):"";return 0!==o.length||r||(o="."),o.length>0&&f(e.charCodeAt(t-1))&&(o+="\\"),void 0===n?r?`\\${o}`:o:r?`${n}\\${o}`:`${n}${o}`},isAbsolute(e){p(e,"path");const t=e.length;if(0===t)return!1;const n=e.charCodeAt(0);return f(n)||t>2&&b(n)&&e.charCodeAt(1)===d&&f(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let t,n;for(let s=0;s<e.length;++s){const i=e[s];p(i,"path"),i.length>0&&(void 0===t?t=n=i:t+=`\\${i}`)}if(void 0===t)return".";let i=!0,r=0;if("string"===typeof n&&f(n.charCodeAt(0))){++r;const e=n.length;e>1&&f(n.charCodeAt(1))&&(++r,e>2&&(f(n.charCodeAt(2))?++r:i=!1))}if(i){for(;r<t.length&&f(t.charCodeAt(r));)r++;r>=2&&(t=`\\${t.slice(r)}`)}return w.normalize(t)},relative(e,t){if(p(e,"from"),p(t,"to"),e===t)return"";const n=w.resolve(e),i=w.resolve(t);if(n===i)return"";if((e=n.toLowerCase())===(t=i.toLowerCase()))return"";let r=0;for(;r<e.length&&e.charCodeAt(r)===h;)r++;let s=e.length;for(;s-1>r&&e.charCodeAt(s-1)===h;)s--;const o=s-r;let a=0;for(;a<t.length&&t.charCodeAt(a)===h;)a++;let l=t.length;for(;l-1>a&&t.charCodeAt(l-1)===h;)l--;const c=l-a,d=o<c?o:c;let u=-1,m=0;for(;m<d;m++){const n=e.charCodeAt(r+m);if(n!==t.charCodeAt(a+m))break;n===h&&(u=m)}if(m!==d){if(-1===u)return i}else{if(c>d){if(t.charCodeAt(a+m)===h)return i.slice(a+m+1);if(2===m)return i.slice(a+m)}o>d&&(e.charCodeAt(r+m)===h?u=m:2===m&&(u=3)),-1===u&&(u=0)}let f="";for(m=r+u+1;m<=s;++m)m!==s&&e.charCodeAt(m)!==h||(f+=0===f.length?"..":"\\..");return a+=u,f.length>0?`${f}${i.slice(a,l)}`:(i.charCodeAt(a)===h&&++a,i.slice(a,l))},toNamespacedPath(e){if("string"!==typeof e||0===e.length)return e;const t=w.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===h){if(t.charCodeAt(1)===h){const e=t.charCodeAt(2);if(63!==e&&e!==l)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(b(t.charCodeAt(0))&&t.charCodeAt(1)===d&&t.charCodeAt(2)===h)return`\\\\?\\${t}`;return e},dirname(e){p(e,"path");const t=e.length;if(0===t)return".";let n=-1,i=0;const r=e.charCodeAt(0);if(1===t)return f(r)?e:".";if(f(r)){if(n=i=1,f(e.charCodeAt(1))){let r=2,s=r;for(;r<t&&!f(e.charCodeAt(r));)r++;if(r<t&&r!==s){for(s=r;r<t&&f(e.charCodeAt(r));)r++;if(r<t&&r!==s){for(s=r;r<t&&!f(e.charCodeAt(r));)r++;if(r===t)return e;r!==s&&(n=i=r+1)}}}}else b(r)&&e.charCodeAt(1)===d&&(n=t>2&&f(e.charCodeAt(2))?3:2,i=n);let s=-1,o=!0;for(let a=t-1;a>=i;--a)if(f(e.charCodeAt(a))){if(!o){s=a;break}}else o=!1;if(-1===s){if(-1===n)return".";s=n}return e.slice(0,s)},basename(e,t){void 0!==t&&p(t,"suffix"),p(e,"path");let n,i=0,r=-1,s=!0;if(e.length>=2&&b(e.charCodeAt(0))&&e.charCodeAt(1)===d&&(i=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(n=e.length-1;n>=i;--n){const l=e.charCodeAt(n);if(f(l)){if(!s){i=n+1;break}}else-1===a&&(s=!1,a=n+1),o>=0&&(l===t.charCodeAt(o)?-1===--o&&(r=n):(o=-1,r=a))}return i===r?r=a:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=i;--n)if(f(e.charCodeAt(n))){if(!s){i=n+1;break}}else-1===r&&(s=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname(e){p(e,"path");let t=0,n=-1,i=0,r=-1,s=!0,o=0;e.length>=2&&e.charCodeAt(1)===d&&b(e.charCodeAt(0))&&(t=i=2);for(let a=e.length-1;a>=t;--a){const t=e.charCodeAt(a);if(f(t)){if(!s){i=a+1;break}}else-1===r&&(s=!1,r=a+1),t===l?-1===n?n=a:1!==o&&(o=1):-1!==n&&(o=-1)}return-1===n||-1===r||0===o||1===o&&n===r-1&&n===i+1?"":e.slice(n,r)},format:y.bind(null,"\\"),parse(e){p(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.length;let i=0,r=e.charCodeAt(0);if(1===n)return f(r)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(f(r)){if(i=1,f(e.charCodeAt(1))){let t=2,r=t;for(;t<n&&!f(e.charCodeAt(t));)t++;if(t<n&&t!==r){for(r=t;t<n&&f(e.charCodeAt(t));)t++;if(t<n&&t!==r){for(r=t;t<n&&!f(e.charCodeAt(t));)t++;t===n?i=t:t!==r&&(i=t+1)}}}}else if(b(r)&&e.charCodeAt(1)===d){if(n<=2)return t.root=t.dir=e,t;if(i=2,f(e.charCodeAt(2))){if(3===n)return t.root=t.dir=e,t;i=3}}i>0&&(t.root=e.slice(0,i));let s=-1,o=i,a=-1,c=!0,h=e.length-1,u=0;for(;h>=i;--h)if(r=e.charCodeAt(h),f(r)){if(!c){o=h+1;break}}else-1===a&&(c=!1,a=h+1),r===l?-1===s?s=h:1!==u&&(u=1):-1!==s&&(u=-1);return-1!==a&&(-1===s||0===u||1===u&&s===a-1&&s===o+1?t.base=t.name=e.slice(o,a):(t.name=e.slice(o,s),t.base=e.slice(o,a),t.ext=e.slice(s,a))),t.dir=o>0&&o!==i?e.slice(0,o-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},_=(()=>{if(m){const e=/\\/g;return()=>{const t=o().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>o()})(),k={resolve(...e){let t="",n=!1;for(let i=e.length-1;i>=-1&&!n;i--){const r=i>=0?e[i]:_();p(r,`paths[${i}]`),0!==r.length&&(t=`${r}/${t}`,n=r.charCodeAt(0)===c)}return t=v(t,!n,"/",g),n?`/${t}`:t.length>0?t:"."},normalize(e){if(p(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===c,n=e.charCodeAt(e.length-1)===c;return 0===(e=v(e,!t,"/",g)).length?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute:e=>(p(e,"path"),e.length>0&&e.charCodeAt(0)===c),join(...e){if(0===e.length)return".";let t;for(let n=0;n<e.length;++n){const i=e[n];p(i,"path"),i.length>0&&(void 0===t?t=i:t+=`/${i}`)}return void 0===t?".":k.normalize(t)},relative(e,t){if(p(e,"from"),p(t,"to"),e===t)return"";if((e=k.resolve(e))===(t=k.resolve(t)))return"";const n=e.length,i=n-1,r=t.length-1,s=i<r?i:r;let o=-1,a=0;for(;a<s;a++){const n=e.charCodeAt(1+a);if(n!==t.charCodeAt(1+a))break;n===c&&(o=a)}if(a===s)if(r>s){if(t.charCodeAt(1+a)===c)return t.slice(1+a+1);if(0===a)return t.slice(1+a)}else i>s&&(e.charCodeAt(1+a)===c?o=a:0===a&&(o=0));let l="";for(a=1+o+1;a<=n;++a)a!==n&&e.charCodeAt(a)!==c||(l+=0===l.length?"..":"/..");return`${l}${t.slice(1+o)}`},toNamespacedPath:e=>e,dirname(e){if(p(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===c;let n=-1,i=!0;for(let r=e.length-1;r>=1;--r)if(e.charCodeAt(r)===c){if(!i){n=r;break}}else i=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename(e,t){void 0!==t&&p(t,"ext"),p(e,"path");let n,i=0,r=-1,s=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(n=e.length-1;n>=0;--n){const l=e.charCodeAt(n);if(l===c){if(!s){i=n+1;break}}else-1===a&&(s=!1,a=n+1),o>=0&&(l===t.charCodeAt(o)?-1===--o&&(r=n):(o=-1,r=a))}return i===r?r=a:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===c){if(!s){i=n+1;break}}else-1===r&&(s=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname(e){p(e,"path");let t=-1,n=0,i=-1,r=!0,s=0;for(let o=e.length-1;o>=0;--o){const a=e.charCodeAt(o);if(a!==c)-1===i&&(r=!1,i=o+1),a===l?-1===t?t=o:1!==s&&(s=1):-1!==t&&(s=-1);else if(!r){n=o+1;break}}return-1===t||-1===i||0===s||1===s&&t===i-1&&t===n+1?"":e.slice(t,i)},format:y.bind(null,"/"),parse(e){p(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.charCodeAt(0)===c;let i;n?(t.root="/",i=1):i=0;let r=-1,s=0,o=-1,a=!0,h=e.length-1,d=0;for(;h>=i;--h){const t=e.charCodeAt(h);if(t!==c)-1===o&&(a=!1,o=h+1),t===l?-1===r?r=h:1!==d&&(d=1):-1!==r&&(d=-1);else if(!a){s=h+1;break}}if(-1!==o){const i=0===s&&n?1:s;-1===r||0===d||1===d&&r===o-1&&r===s+1?t.base=t.name=e.slice(i,o):(t.name=e.slice(i,r),t.base=e.slice(i,o),t.ext=e.slice(r,o))}return s>0?t.dir=e.slice(0,s-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};k.win32=w.win32=w,k.posix=w.posix=k;const C=m?w.normalize:k.normalize,S=m?w.join:k.join,x=m?w.resolve:k.resolve,E=m?w.relative:k.relative,F=m?w.dirname:k.dirname,L=m?w.basename:k.basename,I=m?w.extname:k.extname,T=m?w.sep:k.sep},8067:(e,t,n)=>{"use strict";n.d(t,{H8:()=>P,HZ:()=>I,OS:()=>A,UP:()=>V,_p:()=>D,cm:()=>z,gm:()=>B,ib:()=>L,j9:()=>F,lg:()=>T,nr:()=>W,uF:()=>x,zx:()=>E});var i=n(8209);const r="en";let s,o,a=!1,l=!1,c=!1,h=!1,d=!1,u=!1,p=!1,m=!1,f=!1,g=!1,b=null,v=null,y=null;const w=globalThis;let _;"undefined"!==typeof w.vscode&&"undefined"!==typeof w.vscode.process?_=w.vscode.process:"undefined"!==typeof process&&"string"===typeof process?.versions?.node&&(_=process);const k="string"===typeof _?.versions?.electron,C=k&&"renderer"===_?.type;if("object"===typeof _){a="win32"===_.platform,l="darwin"===_.platform,c="linux"===_.platform,h=c&&!!_.env.SNAP&&!!_.env.SNAP_REVISION,p=k,f=!!_.env.CI||!!_.env.BUILD_ARTIFACTSTAGINGDIRECTORY,s=r,b=r;const e=_.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e);s=t.userLocale,v=t.osLocale,b=t.resolvedLanguage||r,y=t.languagePack?.translationsConfigFile}catch(U){}d=!0}else"object"!==typeof navigator||C?console.error("Unable to resolve platform."):(o=navigator.userAgent,a=o.indexOf("Windows")>=0,l=o.indexOf("Macintosh")>=0,m=(o.indexOf("Macintosh")>=0||o.indexOf("iPad")>=0||o.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,c=o.indexOf("Linux")>=0,g=o?.indexOf("Mobi")>=0,u=!0,b=i.i8()||r,s=navigator.language.toLowerCase(),v=s);let S=0;l?S=1:a?S=3:c&&(S=2);const x=a,E=l,F=c,L=d,I=u,T=u&&"function"===typeof w.importScripts?w.origin:void 0,N=o,R="function"===typeof w.postMessage&&!w.importScripts,D=(()=>{if(R){const e=[];w.addEventListener("message",(t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let n=0,i=e.length;n<i;n++){const i=e[n];if(i.id===t.data.vscodeScheduleAsyncWork)return e.splice(n,1),void i.callback()}}));let t=0;return n=>{const i=++t;e.push({id:i,callback:n}),w.postMessage({vscodeScheduleAsyncWork:i},"*")}}return e=>setTimeout(e)})(),A=l||m?2:a?1:3;let M=!0,O=!1;function z(){if(!O){O=!0;const e=new Uint8Array(2);e[0]=1,e[1]=2;const t=new Uint16Array(e.buffer);M=513===t[0]}return M}const P=!!(N&&N.indexOf("Chrome")>=0),B=!!(N&&N.indexOf("Firefox")>=0),W=!!(!P&&N&&N.indexOf("Safari")>=0),V=!!(N&&N.indexOf("Edg/")>=0);N&&N.indexOf("Android")},9403:(e,t,n)=>{"use strict";n.d(t,{B6:()=>f,P8:()=>u});var i=n(9326),r=n(6456),s=n(8821),o=n(8067),a=n(1508),l=n(9400);function c(e){return(0,l.I)(e,!0)}class h{constructor(e){this._ignorePathCasing=e}compare(e,t,n=!1){return e===t?0:(0,a.UD)(this.getComparisonKey(e,n),this.getComparisonKey(t,n))}isEqual(e,t,n=!1){return e===t||!(!e||!t)&&this.getComparisonKey(e,n)===this.getComparisonKey(t,n)}getComparisonKey(e,t=!1){return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:t?null:void 0}).toString()}isEqualOrParent(e,t,n=!1){if(e.scheme===t.scheme){if(e.scheme===r.ny.file)return i._1(c(e),c(t),this._ignorePathCasing(e))&&e.query===t.query&&(n||e.fragment===t.fragment);if(p(e.authority,t.authority))return i._1(e.path,t.path,this._ignorePathCasing(e),"/")&&e.query===t.query&&(n||e.fragment===t.fragment)}return!1}joinPath(e,...t){return l.r.joinPath(e,...t)}basenameOrAuthority(e){return u(e)||e.authority}basename(e){return s.SA.basename(e.path)}extname(e){return s.SA.extname(e.path)}dirname(e){if(0===e.path.length)return e;let t;return e.scheme===r.ny.file?t=l.r.file(s.pD(c(e))).path:(t=s.SA.dirname(e.path),e.authority&&t.length&&47!==t.charCodeAt(0)&&(console.error(`dirname("${e.toString})) resulted in a relative path`),t="/")),e.with({path:t})}normalizePath(e){if(!e.path.length)return e;let t;return t=e.scheme===r.ny.file?l.r.file(s.S8(c(e))).path:s.SA.normalize(e.path),e.with({path:t})}relativePath(e,t){if(e.scheme!==t.scheme||!p(e.authority,t.authority))return;if(e.scheme===r.ny.file){const n=s.V8(c(e),c(t));return o.uF?i.TH(n):n}let n=e.path||"/";const a=t.path||"/";if(this._ignorePathCasing(e)){let e=0;for(const t=Math.min(n.length,a.length);e<t&&(n.charCodeAt(e)===a.charCodeAt(e)||n.charAt(e).toLowerCase()===a.charAt(e).toLowerCase());e++);n=a.substr(0,e)+n.substr(e)}return s.SA.relative(n,a)}resolvePath(e,t){if(e.scheme===r.ny.file){const n=l.r.file(s.hd(c(e),t));return e.with({authority:n.authority,path:n.path})}return t=i.kb(t),e.with({path:s.SA.resolve(e.path,t)})}isAbsolutePath(e){return!!e.path&&"/"===e.path[0]}isEqualAuthority(e,t){return e===t||void 0!==e&&void 0!==t&&(0,a.Q_)(e,t)}hasTrailingPathSeparator(e,t=s.Vn){if(e.scheme===r.ny.file){const n=c(e);return n.length>i.Zn(n).length&&n[n.length-1]===t}{const t=e.path;return t.length>1&&47===t.charCodeAt(t.length-1)&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}}removeTrailingPathSeparator(e,t=s.Vn){return m(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e,t=s.Vn){let n=!1;if(e.scheme===r.ny.file){const r=c(e);n=void 0!==r&&r.length===i.Zn(r).length&&r[r.length-1]===t}else{t="/";const i=e.path;n=1===i.length&&47===i.charCodeAt(i.length-1)}return n||m(e,t)?e:e.with({path:e.path+"/"})}}const d=new h((()=>!1)),u=(new h((e=>e.scheme!==r.ny.file||!o.j9)),new h((e=>!0)),d.isEqual.bind(d),d.isEqualOrParent.bind(d),d.getComparisonKey.bind(d),d.basenameOrAuthority.bind(d),d.basename.bind(d)),p=(d.extname.bind(d),d.dirname.bind(d),d.joinPath.bind(d),d.normalizePath.bind(d),d.relativePath.bind(d),d.resolvePath.bind(d),d.isAbsolutePath.bind(d),d.isEqualAuthority.bind(d)),m=d.hasTrailingPathSeparator.bind(d);d.removeTrailingPathSeparator.bind(d),d.addTrailingPathSeparator.bind(d);var f;!function(e){e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=function(t){const n=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach((e=>{const[t,i]=e.split(":");t&&i&&n.set(t,i)}));const i=t.path.substring(0,t.path.indexOf(";"));return i&&n.set(e.META_DATA_MIME,i),n}}(f||(f={}))},8381:(e,t,n)=>{"use strict";n.d(t,{W:()=>r});const i=globalThis.performance&&"function"===typeof globalThis.performance.now;class r{static create(e){return new r(e)}constructor(e){this._now=i&&!1===e?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}}},1508:(e,t,n)=>{"use strict";n.d(t,{$X:()=>R,AV:()=>s,E_:()=>L,HG:()=>u,LJ:()=>k,LU:()=>O,NB:()=>l,OS:()=>c,Q_:()=>y,Ss:()=>A,UD:()=>m,Wv:()=>v,Z5:()=>S,_J:()=>N,aC:()=>T,bm:()=>a,eY:()=>h,jy:()=>o,km:()=>E,lT:()=>p,ne:()=>D,ns:()=>w,pc:()=>_,r_:()=>M,tk:()=>z,tl:()=>W,uz:()=>d,y_:()=>V,z_:()=>C});var i=n(1788),r=n(1090);function s(e){return!e||"string"!==typeof e||0===e.trim().length}function o(e){return e.replace(/[<>"'&]/g,(e=>{switch(e){case"<":return"<";case">":return">";case'"':return""";case"'":return"'";case"&":return"&"}return e}))}function a(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function l(e,t){if(!e||!t)return e;const n=t.length;if(0===n||0===e.length)return e;let i=0;for(;e.indexOf(t,i)===i;)i+=n;return e.substring(i)}function c(e,t,n={}){if(!e)throw new Error("Cannot create regex from empty string");t||(e=a(e)),n.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));let i="";return n.global&&(i+="g"),n.matchCase||(i+="i"),n.multiline&&(i+="m"),n.unicode&&(i+="u"),new RegExp(e,i)}function h(e){if("^"===e.source||"^$"===e.source||"$"===e.source||"^\\s*$"===e.source)return!1;return!(!e.exec("")||0!==e.lastIndex)}function d(e){return e.split(/\r\n|\r|\n/)}function u(e){for(let t=0,n=e.length;t<n;t++){const n=e.charCodeAt(t);if(32!==n&&9!==n)return t}return-1}function p(e,t=e.length-1){for(let n=t;n>=0;n--){const t=e.charCodeAt(n);if(32!==t&&9!==t)return n}return-1}function m(e,t){return e<t?-1:e>t?1:0}function f(e,t,n=0,i=e.length,r=0,s=t.length){for(;n<i&&r<s;n++,r++){const i=e.charCodeAt(n),s=t.charCodeAt(r);if(i<s)return-1;if(i>s)return 1}const o=i-n,a=s-r;return o<a?-1:o>a?1:0}function g(e,t,n=0,i=e.length,r=0,s=t.length){for(;n<i&&r<s;n++,r++){let o=e.charCodeAt(n),a=t.charCodeAt(r);if(o===a)continue;if(o>=128||a>=128)return f(e.toLowerCase(),t.toLowerCase(),n,i,r,s);b(o)&&(o-=32),b(a)&&(a-=32);const l=o-a;if(0!==l)return l}const o=i-n,a=s-r;return o<a?-1:o>a?1:0}function b(e){return e>=97&&e<=122}function v(e){return e>=65&&e<=90}function y(e,t){return e.length===t.length&&0===g(e,t)}function w(e,t){const n=t.length;return!(t.length>e.length)&&0===g(e,t,0,n)}function _(e){return 55296<=e&&e<=56319}function k(e){return 56320<=e&&e<=57343}function C(e,t){return t-56320+(e-55296<<10)+65536}function S(e,t,n){const i=e.charCodeAt(n);if(_(i)&&n+1<t){const t=e.charCodeAt(n+1);if(k(t))return C(i,t)}return i}class x{get offset(){return this._offset}constructor(e,t=0){this._str=e,this._len=e.length,this._offset=t}setOffset(e){this._offset=e}prevCodePoint(){const e=function(e,t){const n=e.charCodeAt(t-1);if(k(n)&&t>1){const i=e.charCodeAt(t-2);if(_(i))return C(i,n)}return n}(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){const e=S(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class E{get offset(){return this._iterator.offset}constructor(e,t=0){this._iterator=new x(e,t)}nextGraphemeLength(){const e=B.getInstance(),t=this._iterator,n=t.offset;let i=e.getGraphemeBreakType(t.nextCodePoint());for(;!t.eol();){const n=t.offset,r=e.getGraphemeBreakType(t.nextCodePoint());if(P(i,r)){t.setOffset(n);break}i=r}return t.offset-n}prevGraphemeLength(){const e=B.getInstance(),t=this._iterator,n=t.offset;let i=e.getGraphemeBreakType(t.prevCodePoint());for(;t.offset>0;){const n=t.offset,r=e.getGraphemeBreakType(t.prevCodePoint());if(P(r,i)){t.setOffset(n);break}i=r}return n-t.offset}eol(){return this._iterator.eol()}}let F;function L(e){return F||(F=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/),F.test(e)}const I=/^[\t\n\r\x20-\x7E]*$/;function T(e){return I.test(e)}const N=/[\u2028\u2029]/;function R(e){return N.test(e)}function D(e){return e>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function A(e){return e>=127462&&e<=127487||8986===e||8987===e||9200===e||9203===e||e>=9728&&e<=10175||11088===e||11093===e||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129008||e>=129280&&e<=129535||e>=129648&&e<=129782}const M=String.fromCharCode(65279);function O(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}function z(e){return(e%=52)<26?String.fromCharCode(97+e):String.fromCharCode(65+e-26)}function P(e,t){return 0===e?5!==t&&7!==t:(2!==e||3!==t)&&(4===e||2===e||3===e||(4===t||2===t||3===t||(8!==e||8!==t&&9!==t&&11!==t&&12!==t)&&((11!==e&&9!==e||9!==t&&10!==t)&&((12!==e&&10!==e||10!==t)&&(5!==t&&13!==t&&(7!==t&&(1!==e&&((13!==e||14!==t)&&(6!==e||6!==t)))))))))}class B{static{this._INSTANCE=null}static getInstance(){return B._INSTANCE||(B._INSTANCE=new B),B._INSTANCE}constructor(){this._data=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]")}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;const t=this._data,n=t.length/3;let i=1;for(;i<=n;)if(e<t[3*i])i*=2;else{if(!(e>t[3*i+1]))return t[3*i+2];i=2*i+1}return 0}}class W{static{this.ambiguousCharacterData=new r.d((()=>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,8218,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,8242,96,1370,96,1523,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,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,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,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,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,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,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,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,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,71922,67,71913,67,65315,67,8557,67,8450,67,8493,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,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,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,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,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,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,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,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,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,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,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,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,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,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,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,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,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,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,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,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,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,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,71919,87,71910,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,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,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,66293,90,71909,90,65338,90,8484,90,8488,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,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,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,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,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,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,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,65283,35,65292,44,65307,59],"ko":[8211,45,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,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,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,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[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,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,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,65283,35,65307,59]}')))}static{this.cache=new i.o5({getCacheKey:JSON.stringify},(e=>{function t(e){const t=new Map;for(let n=0;n<e.length;n+=2)t.set(e[n],e[n+1]);return t}function n(e,t){if(!e)return t;const n=new Map;for(const[i,r]of e)t.has(i)&&n.set(i,r);return n}const i=this.ambiguousCharacterData.value;let r,s=e.filter((e=>!e.startsWith("_")&&e in i));0===s.length&&(s=["_default"]);for(const a of s){r=n(r,t(i[a]))}const o=function(e,t){const n=new Map(e);for(const[i,r]of t)n.set(i,r);return n}(t(i._common),r);return new W(o)}))}static getInstance(e){return W.cache.get(Array.from(e))}static{this._locales=new r.d((()=>Object.keys(W.ambiguousCharacterData.value).filter((e=>!e.startsWith("_")))))}static getLocales(){return W._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())}}class V{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,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,12288,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]")}static{this._data=void 0}static getData(){return this._data||(this._data=new Set(V.getRawData())),this._data}static isInvisibleCharacter(e){return V.getData().has(e)}static get codePoints(){return V.getData()}}},631:(e,t,n)=>{"use strict";function i(e){return"string"===typeof e}function r(e){return"object"===typeof e&&null!==e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function s(e){return"undefined"===typeof e}function o(e){return s(e)||null===e}n.d(t,{Gv:()=>r,Kg:()=>i,b0:()=>s,z:()=>o})},5152:(e,t,n)=>{"use strict";function i(e){return e<0?0:e>255?255:0|e}function r(e){return e<0?0:e>4294967295?4294967295:0|e}n.d(t,{W:()=>i,j:()=>r})},9400:(e,t,n)=>{"use strict";n.d(t,{I:()=>b,r:()=>d});var i=n(8821),r=n(8067);const s=/^\w[\w\d+.-]*$/,o=/^\//,a=/^\/\//;const l="",c="/",h=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class d{static isUri(e){return e instanceof d||!!e&&("string"===typeof e.authority&&"string"===typeof e.fragment&&"string"===typeof e.path&&"string"===typeof e.query&&"string"===typeof e.scheme&&"string"===typeof e.fsPath&&"function"===typeof e.with&&"function"===typeof e.toString)}constructor(e,t,n,i,r,h=!1){"object"===typeof e?(this.scheme=e.scheme||l,this.authority=e.authority||l,this.path=e.path||l,this.query=e.query||l,this.fragment=e.fragment||l):(this.scheme=function(e,t){return e||t?e:"file"}(e,h),this.authority=t||l,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==c&&(t=c+t):t=c}return t}(this.scheme,n||l),this.query=i||l,this.fragment=r||l,function(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!s.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!o.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(a.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,h))}get fsPath(){return b(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:i,query:r,fragment:s}=e;return void 0===t?t=this.scheme:null===t&&(t=l),void 0===n?n=this.authority:null===n&&(n=l),void 0===i?i=this.path:null===i&&(i=l),void 0===r?r=this.query:null===r&&(r=l),void 0===s?s=this.fragment:null===s&&(s=l),t===this.scheme&&n===this.authority&&i===this.path&&r===this.query&&s===this.fragment?this:new p(t,n,i,r,s)}static parse(e,t=!1){const n=h.exec(e);return n?new p(n[2]||l,_(n[4]||l),_(n[5]||l),_(n[7]||l),_(n[9]||l),t):new p(l,l,l,l,l)}static file(e){let t=l;if(r.uF&&(e=e.replace(/\\/g,c)),e[0]===c&&e[1]===c){const n=e.indexOf(c,2);-1===n?(t=e.substring(2),e=c):(t=e.substring(2,n),e=e.substring(n)||c)}return new p("file",t,e,l,l)}static from(e,t){return new p(e.scheme,e.authority,e.path,e.query,e.fragment,t)}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let n;return n=r.uF&&"file"===e.scheme?d.file(i.IN.join(b(e,!0),...t)).path:i.SA.join(e.path,...t),e.with({path:n})}toString(e=!1){return v(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof d)return e;{const t=new p(e);return t._formatted=e.external??null,t._fsPath=e._sep===u?e.fsPath??null:null,t}}return e}}const u=r.uF?1:void 0;class p extends d{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=b(this,!1)),this._fsPath}toString(e=!1){return e?v(this,!0):(this._formatted||(this._formatted=v(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=u),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}}const m={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 i,r=-1;for(let s=0;s<e.length;s++){const o=e.charCodeAt(s);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o||n&&91===o||n&&93===o||n&&58===o)-1!==r&&(i+=encodeURIComponent(e.substring(r,s)),r=-1),void 0!==i&&(i+=e.charAt(s));else{void 0===i&&(i=e.substr(0,s));const t=m[o];void 0!==t?(-1!==r&&(i+=encodeURIComponent(e.substring(r,s)),r=-1),i+=t):-1===r&&(r=s)}}return-1!==r&&(i+=encodeURIComponent(e.substring(r))),void 0!==i?i:e}function g(e){let t;for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);35===i||63===i?(void 0===t&&(t=e.substr(0,n)),t+=m[i]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function b(e,t){let n;return n=e.authority&&e.path.length>1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,r.uF&&(n=n.replace(/\//g,"\\")),n}function v(e,t){const n=t?g:f;let i="",{scheme:r,authority:s,path:o,query:a,fragment:l}=e;if(r&&(i+=r,i+=":"),(s||"file"===r)&&(i+=c,i+=c),s){let e=s.indexOf("@");if(-1!==e){const t=s.substr(0,e);s=s.substr(e+1),e=t.lastIndexOf(":"),-1===e?i+=n(t,!1,!1):(i+=n(t.substr(0,e),!1,!1),i+=":",i+=n(t.substr(e+1),!1,!0)),i+="@"}s=s.toLowerCase(),e=s.lastIndexOf(":"),-1===e?i+=n(s,!1,!0):(i+=n(s.substr(0,e),!1,!0),i+=s.substr(e))}if(o){if(o.length>=3&&47===o.charCodeAt(0)&&58===o.charCodeAt(2)){const e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&58===o.charCodeAt(1)){const e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}i+=n(o,!0,!1)}return a&&(i+="?",i+=n(a,!1,!1)),l&&(i+="#",i+=t?l:f(l,!1,!1)),i}function y(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+y(e.substr(3)):e}}const w=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function _(e){return e.match(w)?e.replace(w,(e=>y(e))):e}},1929:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SimpleWorkerClient:()=>y,SimpleWorkerServer:()=>k,create:()=>C,logOnceWebWorkerWarning:()=>u});var i=n(4383),r=n(1234),s=n(1484),o=n(6456),a=n(8067),l=n(1508);const c="default",h="$initialize";let d=!1;function u(e){a.HZ&&(d||(d=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(e.message))}class p{constructor(e,t,n,i,r){this.vsWorker=e,this.req=t,this.channel=n,this.method=i,this.args=r,this.type=0}}class m{constructor(e,t,n,i){this.vsWorker=e,this.seq=t,this.res=n,this.err=i,this.type=1}}class f{constructor(e,t,n,i,r){this.vsWorker=e,this.req=t,this.channel=n,this.eventName=i,this.arg=r,this.type=2}}class g{constructor(e,t,n){this.vsWorker=e,this.req=t,this.event=n,this.type=3}}class b{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class v{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,t,n){const i=String(++this._lastSentReq);return new Promise(((r,s)=>{this._pendingReplies[i]={resolve:r,reject:s},this._send(new p(this._workerId,i,e,t,n))}))}listen(e,t,n){let i=null;const s=new r.vl({onWillAddFirstListener:()=>{i=String(++this._lastSentReq),this._pendingEmitters.set(i,s),this._send(new f(this._workerId,i,e,t,n))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(i),this._send(new b(this._workerId,i)),i=null}});return s.event}handleMessage(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))}createProxyToRemoteChannel(e,t){const n={get:(n,i)=>("string"!==typeof i||n[i]||(_(i)?n[i]=t=>this.listen(e,i,t):w(i)?n[i]=this.listen(e,i,void 0):36===i.charCodeAt(0)&&(n[i]=async(...n)=>(await(t?.()),this.sendMessage(e,i,n)))),n[i])};return new Proxy(Object.create(null),n)}_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])return void console.warn("Got reply to unknown seq");const t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let n=e.err;return e.err.$isError&&(n=new Error,n.name=e.err.name,n.message=e.err.message,n.stack=e.err.stack),void t.reject(n)}t.resolve(e.res)}_handleRequestMessage(e){const t=e.req;this._handler.handleMessage(e.channel,e.method,e.args).then((e=>{this._send(new m(this._workerId,t,e,void 0))}),(e=>{e.detail instanceof Error&&(e.detail=(0,i.cU)(e.detail)),this._send(new m(this._workerId,t,void 0,(0,i.cU)(e)))}))}_handleSubscribeEventMessage(e){const t=e.req,n=this._handler.handleEvent(e.channel,e.eventName,e.arg)((e=>{this._send(new g(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){const t=[];if(0===e.type)for(let n=0;n<e.args.length;n++)e.args[n]instanceof ArrayBuffer&&t.push(e.args[n]);else 1===e.type&&e.res instanceof ArrayBuffer&&t.push(e.res);this._handler.sendMessage(e,t)}}class y extends s.jG{constructor(e,t){super(),this._localChannels=new Map,this._worker=this._register(e.create({amdModuleId:"vs/base/common/worker/simpleWorker",esmModuleLocation:t.esmModuleLocation,label:t.label},(e=>{this._protocol.handleMessage(e)}),(e=>{(0,i.dz)(e)}))),this._protocol=new v({sendMessage:(e,t)=>{this._worker.postMessage(e,t)},handleMessage:(e,t,n)=>this._handleMessage(e,t,n),handleEvent:(e,t,n)=>this._handleEvent(e,t,n)}),this._protocol.setWorkerId(this._worker.getId());let n=null;const r=globalThis.require;"undefined"!==typeof r&&"function"===typeof r.getConfig?n=r.getConfig():"undefined"!==typeof globalThis.requirejs&&(n=globalThis.requirejs.s.contexts._.config),this._onModuleLoaded=this._protocol.sendMessage(c,h,[this._worker.getId(),JSON.parse(JSON.stringify(n)),t.amdModuleId]),this.proxy=this._protocol.createProxyToRemoteChannel(c,(async()=>{await this._onModuleLoaded})),this._onModuleLoaded.catch((e=>{this._onError("Worker failed to load "+t.amdModuleId,e)}))}_handleMessage(e,t,n){const i=this._localChannels.get(e);if(!i)return Promise.reject(new Error(`Missing channel ${e} on main thread`));if("function"!==typeof i[t])return Promise.reject(new Error(`Missing method ${t} on main thread channel ${e}`));try{return Promise.resolve(i[t].apply(i,n))}catch(r){return Promise.reject(r)}}_handleEvent(e,t,n){const i=this._localChannels.get(e);if(!i)throw new Error(`Missing channel ${e} on main thread`);if(_(t)){const r=i[t].call(i,n);if("function"!==typeof r)throw new Error(`Missing dynamic event ${t} on main thread channel ${e}.`);return r}if(w(t)){const n=i[t];if("function"!==typeof n)throw new Error(`Missing event ${t} on main thread channel ${e}.`);return n}throw new Error(`Malformed event name ${t}`)}setChannel(e,t){this._localChannels.set(e,t)}_onError(e,t){console.error(e),console.info(t)}}function w(e){return"o"===e[0]&&"n"===e[1]&&l.Wv(e.charCodeAt(2))}function _(e){return/^onDynamic/.test(e)&&l.Wv(e.charCodeAt(9))}class k{constructor(e,t){this._localChannels=new Map,this._remoteChannels=new Map,this._requestHandlerFactory=t,this._requestHandler=null,this._protocol=new v({sendMessage:(t,n)=>{e(t,n)},handleMessage:(e,t,n)=>this._handleMessage(e,t,n),handleEvent:(e,t,n)=>this._handleEvent(e,t,n)})}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,t,n){if(e===c&&t===h)return this.initialize(n[0],n[1],n[2]);const i=e===c?this._requestHandler:this._localChannels.get(e);if(!i)return Promise.reject(new Error(`Missing channel ${e} on worker thread`));if("function"!==typeof i[t])return Promise.reject(new Error(`Missing method ${t} on worker thread channel ${e}`));try{return Promise.resolve(i[t].apply(i,n))}catch(r){return Promise.reject(r)}}_handleEvent(e,t,n){const i=e===c?this._requestHandler:this._localChannels.get(e);if(!i)throw new Error(`Missing channel ${e} on worker thread`);if(_(t)){const e=i[t].call(i,n);if("function"!==typeof e)throw new Error(`Missing dynamic event ${t} on request handler.`);return e}if(w(t)){const e=i[t];if("function"!==typeof e)throw new Error(`Missing event ${t} on request handler.`);return e}throw new Error(`Malformed event name ${t}`)}getChannel(e){if(!this._remoteChannels.has(e)){const t=this._protocol.createProxyToRemoteChannel(e);this._remoteChannels.set(e,t)}return this._remoteChannels.get(e)}async initialize(e,t,i){if(this._protocol.setWorkerId(e),!this._requestHandlerFactory){t&&("undefined"!==typeof t.baseUrl&&delete t.baseUrl,"undefined"!==typeof t.paths&&"undefined"!==typeof t.paths.vs&&delete t.paths.vs,"undefined"!==typeof t.trustedTypesPolicy&&delete t.trustedTypesPolicy,t.catchError=!0,globalThis.require.config(t));{const e=o.zl.asBrowserUri(`${i}.js`).toString(!0);return n(5890)(`${e}`).then((e=>{if(this._requestHandler=e.create(this),!this._requestHandler)throw new Error("No RequestHandler!")}))}}this._requestHandler=this._requestHandlerFactory(this)}}function C(e){return new k(e,null)}},534:(e,t,n)=>{"use strict";n.d(t,{V:()=>r});var i=n(5152);class r{constructor(e){const t=(0,i.W)(e);this._defaultValue=t,this._asciiMap=r._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){const t=new Uint8Array(256);return t.fill(e),t}set(e,t){const n=(0,i.W)(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()}}},7119:(e,t,n)=>{"use strict";n.d(t,{AQ:()=>b,aZ:()=>g,l5:()=>_,lQ:()=>y,s7:()=>S,sH:()=>k,sN:()=>v,ss:()=>w,yI:()=>f,zp:()=>C});var i=n(8209),r=n(7661),s=n(5845),o=n(5724);const a=(0,s.x1A)("editor.lineHighlightBackground",null,i.kg("lineHighlight","Background color for the highlight of line at the cursor position.")),l=((0,s.x1A)("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hcDark:"#f38518",hcLight:s.b1q},i.kg("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),(0,s.x1A)("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hcDark:null,hcLight:null},i.kg("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1A)("editor.rangeHighlightBorder",{dark:null,light:null,hcDark:s.buw,hcLight:s.buw},i.kg("rangeHighlightBorder","Background color of the border around highlighted ranges.")),(0,s.x1A)("editor.symbolHighlightBackground",{dark:s.Ubg,light:s.Ubg,hcDark:null,hcLight:null},i.kg("symbolHighlight","Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1A)("editor.symbolHighlightBorder",{dark:null,light:null,hcDark:s.buw,hcLight:s.buw},i.kg("symbolHighlightBorder","Background color of the border around highlighted symbols.")),(0,s.x1A)("editorCursor.foreground",{dark:"#AEAFAD",light:r.Q1.black,hcDark:r.Q1.white,hcLight:"#0F4A85"},i.kg("caret","Color of the editor cursor."))),c=(0,s.x1A)("editorCursor.background",null,i.kg("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),h=((0,s.x1A)("editorMultiCursor.primary.foreground",l,i.kg("editorMultiCursorPrimaryForeground","Color of the primary editor cursor when multiple cursors are present.")),(0,s.x1A)("editorMultiCursor.primary.background",c,i.kg("editorMultiCursorPrimaryBackground","The background color of the primary editor cursor when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),(0,s.x1A)("editorMultiCursor.secondary.foreground",l,i.kg("editorMultiCursorSecondaryForeground","Color of secondary editor cursors when multiple cursors are present.")),(0,s.x1A)("editorMultiCursor.secondary.background",c,i.kg("editorMultiCursorSecondaryBackground","The background color of secondary editor cursors when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),(0,s.x1A)("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hcDark:"#e3e4e229",hcLight:"#CCCCCC"},i.kg("editorWhitespaces","Color of whitespace characters in the editor."))),d=((0,s.x1A)("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hcDark:r.Q1.white,hcLight:"#292929"},i.kg("editorLineNumbers","Color of editor line numbers.")),(0,s.x1A)("editorIndentGuide.background",h,i.kg("editorIndentGuides","Color of the editor indentation guides."),!1,i.kg("deprecatedEditorIndentGuides","'editorIndentGuide.background' is deprecated. Use 'editorIndentGuide.background1' instead."))),u=(0,s.x1A)("editorIndentGuide.activeBackground",h,i.kg("editorActiveIndentGuide","Color of the active editor indentation guides."),!1,i.kg("deprecatedEditorActiveIndentGuide","'editorIndentGuide.activeBackground' is deprecated. Use 'editorIndentGuide.activeBackground1' instead.")),p=((0,s.x1A)("editorIndentGuide.background1",d,i.kg("editorIndentGuides1","Color of the editor indentation guides (1).")),(0,s.x1A)("editorIndentGuide.background2","#00000000",i.kg("editorIndentGuides2","Color of the editor indentation guides (2).")),(0,s.x1A)("editorIndentGuide.background3","#00000000",i.kg("editorIndentGuides3","Color of the editor indentation guides (3).")),(0,s.x1A)("editorIndentGuide.background4","#00000000",i.kg("editorIndentGuides4","Color of the editor indentation guides (4).")),(0,s.x1A)("editorIndentGuide.background5","#00000000",i.kg("editorIndentGuides5","Color of the editor indentation guides (5).")),(0,s.x1A)("editorIndentGuide.background6","#00000000",i.kg("editorIndentGuides6","Color of the editor indentation guides (6).")),(0,s.x1A)("editorIndentGuide.activeBackground1",u,i.kg("editorActiveIndentGuide1","Color of the active editor indentation guides (1).")),(0,s.x1A)("editorIndentGuide.activeBackground2","#00000000",i.kg("editorActiveIndentGuide2","Color of the active editor indentation guides (2).")),(0,s.x1A)("editorIndentGuide.activeBackground3","#00000000",i.kg("editorActiveIndentGuide3","Color of the active editor indentation guides (3).")),(0,s.x1A)("editorIndentGuide.activeBackground4","#00000000",i.kg("editorActiveIndentGuide4","Color of the active editor indentation guides (4).")),(0,s.x1A)("editorIndentGuide.activeBackground5","#00000000",i.kg("editorActiveIndentGuide5","Color of the active editor indentation guides (5).")),(0,s.x1A)("editorIndentGuide.activeBackground6","#00000000",i.kg("editorActiveIndentGuide6","Color of the active editor indentation guides (6).")),(0,s.x1A)("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hcDark:s.buw,hcLight:s.buw},i.kg("editorActiveLineNumber","Color of editor active line number"),!1,i.kg("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead."))),m=((0,s.x1A)("editorLineNumber.activeForeground",p,i.kg("editorActiveLineNumber","Color of editor active line number")),(0,s.x1A)("editorLineNumber.dimmedForeground",null,i.kg("editorDimmedLineNumber","Color of the final editor line when editor.renderFinalNewline is set to dimmed.")),(0,s.x1A)("editorRuler.foreground",{dark:"#5A5A5A",light:r.Q1.lightgrey,hcDark:r.Q1.white,hcLight:"#292929"},i.kg("editorRuler","Color of the editor rulers.")),(0,s.x1A)("editorCodeLens.foreground",{dark:"#999999",light:"#919191",hcDark:"#999999",hcLight:"#292929"},i.kg("editorCodeLensForeground","Foreground color of editor CodeLens")),(0,s.x1A)("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hcDark:"#0064001a",hcLight:"#0000"},i.kg("editorBracketMatchBackground","Background color behind matching brackets")),(0,s.x1A)("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hcDark:s.b1q,hcLight:s.b1q},i.kg("editorBracketMatchBorder","Color for matching brackets boxes")),(0,s.x1A)("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hcDark:"#7f7f7f4d",hcLight:"#666666"},i.kg("editorOverviewRulerBorder","Color of the overview ruler border.")),(0,s.x1A)("editorOverviewRuler.background",null,i.kg("editorOverviewRulerBackground","Background color of the editor overview ruler.")),(0,s.x1A)("editorGutter.background",s.YtV,i.kg("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),(0,s.x1A)("editorUnnecessaryCode.border",{dark:null,light:null,hcDark:r.Q1.fromHex("#fff").transparent(.8),hcLight:s.b1q},i.kg("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),(0,s.x1A)("editorUnnecessaryCode.opacity",{dark:r.Q1.fromHex("#000a"),light:r.Q1.fromHex("#0007"),hcDark:null,hcLight:null},i.kg("unnecessaryCodeOpacity","Opacity of unnecessary (unused) source code in the editor. For example, \"#000000c0\" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out.")),(0,s.x1A)("editorGhostText.border",{dark:null,light:null,hcDark:r.Q1.fromHex("#fff").transparent(.8),hcLight:r.Q1.fromHex("#292929").transparent(.8)},i.kg("editorGhostTextBorder","Border color of ghost text in the editor.")),(0,s.x1A)("editorGhostText.foreground",{dark:r.Q1.fromHex("#ffffff56"),light:r.Q1.fromHex("#0007"),hcDark:null,hcLight:null},i.kg("editorGhostTextForeground","Foreground color of the ghost text in the editor.")),(0,s.x1A)("editorGhostText.background",null,i.kg("editorGhostTextBackground","Background color of the ghost text in the editor.")),new r.Q1(new r.bU(0,122,204,.6))),f=((0,s.x1A)("editorOverviewRuler.rangeHighlightForeground",m,i.kg("overviewRulerRangeHighlight","Overview ruler marker color for range highlights. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1A)("editorOverviewRuler.errorForeground",{dark:new r.Q1(new r.bU(255,18,18,.7)),light:new r.Q1(new r.bU(255,18,18,.7)),hcDark:new r.Q1(new r.bU(255,50,50,1)),hcLight:"#B5200D"},i.kg("overviewRuleError","Overview ruler marker color for errors."))),g=(0,s.x1A)("editorOverviewRuler.warningForeground",{dark:s.Hng,light:s.Hng,hcDark:s.Stt,hcLight:s.Stt},i.kg("overviewRuleWarning","Overview ruler marker color for warnings.")),b=(0,s.x1A)("editorOverviewRuler.infoForeground",{dark:s.pOz,light:s.pOz,hcDark:s.IIb,hcLight:s.IIb},i.kg("overviewRuleInfo","Overview ruler marker color for infos.")),v=(0,s.x1A)("editorBracketHighlight.foreground1",{dark:"#FFD700",light:"#0431FAFF",hcDark:"#FFD700",hcLight:"#0431FAFF"},i.kg("editorBracketHighlightForeground1","Foreground color of brackets (1). Requires enabling bracket pair colorization.")),y=(0,s.x1A)("editorBracketHighlight.foreground2",{dark:"#DA70D6",light:"#319331FF",hcDark:"#DA70D6",hcLight:"#319331FF"},i.kg("editorBracketHighlightForeground2","Foreground color of brackets (2). Requires enabling bracket pair colorization.")),w=(0,s.x1A)("editorBracketHighlight.foreground3",{dark:"#179FFF",light:"#7B3814FF",hcDark:"#87CEFA",hcLight:"#7B3814FF"},i.kg("editorBracketHighlightForeground3","Foreground color of brackets (3). Requires enabling bracket pair colorization.")),_=(0,s.x1A)("editorBracketHighlight.foreground4","#00000000",i.kg("editorBracketHighlightForeground4","Foreground color of brackets (4). Requires enabling bracket pair colorization.")),k=(0,s.x1A)("editorBracketHighlight.foreground5","#00000000",i.kg("editorBracketHighlightForeground5","Foreground color of brackets (5). Requires enabling bracket pair colorization.")),C=(0,s.x1A)("editorBracketHighlight.foreground6","#00000000",i.kg("editorBracketHighlightForeground6","Foreground color of brackets (6). Requires enabling bracket pair colorization.")),S=(0,s.x1A)("editorBracketHighlight.unexpectedBracket.foreground",{dark:new r.Q1(new r.bU(255,18,18,.8)),light:new r.Q1(new r.bU(255,18,18,.8)),hcDark:"new Color(new RGBA(255, 50, 50, 1))",hcLight:"#B5200D"},i.kg("editorBracketHighlightUnexpectedBracketForeground","Foreground color of unexpected brackets."));(0,s.x1A)("editorBracketPairGuide.background1","#00000000",i.kg("editorBracketPairGuide.background1","Background color of inactive bracket pair guides (1). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background2","#00000000",i.kg("editorBracketPairGuide.background2","Background color of inactive bracket pair guides (2). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background3","#00000000",i.kg("editorBracketPairGuide.background3","Background color of inactive bracket pair guides (3). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background4","#00000000",i.kg("editorBracketPairGuide.background4","Background color of inactive bracket pair guides (4). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background5","#00000000",i.kg("editorBracketPairGuide.background5","Background color of inactive bracket pair guides (5). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background6","#00000000",i.kg("editorBracketPairGuide.background6","Background color of inactive bracket pair guides (6). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground1","#00000000",i.kg("editorBracketPairGuide.activeBackground1","Background color of active bracket pair guides (1). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground2","#00000000",i.kg("editorBracketPairGuide.activeBackground2","Background color of active bracket pair guides (2). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground3","#00000000",i.kg("editorBracketPairGuide.activeBackground3","Background color of active bracket pair guides (3). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground4","#00000000",i.kg("editorBracketPairGuide.activeBackground4","Background color of active bracket pair guides (4). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground5","#00000000",i.kg("editorBracketPairGuide.activeBackground5","Background color of active bracket pair guides (5). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground6","#00000000",i.kg("editorBracketPairGuide.activeBackground6","Background color of active bracket pair guides (6). Requires enabling bracket pair guides.")),(0,s.x1A)("editorUnicodeHighlight.border",s.Hng,i.kg("editorUnicodeHighlight.border","Border color used to highlight unicode characters.")),(0,s.x1A)("editorUnicodeHighlight.background",s.whs,i.kg("editorUnicodeHighlight.background","Background color used to highlight unicode characters."));(0,o.zy)(((e,t)=>{const n=e.getColor(s.YtV),i=e.getColor(a),r=i&&!i.isTransparent()?i:n;r&&t.addRule(`.monaco-editor .inputarea.ime-input { background-color: ${r}; }`)}))},4454:(e,t,n)=>{"use strict";function i(e){let t=0,n=0,i=0,r=0;for(let s=0,o=e.length;s<o;s++){const a=e.charCodeAt(s);13===a?(0===t&&(n=s),t++,s+1<o&&10===e.charCodeAt(s+1)?(r|=2,s++):r|=3,i=s+1):10===a&&(r|=1,0===t&&(n=s),t++,i=s+1)}return 0===t&&(n=e.length),[t,n,e.length-i,r]}n.d(t,{W:()=>i})},6571:(e,t,n)=>{"use strict";n.d(t,{M:()=>a,S:()=>l});var i=n(4383),r=n(4444),s=n(6677),o=n(6041);class a{static fromRangeInclusive(e){return new a(e.startLineNumber,e.endLineNumber+1)}static joinMany(e){if(0===e.length)return[];let t=new l(e[0].slice());for(let n=1;n<e.length;n++)t=t.getUnion(new l(e[n].slice()));return t.ranges}static join(e){if(0===e.length)throw new i.D7("lineRanges cannot be empty");let t=e[0].startLineNumber,n=e[0].endLineNumberExclusive;for(let i=1;i<e.length;i++)t=Math.min(t,e[i].startLineNumber),n=Math.max(n,e[i].endLineNumberExclusive);return new a(t,n)}static ofLength(e,t){return new a(e,e+t)}static deserialize(e){return new a(e[0],e[1])}constructor(e,t){if(e>t)throw new i.D7(`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(e){return new a(this.startLineNumber+e,this.endLineNumberExclusive+e)}deltaLength(e){return new a(this.startLineNumber,this.endLineNumberExclusive+e)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(e){return new a(Math.min(this.startLineNumber,e.startLineNumber),Math.max(this.endLineNumberExclusive,e.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(e){const t=Math.max(this.startLineNumber,e.startLineNumber),n=Math.min(this.endLineNumberExclusive,e.endLineNumberExclusive);if(t<=n)return new a(t,n)}intersectsStrict(e){return this.startLineNumber<e.endLineNumberExclusive&&e.startLineNumber<this.endLineNumberExclusive}overlapOrTouch(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 s.Q(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new s.Q(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(e){const 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]}includes(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}toOffsetRange(){return new r.L(this.startLineNumber-1,this.endLineNumberExclusive-1)}}class l{constructor(e=[]){this._normalizedRanges=e}get ranges(){return this._normalizedRanges}addRange(e){if(0===e.length)return;const t=(0,o.hw)(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),n=(0,o.iM)(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===n)this._normalizedRanges.splice(t,0,e);else if(t===n-1){const n=this._normalizedRanges[t];this._normalizedRanges[t]=n.join(e)}else{const i=this._normalizedRanges[t].join(this._normalizedRanges[n-1]).join(e);this._normalizedRanges.splice(t,n-t,i)}}contains(e){const t=(0,o.lx)(this._normalizedRanges,(t=>t.startLineNumber<=e));return!!t&&t.endLineNumberExclusive>e}intersects(e){const t=(0,o.lx)(this._normalizedRanges,(t=>t.startLineNumber<e.endLineNumberExclusive));return!!t&&t.endLineNumberExclusive>e.startLineNumber}getUnion(e){if(0===this._normalizedRanges.length)return e;if(0===e._normalizedRanges.length)return this;const t=[];let n=0,i=0,r=null;for(;n<this._normalizedRanges.length||i<e._normalizedRanges.length;){let s=null;if(n<this._normalizedRanges.length&&i<e._normalizedRanges.length){const t=this._normalizedRanges[n],r=e._normalizedRanges[i];t.startLineNumber<r.startLineNumber?(s=t,n++):(s=r,i++)}else n<this._normalizedRanges.length?(s=this._normalizedRanges[n],n++):(s=e._normalizedRanges[i],i++);null===r?r=s:r.endLineNumberExclusive>=s.startLineNumber?r=new a(r.startLineNumber,Math.max(r.endLineNumberExclusive,s.endLineNumberExclusive)):(t.push(r),r=s)}return null!==r&&t.push(r),new l(t)}subtractFrom(e){const t=(0,o.hw)(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),n=(0,o.iM)(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===n)return new l([e]);const i=[];let r=e.startLineNumber;for(let s=t;s<n;s++){const e=this._normalizedRanges[s];e.startLineNumber>r&&i.push(new a(r,e.startLineNumber)),r=e.endLineNumberExclusive}return r<e.endLineNumberExclusive&&i.push(new a(r,e.endLineNumberExclusive)),new l(i)}toString(){return this._normalizedRanges.map((e=>e.toString())).join(", ")}getIntersection(e){const t=[];let n=0,i=0;for(;n<this._normalizedRanges.length&&i<e._normalizedRanges.length;){const r=this._normalizedRanges[n],s=e._normalizedRanges[i],o=r.intersect(s);o&&!o.isEmpty&&t.push(o),r.endLineNumberExclusive<s.endLineNumberExclusive?n++:i++}return new l(t)}getWithDelta(e){return new l(this._normalizedRanges.map((t=>t.delta(e))))}}},4444:(e,t,n)=>{"use strict";n.d(t,{L:()=>r});var i=n(4383);class r{static addRange(e,t){let n=0;for(;n<t.length&&t[n].endExclusive<e.start;)n++;let i=n;for(;i<t.length&&t[i].start<=e.endExclusive;)i++;if(n===i)t.splice(n,0,e);else{const s=Math.min(e.start,t[n].start),o=Math.max(e.endExclusive,t[i-1].endExclusive);t.splice(n,i-n,new r(s,o))}}static tryCreate(e,t){if(!(e>t))return new r(e,t)}static ofLength(e){return new r(0,e)}static ofStartAndLength(e,t){return new r(e,e+t)}constructor(e,t){if(this.start=e,this.endExclusive=t,e>t)throw new i.D7(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new r(this.start+e,this.endExclusive+e)}deltaStart(e){return new r(this.start+e,this.endExclusive)}deltaEnd(e){return new r(this.start,this.endExclusive+e)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}contains(e){return this.start<=e&&e<this.endExclusive}join(e){return new r(Math.min(this.start,e.start),Math.max(this.endExclusive,e.endExclusive))}intersect(e){const t=Math.max(this.start,e.start),n=Math.min(this.endExclusive,e.endExclusive);if(t<=n)return new r(t,n)}intersects(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 i.D7(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,e))}clipCyclic(e){if(this.isEmpty)throw new i.D7(`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)}}},3069:(e,t,n)=>{"use strict";n.d(t,{y:()=>i});class i{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new i(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return i.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return i.isBefore(this,e)}static isBefore(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column}isBeforeOrEqual(e){return i.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<=t.column}static compare(e,t){const n=0|e.lineNumber,i=0|t.lineNumber;if(n===i){return(0|e.column)-(0|t.column)}return n-i}clone(){return new i(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new i(e.lineNumber,e.column)}static isIPosition(e){return e&&"number"===typeof e.lineNumber&&"number"===typeof e.column}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}}},6677:(e,t,n)=>{"use strict";n.d(t,{Q:()=>r});var i=n(3069);class r{constructor(e,t,n,i){e>n||e===n&&t>i?(this.startLineNumber=n,this.startColumn=i,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=i)}isEmpty(){return r.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return r.containsPosition(this,e)}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(e){return r.containsRange(this,e)}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(e){return r.strictContainsRange(this,e)}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(e){return r.plusRange(this,e)}static plusRange(e,t){let n,i,s,o;return t.startLineNumber<e.startLineNumber?(n=t.startLineNumber,i=t.startColumn):t.startLineNumber===e.startLineNumber?(n=t.startLineNumber,i=Math.min(t.startColumn,e.startColumn)):(n=e.startLineNumber,i=e.startColumn),t.endLineNumber>e.endLineNumber?(s=t.endLineNumber,o=t.endColumn):t.endLineNumber===e.endLineNumber?(s=t.endLineNumber,o=Math.max(t.endColumn,e.endColumn)):(s=e.endLineNumber,o=e.endColumn),new r(n,i,s,o)}intersectRanges(e){return r.intersectRanges(this,e)}static intersectRanges(e,t){let n=e.startLineNumber,i=e.startColumn,s=e.endLineNumber,o=e.endColumn;const a=t.startLineNumber,l=t.startColumn,c=t.endLineNumber,h=t.endColumn;return n<a?(n=a,i=l):n===a&&(i=Math.max(i,l)),s>c?(s=c,o=h):s===c&&(o=Math.min(o,h)),n>s||n===s&&i>o?null:new r(n,i,s,o)}equalsRange(e){return r.equalsRange(this,e)}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 r.getEndPosition(this)}static getEndPosition(e){return new i.y(e.endLineNumber,e.endColumn)}getStartPosition(){return r.getStartPosition(this)}static getStartPosition(e){return new i.y(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new r(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new r(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return r.collapseToStart(this)}static collapseToStart(e){return new r(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return r.collapseToEnd(this)}static collapseToEnd(e){return new r(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new r(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,t=e){return new r(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new r(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"===typeof e.startLineNumber&&"number"===typeof e.startColumn&&"number"===typeof e.endLineNumber&&"number"===typeof e.endColumn}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 compareRangesUsingStarts(e,t){if(e&&t){const n=0|e.startLineNumber,i=0|t.startLineNumber;if(n===i){const n=0|e.startColumn,i=0|t.startColumn;if(n===i){const n=0|e.endLineNumber,i=0|t.endLineNumber;if(n===i){return(0|e.endColumn)-(0|t.endColumn)}return n-i}return n-i}return n-i}return(e?1:0)-(t?1:0)}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}}},5326:(e,t,n)=>{"use strict";n.d(t,{L:()=>s});var i=n(3069),r=n(6677);class s extends r.Q{constructor(e,t,n,i){super(e,t,n,i),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=n,this.positionColumn=i}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return s.selectionsEqual(this,e)}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(e,t){return 0===this.getDirection()?new s(this.startLineNumber,this.startColumn,e,t):new s(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new i.y(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new i.y(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return 0===this.getDirection()?new s(e,t,this.endLineNumber,this.endColumn):new s(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new s(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return 0===t?new s(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new s(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new s(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.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,i=e.length;n<i;n++)if(!this.selectionsEqual(e[n],t[n]))return!1;return!0}static isISelection(e){return e&&"number"===typeof e.selectionStartLineNumber&&"number"===typeof e.selectionStartColumn&&"number"===typeof e.positionLineNumber&&"number"===typeof e.positionColumn}static createWithDirection(e,t,n,i,r){return 0===r?new s(e,t,n,i):new s(n,i,e,t)}}},973:(e,t,n)=>{"use strict";n.d(t,{W:()=>s});var i=n(3069),r=n(6677);class s{static{this.zero=new s(0,0)}static betweenPositions(e,t){return e.lineNumber===t.lineNumber?new s(0,t.column-e.column):new s(t.lineNumber-e.lineNumber,t.column-1)}static ofRange(e){return s.betweenPositions(e.getStartPosition(),e.getEndPosition())}static ofText(e){let t=0,n=0;for(const i of e)"\n"===i?(t++,n=0):n++;return new s(t,n)}constructor(e,t){this.lineCount=e,this.columnCount=t}isGreaterThanOrEqualTo(e){return this.lineCount!==e.lineCount?this.lineCount>e.lineCount:this.columnCount>=e.columnCount}createRange(e){return 0===this.lineCount?new r.Q(e.lineNumber,e.column,e.lineNumber,e.column+this.columnCount):new r.Q(e.lineNumber,e.column,e.lineNumber+this.lineCount,this.columnCount+1)}addToPosition(e){return 0===this.lineCount?new i.y(e.lineNumber,e.column+this.columnCount):new i.y(e.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}}},6486:(e,t,n)=>{"use strict";n.d(t,{Io:()=>o,Ld:()=>s,Th:()=>l});var i=n(2522),r=n(8925);const s=function(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const n of"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?")e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}();function o(e){let t=s;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}const a=new r.w;function l(e,t,n,r,s){if(t=o(t),s||(s=i.f.first(a)),n.length>s.maxLen){let i=e-s.maxLen/2;return i<0?i=0:r+=i,l(e,t,n=n.substring(i,e+s.maxLen/2),r,s)}const h=Date.now(),d=e-1-r;let u=-1,p=null;for(let i=1;!(Date.now()-h>=s.timeBudget);i++){const e=d-s.windowSize*i;t.lastIndex=Math.max(0,e);const r=c(t,n,d,u);if(!r&&p)break;if(p=r,e<=0)break;u=e}if(p){const e={word:p[0],startColumn:r+1+p.index,endColumn:r+1+p.index+p[0].length};return t.lastIndex=0,e}return null}function c(e,t,n,i){let r;for(;r=e.exec(t);){const t=r.index||0;if(t<=n&&e.lastIndex>=n)return r;if(i>0&&t>i)return null}return null}a.unshift({maxLen:1e3,windowSize:15,timeBudget:150})},5982:(e,t,n)=>{"use strict";n.d(t,{x:()=>i});class i{static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return 0!==(1024&e)}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(16744448&e)>>>15}static getBackground(e){return(4278190080&e)>>>24}static getClassNameFromMetadata(e){let t="mtk"+this.getForeground(e);const n=this.getFontStyle(e);return 1&n&&(t+=" mtki"),2&n&&(t+=" mtkb"),4&n&&(t+=" mtku"),8&n&&(t+=" mtks"),t}static getInlineStyleFromMetadata(e,t){const n=this.getForeground(e),i=this.getFontStyle(e);let r=`color: ${t[n]};`;1&i&&(r+="font-style: italic;"),2&i&&(r+="font-weight: bold;");let s="";return 4&i&&(s+=" underline"),8&i&&(s+=" line-through"),s&&(r+=`text-decoration:${s};`),r}static getPresentationFromMetadata(e){const t=this.getForeground(e),n=this.getFontStyle(e);return{foreground:t,italic:Boolean(1&n),bold:Boolean(2&n),underline:Boolean(4&n),strikethrough:Boolean(8&n)}}}},2083:(e,t,n)=>{"use strict";n.d(t,{rY:()=>g,ou:()=>f,dG:()=>C,OB:()=>S});var i=n(9493),r=(n(9400),n(1234)),s=n(1484);class o{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new r.vl,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]),(0,s.s)((()=>{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();const n=new a(this,e,t);return this._factories.set(e,n),(0,s.s)((()=>{const t=this._factories.get(e);t&&t===n&&(this._factories.delete(e),t.dispose())}))}async getOrCreate(e){const t=this.get(e);if(t)return t;const n=this._factories.get(e);return!n||n.isResolved?null:(await n.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;const 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}}class a extends s.jG{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._resolvePromise=this._create()),this._resolvePromise}async _create(){const e=await this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}}var l,c,h,d,u,p,m=n(8209);class f{constructor(e,t,n){this.offset=e,this.type=t,this.language=n,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}class g{constructor(e,t){this.tokens=e,this.endState=t,this._encodedTokenizationResultBrand=void 0}}!function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(l||(l={})),function(e){const t=new Map;t.set(0,i.W.symbolMethod),t.set(1,i.W.symbolFunction),t.set(2,i.W.symbolConstructor),t.set(3,i.W.symbolField),t.set(4,i.W.symbolVariable),t.set(5,i.W.symbolClass),t.set(6,i.W.symbolStruct),t.set(7,i.W.symbolInterface),t.set(8,i.W.symbolModule),t.set(9,i.W.symbolProperty),t.set(10,i.W.symbolEvent),t.set(11,i.W.symbolOperator),t.set(12,i.W.symbolUnit),t.set(13,i.W.symbolValue),t.set(15,i.W.symbolEnum),t.set(14,i.W.symbolConstant),t.set(15,i.W.symbolEnum),t.set(16,i.W.symbolEnumMember),t.set(17,i.W.symbolKeyword),t.set(27,i.W.symbolSnippet),t.set(18,i.W.symbolText),t.set(19,i.W.symbolColor),t.set(20,i.W.symbolFile),t.set(21,i.W.symbolReference),t.set(22,i.W.symbolCustomColor),t.set(23,i.W.symbolFolder),t.set(24,i.W.symbolTypeParameter),t.set(25,i.W.account),t.set(26,i.W.issues),e.toIcon=function(e){let n=t.get(e);return n||(console.info("No codicon found for CompletionItemKind "+e),n=i.W.symbolProperty),n};const n=new Map;n.set("method",0),n.set("function",1),n.set("constructor",2),n.set("field",3),n.set("variable",4),n.set("class",5),n.set("struct",6),n.set("interface",7),n.set("module",8),n.set("property",9),n.set("event",10),n.set("operator",11),n.set("unit",12),n.set("value",13),n.set("constant",14),n.set("enum",15),n.set("enum-member",16),n.set("enumMember",16),n.set("keyword",17),n.set("snippet",27),n.set("text",18),n.set("color",19),n.set("file",20),n.set("reference",21),n.set("customcolor",22),n.set("folder",23),n.set("type-parameter",24),n.set("typeParameter",24),n.set("account",25),n.set("issue",26),e.fromString=function(e,t){let i=n.get(e);return"undefined"!==typeof i||t||(i=9),i}}(c||(c={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(h||(h={}));!function(e){e[e.Automatic=0]="Automatic",e[e.PasteAs=1]="PasteAs"}(d||(d={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(u||(u={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(p||(p={}));(0,m.kg)("Array","array"),(0,m.kg)("Boolean","boolean"),(0,m.kg)("Class","class"),(0,m.kg)("Constant","constant"),(0,m.kg)("Constructor","constructor"),(0,m.kg)("Enum","enumeration"),(0,m.kg)("EnumMember","enumeration member"),(0,m.kg)("Event","event"),(0,m.kg)("Field","field"),(0,m.kg)("File","file"),(0,m.kg)("Function","function"),(0,m.kg)("Interface","interface"),(0,m.kg)("Key","key"),(0,m.kg)("Method","method"),(0,m.kg)("Module","module"),(0,m.kg)("Namespace","namespace"),(0,m.kg)("Null","null"),(0,m.kg)("Number","number"),(0,m.kg)("Object","object"),(0,m.kg)("Operator","operator"),(0,m.kg)("Package","package"),(0,m.kg)("Property","property"),(0,m.kg)("String","string"),(0,m.kg)("Struct","struct"),(0,m.kg)("TypeParameter","type parameter"),(0,m.kg)("Variable","variable");var b,v,y,w,_;!function(e){const t=new Map;t.set(0,i.W.symbolFile),t.set(1,i.W.symbolModule),t.set(2,i.W.symbolNamespace),t.set(3,i.W.symbolPackage),t.set(4,i.W.symbolClass),t.set(5,i.W.symbolMethod),t.set(6,i.W.symbolProperty),t.set(7,i.W.symbolField),t.set(8,i.W.symbolConstructor),t.set(9,i.W.symbolEnum),t.set(10,i.W.symbolInterface),t.set(11,i.W.symbolFunction),t.set(12,i.W.symbolVariable),t.set(13,i.W.symbolConstant),t.set(14,i.W.symbolString),t.set(15,i.W.symbolNumber),t.set(16,i.W.symbolBoolean),t.set(17,i.W.symbolArray),t.set(18,i.W.symbolObject),t.set(19,i.W.symbolKey),t.set(20,i.W.symbolNull),t.set(21,i.W.symbolEnumMember),t.set(22,i.W.symbolStruct),t.set(23,i.W.symbolEvent),t.set(24,i.W.symbolOperator),t.set(25,i.W.symbolTypeParameter),e.toIcon=function(e){let n=t.get(e);return n||(console.info("No codicon found for SymbolKind "+e),n=i.W.symbolProperty),n}}(b||(b={}));class k{static{this.Comment=new k("comment")}static{this.Imports=new k("imports")}static{this.Region=new k("region")}static fromValue(e){switch(e){case"comment":return k.Comment;case"imports":return k.Imports;case"region":return k.Region}return new k(e)}constructor(e){this.value=e}}!function(e){e[e.AIGenerated=1]="AIGenerated"}(v||(v={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(y||(y={})),function(e){e.is=function(e){return!(!e||"object"!==typeof e)&&("string"===typeof e.id&&"string"===typeof e.title)}}(w||(w={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(_||(_={}));const C=new o,S=new o;var x;!function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(x||(x={}))},154:(e,t,n)=>{"use strict";n.d(t,{L:()=>i});const i=(0,n(3591).u1)("languageService")},3941:(e,t,n)=>{"use strict";n.d(t,{W6:()=>l,vH:()=>c});var i=n(8209),r=n(1234),s=n(6359),o=n(1939),a=n(1646);const l=new class{constructor(){this._onDidChangeLanguages=new r.vl,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[]}registerLanguage(e){return this._languages.push(e),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let t=0,n=this._languages.length;t<n;t++)if(this._languages[t]===e)return void this._languages.splice(t,1)}}}getLanguages(){return this._languages}};s.O.add("editor.modesRegistry",l);const c="plaintext";l.registerLanguage({id:c,extensions:[".txt"],aliases:[i.kg("plainText.alias","Plain Text"),"text"],mimetypes:[o.K.text]}),s.O.as(a.Fd.Configuration).registerDefaultConfigurations([{overrides:{"[plaintext]":{"editor.unicodeHighlight.ambiguousCharacters":!1,"editor.unicodeHighlight.invisibleCharacters":!1}}}])},6223:(e,t,n)=>{"use strict";n.d(t,{A5:()=>i,Dg:()=>l,F4:()=>u,L5:()=>d,Wo:()=>h,X2:()=>a,ZS:()=>r,nk:()=>c,vd:()=>p});var i,r,s,o=n(146);!function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(i||(i={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(r||(r={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(s||(s={}));class a{get originalIndentSize(){return this._indentSizeIsTabSize?"tabSize":this.indentSize}constructor(e){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,0|e.tabSize),"tabSize"===e.indentSize?(this.indentSize=this.tabSize,this._indentSizeIsTabSize=!0):(this.indentSize=Math.max(1,0|e.indentSize),this._indentSizeIsTabSize=!1),this.insertSpaces=Boolean(e.insertSpaces),this.defaultEOL=0|e.defaultEOL,this.trimAutoWhitespace=Boolean(e.trimAutoWhitespace),this.bracketPairColorizationOptions=e.bracketPairColorizationOptions}equals(e){return this.tabSize===e.tabSize&&this._indentSizeIsTabSize===e._indentSizeIsTabSize&&this.indentSize===e.indentSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace&&(0,o.aI)(this.bracketPairColorizationOptions,e.bracketPairColorizationOptions)}createChangeEvent(e){return{tabSize:this.tabSize!==e.tabSize,indentSize:this.indentSize!==e.indentSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}}}class l{constructor(e,t){this._findMatchBrand=void 0,this.range=e,this.matches=t}}function c(e){return e&&"function"===typeof e.read}class h{constructor(e,t,n,i,r,s){this.identifier=e,this.range=t,this.text=n,this.forceMoveMarkers=i,this.isAutoWhitespaceEdit=r,this._isTracked=s}}class d{constructor(e,t,n){this.regex=e,this.wordSeparators=t,this.simpleSearch=n}}class u{constructor(e,t,n){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=n}}function p(e){return!e.isTooLargeForSyncing()&&!e.isForSimpleWidget}},7729:(e,t,n)=>{"use strict";n.d(t,{lt:()=>d,W5:()=>g,hB:()=>m,dr:()=>u,wC:()=>f});var i=n(1508),r=n(4320),s=n(534);class o extends s.V{constructor(e,t){super(0),this._segmenter=null,this._cachedLine=null,this._cachedSegments=[],this.intlSegmenterLocales=t,this.intlSegmenterLocales.length>0?this._segmenter=new Intl.Segmenter(this.intlSegmenterLocales,{granularity:"word"}):this._segmenter=null;for(let n=0,i=e.length;n<i;n++)this.set(e.charCodeAt(n),2);this.set(32,1),this.set(9,1)}findPrevIntlWordBeforeOrAtOffset(e,t){let n=null;for(const i of this._getIntlSegmenterWordsOnLine(e)){if(i.index>t)break;n=i}return n}findNextIntlWordAtOrAfterOffset(e,t){for(const n of this._getIntlSegmenterWordsOnLine(e))if(!(n.index<t))return n;return null}_getIntlSegmenterWordsOnLine(e){return this._segmenter?(this._cachedLine===e||(this._cachedLine=e,this._cachedSegments=this._filterWordSegments(this._segmenter.segment(e))),this._cachedSegments):[]}_filterWordSegments(e){const t=[];for(const n of e)this._isWordLike(n)&&t.push(n);return t}_isWordLike(e){return!!e.isWordLike}}const a=new r.qK(10);var l=n(3069),c=n(6677),h=n(6223);class d{constructor(e,t,n,i){this.searchString=e,this.isRegex=t,this.matchCase=n,this.wordSeparators=i}parseSearchRequest(){if(""===this.searchString)return null;let e;e=this.isRegex?function(e){if(!e||0===e.length)return!1;for(let t=0,n=e.length;t<n;t++){const i=e.charCodeAt(t);if(10===i)return!0;if(92===i){if(t++,t>=n)break;const i=e.charCodeAt(t);if(110===i||114===i||87===i)return!0}}return!1}(this.searchString):this.searchString.indexOf("\n")>=0;let t=null;try{t=i.OS(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0,unicode:!0})}catch(r){return null}if(!t)return null;let n=!this.isRegex&&!e;return n&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(n=this.matchCase),new h.L5(t,this.wordSeparators?function(e,t){const n=`${e}/${t.join(",")}`;let i=a.get(n);return i||(i=new o(e,t),a.set(n,i)),i}(this.wordSeparators,[]):null,n?this.searchString:null)}}function u(e,t,n){if(!n)return new h.Dg(e,null);const i=[];for(let r=0,s=t.length;r<s;r++)i[r]=t[r];return new h.Dg(e,i)}class p{constructor(e){const t=[];let n=0;for(let i=0,r=e.length;i<r;i++)10===e.charCodeAt(i)&&(t[n++]=i);this._lineFeedsOffsets=t}findLineFeedCountBeforeOffset(e){const t=this._lineFeedsOffsets;let n=0,i=t.length-1;if(-1===i)return 0;if(e<=t[0])return 0;for(;n<i;){const r=n+((i-n)/2|0);t[r]>=e?i=r-1:t[r+1]>=e?(n=r,i=r):n=r+1}return n+1}}class m{static findMatches(e,t,n,i,r){const s=t.parseSearchRequest();return s?s.regex.multiline?this._doFindMatchesMultiline(e,n,new g(s.wordSeparators,s.regex),i,r):this._doFindMatchesLineByLine(e,n,s,i,r):[]}static _getMultilineMatchRange(e,t,n,i,r,s){let o,a,l=0;if(i?(l=i.findLineFeedCountBeforeOffset(r),o=t+r+l):o=t+r,i){const e=i.findLineFeedCountBeforeOffset(r+s.length)-l;a=o+s.length+e}else a=o+s.length;const h=e.getPositionAt(o),d=e.getPositionAt(a);return new c.Q(h.lineNumber,h.column,d.lineNumber,d.column)}static _doFindMatchesMultiline(e,t,n,i,r){const s=e.getOffsetAt(t.getStartPosition()),o=e.getValueInRange(t,1),a="\r\n"===e.getEOL()?new p(o):null,l=[];let c,h=0;for(n.reset(0);c=n.next(o);)if(l[h++]=u(this._getMultilineMatchRange(e,s,o,a,c.index,c[0]),c,i),h>=r)return l;return l}static _doFindMatchesLineByLine(e,t,n,i,r){const s=[];let o=0;if(t.startLineNumber===t.endLineNumber){const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return o=this._findMatchesInLine(n,a,t.startLineNumber,t.startColumn-1,o,s,i,r),s}const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);o=this._findMatchesInLine(n,a,t.startLineNumber,t.startColumn-1,o,s,i,r);for(let l=t.startLineNumber+1;l<t.endLineNumber&&o<r;l++)o=this._findMatchesInLine(n,e.getLineContent(l),l,0,o,s,i,r);if(o<r){const a=e.getLineContent(t.endLineNumber).substring(0,t.endColumn-1);o=this._findMatchesInLine(n,a,t.endLineNumber,0,o,s,i,r)}return s}static _findMatchesInLine(e,t,n,i,r,s,o,a){const l=e.wordSeparators;if(!o&&e.simpleSearch){const o=e.simpleSearch,d=o.length,u=t.length;let p=-d;for(;-1!==(p=t.indexOf(o,p+d));)if((!l||f(l,t,u,p,d))&&(s[r++]=new h.Dg(new c.Q(n,p+1+i,n,p+1+d+i),null),r>=a))return r;return r}const d=new g(e.wordSeparators,e.regex);let p;d.reset(0);do{if(p=d.next(t),p&&(s[r++]=u(new c.Q(n,p.index+1+i,n,p.index+1+p[0].length+i),p,o),r>=a))return r}while(p);return r}static findNextMatch(e,t,n,i){const r=t.parseSearchRequest();if(!r)return null;const s=new g(r.wordSeparators,r.regex);return r.regex.multiline?this._doFindNextMatchMultiline(e,n,s,i):this._doFindNextMatchLineByLine(e,n,s,i)}static _doFindNextMatchMultiline(e,t,n,i){const r=new l.y(t.lineNumber,1),s=e.getOffsetAt(r),o=e.getLineCount(),a=e.getValueInRange(new c.Q(r.lineNumber,r.column,o,e.getLineMaxColumn(o)),1),h="\r\n"===e.getEOL()?new p(a):null;n.reset(t.column-1);const d=n.next(a);return d?u(this._getMultilineMatchRange(e,s,a,h,d.index,d[0]),d,i):1!==t.lineNumber||1!==t.column?this._doFindNextMatchMultiline(e,new l.y(1,1),n,i):null}static _doFindNextMatchLineByLine(e,t,n,i){const r=e.getLineCount(),s=t.lineNumber,o=e.getLineContent(s),a=this._findFirstMatchInLine(n,o,s,t.column,i);if(a)return a;for(let l=1;l<=r;l++){const t=(s+l-1)%r,o=e.getLineContent(t+1),a=this._findFirstMatchInLine(n,o,t+1,1,i);if(a)return a}return null}static _findFirstMatchInLine(e,t,n,i,r){e.reset(i-1);const s=e.next(t);return s?u(new c.Q(n,s.index+1,n,s.index+1+s[0].length),s,r):null}static findPreviousMatch(e,t,n,i){const r=t.parseSearchRequest();if(!r)return null;const s=new g(r.wordSeparators,r.regex);return r.regex.multiline?this._doFindPreviousMatchMultiline(e,n,s,i):this._doFindPreviousMatchLineByLine(e,n,s,i)}static _doFindPreviousMatchMultiline(e,t,n,i){const r=this._doFindMatchesMultiline(e,new c.Q(1,1,t.lineNumber,t.column),n,i,9990);if(r.length>0)return r[r.length-1];const s=e.getLineCount();return t.lineNumber!==s||t.column!==e.getLineMaxColumn(s)?this._doFindPreviousMatchMultiline(e,new l.y(s,e.getLineMaxColumn(s)),n,i):null}static _doFindPreviousMatchLineByLine(e,t,n,i){const r=e.getLineCount(),s=t.lineNumber,o=e.getLineContent(s).substring(0,t.column-1),a=this._findLastMatchInLine(n,o,s,i);if(a)return a;for(let l=1;l<=r;l++){const t=(r+s-l-1)%r,o=e.getLineContent(t+1),a=this._findLastMatchInLine(n,o,t+1,i);if(a)return a}return null}static _findLastMatchInLine(e,t,n,i){let r,s=null;for(e.reset(0);r=e.next(t);)s=u(new c.Q(n,r.index+1,n,r.index+1+r[0].length),r,i);return s}}function f(e,t,n,i,r){return function(e,t,n,i,r){if(0===i)return!0;const s=t.charCodeAt(i-1);if(0!==e.get(s))return!0;if(13===s||10===s)return!0;if(r>0){const n=t.charCodeAt(i);if(0!==e.get(n))return!0}return!1}(e,t,0,i,r)&&function(e,t,n,i,r){if(i+r===n)return!0;const s=t.charCodeAt(i+r);if(0!==e.get(s))return!0;if(13===s||10===s)return!0;if(r>0){const n=t.charCodeAt(i+r-1);if(0!==e.get(n))return!0}return!1}(e,t,n,i,r)}class g{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){const t=e.length;let n;do{if(this._prevMatchStartIndex+this._prevMatchLength===t)return null;if(n=this._searchRegex.exec(e),!n)return null;const r=n.index,s=n[0].length;if(r===this._prevMatchStartIndex&&s===this._prevMatchLength){if(0===s){i.Z5(e,t,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=r,this._prevMatchLength=s,!this._wordSeparators||f(this._wordSeparators,e,t,r,s))return n}while(n);return null}}},4272:(e,t,n)=>{"use strict";n.r(t),n.d(t,{KeyMod:()=>me,createMonacoBaseAPI:()=>fe});var i=n(8447),r=n(1234);class s{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}}const o=new s,a=new s,l=new s,c=new Array(230),h={},d=[],u=Object.create(null),p=Object.create(null),m=[],f=[];for(let ge=0;ge<=193;ge++)m[ge]=-1;for(let ge=0;ge<=132;ge++)f[ge]=-1;var g;!function(){const e="",t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[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,e,0,e,e,e],[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",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],n=[],i=[];for(const r of t){const[e,t,s,g,b,v,y,w,_]=r;if(i[t]||(i[t]=!0,d[t]=s,u[s]=t,p[s.toLowerCase()]=t,e&&(m[t]=g,0!==g&&3!==g&&5!==g&&4!==g&&6!==g&&57!==g&&(f[g]=t))),!n[g]){if(n[g]=!0,!b)throw new Error(`String representation missing for key code ${g} around scan code ${s}`);o.define(g,b),a.define(g,w||b),l.define(g,_||w||b)}v&&(c[v]=g),y&&(h[y]=g)}f[3]=46}(),function(e){e.toString=function(e){return o.keyCodeToStr(e)},e.fromString=function(e){return o.strToKeyCode(e)},e.toUserSettingsUS=function(e){return a.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return l.keyCodeToStr(e)},e.fromUserSettings=function(e){return a.strToKeyCode(e)||l.strToKeyCode(e)},e.toElectronAccelerator=function(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 o.keyCodeToStr(e)}}(g||(g={}));var b,v,y,w,_,k,C,S,x,E,F,L,I,T,N,R,D,A,M,O,z,P,B,W,V,U,$,q,j,K,H,G,Q,J,Y,X,Z,ee,te,ne,ie,re,se,oe,ae,le,ce=n(9400),he=n(3069),de=n(6677),ue=n(5326),pe=n(2083);!function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"}(b||(b={})),function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"}(v||(v={})),function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(y||(y={})),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.Snippet=27]="Snippet"}(w||(w={})),function(e){e[e.Deprecated=1]="Deprecated"}(_||(_={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(k||(k={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(C||(C={})),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"}(S||(S={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(x||(x={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(E||(E={})),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"}(F||(F={})),function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.ariaRequired=5]="ariaRequired",e[e.autoClosingBrackets=6]="autoClosingBrackets",e[e.autoClosingComments=7]="autoClosingComments",e[e.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=9]="autoClosingDelete",e[e.autoClosingOvertype=10]="autoClosingOvertype",e[e.autoClosingQuotes=11]="autoClosingQuotes",e[e.autoIndent=12]="autoIndent",e[e.automaticLayout=13]="automaticLayout",e[e.autoSurround=14]="autoSurround",e[e.bracketPairColorization=15]="bracketPairColorization",e[e.guides=16]="guides",e[e.codeLens=17]="codeLens",e[e.codeLensFontFamily=18]="codeLensFontFamily",e[e.codeLensFontSize=19]="codeLensFontSize",e[e.colorDecorators=20]="colorDecorators",e[e.colorDecoratorsLimit=21]="colorDecoratorsLimit",e[e.columnSelection=22]="columnSelection",e[e.comments=23]="comments",e[e.contextmenu=24]="contextmenu",e[e.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",e[e.cursorBlinking=26]="cursorBlinking",e[e.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",e[e.cursorStyle=28]="cursorStyle",e[e.cursorSurroundingLines=29]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",e[e.cursorWidth=31]="cursorWidth",e[e.disableLayerHinting=32]="disableLayerHinting",e[e.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",e[e.domReadOnly=34]="domReadOnly",e[e.dragAndDrop=35]="dragAndDrop",e[e.dropIntoEditor=36]="dropIntoEditor",e[e.emptySelectionClipboard=37]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",e[e.extraEditorClassName=39]="extraEditorClassName",e[e.fastScrollSensitivity=40]="fastScrollSensitivity",e[e.find=41]="find",e[e.fixedOverflowWidgets=42]="fixedOverflowWidgets",e[e.folding=43]="folding",e[e.foldingStrategy=44]="foldingStrategy",e[e.foldingHighlight=45]="foldingHighlight",e[e.foldingImportsByDefault=46]="foldingImportsByDefault",e[e.foldingMaximumRegions=47]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=49]="fontFamily",e[e.fontInfo=50]="fontInfo",e[e.fontLigatures=51]="fontLigatures",e[e.fontSize=52]="fontSize",e[e.fontWeight=53]="fontWeight",e[e.fontVariations=54]="fontVariations",e[e.formatOnPaste=55]="formatOnPaste",e[e.formatOnType=56]="formatOnType",e[e.glyphMargin=57]="glyphMargin",e[e.gotoLocation=58]="gotoLocation",e[e.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",e[e.hover=60]="hover",e[e.inDiffEditor=61]="inDiffEditor",e[e.inlineSuggest=62]="inlineSuggest",e[e.inlineEdit=63]="inlineEdit",e[e.letterSpacing=64]="letterSpacing",e[e.lightbulb=65]="lightbulb",e[e.lineDecorationsWidth=66]="lineDecorationsWidth",e[e.lineHeight=67]="lineHeight",e[e.lineNumbers=68]="lineNumbers",e[e.lineNumbersMinChars=69]="lineNumbersMinChars",e[e.linkedEditing=70]="linkedEditing",e[e.links=71]="links",e[e.matchBrackets=72]="matchBrackets",e[e.minimap=73]="minimap",e[e.mouseStyle=74]="mouseStyle",e[e.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=76]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",e[e.multiCursorModifier=78]="multiCursorModifier",e[e.multiCursorPaste=79]="multiCursorPaste",e[e.multiCursorLimit=80]="multiCursorLimit",e[e.occurrencesHighlight=81]="occurrencesHighlight",e[e.overviewRulerBorder=82]="overviewRulerBorder",e[e.overviewRulerLanes=83]="overviewRulerLanes",e[e.padding=84]="padding",e[e.pasteAs=85]="pasteAs",e[e.parameterHints=86]="parameterHints",e[e.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",e[e.placeholder=88]="placeholder",e[e.definitionLinkOpensInPeek=89]="definitionLinkOpensInPeek",e[e.quickSuggestions=90]="quickSuggestions",e[e.quickSuggestionsDelay=91]="quickSuggestionsDelay",e[e.readOnly=92]="readOnly",e[e.readOnlyMessage=93]="readOnlyMessage",e[e.renameOnType=94]="renameOnType",e[e.renderControlCharacters=95]="renderControlCharacters",e[e.renderFinalNewline=96]="renderFinalNewline",e[e.renderLineHighlight=97]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=98]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=99]="renderValidationDecorations",e[e.renderWhitespace=100]="renderWhitespace",e[e.revealHorizontalRightPadding=101]="revealHorizontalRightPadding",e[e.roundedSelection=102]="roundedSelection",e[e.rulers=103]="rulers",e[e.scrollbar=104]="scrollbar",e[e.scrollBeyondLastColumn=105]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=106]="scrollBeyondLastLine",e[e.scrollPredominantAxis=107]="scrollPredominantAxis",e[e.selectionClipboard=108]="selectionClipboard",e[e.selectionHighlight=109]="selectionHighlight",e[e.selectOnLineNumbers=110]="selectOnLineNumbers",e[e.showFoldingControls=111]="showFoldingControls",e[e.showUnused=112]="showUnused",e[e.snippetSuggestions=113]="snippetSuggestions",e[e.smartSelect=114]="smartSelect",e[e.smoothScrolling=115]="smoothScrolling",e[e.stickyScroll=116]="stickyScroll",e[e.stickyTabStops=117]="stickyTabStops",e[e.stopRenderingLineAfter=118]="stopRenderingLineAfter",e[e.suggest=119]="suggest",e[e.suggestFontSize=120]="suggestFontSize",e[e.suggestLineHeight=121]="suggestLineHeight",e[e.suggestOnTriggerCharacters=122]="suggestOnTriggerCharacters",e[e.suggestSelection=123]="suggestSelection",e[e.tabCompletion=124]="tabCompletion",e[e.tabIndex=125]="tabIndex",e[e.unicodeHighlighting=126]="unicodeHighlighting",e[e.unusualLineTerminators=127]="unusualLineTerminators",e[e.useShadowDOM=128]="useShadowDOM",e[e.useTabStops=129]="useTabStops",e[e.wordBreak=130]="wordBreak",e[e.wordSegmenterLocales=131]="wordSegmenterLocales",e[e.wordSeparators=132]="wordSeparators",e[e.wordWrap=133]="wordWrap",e[e.wordWrapBreakAfterCharacters=134]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=135]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=136]="wordWrapColumn",e[e.wordWrapOverride1=137]="wordWrapOverride1",e[e.wordWrapOverride2=138]="wordWrapOverride2",e[e.wrappingIndent=139]="wrappingIndent",e[e.wrappingStrategy=140]="wrappingStrategy",e[e.showDeprecated=141]="showDeprecated",e[e.inlayHints=142]="inlayHints",e[e.editorClassName=143]="editorClassName",e[e.pixelRatio=144]="pixelRatio",e[e.tabFocusMode=145]="tabFocusMode",e[e.layoutInfo=146]="layoutInfo",e[e.wrappingInfo=147]="wrappingInfo",e[e.defaultColorDecorators=148]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=149]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=150]="inlineCompletionsAccessibilityVerbose"}(L||(L={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(I||(I={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}(T||(T={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(N||(N={})),function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(R||(R={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(D||(D={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(A||(A={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(M||(M={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(O||(O={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(z||(z={})),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"}(P||(P={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(B||(B={})),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(W||(W={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(V||(V={})),function(e){e[e.Normal=1]="Normal",e[e.Underlined=2]="Underlined"}(U||(U={})),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"}($||($={})),function(e){e[e.AIGenerated=1]="AIGenerated"}(q||(q={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(j||(j={})),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"}(K||(K={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(H||(H={})),function(e){e[e.Word=0]="Word",e[e.Line=1]="Line",e[e.Suggest=2]="Suggest"}(G||(G={})),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"}(Q||(Q={})),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"}(J||(J={})),function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"}(Y||(Y={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"}(X||(X={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(Z||(Z={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(ee||(ee={})),function(e){e.Off="off",e.OnCode="onCode",e.On="on"}(te||(te={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(ne||(ne={})),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"}(ie||(ie={})),function(e){e[e.Deprecated=1]="Deprecated"}(re||(re={})),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"}(se||(se={})),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"}(oe||(oe={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(ae||(ae={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(le||(le={}));class me{static{this.CtrlCmd=2048}static{this.Shift=1024}static{this.Alt=512}static{this.WinCtrl=256}static chord(e,t){return function(e,t){return(e|(65535&t)<<16>>>0)>>>0}(e,t)}}function fe(){return{editor:void 0,languages:void 0,CancellationTokenSource:i.Qi,Emitter:r.vl,KeyCode:P,KeyMod:me,Position:he.y,Range:de.Q,Selection:ue.L,SelectionDirection:ee,MarkerSeverity:B,MarkerTag:W,Uri:ce.r,Token:pe.ou}}},5196:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BaseEditorSimpleWorker:()=>Pe,EditorSimpleWorker:()=>Be,create:()=>We});class i{constructor(e,t,n,i){this.originalStart=e,this.originalLength=t,this.modifiedStart=n,this.modifiedLength=i}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}var r=n(5600);class s{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let n=0,i=e.length;n<i;n++)t[n]=e.charCodeAt(n);return t}}function o(e,t,n){return new h(new s(e),new s(t)).ComputeDiff(n).changes}class a{static Assert(e,t){if(!e)throw new Error(t)}}class l{static Copy(e,t,n,i,r){for(let s=0;s<r;s++)n[i+s]=e[t+s]}static Copy2(e,t,n,i,r){for(let s=0;s<r;s++)n[i+s]=e[t+s]}}class c{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 i(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}}class h{constructor(e,t,n=null){this.ContinueProcessingPredicate=n,this._originalSequence=e,this._modifiedSequence=t;const[i,r,s]=h._getElements(e),[o,a,l]=h._getElements(t);this._hasStrings=s&&l,this._originalStringElements=i,this._originalElementsOrHash=r,this._modifiedStringElements=o,this._modifiedElementsOrHash=a,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"===typeof e[0]}static _getElements(e){const t=e.getElements();if(h._isStringArray(t)){const e=new Int32Array(t.length);for(let n=0,i=t.length;n<i;n++)e[n]=(0,r.e2)(t[n],0);return[t,e,!0]}return t instanceof Int32Array?[[],t,!1]:[[],new Int32Array(t),!1]}ElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._modifiedStringElements[t])}ElementsAreStrictEqual(e,t){if(!this.ElementsAreEqual(e,t))return!1;return h._getStrictElement(this._originalSequence,e)===h._getStrictElement(this._modifiedSequence,t)}static _getStrictElement(e,t){return"function"===typeof e.getStrictElement?e.getStrictElement(t):null}OriginalElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._originalElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._originalStringElements[t])}ModifiedElementsAreEqual(e,t){return this._modifiedElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._modifiedStringElements[e]===this._modifiedStringElements[t])}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,t,n,i,r){const s=[!1];let o=this.ComputeDiffRecursive(e,t,n,i,s);return r&&(o=this.PrettifyChanges(o)),{quitEarly:s[0],changes:o}}ComputeDiffRecursive(e,t,n,r,s){for(s[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 s;return n<=r?(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),s=[new i(e,0,n,r-n+1)]):e<=t?(a.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),s=[new i(e,t-e+1,n,0)]):(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),a.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),s=[]),s}const o=[0],l=[0],c=this.ComputeRecursionPoint(e,t,n,r,o,l,s),h=o[0],d=l[0];if(null!==c)return c;if(!s[0]){const o=this.ComputeDiffRecursive(e,h,n,d,s);let a=[];return a=s[0]?[new i(h+1,t-(h+1)+1,d+1,r-(d+1)+1)]:this.ComputeDiffRecursive(h+1,t,d+1,r,s),this.ConcatenateChanges(o,a)}return[new i(e,t-e+1,n,r-n+1)]}WALKTRACE(e,t,n,r,s,o,a,l,h,d,u,p,m,f,g,b,v,y){let w=null,_=null,k=new c,C=t,S=n,x=m[0]-b[0]-r,E=-1073741824,F=this.m_forwardHistory.length-1;do{const t=x+e;t===C||t<S&&h[t-1]<h[t+1]?(f=(u=h[t+1])-x-r,u<E&&k.MarkNextChange(),E=u,k.AddModifiedElement(u+1,f),x=t+1-e):(f=(u=h[t-1]+1)-x-r,u<E&&k.MarkNextChange(),E=u-1,k.AddOriginalElement(u,f+1),x=t-1-e),F>=0&&(e=(h=this.m_forwardHistory[F])[0],C=1,S=h.length-1)}while(--F>=-1);if(w=k.getReverseChanges(),y[0]){let e=m[0]+1,t=b[0]+1;if(null!==w&&w.length>0){const n=w[w.length-1];e=Math.max(e,n.getOriginalEnd()),t=Math.max(t,n.getModifiedEnd())}_=[new i(e,p-e+1,t,g-t+1)]}else{k=new c,C=o,S=a,x=m[0]-b[0]-l,E=1073741824,F=v?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=x+s;e===C||e<S&&d[e-1]>=d[e+1]?(f=(u=d[e+1]-1)-x-l,u>E&&k.MarkNextChange(),E=u+1,k.AddOriginalElement(u+1,f+1),x=e+1-s):(f=(u=d[e-1])-x-l,u>E&&k.MarkNextChange(),E=u,k.AddModifiedElement(u+1,f+1),x=e-1-s),F>=0&&(s=(d=this.m_reverseHistory[F])[0],C=1,S=d.length-1)}while(--F>=-1);_=k.getChanges()}return this.ConcatenateChanges(w,_)}ComputeRecursionPoint(e,t,n,r,s,o,a){let c=0,h=0,d=0,u=0,p=0,m=0;e--,n--,s[0]=0,o[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const f=t-e+(r-n),g=f+1,b=new Int32Array(g),v=new Int32Array(g),y=r-n,w=t-e,_=e-n,k=t-r,C=(w-y)%2===0;b[y]=e,v[w]=t,a[0]=!1;for(let S=1;S<=f/2+1;S++){let f=0,x=0;d=this.ClipDiagonalBound(y-S,S,y,g),u=this.ClipDiagonalBound(y+S,S,y,g);for(let e=d;e<=u;e+=2){c=e===d||e<u&&b[e-1]<b[e+1]?b[e+1]:b[e-1]+1,h=c-(e-y)-_;const n=c;for(;c<t&&h<r&&this.ElementsAreEqual(c+1,h+1);)c++,h++;if(b[e]=c,c+h>f+x&&(f=c,x=h),!C&&Math.abs(e-w)<=S-1&&c>=v[e])return s[0]=c,o[0]=h,n<=v[e]&&S<=1448?this.WALKTRACE(y,d,u,_,w,p,m,k,b,v,c,t,s,h,r,o,C,a):null}const E=(f-e+(x-n)-S)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(f,E))return a[0]=!0,s[0]=f,o[0]=x,E>0&&S<=1448?this.WALKTRACE(y,d,u,_,w,p,m,k,b,v,c,t,s,h,r,o,C,a):(e++,n++,[new i(e,t-e+1,n,r-n+1)]);p=this.ClipDiagonalBound(w-S,S,w,g),m=this.ClipDiagonalBound(w+S,S,w,g);for(let i=p;i<=m;i+=2){c=i===p||i<m&&v[i-1]>=v[i+1]?v[i+1]-1:v[i-1],h=c-(i-w)-k;const l=c;for(;c>e&&h>n&&this.ElementsAreEqual(c,h);)c--,h--;if(v[i]=c,C&&Math.abs(i-y)<=S&&c<=b[i])return s[0]=c,o[0]=h,l>=b[i]&&S<=1448?this.WALKTRACE(y,d,u,_,w,p,m,k,b,v,c,t,s,h,r,o,C,a):null}if(S<=1447){let e=new Int32Array(u-d+2);e[0]=y-d+1,l.Copy2(b,d,e,1,u-d+1),this.m_forwardHistory.push(e),e=new Int32Array(m-p+2),e[0]=w-p+1,l.Copy2(v,p,e,1,m-p+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(y,d,u,_,w,p,m,k,b,v,c,t,s,h,r,o,C,a)}PrettifyChanges(e){for(let t=0;t<e.length;t++){const n=e[t],i=t<e.length-1?e[t+1].originalStart:this._originalElementsOrHash.length,r=t<e.length-1?e[t+1].modifiedStart:this._modifiedElementsOrHash.length,s=n.originalLength>0,o=n.modifiedLength>0;for(;n.originalStart+n.originalLength<i&&n.modifiedStart+n.modifiedLength<r&&(!s||this.OriginalElementsAreEqual(n.originalStart,n.originalStart+n.originalLength))&&(!o||this.ModifiedElementsAreEqual(n.modifiedStart,n.modifiedStart+n.modifiedLength));){const e=this.ElementsAreStrictEqual(n.originalStart,n.modifiedStart);if(this.ElementsAreStrictEqual(n.originalStart+n.originalLength,n.modifiedStart+n.modifiedLength)&&!e)break;n.originalStart++,n.modifiedStart++}const a=[null];t<e.length-1&&this.ChangesOverlap(e[t],e[t+1],a)&&(e[t]=a[0],e.splice(t+1,1),t--)}for(let t=e.length-1;t>=0;t--){const n=e[t];let i=0,r=0;if(t>0){const n=e[t-1];i=n.originalStart+n.originalLength,r=n.modifiedStart+n.modifiedLength}const s=n.originalLength>0,o=n.modifiedLength>0;let a=0,l=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let e=1;;e++){const t=n.originalStart-e,c=n.modifiedStart-e;if(t<i||c<r)break;if(s&&!this.OriginalElementsAreEqual(t,t+n.originalLength))break;if(o&&!this.ModifiedElementsAreEqual(c,c+n.modifiedLength))break;const h=(t===i&&c===r?5:0)+this._boundaryScore(t,n.originalLength,c,n.modifiedLength);h>l&&(l=h,a=e)}n.originalStart-=a,n.modifiedStart-=a;const c=[null];t>0&&this.ChangesOverlap(e[t-1],e[t],c)&&(e[t-1]=c[0],e.splice(t,1),t++)}if(this._hasStrings)for(let t=1,n=e.length;t<n;t++){const n=e[t-1],i=e[t],r=i.originalStart-n.originalStart-n.originalLength,s=n.originalStart,o=i.originalStart+i.originalLength,a=o-s,l=n.modifiedStart,c=i.modifiedStart+i.modifiedLength,h=c-l;if(r<5&&a<20&&h<20){const e=this._findBetterContiguousSequence(s,a,l,h,r);if(e){const[t,s]=e;t===n.originalStart+n.originalLength&&s===n.modifiedStart+n.modifiedLength||(n.originalLength=t-n.originalStart,n.modifiedLength=s-n.modifiedStart,i.originalStart=t+r,i.modifiedStart=s+r,i.originalLength=o-i.originalStart,i.modifiedLength=c-i.modifiedStart)}}}return e}_findBetterContiguousSequence(e,t,n,i,r){if(t<r||i<r)return null;const s=e+t-r+1,o=n+i-r+1;let a=0,l=0,c=0;for(let h=e;h<s;h++)for(let e=n;e<o;e++){const t=this._contiguousSequenceScore(h,e,r);t>0&&t>a&&(a=t,l=h,c=e)}return a>0?[l,c]:null}_contiguousSequenceScore(e,t,n){let i=0;for(let r=0;r<n;r++){if(!this.ElementsAreEqual(e+r,t+r))return 0;i+=this._originalStringElements[e+r].length}return i}_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){const 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){const n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1}_boundaryScore(e,t,n,i){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(n,i)?1:0)}ConcatenateChanges(e,t){const n=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){const i=new Array(e.length+t.length-1);return l.Copy(e,0,i,0,e.length-1),i[e.length-1]=n[0],l.Copy(t,1,i,e.length,t.length-1),i}{const n=new Array(e.length+t.length);return l.Copy(e,0,n,0,e.length),l.Copy(t,0,n,e.length,t.length),n}}ChangesOverlap(e,t,n){if(a.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),a.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){const r=e.originalStart;let s=e.originalLength;const o=e.modifiedStart;let a=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(s=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(a=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new i(r,s,o,a),!0}return n[0]=null,!1}ClipDiagonalBound(e,t,n,i){if(e>=0&&e<i)return e;const r=t%2===0;if(e<0){return r===(n%2===0)?0:1}return r===((i-n-1)%2===0)?i-1:i-2}}var d=n(6677),u=n(534);class p{constructor(e,t,n){const i=new Uint8Array(e*t);for(let r=0,s=e*t;r<s;r++)i[r]=n;this._data=i,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}}class m{constructor(e){let t=0,n=0;for(let r=0,s=e.length;r<s;r++){const[i,s,o]=e[r];s>t&&(t=s),i>n&&(n=i),o>n&&(n=o)}t++,n++;const i=new p(n,t,0);for(let r=0,s=e.length;r<s;r++){const[t,n,s]=e[r];i.set(t,n,s)}this._states=i,this._maxCharCode=t}nextState(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)}}let f=null;let g=null;class b{static _createLink(e,t,n,i,r){let s=r-1;do{const n=t.charCodeAt(s);if(2!==e.get(n))break;s--}while(s>i);if(i>0){const e=t.charCodeAt(i-1),n=t.charCodeAt(s);(40===e&&41===n||91===e&&93===n||123===e&&125===n)&&s--}return{range:{startLineNumber:n,startColumn:i+1,endLineNumber:n,endColumn:s+2},url:t.substring(i,s+1)}}static computeLinks(e,t=function(){return null===f&&(f=new m([[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]])),f}()){const n=function(){if(null===g){g=new u.V(0);const e=" \t<>'\"\u3001\u3002\uff61\uff64\uff0c\uff0e\uff1a\uff1b\u2018\u3008\u300c\u300e\u3014\uff08\uff3b\uff5b\uff62\uff63\uff5d\uff3d\uff09\u3015\u300f\u300d\u3009\u2019\uff40\uff5e\u2026";for(let n=0;n<e.length;n++)g.set(e.charCodeAt(n),1);const t=".,;:";for(let n=0;n<t.length;n++)g.set(t.charCodeAt(n),2)}return g}(),i=[];for(let r=1,s=e.getLineCount();r<=s;r++){const s=e.getLineContent(r),o=s.length;let a=0,l=0,c=0,h=1,d=!1,u=!1,p=!1,m=!1;for(;a<o;){let e=!1;const o=s.charCodeAt(a);if(13===h){let t;switch(o){case 40:d=!0,t=0;break;case 41:t=d?0:1;break;case 91:p=!0,u=!0,t=0;break;case 93:p=!1,t=u?0:1;break;case 123:m=!0,t=0;break;case 125:t=m?0:1;break;case 39:case 34:case 96:t=c===o?1:39===c||34===c||96===c?0:1;break;case 42:t=42===c?1:0;break;case 124:t=124===c?1:0;break;case 32:t=p?0:1;break;default:t=n.get(o)}1===t&&(i.push(b._createLink(n,s,r,l,a)),e=!0)}else if(12===h){let t;91===o?(u=!0,t=0):t=n.get(o),1===t?e=!0:h=13}else h=t.nextState(h,o),0===h&&(e=!0);e&&(h=1,d=!1,u=!1,m=!1,l=a+1,c=o),a++}13===h&&i.push(b._createLink(n,s,r,l,o))}return i}}class v{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}static{this.INSTANCE=new v}navigateValueSet(e,t,n,i,r){if(e&&t){const n=this.doNavigateValueSet(t,r);if(n)return{range:e,value:n}}if(n&&i){const e=this.doNavigateValueSet(i,r);if(e)return{range:n,value:e}}return null}doNavigateValueSet(e,t){const n=this.numberReplace(e,t);return null!==n?n:this.textReplace(e,t)}numberReplace(e,t){const n=Math.pow(10,e.length-(e.lastIndexOf(".")+1));let i=Number(e);const r=parseFloat(e);return isNaN(i)||isNaN(r)||i!==r?null:0!==i||t?(i=Math.floor(i*n),i+=t?n:-n,String(i/n)):null}textReplace(e,t){return this.valueSetsReplace(this._defaultValueSet,e,t)}valueSetsReplace(e,t,n){let i=null;for(let r=0,s=e.length;null===i&&r<s;r++)i=this.valueSetReplace(e[r],t,n);return i}valueSetReplace(e,t,n){let i=e.indexOf(t);return i>=0?(i+=n?1:-1,i<0?i=e.length-1:i%=e.length,e[i]):null}}var y=n(4272),w=n(718),_=n(8381),k=n(4855);class C{constructor(e,t,n){this.changes=e,this.moves=t,this.hitTimeout=n}}class S{constructor(e,t){this.lineRangeMapping=e,this.changes=t}}var x=n(4383),E=n(6571),F=n(3069),L=n(6782),I=n(4444);n(973);class T{constructor(e,t){this.range=e,this.text=t}toSingleEditOperation(){return{range:this.range,text:this.text}}}class N{static inverse(e,t,n){const i=[];let r=1,s=1;for(const a of e){const e=new N(new E.M(r,a.original.startLineNumber),new E.M(s,a.modified.startLineNumber));e.modified.isEmpty||i.push(e),r=a.original.endLineNumberExclusive,s=a.modified.endLineNumberExclusive}const o=new N(new E.M(r,t+1),new E.M(s,n+1));return o.modified.isEmpty||i.push(o),i}static clip(e,t,n){const i=[];for(const r of e){const e=r.original.intersect(t),s=r.modified.intersect(n);e&&!e.isEmpty&&s&&!s.isEmpty&&i.push(new N(e,s))}return i}constructor(e,t){this.original=e,this.modified=t}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new N(this.modified,this.original)}join(e){return new N(this.original.join(e.original),this.modified.join(e.modified))}toRangeMapping(){const e=this.original.toInclusiveRange(),t=this.modified.toInclusiveRange();if(e&&t)return new M(e,t);if(1===this.original.startLineNumber||1===this.modified.startLineNumber){if(1!==this.modified.startLineNumber||1!==this.original.startLineNumber)throw new x.D7("not a valid diff");return new M(new d.Q(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new d.Q(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}return new M(new d.Q(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new d.Q(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}toRangeMapping2(e,t){if(D(this.original.endLineNumberExclusive,e)&&D(this.modified.endLineNumberExclusive,t))return new M(new d.Q(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new d.Q(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1));if(!this.original.isEmpty&&!this.modified.isEmpty)return new M(d.Q.fromPositions(new F.y(this.original.startLineNumber,1),R(new F.y(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),d.Q.fromPositions(new F.y(this.modified.startLineNumber,1),R(new F.y(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)));if(this.original.startLineNumber>1&&this.modified.startLineNumber>1)return new M(d.Q.fromPositions(R(new F.y(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER),e),R(new F.y(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),d.Q.fromPositions(R(new F.y(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER),t),R(new F.y(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)));throw new x.D7}}function R(e,t){if(e.lineNumber<1)return new F.y(1,1);if(e.lineNumber>t.length)return new F.y(t.length,t[t.length-1].length+1);const n=t[e.lineNumber-1];return e.column>n.length+1?new F.y(e.lineNumber,n.length+1):e}function D(e,t){return e>=1&&e<=t.length}class A extends N{static fromRangeMappings(e){const t=E.M.join(e.map((e=>E.M.fromRangeInclusive(e.originalRange)))),n=E.M.join(e.map((e=>E.M.fromRangeInclusive(e.modifiedRange))));return new A(t,n,e)}constructor(e,t,n){super(e,t),this.innerChanges=n}flip(){return new A(this.modified,this.original,this.innerChanges?.map((e=>e.flip())))}withInnerChangesFromLineRanges(){return new A(this.original,this.modified,[this.toRangeMapping()])}}class M{static assertSorted(e){for(let t=1;t<e.length;t++){const n=e[t-1],i=e[t];if(!n.originalRange.getEndPosition().isBeforeOrEqual(i.originalRange.getStartPosition())||!n.modifiedRange.getEndPosition().isBeforeOrEqual(i.modifiedRange.getStartPosition()))throw new x.D7("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 M(this.modifiedRange,this.originalRange)}toTextEdit(e){const t=e.getValueOfRange(this.modifiedRange);return new T(this.originalRange,t)}}var O=n(1508);class z{computeDiff(e,t,n){const i=new $(e,t,{maxComputationTime:n.maxComputationTimeMs,shouldIgnoreTrimWhitespace:n.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),r=[];let s=null;for(const o of i.changes){let e,t;e=0===o.originalEndLineNumber?new E.M(o.originalStartLineNumber+1,o.originalStartLineNumber+1):new E.M(o.originalStartLineNumber,o.originalEndLineNumber+1),t=0===o.modifiedEndLineNumber?new E.M(o.modifiedStartLineNumber+1,o.modifiedStartLineNumber+1):new E.M(o.modifiedStartLineNumber,o.modifiedEndLineNumber+1);let n=new A(e,t,o.charChanges?.map((e=>new M(new d.Q(e.originalStartLineNumber,e.originalStartColumn,e.originalEndLineNumber,e.originalEndColumn),new d.Q(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)))));s&&(s.modified.endLineNumberExclusive!==n.modified.startLineNumber&&s.original.endLineNumberExclusive!==n.original.startLineNumber||(n=new A(s.original.join(n.original),s.modified.join(n.modified),s.innerChanges&&n.innerChanges?s.innerChanges.concat(n.innerChanges):void 0),r.pop())),r.push(n),s=n}return(0,L.Ft)((()=>(0,L.Xo)(r,((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 C(r,[],i.quitEarly)}}function P(e,t,n,i){return new h(e,t,n).ComputeDiff(i)}class B{constructor(e){const t=[],n=[];for(let i=0,r=e.length;i<r;i++)t[i]=q(e[i],1),n[i]=j(e[i],1);this.lines=e,this._startColumns=t,this._endColumns=n}getElements(){const 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){const i=[],r=[],s=[];let o=0;for(let a=t;a<=n;a++){const t=this.lines[a],l=e?this._startColumns[a]:1,c=e?this._endColumns[a]:t.length+1;for(let e=l;e<c;e++)i[o]=t.charCodeAt(e-1),r[o]=a+1,s[o]=e,o++;!e&&a<n&&(i[o]=10,r[o]=a+1,s[o]=t.length+1,o++)}return new W(i,r,s)}}class W{constructor(e,t,n){this._charCodes=e,this._lineNumbers=t,this._columns=n}toString(){return"["+this._charCodes.map(((e,t)=>(10===e?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[t]},${this._columns[t]})`)).join(", ")+"]"}_assertIndex(e,t){if(e<0||e>=t.length)throw new 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-1===e?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),10===this._charCodes[e]?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-1===e?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),10===this._charCodes[e]?1:this._columns[e]+1)}}class V{constructor(e,t,n,i,r,s,o,a){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=n,this.originalEndColumn=i,this.modifiedStartLineNumber=r,this.modifiedStartColumn=s,this.modifiedEndLineNumber=o,this.modifiedEndColumn=a}static createFromDiffChange(e,t,n){const i=t.getStartLineNumber(e.originalStart),r=t.getStartColumn(e.originalStart),s=t.getEndLineNumber(e.originalStart+e.originalLength-1),o=t.getEndColumn(e.originalStart+e.originalLength-1),a=n.getStartLineNumber(e.modifiedStart),l=n.getStartColumn(e.modifiedStart),c=n.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),h=n.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new V(i,r,s,o,a,l,c,h)}}class U{constructor(e,t,n,i,r){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=n,this.modifiedEndLineNumber=i,this.charChanges=r}static createFromDiffResult(e,t,n,i,r,s,o){let a,l,c,h,d;if(0===t.originalLength?(a=n.getStartLineNumber(t.originalStart)-1,l=0):(a=n.getStartLineNumber(t.originalStart),l=n.getEndLineNumber(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(c=i.getStartLineNumber(t.modifiedStart)-1,h=0):(c=i.getStartLineNumber(t.modifiedStart),h=i.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),s&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&r()){const s=n.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),a=i.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);if(s.getElements().length>0&&a.getElements().length>0){let e=P(s,a,r,!0).changes;o&&(e=function(e){if(e.length<=1)return e;const t=[e[0]];let n=t[0];for(let i=1,r=e.length;i<r;i++){const r=e[i],s=r.originalStart-(n.originalStart+n.originalLength),o=r.modifiedStart-(n.modifiedStart+n.modifiedLength);Math.min(s,o)<3?(n.originalLength=r.originalStart+r.originalLength-n.originalStart,n.modifiedLength=r.modifiedStart+r.modifiedLength-n.modifiedStart):(t.push(r),n=r)}return t}(e)),d=[];for(let t=0,n=e.length;t<n;t++)d.push(V.createFromDiffChange(e[t],s,a))}}return new U(a,l,c,h,d)}}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 B(e),this.modified=new B(t),this.continueLineDiff=K(n.maxComputationTime),this.continueCharDiff=K(0===n.maxComputationTime?0:Math.min(n.maxComputationTime,5e3))}computeDiff(){if(1===this.original.lines.length&&0===this.original.lines[0].length)return 1===this.modified.lines.length&&0===this.modified.lines[0].length?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(1===this.modified.lines.length&&0===this.modified.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const e=P(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=e.changes,n=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){const e=[];for(let n=0,i=t.length;n<i;n++)e.push(U.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[n],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:n,changes:e}}const i=[];let r=0,s=0;for(let o=-1,a=t.length;o<a;o++){const e=o+1<a?t[o+1]:null,n=e?e.originalStart:this.originalLines.length,l=e?e.modifiedStart:this.modifiedLines.length;for(;r<n&&s<l;){const e=this.originalLines[r],t=this.modifiedLines[s];if(e!==t){{let n=q(e,1),o=q(t,1);for(;n>1&&o>1;){if(e.charCodeAt(n-2)!==t.charCodeAt(o-2))break;n--,o--}(n>1||o>1)&&this._pushTrimWhitespaceCharChange(i,r+1,1,n,s+1,1,o)}{let n=j(e,1),o=j(t,1);const a=e.length+1,l=t.length+1;for(;n<a&&o<l;){if(e.charCodeAt(n-1)!==e.charCodeAt(o-1))break;n++,o++}(n<a||o<l)&&this._pushTrimWhitespaceCharChange(i,r+1,n,a,s+1,o,l)}}r++,s++}e&&(i.push(U.createFromDiffResult(this.shouldIgnoreTrimWhitespace,e,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),r+=e.originalLength,s+=e.modifiedLength)}return{quitEarly:n,changes:i}}_pushTrimWhitespaceCharChange(e,t,n,i,r,s,o){if(this._mergeTrimWhitespaceCharChange(e,t,n,i,r,s,o))return;let a;this.shouldComputeCharChanges&&(a=[new V(t,n,t,i,r,s,r,o)]),e.push(new U(t,t,r,r,a))}_mergeTrimWhitespaceCharChange(e,t,n,i,r,s,o){const a=e.length;if(0===a)return!1;const l=e[a-1];return 0!==l.originalEndLineNumber&&0!==l.modifiedEndLineNumber&&(l.originalEndLineNumber===t&&l.modifiedEndLineNumber===r?(this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new V(t,n,t,i,r,s,r,o)),!0):l.originalEndLineNumber+1===t&&l.modifiedEndLineNumber+1===r&&(l.originalEndLineNumber=t,l.modifiedEndLineNumber=r,this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new V(t,n,t,i,r,s,r,o)),!0))}}function q(e,t){const n=O.HG(e);return-1===n?t:n+1}function j(e,t){const n=O.lT(e);return-1===n?t:n+2}function K(e){if(0===e)return()=>!0;const t=Date.now();return()=>Date.now()-t<e}var H=n(9861);class G{static trivial(e,t){return new G([new Q(I.L.ofLength(e.length),I.L.ofLength(t.length))],!1)}static trivialTimedOut(e,t){return new G([new Q(I.L.ofLength(e.length),I.L.ofLength(t.length))],!0)}constructor(e,t){this.diffs=e,this.hitTimeout=t}}class Q{static invert(e,t){const n=[];return(0,H.pN)(e,((e,i)=>{n.push(Q.fromOffsetPairs(e?e.getEndExclusives():J.zero,i?i.getStarts():new J(t,(e?e.seq2Range.endExclusive-e.seq1Range.endExclusive:0)+t)))})),n}static fromOffsetPairs(e,t){return new Q(new I.L(e.offset1,t.offset1),new I.L(e.offset2,t.offset2))}static assertSorted(e){let t;for(const n of e){if(t&&!(t.seq1Range.endExclusive<=n.seq1Range.start&&t.seq2Range.endExclusive<=n.seq2Range.start))throw new x.D7("Sequence diffs must be sorted");t=n}}constructor(e,t){this.seq1Range=e,this.seq2Range=t}swap(){return new Q(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(e){return new Q(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}delta(e){return 0===e?this:new Q(this.seq1Range.delta(e),this.seq2Range.delta(e))}deltaStart(e){return 0===e?this:new Q(this.seq1Range.deltaStart(e),this.seq2Range.deltaStart(e))}deltaEnd(e){return 0===e?this:new Q(this.seq1Range.deltaEnd(e),this.seq2Range.deltaEnd(e))}intersect(e){const t=this.seq1Range.intersect(e.seq1Range),n=this.seq2Range.intersect(e.seq2Range);if(t&&n)return new Q(t,n)}getStarts(){return new J(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new J(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}class J{static{this.zero=new J(0,0)}static{this.max=new J(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER)}constructor(e,t){this.offset1=e,this.offset2=t}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(e){return 0===e?this:new J(this.offset1+e,this.offset2+e)}equals(e){return this.offset1===e.offset1&&this.offset2===e.offset2}}class Y{static{this.instance=new Y}isValid(){return!0}}class X{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new x.D7("timeout must be positive")}isValid(){return!(Date.now()-this.startTime<this.timeout)&&this.valid&&(this.valid=!1),this.valid}}class Z{constructor(e,t){this.width=e,this.height=t,this.array=[],this.array=new 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 ee(e){return 32===e||9===e}class te{static{this.chrKeys=new Map}static getKey(e){let t=this.chrKeys.get(e);return void 0===t&&(t=this.chrKeys.size,this.chrKeys.set(e,t)),t}constructor(e,t,n){this.range=e,this.lines=t,this.source=n,this.histogram=[];let i=0;for(let r=e.startLineNumber-1;r<e.endLineNumberExclusive-1;r++){const e=t[r];for(let t=0;t<e.length;t++){i++;const n=e[t],r=te.getKey(n);this.histogram[r]=(this.histogram[r]||0)+1}i++;const n=te.getKey("\n");this.histogram[n]=(this.histogram[n]||0)+1}this.totalCount=i}computeSimilarity(e){let t=0;const n=Math.max(this.histogram.length,e.histogram.length);for(let i=0;i<n;i++)t+=Math.abs((this.histogram[i]??0)-(e.histogram[i]??0));return 1-t/(this.totalCount+e.totalCount)}}class ne{compute(e,t,n=Y.instance,i){if(0===e.length||0===t.length)return G.trivial(e,t);const r=new Z(e.length,t.length),s=new Z(e.length,t.length),o=new Z(e.length,t.length);for(let p=0;p<e.length;p++)for(let a=0;a<t.length;a++){if(!n.isValid())return G.trivialTimedOut(e,t);const l=0===p?0:r.get(p-1,a),c=0===a?0:r.get(p,a-1);let h;e.getElement(p)===t.getElement(a)?(h=0===p||0===a?0:r.get(p-1,a-1),p>0&&a>0&&3===s.get(p-1,a-1)&&(h+=o.get(p-1,a-1)),h+=i?i(p,a):1):h=-1;const d=Math.max(l,c,h);if(d===h){const e=p>0&&a>0?o.get(p-1,a-1):0;o.set(p,a,e+1),s.set(p,a,3)}else d===l?(o.set(p,a,0),s.set(p,a,1)):d===c&&(o.set(p,a,0),s.set(p,a,2));r.set(p,a,d)}const a=[];let l=e.length,c=t.length;function h(e,t){e+1===l&&t+1===c||a.push(new Q(new I.L(e+1,l),new I.L(t+1,c))),l=e,c=t}let d=e.length-1,u=t.length-1;for(;d>=0&&u>=0;)3===s.get(d,u)?(h(d,u),d--,u--):1===s.get(d,u)?d--:u--;return h(-1,-1),a.reverse(),new G(a,!1)}}class ie{compute(e,t,n=Y.instance){if(0===e.length||0===t.length)return G.trivial(e,t);const i=e,r=t;function s(e,t){for(;e<i.length&&t<r.length&&i.getElement(e)===r.getElement(t);)e++,t++;return e}let o=0;const a=new se;a.set(0,s(0,0));const l=new oe;l.set(0,0===a.get(0)?null:new re(null,0,0,a.get(0)));let c=0;e:for(;;){if(o++,!n.isValid())return G.trivialTimedOut(i,r);const e=-Math.min(o,r.length+o%2),t=Math.min(o,i.length+o%2);for(c=e;c<=t;c+=2){let n=0;const o=c===t?-1:a.get(c+1),h=c===e?-1:a.get(c-1)+1;n++;const d=Math.min(Math.max(o,h),i.length),u=d-c;if(n++,d>i.length||u>r.length)continue;const p=s(d,u);a.set(c,p);const m=d===o?l.get(c+1):l.get(c-1);if(l.set(c,p!==d?new re(m,d,u,p-d):m),a.get(c)===i.length&&a.get(c)-c===r.length)break e}}let h=l.get(c);const d=[];let u=i.length,p=r.length;for(;;){const e=h?h.x+h.length:0,t=h?h.y+h.length:0;if(e===u&&t===p||d.push(new Q(new I.L(e,u),new I.L(t,p))),!h)break;u=h.x,p=h.y,h=h.prev}return d.reverse(),new G(d,!1)}}class re{constructor(e,t,n,i){this.prev=e,this.x=t,this.y=n,this.length=i}}class se{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=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)>=this.negativeArr.length){const e=this.negativeArr;this.negativeArr=new Int32Array(2*e.length),this.negativeArr.set(e)}this.negativeArr[e]=t}else{if(e>=this.positiveArr.length){const e=this.positiveArr;this.positiveArr=new Int32Array(2*e.length),this.positiveArr.set(e)}this.positiveArr[e]=t}}}class oe{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}}var ae=n(6041),le=n(4320);class ce{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 i=this.range.startLineNumber;i<=this.range.endLineNumber;i++){let t=e[i-1],r=0;i===this.range.startLineNumber&&this.range.startColumn>1&&(r=this.range.startColumn-1,t=t.substring(r)),this.lineStartOffsets.push(r);let s=0;if(!n){const e=t.trimStart();s=t.length-e.length,t=e.trimEnd()}this.trimmedWsLengthsByLineIdx.push(s);const o=i===this.range.endLineNumber?Math.min(this.range.endColumn-1-r-s,t.length):t.length;for(let e=0;e<o;e++)this.elements.push(t.charCodeAt(e));i<this.range.endLineNumber&&(this.elements.push("\n".charCodeAt(0)),this.firstElementOffsetByLineIdx.push(this.elements.length))}}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new I.L(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){const t=pe(e>0?this.elements[e-1]:-1),n=pe(e<this.elements.length?this.elements[e]:-1);if(7===t&&8===n)return 0;if(8===t)return 150;let i=0;return t!==n&&(i+=10,0===t&&1===n&&(i+=1)),i+=ue(t),i+=ue(n),i}translateOffset(e,t="right"){const n=(0,ae.iM)(this.firstElementOffsetByLineIdx,(t=>t<=e)),i=e-this.firstElementOffsetByLineIdx[n];return new F.y(this.range.startLineNumber+n,1+this.lineStartOffsets[n]+i+(0===i&&"left"===t?0:this.trimmedWsLengthsByLineIdx[n]))}translateRange(e){const t=this.translateOffset(e.start,"right"),n=this.translateOffset(e.endExclusive,"left");return n.isBefore(t)?d.Q.fromPositions(n,n):d.Q.fromPositions(t,n)}findWordContaining(e){if(e<0||e>=this.elements.length)return;if(!he(this.elements[e]))return;let t=e;for(;t>0&&he(this.elements[t-1]);)t--;let n=e;for(;n<this.elements.length&&he(this.elements[n]);)n++;return new I.L(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){const t=(0,ae.lx)(this.firstElementOffsetByLineIdx,(t=>t<=e.start))??0,n=(0,ae.XP)(this.firstElementOffsetByLineIdx,(t=>e.endExclusive<=t))??this.elements.length;return new I.L(t,n)}}function he(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}const de={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function ue(e){return de[e]}function pe(e){return 10===e?8:13===e?7:ee(e)?6:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:-1===e?3:44===e||59===e?5:4}function me(e,t,n,i,r,s){let{moves:o,excludedChanges:a}=function(e,t,n,i){const r=[],s=e.filter((e=>e.modified.isEmpty&&e.original.length>=3)).map((e=>new te(e.original,t,e))),o=new Set(e.filter((e=>e.original.isEmpty&&e.modified.length>=3)).map((e=>new te(e.modified,n,e)))),a=new Set;for(const l of s){let e,t=-1;for(const n of o){const i=l.computeSimilarity(n);i>t&&(t=i,e=n)}if(t>.9&&e&&(o.delete(e),r.push(new N(l.range,e.range)),a.add(l.source),a.add(e.source)),!i.isValid())return{moves:r,excludedChanges:a}}return{moves:r,excludedChanges:a}}(e,t,n,s);if(!s.isValid())return[];const l=function(e,t,n,i,r,s){const o=[],a=new le.db;for(const u of e)for(let e=u.original.startLineNumber;e<u.original.endLineNumberExclusive-2;e++){const n=`${t[e-1]}:${t[e+1-1]}:${t[e+2-1]}`;a.add(n,{range:new E.M(e,e+3)})}const l=[];e.sort((0,H.VE)((e=>e.modified.startLineNumber),H.U9));for(const u of e){let e=[];for(let t=u.modified.startLineNumber;t<u.modified.endLineNumberExclusive-2;t++){const i=`${n[t-1]}:${n[t+1-1]}:${n[t+2-1]}`,r=new E.M(t,t+3),s=[];a.forEach(i,(({range:t})=>{for(const i of e)if(i.originalLineRange.endLineNumberExclusive+1===t.endLineNumberExclusive&&i.modifiedLineRange.endLineNumberExclusive+1===r.endLineNumberExclusive)return i.originalLineRange=new E.M(i.originalLineRange.startLineNumber,t.endLineNumberExclusive),i.modifiedLineRange=new E.M(i.modifiedLineRange.startLineNumber,r.endLineNumberExclusive),void s.push(i);const n={modifiedLineRange:r,originalLineRange:t};l.push(n),s.push(n)})),e=s}if(!s.isValid())return[]}l.sort((0,H.Hw)((0,H.VE)((e=>e.modifiedLineRange.length),H.U9)));const c=new E.S,h=new E.S;for(const u of l){const e=u.modifiedLineRange.startLineNumber-u.originalLineRange.startLineNumber,t=c.subtractFrom(u.modifiedLineRange),n=h.subtractFrom(u.originalLineRange).getWithDelta(e),i=t.getIntersection(n);for(const r of i.ranges){if(r.length<3)continue;const t=r,n=r.delta(-e);o.push(new N(n,t)),c.addRange(t),h.addRange(n)}}o.sort((0,H.VE)((e=>e.original.startLineNumber),H.U9));const d=new ae.vJ(e);for(let u=0;u<o.length;u++){const t=o[u],n=d.findLastMonotonous((e=>e.original.startLineNumber<=t.original.startLineNumber)),a=(0,ae.lx)(e,(e=>e.modified.startLineNumber<=t.modified.startLineNumber)),l=Math.max(t.original.startLineNumber-n.original.startLineNumber,t.modified.startLineNumber-a.modified.startLineNumber),p=d.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive)),m=(0,ae.lx)(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)),f=Math.max(p.original.endLineNumberExclusive-t.original.endLineNumberExclusive,m.modified.endLineNumberExclusive-t.modified.endLineNumberExclusive);let g,b;for(g=0;g<l;g++){const e=t.original.startLineNumber-g-1,n=t.modified.startLineNumber-g-1;if(e>i.length||n>r.length)break;if(c.contains(n)||h.contains(e))break;if(!fe(i[e-1],r[n-1],s))break}for(g>0&&(h.addRange(new E.M(t.original.startLineNumber-g,t.original.startLineNumber)),c.addRange(new E.M(t.modified.startLineNumber-g,t.modified.startLineNumber))),b=0;b<f;b++){const e=t.original.endLineNumberExclusive+b,n=t.modified.endLineNumberExclusive+b;if(e>i.length||n>r.length)break;if(c.contains(n)||h.contains(e))break;if(!fe(i[e-1],r[n-1],s))break}b>0&&(h.addRange(new E.M(t.original.endLineNumberExclusive,t.original.endLineNumberExclusive+b)),c.addRange(new E.M(t.modified.endLineNumberExclusive,t.modified.endLineNumberExclusive+b))),(g>0||b>0)&&(o[u]=new N(new E.M(t.original.startLineNumber-g,t.original.endLineNumberExclusive+b),new E.M(t.modified.startLineNumber-g,t.modified.endLineNumberExclusive+b)))}return o}(e.filter((e=>!a.has(e))),i,r,t,n,s);return(0,H.E4)(o,l),o=function(e){if(0===e.length)return e;e.sort((0,H.VE)((e=>e.original.startLineNumber),H.U9));const t=[e[0]];for(let n=1;n<e.length;n++){const i=t[t.length-1],r=e[n],s=r.original.startLineNumber-i.original.endLineNumberExclusive,o=r.modified.startLineNumber-i.modified.endLineNumberExclusive;s>=0&&o>=0&&s+o<=2?t[t.length-1]=i.join(r):t.push(r)}return t}(o),o=o.filter((e=>{const n=e.original.toOffsetRange().slice(t).map((e=>e.trim()));return n.join("\n").length>=15&&function(e,t){let n=0;for(const i of e)t(i)&&n++;return n}(n,(e=>e.length>=2))>=2})),o=function(e,t){const n=new ae.vJ(e);return t=t.filter((t=>(n.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive))||new N(new E.M(1,1),new E.M(1,1)))!==(0,ae.lx)(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)))),t}(e,o),o}function fe(e,t,n){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;const i=(new ie).compute(new ce([e],new d.Q(1,1,1,e.length),!1),new ce([t],new d.Q(1,1,1,t.length),!1),n);let r=0;const s=Q.invert(i.diffs,e.length);for(const a of s)a.seq1Range.forEach((t=>{ee(e.charCodeAt(t))||r++}));const o=function(t){let n=0;for(let i=0;i<e.length;i++)ee(t.charCodeAt(i))||n++;return n}(e.length>t.length?e:t);return r/o>.6&&o>10}function ge(e,t,n){let i=n;return i=be(e,t,i),i=be(e,t,i),i=function(e,t,n){if(!e.getBoundaryScore||!t.getBoundaryScore)return n;for(let i=0;i<n.length;i++){const r=i>0?n[i-1]:void 0,s=n[i],o=i+1<n.length?n[i+1]:void 0,a=new I.L(r?r.seq1Range.endExclusive+1:0,o?o.seq1Range.start-1:e.length),l=new I.L(r?r.seq2Range.endExclusive+1:0,o?o.seq2Range.start-1:t.length);s.seq1Range.isEmpty?n[i]=ve(s,e,t,a,l):s.seq2Range.isEmpty&&(n[i]=ve(s.swap(),t,e,l,a).swap())}return n}(e,t,i),i}function be(e,t,n){if(0===n.length)return n;const i=[];i.push(n[0]);for(let s=1;s<n.length;s++){const r=i[i.length-1];let o=n[s];if(o.seq1Range.isEmpty||o.seq2Range.isEmpty){const n=o.seq1Range.start-r.seq1Range.endExclusive;let s;for(s=1;s<=n&&(e.getElement(o.seq1Range.start-s)===e.getElement(o.seq1Range.endExclusive-s)&&t.getElement(o.seq2Range.start-s)===t.getElement(o.seq2Range.endExclusive-s));s++);if(s--,s===n){i[i.length-1]=new Q(new I.L(r.seq1Range.start,o.seq1Range.endExclusive-n),new I.L(r.seq2Range.start,o.seq2Range.endExclusive-n));continue}o=o.delta(-s)}i.push(o)}const r=[];for(let s=0;s<i.length-1;s++){const n=i[s+1];let o=i[s];if(o.seq1Range.isEmpty||o.seq2Range.isEmpty){const r=n.seq1Range.start-o.seq1Range.endExclusive;let a;for(a=0;a<r&&(e.isStronglyEqual(o.seq1Range.start+a,o.seq1Range.endExclusive+a)&&t.isStronglyEqual(o.seq2Range.start+a,o.seq2Range.endExclusive+a));a++);if(a===r){i[s+1]=new Q(new I.L(o.seq1Range.start+r,n.seq1Range.endExclusive),new I.L(o.seq2Range.start+r,n.seq2Range.endExclusive));continue}a>0&&(o=o.delta(a))}r.push(o)}return i.length>0&&r.push(i[i.length-1]),r}function ve(e,t,n,i,r){let s=1;for(;e.seq1Range.start-s>=i.start&&e.seq2Range.start-s>=r.start&&n.isStronglyEqual(e.seq2Range.start-s,e.seq2Range.endExclusive-s)&&s<100;)s++;s--;let o=0;for(;e.seq1Range.start+o<i.endExclusive&&e.seq2Range.endExclusive+o<r.endExclusive&&n.isStronglyEqual(e.seq2Range.start+o,e.seq2Range.endExclusive+o)&&o<100;)o++;if(0===s&&0===o)return e;let a=0,l=-1;for(let c=-s;c<=o;c++){const i=e.seq2Range.start+c,r=e.seq2Range.endExclusive+c,s=e.seq1Range.start+c,o=t.getBoundaryScore(s)+n.getBoundaryScore(i)+n.getBoundaryScore(r);o>l&&(l=o,a=c)}return e.delta(a)}class ye{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-((0===e?0:we(this.lines[e-1]))+(e===this.lines.length?0:we(this.lines[e])))}getText(e){return this.lines.slice(e.start,e.endExclusive).join("\n")}isStronglyEqual(e,t){return this.lines[e]===this.lines[t]}}function we(e){let t=0;for(;t<e.length&&(32===e.charCodeAt(t)||9===e.charCodeAt(t));)t++;return t}class _e{constructor(){this.dynamicProgrammingDiffing=new ne,this.myersDiffingAlgorithm=new ie}computeDiff(e,t,n){if(e.length<=1&&(0,H.aI)(e,t,((e,t)=>e===t)))return new C([],[],!1);if(1===e.length&&0===e[0].length||1===t.length&&0===t[0].length)return new C([new A(new E.M(1,e.length+1),new E.M(1,t.length+1),[new M(new d.Q(1,1,e.length,e[e.length-1].length+1),new d.Q(1,1,t.length,t[t.length-1].length+1))])],[],!1);const i=0===n.maxComputationTimeMs?Y.instance:new X(n.maxComputationTimeMs),r=!n.ignoreTrimWhitespace,s=new Map;function o(e){let t=s.get(e);return void 0===t&&(t=s.size,s.set(e,t)),t}const a=e.map((e=>o(e.trim()))),l=t.map((e=>o(e.trim()))),c=new ye(a,e),h=new ye(l,t),u=(()=>c.length+h.length<1700?this.dynamicProgrammingDiffing.compute(c,h,i,((n,i)=>e[n]===t[i]?0===t[i].length?.1:1+Math.log(1+t[i].length):.99)):this.myersDiffingAlgorithm.compute(c,h,i))();let p=u.diffs,m=u.hitTimeout;p=ge(c,h,p),p=function(e,t,n){let i=n;if(0===i.length)return i;let r,s=0;do{r=!1;const o=[i[0]];for(let a=1;a<i.length;a++){const l=i[a],c=o[o.length-1];function h(t,n){const i=new I.L(c.seq1Range.endExclusive,l.seq1Range.start);return e.getText(i).replace(/\s/g,"").length<=4&&(t.seq1Range.length+t.seq2Range.length>5||n.seq1Range.length+n.seq2Range.length>5)}h(c,l)?(r=!0,o[o.length-1]=o[o.length-1].join(l)):o.push(l)}i=o}while(s++<10&&r);return i}(c,0,p);const f=[],g=n=>{if(r)for(let s=0;s<n;s++){const n=b+s,o=v+s;if(e[n]!==t[o]){const s=this.refineDiff(e,t,new Q(new I.L(n,n+1),new I.L(o,o+1)),i,r);for(const e of s.mappings)f.push(e);s.hitTimeout&&(m=!0)}}};let b=0,v=0;for(const d of p){(0,L.Ft)((()=>d.seq1Range.start-b===d.seq2Range.start-v));g(d.seq1Range.start-b),b=d.seq1Range.endExclusive,v=d.seq2Range.endExclusive;const n=this.refineDiff(e,t,d,i,r);n.hitTimeout&&(m=!0);for(const e of n.mappings)f.push(e)}g(e.length-b);const y=ke(f,e,t);let w=[];return n.computeMoves&&(w=this.computeMoves(y,e,t,a,l,i,r)),(0,L.Ft)((()=>{function n(e,t){if(e.lineNumber<1||e.lineNumber>t.length)return!1;const n=t[e.lineNumber-1];return!(e.column<1||e.column>n.length+1)}function i(e,t){return!(e.startLineNumber<1||e.startLineNumber>t.length+1)&&!(e.endLineNumberExclusive<1||e.endLineNumberExclusive>t.length+1)}for(const r of y){if(!r.innerChanges)return!1;for(const i of r.innerChanges){if(!(n(i.modifiedRange.getStartPosition(),t)&&n(i.modifiedRange.getEndPosition(),t)&&n(i.originalRange.getStartPosition(),e)&&n(i.originalRange.getEndPosition(),e)))return!1}if(!i(r.modified,t)||!i(r.original,e))return!1}return!0})),new C(y,w,m)}computeMoves(e,t,n,i,r,s,o){return me(e,t,n,i,r,s).map((e=>{const i=ke(this.refineDiff(t,n,new Q(e.original.toOffsetRange(),e.modified.toOffsetRange()),s,o).mappings,t,n,!0);return new S(e,i)}))}refineDiff(e,t,n,i,r){var s;const o=(s=n,new N(new E.M(s.seq1Range.start+1,s.seq1Range.endExclusive+1),new E.M(s.seq2Range.start+1,s.seq2Range.endExclusive+1))).toRangeMapping2(e,t),a=new ce(e,o.originalRange,r),l=new ce(t,o.modifiedRange,r),c=a.length+l.length<500?this.dynamicProgrammingDiffing.compute(a,l,i):this.myersDiffingAlgorithm.compute(a,l,i),h=!1;let d=c.diffs;d=ge(a,l,d),d=function(e,t,n){const i=Q.invert(n,e.length),r=[];let s=new J(0,0);function o(n,o){if(n.offset1<s.offset1||n.offset2<s.offset2)return;const a=e.findWordContaining(n.offset1),l=t.findWordContaining(n.offset2);if(!a||!l)return;let c=new Q(a,l);const h=c.intersect(o);let d=h.seq1Range.length,u=h.seq2Range.length;for(;i.length>0;){const n=i[0];if(!n.seq1Range.intersects(c.seq1Range)&&!n.seq2Range.intersects(c.seq2Range))break;const r=e.findWordContaining(n.seq1Range.start),s=t.findWordContaining(n.seq2Range.start),o=new Q(r,s),a=o.intersect(n);if(d+=a.seq1Range.length,u+=a.seq2Range.length,c=c.join(o),!(c.seq1Range.endExclusive>=n.seq1Range.endExclusive))break;i.shift()}d+u<2*(c.seq1Range.length+c.seq2Range.length)/3&&r.push(c),s=c.getEndExclusives()}for(;i.length>0;){const e=i.shift();e.seq1Range.isEmpty||(o(e.getStarts(),e),o(e.getEndExclusives().delta(-1),e))}return function(e,t){const n=[];for(;e.length>0||t.length>0;){const i=e[0],r=t[0];let s;s=i&&(!r||i.seq1Range.start<r.seq1Range.start)?e.shift():t.shift(),n.length>0&&n[n.length-1].seq1Range.endExclusive>=s.seq1Range.start?n[n.length-1]=n[n.length-1].join(s):n.push(s)}return n}(n,r)}(a,l,d),d=function(e,t,n){const i=[];for(const r of n){const e=i[i.length-1];e&&(r.seq1Range.start-e.seq1Range.endExclusive<=2||r.seq2Range.start-e.seq2Range.endExclusive<=2)?i[i.length-1]=new Q(e.seq1Range.join(r.seq1Range),e.seq2Range.join(r.seq2Range)):i.push(r)}return i}(0,0,d),d=function(e,t,n){let i=n;if(0===i.length)return i;let r,s=0;do{r=!1;const a=[i[0]];for(let l=1;l<i.length;l++){const c=i[l],h=a[a.length-1];function d(n,i){const r=new I.L(h.seq1Range.endExclusive,c.seq1Range.start);if(e.countLinesIn(r)>5||r.length>500)return!1;const s=e.getText(r).trim();if(s.length>20||s.split(/\r\n|\r|\n/).length>1)return!1;const o=e.countLinesIn(n.seq1Range),a=n.seq1Range.length,l=t.countLinesIn(n.seq2Range),d=n.seq2Range.length,u=e.countLinesIn(i.seq1Range),p=i.seq1Range.length,m=t.countLinesIn(i.seq2Range),f=i.seq2Range.length;function g(e){return Math.min(e,130)}return Math.pow(Math.pow(g(40*o+a),1.5)+Math.pow(g(40*l+d),1.5),1.5)+Math.pow(Math.pow(g(40*u+p),1.5)+Math.pow(g(40*m+f),1.5),1.5)>74184.96480721243}d(h,c)?(r=!0,a[a.length-1]=a[a.length-1].join(c)):a.push(c)}i=a}while(s++<10&&r);const o=[];return(0,H.kj)(i,((t,n,i)=>{let r=n;function s(e){return e.length>0&&e.trim().length<=3&&n.seq1Range.length+n.seq2Range.length>100}const a=e.extendToFullLines(n.seq1Range),l=e.getText(new I.L(a.start,n.seq1Range.start));s(l)&&(r=r.deltaStart(-l.length));const c=e.getText(new I.L(n.seq1Range.endExclusive,a.endExclusive));s(c)&&(r=r.deltaEnd(c.length));const h=Q.fromOffsetPairs(t?t.getEndExclusives():J.zero,i?i.getStarts():J.max),d=r.intersect(h);o.length>0&&d.getStarts().equals(o[o.length-1].getEndExclusives())?o[o.length-1]=o[o.length-1].join(d):o.push(d)})),o}(a,l,d);const u=d.map((e=>new M(a.translateRange(e.seq1Range),l.translateRange(e.seq2Range))));return{mappings:u,hitTimeout:c.hitTimeout}}}function ke(e,t,n,i=!1){const r=[];for(const s of(0,H.n)(e.map((e=>function(e,t,n){let i=0,r=0;1===e.modifiedRange.endColumn&&1===e.originalRange.endColumn&&e.originalRange.startLineNumber+i<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+i<=e.modifiedRange.endLineNumber&&(r=-1);e.modifiedRange.startColumn-1>=n[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+r&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+r&&(i=1);const s=new E.M(e.originalRange.startLineNumber+i,e.originalRange.endLineNumber+1+r),o=new E.M(e.modifiedRange.startLineNumber+i,e.modifiedRange.endLineNumber+1+r);return new A(s,o,[e])}(e,t,n))),((e,t)=>e.original.overlapOrTouch(t.original)||e.modified.overlapOrTouch(t.modified)))){const e=s[0],t=s[s.length-1];r.push(new A(e.original.join(t.original),e.modified.join(t.modified),s.map((e=>e.innerChanges[0]))))}return(0,L.Ft)((()=>{if(!i&&r.length>0){if(r[0].modified.startLineNumber!==r[0].original.startLineNumber)return!1;if(n.length-r[r.length-1].modified.endLineNumberExclusive!==t.length-r[r.length-1].original.endLineNumberExclusive)return!1}return(0,L.Xo)(r,((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))})),r}const Ce=()=>new z,Se=()=>new _e;var xe=n(146),Ee=n(6456),Fe=n(7661);function Le(e){const t=[];for(const n of e){const e=Number(n);(e||0===e&&""!==n.replace(/\s/g,""))&&t.push(e)}return t}function Ie(e,t,n,i){return{red:e/255,blue:n/255,green:t/255,alpha:i}}function Te(e,t){const n=t.index,i=t[0].length;if(!n)return;const r=e.positionAt(n);return{startLineNumber:r.lineNumber,startColumn:r.column,endLineNumber:r.lineNumber,endColumn:r.column+i}}function Ne(e,t){if(!e)return;const n=Fe.Q1.Format.CSS.parseHex(t);return n?{range:e,color:Ie(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}:void 0}function Re(e,t,n){if(!e||1!==t.length)return;const i=Le(t[0].values());return{range:e,color:Ie(i[0],i[1],i[2],n?i[3]:1)}}function De(e,t,n){if(!e||1!==t.length)return;const i=Le(t[0].values()),r=new Fe.Q1(new Fe.hB(i[0],i[1]/100,i[2]/100,n?i[3]:1));return{range:e,color:Ie(r.rgba.r,r.rgba.g,r.rgba.b,r.rgba.a)}}function Ae(e,t){return"string"===typeof e?[...e.matchAll(t)]:e.findMatches(t)}function Me(e){return e&&"function"===typeof e.getValue&&"function"===typeof e.positionAt?function(e){const t=[],n=Ae(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/gm);if(n.length>0)for(const i of n){const n=i.filter((e=>void 0!==e)),r=n[1],s=n[2];if(!s)continue;let o;if("rgb"===r){const t=/^\(\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;o=Re(Te(e,i),Ae(s,t),!1)}else if("rgba"===r){const t=/^\(\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;o=Re(Te(e,i),Ae(s,t),!0)}else if("hsl"===r){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;o=De(Te(e,i),Ae(s,t),!1)}else if("hsla"===r){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;o=De(Te(e,i),Ae(s,t),!0)}else"#"===r&&(o=Ne(Te(e,i),r+s));o&&t.push(o)}return t}(e):[]}var Oe=n(6691),ze=n(796);class Pe{constructor(){this._workerTextModelSyncServer=new ze.WorkerTextModelSyncServer}dispose(){}_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){const i=this._getModel(e);return i?k.UnicodeTextModelHighlighter.computeUnicodeHighlights(i,t,n):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async $findSectionHeaders(e,t){const n=this._getModel(e);return n?(0,Oe.findSectionHeaders)(n,t):[]}async $computeDiff(e,t,n,i){const r=this._getModel(e),s=this._getModel(t);if(!r||!s)return null;return Be.computeDiff(r,s,n,i)}static computeDiff(e,t,n,i){const r="advanced"===i?Se():Ce(),s=e.getLinesContent(),o=t.getLinesContent(),a=r.computeDiff(s,o,n);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:!(a.changes.length>0)&&this._modelsAreIdentical(e,t),quitEarly:a.hitTimeout,changes:l(a.changes),moves:a.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){const n=e.getLineCount();if(n!==t.getLineCount())return!1;for(let i=1;i<=n;i++){if(e.getLineContent(i)!==t.getLineContent(i))return!1}return!0}static{this._diffLimit=1e5}async $computeMoreMinimalEdits(e,t,n){const i=this._getModel(e);if(!i)return t;const r=[];let s;t=t.slice(0).sort(((e,t)=>{if(e.range&&t.range)return d.Q.compareRangesUsingStarts(e.range,t.range);return(e.range?0:1)-(t.range?0:1)}));let a=0;for(let o=1;o<t.length;o++)d.Q.getEndPosition(t[a].range).equals(d.Q.getStartPosition(t[o].range))?(t[a].range=d.Q.fromPositions(d.Q.getStartPosition(t[a].range),d.Q.getEndPosition(t[o].range)),t[a].text+=t[o].text):(a++,t[a]=t[o]);t.length=a+1;for(let{range:l,text:c,eol:h}of t){if("number"===typeof h&&(s=h),d.Q.isEmpty(l)&&!c)continue;const e=i.getValueInRange(l);if(c=c.replace(/\r\n|\n|\r/g,i.eol),e===c)continue;if(Math.max(c.length,e.length)>Be._diffLimit){r.push({range:l,text:c});continue}const t=o(e,c,n),a=i.offsetAt(d.Q.lift(l).getStartPosition());for(const n of t){const e=i.positionAt(a+n.originalStart),t=i.positionAt(a+n.originalStart+n.originalLength),s={text:c.substr(n.modifiedStart,n.modifiedLength),range:{startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:t.lineNumber,endColumn:t.column}};i.getValueInRange(s.range)!==s.text&&r.push(s)}}return"number"===typeof s&&r.push({eol:s,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),r}async $computeLinks(e){const t=this._getModel(e);return t?function(e){return e&&"function"===typeof e.getLineCount&&"function"===typeof e.getLineContent?b.computeLinks(e):[]}(t):null}async $computeDefaultDocumentColors(e){const t=this._getModel(e);return t?Me(t):null}static{this._suggestionsLimit=1e4}async $textualSuggest(e,t,n,i){const r=new _.W,s=new RegExp(n,i),o=new Set;e:for(const a of e){const e=this._getModel(a);if(e)for(const n of e.words(s))if(n!==t&&isNaN(Number(n))&&(o.add(n),o.size>Be._suggestionsLimit))break e}return{words:Array.from(o),duration:r.elapsed()}}async $computeWordRanges(e,t,n,i){const r=this._getModel(e);if(!r)return Object.create(null);const s=new RegExp(n,i),o=Object.create(null);for(let a=t.startLineNumber;a<t.endLineNumber;a++){const e=r.getLineWords(a,s);for(const t of e){if(!isNaN(Number(t.word)))continue;let e=o[t.word];e||(e=[],o[t.word]=e),e.push({startLineNumber:a,startColumn:t.startColumn,endLineNumber:a,endColumn:t.endColumn})}}return o}async $navigateValueSet(e,t,n,i,r){const s=this._getModel(e);if(!s)return null;const o=new RegExp(i,r);t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1});const a=s.getValueInRange(t),l=s.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},o);if(!l)return null;const c=s.getValueInRange(l);return v.INSTANCE.navigateValueSet(t,a,l,c,n)}}class Be extends Pe{constructor(e,t){super(),this._host=e,this._foreignModuleFactory=t,this._foreignModule=null}async $ping(){return"pong"}$loadForeignModule(e,t,i){const r={host:(0,xe.kT)(i,((e,t)=>this._host.$fhr(e,t))),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(r,t),Promise.resolve((0,xe.V0)(this._foreignModule))):new Promise(((i,s)=>{const o=e=>{this._foreignModule=e.create(r,t),i((0,xe.V0)(this._foreignModule))};{const t=Ee.zl.asBrowserUri(`${e}.js`).toString(!0);n(9204)(`${t}`).then(o).catch(s)}}))}$fmr(e,t){if(!this._foreignModule||"function"!==typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(n){return Promise.reject(n)}}}function We(e){return new Be(w.EditorWorkerHost.getChannel(e),null)}"function"===typeof importScripts&&(globalThis.monaco=(0,y.createMonacoBaseAPI)())},920:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IEditorWorkerService:()=>i});const i=(0,n(3591).u1)("editorWorkerService")},718:(e,t,n)=>{"use strict";n.r(t),n.d(t,{EditorWorkerHost:()=>i});class i{static{this.CHANNEL_NAME="editorWorkerHost"}static getChannel(e){return e.getChannel(i.CHANNEL_NAME)}static setChannel(e,t){e.setChannel(i.CHANNEL_NAME,t)}}},6691:(e,t,n)=>{"use strict";n.r(t),n.d(t,{findSectionHeaders:()=>s});const i=new RegExp("\\bMARK:\\s*(.*)$","d"),r=/^-+|-+$/g;function s(e,t){let n=[];if(t.findRegionSectionHeaders&&t.foldingRules?.markers){const i=function(e,t){const n=[],i=e.getLineCount();for(let r=1;r<=i;r++){const i=e.getLineContent(r),s=i.match(t.foldingRules.markers.start);if(s){const e={startLineNumber:r,startColumn:s[0].length+1,endLineNumber:r,endColumn:i.length+1};if(e.endColumn>e.startColumn){const t={range:e,...a(i.substring(s[0].length)),shouldBeInComments:!1};(t.text||t.hasSeparatorLine)&&n.push(t)}}}return n}(e,t);n=n.concat(i)}if(t.findMarkSectionHeaders){const t=function(e){const t=[],n=e.getLineCount();for(let i=1;i<=n;i++){o(e.getLineContent(i),i,t)}return t}(e);n=n.concat(t)}return n}function o(e,t,n){i.lastIndex=0;const r=i.exec(e);if(r){const e={startLineNumber:t,startColumn:r.indices[1][0]+1,endLineNumber:t,endColumn:r.indices[1][1]+1};if(e.endColumn>e.startColumn){const t={range:e,...a(r[1]),shouldBeInComments:!0};(t.text||t.hasSeparatorLine)&&n.push(t)}}}function a(e){const t=(e=e.trim()).startsWith("-");return{text:e=e.replace(r,""),hasSeparatorLine:t}}},5628:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getIconClasses:()=>u});var i,r=n(6456),s=n(9403),o=n(9400),a=n(3941);!function(e){e[e.FILE=0]="FILE",e[e.FOLDER=1]="FOLDER",e[e.ROOT_FOLDER=2]="ROOT_FOLDER"}(i||(i={}));var l,c,h=n(9493);!function(e){e.isThemeColor=function(e){return e&&"object"===typeof e&&"string"===typeof e.id}}(l||(l={})),function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9-]+",e.iconModifierExpression="~[A-Za-z]+",e.iconNameCharacter="[A-Za-z0-9~-]";const t=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function n(e){const i=t.exec(e.id);if(!i)return n(h.W.error);const[,r,s]=i,o=["codicon","codicon-"+r];return s&&o.push("codicon-modifier-"+s.substring(1)),o}e.asClassNameArray=n,e.asClassName=function(e){return n(e).join(" ")},e.asCSSSelector=function(e){return"."+n(e).join(".")},e.isThemeIcon=function(e){return e&&"object"===typeof e&&"string"===typeof e.id&&("undefined"===typeof e.color||l.isThemeColor(e.color))};const i=new RegExp(`^\\$\\((${e.iconNameExpression}(?:${e.iconModifierExpression})?)\\)$`);e.fromString=function(e){const t=i.exec(e);if(!t)return;const[,n]=t;return{id:n}},e.fromId=function(e){return{id:e}},e.modify=function(e,t){let n=e.id;const i=n.lastIndexOf("~");return-1!==i&&(n=n.substring(0,i)),t&&(n=`${n}~${t}`),{id:n}},e.getModifier=function(e){const t=e.id.lastIndexOf("~");if(-1!==t)return e.id.substring(t+1)},e.isEqual=function(e,t){return e.id===t.id&&e.color?.id===t.color?.id}}(c||(c={}));const d=/(?:\/|^)(?:([^\/]+)\/)?([^\/]+)$/;function u(e,t,n,l,h){if(c.isThemeIcon(h))return[`codicon-${h.id}`,"predefined-file-icon"];if(o.r.isUri(h))return[];const u=l===i.ROOT_FOLDER?["rootfolder-icon"]:l===i.FOLDER?["folder-icon"]:["file-icon"];if(n){let o;if(n.scheme===r.ny.data){o=s.B6.parseMetaData(n).get(s.B6.META_DATA_LABEL)}else{const e=n.path.match(d);e?(o=p(e[2].toLowerCase()),e[1]&&u.push(`${p(e[1].toLowerCase())}-name-dir-icon`)):o=p(n.authority.toLowerCase())}if(l===i.ROOT_FOLDER)u.push(`${o}-root-name-folder-icon`);else if(l===i.FOLDER)u.push(`${o}-name-folder-icon`);else{if(o){if(u.push(`${o}-name-file-icon`),u.push("name-file-icon"),o.length<=255){const e=o.split(".");for(let t=1;t<e.length;t++)u.push(`${e.slice(t).join(".")}-ext-file-icon`)}u.push("ext-file-icon")}const i=function(e,t,n){if(!n)return null;let i=null;if(n.scheme===r.ny.data){const e=s.B6.parseMetaData(n).get(s.B6.META_DATA_MIME);e&&(i=t.getLanguageIdByMimeType(e))}else{const t=e.getModel(n);t&&(i=t.getLanguageId())}if(i&&i!==a.vH)return i;return t.guessLanguageIdByFilepathOrFirstLine(n)}(e,t,n);i&&u.push(`${p(i)}-lang-file-icon`)}}return u}function p(e){return e.replace(/[\s]/g,"/")}},8709:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ILanguageFeatureDebounceService:()=>f,LanguageFeatureDebounceService:()=>y});var i=n(5600),r=n(4320);function s(e,t,n){return Math.min(Math.max(e,t),n)}class o{constructor(){this._n=1,this._val=0}update(e){return this._val=this._val+(e-this._val)/this._n,this._n+=1,this._val}get value(){return this._val}}class a{constructor(e){this._n=0,this._val=0,this._values=[],this._index=0,this._sum=0,this._values=new Array(e),this._values.fill(0,0,e)}update(e){const t=this._values[this._index];return this._values[this._index]=e,this._index=(this._index+1)%this._values.length,this._sum-=t,this._sum+=e,this._n<this._values.length&&(this._n+=1),this._val=this._sum/this._n,this._val}get value(){return this._val}}var l=n(3591);const c=(0,l.u1)("environmentService");var h=n(4621),d=n(3511),u=n(6456),p=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},m=function(e,t){return function(n,i){t(n,i,e)}};const f=(0,l.u1)("ILanguageFeatureDebounceService");var g;!function(e){const t=new WeakMap;let n=0;e.of=function(e){let i=t.get(e);return void 0===i&&(i=++n,t.set(e,i)),i}}(g||(g={}));class b{constructor(e){this._default=e}get(e){return this._default}update(e,t){return this._default}default(){return this._default}}class v{constructor(e,t,n,i,s,o){this._logService=e,this._name=t,this._registry=n,this._default=i,this._min=s,this._max=o,this._cache=new r.qK(50,.7)}_key(e){return e.id+this._registry.all(e).reduce(((e,t)=>(0,i.sN)(g.of(t),e)),0)}get(e){const t=this._key(e),n=this._cache.get(t);return n?s(n.value,this._min,this._max):this.default()}update(e,t){const n=this._key(e);let i=this._cache.get(n);i||(i=new a(6),this._cache.set(n,i));const r=s(i.update(t),this._min,this._max);return(0,u.v$)(e.uri,"output")||this._logService.trace(`[DEBOUNCE: ${this._name}] for ${e.uri.toString()} is ${r}ms`),r}_overall(){const e=new o;for(const[,t]of this._cache)e.update(t.value);return e.value}default(){return s(0|this._overall()||this._default,this._min,this._max)}}let y=class{constructor(e,t){this._logService=e,this._data=new Map,this._isDev=t.isExtensionDevelopment||!t.isBuilt}for(e,t,n){const i=n?.min??50,r=n?.max??i**2,s=n?.key??void 0,o=`${g.of(e)},${i}${s?","+s:""}`;let a=this._data.get(o);return a||(this._isDev?(this._logService.debug(`[DEBOUNCE: ${t}] is disabled in developed mode`),a=new b(1.5*i)):a=new v(this._logService,t,e,0|this._overallAverage()||1.5*i,i,r),this._data.set(o,a)),a}_overallAverage(){const e=new o;for(const t of this._data.values())e.update(t.default());return e.value}};y=p([m(0,d.rr),m(1,c)],y),(0,h.v)(f,y,1)},6942:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ILanguageFeaturesService:()=>i});const i=(0,n(3591).u1)("ILanguageFeaturesService")},2661:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LanguageFeaturesService:()=>f});var i=n(1234),r=n(1484),s=n(6223),o=n(6958),a=n(8821);function l(e,t,n,i,r,s){if(Array.isArray(e)){let o=0;for(const a of e){const e=l(a,t,n,i,r,s);if(10===e)return e;e>o&&(o=e)}return o}if("string"===typeof e)return i?"*"===e?5:e===n?10:0:0;if(e){const{language:l,pattern:c,scheme:h,hasAccessToAllModels:d,notebookType:u}=e;if(!i&&!d)return 0;u&&r&&(t=r);let p=0;if(h)if(h===t.scheme)p=10;else{if("*"!==h)return 0;p=5}if(l)if(l===n)p=10;else{if("*"!==l)return 0;p=Math.max(p,5)}if(u)if(u===s)p=10;else{if("*"!==u||void 0===s)return 0;p=Math.max(p,5)}if(c){let e;if(e="string"===typeof c?c:{...c,base:(0,a.S8)(c.base)},e!==t.fsPath&&!(0,o.YW)(e,t.fsPath))return 0;p=10}return p}return 0}function c(e){return"string"!==typeof e&&(Array.isArray(e)?e.every(c):!!e.exclusive)}class h{constructor(e,t,n,i,r){this.uri=e,this.languageId=t,this.notebookUri=n,this.notebookType=i,this.recursive=r}equals(e){return this.notebookType===e.notebookType&&this.languageId===e.languageId&&this.uri.toString()===e.uri.toString()&&this.notebookUri?.toString()===e.notebookUri?.toString()&&this.recursive===e.recursive}}class d{constructor(e){this._notebookInfoResolver=e,this._clock=0,this._entries=[],this._onDidChange=new i.vl,this.onDidChange=this._onDidChange.event}register(e,t){let n={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(n),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),(0,r.s)((()=>{if(n){const e=this._entries.indexOf(n);e>=0&&(this._entries.splice(e,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),n=void 0)}}))}has(e){return this.all(e).length>0}all(e){if(!e)return[];this._updateScores(e,!1);const t=[];for(const n of this._entries)n._score>0&&t.push(n.provider);return t}ordered(e,t=!1){const n=[];return this._orderedForEach(e,t,(e=>n.push(e.provider))),n}orderedGroups(e){const t=[];let n,i;return this._orderedForEach(e,!1,(e=>{n&&i===e._score?n.push(e.provider):(i=e._score,n=[e.provider],t.push(n))})),t}_orderedForEach(e,t,n){this._updateScores(e,t);for(const i of this._entries)i._score>0&&n(i)}_updateScores(e,t){const n=this._notebookInfoResolver?.(e.uri),i=n?new h(e.uri,e.getLanguageId(),n.uri,n.type,t):new h(e.uri,e.getLanguageId(),void 0,void 0,t);if(!this._lastCandidate?.equals(i)){this._lastCandidate=i;for(const n of this._entries)if(n._score=l(n.selector,i.uri,i.languageId,(0,s.vd)(e),i.notebookUri,i.notebookType),c(n.selector)&&n._score>0){if(!t){for(const e of this._entries)e._score=0;n._score=1e3;break}n._score=0}this._entries.sort(d._compareByScoreAndTime)}}static _compareByScoreAndTime(e,t){return e._score<t._score?1:e._score>t._score?-1:u(e.selector)&&!u(t.selector)?1:!u(e.selector)&&u(t.selector)?-1:e._time<t._time?1:e._time>t._time?-1:0}}function u(e){return"string"!==typeof e&&(Array.isArray(e)?e.some(u):Boolean(e.isBuiltin))}var p=n(6942),m=n(4621);class f{constructor(){this.referenceProvider=new d(this._score.bind(this)),this.renameProvider=new d(this._score.bind(this)),this.newSymbolNamesProvider=new d(this._score.bind(this)),this.codeActionProvider=new d(this._score.bind(this)),this.definitionProvider=new d(this._score.bind(this)),this.typeDefinitionProvider=new d(this._score.bind(this)),this.declarationProvider=new d(this._score.bind(this)),this.implementationProvider=new d(this._score.bind(this)),this.documentSymbolProvider=new d(this._score.bind(this)),this.inlayHintsProvider=new d(this._score.bind(this)),this.colorProvider=new d(this._score.bind(this)),this.codeLensProvider=new d(this._score.bind(this)),this.documentFormattingEditProvider=new d(this._score.bind(this)),this.documentRangeFormattingEditProvider=new d(this._score.bind(this)),this.onTypeFormattingEditProvider=new d(this._score.bind(this)),this.signatureHelpProvider=new d(this._score.bind(this)),this.hoverProvider=new d(this._score.bind(this)),this.documentHighlightProvider=new d(this._score.bind(this)),this.multiDocumentHighlightProvider=new d(this._score.bind(this)),this.selectionRangeProvider=new d(this._score.bind(this)),this.foldingRangeProvider=new d(this._score.bind(this)),this.linkProvider=new d(this._score.bind(this)),this.inlineCompletionsProvider=new d(this._score.bind(this)),this.inlineEditProvider=new d(this._score.bind(this)),this.completionProvider=new d(this._score.bind(this)),this.linkedEditingRangeProvider=new d(this._score.bind(this)),this.documentRangeSemanticTokensProvider=new d(this._score.bind(this)),this.documentSemanticTokensProvider=new d(this._score.bind(this)),this.documentDropEditProvider=new d(this._score.bind(this)),this.documentPasteEditProvider=new d(this._score.bind(this))}_score(e){return this._notebookTypeResolver?.(e)}}(0,m.v)(p.ILanguageFeaturesService,f,1)},7596:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LanguageService:()=>R});var i=n(1234),r=n(1484),s=n(9259),o=n(9861),a=n(2083),l=n(3941);const c=(e,t)=>e===t;new WeakMap;class h{constructor(e,t,n){this.owner=e,this.debugNameSource=t,this.referenceFn=n}getDebugName(e){return function(e,t){const n=u.get(e);if(n)return n;const i=function(e,t){const n=u.get(e);if(n)return n;const i=t.owner?function(e){const t=m.get(e);if(t)return t;const n=function(e){const t=e.constructor;if(t)return t.name;return"Object"}(e);let i=p.get(n)??0;i++,p.set(n,i);const r=1===i?n:`${n}#${i}`;return m.set(e,r),r}(t.owner)+".":"";let r;const s=t.debugNameSource;if(void 0!==s){if("function"!==typeof s)return i+s;if(r=s(),void 0!==r)return i+r}const o=t.referenceFn;if(void 0!==o&&(r=f(o),void 0!==r))return i+r;if(void 0!==t.owner){const n=function(e,t){for(const n in e)if(e[n]===t)return n;return}(t.owner,e);if(void 0!==n)return i+n}return}(e,t);if(i){let t=d.get(i)??0;t++,d.set(i,t);const n=1===t?i:`${i}#${t}`;return u.set(e,n),n}return}(e,this)}}const d=new Map,u=new WeakMap;const p=new Map,m=new WeakMap;function f(e){const t=e.toString(),n=/\/\*\*\s*@description\s*([^*]*)\*\//.exec(t),i=n?n[1]:void 0;return i?.trim()}let g,b,v,y;function w(){return g}class _{get TChange(){return null}reportChanges(){this.get()}read(e){return e?e.readObservable(this):this.get()}map(e,t){const n=void 0===t?void 0:e,i=void 0===t?e:t;return y({owner:n,debugName:()=>{const e=f(i);if(void 0!==e)return e;const t=/^\s*\(?\s*([a-zA-Z_$][a-zA-Z_$0-9]*)\s*\)?\s*=>\s*\1(?:\??)\.([a-zA-Z_$][a-zA-Z_$0-9]*)\s*$/.exec(i.toString());return t?`${this.debugName}.${t[2]}`:n?void 0:`${this.debugName} (mapped)`},debugReferenceFn:i},(e=>i(this.read(e),e)))}flatten(){return y({owner:void 0,debugName:()=>`${this.debugName} (flattened)`},(e=>this.read(e).read(e)))}recomputeInitiallyAndOnChange(e,t){return e.add(b(this,t)),this}keepObserved(e){return e.add(v(this)),this}}class k extends _{constructor(){super(...arguments),this.observers=new Set}addObserver(e){const t=this.observers.size;this.observers.add(e),0===t&&this.onFirstObserverAdded()}removeObserver(e){this.observers.delete(e)&&0===this.observers.size&&this.onLastObserverRemoved()}onFirstObserverAdded(){}onLastObserverRemoved(){}}function C(e,t){const n=new S(e,t);try{e(n)}finally{n.finish()}}class S{constructor(e,t){this._fn=e,this._getDebugName=t,this.updatingObservers=[],w()?.handleBeginTransaction(this)}getDebugName(){return this._getDebugName?this._getDebugName():f(this._fn)}updateObserver(e,t){this.updatingObservers.push({observer:e,observable:t}),e.beginUpdate(t)}finish(){const e=this.updatingObservers;for(let t=0;t<e.length;t++){const{observer:n,observable:i}=e[t];n.endUpdate(i)}this.updatingObservers=null,w()?.handleEndTransaction()}}var x=n(6782);!function(e){y=e}((function(e,t){return new E(new h(e.owner,e.debugName,e.debugReferenceFn),t,void 0,void 0,e.onLastObserverRemoved,e.equalsFn??c)}));class E extends k{get debugName(){return this._debugNameData.getDebugName(this)??"(anonymous)"}constructor(e,t,n,i,r=void 0,s){super(),this._debugNameData=e,this._computeFn=t,this.createChangeSummary=n,this._handleChange=i,this._handleLastObserverRemoved=r,this._equalityComparator=s,this.state=0,this.value=void 0,this.updateCount=0,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=void 0,this.changeSummary=this.createChangeSummary?.(),w()?.handleDerivedCreated(this)}onLastObserverRemoved(){this.state=0,this.value=void 0;for(const e of this.dependencies)e.removeObserver(this);this.dependencies.clear(),this._handleLastObserverRemoved?.()}get(){if(0===this.observers.size){const e=this._computeFn(this,this.createChangeSummary?.());return this.onLastObserverRemoved(),e}do{if(1===this.state)for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break;1===this.state&&(this.state=3),this._recomputeIfNeeded()}while(3!==this.state);return this.value}_recomputeIfNeeded(){if(3===this.state)return;const e=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=e;const t=0!==this.state,n=this.value;this.state=3;const i=this.changeSummary;this.changeSummary=this.createChangeSummary?.();try{this.value=this._computeFn(this,i)}finally{for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}const r=t&&!this._equalityComparator(n,this.value);if(w()?.handleDerivedRecomputed(this,{oldValue:n,newValue:this.value,change:void 0,didChange:r,hadValue:t}),r)for(const s of this.observers)s.handleChange(this,void 0)}toString(){return`LazyDerived<${this.debugName}>`}beginUpdate(e){this.updateCount++;const t=1===this.updateCount;if(3===this.state&&(this.state=1,!t))for(const n of this.observers)n.handlePossibleChange(this);if(t)for(const n of this.observers)n.beginUpdate(this)}endUpdate(e){if(this.updateCount--,0===this.updateCount){const e=[...this.observers];for(const t of e)t.endUpdate(this)}(0,x.Ft)((()=>this.updateCount>=0))}handlePossibleChange(e){if(3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){this.state=1;for(const e of this.observers)e.handlePossibleChange(this)}}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){const n=!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary),i=3===this.state;if(n&&(1===this.state||i)&&(this.state=2,i))for(const e of this.observers)e.handlePossibleChange(this)}}readObservable(e){e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}addObserver(e){const t=!this.observers.has(e)&&this.updateCount>0;super.addObserver(e),t&&e.beginUpdate(this)}removeObserver(e){const t=this.observers.has(e)&&this.updateCount>0;super.removeObserver(e),t&&e.endUpdate(this)}}function F(e){return new L(new h(void 0,void 0,e),e,void 0,void 0)}class L{get debugName(){return this._debugNameData.getDebugName(this)??"(anonymous)"}constructor(e,t,n,i){this._debugNameData=e,this._runFn=t,this.createChangeSummary=n,this._handleChange=i,this.state=2,this.updateCount=0,this.disposed=!1,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=this.createChangeSummary?.(),w()?.handleAutorunCreated(this),this._runIfNeeded(),(0,r.Ay)(this)}dispose(){this.disposed=!0;for(const e of this.dependencies)e.removeObserver(this);this.dependencies.clear(),(0,r.VD)(this)}_runIfNeeded(){if(3===this.state)return;const e=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=e,this.state=3;const t=this.disposed;try{if(!t){w()?.handleAutorunTriggered(this);const e=this.changeSummary;this.changeSummary=this.createChangeSummary?.(),this._runFn(this,e)}}finally{t||w()?.handleAutorunFinished(this);for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}}toString(){return`Autorun<${this.debugName}>`}beginUpdate(){3===this.state&&(this.state=1),this.updateCount++}endUpdate(){if(1===this.updateCount)do{if(1===this.state){this.state=3;for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break}this._runIfNeeded()}while(3!==this.state);this.updateCount--,(0,x.Ft)((()=>this.updateCount>=0))}handlePossibleChange(e){3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)&&(this.state=1)}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){(!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary))&&(this.state=2)}}readObservable(e){if(this.disposed)return e.get();e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}}!function(e){e.Observer=L}(F||(F={}));function I(...e){let t,n,i;return 3===e.length?[t,n,i]=e:[n,i]=e,new T(new h(t,void 0,i),n,i,(()=>T.globalTransaction),c)}class T extends k{constructor(e,t,n,i,r){super(),this._debugNameData=e,this.event=t,this._getValue=n,this._getTransaction=i,this._equalityComparator=r,this.hasValue=!1,this.handleEvent=e=>{const t=this._getValue(e),n=this.value,i=!this.hasValue||!this._equalityComparator(n,t);let r=!1;i&&(this.value=t,this.hasValue&&(r=!0,function(e,t,n){e?t(e):C(t,n)}(this._getTransaction(),(e=>{w()?.handleFromEventObservableTriggered(this,{oldValue:n,newValue:t,change:void 0,didChange:i,hadValue:this.hasValue});for(const t of this.observers)e.updateObserver(t,this),t.handleChange(this,void 0)}),(()=>{const e=this.getDebugName();return"Event fired"+(e?`: ${e}`:"")}))),this.hasValue=!0),r||w()?.handleFromEventObservableTriggered(this,{oldValue:n,newValue:t,change:void 0,didChange:i,hadValue:this.hasValue})}}getDebugName(){return this._debugNameData.getDebugName(this)}get debugName(){const e=this.getDebugName();return"From Event"+(e?`: ${e}`:"")}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0,this.hasValue=!1,this.value=void 0}get(){if(this.subscription)return this.hasValue||this.handleEvent(void 0),this.value;return this._getValue(void 0)}}!function(e){e.Observer=T,e.batchEventsGlobally=function(e,t){let n=!1;void 0===T.globalTransaction&&(T.globalTransaction=e,n=!0);try{t()}finally{n&&(T.globalTransaction=void 0)}}}(I||(I={}));!function(e){v=e}((function(e){const t=new N(!1,void 0);return e.addObserver(t),(0,r.s)((()=>{e.removeObserver(t)}))})),function(e){b=e}((function(e,t){const n=new N(!0,t);return e.addObserver(n),t?t(e.get()):e.reportChanges(),(0,r.s)((()=>{e.removeObserver(n)}))}));class N{constructor(e,t){this._forceRecompute=e,this._handleValue=t,this._counter=0}beginUpdate(e){this._counter++}endUpdate(e){this._counter--,0===this._counter&&this._forceRecompute&&(this._handleValue?this._handleValue(e.get()):e.reportChanges())}handlePossibleChange(e){}handleChange(e,t){}}n(4383);class R extends r.jG{static{this.instanceCount=0}constructor(e=!1){super(),this._onDidRequestBasicLanguageFeatures=this._register(new i.vl),this.onDidRequestBasicLanguageFeatures=this._onDidRequestBasicLanguageFeatures.event,this._onDidRequestRichLanguageFeatures=this._register(new i.vl),this.onDidRequestRichLanguageFeatures=this._onDidRequestRichLanguageFeatures.event,this._onDidChange=this._register(new i.vl({leakWarningThreshold:200})),this.onDidChange=this._onDidChange.event,this._requestedBasicLanguages=new Set,this._requestedRichLanguages=new Set,R.instanceCount++,this._registry=this._register(new s.LanguagesRegistry(!0,e)),this.languageIdCodec=this._registry.languageIdCodec,this._register(this._registry.onDidChange((()=>this._onDidChange.fire())))}dispose(){R.instanceCount--,super.dispose()}isRegisteredLanguageId(e){return this._registry.isRegisteredLanguageId(e)}getLanguageIdByLanguageName(e){return this._registry.getLanguageIdByLanguageName(e)}getLanguageIdByMimeType(e){return this._registry.getLanguageIdByMimeType(e)}guessLanguageIdByFilepathOrFirstLine(e,t){const n=this._registry.guessLanguageIdByFilepathOrFirstLine(e,t);return(0,o.Fy)(n,null)}createById(e){return new D(this.onDidChange,(()=>this._createAndGetLanguageIdentifier(e)))}createByFilepathOrFirstLine(e,t){return new D(this.onDidChange,(()=>{const n=this.guessLanguageIdByFilepathOrFirstLine(e,t);return this._createAndGetLanguageIdentifier(n)}))}_createAndGetLanguageIdentifier(e){return e&&this.isRegisteredLanguageId(e)||(e=l.vH),e}requestBasicLanguageFeatures(e){this._requestedBasicLanguages.has(e)||(this._requestedBasicLanguages.add(e),this._onDidRequestBasicLanguageFeatures.fire(e))}requestRichLanguageFeatures(e){this._requestedRichLanguages.has(e)||(this._requestedRichLanguages.add(e),this.requestBasicLanguageFeatures(e),a.dG.getOrCreate(e),this._onDidRequestRichLanguageFeatures.fire(e))}}class D{constructor(e,t){this._value=I(this,e,(()=>t())),this.onDidChange=i.Jh.fromObservable(this._value)}get languageId(){return this._value.get()}}},9908:(e,t,n)=>{"use strict";n.r(t),n.d(t,{clearPlatformLanguageAssociations:()=>m,getLanguageIds:()=>f,registerPlatformLanguageAssociation:()=>p});var i=n(6958),r=n(1939),s=n(6456),o=n(8821),a=n(9403),l=n(1508),c=n(3941);let h=[],d=[],u=[];function p(e,t=!1){!function(e,t,n){const r=function(e,t){return{id:e.id,mime:e.mime,filename:e.filename,extension:e.extension,filepattern:e.filepattern,firstline:e.firstline,userConfigured:t,filenameLowercase:e.filename?e.filename.toLowerCase():void 0,extensionLowercase:e.extension?e.extension.toLowerCase():void 0,filepatternLowercase:e.filepattern?(0,i.qg)(e.filepattern.toLowerCase()):void 0,filepatternOnPath:!!e.filepattern&&e.filepattern.indexOf(o.SA.sep)>=0}}(e,t);h.push(r),r.userConfigured?u.push(r):d.push(r);n&&!r.userConfigured&&h.forEach((e=>{e.mime===r.mime||e.userConfigured||(r.extension&&e.extension===r.extension&&console.warn(`Overwriting extension <<${r.extension}>> to now point to mime <<${r.mime}>>`),r.filename&&e.filename===r.filename&&console.warn(`Overwriting filename <<${r.filename}>> to now point to mime <<${r.mime}>>`),r.filepattern&&e.filepattern===r.filepattern&&console.warn(`Overwriting filepattern <<${r.filepattern}>> to now point to mime <<${r.mime}>>`),r.firstline&&e.firstline===r.firstline&&console.warn(`Overwriting firstline <<${r.firstline}>> to now point to mime <<${r.mime}>>`))}))}(e,!1,t)}function m(){h=h.filter((e=>e.userConfigured)),d=[]}function f(e,t){return function(e,t){let n;if(e)switch(e.scheme){case s.ny.file:n=e.fsPath;break;case s.ny.data:n=a.B6.parseMetaData(e).get(a.B6.META_DATA_LABEL);break;case s.ny.vscodeNotebookCell:n=void 0;break;default:n=e.path}if(!n)return[{id:"unknown",mime:r.K.unknown}];n=n.toLowerCase();const i=(0,o.P8)(n),p=g(n,i,u);if(p)return[p,{id:c.vH,mime:r.K.text}];const m=g(n,i,d);if(m)return[m,{id:c.vH,mime:r.K.text}];if(t){const e=function(e){(0,l.LU)(e)&&(e=e.substr(1));if(e.length>0)for(let t=h.length-1;t>=0;t--){const n=h[t];if(!n.firstline)continue;const i=e.match(n.firstline);if(i&&i.length>0)return n}return}(t);if(e)return[e,{id:c.vH,mime:r.K.text}]}return[{id:"unknown",mime:r.K.unknown}]}(e,t).map((e=>e.id))}function g(e,t,n){let i,r,s;for(let o=n.length-1;o>=0;o--){const a=n[o];if(t===a.filenameLowercase){i=a;break}if(a.filepattern&&(!r||a.filepattern.length>r.filepattern.length)){const n=a.filepatternOnPath?e:t;a.filepatternLowercase?.(n)&&(r=a)}a.extension&&(!s||a.extension.length>s.extension.length)&&t.endsWith(a.extensionLowercase)&&(s=a)}return i||(r||(s||void 0))}},9259:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LanguageIdCodec:()=>u,LanguagesRegistry:()=>p});var i=n(1234),r=n(1484),s=n(1508),o=n(9908),a=n(3941),l=n(1646),c=n(6359);const h=Object.prototype.hasOwnProperty,d="vs.editor.nullLanguage";class u{constructor(){this._languageIdToLanguage=[],this._languageToLanguageId=new Map,this._register(d,0),this._register(a.vH,1),this._nextLanguageId=2}_register(e,t){this._languageIdToLanguage[t]=e,this._languageToLanguageId.set(e,t)}register(e){if(this._languageToLanguageId.has(e))return;const t=this._nextLanguageId++;this._register(e,t)}encodeLanguageId(e){return this._languageToLanguageId.get(e)||0}decodeLanguageId(e){return this._languageIdToLanguage[e]||d}}class p extends r.jG{static{this.instanceCount=0}constructor(e=!0,t=!1){super(),this._onDidChange=this._register(new i.vl),this.onDidChange=this._onDidChange.event,p.instanceCount++,this._warnOnOverwrite=t,this.languageIdCodec=new u,this._dynamicLanguages=[],this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},e&&(this._initializeFromRegistry(),this._register(a.W6.onDidChangeLanguages((e=>{this._initializeFromRegistry()}))))}dispose(){p.instanceCount--,super.dispose()}_initializeFromRegistry(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},(0,o.clearPlatformLanguageAssociations)();const e=[].concat(a.W6.getLanguages()).concat(this._dynamicLanguages);this._registerLanguages(e)}_registerLanguages(e){for(const t of e)this._registerLanguage(t);this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach((e=>{const t=this._languages[e];t.name&&(this._nameMap[t.name]=t.identifier),t.aliases.forEach((e=>{this._lowercaseNameMap[e.toLowerCase()]=t.identifier})),t.mimetypes.forEach((e=>{this._mimeTypesMap[e]=t.identifier}))})),c.O.as(l.Fd.Configuration).registerOverrideIdentifiers(this.getRegisteredLanguageIds()),this._onDidChange.fire()}_registerLanguage(e){const t=e.id;let n;h.call(this._languages,t)?n=this._languages[t]:(this.languageIdCodec.register(t),n={identifier:t,name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[],icons:[]},this._languages[t]=n),this._mergeLanguage(n,e)}_mergeLanguage(e,t){const n=t.id;let i=null;if(Array.isArray(t.mimetypes)&&t.mimetypes.length>0&&(e.mimetypes.push(...t.mimetypes),i=t.mimetypes[0]),i||(i=`text/x-${n}`,e.mimetypes.push(i)),Array.isArray(t.extensions)){t.configuration?e.extensions=t.extensions.concat(e.extensions):e.extensions=e.extensions.concat(t.extensions);for(const e of t.extensions)(0,o.registerPlatformLanguageAssociation)({id:n,mime:i,extension:e},this._warnOnOverwrite)}if(Array.isArray(t.filenames))for(const s of t.filenames)(0,o.registerPlatformLanguageAssociation)({id:n,mime:i,filename:s},this._warnOnOverwrite),e.filenames.push(s);if(Array.isArray(t.filenamePatterns))for(const s of t.filenamePatterns)(0,o.registerPlatformLanguageAssociation)({id:n,mime:i,filepattern:s},this._warnOnOverwrite);if("string"===typeof t.firstLine&&t.firstLine.length>0){let e=t.firstLine;"^"!==e.charAt(0)&&(e="^"+e);try{const t=new RegExp(e);(0,s.eY)(t)||(0,o.registerPlatformLanguageAssociation)({id:n,mime:i,firstline:t},this._warnOnOverwrite)}catch(l){console.warn(`[${t.id}]: Invalid regular expression \`${e}\`: `,l)}}e.aliases.push(n);let r=null;if("undefined"!==typeof t.aliases&&Array.isArray(t.aliases)&&(r=0===t.aliases.length?[null]:t.aliases),null!==r)for(const s of r)s&&0!==s.length&&e.aliases.push(s);const a=null!==r&&r.length>0;if(a&&null===r[0]);else{const t=(a?r[0]:null)||n;!a&&e.name||(e.name=t)}t.configuration&&e.configurationFiles.push(t.configuration),t.icon&&e.icons.push(t.icon)}isRegisteredLanguageId(e){return!!e&&h.call(this._languages,e)}getRegisteredLanguageIds(){return Object.keys(this._languages)}getLanguageIdByLanguageName(e){const t=e.toLowerCase();return h.call(this._lowercaseNameMap,t)?this._lowercaseNameMap[t]:null}getLanguageIdByMimeType(e){return e&&h.call(this._mimeTypesMap,e)?this._mimeTypesMap[e]:null}guessLanguageIdByFilepathOrFirstLine(e,t){return e||t?(0,o.getLanguageIds)(e,t):[]}}},7550:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IMarkerDecorationsService:()=>i});const i=(0,n(3591).u1)("markerDecorationsService")},448:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MarkerDecorationsService:()=>C});var i,r=n(1508);!function(e){e[e.Ignore=0]="Ignore",e[e.Info=1]="Info",e[e.Warning=2]="Warning",e[e.Error=3]="Error"}(i||(i={})),function(e){const t="error",n="warning",i="info";e.fromValue=function(s){return s?r.Q_(t,s)?e.Error:r.Q_(n,s)||r.Q_("warn",s)?e.Warning:r.Q_(i,s)?e.Info:e.Ignore:e.Ignore},e.toString=function(r){switch(r){case e.Error:return t;case e.Warning:return n;case e.Info:return i;default:return"ignore"}}}(i||(i={}));const s=i;var o,a,l=n(8209),c=n(3591);!function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(o||(o={})),function(e){e.compare=function(e,t){return t-e};const t=Object.create(null);t[e.Error]=(0,l.kg)("sev.error","Error"),t[e.Warning]=(0,l.kg)("sev.warning","Warning"),t[e.Info]=(0,l.kg)("sev.info","Info"),e.toString=function(e){return t[e]||""},e.fromSeverity=function(t){switch(t){case s.Error:return e.Error;case s.Warning:return e.Warning;case s.Info:return e.Info;case s.Ignore:return e.Hint}},e.toSeverity=function(t){switch(t){case e.Error:return s.Error;case e.Warning:return s.Warning;case e.Info:return s.Info;case e.Hint:return s.Ignore}}}(o||(o={})),function(e){const t="";function n(e,n){const i=[t];return e.source?i.push(e.source.replace("\xa6","\\\xa6")):i.push(t),e.code?"string"===typeof e.code?i.push(e.code.replace("\xa6","\\\xa6")):i.push(e.code.value.replace("\xa6","\\\xa6")):i.push(t),void 0!==e.severity&&null!==e.severity?i.push(o.toString(e.severity)):i.push(t),e.message&&n?i.push(e.message.replace("\xa6","\\\xa6")):i.push(t),void 0!==e.startLineNumber&&null!==e.startLineNumber?i.push(e.startLineNumber.toString()):i.push(t),void 0!==e.startColumn&&null!==e.startColumn?i.push(e.startColumn.toString()):i.push(t),void 0!==e.endLineNumber&&null!==e.endLineNumber?i.push(e.endLineNumber.toString()):i.push(t),void 0!==e.endColumn&&null!==e.endColumn?i.push(e.endColumn.toString()):i.push(t),i.push(t),i.join("\xa6")}e.makeKey=function(e){return n(e,!0)},e.makeKeyOptionalMessage=n}(a||(a={}));const h=(0,c.u1)("markerService");var d=n(1484),u=n(6223),p=n(5724),m=n(7119),f=n(3750),g=n(6677),b=n(6456),v=n(1234),y=n(5845),w=n(4320);var _=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},k=function(e,t){return function(n,i){t(n,i,e)}};let C=class extends d.jG{constructor(e,t){super(),this._markerService=t,this._onDidChangeMarker=this._register(new v.vl),this._markerDecorations=new w.fT,e.getModels().forEach((e=>this._onModelAdded(e))),this._register(e.onModelAdded(this._onModelAdded,this)),this._register(e.onModelRemoved(this._onModelRemoved,this)),this._register(this._markerService.onMarkerChanged(this._handleMarkerChange,this))}dispose(){super.dispose(),this._markerDecorations.forEach((e=>e.dispose())),this._markerDecorations.clear()}getMarker(e,t){const n=this._markerDecorations.get(e);return n&&n.getMarker(t)||null}_handleMarkerChange(e){e.forEach((e=>{const t=this._markerDecorations.get(e);t&&this._updateDecorations(t)}))}_onModelAdded(e){const t=new S(e);this._markerDecorations.set(e.uri,t),this._updateDecorations(t)}_onModelRemoved(e){const t=this._markerDecorations.get(e.uri);t&&(t.dispose(),this._markerDecorations.delete(e.uri)),e.uri.scheme!==b.ny.inMemory&&e.uri.scheme!==b.ny.internal&&e.uri.scheme!==b.ny.vscode||this._markerService?.read({resource:e.uri}).map((e=>e.owner)).forEach((t=>this._markerService.remove(t,[e.uri])))}_updateDecorations(e){const t=this._markerService.read({resource:e.model.uri,take:500});e.update(t)&&this._onDidChangeMarker.fire(e.model)}};C=_([k(0,f.IModelService),k(1,h)],C);class S extends d.jG{constructor(e){super(),this.model=e,this._map=new w.cO,this._register((0,d.s)((()=>{this.model.deltaDecorations([...this._map.values()],[]),this._map.clear()})))}update(e){const{added:t,removed:n}=function(e,t){const n=[],i=[];for(const r of e)t.has(r)||n.push(r);for(const r of t)e.has(r)||i.push(r);return{removed:n,added:i}}(new Set(this._map.keys()),new Set(e));if(0===t.length&&0===n.length)return!1;const i=n.map((e=>this._map.get(e))),r=t.map((e=>({range:this._createDecorationRange(this.model,e),options:this._createDecorationOption(e)}))),s=this.model.deltaDecorations(i,r);for(const o of n)this._map.delete(o);for(let o=0;o<s.length;o++)this._map.set(t[o],s[o]);return!0}getMarker(e){return this._map.getKey(e.id)}_createDecorationRange(e,t){let n=g.Q.lift(t);if(t.severity!==o.Hint||this._hasMarkerTag(t,1)||this._hasMarkerTag(t,2)||(n=n.setEndPosition(n.startLineNumber,n.startColumn+2)),n=e.validateRange(n),n.isEmpty()){const t=e.getLineLastNonWhitespaceColumn(n.startLineNumber)||e.getLineMaxColumn(n.startLineNumber);if(1===t||n.endColumn>=t)return n;const i=e.getWordAtPosition(n.getStartPosition());i&&(n=new g.Q(n.startLineNumber,i.startColumn,n.endLineNumber,i.endColumn))}else if(t.endColumn===Number.MAX_VALUE&&1===t.startColumn&&n.startLineNumber===n.endLineNumber){const i=e.getLineFirstNonWhitespaceColumn(t.startLineNumber);i<n.endColumn&&(n=new g.Q(n.startLineNumber,i,n.endLineNumber,n.endColumn),t.startColumn=i)}return n}_createDecorationOption(e){let t,n,i,r,s;switch(e.severity){case o.Hint:t=this._hasMarkerTag(e,2)?void 0:this._hasMarkerTag(e,1)?"squiggly-unnecessary":"squiggly-hint",i=0;break;case o.Info:t="squiggly-info",n=(0,p.Yf)(m.AQ),i=10,s={color:(0,p.Yf)(y.KoI),position:1};break;case o.Warning:t="squiggly-warning",n=(0,p.Yf)(m.aZ),i=20,s={color:(0,p.Yf)(y.uMG),position:1};break;case o.Error:default:t="squiggly-error",n=(0,p.Yf)(m.yI),i=30,s={color:(0,p.Yf)(y.yLC),position:1}}return e.tags&&(-1!==e.tags.indexOf(1)&&(r="squiggly-inline-unnecessary"),-1!==e.tags.indexOf(2)&&(r="squiggly-inline-deprecated")),{description:"marker-decoration",stickiness:1,className:t,showIfCollapsed:!0,overviewRuler:{color:n,position:u.A5.Right},minimap:s,zIndex:i,inlineClassName:r}}_hasMarkerTag(e,t){return!!e.tags&&e.tags.indexOf(t)>=0}}},3750:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IModelService:()=>i});const i=(0,n(3591).u1)("modelService")},1773:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DefaultModelSHA1Computer:()=>kr,ModelService:()=>_r});var i=n(1234),r=n(1484),s=n(8067),o=n(9861),a=n(7661),l=n(4383),c=n(1508),h=n(9400),d=n(4454);class u{static _nextVisibleColumn(e,t,n){return 9===e?u.nextRenderTabStop(t,n):c.ne(e)||c.Ss(e)?t+2:t+1}static visibleColumnFromColumn(e,t,n){const i=Math.min(t-1,e.length),r=e.substring(0,i),s=new c.km(r);let o=0;for(;!s.eol();){const e=c.Z5(r,i,s.offset);s.nextGraphemeLength(),o=this._nextVisibleColumn(e,o,n)}return o}static columnFromVisibleColumn(e,t,n){if(t<=0)return 1;const i=e.length,r=new c.km(e);let s=0,o=1;for(;!r.eol();){const a=c.Z5(e,i,r.offset);r.nextGraphemeLength();const l=this._nextVisibleColumn(a,s,n),h=r.offset+1;if(l>=t){return l-t<t-s?h:o}s=l,o=h}return i+1}static nextRenderTabStop(e,t){return e+t-e%t}static nextIndentTabStop(e,t){return e+t-e%t}static prevRenderTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}static prevIndentTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}}function p(e,t,n){let i=c.HG(e);return-1===i&&(i=e.length),function(e,t,n){let i=0;for(let s=0;s<e.length;s++)"\t"===e.charAt(s)?i=u.nextIndentTabStop(i,t):i++;let r="";if(!n){const e=Math.floor(i/t);i%=t;for(let t=0;t<e;t++)r+="\t"}for(let s=0;s<i;s++)r+=" ";return r}(e.substring(0,i),t,n)+e.substring(i)}var m=n(3069),f=n(6677),g=n(5326);const b={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}};var v,y=n(154),w=n(6486);!function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(v||(v={}));class _{constructor(e){if(this._neutralCharacter=null,this._neutralCharacterSearched=!1,this.open=e.open,this.close=e.close,this._inString=!0,this._inComment=!0,this._inRegEx=!0,Array.isArray(e.notIn))for(let t=0,n=e.notIn.length;t<n;t++){switch(e.notIn[t]){case"string":this._inString=!1;break;case"comment":this._inComment=!1;break;case"regex":this._inRegEx=!1}}}isOK(e){switch(e){case 0:return!0;case 1:return this._inComment;case 2:return this._inString;case 3:return this._inRegEx}}shouldAutoClose(e,t){if(0===e.getTokenCount())return!0;const n=e.findTokenIndexAtOffset(t-2),i=e.getStandardTokenType(n);return this.isOK(i)}_findNeutralCharacterInRange(e,t){for(let n=e;n<=t;n++){const e=String.fromCharCode(n);if(!this.open.includes(e)&&!this.close.includes(e))return e}return null}findNeutralCharacter(){return this._neutralCharacterSearched||(this._neutralCharacterSearched=!0,this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(48,57)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(97,122)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(65,90))),this._neutralCharacter}}class k{constructor(e){this.autoClosingPairsOpenByStart=new Map,this.autoClosingPairsOpenByEnd=new Map,this.autoClosingPairsCloseByStart=new Map,this.autoClosingPairsCloseByEnd=new Map,this.autoClosingPairsCloseSingleChar=new Map;for(const t of e)C(this.autoClosingPairsOpenByStart,t.open.charAt(0),t),C(this.autoClosingPairsOpenByEnd,t.open.charAt(t.open.length-1),t),C(this.autoClosingPairsCloseByStart,t.close.charAt(0),t),C(this.autoClosingPairsCloseByEnd,t.close.charAt(t.close.length-1),t),1===t.close.length&&1===t.open.length&&C(this.autoClosingPairsCloseSingleChar,t.close,t)}}function C(e,t,n){e.has(t)?e.get(t).push(n):e.set(t,[n])}class S{static{this.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES=";:.,=}])> \n\t"}static{this.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS="'\"`;:.,=}])> \n\t"}constructor(e){if(e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map((e=>new _(e))):e.brackets?this._autoClosingPairs=e.brackets.map((e=>new _({open:e[0],close:e[1]}))):this._autoClosingPairs=[],e.__electricCharacterSupport&&e.__electricCharacterSupport.docComment){const t=e.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new _({open:t.open,close:t.close||""}))}this._autoCloseBeforeForQuotes="string"===typeof e.autoCloseBefore?e.autoCloseBefore:S.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES,this._autoCloseBeforeForBrackets="string"===typeof e.autoCloseBefore?e.autoCloseBefore:S.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS,this._surroundingPairs=e.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(e){return e?this._autoCloseBeforeForQuotes:this._autoCloseBeforeForBrackets}getSurroundingPairs(){return this._surroundingPairs}}function x(e){return 0!==(3&e)}var E=n(1674);let F,L,I;function T(){return F||(F=new TextDecoder("UTF-16LE")),F}function N(){return I||(I=s.cm()?T():(L||(L=new TextDecoder("UTF-16BE")),L)),I}function R(e,t,n){const i=new Uint16Array(e.buffer,t,n);return n>0&&(65279===i[0]||65534===i[0])?function(e,t,n){const i=[];let r=0;for(let s=0;s<n;s++){const n=E.$l(e,t);t+=2,i[r++]=String.fromCharCode(n)}return i.join("")}(e,t,n):T().decode(i)}class D{constructor(e,t,n,i,r,s){this._richEditBracketBrand=void 0,this.languageId=e,this.index=t,this.open=n,this.close=i,this.forwardRegex=r,this.reversedRegex=s,this._openSet=D._toSet(this.open),this._closeSet=D._toSet(this.close)}isOpen(e){return this._openSet.has(e)}isClose(e){return this._closeSet.has(e)}static _toSet(e){const t=new Set;for(const n of e)t.add(n);return t}}class A{constructor(e,t){this._richEditBracketsBrand=void 0;const n=function(e){const t=e.length;e=e.map((e=>[e[0].toLowerCase(),e[1].toLowerCase()]));const n=[];for(let o=0;o<t;o++)n[o]=o;const i=(e,t)=>{const[n,i]=e,[r,s]=t;return n===r||n===s||i===r||i===s},r=(e,i)=>{const r=Math.min(e,i),s=Math.max(e,i);for(let o=0;o<t;o++)n[o]===s&&(n[o]=r)};for(let o=0;o<t;o++){const s=e[o];for(let a=o+1;a<t;a++)i(s,e[a])&&r(n[o],n[a])}const s=[];for(let o=0;o<t;o++){const i=[],r=[];for(let s=0;s<t;s++)if(n[s]===o){const[t,n]=e[s];i.push(t),r.push(n)}i.length>0&&s.push({open:i,close:r})}return s}(t);this.brackets=n.map(((t,i)=>new D(e,i,t.open,t.close,function(e,t,n,i){let r=[];r=r.concat(e),r=r.concat(t);for(let s=0,o=r.length;s<o;s++)M(r[s],n,i,r);return r=z(r),r.sort(O),r.reverse(),B(r)}(t.open,t.close,n,i),function(e,t,n,i){let r=[];r=r.concat(e),r=r.concat(t);for(let s=0,o=r.length;s<o;s++)M(r[s],n,i,r);return r=z(r),r.sort(O),r.reverse(),B(r.map(W))}(t.open,t.close,n,i)))),this.forwardRegex=function(e){let t=[];for(const n of e){for(const e of n.open)t.push(e);for(const e of n.close)t.push(e)}return t=z(t),B(t)}(this.brackets),this.reversedRegex=function(e){let t=[];for(const n of e){for(const e of n.open)t.push(e);for(const e of n.close)t.push(e)}return t=z(t),B(t.map(W))}(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(const i of this.brackets){for(const e of i.open)this.textIsBracket[e]=i,this.textIsOpenBracket[e]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,e.length);for(const e of i.close)this.textIsBracket[e]=i,this.textIsOpenBracket[e]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,e.length)}}}function M(e,t,n,i){for(let r=0,s=t.length;r<s;r++){if(r===n)continue;const s=t[r];for(const t of s.open)t.indexOf(e)>=0&&i.push(t);for(const t of s.close)t.indexOf(e)>=0&&i.push(t)}}function O(e,t){return e.length-t.length}function z(e){if(e.length<=1)return e;const t=[],n=new Set;for(const i of e)n.has(i)||(t.push(i),n.add(i));return t}function P(e){const t=/^[\w ]+$/.test(e);return e=c.bm(e),t?`\\b${e}\\b`:e}function B(e,t){const n=`(${e.map(P).join(")|(")})`;return c.OS(n,!0,t)}const W=function(){let e=null,t=null;return function(n){return e!==n&&(e=n,t=function(e){const t=new Uint16Array(e.length);let n=0;for(let i=e.length-1;i>=0;i--)t[n++]=e.charCodeAt(i);return N().decode(t)}(e)),t}}();class V{static _findPrevBracketInText(e,t,n,i){const r=n.match(e);if(!r)return null;const s=n.length-(r.index||0),o=r[0].length,a=i+s;return new f.Q(t,a-o+1,t,a+1)}static findPrevBracketInRange(e,t,n,i,r){const s=W(n).substring(n.length-r,n.length-i);return this._findPrevBracketInText(e,t,s,i)}static findNextBracketInText(e,t,n,i){const r=n.match(e);if(!r)return null;const s=r.index||0,o=r[0].length;if(0===o)return null;const a=i+s;return new f.Q(t,a+1,t,a+1+o)}static findNextBracketInRange(e,t,n,i,r){const s=n.substring(i,r);return this.findNextBracketInText(e,t,s,i)}}class U{constructor(e){this._richEditBrackets=e}getElectricCharacters(){const e=[];if(this._richEditBrackets)for(const t of this._richEditBrackets.brackets)for(const n of t.close){const t=n.charAt(n.length-1);e.push(t)}return(0,o.dM)(e)}onElectricCharacter(e,t,n){if(!this._richEditBrackets||0===this._richEditBrackets.brackets.length)return null;const i=t.findTokenIndexAtOffset(n-1);if(x(t.getStandardTokenType(i)))return null;const r=this._richEditBrackets.reversedRegex,s=t.getLineContent().substring(0,n-1)+e,o=V.findPrevBracketInRange(r,1,s,0,s.length);if(!o)return null;const a=s.substring(o.startColumn-1,o.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[a])return null;const l=t.getActualLineContentBefore(o.startColumn-1);return/^\s*$/.test(l)?{matchOpenBracket:a}:null}}function $(e){return e.global&&(e.lastIndex=0),!0}class q{constructor(e){this._indentationRules=e}shouldIncrease(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&$(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(e))}shouldDecrease(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&$(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(e))}shouldIndentNextLine(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&$(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(e))}shouldIgnore(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&$(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(e))}getIndentMetadata(e){let t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t}}class j{constructor(e){(e=e||{}).brackets=e.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],e.brackets.forEach((e=>{const t=j._createOpenBracketRegExp(e[0]),n=j._createCloseBracketRegExp(e[1]);t&&n&&this._brackets.push({open:e[0],openRegExp:t,close:e[1],closeRegExp:n})})),this._regExpRules=e.onEnterRules||[]}onEnter(e,t,n,i){if(e>=3)for(let r=0,s=this._regExpRules.length;r<s;r++){const e=this._regExpRules[r];if([{reg:e.beforeText,text:n},{reg:e.afterText,text:i},{reg:e.previousLineText,text:t}].every((e=>!e.reg||(e.reg.lastIndex=0,e.reg.test(e.text)))))return e.action}if(e>=2&&n.length>0&&i.length>0)for(let r=0,s=this._brackets.length;r<s;r++){const e=this._brackets[r];if(e.openRegExp.test(n)&&e.closeRegExp.test(i))return{indentAction:v.IndentOutdent}}if(e>=2&&n.length>0)for(let r=0,s=this._brackets.length;r<s;r++){if(this._brackets[r].openRegExp.test(n))return{indentAction:v.Indent}}return null}static _createOpenBracketRegExp(e){let t=c.bm(e);return/\B/.test(t.charAt(0))||(t="\\b"+t),t+="\\s*$",j._safeRegExp(t)}static _createCloseBracketRegExp(e){let t=c.bm(e);return/\B/.test(t.charAt(t.length-1))||(t+="\\b"),t="^\\s*"+t,j._safeRegExp(t)}static _safeRegExp(e){try{return new RegExp(e)}catch(t){return(0,l.dz)(t),null}}}var K=n(3591),H=n(4001),G=n(4621),Q=n(3941),J=n(1788);class Y{constructor(e,t){this.languageId=e;const n=t.brackets?X(t.brackets):[],i=new J.VV((e=>{const t=new Set;return{info:new ee(this,e,t),closing:t}})),r=new J.VV((e=>{const t=new Set,n=new Set;return{info:new te(this,e,t,n),opening:t,openingColorized:n}}));for(const[o,a]of n){const e=i.get(o),t=r.get(a);e.closing.add(t.info),t.opening.add(e.info)}const s=t.colorizedBracketPairs?X(t.colorizedBracketPairs):n.filter((e=>!("<"===e[0]&&">"===e[1])));for(const[o,a]of s){const e=i.get(o),t=r.get(a);e.closing.add(t.info),t.openingColorized.add(e.info),t.opening.add(e.info)}this._openingBrackets=new Map([...i.cachedValues].map((([e,t])=>[e,t.info]))),this._closingBrackets=new Map([...r.cachedValues].map((([e,t])=>[e,t.info])))}get openingBrackets(){return[...this._openingBrackets.values()]}get closingBrackets(){return[...this._closingBrackets.values()]}getOpeningBracketInfo(e){return this._openingBrackets.get(e)}getClosingBracketInfo(e){return this._closingBrackets.get(e)}getBracketInfo(e){return this.getOpeningBracketInfo(e)||this.getClosingBracketInfo(e)}getBracketRegExp(e){return B(Array.from([...this._openingBrackets.keys(),...this._closingBrackets.keys()]),e)}}function X(e){return e.filter((([e,t])=>""!==e&&""!==t))}class Z{constructor(e,t){this.config=e,this.bracketText=t}get languageId(){return this.config.languageId}}class ee extends Z{constructor(e,t,n){super(e,t),this.openedBrackets=n,this.isOpeningBracket=!0}}class te extends Z{constructor(e,t,n,i){super(e,t),this.openingBrackets=n,this.openingColorizedBrackets=i,this.isOpeningBracket=!1}closes(e){return e.config===this.config&&this.openingBrackets.has(e)}closesColorized(e){return e.config===this.config&&this.openingColorizedBrackets.has(e)}getOpeningBrackets(){return[...this.openingBrackets]}}var ne=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},ie=function(e,t){return function(n,i){t(n,i,e)}};class re{constructor(e){this.languageId=e}affects(e){return!this.languageId||this.languageId===e}}const se=(0,K.u1)("languageConfigurationService");let oe=class extends r.jG{constructor(e,t){super(),this.configurationService=e,this.languageService=t,this._registry=this._register(new pe),this.onDidChangeEmitter=this._register(new i.vl),this.onDidChange=this.onDidChangeEmitter.event,this.configurations=new Map;const n=new Set(Object.values(ae));this._register(this.configurationService.onDidChangeConfiguration((e=>{const t=e.change.keys.some((e=>n.has(e))),i=e.change.overrides.filter((([e,t])=>t.some((e=>n.has(e))))).map((([e])=>e));if(t)this.configurations.clear(),this.onDidChangeEmitter.fire(new re(void 0));else for(const n of i)this.languageService.isRegisteredLanguageId(n)&&(this.configurations.delete(n),this.onDidChangeEmitter.fire(new re(n)))}))),this._register(this._registry.onDidChange((e=>{this.configurations.delete(e.languageId),this.onDidChangeEmitter.fire(new re(e.languageId))})))}register(e,t,n){return this._registry.register(e,t,n)}getLanguageConfiguration(e){let t=this.configurations.get(e);return t||(t=function(e,t,n,i){let r=t.getLanguageConfiguration(e);if(!r){if(!i.isRegisteredLanguageId(e))return new me(e,{});r=new me(e,{})}const s=function(e,t){const n=t.getValue(ae.brackets,{overrideIdentifier:e}),i=t.getValue(ae.colorizedBracketPairs,{overrideIdentifier:e});return{brackets:le(n),colorizedBracketPairs:le(i)}}(r.languageId,n),o=he([r.underlyingConfig,s]);return new me(r.languageId,o)}(e,this._registry,this.configurationService,this.languageService),this.configurations.set(e,t)),t}};oe=ne([ie(0,H.pG),ie(1,y.L)],oe);const ae={brackets:"editor.language.brackets",colorizedBracketPairs:"editor.language.colorizedBracketPairs"};function le(e){if(Array.isArray(e))return e.map((e=>{if(Array.isArray(e)&&2===e.length)return[e[0],e[1]]})).filter((e=>!!e))}class ce{constructor(e){this.languageId=e,this._resolved=null,this._entries=[],this._order=0,this._resolved=null}register(e,t){const n=new de(e,t,++this._order);return this._entries.push(n),this._resolved=null,(0,r.s)((()=>{for(let e=0;e<this._entries.length;e++)if(this._entries[e]===n){this._entries.splice(e,1),this._resolved=null;break}}))}getResolvedConfiguration(){if(!this._resolved){const e=this._resolve();e&&(this._resolved=new me(this.languageId,e))}return this._resolved}_resolve(){return 0===this._entries.length?null:(this._entries.sort(de.cmp),he(this._entries.map((e=>e.configuration))))}}function he(e){let t={comments:void 0,brackets:void 0,wordPattern:void 0,indentationRules:void 0,onEnterRules:void 0,autoClosingPairs:void 0,surroundingPairs:void 0,autoCloseBefore:void 0,folding:void 0,colorizedBracketPairs:void 0,__electricCharacterSupport:void 0};for(const n of e)t={comments:n.comments||t.comments,brackets:n.brackets||t.brackets,wordPattern:n.wordPattern||t.wordPattern,indentationRules:n.indentationRules||t.indentationRules,onEnterRules:n.onEnterRules||t.onEnterRules,autoClosingPairs:n.autoClosingPairs||t.autoClosingPairs,surroundingPairs:n.surroundingPairs||t.surroundingPairs,autoCloseBefore:n.autoCloseBefore||t.autoCloseBefore,folding:n.folding||t.folding,colorizedBracketPairs:n.colorizedBracketPairs||t.colorizedBracketPairs,__electricCharacterSupport:n.__electricCharacterSupport||t.__electricCharacterSupport};return t}class de{constructor(e,t,n){this.configuration=e,this.priority=t,this.order=n}static cmp(e,t){return e.priority===t.priority?e.order-t.order:e.priority-t.priority}}class ue{constructor(e){this.languageId=e}}class pe extends r.jG{constructor(){super(),this._entries=new Map,this._onDidChange=this._register(new i.vl),this.onDidChange=this._onDidChange.event,this._register(this.register(Q.vH,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],colorizedBracketPairs:[],folding:{offSide:!0}},0))}register(e,t,n=0){let i=this._entries.get(e);i||(i=new ce(e),this._entries.set(e,i));const s=i.register(t,n);return this._onDidChange.fire(new ue(e)),(0,r.s)((()=>{s.dispose(),this._onDidChange.fire(new ue(e))}))}getLanguageConfiguration(e){const t=this._entries.get(e);return t?.getResolvedConfiguration()||null}}class me{constructor(e,t){this.languageId=e,this.underlyingConfig=t,this._brackets=null,this._electricCharacter=null,this._onEnterSupport=this.underlyingConfig.brackets||this.underlyingConfig.indentationRules||this.underlyingConfig.onEnterRules?new j(this.underlyingConfig):null,this.comments=me._handleComments(this.underlyingConfig),this.characterPair=new S(this.underlyingConfig),this.wordDefinition=this.underlyingConfig.wordPattern||w.Ld,this.indentationRules=this.underlyingConfig.indentationRules,this.underlyingConfig.indentationRules?this.indentRulesSupport=new q(this.underlyingConfig.indentationRules):this.indentRulesSupport=null,this.foldingRules=this.underlyingConfig.folding||{},this.bracketsNew=new Y(e,this.underlyingConfig)}getWordDefinition(){return(0,w.Io)(this.wordDefinition)}get brackets(){return!this._brackets&&this.underlyingConfig.brackets&&(this._brackets=new A(this.languageId,this.underlyingConfig.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new U(this.brackets)),this._electricCharacter}onEnter(e,t,n,i){return this._onEnterSupport?this._onEnterSupport.onEnter(e,t,n,i):null}getAutoClosingPairs(){return new k(this.characterPair.getAutoClosingPairs())}getAutoCloseBeforeSet(e){return this.characterPair.getAutoCloseBeforeSet(e)}getSurroundingPairs(){return this.characterPair.getSurroundingPairs()}static _handleComments(e){const t=e.comments;if(!t)return null;const n={};if(t.lineComment&&(n.lineCommentToken=t.lineComment),t.blockComment){const[e,i]=t.blockComment;n.blockCommentStartToken=e,n.blockCommentEndToken=i}return n}}(0,G.v)(se,oe,1);var fe=n(6223);class ge{constructor(e,t,n,i){this.range=e,this.nestingLevel=t,this.nestingLevelOfEqualBracketType=n,this.isInvalid=i}}class be{constructor(e,t,n,i,r,s){this.range=e,this.openingBracketRange=t,this.closingBracketRange=n,this.nestingLevel=i,this.nestingLevelOfEqualBracketType=r,this.bracketPairNode=s}get openingBracketInfo(){return this.bracketPairNode.openingBracket.bracketInfo}}class ve extends be{constructor(e,t,n,i,r,s,o){super(e,t,n,i,r,s),this.minVisibleColumnIndentation=o}}var ye=n(973);function we(e){return 0===e}const _e=2**26;function ke(e,t){return e*_e+t}function Ce(e){const t=e,n=Math.floor(t/_e),i=t-n*_e;return new ye.W(n,i)}function Se(e,t){let n=e+t;return t>=_e&&(n-=e%_e),n}function xe(e,t){return e.reduce(((e,n)=>Se(e,t(n))),0)}function Ee(e,t){return e===t}function Fe(e,t){const n=e,i=t;if(i-n<=0)return 0;const r=Math.floor(n/_e),s=Math.floor(i/_e),o=i-s*_e;if(r===s){return ke(0,o-(n-r*_e))}return ke(s-r,o)}function Le(e,t){return e<t}function Ie(e,t){return e<=t}function Te(e,t){return e>=t}function Ne(e){return ke(e.lineNumber-1,e.column-1)}function Re(e,t){const n=e,i=Math.floor(n/_e),r=n-i*_e,s=t,o=Math.floor(s/_e),a=s-o*_e;return new f.Q(i+1,r+1,o+1,a+1)}class De{static fromModelContentChanges(e){return e.map((e=>{const t=f.Q.lift(e.range);return new De(Ne(t.getStartPosition()),Ne(t.getEndPosition()),function(e){const t=(0,c.uz)(e);return ke(t.length-1,t[t.length-1].length)}(e.text))})).reverse()}constructor(e,t,n){this.startOffset=e,this.endOffset=t,this.newLength=n}toString(){return`[${Ce(this.startOffset)}...${Ce(this.endOffset)}) -> ${Ce(this.newLength)}`}}class Ae{constructor(e){this.nextEditIdx=0,this.deltaOldToNewLineCount=0,this.deltaOldToNewColumnCount=0,this.deltaLineIdxInOld=-1,this.edits=e.map((e=>Me.from(e)))}getOffsetBeforeChange(e){return this.adjustNextEdit(e),this.translateCurToOld(e)}getDistanceToNextChange(e){this.adjustNextEdit(e);const t=this.edits[this.nextEditIdx],n=t?this.translateOldToCur(t.offsetObj):null;return null===n?null:Fe(e,n)}translateOldToCur(e){return e.lineCount===this.deltaLineIdxInOld?ke(e.lineCount+this.deltaOldToNewLineCount,e.columnCount+this.deltaOldToNewColumnCount):ke(e.lineCount+this.deltaOldToNewLineCount,e.columnCount)}translateCurToOld(e){const t=Ce(e);return t.lineCount-this.deltaOldToNewLineCount===this.deltaLineIdxInOld?ke(t.lineCount-this.deltaOldToNewLineCount,t.columnCount-this.deltaOldToNewColumnCount):ke(t.lineCount-this.deltaOldToNewLineCount,t.columnCount)}adjustNextEdit(e){for(;this.nextEditIdx<this.edits.length;){const t=this.edits[this.nextEditIdx],n=this.translateOldToCur(t.endOffsetAfterObj);if(!Ie(n,e))break;{this.nextEditIdx++;const e=Ce(n),i=Ce(this.translateOldToCur(t.endOffsetBeforeObj)),r=e.lineCount-i.lineCount;this.deltaOldToNewLineCount+=r;const s=this.deltaLineIdxInOld===t.endOffsetBeforeObj.lineCount?this.deltaOldToNewColumnCount:0,o=e.columnCount-i.columnCount;this.deltaOldToNewColumnCount=s+o,this.deltaLineIdxInOld=t.endOffsetBeforeObj.lineCount}}}}class Me{static from(e){return new Me(e.startOffset,e.endOffset,e.newLength)}constructor(e,t,n){this.endOffsetBeforeObj=Ce(t),this.endOffsetAfterObj=Ce(Se(e,n)),this.offsetObj=Ce(e)}}const Oe=[];class ze{static{this.cache=new Array(129)}static create(e,t){if(e<=128&&0===t.length){let n=ze.cache[e];return n||(n=new ze(e,t),ze.cache[e]=n),n}return new ze(e,t)}static{this.empty=ze.create(0,Oe)}static getEmpty(){return this.empty}constructor(e,t){this.items=e,this.additionalItems=t}add(e,t){const n=t.getKey(e);let i=n>>5;if(0===i){const e=1<<n|this.items;return e===this.items?this:ze.create(e,this.additionalItems)}i--;const r=this.additionalItems.slice(0);for(;r.length<i;)r.push(0);return r[i]|=1<<(31&n),ze.create(this.items,r)}merge(e){const t=this.items|e.items;if(this.additionalItems===Oe&&e.additionalItems===Oe)return t===this.items?this:t===e.items?e:ze.create(t,Oe);const n=[];for(let i=0;i<Math.max(this.additionalItems.length,e.additionalItems.length);i++){const t=this.additionalItems[i]||0,r=e.additionalItems[i]||0;n.push(t|r)}return ze.create(t,n)}intersects(e){if(0!==(this.items&e.items))return!0;for(let t=0;t<Math.min(this.additionalItems.length,e.additionalItems.length);t++)if(0!==(this.additionalItems[t]&e.additionalItems[t]))return!0;return!1}}const Pe={getKey:e=>e};class Be{constructor(){this.items=new Map}getKey(e){let t=this.items.get(e);return void 0===t&&(t=this.items.size,this.items.set(e,t)),t}}class We{get length(){return this._length}constructor(e){this._length=e}}class Ve extends We{static create(e,t,n){let i=e.length;return t&&(i=Se(i,t.length)),n&&(i=Se(i,n.length)),new Ve(i,e,t,n,t?t.missingOpeningBracketIds:ze.getEmpty())}get kind(){return 2}get listHeight(){return 0}get childrenLength(){return 3}getChild(e){switch(e){case 0:return this.openingBracket;case 1:return this.child;case 2:return this.closingBracket}throw new Error("Invalid child index")}get children(){const e=[];return e.push(this.openingBracket),this.child&&e.push(this.child),this.closingBracket&&e.push(this.closingBracket),e}constructor(e,t,n,i,r){super(e),this.openingBracket=t,this.child=n,this.closingBracket=i,this.missingOpeningBracketIds=r}canBeReused(e){return null!==this.closingBracket&&!e.intersects(this.missingOpeningBracketIds)}deepClone(){return new Ve(this.length,this.openingBracket.deepClone(),this.child&&this.child.deepClone(),this.closingBracket&&this.closingBracket.deepClone(),this.missingOpeningBracketIds)}computeMinIndentation(e,t){return this.child?this.child.computeMinIndentation(Se(e,this.openingBracket.length),t):Number.MAX_SAFE_INTEGER}}class Ue extends We{static create23(e,t,n,i=!1){let r=e.length,s=e.missingOpeningBracketIds;if(e.listHeight!==t.listHeight)throw new Error("Invalid list heights");if(r=Se(r,t.length),s=s.merge(t.missingOpeningBracketIds),n){if(e.listHeight!==n.listHeight)throw new Error("Invalid list heights");r=Se(r,n.length),s=s.merge(n.missingOpeningBracketIds)}return i?new qe(r,e.listHeight+1,e,t,n,s):new $e(r,e.listHeight+1,e,t,n,s)}static getEmpty(){return new Ke(0,0,[],ze.getEmpty())}get kind(){return 4}get missingOpeningBracketIds(){return this._missingOpeningBracketIds}constructor(e,t,n){super(e),this.listHeight=t,this._missingOpeningBracketIds=n,this.cachedMinIndentation=-1}throwIfImmutable(){}makeLastElementMutable(){this.throwIfImmutable();const e=this.childrenLength;if(0===e)return;const t=this.getChild(e-1),n=4===t.kind?t.toMutable():t;return t!==n&&this.setChild(e-1,n),n}makeFirstElementMutable(){this.throwIfImmutable();if(0===this.childrenLength)return;const e=this.getChild(0),t=4===e.kind?e.toMutable():e;return e!==t&&this.setChild(0,t),t}canBeReused(e){if(e.intersects(this.missingOpeningBracketIds))return!1;if(0===this.childrenLength)return!1;let t=this;for(;4===t.kind;){const e=t.childrenLength;if(0===e)throw new l.D7;t=t.getChild(e-1)}return t.canBeReused(e)}handleChildrenChanged(){this.throwIfImmutable();const e=this.childrenLength;let t=this.getChild(0).length,n=this.getChild(0).missingOpeningBracketIds;for(let i=1;i<e;i++){const e=this.getChild(i);t=Se(t,e.length),n=n.merge(e.missingOpeningBracketIds)}this._length=t,this._missingOpeningBracketIds=n,this.cachedMinIndentation=-1}computeMinIndentation(e,t){if(-1!==this.cachedMinIndentation)return this.cachedMinIndentation;let n=Number.MAX_SAFE_INTEGER,i=e;for(let r=0;r<this.childrenLength;r++){const e=this.getChild(r);e&&(n=Math.min(n,e.computeMinIndentation(i,t)),i=Se(i,e.length))}return this.cachedMinIndentation=n,n}}class $e extends Ue{get childrenLength(){return null!==this._item3?3:2}getChild(e){switch(e){case 0:return this._item1;case 1:return this._item2;case 2:return this._item3}throw new Error("Invalid child index")}setChild(e,t){switch(e){case 0:return void(this._item1=t);case 1:return void(this._item2=t);case 2:return void(this._item3=t)}throw new Error("Invalid child index")}get children(){return this._item3?[this._item1,this._item2,this._item3]:[this._item1,this._item2]}get item1(){return this._item1}get item2(){return this._item2}get item3(){return this._item3}constructor(e,t,n,i,r,s){super(e,t,s),this._item1=n,this._item2=i,this._item3=r}deepClone(){return new $e(this.length,this.listHeight,this._item1.deepClone(),this._item2.deepClone(),this._item3?this._item3.deepClone():null,this.missingOpeningBracketIds)}appendChildOfSameHeight(e){if(this._item3)throw new Error("Cannot append to a full (2,3) tree node");this.throwIfImmutable(),this._item3=e,this.handleChildrenChanged()}unappendChild(){if(!this._item3)throw new Error("Cannot remove from a non-full (2,3) tree node");this.throwIfImmutable();const e=this._item3;return this._item3=null,this.handleChildrenChanged(),e}prependChildOfSameHeight(e){if(this._item3)throw new Error("Cannot prepend to a full (2,3) tree node");this.throwIfImmutable(),this._item3=this._item2,this._item2=this._item1,this._item1=e,this.handleChildrenChanged()}unprependChild(){if(!this._item3)throw new Error("Cannot remove from a non-full (2,3) tree node");this.throwIfImmutable();const e=this._item1;return this._item1=this._item2,this._item2=this._item3,this._item3=null,this.handleChildrenChanged(),e}toMutable(){return this}}class qe extends $e{toMutable(){return new $e(this.length,this.listHeight,this.item1,this.item2,this.item3,this.missingOpeningBracketIds)}throwIfImmutable(){throw new Error("this instance is immutable")}}class je extends Ue{get childrenLength(){return this._children.length}getChild(e){return this._children[e]}setChild(e,t){this._children[e]=t}get children(){return this._children}constructor(e,t,n,i){super(e,t,i),this._children=n}deepClone(){const e=new Array(this._children.length);for(let t=0;t<this._children.length;t++)e[t]=this._children[t].deepClone();return new je(this.length,this.listHeight,e,this.missingOpeningBracketIds)}appendChildOfSameHeight(e){this.throwIfImmutable(),this._children.push(e),this.handleChildrenChanged()}unappendChild(){this.throwIfImmutable();const e=this._children.pop();return this.handleChildrenChanged(),e}prependChildOfSameHeight(e){this.throwIfImmutable(),this._children.unshift(e),this.handleChildrenChanged()}unprependChild(){this.throwIfImmutable();const e=this._children.shift();return this.handleChildrenChanged(),e}toMutable(){return this}}class Ke extends je{toMutable(){return new je(this.length,this.listHeight,[...this.children],this.missingOpeningBracketIds)}throwIfImmutable(){throw new Error("this instance is immutable")}}const He=[];class Ge extends We{get listHeight(){return 0}get childrenLength(){return 0}getChild(e){return null}get children(){return He}deepClone(){return this}}class Qe extends Ge{get kind(){return 0}get missingOpeningBracketIds(){return ze.getEmpty()}canBeReused(e){return!0}computeMinIndentation(e,t){const n=Ce(e),i=(0===n.columnCount?n.lineCount:n.lineCount+1)+1,r=(s=Se(e,this.length),Math.floor(s/_e)+1);var s;let o=Number.MAX_SAFE_INTEGER;for(let a=i;a<=r;a++){const e=t.getLineFirstNonWhitespaceColumn(a),n=t.getLineContent(a);if(0===e)continue;const i=u.visibleColumnFromColumn(n,e,t.getOptions().tabSize);o=Math.min(o,i)}return o}}class Je extends Ge{static create(e,t,n){return new Je(e,t,n)}get kind(){return 1}get missingOpeningBracketIds(){return ze.getEmpty()}constructor(e,t,n){super(e),this.bracketInfo=t,this.bracketIds=n}get text(){return this.bracketInfo.bracketText}get languageId(){return this.bracketInfo.languageId}canBeReused(e){return!1}computeMinIndentation(e,t){return Number.MAX_SAFE_INTEGER}}class Ye extends Ge{get kind(){return 3}constructor(e,t){super(t),this.missingOpeningBracketIds=e}canBeReused(e){return!e.intersects(this.missingOpeningBracketIds)}computeMinIndentation(e,t){return Number.MAX_SAFE_INTEGER}}var Xe=n(5982);class Ze{constructor(e,t,n,i,r){this.length=e,this.kind=t,this.bracketId=n,this.bracketIds=i,this.astNode=r}}class et{constructor(e,t){this.textModel=e,this.bracketTokens=t,this.reader=new tt(this.textModel,this.bracketTokens),this._offset=0,this.didPeek=!1,this.peeked=null,this.textBufferLineCount=e.getLineCount(),this.textBufferLastLineLength=e.getLineLength(this.textBufferLineCount)}get offset(){return this._offset}get length(){return ke(this.textBufferLineCount-1,this.textBufferLastLineLength)}skip(e){this.didPeek=!1,this._offset=Se(this._offset,e);const t=Ce(this._offset);this.reader.setPosition(t.lineCount,t.columnCount)}read(){let e;return this.peeked?(this.didPeek=!1,e=this.peeked):e=this.reader.read(),e&&(this._offset=Se(this._offset,e.length)),e}peek(){return this.didPeek||(this.peeked=this.reader.read(),this.didPeek=!0),this.peeked}}class tt{constructor(e,t){this.textModel=e,this.bracketTokens=t,this.lineIdx=0,this.line=null,this.lineCharOffset=0,this.lineTokens=null,this.lineTokenOffset=0,this.peekedToken=null,this.textBufferLineCount=e.getLineCount(),this.textBufferLastLineLength=e.getLineLength(this.textBufferLineCount)}setPosition(e,t){e===this.lineIdx?(this.lineCharOffset=t,null!==this.line&&(this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset))):(this.lineIdx=e,this.lineCharOffset=t,this.line=null),this.peekedToken=null}read(){if(this.peekedToken){const e=this.peekedToken;return this.peekedToken=null,this.lineCharOffset+=e.length,e}if(this.lineIdx>this.textBufferLineCount-1||this.lineIdx===this.textBufferLineCount-1&&this.lineCharOffset>=this.textBufferLastLineLength)return null;null===this.line&&(this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.line=this.lineTokens.getLineContent(),this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset));const e=this.lineIdx,t=this.lineCharOffset;let n=0;for(;;){const i=this.lineTokens,r=i.getCount();let s=null;if(this.lineTokenOffset<r){const o=i.getMetadata(this.lineTokenOffset);for(;this.lineTokenOffset+1<r&&o===i.getMetadata(this.lineTokenOffset+1);)this.lineTokenOffset++;const a=0===Xe.x.getTokenType(o),l=Xe.x.containsBalancedBrackets(o),c=i.getEndOffset(this.lineTokenOffset);if(l&&a&&this.lineCharOffset<c){const e=i.getLanguageId(this.lineTokenOffset),t=this.line.substring(this.lineCharOffset,c),n=this.bracketTokens.getSingleLanguageBracketTokens(e),r=n.regExpGlobal;if(r){r.lastIndex=0;const e=r.exec(t);e&&(s=n.getToken(e[0]),s&&(this.lineCharOffset+=e.index))}}if(n+=c-this.lineCharOffset,s){if(e!==this.lineIdx||t!==this.lineCharOffset){this.peekedToken=s;break}return this.lineCharOffset+=s.length,s}this.lineTokenOffset++,this.lineCharOffset=c}else{if(this.lineIdx===this.textBufferLineCount-1)break;if(this.lineIdx++,this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.lineTokenOffset=0,this.line=this.lineTokens.getLineContent(),this.lineCharOffset=0,n+=33,n>1e3)break}if(n>1500)break}const i=(r=e,s=t,o=this.lineIdx,a=this.lineCharOffset,r!==o?ke(o-r,a):ke(0,a-s));var r,s,o,a;return new Ze(i,0,-1,ze.getEmpty(),new Qe(i))}}class nt{constructor(e,t){this.text=e,this._offset=0,this.idx=0;const n=t.getRegExpStr(),i=n?new RegExp(n+"|\n","gi"):null,r=[];let s,o=0,a=0,l=0,c=0;const h=[];for(let p=0;p<60;p++)h.push(new Ze(ke(0,p),0,-1,ze.getEmpty(),new Qe(ke(0,p))));const d=[];for(let p=0;p<60;p++)d.push(new Ze(ke(1,p),0,-1,ze.getEmpty(),new Qe(ke(1,p))));if(i)for(i.lastIndex=0;null!==(s=i.exec(e));){const e=s.index,n=s[0];if("\n"===n)o++,a=e+1;else{if(l!==e){let t;if(c===o){const n=e-l;if(n<h.length)t=h[n];else{const e=ke(0,n);t=new Ze(e,0,-1,ze.getEmpty(),new Qe(e))}}else{const n=o-c,i=e-a;if(1===n&&i<d.length)t=d[i];else{const e=ke(n,i);t=new Ze(e,0,-1,ze.getEmpty(),new Qe(e))}}r.push(t)}r.push(t.getToken(n)),l=e+n.length,c=o}}const u=e.length;if(l!==u){const e=c===o?ke(0,u-l):ke(o-c,u-a);r.push(new Ze(e,0,-1,ze.getEmpty(),new Qe(e)))}this.length=ke(o,u-a),this.tokens=r}get offset(){return this._offset}read(){return this.tokens[this.idx++]||null}peek(){return this.tokens[this.idx]||null}skip(e){throw new l.EM}}class it{static createFromLanguage(e,t){function n(e){return t.getKey(`${e.languageId}:::${e.bracketText}`)}const i=new Map;for(const r of e.bracketsNew.openingBrackets){const e=ke(0,r.bracketText.length),t=n(r),s=ze.getEmpty().add(t,Pe);i.set(r.bracketText,new Ze(e,1,t,s,Je.create(e,r,s)))}for(const r of e.bracketsNew.closingBrackets){const e=ke(0,r.bracketText.length);let t=ze.getEmpty();const s=r.getOpeningBrackets();for(const i of s)t=t.add(n(i),Pe);i.set(r.bracketText,new Ze(e,2,n(s[0]),t,Je.create(e,r,t)))}return new it(i)}constructor(e){this.map=e,this.hasRegExp=!1,this._regExpGlobal=null}getRegExpStr(){if(this.isEmpty)return null;{const e=[...this.map.keys()];return e.sort(),e.reverse(),e.map((e=>function(e){let t=(0,c.bm)(e);/^[\w ]+/.test(e)&&(t=`\\b${t}`);/[\w ]+$/.test(e)&&(t=`${t}\\b`);return t}(e))).join("|")}}get regExpGlobal(){if(!this.hasRegExp){const e=this.getRegExpStr();this._regExpGlobal=e?new RegExp(e,"gi"):null,this.hasRegExp=!0}return this._regExpGlobal}getToken(e){return this.map.get(e.toLowerCase())}findClosingTokenText(e){for(const[t,n]of this.map)if(2===n.kind&&n.bracketIds.intersects(e))return t}get isEmpty(){return 0===this.map.size}}class rt{constructor(e,t){this.denseKeyProvider=e,this.getLanguageConfiguration=t,this.languageIdToBracketTokens=new Map}didLanguageChange(e){return this.languageIdToBracketTokens.has(e)}getSingleLanguageBracketTokens(e){let t=this.languageIdToBracketTokens.get(e);return t||(t=it.createFromLanguage(this.getLanguageConfiguration(e),this.denseKeyProvider),this.languageIdToBracketTokens.set(e,t)),t}}function st(e,t=!1){if(0===e.length)return null;if(1===e.length)return e[0];let n=e.length;for(;n>3;){const i=n>>1;for(let r=0;r<i;r++){const i=r<<1;e[r]=Ue.create23(e[i],e[i+1],i+3===n?e[i+2]:null,t)}n=i}return Ue.create23(e[0],e[1],n>=3?e[2]:null,t)}function ot(e,t){return Math.abs(e.listHeight-t.listHeight)}function at(e,t){return e.listHeight===t.listHeight?Ue.create23(e,t,null,!1):e.listHeight>t.listHeight?function(e,t){let n=e=e.toMutable();const i=[];let r;for(;;){if(t.listHeight===n.listHeight){r=t;break}if(4!==n.kind)throw new Error("unexpected");i.push(n),n=n.makeLastElementMutable()}for(let s=i.length-1;s>=0;s--){const e=i[s];r?e.childrenLength>=3?r=Ue.create23(e.unappendChild(),r,null,!1):(e.appendChildOfSameHeight(r),r=void 0):e.handleChildrenChanged()}return r?Ue.create23(e,r,null,!1):e}(e,t):function(e,t){let n=e=e.toMutable();const i=[];for(;t.listHeight!==n.listHeight;){if(4!==n.kind)throw new Error("unexpected");i.push(n),n=n.makeFirstElementMutable()}let r=t;for(let s=i.length-1;s>=0;s--){const e=i[s];r?e.childrenLength>=3?r=Ue.create23(r,e.unprependChild(),null,!1):(e.prependChildOfSameHeight(r),r=void 0):e.handleChildrenChanged()}return r?Ue.create23(r,e,null,!1):e}(t,e)}class lt{constructor(e){this.lastOffset=0,this.nextNodes=[e],this.offsets=[0],this.idxs=[]}readLongestNodeAt(e,t){if(Le(e,this.lastOffset))throw new Error("Invalid offset");for(this.lastOffset=e;;){const n=ht(this.nextNodes);if(!n)return;const i=ht(this.offsets);if(Le(e,i))return;if(Le(i,e))if(Se(i,n.length)<=e)this.nextNodeAfterCurrent();else{const e=ct(n);-1!==e?(this.nextNodes.push(n.getChild(e)),this.offsets.push(i),this.idxs.push(e)):this.nextNodeAfterCurrent()}else{if(t(n))return this.nextNodeAfterCurrent(),n;{const e=ct(n);if(-1===e)return void this.nextNodeAfterCurrent();this.nextNodes.push(n.getChild(e)),this.offsets.push(i),this.idxs.push(e)}}}}nextNodeAfterCurrent(){for(;;){const e=ht(this.offsets),t=ht(this.nextNodes);if(this.nextNodes.pop(),this.offsets.pop(),0===this.idxs.length)break;const n=ht(this.nextNodes),i=ct(n,this.idxs[this.idxs.length-1]);if(-1!==i){this.nextNodes.push(n.getChild(i)),this.offsets.push(Se(e,t.length)),this.idxs[this.idxs.length-1]=i;break}this.idxs.pop()}}}function ct(e,t=-1){for(;;){if(++t>=e.childrenLength)return-1;if(e.getChild(t))return t}}function ht(e){return e.length>0?e[e.length-1]:void 0}function dt(e,t,n,i){return new ut(e,t,n,i).parseDocument()}class ut{constructor(e,t,n,i){if(this.tokenizer=e,this.createImmutableLists=i,this._itemsConstructed=0,this._itemsFromCache=0,n&&i)throw new Error("Not supported");this.oldNodeReader=n?new lt(n):void 0,this.positionMapper=new Ae(t)}parseDocument(){this._itemsConstructed=0,this._itemsFromCache=0;let e=this.parseList(ze.getEmpty(),0);return e||(e=Ue.getEmpty()),e}parseList(e,t){const n=[];for(;;){let i=this.tryReadChildFromCache(e);if(!i){const n=this.tokenizer.peek();if(!n||2===n.kind&&n.bracketIds.intersects(e))break;i=this.parseChild(e,t+1)}4===i.kind&&0===i.childrenLength||n.push(i)}const i=this.oldNodeReader?function(e){if(0===e.length)return null;if(1===e.length)return e[0];let t=0;function n(){if(t>=e.length)return null;const n=t,i=e[n].listHeight;for(t++;t<e.length&&e[t].listHeight===i;)t++;return t-n>=2?st(0===n&&t===e.length?e:e.slice(n,t),!1):e[n]}let i=n(),r=n();if(!r)return i;for(let s=n();s;s=n())ot(i,r)<=ot(r,s)?(i=at(i,r),r=s):r=at(r,s);return at(i,r)}(n):st(n,this.createImmutableLists);return i}tryReadChildFromCache(e){if(this.oldNodeReader){const t=this.positionMapper.getDistanceToNextChange(this.tokenizer.offset);if(null===t||!we(t)){const n=this.oldNodeReader.readLongestNodeAt(this.positionMapper.getOffsetBeforeChange(this.tokenizer.offset),(n=>{if(null!==t&&!Le(n.length,t))return!1;return n.canBeReused(e)}));if(n)return this._itemsFromCache++,this.tokenizer.skip(n.length),n}}}parseChild(e,t){this._itemsConstructed++;const n=this.tokenizer.read();switch(n.kind){case 2:return new Ye(n.bracketIds,n.length);case 0:return n.astNode;case 1:{if(t>300)return new Qe(n.length);const i=e.merge(n.bracketIds),r=this.parseList(i,t+1),s=this.tokenizer.peek();return s&&2===s.kind&&(s.bracketId===n.bracketId||s.bracketIds.intersects(n.bracketIds))?(this.tokenizer.read(),Ve.create(n.astNode,r,s.astNode)):Ve.create(n.astNode,r,null)}default:throw new Error("unexpected")}}}function pt(e,t){if(0===e.length)return t;if(0===t.length)return e;const n=new o.j3(ft(e)),i=ft(t);i.push({modified:!1,lengthBefore:void 0,lengthAfter:void 0});let r=n.dequeue();function s(e){if(void 0===e){const e=n.takeWhile((e=>!0))||[];return r&&e.unshift(r),e}const t=[];for(;r&&!we(e);){const[i,s]=r.splitAt(e);t.push(i),e=Fe(i.lengthAfter,e),r=s??n.dequeue()}return we(e)||t.push(new mt(!1,e,e)),t}const a=[];function l(e,t,n){if(a.length>0&&Ee(a[a.length-1].endOffset,e)){const e=a[a.length-1];a[a.length-1]=new De(e.startOffset,t,Se(e.newLength,n))}else a.push({startOffset:e,endOffset:t,newLength:n})}let c=0;for(const o of i){const e=s(o.lengthBefore);if(o.modified){const t=Se(c,xe(e,(e=>e.lengthBefore)));l(c,t,o.lengthAfter),c=t}else for(const t of e){const e=c;c=Se(c,t.lengthBefore),t.modified&&l(e,c,t.lengthAfter)}}return a}class mt{constructor(e,t,n){this.modified=e,this.lengthBefore=t,this.lengthAfter=n}splitAt(e){const t=Fe(e,this.lengthAfter);return Ee(t,0)?[this,void 0]:this.modified?[new mt(this.modified,this.lengthBefore,e),new mt(this.modified,0,t)]:[new mt(this.modified,e,e),new mt(this.modified,t,t)]}toString(){return`${this.modified?"M":"U"}:${Ce(this.lengthBefore)} -> ${Ce(this.lengthAfter)}`}}function ft(e){const t=[];let n=0;for(const i of e){const e=Fe(n,i.startOffset);we(e)||t.push(new mt(!1,e,e));const r=Fe(i.startOffset,i.endOffset);t.push(new mt(!0,r,i.newLength)),n=i.endOffset}return t}class gt extends r.jG{didLanguageChange(e){return this.brackets.didLanguageChange(e)}constructor(e,t){if(super(),this.textModel=e,this.getLanguageConfiguration=t,this.didChangeEmitter=new i.vl,this.denseKeyProvider=new Be,this.brackets=new rt(this.denseKeyProvider,this.getLanguageConfiguration),this.onDidChange=this.didChangeEmitter.event,this.queuedTextEditsForInitialAstWithoutTokens=[],this.queuedTextEdits=[],e.tokenization.hasTokens)2===e.tokenization.backgroundTokenizationState?(this.initialAstWithoutTokens=void 0,this.astWithTokens=this.parseDocumentFromTextBuffer([],void 0,!1)):(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer([],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens);else{const e=this.brackets.getSingleLanguageBracketTokens(this.textModel.getLanguageId()),t=new nt(this.textModel.getValue(),e);this.initialAstWithoutTokens=dt(t,[],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens}}handleDidChangeBackgroundTokenizationState(){if(2===this.textModel.tokenization.backgroundTokenizationState){const e=void 0===this.initialAstWithoutTokens;this.initialAstWithoutTokens=void 0,e||this.didChangeEmitter.fire()}}handleDidChangeTokens({ranges:e}){const t=e.map((e=>new De(ke(e.fromLineNumber-1,0),ke(e.toLineNumber,0),ke(e.toLineNumber-e.fromLineNumber+1,0))));this.handleEdits(t,!0),this.initialAstWithoutTokens||this.didChangeEmitter.fire()}handleContentChanged(e){const t=De.fromModelContentChanges(e.changes);this.handleEdits(t,!1)}handleEdits(e,t){const n=pt(this.queuedTextEdits,e);this.queuedTextEdits=n,this.initialAstWithoutTokens&&!t&&(this.queuedTextEditsForInitialAstWithoutTokens=pt(this.queuedTextEditsForInitialAstWithoutTokens,e))}flushQueue(){this.queuedTextEdits.length>0&&(this.astWithTokens=this.parseDocumentFromTextBuffer(this.queuedTextEdits,this.astWithTokens,!1),this.queuedTextEdits=[]),this.queuedTextEditsForInitialAstWithoutTokens.length>0&&(this.initialAstWithoutTokens&&(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer(this.queuedTextEditsForInitialAstWithoutTokens,this.initialAstWithoutTokens,!1)),this.queuedTextEditsForInitialAstWithoutTokens=[])}parseDocumentFromTextBuffer(e,t,n){const i=t;return dt(new et(this.textModel,this.brackets),e,i,n)}getBracketsInRange(e,t){this.flushQueue();const n=ke(e.startLineNumber-1,e.startColumn-1),i=ke(e.endLineNumber-1,e.endColumn-1);return new o.c1((e=>{const r=this.initialAstWithoutTokens||this.astWithTokens;yt(r,0,r.length,n,i,e,0,0,new Map,t)}))}getBracketPairsInRange(e,t){this.flushQueue();const n=Ne(e.getStartPosition()),i=Ne(e.getEndPosition());return new o.c1((e=>{const r=this.initialAstWithoutTokens||this.astWithTokens,s=new wt(e,t,this.textModel);_t(r,0,r.length,n,i,s,0,new Map)}))}getFirstBracketAfter(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return vt(t,0,t.length,Ne(e))}getFirstBracketBefore(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return bt(t,0,t.length,Ne(e))}}function bt(e,t,n,i){if(4===e.kind||2===e.kind){const r=[];for(const i of e.children)n=Se(t,i.length),r.push({nodeOffsetStart:t,nodeOffsetEnd:n}),t=n;for(let t=r.length-1;t>=0;t--){const{nodeOffsetStart:n,nodeOffsetEnd:s}=r[t];if(Le(n,i)){const r=bt(e.children[t],n,s,i);if(r)return r}}return null}if(3===e.kind)return null;if(1===e.kind){const i=Re(t,n);return{bracketInfo:e.bracketInfo,range:i}}return null}function vt(e,t,n,i){if(4===e.kind||2===e.kind){for(const r of e.children){if(Le(i,n=Se(t,r.length))){const e=vt(r,t,n,i);if(e)return e}t=n}return null}if(3===e.kind)return null;if(1===e.kind){const i=Re(t,n);return{bracketInfo:e.bracketInfo,range:i}}return null}function yt(e,t,n,i,r,s,o,a,l,c,h=!1){if(o>200)return!0;e:for(;;)switch(e.kind){case 4:{const a=e.childrenLength;for(let h=0;h<a;h++){const a=e.getChild(h);if(a){if(n=Se(t,a.length),Ie(t,r)&&Te(n,i)){if(Te(n,r)){e=a;continue e}if(!yt(a,t,n,i,r,s,o,0,l,c))return!1}t=n}}return!0}case 2:{const h=!c||!e.closingBracket||e.closingBracket.bracketInfo.closesColorized(e.openingBracket.bracketInfo);let d=0;if(l){let t=l.get(e.openingBracket.text);void 0===t&&(t=0),d=t,h&&(t++,l.set(e.openingBracket.text,t))}const u=e.childrenLength;for(let p=0;p<u;p++){const u=e.getChild(p);if(u){if(n=Se(t,u.length),Ie(t,r)&&Te(n,i)){if(Te(n,r)&&1!==u.kind){e=u,h?(o++,a=d+1):a=d;continue e}if(h||1!==u.kind||!e.closingBracket){if(!yt(u,t,n,i,r,s,h?o+1:o,h?d+1:d,l,c,!e.closingBracket))return!1}}t=n}}return l?.set(e.openingBracket.text,d),!0}case 3:{const e=Re(t,n);return s(new ge(e,o-1,0,!0))}case 1:{const e=Re(t,n);return s(new ge(e,o-1,a-1,h))}case 0:return!0}}class wt{constructor(e,t,n){this.push=e,this.includeMinIndentation=t,this.textModel=n}}function _t(e,t,n,i,r,s,o,a){if(o>200)return!0;let l=!0;if(2===e.kind){let c=0;if(a){let t=a.get(e.openingBracket.text);void 0===t&&(t=0),c=t,t++,a.set(e.openingBracket.text,t)}const h=Se(t,e.openingBracket.length);let d=-1;if(s.includeMinIndentation&&(d=e.computeMinIndentation(t,s.textModel)),l=s.push(new ve(Re(t,n),Re(t,h),e.closingBracket?Re(Se(h,e.child?.length||0),n):void 0,o,c,e,d)),t=h,l&&e.child){const c=e.child;if(n=Se(t,c.length),Ie(t,r)&&Te(n,i)&&(l=_t(c,t,n,i,r,s,o+1,a),!l))return!1}a?.set(e.openingBracket.text,c)}else{let n=t;for(const t of e.children){const e=n;if(n=Se(n,t.length),Ie(e,r)&&Ie(i,n)&&(l=_t(t,e,n,i,r,s,o,a),!l))return!1}}return l}class kt extends r.jG{get canBuildAST(){return this.textModel.getValueLength()<=5e6}constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t,this.bracketPairsTree=this._register(new r.HE),this.onDidChangeEmitter=new i.vl,this.onDidChange=this.onDidChangeEmitter.event,this.bracketsRequested=!1}handleLanguageConfigurationServiceChange(e){e.languageId&&!this.bracketPairsTree.value?.object.didLanguageChange(e.languageId)||(this.bracketPairsTree.clear(),this.updateBracketPairsTree())}handleDidChangeOptions(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeLanguage(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeContent(e){this.bracketPairsTree.value?.object.handleContentChanged(e)}handleDidChangeBackgroundTokenizationState(){this.bracketPairsTree.value?.object.handleDidChangeBackgroundTokenizationState()}handleDidChangeTokens(e){this.bracketPairsTree.value?.object.handleDidChangeTokens(e)}updateBracketPairsTree(){if(this.bracketsRequested&&this.canBuildAST){if(!this.bracketPairsTree.value){const n=new r.Cm;this.bracketPairsTree.value=(e=n.add(new gt(this.textModel,(e=>this.languageConfigurationService.getLanguageConfiguration(e)))),t=n,{object:e,dispose:()=>t?.dispose()}),n.add(this.bracketPairsTree.value.object.onDidChange((e=>this.onDidChangeEmitter.fire(e)))),this.onDidChangeEmitter.fire()}}else this.bracketPairsTree.value&&(this.bracketPairsTree.clear(),this.onDidChangeEmitter.fire());var e,t}getBracketPairsInRange(e){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketPairsInRange(e,!1)||o.c1.empty}getBracketPairsInRangeWithMinIndentation(e){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketPairsInRange(e,!0)||o.c1.empty}getBracketsInRange(e,t=!1){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketsInRange(e,t)||o.c1.empty}findMatchingBracketUp(e,t,n){const i=this.textModel.validatePosition(t),r=this.textModel.getLanguageIdAtPosition(i.lineNumber,i.column);if(this.canBuildAST){const n=this.languageConfigurationService.getLanguageConfiguration(r).bracketsNew.getClosingBracketInfo(e);if(!n)return null;const i=this.getBracketPairsInRange(f.Q.fromPositions(t,t)).findLast((e=>n.closes(e.openingBracketInfo)));return i?i.openingBracketRange:null}{const t=e.toLowerCase(),s=this.languageConfigurationService.getLanguageConfiguration(r).brackets;if(!s)return null;const o=s.textIsBracket[t];return o?xt(this._findMatchingBracketUp(o,i,Ct(n))):null}}matchBracket(e,t){if(this.canBuildAST){const t=this.getBracketPairsInRange(f.Q.fromPositions(e,e)).filter((t=>void 0!==t.closingBracketRange&&(t.openingBracketRange.containsPosition(e)||t.closingBracketRange.containsPosition(e)))).findLastMaxBy((0,o.VE)((t=>t.openingBracketRange.containsPosition(e)?t.openingBracketRange:t.closingBracketRange),f.Q.compareRangesUsingStarts));return t?[t.openingBracketRange,t.closingBracketRange]:null}{const n=Ct(t);return this._matchBracket(this.textModel.validatePosition(e),n)}}_establishBracketSearchOffsets(e,t,n,i){const r=t.getCount(),s=t.getLanguageId(i);let o=Math.max(0,e.column-1-n.maxBracketLength);for(let l=i-1;l>=0;l--){const e=t.getEndOffset(l);if(e<=o)break;if(x(t.getStandardTokenType(l))||t.getLanguageId(l)!==s){o=e;break}}let a=Math.min(t.getLineContent().length,e.column-1+n.maxBracketLength);for(let l=i+1;l<r;l++){const e=t.getStartOffset(l);if(e>=a)break;if(x(t.getStandardTokenType(l))||t.getLanguageId(l)!==s){a=e;break}}return{searchStartOffset:o,searchEndOffset:a}}_matchBracket(e,t){const n=e.lineNumber,i=this.textModel.tokenization.getLineTokens(n),r=this.textModel.getLineContent(n),s=i.findTokenIndexAtOffset(e.column-1);if(s<0)return null;const o=this.languageConfigurationService.getLanguageConfiguration(i.getLanguageId(s)).brackets;if(o&&!x(i.getStandardTokenType(s))){let{searchStartOffset:a,searchEndOffset:l}=this._establishBracketSearchOffsets(e,i,o,s),c=null;for(;;){const i=V.findNextBracketInRange(o.forwardRegex,n,r,a,l);if(!i)break;if(i.startColumn<=e.column&&e.column<=i.endColumn){const e=r.substring(i.startColumn-1,i.endColumn-1).toLowerCase(),n=this._matchFoundBracket(i,o.textIsBracket[e],o.textIsOpenBracket[e],t);if(n){if(n instanceof St)return null;c=n}}a=i.endColumn-1}if(c)return c}if(s>0&&i.getStartOffset(s)===e.column-1){const o=s-1,a=this.languageConfigurationService.getLanguageConfiguration(i.getLanguageId(o)).brackets;if(a&&!x(i.getStandardTokenType(o))){const{searchStartOffset:s,searchEndOffset:l}=this._establishBracketSearchOffsets(e,i,a,o),c=V.findPrevBracketInRange(a.reversedRegex,n,r,s,l);if(c&&c.startColumn<=e.column&&e.column<=c.endColumn){const e=r.substring(c.startColumn-1,c.endColumn-1).toLowerCase(),n=this._matchFoundBracket(c,a.textIsBracket[e],a.textIsOpenBracket[e],t);if(n)return n instanceof St?null:n}}}return null}_matchFoundBracket(e,t,n,i){if(!t)return null;const r=n?this._findMatchingBracketDown(t,e.getEndPosition(),i):this._findMatchingBracketUp(t,e.getStartPosition(),i);return r?r instanceof St?r:[e,r]:null}_findMatchingBracketUp(e,t,n){const i=e.languageId,r=e.reversedRegex;let s=-1,o=0;const a=(t,i,a,l)=>{for(;;){if(n&&++o%100===0&&!n())return St.INSTANCE;const c=V.findPrevBracketInRange(r,t,i,a,l);if(!c)break;const h=i.substring(c.startColumn-1,c.endColumn-1).toLowerCase();if(e.isOpen(h)?s++:e.isClose(h)&&s--,0===s)return c;l=c.startColumn-1}return null};for(let l=t.lineNumber;l>=1;l--){const e=this.textModel.tokenization.getLineTokens(l),n=e.getCount(),r=this.textModel.getLineContent(l);let s=n-1,o=r.length,c=r.length;l===t.lineNumber&&(s=e.findTokenIndexAtOffset(t.column-1),o=t.column-1,c=t.column-1);let h=!0;for(;s>=0;s--){const t=e.getLanguageId(s)===i&&!x(e.getStandardTokenType(s));if(t)h?o=e.getStartOffset(s):(o=e.getStartOffset(s),c=e.getEndOffset(s));else if(h&&o!==c){const e=a(l,r,o,c);if(e)return e}h=t}if(h&&o!==c){const e=a(l,r,o,c);if(e)return e}}return null}_findMatchingBracketDown(e,t,n){const i=e.languageId,r=e.forwardRegex;let s=1,o=0;const a=(t,i,a,l)=>{for(;;){if(n&&++o%100===0&&!n())return St.INSTANCE;const c=V.findNextBracketInRange(r,t,i,a,l);if(!c)break;const h=i.substring(c.startColumn-1,c.endColumn-1).toLowerCase();if(e.isOpen(h)?s++:e.isClose(h)&&s--,0===s)return c;a=c.endColumn-1}return null},l=this.textModel.getLineCount();for(let c=t.lineNumber;c<=l;c++){const e=this.textModel.tokenization.getLineTokens(c),n=e.getCount(),r=this.textModel.getLineContent(c);let s=0,o=0,l=0;c===t.lineNumber&&(s=e.findTokenIndexAtOffset(t.column-1),o=t.column-1,l=t.column-1);let h=!0;for(;s<n;s++){const t=e.getLanguageId(s)===i&&!x(e.getStandardTokenType(s));if(t)h||(o=e.getStartOffset(s)),l=e.getEndOffset(s);else if(h&&o!==l){const e=a(c,r,o,l);if(e)return e}h=t}if(h&&o!==l){const e=a(c,r,o,l);if(e)return e}}return null}findPrevBracket(e){const t=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getFirstBracketBefore(t)||null;let n=null,i=null,r=null;for(let s=t.lineNumber;s>=1;s--){const e=this.textModel.tokenization.getLineTokens(s),o=e.getCount(),a=this.textModel.getLineContent(s);let l=o-1,c=a.length,h=a.length;if(s===t.lineNumber){l=e.findTokenIndexAtOffset(t.column-1),c=t.column-1,h=t.column-1;const s=e.getLanguageId(l);n!==s&&(n=s,i=this.languageConfigurationService.getLanguageConfiguration(n).brackets,r=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew)}let d=!0;for(;l>=0;l--){const t=e.getLanguageId(l);if(n!==t){if(i&&r&&d&&c!==h){const e=V.findPrevBracketInRange(i.reversedRegex,s,a,c,h);if(e)return this._toFoundBracket(r,e);d=!1}n=t,i=this.languageConfigurationService.getLanguageConfiguration(n).brackets,r=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew}const o=!!i&&!x(e.getStandardTokenType(l));if(o)d?c=e.getStartOffset(l):(c=e.getStartOffset(l),h=e.getEndOffset(l));else if(r&&i&&d&&c!==h){const e=V.findPrevBracketInRange(i.reversedRegex,s,a,c,h);if(e)return this._toFoundBracket(r,e)}d=o}if(r&&i&&d&&c!==h){const e=V.findPrevBracketInRange(i.reversedRegex,s,a,c,h);if(e)return this._toFoundBracket(r,e)}}return null}findNextBracket(e){const t=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getFirstBracketAfter(t)||null;const n=this.textModel.getLineCount();let i=null,r=null,s=null;for(let o=t.lineNumber;o<=n;o++){const e=this.textModel.tokenization.getLineTokens(o),n=e.getCount(),a=this.textModel.getLineContent(o);let l=0,c=0,h=0;if(o===t.lineNumber){l=e.findTokenIndexAtOffset(t.column-1),c=t.column-1,h=t.column-1;const n=e.getLanguageId(l);i!==n&&(i=n,r=this.languageConfigurationService.getLanguageConfiguration(i).brackets,s=this.languageConfigurationService.getLanguageConfiguration(i).bracketsNew)}let d=!0;for(;l<n;l++){const t=e.getLanguageId(l);if(i!==t){if(s&&r&&d&&c!==h){const e=V.findNextBracketInRange(r.forwardRegex,o,a,c,h);if(e)return this._toFoundBracket(s,e);d=!1}i=t,r=this.languageConfigurationService.getLanguageConfiguration(i).brackets,s=this.languageConfigurationService.getLanguageConfiguration(i).bracketsNew}const n=!!r&&!x(e.getStandardTokenType(l));if(n)d||(c=e.getStartOffset(l)),h=e.getEndOffset(l);else if(s&&r&&d&&c!==h){const e=V.findNextBracketInRange(r.forwardRegex,o,a,c,h);if(e)return this._toFoundBracket(s,e)}d=n}if(s&&r&&d&&c!==h){const e=V.findNextBracketInRange(r.forwardRegex,o,a,c,h);if(e)return this._toFoundBracket(s,e)}}return null}findEnclosingBrackets(e,t){const n=this.textModel.validatePosition(e);if(this.canBuildAST){const e=f.Q.fromPositions(n),t=this.getBracketPairsInRange(f.Q.fromPositions(n,n)).findLast((t=>void 0!==t.closingBracketRange&&t.range.strictContainsRange(e)));return t?[t.openingBracketRange,t.closingBracketRange]:null}const i=Ct(t),r=this.textModel.getLineCount(),s=new Map;let o=[];const a=(e,t)=>{if(!s.has(e)){const n=[];for(let e=0,i=t?t.brackets.length:0;e<i;e++)n[e]=0;s.set(e,n)}o=s.get(e)};let l=0;const c=(e,t,n,r,s)=>{for(;;){if(i&&++l%100===0&&!i())return St.INSTANCE;const a=V.findNextBracketInRange(e.forwardRegex,t,n,r,s);if(!a)break;const c=n.substring(a.startColumn-1,a.endColumn-1).toLowerCase(),h=e.textIsBracket[c];if(h&&(h.isOpen(c)?o[h.index]++:h.isClose(c)&&o[h.index]--,-1===o[h.index]))return this._matchFoundBracket(a,h,!1,i);r=a.endColumn-1}return null};let h=null,d=null;for(let u=n.lineNumber;u<=r;u++){const e=this.textModel.tokenization.getLineTokens(u),t=e.getCount(),i=this.textModel.getLineContent(u);let r=0,s=0,o=0;if(u===n.lineNumber){r=e.findTokenIndexAtOffset(n.column-1),s=n.column-1,o=n.column-1;const t=e.getLanguageId(r);h!==t&&(h=t,d=this.languageConfigurationService.getLanguageConfiguration(h).brackets,a(h,d))}let l=!0;for(;r<t;r++){const t=e.getLanguageId(r);if(h!==t){if(d&&l&&s!==o){const e=c(d,u,i,s,o);if(e)return xt(e);l=!1}h=t,d=this.languageConfigurationService.getLanguageConfiguration(h).brackets,a(h,d)}const n=!!d&&!x(e.getStandardTokenType(r));if(n)l||(s=e.getStartOffset(r)),o=e.getEndOffset(r);else if(d&&l&&s!==o){const e=c(d,u,i,s,o);if(e)return xt(e)}l=n}if(d&&l&&s!==o){const e=c(d,u,i,s,o);if(e)return xt(e)}}return null}_toFoundBracket(e,t){if(!t)return null;let n=this.textModel.getValueInRange(t);n=n.toLowerCase();const i=e.getBracketInfo(n);return i?{range:t,bracketInfo:i}:null}}function Ct(e){if("undefined"===typeof e)return()=>!0;{const t=Date.now();return()=>Date.now()-t<=e}}class St{static{this.INSTANCE=new St}constructor(){this._searchCanceledBrand=void 0}}function xt(e){return e instanceof St?null:e}var Et=n(7119),Ft=n(5724);class Lt extends r.jG{constructor(e){super(),this.textModel=e,this.colorProvider=new It,this.onDidChangeEmitter=new i.vl,this.onDidChange=this.onDidChangeEmitter.event,this.colorizationOptions=e.getOptions().bracketPairColorizationOptions,this._register(e.bracketPairs.onDidChange((e=>{this.onDidChangeEmitter.fire()})))}handleDidChangeOptions(e){this.colorizationOptions=this.textModel.getOptions().bracketPairColorizationOptions}getDecorationsInRange(e,t,n,i){if(i)return[];if(void 0===t)return[];if(!this.colorizationOptions.enabled)return[];return this.textModel.bracketPairs.getBracketsInRange(e,!0).map((e=>({id:`bracket${e.range.toString()}-${e.nestingLevel}`,options:{description:"BracketPairColorization",inlineClassName:this.colorProvider.getInlineClassName(e,this.colorizationOptions.independentColorPoolPerBracketType)},ownerId:0,range:e.range}))).toArray()}getAllDecorations(e,t){return void 0===e?[]:this.colorizationOptions.enabled?this.getDecorationsInRange(new f.Q(1,1,this.textModel.getLineCount(),1),e,t):[]}}class It{constructor(){this.unexpectedClosingBracketClassName="unexpected-closing-bracket"}getInlineClassName(e,t){return e.isInvalid?this.unexpectedClosingBracketClassName:this.getInlineClassNameOfLevel(t?e.nestingLevelOfEqualBracketType:e.nestingLevel)}getInlineClassNameOfLevel(e){return"bracket-highlighting-"+e%30}}(0,Ft.zy)(((e,t)=>{const n=[Et.sN,Et.lQ,Et.ss,Et.l5,Et.sH,Et.zp],i=new It;t.addRule(`.monaco-editor .${i.unexpectedClosingBracketClassName} { color: ${e.getColor(Et.s7)}; }`);const r=n.map((t=>e.getColor(t))).filter((e=>!!e)).filter((e=>!e.isTransparent()));for(let s=0;s<30;s++){const e=r[s%r.length];t.addRule(`.monaco-editor .${i.getInlineClassNameOfLevel(s)} { color: ${e}; }`)}}));var Tt=n(8209);function Nt(e){return e.replace(/\n/g,"\\n").replace(/\r/g,"\\r")}class Rt{get oldLength(){return this.oldText.length}get oldEnd(){return this.oldPosition+this.oldText.length}get newLength(){return this.newText.length}get newEnd(){return this.newPosition+this.newText.length}constructor(e,t,n,i){this.oldPosition=e,this.oldText=t,this.newPosition=n,this.newText=i}toString(){return 0===this.oldText.length?`(insert@${this.oldPosition} "${Nt(this.newText)}")`:0===this.newText.length?`(delete@${this.oldPosition} "${Nt(this.oldText)}")`:`(replace@${this.oldPosition} "${Nt(this.oldText)}" with "${Nt(this.newText)}")`}static _writeStringSize(e){return 4+2*e.length}static _writeString(e,t,n){const i=t.length;E.Sw(e,i,n),n+=4;for(let r=0;r<i;r++)E.gN(e,t.charCodeAt(r),n),n+=2;return n}static _readString(e,t){const n=E.bb(e,t);return R(e,t+=4,n)}writeSize(){return 8+Rt._writeStringSize(this.oldText)+Rt._writeStringSize(this.newText)}write(e,t){return E.Sw(e,this.oldPosition,t),t+=4,E.Sw(e,this.newPosition,t),t+=4,t=Rt._writeString(e,this.oldText,t),t=Rt._writeString(e,this.newText,t)}static read(e,t,n){const i=E.bb(e,t);t+=4;const r=E.bb(e,t);t+=4;const s=Rt._readString(e,t);t+=Rt._writeStringSize(s);const o=Rt._readString(e,t);return t+=Rt._writeStringSize(o),n.push(new Rt(i,s,r,o)),t}}class Dt{constructor(e,t){this._prevEdits=e,this._currEdits=t,this._result=[],this._resultLen=0,this._prevLen=this._prevEdits.length,this._prevDeltaOffset=0,this._currLen=this._currEdits.length,this._currDeltaOffset=0}compress(){let e=0,t=0,n=this._getPrev(e),i=this._getCurr(t);for(;e<this._prevLen||t<this._currLen;){if(null===n){this._acceptCurr(i),i=this._getCurr(++t);continue}if(null===i){this._acceptPrev(n),n=this._getPrev(++e);continue}if(i.oldEnd<=n.newPosition){this._acceptCurr(i),i=this._getCurr(++t);continue}if(n.newEnd<=i.oldPosition){this._acceptPrev(n),n=this._getPrev(++e);continue}if(i.oldPosition<n.newPosition){const[e,t]=Dt._splitCurr(i,n.newPosition-i.oldPosition);this._acceptCurr(e),i=t;continue}if(n.newPosition<i.oldPosition){const[e,t]=Dt._splitPrev(n,i.oldPosition-n.newPosition);this._acceptPrev(e),n=t;continue}let r,s;if(i.oldEnd===n.newEnd)r=n,s=i,n=this._getPrev(++e),i=this._getCurr(++t);else if(i.oldEnd<n.newEnd){const[e,o]=Dt._splitPrev(n,i.oldLength);r=e,s=i,n=o,i=this._getCurr(++t)}else{const[t,o]=Dt._splitCurr(i,n.newLength);r=n,s=t,n=this._getPrev(++e),i=o}this._result[this._resultLen++]=new Rt(r.oldPosition,r.oldText,s.newPosition,s.newText),this._prevDeltaOffset+=r.newLength-r.oldLength,this._currDeltaOffset+=s.newLength-s.oldLength}const r=Dt._merge(this._result);return Dt._removeNoOps(r)}_acceptCurr(e){this._result[this._resultLen++]=Dt._rebaseCurr(this._prevDeltaOffset,e),this._currDeltaOffset+=e.newLength-e.oldLength}_getCurr(e){return e<this._currLen?this._currEdits[e]:null}_acceptPrev(e){this._result[this._resultLen++]=Dt._rebasePrev(this._currDeltaOffset,e),this._prevDeltaOffset+=e.newLength-e.oldLength}_getPrev(e){return e<this._prevLen?this._prevEdits[e]:null}static _rebaseCurr(e,t){return new Rt(t.oldPosition-e,t.oldText,t.newPosition,t.newText)}static _rebasePrev(e,t){return new Rt(t.oldPosition,t.oldText,t.newPosition+e,t.newText)}static _splitPrev(e,t){const n=e.newText.substr(0,t),i=e.newText.substr(t);return[new Rt(e.oldPosition,e.oldText,e.newPosition,n),new Rt(e.oldEnd,"",e.newPosition+t,i)]}static _splitCurr(e,t){const n=e.oldText.substr(0,t),i=e.oldText.substr(t);return[new Rt(e.oldPosition,n,e.newPosition,e.newText),new Rt(e.oldPosition+t,i,e.newEnd,"")]}static _merge(e){if(0===e.length)return e;const t=[];let n=0,i=e[0];for(let r=1;r<e.length;r++){const s=e[r];i.oldEnd===s.oldPosition?i=new Rt(i.oldPosition,i.oldText+s.oldText,i.newPosition,i.newText+s.newText):(t[n++]=i,i=s)}return t[n++]=i,t}static _removeNoOps(e){if(0===e.length)return e;const t=[];let n=0;for(let i=0;i<e.length;i++){const r=e[i];r.oldText!==r.newText&&(t[n++]=r)}return t}}var At=n(9403);function Mt(e){return e.toString()}class Ot{static create(e,t){const n=e.getAlternativeVersionId(),i=Bt(e);return new Ot(n,n,i,i,t,t,[])}constructor(e,t,n,i,r,s,o){this.beforeVersionId=e,this.afterVersionId=t,this.beforeEOL=n,this.afterEOL=i,this.beforeCursorState=r,this.afterCursorState=s,this.changes=o}append(e,t,n,i,r){var s,o;t.length>0&&(this.changes=(s=this.changes,o=t,null===s||0===s.length?o:new Dt(s,o).compress())),this.afterEOL=n,this.afterVersionId=i,this.afterCursorState=r}static _writeSelectionsSize(e){return 4+16*(e?e.length:0)}static _writeSelections(e,t,n){if(E.Sw(e,t?t.length:0,n),n+=4,t)for(const i of t)E.Sw(e,i.selectionStartLineNumber,n),n+=4,E.Sw(e,i.selectionStartColumn,n),n+=4,E.Sw(e,i.positionLineNumber,n),n+=4,E.Sw(e,i.positionColumn,n),n+=4;return n}static _readSelections(e,t,n){const i=E.bb(e,t);t+=4;for(let r=0;r<i;r++){const i=E.bb(e,t);t+=4;const r=E.bb(e,t);t+=4;const s=E.bb(e,t);t+=4;const o=E.bb(e,t);t+=4,n.push(new g.L(i,r,s,o))}return t}serialize(){let e=10+Ot._writeSelectionsSize(this.beforeCursorState)+Ot._writeSelectionsSize(this.afterCursorState)+4;for(const i of this.changes)e+=i.writeSize();const t=new Uint8Array(e);let n=0;E.Sw(t,this.beforeVersionId,n),n+=4,E.Sw(t,this.afterVersionId,n),n+=4,E.Gs(t,this.beforeEOL,n),n+=1,E.Gs(t,this.afterEOL,n),n+=1,n=Ot._writeSelections(t,this.beforeCursorState,n),n=Ot._writeSelections(t,this.afterCursorState,n),E.Sw(t,this.changes.length,n),n+=4;for(const i of this.changes)n=i.write(t,n);return t.buffer}static deserialize(e){const t=new Uint8Array(e);let n=0;const i=E.bb(t,n);n+=4;const r=E.bb(t,n);n+=4;const s=E.pJ(t,n);n+=1;const o=E.pJ(t,n);n+=1;const a=[];n=Ot._readSelections(t,n,a);const l=[];n=Ot._readSelections(t,n,l);const c=E.bb(t,n);n+=4;const h=[];for(let d=0;d<c;d++)n=Rt.read(t,n,h);return new Ot(i,r,s,o,a,l,h)}}class zt{get type(){return 0}get resource(){return h.r.isUri(this.model)?this.model:this.model.uri}constructor(e,t,n,i){this.label=e,this.code=t,this.model=n,this._data=Ot.create(n,i)}toString(){return(this._data instanceof Ot?this._data:Ot.deserialize(this._data)).changes.map((e=>e.toString())).join(", ")}matchesResource(e){return(h.r.isUri(this.model)?this.model:this.model.uri).toString()===e.toString()}setModel(e){this.model=e}canAppend(e){return this.model===e&&this._data instanceof Ot}append(e,t,n,i,r){this._data instanceof Ot&&this._data.append(e,t,n,i,r)}close(){this._data instanceof Ot&&(this._data=this._data.serialize())}open(){this._data instanceof Ot||(this._data=Ot.deserialize(this._data))}undo(){if(h.r.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof Ot&&(this._data=this._data.serialize());const e=Ot.deserialize(this._data);this.model._applyUndo(e.changes,e.beforeEOL,e.beforeVersionId,e.beforeCursorState)}redo(){if(h.r.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof Ot&&(this._data=this._data.serialize());const e=Ot.deserialize(this._data);this.model._applyRedo(e.changes,e.afterEOL,e.afterVersionId,e.afterCursorState)}heapSize(){return this._data instanceof Ot&&(this._data=this._data.serialize()),this._data.byteLength+168}}class Pt{get resources(){return this._editStackElementsArr.map((e=>e.resource))}constructor(e,t,n){this.label=e,this.code=t,this.type=1,this._isOpen=!0,this._editStackElementsArr=n.slice(0),this._editStackElementsMap=new Map;for(const i of this._editStackElementsArr){const e=Mt(i.resource);this._editStackElementsMap.set(e,i)}this._delegate=null}prepareUndoRedo(){if(this._delegate)return this._delegate.prepareUndoRedo(this)}matchesResource(e){const t=Mt(e);return this._editStackElementsMap.has(t)}setModel(e){const t=Mt(h.r.isUri(e)?e:e.uri);this._editStackElementsMap.has(t)&&this._editStackElementsMap.get(t).setModel(e)}canAppend(e){if(!this._isOpen)return!1;const t=Mt(e.uri);if(this._editStackElementsMap.has(t)){return this._editStackElementsMap.get(t).canAppend(e)}return!1}append(e,t,n,i,r){const s=Mt(e.uri);this._editStackElementsMap.get(s).append(e,t,n,i,r)}close(){this._isOpen=!1}open(){}undo(){this._isOpen=!1;for(const e of this._editStackElementsArr)e.undo()}redo(){for(const e of this._editStackElementsArr)e.redo()}heapSize(e){const t=Mt(e);if(this._editStackElementsMap.has(t)){return this._editStackElementsMap.get(t).heapSize()}return 0}split(){return this._editStackElementsArr}toString(){const e=[];for(const t of this._editStackElementsArr)e.push(`${(0,At.P8)(t.resource)}: ${t}`);return`{${e.join(", ")}}`}}function Bt(e){return"\n"===e.getEOL()?0:1}function Wt(e){return!!e&&(e instanceof zt||e instanceof Pt)}class Vt{constructor(e,t){this._model=e,this._undoRedoService=t}pushStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);Wt(e)&&e.close()}popStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);Wt(e)&&e.open()}clear(){this._undoRedoService.removeElements(this._model.uri)}_getOrCreateEditStackElement(e,t){const n=this._undoRedoService.getLastElement(this._model.uri);if(Wt(n)&&n.canAppend(this._model))return n;const i=new zt(Tt.kg("edit","Typing"),"undoredo.textBufferEdit",this._model,e);return this._undoRedoService.pushElement(i,t),i}pushEOL(e){const t=this._getOrCreateEditStackElement(null,void 0);this._model.setEOL(e),t.append(this._model,[],Bt(this._model),this._model.getAlternativeVersionId(),null)}pushEditOperation(e,t,n,i){const r=this._getOrCreateEditStackElement(e,i),s=this._model.applyEdits(t,!0),o=Vt._computeCursorState(n,s),a=s.map(((e,t)=>({index:t,textChange:e.textChange})));return a.sort(((e,t)=>e.textChange.oldPosition===t.textChange.oldPosition?e.index-t.index:e.textChange.oldPosition-t.textChange.oldPosition)),r.append(this._model,a.map((e=>e.textChange)),Bt(this._model),this._model.getAlternativeVersionId(),o),o}static _computeCursorState(e,t){try{return e?e(t):null}catch(n){return(0,l.dz)(n),null}}}var Ut,$t=n(6041);class qt extends r.jG{constructor(){super(...arguments),this._isDisposed=!1}dispose(){super.dispose(),this._isDisposed=!0}assertNotDisposed(){if(this._isDisposed)throw new Error("TextModelPart is disposed!")}}!function(e){e[e.Disabled=0]="Disabled",e[e.EnabledForActive=1]="EnabledForActive",e[e.Enabled=2]="Enabled"}(Ut||(Ut={}));class jt{constructor(e,t,n,i,r,s){if(this.visibleColumn=e,this.column=t,this.className=n,this.horizontalLine=i,this.forWrappedLinesAfterColumn=r,this.forWrappedLinesBeforeOrAtColumn=s,-1!==e===(-1!==t))throw new Error}}class Kt{constructor(e,t){this.top=e,this.endColumn=t}}class Ht extends qt{constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t}getLanguageConfiguration(e){return this.languageConfigurationService.getLanguageConfiguration(e)}_computeIndentLevel(e){return function(e,t){let n=0,i=0;const r=e.length;for(;i<r;){const r=e.charCodeAt(i);if(32===r)n++;else{if(9!==r)break;n=n-n%t+t}i++}return i===r?-1:n}(this.textModel.getLineContent(e+1),this.textModel.getOptions().tabSize)}getActiveIndentGuide(e,t,n){this.assertNotDisposed();const i=this.textModel.getLineCount();if(e<1||e>i)throw new l.D7("Illegal value for lineNumber");const r=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,s=Boolean(r&&r.offSide);let o=-2,a=-1,c=-2,h=-1;const d=e=>{if(-1!==o&&(-2===o||o>e-1)){o=-1,a=-1;for(let t=e-2;t>=0;t--){const e=this._computeIndentLevel(t);if(e>=0){o=t,a=e;break}}}if(-2===c){c=-1,h=-1;for(let t=e;t<i;t++){const e=this._computeIndentLevel(t);if(e>=0){c=t,h=e;break}}}};let u=-2,p=-1,m=-2,f=-1;const g=e=>{if(-2===u){u=-1,p=-1;for(let t=e-2;t>=0;t--){const e=this._computeIndentLevel(t);if(e>=0){u=t,p=e;break}}}if(-1!==m&&(-2===m||m<e-1)){m=-1,f=-1;for(let t=e;t<i;t++){const e=this._computeIndentLevel(t);if(e>=0){m=t,f=e;break}}}};let b=0,v=!0,y=0,w=!0,_=0,k=0;for(let l=0;v||w;l++){const r=e-l,o=e+l;l>1&&(r<1||r<t)&&(v=!1),l>1&&(o>i||o>n)&&(w=!1),l>5e4&&(v=!1,w=!1);let m=-1;if(v&&r>=1){const e=this._computeIndentLevel(r-1);e>=0?(c=r-1,h=e,m=Math.ceil(e/this.textModel.getOptions().indentSize)):(d(r),m=this._getIndentLevelForWhitespaceLine(s,a,h))}let C=-1;if(w&&o<=i){const e=this._computeIndentLevel(o-1);e>=0?(u=o-1,p=e,C=Math.ceil(e/this.textModel.getOptions().indentSize)):(g(o),C=this._getIndentLevelForWhitespaceLine(s,p,f))}if(0!==l){if(1===l){if(o<=i&&C>=0&&k+1===C){v=!1,b=o,y=o,_=C;continue}if(r>=1&&m>=0&&m-1===k){w=!1,b=r,y=r,_=m;continue}if(b=e,y=e,_=k,0===_)return{startLineNumber:b,endLineNumber:y,indent:_}}v&&(m>=_?b=r:v=!1),w&&(C>=_?y=o:w=!1)}else k=m}return{startLineNumber:b,endLineNumber:y,indent:_}}getLinesBracketGuides(e,t,n,i){const r=[];for(let c=e;c<=t;c++)r.push([]);const s=!0,o=this.textModel.bracketPairs.getBracketPairsInRangeWithMinIndentation(new f.Q(e,1,t,this.textModel.getLineMaxColumn(t))).toArray();let a;if(n&&o.length>0){const i=(e<=n.lineNumber&&n.lineNumber<=t?o:this.textModel.bracketPairs.getBracketPairsInRange(f.Q.fromPositions(n)).toArray()).filter((e=>f.Q.strictContainsPosition(e.range,n)));a=(0,$t.Uk)(i,(e=>s))?.range}const l=this.textModel.getOptions().bracketPairColorizationOptions.independentColorPoolPerBracketType,h=new Gt;for(const d of o){if(!d.closingBracketRange)continue;const n=a&&d.range.equalsRange(a);if(!n&&!i.includeInactive)continue;const s=h.getInlineClassName(d.nestingLevel,d.nestingLevelOfEqualBracketType,l)+(i.highlightActive&&n?" "+h.activeClassName:""),o=d.openingBracketRange.getStartPosition(),u=d.closingBracketRange.getStartPosition(),p=i.horizontalGuides===Ut.Enabled||i.horizontalGuides===Ut.EnabledForActive&&n;if(d.range.startLineNumber===d.range.endLineNumber){p&&r[d.range.startLineNumber-e].push(new jt(-1,d.openingBracketRange.getEndPosition().column,s,new Kt(!1,u.column),-1,-1));continue}const m=this.getVisibleColumnFromPosition(u),f=this.getVisibleColumnFromPosition(d.openingBracketRange.getStartPosition()),g=Math.min(f,m,d.minVisibleColumnIndentation+1);let b=!1;c.HG(this.textModel.getLineContent(d.closingBracketRange.startLineNumber))<d.closingBracketRange.startColumn-1&&(b=!0);const v=Math.max(o.lineNumber,e),y=Math.min(u.lineNumber,t),w=b?1:0;for(let t=v;t<y+w;t++)r[t-e].push(new jt(g,-1,s,null,t===o.lineNumber?o.column:-1,t===u.lineNumber?u.column:-1));p&&(o.lineNumber>=e&&f>g&&r[o.lineNumber-e].push(new jt(g,-1,s,new Kt(!1,o.column),-1,-1)),u.lineNumber<=t&&m>g&&r[u.lineNumber-e].push(new jt(g,-1,s,new Kt(!b,u.column),-1,-1)))}for(const c of r)c.sort(((e,t)=>e.visibleColumn-t.visibleColumn));return r}getVisibleColumnFromPosition(e){return u.visibleColumnFromColumn(this.textModel.getLineContent(e.lineNumber),e.column,this.textModel.getOptions().tabSize)+1}getLinesIndentGuides(e,t){this.assertNotDisposed();const n=this.textModel.getLineCount();if(e<1||e>n)throw new Error("Illegal value for startLineNumber");if(t<1||t>n)throw new Error("Illegal value for endLineNumber");const i=this.textModel.getOptions(),r=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,s=Boolean(r&&r.offSide),o=new Array(t-e+1);let a=-2,l=-1,c=-2,h=-1;for(let d=e;d<=t;d++){const t=d-e,r=this._computeIndentLevel(d-1);if(r>=0)a=d-1,l=r,o[t]=Math.ceil(r/i.indentSize);else{if(-2===a){a=-1,l=-1;for(let e=d-2;e>=0;e--){const t=this._computeIndentLevel(e);if(t>=0){a=e,l=t;break}}}if(-1!==c&&(-2===c||c<d-1)){c=-1,h=-1;for(let e=d;e<n;e++){const t=this._computeIndentLevel(e);if(t>=0){c=e,h=t;break}}}o[t]=this._getIndentLevelForWhitespaceLine(s,l,h)}}return o}_getIndentLevelForWhitespaceLine(e,t,n){const i=this.textModel.getOptions();return-1===t||-1===n?0:t<n?1+Math.floor(t/i.indentSize):t===n||e?Math.ceil(n/i.indentSize):1+Math.floor(n/i.indentSize)}}class Gt{constructor(){this.activeClassName="indent-active"}getInlineClassName(e,t,n){return this.getInlineClassNameOfLevel(n?t:e)}getInlineClassNameOfLevel(e){return"bracket-indent-guide lvl-"+e%30}}class Qt{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}}function Jt(e,t,n,i,r){let s;for(r.spacesDiff=0,r.looksLikeAlignment=!1,s=0;s<t&&s<i;s++){if(e.charCodeAt(s)!==n.charCodeAt(s))break}let o=0,a=0;for(let u=s;u<t;u++){32===e.charCodeAt(u)?o++:a++}let l=0,c=0;for(let u=s;u<i;u++){32===n.charCodeAt(u)?l++:c++}if(o>0&&a>0)return;if(l>0&&c>0)return;const h=Math.abs(a-c),d=Math.abs(o-l);if(0===h)return r.spacesDiff=d,void(d>0&&0<=l-1&&l-1<e.length&&l<n.length&&32!==n.charCodeAt(l)&&32===e.charCodeAt(l-1)&&44===e.charCodeAt(e.length-1)&&(r.looksLikeAlignment=!0));d%h!==0||(r.spacesDiff=d/h)}function Yt(e,t,n){const i=Math.min(e.getLineCount(),1e4);let r=0,s=0,o="",a=0;const l=[2,4,6,8,3,5,7],c=[0,0,0,0,0,0,0,0,0],h=new Qt;for(let p=1;p<=i;p++){const i=e.getLineLength(p),l=e.getLineContent(p),d=i<=65536;let u=!1,m=0,f=0,g=0;for(let t=0,n=i;t<n;t++){const n=d?l.charCodeAt(t):e.getLineCharCode(p,t);if(9===n)g++;else{if(32!==n){u=!0,m=t;break}f++}}if(!u)continue;if(g>0?r++:f>1&&s++,Jt(o,a,l,m,h),h.looksLikeAlignment&&(!n||t!==h.spacesDiff))continue;const b=h.spacesDiff;b<=8&&c[b]++,o=l,a=m}let d=n;r!==s&&(d=r<s);let u=t;if(d){let e=d?0:.1*i;l.forEach((t=>{const n=c[t];n>e&&(e=n,u=t)})),4===u&&c[4]>0&&c[2]>0&&c[2]>=c[4]/2&&(u=2)}return{insertSpaces:d,tabSize:u}}function Xt(e){return(1&e.metadata)>>>0}function Zt(e,t){e.metadata=254&e.metadata|t}function en(e){return(2&e.metadata)>>>1===1}function tn(e,t){e.metadata=253&e.metadata|(t?1:0)<<1}function nn(e){return(4&e.metadata)>>>2===1}function rn(e,t){e.metadata=251&e.metadata|(t?1:0)<<2}function sn(e){return(64&e.metadata)>>>6===1}function on(e,t){e.metadata=191&e.metadata|(t?1:0)<<6}function an(e,t){e.metadata=231&e.metadata|t<<3}function ln(e,t){e.metadata=223&e.metadata|(t?1:0)<<5}class cn{constructor(e,t,n){this.metadata=0,this.parent=this,this.left=this,this.right=this,Zt(this,1),this.start=t,this.end=n,this.delta=0,this.maxEnd=n,this.id=e,this.ownerId=0,this.options=null,rn(this,!1),on(this,!1),an(this,1),ln(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=null,tn(this,!1)}reset(e,t,n,i){this.start=t,this.end=n,this.maxEnd=n,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=i}setOptions(e){this.options=e;const t=this.options.className;rn(this,"squiggly-error"===t||"squiggly-warning"===t||"squiggly-info"===t),on(this,null!==this.options.glyphMarginClassName),an(this,this.options.stickiness),ln(this,this.options.collapseOnReplaceEdit)}setCachedOffsets(e,t,n){this.cachedVersionId!==n&&(this.range=null),this.cachedVersionId=n,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t}detach(){this.parent=null,this.left=null,this.right=null}}const hn=new cn(null,0,0);hn.parent=hn,hn.left=hn,hn.right=hn,Zt(hn,0);class dn{constructor(){this.root=hn,this.requestNormalizeDelta=!1}intervalSearch(e,t,n,i,r,s){return this.root===hn?[]:function(e,t,n,i,r,s,o){let a=e.root,l=0,c=0,h=0,d=0;const u=[];let p=0;for(;a!==hn;)if(en(a))tn(a.left,!1),tn(a.right,!1),a===a.parent.right&&(l-=a.parent.delta),a=a.parent;else{if(!en(a.left)){if(c=l+a.maxEnd,c<t){tn(a,!0);continue}if(a.left!==hn){a=a.left;continue}}if(h=l+a.start,h>n)tn(a,!0);else{if(d=l+a.end,d>=t){a.setCachedOffsets(h,d,s);let e=!0;i&&a.ownerId&&a.ownerId!==i&&(e=!1),r&&nn(a)&&(e=!1),o&&!sn(a)&&(e=!1),e&&(u[p++]=a)}tn(a,!0),a.right===hn||en(a.right)||(l+=a.delta,a=a.right)}}return tn(e.root,!1),u}(this,e,t,n,i,r,s)}search(e,t,n,i){return this.root===hn?[]:function(e,t,n,i,r){let s=e.root,o=0,a=0,l=0;const c=[];let h=0;for(;s!==hn;){if(en(s)){tn(s.left,!1),tn(s.right,!1),s===s.parent.right&&(o-=s.parent.delta),s=s.parent;continue}if(s.left!==hn&&!en(s.left)){s=s.left;continue}a=o+s.start,l=o+s.end,s.setCachedOffsets(a,l,i);let e=!0;t&&s.ownerId&&s.ownerId!==t&&(e=!1),n&&nn(s)&&(e=!1),r&&!sn(s)&&(e=!1),e&&(c[h++]=s),tn(s,!0),s.right===hn||en(s.right)||(o+=s.delta,s=s.right)}return tn(e.root,!1),c}(this,e,t,n,i)}collectNodesFromOwner(e){return function(e,t){let n=e.root;const i=[];let r=0;for(;n!==hn;)en(n)?(tn(n.left,!1),tn(n.right,!1),n=n.parent):n.left===hn||en(n.left)?(n.ownerId===t&&(i[r++]=n),tn(n,!0),n.right===hn||en(n.right)||(n=n.right)):n=n.left;return tn(e.root,!1),i}(this,e)}collectNodesPostOrder(){return function(e){let t=e.root;const n=[];let i=0;for(;t!==hn;)en(t)?(tn(t.left,!1),tn(t.right,!1),t=t.parent):t.left===hn||en(t.left)?t.right===hn||en(t.right)?(n[i++]=t,tn(t,!0)):t=t.right:t=t.left;return tn(e.root,!1),n}(this)}insert(e){mn(this,e),this._normalizeDeltaIfNecessary()}delete(e){fn(this,e),this._normalizeDeltaIfNecessary()}resolveNode(e,t){const n=e;let i=0;for(;e!==this.root;)e===e.parent.right&&(i+=e.parent.delta),e=e.parent;const r=n.start+i,s=n.end+i;n.setCachedOffsets(r,s,t)}acceptReplace(e,t,n,i){const r=function(e,t,n){let i=e.root,r=0,s=0,o=0,a=0;const l=[];let c=0;for(;i!==hn;)if(en(i))tn(i.left,!1),tn(i.right,!1),i===i.parent.right&&(r-=i.parent.delta),i=i.parent;else{if(!en(i.left)){if(s=r+i.maxEnd,s<t){tn(i,!0);continue}if(i.left!==hn){i=i.left;continue}}o=r+i.start,o>n?tn(i,!0):(a=r+i.end,a>=t&&(i.setCachedOffsets(o,a,0),l[c++]=i),tn(i,!0),i.right===hn||en(i.right)||(r+=i.delta,i=i.right))}return tn(e.root,!1),l}(this,e,e+t);for(let s=0,o=r.length;s<o;s++){fn(this,r[s])}this._normalizeDeltaIfNecessary(),function(e,t,n,i){let r=e.root,s=0,o=0,a=0;const l=i-(n-t);for(;r!==hn;)if(en(r))tn(r.left,!1),tn(r.right,!1),r===r.parent.right&&(s-=r.parent.delta),wn(r),r=r.parent;else{if(!en(r.left)){if(o=s+r.maxEnd,o<t){tn(r,!0);continue}if(r.left!==hn){r=r.left;continue}}a=s+r.start,a>n?(r.start+=l,r.end+=l,r.delta+=l,(r.delta<-1073741824||r.delta>1073741824)&&(e.requestNormalizeDelta=!0),tn(r,!0)):(tn(r,!0),r.right===hn||en(r.right)||(s+=r.delta,r=r.right))}tn(e.root,!1)}(this,e,e+t,n),this._normalizeDeltaIfNecessary();for(let s=0,o=r.length;s<o;s++){const o=r[s];o.start=o.cachedAbsoluteStart,o.end=o.cachedAbsoluteEnd,pn(o,e,e+t,n,i),o.maxEnd=o.end,mn(this,o)}this._normalizeDeltaIfNecessary()}_normalizeDeltaIfNecessary(){this.requestNormalizeDelta&&(this.requestNormalizeDelta=!1,function(e){let t=e.root,n=0;for(;t!==hn;)t.left===hn||en(t.left)?t.right===hn||en(t.right)?(t.start=n+t.start,t.end=n+t.end,t.delta=0,wn(t),tn(t,!0),tn(t.left,!1),tn(t.right,!1),t===t.parent.right&&(n-=t.parent.delta),t=t.parent):(n+=t.delta,t=t.right):t=t.left;tn(e.root,!1)}(this))}}function un(e,t,n,i){return e<n||!(e>n)&&(1!==i&&(2===i||t))}function pn(e,t,n,i,r){const s=function(e){return(24&e.metadata)>>>3}(e),o=0===s||2===s,a=1===s||2===s,l=n-t,c=i,h=Math.min(l,c),d=e.start;let u=!1;const p=e.end;let m=!1;t<=d&&p<=n&&function(e){return(32&e.metadata)>>>5===1}(e)&&(e.start=t,u=!0,e.end=t,m=!0);{const e=r?1:l>0?2:0;!u&&un(d,o,t,e)&&(u=!0),!m&&un(p,a,t,e)&&(m=!0)}if(h>0&&!r){const e=l>c?2:0;!u&&un(d,o,t+h,e)&&(u=!0),!m&&un(p,a,t+h,e)&&(m=!0)}{const i=r?1:0;!u&&un(d,o,n,i)&&(e.start=t+c,u=!0),!m&&un(p,a,n,i)&&(e.end=t+c,m=!0)}const f=c-l;u||(e.start=Math.max(0,d+f)),m||(e.end=Math.max(0,p+f)),e.start>e.end&&(e.end=e.start)}function mn(e,t){if(e.root===hn)return t.parent=hn,t.left=hn,t.right=hn,Zt(t,0),e.root=t,e.root;!function(e,t){let n=0,i=e.root;const r=t.start,s=t.end;for(;;){if(kn(r,s,i.start+n,i.end+n)<0){if(i.left===hn){t.start-=n,t.end-=n,t.maxEnd-=n,i.left=t;break}i=i.left}else{if(i.right===hn){t.start-=n+i.delta,t.end-=n+i.delta,t.maxEnd-=n+i.delta,i.right=t;break}n+=i.delta,i=i.right}}t.parent=i,t.left=hn,t.right=hn,Zt(t,1)}(e,t),_n(t.parent);let n=t;for(;n!==e.root&&1===Xt(n.parent);)if(n.parent===n.parent.parent.left){const t=n.parent.parent.right;1===Xt(t)?(Zt(n.parent,0),Zt(t,0),Zt(n.parent.parent,1),n=n.parent.parent):(n===n.parent.right&&(n=n.parent,bn(e,n)),Zt(n.parent,0),Zt(n.parent.parent,1),vn(e,n.parent.parent))}else{const t=n.parent.parent.left;1===Xt(t)?(Zt(n.parent,0),Zt(t,0),Zt(n.parent.parent,1),n=n.parent.parent):(n===n.parent.left&&(n=n.parent,vn(e,n)),Zt(n.parent,0),Zt(n.parent.parent,1),bn(e,n.parent.parent))}return Zt(e.root,0),t}function fn(e,t){let n,i;if(t.left===hn?(n=t.right,i=t,n.delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta):t.right===hn?(n=t.left,i=t):(i=function(e){for(;e.left!==hn;)e=e.left;return e}(t.right),n=i.right,n.start+=i.delta,n.end+=i.delta,n.delta+=i.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),i.start+=t.delta,i.end+=t.delta,i.delta=t.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0)),i===e.root)return e.root=n,Zt(n,0),t.detach(),gn(),wn(n),void(e.root.parent=hn);const r=1===Xt(i);if(i===i.parent.left?i.parent.left=n:i.parent.right=n,i===t?n.parent=i.parent:(i.parent===t?n.parent=i:n.parent=i.parent,i.left=t.left,i.right=t.right,i.parent=t.parent,Zt(i,Xt(t)),t===e.root?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left!==hn&&(i.left.parent=i),i.right!==hn&&(i.right.parent=i)),t.detach(),r)return _n(n.parent),i!==t&&(_n(i),_n(i.parent)),void gn();let s;for(_n(n),_n(n.parent),i!==t&&(_n(i),_n(i.parent));n!==e.root&&0===Xt(n);)n===n.parent.left?(s=n.parent.right,1===Xt(s)&&(Zt(s,0),Zt(n.parent,1),bn(e,n.parent),s=n.parent.right),0===Xt(s.left)&&0===Xt(s.right)?(Zt(s,1),n=n.parent):(0===Xt(s.right)&&(Zt(s.left,0),Zt(s,1),vn(e,s),s=n.parent.right),Zt(s,Xt(n.parent)),Zt(n.parent,0),Zt(s.right,0),bn(e,n.parent),n=e.root)):(s=n.parent.left,1===Xt(s)&&(Zt(s,0),Zt(n.parent,1),vn(e,n.parent),s=n.parent.left),0===Xt(s.left)&&0===Xt(s.right)?(Zt(s,1),n=n.parent):(0===Xt(s.left)&&(Zt(s.right,0),Zt(s,1),bn(e,s),s=n.parent.left),Zt(s,Xt(n.parent)),Zt(n.parent,0),Zt(s.left,0),vn(e,n.parent),n=e.root));Zt(n,0),gn()}function gn(){hn.parent=hn,hn.delta=0,hn.start=0,hn.end=0}function bn(e,t){const n=t.right;n.delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta,t.right=n.left,n.left!==hn&&(n.left.parent=t),n.parent=t.parent,t.parent===hn?e.root=n:t===t.parent.left?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n,wn(t),wn(n)}function vn(e,t){const n=t.left;t.delta-=n.delta,(t.delta<-1073741824||t.delta>1073741824)&&(e.requestNormalizeDelta=!0),t.start-=n.delta,t.end-=n.delta,t.left=n.right,n.right!==hn&&(n.right.parent=t),n.parent=t.parent,t.parent===hn?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n,wn(t),wn(n)}function yn(e){let t=e.end;if(e.left!==hn){const n=e.left.maxEnd;n>t&&(t=n)}if(e.right!==hn){const n=e.right.maxEnd+e.delta;n>t&&(t=n)}return t}function wn(e){e.maxEnd=yn(e)}function _n(e){for(;e!==hn;){const t=yn(e);if(e.maxEnd===t)return;e.maxEnd=t,e=e.parent}}function kn(e,t,n,i){return e===n?t-i:e-n}class Cn{constructor(e,t){this.piece=e,this.color=t,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}next(){if(this.right!==Sn)return xn(this.right);let e=this;for(;e.parent!==Sn&&e.parent.left!==e;)e=e.parent;return e.parent===Sn?Sn:e.parent}prev(){if(this.left!==Sn)return En(this.left);let e=this;for(;e.parent!==Sn&&e.parent.right!==e;)e=e.parent;return e.parent===Sn?Sn:e.parent}detach(){this.parent=null,this.left=null,this.right=null}}const Sn=new Cn(null,0);function xn(e){for(;e.left!==Sn;)e=e.left;return e}function En(e){for(;e.right!==Sn;)e=e.right;return e}function Fn(e){return e===Sn?0:e.size_left+e.piece.length+Fn(e.right)}function Ln(e){return e===Sn?0:e.lf_left+e.piece.lineFeedCnt+Ln(e.right)}function In(){Sn.parent=Sn}function Tn(e,t){const n=t.right;n.size_left+=t.size_left+(t.piece?t.piece.length:0),n.lf_left+=t.lf_left+(t.piece?t.piece.lineFeedCnt:0),t.right=n.left,n.left!==Sn&&(n.left.parent=t),n.parent=t.parent,t.parent===Sn?e.root=n:t.parent.left===t?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n}function Nn(e,t){const n=t.left;t.left=n.right,n.right!==Sn&&(n.right.parent=t),n.parent=t.parent,t.size_left-=n.size_left+(n.piece?n.piece.length:0),t.lf_left-=n.lf_left+(n.piece?n.piece.lineFeedCnt:0),t.parent===Sn?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n}function Rn(e,t){let n,i;if(t.left===Sn?(i=t,n=i.right):t.right===Sn?(i=t,n=i.left):(i=xn(t.right),n=i.right),i===e.root)return e.root=n,n.color=0,t.detach(),In(),void(e.root.parent=Sn);const r=1===i.color;if(i===i.parent.left?i.parent.left=n:i.parent.right=n,i===t?(n.parent=i.parent,Mn(e,n)):(i.parent===t?n.parent=i:n.parent=i.parent,Mn(e,n),i.left=t.left,i.right=t.right,i.parent=t.parent,i.color=t.color,t===e.root?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left!==Sn&&(i.left.parent=i),i.right!==Sn&&(i.right.parent=i),i.size_left=t.size_left,i.lf_left=t.lf_left,Mn(e,i)),t.detach(),n.parent.left===n){const t=Fn(n),i=Ln(n);if(t!==n.parent.size_left||i!==n.parent.lf_left){const r=t-n.parent.size_left,s=i-n.parent.lf_left;n.parent.size_left=t,n.parent.lf_left=i,An(e,n.parent,r,s)}}if(Mn(e,n.parent),r)return void In();let s;for(;n!==e.root&&0===n.color;)n===n.parent.left?(s=n.parent.right,1===s.color&&(s.color=0,n.parent.color=1,Tn(e,n.parent),s=n.parent.right),0===s.left.color&&0===s.right.color?(s.color=1,n=n.parent):(0===s.right.color&&(s.left.color=0,s.color=1,Nn(e,s),s=n.parent.right),s.color=n.parent.color,n.parent.color=0,s.right.color=0,Tn(e,n.parent),n=e.root)):(s=n.parent.left,1===s.color&&(s.color=0,n.parent.color=1,Nn(e,n.parent),s=n.parent.left),0===s.left.color&&0===s.right.color?(s.color=1,n=n.parent):(0===s.left.color&&(s.right.color=0,s.color=1,Tn(e,s),s=n.parent.left),s.color=n.parent.color,n.parent.color=0,s.left.color=0,Nn(e,n.parent),n=e.root));n.color=0,In()}function Dn(e,t){for(Mn(e,t);t!==e.root&&1===t.parent.color;)if(t.parent===t.parent.parent.left){const n=t.parent.parent.right;1===n.color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.right&&Tn(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,Nn(e,t.parent.parent))}else{const n=t.parent.parent.left;1===n.color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.left&&Nn(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,Tn(e,t.parent.parent))}e.root.color=0}function An(e,t,n,i){for(;t!==e.root&&t!==Sn;)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=i),t=t.parent}function Mn(e,t){let n=0,i=0;if(t!==e.root){for(;t!==e.root&&t===t.parent.right;)t=t.parent;if(t!==e.root)for(n=Fn((t=t.parent).left)-t.size_left,i=Ln(t.left)-t.lf_left,t.size_left+=n,t.lf_left+=i;t!==e.root&&(0!==n||0!==i);)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=i),t=t.parent}}Sn.parent=Sn,Sn.left=Sn,Sn.right=Sn,Sn.color=0;var On=n(7729);const zn=65535;function Pn(e){let t;return t=e[e.length-1]<65536?new Uint16Array(e.length):new Uint32Array(e.length),t.set(e,0),t}class Bn{constructor(e,t,n,i,r){this.lineStarts=e,this.cr=t,this.lf=n,this.crlf=i,this.isBasicASCII=r}}function Wn(e,t=!0){const n=[0];let i=1;for(let r=0,s=e.length;r<s;r++){const t=e.charCodeAt(r);13===t?r+1<s&&10===e.charCodeAt(r+1)?(n[i++]=r+2,r++):n[i++]=r+1:10===t&&(n[i++]=r+1)}return t?Pn(n):n}class Vn{constructor(e,t,n,i,r){this.bufferIndex=e,this.start=t,this.end=n,this.lineFeedCnt=i,this.length=r}}class Un{constructor(e,t){this.buffer=e,this.lineStarts=t}}class $n{constructor(e,t){this._pieces=[],this._tree=e,this._BOM=t,this._index=0,e.root!==Sn&&e.iterate(e.root,(e=>(e!==Sn&&this._pieces.push(e.piece),!0)))}read(){return 0===this._pieces.length?0===this._index?(this._index++,this._BOM):null:this._index>this._pieces.length-1?null:0===this._index?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])}}class qn{constructor(e){this._limit=e,this._cache=[]}get(e){for(let t=this._cache.length-1;t>=0;t--){const n=this._cache[t];if(n.nodeStartOffset<=e&&n.nodeStartOffset+n.node.piece.length>=e)return n}return null}get2(e){for(let t=this._cache.length-1;t>=0;t--){const n=this._cache[t];if(n.nodeStartLineNumber&&n.nodeStartLineNumber<e&&n.nodeStartLineNumber+n.node.piece.lineFeedCnt>=e)return n}return null}set(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)}validate(e){let t=!1;const n=this._cache;for(let i=0;i<n.length;i++){const r=n[i];(null===r.node.parent||r.nodeStartOffset>=e)&&(n[i]=null,t=!0)}if(t){const e=[];for(const t of n)null!==t&&e.push(t);this._cache=e}}}class jn{constructor(e,t,n){this.create(e,t,n)}create(e,t,n){this._buffers=[new Un("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=Sn,this._lineCnt=1,this._length=0,this._EOL=t,this._EOLLength=t.length,this._EOLNormalized=n;let i=null;for(let r=0,s=e.length;r<s;r++)if(e[r].buffer.length>0){e[r].lineStarts||(e[r].lineStarts=Wn(e[r].buffer));const t=new Vn(r+1,{line:0,column:0},{line:e[r].lineStarts.length-1,column:e[r].buffer.length-e[r].lineStarts[e[r].lineStarts.length-1]},e[r].lineStarts.length-1,e[r].buffer.length);this._buffers.push(e[r]),i=this.rbInsertRight(i,t)}this._searchCache=new qn(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()}normalizeEOL(e){const t=zn,n=t-Math.floor(21845),i=2*n;let r="",s=0;const o=[];if(this.iterate(this.root,(t=>{const a=this.getNodeContent(t),l=a.length;if(s<=n||s+l<i)return r+=a,s+=l,!0;const c=r.replace(/\r\n|\r|\n/g,e);return o.push(new Un(c,Wn(c))),r=a,s=l,!0})),s>0){const t=r.replace(/\r\n|\r|\n/g,e);o.push(new Un(t,Wn(t)))}this.create(o,e,!0)}getEOL(){return this._EOL}setEOL(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)}createSnapshot(e){return new $n(this,e)}getOffsetAt(e,t){let n=0,i=this.root;for(;i!==Sn;)if(i.left!==Sn&&i.lf_left+1>=e)i=i.left;else{if(i.lf_left+i.piece.lineFeedCnt+1>=e){n+=i.size_left;return n+(this.getAccumulatedValue(i,e-i.lf_left-2)+t-1)}e-=i.lf_left+i.piece.lineFeedCnt,n+=i.size_left+i.piece.length,i=i.right}return n}getPositionAt(e){e=Math.floor(e),e=Math.max(0,e);let t=this.root,n=0;const i=e;for(;t!==Sn;)if(0!==t.size_left&&t.size_left>=e)t=t.left;else{if(t.size_left+t.piece.length>=e){const r=this.getIndexOf(t,e-t.size_left);if(n+=t.lf_left+r.index,0===r.index){const e=i-this.getOffsetAt(n+1,1);return new m.y(n+1,e+1)}return new m.y(n+1,r.remainder+1)}if(e-=t.size_left+t.piece.length,n+=t.lf_left+t.piece.lineFeedCnt,t.right===Sn){const t=i-e-this.getOffsetAt(n+1,1);return new m.y(n+1,t+1)}t=t.right}return new m.y(1,1)}getValueInRange(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";const n=this.nodeAt2(e.startLineNumber,e.startColumn),i=this.nodeAt2(e.endLineNumber,e.endColumn),r=this.getValueInRange2(n,i);return t?t===this._EOL&&this._EOLNormalized&&t===this.getEOL()&&this._EOLNormalized?r:r.replace(/\r\n|\r|\n/g,t):r}getValueInRange2(e,t){if(e.node===t.node){const n=e.node,i=this._buffers[n.piece.bufferIndex].buffer,r=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return i.substring(r+e.remainder,r+t.remainder)}let n=e.node;const i=this._buffers[n.piece.bufferIndex].buffer,r=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);let s=i.substring(r+e.remainder,r+n.piece.length);for(n=n.next();n!==Sn;){const e=this._buffers[n.piece.bufferIndex].buffer,i=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);if(n===t.node){s+=e.substring(i,i+t.remainder);break}s+=e.substr(i,n.piece.length),n=n.next()}return s}getLinesContent(){const e=[];let t=0,n="",i=!1;return this.iterate(this.root,(r=>{if(r===Sn)return!0;const s=r.piece;let o=s.length;if(0===o)return!0;const a=this._buffers[s.bufferIndex].buffer,l=this._buffers[s.bufferIndex].lineStarts,c=s.start.line,h=s.end.line;let d=l[c]+s.start.column;if(i&&(10===a.charCodeAt(d)&&(d++,o--),e[t++]=n,n="",i=!1,0===o))return!0;if(c===h)return this._EOLNormalized||13!==a.charCodeAt(d+o-1)?n+=a.substr(d,o):(i=!0,n+=a.substr(d,o-1)),!0;n+=this._EOLNormalized?a.substring(d,Math.max(d,l[c+1]-this._EOLLength)):a.substring(d,l[c+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=n;for(let i=c+1;i<h;i++)n=this._EOLNormalized?a.substring(l[i],l[i+1]-this._EOLLength):a.substring(l[i],l[i+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=n;return this._EOLNormalized||13!==a.charCodeAt(l[h]+s.end.column-1)?n=a.substr(l[h],s.end.column):(i=!0,0===s.end.column?t--:n=a.substr(l[h],s.end.column-1)),!0})),i&&(e[t++]=n,n=""),e[t++]=n,e}getLength(){return this._length}getLineCount(){return this._lineCnt}getLineContent(e){return this._lastVisitedLine.lineNumber===e||(this._lastVisitedLine.lineNumber=e,e===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(e):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(e,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(e).replace(/(\r\n|\r|\n)$/,"")),this._lastVisitedLine.value}_getCharCode(e){if(e.remainder===e.node.piece.length){const t=e.node.next();if(!t)return 0;const n=this._buffers[t.piece.bufferIndex],i=this.offsetInBuffer(t.piece.bufferIndex,t.piece.start);return n.buffer.charCodeAt(i)}{const t=this._buffers[e.node.piece.bufferIndex],n=this.offsetInBuffer(e.node.piece.bufferIndex,e.node.piece.start)+e.remainder;return t.buffer.charCodeAt(n)}}getLineCharCode(e,t){const n=this.nodeAt2(e,t+1);return this._getCharCode(n)}getLineLength(e){if(e===this.getLineCount()){const t=this.getOffsetAt(e,1);return this.getLength()-t}return this.getOffsetAt(e+1,1)-this.getOffsetAt(e,1)-this._EOLLength}findMatchesInNode(e,t,n,i,r,s,o,a,l,c,h){const d=this._buffers[e.piece.bufferIndex],u=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start),p=this.offsetInBuffer(e.piece.bufferIndex,r),m=this.offsetInBuffer(e.piece.bufferIndex,s);let g;const b={line:0,column:0};let v,y;t._wordSeparators?(v=d.buffer.substring(p,m),y=e=>e+p,t.reset(0)):(v=d.buffer,y=e=>e,t.reset(p));do{if(g=t.next(v),g){if(y(g.index)>=m)return c;this.positionInBuffer(e,y(g.index)-u,b);const t=this.getLineFeedCnt(e.piece.bufferIndex,r,b),s=b.line===r.line?b.column-r.column+i:b.column+1,o=s+g[0].length;if(h[c++]=(0,On.dr)(new f.Q(n+t,s,n+t,o),g,a),y(g.index)+g[0].length>=m)return c;if(c>=l)return c}}while(g);return c}findMatchesLineByLine(e,t,n,i){const r=[];let s=0;const o=new On.W5(t.wordSeparators,t.regex);let a=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===a)return[];const l=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===l)return[];let c=this.positionInBuffer(a.node,a.remainder);const h=this.positionInBuffer(l.node,l.remainder);if(a.node===l.node)return this.findMatchesInNode(a.node,o,e.startLineNumber,e.startColumn,c,h,t,n,i,s,r),r;let d=e.startLineNumber,u=a.node;for(;u!==l.node;){const l=this.getLineFeedCnt(u.piece.bufferIndex,c,u.piece.end);if(l>=1){const a=this._buffers[u.piece.bufferIndex].lineStarts,h=this.offsetInBuffer(u.piece.bufferIndex,u.piece.start),p=a[c.line+l],m=d===e.startLineNumber?e.startColumn:1;if(s=this.findMatchesInNode(u,o,d,m,c,this.positionInBuffer(u,p-h),t,n,i,s,r),s>=i)return r;d+=l}const h=d===e.startLineNumber?e.startColumn-1:0;if(d===e.endLineNumber){const a=this.getLineContent(d).substring(h,e.endColumn-1);return s=this._findMatchesInLine(t,o,a,e.endLineNumber,h,s,r,n,i),r}if(s=this._findMatchesInLine(t,o,this.getLineContent(d).substr(h),d,h,s,r,n,i),s>=i)return r;d++,a=this.nodeAt2(d,1),u=a.node,c=this.positionInBuffer(a.node,a.remainder)}if(d===e.endLineNumber){const a=d===e.startLineNumber?e.startColumn-1:0,l=this.getLineContent(d).substring(a,e.endColumn-1);return s=this._findMatchesInLine(t,o,l,e.endLineNumber,a,s,r,n,i),r}const p=d===e.startLineNumber?e.startColumn:1;return s=this.findMatchesInNode(l.node,o,d,p,c,h,t,n,i,s,r),r}_findMatchesInLine(e,t,n,i,r,s,o,a,l){const c=e.wordSeparators;if(!a&&e.simpleSearch){const t=e.simpleSearch,a=t.length,h=n.length;let d=-a;for(;-1!==(d=n.indexOf(t,d+a));)if((!c||(0,On.wC)(c,n,h,d,a))&&(o[s++]=new fe.Dg(new f.Q(i,d+1+r,i,d+1+a+r),null),s>=l))return s;return s}let h;t.reset(0);do{if(h=t.next(n),h&&(o[s++]=(0,On.dr)(new f.Q(i,h.index+1+r,i,h.index+1+h[0].length+r),h,a),s>=l))return s}while(h);return s}insert(e,t,n=!1){if(this._EOLNormalized=this._EOLNormalized&&n,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==Sn){const{node:n,remainder:i,nodeStartOffset:r}=this.nodeAt(e),s=n.piece,o=s.bufferIndex,a=this.positionInBuffer(n,i);if(0===n.piece.bufferIndex&&s.end.line===this._lastChangeBufferPos.line&&s.end.column===this._lastChangeBufferPos.column&&r+s.length===e&&t.length<zn)return this.appendToNode(n,t),void this.computeBufferMetadata();if(r===e)this.insertContentToNodeLeft(t,n),this._searchCache.validate(e);else if(r+n.piece.length>e){const e=[];let r=new Vn(s.bufferIndex,a,s.end,this.getLineFeedCnt(s.bufferIndex,a,s.end),this.offsetInBuffer(o,s.end)-this.offsetInBuffer(o,a));if(this.shouldCheckCRLF()&&this.endWithCR(t)){if(10===this.nodeCharCodeAt(n,i)){const e={line:r.start.line+1,column:0};r=new Vn(r.bufferIndex,e,r.end,this.getLineFeedCnt(r.bufferIndex,e,r.end),r.length-1),t+="\n"}}if(this.shouldCheckCRLF()&&this.startWithLF(t)){if(13===this.nodeCharCodeAt(n,i-1)){const r=this.positionInBuffer(n,i-1);this.deleteNodeTail(n,r),t="\r"+t,0===n.piece.length&&e.push(n)}else this.deleteNodeTail(n,a)}else this.deleteNodeTail(n,a);const l=this.createNewPieces(t);r.length>0&&this.rbInsertRight(n,r);let c=n;for(let t=0;t<l.length;t++)c=this.rbInsertRight(c,l[t]);this.deleteNodes(e)}else this.insertContentToNodeRight(t,n)}else{const e=this.createNewPieces(t);let n=this.rbInsertLeft(null,e[0]);for(let t=1;t<e.length;t++)n=this.rbInsertRight(n,e[t])}this.computeBufferMetadata()}delete(e,t){if(this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",t<=0||this.root===Sn)return;const n=this.nodeAt(e),i=this.nodeAt(e+t),r=n.node,s=i.node;if(r===s){const s=this.positionInBuffer(r,n.remainder),o=this.positionInBuffer(r,i.remainder);if(n.nodeStartOffset===e){if(t===r.piece.length){const e=r.next();return Rn(this,r),this.validateCRLFWithPrevNode(e),void this.computeBufferMetadata()}return this.deleteNodeHead(r,o),this._searchCache.validate(e),this.validateCRLFWithPrevNode(r),void this.computeBufferMetadata()}return n.nodeStartOffset+r.piece.length===e+t?(this.deleteNodeTail(r,s),this.validateCRLFWithNextNode(r),void this.computeBufferMetadata()):(this.shrinkNode(r,s,o),void this.computeBufferMetadata())}const o=[],a=this.positionInBuffer(r,n.remainder);this.deleteNodeTail(r,a),this._searchCache.validate(e),0===r.piece.length&&o.push(r);const l=this.positionInBuffer(s,i.remainder);this.deleteNodeHead(s,l),0===s.piece.length&&o.push(s);for(let h=r.next();h!==Sn&&h!==s;h=h.next())o.push(h);const c=0===r.piece.length?r.prev():r;this.deleteNodes(o),this.validateCRLFWithNextNode(c),this.computeBufferMetadata()}insertContentToNodeLeft(e,t){const n=[];if(this.shouldCheckCRLF()&&this.endWithCR(e)&&this.startWithLF(t)){const i=t.piece,r={line:i.start.line+1,column:0},s=new Vn(i.bufferIndex,r,i.end,this.getLineFeedCnt(i.bufferIndex,r,i.end),i.length-1);t.piece=s,e+="\n",An(this,t,-1,-1),0===t.piece.length&&n.push(t)}const i=this.createNewPieces(e);let r=this.rbInsertLeft(t,i[i.length-1]);for(let s=i.length-2;s>=0;s--)r=this.rbInsertLeft(r,i[s]);this.validateCRLFWithPrevNode(r),this.deleteNodes(n)}insertContentToNodeRight(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+="\n");const n=this.createNewPieces(e),i=this.rbInsertRight(t,n[0]);let r=i;for(let s=1;s<n.length;s++)r=this.rbInsertRight(r,n[s]);this.validateCRLFWithPrevNode(i)}positionInBuffer(e,t,n){const i=e.piece,r=e.piece.bufferIndex,s=this._buffers[r].lineStarts,o=s[i.start.line]+i.start.column+t;let a=i.start.line,l=i.end.line,c=0,h=0,d=0;for(;a<=l&&(c=a+(l-a)/2|0,d=s[c],c!==l);)if(h=s[c+1],o<d)l=c-1;else{if(!(o>=h))break;a=c+1}return n?(n.line=c,n.column=o-d,null):{line:c,column:o-d}}getLineFeedCnt(e,t,n){if(0===n.column)return n.line-t.line;const i=this._buffers[e].lineStarts;if(n.line===i.length-1)return n.line-t.line;const r=i[n.line+1],s=i[n.line]+n.column;if(r>s+1)return n.line-t.line;const o=s-1;return 13===this._buffers[e].buffer.charCodeAt(o)?n.line-t.line+1:n.line-t.line}offsetInBuffer(e,t){return this._buffers[e].lineStarts[t.line]+t.column}deleteNodes(e){for(let t=0;t<e.length;t++)Rn(this,e[t])}createNewPieces(e){if(e.length>zn){const t=[];for(;e.length>zn;){const n=e.charCodeAt(65534);let i;13===n||n>=55296&&n<=56319?(i=e.substring(0,65534),e=e.substring(65534)):(i=e.substring(0,zn),e=e.substring(zn));const r=Wn(i);t.push(new Vn(this._buffers.length,{line:0,column:0},{line:r.length-1,column:i.length-r[r.length-1]},r.length-1,i.length)),this._buffers.push(new Un(i,r))}const n=Wn(e);return t.push(new Vn(this._buffers.length,{line:0,column:0},{line:n.length-1,column:e.length-n[n.length-1]},n.length-1,e.length)),this._buffers.push(new Un(e,n)),t}let t=this._buffers[0].buffer.length;const n=Wn(e,!1);let i=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===t&&0!==t&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},i=this._lastChangeBufferPos;for(let e=0;e<n.length;e++)n[e]+=t+1;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(n.slice(1)),this._buffers[0].buffer+="_"+e,t+=1}else{if(0!==t)for(let e=0;e<n.length;e++)n[e]+=t;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(n.slice(1)),this._buffers[0].buffer+=e}const r=this._buffers[0].buffer.length,s=this._buffers[0].lineStarts.length-1,o={line:s,column:r-this._buffers[0].lineStarts[s]},a=new Vn(0,i,o,this.getLineFeedCnt(0,i,o),r-t);return this._lastChangeBufferPos=o,[a]}getLineRawContent(e,t=0){let n=this.root,i="";const r=this._searchCache.get2(e);if(r){n=r.node;const s=this.getAccumulatedValue(n,e-r.nodeStartLineNumber-1),o=this._buffers[n.piece.bufferIndex].buffer,a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);if(r.nodeStartLineNumber+n.piece.lineFeedCnt!==e){const i=this.getAccumulatedValue(n,e-r.nodeStartLineNumber);return o.substring(a+s,a+i-t)}i=o.substring(a+s,a+n.piece.length)}else{let r=0;const s=e;for(;n!==Sn;)if(n.left!==Sn&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){const i=this.getAccumulatedValue(n,e-n.lf_left-2),o=this.getAccumulatedValue(n,e-n.lf_left-1),a=this._buffers[n.piece.bufferIndex].buffer,l=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return r+=n.size_left,this._searchCache.set({node:n,nodeStartOffset:r,nodeStartLineNumber:s-(e-1-n.lf_left)}),a.substring(l+i,l+o-t)}if(n.lf_left+n.piece.lineFeedCnt===e-1){const t=this.getAccumulatedValue(n,e-n.lf_left-2),r=this._buffers[n.piece.bufferIndex].buffer,s=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);i=r.substring(s+t,s+n.piece.length);break}e-=n.lf_left+n.piece.lineFeedCnt,r+=n.size_left+n.piece.length,n=n.right}}for(n=n.next();n!==Sn;){const e=this._buffers[n.piece.bufferIndex].buffer;if(n.piece.lineFeedCnt>0){const r=this.getAccumulatedValue(n,0),s=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return i+=e.substring(s,s+r-t),i}{const t=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);i+=e.substr(t,n.piece.length)}n=n.next()}return i}computeBufferMetadata(){let e=this.root,t=1,n=0;for(;e!==Sn;)t+=e.lf_left+e.piece.lineFeedCnt,n+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=n,this._searchCache.validate(this._length)}getIndexOf(e,t){const n=e.piece,i=this.positionInBuffer(e,t),r=i.line-n.start.line;if(this.offsetInBuffer(n.bufferIndex,n.end)-this.offsetInBuffer(n.bufferIndex,n.start)===t){const t=this.getLineFeedCnt(e.piece.bufferIndex,n.start,i);if(t!==r)return{index:t,remainder:0}}return{index:r,remainder:i.column}}getAccumulatedValue(e,t){if(t<0)return 0;const n=e.piece,i=this._buffers[n.bufferIndex].lineStarts,r=n.start.line+t+1;return r>n.end.line?i[n.end.line]+n.end.column-i[n.start.line]-n.start.column:i[r]-i[n.start.line]-n.start.column}deleteNodeTail(e,t){const n=e.piece,i=n.lineFeedCnt,r=this.offsetInBuffer(n.bufferIndex,n.end),s=t,o=this.offsetInBuffer(n.bufferIndex,s),a=this.getLineFeedCnt(n.bufferIndex,n.start,s),l=a-i,c=o-r,h=n.length+c;e.piece=new Vn(n.bufferIndex,n.start,s,a,h),An(this,e,c,l)}deleteNodeHead(e,t){const n=e.piece,i=n.lineFeedCnt,r=this.offsetInBuffer(n.bufferIndex,n.start),s=t,o=this.getLineFeedCnt(n.bufferIndex,s,n.end),a=o-i,l=r-this.offsetInBuffer(n.bufferIndex,s),c=n.length+l;e.piece=new Vn(n.bufferIndex,s,n.end,o,c),An(this,e,l,a)}shrinkNode(e,t,n){const i=e.piece,r=i.start,s=i.end,o=i.length,a=i.lineFeedCnt,l=t,c=this.getLineFeedCnt(i.bufferIndex,i.start,l),h=this.offsetInBuffer(i.bufferIndex,t)-this.offsetInBuffer(i.bufferIndex,r);e.piece=new Vn(i.bufferIndex,i.start,l,c,h),An(this,e,h-o,c-a);const d=new Vn(i.bufferIndex,n,s,this.getLineFeedCnt(i.bufferIndex,n,s),this.offsetInBuffer(i.bufferIndex,s)-this.offsetInBuffer(i.bufferIndex,n)),u=this.rbInsertRight(e,d);this.validateCRLFWithPrevNode(u)}appendToNode(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+="\n");const n=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),i=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;const r=Wn(t,!1);for(let d=0;d<r.length;d++)r[d]+=i;if(n){const e=this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-2];this._buffers[0].lineStarts.pop(),this._lastChangeBufferPos={line:this._lastChangeBufferPos.line-1,column:i-e}}this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(r.slice(1));const s=this._buffers[0].lineStarts.length-1,o={line:s,column:this._buffers[0].buffer.length-this._buffers[0].lineStarts[s]},a=e.piece.length+t.length,l=e.piece.lineFeedCnt,c=this.getLineFeedCnt(0,e.piece.start,o),h=c-l;e.piece=new Vn(e.piece.bufferIndex,e.piece.start,o,c,a),this._lastChangeBufferPos=o,An(this,e,t.length,h)}nodeAt(e){let t=this.root;const n=this._searchCache.get(e);if(n)return{node:n.node,nodeStartOffset:n.nodeStartOffset,remainder:e-n.nodeStartOffset};let i=0;for(;t!==Sn;)if(t.size_left>e)t=t.left;else{if(t.size_left+t.piece.length>=e){i+=t.size_left;const n={node:t,remainder:e-t.size_left,nodeStartOffset:i};return this._searchCache.set(n),n}e-=t.size_left+t.piece.length,i+=t.size_left+t.piece.length,t=t.right}return null}nodeAt2(e,t){let n=this.root,i=0;for(;n!==Sn;)if(n.left!==Sn&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){const r=this.getAccumulatedValue(n,e-n.lf_left-2),s=this.getAccumulatedValue(n,e-n.lf_left-1);return i+=n.size_left,{node:n,remainder:Math.min(r+t-1,s),nodeStartOffset:i}}if(n.lf_left+n.piece.lineFeedCnt===e-1){const r=this.getAccumulatedValue(n,e-n.lf_left-2);if(r+t-1<=n.piece.length)return{node:n,remainder:r+t-1,nodeStartOffset:i};t-=n.piece.length-r;break}e-=n.lf_left+n.piece.lineFeedCnt,i+=n.size_left+n.piece.length,n=n.right}for(n=n.next();n!==Sn;){if(n.piece.lineFeedCnt>0){const e=this.getAccumulatedValue(n,0),i=this.offsetOfNode(n);return{node:n,remainder:Math.min(t-1,e),nodeStartOffset:i}}if(n.piece.length>=t-1){return{node:n,remainder:t-1,nodeStartOffset:this.offsetOfNode(n)}}t-=n.piece.length,n=n.next()}return null}nodeCharCodeAt(e,t){if(e.piece.lineFeedCnt<1)return-1;const n=this._buffers[e.piece.bufferIndex],i=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return n.buffer.charCodeAt(i)}offsetOfNode(e){if(!e)return 0;let t=e.size_left;for(;e!==this.root;)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t}shouldCheckCRLF(){return!(this._EOLNormalized&&"\n"===this._EOL)}startWithLF(e){if("string"===typeof e)return 10===e.charCodeAt(0);if(e===Sn||0===e.piece.lineFeedCnt)return!1;const t=e.piece,n=this._buffers[t.bufferIndex].lineStarts,i=t.start.line,r=n[i]+t.start.column;if(i===n.length-1)return!1;return!(n[i+1]>r+1)&&10===this._buffers[t.bufferIndex].buffer.charCodeAt(r)}endWithCR(e){return"string"===typeof e?13===e.charCodeAt(e.length-1):e!==Sn&&0!==e.piece.lineFeedCnt&&13===this.nodeCharCodeAt(e,e.piece.length-1)}validateCRLFWithPrevNode(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){const t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}}validateCRLFWithNextNode(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}}fixCRLF(e,t){const n=[],i=this._buffers[e.piece.bufferIndex].lineStarts;let r;r=0===e.piece.end.column?{line:e.piece.end.line-1,column:i[e.piece.end.line]-i[e.piece.end.line-1]-1}:{line:e.piece.end.line,column:e.piece.end.column-1};const s=e.piece.length-1,o=e.piece.lineFeedCnt-1;e.piece=new Vn(e.piece.bufferIndex,e.piece.start,r,o,s),An(this,e,-1,-1),0===e.piece.length&&n.push(e);const a={line:t.piece.start.line+1,column:0},l=t.piece.length-1,c=this.getLineFeedCnt(t.piece.bufferIndex,a,t.piece.end);t.piece=new Vn(t.piece.bufferIndex,a,t.piece.end,c,l),An(this,t,-1,-1),0===t.piece.length&&n.push(t);const h=this.createNewPieces("\r\n");this.rbInsertRight(e,h[0]);for(let d=0;d<n.length;d++)Rn(this,n[d])}adjustCarriageReturnFromNext(e,t){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const n=t.next();if(this.startWithLF(n)){if(e+="\n",1===n.piece.length)Rn(this,n);else{const e=n.piece,t={line:e.start.line+1,column:0},i=e.length-1,r=this.getLineFeedCnt(e.bufferIndex,t,e.end);n.piece=new Vn(e.bufferIndex,t,e.end,r,i),An(this,n,-1,-1)}return!0}}return!1}iterate(e,t){if(e===Sn)return t(Sn);const n=this.iterate(e.left,t);return n?t(e)&&this.iterate(e.right,t):n}getNodeContent(e){if(e===Sn)return"";const t=this._buffers[e.piece.bufferIndex],n=e.piece,i=this.offsetInBuffer(n.bufferIndex,n.start),r=this.offsetInBuffer(n.bufferIndex,n.end);return t.buffer.substring(i,r)}getPieceContent(e){const t=this._buffers[e.bufferIndex],n=this.offsetInBuffer(e.bufferIndex,e.start),i=this.offsetInBuffer(e.bufferIndex,e.end);return t.buffer.substring(n,i)}rbInsertRight(e,t){const n=new Cn(t,1);n.left=Sn,n.right=Sn,n.parent=Sn,n.size_left=0,n.lf_left=0;if(this.root===Sn)this.root=n,n.color=0;else if(e.right===Sn)e.right=n,n.parent=e;else{const t=xn(e.right);t.left=n,n.parent=t}return Dn(this,n),n}rbInsertLeft(e,t){const n=new Cn(t,1);if(n.left=Sn,n.right=Sn,n.parent=Sn,n.size_left=0,n.lf_left=0,this.root===Sn)this.root=n,n.color=0;else if(e.left===Sn)e.left=n,n.parent=e;else{const t=En(e.left);t.right=n,n.parent=t}return Dn(this,n),n}}class Kn extends r.jG{constructor(e,t,n,r,s,o,a){super(),this._onDidChangeContent=this._register(new i.vl),this._BOM=t,this._mightContainNonBasicASCII=!o,this._mightContainRTL=r,this._mightContainUnusualLineTerminators=s,this._pieceTree=new jn(e,n,a)}mightContainRTL(){return this._mightContainRTL}mightContainUnusualLineTerminators(){return this._mightContainUnusualLineTerminators}resetMightContainUnusualLineTerminators(){this._mightContainUnusualLineTerminators=!1}mightContainNonBasicASCII(){return this._mightContainNonBasicASCII}getBOM(){return this._BOM}getEOL(){return this._pieceTree.getEOL()}createSnapshot(e){return this._pieceTree.createSnapshot(e?this._BOM:"")}getOffsetAt(e,t){return this._pieceTree.getOffsetAt(e,t)}getPositionAt(e){return this._pieceTree.getPositionAt(e)}getRangeAt(e,t){const n=e+t,i=this.getPositionAt(e),r=this.getPositionAt(n);return new f.Q(i.lineNumber,i.column,r.lineNumber,r.column)}getValueInRange(e,t=0){if(e.isEmpty())return"";const n=this._getEndOfLine(t);return this._pieceTree.getValueInRange(e,n)}getValueLengthInRange(e,t=0){if(e.isEmpty())return 0;if(e.startLineNumber===e.endLineNumber)return e.endColumn-e.startColumn;const n=this.getOffsetAt(e.startLineNumber,e.startColumn),i=this.getOffsetAt(e.endLineNumber,e.endColumn);let r=0;const s=this._getEndOfLine(t),o=this.getEOL();if(s.length!==o.length){r=(s.length-o.length)*(e.endLineNumber-e.startLineNumber)}return i-n+r}getCharacterCountInRange(e,t=0){if(this._mightContainNonBasicASCII){let n=0;const i=e.startLineNumber,r=e.endLineNumber;for(let t=i;t<=r;t++){const s=this.getLineContent(t),o=t===i?e.startColumn-1:0,a=t===r?e.endColumn-1:s.length;for(let e=o;e<a;e++)c.pc(s.charCodeAt(e))?(n+=1,e+=1):n+=1}return n+=this._getEndOfLine(t).length*(r-i),n}return this.getValueLengthInRange(e,t)}getLength(){return this._pieceTree.getLength()}getLineCount(){return this._pieceTree.getLineCount()}getLinesContent(){return this._pieceTree.getLinesContent()}getLineContent(e){return this._pieceTree.getLineContent(e)}getLineCharCode(e,t){return this._pieceTree.getLineCharCode(e,t)}getLineLength(e){return this._pieceTree.getLineLength(e)}getLineFirstNonWhitespaceColumn(e){const t=c.HG(this.getLineContent(e));return-1===t?0:t+1}getLineLastNonWhitespaceColumn(e){const t=c.lT(this.getLineContent(e));return-1===t?0:t+2}_getEndOfLine(e){switch(e){case 1:return"\n";case 2:return"\r\n";case 0:return this.getEOL();default:throw new Error("Unknown EOL preference")}}setEOL(e){this._pieceTree.setEOL(e)}applyEdits(e,t,n){let i=this._mightContainRTL,r=this._mightContainUnusualLineTerminators,s=this._mightContainNonBasicASCII,o=!0,a=[];for(let g=0;g<e.length;g++){const t=e[g];o&&t._isTracked&&(o=!1);const n=t.range;if(t.text){let e=!0;s||(e=!c.aC(t.text),s=e),!i&&e&&(i=c.E_(t.text)),!r&&e&&(r=c.$X(t.text))}let l="",h=0,u=0,p=0;if(t.text){let e;[h,u,p,e]=(0,d.W)(t.text);const n=this.getEOL();l=0===e||e===("\r\n"===n?2:1)?t.text:t.text.replace(/\r\n|\r|\n/g,n)}a[g]={sortIndex:g,identifier:t.identifier||null,range:n,rangeOffset:this.getOffsetAt(n.startLineNumber,n.startColumn),rangeLength:this.getValueLengthInRange(n),text:l,eolCount:h,firstLineLength:u,lastLineLength:p,forceMoveMarkers:Boolean(t.forceMoveMarkers),isAutoWhitespaceEdit:t.isAutoWhitespaceEdit||!1}}a.sort(Kn._sortOpsAscending);let l=!1;for(let c=0,d=a.length-1;c<d;c++){const e=a[c].range.getEndPosition(),t=a[c+1].range.getStartPosition();if(t.isBeforeOrEqual(e)){if(t.isBefore(e))throw new Error("Overlapping ranges are not allowed!");l=!0}}o&&(a=this._reduceOperations(a));const h=n||t?Kn._getInverseEditRanges(a):[],u=[];if(t)for(let d=0;d<a.length;d++){const e=a[d],t=h[d];if(e.isAutoWhitespaceEdit&&e.range.isEmpty())for(let n=t.startLineNumber;n<=t.endLineNumber;n++){let i="";n===t.startLineNumber&&(i=this.getLineContent(e.range.startLineNumber),-1!==c.HG(i))||u.push({lineNumber:n,oldContent:i})}}let p=null;if(n){let e=0;p=[];for(let t=0;t<a.length;t++){const n=a[t],i=h[t],r=this.getValueInRange(n.range),s=n.rangeOffset+e;e+=n.text.length-r.length,p[t]={sortIndex:n.sortIndex,identifier:n.identifier,range:i,text:r,textChange:new Rt(n.rangeOffset,r,s,n.text)}}l||p.sort(((e,t)=>e.sortIndex-t.sortIndex))}this._mightContainRTL=i,this._mightContainUnusualLineTerminators=r,this._mightContainNonBasicASCII=s;const m=this._doApplyEdits(a);let f=null;if(t&&u.length>0){u.sort(((e,t)=>t.lineNumber-e.lineNumber)),f=[];for(let e=0,t=u.length;e<t;e++){const t=u[e].lineNumber;if(e>0&&u[e-1].lineNumber===t)continue;const n=u[e].oldContent,i=this.getLineContent(t);0!==i.length&&i!==n&&-1===c.HG(i)&&f.push(t)}}return this._onDidChangeContent.fire(),new fe.F4(p,m,f)}_reduceOperations(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]}_toSingleEditOperation(e){let t=!1;const n=e[0].range,i=e[e.length-1].range,r=new f.Q(n.startLineNumber,n.startColumn,i.endLineNumber,i.endColumn);let s=n.startLineNumber,o=n.startColumn;const a=[];for(let d=0,p=e.length;d<p;d++){const n=e[d],i=n.range;t=t||n.forceMoveMarkers,a.push(this.getValueInRange(new f.Q(s,o,i.startLineNumber,i.startColumn))),n.text.length>0&&a.push(n.text),s=i.endLineNumber,o=i.endColumn}const l=a.join(""),[c,h,u]=(0,d.W)(l);return{sortIndex:0,identifier:e[0].identifier,range:r,rangeOffset:this.getOffsetAt(r.startLineNumber,r.startColumn),rangeLength:this.getValueLengthInRange(r,0),text:l,eolCount:c,firstLineLength:h,lastLineLength:u,forceMoveMarkers:t,isAutoWhitespaceEdit:!1}}_doApplyEdits(e){e.sort(Kn._sortOpsDescending);const t=[];for(let n=0;n<e.length;n++){const i=e[n],r=i.range.startLineNumber,s=i.range.startColumn,o=i.range.endLineNumber,a=i.range.endColumn;if(r===o&&s===a&&0===i.text.length)continue;i.text?(this._pieceTree.delete(i.rangeOffset,i.rangeLength),this._pieceTree.insert(i.rangeOffset,i.text,!0)):this._pieceTree.delete(i.rangeOffset,i.rangeLength);const l=new f.Q(r,s,o,a);t.push({range:l,rangeLength:i.rangeLength,text:i.text,rangeOffset:i.rangeOffset,forceMoveMarkers:i.forceMoveMarkers})}return t}findMatchesLineByLine(e,t,n,i){return this._pieceTree.findMatchesLineByLine(e,t,n,i)}static _getInverseEditRanges(e){const t=[];let n=0,i=0,r=null;for(let s=0,o=e.length;s<o;s++){const o=e[s];let a,l,c;if(r?r.range.endLineNumber===o.range.startLineNumber?(a=n,l=i+(o.range.startColumn-r.range.endColumn)):(a=n+(o.range.startLineNumber-r.range.endLineNumber),l=o.range.startColumn):(a=o.range.startLineNumber,l=o.range.startColumn),o.text.length>0){const e=o.eolCount+1;c=1===e?new f.Q(a,l,a,l+o.firstLineLength):new f.Q(a,l,a+e-1,o.lastLineLength+1)}else c=new f.Q(a,l,a,l);n=c.endLineNumber,i=c.endColumn,t.push(c),r=o}return t}static _sortOpsAscending(e,t){const n=f.Q.compareRangesUsingEnds(e.range,t.range);return 0===n?e.sortIndex-t.sortIndex:n}static _sortOpsDescending(e,t){const n=f.Q.compareRangesUsingEnds(e.range,t.range);return 0===n?t.sortIndex-e.sortIndex:-n}}class Hn{constructor(e,t,n,i,r,s,o,a,l){this._chunks=e,this._bom=t,this._cr=n,this._lf=i,this._crlf=r,this._containsRTL=s,this._containsUnusualLineTerminators=o,this._isBasicASCII=a,this._normalizeEOL=l}_getEOL(e){const t=this._cr+this._lf+this._crlf,n=this._cr+this._crlf;return 0===t?1===e?"\n":"\r\n":n>t/2?"\r\n":"\n"}create(e){const t=this._getEOL(e),n=this._chunks;if(this._normalizeEOL&&("\r\n"===t&&(this._cr>0||this._lf>0)||"\n"===t&&(this._cr>0||this._crlf>0)))for(let r=0,s=n.length;r<s;r++){const e=n[r].buffer.replace(/\r\n|\r|\n/g,t),i=Wn(e);n[r]=new Un(e,i)}const i=new Kn(n,this._bom,t,this._containsRTL,this._containsUnusualLineTerminators,this._isBasicASCII,this._normalizeEOL);return{textBuffer:i,disposable:i}}}class Gn{constructor(){this.chunks=[],this.BOM="",this._hasPreviousChar=!1,this._previousChar=0,this._tmpLineStarts=[],this.cr=0,this.lf=0,this.crlf=0,this.containsRTL=!1,this.containsUnusualLineTerminators=!1,this.isBasicASCII=!0}acceptChunk(e){if(0===e.length)return;0===this.chunks.length&&c.LU(e)&&(this.BOM=c.r_,e=e.substr(1));const t=e.charCodeAt(e.length-1);13===t||t>=55296&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0,this._previousChar=t):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1,this._previousChar=t)}_acceptChunk1(e,t){(t||0!==e.length)&&(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))}_acceptChunk2(e){const t=function(e,t){e.length=0,e[0]=0;let n=1,i=0,r=0,s=0,o=!0;for(let l=0,c=t.length;l<c;l++){const a=t.charCodeAt(l);13===a?l+1<c&&10===t.charCodeAt(l+1)?(s++,e[n++]=l+2,l++):(i++,e[n++]=l+1):10===a?(r++,e[n++]=l+1):o&&9!==a&&(a<32||a>126)&&(o=!1)}const a=new Bn(Pn(e),i,r,s,o);return e.length=0,a}(this._tmpLineStarts,e);this.chunks.push(new Un(e,t.lineStarts)),this.cr+=t.cr,this.lf+=t.lf,this.crlf+=t.crlf,t.isBasicASCII||(this.isBasicASCII=!1,this.containsRTL||(this.containsRTL=c.E_(e)),this.containsUnusualLineTerminators||(this.containsUnusualLineTerminators=c.$X(e)))}finish(e=!0){return this._finish(),new Hn(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,e)}_finish(){if(0===this.chunks.length&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;const e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);const t=Wn(e.buffer);e.lineStarts=t,13===this._previousChar&&this.cr++}}}var Qn=n(6571),Jn=n(2083),Yn=n(1940),Xn=n(8381),Zn=n(4444);const ei=new class{clone(){return this}equals(e){return this===e}};class ti{constructor(e){this._default=e,this._store=[]}get(e){return e<this._store.length?this._store[e]:this._default}set(e,t){for(;e>=this._store.length;)this._store[this._store.length]=this._default;this._store[e]=t}replace(e,t,n){if(e>=this._store.length)return;if(0===t)return void this.insert(e,n);if(0===n)return void this.delete(e,t);const i=this._store.slice(0,e),r=this._store.slice(e+t),s=function(e,t){const n=[];for(let i=0;i<e;i++)n[i]=t;return n}(n,this._default);this._store=i.concat(s,r)}delete(e,t){0===t||e>=this._store.length||this._store.splice(e,t)}insert(e,t){if(0===t||e>=this._store.length)return;const n=[];for(let i=0;i<t;i++)n[i]=this._default;this._store=(0,o.nK)(this._store,e,n)}}class ni{get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._startLineNumber+this._tokens.length-1}constructor(e,t){this._startLineNumber=e,this._tokens=t}getLineTokens(e){return this._tokens[e-this._startLineNumber]}appendLineTokens(e){this._tokens.push(e)}}class ii{constructor(){this._tokens=[]}add(e,t){if(this._tokens.length>0){const n=this._tokens[this._tokens.length-1];if(n.endLineNumber+1===e)return void n.appendLineTokens(t)}this._tokens.push(new ni(e,[t]))}finalize(){return this._tokens}}class ri{static{this.defaultTokenMetadata=33587200}static createEmpty(e,t){const n=ri.defaultTokenMetadata,i=new Uint32Array(2);return i[0]=e.length,i[1]=n,new ri(i,e,t)}static createFromTextAndMetadata(e,t){let n=0,i="";const r=new Array;for(const{text:s,metadata:o}of e)r.push(n+s.length,o),n+=s.length,i+=s;return new ri(new Uint32Array(r),i,t)}constructor(e,t,n){this._lineTokensBrand=void 0,this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t,this.languageIdCodec=n}equals(e){return e instanceof ri&&this.slicedEquals(e,0,this._tokensCount)}slicedEquals(e,t,n){if(this._text!==e._text)return!1;if(this._tokensCount!==e._tokensCount)return!1;const i=t<<1,r=i+(n<<1);for(let s=i;s<r;s++)if(this._tokens[s]!==e._tokens[s])return!1;return!0}getLineContent(){return this._text}getCount(){return this._tokensCount}getStartOffset(e){return e>0?this._tokens[e-1<<1]:0}getMetadata(e){return this._tokens[1+(e<<1)]}getLanguageId(e){const t=this._tokens[1+(e<<1)],n=Xe.x.getLanguageId(t);return this.languageIdCodec.decodeLanguageId(n)}getStandardTokenType(e){const t=this._tokens[1+(e<<1)];return Xe.x.getTokenType(t)}getForeground(e){const t=this._tokens[1+(e<<1)];return Xe.x.getForeground(t)}getClassName(e){const t=this._tokens[1+(e<<1)];return Xe.x.getClassNameFromMetadata(t)}getInlineStyle(e,t){const n=this._tokens[1+(e<<1)];return Xe.x.getInlineStyleFromMetadata(n,t)}getPresentation(e){const t=this._tokens[1+(e<<1)];return Xe.x.getPresentationFromMetadata(t)}getEndOffset(e){return this._tokens[e<<1]}findTokenIndexAtOffset(e){return ri.findIndexInTokensArray(this._tokens,e)}inflate(){return this}sliceAndInflate(e,t,n){return new si(this,e,t,n)}static convertToEndOffset(e,t){const n=(e.length>>>1)-1;for(let i=0;i<n;i++)e[i<<1]=e[i+1<<1];e[n<<1]=t}static findIndexInTokensArray(e,t){if(e.length<=2)return 0;let n=0,i=(e.length>>>1)-1;for(;n<i;){const r=n+Math.floor((i-n)/2),s=e[r<<1];if(s===t)return r+1;s<t?n=r+1:s>t&&(i=r)}return n}withInserted(e){if(0===e.length)return this;let t=0,n=0,i="";const r=new Array;let s=0;for(;;){const o=t<this._tokensCount?this._tokens[t<<1]:-1,a=n<e.length?e[n]:null;if(-1!==o&&(null===a||o<=a.offset)){i+=this._text.substring(s,o);const e=this._tokens[1+(t<<1)];r.push(i.length,e),t++,s=o}else{if(!a)break;if(a.offset>s){i+=this._text.substring(s,a.offset);const e=this._tokens[1+(t<<1)];r.push(i.length,e),s=a.offset}i+=a.text,r.push(i.length,a.tokenMetadata),n++}}return new ri(new Uint32Array(r),i,this.languageIdCodec)}getTokenText(e){const t=this.getStartOffset(e),n=this.getEndOffset(e);return this._text.substring(t,n)}forEach(e){const t=this.getCount();for(let n=0;n<t;n++)e(n)}}class si{constructor(e,t,n,i){this._source=e,this._startOffset=t,this._endOffset=n,this._deltaOffset=i,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this.languageIdCodec=e.languageIdCodec,this._tokensCount=0;for(let r=this._firstTokenIndex,s=e.getCount();r<s;r++){if(e.getStartOffset(r)>=n)break;this._tokensCount++}}getMetadata(e){return this._source.getMetadata(this._firstTokenIndex+e)}getLanguageId(e){return this._source.getLanguageId(this._firstTokenIndex+e)}getLineContent(){return this._source.getLineContent().substring(this._startOffset,this._endOffset)}equals(e){return e instanceof si&&(this._startOffset===e._startOffset&&this._endOffset===e._endOffset&&this._deltaOffset===e._deltaOffset&&this._source.slicedEquals(e._source,this._firstTokenIndex,this._tokensCount))}getCount(){return this._tokensCount}getStandardTokenType(e){return this._source.getStandardTokenType(this._firstTokenIndex+e)}getForeground(e){return this._source.getForeground(this._firstTokenIndex+e)}getEndOffset(e){const t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset}getClassName(e){return this._source.getClassName(this._firstTokenIndex+e)}getInlineStyle(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)}getPresentation(e){return this._source.getPresentation(this._firstTokenIndex+e)}findTokenIndexAtOffset(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex}getTokenText(e){const t=this._firstTokenIndex+e,n=this._source.getStartOffset(t),i=this._source.getEndOffset(t);let r=this._source.getTokenText(t);return n<this._startOffset&&(r=r.substring(this._startOffset-n)),i>this._endOffset&&(r=r.substring(0,r.length-(i-this._endOffset))),r}forEach(e){for(let t=0;t<this.getCount();t++)e(t)}}class oi{constructor(e,t){this.tokenizationSupport=t,this.initialState=this.tokenizationSupport.getInitialState(),this.store=new li(e)}getStartState(e){return this.store.getStartState(e,this.initialState)}getFirstInvalidLine(){return this.store.getFirstInvalidLine(this.initialState)}}class ai extends oi{constructor(e,t,n,i){super(e,t),this._textModel=n,this._languageIdCodec=i}updateTokensUntilLine(e,t){const n=this._textModel.getLanguageId();for(;;){const i=this.getFirstInvalidLine();if(!i||i.lineNumber>t)break;const r=this._textModel.getLineContent(i.lineNumber),s=di(this._languageIdCodec,n,this.tokenizationSupport,r,!0,i.startState);e.add(i.lineNumber,s.tokens),this.store.setEndState(i.lineNumber,s.endState)}}getTokenTypeIfInsertingCharacter(e,t){const n=this.getStartState(e.lineNumber);if(!n)return 0;const i=this._textModel.getLanguageId(),r=this._textModel.getLineContent(e.lineNumber),s=r.substring(0,e.column-1)+t+r.substring(e.column-1),o=di(this._languageIdCodec,i,this.tokenizationSupport,s,!0,n),a=new ri(o.tokens,s,this._languageIdCodec);if(0===a.getCount())return 0;const l=a.findTokenIndexAtOffset(e.column-1);return a.getStandardTokenType(l)}tokenizeLineWithEdit(e,t,n){const i=e.lineNumber,r=e.column,s=this.getStartState(i);if(!s)return null;const o=this._textModel.getLineContent(i),a=o.substring(0,r-1)+n+o.substring(r-1+t),l=this._textModel.getLanguageIdAtPosition(i,0),c=di(this._languageIdCodec,l,this.tokenizationSupport,a,!0,s);return new ri(c.tokens,a,this._languageIdCodec)}hasAccurateTokensForLine(e){return e<this.store.getFirstInvalidEndStateLineNumberOrMax()}isCheapToTokenize(e){const t=this.store.getFirstInvalidEndStateLineNumberOrMax();return e<t||e===t&&this._textModel.getLineLength(e)<2048}tokenizeHeuristically(e,t,n){if(n<=this.store.getFirstInvalidEndStateLineNumberOrMax())return{heuristicTokens:!1};if(t<=this.store.getFirstInvalidEndStateLineNumberOrMax())return this.updateTokensUntilLine(e,n),{heuristicTokens:!1};let i=this.guessStartState(t);const r=this._textModel.getLanguageId();for(let s=t;s<=n;s++){const t=this._textModel.getLineContent(s),n=di(this._languageIdCodec,r,this.tokenizationSupport,t,!0,i);e.add(s,n.tokens),i=n.endState}return{heuristicTokens:!0}}guessStartState(e){let t=this._textModel.getLineFirstNonWhitespaceColumn(e);const n=[];let i=null;for(let o=e-1;t>1&&o>=1;o--){const e=this._textModel.getLineFirstNonWhitespaceColumn(o);if(0!==e&&(e<t&&(n.push(this._textModel.getLineContent(o)),t=e,i=this.getStartState(o),i)))break}i||(i=this.tokenizationSupport.getInitialState()),n.reverse();const r=this._textModel.getLanguageId();let s=i;for(const o of n){s=di(this._languageIdCodec,r,this.tokenizationSupport,o,!1,s).endState}return s}}class li{constructor(e){this.lineCount=e,this._tokenizationStateStore=new ci,this._invalidEndStatesLineNumbers=new hi,this._invalidEndStatesLineNumbers.addRange(new Zn.L(1,e+1))}getEndState(e){return this._tokenizationStateStore.getEndState(e)}setEndState(e,t){if(!t)throw new l.D7("Cannot set null/undefined state");this._invalidEndStatesLineNumbers.delete(e);const n=this._tokenizationStateStore.setEndState(e,t);return n&&e<this.lineCount&&this._invalidEndStatesLineNumbers.addRange(new Zn.L(e+1,e+2)),n}acceptChange(e,t){this.lineCount+=t-e.length,this._tokenizationStateStore.acceptChange(e,t),this._invalidEndStatesLineNumbers.addRangeAndResize(new Zn.L(e.startLineNumber,e.endLineNumberExclusive),t)}acceptChanges(e){for(const t of e){const[e]=(0,d.W)(t.text);this.acceptChange(new Qn.M(t.range.startLineNumber,t.range.endLineNumber+1),e+1)}}invalidateEndStateRange(e){this._invalidEndStatesLineNumbers.addRange(new Zn.L(e.startLineNumber,e.endLineNumberExclusive))}getFirstInvalidEndStateLineNumber(){return this._invalidEndStatesLineNumbers.min}getFirstInvalidEndStateLineNumberOrMax(){return this.getFirstInvalidEndStateLineNumber()||Number.MAX_SAFE_INTEGER}allStatesValid(){return null===this._invalidEndStatesLineNumbers.min}getStartState(e,t){return 1===e?t:this.getEndState(e-1)}getFirstInvalidLine(e){const t=this.getFirstInvalidEndStateLineNumber();if(null===t)return null;const n=this.getStartState(t,e);if(!n)throw new l.D7("Start state must be defined");return{lineNumber:t,startState:n}}}class ci{constructor(){this._lineEndStates=new ti(null)}getEndState(e){return this._lineEndStates.get(e)}setEndState(e,t){const n=this._lineEndStates.get(e);return(!n||!n.equals(t))&&(this._lineEndStates.set(e,t),!0)}acceptChange(e,t){let n=e.length;t>0&&n>0&&(n--,t--),this._lineEndStates.replace(e.startLineNumber,n,t)}}class hi{constructor(){this._ranges=[]}get min(){return 0===this._ranges.length?null:this._ranges[0].start}delete(e){const t=this._ranges.findIndex((t=>t.contains(e)));if(-1!==t){const n=this._ranges[t];n.start===e?n.endExclusive===e+1?this._ranges.splice(t,1):this._ranges[t]=new Zn.L(e+1,n.endExclusive):n.endExclusive===e+1?this._ranges[t]=new Zn.L(n.start,e):this._ranges.splice(t,1,new Zn.L(n.start,e),new Zn.L(e+1,n.endExclusive))}}addRange(e){Zn.L.addRange(e,this._ranges)}addRangeAndResize(e,t){let n=0;for(;!(n>=this._ranges.length||e.start<=this._ranges[n].endExclusive);)n++;let i=n;for(;!(i>=this._ranges.length||e.endExclusive<this._ranges[i].start);)i++;const r=t-e.length;for(let s=i;s<this._ranges.length;s++)this._ranges[s]=this._ranges[s].delta(r);if(n===i){const i=new Zn.L(e.start,e.start+t);i.isEmpty||this._ranges.splice(n,0,i)}else{const t=Math.min(e.start,this._ranges[n].start),s=Math.max(e.endExclusive,this._ranges[i-1].endExclusive),o=new Zn.L(t,s+r);o.isEmpty?this._ranges.splice(n,i-n):this._ranges.splice(n,i-n,o)}}toString(){return this._ranges.map((e=>e.toString())).join(" + ")}}function di(e,t,n,i,r,s){let o=null;if(n)try{o=n.tokenizeEncoded(i,r,s.clone())}catch(a){(0,l.dz)(a)}return o||(o=function(e,t){const n=new Uint32Array(2);return n[0]=0,n[1]=(32768|e|2<<24)>>>0,new Jn.rY(n,null===t?ei:t)}(e.encodeLanguageId(t),s)),ri.convertToEndOffset(o.tokens,i.length),o}class ui{constructor(e,t){this._tokenizerWithStateStore=e,this._backgroundTokenStore=t,this._isDisposed=!1,this._isScheduled=!1}dispose(){this._isDisposed=!0}handleChanges(){this._beginBackgroundTokenization()}_beginBackgroundTokenization(){!this._isScheduled&&this._tokenizerWithStateStore._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&(this._isScheduled=!0,(0,Yn.$6)((e=>{this._isScheduled=!1,this._backgroundTokenizeWithDeadline(e)})))}_backgroundTokenizeWithDeadline(e){const t=Date.now()+e.timeRemaining(),n=()=>{!this._isDisposed&&this._tokenizerWithStateStore._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&(this._backgroundTokenizeForAtLeast1ms(),Date.now()<t?(0,s._p)(n):this._beginBackgroundTokenization())};n()}_backgroundTokenizeForAtLeast1ms(){const e=this._tokenizerWithStateStore._textModel.getLineCount(),t=new ii,n=Xn.W.create(!1);do{if(n.elapsed()>1)break;if(this._tokenizeOneInvalidLine(t)>=e)break}while(this._hasLinesToTokenize());this._backgroundTokenStore.setTokens(t.finalize()),this.checkFinished()}_hasLinesToTokenize(){return!!this._tokenizerWithStateStore&&!this._tokenizerWithStateStore.store.allStatesValid()}_tokenizeOneInvalidLine(e){const t=this._tokenizerWithStateStore?.getFirstInvalidLine();return t?(this._tokenizerWithStateStore.updateTokensUntilLine(e,t.lineNumber),t.lineNumber):this._tokenizerWithStateStore._textModel.getLineCount()+1}checkFinished(){this._isDisposed||this._tokenizerWithStateStore.store.allStatesValid()&&this._backgroundTokenStore.backgroundTokenizationFinished()}requestTokens(e,t){this._tokenizerWithStateStore.store.invalidateEndStateRange(new Qn.M(e,t))}}class pi{constructor(){this._onDidChangeVisibleRanges=new i.vl,this.onDidChangeVisibleRanges=this._onDidChangeVisibleRanges.event,this._views=new Set}attachView(){const e=new mi((t=>{this._onDidChangeVisibleRanges.fire({view:e,state:t})}));return this._views.add(e),e}detachView(e){this._views.delete(e),this._onDidChangeVisibleRanges.fire({view:e,state:void 0})}}class mi{constructor(e){this.handleStateChange=e}setVisibleLines(e,t){const n=e.map((e=>new Qn.M(e.startLineNumber,e.endLineNumber+1)));this.handleStateChange({visibleLineRanges:n,stabilized:t})}}class fi extends r.jG{get lineRanges(){return this._lineRanges}constructor(e){super(),this._refreshTokens=e,this.runner=this._register(new Yn.uC((()=>this.update()),50)),this._computedLineRanges=[],this._lineRanges=[]}update(){(0,o.aI)(this._computedLineRanges,this._lineRanges,((e,t)=>e.equals(t)))||(this._computedLineRanges=this._lineRanges,this._refreshTokens())}handleStateChange(e){this._lineRanges=e.visibleLineRanges,e.stabilized?(this.runner.cancel(),this.update()):this.runner.schedule()}}class gi extends r.jG{get backgroundTokenizationState(){return this._backgroundTokenizationState}constructor(e,t,n){super(),this._languageIdCodec=e,this._textModel=t,this.getLanguageId=n,this._backgroundTokenizationState=1,this._onDidChangeBackgroundTokenizationState=this._register(new i.vl),this.onDidChangeBackgroundTokenizationState=this._onDidChangeBackgroundTokenizationState.event,this._onDidChangeTokens=this._register(new i.vl),this.onDidChangeTokens=this._onDidChangeTokens.event}tokenizeIfCheap(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)}}class bi extends gi{constructor(e,t,n,i){super(t,n,i),this._treeSitterService=e,this._tokenizationSupport=null,this._initialize()}_initialize(){const e=this.getLanguageId();this._tokenizationSupport&&this._lastLanguageId===e||(this._lastLanguageId=e,this._tokenizationSupport=Jn.OB.get(e))}getLineTokens(e){const t=this._textModel.getLineContent(e);if(this._tokenizationSupport){const n=this._tokenizationSupport.tokenizeEncoded(e,this._textModel);if(n)return new ri(n,t,this._languageIdCodec)}return ri.createEmpty(t,this._languageIdCodec)}resetTokenization(e=!0){e&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]}),this._initialize()}handleDidChangeAttached(){}handleDidChangeContent(e){e.isFlush&&this.resetTokenization(!1)}forceTokenization(e){}hasAccurateTokensForLine(e){return!0}isCheapToTokenize(e){return!0}getTokenTypeIfInsertingCharacter(e,t,n){return 0}tokenizeLineWithEdit(e,t,n){return null}get hasTokens(){return void 0!==this._treeSitterService.getParseResult(this._textModel)}}var vi=n(4432);const yi=new Uint32Array(0).buffer;class wi{static deleteBeginning(e,t){return null===e||e===yi?e:wi.delete(e,0,t)}static deleteEnding(e,t){if(null===e||e===yi)return e;const n=_i(e),i=n[n.length-2];return wi.delete(e,t,i)}static delete(e,t,n){if(null===e||e===yi||t===n)return e;const i=_i(e),r=i.length>>>1;if(0===t&&i[i.length-2]===n)return yi;const s=ri.findIndexInTokensArray(i,t),o=s>0?i[s-1<<1]:0;if(n<i[s<<1]){const o=n-t;for(let e=s;e<r;e++)i[e<<1]-=o;return e}let a,l;o!==t?(i[s<<1]=t,a=s+1<<1,l=t):(a=s<<1,l=o);const c=n-t;for(let d=s+1;d<r;d++){const e=i[d<<1]-c;e>l&&(i[a++]=e,i[a++]=i[1+(d<<1)],l=e)}if(a===i.length)return e;const h=new Uint32Array(a);return h.set(i.subarray(0,a),0),h.buffer}static append(e,t){if(t===yi)return e;if(e===yi)return t;if(null===e)return e;if(null===t)return null;const n=_i(e),i=_i(t),r=i.length>>>1,s=new Uint32Array(n.length+i.length);s.set(n,0);let o=n.length;const a=n[n.length-2];for(let l=0;l<r;l++)s[o++]=i[l<<1]+a,s[o++]=i[1+(l<<1)];return s.buffer}static insert(e,t,n){if(null===e||e===yi)return e;const i=_i(e),r=i.length>>>1;let s=ri.findIndexInTokensArray(i,t);if(s>0){i[s-1<<1]===t&&s--}for(let o=s;o<r;o++)i[o<<1]+=n;return e}}function _i(e){return e instanceof Uint32Array?e:new Uint32Array(e)}class ki{constructor(e){this._lineTokens=[],this._len=0,this._languageIdCodec=e}flush(){this._lineTokens=[],this._len=0}get hasTokens(){return this._lineTokens.length>0}getTokens(e,t,n){let i=null;if(t<this._len&&(i=this._lineTokens[t]),null!==i&&i!==yi)return new ri(_i(i),n,this._languageIdCodec);const r=new Uint32Array(2);return r[0]=n.length,r[1]=Ci(this._languageIdCodec.encodeLanguageId(e)),new ri(r,n,this._languageIdCodec)}static _massageTokens(e,t,n){const i=n?_i(n):null;if(0===t){let t=!1;if(i&&i.length>1&&(t=Xe.x.getLanguageId(i[1])!==e),!t)return yi}if(!i||0===i.length){const n=new Uint32Array(2);return n[0]=t,n[1]=Ci(e),n.buffer}return i[i.length-2]=t,0===i.byteOffset&&i.byteLength===i.buffer.byteLength?i.buffer:i}_ensureLine(e){for(;e>=this._len;)this._lineTokens[this._len]=null,this._len++}_deleteLines(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._lineTokens.splice(e,t),this._len-=t)}_insertLines(e,t){if(0===t)return;const n=[];for(let i=0;i<t;i++)n[i]=null;this._lineTokens=o.nK(this._lineTokens,e,n),this._len+=t}setTokens(e,t,n,i,r){const s=ki._massageTokens(this._languageIdCodec.encodeLanguageId(e),n,i);this._ensureLine(t);const o=this._lineTokens[t];return this._lineTokens[t]=s,!!r&&!ki._equals(o,s)}static _equals(e,t){if(!e||!t)return!e&&!t;const n=_i(e),i=_i(t);if(n.length!==i.length)return!1;for(let r=0,s=n.length;r<s;r++)if(n[r]!==i[r])return!1;return!0}acceptEdit(e,t,n){this._acceptDeleteRange(e),this._acceptInsertText(new m.y(e.startLineNumber,e.startColumn),t,n)}_acceptDeleteRange(e){const t=e.startLineNumber-1;if(t>=this._len)return;if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;return void(this._lineTokens[t]=wi.delete(this._lineTokens[t],e.startColumn-1,e.endColumn-1))}this._lineTokens[t]=wi.deleteEnding(this._lineTokens[t],e.startColumn-1);const n=e.endLineNumber-1;let i=null;n<this._len&&(i=wi.deleteBeginning(this._lineTokens[n],e.endColumn-1)),this._lineTokens[t]=wi.append(this._lineTokens[t],i),this._deleteLines(e.startLineNumber,e.endLineNumber-e.startLineNumber)}_acceptInsertText(e,t,n){if(0===t&&0===n)return;const i=e.lineNumber-1;i>=this._len||(0!==t?(this._lineTokens[i]=wi.deleteEnding(this._lineTokens[i],e.column-1),this._lineTokens[i]=wi.insert(this._lineTokens[i],e.column-1,n),this._insertLines(e.lineNumber,t)):this._lineTokens[i]=wi.insert(this._lineTokens[i],e.column-1,n))}setMultilineTokens(e,t){if(0===e.length)return{changes:[]};const n=[];for(let i=0,r=e.length;i<r;i++){const r=e[i];let s=0,o=0,a=!1;for(let e=r.startLineNumber;e<=r.endLineNumber;e++)if(a)this.setTokens(t.getLanguageId(),e-1,t.getLineLength(e),r.getLineTokens(e),!1),o=e;else{this.setTokens(t.getLanguageId(),e-1,t.getLineLength(e),r.getLineTokens(e),!0)&&(a=!0,s=e,o=e)}a&&n.push({fromLineNumber:s,toLineNumber:o})}return{changes:n}}}function Ci(e){return(32768|e|2<<24|1024)>>>0}class Si{constructor(e){this._pieces=[],this._isComplete=!1,this._languageIdCodec=e}flush(){this._pieces=[],this._isComplete=!1}isEmpty(){return 0===this._pieces.length}set(e,t){this._pieces=e||[],this._isComplete=t}setPartial(e,t){let n=e;if(t.length>0){const i=t[0].getRange(),r=t[t.length-1].getRange();if(!i||!r)return e;n=e.plusRange(i).plusRange(r)}let i=null;for(let r=0,s=this._pieces.length;r<s;r++){const e=this._pieces[r];if(e.endLineNumber<n.startLineNumber)continue;if(e.startLineNumber>n.endLineNumber){i=i||{index:r};break}if(e.removeTokens(n),e.isEmpty()){this._pieces.splice(r,1),r--,s--;continue}if(e.endLineNumber<n.startLineNumber)continue;if(e.startLineNumber>n.endLineNumber){i=i||{index:r};continue}const[t,o]=e.split(n);t.isEmpty()?i=i||{index:r}:o.isEmpty()||(this._pieces.splice(r,1,t,o),r++,s++,i=i||{index:r})}return i=i||{index:this._pieces.length},t.length>0&&(this._pieces=o.nK(this._pieces,i.index,t)),n}isComplete(){return this._isComplete}addSparseTokens(e,t){if(0===t.getLineContent().length)return t;const n=this._pieces;if(0===n.length)return t;const i=n[Si._findFirstPieceWithLine(n,e)].getLineTokens(e);if(!i)return t;const r=t.getCount(),s=i.getCount();let o=0;const a=[];let l=0,c=0;const h=(e,t)=>{e!==c&&(c=e,a[l++]=e,a[l++]=t)};for(let d=0;d<s;d++){const e=i.getStartCharacter(d),n=i.getEndCharacter(d),s=i.getMetadata(d),a=((1&s?2048:0)|(2&s?4096:0)|(4&s?8192:0)|(8&s?16384:0)|(16&s?16744448:0)|(32&s?4278190080:0))>>>0,l=~a>>>0;for(;o<r&&t.getEndOffset(o)<=e;)h(t.getEndOffset(o),t.getMetadata(o)),o++;for(o<r&&t.getStartOffset(o)<e&&h(e,t.getMetadata(o));o<r&&t.getEndOffset(o)<n;)h(t.getEndOffset(o),t.getMetadata(o)&l|s&a),o++;if(o<r)h(n,t.getMetadata(o)&l|s&a),t.getEndOffset(o)===n&&o++;else{const e=Math.min(Math.max(0,o-1),r-1);h(n,t.getMetadata(e)&l|s&a)}}for(;o<r;)h(t.getEndOffset(o),t.getMetadata(o)),o++;return new ri(new Uint32Array(a),t.getLineContent(),this._languageIdCodec)}static _findFirstPieceWithLine(e,t){let n=0,i=e.length-1;for(;n<i;){let r=n+Math.floor((i-n)/2);if(e[r].endLineNumber<t)n=r+1;else{if(!(e[r].startLineNumber>t)){for(;r>n&&e[r-1].startLineNumber<=t&&t<=e[r-1].endLineNumber;)r--;return r}i=r-1}}return n}acceptEdit(e,t,n,i,r){for(const s of this._pieces)s.acceptEdit(e,t,n,i,r)}}var xi,Ei=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},Fi=function(e,t){return function(n,i){t(n,i,e)}};let Li=xi=class extends qt{constructor(e,t,n,s,o,a,l){super(),this._textModel=e,this._bracketPairsTextModelPart=t,this._languageId=n,this._attachedViews=s,this._languageService=o,this._languageConfigurationService=a,this._treeSitterService=l,this._semanticTokens=new Si(this._languageService.languageIdCodec),this._onDidChangeLanguage=this._register(new i.vl),this.onDidChangeLanguage=this._onDidChangeLanguage.event,this._onDidChangeLanguageConfiguration=this._register(new i.vl),this.onDidChangeLanguageConfiguration=this._onDidChangeLanguageConfiguration.event,this._onDidChangeTokens=this._register(new i.vl),this.onDidChangeTokens=this._onDidChangeTokens.event,this._tokensDisposables=this._register(new r.Cm),this._register(this._languageConfigurationService.onDidChange((e=>{e.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})}))),this._register(i.Jh.filter(Jn.OB.onDidChange,(e=>e.changedLanguages.includes(this._languageId)))((()=>{this.createPreferredTokenProvider()}))),this.createPreferredTokenProvider()}createGrammarTokens(){return this._register(new Ii(this._languageService.languageIdCodec,this._textModel,(()=>this._languageId),this._attachedViews))}createTreeSitterTokens(){return this._register(new bi(this._treeSitterService,this._languageService.languageIdCodec,this._textModel,(()=>this._languageId)))}createTokens(e){const t=void 0!==this._tokens;this._tokens?.dispose(),this._tokens=e?this.createTreeSitterTokens():this.createGrammarTokens(),this._tokensDisposables.clear(),this._tokensDisposables.add(this._tokens.onDidChangeTokens((e=>{this._emitModelTokensChangedEvent(e)}))),this._tokensDisposables.add(this._tokens.onDidChangeBackgroundTokenizationState((e=>{this._bracketPairsTextModelPart.handleDidChangeBackgroundTokenizationState()}))),t&&this._tokens.resetTokenization()}createPreferredTokenProvider(){Jn.OB.get(this._languageId)?this._tokens instanceof bi||this.createTokens(!0):this._tokens instanceof Ii||this.createTokens(!1)}handleLanguageConfigurationServiceChange(e){e.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})}handleDidChangeContent(e){if(e.isFlush)this._semanticTokens.flush();else if(!e.isEolChange)for(const t of e.changes){const[e,n,i]=(0,d.W)(t.text);this._semanticTokens.acceptEdit(t.range,e,n,i,t.text.length>0?t.text.charCodeAt(0):0)}this._tokens.handleDidChangeContent(e)}handleDidChangeAttached(){this._tokens.handleDidChangeAttached()}getLineTokens(e){this.validateLineNumber(e);const t=this._tokens.getLineTokens(e);return this._semanticTokens.addSparseTokens(e,t)}_emitModelTokensChangedEvent(e){this._textModel._isDisposing()||(this._bracketPairsTextModelPart.handleDidChangeTokens(e),this._onDidChangeTokens.fire(e))}validateLineNumber(e){if(e<1||e>this._textModel.getLineCount())throw new l.D7("Illegal value for lineNumber")}get hasTokens(){return this._tokens.hasTokens}resetTokenization(){this._tokens.resetTokenization()}get backgroundTokenizationState(){return this._tokens.backgroundTokenizationState}forceTokenization(e){this.validateLineNumber(e),this._tokens.forceTokenization(e)}hasAccurateTokensForLine(e){return this.validateLineNumber(e),this._tokens.hasAccurateTokensForLine(e)}isCheapToTokenize(e){return this.validateLineNumber(e),this._tokens.isCheapToTokenize(e)}tokenizeIfCheap(e){this.validateLineNumber(e),this._tokens.tokenizeIfCheap(e)}getTokenTypeIfInsertingCharacter(e,t,n){return this._tokens.getTokenTypeIfInsertingCharacter(e,t,n)}tokenizeLineWithEdit(e,t,n){return this._tokens.tokenizeLineWithEdit(e,t,n)}setSemanticTokens(e,t){this._semanticTokens.set(e,t),this._emitModelTokensChangedEvent({semanticTokensApplied:null!==e,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]})}hasCompleteSemanticTokens(){return this._semanticTokens.isComplete()}hasSomeSemanticTokens(){return!this._semanticTokens.isEmpty()}setPartialSemanticTokens(e,t){if(this.hasCompleteSemanticTokens())return;const n=this._textModel.validateRange(this._semanticTokens.setPartial(e,t));this._emitModelTokensChangedEvent({semanticTokensApplied:!0,ranges:[{fromLineNumber:n.startLineNumber,toLineNumber:n.endLineNumber}]})}getWordAtPosition(e){this.assertNotDisposed();const t=this._textModel.validatePosition(e),n=this._textModel.getLineContent(t.lineNumber),i=this.getLineTokens(t.lineNumber),r=i.findTokenIndexAtOffset(t.column-1),[s,o]=xi._findLanguageBoundaries(i,r),a=(0,w.Th)(t.column,this.getLanguageConfiguration(i.getLanguageId(r)).getWordDefinition(),n.substring(s,o),s);if(a&&a.startColumn<=e.column&&e.column<=a.endColumn)return a;if(r>0&&s===t.column-1){const[s,o]=xi._findLanguageBoundaries(i,r-1),a=(0,w.Th)(t.column,this.getLanguageConfiguration(i.getLanguageId(r-1)).getWordDefinition(),n.substring(s,o),s);if(a&&a.startColumn<=e.column&&e.column<=a.endColumn)return a}return null}getLanguageConfiguration(e){return this._languageConfigurationService.getLanguageConfiguration(e)}static _findLanguageBoundaries(e,t){const n=e.getLanguageId(t);let i=0;for(let s=t;s>=0&&e.getLanguageId(s)===n;s--)i=e.getStartOffset(s);let r=e.getLineContent().length;for(let s=t,o=e.getCount();s<o&&e.getLanguageId(s)===n;s++)r=e.getEndOffset(s);return[i,r]}getWordUntilPosition(e){const t=this.getWordAtPosition(e);return t?{word:t.word.substr(0,e.column-t.startColumn),startColumn:t.startColumn,endColumn:e.column}:{word:"",startColumn:e.column,endColumn:e.column}}getLanguageId(){return this._languageId}getLanguageIdAtPosition(e,t){const n=this._textModel.validatePosition(new m.y(e,t)),i=this.getLineTokens(n.lineNumber);return i.getLanguageId(i.findTokenIndexAtOffset(n.column-1))}setLanguageId(e,t="api"){if(this._languageId===e)return;const n={oldLanguage:this._languageId,newLanguage:e,source:t};this._languageId=e,this._bracketPairsTextModelPart.handleDidChangeLanguage(n),this._tokens.resetTokenization(),this.createPreferredTokenProvider(),this._onDidChangeLanguage.fire(n),this._onDidChangeLanguageConfiguration.fire({})}};Li=xi=Ei([Fi(4,y.L),Fi(5,se),Fi(6,vi.ITreeSitterParserService)],Li);class Ii extends gi{constructor(e,t,n,i){super(e,t,n),this._tokenizer=null,this._defaultBackgroundTokenizer=null,this._backgroundTokenizer=this._register(new r.HE),this._tokens=new ki(this._languageIdCodec),this._debugBackgroundTokenizer=this._register(new r.HE),this._attachedViewStates=this._register(new r.$w),this._register(Jn.dG.onDidChange((e=>{const t=this.getLanguageId();-1!==e.changedLanguages.indexOf(t)&&this.resetTokenization()}))),this.resetTokenization(),this._register(i.onDidChangeVisibleRanges((({view:e,state:t})=>{if(t){let n=this._attachedViewStates.get(e);n||(n=new fi((()=>this.refreshRanges(n.lineRanges))),this._attachedViewStates.set(e,n)),n.handleStateChange(t)}else this._attachedViewStates.deleteAndDispose(e)})))}resetTokenization(e=!0){this._tokens.flush(),this._debugBackgroundTokens?.flush(),this._debugBackgroundStates&&(this._debugBackgroundStates=new li(this._textModel.getLineCount())),e&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]});const[t,n]=(()=>{if(this._textModel.isTooLargeForTokenization())return[null,null];const e=Jn.dG.get(this.getLanguageId());if(!e)return[null,null];let t;try{t=e.getInitialState()}catch(n){return(0,l.dz)(n),[null,null]}return[e,t]})();if(this._tokenizer=t&&n?new ai(this._textModel.getLineCount(),t,this._textModel,this._languageIdCodec):null,this._backgroundTokenizer.clear(),this._defaultBackgroundTokenizer=null,this._tokenizer){const e={setTokens:e=>{this.setTokens(e)},backgroundTokenizationFinished:()=>{if(2===this._backgroundTokenizationState)return;this._backgroundTokenizationState=2,this._onDidChangeBackgroundTokenizationState.fire()},setEndState:(e,t)=>{if(!this._tokenizer)return;const n=this._tokenizer.store.getFirstInvalidEndStateLineNumber();null!==n&&e>=n&&this._tokenizer?.store.setEndState(e,t)}};t&&t.createBackgroundTokenizer&&!t.backgroundTokenizerShouldOnlyVerifyTokens&&(this._backgroundTokenizer.value=t.createBackgroundTokenizer(this._textModel,e)),this._backgroundTokenizer.value||this._textModel.isTooLargeForTokenization()||(this._backgroundTokenizer.value=this._defaultBackgroundTokenizer=new ui(this._tokenizer,e),this._defaultBackgroundTokenizer.handleChanges()),t?.backgroundTokenizerShouldOnlyVerifyTokens&&t.createBackgroundTokenizer?(this._debugBackgroundTokens=new ki(this._languageIdCodec),this._debugBackgroundStates=new li(this._textModel.getLineCount()),this._debugBackgroundTokenizer.clear(),this._debugBackgroundTokenizer.value=t.createBackgroundTokenizer(this._textModel,{setTokens:e=>{this._debugBackgroundTokens?.setMultilineTokens(e,this._textModel)},backgroundTokenizationFinished(){},setEndState:(e,t)=>{this._debugBackgroundStates?.setEndState(e,t)}})):(this._debugBackgroundTokens=void 0,this._debugBackgroundStates=void 0,this._debugBackgroundTokenizer.value=void 0)}this.refreshAllVisibleLineTokens()}handleDidChangeAttached(){this._defaultBackgroundTokenizer?.handleChanges()}handleDidChangeContent(e){if(e.isFlush)this.resetTokenization(!1);else if(!e.isEolChange){for(const t of e.changes){const[e,n]=(0,d.W)(t.text);this._tokens.acceptEdit(t.range,e,n),this._debugBackgroundTokens?.acceptEdit(t.range,e,n)}this._debugBackgroundStates?.acceptChanges(e.changes),this._tokenizer&&this._tokenizer.store.acceptChanges(e.changes),this._defaultBackgroundTokenizer?.handleChanges()}}setTokens(e){const{changes:t}=this._tokens.setMultilineTokens(e,this._textModel);return t.length>0&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:t}),{changes:t}}refreshAllVisibleLineTokens(){const e=Qn.M.joinMany([...this._attachedViewStates].map((([e,t])=>t.lineRanges)));this.refreshRanges(e)}refreshRanges(e){for(const t of e)this.refreshRange(t.startLineNumber,t.endLineNumberExclusive-1)}refreshRange(e,t){if(!this._tokenizer)return;e=Math.max(1,Math.min(this._textModel.getLineCount(),e)),t=Math.min(this._textModel.getLineCount(),t);const n=new ii,{heuristicTokens:i}=this._tokenizer.tokenizeHeuristically(n,e,t),r=this.setTokens(n.finalize());if(i)for(const s of r.changes)this._backgroundTokenizer.value?.requestTokens(s.fromLineNumber,s.toLineNumber+1);this._defaultBackgroundTokenizer?.checkFinished()}forceTokenization(e){const t=new ii;this._tokenizer?.updateTokensUntilLine(t,e),this.setTokens(t.finalize()),this._defaultBackgroundTokenizer?.checkFinished()}hasAccurateTokensForLine(e){return!this._tokenizer||this._tokenizer.hasAccurateTokensForLine(e)}isCheapToTokenize(e){return!this._tokenizer||this._tokenizer.isCheapToTokenize(e)}getLineTokens(e){const t=this._textModel.getLineContent(e),n=this._tokens.getTokens(this._textModel.getLanguageId(),e-1,t);if(this._debugBackgroundTokens&&this._debugBackgroundStates&&this._tokenizer&&this._debugBackgroundStates.getFirstInvalidEndStateLineNumberOrMax()>e&&this._tokenizer.store.getFirstInvalidEndStateLineNumberOrMax()>e){const i=this._debugBackgroundTokens.getTokens(this._textModel.getLanguageId(),e-1,t);!n.equals(i)&&this._debugBackgroundTokenizer.value?.reportMismatchingTokens&&this._debugBackgroundTokenizer.value.reportMismatchingTokens(e)}return n}getTokenTypeIfInsertingCharacter(e,t,n){if(!this._tokenizer)return 0;const i=this._textModel.validatePosition(new m.y(e,t));return this.forceTokenization(i.lineNumber),this._tokenizer.getTokenTypeIfInsertingCharacter(i,n)}tokenizeLineWithEdit(e,t,n){if(!this._tokenizer)return null;const i=this._textModel.validatePosition(e);return this.forceTokenization(i.lineNumber),this._tokenizer.tokenizeLineWithEdit(i,t,n)}get hasTokens(){return this._tokens.hasTokens}}class Ti{constructor(){this.changeType=1}}class Ni{static applyInjectedText(e,t){if(!t||0===t.length)return e;let n="",i=0;for(const r of t)n+=e.substring(i,r.column-1),i=r.column-1,n+=r.options.content;return n+=e.substring(i),n}static fromDecorations(e){const t=[];for(const n of e)n.options.before&&n.options.before.content.length>0&&t.push(new Ni(n.ownerId,n.range.startLineNumber,n.range.startColumn,n.options.before,0)),n.options.after&&n.options.after.content.length>0&&t.push(new Ni(n.ownerId,n.range.endLineNumber,n.range.endColumn,n.options.after,1));return t.sort(((e,t)=>e.lineNumber===t.lineNumber?e.column===t.column?e.order-t.order:e.column-t.column:e.lineNumber-t.lineNumber)),t}constructor(e,t,n,i,r){this.ownerId=e,this.lineNumber=t,this.column=n,this.options=i,this.order=r}}class Ri{constructor(e,t,n){this.changeType=2,this.lineNumber=e,this.detail=t,this.injectedText=n}}class Di{constructor(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t}}class Ai{constructor(e,t,n,i){this.changeType=4,this.injectedTexts=i,this.fromLineNumber=e,this.toLineNumber=t,this.detail=n}}class Mi{constructor(){this.changeType=5}}class Oi{constructor(e,t,n,i){this.changes=e,this.versionId=t,this.isUndoing=n,this.isRedoing=i,this.resultingSelection=null}containsEvent(e){for(let t=0,n=this.changes.length;t<n;t++){if(this.changes[t].changeType===e)return!0}return!1}static merge(e,t){const n=[].concat(e.changes).concat(t.changes),i=t.versionId,r=e.isUndoing||t.isUndoing,s=e.isRedoing||t.isRedoing;return new Oi(n,i,r,s)}}class zi{constructor(e){this.changes=e}}class Pi{constructor(e,t){this.rawContentChangedEvent=e,this.contentChangedEvent=t}merge(e){const t=Oi.merge(this.rawContentChangedEvent,e.rawContentChangedEvent),n=Pi._mergeChangeEvents(this.contentChangedEvent,e.contentChangedEvent);return new Pi(t,n)}static _mergeChangeEvents(e,t){const n=[].concat(e.changes).concat(t.changes),i=t.eol,r=t.versionId,s=e.isUndoing||t.isUndoing,o=e.isRedoing||t.isRedoing,a=e.isFlush||t.isFlush;return{changes:n,eol:i,isEolChange:e.isEolChange&&t.isEolChange,versionId:r,isUndoing:s,isRedoing:o,isFlush:a}}}const Bi=(0,K.u1)("undoRedoService");class Wi{static{this._ID=0}constructor(){this.id=Wi._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}static{this.None=new Wi}}class Vi{static{this._ID=0}constructor(){this.id=Vi._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}static{this.None=new Vi}}var Ui,$i=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},qi=function(e,t){return function(n,i){t(n,i,e)}};function ji(e,t){let n;return n="string"===typeof e?function(e){const t=new Gn;return t.acceptChunk(e),t.finish()}(e):fe.nk(e)?function(e){const t=new Gn;let n;for(;"string"===typeof(n=e.read());)t.acceptChunk(n);return t.finish()}(e):e,n.create(t)}let Ki=0;class Hi{constructor(e){this._source=e,this._eos=!1}read(){if(this._eos)return null;const e=[];let t=0,n=0;for(;;){const i=this._source.read();if(null===i)return this._eos=!0,0===t?null:e.join("");if(i.length>0&&(e[t++]=i,n+=i.length),n>=65536)return e.join("")}}}const Gi=()=>{throw new Error("Invalid change accessor")};let Qi=class extends r.jG{static{Ui=this}static{this._MODEL_SYNC_LIMIT=52428800}static{this.LARGE_FILE_SIZE_THRESHOLD=20971520}static{this.LARGE_FILE_LINE_COUNT_THRESHOLD=3e5}static{this.LARGE_FILE_HEAP_OPERATION_THRESHOLD=268435456}static{this.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:b.tabSize,indentSize:b.indentSize,insertSpaces:b.insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:b.trimAutoWhitespace,largeFileOptimizations:b.largeFileOptimizations,bracketPairColorizationOptions:b.bracketPairColorizationOptions}}static resolveOptions(e,t){if(t.detectIndentation){const n=Yt(e,t.tabSize,t.insertSpaces);return new fe.X2({tabSize:n.tabSize,indentSize:"tabSize",insertSpaces:n.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL,bracketPairColorizationOptions:t.bracketPairColorizationOptions})}return new fe.X2(t)}get onDidChangeLanguage(){return this._tokenizationTextModelPart.onDidChangeLanguage}get onDidChangeLanguageConfiguration(){return this._tokenizationTextModelPart.onDidChangeLanguageConfiguration}get onDidChangeTokens(){return this._tokenizationTextModelPart.onDidChangeTokens}onDidChangeContent(e){return this._eventEmitter.slowEvent((t=>e(t.contentChangedEvent)))}onDidChangeContentOrInjectedText(e){return(0,r.qE)(this._eventEmitter.fastEvent((t=>e(t))),this._onDidChangeInjectedText.event((t=>e(t))))}_isDisposing(){return this.__isDisposing}get tokenization(){return this._tokenizationTextModelPart}get bracketPairs(){return this._bracketPairs}get guides(){return this._guidesTextModelPart}constructor(e,t,n,s=null,o,a,l,d){super(),this._undoRedoService=o,this._languageService=a,this._languageConfigurationService=l,this.instantiationService=d,this._onWillDispose=this._register(new i.vl),this.onWillDispose=this._onWillDispose.event,this._onDidChangeDecorations=this._register(new lr((e=>this.handleBeforeFireDecorationsChangedEvent(e)))),this.onDidChangeDecorations=this._onDidChangeDecorations.event,this._onDidChangeOptions=this._register(new i.vl),this.onDidChangeOptions=this._onDidChangeOptions.event,this._onDidChangeAttached=this._register(new i.vl),this.onDidChangeAttached=this._onDidChangeAttached.event,this._onDidChangeInjectedText=this._register(new i.vl),this._eventEmitter=this._register(new cr),this._languageSelectionListener=this._register(new r.HE),this._deltaDecorationCallCnt=0,this._attachedViews=new pi,Ki++,this.id="$model"+Ki,this.isForSimpleWidget=n.isForSimpleWidget,this._associatedResource="undefined"===typeof s||null===s?h.r.parse("inmemory://model/"+Ki):s,this._attachedEditorCount=0;const{textBuffer:u,disposable:p}=ji(e,n.defaultEOL);this._buffer=u,this._bufferDisposable=p,this._options=Ui.resolveOptions(this._buffer,n);const m="string"===typeof t?t:t.languageId;"string"!==typeof t&&(this._languageSelectionListener.value=t.onDidChange((()=>this._setLanguage(t.languageId)))),this._bracketPairs=this._register(new kt(this,this._languageConfigurationService)),this._guidesTextModelPart=this._register(new Ht(this,this._languageConfigurationService)),this._decorationProvider=this._register(new Lt(this)),this._tokenizationTextModelPart=this.instantiationService.createInstance(Li,this,this._bracketPairs,m,this._attachedViews);const g=this._buffer.getLineCount(),b=this._buffer.getValueLengthInRange(new f.Q(1,1,g,this._buffer.getLineLength(g)+1),0);n.largeFileOptimizations?(this._isTooLargeForTokenization=b>Ui.LARGE_FILE_SIZE_THRESHOLD||g>Ui.LARGE_FILE_LINE_COUNT_THRESHOLD,this._isTooLargeForHeapOperation=b>Ui.LARGE_FILE_HEAP_OPERATION_THRESHOLD):(this._isTooLargeForTokenization=!1,this._isTooLargeForHeapOperation=!1),this._isTooLargeForSyncing=b>Ui._MODEL_SYNC_LIMIT,this._versionId=1,this._alternativeVersionId=1,this._initialUndoRedoSnapshot=null,this._isDisposed=!1,this.__isDisposing=!1,this._instanceId=c.tk(Ki),this._lastDecorationId=0,this._decorations=Object.create(null),this._decorationsTree=new Xi,this._commandManager=new Vt(this,this._undoRedoService),this._isUndoing=!1,this._isRedoing=!1,this._trimAutoWhitespaceLines=null,this._register(this._decorationProvider.onDidChange((()=>{this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._onDidChangeDecorations.endDeferredEmit()}))),this._languageService.requestRichLanguageFeatures(m),this._register(this._languageConfigurationService.onDidChange((e=>{this._bracketPairs.handleLanguageConfigurationServiceChange(e),this._tokenizationTextModelPart.handleLanguageConfigurationServiceChange(e)})))}dispose(){this.__isDisposing=!0,this._onWillDispose.fire(),this._tokenizationTextModelPart.dispose(),this._isDisposed=!0,super.dispose(),this._bufferDisposable.dispose(),this.__isDisposing=!1;const e=new Kn([],"","\n",!1,!1,!0,!0);e.dispose(),this._buffer=e,this._bufferDisposable=r.jG.None}_assertNotDisposed(){if(this._isDisposed)throw new l.D7("Model is disposed!")}_emitContentChangedEvent(e,t){this.__isDisposing||(this._tokenizationTextModelPart.handleDidChangeContent(t),this._bracketPairs.handleDidChangeContent(t),this._eventEmitter.fire(new Pi(e,t)))}setValue(e){if(this._assertNotDisposed(),null===e||void 0===e)throw(0,l.Qg)();const{textBuffer:t,disposable:n}=ji(e,this._options.defaultEOL);this._setValueFromTextBuffer(t,n)}_createContentChanged2(e,t,n,i,r,s,o,a){return{changes:[{range:e,rangeOffset:t,rangeLength:n,text:i}],eol:this._buffer.getEOL(),isEolChange:a,versionId:this.getVersionId(),isUndoing:r,isRedoing:s,isFlush:o}}_setValueFromTextBuffer(e,t){this._assertNotDisposed();const n=this.getFullModelRange(),i=this.getValueLengthInRange(n),r=this.getLineCount(),s=this.getLineMaxColumn(r);this._buffer=e,this._bufferDisposable.dispose(),this._bufferDisposable=t,this._increaseVersionId(),this._decorations=Object.create(null),this._decorationsTree=new Xi,this._commandManager.clear(),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new Oi([new Ti],this._versionId,!1,!1),this._createContentChanged2(new f.Q(1,1,r,s),0,i,this.getValue(),!1,!1,!0,!1))}setEOL(e){this._assertNotDisposed();const t=1===e?"\r\n":"\n";if(this._buffer.getEOL()===t)return;const n=this.getFullModelRange(),i=this.getValueLengthInRange(n),r=this.getLineCount(),s=this.getLineMaxColumn(r);this._onBeforeEOLChange(),this._buffer.setEOL(t),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new Oi([new Mi],this._versionId,!1,!1),this._createContentChanged2(new f.Q(1,1,r,s),0,i,this.getValue(),!1,!1,!1,!0))}_onBeforeEOLChange(){this._decorationsTree.ensureAllNodesHaveRanges(this)}_onAfterEOLChange(){const e=this.getVersionId(),t=this._decorationsTree.collectNodesPostOrder();for(let n=0,i=t.length;n<i;n++){const i=t[n],r=i.range,s=i.cachedAbsoluteStart-i.start,o=this._buffer.getOffsetAt(r.startLineNumber,r.startColumn),a=this._buffer.getOffsetAt(r.endLineNumber,r.endColumn);i.cachedAbsoluteStart=o,i.cachedAbsoluteEnd=a,i.cachedVersionId=e,i.start=o-s,i.end=a-s,wn(i)}}onBeforeAttached(){return this._attachedEditorCount++,1===this._attachedEditorCount&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0)),this._attachedViews.attachView()}onBeforeDetached(e){this._attachedEditorCount--,0===this._attachedEditorCount&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0)),this._attachedViews.detachView(e)}isAttachedToEditor(){return this._attachedEditorCount>0}getAttachedEditorCount(){return this._attachedEditorCount}isTooLargeForSyncing(){return this._isTooLargeForSyncing}isTooLargeForTokenization(){return this._isTooLargeForTokenization}isTooLargeForHeapOperation(){return this._isTooLargeForHeapOperation}isDisposed(){return this._isDisposed}isDominatedByLongLines(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;let e=0,t=0;const n=this._buffer.getLineCount();for(let i=1;i<=n;i++){const n=this._buffer.getLineLength(i);n>=1e4?t+=n:e+=n}return t>e}get uri(){return this._associatedResource}getOptions(){return this._assertNotDisposed(),this._options}getFormattingOptions(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}}updateOptions(e){this._assertNotDisposed();const t="undefined"!==typeof e.tabSize?e.tabSize:this._options.tabSize,n="undefined"!==typeof e.indentSize?e.indentSize:this._options.originalIndentSize,i="undefined"!==typeof e.insertSpaces?e.insertSpaces:this._options.insertSpaces,r="undefined"!==typeof e.trimAutoWhitespace?e.trimAutoWhitespace:this._options.trimAutoWhitespace,s="undefined"!==typeof e.bracketColorizationOptions?e.bracketColorizationOptions:this._options.bracketPairColorizationOptions,o=new fe.X2({tabSize:t,indentSize:n,insertSpaces:i,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:r,bracketPairColorizationOptions:s});if(this._options.equals(o))return;const a=this._options.createChangeEvent(o);this._options=o,this._bracketPairs.handleDidChangeOptions(a),this._decorationProvider.handleDidChangeOptions(a),this._onDidChangeOptions.fire(a)}detectIndentation(e,t){this._assertNotDisposed();const n=Yt(this._buffer,t,e);this.updateOptions({insertSpaces:n.insertSpaces,tabSize:n.tabSize,indentSize:n.tabSize})}normalizeIndentation(e){return this._assertNotDisposed(),p(e,this._options.indentSize,this._options.insertSpaces)}getVersionId(){return this._assertNotDisposed(),this._versionId}mightContainRTL(){return this._buffer.mightContainRTL()}mightContainUnusualLineTerminators(){return this._buffer.mightContainUnusualLineTerminators()}removeUnusualLineTerminators(e=null){const t=this.findMatches(c._J.source,!1,!0,!1,null,!1,1073741824);this._buffer.resetMightContainUnusualLineTerminators(),this.pushEditOperations(e,t.map((e=>({range:e.range,text:null}))),(()=>null))}mightContainNonBasicASCII(){return this._buffer.mightContainNonBasicASCII()}getAlternativeVersionId(){return this._assertNotDisposed(),this._alternativeVersionId}getInitialUndoRedoSnapshot(){return this._assertNotDisposed(),this._initialUndoRedoSnapshot}getOffsetAt(e){this._assertNotDisposed();const t=this._validatePosition(e.lineNumber,e.column,0);return this._buffer.getOffsetAt(t.lineNumber,t.column)}getPositionAt(e){this._assertNotDisposed();const t=Math.min(this._buffer.getLength(),Math.max(0,e));return this._buffer.getPositionAt(t)}_increaseVersionId(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId}_overwriteVersionId(e){this._versionId=e}_overwriteAlternativeVersionId(e){this._alternativeVersionId=e}_overwriteInitialUndoRedoSnapshot(e){this._initialUndoRedoSnapshot=e}getValue(e,t=!1){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new l.D7("Operation would exceed heap memory limits");const n=this.getFullModelRange(),i=this.getValueInRange(n,e);return t?this._buffer.getBOM()+i:i}createSnapshot(e=!1){return new Hi(this._buffer.createSnapshot(e))}getValueLength(e,t=!1){this._assertNotDisposed();const n=this.getFullModelRange(),i=this.getValueLengthInRange(n,e);return t?this._buffer.getBOM().length+i:i}getValueInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(e),t)}getValueLengthInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(e),t)}getCharacterCountInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(e),t)}getLineCount(){return this._assertNotDisposed(),this._buffer.getLineCount()}getLineContent(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineContent(e)}getLineLength(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineLength(e)}getLinesContent(){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new l.D7("Operation would exceed heap memory limits");return this._buffer.getLinesContent()}getEOL(){return this._assertNotDisposed(),this._buffer.getEOL()}getEndOfLineSequence(){return this._assertNotDisposed(),"\n"===this._buffer.getEOL()?0:1}getLineMinColumn(e){return this._assertNotDisposed(),1}getLineMaxColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineLength(e)+1}getLineFirstNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)}getLineLastNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)}_validateRangeRelaxedNoAllocations(e){const t=this._buffer.getLineCount(),n=e.startLineNumber,i=e.startColumn;let r=Math.floor("number"!==typeof n||isNaN(n)?1:n),s=Math.floor("number"!==typeof i||isNaN(i)?1:i);if(r<1)r=1,s=1;else if(r>t)r=t,s=this.getLineMaxColumn(r);else if(s<=1)s=1;else{const e=this.getLineMaxColumn(r);s>=e&&(s=e)}const o=e.endLineNumber,a=e.endColumn;let l=Math.floor("number"!==typeof o||isNaN(o)?1:o),c=Math.floor("number"!==typeof a||isNaN(a)?1:a);if(l<1)l=1,c=1;else if(l>t)l=t,c=this.getLineMaxColumn(l);else if(c<=1)c=1;else{const e=this.getLineMaxColumn(l);c>=e&&(c=e)}return n===r&&i===s&&o===l&&a===c&&e instanceof f.Q&&!(e instanceof g.L)?e:new f.Q(r,s,l,c)}_isValidPosition(e,t,n){if("number"!==typeof e||"number"!==typeof t)return!1;if(isNaN(e)||isNaN(t))return!1;if(e<1||t<1)return!1;if((0|e)!==e||(0|t)!==t)return!1;if(e>this._buffer.getLineCount())return!1;if(1===t)return!0;if(t>this.getLineMaxColumn(e))return!1;if(1===n){const n=this._buffer.getLineCharCode(e,t-2);if(c.pc(n))return!1}return!0}_validatePosition(e,t,n){const i=Math.floor("number"!==typeof e||isNaN(e)?1:e),r=Math.floor("number"!==typeof t||isNaN(t)?1:t),s=this._buffer.getLineCount();if(i<1)return new m.y(1,1);if(i>s)return new m.y(s,this.getLineMaxColumn(s));if(r<=1)return new m.y(i,1);const o=this.getLineMaxColumn(i);if(r>=o)return new m.y(i,o);if(1===n){const e=this._buffer.getLineCharCode(i,r-2);if(c.pc(e))return new m.y(i,r-1)}return new m.y(i,r)}validatePosition(e){return this._assertNotDisposed(),e instanceof m.y&&this._isValidPosition(e.lineNumber,e.column,1)?e:this._validatePosition(e.lineNumber,e.column,1)}_isValidRange(e,t){const n=e.startLineNumber,i=e.startColumn,r=e.endLineNumber,s=e.endColumn;if(!this._isValidPosition(n,i,0))return!1;if(!this._isValidPosition(r,s,0))return!1;if(1===t){const e=i>1?this._buffer.getLineCharCode(n,i-2):0,t=s>1&&s<=this._buffer.getLineLength(r)?this._buffer.getLineCharCode(r,s-2):0,o=c.pc(e),a=c.pc(t);return!o&&!a}return!0}validateRange(e){if(this._assertNotDisposed(),e instanceof f.Q&&!(e instanceof g.L)&&this._isValidRange(e,1))return e;const t=this._validatePosition(e.startLineNumber,e.startColumn,0),n=this._validatePosition(e.endLineNumber,e.endColumn,0),i=t.lineNumber,r=t.column,s=n.lineNumber,o=n.column;{const e=r>1?this._buffer.getLineCharCode(i,r-2):0,t=o>1&&o<=this._buffer.getLineLength(s)?this._buffer.getLineCharCode(s,o-2):0,n=c.pc(e),a=c.pc(t);return n||a?i===s&&r===o?new f.Q(i,r-1,s,o-1):n&&a?new f.Q(i,r-1,s,o+1):n?new f.Q(i,r-1,s,o):new f.Q(i,r,s,o+1):new f.Q(i,r,s,o)}}modifyPosition(e,t){this._assertNotDisposed();const n=this.getOffsetAt(e)+t;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,n)))}getFullModelRange(){this._assertNotDisposed();const e=this.getLineCount();return new f.Q(1,1,e,this.getLineMaxColumn(e))}findMatchesLineByLine(e,t,n,i){return this._buffer.findMatchesLineByLine(e,t,n,i)}findMatches(e,t,n,i,r,s,o=999){this._assertNotDisposed();let a=null;null!==t&&(Array.isArray(t)||(t=[t]),t.every((e=>f.Q.isIRange(e)))&&(a=t.map((e=>this.validateRange(e))))),null===a&&(a=[this.getFullModelRange()]),a=a.sort(((e,t)=>e.startLineNumber-t.startLineNumber||e.startColumn-t.startColumn));const l=[];let c;if(l.push(a.reduce(((e,t)=>f.Q.areIntersecting(e,t)?e.plusRange(t):(l.push(e),t)))),!n&&e.indexOf("\n")<0){const t=new On.lt(e,n,i,r).parseSearchRequest();if(!t)return[];c=e=>this.findMatchesLineByLine(e,t,s,o)}else c=t=>On.hB.findMatches(this,new On.lt(e,n,i,r),t,s,o);return l.map(c).reduce(((e,t)=>e.concat(t)),[])}findNextMatch(e,t,n,i,r,s){this._assertNotDisposed();const o=this.validatePosition(t);if(!n&&e.indexOf("\n")<0){const t=new On.lt(e,n,i,r).parseSearchRequest();if(!t)return null;const a=this.getLineCount();let l=new f.Q(o.lineNumber,o.column,a,this.getLineMaxColumn(a)),c=this.findMatchesLineByLine(l,t,s,1);return On.hB.findNextMatch(this,new On.lt(e,n,i,r),o,s),c.length>0?c[0]:(l=new f.Q(1,1,o.lineNumber,this.getLineMaxColumn(o.lineNumber)),c=this.findMatchesLineByLine(l,t,s,1),c.length>0?c[0]:null)}return On.hB.findNextMatch(this,new On.lt(e,n,i,r),o,s)}findPreviousMatch(e,t,n,i,r,s){this._assertNotDisposed();const o=this.validatePosition(t);return On.hB.findPreviousMatch(this,new On.lt(e,n,i,r),o,s)}pushStackElement(){this._commandManager.pushStackElement()}popStackElement(){this._commandManager.popStackElement()}pushEOL(e){if(("\n"===this.getEOL()?0:1)!==e)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEOL(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_validateEditOperation(e){return e instanceof fe.Wo?e:new fe.Wo(e.identifier||null,this.validateRange(e.range),e.text,e.forceMoveMarkers||!1,e.isAutoWhitespaceEdit||!1,e._isTracked||!1)}_validateEditOperations(e){const t=[];for(let n=0,i=e.length;n<i;n++)t[n]=this._validateEditOperation(e[n]);return t}pushEditOperations(e,t,n,i){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(e,this._validateEditOperations(t),n,i)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_pushEditOperations(e,t,n,i){if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){const n=t.map((e=>({range:this.validateRange(e.range),text:e.text})));let i=!0;if(e)for(let t=0,r=e.length;t<r;t++){const r=e[t];let s=!1;for(let e=0,t=n.length;e<t;e++){const t=n[e].range,i=t.startLineNumber>r.endLineNumber,o=r.startLineNumber>t.endLineNumber;if(!i&&!o){s=!0;break}}if(!s){i=!1;break}}if(i)for(let e=0,r=this._trimAutoWhitespaceLines.length;e<r;e++){const i=this._trimAutoWhitespaceLines[e],r=this.getLineMaxColumn(i);let s=!0;for(let e=0,t=n.length;e<t;e++){const t=n[e].range,o=n[e].text;if(!(i<t.startLineNumber||i>t.endLineNumber)&&(!(i===t.startLineNumber&&t.startColumn===r&&t.isEmpty()&&o&&o.length>0&&"\n"===o.charAt(0))&&!(i===t.startLineNumber&&1===t.startColumn&&t.isEmpty()&&o&&o.length>0&&"\n"===o.charAt(o.length-1)))){s=!1;break}}if(s){const e=new f.Q(i,1,i,r);t.push(new fe.Wo(null,e,null,!1,!1,!1))}}this._trimAutoWhitespaceLines=null}return null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEditOperation(e,t,n,i)}_applyUndo(e,t,n,i){const r=e.map((e=>{const t=this.getPositionAt(e.newPosition),n=this.getPositionAt(e.newEnd);return{range:new f.Q(t.lineNumber,t.column,n.lineNumber,n.column),text:e.oldText}}));this._applyUndoRedoEdits(r,t,!0,!1,n,i)}_applyRedo(e,t,n,i){const r=e.map((e=>{const t=this.getPositionAt(e.oldPosition),n=this.getPositionAt(e.oldEnd);return{range:new f.Q(t.lineNumber,t.column,n.lineNumber,n.column),text:e.newText}}));this._applyUndoRedoEdits(r,t,!1,!0,n,i)}_applyUndoRedoEdits(e,t,n,i,r,s){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._isUndoing=n,this._isRedoing=i,this.applyEdits(e,!1),this.setEOL(t),this._overwriteAlternativeVersionId(r)}finally{this._isUndoing=!1,this._isRedoing=!1,this._eventEmitter.endDeferredEmit(s),this._onDidChangeDecorations.endDeferredEmit()}}applyEdits(e,t=!1){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit();const n=this._validateEditOperations(e);return this._doApplyEdits(n,t)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_doApplyEdits(e,t){const n=this._buffer.getLineCount(),i=this._buffer.applyEdits(e,this._options.trimAutoWhitespace,t),r=this._buffer.getLineCount(),s=i.changes;if(this._trimAutoWhitespaceLines=i.trimAutoWhitespaceLineNumbers,0!==s.length){for(let n=0,i=s.length;n<i;n++){const e=s[n];this._decorationsTree.acceptReplace(e.rangeOffset,e.rangeLength,e.text.length,e.forceMoveMarkers)}const e=[];this._increaseVersionId();let t=n;for(let n=0,i=s.length;n<i;n++){const i=s[n],[a]=(0,d.W)(i.text);this._onDidChangeDecorations.fire();const l=i.range.startLineNumber,c=i.range.endLineNumber,h=c-l,u=a,p=Math.min(h,u),f=u-h,g=r-t-f+l,b=g,v=g+u,y=this._decorationsTree.getInjectedTextInInterval(this,this.getOffsetAt(new m.y(b,1)),this.getOffsetAt(new m.y(v,this.getLineMaxColumn(v))),0),w=Ni.fromDecorations(y),_=new o.j3(w);for(let t=p;t>=0;t--){const n=l+t,i=g+t;_.takeFromEndWhile((e=>e.lineNumber>i));const r=_.takeFromEndWhile((e=>e.lineNumber===i));e.push(new Ri(n,this.getLineContent(i),r))}if(p<h){const t=l+p;e.push(new Di(t+1,c))}if(p<u){const n=new o.j3(w),i=l+p,s=u-p,a=r-t-s+i+1,c=[],h=[];for(let e=0;e<s;e++){const t=a+e;h[e]=this.getLineContent(t),n.takeWhile((e=>e.lineNumber<t)),c[e]=n.takeWhile((e=>e.lineNumber===t))}e.push(new Ai(i+1,l+u,h,c))}t+=f}this._emitContentChangedEvent(new Oi(e,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:s,eol:this._buffer.getEOL(),isEolChange:!1,versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return null===i.reverseEdits?void 0:i.reverseEdits}undo(){return this._undoRedoService.undo(this.uri)}canUndo(){return this._undoRedoService.canUndo(this.uri)}redo(){return this._undoRedoService.redo(this.uri)}canRedo(){return this._undoRedoService.canRedo(this.uri)}handleBeforeFireDecorationsChangedEvent(e){if(null===e||0===e.size)return;const t=Array.from(e).map((e=>new Ri(e,this.getLineContent(e),this._getInjectedTextInLine(e))));this._onDidChangeInjectedText.fire(new zi(t))}changeDecorations(e,t=0){this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(t,e)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_changeDecorations(e,t){const n={addDecoration:(t,n)=>this._deltaDecorationsImpl(e,[],[{range:t,options:n}])[0],changeDecoration:(e,t)=>{this._changeDecorationImpl(e,t)},changeDecorationOptions:(e,t)=>{this._changeDecorationOptionsImpl(e,ar(t))},removeDecoration:t=>{this._deltaDecorationsImpl(e,[t],[])},deltaDecorations:(t,n)=>0===t.length&&0===n.length?[]:this._deltaDecorationsImpl(e,t,n)};let i=null;try{i=t(n)}catch(r){(0,l.dz)(r)}return n.addDecoration=Gi,n.changeDecoration=Gi,n.changeDecorationOptions=Gi,n.removeDecoration=Gi,n.deltaDecorations=Gi,i}deltaDecorations(e,t,n=0){if(this._assertNotDisposed(),e||(e=[]),0===e.length&&0===t.length)return[];try{return this._deltaDecorationCallCnt++,this._deltaDecorationCallCnt>1&&(console.warn("Invoking deltaDecorations recursively could lead to leaking decorations."),(0,l.dz)(new Error("Invoking deltaDecorations recursively could lead to leaking decorations."))),this._onDidChangeDecorations.beginDeferredEmit(),this._deltaDecorationsImpl(n,e,t)}finally{this._onDidChangeDecorations.endDeferredEmit(),this._deltaDecorationCallCnt--}}_getTrackedRange(e){return this.getDecorationRange(e)}_setTrackedRange(e,t,n){const i=e?this._decorations[e]:null;if(!i)return t?this._deltaDecorationsImpl(0,[],[{range:t,options:or[n]}],!0)[0]:null;if(!t)return this._decorationsTree.delete(i),delete this._decorations[i.id],null;const r=this._validateRangeRelaxedNoAllocations(t),s=this._buffer.getOffsetAt(r.startLineNumber,r.startColumn),o=this._buffer.getOffsetAt(r.endLineNumber,r.endColumn);return this._decorationsTree.delete(i),i.reset(this.getVersionId(),s,o,r),i.setOptions(or[n]),this._decorationsTree.insert(i),i.id}removeAllDecorationsWithOwnerId(e){if(this._isDisposed)return;const t=this._decorationsTree.collectNodesFromOwner(e);for(let n=0,i=t.length;n<i;n++){const e=t[n];this._decorationsTree.delete(e),delete this._decorations[e.id]}}getDecorationOptions(e){const t=this._decorations[e];return t?t.options:null}getDecorationRange(e){const t=this._decorations[e];return t?this._decorationsTree.getNodeRange(this,t):null}getLineDecorations(e,t=0,n=!1){return e<1||e>this.getLineCount()?[]:this.getLinesDecorations(e,e,t,n)}getLinesDecorations(e,t,n=0,i=!1,r=!1){const s=this.getLineCount(),a=Math.min(s,Math.max(1,e)),l=Math.min(s,Math.max(1,t)),c=this.getLineMaxColumn(l),h=new f.Q(a,1,l,c),d=this._getDecorationsInRange(h,n,i,r);return(0,o.E4)(d,this._decorationProvider.getDecorationsInRange(h,n,i)),d}getDecorationsInRange(e,t=0,n=!1,i=!1,r=!1){const s=this.validateRange(e),a=this._getDecorationsInRange(s,t,n,r);return(0,o.E4)(a,this._decorationProvider.getDecorationsInRange(s,t,n,i)),a}getOverviewRulerDecorations(e=0,t=!1){return this._decorationsTree.getAll(this,e,t,!0,!1)}getInjectedTextDecorations(e=0){return this._decorationsTree.getAllInjectedText(this,e)}_getInjectedTextInLine(e){const t=this._buffer.getOffsetAt(e,1),n=t+this._buffer.getLineLength(e),i=this._decorationsTree.getInjectedTextInInterval(this,t,n,0);return Ni.fromDecorations(i).filter((t=>t.lineNumber===e))}getAllDecorations(e=0,t=!1){let n=this._decorationsTree.getAll(this,e,t,!1,!1);return n=n.concat(this._decorationProvider.getAllDecorations(e,t)),n}getAllMarginDecorations(e=0){return this._decorationsTree.getAll(this,e,!1,!1,!0)}_getDecorationsInRange(e,t,n,i){const r=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),s=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn);return this._decorationsTree.getAllInInterval(this,r,s,t,n,i)}getRangeAt(e,t){return this._buffer.getRangeAt(e,t-e)}_changeDecorationImpl(e,t){const n=this._decorations[e];if(!n)return;if(n.options.after){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.endLineNumber)}if(n.options.before){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.startLineNumber)}const i=this._validateRangeRelaxedNoAllocations(t),r=this._buffer.getOffsetAt(i.startLineNumber,i.startColumn),s=this._buffer.getOffsetAt(i.endLineNumber,i.endColumn);this._decorationsTree.delete(n),n.reset(this.getVersionId(),r,s,i),this._decorationsTree.insert(n),this._onDidChangeDecorations.checkAffectedAndFire(n.options),n.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(i.endLineNumber),n.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(i.startLineNumber)}_changeDecorationOptionsImpl(e,t){const n=this._decorations[e];if(!n)return;const i=!(!n.options.overviewRuler||!n.options.overviewRuler.color),r=!(!t.overviewRuler||!t.overviewRuler.color);if(this._onDidChangeDecorations.checkAffectedAndFire(n.options),this._onDidChangeDecorations.checkAffectedAndFire(t),n.options.after||t.after){const e=this._decorationsTree.getNodeRange(this,n);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(n.options.before||t.before){const e=this._decorationsTree.getNodeRange(this,n);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}const s=i!==r,o=function(e){return!!e.after||!!e.before}(t)!==Yi(n);s||o?(this._decorationsTree.delete(n),n.setOptions(t),this._decorationsTree.insert(n)):n.setOptions(t)}_deltaDecorationsImpl(e,t,n,i=!1){const r=this.getVersionId(),s=t.length;let o=0;const a=n.length;let l=0;this._onDidChangeDecorations.beginDeferredEmit();try{const c=new Array(a);for(;o<s||l<a;){let h=null;if(o<s){do{h=this._decorations[t[o++]]}while(!h&&o<s);if(h){if(h.options.after){const e=this._decorationsTree.getNodeRange(this,h);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(h.options.before){const e=this._decorationsTree.getNodeRange(this,h);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}this._decorationsTree.delete(h),i||this._onDidChangeDecorations.checkAffectedAndFire(h.options)}}if(l<a){if(!h){const e=++this._lastDecorationId,t=`${this._instanceId};${e}`;h=new cn(t,0,0),this._decorations[t]=h}const t=n[l],s=this._validateRangeRelaxedNoAllocations(t.range),o=ar(t.options),a=this._buffer.getOffsetAt(s.startLineNumber,s.startColumn),d=this._buffer.getOffsetAt(s.endLineNumber,s.endColumn);h.ownerId=e,h.reset(r,a,d,s),h.setOptions(o),h.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(s.endLineNumber),h.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(s.startLineNumber),i||this._onDidChangeDecorations.checkAffectedAndFire(o),this._decorationsTree.insert(h),c[l]=h.id,l++}else h&&delete this._decorations[h.id]}return c}finally{this._onDidChangeDecorations.endDeferredEmit()}}getLanguageId(){return this.tokenization.getLanguageId()}setLanguage(e,t){"string"===typeof e?(this._languageSelectionListener.clear(),this._setLanguage(e,t)):(this._languageSelectionListener.value=e.onDidChange((()=>this._setLanguage(e.languageId,t))),this._setLanguage(e.languageId,t))}_setLanguage(e,t){this.tokenization.setLanguageId(e,t),this._languageService.requestRichLanguageFeatures(e)}getLanguageIdAtPosition(e,t){return this.tokenization.getLanguageIdAtPosition(e,t)}getWordAtPosition(e){return this._tokenizationTextModelPart.getWordAtPosition(e)}getWordUntilPosition(e){return this._tokenizationTextModelPart.getWordUntilPosition(e)}normalizePosition(e,t){return e}getLineIndentColumn(e){return function(e){let t=0;for(const n of e){if(" "!==n&&"\t"!==n)break;t++}return t}(this.getLineContent(e))+1}};function Ji(e){return!(!e.options.overviewRuler||!e.options.overviewRuler.color)}function Yi(e){return!!e.options.after||!!e.options.before}Qi=Ui=$i([qi(4,Bi),qi(5,y.L),qi(6,se),qi(7,K._Y)],Qi);class Xi{constructor(){this._decorationsTree0=new dn,this._decorationsTree1=new dn,this._injectedTextDecorationsTree=new dn}ensureAllNodesHaveRanges(e){this.getAll(e,0,!1,!1,!1)}_ensureNodesHaveRanges(e,t){for(const n of t)null===n.range&&(n.range=e.getRangeAt(n.cachedAbsoluteStart,n.cachedAbsoluteEnd));return t}getAllInInterval(e,t,n,i,r,s){const o=e.getVersionId(),a=this._intervalSearch(t,n,i,r,o,s);return this._ensureNodesHaveRanges(e,a)}_intervalSearch(e,t,n,i,r,s){const o=this._decorationsTree0.intervalSearch(e,t,n,i,r,s),a=this._decorationsTree1.intervalSearch(e,t,n,i,r,s),l=this._injectedTextDecorationsTree.intervalSearch(e,t,n,i,r,s);return o.concat(a).concat(l)}getInjectedTextInInterval(e,t,n,i){const r=e.getVersionId(),s=this._injectedTextDecorationsTree.intervalSearch(t,n,i,!1,r,!1);return this._ensureNodesHaveRanges(e,s).filter((e=>e.options.showIfCollapsed||!e.range.isEmpty()))}getAllInjectedText(e,t){const n=e.getVersionId(),i=this._injectedTextDecorationsTree.search(t,!1,n,!1);return this._ensureNodesHaveRanges(e,i).filter((e=>e.options.showIfCollapsed||!e.range.isEmpty()))}getAll(e,t,n,i,r){const s=e.getVersionId(),o=this._search(t,n,i,s,r);return this._ensureNodesHaveRanges(e,o)}_search(e,t,n,i,r){if(n)return this._decorationsTree1.search(e,t,i,r);{const n=this._decorationsTree0.search(e,t,i,r),s=this._decorationsTree1.search(e,t,i,r),o=this._injectedTextDecorationsTree.search(e,t,i,r);return n.concat(s).concat(o)}}collectNodesFromOwner(e){const t=this._decorationsTree0.collectNodesFromOwner(e),n=this._decorationsTree1.collectNodesFromOwner(e),i=this._injectedTextDecorationsTree.collectNodesFromOwner(e);return t.concat(n).concat(i)}collectNodesPostOrder(){const e=this._decorationsTree0.collectNodesPostOrder(),t=this._decorationsTree1.collectNodesPostOrder(),n=this._injectedTextDecorationsTree.collectNodesPostOrder();return e.concat(t).concat(n)}insert(e){Yi(e)?this._injectedTextDecorationsTree.insert(e):Ji(e)?this._decorationsTree1.insert(e):this._decorationsTree0.insert(e)}delete(e){Yi(e)?this._injectedTextDecorationsTree.delete(e):Ji(e)?this._decorationsTree1.delete(e):this._decorationsTree0.delete(e)}getNodeRange(e,t){const n=e.getVersionId();return t.cachedVersionId!==n&&this._resolveNode(t,n),null===t.range&&(t.range=e.getRangeAt(t.cachedAbsoluteStart,t.cachedAbsoluteEnd)),t.range}_resolveNode(e,t){Yi(e)?this._injectedTextDecorationsTree.resolveNode(e,t):Ji(e)?this._decorationsTree1.resolveNode(e,t):this._decorationsTree0.resolveNode(e,t)}acceptReplace(e,t,n,i){this._decorationsTree0.acceptReplace(e,t,n,i),this._decorationsTree1.acceptReplace(e,t,n,i),this._injectedTextDecorationsTree.acceptReplace(e,t,n,i)}}function Zi(e){return e.replace(/[^a-z0-9\-_]/gi," ")}class er{constructor(e){this.color=e.color||"",this.darkColor=e.darkColor||""}}class tr extends er{constructor(e){super(e),this._resolvedColor=null,this.position="number"===typeof e.position?e.position:fe.A5.Center}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=null}_resolveColor(e,t){if("string"===typeof e)return e;const n=e?t.getColor(e.id):null;return n?n.toString():""}}class nr{constructor(e){this.position=e?.position??fe.ZS.Center,this.persistLane=e?.persistLane}}class ir extends er{constructor(e){super(e),this.position=e.position,this.sectionHeaderStyle=e.sectionHeaderStyle??null,this.sectionHeaderText=e.sectionHeaderText??null}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=void 0}_resolveColor(e,t){return"string"===typeof e?a.Q1.fromHex(e):t.getColor(e.id)}}class rr{static from(e){return e instanceof rr?e:new rr(e)}constructor(e){this.content=e.content||"",this.inlineClassName=e.inlineClassName||null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.attachedData=e.attachedData||null,this.cursorStops=e.cursorStops||null}}class sr{static register(e){return new sr(e)}static createDynamic(e){return new sr(e)}constructor(e){this.description=e.description,this.blockClassName=e.blockClassName?Zi(e.blockClassName):null,this.blockDoesNotCollapse=e.blockDoesNotCollapse??null,this.blockIsAfterEnd=e.blockIsAfterEnd??null,this.blockPadding=e.blockPadding??null,this.stickiness=e.stickiness||0,this.zIndex=e.zIndex||0,this.className=e.className?Zi(e.className):null,this.shouldFillLineOnLineBreak=e.shouldFillLineOnLineBreak??null,this.hoverMessage=e.hoverMessage||null,this.glyphMarginHoverMessage=e.glyphMarginHoverMessage||null,this.lineNumberHoverMessage=e.lineNumberHoverMessage||null,this.isWholeLine=e.isWholeLine||!1,this.showIfCollapsed=e.showIfCollapsed||!1,this.collapseOnReplaceEdit=e.collapseOnReplaceEdit||!1,this.overviewRuler=e.overviewRuler?new tr(e.overviewRuler):null,this.minimap=e.minimap?new ir(e.minimap):null,this.glyphMargin=e.glyphMarginClassName?new nr(e.glyphMargin):null,this.glyphMarginClassName=e.glyphMarginClassName?Zi(e.glyphMarginClassName):null,this.linesDecorationsClassName=e.linesDecorationsClassName?Zi(e.linesDecorationsClassName):null,this.lineNumberClassName=e.lineNumberClassName?Zi(e.lineNumberClassName):null,this.linesDecorationsTooltip=e.linesDecorationsTooltip?c.jy(e.linesDecorationsTooltip):null,this.firstLineDecorationClassName=e.firstLineDecorationClassName?Zi(e.firstLineDecorationClassName):null,this.marginClassName=e.marginClassName?Zi(e.marginClassName):null,this.inlineClassName=e.inlineClassName?Zi(e.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=e.beforeContentClassName?Zi(e.beforeContentClassName):null,this.afterContentClassName=e.afterContentClassName?Zi(e.afterContentClassName):null,this.after=e.after?rr.from(e.after):null,this.before=e.before?rr.from(e.before):null,this.hideInCommentTokens=e.hideInCommentTokens??!1,this.hideInStringTokens=e.hideInStringTokens??!1}}sr.EMPTY=sr.register({description:"empty"});const or=[sr.register({description:"tracked-range-always-grows-when-typing-at-edges",stickiness:0}),sr.register({description:"tracked-range-never-grows-when-typing-at-edges",stickiness:1}),sr.register({description:"tracked-range-grows-only-when-typing-before",stickiness:2}),sr.register({description:"tracked-range-grows-only-when-typing-after",stickiness:3})];function ar(e){return e instanceof sr?e:sr.createDynamic(e)}class lr extends r.jG{constructor(e){super(),this.handleBeforeFire=e,this._actual=this._register(new i.vl),this.event=this._actual.event,this._affectedInjectedTextLines=null,this._deferredCnt=0,this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._affectsLineNumber=!1}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(){this._deferredCnt--,0===this._deferredCnt&&(this._shouldFireDeferred&&this.doFire(),this._affectedInjectedTextLines?.clear(),this._affectedInjectedTextLines=null)}recordLineAffectedByInjectedText(e){this._affectedInjectedTextLines||(this._affectedInjectedTextLines=new Set),this._affectedInjectedTextLines.add(e)}checkAffectedAndFire(e){this._affectsMinimap||=!!e.minimap?.position,this._affectsOverviewRuler||=!!e.overviewRuler?.color,this._affectsGlyphMargin||=!!e.glyphMarginClassName,this._affectsLineNumber||=!!e.lineNumberClassName,this.tryFire()}fire(){this._affectsMinimap=!0,this._affectsOverviewRuler=!0,this._affectsGlyphMargin=!0,this.tryFire()}tryFire(){0===this._deferredCnt?this.doFire():this._shouldFireDeferred=!0}doFire(){this.handleBeforeFire(this._affectedInjectedTextLines);const e={affectsMinimap:this._affectsMinimap,affectsOverviewRuler:this._affectsOverviewRuler,affectsGlyphMargin:this._affectsGlyphMargin,affectsLineNumber:this._affectsLineNumber};this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._actual.fire(e)}}class cr extends r.jG{constructor(){super(),this._fastEmitter=this._register(new i.vl),this.fastEvent=this._fastEmitter.event,this._slowEmitter=this._register(new i.vl),this.slowEvent=this._slowEmitter.event,this._deferredCnt=0,this._deferredEvent=null}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(e=null){if(this._deferredCnt--,0===this._deferredCnt&&null!==this._deferredEvent){this._deferredEvent.rawContentChangedEvent.resultingSelection=e;const t=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(t),this._slowEmitter.fire(t)}}fire(e){this._deferredCnt>0?this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e:(this._fastEmitter.fire(e),this._slowEmitter.fire(e))}}var hr,dr=n(360),ur=n(5600),pr=n(6456),mr=n(146),fr=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},gr=function(e,t){return function(n,i){t(n,i,e)}};function br(e){return e.toString()}class vr{constructor(e,t,n){this.model=e,this._modelEventListeners=new r.Cm,this.model=e,this._modelEventListeners.add(e.onWillDispose((()=>t(e)))),this._modelEventListeners.add(e.onDidChangeLanguage((t=>n(e,t))))}dispose(){this._modelEventListeners.dispose()}}const yr=s.j9||s.zx?1:2;class wr{constructor(e,t,n,i,r,s,o,a){this.uri=e,this.initialUndoRedoSnapshot=t,this.time=n,this.sharesUndoRedoStack=i,this.heapSize=r,this.sha1=s,this.versionId=o,this.alternativeVersionId=a}}let _r=class extends r.jG{static{hr=this}static{this.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK=20971520}constructor(e,t,n,r){super(),this._configurationService=e,this._resourcePropertiesService=t,this._undoRedoService=n,this._instantiationService=r,this._onModelAdded=this._register(new i.vl),this.onModelAdded=this._onModelAdded.event,this._onModelRemoved=this._register(new i.vl),this.onModelRemoved=this._onModelRemoved.event,this._onModelModeChanged=this._register(new i.vl),this.onModelLanguageChanged=this._onModelModeChanged.event,this._modelCreationOptionsByLanguageAndResource=Object.create(null),this._models={},this._disposedModels=new Map,this._disposedModelsHeapSize=0,this._register(this._configurationService.onDidChangeConfiguration((e=>this._updateModelOptions(e)))),this._updateModelOptions(void 0)}static _readModelOptions(e,t){let n=b.tabSize;if(e.editor&&"undefined"!==typeof e.editor.tabSize){const t=parseInt(e.editor.tabSize,10);isNaN(t)||(n=t),n<1&&(n=1)}let i="tabSize";if(e.editor&&"undefined"!==typeof e.editor.indentSize&&"tabSize"!==e.editor.indentSize){const t=parseInt(e.editor.indentSize,10);isNaN(t)||(i=Math.max(t,1))}let r=b.insertSpaces;e.editor&&"undefined"!==typeof e.editor.insertSpaces&&(r="false"!==e.editor.insertSpaces&&Boolean(e.editor.insertSpaces));let s=yr;const o=e.eol;"\r\n"===o?s=2:"\n"===o&&(s=1);let a=b.trimAutoWhitespace;e.editor&&"undefined"!==typeof e.editor.trimAutoWhitespace&&(a="false"!==e.editor.trimAutoWhitespace&&Boolean(e.editor.trimAutoWhitespace));let l=b.detectIndentation;e.editor&&"undefined"!==typeof e.editor.detectIndentation&&(l="false"!==e.editor.detectIndentation&&Boolean(e.editor.detectIndentation));let c=b.largeFileOptimizations;e.editor&&"undefined"!==typeof e.editor.largeFileOptimizations&&(c="false"!==e.editor.largeFileOptimizations&&Boolean(e.editor.largeFileOptimizations));let h=b.bracketPairColorizationOptions;return e.editor?.bracketPairColorization&&"object"===typeof e.editor.bracketPairColorization&&(h={enabled:!!e.editor.bracketPairColorization.enabled,independentColorPoolPerBracketType:!!e.editor.bracketPairColorization.independentColorPoolPerBracketType}),{isForSimpleWidget:t,tabSize:n,indentSize:i,insertSpaces:r,detectIndentation:l,defaultEOL:s,trimAutoWhitespace:a,largeFileOptimizations:c,bracketPairColorizationOptions:h}}_getEOL(e,t){if(e)return this._resourcePropertiesService.getEOL(e,t);const n=this._configurationService.getValue("files.eol",{overrideIdentifier:t});return n&&"string"===typeof n&&"auto"!==n?n:3===s.OS||2===s.OS?"\n":"\r\n"}_shouldRestoreUndoStack(){const e=this._configurationService.getValue("files.restoreUndoStack");return"boolean"!==typeof e||e}getCreationOptions(e,t,n){const i="string"===typeof e?e:e.languageId;let r=this._modelCreationOptionsByLanguageAndResource[i+t];if(!r){const e=this._configurationService.getValue("editor",{overrideIdentifier:i,resource:t}),s=this._getEOL(t,i);r=hr._readModelOptions({editor:e,eol:s},n),this._modelCreationOptionsByLanguageAndResource[i+t]=r}return r}_updateModelOptions(e){const t=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);const n=Object.keys(this._models);for(let i=0,r=n.length;i<r;i++){const r=n[i],s=this._models[r],o=s.model.getLanguageId(),a=s.model.uri;if(e&&!e.affectsConfiguration("editor",{overrideIdentifier:o,resource:a})&&!e.affectsConfiguration("files.eol",{overrideIdentifier:o,resource:a}))continue;const l=t[o+a],c=this.getCreationOptions(o,a,s.model.isForSimpleWidget);hr._setModelOptionsForModel(s.model,c,l)}}static _setModelOptionsForModel(e,t,n){n&&n.defaultEOL!==t.defaultEOL&&1===e.getLineCount()&&e.setEOL(1===t.defaultEOL?0:1),n&&n.detectIndentation===t.detectIndentation&&n.insertSpaces===t.insertSpaces&&n.tabSize===t.tabSize&&n.indentSize===t.indentSize&&n.trimAutoWhitespace===t.trimAutoWhitespace&&(0,mr.aI)(n.bracketPairColorizationOptions,t.bracketPairColorizationOptions)||(t.detectIndentation?(e.detectIndentation(t.insertSpaces,t.tabSize),e.updateOptions({trimAutoWhitespace:t.trimAutoWhitespace,bracketColorizationOptions:t.bracketPairColorizationOptions})):e.updateOptions({insertSpaces:t.insertSpaces,tabSize:t.tabSize,indentSize:t.indentSize,trimAutoWhitespace:t.trimAutoWhitespace,bracketColorizationOptions:t.bracketPairColorizationOptions}))}_insertDisposedModel(e){this._disposedModels.set(br(e.uri),e),this._disposedModelsHeapSize+=e.heapSize}_removeDisposedModel(e){const t=this._disposedModels.get(br(e));return t&&(this._disposedModelsHeapSize-=t.heapSize),this._disposedModels.delete(br(e)),t}_ensureDisposedModelsHeapSize(e){if(this._disposedModelsHeapSize>e){const t=[];for(this._disposedModels.forEach((e=>{e.sharesUndoRedoStack||t.push(e)})),t.sort(((e,t)=>e.time-t.time));t.length>0&&this._disposedModelsHeapSize>e;){const e=t.shift();this._removeDisposedModel(e.uri),null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}}}_createModelData(e,t,n,i){const r=this.getCreationOptions(t,n,i),s=this._instantiationService.createInstance(Qi,e,t,r,n);if(n&&this._disposedModels.has(br(n))){const e=this._removeDisposedModel(n),t=this._undoRedoService.getElements(n),i=this._getSHA1Computer(),r=!!i.canComputeSHA1(s)&&i.computeSHA1(s)===e.sha1;if(r||e.sharesUndoRedoStack){for(const e of t.past)Wt(e)&&e.matchesResource(n)&&e.setModel(s);for(const e of t.future)Wt(e)&&e.matchesResource(n)&&e.setModel(s);this._undoRedoService.setElementsValidFlag(n,!0,(e=>Wt(e)&&e.matchesResource(n))),r&&(s._overwriteVersionId(e.versionId),s._overwriteAlternativeVersionId(e.alternativeVersionId),s._overwriteInitialUndoRedoSnapshot(e.initialUndoRedoSnapshot))}else null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}const o=br(s.uri);if(this._models[o])throw new Error("ModelService: Cannot add model because it already exists!");const a=new vr(s,(e=>this._onWillDispose(e)),((e,t)=>this._onDidChangeLanguage(e,t)));return this._models[o]=a,a}createModel(e,t,n,i=!1){let r;return r=t?this._createModelData(e,t,n,i):this._createModelData(e,Q.vH,n,i),this._onModelAdded.fire(r.model),r.model}getModels(){const e=[],t=Object.keys(this._models);for(let n=0,i=t.length;n<i;n++){const i=t[n];e.push(this._models[i].model)}return e}getModel(e){const t=br(e),n=this._models[t];return n?n.model:null}_schemaShouldMaintainUndoRedoElements(e){return e.scheme===pr.ny.file||e.scheme===pr.ny.vscodeRemote||e.scheme===pr.ny.vscodeUserData||e.scheme===pr.ny.vscodeNotebookCell||"fake-fs"===e.scheme}_onWillDispose(e){const t=br(e.uri),n=this._models[t],i=this._undoRedoService.getUriComparisonKey(e.uri)!==e.uri.toString();let r=!1,s=0;if(i||this._shouldRestoreUndoStack()&&this._schemaShouldMaintainUndoRedoElements(e.uri)){const t=this._undoRedoService.getElements(e.uri);if(t.past.length>0||t.future.length>0){for(const n of t.past)Wt(n)&&n.matchesResource(e.uri)&&(r=!0,s+=n.heapSize(e.uri),n.setModel(e.uri));for(const n of t.future)Wt(n)&&n.matchesResource(e.uri)&&(r=!0,s+=n.heapSize(e.uri),n.setModel(e.uri))}}const o=hr.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK,a=this._getSHA1Computer();if(r)if(i||!(s>o)&&a.canComputeSHA1(e))this._ensureDisposedModelsHeapSize(o-s),this._undoRedoService.setElementsValidFlag(e.uri,!1,(t=>Wt(t)&&t.matchesResource(e.uri))),this._insertDisposedModel(new wr(e.uri,n.model.getInitialUndoRedoSnapshot(),Date.now(),i,s,a.computeSHA1(e),e.getVersionId(),e.getAlternativeVersionId()));else{const e=n.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}else if(!i){const e=n.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}delete this._models[t],n.dispose(),delete this._modelCreationOptionsByLanguageAndResource[e.getLanguageId()+e.uri],this._onModelRemoved.fire(e)}_onDidChangeLanguage(e,t){const n=t.oldLanguage,i=e.getLanguageId(),r=this.getCreationOptions(n,e.uri,e.isForSimpleWidget),s=this.getCreationOptions(i,e.uri,e.isForSimpleWidget);hr._setModelOptionsForModel(e,s,r),this._onModelModeChanged.fire({model:e,oldLanguageId:n})}_getSHA1Computer(){return new kr}};_r=hr=fr([gr(0,H.pG),gr(1,dr.ITextResourcePropertiesService),gr(2,Bi),gr(3,K._Y)],_r);class kr{static{this.MAX_MODEL_SIZE=10485760}canComputeSHA1(e){return e.getValueLength()<=kr.MAX_MODEL_SIZE}computeSHA1(e){const t=new ur.v7,n=e.createSnapshot();let i;for(;i=n.read();)t.update(i);return t.digest()}}},8938:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITextModelService:()=>i});const i=(0,n(3591).u1)("textModelService")},8232:(e,t,n)=>{"use strict";n.r(t),n.d(t,{encodeSemanticTokensDto:()=>s});var i=n(1674),r=n(8067);function s(e){const t=new Uint32Array(function(e){let t=0;if(t+=2,"full"===e.type)t+=1+e.data.length;else{t+=1,t+=3*e.deltas.length;for(const n of e.deltas)n.data&&(t+=n.data.length)}return t}(e));let n=0;if(t[n++]=e.id,"full"===e.type)t[n++]=1,t[n++]=e.data.length,t.set(e.data,n),n+=e.data.length;else{t[n++]=2,t[n++]=e.deltas.length;for(const i of e.deltas)t[n++]=i.start,t[n++]=i.deleteCount,i.data?(t[n++]=i.data.length,t.set(i.data,n),n+=i.data.length):t[n++]=0}return function(e){const t=new Uint8Array(e.buffer,e.byteOffset,4*e.length);return r.cm()||function(e){for(let t=0,n=e.length;t<n;t+=4){const n=e[t+0],i=e[t+1],r=e[t+2],s=e[t+3];e[t+0]=s,e[t+1]=r,e[t+2]=i,e[t+3]=n}}(t),i.MB.wrap(t)}(t)}},5538:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SemanticTokensProviderStyling:()=>f,toMultilineTokens2:()=>g});n(5982);var i=n(5724),r=n(3511),s=n(3069),o=n(6677),a=n(4454);class l{static create(e,t){return new l(e,new c(t))}get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._endLineNumber}constructor(e,t){this._startLineNumber=e,this._tokens=t,this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}toString(){return this._tokens.toString(this._startLineNumber)}_updateEndLineNumber(){this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}isEmpty(){return this._tokens.isEmpty()}getLineTokens(e){return this._startLineNumber<=e&&e<=this._endLineNumber?this._tokens.getLineTokens(e-this._startLineNumber):null}getRange(){const e=this._tokens.getRange();return e?new o.Q(this._startLineNumber+e.startLineNumber,e.startColumn,this._startLineNumber+e.endLineNumber,e.endColumn):e}removeTokens(e){const t=e.startLineNumber-this._startLineNumber,n=e.endLineNumber-this._startLineNumber;this._startLineNumber+=this._tokens.removeTokens(t,e.startColumn-1,n,e.endColumn-1),this._updateEndLineNumber()}split(e){const t=e.startLineNumber-this._startLineNumber,n=e.endLineNumber-this._startLineNumber,[i,r,s]=this._tokens.split(t,e.startColumn-1,n,e.endColumn-1);return[new l(this._startLineNumber,i),new l(this._startLineNumber+s,r)]}applyEdit(e,t){const[n,i,r]=(0,a.W)(t);this.acceptEdit(e,n,i,r,t.length>0?t.charCodeAt(0):0)}acceptEdit(e,t,n,i,r){this._acceptDeleteRange(e),this._acceptInsertText(new s.y(e.startLineNumber,e.startColumn),t,n,i,r),this._updateEndLineNumber()}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return;const t=e.startLineNumber-this._startLineNumber,n=e.endLineNumber-this._startLineNumber;if(n<0){const e=n-t;return void(this._startLineNumber-=e)}const i=this._tokens.getMaxDeltaLine();if(!(t>=i+1)){if(t<0&&n>=i+1)return this._startLineNumber=0,void this._tokens.clear();if(t<0){const i=-t;this._startLineNumber-=i,this._tokens.acceptDeleteRange(e.startColumn-1,0,0,n,e.endColumn-1)}else this._tokens.acceptDeleteRange(0,t,e.startColumn-1,n,e.endColumn-1)}}_acceptInsertText(e,t,n,i,r){if(0===t&&0===n)return;const s=e.lineNumber-this._startLineNumber;if(s<0)return void(this._startLineNumber+=t);s>=this._tokens.getMaxDeltaLine()+1||this._tokens.acceptInsertText(s,e.column-1,t,n,i,r)}}class c{constructor(e){this._tokens=e,this._tokenCount=e.length/4}toString(e){const t=[];for(let n=0;n<this._tokenCount;n++)t.push(`(${this._getDeltaLine(n)+e},${this._getStartCharacter(n)}-${this._getEndCharacter(n)})`);return`[${t.join(",")}]`}getMaxDeltaLine(){const e=this._getTokenCount();return 0===e?-1:this._getDeltaLine(e-1)}getRange(){const e=this._getTokenCount();if(0===e)return null;const t=this._getStartCharacter(0),n=this._getDeltaLine(e-1),i=this._getEndCharacter(e-1);return new o.Q(0,t+1,n,i+1)}_getTokenCount(){return this._tokenCount}_getDeltaLine(e){return this._tokens[4*e]}_getStartCharacter(e){return this._tokens[4*e+1]}_getEndCharacter(e){return this._tokens[4*e+2]}isEmpty(){return 0===this._getTokenCount()}getLineTokens(e){let t=0,n=this._getTokenCount()-1;for(;t<n;){const i=t+Math.floor((n-t)/2),r=this._getDeltaLine(i);if(r<e)t=i+1;else{if(!(r>e)){let r=i;for(;r>t&&this._getDeltaLine(r-1)===e;)r--;let s=i;for(;s<n&&this._getDeltaLine(s+1)===e;)s++;return new h(this._tokens.subarray(4*r,4*s+4))}n=i-1}}return this._getDeltaLine(t)===e?new h(this._tokens.subarray(4*t,4*t+4)):null}clear(){this._tokenCount=0}removeTokens(e,t,n,i){const r=this._tokens,s=this._tokenCount;let o=0,a=!1,l=0;for(let c=0;c<s;c++){const s=4*c,h=r[s],d=r[s+1],u=r[s+2],p=r[s+3];if((h>e||h===e&&u>=t)&&(h<n||h===n&&d<=i))a=!0;else{if(0===o&&(l=h),a){const e=4*o;r[e]=h-l,r[e+1]=d,r[e+2]=u,r[e+3]=p}o++}}return this._tokenCount=o,l}split(e,t,n,i){const r=this._tokens,s=this._tokenCount,o=[],a=[];let l=o,h=0,d=0;for(let c=0;c<s;c++){const s=4*c,o=r[s],u=r[s+1],p=r[s+2],m=r[s+3];if(o>e||o===e&&p>=t){if(o<n||o===n&&u<=i)continue;l!==a&&(l=a,h=0,d=o)}l[h++]=o-d,l[h++]=u,l[h++]=p,l[h++]=m}return[new c(new Uint32Array(o)),new c(new Uint32Array(a)),d]}acceptDeleteRange(e,t,n,i,r){const s=this._tokens,o=this._tokenCount,a=i-t;let l=0,c=!1;for(let h=0;h<o;h++){const d=4*h;let u=s[d],p=s[d+1],m=s[d+2];const f=s[d+3];if(u<t||u===t&&m<=n){l++;continue}if(u===t&&p<n)u===i&&m>r?m-=r-n:m=n;else if(u===t&&p===n){if(!(u===i&&m>r)){c=!0;continue}m-=r-n}else if(u<i||u===i&&p<r){if(!(u===i&&m>r)){c=!0;continue}u=t,p=n,m=p+(m-r)}else if(u>i){if(0===a&&!c){l=o;break}u-=a}else{if(!(u===i&&p>=r))throw new Error("Not possible!");e&&0===u&&(p+=e,m+=e),u-=a,p-=r-n,m-=r-n}const g=4*l;s[g]=u,s[g+1]=p,s[g+2]=m,s[g+3]=f,l++}this._tokenCount=l}acceptInsertText(e,t,n,i,r,s){const o=0===n&&1===i&&(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122),a=this._tokens,l=this._tokenCount;for(let c=0;c<l;c++){const s=4*c;let l=a[s],h=a[s+1],d=a[s+2];if(!(l<e||l===e&&d<t)){if(l===e&&d===t){if(!o)continue;d+=1}else if(l===e&&h<t&&t<d)0===n?d+=i:d=t;else{if(l===e&&h===t&&o)continue;if(l===e)if(l+=n,0===n)h+=i,d+=i;else{const e=d-h;h=r+(h-t),d=h+e}else l+=n}a[s]=l,a[s+1]=h,a[s+2]=d}}}}class h{constructor(e){this._tokens=e}getCount(){return this._tokens.length/4}getStartCharacter(e){return this._tokens[4*e+1]}getEndCharacter(e){return this._tokens[4*e+2]}getMetadata(e){return this._tokens[4*e+3]}}var d=n(154),u=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},p=function(e,t){return function(n,i){t(n,i,e)}};const m=!1;let f=class{constructor(e,t,n,i){this._legend=e,this._themeService=t,this._languageService=n,this._logService=i,this._hasWarnedOverlappingTokens=!1,this._hasWarnedInvalidLengthTokens=!1,this._hasWarnedInvalidEditStart=!1,this._hashTable=new v}getMetadata(e,t,n){const i=this._languageService.languageIdCodec.encodeLanguageId(n),r=this._hashTable.get(e,t,i);let s;if(r)s=r.metadata;else{let r=this._legend.tokenTypes[e];const o=[];if(r){let e=t;for(let t=0;e>0&&t<this._legend.tokenModifiers.length;t++)1&e&&o.push(this._legend.tokenModifiers[t]),e>>=1;m;const i=this._themeService.getColorTheme().getTokenStyleMetadata(r,o,n);if("undefined"===typeof i)s=2147483647;else{if(s=0,"undefined"!==typeof i.italic){s|=1|(i.italic?1:0)<<11}if("undefined"!==typeof i.bold){s|=2|(i.bold?2:0)<<11}if("undefined"!==typeof i.underline){s|=4|(i.underline?4:0)<<11}if("undefined"!==typeof i.strikethrough){s|=8|(i.strikethrough?8:0)<<11}if(i.foreground){s|=16|i.foreground<<15}0===s&&(s=2147483647)}}else s=2147483647,r="not-in-legend";this._hashTable.add(e,t,i,s)}return s}warnOverlappingSemanticTokens(e,t){this._hasWarnedOverlappingTokens||(this._hasWarnedOverlappingTokens=!0,this._logService.warn(`Overlapping semantic tokens detected at lineNumber ${e}, column ${t}`))}warnInvalidLengthSemanticTokens(e,t){this._hasWarnedInvalidLengthTokens||(this._hasWarnedInvalidLengthTokens=!0,this._logService.warn(`Semantic token with invalid length detected at lineNumber ${e}, column ${t}`))}warnInvalidEditStart(e,t,n,i,r){this._hasWarnedInvalidEditStart||(this._hasWarnedInvalidEditStart=!0,this._logService.warn(`Invalid semantic tokens edit detected (previousResultId: ${e}, resultId: ${t}) at edit #${n}: The provided start offset ${i} is outside the previous data (length ${r}).`))}};function g(e,t,n){const i=e.data,r=e.data.length/5|0,s=Math.max(Math.ceil(r/1024),400),o=[];let a=0,c=1,h=0;for(;a<r;){const e=a;let d=Math.min(e+s,r);if(d<r){let t=d;for(;t-1>e&&0===i[5*t];)t--;if(t-1===e){let e=d;for(;e+1<r&&0===i[5*e];)e++;d=e}else d=t}let u=new Uint32Array(4*(d-e)),p=0,m=0,f=0,g=0;for(;a<d;){const e=5*a,r=i[e],s=i[e+1],o=c+r|0,l=0===r?h+s|0:s,d=l+i[e+2]|0,b=i[e+3],v=i[e+4];if(d<=l)t.warnInvalidLengthSemanticTokens(o,l+1);else if(f===o&&g>l)t.warnOverlappingSemanticTokens(o,l+1);else{const e=t.getMetadata(b,v,n);2147483647!==e&&(0===m&&(m=o),u[p]=o-m,u[p+1]=l,u[p+2]=d,u[p+3]=e,p+=4,f=o,g=d)}c=o,h=l,a++}p!==u.length&&(u=u.subarray(0,p));const b=l.create(m,u);o.push(b)}return o}f=u([p(1,i.Gy),p(2,d.L),p(3,r.rr)],f);class b{constructor(e,t,n,i){this.tokenTypeIndex=e,this.tokenModifierSet=t,this.languageId=n,this.metadata=i,this.next=null}}class v{static{this._SIZES=[3,7,13,31,61,127,251,509,1021,2039,4093,8191,16381,32749,65521,131071,262139,524287,1048573,2097143]}constructor(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=v._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<v._SIZES.length?2/3*this._currentLength:0),this._elements=[],v._nullOutEntries(this._elements,this._currentLength)}static _nullOutEntries(e,t){for(let n=0;n<t;n++)e[n]=null}_hash2(e,t){return(e<<5)-e+t|0}_hashFunc(e,t,n){return this._hash2(this._hash2(e,t),n)%this._currentLength}get(e,t,n){const i=this._hashFunc(e,t,n);let r=this._elements[i];for(;r;){if(r.tokenTypeIndex===e&&r.tokenModifierSet===t&&r.languageId===n)return r;r=r.next}return null}add(e,t,n,i){if(this._elementsCount++,0!==this._growCount&&this._elementsCount>=this._growCount){const e=this._elements;this._currentLengthIndex++,this._currentLength=v._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<v._SIZES.length?2/3*this._currentLength:0),this._elements=[],v._nullOutEntries(this._elements,this._currentLength);for(const t of e){let e=t;for(;e;){const t=e.next;e.next=null,this._add(e),e=t}}}this._add(new b(e,t,n,i))}_add(e){const t=this._hashFunc(e.tokenTypeIndex,e.tokenModifierSet,e.languageId);e.next=this._elements[t],this._elements[t]=e}}},4243:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ISemanticTokensStylingService:()=>i});const i=(0,n(3591).u1)("semanticTokensStylingService")},7004:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SemanticTokensStylingService:()=>u});var i=n(1484),r=n(154),s=n(5724),o=n(3511),a=n(5538),l=n(4243),c=n(4621),h=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},d=function(e,t){return function(n,i){t(n,i,e)}};let u=class extends i.jG{constructor(e,t,n){super(),this._themeService=e,this._logService=t,this._languageService=n,this._caches=new WeakMap,this._register(this._themeService.onDidColorThemeChange((()=>{this._caches=new WeakMap})))}getStyling(e){return this._caches.has(e)||this._caches.set(e,new a.SemanticTokensProviderStyling(e.getLegend(),this._themeService,this._languageService,this._logService)),this._caches.get(e)}};u=h([d(0,s.Gy),d(1,o.rr),d(2,r.L)],u),(0,c.v)(l.ISemanticTokensStylingService,u,1)},796:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MirrorModel:()=>b,STOP_SYNC_MODEL_DELTA_TIME_MS:()=>m,WorkerTextModelSyncClient:()=>f,WorkerTextModelSyncServer:()=>g});var i=n(1940),r=n(1484),s=n(9400),o=n(3069),a=n(6677),l=n(6486),c=n(1508),h=(n(9861),n(5152));class d{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=(0,h.j)(e);const n=this.values,i=this.prefixSum,r=t.length;return 0!==r&&(this.values=new Uint32Array(n.length+r),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+r),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(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,t){return e=(0,h.j)(e),t=(0,h.j)(t),this.values[e]!==t&&(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,t){e=(0,h.j)(e),t=(0,h.j)(t);const n=this.values,i=this.prefixSum;if(e>=n.length)return!1;const r=n.length-e;return t>=r&&(t=r),0!==t&&(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(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=(0,h.j)(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;0===t&&(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,i=0,r=0,s=0;for(;t<=n;)if(i=t+(n-t)/2|0,r=this.prefixSum[i],s=r-this.values[i],e<s)n=i-1;else{if(!(e>=r))break;t=i+1}return new u(i,e-s)}}class u{constructor(e,t){this.index=e,this.remainder=t,this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=t}}class p{constructor(e,t,n,i){this._uri=e,this._lines=t,this._eol=n,this._versionId=i,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const t=e.changes;for(const n of t)this._acceptDeleteRange(n.range),this._acceptInsertText(new o.y(n.range.startLineNumber,n.range.startColumn),n.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,t=this._lines.length,n=new Uint32Array(t);for(let i=0;i<t;i++)n[i]=this._lines[i].length+e;this._lineStarts=new d(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)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);else{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))}}_acceptInsertText(e,t){if(0===t.length)return;const n=(0,c.uz)(t);if(1===n.length)return void 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));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]);const i=new Uint32Array(n.length-1);for(let r=1;r<n.length;r++)this._lines.splice(e.lineNumber+r-1,0,n[r]),i[r-1]=n[r].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,i)}}const m=6e4;class f extends r.jG{constructor(e,t,n=!1){if(super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=e,this._modelService=t,!n){const e=new i.vb;e.cancelAndSet((()=>this._checkStopModelSync()),Math.round(m/2)),this._register(e)}}dispose(){for(const e in this._syncedModels)(0,r.AS)(this._syncedModels[e]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(e,t=!1){for(const n of e){const e=n.toString();this._syncedModels[e]||this._beginModelSync(n,t),this._syncedModels[e]&&(this._syncedModelsLastUsedTime[e]=(new Date).getTime())}}_checkStopModelSync(){const e=(new Date).getTime(),t=[];for(const n in this._syncedModelsLastUsedTime){e-this._syncedModelsLastUsedTime[n]>m&&t.push(n)}for(const n of t)this._stopModelSync(n)}_beginModelSync(e,t){const n=this._modelService.getModel(e);if(!n)return;if(!t&&n.isTooLargeForSyncing())return;const i=e.toString();this._proxy.$acceptNewModel({url:n.uri.toString(),lines:n.getLinesContent(),EOL:n.getEOL(),versionId:n.getVersionId()});const s=new r.Cm;s.add(n.onDidChangeContent((e=>{this._proxy.$acceptModelChanged(i.toString(),e)}))),s.add(n.onWillDispose((()=>{this._stopModelSync(i)}))),s.add((0,r.s)((()=>{this._proxy.$acceptRemovedModel(i)}))),this._syncedModels[i]=s}_stopModelSync(e){const t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],(0,r.AS)(t)}}class g{constructor(){this._models=Object.create(null)}getModel(e){return this._models[e]}getModels(){const e=[];return Object.keys(this._models).forEach((t=>e.push(this._models[t]))),e}$acceptNewModel(e){this._models[e.url]=new b(s.r.parse(e.url),e.lines,e.EOL,e.versionId)}$acceptModelChanged(e,t){if(!this._models[e])return;this._models[e].onEvents(t)}$acceptRemovedModel(e){this._models[e]&&delete this._models[e]}}class b extends p{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){const t=[];for(let n=0;n<this._lines.length;n++){const i=this._lines[n],r=this.offsetAt(new o.y(n+1,1)),s=i.matchAll(e);for(const e of s)(e.index||0===e.index)&&(e.index=e.index+r),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){const n=(0,l.Th)(e.column,(0,l.Io)(t),this._lines[e.lineNumber-1],0);return n?new a.Q(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null}words(e){const t=this._lines,n=this._wordenize.bind(this);let i=0,r="",s=0,o=[];return{*[Symbol.iterator](){for(;;)if(s<o.length){const e=r.substring(o[s].start,o[s].end);s+=1,yield e}else{if(!(i<t.length))break;r=t[i],o=n(r,e),s=0,i+=1}}}}getLineWords(e,t){const n=this._lines[e-1],i=this._wordenize(n,t),r=[];for(const s of i)r.push({word:n.substring(s.start,s.end),startColumn:s.start+1,endColumn:s.end+1});return r}_wordenize(e,t){const n=[];let i;for(t.lastIndex=0;(i=t.exec(e))&&0!==i[0].length;)n.push({start:i.index,end:i.index+i[0].length});return n}getValueInRange(e){if((e=this._validateRange(e)).startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);const t=this._eol,n=e.startLineNumber-1,i=e.endLineNumber-1,r=[];r.push(this._lines[n].substring(e.startColumn-1));for(let s=n+1;s<i;s++)r.push(this._lines[s]);return r.push(this._lines[i].substring(0,e.endColumn-1)),r.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();const 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){const 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(!o.y.isIPosition(e))throw new Error("bad position");let{lineNumber:t,column:n}=e,i=!1;if(t<1)t=1,n=1,i=!0;else if(t>this._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,i=!0;else{const e=this._lines[t-1].length+1;n<1?(n=1,i=!0):n>e&&(n=e,i=!0)}return i?{lineNumber:t,column:n}:e}}},8868:(e,t,n)=>{"use strict";n.r(t)},360:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITextResourceConfigurationService:()=>r,ITextResourcePropertiesService:()=>s});var i=n(3591);const r=(0,i.u1)("textResourceConfigurationService"),s=(0,i.u1)("textResourcePropertiesService")},4432:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITreeSitterParserService:()=>i});const i=(0,n(3591).u1)("treeSitterParserService")},6723:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DraggedTreeItemsIdentifier:()=>r,TreeViewsDnDService:()=>i});class i{constructor(){this._dragOperations=new Map}removeDragOperationTransfer(e){if(e&&this._dragOperations.has(e)){const t=this._dragOperations.get(e);return this._dragOperations.delete(e),t}}}class r{constructor(e){this.identifier=e}}},9100:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITreeViewsDnDService:()=>o});var i=n(4621),r=n(3591),s=n(6723);const o=(0,r.u1)("treeViewsDndService");(0,i.v)(o,s.TreeViewsDnDService,1)},4855:(e,t,n)=>{"use strict";n.r(t),n.d(t,{UnicodeTextModelHighlighter:()=>l});var i=n(6677),r=n(7729),s=n(1508),o=n(6782),a=n(6486);class l{static computeUnicodeHighlights(e,t,n){const l=n?n.startLineNumber:1,h=n?n.endLineNumber:e.getLineCount(),d=new c(t),u=d.getCandidateCodePoints();let p;var m;p="allNonBasicAscii"===u?new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):new RegExp(""+(m=Array.from(u),`[${s.bm(m.map((e=>String.fromCodePoint(e))).join(""))}]`),"g");const f=new r.W5(null,p),g=[];let b,v=!1,y=0,w=0,_=0;e:for(let r=l,c=h;r<=c;r++){const t=e.getLineContent(r),n=t.length;f.reset(0);do{if(b=f.next(t),b){let e=b.index,l=b.index+b[0].length;if(e>0){const n=t.charCodeAt(e-1);s.pc(n)&&e--}if(l+1<n){const e=t.charCodeAt(l-1);s.pc(e)&&l++}const c=t.substring(e,l);let h=(0,a.Th)(e+1,a.Ld,t,0);h&&h.endColumn<=e+1&&(h=null);const u=d.shouldHighlightNonBasicASCII(c,h?h.word:null);if(0!==u){3===u?y++:2===u?w++:1===u?_++:(0,o.xb)(u);const t=1e3;if(g.length>=t){v=!0;break e}g.push(new i.Q(r,e+1,r,l+1))}}}while(b)}return{ranges:g,hasMore:v,ambiguousCharacterCount:y,invisibleCharacterCount:w,nonBasicAsciiCharacterCount:_}}static computeUnicodeHighlightReason(e,t){const n=new c(t);switch(n.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const i=e.codePointAt(0),r=n.ambiguousCharacters.getPrimaryConfusable(i),o=s.tl.getLocales().filter((e=>!s.tl.getInstance(new Set([...t.allowedLocales,e])).isAmbiguous(i)));return{kind:0,confusableWith:String.fromCodePoint(r),notAmbiguousInLocales:o}}case 1:return{kind:2}}}}class c{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=s.tl.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const t of s.y_.codePoints)h(String.fromCodePoint(t))||e.add(t);if(this.options.ambiguousCharacters)for(const t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(const t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e,t){const n=e.codePointAt(0);if(this.allowedCodePoints.has(n))return 0;if(this.options.nonBasicASCII)return 1;let i=!1,r=!1;if(t)for(const o of t){const e=o.codePointAt(0),t=s.aC(o);i=i||t,t||this.ambiguousCharacters.isAmbiguous(e)||s.y_.isInvisibleCharacter(e)||(r=!0)}return!i&&r?0:this.options.invisibleCharacters&&!h(e)&&s.y_.isInvisibleCharacter(n)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(n)?3:0}}function h(e){return" "===e||"\n"===e||"\t"===e}},8209:(e,t,n)=>{"use strict";function i(){return globalThis._VSCODE_NLS_LANGUAGE}n.d(t,{i8:()=>i,kg:()=>o});const r="pseudo"===i()||"undefined"!==typeof document&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function s(e,t){let n;return n=0===t.length?e:e.replace(/\{(\d+)\}/g,((e,n)=>{const i=n[0],r=t[i];let s=e;return"string"===typeof r?s=r:"number"!==typeof r&&"boolean"!==typeof r&&void 0!==r&&null!==r||(s=String(r)),s})),r&&(n="\uff3b"+n.replace(/[aouei]/g,"$&$&")+"\uff3d"),n}function o(e,t,...n){return s("number"===typeof e?a(e,t):t,n)}function a(e,t){const n=globalThis._VSCODE_NLS_MESSAGES?.[e];if("string"!==typeof n){if("string"===typeof t)return t;throw new Error(`!!! NLS MISSING: ${e} !!!`)}return n}},4001:(e,t,n)=>{"use strict";n.d(t,{Mo:()=>r,pG:()=>i});const i=(0,n(3591).u1)("configurationService");function r(e){return e.replace(/[\[\]]/g,"")}},1646:(e,t,n)=>{"use strict";n.d(t,{Fd:()=>h});var i=n(9861),r=n(1234),s=n(631),o=n(8209),a=n(4001),l=n(8748),c=n(6359);const h={Configuration:"base.contributions.configuration"},d={properties:{},patternProperties:{}},u={properties:{},patternProperties:{}},p={properties:{},patternProperties:{}},m={properties:{},patternProperties:{}},f={properties:{},patternProperties:{}},g={properties:{},patternProperties:{}},b="vscode://schemas/settings/resourceLanguage",v=c.O.as(l.F.JSONContribution);const y="\\[([^\\]]+)\\]",w=new RegExp(y,"g"),_=`^(${y})+$`,k=new RegExp(_);function C(e){const t=[];if(k.test(e)){let n=w.exec(e);for(;n?.length;){const i=n[1].trim();i&&t.push(i),n=w.exec(e)}}return(0,i.dM)(t)}const S=new class{constructor(){this.registeredConfigurationDefaults=[],this.overrideIdentifiers=new Set,this._onDidSchemaChange=new r.vl,this._onDidUpdateConfiguration=new r.vl,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:o.kg("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!0,allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.policyConfigurations=new Map,this.excludedConfigurationProperties={},v.registerSchema(b,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(e,t=!0){this.registerConfigurations([e],t)}registerConfigurations(e,t=!0){const n=new Set;this.doRegisterConfigurations(e,t,n),v.registerSchema(b,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:n})}registerDefaultConfigurations(e){const t=new Set;this.doRegisterDefaultConfigurations(e,t),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:t,defaultsOverrides:!0})}doRegisterDefaultConfigurations(e,t){this.registeredConfigurationDefaults.push(...e);const n=[];for(const{overrides:i,source:r}of e)for(const e in i){t.add(e);const s=this.configurationDefaultsOverrides.get(e)??this.configurationDefaultsOverrides.set(e,{configurationDefaultOverrides:[]}).get(e),o=i[e];if(s.configurationDefaultOverrides.push({value:o,source:r}),k.test(e)){const t=this.mergeDefaultConfigurationsForOverrideIdentifier(e,o,r,s.configurationDefaultOverrideValue);if(!t)continue;s.configurationDefaultOverrideValue=t,this.updateDefaultOverrideProperty(e,t,r),n.push(...C(e))}else{const t=this.mergeDefaultConfigurationsForConfigurationProperty(e,o,r,s.configurationDefaultOverrideValue);if(!t)continue;s.configurationDefaultOverrideValue=t;const n=this.configurationProperties[e];n&&(this.updatePropertyDefaultValue(e,n),this.updateSchema(e,n))}}this.doRegisterOverrideIdentifiers(n)}updateDefaultOverrideProperty(e,t,n){const i={type:"object",default:t.value,description:o.kg("defaultLanguageConfiguration.description","Configure settings to be overridden for the {0} language.",(0,a.Mo)(e)),$ref:b,defaultDefaultValue:t.value,source:n,defaultValueSource:n};this.configurationProperties[e]=i,this.defaultLanguageConfigurationOverridesNode.properties[e]=i}mergeDefaultConfigurationsForOverrideIdentifier(e,t,n,i){const r=i?.value||{},o=i?.source??new Map;if(o instanceof Map){for(const e of Object.keys(t)){const i=t[e];if(s.Gv(i)&&(s.b0(r[e])||s.Gv(r[e]))){if(r[e]={...r[e]??{},...i},n)for(const t in i)o.set(`${e}.${t}`,n)}else r[e]=i,n?o.set(e,n):o.delete(e)}return{value:r,source:o}}console.error("objectConfigurationSources is not a Map")}mergeDefaultConfigurationsForConfigurationProperty(e,t,n,i){const r=this.configurationProperties[e],o=i?.value??r?.defaultDefaultValue;let a=n;if(s.Gv(t)&&(void 0!==r&&"object"===r.type||void 0===r&&(s.b0(o)||s.Gv(o)))){if(a=i?.source??new Map,!(a instanceof Map))return void console.error("defaultValueSource is not a Map");for(const i in t)n&&a.set(`${e}.${i}`,n);t={...s.Gv(o)?o:{},...t}}return{value:t,source:a}}registerOverrideIdentifiers(e){this.doRegisterOverrideIdentifiers(e),this._onDidSchemaChange.fire()}doRegisterOverrideIdentifiers(e){for(const t of e)this.overrideIdentifiers.add(t);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(e,t,n){e.forEach((e=>{this.validateAndRegisterProperties(e,t,e.extensionInfo,e.restrictedProperties,void 0,n),this.configurationContributors.push(e),this.registerJSONConfiguration(e)}))}validateAndRegisterProperties(e,t=!0,n,i,r=3,o){r=s.z(e.scope)?r:e.scope;const a=e.properties;if(a)for(const c in a){const e=a[c];t&&x(c,e)?delete a[c]:(e.source=n,e.defaultDefaultValue=a[c].default,this.updatePropertyDefaultValue(c,e),k.test(c)?e.scope=void 0:(e.scope=s.z(e.scope)?r:e.scope,e.restricted=s.z(e.restricted)?!!i?.includes(c):e.restricted),!a[c].hasOwnProperty("included")||a[c].included?(this.configurationProperties[c]=a[c],a[c].policy?.name&&this.policyConfigurations.set(a[c].policy.name,c),!a[c].deprecationMessage&&a[c].markdownDeprecationMessage&&(a[c].deprecationMessage=a[c].markdownDeprecationMessage),o.add(c)):(this.excludedConfigurationProperties[c]=a[c],delete a[c]))}const l=e.allOf;if(l)for(const s of l)this.validateAndRegisterProperties(s,t,n,i,r,o)}getConfigurationProperties(){return this.configurationProperties}getPolicyConfigurations(){return this.policyConfigurations}registerJSONConfiguration(e){const t=e=>{const n=e.properties;if(n)for(const t in n)this.updateSchema(t,n[t]);const i=e.allOf;i?.forEach(t)};t(e)}updateSchema(e,t){switch(d.properties[e]=t,t.scope){case 1:u.properties[e]=t;break;case 2:p.properties[e]=t;break;case 6:m.properties[e]=t;break;case 3:f.properties[e]=t;break;case 4:g.properties[e]=t;break;case 5:g.properties[e]=t,this.resourceLanguageSettingsSchema.properties[e]=t}}updateOverridePropertyPatternKey(){for(const e of this.overrideIdentifiers.values()){const t=`[${e}]`,n={type:"object",description:o.kg("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:o.kg("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:b};this.updatePropertyDefaultValue(t,n),d.properties[t]=n,u.properties[t]=n,p.properties[t]=n,m.properties[t]=n,f.properties[t]=n,g.properties[t]=n}}registerOverridePropertyPatternKey(){const e={type:"object",description:o.kg("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:o.kg("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:b};d.patternProperties[_]=e,u.patternProperties[_]=e,p.patternProperties[_]=e,m.patternProperties[_]=e,f.patternProperties[_]=e,g.patternProperties[_]=e,this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,t){const n=this.configurationDefaultsOverrides.get(e)?.configurationDefaultOverrideValue;let i,r;!n||t.disallowConfigurationDefault&&n.source||(i=n.value,r=n.source),s.b0(i)&&(i=t.defaultDefaultValue,r=void 0),s.b0(i)&&(i=function(e){switch(Array.isArray(e)?e[0]:e){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}(t.type)),t.default=i,t.defaultValueSource=r}};function x(e,t){return e.trim()?k.test(e)?o.kg("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e):void 0!==S.getConfigurationProperties()[e]?o.kg("config.property.duplicate","Cannot register '{0}'. This property is already registered.",e):t.policy?.name&&void 0!==S.getPolicyConfigurations().get(t.policy?.name)?o.kg("config.policy.duplicate","Cannot register '{0}'. The associated policy {1} is already registered with {2}.",e,t.policy?.name,S.getPolicyConfigurations().get(t.policy?.name)):null:o.kg("config.property.empty","Cannot register an empty property")}c.O.add(h.Configuration,S)},4621:(e,t,n)=>{"use strict";n.d(t,{v:()=>s});class i{constructor(e,t=[],n=!1){this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=n}}const r=[];function s(e,t,n){t instanceof i||(t=new i(t,[],Boolean(n))),r.push([e,t])}},3591:(e,t,n)=>{"use strict";var i;n.d(t,{_Y:()=>r,u1:()=>s}),function(e){e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=function(t){return t[e.DI_DEPENDENCIES]||[]}}(i||(i={}));const r=s("instantiationService");function s(e){if(i.serviceIds.has(e))return i.serviceIds.get(e);const t=function(e,n,r){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");!function(e,t,n){t[i.DI_TARGET]===t?t[i.DI_DEPENDENCIES].push({id:e,index:n}):(t[i.DI_DEPENDENCIES]=[{id:e,index:n}],t[i.DI_TARGET]=t)}(t,e,r)};return t.toString=()=>e,i.serviceIds.set(e,t),t}},8748:(e,t,n)=>{"use strict";n.d(t,{F:()=>s});var i=n(1234),r=n(6359);const s={JSONContribution:"base.contributions.json"};const o=new class{constructor(){this._onDidChangeSchema=new i.vl,this.schemasById={}}registerSchema(e,t){var n;this.schemasById[(n=e,n.length>0&&"#"===n.charAt(n.length-1)?n.substring(0,n.length-1):n)]=t,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}};r.O.add(s.JSONContribution,o)},3511:(e,t,n)=>{"use strict";n.d(t,{rr:()=>Q,$b:()=>J});n(1234);var i=n(1484),r=n(8067),s=n(1508),o=n(4383),a=n(8209);function l(...e){switch(e.length){case 1:return(0,a.kg)("contextkey.scanner.hint.didYouMean1","Did you mean {0}?",e[0]);case 2:return(0,a.kg)("contextkey.scanner.hint.didYouMean2","Did you mean {0} or {1}?",e[0],e[1]);case 3:return(0,a.kg)("contextkey.scanner.hint.didYouMean3","Did you mean {0}, {1} or {2}?",e[0],e[1],e[2]);default:return}}const c=(0,a.kg)("contextkey.scanner.hint.didYouForgetToOpenOrCloseQuote","Did you forget to open or close the quote?"),h=(0,a.kg)("contextkey.scanner.hint.didYouForgetToEscapeSlash","Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'.");class d{constructor(){this._input="",this._start=0,this._current=0,this._tokens=[],this._errors=[],this.stringRe=/[a-zA-Z0-9_<>\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(e){switch(e.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return e.isTripleEq?"===":"==";case 4:return e.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:case 8:return">=";case 9:return"=~";case 10:case 17:case 18:case 19:return e.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 20:return"EOF";default:throw(0,o.iH)(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}static{this._regexFlags=new Set(["i","g","s","m","y","u"].map((e=>e.charCodeAt(0))))}static{this._keywords=new Map([["not",14],["in",13],["false",12],["true",11]])}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();){this._start=this._current;switch(this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){const e=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:e})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){const e=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:e})}else this._match(126)?this._addToken(9):this._error(l("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(l("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(l("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return!this._isAtEnd()&&(this._input.charCodeAt(this._current)===e&&(this._current++,!0))}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){const t=this._start,n=this._input.substring(this._start,this._current),i={type:19,offset:this._start,lexeme:n};this._errors.push({offset:t,lexeme:n,additionalInfo:e}),this._tokens.push(i)}_string(){this.stringRe.lastIndex=this._start;const e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;const t=this._input.substring(this._start,this._current),n=d._keywords.get(t);n?this._addToken(n):this._tokens.push({type:17,lexeme:t,offset:this._start})}}_quotedString(){for(;39!==this._peek()&&!this._isAtEnd();)this._advance();this._isAtEnd()?this._error(c):(this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1}))}_regex(){let e=this._current,t=!1,n=!1;for(;;){if(e>=this._input.length)return this._current=e,void this._error(h);const i=this._input.charCodeAt(e);if(t)t=!1;else{if(47===i&&!n){e++;break}91===i?n=!0:92===i?t=!0:93===i&&(n=!1)}e++}for(;e<this._input.length&&d._regexFlags.has(this._input.charCodeAt(e));)e++;this._current=e;const i=this._input.substring(this._start,this._current);this._tokens.push({type:10,lexeme:i,offset:this._start})}_isAtEnd(){return this._current>=this._input.length}}var u=n(3591);const p=new Map;p.set("false",!1),p.set("true",!0),p.set("isMac",r.zx),p.set("isLinux",r.j9),p.set("isWindows",r.uF),p.set("isWeb",r.HZ),p.set("isMacNative",r.zx&&!r.HZ),p.set("isEdge",r.UP),p.set("isFirefox",r.gm),p.set("isChrome",r.H8),p.set("isSafari",r.nr);const m=Object.prototype.hasOwnProperty,f={regexParsingWithErrorRecovery:!0},g=(0,a.kg)("contextkey.parser.error.emptyString","Empty context key expression"),b=(0,a.kg)("contextkey.parser.error.emptyString.hint","Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),v=(0,a.kg)("contextkey.parser.error.noInAfterNot","'in' after 'not'."),y=(0,a.kg)("contextkey.parser.error.closingParenthesis","closing parenthesis ')'"),w=(0,a.kg)("contextkey.parser.error.unexpectedToken","Unexpected token"),_=(0,a.kg)("contextkey.parser.error.unexpectedToken.hint","Did you forget to put && or || before the token?"),k=(0,a.kg)("contextkey.parser.error.unexpectedEOF","Unexpected end of expression"),C=(0,a.kg)("contextkey.parser.error.unexpectedEOF.hint","Did you forget to put a context key?");class S{static{this._parseError=new Error}constructor(e=f){this._config=e,this._scanner=new d,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(""!==e){this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{const e=this._expr();if(!this._isAtEnd()){const e=this._peek(),t=17===e.type?_:void 0;throw this._parsingErrors.push({message:w,offset:e.offset,lexeme:d.getLexeme(e),additionalInfo:t}),S._parseError}return e}catch(t){if(t!==S._parseError)throw t;return}}else this._parsingErrors.push({message:g,offset:0,lexeme:"",additionalInfo:b})}_expr(){return this._or()}_or(){const e=[this._and()];for(;this._matchOne(16);){const t=this._and();e.push(t)}return 1===e.length?e[0]:x.or(...e)}_and(){const e=[this._term()];for(;this._matchOne(15);){const t=this._term();e.push(t)}return 1===e.length?e[0]:x.and(...e)}_term(){if(this._matchOne(2)){const e=this._peek();switch(e.type){case 11:return this._advance(),F.INSTANCE;case 12:return this._advance(),L.INSTANCE;case 0:{this._advance();const e=this._expr();return this._consume(1,y),e?.negate()}case 17:return this._advance(),A.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){const e=this._peek();switch(e.type){case 11:return this._advance(),x.true();case 12:return this._advance(),x.false();case 0:{this._advance();const e=this._expr();return this._consume(1,y),e}case 17:{const i=e.lexeme;if(this._advance(),this._matchOne(9)){const e=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),10!==e.type)throw this._errExpectedButGot("REGEX",e);const n=e.lexeme,r=n.lastIndexOf("/"),s=r===n.length-1?void 0:this._removeFlagsGY(n.substring(r+1));let o;try{o=new RegExp(n.substring(1,r),s)}catch(t){throw this._errExpectedButGot("REGEX",e)}return W.create(i,o)}switch(e.type){case 10:case 19:{const n=[e.lexeme];this._advance();let r=this._peek(),s=0;for(let t=0;t<e.lexeme.length;t++)40===e.lexeme.charCodeAt(t)?s++:41===e.lexeme.charCodeAt(t)&&s--;for(;!this._isAtEnd()&&15!==r.type&&16!==r.type;){switch(r.type){case 0:s++;break;case 1:s--;break;case 10:case 18:for(let t=0;t<r.lexeme.length;t++)40===r.lexeme.charCodeAt(t)?s++:41===e.lexeme.charCodeAt(t)&&s--}if(s<0)break;n.push(d.getLexeme(r)),this._advance(),r=this._peek()}const o=n.join(""),a=o.lastIndexOf("/"),l=a===o.length-1?void 0:this._removeFlagsGY(o.substring(a+1));let c;try{c=new RegExp(o.substring(1,a),l)}catch(t){throw this._errExpectedButGot("REGEX",e)}return x.regex(i,c)}case 18:{const t=e.lexeme;this._advance();let r=null;if(!(0,s.AV)(t)){const i=t.indexOf("/"),s=t.lastIndexOf("/");if(i!==s&&i>=0){const o=t.slice(i+1,s),a="i"===t[s+1]?"i":"";try{r=new RegExp(o,a)}catch(n){throw this._errExpectedButGot("REGEX",e)}}}if(null===r)throw this._errExpectedButGot("REGEX",e);return W.create(i,r)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,v);const e=this._value();return x.notIn(i,e)}switch(this._peek().type){case 3:{this._advance();const e=this._value();if(18===this._previous().type)return x.equals(i,e);switch(e){case"true":return x.has(i);case"false":return x.not(i);default:return x.equals(i,e)}}case 4:{this._advance();const e=this._value();if(18===this._previous().type)return x.notEquals(i,e);switch(e){case"true":return x.not(i);case"false":return x.has(i);default:return x.notEquals(i,e)}}case 5:return this._advance(),P.create(i,this._value());case 6:return this._advance(),B.create(i,this._value());case 7:return this._advance(),O.create(i,this._value());case 8:return this._advance(),z.create(i,this._value());case 13:return this._advance(),x.in(i,this._value());default:return x.has(i)}}case 20:throw this._parsingErrors.push({message:k,offset:e.offset,lexeme:"",additionalInfo:C}),S._parseError;default:throw this._errExpectedButGot("true | false | KEY \n\t| KEY '=~' REGEX \n\t| KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value",this._peek())}}_value(){const e=this._peek();switch(e.type){case 17:case 18:return this._advance(),e.lexeme;case 11:return this._advance(),"true";case 12:return this._advance(),"false";case 13:return this._advance(),"in";default:return""}}_removeFlagsGY(e){return e.replaceAll(this._flagsGYRe,"")}_previous(){return this._tokens[this._current-1]}_matchOne(e){return!!this._check(e)&&(this._advance(),!0)}_advance(){return this._isAtEnd()||this._current++,this._previous()}_consume(e,t){if(this._check(e))return this._advance();throw this._errExpectedButGot(t,this._peek())}_errExpectedButGot(e,t,n){const i=(0,a.kg)("contextkey.parser.error.expectedButGot","Expected: {0}\nReceived: '{1}'.",e,d.getLexeme(t)),r=t.offset,s=d.getLexeme(t);return this._parsingErrors.push({message:i,offset:r,lexeme:s,additionalInfo:n}),S._parseError}_check(e){return this._peek().type===e}_peek(){return this._tokens[this._current]}_isAtEnd(){return 20===this._peek().type}}class x{static false(){return F.INSTANCE}static true(){return L.INSTANCE}static has(e){return I.create(e)}static equals(e,t){return T.create(e,t)}static notEquals(e,t){return D.create(e,t)}static regex(e,t){return W.create(e,t)}static in(e,t){return N.create(e,t)}static notIn(e,t){return R.create(e,t)}static not(e){return A.create(e)}static and(...e){return $.create(e,null,!0)}static or(...e){return q.create(e,null,!0)}static{this._parser=new S({regexParsingWithErrorRecovery:!1})}static deserialize(e){if(void 0===e||null===e)return;return this._parser.parse(e)}}function E(e,t){return e.cmp(t)}class F{static{this.INSTANCE=new F}constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!1}serialize(){return"false"}keys(){return[]}negate(){return L.INSTANCE}}class L{static{this.INSTANCE=new L}constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!0}serialize(){return"true"}keys(){return[]}negate(){return F.INSTANCE}}class I{static create(e,t=null){const n=p.get(e);return"boolean"===typeof n?n?L.INSTANCE:F.INSTANCE:new I(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=2}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=p.get(this.key);return"boolean"===typeof e?e?L.INSTANCE:F.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=A.create(this.key,this)),this.negated}}class T{static create(e,t,n=null){if("boolean"===typeof t)return t?I.create(e,n):A.create(e,n);const i=p.get(e);if("boolean"===typeof i){return t===(i?"true":"false")?L.INSTANCE:F.INSTANCE}return new T(e,t,n)}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=4}cmp(e){return e.type!==this.type?this.type-e.type:H(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=p.get(this.key);if("boolean"===typeof e){const t=e?"true":"false";return this.value===t?L.INSTANCE:F.INSTANCE}return this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=D.create(this.key,this.value,this)),this.negated}}class N{static create(e,t){return new N(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=10,this.negated=null}cmp(e){return e.type!==this.type?this.type-e.type:H(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type&&(this.key===e.key&&this.valueKey===e.valueKey)}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.valueKey),n=e.getValue(this.key);return Array.isArray(t)?t.includes(n):"string"===typeof n&&"object"===typeof t&&null!==t&&m.call(t,n)}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=R.create(this.key,this.valueKey)),this.negated}}class R{static create(e,t){return new R(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=11,this._negated=N.create(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:this._negated.cmp(e._negated)}equals(e){return e.type===this.type&&this._negated.equals(e._negated)}substituteConstants(){return this}evaluate(e){return!this._negated.evaluate(e)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}negate(){return this._negated}}class D{static create(e,t,n=null){if("boolean"===typeof t)return t?A.create(e,n):I.create(e,n);const i=p.get(e);if("boolean"===typeof i){return t===(i?"true":"false")?F.INSTANCE:L.INSTANCE}return new D(e,t,n)}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=5}cmp(e){return e.type!==this.type?this.type-e.type:H(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=p.get(this.key);if("boolean"===typeof e){const t=e?"true":"false";return this.value===t?F.INSTANCE:L.INSTANCE}return this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=T.create(this.key,this.value,this)),this.negated}}class A{static create(e,t=null){const n=p.get(e);return"boolean"===typeof n?n?F.INSTANCE:L.INSTANCE:new A(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=3}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=p.get(this.key);return"boolean"===typeof e?e?F.INSTANCE:L.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=I.create(this.key,this)),this.negated}}function M(e,t){if("string"===typeof e){const t=parseFloat(e);isNaN(t)||(e=t)}return"string"===typeof e||"number"===typeof e?t(e):F.INSTANCE}class O{static create(e,t,n=null){return M(t,(t=>new O(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=12}cmp(e){return e.type!==this.type?this.type-e.type:H(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=B.create(this.key,this.value,this)),this.negated}}class z{static create(e,t,n=null){return M(t,(t=>new z(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=13}cmp(e){return e.type!==this.type?this.type-e.type:H(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=P.create(this.key,this.value,this)),this.negated}}class P{static create(e,t,n=null){return M(t,(t=>new P(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=14}cmp(e){return e.type!==this.type?this.type-e.type:H(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=z.create(this.key,this.value,this)),this.negated}}class B{static create(e,t,n=null){return M(t,(t=>new B(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=15}cmp(e){return e.type!==this.type?this.type-e.type:H(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=O.create(this.key,this.value,this)),this.negated}}class W{static create(e,t){return new W(e,t)}constructor(e,t){this.key=e,this.regexp=t,this.type=7,this.negated=null}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.key<e.key)return-1;if(this.key>e.key)return 1;const t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return t<n?-1:t>n?1:0}equals(e){if(e.type===this.type){const t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return this.key===e.key&&t===n}return!1}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.key);return!!this.regexp&&this.regexp.test(t)}serialize(){const e=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=V.create(this)),this.negated}}class V{static create(e){return new V(e)}constructor(e){this._actual=e,this.type=8}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type&&this._actual.equals(e._actual)}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){return`!(${this._actual.serialize()})`}keys(){return this._actual.keys()}negate(){return this._actual}}function U(e){let t=null;for(let n=0,i=e.length;n<i;n++){const i=e[n].substituteConstants();if(e[n]!==i&&null===t){t=[];for(let i=0;i<n;i++)t[i]=e[i]}null!==t&&(t[n]=i)}return null===t?e:t}class ${static create(e,t,n){return $._normalizeArr(e,t,n)}constructor(e,t){this.expr=e,this.negated=t,this.type=6}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,n=this.expr.length;t<n;t++){const n=E(this.expr[t],e.expr[t]);if(0!==n)return n}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){const e=U(this.expr);return e===this.expr?this:$.create(e,this.negated,!1)}evaluate(e){for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].evaluate(e))return!1;return!0}static _normalizeArr(e,t,n){const i=[];let r=!1;for(const s of e)if(s)if(1!==s.type){if(0===s.type)return F.INSTANCE;6!==s.type?i.push(s):i.push(...s.expr)}else r=!0;if(0===i.length&&r)return L.INSTANCE;if(0!==i.length){if(1===i.length)return i[0];i.sort(E);for(let e=1;e<i.length;e++)i[e-1].equals(i[e])&&(i.splice(e,1),e--);if(1===i.length)return i[0];for(;i.length>1;){const e=i[i.length-1];if(9!==e.type)break;i.pop();const t=i.pop(),r=0===i.length,s=q.create(e.expr.map((e=>$.create([e,t],null,n))),null,r);s&&(i.push(s),i.sort(E))}if(1===i.length)return i[0];if(n){for(let e=0;e<i.length;e++)for(let t=e+1;t<i.length;t++)if(i[e].negate().equals(i[t]))return F.INSTANCE;if(1===i.length)return i[0]}return new $(i,t)}}serialize(){return this.expr.map((e=>e.serialize())).join(" && ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());this.negated=q.create(e,this,!0)}return this.negated}}class q{static create(e,t,n){return q._normalizeArr(e,t,n)}constructor(e,t){this.expr=e,this.negated=t,this.type=9}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,n=this.expr.length;t<n;t++){const n=E(this.expr[t],e.expr[t]);if(0!==n)return n}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){const e=U(this.expr);return e===this.expr?this:q.create(e,this.negated,!1)}evaluate(e){for(let t=0,n=this.expr.length;t<n;t++)if(this.expr[t].evaluate(e))return!0;return!1}static _normalizeArr(e,t,n){let i=[],r=!1;if(e){for(let t=0,n=e.length;t<n;t++){const n=e[t];if(n)if(0!==n.type){if(1===n.type)return L.INSTANCE;9!==n.type?i.push(n):i=i.concat(n.expr)}else r=!0}if(0===i.length&&r)return F.INSTANCE;i.sort(E)}if(0!==i.length){if(1===i.length)return i[0];for(let e=1;e<i.length;e++)i[e-1].equals(i[e])&&(i.splice(e,1),e--);if(1===i.length)return i[0];if(n){for(let e=0;e<i.length;e++)for(let t=e+1;t<i.length;t++)if(i[e].negate().equals(i[t]))return L.INSTANCE;if(1===i.length)return i[0]}return new q(i,t)}}serialize(){return this.expr.map((e=>e.serialize())).join(" || ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());for(;e.length>1;){const t=e.shift(),n=e.shift(),i=[];for(const e of G(t))for(const t of G(n))i.push($.create([e,t],null,!1));e.unshift(q.create(i,null,!1))}this.negated=q.create(e,this,!0)}return this.negated}}class j extends I{static{this._info=[]}static all(){return j._info.values()}constructor(e,t,n){super(e,null),this._defaultValue=t,"object"===typeof n?j._info.push({...n,key:e}):!0!==n&&j._info.push({key:e,description:n,type:null!==t&&void 0!==t?typeof t:void 0})}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return T.create(this.key,e)}}(0,u.u1)("contextKeyService");function K(e,t){return e<t?-1:e>t?1:0}function H(e,t,n,i){return e<n?-1:e>n?1:t<i?-1:t>i?1:0}function G(e){return 9===e.type?e.expr:[e]}const Q=(0,u.u1)("logService");var J;!function(e){e[e.Off=0]="Off",e[e.Trace=1]="Trace",e[e.Debug=2]="Debug",e[e.Info=3]="Info",e[e.Warning=4]="Warning",e[e.Error=5]="Error"}(J||(J={}));J.Info;i.jG;new j("logLevel",function(e){switch(e){case J.Trace:return"trace";case J.Debug:return"debug";case J.Info:return"info";case J.Warning:return"warn";case J.Error:return"error";case J.Off:return"off"}}(J.Info))},6359:(e,t,n)=>{"use strict";n.d(t,{O:()=>s});var i=n(6782),r=n(631);const s=new class{constructor(){this.data=new Map}add(e,t){i.ok(r.Kg(e)),i.ok(r.Gv(t)),i.ok(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)}as(e){return this.data.get(e)||null}}},5845:(e,t,n)=>{"use strict";n.d(t,{buw:()=>x,b1q:()=>S,YtV:()=>N,Ubg:()=>U,IIb:()=>W,pOz:()=>B,whs:()=>O,Stt:()=>P,Hng:()=>z,yLC:()=>le,KoI:()=>oe,uMG:()=>ae,x1A:()=>d});var i=n(6782),r=n(1940),s=n(7661),o=n(1234),a=n(8748),l=n(6359),c=n(8209);const h=new class{constructor(){this._onDidChangeSchema=new o.vl,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}registerColor(e,t,n,i=!1,r){const s={id:e,description:n,defaults:t,needsTransparency:i,deprecationMessage:r};this.colorsById[e]=s;const o={type:"string",format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return r&&(o.deprecationMessage=r),i&&(o.pattern="^#(?:(?<rgba>[0-9a-fA-f]{3}[0-9a-eA-E])|(?:[0-9a-fA-F]{6}(?:(?![fF]{2})(?:[0-9a-fA-F]{2}))))?$",o.patternErrorMessage=c.kg("transparecyRequired","This color must be transparent or it will obscure content")),this.colorSchema.properties[e]={description:n,oneOf:[o,{type:"string",const:"default",description:c.kg("useDefault","Use the default color.")}]},this.colorReferenceSchema.enum.push(e),this.colorReferenceSchema.enumDescriptions.push(n),this._onDidChangeSchema.fire(),e}getColors(){return Object.keys(this.colorsById).map((e=>this.colorsById[e]))}resolveDefaultColor(e,t){const n=this.colorsById[e];if(n?.defaults){return b(null!==(i=n.defaults)&&"object"===typeof i&&"light"in i&&"dark"in i?n.defaults[t.type]:n.defaults,t)}var i}getColorSchema(){return this.colorSchema}toString(){return Object.keys(this.colorsById).sort(((e,t)=>{const n=-1===e.indexOf(".")?0:1,i=-1===t.indexOf(".")?0:1;return n!==i?n-i:e.localeCompare(t)})).map((e=>`- \`${e}\`: ${this.colorsById[e].description}`)).join("\n")}};function d(e,t,n,i,r){return h.registerColor(e,t,n,i,r)}function u(e,t){return{op:0,value:e,factor:t}}function p(e,t){return{op:1,value:e,factor:t}}function m(e,t){return{op:2,value:e,factor:t}}function f(...e){return{op:4,values:e}}function g(e,t,n,i){return{op:5,value:e,background:t,factor:n,transparency:i}}function b(e,t){if(null!==e)return"string"===typeof e?"#"===e[0]?s.Q1.fromHex(e):t.getColor(e):e instanceof s.Q1?e:"object"===typeof e?function(e,t){switch(e.op){case 0:return b(e.value,t)?.darken(e.factor);case 1:return b(e.value,t)?.lighten(e.factor);case 2:return b(e.value,t)?.transparent(e.factor);case 3:{const n=b(e.background,t);return n?b(e.value,t)?.makeOpaque(n):b(e.value,t)}case 4:for(const n of e.values){const e=b(n,t);if(e)return e}return;case 6:return b(t.defines(e.if)?e.then:e.else,t);case 5:{const n=b(e.value,t);if(!n)return;const i=b(e.background,t);return i?n.isDarkerThan(i)?s.Q1.getLighterColor(n,i,e.factor).transparent(e.transparency):s.Q1.getDarkerColor(n,i,e.factor).transparent(e.transparency):n.transparent(e.factor*e.transparency)}default:throw(0,i.xb)(e)}}(e,t):void 0}l.O.add("base.contributions.colors",h);const v="vscode://schemas/workbench-colors",y=l.O.as(a.F.JSONContribution);y.registerSchema(v,h.getColorSchema());const w=new r.uC((()=>y.notifySchemaChanged(v)),200);h.onDidChangeSchema((()=>{w.isScheduled()||w.schedule()}));const _=d("foreground",{dark:"#CCCCCC",light:"#616161",hcDark:"#FFFFFF",hcLight:"#292929"},c.kg("foreground","Overall foreground color. This color is only used if not overridden by a component.")),k=(d("disabledForeground",{dark:"#CCCCCC80",light:"#61616180",hcDark:"#A5A5A5",hcLight:"#7F7F7F"},c.kg("disabledForeground","Overall foreground for disabled elements. This color is only used if not overridden by a component.")),d("errorForeground",{dark:"#F48771",light:"#A1260D",hcDark:"#F48771",hcLight:"#B5200D"},c.kg("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),d("descriptionForeground",{light:"#717171",dark:m(_,.7),hcDark:m(_,.7),hcLight:m(_,.7)},c.kg("descriptionForeground","Foreground color for description text providing additional information, for example for a label.")),d("icon.foreground",{dark:"#C5C5C5",light:"#424242",hcDark:"#FFFFFF",hcLight:"#292929"},c.kg("iconForeground","The default color for icons in the workbench."))),C=d("focusBorder",{dark:"#007FD4",light:"#0090F1",hcDark:"#F38518",hcLight:"#006BBD"},c.kg("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),S=d("contrastBorder",{light:null,dark:null,hcDark:"#6FC3DF",hcLight:"#0F4A85"},c.kg("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),x=d("contrastActiveBorder",{light:null,dark:null,hcDark:C,hcLight:C},c.kg("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),E=(d("selection.background",null,c.kg("selectionBackground","The background color of text selections in the workbench (e.g. for input fields or text areas). Note that this does not apply to selections within the editor.")),d("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},c.kg("textLinkForeground","Foreground color for links in text.")),d("textLink.activeForeground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},c.kg("textLinkActiveForeground","Foreground color for links in text when clicked on and on mouse hover.")),d("textSeparator.foreground",{light:"#0000002e",dark:"#ffffff2e",hcDark:s.Q1.black,hcLight:"#292929"},c.kg("textSeparatorForeground","Color for text separators.")),d("textPreformat.foreground",{light:"#A31515",dark:"#D7BA7D",hcDark:"#000000",hcLight:"#FFFFFF"},c.kg("textPreformatForeground","Foreground color for preformatted text segments.")),d("textPreformat.background",{light:"#0000001A",dark:"#FFFFFF1A",hcDark:"#FFFFFF",hcLight:"#09345f"},c.kg("textPreformatBackground","Background color for preformatted text segments.")),d("textBlockQuote.background",{light:"#f2f2f2",dark:"#222222",hcDark:null,hcLight:"#F2F2F2"},c.kg("textBlockQuoteBackground","Background color for block quotes in text.")),d("textBlockQuote.border",{light:"#007acc80",dark:"#007acc80",hcDark:s.Q1.white,hcLight:"#292929"},c.kg("textBlockQuoteBorder","Border color for block quotes in text.")),d("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hcDark:s.Q1.black,hcLight:"#F2F2F2"},c.kg("textCodeBlockBackground","Background color for code blocks in text.")),d("sash.hoverBorder",C,c.kg("sashActiveBorder","Border color of active sashes.")),d("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hcDark:s.Q1.black,hcLight:"#0F4A85"},c.kg("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count."))),F=(d("badge.foreground",{dark:s.Q1.white,light:"#333",hcDark:s.Q1.white,hcLight:s.Q1.white},c.kg("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),d("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hcDark:null,hcLight:null},c.kg("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled."))),L=d("scrollbarSlider.background",{dark:s.Q1.fromHex("#797979").transparent(.4),light:s.Q1.fromHex("#646464").transparent(.4),hcDark:m(S,.6),hcLight:m(S,.4)},c.kg("scrollbarSliderBackground","Scrollbar slider background color.")),I=d("scrollbarSlider.hoverBackground",{dark:s.Q1.fromHex("#646464").transparent(.7),light:s.Q1.fromHex("#646464").transparent(.7),hcDark:m(S,.8),hcLight:m(S,.8)},c.kg("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),T=d("scrollbarSlider.activeBackground",{dark:s.Q1.fromHex("#BFBFBF").transparent(.4),light:s.Q1.fromHex("#000000").transparent(.6),hcDark:S,hcLight:S},c.kg("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),N=(d("progressBar.background",{dark:s.Q1.fromHex("#0E70C0"),light:s.Q1.fromHex("#0E70C0"),hcDark:S,hcLight:S},c.kg("progressBarBackground","Background color of the progress bar that can show for long running operations.")),d("editor.background",{light:"#ffffff",dark:"#1E1E1E",hcDark:s.Q1.black,hcLight:s.Q1.white},c.kg("editorBackground","Editor background color."))),R=(d("editor.foreground",{light:"#333333",dark:"#BBBBBB",hcDark:s.Q1.white,hcLight:_},c.kg("editorForeground","Editor default foreground color.")),d("editorStickyScroll.background",N,c.kg("editorStickyScrollBackground","Background color of sticky scroll in the editor")),d("editorStickyScrollHover.background",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:null,hcLight:s.Q1.fromHex("#0F4A85").transparent(.1)},c.kg("editorStickyScrollHoverBackground","Background color of sticky scroll on hover in the editor")),d("editorStickyScroll.border",{dark:null,light:null,hcDark:S,hcLight:S},c.kg("editorStickyScrollBorder","Border color of sticky scroll in the editor")),d("editorStickyScroll.shadow",F,c.kg("editorStickyScrollShadow"," Shadow color of sticky scroll in the editor")),d("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hcDark:"#0C141F",hcLight:s.Q1.white},c.kg("editorWidgetBackground","Background color of editor widgets, such as find/replace."))),D=d("editorWidget.foreground",_,c.kg("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),A=d("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hcDark:S,hcLight:S},c.kg("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),M=(d("editorWidget.resizeBorder",null,c.kg("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),d("editorError.background",null,c.kg("editorError.background","Background color of error text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),d("editorError.foreground",{dark:"#F14C4C",light:"#E51400",hcDark:"#F48771",hcLight:"#B5200D"},c.kg("editorError.foreground","Foreground color of error squigglies in the editor."))),O=(d("editorError.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#E47777").transparent(.8),hcLight:"#B5200D"},c.kg("errorBorder","If set, color of double underlines for errors in the editor.")),d("editorWarning.background",null,c.kg("editorWarning.background","Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0)),z=d("editorWarning.foreground",{dark:"#CCA700",light:"#BF8803",hcDark:"#FFD370",hcLight:"#895503"},c.kg("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),P=d("editorWarning.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#FFCC00").transparent(.8),hcLight:s.Q1.fromHex("#FFCC00").transparent(.8)},c.kg("warningBorder","If set, color of double underlines for warnings in the editor.")),B=(d("editorInfo.background",null,c.kg("editorInfo.background","Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),d("editorInfo.foreground",{dark:"#3794FF",light:"#1a85ff",hcDark:"#3794FF",hcLight:"#1a85ff"},c.kg("editorInfo.foreground","Foreground color of info squigglies in the editor."))),W=d("editorInfo.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#3794FF").transparent(.8),hcLight:"#292929"},c.kg("infoBorder","If set, color of double underlines for infos in the editor.")),V=(d("editorHint.foreground",{dark:s.Q1.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hcDark:null,hcLight:null},c.kg("editorHint.foreground","Foreground color of hint squigglies in the editor.")),d("editorHint.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#eeeeee").transparent(.8),hcLight:"#292929"},c.kg("hintBorder","If set, color of double underlines for hints in the editor.")),d("editorLink.activeForeground",{dark:"#4E94CE",light:s.Q1.blue,hcDark:s.Q1.cyan,hcLight:"#292929"},c.kg("activeLinkForeground","Color of active links.")),d("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hcDark:"#f3f518",hcLight:"#0F4A85"},c.kg("editorSelectionBackground","Color of the editor selection."))),U=(d("editor.selectionForeground",{light:null,dark:null,hcDark:"#000000",hcLight:s.Q1.white},c.kg("editorSelectionForeground","Color of the selected text for high contrast.")),d("editor.inactiveSelectionBackground",{light:m(V,.5),dark:m(V,.5),hcDark:m(V,.7),hcLight:m(V,.5)},c.kg("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),d("editor.selectionHighlightBackground",{light:g(V,N,.3,.6),dark:g(V,N,.3,.6),hcDark:null,hcLight:null},c.kg("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),d("editor.selectionHighlightBorder",{light:null,dark:null,hcDark:x,hcLight:x},c.kg("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),d("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hcDark:null,hcLight:null},c.kg("editorFindMatch","Color of the current search match.")),d("editor.findMatchForeground",null,c.kg("editorFindMatchForeground","Text color of the current search match.")),d("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hcDark:null,hcLight:null},c.kg("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0)),$=(d("editor.findMatchHighlightForeground",null,c.kg("findMatchHighlightForeground","Foreground color of the other search matches."),!0),d("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hcDark:null,hcLight:null},c.kg("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),d("editor.findMatchBorder",{light:null,dark:null,hcDark:x,hcLight:x},c.kg("editorFindMatchBorder","Border color of the current search match.")),d("editor.findMatchHighlightBorder",{light:null,dark:null,hcDark:x,hcLight:x},c.kg("findMatchHighlightBorder","Border color of the other search matches."))),q=(d("editor.findRangeHighlightBorder",{dark:null,light:null,hcDark:m(x,.4),hcLight:m(x,.4)},c.kg("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),d("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hcDark:"#ADD6FF26",hcLight:null},c.kg("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),d("editorHoverWidget.background",R,c.kg("hoverBackground","Background color of the editor hover."))),j=(d("editorHoverWidget.foreground",D,c.kg("hoverForeground","Foreground color of the editor hover.")),d("editorHoverWidget.border",A,c.kg("hoverBorder","Border color of the editor hover.")),d("editorHoverWidget.statusBarBackground",{dark:p(q,.2),light:u(q,.05),hcDark:R,hcLight:R},c.kg("statusBarBackground","Background color of the editor hover status bar.")),d("editorInlayHint.foreground",{dark:"#969696",light:"#969696",hcDark:s.Q1.white,hcLight:s.Q1.black},c.kg("editorInlayHintForeground","Foreground color of inline hints"))),K=d("editorInlayHint.background",{dark:m(E,.1),light:m(E,.1),hcDark:m(s.Q1.white,.1),hcLight:m(E,.1)},c.kg("editorInlayHintBackground","Background color of inline hints")),H=(d("editorInlayHint.typeForeground",j,c.kg("editorInlayHintForegroundTypes","Foreground color of inline hints for types")),d("editorInlayHint.typeBackground",K,c.kg("editorInlayHintBackgroundTypes","Background color of inline hints for types")),d("editorInlayHint.parameterForeground",j,c.kg("editorInlayHintForegroundParameter","Foreground color of inline hints for parameters")),d("editorInlayHint.parameterBackground",K,c.kg("editorInlayHintBackgroundParameter","Background color of inline hints for parameters")),d("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hcDark:"#FFCC00",hcLight:"#007ACC"},c.kg("editorLightBulbForeground","The color used for the lightbulb actions icon."))),G=(d("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},c.kg("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),d("editorLightBulbAi.foreground",H,c.kg("editorLightBulbAiForeground","The color used for the lightbulb AI icon.")),d("editor.snippetTabstopHighlightBackground",{dark:new s.Q1(new s.bU(124,124,124,.3)),light:new s.Q1(new s.bU(10,50,100,.2)),hcDark:new s.Q1(new s.bU(124,124,124,.3)),hcLight:new s.Q1(new s.bU(10,50,100,.2))},c.kg("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),d("editor.snippetTabstopHighlightBorder",null,c.kg("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),d("editor.snippetFinalTabstopHighlightBackground",null,c.kg("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),d("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new s.Q1(new s.bU(10,50,100,.5)),hcDark:"#525252",hcLight:"#292929"},c.kg("snippetFinalTabstopHighlightBorder","Highlight border color of the final tabstop of a snippet.")),new s.Q1(new s.bU(155,185,85,.2))),Q=new s.Q1(new s.bU(255,0,0,.2)),J=(d("diffEditor.insertedTextBackground",{dark:"#9ccc2c33",light:"#9ccc2c40",hcDark:null,hcLight:null},c.kg("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),d("diffEditor.removedTextBackground",{dark:"#ff000033",light:"#ff000033",hcDark:null,hcLight:null},c.kg("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),d("diffEditor.insertedLineBackground",{dark:G,light:G,hcDark:null,hcLight:null},c.kg("diffEditorInsertedLines","Background color for lines that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),d("diffEditor.removedLineBackground",{dark:Q,light:Q,hcDark:null,hcLight:null},c.kg("diffEditorRemovedLines","Background color for lines that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),d("diffEditorGutter.insertedLineBackground",null,c.kg("diffEditorInsertedLineGutter","Background color for the margin where lines got inserted.")),d("diffEditorGutter.removedLineBackground",null,c.kg("diffEditorRemovedLineGutter","Background color for the margin where lines got removed.")),d("diffEditorOverview.insertedForeground",null,c.kg("diffEditorOverviewInserted","Diff overview ruler foreground for inserted content.")),d("diffEditorOverview.removedForeground",null,c.kg("diffEditorOverviewRemoved","Diff overview ruler foreground for removed content.")),d("diffEditor.insertedTextBorder",{dark:null,light:null,hcDark:"#33ff2eff",hcLight:"#374E06"},c.kg("diffEditorInsertedOutline","Outline color for the text that got inserted.")),d("diffEditor.removedTextBorder",{dark:null,light:null,hcDark:"#FF008F",hcLight:"#AD0707"},c.kg("diffEditorRemovedOutline","Outline color for text that got removed.")),d("diffEditor.border",{dark:null,light:null,hcDark:S,hcLight:S},c.kg("diffEditorBorder","Border color between the two text editors.")),d("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hcDark:null,hcLight:null},c.kg("diffDiagonalFill","Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.")),d("diffEditor.unchangedRegionBackground","sideBar.background",c.kg("diffEditor.unchangedRegionBackground","The background color of unchanged blocks in the diff editor.")),d("diffEditor.unchangedRegionForeground","foreground",c.kg("diffEditor.unchangedRegionForeground","The foreground color of unchanged blocks in the diff editor.")),d("diffEditor.unchangedCodeBackground",{dark:"#74747429",light:"#b8b8b829",hcDark:null,hcLight:null},c.kg("diffEditor.unchangedCodeBackground","The background color of unchanged code in the diff editor.")),d("widget.shadow",{dark:m(s.Q1.black,.36),light:m(s.Q1.black,.16),hcDark:null,hcLight:null},c.kg("widgetShadow","Shadow color of widgets such as find/replace inside the editor."))),Y=(d("widget.border",{dark:null,light:null,hcDark:S,hcLight:S},c.kg("widgetBorder","Border color of widgets such as find/replace inside the editor.")),d("toolbar.hoverBackground",{dark:"#5a5d5e50",light:"#b8b8b850",hcDark:null,hcLight:null},c.kg("toolbarHoverBackground","Toolbar background when hovering over actions using the mouse"))),X=(d("toolbar.hoverOutline",{dark:null,light:null,hcDark:x,hcLight:x},c.kg("toolbarHoverOutline","Toolbar outline when hovering over actions using the mouse")),d("toolbar.activeBackground",{dark:p(Y,.1),light:u(Y,.1),hcDark:null,hcLight:null},c.kg("toolbarActiveBackground","Toolbar background when holding the mouse over actions")),d("breadcrumb.foreground",m(_,.8),c.kg("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),d("breadcrumb.background",N,c.kg("breadcrumbsBackground","Background color of breadcrumb items.")),d("breadcrumb.focusForeground",{light:u(_,.2),dark:p(_,.1),hcDark:p(_,.1),hcLight:p(_,.1)},c.kg("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),d("breadcrumb.activeSelectionForeground",{light:u(_,.2),dark:p(_,.1),hcDark:p(_,.1),hcLight:p(_,.1)},c.kg("breadcrumbsSelectedForeground","Color of selected breadcrumb items.")),d("breadcrumbPicker.background",R,c.kg("breadcrumbsSelectedBackground","Background color of breadcrumb item picker.")),s.Q1.fromHex("#40C8AE").transparent(.5)),Z=s.Q1.fromHex("#40A6FF").transparent(.5),ee=s.Q1.fromHex("#606060").transparent(.4),te=d("merge.currentHeaderBackground",{dark:X,light:X,hcDark:null,hcLight:null},c.kg("mergeCurrentHeaderBackground","Current header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),ne=(d("merge.currentContentBackground",m(te,.4),c.kg("mergeCurrentContentBackground","Current content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),d("merge.incomingHeaderBackground",{dark:Z,light:Z,hcDark:null,hcLight:null},c.kg("mergeIncomingHeaderBackground","Incoming header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0)),ie=(d("merge.incomingContentBackground",m(ne,.4),c.kg("mergeIncomingContentBackground","Incoming content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),d("merge.commonHeaderBackground",{dark:ee,light:ee,hcDark:null,hcLight:null},c.kg("mergeCommonHeaderBackground","Common ancestor header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0)),re=(d("merge.commonContentBackground",m(ie,.4),c.kg("mergeCommonContentBackground","Common ancestor content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),d("merge.border",{dark:null,light:null,hcDark:"#C3DF6F",hcLight:"#007ACC"},c.kg("mergeBorder","Border color on headers and the splitter in inline merge-conflicts."))),se=(d("editorOverviewRuler.currentContentForeground",{dark:m(te,1),light:m(te,1),hcDark:re,hcLight:re},c.kg("overviewRulerCurrentContentForeground","Current overview ruler foreground for inline merge-conflicts.")),d("editorOverviewRuler.incomingContentForeground",{dark:m(ne,1),light:m(ne,1),hcDark:re,hcLight:re},c.kg("overviewRulerIncomingContentForeground","Incoming overview ruler foreground for inline merge-conflicts.")),d("editorOverviewRuler.commonContentForeground",{dark:m(ie,1),light:m(ie,1),hcDark:re,hcLight:re},c.kg("overviewRulerCommonContentForeground","Common ancestor overview ruler foreground for inline merge-conflicts.")),d("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hcDark:"#AB5A00",hcLight:"#AB5A00"},c.kg("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0),d("editorOverviewRuler.selectionHighlightForeground","#A0A0A0CC",c.kg("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),d("problemsErrorIcon.foreground",M,c.kg("problemsErrorIconForeground","The color used for the problems error icon.")),d("problemsWarningIcon.foreground",z,c.kg("problemsWarningIconForeground","The color used for the problems warning icon.")),d("problemsInfoIcon.foreground",B,c.kg("problemsInfoIconForeground","The color used for the problems info icon.")),d("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hcDark:"#AB5A00",hcLight:"#0F4A85"},c.kg("minimapFindMatchHighlight","Minimap marker color for find matches."),!0)),oe=(d("minimap.selectionOccurrenceHighlight",{light:"#c9c9c9",dark:"#676767",hcDark:"#ffffff",hcLight:"#0F4A85"},c.kg("minimapSelectionOccurrenceHighlight","Minimap marker color for repeating editor selections."),!0),d("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hcDark:"#ffffff",hcLight:"#0F4A85"},c.kg("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),d("minimap.infoHighlight",{dark:B,light:B,hcDark:W,hcLight:W},c.kg("minimapInfo","Minimap marker color for infos."))),ae=d("minimap.warningHighlight",{dark:z,light:z,hcDark:P,hcLight:P},c.kg("overviewRuleWarning","Minimap marker color for warnings.")),le=d("minimap.errorHighlight",{dark:new s.Q1(new s.bU(255,18,18,.7)),light:new s.Q1(new s.bU(255,18,18,.7)),hcDark:new s.Q1(new s.bU(255,50,50,1)),hcLight:"#B5200D"},c.kg("minimapError","Minimap marker color for errors.")),ce=(d("minimap.background",null,c.kg("minimapBackground","Minimap background color.")),d("minimap.foregroundOpacity",s.Q1.fromHex("#000f"),c.kg("minimapForegroundOpacity",'Opacity of foreground elements rendered in the minimap. For example, "#000000c0" will render the elements with 75% opacity.')),d("minimapSlider.background",m(L,.5),c.kg("minimapSliderBackground","Minimap slider background color.")),d("minimapSlider.hoverBackground",m(I,.5),c.kg("minimapSliderHoverBackground","Minimap slider background color when hovering.")),d("minimapSlider.activeBackground",m(T,.5),c.kg("minimapSliderActiveBackground","Minimap slider background color when clicked on.")),d("charts.foreground",_,c.kg("chartsForeground","The foreground color used in charts.")),d("charts.lines",m(_,.5),c.kg("chartsLines","The color used for horizontal lines in charts.")),d("charts.red",M,c.kg("chartsRed","The red color used in chart visualizations.")),d("charts.blue",B,c.kg("chartsBlue","The blue color used in chart visualizations.")),d("charts.yellow",z,c.kg("chartsYellow","The yellow color used in chart visualizations.")),d("charts.orange",se,c.kg("chartsOrange","The orange color used in chart visualizations.")),d("charts.green",{dark:"#89D185",light:"#388A34",hcDark:"#89D185",hcLight:"#374e06"},c.kg("chartsGreen","The green color used in chart visualizations.")),d("charts.purple",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},c.kg("chartsPurple","The purple color used in chart visualizations.")),d("input.background",{dark:"#3C3C3C",light:s.Q1.white,hcDark:s.Q1.black,hcLight:s.Q1.white},c.kg("inputBoxBackground","Input box background.")),d("input.foreground",_,c.kg("inputBoxForeground","Input box foreground.")),d("input.border",{dark:null,light:null,hcDark:S,hcLight:S},c.kg("inputBoxBorder","Input box border.")),d("inputOption.activeBorder",{dark:"#007ACC",light:"#007ACC",hcDark:S,hcLight:S},c.kg("inputBoxActiveOptionBorder","Border color of activated options in input fields."))),he=d("inputOption.hoverBackground",{dark:"#5a5d5e80",light:"#b8b8b850",hcDark:null,hcLight:null},c.kg("inputOption.hoverBackground","Background color of activated options in input fields.")),de=d("inputOption.activeBackground",{dark:m(C,.4),light:m(C,.2),hcDark:s.Q1.transparent,hcLight:s.Q1.transparent},c.kg("inputOption.activeBackground","Background hover color of options in input fields.")),ue=d("inputOption.activeForeground",{dark:s.Q1.white,light:s.Q1.black,hcDark:_,hcLight:_},c.kg("inputOption.activeForeground","Foreground color of activated options in input fields.")),pe=(d("input.placeholderForeground",{light:m(_,.5),dark:m(_,.5),hcDark:m(_,.7),hcLight:m(_,.7)},c.kg("inputPlaceholderForeground","Input box foreground color for placeholder text.")),d("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hcDark:s.Q1.black,hcLight:s.Q1.white},c.kg("inputValidationInfoBackground","Input validation background color for information severity.")),d("inputValidation.infoForeground",{dark:null,light:null,hcDark:null,hcLight:_},c.kg("inputValidationInfoForeground","Input validation foreground color for information severity.")),d("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hcDark:S,hcLight:S},c.kg("inputValidationInfoBorder","Input validation border color for information severity.")),d("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hcDark:s.Q1.black,hcLight:s.Q1.white},c.kg("inputValidationWarningBackground","Input validation background color for warning severity.")),d("inputValidation.warningForeground",{dark:null,light:null,hcDark:null,hcLight:_},c.kg("inputValidationWarningForeground","Input validation foreground color for warning severity.")),d("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hcDark:S,hcLight:S},c.kg("inputValidationWarningBorder","Input validation border color for warning severity.")),d("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hcDark:s.Q1.black,hcLight:s.Q1.white},c.kg("inputValidationErrorBackground","Input validation background color for error severity.")),d("inputValidation.errorForeground",{dark:null,light:null,hcDark:null,hcLight:_},c.kg("inputValidationErrorForeground","Input validation foreground color for error severity.")),d("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hcDark:S,hcLight:S},c.kg("inputValidationErrorBorder","Input validation border color for error severity.")),d("dropdown.background",{dark:"#3C3C3C",light:s.Q1.white,hcDark:s.Q1.black,hcLight:s.Q1.white},c.kg("dropdownBackground","Dropdown background."))),me=(d("dropdown.listBackground",{dark:null,light:null,hcDark:s.Q1.black,hcLight:s.Q1.white},c.kg("dropdownListBackground","Dropdown list background.")),d("dropdown.foreground",{dark:"#F0F0F0",light:_,hcDark:s.Q1.white,hcLight:_},c.kg("dropdownForeground","Dropdown foreground."))),fe=d("dropdown.border",{dark:pe,light:"#CECECE",hcDark:S,hcLight:S},c.kg("dropdownBorder","Dropdown border.")),ge=d("button.foreground",s.Q1.white,c.kg("buttonForeground","Button foreground color.")),be=(d("button.separator",m(ge,.4),c.kg("buttonSeparator","Button separator color.")),d("button.background",{dark:"#0E639C",light:"#007ACC",hcDark:null,hcLight:"#0F4A85"},c.kg("buttonBackground","Button background color."))),ve=(d("button.hoverBackground",{dark:p(be,.2),light:u(be,.2),hcDark:be,hcLight:be},c.kg("buttonHoverBackground","Button background color when hovering.")),d("button.border",S,c.kg("buttonBorder","Button border color.")),d("button.secondaryForeground",{dark:s.Q1.white,light:s.Q1.white,hcDark:s.Q1.white,hcLight:_},c.kg("buttonSecondaryForeground","Secondary button foreground color.")),d("button.secondaryBackground",{dark:"#3A3D41",light:"#5F6A79",hcDark:null,hcLight:s.Q1.white},c.kg("buttonSecondaryBackground","Secondary button background color."))),ye=(d("button.secondaryHoverBackground",{dark:p(ve,.2),light:u(ve,.2),hcDark:null,hcLight:null},c.kg("buttonSecondaryHoverBackground","Secondary button background color when hovering.")),d("radio.activeForeground",ue,c.kg("radioActiveForeground","Foreground color of active radio option."))),we=(d("radio.activeBackground",de,c.kg("radioBackground","Background color of active radio option.")),d("radio.activeBorder",ce,c.kg("radioActiveBorder","Border color of the active radio option.")),d("radio.inactiveForeground",null,c.kg("radioInactiveForeground","Foreground color of inactive radio option.")),d("radio.inactiveBackground",null,c.kg("radioInactiveBackground","Background color of inactive radio option.")),d("radio.inactiveBorder",{light:m(ye,.2),dark:m(ye,.2),hcDark:m(ye,.4),hcLight:m(ye,.2)},c.kg("radioInactiveBorder","Border color of the inactive radio option.")),d("radio.inactiveHoverBackground",he,c.kg("radioHoverBackground","Background color of inactive active radio option when hovering.")),d("checkbox.background",pe,c.kg("checkbox.background","Background color of checkbox widget.")),d("checkbox.selectBackground",R,c.kg("checkbox.select.background","Background color of checkbox widget when the element it's in is selected.")),d("checkbox.foreground",me,c.kg("checkbox.foreground","Foreground color of checkbox widget.")),d("checkbox.border",fe,c.kg("checkbox.border","Border color of checkbox widget.")),d("checkbox.selectBorder",k,c.kg("checkbox.select.border","Border color of checkbox widget when the element it's in is selected.")),d("keybindingLabel.background",{dark:new s.Q1(new s.bU(128,128,128,.17)),light:new s.Q1(new s.bU(221,221,221,.4)),hcDark:s.Q1.transparent,hcLight:s.Q1.transparent},c.kg("keybindingLabelBackground","Keybinding label background color. The keybinding label is used to represent a keyboard shortcut.")),d("keybindingLabel.foreground",{dark:s.Q1.fromHex("#CCCCCC"),light:s.Q1.fromHex("#555555"),hcDark:s.Q1.white,hcLight:_},c.kg("keybindingLabelForeground","Keybinding label foreground color. The keybinding label is used to represent a keyboard shortcut.")),d("keybindingLabel.border",{dark:new s.Q1(new s.bU(51,51,51,.6)),light:new s.Q1(new s.bU(204,204,204,.4)),hcDark:new s.Q1(new s.bU(111,195,223)),hcLight:S},c.kg("keybindingLabelBorder","Keybinding label border color. The keybinding label is used to represent a keyboard shortcut.")),d("keybindingLabel.bottomBorder",{dark:new s.Q1(new s.bU(68,68,68,.6)),light:new s.Q1(new s.bU(187,187,187,.4)),hcDark:new s.Q1(new s.bU(111,195,223)),hcLight:_},c.kg("keybindingLabelBottomBorder","Keybinding label border bottom color. The keybinding label is used to represent a keyboard shortcut.")),d("list.focusBackground",null,c.kg("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),d("list.focusForeground",null,c.kg("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),d("list.focusOutline",{dark:C,light:C,hcDark:x,hcLight:x},c.kg("listFocusOutline","List/Tree outline color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),d("list.focusAndSelectionOutline",null,c.kg("listFocusAndSelectionOutline","List/Tree outline color for the focused item when the list/tree is active and selected. An active list/tree has keyboard focus, an inactive does not.")),d("list.activeSelectionBackground",{dark:"#04395E",light:"#0060C0",hcDark:null,hcLight:s.Q1.fromHex("#0F4A85").transparent(.1)},c.kg("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not."))),_e=d("list.activeSelectionForeground",{dark:s.Q1.white,light:s.Q1.white,hcDark:null,hcLight:null},c.kg("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),ke=d("list.activeSelectionIconForeground",null,c.kg("listActiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Ce=(d("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hcDark:null,hcLight:s.Q1.fromHex("#0F4A85").transparent(.1)},c.kg("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),d("list.inactiveSelectionForeground",null,c.kg("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),d("list.inactiveSelectionIconForeground",null,c.kg("listInactiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),d("list.inactiveFocusBackground",null,c.kg("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),d("list.inactiveFocusOutline",null,c.kg("listInactiveFocusOutline","List/Tree outline color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),d("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:s.Q1.white.transparent(.1),hcLight:s.Q1.fromHex("#0F4A85").transparent(.1)},c.kg("listHoverBackground","List/Tree background when hovering over items using the mouse.")),d("list.hoverForeground",null,c.kg("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),d("list.dropBackground",{dark:"#062F4A",light:"#D6EBFF",hcDark:null,hcLight:null},c.kg("listDropBackground","List/Tree drag and drop background when moving items over other items when using the mouse.")),d("list.dropBetweenBackground",{dark:k,light:k,hcDark:null,hcLight:null},c.kg("listDropBetweenBackground","List/Tree drag and drop border color when moving items between items when using the mouse.")),d("list.highlightForeground",{dark:"#2AAAFF",light:"#0066BF",hcDark:C,hcLight:C},c.kg("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")));d("list.focusHighlightForeground",{dark:Ce,light:(Se=we,xe=Ce,Ee="#BBE7FF",{op:6,if:Se,then:xe,else:Ee}),hcDark:Ce,hcLight:Ce},c.kg("listFocusHighlightForeground","List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree."));var Se,xe,Ee;d("list.invalidItemForeground",{dark:"#B89500",light:"#B89500",hcDark:"#B89500",hcLight:"#B5200D"},c.kg("invalidItemForeground","List/Tree foreground color for invalid items, for example an unresolved root in explorer.")),d("list.errorForeground",{dark:"#F88070",light:"#B01011",hcDark:null,hcLight:null},c.kg("listErrorForeground","Foreground color of list items containing errors.")),d("list.warningForeground",{dark:"#CCA700",light:"#855F00",hcDark:null,hcLight:null},c.kg("listWarningForeground","Foreground color of list items containing warnings.")),d("listFilterWidget.background",{light:u(R,0),dark:p(R,0),hcDark:R,hcLight:R},c.kg("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),d("listFilterWidget.outline",{dark:s.Q1.transparent,light:s.Q1.transparent,hcDark:"#f38518",hcLight:"#007ACC"},c.kg("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),d("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hcDark:S,hcLight:S},c.kg("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),d("listFilterWidget.shadow",J,c.kg("listFilterWidgetShadow","Shadow color of the type filter widget in lists and trees.")),d("list.filterMatchBackground",{dark:U,light:U,hcDark:null,hcLight:null},c.kg("listFilterMatchHighlight","Background color of the filtered match.")),d("list.filterMatchBorder",{dark:$,light:$,hcDark:S,hcLight:x},c.kg("listFilterMatchHighlightBorder","Border color of the filtered match.")),d("list.deemphasizedForeground",{dark:"#8C8C8C",light:"#8E8E90",hcDark:"#A7A8A9",hcLight:"#666666"},c.kg("listDeemphasizedForeground","List/Tree foreground color for items that are deemphasized."));const Fe=d("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hcDark:"#a9a9a9",hcLight:"#a5a5a5"},c.kg("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),Le=(d("tree.inactiveIndentGuidesStroke",m(Fe,.4),c.kg("treeInactiveIndentGuidesStroke","Tree stroke color for the indentation guides that are not active.")),d("tree.tableColumnsBorder",{dark:"#CCCCCC20",light:"#61616120",hcDark:null,hcLight:null},c.kg("tableColumnsBorder","Table border color between columns.")),d("tree.tableOddRowsBackground",{dark:m(_,.04),light:m(_,.04),hcDark:null,hcLight:null},c.kg("tableOddRowsBackgroundColor","Background color for odd table rows.")),d("editorActionList.background",R,c.kg("editorActionListBackground","Action List background color.")),d("editorActionList.foreground",D,c.kg("editorActionListForeground","Action List foreground color.")),d("editorActionList.focusForeground",_e,c.kg("editorActionListFocusForeground","Action List foreground color for the focused item.")),d("editorActionList.focusBackground",we,c.kg("editorActionListFocusBackground","Action List background color for the focused item.")),d("menu.border",{dark:null,light:null,hcDark:S,hcLight:S},c.kg("menuBorder","Border color of menus.")),d("menu.foreground",me,c.kg("menuForeground","Foreground color of menu items.")),d("menu.background",pe,c.kg("menuBackground","Background color of menu items.")),d("menu.selectionForeground",_e,c.kg("menuSelectionForeground","Foreground color of the selected menu item in menus.")),d("menu.selectionBackground",we,c.kg("menuSelectionBackground","Background color of the selected menu item in menus.")),d("menu.selectionBorder",{dark:null,light:null,hcDark:x,hcLight:x},c.kg("menuSelectionBorder","Border color of the selected menu item in menus.")),d("menu.separatorBackground",{dark:"#606060",light:"#D4D4D4",hcDark:S,hcLight:S},c.kg("menuSeparatorBackground","Color of a separator menu item in menus.")),d("quickInput.background",R,c.kg("pickerBackground","Quick picker background color. The quick picker widget is the container for pickers like the command palette.")),d("quickInput.foreground",D,c.kg("pickerForeground","Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")),d("quickInputTitle.background",{dark:new s.Q1(new s.bU(255,255,255,.105)),light:new s.Q1(new s.bU(0,0,0,.06)),hcDark:"#000000",hcLight:s.Q1.white},c.kg("pickerTitleBackground","Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")),d("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hcDark:s.Q1.white,hcLight:"#0F4A85"},c.kg("pickerGroupForeground","Quick picker color for grouping labels.")),d("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hcDark:s.Q1.white,hcLight:"#0F4A85"},c.kg("pickerGroupBorder","Quick picker color for grouping borders.")),d("quickInput.list.focusBackground",null,"",void 0,c.kg("quickInput.list.focusBackground deprecation","Please use quickInputList.focusBackground instead")));d("quickInputList.focusForeground",_e,c.kg("quickInput.listFocusForeground","Quick picker foreground color for the focused item.")),d("quickInputList.focusIconForeground",ke,c.kg("quickInput.listFocusIconForeground","Quick picker icon foreground color for the focused item.")),d("quickInputList.focusBackground",{dark:f(Le,we),light:f(Le,we),hcDark:null,hcLight:null},c.kg("quickInput.listFocusBackground","Quick picker background color for the focused item.")),d("search.resultsInfoForeground",{light:_,dark:m(_,.65),hcDark:_,hcLight:_},c.kg("search.resultsInfoForeground","Color of the text in the search viewlet's completion message.")),d("searchEditor.findMatchBackground",{light:m(U,.66),dark:m(U,.66),hcDark:U,hcLight:U},c.kg("searchEditor.queryMatch","Color of the Search Editor query matches.")),d("searchEditor.findMatchBorder",{light:m($,.66),dark:m($,.66),hcDark:$,hcLight:$},c.kg("searchEditor.editorFindMatchBorder","Border color of the Search Editor query matches."))},5724:(e,t,n)=>{"use strict";n.d(t,{Gy:()=>l,zy:()=>d,Yf:()=>c});var i,r=n(1234),s=n(1484),o=n(3591),a=n(6359);!function(e){e.DARK="dark",e.LIGHT="light",e.HIGH_CONTRAST_DARK="hcDark",e.HIGH_CONTRAST_LIGHT="hcLight"}(i||(i={}));const l=(0,o.u1)("themeService");function c(e){return{id:e}}const h=new class{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new r.vl}onColorThemeChange(e){return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),(0,s.s)((()=>{const t=this.themingParticipants.indexOf(e);this.themingParticipants.splice(t,1)}))}getThemingParticipants(){return this.themingParticipants}};function d(e){return h.onColorThemeChange(e)}a.O.add("base.contributions.theming",h);s.jG},5890:(e,t,n)=>{var i={"./simpleWorker":1929,"./simpleWorker.js":1929,"monaco-editor/esm/vs/base/common/worker/simpleWorker":1929,"monaco-editor/esm/vs/base/common/worker/simpleWorker.js":1929};function r(e){return Promise.resolve().then((()=>{if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n(i[e])}))}r.keys=()=>Object.keys(i),r.id=5890,e.exports=r},9204:(e,t,n)=>{var i={"./editorBaseApi":[4272],"./editorBaseApi.js":[4272],"./editorSimpleWorker":[5196],"./editorSimpleWorker.js":[5196],"./editorWorker":[920,792],"./editorWorker.js":[920,792],"./editorWorkerHost":[718],"./editorWorkerHost.js":[718],"./findSectionHeaders":[6691],"./findSectionHeaders.js":[6691],"./getIconClasses":[5628,792],"./getIconClasses.js":[5628,792],"./languageFeatureDebounce":[8709,792],"./languageFeatureDebounce.js":[8709,792],"./languageFeatures":[6942,792],"./languageFeatures.js":[6942,792],"./languageFeaturesService":[2661,792],"./languageFeaturesService.js":[2661,792],"./languageService":[7596,792],"./languageService.js":[7596,792],"./languagesAssociations":[9908,792],"./languagesAssociations.js":[9908,792],"./languagesRegistry":[9259,792],"./languagesRegistry.js":[9259,792],"./markerDecorations":[7550,792],"./markerDecorations.js":[7550,792],"./markerDecorationsService":[448,792],"./markerDecorationsService.js":[448,792],"./model":[3750,792],"./model.js":[3750,792],"./modelService":[1773,792],"./modelService.js":[1773,792],"./resolverService":[8938,792],"./resolverService.js":[8938,792],"./semanticTokensDto":[8232,792],"./semanticTokensDto.js":[8232,792],"./semanticTokensProviderStyling":[5538,792],"./semanticTokensProviderStyling.js":[5538,792],"./semanticTokensStyling":[4243,792],"./semanticTokensStyling.js":[4243,792],"./semanticTokensStylingService":[7004,792],"./semanticTokensStylingService.js":[7004,792],"./textModelSync/textModelSync.impl":[796],"./textModelSync/textModelSync.impl.js":[796],"./textModelSync/textModelSync.protocol":[8868,792],"./textModelSync/textModelSync.protocol.js":[8868,792],"./textResourceConfiguration":[360,792],"./textResourceConfiguration.js":[360,792],"./treeSitterParserService":[4432,792],"./treeSitterParserService.js":[4432,792],"./treeViewsDnd":[6723,792],"./treeViewsDnd.js":[6723,792],"./treeViewsDndService":[9100,792],"./treeViewsDndService.js":[9100,792],"./unicodeTextModelHighlighter":[4855],"./unicodeTextModelHighlighter.js":[4855],"monaco-editor/esm/vs/editor/common/services/editorBaseApi":[4272],"monaco-editor/esm/vs/editor/common/services/editorBaseApi.js":[4272],"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker":[5196],"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker.js":[5196],"monaco-editor/esm/vs/editor/common/services/editorWorker":[920,792],"monaco-editor/esm/vs/editor/common/services/editorWorker.js":[920,792],"monaco-editor/esm/vs/editor/common/services/editorWorkerHost":[718],"monaco-editor/esm/vs/editor/common/services/editorWorkerHost.js":[718],"monaco-editor/esm/vs/editor/common/services/findSectionHeaders":[6691],"monaco-editor/esm/vs/editor/common/services/findSectionHeaders.js":[6691],"monaco-editor/esm/vs/editor/common/services/getIconClasses":[5628,792],"monaco-editor/esm/vs/editor/common/services/getIconClasses.js":[5628,792],"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce":[8709,792],"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce.js":[8709,792],"monaco-editor/esm/vs/editor/common/services/languageFeatures":[6942,792],"monaco-editor/esm/vs/editor/common/services/languageFeatures.js":[6942,792],"monaco-editor/esm/vs/editor/common/services/languageFeaturesService":[2661,792],"monaco-editor/esm/vs/editor/common/services/languageFeaturesService.js":[2661,792],"monaco-editor/esm/vs/editor/common/services/languageService":[7596,792],"monaco-editor/esm/vs/editor/common/services/languageService.js":[7596,792],"monaco-editor/esm/vs/editor/common/services/languagesAssociations":[9908,792],"monaco-editor/esm/vs/editor/common/services/languagesAssociations.js":[9908,792],"monaco-editor/esm/vs/editor/common/services/languagesRegistry":[9259,792],"monaco-editor/esm/vs/editor/common/services/languagesRegistry.js":[9259,792],"monaco-editor/esm/vs/editor/common/services/markerDecorations":[7550,792],"monaco-editor/esm/vs/editor/common/services/markerDecorations.js":[7550,792],"monaco-editor/esm/vs/editor/common/services/markerDecorationsService":[448,792],"monaco-editor/esm/vs/editor/common/services/markerDecorationsService.js":[448,792],"monaco-editor/esm/vs/editor/common/services/model":[3750,792],"monaco-editor/esm/vs/editor/common/services/model.js":[3750,792],"monaco-editor/esm/vs/editor/common/services/modelService":[1773,792],"monaco-editor/esm/vs/editor/common/services/modelService.js":[1773,792],"monaco-editor/esm/vs/editor/common/services/resolverService":[8938,792],"monaco-editor/esm/vs/editor/common/services/resolverService.js":[8938,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensDto":[8232,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensDto.js":[8232,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling":[5538,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling.js":[5538,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling":[4243,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling.js":[4243,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService":[7004,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService.js":[7004,792],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl":[796],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl.js":[796],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol":[8868,792],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol.js":[8868,792],"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration":[360,792],"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration.js":[360,792],"monaco-editor/esm/vs/editor/common/services/treeSitterParserService":[4432,792],"monaco-editor/esm/vs/editor/common/services/treeSitterParserService.js":[4432,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDnd":[6723,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDnd.js":[6723,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDndService":[9100,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDndService.js":[9100,792],"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter":[4855],"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter.js":[4855]};function r(e){if(!n.o(i,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=i[e],r=t[0];return Promise.all(t.slice(1).map(n.e)).then((()=>n(r)))}r.keys=()=>Object.keys(i),r.id=9204,e.exports=r},7614:(e,t,n)=>{var i={"./editorBaseApi":4272,"./editorBaseApi.js":4272,"./editorSimpleWorker":5196,"./editorSimpleWorker.js":5196,"./editorWorker":920,"./editorWorker.js":920,"./editorWorkerHost":718,"./editorWorkerHost.js":718,"./findSectionHeaders":6691,"./findSectionHeaders.js":6691,"./getIconClasses":5628,"./getIconClasses.js":5628,"./languageFeatureDebounce":8709,"./languageFeatureDebounce.js":8709,"./languageFeatures":6942,"./languageFeatures.js":6942,"./languageFeaturesService":2661,"./languageFeaturesService.js":2661,"./languageService":7596,"./languageService.js":7596,"./languagesAssociations":9908,"./languagesAssociations.js":9908,"./languagesRegistry":9259,"./languagesRegistry.js":9259,"./markerDecorations":7550,"./markerDecorations.js":7550,"./markerDecorationsService":448,"./markerDecorationsService.js":448,"./model":3750,"./model.js":3750,"./modelService":1773,"./modelService.js":1773,"./resolverService":8938,"./resolverService.js":8938,"./semanticTokensDto":8232,"./semanticTokensDto.js":8232,"./semanticTokensProviderStyling":5538,"./semanticTokensProviderStyling.js":5538,"./semanticTokensStyling":4243,"./semanticTokensStyling.js":4243,"./semanticTokensStylingService":7004,"./semanticTokensStylingService.js":7004,"./textModelSync/textModelSync.impl":796,"./textModelSync/textModelSync.impl.js":796,"./textModelSync/textModelSync.protocol":8868,"./textModelSync/textModelSync.protocol.js":8868,"./textResourceConfiguration":360,"./textResourceConfiguration.js":360,"./treeSitterParserService":4432,"./treeSitterParserService.js":4432,"./treeViewsDnd":6723,"./treeViewsDnd.js":6723,"./treeViewsDndService":9100,"./treeViewsDndService.js":9100,"./unicodeTextModelHighlighter":4855,"./unicodeTextModelHighlighter.js":4855,"monaco-editor/esm/vs/editor/common/services/editorBaseApi":4272,"monaco-editor/esm/vs/editor/common/services/editorBaseApi.js":4272,"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker":5196,"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker.js":5196,"monaco-editor/esm/vs/editor/common/services/editorWorker":920,"monaco-editor/esm/vs/editor/common/services/editorWorker.js":920,"monaco-editor/esm/vs/editor/common/services/editorWorkerHost":718,"monaco-editor/esm/vs/editor/common/services/editorWorkerHost.js":718,"monaco-editor/esm/vs/editor/common/services/findSectionHeaders":6691,"monaco-editor/esm/vs/editor/common/services/findSectionHeaders.js":6691,"monaco-editor/esm/vs/editor/common/services/getIconClasses":5628,"monaco-editor/esm/vs/editor/common/services/getIconClasses.js":5628,"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce":8709,"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce.js":8709,"monaco-editor/esm/vs/editor/common/services/languageFeatures":6942,"monaco-editor/esm/vs/editor/common/services/languageFeatures.js":6942,"monaco-editor/esm/vs/editor/common/services/languageFeaturesService":2661,"monaco-editor/esm/vs/editor/common/services/languageFeaturesService.js":2661,"monaco-editor/esm/vs/editor/common/services/languageService":7596,"monaco-editor/esm/vs/editor/common/services/languageService.js":7596,"monaco-editor/esm/vs/editor/common/services/languagesAssociations":9908,"monaco-editor/esm/vs/editor/common/services/languagesAssociations.js":9908,"monaco-editor/esm/vs/editor/common/services/languagesRegistry":9259,"monaco-editor/esm/vs/editor/common/services/languagesRegistry.js":9259,"monaco-editor/esm/vs/editor/common/services/markerDecorations":7550,"monaco-editor/esm/vs/editor/common/services/markerDecorations.js":7550,"monaco-editor/esm/vs/editor/common/services/markerDecorationsService":448,"monaco-editor/esm/vs/editor/common/services/markerDecorationsService.js":448,"monaco-editor/esm/vs/editor/common/services/model":3750,"monaco-editor/esm/vs/editor/common/services/model.js":3750,"monaco-editor/esm/vs/editor/common/services/modelService":1773,"monaco-editor/esm/vs/editor/common/services/modelService.js":1773,"monaco-editor/esm/vs/editor/common/services/resolverService":8938,"monaco-editor/esm/vs/editor/common/services/resolverService.js":8938,"monaco-editor/esm/vs/editor/common/services/semanticTokensDto":8232,"monaco-editor/esm/vs/editor/common/services/semanticTokensDto.js":8232,"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling":5538,"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling.js":5538,"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling":4243,"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling.js":4243,"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService":7004,"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService.js":7004,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl":796,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl.js":796,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol":8868,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol.js":8868,"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration":360,"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration.js":360,"monaco-editor/esm/vs/editor/common/services/treeSitterParserService":4432,"monaco-editor/esm/vs/editor/common/services/treeSitterParserService.js":4432,"monaco-editor/esm/vs/editor/common/services/treeViewsDnd":6723,"monaco-editor/esm/vs/editor/common/services/treeViewsDnd.js":6723,"monaco-editor/esm/vs/editor/common/services/treeViewsDndService":9100,"monaco-editor/esm/vs/editor/common/services/treeViewsDndService.js":9100,"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter":4855,"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter.js":4855};function r(e){var t=s(e);return n(t)}function s(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}r.keys=function(){return Object.keys(i)},r.resolve=s,e.exports=r,r.id=7614}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var s=t[i]={exports:{}};return e[i](s,s.exports,n),s.exports}n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.e=()=>Promise.resolve(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=n(1929),t=n(5196),i=n(718);let r=!1;function s(n){if(r)return;r=!0;const s=new e.SimpleWorkerServer((e=>{globalThis.postMessage(e)}),(e=>new t.EditorSimpleWorker(i.EditorWorkerHost.getChannel(e),n)));globalThis.onmessage=e=>{s.onmessage(e.data)}}var o,a;globalThis.onmessage=e=>{r||s(null)},(a=o||(o={}))[a.Ident=0]="Ident",a[a.AtKeyword=1]="AtKeyword",a[a.String=2]="String",a[a.BadString=3]="BadString",a[a.UnquotedString=4]="UnquotedString",a[a.Hash=5]="Hash",a[a.Num=6]="Num",a[a.Percentage=7]="Percentage",a[a.Dimension=8]="Dimension",a[a.UnicodeRange=9]="UnicodeRange",a[a.CDO=10]="CDO",a[a.CDC=11]="CDC",a[a.Colon=12]="Colon",a[a.SemiColon=13]="SemiColon",a[a.CurlyL=14]="CurlyL",a[a.CurlyR=15]="CurlyR",a[a.ParenthesisL=16]="ParenthesisL",a[a.ParenthesisR=17]="ParenthesisR",a[a.BracketL=18]="BracketL",a[a.BracketR=19]="BracketR",a[a.Whitespace=20]="Whitespace",a[a.Includes=21]="Includes",a[a.Dashmatch=22]="Dashmatch",a[a.SubstringOperator=23]="SubstringOperator",a[a.PrefixOperator=24]="PrefixOperator",a[a.SuffixOperator=25]="SuffixOperator",a[a.Delim=26]="Delim",a[a.EMS=27]="EMS",a[a.EXS=28]="EXS",a[a.Length=29]="Length",a[a.Angle=30]="Angle",a[a.Time=31]="Time",a[a.Freq=32]="Freq",a[a.Exclamation=33]="Exclamation",a[a.Resolution=34]="Resolution",a[a.Comma=35]="Comma",a[a.Charset=36]="Charset",a[a.EscapedJavaScript=37]="EscapedJavaScript",a[a.BadEscapedJavaScript=38]="BadEscapedJavaScript",a[a.Comment=39]="Comment",a[a.SingleLineComment=40]="SingleLineComment",a[a.EOF=41]="EOF",a[a.ContainerQueryLength=42]="ContainerQueryLength",a[a.CustomToken=43]="CustomToken";var l=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){const t=this.position;for(;this.position<this.len&&e(this.source.charCodeAt(this.position));)this.position++;return this.position-t}},c="a".charCodeAt(0),h="f".charCodeAt(0),d="z".charCodeAt(0),u=("u".charCodeAt(0),"A".charCodeAt(0)),p="F".charCodeAt(0),m="Z".charCodeAt(0),f="0".charCodeAt(0),g="9".charCodeAt(0),b="~".charCodeAt(0),v="^".charCodeAt(0),y="=".charCodeAt(0),w="|".charCodeAt(0),_="-".charCodeAt(0),k="_".charCodeAt(0),C="%".charCodeAt(0),S="*".charCodeAt(0),x="(".charCodeAt(0),E=")".charCodeAt(0),F="<".charCodeAt(0),L=">".charCodeAt(0),I="@".charCodeAt(0),T="#".charCodeAt(0),N="$".charCodeAt(0),R="\\".charCodeAt(0),D="/".charCodeAt(0),A="\n".charCodeAt(0),M="\r".charCodeAt(0),O="\f".charCodeAt(0),z='"'.charCodeAt(0),P="'".charCodeAt(0),B=" ".charCodeAt(0),W="\t".charCodeAt(0),V=";".charCodeAt(0),U=":".charCodeAt(0),$="{".charCodeAt(0),q="}".charCodeAt(0),j="[".charCodeAt(0),K="]".charCodeAt(0),H=",".charCodeAt(0),G=".".charCodeAt(0),Q="!".charCodeAt(0),J="?".charCodeAt(0),Y="+".charCodeAt(0),X={};X[V]=o.SemiColon,X[U]=o.Colon,X[$]=o.CurlyL,X[q]=o.CurlyR,X[K]=o.BracketR,X[j]=o.BracketL,X[x]=o.ParenthesisL,X[E]=o.ParenthesisR,X[H]=o.Comma;var Z={};Z.em=o.EMS,Z.ex=o.EXS,Z.px=o.Length,Z.cm=o.Length,Z.mm=o.Length,Z.in=o.Length,Z.pt=o.Length,Z.pc=o.Length,Z.deg=o.Angle,Z.rad=o.Angle,Z.grad=o.Angle,Z.ms=o.Time,Z.s=o.Time,Z.hz=o.Freq,Z.khz=o.Freq,Z["%"]=o.Percentage,Z.fr=o.Percentage,Z.dpi=o.Resolution,Z.dpcm=o.Resolution,Z.cqw=o.ContainerQueryLength,Z.cqh=o.ContainerQueryLength,Z.cqi=o.ContainerQueryLength,Z.cqb=o.ContainerQueryLength,Z.cqmin=o.ContainerQueryLength,Z.cqmax=o.ContainerQueryLength;var ee,te,ne,ie,re=class{constructor(){this.stream=new l(""),this.ignoreComment=!0,this.ignoreWhitespace=!0,this.inURL=!1}setSource(e){this.stream=new l(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(){const e=this.stream.pos(),t=[];return this._unquotedString(t)?this.finishToken(e,o.UnquotedString,t.join("")):null}scan(){const e=this.trivia();if(null!==e)return e;const t=this.stream.pos();return this.stream.eos()?this.finishToken(t,o.EOF):this.scanNext(t)}tryScanUnicode(){const e=this.stream.pos();if(!this.stream.eos()&&this._unicodeRange())return this.finishToken(e,o.UnicodeRange);this.stream.goBackTo(e)}scanNext(e){if(this.stream.advanceIfChars([F,Q,_,_]))return this.finishToken(e,o.CDO);if(this.stream.advanceIfChars([_,_,L]))return this.finishToken(e,o.CDC);let t=[];if(this.ident(t))return this.finishToken(e,o.Ident,t.join(""));if(this.stream.advanceIfChar(I)){if(t=["@"],this._name(t)){const n=t.join("");return"@charset"===n?this.finishToken(e,o.Charset,n):this.finishToken(e,o.AtKeyword,n)}return this.finishToken(e,o.Delim)}if(this.stream.advanceIfChar(T))return t=["#"],this._name(t)?this.finishToken(e,o.Hash,t.join("")):this.finishToken(e,o.Delim);if(this.stream.advanceIfChar(Q))return this.finishToken(e,o.Exclamation);if(this._number()){const n=this.stream.pos();if(t=[this.stream.substring(e,n)],this.stream.advanceIfChar(C))return this.finishToken(e,o.Percentage);if(this.ident(t)){const i=this.stream.substring(n).toLowerCase(),r=Z[i];return"undefined"!==typeof r?this.finishToken(e,r,t.join("")):this.finishToken(e,o.Dimension,t.join(""))}return this.finishToken(e,o.Num)}t=[];let n=this._string(t);return null!==n?this.finishToken(e,n,t.join("")):(n=X[this.stream.peekChar()],"undefined"!==typeof n?(this.stream.advance(1),this.finishToken(e,n)):this.stream.peekChar(0)===b&&this.stream.peekChar(1)===y?(this.stream.advance(2),this.finishToken(e,o.Includes)):this.stream.peekChar(0)===w&&this.stream.peekChar(1)===y?(this.stream.advance(2),this.finishToken(e,o.Dashmatch)):this.stream.peekChar(0)===S&&this.stream.peekChar(1)===y?(this.stream.advance(2),this.finishToken(e,o.SubstringOperator)):this.stream.peekChar(0)===v&&this.stream.peekChar(1)===y?(this.stream.advance(2),this.finishToken(e,o.PrefixOperator)):this.stream.peekChar(0)===N&&this.stream.peekChar(1)===y?(this.stream.advance(2),this.finishToken(e,o.SuffixOperator)):(this.stream.nextChar(),this.finishToken(e,o.Delim)))}trivia(){for(;;){const e=this.stream.pos();if(this._whitespace()){if(!this.ignoreWhitespace)return this.finishToken(e,o.Whitespace)}else{if(!this.comment())return null;if(!this.ignoreComment)return this.finishToken(e,o.Comment)}}}comment(){if(this.stream.advanceIfChars([D,S])){let e=!1,t=!1;return this.stream.advanceWhileChar((n=>t&&n===D?(e=!0,!1):(t=n===S,!0))),e&&this.stream.advance(1),!0}return!1}_number(){let e,t=0;return this.stream.peekChar()===G&&(t=1),e=this.stream.peekChar(t),e>=f&&e<=g&&(this.stream.advance(t+1),this.stream.advanceWhileChar((e=>e>=f&&e<=g||0===t&&e===G)),!0)}_newline(e){const t=this.stream.peekChar();switch(t){case M:case O:case A:return this.stream.advance(1),e.push(String.fromCharCode(t)),t===M&&this.stream.advanceIfChar(A)&&e.push("\n"),!0}return!1}_escape(e,t){let n=this.stream.peekChar();if(n===R){this.stream.advance(1),n=this.stream.peekChar();let r=0;for(;r<6&&(n>=f&&n<=g||n>=c&&n<=h||n>=u&&n<=p);)this.stream.advance(1),n=this.stream.peekChar(),r++;if(r>0){try{const t=parseInt(this.stream.substring(this.stream.pos()-r),16);t&&e.push(String.fromCharCode(t))}catch(i){}return n===B||n===W?this.stream.advance(1):this._newline([]),!0}if(n!==M&&n!==O&&n!==A)return this.stream.advance(1),e.push(String.fromCharCode(n)),!0;if(t)return this._newline(e)}return!1}_stringChar(e,t){const n=this.stream.peekChar();return 0!==n&&n!==e&&n!==R&&n!==M&&n!==O&&n!==A&&(this.stream.advance(1),t.push(String.fromCharCode(n)),!0)}_string(e){if(this.stream.peekChar()===P||this.stream.peekChar()===z){const 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)),o.String):o.BadString}return null}_unquotedChar(e){const t=this.stream.peekChar();return 0!==t&&t!==R&&t!==P&&t!==z&&t!==x&&t!==E&&t!==B&&t!==W&&t!==A&&t!==O&&t!==M&&(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===B||e===W||e===A||e===O||e===M))>0}_name(e){let t=!1;for(;this._identChar(e)||this._escape(e);)t=!0;return t}ident(e){const 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){const t=this.stream.peekChar();return(t===k||t>=c&&t<=d||t>=u&&t<=m||t>=128&&t<=65535)&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0)}_minus(e){const t=this.stream.peekChar();return t===_&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0)}_identChar(e){const t=this.stream.peekChar();return(t===k||t===_||t>=c&&t<=d||t>=u&&t<=m||t>=f&&t<=g||t>=128&&t<=65535)&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0)}_unicodeRange(){if(this.stream.advanceIfChar(Y)){const e=e=>e>=f&&e<=g||e>=c&&e<=h||e>=u&&e<=p,t=this.stream.advanceWhileChar(e)+this.stream.advanceWhileChar((e=>e===J));if(t>=1&&t<=6){if(!this.stream.advanceIfChar(_))return!0;{const t=this.stream.advanceWhileChar(e);if(t>=1&&t<=6)return!0}}}return!1}};function se(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 oe(e,t){let n=e.length-t.length;return n>0?e.lastIndexOf(t)===n:0===n&&e===t}function ae(e,t=!0){return e?e.length<140?e:e.slice(0,140)+(t?"\u2026":""):""}function le(e,t){let n="";for(;t>0;)1===(1&t)&&(n+=e),e+=e,t>>>=1;return n}function ce(e,t){let n=null;return!e||t<e.offset||t>e.end?null:(e.accept((e=>-1===e.offset&&-1===e.length||e.offset<=t&&e.end>=t&&(n?e.length<=n.length&&(n=e):n=e,!0))),n)}function he(e,t){let n=ce(e,t);const i=[];for(;n;)i.unshift(n),n=n.parent;return i}(te=ee||(ee={}))[te.Undefined=0]="Undefined",te[te.Identifier=1]="Identifier",te[te.Stylesheet=2]="Stylesheet",te[te.Ruleset=3]="Ruleset",te[te.Selector=4]="Selector",te[te.SimpleSelector=5]="SimpleSelector",te[te.SelectorInterpolation=6]="SelectorInterpolation",te[te.SelectorCombinator=7]="SelectorCombinator",te[te.SelectorCombinatorParent=8]="SelectorCombinatorParent",te[te.SelectorCombinatorSibling=9]="SelectorCombinatorSibling",te[te.SelectorCombinatorAllSiblings=10]="SelectorCombinatorAllSiblings",te[te.SelectorCombinatorShadowPiercingDescendant=11]="SelectorCombinatorShadowPiercingDescendant",te[te.Page=12]="Page",te[te.PageBoxMarginBox=13]="PageBoxMarginBox",te[te.ClassSelector=14]="ClassSelector",te[te.IdentifierSelector=15]="IdentifierSelector",te[te.ElementNameSelector=16]="ElementNameSelector",te[te.PseudoSelector=17]="PseudoSelector",te[te.AttributeSelector=18]="AttributeSelector",te[te.Declaration=19]="Declaration",te[te.Declarations=20]="Declarations",te[te.Property=21]="Property",te[te.Expression=22]="Expression",te[te.BinaryExpression=23]="BinaryExpression",te[te.Term=24]="Term",te[te.Operator=25]="Operator",te[te.Value=26]="Value",te[te.StringLiteral=27]="StringLiteral",te[te.URILiteral=28]="URILiteral",te[te.EscapedValue=29]="EscapedValue",te[te.Function=30]="Function",te[te.NumericValue=31]="NumericValue",te[te.HexColorValue=32]="HexColorValue",te[te.RatioValue=33]="RatioValue",te[te.MixinDeclaration=34]="MixinDeclaration",te[te.MixinReference=35]="MixinReference",te[te.VariableName=36]="VariableName",te[te.VariableDeclaration=37]="VariableDeclaration",te[te.Prio=38]="Prio",te[te.Interpolation=39]="Interpolation",te[te.NestedProperties=40]="NestedProperties",te[te.ExtendsReference=41]="ExtendsReference",te[te.SelectorPlaceholder=42]="SelectorPlaceholder",te[te.Debug=43]="Debug",te[te.If=44]="If",te[te.Else=45]="Else",te[te.For=46]="For",te[te.Each=47]="Each",te[te.While=48]="While",te[te.MixinContentReference=49]="MixinContentReference",te[te.MixinContentDeclaration=50]="MixinContentDeclaration",te[te.Media=51]="Media",te[te.Keyframe=52]="Keyframe",te[te.FontFace=53]="FontFace",te[te.Import=54]="Import",te[te.Namespace=55]="Namespace",te[te.Invocation=56]="Invocation",te[te.FunctionDeclaration=57]="FunctionDeclaration",te[te.ReturnStatement=58]="ReturnStatement",te[te.MediaQuery=59]="MediaQuery",te[te.MediaCondition=60]="MediaCondition",te[te.MediaFeature=61]="MediaFeature",te[te.FunctionParameter=62]="FunctionParameter",te[te.FunctionArgument=63]="FunctionArgument",te[te.KeyframeSelector=64]="KeyframeSelector",te[te.ViewPort=65]="ViewPort",te[te.Document=66]="Document",te[te.AtApplyRule=67]="AtApplyRule",te[te.CustomPropertyDeclaration=68]="CustomPropertyDeclaration",te[te.CustomPropertySet=69]="CustomPropertySet",te[te.ListEntry=70]="ListEntry",te[te.Supports=71]="Supports",te[te.SupportsCondition=72]="SupportsCondition",te[te.NamespacePrefix=73]="NamespacePrefix",te[te.GridLine=74]="GridLine",te[te.Plugin=75]="Plugin",te[te.UnknownAtRule=76]="UnknownAtRule",te[te.Use=77]="Use",te[te.ModuleConfiguration=78]="ModuleConfiguration",te[te.Forward=79]="Forward",te[te.ForwardVisibility=80]="ForwardVisibility",te[te.Module=81]="Module",te[te.UnicodeRange=82]="UnicodeRange",te[te.Layer=83]="Layer",te[te.LayerNameList=84]="LayerNameList",te[te.LayerName=85]="LayerName",te[te.PropertyAtRule=86]="PropertyAtRule",te[te.Container=87]="Container",(ie=ne||(ne={}))[ie.Mixin=0]="Mixin",ie[ie.Rule=1]="Rule",ie[ie.Variable=2]="Variable",ie[ie.Function=3]="Function",ie[ie.Keyframe=4]="Keyframe",ie[ie.Unknown=5]="Unknown",ie[ie.Module=6]="Module",ie[ie.Forward=7]="Forward",ie[ie.ForwardVisibility=8]="ForwardVisibility",ie[ie.Property=9]="Property";var de,ue,pe=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||ee.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(const 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){const t=e.parent.children.indexOf(e);t>=0&&e.parent.children.splice(t,1)}e.parent=this;let n=this.children;return n||(n=this.children=[]),-1!==t?n.splice(t,0,e):n.push(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=[]),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)||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)}addChild(e){return!!e&&(this.children||(this.children=[]),e.attachTo(this),this.updateOffsetAndLength(e),!0)}updateOffsetAndLength(e){(e.offset<this.offset||-1===this.offset)&&(this.offset=e.offset);const t=e.end;(t>this.end||-1===this.length)&&(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(const 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){const 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 me;)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={}),this.options[e]=t}getData(e){return this.options&&this.options.hasOwnProperty(e)?this.options[e]:null}},me=class extends pe{constructor(e,t=-1){super(-1,-1),this.attachTo(e,t),this.offset=-1,this.length=-1}},fe=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.UnicodeRange}setRangeStart(e){return this.setNode("rangeStart",e)}getRangeStart(){return this.rangeStart}setRangeEnd(e){return this.setNode("rangeEnd",e)}getRangeEnd(){return this.rangeEnd}},ge=class extends pe{constructor(e,t){super(e,t),this.isCustomProperty=!1}get type(){return ee.Identifier}containsInterpolation(){return this.hasChildren()}},be=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.Stylesheet}},ve=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.Declarations}},ye=class extends pe{constructor(e,t){super(e,t)}getDeclarations(){return this.declarations}setDeclarations(e){return this.setNode("declarations",e)}},we=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.Ruleset}getSelectors(){return this.selectors||(this.selectors=new me(this)),this.selectors}isNested(){return!!this.parent&&null!==this.parent.findParent(ee.Declarations)}},_e=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.Selector}},ke=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.SimpleSelector}},Ce=class extends pe{constructor(e,t){super(e,t)}},Se=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.CustomPropertySet}},xe=class e extends Ce{constructor(e,t){super(e,t),this.property=null}get type(){return ee.Declaration}setProperty(e){return this.setNode("property",e)}getProperty(){return this.property}getFullPropertyName(){const t=this.property?this.property.getName():"unknown";if(this.parent instanceof ve&&this.parent.getParent()instanceof We){const n=this.parent.getParent().getParent();if(n instanceof e)return n.getFullPropertyName()+t}return t}getNonPrefixedPropertyName(){const e=this.getFullPropertyName();if(e&&"-"===e.charAt(0)){const t=e.indexOf("-",1);if(-1!==t)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}},Ee=class extends xe{constructor(e,t){super(e,t)}get type(){return ee.CustomPropertyDeclaration}setPropertySet(e){return this.setNode("propertySet",e)}getPropertySet(){return this.propertySet}},Fe=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.Property}setIdentifier(e){return this.setNode("identifier",e)}getIdentifier(){return this.identifier}getName(){return function(e,t){const n=t.exec(e);return n&&n[0].length?e.substr(0,e.length-n[0].length):e}(this.getText(),/[_\+]+$/)}isCustomProperty(){return!!this.identifier&&this.identifier.isCustomProperty}},Le=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.Invocation}getArguments(){return this.arguments||(this.arguments=new me(this)),this.arguments}},Ie=class extends Le{constructor(e,t){super(e,t)}get type(){return ee.Function}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}},Te=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.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}},Ne=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.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}},Re=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.If}setExpression(e){return this.setNode("expression",e,0)}setElseClause(e){return this.setNode("elseClause",e)}},De=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.For}setVariable(e){return this.setNode("variable",e,0)}},Ae=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.Each}getVariables(){return this.variables||(this.variables=new me(this)),this.variables}},Me=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.While}},Oe=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.Else}},ze=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.FunctionDeclaration}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}getParameters(){return this.parameters||(this.parameters=new me(this)),this.parameters}},Pe=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.ViewPort}},Be=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.FontFace}},We=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.NestedProperties}},Ve=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.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():""}},Ue=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.KeyframeSelector}},$e=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.Import}setMedialist(e){return!!e&&(e.attachTo(this),!0)}},qe=class extends pe{get type(){return ee.Use}getParameters(){return this.parameters||(this.parameters=new me(this)),this.parameters}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}},je=class extends pe{get type(){return ee.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}},Ke=class extends pe{get type(){return ee.Forward}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getMembers(){return this.members||(this.members=new me(this)),this.members}getParameters(){return this.parameters||(this.parameters=new me(this)),this.parameters}},He=class extends pe{get type(){return ee.ForwardVisibility}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}},Ge=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.Namespace}},Qe=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.Media}},Je=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.Supports}},Ye=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.Layer}setNames(e){return this.setNode("names",e)}getNames(){return this.names}},Xe=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.PropertyAtRule}setName(e){return!!e&&(e.attachTo(this),this.name=e,!0)}getName(){return this.name}},Ze=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.Document}},et=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.Container}},tt=class extends pe{constructor(e,t){super(e,t)}},nt=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.MediaQuery}},it=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.MediaCondition}},rt=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.MediaFeature}},st=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.SupportsCondition}},ot=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.Page}},at=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.PageBoxMarginBox}},lt=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.Expression}},ct=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.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}},ht=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.Term}setOperator(e){return this.setNode("operator",e)}getOperator(){return this.operator}setExpression(e){return this.setNode("expression",e)}getExpression(){return this.expression}},dt=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.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}},ut=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.HexColorValue}},pt=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.RatioValue}},mt=".".charCodeAt(0),ft="0".charCodeAt(0),gt="9".charCodeAt(0),bt=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.NumericValue}getValue(){const e=this.getText();let t,n=0;for(let i=0,r=e.length;i<r&&(t=e.charCodeAt(i),ft<=t&&t<=gt||t===mt);i++)n+=1;return{value:e.substring(0,n),unit:n<e.length?e.substring(n):void 0}}},vt=class extends Ce{constructor(e,t){super(e,t),this.needsSemicolon=!0}get type(){return ee.VariableDeclaration}setVariable(e){return!!e&&(e.attachTo(this),this.variable=e,!0)}getVariable(){return this.variable}getName(){return this.variable?this.variable.getName():""}setValue(e){return!!e&&(e.attachTo(this),this.value=e,!0)}getValue(){return this.value}},yt=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.Interpolation}},wt=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.VariableName}getName(){return this.getText()}},_t=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.ExtendsReference}getSelectors(){return this.selectors||(this.selectors=new me(this)),this.selectors}},kt=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.MixinContentReference}getArguments(){return this.arguments||(this.arguments=new me(this)),this.arguments}},Ct=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.MixinContentDeclaration}getParameters(){return this.parameters||(this.parameters=new me(this)),this.parameters}},St=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.MixinReference}getNamespaces(){return this.namespaces||(this.namespaces=new me(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||(this.arguments=new me(this)),this.arguments}setContent(e){return this.setNode("content",e)}getContent(){return this.content}},xt=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.MixinDeclaration}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}getParameters(){return this.parameters||(this.parameters=new me(this)),this.parameters}setGuard(e){return e&&(e.attachTo(this),this.guard=e),!1}},Et=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.UnknownAtRule}setAtRuleName(e){this.atRuleName=e}getAtRuleName(){return this.atRuleName}},Ft=class extends pe{get type(){return ee.ListEntry}setKey(e){return this.setNode("key",e,0)}setValue(e){return this.setNode("value",e,1)}},Lt=class extends pe{getConditions(){return this.conditions||(this.conditions=new me(this)),this.conditions}},It=class extends pe{setVariable(e){return this.setNode("variable",e)}},Tt=class extends pe{get type(){return ee.Module}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}};(ue=de||(de={}))[ue.Ignore=1]="Ignore",ue[ue.Warning=2]="Warning",ue[ue.Error=4]="Error";var Nt=class{constructor(e,t,n,i,r=e.offset,s=e.length){this.node=e,this.rule=t,this.level=n,this.message=i||t.message,this.offset=r,this.length=s}getRule(){return this.rule}getLevel(){return this.level}getOffset(){return this.offset}getLength(){return this.length}getNode(){return this.node}getMessage(){return this.message}},Rt=class e{static entries(t){const n=new e;return t.acceptVisitor(n),n.entries}constructor(){this.entries=[]}visitNode(e){return e.isErroneous()&&e.collectIssues(this.entries),!0}};function Dt(...e){const t=e[0];let n,i,r;if("string"===typeof t)n=t,i=t,e.splice(0,1),r=e&&"object"===typeof e[0]?e[0]:e;else{if(t instanceof Array){const n=e.slice(1);if(t.length!==n.length+1)throw new Error("expected a string as the first argument to l10n.t");let i=t[0];for(let e=1;e<t.length;e++)i+=`{${e-1}}`+t[e];return Dt(i,...n)}i=t.message,n=i,t.comment&&t.comment.length>0&&(n+=`/${Array.isArray(t.comment)?t.comment.join(""):t.comment}`),r=t.args??{}}return Mt(i,r)}var At=/{([^}]+)}/g;function Mt(e,t){return 0===Object.keys(t).length?e:e.replace(At,((e,n)=>t[n]??e))}var Ot,zt,Pt,Bt,Wt,Vt,Ut,$t,qt,jt,Kt,Ht,Gt,Qt,Jt,Yt,Xt,Zt,en,tn,nn,rn,sn,on,an,ln,cn,hn,dn,un,pn,mn,fn,gn,bn,vn,yn,wn,_n,kn,Cn,Sn,xn,En,Fn,Ln,In,Tn,Nn,Rn,Dn,An,Mn,On,zn,Pn,Bn,Wn,Vn,Un,$n,qn,jn,Kn,Hn,Gn,Qn,Jn,Yn,Xn,Zn,ei,ti,ni,ii,ri,si,oi,ai,li,ci,hi,di,ui,pi,mi,fi,gi,bi,vi,yi,wi,_i,ki,Ci,Si,xi,Ei,Fi,Li,Ii,Ti,Ni,Ri,Di,Ai,Mi,Oi,zi,Pi,Bi,Wi,Vi,Ui,$i,qi,ji,Ki,Hi,Gi,Qi,Ji,Yi,Xi,Zi,er,tr,nr,ir,rr,sr,or,ar,lr=class{constructor(e,t){this.id=e,this.message=t}},cr={NumberExpected:new lr("css-numberexpected",Dt("number expected")),ConditionExpected:new lr("css-conditionexpected",Dt("condition expected")),RuleOrSelectorExpected:new lr("css-ruleorselectorexpected",Dt("at-rule or selector expected")),DotExpected:new lr("css-dotexpected",Dt("dot expected")),ColonExpected:new lr("css-colonexpected",Dt("colon expected")),SemiColonExpected:new lr("css-semicolonexpected",Dt("semi-colon expected")),TermExpected:new lr("css-termexpected",Dt("term expected")),ExpressionExpected:new lr("css-expressionexpected",Dt("expression expected")),OperatorExpected:new lr("css-operatorexpected",Dt("operator expected")),IdentifierExpected:new lr("css-identifierexpected",Dt("identifier expected")),PercentageExpected:new lr("css-percentageexpected",Dt("percentage expected")),URIOrStringExpected:new lr("css-uriorstringexpected",Dt("uri or string expected")),URIExpected:new lr("css-uriexpected",Dt("URI expected")),VariableNameExpected:new lr("css-varnameexpected",Dt("variable name expected")),VariableValueExpected:new lr("css-varvalueexpected",Dt("variable value expected")),PropertyValueExpected:new lr("css-propertyvalueexpected",Dt("property value expected")),LeftCurlyExpected:new lr("css-lcurlyexpected",Dt("{ expected")),RightCurlyExpected:new lr("css-rcurlyexpected",Dt("} expected")),LeftSquareBracketExpected:new lr("css-rbracketexpected",Dt("[ expected")),RightSquareBracketExpected:new lr("css-lbracketexpected",Dt("] expected")),LeftParenthesisExpected:new lr("css-lparentexpected",Dt("( expected")),RightParenthesisExpected:new lr("css-rparentexpected",Dt(") expected")),CommaExpected:new lr("css-commaexpected",Dt("comma expected")),PageDirectiveOrDeclarationExpected:new lr("css-pagedirordeclexpected",Dt("page directive or declaraton expected")),UnknownAtRule:new lr("css-unknownatrule",Dt("at-rule unknown")),UnknownKeyword:new lr("css-unknownkeyword",Dt("unknown keyword")),SelectorExpected:new lr("css-selectorexpected",Dt("selector expected")),StringLiteralExpected:new lr("css-stringliteralexpected",Dt("string literal expected")),WhitespaceExpected:new lr("css-whitespaceexpected",Dt("whitespace expected")),MediaQueryExpected:new lr("css-mediaqueryexpected",Dt("media query expected")),IdentifierOrWildcardExpected:new lr("css-idorwildcardexpected",Dt("identifier or wildcard expected")),WildcardExpected:new lr("css-wildcardexpected",Dt("wildcard expected")),IdentifierOrVariableExpected:new lr("css-idorvarexpected",Dt("identifier or variable expected"))};(Ot||(Ot={})).is=function(e){return"string"===typeof e},(zt||(zt={})).is=function(e){return"string"===typeof e},(Bt=Pt||(Pt={})).MIN_VALUE=-2147483648,Bt.MAX_VALUE=2147483647,Bt.is=function(e){return"number"===typeof e&&Bt.MIN_VALUE<=e&&e<=Bt.MAX_VALUE},(Vt=Wt||(Wt={})).MIN_VALUE=0,Vt.MAX_VALUE=2147483647,Vt.is=function(e){return"number"===typeof e&&Vt.MIN_VALUE<=e&&e<=Vt.MAX_VALUE},($t=Ut||(Ut={})).create=function(e,t){return e===Number.MAX_VALUE&&(e=Wt.MAX_VALUE),t===Number.MAX_VALUE&&(t=Wt.MAX_VALUE),{line:e,character:t}},$t.is=function(e){let t=e;return hr.objectLiteral(t)&&hr.uinteger(t.line)&&hr.uinteger(t.character)},(jt=qt||(qt={})).create=function(e,t,n,i){if(hr.uinteger(e)&&hr.uinteger(t)&&hr.uinteger(n)&&hr.uinteger(i))return{start:Ut.create(e,t),end:Ut.create(n,i)};if(Ut.is(e)&&Ut.is(t))return{start:e,end:t};throw new Error(`Range#create called with invalid arguments[${e}, ${t}, ${n}, ${i}]`)},jt.is=function(e){let t=e;return hr.objectLiteral(t)&&Ut.is(t.start)&&Ut.is(t.end)},(Ht=Kt||(Kt={})).create=function(e,t){return{uri:e,range:t}},Ht.is=function(e){let t=e;return hr.objectLiteral(t)&&qt.is(t.range)&&(hr.string(t.uri)||hr.undefined(t.uri))},(Qt=Gt||(Gt={})).create=function(e,t,n,i){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:i}},Qt.is=function(e){let t=e;return hr.objectLiteral(t)&&qt.is(t.targetRange)&&hr.string(t.targetUri)&&qt.is(t.targetSelectionRange)&&(qt.is(t.originSelectionRange)||hr.undefined(t.originSelectionRange))},(Yt=Jt||(Jt={})).create=function(e,t,n,i){return{red:e,green:t,blue:n,alpha:i}},Yt.is=function(e){const t=e;return hr.objectLiteral(t)&&hr.numberRange(t.red,0,1)&&hr.numberRange(t.green,0,1)&&hr.numberRange(t.blue,0,1)&&hr.numberRange(t.alpha,0,1)},(Zt=Xt||(Xt={})).create=function(e,t){return{range:e,color:t}},Zt.is=function(e){const t=e;return hr.objectLiteral(t)&&qt.is(t.range)&&Jt.is(t.color)},(tn=en||(en={})).create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},tn.is=function(e){const t=e;return hr.objectLiteral(t)&&hr.string(t.label)&&(hr.undefined(t.textEdit)||vn.is(t))&&(hr.undefined(t.additionalTextEdits)||hr.typedArray(t.additionalTextEdits,vn.is))},(rn=nn||(nn={})).Comment="comment",rn.Imports="imports",rn.Region="region",(on=sn||(sn={})).create=function(e,t,n,i,r,s){const o={startLine:e,endLine:t};return hr.defined(n)&&(o.startCharacter=n),hr.defined(i)&&(o.endCharacter=i),hr.defined(r)&&(o.kind=r),hr.defined(s)&&(o.collapsedText=s),o},on.is=function(e){const t=e;return hr.objectLiteral(t)&&hr.uinteger(t.startLine)&&hr.uinteger(t.startLine)&&(hr.undefined(t.startCharacter)||hr.uinteger(t.startCharacter))&&(hr.undefined(t.endCharacter)||hr.uinteger(t.endCharacter))&&(hr.undefined(t.kind)||hr.string(t.kind))},(ln=an||(an={})).create=function(e,t){return{location:e,message:t}},ln.is=function(e){let t=e;return hr.defined(t)&&Kt.is(t.location)&&hr.string(t.message)},(hn=cn||(cn={})).Error=1,hn.Warning=2,hn.Information=3,hn.Hint=4,(un=dn||(dn={})).Unnecessary=1,un.Deprecated=2,(pn||(pn={})).is=function(e){const t=e;return hr.objectLiteral(t)&&hr.string(t.href)},(fn=mn||(mn={})).create=function(e,t,n,i,r,s){let o={range:e,message:t};return hr.defined(n)&&(o.severity=n),hr.defined(i)&&(o.code=i),hr.defined(r)&&(o.source=r),hr.defined(s)&&(o.relatedInformation=s),o},fn.is=function(e){var t;let n=e;return hr.defined(n)&&qt.is(n.range)&&hr.string(n.message)&&(hr.number(n.severity)||hr.undefined(n.severity))&&(hr.integer(n.code)||hr.string(n.code)||hr.undefined(n.code))&&(hr.undefined(n.codeDescription)||hr.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(hr.string(n.source)||hr.undefined(n.source))&&(hr.undefined(n.relatedInformation)||hr.typedArray(n.relatedInformation,an.is))},(bn=gn||(gn={})).create=function(e,t,...n){let i={title:e,command:t};return hr.defined(n)&&n.length>0&&(i.arguments=n),i},bn.is=function(e){let t=e;return hr.defined(t)&&hr.string(t.title)&&hr.string(t.command)},(yn=vn||(vn={})).replace=function(e,t){return{range:e,newText:t}},yn.insert=function(e,t){return{range:{start:e,end:e},newText:t}},yn.del=function(e){return{range:e,newText:""}},yn.is=function(e){const t=e;return hr.objectLiteral(t)&&hr.string(t.newText)&&qt.is(t.range)},(_n=wn||(wn={})).create=function(e,t,n){const i={label:e};return void 0!==t&&(i.needsConfirmation=t),void 0!==n&&(i.description=n),i},_n.is=function(e){const t=e;return hr.objectLiteral(t)&&hr.string(t.label)&&(hr.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(hr.string(t.description)||void 0===t.description)},(kn||(kn={})).is=function(e){const t=e;return hr.string(t)},(Sn=Cn||(Cn={})).replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},Sn.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},Sn.del=function(e,t){return{range:e,newText:"",annotationId:t}},Sn.is=function(e){const t=e;return vn.is(t)&&(wn.is(t.annotationId)||kn.is(t.annotationId))},(En=xn||(xn={})).create=function(e,t){return{textDocument:e,edits:t}},En.is=function(e){let t=e;return hr.defined(t)&&Pn.is(t.textDocument)&&Array.isArray(t.edits)},(Ln=Fn||(Fn={})).create=function(e,t,n){let i={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(i.options=t),void 0!==n&&(i.annotationId=n),i},Ln.is=function(e){let t=e;return t&&"create"===t.kind&&hr.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||hr.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||hr.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||kn.is(t.annotationId))},(Tn=In||(In={})).create=function(e,t,n,i){let r={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(r.options=n),void 0!==i&&(r.annotationId=i),r},Tn.is=function(e){let t=e;return t&&"rename"===t.kind&&hr.string(t.oldUri)&&hr.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||hr.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||hr.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||kn.is(t.annotationId))},(Rn=Nn||(Nn={})).create=function(e,t,n){let i={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(i.options=t),void 0!==n&&(i.annotationId=n),i},Rn.is=function(e){let t=e;return t&&"delete"===t.kind&&hr.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||hr.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||hr.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||kn.is(t.annotationId))},(Dn||(Dn={})).is=function(e){let t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((e=>hr.string(e.kind)?Fn.is(e)||In.is(e)||Nn.is(e):xn.is(e))))},(Mn=An||(An={})).create=function(e){return{uri:e}},Mn.is=function(e){let t=e;return hr.defined(t)&&hr.string(t.uri)},(zn=On||(On={})).create=function(e,t){return{uri:e,version:t}},zn.is=function(e){let t=e;return hr.defined(t)&&hr.string(t.uri)&&hr.integer(t.version)},(Bn=Pn||(Pn={})).create=function(e,t){return{uri:e,version:t}},Bn.is=function(e){let t=e;return hr.defined(t)&&hr.string(t.uri)&&(null===t.version||hr.integer(t.version))},(Vn=Wn||(Wn={})).create=function(e,t,n,i){return{uri:e,languageId:t,version:n,text:i}},Vn.is=function(e){let t=e;return hr.defined(t)&&hr.string(t.uri)&&hr.string(t.languageId)&&hr.integer(t.version)&&hr.string(t.text)},($n=Un||(Un={})).PlainText="plaintext",$n.Markdown="markdown",$n.is=function(e){const t=e;return t===$n.PlainText||t===$n.Markdown},(qn||(qn={})).is=function(e){const t=e;return hr.objectLiteral(e)&&Un.is(t.kind)&&hr.string(t.value)},(Kn=jn||(jn={})).Text=1,Kn.Method=2,Kn.Function=3,Kn.Constructor=4,Kn.Field=5,Kn.Variable=6,Kn.Class=7,Kn.Interface=8,Kn.Module=9,Kn.Property=10,Kn.Unit=11,Kn.Value=12,Kn.Enum=13,Kn.Keyword=14,Kn.Snippet=15,Kn.Color=16,Kn.File=17,Kn.Reference=18,Kn.Folder=19,Kn.EnumMember=20,Kn.Constant=21,Kn.Struct=22,Kn.Event=23,Kn.Operator=24,Kn.TypeParameter=25,(Gn=Hn||(Hn={})).PlainText=1,Gn.Snippet=2,(Qn||(Qn={})).Deprecated=1,(Yn=Jn||(Jn={})).create=function(e,t,n){return{newText:e,insert:t,replace:n}},Yn.is=function(e){const t=e;return t&&hr.string(t.newText)&&qt.is(t.insert)&&qt.is(t.replace)},(Zn=Xn||(Xn={})).asIs=1,Zn.adjustIndentation=2,(ei||(ei={})).is=function(e){const t=e;return t&&(hr.string(t.detail)||void 0===t.detail)&&(hr.string(t.description)||void 0===t.description)},(ti||(ti={})).create=function(e){return{label:e}},(ni||(ni={})).create=function(e,t){return{items:e||[],isIncomplete:!!t}},(ri=ii||(ii={})).fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},ri.is=function(e){const t=e;return hr.string(t)||hr.objectLiteral(t)&&hr.string(t.language)&&hr.string(t.value)},(si||(si={})).is=function(e){let t=e;return!!t&&hr.objectLiteral(t)&&(qn.is(t.contents)||ii.is(t.contents)||hr.typedArray(t.contents,ii.is))&&(void 0===e.range||qt.is(e.range))},(oi||(oi={})).create=function(e,t){return t?{label:e,documentation:t}:{label:e}},(ai||(ai={})).create=function(e,t,...n){let i={label:e};return hr.defined(t)&&(i.documentation=t),hr.defined(n)?i.parameters=n:i.parameters=[],i},(ci=li||(li={})).Text=1,ci.Read=2,ci.Write=3,(hi||(hi={})).create=function(e,t){let n={range:e};return hr.number(t)&&(n.kind=t),n},(ui=di||(di={})).File=1,ui.Module=2,ui.Namespace=3,ui.Package=4,ui.Class=5,ui.Method=6,ui.Property=7,ui.Field=8,ui.Constructor=9,ui.Enum=10,ui.Interface=11,ui.Function=12,ui.Variable=13,ui.Constant=14,ui.String=15,ui.Number=16,ui.Boolean=17,ui.Array=18,ui.Object=19,ui.Key=20,ui.Null=21,ui.EnumMember=22,ui.Struct=23,ui.Event=24,ui.Operator=25,ui.TypeParameter=26,(pi||(pi={})).Deprecated=1,(mi||(mi={})).create=function(e,t,n,i,r){let s={name:e,kind:t,location:{uri:i,range:n}};return r&&(s.containerName=r),s},(fi||(fi={})).create=function(e,t,n,i){return void 0!==i?{name:e,kind:t,location:{uri:n,range:i}}:{name:e,kind:t,location:{uri:n}}},(bi=gi||(gi={})).create=function(e,t,n,i,r,s){let o={name:e,detail:t,kind:n,range:i,selectionRange:r};return void 0!==s&&(o.children=s),o},bi.is=function(e){let t=e;return t&&hr.string(t.name)&&hr.number(t.kind)&&qt.is(t.range)&&qt.is(t.selectionRange)&&(void 0===t.detail||hr.string(t.detail))&&(void 0===t.deprecated||hr.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))},(yi=vi||(vi={})).Empty="",yi.QuickFix="quickfix",yi.Refactor="refactor",yi.RefactorExtract="refactor.extract",yi.RefactorInline="refactor.inline",yi.RefactorRewrite="refactor.rewrite",yi.Source="source",yi.SourceOrganizeImports="source.organizeImports",yi.SourceFixAll="source.fixAll",(_i=wi||(wi={})).Invoked=1,_i.Automatic=2,(Ci=ki||(ki={})).create=function(e,t,n){let i={diagnostics:e};return void 0!==t&&null!==t&&(i.only=t),void 0!==n&&null!==n&&(i.triggerKind=n),i},Ci.is=function(e){let t=e;return hr.defined(t)&&hr.typedArray(t.diagnostics,mn.is)&&(void 0===t.only||hr.typedArray(t.only,hr.string))&&(void 0===t.triggerKind||t.triggerKind===wi.Invoked||t.triggerKind===wi.Automatic)},(xi=Si||(Si={})).create=function(e,t,n){let i={title:e},r=!0;return"string"===typeof t?(r=!1,i.kind=t):gn.is(t)?i.command=t:i.edit=t,r&&void 0!==n&&(i.kind=n),i},xi.is=function(e){let t=e;return t&&hr.string(t.title)&&(void 0===t.diagnostics||hr.typedArray(t.diagnostics,mn.is))&&(void 0===t.kind||hr.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||gn.is(t.command))&&(void 0===t.isPreferred||hr.boolean(t.isPreferred))&&(void 0===t.edit||Dn.is(t.edit))},(Fi=Ei||(Ei={})).create=function(e,t){let n={range:e};return hr.defined(t)&&(n.data=t),n},Fi.is=function(e){let t=e;return hr.defined(t)&&qt.is(t.range)&&(hr.undefined(t.command)||gn.is(t.command))},(Ii=Li||(Li={})).create=function(e,t){return{tabSize:e,insertSpaces:t}},Ii.is=function(e){let t=e;return hr.defined(t)&&hr.uinteger(t.tabSize)&&hr.boolean(t.insertSpaces)},(Ni=Ti||(Ti={})).create=function(e,t,n){return{range:e,target:t,data:n}},Ni.is=function(e){let t=e;return hr.defined(t)&&qt.is(t.range)&&(hr.undefined(t.target)||hr.string(t.target))},(Di=Ri||(Ri={})).create=function(e,t){return{range:e,parent:t}},Di.is=function(e){let t=e;return hr.objectLiteral(t)&&qt.is(t.range)&&(void 0===t.parent||Di.is(t.parent))},(Mi=Ai||(Ai={})).namespace="namespace",Mi.type="type",Mi.class="class",Mi.enum="enum",Mi.interface="interface",Mi.struct="struct",Mi.typeParameter="typeParameter",Mi.parameter="parameter",Mi.variable="variable",Mi.property="property",Mi.enumMember="enumMember",Mi.event="event",Mi.function="function",Mi.method="method",Mi.macro="macro",Mi.keyword="keyword",Mi.modifier="modifier",Mi.comment="comment",Mi.string="string",Mi.number="number",Mi.regexp="regexp",Mi.operator="operator",Mi.decorator="decorator",(zi=Oi||(Oi={})).declaration="declaration",zi.definition="definition",zi.readonly="readonly",zi.static="static",zi.deprecated="deprecated",zi.abstract="abstract",zi.async="async",zi.modification="modification",zi.documentation="documentation",zi.defaultLibrary="defaultLibrary",(Pi||(Pi={})).is=function(e){const t=e;return hr.objectLiteral(t)&&(void 0===t.resultId||"string"===typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"===typeof t.data[0])},(Wi=Bi||(Bi={})).create=function(e,t){return{range:e,text:t}},Wi.is=function(e){const t=e;return void 0!==t&&null!==t&&qt.is(t.range)&&hr.string(t.text)},(Ui=Vi||(Vi={})).create=function(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}},Ui.is=function(e){const t=e;return void 0!==t&&null!==t&&qt.is(t.range)&&hr.boolean(t.caseSensitiveLookup)&&(hr.string(t.variableName)||void 0===t.variableName)},(qi=$i||($i={})).create=function(e,t){return{range:e,expression:t}},qi.is=function(e){const t=e;return void 0!==t&&null!==t&&qt.is(t.range)&&(hr.string(t.expression)||void 0===t.expression)},(Ki=ji||(ji={})).create=function(e,t){return{frameId:e,stoppedLocation:t}},Ki.is=function(e){const t=e;return hr.defined(t)&&qt.is(e.stoppedLocation)},(Gi=Hi||(Hi={})).Type=1,Gi.Parameter=2,Gi.is=function(e){return 1===e||2===e},(Ji=Qi||(Qi={})).create=function(e){return{value:e}},Ji.is=function(e){const t=e;return hr.objectLiteral(t)&&(void 0===t.tooltip||hr.string(t.tooltip)||qn.is(t.tooltip))&&(void 0===t.location||Kt.is(t.location))&&(void 0===t.command||gn.is(t.command))},(Xi=Yi||(Yi={})).create=function(e,t,n){const i={position:e,label:t};return void 0!==n&&(i.kind=n),i},Xi.is=function(e){const t=e;return hr.objectLiteral(t)&&Ut.is(t.position)&&(hr.string(t.label)||hr.typedArray(t.label,Qi.is))&&(void 0===t.kind||Hi.is(t.kind))&&void 0===t.textEdits||hr.typedArray(t.textEdits,vn.is)&&(void 0===t.tooltip||hr.string(t.tooltip)||qn.is(t.tooltip))&&(void 0===t.paddingLeft||hr.boolean(t.paddingLeft))&&(void 0===t.paddingRight||hr.boolean(t.paddingRight))},(Zi||(Zi={})).createSnippet=function(e){return{kind:"snippet",value:e}},(er||(er={})).create=function(e,t,n,i){return{insertText:e,filterText:t,range:n,command:i}},(tr||(tr={})).create=function(e){return{items:e}},(ir=nr||(nr={})).Invoked=0,ir.Automatic=1,(rr||(rr={})).create=function(e,t){return{range:e,text:t}},(sr||(sr={})).create=function(e,t){return{triggerKind:e,selectedCompletionInfo:t}},(or||(or={})).is=function(e){const t=e;return hr.objectLiteral(t)&&zt.is(t.uri)&&hr.string(t.name)},function(e){function t(e,n){if(e.length<=1)return e;const i=e.length/2|0,r=e.slice(0,i),s=e.slice(i);t(r,n),t(s,n);let o=0,a=0,l=0;for(;o<r.length&&a<s.length;){let t=n(r[o],s[a]);e[l++]=t<=0?r[o++]:s[a++]}for(;o<r.length;)e[l++]=r[o++];for(;a<s.length;)e[l++]=s[a++];return e}e.create=function(e,t,n,i){return new dr(e,t,n,i)},e.is=function(e){let t=e;return!!(hr.defined(t)&&hr.string(t.uri)&&(hr.undefined(t.languageId)||hr.string(t.languageId))&&hr.uinteger(t.lineCount)&&hr.func(t.getText)&&hr.func(t.positionAt)&&hr.func(t.offsetAt))},e.applyEdits=function(e,n){let i=e.getText(),r=t(n,((e,t)=>{let n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),s=i.length;for(let t=r.length-1;t>=0;t--){let n=r[t],o=e.offsetAt(n.range.start),a=e.offsetAt(n.range.end);if(!(a<=s))throw new Error("Overlapping edit");i=i.substring(0,o)+n.newText+i.substring(a,i.length),s=o}return i}}(ar||(ar={}));var hr,dr=class{constructor(e,t,n,i){this._uri=e,this._languageId=t,this._version=n,this._content=i,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(void 0===this._lineOffsets){let e=[],t=this._content,n=!0;for(let i=0;i<t.length;i++){n&&(e.push(i),n=!1);let r=t.charAt(i);n="\r"===r||"\n"===r,"\r"===r&&i+1<t.length&&"\n"===t.charAt(i+1)&&i++}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,i=t.length;if(0===i)return Ut.create(0,e);for(;n<i;){let r=Math.floor((n+i)/2);t[r]>e?i=r:n=r+1}let r=n-1;return Ut.create(r,e-t[r])}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],i=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,i),n)}get lineCount(){return this.getLineOffsets().length}};!function(e){const t=Object.prototype.toString;e.defined=function(e){return"undefined"!==typeof e},e.undefined=function(e){return"undefined"===typeof e},e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===t.call(e)},e.number=function(e){return"[object Number]"===t.call(e)},e.numberRange=function(e,n,i){return"[object Number]"===t.call(e)&&n<=e&&e<=i},e.integer=function(e){return"[object Number]"===t.call(e)&&-2147483648<=e&&e<=2147483647},e.uinteger=function(e){return"[object Number]"===t.call(e)&&0<=e&&e<=2147483647},e.func=function(e){return"[object Function]"===t.call(e)},e.objectLiteral=function(e){return null!==e&&"object"===typeof e},e.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)}}(hr||(hr={}));var ur,pr,mr,fr,gr,br=class e{constructor(e,t,n,i){this._uri=e,this._languageId=t,this._version=n,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){const t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(t,n){for(let i of t)if(e.isIncremental(i)){const e=wr(i.range),t=this.offsetAt(e.start),n=this.offsetAt(e.end);this._content=this._content.substring(0,t)+i.text+this._content.substring(n,this._content.length);const r=Math.max(e.start.line,0),s=Math.max(e.end.line,0);let o=this._lineOffsets;const a=yr(i.text,!1,t);if(s-r===a.length)for(let i=0,c=a.length;i<c;i++)o[i+r+1]=a[i];else a.length<1e4?o.splice(r+1,s-r,...a):this._lineOffsets=o=o.slice(0,r+1).concat(a,o.slice(s+1));const l=i.text.length-(n-t);if(0!==l)for(let i=r+1+a.length,c=o.length;i<c;i++)o[i]=o[i]+l}else{if(!e.isFull(i))throw new Error("Unknown change event received");this._content=i.text,this._lineOffsets=void 0}this._version=n}getLineOffsets(){return void 0===this._lineOffsets&&(this._lineOffsets=yr(this._content,!0)),this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,i=t.length;if(0===i)return{line:0,character:e};for(;n<i;){let r=Math.floor((n+i)/2);t[r]>e?i=r:n=r+1}let r=n-1;return{line:r,character:e-t[r]}}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],i=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,i),n)}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){let t=e;return void 0!==t&&null!==t&&"string"===typeof t.text&&void 0!==t.range&&(void 0===t.rangeLength||"number"===typeof t.rangeLength)}static isFull(e){let t=e;return void 0!==t&&null!==t&&"string"===typeof t.text&&void 0===t.range&&void 0===t.rangeLength}};function vr(e,t){if(e.length<=1)return e;const n=e.length/2|0,i=e.slice(0,n),r=e.slice(n);vr(i,t),vr(r,t);let s=0,o=0,a=0;for(;s<i.length&&o<r.length;){let n=t(i[s],r[o]);e[a++]=n<=0?i[s++]:r[o++]}for(;s<i.length;)e[a++]=i[s++];for(;o<r.length;)e[a++]=r[o++];return e}function yr(e,t,n=0){const i=t?[n]:[];for(let r=0;r<e.length;r++){let t=e.charCodeAt(r);13!==t&&10!==t||(13===t&&r+1<e.length&&10===e.charCodeAt(r+1)&&r++,i.push(n+r+1))}return i}function wr(e){const 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 _r(e){const t=wr(e.range);return t!==e.range?{newText:e.newText,range:t}:e}(pr=ur||(ur={})).create=function(e,t,n,i){return new br(e,t,n,i)},pr.update=function(e,t,n){if(e instanceof br)return e.update(t,n),e;throw new Error("TextDocument.update: document must be created by TextDocument.create")},pr.applyEdits=function(e,t){let n=e.getText(),i=vr(t.map(_r),((e,t)=>{let n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),r=0;const s=[];for(const o of i){let t=e.offsetAt(o.range.start);if(t<r)throw new Error("Overlapping edit");t>r&&s.push(n.substring(r,t)),o.newText.length&&s.push(o.newText),r=e.offsetAt(o.range.end)}return s.push(n.substr(r)),s.join("")},(mr||(mr={})).LATEST={textDocument:{completion:{completionItem:{documentationFormat:[Un.Markdown,Un.PlainText]}},hover:{contentFormat:[Un.Markdown,Un.PlainText]}}},(gr=fr||(fr={}))[gr.Unknown=0]="Unknown",gr[gr.File=1]="File",gr[gr.Directory=2]="Directory",gr[gr.SymbolicLink=64]="SymbolicLink";var kr={E:"Edge",FF:"Firefox",S:"Safari",C:"Chrome",IE:"IE",O:"Opera"};function Cr(e){switch(e){case"experimental":return"\u26a0\ufe0f Property is experimental. Be cautious when using it.\ufe0f\n\n";case"nonstandard":return"\ud83d\udea8\ufe0f Property is nonstandard. Avoid using it.\n\n";case"obsolete":return"\ud83d\udea8\ufe0f\ufe0f\ufe0f Property is obsolete. Avoid using it.\n\n";default:return""}}function Sr(e,t,n){let i;if(i=t?{kind:"markdown",value:Fr(e,n)}:{kind:"plaintext",value:Er(e,n)},""!==i.value)return i}function xr(e){return(e=e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")).replace(/</g,"<").replace(/>/g,">")}function Er(e,t){if(!e.description||""===e.description)return"";if("string"!==typeof e.description)return e.description.value;let n="";if(!1!==t?.documentation){e.status&&(n+=Cr(e.status)),n+=e.description;const t=Lr(e.browsers);t&&(n+="\n("+t+")"),"syntax"in e&&(n+=`\n\nSyntax: ${e.syntax}`)}return e.references&&e.references.length>0&&!1!==t?.references&&(n.length>0&&(n+="\n\n"),n+=e.references.map((e=>`${e.name}: ${e.url}`)).join(" | ")),n}function Fr(e,t){if(!e.description||""===e.description)return"";let n="";if(!1!==t?.documentation){e.status&&(n+=Cr(e.status)),"string"===typeof e.description?n+=xr(e.description):n+=e.description.kind===Un.Markdown?e.description.value:xr(e.description.value);const t=Lr(e.browsers);t&&(n+="\n\n("+xr(t)+")"),"syntax"in e&&e.syntax&&(n+=`\n\nSyntax: ${xr(e.syntax)}`)}return e.references&&e.references.length>0&&!1!==t?.references&&(n.length>0&&(n+="\n\n"),n+=e.references.map((e=>`[${e.name}](${e.url})`)).join(" | ")),n}function Lr(e=[]){return 0===e.length?null:e.map((e=>{let t="";const n=e.match(/([A-Z]+)(\d+)?/),i=n[1],r=n[2];return i in kr&&(t+=kr[i]),r&&(t+=" "+r),t})).join(", ")}var Ir=/(^#([0-9A-F]{3}){1,2}$)|(^#([0-9A-F]{4}){1,2}$)/i,Tr=[{label:"rgb",func:"rgb($red, $green, $blue)",insertText:"rgb(${1:red}, ${2:green}, ${3:blue})",desc:Dt("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:Dt("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:Dt("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:Dt("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:Dt("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:Dt("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:Dt("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:Dt("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:Dt("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:Dt("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:Dt("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:Dt("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:Dt("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:Dt("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:Dt("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:Dt("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:Dt("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:Dt("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:Dt("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:Dt("Mix two colors together in a polar color space.")}],Nr=/^(rgb|rgba|hsl|hsla|hwb)$/i,Rr={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"},Dr=new RegExp(`^(${Object.keys(Rr).join("|")})$`,"i"),Ar={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."},Mr=new RegExp(`^(${Object.keys(Ar).join("|")})$`,"i");function Or(e,t){const n=e.getText().match(/^([-+]?[0-9]*\.?[0-9]+)(%?)$/);if(n){n[2]&&(t=100);const e=parseFloat(n[1])/t;if(e>=0&&e<=1)return e}throw new Error}function zr(e){const 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 180*parseFloat(t)/Math.PI%360;case"grad":return.9*parseFloat(t)%360;case"turn":return 360*parseFloat(t)%360;default:if("undefined"===typeof n[2])return parseFloat(t)%360}throw new Error}function Pr(e){return Ir.test(e)||Dr.test(e)||Mr.test(e)}function Br(e){return e<48?0:e<=57?e-48:(e<97&&(e+=32),e>=97&&e<=102?e-97+10:0)}function Wr(e){if("#"!==e[0])return null;switch(e.length){case 4:return{red:17*Br(e.charCodeAt(1))/255,green:17*Br(e.charCodeAt(2))/255,blue:17*Br(e.charCodeAt(3))/255,alpha:1};case 5:return{red:17*Br(e.charCodeAt(1))/255,green:17*Br(e.charCodeAt(2))/255,blue:17*Br(e.charCodeAt(3))/255,alpha:17*Br(e.charCodeAt(4))/255};case 7:return{red:(16*Br(e.charCodeAt(1))+Br(e.charCodeAt(2)))/255,green:(16*Br(e.charCodeAt(3))+Br(e.charCodeAt(4)))/255,blue:(16*Br(e.charCodeAt(5))+Br(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(16*Br(e.charCodeAt(1))+Br(e.charCodeAt(2)))/255,green:(16*Br(e.charCodeAt(3))+Br(e.charCodeAt(4)))/255,blue:(16*Br(e.charCodeAt(5))+Br(e.charCodeAt(6)))/255,alpha:(16*Br(e.charCodeAt(7))+Br(e.charCodeAt(8)))/255}}return null}function Vr(e,t,n,i=1){if(0===t)return{red:n,green:n,blue:n,alpha:i};{const r=(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},s=n<=.5?n*(t+1):n+t-n*t,o=2*n-s;return{red:r(o,s,(e/=60)+2),green:r(o,s,e),blue:r(o,s,e-2),alpha:i}}}function Ur(e){const t=e.red,n=e.green,i=e.blue,r=e.alpha,s=Math.max(t,n,i),o=Math.min(t,n,i);let a=0,l=0;const c=(o+s)/2,h=s-o;if(h>0){switch(l=Math.min(c<=.5?h/(2*c):h/(2-2*c),1),s){case t:a=(n-i)/h+(n<i?6:0);break;case n:a=(i-t)/h+2;break;case i:a=(t-n)/h+4}a*=60,a=Math.round(a)}return{h:a,s:l,l:c,a:r}}function $r(e){if(e.type===ee.HexColorValue){return Wr(e.getText())}if(e.type===ee.Function){const n=e,i=n.getName();let r=n.getArguments().getChildren();if(1===r.length){const e=r[0].getChildren();if(1===e.length&&e[0].type===ee.Expression&&(r=e[0].getChildren(),3===r.length)){const e=r[2];if(e instanceof ct){const t=e.getLeft(),n=e.getRight(),i=e.getOperator();t&&n&&i&&i.matches("/")&&(r=[r[0],r[1],t,n])}}}if(!i||r.length<3||r.length>4)return null;try{const e=4===r.length?Or(r[3],1):1;if("rgb"===i||"rgba"===i)return{red:Or(r[0],255),green:Or(r[1],255),blue:Or(r[2],255),alpha:e};if("hsl"===i||"hsla"===i){const t=zr(r[0]),n=Or(r[1],100);return Vr(t,n,Or(r[2],100),e)}if("hwb"===i){const t=zr(r[0]),n=Or(r[1],100);return function(e,t,n,i=1){if(t+n>=1){const e=t/(t+n);return{red:e,green:e,blue:e,alpha:i}}const r=Vr(e,1,.5,i);let s=r.red;s*=1-t-n,s+=t;let o=r.green;o*=1-t-n,o+=t;let a=r.blue;return a*=1-t-n,a+=t,{red:s,green:o,blue:a,alpha:i}}(t,n,Or(r[2],100),e)}}catch(t){return null}}else if(e.type===ee.Identifier){if(e.parent&&e.parent.type!==ee.Term)return null;const t=e.parent;if(t&&t.parent&&t.parent.type===ee.BinaryExpression){const e=t.parent;if(e.parent&&e.parent.type===ee.ListEntry&&e.parent.key===e)return null}const n=e.getText().toLowerCase();if("none"===n)return null;const i=Rr[n];if(i)return Wr(i)}return null}var qr={bottom:"Computes to \u2018100%\u2019 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 \u201850%\u2019 (\u2018left 50%\u2019) for the horizontal position if the horizontal position is not otherwise specified, or \u201850%\u2019 (\u2018top 50%\u2019) for the vertical position if it is.",left:"Computes to \u20180%\u2019 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 \u2018100%\u2019 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 \u20180%\u2019 for the vertical position if one or two values are given, otherwise specifies the top edge as the origin for the next offset."},jr={"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 \u2018repeat no-repeat\u2019.","repeat-y":"Computes to \u2018no-repeat repeat\u2019.",round:"Repeated as often as will fit within the background positioning area. If it doesn\u2019t 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."},Kr={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 \u2018none\u2019, 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."},Hr=["medium","thick","thin"],Gr={"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."},Qr={"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."},Jr={initial:"Represents the value specified as the property\u2019s initial value.",inherit:"Represents the computed value of the property on the element\u2019s parent.",unset:"Acts as either `inherit` or `initial`, depending on whether the property is inherited or not."},Yr={"var()":"Evaluates the value of a custom variable.","calc()":"Evaluates an mathematical expression. The following operators can be used: + - * /."},Xr={"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\u2019s position and the first specified color-stop\u2019s 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\u2019s position and the first specified color-stop\u2019s position."},Zr={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 \u201cstart\u201d or \u201cend\u201d.","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."},es={"circle()":"Defines a circle.","ellipse()":"Defines an ellipse.","inset()":"Defines an inset rectangle.","polygon()":"Defines a polygon."},ts={length:["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"],angle:["deg","rad","grad","turn"],time:["ms","s"],frequency:["Hz","kHz"],resolution:["dpi","dpcm","dppx"],percentage:["%","fr"]},ns=["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"],is=["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"],rs=["@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 ss(e){return Object.keys(e).map((t=>e[t]))}function os(e){return"undefined"!==typeof e}var as=class{constructor(e=new re){this.keyframeRegex=/^@(\-(webkit|ms|moz|o)\-)?keyframes$/i,this.scanner=e,this.token={type:o.EOF,offset:-1,len:0,text:""},this.prevToken=void 0}peekIdent(e){return o.Ident===this.token.type&&e.length===this.token.text.length&&e===this.token.text.toLowerCase()}peekKeyword(e){return o.AtKeyword===this.token.type&&e.length===this.token.text.length&&e===this.token.text.toLowerCase()}peekDelim(e){return o.Delim===this.token.type&&e===this.token.text}peek(e){return e===this.token.type}peekOne(...e){return-1!==e.indexOf(this.token.type)}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(){const e=this.scanner.tryScanUnicode();return!!e&&(this.prevToken=e,this.token=this.scanner.scan(),!0)}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){const t=this.mark(),n=e();return n||(this.restoreAtMark(t),null)}acceptOneKeyword(e){if(o.AtKeyword===this.token.type)for(const 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)}acceptKeyword(e){return!!this.peekKeyword(e)&&(this.consumeToken(),!0)}acceptDelim(e){return!!this.peekDelim(e)&&(this.consumeToken(),!0)}acceptRegexp(e){return!!e.test(this.token.text)&&(this.consumeToken(),!0)}_parseRegexp(e){let t=this.createNode(ee.Identifier);do{}while(this.acceptRegexp(e));return this.finish(t)}acceptUnquotedString(){const e=this.scanner.pos();this.scanner.goBackTo(this.token.offset);const t=this.scanner.scanUnquotedString();return t?(this.token=t,this.consumeToken(),!0):(this.scanner.goBackTo(e),!1)}resync(e,t){for(;;){if(e&&-1!==e.indexOf(this.token.type))return this.consumeToken(),!0;if(t&&-1!==t.indexOf(this.token.type))return!0;if(this.token.type===o.EOF)return!1;this.token=this.scanner.scan()}}createNode(e){return new pe(this.token.offset,this.token.len,e)}create(e){return new e(this.token.offset,this.token.len)}finish(e,t,n,i){if(!(e instanceof me)&&(t&&this.markError(e,t,n,i),this.prevToken)){const t=this.prevToken.offset+this.prevToken.len;e.length=t>e.offset?t-e.offset:0}return e}markError(e,t,n,i){this.token!==this.lastErrorToken&&(e.addIssue(new Nt(e,t,de.Error,void 0,this.token.offset,this.token.len)),this.lastErrorToken=this.token),(n||i)&&this.resync(n,i)}parseStylesheet(e){const t=e.version,n=e.getText();return this.internalParse(n,this._parseStylesheet,((i,r)=>{if(e.version!==t)throw new Error("Underlying model has changed, AST is no longer valid");return n.substr(i,r)}))}internalParse(e,t,n){this.scanner.setSource(e),this.token=this.scanner.scan();const i=t.bind(this)();return i&&(i.textProvider=n||((t,n)=>e.substr(t,n))),i}_parseStylesheet(){const e=this.create(be);for(;e.addChild(this._parseStylesheetStart()););let t=!1;do{let n=!1;do{n=!1;const i=this._parseStylesheetStatement();for(i&&(e.addChild(i),n=!0,t=!1,this.peek(o.EOF)||!this._needsSemicolonAfter(i)||this.accept(o.SemiColon)||this.markError(e,cr.SemiColonExpected));this.accept(o.SemiColon)||this.accept(o.CDO)||this.accept(o.CDC);)n=!0,t=!1}while(n);if(this.peek(o.EOF))break;t||(this.peek(o.AtKeyword)?this.markError(e,cr.UnknownAtRule):this.markError(e,cr.RuleOrSelectorExpected),t=!0),this.consumeToken()}while(!this.peek(o.EOF));return this.finish(e)}_parseStylesheetStart(){return this._parseCharset()}_parseStylesheetStatement(e=!1){return this.peek(o.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){const t=this.mark();if(this._parseSelector(e)){for(;this.accept(o.Comma)&&this._parseSelector(e););if(this.accept(o.CurlyL))return this.restoreAtMark(t),this._parseRuleset(e)}return this.restoreAtMark(t),null}_parseRuleset(e=!1){const t=this.create(we),n=t.getSelectors();if(!n.addChild(this._parseSelector(e)))return null;for(;this.accept(o.Comma);)if(!n.addChild(this._parseSelector(e)))return this.finish(t,cr.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(o.AtKeyword)?this._parseRuleSetDeclarationAtStatement():this.peek(o.Ident)?this._tryParseRuleset(!0)||this._parseDeclaration():this._parseRuleset(!0)}_needsSemicolonAfter(e){switch(e.type){case ee.Keyframe:case ee.ViewPort:case ee.Media:case ee.Ruleset:case ee.Namespace:case ee.If:case ee.For:case ee.Each:case ee.While:case ee.MixinDeclaration:case ee.FunctionDeclaration:case ee.MixinContentDeclaration:return!1;case ee.ExtendsReference:case ee.MixinContentReference:case ee.ReturnStatement:case ee.MediaQuery:case ee.Debug:case ee.Import:case ee.AtApplyRule:case ee.CustomPropertyDeclaration:return!0;case ee.VariableDeclaration:return e.needsSemicolon;case ee.MixinReference:return!e.getContent();case ee.Declaration:return!e.getNestedProperties()}return!1}_parseDeclarations(e){const t=this.create(ve);if(!this.accept(o.CurlyL))return null;let n=e();for(;t.addChild(n)&&!this.peek(o.CurlyR);){if(this._needsSemicolonAfter(n)&&!this.accept(o.SemiColon))return this.finish(t,cr.SemiColonExpected,[o.SemiColon,o.CurlyR]);for(n&&this.prevToken&&this.prevToken.type===o.SemiColon&&(n.semicolonPosition=this.prevToken.offset);this.accept(o.SemiColon););n=e()}return this.accept(o.CurlyR)?this.finish(t):this.finish(t,cr.RightCurlyExpected,[o.CurlyR,o.SemiColon])}_parseBody(e,t){return e.setDeclarations(this._parseDeclarations(t))?this.finish(e):this.finish(e,cr.LeftCurlyExpected,[o.CurlyR,o.SemiColon])}_parseSelector(e){const t=this.create(_e);let 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){const t=this._tryParseCustomPropertyDeclaration(e);if(t)return t;const n=this.create(xe);return n.setProperty(this._parseProperty())?this.accept(o.Colon)?(this.prevToken&&(n.colonPosition=this.prevToken.offset),n.setValue(this._parseExpr())?(n.addChild(this._parsePrio()),this.peek(o.SemiColon)&&(n.semicolonPosition=this.token.offset),this.finish(n)):this.finish(n,cr.PropertyValueExpected)):this.finish(n,cr.ColonExpected,[o.Colon],e||[o.SemiColon]):null}_tryParseCustomPropertyDeclaration(e){if(!this.peekRegExp(o.Ident,/^--/))return null;const t=this.create(Ee);if(!t.setProperty(this._parseProperty()))return null;if(!this.accept(o.Colon))return this.finish(t,cr.ColonExpected,[o.Colon]);this.prevToken&&(t.colonPosition=this.prevToken.offset);const n=this.mark();if(this.peek(o.CurlyL)){const e=this.create(Se),i=this._parseDeclarations(this._parseRuleSetDeclaration.bind(this));if(e.setDeclarations(i)&&!i.isErroneous(!0)&&(e.addChild(this._parsePrio()),this.peek(o.SemiColon)))return this.finish(e),t.setPropertySet(e),t.semicolonPosition=this.token.offset,this.finish(t);this.restoreAtMark(n)}const i=this._parseExpr();return i&&!i.isErroneous(!0)&&(this._parsePrio(),this.peekOne(...e||[],o.SemiColon,o.EOF))?(t.setValue(i),this.peek(o.SemiColon)&&(t.semicolonPosition=this.token.offset),this.finish(t)):(this.restoreAtMark(n),t.addChild(this._parseCustomPropertyValue(e)),t.addChild(this._parsePrio()),os(t.colonPosition)&&this.token.offset===t.colonPosition+1?this.finish(t,cr.PropertyValueExpected):this.finish(t))}_parseCustomPropertyValue(e=[o.CurlyR]){const t=this.create(pe),n=()=>0===r&&0===s&&0===a,i=()=>-1!==e.indexOf(this.token.type);let r=0,s=0,a=0;e:for(;;){switch(this.token.type){case o.SemiColon:case o.Exclamation:if(n())break e;break;case o.CurlyL:r++;break;case o.CurlyR:if(r--,r<0){if(i()&&0===s&&0===a)break e;return this.finish(t,cr.LeftCurlyExpected)}break;case o.ParenthesisL:s++;break;case o.ParenthesisR:if(s--,s<0){if(i()&&0===a&&0===r)break e;return this.finish(t,cr.LeftParenthesisExpected)}break;case o.BracketL:a++;break;case o.BracketR:if(a--,a<0)return this.finish(t,cr.LeftSquareBracketExpected);break;case o.BadString:break e;case o.EOF:let e=cr.RightCurlyExpected;return a>0?e=cr.RightSquareBracketExpected:s>0&&(e=cr.RightParenthesisExpected),this.finish(t,e)}this.consumeToken()}return this.finish(t)}_tryToParseDeclaration(e){const t=this.mark();return this._parseProperty()&&this.accept(o.Colon)?(this.restoreAtMark(t),this._parseDeclaration(e)):(this.restoreAtMark(t),null)}_parseProperty(){const e=this.create(Fe),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(o.Charset))return null;const e=this.create(pe);return this.consumeToken(),this.accept(o.String)?this.accept(o.SemiColon)?this.finish(e):this.finish(e,cr.SemiColonExpected):this.finish(e,cr.IdentifierExpected)}_parseImport(){if(!this.peekKeyword("@import"))return null;const e=this.create($e);return this.consumeToken(),e.addChild(this._parseURILiteral())||e.addChild(this._parseStringLiteral())?this._completeParseImport(e):this.finish(e,cr.URIOrStringExpected)}_completeParseImport(e){if(this.acceptIdent("layer")&&this.accept(o.ParenthesisL)){if(!e.addChild(this._parseLayerName()))return this.finish(e,cr.IdentifierExpected,[o.SemiColon]);if(!this.accept(o.ParenthesisR))return this.finish(e,cr.RightParenthesisExpected,[o.ParenthesisR],[])}return this.acceptIdent("supports")&&this.accept(o.ParenthesisL)&&(e.addChild(this._tryToParseDeclaration()||this._parseSupportsCondition()),!this.accept(o.ParenthesisR))?this.finish(e,cr.RightParenthesisExpected,[o.ParenthesisR],[]):(this.peek(o.SemiColon)||this.peek(o.EOF)||e.setMedialist(this._parseMediaQueryList()),this.finish(e))}_parseNamespace(){if(!this.peekKeyword("@namespace"))return null;const e=this.create(Ge);return this.consumeToken(),e.addChild(this._parseURILiteral())||(e.addChild(this._parseIdent()),e.addChild(this._parseURILiteral())||e.addChild(this._parseStringLiteral()))?this.accept(o.SemiColon)?this.finish(e):this.finish(e,cr.SemiColonExpected):this.finish(e,cr.URIExpected,[o.SemiColon])}_parseFontFace(){if(!this.peekKeyword("@font-face"))return null;const e=this.create(Be);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;const e=this.create(Pe);return this.consumeToken(),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_parseKeyframe(){if(!this.peekRegExp(o.AtKeyword,this.keyframeRegex))return null;const e=this.create(Ve),t=this.create(pe);return this.consumeToken(),e.setKeyword(this.finish(t)),t.matches("@-ms-keyframes")&&this.markError(t,cr.UnknownKeyword),e.setIdentifier(this._parseKeyframeIdent())?this._parseBody(e,this._parseKeyframeSelector.bind(this)):this.finish(e,cr.IdentifierExpected,[o.CurlyR])}_parseKeyframeIdent(){return this._parseIdent([ne.Keyframe])}_parseKeyframeSelector(){const e=this.create(Ue);let t=!1;if(e.addChild(this._parseIdent())&&(t=!0),this.accept(o.Percentage)&&(t=!0),!t)return null;for(;this.accept(o.Comma);)if(t=!1,e.addChild(this._parseIdent())&&(t=!0),this.accept(o.Percentage)&&(t=!0),!t)return this.finish(e,cr.PercentageExpected);return this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_tryParseKeyframeSelector(){const e=this.create(Ue),t=this.mark();let n=!1;if(e.addChild(this._parseIdent())&&(n=!0),this.accept(o.Percentage)&&(n=!0),!n)return null;for(;this.accept(o.Comma);)if(n=!1,e.addChild(this._parseIdent())&&(n=!0),this.accept(o.Percentage)&&(n=!0),!n)return this.restoreAtMark(t),null;return this.peek(o.CurlyL)?this._parseBody(e,this._parseRuleSetDeclaration.bind(this)):(this.restoreAtMark(t),null)}_parsePropertyAtRule(){if(!this.peekKeyword("@property"))return null;const e=this.create(Xe);return this.consumeToken(),this.peekRegExp(o.Ident,/^--/)&&e.setName(this._parseIdent([ne.Property]))?this._parseBody(e,this._parseDeclaration.bind(this)):this.finish(e,cr.IdentifierExpected)}_parseLayer(e=!1){if(!this.peekKeyword("@layer"))return null;const t=this.create(Ye);this.consumeToken();const n=this._parseLayerNameList();return n&&t.setNames(n),n&&1!==n.getChildren().length||!this.peek(o.CurlyL)?this.accept(o.SemiColon)?this.finish(t):this.finish(t,cr.SemiColonExpected):this._parseBody(t,this._parseLayerDeclaration.bind(this,e))}_parseLayerDeclaration(e=!1){return e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)}_parseLayerNameList(){const e=this.createNode(ee.LayerNameList);if(!e.addChild(this._parseLayerName()))return null;for(;this.accept(o.Comma);)if(!e.addChild(this._parseLayerName()))return this.finish(e,cr.IdentifierExpected);return this.finish(e)}_parseLayerName(){const e=this.createNode(ee.LayerName);if(!e.addChild(this._parseIdent()))return null;for(;!this.hasWhitespace()&&this.acceptDelim(".");)if(this.hasWhitespace()||!e.addChild(this._parseIdent()))return this.finish(e,cr.IdentifierExpected);return this.finish(e)}_parseSupports(e=!1){if(!this.peekKeyword("@supports"))return null;const t=this.create(Je);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(){const e=this.create(st);if(this.acceptIdent("not"))e.addChild(this._parseSupportsConditionInParens());else if(e.addChild(this._parseSupportsConditionInParens()),this.peekRegExp(o.Ident,/^(and|or)$/i)){const t=this.token.text.toLowerCase();for(;this.acceptIdent(t);)e.addChild(this._parseSupportsConditionInParens())}return this.finish(e)}_parseSupportsConditionInParens(){const e=this.create(st);if(this.accept(o.ParenthesisL))return this.prevToken&&(e.lParent=this.prevToken.offset),e.addChild(this._tryToParseDeclaration([o.ParenthesisR]))||this._parseSupportsCondition()?this.accept(o.ParenthesisR)?(this.prevToken&&(e.rParent=this.prevToken.offset),this.finish(e)):this.finish(e,cr.RightParenthesisExpected,[o.ParenthesisR],[]):this.finish(e,cr.ConditionExpected);if(this.peek(o.Ident)){const t=this.mark();if(this.consumeToken(),!this.hasWhitespace()&&this.accept(o.ParenthesisL)){let t=1;for(;this.token.type!==o.EOF&&0!==t;)this.token.type===o.ParenthesisL?t++:this.token.type===o.ParenthesisR&&t--,this.consumeToken();return this.finish(e)}this.restoreAtMark(t)}return this.finish(e,cr.LeftParenthesisExpected,[],[o.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;const t=this.create(Qe);return this.consumeToken(),t.addChild(this._parseMediaQueryList())?this._parseBody(t,this._parseMediaDeclaration.bind(this,e)):this.finish(t,cr.MediaQueryExpected)}_parseMediaQueryList(){const e=this.create(tt);if(!e.addChild(this._parseMediaQuery()))return this.finish(e,cr.MediaQueryExpected);for(;this.accept(o.Comma);)if(!e.addChild(this._parseMediaQuery()))return this.finish(e,cr.MediaQueryExpected);return this.finish(e)}_parseMediaQuery(){const e=this.create(nt),t=this.mark();if(this.acceptIdent("not"),this.peek(o.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(){const e=this.mark(),t=this.create(pt);return this._parseNumeric()?this.acceptDelim("/")?this._parseNumeric()?this.finish(t):this.finish(t,cr.NumberExpected):(this.restoreAtMark(e),null):null}_parseMediaCondition(){const e=this.create(it);this.acceptIdent("not");let t=!0;for(;t;){if(!this.accept(o.ParenthesisL))return this.finish(e,cr.LeftParenthesisExpected,[],[o.CurlyL]);if(this.peek(o.ParenthesisL)||this.peekIdent("not")?e.addChild(this._parseMediaCondition()):e.addChild(this._parseMediaFeature()),!this.accept(o.ParenthesisR))return this.finish(e,cr.RightParenthesisExpected,[],[o.CurlyL]);t=this.acceptIdent("and")||this.acceptIdent("or")}return this.finish(e)}_parseMediaFeature(){const e=[o.ParenthesisR],t=this.create(rt);if(t.addChild(this._parseMediaFeatureName())){if(this.accept(o.Colon)){if(!t.addChild(this._parseMediaFeatureValue()))return this.finish(t,cr.TermExpected,[],e)}else if(this._parseMediaFeatureRangeOperator()){if(!t.addChild(this._parseMediaFeatureValue()))return this.finish(t,cr.TermExpected,[],e);if(this._parseMediaFeatureRangeOperator()&&!t.addChild(this._parseMediaFeatureValue()))return this.finish(t,cr.TermExpected,[],e)}}else{if(!t.addChild(this._parseMediaFeatureValue()))return this.finish(t,cr.IdentifierExpected,[],e);if(!this._parseMediaFeatureRangeOperator())return this.finish(t,cr.OperatorExpected,[],e);if(!t.addChild(this._parseMediaFeatureName()))return this.finish(t,cr.IdentifierExpected,[],e);if(this._parseMediaFeatureRangeOperator()&&!t.addChild(this._parseMediaFeatureValue()))return this.finish(t,cr.TermExpected,[],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(){const e=this.create(pe);return e.addChild(this._parseIdent())?this.finish(e):null}_parsePageDeclaration(){return this._parsePageMarginBox()||this._parseRuleSetDeclaration()}_parsePage(){if(!this.peekKeyword("@page"))return null;const e=this.create(ot);if(this.consumeToken(),e.addChild(this._parsePageSelector()))for(;this.accept(o.Comma);)if(!e.addChild(this._parsePageSelector()))return this.finish(e,cr.IdentifierExpected);return this._parseBody(e,this._parsePageDeclaration.bind(this))}_parsePageMarginBox(){if(!this.peek(o.AtKeyword))return null;const e=this.create(at);return this.acceptOneKeyword(rs)||this.markError(e,cr.UnknownAtRule,[],[o.CurlyL]),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_parsePageSelector(){if(!this.peek(o.Ident)&&!this.peek(o.Colon))return null;const e=this.create(pe);return e.addChild(this._parseIdent()),this.accept(o.Colon)&&!e.addChild(this._parseIdent())?this.finish(e,cr.IdentifierExpected):this.finish(e)}_parseDocument(){if(!this.peekKeyword("@-moz-document"))return null;const e=this.create(Ze);return this.consumeToken(),this.resync([],[o.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;const t=this.create(et);return this.consumeToken(),t.addChild(this._parseIdent()),t.addChild(this._parseContainerQuery()),this._parseBody(t,this._parseContainerDeclaration.bind(this,e))}_parseContainerQuery(){const e=this.create(pe);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(){const e=this.create(pe);if(this.accept(o.ParenthesisL)){if(this.peekIdent("not")||this.peek(o.ParenthesisL)?e.addChild(this._parseContainerQuery()):e.addChild(this._parseMediaFeature()),!this.accept(o.ParenthesisR))return this.finish(e,cr.RightParenthesisExpected,[],[o.CurlyL])}else{if(!this.acceptIdent("style"))return this.finish(e,cr.LeftParenthesisExpected,[],[o.CurlyL]);if(this.hasWhitespace()||!this.accept(o.ParenthesisL))return this.finish(e,cr.LeftParenthesisExpected,[],[o.CurlyL]);if(e.addChild(this._parseStyleQuery()),!this.accept(o.ParenthesisR))return this.finish(e,cr.RightParenthesisExpected,[],[o.CurlyL])}return this.finish(e)}_parseStyleQuery(){const e=this.create(pe);if(this.acceptIdent("not"))e.addChild(this._parseStyleInParens());else if(this.peek(o.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([o.ParenthesisR]));return this.finish(e)}_parseStyleInParens(){const e=this.create(pe);return this.accept(o.ParenthesisL)?(e.addChild(this._parseStyleQuery()),this.accept(o.ParenthesisR)?this.finish(e):this.finish(e,cr.RightParenthesisExpected,[],[o.CurlyL])):this.finish(e,cr.LeftParenthesisExpected,[],[o.CurlyL])}_parseUnknownAtRule(){if(!this.peek(o.AtKeyword))return null;const e=this.create(Et);e.addChild(this._parseUnknownAtRuleName());let t=0,n=0,i=0,r=0;e:for(;;){switch(this.token.type){case o.SemiColon:if(0===n&&0===i&&0===r)break e;break;case o.EOF:return n>0?this.finish(e,cr.RightCurlyExpected):r>0?this.finish(e,cr.RightSquareBracketExpected):i>0?this.finish(e,cr.RightParenthesisExpected):this.finish(e);case o.CurlyL:t++,n++;break;case o.CurlyR:if(n--,t>0&&0===n){if(this.consumeToken(),r>0)return this.finish(e,cr.RightSquareBracketExpected);if(i>0)return this.finish(e,cr.RightParenthesisExpected);break e}if(n<0){if(0===i&&0===r)break e;return this.finish(e,cr.LeftCurlyExpected)}break;case o.ParenthesisL:i++;break;case o.ParenthesisR:if(i--,i<0)return this.finish(e,cr.LeftParenthesisExpected);break;case o.BracketL:r++;break;case o.BracketR:if(r--,r<0)return this.finish(e,cr.LeftSquareBracketExpected)}this.consumeToken()}return e}_parseUnknownAtRuleName(){const e=this.create(pe);return this.accept(o.AtKeyword)?this.finish(e):e}_parseOperator(){if(this.peekDelim("/")||this.peekDelim("*")||this.peekDelim("+")||this.peekDelim("-")||this.peek(o.Dashmatch)||this.peek(o.Includes)||this.peek(o.SubstringOperator)||this.peek(o.PrefixOperator)||this.peek(o.SuffixOperator)||this.peekDelim("=")){const e=this.createNode(ee.Operator);return this.consumeToken(),this.finish(e)}return null}_parseUnaryOperator(){if(!this.peekDelim("+")&&!this.peekDelim("-"))return null;const e=this.create(pe);return this.consumeToken(),this.finish(e)}_parseCombinator(){if(this.peekDelim(">")){const e=this.create(pe);this.consumeToken();const t=this.mark();if(!this.hasWhitespace()&&this.acceptDelim(">")){if(!this.hasWhitespace()&&this.acceptDelim(">"))return e.type=ee.SelectorCombinatorShadowPiercingDescendant,this.finish(e);this.restoreAtMark(t)}return e.type=ee.SelectorCombinatorParent,this.finish(e)}if(this.peekDelim("+")){const e=this.create(pe);return this.consumeToken(),e.type=ee.SelectorCombinatorSibling,this.finish(e)}if(this.peekDelim("~")){const e=this.create(pe);return this.consumeToken(),e.type=ee.SelectorCombinatorAllSiblings,this.finish(e)}if(this.peekDelim("/")){const e=this.create(pe);this.consumeToken();const t=this.mark();if(!this.hasWhitespace()&&this.acceptIdent("deep")&&!this.hasWhitespace()&&this.acceptDelim("/"))return e.type=ee.SelectorCombinatorShadowPiercingDescendant,this.finish(e);this.restoreAtMark(t)}return null}_parseSimpleSelector(){const e=this.create(ke);let t=0;for(e.addChild(this._parseElementName()||this._parseNestingSelector())&&t++;(0===t||!this.hasWhitespace())&&e.addChild(this._parseSimpleSelectorBody());)t++;return t>0?this.finish(e):null}_parseNestingSelector(){if(this.peekDelim("&")){const e=this.createNode(ee.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(o.Hash)&&!this.peekDelim("#"))return null;const e=this.createNode(ee.IdentifierSelector);if(this.acceptDelim("#")){if(this.hasWhitespace()||!e.addChild(this._parseSelectorIdent()))return this.finish(e,cr.IdentifierExpected)}else this.consumeToken();return this.finish(e)}_parseClass(){if(!this.peekDelim("."))return null;const e=this.createNode(ee.ClassSelector);return this.consumeToken(),this.hasWhitespace()||!e.addChild(this._parseSelectorIdent())?this.finish(e,cr.IdentifierExpected):this.finish(e)}_parseElementName(){const e=this.mark(),t=this.createNode(ee.ElementNameSelector);return t.addChild(this._parseNamespacePrefix()),t.addChild(this._parseSelectorIdent())||this.acceptDelim("*")?this.finish(t):(this.restoreAtMark(e),null)}_parseNamespacePrefix(){const e=this.mark(),t=this.createNode(ee.NamespacePrefix);return!t.addChild(this._parseIdent())&&this.acceptDelim("*"),this.acceptDelim("|")?this.finish(t):(this.restoreAtMark(e),null)}_parseAttrib(){if(!this.peek(o.BracketL))return null;const e=this.create(dt);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(o.BracketR)?this.finish(e):this.finish(e,cr.RightSquareBracketExpected)):this.finish(e,cr.IdentifierExpected)}_parsePseudo(){const e=this._tryParsePseudoIdentifier();if(e){if(!this.hasWhitespace()&&this.accept(o.ParenthesisL)){const t=()=>{const e=this.create(pe);if(!e.addChild(this._parseSelector(!0)))return null;for(;this.accept(o.Comma)&&e.addChild(this._parseSelector(!0)););return this.peek(o.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,cr.SelectorExpected);if(!this.accept(o.ParenthesisR))return this.finish(e,cr.RightParenthesisExpected)}return this.finish(e)}return null}_tryParsePseudoIdentifier(){if(!this.peek(o.Colon))return null;const e=this.mark(),t=this.createNode(ee.PseudoSelector);return this.consumeToken(),this.hasWhitespace()?(this.restoreAtMark(e),null):(this.accept(o.Colon),this.hasWhitespace()||!t.addChild(this._parseIdent())?this.finish(t,cr.IdentifierExpected):this.finish(t))}_tryParsePrio(){const e=this.mark(),t=this._parsePrio();return t||(this.restoreAtMark(e),null)}_parsePrio(){if(!this.peek(o.Exclamation))return null;const e=this.createNode(ee.Prio);return this.accept(o.Exclamation)&&this.acceptIdent("important")?this.finish(e):null}_parseExpr(e=!1){const t=this.create(lt);if(!t.addChild(this._parseBinaryExpr()))return null;for(;;){if(this.peek(o.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;const e=this.create(fe);return this.acceptUnicodeRange()?this.finish(e):null}_parseNamedLine(){if(!this.peek(o.BracketL))return null;const e=this.createNode(ee.GridLine);for(this.consumeToken();e.addChild(this._parseIdent()););return this.accept(o.BracketR)?this.finish(e):this.finish(e,cr.RightSquareBracketExpected)}_parseBinaryExpr(e,t){let n=this.create(ct);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,cr.TermExpected);n=this.finish(n);const i=this._parseOperator();return i&&(n=this._parseBinaryExpr(n,i)),this.finish(n)}_parseTerm(){let e=this.create(ht);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(o.ParenthesisL))return null;const e=this.create(pe);return this.consumeToken(),e.addChild(this._parseExpr()),this.accept(o.ParenthesisR)?this.finish(e):this.finish(e,cr.RightParenthesisExpected)}_parseNumeric(){if(this.peek(o.Num)||this.peek(o.Percentage)||this.peek(o.Resolution)||this.peek(o.Length)||this.peek(o.EMS)||this.peek(o.EXS)||this.peek(o.Angle)||this.peek(o.Time)||this.peek(o.Dimension)||this.peek(o.ContainerQueryLength)||this.peek(o.Freq)){const e=this.create(bt);return this.consumeToken(),this.finish(e)}return null}_parseStringLiteral(){if(!this.peek(o.String)&&!this.peek(o.BadString))return null;const e=this.createNode(ee.StringLiteral);return this.consumeToken(),this.finish(e)}_parseURILiteral(){if(!this.peekRegExp(o.Ident,/^url(-prefix)?$/i))return null;const e=this.mark(),t=this.createNode(ee.URILiteral);return this.accept(o.Ident),this.hasWhitespace()||!this.peek(o.ParenthesisL)?(this.restoreAtMark(e),null):(this.scanner.inURL=!0,this.consumeToken(),t.addChild(this._parseURLArgument()),this.scanner.inURL=!1,this.accept(o.ParenthesisR)?this.finish(t):this.finish(t,cr.RightParenthesisExpected))}_parseURLArgument(){const e=this.create(pe);return this.accept(o.String)||this.accept(o.BadString)||this.acceptUnquotedString()?this.finish(e):null}_parseIdent(e){if(!this.peek(o.Ident))return null;const t=this.create(ge);return e&&(t.referenceTypes=e),t.isCustomProperty=this.peekRegExp(o.Ident,/^--/),this.consumeToken(),this.finish(t)}_parseFunction(){const e=this.mark(),t=this.create(Ie);if(!t.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(o.ParenthesisL))return this.restoreAtMark(e),null;if(t.getArguments().addChild(this._parseFunctionArgument()))for(;this.accept(o.Comma)&&!this.peek(o.ParenthesisR);)t.getArguments().addChild(this._parseFunctionArgument())||this.markError(t,cr.ExpressionExpected);return this.accept(o.ParenthesisR)?this.finish(t):this.finish(t,cr.RightParenthesisExpected)}_parseFunctionIdentifier(){if(!this.peek(o.Ident))return null;const e=this.create(ge);if(e.referenceTypes=[ne.Function],this.acceptIdent("progid")){if(this.accept(o.Colon))for(;this.accept(o.Ident)&&this.acceptDelim("."););return this.finish(e)}return this.consumeToken(),this.finish(e)}_parseFunctionArgument(){const e=this.create(Ne);return e.setValue(this._parseExpr(!0))?this.finish(e):null}_parseHexColor(){if(this.peekRegExp(o.Hash,/^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/g)){const e=this.create(ut);return this.consumeToken(),this.finish(e)}return null}};function ls(e,t){return-1!==e.indexOf(t)}function cs(...e){const t=[];for(const n of e)for(const e of n)ls(t,e)||t.push(e);return t}var hs,ds=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){const n=e+t,i=function(e,t){let n=0,i=e.length;if(0===i)return 0;for(;n<i;){let r=Math.floor((n+i)/2);t(e[r])?i=r:n=r+1}return n}(this.children,(e=>e.offset>n));if(0===i)return this;const r=this.children[i-1];return r.offset<=e&&r.offset+r.length>=e+t?r.findInScope(e,t):this}addSymbol(e){this.symbols.push(e)}getSymbol(e,t){for(let n=0;n<this.symbols.length;n++){const i=this.symbols[n];if(i.name===e&&i.type===t)return i}return null}getSymbols(){return this.symbols}},us=class extends ds{constructor(){super(0,Number.MAX_VALUE)}},ps=class{constructor(e,t,n,i){this.name=e,this.value=t,this.node=n,this.type=i}},ms=class{constructor(e){this.scope=e}addSymbol(e,t,n,i){if(-1!==e.offset){const r=this.scope.findScope(e.offset,e.length);r&&r.addSymbol(new ps(t,n,e,i))}}addScope(e){if(-1!==e.offset){const t=this.scope.findScope(e.offset,e.length);if(t&&(t.offset!==e.offset||t.length!==e.length)){const n=new ds(e.offset,e.length);return t.addChild(n),n}return t}return null}addSymbolToChildScope(e,t,n,i,r){if(e&&-1!==e.offset){const s=this.addScope(e);s&&s.addSymbol(new ps(n,i,t,r))}}visitNode(e){switch(e.type){case ee.Keyframe:return this.addSymbol(e,e.getName(),void 0,ne.Keyframe),!0;case ee.CustomPropertyDeclaration:return this.visitCustomPropertyDeclarationNode(e);case ee.VariableDeclaration:return this.visitVariableDeclarationNode(e);case ee.Ruleset:return this.visitRuleSet(e);case ee.MixinDeclaration:return this.addSymbol(e,e.getName(),void 0,ne.Mixin),!0;case ee.FunctionDeclaration:return this.addSymbol(e,e.getName(),void 0,ne.Function),!0;case ee.FunctionParameter:return this.visitFunctionParameterNode(e);case ee.Declarations:return this.addScope(e),!0;case ee.For:const t=e,n=t.getDeclarations();return n&&t.variable&&this.addSymbolToChildScope(n,t.variable,t.variable.getName(),void 0,ne.Variable),!0;case ee.Each:{const t=e,n=t.getDeclarations();if(n){const e=t.getVariables().getChildren();for(const t of e)this.addSymbolToChildScope(n,t,t.getName(),void 0,ne.Variable)}return!0}}return!0}visitRuleSet(e){const t=this.scope.findScope(e.offset,e.length);if(t)for(const n of e.getSelectors().getChildren())n instanceof _e&&1===n.getChildren().length&&t.addSymbol(new ps(n.getChild(0).getText(),void 0,n,ne.Rule));return!0}visitVariableDeclarationNode(e){const t=e.getValue()?e.getValue().getText():void 0;return this.addSymbol(e,e.getName(),t,ne.Variable),!0}visitFunctionParameterNode(e){const t=e.getParent().getDeclarations();if(t){const n=e.getDefaultValue(),i=n?n.getText():void 0;this.addSymbolToChildScope(t,e,e.getName(),i,ne.Variable)}return!0}visitCustomPropertyDeclarationNode(e){const t=e.getValue()?e.getValue().getText():"";return this.addCSSVariable(e.getProperty(),e.getProperty().getName(),t,ne.Variable),!0}addCSSVariable(e,t,n,i){-1!==e.offset&&this.scope.addSymbol(new ps(t,n,e,i))}},fs=class{constructor(e){this.global=new us,e.acceptVisitor(new ms(this.global))}findSymbolsAtOffset(e,t){let n=this.global.findScope(e,0);const i=[],r={};for(;n;){const e=n.getSymbols();for(let n=0;n<e.length;n++){const s=e[n];s.type!==t||r[s.name]||(i.push(s),r[s.name]=!0)}n=n.parent}return i}internalFindSymbol(e,t){let n=e;if(e.parent instanceof Te&&e.parent.getParent()instanceof ye&&(n=e.parent.getParent().getDeclarations()),e.parent instanceof Ne&&e.parent.getParent()instanceof Ie){const t=e.parent.getParent().getIdentifier();if(t){const e=this.internalFindSymbol(t,[ne.Function]);e&&(n=e.node.getDeclarations())}}if(!n)return null;const i=e.getText();let r=this.global.findScope(n.offset,n.length);for(;r;){for(let e=0;e<t.length;e++){const n=t[e],s=r.getSymbol(i,n);if(s)return s}r=r.parent}return null}evaluateReferenceTypes(e){if(e instanceof ge){const t=e.referenceTypes;if(t)return t;{if(e.isCustomProperty)return[ne.Variable];const t=function(e){const t=e.findParent(ee.Declaration),n=t&&t.getValue();return n&&n.encloses(e)?t:null}(e);if(t){const n=t.getNonPrefixedPropertyName();if(("animation"===n||"animation-name"===n)&&t.getValue()&&t.getValue().offset===e.offset)return[ne.Keyframe]}}}else if(e instanceof wt)return[ne.Variable];return e.findAParent(ee.Selector,ee.ExtendsReference)?[ne.Rule]:null}findSymbolFromNode(e){if(!e)return null;for(;e.type===ee.Interpolation;)e=e.getParent();const t=this.evaluateReferenceTypes(e);return t?this.internalFindSymbol(e,t):null}matchesSymbol(e,t){if(!e)return!1;for(;e.type===ee.Interpolation;)e=e.getParent();if(!e.matches(t.name))return!1;const n=this.evaluateReferenceTypes(e);if(!n||-1===n.indexOf(t.type))return!1;return this.internalFindSymbol(e,n)===t}findSymbol(e,t,n){let i=this.global.findScope(n);for(;i;){const n=i.getSymbol(e,t);if(n)return n;i=i.parent}return null}};(()=>{var e={470:e=>{function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,i="",r=0,s=-1,o=0,a=0;a<=e.length;++a){if(a<e.length)n=e.charCodeAt(a);else{if(47===n)break;n=47}if(47===n){if(s===a-1||1===o);else if(s!==a-1&&2===o){if(i.length<2||2!==r||46!==i.charCodeAt(i.length-1)||46!==i.charCodeAt(i.length-2))if(i.length>2){var l=i.lastIndexOf("/");if(l!==i.length-1){-1===l?(i="",r=0):r=(i=i.slice(0,l)).length-1-i.lastIndexOf("/"),s=a,o=0;continue}}else if(2===i.length||1===i.length){i="",r=0,s=a,o=0;continue}t&&(i.length>0?i+="/..":i="..",r=2)}else i.length>0?i+="/"+e.slice(s+1,a):i=e.slice(s+1,a),r=a-s-1;s=a,o=0}else 46===n&&-1!==o?++o:o=-1}return i}var i={resolve:function(){for(var e,i="",r=!1,s=arguments.length-1;s>=-1&&!r;s--){var o;s>=0?o=arguments[s]:(void 0===e&&(e=process.cwd()),o=e),t(o),0!==o.length&&(i=o+"/"+i,r=47===o.charCodeAt(0))}return i=n(i,!r),r?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(e){if(t(e),0===e.length)return".";var i=47===e.charCodeAt(0),r=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!i)).length||i||(e="."),e.length>0&&r&&(e+="/"),i?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n<arguments.length;++n){var r=arguments[n];t(r),r.length>0&&(void 0===e?e=r:e+="/"+r)}return void 0===e?".":i.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n)return"";if((e=i.resolve(e))===(n=i.resolve(n)))return"";for(var r=1;r<e.length&&47===e.charCodeAt(r);++r);for(var s=e.length,o=s-r,a=1;a<n.length&&47===n.charCodeAt(a);++a);for(var l=n.length-a,c=o<l?o:l,h=-1,d=0;d<=c;++d){if(d===c){if(l>c){if(47===n.charCodeAt(a+d))return n.slice(a+d+1);if(0===d)return n.slice(a+d)}else o>c&&(47===e.charCodeAt(r+d)?h=d:0===d&&(h=0));break}var u=e.charCodeAt(r+d);if(u!==n.charCodeAt(a+d))break;47===u&&(h=d)}var p="";for(d=r+h+1;d<=s;++d)d!==s&&47!==e.charCodeAt(d)||(0===p.length?p+="..":p+="/..");return p.length>0?p+n.slice(a+h):(a+=h,47===n.charCodeAt(a)&&++a,n.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),i=47===n,r=-1,s=!0,o=e.length-1;o>=1;--o)if(47===(n=e.charCodeAt(o))){if(!s){r=o;break}}else s=!1;return-1===r?i?"/":".":i&&1===r?"//":e.slice(0,r)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');t(e);var i,r=0,s=-1,o=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var a=n.length-1,l=-1;for(i=e.length-1;i>=0;--i){var c=e.charCodeAt(i);if(47===c){if(!o){r=i+1;break}}else-1===l&&(o=!1,l=i+1),a>=0&&(c===n.charCodeAt(a)?-1==--a&&(s=i):(a=-1,s=l))}return r===s?s=l:-1===s&&(s=e.length),e.slice(r,s)}for(i=e.length-1;i>=0;--i)if(47===e.charCodeAt(i)){if(!o){r=i+1;break}}else-1===s&&(o=!1,s=i+1);return-1===s?"":e.slice(r,s)},extname:function(e){t(e);for(var n=-1,i=0,r=-1,s=!0,o=0,a=e.length-1;a>=0;--a){var l=e.charCodeAt(a);if(47!==l)-1===r&&(s=!1,r=a+1),46===l?-1===n?n=a:1!==o&&(o=1):-1!==n&&(o=-1);else if(!s){i=a+1;break}}return-1===n||-1===r||0===o||1===o&&n===r-1&&n===i+1?"":e.slice(n,r)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,i=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+i:n+"/"+i:i}(0,e)},parse:function(e){t(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var i,r=e.charCodeAt(0),s=47===r;s?(n.root="/",i=1):i=0;for(var o=-1,a=0,l=-1,c=!0,h=e.length-1,d=0;h>=i;--h)if(47!==(r=e.charCodeAt(h)))-1===l&&(c=!1,l=h+1),46===r?-1===o?o=h:1!==d&&(d=1):-1!==o&&(d=-1);else if(!c){a=h+1;break}return-1===o||-1===l||0===d||1===d&&o===l-1&&o===a+1?-1!==l&&(n.base=n.name=0===a&&s?e.slice(1,l):e.slice(a,l)):(0===a&&s?(n.name=e.slice(1,o),n.base=e.slice(1,l)):(n.name=e.slice(a,o),n.base=e.slice(a,l)),n.ext=e.slice(o,l)),a>0?n.dir=e.slice(0,a-1):s&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};i.posix=i,e.exports=i}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var s=t[i]={exports:{}};return e[i](s,s.exports,n),s.exports}n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};(()=>{let e;if(n.r(i),n.d(i,{URI:()=>h,Utils:()=>S}),"object"==typeof process)e="win32"===process.platform;else if("object"==typeof navigator){let t=navigator.userAgent;e=t.indexOf("Windows")>=0}const t=/^\w[\w\d+.-]*$/,r=/^\//,s=/^\/\//;function o(e,n){if(!e.scheme&&n)throw new 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 new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!r.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(s.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}const a="",l="/",c=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class h{static isUri(e){return e instanceof h||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString}scheme;authority;path;query;fragment;constructor(e,t,n,i,r,s=!1){"object"==typeof e?(this.scheme=e.scheme||a,this.authority=e.authority||a,this.path=e.path||a,this.query=e.query||a,this.fragment=e.fragment||a):(this.scheme=function(e,t){return e||t?e:"file"}(e,s),this.authority=t||a,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==l&&(t=l+t):t=l}return t}(this.scheme,n||a),this.query=i||a,this.fragment=r||a,o(this,s))}get fsPath(){return g(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:i,query:r,fragment:s}=e;return void 0===t?t=this.scheme:null===t&&(t=a),void 0===n?n=this.authority:null===n&&(n=a),void 0===i?i=this.path:null===i&&(i=a),void 0===r?r=this.query:null===r&&(r=a),void 0===s?s=this.fragment:null===s&&(s=a),t===this.scheme&&n===this.authority&&i===this.path&&r===this.query&&s===this.fragment?this:new u(t,n,i,r,s)}static parse(e,t=!1){const n=c.exec(e);return n?new u(n[2]||a,w(n[4]||a),w(n[5]||a),w(n[7]||a),w(n[9]||a),t):new u(a,a,a,a,a)}static file(t){let n=a;if(e&&(t=t.replace(/\\/g,l)),t[0]===l&&t[1]===l){const e=t.indexOf(l,2);-1===e?(n=t.substring(2),t=l):(n=t.substring(2,e),t=t.substring(e)||l)}return new u("file",n,t,a,a)}static from(e){const t=new u(e.scheme,e.authority,e.path,e.query,e.fragment);return o(t,!0),t}toString(e=!1){return b(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof h)return e;{const t=new u(e);return t._formatted=e.external,t._fsPath=e._sep===d?e.fsPath:null,t}}return e}}const d=e?1:void 0;class u extends h{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=g(this,!1)),this._fsPath}toString(e=!1){return e?b(this,!0):(this._formatted||(this._formatted=b(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=d),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}}const p={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 m(e,t,n){let i,r=-1;for(let s=0;s<e.length;s++){const o=e.charCodeAt(s);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o||n&&91===o||n&&93===o||n&&58===o)-1!==r&&(i+=encodeURIComponent(e.substring(r,s)),r=-1),void 0!==i&&(i+=e.charAt(s));else{void 0===i&&(i=e.substr(0,s));const t=p[o];void 0!==t?(-1!==r&&(i+=encodeURIComponent(e.substring(r,s)),r=-1),i+=t):-1===r&&(r=s)}}return-1!==r&&(i+=encodeURIComponent(e.substring(r))),void 0!==i?i:e}function f(e){let t;for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);35===i||63===i?(void 0===t&&(t=e.substr(0,n)),t+=p[i]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function g(t,n){let i;return i=t.authority&&t.path.length>1&&"file"===t.scheme?`//${t.authority}${t.path}`:47===t.path.charCodeAt(0)&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&58===t.path.charCodeAt(2)?n?t.path.substr(1):t.path[1].toLowerCase()+t.path.substr(2):t.path,e&&(i=i.replace(/\//g,"\\")),i}function b(e,t){const n=t?f:m;let i="",{scheme:r,authority:s,path:o,query:a,fragment:c}=e;if(r&&(i+=r,i+=":"),(s||"file"===r)&&(i+=l,i+=l),s){let e=s.indexOf("@");if(-1!==e){const t=s.substr(0,e);s=s.substr(e+1),e=t.lastIndexOf(":"),-1===e?i+=n(t,!1,!1):(i+=n(t.substr(0,e),!1,!1),i+=":",i+=n(t.substr(e+1),!1,!0)),i+="@"}s=s.toLowerCase(),e=s.lastIndexOf(":"),-1===e?i+=n(s,!1,!0):(i+=n(s.substr(0,e),!1,!0),i+=s.substr(e))}if(o){if(o.length>=3&&47===o.charCodeAt(0)&&58===o.charCodeAt(2)){const e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&58===o.charCodeAt(1)){const e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}i+=n(o,!0,!1)}return a&&(i+="?",i+=n(a,!1,!1)),c&&(i+="#",i+=t?c:m(c,!1,!1)),i}function v(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+v(e.substr(3)):e}}const y=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function w(e){return e.match(y)?e.replace(y,(e=>v(e))):e}var _=n(470);const k=_.posix||_,C="/";var S,x;(x=S||(S={})).joinPath=function(e,...t){return e.with({path:k.join(e.path,...t)})},x.resolvePath=function(e,...t){let n=e.path,i=!1;n[0]!==C&&(n=C+n,i=!0);let r=k.resolve(n,...t);return i&&r[0]===C&&!e.authority&&(r=r.substring(1)),e.with({path:r})},x.dirname=function(e){if(0===e.path.length||e.path===C)return e;let t=k.dirname(e.path);return 1===t.length&&46===t.charCodeAt(0)&&(t=""),e.with({path:t})},x.basename=function(e){return k.basename(e.path)},x.extname=function(e){return k.extname(e.path)}})(),hs=i})();var{URI:gs,Utils:bs}=hs;function vs(e){return bs.dirname(gs.parse(e)).toString(!0)}function ys(e,...t){return bs.joinPath(gs.parse(e),...t).toString(!0)}var ws=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){const n={items:[],isIncomplete:!1};for(const i of this.literalCompletions){const r=i.uriValue,s=ks(r);if("."===s||".."===s)n.isIncomplete=!0;else{const s=await this.providePathSuggestions(r,i.position,i.range,e,t);for(let e of s)n.items.push(e)}}for(const i of this.importCompletions){const r=i.pathValue,s=ks(r);if("."===s||".."===s)n.isIncomplete=!0;else{let s=await this.providePathSuggestions(r,i.position,i.range,e,t);"scss"===e.languageId&&s.forEach((e=>{se(e.label,"_")&&oe(e.label,".scss")&&(e.textEdit?e.textEdit.newText=e.label.slice(1,-5):e.label=e.label.slice(1,-5))}));for(let e of s)n.items.push(e)}}return n}async providePathSuggestions(e,t,n,i,r){const s=ks(e),o=se(e,"'")||se(e,'"'),a=o?s.slice(0,t.character-(n.start.character+1)):s.slice(0,t.character-n.start.character),l=i.uri,c=function(e,t,n){let i;const r=e.lastIndexOf("/");if(-1===r)i=n;else{const e=t.slice(r+1),s=xs(n.end,-e.length),o=e.indexOf(" ");let a;a=-1!==o?xs(s,o):n.end,i=qt.create(s,a)}return i}(a,s,o?function(e,t,n){const i=xs(e.start,t),r=xs(e.end,n);return qt.create(i,r)}(n,1,-1):n),h=a.substring(0,a.lastIndexOf("/")+1);let d=r.resolveReference(h||".",l);if(d)try{const e=[],t=await this.readDirectory(d);for(const[n,i]of t)n.charCodeAt(0)===_s||i!==fr.Directory&&ys(d,n)===l||e.push(Cs(n,i===fr.Directory,c));return e}catch(u){}return[]}},_s=".".charCodeAt(0);function ks(e){return se(e,"'")||se(e,'"')?e.slice(1,-1):e}function Cs(e,t,n){return t?{label:Ss(e+="/"),kind:jn.Folder,textEdit:vn.replace(n,Ss(e)),command:{title:"Suggest",command:"editor.action.triggerSuggest"}}:{label:Ss(e),kind:jn.File,textEdit:vn.replace(n,Ss(e))}}function Ss(e){return e.replace(/(\s|\(|\)|,|"|')/g,"\\$1")}function xs(e,t){return Ut.create(e.line,e.character+t)}var Es,Fs,Ls=Hn.Snippet,Is={title:"Suggest",command:"editor.action.triggerSuggest"};(Fs=Es||(Es={})).Enums=" ",Fs.Normal="d",Fs.VendorPrefixed="x",Fs.Term="y",Fs.Variable="z";var Ts=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||(this.symbolContext=new fs(this.styleSheet)),this.symbolContext}setCompletionParticipants(e){this.completionParticipants=e||[]}async doComplete2(e,t,n,i,r=this.defaultSettings){if(!this.lsOptions.fileSystemProvider||!this.lsOptions.fileSystemProvider.readDirectory)return this.doComplete(e,t,n,r);const s=new ws(this.lsOptions.fileSystemProvider.readDirectory),o=this.completionParticipants;this.completionParticipants=[s].concat(o);const a=this.doComplete(e,t,n,r);try{const t=await s.computeCompletions(e,i);return{isIncomplete:a.isIncomplete||t.isIncomplete,itemDefaults:a.itemDefaults,items:t.items.concat(a.items)}}finally{this.completionParticipants=o}}doComplete(e,t,n,i){this.offset=e.offsetAt(t),this.position=t,this.currentWord=function(e,t){let n=t-1;const i=e.getText();for(;n>=0&&-1===' \t\n\r":{[()]},*>+'.indexOf(i.charAt(n));)n--;return i.substring(n+1,t)}(e,this.offset),this.defaultReplaceRange=qt.create(Ut.create(this.position.line,this.position.character-this.currentWord.length),this.position),this.textDocument=e,this.styleSheet=n,this.documentSettings=i;try{const e={isIncomplete:!1,itemDefaults:{editRange:{start:{line:t.line,character:t.character-this.currentWord.length},end:t}},items:[]};this.nodePath=he(this.styleSheet,this.offset);for(let t=this.nodePath.length-1;t>=0;t--){const n=this.nodePath[t];if(n instanceof Fe)this.getCompletionsForDeclarationProperty(n.getParent(),e);else if(n instanceof lt)n.parent instanceof yt?this.getVariableProposals(null,e):this.getCompletionsForExpression(n,e);else if(n instanceof ke){const t=n.findAParent(ee.ExtendsReference,ee.Ruleset);if(t)if(t.type===ee.ExtendsReference)this.getCompletionsForExtendsReference(t,n,e);else{const n=t;this.getCompletionsForSelector(n,n&&n.isNested(),e)}}else if(n instanceof Ne)this.getCompletionsForFunctionArgument(n,n.getParent(),e);else if(n instanceof ve)this.getCompletionsForDeclarations(n,e);else if(n instanceof vt)this.getCompletionsForVariableDeclaration(n,e);else if(n instanceof we)this.getCompletionsForRuleSet(n,e);else if(n instanceof yt)this.getCompletionsForInterpolation(n,e);else if(n instanceof ze)this.getCompletionsForFunctionDeclaration(n,e);else if(n instanceof St)this.getCompletionsForMixinReference(n,e);else if(n instanceof Ie)this.getCompletionsForFunctionArgument(null,n,e);else if(n instanceof Je)this.getCompletionsForSupports(n,e);else if(n instanceof st)this.getCompletionsForSupportsCondition(n,e);else if(n instanceof _t)this.getCompletionsForExtendsReference(n,null,e);else if(n.type===ee.URILiteral)this.getCompletionForUriLiteralValue(n,e);else if(null===n.parent)this.getCompletionForTopLevel(e);else{if(n.type!==ee.StringLiteral||!this.isImportPathParent(n.parent.type))continue;this.getCompletionForImportPath(n,e)}if(e.items.length>0||this.offset>n.offset)return this.finalize(e)}return this.getCompletionsForStylesheet(e),0===e.items.length&&this.variablePrefix&&0===this.currentWord.indexOf(this.variablePrefix)&&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===ee.Import}finalize(e){return e}findInNodePath(...e){for(let t=this.nodePath.length-1;t>=0;t--){const n=this.nodePath[t];if(-1!==e.indexOf(n.type))return n}return null}getCompletionsForDeclarationProperty(e,t){return this.getPropertyProposals(e,t)}getPropertyProposals(e,t){const n=this.isTriggerPropertyValueCompletionEnabled,i=this.isCompletePropertyWithSemicolonEnabled;return this.cssDataManager.getProperties().forEach((r=>{let s,o,a=!1;e?(s=this.getCompletionRange(e.getProperty()),o=r.name,os(e.colonPosition)||(o+=": ",a=!0)):(s=this.getCompletionRange(null),o=r.name+": ",a=!0),!e&&i&&(o+="$0;"),e&&!e.semicolonPosition&&i&&this.offset>=this.textDocument.offsetAt(s.end)&&(o+="$0;");const l={label:r.name,documentation:Sr(r,this.doesSupportMarkdown()),tags:Ns(r)?[Qn.Deprecated]:[],textEdit:vn.replace(s,o),insertTextFormat:Hn.Snippet,kind:jn.Property};r.restrictions||(a=!1),n&&a&&(l.command=Is);const c=(255-("number"===typeof r.relevance?Math.min(Math.max(r.relevance,0),99):50)).toString(16),h=se(r.name,"-")?Es.VendorPrefixed:Es.Normal;l.sortText=h+"_"+c,t.items.push(l)})),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){const n=e.getFullPropertyName(),i=this.cssDataManager.getProperty(n);let r=e.getValue()||null;for(;r&&r.hasChildren();)r=r.findChildAtOffset(this.offset,!1);if(this.completionParticipants.forEach((e=>{e.onCssPropertyValue&&e.onCssPropertyValue({propertyName:n,propertyValue:this.currentWord,range:this.getCompletionRange(r)})})),i){if(i.restrictions)for(const e of i.restrictions)switch(e){case"color":this.getColorProposals(i,r,t);break;case"position":this.getPositionProposals(i,r,t);break;case"repeat":this.getRepeatStyleProposals(i,r,t);break;case"line-style":this.getLineStyleProposals(i,r,t);break;case"line-width":this.getLineWidthProposals(i,r,t);break;case"geometry-box":this.getGeometryBoxProposals(i,r,t);break;case"box":this.getBoxProposals(i,r,t);break;case"image":this.getImageProposals(i,r,t);break;case"timing-function":this.getTimingFunctionProposals(i,r,t);break;case"shape":this.getBasicShapeProposals(i,r,t)}this.getValueEnumProposals(i,r,t),this.getCSSWideKeywordProposals(i,r,t),this.getUnitProposals(i,r,t)}else{const n=function(e,t){const n=t.getFullPropertyName(),i=new Rs;function r(e){return(e instanceof ge||e instanceof bt||e instanceof ut)&&i.add(e.getText()),!0}function s(e){const t=e.getFullPropertyName();return n===t}function o(e){if(e instanceof xe&&e!==t&&s(e)){const t=e.getValue();t&&t.accept(r)}return!0}return e.accept(o),i}(this.styleSheet,e);for(const e of n.getEntries())t.items.push({label:e,textEdit:vn.replace(this.getCompletionRange(r),e),kind:jn.Value})}return this.getVariableProposals(r,t),this.getTermProposals(i,r,t),t}getValueEnumProposals(e,t,n){if(e.values)for(const i of e.values){let r,s=i.name;if(oe(s,")")){const e=s.lastIndexOf("(");-1!==e&&(s=s.substring(0,e+1)+"$1"+s.substring(e+1),r=Ls)}let o=Es.Enums;se(i.name,"-")&&(o+=Es.VendorPrefixed);const a={label:i.name,documentation:Sr(i,this.doesSupportMarkdown()),tags:Ns(e)?[Qn.Deprecated]:[],textEdit:vn.replace(this.getCompletionRange(t),s),sortText:o,kind:jn.Value,insertTextFormat:r};n.items.push(a)}return n}getCSSWideKeywordProposals(e,t,n){for(const i in Jr)n.items.push({label:i,documentation:Jr[i],textEdit:vn.replace(this.getCompletionRange(t),i),kind:jn.Value});for(const i in Yr){const e=Ds(i);n.items.push({label:i,documentation:Yr[i],textEdit:vn.replace(this.getCompletionRange(t),e),kind:jn.Function,insertTextFormat:Ls,command:se(i,"var")?Is:void 0})}return n}getCompletionsForInterpolation(e,t){return this.offset>=e.offset+2&&this.getVariableProposals(null,t),t}getVariableProposals(e,t){const n=this.getSymbolContext().findSymbolsAtOffset(this.offset,ne.Variable);for(const i of n){const n=se(i.name,"--")?`var(${i.name})`:i.name,r={label:i.name,documentation:i.value?ae(i.value):i.value,textEdit:vn.replace(this.getCompletionRange(e),n),kind:jn.Variable,sortText:Es.Variable};if("string"===typeof r.documentation&&Pr(r.documentation)&&(r.kind=jn.Color),i.node.type===ee.FunctionParameter){const e=i.node.getParent();e.type===ee.MixinDeclaration&&(r.detail=Dt("argument from '{0}'",e.getName()))}t.items.push(r)}return t}getVariableProposalsForCSSVarFunction(e){const t=new Rs;this.styleSheet.acceptVisitor(new Ms(t,this.offset));let n=this.getSymbolContext().findSymbolsAtOffset(this.offset,ne.Variable);for(const i of n){if(se(i.name,"--")){const t={label:i.name,documentation:i.value?ae(i.value):i.value,textEdit:vn.replace(this.getCompletionRange(null),i.name),kind:jn.Variable};"string"===typeof t.documentation&&Pr(t.documentation)&&(t.kind=jn.Color),e.items.push(t)}t.remove(i.name)}for(const i of t.getEntries())if(se(i,"--")){const t={label:i,textEdit:vn.replace(this.getCompletionRange(null),i),kind:jn.Variable};e.items.push(t)}return e}getUnitProposals(e,t,n){let i="0";if(this.currentWord.length>0){const e=this.currentWord.match(/^-?\d[\.\d+]*/);e&&(i=e[0],n.isIncomplete=i.length===this.currentWord.length)}else 0===this.currentWord.length&&(n.isIncomplete=!0);if(t&&t.parent&&t.parent.type===ee.Term&&(t=t.getParent()),e.restrictions)for(const r of e.restrictions){const e=ts[r];if(e)for(const r of e){const e=i+r;n.items.push({label:e,textEdit:vn.replace(this.getCompletionRange(t),e),kind:jn.Unit})}}return n}getCompletionRange(e){if(e&&e.offset<=this.offset&&this.offset<=e.end){const t=-1!==e.end?this.textDocument.positionAt(e.end):this.position,n=this.textDocument.positionAt(e.offset);if(n.line===t.line)return qt.create(n,t)}return this.defaultReplaceRange}getColorProposals(e,t,n){for(const r in Rr)n.items.push({label:r,documentation:Rr[r],textEdit:vn.replace(this.getCompletionRange(t),r),kind:jn.Color});for(const r in Ar)n.items.push({label:r,documentation:Ar[r],textEdit:vn.replace(this.getCompletionRange(t),r),kind:jn.Value});const i=new Rs;this.styleSheet.acceptVisitor(new As(i,this.offset));for(const r of i.getEntries())n.items.push({label:r,textEdit:vn.replace(this.getCompletionRange(t),r),kind:jn.Color});for(const r of Tr)n.items.push({label:r.label,detail:r.func,documentation:r.desc,textEdit:vn.replace(this.getCompletionRange(t),r.insertText),insertTextFormat:Ls,kind:jn.Function});return n}getPositionProposals(e,t,n){for(const i in qr)n.items.push({label:i,documentation:qr[i],textEdit:vn.replace(this.getCompletionRange(t),i),kind:jn.Value});return n}getRepeatStyleProposals(e,t,n){for(const i in jr)n.items.push({label:i,documentation:jr[i],textEdit:vn.replace(this.getCompletionRange(t),i),kind:jn.Value});return n}getLineStyleProposals(e,t,n){for(const i in Kr)n.items.push({label:i,documentation:Kr[i],textEdit:vn.replace(this.getCompletionRange(t),i),kind:jn.Value});return n}getLineWidthProposals(e,t,n){for(const i of Hr)n.items.push({label:i,textEdit:vn.replace(this.getCompletionRange(t),i),kind:jn.Value});return n}getGeometryBoxProposals(e,t,n){for(const i in Qr)n.items.push({label:i,documentation:Qr[i],textEdit:vn.replace(this.getCompletionRange(t),i),kind:jn.Value});return n}getBoxProposals(e,t,n){for(const i in Gr)n.items.push({label:i,documentation:Gr[i],textEdit:vn.replace(this.getCompletionRange(t),i),kind:jn.Value});return n}getImageProposals(e,t,n){for(const i in Xr){const e=Ds(i);n.items.push({label:i,documentation:Xr[i],textEdit:vn.replace(this.getCompletionRange(t),e),kind:jn.Function,insertTextFormat:i!==e?Ls:void 0})}return n}getTimingFunctionProposals(e,t,n){for(const i in Zr){const e=Ds(i);n.items.push({label:i,documentation:Zr[i],textEdit:vn.replace(this.getCompletionRange(t),e),kind:jn.Function,insertTextFormat:i!==e?Ls:void 0})}return n}getBasicShapeProposals(e,t,n){for(const i in es){const e=Ds(i);n.items.push({label:i,documentation:es[i],textEdit:vn.replace(this.getCompletionRange(t),e),kind:jn.Function,insertTextFormat:i!==e?Ls:void 0})}return n}getCompletionsForStylesheet(e){const t=this.styleSheet.findFirstChildBeforeOffset(this.offset);return t?t instanceof we?this.getCompletionsForRuleSet(t,e):t instanceof Je?this.getCompletionsForSupports(t,e):e:this.getCompletionForTopLevel(e)}getCompletionForTopLevel(e){return this.cssDataManager.getAtDirectives().forEach((t=>{e.items.push({label:t.name,textEdit:vn.replace(this.getCompletionRange(null),t.name),documentation:Sr(t,this.doesSupportMarkdown()),tags:Ns(t)?[Qn.Deprecated]:[],kind:jn.Keyword})})),this.getCompletionsForSelector(null,!1,e),e}getCompletionsForRuleSet(e,t){const n=e.getDeclarations();if(n&&n.endsWith("}")&&this.offset>=n.end)return this.getCompletionForTopLevel(t);return!n||this.offset<=n.offset?this.getCompletionsForSelector(e,e.isNested(),t):this.getCompletionsForDeclarations(e.getDeclarations(),t)}getCompletionsForSelector(e,t,n){const i=this.findInNodePath(ee.PseudoSelector,ee.IdentifierSelector,ee.ClassSelector,ee.ElementNameSelector);!i&&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=qt.create(Ut.create(this.position.line,this.position.character-this.currentWord.length),this.position));this.cssDataManager.getPseudoClasses().forEach((e=>{const t=Ds(e.name),r={label:e.name,textEdit:vn.replace(this.getCompletionRange(i),t),documentation:Sr(e,this.doesSupportMarkdown()),tags:Ns(e)?[Qn.Deprecated]:[],kind:jn.Function,insertTextFormat:e.name!==t?Ls:void 0};se(e.name,":-")&&(r.sortText=Es.VendorPrefixed),n.items.push(r)}));if(this.cssDataManager.getPseudoElements().forEach((e=>{const t=Ds(e.name),r={label:e.name,textEdit:vn.replace(this.getCompletionRange(i),t),documentation:Sr(e,this.doesSupportMarkdown()),tags:Ns(e)?[Qn.Deprecated]:[],kind:jn.Function,insertTextFormat:e.name!==t?Ls:void 0};se(e.name,"::-")&&(r.sortText=Es.VendorPrefixed),n.items.push(r)})),!t){for(const e of ns)n.items.push({label:e,textEdit:vn.replace(this.getCompletionRange(i),e),kind:jn.Keyword});for(const e of is)n.items.push({label:e,textEdit:vn.replace(this.getCompletionRange(i),e),kind:jn.Keyword})}const r={};r[this.currentWord]=!0;const s=this.textDocument.getText();if(this.styleSheet.accept((e=>{if(e.type===ee.SimpleSelector&&e.length>0){const t=s.substr(e.offset,e.length);return"."!==t.charAt(0)||r[t]||(r[t]=!0,n.items.push({label:t,textEdit:vn.replace(this.getCompletionRange(i),t),kind:jn.Keyword})),!1}return!0})),e&&e.isNested()){const t=e.getSelectors().findFirstChildBeforeOffset(this.offset);t&&0===e.getSelectors().getChildren().indexOf(t)&&this.getPropertyProposals(null,n)}return n}getCompletionsForDeclarations(e,t){if(!e||this.offset===e.offset)return t;const n=e.findFirstChildBeforeOffset(this.offset);if(!n)return this.getCompletionsForDeclarationProperty(null,t);if(n instanceof Ce){const e=n;if(!os(e.colonPosition)||this.offset<=e.colonPosition)return this.getCompletionsForDeclarationProperty(e,t);if(os(e.semicolonPosition)&&e.semicolonPosition<this.offset)return this.offset===e.semicolonPosition+1?t:this.getCompletionsForDeclarationProperty(null,t);if(e instanceof xe)return this.getCompletionsForDeclarationValue(e,t)}else n instanceof _t?this.getCompletionsForExtendsReference(n,null,t):(this.currentWord&&"@"===this.currentWord[0]||n instanceof we)&&this.getCompletionsForDeclarationProperty(null,t);return t}getCompletionsForVariableDeclaration(e,t){return this.offset&&os(e.colonPosition)&&this.offset>e.colonPosition&&this.getVariableProposals(e.getValue()||null,t),t}getCompletionsForExpression(e,t){const n=e.getParent();if(n instanceof Ne)return this.getCompletionsForFunctionArgument(n,n.getParent(),t),t;const i=e.findParent(ee.Declaration);if(!i)return this.getTermProposals(void 0,null,t),t;const r=e.findChildAtOffset(this.offset,!0);return r?r instanceof bt||r instanceof ge?this.getCompletionsForDeclarationValue(i,t):t:this.getCompletionsForDeclarationValue(i,t)}getCompletionsForFunctionArgument(e,t,n){const i=t.getIdentifier();return i&&i.matches("var")&&(t.getArguments().hasChildren()&&t.getArguments().getChild(0)!==e||this.getVariableProposalsForCSSVarFunction(n)),n}getCompletionsForFunctionDeclaration(e,t){const n=e.getDeclarations();return n&&this.offset>n.offset&&this.offset<n.end&&this.getTermProposals(void 0,null,t),t}getCompletionsForMixinReference(e,t){const n=this.getSymbolContext().findSymbolsAtOffset(this.offset,ne.Mixin);for(const r of n)r.node instanceof xt&&t.items.push(this.makeTermProposal(r,r.node.getParameters(),null));const i=e.getIdentifier()||null;return this.completionParticipants.forEach((e=>{e.onCssMixinReference&&e.onCssMixinReference({mixinName:this.currentWord,range:this.getCompletionRange(i)})})),t}getTermProposals(e,t,n){const i=this.getSymbolContext().findSymbolsAtOffset(this.offset,ne.Function);for(const r of i)r.node instanceof ze&&n.items.push(this.makeTermProposal(r,r.node.getParameters(),t));return n}makeTermProposal(e,t,n){e.node;const i=t.getChildren().map((e=>e instanceof Te?e.getName():e.getText())),r=e.name+"("+i.map(((e,t)=>"${"+(t+1)+":"+e+"}")).join(", ")+")";return{label:e.name,detail:e.name+"("+i.join(", ")+")",textEdit:vn.replace(this.getCompletionRange(n),r),insertTextFormat:Ls,kind:jn.Function,sortText:Es.Term}}getCompletionsForSupportsCondition(e,t){const n=e.findFirstChildBeforeOffset(this.offset);if(n){if(n instanceof xe)return!os(n.colonPosition)||this.offset<=n.colonPosition?this.getCompletionsForDeclarationProperty(n,t):this.getCompletionsForDeclarationValue(n,t);if(n instanceof st)return this.getCompletionsForSupportsCondition(n,t)}return os(e.lParent)&&this.offset>e.lParent&&(!os(e.rParent)||this.offset<=e.rParent)?this.getCompletionsForDeclarationProperty(null,t):t}getCompletionsForSupports(e,t){const n=e.getDeclarations();if(!n||this.offset<=n.offset){const n=e.findFirstChildBeforeOffset(this.offset);return n instanceof st?this.getCompletionsForSupportsCondition(n,t):t}return this.getCompletionForTopLevel(t)}getCompletionsForExtendsReference(e,t,n){return n}getCompletionForUriLiteralValue(e,t){let n,i,r;if(e.hasChildren()){const t=e.getChild(0);n=t.getText(),i=this.position,r=this.getCompletionRange(t)}else{n="",i=this.position;const t=this.textDocument.positionAt(e.offset+4);r=qt.create(t,t)}return this.completionParticipants.forEach((e=>{e.onCssURILiteralValue&&e.onCssURILiteralValue({uriValue:n,position:i,range:r})})),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){const n=this.textDocument.getText();return e>=0&&e<n.length&&n.charAt(e)===t}doesSupportMarkdown(){if(!os(this.supportsMarkdown)){if(!os(this.lsOptions.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;const e=this.lsOptions.clientCapabilities.textDocument?.completion?.completionItem?.documentationFormat;this.supportsMarkdown=Array.isArray(e)&&-1!==e.indexOf(Un.Markdown)}return this.supportsMarkdown}};function Ns(e){return!(!e.status||"nonstandard"!==e.status&&"obsolete"!==e.status)}var Rs=class{constructor(){this.entries={}}add(e){this.entries[e]=!0}remove(e){delete this.entries[e]}getEntries(){return Object.keys(this.entries)}};function Ds(e){return e.replace(/\(\)$/,"($1)")}var As=class{constructor(e,t){this.entries=e,this.currentOffset=t}visitNode(e){return(e instanceof ut||e instanceof Ie&&function(e){const t=e.getName();return!!t&&Nr.test(t)}(e))&&(this.currentOffset<e.offset||e.end<this.currentOffset)&&this.entries.add(e.getText()),!0}},Ms=class{constructor(e,t){this.entries=e,this.currentOffset=t}visitNode(e){return e instanceof ge&&e.isCustomProperty&&(this.currentOffset<e.offset||e.end<this.currentOffset)&&this.entries.add(e.getText()),!0}};var Os,zs=class e{constructor(){this.parent=null,this.children=null,this.attributes=null}findAttribute(e){if(this.attributes)for(const 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=[]),this.children.push(t)}append(e){if(this.attributes){const t=this.attributes[this.attributes.length-1];t.value=t.value+e}}prepend(e){if(this.attributes){const t=this.attributes[0];t.value=e+t.value}}findRoot(){let e=this;for(;e.parent&&!(e.parent instanceof Ps);)e=e.parent;return e}removeChild(e){if(this.children){const t=this.children.indexOf(e);if(-1!==t)return this.children.splice(t,1),!0}return!1}addAttr(e,t){this.attributes||(this.attributes=[]);for(const n of this.attributes)if(n.name===e)return void(n.value+=" "+t);this.attributes.push({name:e,value:t})}clone(t=!0){const n=new e;if(this.attributes){n.attributes=[];for(const 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(){const e=this.clone(!1);if(this.parent&&!(this.parent instanceof Ps)){this.parent.cloneWithParent().addChild(e)}return e}},Ps=class extends zs{},Bs=class extends zs{constructor(e){super(),this.addAttr("name",e)}},Ws=class{constructor(e){this.quote=e,this.result=[]}print(e,t){let n;return this.result=[],e instanceof Ps?e.children&&this.doPrint(e.children,0):this.doPrint([e],0),n=t?`${t.text}\n \u2026 `+this.result.join("\n"):this.result.join("\n"),[{language:"html",value:n}]}doPrint(e,t){for(const n of e)this.doPrintElement(n,t),n.children&&this.doPrint(n.children,t+1)}writeLine(e,t){const n=new Array(e+1).join(" ");this.result.push(n+t)}doPrintElement(e,t){const n=e.findAttribute("name");if(e instanceof Bs||"\u2026"===n)return void this.writeLine(t,n);const i=["<"];if(n?i.push(n):i.push("element"),e.attributes)for(const r of e.attributes)if("name"!==r.name){i.push(" "),i.push(r.name);const e=r.value;e&&(i.push("="),i.push(Os.ensure(e,this.quote)))}i.push(">"),this.writeLine(t,i.join(""))}};!function(e){function t(e){const t=e.match(/^['"](.*)["']$/);return t?t[1]:e}e.ensure=function(e,n){return n+t(e)+n},e.remove=t}(Os||(Os={}));var Vs=class{constructor(){this.id=0,this.attr=0,this.tag=0}};function Us(e,t){let n=new zs;for(const i of e.getChildren())switch(i.type){case ee.SelectorCombinator:if(t){const e=i.getText().split("&");if(1===e.length){n.addAttr("name",e[0]);break}if(n=t.cloneWithParent(),e[0]){n.findRoot().prepend(e[0])}for(let i=1;i<e.length;i++){if(i>1){const e=t.cloneWithParent();n.addChild(e.findRoot()),n=e}n.append(e[i])}}break;case ee.SelectorPlaceholder:if(i.matches("@at-root"))return n;case ee.ElementNameSelector:const e=i.getText();n.addAttr("name","*"===e?"element":$s(e));break;case ee.ClassSelector:n.addAttr("class",$s(i.getText().substring(1)));break;case ee.IdentifierSelector:n.addAttr("id",$s(i.getText().substring(1)));break;case ee.MixinDeclaration:n.addAttr("class",i.getName());break;case ee.PseudoSelector:n.addAttr($s(i.getText()),"");break;case ee.AttributeSelector:const r=i,s=r.getIdentifier();if(s){const e=r.getValue(),t=r.getOperator();let i;if(e&&t)switch($s(t.getText())){case"|=":i=`${Os.remove($s(e.getText()))}-\u2026`;break;case"^=":i=`${Os.remove($s(e.getText()))}\u2026`;break;case"$=":i=`\u2026${Os.remove($s(e.getText()))}`;break;case"~=":i=` \u2026 ${Os.remove($s(e.getText()))} \u2026 `;break;case"*=":i=`\u2026${Os.remove($s(e.getText()))}\u2026`;break;default:i=Os.remove($s(e.getText()))}n.addAttr($s(s.getText()),i)}}return n}function $s(e){const t=new re;t.setSource(e);const n=t.scanUnquotedString();return n?n.text:e}var qs=class{constructor(e){this.cssDataManager=e}selectorToMarkedString(e,t){const n=function(e){if(e.matches("@at-root"))return null;const t=new Ps,n=[],i=e.getParent();if(i instanceof we){let e=i.getParent();for(;e&&!Ks(e);){if(e instanceof we){if(e.getSelectors().matches("@at-root"))break;n.push(e)}e=e.getParent()}}const r=new js(t);for(let s=n.length-1;s>=0;s--){const e=n[s].getSelectors().getChild(0);e&&r.processSelector(e)}return r.processSelector(e),t}(e);if(n){const i=new Ws('"').print(n,t);return i.push(this.selectorToSpecificityMarkedString(e)),i}return[]}simpleSelectorToMarkedString(e){const t=Us(e),n=new Ws('"').print(t);return n.push(this.selectorToSpecificityMarkedString(e)),n}isPseudoElementIdentifier(e){const t=e.match(/^::?([\w-]+)/);return!!t&&!!this.cssDataManager.getPseudoElement("::"+t[1])}selectorToSpecificityMarkedString(e){const t=e=>{const t=new Vs;let i=new Vs;for(const r of e)for(const e of r.getChildren()){const t=n(e);t.id>i.id?i=t:t.id<i.id||(t.attr>i.attr?i=t:t.attr<i.attr||t.tag>i.tag&&(i=t))}return t.id+=i.id,t.attr+=i.attr,t.tag+=i.tag,t},n=e=>{const i=new Vs;e:for(const r of e.getChildren()){switch(r.type){case ee.IdentifierSelector:i.id++;break;case ee.ClassSelector:case ee.AttributeSelector:i.attr++;break;case ee.ElementNameSelector:if(r.matches("*"))break;i.tag++;break;case ee.PseudoSelector:const e=r.getText(),n=r.getChildren();if(this.isPseudoElementIdentifier(e)){if(e.match(/^::slotted/i)&&n.length>0){i.tag++;let e=t(n);i.id+=e.id,i.attr+=e.attr,i.tag+=e.tag;continue e}i.tag++;continue e}if(e.match(/^:where/i))continue e;if(e.match(/^:(?:not|has|is)/i)&&n.length>0){let e=t(n);i.id+=e.id,i.attr+=e.attr,i.tag+=e.tag;continue e}if(e.match(/^:(?:host|host-context)/i)&&n.length>0){i.attr++;let e=t(n);i.id+=e.id,i.attr+=e.attr,i.tag+=e.tag;continue e}if(e.match(/^:(?:nth-child|nth-last-child)/i)&&n.length>0){if(i.attr++,3===n.length&&23===n[1].type){let e=t(n[2].getChildren());i.id+=e.id,i.attr+=e.attr,i.tag+=e.tag;continue e}const e=new as,r=n[1].getText();e.scanner.setSource(r);const s=e.scanner.scan(),o=e.scanner.scan();if("n"===s.text||"-n"===s.text&&"of"===o.text){const n=[],s=r.slice(o.offset+2).split(",");for(const t of s){const i=e.internalParse(t,e._parseSelector);i&&n.push(i)}let a=t(n);i.id+=a.id,i.attr+=a.attr,i.tag+=a.tag;continue e}continue e}i.attr++;continue e}if(r.getChildren().length>0){const e=n(r);i.id+=e.id,i.attr+=e.attr,i.tag+=e.tag}}return i},i=n(e);return`[${Dt("Selector Specificity")}](https://developer.mozilla.org/docs/Web/CSS/Specificity): (${i.id}, ${i.attr}, ${i.tag})`}},js=class{constructor(e){this.prev=null,this.element=e}processSelector(e){let t=null;if(!(this.element instanceof Ps)&&e.getChildren().some((e=>e.hasChildren()&&e.getChild(0).type===ee.SelectorCombinator))){const e=this.element.findRoot();e.parent instanceof Ps&&(t=this.element,this.element=e.parent,this.element.removeChild(e),this.prev=null)}for(const n of e.getChildren()){if(n instanceof ke){if(this.prev instanceof ke){const e=new Bs("\u2026");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 Bs("\u22ee"));const e=Us(n,t),i=e.findRoot();this.element.addChild(i),this.element=e}(n instanceof ke||n.type===ee.SelectorCombinatorParent||n.type===ee.SelectorCombinatorShadowPiercingDescendant||n.type===ee.SelectorCombinatorSibling||n.type===ee.SelectorCombinatorAllSiblings)&&(this.prev=n)}}};function Ks(e){switch(e.type){case ee.MixinDeclaration:case ee.Stylesheet:return!0}return!1}var Hs=class{constructor(e,t){this.clientCapabilities=e,this.cssDataManager=t,this.selectorPrinting=new qs(t)}configure(e){this.defaultSettings=e}doHover(e,t,n,i=this.defaultSettings){function r(t){return qt.create(e.positionAt(t.offset),e.positionAt(t.end))}const s=he(n,e.offsetAt(t));let o,a=null;for(let l=0;l<s.length;l++){const e=s[l];if(e instanceof Qe){const t=/@media[^\{]+/g,n=e.getText().match(t);o={isMedia:!0,text:n?.[0]}}if(e instanceof _e){a={contents:this.selectorPrinting.selectorToMarkedString(e,o),range:r(e)};break}if(e instanceof ke){se(e.getText(),"@")||(a={contents:this.selectorPrinting.simpleSelectorToMarkedString(e),range:r(e)});break}if(e instanceof xe){const t=e.getFullPropertyName(),n=this.cssDataManager.getProperty(t);if(n){const t=Sr(n,this.doesSupportMarkdown(),i);a=t?{contents:t,range:r(e)}:null}}else if(e instanceof Et){const t=e.getText(),n=this.cssDataManager.getAtDirective(t);if(n){const t=Sr(n,this.doesSupportMarkdown(),i);a=t?{contents:t,range:r(e)}:null}}else if(e instanceof pe&&e.type===ee.PseudoSelector){const t=e.getText(),n="::"===t.slice(0,2)?this.cssDataManager.getPseudoElement(t):this.cssDataManager.getPseudoClass(t);if(n){const t=Sr(n,this.doesSupportMarkdown(),i);a=t?{contents:t,range:r(e)}:null}}else;}return a&&(a.contents=this.convertContents(a.contents)),a}convertContents(e){return this.doesSupportMarkdown()||"string"===typeof e?e:"kind"in e?{kind:"plaintext",value:e.value}:Array.isArray(e)?e.map((e=>"string"===typeof e?e:e.value)):e.value}doesSupportMarkdown(){if(!os(this.supportsMarkdown)){if(!os(this.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;const e=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.hover;this.supportsMarkdown=e&&e.contentFormat&&Array.isArray(e.contentFormat)&&-1!==e.contentFormat.indexOf(Un.Markdown)}return this.supportsMarkdown}},Gs=/^\w+:\/\//,Qs=/^data:/,Js=class{constructor(e,t){this.fileSystemProvider=e,this.resolveModuleReferences=t}configure(e){this.defaultSettings=e}findDefinition(e,t,n){const i=new fs(n),r=ce(n,e.offsetAt(t));if(!r)return null;const s=i.findSymbolFromNode(r);return s?{uri:e.uri,range:Ys(s.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 i=ce(n,e.offsetAt(t));if(i&&i.type!==ee.Stylesheet&&i.type!==ee.Declarations)return i.type===ee.Identifier&&i.parent&&i.parent.type===ee.ClassSelector&&(i=i.parent),i}findDocumentHighlights(e,t,n){const i=[],r=this.getHighlightNode(e,t,n);if(!r)return i;const s=new fs(n),o=s.findSymbolFromNode(r),a=r.getText();return n.accept((t=>{if(o){if(s.matchesSymbol(t,o))return i.push({kind:Zs(t),range:Ys(t,e)}),!1}else r&&r.type===t.type&&t.matches(a)&&i.push({kind:Zs(t),range:Ys(t,e)});return!0})),i}isRawStringDocumentLinkNode(e){return e.type===ee.Import}findDocumentLinks(e,t,n){const i=this.findUnresolvedLinks(e,t),r=[];for(let s of i){const t=s.link,i=t.target;if(!i||Qs.test(i));else if(Gs.test(i))r.push(t);else{const s=n.resolveReference(i,e.uri);s&&(t.target=s),r.push(t)}}return r}async findDocumentLinks2(e,t,n){const i=this.findUnresolvedLinks(e,t),r=[];for(let s of i){const t=s.link,i=t.target;if(!i||Qs.test(i));else if(Gs.test(i))r.push(t);else{const o=await this.resolveReference(i,e.uri,n,s.isRawLink);void 0!==o&&(t.target=o,r.push(t))}}return r}findUnresolvedLinks(e,t){const n=[],i=t=>{let i=t.getText();const r=Ys(t,e);if(r.start.line===r.end.line&&r.start.character===r.end.character)return;(se(i,"'")||se(i,'"'))&&(i=i.slice(1,-1));const s=!!t.parent&&this.isRawStringDocumentLinkNode(t.parent);n.push({link:{target:i,range:r},isRawLink:s})};return t.accept((e=>{if(e.type===ee.URILiteral){const t=e.getChild(0);return t&&i(t),!1}if(e.parent&&this.isRawStringDocumentLinkNode(e.parent)){const t=e.getText();return(se(t,"'")||se(t,'"'))&&i(e),!1}return!0})),n}findSymbolInformations(e,t){const n=[];return this.collectDocumentSymbols(e,t,((t,i,r)=>{const s=r instanceof pe?Ys(r,e):r,o={name:t||Dt("<undefined>"),kind:i,location:Kt.create(e.uri,s)};n.push(o)})),n}findDocumentSymbols(e,t){const n=[],i=[];return this.collectDocumentSymbols(e,t,((t,r,s,o,a)=>{const l=s instanceof pe?Ys(s,e):s;let c=o instanceof pe?Ys(o,e):o;c&&Xs(l,c)||(c=qt.create(l.start,l.start));const h={name:t||Dt("<undefined>"),kind:r,range:l,selectionRange:c};let d=i.pop();for(;d&&!Xs(d[1],l);)d=i.pop();if(d){const e=d[0];e.children||(e.children=[]),e.children.push(h),i.push(d)}else n.push(h);a&&i.push([h,Ys(a,e)])})),n}collectDocumentSymbols(e,t,n){t.accept((t=>{if(t instanceof we){for(const i of t.getSelectors().getChildren())if(i instanceof _e){const r=qt.create(e.positionAt(i.offset),e.positionAt(t.end));n(i.getText(),di.Class,r,i,t.getDeclarations())}}else if(t instanceof vt)n(t.getName(),di.Variable,t,t.getVariable(),void 0);else if(t instanceof xt)n(t.getName(),di.Method,t,t.getIdentifier(),t.getDeclarations());else if(t instanceof ze)n(t.getName(),di.Function,t,t.getIdentifier(),t.getDeclarations());else if(t instanceof Ve){const e=Dt("@keyframes {0}",t.getName());n(e,di.Class,t,t.getIdentifier(),t.getDeclarations())}else if(t instanceof Be){const e=Dt("@font-face");n(e,di.Class,t,void 0,t.getDeclarations())}else if(t instanceof Qe){const e=t.getChild(0);if(e instanceof tt){const i="@media "+e.getText();n(i,di.Module,t,e,t.getDeclarations())}}return!0}))}findDocumentColors(e,t){const n=[];return t.accept((t=>{const i=function(e,t){const n=$r(e);if(n){return{color:n,range:Ys(e,t)}}return null}(t,e);return i&&n.push(i),!0})),n}getColorPresentations(e,t,n,i){const r=[],s=Math.round(255*n.red),o=Math.round(255*n.green),a=Math.round(255*n.blue);let l;l=1===n.alpha?`rgb(${s}, ${o}, ${a})`:`rgba(${s}, ${o}, ${a}, ${n.alpha})`,r.push({label:l,textEdit:vn.replace(i,l)}),l=1===n.alpha?`#${eo(s)}${eo(o)}${eo(a)}`:`#${eo(s)}${eo(o)}${eo(a)}${eo(Math.round(255*n.alpha))}`,r.push({label:l,textEdit:vn.replace(i,l)});const c=Ur(n);l=1===c.a?`hsl(${c.h}, ${Math.round(100*c.s)}%, ${Math.round(100*c.l)}%)`:`hsla(${c.h}, ${Math.round(100*c.s)}%, ${Math.round(100*c.l)}%, ${c.a})`,r.push({label:l,textEdit:vn.replace(i,l)});const h=function(e){const t=Ur(e),n=Math.min(e.red,e.green,e.blue),i=1-Math.max(e.red,e.green,e.blue);return{h:t.h,w:n,b:i,a:t.a}}(n);return l=1===h.a?`hwb(${h.h} ${Math.round(100*h.w)}% ${Math.round(100*h.b)}%)`:`hwb(${h.h} ${Math.round(100*h.w)}% ${Math.round(100*h.b)}% / ${h.a})`,r.push({label:l,textEdit:vn.replace(i,l)}),r}prepareRename(e,t,n){const i=this.getHighlightNode(e,t,n);if(i)return qt.create(e.positionAt(i.offset),e.positionAt(i.end))}doRename(e,t,n,i){const r=this.findDocumentHighlights(e,t,i).map((e=>vn.replace(e.range,n)));return{changes:{[e.uri]:r}}}async resolveModuleReference(e,t,n){if(se(t,"file://")){const i=function(e){const t=e.indexOf("/");if(-1===t)return"";if("@"===e[0]){const n=e.indexOf("/",t+1);return-1===n?e:e.substring(0,n)}return e.substring(0,t)}(e);if(i&&"."!==i&&".."!==i){const r=n.resolveReference("/",t),s=vs(t),o=await this.resolvePathToModule(i,s,r);if(o){return ys(o,e.substring(i.length+1))}}}}async mapReference(e,t){return e}async resolveReference(e,t,n,i=!1,r=this.defaultSettings){if("~"===e[0]&&"/"!==e[1]&&this.fileSystemProvider)return e=e.substring(1),this.mapReference(await this.resolveModuleReference(e,t,n),i);const s=await this.mapReference(n.resolveReference(e,t),i);if(this.resolveModuleReferences){if(s&&await this.fileExists(s))return s;const r=await this.mapReference(await this.resolveModuleReference(e,t,n),i);if(r)return r}if(s&&!await this.fileExists(s)){const s=n.resolveReference("/",t);if(r&&s){if(e in r)return this.mapReference(ys(s,r[e]),i);const t=e.indexOf("/"),n=`${e.substring(0,t)}/`;if(n in r){let t=ys(s,r[n].slice(0,-1));return this.mapReference(t=ys(t,e.substring(n.length-1)),i)}}}return s}async resolvePathToModule(e,t,n){const i=ys(t,"node_modules",e,"package.json");return await this.fileExists(i)?vs(i):n&&t.startsWith(n)&&t.length!==n.length?this.resolvePathToModule(e,vs(t),n):void 0}async fileExists(e){if(!this.fileSystemProvider)return!1;try{const t=await this.fileSystemProvider.stat(e);return t.type!==fr.Unknown||-1!==t.size}catch(t){return!1}}};function Ys(e,t){return qt.create(t.positionAt(e.offset),t.positionAt(e.end))}function Xs(e,t){const n=t.start.line,i=t.end.line,r=e.start.line,s=e.end.line;return!(n<r||i<r)&&(!(n>s||i>s)&&(!(n===r&&t.start.character<e.start.character)&&!(i===s&&t.end.character>e.end.character)))}function Zs(e){if(e.type===ee.Selector)return li.Write;if(e instanceof ge&&e.parent&&e.parent instanceof Fe&&e.isCustomProperty)return li.Write;if(e.parent)switch(e.parent.type){case ee.FunctionDeclaration:case ee.MixinDeclaration:case ee.Keyframe:case ee.VariableDeclaration:case ee.FunctionParameter:return li.Write}return li.Read}function eo(e){const t=e.toString(16);return 2!==t.length?"0"+t:t}var to=de.Warning,no=de.Error,io=de.Ignore,ro=class{constructor(e,t,n){this.id=e,this.message=t,this.defaultValue=n}},so={AllVendorPrefixes:new ro("compatibleVendorPrefixes",Dt("When using a vendor-specific prefix make sure to also include all other vendor-specific properties"),io),IncludeStandardPropertyWhenUsingVendorPrefix:new ro("vendorPrefix",Dt("When using a vendor-specific prefix also include the standard property"),to),DuplicateDeclarations:new ro("duplicateProperties",Dt("Do not use duplicate style definitions"),io),EmptyRuleSet:new ro("emptyRules",Dt("Do not use empty rulesets"),to),ImportStatemement:new ro("importStatement",Dt("Import statements do not load in parallel"),io),BewareOfBoxModelSize:new ro("boxModel",Dt("Do not use width or height when using padding or border"),io),UniversalSelector:new ro("universalSelector",Dt("The universal selector (*) is known to be slow"),io),ZeroWithUnit:new ro("zeroUnits",Dt("No unit for zero needed"),io),RequiredPropertiesForFontFace:new ro("fontFaceProperties",Dt("@font-face rule must define 'src' and 'font-family' properties"),to),HexColorLength:new ro("hexColorLength",Dt("Hex colors must consist of three, four, six or eight hex numbers"),no),ArgsInColorFunction:new ro("argumentsInColorFunction",Dt("Invalid number of parameters"),no),UnknownProperty:new ro("unknownProperties",Dt("Unknown property."),to),UnknownAtRules:new ro("unknownAtRules",Dt("Unknown at-rule."),to),IEStarHack:new ro("ieHack",Dt("IE hacks are only necessary when supporting IE7 and older"),io),UnknownVendorSpecificProperty:new ro("unknownVendorSpecificProperties",Dt("Unknown vendor specific property."),io),PropertyIgnoredDueToDisplay:new ro("propertyIgnoredDueToDisplay",Dt("Property is ignored due to the display."),to),AvoidImportant:new ro("important",Dt("Avoid using !important. It is an indication that the specificity of the entire CSS has gotten out of control and needs to be refactored."),io),AvoidFloat:new ro("float",Dt("Avoid using 'float'. Floats lead to fragile CSS that is easy to break if one aspect of the layout changes."),io),AvoidIdSelector:new ro("idSelector",Dt("Selectors should not contain IDs because these rules are too tightly coupled with the HTML."),io)},oo={ValidProperties:new class{constructor(e,t,n){this.id=e,this.message=t,this.defaultValue=n}}("validProperties",Dt("A list of properties that are not validated against the `unknownProperties` rule."),[])},ao=class{constructor(e={}){this.conf=e}getRule(e){if(this.conf.hasOwnProperty(e.id)){const t=function(e){switch(e){case"ignore":return de.Ignore;case"warning":return de.Warning;case"error":return de.Error}return null}(this.conf[e.id]);if(t)return t}return e.defaultValue}getSetting(e){return this.conf[e.id]}};var lo=class{constructor(e){this.cssDataManager=e}doCodeActions(e,t,n,i){return this.doCodeActions2(e,t,n,i).map((t=>{const n=t.edit&&t.edit.documentChanges&&t.edit.documentChanges[0];return gn.create(t.title,"_css.applyCodeAction",e.uri,e.version,n&&n.edits)}))}doCodeActions2(e,t,n,i){const r=[];if(n.diagnostics)for(const s of n.diagnostics)this.appendFixesForMarker(e,i,s,r);return r}getFixesForUnknownProperty(e,t,n,i){const r=t.getName(),s=[];this.cssDataManager.getProperties().forEach((e=>{const t=function(e,t,n=4){let i=Math.abs(e.length-t.length);if(i>n)return 0;let r,s,o=[],a=[];for(r=0;r<t.length+1;++r)a.push(0);for(r=0;r<e.length+1;++r)o.push(a);for(r=1;r<e.length+1;++r)for(s=1;s<t.length+1;++s)e[r-1]===t[s-1]?o[r][s]=o[r-1][s-1]+1:o[r][s]=Math.max(o[r-1][s],o[r][s-1]);return o[e.length][t.length]-Math.sqrt(i)}(r,e.name);t>=r.length/2&&s.push({property:e.name,score:t})})),s.sort(((e,t)=>t.score-e.score||e.property.localeCompare(t.property)));let o=3;for(const a of s){const t=a.property,r=Dt("Rename to '{0}'",t),s=vn.replace(n.range,t),l=On.create(e.uri,e.version),c={documentChanges:[xn.create(l,[s])]},h=Si.create(r,c,vi.QuickFix);if(h.diagnostics=[n],i.push(h),--o<=0)return}}appendFixesForMarker(e,t,n,i){if(n.code!==so.UnknownProperty.id)return;const r=e.offsetAt(n.range.start),s=e.offsetAt(n.range.end),o=he(t,r);for(let a=o.length-1;a>=0;a--){const t=o[a];if(t instanceof xe){const o=t.getProperty();if(o&&o.offset===r&&o.end===s)return void this.getFixesForUnknownProperty(e,o,n,i)}}}},co=class{constructor(e){this.fullPropertyName=e.getFullPropertyName().toLowerCase(),this.node=e}};function ho(e,t,n,i){const r=e[t];r.value=n,n&&(ls(r.properties,i)||r.properties.push(i))}function uo(e,t,n,i){"top"===t||"right"===t||"bottom"===t||"left"===t?ho(e,t,n,i):function(e,t,n){ho(e,"top",t,n),ho(e,"right",t,n),ho(e,"bottom",t,n),ho(e,"left",t,n)}(e,n,i)}function po(e,t,n){switch(t.length){case 1:uo(e,void 0,t[0],n);break;case 2:uo(e,"top",t[0],n),uo(e,"bottom",t[0],n),uo(e,"right",t[1],n),uo(e,"left",t[1],n);break;case 3:uo(e,"top",t[0],n),uo(e,"right",t[1],n),uo(e,"left",t[1],n),uo(e,"bottom",t[2],n);break;case 4:uo(e,"top",t[0],n),uo(e,"right",t[1],n),uo(e,"bottom",t[2],n),uo(e,"left",t[3],n)}}function mo(e,t){for(let n of t)if(e.matches(n))return!0;return!1}function fo(e,t=!0){return(!t||!mo(e,["initial","unset"]))&&0!==parseFloat(e.getText())}function go(e,t=!0){return e.map((e=>fo(e,t)))}function bo(e,t=!0){return!mo(e,["none","hidden"])&&(!t||!mo(e,["initial","unset"]))}function vo(e,t=!0){return e.map((e=>bo(e,t)))}function yo(e){const t=e.getChildren();if(1===t.length){const e=t[0];return fo(e)&&bo(e)}for(const n of t){const e=n;if(!fo(e,!1)||!bo(e,!1))return!1}return!0}var wo=class{constructor(){this.data={}}add(e,t,n){let i=this.data[e];i||(i={nodes:[],names:[]},this.data[e]=i),i.names.push(t),n&&i.nodes.push(n)}},_o=class e{static entries(t,n,i,r,s){const o=new e(n,i,r);return t.acceptVisitor(o),o.completeValidations(),o.getEntries(s)}constructor(e,t,n){this.cssDataManager=n,this.warnings=[],this.settings=t,this.documentText=e.getText(),this.keyframes=new wo,this.validProperties={};const i=t.getSetting(oo.ValidProperties);Array.isArray(i)&&i.forEach((e=>{if("string"===typeof e){const t=e.trim().toLowerCase();t.length&&(this.validProperties[t]=!0)}}))}isValidPropertyDeclaration(e){const t=e.fullPropertyName;return this.validProperties[t]}fetch(e,t){const n=[];for(const i of e)i.fullPropertyName===t&&n.push(i);return n}fetchWithValue(e,t,n){const i=[];for(const r of e)if(r.fullPropertyName===t){const e=r.node.getValue();e&&this.findValueInExpression(e,n)&&i.push(r)}return i}findValueInExpression(e,t){let n=!1;return e.accept((e=>(e.type===ee.Identifier&&e.matches(t)&&(n=!0),!n))),n}getEntries(e=de.Warning|de.Error){return this.warnings.filter((t=>0!==(t.getLevel()&e)))}addEntry(e,t,n){const i=new Nt(e,t,this.settings.getRule(t),n);this.warnings.push(i)}getMissingNames(e,t){const n=e.slice(0);for(let r=0;r<t.length;r++){const e=n.indexOf(t[r]);-1!==e&&(n[e]=null)}let i=null;for(let r=0;r<n.length;r++){const e=n[r];e&&(i=null===i?Dt("'{0}'",e):Dt("{0}, '{1}'",i,e))}return i}visitNode(e){switch(e.type){case ee.UnknownAtRule:return this.visitUnknownAtRule(e);case ee.Keyframe:return this.visitKeyframe(e);case ee.FontFace:return this.visitFontFace(e);case ee.Ruleset:return this.visitRuleSet(e);case ee.SimpleSelector:return this.visitSimpleSelector(e);case ee.Function:return this.visitFunction(e);case ee.NumericValue:return this.visitNumericValue(e);case ee.Import:return this.visitImport(e);case ee.HexColorValue:return this.visitHexColorValue(e);case ee.Prio:return this.visitPrio(e);case ee.IdentifierSelector:return this.visitIdentifierSelector(e)}return!0}completeValidations(){this.validateKeyframes()}visitUnknownAtRule(e){const t=e.getChild(0);if(!t)return!1;return!this.cssDataManager.getAtDirective(t.getText())&&(this.addEntry(t,so.UnknownAtRules,`Unknown at rule ${t.getText()}`),!0)}visitKeyframe(e){const t=e.getKeyword();if(!t)return!1;const n=t.getText();return this.keyframes.add(e.getName(),n,"@keyframes"!==n?t:null),!0}validateKeyframes(){const e=["@-webkit-keyframes","@-moz-keyframes","@-o-keyframes"];for(const t in this.keyframes.data){const n=this.keyframes.data[t].names,i=-1===n.indexOf("@keyframes");if(!i&&1===n.length)continue;const r=this.getMissingNames(e,n);if(r||i)for(const e of this.keyframes.data[t].nodes){if(i){const t=Dt("Always define standard rule '@keyframes' when defining keyframes.");this.addEntry(e,so.IncludeStandardPropertyWhenUsingVendorPrefix,t)}if(r){const t=Dt("Always include all vendor specific rules: Missing: {0}",r);this.addEntry(e,so.AllVendorPrefixes,t)}}}return!0}visitSimpleSelector(e){const t=this.documentText.charAt(e.offset);return 1===e.length&&"*"===t&&this.addEntry(e,so.UniversalSelector),!0}visitIdentifierSelector(e){return this.addEntry(e,so.AvoidIdSelector),!0}visitImport(e){return this.addEntry(e,so.ImportStatemement),!0}visitRuleSet(t){const n=t.getDeclarations();if(!n)return!1;n.hasChildren()||this.addEntry(t.getSelectors(),so.EmptyRuleSet);const i=[];for(const e of n.getChildren())e instanceof xe&&i.push(new co(e));const r=function(e){const t={top:{value:!1,properties:[]},right:{value:!1,properties:[]},bottom:{value:!1,properties:[]},left:{value:!1,properties:[]}};for(const n of e){const e=n.node.value;if("undefined"!==typeof e)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:const i=n.fullPropertyName.split("-");switch(i[0]){case"border":switch(i[1]){case void 0:case"top":case"right":case"bottom":case"left":switch(i[2]){case void 0:uo(t,i[1],yo(e),n);break;case"width":uo(t,i[1],fo(e,!1),n);break;case"style":uo(t,i[1],bo(e,!0),n)}break;case"width":po(t,go(e.getChildren(),!1),n);break;case"style":po(t,vo(e.getChildren(),!0),n)}break;case"padding":1===i.length?po(t,go(e.getChildren(),!0),n):uo(t,i[1],fo(e,!0),n)}}}return t}(i);if(r.width){let e=[];if(r.right.value&&(e=cs(e,r.right.properties)),r.left.value&&(e=cs(e,r.left.properties)),0!==e.length){for(const t of e)this.addEntry(t.node,so.BewareOfBoxModelSize);this.addEntry(r.width.node,so.BewareOfBoxModelSize)}}if(r.height){let e=[];if(r.top.value&&(e=cs(e,r.top.properties)),r.bottom.value&&(e=cs(e,r.bottom.properties)),0!==e.length){for(const t of e)this.addEntry(t.node,so.BewareOfBoxModelSize);this.addEntry(r.height.node,so.BewareOfBoxModelSize)}}let s=this.fetchWithValue(i,"display","inline-block");if(s.length>0){const e=this.fetch(i,"float");for(let t=0;t<e.length;t++){const n=e[t].node,i=n.getValue();i&&!i.matches("none")&&this.addEntry(n,so.PropertyIgnoredDueToDisplay,Dt("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(s=this.fetchWithValue(i,"display","block"),s.length>0){const e=this.fetch(i,"vertical-align");for(let t=0;t<e.length;t++)this.addEntry(e[t].node,so.PropertyIgnoredDueToDisplay,Dt("Property is ignored due to the display. With 'display: block', vertical-align should not be used."))}const o=this.fetch(i,"float");for(let e=0;e<o.length;e++){const t=o[e];this.isValidPropertyDeclaration(t)||this.addEntry(t.node,so.AvoidFloat)}for(let e=0;e<i.length;e++){const t=i[e];if("background"!==t.fullPropertyName&&!this.validProperties[t.fullPropertyName]){const e=t.node.getValue();if(e&&"-"!==this.documentText.charAt(e.offset)){const e=this.fetch(i,t.fullPropertyName);if(e.length>1)for(let n=0;n<e.length;n++){const i=e[n].node.getValue();i&&"-"!==this.documentText.charAt(i.offset)&&e[n]!==t&&this.addEntry(t.node,so.DuplicateDeclarations)}}}}if(!t.getSelectors().matches(":export")){const n=new wo;let r=!1;for(const e of i){const t=e.node;if(this.isCSSDeclaration(t)){let i=e.fullPropertyName;const r=i.charAt(0);if("-"===r){if("-"!==i.charAt(1)){this.cssDataManager.isKnownProperty(i)||this.validProperties[i]||this.addEntry(t.getProperty(),so.UnknownVendorSpecificProperty);const e=t.getNonPrefixedPropertyName();n.add(e,i,t.getProperty())}}else{const e=i;"*"!==r&&"_"!==r||(this.addEntry(t.getProperty(),so.IEStarHack),i=i.substr(1)),this.cssDataManager.isKnownProperty(e)||this.cssDataManager.isKnownProperty(i)||this.validProperties[i]||this.addEntry(t.getProperty(),so.UnknownProperty,Dt("Unknown property: '{0}'",t.getFullPropertyName())),n.add(i,i,null)}}else r=!0}if(!r)for(const i in n.data){const r=n.data[i],s=r.names,o=this.cssDataManager.isStandardProperty(i)&&-1===s.indexOf(i);if(!o&&1===s.length)continue;const a=new Set(o?r.nodes:[]);if(o){const e=this.getContextualVendorSpecificPseudoElements(t);for(const t of r.nodes){const n=t.getName(),r=n.substring(0,n.length-i.length);e.some((e=>e.startsWith(r)))&&a.delete(t)}}const l=[];for(let t=0,n=e.prefixes.length;t<n;t++){const n=e.prefixes[t];this.cssDataManager.isStandardProperty(n+i)&&l.push(n+i)}const c=this.getMissingNames(l,s);if(c||o)for(const e of r.nodes){if(o&&a.has(e)){const t=Dt("Also define the standard property '{0}' for compatibility",i);this.addEntry(e,so.IncludeStandardPropertyWhenUsingVendorPrefix,t)}if(c){const t=Dt("Always include all vendor specific properties: Missing: {0}",c);this.addEntry(e,so.AllVendorPrefixes,t)}}}}return!0}getContextualVendorSpecificPseudoElements(e){function t(e,n){for(const i of n.getChildren()){if(i.type===ee.PseudoSelector){const t=i.getChildren()[0]?.getText();t&&e.add(t)}t(e,i)}}const n=new Set;return function e(n,i){if(i.type===ee.Ruleset)for(const r of i.getSelectors().getChildren())t(n,r);return i.parent?e(n,i.parent):void 0}(n,e),Array.from(n)}visitPrio(e){return this.addEntry(e,so.AvoidImportant),!0}visitNumericValue(e){const t=e.findParent(ee.Function);if(t&&"calc"===t.getName())return!0;const n=e.findParent(ee.Declaration);if(n){if(n.getValue()){const t=e.getValue();if(!t.unit||-1===ts.length.indexOf(t.unit.toLowerCase()))return!0;0===parseFloat(t.value)&&t.unit&&!this.validProperties[n.getFullPropertyName()]&&this.addEntry(e,so.ZeroWithUnit)}}return!0}visitFontFace(e){const t=e.getDeclarations();if(!t)return!1;let n=!1,i=!1,r=!1;for(const s of t.getChildren())if(this.isCSSDeclaration(s)){const e=s.getProperty().getName().toLowerCase();"src"===e&&(n=!0),"font-family"===e&&(i=!0)}else r=!0;return r||n&&i||this.addEntry(e,so.RequiredPropertiesForFontFace),!0}isCSSDeclaration(e){if(e instanceof xe){if(!e.getValue())return!1;const t=e.getProperty();if(!t)return!1;const n=t.getIdentifier();return!(!n||n.containsInterpolation())}return!1}visitHexColorValue(e){const t=e.length;return 9!==t&&7!==t&&5!==t&&4!==t&&this.addEntry(e,so.HexColorLength),!1}visitFunction(e){const t=e.getName().toLowerCase();let n=-1,i=0;switch(t){case"rgb(":case"hsl(":n=3;break;case"rgba(":case"hsla(":n=4}return-1!==n&&(e.getArguments().accept((e=>!(e instanceof ct)||(i+=1,!1))),i!==n&&this.addEntry(e,so.ArgsInColorFunction)),!0}};_o.prefixes=["-ms-","-moz-","-o-","-webkit-"];var ko=class{constructor(e){this.cssDataManager=e}configure(e){this.settings=e}doValidation(e,t,n=this.settings){if(n&&!1===n.validate)return[];const i=[];i.push.apply(i,Rt.entries(t)),i.push.apply(i,_o.entries(t,e,new ao(n&&n.lint),this.cssDataManager));const r=[];for(const s in so)r.push(so[s].id);return i.filter((e=>e.getLevel()!==de.Ignore)).map((function(t){const n=qt.create(e.positionAt(t.getOffset()),e.positionAt(t.getOffset()+t.getLength())),i=e.languageId;return{code:t.getRule().id,source:i,message:t.getMessage(),severity:t.getLevel()===de.Warning?cn.Warning:cn.Error,range:n}}))}},Co="/".charCodeAt(0),So="\n".charCodeAt(0),xo="\r".charCodeAt(0),Eo="\f".charCodeAt(0),Fo="$".charCodeAt(0),Lo="#".charCodeAt(0),Io="{".charCodeAt(0),To="=".charCodeAt(0),No="!".charCodeAt(0),Ro="<".charCodeAt(0),Do=">".charCodeAt(0),Ao=".".charCodeAt(0),Mo=("@".charCodeAt(0),o.CustomToken),Oo=Mo++,zo=Mo++,Po=(Mo++,Mo++),Bo=Mo++,Wo=Mo++,Vo=Mo++,Uo=Mo++,$o=(Mo++,class extends re{scanNext(e){if(this.stream.advanceIfChar(Fo)){const t=["$"];if(this.ident(t))return this.finishToken(e,Oo,t.join(""));this.stream.goBackTo(e)}return this.stream.advanceIfChars([Lo,Io])?this.finishToken(e,zo):this.stream.advanceIfChars([To,To])?this.finishToken(e,Po):this.stream.advanceIfChars([No,To])?this.finishToken(e,Bo):this.stream.advanceIfChar(Ro)?this.stream.advanceIfChar(To)?this.finishToken(e,Vo):this.finishToken(e,o.Delim):this.stream.advanceIfChar(Do)?this.stream.advanceIfChar(To)?this.finishToken(e,Wo):this.finishToken(e,o.Delim):this.stream.advanceIfChars([Ao,Ao,Ao])?this.finishToken(e,Uo):super.scanNext(e)}comment(){return!!super.comment()||!(this.inURL||!this.stream.advanceIfChars([Co,Co]))&&(this.stream.advanceWhileChar((e=>{switch(e){case So:case xo:case Eo:return!1;default:return!0}})),!0)}}),qo=class{constructor(e,t){this.id=e,this.message=t}},jo={FromExpected:new qo("scss-fromexpected",Dt("'from' expected")),ThroughOrToExpected:new qo("scss-throughexpected",Dt("'through' or 'to' expected")),InExpected:new qo("scss-fromexpected",Dt("'in' expected"))},Ko=class extends as{constructor(){super(new $o)}_parseStylesheetStatement(e=!1){return this.peek(o.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;const e=this.create($e);if(this.consumeToken(),!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral()))return this.finish(e,cr.URIOrStringExpected);for(;this.accept(o.Comma);)if(!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral()))return this.finish(e,cr.URIOrStringExpected);return this._completeParseImport(e)}_parseVariableDeclaration(e=[]){if(!this.peek(Oo))return null;const t=this.create(vt);if(!t.setVariable(this._parseVariable()))return null;if(!this.accept(o.Colon))return this.finish(t,cr.ColonExpected);if(this.prevToken&&(t.colonPosition=this.prevToken.offset),!t.setValue(this._parseExpr()))return this.finish(t,cr.VariableValueExpected,[],e);for(;this.peek(o.Exclamation);)if(t.addChild(this._tryParsePrio()));else{if(this.consumeToken(),!this.peekRegExp(o.Ident,/^(default|global)$/))return this.finish(t,cr.UnknownKeyword);this.consumeToken()}return this.peek(o.SemiColon)&&(t.semicolonPosition=this.token.offset),this.finish(t)}_parseMediaCondition(){return this._parseInterpolation()||super._parseMediaCondition()}_parseMediaFeatureRangeOperator(){return this.accept(Vo)||this.accept(Wo)||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(Oo))return null;const e=this.create(wt);return this.consumeToken(),e}_parseModuleMember(){const e=this.mark(),t=this.create(Tt);return t.setIdentifier(this._parseIdent([ne.Module]))?this.hasWhitespace()||!this.acceptDelim(".")||this.hasWhitespace()?(this.restoreAtMark(e),null):t.addChild(this._parseVariable()||this._parseFunction())?t:this.finish(t,cr.IdentifierOrVariableExpected):null}_parseIdent(e){if(!this.peek(o.Ident)&&!this.peek(zo)&&!this.peekDelim("-"))return null;const t=this.create(ge);t.referenceTypes=e,t.isCustomProperty=this.peekRegExp(o.Ident,/^--/);let n=!1;const i=()=>{const e=this.mark();return this.acceptDelim("-")&&(this.hasWhitespace()||this.acceptDelim("-"),this.hasWhitespace())?(this.restoreAtMark(e),null):this._parseInterpolation()};for(;(this.accept(o.Ident)||t.addChild(i())||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(zo)){const e=this.create(yt);return this.consumeToken(),e.addChild(this._parseExpr())||this._parseNestingSelector()?this.accept(o.CurlyR)?this.finish(e):this.finish(e,cr.RightCurlyExpected):this.accept(o.CurlyR)?this.finish(e):this.finish(e,cr.ExpressionExpected)}return null}_parseOperator(){if(this.peek(Po)||this.peek(Bo)||this.peek(Wo)||this.peek(Vo)||this.peekDelim(">")||this.peekDelim("<")||this.peekIdent("and")||this.peekIdent("or")||this.peekDelim("%")){const e=this.createNode(ee.Operator);return this.consumeToken(),this.finish(e)}return super._parseOperator()}_parseUnaryOperator(){if(this.peekIdent("not")){const e=this.create(pe);return this.consumeToken(),this.finish(e)}return super._parseUnaryOperator()}_parseRuleSetDeclaration(){return this.peek(o.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){const t=this._tryParseCustomPropertyDeclaration(e);if(t)return t;const n=this.create(xe);if(!n.setProperty(this._parseProperty()))return null;if(!this.accept(o.Colon))return this.finish(n,cr.ColonExpected,[o.Colon],e||[o.SemiColon]);this.prevToken&&(n.colonPosition=this.prevToken.offset);let i=!1;if(n.setValue(this._parseExpr())&&(i=!0,n.addChild(this._parsePrio())),this.peek(o.CurlyL))n.setNestedProperties(this._parseNestedProperties());else if(!i)return this.finish(n,cr.PropertyValueExpected);return this.peek(o.SemiColon)&&(n.semicolonPosition=this.token.offset),this.finish(n)}_parseNestedProperties(){const e=this.create(We);return this._parseBody(e,this._parseDeclaration.bind(this))}_parseExtends(){if(this.peekKeyword("@extend")){const e=this.create(_t);if(this.consumeToken(),!e.getSelectors().addChild(this._parseSimpleSelector()))return this.finish(e,cr.SelectorExpected);for(;this.accept(o.Comma);)e.getSelectors().addChild(this._parseSimpleSelector());return this.accept(o.Exclamation)&&!this.acceptIdent("optional")?this.finish(e,cr.UnknownKeyword):this.finish(e)}return null}_parseSimpleSelectorBody(){return this._parseSelectorPlaceholder()||super._parseSimpleSelectorBody()}_parseNestingSelector(){if(this.peekDelim("&")){const e=this.createNode(ee.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(o.Num)||this.accept(o.Dimension)||e.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(e)}return null}_parseSelectorPlaceholder(){if(this.peekDelim("%")){const e=this.createNode(ee.SelectorPlaceholder);return this.consumeToken(),this._parseIdent(),this.finish(e)}if(this.peekKeyword("@at-root")){const e=this.createNode(ee.SelectorPlaceholder);if(this.consumeToken(),this.accept(o.ParenthesisL)){if(!this.acceptIdent("with")&&!this.acceptIdent("without"))return this.finish(e,cr.IdentifierExpected);if(!this.accept(o.Colon))return this.finish(e,cr.ColonExpected);if(!e.addChild(this._parseIdent()))return this.finish(e,cr.IdentifierExpected);if(!this.accept(o.ParenthesisR))return this.finish(e,cr.RightParenthesisExpected,[o.CurlyR])}return this.finish(e)}return null}_parseElementName(){const e=this.mark(),t=super._parseElementName();return t&&!this.hasWhitespace()&&this.peek(o.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;const e=this.createNode(ee.Debug);return this.consumeToken(),e.addChild(this._parseExpr()),this.finish(e)}_parseControlStatement(e=this._parseRuleSetDeclaration.bind(this)){return this.peek(o.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){const t=this.create(Re);if(this.consumeToken(),!t.setExpression(this._parseExpr(!0)))return this.finish(t,cr.ExpressionExpected);if(this._parseBody(t,e),this.acceptKeyword("@else"))if(this.peekIdent("if"))t.setElseClause(this._internalParseIfStatement(e));else if(this.peek(o.CurlyL)){const n=this.create(Oe);this._parseBody(n,e),t.setElseClause(n)}return this.finish(t)}_parseForStatement(e){if(!this.peekKeyword("@for"))return null;const t=this.create(De);return this.consumeToken(),t.setVariable(this._parseVariable())?this.acceptIdent("from")?t.addChild(this._parseBinaryExpr())?this.acceptIdent("to")||this.acceptIdent("through")?t.addChild(this._parseBinaryExpr())?this._parseBody(t,e):this.finish(t,cr.ExpressionExpected,[o.CurlyR]):this.finish(t,jo.ThroughOrToExpected,[o.CurlyR]):this.finish(t,cr.ExpressionExpected,[o.CurlyR]):this.finish(t,jo.FromExpected,[o.CurlyR]):this.finish(t,cr.VariableNameExpected,[o.CurlyR])}_parseEachStatement(e){if(!this.peekKeyword("@each"))return null;const t=this.create(Ae);this.consumeToken();const n=t.getVariables();if(!n.addChild(this._parseVariable()))return this.finish(t,cr.VariableNameExpected,[o.CurlyR]);for(;this.accept(o.Comma);)if(!n.addChild(this._parseVariable()))return this.finish(t,cr.VariableNameExpected,[o.CurlyR]);return this.finish(n),this.acceptIdent("in")?t.addChild(this._parseExpr())?this._parseBody(t,e):this.finish(t,cr.ExpressionExpected,[o.CurlyR]):this.finish(t,jo.InExpected,[o.CurlyR])}_parseWhileStatement(e){if(!this.peekKeyword("@while"))return null;const t=this.create(Me);return this.consumeToken(),t.addChild(this._parseBinaryExpr())?this._parseBody(t,e):this.finish(t,cr.ExpressionExpected,[o.CurlyR])}_parseFunctionBodyDeclaration(){return this._parseVariableDeclaration()||this._parseReturnStatement()||this._parseWarnAndDebug()||this._parseControlStatement(this._parseFunctionBodyDeclaration.bind(this))}_parseFunctionDeclaration(){if(!this.peekKeyword("@function"))return null;const e=this.create(ze);if(this.consumeToken(),!e.setIdentifier(this._parseIdent([ne.Function])))return this.finish(e,cr.IdentifierExpected,[o.CurlyR]);if(!this.accept(o.ParenthesisL))return this.finish(e,cr.LeftParenthesisExpected,[o.CurlyR]);if(e.getParameters().addChild(this._parseParameterDeclaration()))for(;this.accept(o.Comma)&&!this.peek(o.ParenthesisR);)if(!e.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(e,cr.VariableNameExpected);return this.accept(o.ParenthesisR)?this._parseBody(e,this._parseFunctionBodyDeclaration.bind(this)):this.finish(e,cr.RightParenthesisExpected,[o.CurlyR])}_parseReturnStatement(){if(!this.peekKeyword("@return"))return null;const e=this.createNode(ee.ReturnStatement);return this.consumeToken(),e.addChild(this._parseExpr())?this.finish(e):this.finish(e,cr.ExpressionExpected)}_parseMixinDeclaration(){if(!this.peekKeyword("@mixin"))return null;const e=this.create(xt);if(this.consumeToken(),!e.setIdentifier(this._parseIdent([ne.Mixin])))return this.finish(e,cr.IdentifierExpected,[o.CurlyR]);if(this.accept(o.ParenthesisL)){if(e.getParameters().addChild(this._parseParameterDeclaration()))for(;this.accept(o.Comma)&&!this.peek(o.ParenthesisR);)if(!e.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(e,cr.VariableNameExpected);if(!this.accept(o.ParenthesisR))return this.finish(e,cr.RightParenthesisExpected,[o.CurlyR])}return this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_parseParameterDeclaration(){const e=this.create(Te);return e.setIdentifier(this._parseVariable())?(this.accept(Uo),this.accept(o.Colon)&&!e.setDefaultValue(this._parseExpr(!0))?this.finish(e,cr.VariableValueExpected,[],[o.Comma,o.ParenthesisR]):this.finish(e)):null}_parseMixinContent(){if(!this.peekKeyword("@content"))return null;const e=this.create(kt);if(this.consumeToken(),this.accept(o.ParenthesisL)){if(e.getArguments().addChild(this._parseFunctionArgument()))for(;this.accept(o.Comma)&&!this.peek(o.ParenthesisR);)if(!e.getArguments().addChild(this._parseFunctionArgument()))return this.finish(e,cr.ExpressionExpected);if(!this.accept(o.ParenthesisR))return this.finish(e,cr.RightParenthesisExpected)}return this.finish(e)}_parseMixinReference(){if(!this.peekKeyword("@include"))return null;const e=this.create(St);this.consumeToken();const t=this._parseIdent([ne.Mixin]);if(!e.setIdentifier(t))return this.finish(e,cr.IdentifierExpected,[o.CurlyR]);if(!this.hasWhitespace()&&this.acceptDelim(".")&&!this.hasWhitespace()){const n=this._parseIdent([ne.Mixin]);if(!n)return this.finish(e,cr.IdentifierExpected,[o.CurlyR]);const i=this.create(Tt);t.referenceTypes=[ne.Module],i.setIdentifier(t),e.setIdentifier(n),e.addChild(i)}if(this.accept(o.ParenthesisL)){if(e.getArguments().addChild(this._parseFunctionArgument()))for(;this.accept(o.Comma)&&!this.peek(o.ParenthesisR);)if(!e.getArguments().addChild(this._parseFunctionArgument()))return this.finish(e,cr.ExpressionExpected);if(!this.accept(o.ParenthesisR))return this.finish(e,cr.RightParenthesisExpected)}return(this.peekIdent("using")||this.peek(o.CurlyL))&&e.setContent(this._parseMixinContentDeclaration()),this.finish(e)}_parseMixinContentDeclaration(){const e=this.create(Ct);if(this.acceptIdent("using")){if(!this.accept(o.ParenthesisL))return this.finish(e,cr.LeftParenthesisExpected,[o.CurlyL]);if(e.getParameters().addChild(this._parseParameterDeclaration()))for(;this.accept(o.Comma)&&!this.peek(o.ParenthesisR);)if(!e.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(e,cr.VariableNameExpected);if(!this.accept(o.ParenthesisR))return this.finish(e,cr.RightParenthesisExpected,[o.CurlyL])}return this.peek(o.CurlyL)&&this._parseBody(e,this._parseMixinReferenceBodyStatement.bind(this)),this.finish(e)}_parseMixinReferenceBodyStatement(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()}_parseFunctionArgument(){const e=this.create(Ne),t=this.mark(),n=this._parseVariable();if(n)if(this.accept(o.Colon))e.setIdentifier(n);else{if(this.accept(Uo))return e.setValue(n),this.finish(e);this.restoreAtMark(t)}return e.setValue(this._parseExpr(!0))?(this.accept(Uo),e.addChild(this._parsePrio()),this.finish(e)):e.setValue(this._tryParsePrio())?this.finish(e):null}_parseURLArgument(){const e=this.mark(),t=super._parseURLArgument();if(!t||!this.peek(o.ParenthesisR)){this.restoreAtMark(e);const t=this.create(pe);return t.addChild(this._parseBinaryExpr()),this.finish(t)}return t}_parseOperation(){if(!this.peek(o.ParenthesisL))return null;const e=this.create(pe);for(this.consumeToken();e.addChild(this._parseListElement());)this.accept(o.Comma);return this.accept(o.ParenthesisR)?this.finish(e):this.finish(e,cr.RightParenthesisExpected)}_parseListElement(){const e=this.create(Ft),t=this._parseBinaryExpr();if(!t)return null;if(this.accept(o.Colon)){if(e.setKey(t),!e.setValue(this._parseBinaryExpr()))return this.finish(e,cr.ExpressionExpected)}else e.setValue(t);return this.finish(e)}_parseUse(){if(!this.peekKeyword("@use"))return null;const e=this.create(qe);if(this.consumeToken(),!e.addChild(this._parseStringLiteral()))return this.finish(e,cr.StringLiteralExpected);if(!this.peek(o.SemiColon)&&!this.peek(o.EOF)){if(!this.peekRegExp(o.Ident,/as|with/))return this.finish(e,cr.UnknownKeyword);if(this.acceptIdent("as")&&!e.setIdentifier(this._parseIdent([ne.Module]))&&!this.acceptDelim("*"))return this.finish(e,cr.IdentifierOrWildcardExpected);if(this.acceptIdent("with")){if(!this.accept(o.ParenthesisL))return this.finish(e,cr.LeftParenthesisExpected,[o.ParenthesisR]);if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,cr.VariableNameExpected);for(;this.accept(o.Comma)&&!this.peek(o.ParenthesisR);)if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,cr.VariableNameExpected);if(!this.accept(o.ParenthesisR))return this.finish(e,cr.RightParenthesisExpected)}}return this.accept(o.SemiColon)||this.accept(o.EOF)?this.finish(e):this.finish(e,cr.SemiColonExpected)}_parseModuleConfigDeclaration(){const e=this.create(je);return e.setIdentifier(this._parseVariable())?this.accept(o.Colon)&&e.setValue(this._parseExpr(!0))?!this.accept(o.Exclamation)||!this.hasWhitespace()&&this.acceptIdent("default")?this.finish(e):this.finish(e,cr.UnknownKeyword):this.finish(e,cr.VariableValueExpected,[],[o.Comma,o.ParenthesisR]):null}_parseForward(){if(!this.peekKeyword("@forward"))return null;const e=this.create(Ke);if(this.consumeToken(),!e.addChild(this._parseStringLiteral()))return this.finish(e,cr.StringLiteralExpected);if(this.acceptIdent("as")){const t=this._parseIdent([ne.Forward]);if(!e.setIdentifier(t))return this.finish(e,cr.IdentifierExpected);if(this.hasWhitespace()||!this.acceptDelim("*"))return this.finish(e,cr.WildcardExpected)}if(this.acceptIdent("with")){if(!this.accept(o.ParenthesisL))return this.finish(e,cr.LeftParenthesisExpected,[o.ParenthesisR]);if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,cr.VariableNameExpected);for(;this.accept(o.Comma)&&!this.peek(o.ParenthesisR);)if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,cr.VariableNameExpected);if(!this.accept(o.ParenthesisR))return this.finish(e,cr.RightParenthesisExpected)}else if((this.peekIdent("hide")||this.peekIdent("show"))&&!e.addChild(this._parseForwardVisibility()))return this.finish(e,cr.IdentifierOrVariableExpected);return this.accept(o.SemiColon)||this.accept(o.EOF)?this.finish(e):this.finish(e,cr.SemiColonExpected)}_parseForwardVisibility(){const e=this.create(He);for(e.setIdentifier(this._parseIdent());e.addChild(this._parseVariable()||this._parseIdent());)this.accept(o.Comma);return e.getChildren().length>1?e:null}_parseSupportsCondition(){return this._parseInterpolation()||super._parseSupportsCondition()}},Ho=Dt("Sass documentation"),Go=class e extends Ts{constructor(t,n){super("$",t,n),Qo(e.scssModuleLoaders),Qo(e.scssModuleBuiltIns)}isImportPathParent(e){return e===ee.Forward||e===ee.Use||super.isImportPathParent(e)}getCompletionForImportPath(t,n){const i=t.getParent().type;if(i===ee.Forward||i===ee.Use)for(let r of e.scssModuleBuiltIns){const e={label:r.label,documentation:r.documentation,textEdit:vn.replace(this.getCompletionRange(t),`'${r.label}'`),kind:jn.Module};n.items.push(e)}return super.getCompletionForImportPath(t,n)}createReplaceFunction(){let t=1;return(n,i)=>"\\"+i+": ${"+t+++":"+(e.variableDefaults[i]||"")+"}"}createFunctionProposals(e,t,n,i){for(const r of e){const e=r.func.replace(/\[?(\$\w+)\]?/g,this.createReplaceFunction()),s={label:r.func.substr(0,r.func.indexOf("(")),detail:r.func,documentation:r.desc,textEdit:vn.replace(this.getCompletionRange(t),e),insertTextFormat:Hn.Snippet,kind:jn.Function};n&&(s.sortText="z"),i.items.push(s)}return i}getCompletionsForSelector(t,n,i){return this.createFunctionProposals(e.selectorFuncs,null,!0,i),super.getCompletionsForSelector(t,n,i)}getTermProposals(t,n,i){let r=e.builtInFuncs;return t&&(r=r.filter((e=>!e.type||!t.restrictions||-1!==t.restrictions.indexOf(e.type)))),this.createFunctionProposals(r,n,!0,i),super.getTermProposals(t,n,i)}getColorProposals(t,n,i){return this.createFunctionProposals(e.colorProposals,n,!1,i),super.getColorProposals(t,n,i)}getCompletionsForDeclarationProperty(e,t){return this.getCompletionForAtDirectives(t),this.getCompletionsForSelector(null,!0,t),super.getCompletionsForDeclarationProperty(e,t)}getCompletionsForExtendsReference(e,t,n){const i=this.getSymbolContext().findSymbolsAtOffset(this.offset,ne.Rule);for(const r of i){const e={label:r.name,textEdit:vn.replace(this.getCompletionRange(t),r.name),kind:jn.Function};n.items.push(e)}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}};function Qo(e){e.forEach((e=>{if(e.documentation&&e.references&&e.references.length>0){const t="string"===typeof e.documentation?{kind:"markdown",value:e.documentation}:{kind:"markdown",value:e.documentation.value};t.value+="\n\n",t.value+=e.references.map((e=>`[${e.name}](${e.url})`)).join(" | "),e.documentation=t}}))}Go.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"},Go.colorProposals=[{func:"red($color)",desc:Dt("Gets the red component of a color.")},{func:"green($color)",desc:Dt("Gets the green component of a color.")},{func:"blue($color)",desc:Dt("Gets the blue component of a color.")},{func:"mix($color, $color, [$weight])",desc:Dt("Mixes two colors together.")},{func:"hue($color)",desc:Dt("Gets the hue component of a color.")},{func:"saturation($color)",desc:Dt("Gets the saturation component of a color.")},{func:"lightness($color)",desc:Dt("Gets the lightness component of a color.")},{func:"adjust-hue($color, $degrees)",desc:Dt("Changes the hue of a color.")},{func:"lighten($color, $amount)",desc:Dt("Makes a color lighter.")},{func:"darken($color, $amount)",desc:Dt("Makes a color darker.")},{func:"saturate($color, $amount)",desc:Dt("Makes a color more saturated.")},{func:"desaturate($color, $amount)",desc:Dt("Makes a color less saturated.")},{func:"grayscale($color)",desc:Dt("Converts a color to grayscale.")},{func:"complement($color)",desc:Dt("Returns the complement of a color.")},{func:"invert($color)",desc:Dt("Returns the inverse of a color.")},{func:"alpha($color)",desc:Dt("Gets the opacity component of a color.")},{func:"opacity($color)",desc:"Gets the alpha component (opacity) of a color."},{func:"rgba($color, $alpha)",desc:Dt("Changes the alpha component for a color.")},{func:"opacify($color, $amount)",desc:Dt("Makes a color more opaque.")},{func:"fade-in($color, $amount)",desc:Dt("Makes a color more opaque.")},{func:"transparentize($color, $amount)",desc:Dt("Makes a color more transparent.")},{func:"fade-out($color, $amount)",desc:Dt("Makes a color more transparent.")},{func:"adjust-color($color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha])",desc:Dt("Increases or decreases one or more components of a color.")},{func:"scale-color($color, [$red], [$green], [$blue], [$saturation], [$lightness], [$alpha])",desc:Dt("Fluidly scales one or more properties of a color.")},{func:"change-color($color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha])",desc:Dt("Changes one or more properties of a color.")},{func:"ie-hex-str($color)",desc:Dt("Converts a color into the format understood by IE filters.")}],Go.selectorFuncs=[{func:"selector-nest($selectors\u2026)",desc:Dt("Nests selector beneath one another like they would be nested in the stylesheet.")},{func:"selector-append($selectors\u2026)",desc:Dt("Appends selectors to one another without spaces in between.")},{func:"selector-extend($selector, $extendee, $extender)",desc:Dt("Extends $extendee with $extender within $selector.")},{func:"selector-replace($selector, $original, $replacement)",desc:Dt("Replaces $original with $replacement within $selector.")},{func:"selector-unify($selector1, $selector2)",desc:Dt("Unifies two selectors to produce a selector that matches elements matched by both.")},{func:"is-superselector($super, $sub)",desc:Dt("Returns whether $super matches all the elements $sub does, and possibly more.")},{func:"simple-selectors($selector)",desc:Dt("Returns the simple selectors that comprise a compound selector.")},{func:"selector-parse($selector)",desc:Dt("Parses a selector into the format returned by &.")}],Go.builtInFuncs=[{func:"unquote($string)",desc:Dt("Removes quotes from a string.")},{func:"quote($string)",desc:Dt("Adds quotes to a string.")},{func:"str-length($string)",desc:Dt("Returns the number of characters in a string.")},{func:"str-insert($string, $insert, $index)",desc:Dt("Inserts $insert into $string at $index.")},{func:"str-index($string, $substring)",desc:Dt("Returns the index of the first occurance of $substring in $string.")},{func:"str-slice($string, $start-at, [$end-at])",desc:Dt("Extracts a substring from $string.")},{func:"to-upper-case($string)",desc:Dt("Converts a string to upper case.")},{func:"to-lower-case($string)",desc:Dt("Converts a string to lower case.")},{func:"percentage($number)",desc:Dt("Converts a unitless number to a percentage."),type:"percentage"},{func:"round($number)",desc:Dt("Rounds a number to the nearest whole number.")},{func:"ceil($number)",desc:Dt("Rounds a number up to the next whole number.")},{func:"floor($number)",desc:Dt("Rounds a number down to the previous whole number.")},{func:"abs($number)",desc:Dt("Returns the absolute value of a number.")},{func:"min($numbers)",desc:Dt("Finds the minimum of several numbers.")},{func:"max($numbers)",desc:Dt("Finds the maximum of several numbers.")},{func:"random([$limit])",desc:Dt("Returns a random number.")},{func:"length($list)",desc:Dt("Returns the length of a list.")},{func:"nth($list, $n)",desc:Dt("Returns a specific item in a list.")},{func:"set-nth($list, $n, $value)",desc:Dt("Replaces the nth item in a list.")},{func:"join($list1, $list2, [$separator])",desc:Dt("Joins together two lists into one.")},{func:"append($list1, $val, [$separator])",desc:Dt("Appends a single value onto the end of a list.")},{func:"zip($lists)",desc:Dt("Combines several lists into a single multidimensional list.")},{func:"index($list, $value)",desc:Dt("Returns the position of a value within a list.")},{func:"list-separator(#list)",desc:Dt("Returns the separator of a list.")},{func:"map-get($map, $key)",desc:Dt("Returns the value in a map associated with a given key.")},{func:"map-merge($map1, $map2)",desc:Dt("Merges two maps together into a new map.")},{func:"map-remove($map, $keys)",desc:Dt("Returns a new map with keys removed.")},{func:"map-keys($map)",desc:Dt("Returns a list of all keys in a map.")},{func:"map-values($map)",desc:Dt("Returns a list of all values in a map.")},{func:"map-has-key($map, $key)",desc:Dt("Returns whether a map has a value associated with a given key.")},{func:"keywords($args)",desc:Dt("Returns the keywords passed to a function that takes variable arguments.")},{func:"feature-exists($feature)",desc:Dt("Returns whether a feature exists in the current Sass runtime.")},{func:"variable-exists($name)",desc:Dt("Returns whether a variable with the given name exists in the current scope.")},{func:"global-variable-exists($name)",desc:Dt("Returns whether a variable with the given name exists in the global scope.")},{func:"function-exists($name)",desc:Dt("Returns whether a function with the given name exists.")},{func:"mixin-exists($name)",desc:Dt("Returns whether a mixin with the given name exists.")},{func:"inspect($value)",desc:Dt("Returns the string representation of a value as it would be represented in Sass.")},{func:"type-of($value)",desc:Dt("Returns the type of a value.")},{func:"unit($number)",desc:Dt("Returns the unit(s) associated with a number.")},{func:"unitless($number)",desc:Dt("Returns whether a number has units.")},{func:"comparable($number1, $number2)",desc:Dt("Returns whether two numbers can be added, subtracted, or compared.")},{func:"call($name, $args\u2026)",desc:Dt("Dynamically calls a Sass function.")}],Go.scssAtDirectives=[{label:"@extend",documentation:Dt("Inherits the styles of another selector."),kind:jn.Keyword},{label:"@at-root",documentation:Dt("Causes one or more rules to be emitted at the root of the document."),kind:jn.Keyword},{label:"@debug",documentation:Dt("Prints the value of an expression to the standard error output stream. Useful for debugging complicated Sass files."),kind:jn.Keyword},{label:"@warn",documentation:Dt("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:jn.Keyword},{label:"@error",documentation:Dt("Throws the value of an expression as a fatal error with stack trace. Useful for validating arguments to mixins and functions."),kind:jn.Keyword},{label:"@if",documentation:Dt("Includes the body if the expression does not evaluate to `false` or `null`."),insertText:"@if ${1:expr} {\n\t$0\n}",insertTextFormat:Hn.Snippet,kind:jn.Keyword},{label:"@for",documentation:Dt("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\t$0\n}",insertTextFormat:Hn.Snippet,kind:jn.Keyword},{label:"@each",documentation:Dt("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} {\n\t$0\n}",insertTextFormat:Hn.Snippet,kind:jn.Keyword},{label:"@while",documentation:Dt("While loop that takes an expression and repeatedly outputs the nested styles until the statement evaluates to `false`."),insertText:"@while ${1:condition} {\n\t$0\n}",insertTextFormat:Hn.Snippet,kind:jn.Keyword},{label:"@mixin",documentation:Dt("Defines styles that can be re-used throughout the stylesheet with `@include`."),insertText:"@mixin ${1:name} {\n\t$0\n}",insertTextFormat:Hn.Snippet,kind:jn.Keyword},{label:"@include",documentation:Dt("Includes the styles defined by another mixin into the current rule."),kind:jn.Keyword},{label:"@function",documentation:Dt("Defines complex operations that can be re-used throughout stylesheets."),kind:jn.Keyword}],Go.scssModuleLoaders=[{label:"@use",documentation:Dt("Loads mixins, functions, and variables from other Sass stylesheets as 'modules', and combines CSS from multiple stylesheets together."),references:[{name:Ho,url:"https://sass-lang.com/documentation/at-rules/use"}],insertText:"@use $0;",insertTextFormat:Hn.Snippet,kind:jn.Keyword},{label:"@forward",documentation:Dt("Loads a Sass stylesheet and makes its mixins, functions, and variables available when this stylesheet is loaded with the @use rule."),references:[{name:Ho,url:"https://sass-lang.com/documentation/at-rules/forward"}],insertText:"@forward $0;",insertTextFormat:Hn.Snippet,kind:jn.Keyword}],Go.scssModuleBuiltIns=[{label:"sass:math",documentation:Dt("Provides functions that operate on numbers."),references:[{name:Ho,url:"https://sass-lang.com/documentation/modules/math"}]},{label:"sass:string",documentation:Dt("Makes it easy to combine, search, or split apart strings."),references:[{name:Ho,url:"https://sass-lang.com/documentation/modules/string"}]},{label:"sass:color",documentation:Dt("Generates new colors based on existing ones, making it easy to build color themes."),references:[{name:Ho,url:"https://sass-lang.com/documentation/modules/color"}]},{label:"sass:list",documentation:Dt("Lets you access and modify values in lists."),references:[{name:Ho,url:"https://sass-lang.com/documentation/modules/list"}]},{label:"sass:map",documentation:Dt("Makes it possible to look up the value associated with a key in a map, and much more."),references:[{name:Ho,url:"https://sass-lang.com/documentation/modules/map"}]},{label:"sass:selector",documentation:Dt("Provides access to Sass\u2019s powerful selector engine."),references:[{name:Ho,url:"https://sass-lang.com/documentation/modules/selector"}]},{label:"sass:meta",documentation:Dt("Exposes the details of Sass\u2019s inner workings."),references:[{name:Ho,url:"https://sass-lang.com/documentation/modules/meta"}]}];var Jo,Yo="/".charCodeAt(0),Xo="\n".charCodeAt(0),Zo="\r".charCodeAt(0),ea="\f".charCodeAt(0),ta="`".charCodeAt(0),na=".".charCodeAt(0),ia=o.CustomToken,ra=ia++,sa=class extends re{scanNext(e){const t=this.escapedJavaScript();return null!==t?this.finishToken(e,t):this.stream.advanceIfChars([na,na,na])?this.finishToken(e,ra):super.scanNext(e)}comment(){return!!super.comment()||!(this.inURL||!this.stream.advanceIfChars([Yo,Yo]))&&(this.stream.advanceWhileChar((e=>{switch(e){case Xo:case Zo:case ea:return!1;default:return!0}})),!0)}escapedJavaScript(){return this.stream.peekChar()===ta?(this.stream.advance(1),this.stream.advanceWhileChar((e=>e!==ta)),this.stream.advanceIfChar(ta)?o.EscapedJavaScript:o.BadEscapedJavaScript):null}},oa=class extends as{constructor(){super(new sa)}_parseStylesheetStatement(e=!1){return this.peek(o.AtKeyword)?this._parseVariableDeclaration()||this._parsePlugin()||super._parseStylesheetAtStatement(e):this._tryParseMixinDeclaration()||this._tryParseMixinReference()||this._parseFunction()||this._parseRuleset(!0)}_parseImport(){if(!this.peekKeyword("@import")&&!this.peekKeyword("@import-once"))return null;const e=this.create($e);if(this.consumeToken(),this.accept(o.ParenthesisL)){if(!this.accept(o.Ident))return this.finish(e,cr.IdentifierExpected,[o.SemiColon]);do{if(!this.accept(o.Comma))break}while(this.accept(o.Ident));if(!this.accept(o.ParenthesisR))return this.finish(e,cr.RightParenthesisExpected,[o.SemiColon])}return e.addChild(this._parseURILiteral())||e.addChild(this._parseStringLiteral())?(this.peek(o.SemiColon)||this.peek(o.EOF)||e.setMedialist(this._parseMediaQueryList()),this._completeParseImport(e)):this.finish(e,cr.URIOrStringExpected,[o.SemiColon])}_parsePlugin(){if(!this.peekKeyword("@plugin"))return null;const e=this.createNode(ee.Plugin);return this.consumeToken(),e.addChild(this._parseStringLiteral())?this.accept(o.SemiColon)?this.finish(e):this.finish(e,cr.SemiColonExpected):this.finish(e,cr.StringLiteralExpected)}_parseMediaQuery(){const e=super._parseMediaQuery();if(!e){const e=this.create(nt);return e.addChild(this._parseVariable())?this.finish(e):null}return e}_parseMediaDeclaration(e=!1){return this._tryParseRuleset(e)||this._tryToParseDeclaration()||this._tryParseMixinDeclaration()||this._tryParseMixinReference()||this._parseDetachedRuleSetMixin()||this._parseStylesheetStatement(e)}_parseMediaFeatureName(){return this._parseIdent()||this._parseVariable()}_parseVariableDeclaration(e=[]){const t=this.create(vt),n=this.mark();if(!t.setVariable(this._parseVariable(!0)))return null;if(!this.accept(o.Colon))return this.restoreAtMark(n),null;if(this.prevToken&&(t.colonPosition=this.prevToken.offset),t.setValue(this._parseDetachedRuleSet()))t.needsSemicolon=!1;else if(!t.setValue(this._parseExpr()))return this.finish(t,cr.VariableValueExpected,[],e);return t.addChild(this._parsePrio()),this.peek(o.SemiColon)&&(t.semicolonPosition=this.token.offset),this.finish(t)}_parseDetachedRuleSet(){let e=this.mark();if(this.peekDelim("#")||this.peekDelim(".")){if(this.consumeToken(),this.hasWhitespace()||!this.accept(o.ParenthesisL))return this.restoreAtMark(e),null;{let t=this.create(xt);if(t.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(o.Comma)||this.accept(o.SemiColon))&&!this.peek(o.ParenthesisR);)t.getParameters().addChild(this._parseMixinParameter())||this.markError(t,cr.IdentifierExpected,[],[o.ParenthesisR]);if(!this.accept(o.ParenthesisR))return this.restoreAtMark(e),null}}if(!this.peek(o.CurlyL))return null;const t=this.create(ye);return this._parseBody(t,this._parseDetachedRuleSetBody.bind(this)),this.finish(t)}_parseDetachedRuleSetBody(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()}_addLookupChildren(e){if(!e.addChild(this._parseLookupValue()))return!1;let t=!1;for(;this.peek(o.BracketL)&&(t=!0),e.addChild(this._parseLookupValue());)t=!1;return!t}_parseLookupValue(){const e=this.create(pe),t=this.mark();return this.accept(o.BracketL)&&((e.addChild(this._parseVariable(!1,!0))||e.addChild(this._parsePropertyIdentifier()))&&this.accept(o.BracketR)||this.accept(o.BracketR))?e:(this.restoreAtMark(t),null)}_parseVariable(e=!1,t=!1){const n=!e&&this.peekDelim("$");if(!this.peekDelim("@")&&!n&&!this.peek(o.AtKeyword))return null;const i=this.create(wt),r=this.mark();for(;this.acceptDelim("@")||!e&&this.acceptDelim("$");)if(this.hasWhitespace())return this.restoreAtMark(r),null;return(this.accept(o.AtKeyword)||this.accept(o.Ident))&&(t||!this.peek(o.BracketL)||this._addLookupChildren(i))?i:(this.restoreAtMark(r),null)}_parseTermExpression(){return this._parseVariable()||this._parseEscaped()||super._parseTermExpression()||this._tryParseMixinReference(!1)}_parseEscaped(){if(this.peek(o.EscapedJavaScript)||this.peek(o.BadEscapedJavaScript)){const e=this.createNode(ee.EscapedValue);return this.consumeToken(),this.finish(e)}if(this.peekDelim("~")){const e=this.createNode(ee.EscapedValue);return this.consumeToken(),this.accept(o.String)||this.accept(o.EscapedJavaScript)?this.finish(e):this.finish(e,cr.TermExpected)}return null}_parseOperator(){const e=this._parseGuardOperator();return e||super._parseOperator()}_parseGuardOperator(){if(this.peekDelim(">")){const e=this.createNode(ee.Operator);return this.consumeToken(),this.acceptDelim("="),e}if(this.peekDelim("=")){const e=this.createNode(ee.Operator);return this.consumeToken(),this.acceptDelim("<"),e}if(this.peekDelim("<")){const e=this.createNode(ee.Operator);return this.consumeToken(),this.acceptDelim("="),e}return null}_parseRuleSetDeclaration(){return this.peek(o.AtKeyword)?this._parseKeyframe()||this._parseMedia(!0)||this._parseImport()||this._parseSupports(!0)||this._parseLayer()||this._parsePropertyAtRule()||this._parseContainer(!0)||this._parseDetachedRuleSetMixin()||this._parseVariableDeclaration()||this._parseRuleSetDeclarationAtStatement():this._tryParseMixinDeclaration()||this._tryParseRuleset(!0)||this._tryParseMixinReference()||this._parseFunction()||this._parseExtend()||this._parseDeclaration()}_parseKeyframeIdent(){return this._parseIdent([ne.Keyframe])||this._parseVariable()}_parseKeyframeSelector(){return this._parseDetachedRuleSetMixin()||super._parseKeyframeSelector()}_parseSelector(e){const t=this.create(_e);let n=!1;for(e&&(n=t.addChild(this._parseCombinator()));t.addChild(this._parseSimpleSelector());){n=!0;const e=this.mark();if(t.addChild(this._parseGuard())&&this.peek(o.CurlyL))break;this.restoreAtMark(e),t.addChild(this._parseCombinator())}return n?this.finish(t):null}_parseNestingSelector(){if(this.peekDelim("&")){const e=this.createNode(ee.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(o.Num)||this.accept(o.Dimension)||e.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(e)}return null}_parseSelectorIdent(){if(!this.peekInterpolatedIdent())return null;const e=this.createNode(ee.SelectorInterpolation);return this._acceptInterpolatedIdent(e)?this.finish(e):null}_parsePropertyIdentifier(e=!1){const t=/^[\w-]+/;if(!this.peekInterpolatedIdent()&&!this.peekRegExp(this.token.type,t))return null;const n=this.mark(),i=this.create(ge);i.isCustomProperty=this.acceptDelim("-")&&this.acceptDelim("-");let r=!1;return r=e?i.isCustomProperty?i.addChild(this._parseIdent()):i.addChild(this._parseRegexp(t)):i.isCustomProperty?this._acceptInterpolatedIdent(i):this._acceptInterpolatedIdent(i,t),r?(e||this.hasWhitespace()||(this.acceptDelim("+"),this.hasWhitespace()||this.acceptIdent("_")),this.finish(i)):(this.restoreAtMark(n),null)}peekInterpolatedIdent(){return this.peek(o.Ident)||this.peekDelim("@")||this.peekDelim("$")||this.peekDelim("-")}_acceptInterpolatedIdent(e,t){let n=!1;const i=()=>{const e=this.mark();return this.acceptDelim("-")&&(this.hasWhitespace()||this.acceptDelim("-"),this.hasWhitespace())?(this.restoreAtMark(e),null):this._parseInterpolation()},r=t?()=>this.acceptRegexp(t):()=>this.accept(o.Ident);for(;(r()||e.addChild(this._parseInterpolation()||this.try(i)))&&(n=!0,!this.hasWhitespace()););return n}_parseInterpolation(){const e=this.mark();if(this.peekDelim("@")||this.peekDelim("$")){const t=this.createNode(ee.Interpolation);return this.consumeToken(),this.hasWhitespace()||!this.accept(o.CurlyL)?(this.restoreAtMark(e),null):t.addChild(this._parseIdent())?this.accept(o.CurlyR)?this.finish(t):this.finish(t,cr.RightCurlyExpected):this.finish(t,cr.IdentifierExpected)}return null}_tryParseMixinDeclaration(){const e=this.mark(),t=this.create(xt);if(!t.setIdentifier(this._parseMixinDeclarationIdentifier())||!this.accept(o.ParenthesisL))return this.restoreAtMark(e),null;if(t.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(o.Comma)||this.accept(o.SemiColon))&&!this.peek(o.ParenthesisR);)t.getParameters().addChild(this._parseMixinParameter())||this.markError(t,cr.IdentifierExpected,[],[o.ParenthesisR]);return this.accept(o.ParenthesisR)?(t.setGuard(this._parseGuard()),this.peek(o.CurlyL)?this._parseBody(t,this._parseMixInBodyDeclaration.bind(this)):(this.restoreAtMark(e),null)):(this.restoreAtMark(e),null)}_parseMixInBodyDeclaration(){return this._parseFontFace()||this._parseRuleSetDeclaration()}_parseMixinDeclarationIdentifier(){let e;if(this.peekDelim("#")||this.peekDelim(".")){if(e=this.create(ge),this.consumeToken(),this.hasWhitespace()||!e.addChild(this._parseIdent()))return null}else{if(!this.peek(o.Hash))return null;e=this.create(ge),this.consumeToken()}return e.referenceTypes=[ne.Mixin],this.finish(e)}_parsePseudo(){if(!this.peek(o.Colon))return null;const e=this.mark(),t=this.create(_t);return this.consumeToken(),this.acceptIdent("extend")?this._completeExtends(t):(this.restoreAtMark(e),super._parsePseudo())}_parseExtend(){if(!this.peekDelim("&"))return null;const e=this.mark(),t=this.create(_t);return this.consumeToken(),!this.hasWhitespace()&&this.accept(o.Colon)&&this.acceptIdent("extend")?this._completeExtends(t):(this.restoreAtMark(e),null)}_completeExtends(e){if(!this.accept(o.ParenthesisL))return this.finish(e,cr.LeftParenthesisExpected);const t=e.getSelectors();if(!t.addChild(this._parseSelector(!0)))return this.finish(e,cr.SelectorExpected);for(;this.accept(o.Comma);)if(!t.addChild(this._parseSelector(!0)))return this.finish(e,cr.SelectorExpected);return this.accept(o.ParenthesisR)?this.finish(e):this.finish(e,cr.RightParenthesisExpected)}_parseDetachedRuleSetMixin(){if(!this.peek(o.AtKeyword))return null;const e=this.mark(),t=this.create(St);return!t.addChild(this._parseVariable(!0))||!this.hasWhitespace()&&this.accept(o.ParenthesisL)?this.accept(o.ParenthesisR)?this.finish(t):this.finish(t,cr.RightParenthesisExpected):(this.restoreAtMark(e),null)}_tryParseMixinReference(e=!0){const t=this.mark(),n=this.create(St);let i=this._parseMixinDeclarationIdentifier();for(;i;){this.acceptDelim(">");const e=this._parseMixinDeclarationIdentifier();if(!e)break;n.getNamespaces().addChild(i),i=e}if(!n.setIdentifier(i))return this.restoreAtMark(t),null;let r=!1;if(this.accept(o.ParenthesisL)){if(r=!0,n.getArguments().addChild(this._parseMixinArgument()))for(;(this.accept(o.Comma)||this.accept(o.SemiColon))&&!this.peek(o.ParenthesisR);)if(!n.getArguments().addChild(this._parseMixinArgument()))return this.finish(n,cr.ExpressionExpected);if(!this.accept(o.ParenthesisR))return this.finish(n,cr.RightParenthesisExpected);i.referenceTypes=[ne.Mixin]}else i.referenceTypes=[ne.Mixin,ne.Rule];return this.peek(o.BracketL)?e||this._addLookupChildren(n):n.addChild(this._parsePrio()),r||this.peek(o.SemiColon)||this.peek(o.CurlyR)||this.peek(o.EOF)?this.finish(n):(this.restoreAtMark(t),null)}_parseMixinArgument(){const e=this.create(Ne),t=this.mark(),n=this._parseVariable();return n&&(this.accept(o.Colon)?e.setIdentifier(n):this.restoreAtMark(t)),e.setValue(this._parseDetachedRuleSet()||this._parseExpr(!0))?this.finish(e):(this.restoreAtMark(t),null)}_parseMixinParameter(){const e=this.create(Te);if(this.peekKeyword("@rest")){const t=this.create(pe);return this.consumeToken(),this.accept(ra)?(e.setIdentifier(this.finish(t)),this.finish(e)):this.finish(e,cr.DotExpected,[],[o.Comma,o.ParenthesisR])}if(this.peek(ra)){const t=this.create(pe);return this.consumeToken(),e.setIdentifier(this.finish(t)),this.finish(e)}let t=!1;return e.setIdentifier(this._parseVariable())&&(this.accept(o.Colon),t=!0),e.setDefaultValue(this._parseDetachedRuleSet()||this._parseExpr(!0))||t?this.finish(e):null}_parseGuard(){if(!this.peekIdent("when"))return null;const e=this.create(Lt);if(this.consumeToken(),!e.getConditions().addChild(this._parseGuardCondition()))return this.finish(e,cr.ConditionExpected);for(;this.acceptIdent("and")||this.accept(o.Comma);)if(!e.getConditions().addChild(this._parseGuardCondition()))return this.finish(e,cr.ConditionExpected);return this.finish(e)}_parseGuardCondition(){const e=this.create(It);return e.isNegated=this.acceptIdent("not"),this.accept(o.ParenthesisL)?(e.addChild(this._parseExpr()),this.accept(o.ParenthesisR)?this.finish(e):this.finish(e,cr.RightParenthesisExpected)):e.isNegated?this.finish(e,cr.LeftParenthesisExpected):null}_parseFunction(){const e=this.mark(),t=this.create(Ie);if(!t.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(o.ParenthesisL))return this.restoreAtMark(e),null;if(t.getArguments().addChild(this._parseMixinArgument()))for(;(this.accept(o.Comma)||this.accept(o.SemiColon))&&!this.peek(o.ParenthesisR);)if(!t.getArguments().addChild(this._parseMixinArgument()))return this.finish(t,cr.ExpressionExpected);return this.accept(o.ParenthesisR)?this.finish(t):this.finish(t,cr.RightParenthesisExpected)}_parseFunctionIdentifier(){if(this.peekDelim("%")){const e=this.create(ge);return e.referenceTypes=[ne.Function],this.consumeToken(),this.finish(e)}return super._parseFunctionIdentifier()}_parseURLArgument(){const e=this.mark(),t=super._parseURLArgument();if(!t||!this.peek(o.ParenthesisR)){this.restoreAtMark(e);const t=this.create(pe);return t.addChild(this._parseBinaryExpr()),this.finish(t)}return t}},aa=class e extends Ts{constructor(e,t){super("@",e,t)}createFunctionProposals(e,t,n,i){for(const r of e){const e={label:r.name,detail:r.example,documentation:r.description,textEdit:vn.replace(this.getCompletionRange(t),r.name+"($0)"),insertTextFormat:Hn.Snippet,kind:jn.Function};n&&(e.sortText="z"),i.items.push(e)}return i}getTermProposals(t,n,i){let r=e.builtInProposals;return t&&(r=r.filter((e=>!e.type||!t.restrictions||-1!==t.restrictions.indexOf(e.type)))),this.createFunctionProposals(r,n,!0,i),super.getTermProposals(t,n,i)}getColorProposals(t,n,i){return this.createFunctionProposals(e.colorProposals,n,!1,i),super.getColorProposals(t,n,i)}getCompletionsForDeclarationProperty(e,t){return this.getCompletionsForSelector(null,!0,t),super.getCompletionsForDeclarationProperty(e,t)}};function la(e,t){const n=function(e){function t(t){return e.positionAt(t.offset).line}function n(t){return e.positionAt(t.offset+t.len).line}function i(){switch(e.languageId){case"scss":return new $o;case"less":return new sa;default:return new re}}function r(e,i){const r=t(e),s=n(e);return r!==s?{startLine:r,endLine:s,kind:i}:null}const s=[],a=[],l=i();l.ignoreComment=!1,l.setSource(e.getText());let c=l.scan(),h=null;for(;c.type!==o.EOF;){switch(c.type){case o.CurlyL:case zo:a.push({line:t(c),type:"brace",isStart:!0});break;case o.CurlyR:if(0!==a.length){const e=ca(a,"brace");if(!e)break;let t=n(c);"brace"===e.type&&(h&&n(h)!==t&&t--,e.line!==t&&s.push({startLine:e.line,endLine:t,kind:void 0}))}break;case o.Comment:{const i=e=>"#region"===e?{line:t(c),type:"comment",isStart:!0}:{line:n(c),type:"comment",isStart:!1},o=(t=>{const n=t.text.match(/^\s*\/\*\s*(#region|#endregion)\b\s*(.*?)\s*\*\//);if(n)return i(n[1]);if("scss"===e.languageId||"less"===e.languageId){const e=t.text.match(/^\s*\/\/\s*(#region|#endregion)\b\s*(.*?)\s*/);if(e)return i(e[1])}return null})(c);if(o)if(o.isStart)a.push(o);else{const e=ca(a,"comment");if(!e)break;"comment"===e.type&&e.line!==o.line&&s.push({startLine:e.line,endLine:o.line,kind:"region"})}else{const e=r(c,"comment");e&&s.push(e)}break}}h=c,c=l.scan()}return s}(e);return function(e,t){const n=t&&t.rangeLimit||Number.MAX_VALUE,i=e.sort(((e,t)=>{let n=e.startLine-t.startLine;return 0===n&&(n=e.endLine-t.endLine),n})),r=[];let s=-1;return i.forEach((e=>{e.startLine<s&&s<e.endLine||(r.push(e),s=e.endLine)})),r.length<n?r:r.slice(0,n)}(n,t)}function ca(e,t){if(0===e.length)return null;for(let n=e.length-1;n>=0;n--)if(e[n].type===t&&e[n].isStart)return e.splice(n,1)[0];return null}aa.builtInProposals=[{name:"if",example:"if(condition, trueValue [, falseValue]);",description:Dt("returns one of two values depending on a condition.")},{name:"boolean",example:"boolean(condition);",description:Dt('"store" a boolean test for later evaluation in a guard or if().')},{name:"length",example:"length(@list);",description:Dt("returns the number of elements in a value list")},{name:"extract",example:"extract(@list, index);",description:Dt("returns a value at the specified position in the list")},{name:"range",example:"range([start, ] end [, step]);",description:Dt("generate a list spanning a range of values")},{name:"each",example:"each(@list, ruleset);",description:Dt("bind the evaluation of a ruleset to each member of a list.")},{name:"escape",example:"escape(@string);",description:Dt("URL encodes a string")},{name:"e",example:"e(@string);",description:Dt("escape string content")},{name:"replace",example:"replace(@string, @pattern, @replacement[, @flags]);",description:Dt("string replace")},{name:"unit",example:"unit(@dimension, [@unit: '']);",description:Dt("remove or change the unit of a dimension")},{name:"color",example:"color(@string);",description:Dt("parses a string to a color"),type:"color"},{name:"convert",example:"convert(@value, unit);",description:Dt("converts numbers from one type into another")},{name:"data-uri",example:"data-uri([mimetype,] url);",description:Dt("inlines a resource and falls back to `url()`"),type:"url"},{name:"abs",description:Dt("absolute value of a number"),example:"abs(number);"},{name:"acos",description:Dt("arccosine - inverse of cosine function"),example:"acos(number);"},{name:"asin",description:Dt("arcsine - inverse of sine function"),example:"asin(number);"},{name:"ceil",example:"ceil(@number);",description:Dt("rounds up to an integer")},{name:"cos",description:Dt("cosine function"),example:"cos(number);"},{name:"floor",description:Dt("rounds down to an integer"),example:"floor(@number);"},{name:"percentage",description:Dt("converts to a %, e.g. 0.5 > 50%"),example:"percentage(@number);",type:"percentage"},{name:"round",description:Dt("rounds a number to a number of places"),example:"round(number, [places: 0]);"},{name:"sqrt",description:Dt("calculates square root of a number"),example:"sqrt(number);"},{name:"sin",description:Dt("sine function"),example:"sin(number);"},{name:"tan",description:Dt("tangent function"),example:"tan(number);"},{name:"atan",description:Dt("arctangent - inverse of tangent function"),example:"atan(number);"},{name:"pi",description:Dt("returns pi"),example:"pi();"},{name:"pow",description:Dt("first argument raised to the power of the second argument"),example:"pow(@base, @exponent);"},{name:"mod",description:Dt("first argument modulus second argument"),example:"mod(number, number);"},{name:"min",description:Dt("returns the lowest of one or more values"),example:"min(@x, @y);"},{name:"max",description:Dt("returns the lowest of one or more values"),example:"max(@x, @y);"}],aa.colorProposals=[{name:"argb",example:"argb(@color);",description:Dt("creates a #AARRGGBB")},{name:"hsl",example:"hsl(@hue, @saturation, @lightness);",description:Dt("creates a color")},{name:"hsla",example:"hsla(@hue, @saturation, @lightness, @alpha);",description:Dt("creates a color")},{name:"hsv",example:"hsv(@hue, @saturation, @value);",description:Dt("creates a color")},{name:"hsva",example:"hsva(@hue, @saturation, @value, @alpha);",description:Dt("creates a color")},{name:"hue",example:"hue(@color);",description:Dt("returns the `hue` channel of `@color` in the HSL space")},{name:"saturation",example:"saturation(@color);",description:Dt("returns the `saturation` channel of `@color` in the HSL space")},{name:"lightness",example:"lightness(@color);",description:Dt("returns the `lightness` channel of `@color` in the HSL space")},{name:"hsvhue",example:"hsvhue(@color);",description:Dt("returns the `hue` channel of `@color` in the HSV space")},{name:"hsvsaturation",example:"hsvsaturation(@color);",description:Dt("returns the `saturation` channel of `@color` in the HSV space")},{name:"hsvvalue",example:"hsvvalue(@color);",description:Dt("returns the `value` channel of `@color` in the HSV space")},{name:"red",example:"red(@color);",description:Dt("returns the `red` channel of `@color`")},{name:"green",example:"green(@color);",description:Dt("returns the `green` channel of `@color`")},{name:"blue",example:"blue(@color);",description:Dt("returns the `blue` channel of `@color`")},{name:"alpha",example:"alpha(@color);",description:Dt("returns the `alpha` channel of `@color`")},{name:"luma",example:"luma(@color);",description:Dt("returns the `luma` value (perceptual brightness) of `@color`")},{name:"saturate",example:"saturate(@color, 10%);",description:Dt("return `@color` 10% points more saturated")},{name:"desaturate",example:"desaturate(@color, 10%);",description:Dt("return `@color` 10% points less saturated")},{name:"lighten",example:"lighten(@color, 10%);",description:Dt("return `@color` 10% points lighter")},{name:"darken",example:"darken(@color, 10%);",description:Dt("return `@color` 10% points darker")},{name:"fadein",example:"fadein(@color, 10%);",description:Dt("return `@color` 10% points less transparent")},{name:"fadeout",example:"fadeout(@color, 10%);",description:Dt("return `@color` 10% points more transparent")},{name:"fade",example:"fade(@color, 50%);",description:Dt("return `@color` with 50% transparency")},{name:"spin",example:"spin(@color, 10);",description:Dt("return `@color` with a 10 degree larger in hue")},{name:"mix",example:"mix(@color1, @color2, [@weight: 50%]);",description:Dt("return a mix of `@color1` and `@color2`")},{name:"greyscale",example:"greyscale(@color);",description:Dt("returns a grey, 100% desaturated color")},{name:"contrast",example:"contrast(@color1, [@darkcolor: black], [@lightcolor: white], [@threshold: 43%]);",description:Dt("return `@darkcolor` if `@color1 is> 43% luma` otherwise return `@lightcolor`, see notes")},{name:"multiply",example:"multiply(@color1, @color2);"},{name:"screen",example:"screen(@color1, @color2);"},{name:"overlay",example:"overlay(@color1, @color2);"},{name:"softlight",example:"softlight(@color1, @color2);"},{name:"hardlight",example:"hardlight(@color1, @color2);"},{name:"difference",example:"difference(@color1, @color2);"},{name:"exclusion",example:"exclusion(@color1, @color2);"},{name:"average",example:"average(@color1, @color2);"},{name:"negation",example:"negation(@color1, @color2);"}],function(){var e=[,,function(e){function t(e){this.__parent=e,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}function n(e,t){this.__cache=[""],this.__indent_size=e.indent_size,this.__indent_string=e.indent_char,e.indent_with_tabs||(this.__indent_string=new Array(e.indent_size+1).join(e.indent_char)),t=t||"",e.indent_level>0&&(t=new Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=t,this.__base_string_length=t.length}function i(e,i){this.__indent_cache=new n(e,i),this.raw=!1,this._end_with_newline=e.end_with_newline,this.indent_size=e.indent_size,this.wrap_line_length=e.wrap_line_length,this.indent_empty_lines=e.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new t(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}t.prototype.clone_empty=function(){var e=new t(this.__parent);return e.set_indent(this.__indent_count,this.__alignment_count),e},t.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e]},t.prototype.has_match=function(e){for(var t=this.__items.length-1;t>=0;t--)if(this.__items[t].match(e))return!0;return!1},t.prototype.set_indent=function(e,t){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=t||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},t.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},t.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},t.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===e.__items[0]&&(e.__items.splice(0,1),e.__character_count-=1),!0}return!1},t.prototype.is_empty=function(){return 0===this.__items.length},t.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},t.prototype.push=function(e){this.__items.push(e);var t=e.lastIndexOf("\n");-1!==t?this.__character_count=e.length-t:this.__character_count+=e.length},t.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e},t.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},t.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},t.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),this.__character_count-=1},t.prototype.toString=function(){var e="";return this.is_empty()?this.__parent.indent_empty_lines&&(e=this.__parent.get_indent_string(this.__indent_count)):(e=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),e+=this.__items.join("")),e},n.prototype.get_indent_size=function(e,t){var n=this.__base_string_length;return t=t||0,e<0&&(n=0),n+=e*this.__indent_size,n+=t},n.prototype.get_indent_string=function(e,t){var n=this.__base_string;return t=t||0,e<0&&(e=0,n=""),t+=e*this.__indent_size,this.__ensure_cache(t),n+=this.__cache[t]},n.prototype.__ensure_cache=function(e){for(;e>=this.__cache.length;)this.__add_column()},n.prototype.__add_column=function(){var e=this.__cache.length,t=0,n="";this.__indent_size&&e>=this.__indent_size&&(e-=(t=Math.floor(e/this.__indent_size))*this.__indent_size,n=new Array(t+1).join(this.__indent_string)),e&&(n+=new Array(e+1).join(" ")),this.__cache.push(n)},i.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},i.prototype.get_line_number=function(){return this.__lines.length},i.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t)},i.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t)},i.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},i.prototype.add_new_line=function(e){return!(this.is_empty()||!e&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},i.prototype.get_code=function(e){this.trim(!0);var t=this.current_line.pop();t&&("\n"===t[t.length-1]&&(t=t.replace(/\n+$/g,"")),this.current_line.push(t)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==e&&(n=n.replace(/[\n]/g,e)),n},i.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},i.prototype.set_indent=function(e,t){return e=e||0,t=t||0,this.next_line.set_indent(e,t),this.__lines.length>1?(this.current_line.set_indent(e,t),!0):(this.current_line.set_indent(),!1)},i.prototype.add_raw_token=function(e){for(var t=0;t<e.newlines;t++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(e.whitespace_before),this.current_line.push(e.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},i.prototype.add_token=function(e){this.__add_space_before_token(),this.current_line.push(e),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},i.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},i.prototype.remove_indent=function(e){for(var t=this.__lines.length;e<t;)this.__lines[e]._remove_indent(),e++;this.current_line._remove_wrap_indent()},i.prototype.trim=function(e){for(e=void 0!==e&&e,this.current_line.trim();e&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},i.prototype.just_added_newline=function(){return this.current_line.is_empty()},i.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},i.prototype.ensure_empty_line_above=function(e,n){for(var i=this.__lines.length-2;i>=0;){var r=this.__lines[i];if(r.is_empty())break;if(0!==r.item(0).indexOf(e)&&r.item(-1)!==n){this.__lines.splice(i+1,0,new t(this)),this.previous_line=this.__lines[this.__lines.length-2];break}i--}},e.exports.Output=i},,,,function(e){function t(e,t){this.raw_options=n(e,t),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}function n(e,t){var n,r={};for(n in e=i(e))n!==t&&(r[n]=e[n]);if(t&&e[t])for(n in e[t])r[n]=e[t][n];return r}function i(e){var t,n={};for(t in e){n[t.replace(/-/g,"_")]=e[t]}return n}t.prototype._get_array=function(e,t){var n=this.raw_options[e],i=t||[];return"object"===typeof n?null!==n&&"function"===typeof n.concat&&(i=n.concat()):"string"===typeof n&&(i=n.split(/[^a-zA-Z0-9_\/\-]+/)),i},t.prototype._get_boolean=function(e,t){var n=this.raw_options[e];return void 0===n?!!t:!!n},t.prototype._get_characters=function(e,t){var n=this.raw_options[e],i=t||"";return"string"===typeof n&&(i=n.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),i},t.prototype._get_number=function(e,t){var n=this.raw_options[e];t=parseInt(t,10),isNaN(t)&&(t=0);var i=parseInt(n,10);return isNaN(i)&&(i=t),i},t.prototype._get_selection=function(e,t,n){var i=this._get_selection_list(e,t,n);if(1!==i.length)throw new Error("Invalid Option Value: The option '"+e+"' can only be one of the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return i[0]},t.prototype._get_selection_list=function(e,t,n){if(!t||0===t.length)throw new Error("Selection list cannot be empty.");if(n=n||[t[0]],!this._is_valid_selection(n,t))throw new Error("Invalid Default Value!");var i=this._get_array(e,n);if(!this._is_valid_selection(i,t))throw new Error("Invalid Option Value: The option '"+e+"' can contain only the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return i},t.prototype._is_valid_selection=function(e,t){return e.length&&t.length&&!e.some((function(e){return-1===t.indexOf(e)}))},e.exports.Options=t,e.exports.normalizeOpts=i,e.exports.mergeOpts=n},,function(e){var t=RegExp.prototype.hasOwnProperty("sticky");function n(e){this.__input=e||"",this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){this.__position>0&&(this.__position-=1)},n.prototype.hasNext=function(){return this.__position<this.__input_length},n.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__input.charAt(this.__position),this.__position+=1),e},n.prototype.peek=function(e){var t=null;return e=e||0,(e+=this.__position)>=0&&e<this.__input_length&&(t=this.__input.charAt(e)),t},n.prototype.__match=function(e,n){e.lastIndex=n;var i=e.exec(this.__input);return!i||t&&e.sticky||i.index!==n&&(i=null),i},n.prototype.test=function(e,t){return t=t||0,(t+=this.__position)>=0&&t<this.__input_length&&!!this.__match(e,t)},n.prototype.testChar=function(e,t){var n=this.peek(t);return e.lastIndex=0,null!==n&&e.test(n)},n.prototype.match=function(e){var t=this.__match(e,this.__position);return t?this.__position+=t[0].length:t=null,t},n.prototype.read=function(e,t,n){var i,r="";return e&&(i=this.match(e))&&(r+=i[0]),!t||!i&&e||(r+=this.readUntil(t,n)),r},n.prototype.readUntil=function(e,t){var n,i=this.__position;e.lastIndex=this.__position;var r=e.exec(this.__input);return r?(i=r.index,t&&(i+=r[0].length)):i=this.__input_length,n=this.__input.substring(this.__position,i),this.__position=i,n},n.prototype.readUntilAfter=function(e){return this.readUntil(e,!0)},n.prototype.get_regexp=function(e,n){var i=null,r="g";return n&&t&&(r="y"),"string"===typeof e&&""!==e?i=new RegExp(e,r):e&&(i=new RegExp(e.source,r)),i},n.prototype.get_literal_regexp=function(e){return RegExp(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},n.prototype.peekUntilAfter=function(e){var t=this.__position,n=this.readUntilAfter(e);return this.__position=t,n},n.prototype.lookBack=function(e){var t=this.__position-1;return t>=e.length&&this.__input.substring(t-e.length,t).toLowerCase()===e},e.exports.InputScanner=n},,,,,function(e){function t(e,t){e="string"===typeof e?e:e.source,t="string"===typeof t?t:t.source,this.__directives_block_pattern=new RegExp(e+/ beautify( \w+[:]\w+)+ /.source+t,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(e+/\sbeautify\signore:end\s/.source+t,"g")}t.prototype.get_directives=function(e){if(!e.match(this.__directives_block_pattern))return null;var t={};this.__directive_pattern.lastIndex=0;for(var n=this.__directive_pattern.exec(e);n;)t[n[1]]=n[2],n=this.__directive_pattern.exec(e);return t},t.prototype.readIgnored=function(e){return e.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.Directives=t},,function(e,t,n){var i=n(16).Beautifier,r=n(17).Options;e.exports=function(e,t){return new i(e,t).beautify()},e.exports.defaultOptions=function(){return new r}},function(e,t,n){var i=n(17).Options,r=n(2).Output,s=n(8).InputScanner,o=new(0,n(13).Directives)(/\/\*/,/\*\//),a=/\r\n|[\r\n]/,l=/\r\n|[\r\n]/g,c=/\s/,h=/(?:\s|\n)+/g,d=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,u=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function p(e,t){this._source_text=e||"",this._options=new i(t),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}p.prototype.eatString=function(e){var t="";for(this._ch=this._input.next();this._ch;){if(t+=this._ch,"\\"===this._ch)t+=this._input.next();else if(-1!==e.indexOf(this._ch)||"\n"===this._ch)break;this._ch=this._input.next()}return t},p.prototype.eatWhitespace=function(e){for(var t=c.test(this._input.peek()),n=0;c.test(this._input.peek());)this._ch=this._input.next(),e&&"\n"===this._ch&&(0===n||n<this._options.max_preserve_newlines)&&(n++,this._output.add_new_line(!0));return t},p.prototype.foundNestedPseudoClass=function(){for(var e=0,t=1,n=this._input.peek(t);n;){if("{"===n)return!0;if("("===n)e+=1;else if(")"===n){if(0===e)return!1;e-=1}else if(";"===n||"}"===n)return!1;t++,n=this._input.peek(t)}return!1},p.prototype.print_string=function(e){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(e)},p.prototype.preserveSingleSpace=function(e){e&&(this._output.space_before_token=!0)},p.prototype.indent=function(){this._indentLevel++},p.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},p.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._source_text,t=this._options.eol;"auto"===t&&(t="\n",e&&a.test(e||"")&&(t=e.match(a)[0]));var n=(e=e.replace(l,"\n")).match(/^[\t ]*/)[0];this._output=new r(this._options,n),this._input=new s(e),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var i,p,m=0,f=!1,g=!1,b=!1,v=!1,y=!1,w=this._ch,_=!1;i=""!==this._input.read(h),p=w,this._ch=this._input.next(),"\\"===this._ch&&this._input.hasNext()&&(this._ch+=this._input.next()),w=this._ch,this._ch;)if("/"===this._ch&&"*"===this._input.peek()){this._output.add_new_line(),this._input.back();var k=this._input.read(d),C=o.get_directives(k);C&&"start"===C.ignore&&(k+=o.readIgnored(this._input)),this.print_string(k),this.eatWhitespace(!0),this._output.add_new_line()}else if("/"===this._ch&&"/"===this._input.peek())this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(u)),this.eatWhitespace(!0);else if("$"===this._ch){this.preserveSingleSpace(i),this.print_string(this._ch);var S=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);S.match(/[ :]$/)&&(S=this.eatString(": ").replace(/\s+$/,""),this.print_string(S),this._output.space_before_token=!0),0===m&&-1!==S.indexOf(":")&&(g=!0,this.indent())}else if("@"===this._ch)if(this.preserveSingleSpace(i),"{"===this._input.peek())this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var x=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);x.match(/[ :]$/)&&(x=this.eatString(": ").replace(/\s+$/,""),this.print_string(x),this._output.space_before_token=!0),0===m&&-1!==x.indexOf(":")?(g=!0,this.indent()):x in this.NESTED_AT_RULE?(this._nestedLevel+=1,x in this.CONDITIONAL_GROUP_RULE&&(b=!0)):0!==m||g||(v=!0)}else if("#"===this._ch&&"{"===this._input.peek())this.preserveSingleSpace(i),this.print_string(this._ch+this.eatString("}"));else if("{"===this._ch)g&&(g=!1,this.outdent()),v=!1,b?(b=!1,f=this._indentLevel>=this._nestedLevel):f=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&f&&this._output.previous_line&&"{"!==this._output.previous_line.item(-1)&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,"expand"===this._options.brace_style?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):("("===p?this._output.space_before_token=!1:","!==p&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if("}"===this._ch)this.outdent(),this._output.add_new_line(),"{"===p&&this._output.trim(!0),g&&(this.outdent(),g=!1),this.print_string(this._ch),f=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&"}"!==this._input.peek()&&this._output.add_new_line(!0),")"===this._input.peek()&&(this._output.trim(!0),"expand"===this._options.brace_style&&this._output.add_new_line(!0));else if(":"===this._ch){for(var E=0;E<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;E++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[E])){_=!0;break}!f&&!b||this._input.lookBack("&")||this.foundNestedPseudoClass()||this._input.lookBack("(")||v||0!==m?(this._input.lookBack(" ")&&(this._output.space_before_token=!0),":"===this._input.peek()?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":")):(this.print_string(":"),g||(g=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent()))}else if('"'===this._ch||"'"===this._ch){var F='"'===p||"'"===p;this.preserveSingleSpace(F||i),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(";"===this._ch)_=!1,0===m?(g&&(this.outdent(),g=!1),v=!1,this.print_string(this._ch),this.eatWhitespace(!0),"/"!==this._input.peek()&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if("("===this._ch)if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),m++,this.indent(),this._ch=this._input.next(),")"===this._ch||'"'===this._ch||"'"===this._ch?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),m&&(m--,this.outdent()));else{var L=!1;this._input.lookBack("with")&&(L=!0),this.preserveSingleSpace(i||L),this.print_string(this._ch),g&&"$"===p&&this._options.selector_separator_newline?(this._output.add_new_line(),y=!0):(this.eatWhitespace(),m++,this.indent())}else if(")"===this._ch)m&&(m--,this.outdent()),y&&";"===this._input.peek()&&this._options.selector_separator_newline&&(y=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(","===this._ch)this.print_string(this._ch),this.eatWhitespace(!0),!this._options.selector_separator_newline||g&&!y||0!==m||v?this._output.space_before_token=!0:this._output.add_new_line();else if(">"!==this._ch&&"+"!==this._ch&&"~"!==this._ch||g||0!==m)if("]"===this._ch)this.print_string(this._ch);else if("["===this._ch)this.preserveSingleSpace(i),this.print_string(this._ch);else if("="===this._ch)this.eatWhitespace(),this.print_string("="),c.test(this._ch)&&(this._ch="");else if("!"!==this._ch||this._input.lookBack("\\")){var I='"'===p||"'"===p;this.preserveSingleSpace(I||i),this.print_string(this._ch),!this._output.just_added_newline()&&"\n"===this._input.peek()&&_&&this._output.add_new_line()}else this._output.space_before_token=!0,this.print_string(this._ch);else this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&c.test(this._ch)&&(this._ch=""));return this._output.get_code(t)},e.exports.Beautifier=p},function(e,t,n){var i=n(6).Options;function r(e){i.call(this,e,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var t=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||t;var n=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var r=0;r<n.length;r++)"expand"!==n[r]?this.brace_style="collapse":this.brace_style=n[r]}r.prototype=new i,e.exports.Options=r}],t={};var n=function n(i){var r=t[i];if(void 0!==r)return r.exports;var s=t[i]={exports:{}};return e[i](s,s.exports,n),s.exports}(15);Jo=n}();var ha=Jo;function da(e,t,n){let i=e.getText(),r=!0,s=0,o=!1;const a=n.tabSize||4;if(t){let a=e.offsetAt(t.start),l=a;for(;l>0&&ba(i,l-1);)l--;0===l||ga(i,l-1)?a=l:l<a&&(a=l+1);let c=e.offsetAt(t.end),h=c;for(;h<i.length&&ba(i,h);)h++;if((h===i.length||ga(i,h))&&(c=h),t=qt.create(e.positionAt(a),e.positionAt(c)),o=function(e,t){for(;t>=0;){const n=e.charCodeAt(t);if(n===pa)return!0;if(n===ma)return!1;t--}return!1}(i,a),r=c===i.length,i=i.substring(a,c),0!==a){const i=e.offsetAt(Ut.create(t.start.line,0));s=function(e,t,n){let i=t,r=0;const s=n.tabSize||4;for(;i<e.length;){const t=e.charAt(i);if(" "===t)r++;else{if("\t"!==t)break;r+=s}i++}return Math.floor(r/s)}(e.getText(),i,n)}o&&(i=`{\n${ua(i)}`)}else t=qt.create(Ut.create(0,0),e.positionAt(i.length));const l={indent_size:a,indent_char:n.insertSpaces?" ":"\t",end_with_newline:r&&fa(n,"insertFinalNewline",!1),selector_separator_newline:fa(n,"newlineBetweenSelectors",!0),newline_between_rules:fa(n,"newlineBetweenRules",!0),space_around_selector_separator:fa(n,"spaceAroundSelectorSeparator",!1),brace_style:fa(n,"braceStyle","collapse"),indent_empty_lines:fa(n,"indentEmptyLines",!1),max_preserve_newlines:fa(n,"maxPreserveNewLines",void 0),preserve_newlines:fa(n,"preserveNewLines",!0),wrap_line_length:fa(n,"wrapLineLength",void 0),eol:"\n"};let c=ha(i,l);if(o&&(c=ua(c.substring(2))),s>0){const e=n.insertSpaces?le(" ",a*s):le("\t",s);c=c.split("\n").join("\n"+e),0===t.start.character&&(c=e+c)}return[{range:t,newText:c}]}function ua(e){return e.replace(/^\s+/,"")}var pa="{".charCodeAt(0),ma="}".charCodeAt(0);function fa(e,t,n){if(e&&e.hasOwnProperty(t)){const n=e[t];if(null!==n)return n}return n}function ga(e,t){return-1!=="\r\n".indexOf(e.charAt(t))}function ba(e,t){return-1!==" \t".indexOf(e.charAt(t))}var va={version:1.1,properties:[{name:"additive-symbols",browsers:["FF33"],atRule:"@counter-style",syntax:"[ <integer> && <symbol> ]#",relevance:50,description:"@counter-style descriptor. Specifies the symbols used by the marker-construction algorithm specified by the system descriptor. Needs to be specified if the counter system is 'additive'.",restrictions:["integer","string","image","identifier"]},{name:"align-content",browsers:["E12","FF28","S9","C29","IE11","O16"],values:[{name:"center",description:"Lines are packed toward the center of the flex container."},{name:"flex-end",description:"Lines are packed toward the end of the flex container."},{name:"flex-start",description:"Lines are packed toward the start of the flex container."},{name:"space-around",description:"Lines are evenly distributed in the flex container, with half-size spaces on either end."},{name:"space-between",description:"Lines are evenly distributed in the flex container."},{name:"stretch",description:"Lines stretch to take up the remaining space."},{name:"start"},{name:"end"},{name:"normal"},{name:"baseline"},{name:"first baseline"},{name:"last baseline"},{name:"space-around"},{name:"space-between"},{name:"space-evenly"},{name:"stretch"},{name:"safe"},{name:"unsafe"}],syntax:"normal | <baseline-position> | <content-distribution> | <overflow-position>? <content-position>",relevance:66,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/align-content"}],description:"Aligns a flex container's lines within the flex container when there is extra space in the cross-axis, similar to how 'justify-content' aligns individual items within the main-axis.",restrictions:["enum"]},{name:"align-items",browsers:["E12","FF20","S9","C29","IE11","O16"],values:[{name:"baseline",description:"If the flex item's inline axis is the same as the cross axis, this value is identical to 'flex-start'. Otherwise, it participates in baseline alignment."},{name:"center",description:"The flex item's margin box is centered in the cross axis within the line."},{name:"flex-end",description:"The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line."},{name:"flex-start",description:"The cross-start margin edge of the flex item is placed flush with the cross-start edge of the line."},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."},{name:"normal"},{name:"start"},{name:"end"},{name:"self-start"},{name:"self-end"},{name:"first baseline"},{name:"last baseline"},{name:"stretch"},{name:"safe"},{name:"unsafe"}],syntax:"normal | stretch | <baseline-position> | [ <overflow-position>? <self-position> ]",relevance:87,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/align-items"}],description:"Aligns flex items along the cross axis of the current line of the flex container.",restrictions:["enum"]},{name:"justify-items",browsers:["E12","FF20","S9","C52","IE11","O12.1"],values:[{name:"auto"},{name:"normal"},{name:"end"},{name:"start"},{name:"flex-end",description:'"Flex items are packed toward the end of the line."'},{name:"flex-start",description:'"Flex items are packed toward the start of the line."'},{name:"self-end",description:"The item is packed flush to the edge of the alignment container of the end side of the item, in the appropriate axis."},{name:"self-start",description:"The item is packed flush to the edge of the alignment container of the start side of the item, in the appropriate axis.."},{name:"center",description:"The items are packed flush to each other toward the center of the of the alignment container."},{name:"left"},{name:"right"},{name:"baseline"},{name:"first baseline"},{name:"last baseline"},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."},{name:"safe"},{name:"unsafe"},{name:"legacy"}],syntax:"normal | stretch | <baseline-position> | <overflow-position>? [ <self-position> | left | right ] | legacy | legacy && [ left | right | center ]",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/justify-items"}],description:"Defines the default justify-self for all items of the box, giving them the default way of justifying each box along the appropriate axis",restrictions:["enum"]},{name:"justify-self",browsers:["E16","FF45","S10.1","C57","IE10","O44"],values:[{name:"auto"},{name:"normal"},{name:"end"},{name:"start"},{name:"flex-end",description:'"Flex items are packed toward the end of the line."'},{name:"flex-start",description:'"Flex items are packed toward the start of the line."'},{name:"self-end",description:"The item is packed flush to the edge of the alignment container of the end side of the item, in the appropriate axis."},{name:"self-start",description:"The item is packed flush to the edge of the alignment container of the start side of the item, in the appropriate axis.."},{name:"center",description:"The items are packed flush to each other toward the center of the of the alignment container."},{name:"left"},{name:"right"},{name:"baseline"},{name:"first baseline"},{name:"last baseline"},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."},{name:"save"},{name:"unsave"}],syntax:"auto | normal | stretch | <baseline-position> | <overflow-position>? [ <self-position> | left | right ]",relevance:55,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/justify-self"}],description:"Defines the way of justifying a box inside its container along the appropriate axis.",restrictions:["enum"]},{name:"align-self",browsers:["E12","FF20","S9","C29","IE10","O12.1"],values:[{name:"auto",description:"Computes to the value of 'align-items' on the element's parent, or 'stretch' if the element has no parent. On absolutely positioned elements, it computes to itself."},{name:"normal"},{name:"self-end"},{name:"self-start"},{name:"baseline",description:"If the flex item's inline axis is the same as the cross axis, this value is identical to 'flex-start'. Otherwise, it participates in baseline alignment."},{name:"center",description:"The flex item's margin box is centered in the cross axis within the line."},{name:"flex-end",description:"The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line."},{name:"flex-start",description:"The cross-start margin edge of the flex item is placed flush with the cross-start edge of the line."},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."},{name:"baseline"},{name:"first baseline"},{name:"last baseline"},{name:"safe"},{name:"unsafe"}],syntax:"auto | normal | stretch | <baseline-position> | <overflow-position>? <self-position>",relevance:73,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/align-self"}],description:"Allows the default alignment along the cross axis to be overridden for individual flex items.",restrictions:["enum"]},{name:"all",browsers:["E79","FF27","S9.1","C37","O24"],values:[],syntax:"initial | inherit | unset | revert | revert-layer",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/all"}],description:"Shorthand that resets all properties except 'direction' and 'unicode-bidi'.",restrictions:["enum"]},{name:"alt",browsers:["S9"],values:[],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/alt"}],description:"Provides alternative text for assistive technology to replace the generated content of a ::before or ::after element.",restrictions:["string","enum"]},{name:"animation",browsers:["E12","FF16","S9","C43","IE10","O30"],values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"backwards",description:"The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."},{name:"both",description:"Both forwards and backwards fill modes are applied."},{name:"forwards",description:"The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."},{name:"infinite",description:"Causes the animation to repeat forever."},{name:"none",description:"No animation is performed"},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],syntax:"<single-animation>#",relevance:82,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation"}],description:"Shorthand property combines six of the animation properties into a single property.",restrictions:["time","timing-function","enum","identifier","number"]},{name:"animation-delay",browsers:["E12","FF16","S9","C43","IE10","O30"],syntax:"<time>#",relevance:66,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-delay"}],description:"Defines when the animation will start.",restrictions:["time"]},{name:"animation-direction",browsers:["E12","FF16","S9","C43","IE10","O30"],values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],syntax:"<single-animation-direction>#",relevance:58,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-direction"}],description:"Defines whether or not the animation should play in reverse on alternate cycles.",restrictions:["enum"]},{name:"animation-duration",browsers:["E12","FF16","S9","C43","IE10","O30"],syntax:"<time>#",relevance:72,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-duration"}],description:"Defines the length of time that an animation takes to complete one cycle.",restrictions:["time"]},{name:"animation-fill-mode",browsers:["E12","FF16","S9","C43","IE10","O30"],values:[{name:"backwards",description:"The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."},{name:"both",description:"Both forwards and backwards fill modes are applied."},{name:"forwards",description:"The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."},{name:"none",description:"There is no change to the property value between the time the animation is applied and the time the animation begins playing or after the animation completes."}],syntax:"<single-animation-fill-mode>#",relevance:65,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-fill-mode"}],description:"Defines what values are applied by the animation outside the time it is executing.",restrictions:["enum"]},{name:"animation-iteration-count",browsers:["E12","FF16","S9","C43","IE10","O30"],values:[{name:"infinite",description:"Causes the animation to repeat forever."}],syntax:"<single-animation-iteration-count>#",relevance:64,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-iteration-count"}],description:"Defines the number of times an animation cycle is played. The default value is one, meaning the animation will play from beginning to end once.",restrictions:["number","enum"]},{name:"animation-name",browsers:["E12","FF16","S9","C43","IE10","O30"],values:[{name:"none",description:"No animation is performed"}],syntax:"[ none | <keyframes-name> ]#",relevance:72,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-name"}],description:"Defines a list of animations that apply. Each name is used to select the keyframe at-rule that provides the property values for the animation.",restrictions:["identifier","enum"]},{name:"animation-play-state",browsers:["E12","FF16","S9","C43","IE10","O30"],values:[{name:"paused",description:"A running animation will be paused."},{name:"running",description:"Resume playback of a paused animation."}],syntax:"<single-animation-play-state>#",relevance:55,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-play-state"}],description:"Defines whether the animation is running or paused.",restrictions:["enum"]},{name:"animation-timing-function",browsers:["E12","FF16","S9","C43","IE10","O30"],syntax:"<easing-function>#",relevance:71,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-timing-function"}],description:"Describes how the animation will progress over one cycle of its duration.",restrictions:["timing-function"]},{name:"backface-visibility",browsers:["E12","FF16","S15.4","C36","IE10","O23"],values:[{name:"hidden",description:"Back side is hidden."},{name:"visible",description:"Back side is visible."}],syntax:"visible | hidden",relevance:60,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/backface-visibility"}],description:"Determines whether or not the 'back' side of a transformed element is visible when facing the viewer. With an identity transform, the front side of an element faces the viewer.",restrictions:["enum"]},{name:"background",browsers:["E12","FF1","S1","C1","IE4","O3.5"],values:[{name:"fixed",description:"The background is fixed with regard to the viewport. In paged media where there is no viewport, a 'fixed' background is fixed with respect to the page box and therefore replicated on every page."},{name:"local",description:"The background is fixed with regard to the element's contents: if the element has a scrolling mechanism, the background scrolls with the element's contents."},{name:"none",description:"A value of 'none' counts as an image layer but draws nothing."},{name:"scroll",description:"The background is fixed with regard to the element itself and does not scroll with its contents. (It is effectively attached to the element's border.)"}],syntax:"[ <bg-layer> , ]* <final-bg-layer>",relevance:93,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background"}],description:"Shorthand property for setting most background properties at the same place in the style sheet.",restrictions:["enum","image","color","position","length","repeat","percentage","box"]},{name:"background-attachment",browsers:["E12","FF1","S1","C1","IE4","O3.5"],values:[{name:"fixed",description:"The background is fixed with regard to the viewport. In paged media where there is no viewport, a 'fixed' background is fixed with respect to the page box and therefore replicated on every page."},{name:"local",browsers:["E12","FF1","S1","C1","IE4","O3.5"],description:"The background is fixed with regard to the element's contents: if the element has a scrolling mechanism, the background scrolls with the element's contents."},{name:"scroll",description:"The background is fixed with regard to the element itself and does not scroll with its contents. (It is effectively attached to the element's border.)"}],syntax:"<attachment>#",relevance:54,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-attachment"}],description:"Specifies whether the background images are fixed with regard to the viewport ('fixed') or scroll along with the element ('scroll') or its contents ('local').",restrictions:["enum"]},{name:"background-blend-mode",browsers:["E79","FF30","S8","C35","O22"],values:[{name:"normal",description:"Default attribute which specifies no blending"},{name:"multiply",description:"The source color is multiplied by the destination color and replaces the destination."},{name:"screen",description:"Multiplies the complements of the backdrop and source color values, then complements the result."},{name:"overlay",description:"Multiplies or screens the colors, depending on the backdrop color value."},{name:"darken",description:"Selects the darker of the backdrop and source colors."},{name:"lighten",description:"Selects the lighter of the backdrop and source colors."},{name:"color-dodge",description:"Brightens the backdrop color to reflect the source color."},{name:"color-burn",description:"Darkens the backdrop color to reflect the source color."},{name:"hard-light",description:"Multiplies or screens the colors, depending on the source color value."},{name:"soft-light",description:"Darkens or lightens the colors, depending on the source color value."},{name:"difference",description:"Subtracts the darker of the two constituent colors from the lighter color.."},{name:"exclusion",description:"Produces an effect similar to that of the Difference mode but lower in contrast."},{name:"hue",browsers:["E79","FF30","S8","C35","O22"],description:"Creates a color with the hue of the source color and the saturation and luminosity of the backdrop color."},{name:"saturation",browsers:["E79","FF30","S8","C35","O22"],description:"Creates a color with the saturation of the source color and the hue and luminosity of the backdrop color."},{name:"color",browsers:["E79","FF30","S8","C35","O22"],description:"Creates a color with the hue and saturation of the source color and the luminosity of the backdrop color."},{name:"luminosity",browsers:["E79","FF30","S8","C35","O22"],description:"Creates a color with the luminosity of the source color and the hue and saturation of the backdrop color."}],syntax:"<blend-mode>#",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-blend-mode"}],description:"Defines the blending mode of each background layer.",restrictions:["enum"]},{name:"background-clip",browsers:["E12","FF4","S5","C1","IE9","O10.5"],syntax:"<box>#",relevance:69,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-clip"}],description:"Determines the background painting area.",restrictions:["box"]},{name:"background-color",browsers:["E12","FF1","S1","C1","IE4","O3.5"],syntax:"<color>",relevance:94,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-color"}],description:"Sets the background color of an element.",restrictions:["color"]},{name:"background-image",browsers:["E12","FF1","S1","C1","IE4","O3.5"],values:[{name:"none",description:"Counts as an image layer but draws nothing."}],syntax:"<bg-image>#",relevance:88,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-image"}],description:"Sets the background image(s) of an element.",restrictions:["image","enum"]},{name:"background-origin",browsers:["E12","FF4","S3","C1","IE9","O10.5"],syntax:"<box>#",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-origin"}],description:"For elements rendered as a single box, specifies the background positioning area. For elements rendered as multiple boxes (e.g., inline boxes on several lines, boxes on several pages) specifies which boxes 'box-decoration-break' operates on to determine the background positioning area(s).",restrictions:["box"]},{name:"background-position",browsers:["E12","FF1","S1","C1","IE4","O3.5"],syntax:"<bg-position>#",relevance:87,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-position"}],description:"Specifies the initial position of the background image(s) (after any resizing) within their corresponding background positioning area.",restrictions:["position","length","percentage"]},{name:"background-position-x",browsers:["E12","FF49","S1","C1","IE6","O15"],values:[{name:"center",description:"Equivalent 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."},{name:"left",description:"Equivalent 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."},{name:"right",description:"Equivalent 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."}],syntax:"[ center | [ [ left | right | x-start | x-end ]? <length-percentage>? ]! ]#",relevance:55,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-position-x"}],description:"If background images have been specified, this property specifies their initial position (after any resizing) within their corresponding background positioning area.",restrictions:["length","percentage"]},{name:"background-position-y",browsers:["E12","FF49","S1","C1","IE6","O15"],values:[{name:"bottom",description:"Equivalent 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."},{name:"center",description:"Equivalent 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."},{name:"top",description:"Equivalent 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."}],syntax:"[ center | [ [ top | bottom | y-start | y-end ]? <length-percentage>? ]! ]#",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-position-y"}],description:"If background images have been specified, this property specifies their initial position (after any resizing) within their corresponding background positioning area.",restrictions:["length","percentage"]},{name:"background-repeat",browsers:["E12","FF1","S1","C1","IE4","O3.5"],values:[],syntax:"<repeat-style>#",relevance:85,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-repeat"}],description:"Specifies how background images are tiled after they have been sized and positioned.",restrictions:["repeat"]},{name:"background-size",browsers:["E12","FF4","S5","C3","IE9","O10"],values:[{name:"auto",description:"Resolved by using the image's intrinsic ratio and the size of the other dimension, or failing that, using the image's intrinsic size, or failing that, treating it as 100%."},{name:"contain",description:"Scale the image, while preserving its intrinsic aspect ratio (if any), to the largest size such that both its width and its height can fit inside the background positioning area."},{name:"cover",description:"Scale the image, while preserving its intrinsic aspect ratio (if any), to the smallest size such that both its width and its height can completely cover the background positioning area."}],syntax:"<bg-size>#",relevance:85,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-size"}],description:"Specifies the size of the background images.",restrictions:["length","percentage"]},{name:"behavior",browsers:["IE6"],relevance:50,description:"IE only. Used to extend behaviors of the browser.",restrictions:["url"]},{name:"block-size",browsers:["E79","FF41","S12.1","C57","O44"],values:[{name:"auto",description:"Depends on the values of other properties."}],syntax:"<'width'>",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/block-size"}],description:"Size of an element in the direction opposite that of the direction specified by 'writing-mode'.",restrictions:["length","percentage"]},{name:"border",browsers:["E12","FF1","S1","C1","IE4","O3.5"],syntax:"<line-width> || <line-style> || <color>",relevance:95,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border"}],description:"Shorthand property for setting border width, style, and color.",restrictions:["length","line-width","line-style","color"]},{name:"border-block-end",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-width'> || <'border-top-style'> || <color>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-end"}],description:"Logical 'border-bottom'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","line-width","line-style","color"]},{name:"border-block-start",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-width'> || <'border-top-style'> || <color>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-start"}],description:"Logical 'border-top'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","line-width","line-style","color"]},{name:"border-block-end-color",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-color'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-end-color"}],description:"Logical 'border-bottom-color'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["color"]},{name:"border-block-start-color",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-color'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-start-color"}],description:"Logical 'border-top-color'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["color"]},{name:"border-block-end-style",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-style'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-end-style"}],description:"Logical 'border-bottom-style'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["line-style"]},{name:"border-block-start-style",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-style'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-start-style"}],description:"Logical 'border-top-style'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["line-style"]},{name:"border-block-end-width",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-width'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-end-width"}],description:"Logical 'border-bottom-width'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","line-width"]},{name:"border-block-start-width",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-width'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-start-width"}],description:"Logical 'border-top-width'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","line-width"]},{name:"border-bottom",browsers:["E12","FF1","S1","C1","IE4","O3.5"],syntax:"<line-width> || <line-style> || <color>",relevance:87,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-bottom"}],description:"Shorthand property for setting border width, style and color.",restrictions:["length","line-width","line-style","color"]},{name:"border-bottom-color",browsers:["E12","FF1","S1","C1","IE4","O3.5"],syntax:"<'border-top-color'>",relevance:70,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-bottom-color"}],description:"Sets the color of the bottom border.",restrictions:["color"]},{name:"border-bottom-left-radius",browsers:["E12","FF4","S5","C4","IE9","O10.5"],syntax:"<length-percentage>{1,2}",relevance:74,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-bottom-left-radius"}],description:"Defines the radii of the bottom left outer border edge.",restrictions:["length","percentage"]},{name:"border-bottom-right-radius",browsers:["E12","FF4","S5","C4","IE9","O10.5"],syntax:"<length-percentage>{1,2}",relevance:74,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-bottom-right-radius"}],description:"Defines the radii of the bottom right outer border edge.",restrictions:["length","percentage"]},{name:"border-bottom-style",browsers:["E12","FF1","S1","C1","IE5.5","O9.2"],syntax:"<line-style>",relevance:60,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-bottom-style"}],description:"Sets the style of the bottom border.",restrictions:["line-style"]},{name:"border-bottom-width",browsers:["E12","FF1","S1","C1","IE4","O3.5"],syntax:"<line-width>",relevance:65,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-bottom-width"}],description:"Sets the thickness of the bottom border.",restrictions:["length","line-width"]},{name:"border-collapse",browsers:["E12","FF1","S1.2","C1","IE5","O4"],values:[{name:"collapse",description:"Selects the collapsing borders model."},{name:"separate",description:"Selects the separated borders border model."}],syntax:"collapse | separate",relevance:71,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-collapse"}],description:"Selects a table's border model.",restrictions:["enum"]},{name:"border-color",browsers:["E12","FF1","S1","C1","IE4","O3.5"],values:[],syntax:"<color>{1,4}",relevance:86,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-color"}],description:"The color of the border around all four edges of an element.",restrictions:["color"]},{name:"border-image",browsers:["E12","FF15","S6","C16","IE11","O11"],values:[{name:"auto",description:"If 'auto' is specified then the border image width is the intrinsic width or height (whichever is applicable) of the corresponding image slice. If the image does not have the required intrinsic dimension then the corresponding border-width is used instead."},{name:"fill",description:"Causes the middle part of the border-image to be preserved."},{name:"none",description:"Use the border styles."},{name:"repeat",description:"The image is tiled (repeated) to fill the area."},{name:"round",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the image is rescaled so that it does."},{name:"space",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the extra space is distributed around the tiles."},{name:"stretch",description:"The image is stretched to fill the area."},{name:"url()"}],syntax:"<'border-image-source'> || <'border-image-slice'> [ / <'border-image-width'> | / <'border-image-width'>? / <'border-image-outset'> ]? || <'border-image-repeat'>",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-image"}],description:"Shorthand property for setting 'border-image-source', 'border-image-slice', 'border-image-width', 'border-image-outset' and 'border-image-repeat'. Omitted values are set to their initial values.",restrictions:["length","percentage","number","url","enum"]},{name:"border-image-outset",browsers:["E12","FF15","S6","C15","IE11","O15"],syntax:"[ <length> | <number> ]{1,4}",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-image-outset"}],description:"The values specify the amount by which the border image area extends beyond the border box on the top, right, bottom, and left sides respectively. If the fourth value is absent, it is the same as the second. If the third one is also absent, it is the same as the first. If the second one is also absent, it is the same as the first. Numbers represent multiples of the corresponding border-width.",restrictions:["length","number"]},{name:"border-image-repeat",browsers:["E12","FF15","S6","C15","IE11","O15"],values:[{name:"repeat",description:"The image is tiled (repeated) to fill the area."},{name:"round",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the image is rescaled so that it does."},{name:"space",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the extra space is distributed around the tiles."},{name:"stretch",description:"The image is stretched to fill the area."}],syntax:"[ stretch | repeat | round | space ]{1,2}",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-image-repeat"}],description:"Specifies how the images for the sides and the middle part of the border image are scaled and tiled. If the second keyword is absent, it is assumed to be the same as the first.",restrictions:["enum"]},{name:"border-image-slice",browsers:["E12","FF15","S6","C15","IE11","O15"],values:[{name:"fill",description:"Causes the middle part of the border-image to be preserved."}],syntax:"<number-percentage>{1,4} && fill?",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-image-slice"}],description:"Specifies inward offsets from the top, right, bottom, and left edges of the image, dividing it into nine regions: four corners, four edges and a middle.",restrictions:["number","percentage"]},{name:"border-image-source",browsers:["E12","FF15","S6","C15","IE11","O15"],values:[{name:"none",description:"Use the border styles."}],syntax:"none | <image>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-image-source"}],description:"Specifies an image to use instead of the border styles given by the 'border-style' properties and as an additional background layer for the element. If the value is 'none' or if the image cannot be displayed, the border styles will be used.",restrictions:["image"]},{name:"border-image-width",browsers:["E12","FF13","S6","C15","IE11","O15"],values:[{name:"auto",description:"The border image width is the intrinsic width or height (whichever is applicable) of the corresponding image slice. If the image does not have the required intrinsic dimension then the corresponding border-width is used instead."}],syntax:"[ <length-percentage> | <number> | auto ]{1,4}",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-image-width"}],description:"The four values of 'border-image-width' specify offsets that are used to divide the border image area into nine parts. They represent inward distances from the top, right, bottom, and left sides of the area, respectively.",restrictions:["length","percentage","number"]},{name:"border-inline-end",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-width'> || <'border-top-style'> || <color>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-end"}],description:"Logical 'border-right'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","line-width","line-style","color"]},{name:"border-inline-start",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-width'> || <'border-top-style'> || <color>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-start"}],description:"Logical 'border-left'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","line-width","line-style","color"]},{name:"border-inline-end-color",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-color'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-end-color"}],description:"Logical 'border-right-color'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["color"]},{name:"border-inline-start-color",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-color'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-start-color"}],description:"Logical 'border-left-color'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["color"]},{name:"border-inline-end-style",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-style'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-end-style"}],description:"Logical 'border-right-style'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["line-style"]},{name:"border-inline-start-style",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-style'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-start-style"}],description:"Logical 'border-left-style'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["line-style"]},{name:"border-inline-end-width",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-width'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-end-width"}],description:"Logical 'border-right-width'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","line-width"]},{name:"border-inline-start-width",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-width'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-start-width"}],description:"Logical 'border-left-width'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","line-width"]},{name:"border-left",browsers:["E12","FF1","S1","C1","IE4","O3.5"],syntax:"<line-width> || <line-style> || <color>",relevance:81,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-left"}],description:"Shorthand property for setting border width, style and color",restrictions:["length","line-width","line-style","color"]},{name:"border-left-color",browsers:["E12","FF1","S1","C1","IE4","O3.5"],syntax:"<color>",relevance:67,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-left-color"}],description:"Sets the color of the left border.",restrictions:["color"]},{name:"border-left-style",browsers:["E12","FF1","S1","C1","IE5.5","O9.2"],syntax:"<line-style>",relevance:54,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-left-style"}],description:"Sets the style of the left border.",restrictions:["line-style"]},{name:"border-left-width",browsers:["E12","FF1","S1","C1","IE4","O3.5"],syntax:"<line-width>",relevance:63,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-left-width"}],description:"Sets the thickness of the left border.",restrictions:["length","line-width"]},{name:"border-radius",browsers:["E12","FF4","S5","C4","IE9","O10.5"],syntax:"<length-percentage>{1,4} [ / <length-percentage>{1,4} ]?",relevance:92,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-radius"}],description:"Defines the radii of the outer border edge.",restrictions:["length","percentage"]},{name:"border-right",browsers:["E12","FF1","S1","C1","IE5.5","O9.2"],syntax:"<line-width> || <line-style> || <color>",relevance:80,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-right"}],description:"Shorthand property for setting border width, style and color",restrictions:["length","line-width","line-style","color"]},{name:"border-right-color",browsers:["E12","FF1","S1","C1","IE4","O3.5"],syntax:"<color>",relevance:66,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-right-color"}],description:"Sets the color of the right border.",restrictions:["color"]},{name:"border-right-style",browsers:["E12","FF1","S1","C1","IE5.5","O9.2"],syntax:"<line-style>",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-right-style"}],description:"Sets the style of the right border.",restrictions:["line-style"]},{name:"border-right-width",browsers:["E12","FF1","S1","C1","IE4","O3.5"],syntax:"<line-width>",relevance:63,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-right-width"}],description:"Sets the thickness of the right border.",restrictions:["length","line-width"]},{name:"border-spacing",browsers:["E12","FF1","S1","C1","IE8","O4"],syntax:"<length> <length>?",relevance:67,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-spacing"}],description:"The lengths specify the distance that separates adjoining cell borders. If one length is specified, it gives both the horizontal and vertical spacing. If two are specified, the first gives the horizontal spacing and the second the vertical spacing. Lengths may not be negative.",restrictions:["length"]},{name:"border-style",browsers:["E12","FF1","S1","C1","IE4","O3.5"],values:[],syntax:"<line-style>{1,4}",relevance:79,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-style"}],description:"The style of the border around edges of an element.",restrictions:["line-style"]},{name:"border-top",browsers:["E12","FF1","S1","C1","IE4","O3.5"],syntax:"<line-width> || <line-style> || <color>",relevance:86,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-top"}],description:"Shorthand property for setting border width, style and color",restrictions:["length","line-width","line-style","color"]},{name:"border-top-color",browsers:["E12","FF1","S1","C1","IE4","O3.5"],syntax:"<color>",relevance:71,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-top-color"}],description:"Sets the color of the top border.",restrictions:["color"]},{name:"border-top-left-radius",browsers:["E12","FF4","S5","C4","IE9","O10.5"],syntax:"<length-percentage>{1,2}",relevance:75,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-top-left-radius"}],description:"Defines the radii of the top left outer border edge.",restrictions:["length","percentage"]},{name:"border-top-right-radius",browsers:["E12","FF4","S5","C4","IE9","O10.5"],syntax:"<length-percentage>{1,2}",relevance:75,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-top-right-radius"}],description:"Defines the radii of the top right outer border edge.",restrictions:["length","percentage"]},{name:"border-top-style",browsers:["E12","FF1","S1","C1","IE5.5","O9.2"],syntax:"<line-style>",relevance:58,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-top-style"}],description:"Sets the style of the top border.",restrictions:["line-style"]},{name:"border-top-width",browsers:["E12","FF1","S1","C1","IE4","O3.5"],syntax:"<line-width>",relevance:61,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-top-width"}],description:"Sets the thickness of the top border.",restrictions:["length","line-width"]},{name:"border-width",browsers:["E12","FF1","S1","C1","IE4","O3.5"],values:[],syntax:"<line-width>{1,4}",relevance:82,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-width"}],description:"Shorthand that sets the four 'border-*-width' properties. If it has four values, they set top, right, bottom and left in that order. If left is missing, it is the same as right; if bottom is missing, it is the same as top; if right is missing, it is the same as top.",restrictions:["length","line-width"]},{name:"bottom",browsers:["E12","FF1","S1","C1","IE5","O6"],values:[{name:"auto",description:"For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well"}],syntax:"<length> | <percentage> | auto",relevance:90,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/bottom"}],description:"Specifies how far an absolutely positioned box's bottom margin edge is offset above the bottom edge of the box's 'containing block'.",restrictions:["length","percentage"]},{name:"box-decoration-break",browsers:["E79","FF32","S7","C22","O15"],values:[{name:"clone",description:"Each box is independently wrapped with the border and padding."},{name:"slice",description:"The effect is as though the element were rendered with no breaks present, and then sliced by the breaks afterward."}],syntax:"slice | clone",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-decoration-break"}],description:"Specifies whether individual boxes are treated as broken pieces of one continuous box, or whether each box is individually wrapped with the border and padding.",restrictions:["enum"]},{name:"box-shadow",browsers:["E12","FF4","S5.1","C10","IE9","O10.5"],values:[{name:"inset",description:"Changes the drop shadow from an outer shadow (one that shadows the box onto the canvas, as if it were lifted above the canvas) to an inner shadow (one that shadows the canvas onto the box, as if the box were cut out of the canvas and shifted behind it)."},{name:"none",description:"No shadow."}],syntax:"none | <shadow>#",relevance:90,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-shadow"}],description:"Attaches one or more drop-shadows to the box. The property is a comma-separated list of shadows, each specified by 2-4 length values, an optional color, and an optional 'inset' keyword. Omitted lengths are 0; omitted colors are a user agent chosen color.",restrictions:["length","color","enum"]},{name:"box-sizing",browsers:["E12","FF29","S5.1","C10","IE8","O7"],values:[{name:"border-box",description:"The specified width and height (and respective min/max properties) on this element determine the border box of the element."},{name:"content-box",description:"Behavior of width and height as specified by CSS2.1. The specified width and height (and respective min/max properties) apply to the width and height respectively of the content box of the element."}],syntax:"content-box | border-box",relevance:92,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-sizing"}],description:"Specifies the behavior of the 'width' and 'height' properties.",restrictions:["enum"]},{name:"break-after",browsers:["E12","FF65","S10","C50","IE10","O37"],values:[{name:"always",description:"Always force a page break before/after the generated box."},{name:"auto",description:"Neither force nor forbid a page/column break before/after the principal box."},{name:"avoid",description:"Avoid a break before/after the principal box."},{name:"avoid-column",description:"Avoid a column break before/after the principal box."},{name:"avoid-page",description:"Avoid a page break before/after the principal box."},{name:"column",description:"Always force a column break before/after the principal box."},{name:"left",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a left page."},{name:"page",description:"Always force a page break before/after the principal box."},{name:"right",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a right page."}],syntax:"auto | avoid | always | all | avoid-page | page | left | right | recto | verso | avoid-column | column | avoid-region | region",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/break-after"}],description:"Describes the page/column/region break behavior after the generated box.",restrictions:["enum"]},{name:"break-before",browsers:["E12","FF65","S10","C50","IE10","O37"],values:[{name:"always",description:"Always force a page break before/after the generated box."},{name:"auto",description:"Neither force nor forbid a page/column break before/after the principal box."},{name:"avoid",description:"Avoid a break before/after the principal box."},{name:"avoid-column",description:"Avoid a column break before/after the principal box."},{name:"avoid-page",description:"Avoid a page break before/after the principal box."},{name:"column",description:"Always force a column break before/after the principal box."},{name:"left",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a left page."},{name:"page",description:"Always force a page break before/after the principal box."},{name:"right",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a right page."}],syntax:"auto | avoid | always | all | avoid-page | page | left | right | recto | verso | avoid-column | column | avoid-region | region",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/break-before"}],description:"Describes the page/column/region break behavior before the generated box.",restrictions:["enum"]},{name:"break-inside",browsers:["E12","FF65","S10","C50","IE10","O37"],values:[{name:"auto",description:"Impose no additional breaking constraints within the box."},{name:"avoid",description:"Avoid breaks within the box."},{name:"avoid-column",description:"Avoid a column break within the box."},{name:"avoid-page",description:"Avoid a page break within the box."}],syntax:"auto | avoid | avoid-page | avoid-column | avoid-region",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/break-inside"}],description:"Describes the page/column/region break behavior inside the principal box.",restrictions:["enum"]},{name:"caption-side",browsers:["E12","FF1","S1","C1","IE8","O4"],values:[{name:"bottom",description:"Positions the caption box below the table box."},{name:"top",description:"Positions the caption box above the table box."}],syntax:"top | bottom | block-start | block-end | inline-start | inline-end",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/caption-side"}],description:"Specifies the position of the caption box with respect to the table box.",restrictions:["enum"]},{name:"caret-color",browsers:["E79","FF53","S11.1","C57","O44"],values:[{name:"auto",description:"The user agent selects an appropriate color for the caret. This is generally currentcolor, but the user agent may choose a different color to ensure good visibility and contrast with the surrounding content, taking into account the value of currentcolor, the background, shadows, and other factors."}],syntax:"auto | <color>",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/caret-color"}],description:"Controls the color of the text insertion indicator.",restrictions:["color","enum"]},{name:"clear",browsers:["E12","FF1","S1","C1","IE4","O3.5"],values:[{name:"both",description:"The clearance of the generated box is set to the amount necessary to place the top border edge below the bottom outer edge of any right-floating and left-floating boxes that resulted from elements earlier in the source document."},{name:"left",description:"The clearance of the generated box is set to the amount necessary to place the top border edge below the bottom outer edge of any left-floating boxes that resulted from elements earlier in the source document."},{name:"none",description:"No constraint on the box's position with respect to floats."},{name:"right",description:"The clearance of the generated box is set to the amount necessary to place the top border edge below the bottom outer edge of any right-floating boxes that resulted from elements earlier in the source document."}],syntax:"none | left | right | both | inline-start | inline-end",relevance:83,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/clear"}],description:"Indicates which sides of an element's box(es) may not be adjacent to an earlier floating box. The 'clear' property does not consider floats inside the element itself or in other block formatting contexts.",restrictions:["enum"]},{name:"clip",browsers:["E12","FF1","S1","C1","IE4","O7"],values:[{name:"auto",description:"The element does not clip."},{name:"rect()",description:"Specifies offsets from the edges of the border box."}],syntax:"<shape> | auto",relevance:74,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/clip"}],description:"Deprecated. Use the 'clip-path' property when support allows. Defines the visible portion of an element's box.",restrictions:["enum"]},{name:"clip-path",browsers:["E79","FF3.5","S9.1","C55","IE10","O42"],values:[{name:"none",description:"No clipping path gets created."},{name:"url()",description:"References a <clipPath> element to create a clipping path."}],syntax:"<clip-source> | [ <basic-shape> || <geometry-box> ] | none",relevance:64,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/clip-path"}],description:"Specifies a clipping path where everything inside the path is visible and everything outside is clipped out.",restrictions:["url","shape","geometry-box","enum"]},{name:"clip-rule",browsers:["E80","FF72","S13.1","C80","O67"],values:[{name:"evenodd",description:"Determines the 'insideness' of a point on the canvas by drawing a ray from that point to infinity in any direction and counting the number of path segments from the given shape that the ray crosses."},{name:"nonzero",description:"Determines the 'insideness' of a point on the canvas by drawing a ray from that point to infinity in any direction and then examining the places where a segment of the shape crosses the ray."}],relevance:50,description:"Indicates the algorithm which is to be used to determine what parts of the canvas are included inside the shape.",restrictions:["enum"]},{name:"color",browsers:["E12","FF1","S1","C1","IE3","O3.5"],syntax:"<color>",relevance:94,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/color"}],description:"Sets the color of an element's text",restrictions:["color"]},{name:"color-interpolation-filters",browsers:["E80","FF72","S13.1","C80","O67"],values:[{name:"auto",description:"Color operations are not required to occur in a particular color space."},{name:"linearRGB",description:"Color operations should occur in the linearized RGB color space."},{name:"sRGB",description:"Color operations should occur in the sRGB color space."}],relevance:50,description:"Specifies the color space for imaging operations performed via filter effects.",restrictions:["enum"]},{name:"column-count",browsers:["E12","FF52","S9","C50","IE10","O11.1"],values:[{name:"auto",description:"Determines the number of columns by the 'column-width' property and the element width."}],syntax:"<integer> | auto",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/column-count"}],description:"Describes the optimal number of columns into which the content of the element will be flowed.",restrictions:["integer","enum"]},{name:"column-fill",browsers:["E12","FF52","S9","C50","IE10","O37"],values:[{name:"auto",description:"Fills columns sequentially."},{name:"balance",description:"Balance content equally between columns, if possible."}],syntax:"auto | balance | balance-all",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/column-fill"}],description:"In continuous media, this property will only be consulted if the length of columns has been constrained. Otherwise, columns will automatically be balanced.",restrictions:["enum"]},{name:"column-gap",browsers:["E12","FF1.5","S3","C1","IE10","O11.1"],values:[{name:"normal",description:"User agent specific and typically equivalent to 1em."}],syntax:"normal | <length-percentage>",relevance:60,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/column-gap"}],description:"Sets the gap between columns. If there is a column rule between columns, it will appear in the middle of the gap.",restrictions:["length","enum"]},{name:"column-rule",browsers:["E12","FF52","S9","C50","IE10","O11.1"],syntax:"<'column-rule-width'> || <'column-rule-style'> || <'column-rule-color'>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/column-rule"}],description:"Shorthand for setting 'column-rule-width', 'column-rule-style', and 'column-rule-color' at the same place in the style sheet. Omitted values are set to their initial values.",restrictions:["length","line-width","line-style","color"]},{name:"column-rule-color",browsers:["E12","FF52","S9","C50","IE10","O11.1"],syntax:"<color>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/column-rule-color"}],description:"Sets the color of the column rule",restrictions:["color"]},{name:"column-rule-style",browsers:["E12","FF52","S9","C50","IE10","O11.1"],syntax:"<'border-style'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/column-rule-style"}],description:"Sets the style of the rule between columns of an element.",restrictions:["line-style"]},{name:"column-rule-width",browsers:["E12","FF52","S9","C50","IE10","O11.1"],syntax:"<'border-width'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/column-rule-width"}],description:"Sets the width of the rule between columns. Negative values are not allowed.",restrictions:["length","line-width"]},{name:"columns",browsers:["E12","FF52","S9","C50","IE10","O11.1"],values:[{name:"auto",description:"The width depends on the values of other properties."}],syntax:"<'column-width'> || <'column-count'>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/columns"}],description:"A shorthand property which sets both 'column-width' and 'column-count'.",restrictions:["length","integer","enum"]},{name:"column-span",browsers:["E12","FF71","S9","C50","IE10","O11.1"],values:[{name:"all",description:"The element spans across all columns. Content in the normal flow that appears before the element is automatically balanced across all columns before the element appear."},{name:"none",description:"The element does not span multiple columns."}],syntax:"none | all",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/column-span"}],description:"Describes the page/column break behavior after the generated box.",restrictions:["enum"]},{name:"column-width",browsers:["E12","FF50","S9","C50","IE10","O11.1"],values:[{name:"auto",description:"The width depends on the values of other properties."}],syntax:"<length> | auto",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/column-width"}],description:"Describes the width of columns in multicol elements.",restrictions:["length","enum"]},{name:"contain",browsers:["E79","FF69","S15.4","C52","O39"],values:[{name:"none",description:"Indicates that the property has no effect."},{name:"strict",description:"Turns on all forms of containment for the element."},{name:"content",description:"All containment rules except size are applied to the element."},{name:"size",description:"For properties that can have effects on more than just an element and its descendants, those effects don't escape the containing element."},{name:"layout",description:"Turns on layout containment for the element."},{name:"style",description:"Turns on style containment for the element."},{name:"paint",description:"Turns on paint containment for the element."}],syntax:"none | strict | content | [ [ size || inline-size ] || layout || style || paint ]",relevance:58,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/contain"}],description:"Indicates that an element and its contents are, as much as possible, independent of the rest of the document tree.",restrictions:["enum"]},{name:"content",browsers:["E12","FF1","S1","C1","IE8","O4"],values:[{name:"attr()",description:"The attr(n) function returns as a string the value of attribute n for the subject of the selector."},{name:"counter(name)",description:"Counters are denoted by identifiers (see the 'counter-increment' and 'counter-reset' properties)."},{name:"icon",description:"The (pseudo-)element is replaced in its entirety by the resource referenced by its 'icon' property, and treated as a replaced element."},{name:"none",description:"On elements, this inhibits the children of the element from being rendered as children of this element, as if the element was empty. On pseudo-elements it causes the pseudo-element to have no content."},{name:"normal",description:"See http://www.w3.org/TR/css3-content/#content for computation rules."},{name:"url()"}],syntax:"normal | none | [ <content-replacement> | <content-list> ] [/ [ <string> | <counter> ]+ ]?",relevance:89,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/content"}],description:"Determines which page-based occurrence of a given element is applied to a counter or string value.",restrictions:["string","url"]},{name:"counter-increment",browsers:["E12","FF1","S3","C2","IE8","O9.2"],values:[{name:"none",description:"This element does not alter the value of any counters."}],syntax:"[ <counter-name> <integer>? ]+ | none",relevance:54,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/counter-increment"}],description:"Manipulate the value of existing counters.",restrictions:["identifier","integer"]},{name:"counter-reset",browsers:["E12","FF1","S3","C2","IE8","O9.2"],values:[{name:"none",description:"The counter is not modified."}],syntax:"[ <counter-name> <integer>? | <reversed-counter-name> <integer>? ]+ | none",relevance:54,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/counter-reset"}],description:"Property accepts one or more names of counters (identifiers), each one optionally followed by an integer. The integer gives the value that the counter is set to on each occurrence of the element.",restrictions:["identifier","integer"]},{name:"cursor",browsers:["E12","FF1","S1.2","C1","IE4","O7"],values:[{name:"alias",description:"Indicates an alias of/shortcut to something is to be created. Often rendered as an arrow with a small curved arrow next to it."},{name:"all-scroll",description:"Indicates that the something can be scrolled in any direction. Often rendered as arrows pointing up, down, left, and right with a dot in the middle."},{name:"auto",description:"The UA determines the cursor to display based on the current context."},{name:"cell",description:"Indicates that a cell or set of cells may be selected. Often rendered as a thick plus-sign with a dot in the middle."},{name:"col-resize",description:"Indicates that the item/column can be resized horizontally. Often rendered as arrows pointing left and right with a vertical bar separating them."},{name:"context-menu",description:"A context menu is available for the object under the cursor. Often rendered as an arrow with a small menu-like graphic next to it."},{name:"copy",description:"Indicates something is to be copied. Often rendered as an arrow with a small plus sign next to it."},{name:"crosshair",description:"A simple crosshair (e.g., short line segments resembling a '+' sign). Often used to indicate a two dimensional bitmap selection mode."},{name:"default",description:"The platform-dependent default cursor. Often rendered as an arrow."},{name:"e-resize",description:"Indicates that east edge is to be moved."},{name:"ew-resize",description:"Indicates a bidirectional east-west resize cursor."},{name:"grab",browsers:["E12","FF1","S1.2","C1","IE4","O7"],description:"Indicates that something can be grabbed."},{name:"grabbing",browsers:["E12","FF1","S1.2","C1","IE4","O7"],description:"Indicates that something is being grabbed."},{name:"help",description:"Help is available for the object under the cursor. Often rendered as a question mark or a balloon."},{name:"move",description:"Indicates something is to be moved."},{name:"-moz-grab",browsers:["E12","FF1","S1.2","C1","IE4","O7"],description:"Indicates that something can be grabbed."},{name:"-moz-grabbing",browsers:["E12","FF1","S1.2","C1","IE4","O7"],description:"Indicates that something is being grabbed."},{name:"-moz-zoom-in",browsers:["E12","FF1","S1.2","C1","IE4","O7"],description:"Indicates that something can be zoomed (magnified) in."},{name:"-moz-zoom-out",browsers:["E12","FF1","S1.2","C1","IE4","O7"],description:"Indicates that something can be zoomed (magnified) out."},{name:"ne-resize",description:"Indicates that movement starts from north-east corner."},{name:"nesw-resize",description:"Indicates a bidirectional north-east/south-west cursor."},{name:"no-drop",description:"Indicates that the dragged item cannot be dropped at the current cursor location. Often rendered as a hand or pointer with a small circle with a line through it."},{name:"none",description:"No cursor is rendered for the element."},{name:"not-allowed",description:"Indicates that the requested action will not be carried out. Often rendered as a circle with a line through it."},{name:"n-resize",description:"Indicates that north edge is to be moved."},{name:"ns-resize",description:"Indicates a bidirectional north-south cursor."},{name:"nw-resize",description:"Indicates that movement starts from north-west corner."},{name:"nwse-resize",description:"Indicates a bidirectional north-west/south-east cursor."},{name:"pointer",description:"The cursor is a pointer that indicates a link."},{name:"progress",description:"A progress indicator. The program is performing some processing, but is different from 'wait' in that the user may still interact with the program. Often rendered as a spinning beach ball, or an arrow with a watch or hourglass."},{name:"row-resize",description:"Indicates that the item/row can be resized vertically. Often rendered as arrows pointing up and down with a horizontal bar separating them."},{name:"se-resize",description:"Indicates that movement starts from south-east corner."},{name:"s-resize",description:"Indicates that south edge is to be moved."},{name:"sw-resize",description:"Indicates that movement starts from south-west corner."},{name:"text",description:"Indicates text that may be selected. Often rendered as a vertical I-beam."},{name:"vertical-text",description:"Indicates vertical-text that may be selected. Often rendered as a horizontal I-beam."},{name:"wait",description:"Indicates that the program is busy and the user should wait. Often rendered as a watch or hourglass."},{name:"-webkit-grab",browsers:["E12","FF1","S1.2","C1","IE4","O7"],description:"Indicates that something can be grabbed."},{name:"-webkit-grabbing",browsers:["E12","FF1","S1.2","C1","IE4","O7"],description:"Indicates that something is being grabbed."},{name:"-webkit-zoom-in",browsers:["E12","FF1","S1.2","C1","IE4","O7"],description:"Indicates that something can be zoomed (magnified) in."},{name:"-webkit-zoom-out",browsers:["E12","FF1","S1.2","C1","IE4","O7"],description:"Indicates that something can be zoomed (magnified) out."},{name:"w-resize",description:"Indicates that west edge is to be moved."},{name:"zoom-in",browsers:["E12","FF1","S1.2","C1","IE4","O7"],description:"Indicates that something can be zoomed (magnified) in."},{name:"zoom-out",browsers:["E12","FF1","S1.2","C1","IE4","O7"],description:"Indicates that something can be zoomed (magnified) out."}],syntax:"[ [ <url> [ <x> <y> ]? , ]* [ auto | default | none | context-menu | help | pointer | progress | wait | cell | crosshair | text | vertical-text | alias | copy | move | no-drop | not-allowed | e-resize | n-resize | ne-resize | nw-resize | s-resize | se-resize | sw-resize | w-resize | ew-resize | ns-resize | nesw-resize | nwse-resize | col-resize | row-resize | all-scroll | zoom-in | zoom-out | grab | grabbing ] ]",relevance:91,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/cursor"}],description:"Allows control over cursor appearance in an element",restrictions:["url","number","enum"]},{name:"direction",browsers:["E12","FF1","S1","C2","IE5.5","O9.2"],values:[{name:"ltr",description:"Left-to-right direction."},{name:"rtl",description:"Right-to-left direction."}],syntax:"ltr | rtl",relevance:71,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/direction"}],description:"Specifies the inline base direction or directionality of any bidi paragraph, embedding, isolate, or override established by the box. Note: for HTML content use the 'dir' attribute and 'bdo' element rather than this property.",restrictions:["enum"]},{name:"display",browsers:["E12","FF1","S1","C1","IE4","O7"],values:[{name:"block",description:"The element generates a block-level box"},{name:"contents",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"The element itself does not generate any boxes, but its children and pseudo-elements still generate boxes as normal."},{name:"flex",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"The element generates a principal flex container box and establishes a flex formatting context."},{name:"flexbox",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"The element lays out its contents using flow layout (block-and-inline layout). Standardized as 'flex'."},{name:"flow-root",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"The element generates a block container box, and lays out its contents using flow layout."},{name:"grid",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"The element generates a principal grid container box, and establishes a grid formatting context."},{name:"inline",description:"The element generates an inline-level box."},{name:"inline-block",description:"A block box, which itself is flowed as a single inline box, similar to a replaced element. The inside of an inline-block is formatted as a block box, and the box itself is formatted as an inline box."},{name:"inline-flex",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"Inline-level flex container."},{name:"inline-flexbox",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"Inline-level flex container. Standardized as 'inline-flex'"},{name:"inline-table",description:"Inline-level table wrapper box containing table box."},{name:"list-item",description:"One or more block boxes and one marker box."},{name:"-moz-box",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"The element lays out its contents using flow layout (block-and-inline layout). Standardized as 'flex'."},{name:"-moz-deck",browsers:["E12","FF1","S1","C1","IE4","O7"]},{name:"-moz-grid",browsers:["E12","FF1","S1","C1","IE4","O7"]},{name:"-moz-grid-group",browsers:["E12","FF1","S1","C1","IE4","O7"]},{name:"-moz-grid-line",browsers:["E12","FF1","S1","C1","IE4","O7"]},{name:"-moz-groupbox",browsers:["E12","FF1","S1","C1","IE4","O7"]},{name:"-moz-inline-box",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"Inline-level flex container. Standardized as 'inline-flex'"},{name:"-moz-inline-grid",browsers:["E12","FF1","S1","C1","IE4","O7"]},{name:"-moz-inline-stack",browsers:["E12","FF1","S1","C1","IE4","O7"]},{name:"-moz-marker",browsers:["E12","FF1","S1","C1","IE4","O7"]},{name:"-moz-popup",browsers:["E12","FF1","S1","C1","IE4","O7"]},{name:"-moz-stack",browsers:["E12","FF1","S1","C1","IE4","O7"]},{name:"-ms-flexbox",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"The element lays out its contents using flow layout (block-and-inline layout). Standardized as 'flex'."},{name:"-ms-grid",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"The element generates a principal grid container box, and establishes a grid formatting context."},{name:"-ms-inline-flexbox",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"Inline-level flex container. Standardized as 'inline-flex'"},{name:"-ms-inline-grid",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"Inline-level grid container."},{name:"none",description:"The element and its descendants generates no boxes."},{name:"ruby",description:"The element generates a principal ruby container box, and establishes a ruby formatting context."},{name:"ruby-base"},{name:"ruby-base-container"},{name:"ruby-text"},{name:"ruby-text-container"},{name:"run-in",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"The element generates a run-in box. Run-in elements act like inlines or blocks, depending on the surrounding elements."},{name:"table",description:"The element generates a principal table wrapper box containing an additionally-generated table box, and establishes a table formatting context."},{name:"table-caption"},{name:"table-cell"},{name:"table-column"},{name:"table-column-group"},{name:"table-footer-group"},{name:"table-header-group"},{name:"table-row"},{name:"table-row-group"},{name:"-webkit-box",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"The element lays out its contents using flow layout (block-and-inline layout). Standardized as 'flex'."},{name:"-webkit-flex",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"The element lays out its contents using flow layout (block-and-inline layout)."},{name:"-webkit-inline-box",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"Inline-level flex container. Standardized as 'inline-flex'"},{name:"-webkit-inline-flex",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"Inline-level flex container."}],syntax:"[ <display-outside> || <display-inside> ] | <display-listitem> | <display-internal> | <display-box> | <display-legacy>",relevance:96,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/display"}],description:"In combination with 'float' and 'position', determines the type of box or boxes that are generated for an element.",restrictions:["enum"]},{name:"empty-cells",browsers:["E12","FF1","S1.2","C1","IE8","O4"],values:[{name:"hide",description:"No borders or backgrounds are drawn around/behind empty cells."},{name:"-moz-show-background",browsers:["E12","FF1","S1.2","C1","IE8","O4"]},{name:"show",description:"Borders and backgrounds are drawn around/behind empty cells (like normal cells)."}],syntax:"show | hide",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/empty-cells"}],description:"In the separated borders model, this property controls the rendering of borders and backgrounds around cells that have no visible content.",restrictions:["enum"]},{name:"enable-background",values:[{name:"accumulate",description:"If the ancestor container element has a property of new, then all graphics elements within the current container are rendered both on the parent's background image and onto the target."},{name:"new",description:"Create a new background image canvas. All children of the current container element can access the background, and they will be rendered onto both the parent's background image canvas in addition to the target device."}],relevance:50,description:"Deprecated. Use 'isolation' property instead when support allows. Specifies how the accumulation of the background image is managed.",restrictions:["integer","length","percentage","enum"]},{name:"fallback",browsers:["FF33"],atRule:"@counter-style",syntax:"<counter-style-name>",relevance:50,description:"@counter-style descriptor. Specifies a fallback counter style to be used when the current counter style can't create a representation for a given counter value.",restrictions:["identifier"]},{name:"fill",browsers:["E80","FF72","S13.1","C80","O67"],values:[{name:"url()",description:"A URL reference to a paint server element, which is an element that defines a paint server: 'hatch', 'linearGradient', 'mesh', 'pattern', 'radialGradient' and 'solidcolor'."},{name:"none",description:"No paint is applied in this layer."}],relevance:77,description:"Paints the interior of the given graphical element.",restrictions:["color","enum","url"]},{name:"fill-opacity",browsers:["E80","FF72","S13.1","C80","O67"],relevance:52,description:"Specifies the opacity of the painting operation used to paint the interior the current object.",restrictions:["number(0-1)"]},{name:"fill-rule",browsers:["E80","FF72","S13.1","C80","O67"],values:[{name:"evenodd",description:"Determines the 'insideness' of a point on the canvas by drawing a ray from that point to infinity in any direction and counting the number of path segments from the given shape that the ray crosses."},{name:"nonzero",description:"Determines the 'insideness' of a point on the canvas by drawing a ray from that point to infinity in any direction and then examining the places where a segment of the shape crosses the ray."}],relevance:51,description:"Indicates the algorithm (or winding rule) which is to be used to determine what parts of the canvas are included inside the shape.",restrictions:["enum"]},{name:"filter",browsers:["E12","FF35","S9.1","C53","O40"],values:[{name:"none",description:"No filter effects are applied."},{name:"blur()",description:"Applies a Gaussian blur to the input image."},{name:"brightness()",description:"Applies a linear multiplier to input image, making it appear more or less bright."},{name:"contrast()",description:"Adjusts the contrast of the input."},{name:"drop-shadow()",description:"Applies a drop shadow effect to the input image."},{name:"grayscale()",description:"Converts the input image to grayscale."},{name:"hue-rotate()",description:"Applies a hue rotation on the input image. "},{name:"invert()",description:"Inverts the samples in the input image."},{name:"opacity()",description:"Applies transparency to the samples in the input image."},{name:"saturate()",description:"Saturates the input image."},{name:"sepia()",description:"Converts the input image to sepia."},{name:"url()",browsers:["E12","FF35","S9.1","C53","O40"],description:"A filter reference to a <filter> element."}],syntax:"none | <filter-function-list>",relevance:70,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/filter"}],description:"Processes an element's rendering before it is displayed in the document, by applying one or more filter effects.",restrictions:["enum","url"]},{name:"flex",browsers:["E12","FF20","S9","C29","IE11","O12.1"],values:[{name:"auto",description:"Retrieves the value of the main size property as the used 'flex-basis'."},{name:"content",browsers:["E12","FF20","S9","C29","IE11","O12.1"],description:"Indicates automatic sizing, based on the flex item's content."},{name:"none",description:"Expands to '0 0 auto'."}],syntax:"none | [ <'flex-grow'> <'flex-shrink'>? || <'flex-basis'> ]",relevance:81,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/flex"}],description:"Specifies the components of a flexible length: the flex grow factor and flex shrink factor, and the flex basis.",restrictions:["length","number","percentage"]},{name:"flex-basis",browsers:["E12","FF22","S9","C29","IE11","O12.1"],values:[{name:"auto",description:"Retrieves the value of the main size property as the used 'flex-basis'."},{name:"content",browsers:["E12","FF22","S9","C29","IE11","O12.1"],description:"Indicates automatic sizing, based on the flex item's content."}],syntax:"content | <'width'>",relevance:70,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/flex-basis"}],description:"Sets the flex basis.",restrictions:["length","number","percentage"]},{name:"flex-direction",browsers:["E12","FF81","S9","C29","IE11","O12.1"],values:[{name:"column",description:"The flex container's main axis has the same orientation as the block axis of the current writing mode."},{name:"column-reverse",description:"Same as 'column', except the main-start and main-end directions are swapped."},{name:"row",description:"The flex container's main axis has the same orientation as the inline axis of the current writing mode."},{name:"row-reverse",description:"Same as 'row', except the main-start and main-end directions are swapped."}],syntax:"row | row-reverse | column | column-reverse",relevance:84,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/flex-direction"}],description:"Specifies how flex items are placed in the flex container, by setting the direction of the flex container's main axis.",restrictions:["enum"]},{name:"flex-flow",browsers:["E12","FF28","S9","C29","IE11","O12.1"],values:[{name:"column",description:"The flex container's main axis has the same orientation as the block axis of the current writing mode."},{name:"column-reverse",description:"Same as 'column', except the main-start and main-end directions are swapped."},{name:"nowrap",description:"The flex container is single-line."},{name:"row",description:"The flex container's main axis has the same orientation as the inline axis of the current writing mode."},{name:"row-reverse",description:"Same as 'row', except the main-start and main-end directions are swapped."},{name:"wrap",description:"The flexbox is multi-line."},{name:"wrap-reverse",description:"Same as 'wrap', except the cross-start and cross-end directions are swapped."}],syntax:"<'flex-direction'> || <'flex-wrap'>",relevance:64,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/flex-flow"}],description:"Specifies how flexbox items are placed in the flexbox.",restrictions:["enum"]},{name:"flex-grow",browsers:["E12","FF20","S9","C29","IE11","O12.1"],syntax:"<number>",relevance:77,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/flex-grow"}],description:"Sets the flex grow factor. Negative numbers are invalid.",restrictions:["number"]},{name:"flex-shrink",browsers:["E12","FF20","S9","C29","IE10","O12.1"],syntax:"<number>",relevance:76,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/flex-shrink"}],description:"Sets the flex shrink factor. Negative numbers are invalid.",restrictions:["number"]},{name:"flex-wrap",browsers:["E12","FF28","S9","C29","IE11","O17"],values:[{name:"nowrap",description:"The flex container is single-line."},{name:"wrap",description:"The flexbox is multi-line."},{name:"wrap-reverse",description:"Same as 'wrap', except the cross-start and cross-end directions are swapped."}],syntax:"nowrap | wrap | wrap-reverse",relevance:82,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/flex-wrap"}],description:"Controls whether the flex container is single-line or multi-line, and the direction of the cross-axis, which determines the direction new lines are stacked in.",restrictions:["enum"]},{name:"float",browsers:["E12","FF1","S1","C1","IE4","O7"],values:[{name:"inline-end",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"A keyword indicating that the element must float on the end side of its containing block. That is the right side with ltr scripts, and the left side with rtl scripts."},{name:"inline-start",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"A keyword indicating that the element must float on the start side of its containing block. That is the left side with ltr scripts, and the right side with rtl scripts."},{name:"left",description:"The element generates a block box that is floated to the left. Content flows on the right side of the box, starting at the top (subject to the 'clear' property)."},{name:"none",description:"The box is not floated."},{name:"right",description:"Similar to 'left', except the box is floated to the right, and content flows on the left side of the box, starting at the top."}],syntax:"left | right | none | inline-start | inline-end",relevance:89,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/float"}],description:"Specifies how a box should be floated. It may be set for any element, but only applies to elements that generate boxes that are not absolutely positioned.",restrictions:["enum"]},{name:"flood-color",browsers:["E12","FF3","S6","C5","IE","O15"],relevance:50,description:"Indicates what color to use to flood the current filter primitive subregion.",restrictions:["color"]},{name:"flood-opacity",browsers:["E12","FF3","S6","C5","IE","O15"],relevance:50,description:"Indicates what opacity to use to flood the current filter primitive subregion.",restrictions:["number(0-1)","percentage"]},{name:"font",browsers:["E12","FF1","S1","C1","IE3","O3.5"],values:[{name:"100",description:"Thin"},{name:"200",description:"Extra Light (Ultra Light)"},{name:"300",description:"Light"},{name:"400",description:"Normal"},{name:"500",description:"Medium"},{name:"600",description:"Semi Bold (Demi Bold)"},{name:"700",description:"Bold"},{name:"800",description:"Extra Bold (Ultra Bold)"},{name:"900",description:"Black (Heavy)"},{name:"bold",description:"Same as 700"},{name:"bolder",description:"Specifies the weight of the face bolder than the inherited value."},{name:"caption",description:"The font used for captioned controls (e.g., buttons, drop-downs, etc.)."},{name:"icon",description:"The font used to label icons."},{name:"italic",description:"Selects a font that is labeled 'italic', or, if that is not available, one labeled 'oblique'."},{name:"large"},{name:"larger"},{name:"lighter",description:"Specifies the weight of the face lighter than the inherited value."},{name:"medium"},{name:"menu",description:"The font used in menus (e.g., dropdown menus and menu lists)."},{name:"message-box",description:"The font used in dialog boxes."},{name:"normal",description:"Specifies a face that is not labeled as a small-caps font."},{name:"oblique",description:"Selects a font that is labeled 'oblique'."},{name:"small"},{name:"small-caps",description:"Specifies a font that is labeled as a small-caps font. If a genuine small-caps font is not available, user agents should simulate a small-caps font."},{name:"small-caption",description:"The font used for labeling small controls."},{name:"smaller"},{name:"status-bar",description:"The font used in window status bars."},{name:"x-large"},{name:"x-small"},{name:"xx-large"},{name:"xx-small"}],syntax:"[ [ <'font-style'> || <font-variant-css21> || <'font-weight'> || <'font-stretch'> ]? <'font-size'> [ / <'line-height'> ]? <'font-family'> ] | caption | icon | menu | message-box | small-caption | status-bar",relevance:83,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font"}],description:"Shorthand property for setting 'font-style', 'font-variant', 'font-weight', 'font-size', 'line-height', and 'font-family', at the same place in the style sheet. The syntax of this property is based on a traditional typographical shorthand notation to set multiple properties related to fonts.",restrictions:["font"]},{name:"font-family",browsers:["E12","FF1","S1","C1","IE3","O3.5"],values:[{name:"system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif"},{name:"Arial, Helvetica, sans-serif"},{name:"Cambria, Cochin, Georgia, Times, 'Times New Roman', serif"},{name:"'Courier New', Courier, monospace"},{name:"cursive"},{name:"fantasy"},{name:"'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif"},{name:"Georgia, 'Times New Roman', Times, serif"},{name:"'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif"},{name:"Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif"},{name:"'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif"},{name:"monospace"},{name:"sans-serif"},{name:"'Segoe UI', Tahoma, Geneva, Verdana, sans-serif"},{name:"serif"},{name:"'Times New Roman', Times, serif"},{name:"'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif"},{name:"Verdana, Geneva, Tahoma, sans-serif"}],atRule:"@font-face",syntax:"<family-name>",relevance:93,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-family"}],description:"Specifies a prioritized list of font family names or generic family names. A user agent iterates through the list of family names until it matches an available font that contains a glyph for the character to be rendered.",restrictions:["font"]},{name:"font-feature-settings",browsers:["E15","FF34","S9.1","C48","IE10","O35"],values:[{name:'"aalt"',description:"Access All Alternates."},{name:'"abvf"',description:"Above-base Forms. Required in Khmer script."},{name:'"abvm"',description:"Above-base Mark Positioning. Required in Indic scripts."},{name:'"abvs"',description:"Above-base Substitutions. Required in Indic scripts."},{name:'"afrc"',description:"Alternative Fractions."},{name:'"akhn"',description:"Akhand. Required in most Indic scripts."},{name:'"blwf"',description:"Below-base Form. Required in a number of Indic scripts."},{name:'"blwm"',description:"Below-base Mark Positioning. Required in Indic scripts."},{name:'"blws"',description:"Below-base Substitutions. Required in Indic scripts."},{name:'"calt"',description:"Contextual Alternates."},{name:'"case"',description:"Case-Sensitive Forms. Applies only to European scripts; particularly prominent in Spanish-language setting."},{name:'"ccmp"',description:"Glyph Composition/Decomposition."},{name:'"cfar"',description:"Conjunct Form After Ro. Required in Khmer scripts."},{name:'"cjct"',description:"Conjunct Forms. Required in Indic scripts that show similarity to Devanagari."},{name:'"clig"',description:"Contextual Ligatures."},{name:'"cpct"',description:"Centered CJK Punctuation. Used primarily in Chinese fonts."},{name:'"cpsp"',description:"Capital Spacing. Should not be used in connecting scripts (e.g. most Arabic)."},{name:'"cswh"',description:"Contextual Swash."},{name:'"curs"',description:"Cursive Positioning. Can be used in any cursive script."},{name:'"c2pc"',description:"Petite Capitals From Capitals. Applies only to bicameral scripts."},{name:'"c2sc"',description:"Small Capitals From Capitals. Applies only to bicameral scripts."},{name:'"dist"',description:"Distances. Required in Indic scripts."},{name:'"dlig"',description:"Discretionary ligatures."},{name:'"dnom"',description:"Denominators."},{name:'"dtls"',description:"Dotless Forms. Applied to math formula layout."},{name:'"expt"',description:"Expert Forms. Applies only to Japanese."},{name:'"falt"',description:"Final Glyph on Line Alternates. Can be used in any cursive script."},{name:'"fin2"',description:"Terminal Form #2. Used only with the Syriac script."},{name:'"fin3"',description:"Terminal Form #3. Used only with the Syriac script."},{name:'"fina"',description:"Terminal Forms. Can be used in any alphabetic script."},{name:'"flac"',description:"Flattened ascent forms. Applied to math formula layout."},{name:'"frac"',description:"Fractions."},{name:'"fwid"',description:"Full Widths. Applies to any script which can use monospaced forms."},{name:'"half"',description:"Half Forms. Required in Indic scripts that show similarity to Devanagari."},{name:'"haln"',description:"Halant Forms. Required in Indic scripts."},{name:'"halt"',description:"Alternate Half Widths. Used only in CJKV fonts."},{name:'"hist"',description:"Historical Forms."},{name:'"hkna"',description:"Horizontal Kana Alternates. Applies only to fonts that support kana (hiragana and katakana)."},{name:'"hlig"',description:"Historical Ligatures."},{name:'"hngl"',description:"Hangul. Korean only."},{name:'"hojo"',description:"Hojo Kanji Forms (JIS X 0212-1990 Kanji Forms). Used only with Kanji script."},{name:'"hwid"',description:"Half Widths. Generally used only in CJKV fonts."},{name:'"init"',description:"Initial Forms. Can be used in any alphabetic script."},{name:'"isol"',description:"Isolated Forms. Can be used in any cursive script."},{name:'"ital"',description:"Italics. Applies mostly to Latin; note that many non-Latin fonts contain Latin as well."},{name:'"jalt"',description:"Justification Alternates. Can be used in any cursive script."},{name:'"jp78"',description:"JIS78 Forms. Applies only to Japanese."},{name:'"jp83"',description:"JIS83 Forms. Applies only to Japanese."},{name:'"jp90"',description:"JIS90 Forms. Applies only to Japanese."},{name:'"jp04"',description:"JIS2004 Forms. Applies only to Japanese."},{name:'"kern"',description:"Kerning."},{name:'"lfbd"',description:"Left Bounds."},{name:'"liga"',description:"Standard Ligatures."},{name:'"ljmo"',description:"Leading Jamo Forms. Required for Hangul script when Ancient Hangul writing system is supported."},{name:'"lnum"',description:"Lining Figures."},{name:'"locl"',description:"Localized Forms."},{name:'"ltra"',description:"Left-to-right glyph alternates."},{name:'"ltrm"',description:"Left-to-right mirrored forms."},{name:'"mark"',description:"Mark Positioning."},{name:'"med2"',description:"Medial Form #2. Used only with the Syriac script."},{name:'"medi"',description:"Medial Forms."},{name:'"mgrk"',description:"Mathematical Greek."},{name:'"mkmk"',description:"Mark to Mark Positioning."},{name:'"nalt"',description:"Alternate Annotation Forms."},{name:'"nlck"',description:"NLC Kanji Forms. Used only with Kanji script."},{name:'"nukt"',description:"Nukta Forms. Required in Indic scripts.."},{name:'"numr"',description:"Numerators."},{name:'"onum"',description:"Oldstyle Figures."},{name:'"opbd"',description:"Optical Bounds."},{name:'"ordn"',description:"Ordinals. Applies mostly to Latin script."},{name:'"ornm"',description:"Ornaments."},{name:'"palt"',description:"Proportional Alternate Widths. Used mostly in CJKV fonts."},{name:'"pcap"',description:"Petite Capitals."},{name:'"pkna"',description:"Proportional Kana. Generally used only in Japanese fonts."},{name:'"pnum"',description:"Proportional Figures."},{name:'"pref"',description:"Pre-base Forms. Required in Khmer and Myanmar (Burmese) scripts and southern Indic scripts that may display a pre-base form of Ra."},{name:'"pres"',description:"Pre-base Substitutions. Required in Indic scripts."},{name:'"pstf"',description:"Post-base Forms. Required in scripts of south and southeast Asia that have post-base forms for consonants eg: Gurmukhi, Malayalam, Khmer."},{name:'"psts"',description:"Post-base Substitutions."},{name:'"pwid"',description:"Proportional Widths."},{name:'"qwid"',description:"Quarter Widths. Generally used only in CJKV fonts."},{name:'"rand"',description:"Randomize."},{name:'"rclt"',description:"Required Contextual Alternates. May apply to any script, but is especially important for many styles of Arabic."},{name:'"rlig"',description:"Required Ligatures. Applies to Arabic and Syriac. May apply to some other scripts."},{name:'"rkrf"',description:"Rakar Forms. Required in Devanagari and Gujarati scripts."},{name:'"rphf"',description:"Reph Form. Required in Indic scripts. E.g. Devanagari, Kannada."},{name:'"rtbd"',description:"Right Bounds."},{name:'"rtla"',description:"Right-to-left alternates."},{name:'"rtlm"',description:"Right-to-left mirrored forms."},{name:'"ruby"',description:"Ruby Notation Forms. Applies only to Japanese."},{name:'"salt"',description:"Stylistic Alternates."},{name:'"sinf"',description:"Scientific Inferiors."},{name:'"size"',description:"Optical size."},{name:'"smcp"',description:"Small Capitals. Applies only to bicameral scripts."},{name:'"smpl"',description:"Simplified Forms. Applies only to Chinese and Japanese."},{name:'"ssty"',description:"Math script style alternates."},{name:'"stch"',description:"Stretching Glyph Decomposition."},{name:'"subs"',description:"Subscript."},{name:'"sups"',description:"Superscript."},{name:'"swsh"',description:"Swash. Does not apply to ideographic scripts."},{name:'"titl"',description:"Titling."},{name:'"tjmo"',description:"Trailing Jamo Forms. Required for Hangul script when Ancient Hangul writing system is supported."},{name:'"tnam"',description:"Traditional Name Forms. Applies only to Japanese."},{name:'"tnum"',description:"Tabular Figures."},{name:'"trad"',description:"Traditional Forms. Applies only to Chinese and Japanese."},{name:'"twid"',description:"Third Widths. Generally used only in CJKV fonts."},{name:'"unic"',description:"Unicase."},{name:'"valt"',description:"Alternate Vertical Metrics. Applies only to scripts with vertical writing modes."},{name:'"vatu"',description:"Vattu Variants. Used for Indic scripts. E.g. Devanagari."},{name:'"vert"',description:"Vertical Alternates. Applies only to scripts with vertical writing modes."},{name:'"vhal"',description:"Alternate Vertical Half Metrics. Used only in CJKV fonts."},{name:'"vjmo"',description:"Vowel Jamo Forms. Required for Hangul script when Ancient Hangul writing system is supported."},{name:'"vkna"',description:"Vertical Kana Alternates. Applies only to fonts that support kana (hiragana and katakana)."},{name:'"vkrn"',description:"Vertical Kerning."},{name:'"vpal"',description:"Proportional Alternate Vertical Metrics. Used mostly in CJKV fonts."},{name:'"vrt2"',description:"Vertical Alternates and Rotation. Applies only to scripts with vertical writing modes."},{name:'"zero"',description:"Slashed Zero."},{name:"normal",description:"No change in glyph substitution or positioning occurs."},{name:"off",description:"Disable feature."},{name:"on",description:"Enable feature."}],atRule:"@font-face",syntax:"normal | <feature-tag-value>#",relevance:57,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-feature-settings"}],description:"Provides low-level control over OpenType font features. It is intended as a way of providing access to font features that are not widely used but are needed for a particular use case.",restrictions:["string","integer"]},{name:"font-kerning",browsers:["E79","FF32","S9","C33","O20"],values:[{name:"auto",description:"Specifies that kerning is applied at the discretion of the user agent."},{name:"none",description:"Specifies that kerning is not applied."},{name:"normal",description:"Specifies that kerning is applied."}],syntax:"auto | normal | none",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-kerning"}],description:"Kerning is the contextual adjustment of inter-glyph spacing. This property controls metric kerning, kerning that utilizes adjustment data contained in the font.",restrictions:["enum"]},{name:"font-language-override",browsers:["FF34"],values:[{name:"normal",description:"Implies that when rendering with OpenType fonts the language of the document is used to infer the OpenType language system, used to select language specific features when rendering."}],syntax:"normal | <string>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-language-override"}],description:"The value of 'normal' implies that when rendering with OpenType fonts the language of the document is used to infer the OpenType language system, used to select language specific features when rendering.",restrictions:["string"]},{name:"font-size",browsers:["E12","FF1","S1","C1","IE5.5","O7"],values:[{name:"large"},{name:"larger"},{name:"medium"},{name:"small"},{name:"smaller"},{name:"x-large"},{name:"x-small"},{name:"xx-large"},{name:"xx-small"}],syntax:"<absolute-size> | <relative-size> | <length-percentage>",relevance:94,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-size"}],description:"Indicates the desired height of glyphs from the font. For scalable fonts, the font-size is a scale factor applied to the EM unit of the font. (Note that certain glyphs may bleed outside their EM box.) For non-scalable fonts, the font-size is converted into absolute units and matched against the declared font-size of the font, using the same absolute coordinate space for both of the matched values.",restrictions:["length","percentage"]},{name:"font-size-adjust",browsers:["FF3","S16.4"],values:[{name:"none",description:"Do not preserve the font's x-height."}],syntax:"none | [ ex-height | cap-height | ch-width | ic-width | ic-height ]? [ from-font | <number> ]",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-size-adjust"}],description:"Preserves the readability of text when font fallback occurs by adjusting the font-size so that the x-height is the same regardless of the font used.",restrictions:["number"]},{name:"font-stretch",browsers:["E12","FF9","S11","C60","IE9","O47"],values:[{name:"condensed"},{name:"expanded"},{name:"extra-condensed"},{name:"extra-expanded"},{name:"narrower",browsers:["E12","FF9","S11","C60","IE9","O47"],description:"Indicates a narrower value relative to the width of the parent element."},{name:"normal"},{name:"semi-condensed"},{name:"semi-expanded"},{name:"ultra-condensed"},{name:"ultra-expanded"},{name:"wider",browsers:["E12","FF9","S11","C60","IE9","O47"],description:"Indicates a wider value relative to the width of the parent element."}],atRule:"@font-face",syntax:"<font-stretch-absolute>{1,2}",relevance:56,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-stretch"}],description:"Selects a normal, condensed, or expanded face from a font family.",restrictions:["enum"]},{name:"font-style",browsers:["E12","FF1","S1","C1","IE4","O7"],values:[{name:"italic",description:"Selects a font that is labeled as an 'italic' face, or an 'oblique' face if one is not"},{name:"normal",description:"Selects a face that is classified as 'normal'."},{name:"oblique",description:"Selects a font that is labeled as an 'oblique' face, or an 'italic' face if one is not."}],atRule:"@font-face",syntax:"normal | italic | oblique <angle>{0,2}",relevance:89,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-style"}],description:"Allows italic or oblique faces to be selected. Italic forms are generally cursive in nature while oblique faces are typically sloped versions of the regular face.",restrictions:["enum"]},{name:"font-synthesis",browsers:["E97","FF34","S9","C97","O83"],values:[{name:"none",description:"Disallow all synthetic faces."},{name:"style",description:"Allow synthetic italic faces."},{name:"weight",description:"Allow synthetic bold faces."}],syntax:"none | [ weight || style || small-caps || position]",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-synthesis"}],description:"Controls whether user agents are allowed to synthesize bold or oblique font faces when a font family lacks bold or italic faces.",restrictions:["enum"]},{name:"font-variant",browsers:["E12","FF1","S1","C1","IE4","O3.5"],values:[{name:"normal",description:"Specifies a face that is not labeled as a small-caps font."},{name:"small-caps",description:"Specifies a font that is labeled as a small-caps font. If a genuine small-caps font is not available, user agents should simulate a small-caps font."}],syntax:"normal | none | [ <common-lig-values> || <discretionary-lig-values> || <historical-lig-values> || <contextual-alt-values> || stylistic( <feature-value-name> ) || historical-forms || styleset( <feature-value-name># ) || character-variant( <feature-value-name># ) || swash( <feature-value-name> ) || ornaments( <feature-value-name> ) || annotation( <feature-value-name> ) || [ small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps ] || <numeric-figure-values> || <numeric-spacing-values> || <numeric-fraction-values> || ordinal || slashed-zero || <east-asian-variant-values> || <east-asian-width-values> || ruby ]",relevance:64,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-variant"}],description:"Specifies variant representations of the font",restrictions:["enum"]},{name:"font-variant-alternates",browsers:["E111","FF34","S9.1","C111","O97"],values:[{name:"annotation()",description:"Enables display of alternate annotation forms."},{name:"character-variant()",description:"Enables display of specific character variants."},{name:"historical-forms",description:"Enables display of historical forms."},{name:"normal",description:"None of the features are enabled."},{name:"ornaments()",description:"Enables replacement of default glyphs with ornaments, if provided in the font."},{name:"styleset()",description:"Enables display with stylistic sets."},{name:"stylistic()",description:"Enables display of stylistic alternates."},{name:"swash()",description:"Enables display of swash glyphs."}],syntax:"normal | [ stylistic( <feature-value-name> ) || historical-forms || styleset( <feature-value-name># ) || character-variant( <feature-value-name># ) || swash( <feature-value-name> ) || ornaments( <feature-value-name> ) || annotation( <feature-value-name> ) ]",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-variant-alternates"}],description:"For any given character, fonts can provide a variety of alternate glyphs in addition to the default glyph for that character. This property provides control over the selection of these alternate glyphs.",restrictions:["enum"]},{name:"font-variant-caps",browsers:["E79","FF34","S9.1","C52","O39"],values:[{name:"all-petite-caps",description:"Enables display of petite capitals for both upper and lowercase letters."},{name:"all-small-caps",description:"Enables display of small capitals for both upper and lowercase letters."},{name:"normal",description:"None of the features are enabled."},{name:"petite-caps",description:"Enables display of petite capitals."},{name:"small-caps",description:"Enables display of small capitals. Small-caps glyphs typically use the form of uppercase letters but are reduced to the size of lowercase letters."},{name:"titling-caps",description:"Enables display of titling capitals."},{name:"unicase",description:"Enables display of mixture of small capitals for uppercase letters with normal lowercase letters."}],syntax:"normal | small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-variant-caps"}],description:"Specifies control over capitalized forms.",restrictions:["enum"]},{name:"font-variant-east-asian",browsers:["E79","FF34","S9.1","C63","O50"],values:[{name:"full-width",description:"Enables rendering of full-width variants."},{name:"jis04",description:"Enables rendering of JIS04 forms."},{name:"jis78",description:"Enables rendering of JIS78 forms."},{name:"jis83",description:"Enables rendering of JIS83 forms."},{name:"jis90",description:"Enables rendering of JIS90 forms."},{name:"normal",description:"None of the features are enabled."},{name:"proportional-width",description:"Enables rendering of proportionally-spaced variants."},{name:"ruby",description:"Enables display of ruby variant glyphs."},{name:"simplified",description:"Enables rendering of simplified forms."},{name:"traditional",description:"Enables rendering of traditional forms."}],syntax:"normal | [ <east-asian-variant-values> || <east-asian-width-values> || ruby ]",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-variant-east-asian"}],description:"Allows control of glyph substitute and positioning in East Asian text.",restrictions:["enum"]},{name:"font-variant-ligatures",browsers:["E79","FF34","S9.1","C34","O21"],values:[{name:"additional-ligatures",description:"Enables display of additional ligatures."},{name:"common-ligatures",description:"Enables display of common ligatures."},{name:"contextual",browsers:["E79","FF34","S9.1","C34","O21"],description:"Enables display of contextual alternates."},{name:"discretionary-ligatures",description:"Enables display of discretionary ligatures."},{name:"historical-ligatures",description:"Enables display of historical ligatures."},{name:"no-additional-ligatures",description:"Disables display of additional ligatures."},{name:"no-common-ligatures",description:"Disables display of common ligatures."},{name:"no-contextual",browsers:["E79","FF34","S9.1","C34","O21"],description:"Disables display of contextual alternates."},{name:"no-discretionary-ligatures",description:"Disables display of discretionary ligatures."},{name:"no-historical-ligatures",description:"Disables display of historical ligatures."},{name:"none",browsers:["E79","FF34","S9.1","C34","O21"],description:"Disables all ligatures."},{name:"normal",description:"Implies that the defaults set by the font are used."}],syntax:"normal | none | [ <common-lig-values> || <discretionary-lig-values> || <historical-lig-values> || <contextual-alt-values> ]",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-variant-ligatures"}],description:"Specifies control over which ligatures are enabled or disabled. A value of 'normal' implies that the defaults set by the font are used.",restrictions:["enum"]},{name:"font-variant-numeric",browsers:["E79","FF34","S9.1","C52","O39"],values:[{name:"diagonal-fractions",description:"Enables display of lining diagonal fractions."},{name:"lining-nums",description:"Enables display of lining numerals."},{name:"normal",description:"None of the features are enabled."},{name:"oldstyle-nums",description:"Enables display of old-style numerals."},{name:"ordinal",description:"Enables display of letter forms used with ordinal numbers."},{name:"proportional-nums",description:"Enables display of proportional numerals."},{name:"slashed-zero",description:"Enables display of slashed zeros."},{name:"stacked-fractions",description:"Enables display of lining stacked fractions."},{name:"tabular-nums",description:"Enables display of tabular numerals."}],syntax:"normal | [ <numeric-figure-values> || <numeric-spacing-values> || <numeric-fraction-values> || ordinal || slashed-zero ]",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-variant-numeric"}],description:"Specifies control over numerical forms.",restrictions:["enum"]},{name:"font-variant-position",browsers:["E117","FF34","S9.1","C117","O103"],values:[{name:"normal",description:"None of the features are enabled."},{name:"sub",description:"Enables display of subscript variants (OpenType feature: subs)."},{name:"super",description:"Enables display of superscript variants (OpenType feature: sups)."}],syntax:"normal | sub | super",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-variant-position"}],description:"Specifies the vertical position",restrictions:["enum"]},{name:"font-weight",browsers:["E12","FF1","S1","C2","IE3","O3.5"],values:[{name:"100",description:"Thin"},{name:"200",description:"Extra Light (Ultra Light)"},{name:"300",description:"Light"},{name:"400",description:"Normal"},{name:"500",description:"Medium"},{name:"600",description:"Semi Bold (Demi Bold)"},{name:"700",description:"Bold"},{name:"800",description:"Extra Bold (Ultra Bold)"},{name:"900",description:"Black (Heavy)"},{name:"bold",description:"Same as 700"},{name:"bolder",description:"Specifies the weight of the face bolder than the inherited value."},{name:"lighter",description:"Specifies the weight of the face lighter than the inherited value."},{name:"normal",description:"Same as 400"}],atRule:"@font-face",syntax:"<font-weight-absolute>{1,2}",relevance:93,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-weight"}],description:"Specifies weight of glyphs in the font, their degree of blackness or stroke thickness.",restrictions:["enum"]},{name:"glyph-orientation-horizontal",relevance:50,description:"Controls glyph orientation when the inline-progression-direction is horizontal.",restrictions:["angle","number"]},{name:"glyph-orientation-vertical",browsers:["S13.1"],values:[{name:"auto",description:"Sets the orientation based on the fullwidth or non-fullwidth characters and the most common orientation."}],relevance:50,description:"Controls glyph orientation when the inline-progression-direction is vertical.",restrictions:["angle","number","enum"]},{name:"grid-area",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"auto",description:"The property contributes nothing to the grid item's placement, indicating auto-placement, an automatic span, or a default span of one."},{name:"span",description:"Contributes a grid span to the grid item's placement such that the corresponding edge of the grid item's grid area is N lines from its opposite edge."}],syntax:"<grid-line> [ / <grid-line> ]{0,3}",relevance:57,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-area"}],description:"Determine a grid item's size and location within the grid by contributing a line, a span, or nothing (automatic) to its grid placement. Shorthand for 'grid-row-start', 'grid-column-start', 'grid-row-end', and 'grid-column-end'.",restrictions:["identifier","integer"]},{name:"grid",browsers:["E16","FF52","S10.1","C57","O44"],syntax:"<'grid-template'> | <'grid-template-rows'> / [ auto-flow && dense? ] <'grid-auto-columns'>? | [ auto-flow && dense? ] <'grid-auto-rows'>? / <'grid-template-columns'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid"}],description:"The grid CSS property is a shorthand property that sets all of the explicit grid properties ('grid-template-rows', 'grid-template-columns', and 'grid-template-areas'), and all the implicit grid properties ('grid-auto-rows', 'grid-auto-columns', and 'grid-auto-flow'), in a single declaration.",restrictions:["identifier","length","percentage","string","enum"]},{name:"grid-auto-columns",browsers:["E16","FF70","S10.1","C57","IE10","O44"],values:[{name:"min-content",description:"Represents the largest min-content contribution of the grid items occupying the grid track."},{name:"max-content",description:"Represents the largest max-content contribution of the grid items occupying the grid track."},{name:"auto",description:"As a maximum, identical to 'max-content'. As a minimum, represents the largest minimum size (as specified by min-width/min-height) of the grid items occupying the grid track."},{name:"minmax()",description:"Defines a size range greater than or equal to min and less than or equal to max."}],syntax:"<track-size>+",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-auto-columns"}],description:"Specifies the size of implicitly created columns.",restrictions:["length","percentage"]},{name:"grid-auto-flow",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"row",description:"The auto-placement algorithm places items by filling each row in turn, adding new rows as necessary."},{name:"column",description:"The auto-placement algorithm places items by filling each column in turn, adding new columns as necessary."},{name:"dense",description:'If specified, the auto-placement algorithm uses a "dense" packing algorithm, which attempts to fill in holes earlier in the grid if smaller items come up later.'}],syntax:"[ row | column ] || dense",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-auto-flow"}],description:"Controls how the auto-placement algorithm works, specifying exactly how auto-placed items get flowed into the grid.",restrictions:["enum"]},{name:"grid-auto-rows",browsers:["E16","FF70","S10.1","C57","IE10","O44"],values:[{name:"min-content",description:"Represents the largest min-content contribution of the grid items occupying the grid track."},{name:"max-content",description:"Represents the largest max-content contribution of the grid items occupying the grid track."},{name:"auto",description:"As a maximum, identical to 'max-content'. As a minimum, represents the largest minimum size (as specified by min-width/min-height) of the grid items occupying the grid track."},{name:"minmax()",description:"Defines a size range greater than or equal to min and less than or equal to max."}],syntax:"<track-size>+",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-auto-rows"}],description:"Specifies the size of implicitly created rows.",restrictions:["length","percentage"]},{name:"grid-column",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"auto",description:"The property contributes nothing to the grid item's placement, indicating auto-placement, an automatic span, or a default span of one."},{name:"span",description:"Contributes a grid span to the grid item's placement such that the corresponding edge of the grid item's grid area is N lines from its opposite edge."}],syntax:"<grid-line> [ / <grid-line> ]?",relevance:56,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-column"}],description:"Shorthand for 'grid-column-start' and 'grid-column-end'.",restrictions:["identifier","integer","enum"]},{name:"grid-column-end",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"auto",description:"The property contributes nothing to the grid item's placement, indicating auto-placement, an automatic span, or a default span of one."},{name:"span",description:"Contributes a grid span to the grid item's placement such that the corresponding edge of the grid item's grid area is N lines from its opposite edge."}],syntax:"<grid-line>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-column-end"}],description:"Determine a grid item's size and location within the grid by contributing a line, a span, or nothing (automatic) to its grid placement.",restrictions:["identifier","integer","enum"]},{name:"grid-column-gap",browsers:["FF52","C57","S10.1","O44"],status:"obsolete",syntax:"<length-percentage>",relevance:4,description:"Specifies the gutters between grid columns. Replaced by 'column-gap' property.",restrictions:["length"]},{name:"grid-column-start",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"auto",description:"The property contributes nothing to the grid item's placement, indicating auto-placement, an automatic span, or a default span of one."},{name:"span",description:"Contributes a grid span to the grid item's placement such that the corresponding edge of the grid item's grid area is N lines from its opposite edge."}],syntax:"<grid-line>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-column-start"}],description:"Determine a grid item's size and location within the grid by contributing a line, a span, or nothing (automatic) to its grid placement.",restrictions:["identifier","integer","enum"]},{name:"grid-gap",browsers:["FF52","C57","S10.1","O44"],status:"obsolete",syntax:"<'grid-row-gap'> <'grid-column-gap'>?",relevance:5,description:"Shorthand that specifies the gutters between grid columns and grid rows in one declaration. Replaced by 'gap' property.",restrictions:["length"]},{name:"grid-row",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"auto",description:"The property contributes nothing to the grid item's placement, indicating auto-placement, an automatic span, or a default span of one."},{name:"span",description:"Contributes a grid span to the grid item's placement such that the corresponding edge of the grid item's grid area is N lines from its opposite edge."}],syntax:"<grid-line> [ / <grid-line> ]?",relevance:54,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-row"}],description:"Shorthand for 'grid-row-start' and 'grid-row-end'.",restrictions:["identifier","integer","enum"]},{name:"grid-row-end",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"auto",description:"The property contributes nothing to the grid item's placement, indicating auto-placement, an automatic span, or a default span of one."},{name:"span",description:"Contributes a grid span to the grid item's placement such that the corresponding edge of the grid item's grid area is N lines from its opposite edge."}],syntax:"<grid-line>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-row-end"}],description:"Determine a grid item's size and location within the grid by contributing a line, a span, or nothing (automatic) to its grid placement.",restrictions:["identifier","integer","enum"]},{name:"grid-row-gap",browsers:["FF52","C57","S10.1","O44"],status:"obsolete",syntax:"<length-percentage>",relevance:2,description:"Specifies the gutters between grid rows. Replaced by 'row-gap' property.",restrictions:["length"]},{name:"grid-row-start",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"auto",description:"The property contributes nothing to the grid item's placement, indicating auto-placement, an automatic span, or a default span of one."},{name:"span",description:"Contributes a grid span to the grid item's placement such that the corresponding edge of the grid item's grid area is N lines from its opposite edge."}],syntax:"<grid-line>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-row-start"}],description:"Determine a grid item's size and location within the grid by contributing a line, a span, or nothing (automatic) to its grid placement.",restrictions:["identifier","integer","enum"]},{name:"grid-template",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"none",description:"Sets all three properties to their initial values."},{name:"min-content",description:"Represents the largest min-content contribution of the grid items occupying the grid track."},{name:"max-content",description:"Represents the largest max-content contribution of the grid items occupying the grid track."},{name:"auto",description:"As a maximum, identical to 'max-content'. As a minimum, represents the largest minimum size (as specified by min-width/min-height) of the grid items occupying the grid track."},{name:"subgrid",description:"Sets 'grid-template-rows' and 'grid-template-columns' to 'subgrid', and 'grid-template-areas' to its initial value."},{name:"minmax()",description:"Defines a size range greater than or equal to min and less than or equal to max."},{name:"repeat()",description:"Represents a repeated fragment of the track list, allowing a large number of columns or rows that exhibit a recurring pattern to be written in a more compact form."}],syntax:"none | [ <'grid-template-rows'> / <'grid-template-columns'> ] | [ <line-names>? <string> <track-size>? <line-names>? ]+ [ / <explicit-track-list> ]?",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-template"}],description:"Shorthand for setting grid-template-columns, grid-template-rows, and grid-template-areas in a single declaration.",restrictions:["identifier","length","percentage","string","enum"]},{name:"grid-template-areas",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"none",description:"The grid container doesn't define any named grid areas."}],syntax:"none | <string>+",relevance:54,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-template-areas"}],description:"Specifies named grid areas, which are not associated with any particular grid item, but can be referenced from the grid-placement properties.",restrictions:["string"]},{name:"grid-template-columns",browsers:["E16","FF52","S10.1","C57","IE10","O44"],values:[{name:"none",description:"There is no explicit grid; any rows/columns will be implicitly generated."},{name:"min-content",description:"Represents the largest min-content contribution of the grid items occupying the grid track."},{name:"max-content",description:"Represents the largest max-content contribution of the grid items occupying the grid track."},{name:"auto",description:"As a maximum, identical to 'max-content'. As a minimum, represents the largest minimum size (as specified by min-width/min-height) of the grid items occupying the grid track."},{name:"subgrid",description:"Indicates that the grid will align to its parent grid in that axis."},{name:"minmax()",description:"Defines a size range greater than or equal to min and less than or equal to max."},{name:"repeat()",description:"Represents a repeated fragment of the track list, allowing a large number of columns or rows that exhibit a recurring pattern to be written in a more compact form."}],syntax:"none | <track-list> | <auto-track-list> | subgrid <line-name-list>?",relevance:64,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-template-columns"}],description:"specifies, as a space-separated track list, the line names and track sizing functions of the grid.",restrictions:["identifier","length","percentage","enum"]},{name:"grid-template-rows",browsers:["E16","FF52","S10.1","C57","IE10","O44"],values:[{name:"none",description:"There is no explicit grid; any rows/columns will be implicitly generated."},{name:"min-content",description:"Represents the largest min-content contribution of the grid items occupying the grid track."},{name:"max-content",description:"Represents the largest max-content contribution of the grid items occupying the grid track."},{name:"auto",description:"As a maximum, identical to 'max-content'. As a minimum, represents the largest minimum size (as specified by min-width/min-height) of the grid items occupying the grid track."},{name:"subgrid",description:"Indicates that the grid will align to its parent grid in that axis."},{name:"minmax()",description:"Defines a size range greater than or equal to min and less than or equal to max."},{name:"repeat()",description:"Represents a repeated fragment of the track list, allowing a large number of columns or rows that exhibit a recurring pattern to be written in a more compact form."}],syntax:"none | <track-list> | <auto-track-list> | subgrid <line-name-list>?",relevance:57,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-template-rows"}],description:"specifies, as a space-separated track list, the line names and track sizing functions of the grid.",restrictions:["identifier","length","percentage","string","enum"]},{name:"height",browsers:["E12","FF1","S1","C1","IE4","O7"],values:[{name:"auto",description:"The height depends on the values of other properties."},{name:"fit-content",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"Use the fit-content inline size or fit-content block size, as appropriate to the writing mode."},{name:"max-content",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"Use the max-content inline size or max-content block size, as appropriate to the writing mode."},{name:"min-content",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"Use the min-content inline size or min-content block size, as appropriate to the writing mode."}],syntax:"auto | <length> | <percentage> | min-content | max-content | fit-content | fit-content(<length-percentage>)",relevance:96,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/height"}],description:"Specifies the height of the content area, padding area or border area (depending on 'box-sizing') of certain boxes.",restrictions:["length","percentage"]},{name:"hyphens",browsers:["E79","FF43","S17","C55","IE10","O42"],values:[{name:"auto",description:"Conditional hyphenation characters inside a word, if present, take priority over automatic resources when determining hyphenation points within the word."},{name:"manual",description:"Words are only broken at line breaks where there are characters inside the word that suggest line break opportunities"},{name:"none",description:"Words are not broken at line breaks, even if characters inside the word suggest line break points."}],syntax:"none | manual | auto",relevance:56,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/hyphens"}],description:"Controls whether hyphenation is allowed to create more break opportunities within a line of text.",restrictions:["enum"]},{name:"image-orientation",browsers:["E81","FF26","S13.1","C81","O67"],values:[{name:"flip",description:"After rotating by the precededing angle, the image is flipped horizontally. Defaults to 0deg if the angle is ommitted."},{name:"from-image",description:"If the image has an orientation specified in its metadata, such as EXIF, this value computes to the angle that the metadata specifies is necessary to correctly orient the image."}],syntax:"from-image | <angle> | [ <angle>? flip ]",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/image-orientation"}],description:"Specifies an orthogonal rotation to be applied to an image before it is laid out.",restrictions:["angle"]},{name:"image-rendering",browsers:["E79","FF3.6","S6","C13","O15"],values:[{name:"auto",description:"The image should be scaled with an algorithm that maximizes the appearance of the image."},{name:"crisp-edges",description:"The image must be scaled with an algorithm that preserves contrast and edges in the image, and which does not smooth colors or introduce blur to the image in the process."},{name:"-moz-crisp-edges",browsers:["E79","FF3.6","S6","C13","O15"]},{name:"optimizeQuality",description:"Deprecated."},{name:"optimizeSpeed",description:"Deprecated."},{name:"pixelated",description:"When scaling the image up, the 'nearest neighbor' or similar algorithm must be used, so that the image appears to be simply composed of very large pixels."}],syntax:"auto | crisp-edges | pixelated",relevance:54,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/image-rendering"}],description:"Provides a hint to the user-agent about what aspects of an image are most important to preserve when the image is scaled, to aid the user-agent in the choice of an appropriate scaling algorithm.",restrictions:["enum"]},{name:"ime-mode",browsers:["E12","FF3","IE5"],values:[{name:"active",description:"The input method editor is initially active; text entry is performed using it unless the user specifically dismisses it."},{name:"auto",description:"No change is made to the current input method editor state. This is the default."},{name:"disabled",description:"The input method editor is disabled and may not be activated by the user."},{name:"inactive",description:"The input method editor is initially inactive, but the user may activate it if they wish."},{name:"normal",description:"The IME state should be normal; this value can be used in a user style sheet to override the page setting."}],status:"obsolete",syntax:"auto | normal | active | inactive | disabled",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/ime-mode"}],description:"Controls the state of the input method editor for text fields.",restrictions:["enum"]},{name:"inline-size",browsers:["E79","FF41","S12.1","C57","O44"],values:[{name:"auto",description:"Depends on the values of other properties."}],syntax:"<'width'>",relevance:54,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/inline-size"}],description:"Size of an element in the direction specified by 'writing-mode'.",restrictions:["length","percentage"]},{name:"isolation",browsers:["E79","FF36","S8","C41","O30"],values:[{name:"auto",description:"Elements are not isolated unless an operation is applied that causes the creation of a stacking context."},{name:"isolate",description:"In CSS will turn the element into a stacking context."}],syntax:"auto | isolate",relevance:54,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/isolation"}],description:"In CSS setting to 'isolate' will turn the element into a stacking context. In SVG, it defines whether an element is isolated or not.",restrictions:["enum"]},{name:"justify-content",browsers:["E12","FF20","S9","C29","IE11","O12.1"],values:[{name:"center",description:"Flex items are packed toward the center of the line."},{name:"start",description:"The items are packed flush to each other toward the start edge of the alignment container in the main axis."},{name:"end",description:"The items are packed flush to each other toward the end edge of the alignment container in the main axis."},{name:"left",description:"The items are packed flush to each other toward the left edge of the alignment container in the main axis."},{name:"right",description:"The items are packed flush to each other toward the right edge of the alignment container in the main axis."},{name:"safe",description:"If the size of the item overflows the alignment container, the item is instead aligned as if the alignment mode were start."},{name:"unsafe",description:"Regardless of the relative sizes of the item and alignment container, the given alignment value is honored."},{name:"stretch",description:"If the combined size of the alignment subjects is less than the size of the alignment container, any auto-sized alignment subjects have their size increased equally (not proportionally), while still respecting the constraints imposed by max-height/max-width (or equivalent functionality), so that the combined size exactly fills the alignment container."},{name:"space-evenly",description:"The items are evenly distributed within the alignment container along the main axis."},{name:"flex-end",description:"Flex items are packed toward the end of the line."},{name:"flex-start",description:"Flex items are packed toward the start of the line."},{name:"space-around",description:"Flex items are evenly distributed in the line, with half-size spaces on either end."},{name:"space-between",description:"Flex items are evenly distributed in the line."},{name:"baseline",description:"Specifies participation in first-baseline alignment."},{name:"first baseline",description:"Specifies participation in first-baseline alignment."},{name:"last baseline",description:"Specifies participation in last-baseline alignment."}],syntax:"normal | <content-distribution> | <overflow-position>? [ <content-position> | left | right ]",relevance:87,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/justify-content"}],description:"Aligns flex items along the main axis of the current line of the flex container.",restrictions:["enum"]},{name:"kerning",values:[{name:"auto",description:"Indicates that the user agent should adjust inter-glyph spacing based on kerning tables that are included in the font that will be used."}],relevance:50,description:"Indicates whether the user agent should adjust inter-glyph spacing based on kerning tables that are included in the relevant font or instead disable auto-kerning and set inter-character spacing to a specific length.",restrictions:["length","enum"]},{name:"left",browsers:["E12","FF1","S1","C1","IE5.5","O5"],values:[{name:"auto",description:"For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well"}],syntax:"<length> | <percentage> | auto",relevance:94,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/left"}],description:"Specifies how far an absolutely positioned box's left margin edge is offset to the right of the left edge of the box's 'containing block'.",restrictions:["length","percentage"]},{name:"letter-spacing",browsers:["E12","FF1","S1","C1","IE4","O3.5"],values:[{name:"normal",description:"The spacing is the normal spacing for the current font. It is typically zero-length."}],syntax:"normal | <length>",relevance:81,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/letter-spacing"}],description:"Specifies the minimum, maximum, and optimal spacing between grapheme clusters.",restrictions:["length"]},{name:"lighting-color",browsers:["E12","FF3","S6","C5","IE","O15"],relevance:50,description:"Defines the color of the light source for filter primitives 'feDiffuseLighting' and 'feSpecularLighting'.",restrictions:["color"]},{name:"line-break",browsers:["E14","FF69","S11","C58","IE5.5","O45"],values:[{name:"auto",description:"The UA determines the set of line-breaking restrictions to use for CJK scripts, and it may vary the restrictions based on the length of the line; e.g., use a less restrictive set of line-break rules for short lines."},{name:"loose",description:"Breaks text using the least restrictive set of line-breaking rules. Typically used for short lines, such as in newspapers."},{name:"normal",description:"Breaks text using the most common set of line-breaking rules."},{name:"strict",description:"Breaks CJK scripts using a more restrictive set of line-breaking rules than 'normal'."},{name:"anywhere",description:"There is a soft wrap opportunity around every typographic character unit, including around any punctuation character or preserved white spaces, or in the middle of words, disregarding any prohibition against line breaks, even those introduced by characters with the GL, WJ, or ZWJ line breaking classes or mandated by the word-break property."}],syntax:"auto | loose | normal | strict | anywhere",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/line-break"}],description:"Specifies what set of line breaking restrictions are in effect within the element.",restrictions:["enum"]},{name:"line-height",browsers:["E12","FF1","S1","C1","IE4","O7"],values:[{name:"normal",description:"Tells user agents to set the computed value to a 'reasonable' value based on the font size of the element."}],syntax:"normal | <number> | <length> | <percentage>",relevance:92,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/line-height"}],description:"Determines the block-progression dimension of the text content area of an inline box.",restrictions:["number","length","percentage"]},{name:"list-style",browsers:["E12","FF1","S1","C1","IE4","O7"],values:[{name:"armenian"},{name:"circle",description:"A hollow circle."},{name:"decimal"},{name:"decimal-leading-zero"},{name:"disc",description:"A filled circle."},{name:"georgian"},{name:"inside",description:"The marker box is outside the principal block box, as described in the section on the ::marker pseudo-element below."},{name:"lower-alpha"},{name:"lower-greek"},{name:"lower-latin"},{name:"lower-roman"},{name:"none"},{name:"outside",description:"The ::marker pseudo-element is an inline element placed immediately before all ::before pseudo-elements in the principal block box, after which the element's content flows."},{name:"square",description:"A filled square."},{name:"symbols()",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"Allows a counter style to be defined inline."},{name:"upper-alpha"},{name:"upper-latin"},{name:"upper-roman"},{name:"url()"}],syntax:"<'list-style-type'> || <'list-style-position'> || <'list-style-image'>",relevance:83,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/list-style"}],description:"Shorthand for setting 'list-style-type', 'list-style-position' and 'list-style-image'",restrictions:["image","enum","url"]},{name:"list-style-image",browsers:["E12","FF1","S1","C1","IE4","O7"],values:[{name:"none",description:"The default contents of the of the list item's marker are given by 'list-style-type' instead."}],syntax:"<image> | none",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/list-style-image"}],description:"Sets the image that will be used as the list item marker. When the image is available, it will replace the marker set with the 'list-style-type' marker.",restrictions:["image"]},{name:"list-style-position",browsers:["E12","FF1","S1","C1","IE4","O3.5"],values:[{name:"inside",description:"The marker box is outside the principal block box, as described in the section on the ::marker pseudo-element below."},{name:"outside",description:"The ::marker pseudo-element is an inline element placed immediately before all ::before pseudo-elements in the principal block box, after which the element's content flows."}],syntax:"inside | outside",relevance:55,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/list-style-position"}],description:"Specifies the position of the '::marker' pseudo-element's box in the list item.",restrictions:["enum"]},{name:"list-style-type",browsers:["E12","FF1","S1","C1","IE4","O3.5"],values:[{name:"armenian",description:"Traditional uppercase Armenian numbering."},{name:"circle",description:"A hollow circle."},{name:"decimal",description:"Western decimal numbers."},{name:"decimal-leading-zero",description:"Decimal numbers padded by initial zeros."},{name:"disc",description:"A filled circle."},{name:"georgian",description:"Traditional Georgian numbering."},{name:"lower-alpha",description:"Lowercase ASCII letters."},{name:"lower-greek",description:"Lowercase classical Greek."},{name:"lower-latin",description:"Lowercase ASCII letters."},{name:"lower-roman",description:"Lowercase ASCII Roman numerals."},{name:"none",description:"No marker"},{name:"square",description:"A filled square."},{name:"symbols()",browsers:["E12","FF1","S1","C1","IE4","O3.5"],description:"Allows a counter style to be defined inline."},{name:"upper-alpha",description:"Uppercase ASCII letters."},{name:"upper-latin",description:"Uppercase ASCII letters."},{name:"upper-roman",description:"Uppercase ASCII Roman numerals."}],syntax:"<counter-style> | <string> | none",relevance:73,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/list-style-type"}],description:"Used to construct the default contents of a list item's marker",restrictions:["enum","string"]},{name:"margin",browsers:["E12","FF1","S1","C1","IE3","O3.5"],values:[{name:"auto"}],syntax:"[ <length> | <percentage> | auto ]{1,4}",relevance:95,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin"}],description:"Shorthand property to set values for the thickness of the margin area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. Negative values for margin properties are allowed, but there may be implementation-specific limits.",restrictions:["length","percentage"]},{name:"margin-block-end",browsers:["E79","FF41","S12.1","C69","O56"],values:[{name:"auto"}],syntax:"<'margin-left'>",relevance:55,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-block-end"}],description:"Logical 'margin-bottom'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"margin-block-start",browsers:["E79","FF41","S12.1","C69","O56"],values:[{name:"auto"}],syntax:"<'margin-left'>",relevance:56,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-block-start"}],description:"Logical 'margin-top'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"margin-bottom",browsers:["E12","FF1","S1","C1","IE3","O3.5"],values:[{name:"auto"}],syntax:"<length> | <percentage> | auto",relevance:91,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-bottom"}],description:"Shorthand property to set values for the thickness of the margin area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. Negative values for margin properties are allowed, but there may be implementation-specific limits..",restrictions:["length","percentage"]},{name:"margin-inline-end",browsers:["E79","FF41","S12.1","C69","O56"],values:[{name:"auto"}],syntax:"<'margin-left'>",relevance:58,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-inline-end"}],description:"Logical 'margin-right'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"margin-inline-start",browsers:["E79","FF41","S12.1","C69","O56"],values:[{name:"auto"}],syntax:"<'margin-left'>",relevance:59,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-inline-start"}],description:"Logical 'margin-left'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"margin-left",browsers:["E12","FF1","S1","C1","IE3","O3.5"],values:[{name:"auto"}],syntax:"<length> | <percentage> | auto",relevance:91,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-left"}],description:"Shorthand property to set values for the thickness of the margin area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. Negative values for margin properties are allowed, but there may be implementation-specific limits..",restrictions:["length","percentage"]},{name:"margin-right",browsers:["E12","FF1","S1","C1","IE3","O3.5"],values:[{name:"auto"}],syntax:"<length> | <percentage> | auto",relevance:91,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-right"}],description:"Shorthand property to set values for the thickness of the margin area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. Negative values for margin properties are allowed, but there may be implementation-specific limits..",restrictions:["length","percentage"]},{name:"margin-top",browsers:["E12","FF1","S1","C1","IE3","O3.5"],values:[{name:"auto"}],syntax:"<length> | <percentage> | auto",relevance:94,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-top"}],description:"Shorthand property to set values for the thickness of the margin area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. Negative values for margin properties are allowed, but there may be implementation-specific limits..",restrictions:["length","percentage"]},{name:"marker",browsers:["E80","FF72","S13.1","C80","O67"],values:[{name:"none",description:"Indicates that no marker symbol will be drawn at the given vertex or vertices."},{name:"url()",description:"Indicates that the <marker> element referenced will be used."}],relevance:50,description:"Specifies the marker symbol that shall be used for all points on the sets the value for all vertices on the given 'path' element or basic shape.",restrictions:["url"]},{name:"marker-end",browsers:["E80","FF72","S13.1","C80","O67"],values:[{name:"none",description:"Indicates that no marker symbol will be drawn at the given vertex or vertices."},{name:"url()",description:"Indicates that the <marker> element referenced will be used."}],relevance:50,description:"Specifies the marker that will be drawn at the last vertices of the given markable element.",restrictions:["url"]},{name:"marker-mid",browsers:["E80","FF72","S13.1","C80","O67"],values:[{name:"none",description:"Indicates that no marker symbol will be drawn at the given vertex or vertices."},{name:"url()",description:"Indicates that the <marker> element referenced will be used."}],relevance:50,description:"Specifies the marker that will be drawn at all vertices except the first and last.",restrictions:["url"]},{name:"marker-start",browsers:["E80","FF72","S13.1","C80","O67"],values:[{name:"none",description:"Indicates that no marker symbol will be drawn at the given vertex or vertices."},{name:"url()",description:"Indicates that the <marker> element referenced will be used."}],relevance:50,description:"Specifies the marker that will be drawn at the first vertices of the given markable element.",restrictions:["url"]},{name:"mask-image",browsers:["E79","FF53","S15.4","C120","O15"],values:[{name:"none",description:"Counts as a transparent black image layer."},{name:"url()",description:"Reference to a <mask element or to a CSS image."}],syntax:"<mask-reference>#",relevance:57,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-image"}],description:"Sets the mask layer image of an element.",restrictions:["url","image","enum"]},{name:"mask-mode",browsers:["E120","FF53","S15.4","C120","O106"],values:[{name:"alpha",description:"Alpha values of the mask layer image should be used as the mask values."},{name:"auto",description:"Use alpha values if 'mask-image' is an image, luminance if a <mask> element or a CSS image."},{name:"luminance",description:"Luminance values of the mask layer image should be used as the mask values."}],syntax:"<masking-mode>#",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-mode"}],description:"Indicates whether the mask layer image is treated as luminance mask or alpha mask.",restrictions:["url","image","enum"]},{name:"mask-origin",browsers:["E120","FF53","S15.4","C120","O106"],syntax:"<geometry-box>#",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-origin"}],description:"Specifies the mask positioning area.",restrictions:["geometry-box","enum"]},{name:"mask-position",browsers:["E79","FF53","S15.4","C120","O106"],syntax:"<position>#",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-position"}],description:"Specifies how mask layer images are positioned.",restrictions:["position","length","percentage"]},{name:"mask-repeat",browsers:["E79","FF53","S15.4","C120","O106"],syntax:"<repeat-style>#",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-repeat"}],description:"Specifies how mask layer images are tiled after they have been sized and positioned.",restrictions:["repeat"]},{name:"mask-size",browsers:["E79","FF53","S15.4","C120","O106"],values:[{name:"auto",description:"Resolved by using the image's intrinsic ratio and the size of the other dimension, or failing that, using the image's intrinsic size, or failing that, treating it as 100%."},{name:"contain",description:"Scale the image, while preserving its intrinsic aspect ratio (if any), to the largest size such that both its width and its height can fit inside the background positioning area."},{name:"cover",description:"Scale the image, while preserving its intrinsic aspect ratio (if any), to the smallest size such that both its width and its height can completely cover the background positioning area."}],syntax:"<bg-size>#",relevance:54,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-size"}],description:"Specifies the size of the mask layer images.",restrictions:["length","percentage","enum"]},{name:"mask-type",browsers:["E79","FF35","S7","C24","O15"],values:[{name:"alpha",description:"Indicates that the alpha values of the mask should be used."},{name:"luminance",description:"Indicates that the luminance values of the mask should be used."}],syntax:"luminance | alpha",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-type"}],description:"Defines whether the content of the <mask> element is treated as as luminance mask or alpha mask.",restrictions:["enum"]},{name:"max-block-size",browsers:["E79","FF41","S12.1","C57","O44"],values:[{name:"none",description:"No limit on the width of the box."}],syntax:"<'max-width'>",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/max-block-size"}],description:"Maximum size of an element in the direction opposite that of the direction specified by 'writing-mode'.",restrictions:["length","percentage"]},{name:"max-height",browsers:["E12","FF1","S1.3","C18","IE7","O7"],values:[{name:"none",description:"No limit on the height of the box."},{name:"fit-content",browsers:["E12","FF1","S1.3","C18","IE7","O7"],description:"Use the fit-content inline size or fit-content block size, as appropriate to the writing mode."},{name:"max-content",browsers:["E12","FF1","S1.3","C18","IE7","O7"],description:"Use the max-content inline size or max-content block size, as appropriate to the writing mode."},{name:"min-content",browsers:["E12","FF1","S1.3","C18","IE7","O7"],description:"Use the min-content inline size or min-content block size, as appropriate to the writing mode."}],syntax:"none | <length-percentage> | min-content | max-content | fit-content | fit-content(<length-percentage>)",relevance:85,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/max-height"}],description:"Allows authors to constrain content height to a certain range.",restrictions:["length","percentage"]},{name:"max-inline-size",browsers:["E79","FF41","S12.1","C57","O44"],values:[{name:"none",description:"No limit on the height of the box."}],syntax:"<'max-width'>",relevance:54,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/max-inline-size"}],description:"Maximum size of an element in the direction specified by 'writing-mode'.",restrictions:["length","percentage"]},{name:"max-width",browsers:["E12","FF1","S1","C1","IE7","O4"],values:[{name:"none",description:"No limit on the width of the box."},{name:"fit-content",browsers:["E12","FF1","S1","C1","IE7","O4"],description:"Use the fit-content inline size or fit-content block size, as appropriate to the writing mode."},{name:"max-content",browsers:["E12","FF1","S1","C1","IE7","O4"],description:"Use the max-content inline size or max-content block size, as appropriate to the writing mode."},{name:"min-content",browsers:["E12","FF1","S1","C1","IE7","O4"],description:"Use the min-content inline size or min-content block size, as appropriate to the writing mode."}],syntax:"none | <length-percentage> | min-content | max-content | fit-content | fit-content(<length-percentage>)",relevance:91,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/max-width"}],description:"Allows authors to constrain content width to a certain range.",restrictions:["length","percentage"]},{name:"min-block-size",browsers:["E79","FF41","S12.1","C57","O44"],syntax:"<'min-width'>",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/min-block-size"}],description:"Minimal size of an element in the direction opposite that of the direction specified by 'writing-mode'.",restrictions:["length","percentage"]},{name:"min-height",browsers:["E12","FF3","S1.3","C1","IE7","O4"],values:[{name:"auto",browsers:["E12","FF3","S1.3","C1","IE7","O4"]},{name:"fit-content",browsers:["E12","FF3","S1.3","C1","IE7","O4"],description:"Use the fit-content inline size or fit-content block size, as appropriate to the writing mode."},{name:"max-content",browsers:["E12","FF3","S1.3","C1","IE7","O4"],description:"Use the max-content inline size or max-content block size, as appropriate to the writing mode."},{name:"min-content",browsers:["E12","FF3","S1.3","C1","IE7","O4"],description:"Use the min-content inline size or min-content block size, as appropriate to the writing mode."}],syntax:"auto | <length> | <percentage> | min-content | max-content | fit-content | fit-content(<length-percentage>)",relevance:89,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/min-height"}],description:"Allows authors to constrain content height to a certain range.",restrictions:["length","percentage"]},{name:"min-inline-size",browsers:["E79","FF41","S12.1","C57","O44"],syntax:"<'min-width'>",relevance:54,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/min-inline-size"}],description:"Minimal size of an element in the direction specified by 'writing-mode'.",restrictions:["length","percentage"]},{name:"min-width",browsers:["E12","FF1","S1","C1","IE7","O4"],values:[{name:"auto",browsers:["E12","FF1","S1","C1","IE7","O4"]},{name:"fit-content",browsers:["E12","FF1","S1","C1","IE7","O4"],description:"Use the fit-content inline size or fit-content block size, as appropriate to the writing mode."},{name:"max-content",browsers:["E12","FF1","S1","C1","IE7","O4"],description:"Use the max-content inline size or max-content block size, as appropriate to the writing mode."},{name:"min-content",browsers:["E12","FF1","S1","C1","IE7","O4"],description:"Use the min-content inline size or min-content block size, as appropriate to the writing mode."}],syntax:"auto | <length> | <percentage> | min-content | max-content | fit-content | fit-content(<length-percentage>)",relevance:88,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/min-width"}],description:"Allows authors to constrain content width to a certain range.",restrictions:["length","percentage"]},{name:"mix-blend-mode",browsers:["E79","FF32","S8","C41","O28"],values:[{name:"normal",description:"Default attribute which specifies no blending"},{name:"multiply",description:"The source color is multiplied by the destination color and replaces the destination."},{name:"screen",description:"Multiplies the complements of the backdrop and source color values, then complements the result."},{name:"overlay",description:"Multiplies or screens the colors, depending on the backdrop color value."},{name:"darken",description:"Selects the darker of the backdrop and source colors."},{name:"lighten",description:"Selects the lighter of the backdrop and source colors."},{name:"color-dodge",description:"Brightens the backdrop color to reflect the source color."},{name:"color-burn",description:"Darkens the backdrop color to reflect the source color."},{name:"hard-light",description:"Multiplies or screens the colors, depending on the source color value."},{name:"soft-light",description:"Darkens or lightens the colors, depending on the source color value."},{name:"difference",description:"Subtracts the darker of the two constituent colors from the lighter color.."},{name:"exclusion",description:"Produces an effect similar to that of the Difference mode but lower in contrast."},{name:"hue",browsers:["E79","FF32","S8","C41","O28"],description:"Creates a color with the hue of the source color and the saturation and luminosity of the backdrop color."},{name:"saturation",browsers:["E79","FF32","S8","C41","O28"],description:"Creates a color with the saturation of the source color and the hue and luminosity of the backdrop color."},{name:"color",browsers:["E79","FF32","S8","C41","O28"],description:"Creates a color with the hue and saturation of the source color and the luminosity of the backdrop color."},{name:"luminosity",browsers:["E79","FF32","S8","C41","O28"],description:"Creates a color with the luminosity of the source color and the hue and saturation of the backdrop color."}],syntax:"<blend-mode> | plus-lighter",relevance:54,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mix-blend-mode"}],description:"Defines the formula that must be used to mix the colors with the backdrop.",restrictions:["enum"]},{name:"motion",browsers:["C46","O33"],values:[{name:"none",description:"No motion path gets created."},{name:"path()",description:"Defines an SVG path as a string, with optional 'fill-rule' as the first argument."},{name:"auto",description:"Indicates that the object is rotated by the angle of the direction of the motion path."},{name:"reverse",description:"Indicates that the object is rotated by the angle of the direction of the motion path plus 180 degrees."}],relevance:50,description:"Shorthand property for setting 'motion-path', 'motion-offset' and 'motion-rotation'.",restrictions:["url","length","percentage","angle","shape","geometry-box","enum"]},{name:"motion-offset",browsers:["C46","O33"],relevance:50,description:"A distance that describes the position along the specified motion path.",restrictions:["length","percentage"]},{name:"motion-path",browsers:["C46","O33"],values:[{name:"none",description:"No motion path gets created."},{name:"path()",description:"Defines an SVG path as a string, with optional 'fill-rule' as the first argument."}],relevance:50,description:"Specifies the motion path the element gets positioned at.",restrictions:["url","shape","geometry-box","enum"]},{name:"motion-rotation",browsers:["C46","O33"],values:[{name:"auto",description:"Indicates that the object is rotated by the angle of the direction of the motion path."},{name:"reverse",description:"Indicates that the object is rotated by the angle of the direction of the motion path plus 180 degrees."}],relevance:50,description:"Defines the direction of the element while positioning along the motion path.",restrictions:["angle"]},{name:"-moz-animation",browsers:["FF9"],values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"backwards",description:"The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."},{name:"both",description:"Both forwards and backwards fill modes are applied."},{name:"forwards",description:"The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."},{name:"infinite",description:"Causes the animation to repeat forever."},{name:"none",description:"No animation is performed"},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],relevance:50,description:"Shorthand property combines six of the animation properties into a single property.",restrictions:["time","enum","timing-function","identifier","number"]},{name:"-moz-animation-delay",browsers:["FF9"],relevance:50,description:"Defines when the animation will start.",restrictions:["time"]},{name:"-moz-animation-direction",browsers:["FF9"],values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],relevance:50,description:"Defines whether or not the animation should play in reverse on alternate cycles.",restrictions:["enum"]},{name:"-moz-animation-duration",browsers:["FF9"],relevance:50,description:"Defines the length of time that an animation takes to complete one cycle.",restrictions:["time"]},{name:"-moz-animation-iteration-count",browsers:["FF9"],values:[{name:"infinite",description:"Causes the animation to repeat forever."}],relevance:50,description:"Defines the number of times an animation cycle is played. The default value is one, meaning the animation will play from beginning to end once.",restrictions:["number","enum"]},{name:"-moz-animation-name",browsers:["FF9"],values:[{name:"none",description:"No animation is performed"}],relevance:50,description:"Defines a list of animations that apply. Each name is used to select the keyframe at-rule that provides the property values for the animation.",restrictions:["identifier","enum"]},{name:"-moz-animation-play-state",browsers:["FF9"],values:[{name:"paused",description:"A running animation will be paused."},{name:"running",description:"Resume playback of a paused animation."}],relevance:50,description:"Defines whether the animation is running or paused.",restrictions:["enum"]},{name:"-moz-animation-timing-function",browsers:["FF9"],relevance:50,description:"Describes how the animation will progress over one cycle of its duration. See the 'transition-timing-function'.",restrictions:["timing-function"]},{name:"-moz-appearance",browsers:["FF1"],values:[{name:"button"},{name:"button-arrow-down"},{name:"button-arrow-next"},{name:"button-arrow-previous"},{name:"button-arrow-up"},{name:"button-bevel"},{name:"checkbox"},{name:"checkbox-container"},{name:"checkbox-label"},{name:"dialog"},{name:"groupbox"},{name:"listbox"},{name:"menuarrow"},{name:"menuimage"},{name:"menuitem"},{name:"menuitemtext"},{name:"menulist"},{name:"menulist-button"},{name:"menulist-text"},{name:"menulist-textfield"},{name:"menupopup"},{name:"menuradio"},{name:"menuseparator"},{name:"-moz-mac-unified-toolbar"},{name:"-moz-win-borderless-glass"},{name:"-moz-win-browsertabbar-toolbox"},{name:"-moz-win-communications-toolbox"},{name:"-moz-win-glass"},{name:"-moz-win-media-toolbox"},{name:"none"},{name:"progressbar"},{name:"progresschunk"},{name:"radio"},{name:"radio-container"},{name:"radio-label"},{name:"radiomenuitem"},{name:"resizer"},{name:"resizerpanel"},{name:"scrollbarbutton-down"},{name:"scrollbarbutton-left"},{name:"scrollbarbutton-right"},{name:"scrollbarbutton-up"},{name:"scrollbar-small"},{name:"scrollbartrack-horizontal"},{name:"scrollbartrack-vertical"},{name:"separator"},{name:"spinner"},{name:"spinner-downbutton"},{name:"spinner-textfield"},{name:"spinner-upbutton"},{name:"statusbar"},{name:"statusbarpanel"},{name:"tab"},{name:"tabpanels"},{name:"tab-scroll-arrow-back"},{name:"tab-scroll-arrow-forward"},{name:"textfield"},{name:"textfield-multiline"},{name:"toolbar"},{name:"toolbox"},{name:"tooltip"},{name:"treeheadercell"},{name:"treeheadersortarrow"},{name:"treeitem"},{name:"treetwistyopen"},{name:"treeview"},{name:"treewisty"},{name:"window"}],status:"nonstandard",syntax:"none | button | button-arrow-down | button-arrow-next | button-arrow-previous | button-arrow-up | button-bevel | button-focus | caret | checkbox | checkbox-container | checkbox-label | checkmenuitem | dualbutton | groupbox | listbox | listitem | menuarrow | menubar | menucheckbox | menuimage | menuitem | menuitemtext | menulist | menulist-button | menulist-text | menulist-textfield | menupopup | menuradio | menuseparator | meterbar | meterchunk | progressbar | progressbar-vertical | progresschunk | progresschunk-vertical | radio | radio-container | radio-label | radiomenuitem | range | range-thumb | resizer | resizerpanel | scale-horizontal | scalethumbend | scalethumb-horizontal | scalethumbstart | scalethumbtick | scalethumb-vertical | scale-vertical | scrollbarbutton-down | scrollbarbutton-left | scrollbarbutton-right | scrollbarbutton-up | scrollbarthumb-horizontal | scrollbarthumb-vertical | scrollbartrack-horizontal | scrollbartrack-vertical | searchfield | separator | sheet | spinner | spinner-downbutton | spinner-textfield | spinner-upbutton | splitter | statusbar | statusbarpanel | tab | tabpanel | tabpanels | tab-scroll-arrow-back | tab-scroll-arrow-forward | textfield | textfield-multiline | toolbar | toolbarbutton | toolbarbutton-dropdown | toolbargripper | toolbox | tooltip | treeheader | treeheadercell | treeheadersortarrow | treeitem | treeline | treetwisty | treetwistyopen | treeview | -moz-mac-unified-toolbar | -moz-win-borderless-glass | -moz-win-browsertabbar-toolbox | -moz-win-communicationstext | -moz-win-communications-toolbox | -moz-win-exclude-glass | -moz-win-glass | -moz-win-mediatext | -moz-win-media-toolbox | -moz-window-button-box | -moz-window-button-box-maximized | -moz-window-button-close | -moz-window-button-maximize | -moz-window-button-minimize | -moz-window-button-restore | -moz-window-frame-bottom | -moz-window-frame-left | -moz-window-frame-right | -moz-window-titlebar | -moz-window-titlebar-maximized",relevance:0,description:"Used in Gecko (Firefox) to display an element using a platform-native styling based on the operating system's theme.",restrictions:["enum"]},{name:"-moz-backface-visibility",browsers:["FF10"],values:[{name:"hidden"},{name:"visible"}],relevance:50,description:"Determines whether or not the 'back' side of a transformed element is visible when facing the viewer. With an identity transform, the front side of an element faces the viewer.",restrictions:["enum"]},{name:"-moz-background-clip",browsers:["FF1-3.6"],values:[{name:"padding"}],relevance:50,description:"Determines the background painting area.",restrictions:["box","enum"]},{name:"-moz-background-inline-policy",browsers:["FF1"],values:[{name:"bounding-box"},{name:"continuous"},{name:"each-box"}],relevance:50,description:"In Gecko-based applications like Firefox, the -moz-background-inline-policy CSS property specifies how the background image of an inline element is determined when the content of the inline element wraps onto multiple lines. The choice of position has significant effects on repetition.",restrictions:["enum"]},{name:"-moz-background-origin",browsers:["FF1"],relevance:50,description:"For elements rendered as a single box, specifies the background positioning area. For elements rendered as multiple boxes (e.g., inline boxes on several lines, boxes on several pages) specifies which boxes 'box-decoration-break' operates on to determine the background positioning area(s).",restrictions:["box"]},{name:"-moz-border-bottom-colors",browsers:["FF1"],status:"nonstandard",syntax:"<color>+ | none",relevance:0,description:"Sets a list of colors for the bottom border.",restrictions:["color"]},{name:"-moz-border-image",browsers:["FF3.6"],values:[{name:"auto",description:"If 'auto' is specified then the border image width is the intrinsic width or height (whichever is applicable) of the corresponding image slice. If the image does not have the required intrinsic dimension then the corresponding border-width is used instead."},{name:"fill",description:"Causes the middle part of the border-image to be preserved."},{name:"none"},{name:"repeat",description:"The image is tiled (repeated) to fill the area."},{name:"round",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the image is rescaled so that it does."},{name:"space",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the extra space is distributed around the tiles."},{name:"stretch",description:"The image is stretched to fill the area."},{name:"url()"}],relevance:50,description:"Shorthand property for setting 'border-image-source', 'border-image-slice', 'border-image-width', 'border-image-outset' and 'border-image-repeat'. Omitted values are set to their initial values.",restrictions:["length","percentage","number","url","enum"]},{name:"-moz-border-left-colors",browsers:["FF1"],status:"nonstandard",syntax:"<color>+ | none",relevance:0,description:"Sets a list of colors for the bottom border.",restrictions:["color"]},{name:"-moz-border-right-colors",browsers:["FF1"],status:"nonstandard",syntax:"<color>+ | none",relevance:0,description:"Sets a list of colors for the bottom border.",restrictions:["color"]},{name:"-moz-border-top-colors",browsers:["FF1"],status:"nonstandard",syntax:"<color>+ | none",relevance:0,description:"Ske Firefox, -moz-border-bottom-colors sets a list of colors for the bottom border.",restrictions:["color"]},{name:"-moz-box-align",browsers:["FF1"],values:[{name:"baseline",description:"If this box orientation is inline-axis or horizontal, all children are placed with their baselines aligned, and extra space placed before or after as necessary. For block flows, the baseline of the first non-empty line box located within the element is used. For tables, the baseline of the first cell is used."},{name:"center",description:"Any extra space is divided evenly, with half placed above the child and the other half placed after the child."},{name:"end",description:"For normal direction boxes, the bottom edge of each child is placed along the bottom of the box. Extra space is placed above the element. For reverse direction boxes, the top edge of each child is placed along the top of the box. Extra space is placed below the element."},{name:"start",description:"For normal direction boxes, the top edge of each child is placed along the top of the box. Extra space is placed below the element. For reverse direction boxes, the bottom edge of each child is placed along the bottom of the box. Extra space is placed above the element."},{name:"stretch",description:"The height of each child is adjusted to that of the containing block."}],relevance:50,description:"Specifies how a XUL box aligns its contents across (perpendicular to) the direction of its layout. The effect of this is only visible if there is extra space in the box.",restrictions:["enum"]},{name:"-moz-box-direction",browsers:["FF1"],values:[{name:"normal",description:"A box with a computed value of horizontal for box-orient displays its children from left to right. A box with a computed value of vertical displays its children from top to bottom."},{name:"reverse",description:"A box with a computed value of horizontal for box-orient displays its children from right to left. A box with a computed value of vertical displays its children from bottom to top."}],relevance:50,description:"Specifies whether a box lays out its contents normally (from the top or left edge), or in reverse (from the bottom or right edge).",restrictions:["enum"]},{name:"-moz-box-flex",browsers:["FF1"],relevance:50,description:"Specifies how a box grows to fill the box that contains it, in the direction of the containing box's layout.",restrictions:["number"]},{name:"-moz-box-flexgroup",browsers:["FF1"],relevance:50,description:"Flexible elements can be assigned to flex groups using the 'box-flex-group' property.",restrictions:["integer"]},{name:"-moz-box-ordinal-group",browsers:["FF1"],relevance:50,description:"Indicates the ordinal group the element belongs to. Elements with a lower ordinal group are displayed before those with a higher ordinal group.",restrictions:["integer"]},{name:"-moz-box-orient",browsers:["FF1"],values:[{name:"block-axis",description:"Elements are oriented along the box's axis."},{name:"horizontal",description:"The box displays its children from left to right in a horizontal line."},{name:"inline-axis",description:"Elements are oriented vertically."},{name:"vertical",description:"The box displays its children from stacked from top to bottom vertically."}],relevance:50,description:"In Mozilla applications, -moz-box-orient specifies whether a box lays out its contents horizontally or vertically.",restrictions:["enum"]},{name:"-moz-box-pack",browsers:["FF1"],values:[{name:"center",description:"The extra space is divided evenly, with half placed before the first child and the other half placed after the last child."},{name:"end",description:"For normal direction boxes, the right edge of the last child is placed at the right side, with all extra space placed before the first child. For reverse direction boxes, the left edge of the first child is placed at the left side, with all extra space placed after the last child."},{name:"justify",description:"The space is divided evenly in-between each child, with none of the extra space placed before the first child or after the last child. If there is only one child, treat the pack value as if it were start."},{name:"start",description:"For normal direction boxes, the left edge of the first child is placed at the left side, with all extra space placed after the last child. For reverse direction boxes, the right edge of the last child is placed at the right side, with all extra space placed before the first child."}],relevance:50,description:"Specifies how a box packs its contents in the direction of its layout. The effect of this is only visible if there is extra space in the box.",restrictions:["enum"]},{name:"-moz-box-sizing",browsers:["FF1"],values:[{name:"border-box",description:"The specified width and height (and respective min/max properties) on this element determine the border box of the element."},{name:"content-box",description:"Behavior of width and height as specified by CSS2.1. The specified width and height (and respective min/max properties) apply to the width and height respectively of the content box of the element."},{name:"padding-box",description:"The specified width and height (and respective min/max properties) on this element determine the padding box of the element."}],relevance:50,description:"Box Model addition in CSS3.",restrictions:["enum"]},{name:"-moz-column-count",browsers:["FF3.5"],values:[{name:"auto",description:"Determines the number of columns by the 'column-width' property and the element width."}],relevance:50,description:"Describes the optimal number of columns into which the content of the element will be flowed.",restrictions:["integer"]},{name:"-moz-column-gap",browsers:["FF3.5"],values:[{name:"normal",description:"User agent specific and typically equivalent to 1em."}],relevance:50,description:"Sets the gap between columns. If there is a column rule between columns, it will appear in the middle of the gap.",restrictions:["length"]},{name:"-moz-column-rule",browsers:["FF3.5"],relevance:50,description:"Shorthand for setting 'column-rule-width', 'column-rule-style', and 'column-rule-color' at the same place in the style sheet. Omitted values are set to their initial values.",restrictions:["length","line-width","line-style","color"]},{name:"-moz-column-rule-color",browsers:["FF3.5"],relevance:50,description:"Sets the color of the column rule",restrictions:["color"]},{name:"-moz-column-rule-style",browsers:["FF3.5"],relevance:50,description:"Sets the style of the rule between columns of an element.",restrictions:["line-style"]},{name:"-moz-column-rule-width",browsers:["FF3.5"],relevance:50,description:"Sets the width of the rule between columns. Negative values are not allowed.",restrictions:["length","line-width"]},{name:"-moz-columns",browsers:["FF9"],values:[{name:"auto",description:"The width depends on the values of other properties."}],relevance:50,description:"A shorthand property which sets both 'column-width' and 'column-count'.",restrictions:["length","integer"]},{name:"-moz-column-width",browsers:["FF3.5"],values:[{name:"auto",description:"The width depends on the values of other properties."}],relevance:50,description:"This property describes the width of columns in multicol elements.",restrictions:["length"]},{name:"-moz-font-feature-settings",browsers:["FF4"],values:[{name:'"c2cs"'},{name:'"dlig"'},{name:'"kern"'},{name:'"liga"'},{name:'"lnum"'},{name:'"onum"'},{name:'"smcp"'},{name:'"swsh"'},{name:'"tnum"'},{name:"normal",description:"No change in glyph substitution or positioning occurs."},{name:"off",browsers:["FF4"]},{name:"on",browsers:["FF4"]}],relevance:50,description:"Provides low-level control over OpenType font features. It is intended as a way of providing access to font features that are not widely used but are needed for a particular use case.",restrictions:["string","integer"]},{name:"-moz-hyphens",browsers:["FF9"],values:[{name:"auto",description:"Conditional hyphenation characters inside a word, if present, take priority over automatic resources when determining hyphenation points within the word."},{name:"manual",description:"Words are only broken at line breaks where there are characters inside the word that suggest line break opportunities"},{name:"none",description:"Words are not broken at line breaks, even if characters inside the word suggest line break points."}],relevance:50,description:"Controls whether hyphenation is allowed to create more break opportunities within a line of text.",restrictions:["enum"]},{name:"-moz-perspective",browsers:["FF10"],values:[{name:"none",description:"No perspective transform is applied."}],relevance:50,description:"Applies the same transform as the perspective(<number>) transform function, except that it applies only to the positioned or transformed children of the element, not to the transform on the element itself.",restrictions:["length"]},{name:"-moz-perspective-origin",browsers:["FF10"],relevance:50,description:"Establishes the origin for the perspective property. It effectively sets the X and Y position at which the viewer appears to be looking at the children of the element.",restrictions:["position","percentage","length"]},{name:"-moz-text-align-last",browsers:["FF12"],values:[{name:"auto"},{name:"center",description:"The inline contents are centered within the line box."},{name:"justify",description:"The text is justified according to the method specified by the 'text-justify' property."},{name:"left",description:"The inline contents are aligned to the left edge of the line box. In vertical text, 'left' aligns to the edge of the line box that would be the start edge for left-to-right text."},{name:"right",description:"The inline contents are aligned to the right edge of the line box. In vertical text, 'right' aligns to the edge of the line box that would be the end edge for left-to-right text."}],relevance:50,description:"Describes how the last line of a block or a line right before a forced line break is aligned when 'text-align' is set to 'justify'.",restrictions:["enum"]},{name:"-moz-text-decoration-color",browsers:["FF6"],relevance:50,description:"Specifies the color of text decoration (underlines overlines, and line-throughs) set on the element with text-decoration-line.",restrictions:["color"]},{name:"-moz-text-decoration-line",browsers:["FF6"],values:[{name:"line-through",description:"Each line of text has a line through the middle."},{name:"none",description:"Neither produces nor inhibits text decoration."},{name:"overline",description:"Each line of text has a line above it."},{name:"underline",description:"Each line of text is underlined."}],relevance:50,description:"Specifies what line decorations, if any, are added to the element.",restrictions:["enum"]},{name:"-moz-text-decoration-style",browsers:["FF6"],values:[{name:"dashed",description:"Produces a dashed line style."},{name:"dotted",description:"Produces a dotted line."},{name:"double",description:"Produces a double line."},{name:"none",description:"Produces no line."},{name:"solid",description:"Produces a solid line."},{name:"wavy",description:"Produces a wavy line."}],relevance:50,description:"Specifies the line style for underline, line-through and overline text decoration.",restrictions:["enum"]},{name:"-moz-text-size-adjust",browsers:["FF"],values:[{name:"auto",description:"Renderers must use the default size adjustment when displaying on a small device."},{name:"none",description:"Renderers must not do size adjustment when displaying on a small device."}],relevance:50,description:"Specifies a size adjustment for displaying text content in mobile browsers.",restrictions:["enum","percentage"]},{name:"-moz-transform",browsers:["FF3.5"],values:[{name:"matrix()",description:"Specifies a 2D transformation in the form of a transformation matrix of six values. matrix(a,b,c,d,e,f) is equivalent to applying the transformation matrix [a b c d e f]"},{name:"matrix3d()",description:"Specifies a 3D transformation as a 4x4 homogeneous matrix of 16 values in column-major order."},{name:"none"},{name:"perspective",description:"Specifies a perspective projection matrix."},{name:"rotate()",description:"Specifies a 2D rotation by the angle specified in the parameter about the origin of the element, as defined by the transform-origin property."},{name:"rotate3d()",description:"Specifies a clockwise 3D rotation by the angle specified in last parameter about the [x,y,z] direction vector described by the first 3 parameters."},{name:"rotateX('angle')",description:"Specifies a clockwise rotation by the given angle about the X axis."},{name:"rotateY('angle')",description:"Specifies a clockwise rotation by the given angle about the Y axis."},{name:"rotateZ('angle')",description:"Specifies a clockwise rotation by the given angle about the Z axis."},{name:"scale()",description:"Specifies a 2D scale operation by the [sx,sy] scaling vector described by the 2 parameters. If the second parameter is not provided, it is takes a value equal to the first."},{name:"scale3d()",description:"Specifies a 3D scale operation by the [sx,sy,sz] scaling vector described by the 3 parameters."},{name:"scaleX()",description:"Specifies a scale operation using the [sx,1] scaling vector, where sx is given as the parameter."},{name:"scaleY()",description:"Specifies a scale operation using the [sy,1] scaling vector, where sy is given as the parameter."},{name:"scaleZ()",description:"Specifies a scale operation using the [1,1,sz] scaling vector, where sz is given as the parameter."},{name:"skew()",description:"Specifies a skew transformation along the X and Y axes. The first angle parameter specifies the skew on the X axis. The second angle parameter specifies the skew on the Y axis. If the second parameter is not given then a value of 0 is used for the Y angle (ie: no skew on the Y axis)."},{name:"skewX()",description:"Specifies a skew transformation along the X axis by the given angle."},{name:"skewY()",description:"Specifies a skew transformation along the Y axis by the given angle."},{name:"translate()",description:"Specifies a 2D translation by the vector [tx, ty], where tx is the first translation-value parameter and ty is the optional second translation-value parameter."},{name:"translate3d()",description:"Specifies a 3D translation by the vector [tx,ty,tz], with tx, ty and tz being the first, second and third translation-value parameters respectively."},{name:"translateX()",description:"Specifies a translation by the given amount in the X direction."},{name:"translateY()",description:"Specifies a translation by the given amount in the Y direction."},{name:"translateZ()",description:"Specifies a translation by the given amount in the Z direction. Note that percentage values are not allowed in the translateZ translation-value, and if present are evaluated as 0."}],relevance:50,description:"A two-dimensional transformation is applied to an element through the 'transform' property. This property contains a list of transform functions similar to those allowed by SVG.",restrictions:["enum"]},{name:"-moz-transform-origin",browsers:["FF3.5"],relevance:50,description:"Establishes the origin of transformation for an element.",restrictions:["position","length","percentage"]},{name:"-moz-transition",browsers:["FF4"],values:[{name:"all",description:"Every property that is able to undergo a transition will do so."},{name:"none",description:"No property will transition."}],relevance:50,description:"Shorthand property combines four of the transition properties into a single property.",restrictions:["time","property","timing-function","enum"]},{name:"-moz-transition-delay",browsers:["FF4"],relevance:50,description:"Defines when the transition will start. It allows a transition to begin execution some period of time from when it is applied.",restrictions:["time"]},{name:"-moz-transition-duration",browsers:["FF4"],relevance:50,description:"Specifies how long the transition from the old value to the new value should take.",restrictions:["time"]},{name:"-moz-transition-property",browsers:["FF4"],values:[{name:"all",description:"Every property that is able to undergo a transition will do so."},{name:"none",description:"No property will transition."}],relevance:50,description:"Specifies the name of the CSS property to which the transition is applied.",restrictions:["property"]},{name:"-moz-transition-timing-function",browsers:["FF4"],relevance:50,description:"Describes how the intermediate values used during a transition will be calculated.",restrictions:["timing-function"]},{name:"-moz-user-focus",browsers:["FF1"],values:[{name:"ignore"},{name:"normal"}],status:"nonstandard",syntax:"ignore | normal | select-after | select-before | select-menu | select-same | select-all | none",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-moz-user-focus"}],description:"Used to indicate whether the element can have focus."},{name:"-moz-user-select",browsers:["FF1.5"],values:[{name:"all"},{name:"element"},{name:"elements"},{name:"-moz-all"},{name:"-moz-none"},{name:"none"},{name:"text"},{name:"toggle"}],relevance:50,description:"Controls the appearance of selection.",restrictions:["enum"]},{name:"-ms-accelerator",browsers:["E","IE10"],values:[{name:"false",description:"The element does not contain an accelerator key sequence."},{name:"true",description:"The element contains an accelerator key sequence."}],status:"nonstandard",syntax:"false | true",relevance:0,description:"IE only. Has the ability to turn off its system underlines for accelerator keys until the ALT key is pressed",restrictions:["enum"]},{name:"-ms-behavior",browsers:["IE8"],relevance:50,description:"IE only. Used to extend behaviors of the browser",restrictions:["url"]},{name:"-ms-block-progression",browsers:["IE8"],values:[{name:"bt",description:"Bottom-to-top block flow. Layout is horizontal."},{name:"lr",description:"Left-to-right direction. The flow orientation is vertical."},{name:"rl",description:"Right-to-left direction. The flow orientation is vertical."},{name:"tb",description:"Top-to-bottom direction. The flow orientation is horizontal."}],status:"nonstandard",syntax:"tb | rl | bt | lr",relevance:0,description:"Sets the block-progression value and the flow orientation",restrictions:["enum"]},{name:"-ms-content-zoom-chaining",browsers:["E","IE10"],values:[{name:"chained",description:"The nearest zoomable parent element begins zooming when the user hits a zoom limit during a manipulation. No bounce effect is shown."},{name:"none",description:"A bounce effect is shown when the user hits a zoom limit during a manipulation."}],status:"nonstandard",syntax:"none | chained",relevance:0,description:"Specifies the zoom behavior that occurs when a user hits the zoom limit during a manipulation."},{name:"-ms-content-zooming",browsers:["E","IE10"],values:[{name:"none",description:"The element is not zoomable."},{name:"zoom",description:"The element is zoomable."}],status:"nonstandard",syntax:"none | zoom",relevance:0,description:"Specifies whether zooming is enabled.",restrictions:["enum"]},{name:"-ms-content-zoom-limit",browsers:["E","IE10"],status:"nonstandard",syntax:"<'-ms-content-zoom-limit-min'> <'-ms-content-zoom-limit-max'>",relevance:0,description:"Shorthand property for the -ms-content-zoom-limit-min and -ms-content-zoom-limit-max properties.",restrictions:["percentage"]},{name:"-ms-content-zoom-limit-max",browsers:["E","IE10"],status:"nonstandard",syntax:"<percentage>",relevance:0,description:"Specifies the maximum zoom factor.",restrictions:["percentage"]},{name:"-ms-content-zoom-limit-min",browsers:["E","IE10"],status:"nonstandard",syntax:"<percentage>",relevance:0,description:"Specifies the minimum zoom factor.",restrictions:["percentage"]},{name:"-ms-content-zoom-snap",browsers:["E","IE10"],values:[{name:"mandatory",description:"Indicates that the motion of the content after the contact is picked up is always adjusted so that it lands on a snap-point."},{name:"none",description:"Indicates that zooming is unaffected by any defined snap-points."},{name:"proximity",description:'Indicates that the motion of the content after the contact is picked up may be adjusted if the content would normally stop "close enough" to a snap-point.'},{name:"snapInterval(100%, 100%)",description:"Specifies where the snap-points will be placed."},{name:"snapList()",description:"Specifies the position of individual snap-points as a comma-separated list of zoom factors."}],status:"nonstandard",syntax:"<'-ms-content-zoom-snap-type'> || <'-ms-content-zoom-snap-points'>",relevance:0,description:"Shorthand property for the -ms-content-zoom-snap-type and -ms-content-zoom-snap-points properties."},{name:"-ms-content-zoom-snap-points",browsers:["E","IE10"],values:[{name:"snapInterval(100%, 100%)",description:"Specifies where the snap-points will be placed."},{name:"snapList()",description:"Specifies the position of individual snap-points as a comma-separated list of zoom factors."}],status:"nonstandard",syntax:"snapInterval( <percentage>, <percentage> ) | snapList( <percentage># )",relevance:0,description:"Defines where zoom snap-points are located."},{name:"-ms-content-zoom-snap-type",browsers:["E","IE10"],values:[{name:"mandatory",description:"Indicates that the motion of the content after the contact is picked up is always adjusted so that it lands on a snap-point."},{name:"none",description:"Indicates that zooming is unaffected by any defined snap-points."},{name:"proximity",description:'Indicates that the motion of the content after the contact is picked up may be adjusted if the content would normally stop "close enough" to a snap-point.'}],status:"nonstandard",syntax:"none | proximity | mandatory",relevance:0,description:"Specifies how zooming is affected by defined snap-points.",restrictions:["enum"]},{name:"-ms-filter",browsers:["IE8-9"],status:"nonstandard",syntax:"<string>",relevance:0,description:"IE only. Used to produce visual effects.",restrictions:["string"]},{name:"-ms-flex",browsers:["IE10"],values:[{name:"auto",description:"Retrieves the value of the main size property as the used 'flex-basis'."},{name:"none",description:"Expands to '0 0 auto'."}],relevance:50,description:"specifies the parameters of a flexible length: the positive and negative flexibility, and the preferred size.",restrictions:["length","number","percentage"]},{name:"-ms-flex-align",browsers:["IE10"],values:[{name:"baseline",description:"If the flex item's inline axis is the same as the cross axis, this value is identical to 'flex-start'. Otherwise, it participates in baseline alignment."},{name:"center",description:"The flex item's margin box is centered in the cross axis within the line."},{name:"end",description:"The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line."},{name:"start",description:"The cross-start margin edge of the flexbox item is placed flush with the cross-start edge of the line."},{name:"stretch",description:"If the cross size property of the flexbox item is anything other than 'auto', this value is identical to 'start'."}],relevance:50,description:"Aligns flex items along the cross axis of the current line of the flex container.",restrictions:["enum"]},{name:"-ms-flex-direction",browsers:["IE10"],values:[{name:"column",description:"The flex container's main axis has the same orientation as the block axis of the current writing mode."},{name:"column-reverse",description:"Same as 'column', except the main-start and main-end directions are swapped."},{name:"row",description:"The flex container's main axis has the same orientation as the inline axis of the current writing mode."},{name:"row-reverse",description:"Same as 'row', except the main-start and main-end directions are swapped."}],relevance:50,description:"Specifies how flex items are placed in the flex container, by setting the direction of the flex container's main axis.",restrictions:["enum"]},{name:"-ms-flex-flow",browsers:["IE10"],values:[{name:"column",description:"The flex container's main axis has the same orientation as the block axis of the current writing mode."},{name:"column-reverse",description:"Same as 'column', except the main-start and main-end directions are swapped."},{name:"nowrap",description:"The flex container is single-line."},{name:"row",description:"The flex container's main axis has the same orientation as the inline axis of the current writing mode."},{name:"wrap",description:"The flexbox is multi-line."},{name:"wrap-reverse",description:"Same as 'wrap', except the cross-start and cross-end directions are swapped."}],relevance:50,description:"Specifies how flexbox items are placed in the flexbox.",restrictions:["enum"]},{name:"-ms-flex-item-align",browsers:["IE10"],values:[{name:"auto",description:"Computes to the value of 'align-items' on the element's parent, or 'stretch' if the element has no parent. On absolutely positioned elements, it computes to itself."},{name:"baseline",description:"If the flex item's inline axis is the same as the cross axis, this value is identical to 'flex-start'. Otherwise, it participates in baseline alignment."},{name:"center",description:"The flex item's margin box is centered in the cross axis within the line."},{name:"end",description:"The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line."},{name:"start",description:"The cross-start margin edge of the flex item is placed flush with the cross-start edge of the line."},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."}],relevance:50,description:"Allows the default alignment along the cross axis to be overridden for individual flex items.",restrictions:["enum"]},{name:"-ms-flex-line-pack",browsers:["IE10"],values:[{name:"center",description:"Lines are packed toward the center of the flex container."},{name:"distribute",description:"Lines are evenly distributed in the flex container, with half-size spaces on either end."},{name:"end",description:"Lines are packed toward the end of the flex container."},{name:"justify",description:"Lines are evenly distributed in the flex container."},{name:"start",description:"Lines are packed toward the start of the flex container."},{name:"stretch",description:"Lines stretch to take up the remaining space."}],relevance:50,description:"Aligns a flex container's lines within the flex container when there is extra space in the cross-axis, similar to how 'justify-content' aligns individual items within the main-axis.",restrictions:["enum"]},{name:"-ms-flex-order",browsers:["IE10"],relevance:50,description:"Controls the order in which children of a flex container appear within the flex container, by assigning them to ordinal groups.",restrictions:["integer"]},{name:"-ms-flex-pack",browsers:["IE10"],values:[{name:"center",description:"Flex items are packed toward the center of the line."},{name:"distribute",description:"Flex items are evenly distributed in the line, with half-size spaces on either end."},{name:"end",description:"Flex items are packed toward the end of the line."},{name:"justify",description:"Flex items are evenly distributed in the line."},{name:"start",description:"Flex items are packed toward the start of the line."}],relevance:50,description:"Aligns flex items along the main axis of the current line of the flex container.",restrictions:["enum"]},{name:"-ms-flex-wrap",browsers:["IE10"],values:[{name:"nowrap",description:"The flex container is single-line."},{name:"wrap",description:"The flexbox is multi-line."},{name:"wrap-reverse",description:"Same as 'wrap', except the cross-start and cross-end directions are swapped."}],relevance:50,description:"Controls whether the flex container is single-line or multi-line, and the direction of the cross-axis, which determines the direction new lines are stacked in.",restrictions:["enum"]},{name:"-ms-flow-from",browsers:["E","IE10"],values:[{name:"none",description:"The block container is not a CSS Region."}],status:"nonstandard",syntax:"[ none | <custom-ident> ]#",relevance:0,description:"Makes a block container a region and associates it with a named flow.",restrictions:["identifier"]},{name:"-ms-flow-into",browsers:["E","IE10"],values:[{name:"none",description:"The element is not moved to a named flow and normal CSS processing takes place."}],status:"nonstandard",syntax:"[ none | <custom-ident> ]#",relevance:0,description:"Places an element or its contents into a named flow.",restrictions:["identifier"]},{name:"-ms-grid-column",browsers:["E","IE10"],values:[{name:"auto"},{name:"end"},{name:"start"}],relevance:50,description:"Used to place grid items and explicitly defined grid cells in the Grid.",restrictions:["integer","string","enum"]},{name:"-ms-grid-column-align",browsers:["E","IE10"],values:[{name:"center",description:"Places the center of the Grid Item's margin box at the center of the Grid Item's column."},{name:"end",description:"Aligns the end edge of the Grid Item's margin box to the end edge of the Grid Item's column."},{name:"start",description:"Aligns the starting edge of the Grid Item's margin box to the starting edge of the Grid Item's column."},{name:"stretch",description:"Ensures that the Grid Item's margin box is equal to the size of the Grid Item's column."}],relevance:50,description:"Aligns the columns in a grid.",restrictions:["enum"]},{name:"-ms-grid-columns",browsers:["E","IE10"],status:"nonstandard",syntax:"none | <track-list> | <auto-track-list>",relevance:0,description:"Lays out the columns of the grid."},{name:"-ms-grid-column-span",browsers:["E","IE10"],relevance:50,description:"Specifies the number of columns to span.",restrictions:["integer"]},{name:"-ms-grid-layer",browsers:["E","IE10"],relevance:50,description:"Grid-layer is similar in concept to z-index, but avoids overloading the meaning of the z-index property, which is applicable only to positioned elements.",restrictions:["integer"]},{name:"-ms-grid-row",browsers:["E","IE10"],values:[{name:"auto"},{name:"end"},{name:"start"}],relevance:50,description:"grid-row is used to place grid items and explicitly defined grid cells in the Grid.",restrictions:["integer","string","enum"]},{name:"-ms-grid-row-align",browsers:["E","IE10"],values:[{name:"center",description:"Places the center of the Grid Item's margin box at the center of the Grid Item's row."},{name:"end",description:"Aligns the end edge of the Grid Item's margin box to the end edge of the Grid Item's row."},{name:"start",description:"Aligns the starting edge of the Grid Item's margin box to the starting edge of the Grid Item's row."},{name:"stretch",description:"Ensures that the Grid Item's margin box is equal to the size of the Grid Item's row."}],relevance:50,description:"Aligns the rows in a grid.",restrictions:["enum"]},{name:"-ms-grid-rows",browsers:["E","IE10"],status:"nonstandard",syntax:"none | <track-list> | <auto-track-list>",relevance:0,description:"Lays out the columns of the grid."},{name:"-ms-grid-row-span",browsers:["E","IE10"],relevance:50,description:"Specifies the number of rows to span.",restrictions:["integer"]},{name:"-ms-high-contrast-adjust",browsers:["E","IE10"],values:[{name:"auto",description:"Properties will be adjusted as applicable."},{name:"none",description:"No adjustments will be applied."}],status:"nonstandard",syntax:"auto | none",relevance:0,description:"Specifies if properties should be adjusted in high contrast mode.",restrictions:["enum"]},{name:"-ms-hyphenate-limit-chars",browsers:["E","IE10"],values:[{name:"auto",description:"The user agent chooses a value that adapts to the current layout."}],status:"nonstandard",syntax:"auto | <integer>{1,3}",relevance:0,description:"Specifies the minimum number of characters in a hyphenated word.",restrictions:["integer"]},{name:"-ms-hyphenate-limit-lines",browsers:["E","IE10"],values:[{name:"no-limit",description:"There is no limit."}],status:"nonstandard",syntax:"no-limit | <integer>",relevance:0,description:"Indicates the maximum number of successive hyphenated lines in an element.",restrictions:["integer"]},{name:"-ms-hyphenate-limit-zone",browsers:["E","IE10"],status:"nonstandard",syntax:"<percentage> | <length>",relevance:0,description:"Specifies the maximum amount of unfilled space (before justification) that may be left in the line box before hyphenation is triggered to pull part of a word from the next line back up into the current line.",restrictions:["percentage","length"]},{name:"-ms-hyphens",browsers:["E","IE10"],values:[{name:"auto",description:"Conditional hyphenation characters inside a word, if present, take priority over automatic resources when determining hyphenation points within the word."},{name:"manual",description:"Words are only broken at line breaks where there are characters inside the word that suggest line break opportunities"},{name:"none",description:"Words are not broken at line breaks, even if characters inside the word suggest line break points."}],relevance:50,description:"Controls whether hyphenation is allowed to create more break opportunities within a line of text.",restrictions:["enum"]},{name:"-ms-ime-mode",browsers:["IE10"],values:[{name:"active",description:"The input method editor is initially active; text entry is performed using it unless the user specifically dismisses it."},{name:"auto",description:"No change is made to the current input method editor state. This is the default."},{name:"disabled",description:"The input method editor is disabled and may not be activated by the user."},{name:"inactive",description:"The input method editor is initially inactive, but the user may activate it if they wish."},{name:"normal",description:"The IME state should be normal; this value can be used in a user style sheet to override the page setting."}],relevance:50,description:"Controls the state of the input method editor for text fields.",restrictions:["enum"]},{name:"-ms-interpolation-mode",browsers:["IE7"],values:[{name:"bicubic"},{name:"nearest-neighbor"}],relevance:50,description:"Gets or sets the interpolation (resampling) method used to stretch images.",restrictions:["enum"]},{name:"-ms-layout-grid",browsers:["E","IE10"],values:[{name:"char",description:"Any of the range of character values available to the -ms-layout-grid-char property."},{name:"line",description:"Any of the range of line values available to the -ms-layout-grid-line property."},{name:"mode",description:"Any of the range of mode values available to the -ms-layout-grid-mode property."},{name:"type",description:"Any of the range of type values available to the -ms-layout-grid-type property."}],relevance:50,description:"Sets or retrieves the composite document grid properties that specify the layout of text characters."},{name:"-ms-layout-grid-char",browsers:["E","IE10"],values:[{name:"auto",description:"Largest character in the font of the element is used to set the character grid."},{name:"none",description:"Default. No character grid is set."}],relevance:50,description:"Sets or retrieves the size of the character grid used for rendering the text content of an element.",restrictions:["enum","length","percentage"]},{name:"-ms-layout-grid-line",browsers:["E","IE10"],values:[{name:"auto",description:"Largest character in the font of the element is used to set the character grid."},{name:"none",description:"Default. No grid line is set."}],relevance:50,description:"Sets or retrieves the gridline value used for rendering the text content of an element.",restrictions:["length"]},{name:"-ms-layout-grid-mode",browsers:["E","IE10"],values:[{name:"both",description:"Default. Both the char and line grid modes are enabled. This setting is necessary to fully enable the layout grid on an element."},{name:"char",description:"Only a character grid is used. This is recommended for use with block-level elements, such as a blockquote, where the line grid is intended to be disabled."},{name:"line",description:"Only a line grid is used. This is recommended for use with inline elements, such as a span, to disable the horizontal grid on runs of text that act as a single entity in the grid layout."},{name:"none",description:"No grid is used."}],relevance:50,description:"Gets or sets whether the text layout grid uses two dimensions.",restrictions:["enum"]},{name:"-ms-layout-grid-type",browsers:["E","IE10"],values:[{name:"fixed",description:"Grid used for monospaced layout. All noncursive characters are treated as equal; every character is centered within a single grid space by default."},{name:"loose",description:"Default. Grid used for Japanese and Korean characters."},{name:"strict",description:"Grid used for Chinese, as well as Japanese (Genko) and Korean characters. Only the ideographs, kanas, and wide characters are snapped to the grid."}],relevance:50,description:"Sets or retrieves the type of grid used for rendering the text content of an element.",restrictions:["enum"]},{name:"-ms-line-break",browsers:["E","IE10"],values:[{name:"auto",description:"The UA determines the set of line-breaking restrictions to use for CJK scripts, and it may vary the restrictions based on the length of the line; e.g., use a less restrictive set of line-break rules for short lines."},{name:"keep-all",description:"Sequences of CJK characters can no longer break on implied break points. This option should only be used where the presence of word separator characters still creates line-breaking opportunities, as in Korean."},{name:"newspaper",description:"Breaks CJK scripts using the least restrictive set of line-breaking rules. Typically used for short lines, such as in newspapers."},{name:"normal",description:"Breaks CJK scripts using a normal set of line-breaking rules."},{name:"strict",description:"Breaks CJK scripts using a more restrictive set of line-breaking rules than 'normal'."}],relevance:50,description:"Specifies what set of line breaking restrictions are in effect within the element.",restrictions:["enum"]},{name:"-ms-overflow-style",browsers:["E","IE10"],values:[{name:"auto",description:"No preference, UA should use the first scrolling method in the list that it supports."},{name:"-ms-autohiding-scrollbar",description:"Indicates the element displays auto-hiding scrollbars during mouse interactions and panning indicators during touch and keyboard interactions."},{name:"none",description:"Indicates the element does not display scrollbars or panning indicators, even when its content overflows."},{name:"scrollbar",description:'Scrollbars are typically narrow strips inserted on one or two edges of an element and which often have arrows to click on and a "thumb" to drag up and down (or left and right) to move the contents of the element.'}],status:"nonstandard",syntax:"auto | none | scrollbar | -ms-autohiding-scrollbar",relevance:0,description:"Specify whether content is clipped when it overflows the element's content area.",restrictions:["enum"]},{name:"-ms-perspective",browsers:["IE10"],values:[{name:"none",description:"No perspective transform is applied."}],relevance:50,description:"Applies the same transform as the perspective(<number>) transform function, except that it applies only to the positioned or transformed children of the element, not to the transform on the element itself.",restrictions:["length"]},{name:"-ms-perspective-origin",browsers:["IE10"],relevance:50,description:"Establishes the origin for the perspective property. It effectively sets the X and Y position at which the viewer appears to be looking at the children of the element.",restrictions:["position","percentage","length"]},{name:"-ms-perspective-origin-x",browsers:["IE10"],relevance:50,description:"Establishes the origin for the perspective property. It effectively sets the X position at which the viewer appears to be looking at the children of the element.",restrictions:["position","percentage","length"]},{name:"-ms-perspective-origin-y",browsers:["IE10"],relevance:50,description:"Establishes the origin for the perspective property. It effectively sets the Y position at which the viewer appears to be looking at the children of the element.",restrictions:["position","percentage","length"]},{name:"-ms-progress-appearance",browsers:["IE10"],values:[{name:"bar"},{name:"ring"}],relevance:50,description:"Gets or sets a value that specifies whether a progress control displays as a bar or a ring.",restrictions:["enum"]},{name:"-ms-scrollbar-3dlight-color",browsers:["IE8"],status:"nonstandard",syntax:"<color>",relevance:0,description:"Determines the color of the top and left edges of the scroll box and scroll arrows of a scroll bar.",restrictions:["color"]},{name:"-ms-scrollbar-arrow-color",browsers:["IE8"],status:"nonstandard",syntax:"<color>",relevance:0,description:"Determines the color of the arrow elements of a scroll arrow.",restrictions:["color"]},{name:"-ms-scrollbar-base-color",browsers:["IE8"],status:"nonstandard",syntax:"<color>",relevance:0,description:"Determines the color of the main elements of a scroll bar, which include the scroll box, track, and scroll arrows.",restrictions:["color"]},{name:"-ms-scrollbar-darkshadow-color",browsers:["IE8"],status:"nonstandard",syntax:"<color>",relevance:0,description:"Determines the color of the gutter of a scroll bar.",restrictions:["color"]},{name:"-ms-scrollbar-face-color",browsers:["IE8"],status:"nonstandard",syntax:"<color>",relevance:0,description:"Determines the color of the scroll box and scroll arrows of a scroll bar.",restrictions:["color"]},{name:"-ms-scrollbar-highlight-color",browsers:["IE8"],status:"nonstandard",syntax:"<color>",relevance:0,description:"Determines the color of the top and left edges of the scroll box and scroll arrows of a scroll bar.",restrictions:["color"]},{name:"-ms-scrollbar-shadow-color",browsers:["IE8"],status:"nonstandard",syntax:"<color>",relevance:0,description:"Determines the color of the bottom and right edges of the scroll box and scroll arrows of a scroll bar.",restrictions:["color"]},{name:"-ms-scrollbar-track-color",browsers:["IE8"],status:"nonstandard",syntax:"<color>",relevance:0,description:"Determines the color of the track element of a scroll bar.",restrictions:["color"]},{name:"-ms-scroll-chaining",browsers:["E","IE10"],values:[{name:"chained"},{name:"none"}],status:"nonstandard",syntax:"chained | none",relevance:0,description:"Gets or sets a value that indicates the scrolling behavior that occurs when a user hits the content boundary during a manipulation.",restrictions:["enum","length"]},{name:"-ms-scroll-limit",browsers:["E","IE10"],values:[{name:"auto"}],status:"nonstandard",syntax:"<'-ms-scroll-limit-x-min'> <'-ms-scroll-limit-y-min'> <'-ms-scroll-limit-x-max'> <'-ms-scroll-limit-y-max'>",relevance:0,description:"Gets or sets a shorthand value that sets values for the -ms-scroll-limit-x-min, -ms-scroll-limit-y-min, -ms-scroll-limit-x-max, and -ms-scroll-limit-y-max properties.",restrictions:["length"]},{name:"-ms-scroll-limit-x-max",browsers:["E","IE10"],values:[{name:"auto"}],status:"nonstandard",syntax:"auto | <length>",relevance:0,description:"Gets or sets a value that specifies the maximum value for the scrollLeft property.",restrictions:["length"]},{name:"-ms-scroll-limit-x-min",browsers:["E","IE10"],status:"nonstandard",syntax:"<length>",relevance:0,description:"Gets or sets a value that specifies the minimum value for the scrollLeft property.",restrictions:["length"]},{name:"-ms-scroll-limit-y-max",browsers:["E","IE10"],values:[{name:"auto"}],status:"nonstandard",syntax:"auto | <length>",relevance:0,description:"Gets or sets a value that specifies the maximum value for the scrollTop property.",restrictions:["length"]},{name:"-ms-scroll-limit-y-min",browsers:["E","IE10"],status:"nonstandard",syntax:"<length>",relevance:0,description:"Gets or sets a value that specifies the minimum value for the scrollTop property.",restrictions:["length"]},{name:"-ms-scroll-rails",browsers:["E","IE10"],values:[{name:"none"},{name:"railed"}],status:"nonstandard",syntax:"none | railed",relevance:0,description:"Gets or sets a value that indicates whether or not small motions perpendicular to the primary axis of motion will result in either changes to both the scrollTop and scrollLeft properties or a change to the primary axis (for instance, either the scrollTop or scrollLeft properties will change, but not both).",restrictions:["enum","length"]},{name:"-ms-scroll-snap-points-x",browsers:["E","IE10"],values:[{name:"snapInterval(100%, 100%)"},{name:"snapList()"}],status:"nonstandard",syntax:"snapInterval( <length-percentage>, <length-percentage> ) | snapList( <length-percentage># )",relevance:0,description:"Gets or sets a value that defines where snap-points will be located along the x-axis.",restrictions:["enum"]},{name:"-ms-scroll-snap-points-y",browsers:["E","IE10"],values:[{name:"snapInterval(100%, 100%)"},{name:"snapList()"}],status:"nonstandard",syntax:"snapInterval( <length-percentage>, <length-percentage> ) | snapList( <length-percentage># )",relevance:0,description:"Gets or sets a value that defines where snap-points will be located along the y-axis.",restrictions:["enum"]},{name:"-ms-scroll-snap-type",browsers:["E","IE10"],values:[{name:"none",description:"The visual viewport of this scroll container must ignore snap points, if any, when scrolled."},{name:"mandatory",description:"The visual viewport of this scroll container is guaranteed to rest on a snap point when there are no active scrolling operations."},{name:"proximity",description:"The visual viewport of this scroll container may come to rest on a snap point at the termination of a scroll at the discretion of the UA given the parameters of the scroll."}],status:"nonstandard",syntax:"none | proximity | mandatory",relevance:0,description:"Gets or sets a value that defines what type of snap-point should be used for the current element. There are two type of snap-points, with the primary difference being whether or not the user is guaranteed to always stop on a snap-point.",restrictions:["enum"]},{name:"-ms-scroll-snap-x",browsers:["E","IE10"],values:[{name:"mandatory"},{name:"none"},{name:"proximity"},{name:"snapInterval(100%, 100%)"},{name:"snapList()"}],status:"nonstandard",syntax:"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-x'>",relevance:0,description:"Gets or sets a shorthand value that sets values for the -ms-scroll-snap-type and -ms-scroll-snap-points-x properties.",restrictions:["enum"]},{name:"-ms-scroll-snap-y",browsers:["E","IE10"],values:[{name:"mandatory"},{name:"none"},{name:"proximity"},{name:"snapInterval(100%, 100%)"},{name:"snapList()"}],status:"nonstandard",syntax:"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-y'>",relevance:0,description:"Gets or sets a shorthand value that sets values for the -ms-scroll-snap-type and -ms-scroll-snap-points-y properties.",restrictions:["enum"]},{name:"-ms-scroll-translation",browsers:["E","IE10"],values:[{name:"none"},{name:"vertical-to-horizontal"}],status:"nonstandard",syntax:"none | vertical-to-horizontal",relevance:0,description:"Gets or sets a value that specifies whether vertical-to-horizontal scroll wheel translation occurs on the specified element.",restrictions:["enum"]},{name:"-ms-text-align-last",browsers:["E","IE8"],values:[{name:"auto"},{name:"center",description:"The inline contents are centered within the line box."},{name:"justify",description:"The text is justified according to the method specified by the 'text-justify' property."},{name:"left",description:"The inline contents are aligned to the left edge of the line box. In vertical text, 'left' aligns to the edge of the line box that would be the start edge for left-to-right text."},{name:"right",description:"The inline contents are aligned to the right edge of the line box. In vertical text, 'right' aligns to the edge of the line box that would be the end edge for left-to-right text."}],relevance:50,description:"Describes how the last line of a block or a line right before a forced line break is aligned when 'text-align' is set to 'justify'.",restrictions:["enum"]},{name:"-ms-text-autospace",browsers:["E","IE8"],values:[{name:"ideograph-alpha",description:"Creates 1/4em extra spacing between runs of ideographic letters and non-ideographic letters, such as Latin-based, Cyrillic, Greek, Arabic or Hebrew."},{name:"ideograph-numeric",description:"Creates 1/4em extra spacing between runs of ideographic letters and numeric glyphs."},{name:"ideograph-parenthesis",description:"Creates extra spacing between normal (non wide) parenthesis and ideographs."},{name:"ideograph-space",description:"Extends the width of the space character while surrounded by ideographs."},{name:"none",description:"No extra space is created."},{name:"punctuation",description:"Creates extra non-breaking spacing around punctuation as required by language-specific typographic conventions."}],status:"nonstandard",syntax:"none | ideograph-alpha | ideograph-numeric | ideograph-parenthesis | ideograph-space",relevance:0,description:"Determines whether or not a full-width punctuation mark character should be trimmed if it appears at the beginning of a line, so that its 'ink' lines up with the first glyph in the line above and below.",restrictions:["enum"]},{name:"-ms-text-combine-horizontal",browsers:["E","IE11"],values:[{name:"all",description:"Attempt to typeset horizontally all consecutive characters within the box such that they take up the space of a single character within the vertical line box."},{name:"digits",description:"Attempt to typeset horizontally each maximal sequence of consecutive ASCII digits (U+0030-U+0039) that has as many or fewer characters than the specified integer such that it takes up the space of a single character within the vertical line box."},{name:"none",description:"No special processing."}],relevance:50,description:"This property specifies the combination of multiple characters into the space of a single character.",restrictions:["enum","integer"]},{name:"-ms-text-justify",browsers:["E","IE8"],values:[{name:"auto",description:"The UA determines the justification algorithm to follow, based on a balance between performance and adequate presentation quality."},{name:"distribute",description:"Justification primarily changes spacing both at word separators and at grapheme cluster boundaries in all scripts except those in the connected and cursive groups. This value is sometimes used in e.g. Japanese, often with the 'text-align-last' property."},{name:"inter-cluster",description:"Justification primarily changes spacing at word separators and at grapheme cluster boundaries in clustered scripts. This value is typically used for Southeast Asian scripts such as Thai."},{name:"inter-ideograph",description:"Justification primarily changes spacing at word separators and at inter-graphemic boundaries in scripts that use no word spaces. This value is typically used for CJK languages."},{name:"inter-word",description:"Justification primarily changes spacing at word separators. This value is typically used for languages that separate words using spaces, like English or (sometimes) Korean."},{name:"kashida",description:"Justification primarily stretches Arabic and related scripts through the use of kashida or other calligraphic elongation."}],relevance:50,description:"Selects the justification algorithm used when 'text-align' is set to 'justify'. The property applies to block containers, but the UA may (but is not required to) also support it on inline elements.",restrictions:["enum"]},{name:"-ms-text-kashida-space",browsers:["E","IE10"],relevance:50,description:"Sets or retrieves the ratio of kashida expansion to white space expansion when justifying lines of text in the object.",restrictions:["percentage"]},{name:"-ms-text-overflow",browsers:["IE10"],values:[{name:"clip",description:"Clip inline content that overflows. Characters may be only partially rendered."},{name:"ellipsis",description:"Render an ellipsis character (U+2026) to represent clipped inline content."}],relevance:50,description:"Text can overflow for example when it is prevented from wrapping",restrictions:["enum"]},{name:"-ms-text-size-adjust",browsers:["E","IE10"],values:[{name:"auto",description:"Renderers must use the default size adjustment when displaying on a small device."},{name:"none",description:"Renderers must not do size adjustment when displaying on a small device."}],relevance:50,description:"Specifies a size adjustment for displaying text content in mobile browsers.",restrictions:["enum","percentage"]},{name:"-ms-text-underline-position",browsers:["E","IE10"],values:[{name:"alphabetic",description:"The underline is aligned with the alphabetic baseline. In this case the underline is likely to cross some descenders."},{name:"auto",description:"The user agent may use any algorithm to determine the underline's position. In horizontal line layout, the underline should be aligned as for alphabetic. In vertical line layout, if the language is set to Japanese or Korean, the underline should be aligned as for over."},{name:"over",description:"The underline is aligned with the 'top' (right in vertical writing) edge of the element's em-box. In this mode, an overline also switches sides."},{name:"under",description:"The underline is aligned with the 'bottom' (left in vertical writing) edge of the element's em-box. In this case the underline usually does not cross the descenders. This is sometimes called 'accounting' underline."}],relevance:50,description:"Sets the position of an underline specified on the same element: it does not affect underlines specified by ancestor elements.This property is typically used in vertical writing contexts such as in Japanese documents where it often desired to have the underline appear 'over' (to the right of) the affected run of text",restrictions:["enum"]},{name:"-ms-touch-action",browsers:["IE10"],values:[{name:"auto",description:"The element is a passive element, with several exceptions."},{name:"double-tap-zoom",description:"The element will zoom on double-tap."},{name:"manipulation",description:"The element is a manipulation-causing element."},{name:"none",description:"The element is a manipulation-blocking element."},{name:"pan-x",description:"The element permits touch-driven panning on the horizontal axis. The touch pan is performed on the nearest ancestor with horizontally scrollable content."},{name:"pan-y",description:"The element permits touch-driven panning on the vertical axis. The touch pan is performed on the nearest ancestor with vertically scrollable content."},{name:"pinch-zoom",description:"The element permits pinch-zooming. The pinch-zoom is performed on the nearest ancestor with zoomable content."}],relevance:50,description:"Gets or sets a value that indicates whether and how a given region can be manipulated by the user.",restrictions:["enum"]},{name:"-ms-touch-select",browsers:["E","IE10"],values:[{name:"grippers",description:"Grippers are always on."},{name:"none",description:"Grippers are always off."}],status:"nonstandard",syntax:"grippers | none",relevance:0,description:"Gets or sets a value that toggles the 'gripper' visual elements that enable touch text selection.",restrictions:["enum"]},{name:"-ms-transform",browsers:["IE9-9"],values:[{name:"matrix()",description:"Specifies a 2D transformation in the form of a transformation matrix of six values. matrix(a,b,c,d,e,f) is equivalent to applying the transformation matrix [a b c d e f]"},{name:"matrix3d()",description:"Specifies a 3D transformation as a 4x4 homogeneous matrix of 16 values in column-major order."},{name:"none"},{name:"rotate()",description:"Specifies a 2D rotation by the angle specified in the parameter about the origin of the element, as defined by the transform-origin property."},{name:"rotate3d()",description:"Specifies a clockwise 3D rotation by the angle specified in last parameter about the [x,y,z] direction vector described by the first 3 parameters."},{name:"rotateX('angle')",description:"Specifies a clockwise rotation by the given angle about the X axis."},{name:"rotateY('angle')",description:"Specifies a clockwise rotation by the given angle about the Y axis."},{name:"rotateZ('angle')",description:"Specifies a clockwise rotation by the given angle about the Z axis."},{name:"scale()",description:"Specifies a 2D scale operation by the [sx,sy] scaling vector described by the 2 parameters. If the second parameter is not provided, it is takes a value equal to the first."},{name:"scale3d()",description:"Specifies a 3D scale operation by the [sx,sy,sz] scaling vector described by the 3 parameters."},{name:"scaleX()",description:"Specifies a scale operation using the [sx,1] scaling vector, where sx is given as the parameter."},{name:"scaleY()",description:"Specifies a scale operation using the [sy,1] scaling vector, where sy is given as the parameter."},{name:"scaleZ()",description:"Specifies a scale operation using the [1,1,sz] scaling vector, where sz is given as the parameter."},{name:"skew()",description:"Specifies a skew transformation along the X and Y axes. The first angle parameter specifies the skew on the X axis. The second angle parameter specifies the skew on the Y axis. If the second parameter is not given then a value of 0 is used for the Y angle (ie: no skew on the Y axis)."},{name:"skewX()",description:"Specifies a skew transformation along the X axis by the given angle."},{name:"skewY()",description:"Specifies a skew transformation along the Y axis by the given angle."},{name:"translate()",description:"Specifies a 2D translation by the vector [tx, ty], where tx is the first translation-value parameter and ty is the optional second translation-value parameter."},{name:"translate3d()",description:"Specifies a 3D translation by the vector [tx,ty,tz], with tx, ty and tz being the first, second and third translation-value parameters respectively."},{name:"translateX()",description:"Specifies a translation by the given amount in the X direction."},{name:"translateY()",description:"Specifies a translation by the given amount in the Y direction."},{name:"translateZ()",description:"Specifies a translation by the given amount in the Z direction. Note that percentage values are not allowed in the translateZ translation-value, and if present are evaluated as 0."}],relevance:50,description:"A two-dimensional transformation is applied to an element through the 'transform' property. This property contains a list of transform functions similar to those allowed by SVG.",restrictions:["enum"]},{name:"-ms-transform-origin",browsers:["IE9-9"],relevance:50,description:"Establishes the origin of transformation for an element.",restrictions:["position","length","percentage"]},{name:"-ms-transform-origin-x",browsers:["IE10"],relevance:50,description:"The x coordinate of the origin for transforms applied to an element with respect to its border box.",restrictions:["length","percentage"]},{name:"-ms-transform-origin-y",browsers:["IE10"],relevance:50,description:"The y coordinate of the origin for transforms applied to an element with respect to its border box.",restrictions:["length","percentage"]},{name:"-ms-transform-origin-z",browsers:["IE10"],relevance:50,description:"The z coordinate of the origin for transforms applied to an element with respect to its border box.",restrictions:["length","percentage"]},{name:"-ms-user-select",browsers:["E","IE10"],values:[{name:"element"},{name:"none"},{name:"text"}],status:"nonstandard",syntax:"none | element | text",relevance:0,description:"Controls the appearance of selection.",restrictions:["enum"]},{name:"-ms-word-break",browsers:["IE8"],values:[{name:"break-all",description:"Lines may break between any two grapheme clusters for non-CJK scripts."},{name:"keep-all",description:"Block characters can no longer create implied break points."},{name:"normal",description:"Breaks non-CJK scripts according to their own rules."}],relevance:50,description:"Specifies line break opportunities for non-CJK scripts.",restrictions:["enum"]},{name:"-ms-word-wrap",browsers:["IE8"],values:[{name:"break-word",description:"An unbreakable 'word' may be broken at an arbitrary point if there are no otherwise-acceptable break points in the line."},{name:"normal",description:"Lines may break only at allowed break points."}],relevance:50,description:"Specifies whether the UA may break within a word to prevent overflow when an otherwise-unbreakable string is too long to fit.",restrictions:["enum"]},{name:"-ms-wrap-flow",browsers:["E","IE10"],values:[{name:"auto",description:"For floats an exclusion is created, for all other elements an exclusion is not created."},{name:"both",description:"Inline flow content can flow on all sides of the exclusion."},{name:"clear",description:"Inline flow content can only wrap on top and bottom of the exclusion and must leave the areas to the start and end edges of the exclusion box empty."},{name:"end",description:"Inline flow content can wrap on the end side of the exclusion area but must leave the area to the start edge of the exclusion area empty."},{name:"maximum",description:"Inline flow content can wrap on the side of the exclusion with the largest available space for the given line, and must leave the other side of the exclusion empty."},{name:"minimum",description:"Inline flow content can flow around the edge of the exclusion with the smallest available space within the flow content's containing block, and must leave the other edge of the exclusion empty."},{name:"start",description:"Inline flow content can wrap on the start edge of the exclusion area but must leave the area to end edge of the exclusion area empty."}],status:"nonstandard",syntax:"auto | both | start | end | maximum | clear",relevance:0,description:"An element becomes an exclusion when its 'wrap-flow' property has a computed value other than 'auto'.",restrictions:["enum"]},{name:"-ms-wrap-margin",browsers:["E","IE10"],status:"nonstandard",syntax:"<length>",relevance:0,description:"Gets or sets a value that is used to offset the inner wrap shape from other shapes.",restrictions:["length","percentage"]},{name:"-ms-wrap-through",browsers:["E","IE10"],values:[{name:"none",description:"The exclusion element does not inherit its parent node's wrapping context. Its descendants are only subject to exclusion shapes defined inside the element."},{name:"wrap",description:"The exclusion element inherits its parent node's wrapping context. Its descendant inline content wraps around exclusions defined outside the element."}],status:"nonstandard",syntax:"wrap | none",relevance:0,description:"Specifies if an element inherits its parent wrapping context. In other words if it is subject to the exclusions defined outside the element.",restrictions:["enum"]},{name:"-ms-writing-mode",browsers:["IE8"],values:[{name:"bt-lr"},{name:"bt-rl"},{name:"lr-bt"},{name:"lr-tb"},{name:"rl-bt"},{name:"rl-tb"},{name:"tb-lr"},{name:"tb-rl"}],relevance:50,description:"Shorthand property for both 'direction' and 'block-progression'.",restrictions:["enum"]},{name:"-ms-zoom",browsers:["IE8"],values:[{name:"normal"}],relevance:50,description:"Sets or retrieves the magnification scale of the object.",restrictions:["enum","integer","number","percentage"]},{name:"-ms-zoom-animation",browsers:["IE10"],values:[{name:"default"},{name:"none"}],relevance:50,description:"Gets or sets a value that indicates whether an animation is used when zooming.",restrictions:["enum"]},{name:"nav-down",browsers:["O9.5"],values:[{name:"auto",description:"The user agent automatically determines which element to navigate the focus to in response to directional navigational input."},{name:"current",description:"Indicates that the user agent should target the frame that the element is in."},{name:"root",description:"Indicates that the user agent should target the full window."}],relevance:50,description:"Provides an way to control directional focus navigation.",restrictions:["enum","identifier","string"]},{name:"nav-index",browsers:["O9.5"],values:[{name:"auto",description:"The element's sequential navigation order is assigned automatically by the user agent."}],relevance:50,description:"Provides an input-method-neutral way of specifying the sequential navigation order (also known as 'tabbing order').",restrictions:["number"]},{name:"nav-left",browsers:["O9.5"],values:[{name:"auto",description:"The user agent automatically determines which element to navigate the focus to in response to directional navigational input."},{name:"current",description:"Indicates that the user agent should target the frame that the element is in."},{name:"root",description:"Indicates that the user agent should target the full window."}],relevance:50,description:"Provides an way to control directional focus navigation.",restrictions:["enum","identifier","string"]},{name:"nav-right",browsers:["O9.5"],values:[{name:"auto",description:"The user agent automatically determines which element to navigate the focus to in response to directional navigational input."},{name:"current",description:"Indicates that the user agent should target the frame that the element is in."},{name:"root",description:"Indicates that the user agent should target the full window."}],relevance:50,description:"Provides an way to control directional focus navigation.",restrictions:["enum","identifier","string"]},{name:"nav-up",browsers:["O9.5"],values:[{name:"auto",description:"The user agent automatically determines which element to navigate the focus to in response to directional navigational input."},{name:"current",description:"Indicates that the user agent should target the frame that the element is in."},{name:"root",description:"Indicates that the user agent should target the full window."}],relevance:50,description:"Provides an way to control directional focus navigation.",restrictions:["enum","identifier","string"]},{name:"negative",browsers:["FF33"],atRule:"@counter-style",syntax:"<symbol> <symbol>?",relevance:50,description:"@counter-style descriptor. Defines how to alter the representation when the counter value is negative.",restrictions:["image","identifier","string"]},{name:"-o-animation",browsers:["O12"],values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"backwards",description:"The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."},{name:"both",description:"Both forwards and backwards fill modes are applied."},{name:"forwards",description:"The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."},{name:"infinite",description:"Causes the animation to repeat forever."},{name:"none",description:"No animation is performed"},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],relevance:50,description:"Shorthand property combines six of the animation properties into a single property.",restrictions:["time","enum","timing-function","identifier","number"]},{name:"-o-animation-delay",browsers:["O12"],relevance:50,description:"Defines when the animation will start.",restrictions:["time"]},{name:"-o-animation-direction",browsers:["O12"],values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],relevance:50,description:"Defines whether or not the animation should play in reverse on alternate cycles.",restrictions:["enum"]},{name:"-o-animation-duration",browsers:["O12"],relevance:50,description:"Defines the length of time that an animation takes to complete one cycle.",restrictions:["time"]},{name:"-o-animation-fill-mode",browsers:["O12"],values:[{name:"backwards",description:"The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."},{name:"both",description:"Both forwards and backwards fill modes are applied."},{name:"forwards",description:"The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."},{name:"none",description:"There is no change to the property value between the time the animation is applied and the time the animation begins playing or after the animation completes."}],relevance:50,description:"Defines what values are applied by the animation outside the time it is executing.",restrictions:["enum"]},{name:"-o-animation-iteration-count",browsers:["O12"],values:[{name:"infinite",description:"Causes the animation to repeat forever."}],relevance:50,description:"Defines the number of times an animation cycle is played. The default value is one, meaning the animation will play from beginning to end once.",restrictions:["number","enum"]},{name:"-o-animation-name",browsers:["O12"],values:[{name:"none",description:"No animation is performed"}],relevance:50,description:"Defines a list of animations that apply. Each name is used to select the keyframe at-rule that provides the property values for the animation.",restrictions:["identifier","enum"]},{name:"-o-animation-play-state",browsers:["O12"],values:[{name:"paused",description:"A running animation will be paused."},{name:"running",description:"Resume playback of a paused animation."}],relevance:50,description:"Defines whether the animation is running or paused.",restrictions:["enum"]},{name:"-o-animation-timing-function",browsers:["O12"],relevance:50,description:"Describes how the animation will progress over one cycle of its duration. See the 'transition-timing-function'.",restrictions:["timing-function"]},{name:"object-fit",browsers:["E79","FF36","S10","C32","O19"],values:[{name:"contain",description:"The replaced content is sized to maintain its aspect ratio while fitting within the element's content box: its concrete object size is resolved as a contain constraint against the element's used width and height."},{name:"cover",description:"The replaced content is sized to maintain its aspect ratio while filling the element's entire content box: its concrete object size is resolved as a cover constraint against the element's used width and height."},{name:"fill",description:"The replaced content is sized to fill the element's content box: the object's concrete object size is the element's used width and height."},{name:"none",description:"The replaced content is not resized to fit inside the element's content box"},{name:"scale-down",description:"Size the content as if 'none' or 'contain' were specified, whichever would result in a smaller concrete object size."}],syntax:"fill | contain | cover | none | scale-down",relevance:72,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/object-fit"}],description:"Specifies how the contents of a replaced element should be scaled relative to the box established by its used height and width.",restrictions:["enum"]},{name:"object-position",browsers:["E79","FF36","S10","C32","O19"],syntax:"<position>",relevance:57,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/object-position"}],description:"Determines the alignment of the replaced element inside its box.",restrictions:["position","length","percentage"]},{name:"-o-border-image",browsers:["O11.6"],values:[{name:"auto",description:"If 'auto' is specified then the border image width is the intrinsic width or height (whichever is applicable) of the corresponding image slice. If the image does not have the required intrinsic dimension then the corresponding border-width is used instead."},{name:"fill",description:"Causes the middle part of the border-image to be preserved."},{name:"none"},{name:"repeat",description:"The image is tiled (repeated) to fill the area."},{name:"round",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the image is rescaled so that it does."},{name:"space",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the extra space is distributed around the tiles."},{name:"stretch",description:"The image is stretched to fill the area."}],relevance:50,description:"Shorthand property for setting 'border-image-source', 'border-image-slice', 'border-image-width', 'border-image-outset' and 'border-image-repeat'. Omitted values are set to their initial values.",restrictions:["length","percentage","number","image","enum"]},{name:"-o-object-fit",browsers:["O10.6"],values:[{name:"contain",description:"The replaced content is sized to maintain its aspect ratio while fitting within the element's content box: its concrete object size is resolved as a contain constraint against the element's used width and height."},{name:"cover",description:"The replaced content is sized to maintain its aspect ratio while filling the element's entire content box: its concrete object size is resolved as a cover constraint against the element's used width and height."},{name:"fill",description:"The replaced content is sized to fill the element's content box: the object's concrete object size is the element's used width and height."},{name:"none",description:"The replaced content is not resized to fit inside the element's content box"},{name:"scale-down",description:"Size the content as if 'none' or 'contain' were specified, whichever would result in a smaller concrete object size."}],relevance:50,description:"Specifies how the contents of a replaced element should be scaled relative to the box established by its used height and width.",restrictions:["enum"]},{name:"-o-object-position",browsers:["O10.6"],relevance:50,description:"Determines the alignment of the replaced element inside its box.",restrictions:["position","length","percentage"]},{name:"opacity",browsers:["E12","FF1","S2","C1","IE9","O9"],syntax:"<alpha-value>",relevance:92,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/opacity"}],description:"Opacity of an element's text, where 1 is opaque and 0 is entirely transparent.",restrictions:["number(0-1)"]},{name:"order",browsers:["E12","FF20","S9","C29","IE11","O12.1"],syntax:"<integer>",relevance:67,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/order"}],description:"Controls the order in which children of a flex container appear within the flex container, by assigning them to ordinal groups.",restrictions:["integer"]},{name:"orphans",browsers:["E12","S1.3","C25","IE8","O9.2"],syntax:"<integer>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/orphans"}],description:"Specifies the minimum number of line boxes in a block container that must be left in a fragment before a fragmentation break.",restrictions:["integer"]},{name:"-o-table-baseline",browsers:["O9.6"],relevance:50,description:"Determines which row of a inline-table should be used as baseline of inline-table.",restrictions:["integer"]},{name:"-o-tab-size",browsers:["O10.6"],relevance:50,description:"This property determines the width of the tab character (U+0009), in space characters (U+0020), when rendered.",restrictions:["integer","length"]},{name:"-o-text-overflow",browsers:["O10"],values:[{name:"clip",description:"Clip inline content that overflows. Characters may be only partially rendered."},{name:"ellipsis",description:"Render an ellipsis character (U+2026) to represent clipped inline content."}],relevance:50,description:"Text can overflow for example when it is prevented from wrapping",restrictions:["enum"]},{name:"-o-transform",browsers:["O10.5"],values:[{name:"matrix()",description:"Specifies a 2D transformation in the form of a transformation matrix of six values. matrix(a,b,c,d,e,f) is equivalent to applying the transformation matrix [a b c d e f]"},{name:"matrix3d()",description:"Specifies a 3D transformation as a 4x4 homogeneous matrix of 16 values in column-major order."},{name:"none"},{name:"rotate()",description:"Specifies a 2D rotation by the angle specified in the parameter about the origin of the element, as defined by the transform-origin property."},{name:"rotate3d()",description:"Specifies a clockwise 3D rotation by the angle specified in last parameter about the [x,y,z] direction vector described by the first 3 parameters."},{name:"rotateX('angle')",description:"Specifies a clockwise rotation by the given angle about the X axis."},{name:"rotateY('angle')",description:"Specifies a clockwise rotation by the given angle about the Y axis."},{name:"rotateZ('angle')",description:"Specifies a clockwise rotation by the given angle about the Z axis."},{name:"scale()",description:"Specifies a 2D scale operation by the [sx,sy] scaling vector described by the 2 parameters. If the second parameter is not provided, it is takes a value equal to the first."},{name:"scale3d()",description:"Specifies a 3D scale operation by the [sx,sy,sz] scaling vector described by the 3 parameters."},{name:"scaleX()",description:"Specifies a scale operation using the [sx,1] scaling vector, where sx is given as the parameter."},{name:"scaleY()",description:"Specifies a scale operation using the [sy,1] scaling vector, where sy is given as the parameter."},{name:"scaleZ()",description:"Specifies a scale operation using the [1,1,sz] scaling vector, where sz is given as the parameter."},{name:"skew()",description:"Specifies a skew transformation along the X and Y axes. The first angle parameter specifies the skew on the X axis. The second angle parameter specifies the skew on the Y axis. If the second parameter is not given then a value of 0 is used for the Y angle (ie: no skew on the Y axis)."},{name:"skewX()",description:"Specifies a skew transformation along the X axis by the given angle."},{name:"skewY()",description:"Specifies a skew transformation along the Y axis by the given angle."},{name:"translate()",description:"Specifies a 2D translation by the vector [tx, ty], where tx is the first translation-value parameter and ty is the optional second translation-value parameter."},{name:"translate3d()",description:"Specifies a 3D translation by the vector [tx,ty,tz], with tx, ty and tz being the first, second and third translation-value parameters respectively."},{name:"translateX()",description:"Specifies a translation by the given amount in the X direction."},{name:"translateY()",description:"Specifies a translation by the given amount in the Y direction."},{name:"translateZ()",description:"Specifies a translation by the given amount in the Z direction. Note that percentage values are not allowed in the translateZ translation-value, and if present are evaluated as 0."}],relevance:50,description:"A two-dimensional transformation is applied to an element through the 'transform' property. This property contains a list of transform functions similar to those allowed by SVG.",restrictions:["enum"]},{name:"-o-transform-origin",browsers:["O10.5"],relevance:50,description:"Establishes the origin of transformation for an element.",restrictions:["positon","length","percentage"]},{name:"-o-transition",browsers:["O11.5"],values:[{name:"all",description:"Every property that is able to undergo a transition will do so."},{name:"none",description:"No property will transition."}],relevance:50,description:"Shorthand property combines four of the transition properties into a single property.",restrictions:["time","property","timing-function","enum"]},{name:"-o-transition-delay",browsers:["O11.5"],relevance:50,description:"Defines when the transition will start. It allows a transition to begin execution some period of time from when it is applied.",restrictions:["time"]},{name:"-o-transition-duration",browsers:["O11.5"],relevance:50,description:"Specifies how long the transition from the old value to the new value should take.",restrictions:["time"]},{name:"-o-transition-property",browsers:["O11.5"],values:[{name:"all",description:"Every property that is able to undergo a transition will do so."},{name:"none",description:"No property will transition."}],relevance:50,description:"Specifies the name of the CSS property to which the transition is applied.",restrictions:["property"]},{name:"-o-transition-timing-function",browsers:["O11.5"],relevance:50,description:"Describes how the intermediate values used during a transition will be calculated.",restrictions:["timing-function"]},{name:"offset-block-end",browsers:["FF41"],values:[{name:"auto",description:"For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well."}],relevance:50,description:"Logical 'bottom'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"offset-block-start",browsers:["FF41"],values:[{name:"auto",description:"For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well."}],relevance:50,description:"Logical 'top'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"offset-inline-end",browsers:["FF41"],values:[{name:"auto",description:"For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well."}],relevance:50,description:"Logical 'right'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"offset-inline-start",browsers:["FF41"],values:[{name:"auto",description:"For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well."}],relevance:50,description:"Logical 'left'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"outline",browsers:["E94","FF88","S16.4","C94","IE8","O80"],values:[{name:"auto",description:"Permits the user agent to render a custom outline style, typically the default platform style."},{name:"invert",browsers:["E94","FF88","S16.4","C94","IE8","O80"],description:"Performs a color inversion on the pixels on the screen."}],syntax:"[ <'outline-color'> || <'outline-style'> || <'outline-width'> ]",relevance:88,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/outline"}],description:"Shorthand property for 'outline-style', 'outline-width', and 'outline-color'.",restrictions:["length","line-width","line-style","color","enum"]},{name:"outline-color",browsers:["E12","FF1.5","S1.2","C1","IE8","O7"],values:[{name:"invert",browsers:["E12","FF1.5","S1.2","C1","IE8","O7"],description:"Performs a color inversion on the pixels on the screen."}],syntax:"auto | <color>",relevance:61,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/outline-color"}],description:"The color of the outline.",restrictions:["enum","color"]},{name:"outline-offset",browsers:["E15","FF1.5","S1.2","C1","O9.5"],syntax:"<length>",relevance:69,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/outline-offset"}],description:"Offset the outline and draw it beyond the border edge.",restrictions:["length"]},{name:"outline-style",browsers:["E12","FF1.5","S1.2","C1","IE8","O7"],values:[{name:"auto",description:"Permits the user agent to render a custom outline style, typically the default platform style."}],syntax:"auto | <'border-style'>",relevance:61,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/outline-style"}],description:"Style of the outline.",restrictions:["line-style","enum"]},{name:"outline-width",browsers:["E12","FF1.5","S1.2","C1","IE8","O7"],syntax:"<line-width>",relevance:62,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/outline-width"}],description:"Width of the outline.",restrictions:["length","line-width"]},{name:"overflow",browsers:["E12","FF1","S1","C1","IE4","O7"],values:[{name:"auto",description:"The behavior of the 'auto' value is UA-dependent, but should cause a scrolling mechanism to be provided for overflowing boxes."},{name:"hidden",description:"Content is clipped and no scrolling mechanism should be provided to view the content outside the clipping region."},{name:"-moz-hidden-unscrollable",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"Same as the standardized 'clip', except doesn't establish a block formatting context."},{name:"scroll",description:"Content is clipped and if the user agent uses a scrolling mechanism that is visible on the screen (such as a scroll bar or a panner), that mechanism should be displayed for a box whether or not any of its content is clipped."},{name:"visible",description:"Content is not clipped, i.e., it may be rendered outside the content box."}],syntax:"[ visible | hidden | clip | scroll | auto ]{1,2}",relevance:93,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overflow"}],description:"Shorthand for setting 'overflow-x' and 'overflow-y'.",restrictions:["enum"]},{name:"overflow-wrap",browsers:["E18","FF49","S7","C23","IE5.5","O12.1"],values:[{name:"break-word",description:"An otherwise unbreakable sequence of characters may be broken at an arbitrary point if there are no otherwise-acceptable break points in the line."},{name:"normal",description:"Lines may break only at allowed break points."}],syntax:"normal | break-word | anywhere",relevance:65,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overflow-wrap"}],description:"Specifies whether the UA may break within a word to prevent overflow when an otherwise-unbreakable string is too long to fit within the line box.",restrictions:["enum"]},{name:"overflow-x",browsers:["E12","FF3.5","S3","C1","IE5","O9.5"],values:[{name:"auto",description:"The behavior of the 'auto' value is UA-dependent, but should cause a scrolling mechanism to be provided for overflowing boxes."},{name:"hidden",description:"Content is clipped and no scrolling mechanism should be provided to view the content outside the clipping region."},{name:"scroll",description:"Content is clipped and if the user agent uses a scrolling mechanism that is visible on the screen (such as a scroll bar or a panner), that mechanism should be displayed for a box whether or not any of its content is clipped."},{name:"visible",description:"Content is not clipped, i.e., it may be rendered outside the content box."}],syntax:"visible | hidden | clip | scroll | auto",relevance:81,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overflow-x"}],description:"Specifies the handling of overflow in the horizontal direction.",restrictions:["enum"]},{name:"overflow-y",browsers:["E12","FF3.5","S3","C1","IE5","O9.5"],values:[{name:"auto",description:"The behavior of the 'auto' value is UA-dependent, but should cause a scrolling mechanism to be provided for overflowing boxes."},{name:"hidden",description:"Content is clipped and no scrolling mechanism should be provided to view the content outside the clipping region."},{name:"scroll",description:"Content is clipped and if the user agent uses a scrolling mechanism that is visible on the screen (such as a scroll bar or a panner), that mechanism should be displayed for a box whether or not any of its content is clipped."},{name:"visible",description:"Content is not clipped, i.e., it may be rendered outside the content box."}],syntax:"visible | hidden | clip | scroll | auto",relevance:82,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overflow-y"}],description:"Specifies the handling of overflow in the vertical direction.",restrictions:["enum"]},{name:"pad",browsers:["FF33"],atRule:"@counter-style",syntax:"<integer> && <symbol>",relevance:50,description:'@counter-style descriptor. Specifies a "fixed-width" counter style, where representations shorter than the pad value are padded with a particular <symbol>',restrictions:["integer","image","string","identifier"]},{name:"padding",browsers:["E12","FF1","S1","C1","IE4","O3.5"],values:[],syntax:"[ <length> | <percentage> ]{1,4}",relevance:95,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding"}],description:"Shorthand property to set values for the thickness of the padding area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. The value may not be negative.",restrictions:["length","percentage"]},{name:"padding-bottom",browsers:["E12","FF1","S1","C1","IE4","O3.5"],syntax:"<length> | <percentage>",relevance:88,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding-bottom"}],description:"Shorthand property to set values for the thickness of the padding area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. The value may not be negative.",restrictions:["length","percentage"]},{name:"padding-block-end",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'padding-left'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding-block-end"}],description:"Logical 'padding-bottom'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"padding-block-start",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'padding-left'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding-block-start"}],description:"Logical 'padding-top'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"padding-inline-end",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'padding-left'>",relevance:55,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding-inline-end"}],description:"Logical 'padding-right'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"padding-inline-start",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'padding-left'>",relevance:56,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding-inline-start"}],description:"Logical 'padding-left'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"padding-left",browsers:["E12","FF1","S1","C1","IE4","O3.5"],syntax:"<length> | <percentage>",relevance:89,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding-left"}],description:"Shorthand property to set values for the thickness of the padding area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. The value may not be negative.",restrictions:["length","percentage"]},{name:"padding-right",browsers:["E12","FF1","S1","C1","IE4","O3.5"],syntax:"<length> | <percentage>",relevance:88,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding-right"}],description:"Shorthand property to set values for the thickness of the padding area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. The value may not be negative.",restrictions:["length","percentage"]},{name:"padding-top",browsers:["E12","FF1","S1","C1","IE4","O3.5"],syntax:"<length> | <percentage>",relevance:89,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding-top"}],description:"Shorthand property to set values for the thickness of the padding area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. The value may not be negative.",restrictions:["length","percentage"]},{name:"page-break-after",browsers:["E12","FF1","S1.2","C1","IE4","O7"],values:[{name:"always",description:"Always force a page break after the generated box."},{name:"auto",description:"Neither force nor forbid a page break after generated box."},{name:"avoid",description:"Avoid a page break after the generated box."},{name:"left",description:"Force one or two page breaks after the generated box so that the next page is formatted as a left page."},{name:"right",description:"Force one or two page breaks after the generated box so that the next page is formatted as a right page."}],syntax:"auto | always | avoid | left | right | recto | verso",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/page-break-after"}],description:"Defines rules for page breaks after an element.",restrictions:["enum"]},{name:"page-break-before",browsers:["E12","FF1","S1.2","C1","IE4","O7"],values:[{name:"always",description:"Always force a page break before the generated box."},{name:"auto",description:"Neither force nor forbid a page break before the generated box."},{name:"avoid",description:"Avoid a page break before the generated box."},{name:"left",description:"Force one or two page breaks before the generated box so that the next page is formatted as a left page."},{name:"right",description:"Force one or two page breaks before the generated box so that the next page is formatted as a right page."}],syntax:"auto | always | avoid | left | right | recto | verso",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/page-break-before"}],description:"Defines rules for page breaks before an element.",restrictions:["enum"]},{name:"page-break-inside",browsers:["E12","FF19","S1.3","C1","IE8","O7"],values:[{name:"auto",description:"Neither force nor forbid a page break inside the generated box."},{name:"avoid",description:"Avoid a page break inside the generated box."}],syntax:"auto | avoid",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/page-break-inside"}],description:"Defines rules for page breaks inside an element.",restrictions:["enum"]},{name:"paint-order",browsers:["E79","FF60","S11","C35","O22"],values:[{name:"fill"},{name:"markers"},{name:"normal",description:"The element is painted with the standard order of painting operations: the 'fill' is painted first, then its 'stroke' and finally its markers."},{name:"stroke"}],syntax:"normal | [ fill || stroke || markers ]",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/paint-order"}],description:"Controls the order that the three paint operations that shapes and text are rendered with: their fill, their stroke and any markers they might have.",restrictions:["enum"]},{name:"perspective",browsers:["E12","FF16","S9","C36","IE10","O23"],values:[{name:"none",description:"No perspective transform is applied."}],syntax:"none | <length>",relevance:55,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/perspective"}],description:"Applies the same transform as the perspective(<number>) transform function, except that it applies only to the positioned or transformed children of the element, not to the transform on the element itself.",restrictions:["length","enum"]},{name:"perspective-origin",browsers:["E12","FF16","S9","C36","IE10","O23"],syntax:"<position>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/perspective-origin"}],description:"Establishes the origin for the perspective property. It effectively sets the X and Y position at which the viewer appears to be looking at the children of the element.",restrictions:["position","percentage","length"]},{name:"pointer-events",browsers:["E12","FF1.5","S4","C1","IE11","O9"],values:[{name:"all",description:"The given element can be the target element for pointer events whenever the pointer is over either the interior or the perimeter of the element."},{name:"fill",description:"The given element can be the target element for pointer events whenever the pointer is over the interior of the element."},{name:"none",description:"The given element does not receive pointer events."},{name:"painted",description:'The given element can be the target element for pointer events when the pointer is over a "painted" area. '},{name:"stroke",description:"The given element can be the target element for pointer events whenever the pointer is over the perimeter of the element."},{name:"visible",description:"The given element can be the target element for pointer events when the 'visibility' property is set to visible and the pointer is over either the interior or the perimeter of the element."},{name:"visibleFill",description:"The given element can be the target element for pointer events when the 'visibility' property is set to visible and when the pointer is over the interior of the element."},{name:"visiblePainted",description:"The given element can be the target element for pointer events when the 'visibility' property is set to visible and when the pointer is over a 'painted' area."},{name:"visibleStroke",description:"The given element can be the target element for pointer events when the 'visibility' property is set to visible and when the pointer is over the perimeter of the element."}],syntax:"auto | none | visiblePainted | visibleFill | visibleStroke | visible | painted | fill | stroke | all | inherit",relevance:82,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/pointer-events"}],description:"Specifies under what circumstances a given element can be the target element for a pointer event.",restrictions:["enum"]},{name:"position",browsers:["E12","FF1","S1","C1","IE4","O4"],values:[{name:"absolute",description:"The box's position (and possibly size) is specified with the 'top', 'right', 'bottom', and 'left' properties. These properties specify offsets with respect to the box's 'containing block'."},{name:"fixed",description:"The box's position is calculated according to the 'absolute' model, but in addition, the box is fixed with respect to some reference. As with the 'absolute' model, the box's margins do not collapse with any other margins."},{name:"-ms-page",browsers:["E12","FF1","S1","C1","IE4","O4"],description:"The box's position is calculated according to the 'absolute' model."},{name:"relative",description:"The box's position is calculated according to the normal flow (this is called the position in normal flow). Then the box is offset relative to its normal position."},{name:"static",description:"The box is a normal box, laid out according to the normal flow. The 'top', 'right', 'bottom', and 'left' properties do not apply."},{name:"sticky",browsers:["E12","FF1","S1","C1","IE4","O4"],description:"The box's position is calculated according to the normal flow. Then the box is offset relative to its flow root and containing block and in all cases, including table elements, does not affect the position of any following boxes."},{name:"-webkit-sticky",browsers:["E12","FF1","S1","C1","IE4","O4"],description:"The box's position is calculated according to the normal flow. Then the box is offset relative to its flow root and containing block and in all cases, including table elements, does not affect the position of any following boxes."}],syntax:"static | relative | absolute | sticky | fixed",relevance:95,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/position"}],description:"The position CSS property sets how an element is positioned in a document. The top, right, bottom, and left properties determine the final location of positioned elements.",restrictions:["enum"]},{name:"prefix",browsers:["FF33"],atRule:"@counter-style",syntax:"<symbol>",relevance:50,description:"@counter-style descriptor. Specifies a <symbol> that is prepended to the marker representation.",restrictions:["image","string","identifier"]},{name:"quotes",browsers:["E12","FF1.5","S9","C11","IE8","O4"],values:[{name:"none",description:"The 'open-quote' and 'close-quote' values of the 'content' property produce no quotations marks, as if they were 'no-open-quote' and 'no-close-quote' respectively."}],syntax:"none | auto | [ <string> <string> ]+",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/quotes"}],description:"Specifies quotation marks for any number of embedded quotations.",restrictions:["string"]},{name:"range",browsers:["FF33"],values:[{name:"auto",description:"The range depends on the counter system."},{name:"infinite",description:"If used as the first value in a range, it represents negative infinity; if used as the second value, it represents positive infinity."}],atRule:"@counter-style",syntax:"[ [ <integer> | infinite ]{2} ]# | auto",relevance:50,description:"@counter-style descriptor. Defines the ranges over which the counter style is defined.",restrictions:["integer","enum"]},{name:"resize",browsers:["E79","FF4","S3","C1","O12.1"],values:[{name:"both",description:"The UA presents a bidirectional resizing mechanism to allow the user to adjust both the height and the width of the element."},{name:"horizontal",description:"The UA presents a unidirectional horizontal resizing mechanism to allow the user to adjust only the width of the element."},{name:"none",description:"The UA does not present a resizing mechanism on the element, and the user is given no direct manipulation mechanism to resize the element."},{name:"vertical",description:"The UA presents a unidirectional vertical resizing mechanism to allow the user to adjust only the height of the element."}],syntax:"none | both | horizontal | vertical | block | inline",relevance:66,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/resize"}],description:"Specifies whether or not an element is resizable by the user, and if so, along which axis/axes.",restrictions:["enum"]},{name:"right",browsers:["E12","FF1","S1","C1","IE5.5","O5"],values:[{name:"auto",description:"For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well"}],syntax:"<length> | <percentage> | auto",relevance:91,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/right"}],description:"Specifies how far an absolutely positioned box's right margin edge is offset to the left of the right edge of the box's 'containing block'.",restrictions:["length","percentage"]},{name:"ruby-align",browsers:["FF38","Spreview"],values:[{name:"auto",browsers:["FF38","Spreview"],description:"The user agent determines how the ruby contents are aligned. This is the initial value."},{name:"center",description:"The ruby content is centered within its box."},{name:"distribute-letter",browsers:["FF38","Spreview"],description:"If the width of the ruby text is smaller than that of the base, then the ruby text contents are evenly distributed across the width of the base, with the first and last ruby text glyphs lining up with the corresponding first and last base glyphs. If the width of the ruby text is at least the width of the base, then the letters of the base are evenly distributed across the width of the ruby text."},{name:"distribute-space",browsers:["FF38","Spreview"],description:"If the width of the ruby text is smaller than that of the base, then the ruby text contents are evenly distributed across the width of the base, with a certain amount of white space preceding the first and following the last character in the ruby text. That amount of white space is normally equal to half the amount of inter-character space of the ruby text."},{name:"left",description:"The ruby text content is aligned with the start edge of the base."},{name:"line-edge",browsers:["FF38","Spreview"],description:"If the ruby text is not adjacent to a line edge, it is aligned as in 'auto'. If it is adjacent to a line edge, then it is still aligned as in auto, but the side of the ruby text that touches the end of the line is lined up with the corresponding edge of the base."},{name:"right",browsers:["FF38","Spreview"],description:"The ruby text content is aligned with the end edge of the base."},{name:"start",browsers:["FF38","Spreview"],description:"The ruby text content is aligned with the start edge of the base."},{name:"space-between",browsers:["FF38","Spreview"],description:"The ruby content expands as defined for normal text justification (as defined by 'text-justify'),"},{name:"space-around",browsers:["FF38","Spreview"],description:"As for 'space-between' except that there exists an extra justification opportunities whose space is distributed half before and half after the ruby content."}],status:"experimental",syntax:"start | center | space-between | space-around",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/ruby-align"}],description:"Specifies how text is distributed within the various ruby boxes when their contents do not exactly fill their respective boxes.",restrictions:["enum"]},{name:"ruby-overhang",browsers:["FF10","IE5"],values:[{name:"auto",description:"The ruby text can overhang text adjacent to the base on either side. This is the initial value."},{name:"end",description:"The ruby text can overhang the text that follows it."},{name:"none",description:"The ruby text cannot overhang any text adjacent to its base, only its own base."},{name:"start",description:"The ruby text can overhang the text that precedes it."}],relevance:50,description:"Determines whether, and on which side, ruby text is allowed to partially overhang any adjacent text in addition to its own base, when the ruby text is wider than the ruby base.",restrictions:["enum"]},{name:"ruby-position",browsers:["E84","FF38","S7","C84","O70"],values:[{name:"after",description:"The ruby text appears after the base. This is a relatively rare setting used in ideographic East Asian writing systems, most easily found in educational text."},{name:"before",description:"The ruby text appears before the base. This is the most common setting used in ideographic East Asian writing systems."},{name:"inline"},{name:"right",description:"The ruby text appears on the right of the base. Unlike 'before' and 'after', this value is not relative to the text flow direction."}],syntax:"[ alternate || [ over | under ] ] | inter-character",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/ruby-position"}],description:"Used by the parent of elements with display: ruby-text to control the position of the ruby text with respect to its base.",restrictions:["enum"]},{name:"ruby-span",browsers:["FF10"],values:[{name:"attr(x)",description:"The value of attribute 'x' is a string value. The string value is evaluated as a <number> to determine the number of ruby base elements to be spanned by the annotation element."},{name:"none",description:"No spanning. The computed value is '1'."}],relevance:50,description:"Determines whether, and on which side, ruby text is allowed to partially overhang any adjacent text in addition to its own base, when the ruby text is wider than the ruby base.",restrictions:["enum"]},{name:"scrollbar-3dlight-color",browsers:["IE5"],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scrollbar-3dlight-color"}],description:"Determines the color of the top and left edges of the scroll box and scroll arrows of a scroll bar.",restrictions:["color"]},{name:"scrollbar-arrow-color",browsers:["IE5"],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scrollbar-arrow-color"}],description:"Determines the color of the arrow elements of a scroll arrow.",restrictions:["color"]},{name:"scrollbar-base-color",browsers:["IE5"],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scrollbar-base-color"}],description:"Determines the color of the main elements of a scroll bar, which include the scroll box, track, and scroll arrows.",restrictions:["color"]},{name:"scrollbar-darkshadow-color",browsers:["IE5"],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scrollbar-darkshadow-color"}],description:"Determines the color of the gutter of a scroll bar.",restrictions:["color"]},{name:"scrollbar-face-color",browsers:["IE5"],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scrollbar-face-color"}],description:"Determines the color of the scroll box and scroll arrows of a scroll bar.",restrictions:["color"]},{name:"scrollbar-highlight-color",browsers:["IE5"],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scrollbar-highlight-color"}],description:"Determines the color of the top and left edges of the scroll box and scroll arrows of a scroll bar.",restrictions:["color"]},{name:"scrollbar-shadow-color",browsers:["IE5"],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scrollbar-shadow-color"}],description:"Determines the color of the bottom and right edges of the scroll box and scroll arrows of a scroll bar.",restrictions:["color"]},{name:"scrollbar-track-color",browsers:["IE6"],relevance:50,description:"Determines the color of the track element of a scroll bar.",restrictions:["color"]},{name:"scroll-behavior",browsers:["E79","FF36","S15.4","C61","O48"],values:[{name:"auto",description:"Scrolls in an instant fashion."},{name:"smooth",description:"Scrolls in a smooth fashion using a user-agent-defined timing function and time period."}],syntax:"auto | smooth",relevance:55,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-behavior"}],description:"Specifies the scrolling behavior for a scrolling box, when scrolling happens due to navigation or CSSOM scrolling APIs.",restrictions:["enum"]},{name:"scroll-snap-coordinate",browsers:["FF39"],values:[{name:"none",description:"Specifies that this element does not contribute a snap point."}],status:"obsolete",syntax:"none | <position>#",relevance:0,description:"Defines the x and y coordinate within the element which will align with the nearest ancestor scroll container's snap-destination for the respective axis.",restrictions:["position","length","percentage","enum"]},{name:"scroll-snap-destination",browsers:["FF39"],status:"obsolete",syntax:"<position>",relevance:0,description:"Define the x and y coordinate within the scroll container's visual viewport which element snap points will align with.",restrictions:["position","length","percentage"]},{name:"scroll-snap-points-x",browsers:["FF39"],values:[{name:"none",description:"No snap points are defined by this scroll container."},{name:"repeat()",description:"Defines an interval at which snap points are defined, starting from the container's relevant start edge."}],status:"obsolete",syntax:"none | repeat( <length-percentage> )",relevance:0,description:"Defines the positioning of snap points along the x axis of the scroll container it is applied to.",restrictions:["enum"]},{name:"scroll-snap-points-y",browsers:["FF39"],values:[{name:"none",description:"No snap points are defined by this scroll container."},{name:"repeat()",description:"Defines an interval at which snap points are defined, starting from the container's relevant start edge."}],status:"obsolete",syntax:"none | repeat( <length-percentage> )",relevance:0,description:"Defines the positioning of snap points along the y axis of the scroll container it is applied to.",restrictions:["enum"]},{name:"scroll-snap-type",browsers:["E79","FF99","S11","C69","IE10","O56"],values:[{name:"none",description:"The visual viewport of this scroll container must ignore snap points, if any, when scrolled."},{name:"mandatory",description:"The visual viewport of this scroll container is guaranteed to rest on a snap point when there are no active scrolling operations."},{name:"proximity",description:"The visual viewport of this scroll container may come to rest on a snap point at the termination of a scroll at the discretion of the UA given the parameters of the scroll."}],syntax:"none | [ x | y | block | inline | both ] [ mandatory | proximity ]?",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-snap-type"}],description:"Defines how strictly snap points are enforced on the scroll container.",restrictions:["enum"]},{name:"shape-image-threshold",browsers:["E79","FF62","S10.1","C37","O24"],syntax:"<alpha-value>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/shape-image-threshold"}],description:"Defines the alpha channel threshold used to extract the shape using an image. A value of 0.5 means that the shape will enclose all the pixels that are more than 50% opaque.",restrictions:["number"]},{name:"shape-margin",browsers:["E79","FF62","S10.1","C37","O24"],syntax:"<length-percentage>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/shape-margin"}],description:"Adds a margin to a 'shape-outside'. This defines a new shape that is the smallest contour that includes all the points that are the 'shape-margin' distance outward in the perpendicular direction from a point on the underlying shape.",restrictions:["url","length","percentage"]},{name:"shape-outside",browsers:["E79","FF62","S10.1","C37","O24"],values:[{name:"margin-box",description:"The background is painted within (clipped to) the margin box."},{name:"none",description:"The float area is unaffected."}],syntax:"none | [ <shape-box> || <basic-shape> ] | <image>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/shape-outside"}],description:"Specifies an orthogonal rotation to be applied to an image before it is laid out.",restrictions:["image","box","shape","enum"]},{name:"shape-rendering",browsers:["E80","FF72","S13.1","C80","O67"],values:[{name:"auto",description:"Suppresses aural rendering."},{name:"crispEdges",description:"Emphasize the contrast between clean edges of artwork over rendering speed and geometric precision."},{name:"geometricPrecision",description:"Emphasize geometric precision over speed and crisp edges."},{name:"optimizeSpeed",description:"Emphasize rendering speed over geometric precision and crisp edges."}],relevance:50,description:"Provides hints about what tradeoffs to make as it renders vector graphics elements such as <path> elements and basic shapes such as circles and rectangles.",restrictions:["enum"]},{name:"size",browsers:["C","O8"],atRule:"@page",syntax:"<length>{1,2} | auto | [ <page-size> || [ portrait | landscape ] ]",relevance:53,description:"The size CSS at-rule descriptor, used with the @page at-rule, defines the size and orientation of the box which is used to represent a page. Most of the time, this size corresponds to the target size of the printed page if applicable.",restrictions:["length"]},{name:"src",values:[{name:"url()",description:"Reference font by URL"},{name:"format()",description:"Optional hint describing the format of the font resource."},{name:"local()",description:"Format-specific string that identifies a locally available copy of a given font."}],atRule:"@font-face",syntax:"[ <url> [ format( <string># ) ]? | local( <family-name> ) ]#",relevance:86,description:"@font-face descriptor. Specifies the resource containing font data. It is required, whether the font is downloadable or locally installed.",restrictions:["enum","url","identifier"]},{name:"stop-color",browsers:["E80","FF72","S13.1","C80","O67"],relevance:50,description:"Indicates what color to use at that gradient stop.",restrictions:["color"]},{name:"stop-opacity",browsers:["E80","FF72","S13.1","C80","O67"],relevance:50,description:"Defines the opacity of a given gradient stop.",restrictions:["number(0-1)"]},{name:"stroke",browsers:["E80","FF72","S13.1","C80","O67"],values:[{name:"url()",description:"A URL reference to a paint server element, which is an element that defines a paint server: 'hatch', 'linearGradient', 'mesh', 'pattern', 'radialGradient' and 'solidcolor'."},{name:"none",description:"No paint is applied in this layer."}],relevance:67,description:"Paints along the outline of the given graphical element.",restrictions:["color","enum","url"]},{name:"stroke-dasharray",browsers:["E80","FF72","S13.1","C80","O67"],values:[{name:"none",description:"Indicates that no dashing is used."}],relevance:61,description:"Controls the pattern of dashes and gaps used to stroke paths.",restrictions:["length","percentage","number","enum"]},{name:"stroke-dashoffset",browsers:["E80","FF72","S13.1","C80","O67"],relevance:62,description:"Specifies the distance into the dash pattern to start the dash.",restrictions:["percentage","length"]},{name:"stroke-linecap",browsers:["E80","FF72","S13.1","C80","O67"],values:[{name:"butt",description:"Indicates that the stroke for each subpath does not extend beyond its two endpoints."},{name:"round",description:"Indicates that at each end of each subpath, the shape representing the stroke will be extended by a half circle with a radius equal to the stroke width."},{name:"square",description:"Indicates that at the end of each subpath, the shape representing the stroke will be extended by a rectangle with the same width as the stroke width and whose length is half of the stroke width."}],relevance:53,description:"Specifies the shape to be used at the end of open subpaths when they are stroked.",restrictions:["enum"]},{name:"stroke-linejoin",browsers:["E80","FF72","S13.1","C80","O67"],values:[{name:"bevel",description:"Indicates that a bevelled corner is to be used to join path segments."},{name:"miter",description:"Indicates that a sharp corner is to be used to join path segments."},{name:"round",description:"Indicates that a round corner is to be used to join path segments."}],relevance:51,description:"Specifies the shape to be used at the corners of paths or basic shapes when they are stroked.",restrictions:["enum"]},{name:"stroke-miterlimit",browsers:["E80","FF72","S13.1","C80","O67"],relevance:51,description:"When two line segments meet at a sharp angle and miter joins have been specified for 'stroke-linejoin', it is possible for the miter to extend far beyond the thickness of the line stroking the path.",restrictions:["number"]},{name:"stroke-opacity",browsers:["E80","FF72","S13.1","C80","O67"],relevance:52,description:"Specifies the opacity of the painting operation used to stroke the current object.",restrictions:["number(0-1)"]},{name:"stroke-width",browsers:["E80","FF72","S13.1","C80","O67"],relevance:64,description:"Specifies the width of the stroke on the current object.",restrictions:["percentage","length"]},{name:"suffix",browsers:["FF33"],atRule:"@counter-style",syntax:"<symbol>",relevance:50,description:"@counter-style descriptor. Specifies a <symbol> that is appended to the marker representation.",restrictions:["image","string","identifier"]},{name:"system",browsers:["FF33"],values:[{name:"additive",description:'Represents "sign-value" numbering systems, which, rather than using reusing digits in different positions to change their value, define additional digits with much larger values, so that the value of the number can be obtained by adding all the digits together.'},{name:"alphabetic",description:'Interprets the list of counter symbols as digits to an alphabetic numbering system, similar to the default lower-alpha counter style, which wraps from "a", "b", "c", to "aa", "ab", "ac".'},{name:"cyclic",description:"Cycles repeatedly through its provided symbols, looping back to the beginning when it reaches the end of the list."},{name:"extends",description:"Use the algorithm of another counter style, but alter other aspects."},{name:"fixed",description:"Runs through its list of counter symbols once, then falls back."},{name:"numeric",description:"interprets the list of counter symbols as digits to a \"place-value\" numbering system, similar to the default 'decimal' counter style."},{name:"symbolic",description:"Cycles repeatedly through its provided symbols, doubling, tripling, etc. the symbols on each successive pass through the list."}],atRule:"@counter-style",syntax:"cyclic | numeric | alphabetic | symbolic | additive | [ fixed <integer>? ] | [ extends <counter-style-name> ]",relevance:50,description:"@counter-style descriptor. Specifies which algorithm will be used to construct the counter's representation based on the counter value.",restrictions:["enum","integer"]},{name:"symbols",browsers:["FF33"],atRule:"@counter-style",syntax:"<symbol>+",relevance:50,description:"@counter-style descriptor. Specifies the symbols used by the marker-construction algorithm specified by the system descriptor.",restrictions:["image","string","identifier"]},{name:"table-layout",browsers:["E12","FF1","S1","C14","IE5","O7"],values:[{name:"auto",description:"Use any automatic table layout algorithm."},{name:"fixed",description:"Use the fixed table layout algorithm."}],syntax:"auto | fixed",relevance:58,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/table-layout"}],description:"Controls the algorithm used to lay out the table cells, rows, and columns.",restrictions:["enum"]},{name:"tab-size",browsers:["E79","FF91","S7","C21","O15"],syntax:"<integer> | <length>",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/tab-size"}],description:"Determines the width of the tab character (U+0009), in space characters (U+0020), when rendered.",restrictions:["integer","length"]},{name:"text-align",browsers:["E12","FF1","S1","C1","IE3","O3.5"],values:[{name:"center",description:"The inline contents are centered within the line box."},{name:"end",browsers:["E12","FF1","S1","C1","IE3","O3.5"],description:"The inline contents are aligned to the end edge of the line box."},{name:"justify",description:"The text is justified according to the method specified by the 'text-justify' property."},{name:"left",description:"The inline contents are aligned to the left edge of the line box. In vertical text, 'left' aligns to the edge of the line box that would be the start edge for left-to-right text."},{name:"right",description:"The inline contents are aligned to the right edge of the line box. In vertical text, 'right' aligns to the edge of the line box that would be the end edge for left-to-right text."},{name:"start",browsers:["E12","FF1","S1","C1","IE3","O3.5"],description:"The inline contents are aligned to the start edge of the line box."}],syntax:"start | end | left | right | center | justify | match-parent",relevance:93,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-align"}],description:"Describes how inline contents of a block are horizontally aligned if the contents do not completely fill the line box.",restrictions:["string"]},{name:"text-align-last",browsers:["E12","FF49","S16","C47","IE5.5","O34"],values:[{name:"auto",description:"Content on the affected line is aligned per 'text-align' unless 'text-align' is set to 'justify', in which case it is 'start-aligned'."},{name:"center",description:"The inline contents are centered within the line box."},{name:"justify",description:"The text is justified according to the method specified by the 'text-justify' property."},{name:"left",description:"The inline contents are aligned to the left edge of the line box. In vertical text, 'left' aligns to the edge of the line box that would be the start edge for left-to-right text."},{name:"right",description:"The inline contents are aligned to the right edge of the line box. In vertical text, 'right' aligns to the edge of the line box that would be the end edge for left-to-right text."}],syntax:"auto | start | end | left | right | center | justify",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-align-last"}],description:"Describes how the last line of a block or a line right before a forced line break is aligned when 'text-align' is set to 'justify'.",restrictions:["enum"]},{name:"text-anchor",browsers:["E80","FF72","S13.1","C80","O67"],values:[{name:"end",description:"The rendered characters are aligned such that the end of the resulting rendered text is at the initial current text position."},{name:"middle",description:"The rendered characters are aligned such that the geometric middle of the resulting rendered text is at the initial current text position."},{name:"start",description:"The rendered characters are aligned such that the start of the resulting rendered text is at the initial current text position."}],relevance:50,description:"Used to align (start-, middle- or end-alignment) a string of text relative to a given point.",restrictions:["enum"]},{name:"text-decoration",browsers:["E12","FF1","S1","C1","IE3","O3.5"],values:[{name:"dashed",description:"Produces a dashed line style."},{name:"dotted",description:"Produces a dotted line."},{name:"double",description:"Produces a double line."},{name:"line-through",description:"Each line of text has a line through the middle."},{name:"none",description:"Produces no line."},{name:"overline",description:"Each line of text has a line above it."},{name:"solid",description:"Produces a solid line."},{name:"underline",description:"Each line of text is underlined."},{name:"wavy",description:"Produces a wavy line."}],syntax:"<'text-decoration-line'> || <'text-decoration-style'> || <'text-decoration-color'> || <'text-decoration-thickness'>",relevance:91,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-decoration"}],description:"Decorations applied to font used for an element's text.",restrictions:["enum","color"]},{name:"text-decoration-color",browsers:["E79","FF36","S12.1","C57","O44"],syntax:"<color>",relevance:55,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-decoration-color"}],description:"Specifies the color of text decoration (underlines overlines, and line-throughs) set on the element with text-decoration-line.",restrictions:["color"]},{name:"text-decoration-line",browsers:["E79","FF36","S12.1","C57","O44"],values:[{name:"line-through",description:"Each line of text has a line through the middle."},{name:"none",description:"Neither produces nor inhibits text decoration."},{name:"overline",description:"Each line of text has a line above it."},{name:"underline",description:"Each line of text is underlined."}],syntax:"none | [ underline || overline || line-through || blink ] | spelling-error | grammar-error",relevance:57,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-decoration-line"}],description:"Specifies what line decorations, if any, are added to the element.",restrictions:["enum"]},{name:"text-decoration-style",browsers:["E79","FF36","S12.1","C57","O44"],values:[{name:"dashed",description:"Produces a dashed line style."},{name:"dotted",description:"Produces a dotted line."},{name:"double",description:"Produces a double line."},{name:"none",description:"Produces no line."},{name:"solid",description:"Produces a solid line."},{name:"wavy",description:"Produces a wavy line."}],syntax:"solid | double | dotted | dashed | wavy",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-decoration-style"}],description:"Specifies the line style for underline, line-through and overline text decoration.",restrictions:["enum"]},{name:"text-indent",browsers:["E12","FF1","S1","C1","IE3","O3.5"],values:[],syntax:"<length-percentage> && hanging? && each-line?",relevance:67,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-indent"}],description:"Specifies the indentation applied to lines of inline content in a block. The indentation only affects the first line of inline content in the block unless the 'hanging' keyword is specified, in which case it affects all lines except the first.",restrictions:["percentage","length"]},{name:"text-justify",browsers:["E79","FF55","C32","IE11","O19"],values:[{name:"auto",description:"The UA determines the justification algorithm to follow, based on a balance between performance and adequate presentation quality."},{name:"distribute",description:"Justification primarily changes spacing both at word separators and at grapheme cluster boundaries in all scripts except those in the connected and cursive groups. This value is sometimes used in e.g. Japanese, often with the 'text-align-last' property."},{name:"distribute-all-lines"},{name:"inter-cluster",description:"Justification primarily changes spacing at word separators and at grapheme cluster boundaries in clustered scripts. This value is typically used for Southeast Asian scripts such as Thai."},{name:"inter-ideograph",description:"Justification primarily changes spacing at word separators and at inter-graphemic boundaries in scripts that use no word spaces. This value is typically used for CJK languages."},{name:"inter-word",description:"Justification primarily changes spacing at word separators. This value is typically used for languages that separate words using spaces, like English or (sometimes) Korean."},{name:"kashida",description:"Justification primarily stretches Arabic and related scripts through the use of kashida or other calligraphic elongation."},{name:"newspaper"}],syntax:"auto | inter-character | inter-word | none",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-justify"}],description:"Selects the justification algorithm used when 'text-align' is set to 'justify'. The property applies to block containers, but the UA may (but is not required to) also support it on inline elements.",restrictions:["enum"]},{name:"text-orientation",browsers:["E79","FF41","S14","C48","O35"],values:[{name:"sideways",browsers:["E79","FF41","S14","C48","O35"],description:"This value is equivalent to 'sideways-right' in 'vertical-rl' writing mode and equivalent to 'sideways-left' in 'vertical-lr' writing mode."},{name:"sideways-right",browsers:["E79","FF41","S14","C48","O35"],description:"In vertical writing modes, this causes text to be set as if in a horizontal layout, but rotated 90\xb0 clockwise."},{name:"upright",description:"In vertical writing modes, characters from horizontal-only scripts are rendered upright, i.e. in their standard horizontal orientation."}],syntax:"mixed | upright | sideways",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-orientation"}],description:"Specifies the orientation of text within a line.",restrictions:["enum"]},{name:"text-overflow",browsers:["E12","FF7","S1.3","C1","IE6","O11"],values:[{name:"clip",description:"Clip inline content that overflows. Characters may be only partially rendered."},{name:"ellipsis",description:"Render an ellipsis character (U+2026) to represent clipped inline content."}],syntax:"[ clip | ellipsis | <string> ]{1,2}",relevance:82,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-overflow"}],description:"Text can overflow for example when it is prevented from wrapping.",restrictions:["enum","string"]},{name:"text-rendering",browsers:["E79","FF1","S5","C4","O15"],values:[{name:"auto"},{name:"geometricPrecision",description:"Indicates that the user agent shall emphasize geometric precision over legibility and rendering speed."},{name:"optimizeLegibility",description:"Indicates that the user agent shall emphasize legibility over rendering speed and geometric precision."},{name:"optimizeSpeed",description:"Indicates that the user agent shall emphasize rendering speed over legibility and geometric precision."}],syntax:"auto | optimizeSpeed | optimizeLegibility | geometricPrecision",relevance:68,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-rendering"}],description:"The creator of SVG content might want to provide a hint to the implementation about what tradeoffs to make as it renders text. The 'text-rendering' property provides these hints.",restrictions:["enum"]},{name:"text-shadow",browsers:["E12","FF3.5","S1.1","C2","IE10","O9.5"],values:[{name:"none",description:"No shadow."}],syntax:"none | <shadow-t>#",relevance:73,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-shadow"}],description:"Enables shadow effects to be applied to the text of the element.",restrictions:["length","color"]},{name:"text-transform",browsers:["E12","FF1","S1","C1","IE4","O7"],values:[{name:"capitalize",description:"Puts the first typographic letter unit of each word in titlecase."},{name:"lowercase",description:"Puts all letters in lowercase."},{name:"none",description:"No effects."},{name:"uppercase",description:"Puts all letters in uppercase."}],syntax:"none | capitalize | uppercase | lowercase | full-width | full-size-kana",relevance:86,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-transform"}],description:"Controls capitalization effects of an element's text.",restrictions:["enum"]},{name:"text-underline-position",browsers:["E12","FF74","S12.1","C33","IE6","O20"],values:[{name:"above"},{name:"auto",description:"The user agent may use any algorithm to determine the underline's position. In horizontal line layout, the underline should be aligned as for alphabetic. In vertical line layout, if the language is set to Japanese or Korean, the underline should be aligned as for over."},{name:"below",description:"The underline is aligned with the under edge of the element's content box."}],syntax:"auto | from-font | [ under || [ left | right ] ]",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-underline-position"}],description:"Sets the position of an underline specified on the same element: it does not affect underlines specified by ancestor elements. This property is typically used in vertical writing contexts such as in Japanese documents where it often desired to have the underline appear 'over' (to the right of) the affected run of text",restrictions:["enum"]},{name:"top",browsers:["E12","FF1","S1","C1","IE5","O6"],values:[{name:"auto",description:"For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well"}],syntax:"<length> | <percentage> | auto",relevance:95,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/top"}],description:"Specifies how far an absolutely positioned box's top margin edge is offset below the top edge of the box's 'containing block'.",restrictions:["length","percentage"]},{name:"touch-action",browsers:["E12","FF52","S13","C36","IE11","O23"],values:[{name:"auto",description:"The user agent may determine any permitted touch behaviors for touches that begin on the element."},{name:"cross-slide-x",browsers:["E12","FF52","S13","C36","IE11","O23"]},{name:"cross-slide-y",browsers:["E12","FF52","S13","C36","IE11","O23"]},{name:"double-tap-zoom",browsers:["E12","FF52","S13","C36","IE11","O23"]},{name:"manipulation",description:"The user agent may consider touches that begin on the element only for the purposes of scrolling and continuous zooming."},{name:"none",description:"Touches that begin on the element must not trigger default touch behaviors."},{name:"pan-x",description:"The user agent may consider touches that begin on the element only for the purposes of horizontally scrolling the element's nearest ancestor with horizontally scrollable content."},{name:"pan-y",description:"The user agent may consider touches that begin on the element only for the purposes of vertically scrolling the element's nearest ancestor with vertically scrollable content."},{name:"pinch-zoom",browsers:["E12","FF52","S13","C36","IE11","O23"]}],syntax:"auto | none | [ [ pan-x | pan-left | pan-right ] || [ pan-y | pan-up | pan-down ] || pinch-zoom ] | manipulation",relevance:69,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/touch-action"}],description:"Determines whether touch input may trigger default behavior supplied by user agent.",restrictions:["enum"]},{name:"transform",browsers:["E12","FF16","S9","C36","IE10","O23"],values:[{name:"matrix()",description:"Specifies a 2D transformation in the form of a transformation matrix of six values. matrix(a,b,c,d,e,f) is equivalent to applying the transformation matrix [a b c d e f]"},{name:"matrix3d()",description:"Specifies a 3D transformation as a 4x4 homogeneous matrix of 16 values in column-major order."},{name:"none"},{name:"perspective()",description:"Specifies a perspective projection matrix."},{name:"rotate()",description:"Specifies a 2D rotation by the angle specified in the parameter about the origin of the element, as defined by the transform-origin property."},{name:"rotate3d()",description:"Specifies a clockwise 3D rotation by the angle specified in last parameter about the [x,y,z] direction vector described by the first 3 parameters."},{name:"rotateX('angle')",description:"Specifies a clockwise rotation by the given angle about the X axis."},{name:"rotateY('angle')",description:"Specifies a clockwise rotation by the given angle about the Y axis."},{name:"rotateZ('angle')",description:"Specifies a clockwise rotation by the given angle about the Z axis."},{name:"scale()",description:"Specifies a 2D scale operation by the [sx,sy] scaling vector described by the 2 parameters. If the second parameter is not provided, it is takes a value equal to the first."},{name:"scale3d()",description:"Specifies a 3D scale operation by the [sx,sy,sz] scaling vector described by the 3 parameters."},{name:"scaleX()",description:"Specifies a scale operation using the [sx,1] scaling vector, where sx is given as the parameter."},{name:"scaleY()",description:"Specifies a scale operation using the [sy,1] scaling vector, where sy is given as the parameter."},{name:"scaleZ()",description:"Specifies a scale operation using the [1,1,sz] scaling vector, where sz is given as the parameter."},{name:"skew()",description:"Specifies a skew transformation along the X and Y axes. The first angle parameter specifies the skew on the X axis. The second angle parameter specifies the skew on the Y axis. If the second parameter is not given then a value of 0 is used for the Y angle (ie: no skew on the Y axis)."},{name:"skewX()",description:"Specifies a skew transformation along the X axis by the given angle."},{name:"skewY()",description:"Specifies a skew transformation along the Y axis by the given angle."},{name:"translate()",description:"Specifies a 2D translation by the vector [tx, ty], where tx is the first translation-value parameter and ty is the optional second translation-value parameter."},{name:"translate3d()",description:"Specifies a 3D translation by the vector [tx,ty,tz], with tx, ty and tz being the first, second and third translation-value parameters respectively."},{name:"translateX()",description:"Specifies a translation by the given amount in the X direction."},{name:"translateY()",description:"Specifies a translation by the given amount in the Y direction."},{name:"translateZ()",description:"Specifies a translation by the given amount in the Z direction. Note that percentage values are not allowed in the translateZ translation-value, and if present are evaluated as 0."}],syntax:"none | <transform-list>",relevance:90,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/transform"}],description:"A two-dimensional transformation is applied to an element through the 'transform' property. This property contains a list of transform functions similar to those allowed by SVG.",restrictions:["enum"]},{name:"transform-origin",browsers:["E12","FF16","S9","C36","IE10","O23"],syntax:"[ <length-percentage> | left | center | right | top | bottom ] | [ [ <length-percentage> | left | center | right ] && [ <length-percentage> | top | center | bottom ] ] <length>?",relevance:76,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/transform-origin"}],description:"Establishes the origin of transformation for an element.",restrictions:["position","length","percentage"]},{name:"transform-style",browsers:["E12","FF16","S9","C36","O23"],values:[{name:"flat",description:"All children of this element are rendered flattened into the 2D plane of the element."},{name:"preserve-3d",browsers:["E12","FF16","S9","C36","O23"],description:"Flattening is not performed, so children maintain their position in 3D space."}],syntax:"flat | preserve-3d",relevance:56,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/transform-style"}],description:"Defines how nested elements are rendered in 3D space.",restrictions:["enum"]},{name:"transition",browsers:["E12","FF16","S9","C26","IE10","O12.1"],values:[{name:"all",description:"Every property that is able to undergo a transition will do so."},{name:"none",description:"No property will transition."}],syntax:"<single-transition>#",relevance:89,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/transition"}],description:"Shorthand property combines four of the transition properties into a single property.",restrictions:["time","property","timing-function","enum"]},{name:"transition-delay",browsers:["E12","FF16","S9","C26","IE10","O12.1"],syntax:"<time>#",relevance:64,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/transition-delay"}],description:"Defines when the transition will start. It allows a transition to begin execution some period of time from when it is applied.",restrictions:["time"]},{name:"transition-duration",browsers:["E12","FF16","S9","C26","IE10","O12.1"],syntax:"<time>#",relevance:68,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/transition-duration"}],description:"Specifies how long the transition from the old value to the new value should take.",restrictions:["time"]},{name:"transition-property",browsers:["E12","FF16","S9","C26","IE10","O12.1"],values:[{name:"all",description:"Every property that is able to undergo a transition will do so."},{name:"none",description:"No property will transition."}],syntax:"none | <single-transition-property>#",relevance:68,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/transition-property"}],description:"Specifies the name of the CSS property to which the transition is applied.",restrictions:["property"]},{name:"transition-timing-function",browsers:["E12","FF16","S9","C26","IE10","O12.1"],syntax:"<easing-function>#",relevance:65,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/transition-timing-function"}],description:"Describes how the intermediate values used during a transition will be calculated.",restrictions:["timing-function"]},{name:"unicode-bidi",browsers:["E12","FF1","S1.3","C2","IE5.5","O9.2"],values:[{name:"bidi-override",description:"Inside the element, reordering is strictly in sequence according to the 'direction' property; the implicit part of the bidirectional algorithm is ignored."},{name:"embed",description:"If the element is inline-level, this value opens an additional level of embedding with respect to the bidirectional algorithm. The direction of this embedding level is given by the 'direction' property."},{name:"isolate",browsers:["E12","FF1","S1.3","C2","IE5.5","O9.2"],description:"The contents of the element are considered to be inside a separate, independent paragraph."},{name:"isolate-override",browsers:["E12","FF1","S1.3","C2","IE5.5","O9.2"],description:"This combines the isolation behavior of 'isolate' with the directional override behavior of 'bidi-override'"},{name:"normal",description:"The element does not open an additional level of embedding with respect to the bidirectional algorithm. For inline-level elements, implicit reordering works across element boundaries."},{name:"plaintext",browsers:["E12","FF1","S1.3","C2","IE5.5","O9.2"],description:"For the purposes of the Unicode bidirectional algorithm, the base directionality of each bidi paragraph for which the element forms the containing block is determined not by the element's computed 'direction'."}],syntax:"normal | embed | isolate | bidi-override | isolate-override | plaintext",relevance:56,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/unicode-bidi"}],description:"The level of embedding with respect to the bidirectional algorithm.",restrictions:["enum"]},{name:"unicode-range",values:[{name:"U+26",description:"Ampersand."},{name:"U+20-24F, U+2B0-2FF, U+370-4FF, U+1E00-1EFF, U+2000-20CF, U+2100-23FF, U+2500-26FF, U+E000-F8FF, U+FB00-FB4F",description:"WGL4 character set (Pan-European)."},{name:"U+20-17F, U+2B0-2FF, U+2000-206F, U+20A0-20CF, U+2100-21FF, U+2600-26FF",description:"The Multilingual European Subset No. 1. Latin. Covers ~44 languages."},{name:"U+20-2FF, U+370-4FF, U+1E00-20CF, U+2100-23FF, U+2500-26FF, U+FB00-FB4F, U+FFF0-FFFD",description:"The Multilingual European Subset No. 2. Latin, Greek, and Cyrillic. Covers ~128 language."},{name:"U+20-4FF, U+530-58F, U+10D0-10FF, U+1E00-23FF, U+2440-245F, U+2500-26FF, U+FB00-FB4F, U+FE20-FE2F, U+FFF0-FFFD",description:"The Multilingual European Subset No. 3. Covers all characters belonging to European scripts."},{name:"U+00-7F",description:"Basic Latin (ASCII)."},{name:"U+80-FF",description:"Latin-1 Supplement. Accented characters for Western European languages, common punctuation characters, multiplication and division signs."},{name:"U+100-17F",description:"Latin Extended-A. Accented characters for for Czech, Dutch, Polish, and Turkish."},{name:"U+180-24F",description:"Latin Extended-B. Croatian, Slovenian, Romanian, Non-European and historic latin, Khoisan, Pinyin, Livonian, Sinology."},{name:"U+1E00-1EFF",description:"Latin Extended Additional. Vietnamese, German captial sharp s, Medievalist, Latin general use."},{name:"U+250-2AF",description:"International Phonetic Alphabet Extensions."},{name:"U+370-3FF",description:"Greek and Coptic."},{name:"U+1F00-1FFF",description:"Greek Extended. Accented characters for polytonic Greek."},{name:"U+400-4FF",description:"Cyrillic."},{name:"U+500-52F",description:"Cyrillic Supplement. Extra letters for Komi, Khanty, Chukchi, Mordvin, Kurdish, Aleut, Chuvash, Abkhaz, Azerbaijani, and Orok."},{name:"U+00-52F, U+1E00-1FFF, U+2200-22FF",description:"Latin, Greek, Cyrillic, some punctuation and symbols."},{name:"U+530-58F",description:"Armenian."},{name:"U+590-5FF",description:"Hebrew."},{name:"U+600-6FF",description:"Arabic."},{name:"U+750-77F",description:"Arabic Supplement. Additional letters for African languages, Khowar, Torwali, Burushaski, and early Persian."},{name:"U+8A0-8FF",description:"Arabic Extended-A. Additional letters for African languages, European and Central Asian languages, Rohingya, Tamazight, Arwi, and Koranic annotation signs."},{name:"U+700-74F",description:"Syriac."},{name:"U+900-97F",description:"Devanagari."},{name:"U+980-9FF",description:"Bengali."},{name:"U+A00-A7F",description:"Gurmukhi."},{name:"U+A80-AFF",description:"Gujarati."},{name:"U+B00-B7F",description:"Oriya."},{name:"U+B80-BFF",description:"Tamil."},{name:"U+C00-C7F",description:"Telugu."},{name:"U+C80-CFF",description:"Kannada."},{name:"U+D00-D7F",description:"Malayalam."},{name:"U+D80-DFF",description:"Sinhala."},{name:"U+118A0-118FF",description:"Warang Citi."},{name:"U+E00-E7F",description:"Thai."},{name:"U+1A20-1AAF",description:"Tai Tham."},{name:"U+AA80-AADF",description:"Tai Viet."},{name:"U+E80-EFF",description:"Lao."},{name:"U+F00-FFF",description:"Tibetan."},{name:"U+1000-109F",description:"Myanmar (Burmese)."},{name:"U+10A0-10FF",description:"Georgian."},{name:"U+1200-137F",description:"Ethiopic."},{name:"U+1380-139F",description:"Ethiopic Supplement. Extra Syllables for Sebatbeit, and Tonal marks"},{name:"U+2D80-2DDF",description:"Ethiopic Extended. Extra Syllables for Me'en, Blin, and Sebatbeit."},{name:"U+AB00-AB2F",description:"Ethiopic Extended-A. Extra characters for Gamo-Gofa-Dawro, Basketo, and Gumuz."},{name:"U+1780-17FF",description:"Khmer."},{name:"U+1800-18AF",description:"Mongolian."},{name:"U+1B80-1BBF",description:"Sundanese."},{name:"U+1CC0-1CCF",description:"Sundanese Supplement. Punctuation."},{name:"U+4E00-9FD5",description:"CJK (Chinese, Japanese, Korean) Unified Ideographs. Most common ideographs for modern Chinese and Japanese."},{name:"U+3400-4DB5",description:"CJK Unified Ideographs Extension A. Rare ideographs."},{name:"U+2F00-2FDF",description:"Kangxi Radicals."},{name:"U+2E80-2EFF",description:"CJK Radicals Supplement. Alternative forms of Kangxi Radicals."},{name:"U+1100-11FF",description:"Hangul Jamo."},{name:"U+AC00-D7AF",description:"Hangul Syllables."},{name:"U+3040-309F",description:"Hiragana."},{name:"U+30A0-30FF",description:"Katakana."},{name:"U+A5, U+4E00-9FFF, U+30??, U+FF00-FF9F",description:"Japanese Kanji, Hiragana and Katakana characters plus Yen/Yuan symbol."},{name:"U+A4D0-A4FF",description:"Lisu."},{name:"U+A000-A48F",description:"Yi Syllables."},{name:"U+A490-A4CF",description:"Yi Radicals."},{name:"U+2000-206F",description:"General Punctuation."},{name:"U+3000-303F",description:"CJK Symbols and Punctuation."},{name:"U+2070-209F",description:"Superscripts and Subscripts."},{name:"U+20A0-20CF",description:"Currency Symbols."},{name:"U+2100-214F",description:"Letterlike Symbols."},{name:"U+2150-218F",description:"Number Forms."},{name:"U+2190-21FF",description:"Arrows."},{name:"U+2200-22FF",description:"Mathematical Operators."},{name:"U+2300-23FF",description:"Miscellaneous Technical."},{name:"U+E000-F8FF",description:"Private Use Area."},{name:"U+FB00-FB4F",description:"Alphabetic Presentation Forms. Ligatures for latin, Armenian, and Hebrew."},{name:"U+FB50-FDFF",description:"Arabic Presentation Forms-A. Contextual forms / ligatures for Persian, Urdu, Sindhi, Central Asian languages, etc, Arabic pedagogical symbols, word ligatures."},{name:"U+1F600-1F64F",description:"Emoji: Emoticons."},{name:"U+2600-26FF",description:"Emoji: Miscellaneous Symbols."},{name:"U+1F300-1F5FF",description:"Emoji: Miscellaneous Symbols and Pictographs."},{name:"U+1F900-1F9FF",description:"Emoji: Supplemental Symbols and Pictographs."},{name:"U+1F680-1F6FF",description:"Emoji: Transport and Map Symbols."}],atRule:"@font-face",syntax:"<unicode-range>#",relevance:72,description:"@font-face descriptor. Defines the set of Unicode codepoints that may be supported by the font face for which it is declared.",restrictions:["unicode-range"]},{name:"user-select",browsers:["E79","FF69","S3","C54","IE10","O41"],values:[{name:"all",description:"The content of the element must be selected atomically"},{name:"auto"},{name:"contain",description:"UAs must not allow a selection which is started in this element to be extended outside of this element."},{name:"none",description:"The UA must not allow selections to be started in this element."},{name:"text",description:"The element imposes no constraint on the selection."}],syntax:"auto | text | none | contain | all",relevance:82,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/user-select"}],description:"Controls the appearance of selection.",restrictions:["enum"]},{name:"vertical-align",browsers:["E12","FF1","S1","C1","IE4","O4"],values:[{name:"auto",description:"Align the dominant baseline of the parent box with the equivalent, or heuristically reconstructed, baseline of the element inline box."},{name:"baseline",description:"Align the 'alphabetic' baseline of the element with the 'alphabetic' baseline of the parent element."},{name:"bottom",description:"Align the after edge of the extended inline box with the after-edge of the line box."},{name:"middle",description:"Align the 'middle' baseline of the inline element with the middle baseline of the parent."},{name:"sub",description:"Lower the baseline of the box to the proper position for subscripts of the parent's box. (This value has no effect on the font size of the element's text.)"},{name:"super",description:"Raise the baseline of the box to the proper position for superscripts of the parent's box. (This value has no effect on the font size of the element's text.)"},{name:"text-bottom",description:"Align the bottom of the box with the after-edge of the parent element's font."},{name:"text-top",description:"Align the top of the box with the before-edge of the parent element's font."},{name:"top",description:"Align the before edge of the extended inline box with the before-edge of the line box."},{name:"-webkit-baseline-middle",browsers:["E12","FF1","S1","C1","IE4","O4"]}],syntax:"baseline | sub | super | text-top | text-bottom | middle | top | bottom | <percentage> | <length>",relevance:90,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/vertical-align"}],description:"Affects the vertical positioning of the inline boxes generated by an inline-level element inside a line box.",restrictions:["percentage","length"]},{name:"visibility",browsers:["E12","FF1","S1","C1","IE4","O4"],values:[{name:"collapse",description:"Table-specific. If used on elements other than rows, row groups, columns, or column groups, 'collapse' has the same meaning as 'hidden'."},{name:"hidden",description:"The generated box is invisible (fully transparent, nothing is drawn), but still affects layout."},{name:"visible",description:"The generated box is visible."}],syntax:"visible | hidden | collapse",relevance:87,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/visibility"}],description:"Specifies whether the boxes generated by an element are rendered. Invisible boxes still affect layout (set the 'display' property to 'none' to suppress box generation altogether).",restrictions:["enum"]},{name:"-webkit-animation",browsers:["C","S5"],values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"backwards",description:"The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."},{name:"both",description:"Both forwards and backwards fill modes are applied."},{name:"forwards",description:"The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."},{name:"infinite",description:"Causes the animation to repeat forever."},{name:"none",description:"No animation is performed"},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],relevance:50,description:"Shorthand property combines six of the animation properties into a single property.",restrictions:["time","enum","timing-function","identifier","number"]},{name:"-webkit-animation-delay",browsers:["C","S5"],relevance:50,description:"Defines when the animation will start.",restrictions:["time"]},{name:"-webkit-animation-direction",browsers:["C","S5"],values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],relevance:50,description:"Defines whether or not the animation should play in reverse on alternate cycles.",restrictions:["enum"]},{name:"-webkit-animation-duration",browsers:["C","S5"],relevance:50,description:"Defines the length of time that an animation takes to complete one cycle.",restrictions:["time"]},{name:"-webkit-animation-fill-mode",browsers:["C","S5"],values:[{name:"backwards",description:"The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."},{name:"both",description:"Both forwards and backwards fill modes are applied."},{name:"forwards",description:"The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."},{name:"none",description:"There is no change to the property value between the time the animation is applied and the time the animation begins playing or after the animation completes."}],relevance:50,description:"Defines what values are applied by the animation outside the time it is executing.",restrictions:["enum"]},{name:"-webkit-animation-iteration-count",browsers:["C","S5"],values:[{name:"infinite",description:"Causes the animation to repeat forever."}],relevance:50,description:"Defines the number of times an animation cycle is played. The default value is one, meaning the animation will play from beginning to end once.",restrictions:["number","enum"]},{name:"-webkit-animation-name",browsers:["C","S5"],values:[{name:"none",description:"No animation is performed"}],relevance:50,description:"Defines a list of animations that apply. Each name is used to select the keyframe at-rule that provides the property values for the animation.",restrictions:["identifier","enum"]},{name:"-webkit-animation-play-state",browsers:["C","S5"],values:[{name:"paused",description:"A running animation will be paused."},{name:"running",description:"Resume playback of a paused animation."}],relevance:50,description:"Defines whether the animation is running or paused.",restrictions:["enum"]},{name:"-webkit-animation-timing-function",browsers:["C","S5"],relevance:50,description:"Describes how the animation will progress over one cycle of its duration. See the 'transition-timing-function'.",restrictions:["timing-function"]},{name:"-webkit-appearance",browsers:["C","S3"],values:[{name:"button"},{name:"button-bevel"},{name:"caps-lock-indicator"},{name:"caret"},{name:"checkbox"},{name:"default-button"},{name:"listbox"},{name:"listitem"},{name:"media-fullscreen-button"},{name:"media-mute-button"},{name:"media-play-button"},{name:"media-seek-back-button"},{name:"media-seek-forward-button"},{name:"media-slider"},{name:"media-sliderthumb"},{name:"menulist"},{name:"menulist-button"},{name:"menulist-text"},{name:"menulist-textfield"},{name:"none"},{name:"push-button"},{name:"radio"},{name:"scrollbarbutton-down"},{name:"scrollbarbutton-left"},{name:"scrollbarbutton-right"},{name:"scrollbarbutton-up"},{name:"scrollbargripper-horizontal"},{name:"scrollbargripper-vertical"},{name:"scrollbarthumb-horizontal"},{name:"scrollbarthumb-vertical"},{name:"scrollbartrack-horizontal"},{name:"scrollbartrack-vertical"},{name:"searchfield"},{name:"searchfield-cancel-button"},{name:"searchfield-decoration"},{name:"searchfield-results-button"},{name:"searchfield-results-decoration"},{name:"slider-horizontal"},{name:"sliderthumb-horizontal"},{name:"sliderthumb-vertical"},{name:"slider-vertical"},{name:"square-button"},{name:"textarea"},{name:"textfield"}],status:"nonstandard",syntax:"none | button | button-bevel | caret | checkbox | default-button | inner-spin-button | listbox | listitem | media-controls-background | media-controls-fullscreen-background | media-current-time-display | media-enter-fullscreen-button | media-exit-fullscreen-button | media-fullscreen-button | media-mute-button | media-overlay-play-button | media-play-button | media-seek-back-button | media-seek-forward-button | media-slider | media-sliderthumb | media-time-remaining-display | media-toggle-closed-captions-button | media-volume-slider | media-volume-slider-container | media-volume-sliderthumb | menulist | menulist-button | menulist-text | menulist-textfield | meter | progress-bar | progress-bar-value | push-button | radio | searchfield | searchfield-cancel-button | searchfield-decoration | searchfield-results-button | searchfield-results-decoration | slider-horizontal | slider-vertical | sliderthumb-horizontal | sliderthumb-vertical | square-button | textarea | textfield | -apple-pay-button",relevance:0,description:"Changes the appearance of buttons and other controls to resemble native controls.",restrictions:["enum"]},{name:"-webkit-backdrop-filter",browsers:["S9"],values:[{name:"none",description:"No filter effects are applied."},{name:"blur()",description:"Applies a Gaussian blur to the input image."},{name:"brightness()",description:"Applies a linear multiplier to input image, making it appear more or less bright."},{name:"contrast()",description:"Adjusts the contrast of the input."},{name:"drop-shadow()",description:"Applies a drop shadow effect to the input image."},{name:"grayscale()",description:"Converts the input image to grayscale."},{name:"hue-rotate()",description:"Applies a hue rotation on the input image. "},{name:"invert()",description:"Inverts the samples in the input image."},{name:"opacity()",description:"Applies transparency to the samples in the input image."},{name:"saturate()",description:"Saturates the input image."},{name:"sepia()",description:"Converts the input image to sepia."},{name:"url()",description:"A filter reference to a <filter> element."}],relevance:50,description:"Applies a filter effect where the first filter in the list takes the element's background image as the input image.",restrictions:["enum","url"]},{name:"-webkit-backface-visibility",browsers:["C","S5"],values:[{name:"hidden"},{name:"visible"}],relevance:50,description:"Determines whether or not the 'back' side of a transformed element is visible when facing the viewer. With an identity transform, the front side of an element faces the viewer.",restrictions:["enum"]},{name:"-webkit-background-clip",browsers:["C","S3"],relevance:50,description:"Determines the background painting area.",restrictions:["box"]},{name:"-webkit-background-composite",browsers:["C","S3"],values:[{name:"border"},{name:"padding"}],relevance:50,restrictions:["enum"]},{name:"-webkit-background-origin",browsers:["C","S3"],relevance:50,description:"For elements rendered as a single box, specifies the background positioning area. For elements rendered as multiple boxes (e.g., inline boxes on several lines, boxes on several pages) specifies which boxes 'box-decoration-break' operates on to determine the background positioning area(s).",restrictions:["box"]},{name:"-webkit-border-image",browsers:["C","S5"],values:[{name:"auto",description:"If 'auto' is specified then the border image width is the intrinsic width or height (whichever is applicable) of the corresponding image slice. If the image does not have the required intrinsic dimension then the corresponding border-width is used instead."},{name:"fill",description:"Causes the middle part of the border-image to be preserved."},{name:"none"},{name:"repeat",description:"The image is tiled (repeated) to fill the area."},{name:"round",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the image is rescaled so that it does."},{name:"space",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the extra space is distributed around the tiles."},{name:"stretch",description:"The image is stretched to fill the area."},{name:"url()"}],relevance:50,description:"Shorthand property for setting 'border-image-source', 'border-image-slice', 'border-image-width', 'border-image-outset' and 'border-image-repeat'. Omitted values are set to their initial values.",restrictions:["length","percentage","number","url","enum"]},{name:"-webkit-box-align",browsers:["C","S3"],values:[{name:"baseline",description:"If this box orientation is inline-axis or horizontal, all children are placed with their baselines aligned, and extra space placed before or after as necessary. For block flows, the baseline of the first non-empty line box located within the element is used. For tables, the baseline of the first cell is used."},{name:"center",description:"Any extra space is divided evenly, with half placed above the child and the other half placed after the child."},{name:"end",description:"For normal direction boxes, the bottom edge of each child is placed along the bottom of the box. Extra space is placed above the element. For reverse direction boxes, the top edge of each child is placed along the top of the box. Extra space is placed below the element."},{name:"start",description:"For normal direction boxes, the top edge of each child is placed along the top of the box. Extra space is placed below the element. For reverse direction boxes, the bottom edge of each child is placed along the bottom of the box. Extra space is placed above the element."},{name:"stretch",description:"The height of each child is adjusted to that of the containing block."}],relevance:50,description:"Specifies the alignment of nested elements within an outer flexible box element.",restrictions:["enum"]},{name:"-webkit-box-direction",browsers:["C","S3"],values:[{name:"normal",description:"A box with a computed value of horizontal for box-orient displays its children from left to right. A box with a computed value of vertical displays its children from top to bottom."},{name:"reverse",description:"A box with a computed value of horizontal for box-orient displays its children from right to left. A box with a computed value of vertical displays its children from bottom to top."}],relevance:50,description:"In webkit applications, -webkit-box-direction specifies whether a box lays out its contents normally (from the top or left edge), or in reverse (from the bottom or right edge).",restrictions:["enum"]},{name:"-webkit-box-flex",browsers:["C","S3"],relevance:50,description:"Specifies an element's flexibility.",restrictions:["number"]},{name:"-webkit-box-flex-group",browsers:["C","S3"],relevance:50,description:"Flexible elements can be assigned to flex groups using the 'box-flex-group' property.",restrictions:["integer"]},{name:"-webkit-box-ordinal-group",browsers:["C","S3"],relevance:50,description:"Indicates the ordinal group the element belongs to. Elements with a lower ordinal group are displayed before those with a higher ordinal group.",restrictions:["integer"]},{name:"-webkit-box-orient",browsers:["C","S3"],values:[{name:"block-axis",description:"Elements are oriented along the box's axis."},{name:"horizontal",description:"The box displays its children from left to right in a horizontal line."},{name:"inline-axis",description:"Elements are oriented vertically."},{name:"vertical",description:"The box displays its children from stacked from top to bottom vertically."}],relevance:50,description:"In webkit applications, -webkit-box-orient specifies whether a box lays out its contents horizontally or vertically.",restrictions:["enum"]},{name:"-webkit-box-pack",browsers:["C","S3"],values:[{name:"center",description:"The extra space is divided evenly, with half placed before the first child and the other half placed after the last child."},{name:"end",description:"For normal direction boxes, the right edge of the last child is placed at the right side, with all extra space placed before the first child. For reverse direction boxes, the left edge of the first child is placed at the left side, with all extra space placed after the last child."},{name:"justify",description:"The space is divided evenly in-between each child, with none of the extra space placed before the first child or after the last child. If there is only one child, treat the pack value as if it were start."},{name:"start",description:"For normal direction boxes, the left edge of the first child is placed at the left side, with all extra space placed after the last child. For reverse direction boxes, the right edge of the last child is placed at the right side, with all extra space placed before the first child."}],relevance:50,description:"Specifies alignment of child elements within the current element in the direction of orientation.",restrictions:["enum"]},{name:"-webkit-box-reflect",browsers:["E79","S4","C4","O15"],values:[{name:"above",description:"The reflection appears above the border box."},{name:"below",description:"The reflection appears below the border box."},{name:"left",description:"The reflection appears to the left of the border box."},{name:"right",description:"The reflection appears to the right of the border box."}],status:"nonstandard",syntax:"[ above | below | right | left ]? <length>? <image>?",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-box-reflect"}],description:"Defines a reflection of a border box."},{name:"-webkit-box-sizing",browsers:["C","S3"],values:[{name:"border-box",description:"The specified width and height (and respective min/max properties) on this element determine the border box of the element."},{name:"content-box",description:"Behavior of width and height as specified by CSS2.1. The specified width and height (and respective min/max properties) apply to the width and height respectively of the content box of the element."}],relevance:50,description:"Box Model addition in CSS3.",restrictions:["enum"]},{name:"-webkit-break-after",browsers:["S7"],values:[{name:"always",description:"Always force a page break before/after the generated box."},{name:"auto",description:"Neither force nor forbid a page/column break before/after the generated box."},{name:"avoid",description:"Avoid a page/column break before/after the generated box."},{name:"avoid-column",description:"Avoid a column break before/after the generated box."},{name:"avoid-page",description:"Avoid a page break before/after the generated box."},{name:"avoid-region"},{name:"column",description:"Always force a column break before/after the generated box."},{name:"left",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a left page."},{name:"page",description:"Always force a page break before/after the generated box."},{name:"region"},{name:"right",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a right page."}],relevance:50,description:"Describes the page/column break behavior before the generated box.",restrictions:["enum"]},{name:"-webkit-break-before",browsers:["S7"],values:[{name:"always",description:"Always force a page break before/after the generated box."},{name:"auto",description:"Neither force nor forbid a page/column break before/after the generated box."},{name:"avoid",description:"Avoid a page/column break before/after the generated box."},{name:"avoid-column",description:"Avoid a column break before/after the generated box."},{name:"avoid-page",description:"Avoid a page break before/after the generated box."},{name:"avoid-region"},{name:"column",description:"Always force a column break before/after the generated box."},{name:"left",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a left page."},{name:"page",description:"Always force a page break before/after the generated box."},{name:"region"},{name:"right",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a right page."}],relevance:50,description:"Describes the page/column break behavior before the generated box.",restrictions:["enum"]},{name:"-webkit-break-inside",browsers:["S7"],values:[{name:"auto",description:"Neither force nor forbid a page/column break inside the generated box."},{name:"avoid",description:"Avoid a page/column break inside the generated box."},{name:"avoid-column",description:"Avoid a column break inside the generated box."},{name:"avoid-page",description:"Avoid a page break inside the generated box."},{name:"avoid-region"}],relevance:50,description:"Describes the page/column break behavior inside the generated box.",restrictions:["enum"]},{name:"-webkit-column-break-after",browsers:["E80","S13.1","C80","O67"],values:[{name:"always",description:"Always force a page break before/after the generated box."},{name:"auto",description:"Neither force nor forbid a page/column break before/after the generated box."},{name:"avoid",description:"Avoid a page/column break before/after the generated box."},{name:"avoid-column",description:"Avoid a column break before/after the generated box."},{name:"avoid-page",description:"Avoid a page break before/after the generated box."},{name:"avoid-region"},{name:"column",description:"Always force a column break before/after the generated box."},{name:"left",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a left page."},{name:"page",description:"Always force a page break before/after the generated box."},{name:"region"},{name:"right",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a right page."}],relevance:50,description:"Describes the page/column break behavior before the generated box.",restrictions:["enum"]},{name:"-webkit-column-break-before",browsers:["E80","S13.1","C80","O67"],values:[{name:"always",description:"Always force a page break before/after the generated box."},{name:"auto",description:"Neither force nor forbid a page/column break before/after the generated box."},{name:"avoid",description:"Avoid a page/column break before/after the generated box."},{name:"avoid-column",description:"Avoid a column break before/after the generated box."},{name:"avoid-page",description:"Avoid a page break before/after the generated box."},{name:"avoid-region"},{name:"column",description:"Always force a column break before/after the generated box."},{name:"left",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a left page."},{name:"page",description:"Always force a page break before/after the generated box."},{name:"region"},{name:"right",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a right page."}],relevance:50,description:"Describes the page/column break behavior before the generated box.",restrictions:["enum"]},{name:"-webkit-column-break-inside",browsers:["E80","S13.1","C80","O67"],values:[{name:"auto",description:"Neither force nor forbid a page/column break inside the generated box."},{name:"avoid",description:"Avoid a page/column break inside the generated box."},{name:"avoid-column",description:"Avoid a column break inside the generated box."},{name:"avoid-page",description:"Avoid a page break inside the generated box."},{name:"avoid-region"}],relevance:50,description:"Describes the page/column break behavior inside the generated box.",restrictions:["enum"]},{name:"-webkit-column-count",browsers:["C","S3"],values:[{name:"auto",description:"Determines the number of columns by the 'column-width' property and the element width."}],relevance:50,description:"Describes the optimal number of columns into which the content of the element will be flowed.",restrictions:["integer"]},{name:"-webkit-column-gap",browsers:["C","S3"],values:[{name:"normal",description:"User agent specific and typically equivalent to 1em."}],relevance:50,description:"Sets the gap between columns. If there is a column rule between columns, it will appear in the middle of the gap.",restrictions:["length"]},{name:"-webkit-column-rule",browsers:["C","S3"],relevance:50,description:"This property is a shorthand for setting 'column-rule-width', 'column-rule-style', and 'column-rule-color' at the same place in the style sheet. Omitted values are set to their initial values.",restrictions:["length","line-width","line-style","color"]},{name:"-webkit-column-rule-color",browsers:["C","S3"],relevance:50,description:"Sets the color of the column rule",restrictions:["color"]},{name:"-webkit-column-rule-style",browsers:["C","S3"],relevance:50,description:"Sets the style of the rule between columns of an element.",restrictions:["line-style"]},{name:"-webkit-column-rule-width",browsers:["C","S3"],relevance:50,description:"Sets the width of the rule between columns. Negative values are not allowed.",restrictions:["length","line-width"]},{name:"-webkit-columns",browsers:["C","S3"],values:[{name:"auto",description:"The width depends on the values of other properties."}],relevance:50,description:"A shorthand property which sets both 'column-width' and 'column-count'.",restrictions:["length","integer"]},{name:"-webkit-column-span",browsers:["C","S3"],values:[{name:"all",description:"The element spans across all columns. Content in the normal flow that appears before the element is automatically balanced across all columns before the element appear."},{name:"none",description:"The element does not span multiple columns."}],relevance:50,description:"Describes the page/column break behavior after the generated box.",restrictions:["enum"]},{name:"-webkit-column-width",browsers:["C","S3"],values:[{name:"auto",description:"The width depends on the values of other properties."}],relevance:50,description:"This property describes the width of columns in multicol elements.",restrictions:["length"]},{name:"-webkit-filter",browsers:["C18","O15","S6"],values:[{name:"none",description:"No filter effects are applied."},{name:"blur()",description:"Applies a Gaussian blur to the input image."},{name:"brightness()",description:"Applies a linear multiplier to input image, making it appear more or less bright."},{name:"contrast()",description:"Adjusts the contrast of the input."},{name:"drop-shadow()",description:"Applies a drop shadow effect to the input image."},{name:"grayscale()",description:"Converts the input image to grayscale."},{name:"hue-rotate()",description:"Applies a hue rotation on the input image. "},{name:"invert()",description:"Inverts the samples in the input image."},{name:"opacity()",description:"Applies transparency to the samples in the input image."},{name:"saturate()",description:"Saturates the input image."},{name:"sepia()",description:"Converts the input image to sepia."},{name:"url()",description:"A filter reference to a <filter> element."}],relevance:50,description:"Processes an element's rendering before it is displayed in the document, by applying one or more filter effects.",restrictions:["enum","url"]},{name:"-webkit-flow-from",browsers:["S6.1"],values:[{name:"none",description:"The block container is not a CSS Region."}],relevance:50,description:"Makes a block container a region and associates it with a named flow.",restrictions:["identifier"]},{name:"-webkit-flow-into",browsers:["S6.1"],values:[{name:"none",description:"The element is not moved to a named flow and normal CSS processing takes place."}],relevance:50,description:"Places an element or its contents into a named flow.",restrictions:["identifier"]},{name:"-webkit-font-feature-settings",browsers:["C16"],values:[{name:'"c2cs"'},{name:'"dlig"'},{name:'"kern"'},{name:'"liga"'},{name:'"lnum"'},{name:'"onum"'},{name:'"smcp"'},{name:'"swsh"'},{name:'"tnum"'},{name:"normal",description:"No change in glyph substitution or positioning occurs."},{name:"off"},{name:"on"}],relevance:50,description:"This property provides low-level control over OpenType font features. It is intended as a way of providing access to font features that are not widely used but are needed for a particular use case.",restrictions:["string","integer"]},{name:"-webkit-hyphens",browsers:["S5.1"],values:[{name:"auto",description:"Conditional hyphenation characters inside a word, if present, take priority over automatic resources when determining hyphenation points within the word."},{name:"manual",description:"Words are only broken at line breaks where there are characters inside the word that suggest line break opportunities"},{name:"none",description:"Words are not broken at line breaks, even if characters inside the word suggest line break points."}],relevance:50,description:"Controls whether hyphenation is allowed to create more break opportunities within a line of text.",restrictions:["enum"]},{name:"-webkit-line-break",browsers:["C","S3"],values:[{name:"after-white-space"},{name:"normal"}],relevance:50,description:"Specifies line-breaking rules for CJK (Chinese, Japanese, and Korean) text."},{name:"-webkit-margin-bottom-collapse",browsers:["C","S3"],values:[{name:"collapse"},{name:"discard"},{name:"separate"}],relevance:50,restrictions:["enum"]},{name:"-webkit-margin-collapse",browsers:["C","S3"],values:[{name:"collapse"},{name:"discard"},{name:"separate"}],relevance:50,restrictions:["enum"]},{name:"-webkit-margin-start",browsers:["C","S3"],values:[{name:"auto"}],relevance:50,restrictions:["percentage","length"]},{name:"-webkit-margin-top-collapse",browsers:["C","S3"],values:[{name:"collapse"},{name:"discard"},{name:"separate"}],relevance:50,restrictions:["enum"]},{name:"-webkit-mask-clip",browsers:["C","O15","S4"],status:"nonstandard",syntax:"[ <box> | border | padding | content | text ]#",relevance:0,description:"Determines the mask painting area, which determines the area that is affected by the mask.",restrictions:["box"]},{name:"-webkit-mask-image",browsers:["C","O15","S4"],values:[{name:"none",description:"Counts as a transparent black image layer."},{name:"url()",description:"Reference to a <mask element or to a CSS image."}],status:"nonstandard",syntax:"<mask-reference>#",relevance:0,description:"Sets the mask layer image of an element.",restrictions:["url","image","enum"]},{name:"-webkit-mask-origin",browsers:["C","O15","S4"],status:"nonstandard",syntax:"[ <box> | border | padding | content ]#",relevance:0,description:"Specifies the mask positioning area.",restrictions:["box"]},{name:"-webkit-mask-repeat",browsers:["C","O15","S4"],status:"nonstandard",syntax:"<repeat-style>#",relevance:0,description:"Specifies how mask layer images are tiled after they have been sized and positioned.",restrictions:["repeat"]},{name:"-webkit-mask-size",browsers:["C","O15","S4"],values:[{name:"auto",description:"Resolved by using the image's intrinsic ratio and the size of the other dimension, or failing that, using the image's intrinsic size, or failing that, treating it as 100%."},{name:"contain",description:"Scale the image, while preserving its intrinsic aspect ratio (if any), to the largest size such that both its width and its height can fit inside the background positioning area."},{name:"cover",description:"Scale the image, while preserving its intrinsic aspect ratio (if any), to the smallest size such that both its width and its height can completely cover the background positioning area."}],status:"nonstandard",syntax:"<bg-size>#",relevance:0,description:"Specifies the size of the mask layer images.",restrictions:["length","percentage","enum"]},{name:"-webkit-nbsp-mode",browsers:["S13.1"],values:[{name:"normal"},{name:"space"}],relevance:50,description:"Defines the behavior of nonbreaking spaces within text."},{name:"-webkit-overflow-scrolling",browsers:["C","S5"],values:[{name:"auto"},{name:"touch"}],status:"nonstandard",syntax:"auto | touch",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-overflow-scrolling"}],description:"Specifies whether to use native-style scrolling in an overflow:scroll element."},{name:"-webkit-padding-start",browsers:["C","S3"],relevance:50,restrictions:["percentage","length"]},{name:"-webkit-perspective",browsers:["C","S4"],values:[{name:"none",description:"No perspective transform is applied."}],relevance:50,description:"Applies the same transform as the perspective(<number>) transform function, except that it applies only to the positioned or transformed children of the element, not to the transform on the element itself.",restrictions:["length"]},{name:"-webkit-perspective-origin",browsers:["C","S4"],relevance:50,description:"Establishes the origin for the perspective property. It effectively sets the X and Y position at which the viewer appears to be looking at the children of the element.",restrictions:["position","percentage","length"]},{name:"-webkit-region-fragment",browsers:["S7"],values:[{name:"auto",description:"Content flows as it would in a regular content box."},{name:"break",description:"If the content fits within the CSS Region, then this property has no effect."}],relevance:50,description:"The 'region-fragment' property controls the behavior of the last region associated with a named flow.",restrictions:["enum"]},{name:"-webkit-tap-highlight-color",browsers:["E12","C16","O15"],status:"nonstandard",syntax:"<color>",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-tap-highlight-color"}],restrictions:["color"]},{name:"-webkit-text-fill-color",browsers:["E12","FF49","S3","C1","O15"],syntax:"<color>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-text-fill-color"}],restrictions:["color"]},{name:"-webkit-text-size-adjust",browsers:["E","C","S3"],values:[{name:"auto",description:"Renderers must use the default size adjustment when displaying on a small device."},{name:"none",description:"Renderers must not do size adjustment when displaying on a small device."}],relevance:50,description:"Specifies a size adjustment for displaying text content in mobile browsers.",restrictions:["percentage"]},{name:"-webkit-text-stroke",browsers:["E15","FF49","S3","C4","O15"],syntax:"<length> || <color>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke"}],restrictions:["length","line-width","color","percentage"]},{name:"-webkit-text-stroke-color",browsers:["E15","FF49","S3","C1","O15"],syntax:"<color>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-color"}],restrictions:["color"]},{name:"-webkit-text-stroke-width",browsers:["E15","FF49","S3","C1","O15"],syntax:"<length>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-width"}],restrictions:["length","line-width","percentage"]},{name:"-webkit-touch-callout",browsers:["S3"],values:[{name:"none"}],status:"nonstandard",syntax:"default | none",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-touch-callout"}],restrictions:["enum"]},{name:"-webkit-transform",browsers:["C","O12","S3.1"],values:[{name:"matrix()",description:"Specifies a 2D transformation in the form of a transformation matrix of six values. matrix(a,b,c,d,e,f) is equivalent to applying the transformation matrix [a b c d e f]"},{name:"matrix3d()",description:"Specifies a 3D transformation as a 4x4 homogeneous matrix of 16 values in column-major order."},{name:"none"},{name:"perspective()",description:"Specifies a perspective projection matrix."},{name:"rotate()",description:"Specifies a 2D rotation by the angle specified in the parameter about the origin of the element, as defined by the transform-origin property."},{name:"rotate3d()",description:"Specifies a clockwise 3D rotation by the angle specified in last parameter about the [x,y,z] direction vector described by the first 3 parameters."},{name:"rotateX('angle')",description:"Specifies a clockwise rotation by the given angle about the X axis."},{name:"rotateY('angle')",description:"Specifies a clockwise rotation by the given angle about the Y axis."},{name:"rotateZ('angle')",description:"Specifies a clockwise rotation by the given angle about the Z axis."},{name:"scale()",description:"Specifies a 2D scale operation by the [sx,sy] scaling vector described by the 2 parameters. If the second parameter is not provided, it is takes a value equal to the first."},{name:"scale3d()",description:"Specifies a 3D scale operation by the [sx,sy,sz] scaling vector described by the 3 parameters."},{name:"scaleX()",description:"Specifies a scale operation using the [sx,1] scaling vector, where sx is given as the parameter."},{name:"scaleY()",description:"Specifies a scale operation using the [sy,1] scaling vector, where sy is given as the parameter."},{name:"scaleZ()",description:"Specifies a scale operation using the [1,1,sz] scaling vector, where sz is given as the parameter."},{name:"skew()",description:"Specifies a skew transformation along the X and Y axes. The first angle parameter specifies the skew on the X axis. The second angle parameter specifies the skew on the Y axis. If the second parameter is not given then a value of 0 is used for the Y angle (ie: no skew on the Y axis)."},{name:"skewX()",description:"Specifies a skew transformation along the X axis by the given angle."},{name:"skewY()",description:"Specifies a skew transformation along the Y axis by the given angle."},{name:"translate()",description:"Specifies a 2D translation by the vector [tx, ty], where tx is the first translation-value parameter and ty is the optional second translation-value parameter."},{name:"translate3d()",description:"Specifies a 3D translation by the vector [tx,ty,tz], with tx, ty and tz being the first, second and third translation-value parameters respectively."},{name:"translateX()",description:"Specifies a translation by the given amount in the X direction."},{name:"translateY()",description:"Specifies a translation by the given amount in the Y direction."},{name:"translateZ()",description:"Specifies a translation by the given amount in the Z direction. Note that percentage values are not allowed in the translateZ translation-value, and if present are evaluated as 0."}],relevance:50,description:"A two-dimensional transformation is applied to an element through the 'transform' property. This property contains a list of transform functions similar to those allowed by SVG.",restrictions:["enum"]},{name:"-webkit-transform-origin",browsers:["C","O15","S3.1"],relevance:50,description:"Establishes the origin of transformation for an element.",restrictions:["position","length","percentage"]},{name:"-webkit-transform-origin-x",browsers:["E80","S13.1","C80","O67"],relevance:50,description:"The x coordinate of the origin for transforms applied to an element with respect to its border box.",restrictions:["length","percentage"]},{name:"-webkit-transform-origin-y",browsers:["E80","S13.1","C80","O67"],relevance:50,description:"The y coordinate of the origin for transforms applied to an element with respect to its border box.",restrictions:["length","percentage"]},{name:"-webkit-transform-origin-z",browsers:["E80","S13.1","C80","O67"],relevance:50,description:"The z coordinate of the origin for transforms applied to an element with respect to its border box.",restrictions:["length","percentage"]},{name:"-webkit-transform-style",browsers:["C","S4"],values:[{name:"flat",description:"All children of this element are rendered flattened into the 2D plane of the element."}],relevance:50,description:"Defines how nested elements are rendered in 3D space.",restrictions:["enum"]},{name:"-webkit-transition",browsers:["C","O12","S5"],values:[{name:"all",description:"Every property that is able to undergo a transition will do so."},{name:"none",description:"No property will transition."}],relevance:50,description:"Shorthand property combines four of the transition properties into a single property.",restrictions:["time","property","timing-function","enum"]},{name:"-webkit-transition-delay",browsers:["C","O12","S5"],relevance:50,description:"Defines when the transition will start. It allows a transition to begin execution some period of time from when it is applied.",restrictions:["time"]},{name:"-webkit-transition-duration",browsers:["C","O12","S5"],relevance:50,description:"Specifies how long the transition from the old value to the new value should take.",restrictions:["time"]},{name:"-webkit-transition-property",browsers:["C","O12","S5"],values:[{name:"all",description:"Every property that is able to undergo a transition will do so."},{name:"none",description:"No property will transition."}],relevance:50,description:"Specifies the name of the CSS property to which the transition is applied.",restrictions:["property"]},{name:"-webkit-transition-timing-function",browsers:["C","O12","S5"],relevance:50,description:"Describes how the intermediate values used during a transition will be calculated.",restrictions:["timing-function"]},{name:"-webkit-user-drag",browsers:["E80","S13.1","C80","O67"],values:[{name:"auto"},{name:"element"},{name:"none"}],relevance:50,restrictions:["enum"]},{name:"-webkit-user-modify",browsers:["E80","S13.1","C80","O67"],values:[{name:"read-only"},{name:"read-write"},{name:"read-write-plaintext-only"}],syntax:"read-only | read-write | read-write-plaintext-only",relevance:50,description:"Determines whether a user can edit the content of an element.",restrictions:["enum"]},{name:"-webkit-user-select",browsers:["C","S3"],values:[{name:"auto"},{name:"none"},{name:"text"}],relevance:50,description:"Controls the appearance of selection.",restrictions:["enum"]},{name:"widows",browsers:["E12","S1.3","C25","IE8","O9.2"],syntax:"<integer>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/widows"}],description:"Specifies the minimum number of line boxes of a block container that must be left in a fragment after a break.",restrictions:["integer"]},{name:"width",browsers:["E12","FF1","S1","C1","IE4","O3.5"],values:[{name:"auto",description:"The width depends on the values of other properties."},{name:"fit-content",browsers:["E12","FF1","S1","C1","IE4","O3.5"],description:"Use the fit-content inline size or fit-content block size, as appropriate to the writing mode."},{name:"max-content",browsers:["E12","FF1","S1","C1","IE4","O3.5"],description:"Use the max-content inline size or max-content block size, as appropriate to the writing mode."},{name:"min-content",browsers:["E12","FF1","S1","C1","IE4","O3.5"],description:"Use the min-content inline size or min-content block size, as appropriate to the writing mode."}],syntax:"auto | <length> | <percentage> | min-content | max-content | fit-content | fit-content(<length-percentage>)",relevance:96,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/width"}],description:"Specifies the width of the content area, padding area or border area (depending on 'box-sizing') of certain boxes.",restrictions:["length","percentage"]},{name:"will-change",browsers:["E79","FF36","S9.1","C36","O24"],values:[{name:"auto",description:"Expresses no particular intent."},{name:"contents",description:"Indicates that the author expects to animate or change something about the element's contents in the near future."},{name:"scroll-position",description:"Indicates that the author expects to animate or change the scroll position of the element in the near future."}],syntax:"auto | <animateable-feature>#",relevance:65,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/will-change"}],description:"Provides a rendering hint to the user agent, stating what kinds of changes the author expects to perform on the element.",restrictions:["enum","identifier"]},{name:"word-break",browsers:["E12","FF15","S3","C1","IE5.5","O15"],values:[{name:"break-all",description:"Lines may break between any two grapheme clusters for non-CJK scripts."},{name:"keep-all",description:"Block characters can no longer create implied break points."},{name:"normal",description:"Breaks non-CJK scripts according to their own rules."}],syntax:"normal | break-all | keep-all | break-word",relevance:76,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/word-break"}],description:"Specifies line break opportunities for non-CJK scripts.",restrictions:["enum"]},{name:"word-spacing",browsers:["E12","FF1","S1","C1","IE6","O3.5"],values:[{name:"normal",description:"No additional spacing is applied. Computes to zero."}],syntax:"normal | <length>",relevance:57,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/word-spacing"}],description:'Specifies additional spacing between "words".',restrictions:["length","percentage"]},{name:"word-wrap",browsers:["E80","FF72","S13.1","C80","O67"],values:[{name:"break-word",description:"An otherwise unbreakable sequence of characters may be broken at an arbitrary point if there are no otherwise-acceptable break points in the line."},{name:"normal",description:"Lines may break only at allowed break points."}],syntax:"normal | break-word",relevance:77,description:"Specifies whether the UA may break within a word to prevent overflow when an otherwise-unbreakable string is too long to fit.",restrictions:["enum"]},{name:"writing-mode",browsers:["E12","FF41","S10.1","C48","IE9","O35"],values:[{name:"horizontal-tb",description:"Top-to-bottom block flow direction. The writing mode is horizontal."},{name:"sideways-lr",browsers:["E12","FF41","S10.1","C48","IE9","O35"],description:"Left-to-right block flow direction. The writing mode is vertical, while the typographic mode is horizontal."},{name:"sideways-rl",browsers:["E12","FF41","S10.1","C48","IE9","O35"],description:"Right-to-left block flow direction. The writing mode is vertical, while the typographic mode is horizontal."},{name:"vertical-lr",description:"Left-to-right block flow direction. The writing mode is vertical."},{name:"vertical-rl",description:"Right-to-left block flow direction. The writing mode is vertical."}],syntax:"horizontal-tb | vertical-rl | vertical-lr | sideways-rl | sideways-lr",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/writing-mode"}],description:"This is a shorthand property for both 'direction' and 'block-progression'.",restrictions:["enum"]},{name:"z-index",browsers:["E12","FF1","S1","C1","IE4","O4"],values:[{name:"auto",description:"The stack level of the generated box in the current stacking context is 0. The box does not establish a new stacking context unless it is the root element."}],syntax:"auto | <integer>",relevance:92,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/z-index"}],description:"For a positioned box, the 'z-index' property specifies the stack level of the box in the current stacking context and whether the box establishes a local stacking context.",restrictions:["integer"]},{name:"zoom",browsers:["E12","FFpreview","S3.1","C1","IE5.5","O15"],values:[{name:"normal"}],status:"nonstandard",syntax:"normal | reset | <number> | <percentage>",relevance:15,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/zoom"}],description:"Non-standard. Specifies the magnification scale of the object. See 'transform: scale()' for a standards-based alternative.",restrictions:["enum","integer","number","percentage"]},{name:"-ms-ime-align",status:"nonstandard",syntax:"auto | after",values:[{name:"auto"},{name:"after"}],relevance:0,description:"Aligns the Input Method Editor (IME) candidate window box relative to the element on which the IME composition is active."},{name:"-moz-binding",status:"nonstandard",syntax:"<url> | none",relevance:0,description:"The -moz-binding CSS property is used by Mozilla-based applications to attach an XBL binding to a DOM element."},{name:"-moz-context-properties",status:"nonstandard",syntax:"none | [ fill | fill-opacity | stroke | stroke-opacity ]#",relevance:0,description:"If you reference an SVG image in a webpage (such as with the <img> element or as a background image), the SVG image can coordinate with the embedding element (its context) to have the image adopt property values set on the embedding element. To do this the embedding element needs to list the properties that are to be made available to the image by listing them as values of the -moz-context-properties property, and the image needs to opt in to using those properties by using values such as the context-fill value.\n\nThis feature is available since Firefox 55, but is only currently supported with SVG images loaded via chrome:// or resource:// URLs. To experiment with the feature in SVG on the Web it is necessary to set the svg.context-properties.content.enabled pref to true."},{name:"-moz-float-edge",status:"obsolete",syntax:"border-box | content-box | margin-box | padding-box",values:[{name:"border-box"},{name:"content-box"},{name:"margin-box"},{name:"padding-box"}],relevance:0,browsers:["FF1"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-moz-float-edge"}],description:"The non-standard -moz-float-edge CSS property specifies whether the height and width properties of the element include the margin, border, or padding thickness."},{name:"-moz-force-broken-image-icon",status:"obsolete",syntax:"0 | 1",values:[{name:"0"},{name:"1"}],relevance:0,browsers:["FF1"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-moz-force-broken-image-icon"}],description:"The -moz-force-broken-image-icon extended CSS property can be used to force the broken image icon to be shown even when a broken image has an alt attribute."},{name:"-moz-image-region",status:"nonstandard",syntax:"<shape> | auto",relevance:0,browsers:["FF1"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-moz-image-region"}],description:"For certain XUL elements and pseudo-elements that use an image from the list-style-image property, this property specifies a region of the image that is used in place of the whole image. This allows elements to use different pieces of the same image to improve performance."},{name:"-moz-orient",status:"nonstandard",syntax:"inline | block | horizontal | vertical",values:[{name:"inline"},{name:"block"},{name:"horizontal"},{name:"vertical"}],relevance:0,browsers:["FF6"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-moz-orient"}],description:"The -moz-orient CSS property specifies the orientation of the element to which it's applied."},{name:"-moz-outline-radius",status:"nonstandard",syntax:"<outline-radius>{1,4} [ / <outline-radius>{1,4} ]?",relevance:0,description:"In Mozilla applications like Firefox, the -moz-outline-radius CSS property can be used to give an element's outline rounded corners."},{name:"-moz-outline-radius-bottomleft",status:"nonstandard",syntax:"<outline-radius>",relevance:0,description:"In Mozilla applications, the -moz-outline-radius-bottomleft CSS property can be used to round the bottom-left corner of an element's outline."},{name:"-moz-outline-radius-bottomright",status:"nonstandard",syntax:"<outline-radius>",relevance:0,description:"In Mozilla applications, the -moz-outline-radius-bottomright CSS property can be used to round the bottom-right corner of an element's outline."},{name:"-moz-outline-radius-topleft",status:"nonstandard",syntax:"<outline-radius>",relevance:0,description:"In Mozilla applications, the -moz-outline-radius-topleft CSS property can be used to round the top-left corner of an element's outline."},{name:"-moz-outline-radius-topright",status:"nonstandard",syntax:"<outline-radius>",relevance:0,description:"In Mozilla applications, the -moz-outline-radius-topright CSS property can be used to round the top-right corner of an element's outline."},{name:"-moz-stack-sizing",status:"nonstandard",syntax:"ignore | stretch-to-fit",values:[{name:"ignore"},{name:"stretch-to-fit"}],relevance:0,description:"-moz-stack-sizing is an extended CSS property. Normally, a stack will change its size so that all of its child elements are completely visible. For example, moving a child of the stack far to the right will widen the stack so the child remains visible."},{name:"-moz-text-blink",status:"nonstandard",syntax:"none | blink",values:[{name:"none"},{name:"blink"}],relevance:0,description:"The -moz-text-blink non-standard Mozilla CSS extension specifies the blink mode."},{name:"-moz-user-input",status:"obsolete",syntax:"auto | none | enabled | disabled",values:[{name:"auto"},{name:"none"},{name:"enabled"},{name:"disabled"}],relevance:0,browsers:["FF1"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-moz-user-input"}],description:"In Mozilla applications, -moz-user-input determines if an element will accept user input."},{name:"-moz-user-modify",status:"nonstandard",syntax:"read-only | read-write | write-only",values:[{name:"read-only"},{name:"read-write"},{name:"write-only"}],relevance:0,description:"The -moz-user-modify property has no effect. It was originally planned to determine whether or not the content of an element can be edited by a user."},{name:"-moz-window-dragging",status:"nonstandard",syntax:"drag | no-drag",values:[{name:"drag"},{name:"no-drag"}],relevance:0,description:"The -moz-window-dragging CSS property specifies whether a window is draggable or not. It only works in Chrome code, and only on Mac OS X."},{name:"-moz-window-shadow",status:"nonstandard",syntax:"default | menu | tooltip | sheet | none",values:[{name:"default"},{name:"menu"},{name:"tooltip"},{name:"sheet"},{name:"none"}],relevance:0,description:"The -moz-window-shadow CSS property specifies whether a window will have a shadow. It only works on Mac OS X."},{name:"-webkit-border-before",status:"nonstandard",syntax:"<'border-width'> || <'border-style'> || <color>",relevance:0,browsers:["E79","S5.1","C8","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-border-before"}],description:"The -webkit-border-before CSS property is a shorthand property for setting the individual logical block start border property values in a single place in the style sheet."},{name:"-webkit-border-before-color",status:"nonstandard",syntax:"<color>",relevance:0,description:"The -webkit-border-before-color CSS property sets the color of the individual logical block start border in a single place in the style sheet."},{name:"-webkit-border-before-style",status:"nonstandard",syntax:"<'border-style'>",relevance:0,description:"The -webkit-border-before-style CSS property sets the style of the individual logical block start border in a single place in the style sheet."},{name:"-webkit-border-before-width",status:"nonstandard",syntax:"<'border-width'>",relevance:0,description:"The -webkit-border-before-width CSS property sets the width of the individual logical block start border in a single place in the style sheet."},{name:"-webkit-line-clamp",syntax:"none | <integer>",relevance:50,browsers:["E17","FF68","S5","C6","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-line-clamp"}],description:"The -webkit-line-clamp CSS property allows limiting of the contents of a block container to the specified number of lines."},{name:"-webkit-mask",status:"nonstandard",syntax:"[ <mask-reference> || <position> [ / <bg-size> ]? || <repeat-style> || [ <box> | border | padding | content | text ] || [ <box> | border | padding | content ] ]#",relevance:0,description:"The mask CSS property alters the visibility of an element by either partially or fully hiding it. This is accomplished by either masking or clipping the image at specific points."},{name:"-webkit-mask-attachment",status:"nonstandard",syntax:"<attachment>#",relevance:0,browsers:["S4","C1"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-attachment"}],description:"If a -webkit-mask-image is specified, -webkit-mask-attachment determines whether the mask image's position is fixed within the viewport, or scrolls along with its containing block."},{name:"-webkit-mask-composite",status:"nonstandard",syntax:"<composite-style>#",relevance:0,browsers:["E18","S3.1","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-composite"}],description:"The -webkit-mask-composite property specifies the manner in which multiple mask images applied to the same element are composited with one another. Mask images are composited in the opposite order that they are declared with the -webkit-mask-image property."},{name:"-webkit-mask-position",status:"nonstandard",syntax:"<position>#",relevance:0,description:"The mask-position CSS property sets the initial position, relative to the mask position layer defined by mask-origin, for each defined mask image."},{name:"-webkit-mask-position-x",status:"nonstandard",syntax:"[ <length-percentage> | left | center | right ]#",relevance:0,browsers:["E18","FF49","S3.1","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-position-x"}],description:"The -webkit-mask-position-x CSS property sets the initial horizontal position of a mask image."},{name:"-webkit-mask-position-y",status:"nonstandard",syntax:"[ <length-percentage> | top | center | bottom ]#",relevance:0,browsers:["E18","FF49","S3.1","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-position-y"}],description:"The -webkit-mask-position-y CSS property sets the initial vertical position of a mask image."},{name:"-webkit-mask-repeat-x",status:"nonstandard",syntax:"repeat | no-repeat | space | round",values:[{name:"repeat"},{name:"no-repeat"},{name:"space"},{name:"round"}],relevance:0,browsers:["E79","S5","C3","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-repeat-x"}],description:"The -webkit-mask-repeat-x property specifies whether and how a mask image is repeated (tiled) horizontally."},{name:"-webkit-mask-repeat-y",status:"nonstandard",syntax:"repeat | no-repeat | space | round",values:[{name:"repeat"},{name:"no-repeat"},{name:"space"},{name:"round"}],relevance:0,browsers:["E79","S5","C3","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-repeat-y"}],description:"The -webkit-mask-repeat-y property specifies whether and how a mask image is repeated (tiled) vertically."},{name:"accent-color",syntax:"auto | <color>",relevance:50,browsers:["E93","FF92","S15.4","C93","O79"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/accent-color"}],description:"Sets the color of the elements accent"},{name:"align-tracks",status:"experimental",syntax:"[ normal | <baseline-position> | <content-distribution> | <overflow-position>? <content-position> ]#",relevance:50,browsers:["FF77"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/align-tracks"}],description:"The align-tracks CSS property sets the alignment in the masonry axis for grid containers that have masonry in their block axis."},{name:"animation-composition",syntax:"<single-animation-composition>#",relevance:50,browsers:["E112","FF115","S16","C112","O98"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-composition"}],description:"The composite operation to use when multiple animations affect the same property."},{name:"animation-range",status:"experimental",syntax:"[ <'animation-range-start'> <'animation-range-end'>? ]#",relevance:50,browsers:["E115","C115","O101"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-range"}],description:"The animation-range CSS shorthand property is used to set the start and end of an animation's attachment range along its timeline, i.e. where along the timeline an animation will start and end."},{name:"animation-range-end",status:"experimental",syntax:"[ normal | <length-percentage> | <timeline-range-name> <length-percentage>? ]#",relevance:50,browsers:["E115","C115","O101"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-range-end"}],description:"The animation-range-end CSS property is used to set the end of an animation's attachment range along its timeline, i.e. where along the timeline an animation will end."},{name:"animation-range-start",status:"experimental",syntax:"[ normal | <length-percentage> | <timeline-range-name> <length-percentage>? ]#",relevance:50,browsers:["E115","C115","O101"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-range-start"}],description:"The animation-range-start CSS property is used to set the start of an animation's attachment range along its timeline, i.e. where along the timeline an animation will start."},{name:"animation-timeline",status:"experimental",syntax:"<single-animation-timeline>#",relevance:50,browsers:["E115","FF110","C115","O101"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-timeline"}],description:"Specifies the names of one or more @scroll-timeline at-rules to describe the element's scroll animations."},{name:"appearance",syntax:"none | auto | textfield | menulist-button | <compat-auto>",relevance:69,browsers:["E84","FF80","S15.4","C84","O70"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/appearance"}],description:"Changes the appearance of buttons and other controls to resemble native controls."},{name:"aspect-ratio",syntax:"auto | <ratio>",relevance:60,browsers:["E88","FF89","S15","C88","O74"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/aspect-ratio"}],description:"The aspect-ratio CSS property sets a preferred aspect ratio for the box, which will be used in the calculation of auto sizes and some other layout functions."},{name:"azimuth",status:"obsolete",syntax:"<angle> | [ [ left-side | far-left | left | center-left | center | center-right | right | far-right | right-side ] || behind ] | leftwards | rightwards",relevance:0,description:"In combination with elevation, the azimuth CSS property enables different audio sources to be positioned spatially for aural presentation. This is important in that it provides a natural way to tell several voices apart, as each can be positioned to originate at a different location on the sound stage. Stereo output produce a lateral sound stage, while binaural headphones and multi-speaker setups allow for a fully three-dimensional stage."},{name:"backdrop-filter",syntax:"none | <filter-function-list>",relevance:58,browsers:["E17","FF103","S9","C76","O63"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/backdrop-filter"}],description:"The backdrop-filter CSS property lets you apply graphical effects such as blurring or color shifting to the area behind an element. Because it applies to everything behind the element, to see the effect you must make the element or its background at least partially transparent."},{name:"border-block",syntax:"<'border-top-width'> || <'border-top-style'> || <color>",relevance:50,browsers:["E87","FF66","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block"}],description:"The border-block CSS property is a shorthand property for setting the individual logical block border property values in a single place in the style sheet."},{name:"border-block-color",syntax:"<'border-top-color'>{1,2}",relevance:50,browsers:["E87","FF66","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-color"}],description:"The border-block-color CSS property defines the color of the logical block borders of an element, which maps to a physical border color depending on the element's writing mode, directionality, and text orientation. It corresponds to the border-top-color and border-bottom-color, or border-right-color and border-left-color property depending on the values defined for writing-mode, direction, and text-orientation."},{name:"border-block-style",syntax:"<'border-top-style'>",relevance:50,browsers:["E87","FF66","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-style"}],description:"The border-block-style CSS property defines the style of the logical block borders of an element, which maps to a physical border style depending on the element's writing mode, directionality, and text orientation. It corresponds to the border-top-style and border-bottom-style, or border-left-style and border-right-style properties depending on the values defined for writing-mode, direction, and text-orientation."},{name:"border-block-width",syntax:"<'border-top-width'>",relevance:50,browsers:["E87","FF66","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-width"}],description:"The border-block-width CSS property defines the width of the logical block borders of an element, which maps to a physical border width depending on the element's writing mode, directionality, and text orientation. It corresponds to the border-top-width and border-bottom-width, or border-left-width, and border-right-width property depending on the values defined for writing-mode, direction, and text-orientation."},{name:"border-end-end-radius",syntax:"<length-percentage>{1,2}",relevance:53,browsers:["E89","FF66","S15","C89","O75"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-end-end-radius"}],description:"The border-end-end-radius CSS property defines a logical border radius on an element, which maps to a physical border radius that depends on on the element's writing-mode, direction, and text-orientation."},{name:"border-end-start-radius",syntax:"<length-percentage>{1,2}",relevance:53,browsers:["E89","FF66","S15","C89","O75"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-end-start-radius"}],description:"The border-end-start-radius CSS property defines a logical border radius on an element, which maps to a physical border radius depending on the element's writing-mode, direction, and text-orientation."},{name:"border-inline",syntax:"<'border-top-width'> || <'border-top-style'> || <color>",relevance:50,browsers:["E87","FF66","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline"}],description:"The border-inline CSS property is a shorthand property for setting the individual logical inline border property values in a single place in the style sheet."},{name:"border-inline-color",syntax:"<'border-top-color'>{1,2}",relevance:50,browsers:["E87","FF66","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-color"}],description:"The border-inline-color CSS property defines the color of the logical inline borders of an element, which maps to a physical border color depending on the element's writing mode, directionality, and text orientation. It corresponds to the border-top-color and border-bottom-color, or border-right-color and border-left-color property depending on the values defined for writing-mode, direction, and text-orientation."},{name:"border-inline-style",syntax:"<'border-top-style'>",relevance:50,browsers:["E87","FF66","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-style"}],description:"The border-inline-style CSS property defines the style of the logical inline borders of an element, which maps to a physical border style depending on the element's writing mode, directionality, and text orientation. It corresponds to the border-top-style and border-bottom-style, or border-left-style and border-right-style properties depending on the values defined for writing-mode, direction, and text-orientation."},{name:"border-inline-width",syntax:"<'border-top-width'>",relevance:50,browsers:["E87","FF66","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-width"}],description:"The border-inline-width CSS property defines the width of the logical inline borders of an element, which maps to a physical border width depending on the element's writing mode, directionality, and text orientation. It corresponds to the border-top-width and border-bottom-width, or border-left-width, and border-right-width property depending on the values defined for writing-mode, direction, and text-orientation."},{name:"border-start-end-radius",syntax:"<length-percentage>{1,2}",relevance:53,browsers:["E89","FF66","S15","C89","O75"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-start-end-radius"}],description:"The border-start-end-radius CSS property defines a logical border radius on an element, which maps to a physical border radius depending on the element's writing-mode, direction, and text-orientation."},{name:"border-start-start-radius",syntax:"<length-percentage>{1,2}",relevance:53,browsers:["E89","FF66","S15","C89","O75"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-start-start-radius"}],description:"The border-start-start-radius CSS property defines a logical border radius on an element, which maps to a physical border radius that depends on the element's writing-mode, direction, and text-orientation."},{name:"box-align",status:"obsolete",syntax:"start | center | end | baseline | stretch",values:[{name:"start"},{name:"center"},{name:"end"},{name:"baseline"},{name:"stretch"}],relevance:0,browsers:["E12","FF49","S3","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-align"}],description:"The box-align CSS property specifies how an element aligns its contents across its layout in a perpendicular direction. The effect of the property is only visible if there is extra space in the box."},{name:"box-direction",status:"obsolete",syntax:"normal | reverse | inherit",values:[{name:"normal"},{name:"reverse"},{name:"inherit"}],relevance:0,browsers:["E12","FF49","S3","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-direction"}],description:"The box-direction CSS property specifies whether a box lays out its contents normally (from the top or left edge), or in reverse (from the bottom or right edge)."},{name:"box-flex",status:"obsolete",syntax:"<number>",relevance:0,browsers:["E12","FF49","S3","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-flex"}],description:"The -moz-box-flex and -webkit-box-flex CSS properties specify how a -moz-box or -webkit-box grows to fill the box that contains it, in the direction of the containing box's layout."},{name:"box-flex-group",status:"obsolete",syntax:"<integer>",relevance:0,browsers:["S3","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-flex-group"}],description:"The box-flex-group CSS property assigns the flexbox's child elements to a flex group."},{name:"box-lines",status:"obsolete",syntax:"single | multiple",values:[{name:"single"},{name:"multiple"}],relevance:0,browsers:["S3","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-lines"}],description:"The box-lines CSS property determines whether the box may have a single or multiple lines (rows for horizontally oriented boxes, columns for vertically oriented boxes)."},{name:"box-ordinal-group",status:"obsolete",syntax:"<integer>",relevance:0,browsers:["E12","FF49","S3","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-ordinal-group"}],description:"The box-ordinal-group CSS property assigns the flexbox's child elements to an ordinal group."},{name:"box-orient",status:"obsolete",syntax:"horizontal | vertical | inline-axis | block-axis | inherit",values:[{name:"horizontal"},{name:"vertical"},{name:"inline-axis"},{name:"block-axis"},{name:"inherit"}],relevance:0,browsers:["E12","FF49","S3","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-orient"}],description:"The box-orient CSS property specifies whether an element lays out its contents horizontally or vertically."},{name:"box-pack",status:"obsolete",syntax:"start | center | end | justify",values:[{name:"start"},{name:"center"},{name:"end"},{name:"justify"}],relevance:0,browsers:["E12","FF49","S3","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-pack"}],description:"The -moz-box-pack and -webkit-box-pack CSS properties specify how a -moz-box or -webkit-box packs its contents in the direction of its layout. The effect of this is only visible if there is extra space in the box."},{name:"caret",syntax:"<'caret-color'> || <'caret-shape'>",relevance:50,description:"Shorthand for setting caret-color and caret-shape."},{name:"caret-shape",syntax:"auto | bar | block | underscore",values:[{name:"auto"},{name:"bar"},{name:"block"},{name:"underscore"}],relevance:50,description:"Specifies the desired shape of the text insertion caret."},{name:"color-scheme",syntax:"normal | [ light | dark | <custom-ident> ]+ && only?",relevance:57,browsers:["E81","FF96","S13","C81","O68"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/color-scheme"}],description:"The color-scheme CSS property allows an element to indicate which color schemes it can comfortably be rendered in."},{name:"contain-intrinsic-size",syntax:"[ auto? [ none | <length> ] ]{1,2}",relevance:50,browsers:["E83","FF107","S17","C83","O69"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-size"}],description:"Size of an element when the element is subject to size containment."},{name:"contain-intrinsic-block-size",syntax:"auto? [ none | <length> ]",relevance:50,browsers:["E95","FF107","S17","C95","O81"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-contain-intrinsic-block-size"}],description:"Block size of an element when the element is subject to size containment."},{name:"contain-intrinsic-height",syntax:"auto? [ none | <length> ]",relevance:50,browsers:["E95","FF107","S17","C95","O81"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-height"}],description:"Height of an element when the element is subject to size containment."},{name:"contain-intrinsic-inline-size",syntax:"auto? [ none | <length> ]",relevance:50,browsers:["E95","FF107","S17","C95","O81"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-contain-intrinsic-inline-size"}],description:"Inline size of an element when the element is subject to size containment."},{name:"contain-intrinsic-width",syntax:"auto? [ none | <length> ]",relevance:50,browsers:["E95","FF107","S17","C95","O81"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-width"}],description:"Width of an element when the element is subject to size containment."},{name:"container",syntax:"<'container-name'> [ / <'container-type'> ]?",relevance:53,browsers:["E105","FF110","S16","C105","O91"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/container"}],description:"The container shorthand CSS property establishes the element as a query container and specifies the name or name for the containment context used in a container query."},{name:"container-name",syntax:"none | <custom-ident>+",relevance:50,browsers:["E105","FF110","S16","C105","O91"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/container-name"}],description:"The container-name CSS property specifies a list of query container names used by the @container at-rule in a container query."},{name:"container-type",syntax:"normal | size | inline-size",values:[{name:"normal"},{name:"size"},{name:"inline-size"}],relevance:50,browsers:["E105","FF110","S16","C105","O91"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/container-type"}],description:"The container-type CSS property is used to define the type of containment used in a container query."},{name:"content-visibility",syntax:"visible | auto | hidden",values:[{name:"visible"},{name:"auto"},{name:"hidden"}],relevance:52,browsers:["E85","FFpreview","Spreview","C85","O71"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/content-visibility"}],description:"Controls whether or not an element renders its contents at all, along with forcing a strong set of containments, allowing user agents to potentially omit large swathes of layout and rendering work until it becomes needed."},{name:"counter-set",syntax:"[ <counter-name> <integer>? ]+ | none",relevance:50,browsers:["E85","FF68","S17.2","C85","O71"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/counter-set"}],description:"The counter-set CSS property sets a CSS counter to a given value. It manipulates the value of existing counters, and will only create new counters if there isn't already a counter of the given name on the element."},{name:"font-optical-sizing",syntax:"auto | none",values:[{name:"auto"},{name:"none"}],relevance:50,browsers:["E17","FF62","S11","C79","O66"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-optical-sizing"}],description:"The font-optical-sizing CSS property allows developers to control whether browsers render text with slightly differing visual representations to optimize viewing at different sizes, or not. This only works for fonts that have an optical size variation axis."},{name:"font-palette",syntax:"normal | light | dark | <palette-identifier>",relevance:50,browsers:["E101","FF107","S15.4","C101","O87"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-palette"}],description:"The font-palette CSS property allows specifying one of the many palettes contained in a font that a user agent should use for the font. Users can also override the values in a palette or create a new palette by using the @font-palette-values at-rule."},{name:"font-variation-settings",atRule:"@font-face",syntax:"normal | [ <string> <number> ]#",relevance:51,browsers:["E17","FF62","S11","C62","O49"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-variation-settings"}],description:"The font-variation-settings CSS property provides low-level control over OpenType or TrueType font variations, by specifying the four letter axis names of the features you want to vary, along with their variation values."},{name:"font-smooth",status:"nonstandard",syntax:"auto | never | always | <absolute-size> | <length>",relevance:0,browsers:["E79","FF25","S4","C5","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-smooth"}],description:"The font-smooth CSS property controls the application of anti-aliasing when fonts are rendered."},{name:"font-synthesis-position",syntax:"auto | none",values:[{name:"auto"},{name:"none"}],relevance:50,browsers:["FF118"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-synthesis-position"}],description:'The font-synthesis-position CSS property lets you specify whether or not a browser may synthesize the subscript and superscript "position" typefaces when they are missing in a font family, while using font-variant-position to set the positions.'},{name:"font-synthesis-small-caps",syntax:"auto | none",values:[{name:"auto"},{name:"none"}],relevance:50,browsers:["E97","FF111","S16.4","C97","O83"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-synthesis-small-caps"}],description:"The font-synthesis-small-caps CSS property lets you specify whether or not the browser may synthesize small-caps typeface when it is missing in a font family. Small-caps glyphs typically use the form of uppercase letters but are reduced to the size of lowercase letters."},{name:"font-synthesis-style",syntax:"auto | none",values:[{name:"auto"},{name:"none"}],relevance:50,browsers:["E97","FF111","S16.4","C97","O83"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-synthesis-style"}],description:"The font-synthesis-style CSS property lets you specify whether or not the browser may synthesize the oblique typeface when it is missing in a font family."},{name:"font-synthesis-weight",syntax:"auto | none",values:[{name:"auto"},{name:"none"}],relevance:50,browsers:["E97","FF111","S16.4","C97","O83"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-synthesis-weight"}],description:"The font-synthesis-weight CSS property lets you specify whether or not the browser may synthesize the bold typeface when it is missing in a font family."},{name:"font-variant-emoji",syntax:"normal | text | emoji | unicode",values:[{name:"normal"},{name:"text"},{name:"emoji"},{name:"unicode"}],relevance:50,browsers:["FF108"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-variant-emoji"}],description:"The font-variant-emoji CSS property specifies the default presentation style for displaying emojis."},{name:"forced-color-adjust",syntax:"auto | none",values:[{name:"auto"},{name:"none"}],relevance:57,browsers:["E79","FF113","C89","IE10","O75"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/forced-color-adjust"}],description:"Allows authors to opt certain elements out of forced colors mode. This then restores the control of those values to CSS"},{name:"gap",syntax:"<'row-gap'> <'column-gap'>?",relevance:70,browsers:["E16","FF52","S10.1","C57","O44"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/gap"}],description:"The gap CSS property is a shorthand property for row-gap and column-gap specifying the gutters between grid rows and columns."},{name:"hanging-punctuation",syntax:"none | [ first || [ force-end | allow-end ] || last ]",relevance:50,browsers:["S10"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/hanging-punctuation"}],description:"The hanging-punctuation CSS property specifies whether a punctuation mark should hang at the start or end of a line of text. Hanging punctuation may be placed outside the line box."},{name:"hyphenate-character",syntax:"auto | <string>",relevance:50,browsers:["E106","FF98","S17","C106","O92"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/hyphenate-character"}],description:"A hyphenate character used at the end of a line."},{name:"hyphenate-limit-chars",syntax:"[ auto | <integer> ]{1,3}",relevance:50,browsers:["E109","C109","O95"],description:"The hyphenate-limit-chars CSS property specifies the minimum word length to allow hyphenation of words as well as the minimum number of characters before and after the hyphen."},{name:"image-resolution",status:"experimental",syntax:"[ from-image || <resolution> ] && snap?",relevance:50,description:"The image-resolution property specifies the intrinsic resolution of all raster images used in or on the element. It affects both content images (e.g. replaced elements and generated content) and decorative images (such as background-image). The intrinsic resolution of an image is used to determine the image\u2019s intrinsic dimensions."},{name:"initial-letter",status:"experimental",syntax:"normal | [ <number> <integer>? ]",relevance:50,browsers:["E110","S9","C110","O96"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/initial-letter"}],description:"The initial-letter CSS property specifies styling for dropped, raised, and sunken initial letters."},{name:"initial-letter-align",status:"experimental",syntax:"[ auto | alphabetic | hanging | ideographic ]",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/initial-letter-align"}],description:"The initial-letter-align CSS property specifies the alignment of initial letters within a paragraph."},{name:"input-security",syntax:"auto | none",values:[{name:"auto"},{name:"none"}],relevance:50,description:"Enables or disables the obscuring a sensitive test input."},{name:"inset",syntax:"<'top'>{1,4}",relevance:58,browsers:["E87","FF66","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/inset"}],description:"The inset CSS property defines the logical block and inline start and end offsets of an element, which map to physical offsets depending on the element's writing mode, directionality, and text orientation. It corresponds to the top and bottom, or right and left properties depending on the values defined for writing-mode, direction, and text-orientation."},{name:"inset-block",syntax:"<'top'>{1,2}",relevance:53,browsers:["E87","FF63","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/inset-block"}],description:"The inset-block CSS property defines the logical block start and end offsets of an element, which maps to physical offsets depending on the element's writing mode, directionality, and text orientation. It corresponds to the top and bottom, or right and left properties depending on the values defined for writing-mode, direction, and text-orientation."},{name:"inset-block-end",syntax:"<'top'>",relevance:50,browsers:["E87","FF63","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/inset-block-end"}],description:"The inset-block-end CSS property defines the logical block end offset of an element, which maps to a physical offset depending on the element's writing mode, directionality, and text orientation. It corresponds to the top, right, bottom, or left property depending on the values defined for writing-mode, direction, and text-orientation."},{name:"inset-block-start",syntax:"<'top'>",relevance:53,browsers:["E87","FF63","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/inset-block-start"}],description:"The inset-block-start CSS property defines the logical block start offset of an element, which maps to a physical offset depending on the element's writing mode, directionality, and text orientation. It corresponds to the top, right, bottom, or left property depending on the values defined for writing-mode, direction, and text-orientation."},{name:"inset-inline",syntax:"<'top'>{1,2}",relevance:53,browsers:["E87","FF63","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/inset-inline"}],description:"The inset-inline CSS property defines the logical block start and end offsets of an element, which maps to physical offsets depending on the element's writing mode, directionality, and text orientation. It corresponds to the top and bottom, or right and left properties depending on the values defined for writing-mode, direction, and text-orientation."},{name:"inset-inline-end",syntax:"<'top'>",relevance:51,browsers:["E87","FF63","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/inset-inline-end"}],description:"The inset-inline-end CSS property defines the logical inline end inset of an element, which maps to a physical inset depending on the element's writing mode, directionality, and text orientation. It corresponds to the top, right, bottom, or left property depending on the values defined for writing-mode, direction, and text-orientation."},{name:"inset-inline-start",syntax:"<'top'>",relevance:54,browsers:["E87","FF63","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/inset-inline-start"}],description:"The inset-inline-start CSS property defines the logical inline start inset of an element, which maps to a physical offset depending on the element's writing mode, directionality, and text orientation. It corresponds to the top, right, bottom, or left property depending on the values defined for writing-mode, direction, and text-orientation."},{name:"justify-tracks",status:"experimental",syntax:"[ normal | <content-distribution> | <overflow-position>? [ <content-position> | left | right ] ]#",relevance:50,browsers:["FF77"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/justify-tracks"}],description:"The justify-tracks CSS property sets the alignment in the masonry axis for grid containers that have masonry in their inline axis"},{name:"line-clamp",status:"experimental",syntax:"none | <integer>",relevance:50,description:"The line-clamp property allows limiting the contents of a block container to the specified number of lines; remaining content is fragmented away and neither rendered nor measured. Optionally, it also allows inserting content into the last line box to indicate the continuity of truncated/interrupted content."},{name:"line-height-step",status:"experimental",syntax:"<length>",relevance:50,browsers:["E79","C60","O47"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/line-height-step"}],description:"The line-height-step CSS property defines the step units for line box heights. When the step unit is positive, line box heights are rounded up to the closest multiple of the unit. Negative values are invalid."},{name:"margin-block",syntax:"<'margin-left'>{1,2}",relevance:54,browsers:["E87","FF66","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-block"}],description:"The margin-block CSS property defines the logical block start and end margins of an element, which maps to physical margins depending on the element's writing mode, directionality, and text orientation."},{name:"margin-inline",syntax:"<'margin-left'>{1,2}",relevance:54,browsers:["E87","FF66","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-inline"}],description:"The margin-inline CSS property defines the logical inline start and end margins of an element, which maps to physical margins depending on the element's writing mode, directionality, and text orientation."},{name:"margin-trim",status:"experimental",syntax:"none | in-flow | all",values:[{name:"none"},{name:"in-flow"},{name:"all"}],relevance:50,browsers:["S16.4"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-trim"}],description:"The margin-trim property allows the container to trim the margins of its children where they adjoin the container\u2019s edges."},{name:"mask",syntax:"<mask-layer>#",relevance:55,browsers:["E79","FF53","S15.4","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask"}],description:"The mask CSS property alters the visibility of an element by either partially or fully hiding it. This is accomplished by either masking or clipping the image at specific points."},{name:"mask-border",syntax:"<'mask-border-source'> || <'mask-border-slice'> [ / <'mask-border-width'>? [ / <'mask-border-outset'> ]? ]? || <'mask-border-repeat'> || <'mask-border-mode'>",relevance:50,browsers:["E79","S17.2","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-border"}],description:"The mask-border CSS property lets you create a mask along the edge of an element's border.\n\nThis property is a shorthand for mask-border-source, mask-border-slice, mask-border-width, mask-border-outset, mask-border-repeat, and mask-border-mode. As with all shorthand properties, any omitted sub-values will be set to their initial value."},{name:"mask-border-mode",syntax:"luminance | alpha",values:[{name:"luminance"},{name:"alpha"}],relevance:50,description:"The mask-border-mode CSS property specifies the blending mode used in a mask border."},{name:"mask-border-outset",syntax:"[ <length> | <number> ]{1,4}",relevance:50,browsers:["E79","S17.2","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-border-outset"}],description:"The mask-border-outset CSS property specifies the distance by which an element's mask border is set out from its border box."},{name:"mask-border-repeat",syntax:"[ stretch | repeat | round | space ]{1,2}",relevance:50,browsers:["E79","S17.2","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-border-repeat"}],description:"The mask-border-repeat CSS property defines how the edge regions of a source image are adjusted to fit the dimensions of an element's mask border."},{name:"mask-border-slice",syntax:"<number-percentage>{1,4} fill?",relevance:50,browsers:["E79","S17.2","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-border-slice"}],description:"The mask-border-slice CSS property divides the image specified by mask-border-source into regions. These regions are used to form the components of an element's mask border."},{name:"mask-border-source",syntax:"none | <image>",relevance:50,browsers:["E79","S17.2","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-border-source"}],description:"The mask-border-source CSS property specifies the source image used to create an element's mask border.\n\nThe mask-border-slice property is used to divide the source image into regions, which are then dynamically applied to the final mask border."},{name:"mask-border-width",syntax:"[ <length-percentage> | <number> | auto ]{1,4}",relevance:50,browsers:["E79","S17.2","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-border-width"}],description:"The mask-border-width CSS property specifies the width of an element's mask border."},{name:"mask-clip",syntax:"[ <geometry-box> | no-clip ]#",relevance:50,browsers:["E120","FF53","S15.4","C120","O106"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-clip"}],description:"The mask-clip CSS property determines the area, which is affected by a mask. The painted content of an element must be restricted to this area."},{name:"mask-composite",syntax:"<compositing-operator>#",relevance:50,browsers:["E18","FF53","S15.4","C120","O106"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-composite"}],description:"The mask-composite CSS property represents a compositing operation used on the current mask layer with the mask layers below it."},{name:"masonry-auto-flow",status:"experimental",syntax:"[ pack | next ] || [ definite-first | ordered ]",relevance:50,browsers:["Spreview"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/masonry-auto-flow"}],description:"The masonry-auto-flow CSS property modifies how items are placed when using masonry in CSS Grid Layout."},{name:"math-depth",syntax:"auto-add | add(<integer>) | <integer>",relevance:50,browsers:["E109","FF117","C109","O95"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/math-depth"}],description:'Describe a notion of "depth" for each element of a mathematical formula, with respect to the top-level container of that formula.'},{name:"math-shift",syntax:"normal | compact",values:[{name:"normal"},{name:"compact"}],relevance:50,browsers:["E109","C109","O95"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/math-shift"}],description:"Used for positioning superscript during the layout of MathML scripted elements."},{name:"math-style",syntax:"normal | compact",values:[{name:"normal"},{name:"compact"}],relevance:50,browsers:["E109","FF117","S14.1","C109","O95"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/math-style"}],description:"The math-style property indicates whether MathML equations should render with normal or compact height."},{name:"max-lines",status:"experimental",syntax:"none | <integer>",relevance:50,description:"The max-lines property forces a break after a set number of lines"},{name:"offset",syntax:"[ <'offset-position'>? [ <'offset-path'> [ <'offset-distance'> || <'offset-rotate'> ]? ]? ]! [ / <'offset-anchor'> ]?",relevance:50,browsers:["E79","FF72","S16","C55","O42"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/offset"}],description:"The offset CSS property is a shorthand property for animating an element along a defined path."},{name:"offset-anchor",syntax:"auto | <position>",relevance:50,browsers:["E116","FF72","S16","C116","O102"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/offset-anchor"}],description:"Defines an anchor point of the box positioned along the path. The anchor point specifies the point of the box which is to be considered as the point that is moved along the path."},{name:"offset-distance",syntax:"<length-percentage>",relevance:50,browsers:["E79","FF72","S16","C55","O42"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/offset-distance"}],description:"The offset-distance CSS property specifies a position along an offset-path."},{name:"offset-path",syntax:"none | <offset-path> || <coord-box>",relevance:50,browsers:["E79","FF72","S15.4","C55","O45"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/offset-path"}],description:'The offset-path CSS property specifies the offset path where the element gets positioned. The exact element\u2019s position on the offset path is determined by the offset-distance property. An offset path is either a specified path with one or multiple sub-paths or the geometry of a not-styled basic shape. Each shape or path must define an initial position for the computed value of "0" for offset-distance and an initial direction which specifies the rotation of the object to the initial position.\n\nIn this specification, a direction (or rotation) of 0 degrees is equivalent to the direction of the positive x-axis in the object\u2019s local coordinate system. In other words, a rotation of 0 degree points to the right side of the UA if the object and its ancestors have no transformation applied.'},{name:"offset-position",syntax:"normal | auto | <position>",relevance:50,browsers:["E116","FF122","S16","C116","O102"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/offset-position"}],description:"Specifies the initial position of the offset path. If position is specified with static, offset-position would be ignored."},{name:"offset-rotate",syntax:"[ auto | reverse ] || <angle>",relevance:50,browsers:["E79","FF72","S16","C56","O43"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/offset-rotate"}],description:"The offset-rotate CSS property defines the direction of the element while positioning along the offset path."},{name:"overflow-anchor",syntax:"auto | none",values:[{name:"auto"},{name:"none"}],relevance:52,browsers:["E79","FF66","Spreview","C56","O43"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overflow-anchor"}],description:"The overflow-anchor CSS property provides a way to opt out browser scroll anchoring behavior which adjusts scroll position to minimize content shifts."},{name:"overflow-block",syntax:"visible | hidden | clip | scroll | auto",values:[{name:"visible"},{name:"hidden"},{name:"clip"},{name:"scroll"},{name:"auto"}],relevance:50,browsers:["FF69"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overflow-block"}],description:"The overflow-block CSS media feature can be used to test how the output device handles content that overflows the initial containing block along the block axis."},{name:"overflow-clip-box",status:"nonstandard",syntax:"padding-box | content-box",values:[{name:"padding-box"},{name:"content-box"}],relevance:0,description:"The overflow-clip-box CSS property specifies relative to which box the clipping happens when there is an overflow. It is short hand for the overflow-clip-box-inline and overflow-clip-box-block properties."},{name:"overflow-clip-margin",syntax:"<visual-box> || <length [0,\u221e]>",relevance:50,browsers:["E90","FF102","C90","O76"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overflow-clip-margin"}],description:"The overflow-clip-margin CSS property determines how far outside its bounds an element with overflow: clip may be painted before being clipped."},{name:"overflow-inline",syntax:"visible | hidden | clip | scroll | auto",values:[{name:"visible"},{name:"hidden"},{name:"clip"},{name:"scroll"},{name:"auto"}],relevance:50,browsers:["FF69"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overflow-inline"}],description:"The overflow-inline CSS media feature can be used to test how the output device handles content that overflows the initial containing block along the inline axis."},{name:"overlay",status:"experimental",syntax:"none | auto",values:[{name:"none"},{name:"auto"}],relevance:50,browsers:["E117","C117","O103"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overlay"}],description:'The overlay CSS property specifies whether an element appearing in the top layer (for example, a shown popover or modal {{htmlelement("dialog")}} element) is actually rendered in the top layer. This property is only relevant within a list of transition-property values, and only if allow-discrete is set as the transition-behavior.'},{name:"overscroll-behavior",syntax:"[ contain | none | auto ]{1,2}",relevance:50,browsers:["E18","FF59","S16","C63","O50"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior"}],description:"The overscroll-behavior CSS property is shorthand for the overscroll-behavior-x and overscroll-behavior-y properties, which allow you to control the browser's scroll overflow behavior \u2014 what happens when the boundary of a scrolling area is reached."},{name:"overscroll-behavior-block",syntax:"contain | none | auto",values:[{name:"contain"},{name:"none"},{name:"auto"}],relevance:50,browsers:["E79","FF73","S16","C77","O64"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-block"}],description:"The overscroll-behavior-block CSS property sets the browser's behavior when the block direction boundary of a scrolling area is reached."},{name:"overscroll-behavior-inline",syntax:"contain | none | auto",values:[{name:"contain"},{name:"none"},{name:"auto"}],relevance:50,browsers:["E79","FF73","S16","C77","O64"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-inline"}],description:"The overscroll-behavior-inline CSS property sets the browser's behavior when the inline direction boundary of a scrolling area is reached."},{name:"overscroll-behavior-x",syntax:"contain | none | auto",values:[{name:"contain"},{name:"none"},{name:"auto"}],relevance:50,browsers:["E18","FF59","S16","C63","O50"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-x"}],description:"The overscroll-behavior-x CSS property is allows you to control the browser's scroll overflow behavior \u2014 what happens when the boundary of a scrolling area is reached \u2014 in the x axis direction."},{name:"overscroll-behavior-y",syntax:"contain | none | auto",values:[{name:"contain"},{name:"none"},{name:"auto"}],relevance:50,browsers:["E18","FF59","S16","C63","O50"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-y"}],description:"The overscroll-behavior-y CSS property is allows you to control the browser's scroll overflow behavior \u2014 what happens when the boundary of a scrolling area is reached \u2014 in the y axis direction."},{name:"padding-block",syntax:"<'padding-left'>{1,2}",relevance:54,browsers:["E87","FF66","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding-block"}],description:"The padding-block CSS property defines the logical block start and end padding of an element, which maps to physical padding properties depending on the element's writing mode, directionality, and text orientation."},{name:"padding-inline",syntax:"<'padding-left'>{1,2}",relevance:54,browsers:["E87","FF66","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding-inline"}],description:"The padding-inline CSS property defines the logical inline start and end padding of an element, which maps to physical padding properties depending on the element's writing mode, directionality, and text orientation."},{name:"page",syntax:"auto | <custom-ident>",relevance:50,browsers:["E85","FF110","S13.1","C85","O71"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/page"}],description:"The page CSS property is used to specify the named page, a specific type of page defined by the @page at-rule."},{name:"place-content",syntax:"<'align-content'> <'justify-content'>?",relevance:51,browsers:["E79","FF45","S9","C59","O46"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/place-content"}],description:"The place-content CSS shorthand property sets both the align-content and justify-content properties."},{name:"place-items",syntax:"<'align-items'> <'justify-items'>?",relevance:51,browsers:["E79","FF45","S11","C59","O46"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/place-items"}],description:"The CSS place-items shorthand property sets both the align-items and justify-items properties. The first value is the align-items property value, the second the justify-items one. If the second value is not present, the first value is also used for it."},{name:"place-self",syntax:"<'align-self'> <'justify-self'>?",relevance:50,browsers:["E79","FF45","S11","C59","O46"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/place-self"}],description:"The place-self CSS property is a shorthand property sets both the align-self and justify-self properties. The first value is the align-self property value, the second the justify-self one. If the second value is not present, the first value is also used for it."},{name:"print-color-adjust",syntax:"economy | exact",values:[{name:"economy"},{name:"exact"}],relevance:50,browsers:["E79","FF97","S15.4","C17","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/print-color-adjust"}],description:"Defines what optimization the user agent is allowed to do when adjusting the appearance for an output device."},{name:"rotate",syntax:"none | <angle> | [ x | y | z | <number>{3} ] && <angle>",relevance:50,browsers:["E104","FF72","S14.1","C104","O90"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/rotate"}],description:"The rotate CSS property allows you to specify rotation 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:"row-gap",syntax:"normal | <length-percentage>",relevance:58,browsers:["E16","FF52","S10.1","C47","O34"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/row-gap"}],description:"The row-gap CSS property specifies the gutter between grid rows."},{name:"ruby-merge",status:"experimental",syntax:"separate | collapse | auto",values:[{name:"separate"},{name:"collapse"},{name:"auto"}],relevance:50,description:"This property controls how ruby annotation boxes should be rendered when there are more than one in a ruby container box: whether each pair should be kept separate, the annotations should be collapsed and rendered as a group, or the separation should be determined based on the space available."},{name:"scale",syntax:"none | <number>{1,3}",relevance:51,browsers:["E104","FF72","S14.1","C104","O90"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scale"}],description:"The scale CSS property allows you to specify scale 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:"scrollbar-color",syntax:"auto | <color>{2}",relevance:52,browsers:["E121","FF64","C121"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scrollbar-color"}],description:"The scrollbar-color CSS property sets the color of the scrollbar track and thumb."},{name:"scrollbar-gutter",syntax:"auto | stable && both-edges?",relevance:50,browsers:["E94","FF97","S17","C94","O80"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scrollbar-gutter"}],description:"The scrollbar-gutter CSS property allows authors to reserve space for the scrollbar, preventing unwanted layout changes as the content grows while also avoiding unnecessary visuals when scrolling isn't needed."},{name:"scrollbar-width",syntax:"auto | thin | none",values:[{name:"auto"},{name:"thin"},{name:"none"}],relevance:63,browsers:["E121","FF64","C121"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scrollbar-width"}],description:"The scrollbar-width property allows the author to set the maximum thickness of an element\u2019s scrollbars when they are shown. "},{name:"scroll-margin",syntax:"<length>{1,4}",relevance:50,browsers:["E79","FF90","S14.1","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-margin"}],description:"The scroll-margin property is a shorthand property which sets all of the scroll-margin longhands, assigning values much like the margin property does for the margin-* longhands."},{name:"scroll-margin-block",syntax:"<length>{1,2}",relevance:50,browsers:["E79","FF68","S15","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block"}],description:"The scroll-margin-block property is a shorthand property which sets the scroll-margin longhands in the block dimension."},{name:"scroll-margin-block-start",syntax:"<length>",relevance:50,browsers:["E79","FF68","S15","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block-start"}],description:"The scroll-margin-block-start property defines the margin of the scroll snap area at the start of the block dimension that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container\u2019s coordinate space), then adding the specified outsets."},{name:"scroll-margin-block-end",syntax:"<length>",relevance:50,browsers:["E79","FF68","S15","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block-end"}],description:"The scroll-margin-block-end property defines the margin of the scroll snap area at the end of the block dimension that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container\u2019s coordinate space), then adding the specified outsets."},{name:"scroll-margin-bottom",syntax:"<length>",relevance:50,browsers:["E79","FF68","S14.1","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-bottom"}],description:"The scroll-margin-bottom property defines the bottom margin of the scroll snap area that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container\u2019s coordinate space), then adding the specified outsets."},{name:"scroll-margin-inline",syntax:"<length>{1,2}",relevance:50,browsers:["E79","FF68","S15","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline"}],description:"The scroll-margin-inline property is a shorthand property which sets the scroll-margin longhands in the inline dimension."},{name:"scroll-margin-inline-start",syntax:"<length>",relevance:50,browsers:["E79","FF68","S15","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline-start"}],description:"The scroll-margin-inline-start property defines the margin of the scroll snap area at the start of the inline dimension that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container\u2019s coordinate space), then adding the specified outsets."},{name:"scroll-margin-inline-end",syntax:"<length>",relevance:50,browsers:["E79","FF68","S15","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline-end"}],description:"The scroll-margin-inline-end property defines the margin of the scroll snap area at the end of the inline dimension that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container\u2019s coordinate space), then adding the specified outsets."},{name:"scroll-margin-left",syntax:"<length>",relevance:50,browsers:["E79","FF68","S14.1","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-left"}],description:"The scroll-margin-left property defines the left margin of the scroll snap area that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container\u2019s coordinate space), then adding the specified outsets."},{name:"scroll-margin-right",syntax:"<length>",relevance:50,browsers:["E79","FF68","S14.1","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-right"}],description:"The scroll-margin-right property defines the right margin of the scroll snap area that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container\u2019s coordinate space), then adding the specified outsets."},{name:"scroll-margin-top",syntax:"<length>",relevance:50,browsers:["E79","FF68","S14.1","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-top"}],description:"The scroll-margin-top property defines the top margin of the scroll snap area that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container\u2019s coordinate space), then adding the specified outsets."},{name:"scroll-padding",syntax:"[ auto | <length-percentage> ]{1,4}",relevance:50,browsers:["E79","FF68","S14.1","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-padding"}],description:"The scroll-padding property is a shorthand property which sets all of the scroll-padding longhands, assigning values much like the padding property does for the padding-* longhands."},{name:"scroll-padding-block",syntax:"[ auto | <length-percentage> ]{1,2}",relevance:50,browsers:["E79","FF68","S15","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block"}],description:"The scroll-padding-block property is a shorthand property which sets the scroll-padding longhands for the block dimension."},{name:"scroll-padding-block-start",syntax:"auto | <length-percentage>",relevance:50,browsers:["E79","FF68","S15","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block-start"}],description:"The scroll-padding-block-start property defines offsets for the start edge in the block dimension of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targeted element and the edges of the scrollport."},{name:"scroll-padding-block-end",syntax:"auto | <length-percentage>",relevance:50,browsers:["E79","FF68","S15","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block-end"}],description:"The scroll-padding-block-end property defines offsets for the end edge in the block dimension of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targeted element and the edges of the scrollport."},{name:"scroll-padding-bottom",syntax:"auto | <length-percentage>",relevance:50,browsers:["E79","FF68","S14.1","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-bottom"}],description:"The scroll-padding-bottom property defines offsets for the bottom of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targeted element and the edges of the scrollport."},{name:"scroll-padding-inline",syntax:"[ auto | <length-percentage> ]{1,2}",relevance:50,browsers:["E79","FF68","S15","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline"}],description:"The scroll-padding-inline property is a shorthand property which sets the scroll-padding longhands for the inline dimension."},{name:"scroll-padding-inline-start",syntax:"auto | <length-percentage>",relevance:50,browsers:["E79","FF68","S15","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline-start"}],description:"The scroll-padding-inline-start property defines offsets for the start edge in the inline dimension of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targeted element and the edges of the scrollport."},{name:"scroll-padding-inline-end",syntax:"auto | <length-percentage>",relevance:50,browsers:["E79","FF68","S15","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline-end"}],description:"The scroll-padding-inline-end property defines offsets for the end edge in the inline dimension of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targeted element and the edges of the scrollport."},{name:"scroll-padding-left",syntax:"auto | <length-percentage>",relevance:50,browsers:["E79","FF68","S14.1","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-left"}],description:"The scroll-padding-left property defines offsets for the left of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targeted element and the edges of the scrollport."},{name:"scroll-padding-right",syntax:"auto | <length-percentage>",relevance:50,browsers:["E79","FF68","S14.1","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-right"}],description:"The scroll-padding-right property defines offsets for the right of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targeted element and the edges of the scrollport."},{name:"scroll-padding-top",syntax:"auto | <length-percentage>",relevance:50,browsers:["E79","FF68","S14.1","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-top"}],description:"The scroll-padding-top property defines offsets for the top of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targeted element and the edges of the scrollport."},{name:"scroll-snap-align",syntax:"[ none | start | end | center ]{1,2}",relevance:53,browsers:["E79","FF68","S11","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-snap-align"}],description:"The scroll-snap-align property specifies the box\u2019s snap position as an alignment of its snap area (as the alignment subject) within its snap container\u2019s snapport (as the alignment container). The two values specify the snapping alignment in the block axis and inline axis, respectively. If only one value is specified, the second value defaults to the same value."},{name:"scroll-snap-stop",syntax:"normal | always",values:[{name:"normal"},{name:"always"}],relevance:51,browsers:["E79","FF103","S15","C75","O62"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-snap-stop"}],description:'The scroll-snap-stop CSS property defines whether the scroll container is allowed to "pass over" possible snap positions.'},{name:"scroll-snap-type-x",status:"obsolete",syntax:"none | mandatory | proximity",values:[{name:"none"},{name:"mandatory"},{name:"proximity"}],relevance:0,description:"The scroll-snap-type-x CSS property defines how strictly snap points are enforced on the horizontal axis of the scroll container in case there is one.\n\nSpecifying any precise animations or physics used to enforce those snap points is not covered by this property but instead left up to the user agent."},{name:"scroll-snap-type-y",status:"obsolete",syntax:"none | mandatory | proximity",values:[{name:"none"},{name:"mandatory"},{name:"proximity"}],relevance:0,description:"The scroll-snap-type-y CSS property defines how strictly snap points are enforced on the vertical axis of the scroll container in case there is one.\n\nSpecifying any precise animations or physics used to enforce those snap points is not covered by this property but instead left up to the user agent."},{name:"scroll-timeline",status:"experimental",syntax:"[ <'scroll-timeline-name'> <'scroll-timeline-axis'>? ]#",relevance:50,browsers:["E115","FF111","C115","O101"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-timeline"}],description:"Defines a name that can be used to identify the source element of a scroll timeline, along with the scrollbar axis that should provide the timeline."},{name:"scroll-timeline-axis",status:"experimental",syntax:"[ block | inline | x | y ]#",relevance:50,browsers:["E115","FF111","C115","O101"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-timeline-axis"}],description:"Specifies the scrollbar that will be used to provide the timeline for a scroll-timeline animation"},{name:"scroll-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/scroll-timeline-name"}],description:"Defines a name that can be used to identify an element as the source of a scroll-timeline."},{name:"text-combine-upright",syntax:"none | all | [ digits <integer>? ]",relevance:50,browsers:["E79","FF48","S15.4","C48","IE11","O35"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-combine-upright"}],description:"The text-combine-upright CSS property specifies the combination of multiple characters into the space of a single character. If the combined text is wider than 1em, the user agent must fit the contents within 1em. The resulting composition is treated as a single upright glyph for layout and decoration. This property only has an effect in vertical writing modes.\n\nThis is used to produce an effect that is known as tate-ch\u016b-yoko (\u7e26\u4e2d\u6a2a) in Japanese, or as \u76f4\u66f8\u6a6b\u5411 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\u2019s 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 \u2014 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,\u221e]>",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,\u221e]> <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\u2019s 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\u2019s 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 \u201cplayed\u201d or \u201cpaused\u201d, when that element is \u201cpaused\u201d."},{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 \u201cplayed\u201d or \u201cpaused\u201d, when that element is \u201cplaying\u201d. "},{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.\n\nIn 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 \u2014 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 \u2014 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 \u2014 a static screenshot of the old view, before the transition.'}]},ya=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(const t of e.properties)"string"===typeof t.name&&this._properties.push(t);if(Array.isArray(e.atDirectives))for(const t of e.atDirectives)wa(t)&&this._atDirectives.push(t);if(Array.isArray(e.pseudoClasses))for(const t of e.pseudoClasses)_a(t)&&this._pseudoClasses.push(t);if(Array.isArray(e.pseudoElements))for(const t of e.pseudoElements)ka(t)&&this._pseudoElements.push(t)}};function wa(e){return"string"===typeof e.name}function _a(e){return"string"===typeof e.name}function ka(e){return"string"===typeof e.name}var Ca=class{constructor(e){this.dataProviders=[],this._propertySet={},this._atDirectiveSet={},this._pseudoClassSet={},this._pseudoElementSet={},this._properties=[],this._atDirectives=[],this._pseudoClasses=[],this._pseudoElements=[],this.setDataProviders(!1!==e?.useDefaultDataProvider,e?.customDataProviders||[])}setDataProviders(e,t){this.dataProviders=[],e&&this.dataProviders.push(new ya(va)),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=ss(this._propertySet),this._atDirectives=ss(this._atDirectiveSet),this._pseudoClasses=ss(this._pseudoClassSet),this._pseudoElements=ss(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||"standard"===this._propertySet[e.toLowerCase()].status)}};function Sa(e,t,n){return t.map((function(t){const i=function(t){const i=e.offsetAt(t);let r=n.findChildAtOffset(i,!0);if(!r)return[];const s=[];for(;r;)r.parent&&r.offset===r.parent.offset&&r.end===r.parent.end||(r.type===ee.Declarations&&i>r.offset&&i<r.end&&s.push([r.offset+1,r.end-1]),s.push([r.offset,r.end])),r=r.parent;return s}(t);let r;for(let n=i.length-1;n>=0;n--)r=Ri.create(qt.create(e.positionAt(i[n][0]),e.positionAt(i[n][1])),r);return r||(r=Ri.create(qt.create(t,t))),r}))}var xa=class extends Js{constructor(e){super(e,!0)}isRawStringDocumentLinkNode(e){return super.isRawStringDocumentLinkNode(e)||e.type===ee.Use||e.type===ee.Forward}async mapReference(e,t){if(this.fileSystemProvider&&e&&t){const t=function(e){if(e.endsWith(".css"))return[e];if(e.endsWith("/"))return[e+"index.scss",e+"_index.scss"];const t=gs.parse(e.replace(/\.scss$/,"")),n=bs.basename(t),i=bs.dirname(t);if(n.startsWith("_"))return[bs.joinPath(i,n+".scss").toString(!0)];return[bs.joinPath(i,n+".scss").toString(!0),bs.joinPath(i,"_"+n+".scss").toString(!0),e+"/index.scss",e+"/_index.scss",bs.joinPath(i,n+".css").toString(!0)]}(e);for(const e of t)if(await this.fileExists(e))return e}return e}async resolveReference(e,t,n,i=!1){if(!se(e,"sass:"))return super.resolveReference(e,t,n,i)}};function Ea(e){return new ya(e)}function Fa(e,t,n,i,r,s,o){return{configure:e=>{s.configure(e),t.configure(e?.completion),n.configure(e?.hover),i.configure(e?.importAliases)},setDataProviders:o.setDataProviders.bind(o),doValidation:s.doValidation.bind(s),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:da,findDefinition:i.findDefinition.bind(i),findReferences:i.findReferences.bind(i),findDocumentHighlights:i.findDocumentHighlights.bind(i),findDocumentLinks:i.findDocumentLinks.bind(i),findDocumentLinks2:i.findDocumentLinks2.bind(i),findDocumentSymbols:i.findSymbolInformations.bind(i),findDocumentSymbols2:i.findDocumentSymbols.bind(i),doCodeActions:r.doCodeActions.bind(r),doCodeActions2:r.doCodeActions2.bind(r),findDocumentColors:i.findDocumentColors.bind(i),getColorPresentations:i.getColorPresentations.bind(i),prepareRename:i.prepareRename.bind(i),doRename:i.doRename.bind(i),getFoldingRanges:la,getSelectionRanges:Sa}}var La={};var Ia=class{constructor(e,t){this._ctx=e,this._languageSettings=t.options,this._languageId=t.languageId;const n=t.options.data,i=n?.useDefaultDataProvider,r=[];if(n?.dataProviders)for(const o in n.dataProviders)r.push(Ea(n.dataProviders[o]));const s={customDataProviders:r,useDefaultDataProvider:i};switch(this._languageId){case"css":this._languageService=function(e=La){const t=new Ca(e);return Fa(new as,new Ts(null,e,t),new Hs(e&&e.clientCapabilities,t),new Js(e&&e.fileSystemProvider,!1),new lo(t),new ko(t),t)}(s);break;case"less":this._languageService=function(e=La){const t=new Ca(e);return Fa(new oa,new aa(e,t),new Hs(e&&e.clientCapabilities,t),new Js(e&&e.fileSystemProvider,!0),new lo(t),new ko(t),t)}(s);break;case"scss":this._languageService=function(e=La){const t=new Ca(e);return Fa(new Ko,new Go(e,t),new Hs(e&&e.clientCapabilities,t),new xa(e&&e.fileSystemProvider),new lo(t),new ko(t),t)}(s);break;default:throw new Error("Invalid language id: "+this._languageId)}this._languageService.configure(this._languageSettings)}async doValidation(e){const t=this._getTextDocument(e);if(t){const e=this._languageService.parseStylesheet(t),n=this._languageService.doValidation(t,e);return Promise.resolve(n)}return Promise.resolve([])}async doComplete(e,t){const n=this._getTextDocument(e);if(!n)return null;const i=this._languageService.parseStylesheet(n),r=this._languageService.doComplete(n,t,i);return Promise.resolve(r)}async doHover(e,t){const n=this._getTextDocument(e);if(!n)return null;const i=this._languageService.parseStylesheet(n),r=this._languageService.doHover(n,t,i);return Promise.resolve(r)}async findDefinition(e,t){const n=this._getTextDocument(e);if(!n)return null;const i=this._languageService.parseStylesheet(n),r=this._languageService.findDefinition(n,t,i);return Promise.resolve(r)}async findReferences(e,t){const n=this._getTextDocument(e);if(!n)return[];const i=this._languageService.parseStylesheet(n),r=this._languageService.findReferences(n,t,i);return Promise.resolve(r)}async findDocumentHighlights(e,t){const n=this._getTextDocument(e);if(!n)return[];const i=this._languageService.parseStylesheet(n),r=this._languageService.findDocumentHighlights(n,t,i);return Promise.resolve(r)}async findDocumentSymbols(e){const t=this._getTextDocument(e);if(!t)return[];const n=this._languageService.parseStylesheet(t),i=this._languageService.findDocumentSymbols(t,n);return Promise.resolve(i)}async doCodeActions(e,t,n){const i=this._getTextDocument(e);if(!i)return[];const r=this._languageService.parseStylesheet(i),s=this._languageService.doCodeActions(i,t,n,r);return Promise.resolve(s)}async findDocumentColors(e){const t=this._getTextDocument(e);if(!t)return[];const n=this._languageService.parseStylesheet(t),i=this._languageService.findDocumentColors(t,n);return Promise.resolve(i)}async getColorPresentations(e,t,n){const i=this._getTextDocument(e);if(!i)return[];const r=this._languageService.parseStylesheet(i),s=this._languageService.getColorPresentations(i,r,t,n);return Promise.resolve(s)}async getFoldingRanges(e,t){const n=this._getTextDocument(e);if(!n)return[];const i=this._languageService.getFoldingRanges(n,t);return Promise.resolve(i)}async getSelectionRanges(e,t){const n=this._getTextDocument(e);if(!n)return[];const i=this._languageService.parseStylesheet(n),r=this._languageService.getSelectionRanges(n,t,i);return Promise.resolve(r)}async doRename(e,t,n){const i=this._getTextDocument(e);if(!i)return null;const r=this._languageService.parseStylesheet(i),s=this._languageService.doRename(i,t,n,r);return Promise.resolve(s)}async format(e,t,n){const i=this._getTextDocument(e);if(!i)return[];const r={...this._languageSettings.format,...n},s=this._languageService.format(i,t,r);return Promise.resolve(s)}_getTextDocument(e){const t=this._ctx.getMirrorModels();for(const n of t)if(n.uri.toString()===e)return ur.create(e,this._languageId,n.version,n.getValue());return null}};self.onmessage=()=>{s(((e,t)=>new Ia(e,t)))}})()})();
\ No newline at end of file +(()=>{var e={146:(e,t,n)=>{"use strict";n.d(t,{V0:()=>r,aI:()=>i,kT:()=>s});Object.prototype.hasOwnProperty;function i(e,t){if(e===t)return!0;if(null===e||void 0===e||null===t||void 0===t)return!1;if(typeof e!==typeof t)return!1;if("object"!==typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;let n,r;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!i(e[n],t[n]))return!1}else{const s=[];for(r in e)s.push(r);s.sort();const o=[];for(r in t)o.push(r);if(o.sort(),!i(s,o))return!1;for(n=0;n<s.length;n++)if(!i(e[s[n]],t[s[n]]))return!1}return!0}function r(e){const t=[];for(const n of function(e){let t=[];for(;Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}(e))"function"===typeof e[n]&&t.push(n);return t}function s(e,t){const n=e=>function(){const n=Array.prototype.slice.call(arguments,0);return t(e,n)},i={};for(const r of e)i[r]=n(r);return i}},154:(e,t,n)=>{"use strict";n.d(t,{L:()=>i});const i=(0,n(3591).u1)("languageService")},360:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITextResourceConfigurationService:()=>r,ITextResourcePropertiesService:()=>s});var i=n(3591);const r=(0,i.u1)("textResourceConfigurationService"),s=(0,i.u1)("textResourcePropertiesService")},448:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MarkerDecorationsService:()=>C});var i,r=n(1508);!function(e){e[e.Ignore=0]="Ignore",e[e.Info=1]="Info",e[e.Warning=2]="Warning",e[e.Error=3]="Error"}(i||(i={})),function(e){const t="error",n="warning",i="info";e.fromValue=function(s){return s?r.Q_(t,s)?e.Error:r.Q_(n,s)||r.Q_("warn",s)?e.Warning:r.Q_(i,s)?e.Info:e.Ignore:e.Ignore},e.toString=function(r){switch(r){case e.Error:return t;case e.Warning:return n;case e.Info:return i;default:return"ignore"}}}(i||(i={}));const s=i;var o,a,l=n(8209),c=n(3591);!function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(o||(o={})),function(e){e.compare=function(e,t){return t-e};const t=Object.create(null);t[e.Error]=(0,l.kg)("sev.error","Error"),t[e.Warning]=(0,l.kg)("sev.warning","Warning"),t[e.Info]=(0,l.kg)("sev.info","Info"),e.toString=function(e){return t[e]||""},e.fromSeverity=function(t){switch(t){case s.Error:return e.Error;case s.Warning:return e.Warning;case s.Info:return e.Info;case s.Ignore:return e.Hint}},e.toSeverity=function(t){switch(t){case e.Error:return s.Error;case e.Warning:return s.Warning;case e.Info:return s.Info;case e.Hint:return s.Ignore}}}(o||(o={})),function(e){const t="";function n(e,n){const i=[t];return e.source?i.push(e.source.replace("\xa6","\\\xa6")):i.push(t),e.code?"string"===typeof e.code?i.push(e.code.replace("\xa6","\\\xa6")):i.push(e.code.value.replace("\xa6","\\\xa6")):i.push(t),void 0!==e.severity&&null!==e.severity?i.push(o.toString(e.severity)):i.push(t),e.message&&n?i.push(e.message.replace("\xa6","\\\xa6")):i.push(t),void 0!==e.startLineNumber&&null!==e.startLineNumber?i.push(e.startLineNumber.toString()):i.push(t),void 0!==e.startColumn&&null!==e.startColumn?i.push(e.startColumn.toString()):i.push(t),void 0!==e.endLineNumber&&null!==e.endLineNumber?i.push(e.endLineNumber.toString()):i.push(t),void 0!==e.endColumn&&null!==e.endColumn?i.push(e.endColumn.toString()):i.push(t),i.push(t),i.join("\xa6")}e.makeKey=function(e){return n(e,!0)},e.makeKeyOptionalMessage=n}(a||(a={}));const h=(0,c.u1)("markerService");var d=n(1484),u=n(6223),p=n(5724),m=n(7119),f=n(3750),g=n(6677),b=n(6456),v=n(1234),y=n(5845),w=n(4320);var _=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},k=function(e,t){return function(n,i){t(n,i,e)}};let C=class extends d.jG{constructor(e,t){super(),this._markerService=t,this._onDidChangeMarker=this._register(new v.vl),this._markerDecorations=new w.fT,e.getModels().forEach((e=>this._onModelAdded(e))),this._register(e.onModelAdded(this._onModelAdded,this)),this._register(e.onModelRemoved(this._onModelRemoved,this)),this._register(this._markerService.onMarkerChanged(this._handleMarkerChange,this))}dispose(){super.dispose(),this._markerDecorations.forEach((e=>e.dispose())),this._markerDecorations.clear()}getMarker(e,t){const n=this._markerDecorations.get(e);return n&&n.getMarker(t)||null}_handleMarkerChange(e){e.forEach((e=>{const t=this._markerDecorations.get(e);t&&this._updateDecorations(t)}))}_onModelAdded(e){const t=new S(e);this._markerDecorations.set(e.uri,t),this._updateDecorations(t)}_onModelRemoved(e){const t=this._markerDecorations.get(e.uri);t&&(t.dispose(),this._markerDecorations.delete(e.uri)),e.uri.scheme!==b.ny.inMemory&&e.uri.scheme!==b.ny.internal&&e.uri.scheme!==b.ny.vscode||this._markerService?.read({resource:e.uri}).map((e=>e.owner)).forEach((t=>this._markerService.remove(t,[e.uri])))}_updateDecorations(e){const t=this._markerService.read({resource:e.model.uri,take:500});e.update(t)&&this._onDidChangeMarker.fire(e.model)}};C=_([k(0,f.IModelService),k(1,h)],C);class S extends d.jG{constructor(e){super(),this.model=e,this._map=new w.cO,this._register((0,d.s)((()=>{this.model.deltaDecorations([...this._map.values()],[]),this._map.clear()})))}update(e){const{added:t,removed:n}=function(e,t){const n=[],i=[];for(const r of e)t.has(r)||n.push(r);for(const r of t)e.has(r)||i.push(r);return{removed:n,added:i}}(new Set(this._map.keys()),new Set(e));if(0===t.length&&0===n.length)return!1;const i=n.map((e=>this._map.get(e))),r=t.map((e=>({range:this._createDecorationRange(this.model,e),options:this._createDecorationOption(e)}))),s=this.model.deltaDecorations(i,r);for(const o of n)this._map.delete(o);for(let o=0;o<s.length;o++)this._map.set(t[o],s[o]);return!0}getMarker(e){return this._map.getKey(e.id)}_createDecorationRange(e,t){let n=g.Q.lift(t);if(t.severity!==o.Hint||this._hasMarkerTag(t,1)||this._hasMarkerTag(t,2)||(n=n.setEndPosition(n.startLineNumber,n.startColumn+2)),n=e.validateRange(n),n.isEmpty()){const t=e.getLineLastNonWhitespaceColumn(n.startLineNumber)||e.getLineMaxColumn(n.startLineNumber);if(1===t||n.endColumn>=t)return n;const i=e.getWordAtPosition(n.getStartPosition());i&&(n=new g.Q(n.startLineNumber,i.startColumn,n.endLineNumber,i.endColumn))}else if(t.endColumn===Number.MAX_VALUE&&1===t.startColumn&&n.startLineNumber===n.endLineNumber){const i=e.getLineFirstNonWhitespaceColumn(t.startLineNumber);i<n.endColumn&&(n=new g.Q(n.startLineNumber,i,n.endLineNumber,n.endColumn),t.startColumn=i)}return n}_createDecorationOption(e){let t,n,i,r,s;switch(e.severity){case o.Hint:t=this._hasMarkerTag(e,2)?void 0:this._hasMarkerTag(e,1)?"squiggly-unnecessary":"squiggly-hint",i=0;break;case o.Info:t="squiggly-info",n=(0,p.Yf)(m.AQ),i=10,s={color:(0,p.Yf)(y.KoI),position:1};break;case o.Warning:t="squiggly-warning",n=(0,p.Yf)(m.aZ),i=20,s={color:(0,p.Yf)(y.uMG),position:1};break;case o.Error:default:t="squiggly-error",n=(0,p.Yf)(m.yI),i=30,s={color:(0,p.Yf)(y.yLC),position:1}}return e.tags&&(-1!==e.tags.indexOf(1)&&(r="squiggly-inline-unnecessary"),-1!==e.tags.indexOf(2)&&(r="squiggly-inline-deprecated")),{description:"marker-decoration",stickiness:1,className:t,showIfCollapsed:!0,overviewRuler:{color:n,position:u.A5.Right},minimap:s,zIndex:i,inlineClassName:r}}_hasMarkerTag(e,t){return!!e.tags&&e.tags.indexOf(t)>=0}}},534:(e,t,n)=>{"use strict";n.d(t,{V:()=>r});var i=n(5152);class r{constructor(e){const t=(0,i.W)(e);this._defaultValue=t,this._asciiMap=r._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){const t=new Uint8Array(256);return t.fill(e),t}set(e,t){const n=(0,i.W)(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()}}},631:(e,t,n)=>{"use strict";function i(e){return"string"===typeof e}function r(e){return"object"===typeof e&&null!==e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function s(e){return"undefined"===typeof e}function o(e){return s(e)||null===e}n.d(t,{Gv:()=>r,Kg:()=>i,b0:()=>s,z:()=>o})},718:(e,t,n)=>{"use strict";n.r(t),n.d(t,{EditorWorkerHost:()=>i});class i{static{this.CHANNEL_NAME="editorWorkerHost"}static getChannel(e){return e.getChannel(i.CHANNEL_NAME)}static setChannel(e,t){e.setChannel(i.CHANNEL_NAME,t)}}},796:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MirrorModel:()=>b,STOP_SYNC_MODEL_DELTA_TIME_MS:()=>m,WorkerTextModelSyncClient:()=>f,WorkerTextModelSyncServer:()=>g});var i=n(1940),r=n(1484),s=n(9400),o=n(3069),a=n(6677),l=n(6486),c=n(1508),h=(n(9861),n(5152));class d{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=(0,h.j)(e);const n=this.values,i=this.prefixSum,r=t.length;return 0!==r&&(this.values=new Uint32Array(n.length+r),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+r),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(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,t){return e=(0,h.j)(e),t=(0,h.j)(t),this.values[e]!==t&&(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,t){e=(0,h.j)(e),t=(0,h.j)(t);const n=this.values,i=this.prefixSum;if(e>=n.length)return!1;const r=n.length-e;return t>=r&&(t=r),0!==t&&(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(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=(0,h.j)(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;0===t&&(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,i=0,r=0,s=0;for(;t<=n;)if(i=t+(n-t)/2|0,r=this.prefixSum[i],s=r-this.values[i],e<s)n=i-1;else{if(!(e>=r))break;t=i+1}return new u(i,e-s)}}class u{constructor(e,t){this.index=e,this.remainder=t,this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=t}}class p{constructor(e,t,n,i){this._uri=e,this._lines=t,this._eol=n,this._versionId=i,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const t=e.changes;for(const n of t)this._acceptDeleteRange(n.range),this._acceptInsertText(new o.y(n.range.startLineNumber,n.range.startColumn),n.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,t=this._lines.length,n=new Uint32Array(t);for(let i=0;i<t;i++)n[i]=this._lines[i].length+e;this._lineStarts=new d(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)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);else{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))}}_acceptInsertText(e,t){if(0===t.length)return;const n=(0,c.uz)(t);if(1===n.length)return void 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));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]);const i=new Uint32Array(n.length-1);for(let r=1;r<n.length;r++)this._lines.splice(e.lineNumber+r-1,0,n[r]),i[r-1]=n[r].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,i)}}const m=6e4;class f extends r.jG{constructor(e,t,n=!1){if(super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=e,this._modelService=t,!n){const e=new i.vb;e.cancelAndSet((()=>this._checkStopModelSync()),Math.round(m/2)),this._register(e)}}dispose(){for(const e in this._syncedModels)(0,r.AS)(this._syncedModels[e]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(e,t=!1){for(const n of e){const e=n.toString();this._syncedModels[e]||this._beginModelSync(n,t),this._syncedModels[e]&&(this._syncedModelsLastUsedTime[e]=(new Date).getTime())}}_checkStopModelSync(){const e=(new Date).getTime(),t=[];for(const n in this._syncedModelsLastUsedTime){e-this._syncedModelsLastUsedTime[n]>m&&t.push(n)}for(const n of t)this._stopModelSync(n)}_beginModelSync(e,t){const n=this._modelService.getModel(e);if(!n)return;if(!t&&n.isTooLargeForSyncing())return;const i=e.toString();this._proxy.$acceptNewModel({url:n.uri.toString(),lines:n.getLinesContent(),EOL:n.getEOL(),versionId:n.getVersionId()});const s=new r.Cm;s.add(n.onDidChangeContent((e=>{this._proxy.$acceptModelChanged(i.toString(),e)}))),s.add(n.onWillDispose((()=>{this._stopModelSync(i)}))),s.add((0,r.s)((()=>{this._proxy.$acceptRemovedModel(i)}))),this._syncedModels[i]=s}_stopModelSync(e){const t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],(0,r.AS)(t)}}class g{constructor(){this._models=Object.create(null)}getModel(e){return this._models[e]}getModels(){const e=[];return Object.keys(this._models).forEach((t=>e.push(this._models[t]))),e}$acceptNewModel(e){this._models[e.url]=new b(s.r.parse(e.url),e.lines,e.EOL,e.versionId)}$acceptModelChanged(e,t){if(!this._models[e])return;this._models[e].onEvents(t)}$acceptRemovedModel(e){this._models[e]&&delete this._models[e]}}class b extends p{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){const t=[];for(let n=0;n<this._lines.length;n++){const i=this._lines[n],r=this.offsetAt(new o.y(n+1,1)),s=i.matchAll(e);for(const e of s)(e.index||0===e.index)&&(e.index=e.index+r),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){const n=(0,l.Th)(e.column,(0,l.Io)(t),this._lines[e.lineNumber-1],0);return n?new a.Q(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null}words(e){const t=this._lines,n=this._wordenize.bind(this);let i=0,r="",s=0,o=[];return{*[Symbol.iterator](){for(;;)if(s<o.length){const e=r.substring(o[s].start,o[s].end);s+=1,yield e}else{if(!(i<t.length))break;r=t[i],o=n(r,e),s=0,i+=1}}}}getLineWords(e,t){const n=this._lines[e-1],i=this._wordenize(n,t),r=[];for(const s of i)r.push({word:n.substring(s.start,s.end),startColumn:s.start+1,endColumn:s.end+1});return r}_wordenize(e,t){const n=[];let i;for(t.lastIndex=0;(i=t.exec(e))&&0!==i[0].length;)n.push({start:i.index,end:i.index+i[0].length});return n}getValueInRange(e){if((e=this._validateRange(e)).startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);const t=this._eol,n=e.startLineNumber-1,i=e.endLineNumber-1,r=[];r.push(this._lines[n].substring(e.startColumn-1));for(let s=n+1;s<i;s++)r.push(this._lines[s]);return r.push(this._lines[i].substring(0,e.endColumn-1)),r.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();const 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){const 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(!o.y.isIPosition(e))throw new Error("bad position");let{lineNumber:t,column:n}=e,i=!1;if(t<1)t=1,n=1,i=!0;else if(t>this._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,i=!0;else{const e=this._lines[t-1].length+1;n<1?(n=1,i=!0):n>e&&(n=e,i=!0)}return i?{lineNumber:t,column:n}:e}}},920:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IEditorWorkerService:()=>i});const i=(0,n(3591).u1)("editorWorkerService")},973:(e,t,n)=>{"use strict";n.d(t,{W:()=>s});var i=n(3069),r=n(6677);class s{static{this.zero=new s(0,0)}static betweenPositions(e,t){return e.lineNumber===t.lineNumber?new s(0,t.column-e.column):new s(t.lineNumber-e.lineNumber,t.column-1)}static ofRange(e){return s.betweenPositions(e.getStartPosition(),e.getEndPosition())}static ofText(e){let t=0,n=0;for(const i of e)"\n"===i?(t++,n=0):n++;return new s(t,n)}constructor(e,t){this.lineCount=e,this.columnCount=t}isGreaterThanOrEqualTo(e){return this.lineCount!==e.lineCount?this.lineCount>e.lineCount:this.columnCount>=e.columnCount}createRange(e){return 0===this.lineCount?new r.Q(e.lineNumber,e.column,e.lineNumber,e.column+this.columnCount):new r.Q(e.lineNumber,e.column,e.lineNumber+this.lineCount,this.columnCount+1)}addToPosition(e){return 0===this.lineCount?new i.y(e.lineNumber,e.column+this.columnCount):new i.y(e.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}}},1090:(e,t,n)=>{"use strict";n.d(t,{d:()=>i});class i{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}},1234:(e,t,n)=>{"use strict";n.d(t,{Jh:()=>o,vl:()=>m});var i=n(4383),r=n(1484),s=(n(8925),n(8381));var o;!function(e){function t(e){false}function n(e){return(t,n=null,i)=>{let r,s=!1;return r=e((e=>{if(!s)return r?r.dispose():s=!0,t.call(n,e)}),null,i),s&&r.dispose(),r}}function i(e,t,n){return o(((n,i=null,r)=>e((e=>n.call(i,t(e))),null,r)),n)}function s(e,t,n){return o(((n,i=null,r)=>e((e=>t(e)&&n.call(i,e)),null,r)),n)}function o(e,n){let i;const r={onWillAddFirstListener(){i=e(s.fire,s)},onDidRemoveLastListener(){i?.dispose()}};n||t();const s=new m(r);return n?.add(s),s.event}function a(e,n,i=100,r=!1,s=!1,o,a){let l,c,h,d,u=0;const p={leakWarningThreshold:o,onWillAddFirstListener(){l=e((e=>{u++,c=n(c,e),r&&!h&&(f.fire(c),c=void 0),d=()=>{const e=c;c=void 0,h=void 0,(!r||u>1)&&f.fire(e),u=0},"number"===typeof i?(clearTimeout(h),h=setTimeout(d,i)):void 0===h&&(h=0,queueMicrotask(d))}))},onWillRemoveListener(){s&&u>0&&d?.()},onDidRemoveLastListener(){d=void 0,l.dispose()}};a||t();const f=new m(p);return a?.add(f),f.event}e.None=()=>r.jG.None,e.defer=function(e,t){return a(e,(()=>{}),0,void 0,!0,void 0,t)},e.once=n,e.onceIf=function(t,n){return e.once(e.filter(t,n))},e.map=i,e.forEach=function(e,t,n){return o(((n,i=null,r)=>e((e=>{t(e),n.call(i,e)}),null,r)),n)},e.filter=s,e.signal=function(e){return e},e.any=function(...e){return(t,n=null,i)=>function(e,t){t instanceof Array?t.push(e):t&&t.add(e);return e}((0,r.qE)(...e.map((e=>e((e=>t.call(n,e)))))),i)},e.reduce=function(e,t,n,r){let s=n;return i(e,(e=>(s=t(s,e),s)),r)},e.debounce=a,e.accumulate=function(t,n=0,i){return e.debounce(t,((e,t)=>e?(e.push(t),e):[t]),n,void 0,!0,void 0,i)},e.latch=function(e,t=(e,t)=>e===t,n){let i,r=!0;return s(e,(e=>{const n=r||!t(e,i);return r=!1,i=e,n}),n)},e.split=function(t,n,i){return[e.filter(t,n,i),e.filter(t,(e=>!n(e)),i)]},e.buffer=function(e,t=!1,n=[],i){let r=n.slice(),s=e((e=>{r?r.push(e):a.fire(e)}));i&&i.add(s);const o=()=>{r?.forEach((e=>a.fire(e))),r=null},a=new m({onWillAddFirstListener(){s||(s=e((e=>a.fire(e))),i&&i.add(s))},onDidAddFirstListener(){r&&(t?setTimeout(o):o())},onDidRemoveLastListener(){s&&s.dispose(),s=null}});return i&&i.add(a),a.event},e.chain=function(e,t){return(n,i,r)=>{const s=t(new c);return e((function(e){const t=s.evaluate(e);t!==l&&n.call(i,t)}),void 0,r)}};const l=Symbol("HaltChainable");class c{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:l)),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,n=!0;return this.steps.push((i=>{const r=n||!e(i,t);return n=!1,t=i,r?i:l})),this}evaluate(e){for(const t of this.steps)if((e=t(e))===l)break;return e}}e.fromNodeEventEmitter=function(e,t,n=e=>e){const i=(...e)=>r.fire(n(...e)),r=new m({onWillAddFirstListener:()=>e.on(t,i),onDidRemoveLastListener:()=>e.removeListener(t,i)});return r.event},e.fromDOMEventEmitter=function(e,t,n=e=>e){const i=(...e)=>r.fire(n(...e)),r=new m({onWillAddFirstListener:()=>e.addEventListener(t,i),onDidRemoveLastListener:()=>e.removeEventListener(t,i)});return r.event},e.toPromise=function(e){return new Promise((t=>n(e)(t)))},e.fromPromise=function(e){const t=new m;return e.then((e=>{t.fire(e)}),(()=>{t.fire(void 0)})).finally((()=>{t.dispose()})),t.event},e.forward=function(e,t){return e((e=>t.fire(e)))},e.runAndSubscribe=function(e,t,n){return t(n),e((e=>t(e)))};class h{constructor(e,n){this._observable=e,this._counter=0,this._hasChanged=!1;const i={onWillAddFirstListener:()=>{e.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{e.removeObserver(this)}};n||t(),this.emitter=new m(i),n&&n.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,0===this._counter&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}e.fromObservable=function(e,t){return new h(e,t).emitter.event},e.fromObservableLight=function(e){return(t,n,i)=>{let s=0,o=!1;const a={beginUpdate(){s++},endUpdate(){s--,0===s&&(e.reportChanges(),o&&(o=!1,t.call(n)))},handlePossibleChange(){},handleChange(){o=!0}};e.addObserver(a),e.reportChanges();const l={dispose(){e.removeObserver(a)}};return i instanceof r.Cm?i.add(l):Array.isArray(i)&&i.push(l),l}}}(o||(o={}));class a{static{this.all=new Set}static{this._idPool=0}constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${a._idPool++}`,a.all.add(this)}start(e){this._stopWatch=new s.W,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}class l{static{this._idPool=1}constructor(e,t,n=(l._idPool++).toString(16).padStart(3,"0")){this._errorHandler=e,this.threshold=t,this.name=n,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(e,t){const n=this.threshold;if(n<=0||t<n)return;this._stacks||(this._stacks=new Map);const i=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,i+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=.5*n;const[e,i]=this.getMostFrequentStack(),r=`[${this.name}] potential listener LEAK detected, having ${t} listeners already. MOST frequent listener (${i}):`;console.warn(r),console.warn(e);const s=new h(r,e);this._errorHandler(s)}return()=>{const t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}getMostFrequentStack(){if(!this._stacks)return;let e,t=0;for(const[n,i]of this._stacks)(!e||t<i)&&(e=[n,i],t=i);return e}}class c{static create(){const e=new Error;return new c(e.stack??"")}constructor(e){this.value=e}print(){console.warn(this.value.split("\n").slice(2).join("\n"))}}class h extends Error{constructor(e,t){super(e),this.name="ListenerLeakError",this.stack=t}}class d extends Error{constructor(e,t){super(e),this.name="ListenerRefusalError",this.stack=t}}class u{constructor(e){this.value=e}}let p;class m{constructor(e){this._size=0,this._options=e,this._leakageMon=this._options?.leakWarningThreshold?new l(e?.onListenerError??i.dz,this._options?.leakWarningThreshold??-1):void 0,this._perfMon=this._options?._profName?new a(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,t,n)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const 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);const t=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],n=new d(`${e}. HINT: Stack shows most frequent listener (${t[1]}-times)`,t[0]);return(this._options?.onListenerError||i.dz)(n),r.jG.None}if(this._disposed)return r.jG.None;t&&(e=e.bind(t));const s=new u(e);let o;this._leakageMon&&this._size>=Math.ceil(.2*this._leakageMon.threshold)&&(s.stack=c.create(),o=this._leakageMon.check(s.stack,this._size+1)),this._listeners?this._listeners instanceof u?(this._deliveryQueue??=new f,this._listeners=[this._listeners,s]):this._listeners.push(s):(this._options?.onWillAddFirstListener?.(this),this._listeners=s,this._options?.onDidAddFirstListener?.(this)),this._size++;const a=(0,r.s)((()=>{p?.unregister(a),o?.(),this._removeListener(s)}));if(n instanceof r.Cm?n.add(a):Array.isArray(n)&&n.push(a),p){const e=(new Error).stack.split("\n").slice(2,3).join("\n").trim(),t=/(file:|vscode-file:\/\/vscode-app)?(\/[^:]*:\d+:\d+)/.exec(e);p.register(a,t?.[2]??e,a)}return a},this._event}_removeListener(e){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(1===this._size)return this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),void(this._size=0);const t=this._listeners,n=t.indexOf(e);if(-1===n)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,t[n]=void 0;const i=this._deliveryQueue.current===this;if(2*this._size<=t.length){let e=0;for(let n=0;n<t.length;n++)t[n]?t[e++]=t[n]:i&&(this._deliveryQueue.end--,e<this._deliveryQueue.i&&this._deliveryQueue.i--);t.length=e}}_deliver(e,t){if(!e)return;const n=this._options?.onListenerError||i.dz;if(n)try{e.value(t)}catch(r){n(r)}else e.value(t)}_deliverQueue(e){const 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 u)this._deliver(this._listeners,e);else{const t=this._deliveryQueue;t.enqueue(this,e,this._listeners.length),this._deliverQueue(t)}else;this._perfMon?.stop()}hasListeners(){return this._size>0}}class f{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}}},1484:(e,t,n)=>{"use strict";function i(e,t){const n=this;let i,r=!1;return function(){if(r)return i;if(r=!0,t)try{i=e.apply(n,arguments)}finally{t()}else i=e.apply(n,arguments);return i}}n.d(t,{jG:()=>p,$w:()=>f,Cm:()=>u,HE:()=>m,qE:()=>h,AS:()=>c,VD:()=>a,s:()=>d,Ay:()=>o});var r=n(2522);let s=null;function o(e){return s?.trackDisposable(e),e}function a(e){s?.markAsDisposed(e)}function l(e,t){s?.setParent(e,t)}function c(e){if(r.f.is(e)){const n=[];for(const i of e)if(i)try{i.dispose()}catch(t){n.push(t)}if(1===n.length)throw n[0];if(n.length>1)throw new AggregateError(n,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function h(...e){const t=d((()=>c(e)));return function(e,t){if(s)for(const n of e)s.setParent(n,t)}(e,t),t}function d(e){const t=o({dispose:i((()=>{a(t),e()}))});return t}class u{static{this.DISABLE_DISPOSED_WARNING=!1}constructor(){this._toDispose=new Set,this._isDisposed=!1,o(this)}dispose(){this._isDisposed||(a(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(0!==this._toDispose.size)try{c(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return l(e,this),this._isDisposed?u.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}deleteAndLeak(e){e&&this._toDispose.has(e)&&(this._toDispose.delete(e),l(e,null))}}class p{static{this.None=Object.freeze({dispose(){}})}constructor(){this._store=new u,o(this),l(this._store,this)}dispose(){a(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}class m{constructor(){this._isDisposed=!1,o(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){this._isDisposed||e===this._value||(this._value?.dispose(),e&&l(e,this),this._value=e)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,a(this),this._value?.dispose(),this._value=void 0}}class f{constructor(){this._store=new Map,this._isDisposed=!1,o(this)}dispose(){a(this),this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{c(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,t,n=!1){this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),n||this._store.get(e)?.dispose(),this._store.set(e,t)}deleteAndDispose(e){this._store.get(e)?.dispose(),this._store.delete(e)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}},1508:(e,t,n)=>{"use strict";n.d(t,{$X:()=>R,AV:()=>s,E_:()=>L,HG:()=>u,LJ:()=>k,LU:()=>O,NB:()=>l,OS:()=>c,Q_:()=>y,Ss:()=>A,UD:()=>m,Wv:()=>v,Z5:()=>S,_J:()=>N,aC:()=>T,bm:()=>a,eY:()=>h,jy:()=>o,km:()=>E,lT:()=>p,ne:()=>D,ns:()=>w,pc:()=>_,r_:()=>M,tk:()=>z,tl:()=>W,uz:()=>d,y_:()=>V,z_:()=>C});var i=n(1788),r=n(1090);function s(e){return!e||"string"!==typeof e||0===e.trim().length}function o(e){return e.replace(/[<>"'&]/g,(e=>{switch(e){case"<":return"<";case">":return">";case'"':return""";case"'":return"'";case"&":return"&"}return e}))}function a(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function l(e,t){if(!e||!t)return e;const n=t.length;if(0===n||0===e.length)return e;let i=0;for(;e.indexOf(t,i)===i;)i+=n;return e.substring(i)}function c(e,t,n={}){if(!e)throw new Error("Cannot create regex from empty string");t||(e=a(e)),n.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));let i="";return n.global&&(i+="g"),n.matchCase||(i+="i"),n.multiline&&(i+="m"),n.unicode&&(i+="u"),new RegExp(e,i)}function h(e){if("^"===e.source||"^$"===e.source||"$"===e.source||"^\\s*$"===e.source)return!1;return!(!e.exec("")||0!==e.lastIndex)}function d(e){return e.split(/\r\n|\r|\n/)}function u(e){for(let t=0,n=e.length;t<n;t++){const n=e.charCodeAt(t);if(32!==n&&9!==n)return t}return-1}function p(e,t=e.length-1){for(let n=t;n>=0;n--){const t=e.charCodeAt(n);if(32!==t&&9!==t)return n}return-1}function m(e,t){return e<t?-1:e>t?1:0}function f(e,t,n=0,i=e.length,r=0,s=t.length){for(;n<i&&r<s;n++,r++){const i=e.charCodeAt(n),s=t.charCodeAt(r);if(i<s)return-1;if(i>s)return 1}const o=i-n,a=s-r;return o<a?-1:o>a?1:0}function g(e,t,n=0,i=e.length,r=0,s=t.length){for(;n<i&&r<s;n++,r++){let o=e.charCodeAt(n),a=t.charCodeAt(r);if(o===a)continue;if(o>=128||a>=128)return f(e.toLowerCase(),t.toLowerCase(),n,i,r,s);b(o)&&(o-=32),b(a)&&(a-=32);const l=o-a;if(0!==l)return l}const o=i-n,a=s-r;return o<a?-1:o>a?1:0}function b(e){return e>=97&&e<=122}function v(e){return e>=65&&e<=90}function y(e,t){return e.length===t.length&&0===g(e,t)}function w(e,t){const n=t.length;return!(t.length>e.length)&&0===g(e,t,0,n)}function _(e){return 55296<=e&&e<=56319}function k(e){return 56320<=e&&e<=57343}function C(e,t){return t-56320+(e-55296<<10)+65536}function S(e,t,n){const i=e.charCodeAt(n);if(_(i)&&n+1<t){const t=e.charCodeAt(n+1);if(k(t))return C(i,t)}return i}class x{get offset(){return this._offset}constructor(e,t=0){this._str=e,this._len=e.length,this._offset=t}setOffset(e){this._offset=e}prevCodePoint(){const e=function(e,t){const n=e.charCodeAt(t-1);if(k(n)&&t>1){const i=e.charCodeAt(t-2);if(_(i))return C(i,n)}return n}(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){const e=S(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class E{get offset(){return this._iterator.offset}constructor(e,t=0){this._iterator=new x(e,t)}nextGraphemeLength(){const e=B.getInstance(),t=this._iterator,n=t.offset;let i=e.getGraphemeBreakType(t.nextCodePoint());for(;!t.eol();){const n=t.offset,r=e.getGraphemeBreakType(t.nextCodePoint());if(P(i,r)){t.setOffset(n);break}i=r}return t.offset-n}prevGraphemeLength(){const e=B.getInstance(),t=this._iterator,n=t.offset;let i=e.getGraphemeBreakType(t.prevCodePoint());for(;t.offset>0;){const n=t.offset,r=e.getGraphemeBreakType(t.prevCodePoint());if(P(r,i)){t.setOffset(n);break}i=r}return n-t.offset}eol(){return this._iterator.eol()}}let F;function L(e){return F||(F=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/),F.test(e)}const I=/^[\t\n\r\x20-\x7E]*$/;function T(e){return I.test(e)}const N=/[\u2028\u2029]/;function R(e){return N.test(e)}function D(e){return e>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function A(e){return e>=127462&&e<=127487||8986===e||8987===e||9200===e||9203===e||e>=9728&&e<=10175||11088===e||11093===e||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129008||e>=129280&&e<=129535||e>=129648&&e<=129782}const M=String.fromCharCode(65279);function O(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}function z(e){return(e%=52)<26?String.fromCharCode(97+e):String.fromCharCode(65+e-26)}function P(e,t){return 0===e?5!==t&&7!==t:(2!==e||3!==t)&&(4===e||2===e||3===e||(4===t||2===t||3===t||(8!==e||8!==t&&9!==t&&11!==t&&12!==t)&&((11!==e&&9!==e||9!==t&&10!==t)&&((12!==e&&10!==e||10!==t)&&(5!==t&&13!==t&&(7!==t&&(1!==e&&((13!==e||14!==t)&&(6!==e||6!==t)))))))))}class B{static{this._INSTANCE=null}static getInstance(){return B._INSTANCE||(B._INSTANCE=new B),B._INSTANCE}constructor(){this._data=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]")}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;const t=this._data,n=t.length/3;let i=1;for(;i<=n;)if(e<t[3*i])i*=2;else{if(!(e>t[3*i+1]))return t[3*i+2];i=2*i+1}return 0}}class W{static{this.ambiguousCharacterData=new r.d((()=>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,8218,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,8242,96,1370,96,1523,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,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,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,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,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,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,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,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,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,71922,67,71913,67,65315,67,8557,67,8450,67,8493,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,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,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,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,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,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,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,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,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,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,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,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,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,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,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,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,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,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,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,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,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,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,71919,87,71910,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,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,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,66293,90,71909,90,65338,90,8484,90,8488,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,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,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,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,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,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,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,65283,35,65292,44,65307,59],"ko":[8211,45,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,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,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,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[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,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,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,65283,35,65307,59]}')))}static{this.cache=new i.o5({getCacheKey:JSON.stringify},(e=>{function t(e){const t=new Map;for(let n=0;n<e.length;n+=2)t.set(e[n],e[n+1]);return t}function n(e,t){if(!e)return t;const n=new Map;for(const[i,r]of e)t.has(i)&&n.set(i,r);return n}const i=this.ambiguousCharacterData.value;let r,s=e.filter((e=>!e.startsWith("_")&&e in i));0===s.length&&(s=["_default"]);for(const a of s){r=n(r,t(i[a]))}const o=function(e,t){const n=new Map(e);for(const[i,r]of t)n.set(i,r);return n}(t(i._common),r);return new W(o)}))}static getInstance(e){return W.cache.get(Array.from(e))}static{this._locales=new r.d((()=>Object.keys(W.ambiguousCharacterData.value).filter((e=>!e.startsWith("_")))))}static getLocales(){return W._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())}}class V{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,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,12288,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]")}static{this._data=void 0}static getData(){return this._data||(this._data=new Set(V.getRawData())),this._data}static isInvisibleCharacter(e){return V.getData().has(e)}static get codePoints(){return V.getData()}}},1646:(e,t,n)=>{"use strict";n.d(t,{Fd:()=>h});var i=n(9861),r=n(1234),s=n(631),o=n(8209),a=n(4001),l=n(8748),c=n(6359);const h={Configuration:"base.contributions.configuration"},d={properties:{},patternProperties:{}},u={properties:{},patternProperties:{}},p={properties:{},patternProperties:{}},m={properties:{},patternProperties:{}},f={properties:{},patternProperties:{}},g={properties:{},patternProperties:{}},b="vscode://schemas/settings/resourceLanguage",v=c.O.as(l.F.JSONContribution);const y="\\[([^\\]]+)\\]",w=new RegExp(y,"g"),_=`^(${y})+$`,k=new RegExp(_);function C(e){const t=[];if(k.test(e)){let n=w.exec(e);for(;n?.length;){const i=n[1].trim();i&&t.push(i),n=w.exec(e)}}return(0,i.dM)(t)}const S=new class{constructor(){this.registeredConfigurationDefaults=[],this.overrideIdentifiers=new Set,this._onDidSchemaChange=new r.vl,this._onDidUpdateConfiguration=new r.vl,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:o.kg("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!0,allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.policyConfigurations=new Map,this.excludedConfigurationProperties={},v.registerSchema(b,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(e,t=!0){this.registerConfigurations([e],t)}registerConfigurations(e,t=!0){const n=new Set;this.doRegisterConfigurations(e,t,n),v.registerSchema(b,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:n})}registerDefaultConfigurations(e){const t=new Set;this.doRegisterDefaultConfigurations(e,t),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:t,defaultsOverrides:!0})}doRegisterDefaultConfigurations(e,t){this.registeredConfigurationDefaults.push(...e);const n=[];for(const{overrides:i,source:r}of e)for(const e in i){t.add(e);const s=this.configurationDefaultsOverrides.get(e)??this.configurationDefaultsOverrides.set(e,{configurationDefaultOverrides:[]}).get(e),o=i[e];if(s.configurationDefaultOverrides.push({value:o,source:r}),k.test(e)){const t=this.mergeDefaultConfigurationsForOverrideIdentifier(e,o,r,s.configurationDefaultOverrideValue);if(!t)continue;s.configurationDefaultOverrideValue=t,this.updateDefaultOverrideProperty(e,t,r),n.push(...C(e))}else{const t=this.mergeDefaultConfigurationsForConfigurationProperty(e,o,r,s.configurationDefaultOverrideValue);if(!t)continue;s.configurationDefaultOverrideValue=t;const n=this.configurationProperties[e];n&&(this.updatePropertyDefaultValue(e,n),this.updateSchema(e,n))}}this.doRegisterOverrideIdentifiers(n)}updateDefaultOverrideProperty(e,t,n){const i={type:"object",default:t.value,description:o.kg("defaultLanguageConfiguration.description","Configure settings to be overridden for the {0} language.",(0,a.Mo)(e)),$ref:b,defaultDefaultValue:t.value,source:n,defaultValueSource:n};this.configurationProperties[e]=i,this.defaultLanguageConfigurationOverridesNode.properties[e]=i}mergeDefaultConfigurationsForOverrideIdentifier(e,t,n,i){const r=i?.value||{},o=i?.source??new Map;if(o instanceof Map){for(const e of Object.keys(t)){const i=t[e];if(s.Gv(i)&&(s.b0(r[e])||s.Gv(r[e]))){if(r[e]={...r[e]??{},...i},n)for(const t in i)o.set(`${e}.${t}`,n)}else r[e]=i,n?o.set(e,n):o.delete(e)}return{value:r,source:o}}console.error("objectConfigurationSources is not a Map")}mergeDefaultConfigurationsForConfigurationProperty(e,t,n,i){const r=this.configurationProperties[e],o=i?.value??r?.defaultDefaultValue;let a=n;if(s.Gv(t)&&(void 0!==r&&"object"===r.type||void 0===r&&(s.b0(o)||s.Gv(o)))){if(a=i?.source??new Map,!(a instanceof Map))return void console.error("defaultValueSource is not a Map");for(const i in t)n&&a.set(`${e}.${i}`,n);t={...s.Gv(o)?o:{},...t}}return{value:t,source:a}}registerOverrideIdentifiers(e){this.doRegisterOverrideIdentifiers(e),this._onDidSchemaChange.fire()}doRegisterOverrideIdentifiers(e){for(const t of e)this.overrideIdentifiers.add(t);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(e,t,n){e.forEach((e=>{this.validateAndRegisterProperties(e,t,e.extensionInfo,e.restrictedProperties,void 0,n),this.configurationContributors.push(e),this.registerJSONConfiguration(e)}))}validateAndRegisterProperties(e,t=!0,n,i,r=3,o){r=s.z(e.scope)?r:e.scope;const a=e.properties;if(a)for(const c in a){const e=a[c];t&&x(c,e)?delete a[c]:(e.source=n,e.defaultDefaultValue=a[c].default,this.updatePropertyDefaultValue(c,e),k.test(c)?e.scope=void 0:(e.scope=s.z(e.scope)?r:e.scope,e.restricted=s.z(e.restricted)?!!i?.includes(c):e.restricted),!a[c].hasOwnProperty("included")||a[c].included?(this.configurationProperties[c]=a[c],a[c].policy?.name&&this.policyConfigurations.set(a[c].policy.name,c),!a[c].deprecationMessage&&a[c].markdownDeprecationMessage&&(a[c].deprecationMessage=a[c].markdownDeprecationMessage),o.add(c)):(this.excludedConfigurationProperties[c]=a[c],delete a[c]))}const l=e.allOf;if(l)for(const s of l)this.validateAndRegisterProperties(s,t,n,i,r,o)}getConfigurationProperties(){return this.configurationProperties}getPolicyConfigurations(){return this.policyConfigurations}registerJSONConfiguration(e){const t=e=>{const n=e.properties;if(n)for(const t in n)this.updateSchema(t,n[t]);const i=e.allOf;i?.forEach(t)};t(e)}updateSchema(e,t){switch(d.properties[e]=t,t.scope){case 1:u.properties[e]=t;break;case 2:p.properties[e]=t;break;case 6:m.properties[e]=t;break;case 3:f.properties[e]=t;break;case 4:g.properties[e]=t;break;case 5:g.properties[e]=t,this.resourceLanguageSettingsSchema.properties[e]=t}}updateOverridePropertyPatternKey(){for(const e of this.overrideIdentifiers.values()){const t=`[${e}]`,n={type:"object",description:o.kg("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:o.kg("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:b};this.updatePropertyDefaultValue(t,n),d.properties[t]=n,u.properties[t]=n,p.properties[t]=n,m.properties[t]=n,f.properties[t]=n,g.properties[t]=n}}registerOverridePropertyPatternKey(){const e={type:"object",description:o.kg("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:o.kg("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:b};d.patternProperties[_]=e,u.patternProperties[_]=e,p.patternProperties[_]=e,m.patternProperties[_]=e,f.patternProperties[_]=e,g.patternProperties[_]=e,this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,t){const n=this.configurationDefaultsOverrides.get(e)?.configurationDefaultOverrideValue;let i,r;!n||t.disallowConfigurationDefault&&n.source||(i=n.value,r=n.source),s.b0(i)&&(i=t.defaultDefaultValue,r=void 0),s.b0(i)&&(i=function(e){switch(Array.isArray(e)?e[0]:e){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}(t.type)),t.default=i,t.defaultValueSource=r}};function x(e,t){return e.trim()?k.test(e)?o.kg("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e):void 0!==S.getConfigurationProperties()[e]?o.kg("config.property.duplicate","Cannot register '{0}'. This property is already registered.",e):t.policy?.name&&void 0!==S.getPolicyConfigurations().get(t.policy?.name)?o.kg("config.policy.duplicate","Cannot register '{0}'. The associated policy {1} is already registered with {2}.",e,t.policy?.name,S.getPolicyConfigurations().get(t.policy?.name)):null:o.kg("config.property.empty","Cannot register an empty property")}c.O.add(h.Configuration,S)},1674:(e,t,n)=>{"use strict";n.d(t,{$l:()=>a,Gs:()=>u,MB:()=>o,Sw:()=>h,bb:()=>c,gN:()=>l,pJ:()=>d});var i=n(1090);const r="undefined"!==typeof Buffer;new i.d((()=>new Uint8Array(256)));let s;class o{static wrap(e){return r&&!Buffer.isBuffer(e)&&(e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),new o(e)}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}toString(){return r?this.buffer.toString():(s||(s=new TextDecoder),s.decode(this.buffer))}}function a(e,t){return(e[t+0]|0)>>>0|e[t+1]<<8>>>0}function l(e,t,n){e[n+0]=255&t,t>>>=8,e[n+1]=255&t}function c(e,t){return e[t]*2**24+65536*e[t+1]+256*e[t+2]+e[t+3]}function h(e,t,n){e[n+3]=t,t>>>=8,e[n+2]=t,t>>>=8,e[n+1]=t,t>>>=8,e[n]=t}function d(e,t){return e[t]}function u(e,t,n){e[n]=t}},1773:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DefaultModelSHA1Computer:()=>kr,ModelService:()=>_r});var i=n(1234),r=n(1484),s=n(8067),o=n(9861),a=n(7661),l=n(4383),c=n(1508),h=n(9400),d=n(4454);class u{static _nextVisibleColumn(e,t,n){return 9===e?u.nextRenderTabStop(t,n):c.ne(e)||c.Ss(e)?t+2:t+1}static visibleColumnFromColumn(e,t,n){const i=Math.min(t-1,e.length),r=e.substring(0,i),s=new c.km(r);let o=0;for(;!s.eol();){const e=c.Z5(r,i,s.offset);s.nextGraphemeLength(),o=this._nextVisibleColumn(e,o,n)}return o}static columnFromVisibleColumn(e,t,n){if(t<=0)return 1;const i=e.length,r=new c.km(e);let s=0,o=1;for(;!r.eol();){const a=c.Z5(e,i,r.offset);r.nextGraphemeLength();const l=this._nextVisibleColumn(a,s,n),h=r.offset+1;if(l>=t){return l-t<t-s?h:o}s=l,o=h}return i+1}static nextRenderTabStop(e,t){return e+t-e%t}static nextIndentTabStop(e,t){return e+t-e%t}static prevRenderTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}static prevIndentTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}}function p(e,t,n){let i=c.HG(e);return-1===i&&(i=e.length),function(e,t,n){let i=0;for(let s=0;s<e.length;s++)"\t"===e.charAt(s)?i=u.nextIndentTabStop(i,t):i++;let r="";if(!n){const e=Math.floor(i/t);i%=t;for(let t=0;t<e;t++)r+="\t"}for(let s=0;s<i;s++)r+=" ";return r}(e.substring(0,i),t,n)+e.substring(i)}var m=n(3069),f=n(6677),g=n(5326);const b={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}};var v,y=n(154),w=n(6486);!function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(v||(v={}));class _{constructor(e){if(this._neutralCharacter=null,this._neutralCharacterSearched=!1,this.open=e.open,this.close=e.close,this._inString=!0,this._inComment=!0,this._inRegEx=!0,Array.isArray(e.notIn))for(let t=0,n=e.notIn.length;t<n;t++){switch(e.notIn[t]){case"string":this._inString=!1;break;case"comment":this._inComment=!1;break;case"regex":this._inRegEx=!1}}}isOK(e){switch(e){case 0:return!0;case 1:return this._inComment;case 2:return this._inString;case 3:return this._inRegEx}}shouldAutoClose(e,t){if(0===e.getTokenCount())return!0;const n=e.findTokenIndexAtOffset(t-2),i=e.getStandardTokenType(n);return this.isOK(i)}_findNeutralCharacterInRange(e,t){for(let n=e;n<=t;n++){const e=String.fromCharCode(n);if(!this.open.includes(e)&&!this.close.includes(e))return e}return null}findNeutralCharacter(){return this._neutralCharacterSearched||(this._neutralCharacterSearched=!0,this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(48,57)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(97,122)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(65,90))),this._neutralCharacter}}class k{constructor(e){this.autoClosingPairsOpenByStart=new Map,this.autoClosingPairsOpenByEnd=new Map,this.autoClosingPairsCloseByStart=new Map,this.autoClosingPairsCloseByEnd=new Map,this.autoClosingPairsCloseSingleChar=new Map;for(const t of e)C(this.autoClosingPairsOpenByStart,t.open.charAt(0),t),C(this.autoClosingPairsOpenByEnd,t.open.charAt(t.open.length-1),t),C(this.autoClosingPairsCloseByStart,t.close.charAt(0),t),C(this.autoClosingPairsCloseByEnd,t.close.charAt(t.close.length-1),t),1===t.close.length&&1===t.open.length&&C(this.autoClosingPairsCloseSingleChar,t.close,t)}}function C(e,t,n){e.has(t)?e.get(t).push(n):e.set(t,[n])}class S{static{this.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES=";:.,=}])> \n\t"}static{this.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS="'\"`;:.,=}])> \n\t"}constructor(e){if(e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map((e=>new _(e))):e.brackets?this._autoClosingPairs=e.brackets.map((e=>new _({open:e[0],close:e[1]}))):this._autoClosingPairs=[],e.__electricCharacterSupport&&e.__electricCharacterSupport.docComment){const t=e.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new _({open:t.open,close:t.close||""}))}this._autoCloseBeforeForQuotes="string"===typeof e.autoCloseBefore?e.autoCloseBefore:S.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES,this._autoCloseBeforeForBrackets="string"===typeof e.autoCloseBefore?e.autoCloseBefore:S.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS,this._surroundingPairs=e.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(e){return e?this._autoCloseBeforeForQuotes:this._autoCloseBeforeForBrackets}getSurroundingPairs(){return this._surroundingPairs}}function x(e){return 0!==(3&e)}var E=n(1674);let F,L,I;function T(){return F||(F=new TextDecoder("UTF-16LE")),F}function N(){return I||(I=s.cm()?T():(L||(L=new TextDecoder("UTF-16BE")),L)),I}function R(e,t,n){const i=new Uint16Array(e.buffer,t,n);return n>0&&(65279===i[0]||65534===i[0])?function(e,t,n){const i=[];let r=0;for(let s=0;s<n;s++){const n=E.$l(e,t);t+=2,i[r++]=String.fromCharCode(n)}return i.join("")}(e,t,n):T().decode(i)}class D{constructor(e,t,n,i,r,s){this._richEditBracketBrand=void 0,this.languageId=e,this.index=t,this.open=n,this.close=i,this.forwardRegex=r,this.reversedRegex=s,this._openSet=D._toSet(this.open),this._closeSet=D._toSet(this.close)}isOpen(e){return this._openSet.has(e)}isClose(e){return this._closeSet.has(e)}static _toSet(e){const t=new Set;for(const n of e)t.add(n);return t}}class A{constructor(e,t){this._richEditBracketsBrand=void 0;const n=function(e){const t=e.length;e=e.map((e=>[e[0].toLowerCase(),e[1].toLowerCase()]));const n=[];for(let o=0;o<t;o++)n[o]=o;const i=(e,t)=>{const[n,i]=e,[r,s]=t;return n===r||n===s||i===r||i===s},r=(e,i)=>{const r=Math.min(e,i),s=Math.max(e,i);for(let o=0;o<t;o++)n[o]===s&&(n[o]=r)};for(let o=0;o<t;o++){const s=e[o];for(let a=o+1;a<t;a++)i(s,e[a])&&r(n[o],n[a])}const s=[];for(let o=0;o<t;o++){const i=[],r=[];for(let s=0;s<t;s++)if(n[s]===o){const[t,n]=e[s];i.push(t),r.push(n)}i.length>0&&s.push({open:i,close:r})}return s}(t);this.brackets=n.map(((t,i)=>new D(e,i,t.open,t.close,function(e,t,n,i){let r=[];r=r.concat(e),r=r.concat(t);for(let s=0,o=r.length;s<o;s++)M(r[s],n,i,r);return r=z(r),r.sort(O),r.reverse(),B(r)}(t.open,t.close,n,i),function(e,t,n,i){let r=[];r=r.concat(e),r=r.concat(t);for(let s=0,o=r.length;s<o;s++)M(r[s],n,i,r);return r=z(r),r.sort(O),r.reverse(),B(r.map(W))}(t.open,t.close,n,i)))),this.forwardRegex=function(e){let t=[];for(const n of e){for(const e of n.open)t.push(e);for(const e of n.close)t.push(e)}return t=z(t),B(t)}(this.brackets),this.reversedRegex=function(e){let t=[];for(const n of e){for(const e of n.open)t.push(e);for(const e of n.close)t.push(e)}return t=z(t),B(t.map(W))}(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(const i of this.brackets){for(const e of i.open)this.textIsBracket[e]=i,this.textIsOpenBracket[e]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,e.length);for(const e of i.close)this.textIsBracket[e]=i,this.textIsOpenBracket[e]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,e.length)}}}function M(e,t,n,i){for(let r=0,s=t.length;r<s;r++){if(r===n)continue;const s=t[r];for(const t of s.open)t.indexOf(e)>=0&&i.push(t);for(const t of s.close)t.indexOf(e)>=0&&i.push(t)}}function O(e,t){return e.length-t.length}function z(e){if(e.length<=1)return e;const t=[],n=new Set;for(const i of e)n.has(i)||(t.push(i),n.add(i));return t}function P(e){const t=/^[\w ]+$/.test(e);return e=c.bm(e),t?`\\b${e}\\b`:e}function B(e,t){const n=`(${e.map(P).join(")|(")})`;return c.OS(n,!0,t)}const W=function(){let e=null,t=null;return function(n){return e!==n&&(e=n,t=function(e){const t=new Uint16Array(e.length);let n=0;for(let i=e.length-1;i>=0;i--)t[n++]=e.charCodeAt(i);return N().decode(t)}(e)),t}}();class V{static _findPrevBracketInText(e,t,n,i){const r=n.match(e);if(!r)return null;const s=n.length-(r.index||0),o=r[0].length,a=i+s;return new f.Q(t,a-o+1,t,a+1)}static findPrevBracketInRange(e,t,n,i,r){const s=W(n).substring(n.length-r,n.length-i);return this._findPrevBracketInText(e,t,s,i)}static findNextBracketInText(e,t,n,i){const r=n.match(e);if(!r)return null;const s=r.index||0,o=r[0].length;if(0===o)return null;const a=i+s;return new f.Q(t,a+1,t,a+1+o)}static findNextBracketInRange(e,t,n,i,r){const s=n.substring(i,r);return this.findNextBracketInText(e,t,s,i)}}class U{constructor(e){this._richEditBrackets=e}getElectricCharacters(){const e=[];if(this._richEditBrackets)for(const t of this._richEditBrackets.brackets)for(const n of t.close){const t=n.charAt(n.length-1);e.push(t)}return(0,o.dM)(e)}onElectricCharacter(e,t,n){if(!this._richEditBrackets||0===this._richEditBrackets.brackets.length)return null;const i=t.findTokenIndexAtOffset(n-1);if(x(t.getStandardTokenType(i)))return null;const r=this._richEditBrackets.reversedRegex,s=t.getLineContent().substring(0,n-1)+e,o=V.findPrevBracketInRange(r,1,s,0,s.length);if(!o)return null;const a=s.substring(o.startColumn-1,o.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[a])return null;const l=t.getActualLineContentBefore(o.startColumn-1);return/^\s*$/.test(l)?{matchOpenBracket:a}:null}}function $(e){return e.global&&(e.lastIndex=0),!0}class q{constructor(e){this._indentationRules=e}shouldIncrease(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&$(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(e))}shouldDecrease(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&$(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(e))}shouldIndentNextLine(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&$(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(e))}shouldIgnore(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&$(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(e))}getIndentMetadata(e){let t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t}}class j{constructor(e){(e=e||{}).brackets=e.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],e.brackets.forEach((e=>{const t=j._createOpenBracketRegExp(e[0]),n=j._createCloseBracketRegExp(e[1]);t&&n&&this._brackets.push({open:e[0],openRegExp:t,close:e[1],closeRegExp:n})})),this._regExpRules=e.onEnterRules||[]}onEnter(e,t,n,i){if(e>=3)for(let r=0,s=this._regExpRules.length;r<s;r++){const e=this._regExpRules[r];if([{reg:e.beforeText,text:n},{reg:e.afterText,text:i},{reg:e.previousLineText,text:t}].every((e=>!e.reg||(e.reg.lastIndex=0,e.reg.test(e.text)))))return e.action}if(e>=2&&n.length>0&&i.length>0)for(let r=0,s=this._brackets.length;r<s;r++){const e=this._brackets[r];if(e.openRegExp.test(n)&&e.closeRegExp.test(i))return{indentAction:v.IndentOutdent}}if(e>=2&&n.length>0)for(let r=0,s=this._brackets.length;r<s;r++){if(this._brackets[r].openRegExp.test(n))return{indentAction:v.Indent}}return null}static _createOpenBracketRegExp(e){let t=c.bm(e);return/\B/.test(t.charAt(0))||(t="\\b"+t),t+="\\s*$",j._safeRegExp(t)}static _createCloseBracketRegExp(e){let t=c.bm(e);return/\B/.test(t.charAt(t.length-1))||(t+="\\b"),t="^\\s*"+t,j._safeRegExp(t)}static _safeRegExp(e){try{return new RegExp(e)}catch(t){return(0,l.dz)(t),null}}}var K=n(3591),H=n(4001),G=n(4621),Q=n(3941),J=n(1788);class Y{constructor(e,t){this.languageId=e;const n=t.brackets?X(t.brackets):[],i=new J.VV((e=>{const t=new Set;return{info:new ee(this,e,t),closing:t}})),r=new J.VV((e=>{const t=new Set,n=new Set;return{info:new te(this,e,t,n),opening:t,openingColorized:n}}));for(const[o,a]of n){const e=i.get(o),t=r.get(a);e.closing.add(t.info),t.opening.add(e.info)}const s=t.colorizedBracketPairs?X(t.colorizedBracketPairs):n.filter((e=>!("<"===e[0]&&">"===e[1])));for(const[o,a]of s){const e=i.get(o),t=r.get(a);e.closing.add(t.info),t.openingColorized.add(e.info),t.opening.add(e.info)}this._openingBrackets=new Map([...i.cachedValues].map((([e,t])=>[e,t.info]))),this._closingBrackets=new Map([...r.cachedValues].map((([e,t])=>[e,t.info])))}get openingBrackets(){return[...this._openingBrackets.values()]}get closingBrackets(){return[...this._closingBrackets.values()]}getOpeningBracketInfo(e){return this._openingBrackets.get(e)}getClosingBracketInfo(e){return this._closingBrackets.get(e)}getBracketInfo(e){return this.getOpeningBracketInfo(e)||this.getClosingBracketInfo(e)}getBracketRegExp(e){return B(Array.from([...this._openingBrackets.keys(),...this._closingBrackets.keys()]),e)}}function X(e){return e.filter((([e,t])=>""!==e&&""!==t))}class Z{constructor(e,t){this.config=e,this.bracketText=t}get languageId(){return this.config.languageId}}class ee extends Z{constructor(e,t,n){super(e,t),this.openedBrackets=n,this.isOpeningBracket=!0}}class te extends Z{constructor(e,t,n,i){super(e,t),this.openingBrackets=n,this.openingColorizedBrackets=i,this.isOpeningBracket=!1}closes(e){return e.config===this.config&&this.openingBrackets.has(e)}closesColorized(e){return e.config===this.config&&this.openingColorizedBrackets.has(e)}getOpeningBrackets(){return[...this.openingBrackets]}}var ne=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},ie=function(e,t){return function(n,i){t(n,i,e)}};class re{constructor(e){this.languageId=e}affects(e){return!this.languageId||this.languageId===e}}const se=(0,K.u1)("languageConfigurationService");let oe=class extends r.jG{constructor(e,t){super(),this.configurationService=e,this.languageService=t,this._registry=this._register(new pe),this.onDidChangeEmitter=this._register(new i.vl),this.onDidChange=this.onDidChangeEmitter.event,this.configurations=new Map;const n=new Set(Object.values(ae));this._register(this.configurationService.onDidChangeConfiguration((e=>{const t=e.change.keys.some((e=>n.has(e))),i=e.change.overrides.filter((([e,t])=>t.some((e=>n.has(e))))).map((([e])=>e));if(t)this.configurations.clear(),this.onDidChangeEmitter.fire(new re(void 0));else for(const n of i)this.languageService.isRegisteredLanguageId(n)&&(this.configurations.delete(n),this.onDidChangeEmitter.fire(new re(n)))}))),this._register(this._registry.onDidChange((e=>{this.configurations.delete(e.languageId),this.onDidChangeEmitter.fire(new re(e.languageId))})))}register(e,t,n){return this._registry.register(e,t,n)}getLanguageConfiguration(e){let t=this.configurations.get(e);return t||(t=function(e,t,n,i){let r=t.getLanguageConfiguration(e);if(!r){if(!i.isRegisteredLanguageId(e))return new me(e,{});r=new me(e,{})}const s=function(e,t){const n=t.getValue(ae.brackets,{overrideIdentifier:e}),i=t.getValue(ae.colorizedBracketPairs,{overrideIdentifier:e});return{brackets:le(n),colorizedBracketPairs:le(i)}}(r.languageId,n),o=he([r.underlyingConfig,s]);return new me(r.languageId,o)}(e,this._registry,this.configurationService,this.languageService),this.configurations.set(e,t)),t}};oe=ne([ie(0,H.pG),ie(1,y.L)],oe);const ae={brackets:"editor.language.brackets",colorizedBracketPairs:"editor.language.colorizedBracketPairs"};function le(e){if(Array.isArray(e))return e.map((e=>{if(Array.isArray(e)&&2===e.length)return[e[0],e[1]]})).filter((e=>!!e))}class ce{constructor(e){this.languageId=e,this._resolved=null,this._entries=[],this._order=0,this._resolved=null}register(e,t){const n=new de(e,t,++this._order);return this._entries.push(n),this._resolved=null,(0,r.s)((()=>{for(let e=0;e<this._entries.length;e++)if(this._entries[e]===n){this._entries.splice(e,1),this._resolved=null;break}}))}getResolvedConfiguration(){if(!this._resolved){const e=this._resolve();e&&(this._resolved=new me(this.languageId,e))}return this._resolved}_resolve(){return 0===this._entries.length?null:(this._entries.sort(de.cmp),he(this._entries.map((e=>e.configuration))))}}function he(e){let t={comments:void 0,brackets:void 0,wordPattern:void 0,indentationRules:void 0,onEnterRules:void 0,autoClosingPairs:void 0,surroundingPairs:void 0,autoCloseBefore:void 0,folding:void 0,colorizedBracketPairs:void 0,__electricCharacterSupport:void 0};for(const n of e)t={comments:n.comments||t.comments,brackets:n.brackets||t.brackets,wordPattern:n.wordPattern||t.wordPattern,indentationRules:n.indentationRules||t.indentationRules,onEnterRules:n.onEnterRules||t.onEnterRules,autoClosingPairs:n.autoClosingPairs||t.autoClosingPairs,surroundingPairs:n.surroundingPairs||t.surroundingPairs,autoCloseBefore:n.autoCloseBefore||t.autoCloseBefore,folding:n.folding||t.folding,colorizedBracketPairs:n.colorizedBracketPairs||t.colorizedBracketPairs,__electricCharacterSupport:n.__electricCharacterSupport||t.__electricCharacterSupport};return t}class de{constructor(e,t,n){this.configuration=e,this.priority=t,this.order=n}static cmp(e,t){return e.priority===t.priority?e.order-t.order:e.priority-t.priority}}class ue{constructor(e){this.languageId=e}}class pe extends r.jG{constructor(){super(),this._entries=new Map,this._onDidChange=this._register(new i.vl),this.onDidChange=this._onDidChange.event,this._register(this.register(Q.vH,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],colorizedBracketPairs:[],folding:{offSide:!0}},0))}register(e,t,n=0){let i=this._entries.get(e);i||(i=new ce(e),this._entries.set(e,i));const s=i.register(t,n);return this._onDidChange.fire(new ue(e)),(0,r.s)((()=>{s.dispose(),this._onDidChange.fire(new ue(e))}))}getLanguageConfiguration(e){const t=this._entries.get(e);return t?.getResolvedConfiguration()||null}}class me{constructor(e,t){this.languageId=e,this.underlyingConfig=t,this._brackets=null,this._electricCharacter=null,this._onEnterSupport=this.underlyingConfig.brackets||this.underlyingConfig.indentationRules||this.underlyingConfig.onEnterRules?new j(this.underlyingConfig):null,this.comments=me._handleComments(this.underlyingConfig),this.characterPair=new S(this.underlyingConfig),this.wordDefinition=this.underlyingConfig.wordPattern||w.Ld,this.indentationRules=this.underlyingConfig.indentationRules,this.underlyingConfig.indentationRules?this.indentRulesSupport=new q(this.underlyingConfig.indentationRules):this.indentRulesSupport=null,this.foldingRules=this.underlyingConfig.folding||{},this.bracketsNew=new Y(e,this.underlyingConfig)}getWordDefinition(){return(0,w.Io)(this.wordDefinition)}get brackets(){return!this._brackets&&this.underlyingConfig.brackets&&(this._brackets=new A(this.languageId,this.underlyingConfig.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new U(this.brackets)),this._electricCharacter}onEnter(e,t,n,i){return this._onEnterSupport?this._onEnterSupport.onEnter(e,t,n,i):null}getAutoClosingPairs(){return new k(this.characterPair.getAutoClosingPairs())}getAutoCloseBeforeSet(e){return this.characterPair.getAutoCloseBeforeSet(e)}getSurroundingPairs(){return this.characterPair.getSurroundingPairs()}static _handleComments(e){const t=e.comments;if(!t)return null;const n={};if(t.lineComment&&(n.lineCommentToken=t.lineComment),t.blockComment){const[e,i]=t.blockComment;n.blockCommentStartToken=e,n.blockCommentEndToken=i}return n}}(0,G.v)(se,oe,1);var fe=n(6223);class ge{constructor(e,t,n,i){this.range=e,this.nestingLevel=t,this.nestingLevelOfEqualBracketType=n,this.isInvalid=i}}class be{constructor(e,t,n,i,r,s){this.range=e,this.openingBracketRange=t,this.closingBracketRange=n,this.nestingLevel=i,this.nestingLevelOfEqualBracketType=r,this.bracketPairNode=s}get openingBracketInfo(){return this.bracketPairNode.openingBracket.bracketInfo}}class ve extends be{constructor(e,t,n,i,r,s,o){super(e,t,n,i,r,s),this.minVisibleColumnIndentation=o}}var ye=n(973);function we(e){return 0===e}const _e=2**26;function ke(e,t){return e*_e+t}function Ce(e){const t=e,n=Math.floor(t/_e),i=t-n*_e;return new ye.W(n,i)}function Se(e,t){let n=e+t;return t>=_e&&(n-=e%_e),n}function xe(e,t){return e.reduce(((e,n)=>Se(e,t(n))),0)}function Ee(e,t){return e===t}function Fe(e,t){const n=e,i=t;if(i-n<=0)return 0;const r=Math.floor(n/_e),s=Math.floor(i/_e),o=i-s*_e;if(r===s){return ke(0,o-(n-r*_e))}return ke(s-r,o)}function Le(e,t){return e<t}function Ie(e,t){return e<=t}function Te(e,t){return e>=t}function Ne(e){return ke(e.lineNumber-1,e.column-1)}function Re(e,t){const n=e,i=Math.floor(n/_e),r=n-i*_e,s=t,o=Math.floor(s/_e),a=s-o*_e;return new f.Q(i+1,r+1,o+1,a+1)}class De{static fromModelContentChanges(e){return e.map((e=>{const t=f.Q.lift(e.range);return new De(Ne(t.getStartPosition()),Ne(t.getEndPosition()),function(e){const t=(0,c.uz)(e);return ke(t.length-1,t[t.length-1].length)}(e.text))})).reverse()}constructor(e,t,n){this.startOffset=e,this.endOffset=t,this.newLength=n}toString(){return`[${Ce(this.startOffset)}...${Ce(this.endOffset)}) -> ${Ce(this.newLength)}`}}class Ae{constructor(e){this.nextEditIdx=0,this.deltaOldToNewLineCount=0,this.deltaOldToNewColumnCount=0,this.deltaLineIdxInOld=-1,this.edits=e.map((e=>Me.from(e)))}getOffsetBeforeChange(e){return this.adjustNextEdit(e),this.translateCurToOld(e)}getDistanceToNextChange(e){this.adjustNextEdit(e);const t=this.edits[this.nextEditIdx],n=t?this.translateOldToCur(t.offsetObj):null;return null===n?null:Fe(e,n)}translateOldToCur(e){return e.lineCount===this.deltaLineIdxInOld?ke(e.lineCount+this.deltaOldToNewLineCount,e.columnCount+this.deltaOldToNewColumnCount):ke(e.lineCount+this.deltaOldToNewLineCount,e.columnCount)}translateCurToOld(e){const t=Ce(e);return t.lineCount-this.deltaOldToNewLineCount===this.deltaLineIdxInOld?ke(t.lineCount-this.deltaOldToNewLineCount,t.columnCount-this.deltaOldToNewColumnCount):ke(t.lineCount-this.deltaOldToNewLineCount,t.columnCount)}adjustNextEdit(e){for(;this.nextEditIdx<this.edits.length;){const t=this.edits[this.nextEditIdx],n=this.translateOldToCur(t.endOffsetAfterObj);if(!Ie(n,e))break;{this.nextEditIdx++;const e=Ce(n),i=Ce(this.translateOldToCur(t.endOffsetBeforeObj)),r=e.lineCount-i.lineCount;this.deltaOldToNewLineCount+=r;const s=this.deltaLineIdxInOld===t.endOffsetBeforeObj.lineCount?this.deltaOldToNewColumnCount:0,o=e.columnCount-i.columnCount;this.deltaOldToNewColumnCount=s+o,this.deltaLineIdxInOld=t.endOffsetBeforeObj.lineCount}}}}class Me{static from(e){return new Me(e.startOffset,e.endOffset,e.newLength)}constructor(e,t,n){this.endOffsetBeforeObj=Ce(t),this.endOffsetAfterObj=Ce(Se(e,n)),this.offsetObj=Ce(e)}}const Oe=[];class ze{static{this.cache=new Array(129)}static create(e,t){if(e<=128&&0===t.length){let n=ze.cache[e];return n||(n=new ze(e,t),ze.cache[e]=n),n}return new ze(e,t)}static{this.empty=ze.create(0,Oe)}static getEmpty(){return this.empty}constructor(e,t){this.items=e,this.additionalItems=t}add(e,t){const n=t.getKey(e);let i=n>>5;if(0===i){const e=1<<n|this.items;return e===this.items?this:ze.create(e,this.additionalItems)}i--;const r=this.additionalItems.slice(0);for(;r.length<i;)r.push(0);return r[i]|=1<<(31&n),ze.create(this.items,r)}merge(e){const t=this.items|e.items;if(this.additionalItems===Oe&&e.additionalItems===Oe)return t===this.items?this:t===e.items?e:ze.create(t,Oe);const n=[];for(let i=0;i<Math.max(this.additionalItems.length,e.additionalItems.length);i++){const t=this.additionalItems[i]||0,r=e.additionalItems[i]||0;n.push(t|r)}return ze.create(t,n)}intersects(e){if(0!==(this.items&e.items))return!0;for(let t=0;t<Math.min(this.additionalItems.length,e.additionalItems.length);t++)if(0!==(this.additionalItems[t]&e.additionalItems[t]))return!0;return!1}}const Pe={getKey:e=>e};class Be{constructor(){this.items=new Map}getKey(e){let t=this.items.get(e);return void 0===t&&(t=this.items.size,this.items.set(e,t)),t}}class We{get length(){return this._length}constructor(e){this._length=e}}class Ve extends We{static create(e,t,n){let i=e.length;return t&&(i=Se(i,t.length)),n&&(i=Se(i,n.length)),new Ve(i,e,t,n,t?t.missingOpeningBracketIds:ze.getEmpty())}get kind(){return 2}get listHeight(){return 0}get childrenLength(){return 3}getChild(e){switch(e){case 0:return this.openingBracket;case 1:return this.child;case 2:return this.closingBracket}throw new Error("Invalid child index")}get children(){const e=[];return e.push(this.openingBracket),this.child&&e.push(this.child),this.closingBracket&&e.push(this.closingBracket),e}constructor(e,t,n,i,r){super(e),this.openingBracket=t,this.child=n,this.closingBracket=i,this.missingOpeningBracketIds=r}canBeReused(e){return null!==this.closingBracket&&!e.intersects(this.missingOpeningBracketIds)}deepClone(){return new Ve(this.length,this.openingBracket.deepClone(),this.child&&this.child.deepClone(),this.closingBracket&&this.closingBracket.deepClone(),this.missingOpeningBracketIds)}computeMinIndentation(e,t){return this.child?this.child.computeMinIndentation(Se(e,this.openingBracket.length),t):Number.MAX_SAFE_INTEGER}}class Ue extends We{static create23(e,t,n,i=!1){let r=e.length,s=e.missingOpeningBracketIds;if(e.listHeight!==t.listHeight)throw new Error("Invalid list heights");if(r=Se(r,t.length),s=s.merge(t.missingOpeningBracketIds),n){if(e.listHeight!==n.listHeight)throw new Error("Invalid list heights");r=Se(r,n.length),s=s.merge(n.missingOpeningBracketIds)}return i?new qe(r,e.listHeight+1,e,t,n,s):new $e(r,e.listHeight+1,e,t,n,s)}static getEmpty(){return new Ke(0,0,[],ze.getEmpty())}get kind(){return 4}get missingOpeningBracketIds(){return this._missingOpeningBracketIds}constructor(e,t,n){super(e),this.listHeight=t,this._missingOpeningBracketIds=n,this.cachedMinIndentation=-1}throwIfImmutable(){}makeLastElementMutable(){this.throwIfImmutable();const e=this.childrenLength;if(0===e)return;const t=this.getChild(e-1),n=4===t.kind?t.toMutable():t;return t!==n&&this.setChild(e-1,n),n}makeFirstElementMutable(){this.throwIfImmutable();if(0===this.childrenLength)return;const e=this.getChild(0),t=4===e.kind?e.toMutable():e;return e!==t&&this.setChild(0,t),t}canBeReused(e){if(e.intersects(this.missingOpeningBracketIds))return!1;if(0===this.childrenLength)return!1;let t=this;for(;4===t.kind;){const e=t.childrenLength;if(0===e)throw new l.D7;t=t.getChild(e-1)}return t.canBeReused(e)}handleChildrenChanged(){this.throwIfImmutable();const e=this.childrenLength;let t=this.getChild(0).length,n=this.getChild(0).missingOpeningBracketIds;for(let i=1;i<e;i++){const e=this.getChild(i);t=Se(t,e.length),n=n.merge(e.missingOpeningBracketIds)}this._length=t,this._missingOpeningBracketIds=n,this.cachedMinIndentation=-1}computeMinIndentation(e,t){if(-1!==this.cachedMinIndentation)return this.cachedMinIndentation;let n=Number.MAX_SAFE_INTEGER,i=e;for(let r=0;r<this.childrenLength;r++){const e=this.getChild(r);e&&(n=Math.min(n,e.computeMinIndentation(i,t)),i=Se(i,e.length))}return this.cachedMinIndentation=n,n}}class $e extends Ue{get childrenLength(){return null!==this._item3?3:2}getChild(e){switch(e){case 0:return this._item1;case 1:return this._item2;case 2:return this._item3}throw new Error("Invalid child index")}setChild(e,t){switch(e){case 0:return void(this._item1=t);case 1:return void(this._item2=t);case 2:return void(this._item3=t)}throw new Error("Invalid child index")}get children(){return this._item3?[this._item1,this._item2,this._item3]:[this._item1,this._item2]}get item1(){return this._item1}get item2(){return this._item2}get item3(){return this._item3}constructor(e,t,n,i,r,s){super(e,t,s),this._item1=n,this._item2=i,this._item3=r}deepClone(){return new $e(this.length,this.listHeight,this._item1.deepClone(),this._item2.deepClone(),this._item3?this._item3.deepClone():null,this.missingOpeningBracketIds)}appendChildOfSameHeight(e){if(this._item3)throw new Error("Cannot append to a full (2,3) tree node");this.throwIfImmutable(),this._item3=e,this.handleChildrenChanged()}unappendChild(){if(!this._item3)throw new Error("Cannot remove from a non-full (2,3) tree node");this.throwIfImmutable();const e=this._item3;return this._item3=null,this.handleChildrenChanged(),e}prependChildOfSameHeight(e){if(this._item3)throw new Error("Cannot prepend to a full (2,3) tree node");this.throwIfImmutable(),this._item3=this._item2,this._item2=this._item1,this._item1=e,this.handleChildrenChanged()}unprependChild(){if(!this._item3)throw new Error("Cannot remove from a non-full (2,3) tree node");this.throwIfImmutable();const e=this._item1;return this._item1=this._item2,this._item2=this._item3,this._item3=null,this.handleChildrenChanged(),e}toMutable(){return this}}class qe extends $e{toMutable(){return new $e(this.length,this.listHeight,this.item1,this.item2,this.item3,this.missingOpeningBracketIds)}throwIfImmutable(){throw new Error("this instance is immutable")}}class je extends Ue{get childrenLength(){return this._children.length}getChild(e){return this._children[e]}setChild(e,t){this._children[e]=t}get children(){return this._children}constructor(e,t,n,i){super(e,t,i),this._children=n}deepClone(){const e=new Array(this._children.length);for(let t=0;t<this._children.length;t++)e[t]=this._children[t].deepClone();return new je(this.length,this.listHeight,e,this.missingOpeningBracketIds)}appendChildOfSameHeight(e){this.throwIfImmutable(),this._children.push(e),this.handleChildrenChanged()}unappendChild(){this.throwIfImmutable();const e=this._children.pop();return this.handleChildrenChanged(),e}prependChildOfSameHeight(e){this.throwIfImmutable(),this._children.unshift(e),this.handleChildrenChanged()}unprependChild(){this.throwIfImmutable();const e=this._children.shift();return this.handleChildrenChanged(),e}toMutable(){return this}}class Ke extends je{toMutable(){return new je(this.length,this.listHeight,[...this.children],this.missingOpeningBracketIds)}throwIfImmutable(){throw new Error("this instance is immutable")}}const He=[];class Ge extends We{get listHeight(){return 0}get childrenLength(){return 0}getChild(e){return null}get children(){return He}deepClone(){return this}}class Qe extends Ge{get kind(){return 0}get missingOpeningBracketIds(){return ze.getEmpty()}canBeReused(e){return!0}computeMinIndentation(e,t){const n=Ce(e),i=(0===n.columnCount?n.lineCount:n.lineCount+1)+1,r=(s=Se(e,this.length),Math.floor(s/_e)+1);var s;let o=Number.MAX_SAFE_INTEGER;for(let a=i;a<=r;a++){const e=t.getLineFirstNonWhitespaceColumn(a),n=t.getLineContent(a);if(0===e)continue;const i=u.visibleColumnFromColumn(n,e,t.getOptions().tabSize);o=Math.min(o,i)}return o}}class Je extends Ge{static create(e,t,n){return new Je(e,t,n)}get kind(){return 1}get missingOpeningBracketIds(){return ze.getEmpty()}constructor(e,t,n){super(e),this.bracketInfo=t,this.bracketIds=n}get text(){return this.bracketInfo.bracketText}get languageId(){return this.bracketInfo.languageId}canBeReused(e){return!1}computeMinIndentation(e,t){return Number.MAX_SAFE_INTEGER}}class Ye extends Ge{get kind(){return 3}constructor(e,t){super(t),this.missingOpeningBracketIds=e}canBeReused(e){return!e.intersects(this.missingOpeningBracketIds)}computeMinIndentation(e,t){return Number.MAX_SAFE_INTEGER}}var Xe=n(5982);class Ze{constructor(e,t,n,i,r){this.length=e,this.kind=t,this.bracketId=n,this.bracketIds=i,this.astNode=r}}class et{constructor(e,t){this.textModel=e,this.bracketTokens=t,this.reader=new tt(this.textModel,this.bracketTokens),this._offset=0,this.didPeek=!1,this.peeked=null,this.textBufferLineCount=e.getLineCount(),this.textBufferLastLineLength=e.getLineLength(this.textBufferLineCount)}get offset(){return this._offset}get length(){return ke(this.textBufferLineCount-1,this.textBufferLastLineLength)}skip(e){this.didPeek=!1,this._offset=Se(this._offset,e);const t=Ce(this._offset);this.reader.setPosition(t.lineCount,t.columnCount)}read(){let e;return this.peeked?(this.didPeek=!1,e=this.peeked):e=this.reader.read(),e&&(this._offset=Se(this._offset,e.length)),e}peek(){return this.didPeek||(this.peeked=this.reader.read(),this.didPeek=!0),this.peeked}}class tt{constructor(e,t){this.textModel=e,this.bracketTokens=t,this.lineIdx=0,this.line=null,this.lineCharOffset=0,this.lineTokens=null,this.lineTokenOffset=0,this.peekedToken=null,this.textBufferLineCount=e.getLineCount(),this.textBufferLastLineLength=e.getLineLength(this.textBufferLineCount)}setPosition(e,t){e===this.lineIdx?(this.lineCharOffset=t,null!==this.line&&(this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset))):(this.lineIdx=e,this.lineCharOffset=t,this.line=null),this.peekedToken=null}read(){if(this.peekedToken){const e=this.peekedToken;return this.peekedToken=null,this.lineCharOffset+=e.length,e}if(this.lineIdx>this.textBufferLineCount-1||this.lineIdx===this.textBufferLineCount-1&&this.lineCharOffset>=this.textBufferLastLineLength)return null;null===this.line&&(this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.line=this.lineTokens.getLineContent(),this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset));const e=this.lineIdx,t=this.lineCharOffset;let n=0;for(;;){const i=this.lineTokens,r=i.getCount();let s=null;if(this.lineTokenOffset<r){const o=i.getMetadata(this.lineTokenOffset);for(;this.lineTokenOffset+1<r&&o===i.getMetadata(this.lineTokenOffset+1);)this.lineTokenOffset++;const a=0===Xe.x.getTokenType(o),l=Xe.x.containsBalancedBrackets(o),c=i.getEndOffset(this.lineTokenOffset);if(l&&a&&this.lineCharOffset<c){const e=i.getLanguageId(this.lineTokenOffset),t=this.line.substring(this.lineCharOffset,c),n=this.bracketTokens.getSingleLanguageBracketTokens(e),r=n.regExpGlobal;if(r){r.lastIndex=0;const e=r.exec(t);e&&(s=n.getToken(e[0]),s&&(this.lineCharOffset+=e.index))}}if(n+=c-this.lineCharOffset,s){if(e!==this.lineIdx||t!==this.lineCharOffset){this.peekedToken=s;break}return this.lineCharOffset+=s.length,s}this.lineTokenOffset++,this.lineCharOffset=c}else{if(this.lineIdx===this.textBufferLineCount-1)break;if(this.lineIdx++,this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.lineTokenOffset=0,this.line=this.lineTokens.getLineContent(),this.lineCharOffset=0,n+=33,n>1e3)break}if(n>1500)break}const i=(r=e,s=t,o=this.lineIdx,a=this.lineCharOffset,r!==o?ke(o-r,a):ke(0,a-s));var r,s,o,a;return new Ze(i,0,-1,ze.getEmpty(),new Qe(i))}}class nt{constructor(e,t){this.text=e,this._offset=0,this.idx=0;const n=t.getRegExpStr(),i=n?new RegExp(n+"|\n","gi"):null,r=[];let s,o=0,a=0,l=0,c=0;const h=[];for(let p=0;p<60;p++)h.push(new Ze(ke(0,p),0,-1,ze.getEmpty(),new Qe(ke(0,p))));const d=[];for(let p=0;p<60;p++)d.push(new Ze(ke(1,p),0,-1,ze.getEmpty(),new Qe(ke(1,p))));if(i)for(i.lastIndex=0;null!==(s=i.exec(e));){const e=s.index,n=s[0];if("\n"===n)o++,a=e+1;else{if(l!==e){let t;if(c===o){const n=e-l;if(n<h.length)t=h[n];else{const e=ke(0,n);t=new Ze(e,0,-1,ze.getEmpty(),new Qe(e))}}else{const n=o-c,i=e-a;if(1===n&&i<d.length)t=d[i];else{const e=ke(n,i);t=new Ze(e,0,-1,ze.getEmpty(),new Qe(e))}}r.push(t)}r.push(t.getToken(n)),l=e+n.length,c=o}}const u=e.length;if(l!==u){const e=c===o?ke(0,u-l):ke(o-c,u-a);r.push(new Ze(e,0,-1,ze.getEmpty(),new Qe(e)))}this.length=ke(o,u-a),this.tokens=r}get offset(){return this._offset}read(){return this.tokens[this.idx++]||null}peek(){return this.tokens[this.idx]||null}skip(e){throw new l.EM}}class it{static createFromLanguage(e,t){function n(e){return t.getKey(`${e.languageId}:::${e.bracketText}`)}const i=new Map;for(const r of e.bracketsNew.openingBrackets){const e=ke(0,r.bracketText.length),t=n(r),s=ze.getEmpty().add(t,Pe);i.set(r.bracketText,new Ze(e,1,t,s,Je.create(e,r,s)))}for(const r of e.bracketsNew.closingBrackets){const e=ke(0,r.bracketText.length);let t=ze.getEmpty();const s=r.getOpeningBrackets();for(const i of s)t=t.add(n(i),Pe);i.set(r.bracketText,new Ze(e,2,n(s[0]),t,Je.create(e,r,t)))}return new it(i)}constructor(e){this.map=e,this.hasRegExp=!1,this._regExpGlobal=null}getRegExpStr(){if(this.isEmpty)return null;{const e=[...this.map.keys()];return e.sort(),e.reverse(),e.map((e=>function(e){let t=(0,c.bm)(e);/^[\w ]+/.test(e)&&(t=`\\b${t}`);/[\w ]+$/.test(e)&&(t=`${t}\\b`);return t}(e))).join("|")}}get regExpGlobal(){if(!this.hasRegExp){const e=this.getRegExpStr();this._regExpGlobal=e?new RegExp(e,"gi"):null,this.hasRegExp=!0}return this._regExpGlobal}getToken(e){return this.map.get(e.toLowerCase())}findClosingTokenText(e){for(const[t,n]of this.map)if(2===n.kind&&n.bracketIds.intersects(e))return t}get isEmpty(){return 0===this.map.size}}class rt{constructor(e,t){this.denseKeyProvider=e,this.getLanguageConfiguration=t,this.languageIdToBracketTokens=new Map}didLanguageChange(e){return this.languageIdToBracketTokens.has(e)}getSingleLanguageBracketTokens(e){let t=this.languageIdToBracketTokens.get(e);return t||(t=it.createFromLanguage(this.getLanguageConfiguration(e),this.denseKeyProvider),this.languageIdToBracketTokens.set(e,t)),t}}function st(e,t=!1){if(0===e.length)return null;if(1===e.length)return e[0];let n=e.length;for(;n>3;){const i=n>>1;for(let r=0;r<i;r++){const i=r<<1;e[r]=Ue.create23(e[i],e[i+1],i+3===n?e[i+2]:null,t)}n=i}return Ue.create23(e[0],e[1],n>=3?e[2]:null,t)}function ot(e,t){return Math.abs(e.listHeight-t.listHeight)}function at(e,t){return e.listHeight===t.listHeight?Ue.create23(e,t,null,!1):e.listHeight>t.listHeight?function(e,t){let n=e=e.toMutable();const i=[];let r;for(;;){if(t.listHeight===n.listHeight){r=t;break}if(4!==n.kind)throw new Error("unexpected");i.push(n),n=n.makeLastElementMutable()}for(let s=i.length-1;s>=0;s--){const e=i[s];r?e.childrenLength>=3?r=Ue.create23(e.unappendChild(),r,null,!1):(e.appendChildOfSameHeight(r),r=void 0):e.handleChildrenChanged()}return r?Ue.create23(e,r,null,!1):e}(e,t):function(e,t){let n=e=e.toMutable();const i=[];for(;t.listHeight!==n.listHeight;){if(4!==n.kind)throw new Error("unexpected");i.push(n),n=n.makeFirstElementMutable()}let r=t;for(let s=i.length-1;s>=0;s--){const e=i[s];r?e.childrenLength>=3?r=Ue.create23(r,e.unprependChild(),null,!1):(e.prependChildOfSameHeight(r),r=void 0):e.handleChildrenChanged()}return r?Ue.create23(r,e,null,!1):e}(t,e)}class lt{constructor(e){this.lastOffset=0,this.nextNodes=[e],this.offsets=[0],this.idxs=[]}readLongestNodeAt(e,t){if(Le(e,this.lastOffset))throw new Error("Invalid offset");for(this.lastOffset=e;;){const n=ht(this.nextNodes);if(!n)return;const i=ht(this.offsets);if(Le(e,i))return;if(Le(i,e))if(Se(i,n.length)<=e)this.nextNodeAfterCurrent();else{const e=ct(n);-1!==e?(this.nextNodes.push(n.getChild(e)),this.offsets.push(i),this.idxs.push(e)):this.nextNodeAfterCurrent()}else{if(t(n))return this.nextNodeAfterCurrent(),n;{const e=ct(n);if(-1===e)return void this.nextNodeAfterCurrent();this.nextNodes.push(n.getChild(e)),this.offsets.push(i),this.idxs.push(e)}}}}nextNodeAfterCurrent(){for(;;){const e=ht(this.offsets),t=ht(this.nextNodes);if(this.nextNodes.pop(),this.offsets.pop(),0===this.idxs.length)break;const n=ht(this.nextNodes),i=ct(n,this.idxs[this.idxs.length-1]);if(-1!==i){this.nextNodes.push(n.getChild(i)),this.offsets.push(Se(e,t.length)),this.idxs[this.idxs.length-1]=i;break}this.idxs.pop()}}}function ct(e,t=-1){for(;;){if(++t>=e.childrenLength)return-1;if(e.getChild(t))return t}}function ht(e){return e.length>0?e[e.length-1]:void 0}function dt(e,t,n,i){return new ut(e,t,n,i).parseDocument()}class ut{constructor(e,t,n,i){if(this.tokenizer=e,this.createImmutableLists=i,this._itemsConstructed=0,this._itemsFromCache=0,n&&i)throw new Error("Not supported");this.oldNodeReader=n?new lt(n):void 0,this.positionMapper=new Ae(t)}parseDocument(){this._itemsConstructed=0,this._itemsFromCache=0;let e=this.parseList(ze.getEmpty(),0);return e||(e=Ue.getEmpty()),e}parseList(e,t){const n=[];for(;;){let i=this.tryReadChildFromCache(e);if(!i){const n=this.tokenizer.peek();if(!n||2===n.kind&&n.bracketIds.intersects(e))break;i=this.parseChild(e,t+1)}4===i.kind&&0===i.childrenLength||n.push(i)}const i=this.oldNodeReader?function(e){if(0===e.length)return null;if(1===e.length)return e[0];let t=0;function n(){if(t>=e.length)return null;const n=t,i=e[n].listHeight;for(t++;t<e.length&&e[t].listHeight===i;)t++;return t-n>=2?st(0===n&&t===e.length?e:e.slice(n,t),!1):e[n]}let i=n(),r=n();if(!r)return i;for(let s=n();s;s=n())ot(i,r)<=ot(r,s)?(i=at(i,r),r=s):r=at(r,s);return at(i,r)}(n):st(n,this.createImmutableLists);return i}tryReadChildFromCache(e){if(this.oldNodeReader){const t=this.positionMapper.getDistanceToNextChange(this.tokenizer.offset);if(null===t||!we(t)){const n=this.oldNodeReader.readLongestNodeAt(this.positionMapper.getOffsetBeforeChange(this.tokenizer.offset),(n=>{if(null!==t&&!Le(n.length,t))return!1;return n.canBeReused(e)}));if(n)return this._itemsFromCache++,this.tokenizer.skip(n.length),n}}}parseChild(e,t){this._itemsConstructed++;const n=this.tokenizer.read();switch(n.kind){case 2:return new Ye(n.bracketIds,n.length);case 0:return n.astNode;case 1:{if(t>300)return new Qe(n.length);const i=e.merge(n.bracketIds),r=this.parseList(i,t+1),s=this.tokenizer.peek();return s&&2===s.kind&&(s.bracketId===n.bracketId||s.bracketIds.intersects(n.bracketIds))?(this.tokenizer.read(),Ve.create(n.astNode,r,s.astNode)):Ve.create(n.astNode,r,null)}default:throw new Error("unexpected")}}}function pt(e,t){if(0===e.length)return t;if(0===t.length)return e;const n=new o.j3(ft(e)),i=ft(t);i.push({modified:!1,lengthBefore:void 0,lengthAfter:void 0});let r=n.dequeue();function s(e){if(void 0===e){const e=n.takeWhile((e=>!0))||[];return r&&e.unshift(r),e}const t=[];for(;r&&!we(e);){const[i,s]=r.splitAt(e);t.push(i),e=Fe(i.lengthAfter,e),r=s??n.dequeue()}return we(e)||t.push(new mt(!1,e,e)),t}const a=[];function l(e,t,n){if(a.length>0&&Ee(a[a.length-1].endOffset,e)){const e=a[a.length-1];a[a.length-1]=new De(e.startOffset,t,Se(e.newLength,n))}else a.push({startOffset:e,endOffset:t,newLength:n})}let c=0;for(const o of i){const e=s(o.lengthBefore);if(o.modified){const t=Se(c,xe(e,(e=>e.lengthBefore)));l(c,t,o.lengthAfter),c=t}else for(const t of e){const e=c;c=Se(c,t.lengthBefore),t.modified&&l(e,c,t.lengthAfter)}}return a}class mt{constructor(e,t,n){this.modified=e,this.lengthBefore=t,this.lengthAfter=n}splitAt(e){const t=Fe(e,this.lengthAfter);return Ee(t,0)?[this,void 0]:this.modified?[new mt(this.modified,this.lengthBefore,e),new mt(this.modified,0,t)]:[new mt(this.modified,e,e),new mt(this.modified,t,t)]}toString(){return`${this.modified?"M":"U"}:${Ce(this.lengthBefore)} -> ${Ce(this.lengthAfter)}`}}function ft(e){const t=[];let n=0;for(const i of e){const e=Fe(n,i.startOffset);we(e)||t.push(new mt(!1,e,e));const r=Fe(i.startOffset,i.endOffset);t.push(new mt(!0,r,i.newLength)),n=i.endOffset}return t}class gt extends r.jG{didLanguageChange(e){return this.brackets.didLanguageChange(e)}constructor(e,t){if(super(),this.textModel=e,this.getLanguageConfiguration=t,this.didChangeEmitter=new i.vl,this.denseKeyProvider=new Be,this.brackets=new rt(this.denseKeyProvider,this.getLanguageConfiguration),this.onDidChange=this.didChangeEmitter.event,this.queuedTextEditsForInitialAstWithoutTokens=[],this.queuedTextEdits=[],e.tokenization.hasTokens)2===e.tokenization.backgroundTokenizationState?(this.initialAstWithoutTokens=void 0,this.astWithTokens=this.parseDocumentFromTextBuffer([],void 0,!1)):(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer([],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens);else{const e=this.brackets.getSingleLanguageBracketTokens(this.textModel.getLanguageId()),t=new nt(this.textModel.getValue(),e);this.initialAstWithoutTokens=dt(t,[],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens}}handleDidChangeBackgroundTokenizationState(){if(2===this.textModel.tokenization.backgroundTokenizationState){const e=void 0===this.initialAstWithoutTokens;this.initialAstWithoutTokens=void 0,e||this.didChangeEmitter.fire()}}handleDidChangeTokens({ranges:e}){const t=e.map((e=>new De(ke(e.fromLineNumber-1,0),ke(e.toLineNumber,0),ke(e.toLineNumber-e.fromLineNumber+1,0))));this.handleEdits(t,!0),this.initialAstWithoutTokens||this.didChangeEmitter.fire()}handleContentChanged(e){const t=De.fromModelContentChanges(e.changes);this.handleEdits(t,!1)}handleEdits(e,t){const n=pt(this.queuedTextEdits,e);this.queuedTextEdits=n,this.initialAstWithoutTokens&&!t&&(this.queuedTextEditsForInitialAstWithoutTokens=pt(this.queuedTextEditsForInitialAstWithoutTokens,e))}flushQueue(){this.queuedTextEdits.length>0&&(this.astWithTokens=this.parseDocumentFromTextBuffer(this.queuedTextEdits,this.astWithTokens,!1),this.queuedTextEdits=[]),this.queuedTextEditsForInitialAstWithoutTokens.length>0&&(this.initialAstWithoutTokens&&(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer(this.queuedTextEditsForInitialAstWithoutTokens,this.initialAstWithoutTokens,!1)),this.queuedTextEditsForInitialAstWithoutTokens=[])}parseDocumentFromTextBuffer(e,t,n){const i=t;return dt(new et(this.textModel,this.brackets),e,i,n)}getBracketsInRange(e,t){this.flushQueue();const n=ke(e.startLineNumber-1,e.startColumn-1),i=ke(e.endLineNumber-1,e.endColumn-1);return new o.c1((e=>{const r=this.initialAstWithoutTokens||this.astWithTokens;yt(r,0,r.length,n,i,e,0,0,new Map,t)}))}getBracketPairsInRange(e,t){this.flushQueue();const n=Ne(e.getStartPosition()),i=Ne(e.getEndPosition());return new o.c1((e=>{const r=this.initialAstWithoutTokens||this.astWithTokens,s=new wt(e,t,this.textModel);_t(r,0,r.length,n,i,s,0,new Map)}))}getFirstBracketAfter(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return vt(t,0,t.length,Ne(e))}getFirstBracketBefore(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return bt(t,0,t.length,Ne(e))}}function bt(e,t,n,i){if(4===e.kind||2===e.kind){const r=[];for(const i of e.children)n=Se(t,i.length),r.push({nodeOffsetStart:t,nodeOffsetEnd:n}),t=n;for(let t=r.length-1;t>=0;t--){const{nodeOffsetStart:n,nodeOffsetEnd:s}=r[t];if(Le(n,i)){const r=bt(e.children[t],n,s,i);if(r)return r}}return null}if(3===e.kind)return null;if(1===e.kind){const i=Re(t,n);return{bracketInfo:e.bracketInfo,range:i}}return null}function vt(e,t,n,i){if(4===e.kind||2===e.kind){for(const r of e.children){if(Le(i,n=Se(t,r.length))){const e=vt(r,t,n,i);if(e)return e}t=n}return null}if(3===e.kind)return null;if(1===e.kind){const i=Re(t,n);return{bracketInfo:e.bracketInfo,range:i}}return null}function yt(e,t,n,i,r,s,o,a,l,c,h=!1){if(o>200)return!0;e:for(;;)switch(e.kind){case 4:{const a=e.childrenLength;for(let h=0;h<a;h++){const a=e.getChild(h);if(a){if(n=Se(t,a.length),Ie(t,r)&&Te(n,i)){if(Te(n,r)){e=a;continue e}if(!yt(a,t,n,i,r,s,o,0,l,c))return!1}t=n}}return!0}case 2:{const h=!c||!e.closingBracket||e.closingBracket.bracketInfo.closesColorized(e.openingBracket.bracketInfo);let d=0;if(l){let t=l.get(e.openingBracket.text);void 0===t&&(t=0),d=t,h&&(t++,l.set(e.openingBracket.text,t))}const u=e.childrenLength;for(let p=0;p<u;p++){const u=e.getChild(p);if(u){if(n=Se(t,u.length),Ie(t,r)&&Te(n,i)){if(Te(n,r)&&1!==u.kind){e=u,h?(o++,a=d+1):a=d;continue e}if(h||1!==u.kind||!e.closingBracket){if(!yt(u,t,n,i,r,s,h?o+1:o,h?d+1:d,l,c,!e.closingBracket))return!1}}t=n}}return l?.set(e.openingBracket.text,d),!0}case 3:{const e=Re(t,n);return s(new ge(e,o-1,0,!0))}case 1:{const e=Re(t,n);return s(new ge(e,o-1,a-1,h))}case 0:return!0}}class wt{constructor(e,t,n){this.push=e,this.includeMinIndentation=t,this.textModel=n}}function _t(e,t,n,i,r,s,o,a){if(o>200)return!0;let l=!0;if(2===e.kind){let c=0;if(a){let t=a.get(e.openingBracket.text);void 0===t&&(t=0),c=t,t++,a.set(e.openingBracket.text,t)}const h=Se(t,e.openingBracket.length);let d=-1;if(s.includeMinIndentation&&(d=e.computeMinIndentation(t,s.textModel)),l=s.push(new ve(Re(t,n),Re(t,h),e.closingBracket?Re(Se(h,e.child?.length||0),n):void 0,o,c,e,d)),t=h,l&&e.child){const c=e.child;if(n=Se(t,c.length),Ie(t,r)&&Te(n,i)&&(l=_t(c,t,n,i,r,s,o+1,a),!l))return!1}a?.set(e.openingBracket.text,c)}else{let n=t;for(const t of e.children){const e=n;if(n=Se(n,t.length),Ie(e,r)&&Ie(i,n)&&(l=_t(t,e,n,i,r,s,o,a),!l))return!1}}return l}class kt extends r.jG{get canBuildAST(){return this.textModel.getValueLength()<=5e6}constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t,this.bracketPairsTree=this._register(new r.HE),this.onDidChangeEmitter=new i.vl,this.onDidChange=this.onDidChangeEmitter.event,this.bracketsRequested=!1}handleLanguageConfigurationServiceChange(e){e.languageId&&!this.bracketPairsTree.value?.object.didLanguageChange(e.languageId)||(this.bracketPairsTree.clear(),this.updateBracketPairsTree())}handleDidChangeOptions(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeLanguage(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeContent(e){this.bracketPairsTree.value?.object.handleContentChanged(e)}handleDidChangeBackgroundTokenizationState(){this.bracketPairsTree.value?.object.handleDidChangeBackgroundTokenizationState()}handleDidChangeTokens(e){this.bracketPairsTree.value?.object.handleDidChangeTokens(e)}updateBracketPairsTree(){if(this.bracketsRequested&&this.canBuildAST){if(!this.bracketPairsTree.value){const n=new r.Cm;this.bracketPairsTree.value=(e=n.add(new gt(this.textModel,(e=>this.languageConfigurationService.getLanguageConfiguration(e)))),t=n,{object:e,dispose:()=>t?.dispose()}),n.add(this.bracketPairsTree.value.object.onDidChange((e=>this.onDidChangeEmitter.fire(e)))),this.onDidChangeEmitter.fire()}}else this.bracketPairsTree.value&&(this.bracketPairsTree.clear(),this.onDidChangeEmitter.fire());var e,t}getBracketPairsInRange(e){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketPairsInRange(e,!1)||o.c1.empty}getBracketPairsInRangeWithMinIndentation(e){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketPairsInRange(e,!0)||o.c1.empty}getBracketsInRange(e,t=!1){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketsInRange(e,t)||o.c1.empty}findMatchingBracketUp(e,t,n){const i=this.textModel.validatePosition(t),r=this.textModel.getLanguageIdAtPosition(i.lineNumber,i.column);if(this.canBuildAST){const n=this.languageConfigurationService.getLanguageConfiguration(r).bracketsNew.getClosingBracketInfo(e);if(!n)return null;const i=this.getBracketPairsInRange(f.Q.fromPositions(t,t)).findLast((e=>n.closes(e.openingBracketInfo)));return i?i.openingBracketRange:null}{const t=e.toLowerCase(),s=this.languageConfigurationService.getLanguageConfiguration(r).brackets;if(!s)return null;const o=s.textIsBracket[t];return o?xt(this._findMatchingBracketUp(o,i,Ct(n))):null}}matchBracket(e,t){if(this.canBuildAST){const t=this.getBracketPairsInRange(f.Q.fromPositions(e,e)).filter((t=>void 0!==t.closingBracketRange&&(t.openingBracketRange.containsPosition(e)||t.closingBracketRange.containsPosition(e)))).findLastMaxBy((0,o.VE)((t=>t.openingBracketRange.containsPosition(e)?t.openingBracketRange:t.closingBracketRange),f.Q.compareRangesUsingStarts));return t?[t.openingBracketRange,t.closingBracketRange]:null}{const n=Ct(t);return this._matchBracket(this.textModel.validatePosition(e),n)}}_establishBracketSearchOffsets(e,t,n,i){const r=t.getCount(),s=t.getLanguageId(i);let o=Math.max(0,e.column-1-n.maxBracketLength);for(let l=i-1;l>=0;l--){const e=t.getEndOffset(l);if(e<=o)break;if(x(t.getStandardTokenType(l))||t.getLanguageId(l)!==s){o=e;break}}let a=Math.min(t.getLineContent().length,e.column-1+n.maxBracketLength);for(let l=i+1;l<r;l++){const e=t.getStartOffset(l);if(e>=a)break;if(x(t.getStandardTokenType(l))||t.getLanguageId(l)!==s){a=e;break}}return{searchStartOffset:o,searchEndOffset:a}}_matchBracket(e,t){const n=e.lineNumber,i=this.textModel.tokenization.getLineTokens(n),r=this.textModel.getLineContent(n),s=i.findTokenIndexAtOffset(e.column-1);if(s<0)return null;const o=this.languageConfigurationService.getLanguageConfiguration(i.getLanguageId(s)).brackets;if(o&&!x(i.getStandardTokenType(s))){let{searchStartOffset:a,searchEndOffset:l}=this._establishBracketSearchOffsets(e,i,o,s),c=null;for(;;){const i=V.findNextBracketInRange(o.forwardRegex,n,r,a,l);if(!i)break;if(i.startColumn<=e.column&&e.column<=i.endColumn){const e=r.substring(i.startColumn-1,i.endColumn-1).toLowerCase(),n=this._matchFoundBracket(i,o.textIsBracket[e],o.textIsOpenBracket[e],t);if(n){if(n instanceof St)return null;c=n}}a=i.endColumn-1}if(c)return c}if(s>0&&i.getStartOffset(s)===e.column-1){const o=s-1,a=this.languageConfigurationService.getLanguageConfiguration(i.getLanguageId(o)).brackets;if(a&&!x(i.getStandardTokenType(o))){const{searchStartOffset:s,searchEndOffset:l}=this._establishBracketSearchOffsets(e,i,a,o),c=V.findPrevBracketInRange(a.reversedRegex,n,r,s,l);if(c&&c.startColumn<=e.column&&e.column<=c.endColumn){const e=r.substring(c.startColumn-1,c.endColumn-1).toLowerCase(),n=this._matchFoundBracket(c,a.textIsBracket[e],a.textIsOpenBracket[e],t);if(n)return n instanceof St?null:n}}}return null}_matchFoundBracket(e,t,n,i){if(!t)return null;const r=n?this._findMatchingBracketDown(t,e.getEndPosition(),i):this._findMatchingBracketUp(t,e.getStartPosition(),i);return r?r instanceof St?r:[e,r]:null}_findMatchingBracketUp(e,t,n){const i=e.languageId,r=e.reversedRegex;let s=-1,o=0;const a=(t,i,a,l)=>{for(;;){if(n&&++o%100===0&&!n())return St.INSTANCE;const c=V.findPrevBracketInRange(r,t,i,a,l);if(!c)break;const h=i.substring(c.startColumn-1,c.endColumn-1).toLowerCase();if(e.isOpen(h)?s++:e.isClose(h)&&s--,0===s)return c;l=c.startColumn-1}return null};for(let l=t.lineNumber;l>=1;l--){const e=this.textModel.tokenization.getLineTokens(l),n=e.getCount(),r=this.textModel.getLineContent(l);let s=n-1,o=r.length,c=r.length;l===t.lineNumber&&(s=e.findTokenIndexAtOffset(t.column-1),o=t.column-1,c=t.column-1);let h=!0;for(;s>=0;s--){const t=e.getLanguageId(s)===i&&!x(e.getStandardTokenType(s));if(t)h?o=e.getStartOffset(s):(o=e.getStartOffset(s),c=e.getEndOffset(s));else if(h&&o!==c){const e=a(l,r,o,c);if(e)return e}h=t}if(h&&o!==c){const e=a(l,r,o,c);if(e)return e}}return null}_findMatchingBracketDown(e,t,n){const i=e.languageId,r=e.forwardRegex;let s=1,o=0;const a=(t,i,a,l)=>{for(;;){if(n&&++o%100===0&&!n())return St.INSTANCE;const c=V.findNextBracketInRange(r,t,i,a,l);if(!c)break;const h=i.substring(c.startColumn-1,c.endColumn-1).toLowerCase();if(e.isOpen(h)?s++:e.isClose(h)&&s--,0===s)return c;a=c.endColumn-1}return null},l=this.textModel.getLineCount();for(let c=t.lineNumber;c<=l;c++){const e=this.textModel.tokenization.getLineTokens(c),n=e.getCount(),r=this.textModel.getLineContent(c);let s=0,o=0,l=0;c===t.lineNumber&&(s=e.findTokenIndexAtOffset(t.column-1),o=t.column-1,l=t.column-1);let h=!0;for(;s<n;s++){const t=e.getLanguageId(s)===i&&!x(e.getStandardTokenType(s));if(t)h||(o=e.getStartOffset(s)),l=e.getEndOffset(s);else if(h&&o!==l){const e=a(c,r,o,l);if(e)return e}h=t}if(h&&o!==l){const e=a(c,r,o,l);if(e)return e}}return null}findPrevBracket(e){const t=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getFirstBracketBefore(t)||null;let n=null,i=null,r=null;for(let s=t.lineNumber;s>=1;s--){const e=this.textModel.tokenization.getLineTokens(s),o=e.getCount(),a=this.textModel.getLineContent(s);let l=o-1,c=a.length,h=a.length;if(s===t.lineNumber){l=e.findTokenIndexAtOffset(t.column-1),c=t.column-1,h=t.column-1;const s=e.getLanguageId(l);n!==s&&(n=s,i=this.languageConfigurationService.getLanguageConfiguration(n).brackets,r=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew)}let d=!0;for(;l>=0;l--){const t=e.getLanguageId(l);if(n!==t){if(i&&r&&d&&c!==h){const e=V.findPrevBracketInRange(i.reversedRegex,s,a,c,h);if(e)return this._toFoundBracket(r,e);d=!1}n=t,i=this.languageConfigurationService.getLanguageConfiguration(n).brackets,r=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew}const o=!!i&&!x(e.getStandardTokenType(l));if(o)d?c=e.getStartOffset(l):(c=e.getStartOffset(l),h=e.getEndOffset(l));else if(r&&i&&d&&c!==h){const e=V.findPrevBracketInRange(i.reversedRegex,s,a,c,h);if(e)return this._toFoundBracket(r,e)}d=o}if(r&&i&&d&&c!==h){const e=V.findPrevBracketInRange(i.reversedRegex,s,a,c,h);if(e)return this._toFoundBracket(r,e)}}return null}findNextBracket(e){const t=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getFirstBracketAfter(t)||null;const n=this.textModel.getLineCount();let i=null,r=null,s=null;for(let o=t.lineNumber;o<=n;o++){const e=this.textModel.tokenization.getLineTokens(o),n=e.getCount(),a=this.textModel.getLineContent(o);let l=0,c=0,h=0;if(o===t.lineNumber){l=e.findTokenIndexAtOffset(t.column-1),c=t.column-1,h=t.column-1;const n=e.getLanguageId(l);i!==n&&(i=n,r=this.languageConfigurationService.getLanguageConfiguration(i).brackets,s=this.languageConfigurationService.getLanguageConfiguration(i).bracketsNew)}let d=!0;for(;l<n;l++){const t=e.getLanguageId(l);if(i!==t){if(s&&r&&d&&c!==h){const e=V.findNextBracketInRange(r.forwardRegex,o,a,c,h);if(e)return this._toFoundBracket(s,e);d=!1}i=t,r=this.languageConfigurationService.getLanguageConfiguration(i).brackets,s=this.languageConfigurationService.getLanguageConfiguration(i).bracketsNew}const n=!!r&&!x(e.getStandardTokenType(l));if(n)d||(c=e.getStartOffset(l)),h=e.getEndOffset(l);else if(s&&r&&d&&c!==h){const e=V.findNextBracketInRange(r.forwardRegex,o,a,c,h);if(e)return this._toFoundBracket(s,e)}d=n}if(s&&r&&d&&c!==h){const e=V.findNextBracketInRange(r.forwardRegex,o,a,c,h);if(e)return this._toFoundBracket(s,e)}}return null}findEnclosingBrackets(e,t){const n=this.textModel.validatePosition(e);if(this.canBuildAST){const e=f.Q.fromPositions(n),t=this.getBracketPairsInRange(f.Q.fromPositions(n,n)).findLast((t=>void 0!==t.closingBracketRange&&t.range.strictContainsRange(e)));return t?[t.openingBracketRange,t.closingBracketRange]:null}const i=Ct(t),r=this.textModel.getLineCount(),s=new Map;let o=[];const a=(e,t)=>{if(!s.has(e)){const n=[];for(let e=0,i=t?t.brackets.length:0;e<i;e++)n[e]=0;s.set(e,n)}o=s.get(e)};let l=0;const c=(e,t,n,r,s)=>{for(;;){if(i&&++l%100===0&&!i())return St.INSTANCE;const a=V.findNextBracketInRange(e.forwardRegex,t,n,r,s);if(!a)break;const c=n.substring(a.startColumn-1,a.endColumn-1).toLowerCase(),h=e.textIsBracket[c];if(h&&(h.isOpen(c)?o[h.index]++:h.isClose(c)&&o[h.index]--,-1===o[h.index]))return this._matchFoundBracket(a,h,!1,i);r=a.endColumn-1}return null};let h=null,d=null;for(let u=n.lineNumber;u<=r;u++){const e=this.textModel.tokenization.getLineTokens(u),t=e.getCount(),i=this.textModel.getLineContent(u);let r=0,s=0,o=0;if(u===n.lineNumber){r=e.findTokenIndexAtOffset(n.column-1),s=n.column-1,o=n.column-1;const t=e.getLanguageId(r);h!==t&&(h=t,d=this.languageConfigurationService.getLanguageConfiguration(h).brackets,a(h,d))}let l=!0;for(;r<t;r++){const t=e.getLanguageId(r);if(h!==t){if(d&&l&&s!==o){const e=c(d,u,i,s,o);if(e)return xt(e);l=!1}h=t,d=this.languageConfigurationService.getLanguageConfiguration(h).brackets,a(h,d)}const n=!!d&&!x(e.getStandardTokenType(r));if(n)l||(s=e.getStartOffset(r)),o=e.getEndOffset(r);else if(d&&l&&s!==o){const e=c(d,u,i,s,o);if(e)return xt(e)}l=n}if(d&&l&&s!==o){const e=c(d,u,i,s,o);if(e)return xt(e)}}return null}_toFoundBracket(e,t){if(!t)return null;let n=this.textModel.getValueInRange(t);n=n.toLowerCase();const i=e.getBracketInfo(n);return i?{range:t,bracketInfo:i}:null}}function Ct(e){if("undefined"===typeof e)return()=>!0;{const t=Date.now();return()=>Date.now()-t<=e}}class St{static{this.INSTANCE=new St}constructor(){this._searchCanceledBrand=void 0}}function xt(e){return e instanceof St?null:e}var Et=n(7119),Ft=n(5724);class Lt extends r.jG{constructor(e){super(),this.textModel=e,this.colorProvider=new It,this.onDidChangeEmitter=new i.vl,this.onDidChange=this.onDidChangeEmitter.event,this.colorizationOptions=e.getOptions().bracketPairColorizationOptions,this._register(e.bracketPairs.onDidChange((e=>{this.onDidChangeEmitter.fire()})))}handleDidChangeOptions(e){this.colorizationOptions=this.textModel.getOptions().bracketPairColorizationOptions}getDecorationsInRange(e,t,n,i){if(i)return[];if(void 0===t)return[];if(!this.colorizationOptions.enabled)return[];return this.textModel.bracketPairs.getBracketsInRange(e,!0).map((e=>({id:`bracket${e.range.toString()}-${e.nestingLevel}`,options:{description:"BracketPairColorization",inlineClassName:this.colorProvider.getInlineClassName(e,this.colorizationOptions.independentColorPoolPerBracketType)},ownerId:0,range:e.range}))).toArray()}getAllDecorations(e,t){return void 0===e?[]:this.colorizationOptions.enabled?this.getDecorationsInRange(new f.Q(1,1,this.textModel.getLineCount(),1),e,t):[]}}class It{constructor(){this.unexpectedClosingBracketClassName="unexpected-closing-bracket"}getInlineClassName(e,t){return e.isInvalid?this.unexpectedClosingBracketClassName:this.getInlineClassNameOfLevel(t?e.nestingLevelOfEqualBracketType:e.nestingLevel)}getInlineClassNameOfLevel(e){return"bracket-highlighting-"+e%30}}(0,Ft.zy)(((e,t)=>{const n=[Et.sN,Et.lQ,Et.ss,Et.l5,Et.sH,Et.zp],i=new It;t.addRule(`.monaco-editor .${i.unexpectedClosingBracketClassName} { color: ${e.getColor(Et.s7)}; }`);const r=n.map((t=>e.getColor(t))).filter((e=>!!e)).filter((e=>!e.isTransparent()));for(let s=0;s<30;s++){const e=r[s%r.length];t.addRule(`.monaco-editor .${i.getInlineClassNameOfLevel(s)} { color: ${e}; }`)}}));var Tt=n(8209);function Nt(e){return e.replace(/\n/g,"\\n").replace(/\r/g,"\\r")}class Rt{get oldLength(){return this.oldText.length}get oldEnd(){return this.oldPosition+this.oldText.length}get newLength(){return this.newText.length}get newEnd(){return this.newPosition+this.newText.length}constructor(e,t,n,i){this.oldPosition=e,this.oldText=t,this.newPosition=n,this.newText=i}toString(){return 0===this.oldText.length?`(insert@${this.oldPosition} "${Nt(this.newText)}")`:0===this.newText.length?`(delete@${this.oldPosition} "${Nt(this.oldText)}")`:`(replace@${this.oldPosition} "${Nt(this.oldText)}" with "${Nt(this.newText)}")`}static _writeStringSize(e){return 4+2*e.length}static _writeString(e,t,n){const i=t.length;E.Sw(e,i,n),n+=4;for(let r=0;r<i;r++)E.gN(e,t.charCodeAt(r),n),n+=2;return n}static _readString(e,t){const n=E.bb(e,t);return R(e,t+=4,n)}writeSize(){return 8+Rt._writeStringSize(this.oldText)+Rt._writeStringSize(this.newText)}write(e,t){return E.Sw(e,this.oldPosition,t),t+=4,E.Sw(e,this.newPosition,t),t+=4,t=Rt._writeString(e,this.oldText,t),t=Rt._writeString(e,this.newText,t)}static read(e,t,n){const i=E.bb(e,t);t+=4;const r=E.bb(e,t);t+=4;const s=Rt._readString(e,t);t+=Rt._writeStringSize(s);const o=Rt._readString(e,t);return t+=Rt._writeStringSize(o),n.push(new Rt(i,s,r,o)),t}}class Dt{constructor(e,t){this._prevEdits=e,this._currEdits=t,this._result=[],this._resultLen=0,this._prevLen=this._prevEdits.length,this._prevDeltaOffset=0,this._currLen=this._currEdits.length,this._currDeltaOffset=0}compress(){let e=0,t=0,n=this._getPrev(e),i=this._getCurr(t);for(;e<this._prevLen||t<this._currLen;){if(null===n){this._acceptCurr(i),i=this._getCurr(++t);continue}if(null===i){this._acceptPrev(n),n=this._getPrev(++e);continue}if(i.oldEnd<=n.newPosition){this._acceptCurr(i),i=this._getCurr(++t);continue}if(n.newEnd<=i.oldPosition){this._acceptPrev(n),n=this._getPrev(++e);continue}if(i.oldPosition<n.newPosition){const[e,t]=Dt._splitCurr(i,n.newPosition-i.oldPosition);this._acceptCurr(e),i=t;continue}if(n.newPosition<i.oldPosition){const[e,t]=Dt._splitPrev(n,i.oldPosition-n.newPosition);this._acceptPrev(e),n=t;continue}let r,s;if(i.oldEnd===n.newEnd)r=n,s=i,n=this._getPrev(++e),i=this._getCurr(++t);else if(i.oldEnd<n.newEnd){const[e,o]=Dt._splitPrev(n,i.oldLength);r=e,s=i,n=o,i=this._getCurr(++t)}else{const[t,o]=Dt._splitCurr(i,n.newLength);r=n,s=t,n=this._getPrev(++e),i=o}this._result[this._resultLen++]=new Rt(r.oldPosition,r.oldText,s.newPosition,s.newText),this._prevDeltaOffset+=r.newLength-r.oldLength,this._currDeltaOffset+=s.newLength-s.oldLength}const r=Dt._merge(this._result);return Dt._removeNoOps(r)}_acceptCurr(e){this._result[this._resultLen++]=Dt._rebaseCurr(this._prevDeltaOffset,e),this._currDeltaOffset+=e.newLength-e.oldLength}_getCurr(e){return e<this._currLen?this._currEdits[e]:null}_acceptPrev(e){this._result[this._resultLen++]=Dt._rebasePrev(this._currDeltaOffset,e),this._prevDeltaOffset+=e.newLength-e.oldLength}_getPrev(e){return e<this._prevLen?this._prevEdits[e]:null}static _rebaseCurr(e,t){return new Rt(t.oldPosition-e,t.oldText,t.newPosition,t.newText)}static _rebasePrev(e,t){return new Rt(t.oldPosition,t.oldText,t.newPosition+e,t.newText)}static _splitPrev(e,t){const n=e.newText.substr(0,t),i=e.newText.substr(t);return[new Rt(e.oldPosition,e.oldText,e.newPosition,n),new Rt(e.oldEnd,"",e.newPosition+t,i)]}static _splitCurr(e,t){const n=e.oldText.substr(0,t),i=e.oldText.substr(t);return[new Rt(e.oldPosition,n,e.newPosition,e.newText),new Rt(e.oldPosition+t,i,e.newEnd,"")]}static _merge(e){if(0===e.length)return e;const t=[];let n=0,i=e[0];for(let r=1;r<e.length;r++){const s=e[r];i.oldEnd===s.oldPosition?i=new Rt(i.oldPosition,i.oldText+s.oldText,i.newPosition,i.newText+s.newText):(t[n++]=i,i=s)}return t[n++]=i,t}static _removeNoOps(e){if(0===e.length)return e;const t=[];let n=0;for(let i=0;i<e.length;i++){const r=e[i];r.oldText!==r.newText&&(t[n++]=r)}return t}}var At=n(9403);function Mt(e){return e.toString()}class Ot{static create(e,t){const n=e.getAlternativeVersionId(),i=Bt(e);return new Ot(n,n,i,i,t,t,[])}constructor(e,t,n,i,r,s,o){this.beforeVersionId=e,this.afterVersionId=t,this.beforeEOL=n,this.afterEOL=i,this.beforeCursorState=r,this.afterCursorState=s,this.changes=o}append(e,t,n,i,r){var s,o;t.length>0&&(this.changes=(s=this.changes,o=t,null===s||0===s.length?o:new Dt(s,o).compress())),this.afterEOL=n,this.afterVersionId=i,this.afterCursorState=r}static _writeSelectionsSize(e){return 4+16*(e?e.length:0)}static _writeSelections(e,t,n){if(E.Sw(e,t?t.length:0,n),n+=4,t)for(const i of t)E.Sw(e,i.selectionStartLineNumber,n),n+=4,E.Sw(e,i.selectionStartColumn,n),n+=4,E.Sw(e,i.positionLineNumber,n),n+=4,E.Sw(e,i.positionColumn,n),n+=4;return n}static _readSelections(e,t,n){const i=E.bb(e,t);t+=4;for(let r=0;r<i;r++){const i=E.bb(e,t);t+=4;const r=E.bb(e,t);t+=4;const s=E.bb(e,t);t+=4;const o=E.bb(e,t);t+=4,n.push(new g.L(i,r,s,o))}return t}serialize(){let e=10+Ot._writeSelectionsSize(this.beforeCursorState)+Ot._writeSelectionsSize(this.afterCursorState)+4;for(const i of this.changes)e+=i.writeSize();const t=new Uint8Array(e);let n=0;E.Sw(t,this.beforeVersionId,n),n+=4,E.Sw(t,this.afterVersionId,n),n+=4,E.Gs(t,this.beforeEOL,n),n+=1,E.Gs(t,this.afterEOL,n),n+=1,n=Ot._writeSelections(t,this.beforeCursorState,n),n=Ot._writeSelections(t,this.afterCursorState,n),E.Sw(t,this.changes.length,n),n+=4;for(const i of this.changes)n=i.write(t,n);return t.buffer}static deserialize(e){const t=new Uint8Array(e);let n=0;const i=E.bb(t,n);n+=4;const r=E.bb(t,n);n+=4;const s=E.pJ(t,n);n+=1;const o=E.pJ(t,n);n+=1;const a=[];n=Ot._readSelections(t,n,a);const l=[];n=Ot._readSelections(t,n,l);const c=E.bb(t,n);n+=4;const h=[];for(let d=0;d<c;d++)n=Rt.read(t,n,h);return new Ot(i,r,s,o,a,l,h)}}class zt{get type(){return 0}get resource(){return h.r.isUri(this.model)?this.model:this.model.uri}constructor(e,t,n,i){this.label=e,this.code=t,this.model=n,this._data=Ot.create(n,i)}toString(){return(this._data instanceof Ot?this._data:Ot.deserialize(this._data)).changes.map((e=>e.toString())).join(", ")}matchesResource(e){return(h.r.isUri(this.model)?this.model:this.model.uri).toString()===e.toString()}setModel(e){this.model=e}canAppend(e){return this.model===e&&this._data instanceof Ot}append(e,t,n,i,r){this._data instanceof Ot&&this._data.append(e,t,n,i,r)}close(){this._data instanceof Ot&&(this._data=this._data.serialize())}open(){this._data instanceof Ot||(this._data=Ot.deserialize(this._data))}undo(){if(h.r.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof Ot&&(this._data=this._data.serialize());const e=Ot.deserialize(this._data);this.model._applyUndo(e.changes,e.beforeEOL,e.beforeVersionId,e.beforeCursorState)}redo(){if(h.r.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof Ot&&(this._data=this._data.serialize());const e=Ot.deserialize(this._data);this.model._applyRedo(e.changes,e.afterEOL,e.afterVersionId,e.afterCursorState)}heapSize(){return this._data instanceof Ot&&(this._data=this._data.serialize()),this._data.byteLength+168}}class Pt{get resources(){return this._editStackElementsArr.map((e=>e.resource))}constructor(e,t,n){this.label=e,this.code=t,this.type=1,this._isOpen=!0,this._editStackElementsArr=n.slice(0),this._editStackElementsMap=new Map;for(const i of this._editStackElementsArr){const e=Mt(i.resource);this._editStackElementsMap.set(e,i)}this._delegate=null}prepareUndoRedo(){if(this._delegate)return this._delegate.prepareUndoRedo(this)}matchesResource(e){const t=Mt(e);return this._editStackElementsMap.has(t)}setModel(e){const t=Mt(h.r.isUri(e)?e:e.uri);this._editStackElementsMap.has(t)&&this._editStackElementsMap.get(t).setModel(e)}canAppend(e){if(!this._isOpen)return!1;const t=Mt(e.uri);if(this._editStackElementsMap.has(t)){return this._editStackElementsMap.get(t).canAppend(e)}return!1}append(e,t,n,i,r){const s=Mt(e.uri);this._editStackElementsMap.get(s).append(e,t,n,i,r)}close(){this._isOpen=!1}open(){}undo(){this._isOpen=!1;for(const e of this._editStackElementsArr)e.undo()}redo(){for(const e of this._editStackElementsArr)e.redo()}heapSize(e){const t=Mt(e);if(this._editStackElementsMap.has(t)){return this._editStackElementsMap.get(t).heapSize()}return 0}split(){return this._editStackElementsArr}toString(){const e=[];for(const t of this._editStackElementsArr)e.push(`${(0,At.P8)(t.resource)}: ${t}`);return`{${e.join(", ")}}`}}function Bt(e){return"\n"===e.getEOL()?0:1}function Wt(e){return!!e&&(e instanceof zt||e instanceof Pt)}class Vt{constructor(e,t){this._model=e,this._undoRedoService=t}pushStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);Wt(e)&&e.close()}popStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);Wt(e)&&e.open()}clear(){this._undoRedoService.removeElements(this._model.uri)}_getOrCreateEditStackElement(e,t){const n=this._undoRedoService.getLastElement(this._model.uri);if(Wt(n)&&n.canAppend(this._model))return n;const i=new zt(Tt.kg("edit","Typing"),"undoredo.textBufferEdit",this._model,e);return this._undoRedoService.pushElement(i,t),i}pushEOL(e){const t=this._getOrCreateEditStackElement(null,void 0);this._model.setEOL(e),t.append(this._model,[],Bt(this._model),this._model.getAlternativeVersionId(),null)}pushEditOperation(e,t,n,i){const r=this._getOrCreateEditStackElement(e,i),s=this._model.applyEdits(t,!0),o=Vt._computeCursorState(n,s),a=s.map(((e,t)=>({index:t,textChange:e.textChange})));return a.sort(((e,t)=>e.textChange.oldPosition===t.textChange.oldPosition?e.index-t.index:e.textChange.oldPosition-t.textChange.oldPosition)),r.append(this._model,a.map((e=>e.textChange)),Bt(this._model),this._model.getAlternativeVersionId(),o),o}static _computeCursorState(e,t){try{return e?e(t):null}catch(n){return(0,l.dz)(n),null}}}var Ut,$t=n(6041);class qt extends r.jG{constructor(){super(...arguments),this._isDisposed=!1}dispose(){super.dispose(),this._isDisposed=!0}assertNotDisposed(){if(this._isDisposed)throw new Error("TextModelPart is disposed!")}}!function(e){e[e.Disabled=0]="Disabled",e[e.EnabledForActive=1]="EnabledForActive",e[e.Enabled=2]="Enabled"}(Ut||(Ut={}));class jt{constructor(e,t,n,i,r,s){if(this.visibleColumn=e,this.column=t,this.className=n,this.horizontalLine=i,this.forWrappedLinesAfterColumn=r,this.forWrappedLinesBeforeOrAtColumn=s,-1!==e===(-1!==t))throw new Error}}class Kt{constructor(e,t){this.top=e,this.endColumn=t}}class Ht extends qt{constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t}getLanguageConfiguration(e){return this.languageConfigurationService.getLanguageConfiguration(e)}_computeIndentLevel(e){return function(e,t){let n=0,i=0;const r=e.length;for(;i<r;){const r=e.charCodeAt(i);if(32===r)n++;else{if(9!==r)break;n=n-n%t+t}i++}return i===r?-1:n}(this.textModel.getLineContent(e+1),this.textModel.getOptions().tabSize)}getActiveIndentGuide(e,t,n){this.assertNotDisposed();const i=this.textModel.getLineCount();if(e<1||e>i)throw new l.D7("Illegal value for lineNumber");const r=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,s=Boolean(r&&r.offSide);let o=-2,a=-1,c=-2,h=-1;const d=e=>{if(-1!==o&&(-2===o||o>e-1)){o=-1,a=-1;for(let t=e-2;t>=0;t--){const e=this._computeIndentLevel(t);if(e>=0){o=t,a=e;break}}}if(-2===c){c=-1,h=-1;for(let t=e;t<i;t++){const e=this._computeIndentLevel(t);if(e>=0){c=t,h=e;break}}}};let u=-2,p=-1,m=-2,f=-1;const g=e=>{if(-2===u){u=-1,p=-1;for(let t=e-2;t>=0;t--){const e=this._computeIndentLevel(t);if(e>=0){u=t,p=e;break}}}if(-1!==m&&(-2===m||m<e-1)){m=-1,f=-1;for(let t=e;t<i;t++){const e=this._computeIndentLevel(t);if(e>=0){m=t,f=e;break}}}};let b=0,v=!0,y=0,w=!0,_=0,k=0;for(let l=0;v||w;l++){const r=e-l,o=e+l;l>1&&(r<1||r<t)&&(v=!1),l>1&&(o>i||o>n)&&(w=!1),l>5e4&&(v=!1,w=!1);let m=-1;if(v&&r>=1){const e=this._computeIndentLevel(r-1);e>=0?(c=r-1,h=e,m=Math.ceil(e/this.textModel.getOptions().indentSize)):(d(r),m=this._getIndentLevelForWhitespaceLine(s,a,h))}let C=-1;if(w&&o<=i){const e=this._computeIndentLevel(o-1);e>=0?(u=o-1,p=e,C=Math.ceil(e/this.textModel.getOptions().indentSize)):(g(o),C=this._getIndentLevelForWhitespaceLine(s,p,f))}if(0!==l){if(1===l){if(o<=i&&C>=0&&k+1===C){v=!1,b=o,y=o,_=C;continue}if(r>=1&&m>=0&&m-1===k){w=!1,b=r,y=r,_=m;continue}if(b=e,y=e,_=k,0===_)return{startLineNumber:b,endLineNumber:y,indent:_}}v&&(m>=_?b=r:v=!1),w&&(C>=_?y=o:w=!1)}else k=m}return{startLineNumber:b,endLineNumber:y,indent:_}}getLinesBracketGuides(e,t,n,i){const r=[];for(let c=e;c<=t;c++)r.push([]);const s=!0,o=this.textModel.bracketPairs.getBracketPairsInRangeWithMinIndentation(new f.Q(e,1,t,this.textModel.getLineMaxColumn(t))).toArray();let a;if(n&&o.length>0){const i=(e<=n.lineNumber&&n.lineNumber<=t?o:this.textModel.bracketPairs.getBracketPairsInRange(f.Q.fromPositions(n)).toArray()).filter((e=>f.Q.strictContainsPosition(e.range,n)));a=(0,$t.Uk)(i,(e=>s))?.range}const l=this.textModel.getOptions().bracketPairColorizationOptions.independentColorPoolPerBracketType,h=new Gt;for(const d of o){if(!d.closingBracketRange)continue;const n=a&&d.range.equalsRange(a);if(!n&&!i.includeInactive)continue;const s=h.getInlineClassName(d.nestingLevel,d.nestingLevelOfEqualBracketType,l)+(i.highlightActive&&n?" "+h.activeClassName:""),o=d.openingBracketRange.getStartPosition(),u=d.closingBracketRange.getStartPosition(),p=i.horizontalGuides===Ut.Enabled||i.horizontalGuides===Ut.EnabledForActive&&n;if(d.range.startLineNumber===d.range.endLineNumber){p&&r[d.range.startLineNumber-e].push(new jt(-1,d.openingBracketRange.getEndPosition().column,s,new Kt(!1,u.column),-1,-1));continue}const m=this.getVisibleColumnFromPosition(u),f=this.getVisibleColumnFromPosition(d.openingBracketRange.getStartPosition()),g=Math.min(f,m,d.minVisibleColumnIndentation+1);let b=!1;c.HG(this.textModel.getLineContent(d.closingBracketRange.startLineNumber))<d.closingBracketRange.startColumn-1&&(b=!0);const v=Math.max(o.lineNumber,e),y=Math.min(u.lineNumber,t),w=b?1:0;for(let t=v;t<y+w;t++)r[t-e].push(new jt(g,-1,s,null,t===o.lineNumber?o.column:-1,t===u.lineNumber?u.column:-1));p&&(o.lineNumber>=e&&f>g&&r[o.lineNumber-e].push(new jt(g,-1,s,new Kt(!1,o.column),-1,-1)),u.lineNumber<=t&&m>g&&r[u.lineNumber-e].push(new jt(g,-1,s,new Kt(!b,u.column),-1,-1)))}for(const c of r)c.sort(((e,t)=>e.visibleColumn-t.visibleColumn));return r}getVisibleColumnFromPosition(e){return u.visibleColumnFromColumn(this.textModel.getLineContent(e.lineNumber),e.column,this.textModel.getOptions().tabSize)+1}getLinesIndentGuides(e,t){this.assertNotDisposed();const n=this.textModel.getLineCount();if(e<1||e>n)throw new Error("Illegal value for startLineNumber");if(t<1||t>n)throw new Error("Illegal value for endLineNumber");const i=this.textModel.getOptions(),r=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,s=Boolean(r&&r.offSide),o=new Array(t-e+1);let a=-2,l=-1,c=-2,h=-1;for(let d=e;d<=t;d++){const t=d-e,r=this._computeIndentLevel(d-1);if(r>=0)a=d-1,l=r,o[t]=Math.ceil(r/i.indentSize);else{if(-2===a){a=-1,l=-1;for(let e=d-2;e>=0;e--){const t=this._computeIndentLevel(e);if(t>=0){a=e,l=t;break}}}if(-1!==c&&(-2===c||c<d-1)){c=-1,h=-1;for(let e=d;e<n;e++){const t=this._computeIndentLevel(e);if(t>=0){c=e,h=t;break}}}o[t]=this._getIndentLevelForWhitespaceLine(s,l,h)}}return o}_getIndentLevelForWhitespaceLine(e,t,n){const i=this.textModel.getOptions();return-1===t||-1===n?0:t<n?1+Math.floor(t/i.indentSize):t===n||e?Math.ceil(n/i.indentSize):1+Math.floor(n/i.indentSize)}}class Gt{constructor(){this.activeClassName="indent-active"}getInlineClassName(e,t,n){return this.getInlineClassNameOfLevel(n?t:e)}getInlineClassNameOfLevel(e){return"bracket-indent-guide lvl-"+e%30}}class Qt{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}}function Jt(e,t,n,i,r){let s;for(r.spacesDiff=0,r.looksLikeAlignment=!1,s=0;s<t&&s<i;s++){if(e.charCodeAt(s)!==n.charCodeAt(s))break}let o=0,a=0;for(let u=s;u<t;u++){32===e.charCodeAt(u)?o++:a++}let l=0,c=0;for(let u=s;u<i;u++){32===n.charCodeAt(u)?l++:c++}if(o>0&&a>0)return;if(l>0&&c>0)return;const h=Math.abs(a-c),d=Math.abs(o-l);if(0===h)return r.spacesDiff=d,void(d>0&&0<=l-1&&l-1<e.length&&l<n.length&&32!==n.charCodeAt(l)&&32===e.charCodeAt(l-1)&&44===e.charCodeAt(e.length-1)&&(r.looksLikeAlignment=!0));d%h!==0||(r.spacesDiff=d/h)}function Yt(e,t,n){const i=Math.min(e.getLineCount(),1e4);let r=0,s=0,o="",a=0;const l=[2,4,6,8,3,5,7],c=[0,0,0,0,0,0,0,0,0],h=new Qt;for(let p=1;p<=i;p++){const i=e.getLineLength(p),l=e.getLineContent(p),d=i<=65536;let u=!1,m=0,f=0,g=0;for(let t=0,n=i;t<n;t++){const n=d?l.charCodeAt(t):e.getLineCharCode(p,t);if(9===n)g++;else{if(32!==n){u=!0,m=t;break}f++}}if(!u)continue;if(g>0?r++:f>1&&s++,Jt(o,a,l,m,h),h.looksLikeAlignment&&(!n||t!==h.spacesDiff))continue;const b=h.spacesDiff;b<=8&&c[b]++,o=l,a=m}let d=n;r!==s&&(d=r<s);let u=t;if(d){let e=d?0:.1*i;l.forEach((t=>{const n=c[t];n>e&&(e=n,u=t)})),4===u&&c[4]>0&&c[2]>0&&c[2]>=c[4]/2&&(u=2)}return{insertSpaces:d,tabSize:u}}function Xt(e){return(1&e.metadata)>>>0}function Zt(e,t){e.metadata=254&e.metadata|t}function en(e){return(2&e.metadata)>>>1===1}function tn(e,t){e.metadata=253&e.metadata|(t?1:0)<<1}function nn(e){return(4&e.metadata)>>>2===1}function rn(e,t){e.metadata=251&e.metadata|(t?1:0)<<2}function sn(e){return(64&e.metadata)>>>6===1}function on(e,t){e.metadata=191&e.metadata|(t?1:0)<<6}function an(e,t){e.metadata=231&e.metadata|t<<3}function ln(e,t){e.metadata=223&e.metadata|(t?1:0)<<5}class cn{constructor(e,t,n){this.metadata=0,this.parent=this,this.left=this,this.right=this,Zt(this,1),this.start=t,this.end=n,this.delta=0,this.maxEnd=n,this.id=e,this.ownerId=0,this.options=null,rn(this,!1),on(this,!1),an(this,1),ln(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=null,tn(this,!1)}reset(e,t,n,i){this.start=t,this.end=n,this.maxEnd=n,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=i}setOptions(e){this.options=e;const t=this.options.className;rn(this,"squiggly-error"===t||"squiggly-warning"===t||"squiggly-info"===t),on(this,null!==this.options.glyphMarginClassName),an(this,this.options.stickiness),ln(this,this.options.collapseOnReplaceEdit)}setCachedOffsets(e,t,n){this.cachedVersionId!==n&&(this.range=null),this.cachedVersionId=n,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t}detach(){this.parent=null,this.left=null,this.right=null}}const hn=new cn(null,0,0);hn.parent=hn,hn.left=hn,hn.right=hn,Zt(hn,0);class dn{constructor(){this.root=hn,this.requestNormalizeDelta=!1}intervalSearch(e,t,n,i,r,s){return this.root===hn?[]:function(e,t,n,i,r,s,o){let a=e.root,l=0,c=0,h=0,d=0;const u=[];let p=0;for(;a!==hn;)if(en(a))tn(a.left,!1),tn(a.right,!1),a===a.parent.right&&(l-=a.parent.delta),a=a.parent;else{if(!en(a.left)){if(c=l+a.maxEnd,c<t){tn(a,!0);continue}if(a.left!==hn){a=a.left;continue}}if(h=l+a.start,h>n)tn(a,!0);else{if(d=l+a.end,d>=t){a.setCachedOffsets(h,d,s);let e=!0;i&&a.ownerId&&a.ownerId!==i&&(e=!1),r&&nn(a)&&(e=!1),o&&!sn(a)&&(e=!1),e&&(u[p++]=a)}tn(a,!0),a.right===hn||en(a.right)||(l+=a.delta,a=a.right)}}return tn(e.root,!1),u}(this,e,t,n,i,r,s)}search(e,t,n,i){return this.root===hn?[]:function(e,t,n,i,r){let s=e.root,o=0,a=0,l=0;const c=[];let h=0;for(;s!==hn;){if(en(s)){tn(s.left,!1),tn(s.right,!1),s===s.parent.right&&(o-=s.parent.delta),s=s.parent;continue}if(s.left!==hn&&!en(s.left)){s=s.left;continue}a=o+s.start,l=o+s.end,s.setCachedOffsets(a,l,i);let e=!0;t&&s.ownerId&&s.ownerId!==t&&(e=!1),n&&nn(s)&&(e=!1),r&&!sn(s)&&(e=!1),e&&(c[h++]=s),tn(s,!0),s.right===hn||en(s.right)||(o+=s.delta,s=s.right)}return tn(e.root,!1),c}(this,e,t,n,i)}collectNodesFromOwner(e){return function(e,t){let n=e.root;const i=[];let r=0;for(;n!==hn;)en(n)?(tn(n.left,!1),tn(n.right,!1),n=n.parent):n.left===hn||en(n.left)?(n.ownerId===t&&(i[r++]=n),tn(n,!0),n.right===hn||en(n.right)||(n=n.right)):n=n.left;return tn(e.root,!1),i}(this,e)}collectNodesPostOrder(){return function(e){let t=e.root;const n=[];let i=0;for(;t!==hn;)en(t)?(tn(t.left,!1),tn(t.right,!1),t=t.parent):t.left===hn||en(t.left)?t.right===hn||en(t.right)?(n[i++]=t,tn(t,!0)):t=t.right:t=t.left;return tn(e.root,!1),n}(this)}insert(e){mn(this,e),this._normalizeDeltaIfNecessary()}delete(e){fn(this,e),this._normalizeDeltaIfNecessary()}resolveNode(e,t){const n=e;let i=0;for(;e!==this.root;)e===e.parent.right&&(i+=e.parent.delta),e=e.parent;const r=n.start+i,s=n.end+i;n.setCachedOffsets(r,s,t)}acceptReplace(e,t,n,i){const r=function(e,t,n){let i=e.root,r=0,s=0,o=0,a=0;const l=[];let c=0;for(;i!==hn;)if(en(i))tn(i.left,!1),tn(i.right,!1),i===i.parent.right&&(r-=i.parent.delta),i=i.parent;else{if(!en(i.left)){if(s=r+i.maxEnd,s<t){tn(i,!0);continue}if(i.left!==hn){i=i.left;continue}}o=r+i.start,o>n?tn(i,!0):(a=r+i.end,a>=t&&(i.setCachedOffsets(o,a,0),l[c++]=i),tn(i,!0),i.right===hn||en(i.right)||(r+=i.delta,i=i.right))}return tn(e.root,!1),l}(this,e,e+t);for(let s=0,o=r.length;s<o;s++){fn(this,r[s])}this._normalizeDeltaIfNecessary(),function(e,t,n,i){let r=e.root,s=0,o=0,a=0;const l=i-(n-t);for(;r!==hn;)if(en(r))tn(r.left,!1),tn(r.right,!1),r===r.parent.right&&(s-=r.parent.delta),wn(r),r=r.parent;else{if(!en(r.left)){if(o=s+r.maxEnd,o<t){tn(r,!0);continue}if(r.left!==hn){r=r.left;continue}}a=s+r.start,a>n?(r.start+=l,r.end+=l,r.delta+=l,(r.delta<-1073741824||r.delta>1073741824)&&(e.requestNormalizeDelta=!0),tn(r,!0)):(tn(r,!0),r.right===hn||en(r.right)||(s+=r.delta,r=r.right))}tn(e.root,!1)}(this,e,e+t,n),this._normalizeDeltaIfNecessary();for(let s=0,o=r.length;s<o;s++){const o=r[s];o.start=o.cachedAbsoluteStart,o.end=o.cachedAbsoluteEnd,pn(o,e,e+t,n,i),o.maxEnd=o.end,mn(this,o)}this._normalizeDeltaIfNecessary()}_normalizeDeltaIfNecessary(){this.requestNormalizeDelta&&(this.requestNormalizeDelta=!1,function(e){let t=e.root,n=0;for(;t!==hn;)t.left===hn||en(t.left)?t.right===hn||en(t.right)?(t.start=n+t.start,t.end=n+t.end,t.delta=0,wn(t),tn(t,!0),tn(t.left,!1),tn(t.right,!1),t===t.parent.right&&(n-=t.parent.delta),t=t.parent):(n+=t.delta,t=t.right):t=t.left;tn(e.root,!1)}(this))}}function un(e,t,n,i){return e<n||!(e>n)&&(1!==i&&(2===i||t))}function pn(e,t,n,i,r){const s=function(e){return(24&e.metadata)>>>3}(e),o=0===s||2===s,a=1===s||2===s,l=n-t,c=i,h=Math.min(l,c),d=e.start;let u=!1;const p=e.end;let m=!1;t<=d&&p<=n&&function(e){return(32&e.metadata)>>>5===1}(e)&&(e.start=t,u=!0,e.end=t,m=!0);{const e=r?1:l>0?2:0;!u&&un(d,o,t,e)&&(u=!0),!m&&un(p,a,t,e)&&(m=!0)}if(h>0&&!r){const e=l>c?2:0;!u&&un(d,o,t+h,e)&&(u=!0),!m&&un(p,a,t+h,e)&&(m=!0)}{const i=r?1:0;!u&&un(d,o,n,i)&&(e.start=t+c,u=!0),!m&&un(p,a,n,i)&&(e.end=t+c,m=!0)}const f=c-l;u||(e.start=Math.max(0,d+f)),m||(e.end=Math.max(0,p+f)),e.start>e.end&&(e.end=e.start)}function mn(e,t){if(e.root===hn)return t.parent=hn,t.left=hn,t.right=hn,Zt(t,0),e.root=t,e.root;!function(e,t){let n=0,i=e.root;const r=t.start,s=t.end;for(;;){if(kn(r,s,i.start+n,i.end+n)<0){if(i.left===hn){t.start-=n,t.end-=n,t.maxEnd-=n,i.left=t;break}i=i.left}else{if(i.right===hn){t.start-=n+i.delta,t.end-=n+i.delta,t.maxEnd-=n+i.delta,i.right=t;break}n+=i.delta,i=i.right}}t.parent=i,t.left=hn,t.right=hn,Zt(t,1)}(e,t),_n(t.parent);let n=t;for(;n!==e.root&&1===Xt(n.parent);)if(n.parent===n.parent.parent.left){const t=n.parent.parent.right;1===Xt(t)?(Zt(n.parent,0),Zt(t,0),Zt(n.parent.parent,1),n=n.parent.parent):(n===n.parent.right&&(n=n.parent,bn(e,n)),Zt(n.parent,0),Zt(n.parent.parent,1),vn(e,n.parent.parent))}else{const t=n.parent.parent.left;1===Xt(t)?(Zt(n.parent,0),Zt(t,0),Zt(n.parent.parent,1),n=n.parent.parent):(n===n.parent.left&&(n=n.parent,vn(e,n)),Zt(n.parent,0),Zt(n.parent.parent,1),bn(e,n.parent.parent))}return Zt(e.root,0),t}function fn(e,t){let n,i;if(t.left===hn?(n=t.right,i=t,n.delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta):t.right===hn?(n=t.left,i=t):(i=function(e){for(;e.left!==hn;)e=e.left;return e}(t.right),n=i.right,n.start+=i.delta,n.end+=i.delta,n.delta+=i.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),i.start+=t.delta,i.end+=t.delta,i.delta=t.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0)),i===e.root)return e.root=n,Zt(n,0),t.detach(),gn(),wn(n),void(e.root.parent=hn);const r=1===Xt(i);if(i===i.parent.left?i.parent.left=n:i.parent.right=n,i===t?n.parent=i.parent:(i.parent===t?n.parent=i:n.parent=i.parent,i.left=t.left,i.right=t.right,i.parent=t.parent,Zt(i,Xt(t)),t===e.root?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left!==hn&&(i.left.parent=i),i.right!==hn&&(i.right.parent=i)),t.detach(),r)return _n(n.parent),i!==t&&(_n(i),_n(i.parent)),void gn();let s;for(_n(n),_n(n.parent),i!==t&&(_n(i),_n(i.parent));n!==e.root&&0===Xt(n);)n===n.parent.left?(s=n.parent.right,1===Xt(s)&&(Zt(s,0),Zt(n.parent,1),bn(e,n.parent),s=n.parent.right),0===Xt(s.left)&&0===Xt(s.right)?(Zt(s,1),n=n.parent):(0===Xt(s.right)&&(Zt(s.left,0),Zt(s,1),vn(e,s),s=n.parent.right),Zt(s,Xt(n.parent)),Zt(n.parent,0),Zt(s.right,0),bn(e,n.parent),n=e.root)):(s=n.parent.left,1===Xt(s)&&(Zt(s,0),Zt(n.parent,1),vn(e,n.parent),s=n.parent.left),0===Xt(s.left)&&0===Xt(s.right)?(Zt(s,1),n=n.parent):(0===Xt(s.left)&&(Zt(s.right,0),Zt(s,1),bn(e,s),s=n.parent.left),Zt(s,Xt(n.parent)),Zt(n.parent,0),Zt(s.left,0),vn(e,n.parent),n=e.root));Zt(n,0),gn()}function gn(){hn.parent=hn,hn.delta=0,hn.start=0,hn.end=0}function bn(e,t){const n=t.right;n.delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta,t.right=n.left,n.left!==hn&&(n.left.parent=t),n.parent=t.parent,t.parent===hn?e.root=n:t===t.parent.left?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n,wn(t),wn(n)}function vn(e,t){const n=t.left;t.delta-=n.delta,(t.delta<-1073741824||t.delta>1073741824)&&(e.requestNormalizeDelta=!0),t.start-=n.delta,t.end-=n.delta,t.left=n.right,n.right!==hn&&(n.right.parent=t),n.parent=t.parent,t.parent===hn?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n,wn(t),wn(n)}function yn(e){let t=e.end;if(e.left!==hn){const n=e.left.maxEnd;n>t&&(t=n)}if(e.right!==hn){const n=e.right.maxEnd+e.delta;n>t&&(t=n)}return t}function wn(e){e.maxEnd=yn(e)}function _n(e){for(;e!==hn;){const t=yn(e);if(e.maxEnd===t)return;e.maxEnd=t,e=e.parent}}function kn(e,t,n,i){return e===n?t-i:e-n}class Cn{constructor(e,t){this.piece=e,this.color=t,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}next(){if(this.right!==Sn)return xn(this.right);let e=this;for(;e.parent!==Sn&&e.parent.left!==e;)e=e.parent;return e.parent===Sn?Sn:e.parent}prev(){if(this.left!==Sn)return En(this.left);let e=this;for(;e.parent!==Sn&&e.parent.right!==e;)e=e.parent;return e.parent===Sn?Sn:e.parent}detach(){this.parent=null,this.left=null,this.right=null}}const Sn=new Cn(null,0);function xn(e){for(;e.left!==Sn;)e=e.left;return e}function En(e){for(;e.right!==Sn;)e=e.right;return e}function Fn(e){return e===Sn?0:e.size_left+e.piece.length+Fn(e.right)}function Ln(e){return e===Sn?0:e.lf_left+e.piece.lineFeedCnt+Ln(e.right)}function In(){Sn.parent=Sn}function Tn(e,t){const n=t.right;n.size_left+=t.size_left+(t.piece?t.piece.length:0),n.lf_left+=t.lf_left+(t.piece?t.piece.lineFeedCnt:0),t.right=n.left,n.left!==Sn&&(n.left.parent=t),n.parent=t.parent,t.parent===Sn?e.root=n:t.parent.left===t?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n}function Nn(e,t){const n=t.left;t.left=n.right,n.right!==Sn&&(n.right.parent=t),n.parent=t.parent,t.size_left-=n.size_left+(n.piece?n.piece.length:0),t.lf_left-=n.lf_left+(n.piece?n.piece.lineFeedCnt:0),t.parent===Sn?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n}function Rn(e,t){let n,i;if(t.left===Sn?(i=t,n=i.right):t.right===Sn?(i=t,n=i.left):(i=xn(t.right),n=i.right),i===e.root)return e.root=n,n.color=0,t.detach(),In(),void(e.root.parent=Sn);const r=1===i.color;if(i===i.parent.left?i.parent.left=n:i.parent.right=n,i===t?(n.parent=i.parent,Mn(e,n)):(i.parent===t?n.parent=i:n.parent=i.parent,Mn(e,n),i.left=t.left,i.right=t.right,i.parent=t.parent,i.color=t.color,t===e.root?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left!==Sn&&(i.left.parent=i),i.right!==Sn&&(i.right.parent=i),i.size_left=t.size_left,i.lf_left=t.lf_left,Mn(e,i)),t.detach(),n.parent.left===n){const t=Fn(n),i=Ln(n);if(t!==n.parent.size_left||i!==n.parent.lf_left){const r=t-n.parent.size_left,s=i-n.parent.lf_left;n.parent.size_left=t,n.parent.lf_left=i,An(e,n.parent,r,s)}}if(Mn(e,n.parent),r)return void In();let s;for(;n!==e.root&&0===n.color;)n===n.parent.left?(s=n.parent.right,1===s.color&&(s.color=0,n.parent.color=1,Tn(e,n.parent),s=n.parent.right),0===s.left.color&&0===s.right.color?(s.color=1,n=n.parent):(0===s.right.color&&(s.left.color=0,s.color=1,Nn(e,s),s=n.parent.right),s.color=n.parent.color,n.parent.color=0,s.right.color=0,Tn(e,n.parent),n=e.root)):(s=n.parent.left,1===s.color&&(s.color=0,n.parent.color=1,Nn(e,n.parent),s=n.parent.left),0===s.left.color&&0===s.right.color?(s.color=1,n=n.parent):(0===s.left.color&&(s.right.color=0,s.color=1,Tn(e,s),s=n.parent.left),s.color=n.parent.color,n.parent.color=0,s.left.color=0,Nn(e,n.parent),n=e.root));n.color=0,In()}function Dn(e,t){for(Mn(e,t);t!==e.root&&1===t.parent.color;)if(t.parent===t.parent.parent.left){const n=t.parent.parent.right;1===n.color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.right&&Tn(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,Nn(e,t.parent.parent))}else{const n=t.parent.parent.left;1===n.color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.left&&Nn(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,Tn(e,t.parent.parent))}e.root.color=0}function An(e,t,n,i){for(;t!==e.root&&t!==Sn;)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=i),t=t.parent}function Mn(e,t){let n=0,i=0;if(t!==e.root){for(;t!==e.root&&t===t.parent.right;)t=t.parent;if(t!==e.root)for(n=Fn((t=t.parent).left)-t.size_left,i=Ln(t.left)-t.lf_left,t.size_left+=n,t.lf_left+=i;t!==e.root&&(0!==n||0!==i);)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=i),t=t.parent}}Sn.parent=Sn,Sn.left=Sn,Sn.right=Sn,Sn.color=0;var On=n(7729);const zn=65535;function Pn(e){let t;return t=e[e.length-1]<65536?new Uint16Array(e.length):new Uint32Array(e.length),t.set(e,0),t}class Bn{constructor(e,t,n,i,r){this.lineStarts=e,this.cr=t,this.lf=n,this.crlf=i,this.isBasicASCII=r}}function Wn(e,t=!0){const n=[0];let i=1;for(let r=0,s=e.length;r<s;r++){const t=e.charCodeAt(r);13===t?r+1<s&&10===e.charCodeAt(r+1)?(n[i++]=r+2,r++):n[i++]=r+1:10===t&&(n[i++]=r+1)}return t?Pn(n):n}class Vn{constructor(e,t,n,i,r){this.bufferIndex=e,this.start=t,this.end=n,this.lineFeedCnt=i,this.length=r}}class Un{constructor(e,t){this.buffer=e,this.lineStarts=t}}class $n{constructor(e,t){this._pieces=[],this._tree=e,this._BOM=t,this._index=0,e.root!==Sn&&e.iterate(e.root,(e=>(e!==Sn&&this._pieces.push(e.piece),!0)))}read(){return 0===this._pieces.length?0===this._index?(this._index++,this._BOM):null:this._index>this._pieces.length-1?null:0===this._index?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])}}class qn{constructor(e){this._limit=e,this._cache=[]}get(e){for(let t=this._cache.length-1;t>=0;t--){const n=this._cache[t];if(n.nodeStartOffset<=e&&n.nodeStartOffset+n.node.piece.length>=e)return n}return null}get2(e){for(let t=this._cache.length-1;t>=0;t--){const n=this._cache[t];if(n.nodeStartLineNumber&&n.nodeStartLineNumber<e&&n.nodeStartLineNumber+n.node.piece.lineFeedCnt>=e)return n}return null}set(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)}validate(e){let t=!1;const n=this._cache;for(let i=0;i<n.length;i++){const r=n[i];(null===r.node.parent||r.nodeStartOffset>=e)&&(n[i]=null,t=!0)}if(t){const e=[];for(const t of n)null!==t&&e.push(t);this._cache=e}}}class jn{constructor(e,t,n){this.create(e,t,n)}create(e,t,n){this._buffers=[new Un("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=Sn,this._lineCnt=1,this._length=0,this._EOL=t,this._EOLLength=t.length,this._EOLNormalized=n;let i=null;for(let r=0,s=e.length;r<s;r++)if(e[r].buffer.length>0){e[r].lineStarts||(e[r].lineStarts=Wn(e[r].buffer));const t=new Vn(r+1,{line:0,column:0},{line:e[r].lineStarts.length-1,column:e[r].buffer.length-e[r].lineStarts[e[r].lineStarts.length-1]},e[r].lineStarts.length-1,e[r].buffer.length);this._buffers.push(e[r]),i=this.rbInsertRight(i,t)}this._searchCache=new qn(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()}normalizeEOL(e){const t=zn,n=t-Math.floor(21845),i=2*n;let r="",s=0;const o=[];if(this.iterate(this.root,(t=>{const a=this.getNodeContent(t),l=a.length;if(s<=n||s+l<i)return r+=a,s+=l,!0;const c=r.replace(/\r\n|\r|\n/g,e);return o.push(new Un(c,Wn(c))),r=a,s=l,!0})),s>0){const t=r.replace(/\r\n|\r|\n/g,e);o.push(new Un(t,Wn(t)))}this.create(o,e,!0)}getEOL(){return this._EOL}setEOL(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)}createSnapshot(e){return new $n(this,e)}getOffsetAt(e,t){let n=0,i=this.root;for(;i!==Sn;)if(i.left!==Sn&&i.lf_left+1>=e)i=i.left;else{if(i.lf_left+i.piece.lineFeedCnt+1>=e){n+=i.size_left;return n+(this.getAccumulatedValue(i,e-i.lf_left-2)+t-1)}e-=i.lf_left+i.piece.lineFeedCnt,n+=i.size_left+i.piece.length,i=i.right}return n}getPositionAt(e){e=Math.floor(e),e=Math.max(0,e);let t=this.root,n=0;const i=e;for(;t!==Sn;)if(0!==t.size_left&&t.size_left>=e)t=t.left;else{if(t.size_left+t.piece.length>=e){const r=this.getIndexOf(t,e-t.size_left);if(n+=t.lf_left+r.index,0===r.index){const e=i-this.getOffsetAt(n+1,1);return new m.y(n+1,e+1)}return new m.y(n+1,r.remainder+1)}if(e-=t.size_left+t.piece.length,n+=t.lf_left+t.piece.lineFeedCnt,t.right===Sn){const t=i-e-this.getOffsetAt(n+1,1);return new m.y(n+1,t+1)}t=t.right}return new m.y(1,1)}getValueInRange(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";const n=this.nodeAt2(e.startLineNumber,e.startColumn),i=this.nodeAt2(e.endLineNumber,e.endColumn),r=this.getValueInRange2(n,i);return t?t===this._EOL&&this._EOLNormalized&&t===this.getEOL()&&this._EOLNormalized?r:r.replace(/\r\n|\r|\n/g,t):r}getValueInRange2(e,t){if(e.node===t.node){const n=e.node,i=this._buffers[n.piece.bufferIndex].buffer,r=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return i.substring(r+e.remainder,r+t.remainder)}let n=e.node;const i=this._buffers[n.piece.bufferIndex].buffer,r=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);let s=i.substring(r+e.remainder,r+n.piece.length);for(n=n.next();n!==Sn;){const e=this._buffers[n.piece.bufferIndex].buffer,i=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);if(n===t.node){s+=e.substring(i,i+t.remainder);break}s+=e.substr(i,n.piece.length),n=n.next()}return s}getLinesContent(){const e=[];let t=0,n="",i=!1;return this.iterate(this.root,(r=>{if(r===Sn)return!0;const s=r.piece;let o=s.length;if(0===o)return!0;const a=this._buffers[s.bufferIndex].buffer,l=this._buffers[s.bufferIndex].lineStarts,c=s.start.line,h=s.end.line;let d=l[c]+s.start.column;if(i&&(10===a.charCodeAt(d)&&(d++,o--),e[t++]=n,n="",i=!1,0===o))return!0;if(c===h)return this._EOLNormalized||13!==a.charCodeAt(d+o-1)?n+=a.substr(d,o):(i=!0,n+=a.substr(d,o-1)),!0;n+=this._EOLNormalized?a.substring(d,Math.max(d,l[c+1]-this._EOLLength)):a.substring(d,l[c+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=n;for(let i=c+1;i<h;i++)n=this._EOLNormalized?a.substring(l[i],l[i+1]-this._EOLLength):a.substring(l[i],l[i+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=n;return this._EOLNormalized||13!==a.charCodeAt(l[h]+s.end.column-1)?n=a.substr(l[h],s.end.column):(i=!0,0===s.end.column?t--:n=a.substr(l[h],s.end.column-1)),!0})),i&&(e[t++]=n,n=""),e[t++]=n,e}getLength(){return this._length}getLineCount(){return this._lineCnt}getLineContent(e){return this._lastVisitedLine.lineNumber===e||(this._lastVisitedLine.lineNumber=e,e===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(e):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(e,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(e).replace(/(\r\n|\r|\n)$/,"")),this._lastVisitedLine.value}_getCharCode(e){if(e.remainder===e.node.piece.length){const t=e.node.next();if(!t)return 0;const n=this._buffers[t.piece.bufferIndex],i=this.offsetInBuffer(t.piece.bufferIndex,t.piece.start);return n.buffer.charCodeAt(i)}{const t=this._buffers[e.node.piece.bufferIndex],n=this.offsetInBuffer(e.node.piece.bufferIndex,e.node.piece.start)+e.remainder;return t.buffer.charCodeAt(n)}}getLineCharCode(e,t){const n=this.nodeAt2(e,t+1);return this._getCharCode(n)}getLineLength(e){if(e===this.getLineCount()){const t=this.getOffsetAt(e,1);return this.getLength()-t}return this.getOffsetAt(e+1,1)-this.getOffsetAt(e,1)-this._EOLLength}findMatchesInNode(e,t,n,i,r,s,o,a,l,c,h){const d=this._buffers[e.piece.bufferIndex],u=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start),p=this.offsetInBuffer(e.piece.bufferIndex,r),m=this.offsetInBuffer(e.piece.bufferIndex,s);let g;const b={line:0,column:0};let v,y;t._wordSeparators?(v=d.buffer.substring(p,m),y=e=>e+p,t.reset(0)):(v=d.buffer,y=e=>e,t.reset(p));do{if(g=t.next(v),g){if(y(g.index)>=m)return c;this.positionInBuffer(e,y(g.index)-u,b);const t=this.getLineFeedCnt(e.piece.bufferIndex,r,b),s=b.line===r.line?b.column-r.column+i:b.column+1,o=s+g[0].length;if(h[c++]=(0,On.dr)(new f.Q(n+t,s,n+t,o),g,a),y(g.index)+g[0].length>=m)return c;if(c>=l)return c}}while(g);return c}findMatchesLineByLine(e,t,n,i){const r=[];let s=0;const o=new On.W5(t.wordSeparators,t.regex);let a=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===a)return[];const l=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===l)return[];let c=this.positionInBuffer(a.node,a.remainder);const h=this.positionInBuffer(l.node,l.remainder);if(a.node===l.node)return this.findMatchesInNode(a.node,o,e.startLineNumber,e.startColumn,c,h,t,n,i,s,r),r;let d=e.startLineNumber,u=a.node;for(;u!==l.node;){const l=this.getLineFeedCnt(u.piece.bufferIndex,c,u.piece.end);if(l>=1){const a=this._buffers[u.piece.bufferIndex].lineStarts,h=this.offsetInBuffer(u.piece.bufferIndex,u.piece.start),p=a[c.line+l],m=d===e.startLineNumber?e.startColumn:1;if(s=this.findMatchesInNode(u,o,d,m,c,this.positionInBuffer(u,p-h),t,n,i,s,r),s>=i)return r;d+=l}const h=d===e.startLineNumber?e.startColumn-1:0;if(d===e.endLineNumber){const a=this.getLineContent(d).substring(h,e.endColumn-1);return s=this._findMatchesInLine(t,o,a,e.endLineNumber,h,s,r,n,i),r}if(s=this._findMatchesInLine(t,o,this.getLineContent(d).substr(h),d,h,s,r,n,i),s>=i)return r;d++,a=this.nodeAt2(d,1),u=a.node,c=this.positionInBuffer(a.node,a.remainder)}if(d===e.endLineNumber){const a=d===e.startLineNumber?e.startColumn-1:0,l=this.getLineContent(d).substring(a,e.endColumn-1);return s=this._findMatchesInLine(t,o,l,e.endLineNumber,a,s,r,n,i),r}const p=d===e.startLineNumber?e.startColumn:1;return s=this.findMatchesInNode(l.node,o,d,p,c,h,t,n,i,s,r),r}_findMatchesInLine(e,t,n,i,r,s,o,a,l){const c=e.wordSeparators;if(!a&&e.simpleSearch){const t=e.simpleSearch,a=t.length,h=n.length;let d=-a;for(;-1!==(d=n.indexOf(t,d+a));)if((!c||(0,On.wC)(c,n,h,d,a))&&(o[s++]=new fe.Dg(new f.Q(i,d+1+r,i,d+1+a+r),null),s>=l))return s;return s}let h;t.reset(0);do{if(h=t.next(n),h&&(o[s++]=(0,On.dr)(new f.Q(i,h.index+1+r,i,h.index+1+h[0].length+r),h,a),s>=l))return s}while(h);return s}insert(e,t,n=!1){if(this._EOLNormalized=this._EOLNormalized&&n,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==Sn){const{node:n,remainder:i,nodeStartOffset:r}=this.nodeAt(e),s=n.piece,o=s.bufferIndex,a=this.positionInBuffer(n,i);if(0===n.piece.bufferIndex&&s.end.line===this._lastChangeBufferPos.line&&s.end.column===this._lastChangeBufferPos.column&&r+s.length===e&&t.length<zn)return this.appendToNode(n,t),void this.computeBufferMetadata();if(r===e)this.insertContentToNodeLeft(t,n),this._searchCache.validate(e);else if(r+n.piece.length>e){const e=[];let r=new Vn(s.bufferIndex,a,s.end,this.getLineFeedCnt(s.bufferIndex,a,s.end),this.offsetInBuffer(o,s.end)-this.offsetInBuffer(o,a));if(this.shouldCheckCRLF()&&this.endWithCR(t)){if(10===this.nodeCharCodeAt(n,i)){const e={line:r.start.line+1,column:0};r=new Vn(r.bufferIndex,e,r.end,this.getLineFeedCnt(r.bufferIndex,e,r.end),r.length-1),t+="\n"}}if(this.shouldCheckCRLF()&&this.startWithLF(t)){if(13===this.nodeCharCodeAt(n,i-1)){const r=this.positionInBuffer(n,i-1);this.deleteNodeTail(n,r),t="\r"+t,0===n.piece.length&&e.push(n)}else this.deleteNodeTail(n,a)}else this.deleteNodeTail(n,a);const l=this.createNewPieces(t);r.length>0&&this.rbInsertRight(n,r);let c=n;for(let t=0;t<l.length;t++)c=this.rbInsertRight(c,l[t]);this.deleteNodes(e)}else this.insertContentToNodeRight(t,n)}else{const e=this.createNewPieces(t);let n=this.rbInsertLeft(null,e[0]);for(let t=1;t<e.length;t++)n=this.rbInsertRight(n,e[t])}this.computeBufferMetadata()}delete(e,t){if(this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",t<=0||this.root===Sn)return;const n=this.nodeAt(e),i=this.nodeAt(e+t),r=n.node,s=i.node;if(r===s){const s=this.positionInBuffer(r,n.remainder),o=this.positionInBuffer(r,i.remainder);if(n.nodeStartOffset===e){if(t===r.piece.length){const e=r.next();return Rn(this,r),this.validateCRLFWithPrevNode(e),void this.computeBufferMetadata()}return this.deleteNodeHead(r,o),this._searchCache.validate(e),this.validateCRLFWithPrevNode(r),void this.computeBufferMetadata()}return n.nodeStartOffset+r.piece.length===e+t?(this.deleteNodeTail(r,s),this.validateCRLFWithNextNode(r),void this.computeBufferMetadata()):(this.shrinkNode(r,s,o),void this.computeBufferMetadata())}const o=[],a=this.positionInBuffer(r,n.remainder);this.deleteNodeTail(r,a),this._searchCache.validate(e),0===r.piece.length&&o.push(r);const l=this.positionInBuffer(s,i.remainder);this.deleteNodeHead(s,l),0===s.piece.length&&o.push(s);for(let h=r.next();h!==Sn&&h!==s;h=h.next())o.push(h);const c=0===r.piece.length?r.prev():r;this.deleteNodes(o),this.validateCRLFWithNextNode(c),this.computeBufferMetadata()}insertContentToNodeLeft(e,t){const n=[];if(this.shouldCheckCRLF()&&this.endWithCR(e)&&this.startWithLF(t)){const i=t.piece,r={line:i.start.line+1,column:0},s=new Vn(i.bufferIndex,r,i.end,this.getLineFeedCnt(i.bufferIndex,r,i.end),i.length-1);t.piece=s,e+="\n",An(this,t,-1,-1),0===t.piece.length&&n.push(t)}const i=this.createNewPieces(e);let r=this.rbInsertLeft(t,i[i.length-1]);for(let s=i.length-2;s>=0;s--)r=this.rbInsertLeft(r,i[s]);this.validateCRLFWithPrevNode(r),this.deleteNodes(n)}insertContentToNodeRight(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+="\n");const n=this.createNewPieces(e),i=this.rbInsertRight(t,n[0]);let r=i;for(let s=1;s<n.length;s++)r=this.rbInsertRight(r,n[s]);this.validateCRLFWithPrevNode(i)}positionInBuffer(e,t,n){const i=e.piece,r=e.piece.bufferIndex,s=this._buffers[r].lineStarts,o=s[i.start.line]+i.start.column+t;let a=i.start.line,l=i.end.line,c=0,h=0,d=0;for(;a<=l&&(c=a+(l-a)/2|0,d=s[c],c!==l);)if(h=s[c+1],o<d)l=c-1;else{if(!(o>=h))break;a=c+1}return n?(n.line=c,n.column=o-d,null):{line:c,column:o-d}}getLineFeedCnt(e,t,n){if(0===n.column)return n.line-t.line;const i=this._buffers[e].lineStarts;if(n.line===i.length-1)return n.line-t.line;const r=i[n.line+1],s=i[n.line]+n.column;if(r>s+1)return n.line-t.line;const o=s-1;return 13===this._buffers[e].buffer.charCodeAt(o)?n.line-t.line+1:n.line-t.line}offsetInBuffer(e,t){return this._buffers[e].lineStarts[t.line]+t.column}deleteNodes(e){for(let t=0;t<e.length;t++)Rn(this,e[t])}createNewPieces(e){if(e.length>zn){const t=[];for(;e.length>zn;){const n=e.charCodeAt(65534);let i;13===n||n>=55296&&n<=56319?(i=e.substring(0,65534),e=e.substring(65534)):(i=e.substring(0,zn),e=e.substring(zn));const r=Wn(i);t.push(new Vn(this._buffers.length,{line:0,column:0},{line:r.length-1,column:i.length-r[r.length-1]},r.length-1,i.length)),this._buffers.push(new Un(i,r))}const n=Wn(e);return t.push(new Vn(this._buffers.length,{line:0,column:0},{line:n.length-1,column:e.length-n[n.length-1]},n.length-1,e.length)),this._buffers.push(new Un(e,n)),t}let t=this._buffers[0].buffer.length;const n=Wn(e,!1);let i=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===t&&0!==t&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},i=this._lastChangeBufferPos;for(let e=0;e<n.length;e++)n[e]+=t+1;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(n.slice(1)),this._buffers[0].buffer+="_"+e,t+=1}else{if(0!==t)for(let e=0;e<n.length;e++)n[e]+=t;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(n.slice(1)),this._buffers[0].buffer+=e}const r=this._buffers[0].buffer.length,s=this._buffers[0].lineStarts.length-1,o={line:s,column:r-this._buffers[0].lineStarts[s]},a=new Vn(0,i,o,this.getLineFeedCnt(0,i,o),r-t);return this._lastChangeBufferPos=o,[a]}getLineRawContent(e,t=0){let n=this.root,i="";const r=this._searchCache.get2(e);if(r){n=r.node;const s=this.getAccumulatedValue(n,e-r.nodeStartLineNumber-1),o=this._buffers[n.piece.bufferIndex].buffer,a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);if(r.nodeStartLineNumber+n.piece.lineFeedCnt!==e){const i=this.getAccumulatedValue(n,e-r.nodeStartLineNumber);return o.substring(a+s,a+i-t)}i=o.substring(a+s,a+n.piece.length)}else{let r=0;const s=e;for(;n!==Sn;)if(n.left!==Sn&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){const i=this.getAccumulatedValue(n,e-n.lf_left-2),o=this.getAccumulatedValue(n,e-n.lf_left-1),a=this._buffers[n.piece.bufferIndex].buffer,l=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return r+=n.size_left,this._searchCache.set({node:n,nodeStartOffset:r,nodeStartLineNumber:s-(e-1-n.lf_left)}),a.substring(l+i,l+o-t)}if(n.lf_left+n.piece.lineFeedCnt===e-1){const t=this.getAccumulatedValue(n,e-n.lf_left-2),r=this._buffers[n.piece.bufferIndex].buffer,s=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);i=r.substring(s+t,s+n.piece.length);break}e-=n.lf_left+n.piece.lineFeedCnt,r+=n.size_left+n.piece.length,n=n.right}}for(n=n.next();n!==Sn;){const e=this._buffers[n.piece.bufferIndex].buffer;if(n.piece.lineFeedCnt>0){const r=this.getAccumulatedValue(n,0),s=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return i+=e.substring(s,s+r-t),i}{const t=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);i+=e.substr(t,n.piece.length)}n=n.next()}return i}computeBufferMetadata(){let e=this.root,t=1,n=0;for(;e!==Sn;)t+=e.lf_left+e.piece.lineFeedCnt,n+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=n,this._searchCache.validate(this._length)}getIndexOf(e,t){const n=e.piece,i=this.positionInBuffer(e,t),r=i.line-n.start.line;if(this.offsetInBuffer(n.bufferIndex,n.end)-this.offsetInBuffer(n.bufferIndex,n.start)===t){const t=this.getLineFeedCnt(e.piece.bufferIndex,n.start,i);if(t!==r)return{index:t,remainder:0}}return{index:r,remainder:i.column}}getAccumulatedValue(e,t){if(t<0)return 0;const n=e.piece,i=this._buffers[n.bufferIndex].lineStarts,r=n.start.line+t+1;return r>n.end.line?i[n.end.line]+n.end.column-i[n.start.line]-n.start.column:i[r]-i[n.start.line]-n.start.column}deleteNodeTail(e,t){const n=e.piece,i=n.lineFeedCnt,r=this.offsetInBuffer(n.bufferIndex,n.end),s=t,o=this.offsetInBuffer(n.bufferIndex,s),a=this.getLineFeedCnt(n.bufferIndex,n.start,s),l=a-i,c=o-r,h=n.length+c;e.piece=new Vn(n.bufferIndex,n.start,s,a,h),An(this,e,c,l)}deleteNodeHead(e,t){const n=e.piece,i=n.lineFeedCnt,r=this.offsetInBuffer(n.bufferIndex,n.start),s=t,o=this.getLineFeedCnt(n.bufferIndex,s,n.end),a=o-i,l=r-this.offsetInBuffer(n.bufferIndex,s),c=n.length+l;e.piece=new Vn(n.bufferIndex,s,n.end,o,c),An(this,e,l,a)}shrinkNode(e,t,n){const i=e.piece,r=i.start,s=i.end,o=i.length,a=i.lineFeedCnt,l=t,c=this.getLineFeedCnt(i.bufferIndex,i.start,l),h=this.offsetInBuffer(i.bufferIndex,t)-this.offsetInBuffer(i.bufferIndex,r);e.piece=new Vn(i.bufferIndex,i.start,l,c,h),An(this,e,h-o,c-a);const d=new Vn(i.bufferIndex,n,s,this.getLineFeedCnt(i.bufferIndex,n,s),this.offsetInBuffer(i.bufferIndex,s)-this.offsetInBuffer(i.bufferIndex,n)),u=this.rbInsertRight(e,d);this.validateCRLFWithPrevNode(u)}appendToNode(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+="\n");const n=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),i=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;const r=Wn(t,!1);for(let d=0;d<r.length;d++)r[d]+=i;if(n){const e=this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-2];this._buffers[0].lineStarts.pop(),this._lastChangeBufferPos={line:this._lastChangeBufferPos.line-1,column:i-e}}this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(r.slice(1));const s=this._buffers[0].lineStarts.length-1,o={line:s,column:this._buffers[0].buffer.length-this._buffers[0].lineStarts[s]},a=e.piece.length+t.length,l=e.piece.lineFeedCnt,c=this.getLineFeedCnt(0,e.piece.start,o),h=c-l;e.piece=new Vn(e.piece.bufferIndex,e.piece.start,o,c,a),this._lastChangeBufferPos=o,An(this,e,t.length,h)}nodeAt(e){let t=this.root;const n=this._searchCache.get(e);if(n)return{node:n.node,nodeStartOffset:n.nodeStartOffset,remainder:e-n.nodeStartOffset};let i=0;for(;t!==Sn;)if(t.size_left>e)t=t.left;else{if(t.size_left+t.piece.length>=e){i+=t.size_left;const n={node:t,remainder:e-t.size_left,nodeStartOffset:i};return this._searchCache.set(n),n}e-=t.size_left+t.piece.length,i+=t.size_left+t.piece.length,t=t.right}return null}nodeAt2(e,t){let n=this.root,i=0;for(;n!==Sn;)if(n.left!==Sn&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){const r=this.getAccumulatedValue(n,e-n.lf_left-2),s=this.getAccumulatedValue(n,e-n.lf_left-1);return i+=n.size_left,{node:n,remainder:Math.min(r+t-1,s),nodeStartOffset:i}}if(n.lf_left+n.piece.lineFeedCnt===e-1){const r=this.getAccumulatedValue(n,e-n.lf_left-2);if(r+t-1<=n.piece.length)return{node:n,remainder:r+t-1,nodeStartOffset:i};t-=n.piece.length-r;break}e-=n.lf_left+n.piece.lineFeedCnt,i+=n.size_left+n.piece.length,n=n.right}for(n=n.next();n!==Sn;){if(n.piece.lineFeedCnt>0){const e=this.getAccumulatedValue(n,0),i=this.offsetOfNode(n);return{node:n,remainder:Math.min(t-1,e),nodeStartOffset:i}}if(n.piece.length>=t-1){return{node:n,remainder:t-1,nodeStartOffset:this.offsetOfNode(n)}}t-=n.piece.length,n=n.next()}return null}nodeCharCodeAt(e,t){if(e.piece.lineFeedCnt<1)return-1;const n=this._buffers[e.piece.bufferIndex],i=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return n.buffer.charCodeAt(i)}offsetOfNode(e){if(!e)return 0;let t=e.size_left;for(;e!==this.root;)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t}shouldCheckCRLF(){return!(this._EOLNormalized&&"\n"===this._EOL)}startWithLF(e){if("string"===typeof e)return 10===e.charCodeAt(0);if(e===Sn||0===e.piece.lineFeedCnt)return!1;const t=e.piece,n=this._buffers[t.bufferIndex].lineStarts,i=t.start.line,r=n[i]+t.start.column;if(i===n.length-1)return!1;return!(n[i+1]>r+1)&&10===this._buffers[t.bufferIndex].buffer.charCodeAt(r)}endWithCR(e){return"string"===typeof e?13===e.charCodeAt(e.length-1):e!==Sn&&0!==e.piece.lineFeedCnt&&13===this.nodeCharCodeAt(e,e.piece.length-1)}validateCRLFWithPrevNode(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){const t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}}validateCRLFWithNextNode(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}}fixCRLF(e,t){const n=[],i=this._buffers[e.piece.bufferIndex].lineStarts;let r;r=0===e.piece.end.column?{line:e.piece.end.line-1,column:i[e.piece.end.line]-i[e.piece.end.line-1]-1}:{line:e.piece.end.line,column:e.piece.end.column-1};const s=e.piece.length-1,o=e.piece.lineFeedCnt-1;e.piece=new Vn(e.piece.bufferIndex,e.piece.start,r,o,s),An(this,e,-1,-1),0===e.piece.length&&n.push(e);const a={line:t.piece.start.line+1,column:0},l=t.piece.length-1,c=this.getLineFeedCnt(t.piece.bufferIndex,a,t.piece.end);t.piece=new Vn(t.piece.bufferIndex,a,t.piece.end,c,l),An(this,t,-1,-1),0===t.piece.length&&n.push(t);const h=this.createNewPieces("\r\n");this.rbInsertRight(e,h[0]);for(let d=0;d<n.length;d++)Rn(this,n[d])}adjustCarriageReturnFromNext(e,t){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const n=t.next();if(this.startWithLF(n)){if(e+="\n",1===n.piece.length)Rn(this,n);else{const e=n.piece,t={line:e.start.line+1,column:0},i=e.length-1,r=this.getLineFeedCnt(e.bufferIndex,t,e.end);n.piece=new Vn(e.bufferIndex,t,e.end,r,i),An(this,n,-1,-1)}return!0}}return!1}iterate(e,t){if(e===Sn)return t(Sn);const n=this.iterate(e.left,t);return n?t(e)&&this.iterate(e.right,t):n}getNodeContent(e){if(e===Sn)return"";const t=this._buffers[e.piece.bufferIndex],n=e.piece,i=this.offsetInBuffer(n.bufferIndex,n.start),r=this.offsetInBuffer(n.bufferIndex,n.end);return t.buffer.substring(i,r)}getPieceContent(e){const t=this._buffers[e.bufferIndex],n=this.offsetInBuffer(e.bufferIndex,e.start),i=this.offsetInBuffer(e.bufferIndex,e.end);return t.buffer.substring(n,i)}rbInsertRight(e,t){const n=new Cn(t,1);n.left=Sn,n.right=Sn,n.parent=Sn,n.size_left=0,n.lf_left=0;if(this.root===Sn)this.root=n,n.color=0;else if(e.right===Sn)e.right=n,n.parent=e;else{const t=xn(e.right);t.left=n,n.parent=t}return Dn(this,n),n}rbInsertLeft(e,t){const n=new Cn(t,1);if(n.left=Sn,n.right=Sn,n.parent=Sn,n.size_left=0,n.lf_left=0,this.root===Sn)this.root=n,n.color=0;else if(e.left===Sn)e.left=n,n.parent=e;else{const t=En(e.left);t.right=n,n.parent=t}return Dn(this,n),n}}class Kn extends r.jG{constructor(e,t,n,r,s,o,a){super(),this._onDidChangeContent=this._register(new i.vl),this._BOM=t,this._mightContainNonBasicASCII=!o,this._mightContainRTL=r,this._mightContainUnusualLineTerminators=s,this._pieceTree=new jn(e,n,a)}mightContainRTL(){return this._mightContainRTL}mightContainUnusualLineTerminators(){return this._mightContainUnusualLineTerminators}resetMightContainUnusualLineTerminators(){this._mightContainUnusualLineTerminators=!1}mightContainNonBasicASCII(){return this._mightContainNonBasicASCII}getBOM(){return this._BOM}getEOL(){return this._pieceTree.getEOL()}createSnapshot(e){return this._pieceTree.createSnapshot(e?this._BOM:"")}getOffsetAt(e,t){return this._pieceTree.getOffsetAt(e,t)}getPositionAt(e){return this._pieceTree.getPositionAt(e)}getRangeAt(e,t){const n=e+t,i=this.getPositionAt(e),r=this.getPositionAt(n);return new f.Q(i.lineNumber,i.column,r.lineNumber,r.column)}getValueInRange(e,t=0){if(e.isEmpty())return"";const n=this._getEndOfLine(t);return this._pieceTree.getValueInRange(e,n)}getValueLengthInRange(e,t=0){if(e.isEmpty())return 0;if(e.startLineNumber===e.endLineNumber)return e.endColumn-e.startColumn;const n=this.getOffsetAt(e.startLineNumber,e.startColumn),i=this.getOffsetAt(e.endLineNumber,e.endColumn);let r=0;const s=this._getEndOfLine(t),o=this.getEOL();if(s.length!==o.length){r=(s.length-o.length)*(e.endLineNumber-e.startLineNumber)}return i-n+r}getCharacterCountInRange(e,t=0){if(this._mightContainNonBasicASCII){let n=0;const i=e.startLineNumber,r=e.endLineNumber;for(let t=i;t<=r;t++){const s=this.getLineContent(t),o=t===i?e.startColumn-1:0,a=t===r?e.endColumn-1:s.length;for(let e=o;e<a;e++)c.pc(s.charCodeAt(e))?(n+=1,e+=1):n+=1}return n+=this._getEndOfLine(t).length*(r-i),n}return this.getValueLengthInRange(e,t)}getLength(){return this._pieceTree.getLength()}getLineCount(){return this._pieceTree.getLineCount()}getLinesContent(){return this._pieceTree.getLinesContent()}getLineContent(e){return this._pieceTree.getLineContent(e)}getLineCharCode(e,t){return this._pieceTree.getLineCharCode(e,t)}getLineLength(e){return this._pieceTree.getLineLength(e)}getLineFirstNonWhitespaceColumn(e){const t=c.HG(this.getLineContent(e));return-1===t?0:t+1}getLineLastNonWhitespaceColumn(e){const t=c.lT(this.getLineContent(e));return-1===t?0:t+2}_getEndOfLine(e){switch(e){case 1:return"\n";case 2:return"\r\n";case 0:return this.getEOL();default:throw new Error("Unknown EOL preference")}}setEOL(e){this._pieceTree.setEOL(e)}applyEdits(e,t,n){let i=this._mightContainRTL,r=this._mightContainUnusualLineTerminators,s=this._mightContainNonBasicASCII,o=!0,a=[];for(let g=0;g<e.length;g++){const t=e[g];o&&t._isTracked&&(o=!1);const n=t.range;if(t.text){let e=!0;s||(e=!c.aC(t.text),s=e),!i&&e&&(i=c.E_(t.text)),!r&&e&&(r=c.$X(t.text))}let l="",h=0,u=0,p=0;if(t.text){let e;[h,u,p,e]=(0,d.W)(t.text);const n=this.getEOL();l=0===e||e===("\r\n"===n?2:1)?t.text:t.text.replace(/\r\n|\r|\n/g,n)}a[g]={sortIndex:g,identifier:t.identifier||null,range:n,rangeOffset:this.getOffsetAt(n.startLineNumber,n.startColumn),rangeLength:this.getValueLengthInRange(n),text:l,eolCount:h,firstLineLength:u,lastLineLength:p,forceMoveMarkers:Boolean(t.forceMoveMarkers),isAutoWhitespaceEdit:t.isAutoWhitespaceEdit||!1}}a.sort(Kn._sortOpsAscending);let l=!1;for(let c=0,d=a.length-1;c<d;c++){const e=a[c].range.getEndPosition(),t=a[c+1].range.getStartPosition();if(t.isBeforeOrEqual(e)){if(t.isBefore(e))throw new Error("Overlapping ranges are not allowed!");l=!0}}o&&(a=this._reduceOperations(a));const h=n||t?Kn._getInverseEditRanges(a):[],u=[];if(t)for(let d=0;d<a.length;d++){const e=a[d],t=h[d];if(e.isAutoWhitespaceEdit&&e.range.isEmpty())for(let n=t.startLineNumber;n<=t.endLineNumber;n++){let i="";n===t.startLineNumber&&(i=this.getLineContent(e.range.startLineNumber),-1!==c.HG(i))||u.push({lineNumber:n,oldContent:i})}}let p=null;if(n){let e=0;p=[];for(let t=0;t<a.length;t++){const n=a[t],i=h[t],r=this.getValueInRange(n.range),s=n.rangeOffset+e;e+=n.text.length-r.length,p[t]={sortIndex:n.sortIndex,identifier:n.identifier,range:i,text:r,textChange:new Rt(n.rangeOffset,r,s,n.text)}}l||p.sort(((e,t)=>e.sortIndex-t.sortIndex))}this._mightContainRTL=i,this._mightContainUnusualLineTerminators=r,this._mightContainNonBasicASCII=s;const m=this._doApplyEdits(a);let f=null;if(t&&u.length>0){u.sort(((e,t)=>t.lineNumber-e.lineNumber)),f=[];for(let e=0,t=u.length;e<t;e++){const t=u[e].lineNumber;if(e>0&&u[e-1].lineNumber===t)continue;const n=u[e].oldContent,i=this.getLineContent(t);0!==i.length&&i!==n&&-1===c.HG(i)&&f.push(t)}}return this._onDidChangeContent.fire(),new fe.F4(p,m,f)}_reduceOperations(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]}_toSingleEditOperation(e){let t=!1;const n=e[0].range,i=e[e.length-1].range,r=new f.Q(n.startLineNumber,n.startColumn,i.endLineNumber,i.endColumn);let s=n.startLineNumber,o=n.startColumn;const a=[];for(let d=0,p=e.length;d<p;d++){const n=e[d],i=n.range;t=t||n.forceMoveMarkers,a.push(this.getValueInRange(new f.Q(s,o,i.startLineNumber,i.startColumn))),n.text.length>0&&a.push(n.text),s=i.endLineNumber,o=i.endColumn}const l=a.join(""),[c,h,u]=(0,d.W)(l);return{sortIndex:0,identifier:e[0].identifier,range:r,rangeOffset:this.getOffsetAt(r.startLineNumber,r.startColumn),rangeLength:this.getValueLengthInRange(r,0),text:l,eolCount:c,firstLineLength:h,lastLineLength:u,forceMoveMarkers:t,isAutoWhitespaceEdit:!1}}_doApplyEdits(e){e.sort(Kn._sortOpsDescending);const t=[];for(let n=0;n<e.length;n++){const i=e[n],r=i.range.startLineNumber,s=i.range.startColumn,o=i.range.endLineNumber,a=i.range.endColumn;if(r===o&&s===a&&0===i.text.length)continue;i.text?(this._pieceTree.delete(i.rangeOffset,i.rangeLength),this._pieceTree.insert(i.rangeOffset,i.text,!0)):this._pieceTree.delete(i.rangeOffset,i.rangeLength);const l=new f.Q(r,s,o,a);t.push({range:l,rangeLength:i.rangeLength,text:i.text,rangeOffset:i.rangeOffset,forceMoveMarkers:i.forceMoveMarkers})}return t}findMatchesLineByLine(e,t,n,i){return this._pieceTree.findMatchesLineByLine(e,t,n,i)}static _getInverseEditRanges(e){const t=[];let n=0,i=0,r=null;for(let s=0,o=e.length;s<o;s++){const o=e[s];let a,l,c;if(r?r.range.endLineNumber===o.range.startLineNumber?(a=n,l=i+(o.range.startColumn-r.range.endColumn)):(a=n+(o.range.startLineNumber-r.range.endLineNumber),l=o.range.startColumn):(a=o.range.startLineNumber,l=o.range.startColumn),o.text.length>0){const e=o.eolCount+1;c=1===e?new f.Q(a,l,a,l+o.firstLineLength):new f.Q(a,l,a+e-1,o.lastLineLength+1)}else c=new f.Q(a,l,a,l);n=c.endLineNumber,i=c.endColumn,t.push(c),r=o}return t}static _sortOpsAscending(e,t){const n=f.Q.compareRangesUsingEnds(e.range,t.range);return 0===n?e.sortIndex-t.sortIndex:n}static _sortOpsDescending(e,t){const n=f.Q.compareRangesUsingEnds(e.range,t.range);return 0===n?t.sortIndex-e.sortIndex:-n}}class Hn{constructor(e,t,n,i,r,s,o,a,l){this._chunks=e,this._bom=t,this._cr=n,this._lf=i,this._crlf=r,this._containsRTL=s,this._containsUnusualLineTerminators=o,this._isBasicASCII=a,this._normalizeEOL=l}_getEOL(e){const t=this._cr+this._lf+this._crlf,n=this._cr+this._crlf;return 0===t?1===e?"\n":"\r\n":n>t/2?"\r\n":"\n"}create(e){const t=this._getEOL(e),n=this._chunks;if(this._normalizeEOL&&("\r\n"===t&&(this._cr>0||this._lf>0)||"\n"===t&&(this._cr>0||this._crlf>0)))for(let r=0,s=n.length;r<s;r++){const e=n[r].buffer.replace(/\r\n|\r|\n/g,t),i=Wn(e);n[r]=new Un(e,i)}const i=new Kn(n,this._bom,t,this._containsRTL,this._containsUnusualLineTerminators,this._isBasicASCII,this._normalizeEOL);return{textBuffer:i,disposable:i}}}class Gn{constructor(){this.chunks=[],this.BOM="",this._hasPreviousChar=!1,this._previousChar=0,this._tmpLineStarts=[],this.cr=0,this.lf=0,this.crlf=0,this.containsRTL=!1,this.containsUnusualLineTerminators=!1,this.isBasicASCII=!0}acceptChunk(e){if(0===e.length)return;0===this.chunks.length&&c.LU(e)&&(this.BOM=c.r_,e=e.substr(1));const t=e.charCodeAt(e.length-1);13===t||t>=55296&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0,this._previousChar=t):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1,this._previousChar=t)}_acceptChunk1(e,t){(t||0!==e.length)&&(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))}_acceptChunk2(e){const t=function(e,t){e.length=0,e[0]=0;let n=1,i=0,r=0,s=0,o=!0;for(let l=0,c=t.length;l<c;l++){const a=t.charCodeAt(l);13===a?l+1<c&&10===t.charCodeAt(l+1)?(s++,e[n++]=l+2,l++):(i++,e[n++]=l+1):10===a?(r++,e[n++]=l+1):o&&9!==a&&(a<32||a>126)&&(o=!1)}const a=new Bn(Pn(e),i,r,s,o);return e.length=0,a}(this._tmpLineStarts,e);this.chunks.push(new Un(e,t.lineStarts)),this.cr+=t.cr,this.lf+=t.lf,this.crlf+=t.crlf,t.isBasicASCII||(this.isBasicASCII=!1,this.containsRTL||(this.containsRTL=c.E_(e)),this.containsUnusualLineTerminators||(this.containsUnusualLineTerminators=c.$X(e)))}finish(e=!0){return this._finish(),new Hn(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,e)}_finish(){if(0===this.chunks.length&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;const e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);const t=Wn(e.buffer);e.lineStarts=t,13===this._previousChar&&this.cr++}}}var Qn=n(6571),Jn=n(2083),Yn=n(1940),Xn=n(8381),Zn=n(4444);const ei=new class{clone(){return this}equals(e){return this===e}};class ti{constructor(e){this._default=e,this._store=[]}get(e){return e<this._store.length?this._store[e]:this._default}set(e,t){for(;e>=this._store.length;)this._store[this._store.length]=this._default;this._store[e]=t}replace(e,t,n){if(e>=this._store.length)return;if(0===t)return void this.insert(e,n);if(0===n)return void this.delete(e,t);const i=this._store.slice(0,e),r=this._store.slice(e+t),s=function(e,t){const n=[];for(let i=0;i<e;i++)n[i]=t;return n}(n,this._default);this._store=i.concat(s,r)}delete(e,t){0===t||e>=this._store.length||this._store.splice(e,t)}insert(e,t){if(0===t||e>=this._store.length)return;const n=[];for(let i=0;i<t;i++)n[i]=this._default;this._store=(0,o.nK)(this._store,e,n)}}class ni{get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._startLineNumber+this._tokens.length-1}constructor(e,t){this._startLineNumber=e,this._tokens=t}getLineTokens(e){return this._tokens[e-this._startLineNumber]}appendLineTokens(e){this._tokens.push(e)}}class ii{constructor(){this._tokens=[]}add(e,t){if(this._tokens.length>0){const n=this._tokens[this._tokens.length-1];if(n.endLineNumber+1===e)return void n.appendLineTokens(t)}this._tokens.push(new ni(e,[t]))}finalize(){return this._tokens}}class ri{static{this.defaultTokenMetadata=33587200}static createEmpty(e,t){const n=ri.defaultTokenMetadata,i=new Uint32Array(2);return i[0]=e.length,i[1]=n,new ri(i,e,t)}static createFromTextAndMetadata(e,t){let n=0,i="";const r=new Array;for(const{text:s,metadata:o}of e)r.push(n+s.length,o),n+=s.length,i+=s;return new ri(new Uint32Array(r),i,t)}constructor(e,t,n){this._lineTokensBrand=void 0,this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t,this.languageIdCodec=n}equals(e){return e instanceof ri&&this.slicedEquals(e,0,this._tokensCount)}slicedEquals(e,t,n){if(this._text!==e._text)return!1;if(this._tokensCount!==e._tokensCount)return!1;const i=t<<1,r=i+(n<<1);for(let s=i;s<r;s++)if(this._tokens[s]!==e._tokens[s])return!1;return!0}getLineContent(){return this._text}getCount(){return this._tokensCount}getStartOffset(e){return e>0?this._tokens[e-1<<1]:0}getMetadata(e){return this._tokens[1+(e<<1)]}getLanguageId(e){const t=this._tokens[1+(e<<1)],n=Xe.x.getLanguageId(t);return this.languageIdCodec.decodeLanguageId(n)}getStandardTokenType(e){const t=this._tokens[1+(e<<1)];return Xe.x.getTokenType(t)}getForeground(e){const t=this._tokens[1+(e<<1)];return Xe.x.getForeground(t)}getClassName(e){const t=this._tokens[1+(e<<1)];return Xe.x.getClassNameFromMetadata(t)}getInlineStyle(e,t){const n=this._tokens[1+(e<<1)];return Xe.x.getInlineStyleFromMetadata(n,t)}getPresentation(e){const t=this._tokens[1+(e<<1)];return Xe.x.getPresentationFromMetadata(t)}getEndOffset(e){return this._tokens[e<<1]}findTokenIndexAtOffset(e){return ri.findIndexInTokensArray(this._tokens,e)}inflate(){return this}sliceAndInflate(e,t,n){return new si(this,e,t,n)}static convertToEndOffset(e,t){const n=(e.length>>>1)-1;for(let i=0;i<n;i++)e[i<<1]=e[i+1<<1];e[n<<1]=t}static findIndexInTokensArray(e,t){if(e.length<=2)return 0;let n=0,i=(e.length>>>1)-1;for(;n<i;){const r=n+Math.floor((i-n)/2),s=e[r<<1];if(s===t)return r+1;s<t?n=r+1:s>t&&(i=r)}return n}withInserted(e){if(0===e.length)return this;let t=0,n=0,i="";const r=new Array;let s=0;for(;;){const o=t<this._tokensCount?this._tokens[t<<1]:-1,a=n<e.length?e[n]:null;if(-1!==o&&(null===a||o<=a.offset)){i+=this._text.substring(s,o);const e=this._tokens[1+(t<<1)];r.push(i.length,e),t++,s=o}else{if(!a)break;if(a.offset>s){i+=this._text.substring(s,a.offset);const e=this._tokens[1+(t<<1)];r.push(i.length,e),s=a.offset}i+=a.text,r.push(i.length,a.tokenMetadata),n++}}return new ri(new Uint32Array(r),i,this.languageIdCodec)}getTokenText(e){const t=this.getStartOffset(e),n=this.getEndOffset(e);return this._text.substring(t,n)}forEach(e){const t=this.getCount();for(let n=0;n<t;n++)e(n)}}class si{constructor(e,t,n,i){this._source=e,this._startOffset=t,this._endOffset=n,this._deltaOffset=i,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this.languageIdCodec=e.languageIdCodec,this._tokensCount=0;for(let r=this._firstTokenIndex,s=e.getCount();r<s;r++){if(e.getStartOffset(r)>=n)break;this._tokensCount++}}getMetadata(e){return this._source.getMetadata(this._firstTokenIndex+e)}getLanguageId(e){return this._source.getLanguageId(this._firstTokenIndex+e)}getLineContent(){return this._source.getLineContent().substring(this._startOffset,this._endOffset)}equals(e){return e instanceof si&&(this._startOffset===e._startOffset&&this._endOffset===e._endOffset&&this._deltaOffset===e._deltaOffset&&this._source.slicedEquals(e._source,this._firstTokenIndex,this._tokensCount))}getCount(){return this._tokensCount}getStandardTokenType(e){return this._source.getStandardTokenType(this._firstTokenIndex+e)}getForeground(e){return this._source.getForeground(this._firstTokenIndex+e)}getEndOffset(e){const t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset}getClassName(e){return this._source.getClassName(this._firstTokenIndex+e)}getInlineStyle(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)}getPresentation(e){return this._source.getPresentation(this._firstTokenIndex+e)}findTokenIndexAtOffset(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex}getTokenText(e){const t=this._firstTokenIndex+e,n=this._source.getStartOffset(t),i=this._source.getEndOffset(t);let r=this._source.getTokenText(t);return n<this._startOffset&&(r=r.substring(this._startOffset-n)),i>this._endOffset&&(r=r.substring(0,r.length-(i-this._endOffset))),r}forEach(e){for(let t=0;t<this.getCount();t++)e(t)}}class oi{constructor(e,t){this.tokenizationSupport=t,this.initialState=this.tokenizationSupport.getInitialState(),this.store=new li(e)}getStartState(e){return this.store.getStartState(e,this.initialState)}getFirstInvalidLine(){return this.store.getFirstInvalidLine(this.initialState)}}class ai extends oi{constructor(e,t,n,i){super(e,t),this._textModel=n,this._languageIdCodec=i}updateTokensUntilLine(e,t){const n=this._textModel.getLanguageId();for(;;){const i=this.getFirstInvalidLine();if(!i||i.lineNumber>t)break;const r=this._textModel.getLineContent(i.lineNumber),s=di(this._languageIdCodec,n,this.tokenizationSupport,r,!0,i.startState);e.add(i.lineNumber,s.tokens),this.store.setEndState(i.lineNumber,s.endState)}}getTokenTypeIfInsertingCharacter(e,t){const n=this.getStartState(e.lineNumber);if(!n)return 0;const i=this._textModel.getLanguageId(),r=this._textModel.getLineContent(e.lineNumber),s=r.substring(0,e.column-1)+t+r.substring(e.column-1),o=di(this._languageIdCodec,i,this.tokenizationSupport,s,!0,n),a=new ri(o.tokens,s,this._languageIdCodec);if(0===a.getCount())return 0;const l=a.findTokenIndexAtOffset(e.column-1);return a.getStandardTokenType(l)}tokenizeLineWithEdit(e,t,n){const i=e.lineNumber,r=e.column,s=this.getStartState(i);if(!s)return null;const o=this._textModel.getLineContent(i),a=o.substring(0,r-1)+n+o.substring(r-1+t),l=this._textModel.getLanguageIdAtPosition(i,0),c=di(this._languageIdCodec,l,this.tokenizationSupport,a,!0,s);return new ri(c.tokens,a,this._languageIdCodec)}hasAccurateTokensForLine(e){return e<this.store.getFirstInvalidEndStateLineNumberOrMax()}isCheapToTokenize(e){const t=this.store.getFirstInvalidEndStateLineNumberOrMax();return e<t||e===t&&this._textModel.getLineLength(e)<2048}tokenizeHeuristically(e,t,n){if(n<=this.store.getFirstInvalidEndStateLineNumberOrMax())return{heuristicTokens:!1};if(t<=this.store.getFirstInvalidEndStateLineNumberOrMax())return this.updateTokensUntilLine(e,n),{heuristicTokens:!1};let i=this.guessStartState(t);const r=this._textModel.getLanguageId();for(let s=t;s<=n;s++){const t=this._textModel.getLineContent(s),n=di(this._languageIdCodec,r,this.tokenizationSupport,t,!0,i);e.add(s,n.tokens),i=n.endState}return{heuristicTokens:!0}}guessStartState(e){let t=this._textModel.getLineFirstNonWhitespaceColumn(e);const n=[];let i=null;for(let o=e-1;t>1&&o>=1;o--){const e=this._textModel.getLineFirstNonWhitespaceColumn(o);if(0!==e&&(e<t&&(n.push(this._textModel.getLineContent(o)),t=e,i=this.getStartState(o),i)))break}i||(i=this.tokenizationSupport.getInitialState()),n.reverse();const r=this._textModel.getLanguageId();let s=i;for(const o of n){s=di(this._languageIdCodec,r,this.tokenizationSupport,o,!1,s).endState}return s}}class li{constructor(e){this.lineCount=e,this._tokenizationStateStore=new ci,this._invalidEndStatesLineNumbers=new hi,this._invalidEndStatesLineNumbers.addRange(new Zn.L(1,e+1))}getEndState(e){return this._tokenizationStateStore.getEndState(e)}setEndState(e,t){if(!t)throw new l.D7("Cannot set null/undefined state");this._invalidEndStatesLineNumbers.delete(e);const n=this._tokenizationStateStore.setEndState(e,t);return n&&e<this.lineCount&&this._invalidEndStatesLineNumbers.addRange(new Zn.L(e+1,e+2)),n}acceptChange(e,t){this.lineCount+=t-e.length,this._tokenizationStateStore.acceptChange(e,t),this._invalidEndStatesLineNumbers.addRangeAndResize(new Zn.L(e.startLineNumber,e.endLineNumberExclusive),t)}acceptChanges(e){for(const t of e){const[e]=(0,d.W)(t.text);this.acceptChange(new Qn.M(t.range.startLineNumber,t.range.endLineNumber+1),e+1)}}invalidateEndStateRange(e){this._invalidEndStatesLineNumbers.addRange(new Zn.L(e.startLineNumber,e.endLineNumberExclusive))}getFirstInvalidEndStateLineNumber(){return this._invalidEndStatesLineNumbers.min}getFirstInvalidEndStateLineNumberOrMax(){return this.getFirstInvalidEndStateLineNumber()||Number.MAX_SAFE_INTEGER}allStatesValid(){return null===this._invalidEndStatesLineNumbers.min}getStartState(e,t){return 1===e?t:this.getEndState(e-1)}getFirstInvalidLine(e){const t=this.getFirstInvalidEndStateLineNumber();if(null===t)return null;const n=this.getStartState(t,e);if(!n)throw new l.D7("Start state must be defined");return{lineNumber:t,startState:n}}}class ci{constructor(){this._lineEndStates=new ti(null)}getEndState(e){return this._lineEndStates.get(e)}setEndState(e,t){const n=this._lineEndStates.get(e);return(!n||!n.equals(t))&&(this._lineEndStates.set(e,t),!0)}acceptChange(e,t){let n=e.length;t>0&&n>0&&(n--,t--),this._lineEndStates.replace(e.startLineNumber,n,t)}}class hi{constructor(){this._ranges=[]}get min(){return 0===this._ranges.length?null:this._ranges[0].start}delete(e){const t=this._ranges.findIndex((t=>t.contains(e)));if(-1!==t){const n=this._ranges[t];n.start===e?n.endExclusive===e+1?this._ranges.splice(t,1):this._ranges[t]=new Zn.L(e+1,n.endExclusive):n.endExclusive===e+1?this._ranges[t]=new Zn.L(n.start,e):this._ranges.splice(t,1,new Zn.L(n.start,e),new Zn.L(e+1,n.endExclusive))}}addRange(e){Zn.L.addRange(e,this._ranges)}addRangeAndResize(e,t){let n=0;for(;!(n>=this._ranges.length||e.start<=this._ranges[n].endExclusive);)n++;let i=n;for(;!(i>=this._ranges.length||e.endExclusive<this._ranges[i].start);)i++;const r=t-e.length;for(let s=i;s<this._ranges.length;s++)this._ranges[s]=this._ranges[s].delta(r);if(n===i){const i=new Zn.L(e.start,e.start+t);i.isEmpty||this._ranges.splice(n,0,i)}else{const t=Math.min(e.start,this._ranges[n].start),s=Math.max(e.endExclusive,this._ranges[i-1].endExclusive),o=new Zn.L(t,s+r);o.isEmpty?this._ranges.splice(n,i-n):this._ranges.splice(n,i-n,o)}}toString(){return this._ranges.map((e=>e.toString())).join(" + ")}}function di(e,t,n,i,r,s){let o=null;if(n)try{o=n.tokenizeEncoded(i,r,s.clone())}catch(a){(0,l.dz)(a)}return o||(o=function(e,t){const n=new Uint32Array(2);return n[0]=0,n[1]=(32768|e|2<<24)>>>0,new Jn.rY(n,null===t?ei:t)}(e.encodeLanguageId(t),s)),ri.convertToEndOffset(o.tokens,i.length),o}class ui{constructor(e,t){this._tokenizerWithStateStore=e,this._backgroundTokenStore=t,this._isDisposed=!1,this._isScheduled=!1}dispose(){this._isDisposed=!0}handleChanges(){this._beginBackgroundTokenization()}_beginBackgroundTokenization(){!this._isScheduled&&this._tokenizerWithStateStore._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&(this._isScheduled=!0,(0,Yn.$6)((e=>{this._isScheduled=!1,this._backgroundTokenizeWithDeadline(e)})))}_backgroundTokenizeWithDeadline(e){const t=Date.now()+e.timeRemaining(),n=()=>{!this._isDisposed&&this._tokenizerWithStateStore._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&(this._backgroundTokenizeForAtLeast1ms(),Date.now()<t?(0,s._p)(n):this._beginBackgroundTokenization())};n()}_backgroundTokenizeForAtLeast1ms(){const e=this._tokenizerWithStateStore._textModel.getLineCount(),t=new ii,n=Xn.W.create(!1);do{if(n.elapsed()>1)break;if(this._tokenizeOneInvalidLine(t)>=e)break}while(this._hasLinesToTokenize());this._backgroundTokenStore.setTokens(t.finalize()),this.checkFinished()}_hasLinesToTokenize(){return!!this._tokenizerWithStateStore&&!this._tokenizerWithStateStore.store.allStatesValid()}_tokenizeOneInvalidLine(e){const t=this._tokenizerWithStateStore?.getFirstInvalidLine();return t?(this._tokenizerWithStateStore.updateTokensUntilLine(e,t.lineNumber),t.lineNumber):this._tokenizerWithStateStore._textModel.getLineCount()+1}checkFinished(){this._isDisposed||this._tokenizerWithStateStore.store.allStatesValid()&&this._backgroundTokenStore.backgroundTokenizationFinished()}requestTokens(e,t){this._tokenizerWithStateStore.store.invalidateEndStateRange(new Qn.M(e,t))}}class pi{constructor(){this._onDidChangeVisibleRanges=new i.vl,this.onDidChangeVisibleRanges=this._onDidChangeVisibleRanges.event,this._views=new Set}attachView(){const e=new mi((t=>{this._onDidChangeVisibleRanges.fire({view:e,state:t})}));return this._views.add(e),e}detachView(e){this._views.delete(e),this._onDidChangeVisibleRanges.fire({view:e,state:void 0})}}class mi{constructor(e){this.handleStateChange=e}setVisibleLines(e,t){const n=e.map((e=>new Qn.M(e.startLineNumber,e.endLineNumber+1)));this.handleStateChange({visibleLineRanges:n,stabilized:t})}}class fi extends r.jG{get lineRanges(){return this._lineRanges}constructor(e){super(),this._refreshTokens=e,this.runner=this._register(new Yn.uC((()=>this.update()),50)),this._computedLineRanges=[],this._lineRanges=[]}update(){(0,o.aI)(this._computedLineRanges,this._lineRanges,((e,t)=>e.equals(t)))||(this._computedLineRanges=this._lineRanges,this._refreshTokens())}handleStateChange(e){this._lineRanges=e.visibleLineRanges,e.stabilized?(this.runner.cancel(),this.update()):this.runner.schedule()}}class gi extends r.jG{get backgroundTokenizationState(){return this._backgroundTokenizationState}constructor(e,t,n){super(),this._languageIdCodec=e,this._textModel=t,this.getLanguageId=n,this._backgroundTokenizationState=1,this._onDidChangeBackgroundTokenizationState=this._register(new i.vl),this.onDidChangeBackgroundTokenizationState=this._onDidChangeBackgroundTokenizationState.event,this._onDidChangeTokens=this._register(new i.vl),this.onDidChangeTokens=this._onDidChangeTokens.event}tokenizeIfCheap(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)}}class bi extends gi{constructor(e,t,n,i){super(t,n,i),this._treeSitterService=e,this._tokenizationSupport=null,this._initialize()}_initialize(){const e=this.getLanguageId();this._tokenizationSupport&&this._lastLanguageId===e||(this._lastLanguageId=e,this._tokenizationSupport=Jn.OB.get(e))}getLineTokens(e){const t=this._textModel.getLineContent(e);if(this._tokenizationSupport){const n=this._tokenizationSupport.tokenizeEncoded(e,this._textModel);if(n)return new ri(n,t,this._languageIdCodec)}return ri.createEmpty(t,this._languageIdCodec)}resetTokenization(e=!0){e&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]}),this._initialize()}handleDidChangeAttached(){}handleDidChangeContent(e){e.isFlush&&this.resetTokenization(!1)}forceTokenization(e){}hasAccurateTokensForLine(e){return!0}isCheapToTokenize(e){return!0}getTokenTypeIfInsertingCharacter(e,t,n){return 0}tokenizeLineWithEdit(e,t,n){return null}get hasTokens(){return void 0!==this._treeSitterService.getParseResult(this._textModel)}}var vi=n(4432);const yi=new Uint32Array(0).buffer;class wi{static deleteBeginning(e,t){return null===e||e===yi?e:wi.delete(e,0,t)}static deleteEnding(e,t){if(null===e||e===yi)return e;const n=_i(e),i=n[n.length-2];return wi.delete(e,t,i)}static delete(e,t,n){if(null===e||e===yi||t===n)return e;const i=_i(e),r=i.length>>>1;if(0===t&&i[i.length-2]===n)return yi;const s=ri.findIndexInTokensArray(i,t),o=s>0?i[s-1<<1]:0;if(n<i[s<<1]){const o=n-t;for(let e=s;e<r;e++)i[e<<1]-=o;return e}let a,l;o!==t?(i[s<<1]=t,a=s+1<<1,l=t):(a=s<<1,l=o);const c=n-t;for(let d=s+1;d<r;d++){const e=i[d<<1]-c;e>l&&(i[a++]=e,i[a++]=i[1+(d<<1)],l=e)}if(a===i.length)return e;const h=new Uint32Array(a);return h.set(i.subarray(0,a),0),h.buffer}static append(e,t){if(t===yi)return e;if(e===yi)return t;if(null===e)return e;if(null===t)return null;const n=_i(e),i=_i(t),r=i.length>>>1,s=new Uint32Array(n.length+i.length);s.set(n,0);let o=n.length;const a=n[n.length-2];for(let l=0;l<r;l++)s[o++]=i[l<<1]+a,s[o++]=i[1+(l<<1)];return s.buffer}static insert(e,t,n){if(null===e||e===yi)return e;const i=_i(e),r=i.length>>>1;let s=ri.findIndexInTokensArray(i,t);if(s>0){i[s-1<<1]===t&&s--}for(let o=s;o<r;o++)i[o<<1]+=n;return e}}function _i(e){return e instanceof Uint32Array?e:new Uint32Array(e)}class ki{constructor(e){this._lineTokens=[],this._len=0,this._languageIdCodec=e}flush(){this._lineTokens=[],this._len=0}get hasTokens(){return this._lineTokens.length>0}getTokens(e,t,n){let i=null;if(t<this._len&&(i=this._lineTokens[t]),null!==i&&i!==yi)return new ri(_i(i),n,this._languageIdCodec);const r=new Uint32Array(2);return r[0]=n.length,r[1]=Ci(this._languageIdCodec.encodeLanguageId(e)),new ri(r,n,this._languageIdCodec)}static _massageTokens(e,t,n){const i=n?_i(n):null;if(0===t){let t=!1;if(i&&i.length>1&&(t=Xe.x.getLanguageId(i[1])!==e),!t)return yi}if(!i||0===i.length){const n=new Uint32Array(2);return n[0]=t,n[1]=Ci(e),n.buffer}return i[i.length-2]=t,0===i.byteOffset&&i.byteLength===i.buffer.byteLength?i.buffer:i}_ensureLine(e){for(;e>=this._len;)this._lineTokens[this._len]=null,this._len++}_deleteLines(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._lineTokens.splice(e,t),this._len-=t)}_insertLines(e,t){if(0===t)return;const n=[];for(let i=0;i<t;i++)n[i]=null;this._lineTokens=o.nK(this._lineTokens,e,n),this._len+=t}setTokens(e,t,n,i,r){const s=ki._massageTokens(this._languageIdCodec.encodeLanguageId(e),n,i);this._ensureLine(t);const o=this._lineTokens[t];return this._lineTokens[t]=s,!!r&&!ki._equals(o,s)}static _equals(e,t){if(!e||!t)return!e&&!t;const n=_i(e),i=_i(t);if(n.length!==i.length)return!1;for(let r=0,s=n.length;r<s;r++)if(n[r]!==i[r])return!1;return!0}acceptEdit(e,t,n){this._acceptDeleteRange(e),this._acceptInsertText(new m.y(e.startLineNumber,e.startColumn),t,n)}_acceptDeleteRange(e){const t=e.startLineNumber-1;if(t>=this._len)return;if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;return void(this._lineTokens[t]=wi.delete(this._lineTokens[t],e.startColumn-1,e.endColumn-1))}this._lineTokens[t]=wi.deleteEnding(this._lineTokens[t],e.startColumn-1);const n=e.endLineNumber-1;let i=null;n<this._len&&(i=wi.deleteBeginning(this._lineTokens[n],e.endColumn-1)),this._lineTokens[t]=wi.append(this._lineTokens[t],i),this._deleteLines(e.startLineNumber,e.endLineNumber-e.startLineNumber)}_acceptInsertText(e,t,n){if(0===t&&0===n)return;const i=e.lineNumber-1;i>=this._len||(0!==t?(this._lineTokens[i]=wi.deleteEnding(this._lineTokens[i],e.column-1),this._lineTokens[i]=wi.insert(this._lineTokens[i],e.column-1,n),this._insertLines(e.lineNumber,t)):this._lineTokens[i]=wi.insert(this._lineTokens[i],e.column-1,n))}setMultilineTokens(e,t){if(0===e.length)return{changes:[]};const n=[];for(let i=0,r=e.length;i<r;i++){const r=e[i];let s=0,o=0,a=!1;for(let e=r.startLineNumber;e<=r.endLineNumber;e++)if(a)this.setTokens(t.getLanguageId(),e-1,t.getLineLength(e),r.getLineTokens(e),!1),o=e;else{this.setTokens(t.getLanguageId(),e-1,t.getLineLength(e),r.getLineTokens(e),!0)&&(a=!0,s=e,o=e)}a&&n.push({fromLineNumber:s,toLineNumber:o})}return{changes:n}}}function Ci(e){return(32768|e|2<<24|1024)>>>0}class Si{constructor(e){this._pieces=[],this._isComplete=!1,this._languageIdCodec=e}flush(){this._pieces=[],this._isComplete=!1}isEmpty(){return 0===this._pieces.length}set(e,t){this._pieces=e||[],this._isComplete=t}setPartial(e,t){let n=e;if(t.length>0){const i=t[0].getRange(),r=t[t.length-1].getRange();if(!i||!r)return e;n=e.plusRange(i).plusRange(r)}let i=null;for(let r=0,s=this._pieces.length;r<s;r++){const e=this._pieces[r];if(e.endLineNumber<n.startLineNumber)continue;if(e.startLineNumber>n.endLineNumber){i=i||{index:r};break}if(e.removeTokens(n),e.isEmpty()){this._pieces.splice(r,1),r--,s--;continue}if(e.endLineNumber<n.startLineNumber)continue;if(e.startLineNumber>n.endLineNumber){i=i||{index:r};continue}const[t,o]=e.split(n);t.isEmpty()?i=i||{index:r}:o.isEmpty()||(this._pieces.splice(r,1,t,o),r++,s++,i=i||{index:r})}return i=i||{index:this._pieces.length},t.length>0&&(this._pieces=o.nK(this._pieces,i.index,t)),n}isComplete(){return this._isComplete}addSparseTokens(e,t){if(0===t.getLineContent().length)return t;const n=this._pieces;if(0===n.length)return t;const i=n[Si._findFirstPieceWithLine(n,e)].getLineTokens(e);if(!i)return t;const r=t.getCount(),s=i.getCount();let o=0;const a=[];let l=0,c=0;const h=(e,t)=>{e!==c&&(c=e,a[l++]=e,a[l++]=t)};for(let d=0;d<s;d++){const e=i.getStartCharacter(d),n=i.getEndCharacter(d),s=i.getMetadata(d),a=((1&s?2048:0)|(2&s?4096:0)|(4&s?8192:0)|(8&s?16384:0)|(16&s?16744448:0)|(32&s?4278190080:0))>>>0,l=~a>>>0;for(;o<r&&t.getEndOffset(o)<=e;)h(t.getEndOffset(o),t.getMetadata(o)),o++;for(o<r&&t.getStartOffset(o)<e&&h(e,t.getMetadata(o));o<r&&t.getEndOffset(o)<n;)h(t.getEndOffset(o),t.getMetadata(o)&l|s&a),o++;if(o<r)h(n,t.getMetadata(o)&l|s&a),t.getEndOffset(o)===n&&o++;else{const e=Math.min(Math.max(0,o-1),r-1);h(n,t.getMetadata(e)&l|s&a)}}for(;o<r;)h(t.getEndOffset(o),t.getMetadata(o)),o++;return new ri(new Uint32Array(a),t.getLineContent(),this._languageIdCodec)}static _findFirstPieceWithLine(e,t){let n=0,i=e.length-1;for(;n<i;){let r=n+Math.floor((i-n)/2);if(e[r].endLineNumber<t)n=r+1;else{if(!(e[r].startLineNumber>t)){for(;r>n&&e[r-1].startLineNumber<=t&&t<=e[r-1].endLineNumber;)r--;return r}i=r-1}}return n}acceptEdit(e,t,n,i,r){for(const s of this._pieces)s.acceptEdit(e,t,n,i,r)}}var xi,Ei=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},Fi=function(e,t){return function(n,i){t(n,i,e)}};let Li=xi=class extends qt{constructor(e,t,n,s,o,a,l){super(),this._textModel=e,this._bracketPairsTextModelPart=t,this._languageId=n,this._attachedViews=s,this._languageService=o,this._languageConfigurationService=a,this._treeSitterService=l,this._semanticTokens=new Si(this._languageService.languageIdCodec),this._onDidChangeLanguage=this._register(new i.vl),this.onDidChangeLanguage=this._onDidChangeLanguage.event,this._onDidChangeLanguageConfiguration=this._register(new i.vl),this.onDidChangeLanguageConfiguration=this._onDidChangeLanguageConfiguration.event,this._onDidChangeTokens=this._register(new i.vl),this.onDidChangeTokens=this._onDidChangeTokens.event,this._tokensDisposables=this._register(new r.Cm),this._register(this._languageConfigurationService.onDidChange((e=>{e.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})}))),this._register(i.Jh.filter(Jn.OB.onDidChange,(e=>e.changedLanguages.includes(this._languageId)))((()=>{this.createPreferredTokenProvider()}))),this.createPreferredTokenProvider()}createGrammarTokens(){return this._register(new Ii(this._languageService.languageIdCodec,this._textModel,(()=>this._languageId),this._attachedViews))}createTreeSitterTokens(){return this._register(new bi(this._treeSitterService,this._languageService.languageIdCodec,this._textModel,(()=>this._languageId)))}createTokens(e){const t=void 0!==this._tokens;this._tokens?.dispose(),this._tokens=e?this.createTreeSitterTokens():this.createGrammarTokens(),this._tokensDisposables.clear(),this._tokensDisposables.add(this._tokens.onDidChangeTokens((e=>{this._emitModelTokensChangedEvent(e)}))),this._tokensDisposables.add(this._tokens.onDidChangeBackgroundTokenizationState((e=>{this._bracketPairsTextModelPart.handleDidChangeBackgroundTokenizationState()}))),t&&this._tokens.resetTokenization()}createPreferredTokenProvider(){Jn.OB.get(this._languageId)?this._tokens instanceof bi||this.createTokens(!0):this._tokens instanceof Ii||this.createTokens(!1)}handleLanguageConfigurationServiceChange(e){e.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})}handleDidChangeContent(e){if(e.isFlush)this._semanticTokens.flush();else if(!e.isEolChange)for(const t of e.changes){const[e,n,i]=(0,d.W)(t.text);this._semanticTokens.acceptEdit(t.range,e,n,i,t.text.length>0?t.text.charCodeAt(0):0)}this._tokens.handleDidChangeContent(e)}handleDidChangeAttached(){this._tokens.handleDidChangeAttached()}getLineTokens(e){this.validateLineNumber(e);const t=this._tokens.getLineTokens(e);return this._semanticTokens.addSparseTokens(e,t)}_emitModelTokensChangedEvent(e){this._textModel._isDisposing()||(this._bracketPairsTextModelPart.handleDidChangeTokens(e),this._onDidChangeTokens.fire(e))}validateLineNumber(e){if(e<1||e>this._textModel.getLineCount())throw new l.D7("Illegal value for lineNumber")}get hasTokens(){return this._tokens.hasTokens}resetTokenization(){this._tokens.resetTokenization()}get backgroundTokenizationState(){return this._tokens.backgroundTokenizationState}forceTokenization(e){this.validateLineNumber(e),this._tokens.forceTokenization(e)}hasAccurateTokensForLine(e){return this.validateLineNumber(e),this._tokens.hasAccurateTokensForLine(e)}isCheapToTokenize(e){return this.validateLineNumber(e),this._tokens.isCheapToTokenize(e)}tokenizeIfCheap(e){this.validateLineNumber(e),this._tokens.tokenizeIfCheap(e)}getTokenTypeIfInsertingCharacter(e,t,n){return this._tokens.getTokenTypeIfInsertingCharacter(e,t,n)}tokenizeLineWithEdit(e,t,n){return this._tokens.tokenizeLineWithEdit(e,t,n)}setSemanticTokens(e,t){this._semanticTokens.set(e,t),this._emitModelTokensChangedEvent({semanticTokensApplied:null!==e,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]})}hasCompleteSemanticTokens(){return this._semanticTokens.isComplete()}hasSomeSemanticTokens(){return!this._semanticTokens.isEmpty()}setPartialSemanticTokens(e,t){if(this.hasCompleteSemanticTokens())return;const n=this._textModel.validateRange(this._semanticTokens.setPartial(e,t));this._emitModelTokensChangedEvent({semanticTokensApplied:!0,ranges:[{fromLineNumber:n.startLineNumber,toLineNumber:n.endLineNumber}]})}getWordAtPosition(e){this.assertNotDisposed();const t=this._textModel.validatePosition(e),n=this._textModel.getLineContent(t.lineNumber),i=this.getLineTokens(t.lineNumber),r=i.findTokenIndexAtOffset(t.column-1),[s,o]=xi._findLanguageBoundaries(i,r),a=(0,w.Th)(t.column,this.getLanguageConfiguration(i.getLanguageId(r)).getWordDefinition(),n.substring(s,o),s);if(a&&a.startColumn<=e.column&&e.column<=a.endColumn)return a;if(r>0&&s===t.column-1){const[s,o]=xi._findLanguageBoundaries(i,r-1),a=(0,w.Th)(t.column,this.getLanguageConfiguration(i.getLanguageId(r-1)).getWordDefinition(),n.substring(s,o),s);if(a&&a.startColumn<=e.column&&e.column<=a.endColumn)return a}return null}getLanguageConfiguration(e){return this._languageConfigurationService.getLanguageConfiguration(e)}static _findLanguageBoundaries(e,t){const n=e.getLanguageId(t);let i=0;for(let s=t;s>=0&&e.getLanguageId(s)===n;s--)i=e.getStartOffset(s);let r=e.getLineContent().length;for(let s=t,o=e.getCount();s<o&&e.getLanguageId(s)===n;s++)r=e.getEndOffset(s);return[i,r]}getWordUntilPosition(e){const t=this.getWordAtPosition(e);return t?{word:t.word.substr(0,e.column-t.startColumn),startColumn:t.startColumn,endColumn:e.column}:{word:"",startColumn:e.column,endColumn:e.column}}getLanguageId(){return this._languageId}getLanguageIdAtPosition(e,t){const n=this._textModel.validatePosition(new m.y(e,t)),i=this.getLineTokens(n.lineNumber);return i.getLanguageId(i.findTokenIndexAtOffset(n.column-1))}setLanguageId(e,t="api"){if(this._languageId===e)return;const n={oldLanguage:this._languageId,newLanguage:e,source:t};this._languageId=e,this._bracketPairsTextModelPart.handleDidChangeLanguage(n),this._tokens.resetTokenization(),this.createPreferredTokenProvider(),this._onDidChangeLanguage.fire(n),this._onDidChangeLanguageConfiguration.fire({})}};Li=xi=Ei([Fi(4,y.L),Fi(5,se),Fi(6,vi.ITreeSitterParserService)],Li);class Ii extends gi{constructor(e,t,n,i){super(e,t,n),this._tokenizer=null,this._defaultBackgroundTokenizer=null,this._backgroundTokenizer=this._register(new r.HE),this._tokens=new ki(this._languageIdCodec),this._debugBackgroundTokenizer=this._register(new r.HE),this._attachedViewStates=this._register(new r.$w),this._register(Jn.dG.onDidChange((e=>{const t=this.getLanguageId();-1!==e.changedLanguages.indexOf(t)&&this.resetTokenization()}))),this.resetTokenization(),this._register(i.onDidChangeVisibleRanges((({view:e,state:t})=>{if(t){let n=this._attachedViewStates.get(e);n||(n=new fi((()=>this.refreshRanges(n.lineRanges))),this._attachedViewStates.set(e,n)),n.handleStateChange(t)}else this._attachedViewStates.deleteAndDispose(e)})))}resetTokenization(e=!0){this._tokens.flush(),this._debugBackgroundTokens?.flush(),this._debugBackgroundStates&&(this._debugBackgroundStates=new li(this._textModel.getLineCount())),e&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]});const[t,n]=(()=>{if(this._textModel.isTooLargeForTokenization())return[null,null];const e=Jn.dG.get(this.getLanguageId());if(!e)return[null,null];let t;try{t=e.getInitialState()}catch(n){return(0,l.dz)(n),[null,null]}return[e,t]})();if(this._tokenizer=t&&n?new ai(this._textModel.getLineCount(),t,this._textModel,this._languageIdCodec):null,this._backgroundTokenizer.clear(),this._defaultBackgroundTokenizer=null,this._tokenizer){const e={setTokens:e=>{this.setTokens(e)},backgroundTokenizationFinished:()=>{if(2===this._backgroundTokenizationState)return;this._backgroundTokenizationState=2,this._onDidChangeBackgroundTokenizationState.fire()},setEndState:(e,t)=>{if(!this._tokenizer)return;const n=this._tokenizer.store.getFirstInvalidEndStateLineNumber();null!==n&&e>=n&&this._tokenizer?.store.setEndState(e,t)}};t&&t.createBackgroundTokenizer&&!t.backgroundTokenizerShouldOnlyVerifyTokens&&(this._backgroundTokenizer.value=t.createBackgroundTokenizer(this._textModel,e)),this._backgroundTokenizer.value||this._textModel.isTooLargeForTokenization()||(this._backgroundTokenizer.value=this._defaultBackgroundTokenizer=new ui(this._tokenizer,e),this._defaultBackgroundTokenizer.handleChanges()),t?.backgroundTokenizerShouldOnlyVerifyTokens&&t.createBackgroundTokenizer?(this._debugBackgroundTokens=new ki(this._languageIdCodec),this._debugBackgroundStates=new li(this._textModel.getLineCount()),this._debugBackgroundTokenizer.clear(),this._debugBackgroundTokenizer.value=t.createBackgroundTokenizer(this._textModel,{setTokens:e=>{this._debugBackgroundTokens?.setMultilineTokens(e,this._textModel)},backgroundTokenizationFinished(){},setEndState:(e,t)=>{this._debugBackgroundStates?.setEndState(e,t)}})):(this._debugBackgroundTokens=void 0,this._debugBackgroundStates=void 0,this._debugBackgroundTokenizer.value=void 0)}this.refreshAllVisibleLineTokens()}handleDidChangeAttached(){this._defaultBackgroundTokenizer?.handleChanges()}handleDidChangeContent(e){if(e.isFlush)this.resetTokenization(!1);else if(!e.isEolChange){for(const t of e.changes){const[e,n]=(0,d.W)(t.text);this._tokens.acceptEdit(t.range,e,n),this._debugBackgroundTokens?.acceptEdit(t.range,e,n)}this._debugBackgroundStates?.acceptChanges(e.changes),this._tokenizer&&this._tokenizer.store.acceptChanges(e.changes),this._defaultBackgroundTokenizer?.handleChanges()}}setTokens(e){const{changes:t}=this._tokens.setMultilineTokens(e,this._textModel);return t.length>0&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:t}),{changes:t}}refreshAllVisibleLineTokens(){const e=Qn.M.joinMany([...this._attachedViewStates].map((([e,t])=>t.lineRanges)));this.refreshRanges(e)}refreshRanges(e){for(const t of e)this.refreshRange(t.startLineNumber,t.endLineNumberExclusive-1)}refreshRange(e,t){if(!this._tokenizer)return;e=Math.max(1,Math.min(this._textModel.getLineCount(),e)),t=Math.min(this._textModel.getLineCount(),t);const n=new ii,{heuristicTokens:i}=this._tokenizer.tokenizeHeuristically(n,e,t),r=this.setTokens(n.finalize());if(i)for(const s of r.changes)this._backgroundTokenizer.value?.requestTokens(s.fromLineNumber,s.toLineNumber+1);this._defaultBackgroundTokenizer?.checkFinished()}forceTokenization(e){const t=new ii;this._tokenizer?.updateTokensUntilLine(t,e),this.setTokens(t.finalize()),this._defaultBackgroundTokenizer?.checkFinished()}hasAccurateTokensForLine(e){return!this._tokenizer||this._tokenizer.hasAccurateTokensForLine(e)}isCheapToTokenize(e){return!this._tokenizer||this._tokenizer.isCheapToTokenize(e)}getLineTokens(e){const t=this._textModel.getLineContent(e),n=this._tokens.getTokens(this._textModel.getLanguageId(),e-1,t);if(this._debugBackgroundTokens&&this._debugBackgroundStates&&this._tokenizer&&this._debugBackgroundStates.getFirstInvalidEndStateLineNumberOrMax()>e&&this._tokenizer.store.getFirstInvalidEndStateLineNumberOrMax()>e){const i=this._debugBackgroundTokens.getTokens(this._textModel.getLanguageId(),e-1,t);!n.equals(i)&&this._debugBackgroundTokenizer.value?.reportMismatchingTokens&&this._debugBackgroundTokenizer.value.reportMismatchingTokens(e)}return n}getTokenTypeIfInsertingCharacter(e,t,n){if(!this._tokenizer)return 0;const i=this._textModel.validatePosition(new m.y(e,t));return this.forceTokenization(i.lineNumber),this._tokenizer.getTokenTypeIfInsertingCharacter(i,n)}tokenizeLineWithEdit(e,t,n){if(!this._tokenizer)return null;const i=this._textModel.validatePosition(e);return this.forceTokenization(i.lineNumber),this._tokenizer.tokenizeLineWithEdit(i,t,n)}get hasTokens(){return this._tokens.hasTokens}}class Ti{constructor(){this.changeType=1}}class Ni{static applyInjectedText(e,t){if(!t||0===t.length)return e;let n="",i=0;for(const r of t)n+=e.substring(i,r.column-1),i=r.column-1,n+=r.options.content;return n+=e.substring(i),n}static fromDecorations(e){const t=[];for(const n of e)n.options.before&&n.options.before.content.length>0&&t.push(new Ni(n.ownerId,n.range.startLineNumber,n.range.startColumn,n.options.before,0)),n.options.after&&n.options.after.content.length>0&&t.push(new Ni(n.ownerId,n.range.endLineNumber,n.range.endColumn,n.options.after,1));return t.sort(((e,t)=>e.lineNumber===t.lineNumber?e.column===t.column?e.order-t.order:e.column-t.column:e.lineNumber-t.lineNumber)),t}constructor(e,t,n,i,r){this.ownerId=e,this.lineNumber=t,this.column=n,this.options=i,this.order=r}}class Ri{constructor(e,t,n){this.changeType=2,this.lineNumber=e,this.detail=t,this.injectedText=n}}class Di{constructor(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t}}class Ai{constructor(e,t,n,i){this.changeType=4,this.injectedTexts=i,this.fromLineNumber=e,this.toLineNumber=t,this.detail=n}}class Mi{constructor(){this.changeType=5}}class Oi{constructor(e,t,n,i){this.changes=e,this.versionId=t,this.isUndoing=n,this.isRedoing=i,this.resultingSelection=null}containsEvent(e){for(let t=0,n=this.changes.length;t<n;t++){if(this.changes[t].changeType===e)return!0}return!1}static merge(e,t){const n=[].concat(e.changes).concat(t.changes),i=t.versionId,r=e.isUndoing||t.isUndoing,s=e.isRedoing||t.isRedoing;return new Oi(n,i,r,s)}}class zi{constructor(e){this.changes=e}}class Pi{constructor(e,t){this.rawContentChangedEvent=e,this.contentChangedEvent=t}merge(e){const t=Oi.merge(this.rawContentChangedEvent,e.rawContentChangedEvent),n=Pi._mergeChangeEvents(this.contentChangedEvent,e.contentChangedEvent);return new Pi(t,n)}static _mergeChangeEvents(e,t){const n=[].concat(e.changes).concat(t.changes),i=t.eol,r=t.versionId,s=e.isUndoing||t.isUndoing,o=e.isRedoing||t.isRedoing,a=e.isFlush||t.isFlush;return{changes:n,eol:i,isEolChange:e.isEolChange&&t.isEolChange,versionId:r,isUndoing:s,isRedoing:o,isFlush:a}}}const Bi=(0,K.u1)("undoRedoService");class Wi{static{this._ID=0}constructor(){this.id=Wi._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}static{this.None=new Wi}}class Vi{static{this._ID=0}constructor(){this.id=Vi._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}static{this.None=new Vi}}var Ui,$i=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},qi=function(e,t){return function(n,i){t(n,i,e)}};function ji(e,t){let n;return n="string"===typeof e?function(e){const t=new Gn;return t.acceptChunk(e),t.finish()}(e):fe.nk(e)?function(e){const t=new Gn;let n;for(;"string"===typeof(n=e.read());)t.acceptChunk(n);return t.finish()}(e):e,n.create(t)}let Ki=0;class Hi{constructor(e){this._source=e,this._eos=!1}read(){if(this._eos)return null;const e=[];let t=0,n=0;for(;;){const i=this._source.read();if(null===i)return this._eos=!0,0===t?null:e.join("");if(i.length>0&&(e[t++]=i,n+=i.length),n>=65536)return e.join("")}}}const Gi=()=>{throw new Error("Invalid change accessor")};let Qi=class extends r.jG{static{Ui=this}static{this._MODEL_SYNC_LIMIT=52428800}static{this.LARGE_FILE_SIZE_THRESHOLD=20971520}static{this.LARGE_FILE_LINE_COUNT_THRESHOLD=3e5}static{this.LARGE_FILE_HEAP_OPERATION_THRESHOLD=268435456}static{this.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:b.tabSize,indentSize:b.indentSize,insertSpaces:b.insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:b.trimAutoWhitespace,largeFileOptimizations:b.largeFileOptimizations,bracketPairColorizationOptions:b.bracketPairColorizationOptions}}static resolveOptions(e,t){if(t.detectIndentation){const n=Yt(e,t.tabSize,t.insertSpaces);return new fe.X2({tabSize:n.tabSize,indentSize:"tabSize",insertSpaces:n.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL,bracketPairColorizationOptions:t.bracketPairColorizationOptions})}return new fe.X2(t)}get onDidChangeLanguage(){return this._tokenizationTextModelPart.onDidChangeLanguage}get onDidChangeLanguageConfiguration(){return this._tokenizationTextModelPart.onDidChangeLanguageConfiguration}get onDidChangeTokens(){return this._tokenizationTextModelPart.onDidChangeTokens}onDidChangeContent(e){return this._eventEmitter.slowEvent((t=>e(t.contentChangedEvent)))}onDidChangeContentOrInjectedText(e){return(0,r.qE)(this._eventEmitter.fastEvent((t=>e(t))),this._onDidChangeInjectedText.event((t=>e(t))))}_isDisposing(){return this.__isDisposing}get tokenization(){return this._tokenizationTextModelPart}get bracketPairs(){return this._bracketPairs}get guides(){return this._guidesTextModelPart}constructor(e,t,n,s=null,o,a,l,d){super(),this._undoRedoService=o,this._languageService=a,this._languageConfigurationService=l,this.instantiationService=d,this._onWillDispose=this._register(new i.vl),this.onWillDispose=this._onWillDispose.event,this._onDidChangeDecorations=this._register(new lr((e=>this.handleBeforeFireDecorationsChangedEvent(e)))),this.onDidChangeDecorations=this._onDidChangeDecorations.event,this._onDidChangeOptions=this._register(new i.vl),this.onDidChangeOptions=this._onDidChangeOptions.event,this._onDidChangeAttached=this._register(new i.vl),this.onDidChangeAttached=this._onDidChangeAttached.event,this._onDidChangeInjectedText=this._register(new i.vl),this._eventEmitter=this._register(new cr),this._languageSelectionListener=this._register(new r.HE),this._deltaDecorationCallCnt=0,this._attachedViews=new pi,Ki++,this.id="$model"+Ki,this.isForSimpleWidget=n.isForSimpleWidget,this._associatedResource="undefined"===typeof s||null===s?h.r.parse("inmemory://model/"+Ki):s,this._attachedEditorCount=0;const{textBuffer:u,disposable:p}=ji(e,n.defaultEOL);this._buffer=u,this._bufferDisposable=p,this._options=Ui.resolveOptions(this._buffer,n);const m="string"===typeof t?t:t.languageId;"string"!==typeof t&&(this._languageSelectionListener.value=t.onDidChange((()=>this._setLanguage(t.languageId)))),this._bracketPairs=this._register(new kt(this,this._languageConfigurationService)),this._guidesTextModelPart=this._register(new Ht(this,this._languageConfigurationService)),this._decorationProvider=this._register(new Lt(this)),this._tokenizationTextModelPart=this.instantiationService.createInstance(Li,this,this._bracketPairs,m,this._attachedViews);const g=this._buffer.getLineCount(),b=this._buffer.getValueLengthInRange(new f.Q(1,1,g,this._buffer.getLineLength(g)+1),0);n.largeFileOptimizations?(this._isTooLargeForTokenization=b>Ui.LARGE_FILE_SIZE_THRESHOLD||g>Ui.LARGE_FILE_LINE_COUNT_THRESHOLD,this._isTooLargeForHeapOperation=b>Ui.LARGE_FILE_HEAP_OPERATION_THRESHOLD):(this._isTooLargeForTokenization=!1,this._isTooLargeForHeapOperation=!1),this._isTooLargeForSyncing=b>Ui._MODEL_SYNC_LIMIT,this._versionId=1,this._alternativeVersionId=1,this._initialUndoRedoSnapshot=null,this._isDisposed=!1,this.__isDisposing=!1,this._instanceId=c.tk(Ki),this._lastDecorationId=0,this._decorations=Object.create(null),this._decorationsTree=new Xi,this._commandManager=new Vt(this,this._undoRedoService),this._isUndoing=!1,this._isRedoing=!1,this._trimAutoWhitespaceLines=null,this._register(this._decorationProvider.onDidChange((()=>{this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._onDidChangeDecorations.endDeferredEmit()}))),this._languageService.requestRichLanguageFeatures(m),this._register(this._languageConfigurationService.onDidChange((e=>{this._bracketPairs.handleLanguageConfigurationServiceChange(e),this._tokenizationTextModelPart.handleLanguageConfigurationServiceChange(e)})))}dispose(){this.__isDisposing=!0,this._onWillDispose.fire(),this._tokenizationTextModelPart.dispose(),this._isDisposed=!0,super.dispose(),this._bufferDisposable.dispose(),this.__isDisposing=!1;const e=new Kn([],"","\n",!1,!1,!0,!0);e.dispose(),this._buffer=e,this._bufferDisposable=r.jG.None}_assertNotDisposed(){if(this._isDisposed)throw new l.D7("Model is disposed!")}_emitContentChangedEvent(e,t){this.__isDisposing||(this._tokenizationTextModelPart.handleDidChangeContent(t),this._bracketPairs.handleDidChangeContent(t),this._eventEmitter.fire(new Pi(e,t)))}setValue(e){if(this._assertNotDisposed(),null===e||void 0===e)throw(0,l.Qg)();const{textBuffer:t,disposable:n}=ji(e,this._options.defaultEOL);this._setValueFromTextBuffer(t,n)}_createContentChanged2(e,t,n,i,r,s,o,a){return{changes:[{range:e,rangeOffset:t,rangeLength:n,text:i}],eol:this._buffer.getEOL(),isEolChange:a,versionId:this.getVersionId(),isUndoing:r,isRedoing:s,isFlush:o}}_setValueFromTextBuffer(e,t){this._assertNotDisposed();const n=this.getFullModelRange(),i=this.getValueLengthInRange(n),r=this.getLineCount(),s=this.getLineMaxColumn(r);this._buffer=e,this._bufferDisposable.dispose(),this._bufferDisposable=t,this._increaseVersionId(),this._decorations=Object.create(null),this._decorationsTree=new Xi,this._commandManager.clear(),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new Oi([new Ti],this._versionId,!1,!1),this._createContentChanged2(new f.Q(1,1,r,s),0,i,this.getValue(),!1,!1,!0,!1))}setEOL(e){this._assertNotDisposed();const t=1===e?"\r\n":"\n";if(this._buffer.getEOL()===t)return;const n=this.getFullModelRange(),i=this.getValueLengthInRange(n),r=this.getLineCount(),s=this.getLineMaxColumn(r);this._onBeforeEOLChange(),this._buffer.setEOL(t),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new Oi([new Mi],this._versionId,!1,!1),this._createContentChanged2(new f.Q(1,1,r,s),0,i,this.getValue(),!1,!1,!1,!0))}_onBeforeEOLChange(){this._decorationsTree.ensureAllNodesHaveRanges(this)}_onAfterEOLChange(){const e=this.getVersionId(),t=this._decorationsTree.collectNodesPostOrder();for(let n=0,i=t.length;n<i;n++){const i=t[n],r=i.range,s=i.cachedAbsoluteStart-i.start,o=this._buffer.getOffsetAt(r.startLineNumber,r.startColumn),a=this._buffer.getOffsetAt(r.endLineNumber,r.endColumn);i.cachedAbsoluteStart=o,i.cachedAbsoluteEnd=a,i.cachedVersionId=e,i.start=o-s,i.end=a-s,wn(i)}}onBeforeAttached(){return this._attachedEditorCount++,1===this._attachedEditorCount&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0)),this._attachedViews.attachView()}onBeforeDetached(e){this._attachedEditorCount--,0===this._attachedEditorCount&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0)),this._attachedViews.detachView(e)}isAttachedToEditor(){return this._attachedEditorCount>0}getAttachedEditorCount(){return this._attachedEditorCount}isTooLargeForSyncing(){return this._isTooLargeForSyncing}isTooLargeForTokenization(){return this._isTooLargeForTokenization}isTooLargeForHeapOperation(){return this._isTooLargeForHeapOperation}isDisposed(){return this._isDisposed}isDominatedByLongLines(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;let e=0,t=0;const n=this._buffer.getLineCount();for(let i=1;i<=n;i++){const n=this._buffer.getLineLength(i);n>=1e4?t+=n:e+=n}return t>e}get uri(){return this._associatedResource}getOptions(){return this._assertNotDisposed(),this._options}getFormattingOptions(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}}updateOptions(e){this._assertNotDisposed();const t="undefined"!==typeof e.tabSize?e.tabSize:this._options.tabSize,n="undefined"!==typeof e.indentSize?e.indentSize:this._options.originalIndentSize,i="undefined"!==typeof e.insertSpaces?e.insertSpaces:this._options.insertSpaces,r="undefined"!==typeof e.trimAutoWhitespace?e.trimAutoWhitespace:this._options.trimAutoWhitespace,s="undefined"!==typeof e.bracketColorizationOptions?e.bracketColorizationOptions:this._options.bracketPairColorizationOptions,o=new fe.X2({tabSize:t,indentSize:n,insertSpaces:i,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:r,bracketPairColorizationOptions:s});if(this._options.equals(o))return;const a=this._options.createChangeEvent(o);this._options=o,this._bracketPairs.handleDidChangeOptions(a),this._decorationProvider.handleDidChangeOptions(a),this._onDidChangeOptions.fire(a)}detectIndentation(e,t){this._assertNotDisposed();const n=Yt(this._buffer,t,e);this.updateOptions({insertSpaces:n.insertSpaces,tabSize:n.tabSize,indentSize:n.tabSize})}normalizeIndentation(e){return this._assertNotDisposed(),p(e,this._options.indentSize,this._options.insertSpaces)}getVersionId(){return this._assertNotDisposed(),this._versionId}mightContainRTL(){return this._buffer.mightContainRTL()}mightContainUnusualLineTerminators(){return this._buffer.mightContainUnusualLineTerminators()}removeUnusualLineTerminators(e=null){const t=this.findMatches(c._J.source,!1,!0,!1,null,!1,1073741824);this._buffer.resetMightContainUnusualLineTerminators(),this.pushEditOperations(e,t.map((e=>({range:e.range,text:null}))),(()=>null))}mightContainNonBasicASCII(){return this._buffer.mightContainNonBasicASCII()}getAlternativeVersionId(){return this._assertNotDisposed(),this._alternativeVersionId}getInitialUndoRedoSnapshot(){return this._assertNotDisposed(),this._initialUndoRedoSnapshot}getOffsetAt(e){this._assertNotDisposed();const t=this._validatePosition(e.lineNumber,e.column,0);return this._buffer.getOffsetAt(t.lineNumber,t.column)}getPositionAt(e){this._assertNotDisposed();const t=Math.min(this._buffer.getLength(),Math.max(0,e));return this._buffer.getPositionAt(t)}_increaseVersionId(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId}_overwriteVersionId(e){this._versionId=e}_overwriteAlternativeVersionId(e){this._alternativeVersionId=e}_overwriteInitialUndoRedoSnapshot(e){this._initialUndoRedoSnapshot=e}getValue(e,t=!1){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new l.D7("Operation would exceed heap memory limits");const n=this.getFullModelRange(),i=this.getValueInRange(n,e);return t?this._buffer.getBOM()+i:i}createSnapshot(e=!1){return new Hi(this._buffer.createSnapshot(e))}getValueLength(e,t=!1){this._assertNotDisposed();const n=this.getFullModelRange(),i=this.getValueLengthInRange(n,e);return t?this._buffer.getBOM().length+i:i}getValueInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(e),t)}getValueLengthInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(e),t)}getCharacterCountInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(e),t)}getLineCount(){return this._assertNotDisposed(),this._buffer.getLineCount()}getLineContent(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineContent(e)}getLineLength(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineLength(e)}getLinesContent(){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new l.D7("Operation would exceed heap memory limits");return this._buffer.getLinesContent()}getEOL(){return this._assertNotDisposed(),this._buffer.getEOL()}getEndOfLineSequence(){return this._assertNotDisposed(),"\n"===this._buffer.getEOL()?0:1}getLineMinColumn(e){return this._assertNotDisposed(),1}getLineMaxColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineLength(e)+1}getLineFirstNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)}getLineLastNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)}_validateRangeRelaxedNoAllocations(e){const t=this._buffer.getLineCount(),n=e.startLineNumber,i=e.startColumn;let r=Math.floor("number"!==typeof n||isNaN(n)?1:n),s=Math.floor("number"!==typeof i||isNaN(i)?1:i);if(r<1)r=1,s=1;else if(r>t)r=t,s=this.getLineMaxColumn(r);else if(s<=1)s=1;else{const e=this.getLineMaxColumn(r);s>=e&&(s=e)}const o=e.endLineNumber,a=e.endColumn;let l=Math.floor("number"!==typeof o||isNaN(o)?1:o),c=Math.floor("number"!==typeof a||isNaN(a)?1:a);if(l<1)l=1,c=1;else if(l>t)l=t,c=this.getLineMaxColumn(l);else if(c<=1)c=1;else{const e=this.getLineMaxColumn(l);c>=e&&(c=e)}return n===r&&i===s&&o===l&&a===c&&e instanceof f.Q&&!(e instanceof g.L)?e:new f.Q(r,s,l,c)}_isValidPosition(e,t,n){if("number"!==typeof e||"number"!==typeof t)return!1;if(isNaN(e)||isNaN(t))return!1;if(e<1||t<1)return!1;if((0|e)!==e||(0|t)!==t)return!1;if(e>this._buffer.getLineCount())return!1;if(1===t)return!0;if(t>this.getLineMaxColumn(e))return!1;if(1===n){const n=this._buffer.getLineCharCode(e,t-2);if(c.pc(n))return!1}return!0}_validatePosition(e,t,n){const i=Math.floor("number"!==typeof e||isNaN(e)?1:e),r=Math.floor("number"!==typeof t||isNaN(t)?1:t),s=this._buffer.getLineCount();if(i<1)return new m.y(1,1);if(i>s)return new m.y(s,this.getLineMaxColumn(s));if(r<=1)return new m.y(i,1);const o=this.getLineMaxColumn(i);if(r>=o)return new m.y(i,o);if(1===n){const e=this._buffer.getLineCharCode(i,r-2);if(c.pc(e))return new m.y(i,r-1)}return new m.y(i,r)}validatePosition(e){return this._assertNotDisposed(),e instanceof m.y&&this._isValidPosition(e.lineNumber,e.column,1)?e:this._validatePosition(e.lineNumber,e.column,1)}_isValidRange(e,t){const n=e.startLineNumber,i=e.startColumn,r=e.endLineNumber,s=e.endColumn;if(!this._isValidPosition(n,i,0))return!1;if(!this._isValidPosition(r,s,0))return!1;if(1===t){const e=i>1?this._buffer.getLineCharCode(n,i-2):0,t=s>1&&s<=this._buffer.getLineLength(r)?this._buffer.getLineCharCode(r,s-2):0,o=c.pc(e),a=c.pc(t);return!o&&!a}return!0}validateRange(e){if(this._assertNotDisposed(),e instanceof f.Q&&!(e instanceof g.L)&&this._isValidRange(e,1))return e;const t=this._validatePosition(e.startLineNumber,e.startColumn,0),n=this._validatePosition(e.endLineNumber,e.endColumn,0),i=t.lineNumber,r=t.column,s=n.lineNumber,o=n.column;{const e=r>1?this._buffer.getLineCharCode(i,r-2):0,t=o>1&&o<=this._buffer.getLineLength(s)?this._buffer.getLineCharCode(s,o-2):0,n=c.pc(e),a=c.pc(t);return n||a?i===s&&r===o?new f.Q(i,r-1,s,o-1):n&&a?new f.Q(i,r-1,s,o+1):n?new f.Q(i,r-1,s,o):new f.Q(i,r,s,o+1):new f.Q(i,r,s,o)}}modifyPosition(e,t){this._assertNotDisposed();const n=this.getOffsetAt(e)+t;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,n)))}getFullModelRange(){this._assertNotDisposed();const e=this.getLineCount();return new f.Q(1,1,e,this.getLineMaxColumn(e))}findMatchesLineByLine(e,t,n,i){return this._buffer.findMatchesLineByLine(e,t,n,i)}findMatches(e,t,n,i,r,s,o=999){this._assertNotDisposed();let a=null;null!==t&&(Array.isArray(t)||(t=[t]),t.every((e=>f.Q.isIRange(e)))&&(a=t.map((e=>this.validateRange(e))))),null===a&&(a=[this.getFullModelRange()]),a=a.sort(((e,t)=>e.startLineNumber-t.startLineNumber||e.startColumn-t.startColumn));const l=[];let c;if(l.push(a.reduce(((e,t)=>f.Q.areIntersecting(e,t)?e.plusRange(t):(l.push(e),t)))),!n&&e.indexOf("\n")<0){const t=new On.lt(e,n,i,r).parseSearchRequest();if(!t)return[];c=e=>this.findMatchesLineByLine(e,t,s,o)}else c=t=>On.hB.findMatches(this,new On.lt(e,n,i,r),t,s,o);return l.map(c).reduce(((e,t)=>e.concat(t)),[])}findNextMatch(e,t,n,i,r,s){this._assertNotDisposed();const o=this.validatePosition(t);if(!n&&e.indexOf("\n")<0){const t=new On.lt(e,n,i,r).parseSearchRequest();if(!t)return null;const a=this.getLineCount();let l=new f.Q(o.lineNumber,o.column,a,this.getLineMaxColumn(a)),c=this.findMatchesLineByLine(l,t,s,1);return On.hB.findNextMatch(this,new On.lt(e,n,i,r),o,s),c.length>0?c[0]:(l=new f.Q(1,1,o.lineNumber,this.getLineMaxColumn(o.lineNumber)),c=this.findMatchesLineByLine(l,t,s,1),c.length>0?c[0]:null)}return On.hB.findNextMatch(this,new On.lt(e,n,i,r),o,s)}findPreviousMatch(e,t,n,i,r,s){this._assertNotDisposed();const o=this.validatePosition(t);return On.hB.findPreviousMatch(this,new On.lt(e,n,i,r),o,s)}pushStackElement(){this._commandManager.pushStackElement()}popStackElement(){this._commandManager.popStackElement()}pushEOL(e){if(("\n"===this.getEOL()?0:1)!==e)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEOL(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_validateEditOperation(e){return e instanceof fe.Wo?e:new fe.Wo(e.identifier||null,this.validateRange(e.range),e.text,e.forceMoveMarkers||!1,e.isAutoWhitespaceEdit||!1,e._isTracked||!1)}_validateEditOperations(e){const t=[];for(let n=0,i=e.length;n<i;n++)t[n]=this._validateEditOperation(e[n]);return t}pushEditOperations(e,t,n,i){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(e,this._validateEditOperations(t),n,i)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_pushEditOperations(e,t,n,i){if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){const n=t.map((e=>({range:this.validateRange(e.range),text:e.text})));let i=!0;if(e)for(let t=0,r=e.length;t<r;t++){const r=e[t];let s=!1;for(let e=0,t=n.length;e<t;e++){const t=n[e].range,i=t.startLineNumber>r.endLineNumber,o=r.startLineNumber>t.endLineNumber;if(!i&&!o){s=!0;break}}if(!s){i=!1;break}}if(i)for(let e=0,r=this._trimAutoWhitespaceLines.length;e<r;e++){const i=this._trimAutoWhitespaceLines[e],r=this.getLineMaxColumn(i);let s=!0;for(let e=0,t=n.length;e<t;e++){const t=n[e].range,o=n[e].text;if(!(i<t.startLineNumber||i>t.endLineNumber)&&(!(i===t.startLineNumber&&t.startColumn===r&&t.isEmpty()&&o&&o.length>0&&"\n"===o.charAt(0))&&!(i===t.startLineNumber&&1===t.startColumn&&t.isEmpty()&&o&&o.length>0&&"\n"===o.charAt(o.length-1)))){s=!1;break}}if(s){const e=new f.Q(i,1,i,r);t.push(new fe.Wo(null,e,null,!1,!1,!1))}}this._trimAutoWhitespaceLines=null}return null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEditOperation(e,t,n,i)}_applyUndo(e,t,n,i){const r=e.map((e=>{const t=this.getPositionAt(e.newPosition),n=this.getPositionAt(e.newEnd);return{range:new f.Q(t.lineNumber,t.column,n.lineNumber,n.column),text:e.oldText}}));this._applyUndoRedoEdits(r,t,!0,!1,n,i)}_applyRedo(e,t,n,i){const r=e.map((e=>{const t=this.getPositionAt(e.oldPosition),n=this.getPositionAt(e.oldEnd);return{range:new f.Q(t.lineNumber,t.column,n.lineNumber,n.column),text:e.newText}}));this._applyUndoRedoEdits(r,t,!1,!0,n,i)}_applyUndoRedoEdits(e,t,n,i,r,s){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._isUndoing=n,this._isRedoing=i,this.applyEdits(e,!1),this.setEOL(t),this._overwriteAlternativeVersionId(r)}finally{this._isUndoing=!1,this._isRedoing=!1,this._eventEmitter.endDeferredEmit(s),this._onDidChangeDecorations.endDeferredEmit()}}applyEdits(e,t=!1){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit();const n=this._validateEditOperations(e);return this._doApplyEdits(n,t)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_doApplyEdits(e,t){const n=this._buffer.getLineCount(),i=this._buffer.applyEdits(e,this._options.trimAutoWhitespace,t),r=this._buffer.getLineCount(),s=i.changes;if(this._trimAutoWhitespaceLines=i.trimAutoWhitespaceLineNumbers,0!==s.length){for(let n=0,i=s.length;n<i;n++){const e=s[n];this._decorationsTree.acceptReplace(e.rangeOffset,e.rangeLength,e.text.length,e.forceMoveMarkers)}const e=[];this._increaseVersionId();let t=n;for(let n=0,i=s.length;n<i;n++){const i=s[n],[a]=(0,d.W)(i.text);this._onDidChangeDecorations.fire();const l=i.range.startLineNumber,c=i.range.endLineNumber,h=c-l,u=a,p=Math.min(h,u),f=u-h,g=r-t-f+l,b=g,v=g+u,y=this._decorationsTree.getInjectedTextInInterval(this,this.getOffsetAt(new m.y(b,1)),this.getOffsetAt(new m.y(v,this.getLineMaxColumn(v))),0),w=Ni.fromDecorations(y),_=new o.j3(w);for(let t=p;t>=0;t--){const n=l+t,i=g+t;_.takeFromEndWhile((e=>e.lineNumber>i));const r=_.takeFromEndWhile((e=>e.lineNumber===i));e.push(new Ri(n,this.getLineContent(i),r))}if(p<h){const t=l+p;e.push(new Di(t+1,c))}if(p<u){const n=new o.j3(w),i=l+p,s=u-p,a=r-t-s+i+1,c=[],h=[];for(let e=0;e<s;e++){const t=a+e;h[e]=this.getLineContent(t),n.takeWhile((e=>e.lineNumber<t)),c[e]=n.takeWhile((e=>e.lineNumber===t))}e.push(new Ai(i+1,l+u,h,c))}t+=f}this._emitContentChangedEvent(new Oi(e,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:s,eol:this._buffer.getEOL(),isEolChange:!1,versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return null===i.reverseEdits?void 0:i.reverseEdits}undo(){return this._undoRedoService.undo(this.uri)}canUndo(){return this._undoRedoService.canUndo(this.uri)}redo(){return this._undoRedoService.redo(this.uri)}canRedo(){return this._undoRedoService.canRedo(this.uri)}handleBeforeFireDecorationsChangedEvent(e){if(null===e||0===e.size)return;const t=Array.from(e).map((e=>new Ri(e,this.getLineContent(e),this._getInjectedTextInLine(e))));this._onDidChangeInjectedText.fire(new zi(t))}changeDecorations(e,t=0){this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(t,e)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_changeDecorations(e,t){const n={addDecoration:(t,n)=>this._deltaDecorationsImpl(e,[],[{range:t,options:n}])[0],changeDecoration:(e,t)=>{this._changeDecorationImpl(e,t)},changeDecorationOptions:(e,t)=>{this._changeDecorationOptionsImpl(e,ar(t))},removeDecoration:t=>{this._deltaDecorationsImpl(e,[t],[])},deltaDecorations:(t,n)=>0===t.length&&0===n.length?[]:this._deltaDecorationsImpl(e,t,n)};let i=null;try{i=t(n)}catch(r){(0,l.dz)(r)}return n.addDecoration=Gi,n.changeDecoration=Gi,n.changeDecorationOptions=Gi,n.removeDecoration=Gi,n.deltaDecorations=Gi,i}deltaDecorations(e,t,n=0){if(this._assertNotDisposed(),e||(e=[]),0===e.length&&0===t.length)return[];try{return this._deltaDecorationCallCnt++,this._deltaDecorationCallCnt>1&&(console.warn("Invoking deltaDecorations recursively could lead to leaking decorations."),(0,l.dz)(new Error("Invoking deltaDecorations recursively could lead to leaking decorations."))),this._onDidChangeDecorations.beginDeferredEmit(),this._deltaDecorationsImpl(n,e,t)}finally{this._onDidChangeDecorations.endDeferredEmit(),this._deltaDecorationCallCnt--}}_getTrackedRange(e){return this.getDecorationRange(e)}_setTrackedRange(e,t,n){const i=e?this._decorations[e]:null;if(!i)return t?this._deltaDecorationsImpl(0,[],[{range:t,options:or[n]}],!0)[0]:null;if(!t)return this._decorationsTree.delete(i),delete this._decorations[i.id],null;const r=this._validateRangeRelaxedNoAllocations(t),s=this._buffer.getOffsetAt(r.startLineNumber,r.startColumn),o=this._buffer.getOffsetAt(r.endLineNumber,r.endColumn);return this._decorationsTree.delete(i),i.reset(this.getVersionId(),s,o,r),i.setOptions(or[n]),this._decorationsTree.insert(i),i.id}removeAllDecorationsWithOwnerId(e){if(this._isDisposed)return;const t=this._decorationsTree.collectNodesFromOwner(e);for(let n=0,i=t.length;n<i;n++){const e=t[n];this._decorationsTree.delete(e),delete this._decorations[e.id]}}getDecorationOptions(e){const t=this._decorations[e];return t?t.options:null}getDecorationRange(e){const t=this._decorations[e];return t?this._decorationsTree.getNodeRange(this,t):null}getLineDecorations(e,t=0,n=!1){return e<1||e>this.getLineCount()?[]:this.getLinesDecorations(e,e,t,n)}getLinesDecorations(e,t,n=0,i=!1,r=!1){const s=this.getLineCount(),a=Math.min(s,Math.max(1,e)),l=Math.min(s,Math.max(1,t)),c=this.getLineMaxColumn(l),h=new f.Q(a,1,l,c),d=this._getDecorationsInRange(h,n,i,r);return(0,o.E4)(d,this._decorationProvider.getDecorationsInRange(h,n,i)),d}getDecorationsInRange(e,t=0,n=!1,i=!1,r=!1){const s=this.validateRange(e),a=this._getDecorationsInRange(s,t,n,r);return(0,o.E4)(a,this._decorationProvider.getDecorationsInRange(s,t,n,i)),a}getOverviewRulerDecorations(e=0,t=!1){return this._decorationsTree.getAll(this,e,t,!0,!1)}getInjectedTextDecorations(e=0){return this._decorationsTree.getAllInjectedText(this,e)}_getInjectedTextInLine(e){const t=this._buffer.getOffsetAt(e,1),n=t+this._buffer.getLineLength(e),i=this._decorationsTree.getInjectedTextInInterval(this,t,n,0);return Ni.fromDecorations(i).filter((t=>t.lineNumber===e))}getAllDecorations(e=0,t=!1){let n=this._decorationsTree.getAll(this,e,t,!1,!1);return n=n.concat(this._decorationProvider.getAllDecorations(e,t)),n}getAllMarginDecorations(e=0){return this._decorationsTree.getAll(this,e,!1,!1,!0)}_getDecorationsInRange(e,t,n,i){const r=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),s=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn);return this._decorationsTree.getAllInInterval(this,r,s,t,n,i)}getRangeAt(e,t){return this._buffer.getRangeAt(e,t-e)}_changeDecorationImpl(e,t){const n=this._decorations[e];if(!n)return;if(n.options.after){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.endLineNumber)}if(n.options.before){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.startLineNumber)}const i=this._validateRangeRelaxedNoAllocations(t),r=this._buffer.getOffsetAt(i.startLineNumber,i.startColumn),s=this._buffer.getOffsetAt(i.endLineNumber,i.endColumn);this._decorationsTree.delete(n),n.reset(this.getVersionId(),r,s,i),this._decorationsTree.insert(n),this._onDidChangeDecorations.checkAffectedAndFire(n.options),n.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(i.endLineNumber),n.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(i.startLineNumber)}_changeDecorationOptionsImpl(e,t){const n=this._decorations[e];if(!n)return;const i=!(!n.options.overviewRuler||!n.options.overviewRuler.color),r=!(!t.overviewRuler||!t.overviewRuler.color);if(this._onDidChangeDecorations.checkAffectedAndFire(n.options),this._onDidChangeDecorations.checkAffectedAndFire(t),n.options.after||t.after){const e=this._decorationsTree.getNodeRange(this,n);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(n.options.before||t.before){const e=this._decorationsTree.getNodeRange(this,n);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}const s=i!==r,o=function(e){return!!e.after||!!e.before}(t)!==Yi(n);s||o?(this._decorationsTree.delete(n),n.setOptions(t),this._decorationsTree.insert(n)):n.setOptions(t)}_deltaDecorationsImpl(e,t,n,i=!1){const r=this.getVersionId(),s=t.length;let o=0;const a=n.length;let l=0;this._onDidChangeDecorations.beginDeferredEmit();try{const c=new Array(a);for(;o<s||l<a;){let h=null;if(o<s){do{h=this._decorations[t[o++]]}while(!h&&o<s);if(h){if(h.options.after){const e=this._decorationsTree.getNodeRange(this,h);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(h.options.before){const e=this._decorationsTree.getNodeRange(this,h);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}this._decorationsTree.delete(h),i||this._onDidChangeDecorations.checkAffectedAndFire(h.options)}}if(l<a){if(!h){const e=++this._lastDecorationId,t=`${this._instanceId};${e}`;h=new cn(t,0,0),this._decorations[t]=h}const t=n[l],s=this._validateRangeRelaxedNoAllocations(t.range),o=ar(t.options),a=this._buffer.getOffsetAt(s.startLineNumber,s.startColumn),d=this._buffer.getOffsetAt(s.endLineNumber,s.endColumn);h.ownerId=e,h.reset(r,a,d,s),h.setOptions(o),h.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(s.endLineNumber),h.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(s.startLineNumber),i||this._onDidChangeDecorations.checkAffectedAndFire(o),this._decorationsTree.insert(h),c[l]=h.id,l++}else h&&delete this._decorations[h.id]}return c}finally{this._onDidChangeDecorations.endDeferredEmit()}}getLanguageId(){return this.tokenization.getLanguageId()}setLanguage(e,t){"string"===typeof e?(this._languageSelectionListener.clear(),this._setLanguage(e,t)):(this._languageSelectionListener.value=e.onDidChange((()=>this._setLanguage(e.languageId,t))),this._setLanguage(e.languageId,t))}_setLanguage(e,t){this.tokenization.setLanguageId(e,t),this._languageService.requestRichLanguageFeatures(e)}getLanguageIdAtPosition(e,t){return this.tokenization.getLanguageIdAtPosition(e,t)}getWordAtPosition(e){return this._tokenizationTextModelPart.getWordAtPosition(e)}getWordUntilPosition(e){return this._tokenizationTextModelPart.getWordUntilPosition(e)}normalizePosition(e,t){return e}getLineIndentColumn(e){return function(e){let t=0;for(const n of e){if(" "!==n&&"\t"!==n)break;t++}return t}(this.getLineContent(e))+1}};function Ji(e){return!(!e.options.overviewRuler||!e.options.overviewRuler.color)}function Yi(e){return!!e.options.after||!!e.options.before}Qi=Ui=$i([qi(4,Bi),qi(5,y.L),qi(6,se),qi(7,K._Y)],Qi);class Xi{constructor(){this._decorationsTree0=new dn,this._decorationsTree1=new dn,this._injectedTextDecorationsTree=new dn}ensureAllNodesHaveRanges(e){this.getAll(e,0,!1,!1,!1)}_ensureNodesHaveRanges(e,t){for(const n of t)null===n.range&&(n.range=e.getRangeAt(n.cachedAbsoluteStart,n.cachedAbsoluteEnd));return t}getAllInInterval(e,t,n,i,r,s){const o=e.getVersionId(),a=this._intervalSearch(t,n,i,r,o,s);return this._ensureNodesHaveRanges(e,a)}_intervalSearch(e,t,n,i,r,s){const o=this._decorationsTree0.intervalSearch(e,t,n,i,r,s),a=this._decorationsTree1.intervalSearch(e,t,n,i,r,s),l=this._injectedTextDecorationsTree.intervalSearch(e,t,n,i,r,s);return o.concat(a).concat(l)}getInjectedTextInInterval(e,t,n,i){const r=e.getVersionId(),s=this._injectedTextDecorationsTree.intervalSearch(t,n,i,!1,r,!1);return this._ensureNodesHaveRanges(e,s).filter((e=>e.options.showIfCollapsed||!e.range.isEmpty()))}getAllInjectedText(e,t){const n=e.getVersionId(),i=this._injectedTextDecorationsTree.search(t,!1,n,!1);return this._ensureNodesHaveRanges(e,i).filter((e=>e.options.showIfCollapsed||!e.range.isEmpty()))}getAll(e,t,n,i,r){const s=e.getVersionId(),o=this._search(t,n,i,s,r);return this._ensureNodesHaveRanges(e,o)}_search(e,t,n,i,r){if(n)return this._decorationsTree1.search(e,t,i,r);{const n=this._decorationsTree0.search(e,t,i,r),s=this._decorationsTree1.search(e,t,i,r),o=this._injectedTextDecorationsTree.search(e,t,i,r);return n.concat(s).concat(o)}}collectNodesFromOwner(e){const t=this._decorationsTree0.collectNodesFromOwner(e),n=this._decorationsTree1.collectNodesFromOwner(e),i=this._injectedTextDecorationsTree.collectNodesFromOwner(e);return t.concat(n).concat(i)}collectNodesPostOrder(){const e=this._decorationsTree0.collectNodesPostOrder(),t=this._decorationsTree1.collectNodesPostOrder(),n=this._injectedTextDecorationsTree.collectNodesPostOrder();return e.concat(t).concat(n)}insert(e){Yi(e)?this._injectedTextDecorationsTree.insert(e):Ji(e)?this._decorationsTree1.insert(e):this._decorationsTree0.insert(e)}delete(e){Yi(e)?this._injectedTextDecorationsTree.delete(e):Ji(e)?this._decorationsTree1.delete(e):this._decorationsTree0.delete(e)}getNodeRange(e,t){const n=e.getVersionId();return t.cachedVersionId!==n&&this._resolveNode(t,n),null===t.range&&(t.range=e.getRangeAt(t.cachedAbsoluteStart,t.cachedAbsoluteEnd)),t.range}_resolveNode(e,t){Yi(e)?this._injectedTextDecorationsTree.resolveNode(e,t):Ji(e)?this._decorationsTree1.resolveNode(e,t):this._decorationsTree0.resolveNode(e,t)}acceptReplace(e,t,n,i){this._decorationsTree0.acceptReplace(e,t,n,i),this._decorationsTree1.acceptReplace(e,t,n,i),this._injectedTextDecorationsTree.acceptReplace(e,t,n,i)}}function Zi(e){return e.replace(/[^a-z0-9\-_]/gi," ")}class er{constructor(e){this.color=e.color||"",this.darkColor=e.darkColor||""}}class tr extends er{constructor(e){super(e),this._resolvedColor=null,this.position="number"===typeof e.position?e.position:fe.A5.Center}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=null}_resolveColor(e,t){if("string"===typeof e)return e;const n=e?t.getColor(e.id):null;return n?n.toString():""}}class nr{constructor(e){this.position=e?.position??fe.ZS.Center,this.persistLane=e?.persistLane}}class ir extends er{constructor(e){super(e),this.position=e.position,this.sectionHeaderStyle=e.sectionHeaderStyle??null,this.sectionHeaderText=e.sectionHeaderText??null}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=void 0}_resolveColor(e,t){return"string"===typeof e?a.Q1.fromHex(e):t.getColor(e.id)}}class rr{static from(e){return e instanceof rr?e:new rr(e)}constructor(e){this.content=e.content||"",this.inlineClassName=e.inlineClassName||null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.attachedData=e.attachedData||null,this.cursorStops=e.cursorStops||null}}class sr{static register(e){return new sr(e)}static createDynamic(e){return new sr(e)}constructor(e){this.description=e.description,this.blockClassName=e.blockClassName?Zi(e.blockClassName):null,this.blockDoesNotCollapse=e.blockDoesNotCollapse??null,this.blockIsAfterEnd=e.blockIsAfterEnd??null,this.blockPadding=e.blockPadding??null,this.stickiness=e.stickiness||0,this.zIndex=e.zIndex||0,this.className=e.className?Zi(e.className):null,this.shouldFillLineOnLineBreak=e.shouldFillLineOnLineBreak??null,this.hoverMessage=e.hoverMessage||null,this.glyphMarginHoverMessage=e.glyphMarginHoverMessage||null,this.lineNumberHoverMessage=e.lineNumberHoverMessage||null,this.isWholeLine=e.isWholeLine||!1,this.showIfCollapsed=e.showIfCollapsed||!1,this.collapseOnReplaceEdit=e.collapseOnReplaceEdit||!1,this.overviewRuler=e.overviewRuler?new tr(e.overviewRuler):null,this.minimap=e.minimap?new ir(e.minimap):null,this.glyphMargin=e.glyphMarginClassName?new nr(e.glyphMargin):null,this.glyphMarginClassName=e.glyphMarginClassName?Zi(e.glyphMarginClassName):null,this.linesDecorationsClassName=e.linesDecorationsClassName?Zi(e.linesDecorationsClassName):null,this.lineNumberClassName=e.lineNumberClassName?Zi(e.lineNumberClassName):null,this.linesDecorationsTooltip=e.linesDecorationsTooltip?c.jy(e.linesDecorationsTooltip):null,this.firstLineDecorationClassName=e.firstLineDecorationClassName?Zi(e.firstLineDecorationClassName):null,this.marginClassName=e.marginClassName?Zi(e.marginClassName):null,this.inlineClassName=e.inlineClassName?Zi(e.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=e.beforeContentClassName?Zi(e.beforeContentClassName):null,this.afterContentClassName=e.afterContentClassName?Zi(e.afterContentClassName):null,this.after=e.after?rr.from(e.after):null,this.before=e.before?rr.from(e.before):null,this.hideInCommentTokens=e.hideInCommentTokens??!1,this.hideInStringTokens=e.hideInStringTokens??!1}}sr.EMPTY=sr.register({description:"empty"});const or=[sr.register({description:"tracked-range-always-grows-when-typing-at-edges",stickiness:0}),sr.register({description:"tracked-range-never-grows-when-typing-at-edges",stickiness:1}),sr.register({description:"tracked-range-grows-only-when-typing-before",stickiness:2}),sr.register({description:"tracked-range-grows-only-when-typing-after",stickiness:3})];function ar(e){return e instanceof sr?e:sr.createDynamic(e)}class lr extends r.jG{constructor(e){super(),this.handleBeforeFire=e,this._actual=this._register(new i.vl),this.event=this._actual.event,this._affectedInjectedTextLines=null,this._deferredCnt=0,this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._affectsLineNumber=!1}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(){this._deferredCnt--,0===this._deferredCnt&&(this._shouldFireDeferred&&this.doFire(),this._affectedInjectedTextLines?.clear(),this._affectedInjectedTextLines=null)}recordLineAffectedByInjectedText(e){this._affectedInjectedTextLines||(this._affectedInjectedTextLines=new Set),this._affectedInjectedTextLines.add(e)}checkAffectedAndFire(e){this._affectsMinimap||=!!e.minimap?.position,this._affectsOverviewRuler||=!!e.overviewRuler?.color,this._affectsGlyphMargin||=!!e.glyphMarginClassName,this._affectsLineNumber||=!!e.lineNumberClassName,this.tryFire()}fire(){this._affectsMinimap=!0,this._affectsOverviewRuler=!0,this._affectsGlyphMargin=!0,this.tryFire()}tryFire(){0===this._deferredCnt?this.doFire():this._shouldFireDeferred=!0}doFire(){this.handleBeforeFire(this._affectedInjectedTextLines);const e={affectsMinimap:this._affectsMinimap,affectsOverviewRuler:this._affectsOverviewRuler,affectsGlyphMargin:this._affectsGlyphMargin,affectsLineNumber:this._affectsLineNumber};this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._actual.fire(e)}}class cr extends r.jG{constructor(){super(),this._fastEmitter=this._register(new i.vl),this.fastEvent=this._fastEmitter.event,this._slowEmitter=this._register(new i.vl),this.slowEvent=this._slowEmitter.event,this._deferredCnt=0,this._deferredEvent=null}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(e=null){if(this._deferredCnt--,0===this._deferredCnt&&null!==this._deferredEvent){this._deferredEvent.rawContentChangedEvent.resultingSelection=e;const t=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(t),this._slowEmitter.fire(t)}}fire(e){this._deferredCnt>0?this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e:(this._fastEmitter.fire(e),this._slowEmitter.fire(e))}}var hr,dr=n(360),ur=n(5600),pr=n(6456),mr=n(146),fr=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},gr=function(e,t){return function(n,i){t(n,i,e)}};function br(e){return e.toString()}class vr{constructor(e,t,n){this.model=e,this._modelEventListeners=new r.Cm,this.model=e,this._modelEventListeners.add(e.onWillDispose((()=>t(e)))),this._modelEventListeners.add(e.onDidChangeLanguage((t=>n(e,t))))}dispose(){this._modelEventListeners.dispose()}}const yr=s.j9||s.zx?1:2;class wr{constructor(e,t,n,i,r,s,o,a){this.uri=e,this.initialUndoRedoSnapshot=t,this.time=n,this.sharesUndoRedoStack=i,this.heapSize=r,this.sha1=s,this.versionId=o,this.alternativeVersionId=a}}let _r=class extends r.jG{static{hr=this}static{this.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK=20971520}constructor(e,t,n,r){super(),this._configurationService=e,this._resourcePropertiesService=t,this._undoRedoService=n,this._instantiationService=r,this._onModelAdded=this._register(new i.vl),this.onModelAdded=this._onModelAdded.event,this._onModelRemoved=this._register(new i.vl),this.onModelRemoved=this._onModelRemoved.event,this._onModelModeChanged=this._register(new i.vl),this.onModelLanguageChanged=this._onModelModeChanged.event,this._modelCreationOptionsByLanguageAndResource=Object.create(null),this._models={},this._disposedModels=new Map,this._disposedModelsHeapSize=0,this._register(this._configurationService.onDidChangeConfiguration((e=>this._updateModelOptions(e)))),this._updateModelOptions(void 0)}static _readModelOptions(e,t){let n=b.tabSize;if(e.editor&&"undefined"!==typeof e.editor.tabSize){const t=parseInt(e.editor.tabSize,10);isNaN(t)||(n=t),n<1&&(n=1)}let i="tabSize";if(e.editor&&"undefined"!==typeof e.editor.indentSize&&"tabSize"!==e.editor.indentSize){const t=parseInt(e.editor.indentSize,10);isNaN(t)||(i=Math.max(t,1))}let r=b.insertSpaces;e.editor&&"undefined"!==typeof e.editor.insertSpaces&&(r="false"!==e.editor.insertSpaces&&Boolean(e.editor.insertSpaces));let s=yr;const o=e.eol;"\r\n"===o?s=2:"\n"===o&&(s=1);let a=b.trimAutoWhitespace;e.editor&&"undefined"!==typeof e.editor.trimAutoWhitespace&&(a="false"!==e.editor.trimAutoWhitespace&&Boolean(e.editor.trimAutoWhitespace));let l=b.detectIndentation;e.editor&&"undefined"!==typeof e.editor.detectIndentation&&(l="false"!==e.editor.detectIndentation&&Boolean(e.editor.detectIndentation));let c=b.largeFileOptimizations;e.editor&&"undefined"!==typeof e.editor.largeFileOptimizations&&(c="false"!==e.editor.largeFileOptimizations&&Boolean(e.editor.largeFileOptimizations));let h=b.bracketPairColorizationOptions;return e.editor?.bracketPairColorization&&"object"===typeof e.editor.bracketPairColorization&&(h={enabled:!!e.editor.bracketPairColorization.enabled,independentColorPoolPerBracketType:!!e.editor.bracketPairColorization.independentColorPoolPerBracketType}),{isForSimpleWidget:t,tabSize:n,indentSize:i,insertSpaces:r,detectIndentation:l,defaultEOL:s,trimAutoWhitespace:a,largeFileOptimizations:c,bracketPairColorizationOptions:h}}_getEOL(e,t){if(e)return this._resourcePropertiesService.getEOL(e,t);const n=this._configurationService.getValue("files.eol",{overrideIdentifier:t});return n&&"string"===typeof n&&"auto"!==n?n:3===s.OS||2===s.OS?"\n":"\r\n"}_shouldRestoreUndoStack(){const e=this._configurationService.getValue("files.restoreUndoStack");return"boolean"!==typeof e||e}getCreationOptions(e,t,n){const i="string"===typeof e?e:e.languageId;let r=this._modelCreationOptionsByLanguageAndResource[i+t];if(!r){const e=this._configurationService.getValue("editor",{overrideIdentifier:i,resource:t}),s=this._getEOL(t,i);r=hr._readModelOptions({editor:e,eol:s},n),this._modelCreationOptionsByLanguageAndResource[i+t]=r}return r}_updateModelOptions(e){const t=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);const n=Object.keys(this._models);for(let i=0,r=n.length;i<r;i++){const r=n[i],s=this._models[r],o=s.model.getLanguageId(),a=s.model.uri;if(e&&!e.affectsConfiguration("editor",{overrideIdentifier:o,resource:a})&&!e.affectsConfiguration("files.eol",{overrideIdentifier:o,resource:a}))continue;const l=t[o+a],c=this.getCreationOptions(o,a,s.model.isForSimpleWidget);hr._setModelOptionsForModel(s.model,c,l)}}static _setModelOptionsForModel(e,t,n){n&&n.defaultEOL!==t.defaultEOL&&1===e.getLineCount()&&e.setEOL(1===t.defaultEOL?0:1),n&&n.detectIndentation===t.detectIndentation&&n.insertSpaces===t.insertSpaces&&n.tabSize===t.tabSize&&n.indentSize===t.indentSize&&n.trimAutoWhitespace===t.trimAutoWhitespace&&(0,mr.aI)(n.bracketPairColorizationOptions,t.bracketPairColorizationOptions)||(t.detectIndentation?(e.detectIndentation(t.insertSpaces,t.tabSize),e.updateOptions({trimAutoWhitespace:t.trimAutoWhitespace,bracketColorizationOptions:t.bracketPairColorizationOptions})):e.updateOptions({insertSpaces:t.insertSpaces,tabSize:t.tabSize,indentSize:t.indentSize,trimAutoWhitespace:t.trimAutoWhitespace,bracketColorizationOptions:t.bracketPairColorizationOptions}))}_insertDisposedModel(e){this._disposedModels.set(br(e.uri),e),this._disposedModelsHeapSize+=e.heapSize}_removeDisposedModel(e){const t=this._disposedModels.get(br(e));return t&&(this._disposedModelsHeapSize-=t.heapSize),this._disposedModels.delete(br(e)),t}_ensureDisposedModelsHeapSize(e){if(this._disposedModelsHeapSize>e){const t=[];for(this._disposedModels.forEach((e=>{e.sharesUndoRedoStack||t.push(e)})),t.sort(((e,t)=>e.time-t.time));t.length>0&&this._disposedModelsHeapSize>e;){const e=t.shift();this._removeDisposedModel(e.uri),null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}}}_createModelData(e,t,n,i){const r=this.getCreationOptions(t,n,i),s=this._instantiationService.createInstance(Qi,e,t,r,n);if(n&&this._disposedModels.has(br(n))){const e=this._removeDisposedModel(n),t=this._undoRedoService.getElements(n),i=this._getSHA1Computer(),r=!!i.canComputeSHA1(s)&&i.computeSHA1(s)===e.sha1;if(r||e.sharesUndoRedoStack){for(const e of t.past)Wt(e)&&e.matchesResource(n)&&e.setModel(s);for(const e of t.future)Wt(e)&&e.matchesResource(n)&&e.setModel(s);this._undoRedoService.setElementsValidFlag(n,!0,(e=>Wt(e)&&e.matchesResource(n))),r&&(s._overwriteVersionId(e.versionId),s._overwriteAlternativeVersionId(e.alternativeVersionId),s._overwriteInitialUndoRedoSnapshot(e.initialUndoRedoSnapshot))}else null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}const o=br(s.uri);if(this._models[o])throw new Error("ModelService: Cannot add model because it already exists!");const a=new vr(s,(e=>this._onWillDispose(e)),((e,t)=>this._onDidChangeLanguage(e,t)));return this._models[o]=a,a}createModel(e,t,n,i=!1){let r;return r=t?this._createModelData(e,t,n,i):this._createModelData(e,Q.vH,n,i),this._onModelAdded.fire(r.model),r.model}getModels(){const e=[],t=Object.keys(this._models);for(let n=0,i=t.length;n<i;n++){const i=t[n];e.push(this._models[i].model)}return e}getModel(e){const t=br(e),n=this._models[t];return n?n.model:null}_schemaShouldMaintainUndoRedoElements(e){return e.scheme===pr.ny.file||e.scheme===pr.ny.vscodeRemote||e.scheme===pr.ny.vscodeUserData||e.scheme===pr.ny.vscodeNotebookCell||"fake-fs"===e.scheme}_onWillDispose(e){const t=br(e.uri),n=this._models[t],i=this._undoRedoService.getUriComparisonKey(e.uri)!==e.uri.toString();let r=!1,s=0;if(i||this._shouldRestoreUndoStack()&&this._schemaShouldMaintainUndoRedoElements(e.uri)){const t=this._undoRedoService.getElements(e.uri);if(t.past.length>0||t.future.length>0){for(const n of t.past)Wt(n)&&n.matchesResource(e.uri)&&(r=!0,s+=n.heapSize(e.uri),n.setModel(e.uri));for(const n of t.future)Wt(n)&&n.matchesResource(e.uri)&&(r=!0,s+=n.heapSize(e.uri),n.setModel(e.uri))}}const o=hr.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK,a=this._getSHA1Computer();if(r)if(i||!(s>o)&&a.canComputeSHA1(e))this._ensureDisposedModelsHeapSize(o-s),this._undoRedoService.setElementsValidFlag(e.uri,!1,(t=>Wt(t)&&t.matchesResource(e.uri))),this._insertDisposedModel(new wr(e.uri,n.model.getInitialUndoRedoSnapshot(),Date.now(),i,s,a.computeSHA1(e),e.getVersionId(),e.getAlternativeVersionId()));else{const e=n.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}else if(!i){const e=n.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}delete this._models[t],n.dispose(),delete this._modelCreationOptionsByLanguageAndResource[e.getLanguageId()+e.uri],this._onModelRemoved.fire(e)}_onDidChangeLanguage(e,t){const n=t.oldLanguage,i=e.getLanguageId(),r=this.getCreationOptions(n,e.uri,e.isForSimpleWidget),s=this.getCreationOptions(i,e.uri,e.isForSimpleWidget);hr._setModelOptionsForModel(e,s,r),this._onModelModeChanged.fire({model:e,oldLanguageId:n})}_getSHA1Computer(){return new kr}};_r=hr=fr([gr(0,H.pG),gr(1,dr.ITextResourcePropertiesService),gr(2,Bi),gr(3,K._Y)],_r);class kr{static{this.MAX_MODEL_SIZE=10485760}canComputeSHA1(e){return e.getValueLength()<=kr.MAX_MODEL_SIZE}computeSHA1(e){const t=new ur.v7,n=e.createSnapshot();let i;for(;i=n.read();)t.update(i);return t.digest()}}},1788:(e,t,n)=>{"use strict";function i(e){return e}n.d(t,{VV:()=>s,o5:()=>r});class r{constructor(e,t){this.lastCache=void 0,this.lastArgKey=void 0,"function"===typeof e?(this._fn=e,this._computeKey=i):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this._fn(e)),this.lastCache}}class s{get cachedValues(){return this._map}constructor(e,t){this._map=new Map,this._map2=new Map,"function"===typeof e?(this._fn=e,this._computeKey=i):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);if(this._map2.has(t))return this._map2.get(t);const n=this._fn(e);return this._map.set(e,n),this._map2.set(t,n),n}}},1929:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SimpleWorkerClient:()=>y,SimpleWorkerServer:()=>k,create:()=>C,logOnceWebWorkerWarning:()=>u});var i=n(4383),r=n(1234),s=n(1484),o=n(6456),a=n(8067),l=n(1508);const c="default",h="$initialize";let d=!1;function u(e){a.HZ&&(d||(d=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(e.message))}class p{constructor(e,t,n,i,r){this.vsWorker=e,this.req=t,this.channel=n,this.method=i,this.args=r,this.type=0}}class m{constructor(e,t,n,i){this.vsWorker=e,this.seq=t,this.res=n,this.err=i,this.type=1}}class f{constructor(e,t,n,i,r){this.vsWorker=e,this.req=t,this.channel=n,this.eventName=i,this.arg=r,this.type=2}}class g{constructor(e,t,n){this.vsWorker=e,this.req=t,this.event=n,this.type=3}}class b{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class v{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,t,n){const i=String(++this._lastSentReq);return new Promise(((r,s)=>{this._pendingReplies[i]={resolve:r,reject:s},this._send(new p(this._workerId,i,e,t,n))}))}listen(e,t,n){let i=null;const s=new r.vl({onWillAddFirstListener:()=>{i=String(++this._lastSentReq),this._pendingEmitters.set(i,s),this._send(new f(this._workerId,i,e,t,n))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(i),this._send(new b(this._workerId,i)),i=null}});return s.event}handleMessage(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))}createProxyToRemoteChannel(e,t){const n={get:(n,i)=>("string"!==typeof i||n[i]||(_(i)?n[i]=t=>this.listen(e,i,t):w(i)?n[i]=this.listen(e,i,void 0):36===i.charCodeAt(0)&&(n[i]=async(...n)=>(await(t?.()),this.sendMessage(e,i,n)))),n[i])};return new Proxy(Object.create(null),n)}_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])return void console.warn("Got reply to unknown seq");const t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let n=e.err;return e.err.$isError&&(n=new Error,n.name=e.err.name,n.message=e.err.message,n.stack=e.err.stack),void t.reject(n)}t.resolve(e.res)}_handleRequestMessage(e){const t=e.req;this._handler.handleMessage(e.channel,e.method,e.args).then((e=>{this._send(new m(this._workerId,t,e,void 0))}),(e=>{e.detail instanceof Error&&(e.detail=(0,i.cU)(e.detail)),this._send(new m(this._workerId,t,void 0,(0,i.cU)(e)))}))}_handleSubscribeEventMessage(e){const t=e.req,n=this._handler.handleEvent(e.channel,e.eventName,e.arg)((e=>{this._send(new g(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){const t=[];if(0===e.type)for(let n=0;n<e.args.length;n++)e.args[n]instanceof ArrayBuffer&&t.push(e.args[n]);else 1===e.type&&e.res instanceof ArrayBuffer&&t.push(e.res);this._handler.sendMessage(e,t)}}class y extends s.jG{constructor(e,t){super(),this._localChannels=new Map,this._worker=this._register(e.create({amdModuleId:"vs/base/common/worker/simpleWorker",esmModuleLocation:t.esmModuleLocation,label:t.label},(e=>{this._protocol.handleMessage(e)}),(e=>{(0,i.dz)(e)}))),this._protocol=new v({sendMessage:(e,t)=>{this._worker.postMessage(e,t)},handleMessage:(e,t,n)=>this._handleMessage(e,t,n),handleEvent:(e,t,n)=>this._handleEvent(e,t,n)}),this._protocol.setWorkerId(this._worker.getId());let n=null;const r=globalThis.require;"undefined"!==typeof r&&"function"===typeof r.getConfig?n=r.getConfig():"undefined"!==typeof globalThis.requirejs&&(n=globalThis.requirejs.s.contexts._.config),this._onModuleLoaded=this._protocol.sendMessage(c,h,[this._worker.getId(),JSON.parse(JSON.stringify(n)),t.amdModuleId]),this.proxy=this._protocol.createProxyToRemoteChannel(c,(async()=>{await this._onModuleLoaded})),this._onModuleLoaded.catch((e=>{this._onError("Worker failed to load "+t.amdModuleId,e)}))}_handleMessage(e,t,n){const i=this._localChannels.get(e);if(!i)return Promise.reject(new Error(`Missing channel ${e} on main thread`));if("function"!==typeof i[t])return Promise.reject(new Error(`Missing method ${t} on main thread channel ${e}`));try{return Promise.resolve(i[t].apply(i,n))}catch(r){return Promise.reject(r)}}_handleEvent(e,t,n){const i=this._localChannels.get(e);if(!i)throw new Error(`Missing channel ${e} on main thread`);if(_(t)){const r=i[t].call(i,n);if("function"!==typeof r)throw new Error(`Missing dynamic event ${t} on main thread channel ${e}.`);return r}if(w(t)){const n=i[t];if("function"!==typeof n)throw new Error(`Missing event ${t} on main thread channel ${e}.`);return n}throw new Error(`Malformed event name ${t}`)}setChannel(e,t){this._localChannels.set(e,t)}_onError(e,t){console.error(e),console.info(t)}}function w(e){return"o"===e[0]&&"n"===e[1]&&l.Wv(e.charCodeAt(2))}function _(e){return/^onDynamic/.test(e)&&l.Wv(e.charCodeAt(9))}class k{constructor(e,t){this._localChannels=new Map,this._remoteChannels=new Map,this._requestHandlerFactory=t,this._requestHandler=null,this._protocol=new v({sendMessage:(t,n)=>{e(t,n)},handleMessage:(e,t,n)=>this._handleMessage(e,t,n),handleEvent:(e,t,n)=>this._handleEvent(e,t,n)})}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,t,n){if(e===c&&t===h)return this.initialize(n[0],n[1],n[2]);const i=e===c?this._requestHandler:this._localChannels.get(e);if(!i)return Promise.reject(new Error(`Missing channel ${e} on worker thread`));if("function"!==typeof i[t])return Promise.reject(new Error(`Missing method ${t} on worker thread channel ${e}`));try{return Promise.resolve(i[t].apply(i,n))}catch(r){return Promise.reject(r)}}_handleEvent(e,t,n){const i=e===c?this._requestHandler:this._localChannels.get(e);if(!i)throw new Error(`Missing channel ${e} on worker thread`);if(_(t)){const e=i[t].call(i,n);if("function"!==typeof e)throw new Error(`Missing dynamic event ${t} on request handler.`);return e}if(w(t)){const e=i[t];if("function"!==typeof e)throw new Error(`Missing event ${t} on request handler.`);return e}throw new Error(`Malformed event name ${t}`)}getChannel(e){if(!this._remoteChannels.has(e)){const t=this._protocol.createProxyToRemoteChannel(e);this._remoteChannels.set(e,t)}return this._remoteChannels.get(e)}async initialize(e,t,i){if(this._protocol.setWorkerId(e),!this._requestHandlerFactory){t&&("undefined"!==typeof t.baseUrl&&delete t.baseUrl,"undefined"!==typeof t.paths&&"undefined"!==typeof t.paths.vs&&delete t.paths.vs,"undefined"!==typeof t.trustedTypesPolicy&&delete t.trustedTypesPolicy,t.catchError=!0,globalThis.require.config(t));{const e=o.zl.asBrowserUri(`${i}.js`).toString(!0);return n(5890)(`${e}`).then((e=>{if(this._requestHandler=e.create(this),!this._requestHandler)throw new Error("No RequestHandler!")}))}}this._requestHandler=this._requestHandlerFactory(this)}}function C(e){return new k(e,null)}},1939:(e,t,n)=>{"use strict";n.d(t,{K:()=>i});const i=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"})},1940:(e,t,n)=>{"use strict";n.d(t,{vb:()=>l,uC:()=>c,Qg:()=>a,$6:()=>h});n(8447);var i=n(4383),r=n(1234),s=n(1484),o=n(8067);Symbol("MicrotaskDelay");function a(e){return!!e&&"function"===typeof e.then}class l{constructor(){this.disposable=void 0,this.isDisposed=!1}cancel(){this.disposable?.dispose(),this.disposable=void 0}cancelAndSet(e,t,n=globalThis){if(this.isDisposed)throw new i.D7("Calling 'cancelAndSet' on a disposed IntervalTimer");this.cancel();const r=n.setInterval((()=>{e()}),t);this.disposable=(0,s.s)((()=>{n.clearInterval(r),this.disposable=void 0}))}dispose(){this.cancel(),this.isDisposed=!0}}class c{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return-1!==this.timeoutToken}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner?.()}}let h,d;d="function"!==typeof globalThis.requestIdleCallback||"function"!==typeof globalThis.cancelIdleCallback?(e,t)=>{(0,o._p)((()=>{if(n)return;const e=Date.now()+15,i={didTimeout:!0,timeRemaining:()=>Math.max(0,e-Date.now())};t(Object.freeze(i))}));let n=!1;return{dispose(){n||(n=!0)}}}:(e,t,n)=>{const i=e.requestIdleCallback(t,"number"===typeof n?{timeout:n}:void 0);let r=!1;return{dispose(){r||(r=!0,e.cancelIdleCallback(i))}}},h=e=>d(globalThis,e);var u;!function(e){e.settled=async function(e){let t;const n=await Promise.all(e.map((e=>e.then((e=>e),(e=>{t||(t=e)})))));if("undefined"!==typeof t)throw t;return n},e.withAsyncBody=function(e){return new Promise((async(t,n)=>{try{await e(t,n)}catch(i){n(i)}}))}}(u||(u={}));class p{static fromArray(e){return new p((t=>{t.emitMany(e)}))}static fromPromise(e){return new p((async t=>{t.emitMany(await e)}))}static fromPromises(e){return new p((async t=>{await Promise.all(e.map((async e=>t.emitOne(await e))))}))}static merge(e){return new p((async t=>{await Promise.all(e.map((async e=>{for await(const n of e)t.emitOne(n)})))}))}static{this.EMPTY=p.fromArray([])}constructor(e,t){this._state=0,this._results=[],this._error=null,this._onReturn=t,this._onStateChanged=new r.vl,queueMicrotask((async()=>{const t={emitOne:e=>this.emitOne(e),emitMany:e=>this.emitMany(e),reject:e=>this.reject(e)};try{await Promise.resolve(e(t)),this.resolve()}catch(n){this.reject(n)}finally{t.emitOne=void 0,t.emitMany=void 0,t.reject=void 0}}))}[Symbol.asyncIterator](){let e=0;return{next:async()=>{for(;;){if(2===this._state)throw this._error;if(e<this._results.length)return{done:!1,value:this._results[e++]};if(1===this._state)return{done:!0,value:void 0};await r.Jh.toPromise(this._onStateChanged.event)}},return:async()=>(this._onReturn?.(),{done:!0,value:void 0})}}static map(e,t){return new p((async n=>{for await(const i of e)n.emitOne(t(i))}))}map(e){return p.map(this,e)}static filter(e,t){return new p((async n=>{for await(const i of e)t(i)&&n.emitOne(i)}))}filter(e){return p.filter(this,e)}static coalesce(e){return p.filter(e,(e=>!!e))}coalesce(){return p.coalesce(this)}static async toPromise(e){const t=[];for await(const n of e)t.push(n);return t}toPromise(){return p.toPromise(this)}emitOne(e){0===this._state&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){0===this._state&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){0===this._state&&(this._state=1,this._onStateChanged.fire())}reject(e){0===this._state&&(this._state=2,this._error=e,this._onStateChanged.fire())}}},2083:(e,t,n)=>{"use strict";n.d(t,{rY:()=>g,ou:()=>f,dG:()=>C,OB:()=>S});var i=n(9493),r=(n(9400),n(1234)),s=n(1484);class o{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new r.vl,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]),(0,s.s)((()=>{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();const n=new a(this,e,t);return this._factories.set(e,n),(0,s.s)((()=>{const t=this._factories.get(e);t&&t===n&&(this._factories.delete(e),t.dispose())}))}async getOrCreate(e){const t=this.get(e);if(t)return t;const n=this._factories.get(e);return!n||n.isResolved?null:(await n.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;const 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}}class a extends s.jG{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._resolvePromise=this._create()),this._resolvePromise}async _create(){const e=await this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}}var l,c,h,d,u,p,m=n(8209);class f{constructor(e,t,n){this.offset=e,this.type=t,this.language=n,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}class g{constructor(e,t){this.tokens=e,this.endState=t,this._encodedTokenizationResultBrand=void 0}}!function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(l||(l={})),function(e){const t=new Map;t.set(0,i.W.symbolMethod),t.set(1,i.W.symbolFunction),t.set(2,i.W.symbolConstructor),t.set(3,i.W.symbolField),t.set(4,i.W.symbolVariable),t.set(5,i.W.symbolClass),t.set(6,i.W.symbolStruct),t.set(7,i.W.symbolInterface),t.set(8,i.W.symbolModule),t.set(9,i.W.symbolProperty),t.set(10,i.W.symbolEvent),t.set(11,i.W.symbolOperator),t.set(12,i.W.symbolUnit),t.set(13,i.W.symbolValue),t.set(15,i.W.symbolEnum),t.set(14,i.W.symbolConstant),t.set(15,i.W.symbolEnum),t.set(16,i.W.symbolEnumMember),t.set(17,i.W.symbolKeyword),t.set(27,i.W.symbolSnippet),t.set(18,i.W.symbolText),t.set(19,i.W.symbolColor),t.set(20,i.W.symbolFile),t.set(21,i.W.symbolReference),t.set(22,i.W.symbolCustomColor),t.set(23,i.W.symbolFolder),t.set(24,i.W.symbolTypeParameter),t.set(25,i.W.account),t.set(26,i.W.issues),e.toIcon=function(e){let n=t.get(e);return n||(console.info("No codicon found for CompletionItemKind "+e),n=i.W.symbolProperty),n};const n=new Map;n.set("method",0),n.set("function",1),n.set("constructor",2),n.set("field",3),n.set("variable",4),n.set("class",5),n.set("struct",6),n.set("interface",7),n.set("module",8),n.set("property",9),n.set("event",10),n.set("operator",11),n.set("unit",12),n.set("value",13),n.set("constant",14),n.set("enum",15),n.set("enum-member",16),n.set("enumMember",16),n.set("keyword",17),n.set("snippet",27),n.set("text",18),n.set("color",19),n.set("file",20),n.set("reference",21),n.set("customcolor",22),n.set("folder",23),n.set("type-parameter",24),n.set("typeParameter",24),n.set("account",25),n.set("issue",26),e.fromString=function(e,t){let i=n.get(e);return"undefined"!==typeof i||t||(i=9),i}}(c||(c={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(h||(h={}));!function(e){e[e.Automatic=0]="Automatic",e[e.PasteAs=1]="PasteAs"}(d||(d={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(u||(u={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(p||(p={}));(0,m.kg)("Array","array"),(0,m.kg)("Boolean","boolean"),(0,m.kg)("Class","class"),(0,m.kg)("Constant","constant"),(0,m.kg)("Constructor","constructor"),(0,m.kg)("Enum","enumeration"),(0,m.kg)("EnumMember","enumeration member"),(0,m.kg)("Event","event"),(0,m.kg)("Field","field"),(0,m.kg)("File","file"),(0,m.kg)("Function","function"),(0,m.kg)("Interface","interface"),(0,m.kg)("Key","key"),(0,m.kg)("Method","method"),(0,m.kg)("Module","module"),(0,m.kg)("Namespace","namespace"),(0,m.kg)("Null","null"),(0,m.kg)("Number","number"),(0,m.kg)("Object","object"),(0,m.kg)("Operator","operator"),(0,m.kg)("Package","package"),(0,m.kg)("Property","property"),(0,m.kg)("String","string"),(0,m.kg)("Struct","struct"),(0,m.kg)("TypeParameter","type parameter"),(0,m.kg)("Variable","variable");var b,v,y,w,_;!function(e){const t=new Map;t.set(0,i.W.symbolFile),t.set(1,i.W.symbolModule),t.set(2,i.W.symbolNamespace),t.set(3,i.W.symbolPackage),t.set(4,i.W.symbolClass),t.set(5,i.W.symbolMethod),t.set(6,i.W.symbolProperty),t.set(7,i.W.symbolField),t.set(8,i.W.symbolConstructor),t.set(9,i.W.symbolEnum),t.set(10,i.W.symbolInterface),t.set(11,i.W.symbolFunction),t.set(12,i.W.symbolVariable),t.set(13,i.W.symbolConstant),t.set(14,i.W.symbolString),t.set(15,i.W.symbolNumber),t.set(16,i.W.symbolBoolean),t.set(17,i.W.symbolArray),t.set(18,i.W.symbolObject),t.set(19,i.W.symbolKey),t.set(20,i.W.symbolNull),t.set(21,i.W.symbolEnumMember),t.set(22,i.W.symbolStruct),t.set(23,i.W.symbolEvent),t.set(24,i.W.symbolOperator),t.set(25,i.W.symbolTypeParameter),e.toIcon=function(e){let n=t.get(e);return n||(console.info("No codicon found for SymbolKind "+e),n=i.W.symbolProperty),n}}(b||(b={}));class k{static{this.Comment=new k("comment")}static{this.Imports=new k("imports")}static{this.Region=new k("region")}static fromValue(e){switch(e){case"comment":return k.Comment;case"imports":return k.Imports;case"region":return k.Region}return new k(e)}constructor(e){this.value=e}}!function(e){e[e.AIGenerated=1]="AIGenerated"}(v||(v={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(y||(y={})),function(e){e.is=function(e){return!(!e||"object"!==typeof e)&&("string"===typeof e.id&&"string"===typeof e.title)}}(w||(w={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(_||(_={}));const C=new o,S=new o;var x;!function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(x||(x={}))},2522:(e,t,n)=>{"use strict";var i;n.d(t,{f:()=>i}),function(e){function t(e){return e&&"object"===typeof e&&"function"===typeof e[Symbol.iterator]}e.is=t;const n=Object.freeze([]);function*i(e){yield e}e.empty=function(){return n},e.single=i,e.wrap=function(e){return t(e)?e:i(e)},e.from=function(e){return e||n},e.reverse=function*(e){for(let t=e.length-1;t>=0;t--)yield e[t]},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){let n=0;for(const i of e)if(t(i,n++))return!0;return!1},e.find=function(e,t){for(const n of e)if(t(n))return n},e.filter=function*(e,t){for(const n of e)t(n)&&(yield n)},e.map=function*(e,t){let n=0;for(const i of e)yield t(i,n++)},e.flatMap=function*(e,t){let n=0;for(const i of e)yield*t(i,n++)},e.concat=function*(...e){for(const t of e)yield*t},e.reduce=function(e,t,n){let i=n;for(const r of e)i=t(i,r);return i},e.slice=function*(e,t,n=e.length){for(t<0&&(t+=e.length),n<0?n+=e.length:n>e.length&&(n=e.length);t<n;t++)yield e[t]},e.consume=function(t,n=Number.POSITIVE_INFINITY){const i=[];if(0===n)return[i,t];const r=t[Symbol.iterator]();for(let s=0;s<n;s++){const t=r.next();if(t.done)return[i,e.empty()];i.push(t.value)}return[i,{[Symbol.iterator]:()=>r}]},e.asyncToArray=async function(e){const t=[];for await(const n of e)t.push(n);return Promise.resolve(t)}}(i||(i={}))},2661:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LanguageFeaturesService:()=>f});var i=n(1234),r=n(1484),s=n(6223),o=n(6958),a=n(8821);function l(e,t,n,i,r,s){if(Array.isArray(e)){let o=0;for(const a of e){const e=l(a,t,n,i,r,s);if(10===e)return e;e>o&&(o=e)}return o}if("string"===typeof e)return i?"*"===e?5:e===n?10:0:0;if(e){const{language:l,pattern:c,scheme:h,hasAccessToAllModels:d,notebookType:u}=e;if(!i&&!d)return 0;u&&r&&(t=r);let p=0;if(h)if(h===t.scheme)p=10;else{if("*"!==h)return 0;p=5}if(l)if(l===n)p=10;else{if("*"!==l)return 0;p=Math.max(p,5)}if(u)if(u===s)p=10;else{if("*"!==u||void 0===s)return 0;p=Math.max(p,5)}if(c){let e;if(e="string"===typeof c?c:{...c,base:(0,a.S8)(c.base)},e!==t.fsPath&&!(0,o.YW)(e,t.fsPath))return 0;p=10}return p}return 0}function c(e){return"string"!==typeof e&&(Array.isArray(e)?e.every(c):!!e.exclusive)}class h{constructor(e,t,n,i,r){this.uri=e,this.languageId=t,this.notebookUri=n,this.notebookType=i,this.recursive=r}equals(e){return this.notebookType===e.notebookType&&this.languageId===e.languageId&&this.uri.toString()===e.uri.toString()&&this.notebookUri?.toString()===e.notebookUri?.toString()&&this.recursive===e.recursive}}class d{constructor(e){this._notebookInfoResolver=e,this._clock=0,this._entries=[],this._onDidChange=new i.vl,this.onDidChange=this._onDidChange.event}register(e,t){let n={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(n),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),(0,r.s)((()=>{if(n){const e=this._entries.indexOf(n);e>=0&&(this._entries.splice(e,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),n=void 0)}}))}has(e){return this.all(e).length>0}all(e){if(!e)return[];this._updateScores(e,!1);const t=[];for(const n of this._entries)n._score>0&&t.push(n.provider);return t}ordered(e,t=!1){const n=[];return this._orderedForEach(e,t,(e=>n.push(e.provider))),n}orderedGroups(e){const t=[];let n,i;return this._orderedForEach(e,!1,(e=>{n&&i===e._score?n.push(e.provider):(i=e._score,n=[e.provider],t.push(n))})),t}_orderedForEach(e,t,n){this._updateScores(e,t);for(const i of this._entries)i._score>0&&n(i)}_updateScores(e,t){const n=this._notebookInfoResolver?.(e.uri),i=n?new h(e.uri,e.getLanguageId(),n.uri,n.type,t):new h(e.uri,e.getLanguageId(),void 0,void 0,t);if(!this._lastCandidate?.equals(i)){this._lastCandidate=i;for(const n of this._entries)if(n._score=l(n.selector,i.uri,i.languageId,(0,s.vd)(e),i.notebookUri,i.notebookType),c(n.selector)&&n._score>0){if(!t){for(const e of this._entries)e._score=0;n._score=1e3;break}n._score=0}this._entries.sort(d._compareByScoreAndTime)}}static _compareByScoreAndTime(e,t){return e._score<t._score?1:e._score>t._score?-1:u(e.selector)&&!u(t.selector)?1:!u(e.selector)&&u(t.selector)?-1:e._time<t._time?1:e._time>t._time?-1:0}}function u(e){return"string"!==typeof e&&(Array.isArray(e)?e.some(u):Boolean(e.isBuiltin))}var p=n(6942),m=n(4621);class f{constructor(){this.referenceProvider=new d(this._score.bind(this)),this.renameProvider=new d(this._score.bind(this)),this.newSymbolNamesProvider=new d(this._score.bind(this)),this.codeActionProvider=new d(this._score.bind(this)),this.definitionProvider=new d(this._score.bind(this)),this.typeDefinitionProvider=new d(this._score.bind(this)),this.declarationProvider=new d(this._score.bind(this)),this.implementationProvider=new d(this._score.bind(this)),this.documentSymbolProvider=new d(this._score.bind(this)),this.inlayHintsProvider=new d(this._score.bind(this)),this.colorProvider=new d(this._score.bind(this)),this.codeLensProvider=new d(this._score.bind(this)),this.documentFormattingEditProvider=new d(this._score.bind(this)),this.documentRangeFormattingEditProvider=new d(this._score.bind(this)),this.onTypeFormattingEditProvider=new d(this._score.bind(this)),this.signatureHelpProvider=new d(this._score.bind(this)),this.hoverProvider=new d(this._score.bind(this)),this.documentHighlightProvider=new d(this._score.bind(this)),this.multiDocumentHighlightProvider=new d(this._score.bind(this)),this.selectionRangeProvider=new d(this._score.bind(this)),this.foldingRangeProvider=new d(this._score.bind(this)),this.linkProvider=new d(this._score.bind(this)),this.inlineCompletionsProvider=new d(this._score.bind(this)),this.inlineEditProvider=new d(this._score.bind(this)),this.completionProvider=new d(this._score.bind(this)),this.linkedEditingRangeProvider=new d(this._score.bind(this)),this.documentRangeSemanticTokensProvider=new d(this._score.bind(this)),this.documentSemanticTokensProvider=new d(this._score.bind(this)),this.documentDropEditProvider=new d(this._score.bind(this)),this.documentPasteEditProvider=new d(this._score.bind(this))}_score(e){return this._notebookTypeResolver?.(e)}}(0,m.v)(p.ILanguageFeaturesService,f,1)},3069:(e,t,n)=>{"use strict";n.d(t,{y:()=>i});class i{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new i(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return i.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return i.isBefore(this,e)}static isBefore(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column}isBeforeOrEqual(e){return i.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<=t.column}static compare(e,t){const n=0|e.lineNumber,i=0|t.lineNumber;if(n===i){return(0|e.column)-(0|t.column)}return n-i}clone(){return new i(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new i(e.lineNumber,e.column)}static isIPosition(e){return e&&"number"===typeof e.lineNumber&&"number"===typeof e.column}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}}},3511:(e,t,n)=>{"use strict";n.d(t,{rr:()=>Q,$b:()=>J});n(1234);var i=n(1484),r=n(8067),s=n(1508),o=n(4383),a=n(8209);function l(...e){switch(e.length){case 1:return(0,a.kg)("contextkey.scanner.hint.didYouMean1","Did you mean {0}?",e[0]);case 2:return(0,a.kg)("contextkey.scanner.hint.didYouMean2","Did you mean {0} or {1}?",e[0],e[1]);case 3:return(0,a.kg)("contextkey.scanner.hint.didYouMean3","Did you mean {0}, {1} or {2}?",e[0],e[1],e[2]);default:return}}const c=(0,a.kg)("contextkey.scanner.hint.didYouForgetToOpenOrCloseQuote","Did you forget to open or close the quote?"),h=(0,a.kg)("contextkey.scanner.hint.didYouForgetToEscapeSlash","Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'.");class d{constructor(){this._input="",this._start=0,this._current=0,this._tokens=[],this._errors=[],this.stringRe=/[a-zA-Z0-9_<>\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(e){switch(e.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return e.isTripleEq?"===":"==";case 4:return e.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:case 8:return">=";case 9:return"=~";case 10:case 17:case 18:case 19:return e.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 20:return"EOF";default:throw(0,o.iH)(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}static{this._regexFlags=new Set(["i","g","s","m","y","u"].map((e=>e.charCodeAt(0))))}static{this._keywords=new Map([["not",14],["in",13],["false",12],["true",11]])}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();){this._start=this._current;switch(this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){const e=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:e})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){const e=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:e})}else this._match(126)?this._addToken(9):this._error(l("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(l("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(l("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return!this._isAtEnd()&&(this._input.charCodeAt(this._current)===e&&(this._current++,!0))}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){const t=this._start,n=this._input.substring(this._start,this._current),i={type:19,offset:this._start,lexeme:n};this._errors.push({offset:t,lexeme:n,additionalInfo:e}),this._tokens.push(i)}_string(){this.stringRe.lastIndex=this._start;const e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;const t=this._input.substring(this._start,this._current),n=d._keywords.get(t);n?this._addToken(n):this._tokens.push({type:17,lexeme:t,offset:this._start})}}_quotedString(){for(;39!==this._peek()&&!this._isAtEnd();)this._advance();this._isAtEnd()?this._error(c):(this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1}))}_regex(){let e=this._current,t=!1,n=!1;for(;;){if(e>=this._input.length)return this._current=e,void this._error(h);const i=this._input.charCodeAt(e);if(t)t=!1;else{if(47===i&&!n){e++;break}91===i?n=!0:92===i?t=!0:93===i&&(n=!1)}e++}for(;e<this._input.length&&d._regexFlags.has(this._input.charCodeAt(e));)e++;this._current=e;const i=this._input.substring(this._start,this._current);this._tokens.push({type:10,lexeme:i,offset:this._start})}_isAtEnd(){return this._current>=this._input.length}}var u=n(3591);const p=new Map;p.set("false",!1),p.set("true",!0),p.set("isMac",r.zx),p.set("isLinux",r.j9),p.set("isWindows",r.uF),p.set("isWeb",r.HZ),p.set("isMacNative",r.zx&&!r.HZ),p.set("isEdge",r.UP),p.set("isFirefox",r.gm),p.set("isChrome",r.H8),p.set("isSafari",r.nr);const m=Object.prototype.hasOwnProperty,f={regexParsingWithErrorRecovery:!0},g=(0,a.kg)("contextkey.parser.error.emptyString","Empty context key expression"),b=(0,a.kg)("contextkey.parser.error.emptyString.hint","Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),v=(0,a.kg)("contextkey.parser.error.noInAfterNot","'in' after 'not'."),y=(0,a.kg)("contextkey.parser.error.closingParenthesis","closing parenthesis ')'"),w=(0,a.kg)("contextkey.parser.error.unexpectedToken","Unexpected token"),_=(0,a.kg)("contextkey.parser.error.unexpectedToken.hint","Did you forget to put && or || before the token?"),k=(0,a.kg)("contextkey.parser.error.unexpectedEOF","Unexpected end of expression"),C=(0,a.kg)("contextkey.parser.error.unexpectedEOF.hint","Did you forget to put a context key?");class S{static{this._parseError=new Error}constructor(e=f){this._config=e,this._scanner=new d,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(""!==e){this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{const e=this._expr();if(!this._isAtEnd()){const e=this._peek(),t=17===e.type?_:void 0;throw this._parsingErrors.push({message:w,offset:e.offset,lexeme:d.getLexeme(e),additionalInfo:t}),S._parseError}return e}catch(t){if(t!==S._parseError)throw t;return}}else this._parsingErrors.push({message:g,offset:0,lexeme:"",additionalInfo:b})}_expr(){return this._or()}_or(){const e=[this._and()];for(;this._matchOne(16);){const t=this._and();e.push(t)}return 1===e.length?e[0]:x.or(...e)}_and(){const e=[this._term()];for(;this._matchOne(15);){const t=this._term();e.push(t)}return 1===e.length?e[0]:x.and(...e)}_term(){if(this._matchOne(2)){const e=this._peek();switch(e.type){case 11:return this._advance(),F.INSTANCE;case 12:return this._advance(),L.INSTANCE;case 0:{this._advance();const e=this._expr();return this._consume(1,y),e?.negate()}case 17:return this._advance(),A.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){const e=this._peek();switch(e.type){case 11:return this._advance(),x.true();case 12:return this._advance(),x.false();case 0:{this._advance();const e=this._expr();return this._consume(1,y),e}case 17:{const i=e.lexeme;if(this._advance(),this._matchOne(9)){const e=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),10!==e.type)throw this._errExpectedButGot("REGEX",e);const n=e.lexeme,r=n.lastIndexOf("/"),s=r===n.length-1?void 0:this._removeFlagsGY(n.substring(r+1));let o;try{o=new RegExp(n.substring(1,r),s)}catch(t){throw this._errExpectedButGot("REGEX",e)}return W.create(i,o)}switch(e.type){case 10:case 19:{const n=[e.lexeme];this._advance();let r=this._peek(),s=0;for(let t=0;t<e.lexeme.length;t++)40===e.lexeme.charCodeAt(t)?s++:41===e.lexeme.charCodeAt(t)&&s--;for(;!this._isAtEnd()&&15!==r.type&&16!==r.type;){switch(r.type){case 0:s++;break;case 1:s--;break;case 10:case 18:for(let t=0;t<r.lexeme.length;t++)40===r.lexeme.charCodeAt(t)?s++:41===e.lexeme.charCodeAt(t)&&s--}if(s<0)break;n.push(d.getLexeme(r)),this._advance(),r=this._peek()}const o=n.join(""),a=o.lastIndexOf("/"),l=a===o.length-1?void 0:this._removeFlagsGY(o.substring(a+1));let c;try{c=new RegExp(o.substring(1,a),l)}catch(t){throw this._errExpectedButGot("REGEX",e)}return x.regex(i,c)}case 18:{const t=e.lexeme;this._advance();let r=null;if(!(0,s.AV)(t)){const i=t.indexOf("/"),s=t.lastIndexOf("/");if(i!==s&&i>=0){const o=t.slice(i+1,s),a="i"===t[s+1]?"i":"";try{r=new RegExp(o,a)}catch(n){throw this._errExpectedButGot("REGEX",e)}}}if(null===r)throw this._errExpectedButGot("REGEX",e);return W.create(i,r)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,v);const e=this._value();return x.notIn(i,e)}switch(this._peek().type){case 3:{this._advance();const e=this._value();if(18===this._previous().type)return x.equals(i,e);switch(e){case"true":return x.has(i);case"false":return x.not(i);default:return x.equals(i,e)}}case 4:{this._advance();const e=this._value();if(18===this._previous().type)return x.notEquals(i,e);switch(e){case"true":return x.not(i);case"false":return x.has(i);default:return x.notEquals(i,e)}}case 5:return this._advance(),P.create(i,this._value());case 6:return this._advance(),B.create(i,this._value());case 7:return this._advance(),O.create(i,this._value());case 8:return this._advance(),z.create(i,this._value());case 13:return this._advance(),x.in(i,this._value());default:return x.has(i)}}case 20:throw this._parsingErrors.push({message:k,offset:e.offset,lexeme:"",additionalInfo:C}),S._parseError;default:throw this._errExpectedButGot("true | false | KEY \n\t| KEY '=~' REGEX \n\t| KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value",this._peek())}}_value(){const e=this._peek();switch(e.type){case 17:case 18:return this._advance(),e.lexeme;case 11:return this._advance(),"true";case 12:return this._advance(),"false";case 13:return this._advance(),"in";default:return""}}_removeFlagsGY(e){return e.replaceAll(this._flagsGYRe,"")}_previous(){return this._tokens[this._current-1]}_matchOne(e){return!!this._check(e)&&(this._advance(),!0)}_advance(){return this._isAtEnd()||this._current++,this._previous()}_consume(e,t){if(this._check(e))return this._advance();throw this._errExpectedButGot(t,this._peek())}_errExpectedButGot(e,t,n){const i=(0,a.kg)("contextkey.parser.error.expectedButGot","Expected: {0}\nReceived: '{1}'.",e,d.getLexeme(t)),r=t.offset,s=d.getLexeme(t);return this._parsingErrors.push({message:i,offset:r,lexeme:s,additionalInfo:n}),S._parseError}_check(e){return this._peek().type===e}_peek(){return this._tokens[this._current]}_isAtEnd(){return 20===this._peek().type}}class x{static false(){return F.INSTANCE}static true(){return L.INSTANCE}static has(e){return I.create(e)}static equals(e,t){return T.create(e,t)}static notEquals(e,t){return D.create(e,t)}static regex(e,t){return W.create(e,t)}static in(e,t){return N.create(e,t)}static notIn(e,t){return R.create(e,t)}static not(e){return A.create(e)}static and(...e){return $.create(e,null,!0)}static or(...e){return q.create(e,null,!0)}static{this._parser=new S({regexParsingWithErrorRecovery:!1})}static deserialize(e){if(void 0===e||null===e)return;return this._parser.parse(e)}}function E(e,t){return e.cmp(t)}class F{static{this.INSTANCE=new F}constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!1}serialize(){return"false"}keys(){return[]}negate(){return L.INSTANCE}}class L{static{this.INSTANCE=new L}constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!0}serialize(){return"true"}keys(){return[]}negate(){return F.INSTANCE}}class I{static create(e,t=null){const n=p.get(e);return"boolean"===typeof n?n?L.INSTANCE:F.INSTANCE:new I(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=2}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=p.get(this.key);return"boolean"===typeof e?e?L.INSTANCE:F.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=A.create(this.key,this)),this.negated}}class T{static create(e,t,n=null){if("boolean"===typeof t)return t?I.create(e,n):A.create(e,n);const i=p.get(e);if("boolean"===typeof i){return t===(i?"true":"false")?L.INSTANCE:F.INSTANCE}return new T(e,t,n)}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=4}cmp(e){return e.type!==this.type?this.type-e.type:H(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=p.get(this.key);if("boolean"===typeof e){const t=e?"true":"false";return this.value===t?L.INSTANCE:F.INSTANCE}return this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=D.create(this.key,this.value,this)),this.negated}}class N{static create(e,t){return new N(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=10,this.negated=null}cmp(e){return e.type!==this.type?this.type-e.type:H(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type&&(this.key===e.key&&this.valueKey===e.valueKey)}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.valueKey),n=e.getValue(this.key);return Array.isArray(t)?t.includes(n):"string"===typeof n&&"object"===typeof t&&null!==t&&m.call(t,n)}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=R.create(this.key,this.valueKey)),this.negated}}class R{static create(e,t){return new R(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=11,this._negated=N.create(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:this._negated.cmp(e._negated)}equals(e){return e.type===this.type&&this._negated.equals(e._negated)}substituteConstants(){return this}evaluate(e){return!this._negated.evaluate(e)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}negate(){return this._negated}}class D{static create(e,t,n=null){if("boolean"===typeof t)return t?A.create(e,n):I.create(e,n);const i=p.get(e);if("boolean"===typeof i){return t===(i?"true":"false")?F.INSTANCE:L.INSTANCE}return new D(e,t,n)}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=5}cmp(e){return e.type!==this.type?this.type-e.type:H(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=p.get(this.key);if("boolean"===typeof e){const t=e?"true":"false";return this.value===t?F.INSTANCE:L.INSTANCE}return this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=T.create(this.key,this.value,this)),this.negated}}class A{static create(e,t=null){const n=p.get(e);return"boolean"===typeof n?n?F.INSTANCE:L.INSTANCE:new A(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=3}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=p.get(this.key);return"boolean"===typeof e?e?F.INSTANCE:L.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=I.create(this.key,this)),this.negated}}function M(e,t){if("string"===typeof e){const t=parseFloat(e);isNaN(t)||(e=t)}return"string"===typeof e||"number"===typeof e?t(e):F.INSTANCE}class O{static create(e,t,n=null){return M(t,(t=>new O(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=12}cmp(e){return e.type!==this.type?this.type-e.type:H(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=B.create(this.key,this.value,this)),this.negated}}class z{static create(e,t,n=null){return M(t,(t=>new z(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=13}cmp(e){return e.type!==this.type?this.type-e.type:H(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=P.create(this.key,this.value,this)),this.negated}}class P{static create(e,t,n=null){return M(t,(t=>new P(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=14}cmp(e){return e.type!==this.type?this.type-e.type:H(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=z.create(this.key,this.value,this)),this.negated}}class B{static create(e,t,n=null){return M(t,(t=>new B(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=15}cmp(e){return e.type!==this.type?this.type-e.type:H(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=O.create(this.key,this.value,this)),this.negated}}class W{static create(e,t){return new W(e,t)}constructor(e,t){this.key=e,this.regexp=t,this.type=7,this.negated=null}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.key<e.key)return-1;if(this.key>e.key)return 1;const t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return t<n?-1:t>n?1:0}equals(e){if(e.type===this.type){const t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return this.key===e.key&&t===n}return!1}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.key);return!!this.regexp&&this.regexp.test(t)}serialize(){const e=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=V.create(this)),this.negated}}class V{static create(e){return new V(e)}constructor(e){this._actual=e,this.type=8}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type&&this._actual.equals(e._actual)}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){return`!(${this._actual.serialize()})`}keys(){return this._actual.keys()}negate(){return this._actual}}function U(e){let t=null;for(let n=0,i=e.length;n<i;n++){const i=e[n].substituteConstants();if(e[n]!==i&&null===t){t=[];for(let i=0;i<n;i++)t[i]=e[i]}null!==t&&(t[n]=i)}return null===t?e:t}class ${static create(e,t,n){return $._normalizeArr(e,t,n)}constructor(e,t){this.expr=e,this.negated=t,this.type=6}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,n=this.expr.length;t<n;t++){const n=E(this.expr[t],e.expr[t]);if(0!==n)return n}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){const e=U(this.expr);return e===this.expr?this:$.create(e,this.negated,!1)}evaluate(e){for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].evaluate(e))return!1;return!0}static _normalizeArr(e,t,n){const i=[];let r=!1;for(const s of e)if(s)if(1!==s.type){if(0===s.type)return F.INSTANCE;6!==s.type?i.push(s):i.push(...s.expr)}else r=!0;if(0===i.length&&r)return L.INSTANCE;if(0!==i.length){if(1===i.length)return i[0];i.sort(E);for(let e=1;e<i.length;e++)i[e-1].equals(i[e])&&(i.splice(e,1),e--);if(1===i.length)return i[0];for(;i.length>1;){const e=i[i.length-1];if(9!==e.type)break;i.pop();const t=i.pop(),r=0===i.length,s=q.create(e.expr.map((e=>$.create([e,t],null,n))),null,r);s&&(i.push(s),i.sort(E))}if(1===i.length)return i[0];if(n){for(let e=0;e<i.length;e++)for(let t=e+1;t<i.length;t++)if(i[e].negate().equals(i[t]))return F.INSTANCE;if(1===i.length)return i[0]}return new $(i,t)}}serialize(){return this.expr.map((e=>e.serialize())).join(" && ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());this.negated=q.create(e,this,!0)}return this.negated}}class q{static create(e,t,n){return q._normalizeArr(e,t,n)}constructor(e,t){this.expr=e,this.negated=t,this.type=9}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,n=this.expr.length;t<n;t++){const n=E(this.expr[t],e.expr[t]);if(0!==n)return n}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){const e=U(this.expr);return e===this.expr?this:q.create(e,this.negated,!1)}evaluate(e){for(let t=0,n=this.expr.length;t<n;t++)if(this.expr[t].evaluate(e))return!0;return!1}static _normalizeArr(e,t,n){let i=[],r=!1;if(e){for(let t=0,n=e.length;t<n;t++){const n=e[t];if(n)if(0!==n.type){if(1===n.type)return L.INSTANCE;9!==n.type?i.push(n):i=i.concat(n.expr)}else r=!0}if(0===i.length&&r)return F.INSTANCE;i.sort(E)}if(0!==i.length){if(1===i.length)return i[0];for(let e=1;e<i.length;e++)i[e-1].equals(i[e])&&(i.splice(e,1),e--);if(1===i.length)return i[0];if(n){for(let e=0;e<i.length;e++)for(let t=e+1;t<i.length;t++)if(i[e].negate().equals(i[t]))return L.INSTANCE;if(1===i.length)return i[0]}return new q(i,t)}}serialize(){return this.expr.map((e=>e.serialize())).join(" || ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());for(;e.length>1;){const t=e.shift(),n=e.shift(),i=[];for(const e of G(t))for(const t of G(n))i.push($.create([e,t],null,!1));e.unshift(q.create(i,null,!1))}this.negated=q.create(e,this,!0)}return this.negated}}class j extends I{static{this._info=[]}static all(){return j._info.values()}constructor(e,t,n){super(e,null),this._defaultValue=t,"object"===typeof n?j._info.push({...n,key:e}):!0!==n&&j._info.push({key:e,description:n,type:null!==t&&void 0!==t?typeof t:void 0})}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return T.create(this.key,e)}}(0,u.u1)("contextKeyService");function K(e,t){return e<t?-1:e>t?1:0}function H(e,t,n,i){return e<n?-1:e>n?1:t<i?-1:t>i?1:0}function G(e){return 9===e.type?e.expr:[e]}const Q=(0,u.u1)("logService");var J;!function(e){e[e.Off=0]="Off",e[e.Trace=1]="Trace",e[e.Debug=2]="Debug",e[e.Info=3]="Info",e[e.Warning=4]="Warning",e[e.Error=5]="Error"}(J||(J={}));J.Info;i.jG;new j("logLevel",function(e){switch(e){case J.Trace:return"trace";case J.Debug:return"debug";case J.Info:return"info";case J.Warning:return"warn";case J.Error:return"error";case J.Off:return"off"}}(J.Info))},3591:(e,t,n)=>{"use strict";var i;n.d(t,{_Y:()=>r,u1:()=>s}),function(e){e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=function(t){return t[e.DI_DEPENDENCIES]||[]}}(i||(i={}));const r=s("instantiationService");function s(e){if(i.serviceIds.has(e))return i.serviceIds.get(e);const t=function(e,n,r){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");!function(e,t,n){t[i.DI_TARGET]===t?t[i.DI_DEPENDENCIES].push({id:e,index:n}):(t[i.DI_DEPENDENCIES]=[{id:e,index:n}],t[i.DI_TARGET]=t)}(t,e,r)};return t.toString=()=>e,i.serviceIds.set(e,t),t}},3750:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IModelService:()=>i});const i=(0,n(3591).u1)("modelService")},3941:(e,t,n)=>{"use strict";n.d(t,{W6:()=>l,vH:()=>c});var i=n(8209),r=n(1234),s=n(6359),o=n(1939),a=n(1646);const l=new class{constructor(){this._onDidChangeLanguages=new r.vl,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[]}registerLanguage(e){return this._languages.push(e),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let t=0,n=this._languages.length;t<n;t++)if(this._languages[t]===e)return void this._languages.splice(t,1)}}}getLanguages(){return this._languages}};s.O.add("editor.modesRegistry",l);const c="plaintext";l.registerLanguage({id:c,extensions:[".txt"],aliases:[i.kg("plainText.alias","Plain Text"),"text"],mimetypes:[o.K.text]}),s.O.as(a.Fd.Configuration).registerDefaultConfigurations([{overrides:{"[plaintext]":{"editor.unicodeHighlight.ambiguousCharacters":!1,"editor.unicodeHighlight.invisibleCharacters":!1}}}])},4001:(e,t,n)=>{"use strict";n.d(t,{Mo:()=>r,pG:()=>i});const i=(0,n(3591).u1)("configurationService");function r(e){return e.replace(/[\[\]]/g,"")}},4243:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ISemanticTokensStylingService:()=>i});const i=(0,n(3591).u1)("semanticTokensStylingService")},4272:(e,t,n)=>{"use strict";n.r(t),n.d(t,{KeyMod:()=>me,createMonacoBaseAPI:()=>fe});var i=n(8447),r=n(1234);class s{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}}const o=new s,a=new s,l=new s,c=new Array(230),h={},d=[],u=Object.create(null),p=Object.create(null),m=[],f=[];for(let ge=0;ge<=193;ge++)m[ge]=-1;for(let ge=0;ge<=132;ge++)f[ge]=-1;var g;!function(){const e="",t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[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,e,0,e,e,e],[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",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],n=[],i=[];for(const r of t){const[e,t,s,g,b,v,y,w,_]=r;if(i[t]||(i[t]=!0,d[t]=s,u[s]=t,p[s.toLowerCase()]=t,e&&(m[t]=g,0!==g&&3!==g&&5!==g&&4!==g&&6!==g&&57!==g&&(f[g]=t))),!n[g]){if(n[g]=!0,!b)throw new Error(`String representation missing for key code ${g} around scan code ${s}`);o.define(g,b),a.define(g,w||b),l.define(g,_||w||b)}v&&(c[v]=g),y&&(h[y]=g)}f[3]=46}(),function(e){e.toString=function(e){return o.keyCodeToStr(e)},e.fromString=function(e){return o.strToKeyCode(e)},e.toUserSettingsUS=function(e){return a.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return l.keyCodeToStr(e)},e.fromUserSettings=function(e){return a.strToKeyCode(e)||l.strToKeyCode(e)},e.toElectronAccelerator=function(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 o.keyCodeToStr(e)}}(g||(g={}));var b,v,y,w,_,k,C,S,x,E,F,L,I,T,N,R,D,A,M,O,z,P,B,W,V,U,$,q,j,K,H,G,Q,J,Y,X,Z,ee,te,ne,ie,re,se,oe,ae,le,ce=n(9400),he=n(3069),de=n(6677),ue=n(5326),pe=n(2083);!function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"}(b||(b={})),function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"}(v||(v={})),function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(y||(y={})),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.Snippet=27]="Snippet"}(w||(w={})),function(e){e[e.Deprecated=1]="Deprecated"}(_||(_={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(k||(k={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(C||(C={})),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"}(S||(S={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(x||(x={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(E||(E={})),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"}(F||(F={})),function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.ariaRequired=5]="ariaRequired",e[e.autoClosingBrackets=6]="autoClosingBrackets",e[e.autoClosingComments=7]="autoClosingComments",e[e.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=9]="autoClosingDelete",e[e.autoClosingOvertype=10]="autoClosingOvertype",e[e.autoClosingQuotes=11]="autoClosingQuotes",e[e.autoIndent=12]="autoIndent",e[e.automaticLayout=13]="automaticLayout",e[e.autoSurround=14]="autoSurround",e[e.bracketPairColorization=15]="bracketPairColorization",e[e.guides=16]="guides",e[e.codeLens=17]="codeLens",e[e.codeLensFontFamily=18]="codeLensFontFamily",e[e.codeLensFontSize=19]="codeLensFontSize",e[e.colorDecorators=20]="colorDecorators",e[e.colorDecoratorsLimit=21]="colorDecoratorsLimit",e[e.columnSelection=22]="columnSelection",e[e.comments=23]="comments",e[e.contextmenu=24]="contextmenu",e[e.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",e[e.cursorBlinking=26]="cursorBlinking",e[e.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",e[e.cursorStyle=28]="cursorStyle",e[e.cursorSurroundingLines=29]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",e[e.cursorWidth=31]="cursorWidth",e[e.disableLayerHinting=32]="disableLayerHinting",e[e.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",e[e.domReadOnly=34]="domReadOnly",e[e.dragAndDrop=35]="dragAndDrop",e[e.dropIntoEditor=36]="dropIntoEditor",e[e.emptySelectionClipboard=37]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",e[e.extraEditorClassName=39]="extraEditorClassName",e[e.fastScrollSensitivity=40]="fastScrollSensitivity",e[e.find=41]="find",e[e.fixedOverflowWidgets=42]="fixedOverflowWidgets",e[e.folding=43]="folding",e[e.foldingStrategy=44]="foldingStrategy",e[e.foldingHighlight=45]="foldingHighlight",e[e.foldingImportsByDefault=46]="foldingImportsByDefault",e[e.foldingMaximumRegions=47]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=49]="fontFamily",e[e.fontInfo=50]="fontInfo",e[e.fontLigatures=51]="fontLigatures",e[e.fontSize=52]="fontSize",e[e.fontWeight=53]="fontWeight",e[e.fontVariations=54]="fontVariations",e[e.formatOnPaste=55]="formatOnPaste",e[e.formatOnType=56]="formatOnType",e[e.glyphMargin=57]="glyphMargin",e[e.gotoLocation=58]="gotoLocation",e[e.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",e[e.hover=60]="hover",e[e.inDiffEditor=61]="inDiffEditor",e[e.inlineSuggest=62]="inlineSuggest",e[e.inlineEdit=63]="inlineEdit",e[e.letterSpacing=64]="letterSpacing",e[e.lightbulb=65]="lightbulb",e[e.lineDecorationsWidth=66]="lineDecorationsWidth",e[e.lineHeight=67]="lineHeight",e[e.lineNumbers=68]="lineNumbers",e[e.lineNumbersMinChars=69]="lineNumbersMinChars",e[e.linkedEditing=70]="linkedEditing",e[e.links=71]="links",e[e.matchBrackets=72]="matchBrackets",e[e.minimap=73]="minimap",e[e.mouseStyle=74]="mouseStyle",e[e.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=76]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",e[e.multiCursorModifier=78]="multiCursorModifier",e[e.multiCursorPaste=79]="multiCursorPaste",e[e.multiCursorLimit=80]="multiCursorLimit",e[e.occurrencesHighlight=81]="occurrencesHighlight",e[e.overviewRulerBorder=82]="overviewRulerBorder",e[e.overviewRulerLanes=83]="overviewRulerLanes",e[e.padding=84]="padding",e[e.pasteAs=85]="pasteAs",e[e.parameterHints=86]="parameterHints",e[e.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",e[e.placeholder=88]="placeholder",e[e.definitionLinkOpensInPeek=89]="definitionLinkOpensInPeek",e[e.quickSuggestions=90]="quickSuggestions",e[e.quickSuggestionsDelay=91]="quickSuggestionsDelay",e[e.readOnly=92]="readOnly",e[e.readOnlyMessage=93]="readOnlyMessage",e[e.renameOnType=94]="renameOnType",e[e.renderControlCharacters=95]="renderControlCharacters",e[e.renderFinalNewline=96]="renderFinalNewline",e[e.renderLineHighlight=97]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=98]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=99]="renderValidationDecorations",e[e.renderWhitespace=100]="renderWhitespace",e[e.revealHorizontalRightPadding=101]="revealHorizontalRightPadding",e[e.roundedSelection=102]="roundedSelection",e[e.rulers=103]="rulers",e[e.scrollbar=104]="scrollbar",e[e.scrollBeyondLastColumn=105]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=106]="scrollBeyondLastLine",e[e.scrollPredominantAxis=107]="scrollPredominantAxis",e[e.selectionClipboard=108]="selectionClipboard",e[e.selectionHighlight=109]="selectionHighlight",e[e.selectOnLineNumbers=110]="selectOnLineNumbers",e[e.showFoldingControls=111]="showFoldingControls",e[e.showUnused=112]="showUnused",e[e.snippetSuggestions=113]="snippetSuggestions",e[e.smartSelect=114]="smartSelect",e[e.smoothScrolling=115]="smoothScrolling",e[e.stickyScroll=116]="stickyScroll",e[e.stickyTabStops=117]="stickyTabStops",e[e.stopRenderingLineAfter=118]="stopRenderingLineAfter",e[e.suggest=119]="suggest",e[e.suggestFontSize=120]="suggestFontSize",e[e.suggestLineHeight=121]="suggestLineHeight",e[e.suggestOnTriggerCharacters=122]="suggestOnTriggerCharacters",e[e.suggestSelection=123]="suggestSelection",e[e.tabCompletion=124]="tabCompletion",e[e.tabIndex=125]="tabIndex",e[e.unicodeHighlighting=126]="unicodeHighlighting",e[e.unusualLineTerminators=127]="unusualLineTerminators",e[e.useShadowDOM=128]="useShadowDOM",e[e.useTabStops=129]="useTabStops",e[e.wordBreak=130]="wordBreak",e[e.wordSegmenterLocales=131]="wordSegmenterLocales",e[e.wordSeparators=132]="wordSeparators",e[e.wordWrap=133]="wordWrap",e[e.wordWrapBreakAfterCharacters=134]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=135]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=136]="wordWrapColumn",e[e.wordWrapOverride1=137]="wordWrapOverride1",e[e.wordWrapOverride2=138]="wordWrapOverride2",e[e.wrappingIndent=139]="wrappingIndent",e[e.wrappingStrategy=140]="wrappingStrategy",e[e.showDeprecated=141]="showDeprecated",e[e.inlayHints=142]="inlayHints",e[e.editorClassName=143]="editorClassName",e[e.pixelRatio=144]="pixelRatio",e[e.tabFocusMode=145]="tabFocusMode",e[e.layoutInfo=146]="layoutInfo",e[e.wrappingInfo=147]="wrappingInfo",e[e.defaultColorDecorators=148]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=149]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=150]="inlineCompletionsAccessibilityVerbose"}(L||(L={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(I||(I={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}(T||(T={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(N||(N={})),function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(R||(R={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(D||(D={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(A||(A={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(M||(M={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(O||(O={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(z||(z={})),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"}(P||(P={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(B||(B={})),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(W||(W={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(V||(V={})),function(e){e[e.Normal=1]="Normal",e[e.Underlined=2]="Underlined"}(U||(U={})),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"}($||($={})),function(e){e[e.AIGenerated=1]="AIGenerated"}(q||(q={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(j||(j={})),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"}(K||(K={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(H||(H={})),function(e){e[e.Word=0]="Word",e[e.Line=1]="Line",e[e.Suggest=2]="Suggest"}(G||(G={})),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"}(Q||(Q={})),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"}(J||(J={})),function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"}(Y||(Y={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"}(X||(X={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(Z||(Z={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(ee||(ee={})),function(e){e.Off="off",e.OnCode="onCode",e.On="on"}(te||(te={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(ne||(ne={})),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"}(ie||(ie={})),function(e){e[e.Deprecated=1]="Deprecated"}(re||(re={})),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"}(se||(se={})),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"}(oe||(oe={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(ae||(ae={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(le||(le={}));class me{static{this.CtrlCmd=2048}static{this.Shift=1024}static{this.Alt=512}static{this.WinCtrl=256}static chord(e,t){return function(e,t){return(e|(65535&t)<<16>>>0)>>>0}(e,t)}}function fe(){return{editor:void 0,languages:void 0,CancellationTokenSource:i.Qi,Emitter:r.vl,KeyCode:P,KeyMod:me,Position:he.y,Range:de.Q,Selection:ue.L,SelectionDirection:ee,MarkerSeverity:B,MarkerTag:W,Uri:ce.r,Token:pe.ou}}},4320:(e,t,n)=>{"use strict";var i,r;n.d(t,{cO:()=>h,db:()=>d,fT:()=>o,qK:()=>c});class s{constructor(e,t){this.uri=e,this.value=t}}class o{static{this.defaultToKey=e=>e.toString()}constructor(e,t){if(this[i]="ResourceMap",e instanceof o)this.map=new Map(e.map),this.toKey=t??o.defaultToKey;else if(function(e){return Array.isArray(e)}(e)){this.map=new Map,this.toKey=t??o.defaultToKey;for(const[t,n]of e)this.set(t,n)}else this.map=new Map,this.toKey=e??o.defaultToKey}set(e,t){return this.map.set(this.toKey(e),new s(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){"undefined"!==typeof t&&(e=e.bind(t));for(const[n,i]of this.map)e(i.value,i.uri,this)}*values(){for(const e of this.map.values())yield e.value}*keys(){for(const e of this.map.values())yield e.uri}*entries(){for(const e of this.map.values())yield[e.uri,e.value]}*[(i=Symbol.toStringTag,Symbol.iterator)](){for(const[,e]of this.map)yield[e.uri,e.value]}}class a{constructor(){this[r]="LinkedMap",this._map=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){const n=this._map.get(e);if(n)return 0!==t&&this.touch(n,t),n.value}set(e,t,n=0){let i=this._map.get(e);if(i)i.value=t,0!==n&&this.touch(i,n);else{switch(i={key:e,value:t,next:void 0,previous:void 0},n){case 0:case 2:default:this.addItemLast(i);break;case 1:this.addItemFirst(i)}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const 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 new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const n=this._state;let i=this._head;for(;i;){if(t?e.bind(t)(i.value,i.key,this):e(i.value,i.key,this),this._state!==n)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.key,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}values(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.value,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}entries(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:[n.key,n.value],done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}[(r=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();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(0===e)return void this.clear();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){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;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 new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,n=e.previous;if(!t||!n)throw new 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 new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;const 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(2===t){if(e===this._tail)return;const 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(){const e=[];return this.forEach(((t,n)=>{e.push([n,t])})),e}fromJSON(e){this.clear();for(const[t,n]of e)this.set(t,n)}}class l extends a{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))}}class c extends l{constructor(e,t=1){super(e,t)}trim(e){this.trimOld(e)}set(e,t){return super.set(e,t),this.checkTrim(),this}}class h{constructor(e){if(this._m1=new Map,this._m2=new Map,e)for(const[t,n]of e)this.set(t,n)}clear(){this._m1.clear(),this._m2.clear()}set(e,t){this._m1.set(e,t),this._m2.set(t,e)}get(e){return this._m1.get(e)}getKey(e){return this._m2.get(e)}delete(e){const t=this._m1.get(e);return void 0!==t&&(this._m1.delete(e),this._m2.delete(t),!0)}keys(){return this._m1.keys()}values(){return this._m1.values()}}class d{constructor(){this.map=new Map}add(e,t){let n=this.map.get(e);n||(n=new Set,this.map.set(e,n)),n.add(t)}delete(e,t){const n=this.map.get(e);n&&(n.delete(t),0===n.size&&this.map.delete(e))}forEach(e,t){const n=this.map.get(e);n&&n.forEach(t)}get(e){const t=this.map.get(e);return t||new Set}}},4383:(e,t,n)=>{"use strict";n.d(t,{D7:()=>p,EM:()=>d,Qg:()=>c,cU:()=>s,dz:()=>r,iH:()=>h});const i=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((()=>{if(e.stack){if(u.isErrorNoTelemetry(e))throw new u(e.message+"\n\n"+e.stack);throw new Error(e.message+"\n\n"+e.stack)}throw e}),0)}}emit(e){this.listeners.forEach((t=>{t(e)}))}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function r(e){a(e)||i.onUnexpectedError(e)}function s(e){if(e instanceof Error){const{name:t,message:n}=e;return{$isError:!0,name:t,message:n,stack:e.stacktrace||e.stack,noTelemetry:u.isErrorNoTelemetry(e)}}return e}const o="Canceled";function a(e){return e instanceof l||e instanceof Error&&e.name===o&&e.message===o}class l extends Error{constructor(){super(o),this.name=this.message}}function c(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")}function h(e){return e?new Error(`Illegal state: ${e}`):new Error("Illegal state")}class d extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class u extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof u)return e;const t=new u;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return"CodeExpectedError"===e.name}}class p extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,p.prototype)}}},4432:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITreeSitterParserService:()=>i});const i=(0,n(3591).u1)("treeSitterParserService")},4444:(e,t,n)=>{"use strict";n.d(t,{L:()=>r});var i=n(4383);class r{static addRange(e,t){let n=0;for(;n<t.length&&t[n].endExclusive<e.start;)n++;let i=n;for(;i<t.length&&t[i].start<=e.endExclusive;)i++;if(n===i)t.splice(n,0,e);else{const s=Math.min(e.start,t[n].start),o=Math.max(e.endExclusive,t[i-1].endExclusive);t.splice(n,i-n,new r(s,o))}}static tryCreate(e,t){if(!(e>t))return new r(e,t)}static ofLength(e){return new r(0,e)}static ofStartAndLength(e,t){return new r(e,e+t)}constructor(e,t){if(this.start=e,this.endExclusive=t,e>t)throw new i.D7(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new r(this.start+e,this.endExclusive+e)}deltaStart(e){return new r(this.start+e,this.endExclusive)}deltaEnd(e){return new r(this.start,this.endExclusive+e)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}contains(e){return this.start<=e&&e<this.endExclusive}join(e){return new r(Math.min(this.start,e.start),Math.max(this.endExclusive,e.endExclusive))}intersect(e){const t=Math.max(this.start,e.start),n=Math.min(this.endExclusive,e.endExclusive);if(t<=n)return new r(t,n)}intersects(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 i.D7(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,e))}clipCyclic(e){if(this.isEmpty)throw new i.D7(`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)}}},4454:(e,t,n)=>{"use strict";function i(e){let t=0,n=0,i=0,r=0;for(let s=0,o=e.length;s<o;s++){const a=e.charCodeAt(s);13===a?(0===t&&(n=s),t++,s+1<o&&10===e.charCodeAt(s+1)?(r|=2,s++):r|=3,i=s+1):10===a&&(r|=1,0===t&&(n=s),t++,i=s+1)}return 0===t&&(n=e.length),[t,n,e.length-i,r]}n.d(t,{W:()=>i})},4621:(e,t,n)=>{"use strict";n.d(t,{v:()=>s});class i{constructor(e,t=[],n=!1){this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=n}}const r=[];function s(e,t,n){t instanceof i||(t=new i(t,[],Boolean(n))),r.push([e,t])}},4855:(e,t,n)=>{"use strict";n.r(t),n.d(t,{UnicodeTextModelHighlighter:()=>l});var i=n(6677),r=n(7729),s=n(1508),o=n(6782),a=n(6486);class l{static computeUnicodeHighlights(e,t,n){const l=n?n.startLineNumber:1,h=n?n.endLineNumber:e.getLineCount(),d=new c(t),u=d.getCandidateCodePoints();let p;var m;p="allNonBasicAscii"===u?new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):new RegExp(""+(m=Array.from(u),`[${s.bm(m.map((e=>String.fromCodePoint(e))).join(""))}]`),"g");const f=new r.W5(null,p),g=[];let b,v=!1,y=0,w=0,_=0;e:for(let r=l,c=h;r<=c;r++){const t=e.getLineContent(r),n=t.length;f.reset(0);do{if(b=f.next(t),b){let e=b.index,l=b.index+b[0].length;if(e>0){const n=t.charCodeAt(e-1);s.pc(n)&&e--}if(l+1<n){const e=t.charCodeAt(l-1);s.pc(e)&&l++}const c=t.substring(e,l);let h=(0,a.Th)(e+1,a.Ld,t,0);h&&h.endColumn<=e+1&&(h=null);const u=d.shouldHighlightNonBasicASCII(c,h?h.word:null);if(0!==u){3===u?y++:2===u?w++:1===u?_++:(0,o.xb)(u);const t=1e3;if(g.length>=t){v=!0;break e}g.push(new i.Q(r,e+1,r,l+1))}}}while(b)}return{ranges:g,hasMore:v,ambiguousCharacterCount:y,invisibleCharacterCount:w,nonBasicAsciiCharacterCount:_}}static computeUnicodeHighlightReason(e,t){const n=new c(t);switch(n.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const i=e.codePointAt(0),r=n.ambiguousCharacters.getPrimaryConfusable(i),o=s.tl.getLocales().filter((e=>!s.tl.getInstance(new Set([...t.allowedLocales,e])).isAmbiguous(i)));return{kind:0,confusableWith:String.fromCodePoint(r),notAmbiguousInLocales:o}}case 1:return{kind:2}}}}class c{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=s.tl.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const t of s.y_.codePoints)h(String.fromCodePoint(t))||e.add(t);if(this.options.ambiguousCharacters)for(const t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(const t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e,t){const n=e.codePointAt(0);if(this.allowedCodePoints.has(n))return 0;if(this.options.nonBasicASCII)return 1;let i=!1,r=!1;if(t)for(const o of t){const e=o.codePointAt(0),t=s.aC(o);i=i||t,t||this.ambiguousCharacters.isAmbiguous(e)||s.y_.isInvisibleCharacter(e)||(r=!0)}return!i&&r?0:this.options.invisibleCharacters&&!h(e)&&s.y_.isInvisibleCharacter(n)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(n)?3:0}}function h(e){return" "===e||"\n"===e||"\t"===e}},5152:(e,t,n)=>{"use strict";function i(e){return e<0?0:e>255?255:0|e}function r(e){return e<0?0:e>4294967295?4294967295:0|e}n.d(t,{W:()=>i,j:()=>r})},5196:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BaseEditorSimpleWorker:()=>Pe,EditorSimpleWorker:()=>Be,create:()=>We});class i{constructor(e,t,n,i){this.originalStart=e,this.originalLength=t,this.modifiedStart=n,this.modifiedLength=i}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}var r=n(5600);class s{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let n=0,i=e.length;n<i;n++)t[n]=e.charCodeAt(n);return t}}function o(e,t,n){return new h(new s(e),new s(t)).ComputeDiff(n).changes}class a{static Assert(e,t){if(!e)throw new Error(t)}}class l{static Copy(e,t,n,i,r){for(let s=0;s<r;s++)n[i+s]=e[t+s]}static Copy2(e,t,n,i,r){for(let s=0;s<r;s++)n[i+s]=e[t+s]}}class c{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 i(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}}class h{constructor(e,t,n=null){this.ContinueProcessingPredicate=n,this._originalSequence=e,this._modifiedSequence=t;const[i,r,s]=h._getElements(e),[o,a,l]=h._getElements(t);this._hasStrings=s&&l,this._originalStringElements=i,this._originalElementsOrHash=r,this._modifiedStringElements=o,this._modifiedElementsOrHash=a,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"===typeof e[0]}static _getElements(e){const t=e.getElements();if(h._isStringArray(t)){const e=new Int32Array(t.length);for(let n=0,i=t.length;n<i;n++)e[n]=(0,r.e2)(t[n],0);return[t,e,!0]}return t instanceof Int32Array?[[],t,!1]:[[],new Int32Array(t),!1]}ElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._modifiedStringElements[t])}ElementsAreStrictEqual(e,t){if(!this.ElementsAreEqual(e,t))return!1;return h._getStrictElement(this._originalSequence,e)===h._getStrictElement(this._modifiedSequence,t)}static _getStrictElement(e,t){return"function"===typeof e.getStrictElement?e.getStrictElement(t):null}OriginalElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._originalElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._originalStringElements[t])}ModifiedElementsAreEqual(e,t){return this._modifiedElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._modifiedStringElements[e]===this._modifiedStringElements[t])}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,t,n,i,r){const s=[!1];let o=this.ComputeDiffRecursive(e,t,n,i,s);return r&&(o=this.PrettifyChanges(o)),{quitEarly:s[0],changes:o}}ComputeDiffRecursive(e,t,n,r,s){for(s[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 s;return n<=r?(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),s=[new i(e,0,n,r-n+1)]):e<=t?(a.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),s=[new i(e,t-e+1,n,0)]):(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),a.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),s=[]),s}const o=[0],l=[0],c=this.ComputeRecursionPoint(e,t,n,r,o,l,s),h=o[0],d=l[0];if(null!==c)return c;if(!s[0]){const o=this.ComputeDiffRecursive(e,h,n,d,s);let a=[];return a=s[0]?[new i(h+1,t-(h+1)+1,d+1,r-(d+1)+1)]:this.ComputeDiffRecursive(h+1,t,d+1,r,s),this.ConcatenateChanges(o,a)}return[new i(e,t-e+1,n,r-n+1)]}WALKTRACE(e,t,n,r,s,o,a,l,h,d,u,p,m,f,g,b,v,y){let w=null,_=null,k=new c,C=t,S=n,x=m[0]-b[0]-r,E=-1073741824,F=this.m_forwardHistory.length-1;do{const t=x+e;t===C||t<S&&h[t-1]<h[t+1]?(f=(u=h[t+1])-x-r,u<E&&k.MarkNextChange(),E=u,k.AddModifiedElement(u+1,f),x=t+1-e):(f=(u=h[t-1]+1)-x-r,u<E&&k.MarkNextChange(),E=u-1,k.AddOriginalElement(u,f+1),x=t-1-e),F>=0&&(e=(h=this.m_forwardHistory[F])[0],C=1,S=h.length-1)}while(--F>=-1);if(w=k.getReverseChanges(),y[0]){let e=m[0]+1,t=b[0]+1;if(null!==w&&w.length>0){const n=w[w.length-1];e=Math.max(e,n.getOriginalEnd()),t=Math.max(t,n.getModifiedEnd())}_=[new i(e,p-e+1,t,g-t+1)]}else{k=new c,C=o,S=a,x=m[0]-b[0]-l,E=1073741824,F=v?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=x+s;e===C||e<S&&d[e-1]>=d[e+1]?(f=(u=d[e+1]-1)-x-l,u>E&&k.MarkNextChange(),E=u+1,k.AddOriginalElement(u+1,f+1),x=e+1-s):(f=(u=d[e-1])-x-l,u>E&&k.MarkNextChange(),E=u,k.AddModifiedElement(u+1,f+1),x=e-1-s),F>=0&&(s=(d=this.m_reverseHistory[F])[0],C=1,S=d.length-1)}while(--F>=-1);_=k.getChanges()}return this.ConcatenateChanges(w,_)}ComputeRecursionPoint(e,t,n,r,s,o,a){let c=0,h=0,d=0,u=0,p=0,m=0;e--,n--,s[0]=0,o[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const f=t-e+(r-n),g=f+1,b=new Int32Array(g),v=new Int32Array(g),y=r-n,w=t-e,_=e-n,k=t-r,C=(w-y)%2===0;b[y]=e,v[w]=t,a[0]=!1;for(let S=1;S<=f/2+1;S++){let f=0,x=0;d=this.ClipDiagonalBound(y-S,S,y,g),u=this.ClipDiagonalBound(y+S,S,y,g);for(let e=d;e<=u;e+=2){c=e===d||e<u&&b[e-1]<b[e+1]?b[e+1]:b[e-1]+1,h=c-(e-y)-_;const n=c;for(;c<t&&h<r&&this.ElementsAreEqual(c+1,h+1);)c++,h++;if(b[e]=c,c+h>f+x&&(f=c,x=h),!C&&Math.abs(e-w)<=S-1&&c>=v[e])return s[0]=c,o[0]=h,n<=v[e]&&S<=1448?this.WALKTRACE(y,d,u,_,w,p,m,k,b,v,c,t,s,h,r,o,C,a):null}const E=(f-e+(x-n)-S)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(f,E))return a[0]=!0,s[0]=f,o[0]=x,E>0&&S<=1448?this.WALKTRACE(y,d,u,_,w,p,m,k,b,v,c,t,s,h,r,o,C,a):(e++,n++,[new i(e,t-e+1,n,r-n+1)]);p=this.ClipDiagonalBound(w-S,S,w,g),m=this.ClipDiagonalBound(w+S,S,w,g);for(let i=p;i<=m;i+=2){c=i===p||i<m&&v[i-1]>=v[i+1]?v[i+1]-1:v[i-1],h=c-(i-w)-k;const l=c;for(;c>e&&h>n&&this.ElementsAreEqual(c,h);)c--,h--;if(v[i]=c,C&&Math.abs(i-y)<=S&&c<=b[i])return s[0]=c,o[0]=h,l>=b[i]&&S<=1448?this.WALKTRACE(y,d,u,_,w,p,m,k,b,v,c,t,s,h,r,o,C,a):null}if(S<=1447){let e=new Int32Array(u-d+2);e[0]=y-d+1,l.Copy2(b,d,e,1,u-d+1),this.m_forwardHistory.push(e),e=new Int32Array(m-p+2),e[0]=w-p+1,l.Copy2(v,p,e,1,m-p+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(y,d,u,_,w,p,m,k,b,v,c,t,s,h,r,o,C,a)}PrettifyChanges(e){for(let t=0;t<e.length;t++){const n=e[t],i=t<e.length-1?e[t+1].originalStart:this._originalElementsOrHash.length,r=t<e.length-1?e[t+1].modifiedStart:this._modifiedElementsOrHash.length,s=n.originalLength>0,o=n.modifiedLength>0;for(;n.originalStart+n.originalLength<i&&n.modifiedStart+n.modifiedLength<r&&(!s||this.OriginalElementsAreEqual(n.originalStart,n.originalStart+n.originalLength))&&(!o||this.ModifiedElementsAreEqual(n.modifiedStart,n.modifiedStart+n.modifiedLength));){const e=this.ElementsAreStrictEqual(n.originalStart,n.modifiedStart);if(this.ElementsAreStrictEqual(n.originalStart+n.originalLength,n.modifiedStart+n.modifiedLength)&&!e)break;n.originalStart++,n.modifiedStart++}const a=[null];t<e.length-1&&this.ChangesOverlap(e[t],e[t+1],a)&&(e[t]=a[0],e.splice(t+1,1),t--)}for(let t=e.length-1;t>=0;t--){const n=e[t];let i=0,r=0;if(t>0){const n=e[t-1];i=n.originalStart+n.originalLength,r=n.modifiedStart+n.modifiedLength}const s=n.originalLength>0,o=n.modifiedLength>0;let a=0,l=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let e=1;;e++){const t=n.originalStart-e,c=n.modifiedStart-e;if(t<i||c<r)break;if(s&&!this.OriginalElementsAreEqual(t,t+n.originalLength))break;if(o&&!this.ModifiedElementsAreEqual(c,c+n.modifiedLength))break;const h=(t===i&&c===r?5:0)+this._boundaryScore(t,n.originalLength,c,n.modifiedLength);h>l&&(l=h,a=e)}n.originalStart-=a,n.modifiedStart-=a;const c=[null];t>0&&this.ChangesOverlap(e[t-1],e[t],c)&&(e[t-1]=c[0],e.splice(t,1),t++)}if(this._hasStrings)for(let t=1,n=e.length;t<n;t++){const n=e[t-1],i=e[t],r=i.originalStart-n.originalStart-n.originalLength,s=n.originalStart,o=i.originalStart+i.originalLength,a=o-s,l=n.modifiedStart,c=i.modifiedStart+i.modifiedLength,h=c-l;if(r<5&&a<20&&h<20){const e=this._findBetterContiguousSequence(s,a,l,h,r);if(e){const[t,s]=e;t===n.originalStart+n.originalLength&&s===n.modifiedStart+n.modifiedLength||(n.originalLength=t-n.originalStart,n.modifiedLength=s-n.modifiedStart,i.originalStart=t+r,i.modifiedStart=s+r,i.originalLength=o-i.originalStart,i.modifiedLength=c-i.modifiedStart)}}}return e}_findBetterContiguousSequence(e,t,n,i,r){if(t<r||i<r)return null;const s=e+t-r+1,o=n+i-r+1;let a=0,l=0,c=0;for(let h=e;h<s;h++)for(let e=n;e<o;e++){const t=this._contiguousSequenceScore(h,e,r);t>0&&t>a&&(a=t,l=h,c=e)}return a>0?[l,c]:null}_contiguousSequenceScore(e,t,n){let i=0;for(let r=0;r<n;r++){if(!this.ElementsAreEqual(e+r,t+r))return 0;i+=this._originalStringElements[e+r].length}return i}_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){const 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){const n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1}_boundaryScore(e,t,n,i){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(n,i)?1:0)}ConcatenateChanges(e,t){const n=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){const i=new Array(e.length+t.length-1);return l.Copy(e,0,i,0,e.length-1),i[e.length-1]=n[0],l.Copy(t,1,i,e.length,t.length-1),i}{const n=new Array(e.length+t.length);return l.Copy(e,0,n,0,e.length),l.Copy(t,0,n,e.length,t.length),n}}ChangesOverlap(e,t,n){if(a.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),a.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){const r=e.originalStart;let s=e.originalLength;const o=e.modifiedStart;let a=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(s=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(a=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new i(r,s,o,a),!0}return n[0]=null,!1}ClipDiagonalBound(e,t,n,i){if(e>=0&&e<i)return e;const r=t%2===0;if(e<0){return r===(n%2===0)?0:1}return r===((i-n-1)%2===0)?i-1:i-2}}var d=n(6677),u=n(534);class p{constructor(e,t,n){const i=new Uint8Array(e*t);for(let r=0,s=e*t;r<s;r++)i[r]=n;this._data=i,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}}class m{constructor(e){let t=0,n=0;for(let r=0,s=e.length;r<s;r++){const[i,s,o]=e[r];s>t&&(t=s),i>n&&(n=i),o>n&&(n=o)}t++,n++;const i=new p(n,t,0);for(let r=0,s=e.length;r<s;r++){const[t,n,s]=e[r];i.set(t,n,s)}this._states=i,this._maxCharCode=t}nextState(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)}}let f=null;let g=null;class b{static _createLink(e,t,n,i,r){let s=r-1;do{const n=t.charCodeAt(s);if(2!==e.get(n))break;s--}while(s>i);if(i>0){const e=t.charCodeAt(i-1),n=t.charCodeAt(s);(40===e&&41===n||91===e&&93===n||123===e&&125===n)&&s--}return{range:{startLineNumber:n,startColumn:i+1,endLineNumber:n,endColumn:s+2},url:t.substring(i,s+1)}}static computeLinks(e,t=function(){return null===f&&(f=new m([[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]])),f}()){const n=function(){if(null===g){g=new u.V(0);const e=" \t<>'\"\u3001\u3002\uff61\uff64\uff0c\uff0e\uff1a\uff1b\u2018\u3008\u300c\u300e\u3014\uff08\uff3b\uff5b\uff62\uff63\uff5d\uff3d\uff09\u3015\u300f\u300d\u3009\u2019\uff40\uff5e\u2026";for(let n=0;n<e.length;n++)g.set(e.charCodeAt(n),1);const t=".,;:";for(let n=0;n<t.length;n++)g.set(t.charCodeAt(n),2)}return g}(),i=[];for(let r=1,s=e.getLineCount();r<=s;r++){const s=e.getLineContent(r),o=s.length;let a=0,l=0,c=0,h=1,d=!1,u=!1,p=!1,m=!1;for(;a<o;){let e=!1;const o=s.charCodeAt(a);if(13===h){let t;switch(o){case 40:d=!0,t=0;break;case 41:t=d?0:1;break;case 91:p=!0,u=!0,t=0;break;case 93:p=!1,t=u?0:1;break;case 123:m=!0,t=0;break;case 125:t=m?0:1;break;case 39:case 34:case 96:t=c===o?1:39===c||34===c||96===c?0:1;break;case 42:t=42===c?1:0;break;case 124:t=124===c?1:0;break;case 32:t=p?0:1;break;default:t=n.get(o)}1===t&&(i.push(b._createLink(n,s,r,l,a)),e=!0)}else if(12===h){let t;91===o?(u=!0,t=0):t=n.get(o),1===t?e=!0:h=13}else h=t.nextState(h,o),0===h&&(e=!0);e&&(h=1,d=!1,u=!1,m=!1,l=a+1,c=o),a++}13===h&&i.push(b._createLink(n,s,r,l,o))}return i}}class v{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}static{this.INSTANCE=new v}navigateValueSet(e,t,n,i,r){if(e&&t){const n=this.doNavigateValueSet(t,r);if(n)return{range:e,value:n}}if(n&&i){const e=this.doNavigateValueSet(i,r);if(e)return{range:n,value:e}}return null}doNavigateValueSet(e,t){const n=this.numberReplace(e,t);return null!==n?n:this.textReplace(e,t)}numberReplace(e,t){const n=Math.pow(10,e.length-(e.lastIndexOf(".")+1));let i=Number(e);const r=parseFloat(e);return isNaN(i)||isNaN(r)||i!==r?null:0!==i||t?(i=Math.floor(i*n),i+=t?n:-n,String(i/n)):null}textReplace(e,t){return this.valueSetsReplace(this._defaultValueSet,e,t)}valueSetsReplace(e,t,n){let i=null;for(let r=0,s=e.length;null===i&&r<s;r++)i=this.valueSetReplace(e[r],t,n);return i}valueSetReplace(e,t,n){let i=e.indexOf(t);return i>=0?(i+=n?1:-1,i<0?i=e.length-1:i%=e.length,e[i]):null}}var y=n(4272),w=n(718),_=n(8381),k=n(4855);class C{constructor(e,t,n){this.changes=e,this.moves=t,this.hitTimeout=n}}class S{constructor(e,t){this.lineRangeMapping=e,this.changes=t}}var x=n(4383),E=n(6571),F=n(3069),L=n(6782),I=n(4444);n(973);class T{constructor(e,t){this.range=e,this.text=t}toSingleEditOperation(){return{range:this.range,text:this.text}}}class N{static inverse(e,t,n){const i=[];let r=1,s=1;for(const a of e){const e=new N(new E.M(r,a.original.startLineNumber),new E.M(s,a.modified.startLineNumber));e.modified.isEmpty||i.push(e),r=a.original.endLineNumberExclusive,s=a.modified.endLineNumberExclusive}const o=new N(new E.M(r,t+1),new E.M(s,n+1));return o.modified.isEmpty||i.push(o),i}static clip(e,t,n){const i=[];for(const r of e){const e=r.original.intersect(t),s=r.modified.intersect(n);e&&!e.isEmpty&&s&&!s.isEmpty&&i.push(new N(e,s))}return i}constructor(e,t){this.original=e,this.modified=t}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new N(this.modified,this.original)}join(e){return new N(this.original.join(e.original),this.modified.join(e.modified))}toRangeMapping(){const e=this.original.toInclusiveRange(),t=this.modified.toInclusiveRange();if(e&&t)return new M(e,t);if(1===this.original.startLineNumber||1===this.modified.startLineNumber){if(1!==this.modified.startLineNumber||1!==this.original.startLineNumber)throw new x.D7("not a valid diff");return new M(new d.Q(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new d.Q(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}return new M(new d.Q(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new d.Q(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}toRangeMapping2(e,t){if(D(this.original.endLineNumberExclusive,e)&&D(this.modified.endLineNumberExclusive,t))return new M(new d.Q(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new d.Q(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1));if(!this.original.isEmpty&&!this.modified.isEmpty)return new M(d.Q.fromPositions(new F.y(this.original.startLineNumber,1),R(new F.y(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),d.Q.fromPositions(new F.y(this.modified.startLineNumber,1),R(new F.y(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)));if(this.original.startLineNumber>1&&this.modified.startLineNumber>1)return new M(d.Q.fromPositions(R(new F.y(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER),e),R(new F.y(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),d.Q.fromPositions(R(new F.y(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER),t),R(new F.y(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)));throw new x.D7}}function R(e,t){if(e.lineNumber<1)return new F.y(1,1);if(e.lineNumber>t.length)return new F.y(t.length,t[t.length-1].length+1);const n=t[e.lineNumber-1];return e.column>n.length+1?new F.y(e.lineNumber,n.length+1):e}function D(e,t){return e>=1&&e<=t.length}class A extends N{static fromRangeMappings(e){const t=E.M.join(e.map((e=>E.M.fromRangeInclusive(e.originalRange)))),n=E.M.join(e.map((e=>E.M.fromRangeInclusive(e.modifiedRange))));return new A(t,n,e)}constructor(e,t,n){super(e,t),this.innerChanges=n}flip(){return new A(this.modified,this.original,this.innerChanges?.map((e=>e.flip())))}withInnerChangesFromLineRanges(){return new A(this.original,this.modified,[this.toRangeMapping()])}}class M{static assertSorted(e){for(let t=1;t<e.length;t++){const n=e[t-1],i=e[t];if(!n.originalRange.getEndPosition().isBeforeOrEqual(i.originalRange.getStartPosition())||!n.modifiedRange.getEndPosition().isBeforeOrEqual(i.modifiedRange.getStartPosition()))throw new x.D7("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 M(this.modifiedRange,this.originalRange)}toTextEdit(e){const t=e.getValueOfRange(this.modifiedRange);return new T(this.originalRange,t)}}var O=n(1508);class z{computeDiff(e,t,n){const i=new $(e,t,{maxComputationTime:n.maxComputationTimeMs,shouldIgnoreTrimWhitespace:n.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),r=[];let s=null;for(const o of i.changes){let e,t;e=0===o.originalEndLineNumber?new E.M(o.originalStartLineNumber+1,o.originalStartLineNumber+1):new E.M(o.originalStartLineNumber,o.originalEndLineNumber+1),t=0===o.modifiedEndLineNumber?new E.M(o.modifiedStartLineNumber+1,o.modifiedStartLineNumber+1):new E.M(o.modifiedStartLineNumber,o.modifiedEndLineNumber+1);let n=new A(e,t,o.charChanges?.map((e=>new M(new d.Q(e.originalStartLineNumber,e.originalStartColumn,e.originalEndLineNumber,e.originalEndColumn),new d.Q(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)))));s&&(s.modified.endLineNumberExclusive!==n.modified.startLineNumber&&s.original.endLineNumberExclusive!==n.original.startLineNumber||(n=new A(s.original.join(n.original),s.modified.join(n.modified),s.innerChanges&&n.innerChanges?s.innerChanges.concat(n.innerChanges):void 0),r.pop())),r.push(n),s=n}return(0,L.Ft)((()=>(0,L.Xo)(r,((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 C(r,[],i.quitEarly)}}function P(e,t,n,i){return new h(e,t,n).ComputeDiff(i)}class B{constructor(e){const t=[],n=[];for(let i=0,r=e.length;i<r;i++)t[i]=q(e[i],1),n[i]=j(e[i],1);this.lines=e,this._startColumns=t,this._endColumns=n}getElements(){const 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){const i=[],r=[],s=[];let o=0;for(let a=t;a<=n;a++){const t=this.lines[a],l=e?this._startColumns[a]:1,c=e?this._endColumns[a]:t.length+1;for(let e=l;e<c;e++)i[o]=t.charCodeAt(e-1),r[o]=a+1,s[o]=e,o++;!e&&a<n&&(i[o]=10,r[o]=a+1,s[o]=t.length+1,o++)}return new W(i,r,s)}}class W{constructor(e,t,n){this._charCodes=e,this._lineNumbers=t,this._columns=n}toString(){return"["+this._charCodes.map(((e,t)=>(10===e?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[t]},${this._columns[t]})`)).join(", ")+"]"}_assertIndex(e,t){if(e<0||e>=t.length)throw new 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-1===e?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),10===this._charCodes[e]?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-1===e?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),10===this._charCodes[e]?1:this._columns[e]+1)}}class V{constructor(e,t,n,i,r,s,o,a){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=n,this.originalEndColumn=i,this.modifiedStartLineNumber=r,this.modifiedStartColumn=s,this.modifiedEndLineNumber=o,this.modifiedEndColumn=a}static createFromDiffChange(e,t,n){const i=t.getStartLineNumber(e.originalStart),r=t.getStartColumn(e.originalStart),s=t.getEndLineNumber(e.originalStart+e.originalLength-1),o=t.getEndColumn(e.originalStart+e.originalLength-1),a=n.getStartLineNumber(e.modifiedStart),l=n.getStartColumn(e.modifiedStart),c=n.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),h=n.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new V(i,r,s,o,a,l,c,h)}}class U{constructor(e,t,n,i,r){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=n,this.modifiedEndLineNumber=i,this.charChanges=r}static createFromDiffResult(e,t,n,i,r,s,o){let a,l,c,h,d;if(0===t.originalLength?(a=n.getStartLineNumber(t.originalStart)-1,l=0):(a=n.getStartLineNumber(t.originalStart),l=n.getEndLineNumber(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(c=i.getStartLineNumber(t.modifiedStart)-1,h=0):(c=i.getStartLineNumber(t.modifiedStart),h=i.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),s&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&r()){const s=n.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),a=i.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);if(s.getElements().length>0&&a.getElements().length>0){let e=P(s,a,r,!0).changes;o&&(e=function(e){if(e.length<=1)return e;const t=[e[0]];let n=t[0];for(let i=1,r=e.length;i<r;i++){const r=e[i],s=r.originalStart-(n.originalStart+n.originalLength),o=r.modifiedStart-(n.modifiedStart+n.modifiedLength);Math.min(s,o)<3?(n.originalLength=r.originalStart+r.originalLength-n.originalStart,n.modifiedLength=r.modifiedStart+r.modifiedLength-n.modifiedStart):(t.push(r),n=r)}return t}(e)),d=[];for(let t=0,n=e.length;t<n;t++)d.push(V.createFromDiffChange(e[t],s,a))}}return new U(a,l,c,h,d)}}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 B(e),this.modified=new B(t),this.continueLineDiff=K(n.maxComputationTime),this.continueCharDiff=K(0===n.maxComputationTime?0:Math.min(n.maxComputationTime,5e3))}computeDiff(){if(1===this.original.lines.length&&0===this.original.lines[0].length)return 1===this.modified.lines.length&&0===this.modified.lines[0].length?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(1===this.modified.lines.length&&0===this.modified.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const e=P(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=e.changes,n=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){const e=[];for(let n=0,i=t.length;n<i;n++)e.push(U.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[n],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:n,changes:e}}const i=[];let r=0,s=0;for(let o=-1,a=t.length;o<a;o++){const e=o+1<a?t[o+1]:null,n=e?e.originalStart:this.originalLines.length,l=e?e.modifiedStart:this.modifiedLines.length;for(;r<n&&s<l;){const e=this.originalLines[r],t=this.modifiedLines[s];if(e!==t){{let n=q(e,1),o=q(t,1);for(;n>1&&o>1;){if(e.charCodeAt(n-2)!==t.charCodeAt(o-2))break;n--,o--}(n>1||o>1)&&this._pushTrimWhitespaceCharChange(i,r+1,1,n,s+1,1,o)}{let n=j(e,1),o=j(t,1);const a=e.length+1,l=t.length+1;for(;n<a&&o<l;){if(e.charCodeAt(n-1)!==e.charCodeAt(o-1))break;n++,o++}(n<a||o<l)&&this._pushTrimWhitespaceCharChange(i,r+1,n,a,s+1,o,l)}}r++,s++}e&&(i.push(U.createFromDiffResult(this.shouldIgnoreTrimWhitespace,e,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),r+=e.originalLength,s+=e.modifiedLength)}return{quitEarly:n,changes:i}}_pushTrimWhitespaceCharChange(e,t,n,i,r,s,o){if(this._mergeTrimWhitespaceCharChange(e,t,n,i,r,s,o))return;let a;this.shouldComputeCharChanges&&(a=[new V(t,n,t,i,r,s,r,o)]),e.push(new U(t,t,r,r,a))}_mergeTrimWhitespaceCharChange(e,t,n,i,r,s,o){const a=e.length;if(0===a)return!1;const l=e[a-1];return 0!==l.originalEndLineNumber&&0!==l.modifiedEndLineNumber&&(l.originalEndLineNumber===t&&l.modifiedEndLineNumber===r?(this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new V(t,n,t,i,r,s,r,o)),!0):l.originalEndLineNumber+1===t&&l.modifiedEndLineNumber+1===r&&(l.originalEndLineNumber=t,l.modifiedEndLineNumber=r,this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new V(t,n,t,i,r,s,r,o)),!0))}}function q(e,t){const n=O.HG(e);return-1===n?t:n+1}function j(e,t){const n=O.lT(e);return-1===n?t:n+2}function K(e){if(0===e)return()=>!0;const t=Date.now();return()=>Date.now()-t<e}var H=n(9861);class G{static trivial(e,t){return new G([new Q(I.L.ofLength(e.length),I.L.ofLength(t.length))],!1)}static trivialTimedOut(e,t){return new G([new Q(I.L.ofLength(e.length),I.L.ofLength(t.length))],!0)}constructor(e,t){this.diffs=e,this.hitTimeout=t}}class Q{static invert(e,t){const n=[];return(0,H.pN)(e,((e,i)=>{n.push(Q.fromOffsetPairs(e?e.getEndExclusives():J.zero,i?i.getStarts():new J(t,(e?e.seq2Range.endExclusive-e.seq1Range.endExclusive:0)+t)))})),n}static fromOffsetPairs(e,t){return new Q(new I.L(e.offset1,t.offset1),new I.L(e.offset2,t.offset2))}static assertSorted(e){let t;for(const n of e){if(t&&!(t.seq1Range.endExclusive<=n.seq1Range.start&&t.seq2Range.endExclusive<=n.seq2Range.start))throw new x.D7("Sequence diffs must be sorted");t=n}}constructor(e,t){this.seq1Range=e,this.seq2Range=t}swap(){return new Q(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(e){return new Q(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}delta(e){return 0===e?this:new Q(this.seq1Range.delta(e),this.seq2Range.delta(e))}deltaStart(e){return 0===e?this:new Q(this.seq1Range.deltaStart(e),this.seq2Range.deltaStart(e))}deltaEnd(e){return 0===e?this:new Q(this.seq1Range.deltaEnd(e),this.seq2Range.deltaEnd(e))}intersect(e){const t=this.seq1Range.intersect(e.seq1Range),n=this.seq2Range.intersect(e.seq2Range);if(t&&n)return new Q(t,n)}getStarts(){return new J(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new J(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}class J{static{this.zero=new J(0,0)}static{this.max=new J(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER)}constructor(e,t){this.offset1=e,this.offset2=t}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(e){return 0===e?this:new J(this.offset1+e,this.offset2+e)}equals(e){return this.offset1===e.offset1&&this.offset2===e.offset2}}class Y{static{this.instance=new Y}isValid(){return!0}}class X{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new x.D7("timeout must be positive")}isValid(){return!(Date.now()-this.startTime<this.timeout)&&this.valid&&(this.valid=!1),this.valid}}class Z{constructor(e,t){this.width=e,this.height=t,this.array=[],this.array=new 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 ee(e){return 32===e||9===e}class te{static{this.chrKeys=new Map}static getKey(e){let t=this.chrKeys.get(e);return void 0===t&&(t=this.chrKeys.size,this.chrKeys.set(e,t)),t}constructor(e,t,n){this.range=e,this.lines=t,this.source=n,this.histogram=[];let i=0;for(let r=e.startLineNumber-1;r<e.endLineNumberExclusive-1;r++){const e=t[r];for(let t=0;t<e.length;t++){i++;const n=e[t],r=te.getKey(n);this.histogram[r]=(this.histogram[r]||0)+1}i++;const n=te.getKey("\n");this.histogram[n]=(this.histogram[n]||0)+1}this.totalCount=i}computeSimilarity(e){let t=0;const n=Math.max(this.histogram.length,e.histogram.length);for(let i=0;i<n;i++)t+=Math.abs((this.histogram[i]??0)-(e.histogram[i]??0));return 1-t/(this.totalCount+e.totalCount)}}class ne{compute(e,t,n=Y.instance,i){if(0===e.length||0===t.length)return G.trivial(e,t);const r=new Z(e.length,t.length),s=new Z(e.length,t.length),o=new Z(e.length,t.length);for(let p=0;p<e.length;p++)for(let a=0;a<t.length;a++){if(!n.isValid())return G.trivialTimedOut(e,t);const l=0===p?0:r.get(p-1,a),c=0===a?0:r.get(p,a-1);let h;e.getElement(p)===t.getElement(a)?(h=0===p||0===a?0:r.get(p-1,a-1),p>0&&a>0&&3===s.get(p-1,a-1)&&(h+=o.get(p-1,a-1)),h+=i?i(p,a):1):h=-1;const d=Math.max(l,c,h);if(d===h){const e=p>0&&a>0?o.get(p-1,a-1):0;o.set(p,a,e+1),s.set(p,a,3)}else d===l?(o.set(p,a,0),s.set(p,a,1)):d===c&&(o.set(p,a,0),s.set(p,a,2));r.set(p,a,d)}const a=[];let l=e.length,c=t.length;function h(e,t){e+1===l&&t+1===c||a.push(new Q(new I.L(e+1,l),new I.L(t+1,c))),l=e,c=t}let d=e.length-1,u=t.length-1;for(;d>=0&&u>=0;)3===s.get(d,u)?(h(d,u),d--,u--):1===s.get(d,u)?d--:u--;return h(-1,-1),a.reverse(),new G(a,!1)}}class ie{compute(e,t,n=Y.instance){if(0===e.length||0===t.length)return G.trivial(e,t);const i=e,r=t;function s(e,t){for(;e<i.length&&t<r.length&&i.getElement(e)===r.getElement(t);)e++,t++;return e}let o=0;const a=new se;a.set(0,s(0,0));const l=new oe;l.set(0,0===a.get(0)?null:new re(null,0,0,a.get(0)));let c=0;e:for(;;){if(o++,!n.isValid())return G.trivialTimedOut(i,r);const e=-Math.min(o,r.length+o%2),t=Math.min(o,i.length+o%2);for(c=e;c<=t;c+=2){let n=0;const o=c===t?-1:a.get(c+1),h=c===e?-1:a.get(c-1)+1;n++;const d=Math.min(Math.max(o,h),i.length),u=d-c;if(n++,d>i.length||u>r.length)continue;const p=s(d,u);a.set(c,p);const m=d===o?l.get(c+1):l.get(c-1);if(l.set(c,p!==d?new re(m,d,u,p-d):m),a.get(c)===i.length&&a.get(c)-c===r.length)break e}}let h=l.get(c);const d=[];let u=i.length,p=r.length;for(;;){const e=h?h.x+h.length:0,t=h?h.y+h.length:0;if(e===u&&t===p||d.push(new Q(new I.L(e,u),new I.L(t,p))),!h)break;u=h.x,p=h.y,h=h.prev}return d.reverse(),new G(d,!1)}}class re{constructor(e,t,n,i){this.prev=e,this.x=t,this.y=n,this.length=i}}class se{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=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)>=this.negativeArr.length){const e=this.negativeArr;this.negativeArr=new Int32Array(2*e.length),this.negativeArr.set(e)}this.negativeArr[e]=t}else{if(e>=this.positiveArr.length){const e=this.positiveArr;this.positiveArr=new Int32Array(2*e.length),this.positiveArr.set(e)}this.positiveArr[e]=t}}}class oe{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}}var ae=n(6041),le=n(4320);class ce{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 i=this.range.startLineNumber;i<=this.range.endLineNumber;i++){let t=e[i-1],r=0;i===this.range.startLineNumber&&this.range.startColumn>1&&(r=this.range.startColumn-1,t=t.substring(r)),this.lineStartOffsets.push(r);let s=0;if(!n){const e=t.trimStart();s=t.length-e.length,t=e.trimEnd()}this.trimmedWsLengthsByLineIdx.push(s);const o=i===this.range.endLineNumber?Math.min(this.range.endColumn-1-r-s,t.length):t.length;for(let e=0;e<o;e++)this.elements.push(t.charCodeAt(e));i<this.range.endLineNumber&&(this.elements.push("\n".charCodeAt(0)),this.firstElementOffsetByLineIdx.push(this.elements.length))}}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new I.L(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){const t=pe(e>0?this.elements[e-1]:-1),n=pe(e<this.elements.length?this.elements[e]:-1);if(7===t&&8===n)return 0;if(8===t)return 150;let i=0;return t!==n&&(i+=10,0===t&&1===n&&(i+=1)),i+=ue(t),i+=ue(n),i}translateOffset(e,t="right"){const n=(0,ae.iM)(this.firstElementOffsetByLineIdx,(t=>t<=e)),i=e-this.firstElementOffsetByLineIdx[n];return new F.y(this.range.startLineNumber+n,1+this.lineStartOffsets[n]+i+(0===i&&"left"===t?0:this.trimmedWsLengthsByLineIdx[n]))}translateRange(e){const t=this.translateOffset(e.start,"right"),n=this.translateOffset(e.endExclusive,"left");return n.isBefore(t)?d.Q.fromPositions(n,n):d.Q.fromPositions(t,n)}findWordContaining(e){if(e<0||e>=this.elements.length)return;if(!he(this.elements[e]))return;let t=e;for(;t>0&&he(this.elements[t-1]);)t--;let n=e;for(;n<this.elements.length&&he(this.elements[n]);)n++;return new I.L(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){const t=(0,ae.lx)(this.firstElementOffsetByLineIdx,(t=>t<=e.start))??0,n=(0,ae.XP)(this.firstElementOffsetByLineIdx,(t=>e.endExclusive<=t))??this.elements.length;return new I.L(t,n)}}function he(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}const de={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function ue(e){return de[e]}function pe(e){return 10===e?8:13===e?7:ee(e)?6:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:-1===e?3:44===e||59===e?5:4}function me(e,t,n,i,r,s){let{moves:o,excludedChanges:a}=function(e,t,n,i){const r=[],s=e.filter((e=>e.modified.isEmpty&&e.original.length>=3)).map((e=>new te(e.original,t,e))),o=new Set(e.filter((e=>e.original.isEmpty&&e.modified.length>=3)).map((e=>new te(e.modified,n,e)))),a=new Set;for(const l of s){let e,t=-1;for(const n of o){const i=l.computeSimilarity(n);i>t&&(t=i,e=n)}if(t>.9&&e&&(o.delete(e),r.push(new N(l.range,e.range)),a.add(l.source),a.add(e.source)),!i.isValid())return{moves:r,excludedChanges:a}}return{moves:r,excludedChanges:a}}(e,t,n,s);if(!s.isValid())return[];const l=function(e,t,n,i,r,s){const o=[],a=new le.db;for(const u of e)for(let e=u.original.startLineNumber;e<u.original.endLineNumberExclusive-2;e++){const n=`${t[e-1]}:${t[e+1-1]}:${t[e+2-1]}`;a.add(n,{range:new E.M(e,e+3)})}const l=[];e.sort((0,H.VE)((e=>e.modified.startLineNumber),H.U9));for(const u of e){let e=[];for(let t=u.modified.startLineNumber;t<u.modified.endLineNumberExclusive-2;t++){const i=`${n[t-1]}:${n[t+1-1]}:${n[t+2-1]}`,r=new E.M(t,t+3),s=[];a.forEach(i,(({range:t})=>{for(const i of e)if(i.originalLineRange.endLineNumberExclusive+1===t.endLineNumberExclusive&&i.modifiedLineRange.endLineNumberExclusive+1===r.endLineNumberExclusive)return i.originalLineRange=new E.M(i.originalLineRange.startLineNumber,t.endLineNumberExclusive),i.modifiedLineRange=new E.M(i.modifiedLineRange.startLineNumber,r.endLineNumberExclusive),void s.push(i);const n={modifiedLineRange:r,originalLineRange:t};l.push(n),s.push(n)})),e=s}if(!s.isValid())return[]}l.sort((0,H.Hw)((0,H.VE)((e=>e.modifiedLineRange.length),H.U9)));const c=new E.S,h=new E.S;for(const u of l){const e=u.modifiedLineRange.startLineNumber-u.originalLineRange.startLineNumber,t=c.subtractFrom(u.modifiedLineRange),n=h.subtractFrom(u.originalLineRange).getWithDelta(e),i=t.getIntersection(n);for(const r of i.ranges){if(r.length<3)continue;const t=r,n=r.delta(-e);o.push(new N(n,t)),c.addRange(t),h.addRange(n)}}o.sort((0,H.VE)((e=>e.original.startLineNumber),H.U9));const d=new ae.vJ(e);for(let u=0;u<o.length;u++){const t=o[u],n=d.findLastMonotonous((e=>e.original.startLineNumber<=t.original.startLineNumber)),a=(0,ae.lx)(e,(e=>e.modified.startLineNumber<=t.modified.startLineNumber)),l=Math.max(t.original.startLineNumber-n.original.startLineNumber,t.modified.startLineNumber-a.modified.startLineNumber),p=d.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive)),m=(0,ae.lx)(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)),f=Math.max(p.original.endLineNumberExclusive-t.original.endLineNumberExclusive,m.modified.endLineNumberExclusive-t.modified.endLineNumberExclusive);let g,b;for(g=0;g<l;g++){const e=t.original.startLineNumber-g-1,n=t.modified.startLineNumber-g-1;if(e>i.length||n>r.length)break;if(c.contains(n)||h.contains(e))break;if(!fe(i[e-1],r[n-1],s))break}for(g>0&&(h.addRange(new E.M(t.original.startLineNumber-g,t.original.startLineNumber)),c.addRange(new E.M(t.modified.startLineNumber-g,t.modified.startLineNumber))),b=0;b<f;b++){const e=t.original.endLineNumberExclusive+b,n=t.modified.endLineNumberExclusive+b;if(e>i.length||n>r.length)break;if(c.contains(n)||h.contains(e))break;if(!fe(i[e-1],r[n-1],s))break}b>0&&(h.addRange(new E.M(t.original.endLineNumberExclusive,t.original.endLineNumberExclusive+b)),c.addRange(new E.M(t.modified.endLineNumberExclusive,t.modified.endLineNumberExclusive+b))),(g>0||b>0)&&(o[u]=new N(new E.M(t.original.startLineNumber-g,t.original.endLineNumberExclusive+b),new E.M(t.modified.startLineNumber-g,t.modified.endLineNumberExclusive+b)))}return o}(e.filter((e=>!a.has(e))),i,r,t,n,s);return(0,H.E4)(o,l),o=function(e){if(0===e.length)return e;e.sort((0,H.VE)((e=>e.original.startLineNumber),H.U9));const t=[e[0]];for(let n=1;n<e.length;n++){const i=t[t.length-1],r=e[n],s=r.original.startLineNumber-i.original.endLineNumberExclusive,o=r.modified.startLineNumber-i.modified.endLineNumberExclusive;s>=0&&o>=0&&s+o<=2?t[t.length-1]=i.join(r):t.push(r)}return t}(o),o=o.filter((e=>{const n=e.original.toOffsetRange().slice(t).map((e=>e.trim()));return n.join("\n").length>=15&&function(e,t){let n=0;for(const i of e)t(i)&&n++;return n}(n,(e=>e.length>=2))>=2})),o=function(e,t){const n=new ae.vJ(e);return t=t.filter((t=>(n.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive))||new N(new E.M(1,1),new E.M(1,1)))!==(0,ae.lx)(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)))),t}(e,o),o}function fe(e,t,n){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;const i=(new ie).compute(new ce([e],new d.Q(1,1,1,e.length),!1),new ce([t],new d.Q(1,1,1,t.length),!1),n);let r=0;const s=Q.invert(i.diffs,e.length);for(const a of s)a.seq1Range.forEach((t=>{ee(e.charCodeAt(t))||r++}));const o=function(t){let n=0;for(let i=0;i<e.length;i++)ee(t.charCodeAt(i))||n++;return n}(e.length>t.length?e:t);return r/o>.6&&o>10}function ge(e,t,n){let i=n;return i=be(e,t,i),i=be(e,t,i),i=function(e,t,n){if(!e.getBoundaryScore||!t.getBoundaryScore)return n;for(let i=0;i<n.length;i++){const r=i>0?n[i-1]:void 0,s=n[i],o=i+1<n.length?n[i+1]:void 0,a=new I.L(r?r.seq1Range.endExclusive+1:0,o?o.seq1Range.start-1:e.length),l=new I.L(r?r.seq2Range.endExclusive+1:0,o?o.seq2Range.start-1:t.length);s.seq1Range.isEmpty?n[i]=ve(s,e,t,a,l):s.seq2Range.isEmpty&&(n[i]=ve(s.swap(),t,e,l,a).swap())}return n}(e,t,i),i}function be(e,t,n){if(0===n.length)return n;const i=[];i.push(n[0]);for(let s=1;s<n.length;s++){const r=i[i.length-1];let o=n[s];if(o.seq1Range.isEmpty||o.seq2Range.isEmpty){const n=o.seq1Range.start-r.seq1Range.endExclusive;let s;for(s=1;s<=n&&(e.getElement(o.seq1Range.start-s)===e.getElement(o.seq1Range.endExclusive-s)&&t.getElement(o.seq2Range.start-s)===t.getElement(o.seq2Range.endExclusive-s));s++);if(s--,s===n){i[i.length-1]=new Q(new I.L(r.seq1Range.start,o.seq1Range.endExclusive-n),new I.L(r.seq2Range.start,o.seq2Range.endExclusive-n));continue}o=o.delta(-s)}i.push(o)}const r=[];for(let s=0;s<i.length-1;s++){const n=i[s+1];let o=i[s];if(o.seq1Range.isEmpty||o.seq2Range.isEmpty){const r=n.seq1Range.start-o.seq1Range.endExclusive;let a;for(a=0;a<r&&(e.isStronglyEqual(o.seq1Range.start+a,o.seq1Range.endExclusive+a)&&t.isStronglyEqual(o.seq2Range.start+a,o.seq2Range.endExclusive+a));a++);if(a===r){i[s+1]=new Q(new I.L(o.seq1Range.start+r,n.seq1Range.endExclusive),new I.L(o.seq2Range.start+r,n.seq2Range.endExclusive));continue}a>0&&(o=o.delta(a))}r.push(o)}return i.length>0&&r.push(i[i.length-1]),r}function ve(e,t,n,i,r){let s=1;for(;e.seq1Range.start-s>=i.start&&e.seq2Range.start-s>=r.start&&n.isStronglyEqual(e.seq2Range.start-s,e.seq2Range.endExclusive-s)&&s<100;)s++;s--;let o=0;for(;e.seq1Range.start+o<i.endExclusive&&e.seq2Range.endExclusive+o<r.endExclusive&&n.isStronglyEqual(e.seq2Range.start+o,e.seq2Range.endExclusive+o)&&o<100;)o++;if(0===s&&0===o)return e;let a=0,l=-1;for(let c=-s;c<=o;c++){const i=e.seq2Range.start+c,r=e.seq2Range.endExclusive+c,s=e.seq1Range.start+c,o=t.getBoundaryScore(s)+n.getBoundaryScore(i)+n.getBoundaryScore(r);o>l&&(l=o,a=c)}return e.delta(a)}class ye{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-((0===e?0:we(this.lines[e-1]))+(e===this.lines.length?0:we(this.lines[e])))}getText(e){return this.lines.slice(e.start,e.endExclusive).join("\n")}isStronglyEqual(e,t){return this.lines[e]===this.lines[t]}}function we(e){let t=0;for(;t<e.length&&(32===e.charCodeAt(t)||9===e.charCodeAt(t));)t++;return t}class _e{constructor(){this.dynamicProgrammingDiffing=new ne,this.myersDiffingAlgorithm=new ie}computeDiff(e,t,n){if(e.length<=1&&(0,H.aI)(e,t,((e,t)=>e===t)))return new C([],[],!1);if(1===e.length&&0===e[0].length||1===t.length&&0===t[0].length)return new C([new A(new E.M(1,e.length+1),new E.M(1,t.length+1),[new M(new d.Q(1,1,e.length,e[e.length-1].length+1),new d.Q(1,1,t.length,t[t.length-1].length+1))])],[],!1);const i=0===n.maxComputationTimeMs?Y.instance:new X(n.maxComputationTimeMs),r=!n.ignoreTrimWhitespace,s=new Map;function o(e){let t=s.get(e);return void 0===t&&(t=s.size,s.set(e,t)),t}const a=e.map((e=>o(e.trim()))),l=t.map((e=>o(e.trim()))),c=new ye(a,e),h=new ye(l,t),u=(()=>c.length+h.length<1700?this.dynamicProgrammingDiffing.compute(c,h,i,((n,i)=>e[n]===t[i]?0===t[i].length?.1:1+Math.log(1+t[i].length):.99)):this.myersDiffingAlgorithm.compute(c,h,i))();let p=u.diffs,m=u.hitTimeout;p=ge(c,h,p),p=function(e,t,n){let i=n;if(0===i.length)return i;let r,s=0;do{r=!1;const o=[i[0]];for(let a=1;a<i.length;a++){const l=i[a],c=o[o.length-1];function h(t,n){const i=new I.L(c.seq1Range.endExclusive,l.seq1Range.start);return e.getText(i).replace(/\s/g,"").length<=4&&(t.seq1Range.length+t.seq2Range.length>5||n.seq1Range.length+n.seq2Range.length>5)}h(c,l)?(r=!0,o[o.length-1]=o[o.length-1].join(l)):o.push(l)}i=o}while(s++<10&&r);return i}(c,0,p);const f=[],g=n=>{if(r)for(let s=0;s<n;s++){const n=b+s,o=v+s;if(e[n]!==t[o]){const s=this.refineDiff(e,t,new Q(new I.L(n,n+1),new I.L(o,o+1)),i,r);for(const e of s.mappings)f.push(e);s.hitTimeout&&(m=!0)}}};let b=0,v=0;for(const d of p){(0,L.Ft)((()=>d.seq1Range.start-b===d.seq2Range.start-v));g(d.seq1Range.start-b),b=d.seq1Range.endExclusive,v=d.seq2Range.endExclusive;const n=this.refineDiff(e,t,d,i,r);n.hitTimeout&&(m=!0);for(const e of n.mappings)f.push(e)}g(e.length-b);const y=ke(f,e,t);let w=[];return n.computeMoves&&(w=this.computeMoves(y,e,t,a,l,i,r)),(0,L.Ft)((()=>{function n(e,t){if(e.lineNumber<1||e.lineNumber>t.length)return!1;const n=t[e.lineNumber-1];return!(e.column<1||e.column>n.length+1)}function i(e,t){return!(e.startLineNumber<1||e.startLineNumber>t.length+1)&&!(e.endLineNumberExclusive<1||e.endLineNumberExclusive>t.length+1)}for(const r of y){if(!r.innerChanges)return!1;for(const i of r.innerChanges){if(!(n(i.modifiedRange.getStartPosition(),t)&&n(i.modifiedRange.getEndPosition(),t)&&n(i.originalRange.getStartPosition(),e)&&n(i.originalRange.getEndPosition(),e)))return!1}if(!i(r.modified,t)||!i(r.original,e))return!1}return!0})),new C(y,w,m)}computeMoves(e,t,n,i,r,s,o){return me(e,t,n,i,r,s).map((e=>{const i=ke(this.refineDiff(t,n,new Q(e.original.toOffsetRange(),e.modified.toOffsetRange()),s,o).mappings,t,n,!0);return new S(e,i)}))}refineDiff(e,t,n,i,r){var s;const o=(s=n,new N(new E.M(s.seq1Range.start+1,s.seq1Range.endExclusive+1),new E.M(s.seq2Range.start+1,s.seq2Range.endExclusive+1))).toRangeMapping2(e,t),a=new ce(e,o.originalRange,r),l=new ce(t,o.modifiedRange,r),c=a.length+l.length<500?this.dynamicProgrammingDiffing.compute(a,l,i):this.myersDiffingAlgorithm.compute(a,l,i),h=!1;let d=c.diffs;d=ge(a,l,d),d=function(e,t,n){const i=Q.invert(n,e.length),r=[];let s=new J(0,0);function o(n,o){if(n.offset1<s.offset1||n.offset2<s.offset2)return;const a=e.findWordContaining(n.offset1),l=t.findWordContaining(n.offset2);if(!a||!l)return;let c=new Q(a,l);const h=c.intersect(o);let d=h.seq1Range.length,u=h.seq2Range.length;for(;i.length>0;){const n=i[0];if(!n.seq1Range.intersects(c.seq1Range)&&!n.seq2Range.intersects(c.seq2Range))break;const r=e.findWordContaining(n.seq1Range.start),s=t.findWordContaining(n.seq2Range.start),o=new Q(r,s),a=o.intersect(n);if(d+=a.seq1Range.length,u+=a.seq2Range.length,c=c.join(o),!(c.seq1Range.endExclusive>=n.seq1Range.endExclusive))break;i.shift()}d+u<2*(c.seq1Range.length+c.seq2Range.length)/3&&r.push(c),s=c.getEndExclusives()}for(;i.length>0;){const e=i.shift();e.seq1Range.isEmpty||(o(e.getStarts(),e),o(e.getEndExclusives().delta(-1),e))}return function(e,t){const n=[];for(;e.length>0||t.length>0;){const i=e[0],r=t[0];let s;s=i&&(!r||i.seq1Range.start<r.seq1Range.start)?e.shift():t.shift(),n.length>0&&n[n.length-1].seq1Range.endExclusive>=s.seq1Range.start?n[n.length-1]=n[n.length-1].join(s):n.push(s)}return n}(n,r)}(a,l,d),d=function(e,t,n){const i=[];for(const r of n){const e=i[i.length-1];e&&(r.seq1Range.start-e.seq1Range.endExclusive<=2||r.seq2Range.start-e.seq2Range.endExclusive<=2)?i[i.length-1]=new Q(e.seq1Range.join(r.seq1Range),e.seq2Range.join(r.seq2Range)):i.push(r)}return i}(0,0,d),d=function(e,t,n){let i=n;if(0===i.length)return i;let r,s=0;do{r=!1;const a=[i[0]];for(let l=1;l<i.length;l++){const c=i[l],h=a[a.length-1];function d(n,i){const r=new I.L(h.seq1Range.endExclusive,c.seq1Range.start);if(e.countLinesIn(r)>5||r.length>500)return!1;const s=e.getText(r).trim();if(s.length>20||s.split(/\r\n|\r|\n/).length>1)return!1;const o=e.countLinesIn(n.seq1Range),a=n.seq1Range.length,l=t.countLinesIn(n.seq2Range),d=n.seq2Range.length,u=e.countLinesIn(i.seq1Range),p=i.seq1Range.length,m=t.countLinesIn(i.seq2Range),f=i.seq2Range.length;function g(e){return Math.min(e,130)}return Math.pow(Math.pow(g(40*o+a),1.5)+Math.pow(g(40*l+d),1.5),1.5)+Math.pow(Math.pow(g(40*u+p),1.5)+Math.pow(g(40*m+f),1.5),1.5)>74184.96480721243}d(h,c)?(r=!0,a[a.length-1]=a[a.length-1].join(c)):a.push(c)}i=a}while(s++<10&&r);const o=[];return(0,H.kj)(i,((t,n,i)=>{let r=n;function s(e){return e.length>0&&e.trim().length<=3&&n.seq1Range.length+n.seq2Range.length>100}const a=e.extendToFullLines(n.seq1Range),l=e.getText(new I.L(a.start,n.seq1Range.start));s(l)&&(r=r.deltaStart(-l.length));const c=e.getText(new I.L(n.seq1Range.endExclusive,a.endExclusive));s(c)&&(r=r.deltaEnd(c.length));const h=Q.fromOffsetPairs(t?t.getEndExclusives():J.zero,i?i.getStarts():J.max),d=r.intersect(h);o.length>0&&d.getStarts().equals(o[o.length-1].getEndExclusives())?o[o.length-1]=o[o.length-1].join(d):o.push(d)})),o}(a,l,d);const u=d.map((e=>new M(a.translateRange(e.seq1Range),l.translateRange(e.seq2Range))));return{mappings:u,hitTimeout:c.hitTimeout}}}function ke(e,t,n,i=!1){const r=[];for(const s of(0,H.n)(e.map((e=>function(e,t,n){let i=0,r=0;1===e.modifiedRange.endColumn&&1===e.originalRange.endColumn&&e.originalRange.startLineNumber+i<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+i<=e.modifiedRange.endLineNumber&&(r=-1);e.modifiedRange.startColumn-1>=n[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+r&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+r&&(i=1);const s=new E.M(e.originalRange.startLineNumber+i,e.originalRange.endLineNumber+1+r),o=new E.M(e.modifiedRange.startLineNumber+i,e.modifiedRange.endLineNumber+1+r);return new A(s,o,[e])}(e,t,n))),((e,t)=>e.original.overlapOrTouch(t.original)||e.modified.overlapOrTouch(t.modified)))){const e=s[0],t=s[s.length-1];r.push(new A(e.original.join(t.original),e.modified.join(t.modified),s.map((e=>e.innerChanges[0]))))}return(0,L.Ft)((()=>{if(!i&&r.length>0){if(r[0].modified.startLineNumber!==r[0].original.startLineNumber)return!1;if(n.length-r[r.length-1].modified.endLineNumberExclusive!==t.length-r[r.length-1].original.endLineNumberExclusive)return!1}return(0,L.Xo)(r,((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))})),r}const Ce=()=>new z,Se=()=>new _e;var xe=n(146),Ee=n(6456),Fe=n(7661);function Le(e){const t=[];for(const n of e){const e=Number(n);(e||0===e&&""!==n.replace(/\s/g,""))&&t.push(e)}return t}function Ie(e,t,n,i){return{red:e/255,blue:n/255,green:t/255,alpha:i}}function Te(e,t){const n=t.index,i=t[0].length;if(!n)return;const r=e.positionAt(n);return{startLineNumber:r.lineNumber,startColumn:r.column,endLineNumber:r.lineNumber,endColumn:r.column+i}}function Ne(e,t){if(!e)return;const n=Fe.Q1.Format.CSS.parseHex(t);return n?{range:e,color:Ie(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}:void 0}function Re(e,t,n){if(!e||1!==t.length)return;const i=Le(t[0].values());return{range:e,color:Ie(i[0],i[1],i[2],n?i[3]:1)}}function De(e,t,n){if(!e||1!==t.length)return;const i=Le(t[0].values()),r=new Fe.Q1(new Fe.hB(i[0],i[1]/100,i[2]/100,n?i[3]:1));return{range:e,color:Ie(r.rgba.r,r.rgba.g,r.rgba.b,r.rgba.a)}}function Ae(e,t){return"string"===typeof e?[...e.matchAll(t)]:e.findMatches(t)}function Me(e){return e&&"function"===typeof e.getValue&&"function"===typeof e.positionAt?function(e){const t=[],n=Ae(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/gm);if(n.length>0)for(const i of n){const n=i.filter((e=>void 0!==e)),r=n[1],s=n[2];if(!s)continue;let o;if("rgb"===r){const t=/^\(\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;o=Re(Te(e,i),Ae(s,t),!1)}else if("rgba"===r){const t=/^\(\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;o=Re(Te(e,i),Ae(s,t),!0)}else if("hsl"===r){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;o=De(Te(e,i),Ae(s,t),!1)}else if("hsla"===r){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;o=De(Te(e,i),Ae(s,t),!0)}else"#"===r&&(o=Ne(Te(e,i),r+s));o&&t.push(o)}return t}(e):[]}var Oe=n(6691),ze=n(796);class Pe{constructor(){this._workerTextModelSyncServer=new ze.WorkerTextModelSyncServer}dispose(){}_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){const i=this._getModel(e);return i?k.UnicodeTextModelHighlighter.computeUnicodeHighlights(i,t,n):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async $findSectionHeaders(e,t){const n=this._getModel(e);return n?(0,Oe.findSectionHeaders)(n,t):[]}async $computeDiff(e,t,n,i){const r=this._getModel(e),s=this._getModel(t);if(!r||!s)return null;return Be.computeDiff(r,s,n,i)}static computeDiff(e,t,n,i){const r="advanced"===i?Se():Ce(),s=e.getLinesContent(),o=t.getLinesContent(),a=r.computeDiff(s,o,n);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:!(a.changes.length>0)&&this._modelsAreIdentical(e,t),quitEarly:a.hitTimeout,changes:l(a.changes),moves:a.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){const n=e.getLineCount();if(n!==t.getLineCount())return!1;for(let i=1;i<=n;i++){if(e.getLineContent(i)!==t.getLineContent(i))return!1}return!0}static{this._diffLimit=1e5}async $computeMoreMinimalEdits(e,t,n){const i=this._getModel(e);if(!i)return t;const r=[];let s;t=t.slice(0).sort(((e,t)=>{if(e.range&&t.range)return d.Q.compareRangesUsingStarts(e.range,t.range);return(e.range?0:1)-(t.range?0:1)}));let a=0;for(let o=1;o<t.length;o++)d.Q.getEndPosition(t[a].range).equals(d.Q.getStartPosition(t[o].range))?(t[a].range=d.Q.fromPositions(d.Q.getStartPosition(t[a].range),d.Q.getEndPosition(t[o].range)),t[a].text+=t[o].text):(a++,t[a]=t[o]);t.length=a+1;for(let{range:l,text:c,eol:h}of t){if("number"===typeof h&&(s=h),d.Q.isEmpty(l)&&!c)continue;const e=i.getValueInRange(l);if(c=c.replace(/\r\n|\n|\r/g,i.eol),e===c)continue;if(Math.max(c.length,e.length)>Be._diffLimit){r.push({range:l,text:c});continue}const t=o(e,c,n),a=i.offsetAt(d.Q.lift(l).getStartPosition());for(const n of t){const e=i.positionAt(a+n.originalStart),t=i.positionAt(a+n.originalStart+n.originalLength),s={text:c.substr(n.modifiedStart,n.modifiedLength),range:{startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:t.lineNumber,endColumn:t.column}};i.getValueInRange(s.range)!==s.text&&r.push(s)}}return"number"===typeof s&&r.push({eol:s,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),r}async $computeLinks(e){const t=this._getModel(e);return t?function(e){return e&&"function"===typeof e.getLineCount&&"function"===typeof e.getLineContent?b.computeLinks(e):[]}(t):null}async $computeDefaultDocumentColors(e){const t=this._getModel(e);return t?Me(t):null}static{this._suggestionsLimit=1e4}async $textualSuggest(e,t,n,i){const r=new _.W,s=new RegExp(n,i),o=new Set;e:for(const a of e){const e=this._getModel(a);if(e)for(const n of e.words(s))if(n!==t&&isNaN(Number(n))&&(o.add(n),o.size>Be._suggestionsLimit))break e}return{words:Array.from(o),duration:r.elapsed()}}async $computeWordRanges(e,t,n,i){const r=this._getModel(e);if(!r)return Object.create(null);const s=new RegExp(n,i),o=Object.create(null);for(let a=t.startLineNumber;a<t.endLineNumber;a++){const e=r.getLineWords(a,s);for(const t of e){if(!isNaN(Number(t.word)))continue;let e=o[t.word];e||(e=[],o[t.word]=e),e.push({startLineNumber:a,startColumn:t.startColumn,endLineNumber:a,endColumn:t.endColumn})}}return o}async $navigateValueSet(e,t,n,i,r){const s=this._getModel(e);if(!s)return null;const o=new RegExp(i,r);t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1});const a=s.getValueInRange(t),l=s.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},o);if(!l)return null;const c=s.getValueInRange(l);return v.INSTANCE.navigateValueSet(t,a,l,c,n)}}class Be extends Pe{constructor(e,t){super(),this._host=e,this._foreignModuleFactory=t,this._foreignModule=null}async $ping(){return"pong"}$loadForeignModule(e,t,i){const r={host:(0,xe.kT)(i,((e,t)=>this._host.$fhr(e,t))),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(r,t),Promise.resolve((0,xe.V0)(this._foreignModule))):new Promise(((i,s)=>{const o=e=>{this._foreignModule=e.create(r,t),i((0,xe.V0)(this._foreignModule))};{const t=Ee.zl.asBrowserUri(`${e}.js`).toString(!0);n(9204)(`${t}`).then(o).catch(s)}}))}$fmr(e,t){if(!this._foreignModule||"function"!==typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(n){return Promise.reject(n)}}}function We(e){return new Be(w.EditorWorkerHost.getChannel(e),null)}"function"===typeof importScripts&&(globalThis.monaco=(0,y.createMonacoBaseAPI)())},5326:(e,t,n)=>{"use strict";n.d(t,{L:()=>s});var i=n(3069),r=n(6677);class s extends r.Q{constructor(e,t,n,i){super(e,t,n,i),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=n,this.positionColumn=i}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return s.selectionsEqual(this,e)}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(e,t){return 0===this.getDirection()?new s(this.startLineNumber,this.startColumn,e,t):new s(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new i.y(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new i.y(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return 0===this.getDirection()?new s(e,t,this.endLineNumber,this.endColumn):new s(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new s(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return 0===t?new s(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new s(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new s(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.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,i=e.length;n<i;n++)if(!this.selectionsEqual(e[n],t[n]))return!1;return!0}static isISelection(e){return e&&"number"===typeof e.selectionStartLineNumber&&"number"===typeof e.selectionStartColumn&&"number"===typeof e.positionLineNumber&&"number"===typeof e.positionColumn}static createWithDirection(e,t,n,i,r){return 0===r?new s(e,t,n,i):new s(n,i,e,t)}}},5538:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SemanticTokensProviderStyling:()=>f,toMultilineTokens2:()=>g});n(5982);var i=n(5724),r=n(3511),s=n(3069),o=n(6677),a=n(4454);class l{static create(e,t){return new l(e,new c(t))}get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._endLineNumber}constructor(e,t){this._startLineNumber=e,this._tokens=t,this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}toString(){return this._tokens.toString(this._startLineNumber)}_updateEndLineNumber(){this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}isEmpty(){return this._tokens.isEmpty()}getLineTokens(e){return this._startLineNumber<=e&&e<=this._endLineNumber?this._tokens.getLineTokens(e-this._startLineNumber):null}getRange(){const e=this._tokens.getRange();return e?new o.Q(this._startLineNumber+e.startLineNumber,e.startColumn,this._startLineNumber+e.endLineNumber,e.endColumn):e}removeTokens(e){const t=e.startLineNumber-this._startLineNumber,n=e.endLineNumber-this._startLineNumber;this._startLineNumber+=this._tokens.removeTokens(t,e.startColumn-1,n,e.endColumn-1),this._updateEndLineNumber()}split(e){const t=e.startLineNumber-this._startLineNumber,n=e.endLineNumber-this._startLineNumber,[i,r,s]=this._tokens.split(t,e.startColumn-1,n,e.endColumn-1);return[new l(this._startLineNumber,i),new l(this._startLineNumber+s,r)]}applyEdit(e,t){const[n,i,r]=(0,a.W)(t);this.acceptEdit(e,n,i,r,t.length>0?t.charCodeAt(0):0)}acceptEdit(e,t,n,i,r){this._acceptDeleteRange(e),this._acceptInsertText(new s.y(e.startLineNumber,e.startColumn),t,n,i,r),this._updateEndLineNumber()}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return;const t=e.startLineNumber-this._startLineNumber,n=e.endLineNumber-this._startLineNumber;if(n<0){const e=n-t;return void(this._startLineNumber-=e)}const i=this._tokens.getMaxDeltaLine();if(!(t>=i+1)){if(t<0&&n>=i+1)return this._startLineNumber=0,void this._tokens.clear();if(t<0){const i=-t;this._startLineNumber-=i,this._tokens.acceptDeleteRange(e.startColumn-1,0,0,n,e.endColumn-1)}else this._tokens.acceptDeleteRange(0,t,e.startColumn-1,n,e.endColumn-1)}}_acceptInsertText(e,t,n,i,r){if(0===t&&0===n)return;const s=e.lineNumber-this._startLineNumber;if(s<0)return void(this._startLineNumber+=t);s>=this._tokens.getMaxDeltaLine()+1||this._tokens.acceptInsertText(s,e.column-1,t,n,i,r)}}class c{constructor(e){this._tokens=e,this._tokenCount=e.length/4}toString(e){const t=[];for(let n=0;n<this._tokenCount;n++)t.push(`(${this._getDeltaLine(n)+e},${this._getStartCharacter(n)}-${this._getEndCharacter(n)})`);return`[${t.join(",")}]`}getMaxDeltaLine(){const e=this._getTokenCount();return 0===e?-1:this._getDeltaLine(e-1)}getRange(){const e=this._getTokenCount();if(0===e)return null;const t=this._getStartCharacter(0),n=this._getDeltaLine(e-1),i=this._getEndCharacter(e-1);return new o.Q(0,t+1,n,i+1)}_getTokenCount(){return this._tokenCount}_getDeltaLine(e){return this._tokens[4*e]}_getStartCharacter(e){return this._tokens[4*e+1]}_getEndCharacter(e){return this._tokens[4*e+2]}isEmpty(){return 0===this._getTokenCount()}getLineTokens(e){let t=0,n=this._getTokenCount()-1;for(;t<n;){const i=t+Math.floor((n-t)/2),r=this._getDeltaLine(i);if(r<e)t=i+1;else{if(!(r>e)){let r=i;for(;r>t&&this._getDeltaLine(r-1)===e;)r--;let s=i;for(;s<n&&this._getDeltaLine(s+1)===e;)s++;return new h(this._tokens.subarray(4*r,4*s+4))}n=i-1}}return this._getDeltaLine(t)===e?new h(this._tokens.subarray(4*t,4*t+4)):null}clear(){this._tokenCount=0}removeTokens(e,t,n,i){const r=this._tokens,s=this._tokenCount;let o=0,a=!1,l=0;for(let c=0;c<s;c++){const s=4*c,h=r[s],d=r[s+1],u=r[s+2],p=r[s+3];if((h>e||h===e&&u>=t)&&(h<n||h===n&&d<=i))a=!0;else{if(0===o&&(l=h),a){const e=4*o;r[e]=h-l,r[e+1]=d,r[e+2]=u,r[e+3]=p}o++}}return this._tokenCount=o,l}split(e,t,n,i){const r=this._tokens,s=this._tokenCount,o=[],a=[];let l=o,h=0,d=0;for(let c=0;c<s;c++){const s=4*c,o=r[s],u=r[s+1],p=r[s+2],m=r[s+3];if(o>e||o===e&&p>=t){if(o<n||o===n&&u<=i)continue;l!==a&&(l=a,h=0,d=o)}l[h++]=o-d,l[h++]=u,l[h++]=p,l[h++]=m}return[new c(new Uint32Array(o)),new c(new Uint32Array(a)),d]}acceptDeleteRange(e,t,n,i,r){const s=this._tokens,o=this._tokenCount,a=i-t;let l=0,c=!1;for(let h=0;h<o;h++){const d=4*h;let u=s[d],p=s[d+1],m=s[d+2];const f=s[d+3];if(u<t||u===t&&m<=n){l++;continue}if(u===t&&p<n)u===i&&m>r?m-=r-n:m=n;else if(u===t&&p===n){if(!(u===i&&m>r)){c=!0;continue}m-=r-n}else if(u<i||u===i&&p<r){if(!(u===i&&m>r)){c=!0;continue}u=t,p=n,m=p+(m-r)}else if(u>i){if(0===a&&!c){l=o;break}u-=a}else{if(!(u===i&&p>=r))throw new Error("Not possible!");e&&0===u&&(p+=e,m+=e),u-=a,p-=r-n,m-=r-n}const g=4*l;s[g]=u,s[g+1]=p,s[g+2]=m,s[g+3]=f,l++}this._tokenCount=l}acceptInsertText(e,t,n,i,r,s){const o=0===n&&1===i&&(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122),a=this._tokens,l=this._tokenCount;for(let c=0;c<l;c++){const s=4*c;let l=a[s],h=a[s+1],d=a[s+2];if(!(l<e||l===e&&d<t)){if(l===e&&d===t){if(!o)continue;d+=1}else if(l===e&&h<t&&t<d)0===n?d+=i:d=t;else{if(l===e&&h===t&&o)continue;if(l===e)if(l+=n,0===n)h+=i,d+=i;else{const e=d-h;h=r+(h-t),d=h+e}else l+=n}a[s]=l,a[s+1]=h,a[s+2]=d}}}}class h{constructor(e){this._tokens=e}getCount(){return this._tokens.length/4}getStartCharacter(e){return this._tokens[4*e+1]}getEndCharacter(e){return this._tokens[4*e+2]}getMetadata(e){return this._tokens[4*e+3]}}var d=n(154),u=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},p=function(e,t){return function(n,i){t(n,i,e)}};const m=!1;let f=class{constructor(e,t,n,i){this._legend=e,this._themeService=t,this._languageService=n,this._logService=i,this._hasWarnedOverlappingTokens=!1,this._hasWarnedInvalidLengthTokens=!1,this._hasWarnedInvalidEditStart=!1,this._hashTable=new v}getMetadata(e,t,n){const i=this._languageService.languageIdCodec.encodeLanguageId(n),r=this._hashTable.get(e,t,i);let s;if(r)s=r.metadata;else{let r=this._legend.tokenTypes[e];const o=[];if(r){let e=t;for(let t=0;e>0&&t<this._legend.tokenModifiers.length;t++)1&e&&o.push(this._legend.tokenModifiers[t]),e>>=1;m;const i=this._themeService.getColorTheme().getTokenStyleMetadata(r,o,n);if("undefined"===typeof i)s=2147483647;else{if(s=0,"undefined"!==typeof i.italic){s|=1|(i.italic?1:0)<<11}if("undefined"!==typeof i.bold){s|=2|(i.bold?2:0)<<11}if("undefined"!==typeof i.underline){s|=4|(i.underline?4:0)<<11}if("undefined"!==typeof i.strikethrough){s|=8|(i.strikethrough?8:0)<<11}if(i.foreground){s|=16|i.foreground<<15}0===s&&(s=2147483647)}}else s=2147483647,r="not-in-legend";this._hashTable.add(e,t,i,s)}return s}warnOverlappingSemanticTokens(e,t){this._hasWarnedOverlappingTokens||(this._hasWarnedOverlappingTokens=!0,this._logService.warn(`Overlapping semantic tokens detected at lineNumber ${e}, column ${t}`))}warnInvalidLengthSemanticTokens(e,t){this._hasWarnedInvalidLengthTokens||(this._hasWarnedInvalidLengthTokens=!0,this._logService.warn(`Semantic token with invalid length detected at lineNumber ${e}, column ${t}`))}warnInvalidEditStart(e,t,n,i,r){this._hasWarnedInvalidEditStart||(this._hasWarnedInvalidEditStart=!0,this._logService.warn(`Invalid semantic tokens edit detected (previousResultId: ${e}, resultId: ${t}) at edit #${n}: The provided start offset ${i} is outside the previous data (length ${r}).`))}};function g(e,t,n){const i=e.data,r=e.data.length/5|0,s=Math.max(Math.ceil(r/1024),400),o=[];let a=0,c=1,h=0;for(;a<r;){const e=a;let d=Math.min(e+s,r);if(d<r){let t=d;for(;t-1>e&&0===i[5*t];)t--;if(t-1===e){let e=d;for(;e+1<r&&0===i[5*e];)e++;d=e}else d=t}let u=new Uint32Array(4*(d-e)),p=0,m=0,f=0,g=0;for(;a<d;){const e=5*a,r=i[e],s=i[e+1],o=c+r|0,l=0===r?h+s|0:s,d=l+i[e+2]|0,b=i[e+3],v=i[e+4];if(d<=l)t.warnInvalidLengthSemanticTokens(o,l+1);else if(f===o&&g>l)t.warnOverlappingSemanticTokens(o,l+1);else{const e=t.getMetadata(b,v,n);2147483647!==e&&(0===m&&(m=o),u[p]=o-m,u[p+1]=l,u[p+2]=d,u[p+3]=e,p+=4,f=o,g=d)}c=o,h=l,a++}p!==u.length&&(u=u.subarray(0,p));const b=l.create(m,u);o.push(b)}return o}f=u([p(1,i.Gy),p(2,d.L),p(3,r.rr)],f);class b{constructor(e,t,n,i){this.tokenTypeIndex=e,this.tokenModifierSet=t,this.languageId=n,this.metadata=i,this.next=null}}class v{static{this._SIZES=[3,7,13,31,61,127,251,509,1021,2039,4093,8191,16381,32749,65521,131071,262139,524287,1048573,2097143]}constructor(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=v._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<v._SIZES.length?2/3*this._currentLength:0),this._elements=[],v._nullOutEntries(this._elements,this._currentLength)}static _nullOutEntries(e,t){for(let n=0;n<t;n++)e[n]=null}_hash2(e,t){return(e<<5)-e+t|0}_hashFunc(e,t,n){return this._hash2(this._hash2(e,t),n)%this._currentLength}get(e,t,n){const i=this._hashFunc(e,t,n);let r=this._elements[i];for(;r;){if(r.tokenTypeIndex===e&&r.tokenModifierSet===t&&r.languageId===n)return r;r=r.next}return null}add(e,t,n,i){if(this._elementsCount++,0!==this._growCount&&this._elementsCount>=this._growCount){const e=this._elements;this._currentLengthIndex++,this._currentLength=v._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<v._SIZES.length?2/3*this._currentLength:0),this._elements=[],v._nullOutEntries(this._elements,this._currentLength);for(const t of e){let e=t;for(;e;){const t=e.next;e.next=null,this._add(e),e=t}}}this._add(new b(e,t,n,i))}_add(e){const t=this._hashFunc(e.tokenTypeIndex,e.tokenModifierSet,e.languageId);e.next=this._elements[t],this._elements[t]=e}}},5600:(e,t,n)=>{"use strict";n.d(t,{e2:()=>o,sN:()=>r,v7:()=>h});var i=n(1508);function r(e,t){switch(typeof e){case"object":return null===e?s(349,t):Array.isArray(e)?(n=e,i=s(104579,i=t),n.reduce(((e,t)=>r(t,e)),i)):function(e,t){return t=s(181387,t),Object.keys(e).sort().reduce(((t,n)=>(t=o(n,t),r(e[n],t))),t)}(e,t);case"string":return o(e,t);case"boolean":return function(e,t){return s(e?433:863,t)}(e,t);case"number":return s(e,t);case"undefined":return s(937,t);default:return s(617,t)}var n,i}function s(e,t){return(t<<5)-t+e|0}function o(e,t){t=s(149417,t);for(let n=0,i=e.length;n<i;n++)t=s(e.charCodeAt(n),t);return t}function a(e,t,n=32){const i=n-t;return(e<<t|(~((1<<i)-1)&e)>>>i)>>>0}function l(e,t=0,n=e.byteLength,i=0){for(let r=0;r<n;r++)e[t+r]=i}function c(e,t=32){return e instanceof ArrayBuffer?Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join(""):function(e,t,n="0"){for(;e.length<t;)e=n+e;return e}((e>>>0).toString(16),t/4)}class h{static{this._bigBlock32=new DataView(new ArrayBuffer(320))}constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(0===t)return;const n=this._buff;let r,s,o=this._buffLen,a=this._leftoverHighSurrogate;for(0!==a?(r=a,s=-1,a=0):(r=e.charCodeAt(0),s=0);;){let l=r;if(i.pc(r)){if(!(s+1<t)){a=r;break}{const t=e.charCodeAt(s+1);i.LJ(t)?(s++,l=i.z_(r,t)):l=65533}}else i.LJ(r)&&(l=65533);if(o=this._push(n,o,l),s++,!(s<t))break;r=e.charCodeAt(s)}this._buffLen=o,this._leftoverHighSurrogate=a}_push(e,t,n){return n<128?e[t++]=n:n<2048?(e[t++]=192|(1984&n)>>>6,e[t++]=128|(63&n)>>>0):n<65536?(e[t++]=224|(61440&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0):(e[t++]=240|(1835008&n)>>>18,e[t++]=128|(258048&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>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()),c(this._h0)+c(this._h1)+c(this._h2)+c(this._h3)+c(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,l(this._buff,this._buffLen),this._buffLen>56&&(this._step(),l(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=h._bigBlock32,t=this._buffDV;for(let a=0;a<64;a+=4)e.setUint32(a,t.getUint32(a,!1),!1);for(let h=64;h<320;h+=4)e.setUint32(h,a(e.getUint32(h-12,!1)^e.getUint32(h-32,!1)^e.getUint32(h-56,!1)^e.getUint32(h-64,!1),1),!1);let n,i,r,s=this._h0,o=this._h1,l=this._h2,c=this._h3,d=this._h4;for(let h=0;h<80;h++)h<20?(n=o&l|~o&c,i=1518500249):h<40?(n=o^l^c,i=1859775393):h<60?(n=o&l|o&c|l&c,i=2400959708):(n=o^l^c,i=3395469782),r=a(s,5)+n+d+i+e.getUint32(4*h,!1)&4294967295,d=c,c=l,l=a(o,30),o=s,s=r;this._h0=this._h0+s&4294967295,this._h1=this._h1+o&4294967295,this._h2=this._h2+l&4294967295,this._h3=this._h3+c&4294967295,this._h4=this._h4+d&4294967295}}},5628:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getIconClasses:()=>u});var i,r=n(6456),s=n(9403),o=n(9400),a=n(3941);!function(e){e[e.FILE=0]="FILE",e[e.FOLDER=1]="FOLDER",e[e.ROOT_FOLDER=2]="ROOT_FOLDER"}(i||(i={}));var l,c,h=n(9493);!function(e){e.isThemeColor=function(e){return e&&"object"===typeof e&&"string"===typeof e.id}}(l||(l={})),function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9-]+",e.iconModifierExpression="~[A-Za-z]+",e.iconNameCharacter="[A-Za-z0-9~-]";const t=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function n(e){const i=t.exec(e.id);if(!i)return n(h.W.error);const[,r,s]=i,o=["codicon","codicon-"+r];return s&&o.push("codicon-modifier-"+s.substring(1)),o}e.asClassNameArray=n,e.asClassName=function(e){return n(e).join(" ")},e.asCSSSelector=function(e){return"."+n(e).join(".")},e.isThemeIcon=function(e){return e&&"object"===typeof e&&"string"===typeof e.id&&("undefined"===typeof e.color||l.isThemeColor(e.color))};const i=new RegExp(`^\\$\\((${e.iconNameExpression}(?:${e.iconModifierExpression})?)\\)$`);e.fromString=function(e){const t=i.exec(e);if(!t)return;const[,n]=t;return{id:n}},e.fromId=function(e){return{id:e}},e.modify=function(e,t){let n=e.id;const i=n.lastIndexOf("~");return-1!==i&&(n=n.substring(0,i)),t&&(n=`${n}~${t}`),{id:n}},e.getModifier=function(e){const t=e.id.lastIndexOf("~");if(-1!==t)return e.id.substring(t+1)},e.isEqual=function(e,t){return e.id===t.id&&e.color?.id===t.color?.id}}(c||(c={}));const d=/(?:\/|^)(?:([^\/]+)\/)?([^\/]+)$/;function u(e,t,n,l,h){if(c.isThemeIcon(h))return[`codicon-${h.id}`,"predefined-file-icon"];if(o.r.isUri(h))return[];const u=l===i.ROOT_FOLDER?["rootfolder-icon"]:l===i.FOLDER?["folder-icon"]:["file-icon"];if(n){let o;if(n.scheme===r.ny.data){o=s.B6.parseMetaData(n).get(s.B6.META_DATA_LABEL)}else{const e=n.path.match(d);e?(o=p(e[2].toLowerCase()),e[1]&&u.push(`${p(e[1].toLowerCase())}-name-dir-icon`)):o=p(n.authority.toLowerCase())}if(l===i.ROOT_FOLDER)u.push(`${o}-root-name-folder-icon`);else if(l===i.FOLDER)u.push(`${o}-name-folder-icon`);else{if(o){if(u.push(`${o}-name-file-icon`),u.push("name-file-icon"),o.length<=255){const e=o.split(".");for(let t=1;t<e.length;t++)u.push(`${e.slice(t).join(".")}-ext-file-icon`)}u.push("ext-file-icon")}const i=function(e,t,n){if(!n)return null;let i=null;if(n.scheme===r.ny.data){const e=s.B6.parseMetaData(n).get(s.B6.META_DATA_MIME);e&&(i=t.getLanguageIdByMimeType(e))}else{const t=e.getModel(n);t&&(i=t.getLanguageId())}if(i&&i!==a.vH)return i;return t.guessLanguageIdByFilepathOrFirstLine(n)}(e,t,n);i&&u.push(`${p(i)}-lang-file-icon`)}}return u}function p(e){return e.replace(/[\s]/g,"/")}},5724:(e,t,n)=>{"use strict";n.d(t,{Gy:()=>l,zy:()=>d,Yf:()=>c});var i,r=n(1234),s=n(1484),o=n(3591),a=n(6359);!function(e){e.DARK="dark",e.LIGHT="light",e.HIGH_CONTRAST_DARK="hcDark",e.HIGH_CONTRAST_LIGHT="hcLight"}(i||(i={}));const l=(0,o.u1)("themeService");function c(e){return{id:e}}const h=new class{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new r.vl}onColorThemeChange(e){return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),(0,s.s)((()=>{const t=this.themingParticipants.indexOf(e);this.themingParticipants.splice(t,1)}))}getThemingParticipants(){return this.themingParticipants}};function d(e){return h.onColorThemeChange(e)}a.O.add("base.contributions.theming",h);s.jG},5845:(e,t,n)=>{"use strict";n.d(t,{buw:()=>x,b1q:()=>S,YtV:()=>N,Ubg:()=>U,IIb:()=>W,pOz:()=>B,whs:()=>O,Stt:()=>P,Hng:()=>z,yLC:()=>le,KoI:()=>oe,uMG:()=>ae,x1A:()=>d});var i=n(6782),r=n(1940),s=n(7661),o=n(1234),a=n(8748),l=n(6359),c=n(8209);const h=new class{constructor(){this._onDidChangeSchema=new o.vl,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}registerColor(e,t,n,i=!1,r){const s={id:e,description:n,defaults:t,needsTransparency:i,deprecationMessage:r};this.colorsById[e]=s;const o={type:"string",format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return r&&(o.deprecationMessage=r),i&&(o.pattern="^#(?:(?<rgba>[0-9a-fA-f]{3}[0-9a-eA-E])|(?:[0-9a-fA-F]{6}(?:(?![fF]{2})(?:[0-9a-fA-F]{2}))))?$",o.patternErrorMessage=c.kg("transparecyRequired","This color must be transparent or it will obscure content")),this.colorSchema.properties[e]={description:n,oneOf:[o,{type:"string",const:"default",description:c.kg("useDefault","Use the default color.")}]},this.colorReferenceSchema.enum.push(e),this.colorReferenceSchema.enumDescriptions.push(n),this._onDidChangeSchema.fire(),e}getColors(){return Object.keys(this.colorsById).map((e=>this.colorsById[e]))}resolveDefaultColor(e,t){const n=this.colorsById[e];if(n?.defaults){return b(null!==(i=n.defaults)&&"object"===typeof i&&"light"in i&&"dark"in i?n.defaults[t.type]:n.defaults,t)}var i}getColorSchema(){return this.colorSchema}toString(){return Object.keys(this.colorsById).sort(((e,t)=>{const n=-1===e.indexOf(".")?0:1,i=-1===t.indexOf(".")?0:1;return n!==i?n-i:e.localeCompare(t)})).map((e=>`- \`${e}\`: ${this.colorsById[e].description}`)).join("\n")}};function d(e,t,n,i,r){return h.registerColor(e,t,n,i,r)}function u(e,t){return{op:0,value:e,factor:t}}function p(e,t){return{op:1,value:e,factor:t}}function m(e,t){return{op:2,value:e,factor:t}}function f(...e){return{op:4,values:e}}function g(e,t,n,i){return{op:5,value:e,background:t,factor:n,transparency:i}}function b(e,t){if(null!==e)return"string"===typeof e?"#"===e[0]?s.Q1.fromHex(e):t.getColor(e):e instanceof s.Q1?e:"object"===typeof e?function(e,t){switch(e.op){case 0:return b(e.value,t)?.darken(e.factor);case 1:return b(e.value,t)?.lighten(e.factor);case 2:return b(e.value,t)?.transparent(e.factor);case 3:{const n=b(e.background,t);return n?b(e.value,t)?.makeOpaque(n):b(e.value,t)}case 4:for(const n of e.values){const e=b(n,t);if(e)return e}return;case 6:return b(t.defines(e.if)?e.then:e.else,t);case 5:{const n=b(e.value,t);if(!n)return;const i=b(e.background,t);return i?n.isDarkerThan(i)?s.Q1.getLighterColor(n,i,e.factor).transparent(e.transparency):s.Q1.getDarkerColor(n,i,e.factor).transparent(e.transparency):n.transparent(e.factor*e.transparency)}default:throw(0,i.xb)(e)}}(e,t):void 0}l.O.add("base.contributions.colors",h);const v="vscode://schemas/workbench-colors",y=l.O.as(a.F.JSONContribution);y.registerSchema(v,h.getColorSchema());const w=new r.uC((()=>y.notifySchemaChanged(v)),200);h.onDidChangeSchema((()=>{w.isScheduled()||w.schedule()}));const _=d("foreground",{dark:"#CCCCCC",light:"#616161",hcDark:"#FFFFFF",hcLight:"#292929"},c.kg("foreground","Overall foreground color. This color is only used if not overridden by a component.")),k=(d("disabledForeground",{dark:"#CCCCCC80",light:"#61616180",hcDark:"#A5A5A5",hcLight:"#7F7F7F"},c.kg("disabledForeground","Overall foreground for disabled elements. This color is only used if not overridden by a component.")),d("errorForeground",{dark:"#F48771",light:"#A1260D",hcDark:"#F48771",hcLight:"#B5200D"},c.kg("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),d("descriptionForeground",{light:"#717171",dark:m(_,.7),hcDark:m(_,.7),hcLight:m(_,.7)},c.kg("descriptionForeground","Foreground color for description text providing additional information, for example for a label.")),d("icon.foreground",{dark:"#C5C5C5",light:"#424242",hcDark:"#FFFFFF",hcLight:"#292929"},c.kg("iconForeground","The default color for icons in the workbench."))),C=d("focusBorder",{dark:"#007FD4",light:"#0090F1",hcDark:"#F38518",hcLight:"#006BBD"},c.kg("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),S=d("contrastBorder",{light:null,dark:null,hcDark:"#6FC3DF",hcLight:"#0F4A85"},c.kg("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),x=d("contrastActiveBorder",{light:null,dark:null,hcDark:C,hcLight:C},c.kg("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),E=(d("selection.background",null,c.kg("selectionBackground","The background color of text selections in the workbench (e.g. for input fields or text areas). Note that this does not apply to selections within the editor.")),d("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},c.kg("textLinkForeground","Foreground color for links in text.")),d("textLink.activeForeground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},c.kg("textLinkActiveForeground","Foreground color for links in text when clicked on and on mouse hover.")),d("textSeparator.foreground",{light:"#0000002e",dark:"#ffffff2e",hcDark:s.Q1.black,hcLight:"#292929"},c.kg("textSeparatorForeground","Color for text separators.")),d("textPreformat.foreground",{light:"#A31515",dark:"#D7BA7D",hcDark:"#000000",hcLight:"#FFFFFF"},c.kg("textPreformatForeground","Foreground color for preformatted text segments.")),d("textPreformat.background",{light:"#0000001A",dark:"#FFFFFF1A",hcDark:"#FFFFFF",hcLight:"#09345f"},c.kg("textPreformatBackground","Background color for preformatted text segments.")),d("textBlockQuote.background",{light:"#f2f2f2",dark:"#222222",hcDark:null,hcLight:"#F2F2F2"},c.kg("textBlockQuoteBackground","Background color for block quotes in text.")),d("textBlockQuote.border",{light:"#007acc80",dark:"#007acc80",hcDark:s.Q1.white,hcLight:"#292929"},c.kg("textBlockQuoteBorder","Border color for block quotes in text.")),d("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hcDark:s.Q1.black,hcLight:"#F2F2F2"},c.kg("textCodeBlockBackground","Background color for code blocks in text.")),d("sash.hoverBorder",C,c.kg("sashActiveBorder","Border color of active sashes.")),d("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hcDark:s.Q1.black,hcLight:"#0F4A85"},c.kg("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count."))),F=(d("badge.foreground",{dark:s.Q1.white,light:"#333",hcDark:s.Q1.white,hcLight:s.Q1.white},c.kg("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),d("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hcDark:null,hcLight:null},c.kg("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled."))),L=d("scrollbarSlider.background",{dark:s.Q1.fromHex("#797979").transparent(.4),light:s.Q1.fromHex("#646464").transparent(.4),hcDark:m(S,.6),hcLight:m(S,.4)},c.kg("scrollbarSliderBackground","Scrollbar slider background color.")),I=d("scrollbarSlider.hoverBackground",{dark:s.Q1.fromHex("#646464").transparent(.7),light:s.Q1.fromHex("#646464").transparent(.7),hcDark:m(S,.8),hcLight:m(S,.8)},c.kg("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),T=d("scrollbarSlider.activeBackground",{dark:s.Q1.fromHex("#BFBFBF").transparent(.4),light:s.Q1.fromHex("#000000").transparent(.6),hcDark:S,hcLight:S},c.kg("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),N=(d("progressBar.background",{dark:s.Q1.fromHex("#0E70C0"),light:s.Q1.fromHex("#0E70C0"),hcDark:S,hcLight:S},c.kg("progressBarBackground","Background color of the progress bar that can show for long running operations.")),d("editor.background",{light:"#ffffff",dark:"#1E1E1E",hcDark:s.Q1.black,hcLight:s.Q1.white},c.kg("editorBackground","Editor background color."))),R=(d("editor.foreground",{light:"#333333",dark:"#BBBBBB",hcDark:s.Q1.white,hcLight:_},c.kg("editorForeground","Editor default foreground color.")),d("editorStickyScroll.background",N,c.kg("editorStickyScrollBackground","Background color of sticky scroll in the editor")),d("editorStickyScrollHover.background",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:null,hcLight:s.Q1.fromHex("#0F4A85").transparent(.1)},c.kg("editorStickyScrollHoverBackground","Background color of sticky scroll on hover in the editor")),d("editorStickyScroll.border",{dark:null,light:null,hcDark:S,hcLight:S},c.kg("editorStickyScrollBorder","Border color of sticky scroll in the editor")),d("editorStickyScroll.shadow",F,c.kg("editorStickyScrollShadow"," Shadow color of sticky scroll in the editor")),d("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hcDark:"#0C141F",hcLight:s.Q1.white},c.kg("editorWidgetBackground","Background color of editor widgets, such as find/replace."))),D=d("editorWidget.foreground",_,c.kg("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),A=d("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hcDark:S,hcLight:S},c.kg("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),M=(d("editorWidget.resizeBorder",null,c.kg("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),d("editorError.background",null,c.kg("editorError.background","Background color of error text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),d("editorError.foreground",{dark:"#F14C4C",light:"#E51400",hcDark:"#F48771",hcLight:"#B5200D"},c.kg("editorError.foreground","Foreground color of error squigglies in the editor."))),O=(d("editorError.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#E47777").transparent(.8),hcLight:"#B5200D"},c.kg("errorBorder","If set, color of double underlines for errors in the editor.")),d("editorWarning.background",null,c.kg("editorWarning.background","Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0)),z=d("editorWarning.foreground",{dark:"#CCA700",light:"#BF8803",hcDark:"#FFD370",hcLight:"#895503"},c.kg("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),P=d("editorWarning.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#FFCC00").transparent(.8),hcLight:s.Q1.fromHex("#FFCC00").transparent(.8)},c.kg("warningBorder","If set, color of double underlines for warnings in the editor.")),B=(d("editorInfo.background",null,c.kg("editorInfo.background","Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),d("editorInfo.foreground",{dark:"#3794FF",light:"#1a85ff",hcDark:"#3794FF",hcLight:"#1a85ff"},c.kg("editorInfo.foreground","Foreground color of info squigglies in the editor."))),W=d("editorInfo.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#3794FF").transparent(.8),hcLight:"#292929"},c.kg("infoBorder","If set, color of double underlines for infos in the editor.")),V=(d("editorHint.foreground",{dark:s.Q1.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hcDark:null,hcLight:null},c.kg("editorHint.foreground","Foreground color of hint squigglies in the editor.")),d("editorHint.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#eeeeee").transparent(.8),hcLight:"#292929"},c.kg("hintBorder","If set, color of double underlines for hints in the editor.")),d("editorLink.activeForeground",{dark:"#4E94CE",light:s.Q1.blue,hcDark:s.Q1.cyan,hcLight:"#292929"},c.kg("activeLinkForeground","Color of active links.")),d("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hcDark:"#f3f518",hcLight:"#0F4A85"},c.kg("editorSelectionBackground","Color of the editor selection."))),U=(d("editor.selectionForeground",{light:null,dark:null,hcDark:"#000000",hcLight:s.Q1.white},c.kg("editorSelectionForeground","Color of the selected text for high contrast.")),d("editor.inactiveSelectionBackground",{light:m(V,.5),dark:m(V,.5),hcDark:m(V,.7),hcLight:m(V,.5)},c.kg("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),d("editor.selectionHighlightBackground",{light:g(V,N,.3,.6),dark:g(V,N,.3,.6),hcDark:null,hcLight:null},c.kg("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),d("editor.selectionHighlightBorder",{light:null,dark:null,hcDark:x,hcLight:x},c.kg("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),d("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hcDark:null,hcLight:null},c.kg("editorFindMatch","Color of the current search match.")),d("editor.findMatchForeground",null,c.kg("editorFindMatchForeground","Text color of the current search match.")),d("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hcDark:null,hcLight:null},c.kg("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0)),$=(d("editor.findMatchHighlightForeground",null,c.kg("findMatchHighlightForeground","Foreground color of the other search matches."),!0),d("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hcDark:null,hcLight:null},c.kg("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),d("editor.findMatchBorder",{light:null,dark:null,hcDark:x,hcLight:x},c.kg("editorFindMatchBorder","Border color of the current search match.")),d("editor.findMatchHighlightBorder",{light:null,dark:null,hcDark:x,hcLight:x},c.kg("findMatchHighlightBorder","Border color of the other search matches."))),q=(d("editor.findRangeHighlightBorder",{dark:null,light:null,hcDark:m(x,.4),hcLight:m(x,.4)},c.kg("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),d("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hcDark:"#ADD6FF26",hcLight:null},c.kg("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),d("editorHoverWidget.background",R,c.kg("hoverBackground","Background color of the editor hover."))),j=(d("editorHoverWidget.foreground",D,c.kg("hoverForeground","Foreground color of the editor hover.")),d("editorHoverWidget.border",A,c.kg("hoverBorder","Border color of the editor hover.")),d("editorHoverWidget.statusBarBackground",{dark:p(q,.2),light:u(q,.05),hcDark:R,hcLight:R},c.kg("statusBarBackground","Background color of the editor hover status bar.")),d("editorInlayHint.foreground",{dark:"#969696",light:"#969696",hcDark:s.Q1.white,hcLight:s.Q1.black},c.kg("editorInlayHintForeground","Foreground color of inline hints"))),K=d("editorInlayHint.background",{dark:m(E,.1),light:m(E,.1),hcDark:m(s.Q1.white,.1),hcLight:m(E,.1)},c.kg("editorInlayHintBackground","Background color of inline hints")),H=(d("editorInlayHint.typeForeground",j,c.kg("editorInlayHintForegroundTypes","Foreground color of inline hints for types")),d("editorInlayHint.typeBackground",K,c.kg("editorInlayHintBackgroundTypes","Background color of inline hints for types")),d("editorInlayHint.parameterForeground",j,c.kg("editorInlayHintForegroundParameter","Foreground color of inline hints for parameters")),d("editorInlayHint.parameterBackground",K,c.kg("editorInlayHintBackgroundParameter","Background color of inline hints for parameters")),d("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hcDark:"#FFCC00",hcLight:"#007ACC"},c.kg("editorLightBulbForeground","The color used for the lightbulb actions icon."))),G=(d("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},c.kg("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),d("editorLightBulbAi.foreground",H,c.kg("editorLightBulbAiForeground","The color used for the lightbulb AI icon.")),d("editor.snippetTabstopHighlightBackground",{dark:new s.Q1(new s.bU(124,124,124,.3)),light:new s.Q1(new s.bU(10,50,100,.2)),hcDark:new s.Q1(new s.bU(124,124,124,.3)),hcLight:new s.Q1(new s.bU(10,50,100,.2))},c.kg("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),d("editor.snippetTabstopHighlightBorder",null,c.kg("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),d("editor.snippetFinalTabstopHighlightBackground",null,c.kg("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),d("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new s.Q1(new s.bU(10,50,100,.5)),hcDark:"#525252",hcLight:"#292929"},c.kg("snippetFinalTabstopHighlightBorder","Highlight border color of the final tabstop of a snippet.")),new s.Q1(new s.bU(155,185,85,.2))),Q=new s.Q1(new s.bU(255,0,0,.2)),J=(d("diffEditor.insertedTextBackground",{dark:"#9ccc2c33",light:"#9ccc2c40",hcDark:null,hcLight:null},c.kg("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),d("diffEditor.removedTextBackground",{dark:"#ff000033",light:"#ff000033",hcDark:null,hcLight:null},c.kg("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),d("diffEditor.insertedLineBackground",{dark:G,light:G,hcDark:null,hcLight:null},c.kg("diffEditorInsertedLines","Background color for lines that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),d("diffEditor.removedLineBackground",{dark:Q,light:Q,hcDark:null,hcLight:null},c.kg("diffEditorRemovedLines","Background color for lines that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),d("diffEditorGutter.insertedLineBackground",null,c.kg("diffEditorInsertedLineGutter","Background color for the margin where lines got inserted.")),d("diffEditorGutter.removedLineBackground",null,c.kg("diffEditorRemovedLineGutter","Background color for the margin where lines got removed.")),d("diffEditorOverview.insertedForeground",null,c.kg("diffEditorOverviewInserted","Diff overview ruler foreground for inserted content.")),d("diffEditorOverview.removedForeground",null,c.kg("diffEditorOverviewRemoved","Diff overview ruler foreground for removed content.")),d("diffEditor.insertedTextBorder",{dark:null,light:null,hcDark:"#33ff2eff",hcLight:"#374E06"},c.kg("diffEditorInsertedOutline","Outline color for the text that got inserted.")),d("diffEditor.removedTextBorder",{dark:null,light:null,hcDark:"#FF008F",hcLight:"#AD0707"},c.kg("diffEditorRemovedOutline","Outline color for text that got removed.")),d("diffEditor.border",{dark:null,light:null,hcDark:S,hcLight:S},c.kg("diffEditorBorder","Border color between the two text editors.")),d("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hcDark:null,hcLight:null},c.kg("diffDiagonalFill","Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.")),d("diffEditor.unchangedRegionBackground","sideBar.background",c.kg("diffEditor.unchangedRegionBackground","The background color of unchanged blocks in the diff editor.")),d("diffEditor.unchangedRegionForeground","foreground",c.kg("diffEditor.unchangedRegionForeground","The foreground color of unchanged blocks in the diff editor.")),d("diffEditor.unchangedCodeBackground",{dark:"#74747429",light:"#b8b8b829",hcDark:null,hcLight:null},c.kg("diffEditor.unchangedCodeBackground","The background color of unchanged code in the diff editor.")),d("widget.shadow",{dark:m(s.Q1.black,.36),light:m(s.Q1.black,.16),hcDark:null,hcLight:null},c.kg("widgetShadow","Shadow color of widgets such as find/replace inside the editor."))),Y=(d("widget.border",{dark:null,light:null,hcDark:S,hcLight:S},c.kg("widgetBorder","Border color of widgets such as find/replace inside the editor.")),d("toolbar.hoverBackground",{dark:"#5a5d5e50",light:"#b8b8b850",hcDark:null,hcLight:null},c.kg("toolbarHoverBackground","Toolbar background when hovering over actions using the mouse"))),X=(d("toolbar.hoverOutline",{dark:null,light:null,hcDark:x,hcLight:x},c.kg("toolbarHoverOutline","Toolbar outline when hovering over actions using the mouse")),d("toolbar.activeBackground",{dark:p(Y,.1),light:u(Y,.1),hcDark:null,hcLight:null},c.kg("toolbarActiveBackground","Toolbar background when holding the mouse over actions")),d("breadcrumb.foreground",m(_,.8),c.kg("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),d("breadcrumb.background",N,c.kg("breadcrumbsBackground","Background color of breadcrumb items.")),d("breadcrumb.focusForeground",{light:u(_,.2),dark:p(_,.1),hcDark:p(_,.1),hcLight:p(_,.1)},c.kg("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),d("breadcrumb.activeSelectionForeground",{light:u(_,.2),dark:p(_,.1),hcDark:p(_,.1),hcLight:p(_,.1)},c.kg("breadcrumbsSelectedForeground","Color of selected breadcrumb items.")),d("breadcrumbPicker.background",R,c.kg("breadcrumbsSelectedBackground","Background color of breadcrumb item picker.")),s.Q1.fromHex("#40C8AE").transparent(.5)),Z=s.Q1.fromHex("#40A6FF").transparent(.5),ee=s.Q1.fromHex("#606060").transparent(.4),te=d("merge.currentHeaderBackground",{dark:X,light:X,hcDark:null,hcLight:null},c.kg("mergeCurrentHeaderBackground","Current header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),ne=(d("merge.currentContentBackground",m(te,.4),c.kg("mergeCurrentContentBackground","Current content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),d("merge.incomingHeaderBackground",{dark:Z,light:Z,hcDark:null,hcLight:null},c.kg("mergeIncomingHeaderBackground","Incoming header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0)),ie=(d("merge.incomingContentBackground",m(ne,.4),c.kg("mergeIncomingContentBackground","Incoming content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),d("merge.commonHeaderBackground",{dark:ee,light:ee,hcDark:null,hcLight:null},c.kg("mergeCommonHeaderBackground","Common ancestor header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0)),re=(d("merge.commonContentBackground",m(ie,.4),c.kg("mergeCommonContentBackground","Common ancestor content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),d("merge.border",{dark:null,light:null,hcDark:"#C3DF6F",hcLight:"#007ACC"},c.kg("mergeBorder","Border color on headers and the splitter in inline merge-conflicts."))),se=(d("editorOverviewRuler.currentContentForeground",{dark:m(te,1),light:m(te,1),hcDark:re,hcLight:re},c.kg("overviewRulerCurrentContentForeground","Current overview ruler foreground for inline merge-conflicts.")),d("editorOverviewRuler.incomingContentForeground",{dark:m(ne,1),light:m(ne,1),hcDark:re,hcLight:re},c.kg("overviewRulerIncomingContentForeground","Incoming overview ruler foreground for inline merge-conflicts.")),d("editorOverviewRuler.commonContentForeground",{dark:m(ie,1),light:m(ie,1),hcDark:re,hcLight:re},c.kg("overviewRulerCommonContentForeground","Common ancestor overview ruler foreground for inline merge-conflicts.")),d("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hcDark:"#AB5A00",hcLight:"#AB5A00"},c.kg("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0),d("editorOverviewRuler.selectionHighlightForeground","#A0A0A0CC",c.kg("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),d("problemsErrorIcon.foreground",M,c.kg("problemsErrorIconForeground","The color used for the problems error icon.")),d("problemsWarningIcon.foreground",z,c.kg("problemsWarningIconForeground","The color used for the problems warning icon.")),d("problemsInfoIcon.foreground",B,c.kg("problemsInfoIconForeground","The color used for the problems info icon.")),d("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hcDark:"#AB5A00",hcLight:"#0F4A85"},c.kg("minimapFindMatchHighlight","Minimap marker color for find matches."),!0)),oe=(d("minimap.selectionOccurrenceHighlight",{light:"#c9c9c9",dark:"#676767",hcDark:"#ffffff",hcLight:"#0F4A85"},c.kg("minimapSelectionOccurrenceHighlight","Minimap marker color for repeating editor selections."),!0),d("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hcDark:"#ffffff",hcLight:"#0F4A85"},c.kg("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),d("minimap.infoHighlight",{dark:B,light:B,hcDark:W,hcLight:W},c.kg("minimapInfo","Minimap marker color for infos."))),ae=d("minimap.warningHighlight",{dark:z,light:z,hcDark:P,hcLight:P},c.kg("overviewRuleWarning","Minimap marker color for warnings.")),le=d("minimap.errorHighlight",{dark:new s.Q1(new s.bU(255,18,18,.7)),light:new s.Q1(new s.bU(255,18,18,.7)),hcDark:new s.Q1(new s.bU(255,50,50,1)),hcLight:"#B5200D"},c.kg("minimapError","Minimap marker color for errors.")),ce=(d("minimap.background",null,c.kg("minimapBackground","Minimap background color.")),d("minimap.foregroundOpacity",s.Q1.fromHex("#000f"),c.kg("minimapForegroundOpacity",'Opacity of foreground elements rendered in the minimap. For example, "#000000c0" will render the elements with 75% opacity.')),d("minimapSlider.background",m(L,.5),c.kg("minimapSliderBackground","Minimap slider background color.")),d("minimapSlider.hoverBackground",m(I,.5),c.kg("minimapSliderHoverBackground","Minimap slider background color when hovering.")),d("minimapSlider.activeBackground",m(T,.5),c.kg("minimapSliderActiveBackground","Minimap slider background color when clicked on.")),d("charts.foreground",_,c.kg("chartsForeground","The foreground color used in charts.")),d("charts.lines",m(_,.5),c.kg("chartsLines","The color used for horizontal lines in charts.")),d("charts.red",M,c.kg("chartsRed","The red color used in chart visualizations.")),d("charts.blue",B,c.kg("chartsBlue","The blue color used in chart visualizations.")),d("charts.yellow",z,c.kg("chartsYellow","The yellow color used in chart visualizations.")),d("charts.orange",se,c.kg("chartsOrange","The orange color used in chart visualizations.")),d("charts.green",{dark:"#89D185",light:"#388A34",hcDark:"#89D185",hcLight:"#374e06"},c.kg("chartsGreen","The green color used in chart visualizations.")),d("charts.purple",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},c.kg("chartsPurple","The purple color used in chart visualizations.")),d("input.background",{dark:"#3C3C3C",light:s.Q1.white,hcDark:s.Q1.black,hcLight:s.Q1.white},c.kg("inputBoxBackground","Input box background.")),d("input.foreground",_,c.kg("inputBoxForeground","Input box foreground.")),d("input.border",{dark:null,light:null,hcDark:S,hcLight:S},c.kg("inputBoxBorder","Input box border.")),d("inputOption.activeBorder",{dark:"#007ACC",light:"#007ACC",hcDark:S,hcLight:S},c.kg("inputBoxActiveOptionBorder","Border color of activated options in input fields."))),he=d("inputOption.hoverBackground",{dark:"#5a5d5e80",light:"#b8b8b850",hcDark:null,hcLight:null},c.kg("inputOption.hoverBackground","Background color of activated options in input fields.")),de=d("inputOption.activeBackground",{dark:m(C,.4),light:m(C,.2),hcDark:s.Q1.transparent,hcLight:s.Q1.transparent},c.kg("inputOption.activeBackground","Background hover color of options in input fields.")),ue=d("inputOption.activeForeground",{dark:s.Q1.white,light:s.Q1.black,hcDark:_,hcLight:_},c.kg("inputOption.activeForeground","Foreground color of activated options in input fields.")),pe=(d("input.placeholderForeground",{light:m(_,.5),dark:m(_,.5),hcDark:m(_,.7),hcLight:m(_,.7)},c.kg("inputPlaceholderForeground","Input box foreground color for placeholder text.")),d("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hcDark:s.Q1.black,hcLight:s.Q1.white},c.kg("inputValidationInfoBackground","Input validation background color for information severity.")),d("inputValidation.infoForeground",{dark:null,light:null,hcDark:null,hcLight:_},c.kg("inputValidationInfoForeground","Input validation foreground color for information severity.")),d("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hcDark:S,hcLight:S},c.kg("inputValidationInfoBorder","Input validation border color for information severity.")),d("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hcDark:s.Q1.black,hcLight:s.Q1.white},c.kg("inputValidationWarningBackground","Input validation background color for warning severity.")),d("inputValidation.warningForeground",{dark:null,light:null,hcDark:null,hcLight:_},c.kg("inputValidationWarningForeground","Input validation foreground color for warning severity.")),d("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hcDark:S,hcLight:S},c.kg("inputValidationWarningBorder","Input validation border color for warning severity.")),d("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hcDark:s.Q1.black,hcLight:s.Q1.white},c.kg("inputValidationErrorBackground","Input validation background color for error severity.")),d("inputValidation.errorForeground",{dark:null,light:null,hcDark:null,hcLight:_},c.kg("inputValidationErrorForeground","Input validation foreground color for error severity.")),d("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hcDark:S,hcLight:S},c.kg("inputValidationErrorBorder","Input validation border color for error severity.")),d("dropdown.background",{dark:"#3C3C3C",light:s.Q1.white,hcDark:s.Q1.black,hcLight:s.Q1.white},c.kg("dropdownBackground","Dropdown background."))),me=(d("dropdown.listBackground",{dark:null,light:null,hcDark:s.Q1.black,hcLight:s.Q1.white},c.kg("dropdownListBackground","Dropdown list background.")),d("dropdown.foreground",{dark:"#F0F0F0",light:_,hcDark:s.Q1.white,hcLight:_},c.kg("dropdownForeground","Dropdown foreground."))),fe=d("dropdown.border",{dark:pe,light:"#CECECE",hcDark:S,hcLight:S},c.kg("dropdownBorder","Dropdown border.")),ge=d("button.foreground",s.Q1.white,c.kg("buttonForeground","Button foreground color.")),be=(d("button.separator",m(ge,.4),c.kg("buttonSeparator","Button separator color.")),d("button.background",{dark:"#0E639C",light:"#007ACC",hcDark:null,hcLight:"#0F4A85"},c.kg("buttonBackground","Button background color."))),ve=(d("button.hoverBackground",{dark:p(be,.2),light:u(be,.2),hcDark:be,hcLight:be},c.kg("buttonHoverBackground","Button background color when hovering.")),d("button.border",S,c.kg("buttonBorder","Button border color.")),d("button.secondaryForeground",{dark:s.Q1.white,light:s.Q1.white,hcDark:s.Q1.white,hcLight:_},c.kg("buttonSecondaryForeground","Secondary button foreground color.")),d("button.secondaryBackground",{dark:"#3A3D41",light:"#5F6A79",hcDark:null,hcLight:s.Q1.white},c.kg("buttonSecondaryBackground","Secondary button background color."))),ye=(d("button.secondaryHoverBackground",{dark:p(ve,.2),light:u(ve,.2),hcDark:null,hcLight:null},c.kg("buttonSecondaryHoverBackground","Secondary button background color when hovering.")),d("radio.activeForeground",ue,c.kg("radioActiveForeground","Foreground color of active radio option."))),we=(d("radio.activeBackground",de,c.kg("radioBackground","Background color of active radio option.")),d("radio.activeBorder",ce,c.kg("radioActiveBorder","Border color of the active radio option.")),d("radio.inactiveForeground",null,c.kg("radioInactiveForeground","Foreground color of inactive radio option.")),d("radio.inactiveBackground",null,c.kg("radioInactiveBackground","Background color of inactive radio option.")),d("radio.inactiveBorder",{light:m(ye,.2),dark:m(ye,.2),hcDark:m(ye,.4),hcLight:m(ye,.2)},c.kg("radioInactiveBorder","Border color of the inactive radio option.")),d("radio.inactiveHoverBackground",he,c.kg("radioHoverBackground","Background color of inactive active radio option when hovering.")),d("checkbox.background",pe,c.kg("checkbox.background","Background color of checkbox widget.")),d("checkbox.selectBackground",R,c.kg("checkbox.select.background","Background color of checkbox widget when the element it's in is selected.")),d("checkbox.foreground",me,c.kg("checkbox.foreground","Foreground color of checkbox widget.")),d("checkbox.border",fe,c.kg("checkbox.border","Border color of checkbox widget.")),d("checkbox.selectBorder",k,c.kg("checkbox.select.border","Border color of checkbox widget when the element it's in is selected.")),d("keybindingLabel.background",{dark:new s.Q1(new s.bU(128,128,128,.17)),light:new s.Q1(new s.bU(221,221,221,.4)),hcDark:s.Q1.transparent,hcLight:s.Q1.transparent},c.kg("keybindingLabelBackground","Keybinding label background color. The keybinding label is used to represent a keyboard shortcut.")),d("keybindingLabel.foreground",{dark:s.Q1.fromHex("#CCCCCC"),light:s.Q1.fromHex("#555555"),hcDark:s.Q1.white,hcLight:_},c.kg("keybindingLabelForeground","Keybinding label foreground color. The keybinding label is used to represent a keyboard shortcut.")),d("keybindingLabel.border",{dark:new s.Q1(new s.bU(51,51,51,.6)),light:new s.Q1(new s.bU(204,204,204,.4)),hcDark:new s.Q1(new s.bU(111,195,223)),hcLight:S},c.kg("keybindingLabelBorder","Keybinding label border color. The keybinding label is used to represent a keyboard shortcut.")),d("keybindingLabel.bottomBorder",{dark:new s.Q1(new s.bU(68,68,68,.6)),light:new s.Q1(new s.bU(187,187,187,.4)),hcDark:new s.Q1(new s.bU(111,195,223)),hcLight:_},c.kg("keybindingLabelBottomBorder","Keybinding label border bottom color. The keybinding label is used to represent a keyboard shortcut.")),d("list.focusBackground",null,c.kg("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),d("list.focusForeground",null,c.kg("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),d("list.focusOutline",{dark:C,light:C,hcDark:x,hcLight:x},c.kg("listFocusOutline","List/Tree outline color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),d("list.focusAndSelectionOutline",null,c.kg("listFocusAndSelectionOutline","List/Tree outline color for the focused item when the list/tree is active and selected. An active list/tree has keyboard focus, an inactive does not.")),d("list.activeSelectionBackground",{dark:"#04395E",light:"#0060C0",hcDark:null,hcLight:s.Q1.fromHex("#0F4A85").transparent(.1)},c.kg("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not."))),_e=d("list.activeSelectionForeground",{dark:s.Q1.white,light:s.Q1.white,hcDark:null,hcLight:null},c.kg("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),ke=d("list.activeSelectionIconForeground",null,c.kg("listActiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Ce=(d("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hcDark:null,hcLight:s.Q1.fromHex("#0F4A85").transparent(.1)},c.kg("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),d("list.inactiveSelectionForeground",null,c.kg("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),d("list.inactiveSelectionIconForeground",null,c.kg("listInactiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),d("list.inactiveFocusBackground",null,c.kg("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),d("list.inactiveFocusOutline",null,c.kg("listInactiveFocusOutline","List/Tree outline color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),d("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:s.Q1.white.transparent(.1),hcLight:s.Q1.fromHex("#0F4A85").transparent(.1)},c.kg("listHoverBackground","List/Tree background when hovering over items using the mouse.")),d("list.hoverForeground",null,c.kg("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),d("list.dropBackground",{dark:"#062F4A",light:"#D6EBFF",hcDark:null,hcLight:null},c.kg("listDropBackground","List/Tree drag and drop background when moving items over other items when using the mouse.")),d("list.dropBetweenBackground",{dark:k,light:k,hcDark:null,hcLight:null},c.kg("listDropBetweenBackground","List/Tree drag and drop border color when moving items between items when using the mouse.")),d("list.highlightForeground",{dark:"#2AAAFF",light:"#0066BF",hcDark:C,hcLight:C},c.kg("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")));d("list.focusHighlightForeground",{dark:Ce,light:(Se=we,xe=Ce,Ee="#BBE7FF",{op:6,if:Se,then:xe,else:Ee}),hcDark:Ce,hcLight:Ce},c.kg("listFocusHighlightForeground","List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree."));var Se,xe,Ee;d("list.invalidItemForeground",{dark:"#B89500",light:"#B89500",hcDark:"#B89500",hcLight:"#B5200D"},c.kg("invalidItemForeground","List/Tree foreground color for invalid items, for example an unresolved root in explorer.")),d("list.errorForeground",{dark:"#F88070",light:"#B01011",hcDark:null,hcLight:null},c.kg("listErrorForeground","Foreground color of list items containing errors.")),d("list.warningForeground",{dark:"#CCA700",light:"#855F00",hcDark:null,hcLight:null},c.kg("listWarningForeground","Foreground color of list items containing warnings.")),d("listFilterWidget.background",{light:u(R,0),dark:p(R,0),hcDark:R,hcLight:R},c.kg("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),d("listFilterWidget.outline",{dark:s.Q1.transparent,light:s.Q1.transparent,hcDark:"#f38518",hcLight:"#007ACC"},c.kg("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),d("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hcDark:S,hcLight:S},c.kg("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),d("listFilterWidget.shadow",J,c.kg("listFilterWidgetShadow","Shadow color of the type filter widget in lists and trees.")),d("list.filterMatchBackground",{dark:U,light:U,hcDark:null,hcLight:null},c.kg("listFilterMatchHighlight","Background color of the filtered match.")),d("list.filterMatchBorder",{dark:$,light:$,hcDark:S,hcLight:x},c.kg("listFilterMatchHighlightBorder","Border color of the filtered match.")),d("list.deemphasizedForeground",{dark:"#8C8C8C",light:"#8E8E90",hcDark:"#A7A8A9",hcLight:"#666666"},c.kg("listDeemphasizedForeground","List/Tree foreground color for items that are deemphasized."));const Fe=d("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hcDark:"#a9a9a9",hcLight:"#a5a5a5"},c.kg("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),Le=(d("tree.inactiveIndentGuidesStroke",m(Fe,.4),c.kg("treeInactiveIndentGuidesStroke","Tree stroke color for the indentation guides that are not active.")),d("tree.tableColumnsBorder",{dark:"#CCCCCC20",light:"#61616120",hcDark:null,hcLight:null},c.kg("tableColumnsBorder","Table border color between columns.")),d("tree.tableOddRowsBackground",{dark:m(_,.04),light:m(_,.04),hcDark:null,hcLight:null},c.kg("tableOddRowsBackgroundColor","Background color for odd table rows.")),d("editorActionList.background",R,c.kg("editorActionListBackground","Action List background color.")),d("editorActionList.foreground",D,c.kg("editorActionListForeground","Action List foreground color.")),d("editorActionList.focusForeground",_e,c.kg("editorActionListFocusForeground","Action List foreground color for the focused item.")),d("editorActionList.focusBackground",we,c.kg("editorActionListFocusBackground","Action List background color for the focused item.")),d("menu.border",{dark:null,light:null,hcDark:S,hcLight:S},c.kg("menuBorder","Border color of menus.")),d("menu.foreground",me,c.kg("menuForeground","Foreground color of menu items.")),d("menu.background",pe,c.kg("menuBackground","Background color of menu items.")),d("menu.selectionForeground",_e,c.kg("menuSelectionForeground","Foreground color of the selected menu item in menus.")),d("menu.selectionBackground",we,c.kg("menuSelectionBackground","Background color of the selected menu item in menus.")),d("menu.selectionBorder",{dark:null,light:null,hcDark:x,hcLight:x},c.kg("menuSelectionBorder","Border color of the selected menu item in menus.")),d("menu.separatorBackground",{dark:"#606060",light:"#D4D4D4",hcDark:S,hcLight:S},c.kg("menuSeparatorBackground","Color of a separator menu item in menus.")),d("quickInput.background",R,c.kg("pickerBackground","Quick picker background color. The quick picker widget is the container for pickers like the command palette.")),d("quickInput.foreground",D,c.kg("pickerForeground","Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")),d("quickInputTitle.background",{dark:new s.Q1(new s.bU(255,255,255,.105)),light:new s.Q1(new s.bU(0,0,0,.06)),hcDark:"#000000",hcLight:s.Q1.white},c.kg("pickerTitleBackground","Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")),d("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hcDark:s.Q1.white,hcLight:"#0F4A85"},c.kg("pickerGroupForeground","Quick picker color for grouping labels.")),d("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hcDark:s.Q1.white,hcLight:"#0F4A85"},c.kg("pickerGroupBorder","Quick picker color for grouping borders.")),d("quickInput.list.focusBackground",null,"",void 0,c.kg("quickInput.list.focusBackground deprecation","Please use quickInputList.focusBackground instead")));d("quickInputList.focusForeground",_e,c.kg("quickInput.listFocusForeground","Quick picker foreground color for the focused item.")),d("quickInputList.focusIconForeground",ke,c.kg("quickInput.listFocusIconForeground","Quick picker icon foreground color for the focused item.")),d("quickInputList.focusBackground",{dark:f(Le,we),light:f(Le,we),hcDark:null,hcLight:null},c.kg("quickInput.listFocusBackground","Quick picker background color for the focused item.")),d("search.resultsInfoForeground",{light:_,dark:m(_,.65),hcDark:_,hcLight:_},c.kg("search.resultsInfoForeground","Color of the text in the search viewlet's completion message.")),d("searchEditor.findMatchBackground",{light:m(U,.66),dark:m(U,.66),hcDark:U,hcLight:U},c.kg("searchEditor.queryMatch","Color of the Search Editor query matches.")),d("searchEditor.findMatchBorder",{light:m($,.66),dark:m($,.66),hcDark:$,hcLight:$},c.kg("searchEditor.editorFindMatchBorder","Border color of the Search Editor query matches."))},5890:(e,t,n)=>{var i={"./simpleWorker":1929,"./simpleWorker.js":1929,"monaco-editor/esm/vs/base/common/worker/simpleWorker":1929,"monaco-editor/esm/vs/base/common/worker/simpleWorker.js":1929};function r(e){return Promise.resolve().then((()=>{if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n(i[e])}))}r.keys=()=>Object.keys(i),r.id=5890,e.exports=r},5982:(e,t,n)=>{"use strict";n.d(t,{x:()=>i});class i{static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return 0!==(1024&e)}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(16744448&e)>>>15}static getBackground(e){return(4278190080&e)>>>24}static getClassNameFromMetadata(e){let t="mtk"+this.getForeground(e);const n=this.getFontStyle(e);return 1&n&&(t+=" mtki"),2&n&&(t+=" mtkb"),4&n&&(t+=" mtku"),8&n&&(t+=" mtks"),t}static getInlineStyleFromMetadata(e,t){const n=this.getForeground(e),i=this.getFontStyle(e);let r=`color: ${t[n]};`;1&i&&(r+="font-style: italic;"),2&i&&(r+="font-weight: bold;");let s="";return 4&i&&(s+=" underline"),8&i&&(s+=" line-through"),s&&(r+=`text-decoration:${s};`),r}static getPresentationFromMetadata(e){const t=this.getForeground(e),n=this.getFontStyle(e);return{foreground:t,italic:Boolean(1&n),bold:Boolean(2&n),underline:Boolean(4&n),strikethrough:Boolean(8&n)}}}},6041:(e,t,n)=>{"use strict";function i(e,t){const n=function(e,t,n=e.length-1){for(let i=n;i>=0;i--){if(t(e[i]))return i}return-1}(e,t);if(-1!==n)return e[n]}function r(e,t){const n=s(e,t);return-1===n?void 0:e[n]}function s(e,t,n=0,i=e.length){let r=n,s=i;for(;r<s;){const n=Math.floor((r+s)/2);t(e[n])?r=n+1:s=n}return r-1}function o(e,t){const n=a(e,t);return n===e.length?void 0:e[n]}function a(e,t,n=0,i=e.length){let r=n,s=i;for(;r<s;){const n=Math.floor((r+s)/2);t(e[n])?s=n:r=n+1}return r}n.d(t,{Uk:()=>i,XP:()=>o,hw:()=>a,iM:()=>s,lx:()=>r,vJ:()=>l});class l{static{this.assertInvariants=!1}constructor(e){this._array=e,this._findLastMonotonousLastIdx=0}findLastMonotonous(e){if(l.assertInvariants){if(this._prevFindLastPredicate)for(const t of this._array)if(this._prevFindLastPredicate(t)&&!e(t))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.");this._prevFindLastPredicate=e}const t=s(this._array,e,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=t+1,-1===t?void 0:this._array[t]}}},6223:(e,t,n)=>{"use strict";n.d(t,{A5:()=>i,Dg:()=>l,F4:()=>u,L5:()=>d,Wo:()=>h,X2:()=>a,ZS:()=>r,nk:()=>c,vd:()=>p});var i,r,s,o=n(146);!function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(i||(i={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(r||(r={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(s||(s={}));class a{get originalIndentSize(){return this._indentSizeIsTabSize?"tabSize":this.indentSize}constructor(e){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,0|e.tabSize),"tabSize"===e.indentSize?(this.indentSize=this.tabSize,this._indentSizeIsTabSize=!0):(this.indentSize=Math.max(1,0|e.indentSize),this._indentSizeIsTabSize=!1),this.insertSpaces=Boolean(e.insertSpaces),this.defaultEOL=0|e.defaultEOL,this.trimAutoWhitespace=Boolean(e.trimAutoWhitespace),this.bracketPairColorizationOptions=e.bracketPairColorizationOptions}equals(e){return this.tabSize===e.tabSize&&this._indentSizeIsTabSize===e._indentSizeIsTabSize&&this.indentSize===e.indentSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace&&(0,o.aI)(this.bracketPairColorizationOptions,e.bracketPairColorizationOptions)}createChangeEvent(e){return{tabSize:this.tabSize!==e.tabSize,indentSize:this.indentSize!==e.indentSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}}}class l{constructor(e,t){this._findMatchBrand=void 0,this.range=e,this.matches=t}}function c(e){return e&&"function"===typeof e.read}class h{constructor(e,t,n,i,r,s){this.identifier=e,this.range=t,this.text=n,this.forceMoveMarkers=i,this.isAutoWhitespaceEdit=r,this._isTracked=s}}class d{constructor(e,t,n){this.regex=e,this.wordSeparators=t,this.simpleSearch=n}}class u{constructor(e,t,n){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=n}}function p(e){return!e.isTooLargeForSyncing()&&!e.isForSimpleWidget}},6359:(e,t,n)=>{"use strict";n.d(t,{O:()=>s});var i=n(6782),r=n(631);const s=new class{constructor(){this.data=new Map}add(e,t){i.ok(r.Kg(e)),i.ok(r.Gv(t)),i.ok(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)}as(e){return this.data.get(e)||null}}},6456:(e,t,n)=>{"use strict";n.d(t,{ny:()=>i,v$:()=>c,zl:()=>u});var i,r=n(4383),s=n(8067),o=n(1508),a=n(9400),l=n(8821);function c(e,t){return a.r.isUri(e)?(0,o.Q_)(e.scheme,t):(0,o.ns)(e,t+":")}!function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command",e.vscodeRemote="vscode-remote",e.vscodeRemoteResource="vscode-remote-resource",e.vscodeManagedRemoteResource="vscode-managed-remote-resource",e.vscodeUserData="vscode-userdata",e.vscodeCustomEditor="vscode-custom-editor",e.vscodeNotebookCell="vscode-notebook-cell",e.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",e.vscodeNotebookCellMetadataDiff="vscode-notebook-cell-metadata-diff",e.vscodeNotebookCellOutput="vscode-notebook-cell-output",e.vscodeNotebookCellOutputDiff="vscode-notebook-cell-output-diff",e.vscodeNotebookMetadata="vscode-notebook-metadata",e.vscodeInteractiveInput="vscode-interactive-input",e.vscodeSettings="vscode-settings",e.vscodeWorkspaceTrust="vscode-workspace-trust",e.vscodeTerminal="vscode-terminal",e.vscodeChatCodeBlock="vscode-chat-code-block",e.vscodeChatCodeCompareBlock="vscode-chat-code-compare-block",e.vscodeChatSesssion="vscode-chat-editor",e.webviewPanel="webview-panel",e.vscodeWebview="vscode-webview",e.extension="extension",e.vscodeFileResource="vscode-file",e.tmp="tmp",e.vsls="vsls",e.vscodeSourceControl="vscode-scm",e.commentsInput="comment",e.codeSetting="code-setting",e.outputChannel="output"}(i||(i={}));const h=new class{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(e){this._preferredWebSchema=e}get _remoteResourcesPath(){return l.SA.join(this._serverRootPath,i.vscodeRemoteResource)}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(h){return r.dz(h),e}const t=e.authority;let n=this._hosts[t];n&&-1!==n.indexOf(":")&&-1===n.indexOf("[")&&(n=`[${n}]`);const o=this._ports[t],l=this._connectionTokens[t];let c=`path=${encodeURIComponent(e.path)}`;return"string"===typeof l&&(c+=`&tkn=${encodeURIComponent(l)}`),a.r.from({scheme:s.HZ?this._preferredWebSchema:i.vscodeRemoteResource,authority:`${n}:${o}`,path:this._remoteResourcesPath,query:c})}};class d{static{this.FALLBACK_AUTHORITY="vscode-app"}asBrowserUri(e){const t=this.toUri(e);return this.uriToBrowserUri(t)}uriToBrowserUri(e){return e.scheme===i.vscodeRemote?h.rewrite(e):e.scheme!==i.file||!s.ib&&s.lg!==`${i.vscodeFileResource}://${d.FALLBACK_AUTHORITY}`?e:e.with({scheme:i.vscodeFileResource,authority:e.authority||d.FALLBACK_AUTHORITY,query:null,fragment:null})}toUri(e,t){if(a.r.isUri(e))return e;if(globalThis._VSCODE_FILE_ROOT){const t=globalThis._VSCODE_FILE_ROOT;if(/^\w[\w\d+.-]*:\/\//.test(t))return a.r.joinPath(a.r.parse(t,!0),e);const n=l.fj(t,e);return a.r.file(n)}return a.r.parse(t.toUrl(e))}}const u=new d;var p;!function(e){const t=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);e.CoopAndCoep=Object.freeze(t.get("3"));const n="vscode-coi";e.getHeadersFromQuery=function(e){let i;"string"===typeof e?i=new URL(e).searchParams:e instanceof URL?i=e.searchParams:a.r.isUri(e)&&(i=new URL(e.toString(!0)).searchParams);const r=i?.get(n);if(r)return t.get(r)},e.addSearchParam=function(e,t,i){if(!globalThis.crossOriginIsolated)return;const r=t&&i?"3":i?"2":"1";e instanceof URLSearchParams?e.set(n,r):e[n]=r}}(p||(p={}))},6486:(e,t,n)=>{"use strict";n.d(t,{Io:()=>o,Ld:()=>s,Th:()=>l});var i=n(2522),r=n(8925);const s=function(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const n of"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?")e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}();function o(e){let t=s;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}const a=new r.w;function l(e,t,n,r,s){if(t=o(t),s||(s=i.f.first(a)),n.length>s.maxLen){let i=e-s.maxLen/2;return i<0?i=0:r+=i,l(e,t,n=n.substring(i,e+s.maxLen/2),r,s)}const h=Date.now(),d=e-1-r;let u=-1,p=null;for(let i=1;!(Date.now()-h>=s.timeBudget);i++){const e=d-s.windowSize*i;t.lastIndex=Math.max(0,e);const r=c(t,n,d,u);if(!r&&p)break;if(p=r,e<=0)break;u=e}if(p){const e={word:p[0],startColumn:r+1+p.index,endColumn:r+1+p.index+p[0].length};return t.lastIndex=0,e}return null}function c(e,t,n,i){let r;for(;r=e.exec(t);){const t=r.index||0;if(t<=n&&e.lastIndex>=n)return r;if(i>0&&t>i)return null}return null}a.unshift({maxLen:1e3,windowSize:15,timeBudget:150})},6571:(e,t,n)=>{"use strict";n.d(t,{M:()=>a,S:()=>l});var i=n(4383),r=n(4444),s=n(6677),o=n(6041);class a{static fromRangeInclusive(e){return new a(e.startLineNumber,e.endLineNumber+1)}static joinMany(e){if(0===e.length)return[];let t=new l(e[0].slice());for(let n=1;n<e.length;n++)t=t.getUnion(new l(e[n].slice()));return t.ranges}static join(e){if(0===e.length)throw new i.D7("lineRanges cannot be empty");let t=e[0].startLineNumber,n=e[0].endLineNumberExclusive;for(let i=1;i<e.length;i++)t=Math.min(t,e[i].startLineNumber),n=Math.max(n,e[i].endLineNumberExclusive);return new a(t,n)}static ofLength(e,t){return new a(e,e+t)}static deserialize(e){return new a(e[0],e[1])}constructor(e,t){if(e>t)throw new i.D7(`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(e){return new a(this.startLineNumber+e,this.endLineNumberExclusive+e)}deltaLength(e){return new a(this.startLineNumber,this.endLineNumberExclusive+e)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(e){return new a(Math.min(this.startLineNumber,e.startLineNumber),Math.max(this.endLineNumberExclusive,e.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(e){const t=Math.max(this.startLineNumber,e.startLineNumber),n=Math.min(this.endLineNumberExclusive,e.endLineNumberExclusive);if(t<=n)return new a(t,n)}intersectsStrict(e){return this.startLineNumber<e.endLineNumberExclusive&&e.startLineNumber<this.endLineNumberExclusive}overlapOrTouch(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 s.Q(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new s.Q(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(e){const 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]}includes(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}toOffsetRange(){return new r.L(this.startLineNumber-1,this.endLineNumberExclusive-1)}}class l{constructor(e=[]){this._normalizedRanges=e}get ranges(){return this._normalizedRanges}addRange(e){if(0===e.length)return;const t=(0,o.hw)(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),n=(0,o.iM)(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===n)this._normalizedRanges.splice(t,0,e);else if(t===n-1){const n=this._normalizedRanges[t];this._normalizedRanges[t]=n.join(e)}else{const i=this._normalizedRanges[t].join(this._normalizedRanges[n-1]).join(e);this._normalizedRanges.splice(t,n-t,i)}}contains(e){const t=(0,o.lx)(this._normalizedRanges,(t=>t.startLineNumber<=e));return!!t&&t.endLineNumberExclusive>e}intersects(e){const t=(0,o.lx)(this._normalizedRanges,(t=>t.startLineNumber<e.endLineNumberExclusive));return!!t&&t.endLineNumberExclusive>e.startLineNumber}getUnion(e){if(0===this._normalizedRanges.length)return e;if(0===e._normalizedRanges.length)return this;const t=[];let n=0,i=0,r=null;for(;n<this._normalizedRanges.length||i<e._normalizedRanges.length;){let s=null;if(n<this._normalizedRanges.length&&i<e._normalizedRanges.length){const t=this._normalizedRanges[n],r=e._normalizedRanges[i];t.startLineNumber<r.startLineNumber?(s=t,n++):(s=r,i++)}else n<this._normalizedRanges.length?(s=this._normalizedRanges[n],n++):(s=e._normalizedRanges[i],i++);null===r?r=s:r.endLineNumberExclusive>=s.startLineNumber?r=new a(r.startLineNumber,Math.max(r.endLineNumberExclusive,s.endLineNumberExclusive)):(t.push(r),r=s)}return null!==r&&t.push(r),new l(t)}subtractFrom(e){const t=(0,o.hw)(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),n=(0,o.iM)(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===n)return new l([e]);const i=[];let r=e.startLineNumber;for(let s=t;s<n;s++){const e=this._normalizedRanges[s];e.startLineNumber>r&&i.push(new a(r,e.startLineNumber)),r=e.endLineNumberExclusive}return r<e.endLineNumberExclusive&&i.push(new a(r,e.endLineNumberExclusive)),new l(i)}toString(){return this._normalizedRanges.map((e=>e.toString())).join(", ")}getIntersection(e){const t=[];let n=0,i=0;for(;n<this._normalizedRanges.length&&i<e._normalizedRanges.length;){const r=this._normalizedRanges[n],s=e._normalizedRanges[i],o=r.intersect(s);o&&!o.isEmpty&&t.push(o),r.endLineNumberExclusive<s.endLineNumberExclusive?n++:i++}return new l(t)}getWithDelta(e){return new l(this._normalizedRanges.map((t=>t.delta(e))))}}},6677:(e,t,n)=>{"use strict";n.d(t,{Q:()=>r});var i=n(3069);class r{constructor(e,t,n,i){e>n||e===n&&t>i?(this.startLineNumber=n,this.startColumn=i,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=i)}isEmpty(){return r.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return r.containsPosition(this,e)}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(e){return r.containsRange(this,e)}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(e){return r.strictContainsRange(this,e)}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(e){return r.plusRange(this,e)}static plusRange(e,t){let n,i,s,o;return t.startLineNumber<e.startLineNumber?(n=t.startLineNumber,i=t.startColumn):t.startLineNumber===e.startLineNumber?(n=t.startLineNumber,i=Math.min(t.startColumn,e.startColumn)):(n=e.startLineNumber,i=e.startColumn),t.endLineNumber>e.endLineNumber?(s=t.endLineNumber,o=t.endColumn):t.endLineNumber===e.endLineNumber?(s=t.endLineNumber,o=Math.max(t.endColumn,e.endColumn)):(s=e.endLineNumber,o=e.endColumn),new r(n,i,s,o)}intersectRanges(e){return r.intersectRanges(this,e)}static intersectRanges(e,t){let n=e.startLineNumber,i=e.startColumn,s=e.endLineNumber,o=e.endColumn;const a=t.startLineNumber,l=t.startColumn,c=t.endLineNumber,h=t.endColumn;return n<a?(n=a,i=l):n===a&&(i=Math.max(i,l)),s>c?(s=c,o=h):s===c&&(o=Math.min(o,h)),n>s||n===s&&i>o?null:new r(n,i,s,o)}equalsRange(e){return r.equalsRange(this,e)}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 r.getEndPosition(this)}static getEndPosition(e){return new i.y(e.endLineNumber,e.endColumn)}getStartPosition(){return r.getStartPosition(this)}static getStartPosition(e){return new i.y(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new r(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new r(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return r.collapseToStart(this)}static collapseToStart(e){return new r(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return r.collapseToEnd(this)}static collapseToEnd(e){return new r(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new r(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,t=e){return new r(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new r(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"===typeof e.startLineNumber&&"number"===typeof e.startColumn&&"number"===typeof e.endLineNumber&&"number"===typeof e.endColumn}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 compareRangesUsingStarts(e,t){if(e&&t){const n=0|e.startLineNumber,i=0|t.startLineNumber;if(n===i){const n=0|e.startColumn,i=0|t.startColumn;if(n===i){const n=0|e.endLineNumber,i=0|t.endLineNumber;if(n===i){return(0|e.endColumn)-(0|t.endColumn)}return n-i}return n-i}return n-i}return(e?1:0)-(t?1:0)}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}}},6691:(e,t,n)=>{"use strict";n.r(t),n.d(t,{findSectionHeaders:()=>s});const i=new RegExp("\\bMARK:\\s*(.*)$","d"),r=/^-+|-+$/g;function s(e,t){let n=[];if(t.findRegionSectionHeaders&&t.foldingRules?.markers){const i=function(e,t){const n=[],i=e.getLineCount();for(let r=1;r<=i;r++){const i=e.getLineContent(r),s=i.match(t.foldingRules.markers.start);if(s){const e={startLineNumber:r,startColumn:s[0].length+1,endLineNumber:r,endColumn:i.length+1};if(e.endColumn>e.startColumn){const t={range:e,...a(i.substring(s[0].length)),shouldBeInComments:!1};(t.text||t.hasSeparatorLine)&&n.push(t)}}}return n}(e,t);n=n.concat(i)}if(t.findMarkSectionHeaders){const t=function(e){const t=[],n=e.getLineCount();for(let i=1;i<=n;i++){o(e.getLineContent(i),i,t)}return t}(e);n=n.concat(t)}return n}function o(e,t,n){i.lastIndex=0;const r=i.exec(e);if(r){const e={startLineNumber:t,startColumn:r.indices[1][0]+1,endLineNumber:t,endColumn:r.indices[1][1]+1};if(e.endColumn>e.startColumn){const t={range:e,...a(r[1]),shouldBeInComments:!0};(t.text||t.hasSeparatorLine)&&n.push(t)}}}function a(e){const t=(e=e.trim()).startsWith("-");return{text:e=e.replace(r,""),hasSeparatorLine:t}}},6723:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DraggedTreeItemsIdentifier:()=>r,TreeViewsDnDService:()=>i});class i{constructor(){this._dragOperations=new Map}removeDragOperationTransfer(e){if(e&&this._dragOperations.has(e)){const t=this._dragOperations.get(e);return this._dragOperations.delete(e),t}}}class r{constructor(e){this.identifier=e}}},6782:(e,t,n)=>{"use strict";n.d(t,{Ft:()=>o,Xo:()=>a,ok:()=>r,xb:()=>s});var i=n(4383);function r(e,t){if(!e)throw new Error(t?`Assertion failed (${t})`:"Assertion Failed")}function s(e,t="Unreachable"){throw new Error(t)}function o(e){e()||(e(),(0,i.dz)(new i.D7("Assertion Failed")))}function a(e,t){let n=0;for(;n<e.length-1;){if(!t(e[n],e[n+1]))return!1;n++}return!0}},6942:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ILanguageFeaturesService:()=>i});const i=(0,n(3591).u1)("ILanguageFeaturesService")},6958:(e,t,n)=>{"use strict";n.d(t,{YW:()=>T,qg:()=>N});var i=n(1940),r=n(9326),s=n(4320),o=n(8821),a=n(8067),l=n(1508);const c="**",h="/",d="[/\\\\]",u="[^/\\\\]",p=/\//g;function m(e,t){switch(e){case 0:return"";case 1:return`${u}*?`;default:return`(?:${d}|${u}+${d}${t?`|${d}${u}+`:""})*?`}}function f(e,t){if(!e)return[];const n=[];let i=!1,r=!1,s="";for(const o of e){switch(o){case t:if(!i&&!r){n.push(s),s="";continue}break;case"{":i=!0;break;case"}":i=!1;break;case"[":r=!0;break;case"]":r=!1}s+=o}return s&&n.push(s),n}function g(e){if(!e)return"";let t="";const n=f(e,h);if(n.every((e=>e===c)))t=".*";else{let e=!1;n.forEach(((i,r)=>{if(i===c){if(e)return;t+=m(2,r===n.length-1)}else{let e=!1,s="",o=!1,a="";for(const n of i)if("}"!==n&&e)s+=n;else if(!o||"]"===n&&a)switch(n){case"{":e=!0;continue;case"[":o=!0;continue;case"}":{const n=`(?:${f(s,",").map((e=>g(e))).join("|")})`;t+=n,e=!1,s="";break}case"]":t+="["+a+"]",o=!1,a="";break;case"?":t+=u;continue;case"*":t+=m(1);continue;default:t+=(0,l.bm)(n)}else{let e;e="-"===n?n:"^"!==n&&"!"!==n||a?n===h?"":(0,l.bm)(n):"^",a+=e}r<n.length-1&&(n[r+1]!==c||r+2<n.length)&&(t+=d)}e=i===c}))}return t}const b=/^\*\*\/\*\.[\w\.-]+$/,v=/^\*\*\/([\w\.-]+)\/?$/,y=/^{\*\*\/\*?[\w\.-]+\/?(,\*\*\/\*?[\w\.-]+\/?)*}$/,w=/^{\*\*\/\*?[\w\.-]+(\/(\*\*)?)?(,\*\*\/\*?[\w\.-]+(\/(\*\*)?)?)*}$/,_=/^\*\*((\/[\w\.-]+)+)\/?$/,k=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,C=new s.qK(1e4),S=function(){return!1},x=function(){return null};function E(e,t){if(!e)return x;let n;n="string"!==typeof e?e.pattern:e,n=n.trim();const i=`${n}_${!!t.trimForExclusions}`;let r,s=C.get(i);return s||(s=b.test(n)?function(e,t){return function(n,i){return"string"===typeof n&&n.endsWith(e)?t:null}}(n.substr(4),n):(r=v.exec(L(n,t)))?function(e,t){const n=`/${e}`,i=`\\${e}`,r=function(r,s){return"string"!==typeof r?null:s?s===e?t:null:r===e||r.endsWith(n)||r.endsWith(i)?t:null},s=[e];return r.basenames=s,r.patterns=[t],r.allBasenames=s,r}(r[1],n):(t.trimForExclusions?w:y).test(n)?function(e,t){const n=R(e.slice(1,-1).split(",").map((e=>E(e,t))).filter((e=>e!==x)),e),i=n.length;if(!i)return x;if(1===i)return n[0];const r=function(t,i){for(let r=0,s=n.length;r<s;r++)if(n[r](t,i))return e;return null},s=n.find((e=>!!e.allBasenames));s&&(r.allBasenames=s.allBasenames);const o=n.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);o.length&&(r.allPaths=o);return r}(n,t):(r=_.exec(L(n,t)))?I(r[1].substr(1),n,!0):(r=k.exec(L(n,t)))?I(r[1],n,!1):function(e){try{const t=new RegExp(`^${g(e)}$`);return function(n){return t.lastIndex=0,"string"===typeof n&&t.test(n)?e:null}}catch(t){return x}}(n),C.set(i,s)),F(s,e)}function F(e,t){if("string"===typeof t)return e;const n=function(n,i){return(0,r._1)(n,t.base,!a.j9)?e((0,l.NB)(n.substr(t.base.length),o.Vn),i):null};return n.allBasenames=e.allBasenames,n.allPaths=e.allPaths,n.basenames=e.basenames,n.patterns=e.patterns,n}function L(e,t){return t.trimForExclusions&&e.endsWith("/**")?e.substr(0,e.length-2):e}function I(e,t,n){const i=o.Vn===o.SA.sep,r=i?e:e.replace(p,o.Vn),s=o.Vn+r,a=o.SA.sep+e;let l;return l=n?function(n,o){return"string"!==typeof n||n!==r&&!n.endsWith(s)&&(i||n!==e&&!n.endsWith(a))?null:t}:function(n,s){return"string"!==typeof n||n!==r&&(i||n!==e)?null:t},l.allPaths=[(n?"*/":"./")+e],l}function T(e,t,n){return!(!e||"string"!==typeof t)&&N(e)(t,void 0,n)}function N(e,t={}){if(!e)return S;if("string"===typeof e||function(e){const t=e;if(!t)return!1;return"string"===typeof t.base&&"string"===typeof t.pattern}(e)){const n=E(e,t);if(n===x)return S;const i=function(e,t){return!!n(e,t)};return n.allBasenames&&(i.allBasenames=n.allBasenames),n.allPaths&&(i.allPaths=n.allPaths),i}return function(e,t){const n=R(Object.getOwnPropertyNames(e).map((n=>function(e,t,n){if(!1===t)return x;const r=E(e,n);if(r===x)return x;if("boolean"===typeof t)return r;if(t){const n=t.when;if("string"===typeof n){const t=(t,s,o,a)=>{if(!a||!r(t,s))return null;const l=a(n.replace("$(basename)",(()=>o)));return(0,i.Qg)(l)?l.then((t=>t?e:null)):l?e:null};return t.requiresSiblings=!0,t}}return r}(n,e[n],t))).filter((e=>e!==x))),r=n.length;if(!r)return x;if(!n.some((e=>!!e.requiresSiblings))){if(1===r)return n[0];const e=function(e,t){let r;for(let s=0,o=n.length;s<o;s++){const o=n[s](e,t);if("string"===typeof o)return o;(0,i.Qg)(o)&&(r||(r=[]),r.push(o))}return r?(async()=>{for(const e of r){const t=await e;if("string"===typeof t)return t}return null})():null},t=n.find((e=>!!e.allBasenames));t&&(e.allBasenames=t.allBasenames);const s=n.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);return s.length&&(e.allPaths=s),e}const s=function(e,t,r){let s,a;for(let l=0,c=n.length;l<c;l++){const c=n[l];c.requiresSiblings&&r&&(t||(t=(0,o.P8)(e)),s||(s=t.substr(0,t.length-(0,o.LC)(e).length)));const h=c(e,t,s,r);if("string"===typeof h)return h;(0,i.Qg)(h)&&(a||(a=[]),a.push(h))}return a?(async()=>{for(const e of a){const t=await e;if("string"===typeof t)return t}return null})():null},a=n.find((e=>!!e.allBasenames));a&&(s.allBasenames=a.allBasenames);const l=n.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);l.length&&(s.allPaths=l);return s}(e,t)}function R(e,t){const n=e.filter((e=>!!e.basenames));if(n.length<2)return e;const i=n.reduce(((e,t)=>{const n=t.basenames;return n?e.concat(n):e}),[]);let r;if(t){r=[];for(let e=0,n=i.length;e<n;e++)r.push(t)}else r=n.reduce(((e,t)=>{const n=t.patterns;return n?e.concat(n):e}),[]);const s=function(e,t){if("string"!==typeof e)return null;if(!t){let n;for(n=e.length;n>0;n--){const t=e.charCodeAt(n-1);if(47===t||92===t)break}t=e.substr(n)}const n=i.indexOf(t);return-1!==n?r[n]:null};s.basenames=i,s.patterns=r,s.allBasenames=i;const o=e.filter((e=>!e.basenames));return o.push(s),o}},7004:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SemanticTokensStylingService:()=>u});var i=n(1484),r=n(154),s=n(5724),o=n(3511),a=n(5538),l=n(4243),c=n(4621),h=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},d=function(e,t){return function(n,i){t(n,i,e)}};let u=class extends i.jG{constructor(e,t,n){super(),this._themeService=e,this._logService=t,this._languageService=n,this._caches=new WeakMap,this._register(this._themeService.onDidColorThemeChange((()=>{this._caches=new WeakMap})))}getStyling(e){return this._caches.has(e)||this._caches.set(e,new a.SemanticTokensProviderStyling(e.getLegend(),this._themeService,this._languageService,this._logService)),this._caches.get(e)}};u=h([d(0,s.Gy),d(1,o.rr),d(2,r.L)],u),(0,c.v)(l.ISemanticTokensStylingService,u,1)},7119:(e,t,n)=>{"use strict";n.d(t,{AQ:()=>b,aZ:()=>g,l5:()=>_,lQ:()=>y,s7:()=>S,sH:()=>k,sN:()=>v,ss:()=>w,yI:()=>f,zp:()=>C});var i=n(8209),r=n(7661),s=n(5845),o=n(5724);const a=(0,s.x1A)("editor.lineHighlightBackground",null,i.kg("lineHighlight","Background color for the highlight of line at the cursor position.")),l=((0,s.x1A)("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hcDark:"#f38518",hcLight:s.b1q},i.kg("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),(0,s.x1A)("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hcDark:null,hcLight:null},i.kg("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1A)("editor.rangeHighlightBorder",{dark:null,light:null,hcDark:s.buw,hcLight:s.buw},i.kg("rangeHighlightBorder","Background color of the border around highlighted ranges.")),(0,s.x1A)("editor.symbolHighlightBackground",{dark:s.Ubg,light:s.Ubg,hcDark:null,hcLight:null},i.kg("symbolHighlight","Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1A)("editor.symbolHighlightBorder",{dark:null,light:null,hcDark:s.buw,hcLight:s.buw},i.kg("symbolHighlightBorder","Background color of the border around highlighted symbols.")),(0,s.x1A)("editorCursor.foreground",{dark:"#AEAFAD",light:r.Q1.black,hcDark:r.Q1.white,hcLight:"#0F4A85"},i.kg("caret","Color of the editor cursor."))),c=(0,s.x1A)("editorCursor.background",null,i.kg("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),h=((0,s.x1A)("editorMultiCursor.primary.foreground",l,i.kg("editorMultiCursorPrimaryForeground","Color of the primary editor cursor when multiple cursors are present.")),(0,s.x1A)("editorMultiCursor.primary.background",c,i.kg("editorMultiCursorPrimaryBackground","The background color of the primary editor cursor when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),(0,s.x1A)("editorMultiCursor.secondary.foreground",l,i.kg("editorMultiCursorSecondaryForeground","Color of secondary editor cursors when multiple cursors are present.")),(0,s.x1A)("editorMultiCursor.secondary.background",c,i.kg("editorMultiCursorSecondaryBackground","The background color of secondary editor cursors when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),(0,s.x1A)("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hcDark:"#e3e4e229",hcLight:"#CCCCCC"},i.kg("editorWhitespaces","Color of whitespace characters in the editor."))),d=((0,s.x1A)("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hcDark:r.Q1.white,hcLight:"#292929"},i.kg("editorLineNumbers","Color of editor line numbers.")),(0,s.x1A)("editorIndentGuide.background",h,i.kg("editorIndentGuides","Color of the editor indentation guides."),!1,i.kg("deprecatedEditorIndentGuides","'editorIndentGuide.background' is deprecated. Use 'editorIndentGuide.background1' instead."))),u=(0,s.x1A)("editorIndentGuide.activeBackground",h,i.kg("editorActiveIndentGuide","Color of the active editor indentation guides."),!1,i.kg("deprecatedEditorActiveIndentGuide","'editorIndentGuide.activeBackground' is deprecated. Use 'editorIndentGuide.activeBackground1' instead.")),p=((0,s.x1A)("editorIndentGuide.background1",d,i.kg("editorIndentGuides1","Color of the editor indentation guides (1).")),(0,s.x1A)("editorIndentGuide.background2","#00000000",i.kg("editorIndentGuides2","Color of the editor indentation guides (2).")),(0,s.x1A)("editorIndentGuide.background3","#00000000",i.kg("editorIndentGuides3","Color of the editor indentation guides (3).")),(0,s.x1A)("editorIndentGuide.background4","#00000000",i.kg("editorIndentGuides4","Color of the editor indentation guides (4).")),(0,s.x1A)("editorIndentGuide.background5","#00000000",i.kg("editorIndentGuides5","Color of the editor indentation guides (5).")),(0,s.x1A)("editorIndentGuide.background6","#00000000",i.kg("editorIndentGuides6","Color of the editor indentation guides (6).")),(0,s.x1A)("editorIndentGuide.activeBackground1",u,i.kg("editorActiveIndentGuide1","Color of the active editor indentation guides (1).")),(0,s.x1A)("editorIndentGuide.activeBackground2","#00000000",i.kg("editorActiveIndentGuide2","Color of the active editor indentation guides (2).")),(0,s.x1A)("editorIndentGuide.activeBackground3","#00000000",i.kg("editorActiveIndentGuide3","Color of the active editor indentation guides (3).")),(0,s.x1A)("editorIndentGuide.activeBackground4","#00000000",i.kg("editorActiveIndentGuide4","Color of the active editor indentation guides (4).")),(0,s.x1A)("editorIndentGuide.activeBackground5","#00000000",i.kg("editorActiveIndentGuide5","Color of the active editor indentation guides (5).")),(0,s.x1A)("editorIndentGuide.activeBackground6","#00000000",i.kg("editorActiveIndentGuide6","Color of the active editor indentation guides (6).")),(0,s.x1A)("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hcDark:s.buw,hcLight:s.buw},i.kg("editorActiveLineNumber","Color of editor active line number"),!1,i.kg("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead."))),m=((0,s.x1A)("editorLineNumber.activeForeground",p,i.kg("editorActiveLineNumber","Color of editor active line number")),(0,s.x1A)("editorLineNumber.dimmedForeground",null,i.kg("editorDimmedLineNumber","Color of the final editor line when editor.renderFinalNewline is set to dimmed.")),(0,s.x1A)("editorRuler.foreground",{dark:"#5A5A5A",light:r.Q1.lightgrey,hcDark:r.Q1.white,hcLight:"#292929"},i.kg("editorRuler","Color of the editor rulers.")),(0,s.x1A)("editorCodeLens.foreground",{dark:"#999999",light:"#919191",hcDark:"#999999",hcLight:"#292929"},i.kg("editorCodeLensForeground","Foreground color of editor CodeLens")),(0,s.x1A)("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hcDark:"#0064001a",hcLight:"#0000"},i.kg("editorBracketMatchBackground","Background color behind matching brackets")),(0,s.x1A)("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hcDark:s.b1q,hcLight:s.b1q},i.kg("editorBracketMatchBorder","Color for matching brackets boxes")),(0,s.x1A)("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hcDark:"#7f7f7f4d",hcLight:"#666666"},i.kg("editorOverviewRulerBorder","Color of the overview ruler border.")),(0,s.x1A)("editorOverviewRuler.background",null,i.kg("editorOverviewRulerBackground","Background color of the editor overview ruler.")),(0,s.x1A)("editorGutter.background",s.YtV,i.kg("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),(0,s.x1A)("editorUnnecessaryCode.border",{dark:null,light:null,hcDark:r.Q1.fromHex("#fff").transparent(.8),hcLight:s.b1q},i.kg("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),(0,s.x1A)("editorUnnecessaryCode.opacity",{dark:r.Q1.fromHex("#000a"),light:r.Q1.fromHex("#0007"),hcDark:null,hcLight:null},i.kg("unnecessaryCodeOpacity","Opacity of unnecessary (unused) source code in the editor. For example, \"#000000c0\" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out.")),(0,s.x1A)("editorGhostText.border",{dark:null,light:null,hcDark:r.Q1.fromHex("#fff").transparent(.8),hcLight:r.Q1.fromHex("#292929").transparent(.8)},i.kg("editorGhostTextBorder","Border color of ghost text in the editor.")),(0,s.x1A)("editorGhostText.foreground",{dark:r.Q1.fromHex("#ffffff56"),light:r.Q1.fromHex("#0007"),hcDark:null,hcLight:null},i.kg("editorGhostTextForeground","Foreground color of the ghost text in the editor.")),(0,s.x1A)("editorGhostText.background",null,i.kg("editorGhostTextBackground","Background color of the ghost text in the editor.")),new r.Q1(new r.bU(0,122,204,.6))),f=((0,s.x1A)("editorOverviewRuler.rangeHighlightForeground",m,i.kg("overviewRulerRangeHighlight","Overview ruler marker color for range highlights. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1A)("editorOverviewRuler.errorForeground",{dark:new r.Q1(new r.bU(255,18,18,.7)),light:new r.Q1(new r.bU(255,18,18,.7)),hcDark:new r.Q1(new r.bU(255,50,50,1)),hcLight:"#B5200D"},i.kg("overviewRuleError","Overview ruler marker color for errors."))),g=(0,s.x1A)("editorOverviewRuler.warningForeground",{dark:s.Hng,light:s.Hng,hcDark:s.Stt,hcLight:s.Stt},i.kg("overviewRuleWarning","Overview ruler marker color for warnings.")),b=(0,s.x1A)("editorOverviewRuler.infoForeground",{dark:s.pOz,light:s.pOz,hcDark:s.IIb,hcLight:s.IIb},i.kg("overviewRuleInfo","Overview ruler marker color for infos.")),v=(0,s.x1A)("editorBracketHighlight.foreground1",{dark:"#FFD700",light:"#0431FAFF",hcDark:"#FFD700",hcLight:"#0431FAFF"},i.kg("editorBracketHighlightForeground1","Foreground color of brackets (1). Requires enabling bracket pair colorization.")),y=(0,s.x1A)("editorBracketHighlight.foreground2",{dark:"#DA70D6",light:"#319331FF",hcDark:"#DA70D6",hcLight:"#319331FF"},i.kg("editorBracketHighlightForeground2","Foreground color of brackets (2). Requires enabling bracket pair colorization.")),w=(0,s.x1A)("editorBracketHighlight.foreground3",{dark:"#179FFF",light:"#7B3814FF",hcDark:"#87CEFA",hcLight:"#7B3814FF"},i.kg("editorBracketHighlightForeground3","Foreground color of brackets (3). Requires enabling bracket pair colorization.")),_=(0,s.x1A)("editorBracketHighlight.foreground4","#00000000",i.kg("editorBracketHighlightForeground4","Foreground color of brackets (4). Requires enabling bracket pair colorization.")),k=(0,s.x1A)("editorBracketHighlight.foreground5","#00000000",i.kg("editorBracketHighlightForeground5","Foreground color of brackets (5). Requires enabling bracket pair colorization.")),C=(0,s.x1A)("editorBracketHighlight.foreground6","#00000000",i.kg("editorBracketHighlightForeground6","Foreground color of brackets (6). Requires enabling bracket pair colorization.")),S=(0,s.x1A)("editorBracketHighlight.unexpectedBracket.foreground",{dark:new r.Q1(new r.bU(255,18,18,.8)),light:new r.Q1(new r.bU(255,18,18,.8)),hcDark:"new Color(new RGBA(255, 50, 50, 1))",hcLight:"#B5200D"},i.kg("editorBracketHighlightUnexpectedBracketForeground","Foreground color of unexpected brackets."));(0,s.x1A)("editorBracketPairGuide.background1","#00000000",i.kg("editorBracketPairGuide.background1","Background color of inactive bracket pair guides (1). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background2","#00000000",i.kg("editorBracketPairGuide.background2","Background color of inactive bracket pair guides (2). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background3","#00000000",i.kg("editorBracketPairGuide.background3","Background color of inactive bracket pair guides (3). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background4","#00000000",i.kg("editorBracketPairGuide.background4","Background color of inactive bracket pair guides (4). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background5","#00000000",i.kg("editorBracketPairGuide.background5","Background color of inactive bracket pair guides (5). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background6","#00000000",i.kg("editorBracketPairGuide.background6","Background color of inactive bracket pair guides (6). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground1","#00000000",i.kg("editorBracketPairGuide.activeBackground1","Background color of active bracket pair guides (1). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground2","#00000000",i.kg("editorBracketPairGuide.activeBackground2","Background color of active bracket pair guides (2). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground3","#00000000",i.kg("editorBracketPairGuide.activeBackground3","Background color of active bracket pair guides (3). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground4","#00000000",i.kg("editorBracketPairGuide.activeBackground4","Background color of active bracket pair guides (4). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground5","#00000000",i.kg("editorBracketPairGuide.activeBackground5","Background color of active bracket pair guides (5). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground6","#00000000",i.kg("editorBracketPairGuide.activeBackground6","Background color of active bracket pair guides (6). Requires enabling bracket pair guides.")),(0,s.x1A)("editorUnicodeHighlight.border",s.Hng,i.kg("editorUnicodeHighlight.border","Border color used to highlight unicode characters.")),(0,s.x1A)("editorUnicodeHighlight.background",s.whs,i.kg("editorUnicodeHighlight.background","Background color used to highlight unicode characters."));(0,o.zy)(((e,t)=>{const n=e.getColor(s.YtV),i=e.getColor(a),r=i&&!i.isTransparent()?i:n;r&&t.addRule(`.monaco-editor .inputarea.ime-input { background-color: ${r}; }`)}))},7550:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IMarkerDecorationsService:()=>i});const i=(0,n(3591).u1)("markerDecorationsService")},7596:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LanguageService:()=>R});var i=n(1234),r=n(1484),s=n(9259),o=n(9861),a=n(2083),l=n(3941);const c=(e,t)=>e===t;new WeakMap;class h{constructor(e,t,n){this.owner=e,this.debugNameSource=t,this.referenceFn=n}getDebugName(e){return function(e,t){const n=u.get(e);if(n)return n;const i=function(e,t){const n=u.get(e);if(n)return n;const i=t.owner?function(e){const t=m.get(e);if(t)return t;const n=function(e){const t=e.constructor;if(t)return t.name;return"Object"}(e);let i=p.get(n)??0;i++,p.set(n,i);const r=1===i?n:`${n}#${i}`;return m.set(e,r),r}(t.owner)+".":"";let r;const s=t.debugNameSource;if(void 0!==s){if("function"!==typeof s)return i+s;if(r=s(),void 0!==r)return i+r}const o=t.referenceFn;if(void 0!==o&&(r=f(o),void 0!==r))return i+r;if(void 0!==t.owner){const n=function(e,t){for(const n in e)if(e[n]===t)return n;return}(t.owner,e);if(void 0!==n)return i+n}return}(e,t);if(i){let t=d.get(i)??0;t++,d.set(i,t);const n=1===t?i:`${i}#${t}`;return u.set(e,n),n}return}(e,this)}}const d=new Map,u=new WeakMap;const p=new Map,m=new WeakMap;function f(e){const t=e.toString(),n=/\/\*\*\s*@description\s*([^*]*)\*\//.exec(t),i=n?n[1]:void 0;return i?.trim()}let g,b,v,y;function w(){return g}class _{get TChange(){return null}reportChanges(){this.get()}read(e){return e?e.readObservable(this):this.get()}map(e,t){const n=void 0===t?void 0:e,i=void 0===t?e:t;return y({owner:n,debugName:()=>{const e=f(i);if(void 0!==e)return e;const t=/^\s*\(?\s*([a-zA-Z_$][a-zA-Z_$0-9]*)\s*\)?\s*=>\s*\1(?:\??)\.([a-zA-Z_$][a-zA-Z_$0-9]*)\s*$/.exec(i.toString());return t?`${this.debugName}.${t[2]}`:n?void 0:`${this.debugName} (mapped)`},debugReferenceFn:i},(e=>i(this.read(e),e)))}flatten(){return y({owner:void 0,debugName:()=>`${this.debugName} (flattened)`},(e=>this.read(e).read(e)))}recomputeInitiallyAndOnChange(e,t){return e.add(b(this,t)),this}keepObserved(e){return e.add(v(this)),this}}class k extends _{constructor(){super(...arguments),this.observers=new Set}addObserver(e){const t=this.observers.size;this.observers.add(e),0===t&&this.onFirstObserverAdded()}removeObserver(e){this.observers.delete(e)&&0===this.observers.size&&this.onLastObserverRemoved()}onFirstObserverAdded(){}onLastObserverRemoved(){}}function C(e,t){const n=new S(e,t);try{e(n)}finally{n.finish()}}class S{constructor(e,t){this._fn=e,this._getDebugName=t,this.updatingObservers=[],w()?.handleBeginTransaction(this)}getDebugName(){return this._getDebugName?this._getDebugName():f(this._fn)}updateObserver(e,t){this.updatingObservers.push({observer:e,observable:t}),e.beginUpdate(t)}finish(){const e=this.updatingObservers;for(let t=0;t<e.length;t++){const{observer:n,observable:i}=e[t];n.endUpdate(i)}this.updatingObservers=null,w()?.handleEndTransaction()}}var x=n(6782);!function(e){y=e}((function(e,t){return new E(new h(e.owner,e.debugName,e.debugReferenceFn),t,void 0,void 0,e.onLastObserverRemoved,e.equalsFn??c)}));class E extends k{get debugName(){return this._debugNameData.getDebugName(this)??"(anonymous)"}constructor(e,t,n,i,r=void 0,s){super(),this._debugNameData=e,this._computeFn=t,this.createChangeSummary=n,this._handleChange=i,this._handleLastObserverRemoved=r,this._equalityComparator=s,this.state=0,this.value=void 0,this.updateCount=0,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=void 0,this.changeSummary=this.createChangeSummary?.(),w()?.handleDerivedCreated(this)}onLastObserverRemoved(){this.state=0,this.value=void 0;for(const e of this.dependencies)e.removeObserver(this);this.dependencies.clear(),this._handleLastObserverRemoved?.()}get(){if(0===this.observers.size){const e=this._computeFn(this,this.createChangeSummary?.());return this.onLastObserverRemoved(),e}do{if(1===this.state)for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break;1===this.state&&(this.state=3),this._recomputeIfNeeded()}while(3!==this.state);return this.value}_recomputeIfNeeded(){if(3===this.state)return;const e=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=e;const t=0!==this.state,n=this.value;this.state=3;const i=this.changeSummary;this.changeSummary=this.createChangeSummary?.();try{this.value=this._computeFn(this,i)}finally{for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}const r=t&&!this._equalityComparator(n,this.value);if(w()?.handleDerivedRecomputed(this,{oldValue:n,newValue:this.value,change:void 0,didChange:r,hadValue:t}),r)for(const s of this.observers)s.handleChange(this,void 0)}toString(){return`LazyDerived<${this.debugName}>`}beginUpdate(e){this.updateCount++;const t=1===this.updateCount;if(3===this.state&&(this.state=1,!t))for(const n of this.observers)n.handlePossibleChange(this);if(t)for(const n of this.observers)n.beginUpdate(this)}endUpdate(e){if(this.updateCount--,0===this.updateCount){const e=[...this.observers];for(const t of e)t.endUpdate(this)}(0,x.Ft)((()=>this.updateCount>=0))}handlePossibleChange(e){if(3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){this.state=1;for(const e of this.observers)e.handlePossibleChange(this)}}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){const n=!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary),i=3===this.state;if(n&&(1===this.state||i)&&(this.state=2,i))for(const e of this.observers)e.handlePossibleChange(this)}}readObservable(e){e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}addObserver(e){const t=!this.observers.has(e)&&this.updateCount>0;super.addObserver(e),t&&e.beginUpdate(this)}removeObserver(e){const t=this.observers.has(e)&&this.updateCount>0;super.removeObserver(e),t&&e.endUpdate(this)}}function F(e){return new L(new h(void 0,void 0,e),e,void 0,void 0)}class L{get debugName(){return this._debugNameData.getDebugName(this)??"(anonymous)"}constructor(e,t,n,i){this._debugNameData=e,this._runFn=t,this.createChangeSummary=n,this._handleChange=i,this.state=2,this.updateCount=0,this.disposed=!1,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=this.createChangeSummary?.(),w()?.handleAutorunCreated(this),this._runIfNeeded(),(0,r.Ay)(this)}dispose(){this.disposed=!0;for(const e of this.dependencies)e.removeObserver(this);this.dependencies.clear(),(0,r.VD)(this)}_runIfNeeded(){if(3===this.state)return;const e=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=e,this.state=3;const t=this.disposed;try{if(!t){w()?.handleAutorunTriggered(this);const e=this.changeSummary;this.changeSummary=this.createChangeSummary?.(),this._runFn(this,e)}}finally{t||w()?.handleAutorunFinished(this);for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}}toString(){return`Autorun<${this.debugName}>`}beginUpdate(){3===this.state&&(this.state=1),this.updateCount++}endUpdate(){if(1===this.updateCount)do{if(1===this.state){this.state=3;for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break}this._runIfNeeded()}while(3!==this.state);this.updateCount--,(0,x.Ft)((()=>this.updateCount>=0))}handlePossibleChange(e){3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)&&(this.state=1)}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){(!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary))&&(this.state=2)}}readObservable(e){if(this.disposed)return e.get();e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}}!function(e){e.Observer=L}(F||(F={}));function I(...e){let t,n,i;return 3===e.length?[t,n,i]=e:[n,i]=e,new T(new h(t,void 0,i),n,i,(()=>T.globalTransaction),c)}class T extends k{constructor(e,t,n,i,r){super(),this._debugNameData=e,this.event=t,this._getValue=n,this._getTransaction=i,this._equalityComparator=r,this.hasValue=!1,this.handleEvent=e=>{const t=this._getValue(e),n=this.value,i=!this.hasValue||!this._equalityComparator(n,t);let r=!1;i&&(this.value=t,this.hasValue&&(r=!0,function(e,t,n){e?t(e):C(t,n)}(this._getTransaction(),(e=>{w()?.handleFromEventObservableTriggered(this,{oldValue:n,newValue:t,change:void 0,didChange:i,hadValue:this.hasValue});for(const t of this.observers)e.updateObserver(t,this),t.handleChange(this,void 0)}),(()=>{const e=this.getDebugName();return"Event fired"+(e?`: ${e}`:"")}))),this.hasValue=!0),r||w()?.handleFromEventObservableTriggered(this,{oldValue:n,newValue:t,change:void 0,didChange:i,hadValue:this.hasValue})}}getDebugName(){return this._debugNameData.getDebugName(this)}get debugName(){const e=this.getDebugName();return"From Event"+(e?`: ${e}`:"")}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0,this.hasValue=!1,this.value=void 0}get(){if(this.subscription)return this.hasValue||this.handleEvent(void 0),this.value;return this._getValue(void 0)}}!function(e){e.Observer=T,e.batchEventsGlobally=function(e,t){let n=!1;void 0===T.globalTransaction&&(T.globalTransaction=e,n=!0);try{t()}finally{n&&(T.globalTransaction=void 0)}}}(I||(I={}));!function(e){v=e}((function(e){const t=new N(!1,void 0);return e.addObserver(t),(0,r.s)((()=>{e.removeObserver(t)}))})),function(e){b=e}((function(e,t){const n=new N(!0,t);return e.addObserver(n),t?t(e.get()):e.reportChanges(),(0,r.s)((()=>{e.removeObserver(n)}))}));class N{constructor(e,t){this._forceRecompute=e,this._handleValue=t,this._counter=0}beginUpdate(e){this._counter++}endUpdate(e){this._counter--,0===this._counter&&this._forceRecompute&&(this._handleValue?this._handleValue(e.get()):e.reportChanges())}handlePossibleChange(e){}handleChange(e,t){}}n(4383);class R extends r.jG{static{this.instanceCount=0}constructor(e=!1){super(),this._onDidRequestBasicLanguageFeatures=this._register(new i.vl),this.onDidRequestBasicLanguageFeatures=this._onDidRequestBasicLanguageFeatures.event,this._onDidRequestRichLanguageFeatures=this._register(new i.vl),this.onDidRequestRichLanguageFeatures=this._onDidRequestRichLanguageFeatures.event,this._onDidChange=this._register(new i.vl({leakWarningThreshold:200})),this.onDidChange=this._onDidChange.event,this._requestedBasicLanguages=new Set,this._requestedRichLanguages=new Set,R.instanceCount++,this._registry=this._register(new s.LanguagesRegistry(!0,e)),this.languageIdCodec=this._registry.languageIdCodec,this._register(this._registry.onDidChange((()=>this._onDidChange.fire())))}dispose(){R.instanceCount--,super.dispose()}isRegisteredLanguageId(e){return this._registry.isRegisteredLanguageId(e)}getLanguageIdByLanguageName(e){return this._registry.getLanguageIdByLanguageName(e)}getLanguageIdByMimeType(e){return this._registry.getLanguageIdByMimeType(e)}guessLanguageIdByFilepathOrFirstLine(e,t){const n=this._registry.guessLanguageIdByFilepathOrFirstLine(e,t);return(0,o.Fy)(n,null)}createById(e){return new D(this.onDidChange,(()=>this._createAndGetLanguageIdentifier(e)))}createByFilepathOrFirstLine(e,t){return new D(this.onDidChange,(()=>{const n=this.guessLanguageIdByFilepathOrFirstLine(e,t);return this._createAndGetLanguageIdentifier(n)}))}_createAndGetLanguageIdentifier(e){return e&&this.isRegisteredLanguageId(e)||(e=l.vH),e}requestBasicLanguageFeatures(e){this._requestedBasicLanguages.has(e)||(this._requestedBasicLanguages.add(e),this._onDidRequestBasicLanguageFeatures.fire(e))}requestRichLanguageFeatures(e){this._requestedRichLanguages.has(e)||(this._requestedRichLanguages.add(e),this.requestBasicLanguageFeatures(e),a.dG.getOrCreate(e),this._onDidRequestRichLanguageFeatures.fire(e))}}class D{constructor(e,t){this._value=I(this,e,(()=>t())),this.onDidChange=i.Jh.fromObservable(this._value)}get languageId(){return this._value.get()}}},7614:(e,t,n)=>{var i={"./editorBaseApi":4272,"./editorBaseApi.js":4272,"./editorSimpleWorker":5196,"./editorSimpleWorker.js":5196,"./editorWorker":920,"./editorWorker.js":920,"./editorWorkerHost":718,"./editorWorkerHost.js":718,"./findSectionHeaders":6691,"./findSectionHeaders.js":6691,"./getIconClasses":5628,"./getIconClasses.js":5628,"./languageFeatureDebounce":8709,"./languageFeatureDebounce.js":8709,"./languageFeatures":6942,"./languageFeatures.js":6942,"./languageFeaturesService":2661,"./languageFeaturesService.js":2661,"./languageService":7596,"./languageService.js":7596,"./languagesAssociations":9908,"./languagesAssociations.js":9908,"./languagesRegistry":9259,"./languagesRegistry.js":9259,"./markerDecorations":7550,"./markerDecorations.js":7550,"./markerDecorationsService":448,"./markerDecorationsService.js":448,"./model":3750,"./model.js":3750,"./modelService":1773,"./modelService.js":1773,"./resolverService":8938,"./resolverService.js":8938,"./semanticTokensDto":8232,"./semanticTokensDto.js":8232,"./semanticTokensProviderStyling":5538,"./semanticTokensProviderStyling.js":5538,"./semanticTokensStyling":4243,"./semanticTokensStyling.js":4243,"./semanticTokensStylingService":7004,"./semanticTokensStylingService.js":7004,"./textModelSync/textModelSync.impl":796,"./textModelSync/textModelSync.impl.js":796,"./textModelSync/textModelSync.protocol":8868,"./textModelSync/textModelSync.protocol.js":8868,"./textResourceConfiguration":360,"./textResourceConfiguration.js":360,"./treeSitterParserService":4432,"./treeSitterParserService.js":4432,"./treeViewsDnd":6723,"./treeViewsDnd.js":6723,"./treeViewsDndService":9100,"./treeViewsDndService.js":9100,"./unicodeTextModelHighlighter":4855,"./unicodeTextModelHighlighter.js":4855,"monaco-editor/esm/vs/editor/common/services/editorBaseApi":4272,"monaco-editor/esm/vs/editor/common/services/editorBaseApi.js":4272,"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker":5196,"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker.js":5196,"monaco-editor/esm/vs/editor/common/services/editorWorker":920,"monaco-editor/esm/vs/editor/common/services/editorWorker.js":920,"monaco-editor/esm/vs/editor/common/services/editorWorkerHost":718,"monaco-editor/esm/vs/editor/common/services/editorWorkerHost.js":718,"monaco-editor/esm/vs/editor/common/services/findSectionHeaders":6691,"monaco-editor/esm/vs/editor/common/services/findSectionHeaders.js":6691,"monaco-editor/esm/vs/editor/common/services/getIconClasses":5628,"monaco-editor/esm/vs/editor/common/services/getIconClasses.js":5628,"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce":8709,"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce.js":8709,"monaco-editor/esm/vs/editor/common/services/languageFeatures":6942,"monaco-editor/esm/vs/editor/common/services/languageFeatures.js":6942,"monaco-editor/esm/vs/editor/common/services/languageFeaturesService":2661,"monaco-editor/esm/vs/editor/common/services/languageFeaturesService.js":2661,"monaco-editor/esm/vs/editor/common/services/languageService":7596,"monaco-editor/esm/vs/editor/common/services/languageService.js":7596,"monaco-editor/esm/vs/editor/common/services/languagesAssociations":9908,"monaco-editor/esm/vs/editor/common/services/languagesAssociations.js":9908,"monaco-editor/esm/vs/editor/common/services/languagesRegistry":9259,"monaco-editor/esm/vs/editor/common/services/languagesRegistry.js":9259,"monaco-editor/esm/vs/editor/common/services/markerDecorations":7550,"monaco-editor/esm/vs/editor/common/services/markerDecorations.js":7550,"monaco-editor/esm/vs/editor/common/services/markerDecorationsService":448,"monaco-editor/esm/vs/editor/common/services/markerDecorationsService.js":448,"monaco-editor/esm/vs/editor/common/services/model":3750,"monaco-editor/esm/vs/editor/common/services/model.js":3750,"monaco-editor/esm/vs/editor/common/services/modelService":1773,"monaco-editor/esm/vs/editor/common/services/modelService.js":1773,"monaco-editor/esm/vs/editor/common/services/resolverService":8938,"monaco-editor/esm/vs/editor/common/services/resolverService.js":8938,"monaco-editor/esm/vs/editor/common/services/semanticTokensDto":8232,"monaco-editor/esm/vs/editor/common/services/semanticTokensDto.js":8232,"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling":5538,"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling.js":5538,"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling":4243,"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling.js":4243,"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService":7004,"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService.js":7004,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl":796,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl.js":796,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol":8868,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol.js":8868,"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration":360,"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration.js":360,"monaco-editor/esm/vs/editor/common/services/treeSitterParserService":4432,"monaco-editor/esm/vs/editor/common/services/treeSitterParserService.js":4432,"monaco-editor/esm/vs/editor/common/services/treeViewsDnd":6723,"monaco-editor/esm/vs/editor/common/services/treeViewsDnd.js":6723,"monaco-editor/esm/vs/editor/common/services/treeViewsDndService":9100,"monaco-editor/esm/vs/editor/common/services/treeViewsDndService.js":9100,"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter":4855,"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter.js":4855};function r(e){var t=s(e);return n(t)}function s(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}r.keys=function(){return Object.keys(i)},r.resolve=s,e.exports=r,r.id=7614},7661:(e,t,n)=>{"use strict";function i(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}n.d(t,{Q1:()=>a,bU:()=>r,hB:()=>s});class r{constructor(e,t,n,r=1){this._rgbaBrand=void 0,this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,t)),this.b=0|Math.min(255,Math.max(0,n)),this.a=i(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}}class s{constructor(e,t,n,r){this._hslaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=i(Math.max(Math.min(1,t),0),3),this.l=i(Math.max(Math.min(1,n),0),3),this.a=i(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(e){const t=e.r/255,n=e.g/255,i=e.b/255,r=e.a,o=Math.max(t,n,i),a=Math.min(t,n,i);let l=0,c=0;const h=(a+o)/2,d=o-a;if(d>0){switch(c=Math.min(h<=.5?d/(2*h):d/(2-2*h),1),o){case t:l=(n-i)/d+(n<i?6:0);break;case n:l=(i-t)/d+2;break;case i:l=(t-n)/d+4}l*=60,l=Math.round(l)}return new s(l,c,h,r)}static _hue2rgb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}static toRGBA(e){const t=e.h/360,{s:n,l:i,a:o}=e;let a,l,c;if(0===n)a=l=c=i;else{const e=i<.5?i*(1+n):i+n-i*n,r=2*i-e;a=s._hue2rgb(r,e,t+1/3),l=s._hue2rgb(r,e,t),c=s._hue2rgb(r,e,t-1/3)}return new r(Math.round(255*a),Math.round(255*l),Math.round(255*c),o)}}class o{constructor(e,t,n,r){this._hsvaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=i(Math.max(Math.min(1,t),0),3),this.v=i(Math.max(Math.min(1,n),0),3),this.a=i(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(e){const t=e.r/255,n=e.g/255,i=e.b/255,r=Math.max(t,n,i),s=r-Math.min(t,n,i),a=0===r?0:s/r;let l;return l=0===s?0:r===t?((n-i)/s%6+6)%6:r===n?(i-t)/s+2:(t-n)/s+4,new o(Math.round(60*l),a,r,e.a)}static toRGBA(e){const{h:t,s:n,v:i,a:s}=e,o=i*n,a=o*(1-Math.abs(t/60%2-1)),l=i-o;let[c,h,d]=[0,0,0];return t<60?(c=o,h=a):t<120?(c=a,h=o):t<180?(h=o,d=a):t<240?(h=a,d=o):t<300?(c=a,d=o):t<=360&&(c=o,d=a),c=Math.round(255*(c+l)),h=Math.round(255*(h+l)),d=Math.round(255*(d+l)),new r(c,h,d,s)}}class a{static fromHex(e){return a.Format.CSS.parseHex(e)||a.red}static equals(e,t){return!e&&!t||!(!e||!t)&&e.equals(t)}get hsla(){return this._hsla?this._hsla:s.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:o.fromRGBA(this.rgba)}constructor(e){if(!e)throw new Error("Color needs a value");if(e instanceof r)this.rgba=e;else if(e instanceof s)this._hsla=e,this.rgba=s.toRGBA(e);else{if(!(e instanceof o))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=o.toRGBA(e)}}equals(e){return!!e&&r.equals(this.rgba,e.rgba)&&s.equals(this.hsla,e.hsla)&&o.equals(this.hsva,e.hsva)}getRelativeLuminance(){return i(.2126*a._relativeLuminanceForComponent(this.rgba.r)+.7152*a._relativeLuminanceForComponent(this.rgba.g)+.0722*a._relativeLuminanceForComponent(this.rgba.b),4)}static _relativeLuminanceForComponent(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}isLighter(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128}isLighterThan(e){return this.getRelativeLuminance()>e.getRelativeLuminance()}isDarkerThan(e){return this.getRelativeLuminance()<e.getRelativeLuminance()}lighten(e){return new a(new s(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*e,this.hsla.a))}darken(e){return new a(new s(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*e,this.hsla.a))}transparent(e){const{r:t,g:n,b:i,a:s}=this.rgba;return new a(new r(t,n,i,s*e))}isTransparent(){return 0===this.rgba.a}isOpaque(){return 1===this.rgba.a}opposite(){return new a(new r(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(e){if(this.isOpaque()||1!==e.rgba.a)return this;const{r:t,g:n,b:i,a:s}=this.rgba;return new a(new r(e.rgba.r-s*(e.rgba.r-t),e.rgba.g-s*(e.rgba.g-n),e.rgba.b-s*(e.rgba.b-i),1))}toString(){return this._toString||(this._toString=a.Format.CSS.format(this)),this._toString}static getLighterColor(e,t,n){if(e.isLighterThan(t))return e;n=n||.5;const i=e.getRelativeLuminance(),r=t.getRelativeLuminance();return n=n*(r-i)/r,e.lighten(n)}static getDarkerColor(e,t,n){if(e.isDarkerThan(t))return e;n=n||.5;const i=e.getRelativeLuminance();return n=n*(i-t.getRelativeLuminance())/i,e.darken(n)}static{this.white=new a(new r(255,255,255,1))}static{this.black=new a(new r(0,0,0,1))}static{this.red=new a(new r(255,0,0,1))}static{this.blue=new a(new r(0,0,255,1))}static{this.green=new a(new r(0,255,0,1))}static{this.cyan=new a(new r(0,255,255,1))}static{this.lightgrey=new a(new r(211,211,211,1))}static{this.transparent=new a(new r(0,0,0,0))}}!function(e){let t;!function(t){let n;!function(t){function n(e){const t=e.toString(16);return 2!==t.length?"0"+t:t}function i(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:case 65:return 10;case 98:case 66:return 11;case 99:case 67:return 12;case 100:case 68:return 13;case 101:case 69:return 14;case 102:case 70:return 15}return 0}t.formatRGB=function(t){return 1===t.rgba.a?`rgb(${t.rgba.r}, ${t.rgba.g}, ${t.rgba.b})`:e.Format.CSS.formatRGBA(t)},t.formatRGBA=function(e){return`rgba(${e.rgba.r}, ${e.rgba.g}, ${e.rgba.b}, ${+e.rgba.a.toFixed(2)})`},t.formatHSL=function(t){return 1===t.hsla.a?`hsl(${t.hsla.h}, ${(100*t.hsla.s).toFixed(2)}%, ${(100*t.hsla.l).toFixed(2)}%)`:e.Format.CSS.formatHSLA(t)},t.formatHSLA=function(e){return`hsla(${e.hsla.h}, ${(100*e.hsla.s).toFixed(2)}%, ${(100*e.hsla.l).toFixed(2)}%, ${e.hsla.a.toFixed(2)})`},t.formatHex=function(e){return`#${n(e.rgba.r)}${n(e.rgba.g)}${n(e.rgba.b)}`},t.formatHexA=function(t,i=!1){return i&&1===t.rgba.a?e.Format.CSS.formatHex(t):`#${n(t.rgba.r)}${n(t.rgba.g)}${n(t.rgba.b)}${n(Math.round(255*t.rgba.a))}`},t.format=function(t){return t.isOpaque()?e.Format.CSS.formatHex(t):e.Format.CSS.formatRGBA(t)},t.parseHex=function(t){const n=t.length;if(0===n)return null;if(35!==t.charCodeAt(0))return null;if(7===n){const n=16*i(t.charCodeAt(1))+i(t.charCodeAt(2)),s=16*i(t.charCodeAt(3))+i(t.charCodeAt(4)),o=16*i(t.charCodeAt(5))+i(t.charCodeAt(6));return new e(new r(n,s,o,1))}if(9===n){const n=16*i(t.charCodeAt(1))+i(t.charCodeAt(2)),s=16*i(t.charCodeAt(3))+i(t.charCodeAt(4)),o=16*i(t.charCodeAt(5))+i(t.charCodeAt(6)),a=16*i(t.charCodeAt(7))+i(t.charCodeAt(8));return new e(new r(n,s,o,a/255))}if(4===n){const n=i(t.charCodeAt(1)),s=i(t.charCodeAt(2)),o=i(t.charCodeAt(3));return new e(new r(16*n+n,16*s+s,16*o+o))}if(5===n){const n=i(t.charCodeAt(1)),s=i(t.charCodeAt(2)),o=i(t.charCodeAt(3)),a=i(t.charCodeAt(4));return new e(new r(16*n+n,16*s+s,16*o+o,(16*a+a)/255))}return null}}(n=t.CSS||(t.CSS={}))}(t=e.Format||(e.Format={}))}(a||(a={}))},7729:(e,t,n)=>{"use strict";n.d(t,{lt:()=>d,W5:()=>g,hB:()=>m,dr:()=>u,wC:()=>f});var i=n(1508),r=n(4320),s=n(534);class o extends s.V{constructor(e,t){super(0),this._segmenter=null,this._cachedLine=null,this._cachedSegments=[],this.intlSegmenterLocales=t,this.intlSegmenterLocales.length>0?this._segmenter=new Intl.Segmenter(this.intlSegmenterLocales,{granularity:"word"}):this._segmenter=null;for(let n=0,i=e.length;n<i;n++)this.set(e.charCodeAt(n),2);this.set(32,1),this.set(9,1)}findPrevIntlWordBeforeOrAtOffset(e,t){let n=null;for(const i of this._getIntlSegmenterWordsOnLine(e)){if(i.index>t)break;n=i}return n}findNextIntlWordAtOrAfterOffset(e,t){for(const n of this._getIntlSegmenterWordsOnLine(e))if(!(n.index<t))return n;return null}_getIntlSegmenterWordsOnLine(e){return this._segmenter?(this._cachedLine===e||(this._cachedLine=e,this._cachedSegments=this._filterWordSegments(this._segmenter.segment(e))),this._cachedSegments):[]}_filterWordSegments(e){const t=[];for(const n of e)this._isWordLike(n)&&t.push(n);return t}_isWordLike(e){return!!e.isWordLike}}const a=new r.qK(10);var l=n(3069),c=n(6677),h=n(6223);class d{constructor(e,t,n,i){this.searchString=e,this.isRegex=t,this.matchCase=n,this.wordSeparators=i}parseSearchRequest(){if(""===this.searchString)return null;let e;e=this.isRegex?function(e){if(!e||0===e.length)return!1;for(let t=0,n=e.length;t<n;t++){const i=e.charCodeAt(t);if(10===i)return!0;if(92===i){if(t++,t>=n)break;const i=e.charCodeAt(t);if(110===i||114===i||87===i)return!0}}return!1}(this.searchString):this.searchString.indexOf("\n")>=0;let t=null;try{t=i.OS(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0,unicode:!0})}catch(r){return null}if(!t)return null;let n=!this.isRegex&&!e;return n&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(n=this.matchCase),new h.L5(t,this.wordSeparators?function(e,t){const n=`${e}/${t.join(",")}`;let i=a.get(n);return i||(i=new o(e,t),a.set(n,i)),i}(this.wordSeparators,[]):null,n?this.searchString:null)}}function u(e,t,n){if(!n)return new h.Dg(e,null);const i=[];for(let r=0,s=t.length;r<s;r++)i[r]=t[r];return new h.Dg(e,i)}class p{constructor(e){const t=[];let n=0;for(let i=0,r=e.length;i<r;i++)10===e.charCodeAt(i)&&(t[n++]=i);this._lineFeedsOffsets=t}findLineFeedCountBeforeOffset(e){const t=this._lineFeedsOffsets;let n=0,i=t.length-1;if(-1===i)return 0;if(e<=t[0])return 0;for(;n<i;){const r=n+((i-n)/2|0);t[r]>=e?i=r-1:t[r+1]>=e?(n=r,i=r):n=r+1}return n+1}}class m{static findMatches(e,t,n,i,r){const s=t.parseSearchRequest();return s?s.regex.multiline?this._doFindMatchesMultiline(e,n,new g(s.wordSeparators,s.regex),i,r):this._doFindMatchesLineByLine(e,n,s,i,r):[]}static _getMultilineMatchRange(e,t,n,i,r,s){let o,a,l=0;if(i?(l=i.findLineFeedCountBeforeOffset(r),o=t+r+l):o=t+r,i){const e=i.findLineFeedCountBeforeOffset(r+s.length)-l;a=o+s.length+e}else a=o+s.length;const h=e.getPositionAt(o),d=e.getPositionAt(a);return new c.Q(h.lineNumber,h.column,d.lineNumber,d.column)}static _doFindMatchesMultiline(e,t,n,i,r){const s=e.getOffsetAt(t.getStartPosition()),o=e.getValueInRange(t,1),a="\r\n"===e.getEOL()?new p(o):null,l=[];let c,h=0;for(n.reset(0);c=n.next(o);)if(l[h++]=u(this._getMultilineMatchRange(e,s,o,a,c.index,c[0]),c,i),h>=r)return l;return l}static _doFindMatchesLineByLine(e,t,n,i,r){const s=[];let o=0;if(t.startLineNumber===t.endLineNumber){const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return o=this._findMatchesInLine(n,a,t.startLineNumber,t.startColumn-1,o,s,i,r),s}const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);o=this._findMatchesInLine(n,a,t.startLineNumber,t.startColumn-1,o,s,i,r);for(let l=t.startLineNumber+1;l<t.endLineNumber&&o<r;l++)o=this._findMatchesInLine(n,e.getLineContent(l),l,0,o,s,i,r);if(o<r){const a=e.getLineContent(t.endLineNumber).substring(0,t.endColumn-1);o=this._findMatchesInLine(n,a,t.endLineNumber,0,o,s,i,r)}return s}static _findMatchesInLine(e,t,n,i,r,s,o,a){const l=e.wordSeparators;if(!o&&e.simpleSearch){const o=e.simpleSearch,d=o.length,u=t.length;let p=-d;for(;-1!==(p=t.indexOf(o,p+d));)if((!l||f(l,t,u,p,d))&&(s[r++]=new h.Dg(new c.Q(n,p+1+i,n,p+1+d+i),null),r>=a))return r;return r}const d=new g(e.wordSeparators,e.regex);let p;d.reset(0);do{if(p=d.next(t),p&&(s[r++]=u(new c.Q(n,p.index+1+i,n,p.index+1+p[0].length+i),p,o),r>=a))return r}while(p);return r}static findNextMatch(e,t,n,i){const r=t.parseSearchRequest();if(!r)return null;const s=new g(r.wordSeparators,r.regex);return r.regex.multiline?this._doFindNextMatchMultiline(e,n,s,i):this._doFindNextMatchLineByLine(e,n,s,i)}static _doFindNextMatchMultiline(e,t,n,i){const r=new l.y(t.lineNumber,1),s=e.getOffsetAt(r),o=e.getLineCount(),a=e.getValueInRange(new c.Q(r.lineNumber,r.column,o,e.getLineMaxColumn(o)),1),h="\r\n"===e.getEOL()?new p(a):null;n.reset(t.column-1);const d=n.next(a);return d?u(this._getMultilineMatchRange(e,s,a,h,d.index,d[0]),d,i):1!==t.lineNumber||1!==t.column?this._doFindNextMatchMultiline(e,new l.y(1,1),n,i):null}static _doFindNextMatchLineByLine(e,t,n,i){const r=e.getLineCount(),s=t.lineNumber,o=e.getLineContent(s),a=this._findFirstMatchInLine(n,o,s,t.column,i);if(a)return a;for(let l=1;l<=r;l++){const t=(s+l-1)%r,o=e.getLineContent(t+1),a=this._findFirstMatchInLine(n,o,t+1,1,i);if(a)return a}return null}static _findFirstMatchInLine(e,t,n,i,r){e.reset(i-1);const s=e.next(t);return s?u(new c.Q(n,s.index+1,n,s.index+1+s[0].length),s,r):null}static findPreviousMatch(e,t,n,i){const r=t.parseSearchRequest();if(!r)return null;const s=new g(r.wordSeparators,r.regex);return r.regex.multiline?this._doFindPreviousMatchMultiline(e,n,s,i):this._doFindPreviousMatchLineByLine(e,n,s,i)}static _doFindPreviousMatchMultiline(e,t,n,i){const r=this._doFindMatchesMultiline(e,new c.Q(1,1,t.lineNumber,t.column),n,i,9990);if(r.length>0)return r[r.length-1];const s=e.getLineCount();return t.lineNumber!==s||t.column!==e.getLineMaxColumn(s)?this._doFindPreviousMatchMultiline(e,new l.y(s,e.getLineMaxColumn(s)),n,i):null}static _doFindPreviousMatchLineByLine(e,t,n,i){const r=e.getLineCount(),s=t.lineNumber,o=e.getLineContent(s).substring(0,t.column-1),a=this._findLastMatchInLine(n,o,s,i);if(a)return a;for(let l=1;l<=r;l++){const t=(r+s-l-1)%r,o=e.getLineContent(t+1),a=this._findLastMatchInLine(n,o,t+1,i);if(a)return a}return null}static _findLastMatchInLine(e,t,n,i){let r,s=null;for(e.reset(0);r=e.next(t);)s=u(new c.Q(n,r.index+1,n,r.index+1+r[0].length),r,i);return s}}function f(e,t,n,i,r){return function(e,t,n,i,r){if(0===i)return!0;const s=t.charCodeAt(i-1);if(0!==e.get(s))return!0;if(13===s||10===s)return!0;if(r>0){const n=t.charCodeAt(i);if(0!==e.get(n))return!0}return!1}(e,t,0,i,r)&&function(e,t,n,i,r){if(i+r===n)return!0;const s=t.charCodeAt(i+r);if(0!==e.get(s))return!0;if(13===s||10===s)return!0;if(r>0){const n=t.charCodeAt(i+r-1);if(0!==e.get(n))return!0}return!1}(e,t,n,i,r)}class g{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){const t=e.length;let n;do{if(this._prevMatchStartIndex+this._prevMatchLength===t)return null;if(n=this._searchRegex.exec(e),!n)return null;const r=n.index,s=n[0].length;if(r===this._prevMatchStartIndex&&s===this._prevMatchLength){if(0===s){i.Z5(e,t,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=r,this._prevMatchLength=s,!this._wordSeparators||f(this._wordSeparators,e,t,r,s))return n}while(n);return null}}},8067:(e,t,n)=>{"use strict";n.d(t,{H8:()=>P,HZ:()=>I,OS:()=>A,UP:()=>V,_p:()=>D,cm:()=>z,gm:()=>B,ib:()=>L,j9:()=>F,lg:()=>T,nr:()=>W,uF:()=>x,zx:()=>E});var i=n(8209);const r="en";let s,o,a=!1,l=!1,c=!1,h=!1,d=!1,u=!1,p=!1,m=!1,f=!1,g=!1,b=null,v=null,y=null;const w=globalThis;let _;"undefined"!==typeof w.vscode&&"undefined"!==typeof w.vscode.process?_=w.vscode.process:"undefined"!==typeof process&&"string"===typeof process?.versions?.node&&(_=process);const k="string"===typeof _?.versions?.electron,C=k&&"renderer"===_?.type;if("object"===typeof _){a="win32"===_.platform,l="darwin"===_.platform,c="linux"===_.platform,h=c&&!!_.env.SNAP&&!!_.env.SNAP_REVISION,p=k,f=!!_.env.CI||!!_.env.BUILD_ARTIFACTSTAGINGDIRECTORY,s=r,b=r;const e=_.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e);s=t.userLocale,v=t.osLocale,b=t.resolvedLanguage||r,y=t.languagePack?.translationsConfigFile}catch(U){}d=!0}else"object"!==typeof navigator||C?console.error("Unable to resolve platform."):(o=navigator.userAgent,a=o.indexOf("Windows")>=0,l=o.indexOf("Macintosh")>=0,m=(o.indexOf("Macintosh")>=0||o.indexOf("iPad")>=0||o.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,c=o.indexOf("Linux")>=0,g=o?.indexOf("Mobi")>=0,u=!0,b=i.i8()||r,s=navigator.language.toLowerCase(),v=s);let S=0;l?S=1:a?S=3:c&&(S=2);const x=a,E=l,F=c,L=d,I=u,T=u&&"function"===typeof w.importScripts?w.origin:void 0,N=o,R="function"===typeof w.postMessage&&!w.importScripts,D=(()=>{if(R){const e=[];w.addEventListener("message",(t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let n=0,i=e.length;n<i;n++){const i=e[n];if(i.id===t.data.vscodeScheduleAsyncWork)return e.splice(n,1),void i.callback()}}));let t=0;return n=>{const i=++t;e.push({id:i,callback:n}),w.postMessage({vscodeScheduleAsyncWork:i},"*")}}return e=>setTimeout(e)})(),A=l||m?2:a?1:3;let M=!0,O=!1;function z(){if(!O){O=!0;const e=new Uint8Array(2);e[0]=1,e[1]=2;const t=new Uint16Array(e.buffer);M=513===t[0]}return M}const P=!!(N&&N.indexOf("Chrome")>=0),B=!!(N&&N.indexOf("Firefox")>=0),W=!!(!P&&N&&N.indexOf("Safari")>=0),V=!!(N&&N.indexOf("Edg/")>=0);N&&N.indexOf("Android")},8209:(e,t,n)=>{"use strict";function i(){return globalThis._VSCODE_NLS_LANGUAGE}n.d(t,{i8:()=>i,kg:()=>o});const r="pseudo"===i()||"undefined"!==typeof document&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function s(e,t){let n;return n=0===t.length?e:e.replace(/\{(\d+)\}/g,((e,n)=>{const i=n[0],r=t[i];let s=e;return"string"===typeof r?s=r:"number"!==typeof r&&"boolean"!==typeof r&&void 0!==r&&null!==r||(s=String(r)),s})),r&&(n="\uff3b"+n.replace(/[aouei]/g,"$&$&")+"\uff3d"),n}function o(e,t,...n){return s("number"===typeof e?a(e,t):t,n)}function a(e,t){const n=globalThis._VSCODE_NLS_MESSAGES?.[e];if("string"!==typeof n){if("string"===typeof t)return t;throw new Error(`!!! NLS MISSING: ${e} !!!`)}return n}},8232:(e,t,n)=>{"use strict";n.r(t),n.d(t,{encodeSemanticTokensDto:()=>s});var i=n(1674),r=n(8067);function s(e){const t=new Uint32Array(function(e){let t=0;if(t+=2,"full"===e.type)t+=1+e.data.length;else{t+=1,t+=3*e.deltas.length;for(const n of e.deltas)n.data&&(t+=n.data.length)}return t}(e));let n=0;if(t[n++]=e.id,"full"===e.type)t[n++]=1,t[n++]=e.data.length,t.set(e.data,n),n+=e.data.length;else{t[n++]=2,t[n++]=e.deltas.length;for(const i of e.deltas)t[n++]=i.start,t[n++]=i.deleteCount,i.data?(t[n++]=i.data.length,t.set(i.data,n),n+=i.data.length):t[n++]=0}return function(e){const t=new Uint8Array(e.buffer,e.byteOffset,4*e.length);return r.cm()||function(e){for(let t=0,n=e.length;t<n;t+=4){const n=e[t+0],i=e[t+1],r=e[t+2],s=e[t+3];e[t+0]=s,e[t+1]=r,e[t+2]=i,e[t+3]=n}}(t),i.MB.wrap(t)}(t)}},8381:(e,t,n)=>{"use strict";n.d(t,{W:()=>r});const i=globalThis.performance&&"function"===typeof globalThis.performance.now;class r{static create(e){return new r(e)}constructor(e){this._now=i&&!1===e?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}}},8447:(e,t,n)=>{"use strict";n.d(t,{Qi:()=>a});var i=n(1234);const r=Object.freeze((function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}}));var s;!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||(t instanceof o||!(!t||"object"!==typeof t)&&("boolean"===typeof t.isCancellationRequested&&"function"===typeof t.onCancellationRequested))},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:i.Jh.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:r})}(s||(s={}));class o{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?r:(this._emitter||(this._emitter=new i.vl),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class a{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new o),this._token}cancel(){this._token?this._token instanceof o&&this._token.cancel():this._token=s.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof o&&this._token.dispose():this._token=s.None}}},8709:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ILanguageFeatureDebounceService:()=>f,LanguageFeatureDebounceService:()=>y});var i=n(5600),r=n(4320);function s(e,t,n){return Math.min(Math.max(e,t),n)}class o{constructor(){this._n=1,this._val=0}update(e){return this._val=this._val+(e-this._val)/this._n,this._n+=1,this._val}get value(){return this._val}}class a{constructor(e){this._n=0,this._val=0,this._values=[],this._index=0,this._sum=0,this._values=new Array(e),this._values.fill(0,0,e)}update(e){const t=this._values[this._index];return this._values[this._index]=e,this._index=(this._index+1)%this._values.length,this._sum-=t,this._sum+=e,this._n<this._values.length&&(this._n+=1),this._val=this._sum/this._n,this._val}get value(){return this._val}}var l=n(3591);const c=(0,l.u1)("environmentService");var h=n(4621),d=n(3511),u=n(6456),p=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},m=function(e,t){return function(n,i){t(n,i,e)}};const f=(0,l.u1)("ILanguageFeatureDebounceService");var g;!function(e){const t=new WeakMap;let n=0;e.of=function(e){let i=t.get(e);return void 0===i&&(i=++n,t.set(e,i)),i}}(g||(g={}));class b{constructor(e){this._default=e}get(e){return this._default}update(e,t){return this._default}default(){return this._default}}class v{constructor(e,t,n,i,s,o){this._logService=e,this._name=t,this._registry=n,this._default=i,this._min=s,this._max=o,this._cache=new r.qK(50,.7)}_key(e){return e.id+this._registry.all(e).reduce(((e,t)=>(0,i.sN)(g.of(t),e)),0)}get(e){const t=this._key(e),n=this._cache.get(t);return n?s(n.value,this._min,this._max):this.default()}update(e,t){const n=this._key(e);let i=this._cache.get(n);i||(i=new a(6),this._cache.set(n,i));const r=s(i.update(t),this._min,this._max);return(0,u.v$)(e.uri,"output")||this._logService.trace(`[DEBOUNCE: ${this._name}] for ${e.uri.toString()} is ${r}ms`),r}_overall(){const e=new o;for(const[,t]of this._cache)e.update(t.value);return e.value}default(){return s(0|this._overall()||this._default,this._min,this._max)}}let y=class{constructor(e,t){this._logService=e,this._data=new Map,this._isDev=t.isExtensionDevelopment||!t.isBuilt}for(e,t,n){const i=n?.min??50,r=n?.max??i**2,s=n?.key??void 0,o=`${g.of(e)},${i}${s?","+s:""}`;let a=this._data.get(o);return a||(this._isDev?(this._logService.debug(`[DEBOUNCE: ${t}] is disabled in developed mode`),a=new b(1.5*i)):a=new v(this._logService,t,e,0|this._overallAverage()||1.5*i,i,r),this._data.set(o,a)),a}_overallAverage(){const e=new o;for(const t of this._data.values())e.update(t.default());return e.value}};y=p([m(0,d.rr),m(1,c)],y),(0,h.v)(f,y,1)},8748:(e,t,n)=>{"use strict";n.d(t,{F:()=>s});var i=n(1234),r=n(6359);const s={JSONContribution:"base.contributions.json"};const o=new class{constructor(){this._onDidChangeSchema=new i.vl,this.schemasById={}}registerSchema(e,t){var n;this.schemasById[(n=e,n.length>0&&"#"===n.charAt(n.length-1)?n.substring(0,n.length-1):n)]=t,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}};r.O.add(s.JSONContribution,o)},8821:(e,t,n)=>{"use strict";n.d(t,{P8:()=>L,pD:()=>F,LC:()=>I,fj:()=>S,S8:()=>C,SA:()=>k,V8:()=>E,hd:()=>x,Vn:()=>T,IN:()=>w});var i=n(8067);let r;const s=globalThis.vscode;if("undefined"!==typeof s&&"undefined"!==typeof s.process){const e=s.process;r={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd:()=>e.cwd()}}else r="undefined"!==typeof process&&"string"===typeof process?.versions?.node?{get platform(){return process.platform},get arch(){return process.arch},get env(){return{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}},cwd:()=>({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}.VSCODE_CWD||process.cwd())}:{get platform(){return i.uF?"win32":i.zx?"darwin":"linux"},get arch(){},get env(){return{}},cwd:()=>"/"};const o=r.cwd,a=(r.env,r.platform),l=46,c=47,h=92,d=58;class u extends Error{constructor(e,t,n){let i;"string"===typeof t&&0===t.indexOf("not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";const r=-1!==e.indexOf(".")?"property":"argument";let s=`The "${e}" ${r} ${i} of type ${t}`;s+=". Received type "+typeof n,super(s),this.code="ERR_INVALID_ARG_TYPE"}}function p(e,t){if("string"!==typeof e)throw new u(t,"string",e)}const m="win32"===a;function f(e){return e===c||e===h}function g(e){return e===c}function b(e){return e>=65&&e<=90||e>=97&&e<=122}function v(e,t,n,i){let r="",s=0,o=-1,a=0,h=0;for(let d=0;d<=e.length;++d){if(d<e.length)h=e.charCodeAt(d);else{if(i(h))break;h=c}if(i(h)){if(o===d-1||1===a);else if(2===a){if(r.length<2||2!==s||r.charCodeAt(r.length-1)!==l||r.charCodeAt(r.length-2)!==l){if(r.length>2){const e=r.lastIndexOf(n);-1===e?(r="",s=0):(r=r.slice(0,e),s=r.length-1-r.lastIndexOf(n)),o=d,a=0;continue}if(0!==r.length){r="",s=0,o=d,a=0;continue}}t&&(r+=r.length>0?`${n}..`:"..",s=2)}else r.length>0?r+=`${n}${e.slice(o+1,d)}`:r=e.slice(o+1,d),s=d-o-1;o=d,a=0}else h===l&&-1!==a?++a:a=-1}return r}function y(e,t){!function(e,t){if(null===e||"object"!==typeof e)throw new u(t,"Object",e)}(t,"pathObject");const n=t.dir||t.root,i=t.base||`${t.name||""}${r=t.ext,r?`${"."===r[0]?"":"."}${r}`:""}`;var r;return n?n===t.root?`${n}${i}`:`${n}${e}${i}`:i}const w={resolve(...e){let t="",n="",i=!1;for(let r=e.length-1;r>=-1;r--){let s;if(r>=0){if(s=e[r],p(s,`paths[${r}]`),0===s.length)continue}else 0===t.length?s=o():(s={NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}[`=${t}`]||o(),(void 0===s||s.slice(0,2).toLowerCase()!==t.toLowerCase()&&s.charCodeAt(2)===h)&&(s=`${t}\\`));const a=s.length;let l=0,c="",u=!1;const m=s.charCodeAt(0);if(1===a)f(m)&&(l=1,u=!0);else if(f(m))if(u=!0,f(s.charCodeAt(1))){let e=2,t=e;for(;e<a&&!f(s.charCodeAt(e));)e++;if(e<a&&e!==t){const n=s.slice(t,e);for(t=e;e<a&&f(s.charCodeAt(e));)e++;if(e<a&&e!==t){for(t=e;e<a&&!f(s.charCodeAt(e));)e++;e!==a&&e===t||(c=`\\\\${n}\\${s.slice(t,e)}`,l=e)}}}else l=1;else b(m)&&s.charCodeAt(1)===d&&(c=s.slice(0,2),l=2,a>2&&f(s.charCodeAt(2))&&(u=!0,l=3));if(c.length>0)if(t.length>0){if(c.toLowerCase()!==t.toLowerCase())continue}else t=c;if(i){if(t.length>0)break}else if(n=`${s.slice(l)}\\${n}`,i=u,u&&t.length>0)break}return n=v(n,!i,"\\",f),i?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){p(e,"path");const t=e.length;if(0===t)return".";let n,i=0,r=!1;const s=e.charCodeAt(0);if(1===t)return g(s)?"\\":e;if(f(s))if(r=!0,f(e.charCodeAt(1))){let r=2,s=r;for(;r<t&&!f(e.charCodeAt(r));)r++;if(r<t&&r!==s){const o=e.slice(s,r);for(s=r;r<t&&f(e.charCodeAt(r));)r++;if(r<t&&r!==s){for(s=r;r<t&&!f(e.charCodeAt(r));)r++;if(r===t)return`\\\\${o}\\${e.slice(s)}\\`;r!==s&&(n=`\\\\${o}\\${e.slice(s,r)}`,i=r)}}}else i=1;else b(s)&&e.charCodeAt(1)===d&&(n=e.slice(0,2),i=2,t>2&&f(e.charCodeAt(2))&&(r=!0,i=3));let o=i<t?v(e.slice(i),!r,"\\",f):"";return 0!==o.length||r||(o="."),o.length>0&&f(e.charCodeAt(t-1))&&(o+="\\"),void 0===n?r?`\\${o}`:o:r?`${n}\\${o}`:`${n}${o}`},isAbsolute(e){p(e,"path");const t=e.length;if(0===t)return!1;const n=e.charCodeAt(0);return f(n)||t>2&&b(n)&&e.charCodeAt(1)===d&&f(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let t,n;for(let s=0;s<e.length;++s){const i=e[s];p(i,"path"),i.length>0&&(void 0===t?t=n=i:t+=`\\${i}`)}if(void 0===t)return".";let i=!0,r=0;if("string"===typeof n&&f(n.charCodeAt(0))){++r;const e=n.length;e>1&&f(n.charCodeAt(1))&&(++r,e>2&&(f(n.charCodeAt(2))?++r:i=!1))}if(i){for(;r<t.length&&f(t.charCodeAt(r));)r++;r>=2&&(t=`\\${t.slice(r)}`)}return w.normalize(t)},relative(e,t){if(p(e,"from"),p(t,"to"),e===t)return"";const n=w.resolve(e),i=w.resolve(t);if(n===i)return"";if((e=n.toLowerCase())===(t=i.toLowerCase()))return"";let r=0;for(;r<e.length&&e.charCodeAt(r)===h;)r++;let s=e.length;for(;s-1>r&&e.charCodeAt(s-1)===h;)s--;const o=s-r;let a=0;for(;a<t.length&&t.charCodeAt(a)===h;)a++;let l=t.length;for(;l-1>a&&t.charCodeAt(l-1)===h;)l--;const c=l-a,d=o<c?o:c;let u=-1,m=0;for(;m<d;m++){const n=e.charCodeAt(r+m);if(n!==t.charCodeAt(a+m))break;n===h&&(u=m)}if(m!==d){if(-1===u)return i}else{if(c>d){if(t.charCodeAt(a+m)===h)return i.slice(a+m+1);if(2===m)return i.slice(a+m)}o>d&&(e.charCodeAt(r+m)===h?u=m:2===m&&(u=3)),-1===u&&(u=0)}let f="";for(m=r+u+1;m<=s;++m)m!==s&&e.charCodeAt(m)!==h||(f+=0===f.length?"..":"\\..");return a+=u,f.length>0?`${f}${i.slice(a,l)}`:(i.charCodeAt(a)===h&&++a,i.slice(a,l))},toNamespacedPath(e){if("string"!==typeof e||0===e.length)return e;const t=w.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===h){if(t.charCodeAt(1)===h){const e=t.charCodeAt(2);if(63!==e&&e!==l)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(b(t.charCodeAt(0))&&t.charCodeAt(1)===d&&t.charCodeAt(2)===h)return`\\\\?\\${t}`;return e},dirname(e){p(e,"path");const t=e.length;if(0===t)return".";let n=-1,i=0;const r=e.charCodeAt(0);if(1===t)return f(r)?e:".";if(f(r)){if(n=i=1,f(e.charCodeAt(1))){let r=2,s=r;for(;r<t&&!f(e.charCodeAt(r));)r++;if(r<t&&r!==s){for(s=r;r<t&&f(e.charCodeAt(r));)r++;if(r<t&&r!==s){for(s=r;r<t&&!f(e.charCodeAt(r));)r++;if(r===t)return e;r!==s&&(n=i=r+1)}}}}else b(r)&&e.charCodeAt(1)===d&&(n=t>2&&f(e.charCodeAt(2))?3:2,i=n);let s=-1,o=!0;for(let a=t-1;a>=i;--a)if(f(e.charCodeAt(a))){if(!o){s=a;break}}else o=!1;if(-1===s){if(-1===n)return".";s=n}return e.slice(0,s)},basename(e,t){void 0!==t&&p(t,"suffix"),p(e,"path");let n,i=0,r=-1,s=!0;if(e.length>=2&&b(e.charCodeAt(0))&&e.charCodeAt(1)===d&&(i=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(n=e.length-1;n>=i;--n){const l=e.charCodeAt(n);if(f(l)){if(!s){i=n+1;break}}else-1===a&&(s=!1,a=n+1),o>=0&&(l===t.charCodeAt(o)?-1===--o&&(r=n):(o=-1,r=a))}return i===r?r=a:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=i;--n)if(f(e.charCodeAt(n))){if(!s){i=n+1;break}}else-1===r&&(s=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname(e){p(e,"path");let t=0,n=-1,i=0,r=-1,s=!0,o=0;e.length>=2&&e.charCodeAt(1)===d&&b(e.charCodeAt(0))&&(t=i=2);for(let a=e.length-1;a>=t;--a){const t=e.charCodeAt(a);if(f(t)){if(!s){i=a+1;break}}else-1===r&&(s=!1,r=a+1),t===l?-1===n?n=a:1!==o&&(o=1):-1!==n&&(o=-1)}return-1===n||-1===r||0===o||1===o&&n===r-1&&n===i+1?"":e.slice(n,r)},format:y.bind(null,"\\"),parse(e){p(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.length;let i=0,r=e.charCodeAt(0);if(1===n)return f(r)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(f(r)){if(i=1,f(e.charCodeAt(1))){let t=2,r=t;for(;t<n&&!f(e.charCodeAt(t));)t++;if(t<n&&t!==r){for(r=t;t<n&&f(e.charCodeAt(t));)t++;if(t<n&&t!==r){for(r=t;t<n&&!f(e.charCodeAt(t));)t++;t===n?i=t:t!==r&&(i=t+1)}}}}else if(b(r)&&e.charCodeAt(1)===d){if(n<=2)return t.root=t.dir=e,t;if(i=2,f(e.charCodeAt(2))){if(3===n)return t.root=t.dir=e,t;i=3}}i>0&&(t.root=e.slice(0,i));let s=-1,o=i,a=-1,c=!0,h=e.length-1,u=0;for(;h>=i;--h)if(r=e.charCodeAt(h),f(r)){if(!c){o=h+1;break}}else-1===a&&(c=!1,a=h+1),r===l?-1===s?s=h:1!==u&&(u=1):-1!==s&&(u=-1);return-1!==a&&(-1===s||0===u||1===u&&s===a-1&&s===o+1?t.base=t.name=e.slice(o,a):(t.name=e.slice(o,s),t.base=e.slice(o,a),t.ext=e.slice(s,a))),t.dir=o>0&&o!==i?e.slice(0,o-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},_=(()=>{if(m){const e=/\\/g;return()=>{const t=o().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>o()})(),k={resolve(...e){let t="",n=!1;for(let i=e.length-1;i>=-1&&!n;i--){const r=i>=0?e[i]:_();p(r,`paths[${i}]`),0!==r.length&&(t=`${r}/${t}`,n=r.charCodeAt(0)===c)}return t=v(t,!n,"/",g),n?`/${t}`:t.length>0?t:"."},normalize(e){if(p(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===c,n=e.charCodeAt(e.length-1)===c;return 0===(e=v(e,!t,"/",g)).length?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute:e=>(p(e,"path"),e.length>0&&e.charCodeAt(0)===c),join(...e){if(0===e.length)return".";let t;for(let n=0;n<e.length;++n){const i=e[n];p(i,"path"),i.length>0&&(void 0===t?t=i:t+=`/${i}`)}return void 0===t?".":k.normalize(t)},relative(e,t){if(p(e,"from"),p(t,"to"),e===t)return"";if((e=k.resolve(e))===(t=k.resolve(t)))return"";const n=e.length,i=n-1,r=t.length-1,s=i<r?i:r;let o=-1,a=0;for(;a<s;a++){const n=e.charCodeAt(1+a);if(n!==t.charCodeAt(1+a))break;n===c&&(o=a)}if(a===s)if(r>s){if(t.charCodeAt(1+a)===c)return t.slice(1+a+1);if(0===a)return t.slice(1+a)}else i>s&&(e.charCodeAt(1+a)===c?o=a:0===a&&(o=0));let l="";for(a=1+o+1;a<=n;++a)a!==n&&e.charCodeAt(a)!==c||(l+=0===l.length?"..":"/..");return`${l}${t.slice(1+o)}`},toNamespacedPath:e=>e,dirname(e){if(p(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===c;let n=-1,i=!0;for(let r=e.length-1;r>=1;--r)if(e.charCodeAt(r)===c){if(!i){n=r;break}}else i=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename(e,t){void 0!==t&&p(t,"ext"),p(e,"path");let n,i=0,r=-1,s=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(n=e.length-1;n>=0;--n){const l=e.charCodeAt(n);if(l===c){if(!s){i=n+1;break}}else-1===a&&(s=!1,a=n+1),o>=0&&(l===t.charCodeAt(o)?-1===--o&&(r=n):(o=-1,r=a))}return i===r?r=a:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===c){if(!s){i=n+1;break}}else-1===r&&(s=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname(e){p(e,"path");let t=-1,n=0,i=-1,r=!0,s=0;for(let o=e.length-1;o>=0;--o){const a=e.charCodeAt(o);if(a!==c)-1===i&&(r=!1,i=o+1),a===l?-1===t?t=o:1!==s&&(s=1):-1!==t&&(s=-1);else if(!r){n=o+1;break}}return-1===t||-1===i||0===s||1===s&&t===i-1&&t===n+1?"":e.slice(t,i)},format:y.bind(null,"/"),parse(e){p(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.charCodeAt(0)===c;let i;n?(t.root="/",i=1):i=0;let r=-1,s=0,o=-1,a=!0,h=e.length-1,d=0;for(;h>=i;--h){const t=e.charCodeAt(h);if(t!==c)-1===o&&(a=!1,o=h+1),t===l?-1===r?r=h:1!==d&&(d=1):-1!==r&&(d=-1);else if(!a){s=h+1;break}}if(-1!==o){const i=0===s&&n?1:s;-1===r||0===d||1===d&&r===o-1&&r===s+1?t.base=t.name=e.slice(i,o):(t.name=e.slice(i,r),t.base=e.slice(i,o),t.ext=e.slice(r,o))}return s>0?t.dir=e.slice(0,s-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};k.win32=w.win32=w,k.posix=w.posix=k;const C=m?w.normalize:k.normalize,S=m?w.join:k.join,x=m?w.resolve:k.resolve,E=m?w.relative:k.relative,F=m?w.dirname:k.dirname,L=m?w.basename:k.basename,I=m?w.extname:k.extname,T=m?w.sep:k.sep},8868:(e,t,n)=>{"use strict";n.r(t)},8925:(e,t,n)=>{"use strict";n.d(t,{w:()=>r});class i{static{this.Undefined=new i(void 0)}constructor(e){this.element=e,this.next=i.Undefined,this.prev=i.Undefined}}class r{constructor(){this._first=i.Undefined,this._last=i.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===i.Undefined}clear(){let e=this._first;for(;e!==i.Undefined;){const t=e.next;e.prev=i.Undefined,e.next=i.Undefined,e=t}this._first=i.Undefined,this._last=i.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new i(e);if(this._first===i.Undefined)this._first=n,this._last=n;else if(t){const e=this._last;this._last=n,n.prev=e,e.next=n}else{const 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!==i.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==i.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==i.Undefined&&e.next!==i.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===i.Undefined&&e.next===i.Undefined?(this._first=i.Undefined,this._last=i.Undefined):e.next===i.Undefined?(this._last=this._last.prev,this._last.next=i.Undefined):e.prev===i.Undefined&&(this._first=this._first.next,this._first.prev=i.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==i.Undefined;)yield e.element,e=e.next}}},8938:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITextModelService:()=>i});const i=(0,n(3591).u1)("textModelService")},9100:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITreeViewsDnDService:()=>o});var i=n(4621),r=n(3591),s=n(6723);const o=(0,r.u1)("treeViewsDndService");(0,i.v)(o,s.TreeViewsDnDService,1)},9204:(e,t,n)=>{var i={"./editorBaseApi":[4272],"./editorBaseApi.js":[4272],"./editorSimpleWorker":[5196],"./editorSimpleWorker.js":[5196],"./editorWorker":[920,792],"./editorWorker.js":[920,792],"./editorWorkerHost":[718],"./editorWorkerHost.js":[718],"./findSectionHeaders":[6691],"./findSectionHeaders.js":[6691],"./getIconClasses":[5628,792],"./getIconClasses.js":[5628,792],"./languageFeatureDebounce":[8709,792],"./languageFeatureDebounce.js":[8709,792],"./languageFeatures":[6942,792],"./languageFeatures.js":[6942,792],"./languageFeaturesService":[2661,792],"./languageFeaturesService.js":[2661,792],"./languageService":[7596,792],"./languageService.js":[7596,792],"./languagesAssociations":[9908,792],"./languagesAssociations.js":[9908,792],"./languagesRegistry":[9259,792],"./languagesRegistry.js":[9259,792],"./markerDecorations":[7550,792],"./markerDecorations.js":[7550,792],"./markerDecorationsService":[448,792],"./markerDecorationsService.js":[448,792],"./model":[3750,792],"./model.js":[3750,792],"./modelService":[1773,792],"./modelService.js":[1773,792],"./resolverService":[8938,792],"./resolverService.js":[8938,792],"./semanticTokensDto":[8232,792],"./semanticTokensDto.js":[8232,792],"./semanticTokensProviderStyling":[5538,792],"./semanticTokensProviderStyling.js":[5538,792],"./semanticTokensStyling":[4243,792],"./semanticTokensStyling.js":[4243,792],"./semanticTokensStylingService":[7004,792],"./semanticTokensStylingService.js":[7004,792],"./textModelSync/textModelSync.impl":[796],"./textModelSync/textModelSync.impl.js":[796],"./textModelSync/textModelSync.protocol":[8868,792],"./textModelSync/textModelSync.protocol.js":[8868,792],"./textResourceConfiguration":[360,792],"./textResourceConfiguration.js":[360,792],"./treeSitterParserService":[4432,792],"./treeSitterParserService.js":[4432,792],"./treeViewsDnd":[6723,792],"./treeViewsDnd.js":[6723,792],"./treeViewsDndService":[9100,792],"./treeViewsDndService.js":[9100,792],"./unicodeTextModelHighlighter":[4855],"./unicodeTextModelHighlighter.js":[4855],"monaco-editor/esm/vs/editor/common/services/editorBaseApi":[4272],"monaco-editor/esm/vs/editor/common/services/editorBaseApi.js":[4272],"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker":[5196],"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker.js":[5196],"monaco-editor/esm/vs/editor/common/services/editorWorker":[920,792],"monaco-editor/esm/vs/editor/common/services/editorWorker.js":[920,792],"monaco-editor/esm/vs/editor/common/services/editorWorkerHost":[718],"monaco-editor/esm/vs/editor/common/services/editorWorkerHost.js":[718],"monaco-editor/esm/vs/editor/common/services/findSectionHeaders":[6691],"monaco-editor/esm/vs/editor/common/services/findSectionHeaders.js":[6691],"monaco-editor/esm/vs/editor/common/services/getIconClasses":[5628,792],"monaco-editor/esm/vs/editor/common/services/getIconClasses.js":[5628,792],"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce":[8709,792],"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce.js":[8709,792],"monaco-editor/esm/vs/editor/common/services/languageFeatures":[6942,792],"monaco-editor/esm/vs/editor/common/services/languageFeatures.js":[6942,792],"monaco-editor/esm/vs/editor/common/services/languageFeaturesService":[2661,792],"monaco-editor/esm/vs/editor/common/services/languageFeaturesService.js":[2661,792],"monaco-editor/esm/vs/editor/common/services/languageService":[7596,792],"monaco-editor/esm/vs/editor/common/services/languageService.js":[7596,792],"monaco-editor/esm/vs/editor/common/services/languagesAssociations":[9908,792],"monaco-editor/esm/vs/editor/common/services/languagesAssociations.js":[9908,792],"monaco-editor/esm/vs/editor/common/services/languagesRegistry":[9259,792],"monaco-editor/esm/vs/editor/common/services/languagesRegistry.js":[9259,792],"monaco-editor/esm/vs/editor/common/services/markerDecorations":[7550,792],"monaco-editor/esm/vs/editor/common/services/markerDecorations.js":[7550,792],"monaco-editor/esm/vs/editor/common/services/markerDecorationsService":[448,792],"monaco-editor/esm/vs/editor/common/services/markerDecorationsService.js":[448,792],"monaco-editor/esm/vs/editor/common/services/model":[3750,792],"monaco-editor/esm/vs/editor/common/services/model.js":[3750,792],"monaco-editor/esm/vs/editor/common/services/modelService":[1773,792],"monaco-editor/esm/vs/editor/common/services/modelService.js":[1773,792],"monaco-editor/esm/vs/editor/common/services/resolverService":[8938,792],"monaco-editor/esm/vs/editor/common/services/resolverService.js":[8938,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensDto":[8232,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensDto.js":[8232,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling":[5538,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling.js":[5538,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling":[4243,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling.js":[4243,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService":[7004,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService.js":[7004,792],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl":[796],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl.js":[796],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol":[8868,792],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol.js":[8868,792],"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration":[360,792],"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration.js":[360,792],"monaco-editor/esm/vs/editor/common/services/treeSitterParserService":[4432,792],"monaco-editor/esm/vs/editor/common/services/treeSitterParserService.js":[4432,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDnd":[6723,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDnd.js":[6723,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDndService":[9100,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDndService.js":[9100,792],"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter":[4855],"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter.js":[4855]};function r(e){if(!n.o(i,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=i[e],r=t[0];return Promise.all(t.slice(1).map(n.e)).then((()=>n(r)))}r.keys=()=>Object.keys(i),r.id=9204,e.exports=r},9259:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LanguageIdCodec:()=>u,LanguagesRegistry:()=>p});var i=n(1234),r=n(1484),s=n(1508),o=n(9908),a=n(3941),l=n(1646),c=n(6359);const h=Object.prototype.hasOwnProperty,d="vs.editor.nullLanguage";class u{constructor(){this._languageIdToLanguage=[],this._languageToLanguageId=new Map,this._register(d,0),this._register(a.vH,1),this._nextLanguageId=2}_register(e,t){this._languageIdToLanguage[t]=e,this._languageToLanguageId.set(e,t)}register(e){if(this._languageToLanguageId.has(e))return;const t=this._nextLanguageId++;this._register(e,t)}encodeLanguageId(e){return this._languageToLanguageId.get(e)||0}decodeLanguageId(e){return this._languageIdToLanguage[e]||d}}class p extends r.jG{static{this.instanceCount=0}constructor(e=!0,t=!1){super(),this._onDidChange=this._register(new i.vl),this.onDidChange=this._onDidChange.event,p.instanceCount++,this._warnOnOverwrite=t,this.languageIdCodec=new u,this._dynamicLanguages=[],this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},e&&(this._initializeFromRegistry(),this._register(a.W6.onDidChangeLanguages((e=>{this._initializeFromRegistry()}))))}dispose(){p.instanceCount--,super.dispose()}_initializeFromRegistry(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},(0,o.clearPlatformLanguageAssociations)();const e=[].concat(a.W6.getLanguages()).concat(this._dynamicLanguages);this._registerLanguages(e)}_registerLanguages(e){for(const t of e)this._registerLanguage(t);this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach((e=>{const t=this._languages[e];t.name&&(this._nameMap[t.name]=t.identifier),t.aliases.forEach((e=>{this._lowercaseNameMap[e.toLowerCase()]=t.identifier})),t.mimetypes.forEach((e=>{this._mimeTypesMap[e]=t.identifier}))})),c.O.as(l.Fd.Configuration).registerOverrideIdentifiers(this.getRegisteredLanguageIds()),this._onDidChange.fire()}_registerLanguage(e){const t=e.id;let n;h.call(this._languages,t)?n=this._languages[t]:(this.languageIdCodec.register(t),n={identifier:t,name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[],icons:[]},this._languages[t]=n),this._mergeLanguage(n,e)}_mergeLanguage(e,t){const n=t.id;let i=null;if(Array.isArray(t.mimetypes)&&t.mimetypes.length>0&&(e.mimetypes.push(...t.mimetypes),i=t.mimetypes[0]),i||(i=`text/x-${n}`,e.mimetypes.push(i)),Array.isArray(t.extensions)){t.configuration?e.extensions=t.extensions.concat(e.extensions):e.extensions=e.extensions.concat(t.extensions);for(const e of t.extensions)(0,o.registerPlatformLanguageAssociation)({id:n,mime:i,extension:e},this._warnOnOverwrite)}if(Array.isArray(t.filenames))for(const s of t.filenames)(0,o.registerPlatformLanguageAssociation)({id:n,mime:i,filename:s},this._warnOnOverwrite),e.filenames.push(s);if(Array.isArray(t.filenamePatterns))for(const s of t.filenamePatterns)(0,o.registerPlatformLanguageAssociation)({id:n,mime:i,filepattern:s},this._warnOnOverwrite);if("string"===typeof t.firstLine&&t.firstLine.length>0){let e=t.firstLine;"^"!==e.charAt(0)&&(e="^"+e);try{const t=new RegExp(e);(0,s.eY)(t)||(0,o.registerPlatformLanguageAssociation)({id:n,mime:i,firstline:t},this._warnOnOverwrite)}catch(l){console.warn(`[${t.id}]: Invalid regular expression \`${e}\`: `,l)}}e.aliases.push(n);let r=null;if("undefined"!==typeof t.aliases&&Array.isArray(t.aliases)&&(r=0===t.aliases.length?[null]:t.aliases),null!==r)for(const s of r)s&&0!==s.length&&e.aliases.push(s);const a=null!==r&&r.length>0;if(a&&null===r[0]);else{const t=(a?r[0]:null)||n;!a&&e.name||(e.name=t)}t.configuration&&e.configurationFiles.push(t.configuration),t.icon&&e.icons.push(t.icon)}isRegisteredLanguageId(e){return!!e&&h.call(this._languages,e)}getRegisteredLanguageIds(){return Object.keys(this._languages)}getLanguageIdByLanguageName(e){const t=e.toLowerCase();return h.call(this._lowercaseNameMap,t)?this._lowercaseNameMap[t]:null}getLanguageIdByMimeType(e){return e&&h.call(this._mimeTypesMap,e)?this._mimeTypesMap[e]:null}guessLanguageIdByFilepathOrFirstLine(e,t){return e||t?(0,o.getLanguageIds)(e,t):[]}}},9326:(e,t,n)=>{"use strict";n.d(t,{TH:()=>o,Zn:()=>l,_1:()=>c,kb:()=>a});var i=n(8821),r=(n(8067),n(1508));function s(e){return 47===e||92===e}function o(e){return e.replace(/[\\/]/g,i.SA.sep)}function a(e){return-1===e.indexOf("/")&&(e=o(e)),/^[a-zA-Z]:(\/|$)/.test(e)&&(e="/"+e),e}function l(e,t=i.SA.sep){if(!e)return"";const n=e.length,r=e.charCodeAt(0);if(s(r)){if(s(e.charCodeAt(1))&&!s(e.charCodeAt(2))){let i=3;const r=i;for(;i<n&&!s(e.charCodeAt(i));i++);if(r!==i&&!s(e.charCodeAt(i+1)))for(i+=1;i<n;i++)if(s(e.charCodeAt(i)))return e.slice(0,i+1).replace(/[\\/]/g,t)}return t}if(h(r)&&58===e.charCodeAt(1))return s(e.charCodeAt(2))?e.slice(0,2)+t:e.slice(0,2);let o=e.indexOf("://");if(-1!==o)for(o+=3;o<n;o++)if(s(e.charCodeAt(o)))return e.slice(0,o+1);return""}function c(e,t,n,s=i.Vn){if(e===t)return!0;if(!e||!t)return!1;if(t.length>e.length)return!1;if(n){if(!(0,r.ns)(e,t))return!1;if(t.length===e.length)return!0;let n=t.length;return t.charAt(t.length-1)===s&&n--,e.charAt(n)===s}return t.charAt(t.length-1)!==s&&(t+=s),0===e.indexOf(t)}function h(e){return e>=65&&e<=90||e>=97&&e<=122}},9400:(e,t,n)=>{"use strict";n.d(t,{I:()=>b,r:()=>d});var i=n(8821),r=n(8067);const s=/^\w[\w\d+.-]*$/,o=/^\//,a=/^\/\//;const l="",c="/",h=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class d{static isUri(e){return e instanceof d||!!e&&("string"===typeof e.authority&&"string"===typeof e.fragment&&"string"===typeof e.path&&"string"===typeof e.query&&"string"===typeof e.scheme&&"string"===typeof e.fsPath&&"function"===typeof e.with&&"function"===typeof e.toString)}constructor(e,t,n,i,r,h=!1){"object"===typeof e?(this.scheme=e.scheme||l,this.authority=e.authority||l,this.path=e.path||l,this.query=e.query||l,this.fragment=e.fragment||l):(this.scheme=function(e,t){return e||t?e:"file"}(e,h),this.authority=t||l,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==c&&(t=c+t):t=c}return t}(this.scheme,n||l),this.query=i||l,this.fragment=r||l,function(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!s.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!o.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(a.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,h))}get fsPath(){return b(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:i,query:r,fragment:s}=e;return void 0===t?t=this.scheme:null===t&&(t=l),void 0===n?n=this.authority:null===n&&(n=l),void 0===i?i=this.path:null===i&&(i=l),void 0===r?r=this.query:null===r&&(r=l),void 0===s?s=this.fragment:null===s&&(s=l),t===this.scheme&&n===this.authority&&i===this.path&&r===this.query&&s===this.fragment?this:new p(t,n,i,r,s)}static parse(e,t=!1){const n=h.exec(e);return n?new p(n[2]||l,_(n[4]||l),_(n[5]||l),_(n[7]||l),_(n[9]||l),t):new p(l,l,l,l,l)}static file(e){let t=l;if(r.uF&&(e=e.replace(/\\/g,c)),e[0]===c&&e[1]===c){const n=e.indexOf(c,2);-1===n?(t=e.substring(2),e=c):(t=e.substring(2,n),e=e.substring(n)||c)}return new p("file",t,e,l,l)}static from(e,t){return new p(e.scheme,e.authority,e.path,e.query,e.fragment,t)}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let n;return n=r.uF&&"file"===e.scheme?d.file(i.IN.join(b(e,!0),...t)).path:i.SA.join(e.path,...t),e.with({path:n})}toString(e=!1){return v(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof d)return e;{const t=new p(e);return t._formatted=e.external??null,t._fsPath=e._sep===u?e.fsPath??null:null,t}}return e}}const u=r.uF?1:void 0;class p extends d{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=b(this,!1)),this._fsPath}toString(e=!1){return e?v(this,!0):(this._formatted||(this._formatted=v(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=u),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}}const m={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 i,r=-1;for(let s=0;s<e.length;s++){const o=e.charCodeAt(s);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o||n&&91===o||n&&93===o||n&&58===o)-1!==r&&(i+=encodeURIComponent(e.substring(r,s)),r=-1),void 0!==i&&(i+=e.charAt(s));else{void 0===i&&(i=e.substr(0,s));const t=m[o];void 0!==t?(-1!==r&&(i+=encodeURIComponent(e.substring(r,s)),r=-1),i+=t):-1===r&&(r=s)}}return-1!==r&&(i+=encodeURIComponent(e.substring(r))),void 0!==i?i:e}function g(e){let t;for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);35===i||63===i?(void 0===t&&(t=e.substr(0,n)),t+=m[i]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function b(e,t){let n;return n=e.authority&&e.path.length>1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,r.uF&&(n=n.replace(/\//g,"\\")),n}function v(e,t){const n=t?g:f;let i="",{scheme:r,authority:s,path:o,query:a,fragment:l}=e;if(r&&(i+=r,i+=":"),(s||"file"===r)&&(i+=c,i+=c),s){let e=s.indexOf("@");if(-1!==e){const t=s.substr(0,e);s=s.substr(e+1),e=t.lastIndexOf(":"),-1===e?i+=n(t,!1,!1):(i+=n(t.substr(0,e),!1,!1),i+=":",i+=n(t.substr(e+1),!1,!0)),i+="@"}s=s.toLowerCase(),e=s.lastIndexOf(":"),-1===e?i+=n(s,!1,!0):(i+=n(s.substr(0,e),!1,!0),i+=s.substr(e))}if(o){if(o.length>=3&&47===o.charCodeAt(0)&&58===o.charCodeAt(2)){const e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&58===o.charCodeAt(1)){const e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}i+=n(o,!0,!1)}return a&&(i+="?",i+=n(a,!1,!1)),l&&(i+="#",i+=t?l:f(l,!1,!1)),i}function y(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+y(e.substr(3)):e}}const w=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function _(e){return e.match(w)?e.replace(w,(e=>y(e))):e}},9403:(e,t,n)=>{"use strict";n.d(t,{B6:()=>f,P8:()=>u});var i=n(9326),r=n(6456),s=n(8821),o=n(8067),a=n(1508),l=n(9400);function c(e){return(0,l.I)(e,!0)}class h{constructor(e){this._ignorePathCasing=e}compare(e,t,n=!1){return e===t?0:(0,a.UD)(this.getComparisonKey(e,n),this.getComparisonKey(t,n))}isEqual(e,t,n=!1){return e===t||!(!e||!t)&&this.getComparisonKey(e,n)===this.getComparisonKey(t,n)}getComparisonKey(e,t=!1){return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:t?null:void 0}).toString()}isEqualOrParent(e,t,n=!1){if(e.scheme===t.scheme){if(e.scheme===r.ny.file)return i._1(c(e),c(t),this._ignorePathCasing(e))&&e.query===t.query&&(n||e.fragment===t.fragment);if(p(e.authority,t.authority))return i._1(e.path,t.path,this._ignorePathCasing(e),"/")&&e.query===t.query&&(n||e.fragment===t.fragment)}return!1}joinPath(e,...t){return l.r.joinPath(e,...t)}basenameOrAuthority(e){return u(e)||e.authority}basename(e){return s.SA.basename(e.path)}extname(e){return s.SA.extname(e.path)}dirname(e){if(0===e.path.length)return e;let t;return e.scheme===r.ny.file?t=l.r.file(s.pD(c(e))).path:(t=s.SA.dirname(e.path),e.authority&&t.length&&47!==t.charCodeAt(0)&&(console.error(`dirname("${e.toString})) resulted in a relative path`),t="/")),e.with({path:t})}normalizePath(e){if(!e.path.length)return e;let t;return t=e.scheme===r.ny.file?l.r.file(s.S8(c(e))).path:s.SA.normalize(e.path),e.with({path:t})}relativePath(e,t){if(e.scheme!==t.scheme||!p(e.authority,t.authority))return;if(e.scheme===r.ny.file){const n=s.V8(c(e),c(t));return o.uF?i.TH(n):n}let n=e.path||"/";const a=t.path||"/";if(this._ignorePathCasing(e)){let e=0;for(const t=Math.min(n.length,a.length);e<t&&(n.charCodeAt(e)===a.charCodeAt(e)||n.charAt(e).toLowerCase()===a.charAt(e).toLowerCase());e++);n=a.substr(0,e)+n.substr(e)}return s.SA.relative(n,a)}resolvePath(e,t){if(e.scheme===r.ny.file){const n=l.r.file(s.hd(c(e),t));return e.with({authority:n.authority,path:n.path})}return t=i.kb(t),e.with({path:s.SA.resolve(e.path,t)})}isAbsolutePath(e){return!!e.path&&"/"===e.path[0]}isEqualAuthority(e,t){return e===t||void 0!==e&&void 0!==t&&(0,a.Q_)(e,t)}hasTrailingPathSeparator(e,t=s.Vn){if(e.scheme===r.ny.file){const n=c(e);return n.length>i.Zn(n).length&&n[n.length-1]===t}{const t=e.path;return t.length>1&&47===t.charCodeAt(t.length-1)&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}}removeTrailingPathSeparator(e,t=s.Vn){return m(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e,t=s.Vn){let n=!1;if(e.scheme===r.ny.file){const r=c(e);n=void 0!==r&&r.length===i.Zn(r).length&&r[r.length-1]===t}else{t="/";const i=e.path;n=1===i.length&&47===i.charCodeAt(i.length-1)}return n||m(e,t)?e:e.with({path:e.path+"/"})}}const d=new h((()=>!1)),u=(new h((e=>e.scheme!==r.ny.file||!o.j9)),new h((e=>!0)),d.isEqual.bind(d),d.isEqualOrParent.bind(d),d.getComparisonKey.bind(d),d.basenameOrAuthority.bind(d),d.basename.bind(d)),p=(d.extname.bind(d),d.dirname.bind(d),d.joinPath.bind(d),d.normalizePath.bind(d),d.relativePath.bind(d),d.resolvePath.bind(d),d.isAbsolutePath.bind(d),d.isEqualAuthority.bind(d)),m=d.hasTrailingPathSeparator.bind(d);d.removeTrailingPathSeparator.bind(d),d.addTrailingPathSeparator.bind(d);var f;!function(e){e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=function(t){const n=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach((e=>{const[t,i]=e.split(":");t&&i&&n.set(t,i)}));const i=t.path.substring(0,t.path.indexOf(";"));return i&&n.set(e.META_DATA_MIME,i),n}}(f||(f={}))},9493:(e,t,n)=>{"use strict";n.d(t,{W:()=>o});var i=n(631);const r=Object.create(null);function s(e,t){if((0,i.Kg)(t)){const n=r[t];if(void 0===n)throw new Error(`${e} references an unknown codicon: ${t}`);t=n}return r[e]=t,{id:e}}const o={...{add:s("add",6e4),plus:s("plus",6e4),gistNew:s("gist-new",6e4),repoCreate:s("repo-create",6e4),lightbulb:s("lightbulb",60001),lightBulb:s("light-bulb",60001),repo:s("repo",60002),repoDelete:s("repo-delete",60002),gistFork:s("gist-fork",60003),repoForked:s("repo-forked",60003),gitPullRequest:s("git-pull-request",60004),gitPullRequestAbandoned:s("git-pull-request-abandoned",60004),recordKeys:s("record-keys",60005),keyboard:s("keyboard",60005),tag:s("tag",60006),gitPullRequestLabel:s("git-pull-request-label",60006),tagAdd:s("tag-add",60006),tagRemove:s("tag-remove",60006),person:s("person",60007),personFollow:s("person-follow",60007),personOutline:s("person-outline",60007),personFilled:s("person-filled",60007),gitBranch:s("git-branch",60008),gitBranchCreate:s("git-branch-create",60008),gitBranchDelete:s("git-branch-delete",60008),sourceControl:s("source-control",60008),mirror:s("mirror",60009),mirrorPublic:s("mirror-public",60009),star:s("star",60010),starAdd:s("star-add",60010),starDelete:s("star-delete",60010),starEmpty:s("star-empty",60010),comment:s("comment",60011),commentAdd:s("comment-add",60011),alert:s("alert",60012),warning:s("warning",60012),search:s("search",60013),searchSave:s("search-save",60013),logOut:s("log-out",60014),signOut:s("sign-out",60014),logIn:s("log-in",60015),signIn:s("sign-in",60015),eye:s("eye",60016),eyeUnwatch:s("eye-unwatch",60016),eyeWatch:s("eye-watch",60016),circleFilled:s("circle-filled",60017),primitiveDot:s("primitive-dot",60017),closeDirty:s("close-dirty",60017),debugBreakpoint:s("debug-breakpoint",60017),debugBreakpointDisabled:s("debug-breakpoint-disabled",60017),debugHint:s("debug-hint",60017),terminalDecorationSuccess:s("terminal-decoration-success",60017),primitiveSquare:s("primitive-square",60018),edit:s("edit",60019),pencil:s("pencil",60019),info:s("info",60020),issueOpened:s("issue-opened",60020),gistPrivate:s("gist-private",60021),gitForkPrivate:s("git-fork-private",60021),lock:s("lock",60021),mirrorPrivate:s("mirror-private",60021),close:s("close",60022),removeClose:s("remove-close",60022),x:s("x",60022),repoSync:s("repo-sync",60023),sync:s("sync",60023),clone:s("clone",60024),desktopDownload:s("desktop-download",60024),beaker:s("beaker",60025),microscope:s("microscope",60025),vm:s("vm",60026),deviceDesktop:s("device-desktop",60026),file:s("file",60027),fileText:s("file-text",60027),more:s("more",60028),ellipsis:s("ellipsis",60028),kebabHorizontal:s("kebab-horizontal",60028),mailReply:s("mail-reply",60029),reply:s("reply",60029),organization:s("organization",60030),organizationFilled:s("organization-filled",60030),organizationOutline:s("organization-outline",60030),newFile:s("new-file",60031),fileAdd:s("file-add",60031),newFolder:s("new-folder",60032),fileDirectoryCreate:s("file-directory-create",60032),trash:s("trash",60033),trashcan:s("trashcan",60033),history:s("history",60034),clock:s("clock",60034),folder:s("folder",60035),fileDirectory:s("file-directory",60035),symbolFolder:s("symbol-folder",60035),logoGithub:s("logo-github",60036),markGithub:s("mark-github",60036),github:s("github",60036),terminal:s("terminal",60037),console:s("console",60037),repl:s("repl",60037),zap:s("zap",60038),symbolEvent:s("symbol-event",60038),error:s("error",60039),stop:s("stop",60039),variable:s("variable",60040),symbolVariable:s("symbol-variable",60040),array:s("array",60042),symbolArray:s("symbol-array",60042),symbolModule:s("symbol-module",60043),symbolPackage:s("symbol-package",60043),symbolNamespace:s("symbol-namespace",60043),symbolObject:s("symbol-object",60043),symbolMethod:s("symbol-method",60044),symbolFunction:s("symbol-function",60044),symbolConstructor:s("symbol-constructor",60044),symbolBoolean:s("symbol-boolean",60047),symbolNull:s("symbol-null",60047),symbolNumeric:s("symbol-numeric",60048),symbolNumber:s("symbol-number",60048),symbolStructure:s("symbol-structure",60049),symbolStruct:s("symbol-struct",60049),symbolParameter:s("symbol-parameter",60050),symbolTypeParameter:s("symbol-type-parameter",60050),symbolKey:s("symbol-key",60051),symbolText:s("symbol-text",60051),symbolReference:s("symbol-reference",60052),goToFile:s("go-to-file",60052),symbolEnum:s("symbol-enum",60053),symbolValue:s("symbol-value",60053),symbolRuler:s("symbol-ruler",60054),symbolUnit:s("symbol-unit",60054),activateBreakpoints:s("activate-breakpoints",60055),archive:s("archive",60056),arrowBoth:s("arrow-both",60057),arrowDown:s("arrow-down",60058),arrowLeft:s("arrow-left",60059),arrowRight:s("arrow-right",60060),arrowSmallDown:s("arrow-small-down",60061),arrowSmallLeft:s("arrow-small-left",60062),arrowSmallRight:s("arrow-small-right",60063),arrowSmallUp:s("arrow-small-up",60064),arrowUp:s("arrow-up",60065),bell:s("bell",60066),bold:s("bold",60067),book:s("book",60068),bookmark:s("bookmark",60069),debugBreakpointConditionalUnverified:s("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:s("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:s("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:s("debug-breakpoint-data-unverified",60072),debugBreakpointData:s("debug-breakpoint-data",60073),debugBreakpointDataDisabled:s("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:s("debug-breakpoint-log-unverified",60074),debugBreakpointLog:s("debug-breakpoint-log",60075),debugBreakpointLogDisabled:s("debug-breakpoint-log-disabled",60075),briefcase:s("briefcase",60076),broadcast:s("broadcast",60077),browser:s("browser",60078),bug:s("bug",60079),calendar:s("calendar",60080),caseSensitive:s("case-sensitive",60081),check:s("check",60082),checklist:s("checklist",60083),chevronDown:s("chevron-down",60084),chevronLeft:s("chevron-left",60085),chevronRight:s("chevron-right",60086),chevronUp:s("chevron-up",60087),chromeClose:s("chrome-close",60088),chromeMaximize:s("chrome-maximize",60089),chromeMinimize:s("chrome-minimize",60090),chromeRestore:s("chrome-restore",60091),circleOutline:s("circle-outline",60092),circle:s("circle",60092),debugBreakpointUnverified:s("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:s("terminal-decoration-incomplete",60092),circleSlash:s("circle-slash",60093),circuitBoard:s("circuit-board",60094),clearAll:s("clear-all",60095),clippy:s("clippy",60096),closeAll:s("close-all",60097),cloudDownload:s("cloud-download",60098),cloudUpload:s("cloud-upload",60099),code:s("code",60100),collapseAll:s("collapse-all",60101),colorMode:s("color-mode",60102),commentDiscussion:s("comment-discussion",60103),creditCard:s("credit-card",60105),dash:s("dash",60108),dashboard:s("dashboard",60109),database:s("database",60110),debugContinue:s("debug-continue",60111),debugDisconnect:s("debug-disconnect",60112),debugPause:s("debug-pause",60113),debugRestart:s("debug-restart",60114),debugStart:s("debug-start",60115),debugStepInto:s("debug-step-into",60116),debugStepOut:s("debug-step-out",60117),debugStepOver:s("debug-step-over",60118),debugStop:s("debug-stop",60119),debug:s("debug",60120),deviceCameraVideo:s("device-camera-video",60121),deviceCamera:s("device-camera",60122),deviceMobile:s("device-mobile",60123),diffAdded:s("diff-added",60124),diffIgnored:s("diff-ignored",60125),diffModified:s("diff-modified",60126),diffRemoved:s("diff-removed",60127),diffRenamed:s("diff-renamed",60128),diff:s("diff",60129),diffSidebyside:s("diff-sidebyside",60129),discard:s("discard",60130),editorLayout:s("editor-layout",60131),emptyWindow:s("empty-window",60132),exclude:s("exclude",60133),extensions:s("extensions",60134),eyeClosed:s("eye-closed",60135),fileBinary:s("file-binary",60136),fileCode:s("file-code",60137),fileMedia:s("file-media",60138),filePdf:s("file-pdf",60139),fileSubmodule:s("file-submodule",60140),fileSymlinkDirectory:s("file-symlink-directory",60141),fileSymlinkFile:s("file-symlink-file",60142),fileZip:s("file-zip",60143),files:s("files",60144),filter:s("filter",60145),flame:s("flame",60146),foldDown:s("fold-down",60147),foldUp:s("fold-up",60148),fold:s("fold",60149),folderActive:s("folder-active",60150),folderOpened:s("folder-opened",60151),gear:s("gear",60152),gift:s("gift",60153),gistSecret:s("gist-secret",60154),gist:s("gist",60155),gitCommit:s("git-commit",60156),gitCompare:s("git-compare",60157),compareChanges:s("compare-changes",60157),gitMerge:s("git-merge",60158),githubAction:s("github-action",60159),githubAlt:s("github-alt",60160),globe:s("globe",60161),grabber:s("grabber",60162),graph:s("graph",60163),gripper:s("gripper",60164),heart:s("heart",60165),home:s("home",60166),horizontalRule:s("horizontal-rule",60167),hubot:s("hubot",60168),inbox:s("inbox",60169),issueReopened:s("issue-reopened",60171),issues:s("issues",60172),italic:s("italic",60173),jersey:s("jersey",60174),json:s("json",60175),kebabVertical:s("kebab-vertical",60176),key:s("key",60177),law:s("law",60178),lightbulbAutofix:s("lightbulb-autofix",60179),linkExternal:s("link-external",60180),link:s("link",60181),listOrdered:s("list-ordered",60182),listUnordered:s("list-unordered",60183),liveShare:s("live-share",60184),loading:s("loading",60185),location:s("location",60186),mailRead:s("mail-read",60187),mail:s("mail",60188),markdown:s("markdown",60189),megaphone:s("megaphone",60190),mention:s("mention",60191),milestone:s("milestone",60192),gitPullRequestMilestone:s("git-pull-request-milestone",60192),mortarBoard:s("mortar-board",60193),move:s("move",60194),multipleWindows:s("multiple-windows",60195),mute:s("mute",60196),noNewline:s("no-newline",60197),note:s("note",60198),octoface:s("octoface",60199),openPreview:s("open-preview",60200),package:s("package",60201),paintcan:s("paintcan",60202),pin:s("pin",60203),play:s("play",60204),run:s("run",60204),plug:s("plug",60205),preserveCase:s("preserve-case",60206),preview:s("preview",60207),project:s("project",60208),pulse:s("pulse",60209),question:s("question",60210),quote:s("quote",60211),radioTower:s("radio-tower",60212),reactions:s("reactions",60213),references:s("references",60214),refresh:s("refresh",60215),regex:s("regex",60216),remoteExplorer:s("remote-explorer",60217),remote:s("remote",60218),remove:s("remove",60219),replaceAll:s("replace-all",60220),replace:s("replace",60221),repoClone:s("repo-clone",60222),repoForcePush:s("repo-force-push",60223),repoPull:s("repo-pull",60224),repoPush:s("repo-push",60225),report:s("report",60226),requestChanges:s("request-changes",60227),rocket:s("rocket",60228),rootFolderOpened:s("root-folder-opened",60229),rootFolder:s("root-folder",60230),rss:s("rss",60231),ruby:s("ruby",60232),saveAll:s("save-all",60233),saveAs:s("save-as",60234),save:s("save",60235),screenFull:s("screen-full",60236),screenNormal:s("screen-normal",60237),searchStop:s("search-stop",60238),server:s("server",60240),settingsGear:s("settings-gear",60241),settings:s("settings",60242),shield:s("shield",60243),smiley:s("smiley",60244),sortPrecedence:s("sort-precedence",60245),splitHorizontal:s("split-horizontal",60246),splitVertical:s("split-vertical",60247),squirrel:s("squirrel",60248),starFull:s("star-full",60249),starHalf:s("star-half",60250),symbolClass:s("symbol-class",60251),symbolColor:s("symbol-color",60252),symbolConstant:s("symbol-constant",60253),symbolEnumMember:s("symbol-enum-member",60254),symbolField:s("symbol-field",60255),symbolFile:s("symbol-file",60256),symbolInterface:s("symbol-interface",60257),symbolKeyword:s("symbol-keyword",60258),symbolMisc:s("symbol-misc",60259),symbolOperator:s("symbol-operator",60260),symbolProperty:s("symbol-property",60261),wrench:s("wrench",60261),wrenchSubaction:s("wrench-subaction",60261),symbolSnippet:s("symbol-snippet",60262),tasklist:s("tasklist",60263),telescope:s("telescope",60264),textSize:s("text-size",60265),threeBars:s("three-bars",60266),thumbsdown:s("thumbsdown",60267),thumbsup:s("thumbsup",60268),tools:s("tools",60269),triangleDown:s("triangle-down",60270),triangleLeft:s("triangle-left",60271),triangleRight:s("triangle-right",60272),triangleUp:s("triangle-up",60273),twitter:s("twitter",60274),unfold:s("unfold",60275),unlock:s("unlock",60276),unmute:s("unmute",60277),unverified:s("unverified",60278),verified:s("verified",60279),versions:s("versions",60280),vmActive:s("vm-active",60281),vmOutline:s("vm-outline",60282),vmRunning:s("vm-running",60283),watch:s("watch",60284),whitespace:s("whitespace",60285),wholeWord:s("whole-word",60286),window:s("window",60287),wordWrap:s("word-wrap",60288),zoomIn:s("zoom-in",60289),zoomOut:s("zoom-out",60290),listFilter:s("list-filter",60291),listFlat:s("list-flat",60292),listSelection:s("list-selection",60293),selection:s("selection",60293),listTree:s("list-tree",60294),debugBreakpointFunctionUnverified:s("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:s("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:s("debug-breakpoint-function-disabled",60296),debugStackframeActive:s("debug-stackframe-active",60297),circleSmallFilled:s("circle-small-filled",60298),debugStackframeDot:s("debug-stackframe-dot",60298),terminalDecorationMark:s("terminal-decoration-mark",60298),debugStackframe:s("debug-stackframe",60299),debugStackframeFocused:s("debug-stackframe-focused",60299),debugBreakpointUnsupported:s("debug-breakpoint-unsupported",60300),symbolString:s("symbol-string",60301),debugReverseContinue:s("debug-reverse-continue",60302),debugStepBack:s("debug-step-back",60303),debugRestartFrame:s("debug-restart-frame",60304),debugAlt:s("debug-alt",60305),callIncoming:s("call-incoming",60306),callOutgoing:s("call-outgoing",60307),menu:s("menu",60308),expandAll:s("expand-all",60309),feedback:s("feedback",60310),gitPullRequestReviewer:s("git-pull-request-reviewer",60310),groupByRefType:s("group-by-ref-type",60311),ungroupByRefType:s("ungroup-by-ref-type",60312),account:s("account",60313),gitPullRequestAssignee:s("git-pull-request-assignee",60313),bellDot:s("bell-dot",60314),debugConsole:s("debug-console",60315),library:s("library",60316),output:s("output",60317),runAll:s("run-all",60318),syncIgnored:s("sync-ignored",60319),pinned:s("pinned",60320),githubInverted:s("github-inverted",60321),serverProcess:s("server-process",60322),serverEnvironment:s("server-environment",60323),pass:s("pass",60324),issueClosed:s("issue-closed",60324),stopCircle:s("stop-circle",60325),playCircle:s("play-circle",60326),record:s("record",60327),debugAltSmall:s("debug-alt-small",60328),vmConnect:s("vm-connect",60329),cloud:s("cloud",60330),merge:s("merge",60331),export:s("export",60332),graphLeft:s("graph-left",60333),magnet:s("magnet",60334),notebook:s("notebook",60335),redo:s("redo",60336),checkAll:s("check-all",60337),pinnedDirty:s("pinned-dirty",60338),passFilled:s("pass-filled",60339),circleLargeFilled:s("circle-large-filled",60340),circleLarge:s("circle-large",60341),circleLargeOutline:s("circle-large-outline",60341),combine:s("combine",60342),gather:s("gather",60342),table:s("table",60343),variableGroup:s("variable-group",60344),typeHierarchy:s("type-hierarchy",60345),typeHierarchySub:s("type-hierarchy-sub",60346),typeHierarchySuper:s("type-hierarchy-super",60347),gitPullRequestCreate:s("git-pull-request-create",60348),runAbove:s("run-above",60349),runBelow:s("run-below",60350),notebookTemplate:s("notebook-template",60351),debugRerun:s("debug-rerun",60352),workspaceTrusted:s("workspace-trusted",60353),workspaceUntrusted:s("workspace-untrusted",60354),workspaceUnknown:s("workspace-unknown",60355),terminalCmd:s("terminal-cmd",60356),terminalDebian:s("terminal-debian",60357),terminalLinux:s("terminal-linux",60358),terminalPowershell:s("terminal-powershell",60359),terminalTmux:s("terminal-tmux",60360),terminalUbuntu:s("terminal-ubuntu",60361),terminalBash:s("terminal-bash",60362),arrowSwap:s("arrow-swap",60363),copy:s("copy",60364),personAdd:s("person-add",60365),filterFilled:s("filter-filled",60366),wand:s("wand",60367),debugLineByLine:s("debug-line-by-line",60368),inspect:s("inspect",60369),layers:s("layers",60370),layersDot:s("layers-dot",60371),layersActive:s("layers-active",60372),compass:s("compass",60373),compassDot:s("compass-dot",60374),compassActive:s("compass-active",60375),azure:s("azure",60376),issueDraft:s("issue-draft",60377),gitPullRequestClosed:s("git-pull-request-closed",60378),gitPullRequestDraft:s("git-pull-request-draft",60379),debugAll:s("debug-all",60380),debugCoverage:s("debug-coverage",60381),runErrors:s("run-errors",60382),folderLibrary:s("folder-library",60383),debugContinueSmall:s("debug-continue-small",60384),beakerStop:s("beaker-stop",60385),graphLine:s("graph-line",60386),graphScatter:s("graph-scatter",60387),pieChart:s("pie-chart",60388),bracket:s("bracket",60175),bracketDot:s("bracket-dot",60389),bracketError:s("bracket-error",60390),lockSmall:s("lock-small",60391),azureDevops:s("azure-devops",60392),verifiedFilled:s("verified-filled",60393),newline:s("newline",60394),layout:s("layout",60395),layoutActivitybarLeft:s("layout-activitybar-left",60396),layoutActivitybarRight:s("layout-activitybar-right",60397),layoutPanelLeft:s("layout-panel-left",60398),layoutPanelCenter:s("layout-panel-center",60399),layoutPanelJustify:s("layout-panel-justify",60400),layoutPanelRight:s("layout-panel-right",60401),layoutPanel:s("layout-panel",60402),layoutSidebarLeft:s("layout-sidebar-left",60403),layoutSidebarRight:s("layout-sidebar-right",60404),layoutStatusbar:s("layout-statusbar",60405),layoutMenubar:s("layout-menubar",60406),layoutCentered:s("layout-centered",60407),target:s("target",60408),indent:s("indent",60409),recordSmall:s("record-small",60410),errorSmall:s("error-small",60411),terminalDecorationError:s("terminal-decoration-error",60411),arrowCircleDown:s("arrow-circle-down",60412),arrowCircleLeft:s("arrow-circle-left",60413),arrowCircleRight:s("arrow-circle-right",60414),arrowCircleUp:s("arrow-circle-up",60415),layoutSidebarRightOff:s("layout-sidebar-right-off",60416),layoutPanelOff:s("layout-panel-off",60417),layoutSidebarLeftOff:s("layout-sidebar-left-off",60418),blank:s("blank",60419),heartFilled:s("heart-filled",60420),map:s("map",60421),mapHorizontal:s("map-horizontal",60421),foldHorizontal:s("fold-horizontal",60421),mapFilled:s("map-filled",60422),mapHorizontalFilled:s("map-horizontal-filled",60422),foldHorizontalFilled:s("fold-horizontal-filled",60422),circleSmall:s("circle-small",60423),bellSlash:s("bell-slash",60424),bellSlashDot:s("bell-slash-dot",60425),commentUnresolved:s("comment-unresolved",60426),gitPullRequestGoToChanges:s("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:s("git-pull-request-new-changes",60428),searchFuzzy:s("search-fuzzy",60429),commentDraft:s("comment-draft",60430),send:s("send",60431),sparkle:s("sparkle",60432),insert:s("insert",60433),mic:s("mic",60434),thumbsdownFilled:s("thumbsdown-filled",60435),thumbsupFilled:s("thumbsup-filled",60436),coffee:s("coffee",60437),snake:s("snake",60438),game:s("game",60439),vr:s("vr",60440),chip:s("chip",60441),piano:s("piano",60442),music:s("music",60443),micFilled:s("mic-filled",60444),repoFetch:s("repo-fetch",60445),copilot:s("copilot",60446),lightbulbSparkle:s("lightbulb-sparkle",60447),robot:s("robot",60448),sparkleFilled:s("sparkle-filled",60449),diffSingle:s("diff-single",60450),diffMultiple:s("diff-multiple",60451),surroundWith:s("surround-with",60452),share:s("share",60453),gitStash:s("git-stash",60454),gitStashApply:s("git-stash-apply",60455),gitStashPop:s("git-stash-pop",60456),vscode:s("vscode",60457),vscodeInsiders:s("vscode-insiders",60458),codeOss:s("code-oss",60459),runCoverage:s("run-coverage",60460),runAllCoverage:s("run-all-coverage",60461),coverage:s("coverage",60462),githubProject:s("github-project",60463),mapVertical:s("map-vertical",60464),foldVertical:s("fold-vertical",60464),mapVerticalFilled:s("map-vertical-filled",60465),foldVerticalFilled:s("fold-vertical-filled",60465),goToSearch:s("go-to-search",60466),percentage:s("percentage",60467),sortPercentage:s("sort-percentage",60467),attach:s("attach",60468)},...{dialogError:s("dialog-error","error"),dialogWarning:s("dialog-warning","warning"),dialogInfo:s("dialog-info","info"),dialogClose:s("dialog-close","close"),treeItemExpanded:s("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:s("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:s("tree-filter-on-type-off","list-selection"),treeFilterClear:s("tree-filter-clear","close"),treeItemLoading:s("tree-item-loading","loading"),menuSelection:s("menu-selection","check"),menuSubmenu:s("menu-submenu","chevron-right"),menuBarMore:s("menubar-more","more"),scrollbarButtonLeft:s("scrollbar-button-left","triangle-left"),scrollbarButtonRight:s("scrollbar-button-right","triangle-right"),scrollbarButtonUp:s("scrollbar-button-up","triangle-up"),scrollbarButtonDown:s("scrollbar-button-down","triangle-down"),toolBarMore:s("toolbar-more","more"),quickInputBack:s("quick-input-back","arrow-left"),dropDownButton:s("drop-down-button",60084),symbolCustomColor:s("symbol-customcolor",60252),exportIcon:s("export",60332),workspaceUnspecified:s("workspace-unspecified",60355),newLine:s("newline",60394),thumbsDownFilled:s("thumbsdown-filled",60435),thumbsUpFilled:s("thumbsup-filled",60436),gitFetch:s("git-fetch",60445),lightbulbSparkleAutofix:s("lightbulb-sparkle-autofix",60447),debugBreakpointPending:s("debug-breakpoint-pending",60377)}}},9861:(e,t,n)=>{"use strict";function i(e,t,n=(e,t)=>e===t){if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(let i=0,r=e.length;i<r;i++)if(!n(e[i],t[i]))return!1;return!0}function*r(e,t){let n,i;for(const r of e)void 0!==i&&t(i,r)?n.push(r):(n&&(yield n),n=[r]),i=r;n&&(yield n)}function s(e,t){for(let n=0;n<=e.length;n++)t(0===n?void 0:e[n-1],n===e.length?void 0:e[n])}function o(e,t){for(let n=0;n<e.length;n++)t(0===n?void 0:e[n-1],e[n],n+1===e.length?void 0:e[n+1])}function a(e,t=e=>e){const n=new Set;return e.filter((e=>{const i=t(e);return!n.has(i)&&(n.add(i),!0)}))}function l(e,t){return e.length>0?e[0]:t}function c(e,t,n){const i=e.slice(0,t),r=e.slice(t);return i.concat(n,r)}function h(e,t){for(const n of t)e.push(n)}var d;function u(e,t){return(n,i)=>t(e(n),e(i))}n.d(t,{E4:()=>h,Fy:()=>l,Hw:()=>m,U9:()=>p,VE:()=>u,aI:()=>i,c1:()=>g,dM:()=>a,j3:()=>f,kj:()=>o,n:()=>r,nK:()=>c,pN:()=>s}),function(e){e.isLessThan=function(e){return e<0},e.isLessThanOrEqual=function(e){return e<=0},e.isGreaterThan=function(e){return e>0},e.isNeitherLessOrGreaterThan=function(e){return 0===e},e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0}(d||(d={}));const p=(e,t)=>e-t;function m(e){return(t,n)=>-e(t,n)}class f{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t<this.items.length&&e(this.items[t]);)t++;const n=t===this.firstIdx?null:this.items.slice(this.firstIdx,t);return this.firstIdx=t,n}takeFromEndWhile(e){let t=this.lastIdx;for(;t>=0&&e(this.items[t]);)t--;const n=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,n}peek(){if(0!==this.length)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class g{static{this.empty=new g((e=>{}))}constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate((t=>(e.push(t),!0))),e}filter(e){return new g((t=>this.iterate((n=>!e(n)||t(n)))))}map(e){return new g((t=>this.iterate((n=>t(e(n))))))}findLast(e){let t;return this.iterate((n=>(e(n)&&(t=n),!0))),t}findLastMaxBy(e){let t,n=!0;return this.iterate((i=>((n||d.isGreaterThan(e(i,t)))&&(n=!1,t=i),!0))),t}}},9908:(e,t,n)=>{"use strict";n.r(t),n.d(t,{clearPlatformLanguageAssociations:()=>m,getLanguageIds:()=>f,registerPlatformLanguageAssociation:()=>p});var i=n(6958),r=n(1939),s=n(6456),o=n(8821),a=n(9403),l=n(1508),c=n(3941);let h=[],d=[],u=[];function p(e,t=!1){!function(e,t,n){const r=function(e,t){return{id:e.id,mime:e.mime,filename:e.filename,extension:e.extension,filepattern:e.filepattern,firstline:e.firstline,userConfigured:t,filenameLowercase:e.filename?e.filename.toLowerCase():void 0,extensionLowercase:e.extension?e.extension.toLowerCase():void 0,filepatternLowercase:e.filepattern?(0,i.qg)(e.filepattern.toLowerCase()):void 0,filepatternOnPath:!!e.filepattern&&e.filepattern.indexOf(o.SA.sep)>=0}}(e,t);h.push(r),r.userConfigured?u.push(r):d.push(r);n&&!r.userConfigured&&h.forEach((e=>{e.mime===r.mime||e.userConfigured||(r.extension&&e.extension===r.extension&&console.warn(`Overwriting extension <<${r.extension}>> to now point to mime <<${r.mime}>>`),r.filename&&e.filename===r.filename&&console.warn(`Overwriting filename <<${r.filename}>> to now point to mime <<${r.mime}>>`),r.filepattern&&e.filepattern===r.filepattern&&console.warn(`Overwriting filepattern <<${r.filepattern}>> to now point to mime <<${r.mime}>>`),r.firstline&&e.firstline===r.firstline&&console.warn(`Overwriting firstline <<${r.firstline}>> to now point to mime <<${r.mime}>>`))}))}(e,!1,t)}function m(){h=h.filter((e=>e.userConfigured)),d=[]}function f(e,t){return function(e,t){let n;if(e)switch(e.scheme){case s.ny.file:n=e.fsPath;break;case s.ny.data:n=a.B6.parseMetaData(e).get(a.B6.META_DATA_LABEL);break;case s.ny.vscodeNotebookCell:n=void 0;break;default:n=e.path}if(!n)return[{id:"unknown",mime:r.K.unknown}];n=n.toLowerCase();const i=(0,o.P8)(n),p=g(n,i,u);if(p)return[p,{id:c.vH,mime:r.K.text}];const m=g(n,i,d);if(m)return[m,{id:c.vH,mime:r.K.text}];if(t){const e=function(e){(0,l.LU)(e)&&(e=e.substr(1));if(e.length>0)for(let t=h.length-1;t>=0;t--){const n=h[t];if(!n.firstline)continue;const i=e.match(n.firstline);if(i&&i.length>0)return n}return}(t);if(e)return[e,{id:c.vH,mime:r.K.text}]}return[{id:"unknown",mime:r.K.unknown}]}(e,t).map((e=>e.id))}function g(e,t,n){let i,r,s;for(let o=n.length-1;o>=0;o--){const a=n[o];if(t===a.filenameLowercase){i=a;break}if(a.filepattern&&(!r||a.filepattern.length>r.filepattern.length)){const n=a.filepatternOnPath?e:t;a.filepatternLowercase?.(n)&&(r=a)}a.extension&&(!s||a.extension.length>s.extension.length)&&t.endsWith(a.extensionLowercase)&&(s=a)}return i||(r||(s||void 0))}}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var s=t[i]={exports:{}};return e[i](s,s.exports,n),s.exports}n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.e=()=>Promise.resolve(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=n(1929),t=n(5196),i=n(718);let r=!1;function s(n){if(r)return;r=!0;const s=new e.SimpleWorkerServer((e=>{globalThis.postMessage(e)}),(e=>new t.EditorSimpleWorker(i.EditorWorkerHost.getChannel(e),n)));globalThis.onmessage=e=>{s.onmessage(e.data)}}var o,a;globalThis.onmessage=e=>{r||s(null)},(a=o||(o={}))[a.Ident=0]="Ident",a[a.AtKeyword=1]="AtKeyword",a[a.String=2]="String",a[a.BadString=3]="BadString",a[a.UnquotedString=4]="UnquotedString",a[a.Hash=5]="Hash",a[a.Num=6]="Num",a[a.Percentage=7]="Percentage",a[a.Dimension=8]="Dimension",a[a.UnicodeRange=9]="UnicodeRange",a[a.CDO=10]="CDO",a[a.CDC=11]="CDC",a[a.Colon=12]="Colon",a[a.SemiColon=13]="SemiColon",a[a.CurlyL=14]="CurlyL",a[a.CurlyR=15]="CurlyR",a[a.ParenthesisL=16]="ParenthesisL",a[a.ParenthesisR=17]="ParenthesisR",a[a.BracketL=18]="BracketL",a[a.BracketR=19]="BracketR",a[a.Whitespace=20]="Whitespace",a[a.Includes=21]="Includes",a[a.Dashmatch=22]="Dashmatch",a[a.SubstringOperator=23]="SubstringOperator",a[a.PrefixOperator=24]="PrefixOperator",a[a.SuffixOperator=25]="SuffixOperator",a[a.Delim=26]="Delim",a[a.EMS=27]="EMS",a[a.EXS=28]="EXS",a[a.Length=29]="Length",a[a.Angle=30]="Angle",a[a.Time=31]="Time",a[a.Freq=32]="Freq",a[a.Exclamation=33]="Exclamation",a[a.Resolution=34]="Resolution",a[a.Comma=35]="Comma",a[a.Charset=36]="Charset",a[a.EscapedJavaScript=37]="EscapedJavaScript",a[a.BadEscapedJavaScript=38]="BadEscapedJavaScript",a[a.Comment=39]="Comment",a[a.SingleLineComment=40]="SingleLineComment",a[a.EOF=41]="EOF",a[a.ContainerQueryLength=42]="ContainerQueryLength",a[a.CustomToken=43]="CustomToken";var l=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){const t=this.position;for(;this.position<this.len&&e(this.source.charCodeAt(this.position));)this.position++;return this.position-t}},c="a".charCodeAt(0),h="f".charCodeAt(0),d="z".charCodeAt(0),u=("u".charCodeAt(0),"A".charCodeAt(0)),p="F".charCodeAt(0),m="Z".charCodeAt(0),f="0".charCodeAt(0),g="9".charCodeAt(0),b="~".charCodeAt(0),v="^".charCodeAt(0),y="=".charCodeAt(0),w="|".charCodeAt(0),_="-".charCodeAt(0),k="_".charCodeAt(0),C="%".charCodeAt(0),S="*".charCodeAt(0),x="(".charCodeAt(0),E=")".charCodeAt(0),F="<".charCodeAt(0),L=">".charCodeAt(0),I="@".charCodeAt(0),T="#".charCodeAt(0),N="$".charCodeAt(0),R="\\".charCodeAt(0),D="/".charCodeAt(0),A="\n".charCodeAt(0),M="\r".charCodeAt(0),O="\f".charCodeAt(0),z='"'.charCodeAt(0),P="'".charCodeAt(0),B=" ".charCodeAt(0),W="\t".charCodeAt(0),V=";".charCodeAt(0),U=":".charCodeAt(0),$="{".charCodeAt(0),q="}".charCodeAt(0),j="[".charCodeAt(0),K="]".charCodeAt(0),H=",".charCodeAt(0),G=".".charCodeAt(0),Q="!".charCodeAt(0),J="?".charCodeAt(0),Y="+".charCodeAt(0),X={};X[V]=o.SemiColon,X[U]=o.Colon,X[$]=o.CurlyL,X[q]=o.CurlyR,X[K]=o.BracketR,X[j]=o.BracketL,X[x]=o.ParenthesisL,X[E]=o.ParenthesisR,X[H]=o.Comma;var Z={};Z.em=o.EMS,Z.ex=o.EXS,Z.px=o.Length,Z.cm=o.Length,Z.mm=o.Length,Z.in=o.Length,Z.pt=o.Length,Z.pc=o.Length,Z.deg=o.Angle,Z.rad=o.Angle,Z.grad=o.Angle,Z.ms=o.Time,Z.s=o.Time,Z.hz=o.Freq,Z.khz=o.Freq,Z["%"]=o.Percentage,Z.fr=o.Percentage,Z.dpi=o.Resolution,Z.dpcm=o.Resolution,Z.cqw=o.ContainerQueryLength,Z.cqh=o.ContainerQueryLength,Z.cqi=o.ContainerQueryLength,Z.cqb=o.ContainerQueryLength,Z.cqmin=o.ContainerQueryLength,Z.cqmax=o.ContainerQueryLength;var ee,te,ne,ie,re=class{constructor(){this.stream=new l(""),this.ignoreComment=!0,this.ignoreWhitespace=!0,this.inURL=!1}setSource(e){this.stream=new l(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(){const e=this.stream.pos(),t=[];return this._unquotedString(t)?this.finishToken(e,o.UnquotedString,t.join("")):null}scan(){const e=this.trivia();if(null!==e)return e;const t=this.stream.pos();return this.stream.eos()?this.finishToken(t,o.EOF):this.scanNext(t)}tryScanUnicode(){const e=this.stream.pos();if(!this.stream.eos()&&this._unicodeRange())return this.finishToken(e,o.UnicodeRange);this.stream.goBackTo(e)}scanNext(e){if(this.stream.advanceIfChars([F,Q,_,_]))return this.finishToken(e,o.CDO);if(this.stream.advanceIfChars([_,_,L]))return this.finishToken(e,o.CDC);let t=[];if(this.ident(t))return this.finishToken(e,o.Ident,t.join(""));if(this.stream.advanceIfChar(I)){if(t=["@"],this._name(t)){const n=t.join("");return"@charset"===n?this.finishToken(e,o.Charset,n):this.finishToken(e,o.AtKeyword,n)}return this.finishToken(e,o.Delim)}if(this.stream.advanceIfChar(T))return t=["#"],this._name(t)?this.finishToken(e,o.Hash,t.join("")):this.finishToken(e,o.Delim);if(this.stream.advanceIfChar(Q))return this.finishToken(e,o.Exclamation);if(this._number()){const n=this.stream.pos();if(t=[this.stream.substring(e,n)],this.stream.advanceIfChar(C))return this.finishToken(e,o.Percentage);if(this.ident(t)){const i=this.stream.substring(n).toLowerCase(),r=Z[i];return"undefined"!==typeof r?this.finishToken(e,r,t.join("")):this.finishToken(e,o.Dimension,t.join(""))}return this.finishToken(e,o.Num)}t=[];let n=this._string(t);return null!==n?this.finishToken(e,n,t.join("")):(n=X[this.stream.peekChar()],"undefined"!==typeof n?(this.stream.advance(1),this.finishToken(e,n)):this.stream.peekChar(0)===b&&this.stream.peekChar(1)===y?(this.stream.advance(2),this.finishToken(e,o.Includes)):this.stream.peekChar(0)===w&&this.stream.peekChar(1)===y?(this.stream.advance(2),this.finishToken(e,o.Dashmatch)):this.stream.peekChar(0)===S&&this.stream.peekChar(1)===y?(this.stream.advance(2),this.finishToken(e,o.SubstringOperator)):this.stream.peekChar(0)===v&&this.stream.peekChar(1)===y?(this.stream.advance(2),this.finishToken(e,o.PrefixOperator)):this.stream.peekChar(0)===N&&this.stream.peekChar(1)===y?(this.stream.advance(2),this.finishToken(e,o.SuffixOperator)):(this.stream.nextChar(),this.finishToken(e,o.Delim)))}trivia(){for(;;){const e=this.stream.pos();if(this._whitespace()){if(!this.ignoreWhitespace)return this.finishToken(e,o.Whitespace)}else{if(!this.comment())return null;if(!this.ignoreComment)return this.finishToken(e,o.Comment)}}}comment(){if(this.stream.advanceIfChars([D,S])){let e=!1,t=!1;return this.stream.advanceWhileChar((n=>t&&n===D?(e=!0,!1):(t=n===S,!0))),e&&this.stream.advance(1),!0}return!1}_number(){let e,t=0;return this.stream.peekChar()===G&&(t=1),e=this.stream.peekChar(t),e>=f&&e<=g&&(this.stream.advance(t+1),this.stream.advanceWhileChar((e=>e>=f&&e<=g||0===t&&e===G)),!0)}_newline(e){const t=this.stream.peekChar();switch(t){case M:case O:case A:return this.stream.advance(1),e.push(String.fromCharCode(t)),t===M&&this.stream.advanceIfChar(A)&&e.push("\n"),!0}return!1}_escape(e,t){let n=this.stream.peekChar();if(n===R){this.stream.advance(1),n=this.stream.peekChar();let r=0;for(;r<6&&(n>=f&&n<=g||n>=c&&n<=h||n>=u&&n<=p);)this.stream.advance(1),n=this.stream.peekChar(),r++;if(r>0){try{const t=parseInt(this.stream.substring(this.stream.pos()-r),16);t&&e.push(String.fromCharCode(t))}catch(i){}return n===B||n===W?this.stream.advance(1):this._newline([]),!0}if(n!==M&&n!==O&&n!==A)return this.stream.advance(1),e.push(String.fromCharCode(n)),!0;if(t)return this._newline(e)}return!1}_stringChar(e,t){const n=this.stream.peekChar();return 0!==n&&n!==e&&n!==R&&n!==M&&n!==O&&n!==A&&(this.stream.advance(1),t.push(String.fromCharCode(n)),!0)}_string(e){if(this.stream.peekChar()===P||this.stream.peekChar()===z){const 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)),o.String):o.BadString}return null}_unquotedChar(e){const t=this.stream.peekChar();return 0!==t&&t!==R&&t!==P&&t!==z&&t!==x&&t!==E&&t!==B&&t!==W&&t!==A&&t!==O&&t!==M&&(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===B||e===W||e===A||e===O||e===M))>0}_name(e){let t=!1;for(;this._identChar(e)||this._escape(e);)t=!0;return t}ident(e){const 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){const t=this.stream.peekChar();return(t===k||t>=c&&t<=d||t>=u&&t<=m||t>=128&&t<=65535)&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0)}_minus(e){const t=this.stream.peekChar();return t===_&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0)}_identChar(e){const t=this.stream.peekChar();return(t===k||t===_||t>=c&&t<=d||t>=u&&t<=m||t>=f&&t<=g||t>=128&&t<=65535)&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0)}_unicodeRange(){if(this.stream.advanceIfChar(Y)){const e=e=>e>=f&&e<=g||e>=c&&e<=h||e>=u&&e<=p,t=this.stream.advanceWhileChar(e)+this.stream.advanceWhileChar((e=>e===J));if(t>=1&&t<=6){if(!this.stream.advanceIfChar(_))return!0;{const t=this.stream.advanceWhileChar(e);if(t>=1&&t<=6)return!0}}}return!1}};function se(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 oe(e,t){let n=e.length-t.length;return n>0?e.lastIndexOf(t)===n:0===n&&e===t}function ae(e,t=!0){return e?e.length<140?e:e.slice(0,140)+(t?"\u2026":""):""}function le(e,t){let n="";for(;t>0;)1===(1&t)&&(n+=e),e+=e,t>>>=1;return n}function ce(e,t){let n=null;return!e||t<e.offset||t>e.end?null:(e.accept((e=>-1===e.offset&&-1===e.length||e.offset<=t&&e.end>=t&&(n?e.length<=n.length&&(n=e):n=e,!0))),n)}function he(e,t){let n=ce(e,t);const i=[];for(;n;)i.unshift(n),n=n.parent;return i}(te=ee||(ee={}))[te.Undefined=0]="Undefined",te[te.Identifier=1]="Identifier",te[te.Stylesheet=2]="Stylesheet",te[te.Ruleset=3]="Ruleset",te[te.Selector=4]="Selector",te[te.SimpleSelector=5]="SimpleSelector",te[te.SelectorInterpolation=6]="SelectorInterpolation",te[te.SelectorCombinator=7]="SelectorCombinator",te[te.SelectorCombinatorParent=8]="SelectorCombinatorParent",te[te.SelectorCombinatorSibling=9]="SelectorCombinatorSibling",te[te.SelectorCombinatorAllSiblings=10]="SelectorCombinatorAllSiblings",te[te.SelectorCombinatorShadowPiercingDescendant=11]="SelectorCombinatorShadowPiercingDescendant",te[te.Page=12]="Page",te[te.PageBoxMarginBox=13]="PageBoxMarginBox",te[te.ClassSelector=14]="ClassSelector",te[te.IdentifierSelector=15]="IdentifierSelector",te[te.ElementNameSelector=16]="ElementNameSelector",te[te.PseudoSelector=17]="PseudoSelector",te[te.AttributeSelector=18]="AttributeSelector",te[te.Declaration=19]="Declaration",te[te.Declarations=20]="Declarations",te[te.Property=21]="Property",te[te.Expression=22]="Expression",te[te.BinaryExpression=23]="BinaryExpression",te[te.Term=24]="Term",te[te.Operator=25]="Operator",te[te.Value=26]="Value",te[te.StringLiteral=27]="StringLiteral",te[te.URILiteral=28]="URILiteral",te[te.EscapedValue=29]="EscapedValue",te[te.Function=30]="Function",te[te.NumericValue=31]="NumericValue",te[te.HexColorValue=32]="HexColorValue",te[te.RatioValue=33]="RatioValue",te[te.MixinDeclaration=34]="MixinDeclaration",te[te.MixinReference=35]="MixinReference",te[te.VariableName=36]="VariableName",te[te.VariableDeclaration=37]="VariableDeclaration",te[te.Prio=38]="Prio",te[te.Interpolation=39]="Interpolation",te[te.NestedProperties=40]="NestedProperties",te[te.ExtendsReference=41]="ExtendsReference",te[te.SelectorPlaceholder=42]="SelectorPlaceholder",te[te.Debug=43]="Debug",te[te.If=44]="If",te[te.Else=45]="Else",te[te.For=46]="For",te[te.Each=47]="Each",te[te.While=48]="While",te[te.MixinContentReference=49]="MixinContentReference",te[te.MixinContentDeclaration=50]="MixinContentDeclaration",te[te.Media=51]="Media",te[te.Keyframe=52]="Keyframe",te[te.FontFace=53]="FontFace",te[te.Import=54]="Import",te[te.Namespace=55]="Namespace",te[te.Invocation=56]="Invocation",te[te.FunctionDeclaration=57]="FunctionDeclaration",te[te.ReturnStatement=58]="ReturnStatement",te[te.MediaQuery=59]="MediaQuery",te[te.MediaCondition=60]="MediaCondition",te[te.MediaFeature=61]="MediaFeature",te[te.FunctionParameter=62]="FunctionParameter",te[te.FunctionArgument=63]="FunctionArgument",te[te.KeyframeSelector=64]="KeyframeSelector",te[te.ViewPort=65]="ViewPort",te[te.Document=66]="Document",te[te.AtApplyRule=67]="AtApplyRule",te[te.CustomPropertyDeclaration=68]="CustomPropertyDeclaration",te[te.CustomPropertySet=69]="CustomPropertySet",te[te.ListEntry=70]="ListEntry",te[te.Supports=71]="Supports",te[te.SupportsCondition=72]="SupportsCondition",te[te.NamespacePrefix=73]="NamespacePrefix",te[te.GridLine=74]="GridLine",te[te.Plugin=75]="Plugin",te[te.UnknownAtRule=76]="UnknownAtRule",te[te.Use=77]="Use",te[te.ModuleConfiguration=78]="ModuleConfiguration",te[te.Forward=79]="Forward",te[te.ForwardVisibility=80]="ForwardVisibility",te[te.Module=81]="Module",te[te.UnicodeRange=82]="UnicodeRange",te[te.Layer=83]="Layer",te[te.LayerNameList=84]="LayerNameList",te[te.LayerName=85]="LayerName",te[te.PropertyAtRule=86]="PropertyAtRule",te[te.Container=87]="Container",(ie=ne||(ne={}))[ie.Mixin=0]="Mixin",ie[ie.Rule=1]="Rule",ie[ie.Variable=2]="Variable",ie[ie.Function=3]="Function",ie[ie.Keyframe=4]="Keyframe",ie[ie.Unknown=5]="Unknown",ie[ie.Module=6]="Module",ie[ie.Forward=7]="Forward",ie[ie.ForwardVisibility=8]="ForwardVisibility",ie[ie.Property=9]="Property";var de,ue,pe=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||ee.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(const 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){const t=e.parent.children.indexOf(e);t>=0&&e.parent.children.splice(t,1)}e.parent=this;let n=this.children;return n||(n=this.children=[]),-1!==t?n.splice(t,0,e):n.push(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=[]),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)||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)}addChild(e){return!!e&&(this.children||(this.children=[]),e.attachTo(this),this.updateOffsetAndLength(e),!0)}updateOffsetAndLength(e){(e.offset<this.offset||-1===this.offset)&&(this.offset=e.offset);const t=e.end;(t>this.end||-1===this.length)&&(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(const 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){const 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 me;)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={}),this.options[e]=t}getData(e){return this.options&&this.options.hasOwnProperty(e)?this.options[e]:null}},me=class extends pe{constructor(e,t=-1){super(-1,-1),this.attachTo(e,t),this.offset=-1,this.length=-1}},fe=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.UnicodeRange}setRangeStart(e){return this.setNode("rangeStart",e)}getRangeStart(){return this.rangeStart}setRangeEnd(e){return this.setNode("rangeEnd",e)}getRangeEnd(){return this.rangeEnd}},ge=class extends pe{constructor(e,t){super(e,t),this.isCustomProperty=!1}get type(){return ee.Identifier}containsInterpolation(){return this.hasChildren()}},be=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.Stylesheet}},ve=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.Declarations}},ye=class extends pe{constructor(e,t){super(e,t)}getDeclarations(){return this.declarations}setDeclarations(e){return this.setNode("declarations",e)}},we=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.Ruleset}getSelectors(){return this.selectors||(this.selectors=new me(this)),this.selectors}isNested(){return!!this.parent&&null!==this.parent.findParent(ee.Declarations)}},_e=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.Selector}},ke=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.SimpleSelector}},Ce=class extends pe{constructor(e,t){super(e,t)}},Se=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.CustomPropertySet}},xe=class e extends Ce{constructor(e,t){super(e,t),this.property=null}get type(){return ee.Declaration}setProperty(e){return this.setNode("property",e)}getProperty(){return this.property}getFullPropertyName(){const t=this.property?this.property.getName():"unknown";if(this.parent instanceof ve&&this.parent.getParent()instanceof We){const n=this.parent.getParent().getParent();if(n instanceof e)return n.getFullPropertyName()+t}return t}getNonPrefixedPropertyName(){const e=this.getFullPropertyName();if(e&&"-"===e.charAt(0)){const t=e.indexOf("-",1);if(-1!==t)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}},Ee=class extends xe{constructor(e,t){super(e,t)}get type(){return ee.CustomPropertyDeclaration}setPropertySet(e){return this.setNode("propertySet",e)}getPropertySet(){return this.propertySet}},Fe=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.Property}setIdentifier(e){return this.setNode("identifier",e)}getIdentifier(){return this.identifier}getName(){return function(e,t){const n=t.exec(e);return n&&n[0].length?e.substr(0,e.length-n[0].length):e}(this.getText(),/[_\+]+$/)}isCustomProperty(){return!!this.identifier&&this.identifier.isCustomProperty}},Le=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.Invocation}getArguments(){return this.arguments||(this.arguments=new me(this)),this.arguments}},Ie=class extends Le{constructor(e,t){super(e,t)}get type(){return ee.Function}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}},Te=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.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}},Ne=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.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}},Re=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.If}setExpression(e){return this.setNode("expression",e,0)}setElseClause(e){return this.setNode("elseClause",e)}},De=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.For}setVariable(e){return this.setNode("variable",e,0)}},Ae=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.Each}getVariables(){return this.variables||(this.variables=new me(this)),this.variables}},Me=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.While}},Oe=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.Else}},ze=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.FunctionDeclaration}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}getParameters(){return this.parameters||(this.parameters=new me(this)),this.parameters}},Pe=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.ViewPort}},Be=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.FontFace}},We=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.NestedProperties}},Ve=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.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():""}},Ue=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.KeyframeSelector}},$e=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.Import}setMedialist(e){return!!e&&(e.attachTo(this),!0)}},qe=class extends pe{get type(){return ee.Use}getParameters(){return this.parameters||(this.parameters=new me(this)),this.parameters}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}},je=class extends pe{get type(){return ee.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}},Ke=class extends pe{get type(){return ee.Forward}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getMembers(){return this.members||(this.members=new me(this)),this.members}getParameters(){return this.parameters||(this.parameters=new me(this)),this.parameters}},He=class extends pe{get type(){return ee.ForwardVisibility}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}},Ge=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.Namespace}},Qe=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.Media}},Je=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.Supports}},Ye=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.Layer}setNames(e){return this.setNode("names",e)}getNames(){return this.names}},Xe=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.PropertyAtRule}setName(e){return!!e&&(e.attachTo(this),this.name=e,!0)}getName(){return this.name}},Ze=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.Document}},et=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.Container}},tt=class extends pe{constructor(e,t){super(e,t)}},nt=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.MediaQuery}},it=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.MediaCondition}},rt=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.MediaFeature}},st=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.SupportsCondition}},ot=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.Page}},at=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.PageBoxMarginBox}},lt=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.Expression}},ct=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.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}},ht=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.Term}setOperator(e){return this.setNode("operator",e)}getOperator(){return this.operator}setExpression(e){return this.setNode("expression",e)}getExpression(){return this.expression}},dt=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.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}},ut=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.HexColorValue}},pt=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.RatioValue}},mt=".".charCodeAt(0),ft="0".charCodeAt(0),gt="9".charCodeAt(0),bt=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.NumericValue}getValue(){const e=this.getText();let t,n=0;for(let i=0,r=e.length;i<r&&(t=e.charCodeAt(i),ft<=t&&t<=gt||t===mt);i++)n+=1;return{value:e.substring(0,n),unit:n<e.length?e.substring(n):void 0}}},vt=class extends Ce{constructor(e,t){super(e,t),this.needsSemicolon=!0}get type(){return ee.VariableDeclaration}setVariable(e){return!!e&&(e.attachTo(this),this.variable=e,!0)}getVariable(){return this.variable}getName(){return this.variable?this.variable.getName():""}setValue(e){return!!e&&(e.attachTo(this),this.value=e,!0)}getValue(){return this.value}},yt=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.Interpolation}},wt=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.VariableName}getName(){return this.getText()}},_t=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.ExtendsReference}getSelectors(){return this.selectors||(this.selectors=new me(this)),this.selectors}},kt=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.MixinContentReference}getArguments(){return this.arguments||(this.arguments=new me(this)),this.arguments}},Ct=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.MixinContentDeclaration}getParameters(){return this.parameters||(this.parameters=new me(this)),this.parameters}},St=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.MixinReference}getNamespaces(){return this.namespaces||(this.namespaces=new me(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||(this.arguments=new me(this)),this.arguments}setContent(e){return this.setNode("content",e)}getContent(){return this.content}},xt=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.MixinDeclaration}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}getParameters(){return this.parameters||(this.parameters=new me(this)),this.parameters}setGuard(e){return e&&(e.attachTo(this),this.guard=e),!1}},Et=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.UnknownAtRule}setAtRuleName(e){this.atRuleName=e}getAtRuleName(){return this.atRuleName}},Ft=class extends pe{get type(){return ee.ListEntry}setKey(e){return this.setNode("key",e,0)}setValue(e){return this.setNode("value",e,1)}},Lt=class extends pe{getConditions(){return this.conditions||(this.conditions=new me(this)),this.conditions}},It=class extends pe{setVariable(e){return this.setNode("variable",e)}},Tt=class extends pe{get type(){return ee.Module}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}};(ue=de||(de={}))[ue.Ignore=1]="Ignore",ue[ue.Warning=2]="Warning",ue[ue.Error=4]="Error";var Nt=class{constructor(e,t,n,i,r=e.offset,s=e.length){this.node=e,this.rule=t,this.level=n,this.message=i||t.message,this.offset=r,this.length=s}getRule(){return this.rule}getLevel(){return this.level}getOffset(){return this.offset}getLength(){return this.length}getNode(){return this.node}getMessage(){return this.message}},Rt=class e{static entries(t){const n=new e;return t.acceptVisitor(n),n.entries}constructor(){this.entries=[]}visitNode(e){return e.isErroneous()&&e.collectIssues(this.entries),!0}};function Dt(...e){const t=e[0];let n,i,r;if("string"===typeof t)n=t,i=t,e.splice(0,1),r=e&&"object"===typeof e[0]?e[0]:e;else{if(t instanceof Array){const n=e.slice(1);if(t.length!==n.length+1)throw new Error("expected a string as the first argument to l10n.t");let i=t[0];for(let e=1;e<t.length;e++)i+=`{${e-1}}`+t[e];return Dt(i,...n)}i=t.message,n=i,t.comment&&t.comment.length>0&&(n+=`/${Array.isArray(t.comment)?t.comment.join(""):t.comment}`),r=t.args??{}}return Mt(i,r)}var At=/{([^}]+)}/g;function Mt(e,t){return 0===Object.keys(t).length?e:e.replace(At,((e,n)=>t[n]??e))}var Ot,zt,Pt,Bt,Wt,Vt,Ut,$t,qt,jt,Kt,Ht,Gt,Qt,Jt,Yt,Xt,Zt,en,tn,nn,rn,sn,on,an,ln,cn,hn,dn,un,pn,mn,fn,gn,bn,vn,yn,wn,_n,kn,Cn,Sn,xn,En,Fn,Ln,In,Tn,Nn,Rn,Dn,An,Mn,On,zn,Pn,Bn,Wn,Vn,Un,$n,qn,jn,Kn,Hn,Gn,Qn,Jn,Yn,Xn,Zn,ei,ti,ni,ii,ri,si,oi,ai,li,ci,hi,di,ui,pi,mi,fi,gi,bi,vi,yi,wi,_i,ki,Ci,Si,xi,Ei,Fi,Li,Ii,Ti,Ni,Ri,Di,Ai,Mi,Oi,zi,Pi,Bi,Wi,Vi,Ui,$i,qi,ji,Ki,Hi,Gi,Qi,Ji,Yi,Xi,Zi,er,tr,nr,ir,rr,sr,or,ar,lr=class{constructor(e,t){this.id=e,this.message=t}},cr={NumberExpected:new lr("css-numberexpected",Dt("number expected")),ConditionExpected:new lr("css-conditionexpected",Dt("condition expected")),RuleOrSelectorExpected:new lr("css-ruleorselectorexpected",Dt("at-rule or selector expected")),DotExpected:new lr("css-dotexpected",Dt("dot expected")),ColonExpected:new lr("css-colonexpected",Dt("colon expected")),SemiColonExpected:new lr("css-semicolonexpected",Dt("semi-colon expected")),TermExpected:new lr("css-termexpected",Dt("term expected")),ExpressionExpected:new lr("css-expressionexpected",Dt("expression expected")),OperatorExpected:new lr("css-operatorexpected",Dt("operator expected")),IdentifierExpected:new lr("css-identifierexpected",Dt("identifier expected")),PercentageExpected:new lr("css-percentageexpected",Dt("percentage expected")),URIOrStringExpected:new lr("css-uriorstringexpected",Dt("uri or string expected")),URIExpected:new lr("css-uriexpected",Dt("URI expected")),VariableNameExpected:new lr("css-varnameexpected",Dt("variable name expected")),VariableValueExpected:new lr("css-varvalueexpected",Dt("variable value expected")),PropertyValueExpected:new lr("css-propertyvalueexpected",Dt("property value expected")),LeftCurlyExpected:new lr("css-lcurlyexpected",Dt("{ expected")),RightCurlyExpected:new lr("css-rcurlyexpected",Dt("} expected")),LeftSquareBracketExpected:new lr("css-rbracketexpected",Dt("[ expected")),RightSquareBracketExpected:new lr("css-lbracketexpected",Dt("] expected")),LeftParenthesisExpected:new lr("css-lparentexpected",Dt("( expected")),RightParenthesisExpected:new lr("css-rparentexpected",Dt(") expected")),CommaExpected:new lr("css-commaexpected",Dt("comma expected")),PageDirectiveOrDeclarationExpected:new lr("css-pagedirordeclexpected",Dt("page directive or declaraton expected")),UnknownAtRule:new lr("css-unknownatrule",Dt("at-rule unknown")),UnknownKeyword:new lr("css-unknownkeyword",Dt("unknown keyword")),SelectorExpected:new lr("css-selectorexpected",Dt("selector expected")),StringLiteralExpected:new lr("css-stringliteralexpected",Dt("string literal expected")),WhitespaceExpected:new lr("css-whitespaceexpected",Dt("whitespace expected")),MediaQueryExpected:new lr("css-mediaqueryexpected",Dt("media query expected")),IdentifierOrWildcardExpected:new lr("css-idorwildcardexpected",Dt("identifier or wildcard expected")),WildcardExpected:new lr("css-wildcardexpected",Dt("wildcard expected")),IdentifierOrVariableExpected:new lr("css-idorvarexpected",Dt("identifier or variable expected"))};(Ot||(Ot={})).is=function(e){return"string"===typeof e},(zt||(zt={})).is=function(e){return"string"===typeof e},(Bt=Pt||(Pt={})).MIN_VALUE=-2147483648,Bt.MAX_VALUE=2147483647,Bt.is=function(e){return"number"===typeof e&&Bt.MIN_VALUE<=e&&e<=Bt.MAX_VALUE},(Vt=Wt||(Wt={})).MIN_VALUE=0,Vt.MAX_VALUE=2147483647,Vt.is=function(e){return"number"===typeof e&&Vt.MIN_VALUE<=e&&e<=Vt.MAX_VALUE},($t=Ut||(Ut={})).create=function(e,t){return e===Number.MAX_VALUE&&(e=Wt.MAX_VALUE),t===Number.MAX_VALUE&&(t=Wt.MAX_VALUE),{line:e,character:t}},$t.is=function(e){let t=e;return hr.objectLiteral(t)&&hr.uinteger(t.line)&&hr.uinteger(t.character)},(jt=qt||(qt={})).create=function(e,t,n,i){if(hr.uinteger(e)&&hr.uinteger(t)&&hr.uinteger(n)&&hr.uinteger(i))return{start:Ut.create(e,t),end:Ut.create(n,i)};if(Ut.is(e)&&Ut.is(t))return{start:e,end:t};throw new Error(`Range#create called with invalid arguments[${e}, ${t}, ${n}, ${i}]`)},jt.is=function(e){let t=e;return hr.objectLiteral(t)&&Ut.is(t.start)&&Ut.is(t.end)},(Ht=Kt||(Kt={})).create=function(e,t){return{uri:e,range:t}},Ht.is=function(e){let t=e;return hr.objectLiteral(t)&&qt.is(t.range)&&(hr.string(t.uri)||hr.undefined(t.uri))},(Qt=Gt||(Gt={})).create=function(e,t,n,i){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:i}},Qt.is=function(e){let t=e;return hr.objectLiteral(t)&&qt.is(t.targetRange)&&hr.string(t.targetUri)&&qt.is(t.targetSelectionRange)&&(qt.is(t.originSelectionRange)||hr.undefined(t.originSelectionRange))},(Yt=Jt||(Jt={})).create=function(e,t,n,i){return{red:e,green:t,blue:n,alpha:i}},Yt.is=function(e){const t=e;return hr.objectLiteral(t)&&hr.numberRange(t.red,0,1)&&hr.numberRange(t.green,0,1)&&hr.numberRange(t.blue,0,1)&&hr.numberRange(t.alpha,0,1)},(Zt=Xt||(Xt={})).create=function(e,t){return{range:e,color:t}},Zt.is=function(e){const t=e;return hr.objectLiteral(t)&&qt.is(t.range)&&Jt.is(t.color)},(tn=en||(en={})).create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},tn.is=function(e){const t=e;return hr.objectLiteral(t)&&hr.string(t.label)&&(hr.undefined(t.textEdit)||vn.is(t))&&(hr.undefined(t.additionalTextEdits)||hr.typedArray(t.additionalTextEdits,vn.is))},(rn=nn||(nn={})).Comment="comment",rn.Imports="imports",rn.Region="region",(on=sn||(sn={})).create=function(e,t,n,i,r,s){const o={startLine:e,endLine:t};return hr.defined(n)&&(o.startCharacter=n),hr.defined(i)&&(o.endCharacter=i),hr.defined(r)&&(o.kind=r),hr.defined(s)&&(o.collapsedText=s),o},on.is=function(e){const t=e;return hr.objectLiteral(t)&&hr.uinteger(t.startLine)&&hr.uinteger(t.startLine)&&(hr.undefined(t.startCharacter)||hr.uinteger(t.startCharacter))&&(hr.undefined(t.endCharacter)||hr.uinteger(t.endCharacter))&&(hr.undefined(t.kind)||hr.string(t.kind))},(ln=an||(an={})).create=function(e,t){return{location:e,message:t}},ln.is=function(e){let t=e;return hr.defined(t)&&Kt.is(t.location)&&hr.string(t.message)},(hn=cn||(cn={})).Error=1,hn.Warning=2,hn.Information=3,hn.Hint=4,(un=dn||(dn={})).Unnecessary=1,un.Deprecated=2,(pn||(pn={})).is=function(e){const t=e;return hr.objectLiteral(t)&&hr.string(t.href)},(fn=mn||(mn={})).create=function(e,t,n,i,r,s){let o={range:e,message:t};return hr.defined(n)&&(o.severity=n),hr.defined(i)&&(o.code=i),hr.defined(r)&&(o.source=r),hr.defined(s)&&(o.relatedInformation=s),o},fn.is=function(e){var t;let n=e;return hr.defined(n)&&qt.is(n.range)&&hr.string(n.message)&&(hr.number(n.severity)||hr.undefined(n.severity))&&(hr.integer(n.code)||hr.string(n.code)||hr.undefined(n.code))&&(hr.undefined(n.codeDescription)||hr.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(hr.string(n.source)||hr.undefined(n.source))&&(hr.undefined(n.relatedInformation)||hr.typedArray(n.relatedInformation,an.is))},(bn=gn||(gn={})).create=function(e,t,...n){let i={title:e,command:t};return hr.defined(n)&&n.length>0&&(i.arguments=n),i},bn.is=function(e){let t=e;return hr.defined(t)&&hr.string(t.title)&&hr.string(t.command)},(yn=vn||(vn={})).replace=function(e,t){return{range:e,newText:t}},yn.insert=function(e,t){return{range:{start:e,end:e},newText:t}},yn.del=function(e){return{range:e,newText:""}},yn.is=function(e){const t=e;return hr.objectLiteral(t)&&hr.string(t.newText)&&qt.is(t.range)},(_n=wn||(wn={})).create=function(e,t,n){const i={label:e};return void 0!==t&&(i.needsConfirmation=t),void 0!==n&&(i.description=n),i},_n.is=function(e){const t=e;return hr.objectLiteral(t)&&hr.string(t.label)&&(hr.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(hr.string(t.description)||void 0===t.description)},(kn||(kn={})).is=function(e){const t=e;return hr.string(t)},(Sn=Cn||(Cn={})).replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},Sn.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},Sn.del=function(e,t){return{range:e,newText:"",annotationId:t}},Sn.is=function(e){const t=e;return vn.is(t)&&(wn.is(t.annotationId)||kn.is(t.annotationId))},(En=xn||(xn={})).create=function(e,t){return{textDocument:e,edits:t}},En.is=function(e){let t=e;return hr.defined(t)&&Pn.is(t.textDocument)&&Array.isArray(t.edits)},(Ln=Fn||(Fn={})).create=function(e,t,n){let i={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(i.options=t),void 0!==n&&(i.annotationId=n),i},Ln.is=function(e){let t=e;return t&&"create"===t.kind&&hr.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||hr.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||hr.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||kn.is(t.annotationId))},(Tn=In||(In={})).create=function(e,t,n,i){let r={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(r.options=n),void 0!==i&&(r.annotationId=i),r},Tn.is=function(e){let t=e;return t&&"rename"===t.kind&&hr.string(t.oldUri)&&hr.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||hr.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||hr.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||kn.is(t.annotationId))},(Rn=Nn||(Nn={})).create=function(e,t,n){let i={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(i.options=t),void 0!==n&&(i.annotationId=n),i},Rn.is=function(e){let t=e;return t&&"delete"===t.kind&&hr.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||hr.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||hr.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||kn.is(t.annotationId))},(Dn||(Dn={})).is=function(e){let t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((e=>hr.string(e.kind)?Fn.is(e)||In.is(e)||Nn.is(e):xn.is(e))))},(Mn=An||(An={})).create=function(e){return{uri:e}},Mn.is=function(e){let t=e;return hr.defined(t)&&hr.string(t.uri)},(zn=On||(On={})).create=function(e,t){return{uri:e,version:t}},zn.is=function(e){let t=e;return hr.defined(t)&&hr.string(t.uri)&&hr.integer(t.version)},(Bn=Pn||(Pn={})).create=function(e,t){return{uri:e,version:t}},Bn.is=function(e){let t=e;return hr.defined(t)&&hr.string(t.uri)&&(null===t.version||hr.integer(t.version))},(Vn=Wn||(Wn={})).create=function(e,t,n,i){return{uri:e,languageId:t,version:n,text:i}},Vn.is=function(e){let t=e;return hr.defined(t)&&hr.string(t.uri)&&hr.string(t.languageId)&&hr.integer(t.version)&&hr.string(t.text)},($n=Un||(Un={})).PlainText="plaintext",$n.Markdown="markdown",$n.is=function(e){const t=e;return t===$n.PlainText||t===$n.Markdown},(qn||(qn={})).is=function(e){const t=e;return hr.objectLiteral(e)&&Un.is(t.kind)&&hr.string(t.value)},(Kn=jn||(jn={})).Text=1,Kn.Method=2,Kn.Function=3,Kn.Constructor=4,Kn.Field=5,Kn.Variable=6,Kn.Class=7,Kn.Interface=8,Kn.Module=9,Kn.Property=10,Kn.Unit=11,Kn.Value=12,Kn.Enum=13,Kn.Keyword=14,Kn.Snippet=15,Kn.Color=16,Kn.File=17,Kn.Reference=18,Kn.Folder=19,Kn.EnumMember=20,Kn.Constant=21,Kn.Struct=22,Kn.Event=23,Kn.Operator=24,Kn.TypeParameter=25,(Gn=Hn||(Hn={})).PlainText=1,Gn.Snippet=2,(Qn||(Qn={})).Deprecated=1,(Yn=Jn||(Jn={})).create=function(e,t,n){return{newText:e,insert:t,replace:n}},Yn.is=function(e){const t=e;return t&&hr.string(t.newText)&&qt.is(t.insert)&&qt.is(t.replace)},(Zn=Xn||(Xn={})).asIs=1,Zn.adjustIndentation=2,(ei||(ei={})).is=function(e){const t=e;return t&&(hr.string(t.detail)||void 0===t.detail)&&(hr.string(t.description)||void 0===t.description)},(ti||(ti={})).create=function(e){return{label:e}},(ni||(ni={})).create=function(e,t){return{items:e||[],isIncomplete:!!t}},(ri=ii||(ii={})).fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},ri.is=function(e){const t=e;return hr.string(t)||hr.objectLiteral(t)&&hr.string(t.language)&&hr.string(t.value)},(si||(si={})).is=function(e){let t=e;return!!t&&hr.objectLiteral(t)&&(qn.is(t.contents)||ii.is(t.contents)||hr.typedArray(t.contents,ii.is))&&(void 0===e.range||qt.is(e.range))},(oi||(oi={})).create=function(e,t){return t?{label:e,documentation:t}:{label:e}},(ai||(ai={})).create=function(e,t,...n){let i={label:e};return hr.defined(t)&&(i.documentation=t),hr.defined(n)?i.parameters=n:i.parameters=[],i},(ci=li||(li={})).Text=1,ci.Read=2,ci.Write=3,(hi||(hi={})).create=function(e,t){let n={range:e};return hr.number(t)&&(n.kind=t),n},(ui=di||(di={})).File=1,ui.Module=2,ui.Namespace=3,ui.Package=4,ui.Class=5,ui.Method=6,ui.Property=7,ui.Field=8,ui.Constructor=9,ui.Enum=10,ui.Interface=11,ui.Function=12,ui.Variable=13,ui.Constant=14,ui.String=15,ui.Number=16,ui.Boolean=17,ui.Array=18,ui.Object=19,ui.Key=20,ui.Null=21,ui.EnumMember=22,ui.Struct=23,ui.Event=24,ui.Operator=25,ui.TypeParameter=26,(pi||(pi={})).Deprecated=1,(mi||(mi={})).create=function(e,t,n,i,r){let s={name:e,kind:t,location:{uri:i,range:n}};return r&&(s.containerName=r),s},(fi||(fi={})).create=function(e,t,n,i){return void 0!==i?{name:e,kind:t,location:{uri:n,range:i}}:{name:e,kind:t,location:{uri:n}}},(bi=gi||(gi={})).create=function(e,t,n,i,r,s){let o={name:e,detail:t,kind:n,range:i,selectionRange:r};return void 0!==s&&(o.children=s),o},bi.is=function(e){let t=e;return t&&hr.string(t.name)&&hr.number(t.kind)&&qt.is(t.range)&&qt.is(t.selectionRange)&&(void 0===t.detail||hr.string(t.detail))&&(void 0===t.deprecated||hr.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))},(yi=vi||(vi={})).Empty="",yi.QuickFix="quickfix",yi.Refactor="refactor",yi.RefactorExtract="refactor.extract",yi.RefactorInline="refactor.inline",yi.RefactorRewrite="refactor.rewrite",yi.Source="source",yi.SourceOrganizeImports="source.organizeImports",yi.SourceFixAll="source.fixAll",(_i=wi||(wi={})).Invoked=1,_i.Automatic=2,(Ci=ki||(ki={})).create=function(e,t,n){let i={diagnostics:e};return void 0!==t&&null!==t&&(i.only=t),void 0!==n&&null!==n&&(i.triggerKind=n),i},Ci.is=function(e){let t=e;return hr.defined(t)&&hr.typedArray(t.diagnostics,mn.is)&&(void 0===t.only||hr.typedArray(t.only,hr.string))&&(void 0===t.triggerKind||t.triggerKind===wi.Invoked||t.triggerKind===wi.Automatic)},(xi=Si||(Si={})).create=function(e,t,n){let i={title:e},r=!0;return"string"===typeof t?(r=!1,i.kind=t):gn.is(t)?i.command=t:i.edit=t,r&&void 0!==n&&(i.kind=n),i},xi.is=function(e){let t=e;return t&&hr.string(t.title)&&(void 0===t.diagnostics||hr.typedArray(t.diagnostics,mn.is))&&(void 0===t.kind||hr.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||gn.is(t.command))&&(void 0===t.isPreferred||hr.boolean(t.isPreferred))&&(void 0===t.edit||Dn.is(t.edit))},(Fi=Ei||(Ei={})).create=function(e,t){let n={range:e};return hr.defined(t)&&(n.data=t),n},Fi.is=function(e){let t=e;return hr.defined(t)&&qt.is(t.range)&&(hr.undefined(t.command)||gn.is(t.command))},(Ii=Li||(Li={})).create=function(e,t){return{tabSize:e,insertSpaces:t}},Ii.is=function(e){let t=e;return hr.defined(t)&&hr.uinteger(t.tabSize)&&hr.boolean(t.insertSpaces)},(Ni=Ti||(Ti={})).create=function(e,t,n){return{range:e,target:t,data:n}},Ni.is=function(e){let t=e;return hr.defined(t)&&qt.is(t.range)&&(hr.undefined(t.target)||hr.string(t.target))},(Di=Ri||(Ri={})).create=function(e,t){return{range:e,parent:t}},Di.is=function(e){let t=e;return hr.objectLiteral(t)&&qt.is(t.range)&&(void 0===t.parent||Di.is(t.parent))},(Mi=Ai||(Ai={})).namespace="namespace",Mi.type="type",Mi.class="class",Mi.enum="enum",Mi.interface="interface",Mi.struct="struct",Mi.typeParameter="typeParameter",Mi.parameter="parameter",Mi.variable="variable",Mi.property="property",Mi.enumMember="enumMember",Mi.event="event",Mi.function="function",Mi.method="method",Mi.macro="macro",Mi.keyword="keyword",Mi.modifier="modifier",Mi.comment="comment",Mi.string="string",Mi.number="number",Mi.regexp="regexp",Mi.operator="operator",Mi.decorator="decorator",(zi=Oi||(Oi={})).declaration="declaration",zi.definition="definition",zi.readonly="readonly",zi.static="static",zi.deprecated="deprecated",zi.abstract="abstract",zi.async="async",zi.modification="modification",zi.documentation="documentation",zi.defaultLibrary="defaultLibrary",(Pi||(Pi={})).is=function(e){const t=e;return hr.objectLiteral(t)&&(void 0===t.resultId||"string"===typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"===typeof t.data[0])},(Wi=Bi||(Bi={})).create=function(e,t){return{range:e,text:t}},Wi.is=function(e){const t=e;return void 0!==t&&null!==t&&qt.is(t.range)&&hr.string(t.text)},(Ui=Vi||(Vi={})).create=function(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}},Ui.is=function(e){const t=e;return void 0!==t&&null!==t&&qt.is(t.range)&&hr.boolean(t.caseSensitiveLookup)&&(hr.string(t.variableName)||void 0===t.variableName)},(qi=$i||($i={})).create=function(e,t){return{range:e,expression:t}},qi.is=function(e){const t=e;return void 0!==t&&null!==t&&qt.is(t.range)&&(hr.string(t.expression)||void 0===t.expression)},(Ki=ji||(ji={})).create=function(e,t){return{frameId:e,stoppedLocation:t}},Ki.is=function(e){const t=e;return hr.defined(t)&&qt.is(e.stoppedLocation)},(Gi=Hi||(Hi={})).Type=1,Gi.Parameter=2,Gi.is=function(e){return 1===e||2===e},(Ji=Qi||(Qi={})).create=function(e){return{value:e}},Ji.is=function(e){const t=e;return hr.objectLiteral(t)&&(void 0===t.tooltip||hr.string(t.tooltip)||qn.is(t.tooltip))&&(void 0===t.location||Kt.is(t.location))&&(void 0===t.command||gn.is(t.command))},(Xi=Yi||(Yi={})).create=function(e,t,n){const i={position:e,label:t};return void 0!==n&&(i.kind=n),i},Xi.is=function(e){const t=e;return hr.objectLiteral(t)&&Ut.is(t.position)&&(hr.string(t.label)||hr.typedArray(t.label,Qi.is))&&(void 0===t.kind||Hi.is(t.kind))&&void 0===t.textEdits||hr.typedArray(t.textEdits,vn.is)&&(void 0===t.tooltip||hr.string(t.tooltip)||qn.is(t.tooltip))&&(void 0===t.paddingLeft||hr.boolean(t.paddingLeft))&&(void 0===t.paddingRight||hr.boolean(t.paddingRight))},(Zi||(Zi={})).createSnippet=function(e){return{kind:"snippet",value:e}},(er||(er={})).create=function(e,t,n,i){return{insertText:e,filterText:t,range:n,command:i}},(tr||(tr={})).create=function(e){return{items:e}},(ir=nr||(nr={})).Invoked=0,ir.Automatic=1,(rr||(rr={})).create=function(e,t){return{range:e,text:t}},(sr||(sr={})).create=function(e,t){return{triggerKind:e,selectedCompletionInfo:t}},(or||(or={})).is=function(e){const t=e;return hr.objectLiteral(t)&&zt.is(t.uri)&&hr.string(t.name)},function(e){function t(e,n){if(e.length<=1)return e;const i=e.length/2|0,r=e.slice(0,i),s=e.slice(i);t(r,n),t(s,n);let o=0,a=0,l=0;for(;o<r.length&&a<s.length;){let t=n(r[o],s[a]);e[l++]=t<=0?r[o++]:s[a++]}for(;o<r.length;)e[l++]=r[o++];for(;a<s.length;)e[l++]=s[a++];return e}e.create=function(e,t,n,i){return new dr(e,t,n,i)},e.is=function(e){let t=e;return!!(hr.defined(t)&&hr.string(t.uri)&&(hr.undefined(t.languageId)||hr.string(t.languageId))&&hr.uinteger(t.lineCount)&&hr.func(t.getText)&&hr.func(t.positionAt)&&hr.func(t.offsetAt))},e.applyEdits=function(e,n){let i=e.getText(),r=t(n,((e,t)=>{let n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),s=i.length;for(let t=r.length-1;t>=0;t--){let n=r[t],o=e.offsetAt(n.range.start),a=e.offsetAt(n.range.end);if(!(a<=s))throw new Error("Overlapping edit");i=i.substring(0,o)+n.newText+i.substring(a,i.length),s=o}return i}}(ar||(ar={}));var hr,dr=class{constructor(e,t,n,i){this._uri=e,this._languageId=t,this._version=n,this._content=i,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(void 0===this._lineOffsets){let e=[],t=this._content,n=!0;for(let i=0;i<t.length;i++){n&&(e.push(i),n=!1);let r=t.charAt(i);n="\r"===r||"\n"===r,"\r"===r&&i+1<t.length&&"\n"===t.charAt(i+1)&&i++}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,i=t.length;if(0===i)return Ut.create(0,e);for(;n<i;){let r=Math.floor((n+i)/2);t[r]>e?i=r:n=r+1}let r=n-1;return Ut.create(r,e-t[r])}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],i=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,i),n)}get lineCount(){return this.getLineOffsets().length}};!function(e){const t=Object.prototype.toString;e.defined=function(e){return"undefined"!==typeof e},e.undefined=function(e){return"undefined"===typeof e},e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===t.call(e)},e.number=function(e){return"[object Number]"===t.call(e)},e.numberRange=function(e,n,i){return"[object Number]"===t.call(e)&&n<=e&&e<=i},e.integer=function(e){return"[object Number]"===t.call(e)&&-2147483648<=e&&e<=2147483647},e.uinteger=function(e){return"[object Number]"===t.call(e)&&0<=e&&e<=2147483647},e.func=function(e){return"[object Function]"===t.call(e)},e.objectLiteral=function(e){return null!==e&&"object"===typeof e},e.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)}}(hr||(hr={}));var ur,pr,mr,fr,gr,br=class e{constructor(e,t,n,i){this._uri=e,this._languageId=t,this._version=n,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){const t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(t,n){for(let i of t)if(e.isIncremental(i)){const e=wr(i.range),t=this.offsetAt(e.start),n=this.offsetAt(e.end);this._content=this._content.substring(0,t)+i.text+this._content.substring(n,this._content.length);const r=Math.max(e.start.line,0),s=Math.max(e.end.line,0);let o=this._lineOffsets;const a=yr(i.text,!1,t);if(s-r===a.length)for(let i=0,c=a.length;i<c;i++)o[i+r+1]=a[i];else a.length<1e4?o.splice(r+1,s-r,...a):this._lineOffsets=o=o.slice(0,r+1).concat(a,o.slice(s+1));const l=i.text.length-(n-t);if(0!==l)for(let i=r+1+a.length,c=o.length;i<c;i++)o[i]=o[i]+l}else{if(!e.isFull(i))throw new Error("Unknown change event received");this._content=i.text,this._lineOffsets=void 0}this._version=n}getLineOffsets(){return void 0===this._lineOffsets&&(this._lineOffsets=yr(this._content,!0)),this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,i=t.length;if(0===i)return{line:0,character:e};for(;n<i;){let r=Math.floor((n+i)/2);t[r]>e?i=r:n=r+1}let r=n-1;return{line:r,character:e-t[r]}}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],i=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,i),n)}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){let t=e;return void 0!==t&&null!==t&&"string"===typeof t.text&&void 0!==t.range&&(void 0===t.rangeLength||"number"===typeof t.rangeLength)}static isFull(e){let t=e;return void 0!==t&&null!==t&&"string"===typeof t.text&&void 0===t.range&&void 0===t.rangeLength}};function vr(e,t){if(e.length<=1)return e;const n=e.length/2|0,i=e.slice(0,n),r=e.slice(n);vr(i,t),vr(r,t);let s=0,o=0,a=0;for(;s<i.length&&o<r.length;){let n=t(i[s],r[o]);e[a++]=n<=0?i[s++]:r[o++]}for(;s<i.length;)e[a++]=i[s++];for(;o<r.length;)e[a++]=r[o++];return e}function yr(e,t,n=0){const i=t?[n]:[];for(let r=0;r<e.length;r++){let t=e.charCodeAt(r);13!==t&&10!==t||(13===t&&r+1<e.length&&10===e.charCodeAt(r+1)&&r++,i.push(n+r+1))}return i}function wr(e){const 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 _r(e){const t=wr(e.range);return t!==e.range?{newText:e.newText,range:t}:e}(pr=ur||(ur={})).create=function(e,t,n,i){return new br(e,t,n,i)},pr.update=function(e,t,n){if(e instanceof br)return e.update(t,n),e;throw new Error("TextDocument.update: document must be created by TextDocument.create")},pr.applyEdits=function(e,t){let n=e.getText(),i=vr(t.map(_r),((e,t)=>{let n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),r=0;const s=[];for(const o of i){let t=e.offsetAt(o.range.start);if(t<r)throw new Error("Overlapping edit");t>r&&s.push(n.substring(r,t)),o.newText.length&&s.push(o.newText),r=e.offsetAt(o.range.end)}return s.push(n.substr(r)),s.join("")},(mr||(mr={})).LATEST={textDocument:{completion:{completionItem:{documentationFormat:[Un.Markdown,Un.PlainText]}},hover:{contentFormat:[Un.Markdown,Un.PlainText]}}},(gr=fr||(fr={}))[gr.Unknown=0]="Unknown",gr[gr.File=1]="File",gr[gr.Directory=2]="Directory",gr[gr.SymbolicLink=64]="SymbolicLink";var kr={E:"Edge",FF:"Firefox",S:"Safari",C:"Chrome",IE:"IE",O:"Opera"};function Cr(e){switch(e){case"experimental":return"\u26a0\ufe0f Property is experimental. Be cautious when using it.\ufe0f\n\n";case"nonstandard":return"\ud83d\udea8\ufe0f Property is nonstandard. Avoid using it.\n\n";case"obsolete":return"\ud83d\udea8\ufe0f\ufe0f\ufe0f Property is obsolete. Avoid using it.\n\n";default:return""}}function Sr(e,t,n){let i;if(i=t?{kind:"markdown",value:Fr(e,n)}:{kind:"plaintext",value:Er(e,n)},""!==i.value)return i}function xr(e){return(e=e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")).replace(/</g,"<").replace(/>/g,">")}function Er(e,t){if(!e.description||""===e.description)return"";if("string"!==typeof e.description)return e.description.value;let n="";if(!1!==t?.documentation){e.status&&(n+=Cr(e.status)),n+=e.description;const t=Lr(e.browsers);t&&(n+="\n("+t+")"),"syntax"in e&&(n+=`\n\nSyntax: ${e.syntax}`)}return e.references&&e.references.length>0&&!1!==t?.references&&(n.length>0&&(n+="\n\n"),n+=e.references.map((e=>`${e.name}: ${e.url}`)).join(" | ")),n}function Fr(e,t){if(!e.description||""===e.description)return"";let n="";if(!1!==t?.documentation){e.status&&(n+=Cr(e.status)),"string"===typeof e.description?n+=xr(e.description):n+=e.description.kind===Un.Markdown?e.description.value:xr(e.description.value);const t=Lr(e.browsers);t&&(n+="\n\n("+xr(t)+")"),"syntax"in e&&e.syntax&&(n+=`\n\nSyntax: ${xr(e.syntax)}`)}return e.references&&e.references.length>0&&!1!==t?.references&&(n.length>0&&(n+="\n\n"),n+=e.references.map((e=>`[${e.name}](${e.url})`)).join(" | ")),n}function Lr(e=[]){return 0===e.length?null:e.map((e=>{let t="";const n=e.match(/([A-Z]+)(\d+)?/),i=n[1],r=n[2];return i in kr&&(t+=kr[i]),r&&(t+=" "+r),t})).join(", ")}var Ir=/(^#([0-9A-F]{3}){1,2}$)|(^#([0-9A-F]{4}){1,2}$)/i,Tr=[{label:"rgb",func:"rgb($red, $green, $blue)",insertText:"rgb(${1:red}, ${2:green}, ${3:blue})",desc:Dt("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:Dt("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:Dt("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:Dt("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:Dt("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:Dt("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:Dt("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:Dt("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:Dt("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:Dt("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:Dt("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:Dt("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:Dt("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:Dt("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:Dt("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:Dt("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:Dt("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:Dt("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:Dt("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:Dt("Mix two colors together in a polar color space.")}],Nr=/^(rgb|rgba|hsl|hsla|hwb)$/i,Rr={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"},Dr=new RegExp(`^(${Object.keys(Rr).join("|")})$`,"i"),Ar={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."},Mr=new RegExp(`^(${Object.keys(Ar).join("|")})$`,"i");function Or(e,t){const n=e.getText().match(/^([-+]?[0-9]*\.?[0-9]+)(%?)$/);if(n){n[2]&&(t=100);const e=parseFloat(n[1])/t;if(e>=0&&e<=1)return e}throw new Error}function zr(e){const 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 180*parseFloat(t)/Math.PI%360;case"grad":return.9*parseFloat(t)%360;case"turn":return 360*parseFloat(t)%360;default:if("undefined"===typeof n[2])return parseFloat(t)%360}throw new Error}function Pr(e){return Ir.test(e)||Dr.test(e)||Mr.test(e)}function Br(e){return e<48?0:e<=57?e-48:(e<97&&(e+=32),e>=97&&e<=102?e-97+10:0)}function Wr(e){if("#"!==e[0])return null;switch(e.length){case 4:return{red:17*Br(e.charCodeAt(1))/255,green:17*Br(e.charCodeAt(2))/255,blue:17*Br(e.charCodeAt(3))/255,alpha:1};case 5:return{red:17*Br(e.charCodeAt(1))/255,green:17*Br(e.charCodeAt(2))/255,blue:17*Br(e.charCodeAt(3))/255,alpha:17*Br(e.charCodeAt(4))/255};case 7:return{red:(16*Br(e.charCodeAt(1))+Br(e.charCodeAt(2)))/255,green:(16*Br(e.charCodeAt(3))+Br(e.charCodeAt(4)))/255,blue:(16*Br(e.charCodeAt(5))+Br(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(16*Br(e.charCodeAt(1))+Br(e.charCodeAt(2)))/255,green:(16*Br(e.charCodeAt(3))+Br(e.charCodeAt(4)))/255,blue:(16*Br(e.charCodeAt(5))+Br(e.charCodeAt(6)))/255,alpha:(16*Br(e.charCodeAt(7))+Br(e.charCodeAt(8)))/255}}return null}function Vr(e,t,n,i=1){if(0===t)return{red:n,green:n,blue:n,alpha:i};{const r=(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},s=n<=.5?n*(t+1):n+t-n*t,o=2*n-s;return{red:r(o,s,(e/=60)+2),green:r(o,s,e),blue:r(o,s,e-2),alpha:i}}}function Ur(e){const t=e.red,n=e.green,i=e.blue,r=e.alpha,s=Math.max(t,n,i),o=Math.min(t,n,i);let a=0,l=0;const c=(o+s)/2,h=s-o;if(h>0){switch(l=Math.min(c<=.5?h/(2*c):h/(2-2*c),1),s){case t:a=(n-i)/h+(n<i?6:0);break;case n:a=(i-t)/h+2;break;case i:a=(t-n)/h+4}a*=60,a=Math.round(a)}return{h:a,s:l,l:c,a:r}}function $r(e){if(e.type===ee.HexColorValue){return Wr(e.getText())}if(e.type===ee.Function){const n=e,i=n.getName();let r=n.getArguments().getChildren();if(1===r.length){const e=r[0].getChildren();if(1===e.length&&e[0].type===ee.Expression&&(r=e[0].getChildren(),3===r.length)){const e=r[2];if(e instanceof ct){const t=e.getLeft(),n=e.getRight(),i=e.getOperator();t&&n&&i&&i.matches("/")&&(r=[r[0],r[1],t,n])}}}if(!i||r.length<3||r.length>4)return null;try{const e=4===r.length?Or(r[3],1):1;if("rgb"===i||"rgba"===i)return{red:Or(r[0],255),green:Or(r[1],255),blue:Or(r[2],255),alpha:e};if("hsl"===i||"hsla"===i){const t=zr(r[0]),n=Or(r[1],100);return Vr(t,n,Or(r[2],100),e)}if("hwb"===i){const t=zr(r[0]),n=Or(r[1],100);return function(e,t,n,i=1){if(t+n>=1){const e=t/(t+n);return{red:e,green:e,blue:e,alpha:i}}const r=Vr(e,1,.5,i);let s=r.red;s*=1-t-n,s+=t;let o=r.green;o*=1-t-n,o+=t;let a=r.blue;return a*=1-t-n,a+=t,{red:s,green:o,blue:a,alpha:i}}(t,n,Or(r[2],100),e)}}catch(t){return null}}else if(e.type===ee.Identifier){if(e.parent&&e.parent.type!==ee.Term)return null;const t=e.parent;if(t&&t.parent&&t.parent.type===ee.BinaryExpression){const e=t.parent;if(e.parent&&e.parent.type===ee.ListEntry&&e.parent.key===e)return null}const n=e.getText().toLowerCase();if("none"===n)return null;const i=Rr[n];if(i)return Wr(i)}return null}var qr={bottom:"Computes to \u2018100%\u2019 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 \u201850%\u2019 (\u2018left 50%\u2019) for the horizontal position if the horizontal position is not otherwise specified, or \u201850%\u2019 (\u2018top 50%\u2019) for the vertical position if it is.",left:"Computes to \u20180%\u2019 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 \u2018100%\u2019 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 \u20180%\u2019 for the vertical position if one or two values are given, otherwise specifies the top edge as the origin for the next offset."},jr={"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 \u2018repeat no-repeat\u2019.","repeat-y":"Computes to \u2018no-repeat repeat\u2019.",round:"Repeated as often as will fit within the background positioning area. If it doesn\u2019t 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."},Kr={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 \u2018none\u2019, 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."},Hr=["medium","thick","thin"],Gr={"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."},Qr={"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."},Jr={initial:"Represents the value specified as the property\u2019s initial value.",inherit:"Represents the computed value of the property on the element\u2019s parent.",unset:"Acts as either `inherit` or `initial`, depending on whether the property is inherited or not."},Yr={"var()":"Evaluates the value of a custom variable.","calc()":"Evaluates an mathematical expression. The following operators can be used: + - * /."},Xr={"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\u2019s position and the first specified color-stop\u2019s 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\u2019s position and the first specified color-stop\u2019s position."},Zr={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 \u201cstart\u201d or \u201cend\u201d.","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."},es={"circle()":"Defines a circle.","ellipse()":"Defines an ellipse.","inset()":"Defines an inset rectangle.","polygon()":"Defines a polygon."},ts={length:["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"],angle:["deg","rad","grad","turn"],time:["ms","s"],frequency:["Hz","kHz"],resolution:["dpi","dpcm","dppx"],percentage:["%","fr"]},ns=["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"],is=["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"],rs=["@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 ss(e){return Object.keys(e).map((t=>e[t]))}function os(e){return"undefined"!==typeof e}var as=class{constructor(e=new re){this.keyframeRegex=/^@(\-(webkit|ms|moz|o)\-)?keyframes$/i,this.scanner=e,this.token={type:o.EOF,offset:-1,len:0,text:""},this.prevToken=void 0}peekIdent(e){return o.Ident===this.token.type&&e.length===this.token.text.length&&e===this.token.text.toLowerCase()}peekKeyword(e){return o.AtKeyword===this.token.type&&e.length===this.token.text.length&&e===this.token.text.toLowerCase()}peekDelim(e){return o.Delim===this.token.type&&e===this.token.text}peek(e){return e===this.token.type}peekOne(...e){return-1!==e.indexOf(this.token.type)}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(){const e=this.scanner.tryScanUnicode();return!!e&&(this.prevToken=e,this.token=this.scanner.scan(),!0)}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){const t=this.mark(),n=e();return n||(this.restoreAtMark(t),null)}acceptOneKeyword(e){if(o.AtKeyword===this.token.type)for(const 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)}acceptKeyword(e){return!!this.peekKeyword(e)&&(this.consumeToken(),!0)}acceptDelim(e){return!!this.peekDelim(e)&&(this.consumeToken(),!0)}acceptRegexp(e){return!!e.test(this.token.text)&&(this.consumeToken(),!0)}_parseRegexp(e){let t=this.createNode(ee.Identifier);do{}while(this.acceptRegexp(e));return this.finish(t)}acceptUnquotedString(){const e=this.scanner.pos();this.scanner.goBackTo(this.token.offset);const t=this.scanner.scanUnquotedString();return t?(this.token=t,this.consumeToken(),!0):(this.scanner.goBackTo(e),!1)}resync(e,t){for(;;){if(e&&-1!==e.indexOf(this.token.type))return this.consumeToken(),!0;if(t&&-1!==t.indexOf(this.token.type))return!0;if(this.token.type===o.EOF)return!1;this.token=this.scanner.scan()}}createNode(e){return new pe(this.token.offset,this.token.len,e)}create(e){return new e(this.token.offset,this.token.len)}finish(e,t,n,i){if(!(e instanceof me)&&(t&&this.markError(e,t,n,i),this.prevToken)){const t=this.prevToken.offset+this.prevToken.len;e.length=t>e.offset?t-e.offset:0}return e}markError(e,t,n,i){this.token!==this.lastErrorToken&&(e.addIssue(new Nt(e,t,de.Error,void 0,this.token.offset,this.token.len)),this.lastErrorToken=this.token),(n||i)&&this.resync(n,i)}parseStylesheet(e){const t=e.version,n=e.getText();return this.internalParse(n,this._parseStylesheet,((i,r)=>{if(e.version!==t)throw new Error("Underlying model has changed, AST is no longer valid");return n.substr(i,r)}))}internalParse(e,t,n){this.scanner.setSource(e),this.token=this.scanner.scan();const i=t.bind(this)();return i&&(i.textProvider=n||((t,n)=>e.substr(t,n))),i}_parseStylesheet(){const e=this.create(be);for(;e.addChild(this._parseStylesheetStart()););let t=!1;do{let n=!1;do{n=!1;const i=this._parseStylesheetStatement();for(i&&(e.addChild(i),n=!0,t=!1,this.peek(o.EOF)||!this._needsSemicolonAfter(i)||this.accept(o.SemiColon)||this.markError(e,cr.SemiColonExpected));this.accept(o.SemiColon)||this.accept(o.CDO)||this.accept(o.CDC);)n=!0,t=!1}while(n);if(this.peek(o.EOF))break;t||(this.peek(o.AtKeyword)?this.markError(e,cr.UnknownAtRule):this.markError(e,cr.RuleOrSelectorExpected),t=!0),this.consumeToken()}while(!this.peek(o.EOF));return this.finish(e)}_parseStylesheetStart(){return this._parseCharset()}_parseStylesheetStatement(e=!1){return this.peek(o.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){const t=this.mark();if(this._parseSelector(e)){for(;this.accept(o.Comma)&&this._parseSelector(e););if(this.accept(o.CurlyL))return this.restoreAtMark(t),this._parseRuleset(e)}return this.restoreAtMark(t),null}_parseRuleset(e=!1){const t=this.create(we),n=t.getSelectors();if(!n.addChild(this._parseSelector(e)))return null;for(;this.accept(o.Comma);)if(!n.addChild(this._parseSelector(e)))return this.finish(t,cr.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(o.AtKeyword)?this._parseRuleSetDeclarationAtStatement():this.peek(o.Ident)?this._tryParseRuleset(!0)||this._parseDeclaration():this._parseRuleset(!0)}_needsSemicolonAfter(e){switch(e.type){case ee.Keyframe:case ee.ViewPort:case ee.Media:case ee.Ruleset:case ee.Namespace:case ee.If:case ee.For:case ee.Each:case ee.While:case ee.MixinDeclaration:case ee.FunctionDeclaration:case ee.MixinContentDeclaration:return!1;case ee.ExtendsReference:case ee.MixinContentReference:case ee.ReturnStatement:case ee.MediaQuery:case ee.Debug:case ee.Import:case ee.AtApplyRule:case ee.CustomPropertyDeclaration:return!0;case ee.VariableDeclaration:return e.needsSemicolon;case ee.MixinReference:return!e.getContent();case ee.Declaration:return!e.getNestedProperties()}return!1}_parseDeclarations(e){const t=this.create(ve);if(!this.accept(o.CurlyL))return null;let n=e();for(;t.addChild(n)&&!this.peek(o.CurlyR);){if(this._needsSemicolonAfter(n)&&!this.accept(o.SemiColon))return this.finish(t,cr.SemiColonExpected,[o.SemiColon,o.CurlyR]);for(n&&this.prevToken&&this.prevToken.type===o.SemiColon&&(n.semicolonPosition=this.prevToken.offset);this.accept(o.SemiColon););n=e()}return this.accept(o.CurlyR)?this.finish(t):this.finish(t,cr.RightCurlyExpected,[o.CurlyR,o.SemiColon])}_parseBody(e,t){return e.setDeclarations(this._parseDeclarations(t))?this.finish(e):this.finish(e,cr.LeftCurlyExpected,[o.CurlyR,o.SemiColon])}_parseSelector(e){const t=this.create(_e);let 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){const t=this._tryParseCustomPropertyDeclaration(e);if(t)return t;const n=this.create(xe);return n.setProperty(this._parseProperty())?this.accept(o.Colon)?(this.prevToken&&(n.colonPosition=this.prevToken.offset),n.setValue(this._parseExpr())?(n.addChild(this._parsePrio()),this.peek(o.SemiColon)&&(n.semicolonPosition=this.token.offset),this.finish(n)):this.finish(n,cr.PropertyValueExpected)):this.finish(n,cr.ColonExpected,[o.Colon],e||[o.SemiColon]):null}_tryParseCustomPropertyDeclaration(e){if(!this.peekRegExp(o.Ident,/^--/))return null;const t=this.create(Ee);if(!t.setProperty(this._parseProperty()))return null;if(!this.accept(o.Colon))return this.finish(t,cr.ColonExpected,[o.Colon]);this.prevToken&&(t.colonPosition=this.prevToken.offset);const n=this.mark();if(this.peek(o.CurlyL)){const e=this.create(Se),i=this._parseDeclarations(this._parseRuleSetDeclaration.bind(this));if(e.setDeclarations(i)&&!i.isErroneous(!0)&&(e.addChild(this._parsePrio()),this.peek(o.SemiColon)))return this.finish(e),t.setPropertySet(e),t.semicolonPosition=this.token.offset,this.finish(t);this.restoreAtMark(n)}const i=this._parseExpr();return i&&!i.isErroneous(!0)&&(this._parsePrio(),this.peekOne(...e||[],o.SemiColon,o.EOF))?(t.setValue(i),this.peek(o.SemiColon)&&(t.semicolonPosition=this.token.offset),this.finish(t)):(this.restoreAtMark(n),t.addChild(this._parseCustomPropertyValue(e)),t.addChild(this._parsePrio()),os(t.colonPosition)&&this.token.offset===t.colonPosition+1?this.finish(t,cr.PropertyValueExpected):this.finish(t))}_parseCustomPropertyValue(e=[o.CurlyR]){const t=this.create(pe),n=()=>0===r&&0===s&&0===a,i=()=>-1!==e.indexOf(this.token.type);let r=0,s=0,a=0;e:for(;;){switch(this.token.type){case o.SemiColon:case o.Exclamation:if(n())break e;break;case o.CurlyL:r++;break;case o.CurlyR:if(r--,r<0){if(i()&&0===s&&0===a)break e;return this.finish(t,cr.LeftCurlyExpected)}break;case o.ParenthesisL:s++;break;case o.ParenthesisR:if(s--,s<0){if(i()&&0===a&&0===r)break e;return this.finish(t,cr.LeftParenthesisExpected)}break;case o.BracketL:a++;break;case o.BracketR:if(a--,a<0)return this.finish(t,cr.LeftSquareBracketExpected);break;case o.BadString:break e;case o.EOF:let e=cr.RightCurlyExpected;return a>0?e=cr.RightSquareBracketExpected:s>0&&(e=cr.RightParenthesisExpected),this.finish(t,e)}this.consumeToken()}return this.finish(t)}_tryToParseDeclaration(e){const t=this.mark();return this._parseProperty()&&this.accept(o.Colon)?(this.restoreAtMark(t),this._parseDeclaration(e)):(this.restoreAtMark(t),null)}_parseProperty(){const e=this.create(Fe),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(o.Charset))return null;const e=this.create(pe);return this.consumeToken(),this.accept(o.String)?this.accept(o.SemiColon)?this.finish(e):this.finish(e,cr.SemiColonExpected):this.finish(e,cr.IdentifierExpected)}_parseImport(){if(!this.peekKeyword("@import"))return null;const e=this.create($e);return this.consumeToken(),e.addChild(this._parseURILiteral())||e.addChild(this._parseStringLiteral())?this._completeParseImport(e):this.finish(e,cr.URIOrStringExpected)}_completeParseImport(e){if(this.acceptIdent("layer")&&this.accept(o.ParenthesisL)){if(!e.addChild(this._parseLayerName()))return this.finish(e,cr.IdentifierExpected,[o.SemiColon]);if(!this.accept(o.ParenthesisR))return this.finish(e,cr.RightParenthesisExpected,[o.ParenthesisR],[])}return this.acceptIdent("supports")&&this.accept(o.ParenthesisL)&&(e.addChild(this._tryToParseDeclaration()||this._parseSupportsCondition()),!this.accept(o.ParenthesisR))?this.finish(e,cr.RightParenthesisExpected,[o.ParenthesisR],[]):(this.peek(o.SemiColon)||this.peek(o.EOF)||e.setMedialist(this._parseMediaQueryList()),this.finish(e))}_parseNamespace(){if(!this.peekKeyword("@namespace"))return null;const e=this.create(Ge);return this.consumeToken(),e.addChild(this._parseURILiteral())||(e.addChild(this._parseIdent()),e.addChild(this._parseURILiteral())||e.addChild(this._parseStringLiteral()))?this.accept(o.SemiColon)?this.finish(e):this.finish(e,cr.SemiColonExpected):this.finish(e,cr.URIExpected,[o.SemiColon])}_parseFontFace(){if(!this.peekKeyword("@font-face"))return null;const e=this.create(Be);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;const e=this.create(Pe);return this.consumeToken(),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_parseKeyframe(){if(!this.peekRegExp(o.AtKeyword,this.keyframeRegex))return null;const e=this.create(Ve),t=this.create(pe);return this.consumeToken(),e.setKeyword(this.finish(t)),t.matches("@-ms-keyframes")&&this.markError(t,cr.UnknownKeyword),e.setIdentifier(this._parseKeyframeIdent())?this._parseBody(e,this._parseKeyframeSelector.bind(this)):this.finish(e,cr.IdentifierExpected,[o.CurlyR])}_parseKeyframeIdent(){return this._parseIdent([ne.Keyframe])}_parseKeyframeSelector(){const e=this.create(Ue);let t=!1;if(e.addChild(this._parseIdent())&&(t=!0),this.accept(o.Percentage)&&(t=!0),!t)return null;for(;this.accept(o.Comma);)if(t=!1,e.addChild(this._parseIdent())&&(t=!0),this.accept(o.Percentage)&&(t=!0),!t)return this.finish(e,cr.PercentageExpected);return this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_tryParseKeyframeSelector(){const e=this.create(Ue),t=this.mark();let n=!1;if(e.addChild(this._parseIdent())&&(n=!0),this.accept(o.Percentage)&&(n=!0),!n)return null;for(;this.accept(o.Comma);)if(n=!1,e.addChild(this._parseIdent())&&(n=!0),this.accept(o.Percentage)&&(n=!0),!n)return this.restoreAtMark(t),null;return this.peek(o.CurlyL)?this._parseBody(e,this._parseRuleSetDeclaration.bind(this)):(this.restoreAtMark(t),null)}_parsePropertyAtRule(){if(!this.peekKeyword("@property"))return null;const e=this.create(Xe);return this.consumeToken(),this.peekRegExp(o.Ident,/^--/)&&e.setName(this._parseIdent([ne.Property]))?this._parseBody(e,this._parseDeclaration.bind(this)):this.finish(e,cr.IdentifierExpected)}_parseLayer(e=!1){if(!this.peekKeyword("@layer"))return null;const t=this.create(Ye);this.consumeToken();const n=this._parseLayerNameList();return n&&t.setNames(n),n&&1!==n.getChildren().length||!this.peek(o.CurlyL)?this.accept(o.SemiColon)?this.finish(t):this.finish(t,cr.SemiColonExpected):this._parseBody(t,this._parseLayerDeclaration.bind(this,e))}_parseLayerDeclaration(e=!1){return e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)}_parseLayerNameList(){const e=this.createNode(ee.LayerNameList);if(!e.addChild(this._parseLayerName()))return null;for(;this.accept(o.Comma);)if(!e.addChild(this._parseLayerName()))return this.finish(e,cr.IdentifierExpected);return this.finish(e)}_parseLayerName(){const e=this.createNode(ee.LayerName);if(!e.addChild(this._parseIdent()))return null;for(;!this.hasWhitespace()&&this.acceptDelim(".");)if(this.hasWhitespace()||!e.addChild(this._parseIdent()))return this.finish(e,cr.IdentifierExpected);return this.finish(e)}_parseSupports(e=!1){if(!this.peekKeyword("@supports"))return null;const t=this.create(Je);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(){const e=this.create(st);if(this.acceptIdent("not"))e.addChild(this._parseSupportsConditionInParens());else if(e.addChild(this._parseSupportsConditionInParens()),this.peekRegExp(o.Ident,/^(and|or)$/i)){const t=this.token.text.toLowerCase();for(;this.acceptIdent(t);)e.addChild(this._parseSupportsConditionInParens())}return this.finish(e)}_parseSupportsConditionInParens(){const e=this.create(st);if(this.accept(o.ParenthesisL))return this.prevToken&&(e.lParent=this.prevToken.offset),e.addChild(this._tryToParseDeclaration([o.ParenthesisR]))||this._parseSupportsCondition()?this.accept(o.ParenthesisR)?(this.prevToken&&(e.rParent=this.prevToken.offset),this.finish(e)):this.finish(e,cr.RightParenthesisExpected,[o.ParenthesisR],[]):this.finish(e,cr.ConditionExpected);if(this.peek(o.Ident)){const t=this.mark();if(this.consumeToken(),!this.hasWhitespace()&&this.accept(o.ParenthesisL)){let t=1;for(;this.token.type!==o.EOF&&0!==t;)this.token.type===o.ParenthesisL?t++:this.token.type===o.ParenthesisR&&t--,this.consumeToken();return this.finish(e)}this.restoreAtMark(t)}return this.finish(e,cr.LeftParenthesisExpected,[],[o.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;const t=this.create(Qe);return this.consumeToken(),t.addChild(this._parseMediaQueryList())?this._parseBody(t,this._parseMediaDeclaration.bind(this,e)):this.finish(t,cr.MediaQueryExpected)}_parseMediaQueryList(){const e=this.create(tt);if(!e.addChild(this._parseMediaQuery()))return this.finish(e,cr.MediaQueryExpected);for(;this.accept(o.Comma);)if(!e.addChild(this._parseMediaQuery()))return this.finish(e,cr.MediaQueryExpected);return this.finish(e)}_parseMediaQuery(){const e=this.create(nt),t=this.mark();if(this.acceptIdent("not"),this.peek(o.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(){const e=this.mark(),t=this.create(pt);return this._parseNumeric()?this.acceptDelim("/")?this._parseNumeric()?this.finish(t):this.finish(t,cr.NumberExpected):(this.restoreAtMark(e),null):null}_parseMediaCondition(){const e=this.create(it);this.acceptIdent("not");let t=!0;for(;t;){if(!this.accept(o.ParenthesisL))return this.finish(e,cr.LeftParenthesisExpected,[],[o.CurlyL]);if(this.peek(o.ParenthesisL)||this.peekIdent("not")?e.addChild(this._parseMediaCondition()):e.addChild(this._parseMediaFeature()),!this.accept(o.ParenthesisR))return this.finish(e,cr.RightParenthesisExpected,[],[o.CurlyL]);t=this.acceptIdent("and")||this.acceptIdent("or")}return this.finish(e)}_parseMediaFeature(){const e=[o.ParenthesisR],t=this.create(rt);if(t.addChild(this._parseMediaFeatureName())){if(this.accept(o.Colon)){if(!t.addChild(this._parseMediaFeatureValue()))return this.finish(t,cr.TermExpected,[],e)}else if(this._parseMediaFeatureRangeOperator()){if(!t.addChild(this._parseMediaFeatureValue()))return this.finish(t,cr.TermExpected,[],e);if(this._parseMediaFeatureRangeOperator()&&!t.addChild(this._parseMediaFeatureValue()))return this.finish(t,cr.TermExpected,[],e)}}else{if(!t.addChild(this._parseMediaFeatureValue()))return this.finish(t,cr.IdentifierExpected,[],e);if(!this._parseMediaFeatureRangeOperator())return this.finish(t,cr.OperatorExpected,[],e);if(!t.addChild(this._parseMediaFeatureName()))return this.finish(t,cr.IdentifierExpected,[],e);if(this._parseMediaFeatureRangeOperator()&&!t.addChild(this._parseMediaFeatureValue()))return this.finish(t,cr.TermExpected,[],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(){const e=this.create(pe);return e.addChild(this._parseIdent())?this.finish(e):null}_parsePageDeclaration(){return this._parsePageMarginBox()||this._parseRuleSetDeclaration()}_parsePage(){if(!this.peekKeyword("@page"))return null;const e=this.create(ot);if(this.consumeToken(),e.addChild(this._parsePageSelector()))for(;this.accept(o.Comma);)if(!e.addChild(this._parsePageSelector()))return this.finish(e,cr.IdentifierExpected);return this._parseBody(e,this._parsePageDeclaration.bind(this))}_parsePageMarginBox(){if(!this.peek(o.AtKeyword))return null;const e=this.create(at);return this.acceptOneKeyword(rs)||this.markError(e,cr.UnknownAtRule,[],[o.CurlyL]),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_parsePageSelector(){if(!this.peek(o.Ident)&&!this.peek(o.Colon))return null;const e=this.create(pe);return e.addChild(this._parseIdent()),this.accept(o.Colon)&&!e.addChild(this._parseIdent())?this.finish(e,cr.IdentifierExpected):this.finish(e)}_parseDocument(){if(!this.peekKeyword("@-moz-document"))return null;const e=this.create(Ze);return this.consumeToken(),this.resync([],[o.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;const t=this.create(et);return this.consumeToken(),t.addChild(this._parseIdent()),t.addChild(this._parseContainerQuery()),this._parseBody(t,this._parseContainerDeclaration.bind(this,e))}_parseContainerQuery(){const e=this.create(pe);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(){const e=this.create(pe);if(this.accept(o.ParenthesisL)){if(this.peekIdent("not")||this.peek(o.ParenthesisL)?e.addChild(this._parseContainerQuery()):e.addChild(this._parseMediaFeature()),!this.accept(o.ParenthesisR))return this.finish(e,cr.RightParenthesisExpected,[],[o.CurlyL])}else{if(!this.acceptIdent("style"))return this.finish(e,cr.LeftParenthesisExpected,[],[o.CurlyL]);if(this.hasWhitespace()||!this.accept(o.ParenthesisL))return this.finish(e,cr.LeftParenthesisExpected,[],[o.CurlyL]);if(e.addChild(this._parseStyleQuery()),!this.accept(o.ParenthesisR))return this.finish(e,cr.RightParenthesisExpected,[],[o.CurlyL])}return this.finish(e)}_parseStyleQuery(){const e=this.create(pe);if(this.acceptIdent("not"))e.addChild(this._parseStyleInParens());else if(this.peek(o.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([o.ParenthesisR]));return this.finish(e)}_parseStyleInParens(){const e=this.create(pe);return this.accept(o.ParenthesisL)?(e.addChild(this._parseStyleQuery()),this.accept(o.ParenthesisR)?this.finish(e):this.finish(e,cr.RightParenthesisExpected,[],[o.CurlyL])):this.finish(e,cr.LeftParenthesisExpected,[],[o.CurlyL])}_parseUnknownAtRule(){if(!this.peek(o.AtKeyword))return null;const e=this.create(Et);e.addChild(this._parseUnknownAtRuleName());let t=0,n=0,i=0,r=0;e:for(;;){switch(this.token.type){case o.SemiColon:if(0===n&&0===i&&0===r)break e;break;case o.EOF:return n>0?this.finish(e,cr.RightCurlyExpected):r>0?this.finish(e,cr.RightSquareBracketExpected):i>0?this.finish(e,cr.RightParenthesisExpected):this.finish(e);case o.CurlyL:t++,n++;break;case o.CurlyR:if(n--,t>0&&0===n){if(this.consumeToken(),r>0)return this.finish(e,cr.RightSquareBracketExpected);if(i>0)return this.finish(e,cr.RightParenthesisExpected);break e}if(n<0){if(0===i&&0===r)break e;return this.finish(e,cr.LeftCurlyExpected)}break;case o.ParenthesisL:i++;break;case o.ParenthesisR:if(i--,i<0)return this.finish(e,cr.LeftParenthesisExpected);break;case o.BracketL:r++;break;case o.BracketR:if(r--,r<0)return this.finish(e,cr.LeftSquareBracketExpected)}this.consumeToken()}return e}_parseUnknownAtRuleName(){const e=this.create(pe);return this.accept(o.AtKeyword)?this.finish(e):e}_parseOperator(){if(this.peekDelim("/")||this.peekDelim("*")||this.peekDelim("+")||this.peekDelim("-")||this.peek(o.Dashmatch)||this.peek(o.Includes)||this.peek(o.SubstringOperator)||this.peek(o.PrefixOperator)||this.peek(o.SuffixOperator)||this.peekDelim("=")){const e=this.createNode(ee.Operator);return this.consumeToken(),this.finish(e)}return null}_parseUnaryOperator(){if(!this.peekDelim("+")&&!this.peekDelim("-"))return null;const e=this.create(pe);return this.consumeToken(),this.finish(e)}_parseCombinator(){if(this.peekDelim(">")){const e=this.create(pe);this.consumeToken();const t=this.mark();if(!this.hasWhitespace()&&this.acceptDelim(">")){if(!this.hasWhitespace()&&this.acceptDelim(">"))return e.type=ee.SelectorCombinatorShadowPiercingDescendant,this.finish(e);this.restoreAtMark(t)}return e.type=ee.SelectorCombinatorParent,this.finish(e)}if(this.peekDelim("+")){const e=this.create(pe);return this.consumeToken(),e.type=ee.SelectorCombinatorSibling,this.finish(e)}if(this.peekDelim("~")){const e=this.create(pe);return this.consumeToken(),e.type=ee.SelectorCombinatorAllSiblings,this.finish(e)}if(this.peekDelim("/")){const e=this.create(pe);this.consumeToken();const t=this.mark();if(!this.hasWhitespace()&&this.acceptIdent("deep")&&!this.hasWhitespace()&&this.acceptDelim("/"))return e.type=ee.SelectorCombinatorShadowPiercingDescendant,this.finish(e);this.restoreAtMark(t)}return null}_parseSimpleSelector(){const e=this.create(ke);let t=0;for(e.addChild(this._parseElementName()||this._parseNestingSelector())&&t++;(0===t||!this.hasWhitespace())&&e.addChild(this._parseSimpleSelectorBody());)t++;return t>0?this.finish(e):null}_parseNestingSelector(){if(this.peekDelim("&")){const e=this.createNode(ee.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(o.Hash)&&!this.peekDelim("#"))return null;const e=this.createNode(ee.IdentifierSelector);if(this.acceptDelim("#")){if(this.hasWhitespace()||!e.addChild(this._parseSelectorIdent()))return this.finish(e,cr.IdentifierExpected)}else this.consumeToken();return this.finish(e)}_parseClass(){if(!this.peekDelim("."))return null;const e=this.createNode(ee.ClassSelector);return this.consumeToken(),this.hasWhitespace()||!e.addChild(this._parseSelectorIdent())?this.finish(e,cr.IdentifierExpected):this.finish(e)}_parseElementName(){const e=this.mark(),t=this.createNode(ee.ElementNameSelector);return t.addChild(this._parseNamespacePrefix()),t.addChild(this._parseSelectorIdent())||this.acceptDelim("*")?this.finish(t):(this.restoreAtMark(e),null)}_parseNamespacePrefix(){const e=this.mark(),t=this.createNode(ee.NamespacePrefix);return!t.addChild(this._parseIdent())&&this.acceptDelim("*"),this.acceptDelim("|")?this.finish(t):(this.restoreAtMark(e),null)}_parseAttrib(){if(!this.peek(o.BracketL))return null;const e=this.create(dt);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(o.BracketR)?this.finish(e):this.finish(e,cr.RightSquareBracketExpected)):this.finish(e,cr.IdentifierExpected)}_parsePseudo(){const e=this._tryParsePseudoIdentifier();if(e){if(!this.hasWhitespace()&&this.accept(o.ParenthesisL)){const t=()=>{const e=this.create(pe);if(!e.addChild(this._parseSelector(!0)))return null;for(;this.accept(o.Comma)&&e.addChild(this._parseSelector(!0)););return this.peek(o.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,cr.SelectorExpected);if(!this.accept(o.ParenthesisR))return this.finish(e,cr.RightParenthesisExpected)}return this.finish(e)}return null}_tryParsePseudoIdentifier(){if(!this.peek(o.Colon))return null;const e=this.mark(),t=this.createNode(ee.PseudoSelector);return this.consumeToken(),this.hasWhitespace()?(this.restoreAtMark(e),null):(this.accept(o.Colon),this.hasWhitespace()||!t.addChild(this._parseIdent())?this.finish(t,cr.IdentifierExpected):this.finish(t))}_tryParsePrio(){const e=this.mark(),t=this._parsePrio();return t||(this.restoreAtMark(e),null)}_parsePrio(){if(!this.peek(o.Exclamation))return null;const e=this.createNode(ee.Prio);return this.accept(o.Exclamation)&&this.acceptIdent("important")?this.finish(e):null}_parseExpr(e=!1){const t=this.create(lt);if(!t.addChild(this._parseBinaryExpr()))return null;for(;;){if(this.peek(o.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;const e=this.create(fe);return this.acceptUnicodeRange()?this.finish(e):null}_parseNamedLine(){if(!this.peek(o.BracketL))return null;const e=this.createNode(ee.GridLine);for(this.consumeToken();e.addChild(this._parseIdent()););return this.accept(o.BracketR)?this.finish(e):this.finish(e,cr.RightSquareBracketExpected)}_parseBinaryExpr(e,t){let n=this.create(ct);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,cr.TermExpected);n=this.finish(n);const i=this._parseOperator();return i&&(n=this._parseBinaryExpr(n,i)),this.finish(n)}_parseTerm(){let e=this.create(ht);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(o.ParenthesisL))return null;const e=this.create(pe);return this.consumeToken(),e.addChild(this._parseExpr()),this.accept(o.ParenthesisR)?this.finish(e):this.finish(e,cr.RightParenthesisExpected)}_parseNumeric(){if(this.peek(o.Num)||this.peek(o.Percentage)||this.peek(o.Resolution)||this.peek(o.Length)||this.peek(o.EMS)||this.peek(o.EXS)||this.peek(o.Angle)||this.peek(o.Time)||this.peek(o.Dimension)||this.peek(o.ContainerQueryLength)||this.peek(o.Freq)){const e=this.create(bt);return this.consumeToken(),this.finish(e)}return null}_parseStringLiteral(){if(!this.peek(o.String)&&!this.peek(o.BadString))return null;const e=this.createNode(ee.StringLiteral);return this.consumeToken(),this.finish(e)}_parseURILiteral(){if(!this.peekRegExp(o.Ident,/^url(-prefix)?$/i))return null;const e=this.mark(),t=this.createNode(ee.URILiteral);return this.accept(o.Ident),this.hasWhitespace()||!this.peek(o.ParenthesisL)?(this.restoreAtMark(e),null):(this.scanner.inURL=!0,this.consumeToken(),t.addChild(this._parseURLArgument()),this.scanner.inURL=!1,this.accept(o.ParenthesisR)?this.finish(t):this.finish(t,cr.RightParenthesisExpected))}_parseURLArgument(){const e=this.create(pe);return this.accept(o.String)||this.accept(o.BadString)||this.acceptUnquotedString()?this.finish(e):null}_parseIdent(e){if(!this.peek(o.Ident))return null;const t=this.create(ge);return e&&(t.referenceTypes=e),t.isCustomProperty=this.peekRegExp(o.Ident,/^--/),this.consumeToken(),this.finish(t)}_parseFunction(){const e=this.mark(),t=this.create(Ie);if(!t.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(o.ParenthesisL))return this.restoreAtMark(e),null;if(t.getArguments().addChild(this._parseFunctionArgument()))for(;this.accept(o.Comma)&&!this.peek(o.ParenthesisR);)t.getArguments().addChild(this._parseFunctionArgument())||this.markError(t,cr.ExpressionExpected);return this.accept(o.ParenthesisR)?this.finish(t):this.finish(t,cr.RightParenthesisExpected)}_parseFunctionIdentifier(){if(!this.peek(o.Ident))return null;const e=this.create(ge);if(e.referenceTypes=[ne.Function],this.acceptIdent("progid")){if(this.accept(o.Colon))for(;this.accept(o.Ident)&&this.acceptDelim("."););return this.finish(e)}return this.consumeToken(),this.finish(e)}_parseFunctionArgument(){const e=this.create(Ne);return e.setValue(this._parseExpr(!0))?this.finish(e):null}_parseHexColor(){if(this.peekRegExp(o.Hash,/^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/g)){const e=this.create(ut);return this.consumeToken(),this.finish(e)}return null}};function ls(e,t){return-1!==e.indexOf(t)}function cs(...e){const t=[];for(const n of e)for(const e of n)ls(t,e)||t.push(e);return t}var hs,ds=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){const n=e+t,i=function(e,t){let n=0,i=e.length;if(0===i)return 0;for(;n<i;){let r=Math.floor((n+i)/2);t(e[r])?i=r:n=r+1}return n}(this.children,(e=>e.offset>n));if(0===i)return this;const r=this.children[i-1];return r.offset<=e&&r.offset+r.length>=e+t?r.findInScope(e,t):this}addSymbol(e){this.symbols.push(e)}getSymbol(e,t){for(let n=0;n<this.symbols.length;n++){const i=this.symbols[n];if(i.name===e&&i.type===t)return i}return null}getSymbols(){return this.symbols}},us=class extends ds{constructor(){super(0,Number.MAX_VALUE)}},ps=class{constructor(e,t,n,i){this.name=e,this.value=t,this.node=n,this.type=i}},ms=class{constructor(e){this.scope=e}addSymbol(e,t,n,i){if(-1!==e.offset){const r=this.scope.findScope(e.offset,e.length);r&&r.addSymbol(new ps(t,n,e,i))}}addScope(e){if(-1!==e.offset){const t=this.scope.findScope(e.offset,e.length);if(t&&(t.offset!==e.offset||t.length!==e.length)){const n=new ds(e.offset,e.length);return t.addChild(n),n}return t}return null}addSymbolToChildScope(e,t,n,i,r){if(e&&-1!==e.offset){const s=this.addScope(e);s&&s.addSymbol(new ps(n,i,t,r))}}visitNode(e){switch(e.type){case ee.Keyframe:return this.addSymbol(e,e.getName(),void 0,ne.Keyframe),!0;case ee.CustomPropertyDeclaration:return this.visitCustomPropertyDeclarationNode(e);case ee.VariableDeclaration:return this.visitVariableDeclarationNode(e);case ee.Ruleset:return this.visitRuleSet(e);case ee.MixinDeclaration:return this.addSymbol(e,e.getName(),void 0,ne.Mixin),!0;case ee.FunctionDeclaration:return this.addSymbol(e,e.getName(),void 0,ne.Function),!0;case ee.FunctionParameter:return this.visitFunctionParameterNode(e);case ee.Declarations:return this.addScope(e),!0;case ee.For:const t=e,n=t.getDeclarations();return n&&t.variable&&this.addSymbolToChildScope(n,t.variable,t.variable.getName(),void 0,ne.Variable),!0;case ee.Each:{const t=e,n=t.getDeclarations();if(n){const e=t.getVariables().getChildren();for(const t of e)this.addSymbolToChildScope(n,t,t.getName(),void 0,ne.Variable)}return!0}}return!0}visitRuleSet(e){const t=this.scope.findScope(e.offset,e.length);if(t)for(const n of e.getSelectors().getChildren())n instanceof _e&&1===n.getChildren().length&&t.addSymbol(new ps(n.getChild(0).getText(),void 0,n,ne.Rule));return!0}visitVariableDeclarationNode(e){const t=e.getValue()?e.getValue().getText():void 0;return this.addSymbol(e,e.getName(),t,ne.Variable),!0}visitFunctionParameterNode(e){const t=e.getParent().getDeclarations();if(t){const n=e.getDefaultValue(),i=n?n.getText():void 0;this.addSymbolToChildScope(t,e,e.getName(),i,ne.Variable)}return!0}visitCustomPropertyDeclarationNode(e){const t=e.getValue()?e.getValue().getText():"";return this.addCSSVariable(e.getProperty(),e.getProperty().getName(),t,ne.Variable),!0}addCSSVariable(e,t,n,i){-1!==e.offset&&this.scope.addSymbol(new ps(t,n,e,i))}},fs=class{constructor(e){this.global=new us,e.acceptVisitor(new ms(this.global))}findSymbolsAtOffset(e,t){let n=this.global.findScope(e,0);const i=[],r={};for(;n;){const e=n.getSymbols();for(let n=0;n<e.length;n++){const s=e[n];s.type!==t||r[s.name]||(i.push(s),r[s.name]=!0)}n=n.parent}return i}internalFindSymbol(e,t){let n=e;if(e.parent instanceof Te&&e.parent.getParent()instanceof ye&&(n=e.parent.getParent().getDeclarations()),e.parent instanceof Ne&&e.parent.getParent()instanceof Ie){const t=e.parent.getParent().getIdentifier();if(t){const e=this.internalFindSymbol(t,[ne.Function]);e&&(n=e.node.getDeclarations())}}if(!n)return null;const i=e.getText();let r=this.global.findScope(n.offset,n.length);for(;r;){for(let e=0;e<t.length;e++){const n=t[e],s=r.getSymbol(i,n);if(s)return s}r=r.parent}return null}evaluateReferenceTypes(e){if(e instanceof ge){const t=e.referenceTypes;if(t)return t;{if(e.isCustomProperty)return[ne.Variable];const t=function(e){const t=e.findParent(ee.Declaration),n=t&&t.getValue();return n&&n.encloses(e)?t:null}(e);if(t){const n=t.getNonPrefixedPropertyName();if(("animation"===n||"animation-name"===n)&&t.getValue()&&t.getValue().offset===e.offset)return[ne.Keyframe]}}}else if(e instanceof wt)return[ne.Variable];return e.findAParent(ee.Selector,ee.ExtendsReference)?[ne.Rule]:null}findSymbolFromNode(e){if(!e)return null;for(;e.type===ee.Interpolation;)e=e.getParent();const t=this.evaluateReferenceTypes(e);return t?this.internalFindSymbol(e,t):null}matchesSymbol(e,t){if(!e)return!1;for(;e.type===ee.Interpolation;)e=e.getParent();if(!e.matches(t.name))return!1;const n=this.evaluateReferenceTypes(e);if(!n||-1===n.indexOf(t.type))return!1;return this.internalFindSymbol(e,n)===t}findSymbol(e,t,n){let i=this.global.findScope(n);for(;i;){const n=i.getSymbol(e,t);if(n)return n;i=i.parent}return null}};(()=>{var e={470:e=>{function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,i="",r=0,s=-1,o=0,a=0;a<=e.length;++a){if(a<e.length)n=e.charCodeAt(a);else{if(47===n)break;n=47}if(47===n){if(s===a-1||1===o);else if(s!==a-1&&2===o){if(i.length<2||2!==r||46!==i.charCodeAt(i.length-1)||46!==i.charCodeAt(i.length-2))if(i.length>2){var l=i.lastIndexOf("/");if(l!==i.length-1){-1===l?(i="",r=0):r=(i=i.slice(0,l)).length-1-i.lastIndexOf("/"),s=a,o=0;continue}}else if(2===i.length||1===i.length){i="",r=0,s=a,o=0;continue}t&&(i.length>0?i+="/..":i="..",r=2)}else i.length>0?i+="/"+e.slice(s+1,a):i=e.slice(s+1,a),r=a-s-1;s=a,o=0}else 46===n&&-1!==o?++o:o=-1}return i}var i={resolve:function(){for(var e,i="",r=!1,s=arguments.length-1;s>=-1&&!r;s--){var o;s>=0?o=arguments[s]:(void 0===e&&(e=process.cwd()),o=e),t(o),0!==o.length&&(i=o+"/"+i,r=47===o.charCodeAt(0))}return i=n(i,!r),r?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(e){if(t(e),0===e.length)return".";var i=47===e.charCodeAt(0),r=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!i)).length||i||(e="."),e.length>0&&r&&(e+="/"),i?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n<arguments.length;++n){var r=arguments[n];t(r),r.length>0&&(void 0===e?e=r:e+="/"+r)}return void 0===e?".":i.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n)return"";if((e=i.resolve(e))===(n=i.resolve(n)))return"";for(var r=1;r<e.length&&47===e.charCodeAt(r);++r);for(var s=e.length,o=s-r,a=1;a<n.length&&47===n.charCodeAt(a);++a);for(var l=n.length-a,c=o<l?o:l,h=-1,d=0;d<=c;++d){if(d===c){if(l>c){if(47===n.charCodeAt(a+d))return n.slice(a+d+1);if(0===d)return n.slice(a+d)}else o>c&&(47===e.charCodeAt(r+d)?h=d:0===d&&(h=0));break}var u=e.charCodeAt(r+d);if(u!==n.charCodeAt(a+d))break;47===u&&(h=d)}var p="";for(d=r+h+1;d<=s;++d)d!==s&&47!==e.charCodeAt(d)||(0===p.length?p+="..":p+="/..");return p.length>0?p+n.slice(a+h):(a+=h,47===n.charCodeAt(a)&&++a,n.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),i=47===n,r=-1,s=!0,o=e.length-1;o>=1;--o)if(47===(n=e.charCodeAt(o))){if(!s){r=o;break}}else s=!1;return-1===r?i?"/":".":i&&1===r?"//":e.slice(0,r)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');t(e);var i,r=0,s=-1,o=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var a=n.length-1,l=-1;for(i=e.length-1;i>=0;--i){var c=e.charCodeAt(i);if(47===c){if(!o){r=i+1;break}}else-1===l&&(o=!1,l=i+1),a>=0&&(c===n.charCodeAt(a)?-1==--a&&(s=i):(a=-1,s=l))}return r===s?s=l:-1===s&&(s=e.length),e.slice(r,s)}for(i=e.length-1;i>=0;--i)if(47===e.charCodeAt(i)){if(!o){r=i+1;break}}else-1===s&&(o=!1,s=i+1);return-1===s?"":e.slice(r,s)},extname:function(e){t(e);for(var n=-1,i=0,r=-1,s=!0,o=0,a=e.length-1;a>=0;--a){var l=e.charCodeAt(a);if(47!==l)-1===r&&(s=!1,r=a+1),46===l?-1===n?n=a:1!==o&&(o=1):-1!==n&&(o=-1);else if(!s){i=a+1;break}}return-1===n||-1===r||0===o||1===o&&n===r-1&&n===i+1?"":e.slice(n,r)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,i=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+i:n+"/"+i:i}(0,e)},parse:function(e){t(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var i,r=e.charCodeAt(0),s=47===r;s?(n.root="/",i=1):i=0;for(var o=-1,a=0,l=-1,c=!0,h=e.length-1,d=0;h>=i;--h)if(47!==(r=e.charCodeAt(h)))-1===l&&(c=!1,l=h+1),46===r?-1===o?o=h:1!==d&&(d=1):-1!==o&&(d=-1);else if(!c){a=h+1;break}return-1===o||-1===l||0===d||1===d&&o===l-1&&o===a+1?-1!==l&&(n.base=n.name=0===a&&s?e.slice(1,l):e.slice(a,l)):(0===a&&s?(n.name=e.slice(1,o),n.base=e.slice(1,l)):(n.name=e.slice(a,o),n.base=e.slice(a,l)),n.ext=e.slice(o,l)),a>0?n.dir=e.slice(0,a-1):s&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};i.posix=i,e.exports=i}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var s=t[i]={exports:{}};return e[i](s,s.exports,n),s.exports}n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};(()=>{let e;if(n.r(i),n.d(i,{URI:()=>h,Utils:()=>S}),"object"==typeof process)e="win32"===process.platform;else if("object"==typeof navigator){let t=navigator.userAgent;e=t.indexOf("Windows")>=0}const t=/^\w[\w\d+.-]*$/,r=/^\//,s=/^\/\//;function o(e,n){if(!e.scheme&&n)throw new 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 new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!r.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(s.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}const a="",l="/",c=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class h{static isUri(e){return e instanceof h||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString}scheme;authority;path;query;fragment;constructor(e,t,n,i,r,s=!1){"object"==typeof e?(this.scheme=e.scheme||a,this.authority=e.authority||a,this.path=e.path||a,this.query=e.query||a,this.fragment=e.fragment||a):(this.scheme=function(e,t){return e||t?e:"file"}(e,s),this.authority=t||a,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==l&&(t=l+t):t=l}return t}(this.scheme,n||a),this.query=i||a,this.fragment=r||a,o(this,s))}get fsPath(){return g(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:i,query:r,fragment:s}=e;return void 0===t?t=this.scheme:null===t&&(t=a),void 0===n?n=this.authority:null===n&&(n=a),void 0===i?i=this.path:null===i&&(i=a),void 0===r?r=this.query:null===r&&(r=a),void 0===s?s=this.fragment:null===s&&(s=a),t===this.scheme&&n===this.authority&&i===this.path&&r===this.query&&s===this.fragment?this:new u(t,n,i,r,s)}static parse(e,t=!1){const n=c.exec(e);return n?new u(n[2]||a,w(n[4]||a),w(n[5]||a),w(n[7]||a),w(n[9]||a),t):new u(a,a,a,a,a)}static file(t){let n=a;if(e&&(t=t.replace(/\\/g,l)),t[0]===l&&t[1]===l){const e=t.indexOf(l,2);-1===e?(n=t.substring(2),t=l):(n=t.substring(2,e),t=t.substring(e)||l)}return new u("file",n,t,a,a)}static from(e){const t=new u(e.scheme,e.authority,e.path,e.query,e.fragment);return o(t,!0),t}toString(e=!1){return b(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof h)return e;{const t=new u(e);return t._formatted=e.external,t._fsPath=e._sep===d?e.fsPath:null,t}}return e}}const d=e?1:void 0;class u extends h{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=g(this,!1)),this._fsPath}toString(e=!1){return e?b(this,!0):(this._formatted||(this._formatted=b(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=d),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}}const p={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 m(e,t,n){let i,r=-1;for(let s=0;s<e.length;s++){const o=e.charCodeAt(s);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o||n&&91===o||n&&93===o||n&&58===o)-1!==r&&(i+=encodeURIComponent(e.substring(r,s)),r=-1),void 0!==i&&(i+=e.charAt(s));else{void 0===i&&(i=e.substr(0,s));const t=p[o];void 0!==t?(-1!==r&&(i+=encodeURIComponent(e.substring(r,s)),r=-1),i+=t):-1===r&&(r=s)}}return-1!==r&&(i+=encodeURIComponent(e.substring(r))),void 0!==i?i:e}function f(e){let t;for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);35===i||63===i?(void 0===t&&(t=e.substr(0,n)),t+=p[i]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function g(t,n){let i;return i=t.authority&&t.path.length>1&&"file"===t.scheme?`//${t.authority}${t.path}`:47===t.path.charCodeAt(0)&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&58===t.path.charCodeAt(2)?n?t.path.substr(1):t.path[1].toLowerCase()+t.path.substr(2):t.path,e&&(i=i.replace(/\//g,"\\")),i}function b(e,t){const n=t?f:m;let i="",{scheme:r,authority:s,path:o,query:a,fragment:c}=e;if(r&&(i+=r,i+=":"),(s||"file"===r)&&(i+=l,i+=l),s){let e=s.indexOf("@");if(-1!==e){const t=s.substr(0,e);s=s.substr(e+1),e=t.lastIndexOf(":"),-1===e?i+=n(t,!1,!1):(i+=n(t.substr(0,e),!1,!1),i+=":",i+=n(t.substr(e+1),!1,!0)),i+="@"}s=s.toLowerCase(),e=s.lastIndexOf(":"),-1===e?i+=n(s,!1,!0):(i+=n(s.substr(0,e),!1,!0),i+=s.substr(e))}if(o){if(o.length>=3&&47===o.charCodeAt(0)&&58===o.charCodeAt(2)){const e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&58===o.charCodeAt(1)){const e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}i+=n(o,!0,!1)}return a&&(i+="?",i+=n(a,!1,!1)),c&&(i+="#",i+=t?c:m(c,!1,!1)),i}function v(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+v(e.substr(3)):e}}const y=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function w(e){return e.match(y)?e.replace(y,(e=>v(e))):e}var _=n(470);const k=_.posix||_,C="/";var S,x;(x=S||(S={})).joinPath=function(e,...t){return e.with({path:k.join(e.path,...t)})},x.resolvePath=function(e,...t){let n=e.path,i=!1;n[0]!==C&&(n=C+n,i=!0);let r=k.resolve(n,...t);return i&&r[0]===C&&!e.authority&&(r=r.substring(1)),e.with({path:r})},x.dirname=function(e){if(0===e.path.length||e.path===C)return e;let t=k.dirname(e.path);return 1===t.length&&46===t.charCodeAt(0)&&(t=""),e.with({path:t})},x.basename=function(e){return k.basename(e.path)},x.extname=function(e){return k.extname(e.path)}})(),hs=i})();var{URI:gs,Utils:bs}=hs;function vs(e){return bs.dirname(gs.parse(e)).toString(!0)}function ys(e,...t){return bs.joinPath(gs.parse(e),...t).toString(!0)}var ws=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){const n={items:[],isIncomplete:!1};for(const i of this.literalCompletions){const r=i.uriValue,s=ks(r);if("."===s||".."===s)n.isIncomplete=!0;else{const s=await this.providePathSuggestions(r,i.position,i.range,e,t);for(let e of s)n.items.push(e)}}for(const i of this.importCompletions){const r=i.pathValue,s=ks(r);if("."===s||".."===s)n.isIncomplete=!0;else{let s=await this.providePathSuggestions(r,i.position,i.range,e,t);"scss"===e.languageId&&s.forEach((e=>{se(e.label,"_")&&oe(e.label,".scss")&&(e.textEdit?e.textEdit.newText=e.label.slice(1,-5):e.label=e.label.slice(1,-5))}));for(let e of s)n.items.push(e)}}return n}async providePathSuggestions(e,t,n,i,r){const s=ks(e),o=se(e,"'")||se(e,'"'),a=o?s.slice(0,t.character-(n.start.character+1)):s.slice(0,t.character-n.start.character),l=i.uri,c=function(e,t,n){let i;const r=e.lastIndexOf("/");if(-1===r)i=n;else{const e=t.slice(r+1),s=xs(n.end,-e.length),o=e.indexOf(" ");let a;a=-1!==o?xs(s,o):n.end,i=qt.create(s,a)}return i}(a,s,o?function(e,t,n){const i=xs(e.start,t),r=xs(e.end,n);return qt.create(i,r)}(n,1,-1):n),h=a.substring(0,a.lastIndexOf("/")+1);let d=r.resolveReference(h||".",l);if(d)try{const e=[],t=await this.readDirectory(d);for(const[n,i]of t)n.charCodeAt(0)===_s||i!==fr.Directory&&ys(d,n)===l||e.push(Cs(n,i===fr.Directory,c));return e}catch(u){}return[]}},_s=".".charCodeAt(0);function ks(e){return se(e,"'")||se(e,'"')?e.slice(1,-1):e}function Cs(e,t,n){return t?{label:Ss(e+="/"),kind:jn.Folder,textEdit:vn.replace(n,Ss(e)),command:{title:"Suggest",command:"editor.action.triggerSuggest"}}:{label:Ss(e),kind:jn.File,textEdit:vn.replace(n,Ss(e))}}function Ss(e){return e.replace(/(\s|\(|\)|,|"|')/g,"\\$1")}function xs(e,t){return Ut.create(e.line,e.character+t)}var Es,Fs,Ls=Hn.Snippet,Is={title:"Suggest",command:"editor.action.triggerSuggest"};(Fs=Es||(Es={})).Enums=" ",Fs.Normal="d",Fs.VendorPrefixed="x",Fs.Term="y",Fs.Variable="z";var Ts=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||(this.symbolContext=new fs(this.styleSheet)),this.symbolContext}setCompletionParticipants(e){this.completionParticipants=e||[]}async doComplete2(e,t,n,i,r=this.defaultSettings){if(!this.lsOptions.fileSystemProvider||!this.lsOptions.fileSystemProvider.readDirectory)return this.doComplete(e,t,n,r);const s=new ws(this.lsOptions.fileSystemProvider.readDirectory),o=this.completionParticipants;this.completionParticipants=[s].concat(o);const a=this.doComplete(e,t,n,r);try{const t=await s.computeCompletions(e,i);return{isIncomplete:a.isIncomplete||t.isIncomplete,itemDefaults:a.itemDefaults,items:t.items.concat(a.items)}}finally{this.completionParticipants=o}}doComplete(e,t,n,i){this.offset=e.offsetAt(t),this.position=t,this.currentWord=function(e,t){let n=t-1;const i=e.getText();for(;n>=0&&-1===' \t\n\r":{[()]},*>+'.indexOf(i.charAt(n));)n--;return i.substring(n+1,t)}(e,this.offset),this.defaultReplaceRange=qt.create(Ut.create(this.position.line,this.position.character-this.currentWord.length),this.position),this.textDocument=e,this.styleSheet=n,this.documentSettings=i;try{const e={isIncomplete:!1,itemDefaults:{editRange:{start:{line:t.line,character:t.character-this.currentWord.length},end:t}},items:[]};this.nodePath=he(this.styleSheet,this.offset);for(let t=this.nodePath.length-1;t>=0;t--){const n=this.nodePath[t];if(n instanceof Fe)this.getCompletionsForDeclarationProperty(n.getParent(),e);else if(n instanceof lt)n.parent instanceof yt?this.getVariableProposals(null,e):this.getCompletionsForExpression(n,e);else if(n instanceof ke){const t=n.findAParent(ee.ExtendsReference,ee.Ruleset);if(t)if(t.type===ee.ExtendsReference)this.getCompletionsForExtendsReference(t,n,e);else{const n=t;this.getCompletionsForSelector(n,n&&n.isNested(),e)}}else if(n instanceof Ne)this.getCompletionsForFunctionArgument(n,n.getParent(),e);else if(n instanceof ve)this.getCompletionsForDeclarations(n,e);else if(n instanceof vt)this.getCompletionsForVariableDeclaration(n,e);else if(n instanceof we)this.getCompletionsForRuleSet(n,e);else if(n instanceof yt)this.getCompletionsForInterpolation(n,e);else if(n instanceof ze)this.getCompletionsForFunctionDeclaration(n,e);else if(n instanceof St)this.getCompletionsForMixinReference(n,e);else if(n instanceof Ie)this.getCompletionsForFunctionArgument(null,n,e);else if(n instanceof Je)this.getCompletionsForSupports(n,e);else if(n instanceof st)this.getCompletionsForSupportsCondition(n,e);else if(n instanceof _t)this.getCompletionsForExtendsReference(n,null,e);else if(n.type===ee.URILiteral)this.getCompletionForUriLiteralValue(n,e);else if(null===n.parent)this.getCompletionForTopLevel(e);else{if(n.type!==ee.StringLiteral||!this.isImportPathParent(n.parent.type))continue;this.getCompletionForImportPath(n,e)}if(e.items.length>0||this.offset>n.offset)return this.finalize(e)}return this.getCompletionsForStylesheet(e),0===e.items.length&&this.variablePrefix&&0===this.currentWord.indexOf(this.variablePrefix)&&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===ee.Import}finalize(e){return e}findInNodePath(...e){for(let t=this.nodePath.length-1;t>=0;t--){const n=this.nodePath[t];if(-1!==e.indexOf(n.type))return n}return null}getCompletionsForDeclarationProperty(e,t){return this.getPropertyProposals(e,t)}getPropertyProposals(e,t){const n=this.isTriggerPropertyValueCompletionEnabled,i=this.isCompletePropertyWithSemicolonEnabled;return this.cssDataManager.getProperties().forEach((r=>{let s,o,a=!1;e?(s=this.getCompletionRange(e.getProperty()),o=r.name,os(e.colonPosition)||(o+=": ",a=!0)):(s=this.getCompletionRange(null),o=r.name+": ",a=!0),!e&&i&&(o+="$0;"),e&&!e.semicolonPosition&&i&&this.offset>=this.textDocument.offsetAt(s.end)&&(o+="$0;");const l={label:r.name,documentation:Sr(r,this.doesSupportMarkdown()),tags:Ns(r)?[Qn.Deprecated]:[],textEdit:vn.replace(s,o),insertTextFormat:Hn.Snippet,kind:jn.Property};r.restrictions||(a=!1),n&&a&&(l.command=Is);const c=(255-("number"===typeof r.relevance?Math.min(Math.max(r.relevance,0),99):50)).toString(16),h=se(r.name,"-")?Es.VendorPrefixed:Es.Normal;l.sortText=h+"_"+c,t.items.push(l)})),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){const n=e.getFullPropertyName(),i=this.cssDataManager.getProperty(n);let r=e.getValue()||null;for(;r&&r.hasChildren();)r=r.findChildAtOffset(this.offset,!1);if(this.completionParticipants.forEach((e=>{e.onCssPropertyValue&&e.onCssPropertyValue({propertyName:n,propertyValue:this.currentWord,range:this.getCompletionRange(r)})})),i){if(i.restrictions)for(const e of i.restrictions)switch(e){case"color":this.getColorProposals(i,r,t);break;case"position":this.getPositionProposals(i,r,t);break;case"repeat":this.getRepeatStyleProposals(i,r,t);break;case"line-style":this.getLineStyleProposals(i,r,t);break;case"line-width":this.getLineWidthProposals(i,r,t);break;case"geometry-box":this.getGeometryBoxProposals(i,r,t);break;case"box":this.getBoxProposals(i,r,t);break;case"image":this.getImageProposals(i,r,t);break;case"timing-function":this.getTimingFunctionProposals(i,r,t);break;case"shape":this.getBasicShapeProposals(i,r,t)}this.getValueEnumProposals(i,r,t),this.getCSSWideKeywordProposals(i,r,t),this.getUnitProposals(i,r,t)}else{const n=function(e,t){const n=t.getFullPropertyName(),i=new Rs;function r(e){return(e instanceof ge||e instanceof bt||e instanceof ut)&&i.add(e.getText()),!0}function s(e){const t=e.getFullPropertyName();return n===t}function o(e){if(e instanceof xe&&e!==t&&s(e)){const t=e.getValue();t&&t.accept(r)}return!0}return e.accept(o),i}(this.styleSheet,e);for(const e of n.getEntries())t.items.push({label:e,textEdit:vn.replace(this.getCompletionRange(r),e),kind:jn.Value})}return this.getVariableProposals(r,t),this.getTermProposals(i,r,t),t}getValueEnumProposals(e,t,n){if(e.values)for(const i of e.values){let r,s=i.name;if(oe(s,")")){const e=s.lastIndexOf("(");-1!==e&&(s=s.substring(0,e+1)+"$1"+s.substring(e+1),r=Ls)}let o=Es.Enums;se(i.name,"-")&&(o+=Es.VendorPrefixed);const a={label:i.name,documentation:Sr(i,this.doesSupportMarkdown()),tags:Ns(e)?[Qn.Deprecated]:[],textEdit:vn.replace(this.getCompletionRange(t),s),sortText:o,kind:jn.Value,insertTextFormat:r};n.items.push(a)}return n}getCSSWideKeywordProposals(e,t,n){for(const i in Jr)n.items.push({label:i,documentation:Jr[i],textEdit:vn.replace(this.getCompletionRange(t),i),kind:jn.Value});for(const i in Yr){const e=Ds(i);n.items.push({label:i,documentation:Yr[i],textEdit:vn.replace(this.getCompletionRange(t),e),kind:jn.Function,insertTextFormat:Ls,command:se(i,"var")?Is:void 0})}return n}getCompletionsForInterpolation(e,t){return this.offset>=e.offset+2&&this.getVariableProposals(null,t),t}getVariableProposals(e,t){const n=this.getSymbolContext().findSymbolsAtOffset(this.offset,ne.Variable);for(const i of n){const n=se(i.name,"--")?`var(${i.name})`:i.name,r={label:i.name,documentation:i.value?ae(i.value):i.value,textEdit:vn.replace(this.getCompletionRange(e),n),kind:jn.Variable,sortText:Es.Variable};if("string"===typeof r.documentation&&Pr(r.documentation)&&(r.kind=jn.Color),i.node.type===ee.FunctionParameter){const e=i.node.getParent();e.type===ee.MixinDeclaration&&(r.detail=Dt("argument from '{0}'",e.getName()))}t.items.push(r)}return t}getVariableProposalsForCSSVarFunction(e){const t=new Rs;this.styleSheet.acceptVisitor(new Ms(t,this.offset));let n=this.getSymbolContext().findSymbolsAtOffset(this.offset,ne.Variable);for(const i of n){if(se(i.name,"--")){const t={label:i.name,documentation:i.value?ae(i.value):i.value,textEdit:vn.replace(this.getCompletionRange(null),i.name),kind:jn.Variable};"string"===typeof t.documentation&&Pr(t.documentation)&&(t.kind=jn.Color),e.items.push(t)}t.remove(i.name)}for(const i of t.getEntries())if(se(i,"--")){const t={label:i,textEdit:vn.replace(this.getCompletionRange(null),i),kind:jn.Variable};e.items.push(t)}return e}getUnitProposals(e,t,n){let i="0";if(this.currentWord.length>0){const e=this.currentWord.match(/^-?\d[\.\d+]*/);e&&(i=e[0],n.isIncomplete=i.length===this.currentWord.length)}else 0===this.currentWord.length&&(n.isIncomplete=!0);if(t&&t.parent&&t.parent.type===ee.Term&&(t=t.getParent()),e.restrictions)for(const r of e.restrictions){const e=ts[r];if(e)for(const r of e){const e=i+r;n.items.push({label:e,textEdit:vn.replace(this.getCompletionRange(t),e),kind:jn.Unit})}}return n}getCompletionRange(e){if(e&&e.offset<=this.offset&&this.offset<=e.end){const t=-1!==e.end?this.textDocument.positionAt(e.end):this.position,n=this.textDocument.positionAt(e.offset);if(n.line===t.line)return qt.create(n,t)}return this.defaultReplaceRange}getColorProposals(e,t,n){for(const r in Rr)n.items.push({label:r,documentation:Rr[r],textEdit:vn.replace(this.getCompletionRange(t),r),kind:jn.Color});for(const r in Ar)n.items.push({label:r,documentation:Ar[r],textEdit:vn.replace(this.getCompletionRange(t),r),kind:jn.Value});const i=new Rs;this.styleSheet.acceptVisitor(new As(i,this.offset));for(const r of i.getEntries())n.items.push({label:r,textEdit:vn.replace(this.getCompletionRange(t),r),kind:jn.Color});for(const r of Tr)n.items.push({label:r.label,detail:r.func,documentation:r.desc,textEdit:vn.replace(this.getCompletionRange(t),r.insertText),insertTextFormat:Ls,kind:jn.Function});return n}getPositionProposals(e,t,n){for(const i in qr)n.items.push({label:i,documentation:qr[i],textEdit:vn.replace(this.getCompletionRange(t),i),kind:jn.Value});return n}getRepeatStyleProposals(e,t,n){for(const i in jr)n.items.push({label:i,documentation:jr[i],textEdit:vn.replace(this.getCompletionRange(t),i),kind:jn.Value});return n}getLineStyleProposals(e,t,n){for(const i in Kr)n.items.push({label:i,documentation:Kr[i],textEdit:vn.replace(this.getCompletionRange(t),i),kind:jn.Value});return n}getLineWidthProposals(e,t,n){for(const i of Hr)n.items.push({label:i,textEdit:vn.replace(this.getCompletionRange(t),i),kind:jn.Value});return n}getGeometryBoxProposals(e,t,n){for(const i in Qr)n.items.push({label:i,documentation:Qr[i],textEdit:vn.replace(this.getCompletionRange(t),i),kind:jn.Value});return n}getBoxProposals(e,t,n){for(const i in Gr)n.items.push({label:i,documentation:Gr[i],textEdit:vn.replace(this.getCompletionRange(t),i),kind:jn.Value});return n}getImageProposals(e,t,n){for(const i in Xr){const e=Ds(i);n.items.push({label:i,documentation:Xr[i],textEdit:vn.replace(this.getCompletionRange(t),e),kind:jn.Function,insertTextFormat:i!==e?Ls:void 0})}return n}getTimingFunctionProposals(e,t,n){for(const i in Zr){const e=Ds(i);n.items.push({label:i,documentation:Zr[i],textEdit:vn.replace(this.getCompletionRange(t),e),kind:jn.Function,insertTextFormat:i!==e?Ls:void 0})}return n}getBasicShapeProposals(e,t,n){for(const i in es){const e=Ds(i);n.items.push({label:i,documentation:es[i],textEdit:vn.replace(this.getCompletionRange(t),e),kind:jn.Function,insertTextFormat:i!==e?Ls:void 0})}return n}getCompletionsForStylesheet(e){const t=this.styleSheet.findFirstChildBeforeOffset(this.offset);return t?t instanceof we?this.getCompletionsForRuleSet(t,e):t instanceof Je?this.getCompletionsForSupports(t,e):e:this.getCompletionForTopLevel(e)}getCompletionForTopLevel(e){return this.cssDataManager.getAtDirectives().forEach((t=>{e.items.push({label:t.name,textEdit:vn.replace(this.getCompletionRange(null),t.name),documentation:Sr(t,this.doesSupportMarkdown()),tags:Ns(t)?[Qn.Deprecated]:[],kind:jn.Keyword})})),this.getCompletionsForSelector(null,!1,e),e}getCompletionsForRuleSet(e,t){const n=e.getDeclarations();if(n&&n.endsWith("}")&&this.offset>=n.end)return this.getCompletionForTopLevel(t);return!n||this.offset<=n.offset?this.getCompletionsForSelector(e,e.isNested(),t):this.getCompletionsForDeclarations(e.getDeclarations(),t)}getCompletionsForSelector(e,t,n){const i=this.findInNodePath(ee.PseudoSelector,ee.IdentifierSelector,ee.ClassSelector,ee.ElementNameSelector);!i&&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=qt.create(Ut.create(this.position.line,this.position.character-this.currentWord.length),this.position));this.cssDataManager.getPseudoClasses().forEach((e=>{const t=Ds(e.name),r={label:e.name,textEdit:vn.replace(this.getCompletionRange(i),t),documentation:Sr(e,this.doesSupportMarkdown()),tags:Ns(e)?[Qn.Deprecated]:[],kind:jn.Function,insertTextFormat:e.name!==t?Ls:void 0};se(e.name,":-")&&(r.sortText=Es.VendorPrefixed),n.items.push(r)}));if(this.cssDataManager.getPseudoElements().forEach((e=>{const t=Ds(e.name),r={label:e.name,textEdit:vn.replace(this.getCompletionRange(i),t),documentation:Sr(e,this.doesSupportMarkdown()),tags:Ns(e)?[Qn.Deprecated]:[],kind:jn.Function,insertTextFormat:e.name!==t?Ls:void 0};se(e.name,"::-")&&(r.sortText=Es.VendorPrefixed),n.items.push(r)})),!t){for(const e of ns)n.items.push({label:e,textEdit:vn.replace(this.getCompletionRange(i),e),kind:jn.Keyword});for(const e of is)n.items.push({label:e,textEdit:vn.replace(this.getCompletionRange(i),e),kind:jn.Keyword})}const r={};r[this.currentWord]=!0;const s=this.textDocument.getText();if(this.styleSheet.accept((e=>{if(e.type===ee.SimpleSelector&&e.length>0){const t=s.substr(e.offset,e.length);return"."!==t.charAt(0)||r[t]||(r[t]=!0,n.items.push({label:t,textEdit:vn.replace(this.getCompletionRange(i),t),kind:jn.Keyword})),!1}return!0})),e&&e.isNested()){const t=e.getSelectors().findFirstChildBeforeOffset(this.offset);t&&0===e.getSelectors().getChildren().indexOf(t)&&this.getPropertyProposals(null,n)}return n}getCompletionsForDeclarations(e,t){if(!e||this.offset===e.offset)return t;const n=e.findFirstChildBeforeOffset(this.offset);if(!n)return this.getCompletionsForDeclarationProperty(null,t);if(n instanceof Ce){const e=n;if(!os(e.colonPosition)||this.offset<=e.colonPosition)return this.getCompletionsForDeclarationProperty(e,t);if(os(e.semicolonPosition)&&e.semicolonPosition<this.offset)return this.offset===e.semicolonPosition+1?t:this.getCompletionsForDeclarationProperty(null,t);if(e instanceof xe)return this.getCompletionsForDeclarationValue(e,t)}else n instanceof _t?this.getCompletionsForExtendsReference(n,null,t):(this.currentWord&&"@"===this.currentWord[0]||n instanceof we)&&this.getCompletionsForDeclarationProperty(null,t);return t}getCompletionsForVariableDeclaration(e,t){return this.offset&&os(e.colonPosition)&&this.offset>e.colonPosition&&this.getVariableProposals(e.getValue()||null,t),t}getCompletionsForExpression(e,t){const n=e.getParent();if(n instanceof Ne)return this.getCompletionsForFunctionArgument(n,n.getParent(),t),t;const i=e.findParent(ee.Declaration);if(!i)return this.getTermProposals(void 0,null,t),t;const r=e.findChildAtOffset(this.offset,!0);return r?r instanceof bt||r instanceof ge?this.getCompletionsForDeclarationValue(i,t):t:this.getCompletionsForDeclarationValue(i,t)}getCompletionsForFunctionArgument(e,t,n){const i=t.getIdentifier();return i&&i.matches("var")&&(t.getArguments().hasChildren()&&t.getArguments().getChild(0)!==e||this.getVariableProposalsForCSSVarFunction(n)),n}getCompletionsForFunctionDeclaration(e,t){const n=e.getDeclarations();return n&&this.offset>n.offset&&this.offset<n.end&&this.getTermProposals(void 0,null,t),t}getCompletionsForMixinReference(e,t){const n=this.getSymbolContext().findSymbolsAtOffset(this.offset,ne.Mixin);for(const r of n)r.node instanceof xt&&t.items.push(this.makeTermProposal(r,r.node.getParameters(),null));const i=e.getIdentifier()||null;return this.completionParticipants.forEach((e=>{e.onCssMixinReference&&e.onCssMixinReference({mixinName:this.currentWord,range:this.getCompletionRange(i)})})),t}getTermProposals(e,t,n){const i=this.getSymbolContext().findSymbolsAtOffset(this.offset,ne.Function);for(const r of i)r.node instanceof ze&&n.items.push(this.makeTermProposal(r,r.node.getParameters(),t));return n}makeTermProposal(e,t,n){e.node;const i=t.getChildren().map((e=>e instanceof Te?e.getName():e.getText())),r=e.name+"("+i.map(((e,t)=>"${"+(t+1)+":"+e+"}")).join(", ")+")";return{label:e.name,detail:e.name+"("+i.join(", ")+")",textEdit:vn.replace(this.getCompletionRange(n),r),insertTextFormat:Ls,kind:jn.Function,sortText:Es.Term}}getCompletionsForSupportsCondition(e,t){const n=e.findFirstChildBeforeOffset(this.offset);if(n){if(n instanceof xe)return!os(n.colonPosition)||this.offset<=n.colonPosition?this.getCompletionsForDeclarationProperty(n,t):this.getCompletionsForDeclarationValue(n,t);if(n instanceof st)return this.getCompletionsForSupportsCondition(n,t)}return os(e.lParent)&&this.offset>e.lParent&&(!os(e.rParent)||this.offset<=e.rParent)?this.getCompletionsForDeclarationProperty(null,t):t}getCompletionsForSupports(e,t){const n=e.getDeclarations();if(!n||this.offset<=n.offset){const n=e.findFirstChildBeforeOffset(this.offset);return n instanceof st?this.getCompletionsForSupportsCondition(n,t):t}return this.getCompletionForTopLevel(t)}getCompletionsForExtendsReference(e,t,n){return n}getCompletionForUriLiteralValue(e,t){let n,i,r;if(e.hasChildren()){const t=e.getChild(0);n=t.getText(),i=this.position,r=this.getCompletionRange(t)}else{n="",i=this.position;const t=this.textDocument.positionAt(e.offset+4);r=qt.create(t,t)}return this.completionParticipants.forEach((e=>{e.onCssURILiteralValue&&e.onCssURILiteralValue({uriValue:n,position:i,range:r})})),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){const n=this.textDocument.getText();return e>=0&&e<n.length&&n.charAt(e)===t}doesSupportMarkdown(){if(!os(this.supportsMarkdown)){if(!os(this.lsOptions.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;const e=this.lsOptions.clientCapabilities.textDocument?.completion?.completionItem?.documentationFormat;this.supportsMarkdown=Array.isArray(e)&&-1!==e.indexOf(Un.Markdown)}return this.supportsMarkdown}};function Ns(e){return!(!e.status||"nonstandard"!==e.status&&"obsolete"!==e.status)}var Rs=class{constructor(){this.entries={}}add(e){this.entries[e]=!0}remove(e){delete this.entries[e]}getEntries(){return Object.keys(this.entries)}};function Ds(e){return e.replace(/\(\)$/,"($1)")}var As=class{constructor(e,t){this.entries=e,this.currentOffset=t}visitNode(e){return(e instanceof ut||e instanceof Ie&&function(e){const t=e.getName();return!!t&&Nr.test(t)}(e))&&(this.currentOffset<e.offset||e.end<this.currentOffset)&&this.entries.add(e.getText()),!0}},Ms=class{constructor(e,t){this.entries=e,this.currentOffset=t}visitNode(e){return e instanceof ge&&e.isCustomProperty&&(this.currentOffset<e.offset||e.end<this.currentOffset)&&this.entries.add(e.getText()),!0}};var Os,zs=class e{constructor(){this.parent=null,this.children=null,this.attributes=null}findAttribute(e){if(this.attributes)for(const 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=[]),this.children.push(t)}append(e){if(this.attributes){const t=this.attributes[this.attributes.length-1];t.value=t.value+e}}prepend(e){if(this.attributes){const t=this.attributes[0];t.value=e+t.value}}findRoot(){let e=this;for(;e.parent&&!(e.parent instanceof Ps);)e=e.parent;return e}removeChild(e){if(this.children){const t=this.children.indexOf(e);if(-1!==t)return this.children.splice(t,1),!0}return!1}addAttr(e,t){this.attributes||(this.attributes=[]);for(const n of this.attributes)if(n.name===e)return void(n.value+=" "+t);this.attributes.push({name:e,value:t})}clone(t=!0){const n=new e;if(this.attributes){n.attributes=[];for(const 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(){const e=this.clone(!1);if(this.parent&&!(this.parent instanceof Ps)){this.parent.cloneWithParent().addChild(e)}return e}},Ps=class extends zs{},Bs=class extends zs{constructor(e){super(),this.addAttr("name",e)}},Ws=class{constructor(e){this.quote=e,this.result=[]}print(e,t){let n;return this.result=[],e instanceof Ps?e.children&&this.doPrint(e.children,0):this.doPrint([e],0),n=t?`${t.text}\n \u2026 `+this.result.join("\n"):this.result.join("\n"),[{language:"html",value:n}]}doPrint(e,t){for(const n of e)this.doPrintElement(n,t),n.children&&this.doPrint(n.children,t+1)}writeLine(e,t){const n=new Array(e+1).join(" ");this.result.push(n+t)}doPrintElement(e,t){const n=e.findAttribute("name");if(e instanceof Bs||"\u2026"===n)return void this.writeLine(t,n);const i=["<"];if(n?i.push(n):i.push("element"),e.attributes)for(const r of e.attributes)if("name"!==r.name){i.push(" "),i.push(r.name);const e=r.value;e&&(i.push("="),i.push(Os.ensure(e,this.quote)))}i.push(">"),this.writeLine(t,i.join(""))}};!function(e){function t(e){const t=e.match(/^['"](.*)["']$/);return t?t[1]:e}e.ensure=function(e,n){return n+t(e)+n},e.remove=t}(Os||(Os={}));var Vs=class{constructor(){this.id=0,this.attr=0,this.tag=0}};function Us(e,t){let n=new zs;for(const i of e.getChildren())switch(i.type){case ee.SelectorCombinator:if(t){const e=i.getText().split("&");if(1===e.length){n.addAttr("name",e[0]);break}if(n=t.cloneWithParent(),e[0]){n.findRoot().prepend(e[0])}for(let i=1;i<e.length;i++){if(i>1){const e=t.cloneWithParent();n.addChild(e.findRoot()),n=e}n.append(e[i])}}break;case ee.SelectorPlaceholder:if(i.matches("@at-root"))return n;case ee.ElementNameSelector:const e=i.getText();n.addAttr("name","*"===e?"element":$s(e));break;case ee.ClassSelector:n.addAttr("class",$s(i.getText().substring(1)));break;case ee.IdentifierSelector:n.addAttr("id",$s(i.getText().substring(1)));break;case ee.MixinDeclaration:n.addAttr("class",i.getName());break;case ee.PseudoSelector:n.addAttr($s(i.getText()),"");break;case ee.AttributeSelector:const r=i,s=r.getIdentifier();if(s){const e=r.getValue(),t=r.getOperator();let i;if(e&&t)switch($s(t.getText())){case"|=":i=`${Os.remove($s(e.getText()))}-\u2026`;break;case"^=":i=`${Os.remove($s(e.getText()))}\u2026`;break;case"$=":i=`\u2026${Os.remove($s(e.getText()))}`;break;case"~=":i=` \u2026 ${Os.remove($s(e.getText()))} \u2026 `;break;case"*=":i=`\u2026${Os.remove($s(e.getText()))}\u2026`;break;default:i=Os.remove($s(e.getText()))}n.addAttr($s(s.getText()),i)}}return n}function $s(e){const t=new re;t.setSource(e);const n=t.scanUnquotedString();return n?n.text:e}var qs=class{constructor(e){this.cssDataManager=e}selectorToMarkedString(e,t){const n=function(e){if(e.matches("@at-root"))return null;const t=new Ps,n=[],i=e.getParent();if(i instanceof we){let e=i.getParent();for(;e&&!Ks(e);){if(e instanceof we){if(e.getSelectors().matches("@at-root"))break;n.push(e)}e=e.getParent()}}const r=new js(t);for(let s=n.length-1;s>=0;s--){const e=n[s].getSelectors().getChild(0);e&&r.processSelector(e)}return r.processSelector(e),t}(e);if(n){const i=new Ws('"').print(n,t);return i.push(this.selectorToSpecificityMarkedString(e)),i}return[]}simpleSelectorToMarkedString(e){const t=Us(e),n=new Ws('"').print(t);return n.push(this.selectorToSpecificityMarkedString(e)),n}isPseudoElementIdentifier(e){const t=e.match(/^::?([\w-]+)/);return!!t&&!!this.cssDataManager.getPseudoElement("::"+t[1])}selectorToSpecificityMarkedString(e){const t=e=>{const t=new Vs;let i=new Vs;for(const r of e)for(const e of r.getChildren()){const t=n(e);t.id>i.id?i=t:t.id<i.id||(t.attr>i.attr?i=t:t.attr<i.attr||t.tag>i.tag&&(i=t))}return t.id+=i.id,t.attr+=i.attr,t.tag+=i.tag,t},n=e=>{const i=new Vs;e:for(const r of e.getChildren()){switch(r.type){case ee.IdentifierSelector:i.id++;break;case ee.ClassSelector:case ee.AttributeSelector:i.attr++;break;case ee.ElementNameSelector:if(r.matches("*"))break;i.tag++;break;case ee.PseudoSelector:const e=r.getText(),n=r.getChildren();if(this.isPseudoElementIdentifier(e)){if(e.match(/^::slotted/i)&&n.length>0){i.tag++;let e=t(n);i.id+=e.id,i.attr+=e.attr,i.tag+=e.tag;continue e}i.tag++;continue e}if(e.match(/^:where/i))continue e;if(e.match(/^:(?:not|has|is)/i)&&n.length>0){let e=t(n);i.id+=e.id,i.attr+=e.attr,i.tag+=e.tag;continue e}if(e.match(/^:(?:host|host-context)/i)&&n.length>0){i.attr++;let e=t(n);i.id+=e.id,i.attr+=e.attr,i.tag+=e.tag;continue e}if(e.match(/^:(?:nth-child|nth-last-child)/i)&&n.length>0){if(i.attr++,3===n.length&&23===n[1].type){let e=t(n[2].getChildren());i.id+=e.id,i.attr+=e.attr,i.tag+=e.tag;continue e}const e=new as,r=n[1].getText();e.scanner.setSource(r);const s=e.scanner.scan(),o=e.scanner.scan();if("n"===s.text||"-n"===s.text&&"of"===o.text){const n=[],s=r.slice(o.offset+2).split(",");for(const t of s){const i=e.internalParse(t,e._parseSelector);i&&n.push(i)}let a=t(n);i.id+=a.id,i.attr+=a.attr,i.tag+=a.tag;continue e}continue e}i.attr++;continue e}if(r.getChildren().length>0){const e=n(r);i.id+=e.id,i.attr+=e.attr,i.tag+=e.tag}}return i},i=n(e);return`[${Dt("Selector Specificity")}](https://developer.mozilla.org/docs/Web/CSS/Specificity): (${i.id}, ${i.attr}, ${i.tag})`}},js=class{constructor(e){this.prev=null,this.element=e}processSelector(e){let t=null;if(!(this.element instanceof Ps)&&e.getChildren().some((e=>e.hasChildren()&&e.getChild(0).type===ee.SelectorCombinator))){const e=this.element.findRoot();e.parent instanceof Ps&&(t=this.element,this.element=e.parent,this.element.removeChild(e),this.prev=null)}for(const n of e.getChildren()){if(n instanceof ke){if(this.prev instanceof ke){const e=new Bs("\u2026");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 Bs("\u22ee"));const e=Us(n,t),i=e.findRoot();this.element.addChild(i),this.element=e}(n instanceof ke||n.type===ee.SelectorCombinatorParent||n.type===ee.SelectorCombinatorShadowPiercingDescendant||n.type===ee.SelectorCombinatorSibling||n.type===ee.SelectorCombinatorAllSiblings)&&(this.prev=n)}}};function Ks(e){switch(e.type){case ee.MixinDeclaration:case ee.Stylesheet:return!0}return!1}var Hs=class{constructor(e,t){this.clientCapabilities=e,this.cssDataManager=t,this.selectorPrinting=new qs(t)}configure(e){this.defaultSettings=e}doHover(e,t,n,i=this.defaultSettings){function r(t){return qt.create(e.positionAt(t.offset),e.positionAt(t.end))}const s=he(n,e.offsetAt(t));let o,a=null;for(let l=0;l<s.length;l++){const e=s[l];if(e instanceof Qe){const t=/@media[^\{]+/g,n=e.getText().match(t);o={isMedia:!0,text:n?.[0]}}if(e instanceof _e){a={contents:this.selectorPrinting.selectorToMarkedString(e,o),range:r(e)};break}if(e instanceof ke){se(e.getText(),"@")||(a={contents:this.selectorPrinting.simpleSelectorToMarkedString(e),range:r(e)});break}if(e instanceof xe){const t=e.getFullPropertyName(),n=this.cssDataManager.getProperty(t);if(n){const t=Sr(n,this.doesSupportMarkdown(),i);a=t?{contents:t,range:r(e)}:null}}else if(e instanceof Et){const t=e.getText(),n=this.cssDataManager.getAtDirective(t);if(n){const t=Sr(n,this.doesSupportMarkdown(),i);a=t?{contents:t,range:r(e)}:null}}else if(e instanceof pe&&e.type===ee.PseudoSelector){const t=e.getText(),n="::"===t.slice(0,2)?this.cssDataManager.getPseudoElement(t):this.cssDataManager.getPseudoClass(t);if(n){const t=Sr(n,this.doesSupportMarkdown(),i);a=t?{contents:t,range:r(e)}:null}}else;}return a&&(a.contents=this.convertContents(a.contents)),a}convertContents(e){return this.doesSupportMarkdown()||"string"===typeof e?e:"kind"in e?{kind:"plaintext",value:e.value}:Array.isArray(e)?e.map((e=>"string"===typeof e?e:e.value)):e.value}doesSupportMarkdown(){if(!os(this.supportsMarkdown)){if(!os(this.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;const e=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.hover;this.supportsMarkdown=e&&e.contentFormat&&Array.isArray(e.contentFormat)&&-1!==e.contentFormat.indexOf(Un.Markdown)}return this.supportsMarkdown}},Gs=/^\w+:\/\//,Qs=/^data:/,Js=class{constructor(e,t){this.fileSystemProvider=e,this.resolveModuleReferences=t}configure(e){this.defaultSettings=e}findDefinition(e,t,n){const i=new fs(n),r=ce(n,e.offsetAt(t));if(!r)return null;const s=i.findSymbolFromNode(r);return s?{uri:e.uri,range:Ys(s.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 i=ce(n,e.offsetAt(t));if(i&&i.type!==ee.Stylesheet&&i.type!==ee.Declarations)return i.type===ee.Identifier&&i.parent&&i.parent.type===ee.ClassSelector&&(i=i.parent),i}findDocumentHighlights(e,t,n){const i=[],r=this.getHighlightNode(e,t,n);if(!r)return i;const s=new fs(n),o=s.findSymbolFromNode(r),a=r.getText();return n.accept((t=>{if(o){if(s.matchesSymbol(t,o))return i.push({kind:Zs(t),range:Ys(t,e)}),!1}else r&&r.type===t.type&&t.matches(a)&&i.push({kind:Zs(t),range:Ys(t,e)});return!0})),i}isRawStringDocumentLinkNode(e){return e.type===ee.Import}findDocumentLinks(e,t,n){const i=this.findUnresolvedLinks(e,t),r=[];for(let s of i){const t=s.link,i=t.target;if(!i||Qs.test(i));else if(Gs.test(i))r.push(t);else{const s=n.resolveReference(i,e.uri);s&&(t.target=s),r.push(t)}}return r}async findDocumentLinks2(e,t,n){const i=this.findUnresolvedLinks(e,t),r=[];for(let s of i){const t=s.link,i=t.target;if(!i||Qs.test(i));else if(Gs.test(i))r.push(t);else{const o=await this.resolveReference(i,e.uri,n,s.isRawLink);void 0!==o&&(t.target=o,r.push(t))}}return r}findUnresolvedLinks(e,t){const n=[],i=t=>{let i=t.getText();const r=Ys(t,e);if(r.start.line===r.end.line&&r.start.character===r.end.character)return;(se(i,"'")||se(i,'"'))&&(i=i.slice(1,-1));const s=!!t.parent&&this.isRawStringDocumentLinkNode(t.parent);n.push({link:{target:i,range:r},isRawLink:s})};return t.accept((e=>{if(e.type===ee.URILiteral){const t=e.getChild(0);return t&&i(t),!1}if(e.parent&&this.isRawStringDocumentLinkNode(e.parent)){const t=e.getText();return(se(t,"'")||se(t,'"'))&&i(e),!1}return!0})),n}findSymbolInformations(e,t){const n=[];return this.collectDocumentSymbols(e,t,((t,i,r)=>{const s=r instanceof pe?Ys(r,e):r,o={name:t||Dt("<undefined>"),kind:i,location:Kt.create(e.uri,s)};n.push(o)})),n}findDocumentSymbols(e,t){const n=[],i=[];return this.collectDocumentSymbols(e,t,((t,r,s,o,a)=>{const l=s instanceof pe?Ys(s,e):s;let c=o instanceof pe?Ys(o,e):o;c&&Xs(l,c)||(c=qt.create(l.start,l.start));const h={name:t||Dt("<undefined>"),kind:r,range:l,selectionRange:c};let d=i.pop();for(;d&&!Xs(d[1],l);)d=i.pop();if(d){const e=d[0];e.children||(e.children=[]),e.children.push(h),i.push(d)}else n.push(h);a&&i.push([h,Ys(a,e)])})),n}collectDocumentSymbols(e,t,n){t.accept((t=>{if(t instanceof we){for(const i of t.getSelectors().getChildren())if(i instanceof _e){const r=qt.create(e.positionAt(i.offset),e.positionAt(t.end));n(i.getText(),di.Class,r,i,t.getDeclarations())}}else if(t instanceof vt)n(t.getName(),di.Variable,t,t.getVariable(),void 0);else if(t instanceof xt)n(t.getName(),di.Method,t,t.getIdentifier(),t.getDeclarations());else if(t instanceof ze)n(t.getName(),di.Function,t,t.getIdentifier(),t.getDeclarations());else if(t instanceof Ve){const e=Dt("@keyframes {0}",t.getName());n(e,di.Class,t,t.getIdentifier(),t.getDeclarations())}else if(t instanceof Be){const e=Dt("@font-face");n(e,di.Class,t,void 0,t.getDeclarations())}else if(t instanceof Qe){const e=t.getChild(0);if(e instanceof tt){const i="@media "+e.getText();n(i,di.Module,t,e,t.getDeclarations())}}return!0}))}findDocumentColors(e,t){const n=[];return t.accept((t=>{const i=function(e,t){const n=$r(e);if(n){return{color:n,range:Ys(e,t)}}return null}(t,e);return i&&n.push(i),!0})),n}getColorPresentations(e,t,n,i){const r=[],s=Math.round(255*n.red),o=Math.round(255*n.green),a=Math.round(255*n.blue);let l;l=1===n.alpha?`rgb(${s}, ${o}, ${a})`:`rgba(${s}, ${o}, ${a}, ${n.alpha})`,r.push({label:l,textEdit:vn.replace(i,l)}),l=1===n.alpha?`#${eo(s)}${eo(o)}${eo(a)}`:`#${eo(s)}${eo(o)}${eo(a)}${eo(Math.round(255*n.alpha))}`,r.push({label:l,textEdit:vn.replace(i,l)});const c=Ur(n);l=1===c.a?`hsl(${c.h}, ${Math.round(100*c.s)}%, ${Math.round(100*c.l)}%)`:`hsla(${c.h}, ${Math.round(100*c.s)}%, ${Math.round(100*c.l)}%, ${c.a})`,r.push({label:l,textEdit:vn.replace(i,l)});const h=function(e){const t=Ur(e),n=Math.min(e.red,e.green,e.blue),i=1-Math.max(e.red,e.green,e.blue);return{h:t.h,w:n,b:i,a:t.a}}(n);return l=1===h.a?`hwb(${h.h} ${Math.round(100*h.w)}% ${Math.round(100*h.b)}%)`:`hwb(${h.h} ${Math.round(100*h.w)}% ${Math.round(100*h.b)}% / ${h.a})`,r.push({label:l,textEdit:vn.replace(i,l)}),r}prepareRename(e,t,n){const i=this.getHighlightNode(e,t,n);if(i)return qt.create(e.positionAt(i.offset),e.positionAt(i.end))}doRename(e,t,n,i){const r=this.findDocumentHighlights(e,t,i).map((e=>vn.replace(e.range,n)));return{changes:{[e.uri]:r}}}async resolveModuleReference(e,t,n){if(se(t,"file://")){const i=function(e){const t=e.indexOf("/");if(-1===t)return"";if("@"===e[0]){const n=e.indexOf("/",t+1);return-1===n?e:e.substring(0,n)}return e.substring(0,t)}(e);if(i&&"."!==i&&".."!==i){const r=n.resolveReference("/",t),s=vs(t),o=await this.resolvePathToModule(i,s,r);if(o){return ys(o,e.substring(i.length+1))}}}}async mapReference(e,t){return e}async resolveReference(e,t,n,i=!1,r=this.defaultSettings){if("~"===e[0]&&"/"!==e[1]&&this.fileSystemProvider)return e=e.substring(1),this.mapReference(await this.resolveModuleReference(e,t,n),i);const s=await this.mapReference(n.resolveReference(e,t),i);if(this.resolveModuleReferences){if(s&&await this.fileExists(s))return s;const r=await this.mapReference(await this.resolveModuleReference(e,t,n),i);if(r)return r}if(s&&!await this.fileExists(s)){const s=n.resolveReference("/",t);if(r&&s){if(e in r)return this.mapReference(ys(s,r[e]),i);const t=e.indexOf("/"),n=`${e.substring(0,t)}/`;if(n in r){let t=ys(s,r[n].slice(0,-1));return this.mapReference(t=ys(t,e.substring(n.length-1)),i)}}}return s}async resolvePathToModule(e,t,n){const i=ys(t,"node_modules",e,"package.json");return await this.fileExists(i)?vs(i):n&&t.startsWith(n)&&t.length!==n.length?this.resolvePathToModule(e,vs(t),n):void 0}async fileExists(e){if(!this.fileSystemProvider)return!1;try{const t=await this.fileSystemProvider.stat(e);return t.type!==fr.Unknown||-1!==t.size}catch(t){return!1}}};function Ys(e,t){return qt.create(t.positionAt(e.offset),t.positionAt(e.end))}function Xs(e,t){const n=t.start.line,i=t.end.line,r=e.start.line,s=e.end.line;return!(n<r||i<r)&&(!(n>s||i>s)&&(!(n===r&&t.start.character<e.start.character)&&!(i===s&&t.end.character>e.end.character)))}function Zs(e){if(e.type===ee.Selector)return li.Write;if(e instanceof ge&&e.parent&&e.parent instanceof Fe&&e.isCustomProperty)return li.Write;if(e.parent)switch(e.parent.type){case ee.FunctionDeclaration:case ee.MixinDeclaration:case ee.Keyframe:case ee.VariableDeclaration:case ee.FunctionParameter:return li.Write}return li.Read}function eo(e){const t=e.toString(16);return 2!==t.length?"0"+t:t}var to=de.Warning,no=de.Error,io=de.Ignore,ro=class{constructor(e,t,n){this.id=e,this.message=t,this.defaultValue=n}},so={AllVendorPrefixes:new ro("compatibleVendorPrefixes",Dt("When using a vendor-specific prefix make sure to also include all other vendor-specific properties"),io),IncludeStandardPropertyWhenUsingVendorPrefix:new ro("vendorPrefix",Dt("When using a vendor-specific prefix also include the standard property"),to),DuplicateDeclarations:new ro("duplicateProperties",Dt("Do not use duplicate style definitions"),io),EmptyRuleSet:new ro("emptyRules",Dt("Do not use empty rulesets"),to),ImportStatemement:new ro("importStatement",Dt("Import statements do not load in parallel"),io),BewareOfBoxModelSize:new ro("boxModel",Dt("Do not use width or height when using padding or border"),io),UniversalSelector:new ro("universalSelector",Dt("The universal selector (*) is known to be slow"),io),ZeroWithUnit:new ro("zeroUnits",Dt("No unit for zero needed"),io),RequiredPropertiesForFontFace:new ro("fontFaceProperties",Dt("@font-face rule must define 'src' and 'font-family' properties"),to),HexColorLength:new ro("hexColorLength",Dt("Hex colors must consist of three, four, six or eight hex numbers"),no),ArgsInColorFunction:new ro("argumentsInColorFunction",Dt("Invalid number of parameters"),no),UnknownProperty:new ro("unknownProperties",Dt("Unknown property."),to),UnknownAtRules:new ro("unknownAtRules",Dt("Unknown at-rule."),to),IEStarHack:new ro("ieHack",Dt("IE hacks are only necessary when supporting IE7 and older"),io),UnknownVendorSpecificProperty:new ro("unknownVendorSpecificProperties",Dt("Unknown vendor specific property."),io),PropertyIgnoredDueToDisplay:new ro("propertyIgnoredDueToDisplay",Dt("Property is ignored due to the display."),to),AvoidImportant:new ro("important",Dt("Avoid using !important. It is an indication that the specificity of the entire CSS has gotten out of control and needs to be refactored."),io),AvoidFloat:new ro("float",Dt("Avoid using 'float'. Floats lead to fragile CSS that is easy to break if one aspect of the layout changes."),io),AvoidIdSelector:new ro("idSelector",Dt("Selectors should not contain IDs because these rules are too tightly coupled with the HTML."),io)},oo={ValidProperties:new class{constructor(e,t,n){this.id=e,this.message=t,this.defaultValue=n}}("validProperties",Dt("A list of properties that are not validated against the `unknownProperties` rule."),[])},ao=class{constructor(e={}){this.conf=e}getRule(e){if(this.conf.hasOwnProperty(e.id)){const t=function(e){switch(e){case"ignore":return de.Ignore;case"warning":return de.Warning;case"error":return de.Error}return null}(this.conf[e.id]);if(t)return t}return e.defaultValue}getSetting(e){return this.conf[e.id]}};var lo=class{constructor(e){this.cssDataManager=e}doCodeActions(e,t,n,i){return this.doCodeActions2(e,t,n,i).map((t=>{const n=t.edit&&t.edit.documentChanges&&t.edit.documentChanges[0];return gn.create(t.title,"_css.applyCodeAction",e.uri,e.version,n&&n.edits)}))}doCodeActions2(e,t,n,i){const r=[];if(n.diagnostics)for(const s of n.diagnostics)this.appendFixesForMarker(e,i,s,r);return r}getFixesForUnknownProperty(e,t,n,i){const r=t.getName(),s=[];this.cssDataManager.getProperties().forEach((e=>{const t=function(e,t,n=4){let i=Math.abs(e.length-t.length);if(i>n)return 0;let r,s,o=[],a=[];for(r=0;r<t.length+1;++r)a.push(0);for(r=0;r<e.length+1;++r)o.push(a);for(r=1;r<e.length+1;++r)for(s=1;s<t.length+1;++s)e[r-1]===t[s-1]?o[r][s]=o[r-1][s-1]+1:o[r][s]=Math.max(o[r-1][s],o[r][s-1]);return o[e.length][t.length]-Math.sqrt(i)}(r,e.name);t>=r.length/2&&s.push({property:e.name,score:t})})),s.sort(((e,t)=>t.score-e.score||e.property.localeCompare(t.property)));let o=3;for(const a of s){const t=a.property,r=Dt("Rename to '{0}'",t),s=vn.replace(n.range,t),l=On.create(e.uri,e.version),c={documentChanges:[xn.create(l,[s])]},h=Si.create(r,c,vi.QuickFix);if(h.diagnostics=[n],i.push(h),--o<=0)return}}appendFixesForMarker(e,t,n,i){if(n.code!==so.UnknownProperty.id)return;const r=e.offsetAt(n.range.start),s=e.offsetAt(n.range.end),o=he(t,r);for(let a=o.length-1;a>=0;a--){const t=o[a];if(t instanceof xe){const o=t.getProperty();if(o&&o.offset===r&&o.end===s)return void this.getFixesForUnknownProperty(e,o,n,i)}}}},co=class{constructor(e){this.fullPropertyName=e.getFullPropertyName().toLowerCase(),this.node=e}};function ho(e,t,n,i){const r=e[t];r.value=n,n&&(ls(r.properties,i)||r.properties.push(i))}function uo(e,t,n,i){"top"===t||"right"===t||"bottom"===t||"left"===t?ho(e,t,n,i):function(e,t,n){ho(e,"top",t,n),ho(e,"right",t,n),ho(e,"bottom",t,n),ho(e,"left",t,n)}(e,n,i)}function po(e,t,n){switch(t.length){case 1:uo(e,void 0,t[0],n);break;case 2:uo(e,"top",t[0],n),uo(e,"bottom",t[0],n),uo(e,"right",t[1],n),uo(e,"left",t[1],n);break;case 3:uo(e,"top",t[0],n),uo(e,"right",t[1],n),uo(e,"left",t[1],n),uo(e,"bottom",t[2],n);break;case 4:uo(e,"top",t[0],n),uo(e,"right",t[1],n),uo(e,"bottom",t[2],n),uo(e,"left",t[3],n)}}function mo(e,t){for(let n of t)if(e.matches(n))return!0;return!1}function fo(e,t=!0){return(!t||!mo(e,["initial","unset"]))&&0!==parseFloat(e.getText())}function go(e,t=!0){return e.map((e=>fo(e,t)))}function bo(e,t=!0){return!mo(e,["none","hidden"])&&(!t||!mo(e,["initial","unset"]))}function vo(e,t=!0){return e.map((e=>bo(e,t)))}function yo(e){const t=e.getChildren();if(1===t.length){const e=t[0];return fo(e)&&bo(e)}for(const n of t){const e=n;if(!fo(e,!1)||!bo(e,!1))return!1}return!0}var wo=class{constructor(){this.data={}}add(e,t,n){let i=this.data[e];i||(i={nodes:[],names:[]},this.data[e]=i),i.names.push(t),n&&i.nodes.push(n)}},_o=class e{static entries(t,n,i,r,s){const o=new e(n,i,r);return t.acceptVisitor(o),o.completeValidations(),o.getEntries(s)}constructor(e,t,n){this.cssDataManager=n,this.warnings=[],this.settings=t,this.documentText=e.getText(),this.keyframes=new wo,this.validProperties={};const i=t.getSetting(oo.ValidProperties);Array.isArray(i)&&i.forEach((e=>{if("string"===typeof e){const t=e.trim().toLowerCase();t.length&&(this.validProperties[t]=!0)}}))}isValidPropertyDeclaration(e){const t=e.fullPropertyName;return this.validProperties[t]}fetch(e,t){const n=[];for(const i of e)i.fullPropertyName===t&&n.push(i);return n}fetchWithValue(e,t,n){const i=[];for(const r of e)if(r.fullPropertyName===t){const e=r.node.getValue();e&&this.findValueInExpression(e,n)&&i.push(r)}return i}findValueInExpression(e,t){let n=!1;return e.accept((e=>(e.type===ee.Identifier&&e.matches(t)&&(n=!0),!n))),n}getEntries(e=de.Warning|de.Error){return this.warnings.filter((t=>0!==(t.getLevel()&e)))}addEntry(e,t,n){const i=new Nt(e,t,this.settings.getRule(t),n);this.warnings.push(i)}getMissingNames(e,t){const n=e.slice(0);for(let r=0;r<t.length;r++){const e=n.indexOf(t[r]);-1!==e&&(n[e]=null)}let i=null;for(let r=0;r<n.length;r++){const e=n[r];e&&(i=null===i?Dt("'{0}'",e):Dt("{0}, '{1}'",i,e))}return i}visitNode(e){switch(e.type){case ee.UnknownAtRule:return this.visitUnknownAtRule(e);case ee.Keyframe:return this.visitKeyframe(e);case ee.FontFace:return this.visitFontFace(e);case ee.Ruleset:return this.visitRuleSet(e);case ee.SimpleSelector:return this.visitSimpleSelector(e);case ee.Function:return this.visitFunction(e);case ee.NumericValue:return this.visitNumericValue(e);case ee.Import:return this.visitImport(e);case ee.HexColorValue:return this.visitHexColorValue(e);case ee.Prio:return this.visitPrio(e);case ee.IdentifierSelector:return this.visitIdentifierSelector(e)}return!0}completeValidations(){this.validateKeyframes()}visitUnknownAtRule(e){const t=e.getChild(0);if(!t)return!1;return!this.cssDataManager.getAtDirective(t.getText())&&(this.addEntry(t,so.UnknownAtRules,`Unknown at rule ${t.getText()}`),!0)}visitKeyframe(e){const t=e.getKeyword();if(!t)return!1;const n=t.getText();return this.keyframes.add(e.getName(),n,"@keyframes"!==n?t:null),!0}validateKeyframes(){const e=["@-webkit-keyframes","@-moz-keyframes","@-o-keyframes"];for(const t in this.keyframes.data){const n=this.keyframes.data[t].names,i=-1===n.indexOf("@keyframes");if(!i&&1===n.length)continue;const r=this.getMissingNames(e,n);if(r||i)for(const e of this.keyframes.data[t].nodes){if(i){const t=Dt("Always define standard rule '@keyframes' when defining keyframes.");this.addEntry(e,so.IncludeStandardPropertyWhenUsingVendorPrefix,t)}if(r){const t=Dt("Always include all vendor specific rules: Missing: {0}",r);this.addEntry(e,so.AllVendorPrefixes,t)}}}return!0}visitSimpleSelector(e){const t=this.documentText.charAt(e.offset);return 1===e.length&&"*"===t&&this.addEntry(e,so.UniversalSelector),!0}visitIdentifierSelector(e){return this.addEntry(e,so.AvoidIdSelector),!0}visitImport(e){return this.addEntry(e,so.ImportStatemement),!0}visitRuleSet(t){const n=t.getDeclarations();if(!n)return!1;n.hasChildren()||this.addEntry(t.getSelectors(),so.EmptyRuleSet);const i=[];for(const e of n.getChildren())e instanceof xe&&i.push(new co(e));const r=function(e){const t={top:{value:!1,properties:[]},right:{value:!1,properties:[]},bottom:{value:!1,properties:[]},left:{value:!1,properties:[]}};for(const n of e){const e=n.node.value;if("undefined"!==typeof e)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:const i=n.fullPropertyName.split("-");switch(i[0]){case"border":switch(i[1]){case void 0:case"top":case"right":case"bottom":case"left":switch(i[2]){case void 0:uo(t,i[1],yo(e),n);break;case"width":uo(t,i[1],fo(e,!1),n);break;case"style":uo(t,i[1],bo(e,!0),n)}break;case"width":po(t,go(e.getChildren(),!1),n);break;case"style":po(t,vo(e.getChildren(),!0),n)}break;case"padding":1===i.length?po(t,go(e.getChildren(),!0),n):uo(t,i[1],fo(e,!0),n)}}}return t}(i);if(r.width){let e=[];if(r.right.value&&(e=cs(e,r.right.properties)),r.left.value&&(e=cs(e,r.left.properties)),0!==e.length){for(const t of e)this.addEntry(t.node,so.BewareOfBoxModelSize);this.addEntry(r.width.node,so.BewareOfBoxModelSize)}}if(r.height){let e=[];if(r.top.value&&(e=cs(e,r.top.properties)),r.bottom.value&&(e=cs(e,r.bottom.properties)),0!==e.length){for(const t of e)this.addEntry(t.node,so.BewareOfBoxModelSize);this.addEntry(r.height.node,so.BewareOfBoxModelSize)}}let s=this.fetchWithValue(i,"display","inline-block");if(s.length>0){const e=this.fetch(i,"float");for(let t=0;t<e.length;t++){const n=e[t].node,i=n.getValue();i&&!i.matches("none")&&this.addEntry(n,so.PropertyIgnoredDueToDisplay,Dt("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(s=this.fetchWithValue(i,"display","block"),s.length>0){const e=this.fetch(i,"vertical-align");for(let t=0;t<e.length;t++)this.addEntry(e[t].node,so.PropertyIgnoredDueToDisplay,Dt("Property is ignored due to the display. With 'display: block', vertical-align should not be used."))}const o=this.fetch(i,"float");for(let e=0;e<o.length;e++){const t=o[e];this.isValidPropertyDeclaration(t)||this.addEntry(t.node,so.AvoidFloat)}for(let e=0;e<i.length;e++){const t=i[e];if("background"!==t.fullPropertyName&&!this.validProperties[t.fullPropertyName]){const e=t.node.getValue();if(e&&"-"!==this.documentText.charAt(e.offset)){const e=this.fetch(i,t.fullPropertyName);if(e.length>1)for(let n=0;n<e.length;n++){const i=e[n].node.getValue();i&&"-"!==this.documentText.charAt(i.offset)&&e[n]!==t&&this.addEntry(t.node,so.DuplicateDeclarations)}}}}if(!t.getSelectors().matches(":export")){const n=new wo;let r=!1;for(const e of i){const t=e.node;if(this.isCSSDeclaration(t)){let i=e.fullPropertyName;const r=i.charAt(0);if("-"===r){if("-"!==i.charAt(1)){this.cssDataManager.isKnownProperty(i)||this.validProperties[i]||this.addEntry(t.getProperty(),so.UnknownVendorSpecificProperty);const e=t.getNonPrefixedPropertyName();n.add(e,i,t.getProperty())}}else{const e=i;"*"!==r&&"_"!==r||(this.addEntry(t.getProperty(),so.IEStarHack),i=i.substr(1)),this.cssDataManager.isKnownProperty(e)||this.cssDataManager.isKnownProperty(i)||this.validProperties[i]||this.addEntry(t.getProperty(),so.UnknownProperty,Dt("Unknown property: '{0}'",t.getFullPropertyName())),n.add(i,i,null)}}else r=!0}if(!r)for(const i in n.data){const r=n.data[i],s=r.names,o=this.cssDataManager.isStandardProperty(i)&&-1===s.indexOf(i);if(!o&&1===s.length)continue;const a=new Set(o?r.nodes:[]);if(o){const e=this.getContextualVendorSpecificPseudoElements(t);for(const t of r.nodes){const n=t.getName(),r=n.substring(0,n.length-i.length);e.some((e=>e.startsWith(r)))&&a.delete(t)}}const l=[];for(let t=0,n=e.prefixes.length;t<n;t++){const n=e.prefixes[t];this.cssDataManager.isStandardProperty(n+i)&&l.push(n+i)}const c=this.getMissingNames(l,s);if(c||o)for(const e of r.nodes){if(o&&a.has(e)){const t=Dt("Also define the standard property '{0}' for compatibility",i);this.addEntry(e,so.IncludeStandardPropertyWhenUsingVendorPrefix,t)}if(c){const t=Dt("Always include all vendor specific properties: Missing: {0}",c);this.addEntry(e,so.AllVendorPrefixes,t)}}}}return!0}getContextualVendorSpecificPseudoElements(e){function t(e,n){for(const i of n.getChildren()){if(i.type===ee.PseudoSelector){const t=i.getChildren()[0]?.getText();t&&e.add(t)}t(e,i)}}const n=new Set;return function e(n,i){if(i.type===ee.Ruleset)for(const r of i.getSelectors().getChildren())t(n,r);return i.parent?e(n,i.parent):void 0}(n,e),Array.from(n)}visitPrio(e){return this.addEntry(e,so.AvoidImportant),!0}visitNumericValue(e){const t=e.findParent(ee.Function);if(t&&"calc"===t.getName())return!0;const n=e.findParent(ee.Declaration);if(n){if(n.getValue()){const t=e.getValue();if(!t.unit||-1===ts.length.indexOf(t.unit.toLowerCase()))return!0;0===parseFloat(t.value)&&t.unit&&!this.validProperties[n.getFullPropertyName()]&&this.addEntry(e,so.ZeroWithUnit)}}return!0}visitFontFace(e){const t=e.getDeclarations();if(!t)return!1;let n=!1,i=!1,r=!1;for(const s of t.getChildren())if(this.isCSSDeclaration(s)){const e=s.getProperty().getName().toLowerCase();"src"===e&&(n=!0),"font-family"===e&&(i=!0)}else r=!0;return r||n&&i||this.addEntry(e,so.RequiredPropertiesForFontFace),!0}isCSSDeclaration(e){if(e instanceof xe){if(!e.getValue())return!1;const t=e.getProperty();if(!t)return!1;const n=t.getIdentifier();return!(!n||n.containsInterpolation())}return!1}visitHexColorValue(e){const t=e.length;return 9!==t&&7!==t&&5!==t&&4!==t&&this.addEntry(e,so.HexColorLength),!1}visitFunction(e){const t=e.getName().toLowerCase();let n=-1,i=0;switch(t){case"rgb(":case"hsl(":n=3;break;case"rgba(":case"hsla(":n=4}return-1!==n&&(e.getArguments().accept((e=>!(e instanceof ct)||(i+=1,!1))),i!==n&&this.addEntry(e,so.ArgsInColorFunction)),!0}};_o.prefixes=["-ms-","-moz-","-o-","-webkit-"];var ko=class{constructor(e){this.cssDataManager=e}configure(e){this.settings=e}doValidation(e,t,n=this.settings){if(n&&!1===n.validate)return[];const i=[];i.push.apply(i,Rt.entries(t)),i.push.apply(i,_o.entries(t,e,new ao(n&&n.lint),this.cssDataManager));const r=[];for(const s in so)r.push(so[s].id);return i.filter((e=>e.getLevel()!==de.Ignore)).map((function(t){const n=qt.create(e.positionAt(t.getOffset()),e.positionAt(t.getOffset()+t.getLength())),i=e.languageId;return{code:t.getRule().id,source:i,message:t.getMessage(),severity:t.getLevel()===de.Warning?cn.Warning:cn.Error,range:n}}))}},Co="/".charCodeAt(0),So="\n".charCodeAt(0),xo="\r".charCodeAt(0),Eo="\f".charCodeAt(0),Fo="$".charCodeAt(0),Lo="#".charCodeAt(0),Io="{".charCodeAt(0),To="=".charCodeAt(0),No="!".charCodeAt(0),Ro="<".charCodeAt(0),Do=">".charCodeAt(0),Ao=".".charCodeAt(0),Mo=("@".charCodeAt(0),o.CustomToken),Oo=Mo++,zo=Mo++,Po=(Mo++,Mo++),Bo=Mo++,Wo=Mo++,Vo=Mo++,Uo=Mo++,$o=(Mo++,class extends re{scanNext(e){if(this.stream.advanceIfChar(Fo)){const t=["$"];if(this.ident(t))return this.finishToken(e,Oo,t.join(""));this.stream.goBackTo(e)}return this.stream.advanceIfChars([Lo,Io])?this.finishToken(e,zo):this.stream.advanceIfChars([To,To])?this.finishToken(e,Po):this.stream.advanceIfChars([No,To])?this.finishToken(e,Bo):this.stream.advanceIfChar(Ro)?this.stream.advanceIfChar(To)?this.finishToken(e,Vo):this.finishToken(e,o.Delim):this.stream.advanceIfChar(Do)?this.stream.advanceIfChar(To)?this.finishToken(e,Wo):this.finishToken(e,o.Delim):this.stream.advanceIfChars([Ao,Ao,Ao])?this.finishToken(e,Uo):super.scanNext(e)}comment(){return!!super.comment()||!(this.inURL||!this.stream.advanceIfChars([Co,Co]))&&(this.stream.advanceWhileChar((e=>{switch(e){case So:case xo:case Eo:return!1;default:return!0}})),!0)}}),qo=class{constructor(e,t){this.id=e,this.message=t}},jo={FromExpected:new qo("scss-fromexpected",Dt("'from' expected")),ThroughOrToExpected:new qo("scss-throughexpected",Dt("'through' or 'to' expected")),InExpected:new qo("scss-fromexpected",Dt("'in' expected"))},Ko=class extends as{constructor(){super(new $o)}_parseStylesheetStatement(e=!1){return this.peek(o.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;const e=this.create($e);if(this.consumeToken(),!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral()))return this.finish(e,cr.URIOrStringExpected);for(;this.accept(o.Comma);)if(!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral()))return this.finish(e,cr.URIOrStringExpected);return this._completeParseImport(e)}_parseVariableDeclaration(e=[]){if(!this.peek(Oo))return null;const t=this.create(vt);if(!t.setVariable(this._parseVariable()))return null;if(!this.accept(o.Colon))return this.finish(t,cr.ColonExpected);if(this.prevToken&&(t.colonPosition=this.prevToken.offset),!t.setValue(this._parseExpr()))return this.finish(t,cr.VariableValueExpected,[],e);for(;this.peek(o.Exclamation);)if(t.addChild(this._tryParsePrio()));else{if(this.consumeToken(),!this.peekRegExp(o.Ident,/^(default|global)$/))return this.finish(t,cr.UnknownKeyword);this.consumeToken()}return this.peek(o.SemiColon)&&(t.semicolonPosition=this.token.offset),this.finish(t)}_parseMediaCondition(){return this._parseInterpolation()||super._parseMediaCondition()}_parseMediaFeatureRangeOperator(){return this.accept(Vo)||this.accept(Wo)||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(Oo))return null;const e=this.create(wt);return this.consumeToken(),e}_parseModuleMember(){const e=this.mark(),t=this.create(Tt);return t.setIdentifier(this._parseIdent([ne.Module]))?this.hasWhitespace()||!this.acceptDelim(".")||this.hasWhitespace()?(this.restoreAtMark(e),null):t.addChild(this._parseVariable()||this._parseFunction())?t:this.finish(t,cr.IdentifierOrVariableExpected):null}_parseIdent(e){if(!this.peek(o.Ident)&&!this.peek(zo)&&!this.peekDelim("-"))return null;const t=this.create(ge);t.referenceTypes=e,t.isCustomProperty=this.peekRegExp(o.Ident,/^--/);let n=!1;const i=()=>{const e=this.mark();return this.acceptDelim("-")&&(this.hasWhitespace()||this.acceptDelim("-"),this.hasWhitespace())?(this.restoreAtMark(e),null):this._parseInterpolation()};for(;(this.accept(o.Ident)||t.addChild(i())||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(zo)){const e=this.create(yt);return this.consumeToken(),e.addChild(this._parseExpr())||this._parseNestingSelector()?this.accept(o.CurlyR)?this.finish(e):this.finish(e,cr.RightCurlyExpected):this.accept(o.CurlyR)?this.finish(e):this.finish(e,cr.ExpressionExpected)}return null}_parseOperator(){if(this.peek(Po)||this.peek(Bo)||this.peek(Wo)||this.peek(Vo)||this.peekDelim(">")||this.peekDelim("<")||this.peekIdent("and")||this.peekIdent("or")||this.peekDelim("%")){const e=this.createNode(ee.Operator);return this.consumeToken(),this.finish(e)}return super._parseOperator()}_parseUnaryOperator(){if(this.peekIdent("not")){const e=this.create(pe);return this.consumeToken(),this.finish(e)}return super._parseUnaryOperator()}_parseRuleSetDeclaration(){return this.peek(o.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){const t=this._tryParseCustomPropertyDeclaration(e);if(t)return t;const n=this.create(xe);if(!n.setProperty(this._parseProperty()))return null;if(!this.accept(o.Colon))return this.finish(n,cr.ColonExpected,[o.Colon],e||[o.SemiColon]);this.prevToken&&(n.colonPosition=this.prevToken.offset);let i=!1;if(n.setValue(this._parseExpr())&&(i=!0,n.addChild(this._parsePrio())),this.peek(o.CurlyL))n.setNestedProperties(this._parseNestedProperties());else if(!i)return this.finish(n,cr.PropertyValueExpected);return this.peek(o.SemiColon)&&(n.semicolonPosition=this.token.offset),this.finish(n)}_parseNestedProperties(){const e=this.create(We);return this._parseBody(e,this._parseDeclaration.bind(this))}_parseExtends(){if(this.peekKeyword("@extend")){const e=this.create(_t);if(this.consumeToken(),!e.getSelectors().addChild(this._parseSimpleSelector()))return this.finish(e,cr.SelectorExpected);for(;this.accept(o.Comma);)e.getSelectors().addChild(this._parseSimpleSelector());return this.accept(o.Exclamation)&&!this.acceptIdent("optional")?this.finish(e,cr.UnknownKeyword):this.finish(e)}return null}_parseSimpleSelectorBody(){return this._parseSelectorPlaceholder()||super._parseSimpleSelectorBody()}_parseNestingSelector(){if(this.peekDelim("&")){const e=this.createNode(ee.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(o.Num)||this.accept(o.Dimension)||e.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(e)}return null}_parseSelectorPlaceholder(){if(this.peekDelim("%")){const e=this.createNode(ee.SelectorPlaceholder);return this.consumeToken(),this._parseIdent(),this.finish(e)}if(this.peekKeyword("@at-root")){const e=this.createNode(ee.SelectorPlaceholder);if(this.consumeToken(),this.accept(o.ParenthesisL)){if(!this.acceptIdent("with")&&!this.acceptIdent("without"))return this.finish(e,cr.IdentifierExpected);if(!this.accept(o.Colon))return this.finish(e,cr.ColonExpected);if(!e.addChild(this._parseIdent()))return this.finish(e,cr.IdentifierExpected);if(!this.accept(o.ParenthesisR))return this.finish(e,cr.RightParenthesisExpected,[o.CurlyR])}return this.finish(e)}return null}_parseElementName(){const e=this.mark(),t=super._parseElementName();return t&&!this.hasWhitespace()&&this.peek(o.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;const e=this.createNode(ee.Debug);return this.consumeToken(),e.addChild(this._parseExpr()),this.finish(e)}_parseControlStatement(e=this._parseRuleSetDeclaration.bind(this)){return this.peek(o.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){const t=this.create(Re);if(this.consumeToken(),!t.setExpression(this._parseExpr(!0)))return this.finish(t,cr.ExpressionExpected);if(this._parseBody(t,e),this.acceptKeyword("@else"))if(this.peekIdent("if"))t.setElseClause(this._internalParseIfStatement(e));else if(this.peek(o.CurlyL)){const n=this.create(Oe);this._parseBody(n,e),t.setElseClause(n)}return this.finish(t)}_parseForStatement(e){if(!this.peekKeyword("@for"))return null;const t=this.create(De);return this.consumeToken(),t.setVariable(this._parseVariable())?this.acceptIdent("from")?t.addChild(this._parseBinaryExpr())?this.acceptIdent("to")||this.acceptIdent("through")?t.addChild(this._parseBinaryExpr())?this._parseBody(t,e):this.finish(t,cr.ExpressionExpected,[o.CurlyR]):this.finish(t,jo.ThroughOrToExpected,[o.CurlyR]):this.finish(t,cr.ExpressionExpected,[o.CurlyR]):this.finish(t,jo.FromExpected,[o.CurlyR]):this.finish(t,cr.VariableNameExpected,[o.CurlyR])}_parseEachStatement(e){if(!this.peekKeyword("@each"))return null;const t=this.create(Ae);this.consumeToken();const n=t.getVariables();if(!n.addChild(this._parseVariable()))return this.finish(t,cr.VariableNameExpected,[o.CurlyR]);for(;this.accept(o.Comma);)if(!n.addChild(this._parseVariable()))return this.finish(t,cr.VariableNameExpected,[o.CurlyR]);return this.finish(n),this.acceptIdent("in")?t.addChild(this._parseExpr())?this._parseBody(t,e):this.finish(t,cr.ExpressionExpected,[o.CurlyR]):this.finish(t,jo.InExpected,[o.CurlyR])}_parseWhileStatement(e){if(!this.peekKeyword("@while"))return null;const t=this.create(Me);return this.consumeToken(),t.addChild(this._parseBinaryExpr())?this._parseBody(t,e):this.finish(t,cr.ExpressionExpected,[o.CurlyR])}_parseFunctionBodyDeclaration(){return this._parseVariableDeclaration()||this._parseReturnStatement()||this._parseWarnAndDebug()||this._parseControlStatement(this._parseFunctionBodyDeclaration.bind(this))}_parseFunctionDeclaration(){if(!this.peekKeyword("@function"))return null;const e=this.create(ze);if(this.consumeToken(),!e.setIdentifier(this._parseIdent([ne.Function])))return this.finish(e,cr.IdentifierExpected,[o.CurlyR]);if(!this.accept(o.ParenthesisL))return this.finish(e,cr.LeftParenthesisExpected,[o.CurlyR]);if(e.getParameters().addChild(this._parseParameterDeclaration()))for(;this.accept(o.Comma)&&!this.peek(o.ParenthesisR);)if(!e.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(e,cr.VariableNameExpected);return this.accept(o.ParenthesisR)?this._parseBody(e,this._parseFunctionBodyDeclaration.bind(this)):this.finish(e,cr.RightParenthesisExpected,[o.CurlyR])}_parseReturnStatement(){if(!this.peekKeyword("@return"))return null;const e=this.createNode(ee.ReturnStatement);return this.consumeToken(),e.addChild(this._parseExpr())?this.finish(e):this.finish(e,cr.ExpressionExpected)}_parseMixinDeclaration(){if(!this.peekKeyword("@mixin"))return null;const e=this.create(xt);if(this.consumeToken(),!e.setIdentifier(this._parseIdent([ne.Mixin])))return this.finish(e,cr.IdentifierExpected,[o.CurlyR]);if(this.accept(o.ParenthesisL)){if(e.getParameters().addChild(this._parseParameterDeclaration()))for(;this.accept(o.Comma)&&!this.peek(o.ParenthesisR);)if(!e.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(e,cr.VariableNameExpected);if(!this.accept(o.ParenthesisR))return this.finish(e,cr.RightParenthesisExpected,[o.CurlyR])}return this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_parseParameterDeclaration(){const e=this.create(Te);return e.setIdentifier(this._parseVariable())?(this.accept(Uo),this.accept(o.Colon)&&!e.setDefaultValue(this._parseExpr(!0))?this.finish(e,cr.VariableValueExpected,[],[o.Comma,o.ParenthesisR]):this.finish(e)):null}_parseMixinContent(){if(!this.peekKeyword("@content"))return null;const e=this.create(kt);if(this.consumeToken(),this.accept(o.ParenthesisL)){if(e.getArguments().addChild(this._parseFunctionArgument()))for(;this.accept(o.Comma)&&!this.peek(o.ParenthesisR);)if(!e.getArguments().addChild(this._parseFunctionArgument()))return this.finish(e,cr.ExpressionExpected);if(!this.accept(o.ParenthesisR))return this.finish(e,cr.RightParenthesisExpected)}return this.finish(e)}_parseMixinReference(){if(!this.peekKeyword("@include"))return null;const e=this.create(St);this.consumeToken();const t=this._parseIdent([ne.Mixin]);if(!e.setIdentifier(t))return this.finish(e,cr.IdentifierExpected,[o.CurlyR]);if(!this.hasWhitespace()&&this.acceptDelim(".")&&!this.hasWhitespace()){const n=this._parseIdent([ne.Mixin]);if(!n)return this.finish(e,cr.IdentifierExpected,[o.CurlyR]);const i=this.create(Tt);t.referenceTypes=[ne.Module],i.setIdentifier(t),e.setIdentifier(n),e.addChild(i)}if(this.accept(o.ParenthesisL)){if(e.getArguments().addChild(this._parseFunctionArgument()))for(;this.accept(o.Comma)&&!this.peek(o.ParenthesisR);)if(!e.getArguments().addChild(this._parseFunctionArgument()))return this.finish(e,cr.ExpressionExpected);if(!this.accept(o.ParenthesisR))return this.finish(e,cr.RightParenthesisExpected)}return(this.peekIdent("using")||this.peek(o.CurlyL))&&e.setContent(this._parseMixinContentDeclaration()),this.finish(e)}_parseMixinContentDeclaration(){const e=this.create(Ct);if(this.acceptIdent("using")){if(!this.accept(o.ParenthesisL))return this.finish(e,cr.LeftParenthesisExpected,[o.CurlyL]);if(e.getParameters().addChild(this._parseParameterDeclaration()))for(;this.accept(o.Comma)&&!this.peek(o.ParenthesisR);)if(!e.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(e,cr.VariableNameExpected);if(!this.accept(o.ParenthesisR))return this.finish(e,cr.RightParenthesisExpected,[o.CurlyL])}return this.peek(o.CurlyL)&&this._parseBody(e,this._parseMixinReferenceBodyStatement.bind(this)),this.finish(e)}_parseMixinReferenceBodyStatement(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()}_parseFunctionArgument(){const e=this.create(Ne),t=this.mark(),n=this._parseVariable();if(n)if(this.accept(o.Colon))e.setIdentifier(n);else{if(this.accept(Uo))return e.setValue(n),this.finish(e);this.restoreAtMark(t)}return e.setValue(this._parseExpr(!0))?(this.accept(Uo),e.addChild(this._parsePrio()),this.finish(e)):e.setValue(this._tryParsePrio())?this.finish(e):null}_parseURLArgument(){const e=this.mark(),t=super._parseURLArgument();if(!t||!this.peek(o.ParenthesisR)){this.restoreAtMark(e);const t=this.create(pe);return t.addChild(this._parseBinaryExpr()),this.finish(t)}return t}_parseOperation(){if(!this.peek(o.ParenthesisL))return null;const e=this.create(pe);for(this.consumeToken();e.addChild(this._parseListElement());)this.accept(o.Comma);return this.accept(o.ParenthesisR)?this.finish(e):this.finish(e,cr.RightParenthesisExpected)}_parseListElement(){const e=this.create(Ft),t=this._parseBinaryExpr();if(!t)return null;if(this.accept(o.Colon)){if(e.setKey(t),!e.setValue(this._parseBinaryExpr()))return this.finish(e,cr.ExpressionExpected)}else e.setValue(t);return this.finish(e)}_parseUse(){if(!this.peekKeyword("@use"))return null;const e=this.create(qe);if(this.consumeToken(),!e.addChild(this._parseStringLiteral()))return this.finish(e,cr.StringLiteralExpected);if(!this.peek(o.SemiColon)&&!this.peek(o.EOF)){if(!this.peekRegExp(o.Ident,/as|with/))return this.finish(e,cr.UnknownKeyword);if(this.acceptIdent("as")&&!e.setIdentifier(this._parseIdent([ne.Module]))&&!this.acceptDelim("*"))return this.finish(e,cr.IdentifierOrWildcardExpected);if(this.acceptIdent("with")){if(!this.accept(o.ParenthesisL))return this.finish(e,cr.LeftParenthesisExpected,[o.ParenthesisR]);if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,cr.VariableNameExpected);for(;this.accept(o.Comma)&&!this.peek(o.ParenthesisR);)if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,cr.VariableNameExpected);if(!this.accept(o.ParenthesisR))return this.finish(e,cr.RightParenthesisExpected)}}return this.accept(o.SemiColon)||this.accept(o.EOF)?this.finish(e):this.finish(e,cr.SemiColonExpected)}_parseModuleConfigDeclaration(){const e=this.create(je);return e.setIdentifier(this._parseVariable())?this.accept(o.Colon)&&e.setValue(this._parseExpr(!0))?!this.accept(o.Exclamation)||!this.hasWhitespace()&&this.acceptIdent("default")?this.finish(e):this.finish(e,cr.UnknownKeyword):this.finish(e,cr.VariableValueExpected,[],[o.Comma,o.ParenthesisR]):null}_parseForward(){if(!this.peekKeyword("@forward"))return null;const e=this.create(Ke);if(this.consumeToken(),!e.addChild(this._parseStringLiteral()))return this.finish(e,cr.StringLiteralExpected);if(this.acceptIdent("as")){const t=this._parseIdent([ne.Forward]);if(!e.setIdentifier(t))return this.finish(e,cr.IdentifierExpected);if(this.hasWhitespace()||!this.acceptDelim("*"))return this.finish(e,cr.WildcardExpected)}if(this.acceptIdent("with")){if(!this.accept(o.ParenthesisL))return this.finish(e,cr.LeftParenthesisExpected,[o.ParenthesisR]);if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,cr.VariableNameExpected);for(;this.accept(o.Comma)&&!this.peek(o.ParenthesisR);)if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,cr.VariableNameExpected);if(!this.accept(o.ParenthesisR))return this.finish(e,cr.RightParenthesisExpected)}else if((this.peekIdent("hide")||this.peekIdent("show"))&&!e.addChild(this._parseForwardVisibility()))return this.finish(e,cr.IdentifierOrVariableExpected);return this.accept(o.SemiColon)||this.accept(o.EOF)?this.finish(e):this.finish(e,cr.SemiColonExpected)}_parseForwardVisibility(){const e=this.create(He);for(e.setIdentifier(this._parseIdent());e.addChild(this._parseVariable()||this._parseIdent());)this.accept(o.Comma);return e.getChildren().length>1?e:null}_parseSupportsCondition(){return this._parseInterpolation()||super._parseSupportsCondition()}},Ho=Dt("Sass documentation"),Go=class e extends Ts{constructor(t,n){super("$",t,n),Qo(e.scssModuleLoaders),Qo(e.scssModuleBuiltIns)}isImportPathParent(e){return e===ee.Forward||e===ee.Use||super.isImportPathParent(e)}getCompletionForImportPath(t,n){const i=t.getParent().type;if(i===ee.Forward||i===ee.Use)for(let r of e.scssModuleBuiltIns){const e={label:r.label,documentation:r.documentation,textEdit:vn.replace(this.getCompletionRange(t),`'${r.label}'`),kind:jn.Module};n.items.push(e)}return super.getCompletionForImportPath(t,n)}createReplaceFunction(){let t=1;return(n,i)=>"\\"+i+": ${"+t+++":"+(e.variableDefaults[i]||"")+"}"}createFunctionProposals(e,t,n,i){for(const r of e){const e=r.func.replace(/\[?(\$\w+)\]?/g,this.createReplaceFunction()),s={label:r.func.substr(0,r.func.indexOf("(")),detail:r.func,documentation:r.desc,textEdit:vn.replace(this.getCompletionRange(t),e),insertTextFormat:Hn.Snippet,kind:jn.Function};n&&(s.sortText="z"),i.items.push(s)}return i}getCompletionsForSelector(t,n,i){return this.createFunctionProposals(e.selectorFuncs,null,!0,i),super.getCompletionsForSelector(t,n,i)}getTermProposals(t,n,i){let r=e.builtInFuncs;return t&&(r=r.filter((e=>!e.type||!t.restrictions||-1!==t.restrictions.indexOf(e.type)))),this.createFunctionProposals(r,n,!0,i),super.getTermProposals(t,n,i)}getColorProposals(t,n,i){return this.createFunctionProposals(e.colorProposals,n,!1,i),super.getColorProposals(t,n,i)}getCompletionsForDeclarationProperty(e,t){return this.getCompletionForAtDirectives(t),this.getCompletionsForSelector(null,!0,t),super.getCompletionsForDeclarationProperty(e,t)}getCompletionsForExtendsReference(e,t,n){const i=this.getSymbolContext().findSymbolsAtOffset(this.offset,ne.Rule);for(const r of i){const e={label:r.name,textEdit:vn.replace(this.getCompletionRange(t),r.name),kind:jn.Function};n.items.push(e)}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}};function Qo(e){e.forEach((e=>{if(e.documentation&&e.references&&e.references.length>0){const t="string"===typeof e.documentation?{kind:"markdown",value:e.documentation}:{kind:"markdown",value:e.documentation.value};t.value+="\n\n",t.value+=e.references.map((e=>`[${e.name}](${e.url})`)).join(" | "),e.documentation=t}}))}Go.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"},Go.colorProposals=[{func:"red($color)",desc:Dt("Gets the red component of a color.")},{func:"green($color)",desc:Dt("Gets the green component of a color.")},{func:"blue($color)",desc:Dt("Gets the blue component of a color.")},{func:"mix($color, $color, [$weight])",desc:Dt("Mixes two colors together.")},{func:"hue($color)",desc:Dt("Gets the hue component of a color.")},{func:"saturation($color)",desc:Dt("Gets the saturation component of a color.")},{func:"lightness($color)",desc:Dt("Gets the lightness component of a color.")},{func:"adjust-hue($color, $degrees)",desc:Dt("Changes the hue of a color.")},{func:"lighten($color, $amount)",desc:Dt("Makes a color lighter.")},{func:"darken($color, $amount)",desc:Dt("Makes a color darker.")},{func:"saturate($color, $amount)",desc:Dt("Makes a color more saturated.")},{func:"desaturate($color, $amount)",desc:Dt("Makes a color less saturated.")},{func:"grayscale($color)",desc:Dt("Converts a color to grayscale.")},{func:"complement($color)",desc:Dt("Returns the complement of a color.")},{func:"invert($color)",desc:Dt("Returns the inverse of a color.")},{func:"alpha($color)",desc:Dt("Gets the opacity component of a color.")},{func:"opacity($color)",desc:"Gets the alpha component (opacity) of a color."},{func:"rgba($color, $alpha)",desc:Dt("Changes the alpha component for a color.")},{func:"opacify($color, $amount)",desc:Dt("Makes a color more opaque.")},{func:"fade-in($color, $amount)",desc:Dt("Makes a color more opaque.")},{func:"transparentize($color, $amount)",desc:Dt("Makes a color more transparent.")},{func:"fade-out($color, $amount)",desc:Dt("Makes a color more transparent.")},{func:"adjust-color($color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha])",desc:Dt("Increases or decreases one or more components of a color.")},{func:"scale-color($color, [$red], [$green], [$blue], [$saturation], [$lightness], [$alpha])",desc:Dt("Fluidly scales one or more properties of a color.")},{func:"change-color($color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha])",desc:Dt("Changes one or more properties of a color.")},{func:"ie-hex-str($color)",desc:Dt("Converts a color into the format understood by IE filters.")}],Go.selectorFuncs=[{func:"selector-nest($selectors\u2026)",desc:Dt("Nests selector beneath one another like they would be nested in the stylesheet.")},{func:"selector-append($selectors\u2026)",desc:Dt("Appends selectors to one another without spaces in between.")},{func:"selector-extend($selector, $extendee, $extender)",desc:Dt("Extends $extendee with $extender within $selector.")},{func:"selector-replace($selector, $original, $replacement)",desc:Dt("Replaces $original with $replacement within $selector.")},{func:"selector-unify($selector1, $selector2)",desc:Dt("Unifies two selectors to produce a selector that matches elements matched by both.")},{func:"is-superselector($super, $sub)",desc:Dt("Returns whether $super matches all the elements $sub does, and possibly more.")},{func:"simple-selectors($selector)",desc:Dt("Returns the simple selectors that comprise a compound selector.")},{func:"selector-parse($selector)",desc:Dt("Parses a selector into the format returned by &.")}],Go.builtInFuncs=[{func:"unquote($string)",desc:Dt("Removes quotes from a string.")},{func:"quote($string)",desc:Dt("Adds quotes to a string.")},{func:"str-length($string)",desc:Dt("Returns the number of characters in a string.")},{func:"str-insert($string, $insert, $index)",desc:Dt("Inserts $insert into $string at $index.")},{func:"str-index($string, $substring)",desc:Dt("Returns the index of the first occurance of $substring in $string.")},{func:"str-slice($string, $start-at, [$end-at])",desc:Dt("Extracts a substring from $string.")},{func:"to-upper-case($string)",desc:Dt("Converts a string to upper case.")},{func:"to-lower-case($string)",desc:Dt("Converts a string to lower case.")},{func:"percentage($number)",desc:Dt("Converts a unitless number to a percentage."),type:"percentage"},{func:"round($number)",desc:Dt("Rounds a number to the nearest whole number.")},{func:"ceil($number)",desc:Dt("Rounds a number up to the next whole number.")},{func:"floor($number)",desc:Dt("Rounds a number down to the previous whole number.")},{func:"abs($number)",desc:Dt("Returns the absolute value of a number.")},{func:"min($numbers)",desc:Dt("Finds the minimum of several numbers.")},{func:"max($numbers)",desc:Dt("Finds the maximum of several numbers.")},{func:"random([$limit])",desc:Dt("Returns a random number.")},{func:"length($list)",desc:Dt("Returns the length of a list.")},{func:"nth($list, $n)",desc:Dt("Returns a specific item in a list.")},{func:"set-nth($list, $n, $value)",desc:Dt("Replaces the nth item in a list.")},{func:"join($list1, $list2, [$separator])",desc:Dt("Joins together two lists into one.")},{func:"append($list1, $val, [$separator])",desc:Dt("Appends a single value onto the end of a list.")},{func:"zip($lists)",desc:Dt("Combines several lists into a single multidimensional list.")},{func:"index($list, $value)",desc:Dt("Returns the position of a value within a list.")},{func:"list-separator(#list)",desc:Dt("Returns the separator of a list.")},{func:"map-get($map, $key)",desc:Dt("Returns the value in a map associated with a given key.")},{func:"map-merge($map1, $map2)",desc:Dt("Merges two maps together into a new map.")},{func:"map-remove($map, $keys)",desc:Dt("Returns a new map with keys removed.")},{func:"map-keys($map)",desc:Dt("Returns a list of all keys in a map.")},{func:"map-values($map)",desc:Dt("Returns a list of all values in a map.")},{func:"map-has-key($map, $key)",desc:Dt("Returns whether a map has a value associated with a given key.")},{func:"keywords($args)",desc:Dt("Returns the keywords passed to a function that takes variable arguments.")},{func:"feature-exists($feature)",desc:Dt("Returns whether a feature exists in the current Sass runtime.")},{func:"variable-exists($name)",desc:Dt("Returns whether a variable with the given name exists in the current scope.")},{func:"global-variable-exists($name)",desc:Dt("Returns whether a variable with the given name exists in the global scope.")},{func:"function-exists($name)",desc:Dt("Returns whether a function with the given name exists.")},{func:"mixin-exists($name)",desc:Dt("Returns whether a mixin with the given name exists.")},{func:"inspect($value)",desc:Dt("Returns the string representation of a value as it would be represented in Sass.")},{func:"type-of($value)",desc:Dt("Returns the type of a value.")},{func:"unit($number)",desc:Dt("Returns the unit(s) associated with a number.")},{func:"unitless($number)",desc:Dt("Returns whether a number has units.")},{func:"comparable($number1, $number2)",desc:Dt("Returns whether two numbers can be added, subtracted, or compared.")},{func:"call($name, $args\u2026)",desc:Dt("Dynamically calls a Sass function.")}],Go.scssAtDirectives=[{label:"@extend",documentation:Dt("Inherits the styles of another selector."),kind:jn.Keyword},{label:"@at-root",documentation:Dt("Causes one or more rules to be emitted at the root of the document."),kind:jn.Keyword},{label:"@debug",documentation:Dt("Prints the value of an expression to the standard error output stream. Useful for debugging complicated Sass files."),kind:jn.Keyword},{label:"@warn",documentation:Dt("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:jn.Keyword},{label:"@error",documentation:Dt("Throws the value of an expression as a fatal error with stack trace. Useful for validating arguments to mixins and functions."),kind:jn.Keyword},{label:"@if",documentation:Dt("Includes the body if the expression does not evaluate to `false` or `null`."),insertText:"@if ${1:expr} {\n\t$0\n}",insertTextFormat:Hn.Snippet,kind:jn.Keyword},{label:"@for",documentation:Dt("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\t$0\n}",insertTextFormat:Hn.Snippet,kind:jn.Keyword},{label:"@each",documentation:Dt("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} {\n\t$0\n}",insertTextFormat:Hn.Snippet,kind:jn.Keyword},{label:"@while",documentation:Dt("While loop that takes an expression and repeatedly outputs the nested styles until the statement evaluates to `false`."),insertText:"@while ${1:condition} {\n\t$0\n}",insertTextFormat:Hn.Snippet,kind:jn.Keyword},{label:"@mixin",documentation:Dt("Defines styles that can be re-used throughout the stylesheet with `@include`."),insertText:"@mixin ${1:name} {\n\t$0\n}",insertTextFormat:Hn.Snippet,kind:jn.Keyword},{label:"@include",documentation:Dt("Includes the styles defined by another mixin into the current rule."),kind:jn.Keyword},{label:"@function",documentation:Dt("Defines complex operations that can be re-used throughout stylesheets."),kind:jn.Keyword}],Go.scssModuleLoaders=[{label:"@use",documentation:Dt("Loads mixins, functions, and variables from other Sass stylesheets as 'modules', and combines CSS from multiple stylesheets together."),references:[{name:Ho,url:"https://sass-lang.com/documentation/at-rules/use"}],insertText:"@use $0;",insertTextFormat:Hn.Snippet,kind:jn.Keyword},{label:"@forward",documentation:Dt("Loads a Sass stylesheet and makes its mixins, functions, and variables available when this stylesheet is loaded with the @use rule."),references:[{name:Ho,url:"https://sass-lang.com/documentation/at-rules/forward"}],insertText:"@forward $0;",insertTextFormat:Hn.Snippet,kind:jn.Keyword}],Go.scssModuleBuiltIns=[{label:"sass:math",documentation:Dt("Provides functions that operate on numbers."),references:[{name:Ho,url:"https://sass-lang.com/documentation/modules/math"}]},{label:"sass:string",documentation:Dt("Makes it easy to combine, search, or split apart strings."),references:[{name:Ho,url:"https://sass-lang.com/documentation/modules/string"}]},{label:"sass:color",documentation:Dt("Generates new colors based on existing ones, making it easy to build color themes."),references:[{name:Ho,url:"https://sass-lang.com/documentation/modules/color"}]},{label:"sass:list",documentation:Dt("Lets you access and modify values in lists."),references:[{name:Ho,url:"https://sass-lang.com/documentation/modules/list"}]},{label:"sass:map",documentation:Dt("Makes it possible to look up the value associated with a key in a map, and much more."),references:[{name:Ho,url:"https://sass-lang.com/documentation/modules/map"}]},{label:"sass:selector",documentation:Dt("Provides access to Sass\u2019s powerful selector engine."),references:[{name:Ho,url:"https://sass-lang.com/documentation/modules/selector"}]},{label:"sass:meta",documentation:Dt("Exposes the details of Sass\u2019s inner workings."),references:[{name:Ho,url:"https://sass-lang.com/documentation/modules/meta"}]}];var Jo,Yo="/".charCodeAt(0),Xo="\n".charCodeAt(0),Zo="\r".charCodeAt(0),ea="\f".charCodeAt(0),ta="`".charCodeAt(0),na=".".charCodeAt(0),ia=o.CustomToken,ra=ia++,sa=class extends re{scanNext(e){const t=this.escapedJavaScript();return null!==t?this.finishToken(e,t):this.stream.advanceIfChars([na,na,na])?this.finishToken(e,ra):super.scanNext(e)}comment(){return!!super.comment()||!(this.inURL||!this.stream.advanceIfChars([Yo,Yo]))&&(this.stream.advanceWhileChar((e=>{switch(e){case Xo:case Zo:case ea:return!1;default:return!0}})),!0)}escapedJavaScript(){return this.stream.peekChar()===ta?(this.stream.advance(1),this.stream.advanceWhileChar((e=>e!==ta)),this.stream.advanceIfChar(ta)?o.EscapedJavaScript:o.BadEscapedJavaScript):null}},oa=class extends as{constructor(){super(new sa)}_parseStylesheetStatement(e=!1){return this.peek(o.AtKeyword)?this._parseVariableDeclaration()||this._parsePlugin()||super._parseStylesheetAtStatement(e):this._tryParseMixinDeclaration()||this._tryParseMixinReference()||this._parseFunction()||this._parseRuleset(!0)}_parseImport(){if(!this.peekKeyword("@import")&&!this.peekKeyword("@import-once"))return null;const e=this.create($e);if(this.consumeToken(),this.accept(o.ParenthesisL)){if(!this.accept(o.Ident))return this.finish(e,cr.IdentifierExpected,[o.SemiColon]);do{if(!this.accept(o.Comma))break}while(this.accept(o.Ident));if(!this.accept(o.ParenthesisR))return this.finish(e,cr.RightParenthesisExpected,[o.SemiColon])}return e.addChild(this._parseURILiteral())||e.addChild(this._parseStringLiteral())?(this.peek(o.SemiColon)||this.peek(o.EOF)||e.setMedialist(this._parseMediaQueryList()),this._completeParseImport(e)):this.finish(e,cr.URIOrStringExpected,[o.SemiColon])}_parsePlugin(){if(!this.peekKeyword("@plugin"))return null;const e=this.createNode(ee.Plugin);return this.consumeToken(),e.addChild(this._parseStringLiteral())?this.accept(o.SemiColon)?this.finish(e):this.finish(e,cr.SemiColonExpected):this.finish(e,cr.StringLiteralExpected)}_parseMediaQuery(){const e=super._parseMediaQuery();if(!e){const e=this.create(nt);return e.addChild(this._parseVariable())?this.finish(e):null}return e}_parseMediaDeclaration(e=!1){return this._tryParseRuleset(e)||this._tryToParseDeclaration()||this._tryParseMixinDeclaration()||this._tryParseMixinReference()||this._parseDetachedRuleSetMixin()||this._parseStylesheetStatement(e)}_parseMediaFeatureName(){return this._parseIdent()||this._parseVariable()}_parseVariableDeclaration(e=[]){const t=this.create(vt),n=this.mark();if(!t.setVariable(this._parseVariable(!0)))return null;if(!this.accept(o.Colon))return this.restoreAtMark(n),null;if(this.prevToken&&(t.colonPosition=this.prevToken.offset),t.setValue(this._parseDetachedRuleSet()))t.needsSemicolon=!1;else if(!t.setValue(this._parseExpr()))return this.finish(t,cr.VariableValueExpected,[],e);return t.addChild(this._parsePrio()),this.peek(o.SemiColon)&&(t.semicolonPosition=this.token.offset),this.finish(t)}_parseDetachedRuleSet(){let e=this.mark();if(this.peekDelim("#")||this.peekDelim(".")){if(this.consumeToken(),this.hasWhitespace()||!this.accept(o.ParenthesisL))return this.restoreAtMark(e),null;{let t=this.create(xt);if(t.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(o.Comma)||this.accept(o.SemiColon))&&!this.peek(o.ParenthesisR);)t.getParameters().addChild(this._parseMixinParameter())||this.markError(t,cr.IdentifierExpected,[],[o.ParenthesisR]);if(!this.accept(o.ParenthesisR))return this.restoreAtMark(e),null}}if(!this.peek(o.CurlyL))return null;const t=this.create(ye);return this._parseBody(t,this._parseDetachedRuleSetBody.bind(this)),this.finish(t)}_parseDetachedRuleSetBody(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()}_addLookupChildren(e){if(!e.addChild(this._parseLookupValue()))return!1;let t=!1;for(;this.peek(o.BracketL)&&(t=!0),e.addChild(this._parseLookupValue());)t=!1;return!t}_parseLookupValue(){const e=this.create(pe),t=this.mark();return this.accept(o.BracketL)&&((e.addChild(this._parseVariable(!1,!0))||e.addChild(this._parsePropertyIdentifier()))&&this.accept(o.BracketR)||this.accept(o.BracketR))?e:(this.restoreAtMark(t),null)}_parseVariable(e=!1,t=!1){const n=!e&&this.peekDelim("$");if(!this.peekDelim("@")&&!n&&!this.peek(o.AtKeyword))return null;const i=this.create(wt),r=this.mark();for(;this.acceptDelim("@")||!e&&this.acceptDelim("$");)if(this.hasWhitespace())return this.restoreAtMark(r),null;return(this.accept(o.AtKeyword)||this.accept(o.Ident))&&(t||!this.peek(o.BracketL)||this._addLookupChildren(i))?i:(this.restoreAtMark(r),null)}_parseTermExpression(){return this._parseVariable()||this._parseEscaped()||super._parseTermExpression()||this._tryParseMixinReference(!1)}_parseEscaped(){if(this.peek(o.EscapedJavaScript)||this.peek(o.BadEscapedJavaScript)){const e=this.createNode(ee.EscapedValue);return this.consumeToken(),this.finish(e)}if(this.peekDelim("~")){const e=this.createNode(ee.EscapedValue);return this.consumeToken(),this.accept(o.String)||this.accept(o.EscapedJavaScript)?this.finish(e):this.finish(e,cr.TermExpected)}return null}_parseOperator(){const e=this._parseGuardOperator();return e||super._parseOperator()}_parseGuardOperator(){if(this.peekDelim(">")){const e=this.createNode(ee.Operator);return this.consumeToken(),this.acceptDelim("="),e}if(this.peekDelim("=")){const e=this.createNode(ee.Operator);return this.consumeToken(),this.acceptDelim("<"),e}if(this.peekDelim("<")){const e=this.createNode(ee.Operator);return this.consumeToken(),this.acceptDelim("="),e}return null}_parseRuleSetDeclaration(){return this.peek(o.AtKeyword)?this._parseKeyframe()||this._parseMedia(!0)||this._parseImport()||this._parseSupports(!0)||this._parseLayer()||this._parsePropertyAtRule()||this._parseContainer(!0)||this._parseDetachedRuleSetMixin()||this._parseVariableDeclaration()||this._parseRuleSetDeclarationAtStatement():this._tryParseMixinDeclaration()||this._tryParseRuleset(!0)||this._tryParseMixinReference()||this._parseFunction()||this._parseExtend()||this._parseDeclaration()}_parseKeyframeIdent(){return this._parseIdent([ne.Keyframe])||this._parseVariable()}_parseKeyframeSelector(){return this._parseDetachedRuleSetMixin()||super._parseKeyframeSelector()}_parseSelector(e){const t=this.create(_e);let n=!1;for(e&&(n=t.addChild(this._parseCombinator()));t.addChild(this._parseSimpleSelector());){n=!0;const e=this.mark();if(t.addChild(this._parseGuard())&&this.peek(o.CurlyL))break;this.restoreAtMark(e),t.addChild(this._parseCombinator())}return n?this.finish(t):null}_parseNestingSelector(){if(this.peekDelim("&")){const e=this.createNode(ee.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(o.Num)||this.accept(o.Dimension)||e.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(e)}return null}_parseSelectorIdent(){if(!this.peekInterpolatedIdent())return null;const e=this.createNode(ee.SelectorInterpolation);return this._acceptInterpolatedIdent(e)?this.finish(e):null}_parsePropertyIdentifier(e=!1){const t=/^[\w-]+/;if(!this.peekInterpolatedIdent()&&!this.peekRegExp(this.token.type,t))return null;const n=this.mark(),i=this.create(ge);i.isCustomProperty=this.acceptDelim("-")&&this.acceptDelim("-");let r=!1;return r=e?i.isCustomProperty?i.addChild(this._parseIdent()):i.addChild(this._parseRegexp(t)):i.isCustomProperty?this._acceptInterpolatedIdent(i):this._acceptInterpolatedIdent(i,t),r?(e||this.hasWhitespace()||(this.acceptDelim("+"),this.hasWhitespace()||this.acceptIdent("_")),this.finish(i)):(this.restoreAtMark(n),null)}peekInterpolatedIdent(){return this.peek(o.Ident)||this.peekDelim("@")||this.peekDelim("$")||this.peekDelim("-")}_acceptInterpolatedIdent(e,t){let n=!1;const i=()=>{const e=this.mark();return this.acceptDelim("-")&&(this.hasWhitespace()||this.acceptDelim("-"),this.hasWhitespace())?(this.restoreAtMark(e),null):this._parseInterpolation()},r=t?()=>this.acceptRegexp(t):()=>this.accept(o.Ident);for(;(r()||e.addChild(this._parseInterpolation()||this.try(i)))&&(n=!0,!this.hasWhitespace()););return n}_parseInterpolation(){const e=this.mark();if(this.peekDelim("@")||this.peekDelim("$")){const t=this.createNode(ee.Interpolation);return this.consumeToken(),this.hasWhitespace()||!this.accept(o.CurlyL)?(this.restoreAtMark(e),null):t.addChild(this._parseIdent())?this.accept(o.CurlyR)?this.finish(t):this.finish(t,cr.RightCurlyExpected):this.finish(t,cr.IdentifierExpected)}return null}_tryParseMixinDeclaration(){const e=this.mark(),t=this.create(xt);if(!t.setIdentifier(this._parseMixinDeclarationIdentifier())||!this.accept(o.ParenthesisL))return this.restoreAtMark(e),null;if(t.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(o.Comma)||this.accept(o.SemiColon))&&!this.peek(o.ParenthesisR);)t.getParameters().addChild(this._parseMixinParameter())||this.markError(t,cr.IdentifierExpected,[],[o.ParenthesisR]);return this.accept(o.ParenthesisR)?(t.setGuard(this._parseGuard()),this.peek(o.CurlyL)?this._parseBody(t,this._parseMixInBodyDeclaration.bind(this)):(this.restoreAtMark(e),null)):(this.restoreAtMark(e),null)}_parseMixInBodyDeclaration(){return this._parseFontFace()||this._parseRuleSetDeclaration()}_parseMixinDeclarationIdentifier(){let e;if(this.peekDelim("#")||this.peekDelim(".")){if(e=this.create(ge),this.consumeToken(),this.hasWhitespace()||!e.addChild(this._parseIdent()))return null}else{if(!this.peek(o.Hash))return null;e=this.create(ge),this.consumeToken()}return e.referenceTypes=[ne.Mixin],this.finish(e)}_parsePseudo(){if(!this.peek(o.Colon))return null;const e=this.mark(),t=this.create(_t);return this.consumeToken(),this.acceptIdent("extend")?this._completeExtends(t):(this.restoreAtMark(e),super._parsePseudo())}_parseExtend(){if(!this.peekDelim("&"))return null;const e=this.mark(),t=this.create(_t);return this.consumeToken(),!this.hasWhitespace()&&this.accept(o.Colon)&&this.acceptIdent("extend")?this._completeExtends(t):(this.restoreAtMark(e),null)}_completeExtends(e){if(!this.accept(o.ParenthesisL))return this.finish(e,cr.LeftParenthesisExpected);const t=e.getSelectors();if(!t.addChild(this._parseSelector(!0)))return this.finish(e,cr.SelectorExpected);for(;this.accept(o.Comma);)if(!t.addChild(this._parseSelector(!0)))return this.finish(e,cr.SelectorExpected);return this.accept(o.ParenthesisR)?this.finish(e):this.finish(e,cr.RightParenthesisExpected)}_parseDetachedRuleSetMixin(){if(!this.peek(o.AtKeyword))return null;const e=this.mark(),t=this.create(St);return!t.addChild(this._parseVariable(!0))||!this.hasWhitespace()&&this.accept(o.ParenthesisL)?this.accept(o.ParenthesisR)?this.finish(t):this.finish(t,cr.RightParenthesisExpected):(this.restoreAtMark(e),null)}_tryParseMixinReference(e=!0){const t=this.mark(),n=this.create(St);let i=this._parseMixinDeclarationIdentifier();for(;i;){this.acceptDelim(">");const e=this._parseMixinDeclarationIdentifier();if(!e)break;n.getNamespaces().addChild(i),i=e}if(!n.setIdentifier(i))return this.restoreAtMark(t),null;let r=!1;if(this.accept(o.ParenthesisL)){if(r=!0,n.getArguments().addChild(this._parseMixinArgument()))for(;(this.accept(o.Comma)||this.accept(o.SemiColon))&&!this.peek(o.ParenthesisR);)if(!n.getArguments().addChild(this._parseMixinArgument()))return this.finish(n,cr.ExpressionExpected);if(!this.accept(o.ParenthesisR))return this.finish(n,cr.RightParenthesisExpected);i.referenceTypes=[ne.Mixin]}else i.referenceTypes=[ne.Mixin,ne.Rule];return this.peek(o.BracketL)?e||this._addLookupChildren(n):n.addChild(this._parsePrio()),r||this.peek(o.SemiColon)||this.peek(o.CurlyR)||this.peek(o.EOF)?this.finish(n):(this.restoreAtMark(t),null)}_parseMixinArgument(){const e=this.create(Ne),t=this.mark(),n=this._parseVariable();return n&&(this.accept(o.Colon)?e.setIdentifier(n):this.restoreAtMark(t)),e.setValue(this._parseDetachedRuleSet()||this._parseExpr(!0))?this.finish(e):(this.restoreAtMark(t),null)}_parseMixinParameter(){const e=this.create(Te);if(this.peekKeyword("@rest")){const t=this.create(pe);return this.consumeToken(),this.accept(ra)?(e.setIdentifier(this.finish(t)),this.finish(e)):this.finish(e,cr.DotExpected,[],[o.Comma,o.ParenthesisR])}if(this.peek(ra)){const t=this.create(pe);return this.consumeToken(),e.setIdentifier(this.finish(t)),this.finish(e)}let t=!1;return e.setIdentifier(this._parseVariable())&&(this.accept(o.Colon),t=!0),e.setDefaultValue(this._parseDetachedRuleSet()||this._parseExpr(!0))||t?this.finish(e):null}_parseGuard(){if(!this.peekIdent("when"))return null;const e=this.create(Lt);if(this.consumeToken(),!e.getConditions().addChild(this._parseGuardCondition()))return this.finish(e,cr.ConditionExpected);for(;this.acceptIdent("and")||this.accept(o.Comma);)if(!e.getConditions().addChild(this._parseGuardCondition()))return this.finish(e,cr.ConditionExpected);return this.finish(e)}_parseGuardCondition(){const e=this.create(It);return e.isNegated=this.acceptIdent("not"),this.accept(o.ParenthesisL)?(e.addChild(this._parseExpr()),this.accept(o.ParenthesisR)?this.finish(e):this.finish(e,cr.RightParenthesisExpected)):e.isNegated?this.finish(e,cr.LeftParenthesisExpected):null}_parseFunction(){const e=this.mark(),t=this.create(Ie);if(!t.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(o.ParenthesisL))return this.restoreAtMark(e),null;if(t.getArguments().addChild(this._parseMixinArgument()))for(;(this.accept(o.Comma)||this.accept(o.SemiColon))&&!this.peek(o.ParenthesisR);)if(!t.getArguments().addChild(this._parseMixinArgument()))return this.finish(t,cr.ExpressionExpected);return this.accept(o.ParenthesisR)?this.finish(t):this.finish(t,cr.RightParenthesisExpected)}_parseFunctionIdentifier(){if(this.peekDelim("%")){const e=this.create(ge);return e.referenceTypes=[ne.Function],this.consumeToken(),this.finish(e)}return super._parseFunctionIdentifier()}_parseURLArgument(){const e=this.mark(),t=super._parseURLArgument();if(!t||!this.peek(o.ParenthesisR)){this.restoreAtMark(e);const t=this.create(pe);return t.addChild(this._parseBinaryExpr()),this.finish(t)}return t}},aa=class e extends Ts{constructor(e,t){super("@",e,t)}createFunctionProposals(e,t,n,i){for(const r of e){const e={label:r.name,detail:r.example,documentation:r.description,textEdit:vn.replace(this.getCompletionRange(t),r.name+"($0)"),insertTextFormat:Hn.Snippet,kind:jn.Function};n&&(e.sortText="z"),i.items.push(e)}return i}getTermProposals(t,n,i){let r=e.builtInProposals;return t&&(r=r.filter((e=>!e.type||!t.restrictions||-1!==t.restrictions.indexOf(e.type)))),this.createFunctionProposals(r,n,!0,i),super.getTermProposals(t,n,i)}getColorProposals(t,n,i){return this.createFunctionProposals(e.colorProposals,n,!1,i),super.getColorProposals(t,n,i)}getCompletionsForDeclarationProperty(e,t){return this.getCompletionsForSelector(null,!0,t),super.getCompletionsForDeclarationProperty(e,t)}};function la(e,t){const n=function(e){function t(t){return e.positionAt(t.offset).line}function n(t){return e.positionAt(t.offset+t.len).line}function i(){switch(e.languageId){case"scss":return new $o;case"less":return new sa;default:return new re}}function r(e,i){const r=t(e),s=n(e);return r!==s?{startLine:r,endLine:s,kind:i}:null}const s=[],a=[],l=i();l.ignoreComment=!1,l.setSource(e.getText());let c=l.scan(),h=null;for(;c.type!==o.EOF;){switch(c.type){case o.CurlyL:case zo:a.push({line:t(c),type:"brace",isStart:!0});break;case o.CurlyR:if(0!==a.length){const e=ca(a,"brace");if(!e)break;let t=n(c);"brace"===e.type&&(h&&n(h)!==t&&t--,e.line!==t&&s.push({startLine:e.line,endLine:t,kind:void 0}))}break;case o.Comment:{const i=e=>"#region"===e?{line:t(c),type:"comment",isStart:!0}:{line:n(c),type:"comment",isStart:!1},o=(t=>{const n=t.text.match(/^\s*\/\*\s*(#region|#endregion)\b\s*(.*?)\s*\*\//);if(n)return i(n[1]);if("scss"===e.languageId||"less"===e.languageId){const e=t.text.match(/^\s*\/\/\s*(#region|#endregion)\b\s*(.*?)\s*/);if(e)return i(e[1])}return null})(c);if(o)if(o.isStart)a.push(o);else{const e=ca(a,"comment");if(!e)break;"comment"===e.type&&e.line!==o.line&&s.push({startLine:e.line,endLine:o.line,kind:"region"})}else{const e=r(c,"comment");e&&s.push(e)}break}}h=c,c=l.scan()}return s}(e);return function(e,t){const n=t&&t.rangeLimit||Number.MAX_VALUE,i=e.sort(((e,t)=>{let n=e.startLine-t.startLine;return 0===n&&(n=e.endLine-t.endLine),n})),r=[];let s=-1;return i.forEach((e=>{e.startLine<s&&s<e.endLine||(r.push(e),s=e.endLine)})),r.length<n?r:r.slice(0,n)}(n,t)}function ca(e,t){if(0===e.length)return null;for(let n=e.length-1;n>=0;n--)if(e[n].type===t&&e[n].isStart)return e.splice(n,1)[0];return null}aa.builtInProposals=[{name:"if",example:"if(condition, trueValue [, falseValue]);",description:Dt("returns one of two values depending on a condition.")},{name:"boolean",example:"boolean(condition);",description:Dt('"store" a boolean test for later evaluation in a guard or if().')},{name:"length",example:"length(@list);",description:Dt("returns the number of elements in a value list")},{name:"extract",example:"extract(@list, index);",description:Dt("returns a value at the specified position in the list")},{name:"range",example:"range([start, ] end [, step]);",description:Dt("generate a list spanning a range of values")},{name:"each",example:"each(@list, ruleset);",description:Dt("bind the evaluation of a ruleset to each member of a list.")},{name:"escape",example:"escape(@string);",description:Dt("URL encodes a string")},{name:"e",example:"e(@string);",description:Dt("escape string content")},{name:"replace",example:"replace(@string, @pattern, @replacement[, @flags]);",description:Dt("string replace")},{name:"unit",example:"unit(@dimension, [@unit: '']);",description:Dt("remove or change the unit of a dimension")},{name:"color",example:"color(@string);",description:Dt("parses a string to a color"),type:"color"},{name:"convert",example:"convert(@value, unit);",description:Dt("converts numbers from one type into another")},{name:"data-uri",example:"data-uri([mimetype,] url);",description:Dt("inlines a resource and falls back to `url()`"),type:"url"},{name:"abs",description:Dt("absolute value of a number"),example:"abs(number);"},{name:"acos",description:Dt("arccosine - inverse of cosine function"),example:"acos(number);"},{name:"asin",description:Dt("arcsine - inverse of sine function"),example:"asin(number);"},{name:"ceil",example:"ceil(@number);",description:Dt("rounds up to an integer")},{name:"cos",description:Dt("cosine function"),example:"cos(number);"},{name:"floor",description:Dt("rounds down to an integer"),example:"floor(@number);"},{name:"percentage",description:Dt("converts to a %, e.g. 0.5 > 50%"),example:"percentage(@number);",type:"percentage"},{name:"round",description:Dt("rounds a number to a number of places"),example:"round(number, [places: 0]);"},{name:"sqrt",description:Dt("calculates square root of a number"),example:"sqrt(number);"},{name:"sin",description:Dt("sine function"),example:"sin(number);"},{name:"tan",description:Dt("tangent function"),example:"tan(number);"},{name:"atan",description:Dt("arctangent - inverse of tangent function"),example:"atan(number);"},{name:"pi",description:Dt("returns pi"),example:"pi();"},{name:"pow",description:Dt("first argument raised to the power of the second argument"),example:"pow(@base, @exponent);"},{name:"mod",description:Dt("first argument modulus second argument"),example:"mod(number, number);"},{name:"min",description:Dt("returns the lowest of one or more values"),example:"min(@x, @y);"},{name:"max",description:Dt("returns the lowest of one or more values"),example:"max(@x, @y);"}],aa.colorProposals=[{name:"argb",example:"argb(@color);",description:Dt("creates a #AARRGGBB")},{name:"hsl",example:"hsl(@hue, @saturation, @lightness);",description:Dt("creates a color")},{name:"hsla",example:"hsla(@hue, @saturation, @lightness, @alpha);",description:Dt("creates a color")},{name:"hsv",example:"hsv(@hue, @saturation, @value);",description:Dt("creates a color")},{name:"hsva",example:"hsva(@hue, @saturation, @value, @alpha);",description:Dt("creates a color")},{name:"hue",example:"hue(@color);",description:Dt("returns the `hue` channel of `@color` in the HSL space")},{name:"saturation",example:"saturation(@color);",description:Dt("returns the `saturation` channel of `@color` in the HSL space")},{name:"lightness",example:"lightness(@color);",description:Dt("returns the `lightness` channel of `@color` in the HSL space")},{name:"hsvhue",example:"hsvhue(@color);",description:Dt("returns the `hue` channel of `@color` in the HSV space")},{name:"hsvsaturation",example:"hsvsaturation(@color);",description:Dt("returns the `saturation` channel of `@color` in the HSV space")},{name:"hsvvalue",example:"hsvvalue(@color);",description:Dt("returns the `value` channel of `@color` in the HSV space")},{name:"red",example:"red(@color);",description:Dt("returns the `red` channel of `@color`")},{name:"green",example:"green(@color);",description:Dt("returns the `green` channel of `@color`")},{name:"blue",example:"blue(@color);",description:Dt("returns the `blue` channel of `@color`")},{name:"alpha",example:"alpha(@color);",description:Dt("returns the `alpha` channel of `@color`")},{name:"luma",example:"luma(@color);",description:Dt("returns the `luma` value (perceptual brightness) of `@color`")},{name:"saturate",example:"saturate(@color, 10%);",description:Dt("return `@color` 10% points more saturated")},{name:"desaturate",example:"desaturate(@color, 10%);",description:Dt("return `@color` 10% points less saturated")},{name:"lighten",example:"lighten(@color, 10%);",description:Dt("return `@color` 10% points lighter")},{name:"darken",example:"darken(@color, 10%);",description:Dt("return `@color` 10% points darker")},{name:"fadein",example:"fadein(@color, 10%);",description:Dt("return `@color` 10% points less transparent")},{name:"fadeout",example:"fadeout(@color, 10%);",description:Dt("return `@color` 10% points more transparent")},{name:"fade",example:"fade(@color, 50%);",description:Dt("return `@color` with 50% transparency")},{name:"spin",example:"spin(@color, 10);",description:Dt("return `@color` with a 10 degree larger in hue")},{name:"mix",example:"mix(@color1, @color2, [@weight: 50%]);",description:Dt("return a mix of `@color1` and `@color2`")},{name:"greyscale",example:"greyscale(@color);",description:Dt("returns a grey, 100% desaturated color")},{name:"contrast",example:"contrast(@color1, [@darkcolor: black], [@lightcolor: white], [@threshold: 43%]);",description:Dt("return `@darkcolor` if `@color1 is> 43% luma` otherwise return `@lightcolor`, see notes")},{name:"multiply",example:"multiply(@color1, @color2);"},{name:"screen",example:"screen(@color1, @color2);"},{name:"overlay",example:"overlay(@color1, @color2);"},{name:"softlight",example:"softlight(@color1, @color2);"},{name:"hardlight",example:"hardlight(@color1, @color2);"},{name:"difference",example:"difference(@color1, @color2);"},{name:"exclusion",example:"exclusion(@color1, @color2);"},{name:"average",example:"average(@color1, @color2);"},{name:"negation",example:"negation(@color1, @color2);"}],function(){var e=[,,function(e){function t(e){this.__parent=e,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}function n(e,t){this.__cache=[""],this.__indent_size=e.indent_size,this.__indent_string=e.indent_char,e.indent_with_tabs||(this.__indent_string=new Array(e.indent_size+1).join(e.indent_char)),t=t||"",e.indent_level>0&&(t=new Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=t,this.__base_string_length=t.length}function i(e,i){this.__indent_cache=new n(e,i),this.raw=!1,this._end_with_newline=e.end_with_newline,this.indent_size=e.indent_size,this.wrap_line_length=e.wrap_line_length,this.indent_empty_lines=e.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new t(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}t.prototype.clone_empty=function(){var e=new t(this.__parent);return e.set_indent(this.__indent_count,this.__alignment_count),e},t.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e]},t.prototype.has_match=function(e){for(var t=this.__items.length-1;t>=0;t--)if(this.__items[t].match(e))return!0;return!1},t.prototype.set_indent=function(e,t){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=t||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},t.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},t.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},t.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===e.__items[0]&&(e.__items.splice(0,1),e.__character_count-=1),!0}return!1},t.prototype.is_empty=function(){return 0===this.__items.length},t.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},t.prototype.push=function(e){this.__items.push(e);var t=e.lastIndexOf("\n");-1!==t?this.__character_count=e.length-t:this.__character_count+=e.length},t.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e},t.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},t.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},t.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),this.__character_count-=1},t.prototype.toString=function(){var e="";return this.is_empty()?this.__parent.indent_empty_lines&&(e=this.__parent.get_indent_string(this.__indent_count)):(e=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),e+=this.__items.join("")),e},n.prototype.get_indent_size=function(e,t){var n=this.__base_string_length;return t=t||0,e<0&&(n=0),n+=e*this.__indent_size,n+=t},n.prototype.get_indent_string=function(e,t){var n=this.__base_string;return t=t||0,e<0&&(e=0,n=""),t+=e*this.__indent_size,this.__ensure_cache(t),n+=this.__cache[t]},n.prototype.__ensure_cache=function(e){for(;e>=this.__cache.length;)this.__add_column()},n.prototype.__add_column=function(){var e=this.__cache.length,t=0,n="";this.__indent_size&&e>=this.__indent_size&&(e-=(t=Math.floor(e/this.__indent_size))*this.__indent_size,n=new Array(t+1).join(this.__indent_string)),e&&(n+=new Array(e+1).join(" ")),this.__cache.push(n)},i.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},i.prototype.get_line_number=function(){return this.__lines.length},i.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t)},i.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t)},i.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},i.prototype.add_new_line=function(e){return!(this.is_empty()||!e&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},i.prototype.get_code=function(e){this.trim(!0);var t=this.current_line.pop();t&&("\n"===t[t.length-1]&&(t=t.replace(/\n+$/g,"")),this.current_line.push(t)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==e&&(n=n.replace(/[\n]/g,e)),n},i.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},i.prototype.set_indent=function(e,t){return e=e||0,t=t||0,this.next_line.set_indent(e,t),this.__lines.length>1?(this.current_line.set_indent(e,t),!0):(this.current_line.set_indent(),!1)},i.prototype.add_raw_token=function(e){for(var t=0;t<e.newlines;t++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(e.whitespace_before),this.current_line.push(e.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},i.prototype.add_token=function(e){this.__add_space_before_token(),this.current_line.push(e),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},i.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},i.prototype.remove_indent=function(e){for(var t=this.__lines.length;e<t;)this.__lines[e]._remove_indent(),e++;this.current_line._remove_wrap_indent()},i.prototype.trim=function(e){for(e=void 0!==e&&e,this.current_line.trim();e&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},i.prototype.just_added_newline=function(){return this.current_line.is_empty()},i.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},i.prototype.ensure_empty_line_above=function(e,n){for(var i=this.__lines.length-2;i>=0;){var r=this.__lines[i];if(r.is_empty())break;if(0!==r.item(0).indexOf(e)&&r.item(-1)!==n){this.__lines.splice(i+1,0,new t(this)),this.previous_line=this.__lines[this.__lines.length-2];break}i--}},e.exports.Output=i},,,,function(e){function t(e,t){this.raw_options=n(e,t),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}function n(e,t){var n,r={};for(n in e=i(e))n!==t&&(r[n]=e[n]);if(t&&e[t])for(n in e[t])r[n]=e[t][n];return r}function i(e){var t,n={};for(t in e){n[t.replace(/-/g,"_")]=e[t]}return n}t.prototype._get_array=function(e,t){var n=this.raw_options[e],i=t||[];return"object"===typeof n?null!==n&&"function"===typeof n.concat&&(i=n.concat()):"string"===typeof n&&(i=n.split(/[^a-zA-Z0-9_\/\-]+/)),i},t.prototype._get_boolean=function(e,t){var n=this.raw_options[e];return void 0===n?!!t:!!n},t.prototype._get_characters=function(e,t){var n=this.raw_options[e],i=t||"";return"string"===typeof n&&(i=n.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),i},t.prototype._get_number=function(e,t){var n=this.raw_options[e];t=parseInt(t,10),isNaN(t)&&(t=0);var i=parseInt(n,10);return isNaN(i)&&(i=t),i},t.prototype._get_selection=function(e,t,n){var i=this._get_selection_list(e,t,n);if(1!==i.length)throw new Error("Invalid Option Value: The option '"+e+"' can only be one of the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return i[0]},t.prototype._get_selection_list=function(e,t,n){if(!t||0===t.length)throw new Error("Selection list cannot be empty.");if(n=n||[t[0]],!this._is_valid_selection(n,t))throw new Error("Invalid Default Value!");var i=this._get_array(e,n);if(!this._is_valid_selection(i,t))throw new Error("Invalid Option Value: The option '"+e+"' can contain only the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return i},t.prototype._is_valid_selection=function(e,t){return e.length&&t.length&&!e.some((function(e){return-1===t.indexOf(e)}))},e.exports.Options=t,e.exports.normalizeOpts=i,e.exports.mergeOpts=n},,function(e){var t=RegExp.prototype.hasOwnProperty("sticky");function n(e){this.__input=e||"",this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){this.__position>0&&(this.__position-=1)},n.prototype.hasNext=function(){return this.__position<this.__input_length},n.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__input.charAt(this.__position),this.__position+=1),e},n.prototype.peek=function(e){var t=null;return e=e||0,(e+=this.__position)>=0&&e<this.__input_length&&(t=this.__input.charAt(e)),t},n.prototype.__match=function(e,n){e.lastIndex=n;var i=e.exec(this.__input);return!i||t&&e.sticky||i.index!==n&&(i=null),i},n.prototype.test=function(e,t){return t=t||0,(t+=this.__position)>=0&&t<this.__input_length&&!!this.__match(e,t)},n.prototype.testChar=function(e,t){var n=this.peek(t);return e.lastIndex=0,null!==n&&e.test(n)},n.prototype.match=function(e){var t=this.__match(e,this.__position);return t?this.__position+=t[0].length:t=null,t},n.prototype.read=function(e,t,n){var i,r="";return e&&(i=this.match(e))&&(r+=i[0]),!t||!i&&e||(r+=this.readUntil(t,n)),r},n.prototype.readUntil=function(e,t){var n,i=this.__position;e.lastIndex=this.__position;var r=e.exec(this.__input);return r?(i=r.index,t&&(i+=r[0].length)):i=this.__input_length,n=this.__input.substring(this.__position,i),this.__position=i,n},n.prototype.readUntilAfter=function(e){return this.readUntil(e,!0)},n.prototype.get_regexp=function(e,n){var i=null,r="g";return n&&t&&(r="y"),"string"===typeof e&&""!==e?i=new RegExp(e,r):e&&(i=new RegExp(e.source,r)),i},n.prototype.get_literal_regexp=function(e){return RegExp(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},n.prototype.peekUntilAfter=function(e){var t=this.__position,n=this.readUntilAfter(e);return this.__position=t,n},n.prototype.lookBack=function(e){var t=this.__position-1;return t>=e.length&&this.__input.substring(t-e.length,t).toLowerCase()===e},e.exports.InputScanner=n},,,,,function(e){function t(e,t){e="string"===typeof e?e:e.source,t="string"===typeof t?t:t.source,this.__directives_block_pattern=new RegExp(e+/ beautify( \w+[:]\w+)+ /.source+t,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(e+/\sbeautify\signore:end\s/.source+t,"g")}t.prototype.get_directives=function(e){if(!e.match(this.__directives_block_pattern))return null;var t={};this.__directive_pattern.lastIndex=0;for(var n=this.__directive_pattern.exec(e);n;)t[n[1]]=n[2],n=this.__directive_pattern.exec(e);return t},t.prototype.readIgnored=function(e){return e.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.Directives=t},,function(e,t,n){var i=n(16).Beautifier,r=n(17).Options;e.exports=function(e,t){return new i(e,t).beautify()},e.exports.defaultOptions=function(){return new r}},function(e,t,n){var i=n(17).Options,r=n(2).Output,s=n(8).InputScanner,o=new(0,n(13).Directives)(/\/\*/,/\*\//),a=/\r\n|[\r\n]/,l=/\r\n|[\r\n]/g,c=/\s/,h=/(?:\s|\n)+/g,d=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,u=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function p(e,t){this._source_text=e||"",this._options=new i(t),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}p.prototype.eatString=function(e){var t="";for(this._ch=this._input.next();this._ch;){if(t+=this._ch,"\\"===this._ch)t+=this._input.next();else if(-1!==e.indexOf(this._ch)||"\n"===this._ch)break;this._ch=this._input.next()}return t},p.prototype.eatWhitespace=function(e){for(var t=c.test(this._input.peek()),n=0;c.test(this._input.peek());)this._ch=this._input.next(),e&&"\n"===this._ch&&(0===n||n<this._options.max_preserve_newlines)&&(n++,this._output.add_new_line(!0));return t},p.prototype.foundNestedPseudoClass=function(){for(var e=0,t=1,n=this._input.peek(t);n;){if("{"===n)return!0;if("("===n)e+=1;else if(")"===n){if(0===e)return!1;e-=1}else if(";"===n||"}"===n)return!1;t++,n=this._input.peek(t)}return!1},p.prototype.print_string=function(e){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(e)},p.prototype.preserveSingleSpace=function(e){e&&(this._output.space_before_token=!0)},p.prototype.indent=function(){this._indentLevel++},p.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},p.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._source_text,t=this._options.eol;"auto"===t&&(t="\n",e&&a.test(e||"")&&(t=e.match(a)[0]));var n=(e=e.replace(l,"\n")).match(/^[\t ]*/)[0];this._output=new r(this._options,n),this._input=new s(e),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var i,p,m=0,f=!1,g=!1,b=!1,v=!1,y=!1,w=this._ch,_=!1;i=""!==this._input.read(h),p=w,this._ch=this._input.next(),"\\"===this._ch&&this._input.hasNext()&&(this._ch+=this._input.next()),w=this._ch,this._ch;)if("/"===this._ch&&"*"===this._input.peek()){this._output.add_new_line(),this._input.back();var k=this._input.read(d),C=o.get_directives(k);C&&"start"===C.ignore&&(k+=o.readIgnored(this._input)),this.print_string(k),this.eatWhitespace(!0),this._output.add_new_line()}else if("/"===this._ch&&"/"===this._input.peek())this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(u)),this.eatWhitespace(!0);else if("$"===this._ch){this.preserveSingleSpace(i),this.print_string(this._ch);var S=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);S.match(/[ :]$/)&&(S=this.eatString(": ").replace(/\s+$/,""),this.print_string(S),this._output.space_before_token=!0),0===m&&-1!==S.indexOf(":")&&(g=!0,this.indent())}else if("@"===this._ch)if(this.preserveSingleSpace(i),"{"===this._input.peek())this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var x=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);x.match(/[ :]$/)&&(x=this.eatString(": ").replace(/\s+$/,""),this.print_string(x),this._output.space_before_token=!0),0===m&&-1!==x.indexOf(":")?(g=!0,this.indent()):x in this.NESTED_AT_RULE?(this._nestedLevel+=1,x in this.CONDITIONAL_GROUP_RULE&&(b=!0)):0!==m||g||(v=!0)}else if("#"===this._ch&&"{"===this._input.peek())this.preserveSingleSpace(i),this.print_string(this._ch+this.eatString("}"));else if("{"===this._ch)g&&(g=!1,this.outdent()),v=!1,b?(b=!1,f=this._indentLevel>=this._nestedLevel):f=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&f&&this._output.previous_line&&"{"!==this._output.previous_line.item(-1)&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,"expand"===this._options.brace_style?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):("("===p?this._output.space_before_token=!1:","!==p&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if("}"===this._ch)this.outdent(),this._output.add_new_line(),"{"===p&&this._output.trim(!0),g&&(this.outdent(),g=!1),this.print_string(this._ch),f=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&"}"!==this._input.peek()&&this._output.add_new_line(!0),")"===this._input.peek()&&(this._output.trim(!0),"expand"===this._options.brace_style&&this._output.add_new_line(!0));else if(":"===this._ch){for(var E=0;E<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;E++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[E])){_=!0;break}!f&&!b||this._input.lookBack("&")||this.foundNestedPseudoClass()||this._input.lookBack("(")||v||0!==m?(this._input.lookBack(" ")&&(this._output.space_before_token=!0),":"===this._input.peek()?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":")):(this.print_string(":"),g||(g=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent()))}else if('"'===this._ch||"'"===this._ch){var F='"'===p||"'"===p;this.preserveSingleSpace(F||i),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(";"===this._ch)_=!1,0===m?(g&&(this.outdent(),g=!1),v=!1,this.print_string(this._ch),this.eatWhitespace(!0),"/"!==this._input.peek()&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if("("===this._ch)if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),m++,this.indent(),this._ch=this._input.next(),")"===this._ch||'"'===this._ch||"'"===this._ch?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),m&&(m--,this.outdent()));else{var L=!1;this._input.lookBack("with")&&(L=!0),this.preserveSingleSpace(i||L),this.print_string(this._ch),g&&"$"===p&&this._options.selector_separator_newline?(this._output.add_new_line(),y=!0):(this.eatWhitespace(),m++,this.indent())}else if(")"===this._ch)m&&(m--,this.outdent()),y&&";"===this._input.peek()&&this._options.selector_separator_newline&&(y=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(","===this._ch)this.print_string(this._ch),this.eatWhitespace(!0),!this._options.selector_separator_newline||g&&!y||0!==m||v?this._output.space_before_token=!0:this._output.add_new_line();else if(">"!==this._ch&&"+"!==this._ch&&"~"!==this._ch||g||0!==m)if("]"===this._ch)this.print_string(this._ch);else if("["===this._ch)this.preserveSingleSpace(i),this.print_string(this._ch);else if("="===this._ch)this.eatWhitespace(),this.print_string("="),c.test(this._ch)&&(this._ch="");else if("!"!==this._ch||this._input.lookBack("\\")){var I='"'===p||"'"===p;this.preserveSingleSpace(I||i),this.print_string(this._ch),!this._output.just_added_newline()&&"\n"===this._input.peek()&&_&&this._output.add_new_line()}else this._output.space_before_token=!0,this.print_string(this._ch);else this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&c.test(this._ch)&&(this._ch=""));return this._output.get_code(t)},e.exports.Beautifier=p},function(e,t,n){var i=n(6).Options;function r(e){i.call(this,e,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var t=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||t;var n=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var r=0;r<n.length;r++)"expand"!==n[r]?this.brace_style="collapse":this.brace_style=n[r]}r.prototype=new i,e.exports.Options=r}],t={};var n=function n(i){var r=t[i];if(void 0!==r)return r.exports;var s=t[i]={exports:{}};return e[i](s,s.exports,n),s.exports}(15);Jo=n}();var ha=Jo;function da(e,t,n){let i=e.getText(),r=!0,s=0,o=!1;const a=n.tabSize||4;if(t){let a=e.offsetAt(t.start),l=a;for(;l>0&&ba(i,l-1);)l--;0===l||ga(i,l-1)?a=l:l<a&&(a=l+1);let c=e.offsetAt(t.end),h=c;for(;h<i.length&&ba(i,h);)h++;if((h===i.length||ga(i,h))&&(c=h),t=qt.create(e.positionAt(a),e.positionAt(c)),o=function(e,t){for(;t>=0;){const n=e.charCodeAt(t);if(n===pa)return!0;if(n===ma)return!1;t--}return!1}(i,a),r=c===i.length,i=i.substring(a,c),0!==a){const i=e.offsetAt(Ut.create(t.start.line,0));s=function(e,t,n){let i=t,r=0;const s=n.tabSize||4;for(;i<e.length;){const t=e.charAt(i);if(" "===t)r++;else{if("\t"!==t)break;r+=s}i++}return Math.floor(r/s)}(e.getText(),i,n)}o&&(i=`{\n${ua(i)}`)}else t=qt.create(Ut.create(0,0),e.positionAt(i.length));const l={indent_size:a,indent_char:n.insertSpaces?" ":"\t",end_with_newline:r&&fa(n,"insertFinalNewline",!1),selector_separator_newline:fa(n,"newlineBetweenSelectors",!0),newline_between_rules:fa(n,"newlineBetweenRules",!0),space_around_selector_separator:fa(n,"spaceAroundSelectorSeparator",!1),brace_style:fa(n,"braceStyle","collapse"),indent_empty_lines:fa(n,"indentEmptyLines",!1),max_preserve_newlines:fa(n,"maxPreserveNewLines",void 0),preserve_newlines:fa(n,"preserveNewLines",!0),wrap_line_length:fa(n,"wrapLineLength",void 0),eol:"\n"};let c=ha(i,l);if(o&&(c=ua(c.substring(2))),s>0){const e=n.insertSpaces?le(" ",a*s):le("\t",s);c=c.split("\n").join("\n"+e),0===t.start.character&&(c=e+c)}return[{range:t,newText:c}]}function ua(e){return e.replace(/^\s+/,"")}var pa="{".charCodeAt(0),ma="}".charCodeAt(0);function fa(e,t,n){if(e&&e.hasOwnProperty(t)){const n=e[t];if(null!==n)return n}return n}function ga(e,t){return-1!=="\r\n".indexOf(e.charAt(t))}function ba(e,t){return-1!==" \t".indexOf(e.charAt(t))}var va={version:1.1,properties:[{name:"additive-symbols",browsers:["FF33"],atRule:"@counter-style",syntax:"[ <integer> && <symbol> ]#",relevance:50,description:"@counter-style descriptor. Specifies the symbols used by the marker-construction algorithm specified by the system descriptor. Needs to be specified if the counter system is 'additive'.",restrictions:["integer","string","image","identifier"]},{name:"align-content",browsers:["E12","FF28","S9","C29","IE11","O16"],values:[{name:"center",description:"Lines are packed toward the center of the flex container."},{name:"flex-end",description:"Lines are packed toward the end of the flex container."},{name:"flex-start",description:"Lines are packed toward the start of the flex container."},{name:"space-around",description:"Lines are evenly distributed in the flex container, with half-size spaces on either end."},{name:"space-between",description:"Lines are evenly distributed in the flex container."},{name:"stretch",description:"Lines stretch to take up the remaining space."},{name:"start"},{name:"end"},{name:"normal"},{name:"baseline"},{name:"first baseline"},{name:"last baseline"},{name:"space-around"},{name:"space-between"},{name:"space-evenly"},{name:"stretch"},{name:"safe"},{name:"unsafe"}],syntax:"normal | <baseline-position> | <content-distribution> | <overflow-position>? <content-position>",relevance:66,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/align-content"}],description:"Aligns a flex container's lines within the flex container when there is extra space in the cross-axis, similar to how 'justify-content' aligns individual items within the main-axis.",restrictions:["enum"]},{name:"align-items",browsers:["E12","FF20","S9","C29","IE11","O16"],values:[{name:"baseline",description:"If the flex item's inline axis is the same as the cross axis, this value is identical to 'flex-start'. Otherwise, it participates in baseline alignment."},{name:"center",description:"The flex item's margin box is centered in the cross axis within the line."},{name:"flex-end",description:"The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line."},{name:"flex-start",description:"The cross-start margin edge of the flex item is placed flush with the cross-start edge of the line."},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."},{name:"normal"},{name:"start"},{name:"end"},{name:"self-start"},{name:"self-end"},{name:"first baseline"},{name:"last baseline"},{name:"stretch"},{name:"safe"},{name:"unsafe"}],syntax:"normal | stretch | <baseline-position> | [ <overflow-position>? <self-position> ]",relevance:87,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/align-items"}],description:"Aligns flex items along the cross axis of the current line of the flex container.",restrictions:["enum"]},{name:"justify-items",browsers:["E12","FF20","S9","C52","IE11","O12.1"],values:[{name:"auto"},{name:"normal"},{name:"end"},{name:"start"},{name:"flex-end",description:'"Flex items are packed toward the end of the line."'},{name:"flex-start",description:'"Flex items are packed toward the start of the line."'},{name:"self-end",description:"The item is packed flush to the edge of the alignment container of the end side of the item, in the appropriate axis."},{name:"self-start",description:"The item is packed flush to the edge of the alignment container of the start side of the item, in the appropriate axis.."},{name:"center",description:"The items are packed flush to each other toward the center of the of the alignment container."},{name:"left"},{name:"right"},{name:"baseline"},{name:"first baseline"},{name:"last baseline"},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."},{name:"safe"},{name:"unsafe"},{name:"legacy"}],syntax:"normal | stretch | <baseline-position> | <overflow-position>? [ <self-position> | left | right ] | legacy | legacy && [ left | right | center ]",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/justify-items"}],description:"Defines the default justify-self for all items of the box, giving them the default way of justifying each box along the appropriate axis",restrictions:["enum"]},{name:"justify-self",browsers:["E16","FF45","S10.1","C57","IE10","O44"],values:[{name:"auto"},{name:"normal"},{name:"end"},{name:"start"},{name:"flex-end",description:'"Flex items are packed toward the end of the line."'},{name:"flex-start",description:'"Flex items are packed toward the start of the line."'},{name:"self-end",description:"The item is packed flush to the edge of the alignment container of the end side of the item, in the appropriate axis."},{name:"self-start",description:"The item is packed flush to the edge of the alignment container of the start side of the item, in the appropriate axis.."},{name:"center",description:"The items are packed flush to each other toward the center of the of the alignment container."},{name:"left"},{name:"right"},{name:"baseline"},{name:"first baseline"},{name:"last baseline"},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."},{name:"save"},{name:"unsave"}],syntax:"auto | normal | stretch | <baseline-position> | <overflow-position>? [ <self-position> | left | right ]",relevance:55,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/justify-self"}],description:"Defines the way of justifying a box inside its container along the appropriate axis.",restrictions:["enum"]},{name:"align-self",browsers:["E12","FF20","S9","C29","IE10","O12.1"],values:[{name:"auto",description:"Computes to the value of 'align-items' on the element's parent, or 'stretch' if the element has no parent. On absolutely positioned elements, it computes to itself."},{name:"normal"},{name:"self-end"},{name:"self-start"},{name:"baseline",description:"If the flex item's inline axis is the same as the cross axis, this value is identical to 'flex-start'. Otherwise, it participates in baseline alignment."},{name:"center",description:"The flex item's margin box is centered in the cross axis within the line."},{name:"flex-end",description:"The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line."},{name:"flex-start",description:"The cross-start margin edge of the flex item is placed flush with the cross-start edge of the line."},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."},{name:"baseline"},{name:"first baseline"},{name:"last baseline"},{name:"safe"},{name:"unsafe"}],syntax:"auto | normal | stretch | <baseline-position> | <overflow-position>? <self-position>",relevance:73,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/align-self"}],description:"Allows the default alignment along the cross axis to be overridden for individual flex items.",restrictions:["enum"]},{name:"all",browsers:["E79","FF27","S9.1","C37","O24"],values:[],syntax:"initial | inherit | unset | revert | revert-layer",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/all"}],description:"Shorthand that resets all properties except 'direction' and 'unicode-bidi'.",restrictions:["enum"]},{name:"alt",browsers:["S9"],values:[],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/alt"}],description:"Provides alternative text for assistive technology to replace the generated content of a ::before or ::after element.",restrictions:["string","enum"]},{name:"animation",browsers:["E12","FF16","S9","C43","IE10","O30"],values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"backwards",description:"The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."},{name:"both",description:"Both forwards and backwards fill modes are applied."},{name:"forwards",description:"The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."},{name:"infinite",description:"Causes the animation to repeat forever."},{name:"none",description:"No animation is performed"},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],syntax:"<single-animation>#",relevance:82,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation"}],description:"Shorthand property combines six of the animation properties into a single property.",restrictions:["time","timing-function","enum","identifier","number"]},{name:"animation-delay",browsers:["E12","FF16","S9","C43","IE10","O30"],syntax:"<time>#",relevance:66,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-delay"}],description:"Defines when the animation will start.",restrictions:["time"]},{name:"animation-direction",browsers:["E12","FF16","S9","C43","IE10","O30"],values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],syntax:"<single-animation-direction>#",relevance:58,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-direction"}],description:"Defines whether or not the animation should play in reverse on alternate cycles.",restrictions:["enum"]},{name:"animation-duration",browsers:["E12","FF16","S9","C43","IE10","O30"],syntax:"<time>#",relevance:72,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-duration"}],description:"Defines the length of time that an animation takes to complete one cycle.",restrictions:["time"]},{name:"animation-fill-mode",browsers:["E12","FF16","S9","C43","IE10","O30"],values:[{name:"backwards",description:"The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."},{name:"both",description:"Both forwards and backwards fill modes are applied."},{name:"forwards",description:"The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."},{name:"none",description:"There is no change to the property value between the time the animation is applied and the time the animation begins playing or after the animation completes."}],syntax:"<single-animation-fill-mode>#",relevance:65,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-fill-mode"}],description:"Defines what values are applied by the animation outside the time it is executing.",restrictions:["enum"]},{name:"animation-iteration-count",browsers:["E12","FF16","S9","C43","IE10","O30"],values:[{name:"infinite",description:"Causes the animation to repeat forever."}],syntax:"<single-animation-iteration-count>#",relevance:64,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-iteration-count"}],description:"Defines the number of times an animation cycle is played. The default value is one, meaning the animation will play from beginning to end once.",restrictions:["number","enum"]},{name:"animation-name",browsers:["E12","FF16","S9","C43","IE10","O30"],values:[{name:"none",description:"No animation is performed"}],syntax:"[ none | <keyframes-name> ]#",relevance:72,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-name"}],description:"Defines a list of animations that apply. Each name is used to select the keyframe at-rule that provides the property values for the animation.",restrictions:["identifier","enum"]},{name:"animation-play-state",browsers:["E12","FF16","S9","C43","IE10","O30"],values:[{name:"paused",description:"A running animation will be paused."},{name:"running",description:"Resume playback of a paused animation."}],syntax:"<single-animation-play-state>#",relevance:55,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-play-state"}],description:"Defines whether the animation is running or paused.",restrictions:["enum"]},{name:"animation-timing-function",browsers:["E12","FF16","S9","C43","IE10","O30"],syntax:"<easing-function>#",relevance:71,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-timing-function"}],description:"Describes how the animation will progress over one cycle of its duration.",restrictions:["timing-function"]},{name:"backface-visibility",browsers:["E12","FF16","S15.4","C36","IE10","O23"],values:[{name:"hidden",description:"Back side is hidden."},{name:"visible",description:"Back side is visible."}],syntax:"visible | hidden",relevance:60,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/backface-visibility"}],description:"Determines whether or not the 'back' side of a transformed element is visible when facing the viewer. With an identity transform, the front side of an element faces the viewer.",restrictions:["enum"]},{name:"background",browsers:["E12","FF1","S1","C1","IE4","O3.5"],values:[{name:"fixed",description:"The background is fixed with regard to the viewport. In paged media where there is no viewport, a 'fixed' background is fixed with respect to the page box and therefore replicated on every page."},{name:"local",description:"The background is fixed with regard to the element's contents: if the element has a scrolling mechanism, the background scrolls with the element's contents."},{name:"none",description:"A value of 'none' counts as an image layer but draws nothing."},{name:"scroll",description:"The background is fixed with regard to the element itself and does not scroll with its contents. (It is effectively attached to the element's border.)"}],syntax:"[ <bg-layer> , ]* <final-bg-layer>",relevance:93,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background"}],description:"Shorthand property for setting most background properties at the same place in the style sheet.",restrictions:["enum","image","color","position","length","repeat","percentage","box"]},{name:"background-attachment",browsers:["E12","FF1","S1","C1","IE4","O3.5"],values:[{name:"fixed",description:"The background is fixed with regard to the viewport. In paged media where there is no viewport, a 'fixed' background is fixed with respect to the page box and therefore replicated on every page."},{name:"local",browsers:["E12","FF1","S1","C1","IE4","O3.5"],description:"The background is fixed with regard to the element's contents: if the element has a scrolling mechanism, the background scrolls with the element's contents."},{name:"scroll",description:"The background is fixed with regard to the element itself and does not scroll with its contents. (It is effectively attached to the element's border.)"}],syntax:"<attachment>#",relevance:54,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-attachment"}],description:"Specifies whether the background images are fixed with regard to the viewport ('fixed') or scroll along with the element ('scroll') or its contents ('local').",restrictions:["enum"]},{name:"background-blend-mode",browsers:["E79","FF30","S8","C35","O22"],values:[{name:"normal",description:"Default attribute which specifies no blending"},{name:"multiply",description:"The source color is multiplied by the destination color and replaces the destination."},{name:"screen",description:"Multiplies the complements of the backdrop and source color values, then complements the result."},{name:"overlay",description:"Multiplies or screens the colors, depending on the backdrop color value."},{name:"darken",description:"Selects the darker of the backdrop and source colors."},{name:"lighten",description:"Selects the lighter of the backdrop and source colors."},{name:"color-dodge",description:"Brightens the backdrop color to reflect the source color."},{name:"color-burn",description:"Darkens the backdrop color to reflect the source color."},{name:"hard-light",description:"Multiplies or screens the colors, depending on the source color value."},{name:"soft-light",description:"Darkens or lightens the colors, depending on the source color value."},{name:"difference",description:"Subtracts the darker of the two constituent colors from the lighter color.."},{name:"exclusion",description:"Produces an effect similar to that of the Difference mode but lower in contrast."},{name:"hue",browsers:["E79","FF30","S8","C35","O22"],description:"Creates a color with the hue of the source color and the saturation and luminosity of the backdrop color."},{name:"saturation",browsers:["E79","FF30","S8","C35","O22"],description:"Creates a color with the saturation of the source color and the hue and luminosity of the backdrop color."},{name:"color",browsers:["E79","FF30","S8","C35","O22"],description:"Creates a color with the hue and saturation of the source color and the luminosity of the backdrop color."},{name:"luminosity",browsers:["E79","FF30","S8","C35","O22"],description:"Creates a color with the luminosity of the source color and the hue and saturation of the backdrop color."}],syntax:"<blend-mode>#",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-blend-mode"}],description:"Defines the blending mode of each background layer.",restrictions:["enum"]},{name:"background-clip",browsers:["E12","FF4","S5","C1","IE9","O10.5"],syntax:"<box>#",relevance:69,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-clip"}],description:"Determines the background painting area.",restrictions:["box"]},{name:"background-color",browsers:["E12","FF1","S1","C1","IE4","O3.5"],syntax:"<color>",relevance:94,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-color"}],description:"Sets the background color of an element.",restrictions:["color"]},{name:"background-image",browsers:["E12","FF1","S1","C1","IE4","O3.5"],values:[{name:"none",description:"Counts as an image layer but draws nothing."}],syntax:"<bg-image>#",relevance:88,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-image"}],description:"Sets the background image(s) of an element.",restrictions:["image","enum"]},{name:"background-origin",browsers:["E12","FF4","S3","C1","IE9","O10.5"],syntax:"<box>#",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-origin"}],description:"For elements rendered as a single box, specifies the background positioning area. For elements rendered as multiple boxes (e.g., inline boxes on several lines, boxes on several pages) specifies which boxes 'box-decoration-break' operates on to determine the background positioning area(s).",restrictions:["box"]},{name:"background-position",browsers:["E12","FF1","S1","C1","IE4","O3.5"],syntax:"<bg-position>#",relevance:87,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-position"}],description:"Specifies the initial position of the background image(s) (after any resizing) within their corresponding background positioning area.",restrictions:["position","length","percentage"]},{name:"background-position-x",browsers:["E12","FF49","S1","C1","IE6","O15"],values:[{name:"center",description:"Equivalent 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."},{name:"left",description:"Equivalent 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."},{name:"right",description:"Equivalent 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."}],syntax:"[ center | [ [ left | right | x-start | x-end ]? <length-percentage>? ]! ]#",relevance:55,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-position-x"}],description:"If background images have been specified, this property specifies their initial position (after any resizing) within their corresponding background positioning area.",restrictions:["length","percentage"]},{name:"background-position-y",browsers:["E12","FF49","S1","C1","IE6","O15"],values:[{name:"bottom",description:"Equivalent 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."},{name:"center",description:"Equivalent 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."},{name:"top",description:"Equivalent 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."}],syntax:"[ center | [ [ top | bottom | y-start | y-end ]? <length-percentage>? ]! ]#",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-position-y"}],description:"If background images have been specified, this property specifies their initial position (after any resizing) within their corresponding background positioning area.",restrictions:["length","percentage"]},{name:"background-repeat",browsers:["E12","FF1","S1","C1","IE4","O3.5"],values:[],syntax:"<repeat-style>#",relevance:85,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-repeat"}],description:"Specifies how background images are tiled after they have been sized and positioned.",restrictions:["repeat"]},{name:"background-size",browsers:["E12","FF4","S5","C3","IE9","O10"],values:[{name:"auto",description:"Resolved by using the image's intrinsic ratio and the size of the other dimension, or failing that, using the image's intrinsic size, or failing that, treating it as 100%."},{name:"contain",description:"Scale the image, while preserving its intrinsic aspect ratio (if any), to the largest size such that both its width and its height can fit inside the background positioning area."},{name:"cover",description:"Scale the image, while preserving its intrinsic aspect ratio (if any), to the smallest size such that both its width and its height can completely cover the background positioning area."}],syntax:"<bg-size>#",relevance:85,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-size"}],description:"Specifies the size of the background images.",restrictions:["length","percentage"]},{name:"behavior",browsers:["IE6"],relevance:50,description:"IE only. Used to extend behaviors of the browser.",restrictions:["url"]},{name:"block-size",browsers:["E79","FF41","S12.1","C57","O44"],values:[{name:"auto",description:"Depends on the values of other properties."}],syntax:"<'width'>",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/block-size"}],description:"Size of an element in the direction opposite that of the direction specified by 'writing-mode'.",restrictions:["length","percentage"]},{name:"border",browsers:["E12","FF1","S1","C1","IE4","O3.5"],syntax:"<line-width> || <line-style> || <color>",relevance:95,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border"}],description:"Shorthand property for setting border width, style, and color.",restrictions:["length","line-width","line-style","color"]},{name:"border-block-end",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-width'> || <'border-top-style'> || <color>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-end"}],description:"Logical 'border-bottom'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","line-width","line-style","color"]},{name:"border-block-start",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-width'> || <'border-top-style'> || <color>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-start"}],description:"Logical 'border-top'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","line-width","line-style","color"]},{name:"border-block-end-color",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-color'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-end-color"}],description:"Logical 'border-bottom-color'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["color"]},{name:"border-block-start-color",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-color'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-start-color"}],description:"Logical 'border-top-color'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["color"]},{name:"border-block-end-style",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-style'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-end-style"}],description:"Logical 'border-bottom-style'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["line-style"]},{name:"border-block-start-style",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-style'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-start-style"}],description:"Logical 'border-top-style'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["line-style"]},{name:"border-block-end-width",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-width'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-end-width"}],description:"Logical 'border-bottom-width'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","line-width"]},{name:"border-block-start-width",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-width'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-start-width"}],description:"Logical 'border-top-width'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","line-width"]},{name:"border-bottom",browsers:["E12","FF1","S1","C1","IE4","O3.5"],syntax:"<line-width> || <line-style> || <color>",relevance:87,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-bottom"}],description:"Shorthand property for setting border width, style and color.",restrictions:["length","line-width","line-style","color"]},{name:"border-bottom-color",browsers:["E12","FF1","S1","C1","IE4","O3.5"],syntax:"<'border-top-color'>",relevance:70,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-bottom-color"}],description:"Sets the color of the bottom border.",restrictions:["color"]},{name:"border-bottom-left-radius",browsers:["E12","FF4","S5","C4","IE9","O10.5"],syntax:"<length-percentage>{1,2}",relevance:74,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-bottom-left-radius"}],description:"Defines the radii of the bottom left outer border edge.",restrictions:["length","percentage"]},{name:"border-bottom-right-radius",browsers:["E12","FF4","S5","C4","IE9","O10.5"],syntax:"<length-percentage>{1,2}",relevance:74,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-bottom-right-radius"}],description:"Defines the radii of the bottom right outer border edge.",restrictions:["length","percentage"]},{name:"border-bottom-style",browsers:["E12","FF1","S1","C1","IE5.5","O9.2"],syntax:"<line-style>",relevance:60,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-bottom-style"}],description:"Sets the style of the bottom border.",restrictions:["line-style"]},{name:"border-bottom-width",browsers:["E12","FF1","S1","C1","IE4","O3.5"],syntax:"<line-width>",relevance:65,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-bottom-width"}],description:"Sets the thickness of the bottom border.",restrictions:["length","line-width"]},{name:"border-collapse",browsers:["E12","FF1","S1.2","C1","IE5","O4"],values:[{name:"collapse",description:"Selects the collapsing borders model."},{name:"separate",description:"Selects the separated borders border model."}],syntax:"collapse | separate",relevance:71,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-collapse"}],description:"Selects a table's border model.",restrictions:["enum"]},{name:"border-color",browsers:["E12","FF1","S1","C1","IE4","O3.5"],values:[],syntax:"<color>{1,4}",relevance:86,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-color"}],description:"The color of the border around all four edges of an element.",restrictions:["color"]},{name:"border-image",browsers:["E12","FF15","S6","C16","IE11","O11"],values:[{name:"auto",description:"If 'auto' is specified then the border image width is the intrinsic width or height (whichever is applicable) of the corresponding image slice. If the image does not have the required intrinsic dimension then the corresponding border-width is used instead."},{name:"fill",description:"Causes the middle part of the border-image to be preserved."},{name:"none",description:"Use the border styles."},{name:"repeat",description:"The image is tiled (repeated) to fill the area."},{name:"round",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the image is rescaled so that it does."},{name:"space",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the extra space is distributed around the tiles."},{name:"stretch",description:"The image is stretched to fill the area."},{name:"url()"}],syntax:"<'border-image-source'> || <'border-image-slice'> [ / <'border-image-width'> | / <'border-image-width'>? / <'border-image-outset'> ]? || <'border-image-repeat'>",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-image"}],description:"Shorthand property for setting 'border-image-source', 'border-image-slice', 'border-image-width', 'border-image-outset' and 'border-image-repeat'. Omitted values are set to their initial values.",restrictions:["length","percentage","number","url","enum"]},{name:"border-image-outset",browsers:["E12","FF15","S6","C15","IE11","O15"],syntax:"[ <length> | <number> ]{1,4}",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-image-outset"}],description:"The values specify the amount by which the border image area extends beyond the border box on the top, right, bottom, and left sides respectively. If the fourth value is absent, it is the same as the second. If the third one is also absent, it is the same as the first. If the second one is also absent, it is the same as the first. Numbers represent multiples of the corresponding border-width.",restrictions:["length","number"]},{name:"border-image-repeat",browsers:["E12","FF15","S6","C15","IE11","O15"],values:[{name:"repeat",description:"The image is tiled (repeated) to fill the area."},{name:"round",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the image is rescaled so that it does."},{name:"space",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the extra space is distributed around the tiles."},{name:"stretch",description:"The image is stretched to fill the area."}],syntax:"[ stretch | repeat | round | space ]{1,2}",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-image-repeat"}],description:"Specifies how the images for the sides and the middle part of the border image are scaled and tiled. If the second keyword is absent, it is assumed to be the same as the first.",restrictions:["enum"]},{name:"border-image-slice",browsers:["E12","FF15","S6","C15","IE11","O15"],values:[{name:"fill",description:"Causes the middle part of the border-image to be preserved."}],syntax:"<number-percentage>{1,4} && fill?",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-image-slice"}],description:"Specifies inward offsets from the top, right, bottom, and left edges of the image, dividing it into nine regions: four corners, four edges and a middle.",restrictions:["number","percentage"]},{name:"border-image-source",browsers:["E12","FF15","S6","C15","IE11","O15"],values:[{name:"none",description:"Use the border styles."}],syntax:"none | <image>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-image-source"}],description:"Specifies an image to use instead of the border styles given by the 'border-style' properties and as an additional background layer for the element. If the value is 'none' or if the image cannot be displayed, the border styles will be used.",restrictions:["image"]},{name:"border-image-width",browsers:["E12","FF13","S6","C15","IE11","O15"],values:[{name:"auto",description:"The border image width is the intrinsic width or height (whichever is applicable) of the corresponding image slice. If the image does not have the required intrinsic dimension then the corresponding border-width is used instead."}],syntax:"[ <length-percentage> | <number> | auto ]{1,4}",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-image-width"}],description:"The four values of 'border-image-width' specify offsets that are used to divide the border image area into nine parts. They represent inward distances from the top, right, bottom, and left sides of the area, respectively.",restrictions:["length","percentage","number"]},{name:"border-inline-end",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-width'> || <'border-top-style'> || <color>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-end"}],description:"Logical 'border-right'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","line-width","line-style","color"]},{name:"border-inline-start",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-width'> || <'border-top-style'> || <color>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-start"}],description:"Logical 'border-left'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","line-width","line-style","color"]},{name:"border-inline-end-color",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-color'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-end-color"}],description:"Logical 'border-right-color'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["color"]},{name:"border-inline-start-color",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-color'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-start-color"}],description:"Logical 'border-left-color'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["color"]},{name:"border-inline-end-style",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-style'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-end-style"}],description:"Logical 'border-right-style'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["line-style"]},{name:"border-inline-start-style",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-style'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-start-style"}],description:"Logical 'border-left-style'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["line-style"]},{name:"border-inline-end-width",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-width'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-end-width"}],description:"Logical 'border-right-width'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","line-width"]},{name:"border-inline-start-width",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-width'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-start-width"}],description:"Logical 'border-left-width'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","line-width"]},{name:"border-left",browsers:["E12","FF1","S1","C1","IE4","O3.5"],syntax:"<line-width> || <line-style> || <color>",relevance:81,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-left"}],description:"Shorthand property for setting border width, style and color",restrictions:["length","line-width","line-style","color"]},{name:"border-left-color",browsers:["E12","FF1","S1","C1","IE4","O3.5"],syntax:"<color>",relevance:67,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-left-color"}],description:"Sets the color of the left border.",restrictions:["color"]},{name:"border-left-style",browsers:["E12","FF1","S1","C1","IE5.5","O9.2"],syntax:"<line-style>",relevance:54,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-left-style"}],description:"Sets the style of the left border.",restrictions:["line-style"]},{name:"border-left-width",browsers:["E12","FF1","S1","C1","IE4","O3.5"],syntax:"<line-width>",relevance:63,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-left-width"}],description:"Sets the thickness of the left border.",restrictions:["length","line-width"]},{name:"border-radius",browsers:["E12","FF4","S5","C4","IE9","O10.5"],syntax:"<length-percentage>{1,4} [ / <length-percentage>{1,4} ]?",relevance:92,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-radius"}],description:"Defines the radii of the outer border edge.",restrictions:["length","percentage"]},{name:"border-right",browsers:["E12","FF1","S1","C1","IE5.5","O9.2"],syntax:"<line-width> || <line-style> || <color>",relevance:80,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-right"}],description:"Shorthand property for setting border width, style and color",restrictions:["length","line-width","line-style","color"]},{name:"border-right-color",browsers:["E12","FF1","S1","C1","IE4","O3.5"],syntax:"<color>",relevance:66,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-right-color"}],description:"Sets the color of the right border.",restrictions:["color"]},{name:"border-right-style",browsers:["E12","FF1","S1","C1","IE5.5","O9.2"],syntax:"<line-style>",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-right-style"}],description:"Sets the style of the right border.",restrictions:["line-style"]},{name:"border-right-width",browsers:["E12","FF1","S1","C1","IE4","O3.5"],syntax:"<line-width>",relevance:63,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-right-width"}],description:"Sets the thickness of the right border.",restrictions:["length","line-width"]},{name:"border-spacing",browsers:["E12","FF1","S1","C1","IE8","O4"],syntax:"<length> <length>?",relevance:67,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-spacing"}],description:"The lengths specify the distance that separates adjoining cell borders. If one length is specified, it gives both the horizontal and vertical spacing. If two are specified, the first gives the horizontal spacing and the second the vertical spacing. Lengths may not be negative.",restrictions:["length"]},{name:"border-style",browsers:["E12","FF1","S1","C1","IE4","O3.5"],values:[],syntax:"<line-style>{1,4}",relevance:79,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-style"}],description:"The style of the border around edges of an element.",restrictions:["line-style"]},{name:"border-top",browsers:["E12","FF1","S1","C1","IE4","O3.5"],syntax:"<line-width> || <line-style> || <color>",relevance:86,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-top"}],description:"Shorthand property for setting border width, style and color",restrictions:["length","line-width","line-style","color"]},{name:"border-top-color",browsers:["E12","FF1","S1","C1","IE4","O3.5"],syntax:"<color>",relevance:71,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-top-color"}],description:"Sets the color of the top border.",restrictions:["color"]},{name:"border-top-left-radius",browsers:["E12","FF4","S5","C4","IE9","O10.5"],syntax:"<length-percentage>{1,2}",relevance:75,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-top-left-radius"}],description:"Defines the radii of the top left outer border edge.",restrictions:["length","percentage"]},{name:"border-top-right-radius",browsers:["E12","FF4","S5","C4","IE9","O10.5"],syntax:"<length-percentage>{1,2}",relevance:75,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-top-right-radius"}],description:"Defines the radii of the top right outer border edge.",restrictions:["length","percentage"]},{name:"border-top-style",browsers:["E12","FF1","S1","C1","IE5.5","O9.2"],syntax:"<line-style>",relevance:58,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-top-style"}],description:"Sets the style of the top border.",restrictions:["line-style"]},{name:"border-top-width",browsers:["E12","FF1","S1","C1","IE4","O3.5"],syntax:"<line-width>",relevance:61,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-top-width"}],description:"Sets the thickness of the top border.",restrictions:["length","line-width"]},{name:"border-width",browsers:["E12","FF1","S1","C1","IE4","O3.5"],values:[],syntax:"<line-width>{1,4}",relevance:82,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-width"}],description:"Shorthand that sets the four 'border-*-width' properties. If it has four values, they set top, right, bottom and left in that order. If left is missing, it is the same as right; if bottom is missing, it is the same as top; if right is missing, it is the same as top.",restrictions:["length","line-width"]},{name:"bottom",browsers:["E12","FF1","S1","C1","IE5","O6"],values:[{name:"auto",description:"For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well"}],syntax:"<length> | <percentage> | auto",relevance:90,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/bottom"}],description:"Specifies how far an absolutely positioned box's bottom margin edge is offset above the bottom edge of the box's 'containing block'.",restrictions:["length","percentage"]},{name:"box-decoration-break",browsers:["E79","FF32","S7","C22","O15"],values:[{name:"clone",description:"Each box is independently wrapped with the border and padding."},{name:"slice",description:"The effect is as though the element were rendered with no breaks present, and then sliced by the breaks afterward."}],syntax:"slice | clone",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-decoration-break"}],description:"Specifies whether individual boxes are treated as broken pieces of one continuous box, or whether each box is individually wrapped with the border and padding.",restrictions:["enum"]},{name:"box-shadow",browsers:["E12","FF4","S5.1","C10","IE9","O10.5"],values:[{name:"inset",description:"Changes the drop shadow from an outer shadow (one that shadows the box onto the canvas, as if it were lifted above the canvas) to an inner shadow (one that shadows the canvas onto the box, as if the box were cut out of the canvas and shifted behind it)."},{name:"none",description:"No shadow."}],syntax:"none | <shadow>#",relevance:90,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-shadow"}],description:"Attaches one or more drop-shadows to the box. The property is a comma-separated list of shadows, each specified by 2-4 length values, an optional color, and an optional 'inset' keyword. Omitted lengths are 0; omitted colors are a user agent chosen color.",restrictions:["length","color","enum"]},{name:"box-sizing",browsers:["E12","FF29","S5.1","C10","IE8","O7"],values:[{name:"border-box",description:"The specified width and height (and respective min/max properties) on this element determine the border box of the element."},{name:"content-box",description:"Behavior of width and height as specified by CSS2.1. The specified width and height (and respective min/max properties) apply to the width and height respectively of the content box of the element."}],syntax:"content-box | border-box",relevance:92,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-sizing"}],description:"Specifies the behavior of the 'width' and 'height' properties.",restrictions:["enum"]},{name:"break-after",browsers:["E12","FF65","S10","C50","IE10","O37"],values:[{name:"always",description:"Always force a page break before/after the generated box."},{name:"auto",description:"Neither force nor forbid a page/column break before/after the principal box."},{name:"avoid",description:"Avoid a break before/after the principal box."},{name:"avoid-column",description:"Avoid a column break before/after the principal box."},{name:"avoid-page",description:"Avoid a page break before/after the principal box."},{name:"column",description:"Always force a column break before/after the principal box."},{name:"left",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a left page."},{name:"page",description:"Always force a page break before/after the principal box."},{name:"right",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a right page."}],syntax:"auto | avoid | always | all | avoid-page | page | left | right | recto | verso | avoid-column | column | avoid-region | region",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/break-after"}],description:"Describes the page/column/region break behavior after the generated box.",restrictions:["enum"]},{name:"break-before",browsers:["E12","FF65","S10","C50","IE10","O37"],values:[{name:"always",description:"Always force a page break before/after the generated box."},{name:"auto",description:"Neither force nor forbid a page/column break before/after the principal box."},{name:"avoid",description:"Avoid a break before/after the principal box."},{name:"avoid-column",description:"Avoid a column break before/after the principal box."},{name:"avoid-page",description:"Avoid a page break before/after the principal box."},{name:"column",description:"Always force a column break before/after the principal box."},{name:"left",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a left page."},{name:"page",description:"Always force a page break before/after the principal box."},{name:"right",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a right page."}],syntax:"auto | avoid | always | all | avoid-page | page | left | right | recto | verso | avoid-column | column | avoid-region | region",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/break-before"}],description:"Describes the page/column/region break behavior before the generated box.",restrictions:["enum"]},{name:"break-inside",browsers:["E12","FF65","S10","C50","IE10","O37"],values:[{name:"auto",description:"Impose no additional breaking constraints within the box."},{name:"avoid",description:"Avoid breaks within the box."},{name:"avoid-column",description:"Avoid a column break within the box."},{name:"avoid-page",description:"Avoid a page break within the box."}],syntax:"auto | avoid | avoid-page | avoid-column | avoid-region",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/break-inside"}],description:"Describes the page/column/region break behavior inside the principal box.",restrictions:["enum"]},{name:"caption-side",browsers:["E12","FF1","S1","C1","IE8","O4"],values:[{name:"bottom",description:"Positions the caption box below the table box."},{name:"top",description:"Positions the caption box above the table box."}],syntax:"top | bottom | block-start | block-end | inline-start | inline-end",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/caption-side"}],description:"Specifies the position of the caption box with respect to the table box.",restrictions:["enum"]},{name:"caret-color",browsers:["E79","FF53","S11.1","C57","O44"],values:[{name:"auto",description:"The user agent selects an appropriate color for the caret. This is generally currentcolor, but the user agent may choose a different color to ensure good visibility and contrast with the surrounding content, taking into account the value of currentcolor, the background, shadows, and other factors."}],syntax:"auto | <color>",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/caret-color"}],description:"Controls the color of the text insertion indicator.",restrictions:["color","enum"]},{name:"clear",browsers:["E12","FF1","S1","C1","IE4","O3.5"],values:[{name:"both",description:"The clearance of the generated box is set to the amount necessary to place the top border edge below the bottom outer edge of any right-floating and left-floating boxes that resulted from elements earlier in the source document."},{name:"left",description:"The clearance of the generated box is set to the amount necessary to place the top border edge below the bottom outer edge of any left-floating boxes that resulted from elements earlier in the source document."},{name:"none",description:"No constraint on the box's position with respect to floats."},{name:"right",description:"The clearance of the generated box is set to the amount necessary to place the top border edge below the bottom outer edge of any right-floating boxes that resulted from elements earlier in the source document."}],syntax:"none | left | right | both | inline-start | inline-end",relevance:83,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/clear"}],description:"Indicates which sides of an element's box(es) may not be adjacent to an earlier floating box. The 'clear' property does not consider floats inside the element itself or in other block formatting contexts.",restrictions:["enum"]},{name:"clip",browsers:["E12","FF1","S1","C1","IE4","O7"],values:[{name:"auto",description:"The element does not clip."},{name:"rect()",description:"Specifies offsets from the edges of the border box."}],syntax:"<shape> | auto",relevance:74,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/clip"}],description:"Deprecated. Use the 'clip-path' property when support allows. Defines the visible portion of an element's box.",restrictions:["enum"]},{name:"clip-path",browsers:["E79","FF3.5","S9.1","C55","IE10","O42"],values:[{name:"none",description:"No clipping path gets created."},{name:"url()",description:"References a <clipPath> element to create a clipping path."}],syntax:"<clip-source> | [ <basic-shape> || <geometry-box> ] | none",relevance:64,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/clip-path"}],description:"Specifies a clipping path where everything inside the path is visible and everything outside is clipped out.",restrictions:["url","shape","geometry-box","enum"]},{name:"clip-rule",browsers:["E80","FF72","S13.1","C80","O67"],values:[{name:"evenodd",description:"Determines the 'insideness' of a point on the canvas by drawing a ray from that point to infinity in any direction and counting the number of path segments from the given shape that the ray crosses."},{name:"nonzero",description:"Determines the 'insideness' of a point on the canvas by drawing a ray from that point to infinity in any direction and then examining the places where a segment of the shape crosses the ray."}],relevance:50,description:"Indicates the algorithm which is to be used to determine what parts of the canvas are included inside the shape.",restrictions:["enum"]},{name:"color",browsers:["E12","FF1","S1","C1","IE3","O3.5"],syntax:"<color>",relevance:94,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/color"}],description:"Sets the color of an element's text",restrictions:["color"]},{name:"color-interpolation-filters",browsers:["E80","FF72","S13.1","C80","O67"],values:[{name:"auto",description:"Color operations are not required to occur in a particular color space."},{name:"linearRGB",description:"Color operations should occur in the linearized RGB color space."},{name:"sRGB",description:"Color operations should occur in the sRGB color space."}],relevance:50,description:"Specifies the color space for imaging operations performed via filter effects.",restrictions:["enum"]},{name:"column-count",browsers:["E12","FF52","S9","C50","IE10","O11.1"],values:[{name:"auto",description:"Determines the number of columns by the 'column-width' property and the element width."}],syntax:"<integer> | auto",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/column-count"}],description:"Describes the optimal number of columns into which the content of the element will be flowed.",restrictions:["integer","enum"]},{name:"column-fill",browsers:["E12","FF52","S9","C50","IE10","O37"],values:[{name:"auto",description:"Fills columns sequentially."},{name:"balance",description:"Balance content equally between columns, if possible."}],syntax:"auto | balance | balance-all",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/column-fill"}],description:"In continuous media, this property will only be consulted if the length of columns has been constrained. Otherwise, columns will automatically be balanced.",restrictions:["enum"]},{name:"column-gap",browsers:["E12","FF1.5","S3","C1","IE10","O11.1"],values:[{name:"normal",description:"User agent specific and typically equivalent to 1em."}],syntax:"normal | <length-percentage>",relevance:60,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/column-gap"}],description:"Sets the gap between columns. If there is a column rule between columns, it will appear in the middle of the gap.",restrictions:["length","enum"]},{name:"column-rule",browsers:["E12","FF52","S9","C50","IE10","O11.1"],syntax:"<'column-rule-width'> || <'column-rule-style'> || <'column-rule-color'>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/column-rule"}],description:"Shorthand for setting 'column-rule-width', 'column-rule-style', and 'column-rule-color' at the same place in the style sheet. Omitted values are set to their initial values.",restrictions:["length","line-width","line-style","color"]},{name:"column-rule-color",browsers:["E12","FF52","S9","C50","IE10","O11.1"],syntax:"<color>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/column-rule-color"}],description:"Sets the color of the column rule",restrictions:["color"]},{name:"column-rule-style",browsers:["E12","FF52","S9","C50","IE10","O11.1"],syntax:"<'border-style'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/column-rule-style"}],description:"Sets the style of the rule between columns of an element.",restrictions:["line-style"]},{name:"column-rule-width",browsers:["E12","FF52","S9","C50","IE10","O11.1"],syntax:"<'border-width'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/column-rule-width"}],description:"Sets the width of the rule between columns. Negative values are not allowed.",restrictions:["length","line-width"]},{name:"columns",browsers:["E12","FF52","S9","C50","IE10","O11.1"],values:[{name:"auto",description:"The width depends on the values of other properties."}],syntax:"<'column-width'> || <'column-count'>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/columns"}],description:"A shorthand property which sets both 'column-width' and 'column-count'.",restrictions:["length","integer","enum"]},{name:"column-span",browsers:["E12","FF71","S9","C50","IE10","O11.1"],values:[{name:"all",description:"The element spans across all columns. Content in the normal flow that appears before the element is automatically balanced across all columns before the element appear."},{name:"none",description:"The element does not span multiple columns."}],syntax:"none | all",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/column-span"}],description:"Describes the page/column break behavior after the generated box.",restrictions:["enum"]},{name:"column-width",browsers:["E12","FF50","S9","C50","IE10","O11.1"],values:[{name:"auto",description:"The width depends on the values of other properties."}],syntax:"<length> | auto",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/column-width"}],description:"Describes the width of columns in multicol elements.",restrictions:["length","enum"]},{name:"contain",browsers:["E79","FF69","S15.4","C52","O39"],values:[{name:"none",description:"Indicates that the property has no effect."},{name:"strict",description:"Turns on all forms of containment for the element."},{name:"content",description:"All containment rules except size are applied to the element."},{name:"size",description:"For properties that can have effects on more than just an element and its descendants, those effects don't escape the containing element."},{name:"layout",description:"Turns on layout containment for the element."},{name:"style",description:"Turns on style containment for the element."},{name:"paint",description:"Turns on paint containment for the element."}],syntax:"none | strict | content | [ [ size || inline-size ] || layout || style || paint ]",relevance:58,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/contain"}],description:"Indicates that an element and its contents are, as much as possible, independent of the rest of the document tree.",restrictions:["enum"]},{name:"content",browsers:["E12","FF1","S1","C1","IE8","O4"],values:[{name:"attr()",description:"The attr(n) function returns as a string the value of attribute n for the subject of the selector."},{name:"counter(name)",description:"Counters are denoted by identifiers (see the 'counter-increment' and 'counter-reset' properties)."},{name:"icon",description:"The (pseudo-)element is replaced in its entirety by the resource referenced by its 'icon' property, and treated as a replaced element."},{name:"none",description:"On elements, this inhibits the children of the element from being rendered as children of this element, as if the element was empty. On pseudo-elements it causes the pseudo-element to have no content."},{name:"normal",description:"See http://www.w3.org/TR/css3-content/#content for computation rules."},{name:"url()"}],syntax:"normal | none | [ <content-replacement> | <content-list> ] [/ [ <string> | <counter> ]+ ]?",relevance:89,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/content"}],description:"Determines which page-based occurrence of a given element is applied to a counter or string value.",restrictions:["string","url"]},{name:"counter-increment",browsers:["E12","FF1","S3","C2","IE8","O9.2"],values:[{name:"none",description:"This element does not alter the value of any counters."}],syntax:"[ <counter-name> <integer>? ]+ | none",relevance:54,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/counter-increment"}],description:"Manipulate the value of existing counters.",restrictions:["identifier","integer"]},{name:"counter-reset",browsers:["E12","FF1","S3","C2","IE8","O9.2"],values:[{name:"none",description:"The counter is not modified."}],syntax:"[ <counter-name> <integer>? | <reversed-counter-name> <integer>? ]+ | none",relevance:54,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/counter-reset"}],description:"Property accepts one or more names of counters (identifiers), each one optionally followed by an integer. The integer gives the value that the counter is set to on each occurrence of the element.",restrictions:["identifier","integer"]},{name:"cursor",browsers:["E12","FF1","S1.2","C1","IE4","O7"],values:[{name:"alias",description:"Indicates an alias of/shortcut to something is to be created. Often rendered as an arrow with a small curved arrow next to it."},{name:"all-scroll",description:"Indicates that the something can be scrolled in any direction. Often rendered as arrows pointing up, down, left, and right with a dot in the middle."},{name:"auto",description:"The UA determines the cursor to display based on the current context."},{name:"cell",description:"Indicates that a cell or set of cells may be selected. Often rendered as a thick plus-sign with a dot in the middle."},{name:"col-resize",description:"Indicates that the item/column can be resized horizontally. Often rendered as arrows pointing left and right with a vertical bar separating them."},{name:"context-menu",description:"A context menu is available for the object under the cursor. Often rendered as an arrow with a small menu-like graphic next to it."},{name:"copy",description:"Indicates something is to be copied. Often rendered as an arrow with a small plus sign next to it."},{name:"crosshair",description:"A simple crosshair (e.g., short line segments resembling a '+' sign). Often used to indicate a two dimensional bitmap selection mode."},{name:"default",description:"The platform-dependent default cursor. Often rendered as an arrow."},{name:"e-resize",description:"Indicates that east edge is to be moved."},{name:"ew-resize",description:"Indicates a bidirectional east-west resize cursor."},{name:"grab",browsers:["E12","FF1","S1.2","C1","IE4","O7"],description:"Indicates that something can be grabbed."},{name:"grabbing",browsers:["E12","FF1","S1.2","C1","IE4","O7"],description:"Indicates that something is being grabbed."},{name:"help",description:"Help is available for the object under the cursor. Often rendered as a question mark or a balloon."},{name:"move",description:"Indicates something is to be moved."},{name:"-moz-grab",browsers:["E12","FF1","S1.2","C1","IE4","O7"],description:"Indicates that something can be grabbed."},{name:"-moz-grabbing",browsers:["E12","FF1","S1.2","C1","IE4","O7"],description:"Indicates that something is being grabbed."},{name:"-moz-zoom-in",browsers:["E12","FF1","S1.2","C1","IE4","O7"],description:"Indicates that something can be zoomed (magnified) in."},{name:"-moz-zoom-out",browsers:["E12","FF1","S1.2","C1","IE4","O7"],description:"Indicates that something can be zoomed (magnified) out."},{name:"ne-resize",description:"Indicates that movement starts from north-east corner."},{name:"nesw-resize",description:"Indicates a bidirectional north-east/south-west cursor."},{name:"no-drop",description:"Indicates that the dragged item cannot be dropped at the current cursor location. Often rendered as a hand or pointer with a small circle with a line through it."},{name:"none",description:"No cursor is rendered for the element."},{name:"not-allowed",description:"Indicates that the requested action will not be carried out. Often rendered as a circle with a line through it."},{name:"n-resize",description:"Indicates that north edge is to be moved."},{name:"ns-resize",description:"Indicates a bidirectional north-south cursor."},{name:"nw-resize",description:"Indicates that movement starts from north-west corner."},{name:"nwse-resize",description:"Indicates a bidirectional north-west/south-east cursor."},{name:"pointer",description:"The cursor is a pointer that indicates a link."},{name:"progress",description:"A progress indicator. The program is performing some processing, but is different from 'wait' in that the user may still interact with the program. Often rendered as a spinning beach ball, or an arrow with a watch or hourglass."},{name:"row-resize",description:"Indicates that the item/row can be resized vertically. Often rendered as arrows pointing up and down with a horizontal bar separating them."},{name:"se-resize",description:"Indicates that movement starts from south-east corner."},{name:"s-resize",description:"Indicates that south edge is to be moved."},{name:"sw-resize",description:"Indicates that movement starts from south-west corner."},{name:"text",description:"Indicates text that may be selected. Often rendered as a vertical I-beam."},{name:"vertical-text",description:"Indicates vertical-text that may be selected. Often rendered as a horizontal I-beam."},{name:"wait",description:"Indicates that the program is busy and the user should wait. Often rendered as a watch or hourglass."},{name:"-webkit-grab",browsers:["E12","FF1","S1.2","C1","IE4","O7"],description:"Indicates that something can be grabbed."},{name:"-webkit-grabbing",browsers:["E12","FF1","S1.2","C1","IE4","O7"],description:"Indicates that something is being grabbed."},{name:"-webkit-zoom-in",browsers:["E12","FF1","S1.2","C1","IE4","O7"],description:"Indicates that something can be zoomed (magnified) in."},{name:"-webkit-zoom-out",browsers:["E12","FF1","S1.2","C1","IE4","O7"],description:"Indicates that something can be zoomed (magnified) out."},{name:"w-resize",description:"Indicates that west edge is to be moved."},{name:"zoom-in",browsers:["E12","FF1","S1.2","C1","IE4","O7"],description:"Indicates that something can be zoomed (magnified) in."},{name:"zoom-out",browsers:["E12","FF1","S1.2","C1","IE4","O7"],description:"Indicates that something can be zoomed (magnified) out."}],syntax:"[ [ <url> [ <x> <y> ]? , ]* [ auto | default | none | context-menu | help | pointer | progress | wait | cell | crosshair | text | vertical-text | alias | copy | move | no-drop | not-allowed | e-resize | n-resize | ne-resize | nw-resize | s-resize | se-resize | sw-resize | w-resize | ew-resize | ns-resize | nesw-resize | nwse-resize | col-resize | row-resize | all-scroll | zoom-in | zoom-out | grab | grabbing ] ]",relevance:91,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/cursor"}],description:"Allows control over cursor appearance in an element",restrictions:["url","number","enum"]},{name:"direction",browsers:["E12","FF1","S1","C2","IE5.5","O9.2"],values:[{name:"ltr",description:"Left-to-right direction."},{name:"rtl",description:"Right-to-left direction."}],syntax:"ltr | rtl",relevance:71,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/direction"}],description:"Specifies the inline base direction or directionality of any bidi paragraph, embedding, isolate, or override established by the box. Note: for HTML content use the 'dir' attribute and 'bdo' element rather than this property.",restrictions:["enum"]},{name:"display",browsers:["E12","FF1","S1","C1","IE4","O7"],values:[{name:"block",description:"The element generates a block-level box"},{name:"contents",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"The element itself does not generate any boxes, but its children and pseudo-elements still generate boxes as normal."},{name:"flex",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"The element generates a principal flex container box and establishes a flex formatting context."},{name:"flexbox",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"The element lays out its contents using flow layout (block-and-inline layout). Standardized as 'flex'."},{name:"flow-root",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"The element generates a block container box, and lays out its contents using flow layout."},{name:"grid",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"The element generates a principal grid container box, and establishes a grid formatting context."},{name:"inline",description:"The element generates an inline-level box."},{name:"inline-block",description:"A block box, which itself is flowed as a single inline box, similar to a replaced element. The inside of an inline-block is formatted as a block box, and the box itself is formatted as an inline box."},{name:"inline-flex",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"Inline-level flex container."},{name:"inline-flexbox",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"Inline-level flex container. Standardized as 'inline-flex'"},{name:"inline-table",description:"Inline-level table wrapper box containing table box."},{name:"list-item",description:"One or more block boxes and one marker box."},{name:"-moz-box",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"The element lays out its contents using flow layout (block-and-inline layout). Standardized as 'flex'."},{name:"-moz-deck",browsers:["E12","FF1","S1","C1","IE4","O7"]},{name:"-moz-grid",browsers:["E12","FF1","S1","C1","IE4","O7"]},{name:"-moz-grid-group",browsers:["E12","FF1","S1","C1","IE4","O7"]},{name:"-moz-grid-line",browsers:["E12","FF1","S1","C1","IE4","O7"]},{name:"-moz-groupbox",browsers:["E12","FF1","S1","C1","IE4","O7"]},{name:"-moz-inline-box",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"Inline-level flex container. Standardized as 'inline-flex'"},{name:"-moz-inline-grid",browsers:["E12","FF1","S1","C1","IE4","O7"]},{name:"-moz-inline-stack",browsers:["E12","FF1","S1","C1","IE4","O7"]},{name:"-moz-marker",browsers:["E12","FF1","S1","C1","IE4","O7"]},{name:"-moz-popup",browsers:["E12","FF1","S1","C1","IE4","O7"]},{name:"-moz-stack",browsers:["E12","FF1","S1","C1","IE4","O7"]},{name:"-ms-flexbox",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"The element lays out its contents using flow layout (block-and-inline layout). Standardized as 'flex'."},{name:"-ms-grid",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"The element generates a principal grid container box, and establishes a grid formatting context."},{name:"-ms-inline-flexbox",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"Inline-level flex container. Standardized as 'inline-flex'"},{name:"-ms-inline-grid",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"Inline-level grid container."},{name:"none",description:"The element and its descendants generates no boxes."},{name:"ruby",description:"The element generates a principal ruby container box, and establishes a ruby formatting context."},{name:"ruby-base"},{name:"ruby-base-container"},{name:"ruby-text"},{name:"ruby-text-container"},{name:"run-in",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"The element generates a run-in box. Run-in elements act like inlines or blocks, depending on the surrounding elements."},{name:"table",description:"The element generates a principal table wrapper box containing an additionally-generated table box, and establishes a table formatting context."},{name:"table-caption"},{name:"table-cell"},{name:"table-column"},{name:"table-column-group"},{name:"table-footer-group"},{name:"table-header-group"},{name:"table-row"},{name:"table-row-group"},{name:"-webkit-box",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"The element lays out its contents using flow layout (block-and-inline layout). Standardized as 'flex'."},{name:"-webkit-flex",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"The element lays out its contents using flow layout (block-and-inline layout)."},{name:"-webkit-inline-box",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"Inline-level flex container. Standardized as 'inline-flex'"},{name:"-webkit-inline-flex",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"Inline-level flex container."}],syntax:"[ <display-outside> || <display-inside> ] | <display-listitem> | <display-internal> | <display-box> | <display-legacy>",relevance:96,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/display"}],description:"In combination with 'float' and 'position', determines the type of box or boxes that are generated for an element.",restrictions:["enum"]},{name:"empty-cells",browsers:["E12","FF1","S1.2","C1","IE8","O4"],values:[{name:"hide",description:"No borders or backgrounds are drawn around/behind empty cells."},{name:"-moz-show-background",browsers:["E12","FF1","S1.2","C1","IE8","O4"]},{name:"show",description:"Borders and backgrounds are drawn around/behind empty cells (like normal cells)."}],syntax:"show | hide",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/empty-cells"}],description:"In the separated borders model, this property controls the rendering of borders and backgrounds around cells that have no visible content.",restrictions:["enum"]},{name:"enable-background",values:[{name:"accumulate",description:"If the ancestor container element has a property of new, then all graphics elements within the current container are rendered both on the parent's background image and onto the target."},{name:"new",description:"Create a new background image canvas. All children of the current container element can access the background, and they will be rendered onto both the parent's background image canvas in addition to the target device."}],relevance:50,description:"Deprecated. Use 'isolation' property instead when support allows. Specifies how the accumulation of the background image is managed.",restrictions:["integer","length","percentage","enum"]},{name:"fallback",browsers:["FF33"],atRule:"@counter-style",syntax:"<counter-style-name>",relevance:50,description:"@counter-style descriptor. Specifies a fallback counter style to be used when the current counter style can't create a representation for a given counter value.",restrictions:["identifier"]},{name:"fill",browsers:["E80","FF72","S13.1","C80","O67"],values:[{name:"url()",description:"A URL reference to a paint server element, which is an element that defines a paint server: 'hatch', 'linearGradient', 'mesh', 'pattern', 'radialGradient' and 'solidcolor'."},{name:"none",description:"No paint is applied in this layer."}],relevance:77,description:"Paints the interior of the given graphical element.",restrictions:["color","enum","url"]},{name:"fill-opacity",browsers:["E80","FF72","S13.1","C80","O67"],relevance:52,description:"Specifies the opacity of the painting operation used to paint the interior the current object.",restrictions:["number(0-1)"]},{name:"fill-rule",browsers:["E80","FF72","S13.1","C80","O67"],values:[{name:"evenodd",description:"Determines the 'insideness' of a point on the canvas by drawing a ray from that point to infinity in any direction and counting the number of path segments from the given shape that the ray crosses."},{name:"nonzero",description:"Determines the 'insideness' of a point on the canvas by drawing a ray from that point to infinity in any direction and then examining the places where a segment of the shape crosses the ray."}],relevance:51,description:"Indicates the algorithm (or winding rule) which is to be used to determine what parts of the canvas are included inside the shape.",restrictions:["enum"]},{name:"filter",browsers:["E12","FF35","S9.1","C53","O40"],values:[{name:"none",description:"No filter effects are applied."},{name:"blur()",description:"Applies a Gaussian blur to the input image."},{name:"brightness()",description:"Applies a linear multiplier to input image, making it appear more or less bright."},{name:"contrast()",description:"Adjusts the contrast of the input."},{name:"drop-shadow()",description:"Applies a drop shadow effect to the input image."},{name:"grayscale()",description:"Converts the input image to grayscale."},{name:"hue-rotate()",description:"Applies a hue rotation on the input image. "},{name:"invert()",description:"Inverts the samples in the input image."},{name:"opacity()",description:"Applies transparency to the samples in the input image."},{name:"saturate()",description:"Saturates the input image."},{name:"sepia()",description:"Converts the input image to sepia."},{name:"url()",browsers:["E12","FF35","S9.1","C53","O40"],description:"A filter reference to a <filter> element."}],syntax:"none | <filter-function-list>",relevance:70,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/filter"}],description:"Processes an element's rendering before it is displayed in the document, by applying one or more filter effects.",restrictions:["enum","url"]},{name:"flex",browsers:["E12","FF20","S9","C29","IE11","O12.1"],values:[{name:"auto",description:"Retrieves the value of the main size property as the used 'flex-basis'."},{name:"content",browsers:["E12","FF20","S9","C29","IE11","O12.1"],description:"Indicates automatic sizing, based on the flex item's content."},{name:"none",description:"Expands to '0 0 auto'."}],syntax:"none | [ <'flex-grow'> <'flex-shrink'>? || <'flex-basis'> ]",relevance:81,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/flex"}],description:"Specifies the components of a flexible length: the flex grow factor and flex shrink factor, and the flex basis.",restrictions:["length","number","percentage"]},{name:"flex-basis",browsers:["E12","FF22","S9","C29","IE11","O12.1"],values:[{name:"auto",description:"Retrieves the value of the main size property as the used 'flex-basis'."},{name:"content",browsers:["E12","FF22","S9","C29","IE11","O12.1"],description:"Indicates automatic sizing, based on the flex item's content."}],syntax:"content | <'width'>",relevance:70,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/flex-basis"}],description:"Sets the flex basis.",restrictions:["length","number","percentage"]},{name:"flex-direction",browsers:["E12","FF81","S9","C29","IE11","O12.1"],values:[{name:"column",description:"The flex container's main axis has the same orientation as the block axis of the current writing mode."},{name:"column-reverse",description:"Same as 'column', except the main-start and main-end directions are swapped."},{name:"row",description:"The flex container's main axis has the same orientation as the inline axis of the current writing mode."},{name:"row-reverse",description:"Same as 'row', except the main-start and main-end directions are swapped."}],syntax:"row | row-reverse | column | column-reverse",relevance:84,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/flex-direction"}],description:"Specifies how flex items are placed in the flex container, by setting the direction of the flex container's main axis.",restrictions:["enum"]},{name:"flex-flow",browsers:["E12","FF28","S9","C29","IE11","O12.1"],values:[{name:"column",description:"The flex container's main axis has the same orientation as the block axis of the current writing mode."},{name:"column-reverse",description:"Same as 'column', except the main-start and main-end directions are swapped."},{name:"nowrap",description:"The flex container is single-line."},{name:"row",description:"The flex container's main axis has the same orientation as the inline axis of the current writing mode."},{name:"row-reverse",description:"Same as 'row', except the main-start and main-end directions are swapped."},{name:"wrap",description:"The flexbox is multi-line."},{name:"wrap-reverse",description:"Same as 'wrap', except the cross-start and cross-end directions are swapped."}],syntax:"<'flex-direction'> || <'flex-wrap'>",relevance:64,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/flex-flow"}],description:"Specifies how flexbox items are placed in the flexbox.",restrictions:["enum"]},{name:"flex-grow",browsers:["E12","FF20","S9","C29","IE11","O12.1"],syntax:"<number>",relevance:77,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/flex-grow"}],description:"Sets the flex grow factor. Negative numbers are invalid.",restrictions:["number"]},{name:"flex-shrink",browsers:["E12","FF20","S9","C29","IE10","O12.1"],syntax:"<number>",relevance:76,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/flex-shrink"}],description:"Sets the flex shrink factor. Negative numbers are invalid.",restrictions:["number"]},{name:"flex-wrap",browsers:["E12","FF28","S9","C29","IE11","O17"],values:[{name:"nowrap",description:"The flex container is single-line."},{name:"wrap",description:"The flexbox is multi-line."},{name:"wrap-reverse",description:"Same as 'wrap', except the cross-start and cross-end directions are swapped."}],syntax:"nowrap | wrap | wrap-reverse",relevance:82,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/flex-wrap"}],description:"Controls whether the flex container is single-line or multi-line, and the direction of the cross-axis, which determines the direction new lines are stacked in.",restrictions:["enum"]},{name:"float",browsers:["E12","FF1","S1","C1","IE4","O7"],values:[{name:"inline-end",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"A keyword indicating that the element must float on the end side of its containing block. That is the right side with ltr scripts, and the left side with rtl scripts."},{name:"inline-start",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"A keyword indicating that the element must float on the start side of its containing block. That is the left side with ltr scripts, and the right side with rtl scripts."},{name:"left",description:"The element generates a block box that is floated to the left. Content flows on the right side of the box, starting at the top (subject to the 'clear' property)."},{name:"none",description:"The box is not floated."},{name:"right",description:"Similar to 'left', except the box is floated to the right, and content flows on the left side of the box, starting at the top."}],syntax:"left | right | none | inline-start | inline-end",relevance:89,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/float"}],description:"Specifies how a box should be floated. It may be set for any element, but only applies to elements that generate boxes that are not absolutely positioned.",restrictions:["enum"]},{name:"flood-color",browsers:["E12","FF3","S6","C5","IE","O15"],relevance:50,description:"Indicates what color to use to flood the current filter primitive subregion.",restrictions:["color"]},{name:"flood-opacity",browsers:["E12","FF3","S6","C5","IE","O15"],relevance:50,description:"Indicates what opacity to use to flood the current filter primitive subregion.",restrictions:["number(0-1)","percentage"]},{name:"font",browsers:["E12","FF1","S1","C1","IE3","O3.5"],values:[{name:"100",description:"Thin"},{name:"200",description:"Extra Light (Ultra Light)"},{name:"300",description:"Light"},{name:"400",description:"Normal"},{name:"500",description:"Medium"},{name:"600",description:"Semi Bold (Demi Bold)"},{name:"700",description:"Bold"},{name:"800",description:"Extra Bold (Ultra Bold)"},{name:"900",description:"Black (Heavy)"},{name:"bold",description:"Same as 700"},{name:"bolder",description:"Specifies the weight of the face bolder than the inherited value."},{name:"caption",description:"The font used for captioned controls (e.g., buttons, drop-downs, etc.)."},{name:"icon",description:"The font used to label icons."},{name:"italic",description:"Selects a font that is labeled 'italic', or, if that is not available, one labeled 'oblique'."},{name:"large"},{name:"larger"},{name:"lighter",description:"Specifies the weight of the face lighter than the inherited value."},{name:"medium"},{name:"menu",description:"The font used in menus (e.g., dropdown menus and menu lists)."},{name:"message-box",description:"The font used in dialog boxes."},{name:"normal",description:"Specifies a face that is not labeled as a small-caps font."},{name:"oblique",description:"Selects a font that is labeled 'oblique'."},{name:"small"},{name:"small-caps",description:"Specifies a font that is labeled as a small-caps font. If a genuine small-caps font is not available, user agents should simulate a small-caps font."},{name:"small-caption",description:"The font used for labeling small controls."},{name:"smaller"},{name:"status-bar",description:"The font used in window status bars."},{name:"x-large"},{name:"x-small"},{name:"xx-large"},{name:"xx-small"}],syntax:"[ [ <'font-style'> || <font-variant-css21> || <'font-weight'> || <'font-stretch'> ]? <'font-size'> [ / <'line-height'> ]? <'font-family'> ] | caption | icon | menu | message-box | small-caption | status-bar",relevance:83,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font"}],description:"Shorthand property for setting 'font-style', 'font-variant', 'font-weight', 'font-size', 'line-height', and 'font-family', at the same place in the style sheet. The syntax of this property is based on a traditional typographical shorthand notation to set multiple properties related to fonts.",restrictions:["font"]},{name:"font-family",browsers:["E12","FF1","S1","C1","IE3","O3.5"],values:[{name:"system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif"},{name:"Arial, Helvetica, sans-serif"},{name:"Cambria, Cochin, Georgia, Times, 'Times New Roman', serif"},{name:"'Courier New', Courier, monospace"},{name:"cursive"},{name:"fantasy"},{name:"'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif"},{name:"Georgia, 'Times New Roman', Times, serif"},{name:"'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif"},{name:"Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif"},{name:"'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif"},{name:"monospace"},{name:"sans-serif"},{name:"'Segoe UI', Tahoma, Geneva, Verdana, sans-serif"},{name:"serif"},{name:"'Times New Roman', Times, serif"},{name:"'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif"},{name:"Verdana, Geneva, Tahoma, sans-serif"}],atRule:"@font-face",syntax:"<family-name>",relevance:93,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-family"}],description:"Specifies a prioritized list of font family names or generic family names. A user agent iterates through the list of family names until it matches an available font that contains a glyph for the character to be rendered.",restrictions:["font"]},{name:"font-feature-settings",browsers:["E15","FF34","S9.1","C48","IE10","O35"],values:[{name:'"aalt"',description:"Access All Alternates."},{name:'"abvf"',description:"Above-base Forms. Required in Khmer script."},{name:'"abvm"',description:"Above-base Mark Positioning. Required in Indic scripts."},{name:'"abvs"',description:"Above-base Substitutions. Required in Indic scripts."},{name:'"afrc"',description:"Alternative Fractions."},{name:'"akhn"',description:"Akhand. Required in most Indic scripts."},{name:'"blwf"',description:"Below-base Form. Required in a number of Indic scripts."},{name:'"blwm"',description:"Below-base Mark Positioning. Required in Indic scripts."},{name:'"blws"',description:"Below-base Substitutions. Required in Indic scripts."},{name:'"calt"',description:"Contextual Alternates."},{name:'"case"',description:"Case-Sensitive Forms. Applies only to European scripts; particularly prominent in Spanish-language setting."},{name:'"ccmp"',description:"Glyph Composition/Decomposition."},{name:'"cfar"',description:"Conjunct Form After Ro. Required in Khmer scripts."},{name:'"cjct"',description:"Conjunct Forms. Required in Indic scripts that show similarity to Devanagari."},{name:'"clig"',description:"Contextual Ligatures."},{name:'"cpct"',description:"Centered CJK Punctuation. Used primarily in Chinese fonts."},{name:'"cpsp"',description:"Capital Spacing. Should not be used in connecting scripts (e.g. most Arabic)."},{name:'"cswh"',description:"Contextual Swash."},{name:'"curs"',description:"Cursive Positioning. Can be used in any cursive script."},{name:'"c2pc"',description:"Petite Capitals From Capitals. Applies only to bicameral scripts."},{name:'"c2sc"',description:"Small Capitals From Capitals. Applies only to bicameral scripts."},{name:'"dist"',description:"Distances. Required in Indic scripts."},{name:'"dlig"',description:"Discretionary ligatures."},{name:'"dnom"',description:"Denominators."},{name:'"dtls"',description:"Dotless Forms. Applied to math formula layout."},{name:'"expt"',description:"Expert Forms. Applies only to Japanese."},{name:'"falt"',description:"Final Glyph on Line Alternates. Can be used in any cursive script."},{name:'"fin2"',description:"Terminal Form #2. Used only with the Syriac script."},{name:'"fin3"',description:"Terminal Form #3. Used only with the Syriac script."},{name:'"fina"',description:"Terminal Forms. Can be used in any alphabetic script."},{name:'"flac"',description:"Flattened ascent forms. Applied to math formula layout."},{name:'"frac"',description:"Fractions."},{name:'"fwid"',description:"Full Widths. Applies to any script which can use monospaced forms."},{name:'"half"',description:"Half Forms. Required in Indic scripts that show similarity to Devanagari."},{name:'"haln"',description:"Halant Forms. Required in Indic scripts."},{name:'"halt"',description:"Alternate Half Widths. Used only in CJKV fonts."},{name:'"hist"',description:"Historical Forms."},{name:'"hkna"',description:"Horizontal Kana Alternates. Applies only to fonts that support kana (hiragana and katakana)."},{name:'"hlig"',description:"Historical Ligatures."},{name:'"hngl"',description:"Hangul. Korean only."},{name:'"hojo"',description:"Hojo Kanji Forms (JIS X 0212-1990 Kanji Forms). Used only with Kanji script."},{name:'"hwid"',description:"Half Widths. Generally used only in CJKV fonts."},{name:'"init"',description:"Initial Forms. Can be used in any alphabetic script."},{name:'"isol"',description:"Isolated Forms. Can be used in any cursive script."},{name:'"ital"',description:"Italics. Applies mostly to Latin; note that many non-Latin fonts contain Latin as well."},{name:'"jalt"',description:"Justification Alternates. Can be used in any cursive script."},{name:'"jp78"',description:"JIS78 Forms. Applies only to Japanese."},{name:'"jp83"',description:"JIS83 Forms. Applies only to Japanese."},{name:'"jp90"',description:"JIS90 Forms. Applies only to Japanese."},{name:'"jp04"',description:"JIS2004 Forms. Applies only to Japanese."},{name:'"kern"',description:"Kerning."},{name:'"lfbd"',description:"Left Bounds."},{name:'"liga"',description:"Standard Ligatures."},{name:'"ljmo"',description:"Leading Jamo Forms. Required for Hangul script when Ancient Hangul writing system is supported."},{name:'"lnum"',description:"Lining Figures."},{name:'"locl"',description:"Localized Forms."},{name:'"ltra"',description:"Left-to-right glyph alternates."},{name:'"ltrm"',description:"Left-to-right mirrored forms."},{name:'"mark"',description:"Mark Positioning."},{name:'"med2"',description:"Medial Form #2. Used only with the Syriac script."},{name:'"medi"',description:"Medial Forms."},{name:'"mgrk"',description:"Mathematical Greek."},{name:'"mkmk"',description:"Mark to Mark Positioning."},{name:'"nalt"',description:"Alternate Annotation Forms."},{name:'"nlck"',description:"NLC Kanji Forms. Used only with Kanji script."},{name:'"nukt"',description:"Nukta Forms. Required in Indic scripts.."},{name:'"numr"',description:"Numerators."},{name:'"onum"',description:"Oldstyle Figures."},{name:'"opbd"',description:"Optical Bounds."},{name:'"ordn"',description:"Ordinals. Applies mostly to Latin script."},{name:'"ornm"',description:"Ornaments."},{name:'"palt"',description:"Proportional Alternate Widths. Used mostly in CJKV fonts."},{name:'"pcap"',description:"Petite Capitals."},{name:'"pkna"',description:"Proportional Kana. Generally used only in Japanese fonts."},{name:'"pnum"',description:"Proportional Figures."},{name:'"pref"',description:"Pre-base Forms. Required in Khmer and Myanmar (Burmese) scripts and southern Indic scripts that may display a pre-base form of Ra."},{name:'"pres"',description:"Pre-base Substitutions. Required in Indic scripts."},{name:'"pstf"',description:"Post-base Forms. Required in scripts of south and southeast Asia that have post-base forms for consonants eg: Gurmukhi, Malayalam, Khmer."},{name:'"psts"',description:"Post-base Substitutions."},{name:'"pwid"',description:"Proportional Widths."},{name:'"qwid"',description:"Quarter Widths. Generally used only in CJKV fonts."},{name:'"rand"',description:"Randomize."},{name:'"rclt"',description:"Required Contextual Alternates. May apply to any script, but is especially important for many styles of Arabic."},{name:'"rlig"',description:"Required Ligatures. Applies to Arabic and Syriac. May apply to some other scripts."},{name:'"rkrf"',description:"Rakar Forms. Required in Devanagari and Gujarati scripts."},{name:'"rphf"',description:"Reph Form. Required in Indic scripts. E.g. Devanagari, Kannada."},{name:'"rtbd"',description:"Right Bounds."},{name:'"rtla"',description:"Right-to-left alternates."},{name:'"rtlm"',description:"Right-to-left mirrored forms."},{name:'"ruby"',description:"Ruby Notation Forms. Applies only to Japanese."},{name:'"salt"',description:"Stylistic Alternates."},{name:'"sinf"',description:"Scientific Inferiors."},{name:'"size"',description:"Optical size."},{name:'"smcp"',description:"Small Capitals. Applies only to bicameral scripts."},{name:'"smpl"',description:"Simplified Forms. Applies only to Chinese and Japanese."},{name:'"ssty"',description:"Math script style alternates."},{name:'"stch"',description:"Stretching Glyph Decomposition."},{name:'"subs"',description:"Subscript."},{name:'"sups"',description:"Superscript."},{name:'"swsh"',description:"Swash. Does not apply to ideographic scripts."},{name:'"titl"',description:"Titling."},{name:'"tjmo"',description:"Trailing Jamo Forms. Required for Hangul script when Ancient Hangul writing system is supported."},{name:'"tnam"',description:"Traditional Name Forms. Applies only to Japanese."},{name:'"tnum"',description:"Tabular Figures."},{name:'"trad"',description:"Traditional Forms. Applies only to Chinese and Japanese."},{name:'"twid"',description:"Third Widths. Generally used only in CJKV fonts."},{name:'"unic"',description:"Unicase."},{name:'"valt"',description:"Alternate Vertical Metrics. Applies only to scripts with vertical writing modes."},{name:'"vatu"',description:"Vattu Variants. Used for Indic scripts. E.g. Devanagari."},{name:'"vert"',description:"Vertical Alternates. Applies only to scripts with vertical writing modes."},{name:'"vhal"',description:"Alternate Vertical Half Metrics. Used only in CJKV fonts."},{name:'"vjmo"',description:"Vowel Jamo Forms. Required for Hangul script when Ancient Hangul writing system is supported."},{name:'"vkna"',description:"Vertical Kana Alternates. Applies only to fonts that support kana (hiragana and katakana)."},{name:'"vkrn"',description:"Vertical Kerning."},{name:'"vpal"',description:"Proportional Alternate Vertical Metrics. Used mostly in CJKV fonts."},{name:'"vrt2"',description:"Vertical Alternates and Rotation. Applies only to scripts with vertical writing modes."},{name:'"zero"',description:"Slashed Zero."},{name:"normal",description:"No change in glyph substitution or positioning occurs."},{name:"off",description:"Disable feature."},{name:"on",description:"Enable feature."}],atRule:"@font-face",syntax:"normal | <feature-tag-value>#",relevance:57,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-feature-settings"}],description:"Provides low-level control over OpenType font features. It is intended as a way of providing access to font features that are not widely used but are needed for a particular use case.",restrictions:["string","integer"]},{name:"font-kerning",browsers:["E79","FF32","S9","C33","O20"],values:[{name:"auto",description:"Specifies that kerning is applied at the discretion of the user agent."},{name:"none",description:"Specifies that kerning is not applied."},{name:"normal",description:"Specifies that kerning is applied."}],syntax:"auto | normal | none",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-kerning"}],description:"Kerning is the contextual adjustment of inter-glyph spacing. This property controls metric kerning, kerning that utilizes adjustment data contained in the font.",restrictions:["enum"]},{name:"font-language-override",browsers:["FF34"],values:[{name:"normal",description:"Implies that when rendering with OpenType fonts the language of the document is used to infer the OpenType language system, used to select language specific features when rendering."}],syntax:"normal | <string>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-language-override"}],description:"The value of 'normal' implies that when rendering with OpenType fonts the language of the document is used to infer the OpenType language system, used to select language specific features when rendering.",restrictions:["string"]},{name:"font-size",browsers:["E12","FF1","S1","C1","IE5.5","O7"],values:[{name:"large"},{name:"larger"},{name:"medium"},{name:"small"},{name:"smaller"},{name:"x-large"},{name:"x-small"},{name:"xx-large"},{name:"xx-small"}],syntax:"<absolute-size> | <relative-size> | <length-percentage>",relevance:94,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-size"}],description:"Indicates the desired height of glyphs from the font. For scalable fonts, the font-size is a scale factor applied to the EM unit of the font. (Note that certain glyphs may bleed outside their EM box.) For non-scalable fonts, the font-size is converted into absolute units and matched against the declared font-size of the font, using the same absolute coordinate space for both of the matched values.",restrictions:["length","percentage"]},{name:"font-size-adjust",browsers:["FF3","S16.4"],values:[{name:"none",description:"Do not preserve the font's x-height."}],syntax:"none | [ ex-height | cap-height | ch-width | ic-width | ic-height ]? [ from-font | <number> ]",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-size-adjust"}],description:"Preserves the readability of text when font fallback occurs by adjusting the font-size so that the x-height is the same regardless of the font used.",restrictions:["number"]},{name:"font-stretch",browsers:["E12","FF9","S11","C60","IE9","O47"],values:[{name:"condensed"},{name:"expanded"},{name:"extra-condensed"},{name:"extra-expanded"},{name:"narrower",browsers:["E12","FF9","S11","C60","IE9","O47"],description:"Indicates a narrower value relative to the width of the parent element."},{name:"normal"},{name:"semi-condensed"},{name:"semi-expanded"},{name:"ultra-condensed"},{name:"ultra-expanded"},{name:"wider",browsers:["E12","FF9","S11","C60","IE9","O47"],description:"Indicates a wider value relative to the width of the parent element."}],atRule:"@font-face",syntax:"<font-stretch-absolute>{1,2}",relevance:56,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-stretch"}],description:"Selects a normal, condensed, or expanded face from a font family.",restrictions:["enum"]},{name:"font-style",browsers:["E12","FF1","S1","C1","IE4","O7"],values:[{name:"italic",description:"Selects a font that is labeled as an 'italic' face, or an 'oblique' face if one is not"},{name:"normal",description:"Selects a face that is classified as 'normal'."},{name:"oblique",description:"Selects a font that is labeled as an 'oblique' face, or an 'italic' face if one is not."}],atRule:"@font-face",syntax:"normal | italic | oblique <angle>{0,2}",relevance:89,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-style"}],description:"Allows italic or oblique faces to be selected. Italic forms are generally cursive in nature while oblique faces are typically sloped versions of the regular face.",restrictions:["enum"]},{name:"font-synthesis",browsers:["E97","FF34","S9","C97","O83"],values:[{name:"none",description:"Disallow all synthetic faces."},{name:"style",description:"Allow synthetic italic faces."},{name:"weight",description:"Allow synthetic bold faces."}],syntax:"none | [ weight || style || small-caps || position]",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-synthesis"}],description:"Controls whether user agents are allowed to synthesize bold or oblique font faces when a font family lacks bold or italic faces.",restrictions:["enum"]},{name:"font-variant",browsers:["E12","FF1","S1","C1","IE4","O3.5"],values:[{name:"normal",description:"Specifies a face that is not labeled as a small-caps font."},{name:"small-caps",description:"Specifies a font that is labeled as a small-caps font. If a genuine small-caps font is not available, user agents should simulate a small-caps font."}],syntax:"normal | none | [ <common-lig-values> || <discretionary-lig-values> || <historical-lig-values> || <contextual-alt-values> || stylistic( <feature-value-name> ) || historical-forms || styleset( <feature-value-name># ) || character-variant( <feature-value-name># ) || swash( <feature-value-name> ) || ornaments( <feature-value-name> ) || annotation( <feature-value-name> ) || [ small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps ] || <numeric-figure-values> || <numeric-spacing-values> || <numeric-fraction-values> || ordinal || slashed-zero || <east-asian-variant-values> || <east-asian-width-values> || ruby ]",relevance:64,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-variant"}],description:"Specifies variant representations of the font",restrictions:["enum"]},{name:"font-variant-alternates",browsers:["E111","FF34","S9.1","C111","O97"],values:[{name:"annotation()",description:"Enables display of alternate annotation forms."},{name:"character-variant()",description:"Enables display of specific character variants."},{name:"historical-forms",description:"Enables display of historical forms."},{name:"normal",description:"None of the features are enabled."},{name:"ornaments()",description:"Enables replacement of default glyphs with ornaments, if provided in the font."},{name:"styleset()",description:"Enables display with stylistic sets."},{name:"stylistic()",description:"Enables display of stylistic alternates."},{name:"swash()",description:"Enables display of swash glyphs."}],syntax:"normal | [ stylistic( <feature-value-name> ) || historical-forms || styleset( <feature-value-name># ) || character-variant( <feature-value-name># ) || swash( <feature-value-name> ) || ornaments( <feature-value-name> ) || annotation( <feature-value-name> ) ]",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-variant-alternates"}],description:"For any given character, fonts can provide a variety of alternate glyphs in addition to the default glyph for that character. This property provides control over the selection of these alternate glyphs.",restrictions:["enum"]},{name:"font-variant-caps",browsers:["E79","FF34","S9.1","C52","O39"],values:[{name:"all-petite-caps",description:"Enables display of petite capitals for both upper and lowercase letters."},{name:"all-small-caps",description:"Enables display of small capitals for both upper and lowercase letters."},{name:"normal",description:"None of the features are enabled."},{name:"petite-caps",description:"Enables display of petite capitals."},{name:"small-caps",description:"Enables display of small capitals. Small-caps glyphs typically use the form of uppercase letters but are reduced to the size of lowercase letters."},{name:"titling-caps",description:"Enables display of titling capitals."},{name:"unicase",description:"Enables display of mixture of small capitals for uppercase letters with normal lowercase letters."}],syntax:"normal | small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-variant-caps"}],description:"Specifies control over capitalized forms.",restrictions:["enum"]},{name:"font-variant-east-asian",browsers:["E79","FF34","S9.1","C63","O50"],values:[{name:"full-width",description:"Enables rendering of full-width variants."},{name:"jis04",description:"Enables rendering of JIS04 forms."},{name:"jis78",description:"Enables rendering of JIS78 forms."},{name:"jis83",description:"Enables rendering of JIS83 forms."},{name:"jis90",description:"Enables rendering of JIS90 forms."},{name:"normal",description:"None of the features are enabled."},{name:"proportional-width",description:"Enables rendering of proportionally-spaced variants."},{name:"ruby",description:"Enables display of ruby variant glyphs."},{name:"simplified",description:"Enables rendering of simplified forms."},{name:"traditional",description:"Enables rendering of traditional forms."}],syntax:"normal | [ <east-asian-variant-values> || <east-asian-width-values> || ruby ]",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-variant-east-asian"}],description:"Allows control of glyph substitute and positioning in East Asian text.",restrictions:["enum"]},{name:"font-variant-ligatures",browsers:["E79","FF34","S9.1","C34","O21"],values:[{name:"additional-ligatures",description:"Enables display of additional ligatures."},{name:"common-ligatures",description:"Enables display of common ligatures."},{name:"contextual",browsers:["E79","FF34","S9.1","C34","O21"],description:"Enables display of contextual alternates."},{name:"discretionary-ligatures",description:"Enables display of discretionary ligatures."},{name:"historical-ligatures",description:"Enables display of historical ligatures."},{name:"no-additional-ligatures",description:"Disables display of additional ligatures."},{name:"no-common-ligatures",description:"Disables display of common ligatures."},{name:"no-contextual",browsers:["E79","FF34","S9.1","C34","O21"],description:"Disables display of contextual alternates."},{name:"no-discretionary-ligatures",description:"Disables display of discretionary ligatures."},{name:"no-historical-ligatures",description:"Disables display of historical ligatures."},{name:"none",browsers:["E79","FF34","S9.1","C34","O21"],description:"Disables all ligatures."},{name:"normal",description:"Implies that the defaults set by the font are used."}],syntax:"normal | none | [ <common-lig-values> || <discretionary-lig-values> || <historical-lig-values> || <contextual-alt-values> ]",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-variant-ligatures"}],description:"Specifies control over which ligatures are enabled or disabled. A value of 'normal' implies that the defaults set by the font are used.",restrictions:["enum"]},{name:"font-variant-numeric",browsers:["E79","FF34","S9.1","C52","O39"],values:[{name:"diagonal-fractions",description:"Enables display of lining diagonal fractions."},{name:"lining-nums",description:"Enables display of lining numerals."},{name:"normal",description:"None of the features are enabled."},{name:"oldstyle-nums",description:"Enables display of old-style numerals."},{name:"ordinal",description:"Enables display of letter forms used with ordinal numbers."},{name:"proportional-nums",description:"Enables display of proportional numerals."},{name:"slashed-zero",description:"Enables display of slashed zeros."},{name:"stacked-fractions",description:"Enables display of lining stacked fractions."},{name:"tabular-nums",description:"Enables display of tabular numerals."}],syntax:"normal | [ <numeric-figure-values> || <numeric-spacing-values> || <numeric-fraction-values> || ordinal || slashed-zero ]",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-variant-numeric"}],description:"Specifies control over numerical forms.",restrictions:["enum"]},{name:"font-variant-position",browsers:["E117","FF34","S9.1","C117","O103"],values:[{name:"normal",description:"None of the features are enabled."},{name:"sub",description:"Enables display of subscript variants (OpenType feature: subs)."},{name:"super",description:"Enables display of superscript variants (OpenType feature: sups)."}],syntax:"normal | sub | super",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-variant-position"}],description:"Specifies the vertical position",restrictions:["enum"]},{name:"font-weight",browsers:["E12","FF1","S1","C2","IE3","O3.5"],values:[{name:"100",description:"Thin"},{name:"200",description:"Extra Light (Ultra Light)"},{name:"300",description:"Light"},{name:"400",description:"Normal"},{name:"500",description:"Medium"},{name:"600",description:"Semi Bold (Demi Bold)"},{name:"700",description:"Bold"},{name:"800",description:"Extra Bold (Ultra Bold)"},{name:"900",description:"Black (Heavy)"},{name:"bold",description:"Same as 700"},{name:"bolder",description:"Specifies the weight of the face bolder than the inherited value."},{name:"lighter",description:"Specifies the weight of the face lighter than the inherited value."},{name:"normal",description:"Same as 400"}],atRule:"@font-face",syntax:"<font-weight-absolute>{1,2}",relevance:93,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-weight"}],description:"Specifies weight of glyphs in the font, their degree of blackness or stroke thickness.",restrictions:["enum"]},{name:"glyph-orientation-horizontal",relevance:50,description:"Controls glyph orientation when the inline-progression-direction is horizontal.",restrictions:["angle","number"]},{name:"glyph-orientation-vertical",browsers:["S13.1"],values:[{name:"auto",description:"Sets the orientation based on the fullwidth or non-fullwidth characters and the most common orientation."}],relevance:50,description:"Controls glyph orientation when the inline-progression-direction is vertical.",restrictions:["angle","number","enum"]},{name:"grid-area",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"auto",description:"The property contributes nothing to the grid item's placement, indicating auto-placement, an automatic span, or a default span of one."},{name:"span",description:"Contributes a grid span to the grid item's placement such that the corresponding edge of the grid item's grid area is N lines from its opposite edge."}],syntax:"<grid-line> [ / <grid-line> ]{0,3}",relevance:57,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-area"}],description:"Determine a grid item's size and location within the grid by contributing a line, a span, or nothing (automatic) to its grid placement. Shorthand for 'grid-row-start', 'grid-column-start', 'grid-row-end', and 'grid-column-end'.",restrictions:["identifier","integer"]},{name:"grid",browsers:["E16","FF52","S10.1","C57","O44"],syntax:"<'grid-template'> | <'grid-template-rows'> / [ auto-flow && dense? ] <'grid-auto-columns'>? | [ auto-flow && dense? ] <'grid-auto-rows'>? / <'grid-template-columns'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid"}],description:"The grid CSS property is a shorthand property that sets all of the explicit grid properties ('grid-template-rows', 'grid-template-columns', and 'grid-template-areas'), and all the implicit grid properties ('grid-auto-rows', 'grid-auto-columns', and 'grid-auto-flow'), in a single declaration.",restrictions:["identifier","length","percentage","string","enum"]},{name:"grid-auto-columns",browsers:["E16","FF70","S10.1","C57","IE10","O44"],values:[{name:"min-content",description:"Represents the largest min-content contribution of the grid items occupying the grid track."},{name:"max-content",description:"Represents the largest max-content contribution of the grid items occupying the grid track."},{name:"auto",description:"As a maximum, identical to 'max-content'. As a minimum, represents the largest minimum size (as specified by min-width/min-height) of the grid items occupying the grid track."},{name:"minmax()",description:"Defines a size range greater than or equal to min and less than or equal to max."}],syntax:"<track-size>+",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-auto-columns"}],description:"Specifies the size of implicitly created columns.",restrictions:["length","percentage"]},{name:"grid-auto-flow",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"row",description:"The auto-placement algorithm places items by filling each row in turn, adding new rows as necessary."},{name:"column",description:"The auto-placement algorithm places items by filling each column in turn, adding new columns as necessary."},{name:"dense",description:'If specified, the auto-placement algorithm uses a "dense" packing algorithm, which attempts to fill in holes earlier in the grid if smaller items come up later.'}],syntax:"[ row | column ] || dense",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-auto-flow"}],description:"Controls how the auto-placement algorithm works, specifying exactly how auto-placed items get flowed into the grid.",restrictions:["enum"]},{name:"grid-auto-rows",browsers:["E16","FF70","S10.1","C57","IE10","O44"],values:[{name:"min-content",description:"Represents the largest min-content contribution of the grid items occupying the grid track."},{name:"max-content",description:"Represents the largest max-content contribution of the grid items occupying the grid track."},{name:"auto",description:"As a maximum, identical to 'max-content'. As a minimum, represents the largest minimum size (as specified by min-width/min-height) of the grid items occupying the grid track."},{name:"minmax()",description:"Defines a size range greater than or equal to min and less than or equal to max."}],syntax:"<track-size>+",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-auto-rows"}],description:"Specifies the size of implicitly created rows.",restrictions:["length","percentage"]},{name:"grid-column",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"auto",description:"The property contributes nothing to the grid item's placement, indicating auto-placement, an automatic span, or a default span of one."},{name:"span",description:"Contributes a grid span to the grid item's placement such that the corresponding edge of the grid item's grid area is N lines from its opposite edge."}],syntax:"<grid-line> [ / <grid-line> ]?",relevance:56,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-column"}],description:"Shorthand for 'grid-column-start' and 'grid-column-end'.",restrictions:["identifier","integer","enum"]},{name:"grid-column-end",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"auto",description:"The property contributes nothing to the grid item's placement, indicating auto-placement, an automatic span, or a default span of one."},{name:"span",description:"Contributes a grid span to the grid item's placement such that the corresponding edge of the grid item's grid area is N lines from its opposite edge."}],syntax:"<grid-line>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-column-end"}],description:"Determine a grid item's size and location within the grid by contributing a line, a span, or nothing (automatic) to its grid placement.",restrictions:["identifier","integer","enum"]},{name:"grid-column-gap",browsers:["FF52","C57","S10.1","O44"],status:"obsolete",syntax:"<length-percentage>",relevance:4,description:"Specifies the gutters between grid columns. Replaced by 'column-gap' property.",restrictions:["length"]},{name:"grid-column-start",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"auto",description:"The property contributes nothing to the grid item's placement, indicating auto-placement, an automatic span, or a default span of one."},{name:"span",description:"Contributes a grid span to the grid item's placement such that the corresponding edge of the grid item's grid area is N lines from its opposite edge."}],syntax:"<grid-line>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-column-start"}],description:"Determine a grid item's size and location within the grid by contributing a line, a span, or nothing (automatic) to its grid placement.",restrictions:["identifier","integer","enum"]},{name:"grid-gap",browsers:["FF52","C57","S10.1","O44"],status:"obsolete",syntax:"<'grid-row-gap'> <'grid-column-gap'>?",relevance:5,description:"Shorthand that specifies the gutters between grid columns and grid rows in one declaration. Replaced by 'gap' property.",restrictions:["length"]},{name:"grid-row",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"auto",description:"The property contributes nothing to the grid item's placement, indicating auto-placement, an automatic span, or a default span of one."},{name:"span",description:"Contributes a grid span to the grid item's placement such that the corresponding edge of the grid item's grid area is N lines from its opposite edge."}],syntax:"<grid-line> [ / <grid-line> ]?",relevance:54,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-row"}],description:"Shorthand for 'grid-row-start' and 'grid-row-end'.",restrictions:["identifier","integer","enum"]},{name:"grid-row-end",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"auto",description:"The property contributes nothing to the grid item's placement, indicating auto-placement, an automatic span, or a default span of one."},{name:"span",description:"Contributes a grid span to the grid item's placement such that the corresponding edge of the grid item's grid area is N lines from its opposite edge."}],syntax:"<grid-line>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-row-end"}],description:"Determine a grid item's size and location within the grid by contributing a line, a span, or nothing (automatic) to its grid placement.",restrictions:["identifier","integer","enum"]},{name:"grid-row-gap",browsers:["FF52","C57","S10.1","O44"],status:"obsolete",syntax:"<length-percentage>",relevance:2,description:"Specifies the gutters between grid rows. Replaced by 'row-gap' property.",restrictions:["length"]},{name:"grid-row-start",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"auto",description:"The property contributes nothing to the grid item's placement, indicating auto-placement, an automatic span, or a default span of one."},{name:"span",description:"Contributes a grid span to the grid item's placement such that the corresponding edge of the grid item's grid area is N lines from its opposite edge."}],syntax:"<grid-line>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-row-start"}],description:"Determine a grid item's size and location within the grid by contributing a line, a span, or nothing (automatic) to its grid placement.",restrictions:["identifier","integer","enum"]},{name:"grid-template",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"none",description:"Sets all three properties to their initial values."},{name:"min-content",description:"Represents the largest min-content contribution of the grid items occupying the grid track."},{name:"max-content",description:"Represents the largest max-content contribution of the grid items occupying the grid track."},{name:"auto",description:"As a maximum, identical to 'max-content'. As a minimum, represents the largest minimum size (as specified by min-width/min-height) of the grid items occupying the grid track."},{name:"subgrid",description:"Sets 'grid-template-rows' and 'grid-template-columns' to 'subgrid', and 'grid-template-areas' to its initial value."},{name:"minmax()",description:"Defines a size range greater than or equal to min and less than or equal to max."},{name:"repeat()",description:"Represents a repeated fragment of the track list, allowing a large number of columns or rows that exhibit a recurring pattern to be written in a more compact form."}],syntax:"none | [ <'grid-template-rows'> / <'grid-template-columns'> ] | [ <line-names>? <string> <track-size>? <line-names>? ]+ [ / <explicit-track-list> ]?",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-template"}],description:"Shorthand for setting grid-template-columns, grid-template-rows, and grid-template-areas in a single declaration.",restrictions:["identifier","length","percentage","string","enum"]},{name:"grid-template-areas",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"none",description:"The grid container doesn't define any named grid areas."}],syntax:"none | <string>+",relevance:54,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-template-areas"}],description:"Specifies named grid areas, which are not associated with any particular grid item, but can be referenced from the grid-placement properties.",restrictions:["string"]},{name:"grid-template-columns",browsers:["E16","FF52","S10.1","C57","IE10","O44"],values:[{name:"none",description:"There is no explicit grid; any rows/columns will be implicitly generated."},{name:"min-content",description:"Represents the largest min-content contribution of the grid items occupying the grid track."},{name:"max-content",description:"Represents the largest max-content contribution of the grid items occupying the grid track."},{name:"auto",description:"As a maximum, identical to 'max-content'. As a minimum, represents the largest minimum size (as specified by min-width/min-height) of the grid items occupying the grid track."},{name:"subgrid",description:"Indicates that the grid will align to its parent grid in that axis."},{name:"minmax()",description:"Defines a size range greater than or equal to min and less than or equal to max."},{name:"repeat()",description:"Represents a repeated fragment of the track list, allowing a large number of columns or rows that exhibit a recurring pattern to be written in a more compact form."}],syntax:"none | <track-list> | <auto-track-list> | subgrid <line-name-list>?",relevance:64,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-template-columns"}],description:"specifies, as a space-separated track list, the line names and track sizing functions of the grid.",restrictions:["identifier","length","percentage","enum"]},{name:"grid-template-rows",browsers:["E16","FF52","S10.1","C57","IE10","O44"],values:[{name:"none",description:"There is no explicit grid; any rows/columns will be implicitly generated."},{name:"min-content",description:"Represents the largest min-content contribution of the grid items occupying the grid track."},{name:"max-content",description:"Represents the largest max-content contribution of the grid items occupying the grid track."},{name:"auto",description:"As a maximum, identical to 'max-content'. As a minimum, represents the largest minimum size (as specified by min-width/min-height) of the grid items occupying the grid track."},{name:"subgrid",description:"Indicates that the grid will align to its parent grid in that axis."},{name:"minmax()",description:"Defines a size range greater than or equal to min and less than or equal to max."},{name:"repeat()",description:"Represents a repeated fragment of the track list, allowing a large number of columns or rows that exhibit a recurring pattern to be written in a more compact form."}],syntax:"none | <track-list> | <auto-track-list> | subgrid <line-name-list>?",relevance:57,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-template-rows"}],description:"specifies, as a space-separated track list, the line names and track sizing functions of the grid.",restrictions:["identifier","length","percentage","string","enum"]},{name:"height",browsers:["E12","FF1","S1","C1","IE4","O7"],values:[{name:"auto",description:"The height depends on the values of other properties."},{name:"fit-content",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"Use the fit-content inline size or fit-content block size, as appropriate to the writing mode."},{name:"max-content",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"Use the max-content inline size or max-content block size, as appropriate to the writing mode."},{name:"min-content",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"Use the min-content inline size or min-content block size, as appropriate to the writing mode."}],syntax:"auto | <length> | <percentage> | min-content | max-content | fit-content | fit-content(<length-percentage>)",relevance:96,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/height"}],description:"Specifies the height of the content area, padding area or border area (depending on 'box-sizing') of certain boxes.",restrictions:["length","percentage"]},{name:"hyphens",browsers:["E79","FF43","S17","C55","IE10","O42"],values:[{name:"auto",description:"Conditional hyphenation characters inside a word, if present, take priority over automatic resources when determining hyphenation points within the word."},{name:"manual",description:"Words are only broken at line breaks where there are characters inside the word that suggest line break opportunities"},{name:"none",description:"Words are not broken at line breaks, even if characters inside the word suggest line break points."}],syntax:"none | manual | auto",relevance:56,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/hyphens"}],description:"Controls whether hyphenation is allowed to create more break opportunities within a line of text.",restrictions:["enum"]},{name:"image-orientation",browsers:["E81","FF26","S13.1","C81","O67"],values:[{name:"flip",description:"After rotating by the precededing angle, the image is flipped horizontally. Defaults to 0deg if the angle is ommitted."},{name:"from-image",description:"If the image has an orientation specified in its metadata, such as EXIF, this value computes to the angle that the metadata specifies is necessary to correctly orient the image."}],syntax:"from-image | <angle> | [ <angle>? flip ]",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/image-orientation"}],description:"Specifies an orthogonal rotation to be applied to an image before it is laid out.",restrictions:["angle"]},{name:"image-rendering",browsers:["E79","FF3.6","S6","C13","O15"],values:[{name:"auto",description:"The image should be scaled with an algorithm that maximizes the appearance of the image."},{name:"crisp-edges",description:"The image must be scaled with an algorithm that preserves contrast and edges in the image, and which does not smooth colors or introduce blur to the image in the process."},{name:"-moz-crisp-edges",browsers:["E79","FF3.6","S6","C13","O15"]},{name:"optimizeQuality",description:"Deprecated."},{name:"optimizeSpeed",description:"Deprecated."},{name:"pixelated",description:"When scaling the image up, the 'nearest neighbor' or similar algorithm must be used, so that the image appears to be simply composed of very large pixels."}],syntax:"auto | crisp-edges | pixelated",relevance:54,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/image-rendering"}],description:"Provides a hint to the user-agent about what aspects of an image are most important to preserve when the image is scaled, to aid the user-agent in the choice of an appropriate scaling algorithm.",restrictions:["enum"]},{name:"ime-mode",browsers:["E12","FF3","IE5"],values:[{name:"active",description:"The input method editor is initially active; text entry is performed using it unless the user specifically dismisses it."},{name:"auto",description:"No change is made to the current input method editor state. This is the default."},{name:"disabled",description:"The input method editor is disabled and may not be activated by the user."},{name:"inactive",description:"The input method editor is initially inactive, but the user may activate it if they wish."},{name:"normal",description:"The IME state should be normal; this value can be used in a user style sheet to override the page setting."}],status:"obsolete",syntax:"auto | normal | active | inactive | disabled",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/ime-mode"}],description:"Controls the state of the input method editor for text fields.",restrictions:["enum"]},{name:"inline-size",browsers:["E79","FF41","S12.1","C57","O44"],values:[{name:"auto",description:"Depends on the values of other properties."}],syntax:"<'width'>",relevance:54,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/inline-size"}],description:"Size of an element in the direction specified by 'writing-mode'.",restrictions:["length","percentage"]},{name:"isolation",browsers:["E79","FF36","S8","C41","O30"],values:[{name:"auto",description:"Elements are not isolated unless an operation is applied that causes the creation of a stacking context."},{name:"isolate",description:"In CSS will turn the element into a stacking context."}],syntax:"auto | isolate",relevance:54,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/isolation"}],description:"In CSS setting to 'isolate' will turn the element into a stacking context. In SVG, it defines whether an element is isolated or not.",restrictions:["enum"]},{name:"justify-content",browsers:["E12","FF20","S9","C29","IE11","O12.1"],values:[{name:"center",description:"Flex items are packed toward the center of the line."},{name:"start",description:"The items are packed flush to each other toward the start edge of the alignment container in the main axis."},{name:"end",description:"The items are packed flush to each other toward the end edge of the alignment container in the main axis."},{name:"left",description:"The items are packed flush to each other toward the left edge of the alignment container in the main axis."},{name:"right",description:"The items are packed flush to each other toward the right edge of the alignment container in the main axis."},{name:"safe",description:"If the size of the item overflows the alignment container, the item is instead aligned as if the alignment mode were start."},{name:"unsafe",description:"Regardless of the relative sizes of the item and alignment container, the given alignment value is honored."},{name:"stretch",description:"If the combined size of the alignment subjects is less than the size of the alignment container, any auto-sized alignment subjects have their size increased equally (not proportionally), while still respecting the constraints imposed by max-height/max-width (or equivalent functionality), so that the combined size exactly fills the alignment container."},{name:"space-evenly",description:"The items are evenly distributed within the alignment container along the main axis."},{name:"flex-end",description:"Flex items are packed toward the end of the line."},{name:"flex-start",description:"Flex items are packed toward the start of the line."},{name:"space-around",description:"Flex items are evenly distributed in the line, with half-size spaces on either end."},{name:"space-between",description:"Flex items are evenly distributed in the line."},{name:"baseline",description:"Specifies participation in first-baseline alignment."},{name:"first baseline",description:"Specifies participation in first-baseline alignment."},{name:"last baseline",description:"Specifies participation in last-baseline alignment."}],syntax:"normal | <content-distribution> | <overflow-position>? [ <content-position> | left | right ]",relevance:87,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/justify-content"}],description:"Aligns flex items along the main axis of the current line of the flex container.",restrictions:["enum"]},{name:"kerning",values:[{name:"auto",description:"Indicates that the user agent should adjust inter-glyph spacing based on kerning tables that are included in the font that will be used."}],relevance:50,description:"Indicates whether the user agent should adjust inter-glyph spacing based on kerning tables that are included in the relevant font or instead disable auto-kerning and set inter-character spacing to a specific length.",restrictions:["length","enum"]},{name:"left",browsers:["E12","FF1","S1","C1","IE5.5","O5"],values:[{name:"auto",description:"For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well"}],syntax:"<length> | <percentage> | auto",relevance:94,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/left"}],description:"Specifies how far an absolutely positioned box's left margin edge is offset to the right of the left edge of the box's 'containing block'.",restrictions:["length","percentage"]},{name:"letter-spacing",browsers:["E12","FF1","S1","C1","IE4","O3.5"],values:[{name:"normal",description:"The spacing is the normal spacing for the current font. It is typically zero-length."}],syntax:"normal | <length>",relevance:81,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/letter-spacing"}],description:"Specifies the minimum, maximum, and optimal spacing between grapheme clusters.",restrictions:["length"]},{name:"lighting-color",browsers:["E12","FF3","S6","C5","IE","O15"],relevance:50,description:"Defines the color of the light source for filter primitives 'feDiffuseLighting' and 'feSpecularLighting'.",restrictions:["color"]},{name:"line-break",browsers:["E14","FF69","S11","C58","IE5.5","O45"],values:[{name:"auto",description:"The UA determines the set of line-breaking restrictions to use for CJK scripts, and it may vary the restrictions based on the length of the line; e.g., use a less restrictive set of line-break rules for short lines."},{name:"loose",description:"Breaks text using the least restrictive set of line-breaking rules. Typically used for short lines, such as in newspapers."},{name:"normal",description:"Breaks text using the most common set of line-breaking rules."},{name:"strict",description:"Breaks CJK scripts using a more restrictive set of line-breaking rules than 'normal'."},{name:"anywhere",description:"There is a soft wrap opportunity around every typographic character unit, including around any punctuation character or preserved white spaces, or in the middle of words, disregarding any prohibition against line breaks, even those introduced by characters with the GL, WJ, or ZWJ line breaking classes or mandated by the word-break property."}],syntax:"auto | loose | normal | strict | anywhere",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/line-break"}],description:"Specifies what set of line breaking restrictions are in effect within the element.",restrictions:["enum"]},{name:"line-height",browsers:["E12","FF1","S1","C1","IE4","O7"],values:[{name:"normal",description:"Tells user agents to set the computed value to a 'reasonable' value based on the font size of the element."}],syntax:"normal | <number> | <length> | <percentage>",relevance:92,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/line-height"}],description:"Determines the block-progression dimension of the text content area of an inline box.",restrictions:["number","length","percentage"]},{name:"list-style",browsers:["E12","FF1","S1","C1","IE4","O7"],values:[{name:"armenian"},{name:"circle",description:"A hollow circle."},{name:"decimal"},{name:"decimal-leading-zero"},{name:"disc",description:"A filled circle."},{name:"georgian"},{name:"inside",description:"The marker box is outside the principal block box, as described in the section on the ::marker pseudo-element below."},{name:"lower-alpha"},{name:"lower-greek"},{name:"lower-latin"},{name:"lower-roman"},{name:"none"},{name:"outside",description:"The ::marker pseudo-element is an inline element placed immediately before all ::before pseudo-elements in the principal block box, after which the element's content flows."},{name:"square",description:"A filled square."},{name:"symbols()",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"Allows a counter style to be defined inline."},{name:"upper-alpha"},{name:"upper-latin"},{name:"upper-roman"},{name:"url()"}],syntax:"<'list-style-type'> || <'list-style-position'> || <'list-style-image'>",relevance:83,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/list-style"}],description:"Shorthand for setting 'list-style-type', 'list-style-position' and 'list-style-image'",restrictions:["image","enum","url"]},{name:"list-style-image",browsers:["E12","FF1","S1","C1","IE4","O7"],values:[{name:"none",description:"The default contents of the of the list item's marker are given by 'list-style-type' instead."}],syntax:"<image> | none",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/list-style-image"}],description:"Sets the image that will be used as the list item marker. When the image is available, it will replace the marker set with the 'list-style-type' marker.",restrictions:["image"]},{name:"list-style-position",browsers:["E12","FF1","S1","C1","IE4","O3.5"],values:[{name:"inside",description:"The marker box is outside the principal block box, as described in the section on the ::marker pseudo-element below."},{name:"outside",description:"The ::marker pseudo-element is an inline element placed immediately before all ::before pseudo-elements in the principal block box, after which the element's content flows."}],syntax:"inside | outside",relevance:55,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/list-style-position"}],description:"Specifies the position of the '::marker' pseudo-element's box in the list item.",restrictions:["enum"]},{name:"list-style-type",browsers:["E12","FF1","S1","C1","IE4","O3.5"],values:[{name:"armenian",description:"Traditional uppercase Armenian numbering."},{name:"circle",description:"A hollow circle."},{name:"decimal",description:"Western decimal numbers."},{name:"decimal-leading-zero",description:"Decimal numbers padded by initial zeros."},{name:"disc",description:"A filled circle."},{name:"georgian",description:"Traditional Georgian numbering."},{name:"lower-alpha",description:"Lowercase ASCII letters."},{name:"lower-greek",description:"Lowercase classical Greek."},{name:"lower-latin",description:"Lowercase ASCII letters."},{name:"lower-roman",description:"Lowercase ASCII Roman numerals."},{name:"none",description:"No marker"},{name:"square",description:"A filled square."},{name:"symbols()",browsers:["E12","FF1","S1","C1","IE4","O3.5"],description:"Allows a counter style to be defined inline."},{name:"upper-alpha",description:"Uppercase ASCII letters."},{name:"upper-latin",description:"Uppercase ASCII letters."},{name:"upper-roman",description:"Uppercase ASCII Roman numerals."}],syntax:"<counter-style> | <string> | none",relevance:73,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/list-style-type"}],description:"Used to construct the default contents of a list item's marker",restrictions:["enum","string"]},{name:"margin",browsers:["E12","FF1","S1","C1","IE3","O3.5"],values:[{name:"auto"}],syntax:"[ <length> | <percentage> | auto ]{1,4}",relevance:95,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin"}],description:"Shorthand property to set values for the thickness of the margin area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. Negative values for margin properties are allowed, but there may be implementation-specific limits.",restrictions:["length","percentage"]},{name:"margin-block-end",browsers:["E79","FF41","S12.1","C69","O56"],values:[{name:"auto"}],syntax:"<'margin-left'>",relevance:55,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-block-end"}],description:"Logical 'margin-bottom'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"margin-block-start",browsers:["E79","FF41","S12.1","C69","O56"],values:[{name:"auto"}],syntax:"<'margin-left'>",relevance:56,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-block-start"}],description:"Logical 'margin-top'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"margin-bottom",browsers:["E12","FF1","S1","C1","IE3","O3.5"],values:[{name:"auto"}],syntax:"<length> | <percentage> | auto",relevance:91,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-bottom"}],description:"Shorthand property to set values for the thickness of the margin area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. Negative values for margin properties are allowed, but there may be implementation-specific limits..",restrictions:["length","percentage"]},{name:"margin-inline-end",browsers:["E79","FF41","S12.1","C69","O56"],values:[{name:"auto"}],syntax:"<'margin-left'>",relevance:58,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-inline-end"}],description:"Logical 'margin-right'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"margin-inline-start",browsers:["E79","FF41","S12.1","C69","O56"],values:[{name:"auto"}],syntax:"<'margin-left'>",relevance:59,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-inline-start"}],description:"Logical 'margin-left'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"margin-left",browsers:["E12","FF1","S1","C1","IE3","O3.5"],values:[{name:"auto"}],syntax:"<length> | <percentage> | auto",relevance:91,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-left"}],description:"Shorthand property to set values for the thickness of the margin area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. Negative values for margin properties are allowed, but there may be implementation-specific limits..",restrictions:["length","percentage"]},{name:"margin-right",browsers:["E12","FF1","S1","C1","IE3","O3.5"],values:[{name:"auto"}],syntax:"<length> | <percentage> | auto",relevance:91,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-right"}],description:"Shorthand property to set values for the thickness of the margin area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. Negative values for margin properties are allowed, but there may be implementation-specific limits..",restrictions:["length","percentage"]},{name:"margin-top",browsers:["E12","FF1","S1","C1","IE3","O3.5"],values:[{name:"auto"}],syntax:"<length> | <percentage> | auto",relevance:94,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-top"}],description:"Shorthand property to set values for the thickness of the margin area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. Negative values for margin properties are allowed, but there may be implementation-specific limits..",restrictions:["length","percentage"]},{name:"marker",browsers:["E80","FF72","S13.1","C80","O67"],values:[{name:"none",description:"Indicates that no marker symbol will be drawn at the given vertex or vertices."},{name:"url()",description:"Indicates that the <marker> element referenced will be used."}],relevance:50,description:"Specifies the marker symbol that shall be used for all points on the sets the value for all vertices on the given 'path' element or basic shape.",restrictions:["url"]},{name:"marker-end",browsers:["E80","FF72","S13.1","C80","O67"],values:[{name:"none",description:"Indicates that no marker symbol will be drawn at the given vertex or vertices."},{name:"url()",description:"Indicates that the <marker> element referenced will be used."}],relevance:50,description:"Specifies the marker that will be drawn at the last vertices of the given markable element.",restrictions:["url"]},{name:"marker-mid",browsers:["E80","FF72","S13.1","C80","O67"],values:[{name:"none",description:"Indicates that no marker symbol will be drawn at the given vertex or vertices."},{name:"url()",description:"Indicates that the <marker> element referenced will be used."}],relevance:50,description:"Specifies the marker that will be drawn at all vertices except the first and last.",restrictions:["url"]},{name:"marker-start",browsers:["E80","FF72","S13.1","C80","O67"],values:[{name:"none",description:"Indicates that no marker symbol will be drawn at the given vertex or vertices."},{name:"url()",description:"Indicates that the <marker> element referenced will be used."}],relevance:50,description:"Specifies the marker that will be drawn at the first vertices of the given markable element.",restrictions:["url"]},{name:"mask-image",browsers:["E79","FF53","S15.4","C120","O15"],values:[{name:"none",description:"Counts as a transparent black image layer."},{name:"url()",description:"Reference to a <mask element or to a CSS image."}],syntax:"<mask-reference>#",relevance:57,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-image"}],description:"Sets the mask layer image of an element.",restrictions:["url","image","enum"]},{name:"mask-mode",browsers:["E120","FF53","S15.4","C120","O106"],values:[{name:"alpha",description:"Alpha values of the mask layer image should be used as the mask values."},{name:"auto",description:"Use alpha values if 'mask-image' is an image, luminance if a <mask> element or a CSS image."},{name:"luminance",description:"Luminance values of the mask layer image should be used as the mask values."}],syntax:"<masking-mode>#",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-mode"}],description:"Indicates whether the mask layer image is treated as luminance mask or alpha mask.",restrictions:["url","image","enum"]},{name:"mask-origin",browsers:["E120","FF53","S15.4","C120","O106"],syntax:"<geometry-box>#",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-origin"}],description:"Specifies the mask positioning area.",restrictions:["geometry-box","enum"]},{name:"mask-position",browsers:["E79","FF53","S15.4","C120","O106"],syntax:"<position>#",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-position"}],description:"Specifies how mask layer images are positioned.",restrictions:["position","length","percentage"]},{name:"mask-repeat",browsers:["E79","FF53","S15.4","C120","O106"],syntax:"<repeat-style>#",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-repeat"}],description:"Specifies how mask layer images are tiled after they have been sized and positioned.",restrictions:["repeat"]},{name:"mask-size",browsers:["E79","FF53","S15.4","C120","O106"],values:[{name:"auto",description:"Resolved by using the image's intrinsic ratio and the size of the other dimension, or failing that, using the image's intrinsic size, or failing that, treating it as 100%."},{name:"contain",description:"Scale the image, while preserving its intrinsic aspect ratio (if any), to the largest size such that both its width and its height can fit inside the background positioning area."},{name:"cover",description:"Scale the image, while preserving its intrinsic aspect ratio (if any), to the smallest size such that both its width and its height can completely cover the background positioning area."}],syntax:"<bg-size>#",relevance:54,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-size"}],description:"Specifies the size of the mask layer images.",restrictions:["length","percentage","enum"]},{name:"mask-type",browsers:["E79","FF35","S7","C24","O15"],values:[{name:"alpha",description:"Indicates that the alpha values of the mask should be used."},{name:"luminance",description:"Indicates that the luminance values of the mask should be used."}],syntax:"luminance | alpha",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-type"}],description:"Defines whether the content of the <mask> element is treated as as luminance mask or alpha mask.",restrictions:["enum"]},{name:"max-block-size",browsers:["E79","FF41","S12.1","C57","O44"],values:[{name:"none",description:"No limit on the width of the box."}],syntax:"<'max-width'>",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/max-block-size"}],description:"Maximum size of an element in the direction opposite that of the direction specified by 'writing-mode'.",restrictions:["length","percentage"]},{name:"max-height",browsers:["E12","FF1","S1.3","C18","IE7","O7"],values:[{name:"none",description:"No limit on the height of the box."},{name:"fit-content",browsers:["E12","FF1","S1.3","C18","IE7","O7"],description:"Use the fit-content inline size or fit-content block size, as appropriate to the writing mode."},{name:"max-content",browsers:["E12","FF1","S1.3","C18","IE7","O7"],description:"Use the max-content inline size or max-content block size, as appropriate to the writing mode."},{name:"min-content",browsers:["E12","FF1","S1.3","C18","IE7","O7"],description:"Use the min-content inline size or min-content block size, as appropriate to the writing mode."}],syntax:"none | <length-percentage> | min-content | max-content | fit-content | fit-content(<length-percentage>)",relevance:85,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/max-height"}],description:"Allows authors to constrain content height to a certain range.",restrictions:["length","percentage"]},{name:"max-inline-size",browsers:["E79","FF41","S12.1","C57","O44"],values:[{name:"none",description:"No limit on the height of the box."}],syntax:"<'max-width'>",relevance:54,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/max-inline-size"}],description:"Maximum size of an element in the direction specified by 'writing-mode'.",restrictions:["length","percentage"]},{name:"max-width",browsers:["E12","FF1","S1","C1","IE7","O4"],values:[{name:"none",description:"No limit on the width of the box."},{name:"fit-content",browsers:["E12","FF1","S1","C1","IE7","O4"],description:"Use the fit-content inline size or fit-content block size, as appropriate to the writing mode."},{name:"max-content",browsers:["E12","FF1","S1","C1","IE7","O4"],description:"Use the max-content inline size or max-content block size, as appropriate to the writing mode."},{name:"min-content",browsers:["E12","FF1","S1","C1","IE7","O4"],description:"Use the min-content inline size or min-content block size, as appropriate to the writing mode."}],syntax:"none | <length-percentage> | min-content | max-content | fit-content | fit-content(<length-percentage>)",relevance:91,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/max-width"}],description:"Allows authors to constrain content width to a certain range.",restrictions:["length","percentage"]},{name:"min-block-size",browsers:["E79","FF41","S12.1","C57","O44"],syntax:"<'min-width'>",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/min-block-size"}],description:"Minimal size of an element in the direction opposite that of the direction specified by 'writing-mode'.",restrictions:["length","percentage"]},{name:"min-height",browsers:["E12","FF3","S1.3","C1","IE7","O4"],values:[{name:"auto",browsers:["E12","FF3","S1.3","C1","IE7","O4"]},{name:"fit-content",browsers:["E12","FF3","S1.3","C1","IE7","O4"],description:"Use the fit-content inline size or fit-content block size, as appropriate to the writing mode."},{name:"max-content",browsers:["E12","FF3","S1.3","C1","IE7","O4"],description:"Use the max-content inline size or max-content block size, as appropriate to the writing mode."},{name:"min-content",browsers:["E12","FF3","S1.3","C1","IE7","O4"],description:"Use the min-content inline size or min-content block size, as appropriate to the writing mode."}],syntax:"auto | <length> | <percentage> | min-content | max-content | fit-content | fit-content(<length-percentage>)",relevance:89,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/min-height"}],description:"Allows authors to constrain content height to a certain range.",restrictions:["length","percentage"]},{name:"min-inline-size",browsers:["E79","FF41","S12.1","C57","O44"],syntax:"<'min-width'>",relevance:54,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/min-inline-size"}],description:"Minimal size of an element in the direction specified by 'writing-mode'.",restrictions:["length","percentage"]},{name:"min-width",browsers:["E12","FF1","S1","C1","IE7","O4"],values:[{name:"auto",browsers:["E12","FF1","S1","C1","IE7","O4"]},{name:"fit-content",browsers:["E12","FF1","S1","C1","IE7","O4"],description:"Use the fit-content inline size or fit-content block size, as appropriate to the writing mode."},{name:"max-content",browsers:["E12","FF1","S1","C1","IE7","O4"],description:"Use the max-content inline size or max-content block size, as appropriate to the writing mode."},{name:"min-content",browsers:["E12","FF1","S1","C1","IE7","O4"],description:"Use the min-content inline size or min-content block size, as appropriate to the writing mode."}],syntax:"auto | <length> | <percentage> | min-content | max-content | fit-content | fit-content(<length-percentage>)",relevance:88,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/min-width"}],description:"Allows authors to constrain content width to a certain range.",restrictions:["length","percentage"]},{name:"mix-blend-mode",browsers:["E79","FF32","S8","C41","O28"],values:[{name:"normal",description:"Default attribute which specifies no blending"},{name:"multiply",description:"The source color is multiplied by the destination color and replaces the destination."},{name:"screen",description:"Multiplies the complements of the backdrop and source color values, then complements the result."},{name:"overlay",description:"Multiplies or screens the colors, depending on the backdrop color value."},{name:"darken",description:"Selects the darker of the backdrop and source colors."},{name:"lighten",description:"Selects the lighter of the backdrop and source colors."},{name:"color-dodge",description:"Brightens the backdrop color to reflect the source color."},{name:"color-burn",description:"Darkens the backdrop color to reflect the source color."},{name:"hard-light",description:"Multiplies or screens the colors, depending on the source color value."},{name:"soft-light",description:"Darkens or lightens the colors, depending on the source color value."},{name:"difference",description:"Subtracts the darker of the two constituent colors from the lighter color.."},{name:"exclusion",description:"Produces an effect similar to that of the Difference mode but lower in contrast."},{name:"hue",browsers:["E79","FF32","S8","C41","O28"],description:"Creates a color with the hue of the source color and the saturation and luminosity of the backdrop color."},{name:"saturation",browsers:["E79","FF32","S8","C41","O28"],description:"Creates a color with the saturation of the source color and the hue and luminosity of the backdrop color."},{name:"color",browsers:["E79","FF32","S8","C41","O28"],description:"Creates a color with the hue and saturation of the source color and the luminosity of the backdrop color."},{name:"luminosity",browsers:["E79","FF32","S8","C41","O28"],description:"Creates a color with the luminosity of the source color and the hue and saturation of the backdrop color."}],syntax:"<blend-mode> | plus-lighter",relevance:54,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mix-blend-mode"}],description:"Defines the formula that must be used to mix the colors with the backdrop.",restrictions:["enum"]},{name:"motion",browsers:["C46","O33"],values:[{name:"none",description:"No motion path gets created."},{name:"path()",description:"Defines an SVG path as a string, with optional 'fill-rule' as the first argument."},{name:"auto",description:"Indicates that the object is rotated by the angle of the direction of the motion path."},{name:"reverse",description:"Indicates that the object is rotated by the angle of the direction of the motion path plus 180 degrees."}],relevance:50,description:"Shorthand property for setting 'motion-path', 'motion-offset' and 'motion-rotation'.",restrictions:["url","length","percentage","angle","shape","geometry-box","enum"]},{name:"motion-offset",browsers:["C46","O33"],relevance:50,description:"A distance that describes the position along the specified motion path.",restrictions:["length","percentage"]},{name:"motion-path",browsers:["C46","O33"],values:[{name:"none",description:"No motion path gets created."},{name:"path()",description:"Defines an SVG path as a string, with optional 'fill-rule' as the first argument."}],relevance:50,description:"Specifies the motion path the element gets positioned at.",restrictions:["url","shape","geometry-box","enum"]},{name:"motion-rotation",browsers:["C46","O33"],values:[{name:"auto",description:"Indicates that the object is rotated by the angle of the direction of the motion path."},{name:"reverse",description:"Indicates that the object is rotated by the angle of the direction of the motion path plus 180 degrees."}],relevance:50,description:"Defines the direction of the element while positioning along the motion path.",restrictions:["angle"]},{name:"-moz-animation",browsers:["FF9"],values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"backwards",description:"The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."},{name:"both",description:"Both forwards and backwards fill modes are applied."},{name:"forwards",description:"The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."},{name:"infinite",description:"Causes the animation to repeat forever."},{name:"none",description:"No animation is performed"},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],relevance:50,description:"Shorthand property combines six of the animation properties into a single property.",restrictions:["time","enum","timing-function","identifier","number"]},{name:"-moz-animation-delay",browsers:["FF9"],relevance:50,description:"Defines when the animation will start.",restrictions:["time"]},{name:"-moz-animation-direction",browsers:["FF9"],values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],relevance:50,description:"Defines whether or not the animation should play in reverse on alternate cycles.",restrictions:["enum"]},{name:"-moz-animation-duration",browsers:["FF9"],relevance:50,description:"Defines the length of time that an animation takes to complete one cycle.",restrictions:["time"]},{name:"-moz-animation-iteration-count",browsers:["FF9"],values:[{name:"infinite",description:"Causes the animation to repeat forever."}],relevance:50,description:"Defines the number of times an animation cycle is played. The default value is one, meaning the animation will play from beginning to end once.",restrictions:["number","enum"]},{name:"-moz-animation-name",browsers:["FF9"],values:[{name:"none",description:"No animation is performed"}],relevance:50,description:"Defines a list of animations that apply. Each name is used to select the keyframe at-rule that provides the property values for the animation.",restrictions:["identifier","enum"]},{name:"-moz-animation-play-state",browsers:["FF9"],values:[{name:"paused",description:"A running animation will be paused."},{name:"running",description:"Resume playback of a paused animation."}],relevance:50,description:"Defines whether the animation is running or paused.",restrictions:["enum"]},{name:"-moz-animation-timing-function",browsers:["FF9"],relevance:50,description:"Describes how the animation will progress over one cycle of its duration. See the 'transition-timing-function'.",restrictions:["timing-function"]},{name:"-moz-appearance",browsers:["FF1"],values:[{name:"button"},{name:"button-arrow-down"},{name:"button-arrow-next"},{name:"button-arrow-previous"},{name:"button-arrow-up"},{name:"button-bevel"},{name:"checkbox"},{name:"checkbox-container"},{name:"checkbox-label"},{name:"dialog"},{name:"groupbox"},{name:"listbox"},{name:"menuarrow"},{name:"menuimage"},{name:"menuitem"},{name:"menuitemtext"},{name:"menulist"},{name:"menulist-button"},{name:"menulist-text"},{name:"menulist-textfield"},{name:"menupopup"},{name:"menuradio"},{name:"menuseparator"},{name:"-moz-mac-unified-toolbar"},{name:"-moz-win-borderless-glass"},{name:"-moz-win-browsertabbar-toolbox"},{name:"-moz-win-communications-toolbox"},{name:"-moz-win-glass"},{name:"-moz-win-media-toolbox"},{name:"none"},{name:"progressbar"},{name:"progresschunk"},{name:"radio"},{name:"radio-container"},{name:"radio-label"},{name:"radiomenuitem"},{name:"resizer"},{name:"resizerpanel"},{name:"scrollbarbutton-down"},{name:"scrollbarbutton-left"},{name:"scrollbarbutton-right"},{name:"scrollbarbutton-up"},{name:"scrollbar-small"},{name:"scrollbartrack-horizontal"},{name:"scrollbartrack-vertical"},{name:"separator"},{name:"spinner"},{name:"spinner-downbutton"},{name:"spinner-textfield"},{name:"spinner-upbutton"},{name:"statusbar"},{name:"statusbarpanel"},{name:"tab"},{name:"tabpanels"},{name:"tab-scroll-arrow-back"},{name:"tab-scroll-arrow-forward"},{name:"textfield"},{name:"textfield-multiline"},{name:"toolbar"},{name:"toolbox"},{name:"tooltip"},{name:"treeheadercell"},{name:"treeheadersortarrow"},{name:"treeitem"},{name:"treetwistyopen"},{name:"treeview"},{name:"treewisty"},{name:"window"}],status:"nonstandard",syntax:"none | button | button-arrow-down | button-arrow-next | button-arrow-previous | button-arrow-up | button-bevel | button-focus | caret | checkbox | checkbox-container | checkbox-label | checkmenuitem | dualbutton | groupbox | listbox | listitem | menuarrow | menubar | menucheckbox | menuimage | menuitem | menuitemtext | menulist | menulist-button | menulist-text | menulist-textfield | menupopup | menuradio | menuseparator | meterbar | meterchunk | progressbar | progressbar-vertical | progresschunk | progresschunk-vertical | radio | radio-container | radio-label | radiomenuitem | range | range-thumb | resizer | resizerpanel | scale-horizontal | scalethumbend | scalethumb-horizontal | scalethumbstart | scalethumbtick | scalethumb-vertical | scale-vertical | scrollbarbutton-down | scrollbarbutton-left | scrollbarbutton-right | scrollbarbutton-up | scrollbarthumb-horizontal | scrollbarthumb-vertical | scrollbartrack-horizontal | scrollbartrack-vertical | searchfield | separator | sheet | spinner | spinner-downbutton | spinner-textfield | spinner-upbutton | splitter | statusbar | statusbarpanel | tab | tabpanel | tabpanels | tab-scroll-arrow-back | tab-scroll-arrow-forward | textfield | textfield-multiline | toolbar | toolbarbutton | toolbarbutton-dropdown | toolbargripper | toolbox | tooltip | treeheader | treeheadercell | treeheadersortarrow | treeitem | treeline | treetwisty | treetwistyopen | treeview | -moz-mac-unified-toolbar | -moz-win-borderless-glass | -moz-win-browsertabbar-toolbox | -moz-win-communicationstext | -moz-win-communications-toolbox | -moz-win-exclude-glass | -moz-win-glass | -moz-win-mediatext | -moz-win-media-toolbox | -moz-window-button-box | -moz-window-button-box-maximized | -moz-window-button-close | -moz-window-button-maximize | -moz-window-button-minimize | -moz-window-button-restore | -moz-window-frame-bottom | -moz-window-frame-left | -moz-window-frame-right | -moz-window-titlebar | -moz-window-titlebar-maximized",relevance:0,description:"Used in Gecko (Firefox) to display an element using a platform-native styling based on the operating system's theme.",restrictions:["enum"]},{name:"-moz-backface-visibility",browsers:["FF10"],values:[{name:"hidden"},{name:"visible"}],relevance:50,description:"Determines whether or not the 'back' side of a transformed element is visible when facing the viewer. With an identity transform, the front side of an element faces the viewer.",restrictions:["enum"]},{name:"-moz-background-clip",browsers:["FF1-3.6"],values:[{name:"padding"}],relevance:50,description:"Determines the background painting area.",restrictions:["box","enum"]},{name:"-moz-background-inline-policy",browsers:["FF1"],values:[{name:"bounding-box"},{name:"continuous"},{name:"each-box"}],relevance:50,description:"In Gecko-based applications like Firefox, the -moz-background-inline-policy CSS property specifies how the background image of an inline element is determined when the content of the inline element wraps onto multiple lines. The choice of position has significant effects on repetition.",restrictions:["enum"]},{name:"-moz-background-origin",browsers:["FF1"],relevance:50,description:"For elements rendered as a single box, specifies the background positioning area. For elements rendered as multiple boxes (e.g., inline boxes on several lines, boxes on several pages) specifies which boxes 'box-decoration-break' operates on to determine the background positioning area(s).",restrictions:["box"]},{name:"-moz-border-bottom-colors",browsers:["FF1"],status:"nonstandard",syntax:"<color>+ | none",relevance:0,description:"Sets a list of colors for the bottom border.",restrictions:["color"]},{name:"-moz-border-image",browsers:["FF3.6"],values:[{name:"auto",description:"If 'auto' is specified then the border image width is the intrinsic width or height (whichever is applicable) of the corresponding image slice. If the image does not have the required intrinsic dimension then the corresponding border-width is used instead."},{name:"fill",description:"Causes the middle part of the border-image to be preserved."},{name:"none"},{name:"repeat",description:"The image is tiled (repeated) to fill the area."},{name:"round",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the image is rescaled so that it does."},{name:"space",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the extra space is distributed around the tiles."},{name:"stretch",description:"The image is stretched to fill the area."},{name:"url()"}],relevance:50,description:"Shorthand property for setting 'border-image-source', 'border-image-slice', 'border-image-width', 'border-image-outset' and 'border-image-repeat'. Omitted values are set to their initial values.",restrictions:["length","percentage","number","url","enum"]},{name:"-moz-border-left-colors",browsers:["FF1"],status:"nonstandard",syntax:"<color>+ | none",relevance:0,description:"Sets a list of colors for the bottom border.",restrictions:["color"]},{name:"-moz-border-right-colors",browsers:["FF1"],status:"nonstandard",syntax:"<color>+ | none",relevance:0,description:"Sets a list of colors for the bottom border.",restrictions:["color"]},{name:"-moz-border-top-colors",browsers:["FF1"],status:"nonstandard",syntax:"<color>+ | none",relevance:0,description:"Ske Firefox, -moz-border-bottom-colors sets a list of colors for the bottom border.",restrictions:["color"]},{name:"-moz-box-align",browsers:["FF1"],values:[{name:"baseline",description:"If this box orientation is inline-axis or horizontal, all children are placed with their baselines aligned, and extra space placed before or after as necessary. For block flows, the baseline of the first non-empty line box located within the element is used. For tables, the baseline of the first cell is used."},{name:"center",description:"Any extra space is divided evenly, with half placed above the child and the other half placed after the child."},{name:"end",description:"For normal direction boxes, the bottom edge of each child is placed along the bottom of the box. Extra space is placed above the element. For reverse direction boxes, the top edge of each child is placed along the top of the box. Extra space is placed below the element."},{name:"start",description:"For normal direction boxes, the top edge of each child is placed along the top of the box. Extra space is placed below the element. For reverse direction boxes, the bottom edge of each child is placed along the bottom of the box. Extra space is placed above the element."},{name:"stretch",description:"The height of each child is adjusted to that of the containing block."}],relevance:50,description:"Specifies how a XUL box aligns its contents across (perpendicular to) the direction of its layout. The effect of this is only visible if there is extra space in the box.",restrictions:["enum"]},{name:"-moz-box-direction",browsers:["FF1"],values:[{name:"normal",description:"A box with a computed value of horizontal for box-orient displays its children from left to right. A box with a computed value of vertical displays its children from top to bottom."},{name:"reverse",description:"A box with a computed value of horizontal for box-orient displays its children from right to left. A box with a computed value of vertical displays its children from bottom to top."}],relevance:50,description:"Specifies whether a box lays out its contents normally (from the top or left edge), or in reverse (from the bottom or right edge).",restrictions:["enum"]},{name:"-moz-box-flex",browsers:["FF1"],relevance:50,description:"Specifies how a box grows to fill the box that contains it, in the direction of the containing box's layout.",restrictions:["number"]},{name:"-moz-box-flexgroup",browsers:["FF1"],relevance:50,description:"Flexible elements can be assigned to flex groups using the 'box-flex-group' property.",restrictions:["integer"]},{name:"-moz-box-ordinal-group",browsers:["FF1"],relevance:50,description:"Indicates the ordinal group the element belongs to. Elements with a lower ordinal group are displayed before those with a higher ordinal group.",restrictions:["integer"]},{name:"-moz-box-orient",browsers:["FF1"],values:[{name:"block-axis",description:"Elements are oriented along the box's axis."},{name:"horizontal",description:"The box displays its children from left to right in a horizontal line."},{name:"inline-axis",description:"Elements are oriented vertically."},{name:"vertical",description:"The box displays its children from stacked from top to bottom vertically."}],relevance:50,description:"In Mozilla applications, -moz-box-orient specifies whether a box lays out its contents horizontally or vertically.",restrictions:["enum"]},{name:"-moz-box-pack",browsers:["FF1"],values:[{name:"center",description:"The extra space is divided evenly, with half placed before the first child and the other half placed after the last child."},{name:"end",description:"For normal direction boxes, the right edge of the last child is placed at the right side, with all extra space placed before the first child. For reverse direction boxes, the left edge of the first child is placed at the left side, with all extra space placed after the last child."},{name:"justify",description:"The space is divided evenly in-between each child, with none of the extra space placed before the first child or after the last child. If there is only one child, treat the pack value as if it were start."},{name:"start",description:"For normal direction boxes, the left edge of the first child is placed at the left side, with all extra space placed after the last child. For reverse direction boxes, the right edge of the last child is placed at the right side, with all extra space placed before the first child."}],relevance:50,description:"Specifies how a box packs its contents in the direction of its layout. The effect of this is only visible if there is extra space in the box.",restrictions:["enum"]},{name:"-moz-box-sizing",browsers:["FF1"],values:[{name:"border-box",description:"The specified width and height (and respective min/max properties) on this element determine the border box of the element."},{name:"content-box",description:"Behavior of width and height as specified by CSS2.1. The specified width and height (and respective min/max properties) apply to the width and height respectively of the content box of the element."},{name:"padding-box",description:"The specified width and height (and respective min/max properties) on this element determine the padding box of the element."}],relevance:50,description:"Box Model addition in CSS3.",restrictions:["enum"]},{name:"-moz-column-count",browsers:["FF3.5"],values:[{name:"auto",description:"Determines the number of columns by the 'column-width' property and the element width."}],relevance:50,description:"Describes the optimal number of columns into which the content of the element will be flowed.",restrictions:["integer"]},{name:"-moz-column-gap",browsers:["FF3.5"],values:[{name:"normal",description:"User agent specific and typically equivalent to 1em."}],relevance:50,description:"Sets the gap between columns. If there is a column rule between columns, it will appear in the middle of the gap.",restrictions:["length"]},{name:"-moz-column-rule",browsers:["FF3.5"],relevance:50,description:"Shorthand for setting 'column-rule-width', 'column-rule-style', and 'column-rule-color' at the same place in the style sheet. Omitted values are set to their initial values.",restrictions:["length","line-width","line-style","color"]},{name:"-moz-column-rule-color",browsers:["FF3.5"],relevance:50,description:"Sets the color of the column rule",restrictions:["color"]},{name:"-moz-column-rule-style",browsers:["FF3.5"],relevance:50,description:"Sets the style of the rule between columns of an element.",restrictions:["line-style"]},{name:"-moz-column-rule-width",browsers:["FF3.5"],relevance:50,description:"Sets the width of the rule between columns. Negative values are not allowed.",restrictions:["length","line-width"]},{name:"-moz-columns",browsers:["FF9"],values:[{name:"auto",description:"The width depends on the values of other properties."}],relevance:50,description:"A shorthand property which sets both 'column-width' and 'column-count'.",restrictions:["length","integer"]},{name:"-moz-column-width",browsers:["FF3.5"],values:[{name:"auto",description:"The width depends on the values of other properties."}],relevance:50,description:"This property describes the width of columns in multicol elements.",restrictions:["length"]},{name:"-moz-font-feature-settings",browsers:["FF4"],values:[{name:'"c2cs"'},{name:'"dlig"'},{name:'"kern"'},{name:'"liga"'},{name:'"lnum"'},{name:'"onum"'},{name:'"smcp"'},{name:'"swsh"'},{name:'"tnum"'},{name:"normal",description:"No change in glyph substitution or positioning occurs."},{name:"off",browsers:["FF4"]},{name:"on",browsers:["FF4"]}],relevance:50,description:"Provides low-level control over OpenType font features. It is intended as a way of providing access to font features that are not widely used but are needed for a particular use case.",restrictions:["string","integer"]},{name:"-moz-hyphens",browsers:["FF9"],values:[{name:"auto",description:"Conditional hyphenation characters inside a word, if present, take priority over automatic resources when determining hyphenation points within the word."},{name:"manual",description:"Words are only broken at line breaks where there are characters inside the word that suggest line break opportunities"},{name:"none",description:"Words are not broken at line breaks, even if characters inside the word suggest line break points."}],relevance:50,description:"Controls whether hyphenation is allowed to create more break opportunities within a line of text.",restrictions:["enum"]},{name:"-moz-perspective",browsers:["FF10"],values:[{name:"none",description:"No perspective transform is applied."}],relevance:50,description:"Applies the same transform as the perspective(<number>) transform function, except that it applies only to the positioned or transformed children of the element, not to the transform on the element itself.",restrictions:["length"]},{name:"-moz-perspective-origin",browsers:["FF10"],relevance:50,description:"Establishes the origin for the perspective property. It effectively sets the X and Y position at which the viewer appears to be looking at the children of the element.",restrictions:["position","percentage","length"]},{name:"-moz-text-align-last",browsers:["FF12"],values:[{name:"auto"},{name:"center",description:"The inline contents are centered within the line box."},{name:"justify",description:"The text is justified according to the method specified by the 'text-justify' property."},{name:"left",description:"The inline contents are aligned to the left edge of the line box. In vertical text, 'left' aligns to the edge of the line box that would be the start edge for left-to-right text."},{name:"right",description:"The inline contents are aligned to the right edge of the line box. In vertical text, 'right' aligns to the edge of the line box that would be the end edge for left-to-right text."}],relevance:50,description:"Describes how the last line of a block or a line right before a forced line break is aligned when 'text-align' is set to 'justify'.",restrictions:["enum"]},{name:"-moz-text-decoration-color",browsers:["FF6"],relevance:50,description:"Specifies the color of text decoration (underlines overlines, and line-throughs) set on the element with text-decoration-line.",restrictions:["color"]},{name:"-moz-text-decoration-line",browsers:["FF6"],values:[{name:"line-through",description:"Each line of text has a line through the middle."},{name:"none",description:"Neither produces nor inhibits text decoration."},{name:"overline",description:"Each line of text has a line above it."},{name:"underline",description:"Each line of text is underlined."}],relevance:50,description:"Specifies what line decorations, if any, are added to the element.",restrictions:["enum"]},{name:"-moz-text-decoration-style",browsers:["FF6"],values:[{name:"dashed",description:"Produces a dashed line style."},{name:"dotted",description:"Produces a dotted line."},{name:"double",description:"Produces a double line."},{name:"none",description:"Produces no line."},{name:"solid",description:"Produces a solid line."},{name:"wavy",description:"Produces a wavy line."}],relevance:50,description:"Specifies the line style for underline, line-through and overline text decoration.",restrictions:["enum"]},{name:"-moz-text-size-adjust",browsers:["FF"],values:[{name:"auto",description:"Renderers must use the default size adjustment when displaying on a small device."},{name:"none",description:"Renderers must not do size adjustment when displaying on a small device."}],relevance:50,description:"Specifies a size adjustment for displaying text content in mobile browsers.",restrictions:["enum","percentage"]},{name:"-moz-transform",browsers:["FF3.5"],values:[{name:"matrix()",description:"Specifies a 2D transformation in the form of a transformation matrix of six values. matrix(a,b,c,d,e,f) is equivalent to applying the transformation matrix [a b c d e f]"},{name:"matrix3d()",description:"Specifies a 3D transformation as a 4x4 homogeneous matrix of 16 values in column-major order."},{name:"none"},{name:"perspective",description:"Specifies a perspective projection matrix."},{name:"rotate()",description:"Specifies a 2D rotation by the angle specified in the parameter about the origin of the element, as defined by the transform-origin property."},{name:"rotate3d()",description:"Specifies a clockwise 3D rotation by the angle specified in last parameter about the [x,y,z] direction vector described by the first 3 parameters."},{name:"rotateX('angle')",description:"Specifies a clockwise rotation by the given angle about the X axis."},{name:"rotateY('angle')",description:"Specifies a clockwise rotation by the given angle about the Y axis."},{name:"rotateZ('angle')",description:"Specifies a clockwise rotation by the given angle about the Z axis."},{name:"scale()",description:"Specifies a 2D scale operation by the [sx,sy] scaling vector described by the 2 parameters. If the second parameter is not provided, it is takes a value equal to the first."},{name:"scale3d()",description:"Specifies a 3D scale operation by the [sx,sy,sz] scaling vector described by the 3 parameters."},{name:"scaleX()",description:"Specifies a scale operation using the [sx,1] scaling vector, where sx is given as the parameter."},{name:"scaleY()",description:"Specifies a scale operation using the [sy,1] scaling vector, where sy is given as the parameter."},{name:"scaleZ()",description:"Specifies a scale operation using the [1,1,sz] scaling vector, where sz is given as the parameter."},{name:"skew()",description:"Specifies a skew transformation along the X and Y axes. The first angle parameter specifies the skew on the X axis. The second angle parameter specifies the skew on the Y axis. If the second parameter is not given then a value of 0 is used for the Y angle (ie: no skew on the Y axis)."},{name:"skewX()",description:"Specifies a skew transformation along the X axis by the given angle."},{name:"skewY()",description:"Specifies a skew transformation along the Y axis by the given angle."},{name:"translate()",description:"Specifies a 2D translation by the vector [tx, ty], where tx is the first translation-value parameter and ty is the optional second translation-value parameter."},{name:"translate3d()",description:"Specifies a 3D translation by the vector [tx,ty,tz], with tx, ty and tz being the first, second and third translation-value parameters respectively."},{name:"translateX()",description:"Specifies a translation by the given amount in the X direction."},{name:"translateY()",description:"Specifies a translation by the given amount in the Y direction."},{name:"translateZ()",description:"Specifies a translation by the given amount in the Z direction. Note that percentage values are not allowed in the translateZ translation-value, and if present are evaluated as 0."}],relevance:50,description:"A two-dimensional transformation is applied to an element through the 'transform' property. This property contains a list of transform functions similar to those allowed by SVG.",restrictions:["enum"]},{name:"-moz-transform-origin",browsers:["FF3.5"],relevance:50,description:"Establishes the origin of transformation for an element.",restrictions:["position","length","percentage"]},{name:"-moz-transition",browsers:["FF4"],values:[{name:"all",description:"Every property that is able to undergo a transition will do so."},{name:"none",description:"No property will transition."}],relevance:50,description:"Shorthand property combines four of the transition properties into a single property.",restrictions:["time","property","timing-function","enum"]},{name:"-moz-transition-delay",browsers:["FF4"],relevance:50,description:"Defines when the transition will start. It allows a transition to begin execution some period of time from when it is applied.",restrictions:["time"]},{name:"-moz-transition-duration",browsers:["FF4"],relevance:50,description:"Specifies how long the transition from the old value to the new value should take.",restrictions:["time"]},{name:"-moz-transition-property",browsers:["FF4"],values:[{name:"all",description:"Every property that is able to undergo a transition will do so."},{name:"none",description:"No property will transition."}],relevance:50,description:"Specifies the name of the CSS property to which the transition is applied.",restrictions:["property"]},{name:"-moz-transition-timing-function",browsers:["FF4"],relevance:50,description:"Describes how the intermediate values used during a transition will be calculated.",restrictions:["timing-function"]},{name:"-moz-user-focus",browsers:["FF1"],values:[{name:"ignore"},{name:"normal"}],status:"nonstandard",syntax:"ignore | normal | select-after | select-before | select-menu | select-same | select-all | none",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-moz-user-focus"}],description:"Used to indicate whether the element can have focus."},{name:"-moz-user-select",browsers:["FF1.5"],values:[{name:"all"},{name:"element"},{name:"elements"},{name:"-moz-all"},{name:"-moz-none"},{name:"none"},{name:"text"},{name:"toggle"}],relevance:50,description:"Controls the appearance of selection.",restrictions:["enum"]},{name:"-ms-accelerator",browsers:["E","IE10"],values:[{name:"false",description:"The element does not contain an accelerator key sequence."},{name:"true",description:"The element contains an accelerator key sequence."}],status:"nonstandard",syntax:"false | true",relevance:0,description:"IE only. Has the ability to turn off its system underlines for accelerator keys until the ALT key is pressed",restrictions:["enum"]},{name:"-ms-behavior",browsers:["IE8"],relevance:50,description:"IE only. Used to extend behaviors of the browser",restrictions:["url"]},{name:"-ms-block-progression",browsers:["IE8"],values:[{name:"bt",description:"Bottom-to-top block flow. Layout is horizontal."},{name:"lr",description:"Left-to-right direction. The flow orientation is vertical."},{name:"rl",description:"Right-to-left direction. The flow orientation is vertical."},{name:"tb",description:"Top-to-bottom direction. The flow orientation is horizontal."}],status:"nonstandard",syntax:"tb | rl | bt | lr",relevance:0,description:"Sets the block-progression value and the flow orientation",restrictions:["enum"]},{name:"-ms-content-zoom-chaining",browsers:["E","IE10"],values:[{name:"chained",description:"The nearest zoomable parent element begins zooming when the user hits a zoom limit during a manipulation. No bounce effect is shown."},{name:"none",description:"A bounce effect is shown when the user hits a zoom limit during a manipulation."}],status:"nonstandard",syntax:"none | chained",relevance:0,description:"Specifies the zoom behavior that occurs when a user hits the zoom limit during a manipulation."},{name:"-ms-content-zooming",browsers:["E","IE10"],values:[{name:"none",description:"The element is not zoomable."},{name:"zoom",description:"The element is zoomable."}],status:"nonstandard",syntax:"none | zoom",relevance:0,description:"Specifies whether zooming is enabled.",restrictions:["enum"]},{name:"-ms-content-zoom-limit",browsers:["E","IE10"],status:"nonstandard",syntax:"<'-ms-content-zoom-limit-min'> <'-ms-content-zoom-limit-max'>",relevance:0,description:"Shorthand property for the -ms-content-zoom-limit-min and -ms-content-zoom-limit-max properties.",restrictions:["percentage"]},{name:"-ms-content-zoom-limit-max",browsers:["E","IE10"],status:"nonstandard",syntax:"<percentage>",relevance:0,description:"Specifies the maximum zoom factor.",restrictions:["percentage"]},{name:"-ms-content-zoom-limit-min",browsers:["E","IE10"],status:"nonstandard",syntax:"<percentage>",relevance:0,description:"Specifies the minimum zoom factor.",restrictions:["percentage"]},{name:"-ms-content-zoom-snap",browsers:["E","IE10"],values:[{name:"mandatory",description:"Indicates that the motion of the content after the contact is picked up is always adjusted so that it lands on a snap-point."},{name:"none",description:"Indicates that zooming is unaffected by any defined snap-points."},{name:"proximity",description:'Indicates that the motion of the content after the contact is picked up may be adjusted if the content would normally stop "close enough" to a snap-point.'},{name:"snapInterval(100%, 100%)",description:"Specifies where the snap-points will be placed."},{name:"snapList()",description:"Specifies the position of individual snap-points as a comma-separated list of zoom factors."}],status:"nonstandard",syntax:"<'-ms-content-zoom-snap-type'> || <'-ms-content-zoom-snap-points'>",relevance:0,description:"Shorthand property for the -ms-content-zoom-snap-type and -ms-content-zoom-snap-points properties."},{name:"-ms-content-zoom-snap-points",browsers:["E","IE10"],values:[{name:"snapInterval(100%, 100%)",description:"Specifies where the snap-points will be placed."},{name:"snapList()",description:"Specifies the position of individual snap-points as a comma-separated list of zoom factors."}],status:"nonstandard",syntax:"snapInterval( <percentage>, <percentage> ) | snapList( <percentage># )",relevance:0,description:"Defines where zoom snap-points are located."},{name:"-ms-content-zoom-snap-type",browsers:["E","IE10"],values:[{name:"mandatory",description:"Indicates that the motion of the content after the contact is picked up is always adjusted so that it lands on a snap-point."},{name:"none",description:"Indicates that zooming is unaffected by any defined snap-points."},{name:"proximity",description:'Indicates that the motion of the content after the contact is picked up may be adjusted if the content would normally stop "close enough" to a snap-point.'}],status:"nonstandard",syntax:"none | proximity | mandatory",relevance:0,description:"Specifies how zooming is affected by defined snap-points.",restrictions:["enum"]},{name:"-ms-filter",browsers:["IE8-9"],status:"nonstandard",syntax:"<string>",relevance:0,description:"IE only. Used to produce visual effects.",restrictions:["string"]},{name:"-ms-flex",browsers:["IE10"],values:[{name:"auto",description:"Retrieves the value of the main size property as the used 'flex-basis'."},{name:"none",description:"Expands to '0 0 auto'."}],relevance:50,description:"specifies the parameters of a flexible length: the positive and negative flexibility, and the preferred size.",restrictions:["length","number","percentage"]},{name:"-ms-flex-align",browsers:["IE10"],values:[{name:"baseline",description:"If the flex item's inline axis is the same as the cross axis, this value is identical to 'flex-start'. Otherwise, it participates in baseline alignment."},{name:"center",description:"The flex item's margin box is centered in the cross axis within the line."},{name:"end",description:"The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line."},{name:"start",description:"The cross-start margin edge of the flexbox item is placed flush with the cross-start edge of the line."},{name:"stretch",description:"If the cross size property of the flexbox item is anything other than 'auto', this value is identical to 'start'."}],relevance:50,description:"Aligns flex items along the cross axis of the current line of the flex container.",restrictions:["enum"]},{name:"-ms-flex-direction",browsers:["IE10"],values:[{name:"column",description:"The flex container's main axis has the same orientation as the block axis of the current writing mode."},{name:"column-reverse",description:"Same as 'column', except the main-start and main-end directions are swapped."},{name:"row",description:"The flex container's main axis has the same orientation as the inline axis of the current writing mode."},{name:"row-reverse",description:"Same as 'row', except the main-start and main-end directions are swapped."}],relevance:50,description:"Specifies how flex items are placed in the flex container, by setting the direction of the flex container's main axis.",restrictions:["enum"]},{name:"-ms-flex-flow",browsers:["IE10"],values:[{name:"column",description:"The flex container's main axis has the same orientation as the block axis of the current writing mode."},{name:"column-reverse",description:"Same as 'column', except the main-start and main-end directions are swapped."},{name:"nowrap",description:"The flex container is single-line."},{name:"row",description:"The flex container's main axis has the same orientation as the inline axis of the current writing mode."},{name:"wrap",description:"The flexbox is multi-line."},{name:"wrap-reverse",description:"Same as 'wrap', except the cross-start and cross-end directions are swapped."}],relevance:50,description:"Specifies how flexbox items are placed in the flexbox.",restrictions:["enum"]},{name:"-ms-flex-item-align",browsers:["IE10"],values:[{name:"auto",description:"Computes to the value of 'align-items' on the element's parent, or 'stretch' if the element has no parent. On absolutely positioned elements, it computes to itself."},{name:"baseline",description:"If the flex item's inline axis is the same as the cross axis, this value is identical to 'flex-start'. Otherwise, it participates in baseline alignment."},{name:"center",description:"The flex item's margin box is centered in the cross axis within the line."},{name:"end",description:"The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line."},{name:"start",description:"The cross-start margin edge of the flex item is placed flush with the cross-start edge of the line."},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."}],relevance:50,description:"Allows the default alignment along the cross axis to be overridden for individual flex items.",restrictions:["enum"]},{name:"-ms-flex-line-pack",browsers:["IE10"],values:[{name:"center",description:"Lines are packed toward the center of the flex container."},{name:"distribute",description:"Lines are evenly distributed in the flex container, with half-size spaces on either end."},{name:"end",description:"Lines are packed toward the end of the flex container."},{name:"justify",description:"Lines are evenly distributed in the flex container."},{name:"start",description:"Lines are packed toward the start of the flex container."},{name:"stretch",description:"Lines stretch to take up the remaining space."}],relevance:50,description:"Aligns a flex container's lines within the flex container when there is extra space in the cross-axis, similar to how 'justify-content' aligns individual items within the main-axis.",restrictions:["enum"]},{name:"-ms-flex-order",browsers:["IE10"],relevance:50,description:"Controls the order in which children of a flex container appear within the flex container, by assigning them to ordinal groups.",restrictions:["integer"]},{name:"-ms-flex-pack",browsers:["IE10"],values:[{name:"center",description:"Flex items are packed toward the center of the line."},{name:"distribute",description:"Flex items are evenly distributed in the line, with half-size spaces on either end."},{name:"end",description:"Flex items are packed toward the end of the line."},{name:"justify",description:"Flex items are evenly distributed in the line."},{name:"start",description:"Flex items are packed toward the start of the line."}],relevance:50,description:"Aligns flex items along the main axis of the current line of the flex container.",restrictions:["enum"]},{name:"-ms-flex-wrap",browsers:["IE10"],values:[{name:"nowrap",description:"The flex container is single-line."},{name:"wrap",description:"The flexbox is multi-line."},{name:"wrap-reverse",description:"Same as 'wrap', except the cross-start and cross-end directions are swapped."}],relevance:50,description:"Controls whether the flex container is single-line or multi-line, and the direction of the cross-axis, which determines the direction new lines are stacked in.",restrictions:["enum"]},{name:"-ms-flow-from",browsers:["E","IE10"],values:[{name:"none",description:"The block container is not a CSS Region."}],status:"nonstandard",syntax:"[ none | <custom-ident> ]#",relevance:0,description:"Makes a block container a region and associates it with a named flow.",restrictions:["identifier"]},{name:"-ms-flow-into",browsers:["E","IE10"],values:[{name:"none",description:"The element is not moved to a named flow and normal CSS processing takes place."}],status:"nonstandard",syntax:"[ none | <custom-ident> ]#",relevance:0,description:"Places an element or its contents into a named flow.",restrictions:["identifier"]},{name:"-ms-grid-column",browsers:["E","IE10"],values:[{name:"auto"},{name:"end"},{name:"start"}],relevance:50,description:"Used to place grid items and explicitly defined grid cells in the Grid.",restrictions:["integer","string","enum"]},{name:"-ms-grid-column-align",browsers:["E","IE10"],values:[{name:"center",description:"Places the center of the Grid Item's margin box at the center of the Grid Item's column."},{name:"end",description:"Aligns the end edge of the Grid Item's margin box to the end edge of the Grid Item's column."},{name:"start",description:"Aligns the starting edge of the Grid Item's margin box to the starting edge of the Grid Item's column."},{name:"stretch",description:"Ensures that the Grid Item's margin box is equal to the size of the Grid Item's column."}],relevance:50,description:"Aligns the columns in a grid.",restrictions:["enum"]},{name:"-ms-grid-columns",browsers:["E","IE10"],status:"nonstandard",syntax:"none | <track-list> | <auto-track-list>",relevance:0,description:"Lays out the columns of the grid."},{name:"-ms-grid-column-span",browsers:["E","IE10"],relevance:50,description:"Specifies the number of columns to span.",restrictions:["integer"]},{name:"-ms-grid-layer",browsers:["E","IE10"],relevance:50,description:"Grid-layer is similar in concept to z-index, but avoids overloading the meaning of the z-index property, which is applicable only to positioned elements.",restrictions:["integer"]},{name:"-ms-grid-row",browsers:["E","IE10"],values:[{name:"auto"},{name:"end"},{name:"start"}],relevance:50,description:"grid-row is used to place grid items and explicitly defined grid cells in the Grid.",restrictions:["integer","string","enum"]},{name:"-ms-grid-row-align",browsers:["E","IE10"],values:[{name:"center",description:"Places the center of the Grid Item's margin box at the center of the Grid Item's row."},{name:"end",description:"Aligns the end edge of the Grid Item's margin box to the end edge of the Grid Item's row."},{name:"start",description:"Aligns the starting edge of the Grid Item's margin box to the starting edge of the Grid Item's row."},{name:"stretch",description:"Ensures that the Grid Item's margin box is equal to the size of the Grid Item's row."}],relevance:50,description:"Aligns the rows in a grid.",restrictions:["enum"]},{name:"-ms-grid-rows",browsers:["E","IE10"],status:"nonstandard",syntax:"none | <track-list> | <auto-track-list>",relevance:0,description:"Lays out the columns of the grid."},{name:"-ms-grid-row-span",browsers:["E","IE10"],relevance:50,description:"Specifies the number of rows to span.",restrictions:["integer"]},{name:"-ms-high-contrast-adjust",browsers:["E","IE10"],values:[{name:"auto",description:"Properties will be adjusted as applicable."},{name:"none",description:"No adjustments will be applied."}],status:"nonstandard",syntax:"auto | none",relevance:0,description:"Specifies if properties should be adjusted in high contrast mode.",restrictions:["enum"]},{name:"-ms-hyphenate-limit-chars",browsers:["E","IE10"],values:[{name:"auto",description:"The user agent chooses a value that adapts to the current layout."}],status:"nonstandard",syntax:"auto | <integer>{1,3}",relevance:0,description:"Specifies the minimum number of characters in a hyphenated word.",restrictions:["integer"]},{name:"-ms-hyphenate-limit-lines",browsers:["E","IE10"],values:[{name:"no-limit",description:"There is no limit."}],status:"nonstandard",syntax:"no-limit | <integer>",relevance:0,description:"Indicates the maximum number of successive hyphenated lines in an element.",restrictions:["integer"]},{name:"-ms-hyphenate-limit-zone",browsers:["E","IE10"],status:"nonstandard",syntax:"<percentage> | <length>",relevance:0,description:"Specifies the maximum amount of unfilled space (before justification) that may be left in the line box before hyphenation is triggered to pull part of a word from the next line back up into the current line.",restrictions:["percentage","length"]},{name:"-ms-hyphens",browsers:["E","IE10"],values:[{name:"auto",description:"Conditional hyphenation characters inside a word, if present, take priority over automatic resources when determining hyphenation points within the word."},{name:"manual",description:"Words are only broken at line breaks where there are characters inside the word that suggest line break opportunities"},{name:"none",description:"Words are not broken at line breaks, even if characters inside the word suggest line break points."}],relevance:50,description:"Controls whether hyphenation is allowed to create more break opportunities within a line of text.",restrictions:["enum"]},{name:"-ms-ime-mode",browsers:["IE10"],values:[{name:"active",description:"The input method editor is initially active; text entry is performed using it unless the user specifically dismisses it."},{name:"auto",description:"No change is made to the current input method editor state. This is the default."},{name:"disabled",description:"The input method editor is disabled and may not be activated by the user."},{name:"inactive",description:"The input method editor is initially inactive, but the user may activate it if they wish."},{name:"normal",description:"The IME state should be normal; this value can be used in a user style sheet to override the page setting."}],relevance:50,description:"Controls the state of the input method editor for text fields.",restrictions:["enum"]},{name:"-ms-interpolation-mode",browsers:["IE7"],values:[{name:"bicubic"},{name:"nearest-neighbor"}],relevance:50,description:"Gets or sets the interpolation (resampling) method used to stretch images.",restrictions:["enum"]},{name:"-ms-layout-grid",browsers:["E","IE10"],values:[{name:"char",description:"Any of the range of character values available to the -ms-layout-grid-char property."},{name:"line",description:"Any of the range of line values available to the -ms-layout-grid-line property."},{name:"mode",description:"Any of the range of mode values available to the -ms-layout-grid-mode property."},{name:"type",description:"Any of the range of type values available to the -ms-layout-grid-type property."}],relevance:50,description:"Sets or retrieves the composite document grid properties that specify the layout of text characters."},{name:"-ms-layout-grid-char",browsers:["E","IE10"],values:[{name:"auto",description:"Largest character in the font of the element is used to set the character grid."},{name:"none",description:"Default. No character grid is set."}],relevance:50,description:"Sets or retrieves the size of the character grid used for rendering the text content of an element.",restrictions:["enum","length","percentage"]},{name:"-ms-layout-grid-line",browsers:["E","IE10"],values:[{name:"auto",description:"Largest character in the font of the element is used to set the character grid."},{name:"none",description:"Default. No grid line is set."}],relevance:50,description:"Sets or retrieves the gridline value used for rendering the text content of an element.",restrictions:["length"]},{name:"-ms-layout-grid-mode",browsers:["E","IE10"],values:[{name:"both",description:"Default. Both the char and line grid modes are enabled. This setting is necessary to fully enable the layout grid on an element."},{name:"char",description:"Only a character grid is used. This is recommended for use with block-level elements, such as a blockquote, where the line grid is intended to be disabled."},{name:"line",description:"Only a line grid is used. This is recommended for use with inline elements, such as a span, to disable the horizontal grid on runs of text that act as a single entity in the grid layout."},{name:"none",description:"No grid is used."}],relevance:50,description:"Gets or sets whether the text layout grid uses two dimensions.",restrictions:["enum"]},{name:"-ms-layout-grid-type",browsers:["E","IE10"],values:[{name:"fixed",description:"Grid used for monospaced layout. All noncursive characters are treated as equal; every character is centered within a single grid space by default."},{name:"loose",description:"Default. Grid used for Japanese and Korean characters."},{name:"strict",description:"Grid used for Chinese, as well as Japanese (Genko) and Korean characters. Only the ideographs, kanas, and wide characters are snapped to the grid."}],relevance:50,description:"Sets or retrieves the type of grid used for rendering the text content of an element.",restrictions:["enum"]},{name:"-ms-line-break",browsers:["E","IE10"],values:[{name:"auto",description:"The UA determines the set of line-breaking restrictions to use for CJK scripts, and it may vary the restrictions based on the length of the line; e.g., use a less restrictive set of line-break rules for short lines."},{name:"keep-all",description:"Sequences of CJK characters can no longer break on implied break points. This option should only be used where the presence of word separator characters still creates line-breaking opportunities, as in Korean."},{name:"newspaper",description:"Breaks CJK scripts using the least restrictive set of line-breaking rules. Typically used for short lines, such as in newspapers."},{name:"normal",description:"Breaks CJK scripts using a normal set of line-breaking rules."},{name:"strict",description:"Breaks CJK scripts using a more restrictive set of line-breaking rules than 'normal'."}],relevance:50,description:"Specifies what set of line breaking restrictions are in effect within the element.",restrictions:["enum"]},{name:"-ms-overflow-style",browsers:["E","IE10"],values:[{name:"auto",description:"No preference, UA should use the first scrolling method in the list that it supports."},{name:"-ms-autohiding-scrollbar",description:"Indicates the element displays auto-hiding scrollbars during mouse interactions and panning indicators during touch and keyboard interactions."},{name:"none",description:"Indicates the element does not display scrollbars or panning indicators, even when its content overflows."},{name:"scrollbar",description:'Scrollbars are typically narrow strips inserted on one or two edges of an element and which often have arrows to click on and a "thumb" to drag up and down (or left and right) to move the contents of the element.'}],status:"nonstandard",syntax:"auto | none | scrollbar | -ms-autohiding-scrollbar",relevance:0,description:"Specify whether content is clipped when it overflows the element's content area.",restrictions:["enum"]},{name:"-ms-perspective",browsers:["IE10"],values:[{name:"none",description:"No perspective transform is applied."}],relevance:50,description:"Applies the same transform as the perspective(<number>) transform function, except that it applies only to the positioned or transformed children of the element, not to the transform on the element itself.",restrictions:["length"]},{name:"-ms-perspective-origin",browsers:["IE10"],relevance:50,description:"Establishes the origin for the perspective property. It effectively sets the X and Y position at which the viewer appears to be looking at the children of the element.",restrictions:["position","percentage","length"]},{name:"-ms-perspective-origin-x",browsers:["IE10"],relevance:50,description:"Establishes the origin for the perspective property. It effectively sets the X position at which the viewer appears to be looking at the children of the element.",restrictions:["position","percentage","length"]},{name:"-ms-perspective-origin-y",browsers:["IE10"],relevance:50,description:"Establishes the origin for the perspective property. It effectively sets the Y position at which the viewer appears to be looking at the children of the element.",restrictions:["position","percentage","length"]},{name:"-ms-progress-appearance",browsers:["IE10"],values:[{name:"bar"},{name:"ring"}],relevance:50,description:"Gets or sets a value that specifies whether a progress control displays as a bar or a ring.",restrictions:["enum"]},{name:"-ms-scrollbar-3dlight-color",browsers:["IE8"],status:"nonstandard",syntax:"<color>",relevance:0,description:"Determines the color of the top and left edges of the scroll box and scroll arrows of a scroll bar.",restrictions:["color"]},{name:"-ms-scrollbar-arrow-color",browsers:["IE8"],status:"nonstandard",syntax:"<color>",relevance:0,description:"Determines the color of the arrow elements of a scroll arrow.",restrictions:["color"]},{name:"-ms-scrollbar-base-color",browsers:["IE8"],status:"nonstandard",syntax:"<color>",relevance:0,description:"Determines the color of the main elements of a scroll bar, which include the scroll box, track, and scroll arrows.",restrictions:["color"]},{name:"-ms-scrollbar-darkshadow-color",browsers:["IE8"],status:"nonstandard",syntax:"<color>",relevance:0,description:"Determines the color of the gutter of a scroll bar.",restrictions:["color"]},{name:"-ms-scrollbar-face-color",browsers:["IE8"],status:"nonstandard",syntax:"<color>",relevance:0,description:"Determines the color of the scroll box and scroll arrows of a scroll bar.",restrictions:["color"]},{name:"-ms-scrollbar-highlight-color",browsers:["IE8"],status:"nonstandard",syntax:"<color>",relevance:0,description:"Determines the color of the top and left edges of the scroll box and scroll arrows of a scroll bar.",restrictions:["color"]},{name:"-ms-scrollbar-shadow-color",browsers:["IE8"],status:"nonstandard",syntax:"<color>",relevance:0,description:"Determines the color of the bottom and right edges of the scroll box and scroll arrows of a scroll bar.",restrictions:["color"]},{name:"-ms-scrollbar-track-color",browsers:["IE8"],status:"nonstandard",syntax:"<color>",relevance:0,description:"Determines the color of the track element of a scroll bar.",restrictions:["color"]},{name:"-ms-scroll-chaining",browsers:["E","IE10"],values:[{name:"chained"},{name:"none"}],status:"nonstandard",syntax:"chained | none",relevance:0,description:"Gets or sets a value that indicates the scrolling behavior that occurs when a user hits the content boundary during a manipulation.",restrictions:["enum","length"]},{name:"-ms-scroll-limit",browsers:["E","IE10"],values:[{name:"auto"}],status:"nonstandard",syntax:"<'-ms-scroll-limit-x-min'> <'-ms-scroll-limit-y-min'> <'-ms-scroll-limit-x-max'> <'-ms-scroll-limit-y-max'>",relevance:0,description:"Gets or sets a shorthand value that sets values for the -ms-scroll-limit-x-min, -ms-scroll-limit-y-min, -ms-scroll-limit-x-max, and -ms-scroll-limit-y-max properties.",restrictions:["length"]},{name:"-ms-scroll-limit-x-max",browsers:["E","IE10"],values:[{name:"auto"}],status:"nonstandard",syntax:"auto | <length>",relevance:0,description:"Gets or sets a value that specifies the maximum value for the scrollLeft property.",restrictions:["length"]},{name:"-ms-scroll-limit-x-min",browsers:["E","IE10"],status:"nonstandard",syntax:"<length>",relevance:0,description:"Gets or sets a value that specifies the minimum value for the scrollLeft property.",restrictions:["length"]},{name:"-ms-scroll-limit-y-max",browsers:["E","IE10"],values:[{name:"auto"}],status:"nonstandard",syntax:"auto | <length>",relevance:0,description:"Gets or sets a value that specifies the maximum value for the scrollTop property.",restrictions:["length"]},{name:"-ms-scroll-limit-y-min",browsers:["E","IE10"],status:"nonstandard",syntax:"<length>",relevance:0,description:"Gets or sets a value that specifies the minimum value for the scrollTop property.",restrictions:["length"]},{name:"-ms-scroll-rails",browsers:["E","IE10"],values:[{name:"none"},{name:"railed"}],status:"nonstandard",syntax:"none | railed",relevance:0,description:"Gets or sets a value that indicates whether or not small motions perpendicular to the primary axis of motion will result in either changes to both the scrollTop and scrollLeft properties or a change to the primary axis (for instance, either the scrollTop or scrollLeft properties will change, but not both).",restrictions:["enum","length"]},{name:"-ms-scroll-snap-points-x",browsers:["E","IE10"],values:[{name:"snapInterval(100%, 100%)"},{name:"snapList()"}],status:"nonstandard",syntax:"snapInterval( <length-percentage>, <length-percentage> ) | snapList( <length-percentage># )",relevance:0,description:"Gets or sets a value that defines where snap-points will be located along the x-axis.",restrictions:["enum"]},{name:"-ms-scroll-snap-points-y",browsers:["E","IE10"],values:[{name:"snapInterval(100%, 100%)"},{name:"snapList()"}],status:"nonstandard",syntax:"snapInterval( <length-percentage>, <length-percentage> ) | snapList( <length-percentage># )",relevance:0,description:"Gets or sets a value that defines where snap-points will be located along the y-axis.",restrictions:["enum"]},{name:"-ms-scroll-snap-type",browsers:["E","IE10"],values:[{name:"none",description:"The visual viewport of this scroll container must ignore snap points, if any, when scrolled."},{name:"mandatory",description:"The visual viewport of this scroll container is guaranteed to rest on a snap point when there are no active scrolling operations."},{name:"proximity",description:"The visual viewport of this scroll container may come to rest on a snap point at the termination of a scroll at the discretion of the UA given the parameters of the scroll."}],status:"nonstandard",syntax:"none | proximity | mandatory",relevance:0,description:"Gets or sets a value that defines what type of snap-point should be used for the current element. There are two type of snap-points, with the primary difference being whether or not the user is guaranteed to always stop on a snap-point.",restrictions:["enum"]},{name:"-ms-scroll-snap-x",browsers:["E","IE10"],values:[{name:"mandatory"},{name:"none"},{name:"proximity"},{name:"snapInterval(100%, 100%)"},{name:"snapList()"}],status:"nonstandard",syntax:"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-x'>",relevance:0,description:"Gets or sets a shorthand value that sets values for the -ms-scroll-snap-type and -ms-scroll-snap-points-x properties.",restrictions:["enum"]},{name:"-ms-scroll-snap-y",browsers:["E","IE10"],values:[{name:"mandatory"},{name:"none"},{name:"proximity"},{name:"snapInterval(100%, 100%)"},{name:"snapList()"}],status:"nonstandard",syntax:"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-y'>",relevance:0,description:"Gets or sets a shorthand value that sets values for the -ms-scroll-snap-type and -ms-scroll-snap-points-y properties.",restrictions:["enum"]},{name:"-ms-scroll-translation",browsers:["E","IE10"],values:[{name:"none"},{name:"vertical-to-horizontal"}],status:"nonstandard",syntax:"none | vertical-to-horizontal",relevance:0,description:"Gets or sets a value that specifies whether vertical-to-horizontal scroll wheel translation occurs on the specified element.",restrictions:["enum"]},{name:"-ms-text-align-last",browsers:["E","IE8"],values:[{name:"auto"},{name:"center",description:"The inline contents are centered within the line box."},{name:"justify",description:"The text is justified according to the method specified by the 'text-justify' property."},{name:"left",description:"The inline contents are aligned to the left edge of the line box. In vertical text, 'left' aligns to the edge of the line box that would be the start edge for left-to-right text."},{name:"right",description:"The inline contents are aligned to the right edge of the line box. In vertical text, 'right' aligns to the edge of the line box that would be the end edge for left-to-right text."}],relevance:50,description:"Describes how the last line of a block or a line right before a forced line break is aligned when 'text-align' is set to 'justify'.",restrictions:["enum"]},{name:"-ms-text-autospace",browsers:["E","IE8"],values:[{name:"ideograph-alpha",description:"Creates 1/4em extra spacing between runs of ideographic letters and non-ideographic letters, such as Latin-based, Cyrillic, Greek, Arabic or Hebrew."},{name:"ideograph-numeric",description:"Creates 1/4em extra spacing between runs of ideographic letters and numeric glyphs."},{name:"ideograph-parenthesis",description:"Creates extra spacing between normal (non wide) parenthesis and ideographs."},{name:"ideograph-space",description:"Extends the width of the space character while surrounded by ideographs."},{name:"none",description:"No extra space is created."},{name:"punctuation",description:"Creates extra non-breaking spacing around punctuation as required by language-specific typographic conventions."}],status:"nonstandard",syntax:"none | ideograph-alpha | ideograph-numeric | ideograph-parenthesis | ideograph-space",relevance:0,description:"Determines whether or not a full-width punctuation mark character should be trimmed if it appears at the beginning of a line, so that its 'ink' lines up with the first glyph in the line above and below.",restrictions:["enum"]},{name:"-ms-text-combine-horizontal",browsers:["E","IE11"],values:[{name:"all",description:"Attempt to typeset horizontally all consecutive characters within the box such that they take up the space of a single character within the vertical line box."},{name:"digits",description:"Attempt to typeset horizontally each maximal sequence of consecutive ASCII digits (U+0030-U+0039) that has as many or fewer characters than the specified integer such that it takes up the space of a single character within the vertical line box."},{name:"none",description:"No special processing."}],relevance:50,description:"This property specifies the combination of multiple characters into the space of a single character.",restrictions:["enum","integer"]},{name:"-ms-text-justify",browsers:["E","IE8"],values:[{name:"auto",description:"The UA determines the justification algorithm to follow, based on a balance between performance and adequate presentation quality."},{name:"distribute",description:"Justification primarily changes spacing both at word separators and at grapheme cluster boundaries in all scripts except those in the connected and cursive groups. This value is sometimes used in e.g. Japanese, often with the 'text-align-last' property."},{name:"inter-cluster",description:"Justification primarily changes spacing at word separators and at grapheme cluster boundaries in clustered scripts. This value is typically used for Southeast Asian scripts such as Thai."},{name:"inter-ideograph",description:"Justification primarily changes spacing at word separators and at inter-graphemic boundaries in scripts that use no word spaces. This value is typically used for CJK languages."},{name:"inter-word",description:"Justification primarily changes spacing at word separators. This value is typically used for languages that separate words using spaces, like English or (sometimes) Korean."},{name:"kashida",description:"Justification primarily stretches Arabic and related scripts through the use of kashida or other calligraphic elongation."}],relevance:50,description:"Selects the justification algorithm used when 'text-align' is set to 'justify'. The property applies to block containers, but the UA may (but is not required to) also support it on inline elements.",restrictions:["enum"]},{name:"-ms-text-kashida-space",browsers:["E","IE10"],relevance:50,description:"Sets or retrieves the ratio of kashida expansion to white space expansion when justifying lines of text in the object.",restrictions:["percentage"]},{name:"-ms-text-overflow",browsers:["IE10"],values:[{name:"clip",description:"Clip inline content that overflows. Characters may be only partially rendered."},{name:"ellipsis",description:"Render an ellipsis character (U+2026) to represent clipped inline content."}],relevance:50,description:"Text can overflow for example when it is prevented from wrapping",restrictions:["enum"]},{name:"-ms-text-size-adjust",browsers:["E","IE10"],values:[{name:"auto",description:"Renderers must use the default size adjustment when displaying on a small device."},{name:"none",description:"Renderers must not do size adjustment when displaying on a small device."}],relevance:50,description:"Specifies a size adjustment for displaying text content in mobile browsers.",restrictions:["enum","percentage"]},{name:"-ms-text-underline-position",browsers:["E","IE10"],values:[{name:"alphabetic",description:"The underline is aligned with the alphabetic baseline. In this case the underline is likely to cross some descenders."},{name:"auto",description:"The user agent may use any algorithm to determine the underline's position. In horizontal line layout, the underline should be aligned as for alphabetic. In vertical line layout, if the language is set to Japanese or Korean, the underline should be aligned as for over."},{name:"over",description:"The underline is aligned with the 'top' (right in vertical writing) edge of the element's em-box. In this mode, an overline also switches sides."},{name:"under",description:"The underline is aligned with the 'bottom' (left in vertical writing) edge of the element's em-box. In this case the underline usually does not cross the descenders. This is sometimes called 'accounting' underline."}],relevance:50,description:"Sets the position of an underline specified on the same element: it does not affect underlines specified by ancestor elements.This property is typically used in vertical writing contexts such as in Japanese documents where it often desired to have the underline appear 'over' (to the right of) the affected run of text",restrictions:["enum"]},{name:"-ms-touch-action",browsers:["IE10"],values:[{name:"auto",description:"The element is a passive element, with several exceptions."},{name:"double-tap-zoom",description:"The element will zoom on double-tap."},{name:"manipulation",description:"The element is a manipulation-causing element."},{name:"none",description:"The element is a manipulation-blocking element."},{name:"pan-x",description:"The element permits touch-driven panning on the horizontal axis. The touch pan is performed on the nearest ancestor with horizontally scrollable content."},{name:"pan-y",description:"The element permits touch-driven panning on the vertical axis. The touch pan is performed on the nearest ancestor with vertically scrollable content."},{name:"pinch-zoom",description:"The element permits pinch-zooming. The pinch-zoom is performed on the nearest ancestor with zoomable content."}],relevance:50,description:"Gets or sets a value that indicates whether and how a given region can be manipulated by the user.",restrictions:["enum"]},{name:"-ms-touch-select",browsers:["E","IE10"],values:[{name:"grippers",description:"Grippers are always on."},{name:"none",description:"Grippers are always off."}],status:"nonstandard",syntax:"grippers | none",relevance:0,description:"Gets or sets a value that toggles the 'gripper' visual elements that enable touch text selection.",restrictions:["enum"]},{name:"-ms-transform",browsers:["IE9-9"],values:[{name:"matrix()",description:"Specifies a 2D transformation in the form of a transformation matrix of six values. matrix(a,b,c,d,e,f) is equivalent to applying the transformation matrix [a b c d e f]"},{name:"matrix3d()",description:"Specifies a 3D transformation as a 4x4 homogeneous matrix of 16 values in column-major order."},{name:"none"},{name:"rotate()",description:"Specifies a 2D rotation by the angle specified in the parameter about the origin of the element, as defined by the transform-origin property."},{name:"rotate3d()",description:"Specifies a clockwise 3D rotation by the angle specified in last parameter about the [x,y,z] direction vector described by the first 3 parameters."},{name:"rotateX('angle')",description:"Specifies a clockwise rotation by the given angle about the X axis."},{name:"rotateY('angle')",description:"Specifies a clockwise rotation by the given angle about the Y axis."},{name:"rotateZ('angle')",description:"Specifies a clockwise rotation by the given angle about the Z axis."},{name:"scale()",description:"Specifies a 2D scale operation by the [sx,sy] scaling vector described by the 2 parameters. If the second parameter is not provided, it is takes a value equal to the first."},{name:"scale3d()",description:"Specifies a 3D scale operation by the [sx,sy,sz] scaling vector described by the 3 parameters."},{name:"scaleX()",description:"Specifies a scale operation using the [sx,1] scaling vector, where sx is given as the parameter."},{name:"scaleY()",description:"Specifies a scale operation using the [sy,1] scaling vector, where sy is given as the parameter."},{name:"scaleZ()",description:"Specifies a scale operation using the [1,1,sz] scaling vector, where sz is given as the parameter."},{name:"skew()",description:"Specifies a skew transformation along the X and Y axes. The first angle parameter specifies the skew on the X axis. The second angle parameter specifies the skew on the Y axis. If the second parameter is not given then a value of 0 is used for the Y angle (ie: no skew on the Y axis)."},{name:"skewX()",description:"Specifies a skew transformation along the X axis by the given angle."},{name:"skewY()",description:"Specifies a skew transformation along the Y axis by the given angle."},{name:"translate()",description:"Specifies a 2D translation by the vector [tx, ty], where tx is the first translation-value parameter and ty is the optional second translation-value parameter."},{name:"translate3d()",description:"Specifies a 3D translation by the vector [tx,ty,tz], with tx, ty and tz being the first, second and third translation-value parameters respectively."},{name:"translateX()",description:"Specifies a translation by the given amount in the X direction."},{name:"translateY()",description:"Specifies a translation by the given amount in the Y direction."},{name:"translateZ()",description:"Specifies a translation by the given amount in the Z direction. Note that percentage values are not allowed in the translateZ translation-value, and if present are evaluated as 0."}],relevance:50,description:"A two-dimensional transformation is applied to an element through the 'transform' property. This property contains a list of transform functions similar to those allowed by SVG.",restrictions:["enum"]},{name:"-ms-transform-origin",browsers:["IE9-9"],relevance:50,description:"Establishes the origin of transformation for an element.",restrictions:["position","length","percentage"]},{name:"-ms-transform-origin-x",browsers:["IE10"],relevance:50,description:"The x coordinate of the origin for transforms applied to an element with respect to its border box.",restrictions:["length","percentage"]},{name:"-ms-transform-origin-y",browsers:["IE10"],relevance:50,description:"The y coordinate of the origin for transforms applied to an element with respect to its border box.",restrictions:["length","percentage"]},{name:"-ms-transform-origin-z",browsers:["IE10"],relevance:50,description:"The z coordinate of the origin for transforms applied to an element with respect to its border box.",restrictions:["length","percentage"]},{name:"-ms-user-select",browsers:["E","IE10"],values:[{name:"element"},{name:"none"},{name:"text"}],status:"nonstandard",syntax:"none | element | text",relevance:0,description:"Controls the appearance of selection.",restrictions:["enum"]},{name:"-ms-word-break",browsers:["IE8"],values:[{name:"break-all",description:"Lines may break between any two grapheme clusters for non-CJK scripts."},{name:"keep-all",description:"Block characters can no longer create implied break points."},{name:"normal",description:"Breaks non-CJK scripts according to their own rules."}],relevance:50,description:"Specifies line break opportunities for non-CJK scripts.",restrictions:["enum"]},{name:"-ms-word-wrap",browsers:["IE8"],values:[{name:"break-word",description:"An unbreakable 'word' may be broken at an arbitrary point if there are no otherwise-acceptable break points in the line."},{name:"normal",description:"Lines may break only at allowed break points."}],relevance:50,description:"Specifies whether the UA may break within a word to prevent overflow when an otherwise-unbreakable string is too long to fit.",restrictions:["enum"]},{name:"-ms-wrap-flow",browsers:["E","IE10"],values:[{name:"auto",description:"For floats an exclusion is created, for all other elements an exclusion is not created."},{name:"both",description:"Inline flow content can flow on all sides of the exclusion."},{name:"clear",description:"Inline flow content can only wrap on top and bottom of the exclusion and must leave the areas to the start and end edges of the exclusion box empty."},{name:"end",description:"Inline flow content can wrap on the end side of the exclusion area but must leave the area to the start edge of the exclusion area empty."},{name:"maximum",description:"Inline flow content can wrap on the side of the exclusion with the largest available space for the given line, and must leave the other side of the exclusion empty."},{name:"minimum",description:"Inline flow content can flow around the edge of the exclusion with the smallest available space within the flow content's containing block, and must leave the other edge of the exclusion empty."},{name:"start",description:"Inline flow content can wrap on the start edge of the exclusion area but must leave the area to end edge of the exclusion area empty."}],status:"nonstandard",syntax:"auto | both | start | end | maximum | clear",relevance:0,description:"An element becomes an exclusion when its 'wrap-flow' property has a computed value other than 'auto'.",restrictions:["enum"]},{name:"-ms-wrap-margin",browsers:["E","IE10"],status:"nonstandard",syntax:"<length>",relevance:0,description:"Gets or sets a value that is used to offset the inner wrap shape from other shapes.",restrictions:["length","percentage"]},{name:"-ms-wrap-through",browsers:["E","IE10"],values:[{name:"none",description:"The exclusion element does not inherit its parent node's wrapping context. Its descendants are only subject to exclusion shapes defined inside the element."},{name:"wrap",description:"The exclusion element inherits its parent node's wrapping context. Its descendant inline content wraps around exclusions defined outside the element."}],status:"nonstandard",syntax:"wrap | none",relevance:0,description:"Specifies if an element inherits its parent wrapping context. In other words if it is subject to the exclusions defined outside the element.",restrictions:["enum"]},{name:"-ms-writing-mode",browsers:["IE8"],values:[{name:"bt-lr"},{name:"bt-rl"},{name:"lr-bt"},{name:"lr-tb"},{name:"rl-bt"},{name:"rl-tb"},{name:"tb-lr"},{name:"tb-rl"}],relevance:50,description:"Shorthand property for both 'direction' and 'block-progression'.",restrictions:["enum"]},{name:"-ms-zoom",browsers:["IE8"],values:[{name:"normal"}],relevance:50,description:"Sets or retrieves the magnification scale of the object.",restrictions:["enum","integer","number","percentage"]},{name:"-ms-zoom-animation",browsers:["IE10"],values:[{name:"default"},{name:"none"}],relevance:50,description:"Gets or sets a value that indicates whether an animation is used when zooming.",restrictions:["enum"]},{name:"nav-down",browsers:["O9.5"],values:[{name:"auto",description:"The user agent automatically determines which element to navigate the focus to in response to directional navigational input."},{name:"current",description:"Indicates that the user agent should target the frame that the element is in."},{name:"root",description:"Indicates that the user agent should target the full window."}],relevance:50,description:"Provides an way to control directional focus navigation.",restrictions:["enum","identifier","string"]},{name:"nav-index",browsers:["O9.5"],values:[{name:"auto",description:"The element's sequential navigation order is assigned automatically by the user agent."}],relevance:50,description:"Provides an input-method-neutral way of specifying the sequential navigation order (also known as 'tabbing order').",restrictions:["number"]},{name:"nav-left",browsers:["O9.5"],values:[{name:"auto",description:"The user agent automatically determines which element to navigate the focus to in response to directional navigational input."},{name:"current",description:"Indicates that the user agent should target the frame that the element is in."},{name:"root",description:"Indicates that the user agent should target the full window."}],relevance:50,description:"Provides an way to control directional focus navigation.",restrictions:["enum","identifier","string"]},{name:"nav-right",browsers:["O9.5"],values:[{name:"auto",description:"The user agent automatically determines which element to navigate the focus to in response to directional navigational input."},{name:"current",description:"Indicates that the user agent should target the frame that the element is in."},{name:"root",description:"Indicates that the user agent should target the full window."}],relevance:50,description:"Provides an way to control directional focus navigation.",restrictions:["enum","identifier","string"]},{name:"nav-up",browsers:["O9.5"],values:[{name:"auto",description:"The user agent automatically determines which element to navigate the focus to in response to directional navigational input."},{name:"current",description:"Indicates that the user agent should target the frame that the element is in."},{name:"root",description:"Indicates that the user agent should target the full window."}],relevance:50,description:"Provides an way to control directional focus navigation.",restrictions:["enum","identifier","string"]},{name:"negative",browsers:["FF33"],atRule:"@counter-style",syntax:"<symbol> <symbol>?",relevance:50,description:"@counter-style descriptor. Defines how to alter the representation when the counter value is negative.",restrictions:["image","identifier","string"]},{name:"-o-animation",browsers:["O12"],values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"backwards",description:"The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."},{name:"both",description:"Both forwards and backwards fill modes are applied."},{name:"forwards",description:"The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."},{name:"infinite",description:"Causes the animation to repeat forever."},{name:"none",description:"No animation is performed"},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],relevance:50,description:"Shorthand property combines six of the animation properties into a single property.",restrictions:["time","enum","timing-function","identifier","number"]},{name:"-o-animation-delay",browsers:["O12"],relevance:50,description:"Defines when the animation will start.",restrictions:["time"]},{name:"-o-animation-direction",browsers:["O12"],values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],relevance:50,description:"Defines whether or not the animation should play in reverse on alternate cycles.",restrictions:["enum"]},{name:"-o-animation-duration",browsers:["O12"],relevance:50,description:"Defines the length of time that an animation takes to complete one cycle.",restrictions:["time"]},{name:"-o-animation-fill-mode",browsers:["O12"],values:[{name:"backwards",description:"The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."},{name:"both",description:"Both forwards and backwards fill modes are applied."},{name:"forwards",description:"The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."},{name:"none",description:"There is no change to the property value between the time the animation is applied and the time the animation begins playing or after the animation completes."}],relevance:50,description:"Defines what values are applied by the animation outside the time it is executing.",restrictions:["enum"]},{name:"-o-animation-iteration-count",browsers:["O12"],values:[{name:"infinite",description:"Causes the animation to repeat forever."}],relevance:50,description:"Defines the number of times an animation cycle is played. The default value is one, meaning the animation will play from beginning to end once.",restrictions:["number","enum"]},{name:"-o-animation-name",browsers:["O12"],values:[{name:"none",description:"No animation is performed"}],relevance:50,description:"Defines a list of animations that apply. Each name is used to select the keyframe at-rule that provides the property values for the animation.",restrictions:["identifier","enum"]},{name:"-o-animation-play-state",browsers:["O12"],values:[{name:"paused",description:"A running animation will be paused."},{name:"running",description:"Resume playback of a paused animation."}],relevance:50,description:"Defines whether the animation is running or paused.",restrictions:["enum"]},{name:"-o-animation-timing-function",browsers:["O12"],relevance:50,description:"Describes how the animation will progress over one cycle of its duration. See the 'transition-timing-function'.",restrictions:["timing-function"]},{name:"object-fit",browsers:["E79","FF36","S10","C32","O19"],values:[{name:"contain",description:"The replaced content is sized to maintain its aspect ratio while fitting within the element's content box: its concrete object size is resolved as a contain constraint against the element's used width and height."},{name:"cover",description:"The replaced content is sized to maintain its aspect ratio while filling the element's entire content box: its concrete object size is resolved as a cover constraint against the element's used width and height."},{name:"fill",description:"The replaced content is sized to fill the element's content box: the object's concrete object size is the element's used width and height."},{name:"none",description:"The replaced content is not resized to fit inside the element's content box"},{name:"scale-down",description:"Size the content as if 'none' or 'contain' were specified, whichever would result in a smaller concrete object size."}],syntax:"fill | contain | cover | none | scale-down",relevance:72,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/object-fit"}],description:"Specifies how the contents of a replaced element should be scaled relative to the box established by its used height and width.",restrictions:["enum"]},{name:"object-position",browsers:["E79","FF36","S10","C32","O19"],syntax:"<position>",relevance:57,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/object-position"}],description:"Determines the alignment of the replaced element inside its box.",restrictions:["position","length","percentage"]},{name:"-o-border-image",browsers:["O11.6"],values:[{name:"auto",description:"If 'auto' is specified then the border image width is the intrinsic width or height (whichever is applicable) of the corresponding image slice. If the image does not have the required intrinsic dimension then the corresponding border-width is used instead."},{name:"fill",description:"Causes the middle part of the border-image to be preserved."},{name:"none"},{name:"repeat",description:"The image is tiled (repeated) to fill the area."},{name:"round",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the image is rescaled so that it does."},{name:"space",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the extra space is distributed around the tiles."},{name:"stretch",description:"The image is stretched to fill the area."}],relevance:50,description:"Shorthand property for setting 'border-image-source', 'border-image-slice', 'border-image-width', 'border-image-outset' and 'border-image-repeat'. Omitted values are set to their initial values.",restrictions:["length","percentage","number","image","enum"]},{name:"-o-object-fit",browsers:["O10.6"],values:[{name:"contain",description:"The replaced content is sized to maintain its aspect ratio while fitting within the element's content box: its concrete object size is resolved as a contain constraint against the element's used width and height."},{name:"cover",description:"The replaced content is sized to maintain its aspect ratio while filling the element's entire content box: its concrete object size is resolved as a cover constraint against the element's used width and height."},{name:"fill",description:"The replaced content is sized to fill the element's content box: the object's concrete object size is the element's used width and height."},{name:"none",description:"The replaced content is not resized to fit inside the element's content box"},{name:"scale-down",description:"Size the content as if 'none' or 'contain' were specified, whichever would result in a smaller concrete object size."}],relevance:50,description:"Specifies how the contents of a replaced element should be scaled relative to the box established by its used height and width.",restrictions:["enum"]},{name:"-o-object-position",browsers:["O10.6"],relevance:50,description:"Determines the alignment of the replaced element inside its box.",restrictions:["position","length","percentage"]},{name:"opacity",browsers:["E12","FF1","S2","C1","IE9","O9"],syntax:"<alpha-value>",relevance:92,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/opacity"}],description:"Opacity of an element's text, where 1 is opaque and 0 is entirely transparent.",restrictions:["number(0-1)"]},{name:"order",browsers:["E12","FF20","S9","C29","IE11","O12.1"],syntax:"<integer>",relevance:67,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/order"}],description:"Controls the order in which children of a flex container appear within the flex container, by assigning them to ordinal groups.",restrictions:["integer"]},{name:"orphans",browsers:["E12","S1.3","C25","IE8","O9.2"],syntax:"<integer>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/orphans"}],description:"Specifies the minimum number of line boxes in a block container that must be left in a fragment before a fragmentation break.",restrictions:["integer"]},{name:"-o-table-baseline",browsers:["O9.6"],relevance:50,description:"Determines which row of a inline-table should be used as baseline of inline-table.",restrictions:["integer"]},{name:"-o-tab-size",browsers:["O10.6"],relevance:50,description:"This property determines the width of the tab character (U+0009), in space characters (U+0020), when rendered.",restrictions:["integer","length"]},{name:"-o-text-overflow",browsers:["O10"],values:[{name:"clip",description:"Clip inline content that overflows. Characters may be only partially rendered."},{name:"ellipsis",description:"Render an ellipsis character (U+2026) to represent clipped inline content."}],relevance:50,description:"Text can overflow for example when it is prevented from wrapping",restrictions:["enum"]},{name:"-o-transform",browsers:["O10.5"],values:[{name:"matrix()",description:"Specifies a 2D transformation in the form of a transformation matrix of six values. matrix(a,b,c,d,e,f) is equivalent to applying the transformation matrix [a b c d e f]"},{name:"matrix3d()",description:"Specifies a 3D transformation as a 4x4 homogeneous matrix of 16 values in column-major order."},{name:"none"},{name:"rotate()",description:"Specifies a 2D rotation by the angle specified in the parameter about the origin of the element, as defined by the transform-origin property."},{name:"rotate3d()",description:"Specifies a clockwise 3D rotation by the angle specified in last parameter about the [x,y,z] direction vector described by the first 3 parameters."},{name:"rotateX('angle')",description:"Specifies a clockwise rotation by the given angle about the X axis."},{name:"rotateY('angle')",description:"Specifies a clockwise rotation by the given angle about the Y axis."},{name:"rotateZ('angle')",description:"Specifies a clockwise rotation by the given angle about the Z axis."},{name:"scale()",description:"Specifies a 2D scale operation by the [sx,sy] scaling vector described by the 2 parameters. If the second parameter is not provided, it is takes a value equal to the first."},{name:"scale3d()",description:"Specifies a 3D scale operation by the [sx,sy,sz] scaling vector described by the 3 parameters."},{name:"scaleX()",description:"Specifies a scale operation using the [sx,1] scaling vector, where sx is given as the parameter."},{name:"scaleY()",description:"Specifies a scale operation using the [sy,1] scaling vector, where sy is given as the parameter."},{name:"scaleZ()",description:"Specifies a scale operation using the [1,1,sz] scaling vector, where sz is given as the parameter."},{name:"skew()",description:"Specifies a skew transformation along the X and Y axes. The first angle parameter specifies the skew on the X axis. The second angle parameter specifies the skew on the Y axis. If the second parameter is not given then a value of 0 is used for the Y angle (ie: no skew on the Y axis)."},{name:"skewX()",description:"Specifies a skew transformation along the X axis by the given angle."},{name:"skewY()",description:"Specifies a skew transformation along the Y axis by the given angle."},{name:"translate()",description:"Specifies a 2D translation by the vector [tx, ty], where tx is the first translation-value parameter and ty is the optional second translation-value parameter."},{name:"translate3d()",description:"Specifies a 3D translation by the vector [tx,ty,tz], with tx, ty and tz being the first, second and third translation-value parameters respectively."},{name:"translateX()",description:"Specifies a translation by the given amount in the X direction."},{name:"translateY()",description:"Specifies a translation by the given amount in the Y direction."},{name:"translateZ()",description:"Specifies a translation by the given amount in the Z direction. Note that percentage values are not allowed in the translateZ translation-value, and if present are evaluated as 0."}],relevance:50,description:"A two-dimensional transformation is applied to an element through the 'transform' property. This property contains a list of transform functions similar to those allowed by SVG.",restrictions:["enum"]},{name:"-o-transform-origin",browsers:["O10.5"],relevance:50,description:"Establishes the origin of transformation for an element.",restrictions:["positon","length","percentage"]},{name:"-o-transition",browsers:["O11.5"],values:[{name:"all",description:"Every property that is able to undergo a transition will do so."},{name:"none",description:"No property will transition."}],relevance:50,description:"Shorthand property combines four of the transition properties into a single property.",restrictions:["time","property","timing-function","enum"]},{name:"-o-transition-delay",browsers:["O11.5"],relevance:50,description:"Defines when the transition will start. It allows a transition to begin execution some period of time from when it is applied.",restrictions:["time"]},{name:"-o-transition-duration",browsers:["O11.5"],relevance:50,description:"Specifies how long the transition from the old value to the new value should take.",restrictions:["time"]},{name:"-o-transition-property",browsers:["O11.5"],values:[{name:"all",description:"Every property that is able to undergo a transition will do so."},{name:"none",description:"No property will transition."}],relevance:50,description:"Specifies the name of the CSS property to which the transition is applied.",restrictions:["property"]},{name:"-o-transition-timing-function",browsers:["O11.5"],relevance:50,description:"Describes how the intermediate values used during a transition will be calculated.",restrictions:["timing-function"]},{name:"offset-block-end",browsers:["FF41"],values:[{name:"auto",description:"For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well."}],relevance:50,description:"Logical 'bottom'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"offset-block-start",browsers:["FF41"],values:[{name:"auto",description:"For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well."}],relevance:50,description:"Logical 'top'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"offset-inline-end",browsers:["FF41"],values:[{name:"auto",description:"For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well."}],relevance:50,description:"Logical 'right'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"offset-inline-start",browsers:["FF41"],values:[{name:"auto",description:"For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well."}],relevance:50,description:"Logical 'left'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"outline",browsers:["E94","FF88","S16.4","C94","IE8","O80"],values:[{name:"auto",description:"Permits the user agent to render a custom outline style, typically the default platform style."},{name:"invert",browsers:["E94","FF88","S16.4","C94","IE8","O80"],description:"Performs a color inversion on the pixels on the screen."}],syntax:"[ <'outline-color'> || <'outline-style'> || <'outline-width'> ]",relevance:88,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/outline"}],description:"Shorthand property for 'outline-style', 'outline-width', and 'outline-color'.",restrictions:["length","line-width","line-style","color","enum"]},{name:"outline-color",browsers:["E12","FF1.5","S1.2","C1","IE8","O7"],values:[{name:"invert",browsers:["E12","FF1.5","S1.2","C1","IE8","O7"],description:"Performs a color inversion on the pixels on the screen."}],syntax:"auto | <color>",relevance:61,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/outline-color"}],description:"The color of the outline.",restrictions:["enum","color"]},{name:"outline-offset",browsers:["E15","FF1.5","S1.2","C1","O9.5"],syntax:"<length>",relevance:69,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/outline-offset"}],description:"Offset the outline and draw it beyond the border edge.",restrictions:["length"]},{name:"outline-style",browsers:["E12","FF1.5","S1.2","C1","IE8","O7"],values:[{name:"auto",description:"Permits the user agent to render a custom outline style, typically the default platform style."}],syntax:"auto | <'border-style'>",relevance:61,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/outline-style"}],description:"Style of the outline.",restrictions:["line-style","enum"]},{name:"outline-width",browsers:["E12","FF1.5","S1.2","C1","IE8","O7"],syntax:"<line-width>",relevance:62,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/outline-width"}],description:"Width of the outline.",restrictions:["length","line-width"]},{name:"overflow",browsers:["E12","FF1","S1","C1","IE4","O7"],values:[{name:"auto",description:"The behavior of the 'auto' value is UA-dependent, but should cause a scrolling mechanism to be provided for overflowing boxes."},{name:"hidden",description:"Content is clipped and no scrolling mechanism should be provided to view the content outside the clipping region."},{name:"-moz-hidden-unscrollable",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"Same as the standardized 'clip', except doesn't establish a block formatting context."},{name:"scroll",description:"Content is clipped and if the user agent uses a scrolling mechanism that is visible on the screen (such as a scroll bar or a panner), that mechanism should be displayed for a box whether or not any of its content is clipped."},{name:"visible",description:"Content is not clipped, i.e., it may be rendered outside the content box."}],syntax:"[ visible | hidden | clip | scroll | auto ]{1,2}",relevance:93,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overflow"}],description:"Shorthand for setting 'overflow-x' and 'overflow-y'.",restrictions:["enum"]},{name:"overflow-wrap",browsers:["E18","FF49","S7","C23","IE5.5","O12.1"],values:[{name:"break-word",description:"An otherwise unbreakable sequence of characters may be broken at an arbitrary point if there are no otherwise-acceptable break points in the line."},{name:"normal",description:"Lines may break only at allowed break points."}],syntax:"normal | break-word | anywhere",relevance:65,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overflow-wrap"}],description:"Specifies whether the UA may break within a word to prevent overflow when an otherwise-unbreakable string is too long to fit within the line box.",restrictions:["enum"]},{name:"overflow-x",browsers:["E12","FF3.5","S3","C1","IE5","O9.5"],values:[{name:"auto",description:"The behavior of the 'auto' value is UA-dependent, but should cause a scrolling mechanism to be provided for overflowing boxes."},{name:"hidden",description:"Content is clipped and no scrolling mechanism should be provided to view the content outside the clipping region."},{name:"scroll",description:"Content is clipped and if the user agent uses a scrolling mechanism that is visible on the screen (such as a scroll bar or a panner), that mechanism should be displayed for a box whether or not any of its content is clipped."},{name:"visible",description:"Content is not clipped, i.e., it may be rendered outside the content box."}],syntax:"visible | hidden | clip | scroll | auto",relevance:81,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overflow-x"}],description:"Specifies the handling of overflow in the horizontal direction.",restrictions:["enum"]},{name:"overflow-y",browsers:["E12","FF3.5","S3","C1","IE5","O9.5"],values:[{name:"auto",description:"The behavior of the 'auto' value is UA-dependent, but should cause a scrolling mechanism to be provided for overflowing boxes."},{name:"hidden",description:"Content is clipped and no scrolling mechanism should be provided to view the content outside the clipping region."},{name:"scroll",description:"Content is clipped and if the user agent uses a scrolling mechanism that is visible on the screen (such as a scroll bar or a panner), that mechanism should be displayed for a box whether or not any of its content is clipped."},{name:"visible",description:"Content is not clipped, i.e., it may be rendered outside the content box."}],syntax:"visible | hidden | clip | scroll | auto",relevance:82,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overflow-y"}],description:"Specifies the handling of overflow in the vertical direction.",restrictions:["enum"]},{name:"pad",browsers:["FF33"],atRule:"@counter-style",syntax:"<integer> && <symbol>",relevance:50,description:'@counter-style descriptor. Specifies a "fixed-width" counter style, where representations shorter than the pad value are padded with a particular <symbol>',restrictions:["integer","image","string","identifier"]},{name:"padding",browsers:["E12","FF1","S1","C1","IE4","O3.5"],values:[],syntax:"[ <length> | <percentage> ]{1,4}",relevance:95,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding"}],description:"Shorthand property to set values for the thickness of the padding area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. The value may not be negative.",restrictions:["length","percentage"]},{name:"padding-bottom",browsers:["E12","FF1","S1","C1","IE4","O3.5"],syntax:"<length> | <percentage>",relevance:88,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding-bottom"}],description:"Shorthand property to set values for the thickness of the padding area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. The value may not be negative.",restrictions:["length","percentage"]},{name:"padding-block-end",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'padding-left'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding-block-end"}],description:"Logical 'padding-bottom'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"padding-block-start",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'padding-left'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding-block-start"}],description:"Logical 'padding-top'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"padding-inline-end",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'padding-left'>",relevance:55,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding-inline-end"}],description:"Logical 'padding-right'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"padding-inline-start",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'padding-left'>",relevance:56,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding-inline-start"}],description:"Logical 'padding-left'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"padding-left",browsers:["E12","FF1","S1","C1","IE4","O3.5"],syntax:"<length> | <percentage>",relevance:89,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding-left"}],description:"Shorthand property to set values for the thickness of the padding area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. The value may not be negative.",restrictions:["length","percentage"]},{name:"padding-right",browsers:["E12","FF1","S1","C1","IE4","O3.5"],syntax:"<length> | <percentage>",relevance:88,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding-right"}],description:"Shorthand property to set values for the thickness of the padding area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. The value may not be negative.",restrictions:["length","percentage"]},{name:"padding-top",browsers:["E12","FF1","S1","C1","IE4","O3.5"],syntax:"<length> | <percentage>",relevance:89,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding-top"}],description:"Shorthand property to set values for the thickness of the padding area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. The value may not be negative.",restrictions:["length","percentage"]},{name:"page-break-after",browsers:["E12","FF1","S1.2","C1","IE4","O7"],values:[{name:"always",description:"Always force a page break after the generated box."},{name:"auto",description:"Neither force nor forbid a page break after generated box."},{name:"avoid",description:"Avoid a page break after the generated box."},{name:"left",description:"Force one or two page breaks after the generated box so that the next page is formatted as a left page."},{name:"right",description:"Force one or two page breaks after the generated box so that the next page is formatted as a right page."}],syntax:"auto | always | avoid | left | right | recto | verso",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/page-break-after"}],description:"Defines rules for page breaks after an element.",restrictions:["enum"]},{name:"page-break-before",browsers:["E12","FF1","S1.2","C1","IE4","O7"],values:[{name:"always",description:"Always force a page break before the generated box."},{name:"auto",description:"Neither force nor forbid a page break before the generated box."},{name:"avoid",description:"Avoid a page break before the generated box."},{name:"left",description:"Force one or two page breaks before the generated box so that the next page is formatted as a left page."},{name:"right",description:"Force one or two page breaks before the generated box so that the next page is formatted as a right page."}],syntax:"auto | always | avoid | left | right | recto | verso",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/page-break-before"}],description:"Defines rules for page breaks before an element.",restrictions:["enum"]},{name:"page-break-inside",browsers:["E12","FF19","S1.3","C1","IE8","O7"],values:[{name:"auto",description:"Neither force nor forbid a page break inside the generated box."},{name:"avoid",description:"Avoid a page break inside the generated box."}],syntax:"auto | avoid",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/page-break-inside"}],description:"Defines rules for page breaks inside an element.",restrictions:["enum"]},{name:"paint-order",browsers:["E79","FF60","S11","C35","O22"],values:[{name:"fill"},{name:"markers"},{name:"normal",description:"The element is painted with the standard order of painting operations: the 'fill' is painted first, then its 'stroke' and finally its markers."},{name:"stroke"}],syntax:"normal | [ fill || stroke || markers ]",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/paint-order"}],description:"Controls the order that the three paint operations that shapes and text are rendered with: their fill, their stroke and any markers they might have.",restrictions:["enum"]},{name:"perspective",browsers:["E12","FF16","S9","C36","IE10","O23"],values:[{name:"none",description:"No perspective transform is applied."}],syntax:"none | <length>",relevance:55,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/perspective"}],description:"Applies the same transform as the perspective(<number>) transform function, except that it applies only to the positioned or transformed children of the element, not to the transform on the element itself.",restrictions:["length","enum"]},{name:"perspective-origin",browsers:["E12","FF16","S9","C36","IE10","O23"],syntax:"<position>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/perspective-origin"}],description:"Establishes the origin for the perspective property. It effectively sets the X and Y position at which the viewer appears to be looking at the children of the element.",restrictions:["position","percentage","length"]},{name:"pointer-events",browsers:["E12","FF1.5","S4","C1","IE11","O9"],values:[{name:"all",description:"The given element can be the target element for pointer events whenever the pointer is over either the interior or the perimeter of the element."},{name:"fill",description:"The given element can be the target element for pointer events whenever the pointer is over the interior of the element."},{name:"none",description:"The given element does not receive pointer events."},{name:"painted",description:'The given element can be the target element for pointer events when the pointer is over a "painted" area. '},{name:"stroke",description:"The given element can be the target element for pointer events whenever the pointer is over the perimeter of the element."},{name:"visible",description:"The given element can be the target element for pointer events when the 'visibility' property is set to visible and the pointer is over either the interior or the perimeter of the element."},{name:"visibleFill",description:"The given element can be the target element for pointer events when the 'visibility' property is set to visible and when the pointer is over the interior of the element."},{name:"visiblePainted",description:"The given element can be the target element for pointer events when the 'visibility' property is set to visible and when the pointer is over a 'painted' area."},{name:"visibleStroke",description:"The given element can be the target element for pointer events when the 'visibility' property is set to visible and when the pointer is over the perimeter of the element."}],syntax:"auto | none | visiblePainted | visibleFill | visibleStroke | visible | painted | fill | stroke | all | inherit",relevance:82,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/pointer-events"}],description:"Specifies under what circumstances a given element can be the target element for a pointer event.",restrictions:["enum"]},{name:"position",browsers:["E12","FF1","S1","C1","IE4","O4"],values:[{name:"absolute",description:"The box's position (and possibly size) is specified with the 'top', 'right', 'bottom', and 'left' properties. These properties specify offsets with respect to the box's 'containing block'."},{name:"fixed",description:"The box's position is calculated according to the 'absolute' model, but in addition, the box is fixed with respect to some reference. As with the 'absolute' model, the box's margins do not collapse with any other margins."},{name:"-ms-page",browsers:["E12","FF1","S1","C1","IE4","O4"],description:"The box's position is calculated according to the 'absolute' model."},{name:"relative",description:"The box's position is calculated according to the normal flow (this is called the position in normal flow). Then the box is offset relative to its normal position."},{name:"static",description:"The box is a normal box, laid out according to the normal flow. The 'top', 'right', 'bottom', and 'left' properties do not apply."},{name:"sticky",browsers:["E12","FF1","S1","C1","IE4","O4"],description:"The box's position is calculated according to the normal flow. Then the box is offset relative to its flow root and containing block and in all cases, including table elements, does not affect the position of any following boxes."},{name:"-webkit-sticky",browsers:["E12","FF1","S1","C1","IE4","O4"],description:"The box's position is calculated according to the normal flow. Then the box is offset relative to its flow root and containing block and in all cases, including table elements, does not affect the position of any following boxes."}],syntax:"static | relative | absolute | sticky | fixed",relevance:95,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/position"}],description:"The position CSS property sets how an element is positioned in a document. The top, right, bottom, and left properties determine the final location of positioned elements.",restrictions:["enum"]},{name:"prefix",browsers:["FF33"],atRule:"@counter-style",syntax:"<symbol>",relevance:50,description:"@counter-style descriptor. Specifies a <symbol> that is prepended to the marker representation.",restrictions:["image","string","identifier"]},{name:"quotes",browsers:["E12","FF1.5","S9","C11","IE8","O4"],values:[{name:"none",description:"The 'open-quote' and 'close-quote' values of the 'content' property produce no quotations marks, as if they were 'no-open-quote' and 'no-close-quote' respectively."}],syntax:"none | auto | [ <string> <string> ]+",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/quotes"}],description:"Specifies quotation marks for any number of embedded quotations.",restrictions:["string"]},{name:"range",browsers:["FF33"],values:[{name:"auto",description:"The range depends on the counter system."},{name:"infinite",description:"If used as the first value in a range, it represents negative infinity; if used as the second value, it represents positive infinity."}],atRule:"@counter-style",syntax:"[ [ <integer> | infinite ]{2} ]# | auto",relevance:50,description:"@counter-style descriptor. Defines the ranges over which the counter style is defined.",restrictions:["integer","enum"]},{name:"resize",browsers:["E79","FF4","S3","C1","O12.1"],values:[{name:"both",description:"The UA presents a bidirectional resizing mechanism to allow the user to adjust both the height and the width of the element."},{name:"horizontal",description:"The UA presents a unidirectional horizontal resizing mechanism to allow the user to adjust only the width of the element."},{name:"none",description:"The UA does not present a resizing mechanism on the element, and the user is given no direct manipulation mechanism to resize the element."},{name:"vertical",description:"The UA presents a unidirectional vertical resizing mechanism to allow the user to adjust only the height of the element."}],syntax:"none | both | horizontal | vertical | block | inline",relevance:66,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/resize"}],description:"Specifies whether or not an element is resizable by the user, and if so, along which axis/axes.",restrictions:["enum"]},{name:"right",browsers:["E12","FF1","S1","C1","IE5.5","O5"],values:[{name:"auto",description:"For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well"}],syntax:"<length> | <percentage> | auto",relevance:91,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/right"}],description:"Specifies how far an absolutely positioned box's right margin edge is offset to the left of the right edge of the box's 'containing block'.",restrictions:["length","percentage"]},{name:"ruby-align",browsers:["FF38","Spreview"],values:[{name:"auto",browsers:["FF38","Spreview"],description:"The user agent determines how the ruby contents are aligned. This is the initial value."},{name:"center",description:"The ruby content is centered within its box."},{name:"distribute-letter",browsers:["FF38","Spreview"],description:"If the width of the ruby text is smaller than that of the base, then the ruby text contents are evenly distributed across the width of the base, with the first and last ruby text glyphs lining up with the corresponding first and last base glyphs. If the width of the ruby text is at least the width of the base, then the letters of the base are evenly distributed across the width of the ruby text."},{name:"distribute-space",browsers:["FF38","Spreview"],description:"If the width of the ruby text is smaller than that of the base, then the ruby text contents are evenly distributed across the width of the base, with a certain amount of white space preceding the first and following the last character in the ruby text. That amount of white space is normally equal to half the amount of inter-character space of the ruby text."},{name:"left",description:"The ruby text content is aligned with the start edge of the base."},{name:"line-edge",browsers:["FF38","Spreview"],description:"If the ruby text is not adjacent to a line edge, it is aligned as in 'auto'. If it is adjacent to a line edge, then it is still aligned as in auto, but the side of the ruby text that touches the end of the line is lined up with the corresponding edge of the base."},{name:"right",browsers:["FF38","Spreview"],description:"The ruby text content is aligned with the end edge of the base."},{name:"start",browsers:["FF38","Spreview"],description:"The ruby text content is aligned with the start edge of the base."},{name:"space-between",browsers:["FF38","Spreview"],description:"The ruby content expands as defined for normal text justification (as defined by 'text-justify'),"},{name:"space-around",browsers:["FF38","Spreview"],description:"As for 'space-between' except that there exists an extra justification opportunities whose space is distributed half before and half after the ruby content."}],status:"experimental",syntax:"start | center | space-between | space-around",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/ruby-align"}],description:"Specifies how text is distributed within the various ruby boxes when their contents do not exactly fill their respective boxes.",restrictions:["enum"]},{name:"ruby-overhang",browsers:["FF10","IE5"],values:[{name:"auto",description:"The ruby text can overhang text adjacent to the base on either side. This is the initial value."},{name:"end",description:"The ruby text can overhang the text that follows it."},{name:"none",description:"The ruby text cannot overhang any text adjacent to its base, only its own base."},{name:"start",description:"The ruby text can overhang the text that precedes it."}],relevance:50,description:"Determines whether, and on which side, ruby text is allowed to partially overhang any adjacent text in addition to its own base, when the ruby text is wider than the ruby base.",restrictions:["enum"]},{name:"ruby-position",browsers:["E84","FF38","S7","C84","O70"],values:[{name:"after",description:"The ruby text appears after the base. This is a relatively rare setting used in ideographic East Asian writing systems, most easily found in educational text."},{name:"before",description:"The ruby text appears before the base. This is the most common setting used in ideographic East Asian writing systems."},{name:"inline"},{name:"right",description:"The ruby text appears on the right of the base. Unlike 'before' and 'after', this value is not relative to the text flow direction."}],syntax:"[ alternate || [ over | under ] ] | inter-character",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/ruby-position"}],description:"Used by the parent of elements with display: ruby-text to control the position of the ruby text with respect to its base.",restrictions:["enum"]},{name:"ruby-span",browsers:["FF10"],values:[{name:"attr(x)",description:"The value of attribute 'x' is a string value. The string value is evaluated as a <number> to determine the number of ruby base elements to be spanned by the annotation element."},{name:"none",description:"No spanning. The computed value is '1'."}],relevance:50,description:"Determines whether, and on which side, ruby text is allowed to partially overhang any adjacent text in addition to its own base, when the ruby text is wider than the ruby base.",restrictions:["enum"]},{name:"scrollbar-3dlight-color",browsers:["IE5"],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scrollbar-3dlight-color"}],description:"Determines the color of the top and left edges of the scroll box and scroll arrows of a scroll bar.",restrictions:["color"]},{name:"scrollbar-arrow-color",browsers:["IE5"],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scrollbar-arrow-color"}],description:"Determines the color of the arrow elements of a scroll arrow.",restrictions:["color"]},{name:"scrollbar-base-color",browsers:["IE5"],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scrollbar-base-color"}],description:"Determines the color of the main elements of a scroll bar, which include the scroll box, track, and scroll arrows.",restrictions:["color"]},{name:"scrollbar-darkshadow-color",browsers:["IE5"],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scrollbar-darkshadow-color"}],description:"Determines the color of the gutter of a scroll bar.",restrictions:["color"]},{name:"scrollbar-face-color",browsers:["IE5"],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scrollbar-face-color"}],description:"Determines the color of the scroll box and scroll arrows of a scroll bar.",restrictions:["color"]},{name:"scrollbar-highlight-color",browsers:["IE5"],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scrollbar-highlight-color"}],description:"Determines the color of the top and left edges of the scroll box and scroll arrows of a scroll bar.",restrictions:["color"]},{name:"scrollbar-shadow-color",browsers:["IE5"],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scrollbar-shadow-color"}],description:"Determines the color of the bottom and right edges of the scroll box and scroll arrows of a scroll bar.",restrictions:["color"]},{name:"scrollbar-track-color",browsers:["IE6"],relevance:50,description:"Determines the color of the track element of a scroll bar.",restrictions:["color"]},{name:"scroll-behavior",browsers:["E79","FF36","S15.4","C61","O48"],values:[{name:"auto",description:"Scrolls in an instant fashion."},{name:"smooth",description:"Scrolls in a smooth fashion using a user-agent-defined timing function and time period."}],syntax:"auto | smooth",relevance:55,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-behavior"}],description:"Specifies the scrolling behavior for a scrolling box, when scrolling happens due to navigation or CSSOM scrolling APIs.",restrictions:["enum"]},{name:"scroll-snap-coordinate",browsers:["FF39"],values:[{name:"none",description:"Specifies that this element does not contribute a snap point."}],status:"obsolete",syntax:"none | <position>#",relevance:0,description:"Defines the x and y coordinate within the element which will align with the nearest ancestor scroll container's snap-destination for the respective axis.",restrictions:["position","length","percentage","enum"]},{name:"scroll-snap-destination",browsers:["FF39"],status:"obsolete",syntax:"<position>",relevance:0,description:"Define the x and y coordinate within the scroll container's visual viewport which element snap points will align with.",restrictions:["position","length","percentage"]},{name:"scroll-snap-points-x",browsers:["FF39"],values:[{name:"none",description:"No snap points are defined by this scroll container."},{name:"repeat()",description:"Defines an interval at which snap points are defined, starting from the container's relevant start edge."}],status:"obsolete",syntax:"none | repeat( <length-percentage> )",relevance:0,description:"Defines the positioning of snap points along the x axis of the scroll container it is applied to.",restrictions:["enum"]},{name:"scroll-snap-points-y",browsers:["FF39"],values:[{name:"none",description:"No snap points are defined by this scroll container."},{name:"repeat()",description:"Defines an interval at which snap points are defined, starting from the container's relevant start edge."}],status:"obsolete",syntax:"none | repeat( <length-percentage> )",relevance:0,description:"Defines the positioning of snap points along the y axis of the scroll container it is applied to.",restrictions:["enum"]},{name:"scroll-snap-type",browsers:["E79","FF99","S11","C69","IE10","O56"],values:[{name:"none",description:"The visual viewport of this scroll container must ignore snap points, if any, when scrolled."},{name:"mandatory",description:"The visual viewport of this scroll container is guaranteed to rest on a snap point when there are no active scrolling operations."},{name:"proximity",description:"The visual viewport of this scroll container may come to rest on a snap point at the termination of a scroll at the discretion of the UA given the parameters of the scroll."}],syntax:"none | [ x | y | block | inline | both ] [ mandatory | proximity ]?",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-snap-type"}],description:"Defines how strictly snap points are enforced on the scroll container.",restrictions:["enum"]},{name:"shape-image-threshold",browsers:["E79","FF62","S10.1","C37","O24"],syntax:"<alpha-value>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/shape-image-threshold"}],description:"Defines the alpha channel threshold used to extract the shape using an image. A value of 0.5 means that the shape will enclose all the pixels that are more than 50% opaque.",restrictions:["number"]},{name:"shape-margin",browsers:["E79","FF62","S10.1","C37","O24"],syntax:"<length-percentage>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/shape-margin"}],description:"Adds a margin to a 'shape-outside'. This defines a new shape that is the smallest contour that includes all the points that are the 'shape-margin' distance outward in the perpendicular direction from a point on the underlying shape.",restrictions:["url","length","percentage"]},{name:"shape-outside",browsers:["E79","FF62","S10.1","C37","O24"],values:[{name:"margin-box",description:"The background is painted within (clipped to) the margin box."},{name:"none",description:"The float area is unaffected."}],syntax:"none | [ <shape-box> || <basic-shape> ] | <image>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/shape-outside"}],description:"Specifies an orthogonal rotation to be applied to an image before it is laid out.",restrictions:["image","box","shape","enum"]},{name:"shape-rendering",browsers:["E80","FF72","S13.1","C80","O67"],values:[{name:"auto",description:"Suppresses aural rendering."},{name:"crispEdges",description:"Emphasize the contrast between clean edges of artwork over rendering speed and geometric precision."},{name:"geometricPrecision",description:"Emphasize geometric precision over speed and crisp edges."},{name:"optimizeSpeed",description:"Emphasize rendering speed over geometric precision and crisp edges."}],relevance:50,description:"Provides hints about what tradeoffs to make as it renders vector graphics elements such as <path> elements and basic shapes such as circles and rectangles.",restrictions:["enum"]},{name:"size",browsers:["C","O8"],atRule:"@page",syntax:"<length>{1,2} | auto | [ <page-size> || [ portrait | landscape ] ]",relevance:53,description:"The size CSS at-rule descriptor, used with the @page at-rule, defines the size and orientation of the box which is used to represent a page. Most of the time, this size corresponds to the target size of the printed page if applicable.",restrictions:["length"]},{name:"src",values:[{name:"url()",description:"Reference font by URL"},{name:"format()",description:"Optional hint describing the format of the font resource."},{name:"local()",description:"Format-specific string that identifies a locally available copy of a given font."}],atRule:"@font-face",syntax:"[ <url> [ format( <string># ) ]? | local( <family-name> ) ]#",relevance:86,description:"@font-face descriptor. Specifies the resource containing font data. It is required, whether the font is downloadable or locally installed.",restrictions:["enum","url","identifier"]},{name:"stop-color",browsers:["E80","FF72","S13.1","C80","O67"],relevance:50,description:"Indicates what color to use at that gradient stop.",restrictions:["color"]},{name:"stop-opacity",browsers:["E80","FF72","S13.1","C80","O67"],relevance:50,description:"Defines the opacity of a given gradient stop.",restrictions:["number(0-1)"]},{name:"stroke",browsers:["E80","FF72","S13.1","C80","O67"],values:[{name:"url()",description:"A URL reference to a paint server element, which is an element that defines a paint server: 'hatch', 'linearGradient', 'mesh', 'pattern', 'radialGradient' and 'solidcolor'."},{name:"none",description:"No paint is applied in this layer."}],relevance:67,description:"Paints along the outline of the given graphical element.",restrictions:["color","enum","url"]},{name:"stroke-dasharray",browsers:["E80","FF72","S13.1","C80","O67"],values:[{name:"none",description:"Indicates that no dashing is used."}],relevance:61,description:"Controls the pattern of dashes and gaps used to stroke paths.",restrictions:["length","percentage","number","enum"]},{name:"stroke-dashoffset",browsers:["E80","FF72","S13.1","C80","O67"],relevance:62,description:"Specifies the distance into the dash pattern to start the dash.",restrictions:["percentage","length"]},{name:"stroke-linecap",browsers:["E80","FF72","S13.1","C80","O67"],values:[{name:"butt",description:"Indicates that the stroke for each subpath does not extend beyond its two endpoints."},{name:"round",description:"Indicates that at each end of each subpath, the shape representing the stroke will be extended by a half circle with a radius equal to the stroke width."},{name:"square",description:"Indicates that at the end of each subpath, the shape representing the stroke will be extended by a rectangle with the same width as the stroke width and whose length is half of the stroke width."}],relevance:53,description:"Specifies the shape to be used at the end of open subpaths when they are stroked.",restrictions:["enum"]},{name:"stroke-linejoin",browsers:["E80","FF72","S13.1","C80","O67"],values:[{name:"bevel",description:"Indicates that a bevelled corner is to be used to join path segments."},{name:"miter",description:"Indicates that a sharp corner is to be used to join path segments."},{name:"round",description:"Indicates that a round corner is to be used to join path segments."}],relevance:51,description:"Specifies the shape to be used at the corners of paths or basic shapes when they are stroked.",restrictions:["enum"]},{name:"stroke-miterlimit",browsers:["E80","FF72","S13.1","C80","O67"],relevance:51,description:"When two line segments meet at a sharp angle and miter joins have been specified for 'stroke-linejoin', it is possible for the miter to extend far beyond the thickness of the line stroking the path.",restrictions:["number"]},{name:"stroke-opacity",browsers:["E80","FF72","S13.1","C80","O67"],relevance:52,description:"Specifies the opacity of the painting operation used to stroke the current object.",restrictions:["number(0-1)"]},{name:"stroke-width",browsers:["E80","FF72","S13.1","C80","O67"],relevance:64,description:"Specifies the width of the stroke on the current object.",restrictions:["percentage","length"]},{name:"suffix",browsers:["FF33"],atRule:"@counter-style",syntax:"<symbol>",relevance:50,description:"@counter-style descriptor. Specifies a <symbol> that is appended to the marker representation.",restrictions:["image","string","identifier"]},{name:"system",browsers:["FF33"],values:[{name:"additive",description:'Represents "sign-value" numbering systems, which, rather than using reusing digits in different positions to change their value, define additional digits with much larger values, so that the value of the number can be obtained by adding all the digits together.'},{name:"alphabetic",description:'Interprets the list of counter symbols as digits to an alphabetic numbering system, similar to the default lower-alpha counter style, which wraps from "a", "b", "c", to "aa", "ab", "ac".'},{name:"cyclic",description:"Cycles repeatedly through its provided symbols, looping back to the beginning when it reaches the end of the list."},{name:"extends",description:"Use the algorithm of another counter style, but alter other aspects."},{name:"fixed",description:"Runs through its list of counter symbols once, then falls back."},{name:"numeric",description:"interprets the list of counter symbols as digits to a \"place-value\" numbering system, similar to the default 'decimal' counter style."},{name:"symbolic",description:"Cycles repeatedly through its provided symbols, doubling, tripling, etc. the symbols on each successive pass through the list."}],atRule:"@counter-style",syntax:"cyclic | numeric | alphabetic | symbolic | additive | [ fixed <integer>? ] | [ extends <counter-style-name> ]",relevance:50,description:"@counter-style descriptor. Specifies which algorithm will be used to construct the counter's representation based on the counter value.",restrictions:["enum","integer"]},{name:"symbols",browsers:["FF33"],atRule:"@counter-style",syntax:"<symbol>+",relevance:50,description:"@counter-style descriptor. Specifies the symbols used by the marker-construction algorithm specified by the system descriptor.",restrictions:["image","string","identifier"]},{name:"table-layout",browsers:["E12","FF1","S1","C14","IE5","O7"],values:[{name:"auto",description:"Use any automatic table layout algorithm."},{name:"fixed",description:"Use the fixed table layout algorithm."}],syntax:"auto | fixed",relevance:58,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/table-layout"}],description:"Controls the algorithm used to lay out the table cells, rows, and columns.",restrictions:["enum"]},{name:"tab-size",browsers:["E79","FF91","S7","C21","O15"],syntax:"<integer> | <length>",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/tab-size"}],description:"Determines the width of the tab character (U+0009), in space characters (U+0020), when rendered.",restrictions:["integer","length"]},{name:"text-align",browsers:["E12","FF1","S1","C1","IE3","O3.5"],values:[{name:"center",description:"The inline contents are centered within the line box."},{name:"end",browsers:["E12","FF1","S1","C1","IE3","O3.5"],description:"The inline contents are aligned to the end edge of the line box."},{name:"justify",description:"The text is justified according to the method specified by the 'text-justify' property."},{name:"left",description:"The inline contents are aligned to the left edge of the line box. In vertical text, 'left' aligns to the edge of the line box that would be the start edge for left-to-right text."},{name:"right",description:"The inline contents are aligned to the right edge of the line box. In vertical text, 'right' aligns to the edge of the line box that would be the end edge for left-to-right text."},{name:"start",browsers:["E12","FF1","S1","C1","IE3","O3.5"],description:"The inline contents are aligned to the start edge of the line box."}],syntax:"start | end | left | right | center | justify | match-parent",relevance:93,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-align"}],description:"Describes how inline contents of a block are horizontally aligned if the contents do not completely fill the line box.",restrictions:["string"]},{name:"text-align-last",browsers:["E12","FF49","S16","C47","IE5.5","O34"],values:[{name:"auto",description:"Content on the affected line is aligned per 'text-align' unless 'text-align' is set to 'justify', in which case it is 'start-aligned'."},{name:"center",description:"The inline contents are centered within the line box."},{name:"justify",description:"The text is justified according to the method specified by the 'text-justify' property."},{name:"left",description:"The inline contents are aligned to the left edge of the line box. In vertical text, 'left' aligns to the edge of the line box that would be the start edge for left-to-right text."},{name:"right",description:"The inline contents are aligned to the right edge of the line box. In vertical text, 'right' aligns to the edge of the line box that would be the end edge for left-to-right text."}],syntax:"auto | start | end | left | right | center | justify",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-align-last"}],description:"Describes how the last line of a block or a line right before a forced line break is aligned when 'text-align' is set to 'justify'.",restrictions:["enum"]},{name:"text-anchor",browsers:["E80","FF72","S13.1","C80","O67"],values:[{name:"end",description:"The rendered characters are aligned such that the end of the resulting rendered text is at the initial current text position."},{name:"middle",description:"The rendered characters are aligned such that the geometric middle of the resulting rendered text is at the initial current text position."},{name:"start",description:"The rendered characters are aligned such that the start of the resulting rendered text is at the initial current text position."}],relevance:50,description:"Used to align (start-, middle- or end-alignment) a string of text relative to a given point.",restrictions:["enum"]},{name:"text-decoration",browsers:["E12","FF1","S1","C1","IE3","O3.5"],values:[{name:"dashed",description:"Produces a dashed line style."},{name:"dotted",description:"Produces a dotted line."},{name:"double",description:"Produces a double line."},{name:"line-through",description:"Each line of text has a line through the middle."},{name:"none",description:"Produces no line."},{name:"overline",description:"Each line of text has a line above it."},{name:"solid",description:"Produces a solid line."},{name:"underline",description:"Each line of text is underlined."},{name:"wavy",description:"Produces a wavy line."}],syntax:"<'text-decoration-line'> || <'text-decoration-style'> || <'text-decoration-color'> || <'text-decoration-thickness'>",relevance:91,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-decoration"}],description:"Decorations applied to font used for an element's text.",restrictions:["enum","color"]},{name:"text-decoration-color",browsers:["E79","FF36","S12.1","C57","O44"],syntax:"<color>",relevance:55,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-decoration-color"}],description:"Specifies the color of text decoration (underlines overlines, and line-throughs) set on the element with text-decoration-line.",restrictions:["color"]},{name:"text-decoration-line",browsers:["E79","FF36","S12.1","C57","O44"],values:[{name:"line-through",description:"Each line of text has a line through the middle."},{name:"none",description:"Neither produces nor inhibits text decoration."},{name:"overline",description:"Each line of text has a line above it."},{name:"underline",description:"Each line of text is underlined."}],syntax:"none | [ underline || overline || line-through || blink ] | spelling-error | grammar-error",relevance:57,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-decoration-line"}],description:"Specifies what line decorations, if any, are added to the element.",restrictions:["enum"]},{name:"text-decoration-style",browsers:["E79","FF36","S12.1","C57","O44"],values:[{name:"dashed",description:"Produces a dashed line style."},{name:"dotted",description:"Produces a dotted line."},{name:"double",description:"Produces a double line."},{name:"none",description:"Produces no line."},{name:"solid",description:"Produces a solid line."},{name:"wavy",description:"Produces a wavy line."}],syntax:"solid | double | dotted | dashed | wavy",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-decoration-style"}],description:"Specifies the line style for underline, line-through and overline text decoration.",restrictions:["enum"]},{name:"text-indent",browsers:["E12","FF1","S1","C1","IE3","O3.5"],values:[],syntax:"<length-percentage> && hanging? && each-line?",relevance:67,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-indent"}],description:"Specifies the indentation applied to lines of inline content in a block. The indentation only affects the first line of inline content in the block unless the 'hanging' keyword is specified, in which case it affects all lines except the first.",restrictions:["percentage","length"]},{name:"text-justify",browsers:["E79","FF55","C32","IE11","O19"],values:[{name:"auto",description:"The UA determines the justification algorithm to follow, based on a balance between performance and adequate presentation quality."},{name:"distribute",description:"Justification primarily changes spacing both at word separators and at grapheme cluster boundaries in all scripts except those in the connected and cursive groups. This value is sometimes used in e.g. Japanese, often with the 'text-align-last' property."},{name:"distribute-all-lines"},{name:"inter-cluster",description:"Justification primarily changes spacing at word separators and at grapheme cluster boundaries in clustered scripts. This value is typically used for Southeast Asian scripts such as Thai."},{name:"inter-ideograph",description:"Justification primarily changes spacing at word separators and at inter-graphemic boundaries in scripts that use no word spaces. This value is typically used for CJK languages."},{name:"inter-word",description:"Justification primarily changes spacing at word separators. This value is typically used for languages that separate words using spaces, like English or (sometimes) Korean."},{name:"kashida",description:"Justification primarily stretches Arabic and related scripts through the use of kashida or other calligraphic elongation."},{name:"newspaper"}],syntax:"auto | inter-character | inter-word | none",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-justify"}],description:"Selects the justification algorithm used when 'text-align' is set to 'justify'. The property applies to block containers, but the UA may (but is not required to) also support it on inline elements.",restrictions:["enum"]},{name:"text-orientation",browsers:["E79","FF41","S14","C48","O35"],values:[{name:"sideways",browsers:["E79","FF41","S14","C48","O35"],description:"This value is equivalent to 'sideways-right' in 'vertical-rl' writing mode and equivalent to 'sideways-left' in 'vertical-lr' writing mode."},{name:"sideways-right",browsers:["E79","FF41","S14","C48","O35"],description:"In vertical writing modes, this causes text to be set as if in a horizontal layout, but rotated 90\xb0 clockwise."},{name:"upright",description:"In vertical writing modes, characters from horizontal-only scripts are rendered upright, i.e. in their standard horizontal orientation."}],syntax:"mixed | upright | sideways",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-orientation"}],description:"Specifies the orientation of text within a line.",restrictions:["enum"]},{name:"text-overflow",browsers:["E12","FF7","S1.3","C1","IE6","O11"],values:[{name:"clip",description:"Clip inline content that overflows. Characters may be only partially rendered."},{name:"ellipsis",description:"Render an ellipsis character (U+2026) to represent clipped inline content."}],syntax:"[ clip | ellipsis | <string> ]{1,2}",relevance:82,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-overflow"}],description:"Text can overflow for example when it is prevented from wrapping.",restrictions:["enum","string"]},{name:"text-rendering",browsers:["E79","FF1","S5","C4","O15"],values:[{name:"auto"},{name:"geometricPrecision",description:"Indicates that the user agent shall emphasize geometric precision over legibility and rendering speed."},{name:"optimizeLegibility",description:"Indicates that the user agent shall emphasize legibility over rendering speed and geometric precision."},{name:"optimizeSpeed",description:"Indicates that the user agent shall emphasize rendering speed over legibility and geometric precision."}],syntax:"auto | optimizeSpeed | optimizeLegibility | geometricPrecision",relevance:68,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-rendering"}],description:"The creator of SVG content might want to provide a hint to the implementation about what tradeoffs to make as it renders text. The 'text-rendering' property provides these hints.",restrictions:["enum"]},{name:"text-shadow",browsers:["E12","FF3.5","S1.1","C2","IE10","O9.5"],values:[{name:"none",description:"No shadow."}],syntax:"none | <shadow-t>#",relevance:73,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-shadow"}],description:"Enables shadow effects to be applied to the text of the element.",restrictions:["length","color"]},{name:"text-transform",browsers:["E12","FF1","S1","C1","IE4","O7"],values:[{name:"capitalize",description:"Puts the first typographic letter unit of each word in titlecase."},{name:"lowercase",description:"Puts all letters in lowercase."},{name:"none",description:"No effects."},{name:"uppercase",description:"Puts all letters in uppercase."}],syntax:"none | capitalize | uppercase | lowercase | full-width | full-size-kana",relevance:86,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-transform"}],description:"Controls capitalization effects of an element's text.",restrictions:["enum"]},{name:"text-underline-position",browsers:["E12","FF74","S12.1","C33","IE6","O20"],values:[{name:"above"},{name:"auto",description:"The user agent may use any algorithm to determine the underline's position. In horizontal line layout, the underline should be aligned as for alphabetic. In vertical line layout, if the language is set to Japanese or Korean, the underline should be aligned as for over."},{name:"below",description:"The underline is aligned with the under edge of the element's content box."}],syntax:"auto | from-font | [ under || [ left | right ] ]",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-underline-position"}],description:"Sets the position of an underline specified on the same element: it does not affect underlines specified by ancestor elements. This property is typically used in vertical writing contexts such as in Japanese documents where it often desired to have the underline appear 'over' (to the right of) the affected run of text",restrictions:["enum"]},{name:"top",browsers:["E12","FF1","S1","C1","IE5","O6"],values:[{name:"auto",description:"For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well"}],syntax:"<length> | <percentage> | auto",relevance:95,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/top"}],description:"Specifies how far an absolutely positioned box's top margin edge is offset below the top edge of the box's 'containing block'.",restrictions:["length","percentage"]},{name:"touch-action",browsers:["E12","FF52","S13","C36","IE11","O23"],values:[{name:"auto",description:"The user agent may determine any permitted touch behaviors for touches that begin on the element."},{name:"cross-slide-x",browsers:["E12","FF52","S13","C36","IE11","O23"]},{name:"cross-slide-y",browsers:["E12","FF52","S13","C36","IE11","O23"]},{name:"double-tap-zoom",browsers:["E12","FF52","S13","C36","IE11","O23"]},{name:"manipulation",description:"The user agent may consider touches that begin on the element only for the purposes of scrolling and continuous zooming."},{name:"none",description:"Touches that begin on the element must not trigger default touch behaviors."},{name:"pan-x",description:"The user agent may consider touches that begin on the element only for the purposes of horizontally scrolling the element's nearest ancestor with horizontally scrollable content."},{name:"pan-y",description:"The user agent may consider touches that begin on the element only for the purposes of vertically scrolling the element's nearest ancestor with vertically scrollable content."},{name:"pinch-zoom",browsers:["E12","FF52","S13","C36","IE11","O23"]}],syntax:"auto | none | [ [ pan-x | pan-left | pan-right ] || [ pan-y | pan-up | pan-down ] || pinch-zoom ] | manipulation",relevance:69,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/touch-action"}],description:"Determines whether touch input may trigger default behavior supplied by user agent.",restrictions:["enum"]},{name:"transform",browsers:["E12","FF16","S9","C36","IE10","O23"],values:[{name:"matrix()",description:"Specifies a 2D transformation in the form of a transformation matrix of six values. matrix(a,b,c,d,e,f) is equivalent to applying the transformation matrix [a b c d e f]"},{name:"matrix3d()",description:"Specifies a 3D transformation as a 4x4 homogeneous matrix of 16 values in column-major order."},{name:"none"},{name:"perspective()",description:"Specifies a perspective projection matrix."},{name:"rotate()",description:"Specifies a 2D rotation by the angle specified in the parameter about the origin of the element, as defined by the transform-origin property."},{name:"rotate3d()",description:"Specifies a clockwise 3D rotation by the angle specified in last parameter about the [x,y,z] direction vector described by the first 3 parameters."},{name:"rotateX('angle')",description:"Specifies a clockwise rotation by the given angle about the X axis."},{name:"rotateY('angle')",description:"Specifies a clockwise rotation by the given angle about the Y axis."},{name:"rotateZ('angle')",description:"Specifies a clockwise rotation by the given angle about the Z axis."},{name:"scale()",description:"Specifies a 2D scale operation by the [sx,sy] scaling vector described by the 2 parameters. If the second parameter is not provided, it is takes a value equal to the first."},{name:"scale3d()",description:"Specifies a 3D scale operation by the [sx,sy,sz] scaling vector described by the 3 parameters."},{name:"scaleX()",description:"Specifies a scale operation using the [sx,1] scaling vector, where sx is given as the parameter."},{name:"scaleY()",description:"Specifies a scale operation using the [sy,1] scaling vector, where sy is given as the parameter."},{name:"scaleZ()",description:"Specifies a scale operation using the [1,1,sz] scaling vector, where sz is given as the parameter."},{name:"skew()",description:"Specifies a skew transformation along the X and Y axes. The first angle parameter specifies the skew on the X axis. The second angle parameter specifies the skew on the Y axis. If the second parameter is not given then a value of 0 is used for the Y angle (ie: no skew on the Y axis)."},{name:"skewX()",description:"Specifies a skew transformation along the X axis by the given angle."},{name:"skewY()",description:"Specifies a skew transformation along the Y axis by the given angle."},{name:"translate()",description:"Specifies a 2D translation by the vector [tx, ty], where tx is the first translation-value parameter and ty is the optional second translation-value parameter."},{name:"translate3d()",description:"Specifies a 3D translation by the vector [tx,ty,tz], with tx, ty and tz being the first, second and third translation-value parameters respectively."},{name:"translateX()",description:"Specifies a translation by the given amount in the X direction."},{name:"translateY()",description:"Specifies a translation by the given amount in the Y direction."},{name:"translateZ()",description:"Specifies a translation by the given amount in the Z direction. Note that percentage values are not allowed in the translateZ translation-value, and if present are evaluated as 0."}],syntax:"none | <transform-list>",relevance:90,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/transform"}],description:"A two-dimensional transformation is applied to an element through the 'transform' property. This property contains a list of transform functions similar to those allowed by SVG.",restrictions:["enum"]},{name:"transform-origin",browsers:["E12","FF16","S9","C36","IE10","O23"],syntax:"[ <length-percentage> | left | center | right | top | bottom ] | [ [ <length-percentage> | left | center | right ] && [ <length-percentage> | top | center | bottom ] ] <length>?",relevance:76,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/transform-origin"}],description:"Establishes the origin of transformation for an element.",restrictions:["position","length","percentage"]},{name:"transform-style",browsers:["E12","FF16","S9","C36","O23"],values:[{name:"flat",description:"All children of this element are rendered flattened into the 2D plane of the element."},{name:"preserve-3d",browsers:["E12","FF16","S9","C36","O23"],description:"Flattening is not performed, so children maintain their position in 3D space."}],syntax:"flat | preserve-3d",relevance:56,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/transform-style"}],description:"Defines how nested elements are rendered in 3D space.",restrictions:["enum"]},{name:"transition",browsers:["E12","FF16","S9","C26","IE10","O12.1"],values:[{name:"all",description:"Every property that is able to undergo a transition will do so."},{name:"none",description:"No property will transition."}],syntax:"<single-transition>#",relevance:89,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/transition"}],description:"Shorthand property combines four of the transition properties into a single property.",restrictions:["time","property","timing-function","enum"]},{name:"transition-delay",browsers:["E12","FF16","S9","C26","IE10","O12.1"],syntax:"<time>#",relevance:64,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/transition-delay"}],description:"Defines when the transition will start. It allows a transition to begin execution some period of time from when it is applied.",restrictions:["time"]},{name:"transition-duration",browsers:["E12","FF16","S9","C26","IE10","O12.1"],syntax:"<time>#",relevance:68,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/transition-duration"}],description:"Specifies how long the transition from the old value to the new value should take.",restrictions:["time"]},{name:"transition-property",browsers:["E12","FF16","S9","C26","IE10","O12.1"],values:[{name:"all",description:"Every property that is able to undergo a transition will do so."},{name:"none",description:"No property will transition."}],syntax:"none | <single-transition-property>#",relevance:68,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/transition-property"}],description:"Specifies the name of the CSS property to which the transition is applied.",restrictions:["property"]},{name:"transition-timing-function",browsers:["E12","FF16","S9","C26","IE10","O12.1"],syntax:"<easing-function>#",relevance:65,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/transition-timing-function"}],description:"Describes how the intermediate values used during a transition will be calculated.",restrictions:["timing-function"]},{name:"unicode-bidi",browsers:["E12","FF1","S1.3","C2","IE5.5","O9.2"],values:[{name:"bidi-override",description:"Inside the element, reordering is strictly in sequence according to the 'direction' property; the implicit part of the bidirectional algorithm is ignored."},{name:"embed",description:"If the element is inline-level, this value opens an additional level of embedding with respect to the bidirectional algorithm. The direction of this embedding level is given by the 'direction' property."},{name:"isolate",browsers:["E12","FF1","S1.3","C2","IE5.5","O9.2"],description:"The contents of the element are considered to be inside a separate, independent paragraph."},{name:"isolate-override",browsers:["E12","FF1","S1.3","C2","IE5.5","O9.2"],description:"This combines the isolation behavior of 'isolate' with the directional override behavior of 'bidi-override'"},{name:"normal",description:"The element does not open an additional level of embedding with respect to the bidirectional algorithm. For inline-level elements, implicit reordering works across element boundaries."},{name:"plaintext",browsers:["E12","FF1","S1.3","C2","IE5.5","O9.2"],description:"For the purposes of the Unicode bidirectional algorithm, the base directionality of each bidi paragraph for which the element forms the containing block is determined not by the element's computed 'direction'."}],syntax:"normal | embed | isolate | bidi-override | isolate-override | plaintext",relevance:56,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/unicode-bidi"}],description:"The level of embedding with respect to the bidirectional algorithm.",restrictions:["enum"]},{name:"unicode-range",values:[{name:"U+26",description:"Ampersand."},{name:"U+20-24F, U+2B0-2FF, U+370-4FF, U+1E00-1EFF, U+2000-20CF, U+2100-23FF, U+2500-26FF, U+E000-F8FF, U+FB00-FB4F",description:"WGL4 character set (Pan-European)."},{name:"U+20-17F, U+2B0-2FF, U+2000-206F, U+20A0-20CF, U+2100-21FF, U+2600-26FF",description:"The Multilingual European Subset No. 1. Latin. Covers ~44 languages."},{name:"U+20-2FF, U+370-4FF, U+1E00-20CF, U+2100-23FF, U+2500-26FF, U+FB00-FB4F, U+FFF0-FFFD",description:"The Multilingual European Subset No. 2. Latin, Greek, and Cyrillic. Covers ~128 language."},{name:"U+20-4FF, U+530-58F, U+10D0-10FF, U+1E00-23FF, U+2440-245F, U+2500-26FF, U+FB00-FB4F, U+FE20-FE2F, U+FFF0-FFFD",description:"The Multilingual European Subset No. 3. Covers all characters belonging to European scripts."},{name:"U+00-7F",description:"Basic Latin (ASCII)."},{name:"U+80-FF",description:"Latin-1 Supplement. Accented characters for Western European languages, common punctuation characters, multiplication and division signs."},{name:"U+100-17F",description:"Latin Extended-A. Accented characters for for Czech, Dutch, Polish, and Turkish."},{name:"U+180-24F",description:"Latin Extended-B. Croatian, Slovenian, Romanian, Non-European and historic latin, Khoisan, Pinyin, Livonian, Sinology."},{name:"U+1E00-1EFF",description:"Latin Extended Additional. Vietnamese, German captial sharp s, Medievalist, Latin general use."},{name:"U+250-2AF",description:"International Phonetic Alphabet Extensions."},{name:"U+370-3FF",description:"Greek and Coptic."},{name:"U+1F00-1FFF",description:"Greek Extended. Accented characters for polytonic Greek."},{name:"U+400-4FF",description:"Cyrillic."},{name:"U+500-52F",description:"Cyrillic Supplement. Extra letters for Komi, Khanty, Chukchi, Mordvin, Kurdish, Aleut, Chuvash, Abkhaz, Azerbaijani, and Orok."},{name:"U+00-52F, U+1E00-1FFF, U+2200-22FF",description:"Latin, Greek, Cyrillic, some punctuation and symbols."},{name:"U+530-58F",description:"Armenian."},{name:"U+590-5FF",description:"Hebrew."},{name:"U+600-6FF",description:"Arabic."},{name:"U+750-77F",description:"Arabic Supplement. Additional letters for African languages, Khowar, Torwali, Burushaski, and early Persian."},{name:"U+8A0-8FF",description:"Arabic Extended-A. Additional letters for African languages, European and Central Asian languages, Rohingya, Tamazight, Arwi, and Koranic annotation signs."},{name:"U+700-74F",description:"Syriac."},{name:"U+900-97F",description:"Devanagari."},{name:"U+980-9FF",description:"Bengali."},{name:"U+A00-A7F",description:"Gurmukhi."},{name:"U+A80-AFF",description:"Gujarati."},{name:"U+B00-B7F",description:"Oriya."},{name:"U+B80-BFF",description:"Tamil."},{name:"U+C00-C7F",description:"Telugu."},{name:"U+C80-CFF",description:"Kannada."},{name:"U+D00-D7F",description:"Malayalam."},{name:"U+D80-DFF",description:"Sinhala."},{name:"U+118A0-118FF",description:"Warang Citi."},{name:"U+E00-E7F",description:"Thai."},{name:"U+1A20-1AAF",description:"Tai Tham."},{name:"U+AA80-AADF",description:"Tai Viet."},{name:"U+E80-EFF",description:"Lao."},{name:"U+F00-FFF",description:"Tibetan."},{name:"U+1000-109F",description:"Myanmar (Burmese)."},{name:"U+10A0-10FF",description:"Georgian."},{name:"U+1200-137F",description:"Ethiopic."},{name:"U+1380-139F",description:"Ethiopic Supplement. Extra Syllables for Sebatbeit, and Tonal marks"},{name:"U+2D80-2DDF",description:"Ethiopic Extended. Extra Syllables for Me'en, Blin, and Sebatbeit."},{name:"U+AB00-AB2F",description:"Ethiopic Extended-A. Extra characters for Gamo-Gofa-Dawro, Basketo, and Gumuz."},{name:"U+1780-17FF",description:"Khmer."},{name:"U+1800-18AF",description:"Mongolian."},{name:"U+1B80-1BBF",description:"Sundanese."},{name:"U+1CC0-1CCF",description:"Sundanese Supplement. Punctuation."},{name:"U+4E00-9FD5",description:"CJK (Chinese, Japanese, Korean) Unified Ideographs. Most common ideographs for modern Chinese and Japanese."},{name:"U+3400-4DB5",description:"CJK Unified Ideographs Extension A. Rare ideographs."},{name:"U+2F00-2FDF",description:"Kangxi Radicals."},{name:"U+2E80-2EFF",description:"CJK Radicals Supplement. Alternative forms of Kangxi Radicals."},{name:"U+1100-11FF",description:"Hangul Jamo."},{name:"U+AC00-D7AF",description:"Hangul Syllables."},{name:"U+3040-309F",description:"Hiragana."},{name:"U+30A0-30FF",description:"Katakana."},{name:"U+A5, U+4E00-9FFF, U+30??, U+FF00-FF9F",description:"Japanese Kanji, Hiragana and Katakana characters plus Yen/Yuan symbol."},{name:"U+A4D0-A4FF",description:"Lisu."},{name:"U+A000-A48F",description:"Yi Syllables."},{name:"U+A490-A4CF",description:"Yi Radicals."},{name:"U+2000-206F",description:"General Punctuation."},{name:"U+3000-303F",description:"CJK Symbols and Punctuation."},{name:"U+2070-209F",description:"Superscripts and Subscripts."},{name:"U+20A0-20CF",description:"Currency Symbols."},{name:"U+2100-214F",description:"Letterlike Symbols."},{name:"U+2150-218F",description:"Number Forms."},{name:"U+2190-21FF",description:"Arrows."},{name:"U+2200-22FF",description:"Mathematical Operators."},{name:"U+2300-23FF",description:"Miscellaneous Technical."},{name:"U+E000-F8FF",description:"Private Use Area."},{name:"U+FB00-FB4F",description:"Alphabetic Presentation Forms. Ligatures for latin, Armenian, and Hebrew."},{name:"U+FB50-FDFF",description:"Arabic Presentation Forms-A. Contextual forms / ligatures for Persian, Urdu, Sindhi, Central Asian languages, etc, Arabic pedagogical symbols, word ligatures."},{name:"U+1F600-1F64F",description:"Emoji: Emoticons."},{name:"U+2600-26FF",description:"Emoji: Miscellaneous Symbols."},{name:"U+1F300-1F5FF",description:"Emoji: Miscellaneous Symbols and Pictographs."},{name:"U+1F900-1F9FF",description:"Emoji: Supplemental Symbols and Pictographs."},{name:"U+1F680-1F6FF",description:"Emoji: Transport and Map Symbols."}],atRule:"@font-face",syntax:"<unicode-range>#",relevance:72,description:"@font-face descriptor. Defines the set of Unicode codepoints that may be supported by the font face for which it is declared.",restrictions:["unicode-range"]},{name:"user-select",browsers:["E79","FF69","S3","C54","IE10","O41"],values:[{name:"all",description:"The content of the element must be selected atomically"},{name:"auto"},{name:"contain",description:"UAs must not allow a selection which is started in this element to be extended outside of this element."},{name:"none",description:"The UA must not allow selections to be started in this element."},{name:"text",description:"The element imposes no constraint on the selection."}],syntax:"auto | text | none | contain | all",relevance:82,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/user-select"}],description:"Controls the appearance of selection.",restrictions:["enum"]},{name:"vertical-align",browsers:["E12","FF1","S1","C1","IE4","O4"],values:[{name:"auto",description:"Align the dominant baseline of the parent box with the equivalent, or heuristically reconstructed, baseline of the element inline box."},{name:"baseline",description:"Align the 'alphabetic' baseline of the element with the 'alphabetic' baseline of the parent element."},{name:"bottom",description:"Align the after edge of the extended inline box with the after-edge of the line box."},{name:"middle",description:"Align the 'middle' baseline of the inline element with the middle baseline of the parent."},{name:"sub",description:"Lower the baseline of the box to the proper position for subscripts of the parent's box. (This value has no effect on the font size of the element's text.)"},{name:"super",description:"Raise the baseline of the box to the proper position for superscripts of the parent's box. (This value has no effect on the font size of the element's text.)"},{name:"text-bottom",description:"Align the bottom of the box with the after-edge of the parent element's font."},{name:"text-top",description:"Align the top of the box with the before-edge of the parent element's font."},{name:"top",description:"Align the before edge of the extended inline box with the before-edge of the line box."},{name:"-webkit-baseline-middle",browsers:["E12","FF1","S1","C1","IE4","O4"]}],syntax:"baseline | sub | super | text-top | text-bottom | middle | top | bottom | <percentage> | <length>",relevance:90,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/vertical-align"}],description:"Affects the vertical positioning of the inline boxes generated by an inline-level element inside a line box.",restrictions:["percentage","length"]},{name:"visibility",browsers:["E12","FF1","S1","C1","IE4","O4"],values:[{name:"collapse",description:"Table-specific. If used on elements other than rows, row groups, columns, or column groups, 'collapse' has the same meaning as 'hidden'."},{name:"hidden",description:"The generated box is invisible (fully transparent, nothing is drawn), but still affects layout."},{name:"visible",description:"The generated box is visible."}],syntax:"visible | hidden | collapse",relevance:87,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/visibility"}],description:"Specifies whether the boxes generated by an element are rendered. Invisible boxes still affect layout (set the 'display' property to 'none' to suppress box generation altogether).",restrictions:["enum"]},{name:"-webkit-animation",browsers:["C","S5"],values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"backwards",description:"The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."},{name:"both",description:"Both forwards and backwards fill modes are applied."},{name:"forwards",description:"The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."},{name:"infinite",description:"Causes the animation to repeat forever."},{name:"none",description:"No animation is performed"},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],relevance:50,description:"Shorthand property combines six of the animation properties into a single property.",restrictions:["time","enum","timing-function","identifier","number"]},{name:"-webkit-animation-delay",browsers:["C","S5"],relevance:50,description:"Defines when the animation will start.",restrictions:["time"]},{name:"-webkit-animation-direction",browsers:["C","S5"],values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],relevance:50,description:"Defines whether or not the animation should play in reverse on alternate cycles.",restrictions:["enum"]},{name:"-webkit-animation-duration",browsers:["C","S5"],relevance:50,description:"Defines the length of time that an animation takes to complete one cycle.",restrictions:["time"]},{name:"-webkit-animation-fill-mode",browsers:["C","S5"],values:[{name:"backwards",description:"The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."},{name:"both",description:"Both forwards and backwards fill modes are applied."},{name:"forwards",description:"The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."},{name:"none",description:"There is no change to the property value between the time the animation is applied and the time the animation begins playing or after the animation completes."}],relevance:50,description:"Defines what values are applied by the animation outside the time it is executing.",restrictions:["enum"]},{name:"-webkit-animation-iteration-count",browsers:["C","S5"],values:[{name:"infinite",description:"Causes the animation to repeat forever."}],relevance:50,description:"Defines the number of times an animation cycle is played. The default value is one, meaning the animation will play from beginning to end once.",restrictions:["number","enum"]},{name:"-webkit-animation-name",browsers:["C","S5"],values:[{name:"none",description:"No animation is performed"}],relevance:50,description:"Defines a list of animations that apply. Each name is used to select the keyframe at-rule that provides the property values for the animation.",restrictions:["identifier","enum"]},{name:"-webkit-animation-play-state",browsers:["C","S5"],values:[{name:"paused",description:"A running animation will be paused."},{name:"running",description:"Resume playback of a paused animation."}],relevance:50,description:"Defines whether the animation is running or paused.",restrictions:["enum"]},{name:"-webkit-animation-timing-function",browsers:["C","S5"],relevance:50,description:"Describes how the animation will progress over one cycle of its duration. See the 'transition-timing-function'.",restrictions:["timing-function"]},{name:"-webkit-appearance",browsers:["C","S3"],values:[{name:"button"},{name:"button-bevel"},{name:"caps-lock-indicator"},{name:"caret"},{name:"checkbox"},{name:"default-button"},{name:"listbox"},{name:"listitem"},{name:"media-fullscreen-button"},{name:"media-mute-button"},{name:"media-play-button"},{name:"media-seek-back-button"},{name:"media-seek-forward-button"},{name:"media-slider"},{name:"media-sliderthumb"},{name:"menulist"},{name:"menulist-button"},{name:"menulist-text"},{name:"menulist-textfield"},{name:"none"},{name:"push-button"},{name:"radio"},{name:"scrollbarbutton-down"},{name:"scrollbarbutton-left"},{name:"scrollbarbutton-right"},{name:"scrollbarbutton-up"},{name:"scrollbargripper-horizontal"},{name:"scrollbargripper-vertical"},{name:"scrollbarthumb-horizontal"},{name:"scrollbarthumb-vertical"},{name:"scrollbartrack-horizontal"},{name:"scrollbartrack-vertical"},{name:"searchfield"},{name:"searchfield-cancel-button"},{name:"searchfield-decoration"},{name:"searchfield-results-button"},{name:"searchfield-results-decoration"},{name:"slider-horizontal"},{name:"sliderthumb-horizontal"},{name:"sliderthumb-vertical"},{name:"slider-vertical"},{name:"square-button"},{name:"textarea"},{name:"textfield"}],status:"nonstandard",syntax:"none | button | button-bevel | caret | checkbox | default-button | inner-spin-button | listbox | listitem | media-controls-background | media-controls-fullscreen-background | media-current-time-display | media-enter-fullscreen-button | media-exit-fullscreen-button | media-fullscreen-button | media-mute-button | media-overlay-play-button | media-play-button | media-seek-back-button | media-seek-forward-button | media-slider | media-sliderthumb | media-time-remaining-display | media-toggle-closed-captions-button | media-volume-slider | media-volume-slider-container | media-volume-sliderthumb | menulist | menulist-button | menulist-text | menulist-textfield | meter | progress-bar | progress-bar-value | push-button | radio | searchfield | searchfield-cancel-button | searchfield-decoration | searchfield-results-button | searchfield-results-decoration | slider-horizontal | slider-vertical | sliderthumb-horizontal | sliderthumb-vertical | square-button | textarea | textfield | -apple-pay-button",relevance:0,description:"Changes the appearance of buttons and other controls to resemble native controls.",restrictions:["enum"]},{name:"-webkit-backdrop-filter",browsers:["S9"],values:[{name:"none",description:"No filter effects are applied."},{name:"blur()",description:"Applies a Gaussian blur to the input image."},{name:"brightness()",description:"Applies a linear multiplier to input image, making it appear more or less bright."},{name:"contrast()",description:"Adjusts the contrast of the input."},{name:"drop-shadow()",description:"Applies a drop shadow effect to the input image."},{name:"grayscale()",description:"Converts the input image to grayscale."},{name:"hue-rotate()",description:"Applies a hue rotation on the input image. "},{name:"invert()",description:"Inverts the samples in the input image."},{name:"opacity()",description:"Applies transparency to the samples in the input image."},{name:"saturate()",description:"Saturates the input image."},{name:"sepia()",description:"Converts the input image to sepia."},{name:"url()",description:"A filter reference to a <filter> element."}],relevance:50,description:"Applies a filter effect where the first filter in the list takes the element's background image as the input image.",restrictions:["enum","url"]},{name:"-webkit-backface-visibility",browsers:["C","S5"],values:[{name:"hidden"},{name:"visible"}],relevance:50,description:"Determines whether or not the 'back' side of a transformed element is visible when facing the viewer. With an identity transform, the front side of an element faces the viewer.",restrictions:["enum"]},{name:"-webkit-background-clip",browsers:["C","S3"],relevance:50,description:"Determines the background painting area.",restrictions:["box"]},{name:"-webkit-background-composite",browsers:["C","S3"],values:[{name:"border"},{name:"padding"}],relevance:50,restrictions:["enum"]},{name:"-webkit-background-origin",browsers:["C","S3"],relevance:50,description:"For elements rendered as a single box, specifies the background positioning area. For elements rendered as multiple boxes (e.g., inline boxes on several lines, boxes on several pages) specifies which boxes 'box-decoration-break' operates on to determine the background positioning area(s).",restrictions:["box"]},{name:"-webkit-border-image",browsers:["C","S5"],values:[{name:"auto",description:"If 'auto' is specified then the border image width is the intrinsic width or height (whichever is applicable) of the corresponding image slice. If the image does not have the required intrinsic dimension then the corresponding border-width is used instead."},{name:"fill",description:"Causes the middle part of the border-image to be preserved."},{name:"none"},{name:"repeat",description:"The image is tiled (repeated) to fill the area."},{name:"round",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the image is rescaled so that it does."},{name:"space",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the extra space is distributed around the tiles."},{name:"stretch",description:"The image is stretched to fill the area."},{name:"url()"}],relevance:50,description:"Shorthand property for setting 'border-image-source', 'border-image-slice', 'border-image-width', 'border-image-outset' and 'border-image-repeat'. Omitted values are set to their initial values.",restrictions:["length","percentage","number","url","enum"]},{name:"-webkit-box-align",browsers:["C","S3"],values:[{name:"baseline",description:"If this box orientation is inline-axis or horizontal, all children are placed with their baselines aligned, and extra space placed before or after as necessary. For block flows, the baseline of the first non-empty line box located within the element is used. For tables, the baseline of the first cell is used."},{name:"center",description:"Any extra space is divided evenly, with half placed above the child and the other half placed after the child."},{name:"end",description:"For normal direction boxes, the bottom edge of each child is placed along the bottom of the box. Extra space is placed above the element. For reverse direction boxes, the top edge of each child is placed along the top of the box. Extra space is placed below the element."},{name:"start",description:"For normal direction boxes, the top edge of each child is placed along the top of the box. Extra space is placed below the element. For reverse direction boxes, the bottom edge of each child is placed along the bottom of the box. Extra space is placed above the element."},{name:"stretch",description:"The height of each child is adjusted to that of the containing block."}],relevance:50,description:"Specifies the alignment of nested elements within an outer flexible box element.",restrictions:["enum"]},{name:"-webkit-box-direction",browsers:["C","S3"],values:[{name:"normal",description:"A box with a computed value of horizontal for box-orient displays its children from left to right. A box with a computed value of vertical displays its children from top to bottom."},{name:"reverse",description:"A box with a computed value of horizontal for box-orient displays its children from right to left. A box with a computed value of vertical displays its children from bottom to top."}],relevance:50,description:"In webkit applications, -webkit-box-direction specifies whether a box lays out its contents normally (from the top or left edge), or in reverse (from the bottom or right edge).",restrictions:["enum"]},{name:"-webkit-box-flex",browsers:["C","S3"],relevance:50,description:"Specifies an element's flexibility.",restrictions:["number"]},{name:"-webkit-box-flex-group",browsers:["C","S3"],relevance:50,description:"Flexible elements can be assigned to flex groups using the 'box-flex-group' property.",restrictions:["integer"]},{name:"-webkit-box-ordinal-group",browsers:["C","S3"],relevance:50,description:"Indicates the ordinal group the element belongs to. Elements with a lower ordinal group are displayed before those with a higher ordinal group.",restrictions:["integer"]},{name:"-webkit-box-orient",browsers:["C","S3"],values:[{name:"block-axis",description:"Elements are oriented along the box's axis."},{name:"horizontal",description:"The box displays its children from left to right in a horizontal line."},{name:"inline-axis",description:"Elements are oriented vertically."},{name:"vertical",description:"The box displays its children from stacked from top to bottom vertically."}],relevance:50,description:"In webkit applications, -webkit-box-orient specifies whether a box lays out its contents horizontally or vertically.",restrictions:["enum"]},{name:"-webkit-box-pack",browsers:["C","S3"],values:[{name:"center",description:"The extra space is divided evenly, with half placed before the first child and the other half placed after the last child."},{name:"end",description:"For normal direction boxes, the right edge of the last child is placed at the right side, with all extra space placed before the first child. For reverse direction boxes, the left edge of the first child is placed at the left side, with all extra space placed after the last child."},{name:"justify",description:"The space is divided evenly in-between each child, with none of the extra space placed before the first child or after the last child. If there is only one child, treat the pack value as if it were start."},{name:"start",description:"For normal direction boxes, the left edge of the first child is placed at the left side, with all extra space placed after the last child. For reverse direction boxes, the right edge of the last child is placed at the right side, with all extra space placed before the first child."}],relevance:50,description:"Specifies alignment of child elements within the current element in the direction of orientation.",restrictions:["enum"]},{name:"-webkit-box-reflect",browsers:["E79","S4","C4","O15"],values:[{name:"above",description:"The reflection appears above the border box."},{name:"below",description:"The reflection appears below the border box."},{name:"left",description:"The reflection appears to the left of the border box."},{name:"right",description:"The reflection appears to the right of the border box."}],status:"nonstandard",syntax:"[ above | below | right | left ]? <length>? <image>?",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-box-reflect"}],description:"Defines a reflection of a border box."},{name:"-webkit-box-sizing",browsers:["C","S3"],values:[{name:"border-box",description:"The specified width and height (and respective min/max properties) on this element determine the border box of the element."},{name:"content-box",description:"Behavior of width and height as specified by CSS2.1. The specified width and height (and respective min/max properties) apply to the width and height respectively of the content box of the element."}],relevance:50,description:"Box Model addition in CSS3.",restrictions:["enum"]},{name:"-webkit-break-after",browsers:["S7"],values:[{name:"always",description:"Always force a page break before/after the generated box."},{name:"auto",description:"Neither force nor forbid a page/column break before/after the generated box."},{name:"avoid",description:"Avoid a page/column break before/after the generated box."},{name:"avoid-column",description:"Avoid a column break before/after the generated box."},{name:"avoid-page",description:"Avoid a page break before/after the generated box."},{name:"avoid-region"},{name:"column",description:"Always force a column break before/after the generated box."},{name:"left",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a left page."},{name:"page",description:"Always force a page break before/after the generated box."},{name:"region"},{name:"right",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a right page."}],relevance:50,description:"Describes the page/column break behavior before the generated box.",restrictions:["enum"]},{name:"-webkit-break-before",browsers:["S7"],values:[{name:"always",description:"Always force a page break before/after the generated box."},{name:"auto",description:"Neither force nor forbid a page/column break before/after the generated box."},{name:"avoid",description:"Avoid a page/column break before/after the generated box."},{name:"avoid-column",description:"Avoid a column break before/after the generated box."},{name:"avoid-page",description:"Avoid a page break before/after the generated box."},{name:"avoid-region"},{name:"column",description:"Always force a column break before/after the generated box."},{name:"left",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a left page."},{name:"page",description:"Always force a page break before/after the generated box."},{name:"region"},{name:"right",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a right page."}],relevance:50,description:"Describes the page/column break behavior before the generated box.",restrictions:["enum"]},{name:"-webkit-break-inside",browsers:["S7"],values:[{name:"auto",description:"Neither force nor forbid a page/column break inside the generated box."},{name:"avoid",description:"Avoid a page/column break inside the generated box."},{name:"avoid-column",description:"Avoid a column break inside the generated box."},{name:"avoid-page",description:"Avoid a page break inside the generated box."},{name:"avoid-region"}],relevance:50,description:"Describes the page/column break behavior inside the generated box.",restrictions:["enum"]},{name:"-webkit-column-break-after",browsers:["E80","S13.1","C80","O67"],values:[{name:"always",description:"Always force a page break before/after the generated box."},{name:"auto",description:"Neither force nor forbid a page/column break before/after the generated box."},{name:"avoid",description:"Avoid a page/column break before/after the generated box."},{name:"avoid-column",description:"Avoid a column break before/after the generated box."},{name:"avoid-page",description:"Avoid a page break before/after the generated box."},{name:"avoid-region"},{name:"column",description:"Always force a column break before/after the generated box."},{name:"left",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a left page."},{name:"page",description:"Always force a page break before/after the generated box."},{name:"region"},{name:"right",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a right page."}],relevance:50,description:"Describes the page/column break behavior before the generated box.",restrictions:["enum"]},{name:"-webkit-column-break-before",browsers:["E80","S13.1","C80","O67"],values:[{name:"always",description:"Always force a page break before/after the generated box."},{name:"auto",description:"Neither force nor forbid a page/column break before/after the generated box."},{name:"avoid",description:"Avoid a page/column break before/after the generated box."},{name:"avoid-column",description:"Avoid a column break before/after the generated box."},{name:"avoid-page",description:"Avoid a page break before/after the generated box."},{name:"avoid-region"},{name:"column",description:"Always force a column break before/after the generated box."},{name:"left",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a left page."},{name:"page",description:"Always force a page break before/after the generated box."},{name:"region"},{name:"right",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a right page."}],relevance:50,description:"Describes the page/column break behavior before the generated box.",restrictions:["enum"]},{name:"-webkit-column-break-inside",browsers:["E80","S13.1","C80","O67"],values:[{name:"auto",description:"Neither force nor forbid a page/column break inside the generated box."},{name:"avoid",description:"Avoid a page/column break inside the generated box."},{name:"avoid-column",description:"Avoid a column break inside the generated box."},{name:"avoid-page",description:"Avoid a page break inside the generated box."},{name:"avoid-region"}],relevance:50,description:"Describes the page/column break behavior inside the generated box.",restrictions:["enum"]},{name:"-webkit-column-count",browsers:["C","S3"],values:[{name:"auto",description:"Determines the number of columns by the 'column-width' property and the element width."}],relevance:50,description:"Describes the optimal number of columns into which the content of the element will be flowed.",restrictions:["integer"]},{name:"-webkit-column-gap",browsers:["C","S3"],values:[{name:"normal",description:"User agent specific and typically equivalent to 1em."}],relevance:50,description:"Sets the gap between columns. If there is a column rule between columns, it will appear in the middle of the gap.",restrictions:["length"]},{name:"-webkit-column-rule",browsers:["C","S3"],relevance:50,description:"This property is a shorthand for setting 'column-rule-width', 'column-rule-style', and 'column-rule-color' at the same place in the style sheet. Omitted values are set to their initial values.",restrictions:["length","line-width","line-style","color"]},{name:"-webkit-column-rule-color",browsers:["C","S3"],relevance:50,description:"Sets the color of the column rule",restrictions:["color"]},{name:"-webkit-column-rule-style",browsers:["C","S3"],relevance:50,description:"Sets the style of the rule between columns of an element.",restrictions:["line-style"]},{name:"-webkit-column-rule-width",browsers:["C","S3"],relevance:50,description:"Sets the width of the rule between columns. Negative values are not allowed.",restrictions:["length","line-width"]},{name:"-webkit-columns",browsers:["C","S3"],values:[{name:"auto",description:"The width depends on the values of other properties."}],relevance:50,description:"A shorthand property which sets both 'column-width' and 'column-count'.",restrictions:["length","integer"]},{name:"-webkit-column-span",browsers:["C","S3"],values:[{name:"all",description:"The element spans across all columns. Content in the normal flow that appears before the element is automatically balanced across all columns before the element appear."},{name:"none",description:"The element does not span multiple columns."}],relevance:50,description:"Describes the page/column break behavior after the generated box.",restrictions:["enum"]},{name:"-webkit-column-width",browsers:["C","S3"],values:[{name:"auto",description:"The width depends on the values of other properties."}],relevance:50,description:"This property describes the width of columns in multicol elements.",restrictions:["length"]},{name:"-webkit-filter",browsers:["C18","O15","S6"],values:[{name:"none",description:"No filter effects are applied."},{name:"blur()",description:"Applies a Gaussian blur to the input image."},{name:"brightness()",description:"Applies a linear multiplier to input image, making it appear more or less bright."},{name:"contrast()",description:"Adjusts the contrast of the input."},{name:"drop-shadow()",description:"Applies a drop shadow effect to the input image."},{name:"grayscale()",description:"Converts the input image to grayscale."},{name:"hue-rotate()",description:"Applies a hue rotation on the input image. "},{name:"invert()",description:"Inverts the samples in the input image."},{name:"opacity()",description:"Applies transparency to the samples in the input image."},{name:"saturate()",description:"Saturates the input image."},{name:"sepia()",description:"Converts the input image to sepia."},{name:"url()",description:"A filter reference to a <filter> element."}],relevance:50,description:"Processes an element's rendering before it is displayed in the document, by applying one or more filter effects.",restrictions:["enum","url"]},{name:"-webkit-flow-from",browsers:["S6.1"],values:[{name:"none",description:"The block container is not a CSS Region."}],relevance:50,description:"Makes a block container a region and associates it with a named flow.",restrictions:["identifier"]},{name:"-webkit-flow-into",browsers:["S6.1"],values:[{name:"none",description:"The element is not moved to a named flow and normal CSS processing takes place."}],relevance:50,description:"Places an element or its contents into a named flow.",restrictions:["identifier"]},{name:"-webkit-font-feature-settings",browsers:["C16"],values:[{name:'"c2cs"'},{name:'"dlig"'},{name:'"kern"'},{name:'"liga"'},{name:'"lnum"'},{name:'"onum"'},{name:'"smcp"'},{name:'"swsh"'},{name:'"tnum"'},{name:"normal",description:"No change in glyph substitution or positioning occurs."},{name:"off"},{name:"on"}],relevance:50,description:"This property provides low-level control over OpenType font features. It is intended as a way of providing access to font features that are not widely used but are needed for a particular use case.",restrictions:["string","integer"]},{name:"-webkit-hyphens",browsers:["S5.1"],values:[{name:"auto",description:"Conditional hyphenation characters inside a word, if present, take priority over automatic resources when determining hyphenation points within the word."},{name:"manual",description:"Words are only broken at line breaks where there are characters inside the word that suggest line break opportunities"},{name:"none",description:"Words are not broken at line breaks, even if characters inside the word suggest line break points."}],relevance:50,description:"Controls whether hyphenation is allowed to create more break opportunities within a line of text.",restrictions:["enum"]},{name:"-webkit-line-break",browsers:["C","S3"],values:[{name:"after-white-space"},{name:"normal"}],relevance:50,description:"Specifies line-breaking rules for CJK (Chinese, Japanese, and Korean) text."},{name:"-webkit-margin-bottom-collapse",browsers:["C","S3"],values:[{name:"collapse"},{name:"discard"},{name:"separate"}],relevance:50,restrictions:["enum"]},{name:"-webkit-margin-collapse",browsers:["C","S3"],values:[{name:"collapse"},{name:"discard"},{name:"separate"}],relevance:50,restrictions:["enum"]},{name:"-webkit-margin-start",browsers:["C","S3"],values:[{name:"auto"}],relevance:50,restrictions:["percentage","length"]},{name:"-webkit-margin-top-collapse",browsers:["C","S3"],values:[{name:"collapse"},{name:"discard"},{name:"separate"}],relevance:50,restrictions:["enum"]},{name:"-webkit-mask-clip",browsers:["C","O15","S4"],status:"nonstandard",syntax:"[ <box> | border | padding | content | text ]#",relevance:0,description:"Determines the mask painting area, which determines the area that is affected by the mask.",restrictions:["box"]},{name:"-webkit-mask-image",browsers:["C","O15","S4"],values:[{name:"none",description:"Counts as a transparent black image layer."},{name:"url()",description:"Reference to a <mask element or to a CSS image."}],status:"nonstandard",syntax:"<mask-reference>#",relevance:0,description:"Sets the mask layer image of an element.",restrictions:["url","image","enum"]},{name:"-webkit-mask-origin",browsers:["C","O15","S4"],status:"nonstandard",syntax:"[ <box> | border | padding | content ]#",relevance:0,description:"Specifies the mask positioning area.",restrictions:["box"]},{name:"-webkit-mask-repeat",browsers:["C","O15","S4"],status:"nonstandard",syntax:"<repeat-style>#",relevance:0,description:"Specifies how mask layer images are tiled after they have been sized and positioned.",restrictions:["repeat"]},{name:"-webkit-mask-size",browsers:["C","O15","S4"],values:[{name:"auto",description:"Resolved by using the image's intrinsic ratio and the size of the other dimension, or failing that, using the image's intrinsic size, or failing that, treating it as 100%."},{name:"contain",description:"Scale the image, while preserving its intrinsic aspect ratio (if any), to the largest size such that both its width and its height can fit inside the background positioning area."},{name:"cover",description:"Scale the image, while preserving its intrinsic aspect ratio (if any), to the smallest size such that both its width and its height can completely cover the background positioning area."}],status:"nonstandard",syntax:"<bg-size>#",relevance:0,description:"Specifies the size of the mask layer images.",restrictions:["length","percentage","enum"]},{name:"-webkit-nbsp-mode",browsers:["S13.1"],values:[{name:"normal"},{name:"space"}],relevance:50,description:"Defines the behavior of nonbreaking spaces within text."},{name:"-webkit-overflow-scrolling",browsers:["C","S5"],values:[{name:"auto"},{name:"touch"}],status:"nonstandard",syntax:"auto | touch",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-overflow-scrolling"}],description:"Specifies whether to use native-style scrolling in an overflow:scroll element."},{name:"-webkit-padding-start",browsers:["C","S3"],relevance:50,restrictions:["percentage","length"]},{name:"-webkit-perspective",browsers:["C","S4"],values:[{name:"none",description:"No perspective transform is applied."}],relevance:50,description:"Applies the same transform as the perspective(<number>) transform function, except that it applies only to the positioned or transformed children of the element, not to the transform on the element itself.",restrictions:["length"]},{name:"-webkit-perspective-origin",browsers:["C","S4"],relevance:50,description:"Establishes the origin for the perspective property. It effectively sets the X and Y position at which the viewer appears to be looking at the children of the element.",restrictions:["position","percentage","length"]},{name:"-webkit-region-fragment",browsers:["S7"],values:[{name:"auto",description:"Content flows as it would in a regular content box."},{name:"break",description:"If the content fits within the CSS Region, then this property has no effect."}],relevance:50,description:"The 'region-fragment' property controls the behavior of the last region associated with a named flow.",restrictions:["enum"]},{name:"-webkit-tap-highlight-color",browsers:["E12","C16","O15"],status:"nonstandard",syntax:"<color>",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-tap-highlight-color"}],restrictions:["color"]},{name:"-webkit-text-fill-color",browsers:["E12","FF49","S3","C1","O15"],syntax:"<color>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-text-fill-color"}],restrictions:["color"]},{name:"-webkit-text-size-adjust",browsers:["E","C","S3"],values:[{name:"auto",description:"Renderers must use the default size adjustment when displaying on a small device."},{name:"none",description:"Renderers must not do size adjustment when displaying on a small device."}],relevance:50,description:"Specifies a size adjustment for displaying text content in mobile browsers.",restrictions:["percentage"]},{name:"-webkit-text-stroke",browsers:["E15","FF49","S3","C4","O15"],syntax:"<length> || <color>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke"}],restrictions:["length","line-width","color","percentage"]},{name:"-webkit-text-stroke-color",browsers:["E15","FF49","S3","C1","O15"],syntax:"<color>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-color"}],restrictions:["color"]},{name:"-webkit-text-stroke-width",browsers:["E15","FF49","S3","C1","O15"],syntax:"<length>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-width"}],restrictions:["length","line-width","percentage"]},{name:"-webkit-touch-callout",browsers:["S3"],values:[{name:"none"}],status:"nonstandard",syntax:"default | none",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-touch-callout"}],restrictions:["enum"]},{name:"-webkit-transform",browsers:["C","O12","S3.1"],values:[{name:"matrix()",description:"Specifies a 2D transformation in the form of a transformation matrix of six values. matrix(a,b,c,d,e,f) is equivalent to applying the transformation matrix [a b c d e f]"},{name:"matrix3d()",description:"Specifies a 3D transformation as a 4x4 homogeneous matrix of 16 values in column-major order."},{name:"none"},{name:"perspective()",description:"Specifies a perspective projection matrix."},{name:"rotate()",description:"Specifies a 2D rotation by the angle specified in the parameter about the origin of the element, as defined by the transform-origin property."},{name:"rotate3d()",description:"Specifies a clockwise 3D rotation by the angle specified in last parameter about the [x,y,z] direction vector described by the first 3 parameters."},{name:"rotateX('angle')",description:"Specifies a clockwise rotation by the given angle about the X axis."},{name:"rotateY('angle')",description:"Specifies a clockwise rotation by the given angle about the Y axis."},{name:"rotateZ('angle')",description:"Specifies a clockwise rotation by the given angle about the Z axis."},{name:"scale()",description:"Specifies a 2D scale operation by the [sx,sy] scaling vector described by the 2 parameters. If the second parameter is not provided, it is takes a value equal to the first."},{name:"scale3d()",description:"Specifies a 3D scale operation by the [sx,sy,sz] scaling vector described by the 3 parameters."},{name:"scaleX()",description:"Specifies a scale operation using the [sx,1] scaling vector, where sx is given as the parameter."},{name:"scaleY()",description:"Specifies a scale operation using the [sy,1] scaling vector, where sy is given as the parameter."},{name:"scaleZ()",description:"Specifies a scale operation using the [1,1,sz] scaling vector, where sz is given as the parameter."},{name:"skew()",description:"Specifies a skew transformation along the X and Y axes. The first angle parameter specifies the skew on the X axis. The second angle parameter specifies the skew on the Y axis. If the second parameter is not given then a value of 0 is used for the Y angle (ie: no skew on the Y axis)."},{name:"skewX()",description:"Specifies a skew transformation along the X axis by the given angle."},{name:"skewY()",description:"Specifies a skew transformation along the Y axis by the given angle."},{name:"translate()",description:"Specifies a 2D translation by the vector [tx, ty], where tx is the first translation-value parameter and ty is the optional second translation-value parameter."},{name:"translate3d()",description:"Specifies a 3D translation by the vector [tx,ty,tz], with tx, ty and tz being the first, second and third translation-value parameters respectively."},{name:"translateX()",description:"Specifies a translation by the given amount in the X direction."},{name:"translateY()",description:"Specifies a translation by the given amount in the Y direction."},{name:"translateZ()",description:"Specifies a translation by the given amount in the Z direction. Note that percentage values are not allowed in the translateZ translation-value, and if present are evaluated as 0."}],relevance:50,description:"A two-dimensional transformation is applied to an element through the 'transform' property. This property contains a list of transform functions similar to those allowed by SVG.",restrictions:["enum"]},{name:"-webkit-transform-origin",browsers:["C","O15","S3.1"],relevance:50,description:"Establishes the origin of transformation for an element.",restrictions:["position","length","percentage"]},{name:"-webkit-transform-origin-x",browsers:["E80","S13.1","C80","O67"],relevance:50,description:"The x coordinate of the origin for transforms applied to an element with respect to its border box.",restrictions:["length","percentage"]},{name:"-webkit-transform-origin-y",browsers:["E80","S13.1","C80","O67"],relevance:50,description:"The y coordinate of the origin for transforms applied to an element with respect to its border box.",restrictions:["length","percentage"]},{name:"-webkit-transform-origin-z",browsers:["E80","S13.1","C80","O67"],relevance:50,description:"The z coordinate of the origin for transforms applied to an element with respect to its border box.",restrictions:["length","percentage"]},{name:"-webkit-transform-style",browsers:["C","S4"],values:[{name:"flat",description:"All children of this element are rendered flattened into the 2D plane of the element."}],relevance:50,description:"Defines how nested elements are rendered in 3D space.",restrictions:["enum"]},{name:"-webkit-transition",browsers:["C","O12","S5"],values:[{name:"all",description:"Every property that is able to undergo a transition will do so."},{name:"none",description:"No property will transition."}],relevance:50,description:"Shorthand property combines four of the transition properties into a single property.",restrictions:["time","property","timing-function","enum"]},{name:"-webkit-transition-delay",browsers:["C","O12","S5"],relevance:50,description:"Defines when the transition will start. It allows a transition to begin execution some period of time from when it is applied.",restrictions:["time"]},{name:"-webkit-transition-duration",browsers:["C","O12","S5"],relevance:50,description:"Specifies how long the transition from the old value to the new value should take.",restrictions:["time"]},{name:"-webkit-transition-property",browsers:["C","O12","S5"],values:[{name:"all",description:"Every property that is able to undergo a transition will do so."},{name:"none",description:"No property will transition."}],relevance:50,description:"Specifies the name of the CSS property to which the transition is applied.",restrictions:["property"]},{name:"-webkit-transition-timing-function",browsers:["C","O12","S5"],relevance:50,description:"Describes how the intermediate values used during a transition will be calculated.",restrictions:["timing-function"]},{name:"-webkit-user-drag",browsers:["E80","S13.1","C80","O67"],values:[{name:"auto"},{name:"element"},{name:"none"}],relevance:50,restrictions:["enum"]},{name:"-webkit-user-modify",browsers:["E80","S13.1","C80","O67"],values:[{name:"read-only"},{name:"read-write"},{name:"read-write-plaintext-only"}],syntax:"read-only | read-write | read-write-plaintext-only",relevance:50,description:"Determines whether a user can edit the content of an element.",restrictions:["enum"]},{name:"-webkit-user-select",browsers:["C","S3"],values:[{name:"auto"},{name:"none"},{name:"text"}],relevance:50,description:"Controls the appearance of selection.",restrictions:["enum"]},{name:"widows",browsers:["E12","S1.3","C25","IE8","O9.2"],syntax:"<integer>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/widows"}],description:"Specifies the minimum number of line boxes of a block container that must be left in a fragment after a break.",restrictions:["integer"]},{name:"width",browsers:["E12","FF1","S1","C1","IE4","O3.5"],values:[{name:"auto",description:"The width depends on the values of other properties."},{name:"fit-content",browsers:["E12","FF1","S1","C1","IE4","O3.5"],description:"Use the fit-content inline size or fit-content block size, as appropriate to the writing mode."},{name:"max-content",browsers:["E12","FF1","S1","C1","IE4","O3.5"],description:"Use the max-content inline size or max-content block size, as appropriate to the writing mode."},{name:"min-content",browsers:["E12","FF1","S1","C1","IE4","O3.5"],description:"Use the min-content inline size or min-content block size, as appropriate to the writing mode."}],syntax:"auto | <length> | <percentage> | min-content | max-content | fit-content | fit-content(<length-percentage>)",relevance:96,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/width"}],description:"Specifies the width of the content area, padding area or border area (depending on 'box-sizing') of certain boxes.",restrictions:["length","percentage"]},{name:"will-change",browsers:["E79","FF36","S9.1","C36","O24"],values:[{name:"auto",description:"Expresses no particular intent."},{name:"contents",description:"Indicates that the author expects to animate or change something about the element's contents in the near future."},{name:"scroll-position",description:"Indicates that the author expects to animate or change the scroll position of the element in the near future."}],syntax:"auto | <animateable-feature>#",relevance:65,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/will-change"}],description:"Provides a rendering hint to the user agent, stating what kinds of changes the author expects to perform on the element.",restrictions:["enum","identifier"]},{name:"word-break",browsers:["E12","FF15","S3","C1","IE5.5","O15"],values:[{name:"break-all",description:"Lines may break between any two grapheme clusters for non-CJK scripts."},{name:"keep-all",description:"Block characters can no longer create implied break points."},{name:"normal",description:"Breaks non-CJK scripts according to their own rules."}],syntax:"normal | break-all | keep-all | break-word",relevance:76,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/word-break"}],description:"Specifies line break opportunities for non-CJK scripts.",restrictions:["enum"]},{name:"word-spacing",browsers:["E12","FF1","S1","C1","IE6","O3.5"],values:[{name:"normal",description:"No additional spacing is applied. Computes to zero."}],syntax:"normal | <length>",relevance:57,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/word-spacing"}],description:'Specifies additional spacing between "words".',restrictions:["length","percentage"]},{name:"word-wrap",browsers:["E80","FF72","S13.1","C80","O67"],values:[{name:"break-word",description:"An otherwise unbreakable sequence of characters may be broken at an arbitrary point if there are no otherwise-acceptable break points in the line."},{name:"normal",description:"Lines may break only at allowed break points."}],syntax:"normal | break-word",relevance:77,description:"Specifies whether the UA may break within a word to prevent overflow when an otherwise-unbreakable string is too long to fit.",restrictions:["enum"]},{name:"writing-mode",browsers:["E12","FF41","S10.1","C48","IE9","O35"],values:[{name:"horizontal-tb",description:"Top-to-bottom block flow direction. The writing mode is horizontal."},{name:"sideways-lr",browsers:["E12","FF41","S10.1","C48","IE9","O35"],description:"Left-to-right block flow direction. The writing mode is vertical, while the typographic mode is horizontal."},{name:"sideways-rl",browsers:["E12","FF41","S10.1","C48","IE9","O35"],description:"Right-to-left block flow direction. The writing mode is vertical, while the typographic mode is horizontal."},{name:"vertical-lr",description:"Left-to-right block flow direction. The writing mode is vertical."},{name:"vertical-rl",description:"Right-to-left block flow direction. The writing mode is vertical."}],syntax:"horizontal-tb | vertical-rl | vertical-lr | sideways-rl | sideways-lr",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/writing-mode"}],description:"This is a shorthand property for both 'direction' and 'block-progression'.",restrictions:["enum"]},{name:"z-index",browsers:["E12","FF1","S1","C1","IE4","O4"],values:[{name:"auto",description:"The stack level of the generated box in the current stacking context is 0. The box does not establish a new stacking context unless it is the root element."}],syntax:"auto | <integer>",relevance:92,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/z-index"}],description:"For a positioned box, the 'z-index' property specifies the stack level of the box in the current stacking context and whether the box establishes a local stacking context.",restrictions:["integer"]},{name:"zoom",browsers:["E12","FFpreview","S3.1","C1","IE5.5","O15"],values:[{name:"normal"}],status:"nonstandard",syntax:"normal | reset | <number> | <percentage>",relevance:15,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/zoom"}],description:"Non-standard. Specifies the magnification scale of the object. See 'transform: scale()' for a standards-based alternative.",restrictions:["enum","integer","number","percentage"]},{name:"-ms-ime-align",status:"nonstandard",syntax:"auto | after",values:[{name:"auto"},{name:"after"}],relevance:0,description:"Aligns the Input Method Editor (IME) candidate window box relative to the element on which the IME composition is active."},{name:"-moz-binding",status:"nonstandard",syntax:"<url> | none",relevance:0,description:"The -moz-binding CSS property is used by Mozilla-based applications to attach an XBL binding to a DOM element."},{name:"-moz-context-properties",status:"nonstandard",syntax:"none | [ fill | fill-opacity | stroke | stroke-opacity ]#",relevance:0,description:"If you reference an SVG image in a webpage (such as with the <img> element or as a background image), the SVG image can coordinate with the embedding element (its context) to have the image adopt property values set on the embedding element. To do this the embedding element needs to list the properties that are to be made available to the image by listing them as values of the -moz-context-properties property, and the image needs to opt in to using those properties by using values such as the context-fill value.\n\nThis feature is available since Firefox 55, but is only currently supported with SVG images loaded via chrome:// or resource:// URLs. To experiment with the feature in SVG on the Web it is necessary to set the svg.context-properties.content.enabled pref to true."},{name:"-moz-float-edge",status:"obsolete",syntax:"border-box | content-box | margin-box | padding-box",values:[{name:"border-box"},{name:"content-box"},{name:"margin-box"},{name:"padding-box"}],relevance:0,browsers:["FF1"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-moz-float-edge"}],description:"The non-standard -moz-float-edge CSS property specifies whether the height and width properties of the element include the margin, border, or padding thickness."},{name:"-moz-force-broken-image-icon",status:"obsolete",syntax:"0 | 1",values:[{name:"0"},{name:"1"}],relevance:0,browsers:["FF1"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-moz-force-broken-image-icon"}],description:"The -moz-force-broken-image-icon extended CSS property can be used to force the broken image icon to be shown even when a broken image has an alt attribute."},{name:"-moz-image-region",status:"nonstandard",syntax:"<shape> | auto",relevance:0,browsers:["FF1"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-moz-image-region"}],description:"For certain XUL elements and pseudo-elements that use an image from the list-style-image property, this property specifies a region of the image that is used in place of the whole image. This allows elements to use different pieces of the same image to improve performance."},{name:"-moz-orient",status:"nonstandard",syntax:"inline | block | horizontal | vertical",values:[{name:"inline"},{name:"block"},{name:"horizontal"},{name:"vertical"}],relevance:0,browsers:["FF6"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-moz-orient"}],description:"The -moz-orient CSS property specifies the orientation of the element to which it's applied."},{name:"-moz-outline-radius",status:"nonstandard",syntax:"<outline-radius>{1,4} [ / <outline-radius>{1,4} ]?",relevance:0,description:"In Mozilla applications like Firefox, the -moz-outline-radius CSS property can be used to give an element's outline rounded corners."},{name:"-moz-outline-radius-bottomleft",status:"nonstandard",syntax:"<outline-radius>",relevance:0,description:"In Mozilla applications, the -moz-outline-radius-bottomleft CSS property can be used to round the bottom-left corner of an element's outline."},{name:"-moz-outline-radius-bottomright",status:"nonstandard",syntax:"<outline-radius>",relevance:0,description:"In Mozilla applications, the -moz-outline-radius-bottomright CSS property can be used to round the bottom-right corner of an element's outline."},{name:"-moz-outline-radius-topleft",status:"nonstandard",syntax:"<outline-radius>",relevance:0,description:"In Mozilla applications, the -moz-outline-radius-topleft CSS property can be used to round the top-left corner of an element's outline."},{name:"-moz-outline-radius-topright",status:"nonstandard",syntax:"<outline-radius>",relevance:0,description:"In Mozilla applications, the -moz-outline-radius-topright CSS property can be used to round the top-right corner of an element's outline."},{name:"-moz-stack-sizing",status:"nonstandard",syntax:"ignore | stretch-to-fit",values:[{name:"ignore"},{name:"stretch-to-fit"}],relevance:0,description:"-moz-stack-sizing is an extended CSS property. Normally, a stack will change its size so that all of its child elements are completely visible. For example, moving a child of the stack far to the right will widen the stack so the child remains visible."},{name:"-moz-text-blink",status:"nonstandard",syntax:"none | blink",values:[{name:"none"},{name:"blink"}],relevance:0,description:"The -moz-text-blink non-standard Mozilla CSS extension specifies the blink mode."},{name:"-moz-user-input",status:"obsolete",syntax:"auto | none | enabled | disabled",values:[{name:"auto"},{name:"none"},{name:"enabled"},{name:"disabled"}],relevance:0,browsers:["FF1"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-moz-user-input"}],description:"In Mozilla applications, -moz-user-input determines if an element will accept user input."},{name:"-moz-user-modify",status:"nonstandard",syntax:"read-only | read-write | write-only",values:[{name:"read-only"},{name:"read-write"},{name:"write-only"}],relevance:0,description:"The -moz-user-modify property has no effect. It was originally planned to determine whether or not the content of an element can be edited by a user."},{name:"-moz-window-dragging",status:"nonstandard",syntax:"drag | no-drag",values:[{name:"drag"},{name:"no-drag"}],relevance:0,description:"The -moz-window-dragging CSS property specifies whether a window is draggable or not. It only works in Chrome code, and only on Mac OS X."},{name:"-moz-window-shadow",status:"nonstandard",syntax:"default | menu | tooltip | sheet | none",values:[{name:"default"},{name:"menu"},{name:"tooltip"},{name:"sheet"},{name:"none"}],relevance:0,description:"The -moz-window-shadow CSS property specifies whether a window will have a shadow. It only works on Mac OS X."},{name:"-webkit-border-before",status:"nonstandard",syntax:"<'border-width'> || <'border-style'> || <color>",relevance:0,browsers:["E79","S5.1","C8","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-border-before"}],description:"The -webkit-border-before CSS property is a shorthand property for setting the individual logical block start border property values in a single place in the style sheet."},{name:"-webkit-border-before-color",status:"nonstandard",syntax:"<color>",relevance:0,description:"The -webkit-border-before-color CSS property sets the color of the individual logical block start border in a single place in the style sheet."},{name:"-webkit-border-before-style",status:"nonstandard",syntax:"<'border-style'>",relevance:0,description:"The -webkit-border-before-style CSS property sets the style of the individual logical block start border in a single place in the style sheet."},{name:"-webkit-border-before-width",status:"nonstandard",syntax:"<'border-width'>",relevance:0,description:"The -webkit-border-before-width CSS property sets the width of the individual logical block start border in a single place in the style sheet."},{name:"-webkit-line-clamp",syntax:"none | <integer>",relevance:50,browsers:["E17","FF68","S5","C6","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-line-clamp"}],description:"The -webkit-line-clamp CSS property allows limiting of the contents of a block container to the specified number of lines."},{name:"-webkit-mask",status:"nonstandard",syntax:"[ <mask-reference> || <position> [ / <bg-size> ]? || <repeat-style> || [ <box> | border | padding | content | text ] || [ <box> | border | padding | content ] ]#",relevance:0,description:"The mask CSS property alters the visibility of an element by either partially or fully hiding it. This is accomplished by either masking or clipping the image at specific points."},{name:"-webkit-mask-attachment",status:"nonstandard",syntax:"<attachment>#",relevance:0,browsers:["S4","C1"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-attachment"}],description:"If a -webkit-mask-image is specified, -webkit-mask-attachment determines whether the mask image's position is fixed within the viewport, or scrolls along with its containing block."},{name:"-webkit-mask-composite",status:"nonstandard",syntax:"<composite-style>#",relevance:0,browsers:["E18","S3.1","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-composite"}],description:"The -webkit-mask-composite property specifies the manner in which multiple mask images applied to the same element are composited with one another. Mask images are composited in the opposite order that they are declared with the -webkit-mask-image property."},{name:"-webkit-mask-position",status:"nonstandard",syntax:"<position>#",relevance:0,description:"The mask-position CSS property sets the initial position, relative to the mask position layer defined by mask-origin, for each defined mask image."},{name:"-webkit-mask-position-x",status:"nonstandard",syntax:"[ <length-percentage> | left | center | right ]#",relevance:0,browsers:["E18","FF49","S3.1","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-position-x"}],description:"The -webkit-mask-position-x CSS property sets the initial horizontal position of a mask image."},{name:"-webkit-mask-position-y",status:"nonstandard",syntax:"[ <length-percentage> | top | center | bottom ]#",relevance:0,browsers:["E18","FF49","S3.1","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-position-y"}],description:"The -webkit-mask-position-y CSS property sets the initial vertical position of a mask image."},{name:"-webkit-mask-repeat-x",status:"nonstandard",syntax:"repeat | no-repeat | space | round",values:[{name:"repeat"},{name:"no-repeat"},{name:"space"},{name:"round"}],relevance:0,browsers:["E79","S5","C3","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-repeat-x"}],description:"The -webkit-mask-repeat-x property specifies whether and how a mask image is repeated (tiled) horizontally."},{name:"-webkit-mask-repeat-y",status:"nonstandard",syntax:"repeat | no-repeat | space | round",values:[{name:"repeat"},{name:"no-repeat"},{name:"space"},{name:"round"}],relevance:0,browsers:["E79","S5","C3","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-repeat-y"}],description:"The -webkit-mask-repeat-y property specifies whether and how a mask image is repeated (tiled) vertically."},{name:"accent-color",syntax:"auto | <color>",relevance:50,browsers:["E93","FF92","S15.4","C93","O79"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/accent-color"}],description:"Sets the color of the elements accent"},{name:"align-tracks",status:"experimental",syntax:"[ normal | <baseline-position> | <content-distribution> | <overflow-position>? <content-position> ]#",relevance:50,browsers:["FF77"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/align-tracks"}],description:"The align-tracks CSS property sets the alignment in the masonry axis for grid containers that have masonry in their block axis."},{name:"animation-composition",syntax:"<single-animation-composition>#",relevance:50,browsers:["E112","FF115","S16","C112","O98"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-composition"}],description:"The composite operation to use when multiple animations affect the same property."},{name:"animation-range",status:"experimental",syntax:"[ <'animation-range-start'> <'animation-range-end'>? ]#",relevance:50,browsers:["E115","C115","O101"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-range"}],description:"The animation-range CSS shorthand property is used to set the start and end of an animation's attachment range along its timeline, i.e. where along the timeline an animation will start and end."},{name:"animation-range-end",status:"experimental",syntax:"[ normal | <length-percentage> | <timeline-range-name> <length-percentage>? ]#",relevance:50,browsers:["E115","C115","O101"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-range-end"}],description:"The animation-range-end CSS property is used to set the end of an animation's attachment range along its timeline, i.e. where along the timeline an animation will end."},{name:"animation-range-start",status:"experimental",syntax:"[ normal | <length-percentage> | <timeline-range-name> <length-percentage>? ]#",relevance:50,browsers:["E115","C115","O101"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-range-start"}],description:"The animation-range-start CSS property is used to set the start of an animation's attachment range along its timeline, i.e. where along the timeline an animation will start."},{name:"animation-timeline",status:"experimental",syntax:"<single-animation-timeline>#",relevance:50,browsers:["E115","FF110","C115","O101"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-timeline"}],description:"Specifies the names of one or more @scroll-timeline at-rules to describe the element's scroll animations."},{name:"appearance",syntax:"none | auto | textfield | menulist-button | <compat-auto>",relevance:69,browsers:["E84","FF80","S15.4","C84","O70"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/appearance"}],description:"Changes the appearance of buttons and other controls to resemble native controls."},{name:"aspect-ratio",syntax:"auto | <ratio>",relevance:60,browsers:["E88","FF89","S15","C88","O74"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/aspect-ratio"}],description:"The aspect-ratio CSS property sets a preferred aspect ratio for the box, which will be used in the calculation of auto sizes and some other layout functions."},{name:"azimuth",status:"obsolete",syntax:"<angle> | [ [ left-side | far-left | left | center-left | center | center-right | right | far-right | right-side ] || behind ] | leftwards | rightwards",relevance:0,description:"In combination with elevation, the azimuth CSS property enables different audio sources to be positioned spatially for aural presentation. This is important in that it provides a natural way to tell several voices apart, as each can be positioned to originate at a different location on the sound stage. Stereo output produce a lateral sound stage, while binaural headphones and multi-speaker setups allow for a fully three-dimensional stage."},{name:"backdrop-filter",syntax:"none | <filter-function-list>",relevance:58,browsers:["E17","FF103","S9","C76","O63"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/backdrop-filter"}],description:"The backdrop-filter CSS property lets you apply graphical effects such as blurring or color shifting to the area behind an element. Because it applies to everything behind the element, to see the effect you must make the element or its background at least partially transparent."},{name:"border-block",syntax:"<'border-top-width'> || <'border-top-style'> || <color>",relevance:50,browsers:["E87","FF66","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block"}],description:"The border-block CSS property is a shorthand property for setting the individual logical block border property values in a single place in the style sheet."},{name:"border-block-color",syntax:"<'border-top-color'>{1,2}",relevance:50,browsers:["E87","FF66","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-color"}],description:"The border-block-color CSS property defines the color of the logical block borders of an element, which maps to a physical border color depending on the element's writing mode, directionality, and text orientation. It corresponds to the border-top-color and border-bottom-color, or border-right-color and border-left-color property depending on the values defined for writing-mode, direction, and text-orientation."},{name:"border-block-style",syntax:"<'border-top-style'>",relevance:50,browsers:["E87","FF66","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-style"}],description:"The border-block-style CSS property defines the style of the logical block borders of an element, which maps to a physical border style depending on the element's writing mode, directionality, and text orientation. It corresponds to the border-top-style and border-bottom-style, or border-left-style and border-right-style properties depending on the values defined for writing-mode, direction, and text-orientation."},{name:"border-block-width",syntax:"<'border-top-width'>",relevance:50,browsers:["E87","FF66","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-width"}],description:"The border-block-width CSS property defines the width of the logical block borders of an element, which maps to a physical border width depending on the element's writing mode, directionality, and text orientation. It corresponds to the border-top-width and border-bottom-width, or border-left-width, and border-right-width property depending on the values defined for writing-mode, direction, and text-orientation."},{name:"border-end-end-radius",syntax:"<length-percentage>{1,2}",relevance:53,browsers:["E89","FF66","S15","C89","O75"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-end-end-radius"}],description:"The border-end-end-radius CSS property defines a logical border radius on an element, which maps to a physical border radius that depends on on the element's writing-mode, direction, and text-orientation."},{name:"border-end-start-radius",syntax:"<length-percentage>{1,2}",relevance:53,browsers:["E89","FF66","S15","C89","O75"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-end-start-radius"}],description:"The border-end-start-radius CSS property defines a logical border radius on an element, which maps to a physical border radius depending on the element's writing-mode, direction, and text-orientation."},{name:"border-inline",syntax:"<'border-top-width'> || <'border-top-style'> || <color>",relevance:50,browsers:["E87","FF66","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline"}],description:"The border-inline CSS property is a shorthand property for setting the individual logical inline border property values in a single place in the style sheet."},{name:"border-inline-color",syntax:"<'border-top-color'>{1,2}",relevance:50,browsers:["E87","FF66","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-color"}],description:"The border-inline-color CSS property defines the color of the logical inline borders of an element, which maps to a physical border color depending on the element's writing mode, directionality, and text orientation. It corresponds to the border-top-color and border-bottom-color, or border-right-color and border-left-color property depending on the values defined for writing-mode, direction, and text-orientation."},{name:"border-inline-style",syntax:"<'border-top-style'>",relevance:50,browsers:["E87","FF66","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-style"}],description:"The border-inline-style CSS property defines the style of the logical inline borders of an element, which maps to a physical border style depending on the element's writing mode, directionality, and text orientation. It corresponds to the border-top-style and border-bottom-style, or border-left-style and border-right-style properties depending on the values defined for writing-mode, direction, and text-orientation."},{name:"border-inline-width",syntax:"<'border-top-width'>",relevance:50,browsers:["E87","FF66","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-width"}],description:"The border-inline-width CSS property defines the width of the logical inline borders of an element, which maps to a physical border width depending on the element's writing mode, directionality, and text orientation. It corresponds to the border-top-width and border-bottom-width, or border-left-width, and border-right-width property depending on the values defined for writing-mode, direction, and text-orientation."},{name:"border-start-end-radius",syntax:"<length-percentage>{1,2}",relevance:53,browsers:["E89","FF66","S15","C89","O75"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-start-end-radius"}],description:"The border-start-end-radius CSS property defines a logical border radius on an element, which maps to a physical border radius depending on the element's writing-mode, direction, and text-orientation."},{name:"border-start-start-radius",syntax:"<length-percentage>{1,2}",relevance:53,browsers:["E89","FF66","S15","C89","O75"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-start-start-radius"}],description:"The border-start-start-radius CSS property defines a logical border radius on an element, which maps to a physical border radius that depends on the element's writing-mode, direction, and text-orientation."},{name:"box-align",status:"obsolete",syntax:"start | center | end | baseline | stretch",values:[{name:"start"},{name:"center"},{name:"end"},{name:"baseline"},{name:"stretch"}],relevance:0,browsers:["E12","FF49","S3","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-align"}],description:"The box-align CSS property specifies how an element aligns its contents across its layout in a perpendicular direction. The effect of the property is only visible if there is extra space in the box."},{name:"box-direction",status:"obsolete",syntax:"normal | reverse | inherit",values:[{name:"normal"},{name:"reverse"},{name:"inherit"}],relevance:0,browsers:["E12","FF49","S3","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-direction"}],description:"The box-direction CSS property specifies whether a box lays out its contents normally (from the top or left edge), or in reverse (from the bottom or right edge)."},{name:"box-flex",status:"obsolete",syntax:"<number>",relevance:0,browsers:["E12","FF49","S3","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-flex"}],description:"The -moz-box-flex and -webkit-box-flex CSS properties specify how a -moz-box or -webkit-box grows to fill the box that contains it, in the direction of the containing box's layout."},{name:"box-flex-group",status:"obsolete",syntax:"<integer>",relevance:0,browsers:["S3","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-flex-group"}],description:"The box-flex-group CSS property assigns the flexbox's child elements to a flex group."},{name:"box-lines",status:"obsolete",syntax:"single | multiple",values:[{name:"single"},{name:"multiple"}],relevance:0,browsers:["S3","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-lines"}],description:"The box-lines CSS property determines whether the box may have a single or multiple lines (rows for horizontally oriented boxes, columns for vertically oriented boxes)."},{name:"box-ordinal-group",status:"obsolete",syntax:"<integer>",relevance:0,browsers:["E12","FF49","S3","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-ordinal-group"}],description:"The box-ordinal-group CSS property assigns the flexbox's child elements to an ordinal group."},{name:"box-orient",status:"obsolete",syntax:"horizontal | vertical | inline-axis | block-axis | inherit",values:[{name:"horizontal"},{name:"vertical"},{name:"inline-axis"},{name:"block-axis"},{name:"inherit"}],relevance:0,browsers:["E12","FF49","S3","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-orient"}],description:"The box-orient CSS property specifies whether an element lays out its contents horizontally or vertically."},{name:"box-pack",status:"obsolete",syntax:"start | center | end | justify",values:[{name:"start"},{name:"center"},{name:"end"},{name:"justify"}],relevance:0,browsers:["E12","FF49","S3","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-pack"}],description:"The -moz-box-pack and -webkit-box-pack CSS properties specify how a -moz-box or -webkit-box packs its contents in the direction of its layout. The effect of this is only visible if there is extra space in the box."},{name:"caret",syntax:"<'caret-color'> || <'caret-shape'>",relevance:50,description:"Shorthand for setting caret-color and caret-shape."},{name:"caret-shape",syntax:"auto | bar | block | underscore",values:[{name:"auto"},{name:"bar"},{name:"block"},{name:"underscore"}],relevance:50,description:"Specifies the desired shape of the text insertion caret."},{name:"color-scheme",syntax:"normal | [ light | dark | <custom-ident> ]+ && only?",relevance:57,browsers:["E81","FF96","S13","C81","O68"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/color-scheme"}],description:"The color-scheme CSS property allows an element to indicate which color schemes it can comfortably be rendered in."},{name:"contain-intrinsic-size",syntax:"[ auto? [ none | <length> ] ]{1,2}",relevance:50,browsers:["E83","FF107","S17","C83","O69"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-size"}],description:"Size of an element when the element is subject to size containment."},{name:"contain-intrinsic-block-size",syntax:"auto? [ none | <length> ]",relevance:50,browsers:["E95","FF107","S17","C95","O81"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-contain-intrinsic-block-size"}],description:"Block size of an element when the element is subject to size containment."},{name:"contain-intrinsic-height",syntax:"auto? [ none | <length> ]",relevance:50,browsers:["E95","FF107","S17","C95","O81"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-height"}],description:"Height of an element when the element is subject to size containment."},{name:"contain-intrinsic-inline-size",syntax:"auto? [ none | <length> ]",relevance:50,browsers:["E95","FF107","S17","C95","O81"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-contain-intrinsic-inline-size"}],description:"Inline size of an element when the element is subject to size containment."},{name:"contain-intrinsic-width",syntax:"auto? [ none | <length> ]",relevance:50,browsers:["E95","FF107","S17","C95","O81"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-width"}],description:"Width of an element when the element is subject to size containment."},{name:"container",syntax:"<'container-name'> [ / <'container-type'> ]?",relevance:53,browsers:["E105","FF110","S16","C105","O91"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/container"}],description:"The container shorthand CSS property establishes the element as a query container and specifies the name or name for the containment context used in a container query."},{name:"container-name",syntax:"none | <custom-ident>+",relevance:50,browsers:["E105","FF110","S16","C105","O91"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/container-name"}],description:"The container-name CSS property specifies a list of query container names used by the @container at-rule in a container query."},{name:"container-type",syntax:"normal | size | inline-size",values:[{name:"normal"},{name:"size"},{name:"inline-size"}],relevance:50,browsers:["E105","FF110","S16","C105","O91"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/container-type"}],description:"The container-type CSS property is used to define the type of containment used in a container query."},{name:"content-visibility",syntax:"visible | auto | hidden",values:[{name:"visible"},{name:"auto"},{name:"hidden"}],relevance:52,browsers:["E85","FFpreview","Spreview","C85","O71"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/content-visibility"}],description:"Controls whether or not an element renders its contents at all, along with forcing a strong set of containments, allowing user agents to potentially omit large swathes of layout and rendering work until it becomes needed."},{name:"counter-set",syntax:"[ <counter-name> <integer>? ]+ | none",relevance:50,browsers:["E85","FF68","S17.2","C85","O71"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/counter-set"}],description:"The counter-set CSS property sets a CSS counter to a given value. It manipulates the value of existing counters, and will only create new counters if there isn't already a counter of the given name on the element."},{name:"font-optical-sizing",syntax:"auto | none",values:[{name:"auto"},{name:"none"}],relevance:50,browsers:["E17","FF62","S11","C79","O66"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-optical-sizing"}],description:"The font-optical-sizing CSS property allows developers to control whether browsers render text with slightly differing visual representations to optimize viewing at different sizes, or not. This only works for fonts that have an optical size variation axis."},{name:"font-palette",syntax:"normal | light | dark | <palette-identifier>",relevance:50,browsers:["E101","FF107","S15.4","C101","O87"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-palette"}],description:"The font-palette CSS property allows specifying one of the many palettes contained in a font that a user agent should use for the font. Users can also override the values in a palette or create a new palette by using the @font-palette-values at-rule."},{name:"font-variation-settings",atRule:"@font-face",syntax:"normal | [ <string> <number> ]#",relevance:51,browsers:["E17","FF62","S11","C62","O49"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-variation-settings"}],description:"The font-variation-settings CSS property provides low-level control over OpenType or TrueType font variations, by specifying the four letter axis names of the features you want to vary, along with their variation values."},{name:"font-smooth",status:"nonstandard",syntax:"auto | never | always | <absolute-size> | <length>",relevance:0,browsers:["E79","FF25","S4","C5","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-smooth"}],description:"The font-smooth CSS property controls the application of anti-aliasing when fonts are rendered."},{name:"font-synthesis-position",syntax:"auto | none",values:[{name:"auto"},{name:"none"}],relevance:50,browsers:["FF118"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-synthesis-position"}],description:'The font-synthesis-position CSS property lets you specify whether or not a browser may synthesize the subscript and superscript "position" typefaces when they are missing in a font family, while using font-variant-position to set the positions.'},{name:"font-synthesis-small-caps",syntax:"auto | none",values:[{name:"auto"},{name:"none"}],relevance:50,browsers:["E97","FF111","S16.4","C97","O83"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-synthesis-small-caps"}],description:"The font-synthesis-small-caps CSS property lets you specify whether or not the browser may synthesize small-caps typeface when it is missing in a font family. Small-caps glyphs typically use the form of uppercase letters but are reduced to the size of lowercase letters."},{name:"font-synthesis-style",syntax:"auto | none",values:[{name:"auto"},{name:"none"}],relevance:50,browsers:["E97","FF111","S16.4","C97","O83"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-synthesis-style"}],description:"The font-synthesis-style CSS property lets you specify whether or not the browser may synthesize the oblique typeface when it is missing in a font family."},{name:"font-synthesis-weight",syntax:"auto | none",values:[{name:"auto"},{name:"none"}],relevance:50,browsers:["E97","FF111","S16.4","C97","O83"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-synthesis-weight"}],description:"The font-synthesis-weight CSS property lets you specify whether or not the browser may synthesize the bold typeface when it is missing in a font family."},{name:"font-variant-emoji",syntax:"normal | text | emoji | unicode",values:[{name:"normal"},{name:"text"},{name:"emoji"},{name:"unicode"}],relevance:50,browsers:["FF108"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-variant-emoji"}],description:"The font-variant-emoji CSS property specifies the default presentation style for displaying emojis."},{name:"forced-color-adjust",syntax:"auto | none",values:[{name:"auto"},{name:"none"}],relevance:57,browsers:["E79","FF113","C89","IE10","O75"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/forced-color-adjust"}],description:"Allows authors to opt certain elements out of forced colors mode. This then restores the control of those values to CSS"},{name:"gap",syntax:"<'row-gap'> <'column-gap'>?",relevance:70,browsers:["E16","FF52","S10.1","C57","O44"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/gap"}],description:"The gap CSS property is a shorthand property for row-gap and column-gap specifying the gutters between grid rows and columns."},{name:"hanging-punctuation",syntax:"none | [ first || [ force-end | allow-end ] || last ]",relevance:50,browsers:["S10"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/hanging-punctuation"}],description:"The hanging-punctuation CSS property specifies whether a punctuation mark should hang at the start or end of a line of text. Hanging punctuation may be placed outside the line box."},{name:"hyphenate-character",syntax:"auto | <string>",relevance:50,browsers:["E106","FF98","S17","C106","O92"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/hyphenate-character"}],description:"A hyphenate character used at the end of a line."},{name:"hyphenate-limit-chars",syntax:"[ auto | <integer> ]{1,3}",relevance:50,browsers:["E109","C109","O95"],description:"The hyphenate-limit-chars CSS property specifies the minimum word length to allow hyphenation of words as well as the minimum number of characters before and after the hyphen."},{name:"image-resolution",status:"experimental",syntax:"[ from-image || <resolution> ] && snap?",relevance:50,description:"The image-resolution property specifies the intrinsic resolution of all raster images used in or on the element. It affects both content images (e.g. replaced elements and generated content) and decorative images (such as background-image). The intrinsic resolution of an image is used to determine the image\u2019s intrinsic dimensions."},{name:"initial-letter",status:"experimental",syntax:"normal | [ <number> <integer>? ]",relevance:50,browsers:["E110","S9","C110","O96"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/initial-letter"}],description:"The initial-letter CSS property specifies styling for dropped, raised, and sunken initial letters."},{name:"initial-letter-align",status:"experimental",syntax:"[ auto | alphabetic | hanging | ideographic ]",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/initial-letter-align"}],description:"The initial-letter-align CSS property specifies the alignment of initial letters within a paragraph."},{name:"input-security",syntax:"auto | none",values:[{name:"auto"},{name:"none"}],relevance:50,description:"Enables or disables the obscuring a sensitive test input."},{name:"inset",syntax:"<'top'>{1,4}",relevance:58,browsers:["E87","FF66","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/inset"}],description:"The inset CSS property defines the logical block and inline start and end offsets of an element, which map to physical offsets depending on the element's writing mode, directionality, and text orientation. It corresponds to the top and bottom, or right and left properties depending on the values defined for writing-mode, direction, and text-orientation."},{name:"inset-block",syntax:"<'top'>{1,2}",relevance:53,browsers:["E87","FF63","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/inset-block"}],description:"The inset-block CSS property defines the logical block start and end offsets of an element, which maps to physical offsets depending on the element's writing mode, directionality, and text orientation. It corresponds to the top and bottom, or right and left properties depending on the values defined for writing-mode, direction, and text-orientation."},{name:"inset-block-end",syntax:"<'top'>",relevance:50,browsers:["E87","FF63","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/inset-block-end"}],description:"The inset-block-end CSS property defines the logical block end offset of an element, which maps to a physical offset depending on the element's writing mode, directionality, and text orientation. It corresponds to the top, right, bottom, or left property depending on the values defined for writing-mode, direction, and text-orientation."},{name:"inset-block-start",syntax:"<'top'>",relevance:53,browsers:["E87","FF63","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/inset-block-start"}],description:"The inset-block-start CSS property defines the logical block start offset of an element, which maps to a physical offset depending on the element's writing mode, directionality, and text orientation. It corresponds to the top, right, bottom, or left property depending on the values defined for writing-mode, direction, and text-orientation."},{name:"inset-inline",syntax:"<'top'>{1,2}",relevance:53,browsers:["E87","FF63","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/inset-inline"}],description:"The inset-inline CSS property defines the logical block start and end offsets of an element, which maps to physical offsets depending on the element's writing mode, directionality, and text orientation. It corresponds to the top and bottom, or right and left properties depending on the values defined for writing-mode, direction, and text-orientation."},{name:"inset-inline-end",syntax:"<'top'>",relevance:51,browsers:["E87","FF63","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/inset-inline-end"}],description:"The inset-inline-end CSS property defines the logical inline end inset of an element, which maps to a physical inset depending on the element's writing mode, directionality, and text orientation. It corresponds to the top, right, bottom, or left property depending on the values defined for writing-mode, direction, and text-orientation."},{name:"inset-inline-start",syntax:"<'top'>",relevance:54,browsers:["E87","FF63","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/inset-inline-start"}],description:"The inset-inline-start CSS property defines the logical inline start inset of an element, which maps to a physical offset depending on the element's writing mode, directionality, and text orientation. It corresponds to the top, right, bottom, or left property depending on the values defined for writing-mode, direction, and text-orientation."},{name:"justify-tracks",status:"experimental",syntax:"[ normal | <content-distribution> | <overflow-position>? [ <content-position> | left | right ] ]#",relevance:50,browsers:["FF77"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/justify-tracks"}],description:"The justify-tracks CSS property sets the alignment in the masonry axis for grid containers that have masonry in their inline axis"},{name:"line-clamp",status:"experimental",syntax:"none | <integer>",relevance:50,description:"The line-clamp property allows limiting the contents of a block container to the specified number of lines; remaining content is fragmented away and neither rendered nor measured. Optionally, it also allows inserting content into the last line box to indicate the continuity of truncated/interrupted content."},{name:"line-height-step",status:"experimental",syntax:"<length>",relevance:50,browsers:["E79","C60","O47"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/line-height-step"}],description:"The line-height-step CSS property defines the step units for line box heights. When the step unit is positive, line box heights are rounded up to the closest multiple of the unit. Negative values are invalid."},{name:"margin-block",syntax:"<'margin-left'>{1,2}",relevance:54,browsers:["E87","FF66","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-block"}],description:"The margin-block CSS property defines the logical block start and end margins of an element, which maps to physical margins depending on the element's writing mode, directionality, and text orientation."},{name:"margin-inline",syntax:"<'margin-left'>{1,2}",relevance:54,browsers:["E87","FF66","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-inline"}],description:"The margin-inline CSS property defines the logical inline start and end margins of an element, which maps to physical margins depending on the element's writing mode, directionality, and text orientation."},{name:"margin-trim",status:"experimental",syntax:"none | in-flow | all",values:[{name:"none"},{name:"in-flow"},{name:"all"}],relevance:50,browsers:["S16.4"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-trim"}],description:"The margin-trim property allows the container to trim the margins of its children where they adjoin the container\u2019s edges."},{name:"mask",syntax:"<mask-layer>#",relevance:55,browsers:["E79","FF53","S15.4","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask"}],description:"The mask CSS property alters the visibility of an element by either partially or fully hiding it. This is accomplished by either masking or clipping the image at specific points."},{name:"mask-border",syntax:"<'mask-border-source'> || <'mask-border-slice'> [ / <'mask-border-width'>? [ / <'mask-border-outset'> ]? ]? || <'mask-border-repeat'> || <'mask-border-mode'>",relevance:50,browsers:["E79","S17.2","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-border"}],description:"The mask-border CSS property lets you create a mask along the edge of an element's border.\n\nThis property is a shorthand for mask-border-source, mask-border-slice, mask-border-width, mask-border-outset, mask-border-repeat, and mask-border-mode. As with all shorthand properties, any omitted sub-values will be set to their initial value."},{name:"mask-border-mode",syntax:"luminance | alpha",values:[{name:"luminance"},{name:"alpha"}],relevance:50,description:"The mask-border-mode CSS property specifies the blending mode used in a mask border."},{name:"mask-border-outset",syntax:"[ <length> | <number> ]{1,4}",relevance:50,browsers:["E79","S17.2","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-border-outset"}],description:"The mask-border-outset CSS property specifies the distance by which an element's mask border is set out from its border box."},{name:"mask-border-repeat",syntax:"[ stretch | repeat | round | space ]{1,2}",relevance:50,browsers:["E79","S17.2","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-border-repeat"}],description:"The mask-border-repeat CSS property defines how the edge regions of a source image are adjusted to fit the dimensions of an element's mask border."},{name:"mask-border-slice",syntax:"<number-percentage>{1,4} fill?",relevance:50,browsers:["E79","S17.2","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-border-slice"}],description:"The mask-border-slice CSS property divides the image specified by mask-border-source into regions. These regions are used to form the components of an element's mask border."},{name:"mask-border-source",syntax:"none | <image>",relevance:50,browsers:["E79","S17.2","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-border-source"}],description:"The mask-border-source CSS property specifies the source image used to create an element's mask border.\n\nThe mask-border-slice property is used to divide the source image into regions, which are then dynamically applied to the final mask border."},{name:"mask-border-width",syntax:"[ <length-percentage> | <number> | auto ]{1,4}",relevance:50,browsers:["E79","S17.2","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-border-width"}],description:"The mask-border-width CSS property specifies the width of an element's mask border."},{name:"mask-clip",syntax:"[ <geometry-box> | no-clip ]#",relevance:50,browsers:["E120","FF53","S15.4","C120","O106"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-clip"}],description:"The mask-clip CSS property determines the area, which is affected by a mask. The painted content of an element must be restricted to this area."},{name:"mask-composite",syntax:"<compositing-operator>#",relevance:50,browsers:["E18","FF53","S15.4","C120","O106"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-composite"}],description:"The mask-composite CSS property represents a compositing operation used on the current mask layer with the mask layers below it."},{name:"masonry-auto-flow",status:"experimental",syntax:"[ pack | next ] || [ definite-first | ordered ]",relevance:50,browsers:["Spreview"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/masonry-auto-flow"}],description:"The masonry-auto-flow CSS property modifies how items are placed when using masonry in CSS Grid Layout."},{name:"math-depth",syntax:"auto-add | add(<integer>) | <integer>",relevance:50,browsers:["E109","FF117","C109","O95"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/math-depth"}],description:'Describe a notion of "depth" for each element of a mathematical formula, with respect to the top-level container of that formula.'},{name:"math-shift",syntax:"normal | compact",values:[{name:"normal"},{name:"compact"}],relevance:50,browsers:["E109","C109","O95"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/math-shift"}],description:"Used for positioning superscript during the layout of MathML scripted elements."},{name:"math-style",syntax:"normal | compact",values:[{name:"normal"},{name:"compact"}],relevance:50,browsers:["E109","FF117","S14.1","C109","O95"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/math-style"}],description:"The math-style property indicates whether MathML equations should render with normal or compact height."},{name:"max-lines",status:"experimental",syntax:"none | <integer>",relevance:50,description:"The max-lines property forces a break after a set number of lines"},{name:"offset",syntax:"[ <'offset-position'>? [ <'offset-path'> [ <'offset-distance'> || <'offset-rotate'> ]? ]? ]! [ / <'offset-anchor'> ]?",relevance:50,browsers:["E79","FF72","S16","C55","O42"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/offset"}],description:"The offset CSS property is a shorthand property for animating an element along a defined path."},{name:"offset-anchor",syntax:"auto | <position>",relevance:50,browsers:["E116","FF72","S16","C116","O102"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/offset-anchor"}],description:"Defines an anchor point of the box positioned along the path. The anchor point specifies the point of the box which is to be considered as the point that is moved along the path."},{name:"offset-distance",syntax:"<length-percentage>",relevance:50,browsers:["E79","FF72","S16","C55","O42"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/offset-distance"}],description:"The offset-distance CSS property specifies a position along an offset-path."},{name:"offset-path",syntax:"none | <offset-path> || <coord-box>",relevance:50,browsers:["E79","FF72","S15.4","C55","O45"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/offset-path"}],description:'The offset-path CSS property specifies the offset path where the element gets positioned. The exact element\u2019s position on the offset path is determined by the offset-distance property. An offset path is either a specified path with one or multiple sub-paths or the geometry of a not-styled basic shape. Each shape or path must define an initial position for the computed value of "0" for offset-distance and an initial direction which specifies the rotation of the object to the initial position.\n\nIn this specification, a direction (or rotation) of 0 degrees is equivalent to the direction of the positive x-axis in the object\u2019s local coordinate system. In other words, a rotation of 0 degree points to the right side of the UA if the object and its ancestors have no transformation applied.'},{name:"offset-position",syntax:"normal | auto | <position>",relevance:50,browsers:["E116","FF122","S16","C116","O102"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/offset-position"}],description:"Specifies the initial position of the offset path. If position is specified with static, offset-position would be ignored."},{name:"offset-rotate",syntax:"[ auto | reverse ] || <angle>",relevance:50,browsers:["E79","FF72","S16","C56","O43"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/offset-rotate"}],description:"The offset-rotate CSS property defines the direction of the element while positioning along the offset path."},{name:"overflow-anchor",syntax:"auto | none",values:[{name:"auto"},{name:"none"}],relevance:52,browsers:["E79","FF66","Spreview","C56","O43"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overflow-anchor"}],description:"The overflow-anchor CSS property provides a way to opt out browser scroll anchoring behavior which adjusts scroll position to minimize content shifts."},{name:"overflow-block",syntax:"visible | hidden | clip | scroll | auto",values:[{name:"visible"},{name:"hidden"},{name:"clip"},{name:"scroll"},{name:"auto"}],relevance:50,browsers:["FF69"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overflow-block"}],description:"The overflow-block CSS media feature can be used to test how the output device handles content that overflows the initial containing block along the block axis."},{name:"overflow-clip-box",status:"nonstandard",syntax:"padding-box | content-box",values:[{name:"padding-box"},{name:"content-box"}],relevance:0,description:"The overflow-clip-box CSS property specifies relative to which box the clipping happens when there is an overflow. It is short hand for the overflow-clip-box-inline and overflow-clip-box-block properties."},{name:"overflow-clip-margin",syntax:"<visual-box> || <length [0,\u221e]>",relevance:50,browsers:["E90","FF102","C90","O76"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overflow-clip-margin"}],description:"The overflow-clip-margin CSS property determines how far outside its bounds an element with overflow: clip may be painted before being clipped."},{name:"overflow-inline",syntax:"visible | hidden | clip | scroll | auto",values:[{name:"visible"},{name:"hidden"},{name:"clip"},{name:"scroll"},{name:"auto"}],relevance:50,browsers:["FF69"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overflow-inline"}],description:"The overflow-inline CSS media feature can be used to test how the output device handles content that overflows the initial containing block along the inline axis."},{name:"overlay",status:"experimental",syntax:"none | auto",values:[{name:"none"},{name:"auto"}],relevance:50,browsers:["E117","C117","O103"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overlay"}],description:'The overlay CSS property specifies whether an element appearing in the top layer (for example, a shown popover or modal {{htmlelement("dialog")}} element) is actually rendered in the top layer. This property is only relevant within a list of transition-property values, and only if allow-discrete is set as the transition-behavior.'},{name:"overscroll-behavior",syntax:"[ contain | none | auto ]{1,2}",relevance:50,browsers:["E18","FF59","S16","C63","O50"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior"}],description:"The overscroll-behavior CSS property is shorthand for the overscroll-behavior-x and overscroll-behavior-y properties, which allow you to control the browser's scroll overflow behavior \u2014 what happens when the boundary of a scrolling area is reached."},{name:"overscroll-behavior-block",syntax:"contain | none | auto",values:[{name:"contain"},{name:"none"},{name:"auto"}],relevance:50,browsers:["E79","FF73","S16","C77","O64"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-block"}],description:"The overscroll-behavior-block CSS property sets the browser's behavior when the block direction boundary of a scrolling area is reached."},{name:"overscroll-behavior-inline",syntax:"contain | none | auto",values:[{name:"contain"},{name:"none"},{name:"auto"}],relevance:50,browsers:["E79","FF73","S16","C77","O64"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-inline"}],description:"The overscroll-behavior-inline CSS property sets the browser's behavior when the inline direction boundary of a scrolling area is reached."},{name:"overscroll-behavior-x",syntax:"contain | none | auto",values:[{name:"contain"},{name:"none"},{name:"auto"}],relevance:50,browsers:["E18","FF59","S16","C63","O50"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-x"}],description:"The overscroll-behavior-x CSS property is allows you to control the browser's scroll overflow behavior \u2014 what happens when the boundary of a scrolling area is reached \u2014 in the x axis direction."},{name:"overscroll-behavior-y",syntax:"contain | none | auto",values:[{name:"contain"},{name:"none"},{name:"auto"}],relevance:50,browsers:["E18","FF59","S16","C63","O50"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-y"}],description:"The overscroll-behavior-y CSS property is allows you to control the browser's scroll overflow behavior \u2014 what happens when the boundary of a scrolling area is reached \u2014 in the y axis direction."},{name:"padding-block",syntax:"<'padding-left'>{1,2}",relevance:54,browsers:["E87","FF66","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding-block"}],description:"The padding-block CSS property defines the logical block start and end padding of an element, which maps to physical padding properties depending on the element's writing mode, directionality, and text orientation."},{name:"padding-inline",syntax:"<'padding-left'>{1,2}",relevance:54,browsers:["E87","FF66","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding-inline"}],description:"The padding-inline CSS property defines the logical inline start and end padding of an element, which maps to physical padding properties depending on the element's writing mode, directionality, and text orientation."},{name:"page",syntax:"auto | <custom-ident>",relevance:50,browsers:["E85","FF110","S13.1","C85","O71"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/page"}],description:"The page CSS property is used to specify the named page, a specific type of page defined by the @page at-rule."},{name:"place-content",syntax:"<'align-content'> <'justify-content'>?",relevance:51,browsers:["E79","FF45","S9","C59","O46"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/place-content"}],description:"The place-content CSS shorthand property sets both the align-content and justify-content properties."},{name:"place-items",syntax:"<'align-items'> <'justify-items'>?",relevance:51,browsers:["E79","FF45","S11","C59","O46"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/place-items"}],description:"The CSS place-items shorthand property sets both the align-items and justify-items properties. The first value is the align-items property value, the second the justify-items one. If the second value is not present, the first value is also used for it."},{name:"place-self",syntax:"<'align-self'> <'justify-self'>?",relevance:50,browsers:["E79","FF45","S11","C59","O46"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/place-self"}],description:"The place-self CSS property is a shorthand property sets both the align-self and justify-self properties. The first value is the align-self property value, the second the justify-self one. If the second value is not present, the first value is also used for it."},{name:"print-color-adjust",syntax:"economy | exact",values:[{name:"economy"},{name:"exact"}],relevance:50,browsers:["E79","FF97","S15.4","C17","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/print-color-adjust"}],description:"Defines what optimization the user agent is allowed to do when adjusting the appearance for an output device."},{name:"rotate",syntax:"none | <angle> | [ x | y | z | <number>{3} ] && <angle>",relevance:50,browsers:["E104","FF72","S14.1","C104","O90"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/rotate"}],description:"The rotate CSS property allows you to specify rotation 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:"row-gap",syntax:"normal | <length-percentage>",relevance:58,browsers:["E16","FF52","S10.1","C47","O34"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/row-gap"}],description:"The row-gap CSS property specifies the gutter between grid rows."},{name:"ruby-merge",status:"experimental",syntax:"separate | collapse | auto",values:[{name:"separate"},{name:"collapse"},{name:"auto"}],relevance:50,description:"This property controls how ruby annotation boxes should be rendered when there are more than one in a ruby container box: whether each pair should be kept separate, the annotations should be collapsed and rendered as a group, or the separation should be determined based on the space available."},{name:"scale",syntax:"none | <number>{1,3}",relevance:51,browsers:["E104","FF72","S14.1","C104","O90"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scale"}],description:"The scale CSS property allows you to specify scale 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:"scrollbar-color",syntax:"auto | <color>{2}",relevance:52,browsers:["E121","FF64","C121"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scrollbar-color"}],description:"The scrollbar-color CSS property sets the color of the scrollbar track and thumb."},{name:"scrollbar-gutter",syntax:"auto | stable && both-edges?",relevance:50,browsers:["E94","FF97","S17","C94","O80"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scrollbar-gutter"}],description:"The scrollbar-gutter CSS property allows authors to reserve space for the scrollbar, preventing unwanted layout changes as the content grows while also avoiding unnecessary visuals when scrolling isn't needed."},{name:"scrollbar-width",syntax:"auto | thin | none",values:[{name:"auto"},{name:"thin"},{name:"none"}],relevance:63,browsers:["E121","FF64","C121"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scrollbar-width"}],description:"The scrollbar-width property allows the author to set the maximum thickness of an element\u2019s scrollbars when they are shown. "},{name:"scroll-margin",syntax:"<length>{1,4}",relevance:50,browsers:["E79","FF90","S14.1","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-margin"}],description:"The scroll-margin property is a shorthand property which sets all of the scroll-margin longhands, assigning values much like the margin property does for the margin-* longhands."},{name:"scroll-margin-block",syntax:"<length>{1,2}",relevance:50,browsers:["E79","FF68","S15","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block"}],description:"The scroll-margin-block property is a shorthand property which sets the scroll-margin longhands in the block dimension."},{name:"scroll-margin-block-start",syntax:"<length>",relevance:50,browsers:["E79","FF68","S15","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block-start"}],description:"The scroll-margin-block-start property defines the margin of the scroll snap area at the start of the block dimension that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container\u2019s coordinate space), then adding the specified outsets."},{name:"scroll-margin-block-end",syntax:"<length>",relevance:50,browsers:["E79","FF68","S15","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block-end"}],description:"The scroll-margin-block-end property defines the margin of the scroll snap area at the end of the block dimension that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container\u2019s coordinate space), then adding the specified outsets."},{name:"scroll-margin-bottom",syntax:"<length>",relevance:50,browsers:["E79","FF68","S14.1","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-bottom"}],description:"The scroll-margin-bottom property defines the bottom margin of the scroll snap area that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container\u2019s coordinate space), then adding the specified outsets."},{name:"scroll-margin-inline",syntax:"<length>{1,2}",relevance:50,browsers:["E79","FF68","S15","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline"}],description:"The scroll-margin-inline property is a shorthand property which sets the scroll-margin longhands in the inline dimension."},{name:"scroll-margin-inline-start",syntax:"<length>",relevance:50,browsers:["E79","FF68","S15","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline-start"}],description:"The scroll-margin-inline-start property defines the margin of the scroll snap area at the start of the inline dimension that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container\u2019s coordinate space), then adding the specified outsets."},{name:"scroll-margin-inline-end",syntax:"<length>",relevance:50,browsers:["E79","FF68","S15","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline-end"}],description:"The scroll-margin-inline-end property defines the margin of the scroll snap area at the end of the inline dimension that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container\u2019s coordinate space), then adding the specified outsets."},{name:"scroll-margin-left",syntax:"<length>",relevance:50,browsers:["E79","FF68","S14.1","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-left"}],description:"The scroll-margin-left property defines the left margin of the scroll snap area that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container\u2019s coordinate space), then adding the specified outsets."},{name:"scroll-margin-right",syntax:"<length>",relevance:50,browsers:["E79","FF68","S14.1","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-right"}],description:"The scroll-margin-right property defines the right margin of the scroll snap area that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container\u2019s coordinate space), then adding the specified outsets."},{name:"scroll-margin-top",syntax:"<length>",relevance:50,browsers:["E79","FF68","S14.1","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-top"}],description:"The scroll-margin-top property defines the top margin of the scroll snap area that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container\u2019s coordinate space), then adding the specified outsets."},{name:"scroll-padding",syntax:"[ auto | <length-percentage> ]{1,4}",relevance:50,browsers:["E79","FF68","S14.1","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-padding"}],description:"The scroll-padding property is a shorthand property which sets all of the scroll-padding longhands, assigning values much like the padding property does for the padding-* longhands."},{name:"scroll-padding-block",syntax:"[ auto | <length-percentage> ]{1,2}",relevance:50,browsers:["E79","FF68","S15","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block"}],description:"The scroll-padding-block property is a shorthand property which sets the scroll-padding longhands for the block dimension."},{name:"scroll-padding-block-start",syntax:"auto | <length-percentage>",relevance:50,browsers:["E79","FF68","S15","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block-start"}],description:"The scroll-padding-block-start property defines offsets for the start edge in the block dimension of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targeted element and the edges of the scrollport."},{name:"scroll-padding-block-end",syntax:"auto | <length-percentage>",relevance:50,browsers:["E79","FF68","S15","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block-end"}],description:"The scroll-padding-block-end property defines offsets for the end edge in the block dimension of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targeted element and the edges of the scrollport."},{name:"scroll-padding-bottom",syntax:"auto | <length-percentage>",relevance:50,browsers:["E79","FF68","S14.1","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-bottom"}],description:"The scroll-padding-bottom property defines offsets for the bottom of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targeted element and the edges of the scrollport."},{name:"scroll-padding-inline",syntax:"[ auto | <length-percentage> ]{1,2}",relevance:50,browsers:["E79","FF68","S15","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline"}],description:"The scroll-padding-inline property is a shorthand property which sets the scroll-padding longhands for the inline dimension."},{name:"scroll-padding-inline-start",syntax:"auto | <length-percentage>",relevance:50,browsers:["E79","FF68","S15","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline-start"}],description:"The scroll-padding-inline-start property defines offsets for the start edge in the inline dimension of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targeted element and the edges of the scrollport."},{name:"scroll-padding-inline-end",syntax:"auto | <length-percentage>",relevance:50,browsers:["E79","FF68","S15","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline-end"}],description:"The scroll-padding-inline-end property defines offsets for the end edge in the inline dimension of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targeted element and the edges of the scrollport."},{name:"scroll-padding-left",syntax:"auto | <length-percentage>",relevance:50,browsers:["E79","FF68","S14.1","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-left"}],description:"The scroll-padding-left property defines offsets for the left of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targeted element and the edges of the scrollport."},{name:"scroll-padding-right",syntax:"auto | <length-percentage>",relevance:50,browsers:["E79","FF68","S14.1","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-right"}],description:"The scroll-padding-right property defines offsets for the right of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targeted element and the edges of the scrollport."},{name:"scroll-padding-top",syntax:"auto | <length-percentage>",relevance:50,browsers:["E79","FF68","S14.1","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-top"}],description:"The scroll-padding-top property defines offsets for the top of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targeted element and the edges of the scrollport."},{name:"scroll-snap-align",syntax:"[ none | start | end | center ]{1,2}",relevance:53,browsers:["E79","FF68","S11","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-snap-align"}],description:"The scroll-snap-align property specifies the box\u2019s snap position as an alignment of its snap area (as the alignment subject) within its snap container\u2019s snapport (as the alignment container). The two values specify the snapping alignment in the block axis and inline axis, respectively. If only one value is specified, the second value defaults to the same value."},{name:"scroll-snap-stop",syntax:"normal | always",values:[{name:"normal"},{name:"always"}],relevance:51,browsers:["E79","FF103","S15","C75","O62"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-snap-stop"}],description:'The scroll-snap-stop CSS property defines whether the scroll container is allowed to "pass over" possible snap positions.'},{name:"scroll-snap-type-x",status:"obsolete",syntax:"none | mandatory | proximity",values:[{name:"none"},{name:"mandatory"},{name:"proximity"}],relevance:0,description:"The scroll-snap-type-x CSS property defines how strictly snap points are enforced on the horizontal axis of the scroll container in case there is one.\n\nSpecifying any precise animations or physics used to enforce those snap points is not covered by this property but instead left up to the user agent."},{name:"scroll-snap-type-y",status:"obsolete",syntax:"none | mandatory | proximity",values:[{name:"none"},{name:"mandatory"},{name:"proximity"}],relevance:0,description:"The scroll-snap-type-y CSS property defines how strictly snap points are enforced on the vertical axis of the scroll container in case there is one.\n\nSpecifying any precise animations or physics used to enforce those snap points is not covered by this property but instead left up to the user agent."},{name:"scroll-timeline",status:"experimental",syntax:"[ <'scroll-timeline-name'> <'scroll-timeline-axis'>? ]#",relevance:50,browsers:["E115","FF111","C115","O101"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-timeline"}],description:"Defines a name that can be used to identify the source element of a scroll timeline, along with the scrollbar axis that should provide the timeline."},{name:"scroll-timeline-axis",status:"experimental",syntax:"[ block | inline | x | y ]#",relevance:50,browsers:["E115","FF111","C115","O101"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-timeline-axis"}],description:"Specifies the scrollbar that will be used to provide the timeline for a scroll-timeline animation"},{name:"scroll-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/scroll-timeline-name"}],description:"Defines a name that can be used to identify an element as the source of a scroll-timeline."},{name:"text-combine-upright",syntax:"none | all | [ digits <integer>? ]",relevance:50,browsers:["E79","FF48","S15.4","C48","IE11","O35"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-combine-upright"}],description:"The text-combine-upright CSS property specifies the combination of multiple characters into the space of a single character. If the combined text is wider than 1em, the user agent must fit the contents within 1em. The resulting composition is treated as a single upright glyph for layout and decoration. This property only has an effect in vertical writing modes.\n\nThis is used to produce an effect that is known as tate-ch\u016b-yoko (\u7e26\u4e2d\u6a2a) in Japanese, or as \u76f4\u66f8\u6a6b\u5411 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\u2019s 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 \u2014 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,\u221e]>",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,\u221e]> <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\u2019s 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\u2019s 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 \u201cplayed\u201d or \u201cpaused\u201d, when that element is \u201cpaused\u201d."},{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 \u201cplayed\u201d or \u201cpaused\u201d, when that element is \u201cplaying\u201d. "},{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.\n\nIn 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 \u2014 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 \u2014 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 \u2014 a static screenshot of the old view, before the transition.'}]},ya=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(const t of e.properties)"string"===typeof t.name&&this._properties.push(t);if(Array.isArray(e.atDirectives))for(const t of e.atDirectives)wa(t)&&this._atDirectives.push(t);if(Array.isArray(e.pseudoClasses))for(const t of e.pseudoClasses)_a(t)&&this._pseudoClasses.push(t);if(Array.isArray(e.pseudoElements))for(const t of e.pseudoElements)ka(t)&&this._pseudoElements.push(t)}};function wa(e){return"string"===typeof e.name}function _a(e){return"string"===typeof e.name}function ka(e){return"string"===typeof e.name}var Ca=class{constructor(e){this.dataProviders=[],this._propertySet={},this._atDirectiveSet={},this._pseudoClassSet={},this._pseudoElementSet={},this._properties=[],this._atDirectives=[],this._pseudoClasses=[],this._pseudoElements=[],this.setDataProviders(!1!==e?.useDefaultDataProvider,e?.customDataProviders||[])}setDataProviders(e,t){this.dataProviders=[],e&&this.dataProviders.push(new ya(va)),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=ss(this._propertySet),this._atDirectives=ss(this._atDirectiveSet),this._pseudoClasses=ss(this._pseudoClassSet),this._pseudoElements=ss(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||"standard"===this._propertySet[e.toLowerCase()].status)}};function Sa(e,t,n){return t.map((function(t){const i=function(t){const i=e.offsetAt(t);let r=n.findChildAtOffset(i,!0);if(!r)return[];const s=[];for(;r;)r.parent&&r.offset===r.parent.offset&&r.end===r.parent.end||(r.type===ee.Declarations&&i>r.offset&&i<r.end&&s.push([r.offset+1,r.end-1]),s.push([r.offset,r.end])),r=r.parent;return s}(t);let r;for(let n=i.length-1;n>=0;n--)r=Ri.create(qt.create(e.positionAt(i[n][0]),e.positionAt(i[n][1])),r);return r||(r=Ri.create(qt.create(t,t))),r}))}var xa=class extends Js{constructor(e){super(e,!0)}isRawStringDocumentLinkNode(e){return super.isRawStringDocumentLinkNode(e)||e.type===ee.Use||e.type===ee.Forward}async mapReference(e,t){if(this.fileSystemProvider&&e&&t){const t=function(e){if(e.endsWith(".css"))return[e];if(e.endsWith("/"))return[e+"index.scss",e+"_index.scss"];const t=gs.parse(e.replace(/\.scss$/,"")),n=bs.basename(t),i=bs.dirname(t);if(n.startsWith("_"))return[bs.joinPath(i,n+".scss").toString(!0)];return[bs.joinPath(i,n+".scss").toString(!0),bs.joinPath(i,"_"+n+".scss").toString(!0),e+"/index.scss",e+"/_index.scss",bs.joinPath(i,n+".css").toString(!0)]}(e);for(const e of t)if(await this.fileExists(e))return e}return e}async resolveReference(e,t,n,i=!1){if(!se(e,"sass:"))return super.resolveReference(e,t,n,i)}};function Ea(e){return new ya(e)}function Fa(e,t,n,i,r,s,o){return{configure:e=>{s.configure(e),t.configure(e?.completion),n.configure(e?.hover),i.configure(e?.importAliases)},setDataProviders:o.setDataProviders.bind(o),doValidation:s.doValidation.bind(s),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:da,findDefinition:i.findDefinition.bind(i),findReferences:i.findReferences.bind(i),findDocumentHighlights:i.findDocumentHighlights.bind(i),findDocumentLinks:i.findDocumentLinks.bind(i),findDocumentLinks2:i.findDocumentLinks2.bind(i),findDocumentSymbols:i.findSymbolInformations.bind(i),findDocumentSymbols2:i.findDocumentSymbols.bind(i),doCodeActions:r.doCodeActions.bind(r),doCodeActions2:r.doCodeActions2.bind(r),findDocumentColors:i.findDocumentColors.bind(i),getColorPresentations:i.getColorPresentations.bind(i),prepareRename:i.prepareRename.bind(i),doRename:i.doRename.bind(i),getFoldingRanges:la,getSelectionRanges:Sa}}var La={};var Ia=class{constructor(e,t){this._ctx=e,this._languageSettings=t.options,this._languageId=t.languageId;const n=t.options.data,i=n?.useDefaultDataProvider,r=[];if(n?.dataProviders)for(const o in n.dataProviders)r.push(Ea(n.dataProviders[o]));const s={customDataProviders:r,useDefaultDataProvider:i};switch(this._languageId){case"css":this._languageService=function(e=La){const t=new Ca(e);return Fa(new as,new Ts(null,e,t),new Hs(e&&e.clientCapabilities,t),new Js(e&&e.fileSystemProvider,!1),new lo(t),new ko(t),t)}(s);break;case"less":this._languageService=function(e=La){const t=new Ca(e);return Fa(new oa,new aa(e,t),new Hs(e&&e.clientCapabilities,t),new Js(e&&e.fileSystemProvider,!0),new lo(t),new ko(t),t)}(s);break;case"scss":this._languageService=function(e=La){const t=new Ca(e);return Fa(new Ko,new Go(e,t),new Hs(e&&e.clientCapabilities,t),new xa(e&&e.fileSystemProvider),new lo(t),new ko(t),t)}(s);break;default:throw new Error("Invalid language id: "+this._languageId)}this._languageService.configure(this._languageSettings)}async doValidation(e){const t=this._getTextDocument(e);if(t){const e=this._languageService.parseStylesheet(t),n=this._languageService.doValidation(t,e);return Promise.resolve(n)}return Promise.resolve([])}async doComplete(e,t){const n=this._getTextDocument(e);if(!n)return null;const i=this._languageService.parseStylesheet(n),r=this._languageService.doComplete(n,t,i);return Promise.resolve(r)}async doHover(e,t){const n=this._getTextDocument(e);if(!n)return null;const i=this._languageService.parseStylesheet(n),r=this._languageService.doHover(n,t,i);return Promise.resolve(r)}async findDefinition(e,t){const n=this._getTextDocument(e);if(!n)return null;const i=this._languageService.parseStylesheet(n),r=this._languageService.findDefinition(n,t,i);return Promise.resolve(r)}async findReferences(e,t){const n=this._getTextDocument(e);if(!n)return[];const i=this._languageService.parseStylesheet(n),r=this._languageService.findReferences(n,t,i);return Promise.resolve(r)}async findDocumentHighlights(e,t){const n=this._getTextDocument(e);if(!n)return[];const i=this._languageService.parseStylesheet(n),r=this._languageService.findDocumentHighlights(n,t,i);return Promise.resolve(r)}async findDocumentSymbols(e){const t=this._getTextDocument(e);if(!t)return[];const n=this._languageService.parseStylesheet(t),i=this._languageService.findDocumentSymbols(t,n);return Promise.resolve(i)}async doCodeActions(e,t,n){const i=this._getTextDocument(e);if(!i)return[];const r=this._languageService.parseStylesheet(i),s=this._languageService.doCodeActions(i,t,n,r);return Promise.resolve(s)}async findDocumentColors(e){const t=this._getTextDocument(e);if(!t)return[];const n=this._languageService.parseStylesheet(t),i=this._languageService.findDocumentColors(t,n);return Promise.resolve(i)}async getColorPresentations(e,t,n){const i=this._getTextDocument(e);if(!i)return[];const r=this._languageService.parseStylesheet(i),s=this._languageService.getColorPresentations(i,r,t,n);return Promise.resolve(s)}async getFoldingRanges(e,t){const n=this._getTextDocument(e);if(!n)return[];const i=this._languageService.getFoldingRanges(n,t);return Promise.resolve(i)}async getSelectionRanges(e,t){const n=this._getTextDocument(e);if(!n)return[];const i=this._languageService.parseStylesheet(n),r=this._languageService.getSelectionRanges(n,t,i);return Promise.resolve(r)}async doRename(e,t,n){const i=this._getTextDocument(e);if(!i)return null;const r=this._languageService.parseStylesheet(i),s=this._languageService.doRename(i,t,n,r);return Promise.resolve(s)}async format(e,t,n){const i=this._getTextDocument(e);if(!i)return[];const r={...this._languageSettings.format,...n},s=this._languageService.format(i,t,r);return Promise.resolve(s)}_getTextDocument(e){const t=this._ctx.getMirrorModels();for(const n of t)if(n.uri.toString()===e)return ur.create(e,this._languageId,n.version,n.getValue());return null}};self.onmessage=()=>{s(((e,t)=>new Ia(e,t)))}})()})();
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/editor.worker.js b/ydb/core/viewer/monitoring/editor.worker.js index ced528b440..e6938e67f4 100644 --- a/ydb/core/viewer/monitoring/editor.worker.js +++ b/ydb/core/viewer/monitoring/editor.worker.js @@ -1 +1 @@ -(()=>{var e={9861:(e,t,n)=>{"use strict";function i(e,t,n=(e,t)=>e===t){if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(let i=0,r=e.length;i<r;i++)if(!n(e[i],t[i]))return!1;return!0}function*r(e,t){let n,i;for(const r of e)void 0!==i&&t(i,r)?n.push(r):(n&&(yield n),n=[r]),i=r;n&&(yield n)}function s(e,t){for(let n=0;n<=e.length;n++)t(0===n?void 0:e[n-1],n===e.length?void 0:e[n])}function o(e,t){for(let n=0;n<e.length;n++)t(0===n?void 0:e[n-1],e[n],n+1===e.length?void 0:e[n+1])}function a(e,t=e=>e){const n=new Set;return e.filter((e=>{const i=t(e);return!n.has(i)&&(n.add(i),!0)}))}function l(e,t){return e.length>0?e[0]:t}function h(e,t,n){const i=e.slice(0,t),r=e.slice(t);return i.concat(n,r)}function c(e,t){for(const n of t)e.push(n)}var u;function d(e,t){return(n,i)=>t(e(n),e(i))}n.d(t,{E4:()=>c,Fy:()=>l,Hw:()=>f,U9:()=>g,VE:()=>d,aI:()=>i,c1:()=>p,dM:()=>a,j3:()=>m,kj:()=>o,n:()=>r,nK:()=>h,pN:()=>s}),function(e){e.isLessThan=function(e){return e<0},e.isLessThanOrEqual=function(e){return e<=0},e.isGreaterThan=function(e){return e>0},e.isNeitherLessOrGreaterThan=function(e){return 0===e},e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0}(u||(u={}));const g=(e,t)=>e-t;function f(e){return(t,n)=>-e(t,n)}class m{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t<this.items.length&&e(this.items[t]);)t++;const n=t===this.firstIdx?null:this.items.slice(this.firstIdx,t);return this.firstIdx=t,n}takeFromEndWhile(e){let t=this.lastIdx;for(;t>=0&&e(this.items[t]);)t--;const n=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,n}peek(){if(0!==this.length)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class p{static{this.empty=new p((e=>{}))}constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate((t=>(e.push(t),!0))),e}filter(e){return new p((t=>this.iterate((n=>!e(n)||t(n)))))}map(e){return new p((t=>this.iterate((n=>t(e(n))))))}findLast(e){let t;return this.iterate((n=>(e(n)&&(t=n),!0))),t}findLastMaxBy(e){let t,n=!0;return this.iterate((i=>((n||u.isGreaterThan(e(i,t)))&&(n=!1,t=i),!0))),t}}},6041:(e,t,n)=>{"use strict";function i(e,t){const n=function(e,t,n=e.length-1){for(let i=n;i>=0;i--){if(t(e[i]))return i}return-1}(e,t);if(-1!==n)return e[n]}function r(e,t){const n=s(e,t);return-1===n?void 0:e[n]}function s(e,t,n=0,i=e.length){let r=n,s=i;for(;r<s;){const n=Math.floor((r+s)/2);t(e[n])?r=n+1:s=n}return r-1}function o(e,t){const n=a(e,t);return n===e.length?void 0:e[n]}function a(e,t,n=0,i=e.length){let r=n,s=i;for(;r<s;){const n=Math.floor((r+s)/2);t(e[n])?s=n:r=n+1}return r}n.d(t,{Uk:()=>i,XP:()=>o,hw:()=>a,iM:()=>s,lx:()=>r,vJ:()=>l});class l{static{this.assertInvariants=!1}constructor(e){this._array=e,this._findLastMonotonousLastIdx=0}findLastMonotonous(e){if(l.assertInvariants){if(this._prevFindLastPredicate)for(const t of this._array)if(this._prevFindLastPredicate(t)&&!e(t))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.");this._prevFindLastPredicate=e}const t=s(this._array,e,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=t+1,-1===t?void 0:this._array[t]}}},6782:(e,t,n)=>{"use strict";n.d(t,{Ft:()=>o,Xo:()=>a,ok:()=>r,xb:()=>s});var i=n(4383);function r(e,t){if(!e)throw new Error(t?`Assertion failed (${t})`:"Assertion Failed")}function s(e,t="Unreachable"){throw new Error(t)}function o(e){e()||(e(),(0,i.dz)(new i.D7("Assertion Failed")))}function a(e,t){let n=0;for(;n<e.length-1;){if(!t(e[n],e[n+1]))return!1;n++}return!0}},1940:(e,t,n)=>{"use strict";n.d(t,{vb:()=>l,uC:()=>h,Qg:()=>a,$6:()=>c});n(8447);var i=n(4383),r=n(1234),s=n(1484),o=n(8067);Symbol("MicrotaskDelay");function a(e){return!!e&&"function"===typeof e.then}class l{constructor(){this.disposable=void 0,this.isDisposed=!1}cancel(){this.disposable?.dispose(),this.disposable=void 0}cancelAndSet(e,t,n=globalThis){if(this.isDisposed)throw new i.D7("Calling 'cancelAndSet' on a disposed IntervalTimer");this.cancel();const r=n.setInterval((()=>{e()}),t);this.disposable=(0,s.s)((()=>{n.clearInterval(r),this.disposable=void 0}))}dispose(){this.cancel(),this.isDisposed=!0}}class h{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return-1!==this.timeoutToken}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner?.()}}let c,u;u="function"!==typeof globalThis.requestIdleCallback||"function"!==typeof globalThis.cancelIdleCallback?(e,t)=>{(0,o._p)((()=>{if(n)return;const e=Date.now()+15,i={didTimeout:!0,timeRemaining:()=>Math.max(0,e-Date.now())};t(Object.freeze(i))}));let n=!1;return{dispose(){n||(n=!0)}}}:(e,t,n)=>{const i=e.requestIdleCallback(t,"number"===typeof n?{timeout:n}:void 0);let r=!1;return{dispose(){r||(r=!0,e.cancelIdleCallback(i))}}},c=e=>u(globalThis,e);var d;!function(e){e.settled=async function(e){let t;const n=await Promise.all(e.map((e=>e.then((e=>e),(e=>{t||(t=e)})))));if("undefined"!==typeof t)throw t;return n},e.withAsyncBody=function(e){return new Promise((async(t,n)=>{try{await e(t,n)}catch(i){n(i)}}))}}(d||(d={}));class g{static fromArray(e){return new g((t=>{t.emitMany(e)}))}static fromPromise(e){return new g((async t=>{t.emitMany(await e)}))}static fromPromises(e){return new g((async t=>{await Promise.all(e.map((async e=>t.emitOne(await e))))}))}static merge(e){return new g((async t=>{await Promise.all(e.map((async e=>{for await(const n of e)t.emitOne(n)})))}))}static{this.EMPTY=g.fromArray([])}constructor(e,t){this._state=0,this._results=[],this._error=null,this._onReturn=t,this._onStateChanged=new r.vl,queueMicrotask((async()=>{const t={emitOne:e=>this.emitOne(e),emitMany:e=>this.emitMany(e),reject:e=>this.reject(e)};try{await Promise.resolve(e(t)),this.resolve()}catch(n){this.reject(n)}finally{t.emitOne=void 0,t.emitMany=void 0,t.reject=void 0}}))}[Symbol.asyncIterator](){let e=0;return{next:async()=>{for(;;){if(2===this._state)throw this._error;if(e<this._results.length)return{done:!1,value:this._results[e++]};if(1===this._state)return{done:!0,value:void 0};await r.Jh.toPromise(this._onStateChanged.event)}},return:async()=>(this._onReturn?.(),{done:!0,value:void 0})}}static map(e,t){return new g((async n=>{for await(const i of e)n.emitOne(t(i))}))}map(e){return g.map(this,e)}static filter(e,t){return new g((async n=>{for await(const i of e)t(i)&&n.emitOne(i)}))}filter(e){return g.filter(this,e)}static coalesce(e){return g.filter(e,(e=>!!e))}coalesce(){return g.coalesce(this)}static async toPromise(e){const t=[];for await(const n of e)t.push(n);return t}toPromise(){return g.toPromise(this)}emitOne(e){0===this._state&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){0===this._state&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){0===this._state&&(this._state=1,this._onStateChanged.fire())}reject(e){0===this._state&&(this._state=2,this._error=e,this._onStateChanged.fire())}}},1674:(e,t,n)=>{"use strict";n.d(t,{$l:()=>a,Gs:()=>d,MB:()=>o,Sw:()=>c,bb:()=>h,gN:()=>l,pJ:()=>u});var i=n(1090);const r="undefined"!==typeof Buffer;new i.d((()=>new Uint8Array(256)));let s;class o{static wrap(e){return r&&!Buffer.isBuffer(e)&&(e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),new o(e)}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}toString(){return r?this.buffer.toString():(s||(s=new TextDecoder),s.decode(this.buffer))}}function a(e,t){return(e[t+0]|0)>>>0|e[t+1]<<8>>>0}function l(e,t,n){e[n+0]=255&t,t>>>=8,e[n+1]=255&t}function h(e,t){return e[t]*2**24+65536*e[t+1]+256*e[t+2]+e[t+3]}function c(e,t,n){e[n+3]=t,t>>>=8,e[n+2]=t,t>>>=8,e[n+1]=t,t>>>=8,e[n]=t}function u(e,t){return e[t]}function d(e,t,n){e[n]=t}},1788:(e,t,n)=>{"use strict";function i(e){return e}n.d(t,{VV:()=>s,o5:()=>r});class r{constructor(e,t){this.lastCache=void 0,this.lastArgKey=void 0,"function"===typeof e?(this._fn=e,this._computeKey=i):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this._fn(e)),this.lastCache}}class s{get cachedValues(){return this._map}constructor(e,t){this._map=new Map,this._map2=new Map,"function"===typeof e?(this._fn=e,this._computeKey=i):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);if(this._map2.has(t))return this._map2.get(t);const n=this._fn(e);return this._map.set(e,n),this._map2.set(t,n),n}}},8447:(e,t,n)=>{"use strict";n.d(t,{Qi:()=>a});var i=n(1234);const r=Object.freeze((function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}}));var s;!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||(t instanceof o||!(!t||"object"!==typeof t)&&("boolean"===typeof t.isCancellationRequested&&"function"===typeof t.onCancellationRequested))},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:i.Jh.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:r})}(s||(s={}));class o{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?r:(this._emitter||(this._emitter=new i.vl),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class a{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new o),this._token}cancel(){this._token?this._token instanceof o&&this._token.cancel():this._token=s.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof o&&this._token.dispose():this._token=s.None}}},9493:(e,t,n)=>{"use strict";n.d(t,{W:()=>o});var i=n(631);const r=Object.create(null);function s(e,t){if((0,i.Kg)(t)){const n=r[t];if(void 0===n)throw new Error(`${e} references an unknown codicon: ${t}`);t=n}return r[e]=t,{id:e}}const o={...{add:s("add",6e4),plus:s("plus",6e4),gistNew:s("gist-new",6e4),repoCreate:s("repo-create",6e4),lightbulb:s("lightbulb",60001),lightBulb:s("light-bulb",60001),repo:s("repo",60002),repoDelete:s("repo-delete",60002),gistFork:s("gist-fork",60003),repoForked:s("repo-forked",60003),gitPullRequest:s("git-pull-request",60004),gitPullRequestAbandoned:s("git-pull-request-abandoned",60004),recordKeys:s("record-keys",60005),keyboard:s("keyboard",60005),tag:s("tag",60006),gitPullRequestLabel:s("git-pull-request-label",60006),tagAdd:s("tag-add",60006),tagRemove:s("tag-remove",60006),person:s("person",60007),personFollow:s("person-follow",60007),personOutline:s("person-outline",60007),personFilled:s("person-filled",60007),gitBranch:s("git-branch",60008),gitBranchCreate:s("git-branch-create",60008),gitBranchDelete:s("git-branch-delete",60008),sourceControl:s("source-control",60008),mirror:s("mirror",60009),mirrorPublic:s("mirror-public",60009),star:s("star",60010),starAdd:s("star-add",60010),starDelete:s("star-delete",60010),starEmpty:s("star-empty",60010),comment:s("comment",60011),commentAdd:s("comment-add",60011),alert:s("alert",60012),warning:s("warning",60012),search:s("search",60013),searchSave:s("search-save",60013),logOut:s("log-out",60014),signOut:s("sign-out",60014),logIn:s("log-in",60015),signIn:s("sign-in",60015),eye:s("eye",60016),eyeUnwatch:s("eye-unwatch",60016),eyeWatch:s("eye-watch",60016),circleFilled:s("circle-filled",60017),primitiveDot:s("primitive-dot",60017),closeDirty:s("close-dirty",60017),debugBreakpoint:s("debug-breakpoint",60017),debugBreakpointDisabled:s("debug-breakpoint-disabled",60017),debugHint:s("debug-hint",60017),terminalDecorationSuccess:s("terminal-decoration-success",60017),primitiveSquare:s("primitive-square",60018),edit:s("edit",60019),pencil:s("pencil",60019),info:s("info",60020),issueOpened:s("issue-opened",60020),gistPrivate:s("gist-private",60021),gitForkPrivate:s("git-fork-private",60021),lock:s("lock",60021),mirrorPrivate:s("mirror-private",60021),close:s("close",60022),removeClose:s("remove-close",60022),x:s("x",60022),repoSync:s("repo-sync",60023),sync:s("sync",60023),clone:s("clone",60024),desktopDownload:s("desktop-download",60024),beaker:s("beaker",60025),microscope:s("microscope",60025),vm:s("vm",60026),deviceDesktop:s("device-desktop",60026),file:s("file",60027),fileText:s("file-text",60027),more:s("more",60028),ellipsis:s("ellipsis",60028),kebabHorizontal:s("kebab-horizontal",60028),mailReply:s("mail-reply",60029),reply:s("reply",60029),organization:s("organization",60030),organizationFilled:s("organization-filled",60030),organizationOutline:s("organization-outline",60030),newFile:s("new-file",60031),fileAdd:s("file-add",60031),newFolder:s("new-folder",60032),fileDirectoryCreate:s("file-directory-create",60032),trash:s("trash",60033),trashcan:s("trashcan",60033),history:s("history",60034),clock:s("clock",60034),folder:s("folder",60035),fileDirectory:s("file-directory",60035),symbolFolder:s("symbol-folder",60035),logoGithub:s("logo-github",60036),markGithub:s("mark-github",60036),github:s("github",60036),terminal:s("terminal",60037),console:s("console",60037),repl:s("repl",60037),zap:s("zap",60038),symbolEvent:s("symbol-event",60038),error:s("error",60039),stop:s("stop",60039),variable:s("variable",60040),symbolVariable:s("symbol-variable",60040),array:s("array",60042),symbolArray:s("symbol-array",60042),symbolModule:s("symbol-module",60043),symbolPackage:s("symbol-package",60043),symbolNamespace:s("symbol-namespace",60043),symbolObject:s("symbol-object",60043),symbolMethod:s("symbol-method",60044),symbolFunction:s("symbol-function",60044),symbolConstructor:s("symbol-constructor",60044),symbolBoolean:s("symbol-boolean",60047),symbolNull:s("symbol-null",60047),symbolNumeric:s("symbol-numeric",60048),symbolNumber:s("symbol-number",60048),symbolStructure:s("symbol-structure",60049),symbolStruct:s("symbol-struct",60049),symbolParameter:s("symbol-parameter",60050),symbolTypeParameter:s("symbol-type-parameter",60050),symbolKey:s("symbol-key",60051),symbolText:s("symbol-text",60051),symbolReference:s("symbol-reference",60052),goToFile:s("go-to-file",60052),symbolEnum:s("symbol-enum",60053),symbolValue:s("symbol-value",60053),symbolRuler:s("symbol-ruler",60054),symbolUnit:s("symbol-unit",60054),activateBreakpoints:s("activate-breakpoints",60055),archive:s("archive",60056),arrowBoth:s("arrow-both",60057),arrowDown:s("arrow-down",60058),arrowLeft:s("arrow-left",60059),arrowRight:s("arrow-right",60060),arrowSmallDown:s("arrow-small-down",60061),arrowSmallLeft:s("arrow-small-left",60062),arrowSmallRight:s("arrow-small-right",60063),arrowSmallUp:s("arrow-small-up",60064),arrowUp:s("arrow-up",60065),bell:s("bell",60066),bold:s("bold",60067),book:s("book",60068),bookmark:s("bookmark",60069),debugBreakpointConditionalUnverified:s("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:s("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:s("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:s("debug-breakpoint-data-unverified",60072),debugBreakpointData:s("debug-breakpoint-data",60073),debugBreakpointDataDisabled:s("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:s("debug-breakpoint-log-unverified",60074),debugBreakpointLog:s("debug-breakpoint-log",60075),debugBreakpointLogDisabled:s("debug-breakpoint-log-disabled",60075),briefcase:s("briefcase",60076),broadcast:s("broadcast",60077),browser:s("browser",60078),bug:s("bug",60079),calendar:s("calendar",60080),caseSensitive:s("case-sensitive",60081),check:s("check",60082),checklist:s("checklist",60083),chevronDown:s("chevron-down",60084),chevronLeft:s("chevron-left",60085),chevronRight:s("chevron-right",60086),chevronUp:s("chevron-up",60087),chromeClose:s("chrome-close",60088),chromeMaximize:s("chrome-maximize",60089),chromeMinimize:s("chrome-minimize",60090),chromeRestore:s("chrome-restore",60091),circleOutline:s("circle-outline",60092),circle:s("circle",60092),debugBreakpointUnverified:s("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:s("terminal-decoration-incomplete",60092),circleSlash:s("circle-slash",60093),circuitBoard:s("circuit-board",60094),clearAll:s("clear-all",60095),clippy:s("clippy",60096),closeAll:s("close-all",60097),cloudDownload:s("cloud-download",60098),cloudUpload:s("cloud-upload",60099),code:s("code",60100),collapseAll:s("collapse-all",60101),colorMode:s("color-mode",60102),commentDiscussion:s("comment-discussion",60103),creditCard:s("credit-card",60105),dash:s("dash",60108),dashboard:s("dashboard",60109),database:s("database",60110),debugContinue:s("debug-continue",60111),debugDisconnect:s("debug-disconnect",60112),debugPause:s("debug-pause",60113),debugRestart:s("debug-restart",60114),debugStart:s("debug-start",60115),debugStepInto:s("debug-step-into",60116),debugStepOut:s("debug-step-out",60117),debugStepOver:s("debug-step-over",60118),debugStop:s("debug-stop",60119),debug:s("debug",60120),deviceCameraVideo:s("device-camera-video",60121),deviceCamera:s("device-camera",60122),deviceMobile:s("device-mobile",60123),diffAdded:s("diff-added",60124),diffIgnored:s("diff-ignored",60125),diffModified:s("diff-modified",60126),diffRemoved:s("diff-removed",60127),diffRenamed:s("diff-renamed",60128),diff:s("diff",60129),diffSidebyside:s("diff-sidebyside",60129),discard:s("discard",60130),editorLayout:s("editor-layout",60131),emptyWindow:s("empty-window",60132),exclude:s("exclude",60133),extensions:s("extensions",60134),eyeClosed:s("eye-closed",60135),fileBinary:s("file-binary",60136),fileCode:s("file-code",60137),fileMedia:s("file-media",60138),filePdf:s("file-pdf",60139),fileSubmodule:s("file-submodule",60140),fileSymlinkDirectory:s("file-symlink-directory",60141),fileSymlinkFile:s("file-symlink-file",60142),fileZip:s("file-zip",60143),files:s("files",60144),filter:s("filter",60145),flame:s("flame",60146),foldDown:s("fold-down",60147),foldUp:s("fold-up",60148),fold:s("fold",60149),folderActive:s("folder-active",60150),folderOpened:s("folder-opened",60151),gear:s("gear",60152),gift:s("gift",60153),gistSecret:s("gist-secret",60154),gist:s("gist",60155),gitCommit:s("git-commit",60156),gitCompare:s("git-compare",60157),compareChanges:s("compare-changes",60157),gitMerge:s("git-merge",60158),githubAction:s("github-action",60159),githubAlt:s("github-alt",60160),globe:s("globe",60161),grabber:s("grabber",60162),graph:s("graph",60163),gripper:s("gripper",60164),heart:s("heart",60165),home:s("home",60166),horizontalRule:s("horizontal-rule",60167),hubot:s("hubot",60168),inbox:s("inbox",60169),issueReopened:s("issue-reopened",60171),issues:s("issues",60172),italic:s("italic",60173),jersey:s("jersey",60174),json:s("json",60175),kebabVertical:s("kebab-vertical",60176),key:s("key",60177),law:s("law",60178),lightbulbAutofix:s("lightbulb-autofix",60179),linkExternal:s("link-external",60180),link:s("link",60181),listOrdered:s("list-ordered",60182),listUnordered:s("list-unordered",60183),liveShare:s("live-share",60184),loading:s("loading",60185),location:s("location",60186),mailRead:s("mail-read",60187),mail:s("mail",60188),markdown:s("markdown",60189),megaphone:s("megaphone",60190),mention:s("mention",60191),milestone:s("milestone",60192),gitPullRequestMilestone:s("git-pull-request-milestone",60192),mortarBoard:s("mortar-board",60193),move:s("move",60194),multipleWindows:s("multiple-windows",60195),mute:s("mute",60196),noNewline:s("no-newline",60197),note:s("note",60198),octoface:s("octoface",60199),openPreview:s("open-preview",60200),package:s("package",60201),paintcan:s("paintcan",60202),pin:s("pin",60203),play:s("play",60204),run:s("run",60204),plug:s("plug",60205),preserveCase:s("preserve-case",60206),preview:s("preview",60207),project:s("project",60208),pulse:s("pulse",60209),question:s("question",60210),quote:s("quote",60211),radioTower:s("radio-tower",60212),reactions:s("reactions",60213),references:s("references",60214),refresh:s("refresh",60215),regex:s("regex",60216),remoteExplorer:s("remote-explorer",60217),remote:s("remote",60218),remove:s("remove",60219),replaceAll:s("replace-all",60220),replace:s("replace",60221),repoClone:s("repo-clone",60222),repoForcePush:s("repo-force-push",60223),repoPull:s("repo-pull",60224),repoPush:s("repo-push",60225),report:s("report",60226),requestChanges:s("request-changes",60227),rocket:s("rocket",60228),rootFolderOpened:s("root-folder-opened",60229),rootFolder:s("root-folder",60230),rss:s("rss",60231),ruby:s("ruby",60232),saveAll:s("save-all",60233),saveAs:s("save-as",60234),save:s("save",60235),screenFull:s("screen-full",60236),screenNormal:s("screen-normal",60237),searchStop:s("search-stop",60238),server:s("server",60240),settingsGear:s("settings-gear",60241),settings:s("settings",60242),shield:s("shield",60243),smiley:s("smiley",60244),sortPrecedence:s("sort-precedence",60245),splitHorizontal:s("split-horizontal",60246),splitVertical:s("split-vertical",60247),squirrel:s("squirrel",60248),starFull:s("star-full",60249),starHalf:s("star-half",60250),symbolClass:s("symbol-class",60251),symbolColor:s("symbol-color",60252),symbolConstant:s("symbol-constant",60253),symbolEnumMember:s("symbol-enum-member",60254),symbolField:s("symbol-field",60255),symbolFile:s("symbol-file",60256),symbolInterface:s("symbol-interface",60257),symbolKeyword:s("symbol-keyword",60258),symbolMisc:s("symbol-misc",60259),symbolOperator:s("symbol-operator",60260),symbolProperty:s("symbol-property",60261),wrench:s("wrench",60261),wrenchSubaction:s("wrench-subaction",60261),symbolSnippet:s("symbol-snippet",60262),tasklist:s("tasklist",60263),telescope:s("telescope",60264),textSize:s("text-size",60265),threeBars:s("three-bars",60266),thumbsdown:s("thumbsdown",60267),thumbsup:s("thumbsup",60268),tools:s("tools",60269),triangleDown:s("triangle-down",60270),triangleLeft:s("triangle-left",60271),triangleRight:s("triangle-right",60272),triangleUp:s("triangle-up",60273),twitter:s("twitter",60274),unfold:s("unfold",60275),unlock:s("unlock",60276),unmute:s("unmute",60277),unverified:s("unverified",60278),verified:s("verified",60279),versions:s("versions",60280),vmActive:s("vm-active",60281),vmOutline:s("vm-outline",60282),vmRunning:s("vm-running",60283),watch:s("watch",60284),whitespace:s("whitespace",60285),wholeWord:s("whole-word",60286),window:s("window",60287),wordWrap:s("word-wrap",60288),zoomIn:s("zoom-in",60289),zoomOut:s("zoom-out",60290),listFilter:s("list-filter",60291),listFlat:s("list-flat",60292),listSelection:s("list-selection",60293),selection:s("selection",60293),listTree:s("list-tree",60294),debugBreakpointFunctionUnverified:s("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:s("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:s("debug-breakpoint-function-disabled",60296),debugStackframeActive:s("debug-stackframe-active",60297),circleSmallFilled:s("circle-small-filled",60298),debugStackframeDot:s("debug-stackframe-dot",60298),terminalDecorationMark:s("terminal-decoration-mark",60298),debugStackframe:s("debug-stackframe",60299),debugStackframeFocused:s("debug-stackframe-focused",60299),debugBreakpointUnsupported:s("debug-breakpoint-unsupported",60300),symbolString:s("symbol-string",60301),debugReverseContinue:s("debug-reverse-continue",60302),debugStepBack:s("debug-step-back",60303),debugRestartFrame:s("debug-restart-frame",60304),debugAlt:s("debug-alt",60305),callIncoming:s("call-incoming",60306),callOutgoing:s("call-outgoing",60307),menu:s("menu",60308),expandAll:s("expand-all",60309),feedback:s("feedback",60310),gitPullRequestReviewer:s("git-pull-request-reviewer",60310),groupByRefType:s("group-by-ref-type",60311),ungroupByRefType:s("ungroup-by-ref-type",60312),account:s("account",60313),gitPullRequestAssignee:s("git-pull-request-assignee",60313),bellDot:s("bell-dot",60314),debugConsole:s("debug-console",60315),library:s("library",60316),output:s("output",60317),runAll:s("run-all",60318),syncIgnored:s("sync-ignored",60319),pinned:s("pinned",60320),githubInverted:s("github-inverted",60321),serverProcess:s("server-process",60322),serverEnvironment:s("server-environment",60323),pass:s("pass",60324),issueClosed:s("issue-closed",60324),stopCircle:s("stop-circle",60325),playCircle:s("play-circle",60326),record:s("record",60327),debugAltSmall:s("debug-alt-small",60328),vmConnect:s("vm-connect",60329),cloud:s("cloud",60330),merge:s("merge",60331),export:s("export",60332),graphLeft:s("graph-left",60333),magnet:s("magnet",60334),notebook:s("notebook",60335),redo:s("redo",60336),checkAll:s("check-all",60337),pinnedDirty:s("pinned-dirty",60338),passFilled:s("pass-filled",60339),circleLargeFilled:s("circle-large-filled",60340),circleLarge:s("circle-large",60341),circleLargeOutline:s("circle-large-outline",60341),combine:s("combine",60342),gather:s("gather",60342),table:s("table",60343),variableGroup:s("variable-group",60344),typeHierarchy:s("type-hierarchy",60345),typeHierarchySub:s("type-hierarchy-sub",60346),typeHierarchySuper:s("type-hierarchy-super",60347),gitPullRequestCreate:s("git-pull-request-create",60348),runAbove:s("run-above",60349),runBelow:s("run-below",60350),notebookTemplate:s("notebook-template",60351),debugRerun:s("debug-rerun",60352),workspaceTrusted:s("workspace-trusted",60353),workspaceUntrusted:s("workspace-untrusted",60354),workspaceUnknown:s("workspace-unknown",60355),terminalCmd:s("terminal-cmd",60356),terminalDebian:s("terminal-debian",60357),terminalLinux:s("terminal-linux",60358),terminalPowershell:s("terminal-powershell",60359),terminalTmux:s("terminal-tmux",60360),terminalUbuntu:s("terminal-ubuntu",60361),terminalBash:s("terminal-bash",60362),arrowSwap:s("arrow-swap",60363),copy:s("copy",60364),personAdd:s("person-add",60365),filterFilled:s("filter-filled",60366),wand:s("wand",60367),debugLineByLine:s("debug-line-by-line",60368),inspect:s("inspect",60369),layers:s("layers",60370),layersDot:s("layers-dot",60371),layersActive:s("layers-active",60372),compass:s("compass",60373),compassDot:s("compass-dot",60374),compassActive:s("compass-active",60375),azure:s("azure",60376),issueDraft:s("issue-draft",60377),gitPullRequestClosed:s("git-pull-request-closed",60378),gitPullRequestDraft:s("git-pull-request-draft",60379),debugAll:s("debug-all",60380),debugCoverage:s("debug-coverage",60381),runErrors:s("run-errors",60382),folderLibrary:s("folder-library",60383),debugContinueSmall:s("debug-continue-small",60384),beakerStop:s("beaker-stop",60385),graphLine:s("graph-line",60386),graphScatter:s("graph-scatter",60387),pieChart:s("pie-chart",60388),bracket:s("bracket",60175),bracketDot:s("bracket-dot",60389),bracketError:s("bracket-error",60390),lockSmall:s("lock-small",60391),azureDevops:s("azure-devops",60392),verifiedFilled:s("verified-filled",60393),newline:s("newline",60394),layout:s("layout",60395),layoutActivitybarLeft:s("layout-activitybar-left",60396),layoutActivitybarRight:s("layout-activitybar-right",60397),layoutPanelLeft:s("layout-panel-left",60398),layoutPanelCenter:s("layout-panel-center",60399),layoutPanelJustify:s("layout-panel-justify",60400),layoutPanelRight:s("layout-panel-right",60401),layoutPanel:s("layout-panel",60402),layoutSidebarLeft:s("layout-sidebar-left",60403),layoutSidebarRight:s("layout-sidebar-right",60404),layoutStatusbar:s("layout-statusbar",60405),layoutMenubar:s("layout-menubar",60406),layoutCentered:s("layout-centered",60407),target:s("target",60408),indent:s("indent",60409),recordSmall:s("record-small",60410),errorSmall:s("error-small",60411),terminalDecorationError:s("terminal-decoration-error",60411),arrowCircleDown:s("arrow-circle-down",60412),arrowCircleLeft:s("arrow-circle-left",60413),arrowCircleRight:s("arrow-circle-right",60414),arrowCircleUp:s("arrow-circle-up",60415),layoutSidebarRightOff:s("layout-sidebar-right-off",60416),layoutPanelOff:s("layout-panel-off",60417),layoutSidebarLeftOff:s("layout-sidebar-left-off",60418),blank:s("blank",60419),heartFilled:s("heart-filled",60420),map:s("map",60421),mapHorizontal:s("map-horizontal",60421),foldHorizontal:s("fold-horizontal",60421),mapFilled:s("map-filled",60422),mapHorizontalFilled:s("map-horizontal-filled",60422),foldHorizontalFilled:s("fold-horizontal-filled",60422),circleSmall:s("circle-small",60423),bellSlash:s("bell-slash",60424),bellSlashDot:s("bell-slash-dot",60425),commentUnresolved:s("comment-unresolved",60426),gitPullRequestGoToChanges:s("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:s("git-pull-request-new-changes",60428),searchFuzzy:s("search-fuzzy",60429),commentDraft:s("comment-draft",60430),send:s("send",60431),sparkle:s("sparkle",60432),insert:s("insert",60433),mic:s("mic",60434),thumbsdownFilled:s("thumbsdown-filled",60435),thumbsupFilled:s("thumbsup-filled",60436),coffee:s("coffee",60437),snake:s("snake",60438),game:s("game",60439),vr:s("vr",60440),chip:s("chip",60441),piano:s("piano",60442),music:s("music",60443),micFilled:s("mic-filled",60444),repoFetch:s("repo-fetch",60445),copilot:s("copilot",60446),lightbulbSparkle:s("lightbulb-sparkle",60447),robot:s("robot",60448),sparkleFilled:s("sparkle-filled",60449),diffSingle:s("diff-single",60450),diffMultiple:s("diff-multiple",60451),surroundWith:s("surround-with",60452),share:s("share",60453),gitStash:s("git-stash",60454),gitStashApply:s("git-stash-apply",60455),gitStashPop:s("git-stash-pop",60456),vscode:s("vscode",60457),vscodeInsiders:s("vscode-insiders",60458),codeOss:s("code-oss",60459),runCoverage:s("run-coverage",60460),runAllCoverage:s("run-all-coverage",60461),coverage:s("coverage",60462),githubProject:s("github-project",60463),mapVertical:s("map-vertical",60464),foldVertical:s("fold-vertical",60464),mapVerticalFilled:s("map-vertical-filled",60465),foldVerticalFilled:s("fold-vertical-filled",60465),goToSearch:s("go-to-search",60466),percentage:s("percentage",60467),sortPercentage:s("sort-percentage",60467),attach:s("attach",60468)},...{dialogError:s("dialog-error","error"),dialogWarning:s("dialog-warning","warning"),dialogInfo:s("dialog-info","info"),dialogClose:s("dialog-close","close"),treeItemExpanded:s("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:s("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:s("tree-filter-on-type-off","list-selection"),treeFilterClear:s("tree-filter-clear","close"),treeItemLoading:s("tree-item-loading","loading"),menuSelection:s("menu-selection","check"),menuSubmenu:s("menu-submenu","chevron-right"),menuBarMore:s("menubar-more","more"),scrollbarButtonLeft:s("scrollbar-button-left","triangle-left"),scrollbarButtonRight:s("scrollbar-button-right","triangle-right"),scrollbarButtonUp:s("scrollbar-button-up","triangle-up"),scrollbarButtonDown:s("scrollbar-button-down","triangle-down"),toolBarMore:s("toolbar-more","more"),quickInputBack:s("quick-input-back","arrow-left"),dropDownButton:s("drop-down-button",60084),symbolCustomColor:s("symbol-customcolor",60252),exportIcon:s("export",60332),workspaceUnspecified:s("workspace-unspecified",60355),newLine:s("newline",60394),thumbsDownFilled:s("thumbsdown-filled",60435),thumbsUpFilled:s("thumbsup-filled",60436),gitFetch:s("git-fetch",60445),lightbulbSparkleAutofix:s("lightbulb-sparkle-autofix",60447),debugBreakpointPending:s("debug-breakpoint-pending",60377)}}},7661:(e,t,n)=>{"use strict";function i(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}n.d(t,{Q1:()=>a,bU:()=>r,hB:()=>s});class r{constructor(e,t,n,r=1){this._rgbaBrand=void 0,this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,t)),this.b=0|Math.min(255,Math.max(0,n)),this.a=i(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}}class s{constructor(e,t,n,r){this._hslaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=i(Math.max(Math.min(1,t),0),3),this.l=i(Math.max(Math.min(1,n),0),3),this.a=i(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(e){const t=e.r/255,n=e.g/255,i=e.b/255,r=e.a,o=Math.max(t,n,i),a=Math.min(t,n,i);let l=0,h=0;const c=(a+o)/2,u=o-a;if(u>0){switch(h=Math.min(c<=.5?u/(2*c):u/(2-2*c),1),o){case t:l=(n-i)/u+(n<i?6:0);break;case n:l=(i-t)/u+2;break;case i:l=(t-n)/u+4}l*=60,l=Math.round(l)}return new s(l,h,c,r)}static _hue2rgb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}static toRGBA(e){const t=e.h/360,{s:n,l:i,a:o}=e;let a,l,h;if(0===n)a=l=h=i;else{const e=i<.5?i*(1+n):i+n-i*n,r=2*i-e;a=s._hue2rgb(r,e,t+1/3),l=s._hue2rgb(r,e,t),h=s._hue2rgb(r,e,t-1/3)}return new r(Math.round(255*a),Math.round(255*l),Math.round(255*h),o)}}class o{constructor(e,t,n,r){this._hsvaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=i(Math.max(Math.min(1,t),0),3),this.v=i(Math.max(Math.min(1,n),0),3),this.a=i(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(e){const t=e.r/255,n=e.g/255,i=e.b/255,r=Math.max(t,n,i),s=r-Math.min(t,n,i),a=0===r?0:s/r;let l;return l=0===s?0:r===t?((n-i)/s%6+6)%6:r===n?(i-t)/s+2:(t-n)/s+4,new o(Math.round(60*l),a,r,e.a)}static toRGBA(e){const{h:t,s:n,v:i,a:s}=e,o=i*n,a=o*(1-Math.abs(t/60%2-1)),l=i-o;let[h,c,u]=[0,0,0];return t<60?(h=o,c=a):t<120?(h=a,c=o):t<180?(c=o,u=a):t<240?(c=a,u=o):t<300?(h=a,u=o):t<=360&&(h=o,u=a),h=Math.round(255*(h+l)),c=Math.round(255*(c+l)),u=Math.round(255*(u+l)),new r(h,c,u,s)}}class a{static fromHex(e){return a.Format.CSS.parseHex(e)||a.red}static equals(e,t){return!e&&!t||!(!e||!t)&&e.equals(t)}get hsla(){return this._hsla?this._hsla:s.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:o.fromRGBA(this.rgba)}constructor(e){if(!e)throw new Error("Color needs a value");if(e instanceof r)this.rgba=e;else if(e instanceof s)this._hsla=e,this.rgba=s.toRGBA(e);else{if(!(e instanceof o))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=o.toRGBA(e)}}equals(e){return!!e&&r.equals(this.rgba,e.rgba)&&s.equals(this.hsla,e.hsla)&&o.equals(this.hsva,e.hsva)}getRelativeLuminance(){return i(.2126*a._relativeLuminanceForComponent(this.rgba.r)+.7152*a._relativeLuminanceForComponent(this.rgba.g)+.0722*a._relativeLuminanceForComponent(this.rgba.b),4)}static _relativeLuminanceForComponent(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}isLighter(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128}isLighterThan(e){return this.getRelativeLuminance()>e.getRelativeLuminance()}isDarkerThan(e){return this.getRelativeLuminance()<e.getRelativeLuminance()}lighten(e){return new a(new s(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*e,this.hsla.a))}darken(e){return new a(new s(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*e,this.hsla.a))}transparent(e){const{r:t,g:n,b:i,a:s}=this.rgba;return new a(new r(t,n,i,s*e))}isTransparent(){return 0===this.rgba.a}isOpaque(){return 1===this.rgba.a}opposite(){return new a(new r(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(e){if(this.isOpaque()||1!==e.rgba.a)return this;const{r:t,g:n,b:i,a:s}=this.rgba;return new a(new r(e.rgba.r-s*(e.rgba.r-t),e.rgba.g-s*(e.rgba.g-n),e.rgba.b-s*(e.rgba.b-i),1))}toString(){return this._toString||(this._toString=a.Format.CSS.format(this)),this._toString}static getLighterColor(e,t,n){if(e.isLighterThan(t))return e;n=n||.5;const i=e.getRelativeLuminance(),r=t.getRelativeLuminance();return n=n*(r-i)/r,e.lighten(n)}static getDarkerColor(e,t,n){if(e.isDarkerThan(t))return e;n=n||.5;const i=e.getRelativeLuminance();return n=n*(i-t.getRelativeLuminance())/i,e.darken(n)}static{this.white=new a(new r(255,255,255,1))}static{this.black=new a(new r(0,0,0,1))}static{this.red=new a(new r(255,0,0,1))}static{this.blue=new a(new r(0,0,255,1))}static{this.green=new a(new r(0,255,0,1))}static{this.cyan=new a(new r(0,255,255,1))}static{this.lightgrey=new a(new r(211,211,211,1))}static{this.transparent=new a(new r(0,0,0,0))}}!function(e){let t;!function(t){let n;!function(t){function n(e){const t=e.toString(16);return 2!==t.length?"0"+t:t}function i(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:case 65:return 10;case 98:case 66:return 11;case 99:case 67:return 12;case 100:case 68:return 13;case 101:case 69:return 14;case 102:case 70:return 15}return 0}t.formatRGB=function(t){return 1===t.rgba.a?`rgb(${t.rgba.r}, ${t.rgba.g}, ${t.rgba.b})`:e.Format.CSS.formatRGBA(t)},t.formatRGBA=function(e){return`rgba(${e.rgba.r}, ${e.rgba.g}, ${e.rgba.b}, ${+e.rgba.a.toFixed(2)})`},t.formatHSL=function(t){return 1===t.hsla.a?`hsl(${t.hsla.h}, ${(100*t.hsla.s).toFixed(2)}%, ${(100*t.hsla.l).toFixed(2)}%)`:e.Format.CSS.formatHSLA(t)},t.formatHSLA=function(e){return`hsla(${e.hsla.h}, ${(100*e.hsla.s).toFixed(2)}%, ${(100*e.hsla.l).toFixed(2)}%, ${e.hsla.a.toFixed(2)})`},t.formatHex=function(e){return`#${n(e.rgba.r)}${n(e.rgba.g)}${n(e.rgba.b)}`},t.formatHexA=function(t,i=!1){return i&&1===t.rgba.a?e.Format.CSS.formatHex(t):`#${n(t.rgba.r)}${n(t.rgba.g)}${n(t.rgba.b)}${n(Math.round(255*t.rgba.a))}`},t.format=function(t){return t.isOpaque()?e.Format.CSS.formatHex(t):e.Format.CSS.formatRGBA(t)},t.parseHex=function(t){const n=t.length;if(0===n)return null;if(35!==t.charCodeAt(0))return null;if(7===n){const n=16*i(t.charCodeAt(1))+i(t.charCodeAt(2)),s=16*i(t.charCodeAt(3))+i(t.charCodeAt(4)),o=16*i(t.charCodeAt(5))+i(t.charCodeAt(6));return new e(new r(n,s,o,1))}if(9===n){const n=16*i(t.charCodeAt(1))+i(t.charCodeAt(2)),s=16*i(t.charCodeAt(3))+i(t.charCodeAt(4)),o=16*i(t.charCodeAt(5))+i(t.charCodeAt(6)),a=16*i(t.charCodeAt(7))+i(t.charCodeAt(8));return new e(new r(n,s,o,a/255))}if(4===n){const n=i(t.charCodeAt(1)),s=i(t.charCodeAt(2)),o=i(t.charCodeAt(3));return new e(new r(16*n+n,16*s+s,16*o+o))}if(5===n){const n=i(t.charCodeAt(1)),s=i(t.charCodeAt(2)),o=i(t.charCodeAt(3)),a=i(t.charCodeAt(4));return new e(new r(16*n+n,16*s+s,16*o+o,(16*a+a)/255))}return null}}(n=t.CSS||(t.CSS={}))}(t=e.Format||(e.Format={}))}(a||(a={}))},4383:(e,t,n)=>{"use strict";n.d(t,{D7:()=>g,EM:()=>u,Qg:()=>h,cU:()=>s,dz:()=>r,iH:()=>c});const i=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((()=>{if(e.stack){if(d.isErrorNoTelemetry(e))throw new d(e.message+"\n\n"+e.stack);throw new Error(e.message+"\n\n"+e.stack)}throw e}),0)}}emit(e){this.listeners.forEach((t=>{t(e)}))}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function r(e){a(e)||i.onUnexpectedError(e)}function s(e){if(e instanceof Error){const{name:t,message:n}=e;return{$isError:!0,name:t,message:n,stack:e.stacktrace||e.stack,noTelemetry:d.isErrorNoTelemetry(e)}}return e}const o="Canceled";function a(e){return e instanceof l||e instanceof Error&&e.name===o&&e.message===o}class l extends Error{constructor(){super(o),this.name=this.message}}function h(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")}function c(e){return e?new Error(`Illegal state: ${e}`):new Error("Illegal state")}class u extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class d extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof d)return e;const t=new d;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return"CodeExpectedError"===e.name}}class g extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,g.prototype)}}},1234:(e,t,n)=>{"use strict";n.d(t,{Jh:()=>o,vl:()=>f});var i=n(4383),r=n(1484),s=(n(8925),n(8381));var o;!function(e){function t(e){false}function n(e){return(t,n=null,i)=>{let r,s=!1;return r=e((e=>{if(!s)return r?r.dispose():s=!0,t.call(n,e)}),null,i),s&&r.dispose(),r}}function i(e,t,n){return o(((n,i=null,r)=>e((e=>n.call(i,t(e))),null,r)),n)}function s(e,t,n){return o(((n,i=null,r)=>e((e=>t(e)&&n.call(i,e)),null,r)),n)}function o(e,n){let i;const r={onWillAddFirstListener(){i=e(s.fire,s)},onDidRemoveLastListener(){i?.dispose()}};n||t();const s=new f(r);return n?.add(s),s.event}function a(e,n,i=100,r=!1,s=!1,o,a){let l,h,c,u,d=0;const g={leakWarningThreshold:o,onWillAddFirstListener(){l=e((e=>{d++,h=n(h,e),r&&!c&&(m.fire(h),h=void 0),u=()=>{const e=h;h=void 0,c=void 0,(!r||d>1)&&m.fire(e),d=0},"number"===typeof i?(clearTimeout(c),c=setTimeout(u,i)):void 0===c&&(c=0,queueMicrotask(u))}))},onWillRemoveListener(){s&&d>0&&u?.()},onDidRemoveLastListener(){u=void 0,l.dispose()}};a||t();const m=new f(g);return a?.add(m),m.event}e.None=()=>r.jG.None,e.defer=function(e,t){return a(e,(()=>{}),0,void 0,!0,void 0,t)},e.once=n,e.onceIf=function(t,n){return e.once(e.filter(t,n))},e.map=i,e.forEach=function(e,t,n){return o(((n,i=null,r)=>e((e=>{t(e),n.call(i,e)}),null,r)),n)},e.filter=s,e.signal=function(e){return e},e.any=function(...e){return(t,n=null,i)=>function(e,t){t instanceof Array?t.push(e):t&&t.add(e);return e}((0,r.qE)(...e.map((e=>e((e=>t.call(n,e)))))),i)},e.reduce=function(e,t,n,r){let s=n;return i(e,(e=>(s=t(s,e),s)),r)},e.debounce=a,e.accumulate=function(t,n=0,i){return e.debounce(t,((e,t)=>e?(e.push(t),e):[t]),n,void 0,!0,void 0,i)},e.latch=function(e,t=(e,t)=>e===t,n){let i,r=!0;return s(e,(e=>{const n=r||!t(e,i);return r=!1,i=e,n}),n)},e.split=function(t,n,i){return[e.filter(t,n,i),e.filter(t,(e=>!n(e)),i)]},e.buffer=function(e,t=!1,n=[],i){let r=n.slice(),s=e((e=>{r?r.push(e):a.fire(e)}));i&&i.add(s);const o=()=>{r?.forEach((e=>a.fire(e))),r=null},a=new f({onWillAddFirstListener(){s||(s=e((e=>a.fire(e))),i&&i.add(s))},onDidAddFirstListener(){r&&(t?setTimeout(o):o())},onDidRemoveLastListener(){s&&s.dispose(),s=null}});return i&&i.add(a),a.event},e.chain=function(e,t){return(n,i,r)=>{const s=t(new h);return e((function(e){const t=s.evaluate(e);t!==l&&n.call(i,t)}),void 0,r)}};const l=Symbol("HaltChainable");class h{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:l)),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,n=!0;return this.steps.push((i=>{const r=n||!e(i,t);return n=!1,t=i,r?i:l})),this}evaluate(e){for(const t of this.steps)if((e=t(e))===l)break;return e}}e.fromNodeEventEmitter=function(e,t,n=e=>e){const i=(...e)=>r.fire(n(...e)),r=new f({onWillAddFirstListener:()=>e.on(t,i),onDidRemoveLastListener:()=>e.removeListener(t,i)});return r.event},e.fromDOMEventEmitter=function(e,t,n=e=>e){const i=(...e)=>r.fire(n(...e)),r=new f({onWillAddFirstListener:()=>e.addEventListener(t,i),onDidRemoveLastListener:()=>e.removeEventListener(t,i)});return r.event},e.toPromise=function(e){return new Promise((t=>n(e)(t)))},e.fromPromise=function(e){const t=new f;return e.then((e=>{t.fire(e)}),(()=>{t.fire(void 0)})).finally((()=>{t.dispose()})),t.event},e.forward=function(e,t){return e((e=>t.fire(e)))},e.runAndSubscribe=function(e,t,n){return t(n),e((e=>t(e)))};class c{constructor(e,n){this._observable=e,this._counter=0,this._hasChanged=!1;const i={onWillAddFirstListener:()=>{e.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{e.removeObserver(this)}};n||t(),this.emitter=new f(i),n&&n.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,0===this._counter&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}e.fromObservable=function(e,t){return new c(e,t).emitter.event},e.fromObservableLight=function(e){return(t,n,i)=>{let s=0,o=!1;const a={beginUpdate(){s++},endUpdate(){s--,0===s&&(e.reportChanges(),o&&(o=!1,t.call(n)))},handlePossibleChange(){},handleChange(){o=!0}};e.addObserver(a),e.reportChanges();const l={dispose(){e.removeObserver(a)}};return i instanceof r.Cm?i.add(l):Array.isArray(i)&&i.push(l),l}}}(o||(o={}));class a{static{this.all=new Set}static{this._idPool=0}constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${a._idPool++}`,a.all.add(this)}start(e){this._stopWatch=new s.W,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}class l{static{this._idPool=1}constructor(e,t,n=(l._idPool++).toString(16).padStart(3,"0")){this._errorHandler=e,this.threshold=t,this.name=n,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(e,t){const n=this.threshold;if(n<=0||t<n)return;this._stacks||(this._stacks=new Map);const i=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,i+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=.5*n;const[e,i]=this.getMostFrequentStack(),r=`[${this.name}] potential listener LEAK detected, having ${t} listeners already. MOST frequent listener (${i}):`;console.warn(r),console.warn(e);const s=new c(r,e);this._errorHandler(s)}return()=>{const t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}getMostFrequentStack(){if(!this._stacks)return;let e,t=0;for(const[n,i]of this._stacks)(!e||t<i)&&(e=[n,i],t=i);return e}}class h{static create(){const e=new Error;return new h(e.stack??"")}constructor(e){this.value=e}print(){console.warn(this.value.split("\n").slice(2).join("\n"))}}class c extends Error{constructor(e,t){super(e),this.name="ListenerLeakError",this.stack=t}}class u extends Error{constructor(e,t){super(e),this.name="ListenerRefusalError",this.stack=t}}class d{constructor(e){this.value=e}}let g;class f{constructor(e){this._size=0,this._options=e,this._leakageMon=this._options?.leakWarningThreshold?new l(e?.onListenerError??i.dz,this._options?.leakWarningThreshold??-1):void 0,this._perfMon=this._options?._profName?new a(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,t,n)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const 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);const t=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],n=new u(`${e}. HINT: Stack shows most frequent listener (${t[1]}-times)`,t[0]);return(this._options?.onListenerError||i.dz)(n),r.jG.None}if(this._disposed)return r.jG.None;t&&(e=e.bind(t));const s=new d(e);let o;this._leakageMon&&this._size>=Math.ceil(.2*this._leakageMon.threshold)&&(s.stack=h.create(),o=this._leakageMon.check(s.stack,this._size+1)),this._listeners?this._listeners instanceof d?(this._deliveryQueue??=new m,this._listeners=[this._listeners,s]):this._listeners.push(s):(this._options?.onWillAddFirstListener?.(this),this._listeners=s,this._options?.onDidAddFirstListener?.(this)),this._size++;const a=(0,r.s)((()=>{g?.unregister(a),o?.(),this._removeListener(s)}));if(n instanceof r.Cm?n.add(a):Array.isArray(n)&&n.push(a),g){const e=(new Error).stack.split("\n").slice(2,3).join("\n").trim(),t=/(file:|vscode-file:\/\/vscode-app)?(\/[^:]*:\d+:\d+)/.exec(e);g.register(a,t?.[2]??e,a)}return a},this._event}_removeListener(e){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(1===this._size)return this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),void(this._size=0);const t=this._listeners,n=t.indexOf(e);if(-1===n)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,t[n]=void 0;const i=this._deliveryQueue.current===this;if(2*this._size<=t.length){let e=0;for(let n=0;n<t.length;n++)t[n]?t[e++]=t[n]:i&&(this._deliveryQueue.end--,e<this._deliveryQueue.i&&this._deliveryQueue.i--);t.length=e}}_deliver(e,t){if(!e)return;const n=this._options?.onListenerError||i.dz;if(n)try{e.value(t)}catch(r){n(r)}else e.value(t)}_deliverQueue(e){const 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 d)this._deliver(this._listeners,e);else{const t=this._deliveryQueue;t.enqueue(this,e,this._listeners.length),this._deliverQueue(t)}else;this._perfMon?.stop()}hasListeners(){return this._size>0}}class m{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}}},9326:(e,t,n)=>{"use strict";n.d(t,{TH:()=>o,Zn:()=>l,_1:()=>h,kb:()=>a});var i=n(8821),r=(n(8067),n(1508));function s(e){return 47===e||92===e}function o(e){return e.replace(/[\\/]/g,i.SA.sep)}function a(e){return-1===e.indexOf("/")&&(e=o(e)),/^[a-zA-Z]:(\/|$)/.test(e)&&(e="/"+e),e}function l(e,t=i.SA.sep){if(!e)return"";const n=e.length,r=e.charCodeAt(0);if(s(r)){if(s(e.charCodeAt(1))&&!s(e.charCodeAt(2))){let i=3;const r=i;for(;i<n&&!s(e.charCodeAt(i));i++);if(r!==i&&!s(e.charCodeAt(i+1)))for(i+=1;i<n;i++)if(s(e.charCodeAt(i)))return e.slice(0,i+1).replace(/[\\/]/g,t)}return t}if(c(r)&&58===e.charCodeAt(1))return s(e.charCodeAt(2))?e.slice(0,2)+t:e.slice(0,2);let o=e.indexOf("://");if(-1!==o)for(o+=3;o<n;o++)if(s(e.charCodeAt(o)))return e.slice(0,o+1);return""}function h(e,t,n,s=i.Vn){if(e===t)return!0;if(!e||!t)return!1;if(t.length>e.length)return!1;if(n){if(!(0,r.ns)(e,t))return!1;if(t.length===e.length)return!0;let n=t.length;return t.charAt(t.length-1)===s&&n--,e.charAt(n)===s}return t.charAt(t.length-1)!==s&&(t+=s),0===e.indexOf(t)}function c(e){return e>=65&&e<=90||e>=97&&e<=122}},6958:(e,t,n)=>{"use strict";n.d(t,{YW:()=>T,qg:()=>A});var i=n(1940),r=n(9326),s=n(4320),o=n(8821),a=n(8067),l=n(1508);const h="**",c="/",u="[/\\\\]",d="[^/\\\\]",g=/\//g;function f(e,t){switch(e){case 0:return"";case 1:return`${d}*?`;default:return`(?:${u}|${d}+${u}${t?`|${u}${d}+`:""})*?`}}function m(e,t){if(!e)return[];const n=[];let i=!1,r=!1,s="";for(const o of e){switch(o){case t:if(!i&&!r){n.push(s),s="";continue}break;case"{":i=!0;break;case"}":i=!1;break;case"[":r=!0;break;case"]":r=!1}s+=o}return s&&n.push(s),n}function p(e){if(!e)return"";let t="";const n=m(e,c);if(n.every((e=>e===h)))t=".*";else{let e=!1;n.forEach(((i,r)=>{if(i===h){if(e)return;t+=f(2,r===n.length-1)}else{let e=!1,s="",o=!1,a="";for(const n of i)if("}"!==n&&e)s+=n;else if(!o||"]"===n&&a)switch(n){case"{":e=!0;continue;case"[":o=!0;continue;case"}":{const n=`(?:${m(s,",").map((e=>p(e))).join("|")})`;t+=n,e=!1,s="";break}case"]":t+="["+a+"]",o=!1,a="";break;case"?":t+=d;continue;case"*":t+=f(1);continue;default:t+=(0,l.bm)(n)}else{let e;e="-"===n?n:"^"!==n&&"!"!==n||a?n===c?"":(0,l.bm)(n):"^",a+=e}r<n.length-1&&(n[r+1]!==h||r+2<n.length)&&(t+=u)}e=i===h}))}return t}const _=/^\*\*\/\*\.[\w\.-]+$/,b=/^\*\*\/([\w\.-]+)\/?$/,k=/^{\*\*\/\*?[\w\.-]+\/?(,\*\*\/\*?[\w\.-]+\/?)*}$/,v=/^{\*\*\/\*?[\w\.-]+(\/(\*\*)?)?(,\*\*\/\*?[\w\.-]+(\/(\*\*)?)?)*}$/,C=/^\*\*((\/[\w\.-]+)+)\/?$/,L=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,y=new s.qK(1e4),w=function(){return!1},S=function(){return null};function x(e,t){if(!e)return S;let n;n="string"!==typeof e?e.pattern:e,n=n.trim();const i=`${n}_${!!t.trimForExclusions}`;let r,s=y.get(i);return s||(s=_.test(n)?function(e,t){return function(n,i){return"string"===typeof n&&n.endsWith(e)?t:null}}(n.substr(4),n):(r=b.exec(N(n,t)))?function(e,t){const n=`/${e}`,i=`\\${e}`,r=function(r,s){return"string"!==typeof r?null:s?s===e?t:null:r===e||r.endsWith(n)||r.endsWith(i)?t:null},s=[e];return r.basenames=s,r.patterns=[t],r.allBasenames=s,r}(r[1],n):(t.trimForExclusions?v:k).test(n)?function(e,t){const n=D(e.slice(1,-1).split(",").map((e=>x(e,t))).filter((e=>e!==S)),e),i=n.length;if(!i)return S;if(1===i)return n[0];const r=function(t,i){for(let r=0,s=n.length;r<s;r++)if(n[r](t,i))return e;return null},s=n.find((e=>!!e.allBasenames));s&&(r.allBasenames=s.allBasenames);const o=n.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);o.length&&(r.allPaths=o);return r}(n,t):(r=C.exec(N(n,t)))?I(r[1].substr(1),n,!0):(r=L.exec(N(n,t)))?I(r[1],n,!1):function(e){try{const t=new RegExp(`^${p(e)}$`);return function(n){return t.lastIndex=0,"string"===typeof n&&t.test(n)?e:null}}catch(t){return S}}(n),y.set(i,s)),E(s,e)}function E(e,t){if("string"===typeof t)return e;const n=function(n,i){return(0,r._1)(n,t.base,!a.j9)?e((0,l.NB)(n.substr(t.base.length),o.Vn),i):null};return n.allBasenames=e.allBasenames,n.allPaths=e.allPaths,n.basenames=e.basenames,n.patterns=e.patterns,n}function N(e,t){return t.trimForExclusions&&e.endsWith("/**")?e.substr(0,e.length-2):e}function I(e,t,n){const i=o.Vn===o.SA.sep,r=i?e:e.replace(g,o.Vn),s=o.Vn+r,a=o.SA.sep+e;let l;return l=n?function(n,o){return"string"!==typeof n||n!==r&&!n.endsWith(s)&&(i||n!==e&&!n.endsWith(a))?null:t}:function(n,s){return"string"!==typeof n||n!==r&&(i||n!==e)?null:t},l.allPaths=[(n?"*/":"./")+e],l}function T(e,t,n){return!(!e||"string"!==typeof t)&&A(e)(t,void 0,n)}function A(e,t={}){if(!e)return w;if("string"===typeof e||function(e){const t=e;if(!t)return!1;return"string"===typeof t.base&&"string"===typeof t.pattern}(e)){const n=x(e,t);if(n===S)return w;const i=function(e,t){return!!n(e,t)};return n.allBasenames&&(i.allBasenames=n.allBasenames),n.allPaths&&(i.allPaths=n.allPaths),i}return function(e,t){const n=D(Object.getOwnPropertyNames(e).map((n=>function(e,t,n){if(!1===t)return S;const r=x(e,n);if(r===S)return S;if("boolean"===typeof t)return r;if(t){const n=t.when;if("string"===typeof n){const t=(t,s,o,a)=>{if(!a||!r(t,s))return null;const l=a(n.replace("$(basename)",(()=>o)));return(0,i.Qg)(l)?l.then((t=>t?e:null)):l?e:null};return t.requiresSiblings=!0,t}}return r}(n,e[n],t))).filter((e=>e!==S))),r=n.length;if(!r)return S;if(!n.some((e=>!!e.requiresSiblings))){if(1===r)return n[0];const e=function(e,t){let r;for(let s=0,o=n.length;s<o;s++){const o=n[s](e,t);if("string"===typeof o)return o;(0,i.Qg)(o)&&(r||(r=[]),r.push(o))}return r?(async()=>{for(const e of r){const t=await e;if("string"===typeof t)return t}return null})():null},t=n.find((e=>!!e.allBasenames));t&&(e.allBasenames=t.allBasenames);const s=n.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);return s.length&&(e.allPaths=s),e}const s=function(e,t,r){let s,a;for(let l=0,h=n.length;l<h;l++){const h=n[l];h.requiresSiblings&&r&&(t||(t=(0,o.P8)(e)),s||(s=t.substr(0,t.length-(0,o.LC)(e).length)));const c=h(e,t,s,r);if("string"===typeof c)return c;(0,i.Qg)(c)&&(a||(a=[]),a.push(c))}return a?(async()=>{for(const e of a){const t=await e;if("string"===typeof t)return t}return null})():null},a=n.find((e=>!!e.allBasenames));a&&(s.allBasenames=a.allBasenames);const l=n.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);l.length&&(s.allPaths=l);return s}(e,t)}function D(e,t){const n=e.filter((e=>!!e.basenames));if(n.length<2)return e;const i=n.reduce(((e,t)=>{const n=t.basenames;return n?e.concat(n):e}),[]);let r;if(t){r=[];for(let e=0,n=i.length;e<n;e++)r.push(t)}else r=n.reduce(((e,t)=>{const n=t.patterns;return n?e.concat(n):e}),[]);const s=function(e,t){if("string"!==typeof e)return null;if(!t){let n;for(n=e.length;n>0;n--){const t=e.charCodeAt(n-1);if(47===t||92===t)break}t=e.substr(n)}const n=i.indexOf(t);return-1!==n?r[n]:null};s.basenames=i,s.patterns=r,s.allBasenames=i;const o=e.filter((e=>!e.basenames));return o.push(s),o}},5600:(e,t,n)=>{"use strict";n.d(t,{e2:()=>o,sN:()=>r,v7:()=>c});var i=n(1508);function r(e,t){switch(typeof e){case"object":return null===e?s(349,t):Array.isArray(e)?(n=e,i=s(104579,i=t),n.reduce(((e,t)=>r(t,e)),i)):function(e,t){return t=s(181387,t),Object.keys(e).sort().reduce(((t,n)=>(t=o(n,t),r(e[n],t))),t)}(e,t);case"string":return o(e,t);case"boolean":return function(e,t){return s(e?433:863,t)}(e,t);case"number":return s(e,t);case"undefined":return s(937,t);default:return s(617,t)}var n,i}function s(e,t){return(t<<5)-t+e|0}function o(e,t){t=s(149417,t);for(let n=0,i=e.length;n<i;n++)t=s(e.charCodeAt(n),t);return t}function a(e,t,n=32){const i=n-t;return(e<<t|(~((1<<i)-1)&e)>>>i)>>>0}function l(e,t=0,n=e.byteLength,i=0){for(let r=0;r<n;r++)e[t+r]=i}function h(e,t=32){return e instanceof ArrayBuffer?Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join(""):function(e,t,n="0"){for(;e.length<t;)e=n+e;return e}((e>>>0).toString(16),t/4)}class c{static{this._bigBlock32=new DataView(new ArrayBuffer(320))}constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(0===t)return;const n=this._buff;let r,s,o=this._buffLen,a=this._leftoverHighSurrogate;for(0!==a?(r=a,s=-1,a=0):(r=e.charCodeAt(0),s=0);;){let l=r;if(i.pc(r)){if(!(s+1<t)){a=r;break}{const t=e.charCodeAt(s+1);i.LJ(t)?(s++,l=i.z_(r,t)):l=65533}}else i.LJ(r)&&(l=65533);if(o=this._push(n,o,l),s++,!(s<t))break;r=e.charCodeAt(s)}this._buffLen=o,this._leftoverHighSurrogate=a}_push(e,t,n){return n<128?e[t++]=n:n<2048?(e[t++]=192|(1984&n)>>>6,e[t++]=128|(63&n)>>>0):n<65536?(e[t++]=224|(61440&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0):(e[t++]=240|(1835008&n)>>>18,e[t++]=128|(258048&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>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()),h(this._h0)+h(this._h1)+h(this._h2)+h(this._h3)+h(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,l(this._buff,this._buffLen),this._buffLen>56&&(this._step(),l(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=c._bigBlock32,t=this._buffDV;for(let a=0;a<64;a+=4)e.setUint32(a,t.getUint32(a,!1),!1);for(let c=64;c<320;c+=4)e.setUint32(c,a(e.getUint32(c-12,!1)^e.getUint32(c-32,!1)^e.getUint32(c-56,!1)^e.getUint32(c-64,!1),1),!1);let n,i,r,s=this._h0,o=this._h1,l=this._h2,h=this._h3,u=this._h4;for(let c=0;c<80;c++)c<20?(n=o&l|~o&h,i=1518500249):c<40?(n=o^l^h,i=1859775393):c<60?(n=o&l|o&h|l&h,i=2400959708):(n=o^l^h,i=3395469782),r=a(s,5)+n+u+i+e.getUint32(4*c,!1)&4294967295,u=h,h=l,l=a(o,30),o=s,s=r;this._h0=this._h0+s&4294967295,this._h1=this._h1+o&4294967295,this._h2=this._h2+l&4294967295,this._h3=this._h3+h&4294967295,this._h4=this._h4+u&4294967295}}},2522:(e,t,n)=>{"use strict";var i;n.d(t,{f:()=>i}),function(e){function t(e){return e&&"object"===typeof e&&"function"===typeof e[Symbol.iterator]}e.is=t;const n=Object.freeze([]);function*i(e){yield e}e.empty=function(){return n},e.single=i,e.wrap=function(e){return t(e)?e:i(e)},e.from=function(e){return e||n},e.reverse=function*(e){for(let t=e.length-1;t>=0;t--)yield e[t]},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){let n=0;for(const i of e)if(t(i,n++))return!0;return!1},e.find=function(e,t){for(const n of e)if(t(n))return n},e.filter=function*(e,t){for(const n of e)t(n)&&(yield n)},e.map=function*(e,t){let n=0;for(const i of e)yield t(i,n++)},e.flatMap=function*(e,t){let n=0;for(const i of e)yield*t(i,n++)},e.concat=function*(...e){for(const t of e)yield*t},e.reduce=function(e,t,n){let i=n;for(const r of e)i=t(i,r);return i},e.slice=function*(e,t,n=e.length){for(t<0&&(t+=e.length),n<0?n+=e.length:n>e.length&&(n=e.length);t<n;t++)yield e[t]},e.consume=function(t,n=Number.POSITIVE_INFINITY){const i=[];if(0===n)return[i,t];const r=t[Symbol.iterator]();for(let s=0;s<n;s++){const t=r.next();if(t.done)return[i,e.empty()];i.push(t.value)}return[i,{[Symbol.iterator]:()=>r}]},e.asyncToArray=async function(e){const t=[];for await(const n of e)t.push(n);return Promise.resolve(t)}}(i||(i={}))},1090:(e,t,n)=>{"use strict";n.d(t,{d:()=>i});class i{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}},1484:(e,t,n)=>{"use strict";function i(e,t){const n=this;let i,r=!1;return function(){if(r)return i;if(r=!0,t)try{i=e.apply(n,arguments)}finally{t()}else i=e.apply(n,arguments);return i}}n.d(t,{jG:()=>g,$w:()=>m,Cm:()=>d,HE:()=>f,qE:()=>c,AS:()=>h,VD:()=>a,s:()=>u,Ay:()=>o});var r=n(2522);let s=null;function o(e){return s?.trackDisposable(e),e}function a(e){s?.markAsDisposed(e)}function l(e,t){s?.setParent(e,t)}function h(e){if(r.f.is(e)){const n=[];for(const i of e)if(i)try{i.dispose()}catch(t){n.push(t)}if(1===n.length)throw n[0];if(n.length>1)throw new AggregateError(n,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function c(...e){const t=u((()=>h(e)));return function(e,t){if(s)for(const n of e)s.setParent(n,t)}(e,t),t}function u(e){const t=o({dispose:i((()=>{a(t),e()}))});return t}class d{static{this.DISABLE_DISPOSED_WARNING=!1}constructor(){this._toDispose=new Set,this._isDisposed=!1,o(this)}dispose(){this._isDisposed||(a(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(0!==this._toDispose.size)try{h(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return l(e,this),this._isDisposed?d.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}deleteAndLeak(e){e&&this._toDispose.has(e)&&(this._toDispose.delete(e),l(e,null))}}class g{static{this.None=Object.freeze({dispose(){}})}constructor(){this._store=new d,o(this),l(this._store,this)}dispose(){a(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}class f{constructor(){this._isDisposed=!1,o(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){this._isDisposed||e===this._value||(this._value?.dispose(),e&&l(e,this),this._value=e)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,a(this),this._value?.dispose(),this._value=void 0}}class m{constructor(){this._store=new Map,this._isDisposed=!1,o(this)}dispose(){a(this),this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{h(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,t,n=!1){this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),n||this._store.get(e)?.dispose(),this._store.set(e,t)}deleteAndDispose(e){this._store.get(e)?.dispose(),this._store.delete(e)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}},8925:(e,t,n)=>{"use strict";n.d(t,{w:()=>r});class i{static{this.Undefined=new i(void 0)}constructor(e){this.element=e,this.next=i.Undefined,this.prev=i.Undefined}}class r{constructor(){this._first=i.Undefined,this._last=i.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===i.Undefined}clear(){let e=this._first;for(;e!==i.Undefined;){const t=e.next;e.prev=i.Undefined,e.next=i.Undefined,e=t}this._first=i.Undefined,this._last=i.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new i(e);if(this._first===i.Undefined)this._first=n,this._last=n;else if(t){const e=this._last;this._last=n,n.prev=e,e.next=n}else{const 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!==i.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==i.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==i.Undefined&&e.next!==i.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===i.Undefined&&e.next===i.Undefined?(this._first=i.Undefined,this._last=i.Undefined):e.next===i.Undefined?(this._last=this._last.prev,this._last.next=i.Undefined):e.prev===i.Undefined&&(this._first=this._first.next,this._first.prev=i.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==i.Undefined;)yield e.element,e=e.next}}},4320:(e,t,n)=>{"use strict";var i,r;n.d(t,{cO:()=>c,db:()=>u,fT:()=>o,qK:()=>h});class s{constructor(e,t){this.uri=e,this.value=t}}class o{static{this.defaultToKey=e=>e.toString()}constructor(e,t){if(this[i]="ResourceMap",e instanceof o)this.map=new Map(e.map),this.toKey=t??o.defaultToKey;else if(function(e){return Array.isArray(e)}(e)){this.map=new Map,this.toKey=t??o.defaultToKey;for(const[t,n]of e)this.set(t,n)}else this.map=new Map,this.toKey=e??o.defaultToKey}set(e,t){return this.map.set(this.toKey(e),new s(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){"undefined"!==typeof t&&(e=e.bind(t));for(const[n,i]of this.map)e(i.value,i.uri,this)}*values(){for(const e of this.map.values())yield e.value}*keys(){for(const e of this.map.values())yield e.uri}*entries(){for(const e of this.map.values())yield[e.uri,e.value]}*[(i=Symbol.toStringTag,Symbol.iterator)](){for(const[,e]of this.map)yield[e.uri,e.value]}}class a{constructor(){this[r]="LinkedMap",this._map=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){const n=this._map.get(e);if(n)return 0!==t&&this.touch(n,t),n.value}set(e,t,n=0){let i=this._map.get(e);if(i)i.value=t,0!==n&&this.touch(i,n);else{switch(i={key:e,value:t,next:void 0,previous:void 0},n){case 0:case 2:default:this.addItemLast(i);break;case 1:this.addItemFirst(i)}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const 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 new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const n=this._state;let i=this._head;for(;i;){if(t?e.bind(t)(i.value,i.key,this):e(i.value,i.key,this),this._state!==n)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.key,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}values(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.value,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}entries(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:[n.key,n.value],done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}[(r=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();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(0===e)return void this.clear();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){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;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 new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,n=e.previous;if(!t||!n)throw new 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 new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;const 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(2===t){if(e===this._tail)return;const 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(){const e=[];return this.forEach(((t,n)=>{e.push([n,t])})),e}fromJSON(e){this.clear();for(const[t,n]of e)this.set(t,n)}}class l extends a{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))}}class h extends l{constructor(e,t=1){super(e,t)}trim(e){this.trimOld(e)}set(e,t){return super.set(e,t),this.checkTrim(),this}}class c{constructor(e){if(this._m1=new Map,this._m2=new Map,e)for(const[t,n]of e)this.set(t,n)}clear(){this._m1.clear(),this._m2.clear()}set(e,t){this._m1.set(e,t),this._m2.set(t,e)}get(e){return this._m1.get(e)}getKey(e){return this._m2.get(e)}delete(e){const t=this._m1.get(e);return void 0!==t&&(this._m1.delete(e),this._m2.delete(t),!0)}keys(){return this._m1.keys()}values(){return this._m1.values()}}class u{constructor(){this.map=new Map}add(e,t){let n=this.map.get(e);n||(n=new Set,this.map.set(e,n)),n.add(t)}delete(e,t){const n=this.map.get(e);n&&(n.delete(t),0===n.size&&this.map.delete(e))}forEach(e,t){const n=this.map.get(e);n&&n.forEach(t)}get(e){const t=this.map.get(e);return t||new Set}}},1939:(e,t,n)=>{"use strict";n.d(t,{K:()=>i});const i=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"})},6456:(e,t,n)=>{"use strict";n.d(t,{ny:()=>i,v$:()=>h,zl:()=>d});var i,r=n(4383),s=n(8067),o=n(1508),a=n(9400),l=n(8821);function h(e,t){return a.r.isUri(e)?(0,o.Q_)(e.scheme,t):(0,o.ns)(e,t+":")}!function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command",e.vscodeRemote="vscode-remote",e.vscodeRemoteResource="vscode-remote-resource",e.vscodeManagedRemoteResource="vscode-managed-remote-resource",e.vscodeUserData="vscode-userdata",e.vscodeCustomEditor="vscode-custom-editor",e.vscodeNotebookCell="vscode-notebook-cell",e.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",e.vscodeNotebookCellMetadataDiff="vscode-notebook-cell-metadata-diff",e.vscodeNotebookCellOutput="vscode-notebook-cell-output",e.vscodeNotebookCellOutputDiff="vscode-notebook-cell-output-diff",e.vscodeNotebookMetadata="vscode-notebook-metadata",e.vscodeInteractiveInput="vscode-interactive-input",e.vscodeSettings="vscode-settings",e.vscodeWorkspaceTrust="vscode-workspace-trust",e.vscodeTerminal="vscode-terminal",e.vscodeChatCodeBlock="vscode-chat-code-block",e.vscodeChatCodeCompareBlock="vscode-chat-code-compare-block",e.vscodeChatSesssion="vscode-chat-editor",e.webviewPanel="webview-panel",e.vscodeWebview="vscode-webview",e.extension="extension",e.vscodeFileResource="vscode-file",e.tmp="tmp",e.vsls="vsls",e.vscodeSourceControl="vscode-scm",e.commentsInput="comment",e.codeSetting="code-setting",e.outputChannel="output"}(i||(i={}));const c=new class{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(e){this._preferredWebSchema=e}get _remoteResourcesPath(){return l.SA.join(this._serverRootPath,i.vscodeRemoteResource)}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(c){return r.dz(c),e}const t=e.authority;let n=this._hosts[t];n&&-1!==n.indexOf(":")&&-1===n.indexOf("[")&&(n=`[${n}]`);const o=this._ports[t],l=this._connectionTokens[t];let h=`path=${encodeURIComponent(e.path)}`;return"string"===typeof l&&(h+=`&tkn=${encodeURIComponent(l)}`),a.r.from({scheme:s.HZ?this._preferredWebSchema:i.vscodeRemoteResource,authority:`${n}:${o}`,path:this._remoteResourcesPath,query:h})}};class u{static{this.FALLBACK_AUTHORITY="vscode-app"}asBrowserUri(e){const t=this.toUri(e);return this.uriToBrowserUri(t)}uriToBrowserUri(e){return e.scheme===i.vscodeRemote?c.rewrite(e):e.scheme!==i.file||!s.ib&&s.lg!==`${i.vscodeFileResource}://${u.FALLBACK_AUTHORITY}`?e:e.with({scheme:i.vscodeFileResource,authority:e.authority||u.FALLBACK_AUTHORITY,query:null,fragment:null})}toUri(e,t){if(a.r.isUri(e))return e;if(globalThis._VSCODE_FILE_ROOT){const t=globalThis._VSCODE_FILE_ROOT;if(/^\w[\w\d+.-]*:\/\//.test(t))return a.r.joinPath(a.r.parse(t,!0),e);const n=l.fj(t,e);return a.r.file(n)}return a.r.parse(t.toUrl(e))}}const d=new u;var g;!function(e){const t=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);e.CoopAndCoep=Object.freeze(t.get("3"));const n="vscode-coi";e.getHeadersFromQuery=function(e){let i;"string"===typeof e?i=new URL(e).searchParams:e instanceof URL?i=e.searchParams:a.r.isUri(e)&&(i=new URL(e.toString(!0)).searchParams);const r=i?.get(n);if(r)return t.get(r)},e.addSearchParam=function(e,t,i){if(!globalThis.crossOriginIsolated)return;const r=t&&i?"3":i?"2":"1";e instanceof URLSearchParams?e.set(n,r):e[n]=r}}(g||(g={}))},146:(e,t,n)=>{"use strict";n.d(t,{V0:()=>r,aI:()=>i,kT:()=>s});Object.prototype.hasOwnProperty;function i(e,t){if(e===t)return!0;if(null===e||void 0===e||null===t||void 0===t)return!1;if(typeof e!==typeof t)return!1;if("object"!==typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;let n,r;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!i(e[n],t[n]))return!1}else{const s=[];for(r in e)s.push(r);s.sort();const o=[];for(r in t)o.push(r);if(o.sort(),!i(s,o))return!1;for(n=0;n<s.length;n++)if(!i(e[s[n]],t[s[n]]))return!1}return!0}function r(e){const t=[];for(const n of function(e){let t=[];for(;Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}(e))"function"===typeof e[n]&&t.push(n);return t}function s(e,t){const n=e=>function(){const n=Array.prototype.slice.call(arguments,0);return t(e,n)},i={};for(const r of e)i[r]=n(r);return i}},8821:(e,t,n)=>{"use strict";n.d(t,{P8:()=>N,pD:()=>E,LC:()=>I,fj:()=>w,S8:()=>y,SA:()=>L,V8:()=>x,hd:()=>S,Vn:()=>T,IN:()=>v});var i=n(8067);let r;const s=globalThis.vscode;if("undefined"!==typeof s&&"undefined"!==typeof s.process){const e=s.process;r={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd:()=>e.cwd()}}else r="undefined"!==typeof process&&"string"===typeof process?.versions?.node?{get platform(){return process.platform},get arch(){return process.arch},get env(){return{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}},cwd:()=>({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}.VSCODE_CWD||process.cwd())}:{get platform(){return i.uF?"win32":i.zx?"darwin":"linux"},get arch(){},get env(){return{}},cwd:()=>"/"};const o=r.cwd,a=(r.env,r.platform),l=46,h=47,c=92,u=58;class d extends Error{constructor(e,t,n){let i;"string"===typeof t&&0===t.indexOf("not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";const r=-1!==e.indexOf(".")?"property":"argument";let s=`The "${e}" ${r} ${i} of type ${t}`;s+=". Received type "+typeof n,super(s),this.code="ERR_INVALID_ARG_TYPE"}}function g(e,t){if("string"!==typeof e)throw new d(t,"string",e)}const f="win32"===a;function m(e){return e===h||e===c}function p(e){return e===h}function _(e){return e>=65&&e<=90||e>=97&&e<=122}function b(e,t,n,i){let r="",s=0,o=-1,a=0,c=0;for(let u=0;u<=e.length;++u){if(u<e.length)c=e.charCodeAt(u);else{if(i(c))break;c=h}if(i(c)){if(o===u-1||1===a);else if(2===a){if(r.length<2||2!==s||r.charCodeAt(r.length-1)!==l||r.charCodeAt(r.length-2)!==l){if(r.length>2){const e=r.lastIndexOf(n);-1===e?(r="",s=0):(r=r.slice(0,e),s=r.length-1-r.lastIndexOf(n)),o=u,a=0;continue}if(0!==r.length){r="",s=0,o=u,a=0;continue}}t&&(r+=r.length>0?`${n}..`:"..",s=2)}else r.length>0?r+=`${n}${e.slice(o+1,u)}`:r=e.slice(o+1,u),s=u-o-1;o=u,a=0}else c===l&&-1!==a?++a:a=-1}return r}function k(e,t){!function(e,t){if(null===e||"object"!==typeof e)throw new d(t,"Object",e)}(t,"pathObject");const n=t.dir||t.root,i=t.base||`${t.name||""}${r=t.ext,r?`${"."===r[0]?"":"."}${r}`:""}`;var r;return n?n===t.root?`${n}${i}`:`${n}${e}${i}`:i}const v={resolve(...e){let t="",n="",i=!1;for(let r=e.length-1;r>=-1;r--){let s;if(r>=0){if(s=e[r],g(s,`paths[${r}]`),0===s.length)continue}else 0===t.length?s=o():(s={NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}[`=${t}`]||o(),(void 0===s||s.slice(0,2).toLowerCase()!==t.toLowerCase()&&s.charCodeAt(2)===c)&&(s=`${t}\\`));const a=s.length;let l=0,h="",d=!1;const f=s.charCodeAt(0);if(1===a)m(f)&&(l=1,d=!0);else if(m(f))if(d=!0,m(s.charCodeAt(1))){let e=2,t=e;for(;e<a&&!m(s.charCodeAt(e));)e++;if(e<a&&e!==t){const n=s.slice(t,e);for(t=e;e<a&&m(s.charCodeAt(e));)e++;if(e<a&&e!==t){for(t=e;e<a&&!m(s.charCodeAt(e));)e++;e!==a&&e===t||(h=`\\\\${n}\\${s.slice(t,e)}`,l=e)}}}else l=1;else _(f)&&s.charCodeAt(1)===u&&(h=s.slice(0,2),l=2,a>2&&m(s.charCodeAt(2))&&(d=!0,l=3));if(h.length>0)if(t.length>0){if(h.toLowerCase()!==t.toLowerCase())continue}else t=h;if(i){if(t.length>0)break}else if(n=`${s.slice(l)}\\${n}`,i=d,d&&t.length>0)break}return n=b(n,!i,"\\",m),i?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){g(e,"path");const t=e.length;if(0===t)return".";let n,i=0,r=!1;const s=e.charCodeAt(0);if(1===t)return p(s)?"\\":e;if(m(s))if(r=!0,m(e.charCodeAt(1))){let r=2,s=r;for(;r<t&&!m(e.charCodeAt(r));)r++;if(r<t&&r!==s){const o=e.slice(s,r);for(s=r;r<t&&m(e.charCodeAt(r));)r++;if(r<t&&r!==s){for(s=r;r<t&&!m(e.charCodeAt(r));)r++;if(r===t)return`\\\\${o}\\${e.slice(s)}\\`;r!==s&&(n=`\\\\${o}\\${e.slice(s,r)}`,i=r)}}}else i=1;else _(s)&&e.charCodeAt(1)===u&&(n=e.slice(0,2),i=2,t>2&&m(e.charCodeAt(2))&&(r=!0,i=3));let o=i<t?b(e.slice(i),!r,"\\",m):"";return 0!==o.length||r||(o="."),o.length>0&&m(e.charCodeAt(t-1))&&(o+="\\"),void 0===n?r?`\\${o}`:o:r?`${n}\\${o}`:`${n}${o}`},isAbsolute(e){g(e,"path");const t=e.length;if(0===t)return!1;const n=e.charCodeAt(0);return m(n)||t>2&&_(n)&&e.charCodeAt(1)===u&&m(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let t,n;for(let s=0;s<e.length;++s){const i=e[s];g(i,"path"),i.length>0&&(void 0===t?t=n=i:t+=`\\${i}`)}if(void 0===t)return".";let i=!0,r=0;if("string"===typeof n&&m(n.charCodeAt(0))){++r;const e=n.length;e>1&&m(n.charCodeAt(1))&&(++r,e>2&&(m(n.charCodeAt(2))?++r:i=!1))}if(i){for(;r<t.length&&m(t.charCodeAt(r));)r++;r>=2&&(t=`\\${t.slice(r)}`)}return v.normalize(t)},relative(e,t){if(g(e,"from"),g(t,"to"),e===t)return"";const n=v.resolve(e),i=v.resolve(t);if(n===i)return"";if((e=n.toLowerCase())===(t=i.toLowerCase()))return"";let r=0;for(;r<e.length&&e.charCodeAt(r)===c;)r++;let s=e.length;for(;s-1>r&&e.charCodeAt(s-1)===c;)s--;const o=s-r;let a=0;for(;a<t.length&&t.charCodeAt(a)===c;)a++;let l=t.length;for(;l-1>a&&t.charCodeAt(l-1)===c;)l--;const h=l-a,u=o<h?o:h;let d=-1,f=0;for(;f<u;f++){const n=e.charCodeAt(r+f);if(n!==t.charCodeAt(a+f))break;n===c&&(d=f)}if(f!==u){if(-1===d)return i}else{if(h>u){if(t.charCodeAt(a+f)===c)return i.slice(a+f+1);if(2===f)return i.slice(a+f)}o>u&&(e.charCodeAt(r+f)===c?d=f:2===f&&(d=3)),-1===d&&(d=0)}let m="";for(f=r+d+1;f<=s;++f)f!==s&&e.charCodeAt(f)!==c||(m+=0===m.length?"..":"\\..");return a+=d,m.length>0?`${m}${i.slice(a,l)}`:(i.charCodeAt(a)===c&&++a,i.slice(a,l))},toNamespacedPath(e){if("string"!==typeof e||0===e.length)return e;const t=v.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===c){if(t.charCodeAt(1)===c){const e=t.charCodeAt(2);if(63!==e&&e!==l)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(_(t.charCodeAt(0))&&t.charCodeAt(1)===u&&t.charCodeAt(2)===c)return`\\\\?\\${t}`;return e},dirname(e){g(e,"path");const t=e.length;if(0===t)return".";let n=-1,i=0;const r=e.charCodeAt(0);if(1===t)return m(r)?e:".";if(m(r)){if(n=i=1,m(e.charCodeAt(1))){let r=2,s=r;for(;r<t&&!m(e.charCodeAt(r));)r++;if(r<t&&r!==s){for(s=r;r<t&&m(e.charCodeAt(r));)r++;if(r<t&&r!==s){for(s=r;r<t&&!m(e.charCodeAt(r));)r++;if(r===t)return e;r!==s&&(n=i=r+1)}}}}else _(r)&&e.charCodeAt(1)===u&&(n=t>2&&m(e.charCodeAt(2))?3:2,i=n);let s=-1,o=!0;for(let a=t-1;a>=i;--a)if(m(e.charCodeAt(a))){if(!o){s=a;break}}else o=!1;if(-1===s){if(-1===n)return".";s=n}return e.slice(0,s)},basename(e,t){void 0!==t&&g(t,"suffix"),g(e,"path");let n,i=0,r=-1,s=!0;if(e.length>=2&&_(e.charCodeAt(0))&&e.charCodeAt(1)===u&&(i=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(n=e.length-1;n>=i;--n){const l=e.charCodeAt(n);if(m(l)){if(!s){i=n+1;break}}else-1===a&&(s=!1,a=n+1),o>=0&&(l===t.charCodeAt(o)?-1===--o&&(r=n):(o=-1,r=a))}return i===r?r=a:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=i;--n)if(m(e.charCodeAt(n))){if(!s){i=n+1;break}}else-1===r&&(s=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname(e){g(e,"path");let t=0,n=-1,i=0,r=-1,s=!0,o=0;e.length>=2&&e.charCodeAt(1)===u&&_(e.charCodeAt(0))&&(t=i=2);for(let a=e.length-1;a>=t;--a){const t=e.charCodeAt(a);if(m(t)){if(!s){i=a+1;break}}else-1===r&&(s=!1,r=a+1),t===l?-1===n?n=a:1!==o&&(o=1):-1!==n&&(o=-1)}return-1===n||-1===r||0===o||1===o&&n===r-1&&n===i+1?"":e.slice(n,r)},format:k.bind(null,"\\"),parse(e){g(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.length;let i=0,r=e.charCodeAt(0);if(1===n)return m(r)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(m(r)){if(i=1,m(e.charCodeAt(1))){let t=2,r=t;for(;t<n&&!m(e.charCodeAt(t));)t++;if(t<n&&t!==r){for(r=t;t<n&&m(e.charCodeAt(t));)t++;if(t<n&&t!==r){for(r=t;t<n&&!m(e.charCodeAt(t));)t++;t===n?i=t:t!==r&&(i=t+1)}}}}else if(_(r)&&e.charCodeAt(1)===u){if(n<=2)return t.root=t.dir=e,t;if(i=2,m(e.charCodeAt(2))){if(3===n)return t.root=t.dir=e,t;i=3}}i>0&&(t.root=e.slice(0,i));let s=-1,o=i,a=-1,h=!0,c=e.length-1,d=0;for(;c>=i;--c)if(r=e.charCodeAt(c),m(r)){if(!h){o=c+1;break}}else-1===a&&(h=!1,a=c+1),r===l?-1===s?s=c:1!==d&&(d=1):-1!==s&&(d=-1);return-1!==a&&(-1===s||0===d||1===d&&s===a-1&&s===o+1?t.base=t.name=e.slice(o,a):(t.name=e.slice(o,s),t.base=e.slice(o,a),t.ext=e.slice(s,a))),t.dir=o>0&&o!==i?e.slice(0,o-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},C=(()=>{if(f){const e=/\\/g;return()=>{const t=o().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>o()})(),L={resolve(...e){let t="",n=!1;for(let i=e.length-1;i>=-1&&!n;i--){const r=i>=0?e[i]:C();g(r,`paths[${i}]`),0!==r.length&&(t=`${r}/${t}`,n=r.charCodeAt(0)===h)}return t=b(t,!n,"/",p),n?`/${t}`:t.length>0?t:"."},normalize(e){if(g(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===h,n=e.charCodeAt(e.length-1)===h;return 0===(e=b(e,!t,"/",p)).length?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute:e=>(g(e,"path"),e.length>0&&e.charCodeAt(0)===h),join(...e){if(0===e.length)return".";let t;for(let n=0;n<e.length;++n){const i=e[n];g(i,"path"),i.length>0&&(void 0===t?t=i:t+=`/${i}`)}return void 0===t?".":L.normalize(t)},relative(e,t){if(g(e,"from"),g(t,"to"),e===t)return"";if((e=L.resolve(e))===(t=L.resolve(t)))return"";const n=e.length,i=n-1,r=t.length-1,s=i<r?i:r;let o=-1,a=0;for(;a<s;a++){const n=e.charCodeAt(1+a);if(n!==t.charCodeAt(1+a))break;n===h&&(o=a)}if(a===s)if(r>s){if(t.charCodeAt(1+a)===h)return t.slice(1+a+1);if(0===a)return t.slice(1+a)}else i>s&&(e.charCodeAt(1+a)===h?o=a:0===a&&(o=0));let l="";for(a=1+o+1;a<=n;++a)a!==n&&e.charCodeAt(a)!==h||(l+=0===l.length?"..":"/..");return`${l}${t.slice(1+o)}`},toNamespacedPath:e=>e,dirname(e){if(g(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===h;let n=-1,i=!0;for(let r=e.length-1;r>=1;--r)if(e.charCodeAt(r)===h){if(!i){n=r;break}}else i=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename(e,t){void 0!==t&&g(t,"ext"),g(e,"path");let n,i=0,r=-1,s=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(n=e.length-1;n>=0;--n){const l=e.charCodeAt(n);if(l===h){if(!s){i=n+1;break}}else-1===a&&(s=!1,a=n+1),o>=0&&(l===t.charCodeAt(o)?-1===--o&&(r=n):(o=-1,r=a))}return i===r?r=a:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===h){if(!s){i=n+1;break}}else-1===r&&(s=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname(e){g(e,"path");let t=-1,n=0,i=-1,r=!0,s=0;for(let o=e.length-1;o>=0;--o){const a=e.charCodeAt(o);if(a!==h)-1===i&&(r=!1,i=o+1),a===l?-1===t?t=o:1!==s&&(s=1):-1!==t&&(s=-1);else if(!r){n=o+1;break}}return-1===t||-1===i||0===s||1===s&&t===i-1&&t===n+1?"":e.slice(t,i)},format:k.bind(null,"/"),parse(e){g(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.charCodeAt(0)===h;let i;n?(t.root="/",i=1):i=0;let r=-1,s=0,o=-1,a=!0,c=e.length-1,u=0;for(;c>=i;--c){const t=e.charCodeAt(c);if(t!==h)-1===o&&(a=!1,o=c+1),t===l?-1===r?r=c:1!==u&&(u=1):-1!==r&&(u=-1);else if(!a){s=c+1;break}}if(-1!==o){const i=0===s&&n?1:s;-1===r||0===u||1===u&&r===o-1&&r===s+1?t.base=t.name=e.slice(i,o):(t.name=e.slice(i,r),t.base=e.slice(i,o),t.ext=e.slice(r,o))}return s>0?t.dir=e.slice(0,s-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};L.win32=v.win32=v,L.posix=v.posix=L;const y=f?v.normalize:L.normalize,w=f?v.join:L.join,S=f?v.resolve:L.resolve,x=f?v.relative:L.relative,E=f?v.dirname:L.dirname,N=f?v.basename:L.basename,I=f?v.extname:L.extname,T=f?v.sep:L.sep},8067:(e,t,n)=>{"use strict";n.d(t,{H8:()=>P,HZ:()=>I,OS:()=>M,UP:()=>W,_p:()=>R,cm:()=>F,gm:()=>z,ib:()=>N,j9:()=>E,lg:()=>T,nr:()=>V,uF:()=>S,zx:()=>x});var i=n(8209);const r="en";let s,o,a=!1,l=!1,h=!1,c=!1,u=!1,d=!1,g=!1,f=!1,m=!1,p=!1,_=null,b=null,k=null;const v=globalThis;let C;"undefined"!==typeof v.vscode&&"undefined"!==typeof v.vscode.process?C=v.vscode.process:"undefined"!==typeof process&&"string"===typeof process?.versions?.node&&(C=process);const L="string"===typeof C?.versions?.electron,y=L&&"renderer"===C?.type;if("object"===typeof C){a="win32"===C.platform,l="darwin"===C.platform,h="linux"===C.platform,c=h&&!!C.env.SNAP&&!!C.env.SNAP_REVISION,g=L,m=!!C.env.CI||!!C.env.BUILD_ARTIFACTSTAGINGDIRECTORY,s=r,_=r;const e=C.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e);s=t.userLocale,b=t.osLocale,_=t.resolvedLanguage||r,k=t.languagePack?.translationsConfigFile}catch(q){}u=!0}else"object"!==typeof navigator||y?console.error("Unable to resolve platform."):(o=navigator.userAgent,a=o.indexOf("Windows")>=0,l=o.indexOf("Macintosh")>=0,f=(o.indexOf("Macintosh")>=0||o.indexOf("iPad")>=0||o.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,h=o.indexOf("Linux")>=0,p=o?.indexOf("Mobi")>=0,d=!0,_=i.i8()||r,s=navigator.language.toLowerCase(),b=s);let w=0;l?w=1:a?w=3:h&&(w=2);const S=a,x=l,E=h,N=u,I=d,T=d&&"function"===typeof v.importScripts?v.origin:void 0,A=o,D="function"===typeof v.postMessage&&!v.importScripts,R=(()=>{if(D){const e=[];v.addEventListener("message",(t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let n=0,i=e.length;n<i;n++){const i=e[n];if(i.id===t.data.vscodeScheduleAsyncWork)return e.splice(n,1),void i.callback()}}));let t=0;return n=>{const i=++t;e.push({id:i,callback:n}),v.postMessage({vscodeScheduleAsyncWork:i},"*")}}return e=>setTimeout(e)})(),M=l||f?2:a?1:3;let O=!0,B=!1;function F(){if(!B){B=!0;const e=new Uint8Array(2);e[0]=1,e[1]=2;const t=new Uint16Array(e.buffer);O=513===t[0]}return O}const P=!!(A&&A.indexOf("Chrome")>=0),z=!!(A&&A.indexOf("Firefox")>=0),V=!!(!P&&A&&A.indexOf("Safari")>=0),W=!!(A&&A.indexOf("Edg/")>=0);A&&A.indexOf("Android")},9403:(e,t,n)=>{"use strict";n.d(t,{B6:()=>m,P8:()=>d});var i=n(9326),r=n(6456),s=n(8821),o=n(8067),a=n(1508),l=n(9400);function h(e){return(0,l.I)(e,!0)}class c{constructor(e){this._ignorePathCasing=e}compare(e,t,n=!1){return e===t?0:(0,a.UD)(this.getComparisonKey(e,n),this.getComparisonKey(t,n))}isEqual(e,t,n=!1){return e===t||!(!e||!t)&&this.getComparisonKey(e,n)===this.getComparisonKey(t,n)}getComparisonKey(e,t=!1){return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:t?null:void 0}).toString()}isEqualOrParent(e,t,n=!1){if(e.scheme===t.scheme){if(e.scheme===r.ny.file)return i._1(h(e),h(t),this._ignorePathCasing(e))&&e.query===t.query&&(n||e.fragment===t.fragment);if(g(e.authority,t.authority))return i._1(e.path,t.path,this._ignorePathCasing(e),"/")&&e.query===t.query&&(n||e.fragment===t.fragment)}return!1}joinPath(e,...t){return l.r.joinPath(e,...t)}basenameOrAuthority(e){return d(e)||e.authority}basename(e){return s.SA.basename(e.path)}extname(e){return s.SA.extname(e.path)}dirname(e){if(0===e.path.length)return e;let t;return e.scheme===r.ny.file?t=l.r.file(s.pD(h(e))).path:(t=s.SA.dirname(e.path),e.authority&&t.length&&47!==t.charCodeAt(0)&&(console.error(`dirname("${e.toString})) resulted in a relative path`),t="/")),e.with({path:t})}normalizePath(e){if(!e.path.length)return e;let t;return t=e.scheme===r.ny.file?l.r.file(s.S8(h(e))).path:s.SA.normalize(e.path),e.with({path:t})}relativePath(e,t){if(e.scheme!==t.scheme||!g(e.authority,t.authority))return;if(e.scheme===r.ny.file){const n=s.V8(h(e),h(t));return o.uF?i.TH(n):n}let n=e.path||"/";const a=t.path||"/";if(this._ignorePathCasing(e)){let e=0;for(const t=Math.min(n.length,a.length);e<t&&(n.charCodeAt(e)===a.charCodeAt(e)||n.charAt(e).toLowerCase()===a.charAt(e).toLowerCase());e++);n=a.substr(0,e)+n.substr(e)}return s.SA.relative(n,a)}resolvePath(e,t){if(e.scheme===r.ny.file){const n=l.r.file(s.hd(h(e),t));return e.with({authority:n.authority,path:n.path})}return t=i.kb(t),e.with({path:s.SA.resolve(e.path,t)})}isAbsolutePath(e){return!!e.path&&"/"===e.path[0]}isEqualAuthority(e,t){return e===t||void 0!==e&&void 0!==t&&(0,a.Q_)(e,t)}hasTrailingPathSeparator(e,t=s.Vn){if(e.scheme===r.ny.file){const n=h(e);return n.length>i.Zn(n).length&&n[n.length-1]===t}{const t=e.path;return t.length>1&&47===t.charCodeAt(t.length-1)&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}}removeTrailingPathSeparator(e,t=s.Vn){return f(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e,t=s.Vn){let n=!1;if(e.scheme===r.ny.file){const r=h(e);n=void 0!==r&&r.length===i.Zn(r).length&&r[r.length-1]===t}else{t="/";const i=e.path;n=1===i.length&&47===i.charCodeAt(i.length-1)}return n||f(e,t)?e:e.with({path:e.path+"/"})}}const u=new c((()=>!1)),d=(new c((e=>e.scheme!==r.ny.file||!o.j9)),new c((e=>!0)),u.isEqual.bind(u),u.isEqualOrParent.bind(u),u.getComparisonKey.bind(u),u.basenameOrAuthority.bind(u),u.basename.bind(u)),g=(u.extname.bind(u),u.dirname.bind(u),u.joinPath.bind(u),u.normalizePath.bind(u),u.relativePath.bind(u),u.resolvePath.bind(u),u.isAbsolutePath.bind(u),u.isEqualAuthority.bind(u)),f=u.hasTrailingPathSeparator.bind(u);u.removeTrailingPathSeparator.bind(u),u.addTrailingPathSeparator.bind(u);var m;!function(e){e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=function(t){const n=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach((e=>{const[t,i]=e.split(":");t&&i&&n.set(t,i)}));const i=t.path.substring(0,t.path.indexOf(";"));return i&&n.set(e.META_DATA_MIME,i),n}}(m||(m={}))},8381:(e,t,n)=>{"use strict";n.d(t,{W:()=>r});const i=globalThis.performance&&"function"===typeof globalThis.performance.now;class r{static create(e){return new r(e)}constructor(e){this._now=i&&!1===e?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}}},1508:(e,t,n)=>{"use strict";n.d(t,{$X:()=>D,AV:()=>s,E_:()=>N,HG:()=>d,LJ:()=>L,LU:()=>B,NB:()=>l,OS:()=>h,Q_:()=>k,Ss:()=>M,UD:()=>f,Wv:()=>b,Z5:()=>w,_J:()=>A,aC:()=>T,bm:()=>a,eY:()=>c,jy:()=>o,km:()=>x,lT:()=>g,ne:()=>R,ns:()=>v,pc:()=>C,r_:()=>O,tk:()=>F,tl:()=>V,uz:()=>u,y_:()=>W,z_:()=>y});var i=n(1788),r=n(1090);function s(e){return!e||"string"!==typeof e||0===e.trim().length}function o(e){return e.replace(/[<>"'&]/g,(e=>{switch(e){case"<":return"<";case">":return">";case'"':return""";case"'":return"'";case"&":return"&"}return e}))}function a(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function l(e,t){if(!e||!t)return e;const n=t.length;if(0===n||0===e.length)return e;let i=0;for(;e.indexOf(t,i)===i;)i+=n;return e.substring(i)}function h(e,t,n={}){if(!e)throw new Error("Cannot create regex from empty string");t||(e=a(e)),n.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));let i="";return n.global&&(i+="g"),n.matchCase||(i+="i"),n.multiline&&(i+="m"),n.unicode&&(i+="u"),new RegExp(e,i)}function c(e){if("^"===e.source||"^$"===e.source||"$"===e.source||"^\\s*$"===e.source)return!1;return!(!e.exec("")||0!==e.lastIndex)}function u(e){return e.split(/\r\n|\r|\n/)}function d(e){for(let t=0,n=e.length;t<n;t++){const n=e.charCodeAt(t);if(32!==n&&9!==n)return t}return-1}function g(e,t=e.length-1){for(let n=t;n>=0;n--){const t=e.charCodeAt(n);if(32!==t&&9!==t)return n}return-1}function f(e,t){return e<t?-1:e>t?1:0}function m(e,t,n=0,i=e.length,r=0,s=t.length){for(;n<i&&r<s;n++,r++){const i=e.charCodeAt(n),s=t.charCodeAt(r);if(i<s)return-1;if(i>s)return 1}const o=i-n,a=s-r;return o<a?-1:o>a?1:0}function p(e,t,n=0,i=e.length,r=0,s=t.length){for(;n<i&&r<s;n++,r++){let o=e.charCodeAt(n),a=t.charCodeAt(r);if(o===a)continue;if(o>=128||a>=128)return m(e.toLowerCase(),t.toLowerCase(),n,i,r,s);_(o)&&(o-=32),_(a)&&(a-=32);const l=o-a;if(0!==l)return l}const o=i-n,a=s-r;return o<a?-1:o>a?1:0}function _(e){return e>=97&&e<=122}function b(e){return e>=65&&e<=90}function k(e,t){return e.length===t.length&&0===p(e,t)}function v(e,t){const n=t.length;return!(t.length>e.length)&&0===p(e,t,0,n)}function C(e){return 55296<=e&&e<=56319}function L(e){return 56320<=e&&e<=57343}function y(e,t){return t-56320+(e-55296<<10)+65536}function w(e,t,n){const i=e.charCodeAt(n);if(C(i)&&n+1<t){const t=e.charCodeAt(n+1);if(L(t))return y(i,t)}return i}class S{get offset(){return this._offset}constructor(e,t=0){this._str=e,this._len=e.length,this._offset=t}setOffset(e){this._offset=e}prevCodePoint(){const e=function(e,t){const n=e.charCodeAt(t-1);if(L(n)&&t>1){const i=e.charCodeAt(t-2);if(C(i))return y(i,n)}return n}(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){const e=w(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class x{get offset(){return this._iterator.offset}constructor(e,t=0){this._iterator=new S(e,t)}nextGraphemeLength(){const e=z.getInstance(),t=this._iterator,n=t.offset;let i=e.getGraphemeBreakType(t.nextCodePoint());for(;!t.eol();){const n=t.offset,r=e.getGraphemeBreakType(t.nextCodePoint());if(P(i,r)){t.setOffset(n);break}i=r}return t.offset-n}prevGraphemeLength(){const e=z.getInstance(),t=this._iterator,n=t.offset;let i=e.getGraphemeBreakType(t.prevCodePoint());for(;t.offset>0;){const n=t.offset,r=e.getGraphemeBreakType(t.prevCodePoint());if(P(r,i)){t.setOffset(n);break}i=r}return n-t.offset}eol(){return this._iterator.eol()}}let E;function N(e){return E||(E=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/),E.test(e)}const I=/^[\t\n\r\x20-\x7E]*$/;function T(e){return I.test(e)}const A=/[\u2028\u2029]/;function D(e){return A.test(e)}function R(e){return e>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function M(e){return e>=127462&&e<=127487||8986===e||8987===e||9200===e||9203===e||e>=9728&&e<=10175||11088===e||11093===e||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129008||e>=129280&&e<=129535||e>=129648&&e<=129782}const O=String.fromCharCode(65279);function B(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}function F(e){return(e%=52)<26?String.fromCharCode(97+e):String.fromCharCode(65+e-26)}function P(e,t){return 0===e?5!==t&&7!==t:(2!==e||3!==t)&&(4===e||2===e||3===e||(4===t||2===t||3===t||(8!==e||8!==t&&9!==t&&11!==t&&12!==t)&&((11!==e&&9!==e||9!==t&&10!==t)&&((12!==e&&10!==e||10!==t)&&(5!==t&&13!==t&&(7!==t&&(1!==e&&((13!==e||14!==t)&&(6!==e||6!==t)))))))))}class z{static{this._INSTANCE=null}static getInstance(){return z._INSTANCE||(z._INSTANCE=new z),z._INSTANCE}constructor(){this._data=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]")}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;const t=this._data,n=t.length/3;let i=1;for(;i<=n;)if(e<t[3*i])i*=2;else{if(!(e>t[3*i+1]))return t[3*i+2];i=2*i+1}return 0}}class V{static{this.ambiguousCharacterData=new r.d((()=>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,8218,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,8242,96,1370,96,1523,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,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,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,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,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,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,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,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,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,71922,67,71913,67,65315,67,8557,67,8450,67,8493,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,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,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,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,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,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,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,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,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,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,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,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,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,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,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,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,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,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,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,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,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,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,71919,87,71910,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,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,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,66293,90,71909,90,65338,90,8484,90,8488,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,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,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,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,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,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,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,65283,35,65292,44,65307,59],"ko":[8211,45,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,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,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,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[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,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,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,65283,35,65307,59]}')))}static{this.cache=new i.o5({getCacheKey:JSON.stringify},(e=>{function t(e){const t=new Map;for(let n=0;n<e.length;n+=2)t.set(e[n],e[n+1]);return t}function n(e,t){if(!e)return t;const n=new Map;for(const[i,r]of e)t.has(i)&&n.set(i,r);return n}const i=this.ambiguousCharacterData.value;let r,s=e.filter((e=>!e.startsWith("_")&&e in i));0===s.length&&(s=["_default"]);for(const a of s){r=n(r,t(i[a]))}const o=function(e,t){const n=new Map(e);for(const[i,r]of t)n.set(i,r);return n}(t(i._common),r);return new V(o)}))}static getInstance(e){return V.cache.get(Array.from(e))}static{this._locales=new r.d((()=>Object.keys(V.ambiguousCharacterData.value).filter((e=>!e.startsWith("_")))))}static getLocales(){return V._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())}}class W{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,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,12288,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]")}static{this._data=void 0}static getData(){return this._data||(this._data=new Set(W.getRawData())),this._data}static isInvisibleCharacter(e){return W.getData().has(e)}static get codePoints(){return W.getData()}}},631:(e,t,n)=>{"use strict";function i(e){return"string"===typeof e}function r(e){return"object"===typeof e&&null!==e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function s(e){return"undefined"===typeof e}function o(e){return s(e)||null===e}n.d(t,{Gv:()=>r,Kg:()=>i,b0:()=>s,z:()=>o})},5152:(e,t,n)=>{"use strict";function i(e){return e<0?0:e>255?255:0|e}function r(e){return e<0?0:e>4294967295?4294967295:0|e}n.d(t,{W:()=>i,j:()=>r})},9400:(e,t,n)=>{"use strict";n.d(t,{I:()=>_,r:()=>u});var i=n(8821),r=n(8067);const s=/^\w[\w\d+.-]*$/,o=/^\//,a=/^\/\//;const l="",h="/",c=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class u{static isUri(e){return e instanceof u||!!e&&("string"===typeof e.authority&&"string"===typeof e.fragment&&"string"===typeof e.path&&"string"===typeof e.query&&"string"===typeof e.scheme&&"string"===typeof e.fsPath&&"function"===typeof e.with&&"function"===typeof e.toString)}constructor(e,t,n,i,r,c=!1){"object"===typeof e?(this.scheme=e.scheme||l,this.authority=e.authority||l,this.path=e.path||l,this.query=e.query||l,this.fragment=e.fragment||l):(this.scheme=function(e,t){return e||t?e:"file"}(e,c),this.authority=t||l,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==h&&(t=h+t):t=h}return t}(this.scheme,n||l),this.query=i||l,this.fragment=r||l,function(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!s.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!o.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(a.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,c))}get fsPath(){return _(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:i,query:r,fragment:s}=e;return void 0===t?t=this.scheme:null===t&&(t=l),void 0===n?n=this.authority:null===n&&(n=l),void 0===i?i=this.path:null===i&&(i=l),void 0===r?r=this.query:null===r&&(r=l),void 0===s?s=this.fragment:null===s&&(s=l),t===this.scheme&&n===this.authority&&i===this.path&&r===this.query&&s===this.fragment?this:new g(t,n,i,r,s)}static parse(e,t=!1){const n=c.exec(e);return n?new g(n[2]||l,C(n[4]||l),C(n[5]||l),C(n[7]||l),C(n[9]||l),t):new g(l,l,l,l,l)}static file(e){let t=l;if(r.uF&&(e=e.replace(/\\/g,h)),e[0]===h&&e[1]===h){const n=e.indexOf(h,2);-1===n?(t=e.substring(2),e=h):(t=e.substring(2,n),e=e.substring(n)||h)}return new g("file",t,e,l,l)}static from(e,t){return new g(e.scheme,e.authority,e.path,e.query,e.fragment,t)}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let n;return n=r.uF&&"file"===e.scheme?u.file(i.IN.join(_(e,!0),...t)).path:i.SA.join(e.path,...t),e.with({path:n})}toString(e=!1){return b(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof u)return e;{const t=new g(e);return t._formatted=e.external??null,t._fsPath=e._sep===d?e.fsPath??null:null,t}}return e}}const d=r.uF?1:void 0;class g extends u{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=_(this,!1)),this._fsPath}toString(e=!1){return e?b(this,!0):(this._formatted||(this._formatted=b(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=d),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}}const f={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 m(e,t,n){let i,r=-1;for(let s=0;s<e.length;s++){const o=e.charCodeAt(s);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o||n&&91===o||n&&93===o||n&&58===o)-1!==r&&(i+=encodeURIComponent(e.substring(r,s)),r=-1),void 0!==i&&(i+=e.charAt(s));else{void 0===i&&(i=e.substr(0,s));const t=f[o];void 0!==t?(-1!==r&&(i+=encodeURIComponent(e.substring(r,s)),r=-1),i+=t):-1===r&&(r=s)}}return-1!==r&&(i+=encodeURIComponent(e.substring(r))),void 0!==i?i:e}function p(e){let t;for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);35===i||63===i?(void 0===t&&(t=e.substr(0,n)),t+=f[i]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function _(e,t){let n;return n=e.authority&&e.path.length>1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,r.uF&&(n=n.replace(/\//g,"\\")),n}function b(e,t){const n=t?p:m;let i="",{scheme:r,authority:s,path:o,query:a,fragment:l}=e;if(r&&(i+=r,i+=":"),(s||"file"===r)&&(i+=h,i+=h),s){let e=s.indexOf("@");if(-1!==e){const t=s.substr(0,e);s=s.substr(e+1),e=t.lastIndexOf(":"),-1===e?i+=n(t,!1,!1):(i+=n(t.substr(0,e),!1,!1),i+=":",i+=n(t.substr(e+1),!1,!0)),i+="@"}s=s.toLowerCase(),e=s.lastIndexOf(":"),-1===e?i+=n(s,!1,!0):(i+=n(s.substr(0,e),!1,!0),i+=s.substr(e))}if(o){if(o.length>=3&&47===o.charCodeAt(0)&&58===o.charCodeAt(2)){const e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&58===o.charCodeAt(1)){const e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}i+=n(o,!0,!1)}return a&&(i+="?",i+=n(a,!1,!1)),l&&(i+="#",i+=t?l:m(l,!1,!1)),i}function k(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+k(e.substr(3)):e}}const v=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function C(e){return e.match(v)?e.replace(v,(e=>k(e))):e}},1929:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SimpleWorkerClient:()=>k,SimpleWorkerServer:()=>L,create:()=>y,logOnceWebWorkerWarning:()=>d});var i=n(4383),r=n(1234),s=n(1484),o=n(6456),a=n(8067),l=n(1508);const h="default",c="$initialize";let u=!1;function d(e){a.HZ&&(u||(u=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(e.message))}class g{constructor(e,t,n,i,r){this.vsWorker=e,this.req=t,this.channel=n,this.method=i,this.args=r,this.type=0}}class f{constructor(e,t,n,i){this.vsWorker=e,this.seq=t,this.res=n,this.err=i,this.type=1}}class m{constructor(e,t,n,i,r){this.vsWorker=e,this.req=t,this.channel=n,this.eventName=i,this.arg=r,this.type=2}}class p{constructor(e,t,n){this.vsWorker=e,this.req=t,this.event=n,this.type=3}}class _{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class b{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,t,n){const i=String(++this._lastSentReq);return new Promise(((r,s)=>{this._pendingReplies[i]={resolve:r,reject:s},this._send(new g(this._workerId,i,e,t,n))}))}listen(e,t,n){let i=null;const s=new r.vl({onWillAddFirstListener:()=>{i=String(++this._lastSentReq),this._pendingEmitters.set(i,s),this._send(new m(this._workerId,i,e,t,n))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(i),this._send(new _(this._workerId,i)),i=null}});return s.event}handleMessage(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))}createProxyToRemoteChannel(e,t){const n={get:(n,i)=>("string"!==typeof i||n[i]||(C(i)?n[i]=t=>this.listen(e,i,t):v(i)?n[i]=this.listen(e,i,void 0):36===i.charCodeAt(0)&&(n[i]=async(...n)=>(await(t?.()),this.sendMessage(e,i,n)))),n[i])};return new Proxy(Object.create(null),n)}_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])return void console.warn("Got reply to unknown seq");const t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let n=e.err;return e.err.$isError&&(n=new Error,n.name=e.err.name,n.message=e.err.message,n.stack=e.err.stack),void t.reject(n)}t.resolve(e.res)}_handleRequestMessage(e){const t=e.req;this._handler.handleMessage(e.channel,e.method,e.args).then((e=>{this._send(new f(this._workerId,t,e,void 0))}),(e=>{e.detail instanceof Error&&(e.detail=(0,i.cU)(e.detail)),this._send(new f(this._workerId,t,void 0,(0,i.cU)(e)))}))}_handleSubscribeEventMessage(e){const t=e.req,n=this._handler.handleEvent(e.channel,e.eventName,e.arg)((e=>{this._send(new p(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){const t=[];if(0===e.type)for(let n=0;n<e.args.length;n++)e.args[n]instanceof ArrayBuffer&&t.push(e.args[n]);else 1===e.type&&e.res instanceof ArrayBuffer&&t.push(e.res);this._handler.sendMessage(e,t)}}class k extends s.jG{constructor(e,t){super(),this._localChannels=new Map,this._worker=this._register(e.create({amdModuleId:"vs/base/common/worker/simpleWorker",esmModuleLocation:t.esmModuleLocation,label:t.label},(e=>{this._protocol.handleMessage(e)}),(e=>{(0,i.dz)(e)}))),this._protocol=new b({sendMessage:(e,t)=>{this._worker.postMessage(e,t)},handleMessage:(e,t,n)=>this._handleMessage(e,t,n),handleEvent:(e,t,n)=>this._handleEvent(e,t,n)}),this._protocol.setWorkerId(this._worker.getId());let n=null;const r=globalThis.require;"undefined"!==typeof r&&"function"===typeof r.getConfig?n=r.getConfig():"undefined"!==typeof globalThis.requirejs&&(n=globalThis.requirejs.s.contexts._.config),this._onModuleLoaded=this._protocol.sendMessage(h,c,[this._worker.getId(),JSON.parse(JSON.stringify(n)),t.amdModuleId]),this.proxy=this._protocol.createProxyToRemoteChannel(h,(async()=>{await this._onModuleLoaded})),this._onModuleLoaded.catch((e=>{this._onError("Worker failed to load "+t.amdModuleId,e)}))}_handleMessage(e,t,n){const i=this._localChannels.get(e);if(!i)return Promise.reject(new Error(`Missing channel ${e} on main thread`));if("function"!==typeof i[t])return Promise.reject(new Error(`Missing method ${t} on main thread channel ${e}`));try{return Promise.resolve(i[t].apply(i,n))}catch(r){return Promise.reject(r)}}_handleEvent(e,t,n){const i=this._localChannels.get(e);if(!i)throw new Error(`Missing channel ${e} on main thread`);if(C(t)){const r=i[t].call(i,n);if("function"!==typeof r)throw new Error(`Missing dynamic event ${t} on main thread channel ${e}.`);return r}if(v(t)){const n=i[t];if("function"!==typeof n)throw new Error(`Missing event ${t} on main thread channel ${e}.`);return n}throw new Error(`Malformed event name ${t}`)}setChannel(e,t){this._localChannels.set(e,t)}_onError(e,t){console.error(e),console.info(t)}}function v(e){return"o"===e[0]&&"n"===e[1]&&l.Wv(e.charCodeAt(2))}function C(e){return/^onDynamic/.test(e)&&l.Wv(e.charCodeAt(9))}class L{constructor(e,t){this._localChannels=new Map,this._remoteChannels=new Map,this._requestHandlerFactory=t,this._requestHandler=null,this._protocol=new b({sendMessage:(t,n)=>{e(t,n)},handleMessage:(e,t,n)=>this._handleMessage(e,t,n),handleEvent:(e,t,n)=>this._handleEvent(e,t,n)})}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,t,n){if(e===h&&t===c)return this.initialize(n[0],n[1],n[2]);const i=e===h?this._requestHandler:this._localChannels.get(e);if(!i)return Promise.reject(new Error(`Missing channel ${e} on worker thread`));if("function"!==typeof i[t])return Promise.reject(new Error(`Missing method ${t} on worker thread channel ${e}`));try{return Promise.resolve(i[t].apply(i,n))}catch(r){return Promise.reject(r)}}_handleEvent(e,t,n){const i=e===h?this._requestHandler:this._localChannels.get(e);if(!i)throw new Error(`Missing channel ${e} on worker thread`);if(C(t)){const e=i[t].call(i,n);if("function"!==typeof e)throw new Error(`Missing dynamic event ${t} on request handler.`);return e}if(v(t)){const e=i[t];if("function"!==typeof e)throw new Error(`Missing event ${t} on request handler.`);return e}throw new Error(`Malformed event name ${t}`)}getChannel(e){if(!this._remoteChannels.has(e)){const t=this._protocol.createProxyToRemoteChannel(e);this._remoteChannels.set(e,t)}return this._remoteChannels.get(e)}async initialize(e,t,i){if(this._protocol.setWorkerId(e),!this._requestHandlerFactory){t&&("undefined"!==typeof t.baseUrl&&delete t.baseUrl,"undefined"!==typeof t.paths&&"undefined"!==typeof t.paths.vs&&delete t.paths.vs,"undefined"!==typeof t.trustedTypesPolicy&&delete t.trustedTypesPolicy,t.catchError=!0,globalThis.require.config(t));{const e=o.zl.asBrowserUri(`${i}.js`).toString(!0);return n(5890)(`${e}`).then((e=>{if(this._requestHandler=e.create(this),!this._requestHandler)throw new Error("No RequestHandler!")}))}}this._requestHandler=this._requestHandlerFactory(this)}}function y(e){return new L(e,null)}},534:(e,t,n)=>{"use strict";n.d(t,{V:()=>r});var i=n(5152);class r{constructor(e){const t=(0,i.W)(e);this._defaultValue=t,this._asciiMap=r._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){const t=new Uint8Array(256);return t.fill(e),t}set(e,t){const n=(0,i.W)(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()}}},7119:(e,t,n)=>{"use strict";n.d(t,{AQ:()=>_,aZ:()=>p,l5:()=>C,lQ:()=>k,s7:()=>w,sH:()=>L,sN:()=>b,ss:()=>v,yI:()=>m,zp:()=>y});var i=n(8209),r=n(7661),s=n(5845),o=n(5724);const a=(0,s.x1A)("editor.lineHighlightBackground",null,i.kg("lineHighlight","Background color for the highlight of line at the cursor position.")),l=((0,s.x1A)("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hcDark:"#f38518",hcLight:s.b1q},i.kg("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),(0,s.x1A)("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hcDark:null,hcLight:null},i.kg("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1A)("editor.rangeHighlightBorder",{dark:null,light:null,hcDark:s.buw,hcLight:s.buw},i.kg("rangeHighlightBorder","Background color of the border around highlighted ranges.")),(0,s.x1A)("editor.symbolHighlightBackground",{dark:s.Ubg,light:s.Ubg,hcDark:null,hcLight:null},i.kg("symbolHighlight","Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1A)("editor.symbolHighlightBorder",{dark:null,light:null,hcDark:s.buw,hcLight:s.buw},i.kg("symbolHighlightBorder","Background color of the border around highlighted symbols.")),(0,s.x1A)("editorCursor.foreground",{dark:"#AEAFAD",light:r.Q1.black,hcDark:r.Q1.white,hcLight:"#0F4A85"},i.kg("caret","Color of the editor cursor."))),h=(0,s.x1A)("editorCursor.background",null,i.kg("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),c=((0,s.x1A)("editorMultiCursor.primary.foreground",l,i.kg("editorMultiCursorPrimaryForeground","Color of the primary editor cursor when multiple cursors are present.")),(0,s.x1A)("editorMultiCursor.primary.background",h,i.kg("editorMultiCursorPrimaryBackground","The background color of the primary editor cursor when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),(0,s.x1A)("editorMultiCursor.secondary.foreground",l,i.kg("editorMultiCursorSecondaryForeground","Color of secondary editor cursors when multiple cursors are present.")),(0,s.x1A)("editorMultiCursor.secondary.background",h,i.kg("editorMultiCursorSecondaryBackground","The background color of secondary editor cursors when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),(0,s.x1A)("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hcDark:"#e3e4e229",hcLight:"#CCCCCC"},i.kg("editorWhitespaces","Color of whitespace characters in the editor."))),u=((0,s.x1A)("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hcDark:r.Q1.white,hcLight:"#292929"},i.kg("editorLineNumbers","Color of editor line numbers.")),(0,s.x1A)("editorIndentGuide.background",c,i.kg("editorIndentGuides","Color of the editor indentation guides."),!1,i.kg("deprecatedEditorIndentGuides","'editorIndentGuide.background' is deprecated. Use 'editorIndentGuide.background1' instead."))),d=(0,s.x1A)("editorIndentGuide.activeBackground",c,i.kg("editorActiveIndentGuide","Color of the active editor indentation guides."),!1,i.kg("deprecatedEditorActiveIndentGuide","'editorIndentGuide.activeBackground' is deprecated. Use 'editorIndentGuide.activeBackground1' instead.")),g=((0,s.x1A)("editorIndentGuide.background1",u,i.kg("editorIndentGuides1","Color of the editor indentation guides (1).")),(0,s.x1A)("editorIndentGuide.background2","#00000000",i.kg("editorIndentGuides2","Color of the editor indentation guides (2).")),(0,s.x1A)("editorIndentGuide.background3","#00000000",i.kg("editorIndentGuides3","Color of the editor indentation guides (3).")),(0,s.x1A)("editorIndentGuide.background4","#00000000",i.kg("editorIndentGuides4","Color of the editor indentation guides (4).")),(0,s.x1A)("editorIndentGuide.background5","#00000000",i.kg("editorIndentGuides5","Color of the editor indentation guides (5).")),(0,s.x1A)("editorIndentGuide.background6","#00000000",i.kg("editorIndentGuides6","Color of the editor indentation guides (6).")),(0,s.x1A)("editorIndentGuide.activeBackground1",d,i.kg("editorActiveIndentGuide1","Color of the active editor indentation guides (1).")),(0,s.x1A)("editorIndentGuide.activeBackground2","#00000000",i.kg("editorActiveIndentGuide2","Color of the active editor indentation guides (2).")),(0,s.x1A)("editorIndentGuide.activeBackground3","#00000000",i.kg("editorActiveIndentGuide3","Color of the active editor indentation guides (3).")),(0,s.x1A)("editorIndentGuide.activeBackground4","#00000000",i.kg("editorActiveIndentGuide4","Color of the active editor indentation guides (4).")),(0,s.x1A)("editorIndentGuide.activeBackground5","#00000000",i.kg("editorActiveIndentGuide5","Color of the active editor indentation guides (5).")),(0,s.x1A)("editorIndentGuide.activeBackground6","#00000000",i.kg("editorActiveIndentGuide6","Color of the active editor indentation guides (6).")),(0,s.x1A)("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hcDark:s.buw,hcLight:s.buw},i.kg("editorActiveLineNumber","Color of editor active line number"),!1,i.kg("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead."))),f=((0,s.x1A)("editorLineNumber.activeForeground",g,i.kg("editorActiveLineNumber","Color of editor active line number")),(0,s.x1A)("editorLineNumber.dimmedForeground",null,i.kg("editorDimmedLineNumber","Color of the final editor line when editor.renderFinalNewline is set to dimmed.")),(0,s.x1A)("editorRuler.foreground",{dark:"#5A5A5A",light:r.Q1.lightgrey,hcDark:r.Q1.white,hcLight:"#292929"},i.kg("editorRuler","Color of the editor rulers.")),(0,s.x1A)("editorCodeLens.foreground",{dark:"#999999",light:"#919191",hcDark:"#999999",hcLight:"#292929"},i.kg("editorCodeLensForeground","Foreground color of editor CodeLens")),(0,s.x1A)("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hcDark:"#0064001a",hcLight:"#0000"},i.kg("editorBracketMatchBackground","Background color behind matching brackets")),(0,s.x1A)("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hcDark:s.b1q,hcLight:s.b1q},i.kg("editorBracketMatchBorder","Color for matching brackets boxes")),(0,s.x1A)("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hcDark:"#7f7f7f4d",hcLight:"#666666"},i.kg("editorOverviewRulerBorder","Color of the overview ruler border.")),(0,s.x1A)("editorOverviewRuler.background",null,i.kg("editorOverviewRulerBackground","Background color of the editor overview ruler.")),(0,s.x1A)("editorGutter.background",s.YtV,i.kg("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),(0,s.x1A)("editorUnnecessaryCode.border",{dark:null,light:null,hcDark:r.Q1.fromHex("#fff").transparent(.8),hcLight:s.b1q},i.kg("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),(0,s.x1A)("editorUnnecessaryCode.opacity",{dark:r.Q1.fromHex("#000a"),light:r.Q1.fromHex("#0007"),hcDark:null,hcLight:null},i.kg("unnecessaryCodeOpacity","Opacity of unnecessary (unused) source code in the editor. For example, \"#000000c0\" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out.")),(0,s.x1A)("editorGhostText.border",{dark:null,light:null,hcDark:r.Q1.fromHex("#fff").transparent(.8),hcLight:r.Q1.fromHex("#292929").transparent(.8)},i.kg("editorGhostTextBorder","Border color of ghost text in the editor.")),(0,s.x1A)("editorGhostText.foreground",{dark:r.Q1.fromHex("#ffffff56"),light:r.Q1.fromHex("#0007"),hcDark:null,hcLight:null},i.kg("editorGhostTextForeground","Foreground color of the ghost text in the editor.")),(0,s.x1A)("editorGhostText.background",null,i.kg("editorGhostTextBackground","Background color of the ghost text in the editor.")),new r.Q1(new r.bU(0,122,204,.6))),m=((0,s.x1A)("editorOverviewRuler.rangeHighlightForeground",f,i.kg("overviewRulerRangeHighlight","Overview ruler marker color for range highlights. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1A)("editorOverviewRuler.errorForeground",{dark:new r.Q1(new r.bU(255,18,18,.7)),light:new r.Q1(new r.bU(255,18,18,.7)),hcDark:new r.Q1(new r.bU(255,50,50,1)),hcLight:"#B5200D"},i.kg("overviewRuleError","Overview ruler marker color for errors."))),p=(0,s.x1A)("editorOverviewRuler.warningForeground",{dark:s.Hng,light:s.Hng,hcDark:s.Stt,hcLight:s.Stt},i.kg("overviewRuleWarning","Overview ruler marker color for warnings.")),_=(0,s.x1A)("editorOverviewRuler.infoForeground",{dark:s.pOz,light:s.pOz,hcDark:s.IIb,hcLight:s.IIb},i.kg("overviewRuleInfo","Overview ruler marker color for infos.")),b=(0,s.x1A)("editorBracketHighlight.foreground1",{dark:"#FFD700",light:"#0431FAFF",hcDark:"#FFD700",hcLight:"#0431FAFF"},i.kg("editorBracketHighlightForeground1","Foreground color of brackets (1). Requires enabling bracket pair colorization.")),k=(0,s.x1A)("editorBracketHighlight.foreground2",{dark:"#DA70D6",light:"#319331FF",hcDark:"#DA70D6",hcLight:"#319331FF"},i.kg("editorBracketHighlightForeground2","Foreground color of brackets (2). Requires enabling bracket pair colorization.")),v=(0,s.x1A)("editorBracketHighlight.foreground3",{dark:"#179FFF",light:"#7B3814FF",hcDark:"#87CEFA",hcLight:"#7B3814FF"},i.kg("editorBracketHighlightForeground3","Foreground color of brackets (3). Requires enabling bracket pair colorization.")),C=(0,s.x1A)("editorBracketHighlight.foreground4","#00000000",i.kg("editorBracketHighlightForeground4","Foreground color of brackets (4). Requires enabling bracket pair colorization.")),L=(0,s.x1A)("editorBracketHighlight.foreground5","#00000000",i.kg("editorBracketHighlightForeground5","Foreground color of brackets (5). Requires enabling bracket pair colorization.")),y=(0,s.x1A)("editorBracketHighlight.foreground6","#00000000",i.kg("editorBracketHighlightForeground6","Foreground color of brackets (6). Requires enabling bracket pair colorization.")),w=(0,s.x1A)("editorBracketHighlight.unexpectedBracket.foreground",{dark:new r.Q1(new r.bU(255,18,18,.8)),light:new r.Q1(new r.bU(255,18,18,.8)),hcDark:"new Color(new RGBA(255, 50, 50, 1))",hcLight:"#B5200D"},i.kg("editorBracketHighlightUnexpectedBracketForeground","Foreground color of unexpected brackets."));(0,s.x1A)("editorBracketPairGuide.background1","#00000000",i.kg("editorBracketPairGuide.background1","Background color of inactive bracket pair guides (1). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background2","#00000000",i.kg("editorBracketPairGuide.background2","Background color of inactive bracket pair guides (2). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background3","#00000000",i.kg("editorBracketPairGuide.background3","Background color of inactive bracket pair guides (3). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background4","#00000000",i.kg("editorBracketPairGuide.background4","Background color of inactive bracket pair guides (4). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background5","#00000000",i.kg("editorBracketPairGuide.background5","Background color of inactive bracket pair guides (5). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background6","#00000000",i.kg("editorBracketPairGuide.background6","Background color of inactive bracket pair guides (6). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground1","#00000000",i.kg("editorBracketPairGuide.activeBackground1","Background color of active bracket pair guides (1). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground2","#00000000",i.kg("editorBracketPairGuide.activeBackground2","Background color of active bracket pair guides (2). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground3","#00000000",i.kg("editorBracketPairGuide.activeBackground3","Background color of active bracket pair guides (3). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground4","#00000000",i.kg("editorBracketPairGuide.activeBackground4","Background color of active bracket pair guides (4). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground5","#00000000",i.kg("editorBracketPairGuide.activeBackground5","Background color of active bracket pair guides (5). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground6","#00000000",i.kg("editorBracketPairGuide.activeBackground6","Background color of active bracket pair guides (6). Requires enabling bracket pair guides.")),(0,s.x1A)("editorUnicodeHighlight.border",s.Hng,i.kg("editorUnicodeHighlight.border","Border color used to highlight unicode characters.")),(0,s.x1A)("editorUnicodeHighlight.background",s.whs,i.kg("editorUnicodeHighlight.background","Background color used to highlight unicode characters."));(0,o.zy)(((e,t)=>{const n=e.getColor(s.YtV),i=e.getColor(a),r=i&&!i.isTransparent()?i:n;r&&t.addRule(`.monaco-editor .inputarea.ime-input { background-color: ${r}; }`)}))},4454:(e,t,n)=>{"use strict";function i(e){let t=0,n=0,i=0,r=0;for(let s=0,o=e.length;s<o;s++){const a=e.charCodeAt(s);13===a?(0===t&&(n=s),t++,s+1<o&&10===e.charCodeAt(s+1)?(r|=2,s++):r|=3,i=s+1):10===a&&(r|=1,0===t&&(n=s),t++,i=s+1)}return 0===t&&(n=e.length),[t,n,e.length-i,r]}n.d(t,{W:()=>i})},6571:(e,t,n)=>{"use strict";n.d(t,{M:()=>a,S:()=>l});var i=n(4383),r=n(4444),s=n(6677),o=n(6041);class a{static fromRangeInclusive(e){return new a(e.startLineNumber,e.endLineNumber+1)}static joinMany(e){if(0===e.length)return[];let t=new l(e[0].slice());for(let n=1;n<e.length;n++)t=t.getUnion(new l(e[n].slice()));return t.ranges}static join(e){if(0===e.length)throw new i.D7("lineRanges cannot be empty");let t=e[0].startLineNumber,n=e[0].endLineNumberExclusive;for(let i=1;i<e.length;i++)t=Math.min(t,e[i].startLineNumber),n=Math.max(n,e[i].endLineNumberExclusive);return new a(t,n)}static ofLength(e,t){return new a(e,e+t)}static deserialize(e){return new a(e[0],e[1])}constructor(e,t){if(e>t)throw new i.D7(`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(e){return new a(this.startLineNumber+e,this.endLineNumberExclusive+e)}deltaLength(e){return new a(this.startLineNumber,this.endLineNumberExclusive+e)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(e){return new a(Math.min(this.startLineNumber,e.startLineNumber),Math.max(this.endLineNumberExclusive,e.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(e){const t=Math.max(this.startLineNumber,e.startLineNumber),n=Math.min(this.endLineNumberExclusive,e.endLineNumberExclusive);if(t<=n)return new a(t,n)}intersectsStrict(e){return this.startLineNumber<e.endLineNumberExclusive&&e.startLineNumber<this.endLineNumberExclusive}overlapOrTouch(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 s.Q(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new s.Q(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(e){const 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]}includes(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}toOffsetRange(){return new r.L(this.startLineNumber-1,this.endLineNumberExclusive-1)}}class l{constructor(e=[]){this._normalizedRanges=e}get ranges(){return this._normalizedRanges}addRange(e){if(0===e.length)return;const t=(0,o.hw)(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),n=(0,o.iM)(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===n)this._normalizedRanges.splice(t,0,e);else if(t===n-1){const n=this._normalizedRanges[t];this._normalizedRanges[t]=n.join(e)}else{const i=this._normalizedRanges[t].join(this._normalizedRanges[n-1]).join(e);this._normalizedRanges.splice(t,n-t,i)}}contains(e){const t=(0,o.lx)(this._normalizedRanges,(t=>t.startLineNumber<=e));return!!t&&t.endLineNumberExclusive>e}intersects(e){const t=(0,o.lx)(this._normalizedRanges,(t=>t.startLineNumber<e.endLineNumberExclusive));return!!t&&t.endLineNumberExclusive>e.startLineNumber}getUnion(e){if(0===this._normalizedRanges.length)return e;if(0===e._normalizedRanges.length)return this;const t=[];let n=0,i=0,r=null;for(;n<this._normalizedRanges.length||i<e._normalizedRanges.length;){let s=null;if(n<this._normalizedRanges.length&&i<e._normalizedRanges.length){const t=this._normalizedRanges[n],r=e._normalizedRanges[i];t.startLineNumber<r.startLineNumber?(s=t,n++):(s=r,i++)}else n<this._normalizedRanges.length?(s=this._normalizedRanges[n],n++):(s=e._normalizedRanges[i],i++);null===r?r=s:r.endLineNumberExclusive>=s.startLineNumber?r=new a(r.startLineNumber,Math.max(r.endLineNumberExclusive,s.endLineNumberExclusive)):(t.push(r),r=s)}return null!==r&&t.push(r),new l(t)}subtractFrom(e){const t=(0,o.hw)(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),n=(0,o.iM)(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===n)return new l([e]);const i=[];let r=e.startLineNumber;for(let s=t;s<n;s++){const e=this._normalizedRanges[s];e.startLineNumber>r&&i.push(new a(r,e.startLineNumber)),r=e.endLineNumberExclusive}return r<e.endLineNumberExclusive&&i.push(new a(r,e.endLineNumberExclusive)),new l(i)}toString(){return this._normalizedRanges.map((e=>e.toString())).join(", ")}getIntersection(e){const t=[];let n=0,i=0;for(;n<this._normalizedRanges.length&&i<e._normalizedRanges.length;){const r=this._normalizedRanges[n],s=e._normalizedRanges[i],o=r.intersect(s);o&&!o.isEmpty&&t.push(o),r.endLineNumberExclusive<s.endLineNumberExclusive?n++:i++}return new l(t)}getWithDelta(e){return new l(this._normalizedRanges.map((t=>t.delta(e))))}}},4444:(e,t,n)=>{"use strict";n.d(t,{L:()=>r});var i=n(4383);class r{static addRange(e,t){let n=0;for(;n<t.length&&t[n].endExclusive<e.start;)n++;let i=n;for(;i<t.length&&t[i].start<=e.endExclusive;)i++;if(n===i)t.splice(n,0,e);else{const s=Math.min(e.start,t[n].start),o=Math.max(e.endExclusive,t[i-1].endExclusive);t.splice(n,i-n,new r(s,o))}}static tryCreate(e,t){if(!(e>t))return new r(e,t)}static ofLength(e){return new r(0,e)}static ofStartAndLength(e,t){return new r(e,e+t)}constructor(e,t){if(this.start=e,this.endExclusive=t,e>t)throw new i.D7(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new r(this.start+e,this.endExclusive+e)}deltaStart(e){return new r(this.start+e,this.endExclusive)}deltaEnd(e){return new r(this.start,this.endExclusive+e)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}contains(e){return this.start<=e&&e<this.endExclusive}join(e){return new r(Math.min(this.start,e.start),Math.max(this.endExclusive,e.endExclusive))}intersect(e){const t=Math.max(this.start,e.start),n=Math.min(this.endExclusive,e.endExclusive);if(t<=n)return new r(t,n)}intersects(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 i.D7(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,e))}clipCyclic(e){if(this.isEmpty)throw new i.D7(`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)}}},3069:(e,t,n)=>{"use strict";n.d(t,{y:()=>i});class i{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new i(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return i.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return i.isBefore(this,e)}static isBefore(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column}isBeforeOrEqual(e){return i.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<=t.column}static compare(e,t){const n=0|e.lineNumber,i=0|t.lineNumber;if(n===i){return(0|e.column)-(0|t.column)}return n-i}clone(){return new i(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new i(e.lineNumber,e.column)}static isIPosition(e){return e&&"number"===typeof e.lineNumber&&"number"===typeof e.column}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}}},6677:(e,t,n)=>{"use strict";n.d(t,{Q:()=>r});var i=n(3069);class r{constructor(e,t,n,i){e>n||e===n&&t>i?(this.startLineNumber=n,this.startColumn=i,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=i)}isEmpty(){return r.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return r.containsPosition(this,e)}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(e){return r.containsRange(this,e)}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(e){return r.strictContainsRange(this,e)}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(e){return r.plusRange(this,e)}static plusRange(e,t){let n,i,s,o;return t.startLineNumber<e.startLineNumber?(n=t.startLineNumber,i=t.startColumn):t.startLineNumber===e.startLineNumber?(n=t.startLineNumber,i=Math.min(t.startColumn,e.startColumn)):(n=e.startLineNumber,i=e.startColumn),t.endLineNumber>e.endLineNumber?(s=t.endLineNumber,o=t.endColumn):t.endLineNumber===e.endLineNumber?(s=t.endLineNumber,o=Math.max(t.endColumn,e.endColumn)):(s=e.endLineNumber,o=e.endColumn),new r(n,i,s,o)}intersectRanges(e){return r.intersectRanges(this,e)}static intersectRanges(e,t){let n=e.startLineNumber,i=e.startColumn,s=e.endLineNumber,o=e.endColumn;const a=t.startLineNumber,l=t.startColumn,h=t.endLineNumber,c=t.endColumn;return n<a?(n=a,i=l):n===a&&(i=Math.max(i,l)),s>h?(s=h,o=c):s===h&&(o=Math.min(o,c)),n>s||n===s&&i>o?null:new r(n,i,s,o)}equalsRange(e){return r.equalsRange(this,e)}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 r.getEndPosition(this)}static getEndPosition(e){return new i.y(e.endLineNumber,e.endColumn)}getStartPosition(){return r.getStartPosition(this)}static getStartPosition(e){return new i.y(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new r(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new r(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return r.collapseToStart(this)}static collapseToStart(e){return new r(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return r.collapseToEnd(this)}static collapseToEnd(e){return new r(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new r(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,t=e){return new r(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new r(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"===typeof e.startLineNumber&&"number"===typeof e.startColumn&&"number"===typeof e.endLineNumber&&"number"===typeof e.endColumn}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 compareRangesUsingStarts(e,t){if(e&&t){const n=0|e.startLineNumber,i=0|t.startLineNumber;if(n===i){const n=0|e.startColumn,i=0|t.startColumn;if(n===i){const n=0|e.endLineNumber,i=0|t.endLineNumber;if(n===i){return(0|e.endColumn)-(0|t.endColumn)}return n-i}return n-i}return n-i}return(e?1:0)-(t?1:0)}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}}},5326:(e,t,n)=>{"use strict";n.d(t,{L:()=>s});var i=n(3069),r=n(6677);class s extends r.Q{constructor(e,t,n,i){super(e,t,n,i),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=n,this.positionColumn=i}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return s.selectionsEqual(this,e)}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(e,t){return 0===this.getDirection()?new s(this.startLineNumber,this.startColumn,e,t):new s(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new i.y(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new i.y(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return 0===this.getDirection()?new s(e,t,this.endLineNumber,this.endColumn):new s(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new s(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return 0===t?new s(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new s(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new s(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.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,i=e.length;n<i;n++)if(!this.selectionsEqual(e[n],t[n]))return!1;return!0}static isISelection(e){return e&&"number"===typeof e.selectionStartLineNumber&&"number"===typeof e.selectionStartColumn&&"number"===typeof e.positionLineNumber&&"number"===typeof e.positionColumn}static createWithDirection(e,t,n,i,r){return 0===r?new s(e,t,n,i):new s(n,i,e,t)}}},973:(e,t,n)=>{"use strict";n.d(t,{W:()=>s});var i=n(3069),r=n(6677);class s{static{this.zero=new s(0,0)}static betweenPositions(e,t){return e.lineNumber===t.lineNumber?new s(0,t.column-e.column):new s(t.lineNumber-e.lineNumber,t.column-1)}static ofRange(e){return s.betweenPositions(e.getStartPosition(),e.getEndPosition())}static ofText(e){let t=0,n=0;for(const i of e)"\n"===i?(t++,n=0):n++;return new s(t,n)}constructor(e,t){this.lineCount=e,this.columnCount=t}isGreaterThanOrEqualTo(e){return this.lineCount!==e.lineCount?this.lineCount>e.lineCount:this.columnCount>=e.columnCount}createRange(e){return 0===this.lineCount?new r.Q(e.lineNumber,e.column,e.lineNumber,e.column+this.columnCount):new r.Q(e.lineNumber,e.column,e.lineNumber+this.lineCount,this.columnCount+1)}addToPosition(e){return 0===this.lineCount?new i.y(e.lineNumber,e.column+this.columnCount):new i.y(e.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}}},6486:(e,t,n)=>{"use strict";n.d(t,{Io:()=>o,Ld:()=>s,Th:()=>l});var i=n(2522),r=n(8925);const s=function(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const n of"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?")e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}();function o(e){let t=s;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}const a=new r.w;function l(e,t,n,r,s){if(t=o(t),s||(s=i.f.first(a)),n.length>s.maxLen){let i=e-s.maxLen/2;return i<0?i=0:r+=i,l(e,t,n=n.substring(i,e+s.maxLen/2),r,s)}const c=Date.now(),u=e-1-r;let d=-1,g=null;for(let i=1;!(Date.now()-c>=s.timeBudget);i++){const e=u-s.windowSize*i;t.lastIndex=Math.max(0,e);const r=h(t,n,u,d);if(!r&&g)break;if(g=r,e<=0)break;d=e}if(g){const e={word:g[0],startColumn:r+1+g.index,endColumn:r+1+g.index+g[0].length};return t.lastIndex=0,e}return null}function h(e,t,n,i){let r;for(;r=e.exec(t);){const t=r.index||0;if(t<=n&&e.lastIndex>=n)return r;if(i>0&&t>i)return null}return null}a.unshift({maxLen:1e3,windowSize:15,timeBudget:150})},5982:(e,t,n)=>{"use strict";n.d(t,{x:()=>i});class i{static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return 0!==(1024&e)}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(16744448&e)>>>15}static getBackground(e){return(4278190080&e)>>>24}static getClassNameFromMetadata(e){let t="mtk"+this.getForeground(e);const n=this.getFontStyle(e);return 1&n&&(t+=" mtki"),2&n&&(t+=" mtkb"),4&n&&(t+=" mtku"),8&n&&(t+=" mtks"),t}static getInlineStyleFromMetadata(e,t){const n=this.getForeground(e),i=this.getFontStyle(e);let r=`color: ${t[n]};`;1&i&&(r+="font-style: italic;"),2&i&&(r+="font-weight: bold;");let s="";return 4&i&&(s+=" underline"),8&i&&(s+=" line-through"),s&&(r+=`text-decoration:${s};`),r}static getPresentationFromMetadata(e){const t=this.getForeground(e),n=this.getFontStyle(e);return{foreground:t,italic:Boolean(1&n),bold:Boolean(2&n),underline:Boolean(4&n),strikethrough:Boolean(8&n)}}}},2083:(e,t,n)=>{"use strict";n.d(t,{rY:()=>p,ou:()=>m,dG:()=>y,OB:()=>w});var i=n(9493),r=(n(9400),n(1234)),s=n(1484);class o{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new r.vl,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]),(0,s.s)((()=>{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();const n=new a(this,e,t);return this._factories.set(e,n),(0,s.s)((()=>{const t=this._factories.get(e);t&&t===n&&(this._factories.delete(e),t.dispose())}))}async getOrCreate(e){const t=this.get(e);if(t)return t;const n=this._factories.get(e);return!n||n.isResolved?null:(await n.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;const 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}}class a extends s.jG{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._resolvePromise=this._create()),this._resolvePromise}async _create(){const e=await this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}}var l,h,c,u,d,g,f=n(8209);class m{constructor(e,t,n){this.offset=e,this.type=t,this.language=n,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}class p{constructor(e,t){this.tokens=e,this.endState=t,this._encodedTokenizationResultBrand=void 0}}!function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(l||(l={})),function(e){const t=new Map;t.set(0,i.W.symbolMethod),t.set(1,i.W.symbolFunction),t.set(2,i.W.symbolConstructor),t.set(3,i.W.symbolField),t.set(4,i.W.symbolVariable),t.set(5,i.W.symbolClass),t.set(6,i.W.symbolStruct),t.set(7,i.W.symbolInterface),t.set(8,i.W.symbolModule),t.set(9,i.W.symbolProperty),t.set(10,i.W.symbolEvent),t.set(11,i.W.symbolOperator),t.set(12,i.W.symbolUnit),t.set(13,i.W.symbolValue),t.set(15,i.W.symbolEnum),t.set(14,i.W.symbolConstant),t.set(15,i.W.symbolEnum),t.set(16,i.W.symbolEnumMember),t.set(17,i.W.symbolKeyword),t.set(27,i.W.symbolSnippet),t.set(18,i.W.symbolText),t.set(19,i.W.symbolColor),t.set(20,i.W.symbolFile),t.set(21,i.W.symbolReference),t.set(22,i.W.symbolCustomColor),t.set(23,i.W.symbolFolder),t.set(24,i.W.symbolTypeParameter),t.set(25,i.W.account),t.set(26,i.W.issues),e.toIcon=function(e){let n=t.get(e);return n||(console.info("No codicon found for CompletionItemKind "+e),n=i.W.symbolProperty),n};const n=new Map;n.set("method",0),n.set("function",1),n.set("constructor",2),n.set("field",3),n.set("variable",4),n.set("class",5),n.set("struct",6),n.set("interface",7),n.set("module",8),n.set("property",9),n.set("event",10),n.set("operator",11),n.set("unit",12),n.set("value",13),n.set("constant",14),n.set("enum",15),n.set("enum-member",16),n.set("enumMember",16),n.set("keyword",17),n.set("snippet",27),n.set("text",18),n.set("color",19),n.set("file",20),n.set("reference",21),n.set("customcolor",22),n.set("folder",23),n.set("type-parameter",24),n.set("typeParameter",24),n.set("account",25),n.set("issue",26),e.fromString=function(e,t){let i=n.get(e);return"undefined"!==typeof i||t||(i=9),i}}(h||(h={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(c||(c={}));!function(e){e[e.Automatic=0]="Automatic",e[e.PasteAs=1]="PasteAs"}(u||(u={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(d||(d={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(g||(g={}));(0,f.kg)("Array","array"),(0,f.kg)("Boolean","boolean"),(0,f.kg)("Class","class"),(0,f.kg)("Constant","constant"),(0,f.kg)("Constructor","constructor"),(0,f.kg)("Enum","enumeration"),(0,f.kg)("EnumMember","enumeration member"),(0,f.kg)("Event","event"),(0,f.kg)("Field","field"),(0,f.kg)("File","file"),(0,f.kg)("Function","function"),(0,f.kg)("Interface","interface"),(0,f.kg)("Key","key"),(0,f.kg)("Method","method"),(0,f.kg)("Module","module"),(0,f.kg)("Namespace","namespace"),(0,f.kg)("Null","null"),(0,f.kg)("Number","number"),(0,f.kg)("Object","object"),(0,f.kg)("Operator","operator"),(0,f.kg)("Package","package"),(0,f.kg)("Property","property"),(0,f.kg)("String","string"),(0,f.kg)("Struct","struct"),(0,f.kg)("TypeParameter","type parameter"),(0,f.kg)("Variable","variable");var _,b,k,v,C;!function(e){const t=new Map;t.set(0,i.W.symbolFile),t.set(1,i.W.symbolModule),t.set(2,i.W.symbolNamespace),t.set(3,i.W.symbolPackage),t.set(4,i.W.symbolClass),t.set(5,i.W.symbolMethod),t.set(6,i.W.symbolProperty),t.set(7,i.W.symbolField),t.set(8,i.W.symbolConstructor),t.set(9,i.W.symbolEnum),t.set(10,i.W.symbolInterface),t.set(11,i.W.symbolFunction),t.set(12,i.W.symbolVariable),t.set(13,i.W.symbolConstant),t.set(14,i.W.symbolString),t.set(15,i.W.symbolNumber),t.set(16,i.W.symbolBoolean),t.set(17,i.W.symbolArray),t.set(18,i.W.symbolObject),t.set(19,i.W.symbolKey),t.set(20,i.W.symbolNull),t.set(21,i.W.symbolEnumMember),t.set(22,i.W.symbolStruct),t.set(23,i.W.symbolEvent),t.set(24,i.W.symbolOperator),t.set(25,i.W.symbolTypeParameter),e.toIcon=function(e){let n=t.get(e);return n||(console.info("No codicon found for SymbolKind "+e),n=i.W.symbolProperty),n}}(_||(_={}));class L{static{this.Comment=new L("comment")}static{this.Imports=new L("imports")}static{this.Region=new L("region")}static fromValue(e){switch(e){case"comment":return L.Comment;case"imports":return L.Imports;case"region":return L.Region}return new L(e)}constructor(e){this.value=e}}!function(e){e[e.AIGenerated=1]="AIGenerated"}(b||(b={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(k||(k={})),function(e){e.is=function(e){return!(!e||"object"!==typeof e)&&("string"===typeof e.id&&"string"===typeof e.title)}}(v||(v={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(C||(C={}));const y=new o,w=new o;var S;!function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(S||(S={}))},154:(e,t,n)=>{"use strict";n.d(t,{L:()=>i});const i=(0,n(3591).u1)("languageService")},3941:(e,t,n)=>{"use strict";n.d(t,{W6:()=>l,vH:()=>h});var i=n(8209),r=n(1234),s=n(6359),o=n(1939),a=n(1646);const l=new class{constructor(){this._onDidChangeLanguages=new r.vl,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[]}registerLanguage(e){return this._languages.push(e),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let t=0,n=this._languages.length;t<n;t++)if(this._languages[t]===e)return void this._languages.splice(t,1)}}}getLanguages(){return this._languages}};s.O.add("editor.modesRegistry",l);const h="plaintext";l.registerLanguage({id:h,extensions:[".txt"],aliases:[i.kg("plainText.alias","Plain Text"),"text"],mimetypes:[o.K.text]}),s.O.as(a.Fd.Configuration).registerDefaultConfigurations([{overrides:{"[plaintext]":{"editor.unicodeHighlight.ambiguousCharacters":!1,"editor.unicodeHighlight.invisibleCharacters":!1}}}])},6223:(e,t,n)=>{"use strict";n.d(t,{A5:()=>i,Dg:()=>l,F4:()=>d,L5:()=>u,Wo:()=>c,X2:()=>a,ZS:()=>r,nk:()=>h,vd:()=>g});var i,r,s,o=n(146);!function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(i||(i={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(r||(r={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(s||(s={}));class a{get originalIndentSize(){return this._indentSizeIsTabSize?"tabSize":this.indentSize}constructor(e){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,0|e.tabSize),"tabSize"===e.indentSize?(this.indentSize=this.tabSize,this._indentSizeIsTabSize=!0):(this.indentSize=Math.max(1,0|e.indentSize),this._indentSizeIsTabSize=!1),this.insertSpaces=Boolean(e.insertSpaces),this.defaultEOL=0|e.defaultEOL,this.trimAutoWhitespace=Boolean(e.trimAutoWhitespace),this.bracketPairColorizationOptions=e.bracketPairColorizationOptions}equals(e){return this.tabSize===e.tabSize&&this._indentSizeIsTabSize===e._indentSizeIsTabSize&&this.indentSize===e.indentSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace&&(0,o.aI)(this.bracketPairColorizationOptions,e.bracketPairColorizationOptions)}createChangeEvent(e){return{tabSize:this.tabSize!==e.tabSize,indentSize:this.indentSize!==e.indentSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}}}class l{constructor(e,t){this._findMatchBrand=void 0,this.range=e,this.matches=t}}function h(e){return e&&"function"===typeof e.read}class c{constructor(e,t,n,i,r,s){this.identifier=e,this.range=t,this.text=n,this.forceMoveMarkers=i,this.isAutoWhitespaceEdit=r,this._isTracked=s}}class u{constructor(e,t,n){this.regex=e,this.wordSeparators=t,this.simpleSearch=n}}class d{constructor(e,t,n){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=n}}function g(e){return!e.isTooLargeForSyncing()&&!e.isForSimpleWidget}},7729:(e,t,n)=>{"use strict";n.d(t,{lt:()=>u,W5:()=>p,hB:()=>f,dr:()=>d,wC:()=>m});var i=n(1508),r=n(4320),s=n(534);class o extends s.V{constructor(e,t){super(0),this._segmenter=null,this._cachedLine=null,this._cachedSegments=[],this.intlSegmenterLocales=t,this.intlSegmenterLocales.length>0?this._segmenter=new Intl.Segmenter(this.intlSegmenterLocales,{granularity:"word"}):this._segmenter=null;for(let n=0,i=e.length;n<i;n++)this.set(e.charCodeAt(n),2);this.set(32,1),this.set(9,1)}findPrevIntlWordBeforeOrAtOffset(e,t){let n=null;for(const i of this._getIntlSegmenterWordsOnLine(e)){if(i.index>t)break;n=i}return n}findNextIntlWordAtOrAfterOffset(e,t){for(const n of this._getIntlSegmenterWordsOnLine(e))if(!(n.index<t))return n;return null}_getIntlSegmenterWordsOnLine(e){return this._segmenter?(this._cachedLine===e||(this._cachedLine=e,this._cachedSegments=this._filterWordSegments(this._segmenter.segment(e))),this._cachedSegments):[]}_filterWordSegments(e){const t=[];for(const n of e)this._isWordLike(n)&&t.push(n);return t}_isWordLike(e){return!!e.isWordLike}}const a=new r.qK(10);var l=n(3069),h=n(6677),c=n(6223);class u{constructor(e,t,n,i){this.searchString=e,this.isRegex=t,this.matchCase=n,this.wordSeparators=i}parseSearchRequest(){if(""===this.searchString)return null;let e;e=this.isRegex?function(e){if(!e||0===e.length)return!1;for(let t=0,n=e.length;t<n;t++){const i=e.charCodeAt(t);if(10===i)return!0;if(92===i){if(t++,t>=n)break;const i=e.charCodeAt(t);if(110===i||114===i||87===i)return!0}}return!1}(this.searchString):this.searchString.indexOf("\n")>=0;let t=null;try{t=i.OS(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0,unicode:!0})}catch(r){return null}if(!t)return null;let n=!this.isRegex&&!e;return n&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(n=this.matchCase),new c.L5(t,this.wordSeparators?function(e,t){const n=`${e}/${t.join(",")}`;let i=a.get(n);return i||(i=new o(e,t),a.set(n,i)),i}(this.wordSeparators,[]):null,n?this.searchString:null)}}function d(e,t,n){if(!n)return new c.Dg(e,null);const i=[];for(let r=0,s=t.length;r<s;r++)i[r]=t[r];return new c.Dg(e,i)}class g{constructor(e){const t=[];let n=0;for(let i=0,r=e.length;i<r;i++)10===e.charCodeAt(i)&&(t[n++]=i);this._lineFeedsOffsets=t}findLineFeedCountBeforeOffset(e){const t=this._lineFeedsOffsets;let n=0,i=t.length-1;if(-1===i)return 0;if(e<=t[0])return 0;for(;n<i;){const r=n+((i-n)/2|0);t[r]>=e?i=r-1:t[r+1]>=e?(n=r,i=r):n=r+1}return n+1}}class f{static findMatches(e,t,n,i,r){const s=t.parseSearchRequest();return s?s.regex.multiline?this._doFindMatchesMultiline(e,n,new p(s.wordSeparators,s.regex),i,r):this._doFindMatchesLineByLine(e,n,s,i,r):[]}static _getMultilineMatchRange(e,t,n,i,r,s){let o,a,l=0;if(i?(l=i.findLineFeedCountBeforeOffset(r),o=t+r+l):o=t+r,i){const e=i.findLineFeedCountBeforeOffset(r+s.length)-l;a=o+s.length+e}else a=o+s.length;const c=e.getPositionAt(o),u=e.getPositionAt(a);return new h.Q(c.lineNumber,c.column,u.lineNumber,u.column)}static _doFindMatchesMultiline(e,t,n,i,r){const s=e.getOffsetAt(t.getStartPosition()),o=e.getValueInRange(t,1),a="\r\n"===e.getEOL()?new g(o):null,l=[];let h,c=0;for(n.reset(0);h=n.next(o);)if(l[c++]=d(this._getMultilineMatchRange(e,s,o,a,h.index,h[0]),h,i),c>=r)return l;return l}static _doFindMatchesLineByLine(e,t,n,i,r){const s=[];let o=0;if(t.startLineNumber===t.endLineNumber){const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return o=this._findMatchesInLine(n,a,t.startLineNumber,t.startColumn-1,o,s,i,r),s}const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);o=this._findMatchesInLine(n,a,t.startLineNumber,t.startColumn-1,o,s,i,r);for(let l=t.startLineNumber+1;l<t.endLineNumber&&o<r;l++)o=this._findMatchesInLine(n,e.getLineContent(l),l,0,o,s,i,r);if(o<r){const a=e.getLineContent(t.endLineNumber).substring(0,t.endColumn-1);o=this._findMatchesInLine(n,a,t.endLineNumber,0,o,s,i,r)}return s}static _findMatchesInLine(e,t,n,i,r,s,o,a){const l=e.wordSeparators;if(!o&&e.simpleSearch){const o=e.simpleSearch,u=o.length,d=t.length;let g=-u;for(;-1!==(g=t.indexOf(o,g+u));)if((!l||m(l,t,d,g,u))&&(s[r++]=new c.Dg(new h.Q(n,g+1+i,n,g+1+u+i),null),r>=a))return r;return r}const u=new p(e.wordSeparators,e.regex);let g;u.reset(0);do{if(g=u.next(t),g&&(s[r++]=d(new h.Q(n,g.index+1+i,n,g.index+1+g[0].length+i),g,o),r>=a))return r}while(g);return r}static findNextMatch(e,t,n,i){const r=t.parseSearchRequest();if(!r)return null;const s=new p(r.wordSeparators,r.regex);return r.regex.multiline?this._doFindNextMatchMultiline(e,n,s,i):this._doFindNextMatchLineByLine(e,n,s,i)}static _doFindNextMatchMultiline(e,t,n,i){const r=new l.y(t.lineNumber,1),s=e.getOffsetAt(r),o=e.getLineCount(),a=e.getValueInRange(new h.Q(r.lineNumber,r.column,o,e.getLineMaxColumn(o)),1),c="\r\n"===e.getEOL()?new g(a):null;n.reset(t.column-1);const u=n.next(a);return u?d(this._getMultilineMatchRange(e,s,a,c,u.index,u[0]),u,i):1!==t.lineNumber||1!==t.column?this._doFindNextMatchMultiline(e,new l.y(1,1),n,i):null}static _doFindNextMatchLineByLine(e,t,n,i){const r=e.getLineCount(),s=t.lineNumber,o=e.getLineContent(s),a=this._findFirstMatchInLine(n,o,s,t.column,i);if(a)return a;for(let l=1;l<=r;l++){const t=(s+l-1)%r,o=e.getLineContent(t+1),a=this._findFirstMatchInLine(n,o,t+1,1,i);if(a)return a}return null}static _findFirstMatchInLine(e,t,n,i,r){e.reset(i-1);const s=e.next(t);return s?d(new h.Q(n,s.index+1,n,s.index+1+s[0].length),s,r):null}static findPreviousMatch(e,t,n,i){const r=t.parseSearchRequest();if(!r)return null;const s=new p(r.wordSeparators,r.regex);return r.regex.multiline?this._doFindPreviousMatchMultiline(e,n,s,i):this._doFindPreviousMatchLineByLine(e,n,s,i)}static _doFindPreviousMatchMultiline(e,t,n,i){const r=this._doFindMatchesMultiline(e,new h.Q(1,1,t.lineNumber,t.column),n,i,9990);if(r.length>0)return r[r.length-1];const s=e.getLineCount();return t.lineNumber!==s||t.column!==e.getLineMaxColumn(s)?this._doFindPreviousMatchMultiline(e,new l.y(s,e.getLineMaxColumn(s)),n,i):null}static _doFindPreviousMatchLineByLine(e,t,n,i){const r=e.getLineCount(),s=t.lineNumber,o=e.getLineContent(s).substring(0,t.column-1),a=this._findLastMatchInLine(n,o,s,i);if(a)return a;for(let l=1;l<=r;l++){const t=(r+s-l-1)%r,o=e.getLineContent(t+1),a=this._findLastMatchInLine(n,o,t+1,i);if(a)return a}return null}static _findLastMatchInLine(e,t,n,i){let r,s=null;for(e.reset(0);r=e.next(t);)s=d(new h.Q(n,r.index+1,n,r.index+1+r[0].length),r,i);return s}}function m(e,t,n,i,r){return function(e,t,n,i,r){if(0===i)return!0;const s=t.charCodeAt(i-1);if(0!==e.get(s))return!0;if(13===s||10===s)return!0;if(r>0){const n=t.charCodeAt(i);if(0!==e.get(n))return!0}return!1}(e,t,0,i,r)&&function(e,t,n,i,r){if(i+r===n)return!0;const s=t.charCodeAt(i+r);if(0!==e.get(s))return!0;if(13===s||10===s)return!0;if(r>0){const n=t.charCodeAt(i+r-1);if(0!==e.get(n))return!0}return!1}(e,t,n,i,r)}class p{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){const t=e.length;let n;do{if(this._prevMatchStartIndex+this._prevMatchLength===t)return null;if(n=this._searchRegex.exec(e),!n)return null;const r=n.index,s=n[0].length;if(r===this._prevMatchStartIndex&&s===this._prevMatchLength){if(0===s){i.Z5(e,t,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=r,this._prevMatchLength=s,!this._wordSeparators||m(this._wordSeparators,e,t,r,s))return n}while(n);return null}}},4272:(e,t,n)=>{"use strict";n.r(t),n.d(t,{KeyMod:()=>fe,createMonacoBaseAPI:()=>me});var i=n(8447),r=n(1234);class s{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}}const o=new s,a=new s,l=new s,h=new Array(230),c={},u=[],d=Object.create(null),g=Object.create(null),f=[],m=[];for(let pe=0;pe<=193;pe++)f[pe]=-1;for(let pe=0;pe<=132;pe++)m[pe]=-1;var p;!function(){const e="",t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[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,e,0,e,e,e],[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",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],n=[],i=[];for(const r of t){const[e,t,s,p,_,b,k,v,C]=r;if(i[t]||(i[t]=!0,u[t]=s,d[s]=t,g[s.toLowerCase()]=t,e&&(f[t]=p,0!==p&&3!==p&&5!==p&&4!==p&&6!==p&&57!==p&&(m[p]=t))),!n[p]){if(n[p]=!0,!_)throw new Error(`String representation missing for key code ${p} around scan code ${s}`);o.define(p,_),a.define(p,v||_),l.define(p,C||v||_)}b&&(h[b]=p),k&&(c[k]=p)}m[3]=46}(),function(e){e.toString=function(e){return o.keyCodeToStr(e)},e.fromString=function(e){return o.strToKeyCode(e)},e.toUserSettingsUS=function(e){return a.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return l.keyCodeToStr(e)},e.fromUserSettings=function(e){return a.strToKeyCode(e)||l.strToKeyCode(e)},e.toElectronAccelerator=function(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 o.keyCodeToStr(e)}}(p||(p={}));var _,b,k,v,C,L,y,w,S,x,E,N,I,T,A,D,R,M,O,B,F,P,z,V,W,q,H,U,j,K,$,G,Q,Y,X,Z,J,ee,te,ne,ie,re,se,oe,ae,le,he=n(9400),ce=n(3069),ue=n(6677),de=n(5326),ge=n(2083);!function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"}(_||(_={})),function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"}(b||(b={})),function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(k||(k={})),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.Snippet=27]="Snippet"}(v||(v={})),function(e){e[e.Deprecated=1]="Deprecated"}(C||(C={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(L||(L={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(y||(y={})),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"}(w||(w={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(S||(S={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(x||(x={})),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"}(E||(E={})),function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.ariaRequired=5]="ariaRequired",e[e.autoClosingBrackets=6]="autoClosingBrackets",e[e.autoClosingComments=7]="autoClosingComments",e[e.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=9]="autoClosingDelete",e[e.autoClosingOvertype=10]="autoClosingOvertype",e[e.autoClosingQuotes=11]="autoClosingQuotes",e[e.autoIndent=12]="autoIndent",e[e.automaticLayout=13]="automaticLayout",e[e.autoSurround=14]="autoSurround",e[e.bracketPairColorization=15]="bracketPairColorization",e[e.guides=16]="guides",e[e.codeLens=17]="codeLens",e[e.codeLensFontFamily=18]="codeLensFontFamily",e[e.codeLensFontSize=19]="codeLensFontSize",e[e.colorDecorators=20]="colorDecorators",e[e.colorDecoratorsLimit=21]="colorDecoratorsLimit",e[e.columnSelection=22]="columnSelection",e[e.comments=23]="comments",e[e.contextmenu=24]="contextmenu",e[e.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",e[e.cursorBlinking=26]="cursorBlinking",e[e.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",e[e.cursorStyle=28]="cursorStyle",e[e.cursorSurroundingLines=29]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",e[e.cursorWidth=31]="cursorWidth",e[e.disableLayerHinting=32]="disableLayerHinting",e[e.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",e[e.domReadOnly=34]="domReadOnly",e[e.dragAndDrop=35]="dragAndDrop",e[e.dropIntoEditor=36]="dropIntoEditor",e[e.emptySelectionClipboard=37]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",e[e.extraEditorClassName=39]="extraEditorClassName",e[e.fastScrollSensitivity=40]="fastScrollSensitivity",e[e.find=41]="find",e[e.fixedOverflowWidgets=42]="fixedOverflowWidgets",e[e.folding=43]="folding",e[e.foldingStrategy=44]="foldingStrategy",e[e.foldingHighlight=45]="foldingHighlight",e[e.foldingImportsByDefault=46]="foldingImportsByDefault",e[e.foldingMaximumRegions=47]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=49]="fontFamily",e[e.fontInfo=50]="fontInfo",e[e.fontLigatures=51]="fontLigatures",e[e.fontSize=52]="fontSize",e[e.fontWeight=53]="fontWeight",e[e.fontVariations=54]="fontVariations",e[e.formatOnPaste=55]="formatOnPaste",e[e.formatOnType=56]="formatOnType",e[e.glyphMargin=57]="glyphMargin",e[e.gotoLocation=58]="gotoLocation",e[e.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",e[e.hover=60]="hover",e[e.inDiffEditor=61]="inDiffEditor",e[e.inlineSuggest=62]="inlineSuggest",e[e.inlineEdit=63]="inlineEdit",e[e.letterSpacing=64]="letterSpacing",e[e.lightbulb=65]="lightbulb",e[e.lineDecorationsWidth=66]="lineDecorationsWidth",e[e.lineHeight=67]="lineHeight",e[e.lineNumbers=68]="lineNumbers",e[e.lineNumbersMinChars=69]="lineNumbersMinChars",e[e.linkedEditing=70]="linkedEditing",e[e.links=71]="links",e[e.matchBrackets=72]="matchBrackets",e[e.minimap=73]="minimap",e[e.mouseStyle=74]="mouseStyle",e[e.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=76]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",e[e.multiCursorModifier=78]="multiCursorModifier",e[e.multiCursorPaste=79]="multiCursorPaste",e[e.multiCursorLimit=80]="multiCursorLimit",e[e.occurrencesHighlight=81]="occurrencesHighlight",e[e.overviewRulerBorder=82]="overviewRulerBorder",e[e.overviewRulerLanes=83]="overviewRulerLanes",e[e.padding=84]="padding",e[e.pasteAs=85]="pasteAs",e[e.parameterHints=86]="parameterHints",e[e.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",e[e.placeholder=88]="placeholder",e[e.definitionLinkOpensInPeek=89]="definitionLinkOpensInPeek",e[e.quickSuggestions=90]="quickSuggestions",e[e.quickSuggestionsDelay=91]="quickSuggestionsDelay",e[e.readOnly=92]="readOnly",e[e.readOnlyMessage=93]="readOnlyMessage",e[e.renameOnType=94]="renameOnType",e[e.renderControlCharacters=95]="renderControlCharacters",e[e.renderFinalNewline=96]="renderFinalNewline",e[e.renderLineHighlight=97]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=98]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=99]="renderValidationDecorations",e[e.renderWhitespace=100]="renderWhitespace",e[e.revealHorizontalRightPadding=101]="revealHorizontalRightPadding",e[e.roundedSelection=102]="roundedSelection",e[e.rulers=103]="rulers",e[e.scrollbar=104]="scrollbar",e[e.scrollBeyondLastColumn=105]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=106]="scrollBeyondLastLine",e[e.scrollPredominantAxis=107]="scrollPredominantAxis",e[e.selectionClipboard=108]="selectionClipboard",e[e.selectionHighlight=109]="selectionHighlight",e[e.selectOnLineNumbers=110]="selectOnLineNumbers",e[e.showFoldingControls=111]="showFoldingControls",e[e.showUnused=112]="showUnused",e[e.snippetSuggestions=113]="snippetSuggestions",e[e.smartSelect=114]="smartSelect",e[e.smoothScrolling=115]="smoothScrolling",e[e.stickyScroll=116]="stickyScroll",e[e.stickyTabStops=117]="stickyTabStops",e[e.stopRenderingLineAfter=118]="stopRenderingLineAfter",e[e.suggest=119]="suggest",e[e.suggestFontSize=120]="suggestFontSize",e[e.suggestLineHeight=121]="suggestLineHeight",e[e.suggestOnTriggerCharacters=122]="suggestOnTriggerCharacters",e[e.suggestSelection=123]="suggestSelection",e[e.tabCompletion=124]="tabCompletion",e[e.tabIndex=125]="tabIndex",e[e.unicodeHighlighting=126]="unicodeHighlighting",e[e.unusualLineTerminators=127]="unusualLineTerminators",e[e.useShadowDOM=128]="useShadowDOM",e[e.useTabStops=129]="useTabStops",e[e.wordBreak=130]="wordBreak",e[e.wordSegmenterLocales=131]="wordSegmenterLocales",e[e.wordSeparators=132]="wordSeparators",e[e.wordWrap=133]="wordWrap",e[e.wordWrapBreakAfterCharacters=134]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=135]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=136]="wordWrapColumn",e[e.wordWrapOverride1=137]="wordWrapOverride1",e[e.wordWrapOverride2=138]="wordWrapOverride2",e[e.wrappingIndent=139]="wrappingIndent",e[e.wrappingStrategy=140]="wrappingStrategy",e[e.showDeprecated=141]="showDeprecated",e[e.inlayHints=142]="inlayHints",e[e.editorClassName=143]="editorClassName",e[e.pixelRatio=144]="pixelRatio",e[e.tabFocusMode=145]="tabFocusMode",e[e.layoutInfo=146]="layoutInfo",e[e.wrappingInfo=147]="wrappingInfo",e[e.defaultColorDecorators=148]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=149]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=150]="inlineCompletionsAccessibilityVerbose"}(N||(N={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(I||(I={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}(T||(T={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(A||(A={})),function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(D||(D={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(R||(R={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(M||(M={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(O||(O={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(B||(B={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(F||(F={})),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"}(P||(P={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(z||(z={})),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(V||(V={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(W||(W={})),function(e){e[e.Normal=1]="Normal",e[e.Underlined=2]="Underlined"}(q||(q={})),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"}(H||(H={})),function(e){e[e.AIGenerated=1]="AIGenerated"}(U||(U={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(j||(j={})),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"}(K||(K={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}($||($={})),function(e){e[e.Word=0]="Word",e[e.Line=1]="Line",e[e.Suggest=2]="Suggest"}(G||(G={})),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"}(Q||(Q={})),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"}(Y||(Y={})),function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"}(X||(X={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"}(Z||(Z={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(J||(J={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(ee||(ee={})),function(e){e.Off="off",e.OnCode="onCode",e.On="on"}(te||(te={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(ne||(ne={})),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"}(ie||(ie={})),function(e){e[e.Deprecated=1]="Deprecated"}(re||(re={})),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"}(se||(se={})),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"}(oe||(oe={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(ae||(ae={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(le||(le={}));class fe{static{this.CtrlCmd=2048}static{this.Shift=1024}static{this.Alt=512}static{this.WinCtrl=256}static chord(e,t){return function(e,t){return(e|(65535&t)<<16>>>0)>>>0}(e,t)}}function me(){return{editor:void 0,languages:void 0,CancellationTokenSource:i.Qi,Emitter:r.vl,KeyCode:P,KeyMod:fe,Position:ce.y,Range:ue.Q,Selection:de.L,SelectionDirection:ee,MarkerSeverity:z,MarkerTag:V,Uri:he.r,Token:ge.ou}}},5196:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BaseEditorSimpleWorker:()=>Pe,EditorSimpleWorker:()=>ze,create:()=>Ve});class i{constructor(e,t,n,i){this.originalStart=e,this.originalLength=t,this.modifiedStart=n,this.modifiedLength=i}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}var r=n(5600);class s{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let n=0,i=e.length;n<i;n++)t[n]=e.charCodeAt(n);return t}}function o(e,t,n){return new c(new s(e),new s(t)).ComputeDiff(n).changes}class a{static Assert(e,t){if(!e)throw new Error(t)}}class l{static Copy(e,t,n,i,r){for(let s=0;s<r;s++)n[i+s]=e[t+s]}static Copy2(e,t,n,i,r){for(let s=0;s<r;s++)n[i+s]=e[t+s]}}class h{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 i(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}}class c{constructor(e,t,n=null){this.ContinueProcessingPredicate=n,this._originalSequence=e,this._modifiedSequence=t;const[i,r,s]=c._getElements(e),[o,a,l]=c._getElements(t);this._hasStrings=s&&l,this._originalStringElements=i,this._originalElementsOrHash=r,this._modifiedStringElements=o,this._modifiedElementsOrHash=a,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"===typeof e[0]}static _getElements(e){const t=e.getElements();if(c._isStringArray(t)){const e=new Int32Array(t.length);for(let n=0,i=t.length;n<i;n++)e[n]=(0,r.e2)(t[n],0);return[t,e,!0]}return t instanceof Int32Array?[[],t,!1]:[[],new Int32Array(t),!1]}ElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._modifiedStringElements[t])}ElementsAreStrictEqual(e,t){if(!this.ElementsAreEqual(e,t))return!1;return c._getStrictElement(this._originalSequence,e)===c._getStrictElement(this._modifiedSequence,t)}static _getStrictElement(e,t){return"function"===typeof e.getStrictElement?e.getStrictElement(t):null}OriginalElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._originalElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._originalStringElements[t])}ModifiedElementsAreEqual(e,t){return this._modifiedElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._modifiedStringElements[e]===this._modifiedStringElements[t])}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,t,n,i,r){const s=[!1];let o=this.ComputeDiffRecursive(e,t,n,i,s);return r&&(o=this.PrettifyChanges(o)),{quitEarly:s[0],changes:o}}ComputeDiffRecursive(e,t,n,r,s){for(s[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 s;return n<=r?(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),s=[new i(e,0,n,r-n+1)]):e<=t?(a.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),s=[new i(e,t-e+1,n,0)]):(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),a.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),s=[]),s}const o=[0],l=[0],h=this.ComputeRecursionPoint(e,t,n,r,o,l,s),c=o[0],u=l[0];if(null!==h)return h;if(!s[0]){const o=this.ComputeDiffRecursive(e,c,n,u,s);let a=[];return a=s[0]?[new i(c+1,t-(c+1)+1,u+1,r-(u+1)+1)]:this.ComputeDiffRecursive(c+1,t,u+1,r,s),this.ConcatenateChanges(o,a)}return[new i(e,t-e+1,n,r-n+1)]}WALKTRACE(e,t,n,r,s,o,a,l,c,u,d,g,f,m,p,_,b,k){let v=null,C=null,L=new h,y=t,w=n,S=f[0]-_[0]-r,x=-1073741824,E=this.m_forwardHistory.length-1;do{const t=S+e;t===y||t<w&&c[t-1]<c[t+1]?(m=(d=c[t+1])-S-r,d<x&&L.MarkNextChange(),x=d,L.AddModifiedElement(d+1,m),S=t+1-e):(m=(d=c[t-1]+1)-S-r,d<x&&L.MarkNextChange(),x=d-1,L.AddOriginalElement(d,m+1),S=t-1-e),E>=0&&(e=(c=this.m_forwardHistory[E])[0],y=1,w=c.length-1)}while(--E>=-1);if(v=L.getReverseChanges(),k[0]){let e=f[0]+1,t=_[0]+1;if(null!==v&&v.length>0){const n=v[v.length-1];e=Math.max(e,n.getOriginalEnd()),t=Math.max(t,n.getModifiedEnd())}C=[new i(e,g-e+1,t,p-t+1)]}else{L=new h,y=o,w=a,S=f[0]-_[0]-l,x=1073741824,E=b?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=S+s;e===y||e<w&&u[e-1]>=u[e+1]?(m=(d=u[e+1]-1)-S-l,d>x&&L.MarkNextChange(),x=d+1,L.AddOriginalElement(d+1,m+1),S=e+1-s):(m=(d=u[e-1])-S-l,d>x&&L.MarkNextChange(),x=d,L.AddModifiedElement(d+1,m+1),S=e-1-s),E>=0&&(s=(u=this.m_reverseHistory[E])[0],y=1,w=u.length-1)}while(--E>=-1);C=L.getChanges()}return this.ConcatenateChanges(v,C)}ComputeRecursionPoint(e,t,n,r,s,o,a){let h=0,c=0,u=0,d=0,g=0,f=0;e--,n--,s[0]=0,o[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const m=t-e+(r-n),p=m+1,_=new Int32Array(p),b=new Int32Array(p),k=r-n,v=t-e,C=e-n,L=t-r,y=(v-k)%2===0;_[k]=e,b[v]=t,a[0]=!1;for(let w=1;w<=m/2+1;w++){let m=0,S=0;u=this.ClipDiagonalBound(k-w,w,k,p),d=this.ClipDiagonalBound(k+w,w,k,p);for(let e=u;e<=d;e+=2){h=e===u||e<d&&_[e-1]<_[e+1]?_[e+1]:_[e-1]+1,c=h-(e-k)-C;const n=h;for(;h<t&&c<r&&this.ElementsAreEqual(h+1,c+1);)h++,c++;if(_[e]=h,h+c>m+S&&(m=h,S=c),!y&&Math.abs(e-v)<=w-1&&h>=b[e])return s[0]=h,o[0]=c,n<=b[e]&&w<=1448?this.WALKTRACE(k,u,d,C,v,g,f,L,_,b,h,t,s,c,r,o,y,a):null}const x=(m-e+(S-n)-w)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(m,x))return a[0]=!0,s[0]=m,o[0]=S,x>0&&w<=1448?this.WALKTRACE(k,u,d,C,v,g,f,L,_,b,h,t,s,c,r,o,y,a):(e++,n++,[new i(e,t-e+1,n,r-n+1)]);g=this.ClipDiagonalBound(v-w,w,v,p),f=this.ClipDiagonalBound(v+w,w,v,p);for(let i=g;i<=f;i+=2){h=i===g||i<f&&b[i-1]>=b[i+1]?b[i+1]-1:b[i-1],c=h-(i-v)-L;const l=h;for(;h>e&&c>n&&this.ElementsAreEqual(h,c);)h--,c--;if(b[i]=h,y&&Math.abs(i-k)<=w&&h<=_[i])return s[0]=h,o[0]=c,l>=_[i]&&w<=1448?this.WALKTRACE(k,u,d,C,v,g,f,L,_,b,h,t,s,c,r,o,y,a):null}if(w<=1447){let e=new Int32Array(d-u+2);e[0]=k-u+1,l.Copy2(_,u,e,1,d-u+1),this.m_forwardHistory.push(e),e=new Int32Array(f-g+2),e[0]=v-g+1,l.Copy2(b,g,e,1,f-g+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(k,u,d,C,v,g,f,L,_,b,h,t,s,c,r,o,y,a)}PrettifyChanges(e){for(let t=0;t<e.length;t++){const n=e[t],i=t<e.length-1?e[t+1].originalStart:this._originalElementsOrHash.length,r=t<e.length-1?e[t+1].modifiedStart:this._modifiedElementsOrHash.length,s=n.originalLength>0,o=n.modifiedLength>0;for(;n.originalStart+n.originalLength<i&&n.modifiedStart+n.modifiedLength<r&&(!s||this.OriginalElementsAreEqual(n.originalStart,n.originalStart+n.originalLength))&&(!o||this.ModifiedElementsAreEqual(n.modifiedStart,n.modifiedStart+n.modifiedLength));){const e=this.ElementsAreStrictEqual(n.originalStart,n.modifiedStart);if(this.ElementsAreStrictEqual(n.originalStart+n.originalLength,n.modifiedStart+n.modifiedLength)&&!e)break;n.originalStart++,n.modifiedStart++}const a=[null];t<e.length-1&&this.ChangesOverlap(e[t],e[t+1],a)&&(e[t]=a[0],e.splice(t+1,1),t--)}for(let t=e.length-1;t>=0;t--){const n=e[t];let i=0,r=0;if(t>0){const n=e[t-1];i=n.originalStart+n.originalLength,r=n.modifiedStart+n.modifiedLength}const s=n.originalLength>0,o=n.modifiedLength>0;let a=0,l=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let e=1;;e++){const t=n.originalStart-e,h=n.modifiedStart-e;if(t<i||h<r)break;if(s&&!this.OriginalElementsAreEqual(t,t+n.originalLength))break;if(o&&!this.ModifiedElementsAreEqual(h,h+n.modifiedLength))break;const c=(t===i&&h===r?5:0)+this._boundaryScore(t,n.originalLength,h,n.modifiedLength);c>l&&(l=c,a=e)}n.originalStart-=a,n.modifiedStart-=a;const h=[null];t>0&&this.ChangesOverlap(e[t-1],e[t],h)&&(e[t-1]=h[0],e.splice(t,1),t++)}if(this._hasStrings)for(let t=1,n=e.length;t<n;t++){const n=e[t-1],i=e[t],r=i.originalStart-n.originalStart-n.originalLength,s=n.originalStart,o=i.originalStart+i.originalLength,a=o-s,l=n.modifiedStart,h=i.modifiedStart+i.modifiedLength,c=h-l;if(r<5&&a<20&&c<20){const e=this._findBetterContiguousSequence(s,a,l,c,r);if(e){const[t,s]=e;t===n.originalStart+n.originalLength&&s===n.modifiedStart+n.modifiedLength||(n.originalLength=t-n.originalStart,n.modifiedLength=s-n.modifiedStart,i.originalStart=t+r,i.modifiedStart=s+r,i.originalLength=o-i.originalStart,i.modifiedLength=h-i.modifiedStart)}}}return e}_findBetterContiguousSequence(e,t,n,i,r){if(t<r||i<r)return null;const s=e+t-r+1,o=n+i-r+1;let a=0,l=0,h=0;for(let c=e;c<s;c++)for(let e=n;e<o;e++){const t=this._contiguousSequenceScore(c,e,r);t>0&&t>a&&(a=t,l=c,h=e)}return a>0?[l,h]:null}_contiguousSequenceScore(e,t,n){let i=0;for(let r=0;r<n;r++){if(!this.ElementsAreEqual(e+r,t+r))return 0;i+=this._originalStringElements[e+r].length}return i}_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){const 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){const n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1}_boundaryScore(e,t,n,i){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(n,i)?1:0)}ConcatenateChanges(e,t){const n=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){const i=new Array(e.length+t.length-1);return l.Copy(e,0,i,0,e.length-1),i[e.length-1]=n[0],l.Copy(t,1,i,e.length,t.length-1),i}{const n=new Array(e.length+t.length);return l.Copy(e,0,n,0,e.length),l.Copy(t,0,n,e.length,t.length),n}}ChangesOverlap(e,t,n){if(a.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),a.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){const r=e.originalStart;let s=e.originalLength;const o=e.modifiedStart;let a=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(s=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(a=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new i(r,s,o,a),!0}return n[0]=null,!1}ClipDiagonalBound(e,t,n,i){if(e>=0&&e<i)return e;const r=t%2===0;if(e<0){return r===(n%2===0)?0:1}return r===((i-n-1)%2===0)?i-1:i-2}}var u=n(6677),d=n(534);class g{constructor(e,t,n){const i=new Uint8Array(e*t);for(let r=0,s=e*t;r<s;r++)i[r]=n;this._data=i,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}}class f{constructor(e){let t=0,n=0;for(let r=0,s=e.length;r<s;r++){const[i,s,o]=e[r];s>t&&(t=s),i>n&&(n=i),o>n&&(n=o)}t++,n++;const i=new g(n,t,0);for(let r=0,s=e.length;r<s;r++){const[t,n,s]=e[r];i.set(t,n,s)}this._states=i,this._maxCharCode=t}nextState(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)}}let m=null;let p=null;class _{static _createLink(e,t,n,i,r){let s=r-1;do{const n=t.charCodeAt(s);if(2!==e.get(n))break;s--}while(s>i);if(i>0){const e=t.charCodeAt(i-1),n=t.charCodeAt(s);(40===e&&41===n||91===e&&93===n||123===e&&125===n)&&s--}return{range:{startLineNumber:n,startColumn:i+1,endLineNumber:n,endColumn:s+2},url:t.substring(i,s+1)}}static computeLinks(e,t=function(){return null===m&&(m=new f([[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]])),m}()){const n=function(){if(null===p){p=new d.V(0);const e=" \t<>'\"\u3001\u3002\uff61\uff64\uff0c\uff0e\uff1a\uff1b\u2018\u3008\u300c\u300e\u3014\uff08\uff3b\uff5b\uff62\uff63\uff5d\uff3d\uff09\u3015\u300f\u300d\u3009\u2019\uff40\uff5e\u2026";for(let n=0;n<e.length;n++)p.set(e.charCodeAt(n),1);const t=".,;:";for(let n=0;n<t.length;n++)p.set(t.charCodeAt(n),2)}return p}(),i=[];for(let r=1,s=e.getLineCount();r<=s;r++){const s=e.getLineContent(r),o=s.length;let a=0,l=0,h=0,c=1,u=!1,d=!1,g=!1,f=!1;for(;a<o;){let e=!1;const o=s.charCodeAt(a);if(13===c){let t;switch(o){case 40:u=!0,t=0;break;case 41:t=u?0:1;break;case 91:g=!0,d=!0,t=0;break;case 93:g=!1,t=d?0:1;break;case 123:f=!0,t=0;break;case 125:t=f?0:1;break;case 39:case 34:case 96:t=h===o?1:39===h||34===h||96===h?0:1;break;case 42:t=42===h?1:0;break;case 124:t=124===h?1:0;break;case 32:t=g?0:1;break;default:t=n.get(o)}1===t&&(i.push(_._createLink(n,s,r,l,a)),e=!0)}else if(12===c){let t;91===o?(d=!0,t=0):t=n.get(o),1===t?e=!0:c=13}else c=t.nextState(c,o),0===c&&(e=!0);e&&(c=1,u=!1,d=!1,f=!1,l=a+1,h=o),a++}13===c&&i.push(_._createLink(n,s,r,l,o))}return i}}class b{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}static{this.INSTANCE=new b}navigateValueSet(e,t,n,i,r){if(e&&t){const n=this.doNavigateValueSet(t,r);if(n)return{range:e,value:n}}if(n&&i){const e=this.doNavigateValueSet(i,r);if(e)return{range:n,value:e}}return null}doNavigateValueSet(e,t){const n=this.numberReplace(e,t);return null!==n?n:this.textReplace(e,t)}numberReplace(e,t){const n=Math.pow(10,e.length-(e.lastIndexOf(".")+1));let i=Number(e);const r=parseFloat(e);return isNaN(i)||isNaN(r)||i!==r?null:0!==i||t?(i=Math.floor(i*n),i+=t?n:-n,String(i/n)):null}textReplace(e,t){return this.valueSetsReplace(this._defaultValueSet,e,t)}valueSetsReplace(e,t,n){let i=null;for(let r=0,s=e.length;null===i&&r<s;r++)i=this.valueSetReplace(e[r],t,n);return i}valueSetReplace(e,t,n){let i=e.indexOf(t);return i>=0?(i+=n?1:-1,i<0?i=e.length-1:i%=e.length,e[i]):null}}var k=n(4272),v=n(718),C=n(8381),L=n(4855);class y{constructor(e,t,n){this.changes=e,this.moves=t,this.hitTimeout=n}}class w{constructor(e,t){this.lineRangeMapping=e,this.changes=t}}var S=n(4383),x=n(6571),E=n(3069),N=n(6782),I=n(4444);n(973);class T{constructor(e,t){this.range=e,this.text=t}toSingleEditOperation(){return{range:this.range,text:this.text}}}class A{static inverse(e,t,n){const i=[];let r=1,s=1;for(const a of e){const e=new A(new x.M(r,a.original.startLineNumber),new x.M(s,a.modified.startLineNumber));e.modified.isEmpty||i.push(e),r=a.original.endLineNumberExclusive,s=a.modified.endLineNumberExclusive}const o=new A(new x.M(r,t+1),new x.M(s,n+1));return o.modified.isEmpty||i.push(o),i}static clip(e,t,n){const i=[];for(const r of e){const e=r.original.intersect(t),s=r.modified.intersect(n);e&&!e.isEmpty&&s&&!s.isEmpty&&i.push(new A(e,s))}return i}constructor(e,t){this.original=e,this.modified=t}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new A(this.modified,this.original)}join(e){return new A(this.original.join(e.original),this.modified.join(e.modified))}toRangeMapping(){const e=this.original.toInclusiveRange(),t=this.modified.toInclusiveRange();if(e&&t)return new O(e,t);if(1===this.original.startLineNumber||1===this.modified.startLineNumber){if(1!==this.modified.startLineNumber||1!==this.original.startLineNumber)throw new S.D7("not a valid diff");return new O(new u.Q(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new u.Q(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}return new O(new u.Q(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new u.Q(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}toRangeMapping2(e,t){if(R(this.original.endLineNumberExclusive,e)&&R(this.modified.endLineNumberExclusive,t))return new O(new u.Q(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new u.Q(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1));if(!this.original.isEmpty&&!this.modified.isEmpty)return new O(u.Q.fromPositions(new E.y(this.original.startLineNumber,1),D(new E.y(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),u.Q.fromPositions(new E.y(this.modified.startLineNumber,1),D(new E.y(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)));if(this.original.startLineNumber>1&&this.modified.startLineNumber>1)return new O(u.Q.fromPositions(D(new E.y(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER),e),D(new E.y(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),u.Q.fromPositions(D(new E.y(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER),t),D(new E.y(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)));throw new S.D7}}function D(e,t){if(e.lineNumber<1)return new E.y(1,1);if(e.lineNumber>t.length)return new E.y(t.length,t[t.length-1].length+1);const n=t[e.lineNumber-1];return e.column>n.length+1?new E.y(e.lineNumber,n.length+1):e}function R(e,t){return e>=1&&e<=t.length}class M extends A{static fromRangeMappings(e){const t=x.M.join(e.map((e=>x.M.fromRangeInclusive(e.originalRange)))),n=x.M.join(e.map((e=>x.M.fromRangeInclusive(e.modifiedRange))));return new M(t,n,e)}constructor(e,t,n){super(e,t),this.innerChanges=n}flip(){return new M(this.modified,this.original,this.innerChanges?.map((e=>e.flip())))}withInnerChangesFromLineRanges(){return new M(this.original,this.modified,[this.toRangeMapping()])}}class O{static assertSorted(e){for(let t=1;t<e.length;t++){const n=e[t-1],i=e[t];if(!n.originalRange.getEndPosition().isBeforeOrEqual(i.originalRange.getStartPosition())||!n.modifiedRange.getEndPosition().isBeforeOrEqual(i.modifiedRange.getStartPosition()))throw new S.D7("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 O(this.modifiedRange,this.originalRange)}toTextEdit(e){const t=e.getValueOfRange(this.modifiedRange);return new T(this.originalRange,t)}}var B=n(1508);class F{computeDiff(e,t,n){const i=new H(e,t,{maxComputationTime:n.maxComputationTimeMs,shouldIgnoreTrimWhitespace:n.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),r=[];let s=null;for(const o of i.changes){let e,t;e=0===o.originalEndLineNumber?new x.M(o.originalStartLineNumber+1,o.originalStartLineNumber+1):new x.M(o.originalStartLineNumber,o.originalEndLineNumber+1),t=0===o.modifiedEndLineNumber?new x.M(o.modifiedStartLineNumber+1,o.modifiedStartLineNumber+1):new x.M(o.modifiedStartLineNumber,o.modifiedEndLineNumber+1);let n=new M(e,t,o.charChanges?.map((e=>new O(new u.Q(e.originalStartLineNumber,e.originalStartColumn,e.originalEndLineNumber,e.originalEndColumn),new u.Q(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)))));s&&(s.modified.endLineNumberExclusive!==n.modified.startLineNumber&&s.original.endLineNumberExclusive!==n.original.startLineNumber||(n=new M(s.original.join(n.original),s.modified.join(n.modified),s.innerChanges&&n.innerChanges?s.innerChanges.concat(n.innerChanges):void 0),r.pop())),r.push(n),s=n}return(0,N.Ft)((()=>(0,N.Xo)(r,((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 y(r,[],i.quitEarly)}}function P(e,t,n,i){return new c(e,t,n).ComputeDiff(i)}class z{constructor(e){const t=[],n=[];for(let i=0,r=e.length;i<r;i++)t[i]=U(e[i],1),n[i]=j(e[i],1);this.lines=e,this._startColumns=t,this._endColumns=n}getElements(){const 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){const i=[],r=[],s=[];let o=0;for(let a=t;a<=n;a++){const t=this.lines[a],l=e?this._startColumns[a]:1,h=e?this._endColumns[a]:t.length+1;for(let e=l;e<h;e++)i[o]=t.charCodeAt(e-1),r[o]=a+1,s[o]=e,o++;!e&&a<n&&(i[o]=10,r[o]=a+1,s[o]=t.length+1,o++)}return new V(i,r,s)}}class V{constructor(e,t,n){this._charCodes=e,this._lineNumbers=t,this._columns=n}toString(){return"["+this._charCodes.map(((e,t)=>(10===e?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[t]},${this._columns[t]})`)).join(", ")+"]"}_assertIndex(e,t){if(e<0||e>=t.length)throw new 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-1===e?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),10===this._charCodes[e]?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-1===e?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),10===this._charCodes[e]?1:this._columns[e]+1)}}class W{constructor(e,t,n,i,r,s,o,a){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=n,this.originalEndColumn=i,this.modifiedStartLineNumber=r,this.modifiedStartColumn=s,this.modifiedEndLineNumber=o,this.modifiedEndColumn=a}static createFromDiffChange(e,t,n){const i=t.getStartLineNumber(e.originalStart),r=t.getStartColumn(e.originalStart),s=t.getEndLineNumber(e.originalStart+e.originalLength-1),o=t.getEndColumn(e.originalStart+e.originalLength-1),a=n.getStartLineNumber(e.modifiedStart),l=n.getStartColumn(e.modifiedStart),h=n.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),c=n.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new W(i,r,s,o,a,l,h,c)}}class q{constructor(e,t,n,i,r){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=n,this.modifiedEndLineNumber=i,this.charChanges=r}static createFromDiffResult(e,t,n,i,r,s,o){let a,l,h,c,u;if(0===t.originalLength?(a=n.getStartLineNumber(t.originalStart)-1,l=0):(a=n.getStartLineNumber(t.originalStart),l=n.getEndLineNumber(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(h=i.getStartLineNumber(t.modifiedStart)-1,c=0):(h=i.getStartLineNumber(t.modifiedStart),c=i.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),s&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&r()){const s=n.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),a=i.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);if(s.getElements().length>0&&a.getElements().length>0){let e=P(s,a,r,!0).changes;o&&(e=function(e){if(e.length<=1)return e;const t=[e[0]];let n=t[0];for(let i=1,r=e.length;i<r;i++){const r=e[i],s=r.originalStart-(n.originalStart+n.originalLength),o=r.modifiedStart-(n.modifiedStart+n.modifiedLength);Math.min(s,o)<3?(n.originalLength=r.originalStart+r.originalLength-n.originalStart,n.modifiedLength=r.modifiedStart+r.modifiedLength-n.modifiedStart):(t.push(r),n=r)}return t}(e)),u=[];for(let t=0,n=e.length;t<n;t++)u.push(W.createFromDiffChange(e[t],s,a))}}return new q(a,l,h,c,u)}}class H{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 z(e),this.modified=new z(t),this.continueLineDiff=K(n.maxComputationTime),this.continueCharDiff=K(0===n.maxComputationTime?0:Math.min(n.maxComputationTime,5e3))}computeDiff(){if(1===this.original.lines.length&&0===this.original.lines[0].length)return 1===this.modified.lines.length&&0===this.modified.lines[0].length?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(1===this.modified.lines.length&&0===this.modified.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const e=P(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=e.changes,n=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){const e=[];for(let n=0,i=t.length;n<i;n++)e.push(q.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[n],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:n,changes:e}}const i=[];let r=0,s=0;for(let o=-1,a=t.length;o<a;o++){const e=o+1<a?t[o+1]:null,n=e?e.originalStart:this.originalLines.length,l=e?e.modifiedStart:this.modifiedLines.length;for(;r<n&&s<l;){const e=this.originalLines[r],t=this.modifiedLines[s];if(e!==t){{let n=U(e,1),o=U(t,1);for(;n>1&&o>1;){if(e.charCodeAt(n-2)!==t.charCodeAt(o-2))break;n--,o--}(n>1||o>1)&&this._pushTrimWhitespaceCharChange(i,r+1,1,n,s+1,1,o)}{let n=j(e,1),o=j(t,1);const a=e.length+1,l=t.length+1;for(;n<a&&o<l;){if(e.charCodeAt(n-1)!==e.charCodeAt(o-1))break;n++,o++}(n<a||o<l)&&this._pushTrimWhitespaceCharChange(i,r+1,n,a,s+1,o,l)}}r++,s++}e&&(i.push(q.createFromDiffResult(this.shouldIgnoreTrimWhitespace,e,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),r+=e.originalLength,s+=e.modifiedLength)}return{quitEarly:n,changes:i}}_pushTrimWhitespaceCharChange(e,t,n,i,r,s,o){if(this._mergeTrimWhitespaceCharChange(e,t,n,i,r,s,o))return;let a;this.shouldComputeCharChanges&&(a=[new W(t,n,t,i,r,s,r,o)]),e.push(new q(t,t,r,r,a))}_mergeTrimWhitespaceCharChange(e,t,n,i,r,s,o){const a=e.length;if(0===a)return!1;const l=e[a-1];return 0!==l.originalEndLineNumber&&0!==l.modifiedEndLineNumber&&(l.originalEndLineNumber===t&&l.modifiedEndLineNumber===r?(this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new W(t,n,t,i,r,s,r,o)),!0):l.originalEndLineNumber+1===t&&l.modifiedEndLineNumber+1===r&&(l.originalEndLineNumber=t,l.modifiedEndLineNumber=r,this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new W(t,n,t,i,r,s,r,o)),!0))}}function U(e,t){const n=B.HG(e);return-1===n?t:n+1}function j(e,t){const n=B.lT(e);return-1===n?t:n+2}function K(e){if(0===e)return()=>!0;const t=Date.now();return()=>Date.now()-t<e}var $=n(9861);class G{static trivial(e,t){return new G([new Q(I.L.ofLength(e.length),I.L.ofLength(t.length))],!1)}static trivialTimedOut(e,t){return new G([new Q(I.L.ofLength(e.length),I.L.ofLength(t.length))],!0)}constructor(e,t){this.diffs=e,this.hitTimeout=t}}class Q{static invert(e,t){const n=[];return(0,$.pN)(e,((e,i)=>{n.push(Q.fromOffsetPairs(e?e.getEndExclusives():Y.zero,i?i.getStarts():new Y(t,(e?e.seq2Range.endExclusive-e.seq1Range.endExclusive:0)+t)))})),n}static fromOffsetPairs(e,t){return new Q(new I.L(e.offset1,t.offset1),new I.L(e.offset2,t.offset2))}static assertSorted(e){let t;for(const n of e){if(t&&!(t.seq1Range.endExclusive<=n.seq1Range.start&&t.seq2Range.endExclusive<=n.seq2Range.start))throw new S.D7("Sequence diffs must be sorted");t=n}}constructor(e,t){this.seq1Range=e,this.seq2Range=t}swap(){return new Q(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(e){return new Q(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}delta(e){return 0===e?this:new Q(this.seq1Range.delta(e),this.seq2Range.delta(e))}deltaStart(e){return 0===e?this:new Q(this.seq1Range.deltaStart(e),this.seq2Range.deltaStart(e))}deltaEnd(e){return 0===e?this:new Q(this.seq1Range.deltaEnd(e),this.seq2Range.deltaEnd(e))}intersect(e){const t=this.seq1Range.intersect(e.seq1Range),n=this.seq2Range.intersect(e.seq2Range);if(t&&n)return new Q(t,n)}getStarts(){return new Y(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new Y(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}class Y{static{this.zero=new Y(0,0)}static{this.max=new Y(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER)}constructor(e,t){this.offset1=e,this.offset2=t}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(e){return 0===e?this:new Y(this.offset1+e,this.offset2+e)}equals(e){return this.offset1===e.offset1&&this.offset2===e.offset2}}class X{static{this.instance=new X}isValid(){return!0}}class Z{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new S.D7("timeout must be positive")}isValid(){return!(Date.now()-this.startTime<this.timeout)&&this.valid&&(this.valid=!1),this.valid}}class J{constructor(e,t){this.width=e,this.height=t,this.array=[],this.array=new 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 ee(e){return 32===e||9===e}class te{static{this.chrKeys=new Map}static getKey(e){let t=this.chrKeys.get(e);return void 0===t&&(t=this.chrKeys.size,this.chrKeys.set(e,t)),t}constructor(e,t,n){this.range=e,this.lines=t,this.source=n,this.histogram=[];let i=0;for(let r=e.startLineNumber-1;r<e.endLineNumberExclusive-1;r++){const e=t[r];for(let t=0;t<e.length;t++){i++;const n=e[t],r=te.getKey(n);this.histogram[r]=(this.histogram[r]||0)+1}i++;const n=te.getKey("\n");this.histogram[n]=(this.histogram[n]||0)+1}this.totalCount=i}computeSimilarity(e){let t=0;const n=Math.max(this.histogram.length,e.histogram.length);for(let i=0;i<n;i++)t+=Math.abs((this.histogram[i]??0)-(e.histogram[i]??0));return 1-t/(this.totalCount+e.totalCount)}}class ne{compute(e,t,n=X.instance,i){if(0===e.length||0===t.length)return G.trivial(e,t);const r=new J(e.length,t.length),s=new J(e.length,t.length),o=new J(e.length,t.length);for(let g=0;g<e.length;g++)for(let a=0;a<t.length;a++){if(!n.isValid())return G.trivialTimedOut(e,t);const l=0===g?0:r.get(g-1,a),h=0===a?0:r.get(g,a-1);let c;e.getElement(g)===t.getElement(a)?(c=0===g||0===a?0:r.get(g-1,a-1),g>0&&a>0&&3===s.get(g-1,a-1)&&(c+=o.get(g-1,a-1)),c+=i?i(g,a):1):c=-1;const u=Math.max(l,h,c);if(u===c){const e=g>0&&a>0?o.get(g-1,a-1):0;o.set(g,a,e+1),s.set(g,a,3)}else u===l?(o.set(g,a,0),s.set(g,a,1)):u===h&&(o.set(g,a,0),s.set(g,a,2));r.set(g,a,u)}const a=[];let l=e.length,h=t.length;function c(e,t){e+1===l&&t+1===h||a.push(new Q(new I.L(e+1,l),new I.L(t+1,h))),l=e,h=t}let u=e.length-1,d=t.length-1;for(;u>=0&&d>=0;)3===s.get(u,d)?(c(u,d),u--,d--):1===s.get(u,d)?u--:d--;return c(-1,-1),a.reverse(),new G(a,!1)}}class ie{compute(e,t,n=X.instance){if(0===e.length||0===t.length)return G.trivial(e,t);const i=e,r=t;function s(e,t){for(;e<i.length&&t<r.length&&i.getElement(e)===r.getElement(t);)e++,t++;return e}let o=0;const a=new se;a.set(0,s(0,0));const l=new oe;l.set(0,0===a.get(0)?null:new re(null,0,0,a.get(0)));let h=0;e:for(;;){if(o++,!n.isValid())return G.trivialTimedOut(i,r);const e=-Math.min(o,r.length+o%2),t=Math.min(o,i.length+o%2);for(h=e;h<=t;h+=2){let n=0;const o=h===t?-1:a.get(h+1),c=h===e?-1:a.get(h-1)+1;n++;const u=Math.min(Math.max(o,c),i.length),d=u-h;if(n++,u>i.length||d>r.length)continue;const g=s(u,d);a.set(h,g);const f=u===o?l.get(h+1):l.get(h-1);if(l.set(h,g!==u?new re(f,u,d,g-u):f),a.get(h)===i.length&&a.get(h)-h===r.length)break e}}let c=l.get(h);const u=[];let d=i.length,g=r.length;for(;;){const e=c?c.x+c.length:0,t=c?c.y+c.length:0;if(e===d&&t===g||u.push(new Q(new I.L(e,d),new I.L(t,g))),!c)break;d=c.x,g=c.y,c=c.prev}return u.reverse(),new G(u,!1)}}class re{constructor(e,t,n,i){this.prev=e,this.x=t,this.y=n,this.length=i}}class se{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=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)>=this.negativeArr.length){const e=this.negativeArr;this.negativeArr=new Int32Array(2*e.length),this.negativeArr.set(e)}this.negativeArr[e]=t}else{if(e>=this.positiveArr.length){const e=this.positiveArr;this.positiveArr=new Int32Array(2*e.length),this.positiveArr.set(e)}this.positiveArr[e]=t}}}class oe{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}}var ae=n(6041),le=n(4320);class he{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 i=this.range.startLineNumber;i<=this.range.endLineNumber;i++){let t=e[i-1],r=0;i===this.range.startLineNumber&&this.range.startColumn>1&&(r=this.range.startColumn-1,t=t.substring(r)),this.lineStartOffsets.push(r);let s=0;if(!n){const e=t.trimStart();s=t.length-e.length,t=e.trimEnd()}this.trimmedWsLengthsByLineIdx.push(s);const o=i===this.range.endLineNumber?Math.min(this.range.endColumn-1-r-s,t.length):t.length;for(let e=0;e<o;e++)this.elements.push(t.charCodeAt(e));i<this.range.endLineNumber&&(this.elements.push("\n".charCodeAt(0)),this.firstElementOffsetByLineIdx.push(this.elements.length))}}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new I.L(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){const t=ge(e>0?this.elements[e-1]:-1),n=ge(e<this.elements.length?this.elements[e]:-1);if(7===t&&8===n)return 0;if(8===t)return 150;let i=0;return t!==n&&(i+=10,0===t&&1===n&&(i+=1)),i+=de(t),i+=de(n),i}translateOffset(e,t="right"){const n=(0,ae.iM)(this.firstElementOffsetByLineIdx,(t=>t<=e)),i=e-this.firstElementOffsetByLineIdx[n];return new E.y(this.range.startLineNumber+n,1+this.lineStartOffsets[n]+i+(0===i&&"left"===t?0:this.trimmedWsLengthsByLineIdx[n]))}translateRange(e){const t=this.translateOffset(e.start,"right"),n=this.translateOffset(e.endExclusive,"left");return n.isBefore(t)?u.Q.fromPositions(n,n):u.Q.fromPositions(t,n)}findWordContaining(e){if(e<0||e>=this.elements.length)return;if(!ce(this.elements[e]))return;let t=e;for(;t>0&&ce(this.elements[t-1]);)t--;let n=e;for(;n<this.elements.length&&ce(this.elements[n]);)n++;return new I.L(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){const t=(0,ae.lx)(this.firstElementOffsetByLineIdx,(t=>t<=e.start))??0,n=(0,ae.XP)(this.firstElementOffsetByLineIdx,(t=>e.endExclusive<=t))??this.elements.length;return new I.L(t,n)}}function ce(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}const ue={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function de(e){return ue[e]}function ge(e){return 10===e?8:13===e?7:ee(e)?6:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:-1===e?3:44===e||59===e?5:4}function fe(e,t,n,i,r,s){let{moves:o,excludedChanges:a}=function(e,t,n,i){const r=[],s=e.filter((e=>e.modified.isEmpty&&e.original.length>=3)).map((e=>new te(e.original,t,e))),o=new Set(e.filter((e=>e.original.isEmpty&&e.modified.length>=3)).map((e=>new te(e.modified,n,e)))),a=new Set;for(const l of s){let e,t=-1;for(const n of o){const i=l.computeSimilarity(n);i>t&&(t=i,e=n)}if(t>.9&&e&&(o.delete(e),r.push(new A(l.range,e.range)),a.add(l.source),a.add(e.source)),!i.isValid())return{moves:r,excludedChanges:a}}return{moves:r,excludedChanges:a}}(e,t,n,s);if(!s.isValid())return[];const l=function(e,t,n,i,r,s){const o=[],a=new le.db;for(const d of e)for(let e=d.original.startLineNumber;e<d.original.endLineNumberExclusive-2;e++){const n=`${t[e-1]}:${t[e+1-1]}:${t[e+2-1]}`;a.add(n,{range:new x.M(e,e+3)})}const l=[];e.sort((0,$.VE)((e=>e.modified.startLineNumber),$.U9));for(const d of e){let e=[];for(let t=d.modified.startLineNumber;t<d.modified.endLineNumberExclusive-2;t++){const i=`${n[t-1]}:${n[t+1-1]}:${n[t+2-1]}`,r=new x.M(t,t+3),s=[];a.forEach(i,(({range:t})=>{for(const i of e)if(i.originalLineRange.endLineNumberExclusive+1===t.endLineNumberExclusive&&i.modifiedLineRange.endLineNumberExclusive+1===r.endLineNumberExclusive)return i.originalLineRange=new x.M(i.originalLineRange.startLineNumber,t.endLineNumberExclusive),i.modifiedLineRange=new x.M(i.modifiedLineRange.startLineNumber,r.endLineNumberExclusive),void s.push(i);const n={modifiedLineRange:r,originalLineRange:t};l.push(n),s.push(n)})),e=s}if(!s.isValid())return[]}l.sort((0,$.Hw)((0,$.VE)((e=>e.modifiedLineRange.length),$.U9)));const h=new x.S,c=new x.S;for(const d of l){const e=d.modifiedLineRange.startLineNumber-d.originalLineRange.startLineNumber,t=h.subtractFrom(d.modifiedLineRange),n=c.subtractFrom(d.originalLineRange).getWithDelta(e),i=t.getIntersection(n);for(const r of i.ranges){if(r.length<3)continue;const t=r,n=r.delta(-e);o.push(new A(n,t)),h.addRange(t),c.addRange(n)}}o.sort((0,$.VE)((e=>e.original.startLineNumber),$.U9));const u=new ae.vJ(e);for(let d=0;d<o.length;d++){const t=o[d],n=u.findLastMonotonous((e=>e.original.startLineNumber<=t.original.startLineNumber)),a=(0,ae.lx)(e,(e=>e.modified.startLineNumber<=t.modified.startLineNumber)),l=Math.max(t.original.startLineNumber-n.original.startLineNumber,t.modified.startLineNumber-a.modified.startLineNumber),g=u.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive)),f=(0,ae.lx)(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)),m=Math.max(g.original.endLineNumberExclusive-t.original.endLineNumberExclusive,f.modified.endLineNumberExclusive-t.modified.endLineNumberExclusive);let p,_;for(p=0;p<l;p++){const e=t.original.startLineNumber-p-1,n=t.modified.startLineNumber-p-1;if(e>i.length||n>r.length)break;if(h.contains(n)||c.contains(e))break;if(!me(i[e-1],r[n-1],s))break}for(p>0&&(c.addRange(new x.M(t.original.startLineNumber-p,t.original.startLineNumber)),h.addRange(new x.M(t.modified.startLineNumber-p,t.modified.startLineNumber))),_=0;_<m;_++){const e=t.original.endLineNumberExclusive+_,n=t.modified.endLineNumberExclusive+_;if(e>i.length||n>r.length)break;if(h.contains(n)||c.contains(e))break;if(!me(i[e-1],r[n-1],s))break}_>0&&(c.addRange(new x.M(t.original.endLineNumberExclusive,t.original.endLineNumberExclusive+_)),h.addRange(new x.M(t.modified.endLineNumberExclusive,t.modified.endLineNumberExclusive+_))),(p>0||_>0)&&(o[d]=new A(new x.M(t.original.startLineNumber-p,t.original.endLineNumberExclusive+_),new x.M(t.modified.startLineNumber-p,t.modified.endLineNumberExclusive+_)))}return o}(e.filter((e=>!a.has(e))),i,r,t,n,s);return(0,$.E4)(o,l),o=function(e){if(0===e.length)return e;e.sort((0,$.VE)((e=>e.original.startLineNumber),$.U9));const t=[e[0]];for(let n=1;n<e.length;n++){const i=t[t.length-1],r=e[n],s=r.original.startLineNumber-i.original.endLineNumberExclusive,o=r.modified.startLineNumber-i.modified.endLineNumberExclusive;s>=0&&o>=0&&s+o<=2?t[t.length-1]=i.join(r):t.push(r)}return t}(o),o=o.filter((e=>{const n=e.original.toOffsetRange().slice(t).map((e=>e.trim()));return n.join("\n").length>=15&&function(e,t){let n=0;for(const i of e)t(i)&&n++;return n}(n,(e=>e.length>=2))>=2})),o=function(e,t){const n=new ae.vJ(e);return t=t.filter((t=>(n.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive))||new A(new x.M(1,1),new x.M(1,1)))!==(0,ae.lx)(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)))),t}(e,o),o}function me(e,t,n){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;const i=(new ie).compute(new he([e],new u.Q(1,1,1,e.length),!1),new he([t],new u.Q(1,1,1,t.length),!1),n);let r=0;const s=Q.invert(i.diffs,e.length);for(const a of s)a.seq1Range.forEach((t=>{ee(e.charCodeAt(t))||r++}));const o=function(t){let n=0;for(let i=0;i<e.length;i++)ee(t.charCodeAt(i))||n++;return n}(e.length>t.length?e:t);return r/o>.6&&o>10}function pe(e,t,n){let i=n;return i=_e(e,t,i),i=_e(e,t,i),i=function(e,t,n){if(!e.getBoundaryScore||!t.getBoundaryScore)return n;for(let i=0;i<n.length;i++){const r=i>0?n[i-1]:void 0,s=n[i],o=i+1<n.length?n[i+1]:void 0,a=new I.L(r?r.seq1Range.endExclusive+1:0,o?o.seq1Range.start-1:e.length),l=new I.L(r?r.seq2Range.endExclusive+1:0,o?o.seq2Range.start-1:t.length);s.seq1Range.isEmpty?n[i]=be(s,e,t,a,l):s.seq2Range.isEmpty&&(n[i]=be(s.swap(),t,e,l,a).swap())}return n}(e,t,i),i}function _e(e,t,n){if(0===n.length)return n;const i=[];i.push(n[0]);for(let s=1;s<n.length;s++){const r=i[i.length-1];let o=n[s];if(o.seq1Range.isEmpty||o.seq2Range.isEmpty){const n=o.seq1Range.start-r.seq1Range.endExclusive;let s;for(s=1;s<=n&&(e.getElement(o.seq1Range.start-s)===e.getElement(o.seq1Range.endExclusive-s)&&t.getElement(o.seq2Range.start-s)===t.getElement(o.seq2Range.endExclusive-s));s++);if(s--,s===n){i[i.length-1]=new Q(new I.L(r.seq1Range.start,o.seq1Range.endExclusive-n),new I.L(r.seq2Range.start,o.seq2Range.endExclusive-n));continue}o=o.delta(-s)}i.push(o)}const r=[];for(let s=0;s<i.length-1;s++){const n=i[s+1];let o=i[s];if(o.seq1Range.isEmpty||o.seq2Range.isEmpty){const r=n.seq1Range.start-o.seq1Range.endExclusive;let a;for(a=0;a<r&&(e.isStronglyEqual(o.seq1Range.start+a,o.seq1Range.endExclusive+a)&&t.isStronglyEqual(o.seq2Range.start+a,o.seq2Range.endExclusive+a));a++);if(a===r){i[s+1]=new Q(new I.L(o.seq1Range.start+r,n.seq1Range.endExclusive),new I.L(o.seq2Range.start+r,n.seq2Range.endExclusive));continue}a>0&&(o=o.delta(a))}r.push(o)}return i.length>0&&r.push(i[i.length-1]),r}function be(e,t,n,i,r){let s=1;for(;e.seq1Range.start-s>=i.start&&e.seq2Range.start-s>=r.start&&n.isStronglyEqual(e.seq2Range.start-s,e.seq2Range.endExclusive-s)&&s<100;)s++;s--;let o=0;for(;e.seq1Range.start+o<i.endExclusive&&e.seq2Range.endExclusive+o<r.endExclusive&&n.isStronglyEqual(e.seq2Range.start+o,e.seq2Range.endExclusive+o)&&o<100;)o++;if(0===s&&0===o)return e;let a=0,l=-1;for(let h=-s;h<=o;h++){const i=e.seq2Range.start+h,r=e.seq2Range.endExclusive+h,s=e.seq1Range.start+h,o=t.getBoundaryScore(s)+n.getBoundaryScore(i)+n.getBoundaryScore(r);o>l&&(l=o,a=h)}return e.delta(a)}class ke{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-((0===e?0:ve(this.lines[e-1]))+(e===this.lines.length?0:ve(this.lines[e])))}getText(e){return this.lines.slice(e.start,e.endExclusive).join("\n")}isStronglyEqual(e,t){return this.lines[e]===this.lines[t]}}function ve(e){let t=0;for(;t<e.length&&(32===e.charCodeAt(t)||9===e.charCodeAt(t));)t++;return t}class Ce{constructor(){this.dynamicProgrammingDiffing=new ne,this.myersDiffingAlgorithm=new ie}computeDiff(e,t,n){if(e.length<=1&&(0,$.aI)(e,t,((e,t)=>e===t)))return new y([],[],!1);if(1===e.length&&0===e[0].length||1===t.length&&0===t[0].length)return new y([new M(new x.M(1,e.length+1),new x.M(1,t.length+1),[new O(new u.Q(1,1,e.length,e[e.length-1].length+1),new u.Q(1,1,t.length,t[t.length-1].length+1))])],[],!1);const i=0===n.maxComputationTimeMs?X.instance:new Z(n.maxComputationTimeMs),r=!n.ignoreTrimWhitespace,s=new Map;function o(e){let t=s.get(e);return void 0===t&&(t=s.size,s.set(e,t)),t}const a=e.map((e=>o(e.trim()))),l=t.map((e=>o(e.trim()))),h=new ke(a,e),c=new ke(l,t),d=(()=>h.length+c.length<1700?this.dynamicProgrammingDiffing.compute(h,c,i,((n,i)=>e[n]===t[i]?0===t[i].length?.1:1+Math.log(1+t[i].length):.99)):this.myersDiffingAlgorithm.compute(h,c,i))();let g=d.diffs,f=d.hitTimeout;g=pe(h,c,g),g=function(e,t,n){let i=n;if(0===i.length)return i;let r,s=0;do{r=!1;const o=[i[0]];for(let a=1;a<i.length;a++){const l=i[a],h=o[o.length-1];function c(t,n){const i=new I.L(h.seq1Range.endExclusive,l.seq1Range.start);return e.getText(i).replace(/\s/g,"").length<=4&&(t.seq1Range.length+t.seq2Range.length>5||n.seq1Range.length+n.seq2Range.length>5)}c(h,l)?(r=!0,o[o.length-1]=o[o.length-1].join(l)):o.push(l)}i=o}while(s++<10&&r);return i}(h,0,g);const m=[],p=n=>{if(r)for(let s=0;s<n;s++){const n=_+s,o=b+s;if(e[n]!==t[o]){const s=this.refineDiff(e,t,new Q(new I.L(n,n+1),new I.L(o,o+1)),i,r);for(const e of s.mappings)m.push(e);s.hitTimeout&&(f=!0)}}};let _=0,b=0;for(const u of g){(0,N.Ft)((()=>u.seq1Range.start-_===u.seq2Range.start-b));p(u.seq1Range.start-_),_=u.seq1Range.endExclusive,b=u.seq2Range.endExclusive;const n=this.refineDiff(e,t,u,i,r);n.hitTimeout&&(f=!0);for(const e of n.mappings)m.push(e)}p(e.length-_);const k=Le(m,e,t);let v=[];return n.computeMoves&&(v=this.computeMoves(k,e,t,a,l,i,r)),(0,N.Ft)((()=>{function n(e,t){if(e.lineNumber<1||e.lineNumber>t.length)return!1;const n=t[e.lineNumber-1];return!(e.column<1||e.column>n.length+1)}function i(e,t){return!(e.startLineNumber<1||e.startLineNumber>t.length+1)&&!(e.endLineNumberExclusive<1||e.endLineNumberExclusive>t.length+1)}for(const r of k){if(!r.innerChanges)return!1;for(const i of r.innerChanges){if(!(n(i.modifiedRange.getStartPosition(),t)&&n(i.modifiedRange.getEndPosition(),t)&&n(i.originalRange.getStartPosition(),e)&&n(i.originalRange.getEndPosition(),e)))return!1}if(!i(r.modified,t)||!i(r.original,e))return!1}return!0})),new y(k,v,f)}computeMoves(e,t,n,i,r,s,o){return fe(e,t,n,i,r,s).map((e=>{const i=Le(this.refineDiff(t,n,new Q(e.original.toOffsetRange(),e.modified.toOffsetRange()),s,o).mappings,t,n,!0);return new w(e,i)}))}refineDiff(e,t,n,i,r){var s;const o=(s=n,new A(new x.M(s.seq1Range.start+1,s.seq1Range.endExclusive+1),new x.M(s.seq2Range.start+1,s.seq2Range.endExclusive+1))).toRangeMapping2(e,t),a=new he(e,o.originalRange,r),l=new he(t,o.modifiedRange,r),h=a.length+l.length<500?this.dynamicProgrammingDiffing.compute(a,l,i):this.myersDiffingAlgorithm.compute(a,l,i),c=!1;let u=h.diffs;u=pe(a,l,u),u=function(e,t,n){const i=Q.invert(n,e.length),r=[];let s=new Y(0,0);function o(n,o){if(n.offset1<s.offset1||n.offset2<s.offset2)return;const a=e.findWordContaining(n.offset1),l=t.findWordContaining(n.offset2);if(!a||!l)return;let h=new Q(a,l);const c=h.intersect(o);let u=c.seq1Range.length,d=c.seq2Range.length;for(;i.length>0;){const n=i[0];if(!n.seq1Range.intersects(h.seq1Range)&&!n.seq2Range.intersects(h.seq2Range))break;const r=e.findWordContaining(n.seq1Range.start),s=t.findWordContaining(n.seq2Range.start),o=new Q(r,s),a=o.intersect(n);if(u+=a.seq1Range.length,d+=a.seq2Range.length,h=h.join(o),!(h.seq1Range.endExclusive>=n.seq1Range.endExclusive))break;i.shift()}u+d<2*(h.seq1Range.length+h.seq2Range.length)/3&&r.push(h),s=h.getEndExclusives()}for(;i.length>0;){const e=i.shift();e.seq1Range.isEmpty||(o(e.getStarts(),e),o(e.getEndExclusives().delta(-1),e))}return function(e,t){const n=[];for(;e.length>0||t.length>0;){const i=e[0],r=t[0];let s;s=i&&(!r||i.seq1Range.start<r.seq1Range.start)?e.shift():t.shift(),n.length>0&&n[n.length-1].seq1Range.endExclusive>=s.seq1Range.start?n[n.length-1]=n[n.length-1].join(s):n.push(s)}return n}(n,r)}(a,l,u),u=function(e,t,n){const i=[];for(const r of n){const e=i[i.length-1];e&&(r.seq1Range.start-e.seq1Range.endExclusive<=2||r.seq2Range.start-e.seq2Range.endExclusive<=2)?i[i.length-1]=new Q(e.seq1Range.join(r.seq1Range),e.seq2Range.join(r.seq2Range)):i.push(r)}return i}(0,0,u),u=function(e,t,n){let i=n;if(0===i.length)return i;let r,s=0;do{r=!1;const a=[i[0]];for(let l=1;l<i.length;l++){const h=i[l],c=a[a.length-1];function u(n,i){const r=new I.L(c.seq1Range.endExclusive,h.seq1Range.start);if(e.countLinesIn(r)>5||r.length>500)return!1;const s=e.getText(r).trim();if(s.length>20||s.split(/\r\n|\r|\n/).length>1)return!1;const o=e.countLinesIn(n.seq1Range),a=n.seq1Range.length,l=t.countLinesIn(n.seq2Range),u=n.seq2Range.length,d=e.countLinesIn(i.seq1Range),g=i.seq1Range.length,f=t.countLinesIn(i.seq2Range),m=i.seq2Range.length;function p(e){return Math.min(e,130)}return Math.pow(Math.pow(p(40*o+a),1.5)+Math.pow(p(40*l+u),1.5),1.5)+Math.pow(Math.pow(p(40*d+g),1.5)+Math.pow(p(40*f+m),1.5),1.5)>74184.96480721243}u(c,h)?(r=!0,a[a.length-1]=a[a.length-1].join(h)):a.push(h)}i=a}while(s++<10&&r);const o=[];return(0,$.kj)(i,((t,n,i)=>{let r=n;function s(e){return e.length>0&&e.trim().length<=3&&n.seq1Range.length+n.seq2Range.length>100}const a=e.extendToFullLines(n.seq1Range),l=e.getText(new I.L(a.start,n.seq1Range.start));s(l)&&(r=r.deltaStart(-l.length));const h=e.getText(new I.L(n.seq1Range.endExclusive,a.endExclusive));s(h)&&(r=r.deltaEnd(h.length));const c=Q.fromOffsetPairs(t?t.getEndExclusives():Y.zero,i?i.getStarts():Y.max),u=r.intersect(c);o.length>0&&u.getStarts().equals(o[o.length-1].getEndExclusives())?o[o.length-1]=o[o.length-1].join(u):o.push(u)})),o}(a,l,u);const d=u.map((e=>new O(a.translateRange(e.seq1Range),l.translateRange(e.seq2Range))));return{mappings:d,hitTimeout:h.hitTimeout}}}function Le(e,t,n,i=!1){const r=[];for(const s of(0,$.n)(e.map((e=>function(e,t,n){let i=0,r=0;1===e.modifiedRange.endColumn&&1===e.originalRange.endColumn&&e.originalRange.startLineNumber+i<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+i<=e.modifiedRange.endLineNumber&&(r=-1);e.modifiedRange.startColumn-1>=n[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+r&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+r&&(i=1);const s=new x.M(e.originalRange.startLineNumber+i,e.originalRange.endLineNumber+1+r),o=new x.M(e.modifiedRange.startLineNumber+i,e.modifiedRange.endLineNumber+1+r);return new M(s,o,[e])}(e,t,n))),((e,t)=>e.original.overlapOrTouch(t.original)||e.modified.overlapOrTouch(t.modified)))){const e=s[0],t=s[s.length-1];r.push(new M(e.original.join(t.original),e.modified.join(t.modified),s.map((e=>e.innerChanges[0]))))}return(0,N.Ft)((()=>{if(!i&&r.length>0){if(r[0].modified.startLineNumber!==r[0].original.startLineNumber)return!1;if(n.length-r[r.length-1].modified.endLineNumberExclusive!==t.length-r[r.length-1].original.endLineNumberExclusive)return!1}return(0,N.Xo)(r,((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))})),r}const ye=()=>new F,we=()=>new Ce;var Se=n(146),xe=n(6456),Ee=n(7661);function Ne(e){const t=[];for(const n of e){const e=Number(n);(e||0===e&&""!==n.replace(/\s/g,""))&&t.push(e)}return t}function Ie(e,t,n,i){return{red:e/255,blue:n/255,green:t/255,alpha:i}}function Te(e,t){const n=t.index,i=t[0].length;if(!n)return;const r=e.positionAt(n);return{startLineNumber:r.lineNumber,startColumn:r.column,endLineNumber:r.lineNumber,endColumn:r.column+i}}function Ae(e,t){if(!e)return;const n=Ee.Q1.Format.CSS.parseHex(t);return n?{range:e,color:Ie(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}:void 0}function De(e,t,n){if(!e||1!==t.length)return;const i=Ne(t[0].values());return{range:e,color:Ie(i[0],i[1],i[2],n?i[3]:1)}}function Re(e,t,n){if(!e||1!==t.length)return;const i=Ne(t[0].values()),r=new Ee.Q1(new Ee.hB(i[0],i[1]/100,i[2]/100,n?i[3]:1));return{range:e,color:Ie(r.rgba.r,r.rgba.g,r.rgba.b,r.rgba.a)}}function Me(e,t){return"string"===typeof e?[...e.matchAll(t)]:e.findMatches(t)}function Oe(e){return e&&"function"===typeof e.getValue&&"function"===typeof e.positionAt?function(e){const t=[],n=Me(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/gm);if(n.length>0)for(const i of n){const n=i.filter((e=>void 0!==e)),r=n[1],s=n[2];if(!s)continue;let o;if("rgb"===r){const t=/^\(\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;o=De(Te(e,i),Me(s,t),!1)}else if("rgba"===r){const t=/^\(\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;o=De(Te(e,i),Me(s,t),!0)}else if("hsl"===r){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;o=Re(Te(e,i),Me(s,t),!1)}else if("hsla"===r){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;o=Re(Te(e,i),Me(s,t),!0)}else"#"===r&&(o=Ae(Te(e,i),r+s));o&&t.push(o)}return t}(e):[]}var Be=n(6691),Fe=n(796);class Pe{constructor(){this._workerTextModelSyncServer=new Fe.WorkerTextModelSyncServer}dispose(){}_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){const i=this._getModel(e);return i?L.UnicodeTextModelHighlighter.computeUnicodeHighlights(i,t,n):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async $findSectionHeaders(e,t){const n=this._getModel(e);return n?(0,Be.findSectionHeaders)(n,t):[]}async $computeDiff(e,t,n,i){const r=this._getModel(e),s=this._getModel(t);if(!r||!s)return null;return ze.computeDiff(r,s,n,i)}static computeDiff(e,t,n,i){const r="advanced"===i?we():ye(),s=e.getLinesContent(),o=t.getLinesContent(),a=r.computeDiff(s,o,n);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:!(a.changes.length>0)&&this._modelsAreIdentical(e,t),quitEarly:a.hitTimeout,changes:l(a.changes),moves:a.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){const n=e.getLineCount();if(n!==t.getLineCount())return!1;for(let i=1;i<=n;i++){if(e.getLineContent(i)!==t.getLineContent(i))return!1}return!0}static{this._diffLimit=1e5}async $computeMoreMinimalEdits(e,t,n){const i=this._getModel(e);if(!i)return t;const r=[];let s;t=t.slice(0).sort(((e,t)=>{if(e.range&&t.range)return u.Q.compareRangesUsingStarts(e.range,t.range);return(e.range?0:1)-(t.range?0:1)}));let a=0;for(let o=1;o<t.length;o++)u.Q.getEndPosition(t[a].range).equals(u.Q.getStartPosition(t[o].range))?(t[a].range=u.Q.fromPositions(u.Q.getStartPosition(t[a].range),u.Q.getEndPosition(t[o].range)),t[a].text+=t[o].text):(a++,t[a]=t[o]);t.length=a+1;for(let{range:l,text:h,eol:c}of t){if("number"===typeof c&&(s=c),u.Q.isEmpty(l)&&!h)continue;const e=i.getValueInRange(l);if(h=h.replace(/\r\n|\n|\r/g,i.eol),e===h)continue;if(Math.max(h.length,e.length)>ze._diffLimit){r.push({range:l,text:h});continue}const t=o(e,h,n),a=i.offsetAt(u.Q.lift(l).getStartPosition());for(const n of t){const e=i.positionAt(a+n.originalStart),t=i.positionAt(a+n.originalStart+n.originalLength),s={text:h.substr(n.modifiedStart,n.modifiedLength),range:{startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:t.lineNumber,endColumn:t.column}};i.getValueInRange(s.range)!==s.text&&r.push(s)}}return"number"===typeof s&&r.push({eol:s,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),r}async $computeLinks(e){const t=this._getModel(e);return t?function(e){return e&&"function"===typeof e.getLineCount&&"function"===typeof e.getLineContent?_.computeLinks(e):[]}(t):null}async $computeDefaultDocumentColors(e){const t=this._getModel(e);return t?Oe(t):null}static{this._suggestionsLimit=1e4}async $textualSuggest(e,t,n,i){const r=new C.W,s=new RegExp(n,i),o=new Set;e:for(const a of e){const e=this._getModel(a);if(e)for(const n of e.words(s))if(n!==t&&isNaN(Number(n))&&(o.add(n),o.size>ze._suggestionsLimit))break e}return{words:Array.from(o),duration:r.elapsed()}}async $computeWordRanges(e,t,n,i){const r=this._getModel(e);if(!r)return Object.create(null);const s=new RegExp(n,i),o=Object.create(null);for(let a=t.startLineNumber;a<t.endLineNumber;a++){const e=r.getLineWords(a,s);for(const t of e){if(!isNaN(Number(t.word)))continue;let e=o[t.word];e||(e=[],o[t.word]=e),e.push({startLineNumber:a,startColumn:t.startColumn,endLineNumber:a,endColumn:t.endColumn})}}return o}async $navigateValueSet(e,t,n,i,r){const s=this._getModel(e);if(!s)return null;const o=new RegExp(i,r);t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1});const a=s.getValueInRange(t),l=s.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},o);if(!l)return null;const h=s.getValueInRange(l);return b.INSTANCE.navigateValueSet(t,a,l,h,n)}}class ze extends Pe{constructor(e,t){super(),this._host=e,this._foreignModuleFactory=t,this._foreignModule=null}async $ping(){return"pong"}$loadForeignModule(e,t,i){const r={host:(0,Se.kT)(i,((e,t)=>this._host.$fhr(e,t))),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(r,t),Promise.resolve((0,Se.V0)(this._foreignModule))):new Promise(((i,s)=>{const o=e=>{this._foreignModule=e.create(r,t),i((0,Se.V0)(this._foreignModule))};{const t=xe.zl.asBrowserUri(`${e}.js`).toString(!0);n(9204)(`${t}`).then(o).catch(s)}}))}$fmr(e,t){if(!this._foreignModule||"function"!==typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(n){return Promise.reject(n)}}}function Ve(e){return new ze(v.EditorWorkerHost.getChannel(e),null)}"function"===typeof importScripts&&(globalThis.monaco=(0,k.createMonacoBaseAPI)())},920:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IEditorWorkerService:()=>i});const i=(0,n(3591).u1)("editorWorkerService")},718:(e,t,n)=>{"use strict";n.r(t),n.d(t,{EditorWorkerHost:()=>i});class i{static{this.CHANNEL_NAME="editorWorkerHost"}static getChannel(e){return e.getChannel(i.CHANNEL_NAME)}static setChannel(e,t){e.setChannel(i.CHANNEL_NAME,t)}}},6691:(e,t,n)=>{"use strict";n.r(t),n.d(t,{findSectionHeaders:()=>s});const i=new RegExp("\\bMARK:\\s*(.*)$","d"),r=/^-+|-+$/g;function s(e,t){let n=[];if(t.findRegionSectionHeaders&&t.foldingRules?.markers){const i=function(e,t){const n=[],i=e.getLineCount();for(let r=1;r<=i;r++){const i=e.getLineContent(r),s=i.match(t.foldingRules.markers.start);if(s){const e={startLineNumber:r,startColumn:s[0].length+1,endLineNumber:r,endColumn:i.length+1};if(e.endColumn>e.startColumn){const t={range:e,...a(i.substring(s[0].length)),shouldBeInComments:!1};(t.text||t.hasSeparatorLine)&&n.push(t)}}}return n}(e,t);n=n.concat(i)}if(t.findMarkSectionHeaders){const t=function(e){const t=[],n=e.getLineCount();for(let i=1;i<=n;i++){o(e.getLineContent(i),i,t)}return t}(e);n=n.concat(t)}return n}function o(e,t,n){i.lastIndex=0;const r=i.exec(e);if(r){const e={startLineNumber:t,startColumn:r.indices[1][0]+1,endLineNumber:t,endColumn:r.indices[1][1]+1};if(e.endColumn>e.startColumn){const t={range:e,...a(r[1]),shouldBeInComments:!0};(t.text||t.hasSeparatorLine)&&n.push(t)}}}function a(e){const t=(e=e.trim()).startsWith("-");return{text:e=e.replace(r,""),hasSeparatorLine:t}}},5628:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getIconClasses:()=>d});var i,r=n(6456),s=n(9403),o=n(9400),a=n(3941);!function(e){e[e.FILE=0]="FILE",e[e.FOLDER=1]="FOLDER",e[e.ROOT_FOLDER=2]="ROOT_FOLDER"}(i||(i={}));var l,h,c=n(9493);!function(e){e.isThemeColor=function(e){return e&&"object"===typeof e&&"string"===typeof e.id}}(l||(l={})),function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9-]+",e.iconModifierExpression="~[A-Za-z]+",e.iconNameCharacter="[A-Za-z0-9~-]";const t=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function n(e){const i=t.exec(e.id);if(!i)return n(c.W.error);const[,r,s]=i,o=["codicon","codicon-"+r];return s&&o.push("codicon-modifier-"+s.substring(1)),o}e.asClassNameArray=n,e.asClassName=function(e){return n(e).join(" ")},e.asCSSSelector=function(e){return"."+n(e).join(".")},e.isThemeIcon=function(e){return e&&"object"===typeof e&&"string"===typeof e.id&&("undefined"===typeof e.color||l.isThemeColor(e.color))};const i=new RegExp(`^\\$\\((${e.iconNameExpression}(?:${e.iconModifierExpression})?)\\)$`);e.fromString=function(e){const t=i.exec(e);if(!t)return;const[,n]=t;return{id:n}},e.fromId=function(e){return{id:e}},e.modify=function(e,t){let n=e.id;const i=n.lastIndexOf("~");return-1!==i&&(n=n.substring(0,i)),t&&(n=`${n}~${t}`),{id:n}},e.getModifier=function(e){const t=e.id.lastIndexOf("~");if(-1!==t)return e.id.substring(t+1)},e.isEqual=function(e,t){return e.id===t.id&&e.color?.id===t.color?.id}}(h||(h={}));const u=/(?:\/|^)(?:([^\/]+)\/)?([^\/]+)$/;function d(e,t,n,l,c){if(h.isThemeIcon(c))return[`codicon-${c.id}`,"predefined-file-icon"];if(o.r.isUri(c))return[];const d=l===i.ROOT_FOLDER?["rootfolder-icon"]:l===i.FOLDER?["folder-icon"]:["file-icon"];if(n){let o;if(n.scheme===r.ny.data){o=s.B6.parseMetaData(n).get(s.B6.META_DATA_LABEL)}else{const e=n.path.match(u);e?(o=g(e[2].toLowerCase()),e[1]&&d.push(`${g(e[1].toLowerCase())}-name-dir-icon`)):o=g(n.authority.toLowerCase())}if(l===i.ROOT_FOLDER)d.push(`${o}-root-name-folder-icon`);else if(l===i.FOLDER)d.push(`${o}-name-folder-icon`);else{if(o){if(d.push(`${o}-name-file-icon`),d.push("name-file-icon"),o.length<=255){const e=o.split(".");for(let t=1;t<e.length;t++)d.push(`${e.slice(t).join(".")}-ext-file-icon`)}d.push("ext-file-icon")}const i=function(e,t,n){if(!n)return null;let i=null;if(n.scheme===r.ny.data){const e=s.B6.parseMetaData(n).get(s.B6.META_DATA_MIME);e&&(i=t.getLanguageIdByMimeType(e))}else{const t=e.getModel(n);t&&(i=t.getLanguageId())}if(i&&i!==a.vH)return i;return t.guessLanguageIdByFilepathOrFirstLine(n)}(e,t,n);i&&d.push(`${g(i)}-lang-file-icon`)}}return d}function g(e){return e.replace(/[\s]/g,"/")}},8709:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ILanguageFeatureDebounceService:()=>m,LanguageFeatureDebounceService:()=>k});var i=n(5600),r=n(4320);function s(e,t,n){return Math.min(Math.max(e,t),n)}class o{constructor(){this._n=1,this._val=0}update(e){return this._val=this._val+(e-this._val)/this._n,this._n+=1,this._val}get value(){return this._val}}class a{constructor(e){this._n=0,this._val=0,this._values=[],this._index=0,this._sum=0,this._values=new Array(e),this._values.fill(0,0,e)}update(e){const t=this._values[this._index];return this._values[this._index]=e,this._index=(this._index+1)%this._values.length,this._sum-=t,this._sum+=e,this._n<this._values.length&&(this._n+=1),this._val=this._sum/this._n,this._val}get value(){return this._val}}var l=n(3591);const h=(0,l.u1)("environmentService");var c=n(4621),u=n(3511),d=n(6456),g=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},f=function(e,t){return function(n,i){t(n,i,e)}};const m=(0,l.u1)("ILanguageFeatureDebounceService");var p;!function(e){const t=new WeakMap;let n=0;e.of=function(e){let i=t.get(e);return void 0===i&&(i=++n,t.set(e,i)),i}}(p||(p={}));class _{constructor(e){this._default=e}get(e){return this._default}update(e,t){return this._default}default(){return this._default}}class b{constructor(e,t,n,i,s,o){this._logService=e,this._name=t,this._registry=n,this._default=i,this._min=s,this._max=o,this._cache=new r.qK(50,.7)}_key(e){return e.id+this._registry.all(e).reduce(((e,t)=>(0,i.sN)(p.of(t),e)),0)}get(e){const t=this._key(e),n=this._cache.get(t);return n?s(n.value,this._min,this._max):this.default()}update(e,t){const n=this._key(e);let i=this._cache.get(n);i||(i=new a(6),this._cache.set(n,i));const r=s(i.update(t),this._min,this._max);return(0,d.v$)(e.uri,"output")||this._logService.trace(`[DEBOUNCE: ${this._name}] for ${e.uri.toString()} is ${r}ms`),r}_overall(){const e=new o;for(const[,t]of this._cache)e.update(t.value);return e.value}default(){return s(0|this._overall()||this._default,this._min,this._max)}}let k=class{constructor(e,t){this._logService=e,this._data=new Map,this._isDev=t.isExtensionDevelopment||!t.isBuilt}for(e,t,n){const i=n?.min??50,r=n?.max??i**2,s=n?.key??void 0,o=`${p.of(e)},${i}${s?","+s:""}`;let a=this._data.get(o);return a||(this._isDev?(this._logService.debug(`[DEBOUNCE: ${t}] is disabled in developed mode`),a=new _(1.5*i)):a=new b(this._logService,t,e,0|this._overallAverage()||1.5*i,i,r),this._data.set(o,a)),a}_overallAverage(){const e=new o;for(const t of this._data.values())e.update(t.default());return e.value}};k=g([f(0,u.rr),f(1,h)],k),(0,c.v)(m,k,1)},6942:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ILanguageFeaturesService:()=>i});const i=(0,n(3591).u1)("ILanguageFeaturesService")},2661:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LanguageFeaturesService:()=>m});var i=n(1234),r=n(1484),s=n(6223),o=n(6958),a=n(8821);function l(e,t,n,i,r,s){if(Array.isArray(e)){let o=0;for(const a of e){const e=l(a,t,n,i,r,s);if(10===e)return e;e>o&&(o=e)}return o}if("string"===typeof e)return i?"*"===e?5:e===n?10:0:0;if(e){const{language:l,pattern:h,scheme:c,hasAccessToAllModels:u,notebookType:d}=e;if(!i&&!u)return 0;d&&r&&(t=r);let g=0;if(c)if(c===t.scheme)g=10;else{if("*"!==c)return 0;g=5}if(l)if(l===n)g=10;else{if("*"!==l)return 0;g=Math.max(g,5)}if(d)if(d===s)g=10;else{if("*"!==d||void 0===s)return 0;g=Math.max(g,5)}if(h){let e;if(e="string"===typeof h?h:{...h,base:(0,a.S8)(h.base)},e!==t.fsPath&&!(0,o.YW)(e,t.fsPath))return 0;g=10}return g}return 0}function h(e){return"string"!==typeof e&&(Array.isArray(e)?e.every(h):!!e.exclusive)}class c{constructor(e,t,n,i,r){this.uri=e,this.languageId=t,this.notebookUri=n,this.notebookType=i,this.recursive=r}equals(e){return this.notebookType===e.notebookType&&this.languageId===e.languageId&&this.uri.toString()===e.uri.toString()&&this.notebookUri?.toString()===e.notebookUri?.toString()&&this.recursive===e.recursive}}class u{constructor(e){this._notebookInfoResolver=e,this._clock=0,this._entries=[],this._onDidChange=new i.vl,this.onDidChange=this._onDidChange.event}register(e,t){let n={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(n),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),(0,r.s)((()=>{if(n){const e=this._entries.indexOf(n);e>=0&&(this._entries.splice(e,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),n=void 0)}}))}has(e){return this.all(e).length>0}all(e){if(!e)return[];this._updateScores(e,!1);const t=[];for(const n of this._entries)n._score>0&&t.push(n.provider);return t}ordered(e,t=!1){const n=[];return this._orderedForEach(e,t,(e=>n.push(e.provider))),n}orderedGroups(e){const t=[];let n,i;return this._orderedForEach(e,!1,(e=>{n&&i===e._score?n.push(e.provider):(i=e._score,n=[e.provider],t.push(n))})),t}_orderedForEach(e,t,n){this._updateScores(e,t);for(const i of this._entries)i._score>0&&n(i)}_updateScores(e,t){const n=this._notebookInfoResolver?.(e.uri),i=n?new c(e.uri,e.getLanguageId(),n.uri,n.type,t):new c(e.uri,e.getLanguageId(),void 0,void 0,t);if(!this._lastCandidate?.equals(i)){this._lastCandidate=i;for(const n of this._entries)if(n._score=l(n.selector,i.uri,i.languageId,(0,s.vd)(e),i.notebookUri,i.notebookType),h(n.selector)&&n._score>0){if(!t){for(const e of this._entries)e._score=0;n._score=1e3;break}n._score=0}this._entries.sort(u._compareByScoreAndTime)}}static _compareByScoreAndTime(e,t){return e._score<t._score?1:e._score>t._score?-1:d(e.selector)&&!d(t.selector)?1:!d(e.selector)&&d(t.selector)?-1:e._time<t._time?1:e._time>t._time?-1:0}}function d(e){return"string"!==typeof e&&(Array.isArray(e)?e.some(d):Boolean(e.isBuiltin))}var g=n(6942),f=n(4621);class m{constructor(){this.referenceProvider=new u(this._score.bind(this)),this.renameProvider=new u(this._score.bind(this)),this.newSymbolNamesProvider=new u(this._score.bind(this)),this.codeActionProvider=new u(this._score.bind(this)),this.definitionProvider=new u(this._score.bind(this)),this.typeDefinitionProvider=new u(this._score.bind(this)),this.declarationProvider=new u(this._score.bind(this)),this.implementationProvider=new u(this._score.bind(this)),this.documentSymbolProvider=new u(this._score.bind(this)),this.inlayHintsProvider=new u(this._score.bind(this)),this.colorProvider=new u(this._score.bind(this)),this.codeLensProvider=new u(this._score.bind(this)),this.documentFormattingEditProvider=new u(this._score.bind(this)),this.documentRangeFormattingEditProvider=new u(this._score.bind(this)),this.onTypeFormattingEditProvider=new u(this._score.bind(this)),this.signatureHelpProvider=new u(this._score.bind(this)),this.hoverProvider=new u(this._score.bind(this)),this.documentHighlightProvider=new u(this._score.bind(this)),this.multiDocumentHighlightProvider=new u(this._score.bind(this)),this.selectionRangeProvider=new u(this._score.bind(this)),this.foldingRangeProvider=new u(this._score.bind(this)),this.linkProvider=new u(this._score.bind(this)),this.inlineCompletionsProvider=new u(this._score.bind(this)),this.inlineEditProvider=new u(this._score.bind(this)),this.completionProvider=new u(this._score.bind(this)),this.linkedEditingRangeProvider=new u(this._score.bind(this)),this.documentRangeSemanticTokensProvider=new u(this._score.bind(this)),this.documentSemanticTokensProvider=new u(this._score.bind(this)),this.documentDropEditProvider=new u(this._score.bind(this)),this.documentPasteEditProvider=new u(this._score.bind(this))}_score(e){return this._notebookTypeResolver?.(e)}}(0,f.v)(g.ILanguageFeaturesService,m,1)},7596:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LanguageService:()=>D});var i=n(1234),r=n(1484),s=n(9259),o=n(9861),a=n(2083),l=n(3941);const h=(e,t)=>e===t;new WeakMap;class c{constructor(e,t,n){this.owner=e,this.debugNameSource=t,this.referenceFn=n}getDebugName(e){return function(e,t){const n=d.get(e);if(n)return n;const i=function(e,t){const n=d.get(e);if(n)return n;const i=t.owner?function(e){const t=f.get(e);if(t)return t;const n=function(e){const t=e.constructor;if(t)return t.name;return"Object"}(e);let i=g.get(n)??0;i++,g.set(n,i);const r=1===i?n:`${n}#${i}`;return f.set(e,r),r}(t.owner)+".":"";let r;const s=t.debugNameSource;if(void 0!==s){if("function"!==typeof s)return i+s;if(r=s(),void 0!==r)return i+r}const o=t.referenceFn;if(void 0!==o&&(r=m(o),void 0!==r))return i+r;if(void 0!==t.owner){const n=function(e,t){for(const n in e)if(e[n]===t)return n;return}(t.owner,e);if(void 0!==n)return i+n}return}(e,t);if(i){let t=u.get(i)??0;t++,u.set(i,t);const n=1===t?i:`${i}#${t}`;return d.set(e,n),n}return}(e,this)}}const u=new Map,d=new WeakMap;const g=new Map,f=new WeakMap;function m(e){const t=e.toString(),n=/\/\*\*\s*@description\s*([^*]*)\*\//.exec(t),i=n?n[1]:void 0;return i?.trim()}let p,_,b,k;function v(){return p}class C{get TChange(){return null}reportChanges(){this.get()}read(e){return e?e.readObservable(this):this.get()}map(e,t){const n=void 0===t?void 0:e,i=void 0===t?e:t;return k({owner:n,debugName:()=>{const e=m(i);if(void 0!==e)return e;const t=/^\s*\(?\s*([a-zA-Z_$][a-zA-Z_$0-9]*)\s*\)?\s*=>\s*\1(?:\??)\.([a-zA-Z_$][a-zA-Z_$0-9]*)\s*$/.exec(i.toString());return t?`${this.debugName}.${t[2]}`:n?void 0:`${this.debugName} (mapped)`},debugReferenceFn:i},(e=>i(this.read(e),e)))}flatten(){return k({owner:void 0,debugName:()=>`${this.debugName} (flattened)`},(e=>this.read(e).read(e)))}recomputeInitiallyAndOnChange(e,t){return e.add(_(this,t)),this}keepObserved(e){return e.add(b(this)),this}}class L extends C{constructor(){super(...arguments),this.observers=new Set}addObserver(e){const t=this.observers.size;this.observers.add(e),0===t&&this.onFirstObserverAdded()}removeObserver(e){this.observers.delete(e)&&0===this.observers.size&&this.onLastObserverRemoved()}onFirstObserverAdded(){}onLastObserverRemoved(){}}function y(e,t){const n=new w(e,t);try{e(n)}finally{n.finish()}}class w{constructor(e,t){this._fn=e,this._getDebugName=t,this.updatingObservers=[],v()?.handleBeginTransaction(this)}getDebugName(){return this._getDebugName?this._getDebugName():m(this._fn)}updateObserver(e,t){this.updatingObservers.push({observer:e,observable:t}),e.beginUpdate(t)}finish(){const e=this.updatingObservers;for(let t=0;t<e.length;t++){const{observer:n,observable:i}=e[t];n.endUpdate(i)}this.updatingObservers=null,v()?.handleEndTransaction()}}var S=n(6782);!function(e){k=e}((function(e,t){return new x(new c(e.owner,e.debugName,e.debugReferenceFn),t,void 0,void 0,e.onLastObserverRemoved,e.equalsFn??h)}));class x extends L{get debugName(){return this._debugNameData.getDebugName(this)??"(anonymous)"}constructor(e,t,n,i,r=void 0,s){super(),this._debugNameData=e,this._computeFn=t,this.createChangeSummary=n,this._handleChange=i,this._handleLastObserverRemoved=r,this._equalityComparator=s,this.state=0,this.value=void 0,this.updateCount=0,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=void 0,this.changeSummary=this.createChangeSummary?.(),v()?.handleDerivedCreated(this)}onLastObserverRemoved(){this.state=0,this.value=void 0;for(const e of this.dependencies)e.removeObserver(this);this.dependencies.clear(),this._handleLastObserverRemoved?.()}get(){if(0===this.observers.size){const e=this._computeFn(this,this.createChangeSummary?.());return this.onLastObserverRemoved(),e}do{if(1===this.state)for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break;1===this.state&&(this.state=3),this._recomputeIfNeeded()}while(3!==this.state);return this.value}_recomputeIfNeeded(){if(3===this.state)return;const e=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=e;const t=0!==this.state,n=this.value;this.state=3;const i=this.changeSummary;this.changeSummary=this.createChangeSummary?.();try{this.value=this._computeFn(this,i)}finally{for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}const r=t&&!this._equalityComparator(n,this.value);if(v()?.handleDerivedRecomputed(this,{oldValue:n,newValue:this.value,change:void 0,didChange:r,hadValue:t}),r)for(const s of this.observers)s.handleChange(this,void 0)}toString(){return`LazyDerived<${this.debugName}>`}beginUpdate(e){this.updateCount++;const t=1===this.updateCount;if(3===this.state&&(this.state=1,!t))for(const n of this.observers)n.handlePossibleChange(this);if(t)for(const n of this.observers)n.beginUpdate(this)}endUpdate(e){if(this.updateCount--,0===this.updateCount){const e=[...this.observers];for(const t of e)t.endUpdate(this)}(0,S.Ft)((()=>this.updateCount>=0))}handlePossibleChange(e){if(3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){this.state=1;for(const e of this.observers)e.handlePossibleChange(this)}}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){const n=!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary),i=3===this.state;if(n&&(1===this.state||i)&&(this.state=2,i))for(const e of this.observers)e.handlePossibleChange(this)}}readObservable(e){e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}addObserver(e){const t=!this.observers.has(e)&&this.updateCount>0;super.addObserver(e),t&&e.beginUpdate(this)}removeObserver(e){const t=this.observers.has(e)&&this.updateCount>0;super.removeObserver(e),t&&e.endUpdate(this)}}function E(e){return new N(new c(void 0,void 0,e),e,void 0,void 0)}class N{get debugName(){return this._debugNameData.getDebugName(this)??"(anonymous)"}constructor(e,t,n,i){this._debugNameData=e,this._runFn=t,this.createChangeSummary=n,this._handleChange=i,this.state=2,this.updateCount=0,this.disposed=!1,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=this.createChangeSummary?.(),v()?.handleAutorunCreated(this),this._runIfNeeded(),(0,r.Ay)(this)}dispose(){this.disposed=!0;for(const e of this.dependencies)e.removeObserver(this);this.dependencies.clear(),(0,r.VD)(this)}_runIfNeeded(){if(3===this.state)return;const e=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=e,this.state=3;const t=this.disposed;try{if(!t){v()?.handleAutorunTriggered(this);const e=this.changeSummary;this.changeSummary=this.createChangeSummary?.(),this._runFn(this,e)}}finally{t||v()?.handleAutorunFinished(this);for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}}toString(){return`Autorun<${this.debugName}>`}beginUpdate(){3===this.state&&(this.state=1),this.updateCount++}endUpdate(){if(1===this.updateCount)do{if(1===this.state){this.state=3;for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break}this._runIfNeeded()}while(3!==this.state);this.updateCount--,(0,S.Ft)((()=>this.updateCount>=0))}handlePossibleChange(e){3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)&&(this.state=1)}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){(!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary))&&(this.state=2)}}readObservable(e){if(this.disposed)return e.get();e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}}!function(e){e.Observer=N}(E||(E={}));function I(...e){let t,n,i;return 3===e.length?[t,n,i]=e:[n,i]=e,new T(new c(t,void 0,i),n,i,(()=>T.globalTransaction),h)}class T extends L{constructor(e,t,n,i,r){super(),this._debugNameData=e,this.event=t,this._getValue=n,this._getTransaction=i,this._equalityComparator=r,this.hasValue=!1,this.handleEvent=e=>{const t=this._getValue(e),n=this.value,i=!this.hasValue||!this._equalityComparator(n,t);let r=!1;i&&(this.value=t,this.hasValue&&(r=!0,function(e,t,n){e?t(e):y(t,n)}(this._getTransaction(),(e=>{v()?.handleFromEventObservableTriggered(this,{oldValue:n,newValue:t,change:void 0,didChange:i,hadValue:this.hasValue});for(const t of this.observers)e.updateObserver(t,this),t.handleChange(this,void 0)}),(()=>{const e=this.getDebugName();return"Event fired"+(e?`: ${e}`:"")}))),this.hasValue=!0),r||v()?.handleFromEventObservableTriggered(this,{oldValue:n,newValue:t,change:void 0,didChange:i,hadValue:this.hasValue})}}getDebugName(){return this._debugNameData.getDebugName(this)}get debugName(){const e=this.getDebugName();return"From Event"+(e?`: ${e}`:"")}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0,this.hasValue=!1,this.value=void 0}get(){if(this.subscription)return this.hasValue||this.handleEvent(void 0),this.value;return this._getValue(void 0)}}!function(e){e.Observer=T,e.batchEventsGlobally=function(e,t){let n=!1;void 0===T.globalTransaction&&(T.globalTransaction=e,n=!0);try{t()}finally{n&&(T.globalTransaction=void 0)}}}(I||(I={}));!function(e){b=e}((function(e){const t=new A(!1,void 0);return e.addObserver(t),(0,r.s)((()=>{e.removeObserver(t)}))})),function(e){_=e}((function(e,t){const n=new A(!0,t);return e.addObserver(n),t?t(e.get()):e.reportChanges(),(0,r.s)((()=>{e.removeObserver(n)}))}));class A{constructor(e,t){this._forceRecompute=e,this._handleValue=t,this._counter=0}beginUpdate(e){this._counter++}endUpdate(e){this._counter--,0===this._counter&&this._forceRecompute&&(this._handleValue?this._handleValue(e.get()):e.reportChanges())}handlePossibleChange(e){}handleChange(e,t){}}n(4383);class D extends r.jG{static{this.instanceCount=0}constructor(e=!1){super(),this._onDidRequestBasicLanguageFeatures=this._register(new i.vl),this.onDidRequestBasicLanguageFeatures=this._onDidRequestBasicLanguageFeatures.event,this._onDidRequestRichLanguageFeatures=this._register(new i.vl),this.onDidRequestRichLanguageFeatures=this._onDidRequestRichLanguageFeatures.event,this._onDidChange=this._register(new i.vl({leakWarningThreshold:200})),this.onDidChange=this._onDidChange.event,this._requestedBasicLanguages=new Set,this._requestedRichLanguages=new Set,D.instanceCount++,this._registry=this._register(new s.LanguagesRegistry(!0,e)),this.languageIdCodec=this._registry.languageIdCodec,this._register(this._registry.onDidChange((()=>this._onDidChange.fire())))}dispose(){D.instanceCount--,super.dispose()}isRegisteredLanguageId(e){return this._registry.isRegisteredLanguageId(e)}getLanguageIdByLanguageName(e){return this._registry.getLanguageIdByLanguageName(e)}getLanguageIdByMimeType(e){return this._registry.getLanguageIdByMimeType(e)}guessLanguageIdByFilepathOrFirstLine(e,t){const n=this._registry.guessLanguageIdByFilepathOrFirstLine(e,t);return(0,o.Fy)(n,null)}createById(e){return new R(this.onDidChange,(()=>this._createAndGetLanguageIdentifier(e)))}createByFilepathOrFirstLine(e,t){return new R(this.onDidChange,(()=>{const n=this.guessLanguageIdByFilepathOrFirstLine(e,t);return this._createAndGetLanguageIdentifier(n)}))}_createAndGetLanguageIdentifier(e){return e&&this.isRegisteredLanguageId(e)||(e=l.vH),e}requestBasicLanguageFeatures(e){this._requestedBasicLanguages.has(e)||(this._requestedBasicLanguages.add(e),this._onDidRequestBasicLanguageFeatures.fire(e))}requestRichLanguageFeatures(e){this._requestedRichLanguages.has(e)||(this._requestedRichLanguages.add(e),this.requestBasicLanguageFeatures(e),a.dG.getOrCreate(e),this._onDidRequestRichLanguageFeatures.fire(e))}}class R{constructor(e,t){this._value=I(this,e,(()=>t())),this.onDidChange=i.Jh.fromObservable(this._value)}get languageId(){return this._value.get()}}},9908:(e,t,n)=>{"use strict";n.r(t),n.d(t,{clearPlatformLanguageAssociations:()=>f,getLanguageIds:()=>m,registerPlatformLanguageAssociation:()=>g});var i=n(6958),r=n(1939),s=n(6456),o=n(8821),a=n(9403),l=n(1508),h=n(3941);let c=[],u=[],d=[];function g(e,t=!1){!function(e,t,n){const r=function(e,t){return{id:e.id,mime:e.mime,filename:e.filename,extension:e.extension,filepattern:e.filepattern,firstline:e.firstline,userConfigured:t,filenameLowercase:e.filename?e.filename.toLowerCase():void 0,extensionLowercase:e.extension?e.extension.toLowerCase():void 0,filepatternLowercase:e.filepattern?(0,i.qg)(e.filepattern.toLowerCase()):void 0,filepatternOnPath:!!e.filepattern&&e.filepattern.indexOf(o.SA.sep)>=0}}(e,t);c.push(r),r.userConfigured?d.push(r):u.push(r);n&&!r.userConfigured&&c.forEach((e=>{e.mime===r.mime||e.userConfigured||(r.extension&&e.extension===r.extension&&console.warn(`Overwriting extension <<${r.extension}>> to now point to mime <<${r.mime}>>`),r.filename&&e.filename===r.filename&&console.warn(`Overwriting filename <<${r.filename}>> to now point to mime <<${r.mime}>>`),r.filepattern&&e.filepattern===r.filepattern&&console.warn(`Overwriting filepattern <<${r.filepattern}>> to now point to mime <<${r.mime}>>`),r.firstline&&e.firstline===r.firstline&&console.warn(`Overwriting firstline <<${r.firstline}>> to now point to mime <<${r.mime}>>`))}))}(e,!1,t)}function f(){c=c.filter((e=>e.userConfigured)),u=[]}function m(e,t){return function(e,t){let n;if(e)switch(e.scheme){case s.ny.file:n=e.fsPath;break;case s.ny.data:n=a.B6.parseMetaData(e).get(a.B6.META_DATA_LABEL);break;case s.ny.vscodeNotebookCell:n=void 0;break;default:n=e.path}if(!n)return[{id:"unknown",mime:r.K.unknown}];n=n.toLowerCase();const i=(0,o.P8)(n),g=p(n,i,d);if(g)return[g,{id:h.vH,mime:r.K.text}];const f=p(n,i,u);if(f)return[f,{id:h.vH,mime:r.K.text}];if(t){const e=function(e){(0,l.LU)(e)&&(e=e.substr(1));if(e.length>0)for(let t=c.length-1;t>=0;t--){const n=c[t];if(!n.firstline)continue;const i=e.match(n.firstline);if(i&&i.length>0)return n}return}(t);if(e)return[e,{id:h.vH,mime:r.K.text}]}return[{id:"unknown",mime:r.K.unknown}]}(e,t).map((e=>e.id))}function p(e,t,n){let i,r,s;for(let o=n.length-1;o>=0;o--){const a=n[o];if(t===a.filenameLowercase){i=a;break}if(a.filepattern&&(!r||a.filepattern.length>r.filepattern.length)){const n=a.filepatternOnPath?e:t;a.filepatternLowercase?.(n)&&(r=a)}a.extension&&(!s||a.extension.length>s.extension.length)&&t.endsWith(a.extensionLowercase)&&(s=a)}return i||(r||(s||void 0))}},9259:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LanguageIdCodec:()=>d,LanguagesRegistry:()=>g});var i=n(1234),r=n(1484),s=n(1508),o=n(9908),a=n(3941),l=n(1646),h=n(6359);const c=Object.prototype.hasOwnProperty,u="vs.editor.nullLanguage";class d{constructor(){this._languageIdToLanguage=[],this._languageToLanguageId=new Map,this._register(u,0),this._register(a.vH,1),this._nextLanguageId=2}_register(e,t){this._languageIdToLanguage[t]=e,this._languageToLanguageId.set(e,t)}register(e){if(this._languageToLanguageId.has(e))return;const t=this._nextLanguageId++;this._register(e,t)}encodeLanguageId(e){return this._languageToLanguageId.get(e)||0}decodeLanguageId(e){return this._languageIdToLanguage[e]||u}}class g extends r.jG{static{this.instanceCount=0}constructor(e=!0,t=!1){super(),this._onDidChange=this._register(new i.vl),this.onDidChange=this._onDidChange.event,g.instanceCount++,this._warnOnOverwrite=t,this.languageIdCodec=new d,this._dynamicLanguages=[],this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},e&&(this._initializeFromRegistry(),this._register(a.W6.onDidChangeLanguages((e=>{this._initializeFromRegistry()}))))}dispose(){g.instanceCount--,super.dispose()}_initializeFromRegistry(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},(0,o.clearPlatformLanguageAssociations)();const e=[].concat(a.W6.getLanguages()).concat(this._dynamicLanguages);this._registerLanguages(e)}_registerLanguages(e){for(const t of e)this._registerLanguage(t);this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach((e=>{const t=this._languages[e];t.name&&(this._nameMap[t.name]=t.identifier),t.aliases.forEach((e=>{this._lowercaseNameMap[e.toLowerCase()]=t.identifier})),t.mimetypes.forEach((e=>{this._mimeTypesMap[e]=t.identifier}))})),h.O.as(l.Fd.Configuration).registerOverrideIdentifiers(this.getRegisteredLanguageIds()),this._onDidChange.fire()}_registerLanguage(e){const t=e.id;let n;c.call(this._languages,t)?n=this._languages[t]:(this.languageIdCodec.register(t),n={identifier:t,name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[],icons:[]},this._languages[t]=n),this._mergeLanguage(n,e)}_mergeLanguage(e,t){const n=t.id;let i=null;if(Array.isArray(t.mimetypes)&&t.mimetypes.length>0&&(e.mimetypes.push(...t.mimetypes),i=t.mimetypes[0]),i||(i=`text/x-${n}`,e.mimetypes.push(i)),Array.isArray(t.extensions)){t.configuration?e.extensions=t.extensions.concat(e.extensions):e.extensions=e.extensions.concat(t.extensions);for(const e of t.extensions)(0,o.registerPlatformLanguageAssociation)({id:n,mime:i,extension:e},this._warnOnOverwrite)}if(Array.isArray(t.filenames))for(const s of t.filenames)(0,o.registerPlatformLanguageAssociation)({id:n,mime:i,filename:s},this._warnOnOverwrite),e.filenames.push(s);if(Array.isArray(t.filenamePatterns))for(const s of t.filenamePatterns)(0,o.registerPlatformLanguageAssociation)({id:n,mime:i,filepattern:s},this._warnOnOverwrite);if("string"===typeof t.firstLine&&t.firstLine.length>0){let e=t.firstLine;"^"!==e.charAt(0)&&(e="^"+e);try{const t=new RegExp(e);(0,s.eY)(t)||(0,o.registerPlatformLanguageAssociation)({id:n,mime:i,firstline:t},this._warnOnOverwrite)}catch(l){console.warn(`[${t.id}]: Invalid regular expression \`${e}\`: `,l)}}e.aliases.push(n);let r=null;if("undefined"!==typeof t.aliases&&Array.isArray(t.aliases)&&(r=0===t.aliases.length?[null]:t.aliases),null!==r)for(const s of r)s&&0!==s.length&&e.aliases.push(s);const a=null!==r&&r.length>0;if(a&&null===r[0]);else{const t=(a?r[0]:null)||n;!a&&e.name||(e.name=t)}t.configuration&&e.configurationFiles.push(t.configuration),t.icon&&e.icons.push(t.icon)}isRegisteredLanguageId(e){return!!e&&c.call(this._languages,e)}getRegisteredLanguageIds(){return Object.keys(this._languages)}getLanguageIdByLanguageName(e){const t=e.toLowerCase();return c.call(this._lowercaseNameMap,t)?this._lowercaseNameMap[t]:null}getLanguageIdByMimeType(e){return e&&c.call(this._mimeTypesMap,e)?this._mimeTypesMap[e]:null}guessLanguageIdByFilepathOrFirstLine(e,t){return e||t?(0,o.getLanguageIds)(e,t):[]}}},7550:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IMarkerDecorationsService:()=>i});const i=(0,n(3591).u1)("markerDecorationsService")},448:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MarkerDecorationsService:()=>y});var i,r=n(1508);!function(e){e[e.Ignore=0]="Ignore",e[e.Info=1]="Info",e[e.Warning=2]="Warning",e[e.Error=3]="Error"}(i||(i={})),function(e){const t="error",n="warning",i="info";e.fromValue=function(s){return s?r.Q_(t,s)?e.Error:r.Q_(n,s)||r.Q_("warn",s)?e.Warning:r.Q_(i,s)?e.Info:e.Ignore:e.Ignore},e.toString=function(r){switch(r){case e.Error:return t;case e.Warning:return n;case e.Info:return i;default:return"ignore"}}}(i||(i={}));const s=i;var o,a,l=n(8209),h=n(3591);!function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(o||(o={})),function(e){e.compare=function(e,t){return t-e};const t=Object.create(null);t[e.Error]=(0,l.kg)("sev.error","Error"),t[e.Warning]=(0,l.kg)("sev.warning","Warning"),t[e.Info]=(0,l.kg)("sev.info","Info"),e.toString=function(e){return t[e]||""},e.fromSeverity=function(t){switch(t){case s.Error:return e.Error;case s.Warning:return e.Warning;case s.Info:return e.Info;case s.Ignore:return e.Hint}},e.toSeverity=function(t){switch(t){case e.Error:return s.Error;case e.Warning:return s.Warning;case e.Info:return s.Info;case e.Hint:return s.Ignore}}}(o||(o={})),function(e){const t="";function n(e,n){const i=[t];return e.source?i.push(e.source.replace("\xa6","\\\xa6")):i.push(t),e.code?"string"===typeof e.code?i.push(e.code.replace("\xa6","\\\xa6")):i.push(e.code.value.replace("\xa6","\\\xa6")):i.push(t),void 0!==e.severity&&null!==e.severity?i.push(o.toString(e.severity)):i.push(t),e.message&&n?i.push(e.message.replace("\xa6","\\\xa6")):i.push(t),void 0!==e.startLineNumber&&null!==e.startLineNumber?i.push(e.startLineNumber.toString()):i.push(t),void 0!==e.startColumn&&null!==e.startColumn?i.push(e.startColumn.toString()):i.push(t),void 0!==e.endLineNumber&&null!==e.endLineNumber?i.push(e.endLineNumber.toString()):i.push(t),void 0!==e.endColumn&&null!==e.endColumn?i.push(e.endColumn.toString()):i.push(t),i.push(t),i.join("\xa6")}e.makeKey=function(e){return n(e,!0)},e.makeKeyOptionalMessage=n}(a||(a={}));const c=(0,h.u1)("markerService");var u=n(1484),d=n(6223),g=n(5724),f=n(7119),m=n(3750),p=n(6677),_=n(6456),b=n(1234),k=n(5845),v=n(4320);var C=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},L=function(e,t){return function(n,i){t(n,i,e)}};let y=class extends u.jG{constructor(e,t){super(),this._markerService=t,this._onDidChangeMarker=this._register(new b.vl),this._markerDecorations=new v.fT,e.getModels().forEach((e=>this._onModelAdded(e))),this._register(e.onModelAdded(this._onModelAdded,this)),this._register(e.onModelRemoved(this._onModelRemoved,this)),this._register(this._markerService.onMarkerChanged(this._handleMarkerChange,this))}dispose(){super.dispose(),this._markerDecorations.forEach((e=>e.dispose())),this._markerDecorations.clear()}getMarker(e,t){const n=this._markerDecorations.get(e);return n&&n.getMarker(t)||null}_handleMarkerChange(e){e.forEach((e=>{const t=this._markerDecorations.get(e);t&&this._updateDecorations(t)}))}_onModelAdded(e){const t=new w(e);this._markerDecorations.set(e.uri,t),this._updateDecorations(t)}_onModelRemoved(e){const t=this._markerDecorations.get(e.uri);t&&(t.dispose(),this._markerDecorations.delete(e.uri)),e.uri.scheme!==_.ny.inMemory&&e.uri.scheme!==_.ny.internal&&e.uri.scheme!==_.ny.vscode||this._markerService?.read({resource:e.uri}).map((e=>e.owner)).forEach((t=>this._markerService.remove(t,[e.uri])))}_updateDecorations(e){const t=this._markerService.read({resource:e.model.uri,take:500});e.update(t)&&this._onDidChangeMarker.fire(e.model)}};y=C([L(0,m.IModelService),L(1,c)],y);class w extends u.jG{constructor(e){super(),this.model=e,this._map=new v.cO,this._register((0,u.s)((()=>{this.model.deltaDecorations([...this._map.values()],[]),this._map.clear()})))}update(e){const{added:t,removed:n}=function(e,t){const n=[],i=[];for(const r of e)t.has(r)||n.push(r);for(const r of t)e.has(r)||i.push(r);return{removed:n,added:i}}(new Set(this._map.keys()),new Set(e));if(0===t.length&&0===n.length)return!1;const i=n.map((e=>this._map.get(e))),r=t.map((e=>({range:this._createDecorationRange(this.model,e),options:this._createDecorationOption(e)}))),s=this.model.deltaDecorations(i,r);for(const o of n)this._map.delete(o);for(let o=0;o<s.length;o++)this._map.set(t[o],s[o]);return!0}getMarker(e){return this._map.getKey(e.id)}_createDecorationRange(e,t){let n=p.Q.lift(t);if(t.severity!==o.Hint||this._hasMarkerTag(t,1)||this._hasMarkerTag(t,2)||(n=n.setEndPosition(n.startLineNumber,n.startColumn+2)),n=e.validateRange(n),n.isEmpty()){const t=e.getLineLastNonWhitespaceColumn(n.startLineNumber)||e.getLineMaxColumn(n.startLineNumber);if(1===t||n.endColumn>=t)return n;const i=e.getWordAtPosition(n.getStartPosition());i&&(n=new p.Q(n.startLineNumber,i.startColumn,n.endLineNumber,i.endColumn))}else if(t.endColumn===Number.MAX_VALUE&&1===t.startColumn&&n.startLineNumber===n.endLineNumber){const i=e.getLineFirstNonWhitespaceColumn(t.startLineNumber);i<n.endColumn&&(n=new p.Q(n.startLineNumber,i,n.endLineNumber,n.endColumn),t.startColumn=i)}return n}_createDecorationOption(e){let t,n,i,r,s;switch(e.severity){case o.Hint:t=this._hasMarkerTag(e,2)?void 0:this._hasMarkerTag(e,1)?"squiggly-unnecessary":"squiggly-hint",i=0;break;case o.Info:t="squiggly-info",n=(0,g.Yf)(f.AQ),i=10,s={color:(0,g.Yf)(k.KoI),position:1};break;case o.Warning:t="squiggly-warning",n=(0,g.Yf)(f.aZ),i=20,s={color:(0,g.Yf)(k.uMG),position:1};break;case o.Error:default:t="squiggly-error",n=(0,g.Yf)(f.yI),i=30,s={color:(0,g.Yf)(k.yLC),position:1}}return e.tags&&(-1!==e.tags.indexOf(1)&&(r="squiggly-inline-unnecessary"),-1!==e.tags.indexOf(2)&&(r="squiggly-inline-deprecated")),{description:"marker-decoration",stickiness:1,className:t,showIfCollapsed:!0,overviewRuler:{color:n,position:d.A5.Right},minimap:s,zIndex:i,inlineClassName:r}}_hasMarkerTag(e,t){return!!e.tags&&e.tags.indexOf(t)>=0}}},3750:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IModelService:()=>i});const i=(0,n(3591).u1)("modelService")},1773:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DefaultModelSHA1Computer:()=>Lr,ModelService:()=>Cr});var i=n(1234),r=n(1484),s=n(8067),o=n(9861),a=n(7661),l=n(4383),h=n(1508),c=n(9400),u=n(4454);class d{static _nextVisibleColumn(e,t,n){return 9===e?d.nextRenderTabStop(t,n):h.ne(e)||h.Ss(e)?t+2:t+1}static visibleColumnFromColumn(e,t,n){const i=Math.min(t-1,e.length),r=e.substring(0,i),s=new h.km(r);let o=0;for(;!s.eol();){const e=h.Z5(r,i,s.offset);s.nextGraphemeLength(),o=this._nextVisibleColumn(e,o,n)}return o}static columnFromVisibleColumn(e,t,n){if(t<=0)return 1;const i=e.length,r=new h.km(e);let s=0,o=1;for(;!r.eol();){const a=h.Z5(e,i,r.offset);r.nextGraphemeLength();const l=this._nextVisibleColumn(a,s,n),c=r.offset+1;if(l>=t){return l-t<t-s?c:o}s=l,o=c}return i+1}static nextRenderTabStop(e,t){return e+t-e%t}static nextIndentTabStop(e,t){return e+t-e%t}static prevRenderTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}static prevIndentTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}}function g(e,t,n){let i=h.HG(e);return-1===i&&(i=e.length),function(e,t,n){let i=0;for(let s=0;s<e.length;s++)"\t"===e.charAt(s)?i=d.nextIndentTabStop(i,t):i++;let r="";if(!n){const e=Math.floor(i/t);i%=t;for(let t=0;t<e;t++)r+="\t"}for(let s=0;s<i;s++)r+=" ";return r}(e.substring(0,i),t,n)+e.substring(i)}var f=n(3069),m=n(6677),p=n(5326);const _={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}};var b,k=n(154),v=n(6486);!function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(b||(b={}));class C{constructor(e){if(this._neutralCharacter=null,this._neutralCharacterSearched=!1,this.open=e.open,this.close=e.close,this._inString=!0,this._inComment=!0,this._inRegEx=!0,Array.isArray(e.notIn))for(let t=0,n=e.notIn.length;t<n;t++){switch(e.notIn[t]){case"string":this._inString=!1;break;case"comment":this._inComment=!1;break;case"regex":this._inRegEx=!1}}}isOK(e){switch(e){case 0:return!0;case 1:return this._inComment;case 2:return this._inString;case 3:return this._inRegEx}}shouldAutoClose(e,t){if(0===e.getTokenCount())return!0;const n=e.findTokenIndexAtOffset(t-2),i=e.getStandardTokenType(n);return this.isOK(i)}_findNeutralCharacterInRange(e,t){for(let n=e;n<=t;n++){const e=String.fromCharCode(n);if(!this.open.includes(e)&&!this.close.includes(e))return e}return null}findNeutralCharacter(){return this._neutralCharacterSearched||(this._neutralCharacterSearched=!0,this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(48,57)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(97,122)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(65,90))),this._neutralCharacter}}class L{constructor(e){this.autoClosingPairsOpenByStart=new Map,this.autoClosingPairsOpenByEnd=new Map,this.autoClosingPairsCloseByStart=new Map,this.autoClosingPairsCloseByEnd=new Map,this.autoClosingPairsCloseSingleChar=new Map;for(const t of e)y(this.autoClosingPairsOpenByStart,t.open.charAt(0),t),y(this.autoClosingPairsOpenByEnd,t.open.charAt(t.open.length-1),t),y(this.autoClosingPairsCloseByStart,t.close.charAt(0),t),y(this.autoClosingPairsCloseByEnd,t.close.charAt(t.close.length-1),t),1===t.close.length&&1===t.open.length&&y(this.autoClosingPairsCloseSingleChar,t.close,t)}}function y(e,t,n){e.has(t)?e.get(t).push(n):e.set(t,[n])}class w{static{this.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES=";:.,=}])> \n\t"}static{this.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS="'\"`;:.,=}])> \n\t"}constructor(e){if(e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map((e=>new C(e))):e.brackets?this._autoClosingPairs=e.brackets.map((e=>new C({open:e[0],close:e[1]}))):this._autoClosingPairs=[],e.__electricCharacterSupport&&e.__electricCharacterSupport.docComment){const t=e.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new C({open:t.open,close:t.close||""}))}this._autoCloseBeforeForQuotes="string"===typeof e.autoCloseBefore?e.autoCloseBefore:w.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES,this._autoCloseBeforeForBrackets="string"===typeof e.autoCloseBefore?e.autoCloseBefore:w.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS,this._surroundingPairs=e.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(e){return e?this._autoCloseBeforeForQuotes:this._autoCloseBeforeForBrackets}getSurroundingPairs(){return this._surroundingPairs}}function S(e){return 0!==(3&e)}var x=n(1674);let E,N,I;function T(){return E||(E=new TextDecoder("UTF-16LE")),E}function A(){return I||(I=s.cm()?T():(N||(N=new TextDecoder("UTF-16BE")),N)),I}function D(e,t,n){const i=new Uint16Array(e.buffer,t,n);return n>0&&(65279===i[0]||65534===i[0])?function(e,t,n){const i=[];let r=0;for(let s=0;s<n;s++){const n=x.$l(e,t);t+=2,i[r++]=String.fromCharCode(n)}return i.join("")}(e,t,n):T().decode(i)}class R{constructor(e,t,n,i,r,s){this._richEditBracketBrand=void 0,this.languageId=e,this.index=t,this.open=n,this.close=i,this.forwardRegex=r,this.reversedRegex=s,this._openSet=R._toSet(this.open),this._closeSet=R._toSet(this.close)}isOpen(e){return this._openSet.has(e)}isClose(e){return this._closeSet.has(e)}static _toSet(e){const t=new Set;for(const n of e)t.add(n);return t}}class M{constructor(e,t){this._richEditBracketsBrand=void 0;const n=function(e){const t=e.length;e=e.map((e=>[e[0].toLowerCase(),e[1].toLowerCase()]));const n=[];for(let o=0;o<t;o++)n[o]=o;const i=(e,t)=>{const[n,i]=e,[r,s]=t;return n===r||n===s||i===r||i===s},r=(e,i)=>{const r=Math.min(e,i),s=Math.max(e,i);for(let o=0;o<t;o++)n[o]===s&&(n[o]=r)};for(let o=0;o<t;o++){const s=e[o];for(let a=o+1;a<t;a++)i(s,e[a])&&r(n[o],n[a])}const s=[];for(let o=0;o<t;o++){const i=[],r=[];for(let s=0;s<t;s++)if(n[s]===o){const[t,n]=e[s];i.push(t),r.push(n)}i.length>0&&s.push({open:i,close:r})}return s}(t);this.brackets=n.map(((t,i)=>new R(e,i,t.open,t.close,function(e,t,n,i){let r=[];r=r.concat(e),r=r.concat(t);for(let s=0,o=r.length;s<o;s++)O(r[s],n,i,r);return r=F(r),r.sort(B),r.reverse(),z(r)}(t.open,t.close,n,i),function(e,t,n,i){let r=[];r=r.concat(e),r=r.concat(t);for(let s=0,o=r.length;s<o;s++)O(r[s],n,i,r);return r=F(r),r.sort(B),r.reverse(),z(r.map(V))}(t.open,t.close,n,i)))),this.forwardRegex=function(e){let t=[];for(const n of e){for(const e of n.open)t.push(e);for(const e of n.close)t.push(e)}return t=F(t),z(t)}(this.brackets),this.reversedRegex=function(e){let t=[];for(const n of e){for(const e of n.open)t.push(e);for(const e of n.close)t.push(e)}return t=F(t),z(t.map(V))}(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(const i of this.brackets){for(const e of i.open)this.textIsBracket[e]=i,this.textIsOpenBracket[e]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,e.length);for(const e of i.close)this.textIsBracket[e]=i,this.textIsOpenBracket[e]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,e.length)}}}function O(e,t,n,i){for(let r=0,s=t.length;r<s;r++){if(r===n)continue;const s=t[r];for(const t of s.open)t.indexOf(e)>=0&&i.push(t);for(const t of s.close)t.indexOf(e)>=0&&i.push(t)}}function B(e,t){return e.length-t.length}function F(e){if(e.length<=1)return e;const t=[],n=new Set;for(const i of e)n.has(i)||(t.push(i),n.add(i));return t}function P(e){const t=/^[\w ]+$/.test(e);return e=h.bm(e),t?`\\b${e}\\b`:e}function z(e,t){const n=`(${e.map(P).join(")|(")})`;return h.OS(n,!0,t)}const V=function(){let e=null,t=null;return function(n){return e!==n&&(e=n,t=function(e){const t=new Uint16Array(e.length);let n=0;for(let i=e.length-1;i>=0;i--)t[n++]=e.charCodeAt(i);return A().decode(t)}(e)),t}}();class W{static _findPrevBracketInText(e,t,n,i){const r=n.match(e);if(!r)return null;const s=n.length-(r.index||0),o=r[0].length,a=i+s;return new m.Q(t,a-o+1,t,a+1)}static findPrevBracketInRange(e,t,n,i,r){const s=V(n).substring(n.length-r,n.length-i);return this._findPrevBracketInText(e,t,s,i)}static findNextBracketInText(e,t,n,i){const r=n.match(e);if(!r)return null;const s=r.index||0,o=r[0].length;if(0===o)return null;const a=i+s;return new m.Q(t,a+1,t,a+1+o)}static findNextBracketInRange(e,t,n,i,r){const s=n.substring(i,r);return this.findNextBracketInText(e,t,s,i)}}class q{constructor(e){this._richEditBrackets=e}getElectricCharacters(){const e=[];if(this._richEditBrackets)for(const t of this._richEditBrackets.brackets)for(const n of t.close){const t=n.charAt(n.length-1);e.push(t)}return(0,o.dM)(e)}onElectricCharacter(e,t,n){if(!this._richEditBrackets||0===this._richEditBrackets.brackets.length)return null;const i=t.findTokenIndexAtOffset(n-1);if(S(t.getStandardTokenType(i)))return null;const r=this._richEditBrackets.reversedRegex,s=t.getLineContent().substring(0,n-1)+e,o=W.findPrevBracketInRange(r,1,s,0,s.length);if(!o)return null;const a=s.substring(o.startColumn-1,o.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[a])return null;const l=t.getActualLineContentBefore(o.startColumn-1);return/^\s*$/.test(l)?{matchOpenBracket:a}:null}}function H(e){return e.global&&(e.lastIndex=0),!0}class U{constructor(e){this._indentationRules=e}shouldIncrease(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&H(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(e))}shouldDecrease(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&H(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(e))}shouldIndentNextLine(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&H(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(e))}shouldIgnore(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&H(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(e))}getIndentMetadata(e){let t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t}}class j{constructor(e){(e=e||{}).brackets=e.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],e.brackets.forEach((e=>{const t=j._createOpenBracketRegExp(e[0]),n=j._createCloseBracketRegExp(e[1]);t&&n&&this._brackets.push({open:e[0],openRegExp:t,close:e[1],closeRegExp:n})})),this._regExpRules=e.onEnterRules||[]}onEnter(e,t,n,i){if(e>=3)for(let r=0,s=this._regExpRules.length;r<s;r++){const e=this._regExpRules[r];if([{reg:e.beforeText,text:n},{reg:e.afterText,text:i},{reg:e.previousLineText,text:t}].every((e=>!e.reg||(e.reg.lastIndex=0,e.reg.test(e.text)))))return e.action}if(e>=2&&n.length>0&&i.length>0)for(let r=0,s=this._brackets.length;r<s;r++){const e=this._brackets[r];if(e.openRegExp.test(n)&&e.closeRegExp.test(i))return{indentAction:b.IndentOutdent}}if(e>=2&&n.length>0)for(let r=0,s=this._brackets.length;r<s;r++){if(this._brackets[r].openRegExp.test(n))return{indentAction:b.Indent}}return null}static _createOpenBracketRegExp(e){let t=h.bm(e);return/\B/.test(t.charAt(0))||(t="\\b"+t),t+="\\s*$",j._safeRegExp(t)}static _createCloseBracketRegExp(e){let t=h.bm(e);return/\B/.test(t.charAt(t.length-1))||(t+="\\b"),t="^\\s*"+t,j._safeRegExp(t)}static _safeRegExp(e){try{return new RegExp(e)}catch(t){return(0,l.dz)(t),null}}}var K=n(3591),$=n(4001),G=n(4621),Q=n(3941),Y=n(1788);class X{constructor(e,t){this.languageId=e;const n=t.brackets?Z(t.brackets):[],i=new Y.VV((e=>{const t=new Set;return{info:new ee(this,e,t),closing:t}})),r=new Y.VV((e=>{const t=new Set,n=new Set;return{info:new te(this,e,t,n),opening:t,openingColorized:n}}));for(const[o,a]of n){const e=i.get(o),t=r.get(a);e.closing.add(t.info),t.opening.add(e.info)}const s=t.colorizedBracketPairs?Z(t.colorizedBracketPairs):n.filter((e=>!("<"===e[0]&&">"===e[1])));for(const[o,a]of s){const e=i.get(o),t=r.get(a);e.closing.add(t.info),t.openingColorized.add(e.info),t.opening.add(e.info)}this._openingBrackets=new Map([...i.cachedValues].map((([e,t])=>[e,t.info]))),this._closingBrackets=new Map([...r.cachedValues].map((([e,t])=>[e,t.info])))}get openingBrackets(){return[...this._openingBrackets.values()]}get closingBrackets(){return[...this._closingBrackets.values()]}getOpeningBracketInfo(e){return this._openingBrackets.get(e)}getClosingBracketInfo(e){return this._closingBrackets.get(e)}getBracketInfo(e){return this.getOpeningBracketInfo(e)||this.getClosingBracketInfo(e)}getBracketRegExp(e){return z(Array.from([...this._openingBrackets.keys(),...this._closingBrackets.keys()]),e)}}function Z(e){return e.filter((([e,t])=>""!==e&&""!==t))}class J{constructor(e,t){this.config=e,this.bracketText=t}get languageId(){return this.config.languageId}}class ee extends J{constructor(e,t,n){super(e,t),this.openedBrackets=n,this.isOpeningBracket=!0}}class te extends J{constructor(e,t,n,i){super(e,t),this.openingBrackets=n,this.openingColorizedBrackets=i,this.isOpeningBracket=!1}closes(e){return e.config===this.config&&this.openingBrackets.has(e)}closesColorized(e){return e.config===this.config&&this.openingColorizedBrackets.has(e)}getOpeningBrackets(){return[...this.openingBrackets]}}var ne=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},ie=function(e,t){return function(n,i){t(n,i,e)}};class re{constructor(e){this.languageId=e}affects(e){return!this.languageId||this.languageId===e}}const se=(0,K.u1)("languageConfigurationService");let oe=class extends r.jG{constructor(e,t){super(),this.configurationService=e,this.languageService=t,this._registry=this._register(new ge),this.onDidChangeEmitter=this._register(new i.vl),this.onDidChange=this.onDidChangeEmitter.event,this.configurations=new Map;const n=new Set(Object.values(ae));this._register(this.configurationService.onDidChangeConfiguration((e=>{const t=e.change.keys.some((e=>n.has(e))),i=e.change.overrides.filter((([e,t])=>t.some((e=>n.has(e))))).map((([e])=>e));if(t)this.configurations.clear(),this.onDidChangeEmitter.fire(new re(void 0));else for(const n of i)this.languageService.isRegisteredLanguageId(n)&&(this.configurations.delete(n),this.onDidChangeEmitter.fire(new re(n)))}))),this._register(this._registry.onDidChange((e=>{this.configurations.delete(e.languageId),this.onDidChangeEmitter.fire(new re(e.languageId))})))}register(e,t,n){return this._registry.register(e,t,n)}getLanguageConfiguration(e){let t=this.configurations.get(e);return t||(t=function(e,t,n,i){let r=t.getLanguageConfiguration(e);if(!r){if(!i.isRegisteredLanguageId(e))return new fe(e,{});r=new fe(e,{})}const s=function(e,t){const n=t.getValue(ae.brackets,{overrideIdentifier:e}),i=t.getValue(ae.colorizedBracketPairs,{overrideIdentifier:e});return{brackets:le(n),colorizedBracketPairs:le(i)}}(r.languageId,n),o=ce([r.underlyingConfig,s]);return new fe(r.languageId,o)}(e,this._registry,this.configurationService,this.languageService),this.configurations.set(e,t)),t}};oe=ne([ie(0,$.pG),ie(1,k.L)],oe);const ae={brackets:"editor.language.brackets",colorizedBracketPairs:"editor.language.colorizedBracketPairs"};function le(e){if(Array.isArray(e))return e.map((e=>{if(Array.isArray(e)&&2===e.length)return[e[0],e[1]]})).filter((e=>!!e))}class he{constructor(e){this.languageId=e,this._resolved=null,this._entries=[],this._order=0,this._resolved=null}register(e,t){const n=new ue(e,t,++this._order);return this._entries.push(n),this._resolved=null,(0,r.s)((()=>{for(let e=0;e<this._entries.length;e++)if(this._entries[e]===n){this._entries.splice(e,1),this._resolved=null;break}}))}getResolvedConfiguration(){if(!this._resolved){const e=this._resolve();e&&(this._resolved=new fe(this.languageId,e))}return this._resolved}_resolve(){return 0===this._entries.length?null:(this._entries.sort(ue.cmp),ce(this._entries.map((e=>e.configuration))))}}function ce(e){let t={comments:void 0,brackets:void 0,wordPattern:void 0,indentationRules:void 0,onEnterRules:void 0,autoClosingPairs:void 0,surroundingPairs:void 0,autoCloseBefore:void 0,folding:void 0,colorizedBracketPairs:void 0,__electricCharacterSupport:void 0};for(const n of e)t={comments:n.comments||t.comments,brackets:n.brackets||t.brackets,wordPattern:n.wordPattern||t.wordPattern,indentationRules:n.indentationRules||t.indentationRules,onEnterRules:n.onEnterRules||t.onEnterRules,autoClosingPairs:n.autoClosingPairs||t.autoClosingPairs,surroundingPairs:n.surroundingPairs||t.surroundingPairs,autoCloseBefore:n.autoCloseBefore||t.autoCloseBefore,folding:n.folding||t.folding,colorizedBracketPairs:n.colorizedBracketPairs||t.colorizedBracketPairs,__electricCharacterSupport:n.__electricCharacterSupport||t.__electricCharacterSupport};return t}class ue{constructor(e,t,n){this.configuration=e,this.priority=t,this.order=n}static cmp(e,t){return e.priority===t.priority?e.order-t.order:e.priority-t.priority}}class de{constructor(e){this.languageId=e}}class ge extends r.jG{constructor(){super(),this._entries=new Map,this._onDidChange=this._register(new i.vl),this.onDidChange=this._onDidChange.event,this._register(this.register(Q.vH,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],colorizedBracketPairs:[],folding:{offSide:!0}},0))}register(e,t,n=0){let i=this._entries.get(e);i||(i=new he(e),this._entries.set(e,i));const s=i.register(t,n);return this._onDidChange.fire(new de(e)),(0,r.s)((()=>{s.dispose(),this._onDidChange.fire(new de(e))}))}getLanguageConfiguration(e){const t=this._entries.get(e);return t?.getResolvedConfiguration()||null}}class fe{constructor(e,t){this.languageId=e,this.underlyingConfig=t,this._brackets=null,this._electricCharacter=null,this._onEnterSupport=this.underlyingConfig.brackets||this.underlyingConfig.indentationRules||this.underlyingConfig.onEnterRules?new j(this.underlyingConfig):null,this.comments=fe._handleComments(this.underlyingConfig),this.characterPair=new w(this.underlyingConfig),this.wordDefinition=this.underlyingConfig.wordPattern||v.Ld,this.indentationRules=this.underlyingConfig.indentationRules,this.underlyingConfig.indentationRules?this.indentRulesSupport=new U(this.underlyingConfig.indentationRules):this.indentRulesSupport=null,this.foldingRules=this.underlyingConfig.folding||{},this.bracketsNew=new X(e,this.underlyingConfig)}getWordDefinition(){return(0,v.Io)(this.wordDefinition)}get brackets(){return!this._brackets&&this.underlyingConfig.brackets&&(this._brackets=new M(this.languageId,this.underlyingConfig.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new q(this.brackets)),this._electricCharacter}onEnter(e,t,n,i){return this._onEnterSupport?this._onEnterSupport.onEnter(e,t,n,i):null}getAutoClosingPairs(){return new L(this.characterPair.getAutoClosingPairs())}getAutoCloseBeforeSet(e){return this.characterPair.getAutoCloseBeforeSet(e)}getSurroundingPairs(){return this.characterPair.getSurroundingPairs()}static _handleComments(e){const t=e.comments;if(!t)return null;const n={};if(t.lineComment&&(n.lineCommentToken=t.lineComment),t.blockComment){const[e,i]=t.blockComment;n.blockCommentStartToken=e,n.blockCommentEndToken=i}return n}}(0,G.v)(se,oe,1);var me=n(6223);class pe{constructor(e,t,n,i){this.range=e,this.nestingLevel=t,this.nestingLevelOfEqualBracketType=n,this.isInvalid=i}}class _e{constructor(e,t,n,i,r,s){this.range=e,this.openingBracketRange=t,this.closingBracketRange=n,this.nestingLevel=i,this.nestingLevelOfEqualBracketType=r,this.bracketPairNode=s}get openingBracketInfo(){return this.bracketPairNode.openingBracket.bracketInfo}}class be extends _e{constructor(e,t,n,i,r,s,o){super(e,t,n,i,r,s),this.minVisibleColumnIndentation=o}}var ke=n(973);function ve(e){return 0===e}const Ce=2**26;function Le(e,t){return e*Ce+t}function ye(e){const t=e,n=Math.floor(t/Ce),i=t-n*Ce;return new ke.W(n,i)}function we(e,t){let n=e+t;return t>=Ce&&(n-=e%Ce),n}function Se(e,t){return e.reduce(((e,n)=>we(e,t(n))),0)}function xe(e,t){return e===t}function Ee(e,t){const n=e,i=t;if(i-n<=0)return 0;const r=Math.floor(n/Ce),s=Math.floor(i/Ce),o=i-s*Ce;if(r===s){return Le(0,o-(n-r*Ce))}return Le(s-r,o)}function Ne(e,t){return e<t}function Ie(e,t){return e<=t}function Te(e,t){return e>=t}function Ae(e){return Le(e.lineNumber-1,e.column-1)}function De(e,t){const n=e,i=Math.floor(n/Ce),r=n-i*Ce,s=t,o=Math.floor(s/Ce),a=s-o*Ce;return new m.Q(i+1,r+1,o+1,a+1)}class Re{static fromModelContentChanges(e){return e.map((e=>{const t=m.Q.lift(e.range);return new Re(Ae(t.getStartPosition()),Ae(t.getEndPosition()),function(e){const t=(0,h.uz)(e);return Le(t.length-1,t[t.length-1].length)}(e.text))})).reverse()}constructor(e,t,n){this.startOffset=e,this.endOffset=t,this.newLength=n}toString(){return`[${ye(this.startOffset)}...${ye(this.endOffset)}) -> ${ye(this.newLength)}`}}class Me{constructor(e){this.nextEditIdx=0,this.deltaOldToNewLineCount=0,this.deltaOldToNewColumnCount=0,this.deltaLineIdxInOld=-1,this.edits=e.map((e=>Oe.from(e)))}getOffsetBeforeChange(e){return this.adjustNextEdit(e),this.translateCurToOld(e)}getDistanceToNextChange(e){this.adjustNextEdit(e);const t=this.edits[this.nextEditIdx],n=t?this.translateOldToCur(t.offsetObj):null;return null===n?null:Ee(e,n)}translateOldToCur(e){return e.lineCount===this.deltaLineIdxInOld?Le(e.lineCount+this.deltaOldToNewLineCount,e.columnCount+this.deltaOldToNewColumnCount):Le(e.lineCount+this.deltaOldToNewLineCount,e.columnCount)}translateCurToOld(e){const t=ye(e);return t.lineCount-this.deltaOldToNewLineCount===this.deltaLineIdxInOld?Le(t.lineCount-this.deltaOldToNewLineCount,t.columnCount-this.deltaOldToNewColumnCount):Le(t.lineCount-this.deltaOldToNewLineCount,t.columnCount)}adjustNextEdit(e){for(;this.nextEditIdx<this.edits.length;){const t=this.edits[this.nextEditIdx],n=this.translateOldToCur(t.endOffsetAfterObj);if(!Ie(n,e))break;{this.nextEditIdx++;const e=ye(n),i=ye(this.translateOldToCur(t.endOffsetBeforeObj)),r=e.lineCount-i.lineCount;this.deltaOldToNewLineCount+=r;const s=this.deltaLineIdxInOld===t.endOffsetBeforeObj.lineCount?this.deltaOldToNewColumnCount:0,o=e.columnCount-i.columnCount;this.deltaOldToNewColumnCount=s+o,this.deltaLineIdxInOld=t.endOffsetBeforeObj.lineCount}}}}class Oe{static from(e){return new Oe(e.startOffset,e.endOffset,e.newLength)}constructor(e,t,n){this.endOffsetBeforeObj=ye(t),this.endOffsetAfterObj=ye(we(e,n)),this.offsetObj=ye(e)}}const Be=[];class Fe{static{this.cache=new Array(129)}static create(e,t){if(e<=128&&0===t.length){let n=Fe.cache[e];return n||(n=new Fe(e,t),Fe.cache[e]=n),n}return new Fe(e,t)}static{this.empty=Fe.create(0,Be)}static getEmpty(){return this.empty}constructor(e,t){this.items=e,this.additionalItems=t}add(e,t){const n=t.getKey(e);let i=n>>5;if(0===i){const e=1<<n|this.items;return e===this.items?this:Fe.create(e,this.additionalItems)}i--;const r=this.additionalItems.slice(0);for(;r.length<i;)r.push(0);return r[i]|=1<<(31&n),Fe.create(this.items,r)}merge(e){const t=this.items|e.items;if(this.additionalItems===Be&&e.additionalItems===Be)return t===this.items?this:t===e.items?e:Fe.create(t,Be);const n=[];for(let i=0;i<Math.max(this.additionalItems.length,e.additionalItems.length);i++){const t=this.additionalItems[i]||0,r=e.additionalItems[i]||0;n.push(t|r)}return Fe.create(t,n)}intersects(e){if(0!==(this.items&e.items))return!0;for(let t=0;t<Math.min(this.additionalItems.length,e.additionalItems.length);t++)if(0!==(this.additionalItems[t]&e.additionalItems[t]))return!0;return!1}}const Pe={getKey:e=>e};class ze{constructor(){this.items=new Map}getKey(e){let t=this.items.get(e);return void 0===t&&(t=this.items.size,this.items.set(e,t)),t}}class Ve{get length(){return this._length}constructor(e){this._length=e}}class We extends Ve{static create(e,t,n){let i=e.length;return t&&(i=we(i,t.length)),n&&(i=we(i,n.length)),new We(i,e,t,n,t?t.missingOpeningBracketIds:Fe.getEmpty())}get kind(){return 2}get listHeight(){return 0}get childrenLength(){return 3}getChild(e){switch(e){case 0:return this.openingBracket;case 1:return this.child;case 2:return this.closingBracket}throw new Error("Invalid child index")}get children(){const e=[];return e.push(this.openingBracket),this.child&&e.push(this.child),this.closingBracket&&e.push(this.closingBracket),e}constructor(e,t,n,i,r){super(e),this.openingBracket=t,this.child=n,this.closingBracket=i,this.missingOpeningBracketIds=r}canBeReused(e){return null!==this.closingBracket&&!e.intersects(this.missingOpeningBracketIds)}deepClone(){return new We(this.length,this.openingBracket.deepClone(),this.child&&this.child.deepClone(),this.closingBracket&&this.closingBracket.deepClone(),this.missingOpeningBracketIds)}computeMinIndentation(e,t){return this.child?this.child.computeMinIndentation(we(e,this.openingBracket.length),t):Number.MAX_SAFE_INTEGER}}class qe extends Ve{static create23(e,t,n,i=!1){let r=e.length,s=e.missingOpeningBracketIds;if(e.listHeight!==t.listHeight)throw new Error("Invalid list heights");if(r=we(r,t.length),s=s.merge(t.missingOpeningBracketIds),n){if(e.listHeight!==n.listHeight)throw new Error("Invalid list heights");r=we(r,n.length),s=s.merge(n.missingOpeningBracketIds)}return i?new Ue(r,e.listHeight+1,e,t,n,s):new He(r,e.listHeight+1,e,t,n,s)}static getEmpty(){return new Ke(0,0,[],Fe.getEmpty())}get kind(){return 4}get missingOpeningBracketIds(){return this._missingOpeningBracketIds}constructor(e,t,n){super(e),this.listHeight=t,this._missingOpeningBracketIds=n,this.cachedMinIndentation=-1}throwIfImmutable(){}makeLastElementMutable(){this.throwIfImmutable();const e=this.childrenLength;if(0===e)return;const t=this.getChild(e-1),n=4===t.kind?t.toMutable():t;return t!==n&&this.setChild(e-1,n),n}makeFirstElementMutable(){this.throwIfImmutable();if(0===this.childrenLength)return;const e=this.getChild(0),t=4===e.kind?e.toMutable():e;return e!==t&&this.setChild(0,t),t}canBeReused(e){if(e.intersects(this.missingOpeningBracketIds))return!1;if(0===this.childrenLength)return!1;let t=this;for(;4===t.kind;){const e=t.childrenLength;if(0===e)throw new l.D7;t=t.getChild(e-1)}return t.canBeReused(e)}handleChildrenChanged(){this.throwIfImmutable();const e=this.childrenLength;let t=this.getChild(0).length,n=this.getChild(0).missingOpeningBracketIds;for(let i=1;i<e;i++){const e=this.getChild(i);t=we(t,e.length),n=n.merge(e.missingOpeningBracketIds)}this._length=t,this._missingOpeningBracketIds=n,this.cachedMinIndentation=-1}computeMinIndentation(e,t){if(-1!==this.cachedMinIndentation)return this.cachedMinIndentation;let n=Number.MAX_SAFE_INTEGER,i=e;for(let r=0;r<this.childrenLength;r++){const e=this.getChild(r);e&&(n=Math.min(n,e.computeMinIndentation(i,t)),i=we(i,e.length))}return this.cachedMinIndentation=n,n}}class He extends qe{get childrenLength(){return null!==this._item3?3:2}getChild(e){switch(e){case 0:return this._item1;case 1:return this._item2;case 2:return this._item3}throw new Error("Invalid child index")}setChild(e,t){switch(e){case 0:return void(this._item1=t);case 1:return void(this._item2=t);case 2:return void(this._item3=t)}throw new Error("Invalid child index")}get children(){return this._item3?[this._item1,this._item2,this._item3]:[this._item1,this._item2]}get item1(){return this._item1}get item2(){return this._item2}get item3(){return this._item3}constructor(e,t,n,i,r,s){super(e,t,s),this._item1=n,this._item2=i,this._item3=r}deepClone(){return new He(this.length,this.listHeight,this._item1.deepClone(),this._item2.deepClone(),this._item3?this._item3.deepClone():null,this.missingOpeningBracketIds)}appendChildOfSameHeight(e){if(this._item3)throw new Error("Cannot append to a full (2,3) tree node");this.throwIfImmutable(),this._item3=e,this.handleChildrenChanged()}unappendChild(){if(!this._item3)throw new Error("Cannot remove from a non-full (2,3) tree node");this.throwIfImmutable();const e=this._item3;return this._item3=null,this.handleChildrenChanged(),e}prependChildOfSameHeight(e){if(this._item3)throw new Error("Cannot prepend to a full (2,3) tree node");this.throwIfImmutable(),this._item3=this._item2,this._item2=this._item1,this._item1=e,this.handleChildrenChanged()}unprependChild(){if(!this._item3)throw new Error("Cannot remove from a non-full (2,3) tree node");this.throwIfImmutable();const e=this._item1;return this._item1=this._item2,this._item2=this._item3,this._item3=null,this.handleChildrenChanged(),e}toMutable(){return this}}class Ue extends He{toMutable(){return new He(this.length,this.listHeight,this.item1,this.item2,this.item3,this.missingOpeningBracketIds)}throwIfImmutable(){throw new Error("this instance is immutable")}}class je extends qe{get childrenLength(){return this._children.length}getChild(e){return this._children[e]}setChild(e,t){this._children[e]=t}get children(){return this._children}constructor(e,t,n,i){super(e,t,i),this._children=n}deepClone(){const e=new Array(this._children.length);for(let t=0;t<this._children.length;t++)e[t]=this._children[t].deepClone();return new je(this.length,this.listHeight,e,this.missingOpeningBracketIds)}appendChildOfSameHeight(e){this.throwIfImmutable(),this._children.push(e),this.handleChildrenChanged()}unappendChild(){this.throwIfImmutable();const e=this._children.pop();return this.handleChildrenChanged(),e}prependChildOfSameHeight(e){this.throwIfImmutable(),this._children.unshift(e),this.handleChildrenChanged()}unprependChild(){this.throwIfImmutable();const e=this._children.shift();return this.handleChildrenChanged(),e}toMutable(){return this}}class Ke extends je{toMutable(){return new je(this.length,this.listHeight,[...this.children],this.missingOpeningBracketIds)}throwIfImmutable(){throw new Error("this instance is immutable")}}const $e=[];class Ge extends Ve{get listHeight(){return 0}get childrenLength(){return 0}getChild(e){return null}get children(){return $e}deepClone(){return this}}class Qe extends Ge{get kind(){return 0}get missingOpeningBracketIds(){return Fe.getEmpty()}canBeReused(e){return!0}computeMinIndentation(e,t){const n=ye(e),i=(0===n.columnCount?n.lineCount:n.lineCount+1)+1,r=(s=we(e,this.length),Math.floor(s/Ce)+1);var s;let o=Number.MAX_SAFE_INTEGER;for(let a=i;a<=r;a++){const e=t.getLineFirstNonWhitespaceColumn(a),n=t.getLineContent(a);if(0===e)continue;const i=d.visibleColumnFromColumn(n,e,t.getOptions().tabSize);o=Math.min(o,i)}return o}}class Ye extends Ge{static create(e,t,n){return new Ye(e,t,n)}get kind(){return 1}get missingOpeningBracketIds(){return Fe.getEmpty()}constructor(e,t,n){super(e),this.bracketInfo=t,this.bracketIds=n}get text(){return this.bracketInfo.bracketText}get languageId(){return this.bracketInfo.languageId}canBeReused(e){return!1}computeMinIndentation(e,t){return Number.MAX_SAFE_INTEGER}}class Xe extends Ge{get kind(){return 3}constructor(e,t){super(t),this.missingOpeningBracketIds=e}canBeReused(e){return!e.intersects(this.missingOpeningBracketIds)}computeMinIndentation(e,t){return Number.MAX_SAFE_INTEGER}}var Ze=n(5982);class Je{constructor(e,t,n,i,r){this.length=e,this.kind=t,this.bracketId=n,this.bracketIds=i,this.astNode=r}}class et{constructor(e,t){this.textModel=e,this.bracketTokens=t,this.reader=new tt(this.textModel,this.bracketTokens),this._offset=0,this.didPeek=!1,this.peeked=null,this.textBufferLineCount=e.getLineCount(),this.textBufferLastLineLength=e.getLineLength(this.textBufferLineCount)}get offset(){return this._offset}get length(){return Le(this.textBufferLineCount-1,this.textBufferLastLineLength)}skip(e){this.didPeek=!1,this._offset=we(this._offset,e);const t=ye(this._offset);this.reader.setPosition(t.lineCount,t.columnCount)}read(){let e;return this.peeked?(this.didPeek=!1,e=this.peeked):e=this.reader.read(),e&&(this._offset=we(this._offset,e.length)),e}peek(){return this.didPeek||(this.peeked=this.reader.read(),this.didPeek=!0),this.peeked}}class tt{constructor(e,t){this.textModel=e,this.bracketTokens=t,this.lineIdx=0,this.line=null,this.lineCharOffset=0,this.lineTokens=null,this.lineTokenOffset=0,this.peekedToken=null,this.textBufferLineCount=e.getLineCount(),this.textBufferLastLineLength=e.getLineLength(this.textBufferLineCount)}setPosition(e,t){e===this.lineIdx?(this.lineCharOffset=t,null!==this.line&&(this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset))):(this.lineIdx=e,this.lineCharOffset=t,this.line=null),this.peekedToken=null}read(){if(this.peekedToken){const e=this.peekedToken;return this.peekedToken=null,this.lineCharOffset+=e.length,e}if(this.lineIdx>this.textBufferLineCount-1||this.lineIdx===this.textBufferLineCount-1&&this.lineCharOffset>=this.textBufferLastLineLength)return null;null===this.line&&(this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.line=this.lineTokens.getLineContent(),this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset));const e=this.lineIdx,t=this.lineCharOffset;let n=0;for(;;){const i=this.lineTokens,r=i.getCount();let s=null;if(this.lineTokenOffset<r){const o=i.getMetadata(this.lineTokenOffset);for(;this.lineTokenOffset+1<r&&o===i.getMetadata(this.lineTokenOffset+1);)this.lineTokenOffset++;const a=0===Ze.x.getTokenType(o),l=Ze.x.containsBalancedBrackets(o),h=i.getEndOffset(this.lineTokenOffset);if(l&&a&&this.lineCharOffset<h){const e=i.getLanguageId(this.lineTokenOffset),t=this.line.substring(this.lineCharOffset,h),n=this.bracketTokens.getSingleLanguageBracketTokens(e),r=n.regExpGlobal;if(r){r.lastIndex=0;const e=r.exec(t);e&&(s=n.getToken(e[0]),s&&(this.lineCharOffset+=e.index))}}if(n+=h-this.lineCharOffset,s){if(e!==this.lineIdx||t!==this.lineCharOffset){this.peekedToken=s;break}return this.lineCharOffset+=s.length,s}this.lineTokenOffset++,this.lineCharOffset=h}else{if(this.lineIdx===this.textBufferLineCount-1)break;if(this.lineIdx++,this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.lineTokenOffset=0,this.line=this.lineTokens.getLineContent(),this.lineCharOffset=0,n+=33,n>1e3)break}if(n>1500)break}const i=(r=e,s=t,o=this.lineIdx,a=this.lineCharOffset,r!==o?Le(o-r,a):Le(0,a-s));var r,s,o,a;return new Je(i,0,-1,Fe.getEmpty(),new Qe(i))}}class nt{constructor(e,t){this.text=e,this._offset=0,this.idx=0;const n=t.getRegExpStr(),i=n?new RegExp(n+"|\n","gi"):null,r=[];let s,o=0,a=0,l=0,h=0;const c=[];for(let g=0;g<60;g++)c.push(new Je(Le(0,g),0,-1,Fe.getEmpty(),new Qe(Le(0,g))));const u=[];for(let g=0;g<60;g++)u.push(new Je(Le(1,g),0,-1,Fe.getEmpty(),new Qe(Le(1,g))));if(i)for(i.lastIndex=0;null!==(s=i.exec(e));){const e=s.index,n=s[0];if("\n"===n)o++,a=e+1;else{if(l!==e){let t;if(h===o){const n=e-l;if(n<c.length)t=c[n];else{const e=Le(0,n);t=new Je(e,0,-1,Fe.getEmpty(),new Qe(e))}}else{const n=o-h,i=e-a;if(1===n&&i<u.length)t=u[i];else{const e=Le(n,i);t=new Je(e,0,-1,Fe.getEmpty(),new Qe(e))}}r.push(t)}r.push(t.getToken(n)),l=e+n.length,h=o}}const d=e.length;if(l!==d){const e=h===o?Le(0,d-l):Le(o-h,d-a);r.push(new Je(e,0,-1,Fe.getEmpty(),new Qe(e)))}this.length=Le(o,d-a),this.tokens=r}get offset(){return this._offset}read(){return this.tokens[this.idx++]||null}peek(){return this.tokens[this.idx]||null}skip(e){throw new l.EM}}class it{static createFromLanguage(e,t){function n(e){return t.getKey(`${e.languageId}:::${e.bracketText}`)}const i=new Map;for(const r of e.bracketsNew.openingBrackets){const e=Le(0,r.bracketText.length),t=n(r),s=Fe.getEmpty().add(t,Pe);i.set(r.bracketText,new Je(e,1,t,s,Ye.create(e,r,s)))}for(const r of e.bracketsNew.closingBrackets){const e=Le(0,r.bracketText.length);let t=Fe.getEmpty();const s=r.getOpeningBrackets();for(const i of s)t=t.add(n(i),Pe);i.set(r.bracketText,new Je(e,2,n(s[0]),t,Ye.create(e,r,t)))}return new it(i)}constructor(e){this.map=e,this.hasRegExp=!1,this._regExpGlobal=null}getRegExpStr(){if(this.isEmpty)return null;{const e=[...this.map.keys()];return e.sort(),e.reverse(),e.map((e=>function(e){let t=(0,h.bm)(e);/^[\w ]+/.test(e)&&(t=`\\b${t}`);/[\w ]+$/.test(e)&&(t=`${t}\\b`);return t}(e))).join("|")}}get regExpGlobal(){if(!this.hasRegExp){const e=this.getRegExpStr();this._regExpGlobal=e?new RegExp(e,"gi"):null,this.hasRegExp=!0}return this._regExpGlobal}getToken(e){return this.map.get(e.toLowerCase())}findClosingTokenText(e){for(const[t,n]of this.map)if(2===n.kind&&n.bracketIds.intersects(e))return t}get isEmpty(){return 0===this.map.size}}class rt{constructor(e,t){this.denseKeyProvider=e,this.getLanguageConfiguration=t,this.languageIdToBracketTokens=new Map}didLanguageChange(e){return this.languageIdToBracketTokens.has(e)}getSingleLanguageBracketTokens(e){let t=this.languageIdToBracketTokens.get(e);return t||(t=it.createFromLanguage(this.getLanguageConfiguration(e),this.denseKeyProvider),this.languageIdToBracketTokens.set(e,t)),t}}function st(e,t=!1){if(0===e.length)return null;if(1===e.length)return e[0];let n=e.length;for(;n>3;){const i=n>>1;for(let r=0;r<i;r++){const i=r<<1;e[r]=qe.create23(e[i],e[i+1],i+3===n?e[i+2]:null,t)}n=i}return qe.create23(e[0],e[1],n>=3?e[2]:null,t)}function ot(e,t){return Math.abs(e.listHeight-t.listHeight)}function at(e,t){return e.listHeight===t.listHeight?qe.create23(e,t,null,!1):e.listHeight>t.listHeight?function(e,t){let n=e=e.toMutable();const i=[];let r;for(;;){if(t.listHeight===n.listHeight){r=t;break}if(4!==n.kind)throw new Error("unexpected");i.push(n),n=n.makeLastElementMutable()}for(let s=i.length-1;s>=0;s--){const e=i[s];r?e.childrenLength>=3?r=qe.create23(e.unappendChild(),r,null,!1):(e.appendChildOfSameHeight(r),r=void 0):e.handleChildrenChanged()}return r?qe.create23(e,r,null,!1):e}(e,t):function(e,t){let n=e=e.toMutable();const i=[];for(;t.listHeight!==n.listHeight;){if(4!==n.kind)throw new Error("unexpected");i.push(n),n=n.makeFirstElementMutable()}let r=t;for(let s=i.length-1;s>=0;s--){const e=i[s];r?e.childrenLength>=3?r=qe.create23(r,e.unprependChild(),null,!1):(e.prependChildOfSameHeight(r),r=void 0):e.handleChildrenChanged()}return r?qe.create23(r,e,null,!1):e}(t,e)}class lt{constructor(e){this.lastOffset=0,this.nextNodes=[e],this.offsets=[0],this.idxs=[]}readLongestNodeAt(e,t){if(Ne(e,this.lastOffset))throw new Error("Invalid offset");for(this.lastOffset=e;;){const n=ct(this.nextNodes);if(!n)return;const i=ct(this.offsets);if(Ne(e,i))return;if(Ne(i,e))if(we(i,n.length)<=e)this.nextNodeAfterCurrent();else{const e=ht(n);-1!==e?(this.nextNodes.push(n.getChild(e)),this.offsets.push(i),this.idxs.push(e)):this.nextNodeAfterCurrent()}else{if(t(n))return this.nextNodeAfterCurrent(),n;{const e=ht(n);if(-1===e)return void this.nextNodeAfterCurrent();this.nextNodes.push(n.getChild(e)),this.offsets.push(i),this.idxs.push(e)}}}}nextNodeAfterCurrent(){for(;;){const e=ct(this.offsets),t=ct(this.nextNodes);if(this.nextNodes.pop(),this.offsets.pop(),0===this.idxs.length)break;const n=ct(this.nextNodes),i=ht(n,this.idxs[this.idxs.length-1]);if(-1!==i){this.nextNodes.push(n.getChild(i)),this.offsets.push(we(e,t.length)),this.idxs[this.idxs.length-1]=i;break}this.idxs.pop()}}}function ht(e,t=-1){for(;;){if(++t>=e.childrenLength)return-1;if(e.getChild(t))return t}}function ct(e){return e.length>0?e[e.length-1]:void 0}function ut(e,t,n,i){return new dt(e,t,n,i).parseDocument()}class dt{constructor(e,t,n,i){if(this.tokenizer=e,this.createImmutableLists=i,this._itemsConstructed=0,this._itemsFromCache=0,n&&i)throw new Error("Not supported");this.oldNodeReader=n?new lt(n):void 0,this.positionMapper=new Me(t)}parseDocument(){this._itemsConstructed=0,this._itemsFromCache=0;let e=this.parseList(Fe.getEmpty(),0);return e||(e=qe.getEmpty()),e}parseList(e,t){const n=[];for(;;){let i=this.tryReadChildFromCache(e);if(!i){const n=this.tokenizer.peek();if(!n||2===n.kind&&n.bracketIds.intersects(e))break;i=this.parseChild(e,t+1)}4===i.kind&&0===i.childrenLength||n.push(i)}const i=this.oldNodeReader?function(e){if(0===e.length)return null;if(1===e.length)return e[0];let t=0;function n(){if(t>=e.length)return null;const n=t,i=e[n].listHeight;for(t++;t<e.length&&e[t].listHeight===i;)t++;return t-n>=2?st(0===n&&t===e.length?e:e.slice(n,t),!1):e[n]}let i=n(),r=n();if(!r)return i;for(let s=n();s;s=n())ot(i,r)<=ot(r,s)?(i=at(i,r),r=s):r=at(r,s);return at(i,r)}(n):st(n,this.createImmutableLists);return i}tryReadChildFromCache(e){if(this.oldNodeReader){const t=this.positionMapper.getDistanceToNextChange(this.tokenizer.offset);if(null===t||!ve(t)){const n=this.oldNodeReader.readLongestNodeAt(this.positionMapper.getOffsetBeforeChange(this.tokenizer.offset),(n=>{if(null!==t&&!Ne(n.length,t))return!1;return n.canBeReused(e)}));if(n)return this._itemsFromCache++,this.tokenizer.skip(n.length),n}}}parseChild(e,t){this._itemsConstructed++;const n=this.tokenizer.read();switch(n.kind){case 2:return new Xe(n.bracketIds,n.length);case 0:return n.astNode;case 1:{if(t>300)return new Qe(n.length);const i=e.merge(n.bracketIds),r=this.parseList(i,t+1),s=this.tokenizer.peek();return s&&2===s.kind&&(s.bracketId===n.bracketId||s.bracketIds.intersects(n.bracketIds))?(this.tokenizer.read(),We.create(n.astNode,r,s.astNode)):We.create(n.astNode,r,null)}default:throw new Error("unexpected")}}}function gt(e,t){if(0===e.length)return t;if(0===t.length)return e;const n=new o.j3(mt(e)),i=mt(t);i.push({modified:!1,lengthBefore:void 0,lengthAfter:void 0});let r=n.dequeue();function s(e){if(void 0===e){const e=n.takeWhile((e=>!0))||[];return r&&e.unshift(r),e}const t=[];for(;r&&!ve(e);){const[i,s]=r.splitAt(e);t.push(i),e=Ee(i.lengthAfter,e),r=s??n.dequeue()}return ve(e)||t.push(new ft(!1,e,e)),t}const a=[];function l(e,t,n){if(a.length>0&&xe(a[a.length-1].endOffset,e)){const e=a[a.length-1];a[a.length-1]=new Re(e.startOffset,t,we(e.newLength,n))}else a.push({startOffset:e,endOffset:t,newLength:n})}let h=0;for(const o of i){const e=s(o.lengthBefore);if(o.modified){const t=we(h,Se(e,(e=>e.lengthBefore)));l(h,t,o.lengthAfter),h=t}else for(const t of e){const e=h;h=we(h,t.lengthBefore),t.modified&&l(e,h,t.lengthAfter)}}return a}class ft{constructor(e,t,n){this.modified=e,this.lengthBefore=t,this.lengthAfter=n}splitAt(e){const t=Ee(e,this.lengthAfter);return xe(t,0)?[this,void 0]:this.modified?[new ft(this.modified,this.lengthBefore,e),new ft(this.modified,0,t)]:[new ft(this.modified,e,e),new ft(this.modified,t,t)]}toString(){return`${this.modified?"M":"U"}:${ye(this.lengthBefore)} -> ${ye(this.lengthAfter)}`}}function mt(e){const t=[];let n=0;for(const i of e){const e=Ee(n,i.startOffset);ve(e)||t.push(new ft(!1,e,e));const r=Ee(i.startOffset,i.endOffset);t.push(new ft(!0,r,i.newLength)),n=i.endOffset}return t}class pt extends r.jG{didLanguageChange(e){return this.brackets.didLanguageChange(e)}constructor(e,t){if(super(),this.textModel=e,this.getLanguageConfiguration=t,this.didChangeEmitter=new i.vl,this.denseKeyProvider=new ze,this.brackets=new rt(this.denseKeyProvider,this.getLanguageConfiguration),this.onDidChange=this.didChangeEmitter.event,this.queuedTextEditsForInitialAstWithoutTokens=[],this.queuedTextEdits=[],e.tokenization.hasTokens)2===e.tokenization.backgroundTokenizationState?(this.initialAstWithoutTokens=void 0,this.astWithTokens=this.parseDocumentFromTextBuffer([],void 0,!1)):(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer([],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens);else{const e=this.brackets.getSingleLanguageBracketTokens(this.textModel.getLanguageId()),t=new nt(this.textModel.getValue(),e);this.initialAstWithoutTokens=ut(t,[],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens}}handleDidChangeBackgroundTokenizationState(){if(2===this.textModel.tokenization.backgroundTokenizationState){const e=void 0===this.initialAstWithoutTokens;this.initialAstWithoutTokens=void 0,e||this.didChangeEmitter.fire()}}handleDidChangeTokens({ranges:e}){const t=e.map((e=>new Re(Le(e.fromLineNumber-1,0),Le(e.toLineNumber,0),Le(e.toLineNumber-e.fromLineNumber+1,0))));this.handleEdits(t,!0),this.initialAstWithoutTokens||this.didChangeEmitter.fire()}handleContentChanged(e){const t=Re.fromModelContentChanges(e.changes);this.handleEdits(t,!1)}handleEdits(e,t){const n=gt(this.queuedTextEdits,e);this.queuedTextEdits=n,this.initialAstWithoutTokens&&!t&&(this.queuedTextEditsForInitialAstWithoutTokens=gt(this.queuedTextEditsForInitialAstWithoutTokens,e))}flushQueue(){this.queuedTextEdits.length>0&&(this.astWithTokens=this.parseDocumentFromTextBuffer(this.queuedTextEdits,this.astWithTokens,!1),this.queuedTextEdits=[]),this.queuedTextEditsForInitialAstWithoutTokens.length>0&&(this.initialAstWithoutTokens&&(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer(this.queuedTextEditsForInitialAstWithoutTokens,this.initialAstWithoutTokens,!1)),this.queuedTextEditsForInitialAstWithoutTokens=[])}parseDocumentFromTextBuffer(e,t,n){const i=t;return ut(new et(this.textModel,this.brackets),e,i,n)}getBracketsInRange(e,t){this.flushQueue();const n=Le(e.startLineNumber-1,e.startColumn-1),i=Le(e.endLineNumber-1,e.endColumn-1);return new o.c1((e=>{const r=this.initialAstWithoutTokens||this.astWithTokens;kt(r,0,r.length,n,i,e,0,0,new Map,t)}))}getBracketPairsInRange(e,t){this.flushQueue();const n=Ae(e.getStartPosition()),i=Ae(e.getEndPosition());return new o.c1((e=>{const r=this.initialAstWithoutTokens||this.astWithTokens,s=new vt(e,t,this.textModel);Ct(r,0,r.length,n,i,s,0,new Map)}))}getFirstBracketAfter(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return bt(t,0,t.length,Ae(e))}getFirstBracketBefore(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return _t(t,0,t.length,Ae(e))}}function _t(e,t,n,i){if(4===e.kind||2===e.kind){const r=[];for(const i of e.children)n=we(t,i.length),r.push({nodeOffsetStart:t,nodeOffsetEnd:n}),t=n;for(let t=r.length-1;t>=0;t--){const{nodeOffsetStart:n,nodeOffsetEnd:s}=r[t];if(Ne(n,i)){const r=_t(e.children[t],n,s,i);if(r)return r}}return null}if(3===e.kind)return null;if(1===e.kind){const i=De(t,n);return{bracketInfo:e.bracketInfo,range:i}}return null}function bt(e,t,n,i){if(4===e.kind||2===e.kind){for(const r of e.children){if(Ne(i,n=we(t,r.length))){const e=bt(r,t,n,i);if(e)return e}t=n}return null}if(3===e.kind)return null;if(1===e.kind){const i=De(t,n);return{bracketInfo:e.bracketInfo,range:i}}return null}function kt(e,t,n,i,r,s,o,a,l,h,c=!1){if(o>200)return!0;e:for(;;)switch(e.kind){case 4:{const a=e.childrenLength;for(let c=0;c<a;c++){const a=e.getChild(c);if(a){if(n=we(t,a.length),Ie(t,r)&&Te(n,i)){if(Te(n,r)){e=a;continue e}if(!kt(a,t,n,i,r,s,o,0,l,h))return!1}t=n}}return!0}case 2:{const c=!h||!e.closingBracket||e.closingBracket.bracketInfo.closesColorized(e.openingBracket.bracketInfo);let u=0;if(l){let t=l.get(e.openingBracket.text);void 0===t&&(t=0),u=t,c&&(t++,l.set(e.openingBracket.text,t))}const d=e.childrenLength;for(let g=0;g<d;g++){const d=e.getChild(g);if(d){if(n=we(t,d.length),Ie(t,r)&&Te(n,i)){if(Te(n,r)&&1!==d.kind){e=d,c?(o++,a=u+1):a=u;continue e}if(c||1!==d.kind||!e.closingBracket){if(!kt(d,t,n,i,r,s,c?o+1:o,c?u+1:u,l,h,!e.closingBracket))return!1}}t=n}}return l?.set(e.openingBracket.text,u),!0}case 3:{const e=De(t,n);return s(new pe(e,o-1,0,!0))}case 1:{const e=De(t,n);return s(new pe(e,o-1,a-1,c))}case 0:return!0}}class vt{constructor(e,t,n){this.push=e,this.includeMinIndentation=t,this.textModel=n}}function Ct(e,t,n,i,r,s,o,a){if(o>200)return!0;let l=!0;if(2===e.kind){let h=0;if(a){let t=a.get(e.openingBracket.text);void 0===t&&(t=0),h=t,t++,a.set(e.openingBracket.text,t)}const c=we(t,e.openingBracket.length);let u=-1;if(s.includeMinIndentation&&(u=e.computeMinIndentation(t,s.textModel)),l=s.push(new be(De(t,n),De(t,c),e.closingBracket?De(we(c,e.child?.length||0),n):void 0,o,h,e,u)),t=c,l&&e.child){const h=e.child;if(n=we(t,h.length),Ie(t,r)&&Te(n,i)&&(l=Ct(h,t,n,i,r,s,o+1,a),!l))return!1}a?.set(e.openingBracket.text,h)}else{let n=t;for(const t of e.children){const e=n;if(n=we(n,t.length),Ie(e,r)&&Ie(i,n)&&(l=Ct(t,e,n,i,r,s,o,a),!l))return!1}}return l}class Lt extends r.jG{get canBuildAST(){return this.textModel.getValueLength()<=5e6}constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t,this.bracketPairsTree=this._register(new r.HE),this.onDidChangeEmitter=new i.vl,this.onDidChange=this.onDidChangeEmitter.event,this.bracketsRequested=!1}handleLanguageConfigurationServiceChange(e){e.languageId&&!this.bracketPairsTree.value?.object.didLanguageChange(e.languageId)||(this.bracketPairsTree.clear(),this.updateBracketPairsTree())}handleDidChangeOptions(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeLanguage(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeContent(e){this.bracketPairsTree.value?.object.handleContentChanged(e)}handleDidChangeBackgroundTokenizationState(){this.bracketPairsTree.value?.object.handleDidChangeBackgroundTokenizationState()}handleDidChangeTokens(e){this.bracketPairsTree.value?.object.handleDidChangeTokens(e)}updateBracketPairsTree(){if(this.bracketsRequested&&this.canBuildAST){if(!this.bracketPairsTree.value){const n=new r.Cm;this.bracketPairsTree.value=(e=n.add(new pt(this.textModel,(e=>this.languageConfigurationService.getLanguageConfiguration(e)))),t=n,{object:e,dispose:()=>t?.dispose()}),n.add(this.bracketPairsTree.value.object.onDidChange((e=>this.onDidChangeEmitter.fire(e)))),this.onDidChangeEmitter.fire()}}else this.bracketPairsTree.value&&(this.bracketPairsTree.clear(),this.onDidChangeEmitter.fire());var e,t}getBracketPairsInRange(e){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketPairsInRange(e,!1)||o.c1.empty}getBracketPairsInRangeWithMinIndentation(e){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketPairsInRange(e,!0)||o.c1.empty}getBracketsInRange(e,t=!1){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketsInRange(e,t)||o.c1.empty}findMatchingBracketUp(e,t,n){const i=this.textModel.validatePosition(t),r=this.textModel.getLanguageIdAtPosition(i.lineNumber,i.column);if(this.canBuildAST){const n=this.languageConfigurationService.getLanguageConfiguration(r).bracketsNew.getClosingBracketInfo(e);if(!n)return null;const i=this.getBracketPairsInRange(m.Q.fromPositions(t,t)).findLast((e=>n.closes(e.openingBracketInfo)));return i?i.openingBracketRange:null}{const t=e.toLowerCase(),s=this.languageConfigurationService.getLanguageConfiguration(r).brackets;if(!s)return null;const o=s.textIsBracket[t];return o?St(this._findMatchingBracketUp(o,i,yt(n))):null}}matchBracket(e,t){if(this.canBuildAST){const t=this.getBracketPairsInRange(m.Q.fromPositions(e,e)).filter((t=>void 0!==t.closingBracketRange&&(t.openingBracketRange.containsPosition(e)||t.closingBracketRange.containsPosition(e)))).findLastMaxBy((0,o.VE)((t=>t.openingBracketRange.containsPosition(e)?t.openingBracketRange:t.closingBracketRange),m.Q.compareRangesUsingStarts));return t?[t.openingBracketRange,t.closingBracketRange]:null}{const n=yt(t);return this._matchBracket(this.textModel.validatePosition(e),n)}}_establishBracketSearchOffsets(e,t,n,i){const r=t.getCount(),s=t.getLanguageId(i);let o=Math.max(0,e.column-1-n.maxBracketLength);for(let l=i-1;l>=0;l--){const e=t.getEndOffset(l);if(e<=o)break;if(S(t.getStandardTokenType(l))||t.getLanguageId(l)!==s){o=e;break}}let a=Math.min(t.getLineContent().length,e.column-1+n.maxBracketLength);for(let l=i+1;l<r;l++){const e=t.getStartOffset(l);if(e>=a)break;if(S(t.getStandardTokenType(l))||t.getLanguageId(l)!==s){a=e;break}}return{searchStartOffset:o,searchEndOffset:a}}_matchBracket(e,t){const n=e.lineNumber,i=this.textModel.tokenization.getLineTokens(n),r=this.textModel.getLineContent(n),s=i.findTokenIndexAtOffset(e.column-1);if(s<0)return null;const o=this.languageConfigurationService.getLanguageConfiguration(i.getLanguageId(s)).brackets;if(o&&!S(i.getStandardTokenType(s))){let{searchStartOffset:a,searchEndOffset:l}=this._establishBracketSearchOffsets(e,i,o,s),h=null;for(;;){const i=W.findNextBracketInRange(o.forwardRegex,n,r,a,l);if(!i)break;if(i.startColumn<=e.column&&e.column<=i.endColumn){const e=r.substring(i.startColumn-1,i.endColumn-1).toLowerCase(),n=this._matchFoundBracket(i,o.textIsBracket[e],o.textIsOpenBracket[e],t);if(n){if(n instanceof wt)return null;h=n}}a=i.endColumn-1}if(h)return h}if(s>0&&i.getStartOffset(s)===e.column-1){const o=s-1,a=this.languageConfigurationService.getLanguageConfiguration(i.getLanguageId(o)).brackets;if(a&&!S(i.getStandardTokenType(o))){const{searchStartOffset:s,searchEndOffset:l}=this._establishBracketSearchOffsets(e,i,a,o),h=W.findPrevBracketInRange(a.reversedRegex,n,r,s,l);if(h&&h.startColumn<=e.column&&e.column<=h.endColumn){const e=r.substring(h.startColumn-1,h.endColumn-1).toLowerCase(),n=this._matchFoundBracket(h,a.textIsBracket[e],a.textIsOpenBracket[e],t);if(n)return n instanceof wt?null:n}}}return null}_matchFoundBracket(e,t,n,i){if(!t)return null;const r=n?this._findMatchingBracketDown(t,e.getEndPosition(),i):this._findMatchingBracketUp(t,e.getStartPosition(),i);return r?r instanceof wt?r:[e,r]:null}_findMatchingBracketUp(e,t,n){const i=e.languageId,r=e.reversedRegex;let s=-1,o=0;const a=(t,i,a,l)=>{for(;;){if(n&&++o%100===0&&!n())return wt.INSTANCE;const h=W.findPrevBracketInRange(r,t,i,a,l);if(!h)break;const c=i.substring(h.startColumn-1,h.endColumn-1).toLowerCase();if(e.isOpen(c)?s++:e.isClose(c)&&s--,0===s)return h;l=h.startColumn-1}return null};for(let l=t.lineNumber;l>=1;l--){const e=this.textModel.tokenization.getLineTokens(l),n=e.getCount(),r=this.textModel.getLineContent(l);let s=n-1,o=r.length,h=r.length;l===t.lineNumber&&(s=e.findTokenIndexAtOffset(t.column-1),o=t.column-1,h=t.column-1);let c=!0;for(;s>=0;s--){const t=e.getLanguageId(s)===i&&!S(e.getStandardTokenType(s));if(t)c?o=e.getStartOffset(s):(o=e.getStartOffset(s),h=e.getEndOffset(s));else if(c&&o!==h){const e=a(l,r,o,h);if(e)return e}c=t}if(c&&o!==h){const e=a(l,r,o,h);if(e)return e}}return null}_findMatchingBracketDown(e,t,n){const i=e.languageId,r=e.forwardRegex;let s=1,o=0;const a=(t,i,a,l)=>{for(;;){if(n&&++o%100===0&&!n())return wt.INSTANCE;const h=W.findNextBracketInRange(r,t,i,a,l);if(!h)break;const c=i.substring(h.startColumn-1,h.endColumn-1).toLowerCase();if(e.isOpen(c)?s++:e.isClose(c)&&s--,0===s)return h;a=h.endColumn-1}return null},l=this.textModel.getLineCount();for(let h=t.lineNumber;h<=l;h++){const e=this.textModel.tokenization.getLineTokens(h),n=e.getCount(),r=this.textModel.getLineContent(h);let s=0,o=0,l=0;h===t.lineNumber&&(s=e.findTokenIndexAtOffset(t.column-1),o=t.column-1,l=t.column-1);let c=!0;for(;s<n;s++){const t=e.getLanguageId(s)===i&&!S(e.getStandardTokenType(s));if(t)c||(o=e.getStartOffset(s)),l=e.getEndOffset(s);else if(c&&o!==l){const e=a(h,r,o,l);if(e)return e}c=t}if(c&&o!==l){const e=a(h,r,o,l);if(e)return e}}return null}findPrevBracket(e){const t=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getFirstBracketBefore(t)||null;let n=null,i=null,r=null;for(let s=t.lineNumber;s>=1;s--){const e=this.textModel.tokenization.getLineTokens(s),o=e.getCount(),a=this.textModel.getLineContent(s);let l=o-1,h=a.length,c=a.length;if(s===t.lineNumber){l=e.findTokenIndexAtOffset(t.column-1),h=t.column-1,c=t.column-1;const s=e.getLanguageId(l);n!==s&&(n=s,i=this.languageConfigurationService.getLanguageConfiguration(n).brackets,r=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew)}let u=!0;for(;l>=0;l--){const t=e.getLanguageId(l);if(n!==t){if(i&&r&&u&&h!==c){const e=W.findPrevBracketInRange(i.reversedRegex,s,a,h,c);if(e)return this._toFoundBracket(r,e);u=!1}n=t,i=this.languageConfigurationService.getLanguageConfiguration(n).brackets,r=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew}const o=!!i&&!S(e.getStandardTokenType(l));if(o)u?h=e.getStartOffset(l):(h=e.getStartOffset(l),c=e.getEndOffset(l));else if(r&&i&&u&&h!==c){const e=W.findPrevBracketInRange(i.reversedRegex,s,a,h,c);if(e)return this._toFoundBracket(r,e)}u=o}if(r&&i&&u&&h!==c){const e=W.findPrevBracketInRange(i.reversedRegex,s,a,h,c);if(e)return this._toFoundBracket(r,e)}}return null}findNextBracket(e){const t=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getFirstBracketAfter(t)||null;const n=this.textModel.getLineCount();let i=null,r=null,s=null;for(let o=t.lineNumber;o<=n;o++){const e=this.textModel.tokenization.getLineTokens(o),n=e.getCount(),a=this.textModel.getLineContent(o);let l=0,h=0,c=0;if(o===t.lineNumber){l=e.findTokenIndexAtOffset(t.column-1),h=t.column-1,c=t.column-1;const n=e.getLanguageId(l);i!==n&&(i=n,r=this.languageConfigurationService.getLanguageConfiguration(i).brackets,s=this.languageConfigurationService.getLanguageConfiguration(i).bracketsNew)}let u=!0;for(;l<n;l++){const t=e.getLanguageId(l);if(i!==t){if(s&&r&&u&&h!==c){const e=W.findNextBracketInRange(r.forwardRegex,o,a,h,c);if(e)return this._toFoundBracket(s,e);u=!1}i=t,r=this.languageConfigurationService.getLanguageConfiguration(i).brackets,s=this.languageConfigurationService.getLanguageConfiguration(i).bracketsNew}const n=!!r&&!S(e.getStandardTokenType(l));if(n)u||(h=e.getStartOffset(l)),c=e.getEndOffset(l);else if(s&&r&&u&&h!==c){const e=W.findNextBracketInRange(r.forwardRegex,o,a,h,c);if(e)return this._toFoundBracket(s,e)}u=n}if(s&&r&&u&&h!==c){const e=W.findNextBracketInRange(r.forwardRegex,o,a,h,c);if(e)return this._toFoundBracket(s,e)}}return null}findEnclosingBrackets(e,t){const n=this.textModel.validatePosition(e);if(this.canBuildAST){const e=m.Q.fromPositions(n),t=this.getBracketPairsInRange(m.Q.fromPositions(n,n)).findLast((t=>void 0!==t.closingBracketRange&&t.range.strictContainsRange(e)));return t?[t.openingBracketRange,t.closingBracketRange]:null}const i=yt(t),r=this.textModel.getLineCount(),s=new Map;let o=[];const a=(e,t)=>{if(!s.has(e)){const n=[];for(let e=0,i=t?t.brackets.length:0;e<i;e++)n[e]=0;s.set(e,n)}o=s.get(e)};let l=0;const h=(e,t,n,r,s)=>{for(;;){if(i&&++l%100===0&&!i())return wt.INSTANCE;const a=W.findNextBracketInRange(e.forwardRegex,t,n,r,s);if(!a)break;const h=n.substring(a.startColumn-1,a.endColumn-1).toLowerCase(),c=e.textIsBracket[h];if(c&&(c.isOpen(h)?o[c.index]++:c.isClose(h)&&o[c.index]--,-1===o[c.index]))return this._matchFoundBracket(a,c,!1,i);r=a.endColumn-1}return null};let c=null,u=null;for(let d=n.lineNumber;d<=r;d++){const e=this.textModel.tokenization.getLineTokens(d),t=e.getCount(),i=this.textModel.getLineContent(d);let r=0,s=0,o=0;if(d===n.lineNumber){r=e.findTokenIndexAtOffset(n.column-1),s=n.column-1,o=n.column-1;const t=e.getLanguageId(r);c!==t&&(c=t,u=this.languageConfigurationService.getLanguageConfiguration(c).brackets,a(c,u))}let l=!0;for(;r<t;r++){const t=e.getLanguageId(r);if(c!==t){if(u&&l&&s!==o){const e=h(u,d,i,s,o);if(e)return St(e);l=!1}c=t,u=this.languageConfigurationService.getLanguageConfiguration(c).brackets,a(c,u)}const n=!!u&&!S(e.getStandardTokenType(r));if(n)l||(s=e.getStartOffset(r)),o=e.getEndOffset(r);else if(u&&l&&s!==o){const e=h(u,d,i,s,o);if(e)return St(e)}l=n}if(u&&l&&s!==o){const e=h(u,d,i,s,o);if(e)return St(e)}}return null}_toFoundBracket(e,t){if(!t)return null;let n=this.textModel.getValueInRange(t);n=n.toLowerCase();const i=e.getBracketInfo(n);return i?{range:t,bracketInfo:i}:null}}function yt(e){if("undefined"===typeof e)return()=>!0;{const t=Date.now();return()=>Date.now()-t<=e}}class wt{static{this.INSTANCE=new wt}constructor(){this._searchCanceledBrand=void 0}}function St(e){return e instanceof wt?null:e}var xt=n(7119),Et=n(5724);class Nt extends r.jG{constructor(e){super(),this.textModel=e,this.colorProvider=new It,this.onDidChangeEmitter=new i.vl,this.onDidChange=this.onDidChangeEmitter.event,this.colorizationOptions=e.getOptions().bracketPairColorizationOptions,this._register(e.bracketPairs.onDidChange((e=>{this.onDidChangeEmitter.fire()})))}handleDidChangeOptions(e){this.colorizationOptions=this.textModel.getOptions().bracketPairColorizationOptions}getDecorationsInRange(e,t,n,i){if(i)return[];if(void 0===t)return[];if(!this.colorizationOptions.enabled)return[];return this.textModel.bracketPairs.getBracketsInRange(e,!0).map((e=>({id:`bracket${e.range.toString()}-${e.nestingLevel}`,options:{description:"BracketPairColorization",inlineClassName:this.colorProvider.getInlineClassName(e,this.colorizationOptions.independentColorPoolPerBracketType)},ownerId:0,range:e.range}))).toArray()}getAllDecorations(e,t){return void 0===e?[]:this.colorizationOptions.enabled?this.getDecorationsInRange(new m.Q(1,1,this.textModel.getLineCount(),1),e,t):[]}}class It{constructor(){this.unexpectedClosingBracketClassName="unexpected-closing-bracket"}getInlineClassName(e,t){return e.isInvalid?this.unexpectedClosingBracketClassName:this.getInlineClassNameOfLevel(t?e.nestingLevelOfEqualBracketType:e.nestingLevel)}getInlineClassNameOfLevel(e){return"bracket-highlighting-"+e%30}}(0,Et.zy)(((e,t)=>{const n=[xt.sN,xt.lQ,xt.ss,xt.l5,xt.sH,xt.zp],i=new It;t.addRule(`.monaco-editor .${i.unexpectedClosingBracketClassName} { color: ${e.getColor(xt.s7)}; }`);const r=n.map((t=>e.getColor(t))).filter((e=>!!e)).filter((e=>!e.isTransparent()));for(let s=0;s<30;s++){const e=r[s%r.length];t.addRule(`.monaco-editor .${i.getInlineClassNameOfLevel(s)} { color: ${e}; }`)}}));var Tt=n(8209);function At(e){return e.replace(/\n/g,"\\n").replace(/\r/g,"\\r")}class Dt{get oldLength(){return this.oldText.length}get oldEnd(){return this.oldPosition+this.oldText.length}get newLength(){return this.newText.length}get newEnd(){return this.newPosition+this.newText.length}constructor(e,t,n,i){this.oldPosition=e,this.oldText=t,this.newPosition=n,this.newText=i}toString(){return 0===this.oldText.length?`(insert@${this.oldPosition} "${At(this.newText)}")`:0===this.newText.length?`(delete@${this.oldPosition} "${At(this.oldText)}")`:`(replace@${this.oldPosition} "${At(this.oldText)}" with "${At(this.newText)}")`}static _writeStringSize(e){return 4+2*e.length}static _writeString(e,t,n){const i=t.length;x.Sw(e,i,n),n+=4;for(let r=0;r<i;r++)x.gN(e,t.charCodeAt(r),n),n+=2;return n}static _readString(e,t){const n=x.bb(e,t);return D(e,t+=4,n)}writeSize(){return 8+Dt._writeStringSize(this.oldText)+Dt._writeStringSize(this.newText)}write(e,t){return x.Sw(e,this.oldPosition,t),t+=4,x.Sw(e,this.newPosition,t),t+=4,t=Dt._writeString(e,this.oldText,t),t=Dt._writeString(e,this.newText,t)}static read(e,t,n){const i=x.bb(e,t);t+=4;const r=x.bb(e,t);t+=4;const s=Dt._readString(e,t);t+=Dt._writeStringSize(s);const o=Dt._readString(e,t);return t+=Dt._writeStringSize(o),n.push(new Dt(i,s,r,o)),t}}class Rt{constructor(e,t){this._prevEdits=e,this._currEdits=t,this._result=[],this._resultLen=0,this._prevLen=this._prevEdits.length,this._prevDeltaOffset=0,this._currLen=this._currEdits.length,this._currDeltaOffset=0}compress(){let e=0,t=0,n=this._getPrev(e),i=this._getCurr(t);for(;e<this._prevLen||t<this._currLen;){if(null===n){this._acceptCurr(i),i=this._getCurr(++t);continue}if(null===i){this._acceptPrev(n),n=this._getPrev(++e);continue}if(i.oldEnd<=n.newPosition){this._acceptCurr(i),i=this._getCurr(++t);continue}if(n.newEnd<=i.oldPosition){this._acceptPrev(n),n=this._getPrev(++e);continue}if(i.oldPosition<n.newPosition){const[e,t]=Rt._splitCurr(i,n.newPosition-i.oldPosition);this._acceptCurr(e),i=t;continue}if(n.newPosition<i.oldPosition){const[e,t]=Rt._splitPrev(n,i.oldPosition-n.newPosition);this._acceptPrev(e),n=t;continue}let r,s;if(i.oldEnd===n.newEnd)r=n,s=i,n=this._getPrev(++e),i=this._getCurr(++t);else if(i.oldEnd<n.newEnd){const[e,o]=Rt._splitPrev(n,i.oldLength);r=e,s=i,n=o,i=this._getCurr(++t)}else{const[t,o]=Rt._splitCurr(i,n.newLength);r=n,s=t,n=this._getPrev(++e),i=o}this._result[this._resultLen++]=new Dt(r.oldPosition,r.oldText,s.newPosition,s.newText),this._prevDeltaOffset+=r.newLength-r.oldLength,this._currDeltaOffset+=s.newLength-s.oldLength}const r=Rt._merge(this._result);return Rt._removeNoOps(r)}_acceptCurr(e){this._result[this._resultLen++]=Rt._rebaseCurr(this._prevDeltaOffset,e),this._currDeltaOffset+=e.newLength-e.oldLength}_getCurr(e){return e<this._currLen?this._currEdits[e]:null}_acceptPrev(e){this._result[this._resultLen++]=Rt._rebasePrev(this._currDeltaOffset,e),this._prevDeltaOffset+=e.newLength-e.oldLength}_getPrev(e){return e<this._prevLen?this._prevEdits[e]:null}static _rebaseCurr(e,t){return new Dt(t.oldPosition-e,t.oldText,t.newPosition,t.newText)}static _rebasePrev(e,t){return new Dt(t.oldPosition,t.oldText,t.newPosition+e,t.newText)}static _splitPrev(e,t){const n=e.newText.substr(0,t),i=e.newText.substr(t);return[new Dt(e.oldPosition,e.oldText,e.newPosition,n),new Dt(e.oldEnd,"",e.newPosition+t,i)]}static _splitCurr(e,t){const n=e.oldText.substr(0,t),i=e.oldText.substr(t);return[new Dt(e.oldPosition,n,e.newPosition,e.newText),new Dt(e.oldPosition+t,i,e.newEnd,"")]}static _merge(e){if(0===e.length)return e;const t=[];let n=0,i=e[0];for(let r=1;r<e.length;r++){const s=e[r];i.oldEnd===s.oldPosition?i=new Dt(i.oldPosition,i.oldText+s.oldText,i.newPosition,i.newText+s.newText):(t[n++]=i,i=s)}return t[n++]=i,t}static _removeNoOps(e){if(0===e.length)return e;const t=[];let n=0;for(let i=0;i<e.length;i++){const r=e[i];r.oldText!==r.newText&&(t[n++]=r)}return t}}var Mt=n(9403);function Ot(e){return e.toString()}class Bt{static create(e,t){const n=e.getAlternativeVersionId(),i=zt(e);return new Bt(n,n,i,i,t,t,[])}constructor(e,t,n,i,r,s,o){this.beforeVersionId=e,this.afterVersionId=t,this.beforeEOL=n,this.afterEOL=i,this.beforeCursorState=r,this.afterCursorState=s,this.changes=o}append(e,t,n,i,r){var s,o;t.length>0&&(this.changes=(s=this.changes,o=t,null===s||0===s.length?o:new Rt(s,o).compress())),this.afterEOL=n,this.afterVersionId=i,this.afterCursorState=r}static _writeSelectionsSize(e){return 4+16*(e?e.length:0)}static _writeSelections(e,t,n){if(x.Sw(e,t?t.length:0,n),n+=4,t)for(const i of t)x.Sw(e,i.selectionStartLineNumber,n),n+=4,x.Sw(e,i.selectionStartColumn,n),n+=4,x.Sw(e,i.positionLineNumber,n),n+=4,x.Sw(e,i.positionColumn,n),n+=4;return n}static _readSelections(e,t,n){const i=x.bb(e,t);t+=4;for(let r=0;r<i;r++){const i=x.bb(e,t);t+=4;const r=x.bb(e,t);t+=4;const s=x.bb(e,t);t+=4;const o=x.bb(e,t);t+=4,n.push(new p.L(i,r,s,o))}return t}serialize(){let e=10+Bt._writeSelectionsSize(this.beforeCursorState)+Bt._writeSelectionsSize(this.afterCursorState)+4;for(const i of this.changes)e+=i.writeSize();const t=new Uint8Array(e);let n=0;x.Sw(t,this.beforeVersionId,n),n+=4,x.Sw(t,this.afterVersionId,n),n+=4,x.Gs(t,this.beforeEOL,n),n+=1,x.Gs(t,this.afterEOL,n),n+=1,n=Bt._writeSelections(t,this.beforeCursorState,n),n=Bt._writeSelections(t,this.afterCursorState,n),x.Sw(t,this.changes.length,n),n+=4;for(const i of this.changes)n=i.write(t,n);return t.buffer}static deserialize(e){const t=new Uint8Array(e);let n=0;const i=x.bb(t,n);n+=4;const r=x.bb(t,n);n+=4;const s=x.pJ(t,n);n+=1;const o=x.pJ(t,n);n+=1;const a=[];n=Bt._readSelections(t,n,a);const l=[];n=Bt._readSelections(t,n,l);const h=x.bb(t,n);n+=4;const c=[];for(let u=0;u<h;u++)n=Dt.read(t,n,c);return new Bt(i,r,s,o,a,l,c)}}class Ft{get type(){return 0}get resource(){return c.r.isUri(this.model)?this.model:this.model.uri}constructor(e,t,n,i){this.label=e,this.code=t,this.model=n,this._data=Bt.create(n,i)}toString(){return(this._data instanceof Bt?this._data:Bt.deserialize(this._data)).changes.map((e=>e.toString())).join(", ")}matchesResource(e){return(c.r.isUri(this.model)?this.model:this.model.uri).toString()===e.toString()}setModel(e){this.model=e}canAppend(e){return this.model===e&&this._data instanceof Bt}append(e,t,n,i,r){this._data instanceof Bt&&this._data.append(e,t,n,i,r)}close(){this._data instanceof Bt&&(this._data=this._data.serialize())}open(){this._data instanceof Bt||(this._data=Bt.deserialize(this._data))}undo(){if(c.r.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof Bt&&(this._data=this._data.serialize());const e=Bt.deserialize(this._data);this.model._applyUndo(e.changes,e.beforeEOL,e.beforeVersionId,e.beforeCursorState)}redo(){if(c.r.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof Bt&&(this._data=this._data.serialize());const e=Bt.deserialize(this._data);this.model._applyRedo(e.changes,e.afterEOL,e.afterVersionId,e.afterCursorState)}heapSize(){return this._data instanceof Bt&&(this._data=this._data.serialize()),this._data.byteLength+168}}class Pt{get resources(){return this._editStackElementsArr.map((e=>e.resource))}constructor(e,t,n){this.label=e,this.code=t,this.type=1,this._isOpen=!0,this._editStackElementsArr=n.slice(0),this._editStackElementsMap=new Map;for(const i of this._editStackElementsArr){const e=Ot(i.resource);this._editStackElementsMap.set(e,i)}this._delegate=null}prepareUndoRedo(){if(this._delegate)return this._delegate.prepareUndoRedo(this)}matchesResource(e){const t=Ot(e);return this._editStackElementsMap.has(t)}setModel(e){const t=Ot(c.r.isUri(e)?e:e.uri);this._editStackElementsMap.has(t)&&this._editStackElementsMap.get(t).setModel(e)}canAppend(e){if(!this._isOpen)return!1;const t=Ot(e.uri);if(this._editStackElementsMap.has(t)){return this._editStackElementsMap.get(t).canAppend(e)}return!1}append(e,t,n,i,r){const s=Ot(e.uri);this._editStackElementsMap.get(s).append(e,t,n,i,r)}close(){this._isOpen=!1}open(){}undo(){this._isOpen=!1;for(const e of this._editStackElementsArr)e.undo()}redo(){for(const e of this._editStackElementsArr)e.redo()}heapSize(e){const t=Ot(e);if(this._editStackElementsMap.has(t)){return this._editStackElementsMap.get(t).heapSize()}return 0}split(){return this._editStackElementsArr}toString(){const e=[];for(const t of this._editStackElementsArr)e.push(`${(0,Mt.P8)(t.resource)}: ${t}`);return`{${e.join(", ")}}`}}function zt(e){return"\n"===e.getEOL()?0:1}function Vt(e){return!!e&&(e instanceof Ft||e instanceof Pt)}class Wt{constructor(e,t){this._model=e,this._undoRedoService=t}pushStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);Vt(e)&&e.close()}popStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);Vt(e)&&e.open()}clear(){this._undoRedoService.removeElements(this._model.uri)}_getOrCreateEditStackElement(e,t){const n=this._undoRedoService.getLastElement(this._model.uri);if(Vt(n)&&n.canAppend(this._model))return n;const i=new Ft(Tt.kg("edit","Typing"),"undoredo.textBufferEdit",this._model,e);return this._undoRedoService.pushElement(i,t),i}pushEOL(e){const t=this._getOrCreateEditStackElement(null,void 0);this._model.setEOL(e),t.append(this._model,[],zt(this._model),this._model.getAlternativeVersionId(),null)}pushEditOperation(e,t,n,i){const r=this._getOrCreateEditStackElement(e,i),s=this._model.applyEdits(t,!0),o=Wt._computeCursorState(n,s),a=s.map(((e,t)=>({index:t,textChange:e.textChange})));return a.sort(((e,t)=>e.textChange.oldPosition===t.textChange.oldPosition?e.index-t.index:e.textChange.oldPosition-t.textChange.oldPosition)),r.append(this._model,a.map((e=>e.textChange)),zt(this._model),this._model.getAlternativeVersionId(),o),o}static _computeCursorState(e,t){try{return e?e(t):null}catch(n){return(0,l.dz)(n),null}}}var qt,Ht=n(6041);class Ut extends r.jG{constructor(){super(...arguments),this._isDisposed=!1}dispose(){super.dispose(),this._isDisposed=!0}assertNotDisposed(){if(this._isDisposed)throw new Error("TextModelPart is disposed!")}}!function(e){e[e.Disabled=0]="Disabled",e[e.EnabledForActive=1]="EnabledForActive",e[e.Enabled=2]="Enabled"}(qt||(qt={}));class jt{constructor(e,t,n,i,r,s){if(this.visibleColumn=e,this.column=t,this.className=n,this.horizontalLine=i,this.forWrappedLinesAfterColumn=r,this.forWrappedLinesBeforeOrAtColumn=s,-1!==e===(-1!==t))throw new Error}}class Kt{constructor(e,t){this.top=e,this.endColumn=t}}class $t extends Ut{constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t}getLanguageConfiguration(e){return this.languageConfigurationService.getLanguageConfiguration(e)}_computeIndentLevel(e){return function(e,t){let n=0,i=0;const r=e.length;for(;i<r;){const r=e.charCodeAt(i);if(32===r)n++;else{if(9!==r)break;n=n-n%t+t}i++}return i===r?-1:n}(this.textModel.getLineContent(e+1),this.textModel.getOptions().tabSize)}getActiveIndentGuide(e,t,n){this.assertNotDisposed();const i=this.textModel.getLineCount();if(e<1||e>i)throw new l.D7("Illegal value for lineNumber");const r=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,s=Boolean(r&&r.offSide);let o=-2,a=-1,h=-2,c=-1;const u=e=>{if(-1!==o&&(-2===o||o>e-1)){o=-1,a=-1;for(let t=e-2;t>=0;t--){const e=this._computeIndentLevel(t);if(e>=0){o=t,a=e;break}}}if(-2===h){h=-1,c=-1;for(let t=e;t<i;t++){const e=this._computeIndentLevel(t);if(e>=0){h=t,c=e;break}}}};let d=-2,g=-1,f=-2,m=-1;const p=e=>{if(-2===d){d=-1,g=-1;for(let t=e-2;t>=0;t--){const e=this._computeIndentLevel(t);if(e>=0){d=t,g=e;break}}}if(-1!==f&&(-2===f||f<e-1)){f=-1,m=-1;for(let t=e;t<i;t++){const e=this._computeIndentLevel(t);if(e>=0){f=t,m=e;break}}}};let _=0,b=!0,k=0,v=!0,C=0,L=0;for(let l=0;b||v;l++){const r=e-l,o=e+l;l>1&&(r<1||r<t)&&(b=!1),l>1&&(o>i||o>n)&&(v=!1),l>5e4&&(b=!1,v=!1);let f=-1;if(b&&r>=1){const e=this._computeIndentLevel(r-1);e>=0?(h=r-1,c=e,f=Math.ceil(e/this.textModel.getOptions().indentSize)):(u(r),f=this._getIndentLevelForWhitespaceLine(s,a,c))}let y=-1;if(v&&o<=i){const e=this._computeIndentLevel(o-1);e>=0?(d=o-1,g=e,y=Math.ceil(e/this.textModel.getOptions().indentSize)):(p(o),y=this._getIndentLevelForWhitespaceLine(s,g,m))}if(0!==l){if(1===l){if(o<=i&&y>=0&&L+1===y){b=!1,_=o,k=o,C=y;continue}if(r>=1&&f>=0&&f-1===L){v=!1,_=r,k=r,C=f;continue}if(_=e,k=e,C=L,0===C)return{startLineNumber:_,endLineNumber:k,indent:C}}b&&(f>=C?_=r:b=!1),v&&(y>=C?k=o:v=!1)}else L=f}return{startLineNumber:_,endLineNumber:k,indent:C}}getLinesBracketGuides(e,t,n,i){const r=[];for(let h=e;h<=t;h++)r.push([]);const s=!0,o=this.textModel.bracketPairs.getBracketPairsInRangeWithMinIndentation(new m.Q(e,1,t,this.textModel.getLineMaxColumn(t))).toArray();let a;if(n&&o.length>0){const i=(e<=n.lineNumber&&n.lineNumber<=t?o:this.textModel.bracketPairs.getBracketPairsInRange(m.Q.fromPositions(n)).toArray()).filter((e=>m.Q.strictContainsPosition(e.range,n)));a=(0,Ht.Uk)(i,(e=>s))?.range}const l=this.textModel.getOptions().bracketPairColorizationOptions.independentColorPoolPerBracketType,c=new Gt;for(const u of o){if(!u.closingBracketRange)continue;const n=a&&u.range.equalsRange(a);if(!n&&!i.includeInactive)continue;const s=c.getInlineClassName(u.nestingLevel,u.nestingLevelOfEqualBracketType,l)+(i.highlightActive&&n?" "+c.activeClassName:""),o=u.openingBracketRange.getStartPosition(),d=u.closingBracketRange.getStartPosition(),g=i.horizontalGuides===qt.Enabled||i.horizontalGuides===qt.EnabledForActive&&n;if(u.range.startLineNumber===u.range.endLineNumber){g&&r[u.range.startLineNumber-e].push(new jt(-1,u.openingBracketRange.getEndPosition().column,s,new Kt(!1,d.column),-1,-1));continue}const f=this.getVisibleColumnFromPosition(d),m=this.getVisibleColumnFromPosition(u.openingBracketRange.getStartPosition()),p=Math.min(m,f,u.minVisibleColumnIndentation+1);let _=!1;h.HG(this.textModel.getLineContent(u.closingBracketRange.startLineNumber))<u.closingBracketRange.startColumn-1&&(_=!0);const b=Math.max(o.lineNumber,e),k=Math.min(d.lineNumber,t),v=_?1:0;for(let t=b;t<k+v;t++)r[t-e].push(new jt(p,-1,s,null,t===o.lineNumber?o.column:-1,t===d.lineNumber?d.column:-1));g&&(o.lineNumber>=e&&m>p&&r[o.lineNumber-e].push(new jt(p,-1,s,new Kt(!1,o.column),-1,-1)),d.lineNumber<=t&&f>p&&r[d.lineNumber-e].push(new jt(p,-1,s,new Kt(!_,d.column),-1,-1)))}for(const h of r)h.sort(((e,t)=>e.visibleColumn-t.visibleColumn));return r}getVisibleColumnFromPosition(e){return d.visibleColumnFromColumn(this.textModel.getLineContent(e.lineNumber),e.column,this.textModel.getOptions().tabSize)+1}getLinesIndentGuides(e,t){this.assertNotDisposed();const n=this.textModel.getLineCount();if(e<1||e>n)throw new Error("Illegal value for startLineNumber");if(t<1||t>n)throw new Error("Illegal value for endLineNumber");const i=this.textModel.getOptions(),r=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,s=Boolean(r&&r.offSide),o=new Array(t-e+1);let a=-2,l=-1,h=-2,c=-1;for(let u=e;u<=t;u++){const t=u-e,r=this._computeIndentLevel(u-1);if(r>=0)a=u-1,l=r,o[t]=Math.ceil(r/i.indentSize);else{if(-2===a){a=-1,l=-1;for(let e=u-2;e>=0;e--){const t=this._computeIndentLevel(e);if(t>=0){a=e,l=t;break}}}if(-1!==h&&(-2===h||h<u-1)){h=-1,c=-1;for(let e=u;e<n;e++){const t=this._computeIndentLevel(e);if(t>=0){h=e,c=t;break}}}o[t]=this._getIndentLevelForWhitespaceLine(s,l,c)}}return o}_getIndentLevelForWhitespaceLine(e,t,n){const i=this.textModel.getOptions();return-1===t||-1===n?0:t<n?1+Math.floor(t/i.indentSize):t===n||e?Math.ceil(n/i.indentSize):1+Math.floor(n/i.indentSize)}}class Gt{constructor(){this.activeClassName="indent-active"}getInlineClassName(e,t,n){return this.getInlineClassNameOfLevel(n?t:e)}getInlineClassNameOfLevel(e){return"bracket-indent-guide lvl-"+e%30}}class Qt{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}}function Yt(e,t,n,i,r){let s;for(r.spacesDiff=0,r.looksLikeAlignment=!1,s=0;s<t&&s<i;s++){if(e.charCodeAt(s)!==n.charCodeAt(s))break}let o=0,a=0;for(let d=s;d<t;d++){32===e.charCodeAt(d)?o++:a++}let l=0,h=0;for(let d=s;d<i;d++){32===n.charCodeAt(d)?l++:h++}if(o>0&&a>0)return;if(l>0&&h>0)return;const c=Math.abs(a-h),u=Math.abs(o-l);if(0===c)return r.spacesDiff=u,void(u>0&&0<=l-1&&l-1<e.length&&l<n.length&&32!==n.charCodeAt(l)&&32===e.charCodeAt(l-1)&&44===e.charCodeAt(e.length-1)&&(r.looksLikeAlignment=!0));u%c!==0||(r.spacesDiff=u/c)}function Xt(e,t,n){const i=Math.min(e.getLineCount(),1e4);let r=0,s=0,o="",a=0;const l=[2,4,6,8,3,5,7],h=[0,0,0,0,0,0,0,0,0],c=new Qt;for(let g=1;g<=i;g++){const i=e.getLineLength(g),l=e.getLineContent(g),u=i<=65536;let d=!1,f=0,m=0,p=0;for(let t=0,n=i;t<n;t++){const n=u?l.charCodeAt(t):e.getLineCharCode(g,t);if(9===n)p++;else{if(32!==n){d=!0,f=t;break}m++}}if(!d)continue;if(p>0?r++:m>1&&s++,Yt(o,a,l,f,c),c.looksLikeAlignment&&(!n||t!==c.spacesDiff))continue;const _=c.spacesDiff;_<=8&&h[_]++,o=l,a=f}let u=n;r!==s&&(u=r<s);let d=t;if(u){let e=u?0:.1*i;l.forEach((t=>{const n=h[t];n>e&&(e=n,d=t)})),4===d&&h[4]>0&&h[2]>0&&h[2]>=h[4]/2&&(d=2)}return{insertSpaces:u,tabSize:d}}function Zt(e){return(1&e.metadata)>>>0}function Jt(e,t){e.metadata=254&e.metadata|t}function en(e){return(2&e.metadata)>>>1===1}function tn(e,t){e.metadata=253&e.metadata|(t?1:0)<<1}function nn(e){return(4&e.metadata)>>>2===1}function rn(e,t){e.metadata=251&e.metadata|(t?1:0)<<2}function sn(e){return(64&e.metadata)>>>6===1}function on(e,t){e.metadata=191&e.metadata|(t?1:0)<<6}function an(e,t){e.metadata=231&e.metadata|t<<3}function ln(e,t){e.metadata=223&e.metadata|(t?1:0)<<5}class hn{constructor(e,t,n){this.metadata=0,this.parent=this,this.left=this,this.right=this,Jt(this,1),this.start=t,this.end=n,this.delta=0,this.maxEnd=n,this.id=e,this.ownerId=0,this.options=null,rn(this,!1),on(this,!1),an(this,1),ln(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=null,tn(this,!1)}reset(e,t,n,i){this.start=t,this.end=n,this.maxEnd=n,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=i}setOptions(e){this.options=e;const t=this.options.className;rn(this,"squiggly-error"===t||"squiggly-warning"===t||"squiggly-info"===t),on(this,null!==this.options.glyphMarginClassName),an(this,this.options.stickiness),ln(this,this.options.collapseOnReplaceEdit)}setCachedOffsets(e,t,n){this.cachedVersionId!==n&&(this.range=null),this.cachedVersionId=n,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t}detach(){this.parent=null,this.left=null,this.right=null}}const cn=new hn(null,0,0);cn.parent=cn,cn.left=cn,cn.right=cn,Jt(cn,0);class un{constructor(){this.root=cn,this.requestNormalizeDelta=!1}intervalSearch(e,t,n,i,r,s){return this.root===cn?[]:function(e,t,n,i,r,s,o){let a=e.root,l=0,h=0,c=0,u=0;const d=[];let g=0;for(;a!==cn;)if(en(a))tn(a.left,!1),tn(a.right,!1),a===a.parent.right&&(l-=a.parent.delta),a=a.parent;else{if(!en(a.left)){if(h=l+a.maxEnd,h<t){tn(a,!0);continue}if(a.left!==cn){a=a.left;continue}}if(c=l+a.start,c>n)tn(a,!0);else{if(u=l+a.end,u>=t){a.setCachedOffsets(c,u,s);let e=!0;i&&a.ownerId&&a.ownerId!==i&&(e=!1),r&&nn(a)&&(e=!1),o&&!sn(a)&&(e=!1),e&&(d[g++]=a)}tn(a,!0),a.right===cn||en(a.right)||(l+=a.delta,a=a.right)}}return tn(e.root,!1),d}(this,e,t,n,i,r,s)}search(e,t,n,i){return this.root===cn?[]:function(e,t,n,i,r){let s=e.root,o=0,a=0,l=0;const h=[];let c=0;for(;s!==cn;){if(en(s)){tn(s.left,!1),tn(s.right,!1),s===s.parent.right&&(o-=s.parent.delta),s=s.parent;continue}if(s.left!==cn&&!en(s.left)){s=s.left;continue}a=o+s.start,l=o+s.end,s.setCachedOffsets(a,l,i);let e=!0;t&&s.ownerId&&s.ownerId!==t&&(e=!1),n&&nn(s)&&(e=!1),r&&!sn(s)&&(e=!1),e&&(h[c++]=s),tn(s,!0),s.right===cn||en(s.right)||(o+=s.delta,s=s.right)}return tn(e.root,!1),h}(this,e,t,n,i)}collectNodesFromOwner(e){return function(e,t){let n=e.root;const i=[];let r=0;for(;n!==cn;)en(n)?(tn(n.left,!1),tn(n.right,!1),n=n.parent):n.left===cn||en(n.left)?(n.ownerId===t&&(i[r++]=n),tn(n,!0),n.right===cn||en(n.right)||(n=n.right)):n=n.left;return tn(e.root,!1),i}(this,e)}collectNodesPostOrder(){return function(e){let t=e.root;const n=[];let i=0;for(;t!==cn;)en(t)?(tn(t.left,!1),tn(t.right,!1),t=t.parent):t.left===cn||en(t.left)?t.right===cn||en(t.right)?(n[i++]=t,tn(t,!0)):t=t.right:t=t.left;return tn(e.root,!1),n}(this)}insert(e){fn(this,e),this._normalizeDeltaIfNecessary()}delete(e){mn(this,e),this._normalizeDeltaIfNecessary()}resolveNode(e,t){const n=e;let i=0;for(;e!==this.root;)e===e.parent.right&&(i+=e.parent.delta),e=e.parent;const r=n.start+i,s=n.end+i;n.setCachedOffsets(r,s,t)}acceptReplace(e,t,n,i){const r=function(e,t,n){let i=e.root,r=0,s=0,o=0,a=0;const l=[];let h=0;for(;i!==cn;)if(en(i))tn(i.left,!1),tn(i.right,!1),i===i.parent.right&&(r-=i.parent.delta),i=i.parent;else{if(!en(i.left)){if(s=r+i.maxEnd,s<t){tn(i,!0);continue}if(i.left!==cn){i=i.left;continue}}o=r+i.start,o>n?tn(i,!0):(a=r+i.end,a>=t&&(i.setCachedOffsets(o,a,0),l[h++]=i),tn(i,!0),i.right===cn||en(i.right)||(r+=i.delta,i=i.right))}return tn(e.root,!1),l}(this,e,e+t);for(let s=0,o=r.length;s<o;s++){mn(this,r[s])}this._normalizeDeltaIfNecessary(),function(e,t,n,i){let r=e.root,s=0,o=0,a=0;const l=i-(n-t);for(;r!==cn;)if(en(r))tn(r.left,!1),tn(r.right,!1),r===r.parent.right&&(s-=r.parent.delta),vn(r),r=r.parent;else{if(!en(r.left)){if(o=s+r.maxEnd,o<t){tn(r,!0);continue}if(r.left!==cn){r=r.left;continue}}a=s+r.start,a>n?(r.start+=l,r.end+=l,r.delta+=l,(r.delta<-1073741824||r.delta>1073741824)&&(e.requestNormalizeDelta=!0),tn(r,!0)):(tn(r,!0),r.right===cn||en(r.right)||(s+=r.delta,r=r.right))}tn(e.root,!1)}(this,e,e+t,n),this._normalizeDeltaIfNecessary();for(let s=0,o=r.length;s<o;s++){const o=r[s];o.start=o.cachedAbsoluteStart,o.end=o.cachedAbsoluteEnd,gn(o,e,e+t,n,i),o.maxEnd=o.end,fn(this,o)}this._normalizeDeltaIfNecessary()}_normalizeDeltaIfNecessary(){this.requestNormalizeDelta&&(this.requestNormalizeDelta=!1,function(e){let t=e.root,n=0;for(;t!==cn;)t.left===cn||en(t.left)?t.right===cn||en(t.right)?(t.start=n+t.start,t.end=n+t.end,t.delta=0,vn(t),tn(t,!0),tn(t.left,!1),tn(t.right,!1),t===t.parent.right&&(n-=t.parent.delta),t=t.parent):(n+=t.delta,t=t.right):t=t.left;tn(e.root,!1)}(this))}}function dn(e,t,n,i){return e<n||!(e>n)&&(1!==i&&(2===i||t))}function gn(e,t,n,i,r){const s=function(e){return(24&e.metadata)>>>3}(e),o=0===s||2===s,a=1===s||2===s,l=n-t,h=i,c=Math.min(l,h),u=e.start;let d=!1;const g=e.end;let f=!1;t<=u&&g<=n&&function(e){return(32&e.metadata)>>>5===1}(e)&&(e.start=t,d=!0,e.end=t,f=!0);{const e=r?1:l>0?2:0;!d&&dn(u,o,t,e)&&(d=!0),!f&&dn(g,a,t,e)&&(f=!0)}if(c>0&&!r){const e=l>h?2:0;!d&&dn(u,o,t+c,e)&&(d=!0),!f&&dn(g,a,t+c,e)&&(f=!0)}{const i=r?1:0;!d&&dn(u,o,n,i)&&(e.start=t+h,d=!0),!f&&dn(g,a,n,i)&&(e.end=t+h,f=!0)}const m=h-l;d||(e.start=Math.max(0,u+m)),f||(e.end=Math.max(0,g+m)),e.start>e.end&&(e.end=e.start)}function fn(e,t){if(e.root===cn)return t.parent=cn,t.left=cn,t.right=cn,Jt(t,0),e.root=t,e.root;!function(e,t){let n=0,i=e.root;const r=t.start,s=t.end;for(;;){if(Ln(r,s,i.start+n,i.end+n)<0){if(i.left===cn){t.start-=n,t.end-=n,t.maxEnd-=n,i.left=t;break}i=i.left}else{if(i.right===cn){t.start-=n+i.delta,t.end-=n+i.delta,t.maxEnd-=n+i.delta,i.right=t;break}n+=i.delta,i=i.right}}t.parent=i,t.left=cn,t.right=cn,Jt(t,1)}(e,t),Cn(t.parent);let n=t;for(;n!==e.root&&1===Zt(n.parent);)if(n.parent===n.parent.parent.left){const t=n.parent.parent.right;1===Zt(t)?(Jt(n.parent,0),Jt(t,0),Jt(n.parent.parent,1),n=n.parent.parent):(n===n.parent.right&&(n=n.parent,_n(e,n)),Jt(n.parent,0),Jt(n.parent.parent,1),bn(e,n.parent.parent))}else{const t=n.parent.parent.left;1===Zt(t)?(Jt(n.parent,0),Jt(t,0),Jt(n.parent.parent,1),n=n.parent.parent):(n===n.parent.left&&(n=n.parent,bn(e,n)),Jt(n.parent,0),Jt(n.parent.parent,1),_n(e,n.parent.parent))}return Jt(e.root,0),t}function mn(e,t){let n,i;if(t.left===cn?(n=t.right,i=t,n.delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta):t.right===cn?(n=t.left,i=t):(i=function(e){for(;e.left!==cn;)e=e.left;return e}(t.right),n=i.right,n.start+=i.delta,n.end+=i.delta,n.delta+=i.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),i.start+=t.delta,i.end+=t.delta,i.delta=t.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0)),i===e.root)return e.root=n,Jt(n,0),t.detach(),pn(),vn(n),void(e.root.parent=cn);const r=1===Zt(i);if(i===i.parent.left?i.parent.left=n:i.parent.right=n,i===t?n.parent=i.parent:(i.parent===t?n.parent=i:n.parent=i.parent,i.left=t.left,i.right=t.right,i.parent=t.parent,Jt(i,Zt(t)),t===e.root?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left!==cn&&(i.left.parent=i),i.right!==cn&&(i.right.parent=i)),t.detach(),r)return Cn(n.parent),i!==t&&(Cn(i),Cn(i.parent)),void pn();let s;for(Cn(n),Cn(n.parent),i!==t&&(Cn(i),Cn(i.parent));n!==e.root&&0===Zt(n);)n===n.parent.left?(s=n.parent.right,1===Zt(s)&&(Jt(s,0),Jt(n.parent,1),_n(e,n.parent),s=n.parent.right),0===Zt(s.left)&&0===Zt(s.right)?(Jt(s,1),n=n.parent):(0===Zt(s.right)&&(Jt(s.left,0),Jt(s,1),bn(e,s),s=n.parent.right),Jt(s,Zt(n.parent)),Jt(n.parent,0),Jt(s.right,0),_n(e,n.parent),n=e.root)):(s=n.parent.left,1===Zt(s)&&(Jt(s,0),Jt(n.parent,1),bn(e,n.parent),s=n.parent.left),0===Zt(s.left)&&0===Zt(s.right)?(Jt(s,1),n=n.parent):(0===Zt(s.left)&&(Jt(s.right,0),Jt(s,1),_n(e,s),s=n.parent.left),Jt(s,Zt(n.parent)),Jt(n.parent,0),Jt(s.left,0),bn(e,n.parent),n=e.root));Jt(n,0),pn()}function pn(){cn.parent=cn,cn.delta=0,cn.start=0,cn.end=0}function _n(e,t){const n=t.right;n.delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta,t.right=n.left,n.left!==cn&&(n.left.parent=t),n.parent=t.parent,t.parent===cn?e.root=n:t===t.parent.left?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n,vn(t),vn(n)}function bn(e,t){const n=t.left;t.delta-=n.delta,(t.delta<-1073741824||t.delta>1073741824)&&(e.requestNormalizeDelta=!0),t.start-=n.delta,t.end-=n.delta,t.left=n.right,n.right!==cn&&(n.right.parent=t),n.parent=t.parent,t.parent===cn?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n,vn(t),vn(n)}function kn(e){let t=e.end;if(e.left!==cn){const n=e.left.maxEnd;n>t&&(t=n)}if(e.right!==cn){const n=e.right.maxEnd+e.delta;n>t&&(t=n)}return t}function vn(e){e.maxEnd=kn(e)}function Cn(e){for(;e!==cn;){const t=kn(e);if(e.maxEnd===t)return;e.maxEnd=t,e=e.parent}}function Ln(e,t,n,i){return e===n?t-i:e-n}class yn{constructor(e,t){this.piece=e,this.color=t,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}next(){if(this.right!==wn)return Sn(this.right);let e=this;for(;e.parent!==wn&&e.parent.left!==e;)e=e.parent;return e.parent===wn?wn:e.parent}prev(){if(this.left!==wn)return xn(this.left);let e=this;for(;e.parent!==wn&&e.parent.right!==e;)e=e.parent;return e.parent===wn?wn:e.parent}detach(){this.parent=null,this.left=null,this.right=null}}const wn=new yn(null,0);function Sn(e){for(;e.left!==wn;)e=e.left;return e}function xn(e){for(;e.right!==wn;)e=e.right;return e}function En(e){return e===wn?0:e.size_left+e.piece.length+En(e.right)}function Nn(e){return e===wn?0:e.lf_left+e.piece.lineFeedCnt+Nn(e.right)}function In(){wn.parent=wn}function Tn(e,t){const n=t.right;n.size_left+=t.size_left+(t.piece?t.piece.length:0),n.lf_left+=t.lf_left+(t.piece?t.piece.lineFeedCnt:0),t.right=n.left,n.left!==wn&&(n.left.parent=t),n.parent=t.parent,t.parent===wn?e.root=n:t.parent.left===t?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n}function An(e,t){const n=t.left;t.left=n.right,n.right!==wn&&(n.right.parent=t),n.parent=t.parent,t.size_left-=n.size_left+(n.piece?n.piece.length:0),t.lf_left-=n.lf_left+(n.piece?n.piece.lineFeedCnt:0),t.parent===wn?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n}function Dn(e,t){let n,i;if(t.left===wn?(i=t,n=i.right):t.right===wn?(i=t,n=i.left):(i=Sn(t.right),n=i.right),i===e.root)return e.root=n,n.color=0,t.detach(),In(),void(e.root.parent=wn);const r=1===i.color;if(i===i.parent.left?i.parent.left=n:i.parent.right=n,i===t?(n.parent=i.parent,On(e,n)):(i.parent===t?n.parent=i:n.parent=i.parent,On(e,n),i.left=t.left,i.right=t.right,i.parent=t.parent,i.color=t.color,t===e.root?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left!==wn&&(i.left.parent=i),i.right!==wn&&(i.right.parent=i),i.size_left=t.size_left,i.lf_left=t.lf_left,On(e,i)),t.detach(),n.parent.left===n){const t=En(n),i=Nn(n);if(t!==n.parent.size_left||i!==n.parent.lf_left){const r=t-n.parent.size_left,s=i-n.parent.lf_left;n.parent.size_left=t,n.parent.lf_left=i,Mn(e,n.parent,r,s)}}if(On(e,n.parent),r)return void In();let s;for(;n!==e.root&&0===n.color;)n===n.parent.left?(s=n.parent.right,1===s.color&&(s.color=0,n.parent.color=1,Tn(e,n.parent),s=n.parent.right),0===s.left.color&&0===s.right.color?(s.color=1,n=n.parent):(0===s.right.color&&(s.left.color=0,s.color=1,An(e,s),s=n.parent.right),s.color=n.parent.color,n.parent.color=0,s.right.color=0,Tn(e,n.parent),n=e.root)):(s=n.parent.left,1===s.color&&(s.color=0,n.parent.color=1,An(e,n.parent),s=n.parent.left),0===s.left.color&&0===s.right.color?(s.color=1,n=n.parent):(0===s.left.color&&(s.right.color=0,s.color=1,Tn(e,s),s=n.parent.left),s.color=n.parent.color,n.parent.color=0,s.left.color=0,An(e,n.parent),n=e.root));n.color=0,In()}function Rn(e,t){for(On(e,t);t!==e.root&&1===t.parent.color;)if(t.parent===t.parent.parent.left){const n=t.parent.parent.right;1===n.color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.right&&Tn(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,An(e,t.parent.parent))}else{const n=t.parent.parent.left;1===n.color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.left&&An(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,Tn(e,t.parent.parent))}e.root.color=0}function Mn(e,t,n,i){for(;t!==e.root&&t!==wn;)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=i),t=t.parent}function On(e,t){let n=0,i=0;if(t!==e.root){for(;t!==e.root&&t===t.parent.right;)t=t.parent;if(t!==e.root)for(n=En((t=t.parent).left)-t.size_left,i=Nn(t.left)-t.lf_left,t.size_left+=n,t.lf_left+=i;t!==e.root&&(0!==n||0!==i);)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=i),t=t.parent}}wn.parent=wn,wn.left=wn,wn.right=wn,wn.color=0;var Bn=n(7729);const Fn=65535;function Pn(e){let t;return t=e[e.length-1]<65536?new Uint16Array(e.length):new Uint32Array(e.length),t.set(e,0),t}class zn{constructor(e,t,n,i,r){this.lineStarts=e,this.cr=t,this.lf=n,this.crlf=i,this.isBasicASCII=r}}function Vn(e,t=!0){const n=[0];let i=1;for(let r=0,s=e.length;r<s;r++){const t=e.charCodeAt(r);13===t?r+1<s&&10===e.charCodeAt(r+1)?(n[i++]=r+2,r++):n[i++]=r+1:10===t&&(n[i++]=r+1)}return t?Pn(n):n}class Wn{constructor(e,t,n,i,r){this.bufferIndex=e,this.start=t,this.end=n,this.lineFeedCnt=i,this.length=r}}class qn{constructor(e,t){this.buffer=e,this.lineStarts=t}}class Hn{constructor(e,t){this._pieces=[],this._tree=e,this._BOM=t,this._index=0,e.root!==wn&&e.iterate(e.root,(e=>(e!==wn&&this._pieces.push(e.piece),!0)))}read(){return 0===this._pieces.length?0===this._index?(this._index++,this._BOM):null:this._index>this._pieces.length-1?null:0===this._index?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])}}class Un{constructor(e){this._limit=e,this._cache=[]}get(e){for(let t=this._cache.length-1;t>=0;t--){const n=this._cache[t];if(n.nodeStartOffset<=e&&n.nodeStartOffset+n.node.piece.length>=e)return n}return null}get2(e){for(let t=this._cache.length-1;t>=0;t--){const n=this._cache[t];if(n.nodeStartLineNumber&&n.nodeStartLineNumber<e&&n.nodeStartLineNumber+n.node.piece.lineFeedCnt>=e)return n}return null}set(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)}validate(e){let t=!1;const n=this._cache;for(let i=0;i<n.length;i++){const r=n[i];(null===r.node.parent||r.nodeStartOffset>=e)&&(n[i]=null,t=!0)}if(t){const e=[];for(const t of n)null!==t&&e.push(t);this._cache=e}}}class jn{constructor(e,t,n){this.create(e,t,n)}create(e,t,n){this._buffers=[new qn("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=wn,this._lineCnt=1,this._length=0,this._EOL=t,this._EOLLength=t.length,this._EOLNormalized=n;let i=null;for(let r=0,s=e.length;r<s;r++)if(e[r].buffer.length>0){e[r].lineStarts||(e[r].lineStarts=Vn(e[r].buffer));const t=new Wn(r+1,{line:0,column:0},{line:e[r].lineStarts.length-1,column:e[r].buffer.length-e[r].lineStarts[e[r].lineStarts.length-1]},e[r].lineStarts.length-1,e[r].buffer.length);this._buffers.push(e[r]),i=this.rbInsertRight(i,t)}this._searchCache=new Un(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()}normalizeEOL(e){const t=Fn,n=t-Math.floor(21845),i=2*n;let r="",s=0;const o=[];if(this.iterate(this.root,(t=>{const a=this.getNodeContent(t),l=a.length;if(s<=n||s+l<i)return r+=a,s+=l,!0;const h=r.replace(/\r\n|\r|\n/g,e);return o.push(new qn(h,Vn(h))),r=a,s=l,!0})),s>0){const t=r.replace(/\r\n|\r|\n/g,e);o.push(new qn(t,Vn(t)))}this.create(o,e,!0)}getEOL(){return this._EOL}setEOL(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)}createSnapshot(e){return new Hn(this,e)}getOffsetAt(e,t){let n=0,i=this.root;for(;i!==wn;)if(i.left!==wn&&i.lf_left+1>=e)i=i.left;else{if(i.lf_left+i.piece.lineFeedCnt+1>=e){n+=i.size_left;return n+(this.getAccumulatedValue(i,e-i.lf_left-2)+t-1)}e-=i.lf_left+i.piece.lineFeedCnt,n+=i.size_left+i.piece.length,i=i.right}return n}getPositionAt(e){e=Math.floor(e),e=Math.max(0,e);let t=this.root,n=0;const i=e;for(;t!==wn;)if(0!==t.size_left&&t.size_left>=e)t=t.left;else{if(t.size_left+t.piece.length>=e){const r=this.getIndexOf(t,e-t.size_left);if(n+=t.lf_left+r.index,0===r.index){const e=i-this.getOffsetAt(n+1,1);return new f.y(n+1,e+1)}return new f.y(n+1,r.remainder+1)}if(e-=t.size_left+t.piece.length,n+=t.lf_left+t.piece.lineFeedCnt,t.right===wn){const t=i-e-this.getOffsetAt(n+1,1);return new f.y(n+1,t+1)}t=t.right}return new f.y(1,1)}getValueInRange(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";const n=this.nodeAt2(e.startLineNumber,e.startColumn),i=this.nodeAt2(e.endLineNumber,e.endColumn),r=this.getValueInRange2(n,i);return t?t===this._EOL&&this._EOLNormalized&&t===this.getEOL()&&this._EOLNormalized?r:r.replace(/\r\n|\r|\n/g,t):r}getValueInRange2(e,t){if(e.node===t.node){const n=e.node,i=this._buffers[n.piece.bufferIndex].buffer,r=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return i.substring(r+e.remainder,r+t.remainder)}let n=e.node;const i=this._buffers[n.piece.bufferIndex].buffer,r=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);let s=i.substring(r+e.remainder,r+n.piece.length);for(n=n.next();n!==wn;){const e=this._buffers[n.piece.bufferIndex].buffer,i=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);if(n===t.node){s+=e.substring(i,i+t.remainder);break}s+=e.substr(i,n.piece.length),n=n.next()}return s}getLinesContent(){const e=[];let t=0,n="",i=!1;return this.iterate(this.root,(r=>{if(r===wn)return!0;const s=r.piece;let o=s.length;if(0===o)return!0;const a=this._buffers[s.bufferIndex].buffer,l=this._buffers[s.bufferIndex].lineStarts,h=s.start.line,c=s.end.line;let u=l[h]+s.start.column;if(i&&(10===a.charCodeAt(u)&&(u++,o--),e[t++]=n,n="",i=!1,0===o))return!0;if(h===c)return this._EOLNormalized||13!==a.charCodeAt(u+o-1)?n+=a.substr(u,o):(i=!0,n+=a.substr(u,o-1)),!0;n+=this._EOLNormalized?a.substring(u,Math.max(u,l[h+1]-this._EOLLength)):a.substring(u,l[h+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=n;for(let i=h+1;i<c;i++)n=this._EOLNormalized?a.substring(l[i],l[i+1]-this._EOLLength):a.substring(l[i],l[i+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=n;return this._EOLNormalized||13!==a.charCodeAt(l[c]+s.end.column-1)?n=a.substr(l[c],s.end.column):(i=!0,0===s.end.column?t--:n=a.substr(l[c],s.end.column-1)),!0})),i&&(e[t++]=n,n=""),e[t++]=n,e}getLength(){return this._length}getLineCount(){return this._lineCnt}getLineContent(e){return this._lastVisitedLine.lineNumber===e||(this._lastVisitedLine.lineNumber=e,e===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(e):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(e,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(e).replace(/(\r\n|\r|\n)$/,"")),this._lastVisitedLine.value}_getCharCode(e){if(e.remainder===e.node.piece.length){const t=e.node.next();if(!t)return 0;const n=this._buffers[t.piece.bufferIndex],i=this.offsetInBuffer(t.piece.bufferIndex,t.piece.start);return n.buffer.charCodeAt(i)}{const t=this._buffers[e.node.piece.bufferIndex],n=this.offsetInBuffer(e.node.piece.bufferIndex,e.node.piece.start)+e.remainder;return t.buffer.charCodeAt(n)}}getLineCharCode(e,t){const n=this.nodeAt2(e,t+1);return this._getCharCode(n)}getLineLength(e){if(e===this.getLineCount()){const t=this.getOffsetAt(e,1);return this.getLength()-t}return this.getOffsetAt(e+1,1)-this.getOffsetAt(e,1)-this._EOLLength}findMatchesInNode(e,t,n,i,r,s,o,a,l,h,c){const u=this._buffers[e.piece.bufferIndex],d=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start),g=this.offsetInBuffer(e.piece.bufferIndex,r),f=this.offsetInBuffer(e.piece.bufferIndex,s);let p;const _={line:0,column:0};let b,k;t._wordSeparators?(b=u.buffer.substring(g,f),k=e=>e+g,t.reset(0)):(b=u.buffer,k=e=>e,t.reset(g));do{if(p=t.next(b),p){if(k(p.index)>=f)return h;this.positionInBuffer(e,k(p.index)-d,_);const t=this.getLineFeedCnt(e.piece.bufferIndex,r,_),s=_.line===r.line?_.column-r.column+i:_.column+1,o=s+p[0].length;if(c[h++]=(0,Bn.dr)(new m.Q(n+t,s,n+t,o),p,a),k(p.index)+p[0].length>=f)return h;if(h>=l)return h}}while(p);return h}findMatchesLineByLine(e,t,n,i){const r=[];let s=0;const o=new Bn.W5(t.wordSeparators,t.regex);let a=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===a)return[];const l=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===l)return[];let h=this.positionInBuffer(a.node,a.remainder);const c=this.positionInBuffer(l.node,l.remainder);if(a.node===l.node)return this.findMatchesInNode(a.node,o,e.startLineNumber,e.startColumn,h,c,t,n,i,s,r),r;let u=e.startLineNumber,d=a.node;for(;d!==l.node;){const l=this.getLineFeedCnt(d.piece.bufferIndex,h,d.piece.end);if(l>=1){const a=this._buffers[d.piece.bufferIndex].lineStarts,c=this.offsetInBuffer(d.piece.bufferIndex,d.piece.start),g=a[h.line+l],f=u===e.startLineNumber?e.startColumn:1;if(s=this.findMatchesInNode(d,o,u,f,h,this.positionInBuffer(d,g-c),t,n,i,s,r),s>=i)return r;u+=l}const c=u===e.startLineNumber?e.startColumn-1:0;if(u===e.endLineNumber){const a=this.getLineContent(u).substring(c,e.endColumn-1);return s=this._findMatchesInLine(t,o,a,e.endLineNumber,c,s,r,n,i),r}if(s=this._findMatchesInLine(t,o,this.getLineContent(u).substr(c),u,c,s,r,n,i),s>=i)return r;u++,a=this.nodeAt2(u,1),d=a.node,h=this.positionInBuffer(a.node,a.remainder)}if(u===e.endLineNumber){const a=u===e.startLineNumber?e.startColumn-1:0,l=this.getLineContent(u).substring(a,e.endColumn-1);return s=this._findMatchesInLine(t,o,l,e.endLineNumber,a,s,r,n,i),r}const g=u===e.startLineNumber?e.startColumn:1;return s=this.findMatchesInNode(l.node,o,u,g,h,c,t,n,i,s,r),r}_findMatchesInLine(e,t,n,i,r,s,o,a,l){const h=e.wordSeparators;if(!a&&e.simpleSearch){const t=e.simpleSearch,a=t.length,c=n.length;let u=-a;for(;-1!==(u=n.indexOf(t,u+a));)if((!h||(0,Bn.wC)(h,n,c,u,a))&&(o[s++]=new me.Dg(new m.Q(i,u+1+r,i,u+1+a+r),null),s>=l))return s;return s}let c;t.reset(0);do{if(c=t.next(n),c&&(o[s++]=(0,Bn.dr)(new m.Q(i,c.index+1+r,i,c.index+1+c[0].length+r),c,a),s>=l))return s}while(c);return s}insert(e,t,n=!1){if(this._EOLNormalized=this._EOLNormalized&&n,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==wn){const{node:n,remainder:i,nodeStartOffset:r}=this.nodeAt(e),s=n.piece,o=s.bufferIndex,a=this.positionInBuffer(n,i);if(0===n.piece.bufferIndex&&s.end.line===this._lastChangeBufferPos.line&&s.end.column===this._lastChangeBufferPos.column&&r+s.length===e&&t.length<Fn)return this.appendToNode(n,t),void this.computeBufferMetadata();if(r===e)this.insertContentToNodeLeft(t,n),this._searchCache.validate(e);else if(r+n.piece.length>e){const e=[];let r=new Wn(s.bufferIndex,a,s.end,this.getLineFeedCnt(s.bufferIndex,a,s.end),this.offsetInBuffer(o,s.end)-this.offsetInBuffer(o,a));if(this.shouldCheckCRLF()&&this.endWithCR(t)){if(10===this.nodeCharCodeAt(n,i)){const e={line:r.start.line+1,column:0};r=new Wn(r.bufferIndex,e,r.end,this.getLineFeedCnt(r.bufferIndex,e,r.end),r.length-1),t+="\n"}}if(this.shouldCheckCRLF()&&this.startWithLF(t)){if(13===this.nodeCharCodeAt(n,i-1)){const r=this.positionInBuffer(n,i-1);this.deleteNodeTail(n,r),t="\r"+t,0===n.piece.length&&e.push(n)}else this.deleteNodeTail(n,a)}else this.deleteNodeTail(n,a);const l=this.createNewPieces(t);r.length>0&&this.rbInsertRight(n,r);let h=n;for(let t=0;t<l.length;t++)h=this.rbInsertRight(h,l[t]);this.deleteNodes(e)}else this.insertContentToNodeRight(t,n)}else{const e=this.createNewPieces(t);let n=this.rbInsertLeft(null,e[0]);for(let t=1;t<e.length;t++)n=this.rbInsertRight(n,e[t])}this.computeBufferMetadata()}delete(e,t){if(this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",t<=0||this.root===wn)return;const n=this.nodeAt(e),i=this.nodeAt(e+t),r=n.node,s=i.node;if(r===s){const s=this.positionInBuffer(r,n.remainder),o=this.positionInBuffer(r,i.remainder);if(n.nodeStartOffset===e){if(t===r.piece.length){const e=r.next();return Dn(this,r),this.validateCRLFWithPrevNode(e),void this.computeBufferMetadata()}return this.deleteNodeHead(r,o),this._searchCache.validate(e),this.validateCRLFWithPrevNode(r),void this.computeBufferMetadata()}return n.nodeStartOffset+r.piece.length===e+t?(this.deleteNodeTail(r,s),this.validateCRLFWithNextNode(r),void this.computeBufferMetadata()):(this.shrinkNode(r,s,o),void this.computeBufferMetadata())}const o=[],a=this.positionInBuffer(r,n.remainder);this.deleteNodeTail(r,a),this._searchCache.validate(e),0===r.piece.length&&o.push(r);const l=this.positionInBuffer(s,i.remainder);this.deleteNodeHead(s,l),0===s.piece.length&&o.push(s);for(let c=r.next();c!==wn&&c!==s;c=c.next())o.push(c);const h=0===r.piece.length?r.prev():r;this.deleteNodes(o),this.validateCRLFWithNextNode(h),this.computeBufferMetadata()}insertContentToNodeLeft(e,t){const n=[];if(this.shouldCheckCRLF()&&this.endWithCR(e)&&this.startWithLF(t)){const i=t.piece,r={line:i.start.line+1,column:0},s=new Wn(i.bufferIndex,r,i.end,this.getLineFeedCnt(i.bufferIndex,r,i.end),i.length-1);t.piece=s,e+="\n",Mn(this,t,-1,-1),0===t.piece.length&&n.push(t)}const i=this.createNewPieces(e);let r=this.rbInsertLeft(t,i[i.length-1]);for(let s=i.length-2;s>=0;s--)r=this.rbInsertLeft(r,i[s]);this.validateCRLFWithPrevNode(r),this.deleteNodes(n)}insertContentToNodeRight(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+="\n");const n=this.createNewPieces(e),i=this.rbInsertRight(t,n[0]);let r=i;for(let s=1;s<n.length;s++)r=this.rbInsertRight(r,n[s]);this.validateCRLFWithPrevNode(i)}positionInBuffer(e,t,n){const i=e.piece,r=e.piece.bufferIndex,s=this._buffers[r].lineStarts,o=s[i.start.line]+i.start.column+t;let a=i.start.line,l=i.end.line,h=0,c=0,u=0;for(;a<=l&&(h=a+(l-a)/2|0,u=s[h],h!==l);)if(c=s[h+1],o<u)l=h-1;else{if(!(o>=c))break;a=h+1}return n?(n.line=h,n.column=o-u,null):{line:h,column:o-u}}getLineFeedCnt(e,t,n){if(0===n.column)return n.line-t.line;const i=this._buffers[e].lineStarts;if(n.line===i.length-1)return n.line-t.line;const r=i[n.line+1],s=i[n.line]+n.column;if(r>s+1)return n.line-t.line;const o=s-1;return 13===this._buffers[e].buffer.charCodeAt(o)?n.line-t.line+1:n.line-t.line}offsetInBuffer(e,t){return this._buffers[e].lineStarts[t.line]+t.column}deleteNodes(e){for(let t=0;t<e.length;t++)Dn(this,e[t])}createNewPieces(e){if(e.length>Fn){const t=[];for(;e.length>Fn;){const n=e.charCodeAt(65534);let i;13===n||n>=55296&&n<=56319?(i=e.substring(0,65534),e=e.substring(65534)):(i=e.substring(0,Fn),e=e.substring(Fn));const r=Vn(i);t.push(new Wn(this._buffers.length,{line:0,column:0},{line:r.length-1,column:i.length-r[r.length-1]},r.length-1,i.length)),this._buffers.push(new qn(i,r))}const n=Vn(e);return t.push(new Wn(this._buffers.length,{line:0,column:0},{line:n.length-1,column:e.length-n[n.length-1]},n.length-1,e.length)),this._buffers.push(new qn(e,n)),t}let t=this._buffers[0].buffer.length;const n=Vn(e,!1);let i=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===t&&0!==t&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},i=this._lastChangeBufferPos;for(let e=0;e<n.length;e++)n[e]+=t+1;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(n.slice(1)),this._buffers[0].buffer+="_"+e,t+=1}else{if(0!==t)for(let e=0;e<n.length;e++)n[e]+=t;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(n.slice(1)),this._buffers[0].buffer+=e}const r=this._buffers[0].buffer.length,s=this._buffers[0].lineStarts.length-1,o={line:s,column:r-this._buffers[0].lineStarts[s]},a=new Wn(0,i,o,this.getLineFeedCnt(0,i,o),r-t);return this._lastChangeBufferPos=o,[a]}getLineRawContent(e,t=0){let n=this.root,i="";const r=this._searchCache.get2(e);if(r){n=r.node;const s=this.getAccumulatedValue(n,e-r.nodeStartLineNumber-1),o=this._buffers[n.piece.bufferIndex].buffer,a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);if(r.nodeStartLineNumber+n.piece.lineFeedCnt!==e){const i=this.getAccumulatedValue(n,e-r.nodeStartLineNumber);return o.substring(a+s,a+i-t)}i=o.substring(a+s,a+n.piece.length)}else{let r=0;const s=e;for(;n!==wn;)if(n.left!==wn&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){const i=this.getAccumulatedValue(n,e-n.lf_left-2),o=this.getAccumulatedValue(n,e-n.lf_left-1),a=this._buffers[n.piece.bufferIndex].buffer,l=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return r+=n.size_left,this._searchCache.set({node:n,nodeStartOffset:r,nodeStartLineNumber:s-(e-1-n.lf_left)}),a.substring(l+i,l+o-t)}if(n.lf_left+n.piece.lineFeedCnt===e-1){const t=this.getAccumulatedValue(n,e-n.lf_left-2),r=this._buffers[n.piece.bufferIndex].buffer,s=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);i=r.substring(s+t,s+n.piece.length);break}e-=n.lf_left+n.piece.lineFeedCnt,r+=n.size_left+n.piece.length,n=n.right}}for(n=n.next();n!==wn;){const e=this._buffers[n.piece.bufferIndex].buffer;if(n.piece.lineFeedCnt>0){const r=this.getAccumulatedValue(n,0),s=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return i+=e.substring(s,s+r-t),i}{const t=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);i+=e.substr(t,n.piece.length)}n=n.next()}return i}computeBufferMetadata(){let e=this.root,t=1,n=0;for(;e!==wn;)t+=e.lf_left+e.piece.lineFeedCnt,n+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=n,this._searchCache.validate(this._length)}getIndexOf(e,t){const n=e.piece,i=this.positionInBuffer(e,t),r=i.line-n.start.line;if(this.offsetInBuffer(n.bufferIndex,n.end)-this.offsetInBuffer(n.bufferIndex,n.start)===t){const t=this.getLineFeedCnt(e.piece.bufferIndex,n.start,i);if(t!==r)return{index:t,remainder:0}}return{index:r,remainder:i.column}}getAccumulatedValue(e,t){if(t<0)return 0;const n=e.piece,i=this._buffers[n.bufferIndex].lineStarts,r=n.start.line+t+1;return r>n.end.line?i[n.end.line]+n.end.column-i[n.start.line]-n.start.column:i[r]-i[n.start.line]-n.start.column}deleteNodeTail(e,t){const n=e.piece,i=n.lineFeedCnt,r=this.offsetInBuffer(n.bufferIndex,n.end),s=t,o=this.offsetInBuffer(n.bufferIndex,s),a=this.getLineFeedCnt(n.bufferIndex,n.start,s),l=a-i,h=o-r,c=n.length+h;e.piece=new Wn(n.bufferIndex,n.start,s,a,c),Mn(this,e,h,l)}deleteNodeHead(e,t){const n=e.piece,i=n.lineFeedCnt,r=this.offsetInBuffer(n.bufferIndex,n.start),s=t,o=this.getLineFeedCnt(n.bufferIndex,s,n.end),a=o-i,l=r-this.offsetInBuffer(n.bufferIndex,s),h=n.length+l;e.piece=new Wn(n.bufferIndex,s,n.end,o,h),Mn(this,e,l,a)}shrinkNode(e,t,n){const i=e.piece,r=i.start,s=i.end,o=i.length,a=i.lineFeedCnt,l=t,h=this.getLineFeedCnt(i.bufferIndex,i.start,l),c=this.offsetInBuffer(i.bufferIndex,t)-this.offsetInBuffer(i.bufferIndex,r);e.piece=new Wn(i.bufferIndex,i.start,l,h,c),Mn(this,e,c-o,h-a);const u=new Wn(i.bufferIndex,n,s,this.getLineFeedCnt(i.bufferIndex,n,s),this.offsetInBuffer(i.bufferIndex,s)-this.offsetInBuffer(i.bufferIndex,n)),d=this.rbInsertRight(e,u);this.validateCRLFWithPrevNode(d)}appendToNode(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+="\n");const n=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),i=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;const r=Vn(t,!1);for(let u=0;u<r.length;u++)r[u]+=i;if(n){const e=this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-2];this._buffers[0].lineStarts.pop(),this._lastChangeBufferPos={line:this._lastChangeBufferPos.line-1,column:i-e}}this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(r.slice(1));const s=this._buffers[0].lineStarts.length-1,o={line:s,column:this._buffers[0].buffer.length-this._buffers[0].lineStarts[s]},a=e.piece.length+t.length,l=e.piece.lineFeedCnt,h=this.getLineFeedCnt(0,e.piece.start,o),c=h-l;e.piece=new Wn(e.piece.bufferIndex,e.piece.start,o,h,a),this._lastChangeBufferPos=o,Mn(this,e,t.length,c)}nodeAt(e){let t=this.root;const n=this._searchCache.get(e);if(n)return{node:n.node,nodeStartOffset:n.nodeStartOffset,remainder:e-n.nodeStartOffset};let i=0;for(;t!==wn;)if(t.size_left>e)t=t.left;else{if(t.size_left+t.piece.length>=e){i+=t.size_left;const n={node:t,remainder:e-t.size_left,nodeStartOffset:i};return this._searchCache.set(n),n}e-=t.size_left+t.piece.length,i+=t.size_left+t.piece.length,t=t.right}return null}nodeAt2(e,t){let n=this.root,i=0;for(;n!==wn;)if(n.left!==wn&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){const r=this.getAccumulatedValue(n,e-n.lf_left-2),s=this.getAccumulatedValue(n,e-n.lf_left-1);return i+=n.size_left,{node:n,remainder:Math.min(r+t-1,s),nodeStartOffset:i}}if(n.lf_left+n.piece.lineFeedCnt===e-1){const r=this.getAccumulatedValue(n,e-n.lf_left-2);if(r+t-1<=n.piece.length)return{node:n,remainder:r+t-1,nodeStartOffset:i};t-=n.piece.length-r;break}e-=n.lf_left+n.piece.lineFeedCnt,i+=n.size_left+n.piece.length,n=n.right}for(n=n.next();n!==wn;){if(n.piece.lineFeedCnt>0){const e=this.getAccumulatedValue(n,0),i=this.offsetOfNode(n);return{node:n,remainder:Math.min(t-1,e),nodeStartOffset:i}}if(n.piece.length>=t-1){return{node:n,remainder:t-1,nodeStartOffset:this.offsetOfNode(n)}}t-=n.piece.length,n=n.next()}return null}nodeCharCodeAt(e,t){if(e.piece.lineFeedCnt<1)return-1;const n=this._buffers[e.piece.bufferIndex],i=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return n.buffer.charCodeAt(i)}offsetOfNode(e){if(!e)return 0;let t=e.size_left;for(;e!==this.root;)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t}shouldCheckCRLF(){return!(this._EOLNormalized&&"\n"===this._EOL)}startWithLF(e){if("string"===typeof e)return 10===e.charCodeAt(0);if(e===wn||0===e.piece.lineFeedCnt)return!1;const t=e.piece,n=this._buffers[t.bufferIndex].lineStarts,i=t.start.line,r=n[i]+t.start.column;if(i===n.length-1)return!1;return!(n[i+1]>r+1)&&10===this._buffers[t.bufferIndex].buffer.charCodeAt(r)}endWithCR(e){return"string"===typeof e?13===e.charCodeAt(e.length-1):e!==wn&&0!==e.piece.lineFeedCnt&&13===this.nodeCharCodeAt(e,e.piece.length-1)}validateCRLFWithPrevNode(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){const t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}}validateCRLFWithNextNode(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}}fixCRLF(e,t){const n=[],i=this._buffers[e.piece.bufferIndex].lineStarts;let r;r=0===e.piece.end.column?{line:e.piece.end.line-1,column:i[e.piece.end.line]-i[e.piece.end.line-1]-1}:{line:e.piece.end.line,column:e.piece.end.column-1};const s=e.piece.length-1,o=e.piece.lineFeedCnt-1;e.piece=new Wn(e.piece.bufferIndex,e.piece.start,r,o,s),Mn(this,e,-1,-1),0===e.piece.length&&n.push(e);const a={line:t.piece.start.line+1,column:0},l=t.piece.length-1,h=this.getLineFeedCnt(t.piece.bufferIndex,a,t.piece.end);t.piece=new Wn(t.piece.bufferIndex,a,t.piece.end,h,l),Mn(this,t,-1,-1),0===t.piece.length&&n.push(t);const c=this.createNewPieces("\r\n");this.rbInsertRight(e,c[0]);for(let u=0;u<n.length;u++)Dn(this,n[u])}adjustCarriageReturnFromNext(e,t){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const n=t.next();if(this.startWithLF(n)){if(e+="\n",1===n.piece.length)Dn(this,n);else{const e=n.piece,t={line:e.start.line+1,column:0},i=e.length-1,r=this.getLineFeedCnt(e.bufferIndex,t,e.end);n.piece=new Wn(e.bufferIndex,t,e.end,r,i),Mn(this,n,-1,-1)}return!0}}return!1}iterate(e,t){if(e===wn)return t(wn);const n=this.iterate(e.left,t);return n?t(e)&&this.iterate(e.right,t):n}getNodeContent(e){if(e===wn)return"";const t=this._buffers[e.piece.bufferIndex],n=e.piece,i=this.offsetInBuffer(n.bufferIndex,n.start),r=this.offsetInBuffer(n.bufferIndex,n.end);return t.buffer.substring(i,r)}getPieceContent(e){const t=this._buffers[e.bufferIndex],n=this.offsetInBuffer(e.bufferIndex,e.start),i=this.offsetInBuffer(e.bufferIndex,e.end);return t.buffer.substring(n,i)}rbInsertRight(e,t){const n=new yn(t,1);n.left=wn,n.right=wn,n.parent=wn,n.size_left=0,n.lf_left=0;if(this.root===wn)this.root=n,n.color=0;else if(e.right===wn)e.right=n,n.parent=e;else{const t=Sn(e.right);t.left=n,n.parent=t}return Rn(this,n),n}rbInsertLeft(e,t){const n=new yn(t,1);if(n.left=wn,n.right=wn,n.parent=wn,n.size_left=0,n.lf_left=0,this.root===wn)this.root=n,n.color=0;else if(e.left===wn)e.left=n,n.parent=e;else{const t=xn(e.left);t.right=n,n.parent=t}return Rn(this,n),n}}class Kn extends r.jG{constructor(e,t,n,r,s,o,a){super(),this._onDidChangeContent=this._register(new i.vl),this._BOM=t,this._mightContainNonBasicASCII=!o,this._mightContainRTL=r,this._mightContainUnusualLineTerminators=s,this._pieceTree=new jn(e,n,a)}mightContainRTL(){return this._mightContainRTL}mightContainUnusualLineTerminators(){return this._mightContainUnusualLineTerminators}resetMightContainUnusualLineTerminators(){this._mightContainUnusualLineTerminators=!1}mightContainNonBasicASCII(){return this._mightContainNonBasicASCII}getBOM(){return this._BOM}getEOL(){return this._pieceTree.getEOL()}createSnapshot(e){return this._pieceTree.createSnapshot(e?this._BOM:"")}getOffsetAt(e,t){return this._pieceTree.getOffsetAt(e,t)}getPositionAt(e){return this._pieceTree.getPositionAt(e)}getRangeAt(e,t){const n=e+t,i=this.getPositionAt(e),r=this.getPositionAt(n);return new m.Q(i.lineNumber,i.column,r.lineNumber,r.column)}getValueInRange(e,t=0){if(e.isEmpty())return"";const n=this._getEndOfLine(t);return this._pieceTree.getValueInRange(e,n)}getValueLengthInRange(e,t=0){if(e.isEmpty())return 0;if(e.startLineNumber===e.endLineNumber)return e.endColumn-e.startColumn;const n=this.getOffsetAt(e.startLineNumber,e.startColumn),i=this.getOffsetAt(e.endLineNumber,e.endColumn);let r=0;const s=this._getEndOfLine(t),o=this.getEOL();if(s.length!==o.length){r=(s.length-o.length)*(e.endLineNumber-e.startLineNumber)}return i-n+r}getCharacterCountInRange(e,t=0){if(this._mightContainNonBasicASCII){let n=0;const i=e.startLineNumber,r=e.endLineNumber;for(let t=i;t<=r;t++){const s=this.getLineContent(t),o=t===i?e.startColumn-1:0,a=t===r?e.endColumn-1:s.length;for(let e=o;e<a;e++)h.pc(s.charCodeAt(e))?(n+=1,e+=1):n+=1}return n+=this._getEndOfLine(t).length*(r-i),n}return this.getValueLengthInRange(e,t)}getLength(){return this._pieceTree.getLength()}getLineCount(){return this._pieceTree.getLineCount()}getLinesContent(){return this._pieceTree.getLinesContent()}getLineContent(e){return this._pieceTree.getLineContent(e)}getLineCharCode(e,t){return this._pieceTree.getLineCharCode(e,t)}getLineLength(e){return this._pieceTree.getLineLength(e)}getLineFirstNonWhitespaceColumn(e){const t=h.HG(this.getLineContent(e));return-1===t?0:t+1}getLineLastNonWhitespaceColumn(e){const t=h.lT(this.getLineContent(e));return-1===t?0:t+2}_getEndOfLine(e){switch(e){case 1:return"\n";case 2:return"\r\n";case 0:return this.getEOL();default:throw new Error("Unknown EOL preference")}}setEOL(e){this._pieceTree.setEOL(e)}applyEdits(e,t,n){let i=this._mightContainRTL,r=this._mightContainUnusualLineTerminators,s=this._mightContainNonBasicASCII,o=!0,a=[];for(let p=0;p<e.length;p++){const t=e[p];o&&t._isTracked&&(o=!1);const n=t.range;if(t.text){let e=!0;s||(e=!h.aC(t.text),s=e),!i&&e&&(i=h.E_(t.text)),!r&&e&&(r=h.$X(t.text))}let l="",c=0,d=0,g=0;if(t.text){let e;[c,d,g,e]=(0,u.W)(t.text);const n=this.getEOL();l=0===e||e===("\r\n"===n?2:1)?t.text:t.text.replace(/\r\n|\r|\n/g,n)}a[p]={sortIndex:p,identifier:t.identifier||null,range:n,rangeOffset:this.getOffsetAt(n.startLineNumber,n.startColumn),rangeLength:this.getValueLengthInRange(n),text:l,eolCount:c,firstLineLength:d,lastLineLength:g,forceMoveMarkers:Boolean(t.forceMoveMarkers),isAutoWhitespaceEdit:t.isAutoWhitespaceEdit||!1}}a.sort(Kn._sortOpsAscending);let l=!1;for(let h=0,u=a.length-1;h<u;h++){const e=a[h].range.getEndPosition(),t=a[h+1].range.getStartPosition();if(t.isBeforeOrEqual(e)){if(t.isBefore(e))throw new Error("Overlapping ranges are not allowed!");l=!0}}o&&(a=this._reduceOperations(a));const c=n||t?Kn._getInverseEditRanges(a):[],d=[];if(t)for(let u=0;u<a.length;u++){const e=a[u],t=c[u];if(e.isAutoWhitespaceEdit&&e.range.isEmpty())for(let n=t.startLineNumber;n<=t.endLineNumber;n++){let i="";n===t.startLineNumber&&(i=this.getLineContent(e.range.startLineNumber),-1!==h.HG(i))||d.push({lineNumber:n,oldContent:i})}}let g=null;if(n){let e=0;g=[];for(let t=0;t<a.length;t++){const n=a[t],i=c[t],r=this.getValueInRange(n.range),s=n.rangeOffset+e;e+=n.text.length-r.length,g[t]={sortIndex:n.sortIndex,identifier:n.identifier,range:i,text:r,textChange:new Dt(n.rangeOffset,r,s,n.text)}}l||g.sort(((e,t)=>e.sortIndex-t.sortIndex))}this._mightContainRTL=i,this._mightContainUnusualLineTerminators=r,this._mightContainNonBasicASCII=s;const f=this._doApplyEdits(a);let m=null;if(t&&d.length>0){d.sort(((e,t)=>t.lineNumber-e.lineNumber)),m=[];for(let e=0,t=d.length;e<t;e++){const t=d[e].lineNumber;if(e>0&&d[e-1].lineNumber===t)continue;const n=d[e].oldContent,i=this.getLineContent(t);0!==i.length&&i!==n&&-1===h.HG(i)&&m.push(t)}}return this._onDidChangeContent.fire(),new me.F4(g,f,m)}_reduceOperations(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]}_toSingleEditOperation(e){let t=!1;const n=e[0].range,i=e[e.length-1].range,r=new m.Q(n.startLineNumber,n.startColumn,i.endLineNumber,i.endColumn);let s=n.startLineNumber,o=n.startColumn;const a=[];for(let u=0,g=e.length;u<g;u++){const n=e[u],i=n.range;t=t||n.forceMoveMarkers,a.push(this.getValueInRange(new m.Q(s,o,i.startLineNumber,i.startColumn))),n.text.length>0&&a.push(n.text),s=i.endLineNumber,o=i.endColumn}const l=a.join(""),[h,c,d]=(0,u.W)(l);return{sortIndex:0,identifier:e[0].identifier,range:r,rangeOffset:this.getOffsetAt(r.startLineNumber,r.startColumn),rangeLength:this.getValueLengthInRange(r,0),text:l,eolCount:h,firstLineLength:c,lastLineLength:d,forceMoveMarkers:t,isAutoWhitespaceEdit:!1}}_doApplyEdits(e){e.sort(Kn._sortOpsDescending);const t=[];for(let n=0;n<e.length;n++){const i=e[n],r=i.range.startLineNumber,s=i.range.startColumn,o=i.range.endLineNumber,a=i.range.endColumn;if(r===o&&s===a&&0===i.text.length)continue;i.text?(this._pieceTree.delete(i.rangeOffset,i.rangeLength),this._pieceTree.insert(i.rangeOffset,i.text,!0)):this._pieceTree.delete(i.rangeOffset,i.rangeLength);const l=new m.Q(r,s,o,a);t.push({range:l,rangeLength:i.rangeLength,text:i.text,rangeOffset:i.rangeOffset,forceMoveMarkers:i.forceMoveMarkers})}return t}findMatchesLineByLine(e,t,n,i){return this._pieceTree.findMatchesLineByLine(e,t,n,i)}static _getInverseEditRanges(e){const t=[];let n=0,i=0,r=null;for(let s=0,o=e.length;s<o;s++){const o=e[s];let a,l,h;if(r?r.range.endLineNumber===o.range.startLineNumber?(a=n,l=i+(o.range.startColumn-r.range.endColumn)):(a=n+(o.range.startLineNumber-r.range.endLineNumber),l=o.range.startColumn):(a=o.range.startLineNumber,l=o.range.startColumn),o.text.length>0){const e=o.eolCount+1;h=1===e?new m.Q(a,l,a,l+o.firstLineLength):new m.Q(a,l,a+e-1,o.lastLineLength+1)}else h=new m.Q(a,l,a,l);n=h.endLineNumber,i=h.endColumn,t.push(h),r=o}return t}static _sortOpsAscending(e,t){const n=m.Q.compareRangesUsingEnds(e.range,t.range);return 0===n?e.sortIndex-t.sortIndex:n}static _sortOpsDescending(e,t){const n=m.Q.compareRangesUsingEnds(e.range,t.range);return 0===n?t.sortIndex-e.sortIndex:-n}}class $n{constructor(e,t,n,i,r,s,o,a,l){this._chunks=e,this._bom=t,this._cr=n,this._lf=i,this._crlf=r,this._containsRTL=s,this._containsUnusualLineTerminators=o,this._isBasicASCII=a,this._normalizeEOL=l}_getEOL(e){const t=this._cr+this._lf+this._crlf,n=this._cr+this._crlf;return 0===t?1===e?"\n":"\r\n":n>t/2?"\r\n":"\n"}create(e){const t=this._getEOL(e),n=this._chunks;if(this._normalizeEOL&&("\r\n"===t&&(this._cr>0||this._lf>0)||"\n"===t&&(this._cr>0||this._crlf>0)))for(let r=0,s=n.length;r<s;r++){const e=n[r].buffer.replace(/\r\n|\r|\n/g,t),i=Vn(e);n[r]=new qn(e,i)}const i=new Kn(n,this._bom,t,this._containsRTL,this._containsUnusualLineTerminators,this._isBasicASCII,this._normalizeEOL);return{textBuffer:i,disposable:i}}}class Gn{constructor(){this.chunks=[],this.BOM="",this._hasPreviousChar=!1,this._previousChar=0,this._tmpLineStarts=[],this.cr=0,this.lf=0,this.crlf=0,this.containsRTL=!1,this.containsUnusualLineTerminators=!1,this.isBasicASCII=!0}acceptChunk(e){if(0===e.length)return;0===this.chunks.length&&h.LU(e)&&(this.BOM=h.r_,e=e.substr(1));const t=e.charCodeAt(e.length-1);13===t||t>=55296&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0,this._previousChar=t):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1,this._previousChar=t)}_acceptChunk1(e,t){(t||0!==e.length)&&(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))}_acceptChunk2(e){const t=function(e,t){e.length=0,e[0]=0;let n=1,i=0,r=0,s=0,o=!0;for(let l=0,h=t.length;l<h;l++){const a=t.charCodeAt(l);13===a?l+1<h&&10===t.charCodeAt(l+1)?(s++,e[n++]=l+2,l++):(i++,e[n++]=l+1):10===a?(r++,e[n++]=l+1):o&&9!==a&&(a<32||a>126)&&(o=!1)}const a=new zn(Pn(e),i,r,s,o);return e.length=0,a}(this._tmpLineStarts,e);this.chunks.push(new qn(e,t.lineStarts)),this.cr+=t.cr,this.lf+=t.lf,this.crlf+=t.crlf,t.isBasicASCII||(this.isBasicASCII=!1,this.containsRTL||(this.containsRTL=h.E_(e)),this.containsUnusualLineTerminators||(this.containsUnusualLineTerminators=h.$X(e)))}finish(e=!0){return this._finish(),new $n(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,e)}_finish(){if(0===this.chunks.length&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;const e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);const t=Vn(e.buffer);e.lineStarts=t,13===this._previousChar&&this.cr++}}}var Qn=n(6571),Yn=n(2083),Xn=n(1940),Zn=n(8381),Jn=n(4444);const ei=new class{clone(){return this}equals(e){return this===e}};class ti{constructor(e){this._default=e,this._store=[]}get(e){return e<this._store.length?this._store[e]:this._default}set(e,t){for(;e>=this._store.length;)this._store[this._store.length]=this._default;this._store[e]=t}replace(e,t,n){if(e>=this._store.length)return;if(0===t)return void this.insert(e,n);if(0===n)return void this.delete(e,t);const i=this._store.slice(0,e),r=this._store.slice(e+t),s=function(e,t){const n=[];for(let i=0;i<e;i++)n[i]=t;return n}(n,this._default);this._store=i.concat(s,r)}delete(e,t){0===t||e>=this._store.length||this._store.splice(e,t)}insert(e,t){if(0===t||e>=this._store.length)return;const n=[];for(let i=0;i<t;i++)n[i]=this._default;this._store=(0,o.nK)(this._store,e,n)}}class ni{get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._startLineNumber+this._tokens.length-1}constructor(e,t){this._startLineNumber=e,this._tokens=t}getLineTokens(e){return this._tokens[e-this._startLineNumber]}appendLineTokens(e){this._tokens.push(e)}}class ii{constructor(){this._tokens=[]}add(e,t){if(this._tokens.length>0){const n=this._tokens[this._tokens.length-1];if(n.endLineNumber+1===e)return void n.appendLineTokens(t)}this._tokens.push(new ni(e,[t]))}finalize(){return this._tokens}}class ri{static{this.defaultTokenMetadata=33587200}static createEmpty(e,t){const n=ri.defaultTokenMetadata,i=new Uint32Array(2);return i[0]=e.length,i[1]=n,new ri(i,e,t)}static createFromTextAndMetadata(e,t){let n=0,i="";const r=new Array;for(const{text:s,metadata:o}of e)r.push(n+s.length,o),n+=s.length,i+=s;return new ri(new Uint32Array(r),i,t)}constructor(e,t,n){this._lineTokensBrand=void 0,this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t,this.languageIdCodec=n}equals(e){return e instanceof ri&&this.slicedEquals(e,0,this._tokensCount)}slicedEquals(e,t,n){if(this._text!==e._text)return!1;if(this._tokensCount!==e._tokensCount)return!1;const i=t<<1,r=i+(n<<1);for(let s=i;s<r;s++)if(this._tokens[s]!==e._tokens[s])return!1;return!0}getLineContent(){return this._text}getCount(){return this._tokensCount}getStartOffset(e){return e>0?this._tokens[e-1<<1]:0}getMetadata(e){return this._tokens[1+(e<<1)]}getLanguageId(e){const t=this._tokens[1+(e<<1)],n=Ze.x.getLanguageId(t);return this.languageIdCodec.decodeLanguageId(n)}getStandardTokenType(e){const t=this._tokens[1+(e<<1)];return Ze.x.getTokenType(t)}getForeground(e){const t=this._tokens[1+(e<<1)];return Ze.x.getForeground(t)}getClassName(e){const t=this._tokens[1+(e<<1)];return Ze.x.getClassNameFromMetadata(t)}getInlineStyle(e,t){const n=this._tokens[1+(e<<1)];return Ze.x.getInlineStyleFromMetadata(n,t)}getPresentation(e){const t=this._tokens[1+(e<<1)];return Ze.x.getPresentationFromMetadata(t)}getEndOffset(e){return this._tokens[e<<1]}findTokenIndexAtOffset(e){return ri.findIndexInTokensArray(this._tokens,e)}inflate(){return this}sliceAndInflate(e,t,n){return new si(this,e,t,n)}static convertToEndOffset(e,t){const n=(e.length>>>1)-1;for(let i=0;i<n;i++)e[i<<1]=e[i+1<<1];e[n<<1]=t}static findIndexInTokensArray(e,t){if(e.length<=2)return 0;let n=0,i=(e.length>>>1)-1;for(;n<i;){const r=n+Math.floor((i-n)/2),s=e[r<<1];if(s===t)return r+1;s<t?n=r+1:s>t&&(i=r)}return n}withInserted(e){if(0===e.length)return this;let t=0,n=0,i="";const r=new Array;let s=0;for(;;){const o=t<this._tokensCount?this._tokens[t<<1]:-1,a=n<e.length?e[n]:null;if(-1!==o&&(null===a||o<=a.offset)){i+=this._text.substring(s,o);const e=this._tokens[1+(t<<1)];r.push(i.length,e),t++,s=o}else{if(!a)break;if(a.offset>s){i+=this._text.substring(s,a.offset);const e=this._tokens[1+(t<<1)];r.push(i.length,e),s=a.offset}i+=a.text,r.push(i.length,a.tokenMetadata),n++}}return new ri(new Uint32Array(r),i,this.languageIdCodec)}getTokenText(e){const t=this.getStartOffset(e),n=this.getEndOffset(e);return this._text.substring(t,n)}forEach(e){const t=this.getCount();for(let n=0;n<t;n++)e(n)}}class si{constructor(e,t,n,i){this._source=e,this._startOffset=t,this._endOffset=n,this._deltaOffset=i,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this.languageIdCodec=e.languageIdCodec,this._tokensCount=0;for(let r=this._firstTokenIndex,s=e.getCount();r<s;r++){if(e.getStartOffset(r)>=n)break;this._tokensCount++}}getMetadata(e){return this._source.getMetadata(this._firstTokenIndex+e)}getLanguageId(e){return this._source.getLanguageId(this._firstTokenIndex+e)}getLineContent(){return this._source.getLineContent().substring(this._startOffset,this._endOffset)}equals(e){return e instanceof si&&(this._startOffset===e._startOffset&&this._endOffset===e._endOffset&&this._deltaOffset===e._deltaOffset&&this._source.slicedEquals(e._source,this._firstTokenIndex,this._tokensCount))}getCount(){return this._tokensCount}getStandardTokenType(e){return this._source.getStandardTokenType(this._firstTokenIndex+e)}getForeground(e){return this._source.getForeground(this._firstTokenIndex+e)}getEndOffset(e){const t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset}getClassName(e){return this._source.getClassName(this._firstTokenIndex+e)}getInlineStyle(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)}getPresentation(e){return this._source.getPresentation(this._firstTokenIndex+e)}findTokenIndexAtOffset(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex}getTokenText(e){const t=this._firstTokenIndex+e,n=this._source.getStartOffset(t),i=this._source.getEndOffset(t);let r=this._source.getTokenText(t);return n<this._startOffset&&(r=r.substring(this._startOffset-n)),i>this._endOffset&&(r=r.substring(0,r.length-(i-this._endOffset))),r}forEach(e){for(let t=0;t<this.getCount();t++)e(t)}}class oi{constructor(e,t){this.tokenizationSupport=t,this.initialState=this.tokenizationSupport.getInitialState(),this.store=new li(e)}getStartState(e){return this.store.getStartState(e,this.initialState)}getFirstInvalidLine(){return this.store.getFirstInvalidLine(this.initialState)}}class ai extends oi{constructor(e,t,n,i){super(e,t),this._textModel=n,this._languageIdCodec=i}updateTokensUntilLine(e,t){const n=this._textModel.getLanguageId();for(;;){const i=this.getFirstInvalidLine();if(!i||i.lineNumber>t)break;const r=this._textModel.getLineContent(i.lineNumber),s=ui(this._languageIdCodec,n,this.tokenizationSupport,r,!0,i.startState);e.add(i.lineNumber,s.tokens),this.store.setEndState(i.lineNumber,s.endState)}}getTokenTypeIfInsertingCharacter(e,t){const n=this.getStartState(e.lineNumber);if(!n)return 0;const i=this._textModel.getLanguageId(),r=this._textModel.getLineContent(e.lineNumber),s=r.substring(0,e.column-1)+t+r.substring(e.column-1),o=ui(this._languageIdCodec,i,this.tokenizationSupport,s,!0,n),a=new ri(o.tokens,s,this._languageIdCodec);if(0===a.getCount())return 0;const l=a.findTokenIndexAtOffset(e.column-1);return a.getStandardTokenType(l)}tokenizeLineWithEdit(e,t,n){const i=e.lineNumber,r=e.column,s=this.getStartState(i);if(!s)return null;const o=this._textModel.getLineContent(i),a=o.substring(0,r-1)+n+o.substring(r-1+t),l=this._textModel.getLanguageIdAtPosition(i,0),h=ui(this._languageIdCodec,l,this.tokenizationSupport,a,!0,s);return new ri(h.tokens,a,this._languageIdCodec)}hasAccurateTokensForLine(e){return e<this.store.getFirstInvalidEndStateLineNumberOrMax()}isCheapToTokenize(e){const t=this.store.getFirstInvalidEndStateLineNumberOrMax();return e<t||e===t&&this._textModel.getLineLength(e)<2048}tokenizeHeuristically(e,t,n){if(n<=this.store.getFirstInvalidEndStateLineNumberOrMax())return{heuristicTokens:!1};if(t<=this.store.getFirstInvalidEndStateLineNumberOrMax())return this.updateTokensUntilLine(e,n),{heuristicTokens:!1};let i=this.guessStartState(t);const r=this._textModel.getLanguageId();for(let s=t;s<=n;s++){const t=this._textModel.getLineContent(s),n=ui(this._languageIdCodec,r,this.tokenizationSupport,t,!0,i);e.add(s,n.tokens),i=n.endState}return{heuristicTokens:!0}}guessStartState(e){let t=this._textModel.getLineFirstNonWhitespaceColumn(e);const n=[];let i=null;for(let o=e-1;t>1&&o>=1;o--){const e=this._textModel.getLineFirstNonWhitespaceColumn(o);if(0!==e&&(e<t&&(n.push(this._textModel.getLineContent(o)),t=e,i=this.getStartState(o),i)))break}i||(i=this.tokenizationSupport.getInitialState()),n.reverse();const r=this._textModel.getLanguageId();let s=i;for(const o of n){s=ui(this._languageIdCodec,r,this.tokenizationSupport,o,!1,s).endState}return s}}class li{constructor(e){this.lineCount=e,this._tokenizationStateStore=new hi,this._invalidEndStatesLineNumbers=new ci,this._invalidEndStatesLineNumbers.addRange(new Jn.L(1,e+1))}getEndState(e){return this._tokenizationStateStore.getEndState(e)}setEndState(e,t){if(!t)throw new l.D7("Cannot set null/undefined state");this._invalidEndStatesLineNumbers.delete(e);const n=this._tokenizationStateStore.setEndState(e,t);return n&&e<this.lineCount&&this._invalidEndStatesLineNumbers.addRange(new Jn.L(e+1,e+2)),n}acceptChange(e,t){this.lineCount+=t-e.length,this._tokenizationStateStore.acceptChange(e,t),this._invalidEndStatesLineNumbers.addRangeAndResize(new Jn.L(e.startLineNumber,e.endLineNumberExclusive),t)}acceptChanges(e){for(const t of e){const[e]=(0,u.W)(t.text);this.acceptChange(new Qn.M(t.range.startLineNumber,t.range.endLineNumber+1),e+1)}}invalidateEndStateRange(e){this._invalidEndStatesLineNumbers.addRange(new Jn.L(e.startLineNumber,e.endLineNumberExclusive))}getFirstInvalidEndStateLineNumber(){return this._invalidEndStatesLineNumbers.min}getFirstInvalidEndStateLineNumberOrMax(){return this.getFirstInvalidEndStateLineNumber()||Number.MAX_SAFE_INTEGER}allStatesValid(){return null===this._invalidEndStatesLineNumbers.min}getStartState(e,t){return 1===e?t:this.getEndState(e-1)}getFirstInvalidLine(e){const t=this.getFirstInvalidEndStateLineNumber();if(null===t)return null;const n=this.getStartState(t,e);if(!n)throw new l.D7("Start state must be defined");return{lineNumber:t,startState:n}}}class hi{constructor(){this._lineEndStates=new ti(null)}getEndState(e){return this._lineEndStates.get(e)}setEndState(e,t){const n=this._lineEndStates.get(e);return(!n||!n.equals(t))&&(this._lineEndStates.set(e,t),!0)}acceptChange(e,t){let n=e.length;t>0&&n>0&&(n--,t--),this._lineEndStates.replace(e.startLineNumber,n,t)}}class ci{constructor(){this._ranges=[]}get min(){return 0===this._ranges.length?null:this._ranges[0].start}delete(e){const t=this._ranges.findIndex((t=>t.contains(e)));if(-1!==t){const n=this._ranges[t];n.start===e?n.endExclusive===e+1?this._ranges.splice(t,1):this._ranges[t]=new Jn.L(e+1,n.endExclusive):n.endExclusive===e+1?this._ranges[t]=new Jn.L(n.start,e):this._ranges.splice(t,1,new Jn.L(n.start,e),new Jn.L(e+1,n.endExclusive))}}addRange(e){Jn.L.addRange(e,this._ranges)}addRangeAndResize(e,t){let n=0;for(;!(n>=this._ranges.length||e.start<=this._ranges[n].endExclusive);)n++;let i=n;for(;!(i>=this._ranges.length||e.endExclusive<this._ranges[i].start);)i++;const r=t-e.length;for(let s=i;s<this._ranges.length;s++)this._ranges[s]=this._ranges[s].delta(r);if(n===i){const i=new Jn.L(e.start,e.start+t);i.isEmpty||this._ranges.splice(n,0,i)}else{const t=Math.min(e.start,this._ranges[n].start),s=Math.max(e.endExclusive,this._ranges[i-1].endExclusive),o=new Jn.L(t,s+r);o.isEmpty?this._ranges.splice(n,i-n):this._ranges.splice(n,i-n,o)}}toString(){return this._ranges.map((e=>e.toString())).join(" + ")}}function ui(e,t,n,i,r,s){let o=null;if(n)try{o=n.tokenizeEncoded(i,r,s.clone())}catch(a){(0,l.dz)(a)}return o||(o=function(e,t){const n=new Uint32Array(2);return n[0]=0,n[1]=(32768|e|2<<24)>>>0,new Yn.rY(n,null===t?ei:t)}(e.encodeLanguageId(t),s)),ri.convertToEndOffset(o.tokens,i.length),o}class di{constructor(e,t){this._tokenizerWithStateStore=e,this._backgroundTokenStore=t,this._isDisposed=!1,this._isScheduled=!1}dispose(){this._isDisposed=!0}handleChanges(){this._beginBackgroundTokenization()}_beginBackgroundTokenization(){!this._isScheduled&&this._tokenizerWithStateStore._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&(this._isScheduled=!0,(0,Xn.$6)((e=>{this._isScheduled=!1,this._backgroundTokenizeWithDeadline(e)})))}_backgroundTokenizeWithDeadline(e){const t=Date.now()+e.timeRemaining(),n=()=>{!this._isDisposed&&this._tokenizerWithStateStore._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&(this._backgroundTokenizeForAtLeast1ms(),Date.now()<t?(0,s._p)(n):this._beginBackgroundTokenization())};n()}_backgroundTokenizeForAtLeast1ms(){const e=this._tokenizerWithStateStore._textModel.getLineCount(),t=new ii,n=Zn.W.create(!1);do{if(n.elapsed()>1)break;if(this._tokenizeOneInvalidLine(t)>=e)break}while(this._hasLinesToTokenize());this._backgroundTokenStore.setTokens(t.finalize()),this.checkFinished()}_hasLinesToTokenize(){return!!this._tokenizerWithStateStore&&!this._tokenizerWithStateStore.store.allStatesValid()}_tokenizeOneInvalidLine(e){const t=this._tokenizerWithStateStore?.getFirstInvalidLine();return t?(this._tokenizerWithStateStore.updateTokensUntilLine(e,t.lineNumber),t.lineNumber):this._tokenizerWithStateStore._textModel.getLineCount()+1}checkFinished(){this._isDisposed||this._tokenizerWithStateStore.store.allStatesValid()&&this._backgroundTokenStore.backgroundTokenizationFinished()}requestTokens(e,t){this._tokenizerWithStateStore.store.invalidateEndStateRange(new Qn.M(e,t))}}class gi{constructor(){this._onDidChangeVisibleRanges=new i.vl,this.onDidChangeVisibleRanges=this._onDidChangeVisibleRanges.event,this._views=new Set}attachView(){const e=new fi((t=>{this._onDidChangeVisibleRanges.fire({view:e,state:t})}));return this._views.add(e),e}detachView(e){this._views.delete(e),this._onDidChangeVisibleRanges.fire({view:e,state:void 0})}}class fi{constructor(e){this.handleStateChange=e}setVisibleLines(e,t){const n=e.map((e=>new Qn.M(e.startLineNumber,e.endLineNumber+1)));this.handleStateChange({visibleLineRanges:n,stabilized:t})}}class mi extends r.jG{get lineRanges(){return this._lineRanges}constructor(e){super(),this._refreshTokens=e,this.runner=this._register(new Xn.uC((()=>this.update()),50)),this._computedLineRanges=[],this._lineRanges=[]}update(){(0,o.aI)(this._computedLineRanges,this._lineRanges,((e,t)=>e.equals(t)))||(this._computedLineRanges=this._lineRanges,this._refreshTokens())}handleStateChange(e){this._lineRanges=e.visibleLineRanges,e.stabilized?(this.runner.cancel(),this.update()):this.runner.schedule()}}class pi extends r.jG{get backgroundTokenizationState(){return this._backgroundTokenizationState}constructor(e,t,n){super(),this._languageIdCodec=e,this._textModel=t,this.getLanguageId=n,this._backgroundTokenizationState=1,this._onDidChangeBackgroundTokenizationState=this._register(new i.vl),this.onDidChangeBackgroundTokenizationState=this._onDidChangeBackgroundTokenizationState.event,this._onDidChangeTokens=this._register(new i.vl),this.onDidChangeTokens=this._onDidChangeTokens.event}tokenizeIfCheap(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)}}class _i extends pi{constructor(e,t,n,i){super(t,n,i),this._treeSitterService=e,this._tokenizationSupport=null,this._initialize()}_initialize(){const e=this.getLanguageId();this._tokenizationSupport&&this._lastLanguageId===e||(this._lastLanguageId=e,this._tokenizationSupport=Yn.OB.get(e))}getLineTokens(e){const t=this._textModel.getLineContent(e);if(this._tokenizationSupport){const n=this._tokenizationSupport.tokenizeEncoded(e,this._textModel);if(n)return new ri(n,t,this._languageIdCodec)}return ri.createEmpty(t,this._languageIdCodec)}resetTokenization(e=!0){e&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]}),this._initialize()}handleDidChangeAttached(){}handleDidChangeContent(e){e.isFlush&&this.resetTokenization(!1)}forceTokenization(e){}hasAccurateTokensForLine(e){return!0}isCheapToTokenize(e){return!0}getTokenTypeIfInsertingCharacter(e,t,n){return 0}tokenizeLineWithEdit(e,t,n){return null}get hasTokens(){return void 0!==this._treeSitterService.getParseResult(this._textModel)}}var bi=n(4432);const ki=new Uint32Array(0).buffer;class vi{static deleteBeginning(e,t){return null===e||e===ki?e:vi.delete(e,0,t)}static deleteEnding(e,t){if(null===e||e===ki)return e;const n=Ci(e),i=n[n.length-2];return vi.delete(e,t,i)}static delete(e,t,n){if(null===e||e===ki||t===n)return e;const i=Ci(e),r=i.length>>>1;if(0===t&&i[i.length-2]===n)return ki;const s=ri.findIndexInTokensArray(i,t),o=s>0?i[s-1<<1]:0;if(n<i[s<<1]){const o=n-t;for(let e=s;e<r;e++)i[e<<1]-=o;return e}let a,l;o!==t?(i[s<<1]=t,a=s+1<<1,l=t):(a=s<<1,l=o);const h=n-t;for(let u=s+1;u<r;u++){const e=i[u<<1]-h;e>l&&(i[a++]=e,i[a++]=i[1+(u<<1)],l=e)}if(a===i.length)return e;const c=new Uint32Array(a);return c.set(i.subarray(0,a),0),c.buffer}static append(e,t){if(t===ki)return e;if(e===ki)return t;if(null===e)return e;if(null===t)return null;const n=Ci(e),i=Ci(t),r=i.length>>>1,s=new Uint32Array(n.length+i.length);s.set(n,0);let o=n.length;const a=n[n.length-2];for(let l=0;l<r;l++)s[o++]=i[l<<1]+a,s[o++]=i[1+(l<<1)];return s.buffer}static insert(e,t,n){if(null===e||e===ki)return e;const i=Ci(e),r=i.length>>>1;let s=ri.findIndexInTokensArray(i,t);if(s>0){i[s-1<<1]===t&&s--}for(let o=s;o<r;o++)i[o<<1]+=n;return e}}function Ci(e){return e instanceof Uint32Array?e:new Uint32Array(e)}class Li{constructor(e){this._lineTokens=[],this._len=0,this._languageIdCodec=e}flush(){this._lineTokens=[],this._len=0}get hasTokens(){return this._lineTokens.length>0}getTokens(e,t,n){let i=null;if(t<this._len&&(i=this._lineTokens[t]),null!==i&&i!==ki)return new ri(Ci(i),n,this._languageIdCodec);const r=new Uint32Array(2);return r[0]=n.length,r[1]=yi(this._languageIdCodec.encodeLanguageId(e)),new ri(r,n,this._languageIdCodec)}static _massageTokens(e,t,n){const i=n?Ci(n):null;if(0===t){let t=!1;if(i&&i.length>1&&(t=Ze.x.getLanguageId(i[1])!==e),!t)return ki}if(!i||0===i.length){const n=new Uint32Array(2);return n[0]=t,n[1]=yi(e),n.buffer}return i[i.length-2]=t,0===i.byteOffset&&i.byteLength===i.buffer.byteLength?i.buffer:i}_ensureLine(e){for(;e>=this._len;)this._lineTokens[this._len]=null,this._len++}_deleteLines(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._lineTokens.splice(e,t),this._len-=t)}_insertLines(e,t){if(0===t)return;const n=[];for(let i=0;i<t;i++)n[i]=null;this._lineTokens=o.nK(this._lineTokens,e,n),this._len+=t}setTokens(e,t,n,i,r){const s=Li._massageTokens(this._languageIdCodec.encodeLanguageId(e),n,i);this._ensureLine(t);const o=this._lineTokens[t];return this._lineTokens[t]=s,!!r&&!Li._equals(o,s)}static _equals(e,t){if(!e||!t)return!e&&!t;const n=Ci(e),i=Ci(t);if(n.length!==i.length)return!1;for(let r=0,s=n.length;r<s;r++)if(n[r]!==i[r])return!1;return!0}acceptEdit(e,t,n){this._acceptDeleteRange(e),this._acceptInsertText(new f.y(e.startLineNumber,e.startColumn),t,n)}_acceptDeleteRange(e){const t=e.startLineNumber-1;if(t>=this._len)return;if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;return void(this._lineTokens[t]=vi.delete(this._lineTokens[t],e.startColumn-1,e.endColumn-1))}this._lineTokens[t]=vi.deleteEnding(this._lineTokens[t],e.startColumn-1);const n=e.endLineNumber-1;let i=null;n<this._len&&(i=vi.deleteBeginning(this._lineTokens[n],e.endColumn-1)),this._lineTokens[t]=vi.append(this._lineTokens[t],i),this._deleteLines(e.startLineNumber,e.endLineNumber-e.startLineNumber)}_acceptInsertText(e,t,n){if(0===t&&0===n)return;const i=e.lineNumber-1;i>=this._len||(0!==t?(this._lineTokens[i]=vi.deleteEnding(this._lineTokens[i],e.column-1),this._lineTokens[i]=vi.insert(this._lineTokens[i],e.column-1,n),this._insertLines(e.lineNumber,t)):this._lineTokens[i]=vi.insert(this._lineTokens[i],e.column-1,n))}setMultilineTokens(e,t){if(0===e.length)return{changes:[]};const n=[];for(let i=0,r=e.length;i<r;i++){const r=e[i];let s=0,o=0,a=!1;for(let e=r.startLineNumber;e<=r.endLineNumber;e++)if(a)this.setTokens(t.getLanguageId(),e-1,t.getLineLength(e),r.getLineTokens(e),!1),o=e;else{this.setTokens(t.getLanguageId(),e-1,t.getLineLength(e),r.getLineTokens(e),!0)&&(a=!0,s=e,o=e)}a&&n.push({fromLineNumber:s,toLineNumber:o})}return{changes:n}}}function yi(e){return(32768|e|2<<24|1024)>>>0}class wi{constructor(e){this._pieces=[],this._isComplete=!1,this._languageIdCodec=e}flush(){this._pieces=[],this._isComplete=!1}isEmpty(){return 0===this._pieces.length}set(e,t){this._pieces=e||[],this._isComplete=t}setPartial(e,t){let n=e;if(t.length>0){const i=t[0].getRange(),r=t[t.length-1].getRange();if(!i||!r)return e;n=e.plusRange(i).plusRange(r)}let i=null;for(let r=0,s=this._pieces.length;r<s;r++){const e=this._pieces[r];if(e.endLineNumber<n.startLineNumber)continue;if(e.startLineNumber>n.endLineNumber){i=i||{index:r};break}if(e.removeTokens(n),e.isEmpty()){this._pieces.splice(r,1),r--,s--;continue}if(e.endLineNumber<n.startLineNumber)continue;if(e.startLineNumber>n.endLineNumber){i=i||{index:r};continue}const[t,o]=e.split(n);t.isEmpty()?i=i||{index:r}:o.isEmpty()||(this._pieces.splice(r,1,t,o),r++,s++,i=i||{index:r})}return i=i||{index:this._pieces.length},t.length>0&&(this._pieces=o.nK(this._pieces,i.index,t)),n}isComplete(){return this._isComplete}addSparseTokens(e,t){if(0===t.getLineContent().length)return t;const n=this._pieces;if(0===n.length)return t;const i=n[wi._findFirstPieceWithLine(n,e)].getLineTokens(e);if(!i)return t;const r=t.getCount(),s=i.getCount();let o=0;const a=[];let l=0,h=0;const c=(e,t)=>{e!==h&&(h=e,a[l++]=e,a[l++]=t)};for(let u=0;u<s;u++){const e=i.getStartCharacter(u),n=i.getEndCharacter(u),s=i.getMetadata(u),a=((1&s?2048:0)|(2&s?4096:0)|(4&s?8192:0)|(8&s?16384:0)|(16&s?16744448:0)|(32&s?4278190080:0))>>>0,l=~a>>>0;for(;o<r&&t.getEndOffset(o)<=e;)c(t.getEndOffset(o),t.getMetadata(o)),o++;for(o<r&&t.getStartOffset(o)<e&&c(e,t.getMetadata(o));o<r&&t.getEndOffset(o)<n;)c(t.getEndOffset(o),t.getMetadata(o)&l|s&a),o++;if(o<r)c(n,t.getMetadata(o)&l|s&a),t.getEndOffset(o)===n&&o++;else{const e=Math.min(Math.max(0,o-1),r-1);c(n,t.getMetadata(e)&l|s&a)}}for(;o<r;)c(t.getEndOffset(o),t.getMetadata(o)),o++;return new ri(new Uint32Array(a),t.getLineContent(),this._languageIdCodec)}static _findFirstPieceWithLine(e,t){let n=0,i=e.length-1;for(;n<i;){let r=n+Math.floor((i-n)/2);if(e[r].endLineNumber<t)n=r+1;else{if(!(e[r].startLineNumber>t)){for(;r>n&&e[r-1].startLineNumber<=t&&t<=e[r-1].endLineNumber;)r--;return r}i=r-1}}return n}acceptEdit(e,t,n,i,r){for(const s of this._pieces)s.acceptEdit(e,t,n,i,r)}}var Si,xi=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},Ei=function(e,t){return function(n,i){t(n,i,e)}};let Ni=Si=class extends Ut{constructor(e,t,n,s,o,a,l){super(),this._textModel=e,this._bracketPairsTextModelPart=t,this._languageId=n,this._attachedViews=s,this._languageService=o,this._languageConfigurationService=a,this._treeSitterService=l,this._semanticTokens=new wi(this._languageService.languageIdCodec),this._onDidChangeLanguage=this._register(new i.vl),this.onDidChangeLanguage=this._onDidChangeLanguage.event,this._onDidChangeLanguageConfiguration=this._register(new i.vl),this.onDidChangeLanguageConfiguration=this._onDidChangeLanguageConfiguration.event,this._onDidChangeTokens=this._register(new i.vl),this.onDidChangeTokens=this._onDidChangeTokens.event,this._tokensDisposables=this._register(new r.Cm),this._register(this._languageConfigurationService.onDidChange((e=>{e.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})}))),this._register(i.Jh.filter(Yn.OB.onDidChange,(e=>e.changedLanguages.includes(this._languageId)))((()=>{this.createPreferredTokenProvider()}))),this.createPreferredTokenProvider()}createGrammarTokens(){return this._register(new Ii(this._languageService.languageIdCodec,this._textModel,(()=>this._languageId),this._attachedViews))}createTreeSitterTokens(){return this._register(new _i(this._treeSitterService,this._languageService.languageIdCodec,this._textModel,(()=>this._languageId)))}createTokens(e){const t=void 0!==this._tokens;this._tokens?.dispose(),this._tokens=e?this.createTreeSitterTokens():this.createGrammarTokens(),this._tokensDisposables.clear(),this._tokensDisposables.add(this._tokens.onDidChangeTokens((e=>{this._emitModelTokensChangedEvent(e)}))),this._tokensDisposables.add(this._tokens.onDidChangeBackgroundTokenizationState((e=>{this._bracketPairsTextModelPart.handleDidChangeBackgroundTokenizationState()}))),t&&this._tokens.resetTokenization()}createPreferredTokenProvider(){Yn.OB.get(this._languageId)?this._tokens instanceof _i||this.createTokens(!0):this._tokens instanceof Ii||this.createTokens(!1)}handleLanguageConfigurationServiceChange(e){e.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})}handleDidChangeContent(e){if(e.isFlush)this._semanticTokens.flush();else if(!e.isEolChange)for(const t of e.changes){const[e,n,i]=(0,u.W)(t.text);this._semanticTokens.acceptEdit(t.range,e,n,i,t.text.length>0?t.text.charCodeAt(0):0)}this._tokens.handleDidChangeContent(e)}handleDidChangeAttached(){this._tokens.handleDidChangeAttached()}getLineTokens(e){this.validateLineNumber(e);const t=this._tokens.getLineTokens(e);return this._semanticTokens.addSparseTokens(e,t)}_emitModelTokensChangedEvent(e){this._textModel._isDisposing()||(this._bracketPairsTextModelPart.handleDidChangeTokens(e),this._onDidChangeTokens.fire(e))}validateLineNumber(e){if(e<1||e>this._textModel.getLineCount())throw new l.D7("Illegal value for lineNumber")}get hasTokens(){return this._tokens.hasTokens}resetTokenization(){this._tokens.resetTokenization()}get backgroundTokenizationState(){return this._tokens.backgroundTokenizationState}forceTokenization(e){this.validateLineNumber(e),this._tokens.forceTokenization(e)}hasAccurateTokensForLine(e){return this.validateLineNumber(e),this._tokens.hasAccurateTokensForLine(e)}isCheapToTokenize(e){return this.validateLineNumber(e),this._tokens.isCheapToTokenize(e)}tokenizeIfCheap(e){this.validateLineNumber(e),this._tokens.tokenizeIfCheap(e)}getTokenTypeIfInsertingCharacter(e,t,n){return this._tokens.getTokenTypeIfInsertingCharacter(e,t,n)}tokenizeLineWithEdit(e,t,n){return this._tokens.tokenizeLineWithEdit(e,t,n)}setSemanticTokens(e,t){this._semanticTokens.set(e,t),this._emitModelTokensChangedEvent({semanticTokensApplied:null!==e,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]})}hasCompleteSemanticTokens(){return this._semanticTokens.isComplete()}hasSomeSemanticTokens(){return!this._semanticTokens.isEmpty()}setPartialSemanticTokens(e,t){if(this.hasCompleteSemanticTokens())return;const n=this._textModel.validateRange(this._semanticTokens.setPartial(e,t));this._emitModelTokensChangedEvent({semanticTokensApplied:!0,ranges:[{fromLineNumber:n.startLineNumber,toLineNumber:n.endLineNumber}]})}getWordAtPosition(e){this.assertNotDisposed();const t=this._textModel.validatePosition(e),n=this._textModel.getLineContent(t.lineNumber),i=this.getLineTokens(t.lineNumber),r=i.findTokenIndexAtOffset(t.column-1),[s,o]=Si._findLanguageBoundaries(i,r),a=(0,v.Th)(t.column,this.getLanguageConfiguration(i.getLanguageId(r)).getWordDefinition(),n.substring(s,o),s);if(a&&a.startColumn<=e.column&&e.column<=a.endColumn)return a;if(r>0&&s===t.column-1){const[s,o]=Si._findLanguageBoundaries(i,r-1),a=(0,v.Th)(t.column,this.getLanguageConfiguration(i.getLanguageId(r-1)).getWordDefinition(),n.substring(s,o),s);if(a&&a.startColumn<=e.column&&e.column<=a.endColumn)return a}return null}getLanguageConfiguration(e){return this._languageConfigurationService.getLanguageConfiguration(e)}static _findLanguageBoundaries(e,t){const n=e.getLanguageId(t);let i=0;for(let s=t;s>=0&&e.getLanguageId(s)===n;s--)i=e.getStartOffset(s);let r=e.getLineContent().length;for(let s=t,o=e.getCount();s<o&&e.getLanguageId(s)===n;s++)r=e.getEndOffset(s);return[i,r]}getWordUntilPosition(e){const t=this.getWordAtPosition(e);return t?{word:t.word.substr(0,e.column-t.startColumn),startColumn:t.startColumn,endColumn:e.column}:{word:"",startColumn:e.column,endColumn:e.column}}getLanguageId(){return this._languageId}getLanguageIdAtPosition(e,t){const n=this._textModel.validatePosition(new f.y(e,t)),i=this.getLineTokens(n.lineNumber);return i.getLanguageId(i.findTokenIndexAtOffset(n.column-1))}setLanguageId(e,t="api"){if(this._languageId===e)return;const n={oldLanguage:this._languageId,newLanguage:e,source:t};this._languageId=e,this._bracketPairsTextModelPart.handleDidChangeLanguage(n),this._tokens.resetTokenization(),this.createPreferredTokenProvider(),this._onDidChangeLanguage.fire(n),this._onDidChangeLanguageConfiguration.fire({})}};Ni=Si=xi([Ei(4,k.L),Ei(5,se),Ei(6,bi.ITreeSitterParserService)],Ni);class Ii extends pi{constructor(e,t,n,i){super(e,t,n),this._tokenizer=null,this._defaultBackgroundTokenizer=null,this._backgroundTokenizer=this._register(new r.HE),this._tokens=new Li(this._languageIdCodec),this._debugBackgroundTokenizer=this._register(new r.HE),this._attachedViewStates=this._register(new r.$w),this._register(Yn.dG.onDidChange((e=>{const t=this.getLanguageId();-1!==e.changedLanguages.indexOf(t)&&this.resetTokenization()}))),this.resetTokenization(),this._register(i.onDidChangeVisibleRanges((({view:e,state:t})=>{if(t){let n=this._attachedViewStates.get(e);n||(n=new mi((()=>this.refreshRanges(n.lineRanges))),this._attachedViewStates.set(e,n)),n.handleStateChange(t)}else this._attachedViewStates.deleteAndDispose(e)})))}resetTokenization(e=!0){this._tokens.flush(),this._debugBackgroundTokens?.flush(),this._debugBackgroundStates&&(this._debugBackgroundStates=new li(this._textModel.getLineCount())),e&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]});const[t,n]=(()=>{if(this._textModel.isTooLargeForTokenization())return[null,null];const e=Yn.dG.get(this.getLanguageId());if(!e)return[null,null];let t;try{t=e.getInitialState()}catch(n){return(0,l.dz)(n),[null,null]}return[e,t]})();if(this._tokenizer=t&&n?new ai(this._textModel.getLineCount(),t,this._textModel,this._languageIdCodec):null,this._backgroundTokenizer.clear(),this._defaultBackgroundTokenizer=null,this._tokenizer){const e={setTokens:e=>{this.setTokens(e)},backgroundTokenizationFinished:()=>{if(2===this._backgroundTokenizationState)return;this._backgroundTokenizationState=2,this._onDidChangeBackgroundTokenizationState.fire()},setEndState:(e,t)=>{if(!this._tokenizer)return;const n=this._tokenizer.store.getFirstInvalidEndStateLineNumber();null!==n&&e>=n&&this._tokenizer?.store.setEndState(e,t)}};t&&t.createBackgroundTokenizer&&!t.backgroundTokenizerShouldOnlyVerifyTokens&&(this._backgroundTokenizer.value=t.createBackgroundTokenizer(this._textModel,e)),this._backgroundTokenizer.value||this._textModel.isTooLargeForTokenization()||(this._backgroundTokenizer.value=this._defaultBackgroundTokenizer=new di(this._tokenizer,e),this._defaultBackgroundTokenizer.handleChanges()),t?.backgroundTokenizerShouldOnlyVerifyTokens&&t.createBackgroundTokenizer?(this._debugBackgroundTokens=new Li(this._languageIdCodec),this._debugBackgroundStates=new li(this._textModel.getLineCount()),this._debugBackgroundTokenizer.clear(),this._debugBackgroundTokenizer.value=t.createBackgroundTokenizer(this._textModel,{setTokens:e=>{this._debugBackgroundTokens?.setMultilineTokens(e,this._textModel)},backgroundTokenizationFinished(){},setEndState:(e,t)=>{this._debugBackgroundStates?.setEndState(e,t)}})):(this._debugBackgroundTokens=void 0,this._debugBackgroundStates=void 0,this._debugBackgroundTokenizer.value=void 0)}this.refreshAllVisibleLineTokens()}handleDidChangeAttached(){this._defaultBackgroundTokenizer?.handleChanges()}handleDidChangeContent(e){if(e.isFlush)this.resetTokenization(!1);else if(!e.isEolChange){for(const t of e.changes){const[e,n]=(0,u.W)(t.text);this._tokens.acceptEdit(t.range,e,n),this._debugBackgroundTokens?.acceptEdit(t.range,e,n)}this._debugBackgroundStates?.acceptChanges(e.changes),this._tokenizer&&this._tokenizer.store.acceptChanges(e.changes),this._defaultBackgroundTokenizer?.handleChanges()}}setTokens(e){const{changes:t}=this._tokens.setMultilineTokens(e,this._textModel);return t.length>0&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:t}),{changes:t}}refreshAllVisibleLineTokens(){const e=Qn.M.joinMany([...this._attachedViewStates].map((([e,t])=>t.lineRanges)));this.refreshRanges(e)}refreshRanges(e){for(const t of e)this.refreshRange(t.startLineNumber,t.endLineNumberExclusive-1)}refreshRange(e,t){if(!this._tokenizer)return;e=Math.max(1,Math.min(this._textModel.getLineCount(),e)),t=Math.min(this._textModel.getLineCount(),t);const n=new ii,{heuristicTokens:i}=this._tokenizer.tokenizeHeuristically(n,e,t),r=this.setTokens(n.finalize());if(i)for(const s of r.changes)this._backgroundTokenizer.value?.requestTokens(s.fromLineNumber,s.toLineNumber+1);this._defaultBackgroundTokenizer?.checkFinished()}forceTokenization(e){const t=new ii;this._tokenizer?.updateTokensUntilLine(t,e),this.setTokens(t.finalize()),this._defaultBackgroundTokenizer?.checkFinished()}hasAccurateTokensForLine(e){return!this._tokenizer||this._tokenizer.hasAccurateTokensForLine(e)}isCheapToTokenize(e){return!this._tokenizer||this._tokenizer.isCheapToTokenize(e)}getLineTokens(e){const t=this._textModel.getLineContent(e),n=this._tokens.getTokens(this._textModel.getLanguageId(),e-1,t);if(this._debugBackgroundTokens&&this._debugBackgroundStates&&this._tokenizer&&this._debugBackgroundStates.getFirstInvalidEndStateLineNumberOrMax()>e&&this._tokenizer.store.getFirstInvalidEndStateLineNumberOrMax()>e){const i=this._debugBackgroundTokens.getTokens(this._textModel.getLanguageId(),e-1,t);!n.equals(i)&&this._debugBackgroundTokenizer.value?.reportMismatchingTokens&&this._debugBackgroundTokenizer.value.reportMismatchingTokens(e)}return n}getTokenTypeIfInsertingCharacter(e,t,n){if(!this._tokenizer)return 0;const i=this._textModel.validatePosition(new f.y(e,t));return this.forceTokenization(i.lineNumber),this._tokenizer.getTokenTypeIfInsertingCharacter(i,n)}tokenizeLineWithEdit(e,t,n){if(!this._tokenizer)return null;const i=this._textModel.validatePosition(e);return this.forceTokenization(i.lineNumber),this._tokenizer.tokenizeLineWithEdit(i,t,n)}get hasTokens(){return this._tokens.hasTokens}}class Ti{constructor(){this.changeType=1}}class Ai{static applyInjectedText(e,t){if(!t||0===t.length)return e;let n="",i=0;for(const r of t)n+=e.substring(i,r.column-1),i=r.column-1,n+=r.options.content;return n+=e.substring(i),n}static fromDecorations(e){const t=[];for(const n of e)n.options.before&&n.options.before.content.length>0&&t.push(new Ai(n.ownerId,n.range.startLineNumber,n.range.startColumn,n.options.before,0)),n.options.after&&n.options.after.content.length>0&&t.push(new Ai(n.ownerId,n.range.endLineNumber,n.range.endColumn,n.options.after,1));return t.sort(((e,t)=>e.lineNumber===t.lineNumber?e.column===t.column?e.order-t.order:e.column-t.column:e.lineNumber-t.lineNumber)),t}constructor(e,t,n,i,r){this.ownerId=e,this.lineNumber=t,this.column=n,this.options=i,this.order=r}}class Di{constructor(e,t,n){this.changeType=2,this.lineNumber=e,this.detail=t,this.injectedText=n}}class Ri{constructor(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t}}class Mi{constructor(e,t,n,i){this.changeType=4,this.injectedTexts=i,this.fromLineNumber=e,this.toLineNumber=t,this.detail=n}}class Oi{constructor(){this.changeType=5}}class Bi{constructor(e,t,n,i){this.changes=e,this.versionId=t,this.isUndoing=n,this.isRedoing=i,this.resultingSelection=null}containsEvent(e){for(let t=0,n=this.changes.length;t<n;t++){if(this.changes[t].changeType===e)return!0}return!1}static merge(e,t){const n=[].concat(e.changes).concat(t.changes),i=t.versionId,r=e.isUndoing||t.isUndoing,s=e.isRedoing||t.isRedoing;return new Bi(n,i,r,s)}}class Fi{constructor(e){this.changes=e}}class Pi{constructor(e,t){this.rawContentChangedEvent=e,this.contentChangedEvent=t}merge(e){const t=Bi.merge(this.rawContentChangedEvent,e.rawContentChangedEvent),n=Pi._mergeChangeEvents(this.contentChangedEvent,e.contentChangedEvent);return new Pi(t,n)}static _mergeChangeEvents(e,t){const n=[].concat(e.changes).concat(t.changes),i=t.eol,r=t.versionId,s=e.isUndoing||t.isUndoing,o=e.isRedoing||t.isRedoing,a=e.isFlush||t.isFlush;return{changes:n,eol:i,isEolChange:e.isEolChange&&t.isEolChange,versionId:r,isUndoing:s,isRedoing:o,isFlush:a}}}const zi=(0,K.u1)("undoRedoService");class Vi{static{this._ID=0}constructor(){this.id=Vi._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}static{this.None=new Vi}}class Wi{static{this._ID=0}constructor(){this.id=Wi._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}static{this.None=new Wi}}var qi,Hi=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},Ui=function(e,t){return function(n,i){t(n,i,e)}};function ji(e,t){let n;return n="string"===typeof e?function(e){const t=new Gn;return t.acceptChunk(e),t.finish()}(e):me.nk(e)?function(e){const t=new Gn;let n;for(;"string"===typeof(n=e.read());)t.acceptChunk(n);return t.finish()}(e):e,n.create(t)}let Ki=0;class $i{constructor(e){this._source=e,this._eos=!1}read(){if(this._eos)return null;const e=[];let t=0,n=0;for(;;){const i=this._source.read();if(null===i)return this._eos=!0,0===t?null:e.join("");if(i.length>0&&(e[t++]=i,n+=i.length),n>=65536)return e.join("")}}}const Gi=()=>{throw new Error("Invalid change accessor")};let Qi=class extends r.jG{static{qi=this}static{this._MODEL_SYNC_LIMIT=52428800}static{this.LARGE_FILE_SIZE_THRESHOLD=20971520}static{this.LARGE_FILE_LINE_COUNT_THRESHOLD=3e5}static{this.LARGE_FILE_HEAP_OPERATION_THRESHOLD=268435456}static{this.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:_.tabSize,indentSize:_.indentSize,insertSpaces:_.insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:_.trimAutoWhitespace,largeFileOptimizations:_.largeFileOptimizations,bracketPairColorizationOptions:_.bracketPairColorizationOptions}}static resolveOptions(e,t){if(t.detectIndentation){const n=Xt(e,t.tabSize,t.insertSpaces);return new me.X2({tabSize:n.tabSize,indentSize:"tabSize",insertSpaces:n.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL,bracketPairColorizationOptions:t.bracketPairColorizationOptions})}return new me.X2(t)}get onDidChangeLanguage(){return this._tokenizationTextModelPart.onDidChangeLanguage}get onDidChangeLanguageConfiguration(){return this._tokenizationTextModelPart.onDidChangeLanguageConfiguration}get onDidChangeTokens(){return this._tokenizationTextModelPart.onDidChangeTokens}onDidChangeContent(e){return this._eventEmitter.slowEvent((t=>e(t.contentChangedEvent)))}onDidChangeContentOrInjectedText(e){return(0,r.qE)(this._eventEmitter.fastEvent((t=>e(t))),this._onDidChangeInjectedText.event((t=>e(t))))}_isDisposing(){return this.__isDisposing}get tokenization(){return this._tokenizationTextModelPart}get bracketPairs(){return this._bracketPairs}get guides(){return this._guidesTextModelPart}constructor(e,t,n,s=null,o,a,l,u){super(),this._undoRedoService=o,this._languageService=a,this._languageConfigurationService=l,this.instantiationService=u,this._onWillDispose=this._register(new i.vl),this.onWillDispose=this._onWillDispose.event,this._onDidChangeDecorations=this._register(new lr((e=>this.handleBeforeFireDecorationsChangedEvent(e)))),this.onDidChangeDecorations=this._onDidChangeDecorations.event,this._onDidChangeOptions=this._register(new i.vl),this.onDidChangeOptions=this._onDidChangeOptions.event,this._onDidChangeAttached=this._register(new i.vl),this.onDidChangeAttached=this._onDidChangeAttached.event,this._onDidChangeInjectedText=this._register(new i.vl),this._eventEmitter=this._register(new hr),this._languageSelectionListener=this._register(new r.HE),this._deltaDecorationCallCnt=0,this._attachedViews=new gi,Ki++,this.id="$model"+Ki,this.isForSimpleWidget=n.isForSimpleWidget,this._associatedResource="undefined"===typeof s||null===s?c.r.parse("inmemory://model/"+Ki):s,this._attachedEditorCount=0;const{textBuffer:d,disposable:g}=ji(e,n.defaultEOL);this._buffer=d,this._bufferDisposable=g,this._options=qi.resolveOptions(this._buffer,n);const f="string"===typeof t?t:t.languageId;"string"!==typeof t&&(this._languageSelectionListener.value=t.onDidChange((()=>this._setLanguage(t.languageId)))),this._bracketPairs=this._register(new Lt(this,this._languageConfigurationService)),this._guidesTextModelPart=this._register(new $t(this,this._languageConfigurationService)),this._decorationProvider=this._register(new Nt(this)),this._tokenizationTextModelPart=this.instantiationService.createInstance(Ni,this,this._bracketPairs,f,this._attachedViews);const p=this._buffer.getLineCount(),_=this._buffer.getValueLengthInRange(new m.Q(1,1,p,this._buffer.getLineLength(p)+1),0);n.largeFileOptimizations?(this._isTooLargeForTokenization=_>qi.LARGE_FILE_SIZE_THRESHOLD||p>qi.LARGE_FILE_LINE_COUNT_THRESHOLD,this._isTooLargeForHeapOperation=_>qi.LARGE_FILE_HEAP_OPERATION_THRESHOLD):(this._isTooLargeForTokenization=!1,this._isTooLargeForHeapOperation=!1),this._isTooLargeForSyncing=_>qi._MODEL_SYNC_LIMIT,this._versionId=1,this._alternativeVersionId=1,this._initialUndoRedoSnapshot=null,this._isDisposed=!1,this.__isDisposing=!1,this._instanceId=h.tk(Ki),this._lastDecorationId=0,this._decorations=Object.create(null),this._decorationsTree=new Zi,this._commandManager=new Wt(this,this._undoRedoService),this._isUndoing=!1,this._isRedoing=!1,this._trimAutoWhitespaceLines=null,this._register(this._decorationProvider.onDidChange((()=>{this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._onDidChangeDecorations.endDeferredEmit()}))),this._languageService.requestRichLanguageFeatures(f),this._register(this._languageConfigurationService.onDidChange((e=>{this._bracketPairs.handleLanguageConfigurationServiceChange(e),this._tokenizationTextModelPart.handleLanguageConfigurationServiceChange(e)})))}dispose(){this.__isDisposing=!0,this._onWillDispose.fire(),this._tokenizationTextModelPart.dispose(),this._isDisposed=!0,super.dispose(),this._bufferDisposable.dispose(),this.__isDisposing=!1;const e=new Kn([],"","\n",!1,!1,!0,!0);e.dispose(),this._buffer=e,this._bufferDisposable=r.jG.None}_assertNotDisposed(){if(this._isDisposed)throw new l.D7("Model is disposed!")}_emitContentChangedEvent(e,t){this.__isDisposing||(this._tokenizationTextModelPart.handleDidChangeContent(t),this._bracketPairs.handleDidChangeContent(t),this._eventEmitter.fire(new Pi(e,t)))}setValue(e){if(this._assertNotDisposed(),null===e||void 0===e)throw(0,l.Qg)();const{textBuffer:t,disposable:n}=ji(e,this._options.defaultEOL);this._setValueFromTextBuffer(t,n)}_createContentChanged2(e,t,n,i,r,s,o,a){return{changes:[{range:e,rangeOffset:t,rangeLength:n,text:i}],eol:this._buffer.getEOL(),isEolChange:a,versionId:this.getVersionId(),isUndoing:r,isRedoing:s,isFlush:o}}_setValueFromTextBuffer(e,t){this._assertNotDisposed();const n=this.getFullModelRange(),i=this.getValueLengthInRange(n),r=this.getLineCount(),s=this.getLineMaxColumn(r);this._buffer=e,this._bufferDisposable.dispose(),this._bufferDisposable=t,this._increaseVersionId(),this._decorations=Object.create(null),this._decorationsTree=new Zi,this._commandManager.clear(),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new Bi([new Ti],this._versionId,!1,!1),this._createContentChanged2(new m.Q(1,1,r,s),0,i,this.getValue(),!1,!1,!0,!1))}setEOL(e){this._assertNotDisposed();const t=1===e?"\r\n":"\n";if(this._buffer.getEOL()===t)return;const n=this.getFullModelRange(),i=this.getValueLengthInRange(n),r=this.getLineCount(),s=this.getLineMaxColumn(r);this._onBeforeEOLChange(),this._buffer.setEOL(t),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new Bi([new Oi],this._versionId,!1,!1),this._createContentChanged2(new m.Q(1,1,r,s),0,i,this.getValue(),!1,!1,!1,!0))}_onBeforeEOLChange(){this._decorationsTree.ensureAllNodesHaveRanges(this)}_onAfterEOLChange(){const e=this.getVersionId(),t=this._decorationsTree.collectNodesPostOrder();for(let n=0,i=t.length;n<i;n++){const i=t[n],r=i.range,s=i.cachedAbsoluteStart-i.start,o=this._buffer.getOffsetAt(r.startLineNumber,r.startColumn),a=this._buffer.getOffsetAt(r.endLineNumber,r.endColumn);i.cachedAbsoluteStart=o,i.cachedAbsoluteEnd=a,i.cachedVersionId=e,i.start=o-s,i.end=a-s,vn(i)}}onBeforeAttached(){return this._attachedEditorCount++,1===this._attachedEditorCount&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0)),this._attachedViews.attachView()}onBeforeDetached(e){this._attachedEditorCount--,0===this._attachedEditorCount&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0)),this._attachedViews.detachView(e)}isAttachedToEditor(){return this._attachedEditorCount>0}getAttachedEditorCount(){return this._attachedEditorCount}isTooLargeForSyncing(){return this._isTooLargeForSyncing}isTooLargeForTokenization(){return this._isTooLargeForTokenization}isTooLargeForHeapOperation(){return this._isTooLargeForHeapOperation}isDisposed(){return this._isDisposed}isDominatedByLongLines(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;let e=0,t=0;const n=this._buffer.getLineCount();for(let i=1;i<=n;i++){const n=this._buffer.getLineLength(i);n>=1e4?t+=n:e+=n}return t>e}get uri(){return this._associatedResource}getOptions(){return this._assertNotDisposed(),this._options}getFormattingOptions(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}}updateOptions(e){this._assertNotDisposed();const t="undefined"!==typeof e.tabSize?e.tabSize:this._options.tabSize,n="undefined"!==typeof e.indentSize?e.indentSize:this._options.originalIndentSize,i="undefined"!==typeof e.insertSpaces?e.insertSpaces:this._options.insertSpaces,r="undefined"!==typeof e.trimAutoWhitespace?e.trimAutoWhitespace:this._options.trimAutoWhitespace,s="undefined"!==typeof e.bracketColorizationOptions?e.bracketColorizationOptions:this._options.bracketPairColorizationOptions,o=new me.X2({tabSize:t,indentSize:n,insertSpaces:i,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:r,bracketPairColorizationOptions:s});if(this._options.equals(o))return;const a=this._options.createChangeEvent(o);this._options=o,this._bracketPairs.handleDidChangeOptions(a),this._decorationProvider.handleDidChangeOptions(a),this._onDidChangeOptions.fire(a)}detectIndentation(e,t){this._assertNotDisposed();const n=Xt(this._buffer,t,e);this.updateOptions({insertSpaces:n.insertSpaces,tabSize:n.tabSize,indentSize:n.tabSize})}normalizeIndentation(e){return this._assertNotDisposed(),g(e,this._options.indentSize,this._options.insertSpaces)}getVersionId(){return this._assertNotDisposed(),this._versionId}mightContainRTL(){return this._buffer.mightContainRTL()}mightContainUnusualLineTerminators(){return this._buffer.mightContainUnusualLineTerminators()}removeUnusualLineTerminators(e=null){const t=this.findMatches(h._J.source,!1,!0,!1,null,!1,1073741824);this._buffer.resetMightContainUnusualLineTerminators(),this.pushEditOperations(e,t.map((e=>({range:e.range,text:null}))),(()=>null))}mightContainNonBasicASCII(){return this._buffer.mightContainNonBasicASCII()}getAlternativeVersionId(){return this._assertNotDisposed(),this._alternativeVersionId}getInitialUndoRedoSnapshot(){return this._assertNotDisposed(),this._initialUndoRedoSnapshot}getOffsetAt(e){this._assertNotDisposed();const t=this._validatePosition(e.lineNumber,e.column,0);return this._buffer.getOffsetAt(t.lineNumber,t.column)}getPositionAt(e){this._assertNotDisposed();const t=Math.min(this._buffer.getLength(),Math.max(0,e));return this._buffer.getPositionAt(t)}_increaseVersionId(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId}_overwriteVersionId(e){this._versionId=e}_overwriteAlternativeVersionId(e){this._alternativeVersionId=e}_overwriteInitialUndoRedoSnapshot(e){this._initialUndoRedoSnapshot=e}getValue(e,t=!1){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new l.D7("Operation would exceed heap memory limits");const n=this.getFullModelRange(),i=this.getValueInRange(n,e);return t?this._buffer.getBOM()+i:i}createSnapshot(e=!1){return new $i(this._buffer.createSnapshot(e))}getValueLength(e,t=!1){this._assertNotDisposed();const n=this.getFullModelRange(),i=this.getValueLengthInRange(n,e);return t?this._buffer.getBOM().length+i:i}getValueInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(e),t)}getValueLengthInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(e),t)}getCharacterCountInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(e),t)}getLineCount(){return this._assertNotDisposed(),this._buffer.getLineCount()}getLineContent(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineContent(e)}getLineLength(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineLength(e)}getLinesContent(){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new l.D7("Operation would exceed heap memory limits");return this._buffer.getLinesContent()}getEOL(){return this._assertNotDisposed(),this._buffer.getEOL()}getEndOfLineSequence(){return this._assertNotDisposed(),"\n"===this._buffer.getEOL()?0:1}getLineMinColumn(e){return this._assertNotDisposed(),1}getLineMaxColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineLength(e)+1}getLineFirstNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)}getLineLastNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)}_validateRangeRelaxedNoAllocations(e){const t=this._buffer.getLineCount(),n=e.startLineNumber,i=e.startColumn;let r=Math.floor("number"!==typeof n||isNaN(n)?1:n),s=Math.floor("number"!==typeof i||isNaN(i)?1:i);if(r<1)r=1,s=1;else if(r>t)r=t,s=this.getLineMaxColumn(r);else if(s<=1)s=1;else{const e=this.getLineMaxColumn(r);s>=e&&(s=e)}const o=e.endLineNumber,a=e.endColumn;let l=Math.floor("number"!==typeof o||isNaN(o)?1:o),h=Math.floor("number"!==typeof a||isNaN(a)?1:a);if(l<1)l=1,h=1;else if(l>t)l=t,h=this.getLineMaxColumn(l);else if(h<=1)h=1;else{const e=this.getLineMaxColumn(l);h>=e&&(h=e)}return n===r&&i===s&&o===l&&a===h&&e instanceof m.Q&&!(e instanceof p.L)?e:new m.Q(r,s,l,h)}_isValidPosition(e,t,n){if("number"!==typeof e||"number"!==typeof t)return!1;if(isNaN(e)||isNaN(t))return!1;if(e<1||t<1)return!1;if((0|e)!==e||(0|t)!==t)return!1;if(e>this._buffer.getLineCount())return!1;if(1===t)return!0;if(t>this.getLineMaxColumn(e))return!1;if(1===n){const n=this._buffer.getLineCharCode(e,t-2);if(h.pc(n))return!1}return!0}_validatePosition(e,t,n){const i=Math.floor("number"!==typeof e||isNaN(e)?1:e),r=Math.floor("number"!==typeof t||isNaN(t)?1:t),s=this._buffer.getLineCount();if(i<1)return new f.y(1,1);if(i>s)return new f.y(s,this.getLineMaxColumn(s));if(r<=1)return new f.y(i,1);const o=this.getLineMaxColumn(i);if(r>=o)return new f.y(i,o);if(1===n){const e=this._buffer.getLineCharCode(i,r-2);if(h.pc(e))return new f.y(i,r-1)}return new f.y(i,r)}validatePosition(e){return this._assertNotDisposed(),e instanceof f.y&&this._isValidPosition(e.lineNumber,e.column,1)?e:this._validatePosition(e.lineNumber,e.column,1)}_isValidRange(e,t){const n=e.startLineNumber,i=e.startColumn,r=e.endLineNumber,s=e.endColumn;if(!this._isValidPosition(n,i,0))return!1;if(!this._isValidPosition(r,s,0))return!1;if(1===t){const e=i>1?this._buffer.getLineCharCode(n,i-2):0,t=s>1&&s<=this._buffer.getLineLength(r)?this._buffer.getLineCharCode(r,s-2):0,o=h.pc(e),a=h.pc(t);return!o&&!a}return!0}validateRange(e){if(this._assertNotDisposed(),e instanceof m.Q&&!(e instanceof p.L)&&this._isValidRange(e,1))return e;const t=this._validatePosition(e.startLineNumber,e.startColumn,0),n=this._validatePosition(e.endLineNumber,e.endColumn,0),i=t.lineNumber,r=t.column,s=n.lineNumber,o=n.column;{const e=r>1?this._buffer.getLineCharCode(i,r-2):0,t=o>1&&o<=this._buffer.getLineLength(s)?this._buffer.getLineCharCode(s,o-2):0,n=h.pc(e),a=h.pc(t);return n||a?i===s&&r===o?new m.Q(i,r-1,s,o-1):n&&a?new m.Q(i,r-1,s,o+1):n?new m.Q(i,r-1,s,o):new m.Q(i,r,s,o+1):new m.Q(i,r,s,o)}}modifyPosition(e,t){this._assertNotDisposed();const n=this.getOffsetAt(e)+t;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,n)))}getFullModelRange(){this._assertNotDisposed();const e=this.getLineCount();return new m.Q(1,1,e,this.getLineMaxColumn(e))}findMatchesLineByLine(e,t,n,i){return this._buffer.findMatchesLineByLine(e,t,n,i)}findMatches(e,t,n,i,r,s,o=999){this._assertNotDisposed();let a=null;null!==t&&(Array.isArray(t)||(t=[t]),t.every((e=>m.Q.isIRange(e)))&&(a=t.map((e=>this.validateRange(e))))),null===a&&(a=[this.getFullModelRange()]),a=a.sort(((e,t)=>e.startLineNumber-t.startLineNumber||e.startColumn-t.startColumn));const l=[];let h;if(l.push(a.reduce(((e,t)=>m.Q.areIntersecting(e,t)?e.plusRange(t):(l.push(e),t)))),!n&&e.indexOf("\n")<0){const t=new Bn.lt(e,n,i,r).parseSearchRequest();if(!t)return[];h=e=>this.findMatchesLineByLine(e,t,s,o)}else h=t=>Bn.hB.findMatches(this,new Bn.lt(e,n,i,r),t,s,o);return l.map(h).reduce(((e,t)=>e.concat(t)),[])}findNextMatch(e,t,n,i,r,s){this._assertNotDisposed();const o=this.validatePosition(t);if(!n&&e.indexOf("\n")<0){const t=new Bn.lt(e,n,i,r).parseSearchRequest();if(!t)return null;const a=this.getLineCount();let l=new m.Q(o.lineNumber,o.column,a,this.getLineMaxColumn(a)),h=this.findMatchesLineByLine(l,t,s,1);return Bn.hB.findNextMatch(this,new Bn.lt(e,n,i,r),o,s),h.length>0?h[0]:(l=new m.Q(1,1,o.lineNumber,this.getLineMaxColumn(o.lineNumber)),h=this.findMatchesLineByLine(l,t,s,1),h.length>0?h[0]:null)}return Bn.hB.findNextMatch(this,new Bn.lt(e,n,i,r),o,s)}findPreviousMatch(e,t,n,i,r,s){this._assertNotDisposed();const o=this.validatePosition(t);return Bn.hB.findPreviousMatch(this,new Bn.lt(e,n,i,r),o,s)}pushStackElement(){this._commandManager.pushStackElement()}popStackElement(){this._commandManager.popStackElement()}pushEOL(e){if(("\n"===this.getEOL()?0:1)!==e)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEOL(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_validateEditOperation(e){return e instanceof me.Wo?e:new me.Wo(e.identifier||null,this.validateRange(e.range),e.text,e.forceMoveMarkers||!1,e.isAutoWhitespaceEdit||!1,e._isTracked||!1)}_validateEditOperations(e){const t=[];for(let n=0,i=e.length;n<i;n++)t[n]=this._validateEditOperation(e[n]);return t}pushEditOperations(e,t,n,i){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(e,this._validateEditOperations(t),n,i)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_pushEditOperations(e,t,n,i){if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){const n=t.map((e=>({range:this.validateRange(e.range),text:e.text})));let i=!0;if(e)for(let t=0,r=e.length;t<r;t++){const r=e[t];let s=!1;for(let e=0,t=n.length;e<t;e++){const t=n[e].range,i=t.startLineNumber>r.endLineNumber,o=r.startLineNumber>t.endLineNumber;if(!i&&!o){s=!0;break}}if(!s){i=!1;break}}if(i)for(let e=0,r=this._trimAutoWhitespaceLines.length;e<r;e++){const i=this._trimAutoWhitespaceLines[e],r=this.getLineMaxColumn(i);let s=!0;for(let e=0,t=n.length;e<t;e++){const t=n[e].range,o=n[e].text;if(!(i<t.startLineNumber||i>t.endLineNumber)&&(!(i===t.startLineNumber&&t.startColumn===r&&t.isEmpty()&&o&&o.length>0&&"\n"===o.charAt(0))&&!(i===t.startLineNumber&&1===t.startColumn&&t.isEmpty()&&o&&o.length>0&&"\n"===o.charAt(o.length-1)))){s=!1;break}}if(s){const e=new m.Q(i,1,i,r);t.push(new me.Wo(null,e,null,!1,!1,!1))}}this._trimAutoWhitespaceLines=null}return null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEditOperation(e,t,n,i)}_applyUndo(e,t,n,i){const r=e.map((e=>{const t=this.getPositionAt(e.newPosition),n=this.getPositionAt(e.newEnd);return{range:new m.Q(t.lineNumber,t.column,n.lineNumber,n.column),text:e.oldText}}));this._applyUndoRedoEdits(r,t,!0,!1,n,i)}_applyRedo(e,t,n,i){const r=e.map((e=>{const t=this.getPositionAt(e.oldPosition),n=this.getPositionAt(e.oldEnd);return{range:new m.Q(t.lineNumber,t.column,n.lineNumber,n.column),text:e.newText}}));this._applyUndoRedoEdits(r,t,!1,!0,n,i)}_applyUndoRedoEdits(e,t,n,i,r,s){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._isUndoing=n,this._isRedoing=i,this.applyEdits(e,!1),this.setEOL(t),this._overwriteAlternativeVersionId(r)}finally{this._isUndoing=!1,this._isRedoing=!1,this._eventEmitter.endDeferredEmit(s),this._onDidChangeDecorations.endDeferredEmit()}}applyEdits(e,t=!1){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit();const n=this._validateEditOperations(e);return this._doApplyEdits(n,t)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_doApplyEdits(e,t){const n=this._buffer.getLineCount(),i=this._buffer.applyEdits(e,this._options.trimAutoWhitespace,t),r=this._buffer.getLineCount(),s=i.changes;if(this._trimAutoWhitespaceLines=i.trimAutoWhitespaceLineNumbers,0!==s.length){for(let n=0,i=s.length;n<i;n++){const e=s[n];this._decorationsTree.acceptReplace(e.rangeOffset,e.rangeLength,e.text.length,e.forceMoveMarkers)}const e=[];this._increaseVersionId();let t=n;for(let n=0,i=s.length;n<i;n++){const i=s[n],[a]=(0,u.W)(i.text);this._onDidChangeDecorations.fire();const l=i.range.startLineNumber,h=i.range.endLineNumber,c=h-l,d=a,g=Math.min(c,d),m=d-c,p=r-t-m+l,_=p,b=p+d,k=this._decorationsTree.getInjectedTextInInterval(this,this.getOffsetAt(new f.y(_,1)),this.getOffsetAt(new f.y(b,this.getLineMaxColumn(b))),0),v=Ai.fromDecorations(k),C=new o.j3(v);for(let t=g;t>=0;t--){const n=l+t,i=p+t;C.takeFromEndWhile((e=>e.lineNumber>i));const r=C.takeFromEndWhile((e=>e.lineNumber===i));e.push(new Di(n,this.getLineContent(i),r))}if(g<c){const t=l+g;e.push(new Ri(t+1,h))}if(g<d){const n=new o.j3(v),i=l+g,s=d-g,a=r-t-s+i+1,h=[],c=[];for(let e=0;e<s;e++){const t=a+e;c[e]=this.getLineContent(t),n.takeWhile((e=>e.lineNumber<t)),h[e]=n.takeWhile((e=>e.lineNumber===t))}e.push(new Mi(i+1,l+d,c,h))}t+=m}this._emitContentChangedEvent(new Bi(e,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:s,eol:this._buffer.getEOL(),isEolChange:!1,versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return null===i.reverseEdits?void 0:i.reverseEdits}undo(){return this._undoRedoService.undo(this.uri)}canUndo(){return this._undoRedoService.canUndo(this.uri)}redo(){return this._undoRedoService.redo(this.uri)}canRedo(){return this._undoRedoService.canRedo(this.uri)}handleBeforeFireDecorationsChangedEvent(e){if(null===e||0===e.size)return;const t=Array.from(e).map((e=>new Di(e,this.getLineContent(e),this._getInjectedTextInLine(e))));this._onDidChangeInjectedText.fire(new Fi(t))}changeDecorations(e,t=0){this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(t,e)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_changeDecorations(e,t){const n={addDecoration:(t,n)=>this._deltaDecorationsImpl(e,[],[{range:t,options:n}])[0],changeDecoration:(e,t)=>{this._changeDecorationImpl(e,t)},changeDecorationOptions:(e,t)=>{this._changeDecorationOptionsImpl(e,ar(t))},removeDecoration:t=>{this._deltaDecorationsImpl(e,[t],[])},deltaDecorations:(t,n)=>0===t.length&&0===n.length?[]:this._deltaDecorationsImpl(e,t,n)};let i=null;try{i=t(n)}catch(r){(0,l.dz)(r)}return n.addDecoration=Gi,n.changeDecoration=Gi,n.changeDecorationOptions=Gi,n.removeDecoration=Gi,n.deltaDecorations=Gi,i}deltaDecorations(e,t,n=0){if(this._assertNotDisposed(),e||(e=[]),0===e.length&&0===t.length)return[];try{return this._deltaDecorationCallCnt++,this._deltaDecorationCallCnt>1&&(console.warn("Invoking deltaDecorations recursively could lead to leaking decorations."),(0,l.dz)(new Error("Invoking deltaDecorations recursively could lead to leaking decorations."))),this._onDidChangeDecorations.beginDeferredEmit(),this._deltaDecorationsImpl(n,e,t)}finally{this._onDidChangeDecorations.endDeferredEmit(),this._deltaDecorationCallCnt--}}_getTrackedRange(e){return this.getDecorationRange(e)}_setTrackedRange(e,t,n){const i=e?this._decorations[e]:null;if(!i)return t?this._deltaDecorationsImpl(0,[],[{range:t,options:or[n]}],!0)[0]:null;if(!t)return this._decorationsTree.delete(i),delete this._decorations[i.id],null;const r=this._validateRangeRelaxedNoAllocations(t),s=this._buffer.getOffsetAt(r.startLineNumber,r.startColumn),o=this._buffer.getOffsetAt(r.endLineNumber,r.endColumn);return this._decorationsTree.delete(i),i.reset(this.getVersionId(),s,o,r),i.setOptions(or[n]),this._decorationsTree.insert(i),i.id}removeAllDecorationsWithOwnerId(e){if(this._isDisposed)return;const t=this._decorationsTree.collectNodesFromOwner(e);for(let n=0,i=t.length;n<i;n++){const e=t[n];this._decorationsTree.delete(e),delete this._decorations[e.id]}}getDecorationOptions(e){const t=this._decorations[e];return t?t.options:null}getDecorationRange(e){const t=this._decorations[e];return t?this._decorationsTree.getNodeRange(this,t):null}getLineDecorations(e,t=0,n=!1){return e<1||e>this.getLineCount()?[]:this.getLinesDecorations(e,e,t,n)}getLinesDecorations(e,t,n=0,i=!1,r=!1){const s=this.getLineCount(),a=Math.min(s,Math.max(1,e)),l=Math.min(s,Math.max(1,t)),h=this.getLineMaxColumn(l),c=new m.Q(a,1,l,h),u=this._getDecorationsInRange(c,n,i,r);return(0,o.E4)(u,this._decorationProvider.getDecorationsInRange(c,n,i)),u}getDecorationsInRange(e,t=0,n=!1,i=!1,r=!1){const s=this.validateRange(e),a=this._getDecorationsInRange(s,t,n,r);return(0,o.E4)(a,this._decorationProvider.getDecorationsInRange(s,t,n,i)),a}getOverviewRulerDecorations(e=0,t=!1){return this._decorationsTree.getAll(this,e,t,!0,!1)}getInjectedTextDecorations(e=0){return this._decorationsTree.getAllInjectedText(this,e)}_getInjectedTextInLine(e){const t=this._buffer.getOffsetAt(e,1),n=t+this._buffer.getLineLength(e),i=this._decorationsTree.getInjectedTextInInterval(this,t,n,0);return Ai.fromDecorations(i).filter((t=>t.lineNumber===e))}getAllDecorations(e=0,t=!1){let n=this._decorationsTree.getAll(this,e,t,!1,!1);return n=n.concat(this._decorationProvider.getAllDecorations(e,t)),n}getAllMarginDecorations(e=0){return this._decorationsTree.getAll(this,e,!1,!1,!0)}_getDecorationsInRange(e,t,n,i){const r=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),s=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn);return this._decorationsTree.getAllInInterval(this,r,s,t,n,i)}getRangeAt(e,t){return this._buffer.getRangeAt(e,t-e)}_changeDecorationImpl(e,t){const n=this._decorations[e];if(!n)return;if(n.options.after){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.endLineNumber)}if(n.options.before){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.startLineNumber)}const i=this._validateRangeRelaxedNoAllocations(t),r=this._buffer.getOffsetAt(i.startLineNumber,i.startColumn),s=this._buffer.getOffsetAt(i.endLineNumber,i.endColumn);this._decorationsTree.delete(n),n.reset(this.getVersionId(),r,s,i),this._decorationsTree.insert(n),this._onDidChangeDecorations.checkAffectedAndFire(n.options),n.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(i.endLineNumber),n.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(i.startLineNumber)}_changeDecorationOptionsImpl(e,t){const n=this._decorations[e];if(!n)return;const i=!(!n.options.overviewRuler||!n.options.overviewRuler.color),r=!(!t.overviewRuler||!t.overviewRuler.color);if(this._onDidChangeDecorations.checkAffectedAndFire(n.options),this._onDidChangeDecorations.checkAffectedAndFire(t),n.options.after||t.after){const e=this._decorationsTree.getNodeRange(this,n);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(n.options.before||t.before){const e=this._decorationsTree.getNodeRange(this,n);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}const s=i!==r,o=function(e){return!!e.after||!!e.before}(t)!==Xi(n);s||o?(this._decorationsTree.delete(n),n.setOptions(t),this._decorationsTree.insert(n)):n.setOptions(t)}_deltaDecorationsImpl(e,t,n,i=!1){const r=this.getVersionId(),s=t.length;let o=0;const a=n.length;let l=0;this._onDidChangeDecorations.beginDeferredEmit();try{const h=new Array(a);for(;o<s||l<a;){let c=null;if(o<s){do{c=this._decorations[t[o++]]}while(!c&&o<s);if(c){if(c.options.after){const e=this._decorationsTree.getNodeRange(this,c);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(c.options.before){const e=this._decorationsTree.getNodeRange(this,c);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}this._decorationsTree.delete(c),i||this._onDidChangeDecorations.checkAffectedAndFire(c.options)}}if(l<a){if(!c){const e=++this._lastDecorationId,t=`${this._instanceId};${e}`;c=new hn(t,0,0),this._decorations[t]=c}const t=n[l],s=this._validateRangeRelaxedNoAllocations(t.range),o=ar(t.options),a=this._buffer.getOffsetAt(s.startLineNumber,s.startColumn),u=this._buffer.getOffsetAt(s.endLineNumber,s.endColumn);c.ownerId=e,c.reset(r,a,u,s),c.setOptions(o),c.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(s.endLineNumber),c.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(s.startLineNumber),i||this._onDidChangeDecorations.checkAffectedAndFire(o),this._decorationsTree.insert(c),h[l]=c.id,l++}else c&&delete this._decorations[c.id]}return h}finally{this._onDidChangeDecorations.endDeferredEmit()}}getLanguageId(){return this.tokenization.getLanguageId()}setLanguage(e,t){"string"===typeof e?(this._languageSelectionListener.clear(),this._setLanguage(e,t)):(this._languageSelectionListener.value=e.onDidChange((()=>this._setLanguage(e.languageId,t))),this._setLanguage(e.languageId,t))}_setLanguage(e,t){this.tokenization.setLanguageId(e,t),this._languageService.requestRichLanguageFeatures(e)}getLanguageIdAtPosition(e,t){return this.tokenization.getLanguageIdAtPosition(e,t)}getWordAtPosition(e){return this._tokenizationTextModelPart.getWordAtPosition(e)}getWordUntilPosition(e){return this._tokenizationTextModelPart.getWordUntilPosition(e)}normalizePosition(e,t){return e}getLineIndentColumn(e){return function(e){let t=0;for(const n of e){if(" "!==n&&"\t"!==n)break;t++}return t}(this.getLineContent(e))+1}};function Yi(e){return!(!e.options.overviewRuler||!e.options.overviewRuler.color)}function Xi(e){return!!e.options.after||!!e.options.before}Qi=qi=Hi([Ui(4,zi),Ui(5,k.L),Ui(6,se),Ui(7,K._Y)],Qi);class Zi{constructor(){this._decorationsTree0=new un,this._decorationsTree1=new un,this._injectedTextDecorationsTree=new un}ensureAllNodesHaveRanges(e){this.getAll(e,0,!1,!1,!1)}_ensureNodesHaveRanges(e,t){for(const n of t)null===n.range&&(n.range=e.getRangeAt(n.cachedAbsoluteStart,n.cachedAbsoluteEnd));return t}getAllInInterval(e,t,n,i,r,s){const o=e.getVersionId(),a=this._intervalSearch(t,n,i,r,o,s);return this._ensureNodesHaveRanges(e,a)}_intervalSearch(e,t,n,i,r,s){const o=this._decorationsTree0.intervalSearch(e,t,n,i,r,s),a=this._decorationsTree1.intervalSearch(e,t,n,i,r,s),l=this._injectedTextDecorationsTree.intervalSearch(e,t,n,i,r,s);return o.concat(a).concat(l)}getInjectedTextInInterval(e,t,n,i){const r=e.getVersionId(),s=this._injectedTextDecorationsTree.intervalSearch(t,n,i,!1,r,!1);return this._ensureNodesHaveRanges(e,s).filter((e=>e.options.showIfCollapsed||!e.range.isEmpty()))}getAllInjectedText(e,t){const n=e.getVersionId(),i=this._injectedTextDecorationsTree.search(t,!1,n,!1);return this._ensureNodesHaveRanges(e,i).filter((e=>e.options.showIfCollapsed||!e.range.isEmpty()))}getAll(e,t,n,i,r){const s=e.getVersionId(),o=this._search(t,n,i,s,r);return this._ensureNodesHaveRanges(e,o)}_search(e,t,n,i,r){if(n)return this._decorationsTree1.search(e,t,i,r);{const n=this._decorationsTree0.search(e,t,i,r),s=this._decorationsTree1.search(e,t,i,r),o=this._injectedTextDecorationsTree.search(e,t,i,r);return n.concat(s).concat(o)}}collectNodesFromOwner(e){const t=this._decorationsTree0.collectNodesFromOwner(e),n=this._decorationsTree1.collectNodesFromOwner(e),i=this._injectedTextDecorationsTree.collectNodesFromOwner(e);return t.concat(n).concat(i)}collectNodesPostOrder(){const e=this._decorationsTree0.collectNodesPostOrder(),t=this._decorationsTree1.collectNodesPostOrder(),n=this._injectedTextDecorationsTree.collectNodesPostOrder();return e.concat(t).concat(n)}insert(e){Xi(e)?this._injectedTextDecorationsTree.insert(e):Yi(e)?this._decorationsTree1.insert(e):this._decorationsTree0.insert(e)}delete(e){Xi(e)?this._injectedTextDecorationsTree.delete(e):Yi(e)?this._decorationsTree1.delete(e):this._decorationsTree0.delete(e)}getNodeRange(e,t){const n=e.getVersionId();return t.cachedVersionId!==n&&this._resolveNode(t,n),null===t.range&&(t.range=e.getRangeAt(t.cachedAbsoluteStart,t.cachedAbsoluteEnd)),t.range}_resolveNode(e,t){Xi(e)?this._injectedTextDecorationsTree.resolveNode(e,t):Yi(e)?this._decorationsTree1.resolveNode(e,t):this._decorationsTree0.resolveNode(e,t)}acceptReplace(e,t,n,i){this._decorationsTree0.acceptReplace(e,t,n,i),this._decorationsTree1.acceptReplace(e,t,n,i),this._injectedTextDecorationsTree.acceptReplace(e,t,n,i)}}function Ji(e){return e.replace(/[^a-z0-9\-_]/gi," ")}class er{constructor(e){this.color=e.color||"",this.darkColor=e.darkColor||""}}class tr extends er{constructor(e){super(e),this._resolvedColor=null,this.position="number"===typeof e.position?e.position:me.A5.Center}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=null}_resolveColor(e,t){if("string"===typeof e)return e;const n=e?t.getColor(e.id):null;return n?n.toString():""}}class nr{constructor(e){this.position=e?.position??me.ZS.Center,this.persistLane=e?.persistLane}}class ir extends er{constructor(e){super(e),this.position=e.position,this.sectionHeaderStyle=e.sectionHeaderStyle??null,this.sectionHeaderText=e.sectionHeaderText??null}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=void 0}_resolveColor(e,t){return"string"===typeof e?a.Q1.fromHex(e):t.getColor(e.id)}}class rr{static from(e){return e instanceof rr?e:new rr(e)}constructor(e){this.content=e.content||"",this.inlineClassName=e.inlineClassName||null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.attachedData=e.attachedData||null,this.cursorStops=e.cursorStops||null}}class sr{static register(e){return new sr(e)}static createDynamic(e){return new sr(e)}constructor(e){this.description=e.description,this.blockClassName=e.blockClassName?Ji(e.blockClassName):null,this.blockDoesNotCollapse=e.blockDoesNotCollapse??null,this.blockIsAfterEnd=e.blockIsAfterEnd??null,this.blockPadding=e.blockPadding??null,this.stickiness=e.stickiness||0,this.zIndex=e.zIndex||0,this.className=e.className?Ji(e.className):null,this.shouldFillLineOnLineBreak=e.shouldFillLineOnLineBreak??null,this.hoverMessage=e.hoverMessage||null,this.glyphMarginHoverMessage=e.glyphMarginHoverMessage||null,this.lineNumberHoverMessage=e.lineNumberHoverMessage||null,this.isWholeLine=e.isWholeLine||!1,this.showIfCollapsed=e.showIfCollapsed||!1,this.collapseOnReplaceEdit=e.collapseOnReplaceEdit||!1,this.overviewRuler=e.overviewRuler?new tr(e.overviewRuler):null,this.minimap=e.minimap?new ir(e.minimap):null,this.glyphMargin=e.glyphMarginClassName?new nr(e.glyphMargin):null,this.glyphMarginClassName=e.glyphMarginClassName?Ji(e.glyphMarginClassName):null,this.linesDecorationsClassName=e.linesDecorationsClassName?Ji(e.linesDecorationsClassName):null,this.lineNumberClassName=e.lineNumberClassName?Ji(e.lineNumberClassName):null,this.linesDecorationsTooltip=e.linesDecorationsTooltip?h.jy(e.linesDecorationsTooltip):null,this.firstLineDecorationClassName=e.firstLineDecorationClassName?Ji(e.firstLineDecorationClassName):null,this.marginClassName=e.marginClassName?Ji(e.marginClassName):null,this.inlineClassName=e.inlineClassName?Ji(e.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=e.beforeContentClassName?Ji(e.beforeContentClassName):null,this.afterContentClassName=e.afterContentClassName?Ji(e.afterContentClassName):null,this.after=e.after?rr.from(e.after):null,this.before=e.before?rr.from(e.before):null,this.hideInCommentTokens=e.hideInCommentTokens??!1,this.hideInStringTokens=e.hideInStringTokens??!1}}sr.EMPTY=sr.register({description:"empty"});const or=[sr.register({description:"tracked-range-always-grows-when-typing-at-edges",stickiness:0}),sr.register({description:"tracked-range-never-grows-when-typing-at-edges",stickiness:1}),sr.register({description:"tracked-range-grows-only-when-typing-before",stickiness:2}),sr.register({description:"tracked-range-grows-only-when-typing-after",stickiness:3})];function ar(e){return e instanceof sr?e:sr.createDynamic(e)}class lr extends r.jG{constructor(e){super(),this.handleBeforeFire=e,this._actual=this._register(new i.vl),this.event=this._actual.event,this._affectedInjectedTextLines=null,this._deferredCnt=0,this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._affectsLineNumber=!1}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(){this._deferredCnt--,0===this._deferredCnt&&(this._shouldFireDeferred&&this.doFire(),this._affectedInjectedTextLines?.clear(),this._affectedInjectedTextLines=null)}recordLineAffectedByInjectedText(e){this._affectedInjectedTextLines||(this._affectedInjectedTextLines=new Set),this._affectedInjectedTextLines.add(e)}checkAffectedAndFire(e){this._affectsMinimap||=!!e.minimap?.position,this._affectsOverviewRuler||=!!e.overviewRuler?.color,this._affectsGlyphMargin||=!!e.glyphMarginClassName,this._affectsLineNumber||=!!e.lineNumberClassName,this.tryFire()}fire(){this._affectsMinimap=!0,this._affectsOverviewRuler=!0,this._affectsGlyphMargin=!0,this.tryFire()}tryFire(){0===this._deferredCnt?this.doFire():this._shouldFireDeferred=!0}doFire(){this.handleBeforeFire(this._affectedInjectedTextLines);const e={affectsMinimap:this._affectsMinimap,affectsOverviewRuler:this._affectsOverviewRuler,affectsGlyphMargin:this._affectsGlyphMargin,affectsLineNumber:this._affectsLineNumber};this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._actual.fire(e)}}class hr extends r.jG{constructor(){super(),this._fastEmitter=this._register(new i.vl),this.fastEvent=this._fastEmitter.event,this._slowEmitter=this._register(new i.vl),this.slowEvent=this._slowEmitter.event,this._deferredCnt=0,this._deferredEvent=null}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(e=null){if(this._deferredCnt--,0===this._deferredCnt&&null!==this._deferredEvent){this._deferredEvent.rawContentChangedEvent.resultingSelection=e;const t=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(t),this._slowEmitter.fire(t)}}fire(e){this._deferredCnt>0?this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e:(this._fastEmitter.fire(e),this._slowEmitter.fire(e))}}var cr,ur=n(360),dr=n(5600),gr=n(6456),fr=n(146),mr=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},pr=function(e,t){return function(n,i){t(n,i,e)}};function _r(e){return e.toString()}class br{constructor(e,t,n){this.model=e,this._modelEventListeners=new r.Cm,this.model=e,this._modelEventListeners.add(e.onWillDispose((()=>t(e)))),this._modelEventListeners.add(e.onDidChangeLanguage((t=>n(e,t))))}dispose(){this._modelEventListeners.dispose()}}const kr=s.j9||s.zx?1:2;class vr{constructor(e,t,n,i,r,s,o,a){this.uri=e,this.initialUndoRedoSnapshot=t,this.time=n,this.sharesUndoRedoStack=i,this.heapSize=r,this.sha1=s,this.versionId=o,this.alternativeVersionId=a}}let Cr=class extends r.jG{static{cr=this}static{this.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK=20971520}constructor(e,t,n,r){super(),this._configurationService=e,this._resourcePropertiesService=t,this._undoRedoService=n,this._instantiationService=r,this._onModelAdded=this._register(new i.vl),this.onModelAdded=this._onModelAdded.event,this._onModelRemoved=this._register(new i.vl),this.onModelRemoved=this._onModelRemoved.event,this._onModelModeChanged=this._register(new i.vl),this.onModelLanguageChanged=this._onModelModeChanged.event,this._modelCreationOptionsByLanguageAndResource=Object.create(null),this._models={},this._disposedModels=new Map,this._disposedModelsHeapSize=0,this._register(this._configurationService.onDidChangeConfiguration((e=>this._updateModelOptions(e)))),this._updateModelOptions(void 0)}static _readModelOptions(e,t){let n=_.tabSize;if(e.editor&&"undefined"!==typeof e.editor.tabSize){const t=parseInt(e.editor.tabSize,10);isNaN(t)||(n=t),n<1&&(n=1)}let i="tabSize";if(e.editor&&"undefined"!==typeof e.editor.indentSize&&"tabSize"!==e.editor.indentSize){const t=parseInt(e.editor.indentSize,10);isNaN(t)||(i=Math.max(t,1))}let r=_.insertSpaces;e.editor&&"undefined"!==typeof e.editor.insertSpaces&&(r="false"!==e.editor.insertSpaces&&Boolean(e.editor.insertSpaces));let s=kr;const o=e.eol;"\r\n"===o?s=2:"\n"===o&&(s=1);let a=_.trimAutoWhitespace;e.editor&&"undefined"!==typeof e.editor.trimAutoWhitespace&&(a="false"!==e.editor.trimAutoWhitespace&&Boolean(e.editor.trimAutoWhitespace));let l=_.detectIndentation;e.editor&&"undefined"!==typeof e.editor.detectIndentation&&(l="false"!==e.editor.detectIndentation&&Boolean(e.editor.detectIndentation));let h=_.largeFileOptimizations;e.editor&&"undefined"!==typeof e.editor.largeFileOptimizations&&(h="false"!==e.editor.largeFileOptimizations&&Boolean(e.editor.largeFileOptimizations));let c=_.bracketPairColorizationOptions;return e.editor?.bracketPairColorization&&"object"===typeof e.editor.bracketPairColorization&&(c={enabled:!!e.editor.bracketPairColorization.enabled,independentColorPoolPerBracketType:!!e.editor.bracketPairColorization.independentColorPoolPerBracketType}),{isForSimpleWidget:t,tabSize:n,indentSize:i,insertSpaces:r,detectIndentation:l,defaultEOL:s,trimAutoWhitespace:a,largeFileOptimizations:h,bracketPairColorizationOptions:c}}_getEOL(e,t){if(e)return this._resourcePropertiesService.getEOL(e,t);const n=this._configurationService.getValue("files.eol",{overrideIdentifier:t});return n&&"string"===typeof n&&"auto"!==n?n:3===s.OS||2===s.OS?"\n":"\r\n"}_shouldRestoreUndoStack(){const e=this._configurationService.getValue("files.restoreUndoStack");return"boolean"!==typeof e||e}getCreationOptions(e,t,n){const i="string"===typeof e?e:e.languageId;let r=this._modelCreationOptionsByLanguageAndResource[i+t];if(!r){const e=this._configurationService.getValue("editor",{overrideIdentifier:i,resource:t}),s=this._getEOL(t,i);r=cr._readModelOptions({editor:e,eol:s},n),this._modelCreationOptionsByLanguageAndResource[i+t]=r}return r}_updateModelOptions(e){const t=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);const n=Object.keys(this._models);for(let i=0,r=n.length;i<r;i++){const r=n[i],s=this._models[r],o=s.model.getLanguageId(),a=s.model.uri;if(e&&!e.affectsConfiguration("editor",{overrideIdentifier:o,resource:a})&&!e.affectsConfiguration("files.eol",{overrideIdentifier:o,resource:a}))continue;const l=t[o+a],h=this.getCreationOptions(o,a,s.model.isForSimpleWidget);cr._setModelOptionsForModel(s.model,h,l)}}static _setModelOptionsForModel(e,t,n){n&&n.defaultEOL!==t.defaultEOL&&1===e.getLineCount()&&e.setEOL(1===t.defaultEOL?0:1),n&&n.detectIndentation===t.detectIndentation&&n.insertSpaces===t.insertSpaces&&n.tabSize===t.tabSize&&n.indentSize===t.indentSize&&n.trimAutoWhitespace===t.trimAutoWhitespace&&(0,fr.aI)(n.bracketPairColorizationOptions,t.bracketPairColorizationOptions)||(t.detectIndentation?(e.detectIndentation(t.insertSpaces,t.tabSize),e.updateOptions({trimAutoWhitespace:t.trimAutoWhitespace,bracketColorizationOptions:t.bracketPairColorizationOptions})):e.updateOptions({insertSpaces:t.insertSpaces,tabSize:t.tabSize,indentSize:t.indentSize,trimAutoWhitespace:t.trimAutoWhitespace,bracketColorizationOptions:t.bracketPairColorizationOptions}))}_insertDisposedModel(e){this._disposedModels.set(_r(e.uri),e),this._disposedModelsHeapSize+=e.heapSize}_removeDisposedModel(e){const t=this._disposedModels.get(_r(e));return t&&(this._disposedModelsHeapSize-=t.heapSize),this._disposedModels.delete(_r(e)),t}_ensureDisposedModelsHeapSize(e){if(this._disposedModelsHeapSize>e){const t=[];for(this._disposedModels.forEach((e=>{e.sharesUndoRedoStack||t.push(e)})),t.sort(((e,t)=>e.time-t.time));t.length>0&&this._disposedModelsHeapSize>e;){const e=t.shift();this._removeDisposedModel(e.uri),null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}}}_createModelData(e,t,n,i){const r=this.getCreationOptions(t,n,i),s=this._instantiationService.createInstance(Qi,e,t,r,n);if(n&&this._disposedModels.has(_r(n))){const e=this._removeDisposedModel(n),t=this._undoRedoService.getElements(n),i=this._getSHA1Computer(),r=!!i.canComputeSHA1(s)&&i.computeSHA1(s)===e.sha1;if(r||e.sharesUndoRedoStack){for(const e of t.past)Vt(e)&&e.matchesResource(n)&&e.setModel(s);for(const e of t.future)Vt(e)&&e.matchesResource(n)&&e.setModel(s);this._undoRedoService.setElementsValidFlag(n,!0,(e=>Vt(e)&&e.matchesResource(n))),r&&(s._overwriteVersionId(e.versionId),s._overwriteAlternativeVersionId(e.alternativeVersionId),s._overwriteInitialUndoRedoSnapshot(e.initialUndoRedoSnapshot))}else null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}const o=_r(s.uri);if(this._models[o])throw new Error("ModelService: Cannot add model because it already exists!");const a=new br(s,(e=>this._onWillDispose(e)),((e,t)=>this._onDidChangeLanguage(e,t)));return this._models[o]=a,a}createModel(e,t,n,i=!1){let r;return r=t?this._createModelData(e,t,n,i):this._createModelData(e,Q.vH,n,i),this._onModelAdded.fire(r.model),r.model}getModels(){const e=[],t=Object.keys(this._models);for(let n=0,i=t.length;n<i;n++){const i=t[n];e.push(this._models[i].model)}return e}getModel(e){const t=_r(e),n=this._models[t];return n?n.model:null}_schemaShouldMaintainUndoRedoElements(e){return e.scheme===gr.ny.file||e.scheme===gr.ny.vscodeRemote||e.scheme===gr.ny.vscodeUserData||e.scheme===gr.ny.vscodeNotebookCell||"fake-fs"===e.scheme}_onWillDispose(e){const t=_r(e.uri),n=this._models[t],i=this._undoRedoService.getUriComparisonKey(e.uri)!==e.uri.toString();let r=!1,s=0;if(i||this._shouldRestoreUndoStack()&&this._schemaShouldMaintainUndoRedoElements(e.uri)){const t=this._undoRedoService.getElements(e.uri);if(t.past.length>0||t.future.length>0){for(const n of t.past)Vt(n)&&n.matchesResource(e.uri)&&(r=!0,s+=n.heapSize(e.uri),n.setModel(e.uri));for(const n of t.future)Vt(n)&&n.matchesResource(e.uri)&&(r=!0,s+=n.heapSize(e.uri),n.setModel(e.uri))}}const o=cr.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK,a=this._getSHA1Computer();if(r)if(i||!(s>o)&&a.canComputeSHA1(e))this._ensureDisposedModelsHeapSize(o-s),this._undoRedoService.setElementsValidFlag(e.uri,!1,(t=>Vt(t)&&t.matchesResource(e.uri))),this._insertDisposedModel(new vr(e.uri,n.model.getInitialUndoRedoSnapshot(),Date.now(),i,s,a.computeSHA1(e),e.getVersionId(),e.getAlternativeVersionId()));else{const e=n.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}else if(!i){const e=n.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}delete this._models[t],n.dispose(),delete this._modelCreationOptionsByLanguageAndResource[e.getLanguageId()+e.uri],this._onModelRemoved.fire(e)}_onDidChangeLanguage(e,t){const n=t.oldLanguage,i=e.getLanguageId(),r=this.getCreationOptions(n,e.uri,e.isForSimpleWidget),s=this.getCreationOptions(i,e.uri,e.isForSimpleWidget);cr._setModelOptionsForModel(e,s,r),this._onModelModeChanged.fire({model:e,oldLanguageId:n})}_getSHA1Computer(){return new Lr}};Cr=cr=mr([pr(0,$.pG),pr(1,ur.ITextResourcePropertiesService),pr(2,zi),pr(3,K._Y)],Cr);class Lr{static{this.MAX_MODEL_SIZE=10485760}canComputeSHA1(e){return e.getValueLength()<=Lr.MAX_MODEL_SIZE}computeSHA1(e){const t=new dr.v7,n=e.createSnapshot();let i;for(;i=n.read();)t.update(i);return t.digest()}}},8938:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITextModelService:()=>i});const i=(0,n(3591).u1)("textModelService")},8232:(e,t,n)=>{"use strict";n.r(t),n.d(t,{encodeSemanticTokensDto:()=>s});var i=n(1674),r=n(8067);function s(e){const t=new Uint32Array(function(e){let t=0;if(t+=2,"full"===e.type)t+=1+e.data.length;else{t+=1,t+=3*e.deltas.length;for(const n of e.deltas)n.data&&(t+=n.data.length)}return t}(e));let n=0;if(t[n++]=e.id,"full"===e.type)t[n++]=1,t[n++]=e.data.length,t.set(e.data,n),n+=e.data.length;else{t[n++]=2,t[n++]=e.deltas.length;for(const i of e.deltas)t[n++]=i.start,t[n++]=i.deleteCount,i.data?(t[n++]=i.data.length,t.set(i.data,n),n+=i.data.length):t[n++]=0}return function(e){const t=new Uint8Array(e.buffer,e.byteOffset,4*e.length);return r.cm()||function(e){for(let t=0,n=e.length;t<n;t+=4){const n=e[t+0],i=e[t+1],r=e[t+2],s=e[t+3];e[t+0]=s,e[t+1]=r,e[t+2]=i,e[t+3]=n}}(t),i.MB.wrap(t)}(t)}},5538:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SemanticTokensProviderStyling:()=>m,toMultilineTokens2:()=>p});n(5982);var i=n(5724),r=n(3511),s=n(3069),o=n(6677),a=n(4454);class l{static create(e,t){return new l(e,new h(t))}get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._endLineNumber}constructor(e,t){this._startLineNumber=e,this._tokens=t,this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}toString(){return this._tokens.toString(this._startLineNumber)}_updateEndLineNumber(){this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}isEmpty(){return this._tokens.isEmpty()}getLineTokens(e){return this._startLineNumber<=e&&e<=this._endLineNumber?this._tokens.getLineTokens(e-this._startLineNumber):null}getRange(){const e=this._tokens.getRange();return e?new o.Q(this._startLineNumber+e.startLineNumber,e.startColumn,this._startLineNumber+e.endLineNumber,e.endColumn):e}removeTokens(e){const t=e.startLineNumber-this._startLineNumber,n=e.endLineNumber-this._startLineNumber;this._startLineNumber+=this._tokens.removeTokens(t,e.startColumn-1,n,e.endColumn-1),this._updateEndLineNumber()}split(e){const t=e.startLineNumber-this._startLineNumber,n=e.endLineNumber-this._startLineNumber,[i,r,s]=this._tokens.split(t,e.startColumn-1,n,e.endColumn-1);return[new l(this._startLineNumber,i),new l(this._startLineNumber+s,r)]}applyEdit(e,t){const[n,i,r]=(0,a.W)(t);this.acceptEdit(e,n,i,r,t.length>0?t.charCodeAt(0):0)}acceptEdit(e,t,n,i,r){this._acceptDeleteRange(e),this._acceptInsertText(new s.y(e.startLineNumber,e.startColumn),t,n,i,r),this._updateEndLineNumber()}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return;const t=e.startLineNumber-this._startLineNumber,n=e.endLineNumber-this._startLineNumber;if(n<0){const e=n-t;return void(this._startLineNumber-=e)}const i=this._tokens.getMaxDeltaLine();if(!(t>=i+1)){if(t<0&&n>=i+1)return this._startLineNumber=0,void this._tokens.clear();if(t<0){const i=-t;this._startLineNumber-=i,this._tokens.acceptDeleteRange(e.startColumn-1,0,0,n,e.endColumn-1)}else this._tokens.acceptDeleteRange(0,t,e.startColumn-1,n,e.endColumn-1)}}_acceptInsertText(e,t,n,i,r){if(0===t&&0===n)return;const s=e.lineNumber-this._startLineNumber;if(s<0)return void(this._startLineNumber+=t);s>=this._tokens.getMaxDeltaLine()+1||this._tokens.acceptInsertText(s,e.column-1,t,n,i,r)}}class h{constructor(e){this._tokens=e,this._tokenCount=e.length/4}toString(e){const t=[];for(let n=0;n<this._tokenCount;n++)t.push(`(${this._getDeltaLine(n)+e},${this._getStartCharacter(n)}-${this._getEndCharacter(n)})`);return`[${t.join(",")}]`}getMaxDeltaLine(){const e=this._getTokenCount();return 0===e?-1:this._getDeltaLine(e-1)}getRange(){const e=this._getTokenCount();if(0===e)return null;const t=this._getStartCharacter(0),n=this._getDeltaLine(e-1),i=this._getEndCharacter(e-1);return new o.Q(0,t+1,n,i+1)}_getTokenCount(){return this._tokenCount}_getDeltaLine(e){return this._tokens[4*e]}_getStartCharacter(e){return this._tokens[4*e+1]}_getEndCharacter(e){return this._tokens[4*e+2]}isEmpty(){return 0===this._getTokenCount()}getLineTokens(e){let t=0,n=this._getTokenCount()-1;for(;t<n;){const i=t+Math.floor((n-t)/2),r=this._getDeltaLine(i);if(r<e)t=i+1;else{if(!(r>e)){let r=i;for(;r>t&&this._getDeltaLine(r-1)===e;)r--;let s=i;for(;s<n&&this._getDeltaLine(s+1)===e;)s++;return new c(this._tokens.subarray(4*r,4*s+4))}n=i-1}}return this._getDeltaLine(t)===e?new c(this._tokens.subarray(4*t,4*t+4)):null}clear(){this._tokenCount=0}removeTokens(e,t,n,i){const r=this._tokens,s=this._tokenCount;let o=0,a=!1,l=0;for(let h=0;h<s;h++){const s=4*h,c=r[s],u=r[s+1],d=r[s+2],g=r[s+3];if((c>e||c===e&&d>=t)&&(c<n||c===n&&u<=i))a=!0;else{if(0===o&&(l=c),a){const e=4*o;r[e]=c-l,r[e+1]=u,r[e+2]=d,r[e+3]=g}o++}}return this._tokenCount=o,l}split(e,t,n,i){const r=this._tokens,s=this._tokenCount,o=[],a=[];let l=o,c=0,u=0;for(let h=0;h<s;h++){const s=4*h,o=r[s],d=r[s+1],g=r[s+2],f=r[s+3];if(o>e||o===e&&g>=t){if(o<n||o===n&&d<=i)continue;l!==a&&(l=a,c=0,u=o)}l[c++]=o-u,l[c++]=d,l[c++]=g,l[c++]=f}return[new h(new Uint32Array(o)),new h(new Uint32Array(a)),u]}acceptDeleteRange(e,t,n,i,r){const s=this._tokens,o=this._tokenCount,a=i-t;let l=0,h=!1;for(let c=0;c<o;c++){const u=4*c;let d=s[u],g=s[u+1],f=s[u+2];const m=s[u+3];if(d<t||d===t&&f<=n){l++;continue}if(d===t&&g<n)d===i&&f>r?f-=r-n:f=n;else if(d===t&&g===n){if(!(d===i&&f>r)){h=!0;continue}f-=r-n}else if(d<i||d===i&&g<r){if(!(d===i&&f>r)){h=!0;continue}d=t,g=n,f=g+(f-r)}else if(d>i){if(0===a&&!h){l=o;break}d-=a}else{if(!(d===i&&g>=r))throw new Error("Not possible!");e&&0===d&&(g+=e,f+=e),d-=a,g-=r-n,f-=r-n}const p=4*l;s[p]=d,s[p+1]=g,s[p+2]=f,s[p+3]=m,l++}this._tokenCount=l}acceptInsertText(e,t,n,i,r,s){const o=0===n&&1===i&&(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122),a=this._tokens,l=this._tokenCount;for(let h=0;h<l;h++){const s=4*h;let l=a[s],c=a[s+1],u=a[s+2];if(!(l<e||l===e&&u<t)){if(l===e&&u===t){if(!o)continue;u+=1}else if(l===e&&c<t&&t<u)0===n?u+=i:u=t;else{if(l===e&&c===t&&o)continue;if(l===e)if(l+=n,0===n)c+=i,u+=i;else{const e=u-c;c=r+(c-t),u=c+e}else l+=n}a[s]=l,a[s+1]=c,a[s+2]=u}}}}class c{constructor(e){this._tokens=e}getCount(){return this._tokens.length/4}getStartCharacter(e){return this._tokens[4*e+1]}getEndCharacter(e){return this._tokens[4*e+2]}getMetadata(e){return this._tokens[4*e+3]}}var u=n(154),d=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},g=function(e,t){return function(n,i){t(n,i,e)}};const f=!1;let m=class{constructor(e,t,n,i){this._legend=e,this._themeService=t,this._languageService=n,this._logService=i,this._hasWarnedOverlappingTokens=!1,this._hasWarnedInvalidLengthTokens=!1,this._hasWarnedInvalidEditStart=!1,this._hashTable=new b}getMetadata(e,t,n){const i=this._languageService.languageIdCodec.encodeLanguageId(n),r=this._hashTable.get(e,t,i);let s;if(r)s=r.metadata;else{let r=this._legend.tokenTypes[e];const o=[];if(r){let e=t;for(let t=0;e>0&&t<this._legend.tokenModifiers.length;t++)1&e&&o.push(this._legend.tokenModifiers[t]),e>>=1;f;const i=this._themeService.getColorTheme().getTokenStyleMetadata(r,o,n);if("undefined"===typeof i)s=2147483647;else{if(s=0,"undefined"!==typeof i.italic){s|=1|(i.italic?1:0)<<11}if("undefined"!==typeof i.bold){s|=2|(i.bold?2:0)<<11}if("undefined"!==typeof i.underline){s|=4|(i.underline?4:0)<<11}if("undefined"!==typeof i.strikethrough){s|=8|(i.strikethrough?8:0)<<11}if(i.foreground){s|=16|i.foreground<<15}0===s&&(s=2147483647)}}else s=2147483647,r="not-in-legend";this._hashTable.add(e,t,i,s)}return s}warnOverlappingSemanticTokens(e,t){this._hasWarnedOverlappingTokens||(this._hasWarnedOverlappingTokens=!0,this._logService.warn(`Overlapping semantic tokens detected at lineNumber ${e}, column ${t}`))}warnInvalidLengthSemanticTokens(e,t){this._hasWarnedInvalidLengthTokens||(this._hasWarnedInvalidLengthTokens=!0,this._logService.warn(`Semantic token with invalid length detected at lineNumber ${e}, column ${t}`))}warnInvalidEditStart(e,t,n,i,r){this._hasWarnedInvalidEditStart||(this._hasWarnedInvalidEditStart=!0,this._logService.warn(`Invalid semantic tokens edit detected (previousResultId: ${e}, resultId: ${t}) at edit #${n}: The provided start offset ${i} is outside the previous data (length ${r}).`))}};function p(e,t,n){const i=e.data,r=e.data.length/5|0,s=Math.max(Math.ceil(r/1024),400),o=[];let a=0,h=1,c=0;for(;a<r;){const e=a;let u=Math.min(e+s,r);if(u<r){let t=u;for(;t-1>e&&0===i[5*t];)t--;if(t-1===e){let e=u;for(;e+1<r&&0===i[5*e];)e++;u=e}else u=t}let d=new Uint32Array(4*(u-e)),g=0,f=0,m=0,p=0;for(;a<u;){const e=5*a,r=i[e],s=i[e+1],o=h+r|0,l=0===r?c+s|0:s,u=l+i[e+2]|0,_=i[e+3],b=i[e+4];if(u<=l)t.warnInvalidLengthSemanticTokens(o,l+1);else if(m===o&&p>l)t.warnOverlappingSemanticTokens(o,l+1);else{const e=t.getMetadata(_,b,n);2147483647!==e&&(0===f&&(f=o),d[g]=o-f,d[g+1]=l,d[g+2]=u,d[g+3]=e,g+=4,m=o,p=u)}h=o,c=l,a++}g!==d.length&&(d=d.subarray(0,g));const _=l.create(f,d);o.push(_)}return o}m=d([g(1,i.Gy),g(2,u.L),g(3,r.rr)],m);class _{constructor(e,t,n,i){this.tokenTypeIndex=e,this.tokenModifierSet=t,this.languageId=n,this.metadata=i,this.next=null}}class b{static{this._SIZES=[3,7,13,31,61,127,251,509,1021,2039,4093,8191,16381,32749,65521,131071,262139,524287,1048573,2097143]}constructor(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=b._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<b._SIZES.length?2/3*this._currentLength:0),this._elements=[],b._nullOutEntries(this._elements,this._currentLength)}static _nullOutEntries(e,t){for(let n=0;n<t;n++)e[n]=null}_hash2(e,t){return(e<<5)-e+t|0}_hashFunc(e,t,n){return this._hash2(this._hash2(e,t),n)%this._currentLength}get(e,t,n){const i=this._hashFunc(e,t,n);let r=this._elements[i];for(;r;){if(r.tokenTypeIndex===e&&r.tokenModifierSet===t&&r.languageId===n)return r;r=r.next}return null}add(e,t,n,i){if(this._elementsCount++,0!==this._growCount&&this._elementsCount>=this._growCount){const e=this._elements;this._currentLengthIndex++,this._currentLength=b._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<b._SIZES.length?2/3*this._currentLength:0),this._elements=[],b._nullOutEntries(this._elements,this._currentLength);for(const t of e){let e=t;for(;e;){const t=e.next;e.next=null,this._add(e),e=t}}}this._add(new _(e,t,n,i))}_add(e){const t=this._hashFunc(e.tokenTypeIndex,e.tokenModifierSet,e.languageId);e.next=this._elements[t],this._elements[t]=e}}},4243:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ISemanticTokensStylingService:()=>i});const i=(0,n(3591).u1)("semanticTokensStylingService")},7004:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SemanticTokensStylingService:()=>d});var i=n(1484),r=n(154),s=n(5724),o=n(3511),a=n(5538),l=n(4243),h=n(4621),c=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},u=function(e,t){return function(n,i){t(n,i,e)}};let d=class extends i.jG{constructor(e,t,n){super(),this._themeService=e,this._logService=t,this._languageService=n,this._caches=new WeakMap,this._register(this._themeService.onDidColorThemeChange((()=>{this._caches=new WeakMap})))}getStyling(e){return this._caches.has(e)||this._caches.set(e,new a.SemanticTokensProviderStyling(e.getLegend(),this._themeService,this._languageService,this._logService)),this._caches.get(e)}};d=c([u(0,s.Gy),u(1,o.rr),u(2,r.L)],d),(0,h.v)(l.ISemanticTokensStylingService,d,1)},796:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MirrorModel:()=>_,STOP_SYNC_MODEL_DELTA_TIME_MS:()=>f,WorkerTextModelSyncClient:()=>m,WorkerTextModelSyncServer:()=>p});var i=n(1940),r=n(1484),s=n(9400),o=n(3069),a=n(6677),l=n(6486),h=n(1508),c=(n(9861),n(5152));class u{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=(0,c.j)(e);const n=this.values,i=this.prefixSum,r=t.length;return 0!==r&&(this.values=new Uint32Array(n.length+r),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+r),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(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,t){return e=(0,c.j)(e),t=(0,c.j)(t),this.values[e]!==t&&(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,t){e=(0,c.j)(e),t=(0,c.j)(t);const n=this.values,i=this.prefixSum;if(e>=n.length)return!1;const r=n.length-e;return t>=r&&(t=r),0!==t&&(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(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=(0,c.j)(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;0===t&&(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,i=0,r=0,s=0;for(;t<=n;)if(i=t+(n-t)/2|0,r=this.prefixSum[i],s=r-this.values[i],e<s)n=i-1;else{if(!(e>=r))break;t=i+1}return new d(i,e-s)}}class d{constructor(e,t){this.index=e,this.remainder=t,this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=t}}class g{constructor(e,t,n,i){this._uri=e,this._lines=t,this._eol=n,this._versionId=i,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const t=e.changes;for(const n of t)this._acceptDeleteRange(n.range),this._acceptInsertText(new o.y(n.range.startLineNumber,n.range.startColumn),n.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,t=this._lines.length,n=new Uint32Array(t);for(let i=0;i<t;i++)n[i]=this._lines[i].length+e;this._lineStarts=new u(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)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);else{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))}}_acceptInsertText(e,t){if(0===t.length)return;const n=(0,h.uz)(t);if(1===n.length)return void 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));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]);const i=new Uint32Array(n.length-1);for(let r=1;r<n.length;r++)this._lines.splice(e.lineNumber+r-1,0,n[r]),i[r-1]=n[r].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,i)}}const f=6e4;class m extends r.jG{constructor(e,t,n=!1){if(super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=e,this._modelService=t,!n){const e=new i.vb;e.cancelAndSet((()=>this._checkStopModelSync()),Math.round(f/2)),this._register(e)}}dispose(){for(const e in this._syncedModels)(0,r.AS)(this._syncedModels[e]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(e,t=!1){for(const n of e){const e=n.toString();this._syncedModels[e]||this._beginModelSync(n,t),this._syncedModels[e]&&(this._syncedModelsLastUsedTime[e]=(new Date).getTime())}}_checkStopModelSync(){const e=(new Date).getTime(),t=[];for(const n in this._syncedModelsLastUsedTime){e-this._syncedModelsLastUsedTime[n]>f&&t.push(n)}for(const n of t)this._stopModelSync(n)}_beginModelSync(e,t){const n=this._modelService.getModel(e);if(!n)return;if(!t&&n.isTooLargeForSyncing())return;const i=e.toString();this._proxy.$acceptNewModel({url:n.uri.toString(),lines:n.getLinesContent(),EOL:n.getEOL(),versionId:n.getVersionId()});const s=new r.Cm;s.add(n.onDidChangeContent((e=>{this._proxy.$acceptModelChanged(i.toString(),e)}))),s.add(n.onWillDispose((()=>{this._stopModelSync(i)}))),s.add((0,r.s)((()=>{this._proxy.$acceptRemovedModel(i)}))),this._syncedModels[i]=s}_stopModelSync(e){const t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],(0,r.AS)(t)}}class p{constructor(){this._models=Object.create(null)}getModel(e){return this._models[e]}getModels(){const e=[];return Object.keys(this._models).forEach((t=>e.push(this._models[t]))),e}$acceptNewModel(e){this._models[e.url]=new _(s.r.parse(e.url),e.lines,e.EOL,e.versionId)}$acceptModelChanged(e,t){if(!this._models[e])return;this._models[e].onEvents(t)}$acceptRemovedModel(e){this._models[e]&&delete this._models[e]}}class _ extends g{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){const t=[];for(let n=0;n<this._lines.length;n++){const i=this._lines[n],r=this.offsetAt(new o.y(n+1,1)),s=i.matchAll(e);for(const e of s)(e.index||0===e.index)&&(e.index=e.index+r),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){const n=(0,l.Th)(e.column,(0,l.Io)(t),this._lines[e.lineNumber-1],0);return n?new a.Q(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null}words(e){const t=this._lines,n=this._wordenize.bind(this);let i=0,r="",s=0,o=[];return{*[Symbol.iterator](){for(;;)if(s<o.length){const e=r.substring(o[s].start,o[s].end);s+=1,yield e}else{if(!(i<t.length))break;r=t[i],o=n(r,e),s=0,i+=1}}}}getLineWords(e,t){const n=this._lines[e-1],i=this._wordenize(n,t),r=[];for(const s of i)r.push({word:n.substring(s.start,s.end),startColumn:s.start+1,endColumn:s.end+1});return r}_wordenize(e,t){const n=[];let i;for(t.lastIndex=0;(i=t.exec(e))&&0!==i[0].length;)n.push({start:i.index,end:i.index+i[0].length});return n}getValueInRange(e){if((e=this._validateRange(e)).startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);const t=this._eol,n=e.startLineNumber-1,i=e.endLineNumber-1,r=[];r.push(this._lines[n].substring(e.startColumn-1));for(let s=n+1;s<i;s++)r.push(this._lines[s]);return r.push(this._lines[i].substring(0,e.endColumn-1)),r.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();const 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){const 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(!o.y.isIPosition(e))throw new Error("bad position");let{lineNumber:t,column:n}=e,i=!1;if(t<1)t=1,n=1,i=!0;else if(t>this._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,i=!0;else{const e=this._lines[t-1].length+1;n<1?(n=1,i=!0):n>e&&(n=e,i=!0)}return i?{lineNumber:t,column:n}:e}}},8868:(e,t,n)=>{"use strict";n.r(t)},360:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITextResourceConfigurationService:()=>r,ITextResourcePropertiesService:()=>s});var i=n(3591);const r=(0,i.u1)("textResourceConfigurationService"),s=(0,i.u1)("textResourcePropertiesService")},4432:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITreeSitterParserService:()=>i});const i=(0,n(3591).u1)("treeSitterParserService")},6723:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DraggedTreeItemsIdentifier:()=>r,TreeViewsDnDService:()=>i});class i{constructor(){this._dragOperations=new Map}removeDragOperationTransfer(e){if(e&&this._dragOperations.has(e)){const t=this._dragOperations.get(e);return this._dragOperations.delete(e),t}}}class r{constructor(e){this.identifier=e}}},9100:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITreeViewsDnDService:()=>o});var i=n(4621),r=n(3591),s=n(6723);const o=(0,r.u1)("treeViewsDndService");(0,i.v)(o,s.TreeViewsDnDService,1)},4855:(e,t,n)=>{"use strict";n.r(t),n.d(t,{UnicodeTextModelHighlighter:()=>l});var i=n(6677),r=n(7729),s=n(1508),o=n(6782),a=n(6486);class l{static computeUnicodeHighlights(e,t,n){const l=n?n.startLineNumber:1,c=n?n.endLineNumber:e.getLineCount(),u=new h(t),d=u.getCandidateCodePoints();let g;var f;g="allNonBasicAscii"===d?new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):new RegExp(""+(f=Array.from(d),`[${s.bm(f.map((e=>String.fromCodePoint(e))).join(""))}]`),"g");const m=new r.W5(null,g),p=[];let _,b=!1,k=0,v=0,C=0;e:for(let r=l,h=c;r<=h;r++){const t=e.getLineContent(r),n=t.length;m.reset(0);do{if(_=m.next(t),_){let e=_.index,l=_.index+_[0].length;if(e>0){const n=t.charCodeAt(e-1);s.pc(n)&&e--}if(l+1<n){const e=t.charCodeAt(l-1);s.pc(e)&&l++}const h=t.substring(e,l);let c=(0,a.Th)(e+1,a.Ld,t,0);c&&c.endColumn<=e+1&&(c=null);const d=u.shouldHighlightNonBasicASCII(h,c?c.word:null);if(0!==d){3===d?k++:2===d?v++:1===d?C++:(0,o.xb)(d);const t=1e3;if(p.length>=t){b=!0;break e}p.push(new i.Q(r,e+1,r,l+1))}}}while(_)}return{ranges:p,hasMore:b,ambiguousCharacterCount:k,invisibleCharacterCount:v,nonBasicAsciiCharacterCount:C}}static computeUnicodeHighlightReason(e,t){const n=new h(t);switch(n.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const i=e.codePointAt(0),r=n.ambiguousCharacters.getPrimaryConfusable(i),o=s.tl.getLocales().filter((e=>!s.tl.getInstance(new Set([...t.allowedLocales,e])).isAmbiguous(i)));return{kind:0,confusableWith:String.fromCodePoint(r),notAmbiguousInLocales:o}}case 1:return{kind:2}}}}class h{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=s.tl.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const t of s.y_.codePoints)c(String.fromCodePoint(t))||e.add(t);if(this.options.ambiguousCharacters)for(const t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(const t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e,t){const n=e.codePointAt(0);if(this.allowedCodePoints.has(n))return 0;if(this.options.nonBasicASCII)return 1;let i=!1,r=!1;if(t)for(const o of t){const e=o.codePointAt(0),t=s.aC(o);i=i||t,t||this.ambiguousCharacters.isAmbiguous(e)||s.y_.isInvisibleCharacter(e)||(r=!0)}return!i&&r?0:this.options.invisibleCharacters&&!c(e)&&s.y_.isInvisibleCharacter(n)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(n)?3:0}}function c(e){return" "===e||"\n"===e||"\t"===e}},8209:(e,t,n)=>{"use strict";function i(){return globalThis._VSCODE_NLS_LANGUAGE}n.d(t,{i8:()=>i,kg:()=>o});const r="pseudo"===i()||"undefined"!==typeof document&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function s(e,t){let n;return n=0===t.length?e:e.replace(/\{(\d+)\}/g,((e,n)=>{const i=n[0],r=t[i];let s=e;return"string"===typeof r?s=r:"number"!==typeof r&&"boolean"!==typeof r&&void 0!==r&&null!==r||(s=String(r)),s})),r&&(n="\uff3b"+n.replace(/[aouei]/g,"$&$&")+"\uff3d"),n}function o(e,t,...n){return s("number"===typeof e?a(e,t):t,n)}function a(e,t){const n=globalThis._VSCODE_NLS_MESSAGES?.[e];if("string"!==typeof n){if("string"===typeof t)return t;throw new Error(`!!! NLS MISSING: ${e} !!!`)}return n}},4001:(e,t,n)=>{"use strict";n.d(t,{Mo:()=>r,pG:()=>i});const i=(0,n(3591).u1)("configurationService");function r(e){return e.replace(/[\[\]]/g,"")}},1646:(e,t,n)=>{"use strict";n.d(t,{Fd:()=>c});var i=n(9861),r=n(1234),s=n(631),o=n(8209),a=n(4001),l=n(8748),h=n(6359);const c={Configuration:"base.contributions.configuration"},u={properties:{},patternProperties:{}},d={properties:{},patternProperties:{}},g={properties:{},patternProperties:{}},f={properties:{},patternProperties:{}},m={properties:{},patternProperties:{}},p={properties:{},patternProperties:{}},_="vscode://schemas/settings/resourceLanguage",b=h.O.as(l.F.JSONContribution);const k="\\[([^\\]]+)\\]",v=new RegExp(k,"g"),C=`^(${k})+$`,L=new RegExp(C);function y(e){const t=[];if(L.test(e)){let n=v.exec(e);for(;n?.length;){const i=n[1].trim();i&&t.push(i),n=v.exec(e)}}return(0,i.dM)(t)}const w=new class{constructor(){this.registeredConfigurationDefaults=[],this.overrideIdentifiers=new Set,this._onDidSchemaChange=new r.vl,this._onDidUpdateConfiguration=new r.vl,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:o.kg("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!0,allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.policyConfigurations=new Map,this.excludedConfigurationProperties={},b.registerSchema(_,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(e,t=!0){this.registerConfigurations([e],t)}registerConfigurations(e,t=!0){const n=new Set;this.doRegisterConfigurations(e,t,n),b.registerSchema(_,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:n})}registerDefaultConfigurations(e){const t=new Set;this.doRegisterDefaultConfigurations(e,t),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:t,defaultsOverrides:!0})}doRegisterDefaultConfigurations(e,t){this.registeredConfigurationDefaults.push(...e);const n=[];for(const{overrides:i,source:r}of e)for(const e in i){t.add(e);const s=this.configurationDefaultsOverrides.get(e)??this.configurationDefaultsOverrides.set(e,{configurationDefaultOverrides:[]}).get(e),o=i[e];if(s.configurationDefaultOverrides.push({value:o,source:r}),L.test(e)){const t=this.mergeDefaultConfigurationsForOverrideIdentifier(e,o,r,s.configurationDefaultOverrideValue);if(!t)continue;s.configurationDefaultOverrideValue=t,this.updateDefaultOverrideProperty(e,t,r),n.push(...y(e))}else{const t=this.mergeDefaultConfigurationsForConfigurationProperty(e,o,r,s.configurationDefaultOverrideValue);if(!t)continue;s.configurationDefaultOverrideValue=t;const n=this.configurationProperties[e];n&&(this.updatePropertyDefaultValue(e,n),this.updateSchema(e,n))}}this.doRegisterOverrideIdentifiers(n)}updateDefaultOverrideProperty(e,t,n){const i={type:"object",default:t.value,description:o.kg("defaultLanguageConfiguration.description","Configure settings to be overridden for the {0} language.",(0,a.Mo)(e)),$ref:_,defaultDefaultValue:t.value,source:n,defaultValueSource:n};this.configurationProperties[e]=i,this.defaultLanguageConfigurationOverridesNode.properties[e]=i}mergeDefaultConfigurationsForOverrideIdentifier(e,t,n,i){const r=i?.value||{},o=i?.source??new Map;if(o instanceof Map){for(const e of Object.keys(t)){const i=t[e];if(s.Gv(i)&&(s.b0(r[e])||s.Gv(r[e]))){if(r[e]={...r[e]??{},...i},n)for(const t in i)o.set(`${e}.${t}`,n)}else r[e]=i,n?o.set(e,n):o.delete(e)}return{value:r,source:o}}console.error("objectConfigurationSources is not a Map")}mergeDefaultConfigurationsForConfigurationProperty(e,t,n,i){const r=this.configurationProperties[e],o=i?.value??r?.defaultDefaultValue;let a=n;if(s.Gv(t)&&(void 0!==r&&"object"===r.type||void 0===r&&(s.b0(o)||s.Gv(o)))){if(a=i?.source??new Map,!(a instanceof Map))return void console.error("defaultValueSource is not a Map");for(const i in t)n&&a.set(`${e}.${i}`,n);t={...s.Gv(o)?o:{},...t}}return{value:t,source:a}}registerOverrideIdentifiers(e){this.doRegisterOverrideIdentifiers(e),this._onDidSchemaChange.fire()}doRegisterOverrideIdentifiers(e){for(const t of e)this.overrideIdentifiers.add(t);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(e,t,n){e.forEach((e=>{this.validateAndRegisterProperties(e,t,e.extensionInfo,e.restrictedProperties,void 0,n),this.configurationContributors.push(e),this.registerJSONConfiguration(e)}))}validateAndRegisterProperties(e,t=!0,n,i,r=3,o){r=s.z(e.scope)?r:e.scope;const a=e.properties;if(a)for(const h in a){const e=a[h];t&&S(h,e)?delete a[h]:(e.source=n,e.defaultDefaultValue=a[h].default,this.updatePropertyDefaultValue(h,e),L.test(h)?e.scope=void 0:(e.scope=s.z(e.scope)?r:e.scope,e.restricted=s.z(e.restricted)?!!i?.includes(h):e.restricted),!a[h].hasOwnProperty("included")||a[h].included?(this.configurationProperties[h]=a[h],a[h].policy?.name&&this.policyConfigurations.set(a[h].policy.name,h),!a[h].deprecationMessage&&a[h].markdownDeprecationMessage&&(a[h].deprecationMessage=a[h].markdownDeprecationMessage),o.add(h)):(this.excludedConfigurationProperties[h]=a[h],delete a[h]))}const l=e.allOf;if(l)for(const s of l)this.validateAndRegisterProperties(s,t,n,i,r,o)}getConfigurationProperties(){return this.configurationProperties}getPolicyConfigurations(){return this.policyConfigurations}registerJSONConfiguration(e){const t=e=>{const n=e.properties;if(n)for(const t in n)this.updateSchema(t,n[t]);const i=e.allOf;i?.forEach(t)};t(e)}updateSchema(e,t){switch(u.properties[e]=t,t.scope){case 1:d.properties[e]=t;break;case 2:g.properties[e]=t;break;case 6:f.properties[e]=t;break;case 3:m.properties[e]=t;break;case 4:p.properties[e]=t;break;case 5:p.properties[e]=t,this.resourceLanguageSettingsSchema.properties[e]=t}}updateOverridePropertyPatternKey(){for(const e of this.overrideIdentifiers.values()){const t=`[${e}]`,n={type:"object",description:o.kg("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:o.kg("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:_};this.updatePropertyDefaultValue(t,n),u.properties[t]=n,d.properties[t]=n,g.properties[t]=n,f.properties[t]=n,m.properties[t]=n,p.properties[t]=n}}registerOverridePropertyPatternKey(){const e={type:"object",description:o.kg("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:o.kg("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:_};u.patternProperties[C]=e,d.patternProperties[C]=e,g.patternProperties[C]=e,f.patternProperties[C]=e,m.patternProperties[C]=e,p.patternProperties[C]=e,this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,t){const n=this.configurationDefaultsOverrides.get(e)?.configurationDefaultOverrideValue;let i,r;!n||t.disallowConfigurationDefault&&n.source||(i=n.value,r=n.source),s.b0(i)&&(i=t.defaultDefaultValue,r=void 0),s.b0(i)&&(i=function(e){switch(Array.isArray(e)?e[0]:e){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}(t.type)),t.default=i,t.defaultValueSource=r}};function S(e,t){return e.trim()?L.test(e)?o.kg("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e):void 0!==w.getConfigurationProperties()[e]?o.kg("config.property.duplicate","Cannot register '{0}'. This property is already registered.",e):t.policy?.name&&void 0!==w.getPolicyConfigurations().get(t.policy?.name)?o.kg("config.policy.duplicate","Cannot register '{0}'. The associated policy {1} is already registered with {2}.",e,t.policy?.name,w.getPolicyConfigurations().get(t.policy?.name)):null:o.kg("config.property.empty","Cannot register an empty property")}h.O.add(c.Configuration,w)},4621:(e,t,n)=>{"use strict";n.d(t,{v:()=>s});class i{constructor(e,t=[],n=!1){this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=n}}const r=[];function s(e,t,n){t instanceof i||(t=new i(t,[],Boolean(n))),r.push([e,t])}},3591:(e,t,n)=>{"use strict";var i;n.d(t,{_Y:()=>r,u1:()=>s}),function(e){e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=function(t){return t[e.DI_DEPENDENCIES]||[]}}(i||(i={}));const r=s("instantiationService");function s(e){if(i.serviceIds.has(e))return i.serviceIds.get(e);const t=function(e,n,r){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");!function(e,t,n){t[i.DI_TARGET]===t?t[i.DI_DEPENDENCIES].push({id:e,index:n}):(t[i.DI_DEPENDENCIES]=[{id:e,index:n}],t[i.DI_TARGET]=t)}(t,e,r)};return t.toString=()=>e,i.serviceIds.set(e,t),t}},8748:(e,t,n)=>{"use strict";n.d(t,{F:()=>s});var i=n(1234),r=n(6359);const s={JSONContribution:"base.contributions.json"};const o=new class{constructor(){this._onDidChangeSchema=new i.vl,this.schemasById={}}registerSchema(e,t){var n;this.schemasById[(n=e,n.length>0&&"#"===n.charAt(n.length-1)?n.substring(0,n.length-1):n)]=t,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}};r.O.add(s.JSONContribution,o)},3511:(e,t,n)=>{"use strict";n.d(t,{rr:()=>Q,$b:()=>Y});n(1234);var i=n(1484),r=n(8067),s=n(1508),o=n(4383),a=n(8209);function l(...e){switch(e.length){case 1:return(0,a.kg)("contextkey.scanner.hint.didYouMean1","Did you mean {0}?",e[0]);case 2:return(0,a.kg)("contextkey.scanner.hint.didYouMean2","Did you mean {0} or {1}?",e[0],e[1]);case 3:return(0,a.kg)("contextkey.scanner.hint.didYouMean3","Did you mean {0}, {1} or {2}?",e[0],e[1],e[2]);default:return}}const h=(0,a.kg)("contextkey.scanner.hint.didYouForgetToOpenOrCloseQuote","Did you forget to open or close the quote?"),c=(0,a.kg)("contextkey.scanner.hint.didYouForgetToEscapeSlash","Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'.");class u{constructor(){this._input="",this._start=0,this._current=0,this._tokens=[],this._errors=[],this.stringRe=/[a-zA-Z0-9_<>\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(e){switch(e.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return e.isTripleEq?"===":"==";case 4:return e.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:case 8:return">=";case 9:return"=~";case 10:case 17:case 18:case 19:return e.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 20:return"EOF";default:throw(0,o.iH)(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}static{this._regexFlags=new Set(["i","g","s","m","y","u"].map((e=>e.charCodeAt(0))))}static{this._keywords=new Map([["not",14],["in",13],["false",12],["true",11]])}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();){this._start=this._current;switch(this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){const e=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:e})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){const e=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:e})}else this._match(126)?this._addToken(9):this._error(l("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(l("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(l("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return!this._isAtEnd()&&(this._input.charCodeAt(this._current)===e&&(this._current++,!0))}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){const t=this._start,n=this._input.substring(this._start,this._current),i={type:19,offset:this._start,lexeme:n};this._errors.push({offset:t,lexeme:n,additionalInfo:e}),this._tokens.push(i)}_string(){this.stringRe.lastIndex=this._start;const e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;const t=this._input.substring(this._start,this._current),n=u._keywords.get(t);n?this._addToken(n):this._tokens.push({type:17,lexeme:t,offset:this._start})}}_quotedString(){for(;39!==this._peek()&&!this._isAtEnd();)this._advance();this._isAtEnd()?this._error(h):(this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1}))}_regex(){let e=this._current,t=!1,n=!1;for(;;){if(e>=this._input.length)return this._current=e,void this._error(c);const i=this._input.charCodeAt(e);if(t)t=!1;else{if(47===i&&!n){e++;break}91===i?n=!0:92===i?t=!0:93===i&&(n=!1)}e++}for(;e<this._input.length&&u._regexFlags.has(this._input.charCodeAt(e));)e++;this._current=e;const i=this._input.substring(this._start,this._current);this._tokens.push({type:10,lexeme:i,offset:this._start})}_isAtEnd(){return this._current>=this._input.length}}var d=n(3591);const g=new Map;g.set("false",!1),g.set("true",!0),g.set("isMac",r.zx),g.set("isLinux",r.j9),g.set("isWindows",r.uF),g.set("isWeb",r.HZ),g.set("isMacNative",r.zx&&!r.HZ),g.set("isEdge",r.UP),g.set("isFirefox",r.gm),g.set("isChrome",r.H8),g.set("isSafari",r.nr);const f=Object.prototype.hasOwnProperty,m={regexParsingWithErrorRecovery:!0},p=(0,a.kg)("contextkey.parser.error.emptyString","Empty context key expression"),_=(0,a.kg)("contextkey.parser.error.emptyString.hint","Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),b=(0,a.kg)("contextkey.parser.error.noInAfterNot","'in' after 'not'."),k=(0,a.kg)("contextkey.parser.error.closingParenthesis","closing parenthesis ')'"),v=(0,a.kg)("contextkey.parser.error.unexpectedToken","Unexpected token"),C=(0,a.kg)("contextkey.parser.error.unexpectedToken.hint","Did you forget to put && or || before the token?"),L=(0,a.kg)("contextkey.parser.error.unexpectedEOF","Unexpected end of expression"),y=(0,a.kg)("contextkey.parser.error.unexpectedEOF.hint","Did you forget to put a context key?");class w{static{this._parseError=new Error}constructor(e=m){this._config=e,this._scanner=new u,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(""!==e){this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{const e=this._expr();if(!this._isAtEnd()){const e=this._peek(),t=17===e.type?C:void 0;throw this._parsingErrors.push({message:v,offset:e.offset,lexeme:u.getLexeme(e),additionalInfo:t}),w._parseError}return e}catch(t){if(t!==w._parseError)throw t;return}}else this._parsingErrors.push({message:p,offset:0,lexeme:"",additionalInfo:_})}_expr(){return this._or()}_or(){const e=[this._and()];for(;this._matchOne(16);){const t=this._and();e.push(t)}return 1===e.length?e[0]:S.or(...e)}_and(){const e=[this._term()];for(;this._matchOne(15);){const t=this._term();e.push(t)}return 1===e.length?e[0]:S.and(...e)}_term(){if(this._matchOne(2)){const e=this._peek();switch(e.type){case 11:return this._advance(),E.INSTANCE;case 12:return this._advance(),N.INSTANCE;case 0:{this._advance();const e=this._expr();return this._consume(1,k),e?.negate()}case 17:return this._advance(),M.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){const e=this._peek();switch(e.type){case 11:return this._advance(),S.true();case 12:return this._advance(),S.false();case 0:{this._advance();const e=this._expr();return this._consume(1,k),e}case 17:{const i=e.lexeme;if(this._advance(),this._matchOne(9)){const e=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),10!==e.type)throw this._errExpectedButGot("REGEX",e);const n=e.lexeme,r=n.lastIndexOf("/"),s=r===n.length-1?void 0:this._removeFlagsGY(n.substring(r+1));let o;try{o=new RegExp(n.substring(1,r),s)}catch(t){throw this._errExpectedButGot("REGEX",e)}return V.create(i,o)}switch(e.type){case 10:case 19:{const n=[e.lexeme];this._advance();let r=this._peek(),s=0;for(let t=0;t<e.lexeme.length;t++)40===e.lexeme.charCodeAt(t)?s++:41===e.lexeme.charCodeAt(t)&&s--;for(;!this._isAtEnd()&&15!==r.type&&16!==r.type;){switch(r.type){case 0:s++;break;case 1:s--;break;case 10:case 18:for(let t=0;t<r.lexeme.length;t++)40===r.lexeme.charCodeAt(t)?s++:41===e.lexeme.charCodeAt(t)&&s--}if(s<0)break;n.push(u.getLexeme(r)),this._advance(),r=this._peek()}const o=n.join(""),a=o.lastIndexOf("/"),l=a===o.length-1?void 0:this._removeFlagsGY(o.substring(a+1));let h;try{h=new RegExp(o.substring(1,a),l)}catch(t){throw this._errExpectedButGot("REGEX",e)}return S.regex(i,h)}case 18:{const t=e.lexeme;this._advance();let r=null;if(!(0,s.AV)(t)){const i=t.indexOf("/"),s=t.lastIndexOf("/");if(i!==s&&i>=0){const o=t.slice(i+1,s),a="i"===t[s+1]?"i":"";try{r=new RegExp(o,a)}catch(n){throw this._errExpectedButGot("REGEX",e)}}}if(null===r)throw this._errExpectedButGot("REGEX",e);return V.create(i,r)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,b);const e=this._value();return S.notIn(i,e)}switch(this._peek().type){case 3:{this._advance();const e=this._value();if(18===this._previous().type)return S.equals(i,e);switch(e){case"true":return S.has(i);case"false":return S.not(i);default:return S.equals(i,e)}}case 4:{this._advance();const e=this._value();if(18===this._previous().type)return S.notEquals(i,e);switch(e){case"true":return S.not(i);case"false":return S.has(i);default:return S.notEquals(i,e)}}case 5:return this._advance(),P.create(i,this._value());case 6:return this._advance(),z.create(i,this._value());case 7:return this._advance(),B.create(i,this._value());case 8:return this._advance(),F.create(i,this._value());case 13:return this._advance(),S.in(i,this._value());default:return S.has(i)}}case 20:throw this._parsingErrors.push({message:L,offset:e.offset,lexeme:"",additionalInfo:y}),w._parseError;default:throw this._errExpectedButGot("true | false | KEY \n\t| KEY '=~' REGEX \n\t| KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value",this._peek())}}_value(){const e=this._peek();switch(e.type){case 17:case 18:return this._advance(),e.lexeme;case 11:return this._advance(),"true";case 12:return this._advance(),"false";case 13:return this._advance(),"in";default:return""}}_removeFlagsGY(e){return e.replaceAll(this._flagsGYRe,"")}_previous(){return this._tokens[this._current-1]}_matchOne(e){return!!this._check(e)&&(this._advance(),!0)}_advance(){return this._isAtEnd()||this._current++,this._previous()}_consume(e,t){if(this._check(e))return this._advance();throw this._errExpectedButGot(t,this._peek())}_errExpectedButGot(e,t,n){const i=(0,a.kg)("contextkey.parser.error.expectedButGot","Expected: {0}\nReceived: '{1}'.",e,u.getLexeme(t)),r=t.offset,s=u.getLexeme(t);return this._parsingErrors.push({message:i,offset:r,lexeme:s,additionalInfo:n}),w._parseError}_check(e){return this._peek().type===e}_peek(){return this._tokens[this._current]}_isAtEnd(){return 20===this._peek().type}}class S{static false(){return E.INSTANCE}static true(){return N.INSTANCE}static has(e){return I.create(e)}static equals(e,t){return T.create(e,t)}static notEquals(e,t){return R.create(e,t)}static regex(e,t){return V.create(e,t)}static in(e,t){return A.create(e,t)}static notIn(e,t){return D.create(e,t)}static not(e){return M.create(e)}static and(...e){return H.create(e,null,!0)}static or(...e){return U.create(e,null,!0)}static{this._parser=new w({regexParsingWithErrorRecovery:!1})}static deserialize(e){if(void 0===e||null===e)return;return this._parser.parse(e)}}function x(e,t){return e.cmp(t)}class E{static{this.INSTANCE=new E}constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!1}serialize(){return"false"}keys(){return[]}negate(){return N.INSTANCE}}class N{static{this.INSTANCE=new N}constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!0}serialize(){return"true"}keys(){return[]}negate(){return E.INSTANCE}}class I{static create(e,t=null){const n=g.get(e);return"boolean"===typeof n?n?N.INSTANCE:E.INSTANCE:new I(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=2}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=g.get(this.key);return"boolean"===typeof e?e?N.INSTANCE:E.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=M.create(this.key,this)),this.negated}}class T{static create(e,t,n=null){if("boolean"===typeof t)return t?I.create(e,n):M.create(e,n);const i=g.get(e);if("boolean"===typeof i){return t===(i?"true":"false")?N.INSTANCE:E.INSTANCE}return new T(e,t,n)}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=4}cmp(e){return e.type!==this.type?this.type-e.type:$(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=g.get(this.key);if("boolean"===typeof e){const t=e?"true":"false";return this.value===t?N.INSTANCE:E.INSTANCE}return this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=R.create(this.key,this.value,this)),this.negated}}class A{static create(e,t){return new A(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=10,this.negated=null}cmp(e){return e.type!==this.type?this.type-e.type:$(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type&&(this.key===e.key&&this.valueKey===e.valueKey)}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.valueKey),n=e.getValue(this.key);return Array.isArray(t)?t.includes(n):"string"===typeof n&&"object"===typeof t&&null!==t&&f.call(t,n)}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=D.create(this.key,this.valueKey)),this.negated}}class D{static create(e,t){return new D(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=11,this._negated=A.create(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:this._negated.cmp(e._negated)}equals(e){return e.type===this.type&&this._negated.equals(e._negated)}substituteConstants(){return this}evaluate(e){return!this._negated.evaluate(e)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}negate(){return this._negated}}class R{static create(e,t,n=null){if("boolean"===typeof t)return t?M.create(e,n):I.create(e,n);const i=g.get(e);if("boolean"===typeof i){return t===(i?"true":"false")?E.INSTANCE:N.INSTANCE}return new R(e,t,n)}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=5}cmp(e){return e.type!==this.type?this.type-e.type:$(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=g.get(this.key);if("boolean"===typeof e){const t=e?"true":"false";return this.value===t?E.INSTANCE:N.INSTANCE}return this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=T.create(this.key,this.value,this)),this.negated}}class M{static create(e,t=null){const n=g.get(e);return"boolean"===typeof n?n?E.INSTANCE:N.INSTANCE:new M(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=3}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=g.get(this.key);return"boolean"===typeof e?e?E.INSTANCE:N.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=I.create(this.key,this)),this.negated}}function O(e,t){if("string"===typeof e){const t=parseFloat(e);isNaN(t)||(e=t)}return"string"===typeof e||"number"===typeof e?t(e):E.INSTANCE}class B{static create(e,t,n=null){return O(t,(t=>new B(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=12}cmp(e){return e.type!==this.type?this.type-e.type:$(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=z.create(this.key,this.value,this)),this.negated}}class F{static create(e,t,n=null){return O(t,(t=>new F(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=13}cmp(e){return e.type!==this.type?this.type-e.type:$(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=P.create(this.key,this.value,this)),this.negated}}class P{static create(e,t,n=null){return O(t,(t=>new P(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=14}cmp(e){return e.type!==this.type?this.type-e.type:$(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=F.create(this.key,this.value,this)),this.negated}}class z{static create(e,t,n=null){return O(t,(t=>new z(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=15}cmp(e){return e.type!==this.type?this.type-e.type:$(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=B.create(this.key,this.value,this)),this.negated}}class V{static create(e,t){return new V(e,t)}constructor(e,t){this.key=e,this.regexp=t,this.type=7,this.negated=null}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.key<e.key)return-1;if(this.key>e.key)return 1;const t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return t<n?-1:t>n?1:0}equals(e){if(e.type===this.type){const t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return this.key===e.key&&t===n}return!1}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.key);return!!this.regexp&&this.regexp.test(t)}serialize(){const e=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=W.create(this)),this.negated}}class W{static create(e){return new W(e)}constructor(e){this._actual=e,this.type=8}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type&&this._actual.equals(e._actual)}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){return`!(${this._actual.serialize()})`}keys(){return this._actual.keys()}negate(){return this._actual}}function q(e){let t=null;for(let n=0,i=e.length;n<i;n++){const i=e[n].substituteConstants();if(e[n]!==i&&null===t){t=[];for(let i=0;i<n;i++)t[i]=e[i]}null!==t&&(t[n]=i)}return null===t?e:t}class H{static create(e,t,n){return H._normalizeArr(e,t,n)}constructor(e,t){this.expr=e,this.negated=t,this.type=6}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,n=this.expr.length;t<n;t++){const n=x(this.expr[t],e.expr[t]);if(0!==n)return n}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){const e=q(this.expr);return e===this.expr?this:H.create(e,this.negated,!1)}evaluate(e){for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].evaluate(e))return!1;return!0}static _normalizeArr(e,t,n){const i=[];let r=!1;for(const s of e)if(s)if(1!==s.type){if(0===s.type)return E.INSTANCE;6!==s.type?i.push(s):i.push(...s.expr)}else r=!0;if(0===i.length&&r)return N.INSTANCE;if(0!==i.length){if(1===i.length)return i[0];i.sort(x);for(let e=1;e<i.length;e++)i[e-1].equals(i[e])&&(i.splice(e,1),e--);if(1===i.length)return i[0];for(;i.length>1;){const e=i[i.length-1];if(9!==e.type)break;i.pop();const t=i.pop(),r=0===i.length,s=U.create(e.expr.map((e=>H.create([e,t],null,n))),null,r);s&&(i.push(s),i.sort(x))}if(1===i.length)return i[0];if(n){for(let e=0;e<i.length;e++)for(let t=e+1;t<i.length;t++)if(i[e].negate().equals(i[t]))return E.INSTANCE;if(1===i.length)return i[0]}return new H(i,t)}}serialize(){return this.expr.map((e=>e.serialize())).join(" && ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());this.negated=U.create(e,this,!0)}return this.negated}}class U{static create(e,t,n){return U._normalizeArr(e,t,n)}constructor(e,t){this.expr=e,this.negated=t,this.type=9}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,n=this.expr.length;t<n;t++){const n=x(this.expr[t],e.expr[t]);if(0!==n)return n}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){const e=q(this.expr);return e===this.expr?this:U.create(e,this.negated,!1)}evaluate(e){for(let t=0,n=this.expr.length;t<n;t++)if(this.expr[t].evaluate(e))return!0;return!1}static _normalizeArr(e,t,n){let i=[],r=!1;if(e){for(let t=0,n=e.length;t<n;t++){const n=e[t];if(n)if(0!==n.type){if(1===n.type)return N.INSTANCE;9!==n.type?i.push(n):i=i.concat(n.expr)}else r=!0}if(0===i.length&&r)return E.INSTANCE;i.sort(x)}if(0!==i.length){if(1===i.length)return i[0];for(let e=1;e<i.length;e++)i[e-1].equals(i[e])&&(i.splice(e,1),e--);if(1===i.length)return i[0];if(n){for(let e=0;e<i.length;e++)for(let t=e+1;t<i.length;t++)if(i[e].negate().equals(i[t]))return N.INSTANCE;if(1===i.length)return i[0]}return new U(i,t)}}serialize(){return this.expr.map((e=>e.serialize())).join(" || ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());for(;e.length>1;){const t=e.shift(),n=e.shift(),i=[];for(const e of G(t))for(const t of G(n))i.push(H.create([e,t],null,!1));e.unshift(U.create(i,null,!1))}this.negated=U.create(e,this,!0)}return this.negated}}class j extends I{static{this._info=[]}static all(){return j._info.values()}constructor(e,t,n){super(e,null),this._defaultValue=t,"object"===typeof n?j._info.push({...n,key:e}):!0!==n&&j._info.push({key:e,description:n,type:null!==t&&void 0!==t?typeof t:void 0})}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return T.create(this.key,e)}}(0,d.u1)("contextKeyService");function K(e,t){return e<t?-1:e>t?1:0}function $(e,t,n,i){return e<n?-1:e>n?1:t<i?-1:t>i?1:0}function G(e){return 9===e.type?e.expr:[e]}const Q=(0,d.u1)("logService");var Y;!function(e){e[e.Off=0]="Off",e[e.Trace=1]="Trace",e[e.Debug=2]="Debug",e[e.Info=3]="Info",e[e.Warning=4]="Warning",e[e.Error=5]="Error"}(Y||(Y={}));Y.Info;i.jG;new j("logLevel",function(e){switch(e){case Y.Trace:return"trace";case Y.Debug:return"debug";case Y.Info:return"info";case Y.Warning:return"warn";case Y.Error:return"error";case Y.Off:return"off"}}(Y.Info))},6359:(e,t,n)=>{"use strict";n.d(t,{O:()=>s});var i=n(6782),r=n(631);const s=new class{constructor(){this.data=new Map}add(e,t){i.ok(r.Kg(e)),i.ok(r.Gv(t)),i.ok(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)}as(e){return this.data.get(e)||null}}},5845:(e,t,n)=>{"use strict";n.d(t,{buw:()=>S,b1q:()=>w,YtV:()=>A,Ubg:()=>q,IIb:()=>V,pOz:()=>z,whs:()=>B,Stt:()=>P,Hng:()=>F,yLC:()=>le,KoI:()=>oe,uMG:()=>ae,x1A:()=>u});var i=n(6782),r=n(1940),s=n(7661),o=n(1234),a=n(8748),l=n(6359),h=n(8209);const c=new class{constructor(){this._onDidChangeSchema=new o.vl,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}registerColor(e,t,n,i=!1,r){const s={id:e,description:n,defaults:t,needsTransparency:i,deprecationMessage:r};this.colorsById[e]=s;const o={type:"string",format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return r&&(o.deprecationMessage=r),i&&(o.pattern="^#(?:(?<rgba>[0-9a-fA-f]{3}[0-9a-eA-E])|(?:[0-9a-fA-F]{6}(?:(?![fF]{2})(?:[0-9a-fA-F]{2}))))?$",o.patternErrorMessage=h.kg("transparecyRequired","This color must be transparent or it will obscure content")),this.colorSchema.properties[e]={description:n,oneOf:[o,{type:"string",const:"default",description:h.kg("useDefault","Use the default color.")}]},this.colorReferenceSchema.enum.push(e),this.colorReferenceSchema.enumDescriptions.push(n),this._onDidChangeSchema.fire(),e}getColors(){return Object.keys(this.colorsById).map((e=>this.colorsById[e]))}resolveDefaultColor(e,t){const n=this.colorsById[e];if(n?.defaults){return _(null!==(i=n.defaults)&&"object"===typeof i&&"light"in i&&"dark"in i?n.defaults[t.type]:n.defaults,t)}var i}getColorSchema(){return this.colorSchema}toString(){return Object.keys(this.colorsById).sort(((e,t)=>{const n=-1===e.indexOf(".")?0:1,i=-1===t.indexOf(".")?0:1;return n!==i?n-i:e.localeCompare(t)})).map((e=>`- \`${e}\`: ${this.colorsById[e].description}`)).join("\n")}};function u(e,t,n,i,r){return c.registerColor(e,t,n,i,r)}function d(e,t){return{op:0,value:e,factor:t}}function g(e,t){return{op:1,value:e,factor:t}}function f(e,t){return{op:2,value:e,factor:t}}function m(...e){return{op:4,values:e}}function p(e,t,n,i){return{op:5,value:e,background:t,factor:n,transparency:i}}function _(e,t){if(null!==e)return"string"===typeof e?"#"===e[0]?s.Q1.fromHex(e):t.getColor(e):e instanceof s.Q1?e:"object"===typeof e?function(e,t){switch(e.op){case 0:return _(e.value,t)?.darken(e.factor);case 1:return _(e.value,t)?.lighten(e.factor);case 2:return _(e.value,t)?.transparent(e.factor);case 3:{const n=_(e.background,t);return n?_(e.value,t)?.makeOpaque(n):_(e.value,t)}case 4:for(const n of e.values){const e=_(n,t);if(e)return e}return;case 6:return _(t.defines(e.if)?e.then:e.else,t);case 5:{const n=_(e.value,t);if(!n)return;const i=_(e.background,t);return i?n.isDarkerThan(i)?s.Q1.getLighterColor(n,i,e.factor).transparent(e.transparency):s.Q1.getDarkerColor(n,i,e.factor).transparent(e.transparency):n.transparent(e.factor*e.transparency)}default:throw(0,i.xb)(e)}}(e,t):void 0}l.O.add("base.contributions.colors",c);const b="vscode://schemas/workbench-colors",k=l.O.as(a.F.JSONContribution);k.registerSchema(b,c.getColorSchema());const v=new r.uC((()=>k.notifySchemaChanged(b)),200);c.onDidChangeSchema((()=>{v.isScheduled()||v.schedule()}));const C=u("foreground",{dark:"#CCCCCC",light:"#616161",hcDark:"#FFFFFF",hcLight:"#292929"},h.kg("foreground","Overall foreground color. This color is only used if not overridden by a component.")),L=(u("disabledForeground",{dark:"#CCCCCC80",light:"#61616180",hcDark:"#A5A5A5",hcLight:"#7F7F7F"},h.kg("disabledForeground","Overall foreground for disabled elements. This color is only used if not overridden by a component.")),u("errorForeground",{dark:"#F48771",light:"#A1260D",hcDark:"#F48771",hcLight:"#B5200D"},h.kg("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),u("descriptionForeground",{light:"#717171",dark:f(C,.7),hcDark:f(C,.7),hcLight:f(C,.7)},h.kg("descriptionForeground","Foreground color for description text providing additional information, for example for a label.")),u("icon.foreground",{dark:"#C5C5C5",light:"#424242",hcDark:"#FFFFFF",hcLight:"#292929"},h.kg("iconForeground","The default color for icons in the workbench."))),y=u("focusBorder",{dark:"#007FD4",light:"#0090F1",hcDark:"#F38518",hcLight:"#006BBD"},h.kg("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),w=u("contrastBorder",{light:null,dark:null,hcDark:"#6FC3DF",hcLight:"#0F4A85"},h.kg("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),S=u("contrastActiveBorder",{light:null,dark:null,hcDark:y,hcLight:y},h.kg("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),x=(u("selection.background",null,h.kg("selectionBackground","The background color of text selections in the workbench (e.g. for input fields or text areas). Note that this does not apply to selections within the editor.")),u("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},h.kg("textLinkForeground","Foreground color for links in text.")),u("textLink.activeForeground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},h.kg("textLinkActiveForeground","Foreground color for links in text when clicked on and on mouse hover.")),u("textSeparator.foreground",{light:"#0000002e",dark:"#ffffff2e",hcDark:s.Q1.black,hcLight:"#292929"},h.kg("textSeparatorForeground","Color for text separators.")),u("textPreformat.foreground",{light:"#A31515",dark:"#D7BA7D",hcDark:"#000000",hcLight:"#FFFFFF"},h.kg("textPreformatForeground","Foreground color for preformatted text segments.")),u("textPreformat.background",{light:"#0000001A",dark:"#FFFFFF1A",hcDark:"#FFFFFF",hcLight:"#09345f"},h.kg("textPreformatBackground","Background color for preformatted text segments.")),u("textBlockQuote.background",{light:"#f2f2f2",dark:"#222222",hcDark:null,hcLight:"#F2F2F2"},h.kg("textBlockQuoteBackground","Background color for block quotes in text.")),u("textBlockQuote.border",{light:"#007acc80",dark:"#007acc80",hcDark:s.Q1.white,hcLight:"#292929"},h.kg("textBlockQuoteBorder","Border color for block quotes in text.")),u("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hcDark:s.Q1.black,hcLight:"#F2F2F2"},h.kg("textCodeBlockBackground","Background color for code blocks in text.")),u("sash.hoverBorder",y,h.kg("sashActiveBorder","Border color of active sashes.")),u("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hcDark:s.Q1.black,hcLight:"#0F4A85"},h.kg("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count."))),E=(u("badge.foreground",{dark:s.Q1.white,light:"#333",hcDark:s.Q1.white,hcLight:s.Q1.white},h.kg("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),u("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hcDark:null,hcLight:null},h.kg("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled."))),N=u("scrollbarSlider.background",{dark:s.Q1.fromHex("#797979").transparent(.4),light:s.Q1.fromHex("#646464").transparent(.4),hcDark:f(w,.6),hcLight:f(w,.4)},h.kg("scrollbarSliderBackground","Scrollbar slider background color.")),I=u("scrollbarSlider.hoverBackground",{dark:s.Q1.fromHex("#646464").transparent(.7),light:s.Q1.fromHex("#646464").transparent(.7),hcDark:f(w,.8),hcLight:f(w,.8)},h.kg("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),T=u("scrollbarSlider.activeBackground",{dark:s.Q1.fromHex("#BFBFBF").transparent(.4),light:s.Q1.fromHex("#000000").transparent(.6),hcDark:w,hcLight:w},h.kg("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),A=(u("progressBar.background",{dark:s.Q1.fromHex("#0E70C0"),light:s.Q1.fromHex("#0E70C0"),hcDark:w,hcLight:w},h.kg("progressBarBackground","Background color of the progress bar that can show for long running operations.")),u("editor.background",{light:"#ffffff",dark:"#1E1E1E",hcDark:s.Q1.black,hcLight:s.Q1.white},h.kg("editorBackground","Editor background color."))),D=(u("editor.foreground",{light:"#333333",dark:"#BBBBBB",hcDark:s.Q1.white,hcLight:C},h.kg("editorForeground","Editor default foreground color.")),u("editorStickyScroll.background",A,h.kg("editorStickyScrollBackground","Background color of sticky scroll in the editor")),u("editorStickyScrollHover.background",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:null,hcLight:s.Q1.fromHex("#0F4A85").transparent(.1)},h.kg("editorStickyScrollHoverBackground","Background color of sticky scroll on hover in the editor")),u("editorStickyScroll.border",{dark:null,light:null,hcDark:w,hcLight:w},h.kg("editorStickyScrollBorder","Border color of sticky scroll in the editor")),u("editorStickyScroll.shadow",E,h.kg("editorStickyScrollShadow"," Shadow color of sticky scroll in the editor")),u("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hcDark:"#0C141F",hcLight:s.Q1.white},h.kg("editorWidgetBackground","Background color of editor widgets, such as find/replace."))),R=u("editorWidget.foreground",C,h.kg("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),M=u("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hcDark:w,hcLight:w},h.kg("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),O=(u("editorWidget.resizeBorder",null,h.kg("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),u("editorError.background",null,h.kg("editorError.background","Background color of error text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),u("editorError.foreground",{dark:"#F14C4C",light:"#E51400",hcDark:"#F48771",hcLight:"#B5200D"},h.kg("editorError.foreground","Foreground color of error squigglies in the editor."))),B=(u("editorError.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#E47777").transparent(.8),hcLight:"#B5200D"},h.kg("errorBorder","If set, color of double underlines for errors in the editor.")),u("editorWarning.background",null,h.kg("editorWarning.background","Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0)),F=u("editorWarning.foreground",{dark:"#CCA700",light:"#BF8803",hcDark:"#FFD370",hcLight:"#895503"},h.kg("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),P=u("editorWarning.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#FFCC00").transparent(.8),hcLight:s.Q1.fromHex("#FFCC00").transparent(.8)},h.kg("warningBorder","If set, color of double underlines for warnings in the editor.")),z=(u("editorInfo.background",null,h.kg("editorInfo.background","Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),u("editorInfo.foreground",{dark:"#3794FF",light:"#1a85ff",hcDark:"#3794FF",hcLight:"#1a85ff"},h.kg("editorInfo.foreground","Foreground color of info squigglies in the editor."))),V=u("editorInfo.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#3794FF").transparent(.8),hcLight:"#292929"},h.kg("infoBorder","If set, color of double underlines for infos in the editor.")),W=(u("editorHint.foreground",{dark:s.Q1.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hcDark:null,hcLight:null},h.kg("editorHint.foreground","Foreground color of hint squigglies in the editor.")),u("editorHint.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#eeeeee").transparent(.8),hcLight:"#292929"},h.kg("hintBorder","If set, color of double underlines for hints in the editor.")),u("editorLink.activeForeground",{dark:"#4E94CE",light:s.Q1.blue,hcDark:s.Q1.cyan,hcLight:"#292929"},h.kg("activeLinkForeground","Color of active links.")),u("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hcDark:"#f3f518",hcLight:"#0F4A85"},h.kg("editorSelectionBackground","Color of the editor selection."))),q=(u("editor.selectionForeground",{light:null,dark:null,hcDark:"#000000",hcLight:s.Q1.white},h.kg("editorSelectionForeground","Color of the selected text for high contrast.")),u("editor.inactiveSelectionBackground",{light:f(W,.5),dark:f(W,.5),hcDark:f(W,.7),hcLight:f(W,.5)},h.kg("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),u("editor.selectionHighlightBackground",{light:p(W,A,.3,.6),dark:p(W,A,.3,.6),hcDark:null,hcLight:null},h.kg("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),u("editor.selectionHighlightBorder",{light:null,dark:null,hcDark:S,hcLight:S},h.kg("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),u("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hcDark:null,hcLight:null},h.kg("editorFindMatch","Color of the current search match.")),u("editor.findMatchForeground",null,h.kg("editorFindMatchForeground","Text color of the current search match.")),u("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hcDark:null,hcLight:null},h.kg("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0)),H=(u("editor.findMatchHighlightForeground",null,h.kg("findMatchHighlightForeground","Foreground color of the other search matches."),!0),u("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hcDark:null,hcLight:null},h.kg("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),u("editor.findMatchBorder",{light:null,dark:null,hcDark:S,hcLight:S},h.kg("editorFindMatchBorder","Border color of the current search match.")),u("editor.findMatchHighlightBorder",{light:null,dark:null,hcDark:S,hcLight:S},h.kg("findMatchHighlightBorder","Border color of the other search matches."))),U=(u("editor.findRangeHighlightBorder",{dark:null,light:null,hcDark:f(S,.4),hcLight:f(S,.4)},h.kg("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),u("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hcDark:"#ADD6FF26",hcLight:null},h.kg("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),u("editorHoverWidget.background",D,h.kg("hoverBackground","Background color of the editor hover."))),j=(u("editorHoverWidget.foreground",R,h.kg("hoverForeground","Foreground color of the editor hover.")),u("editorHoverWidget.border",M,h.kg("hoverBorder","Border color of the editor hover.")),u("editorHoverWidget.statusBarBackground",{dark:g(U,.2),light:d(U,.05),hcDark:D,hcLight:D},h.kg("statusBarBackground","Background color of the editor hover status bar.")),u("editorInlayHint.foreground",{dark:"#969696",light:"#969696",hcDark:s.Q1.white,hcLight:s.Q1.black},h.kg("editorInlayHintForeground","Foreground color of inline hints"))),K=u("editorInlayHint.background",{dark:f(x,.1),light:f(x,.1),hcDark:f(s.Q1.white,.1),hcLight:f(x,.1)},h.kg("editorInlayHintBackground","Background color of inline hints")),$=(u("editorInlayHint.typeForeground",j,h.kg("editorInlayHintForegroundTypes","Foreground color of inline hints for types")),u("editorInlayHint.typeBackground",K,h.kg("editorInlayHintBackgroundTypes","Background color of inline hints for types")),u("editorInlayHint.parameterForeground",j,h.kg("editorInlayHintForegroundParameter","Foreground color of inline hints for parameters")),u("editorInlayHint.parameterBackground",K,h.kg("editorInlayHintBackgroundParameter","Background color of inline hints for parameters")),u("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hcDark:"#FFCC00",hcLight:"#007ACC"},h.kg("editorLightBulbForeground","The color used for the lightbulb actions icon."))),G=(u("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},h.kg("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),u("editorLightBulbAi.foreground",$,h.kg("editorLightBulbAiForeground","The color used for the lightbulb AI icon.")),u("editor.snippetTabstopHighlightBackground",{dark:new s.Q1(new s.bU(124,124,124,.3)),light:new s.Q1(new s.bU(10,50,100,.2)),hcDark:new s.Q1(new s.bU(124,124,124,.3)),hcLight:new s.Q1(new s.bU(10,50,100,.2))},h.kg("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),u("editor.snippetTabstopHighlightBorder",null,h.kg("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),u("editor.snippetFinalTabstopHighlightBackground",null,h.kg("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),u("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new s.Q1(new s.bU(10,50,100,.5)),hcDark:"#525252",hcLight:"#292929"},h.kg("snippetFinalTabstopHighlightBorder","Highlight border color of the final tabstop of a snippet.")),new s.Q1(new s.bU(155,185,85,.2))),Q=new s.Q1(new s.bU(255,0,0,.2)),Y=(u("diffEditor.insertedTextBackground",{dark:"#9ccc2c33",light:"#9ccc2c40",hcDark:null,hcLight:null},h.kg("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),u("diffEditor.removedTextBackground",{dark:"#ff000033",light:"#ff000033",hcDark:null,hcLight:null},h.kg("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),u("diffEditor.insertedLineBackground",{dark:G,light:G,hcDark:null,hcLight:null},h.kg("diffEditorInsertedLines","Background color for lines that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),u("diffEditor.removedLineBackground",{dark:Q,light:Q,hcDark:null,hcLight:null},h.kg("diffEditorRemovedLines","Background color for lines that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),u("diffEditorGutter.insertedLineBackground",null,h.kg("diffEditorInsertedLineGutter","Background color for the margin where lines got inserted.")),u("diffEditorGutter.removedLineBackground",null,h.kg("diffEditorRemovedLineGutter","Background color for the margin where lines got removed.")),u("diffEditorOverview.insertedForeground",null,h.kg("diffEditorOverviewInserted","Diff overview ruler foreground for inserted content.")),u("diffEditorOverview.removedForeground",null,h.kg("diffEditorOverviewRemoved","Diff overview ruler foreground for removed content.")),u("diffEditor.insertedTextBorder",{dark:null,light:null,hcDark:"#33ff2eff",hcLight:"#374E06"},h.kg("diffEditorInsertedOutline","Outline color for the text that got inserted.")),u("diffEditor.removedTextBorder",{dark:null,light:null,hcDark:"#FF008F",hcLight:"#AD0707"},h.kg("diffEditorRemovedOutline","Outline color for text that got removed.")),u("diffEditor.border",{dark:null,light:null,hcDark:w,hcLight:w},h.kg("diffEditorBorder","Border color between the two text editors.")),u("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hcDark:null,hcLight:null},h.kg("diffDiagonalFill","Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.")),u("diffEditor.unchangedRegionBackground","sideBar.background",h.kg("diffEditor.unchangedRegionBackground","The background color of unchanged blocks in the diff editor.")),u("diffEditor.unchangedRegionForeground","foreground",h.kg("diffEditor.unchangedRegionForeground","The foreground color of unchanged blocks in the diff editor.")),u("diffEditor.unchangedCodeBackground",{dark:"#74747429",light:"#b8b8b829",hcDark:null,hcLight:null},h.kg("diffEditor.unchangedCodeBackground","The background color of unchanged code in the diff editor.")),u("widget.shadow",{dark:f(s.Q1.black,.36),light:f(s.Q1.black,.16),hcDark:null,hcLight:null},h.kg("widgetShadow","Shadow color of widgets such as find/replace inside the editor."))),X=(u("widget.border",{dark:null,light:null,hcDark:w,hcLight:w},h.kg("widgetBorder","Border color of widgets such as find/replace inside the editor.")),u("toolbar.hoverBackground",{dark:"#5a5d5e50",light:"#b8b8b850",hcDark:null,hcLight:null},h.kg("toolbarHoverBackground","Toolbar background when hovering over actions using the mouse"))),Z=(u("toolbar.hoverOutline",{dark:null,light:null,hcDark:S,hcLight:S},h.kg("toolbarHoverOutline","Toolbar outline when hovering over actions using the mouse")),u("toolbar.activeBackground",{dark:g(X,.1),light:d(X,.1),hcDark:null,hcLight:null},h.kg("toolbarActiveBackground","Toolbar background when holding the mouse over actions")),u("breadcrumb.foreground",f(C,.8),h.kg("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),u("breadcrumb.background",A,h.kg("breadcrumbsBackground","Background color of breadcrumb items.")),u("breadcrumb.focusForeground",{light:d(C,.2),dark:g(C,.1),hcDark:g(C,.1),hcLight:g(C,.1)},h.kg("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),u("breadcrumb.activeSelectionForeground",{light:d(C,.2),dark:g(C,.1),hcDark:g(C,.1),hcLight:g(C,.1)},h.kg("breadcrumbsSelectedForeground","Color of selected breadcrumb items.")),u("breadcrumbPicker.background",D,h.kg("breadcrumbsSelectedBackground","Background color of breadcrumb item picker.")),s.Q1.fromHex("#40C8AE").transparent(.5)),J=s.Q1.fromHex("#40A6FF").transparent(.5),ee=s.Q1.fromHex("#606060").transparent(.4),te=u("merge.currentHeaderBackground",{dark:Z,light:Z,hcDark:null,hcLight:null},h.kg("mergeCurrentHeaderBackground","Current header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),ne=(u("merge.currentContentBackground",f(te,.4),h.kg("mergeCurrentContentBackground","Current content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),u("merge.incomingHeaderBackground",{dark:J,light:J,hcDark:null,hcLight:null},h.kg("mergeIncomingHeaderBackground","Incoming header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0)),ie=(u("merge.incomingContentBackground",f(ne,.4),h.kg("mergeIncomingContentBackground","Incoming content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),u("merge.commonHeaderBackground",{dark:ee,light:ee,hcDark:null,hcLight:null},h.kg("mergeCommonHeaderBackground","Common ancestor header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0)),re=(u("merge.commonContentBackground",f(ie,.4),h.kg("mergeCommonContentBackground","Common ancestor content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),u("merge.border",{dark:null,light:null,hcDark:"#C3DF6F",hcLight:"#007ACC"},h.kg("mergeBorder","Border color on headers and the splitter in inline merge-conflicts."))),se=(u("editorOverviewRuler.currentContentForeground",{dark:f(te,1),light:f(te,1),hcDark:re,hcLight:re},h.kg("overviewRulerCurrentContentForeground","Current overview ruler foreground for inline merge-conflicts.")),u("editorOverviewRuler.incomingContentForeground",{dark:f(ne,1),light:f(ne,1),hcDark:re,hcLight:re},h.kg("overviewRulerIncomingContentForeground","Incoming overview ruler foreground for inline merge-conflicts.")),u("editorOverviewRuler.commonContentForeground",{dark:f(ie,1),light:f(ie,1),hcDark:re,hcLight:re},h.kg("overviewRulerCommonContentForeground","Common ancestor overview ruler foreground for inline merge-conflicts.")),u("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hcDark:"#AB5A00",hcLight:"#AB5A00"},h.kg("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0),u("editorOverviewRuler.selectionHighlightForeground","#A0A0A0CC",h.kg("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),u("problemsErrorIcon.foreground",O,h.kg("problemsErrorIconForeground","The color used for the problems error icon.")),u("problemsWarningIcon.foreground",F,h.kg("problemsWarningIconForeground","The color used for the problems warning icon.")),u("problemsInfoIcon.foreground",z,h.kg("problemsInfoIconForeground","The color used for the problems info icon.")),u("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hcDark:"#AB5A00",hcLight:"#0F4A85"},h.kg("minimapFindMatchHighlight","Minimap marker color for find matches."),!0)),oe=(u("minimap.selectionOccurrenceHighlight",{light:"#c9c9c9",dark:"#676767",hcDark:"#ffffff",hcLight:"#0F4A85"},h.kg("minimapSelectionOccurrenceHighlight","Minimap marker color for repeating editor selections."),!0),u("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hcDark:"#ffffff",hcLight:"#0F4A85"},h.kg("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),u("minimap.infoHighlight",{dark:z,light:z,hcDark:V,hcLight:V},h.kg("minimapInfo","Minimap marker color for infos."))),ae=u("minimap.warningHighlight",{dark:F,light:F,hcDark:P,hcLight:P},h.kg("overviewRuleWarning","Minimap marker color for warnings.")),le=u("minimap.errorHighlight",{dark:new s.Q1(new s.bU(255,18,18,.7)),light:new s.Q1(new s.bU(255,18,18,.7)),hcDark:new s.Q1(new s.bU(255,50,50,1)),hcLight:"#B5200D"},h.kg("minimapError","Minimap marker color for errors.")),he=(u("minimap.background",null,h.kg("minimapBackground","Minimap background color.")),u("minimap.foregroundOpacity",s.Q1.fromHex("#000f"),h.kg("minimapForegroundOpacity",'Opacity of foreground elements rendered in the minimap. For example, "#000000c0" will render the elements with 75% opacity.')),u("minimapSlider.background",f(N,.5),h.kg("minimapSliderBackground","Minimap slider background color.")),u("minimapSlider.hoverBackground",f(I,.5),h.kg("minimapSliderHoverBackground","Minimap slider background color when hovering.")),u("minimapSlider.activeBackground",f(T,.5),h.kg("minimapSliderActiveBackground","Minimap slider background color when clicked on.")),u("charts.foreground",C,h.kg("chartsForeground","The foreground color used in charts.")),u("charts.lines",f(C,.5),h.kg("chartsLines","The color used for horizontal lines in charts.")),u("charts.red",O,h.kg("chartsRed","The red color used in chart visualizations.")),u("charts.blue",z,h.kg("chartsBlue","The blue color used in chart visualizations.")),u("charts.yellow",F,h.kg("chartsYellow","The yellow color used in chart visualizations.")),u("charts.orange",se,h.kg("chartsOrange","The orange color used in chart visualizations.")),u("charts.green",{dark:"#89D185",light:"#388A34",hcDark:"#89D185",hcLight:"#374e06"},h.kg("chartsGreen","The green color used in chart visualizations.")),u("charts.purple",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},h.kg("chartsPurple","The purple color used in chart visualizations.")),u("input.background",{dark:"#3C3C3C",light:s.Q1.white,hcDark:s.Q1.black,hcLight:s.Q1.white},h.kg("inputBoxBackground","Input box background.")),u("input.foreground",C,h.kg("inputBoxForeground","Input box foreground.")),u("input.border",{dark:null,light:null,hcDark:w,hcLight:w},h.kg("inputBoxBorder","Input box border.")),u("inputOption.activeBorder",{dark:"#007ACC",light:"#007ACC",hcDark:w,hcLight:w},h.kg("inputBoxActiveOptionBorder","Border color of activated options in input fields."))),ce=u("inputOption.hoverBackground",{dark:"#5a5d5e80",light:"#b8b8b850",hcDark:null,hcLight:null},h.kg("inputOption.hoverBackground","Background color of activated options in input fields.")),ue=u("inputOption.activeBackground",{dark:f(y,.4),light:f(y,.2),hcDark:s.Q1.transparent,hcLight:s.Q1.transparent},h.kg("inputOption.activeBackground","Background hover color of options in input fields.")),de=u("inputOption.activeForeground",{dark:s.Q1.white,light:s.Q1.black,hcDark:C,hcLight:C},h.kg("inputOption.activeForeground","Foreground color of activated options in input fields.")),ge=(u("input.placeholderForeground",{light:f(C,.5),dark:f(C,.5),hcDark:f(C,.7),hcLight:f(C,.7)},h.kg("inputPlaceholderForeground","Input box foreground color for placeholder text.")),u("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hcDark:s.Q1.black,hcLight:s.Q1.white},h.kg("inputValidationInfoBackground","Input validation background color for information severity.")),u("inputValidation.infoForeground",{dark:null,light:null,hcDark:null,hcLight:C},h.kg("inputValidationInfoForeground","Input validation foreground color for information severity.")),u("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hcDark:w,hcLight:w},h.kg("inputValidationInfoBorder","Input validation border color for information severity.")),u("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hcDark:s.Q1.black,hcLight:s.Q1.white},h.kg("inputValidationWarningBackground","Input validation background color for warning severity.")),u("inputValidation.warningForeground",{dark:null,light:null,hcDark:null,hcLight:C},h.kg("inputValidationWarningForeground","Input validation foreground color for warning severity.")),u("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hcDark:w,hcLight:w},h.kg("inputValidationWarningBorder","Input validation border color for warning severity.")),u("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hcDark:s.Q1.black,hcLight:s.Q1.white},h.kg("inputValidationErrorBackground","Input validation background color for error severity.")),u("inputValidation.errorForeground",{dark:null,light:null,hcDark:null,hcLight:C},h.kg("inputValidationErrorForeground","Input validation foreground color for error severity.")),u("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hcDark:w,hcLight:w},h.kg("inputValidationErrorBorder","Input validation border color for error severity.")),u("dropdown.background",{dark:"#3C3C3C",light:s.Q1.white,hcDark:s.Q1.black,hcLight:s.Q1.white},h.kg("dropdownBackground","Dropdown background."))),fe=(u("dropdown.listBackground",{dark:null,light:null,hcDark:s.Q1.black,hcLight:s.Q1.white},h.kg("dropdownListBackground","Dropdown list background.")),u("dropdown.foreground",{dark:"#F0F0F0",light:C,hcDark:s.Q1.white,hcLight:C},h.kg("dropdownForeground","Dropdown foreground."))),me=u("dropdown.border",{dark:ge,light:"#CECECE",hcDark:w,hcLight:w},h.kg("dropdownBorder","Dropdown border.")),pe=u("button.foreground",s.Q1.white,h.kg("buttonForeground","Button foreground color.")),_e=(u("button.separator",f(pe,.4),h.kg("buttonSeparator","Button separator color.")),u("button.background",{dark:"#0E639C",light:"#007ACC",hcDark:null,hcLight:"#0F4A85"},h.kg("buttonBackground","Button background color."))),be=(u("button.hoverBackground",{dark:g(_e,.2),light:d(_e,.2),hcDark:_e,hcLight:_e},h.kg("buttonHoverBackground","Button background color when hovering.")),u("button.border",w,h.kg("buttonBorder","Button border color.")),u("button.secondaryForeground",{dark:s.Q1.white,light:s.Q1.white,hcDark:s.Q1.white,hcLight:C},h.kg("buttonSecondaryForeground","Secondary button foreground color.")),u("button.secondaryBackground",{dark:"#3A3D41",light:"#5F6A79",hcDark:null,hcLight:s.Q1.white},h.kg("buttonSecondaryBackground","Secondary button background color."))),ke=(u("button.secondaryHoverBackground",{dark:g(be,.2),light:d(be,.2),hcDark:null,hcLight:null},h.kg("buttonSecondaryHoverBackground","Secondary button background color when hovering.")),u("radio.activeForeground",de,h.kg("radioActiveForeground","Foreground color of active radio option."))),ve=(u("radio.activeBackground",ue,h.kg("radioBackground","Background color of active radio option.")),u("radio.activeBorder",he,h.kg("radioActiveBorder","Border color of the active radio option.")),u("radio.inactiveForeground",null,h.kg("radioInactiveForeground","Foreground color of inactive radio option.")),u("radio.inactiveBackground",null,h.kg("radioInactiveBackground","Background color of inactive radio option.")),u("radio.inactiveBorder",{light:f(ke,.2),dark:f(ke,.2),hcDark:f(ke,.4),hcLight:f(ke,.2)},h.kg("radioInactiveBorder","Border color of the inactive radio option.")),u("radio.inactiveHoverBackground",ce,h.kg("radioHoverBackground","Background color of inactive active radio option when hovering.")),u("checkbox.background",ge,h.kg("checkbox.background","Background color of checkbox widget.")),u("checkbox.selectBackground",D,h.kg("checkbox.select.background","Background color of checkbox widget when the element it's in is selected.")),u("checkbox.foreground",fe,h.kg("checkbox.foreground","Foreground color of checkbox widget.")),u("checkbox.border",me,h.kg("checkbox.border","Border color of checkbox widget.")),u("checkbox.selectBorder",L,h.kg("checkbox.select.border","Border color of checkbox widget when the element it's in is selected.")),u("keybindingLabel.background",{dark:new s.Q1(new s.bU(128,128,128,.17)),light:new s.Q1(new s.bU(221,221,221,.4)),hcDark:s.Q1.transparent,hcLight:s.Q1.transparent},h.kg("keybindingLabelBackground","Keybinding label background color. The keybinding label is used to represent a keyboard shortcut.")),u("keybindingLabel.foreground",{dark:s.Q1.fromHex("#CCCCCC"),light:s.Q1.fromHex("#555555"),hcDark:s.Q1.white,hcLight:C},h.kg("keybindingLabelForeground","Keybinding label foreground color. The keybinding label is used to represent a keyboard shortcut.")),u("keybindingLabel.border",{dark:new s.Q1(new s.bU(51,51,51,.6)),light:new s.Q1(new s.bU(204,204,204,.4)),hcDark:new s.Q1(new s.bU(111,195,223)),hcLight:w},h.kg("keybindingLabelBorder","Keybinding label border color. The keybinding label is used to represent a keyboard shortcut.")),u("keybindingLabel.bottomBorder",{dark:new s.Q1(new s.bU(68,68,68,.6)),light:new s.Q1(new s.bU(187,187,187,.4)),hcDark:new s.Q1(new s.bU(111,195,223)),hcLight:C},h.kg("keybindingLabelBottomBorder","Keybinding label border bottom color. The keybinding label is used to represent a keyboard shortcut.")),u("list.focusBackground",null,h.kg("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),u("list.focusForeground",null,h.kg("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),u("list.focusOutline",{dark:y,light:y,hcDark:S,hcLight:S},h.kg("listFocusOutline","List/Tree outline color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),u("list.focusAndSelectionOutline",null,h.kg("listFocusAndSelectionOutline","List/Tree outline color for the focused item when the list/tree is active and selected. An active list/tree has keyboard focus, an inactive does not.")),u("list.activeSelectionBackground",{dark:"#04395E",light:"#0060C0",hcDark:null,hcLight:s.Q1.fromHex("#0F4A85").transparent(.1)},h.kg("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not."))),Ce=u("list.activeSelectionForeground",{dark:s.Q1.white,light:s.Q1.white,hcDark:null,hcLight:null},h.kg("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Le=u("list.activeSelectionIconForeground",null,h.kg("listActiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),ye=(u("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hcDark:null,hcLight:s.Q1.fromHex("#0F4A85").transparent(.1)},h.kg("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),u("list.inactiveSelectionForeground",null,h.kg("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),u("list.inactiveSelectionIconForeground",null,h.kg("listInactiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),u("list.inactiveFocusBackground",null,h.kg("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),u("list.inactiveFocusOutline",null,h.kg("listInactiveFocusOutline","List/Tree outline color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),u("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:s.Q1.white.transparent(.1),hcLight:s.Q1.fromHex("#0F4A85").transparent(.1)},h.kg("listHoverBackground","List/Tree background when hovering over items using the mouse.")),u("list.hoverForeground",null,h.kg("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),u("list.dropBackground",{dark:"#062F4A",light:"#D6EBFF",hcDark:null,hcLight:null},h.kg("listDropBackground","List/Tree drag and drop background when moving items over other items when using the mouse.")),u("list.dropBetweenBackground",{dark:L,light:L,hcDark:null,hcLight:null},h.kg("listDropBetweenBackground","List/Tree drag and drop border color when moving items between items when using the mouse.")),u("list.highlightForeground",{dark:"#2AAAFF",light:"#0066BF",hcDark:y,hcLight:y},h.kg("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")));u("list.focusHighlightForeground",{dark:ye,light:(we=ve,Se=ye,xe="#BBE7FF",{op:6,if:we,then:Se,else:xe}),hcDark:ye,hcLight:ye},h.kg("listFocusHighlightForeground","List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree."));var we,Se,xe;u("list.invalidItemForeground",{dark:"#B89500",light:"#B89500",hcDark:"#B89500",hcLight:"#B5200D"},h.kg("invalidItemForeground","List/Tree foreground color for invalid items, for example an unresolved root in explorer.")),u("list.errorForeground",{dark:"#F88070",light:"#B01011",hcDark:null,hcLight:null},h.kg("listErrorForeground","Foreground color of list items containing errors.")),u("list.warningForeground",{dark:"#CCA700",light:"#855F00",hcDark:null,hcLight:null},h.kg("listWarningForeground","Foreground color of list items containing warnings.")),u("listFilterWidget.background",{light:d(D,0),dark:g(D,0),hcDark:D,hcLight:D},h.kg("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),u("listFilterWidget.outline",{dark:s.Q1.transparent,light:s.Q1.transparent,hcDark:"#f38518",hcLight:"#007ACC"},h.kg("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),u("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hcDark:w,hcLight:w},h.kg("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),u("listFilterWidget.shadow",Y,h.kg("listFilterWidgetShadow","Shadow color of the type filter widget in lists and trees.")),u("list.filterMatchBackground",{dark:q,light:q,hcDark:null,hcLight:null},h.kg("listFilterMatchHighlight","Background color of the filtered match.")),u("list.filterMatchBorder",{dark:H,light:H,hcDark:w,hcLight:S},h.kg("listFilterMatchHighlightBorder","Border color of the filtered match.")),u("list.deemphasizedForeground",{dark:"#8C8C8C",light:"#8E8E90",hcDark:"#A7A8A9",hcLight:"#666666"},h.kg("listDeemphasizedForeground","List/Tree foreground color for items that are deemphasized."));const Ee=u("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hcDark:"#a9a9a9",hcLight:"#a5a5a5"},h.kg("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),Ne=(u("tree.inactiveIndentGuidesStroke",f(Ee,.4),h.kg("treeInactiveIndentGuidesStroke","Tree stroke color for the indentation guides that are not active.")),u("tree.tableColumnsBorder",{dark:"#CCCCCC20",light:"#61616120",hcDark:null,hcLight:null},h.kg("tableColumnsBorder","Table border color between columns.")),u("tree.tableOddRowsBackground",{dark:f(C,.04),light:f(C,.04),hcDark:null,hcLight:null},h.kg("tableOddRowsBackgroundColor","Background color for odd table rows.")),u("editorActionList.background",D,h.kg("editorActionListBackground","Action List background color.")),u("editorActionList.foreground",R,h.kg("editorActionListForeground","Action List foreground color.")),u("editorActionList.focusForeground",Ce,h.kg("editorActionListFocusForeground","Action List foreground color for the focused item.")),u("editorActionList.focusBackground",ve,h.kg("editorActionListFocusBackground","Action List background color for the focused item.")),u("menu.border",{dark:null,light:null,hcDark:w,hcLight:w},h.kg("menuBorder","Border color of menus.")),u("menu.foreground",fe,h.kg("menuForeground","Foreground color of menu items.")),u("menu.background",ge,h.kg("menuBackground","Background color of menu items.")),u("menu.selectionForeground",Ce,h.kg("menuSelectionForeground","Foreground color of the selected menu item in menus.")),u("menu.selectionBackground",ve,h.kg("menuSelectionBackground","Background color of the selected menu item in menus.")),u("menu.selectionBorder",{dark:null,light:null,hcDark:S,hcLight:S},h.kg("menuSelectionBorder","Border color of the selected menu item in menus.")),u("menu.separatorBackground",{dark:"#606060",light:"#D4D4D4",hcDark:w,hcLight:w},h.kg("menuSeparatorBackground","Color of a separator menu item in menus.")),u("quickInput.background",D,h.kg("pickerBackground","Quick picker background color. The quick picker widget is the container for pickers like the command palette.")),u("quickInput.foreground",R,h.kg("pickerForeground","Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")),u("quickInputTitle.background",{dark:new s.Q1(new s.bU(255,255,255,.105)),light:new s.Q1(new s.bU(0,0,0,.06)),hcDark:"#000000",hcLight:s.Q1.white},h.kg("pickerTitleBackground","Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")),u("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hcDark:s.Q1.white,hcLight:"#0F4A85"},h.kg("pickerGroupForeground","Quick picker color for grouping labels.")),u("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hcDark:s.Q1.white,hcLight:"#0F4A85"},h.kg("pickerGroupBorder","Quick picker color for grouping borders.")),u("quickInput.list.focusBackground",null,"",void 0,h.kg("quickInput.list.focusBackground deprecation","Please use quickInputList.focusBackground instead")));u("quickInputList.focusForeground",Ce,h.kg("quickInput.listFocusForeground","Quick picker foreground color for the focused item.")),u("quickInputList.focusIconForeground",Le,h.kg("quickInput.listFocusIconForeground","Quick picker icon foreground color for the focused item.")),u("quickInputList.focusBackground",{dark:m(Ne,ve),light:m(Ne,ve),hcDark:null,hcLight:null},h.kg("quickInput.listFocusBackground","Quick picker background color for the focused item.")),u("search.resultsInfoForeground",{light:C,dark:f(C,.65),hcDark:C,hcLight:C},h.kg("search.resultsInfoForeground","Color of the text in the search viewlet's completion message.")),u("searchEditor.findMatchBackground",{light:f(q,.66),dark:f(q,.66),hcDark:q,hcLight:q},h.kg("searchEditor.queryMatch","Color of the Search Editor query matches.")),u("searchEditor.findMatchBorder",{light:f(H,.66),dark:f(H,.66),hcDark:H,hcLight:H},h.kg("searchEditor.editorFindMatchBorder","Border color of the Search Editor query matches."))},5724:(e,t,n)=>{"use strict";n.d(t,{Gy:()=>l,zy:()=>u,Yf:()=>h});var i,r=n(1234),s=n(1484),o=n(3591),a=n(6359);!function(e){e.DARK="dark",e.LIGHT="light",e.HIGH_CONTRAST_DARK="hcDark",e.HIGH_CONTRAST_LIGHT="hcLight"}(i||(i={}));const l=(0,o.u1)("themeService");function h(e){return{id:e}}const c=new class{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new r.vl}onColorThemeChange(e){return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),(0,s.s)((()=>{const t=this.themingParticipants.indexOf(e);this.themingParticipants.splice(t,1)}))}getThemingParticipants(){return this.themingParticipants}};function u(e){return c.onColorThemeChange(e)}a.O.add("base.contributions.theming",c);s.jG},5890:(e,t,n)=>{var i={"./simpleWorker":1929,"./simpleWorker.js":1929,"monaco-editor/esm/vs/base/common/worker/simpleWorker":1929,"monaco-editor/esm/vs/base/common/worker/simpleWorker.js":1929};function r(e){return Promise.resolve().then((()=>{if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n(i[e])}))}r.keys=()=>Object.keys(i),r.id=5890,e.exports=r},9204:(e,t,n)=>{var i={"./editorBaseApi":[4272],"./editorBaseApi.js":[4272],"./editorSimpleWorker":[5196],"./editorSimpleWorker.js":[5196],"./editorWorker":[920,792],"./editorWorker.js":[920,792],"./editorWorkerHost":[718],"./editorWorkerHost.js":[718],"./findSectionHeaders":[6691],"./findSectionHeaders.js":[6691],"./getIconClasses":[5628,792],"./getIconClasses.js":[5628,792],"./languageFeatureDebounce":[8709,792],"./languageFeatureDebounce.js":[8709,792],"./languageFeatures":[6942,792],"./languageFeatures.js":[6942,792],"./languageFeaturesService":[2661,792],"./languageFeaturesService.js":[2661,792],"./languageService":[7596,792],"./languageService.js":[7596,792],"./languagesAssociations":[9908,792],"./languagesAssociations.js":[9908,792],"./languagesRegistry":[9259,792],"./languagesRegistry.js":[9259,792],"./markerDecorations":[7550,792],"./markerDecorations.js":[7550,792],"./markerDecorationsService":[448,792],"./markerDecorationsService.js":[448,792],"./model":[3750,792],"./model.js":[3750,792],"./modelService":[1773,792],"./modelService.js":[1773,792],"./resolverService":[8938,792],"./resolverService.js":[8938,792],"./semanticTokensDto":[8232,792],"./semanticTokensDto.js":[8232,792],"./semanticTokensProviderStyling":[5538,792],"./semanticTokensProviderStyling.js":[5538,792],"./semanticTokensStyling":[4243,792],"./semanticTokensStyling.js":[4243,792],"./semanticTokensStylingService":[7004,792],"./semanticTokensStylingService.js":[7004,792],"./textModelSync/textModelSync.impl":[796],"./textModelSync/textModelSync.impl.js":[796],"./textModelSync/textModelSync.protocol":[8868,792],"./textModelSync/textModelSync.protocol.js":[8868,792],"./textResourceConfiguration":[360,792],"./textResourceConfiguration.js":[360,792],"./treeSitterParserService":[4432,792],"./treeSitterParserService.js":[4432,792],"./treeViewsDnd":[6723,792],"./treeViewsDnd.js":[6723,792],"./treeViewsDndService":[9100,792],"./treeViewsDndService.js":[9100,792],"./unicodeTextModelHighlighter":[4855],"./unicodeTextModelHighlighter.js":[4855],"monaco-editor/esm/vs/editor/common/services/editorBaseApi":[4272],"monaco-editor/esm/vs/editor/common/services/editorBaseApi.js":[4272],"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker":[5196],"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker.js":[5196],"monaco-editor/esm/vs/editor/common/services/editorWorker":[920,792],"monaco-editor/esm/vs/editor/common/services/editorWorker.js":[920,792],"monaco-editor/esm/vs/editor/common/services/editorWorkerHost":[718],"monaco-editor/esm/vs/editor/common/services/editorWorkerHost.js":[718],"monaco-editor/esm/vs/editor/common/services/findSectionHeaders":[6691],"monaco-editor/esm/vs/editor/common/services/findSectionHeaders.js":[6691],"monaco-editor/esm/vs/editor/common/services/getIconClasses":[5628,792],"monaco-editor/esm/vs/editor/common/services/getIconClasses.js":[5628,792],"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce":[8709,792],"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce.js":[8709,792],"monaco-editor/esm/vs/editor/common/services/languageFeatures":[6942,792],"monaco-editor/esm/vs/editor/common/services/languageFeatures.js":[6942,792],"monaco-editor/esm/vs/editor/common/services/languageFeaturesService":[2661,792],"monaco-editor/esm/vs/editor/common/services/languageFeaturesService.js":[2661,792],"monaco-editor/esm/vs/editor/common/services/languageService":[7596,792],"monaco-editor/esm/vs/editor/common/services/languageService.js":[7596,792],"monaco-editor/esm/vs/editor/common/services/languagesAssociations":[9908,792],"monaco-editor/esm/vs/editor/common/services/languagesAssociations.js":[9908,792],"monaco-editor/esm/vs/editor/common/services/languagesRegistry":[9259,792],"monaco-editor/esm/vs/editor/common/services/languagesRegistry.js":[9259,792],"monaco-editor/esm/vs/editor/common/services/markerDecorations":[7550,792],"monaco-editor/esm/vs/editor/common/services/markerDecorations.js":[7550,792],"monaco-editor/esm/vs/editor/common/services/markerDecorationsService":[448,792],"monaco-editor/esm/vs/editor/common/services/markerDecorationsService.js":[448,792],"monaco-editor/esm/vs/editor/common/services/model":[3750,792],"monaco-editor/esm/vs/editor/common/services/model.js":[3750,792],"monaco-editor/esm/vs/editor/common/services/modelService":[1773,792],"monaco-editor/esm/vs/editor/common/services/modelService.js":[1773,792],"monaco-editor/esm/vs/editor/common/services/resolverService":[8938,792],"monaco-editor/esm/vs/editor/common/services/resolverService.js":[8938,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensDto":[8232,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensDto.js":[8232,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling":[5538,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling.js":[5538,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling":[4243,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling.js":[4243,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService":[7004,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService.js":[7004,792],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl":[796],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl.js":[796],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol":[8868,792],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol.js":[8868,792],"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration":[360,792],"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration.js":[360,792],"monaco-editor/esm/vs/editor/common/services/treeSitterParserService":[4432,792],"monaco-editor/esm/vs/editor/common/services/treeSitterParserService.js":[4432,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDnd":[6723,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDnd.js":[6723,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDndService":[9100,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDndService.js":[9100,792],"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter":[4855],"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter.js":[4855]};function r(e){if(!n.o(i,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=i[e],r=t[0];return Promise.all(t.slice(1).map(n.e)).then((()=>n(r)))}r.keys=()=>Object.keys(i),r.id=9204,e.exports=r},7614:(e,t,n)=>{var i={"./editorBaseApi":4272,"./editorBaseApi.js":4272,"./editorSimpleWorker":5196,"./editorSimpleWorker.js":5196,"./editorWorker":920,"./editorWorker.js":920,"./editorWorkerHost":718,"./editorWorkerHost.js":718,"./findSectionHeaders":6691,"./findSectionHeaders.js":6691,"./getIconClasses":5628,"./getIconClasses.js":5628,"./languageFeatureDebounce":8709,"./languageFeatureDebounce.js":8709,"./languageFeatures":6942,"./languageFeatures.js":6942,"./languageFeaturesService":2661,"./languageFeaturesService.js":2661,"./languageService":7596,"./languageService.js":7596,"./languagesAssociations":9908,"./languagesAssociations.js":9908,"./languagesRegistry":9259,"./languagesRegistry.js":9259,"./markerDecorations":7550,"./markerDecorations.js":7550,"./markerDecorationsService":448,"./markerDecorationsService.js":448,"./model":3750,"./model.js":3750,"./modelService":1773,"./modelService.js":1773,"./resolverService":8938,"./resolverService.js":8938,"./semanticTokensDto":8232,"./semanticTokensDto.js":8232,"./semanticTokensProviderStyling":5538,"./semanticTokensProviderStyling.js":5538,"./semanticTokensStyling":4243,"./semanticTokensStyling.js":4243,"./semanticTokensStylingService":7004,"./semanticTokensStylingService.js":7004,"./textModelSync/textModelSync.impl":796,"./textModelSync/textModelSync.impl.js":796,"./textModelSync/textModelSync.protocol":8868,"./textModelSync/textModelSync.protocol.js":8868,"./textResourceConfiguration":360,"./textResourceConfiguration.js":360,"./treeSitterParserService":4432,"./treeSitterParserService.js":4432,"./treeViewsDnd":6723,"./treeViewsDnd.js":6723,"./treeViewsDndService":9100,"./treeViewsDndService.js":9100,"./unicodeTextModelHighlighter":4855,"./unicodeTextModelHighlighter.js":4855,"monaco-editor/esm/vs/editor/common/services/editorBaseApi":4272,"monaco-editor/esm/vs/editor/common/services/editorBaseApi.js":4272,"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker":5196,"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker.js":5196,"monaco-editor/esm/vs/editor/common/services/editorWorker":920,"monaco-editor/esm/vs/editor/common/services/editorWorker.js":920,"monaco-editor/esm/vs/editor/common/services/editorWorkerHost":718,"monaco-editor/esm/vs/editor/common/services/editorWorkerHost.js":718,"monaco-editor/esm/vs/editor/common/services/findSectionHeaders":6691,"monaco-editor/esm/vs/editor/common/services/findSectionHeaders.js":6691,"monaco-editor/esm/vs/editor/common/services/getIconClasses":5628,"monaco-editor/esm/vs/editor/common/services/getIconClasses.js":5628,"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce":8709,"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce.js":8709,"monaco-editor/esm/vs/editor/common/services/languageFeatures":6942,"monaco-editor/esm/vs/editor/common/services/languageFeatures.js":6942,"monaco-editor/esm/vs/editor/common/services/languageFeaturesService":2661,"monaco-editor/esm/vs/editor/common/services/languageFeaturesService.js":2661,"monaco-editor/esm/vs/editor/common/services/languageService":7596,"monaco-editor/esm/vs/editor/common/services/languageService.js":7596,"monaco-editor/esm/vs/editor/common/services/languagesAssociations":9908,"monaco-editor/esm/vs/editor/common/services/languagesAssociations.js":9908,"monaco-editor/esm/vs/editor/common/services/languagesRegistry":9259,"monaco-editor/esm/vs/editor/common/services/languagesRegistry.js":9259,"monaco-editor/esm/vs/editor/common/services/markerDecorations":7550,"monaco-editor/esm/vs/editor/common/services/markerDecorations.js":7550,"monaco-editor/esm/vs/editor/common/services/markerDecorationsService":448,"monaco-editor/esm/vs/editor/common/services/markerDecorationsService.js":448,"monaco-editor/esm/vs/editor/common/services/model":3750,"monaco-editor/esm/vs/editor/common/services/model.js":3750,"monaco-editor/esm/vs/editor/common/services/modelService":1773,"monaco-editor/esm/vs/editor/common/services/modelService.js":1773,"monaco-editor/esm/vs/editor/common/services/resolverService":8938,"monaco-editor/esm/vs/editor/common/services/resolverService.js":8938,"monaco-editor/esm/vs/editor/common/services/semanticTokensDto":8232,"monaco-editor/esm/vs/editor/common/services/semanticTokensDto.js":8232,"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling":5538,"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling.js":5538,"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling":4243,"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling.js":4243,"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService":7004,"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService.js":7004,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl":796,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl.js":796,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol":8868,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol.js":8868,"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration":360,"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration.js":360,"monaco-editor/esm/vs/editor/common/services/treeSitterParserService":4432,"monaco-editor/esm/vs/editor/common/services/treeSitterParserService.js":4432,"monaco-editor/esm/vs/editor/common/services/treeViewsDnd":6723,"monaco-editor/esm/vs/editor/common/services/treeViewsDnd.js":6723,"monaco-editor/esm/vs/editor/common/services/treeViewsDndService":9100,"monaco-editor/esm/vs/editor/common/services/treeViewsDndService.js":9100,"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter":4855,"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter.js":4855};function r(e){var t=s(e);return n(t)}function s(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}r.keys=function(){return Object.keys(i)},r.resolve=s,e.exports=r,r.id=7614}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var s=t[i]={exports:{}};return e[i](s,s.exports,n),s.exports}n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.e=()=>Promise.resolve(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=n(1929),t=n(5196),i=n(718);let r=!1;globalThis.onmessage=n=>{r||function(n){if(r)return;r=!0;const s=new e.SimpleWorkerServer((e=>{globalThis.postMessage(e)}),(e=>new t.EditorSimpleWorker(i.EditorWorkerHost.getChannel(e),n)));globalThis.onmessage=e=>{s.onmessage(e.data)}}(null)}})()})();
\ No newline at end of file +(()=>{var e={146:(e,t,n)=>{"use strict";n.d(t,{V0:()=>r,aI:()=>i,kT:()=>s});Object.prototype.hasOwnProperty;function i(e,t){if(e===t)return!0;if(null===e||void 0===e||null===t||void 0===t)return!1;if(typeof e!==typeof t)return!1;if("object"!==typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;let n,r;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!i(e[n],t[n]))return!1}else{const s=[];for(r in e)s.push(r);s.sort();const o=[];for(r in t)o.push(r);if(o.sort(),!i(s,o))return!1;for(n=0;n<s.length;n++)if(!i(e[s[n]],t[s[n]]))return!1}return!0}function r(e){const t=[];for(const n of function(e){let t=[];for(;Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}(e))"function"===typeof e[n]&&t.push(n);return t}function s(e,t){const n=e=>function(){const n=Array.prototype.slice.call(arguments,0);return t(e,n)},i={};for(const r of e)i[r]=n(r);return i}},154:(e,t,n)=>{"use strict";n.d(t,{L:()=>i});const i=(0,n(3591).u1)("languageService")},360:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITextResourceConfigurationService:()=>r,ITextResourcePropertiesService:()=>s});var i=n(3591);const r=(0,i.u1)("textResourceConfigurationService"),s=(0,i.u1)("textResourcePropertiesService")},448:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MarkerDecorationsService:()=>y});var i,r=n(1508);!function(e){e[e.Ignore=0]="Ignore",e[e.Info=1]="Info",e[e.Warning=2]="Warning",e[e.Error=3]="Error"}(i||(i={})),function(e){const t="error",n="warning",i="info";e.fromValue=function(s){return s?r.Q_(t,s)?e.Error:r.Q_(n,s)||r.Q_("warn",s)?e.Warning:r.Q_(i,s)?e.Info:e.Ignore:e.Ignore},e.toString=function(r){switch(r){case e.Error:return t;case e.Warning:return n;case e.Info:return i;default:return"ignore"}}}(i||(i={}));const s=i;var o,a,l=n(8209),h=n(3591);!function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(o||(o={})),function(e){e.compare=function(e,t){return t-e};const t=Object.create(null);t[e.Error]=(0,l.kg)("sev.error","Error"),t[e.Warning]=(0,l.kg)("sev.warning","Warning"),t[e.Info]=(0,l.kg)("sev.info","Info"),e.toString=function(e){return t[e]||""},e.fromSeverity=function(t){switch(t){case s.Error:return e.Error;case s.Warning:return e.Warning;case s.Info:return e.Info;case s.Ignore:return e.Hint}},e.toSeverity=function(t){switch(t){case e.Error:return s.Error;case e.Warning:return s.Warning;case e.Info:return s.Info;case e.Hint:return s.Ignore}}}(o||(o={})),function(e){const t="";function n(e,n){const i=[t];return e.source?i.push(e.source.replace("\xa6","\\\xa6")):i.push(t),e.code?"string"===typeof e.code?i.push(e.code.replace("\xa6","\\\xa6")):i.push(e.code.value.replace("\xa6","\\\xa6")):i.push(t),void 0!==e.severity&&null!==e.severity?i.push(o.toString(e.severity)):i.push(t),e.message&&n?i.push(e.message.replace("\xa6","\\\xa6")):i.push(t),void 0!==e.startLineNumber&&null!==e.startLineNumber?i.push(e.startLineNumber.toString()):i.push(t),void 0!==e.startColumn&&null!==e.startColumn?i.push(e.startColumn.toString()):i.push(t),void 0!==e.endLineNumber&&null!==e.endLineNumber?i.push(e.endLineNumber.toString()):i.push(t),void 0!==e.endColumn&&null!==e.endColumn?i.push(e.endColumn.toString()):i.push(t),i.push(t),i.join("\xa6")}e.makeKey=function(e){return n(e,!0)},e.makeKeyOptionalMessage=n}(a||(a={}));const c=(0,h.u1)("markerService");var u=n(1484),d=n(6223),g=n(5724),f=n(7119),m=n(3750),p=n(6677),_=n(6456),b=n(1234),k=n(5845),v=n(4320);var C=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},L=function(e,t){return function(n,i){t(n,i,e)}};let y=class extends u.jG{constructor(e,t){super(),this._markerService=t,this._onDidChangeMarker=this._register(new b.vl),this._markerDecorations=new v.fT,e.getModels().forEach((e=>this._onModelAdded(e))),this._register(e.onModelAdded(this._onModelAdded,this)),this._register(e.onModelRemoved(this._onModelRemoved,this)),this._register(this._markerService.onMarkerChanged(this._handleMarkerChange,this))}dispose(){super.dispose(),this._markerDecorations.forEach((e=>e.dispose())),this._markerDecorations.clear()}getMarker(e,t){const n=this._markerDecorations.get(e);return n&&n.getMarker(t)||null}_handleMarkerChange(e){e.forEach((e=>{const t=this._markerDecorations.get(e);t&&this._updateDecorations(t)}))}_onModelAdded(e){const t=new w(e);this._markerDecorations.set(e.uri,t),this._updateDecorations(t)}_onModelRemoved(e){const t=this._markerDecorations.get(e.uri);t&&(t.dispose(),this._markerDecorations.delete(e.uri)),e.uri.scheme!==_.ny.inMemory&&e.uri.scheme!==_.ny.internal&&e.uri.scheme!==_.ny.vscode||this._markerService?.read({resource:e.uri}).map((e=>e.owner)).forEach((t=>this._markerService.remove(t,[e.uri])))}_updateDecorations(e){const t=this._markerService.read({resource:e.model.uri,take:500});e.update(t)&&this._onDidChangeMarker.fire(e.model)}};y=C([L(0,m.IModelService),L(1,c)],y);class w extends u.jG{constructor(e){super(),this.model=e,this._map=new v.cO,this._register((0,u.s)((()=>{this.model.deltaDecorations([...this._map.values()],[]),this._map.clear()})))}update(e){const{added:t,removed:n}=function(e,t){const n=[],i=[];for(const r of e)t.has(r)||n.push(r);for(const r of t)e.has(r)||i.push(r);return{removed:n,added:i}}(new Set(this._map.keys()),new Set(e));if(0===t.length&&0===n.length)return!1;const i=n.map((e=>this._map.get(e))),r=t.map((e=>({range:this._createDecorationRange(this.model,e),options:this._createDecorationOption(e)}))),s=this.model.deltaDecorations(i,r);for(const o of n)this._map.delete(o);for(let o=0;o<s.length;o++)this._map.set(t[o],s[o]);return!0}getMarker(e){return this._map.getKey(e.id)}_createDecorationRange(e,t){let n=p.Q.lift(t);if(t.severity!==o.Hint||this._hasMarkerTag(t,1)||this._hasMarkerTag(t,2)||(n=n.setEndPosition(n.startLineNumber,n.startColumn+2)),n=e.validateRange(n),n.isEmpty()){const t=e.getLineLastNonWhitespaceColumn(n.startLineNumber)||e.getLineMaxColumn(n.startLineNumber);if(1===t||n.endColumn>=t)return n;const i=e.getWordAtPosition(n.getStartPosition());i&&(n=new p.Q(n.startLineNumber,i.startColumn,n.endLineNumber,i.endColumn))}else if(t.endColumn===Number.MAX_VALUE&&1===t.startColumn&&n.startLineNumber===n.endLineNumber){const i=e.getLineFirstNonWhitespaceColumn(t.startLineNumber);i<n.endColumn&&(n=new p.Q(n.startLineNumber,i,n.endLineNumber,n.endColumn),t.startColumn=i)}return n}_createDecorationOption(e){let t,n,i,r,s;switch(e.severity){case o.Hint:t=this._hasMarkerTag(e,2)?void 0:this._hasMarkerTag(e,1)?"squiggly-unnecessary":"squiggly-hint",i=0;break;case o.Info:t="squiggly-info",n=(0,g.Yf)(f.AQ),i=10,s={color:(0,g.Yf)(k.KoI),position:1};break;case o.Warning:t="squiggly-warning",n=(0,g.Yf)(f.aZ),i=20,s={color:(0,g.Yf)(k.uMG),position:1};break;case o.Error:default:t="squiggly-error",n=(0,g.Yf)(f.yI),i=30,s={color:(0,g.Yf)(k.yLC),position:1}}return e.tags&&(-1!==e.tags.indexOf(1)&&(r="squiggly-inline-unnecessary"),-1!==e.tags.indexOf(2)&&(r="squiggly-inline-deprecated")),{description:"marker-decoration",stickiness:1,className:t,showIfCollapsed:!0,overviewRuler:{color:n,position:d.A5.Right},minimap:s,zIndex:i,inlineClassName:r}}_hasMarkerTag(e,t){return!!e.tags&&e.tags.indexOf(t)>=0}}},534:(e,t,n)=>{"use strict";n.d(t,{V:()=>r});var i=n(5152);class r{constructor(e){const t=(0,i.W)(e);this._defaultValue=t,this._asciiMap=r._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){const t=new Uint8Array(256);return t.fill(e),t}set(e,t){const n=(0,i.W)(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()}}},631:(e,t,n)=>{"use strict";function i(e){return"string"===typeof e}function r(e){return"object"===typeof e&&null!==e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function s(e){return"undefined"===typeof e}function o(e){return s(e)||null===e}n.d(t,{Gv:()=>r,Kg:()=>i,b0:()=>s,z:()=>o})},718:(e,t,n)=>{"use strict";n.r(t),n.d(t,{EditorWorkerHost:()=>i});class i{static{this.CHANNEL_NAME="editorWorkerHost"}static getChannel(e){return e.getChannel(i.CHANNEL_NAME)}static setChannel(e,t){e.setChannel(i.CHANNEL_NAME,t)}}},796:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MirrorModel:()=>_,STOP_SYNC_MODEL_DELTA_TIME_MS:()=>f,WorkerTextModelSyncClient:()=>m,WorkerTextModelSyncServer:()=>p});var i=n(1940),r=n(1484),s=n(9400),o=n(3069),a=n(6677),l=n(6486),h=n(1508),c=(n(9861),n(5152));class u{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=(0,c.j)(e);const n=this.values,i=this.prefixSum,r=t.length;return 0!==r&&(this.values=new Uint32Array(n.length+r),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+r),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(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,t){return e=(0,c.j)(e),t=(0,c.j)(t),this.values[e]!==t&&(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,t){e=(0,c.j)(e),t=(0,c.j)(t);const n=this.values,i=this.prefixSum;if(e>=n.length)return!1;const r=n.length-e;return t>=r&&(t=r),0!==t&&(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(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=(0,c.j)(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;0===t&&(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,i=0,r=0,s=0;for(;t<=n;)if(i=t+(n-t)/2|0,r=this.prefixSum[i],s=r-this.values[i],e<s)n=i-1;else{if(!(e>=r))break;t=i+1}return new d(i,e-s)}}class d{constructor(e,t){this.index=e,this.remainder=t,this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=t}}class g{constructor(e,t,n,i){this._uri=e,this._lines=t,this._eol=n,this._versionId=i,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const t=e.changes;for(const n of t)this._acceptDeleteRange(n.range),this._acceptInsertText(new o.y(n.range.startLineNumber,n.range.startColumn),n.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,t=this._lines.length,n=new Uint32Array(t);for(let i=0;i<t;i++)n[i]=this._lines[i].length+e;this._lineStarts=new u(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)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);else{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))}}_acceptInsertText(e,t){if(0===t.length)return;const n=(0,h.uz)(t);if(1===n.length)return void 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));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]);const i=new Uint32Array(n.length-1);for(let r=1;r<n.length;r++)this._lines.splice(e.lineNumber+r-1,0,n[r]),i[r-1]=n[r].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,i)}}const f=6e4;class m extends r.jG{constructor(e,t,n=!1){if(super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=e,this._modelService=t,!n){const e=new i.vb;e.cancelAndSet((()=>this._checkStopModelSync()),Math.round(f/2)),this._register(e)}}dispose(){for(const e in this._syncedModels)(0,r.AS)(this._syncedModels[e]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(e,t=!1){for(const n of e){const e=n.toString();this._syncedModels[e]||this._beginModelSync(n,t),this._syncedModels[e]&&(this._syncedModelsLastUsedTime[e]=(new Date).getTime())}}_checkStopModelSync(){const e=(new Date).getTime(),t=[];for(const n in this._syncedModelsLastUsedTime){e-this._syncedModelsLastUsedTime[n]>f&&t.push(n)}for(const n of t)this._stopModelSync(n)}_beginModelSync(e,t){const n=this._modelService.getModel(e);if(!n)return;if(!t&&n.isTooLargeForSyncing())return;const i=e.toString();this._proxy.$acceptNewModel({url:n.uri.toString(),lines:n.getLinesContent(),EOL:n.getEOL(),versionId:n.getVersionId()});const s=new r.Cm;s.add(n.onDidChangeContent((e=>{this._proxy.$acceptModelChanged(i.toString(),e)}))),s.add(n.onWillDispose((()=>{this._stopModelSync(i)}))),s.add((0,r.s)((()=>{this._proxy.$acceptRemovedModel(i)}))),this._syncedModels[i]=s}_stopModelSync(e){const t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],(0,r.AS)(t)}}class p{constructor(){this._models=Object.create(null)}getModel(e){return this._models[e]}getModels(){const e=[];return Object.keys(this._models).forEach((t=>e.push(this._models[t]))),e}$acceptNewModel(e){this._models[e.url]=new _(s.r.parse(e.url),e.lines,e.EOL,e.versionId)}$acceptModelChanged(e,t){if(!this._models[e])return;this._models[e].onEvents(t)}$acceptRemovedModel(e){this._models[e]&&delete this._models[e]}}class _ extends g{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){const t=[];for(let n=0;n<this._lines.length;n++){const i=this._lines[n],r=this.offsetAt(new o.y(n+1,1)),s=i.matchAll(e);for(const e of s)(e.index||0===e.index)&&(e.index=e.index+r),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){const n=(0,l.Th)(e.column,(0,l.Io)(t),this._lines[e.lineNumber-1],0);return n?new a.Q(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null}words(e){const t=this._lines,n=this._wordenize.bind(this);let i=0,r="",s=0,o=[];return{*[Symbol.iterator](){for(;;)if(s<o.length){const e=r.substring(o[s].start,o[s].end);s+=1,yield e}else{if(!(i<t.length))break;r=t[i],o=n(r,e),s=0,i+=1}}}}getLineWords(e,t){const n=this._lines[e-1],i=this._wordenize(n,t),r=[];for(const s of i)r.push({word:n.substring(s.start,s.end),startColumn:s.start+1,endColumn:s.end+1});return r}_wordenize(e,t){const n=[];let i;for(t.lastIndex=0;(i=t.exec(e))&&0!==i[0].length;)n.push({start:i.index,end:i.index+i[0].length});return n}getValueInRange(e){if((e=this._validateRange(e)).startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);const t=this._eol,n=e.startLineNumber-1,i=e.endLineNumber-1,r=[];r.push(this._lines[n].substring(e.startColumn-1));for(let s=n+1;s<i;s++)r.push(this._lines[s]);return r.push(this._lines[i].substring(0,e.endColumn-1)),r.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();const 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){const 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(!o.y.isIPosition(e))throw new Error("bad position");let{lineNumber:t,column:n}=e,i=!1;if(t<1)t=1,n=1,i=!0;else if(t>this._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,i=!0;else{const e=this._lines[t-1].length+1;n<1?(n=1,i=!0):n>e&&(n=e,i=!0)}return i?{lineNumber:t,column:n}:e}}},920:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IEditorWorkerService:()=>i});const i=(0,n(3591).u1)("editorWorkerService")},973:(e,t,n)=>{"use strict";n.d(t,{W:()=>s});var i=n(3069),r=n(6677);class s{static{this.zero=new s(0,0)}static betweenPositions(e,t){return e.lineNumber===t.lineNumber?new s(0,t.column-e.column):new s(t.lineNumber-e.lineNumber,t.column-1)}static ofRange(e){return s.betweenPositions(e.getStartPosition(),e.getEndPosition())}static ofText(e){let t=0,n=0;for(const i of e)"\n"===i?(t++,n=0):n++;return new s(t,n)}constructor(e,t){this.lineCount=e,this.columnCount=t}isGreaterThanOrEqualTo(e){return this.lineCount!==e.lineCount?this.lineCount>e.lineCount:this.columnCount>=e.columnCount}createRange(e){return 0===this.lineCount?new r.Q(e.lineNumber,e.column,e.lineNumber,e.column+this.columnCount):new r.Q(e.lineNumber,e.column,e.lineNumber+this.lineCount,this.columnCount+1)}addToPosition(e){return 0===this.lineCount?new i.y(e.lineNumber,e.column+this.columnCount):new i.y(e.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}}},1090:(e,t,n)=>{"use strict";n.d(t,{d:()=>i});class i{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}},1234:(e,t,n)=>{"use strict";n.d(t,{Jh:()=>o,vl:()=>f});var i=n(4383),r=n(1484),s=(n(8925),n(8381));var o;!function(e){function t(e){false}function n(e){return(t,n=null,i)=>{let r,s=!1;return r=e((e=>{if(!s)return r?r.dispose():s=!0,t.call(n,e)}),null,i),s&&r.dispose(),r}}function i(e,t,n){return o(((n,i=null,r)=>e((e=>n.call(i,t(e))),null,r)),n)}function s(e,t,n){return o(((n,i=null,r)=>e((e=>t(e)&&n.call(i,e)),null,r)),n)}function o(e,n){let i;const r={onWillAddFirstListener(){i=e(s.fire,s)},onDidRemoveLastListener(){i?.dispose()}};n||t();const s=new f(r);return n?.add(s),s.event}function a(e,n,i=100,r=!1,s=!1,o,a){let l,h,c,u,d=0;const g={leakWarningThreshold:o,onWillAddFirstListener(){l=e((e=>{d++,h=n(h,e),r&&!c&&(m.fire(h),h=void 0),u=()=>{const e=h;h=void 0,c=void 0,(!r||d>1)&&m.fire(e),d=0},"number"===typeof i?(clearTimeout(c),c=setTimeout(u,i)):void 0===c&&(c=0,queueMicrotask(u))}))},onWillRemoveListener(){s&&d>0&&u?.()},onDidRemoveLastListener(){u=void 0,l.dispose()}};a||t();const m=new f(g);return a?.add(m),m.event}e.None=()=>r.jG.None,e.defer=function(e,t){return a(e,(()=>{}),0,void 0,!0,void 0,t)},e.once=n,e.onceIf=function(t,n){return e.once(e.filter(t,n))},e.map=i,e.forEach=function(e,t,n){return o(((n,i=null,r)=>e((e=>{t(e),n.call(i,e)}),null,r)),n)},e.filter=s,e.signal=function(e){return e},e.any=function(...e){return(t,n=null,i)=>function(e,t){t instanceof Array?t.push(e):t&&t.add(e);return e}((0,r.qE)(...e.map((e=>e((e=>t.call(n,e)))))),i)},e.reduce=function(e,t,n,r){let s=n;return i(e,(e=>(s=t(s,e),s)),r)},e.debounce=a,e.accumulate=function(t,n=0,i){return e.debounce(t,((e,t)=>e?(e.push(t),e):[t]),n,void 0,!0,void 0,i)},e.latch=function(e,t=(e,t)=>e===t,n){let i,r=!0;return s(e,(e=>{const n=r||!t(e,i);return r=!1,i=e,n}),n)},e.split=function(t,n,i){return[e.filter(t,n,i),e.filter(t,(e=>!n(e)),i)]},e.buffer=function(e,t=!1,n=[],i){let r=n.slice(),s=e((e=>{r?r.push(e):a.fire(e)}));i&&i.add(s);const o=()=>{r?.forEach((e=>a.fire(e))),r=null},a=new f({onWillAddFirstListener(){s||(s=e((e=>a.fire(e))),i&&i.add(s))},onDidAddFirstListener(){r&&(t?setTimeout(o):o())},onDidRemoveLastListener(){s&&s.dispose(),s=null}});return i&&i.add(a),a.event},e.chain=function(e,t){return(n,i,r)=>{const s=t(new h);return e((function(e){const t=s.evaluate(e);t!==l&&n.call(i,t)}),void 0,r)}};const l=Symbol("HaltChainable");class h{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:l)),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,n=!0;return this.steps.push((i=>{const r=n||!e(i,t);return n=!1,t=i,r?i:l})),this}evaluate(e){for(const t of this.steps)if((e=t(e))===l)break;return e}}e.fromNodeEventEmitter=function(e,t,n=e=>e){const i=(...e)=>r.fire(n(...e)),r=new f({onWillAddFirstListener:()=>e.on(t,i),onDidRemoveLastListener:()=>e.removeListener(t,i)});return r.event},e.fromDOMEventEmitter=function(e,t,n=e=>e){const i=(...e)=>r.fire(n(...e)),r=new f({onWillAddFirstListener:()=>e.addEventListener(t,i),onDidRemoveLastListener:()=>e.removeEventListener(t,i)});return r.event},e.toPromise=function(e){return new Promise((t=>n(e)(t)))},e.fromPromise=function(e){const t=new f;return e.then((e=>{t.fire(e)}),(()=>{t.fire(void 0)})).finally((()=>{t.dispose()})),t.event},e.forward=function(e,t){return e((e=>t.fire(e)))},e.runAndSubscribe=function(e,t,n){return t(n),e((e=>t(e)))};class c{constructor(e,n){this._observable=e,this._counter=0,this._hasChanged=!1;const i={onWillAddFirstListener:()=>{e.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{e.removeObserver(this)}};n||t(),this.emitter=new f(i),n&&n.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,0===this._counter&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}e.fromObservable=function(e,t){return new c(e,t).emitter.event},e.fromObservableLight=function(e){return(t,n,i)=>{let s=0,o=!1;const a={beginUpdate(){s++},endUpdate(){s--,0===s&&(e.reportChanges(),o&&(o=!1,t.call(n)))},handlePossibleChange(){},handleChange(){o=!0}};e.addObserver(a),e.reportChanges();const l={dispose(){e.removeObserver(a)}};return i instanceof r.Cm?i.add(l):Array.isArray(i)&&i.push(l),l}}}(o||(o={}));class a{static{this.all=new Set}static{this._idPool=0}constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${a._idPool++}`,a.all.add(this)}start(e){this._stopWatch=new s.W,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}class l{static{this._idPool=1}constructor(e,t,n=(l._idPool++).toString(16).padStart(3,"0")){this._errorHandler=e,this.threshold=t,this.name=n,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(e,t){const n=this.threshold;if(n<=0||t<n)return;this._stacks||(this._stacks=new Map);const i=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,i+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=.5*n;const[e,i]=this.getMostFrequentStack(),r=`[${this.name}] potential listener LEAK detected, having ${t} listeners already. MOST frequent listener (${i}):`;console.warn(r),console.warn(e);const s=new c(r,e);this._errorHandler(s)}return()=>{const t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}getMostFrequentStack(){if(!this._stacks)return;let e,t=0;for(const[n,i]of this._stacks)(!e||t<i)&&(e=[n,i],t=i);return e}}class h{static create(){const e=new Error;return new h(e.stack??"")}constructor(e){this.value=e}print(){console.warn(this.value.split("\n").slice(2).join("\n"))}}class c extends Error{constructor(e,t){super(e),this.name="ListenerLeakError",this.stack=t}}class u extends Error{constructor(e,t){super(e),this.name="ListenerRefusalError",this.stack=t}}class d{constructor(e){this.value=e}}let g;class f{constructor(e){this._size=0,this._options=e,this._leakageMon=this._options?.leakWarningThreshold?new l(e?.onListenerError??i.dz,this._options?.leakWarningThreshold??-1):void 0,this._perfMon=this._options?._profName?new a(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,t,n)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const 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);const t=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],n=new u(`${e}. HINT: Stack shows most frequent listener (${t[1]}-times)`,t[0]);return(this._options?.onListenerError||i.dz)(n),r.jG.None}if(this._disposed)return r.jG.None;t&&(e=e.bind(t));const s=new d(e);let o;this._leakageMon&&this._size>=Math.ceil(.2*this._leakageMon.threshold)&&(s.stack=h.create(),o=this._leakageMon.check(s.stack,this._size+1)),this._listeners?this._listeners instanceof d?(this._deliveryQueue??=new m,this._listeners=[this._listeners,s]):this._listeners.push(s):(this._options?.onWillAddFirstListener?.(this),this._listeners=s,this._options?.onDidAddFirstListener?.(this)),this._size++;const a=(0,r.s)((()=>{g?.unregister(a),o?.(),this._removeListener(s)}));if(n instanceof r.Cm?n.add(a):Array.isArray(n)&&n.push(a),g){const e=(new Error).stack.split("\n").slice(2,3).join("\n").trim(),t=/(file:|vscode-file:\/\/vscode-app)?(\/[^:]*:\d+:\d+)/.exec(e);g.register(a,t?.[2]??e,a)}return a},this._event}_removeListener(e){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(1===this._size)return this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),void(this._size=0);const t=this._listeners,n=t.indexOf(e);if(-1===n)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,t[n]=void 0;const i=this._deliveryQueue.current===this;if(2*this._size<=t.length){let e=0;for(let n=0;n<t.length;n++)t[n]?t[e++]=t[n]:i&&(this._deliveryQueue.end--,e<this._deliveryQueue.i&&this._deliveryQueue.i--);t.length=e}}_deliver(e,t){if(!e)return;const n=this._options?.onListenerError||i.dz;if(n)try{e.value(t)}catch(r){n(r)}else e.value(t)}_deliverQueue(e){const 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 d)this._deliver(this._listeners,e);else{const t=this._deliveryQueue;t.enqueue(this,e,this._listeners.length),this._deliverQueue(t)}else;this._perfMon?.stop()}hasListeners(){return this._size>0}}class m{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}}},1484:(e,t,n)=>{"use strict";function i(e,t){const n=this;let i,r=!1;return function(){if(r)return i;if(r=!0,t)try{i=e.apply(n,arguments)}finally{t()}else i=e.apply(n,arguments);return i}}n.d(t,{jG:()=>g,$w:()=>m,Cm:()=>d,HE:()=>f,qE:()=>c,AS:()=>h,VD:()=>a,s:()=>u,Ay:()=>o});var r=n(2522);let s=null;function o(e){return s?.trackDisposable(e),e}function a(e){s?.markAsDisposed(e)}function l(e,t){s?.setParent(e,t)}function h(e){if(r.f.is(e)){const n=[];for(const i of e)if(i)try{i.dispose()}catch(t){n.push(t)}if(1===n.length)throw n[0];if(n.length>1)throw new AggregateError(n,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function c(...e){const t=u((()=>h(e)));return function(e,t){if(s)for(const n of e)s.setParent(n,t)}(e,t),t}function u(e){const t=o({dispose:i((()=>{a(t),e()}))});return t}class d{static{this.DISABLE_DISPOSED_WARNING=!1}constructor(){this._toDispose=new Set,this._isDisposed=!1,o(this)}dispose(){this._isDisposed||(a(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(0!==this._toDispose.size)try{h(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return l(e,this),this._isDisposed?d.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}deleteAndLeak(e){e&&this._toDispose.has(e)&&(this._toDispose.delete(e),l(e,null))}}class g{static{this.None=Object.freeze({dispose(){}})}constructor(){this._store=new d,o(this),l(this._store,this)}dispose(){a(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}class f{constructor(){this._isDisposed=!1,o(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){this._isDisposed||e===this._value||(this._value?.dispose(),e&&l(e,this),this._value=e)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,a(this),this._value?.dispose(),this._value=void 0}}class m{constructor(){this._store=new Map,this._isDisposed=!1,o(this)}dispose(){a(this),this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{h(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,t,n=!1){this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),n||this._store.get(e)?.dispose(),this._store.set(e,t)}deleteAndDispose(e){this._store.get(e)?.dispose(),this._store.delete(e)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}},1508:(e,t,n)=>{"use strict";n.d(t,{$X:()=>D,AV:()=>s,E_:()=>N,HG:()=>d,LJ:()=>L,LU:()=>B,NB:()=>l,OS:()=>h,Q_:()=>k,Ss:()=>M,UD:()=>f,Wv:()=>b,Z5:()=>w,_J:()=>A,aC:()=>T,bm:()=>a,eY:()=>c,jy:()=>o,km:()=>x,lT:()=>g,ne:()=>R,ns:()=>v,pc:()=>C,r_:()=>O,tk:()=>F,tl:()=>V,uz:()=>u,y_:()=>W,z_:()=>y});var i=n(1788),r=n(1090);function s(e){return!e||"string"!==typeof e||0===e.trim().length}function o(e){return e.replace(/[<>"'&]/g,(e=>{switch(e){case"<":return"<";case">":return">";case'"':return""";case"'":return"'";case"&":return"&"}return e}))}function a(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function l(e,t){if(!e||!t)return e;const n=t.length;if(0===n||0===e.length)return e;let i=0;for(;e.indexOf(t,i)===i;)i+=n;return e.substring(i)}function h(e,t,n={}){if(!e)throw new Error("Cannot create regex from empty string");t||(e=a(e)),n.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));let i="";return n.global&&(i+="g"),n.matchCase||(i+="i"),n.multiline&&(i+="m"),n.unicode&&(i+="u"),new RegExp(e,i)}function c(e){if("^"===e.source||"^$"===e.source||"$"===e.source||"^\\s*$"===e.source)return!1;return!(!e.exec("")||0!==e.lastIndex)}function u(e){return e.split(/\r\n|\r|\n/)}function d(e){for(let t=0,n=e.length;t<n;t++){const n=e.charCodeAt(t);if(32!==n&&9!==n)return t}return-1}function g(e,t=e.length-1){for(let n=t;n>=0;n--){const t=e.charCodeAt(n);if(32!==t&&9!==t)return n}return-1}function f(e,t){return e<t?-1:e>t?1:0}function m(e,t,n=0,i=e.length,r=0,s=t.length){for(;n<i&&r<s;n++,r++){const i=e.charCodeAt(n),s=t.charCodeAt(r);if(i<s)return-1;if(i>s)return 1}const o=i-n,a=s-r;return o<a?-1:o>a?1:0}function p(e,t,n=0,i=e.length,r=0,s=t.length){for(;n<i&&r<s;n++,r++){let o=e.charCodeAt(n),a=t.charCodeAt(r);if(o===a)continue;if(o>=128||a>=128)return m(e.toLowerCase(),t.toLowerCase(),n,i,r,s);_(o)&&(o-=32),_(a)&&(a-=32);const l=o-a;if(0!==l)return l}const o=i-n,a=s-r;return o<a?-1:o>a?1:0}function _(e){return e>=97&&e<=122}function b(e){return e>=65&&e<=90}function k(e,t){return e.length===t.length&&0===p(e,t)}function v(e,t){const n=t.length;return!(t.length>e.length)&&0===p(e,t,0,n)}function C(e){return 55296<=e&&e<=56319}function L(e){return 56320<=e&&e<=57343}function y(e,t){return t-56320+(e-55296<<10)+65536}function w(e,t,n){const i=e.charCodeAt(n);if(C(i)&&n+1<t){const t=e.charCodeAt(n+1);if(L(t))return y(i,t)}return i}class S{get offset(){return this._offset}constructor(e,t=0){this._str=e,this._len=e.length,this._offset=t}setOffset(e){this._offset=e}prevCodePoint(){const e=function(e,t){const n=e.charCodeAt(t-1);if(L(n)&&t>1){const i=e.charCodeAt(t-2);if(C(i))return y(i,n)}return n}(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){const e=w(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class x{get offset(){return this._iterator.offset}constructor(e,t=0){this._iterator=new S(e,t)}nextGraphemeLength(){const e=z.getInstance(),t=this._iterator,n=t.offset;let i=e.getGraphemeBreakType(t.nextCodePoint());for(;!t.eol();){const n=t.offset,r=e.getGraphemeBreakType(t.nextCodePoint());if(P(i,r)){t.setOffset(n);break}i=r}return t.offset-n}prevGraphemeLength(){const e=z.getInstance(),t=this._iterator,n=t.offset;let i=e.getGraphemeBreakType(t.prevCodePoint());for(;t.offset>0;){const n=t.offset,r=e.getGraphemeBreakType(t.prevCodePoint());if(P(r,i)){t.setOffset(n);break}i=r}return n-t.offset}eol(){return this._iterator.eol()}}let E;function N(e){return E||(E=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/),E.test(e)}const I=/^[\t\n\r\x20-\x7E]*$/;function T(e){return I.test(e)}const A=/[\u2028\u2029]/;function D(e){return A.test(e)}function R(e){return e>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function M(e){return e>=127462&&e<=127487||8986===e||8987===e||9200===e||9203===e||e>=9728&&e<=10175||11088===e||11093===e||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129008||e>=129280&&e<=129535||e>=129648&&e<=129782}const O=String.fromCharCode(65279);function B(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}function F(e){return(e%=52)<26?String.fromCharCode(97+e):String.fromCharCode(65+e-26)}function P(e,t){return 0===e?5!==t&&7!==t:(2!==e||3!==t)&&(4===e||2===e||3===e||(4===t||2===t||3===t||(8!==e||8!==t&&9!==t&&11!==t&&12!==t)&&((11!==e&&9!==e||9!==t&&10!==t)&&((12!==e&&10!==e||10!==t)&&(5!==t&&13!==t&&(7!==t&&(1!==e&&((13!==e||14!==t)&&(6!==e||6!==t)))))))))}class z{static{this._INSTANCE=null}static getInstance(){return z._INSTANCE||(z._INSTANCE=new z),z._INSTANCE}constructor(){this._data=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]")}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;const t=this._data,n=t.length/3;let i=1;for(;i<=n;)if(e<t[3*i])i*=2;else{if(!(e>t[3*i+1]))return t[3*i+2];i=2*i+1}return 0}}class V{static{this.ambiguousCharacterData=new r.d((()=>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,8218,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,8242,96,1370,96,1523,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,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,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,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,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,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,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,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,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,71922,67,71913,67,65315,67,8557,67,8450,67,8493,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,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,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,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,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,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,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,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,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,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,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,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,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,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,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,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,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,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,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,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,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,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,71919,87,71910,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,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,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,66293,90,71909,90,65338,90,8484,90,8488,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,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,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,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,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,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,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,65283,35,65292,44,65307,59],"ko":[8211,45,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,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,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,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[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,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,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,65283,35,65307,59]}')))}static{this.cache=new i.o5({getCacheKey:JSON.stringify},(e=>{function t(e){const t=new Map;for(let n=0;n<e.length;n+=2)t.set(e[n],e[n+1]);return t}function n(e,t){if(!e)return t;const n=new Map;for(const[i,r]of e)t.has(i)&&n.set(i,r);return n}const i=this.ambiguousCharacterData.value;let r,s=e.filter((e=>!e.startsWith("_")&&e in i));0===s.length&&(s=["_default"]);for(const a of s){r=n(r,t(i[a]))}const o=function(e,t){const n=new Map(e);for(const[i,r]of t)n.set(i,r);return n}(t(i._common),r);return new V(o)}))}static getInstance(e){return V.cache.get(Array.from(e))}static{this._locales=new r.d((()=>Object.keys(V.ambiguousCharacterData.value).filter((e=>!e.startsWith("_")))))}static getLocales(){return V._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())}}class W{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,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,12288,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]")}static{this._data=void 0}static getData(){return this._data||(this._data=new Set(W.getRawData())),this._data}static isInvisibleCharacter(e){return W.getData().has(e)}static get codePoints(){return W.getData()}}},1646:(e,t,n)=>{"use strict";n.d(t,{Fd:()=>c});var i=n(9861),r=n(1234),s=n(631),o=n(8209),a=n(4001),l=n(8748),h=n(6359);const c={Configuration:"base.contributions.configuration"},u={properties:{},patternProperties:{}},d={properties:{},patternProperties:{}},g={properties:{},patternProperties:{}},f={properties:{},patternProperties:{}},m={properties:{},patternProperties:{}},p={properties:{},patternProperties:{}},_="vscode://schemas/settings/resourceLanguage",b=h.O.as(l.F.JSONContribution);const k="\\[([^\\]]+)\\]",v=new RegExp(k,"g"),C=`^(${k})+$`,L=new RegExp(C);function y(e){const t=[];if(L.test(e)){let n=v.exec(e);for(;n?.length;){const i=n[1].trim();i&&t.push(i),n=v.exec(e)}}return(0,i.dM)(t)}const w=new class{constructor(){this.registeredConfigurationDefaults=[],this.overrideIdentifiers=new Set,this._onDidSchemaChange=new r.vl,this._onDidUpdateConfiguration=new r.vl,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:o.kg("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!0,allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.policyConfigurations=new Map,this.excludedConfigurationProperties={},b.registerSchema(_,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(e,t=!0){this.registerConfigurations([e],t)}registerConfigurations(e,t=!0){const n=new Set;this.doRegisterConfigurations(e,t,n),b.registerSchema(_,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:n})}registerDefaultConfigurations(e){const t=new Set;this.doRegisterDefaultConfigurations(e,t),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:t,defaultsOverrides:!0})}doRegisterDefaultConfigurations(e,t){this.registeredConfigurationDefaults.push(...e);const n=[];for(const{overrides:i,source:r}of e)for(const e in i){t.add(e);const s=this.configurationDefaultsOverrides.get(e)??this.configurationDefaultsOverrides.set(e,{configurationDefaultOverrides:[]}).get(e),o=i[e];if(s.configurationDefaultOverrides.push({value:o,source:r}),L.test(e)){const t=this.mergeDefaultConfigurationsForOverrideIdentifier(e,o,r,s.configurationDefaultOverrideValue);if(!t)continue;s.configurationDefaultOverrideValue=t,this.updateDefaultOverrideProperty(e,t,r),n.push(...y(e))}else{const t=this.mergeDefaultConfigurationsForConfigurationProperty(e,o,r,s.configurationDefaultOverrideValue);if(!t)continue;s.configurationDefaultOverrideValue=t;const n=this.configurationProperties[e];n&&(this.updatePropertyDefaultValue(e,n),this.updateSchema(e,n))}}this.doRegisterOverrideIdentifiers(n)}updateDefaultOverrideProperty(e,t,n){const i={type:"object",default:t.value,description:o.kg("defaultLanguageConfiguration.description","Configure settings to be overridden for the {0} language.",(0,a.Mo)(e)),$ref:_,defaultDefaultValue:t.value,source:n,defaultValueSource:n};this.configurationProperties[e]=i,this.defaultLanguageConfigurationOverridesNode.properties[e]=i}mergeDefaultConfigurationsForOverrideIdentifier(e,t,n,i){const r=i?.value||{},o=i?.source??new Map;if(o instanceof Map){for(const e of Object.keys(t)){const i=t[e];if(s.Gv(i)&&(s.b0(r[e])||s.Gv(r[e]))){if(r[e]={...r[e]??{},...i},n)for(const t in i)o.set(`${e}.${t}`,n)}else r[e]=i,n?o.set(e,n):o.delete(e)}return{value:r,source:o}}console.error("objectConfigurationSources is not a Map")}mergeDefaultConfigurationsForConfigurationProperty(e,t,n,i){const r=this.configurationProperties[e],o=i?.value??r?.defaultDefaultValue;let a=n;if(s.Gv(t)&&(void 0!==r&&"object"===r.type||void 0===r&&(s.b0(o)||s.Gv(o)))){if(a=i?.source??new Map,!(a instanceof Map))return void console.error("defaultValueSource is not a Map");for(const i in t)n&&a.set(`${e}.${i}`,n);t={...s.Gv(o)?o:{},...t}}return{value:t,source:a}}registerOverrideIdentifiers(e){this.doRegisterOverrideIdentifiers(e),this._onDidSchemaChange.fire()}doRegisterOverrideIdentifiers(e){for(const t of e)this.overrideIdentifiers.add(t);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(e,t,n){e.forEach((e=>{this.validateAndRegisterProperties(e,t,e.extensionInfo,e.restrictedProperties,void 0,n),this.configurationContributors.push(e),this.registerJSONConfiguration(e)}))}validateAndRegisterProperties(e,t=!0,n,i,r=3,o){r=s.z(e.scope)?r:e.scope;const a=e.properties;if(a)for(const h in a){const e=a[h];t&&S(h,e)?delete a[h]:(e.source=n,e.defaultDefaultValue=a[h].default,this.updatePropertyDefaultValue(h,e),L.test(h)?e.scope=void 0:(e.scope=s.z(e.scope)?r:e.scope,e.restricted=s.z(e.restricted)?!!i?.includes(h):e.restricted),!a[h].hasOwnProperty("included")||a[h].included?(this.configurationProperties[h]=a[h],a[h].policy?.name&&this.policyConfigurations.set(a[h].policy.name,h),!a[h].deprecationMessage&&a[h].markdownDeprecationMessage&&(a[h].deprecationMessage=a[h].markdownDeprecationMessage),o.add(h)):(this.excludedConfigurationProperties[h]=a[h],delete a[h]))}const l=e.allOf;if(l)for(const s of l)this.validateAndRegisterProperties(s,t,n,i,r,o)}getConfigurationProperties(){return this.configurationProperties}getPolicyConfigurations(){return this.policyConfigurations}registerJSONConfiguration(e){const t=e=>{const n=e.properties;if(n)for(const t in n)this.updateSchema(t,n[t]);const i=e.allOf;i?.forEach(t)};t(e)}updateSchema(e,t){switch(u.properties[e]=t,t.scope){case 1:d.properties[e]=t;break;case 2:g.properties[e]=t;break;case 6:f.properties[e]=t;break;case 3:m.properties[e]=t;break;case 4:p.properties[e]=t;break;case 5:p.properties[e]=t,this.resourceLanguageSettingsSchema.properties[e]=t}}updateOverridePropertyPatternKey(){for(const e of this.overrideIdentifiers.values()){const t=`[${e}]`,n={type:"object",description:o.kg("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:o.kg("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:_};this.updatePropertyDefaultValue(t,n),u.properties[t]=n,d.properties[t]=n,g.properties[t]=n,f.properties[t]=n,m.properties[t]=n,p.properties[t]=n}}registerOverridePropertyPatternKey(){const e={type:"object",description:o.kg("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:o.kg("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:_};u.patternProperties[C]=e,d.patternProperties[C]=e,g.patternProperties[C]=e,f.patternProperties[C]=e,m.patternProperties[C]=e,p.patternProperties[C]=e,this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,t){const n=this.configurationDefaultsOverrides.get(e)?.configurationDefaultOverrideValue;let i,r;!n||t.disallowConfigurationDefault&&n.source||(i=n.value,r=n.source),s.b0(i)&&(i=t.defaultDefaultValue,r=void 0),s.b0(i)&&(i=function(e){switch(Array.isArray(e)?e[0]:e){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}(t.type)),t.default=i,t.defaultValueSource=r}};function S(e,t){return e.trim()?L.test(e)?o.kg("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e):void 0!==w.getConfigurationProperties()[e]?o.kg("config.property.duplicate","Cannot register '{0}'. This property is already registered.",e):t.policy?.name&&void 0!==w.getPolicyConfigurations().get(t.policy?.name)?o.kg("config.policy.duplicate","Cannot register '{0}'. The associated policy {1} is already registered with {2}.",e,t.policy?.name,w.getPolicyConfigurations().get(t.policy?.name)):null:o.kg("config.property.empty","Cannot register an empty property")}h.O.add(c.Configuration,w)},1674:(e,t,n)=>{"use strict";n.d(t,{$l:()=>a,Gs:()=>d,MB:()=>o,Sw:()=>c,bb:()=>h,gN:()=>l,pJ:()=>u});var i=n(1090);const r="undefined"!==typeof Buffer;new i.d((()=>new Uint8Array(256)));let s;class o{static wrap(e){return r&&!Buffer.isBuffer(e)&&(e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),new o(e)}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}toString(){return r?this.buffer.toString():(s||(s=new TextDecoder),s.decode(this.buffer))}}function a(e,t){return(e[t+0]|0)>>>0|e[t+1]<<8>>>0}function l(e,t,n){e[n+0]=255&t,t>>>=8,e[n+1]=255&t}function h(e,t){return e[t]*2**24+65536*e[t+1]+256*e[t+2]+e[t+3]}function c(e,t,n){e[n+3]=t,t>>>=8,e[n+2]=t,t>>>=8,e[n+1]=t,t>>>=8,e[n]=t}function u(e,t){return e[t]}function d(e,t,n){e[n]=t}},1773:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DefaultModelSHA1Computer:()=>Lr,ModelService:()=>Cr});var i=n(1234),r=n(1484),s=n(8067),o=n(9861),a=n(7661),l=n(4383),h=n(1508),c=n(9400),u=n(4454);class d{static _nextVisibleColumn(e,t,n){return 9===e?d.nextRenderTabStop(t,n):h.ne(e)||h.Ss(e)?t+2:t+1}static visibleColumnFromColumn(e,t,n){const i=Math.min(t-1,e.length),r=e.substring(0,i),s=new h.km(r);let o=0;for(;!s.eol();){const e=h.Z5(r,i,s.offset);s.nextGraphemeLength(),o=this._nextVisibleColumn(e,o,n)}return o}static columnFromVisibleColumn(e,t,n){if(t<=0)return 1;const i=e.length,r=new h.km(e);let s=0,o=1;for(;!r.eol();){const a=h.Z5(e,i,r.offset);r.nextGraphemeLength();const l=this._nextVisibleColumn(a,s,n),c=r.offset+1;if(l>=t){return l-t<t-s?c:o}s=l,o=c}return i+1}static nextRenderTabStop(e,t){return e+t-e%t}static nextIndentTabStop(e,t){return e+t-e%t}static prevRenderTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}static prevIndentTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}}function g(e,t,n){let i=h.HG(e);return-1===i&&(i=e.length),function(e,t,n){let i=0;for(let s=0;s<e.length;s++)"\t"===e.charAt(s)?i=d.nextIndentTabStop(i,t):i++;let r="";if(!n){const e=Math.floor(i/t);i%=t;for(let t=0;t<e;t++)r+="\t"}for(let s=0;s<i;s++)r+=" ";return r}(e.substring(0,i),t,n)+e.substring(i)}var f=n(3069),m=n(6677),p=n(5326);const _={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}};var b,k=n(154),v=n(6486);!function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(b||(b={}));class C{constructor(e){if(this._neutralCharacter=null,this._neutralCharacterSearched=!1,this.open=e.open,this.close=e.close,this._inString=!0,this._inComment=!0,this._inRegEx=!0,Array.isArray(e.notIn))for(let t=0,n=e.notIn.length;t<n;t++){switch(e.notIn[t]){case"string":this._inString=!1;break;case"comment":this._inComment=!1;break;case"regex":this._inRegEx=!1}}}isOK(e){switch(e){case 0:return!0;case 1:return this._inComment;case 2:return this._inString;case 3:return this._inRegEx}}shouldAutoClose(e,t){if(0===e.getTokenCount())return!0;const n=e.findTokenIndexAtOffset(t-2),i=e.getStandardTokenType(n);return this.isOK(i)}_findNeutralCharacterInRange(e,t){for(let n=e;n<=t;n++){const e=String.fromCharCode(n);if(!this.open.includes(e)&&!this.close.includes(e))return e}return null}findNeutralCharacter(){return this._neutralCharacterSearched||(this._neutralCharacterSearched=!0,this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(48,57)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(97,122)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(65,90))),this._neutralCharacter}}class L{constructor(e){this.autoClosingPairsOpenByStart=new Map,this.autoClosingPairsOpenByEnd=new Map,this.autoClosingPairsCloseByStart=new Map,this.autoClosingPairsCloseByEnd=new Map,this.autoClosingPairsCloseSingleChar=new Map;for(const t of e)y(this.autoClosingPairsOpenByStart,t.open.charAt(0),t),y(this.autoClosingPairsOpenByEnd,t.open.charAt(t.open.length-1),t),y(this.autoClosingPairsCloseByStart,t.close.charAt(0),t),y(this.autoClosingPairsCloseByEnd,t.close.charAt(t.close.length-1),t),1===t.close.length&&1===t.open.length&&y(this.autoClosingPairsCloseSingleChar,t.close,t)}}function y(e,t,n){e.has(t)?e.get(t).push(n):e.set(t,[n])}class w{static{this.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES=";:.,=}])> \n\t"}static{this.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS="'\"`;:.,=}])> \n\t"}constructor(e){if(e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map((e=>new C(e))):e.brackets?this._autoClosingPairs=e.brackets.map((e=>new C({open:e[0],close:e[1]}))):this._autoClosingPairs=[],e.__electricCharacterSupport&&e.__electricCharacterSupport.docComment){const t=e.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new C({open:t.open,close:t.close||""}))}this._autoCloseBeforeForQuotes="string"===typeof e.autoCloseBefore?e.autoCloseBefore:w.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES,this._autoCloseBeforeForBrackets="string"===typeof e.autoCloseBefore?e.autoCloseBefore:w.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS,this._surroundingPairs=e.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(e){return e?this._autoCloseBeforeForQuotes:this._autoCloseBeforeForBrackets}getSurroundingPairs(){return this._surroundingPairs}}function S(e){return 0!==(3&e)}var x=n(1674);let E,N,I;function T(){return E||(E=new TextDecoder("UTF-16LE")),E}function A(){return I||(I=s.cm()?T():(N||(N=new TextDecoder("UTF-16BE")),N)),I}function D(e,t,n){const i=new Uint16Array(e.buffer,t,n);return n>0&&(65279===i[0]||65534===i[0])?function(e,t,n){const i=[];let r=0;for(let s=0;s<n;s++){const n=x.$l(e,t);t+=2,i[r++]=String.fromCharCode(n)}return i.join("")}(e,t,n):T().decode(i)}class R{constructor(e,t,n,i,r,s){this._richEditBracketBrand=void 0,this.languageId=e,this.index=t,this.open=n,this.close=i,this.forwardRegex=r,this.reversedRegex=s,this._openSet=R._toSet(this.open),this._closeSet=R._toSet(this.close)}isOpen(e){return this._openSet.has(e)}isClose(e){return this._closeSet.has(e)}static _toSet(e){const t=new Set;for(const n of e)t.add(n);return t}}class M{constructor(e,t){this._richEditBracketsBrand=void 0;const n=function(e){const t=e.length;e=e.map((e=>[e[0].toLowerCase(),e[1].toLowerCase()]));const n=[];for(let o=0;o<t;o++)n[o]=o;const i=(e,t)=>{const[n,i]=e,[r,s]=t;return n===r||n===s||i===r||i===s},r=(e,i)=>{const r=Math.min(e,i),s=Math.max(e,i);for(let o=0;o<t;o++)n[o]===s&&(n[o]=r)};for(let o=0;o<t;o++){const s=e[o];for(let a=o+1;a<t;a++)i(s,e[a])&&r(n[o],n[a])}const s=[];for(let o=0;o<t;o++){const i=[],r=[];for(let s=0;s<t;s++)if(n[s]===o){const[t,n]=e[s];i.push(t),r.push(n)}i.length>0&&s.push({open:i,close:r})}return s}(t);this.brackets=n.map(((t,i)=>new R(e,i,t.open,t.close,function(e,t,n,i){let r=[];r=r.concat(e),r=r.concat(t);for(let s=0,o=r.length;s<o;s++)O(r[s],n,i,r);return r=F(r),r.sort(B),r.reverse(),z(r)}(t.open,t.close,n,i),function(e,t,n,i){let r=[];r=r.concat(e),r=r.concat(t);for(let s=0,o=r.length;s<o;s++)O(r[s],n,i,r);return r=F(r),r.sort(B),r.reverse(),z(r.map(V))}(t.open,t.close,n,i)))),this.forwardRegex=function(e){let t=[];for(const n of e){for(const e of n.open)t.push(e);for(const e of n.close)t.push(e)}return t=F(t),z(t)}(this.brackets),this.reversedRegex=function(e){let t=[];for(const n of e){for(const e of n.open)t.push(e);for(const e of n.close)t.push(e)}return t=F(t),z(t.map(V))}(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(const i of this.brackets){for(const e of i.open)this.textIsBracket[e]=i,this.textIsOpenBracket[e]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,e.length);for(const e of i.close)this.textIsBracket[e]=i,this.textIsOpenBracket[e]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,e.length)}}}function O(e,t,n,i){for(let r=0,s=t.length;r<s;r++){if(r===n)continue;const s=t[r];for(const t of s.open)t.indexOf(e)>=0&&i.push(t);for(const t of s.close)t.indexOf(e)>=0&&i.push(t)}}function B(e,t){return e.length-t.length}function F(e){if(e.length<=1)return e;const t=[],n=new Set;for(const i of e)n.has(i)||(t.push(i),n.add(i));return t}function P(e){const t=/^[\w ]+$/.test(e);return e=h.bm(e),t?`\\b${e}\\b`:e}function z(e,t){const n=`(${e.map(P).join(")|(")})`;return h.OS(n,!0,t)}const V=function(){let e=null,t=null;return function(n){return e!==n&&(e=n,t=function(e){const t=new Uint16Array(e.length);let n=0;for(let i=e.length-1;i>=0;i--)t[n++]=e.charCodeAt(i);return A().decode(t)}(e)),t}}();class W{static _findPrevBracketInText(e,t,n,i){const r=n.match(e);if(!r)return null;const s=n.length-(r.index||0),o=r[0].length,a=i+s;return new m.Q(t,a-o+1,t,a+1)}static findPrevBracketInRange(e,t,n,i,r){const s=V(n).substring(n.length-r,n.length-i);return this._findPrevBracketInText(e,t,s,i)}static findNextBracketInText(e,t,n,i){const r=n.match(e);if(!r)return null;const s=r.index||0,o=r[0].length;if(0===o)return null;const a=i+s;return new m.Q(t,a+1,t,a+1+o)}static findNextBracketInRange(e,t,n,i,r){const s=n.substring(i,r);return this.findNextBracketInText(e,t,s,i)}}class q{constructor(e){this._richEditBrackets=e}getElectricCharacters(){const e=[];if(this._richEditBrackets)for(const t of this._richEditBrackets.brackets)for(const n of t.close){const t=n.charAt(n.length-1);e.push(t)}return(0,o.dM)(e)}onElectricCharacter(e,t,n){if(!this._richEditBrackets||0===this._richEditBrackets.brackets.length)return null;const i=t.findTokenIndexAtOffset(n-1);if(S(t.getStandardTokenType(i)))return null;const r=this._richEditBrackets.reversedRegex,s=t.getLineContent().substring(0,n-1)+e,o=W.findPrevBracketInRange(r,1,s,0,s.length);if(!o)return null;const a=s.substring(o.startColumn-1,o.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[a])return null;const l=t.getActualLineContentBefore(o.startColumn-1);return/^\s*$/.test(l)?{matchOpenBracket:a}:null}}function H(e){return e.global&&(e.lastIndex=0),!0}class U{constructor(e){this._indentationRules=e}shouldIncrease(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&H(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(e))}shouldDecrease(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&H(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(e))}shouldIndentNextLine(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&H(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(e))}shouldIgnore(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&H(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(e))}getIndentMetadata(e){let t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t}}class j{constructor(e){(e=e||{}).brackets=e.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],e.brackets.forEach((e=>{const t=j._createOpenBracketRegExp(e[0]),n=j._createCloseBracketRegExp(e[1]);t&&n&&this._brackets.push({open:e[0],openRegExp:t,close:e[1],closeRegExp:n})})),this._regExpRules=e.onEnterRules||[]}onEnter(e,t,n,i){if(e>=3)for(let r=0,s=this._regExpRules.length;r<s;r++){const e=this._regExpRules[r];if([{reg:e.beforeText,text:n},{reg:e.afterText,text:i},{reg:e.previousLineText,text:t}].every((e=>!e.reg||(e.reg.lastIndex=0,e.reg.test(e.text)))))return e.action}if(e>=2&&n.length>0&&i.length>0)for(let r=0,s=this._brackets.length;r<s;r++){const e=this._brackets[r];if(e.openRegExp.test(n)&&e.closeRegExp.test(i))return{indentAction:b.IndentOutdent}}if(e>=2&&n.length>0)for(let r=0,s=this._brackets.length;r<s;r++){if(this._brackets[r].openRegExp.test(n))return{indentAction:b.Indent}}return null}static _createOpenBracketRegExp(e){let t=h.bm(e);return/\B/.test(t.charAt(0))||(t="\\b"+t),t+="\\s*$",j._safeRegExp(t)}static _createCloseBracketRegExp(e){let t=h.bm(e);return/\B/.test(t.charAt(t.length-1))||(t+="\\b"),t="^\\s*"+t,j._safeRegExp(t)}static _safeRegExp(e){try{return new RegExp(e)}catch(t){return(0,l.dz)(t),null}}}var K=n(3591),$=n(4001),G=n(4621),Q=n(3941),Y=n(1788);class X{constructor(e,t){this.languageId=e;const n=t.brackets?Z(t.brackets):[],i=new Y.VV((e=>{const t=new Set;return{info:new ee(this,e,t),closing:t}})),r=new Y.VV((e=>{const t=new Set,n=new Set;return{info:new te(this,e,t,n),opening:t,openingColorized:n}}));for(const[o,a]of n){const e=i.get(o),t=r.get(a);e.closing.add(t.info),t.opening.add(e.info)}const s=t.colorizedBracketPairs?Z(t.colorizedBracketPairs):n.filter((e=>!("<"===e[0]&&">"===e[1])));for(const[o,a]of s){const e=i.get(o),t=r.get(a);e.closing.add(t.info),t.openingColorized.add(e.info),t.opening.add(e.info)}this._openingBrackets=new Map([...i.cachedValues].map((([e,t])=>[e,t.info]))),this._closingBrackets=new Map([...r.cachedValues].map((([e,t])=>[e,t.info])))}get openingBrackets(){return[...this._openingBrackets.values()]}get closingBrackets(){return[...this._closingBrackets.values()]}getOpeningBracketInfo(e){return this._openingBrackets.get(e)}getClosingBracketInfo(e){return this._closingBrackets.get(e)}getBracketInfo(e){return this.getOpeningBracketInfo(e)||this.getClosingBracketInfo(e)}getBracketRegExp(e){return z(Array.from([...this._openingBrackets.keys(),...this._closingBrackets.keys()]),e)}}function Z(e){return e.filter((([e,t])=>""!==e&&""!==t))}class J{constructor(e,t){this.config=e,this.bracketText=t}get languageId(){return this.config.languageId}}class ee extends J{constructor(e,t,n){super(e,t),this.openedBrackets=n,this.isOpeningBracket=!0}}class te extends J{constructor(e,t,n,i){super(e,t),this.openingBrackets=n,this.openingColorizedBrackets=i,this.isOpeningBracket=!1}closes(e){return e.config===this.config&&this.openingBrackets.has(e)}closesColorized(e){return e.config===this.config&&this.openingColorizedBrackets.has(e)}getOpeningBrackets(){return[...this.openingBrackets]}}var ne=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},ie=function(e,t){return function(n,i){t(n,i,e)}};class re{constructor(e){this.languageId=e}affects(e){return!this.languageId||this.languageId===e}}const se=(0,K.u1)("languageConfigurationService");let oe=class extends r.jG{constructor(e,t){super(),this.configurationService=e,this.languageService=t,this._registry=this._register(new ge),this.onDidChangeEmitter=this._register(new i.vl),this.onDidChange=this.onDidChangeEmitter.event,this.configurations=new Map;const n=new Set(Object.values(ae));this._register(this.configurationService.onDidChangeConfiguration((e=>{const t=e.change.keys.some((e=>n.has(e))),i=e.change.overrides.filter((([e,t])=>t.some((e=>n.has(e))))).map((([e])=>e));if(t)this.configurations.clear(),this.onDidChangeEmitter.fire(new re(void 0));else for(const n of i)this.languageService.isRegisteredLanguageId(n)&&(this.configurations.delete(n),this.onDidChangeEmitter.fire(new re(n)))}))),this._register(this._registry.onDidChange((e=>{this.configurations.delete(e.languageId),this.onDidChangeEmitter.fire(new re(e.languageId))})))}register(e,t,n){return this._registry.register(e,t,n)}getLanguageConfiguration(e){let t=this.configurations.get(e);return t||(t=function(e,t,n,i){let r=t.getLanguageConfiguration(e);if(!r){if(!i.isRegisteredLanguageId(e))return new fe(e,{});r=new fe(e,{})}const s=function(e,t){const n=t.getValue(ae.brackets,{overrideIdentifier:e}),i=t.getValue(ae.colorizedBracketPairs,{overrideIdentifier:e});return{brackets:le(n),colorizedBracketPairs:le(i)}}(r.languageId,n),o=ce([r.underlyingConfig,s]);return new fe(r.languageId,o)}(e,this._registry,this.configurationService,this.languageService),this.configurations.set(e,t)),t}};oe=ne([ie(0,$.pG),ie(1,k.L)],oe);const ae={brackets:"editor.language.brackets",colorizedBracketPairs:"editor.language.colorizedBracketPairs"};function le(e){if(Array.isArray(e))return e.map((e=>{if(Array.isArray(e)&&2===e.length)return[e[0],e[1]]})).filter((e=>!!e))}class he{constructor(e){this.languageId=e,this._resolved=null,this._entries=[],this._order=0,this._resolved=null}register(e,t){const n=new ue(e,t,++this._order);return this._entries.push(n),this._resolved=null,(0,r.s)((()=>{for(let e=0;e<this._entries.length;e++)if(this._entries[e]===n){this._entries.splice(e,1),this._resolved=null;break}}))}getResolvedConfiguration(){if(!this._resolved){const e=this._resolve();e&&(this._resolved=new fe(this.languageId,e))}return this._resolved}_resolve(){return 0===this._entries.length?null:(this._entries.sort(ue.cmp),ce(this._entries.map((e=>e.configuration))))}}function ce(e){let t={comments:void 0,brackets:void 0,wordPattern:void 0,indentationRules:void 0,onEnterRules:void 0,autoClosingPairs:void 0,surroundingPairs:void 0,autoCloseBefore:void 0,folding:void 0,colorizedBracketPairs:void 0,__electricCharacterSupport:void 0};for(const n of e)t={comments:n.comments||t.comments,brackets:n.brackets||t.brackets,wordPattern:n.wordPattern||t.wordPattern,indentationRules:n.indentationRules||t.indentationRules,onEnterRules:n.onEnterRules||t.onEnterRules,autoClosingPairs:n.autoClosingPairs||t.autoClosingPairs,surroundingPairs:n.surroundingPairs||t.surroundingPairs,autoCloseBefore:n.autoCloseBefore||t.autoCloseBefore,folding:n.folding||t.folding,colorizedBracketPairs:n.colorizedBracketPairs||t.colorizedBracketPairs,__electricCharacterSupport:n.__electricCharacterSupport||t.__electricCharacterSupport};return t}class ue{constructor(e,t,n){this.configuration=e,this.priority=t,this.order=n}static cmp(e,t){return e.priority===t.priority?e.order-t.order:e.priority-t.priority}}class de{constructor(e){this.languageId=e}}class ge extends r.jG{constructor(){super(),this._entries=new Map,this._onDidChange=this._register(new i.vl),this.onDidChange=this._onDidChange.event,this._register(this.register(Q.vH,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],colorizedBracketPairs:[],folding:{offSide:!0}},0))}register(e,t,n=0){let i=this._entries.get(e);i||(i=new he(e),this._entries.set(e,i));const s=i.register(t,n);return this._onDidChange.fire(new de(e)),(0,r.s)((()=>{s.dispose(),this._onDidChange.fire(new de(e))}))}getLanguageConfiguration(e){const t=this._entries.get(e);return t?.getResolvedConfiguration()||null}}class fe{constructor(e,t){this.languageId=e,this.underlyingConfig=t,this._brackets=null,this._electricCharacter=null,this._onEnterSupport=this.underlyingConfig.brackets||this.underlyingConfig.indentationRules||this.underlyingConfig.onEnterRules?new j(this.underlyingConfig):null,this.comments=fe._handleComments(this.underlyingConfig),this.characterPair=new w(this.underlyingConfig),this.wordDefinition=this.underlyingConfig.wordPattern||v.Ld,this.indentationRules=this.underlyingConfig.indentationRules,this.underlyingConfig.indentationRules?this.indentRulesSupport=new U(this.underlyingConfig.indentationRules):this.indentRulesSupport=null,this.foldingRules=this.underlyingConfig.folding||{},this.bracketsNew=new X(e,this.underlyingConfig)}getWordDefinition(){return(0,v.Io)(this.wordDefinition)}get brackets(){return!this._brackets&&this.underlyingConfig.brackets&&(this._brackets=new M(this.languageId,this.underlyingConfig.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new q(this.brackets)),this._electricCharacter}onEnter(e,t,n,i){return this._onEnterSupport?this._onEnterSupport.onEnter(e,t,n,i):null}getAutoClosingPairs(){return new L(this.characterPair.getAutoClosingPairs())}getAutoCloseBeforeSet(e){return this.characterPair.getAutoCloseBeforeSet(e)}getSurroundingPairs(){return this.characterPair.getSurroundingPairs()}static _handleComments(e){const t=e.comments;if(!t)return null;const n={};if(t.lineComment&&(n.lineCommentToken=t.lineComment),t.blockComment){const[e,i]=t.blockComment;n.blockCommentStartToken=e,n.blockCommentEndToken=i}return n}}(0,G.v)(se,oe,1);var me=n(6223);class pe{constructor(e,t,n,i){this.range=e,this.nestingLevel=t,this.nestingLevelOfEqualBracketType=n,this.isInvalid=i}}class _e{constructor(e,t,n,i,r,s){this.range=e,this.openingBracketRange=t,this.closingBracketRange=n,this.nestingLevel=i,this.nestingLevelOfEqualBracketType=r,this.bracketPairNode=s}get openingBracketInfo(){return this.bracketPairNode.openingBracket.bracketInfo}}class be extends _e{constructor(e,t,n,i,r,s,o){super(e,t,n,i,r,s),this.minVisibleColumnIndentation=o}}var ke=n(973);function ve(e){return 0===e}const Ce=2**26;function Le(e,t){return e*Ce+t}function ye(e){const t=e,n=Math.floor(t/Ce),i=t-n*Ce;return new ke.W(n,i)}function we(e,t){let n=e+t;return t>=Ce&&(n-=e%Ce),n}function Se(e,t){return e.reduce(((e,n)=>we(e,t(n))),0)}function xe(e,t){return e===t}function Ee(e,t){const n=e,i=t;if(i-n<=0)return 0;const r=Math.floor(n/Ce),s=Math.floor(i/Ce),o=i-s*Ce;if(r===s){return Le(0,o-(n-r*Ce))}return Le(s-r,o)}function Ne(e,t){return e<t}function Ie(e,t){return e<=t}function Te(e,t){return e>=t}function Ae(e){return Le(e.lineNumber-1,e.column-1)}function De(e,t){const n=e,i=Math.floor(n/Ce),r=n-i*Ce,s=t,o=Math.floor(s/Ce),a=s-o*Ce;return new m.Q(i+1,r+1,o+1,a+1)}class Re{static fromModelContentChanges(e){return e.map((e=>{const t=m.Q.lift(e.range);return new Re(Ae(t.getStartPosition()),Ae(t.getEndPosition()),function(e){const t=(0,h.uz)(e);return Le(t.length-1,t[t.length-1].length)}(e.text))})).reverse()}constructor(e,t,n){this.startOffset=e,this.endOffset=t,this.newLength=n}toString(){return`[${ye(this.startOffset)}...${ye(this.endOffset)}) -> ${ye(this.newLength)}`}}class Me{constructor(e){this.nextEditIdx=0,this.deltaOldToNewLineCount=0,this.deltaOldToNewColumnCount=0,this.deltaLineIdxInOld=-1,this.edits=e.map((e=>Oe.from(e)))}getOffsetBeforeChange(e){return this.adjustNextEdit(e),this.translateCurToOld(e)}getDistanceToNextChange(e){this.adjustNextEdit(e);const t=this.edits[this.nextEditIdx],n=t?this.translateOldToCur(t.offsetObj):null;return null===n?null:Ee(e,n)}translateOldToCur(e){return e.lineCount===this.deltaLineIdxInOld?Le(e.lineCount+this.deltaOldToNewLineCount,e.columnCount+this.deltaOldToNewColumnCount):Le(e.lineCount+this.deltaOldToNewLineCount,e.columnCount)}translateCurToOld(e){const t=ye(e);return t.lineCount-this.deltaOldToNewLineCount===this.deltaLineIdxInOld?Le(t.lineCount-this.deltaOldToNewLineCount,t.columnCount-this.deltaOldToNewColumnCount):Le(t.lineCount-this.deltaOldToNewLineCount,t.columnCount)}adjustNextEdit(e){for(;this.nextEditIdx<this.edits.length;){const t=this.edits[this.nextEditIdx],n=this.translateOldToCur(t.endOffsetAfterObj);if(!Ie(n,e))break;{this.nextEditIdx++;const e=ye(n),i=ye(this.translateOldToCur(t.endOffsetBeforeObj)),r=e.lineCount-i.lineCount;this.deltaOldToNewLineCount+=r;const s=this.deltaLineIdxInOld===t.endOffsetBeforeObj.lineCount?this.deltaOldToNewColumnCount:0,o=e.columnCount-i.columnCount;this.deltaOldToNewColumnCount=s+o,this.deltaLineIdxInOld=t.endOffsetBeforeObj.lineCount}}}}class Oe{static from(e){return new Oe(e.startOffset,e.endOffset,e.newLength)}constructor(e,t,n){this.endOffsetBeforeObj=ye(t),this.endOffsetAfterObj=ye(we(e,n)),this.offsetObj=ye(e)}}const Be=[];class Fe{static{this.cache=new Array(129)}static create(e,t){if(e<=128&&0===t.length){let n=Fe.cache[e];return n||(n=new Fe(e,t),Fe.cache[e]=n),n}return new Fe(e,t)}static{this.empty=Fe.create(0,Be)}static getEmpty(){return this.empty}constructor(e,t){this.items=e,this.additionalItems=t}add(e,t){const n=t.getKey(e);let i=n>>5;if(0===i){const e=1<<n|this.items;return e===this.items?this:Fe.create(e,this.additionalItems)}i--;const r=this.additionalItems.slice(0);for(;r.length<i;)r.push(0);return r[i]|=1<<(31&n),Fe.create(this.items,r)}merge(e){const t=this.items|e.items;if(this.additionalItems===Be&&e.additionalItems===Be)return t===this.items?this:t===e.items?e:Fe.create(t,Be);const n=[];for(let i=0;i<Math.max(this.additionalItems.length,e.additionalItems.length);i++){const t=this.additionalItems[i]||0,r=e.additionalItems[i]||0;n.push(t|r)}return Fe.create(t,n)}intersects(e){if(0!==(this.items&e.items))return!0;for(let t=0;t<Math.min(this.additionalItems.length,e.additionalItems.length);t++)if(0!==(this.additionalItems[t]&e.additionalItems[t]))return!0;return!1}}const Pe={getKey:e=>e};class ze{constructor(){this.items=new Map}getKey(e){let t=this.items.get(e);return void 0===t&&(t=this.items.size,this.items.set(e,t)),t}}class Ve{get length(){return this._length}constructor(e){this._length=e}}class We extends Ve{static create(e,t,n){let i=e.length;return t&&(i=we(i,t.length)),n&&(i=we(i,n.length)),new We(i,e,t,n,t?t.missingOpeningBracketIds:Fe.getEmpty())}get kind(){return 2}get listHeight(){return 0}get childrenLength(){return 3}getChild(e){switch(e){case 0:return this.openingBracket;case 1:return this.child;case 2:return this.closingBracket}throw new Error("Invalid child index")}get children(){const e=[];return e.push(this.openingBracket),this.child&&e.push(this.child),this.closingBracket&&e.push(this.closingBracket),e}constructor(e,t,n,i,r){super(e),this.openingBracket=t,this.child=n,this.closingBracket=i,this.missingOpeningBracketIds=r}canBeReused(e){return null!==this.closingBracket&&!e.intersects(this.missingOpeningBracketIds)}deepClone(){return new We(this.length,this.openingBracket.deepClone(),this.child&&this.child.deepClone(),this.closingBracket&&this.closingBracket.deepClone(),this.missingOpeningBracketIds)}computeMinIndentation(e,t){return this.child?this.child.computeMinIndentation(we(e,this.openingBracket.length),t):Number.MAX_SAFE_INTEGER}}class qe extends Ve{static create23(e,t,n,i=!1){let r=e.length,s=e.missingOpeningBracketIds;if(e.listHeight!==t.listHeight)throw new Error("Invalid list heights");if(r=we(r,t.length),s=s.merge(t.missingOpeningBracketIds),n){if(e.listHeight!==n.listHeight)throw new Error("Invalid list heights");r=we(r,n.length),s=s.merge(n.missingOpeningBracketIds)}return i?new Ue(r,e.listHeight+1,e,t,n,s):new He(r,e.listHeight+1,e,t,n,s)}static getEmpty(){return new Ke(0,0,[],Fe.getEmpty())}get kind(){return 4}get missingOpeningBracketIds(){return this._missingOpeningBracketIds}constructor(e,t,n){super(e),this.listHeight=t,this._missingOpeningBracketIds=n,this.cachedMinIndentation=-1}throwIfImmutable(){}makeLastElementMutable(){this.throwIfImmutable();const e=this.childrenLength;if(0===e)return;const t=this.getChild(e-1),n=4===t.kind?t.toMutable():t;return t!==n&&this.setChild(e-1,n),n}makeFirstElementMutable(){this.throwIfImmutable();if(0===this.childrenLength)return;const e=this.getChild(0),t=4===e.kind?e.toMutable():e;return e!==t&&this.setChild(0,t),t}canBeReused(e){if(e.intersects(this.missingOpeningBracketIds))return!1;if(0===this.childrenLength)return!1;let t=this;for(;4===t.kind;){const e=t.childrenLength;if(0===e)throw new l.D7;t=t.getChild(e-1)}return t.canBeReused(e)}handleChildrenChanged(){this.throwIfImmutable();const e=this.childrenLength;let t=this.getChild(0).length,n=this.getChild(0).missingOpeningBracketIds;for(let i=1;i<e;i++){const e=this.getChild(i);t=we(t,e.length),n=n.merge(e.missingOpeningBracketIds)}this._length=t,this._missingOpeningBracketIds=n,this.cachedMinIndentation=-1}computeMinIndentation(e,t){if(-1!==this.cachedMinIndentation)return this.cachedMinIndentation;let n=Number.MAX_SAFE_INTEGER,i=e;for(let r=0;r<this.childrenLength;r++){const e=this.getChild(r);e&&(n=Math.min(n,e.computeMinIndentation(i,t)),i=we(i,e.length))}return this.cachedMinIndentation=n,n}}class He extends qe{get childrenLength(){return null!==this._item3?3:2}getChild(e){switch(e){case 0:return this._item1;case 1:return this._item2;case 2:return this._item3}throw new Error("Invalid child index")}setChild(e,t){switch(e){case 0:return void(this._item1=t);case 1:return void(this._item2=t);case 2:return void(this._item3=t)}throw new Error("Invalid child index")}get children(){return this._item3?[this._item1,this._item2,this._item3]:[this._item1,this._item2]}get item1(){return this._item1}get item2(){return this._item2}get item3(){return this._item3}constructor(e,t,n,i,r,s){super(e,t,s),this._item1=n,this._item2=i,this._item3=r}deepClone(){return new He(this.length,this.listHeight,this._item1.deepClone(),this._item2.deepClone(),this._item3?this._item3.deepClone():null,this.missingOpeningBracketIds)}appendChildOfSameHeight(e){if(this._item3)throw new Error("Cannot append to a full (2,3) tree node");this.throwIfImmutable(),this._item3=e,this.handleChildrenChanged()}unappendChild(){if(!this._item3)throw new Error("Cannot remove from a non-full (2,3) tree node");this.throwIfImmutable();const e=this._item3;return this._item3=null,this.handleChildrenChanged(),e}prependChildOfSameHeight(e){if(this._item3)throw new Error("Cannot prepend to a full (2,3) tree node");this.throwIfImmutable(),this._item3=this._item2,this._item2=this._item1,this._item1=e,this.handleChildrenChanged()}unprependChild(){if(!this._item3)throw new Error("Cannot remove from a non-full (2,3) tree node");this.throwIfImmutable();const e=this._item1;return this._item1=this._item2,this._item2=this._item3,this._item3=null,this.handleChildrenChanged(),e}toMutable(){return this}}class Ue extends He{toMutable(){return new He(this.length,this.listHeight,this.item1,this.item2,this.item3,this.missingOpeningBracketIds)}throwIfImmutable(){throw new Error("this instance is immutable")}}class je extends qe{get childrenLength(){return this._children.length}getChild(e){return this._children[e]}setChild(e,t){this._children[e]=t}get children(){return this._children}constructor(e,t,n,i){super(e,t,i),this._children=n}deepClone(){const e=new Array(this._children.length);for(let t=0;t<this._children.length;t++)e[t]=this._children[t].deepClone();return new je(this.length,this.listHeight,e,this.missingOpeningBracketIds)}appendChildOfSameHeight(e){this.throwIfImmutable(),this._children.push(e),this.handleChildrenChanged()}unappendChild(){this.throwIfImmutable();const e=this._children.pop();return this.handleChildrenChanged(),e}prependChildOfSameHeight(e){this.throwIfImmutable(),this._children.unshift(e),this.handleChildrenChanged()}unprependChild(){this.throwIfImmutable();const e=this._children.shift();return this.handleChildrenChanged(),e}toMutable(){return this}}class Ke extends je{toMutable(){return new je(this.length,this.listHeight,[...this.children],this.missingOpeningBracketIds)}throwIfImmutable(){throw new Error("this instance is immutable")}}const $e=[];class Ge extends Ve{get listHeight(){return 0}get childrenLength(){return 0}getChild(e){return null}get children(){return $e}deepClone(){return this}}class Qe extends Ge{get kind(){return 0}get missingOpeningBracketIds(){return Fe.getEmpty()}canBeReused(e){return!0}computeMinIndentation(e,t){const n=ye(e),i=(0===n.columnCount?n.lineCount:n.lineCount+1)+1,r=(s=we(e,this.length),Math.floor(s/Ce)+1);var s;let o=Number.MAX_SAFE_INTEGER;for(let a=i;a<=r;a++){const e=t.getLineFirstNonWhitespaceColumn(a),n=t.getLineContent(a);if(0===e)continue;const i=d.visibleColumnFromColumn(n,e,t.getOptions().tabSize);o=Math.min(o,i)}return o}}class Ye extends Ge{static create(e,t,n){return new Ye(e,t,n)}get kind(){return 1}get missingOpeningBracketIds(){return Fe.getEmpty()}constructor(e,t,n){super(e),this.bracketInfo=t,this.bracketIds=n}get text(){return this.bracketInfo.bracketText}get languageId(){return this.bracketInfo.languageId}canBeReused(e){return!1}computeMinIndentation(e,t){return Number.MAX_SAFE_INTEGER}}class Xe extends Ge{get kind(){return 3}constructor(e,t){super(t),this.missingOpeningBracketIds=e}canBeReused(e){return!e.intersects(this.missingOpeningBracketIds)}computeMinIndentation(e,t){return Number.MAX_SAFE_INTEGER}}var Ze=n(5982);class Je{constructor(e,t,n,i,r){this.length=e,this.kind=t,this.bracketId=n,this.bracketIds=i,this.astNode=r}}class et{constructor(e,t){this.textModel=e,this.bracketTokens=t,this.reader=new tt(this.textModel,this.bracketTokens),this._offset=0,this.didPeek=!1,this.peeked=null,this.textBufferLineCount=e.getLineCount(),this.textBufferLastLineLength=e.getLineLength(this.textBufferLineCount)}get offset(){return this._offset}get length(){return Le(this.textBufferLineCount-1,this.textBufferLastLineLength)}skip(e){this.didPeek=!1,this._offset=we(this._offset,e);const t=ye(this._offset);this.reader.setPosition(t.lineCount,t.columnCount)}read(){let e;return this.peeked?(this.didPeek=!1,e=this.peeked):e=this.reader.read(),e&&(this._offset=we(this._offset,e.length)),e}peek(){return this.didPeek||(this.peeked=this.reader.read(),this.didPeek=!0),this.peeked}}class tt{constructor(e,t){this.textModel=e,this.bracketTokens=t,this.lineIdx=0,this.line=null,this.lineCharOffset=0,this.lineTokens=null,this.lineTokenOffset=0,this.peekedToken=null,this.textBufferLineCount=e.getLineCount(),this.textBufferLastLineLength=e.getLineLength(this.textBufferLineCount)}setPosition(e,t){e===this.lineIdx?(this.lineCharOffset=t,null!==this.line&&(this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset))):(this.lineIdx=e,this.lineCharOffset=t,this.line=null),this.peekedToken=null}read(){if(this.peekedToken){const e=this.peekedToken;return this.peekedToken=null,this.lineCharOffset+=e.length,e}if(this.lineIdx>this.textBufferLineCount-1||this.lineIdx===this.textBufferLineCount-1&&this.lineCharOffset>=this.textBufferLastLineLength)return null;null===this.line&&(this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.line=this.lineTokens.getLineContent(),this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset));const e=this.lineIdx,t=this.lineCharOffset;let n=0;for(;;){const i=this.lineTokens,r=i.getCount();let s=null;if(this.lineTokenOffset<r){const o=i.getMetadata(this.lineTokenOffset);for(;this.lineTokenOffset+1<r&&o===i.getMetadata(this.lineTokenOffset+1);)this.lineTokenOffset++;const a=0===Ze.x.getTokenType(o),l=Ze.x.containsBalancedBrackets(o),h=i.getEndOffset(this.lineTokenOffset);if(l&&a&&this.lineCharOffset<h){const e=i.getLanguageId(this.lineTokenOffset),t=this.line.substring(this.lineCharOffset,h),n=this.bracketTokens.getSingleLanguageBracketTokens(e),r=n.regExpGlobal;if(r){r.lastIndex=0;const e=r.exec(t);e&&(s=n.getToken(e[0]),s&&(this.lineCharOffset+=e.index))}}if(n+=h-this.lineCharOffset,s){if(e!==this.lineIdx||t!==this.lineCharOffset){this.peekedToken=s;break}return this.lineCharOffset+=s.length,s}this.lineTokenOffset++,this.lineCharOffset=h}else{if(this.lineIdx===this.textBufferLineCount-1)break;if(this.lineIdx++,this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.lineTokenOffset=0,this.line=this.lineTokens.getLineContent(),this.lineCharOffset=0,n+=33,n>1e3)break}if(n>1500)break}const i=(r=e,s=t,o=this.lineIdx,a=this.lineCharOffset,r!==o?Le(o-r,a):Le(0,a-s));var r,s,o,a;return new Je(i,0,-1,Fe.getEmpty(),new Qe(i))}}class nt{constructor(e,t){this.text=e,this._offset=0,this.idx=0;const n=t.getRegExpStr(),i=n?new RegExp(n+"|\n","gi"):null,r=[];let s,o=0,a=0,l=0,h=0;const c=[];for(let g=0;g<60;g++)c.push(new Je(Le(0,g),0,-1,Fe.getEmpty(),new Qe(Le(0,g))));const u=[];for(let g=0;g<60;g++)u.push(new Je(Le(1,g),0,-1,Fe.getEmpty(),new Qe(Le(1,g))));if(i)for(i.lastIndex=0;null!==(s=i.exec(e));){const e=s.index,n=s[0];if("\n"===n)o++,a=e+1;else{if(l!==e){let t;if(h===o){const n=e-l;if(n<c.length)t=c[n];else{const e=Le(0,n);t=new Je(e,0,-1,Fe.getEmpty(),new Qe(e))}}else{const n=o-h,i=e-a;if(1===n&&i<u.length)t=u[i];else{const e=Le(n,i);t=new Je(e,0,-1,Fe.getEmpty(),new Qe(e))}}r.push(t)}r.push(t.getToken(n)),l=e+n.length,h=o}}const d=e.length;if(l!==d){const e=h===o?Le(0,d-l):Le(o-h,d-a);r.push(new Je(e,0,-1,Fe.getEmpty(),new Qe(e)))}this.length=Le(o,d-a),this.tokens=r}get offset(){return this._offset}read(){return this.tokens[this.idx++]||null}peek(){return this.tokens[this.idx]||null}skip(e){throw new l.EM}}class it{static createFromLanguage(e,t){function n(e){return t.getKey(`${e.languageId}:::${e.bracketText}`)}const i=new Map;for(const r of e.bracketsNew.openingBrackets){const e=Le(0,r.bracketText.length),t=n(r),s=Fe.getEmpty().add(t,Pe);i.set(r.bracketText,new Je(e,1,t,s,Ye.create(e,r,s)))}for(const r of e.bracketsNew.closingBrackets){const e=Le(0,r.bracketText.length);let t=Fe.getEmpty();const s=r.getOpeningBrackets();for(const i of s)t=t.add(n(i),Pe);i.set(r.bracketText,new Je(e,2,n(s[0]),t,Ye.create(e,r,t)))}return new it(i)}constructor(e){this.map=e,this.hasRegExp=!1,this._regExpGlobal=null}getRegExpStr(){if(this.isEmpty)return null;{const e=[...this.map.keys()];return e.sort(),e.reverse(),e.map((e=>function(e){let t=(0,h.bm)(e);/^[\w ]+/.test(e)&&(t=`\\b${t}`);/[\w ]+$/.test(e)&&(t=`${t}\\b`);return t}(e))).join("|")}}get regExpGlobal(){if(!this.hasRegExp){const e=this.getRegExpStr();this._regExpGlobal=e?new RegExp(e,"gi"):null,this.hasRegExp=!0}return this._regExpGlobal}getToken(e){return this.map.get(e.toLowerCase())}findClosingTokenText(e){for(const[t,n]of this.map)if(2===n.kind&&n.bracketIds.intersects(e))return t}get isEmpty(){return 0===this.map.size}}class rt{constructor(e,t){this.denseKeyProvider=e,this.getLanguageConfiguration=t,this.languageIdToBracketTokens=new Map}didLanguageChange(e){return this.languageIdToBracketTokens.has(e)}getSingleLanguageBracketTokens(e){let t=this.languageIdToBracketTokens.get(e);return t||(t=it.createFromLanguage(this.getLanguageConfiguration(e),this.denseKeyProvider),this.languageIdToBracketTokens.set(e,t)),t}}function st(e,t=!1){if(0===e.length)return null;if(1===e.length)return e[0];let n=e.length;for(;n>3;){const i=n>>1;for(let r=0;r<i;r++){const i=r<<1;e[r]=qe.create23(e[i],e[i+1],i+3===n?e[i+2]:null,t)}n=i}return qe.create23(e[0],e[1],n>=3?e[2]:null,t)}function ot(e,t){return Math.abs(e.listHeight-t.listHeight)}function at(e,t){return e.listHeight===t.listHeight?qe.create23(e,t,null,!1):e.listHeight>t.listHeight?function(e,t){let n=e=e.toMutable();const i=[];let r;for(;;){if(t.listHeight===n.listHeight){r=t;break}if(4!==n.kind)throw new Error("unexpected");i.push(n),n=n.makeLastElementMutable()}for(let s=i.length-1;s>=0;s--){const e=i[s];r?e.childrenLength>=3?r=qe.create23(e.unappendChild(),r,null,!1):(e.appendChildOfSameHeight(r),r=void 0):e.handleChildrenChanged()}return r?qe.create23(e,r,null,!1):e}(e,t):function(e,t){let n=e=e.toMutable();const i=[];for(;t.listHeight!==n.listHeight;){if(4!==n.kind)throw new Error("unexpected");i.push(n),n=n.makeFirstElementMutable()}let r=t;for(let s=i.length-1;s>=0;s--){const e=i[s];r?e.childrenLength>=3?r=qe.create23(r,e.unprependChild(),null,!1):(e.prependChildOfSameHeight(r),r=void 0):e.handleChildrenChanged()}return r?qe.create23(r,e,null,!1):e}(t,e)}class lt{constructor(e){this.lastOffset=0,this.nextNodes=[e],this.offsets=[0],this.idxs=[]}readLongestNodeAt(e,t){if(Ne(e,this.lastOffset))throw new Error("Invalid offset");for(this.lastOffset=e;;){const n=ct(this.nextNodes);if(!n)return;const i=ct(this.offsets);if(Ne(e,i))return;if(Ne(i,e))if(we(i,n.length)<=e)this.nextNodeAfterCurrent();else{const e=ht(n);-1!==e?(this.nextNodes.push(n.getChild(e)),this.offsets.push(i),this.idxs.push(e)):this.nextNodeAfterCurrent()}else{if(t(n))return this.nextNodeAfterCurrent(),n;{const e=ht(n);if(-1===e)return void this.nextNodeAfterCurrent();this.nextNodes.push(n.getChild(e)),this.offsets.push(i),this.idxs.push(e)}}}}nextNodeAfterCurrent(){for(;;){const e=ct(this.offsets),t=ct(this.nextNodes);if(this.nextNodes.pop(),this.offsets.pop(),0===this.idxs.length)break;const n=ct(this.nextNodes),i=ht(n,this.idxs[this.idxs.length-1]);if(-1!==i){this.nextNodes.push(n.getChild(i)),this.offsets.push(we(e,t.length)),this.idxs[this.idxs.length-1]=i;break}this.idxs.pop()}}}function ht(e,t=-1){for(;;){if(++t>=e.childrenLength)return-1;if(e.getChild(t))return t}}function ct(e){return e.length>0?e[e.length-1]:void 0}function ut(e,t,n,i){return new dt(e,t,n,i).parseDocument()}class dt{constructor(e,t,n,i){if(this.tokenizer=e,this.createImmutableLists=i,this._itemsConstructed=0,this._itemsFromCache=0,n&&i)throw new Error("Not supported");this.oldNodeReader=n?new lt(n):void 0,this.positionMapper=new Me(t)}parseDocument(){this._itemsConstructed=0,this._itemsFromCache=0;let e=this.parseList(Fe.getEmpty(),0);return e||(e=qe.getEmpty()),e}parseList(e,t){const n=[];for(;;){let i=this.tryReadChildFromCache(e);if(!i){const n=this.tokenizer.peek();if(!n||2===n.kind&&n.bracketIds.intersects(e))break;i=this.parseChild(e,t+1)}4===i.kind&&0===i.childrenLength||n.push(i)}const i=this.oldNodeReader?function(e){if(0===e.length)return null;if(1===e.length)return e[0];let t=0;function n(){if(t>=e.length)return null;const n=t,i=e[n].listHeight;for(t++;t<e.length&&e[t].listHeight===i;)t++;return t-n>=2?st(0===n&&t===e.length?e:e.slice(n,t),!1):e[n]}let i=n(),r=n();if(!r)return i;for(let s=n();s;s=n())ot(i,r)<=ot(r,s)?(i=at(i,r),r=s):r=at(r,s);return at(i,r)}(n):st(n,this.createImmutableLists);return i}tryReadChildFromCache(e){if(this.oldNodeReader){const t=this.positionMapper.getDistanceToNextChange(this.tokenizer.offset);if(null===t||!ve(t)){const n=this.oldNodeReader.readLongestNodeAt(this.positionMapper.getOffsetBeforeChange(this.tokenizer.offset),(n=>{if(null!==t&&!Ne(n.length,t))return!1;return n.canBeReused(e)}));if(n)return this._itemsFromCache++,this.tokenizer.skip(n.length),n}}}parseChild(e,t){this._itemsConstructed++;const n=this.tokenizer.read();switch(n.kind){case 2:return new Xe(n.bracketIds,n.length);case 0:return n.astNode;case 1:{if(t>300)return new Qe(n.length);const i=e.merge(n.bracketIds),r=this.parseList(i,t+1),s=this.tokenizer.peek();return s&&2===s.kind&&(s.bracketId===n.bracketId||s.bracketIds.intersects(n.bracketIds))?(this.tokenizer.read(),We.create(n.astNode,r,s.astNode)):We.create(n.astNode,r,null)}default:throw new Error("unexpected")}}}function gt(e,t){if(0===e.length)return t;if(0===t.length)return e;const n=new o.j3(mt(e)),i=mt(t);i.push({modified:!1,lengthBefore:void 0,lengthAfter:void 0});let r=n.dequeue();function s(e){if(void 0===e){const e=n.takeWhile((e=>!0))||[];return r&&e.unshift(r),e}const t=[];for(;r&&!ve(e);){const[i,s]=r.splitAt(e);t.push(i),e=Ee(i.lengthAfter,e),r=s??n.dequeue()}return ve(e)||t.push(new ft(!1,e,e)),t}const a=[];function l(e,t,n){if(a.length>0&&xe(a[a.length-1].endOffset,e)){const e=a[a.length-1];a[a.length-1]=new Re(e.startOffset,t,we(e.newLength,n))}else a.push({startOffset:e,endOffset:t,newLength:n})}let h=0;for(const o of i){const e=s(o.lengthBefore);if(o.modified){const t=we(h,Se(e,(e=>e.lengthBefore)));l(h,t,o.lengthAfter),h=t}else for(const t of e){const e=h;h=we(h,t.lengthBefore),t.modified&&l(e,h,t.lengthAfter)}}return a}class ft{constructor(e,t,n){this.modified=e,this.lengthBefore=t,this.lengthAfter=n}splitAt(e){const t=Ee(e,this.lengthAfter);return xe(t,0)?[this,void 0]:this.modified?[new ft(this.modified,this.lengthBefore,e),new ft(this.modified,0,t)]:[new ft(this.modified,e,e),new ft(this.modified,t,t)]}toString(){return`${this.modified?"M":"U"}:${ye(this.lengthBefore)} -> ${ye(this.lengthAfter)}`}}function mt(e){const t=[];let n=0;for(const i of e){const e=Ee(n,i.startOffset);ve(e)||t.push(new ft(!1,e,e));const r=Ee(i.startOffset,i.endOffset);t.push(new ft(!0,r,i.newLength)),n=i.endOffset}return t}class pt extends r.jG{didLanguageChange(e){return this.brackets.didLanguageChange(e)}constructor(e,t){if(super(),this.textModel=e,this.getLanguageConfiguration=t,this.didChangeEmitter=new i.vl,this.denseKeyProvider=new ze,this.brackets=new rt(this.denseKeyProvider,this.getLanguageConfiguration),this.onDidChange=this.didChangeEmitter.event,this.queuedTextEditsForInitialAstWithoutTokens=[],this.queuedTextEdits=[],e.tokenization.hasTokens)2===e.tokenization.backgroundTokenizationState?(this.initialAstWithoutTokens=void 0,this.astWithTokens=this.parseDocumentFromTextBuffer([],void 0,!1)):(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer([],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens);else{const e=this.brackets.getSingleLanguageBracketTokens(this.textModel.getLanguageId()),t=new nt(this.textModel.getValue(),e);this.initialAstWithoutTokens=ut(t,[],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens}}handleDidChangeBackgroundTokenizationState(){if(2===this.textModel.tokenization.backgroundTokenizationState){const e=void 0===this.initialAstWithoutTokens;this.initialAstWithoutTokens=void 0,e||this.didChangeEmitter.fire()}}handleDidChangeTokens({ranges:e}){const t=e.map((e=>new Re(Le(e.fromLineNumber-1,0),Le(e.toLineNumber,0),Le(e.toLineNumber-e.fromLineNumber+1,0))));this.handleEdits(t,!0),this.initialAstWithoutTokens||this.didChangeEmitter.fire()}handleContentChanged(e){const t=Re.fromModelContentChanges(e.changes);this.handleEdits(t,!1)}handleEdits(e,t){const n=gt(this.queuedTextEdits,e);this.queuedTextEdits=n,this.initialAstWithoutTokens&&!t&&(this.queuedTextEditsForInitialAstWithoutTokens=gt(this.queuedTextEditsForInitialAstWithoutTokens,e))}flushQueue(){this.queuedTextEdits.length>0&&(this.astWithTokens=this.parseDocumentFromTextBuffer(this.queuedTextEdits,this.astWithTokens,!1),this.queuedTextEdits=[]),this.queuedTextEditsForInitialAstWithoutTokens.length>0&&(this.initialAstWithoutTokens&&(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer(this.queuedTextEditsForInitialAstWithoutTokens,this.initialAstWithoutTokens,!1)),this.queuedTextEditsForInitialAstWithoutTokens=[])}parseDocumentFromTextBuffer(e,t,n){const i=t;return ut(new et(this.textModel,this.brackets),e,i,n)}getBracketsInRange(e,t){this.flushQueue();const n=Le(e.startLineNumber-1,e.startColumn-1),i=Le(e.endLineNumber-1,e.endColumn-1);return new o.c1((e=>{const r=this.initialAstWithoutTokens||this.astWithTokens;kt(r,0,r.length,n,i,e,0,0,new Map,t)}))}getBracketPairsInRange(e,t){this.flushQueue();const n=Ae(e.getStartPosition()),i=Ae(e.getEndPosition());return new o.c1((e=>{const r=this.initialAstWithoutTokens||this.astWithTokens,s=new vt(e,t,this.textModel);Ct(r,0,r.length,n,i,s,0,new Map)}))}getFirstBracketAfter(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return bt(t,0,t.length,Ae(e))}getFirstBracketBefore(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return _t(t,0,t.length,Ae(e))}}function _t(e,t,n,i){if(4===e.kind||2===e.kind){const r=[];for(const i of e.children)n=we(t,i.length),r.push({nodeOffsetStart:t,nodeOffsetEnd:n}),t=n;for(let t=r.length-1;t>=0;t--){const{nodeOffsetStart:n,nodeOffsetEnd:s}=r[t];if(Ne(n,i)){const r=_t(e.children[t],n,s,i);if(r)return r}}return null}if(3===e.kind)return null;if(1===e.kind){const i=De(t,n);return{bracketInfo:e.bracketInfo,range:i}}return null}function bt(e,t,n,i){if(4===e.kind||2===e.kind){for(const r of e.children){if(Ne(i,n=we(t,r.length))){const e=bt(r,t,n,i);if(e)return e}t=n}return null}if(3===e.kind)return null;if(1===e.kind){const i=De(t,n);return{bracketInfo:e.bracketInfo,range:i}}return null}function kt(e,t,n,i,r,s,o,a,l,h,c=!1){if(o>200)return!0;e:for(;;)switch(e.kind){case 4:{const a=e.childrenLength;for(let c=0;c<a;c++){const a=e.getChild(c);if(a){if(n=we(t,a.length),Ie(t,r)&&Te(n,i)){if(Te(n,r)){e=a;continue e}if(!kt(a,t,n,i,r,s,o,0,l,h))return!1}t=n}}return!0}case 2:{const c=!h||!e.closingBracket||e.closingBracket.bracketInfo.closesColorized(e.openingBracket.bracketInfo);let u=0;if(l){let t=l.get(e.openingBracket.text);void 0===t&&(t=0),u=t,c&&(t++,l.set(e.openingBracket.text,t))}const d=e.childrenLength;for(let g=0;g<d;g++){const d=e.getChild(g);if(d){if(n=we(t,d.length),Ie(t,r)&&Te(n,i)){if(Te(n,r)&&1!==d.kind){e=d,c?(o++,a=u+1):a=u;continue e}if(c||1!==d.kind||!e.closingBracket){if(!kt(d,t,n,i,r,s,c?o+1:o,c?u+1:u,l,h,!e.closingBracket))return!1}}t=n}}return l?.set(e.openingBracket.text,u),!0}case 3:{const e=De(t,n);return s(new pe(e,o-1,0,!0))}case 1:{const e=De(t,n);return s(new pe(e,o-1,a-1,c))}case 0:return!0}}class vt{constructor(e,t,n){this.push=e,this.includeMinIndentation=t,this.textModel=n}}function Ct(e,t,n,i,r,s,o,a){if(o>200)return!0;let l=!0;if(2===e.kind){let h=0;if(a){let t=a.get(e.openingBracket.text);void 0===t&&(t=0),h=t,t++,a.set(e.openingBracket.text,t)}const c=we(t,e.openingBracket.length);let u=-1;if(s.includeMinIndentation&&(u=e.computeMinIndentation(t,s.textModel)),l=s.push(new be(De(t,n),De(t,c),e.closingBracket?De(we(c,e.child?.length||0),n):void 0,o,h,e,u)),t=c,l&&e.child){const h=e.child;if(n=we(t,h.length),Ie(t,r)&&Te(n,i)&&(l=Ct(h,t,n,i,r,s,o+1,a),!l))return!1}a?.set(e.openingBracket.text,h)}else{let n=t;for(const t of e.children){const e=n;if(n=we(n,t.length),Ie(e,r)&&Ie(i,n)&&(l=Ct(t,e,n,i,r,s,o,a),!l))return!1}}return l}class Lt extends r.jG{get canBuildAST(){return this.textModel.getValueLength()<=5e6}constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t,this.bracketPairsTree=this._register(new r.HE),this.onDidChangeEmitter=new i.vl,this.onDidChange=this.onDidChangeEmitter.event,this.bracketsRequested=!1}handleLanguageConfigurationServiceChange(e){e.languageId&&!this.bracketPairsTree.value?.object.didLanguageChange(e.languageId)||(this.bracketPairsTree.clear(),this.updateBracketPairsTree())}handleDidChangeOptions(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeLanguage(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeContent(e){this.bracketPairsTree.value?.object.handleContentChanged(e)}handleDidChangeBackgroundTokenizationState(){this.bracketPairsTree.value?.object.handleDidChangeBackgroundTokenizationState()}handleDidChangeTokens(e){this.bracketPairsTree.value?.object.handleDidChangeTokens(e)}updateBracketPairsTree(){if(this.bracketsRequested&&this.canBuildAST){if(!this.bracketPairsTree.value){const n=new r.Cm;this.bracketPairsTree.value=(e=n.add(new pt(this.textModel,(e=>this.languageConfigurationService.getLanguageConfiguration(e)))),t=n,{object:e,dispose:()=>t?.dispose()}),n.add(this.bracketPairsTree.value.object.onDidChange((e=>this.onDidChangeEmitter.fire(e)))),this.onDidChangeEmitter.fire()}}else this.bracketPairsTree.value&&(this.bracketPairsTree.clear(),this.onDidChangeEmitter.fire());var e,t}getBracketPairsInRange(e){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketPairsInRange(e,!1)||o.c1.empty}getBracketPairsInRangeWithMinIndentation(e){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketPairsInRange(e,!0)||o.c1.empty}getBracketsInRange(e,t=!1){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketsInRange(e,t)||o.c1.empty}findMatchingBracketUp(e,t,n){const i=this.textModel.validatePosition(t),r=this.textModel.getLanguageIdAtPosition(i.lineNumber,i.column);if(this.canBuildAST){const n=this.languageConfigurationService.getLanguageConfiguration(r).bracketsNew.getClosingBracketInfo(e);if(!n)return null;const i=this.getBracketPairsInRange(m.Q.fromPositions(t,t)).findLast((e=>n.closes(e.openingBracketInfo)));return i?i.openingBracketRange:null}{const t=e.toLowerCase(),s=this.languageConfigurationService.getLanguageConfiguration(r).brackets;if(!s)return null;const o=s.textIsBracket[t];return o?St(this._findMatchingBracketUp(o,i,yt(n))):null}}matchBracket(e,t){if(this.canBuildAST){const t=this.getBracketPairsInRange(m.Q.fromPositions(e,e)).filter((t=>void 0!==t.closingBracketRange&&(t.openingBracketRange.containsPosition(e)||t.closingBracketRange.containsPosition(e)))).findLastMaxBy((0,o.VE)((t=>t.openingBracketRange.containsPosition(e)?t.openingBracketRange:t.closingBracketRange),m.Q.compareRangesUsingStarts));return t?[t.openingBracketRange,t.closingBracketRange]:null}{const n=yt(t);return this._matchBracket(this.textModel.validatePosition(e),n)}}_establishBracketSearchOffsets(e,t,n,i){const r=t.getCount(),s=t.getLanguageId(i);let o=Math.max(0,e.column-1-n.maxBracketLength);for(let l=i-1;l>=0;l--){const e=t.getEndOffset(l);if(e<=o)break;if(S(t.getStandardTokenType(l))||t.getLanguageId(l)!==s){o=e;break}}let a=Math.min(t.getLineContent().length,e.column-1+n.maxBracketLength);for(let l=i+1;l<r;l++){const e=t.getStartOffset(l);if(e>=a)break;if(S(t.getStandardTokenType(l))||t.getLanguageId(l)!==s){a=e;break}}return{searchStartOffset:o,searchEndOffset:a}}_matchBracket(e,t){const n=e.lineNumber,i=this.textModel.tokenization.getLineTokens(n),r=this.textModel.getLineContent(n),s=i.findTokenIndexAtOffset(e.column-1);if(s<0)return null;const o=this.languageConfigurationService.getLanguageConfiguration(i.getLanguageId(s)).brackets;if(o&&!S(i.getStandardTokenType(s))){let{searchStartOffset:a,searchEndOffset:l}=this._establishBracketSearchOffsets(e,i,o,s),h=null;for(;;){const i=W.findNextBracketInRange(o.forwardRegex,n,r,a,l);if(!i)break;if(i.startColumn<=e.column&&e.column<=i.endColumn){const e=r.substring(i.startColumn-1,i.endColumn-1).toLowerCase(),n=this._matchFoundBracket(i,o.textIsBracket[e],o.textIsOpenBracket[e],t);if(n){if(n instanceof wt)return null;h=n}}a=i.endColumn-1}if(h)return h}if(s>0&&i.getStartOffset(s)===e.column-1){const o=s-1,a=this.languageConfigurationService.getLanguageConfiguration(i.getLanguageId(o)).brackets;if(a&&!S(i.getStandardTokenType(o))){const{searchStartOffset:s,searchEndOffset:l}=this._establishBracketSearchOffsets(e,i,a,o),h=W.findPrevBracketInRange(a.reversedRegex,n,r,s,l);if(h&&h.startColumn<=e.column&&e.column<=h.endColumn){const e=r.substring(h.startColumn-1,h.endColumn-1).toLowerCase(),n=this._matchFoundBracket(h,a.textIsBracket[e],a.textIsOpenBracket[e],t);if(n)return n instanceof wt?null:n}}}return null}_matchFoundBracket(e,t,n,i){if(!t)return null;const r=n?this._findMatchingBracketDown(t,e.getEndPosition(),i):this._findMatchingBracketUp(t,e.getStartPosition(),i);return r?r instanceof wt?r:[e,r]:null}_findMatchingBracketUp(e,t,n){const i=e.languageId,r=e.reversedRegex;let s=-1,o=0;const a=(t,i,a,l)=>{for(;;){if(n&&++o%100===0&&!n())return wt.INSTANCE;const h=W.findPrevBracketInRange(r,t,i,a,l);if(!h)break;const c=i.substring(h.startColumn-1,h.endColumn-1).toLowerCase();if(e.isOpen(c)?s++:e.isClose(c)&&s--,0===s)return h;l=h.startColumn-1}return null};for(let l=t.lineNumber;l>=1;l--){const e=this.textModel.tokenization.getLineTokens(l),n=e.getCount(),r=this.textModel.getLineContent(l);let s=n-1,o=r.length,h=r.length;l===t.lineNumber&&(s=e.findTokenIndexAtOffset(t.column-1),o=t.column-1,h=t.column-1);let c=!0;for(;s>=0;s--){const t=e.getLanguageId(s)===i&&!S(e.getStandardTokenType(s));if(t)c?o=e.getStartOffset(s):(o=e.getStartOffset(s),h=e.getEndOffset(s));else if(c&&o!==h){const e=a(l,r,o,h);if(e)return e}c=t}if(c&&o!==h){const e=a(l,r,o,h);if(e)return e}}return null}_findMatchingBracketDown(e,t,n){const i=e.languageId,r=e.forwardRegex;let s=1,o=0;const a=(t,i,a,l)=>{for(;;){if(n&&++o%100===0&&!n())return wt.INSTANCE;const h=W.findNextBracketInRange(r,t,i,a,l);if(!h)break;const c=i.substring(h.startColumn-1,h.endColumn-1).toLowerCase();if(e.isOpen(c)?s++:e.isClose(c)&&s--,0===s)return h;a=h.endColumn-1}return null},l=this.textModel.getLineCount();for(let h=t.lineNumber;h<=l;h++){const e=this.textModel.tokenization.getLineTokens(h),n=e.getCount(),r=this.textModel.getLineContent(h);let s=0,o=0,l=0;h===t.lineNumber&&(s=e.findTokenIndexAtOffset(t.column-1),o=t.column-1,l=t.column-1);let c=!0;for(;s<n;s++){const t=e.getLanguageId(s)===i&&!S(e.getStandardTokenType(s));if(t)c||(o=e.getStartOffset(s)),l=e.getEndOffset(s);else if(c&&o!==l){const e=a(h,r,o,l);if(e)return e}c=t}if(c&&o!==l){const e=a(h,r,o,l);if(e)return e}}return null}findPrevBracket(e){const t=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getFirstBracketBefore(t)||null;let n=null,i=null,r=null;for(let s=t.lineNumber;s>=1;s--){const e=this.textModel.tokenization.getLineTokens(s),o=e.getCount(),a=this.textModel.getLineContent(s);let l=o-1,h=a.length,c=a.length;if(s===t.lineNumber){l=e.findTokenIndexAtOffset(t.column-1),h=t.column-1,c=t.column-1;const s=e.getLanguageId(l);n!==s&&(n=s,i=this.languageConfigurationService.getLanguageConfiguration(n).brackets,r=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew)}let u=!0;for(;l>=0;l--){const t=e.getLanguageId(l);if(n!==t){if(i&&r&&u&&h!==c){const e=W.findPrevBracketInRange(i.reversedRegex,s,a,h,c);if(e)return this._toFoundBracket(r,e);u=!1}n=t,i=this.languageConfigurationService.getLanguageConfiguration(n).brackets,r=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew}const o=!!i&&!S(e.getStandardTokenType(l));if(o)u?h=e.getStartOffset(l):(h=e.getStartOffset(l),c=e.getEndOffset(l));else if(r&&i&&u&&h!==c){const e=W.findPrevBracketInRange(i.reversedRegex,s,a,h,c);if(e)return this._toFoundBracket(r,e)}u=o}if(r&&i&&u&&h!==c){const e=W.findPrevBracketInRange(i.reversedRegex,s,a,h,c);if(e)return this._toFoundBracket(r,e)}}return null}findNextBracket(e){const t=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getFirstBracketAfter(t)||null;const n=this.textModel.getLineCount();let i=null,r=null,s=null;for(let o=t.lineNumber;o<=n;o++){const e=this.textModel.tokenization.getLineTokens(o),n=e.getCount(),a=this.textModel.getLineContent(o);let l=0,h=0,c=0;if(o===t.lineNumber){l=e.findTokenIndexAtOffset(t.column-1),h=t.column-1,c=t.column-1;const n=e.getLanguageId(l);i!==n&&(i=n,r=this.languageConfigurationService.getLanguageConfiguration(i).brackets,s=this.languageConfigurationService.getLanguageConfiguration(i).bracketsNew)}let u=!0;for(;l<n;l++){const t=e.getLanguageId(l);if(i!==t){if(s&&r&&u&&h!==c){const e=W.findNextBracketInRange(r.forwardRegex,o,a,h,c);if(e)return this._toFoundBracket(s,e);u=!1}i=t,r=this.languageConfigurationService.getLanguageConfiguration(i).brackets,s=this.languageConfigurationService.getLanguageConfiguration(i).bracketsNew}const n=!!r&&!S(e.getStandardTokenType(l));if(n)u||(h=e.getStartOffset(l)),c=e.getEndOffset(l);else if(s&&r&&u&&h!==c){const e=W.findNextBracketInRange(r.forwardRegex,o,a,h,c);if(e)return this._toFoundBracket(s,e)}u=n}if(s&&r&&u&&h!==c){const e=W.findNextBracketInRange(r.forwardRegex,o,a,h,c);if(e)return this._toFoundBracket(s,e)}}return null}findEnclosingBrackets(e,t){const n=this.textModel.validatePosition(e);if(this.canBuildAST){const e=m.Q.fromPositions(n),t=this.getBracketPairsInRange(m.Q.fromPositions(n,n)).findLast((t=>void 0!==t.closingBracketRange&&t.range.strictContainsRange(e)));return t?[t.openingBracketRange,t.closingBracketRange]:null}const i=yt(t),r=this.textModel.getLineCount(),s=new Map;let o=[];const a=(e,t)=>{if(!s.has(e)){const n=[];for(let e=0,i=t?t.brackets.length:0;e<i;e++)n[e]=0;s.set(e,n)}o=s.get(e)};let l=0;const h=(e,t,n,r,s)=>{for(;;){if(i&&++l%100===0&&!i())return wt.INSTANCE;const a=W.findNextBracketInRange(e.forwardRegex,t,n,r,s);if(!a)break;const h=n.substring(a.startColumn-1,a.endColumn-1).toLowerCase(),c=e.textIsBracket[h];if(c&&(c.isOpen(h)?o[c.index]++:c.isClose(h)&&o[c.index]--,-1===o[c.index]))return this._matchFoundBracket(a,c,!1,i);r=a.endColumn-1}return null};let c=null,u=null;for(let d=n.lineNumber;d<=r;d++){const e=this.textModel.tokenization.getLineTokens(d),t=e.getCount(),i=this.textModel.getLineContent(d);let r=0,s=0,o=0;if(d===n.lineNumber){r=e.findTokenIndexAtOffset(n.column-1),s=n.column-1,o=n.column-1;const t=e.getLanguageId(r);c!==t&&(c=t,u=this.languageConfigurationService.getLanguageConfiguration(c).brackets,a(c,u))}let l=!0;for(;r<t;r++){const t=e.getLanguageId(r);if(c!==t){if(u&&l&&s!==o){const e=h(u,d,i,s,o);if(e)return St(e);l=!1}c=t,u=this.languageConfigurationService.getLanguageConfiguration(c).brackets,a(c,u)}const n=!!u&&!S(e.getStandardTokenType(r));if(n)l||(s=e.getStartOffset(r)),o=e.getEndOffset(r);else if(u&&l&&s!==o){const e=h(u,d,i,s,o);if(e)return St(e)}l=n}if(u&&l&&s!==o){const e=h(u,d,i,s,o);if(e)return St(e)}}return null}_toFoundBracket(e,t){if(!t)return null;let n=this.textModel.getValueInRange(t);n=n.toLowerCase();const i=e.getBracketInfo(n);return i?{range:t,bracketInfo:i}:null}}function yt(e){if("undefined"===typeof e)return()=>!0;{const t=Date.now();return()=>Date.now()-t<=e}}class wt{static{this.INSTANCE=new wt}constructor(){this._searchCanceledBrand=void 0}}function St(e){return e instanceof wt?null:e}var xt=n(7119),Et=n(5724);class Nt extends r.jG{constructor(e){super(),this.textModel=e,this.colorProvider=new It,this.onDidChangeEmitter=new i.vl,this.onDidChange=this.onDidChangeEmitter.event,this.colorizationOptions=e.getOptions().bracketPairColorizationOptions,this._register(e.bracketPairs.onDidChange((e=>{this.onDidChangeEmitter.fire()})))}handleDidChangeOptions(e){this.colorizationOptions=this.textModel.getOptions().bracketPairColorizationOptions}getDecorationsInRange(e,t,n,i){if(i)return[];if(void 0===t)return[];if(!this.colorizationOptions.enabled)return[];return this.textModel.bracketPairs.getBracketsInRange(e,!0).map((e=>({id:`bracket${e.range.toString()}-${e.nestingLevel}`,options:{description:"BracketPairColorization",inlineClassName:this.colorProvider.getInlineClassName(e,this.colorizationOptions.independentColorPoolPerBracketType)},ownerId:0,range:e.range}))).toArray()}getAllDecorations(e,t){return void 0===e?[]:this.colorizationOptions.enabled?this.getDecorationsInRange(new m.Q(1,1,this.textModel.getLineCount(),1),e,t):[]}}class It{constructor(){this.unexpectedClosingBracketClassName="unexpected-closing-bracket"}getInlineClassName(e,t){return e.isInvalid?this.unexpectedClosingBracketClassName:this.getInlineClassNameOfLevel(t?e.nestingLevelOfEqualBracketType:e.nestingLevel)}getInlineClassNameOfLevel(e){return"bracket-highlighting-"+e%30}}(0,Et.zy)(((e,t)=>{const n=[xt.sN,xt.lQ,xt.ss,xt.l5,xt.sH,xt.zp],i=new It;t.addRule(`.monaco-editor .${i.unexpectedClosingBracketClassName} { color: ${e.getColor(xt.s7)}; }`);const r=n.map((t=>e.getColor(t))).filter((e=>!!e)).filter((e=>!e.isTransparent()));for(let s=0;s<30;s++){const e=r[s%r.length];t.addRule(`.monaco-editor .${i.getInlineClassNameOfLevel(s)} { color: ${e}; }`)}}));var Tt=n(8209);function At(e){return e.replace(/\n/g,"\\n").replace(/\r/g,"\\r")}class Dt{get oldLength(){return this.oldText.length}get oldEnd(){return this.oldPosition+this.oldText.length}get newLength(){return this.newText.length}get newEnd(){return this.newPosition+this.newText.length}constructor(e,t,n,i){this.oldPosition=e,this.oldText=t,this.newPosition=n,this.newText=i}toString(){return 0===this.oldText.length?`(insert@${this.oldPosition} "${At(this.newText)}")`:0===this.newText.length?`(delete@${this.oldPosition} "${At(this.oldText)}")`:`(replace@${this.oldPosition} "${At(this.oldText)}" with "${At(this.newText)}")`}static _writeStringSize(e){return 4+2*e.length}static _writeString(e,t,n){const i=t.length;x.Sw(e,i,n),n+=4;for(let r=0;r<i;r++)x.gN(e,t.charCodeAt(r),n),n+=2;return n}static _readString(e,t){const n=x.bb(e,t);return D(e,t+=4,n)}writeSize(){return 8+Dt._writeStringSize(this.oldText)+Dt._writeStringSize(this.newText)}write(e,t){return x.Sw(e,this.oldPosition,t),t+=4,x.Sw(e,this.newPosition,t),t+=4,t=Dt._writeString(e,this.oldText,t),t=Dt._writeString(e,this.newText,t)}static read(e,t,n){const i=x.bb(e,t);t+=4;const r=x.bb(e,t);t+=4;const s=Dt._readString(e,t);t+=Dt._writeStringSize(s);const o=Dt._readString(e,t);return t+=Dt._writeStringSize(o),n.push(new Dt(i,s,r,o)),t}}class Rt{constructor(e,t){this._prevEdits=e,this._currEdits=t,this._result=[],this._resultLen=0,this._prevLen=this._prevEdits.length,this._prevDeltaOffset=0,this._currLen=this._currEdits.length,this._currDeltaOffset=0}compress(){let e=0,t=0,n=this._getPrev(e),i=this._getCurr(t);for(;e<this._prevLen||t<this._currLen;){if(null===n){this._acceptCurr(i),i=this._getCurr(++t);continue}if(null===i){this._acceptPrev(n),n=this._getPrev(++e);continue}if(i.oldEnd<=n.newPosition){this._acceptCurr(i),i=this._getCurr(++t);continue}if(n.newEnd<=i.oldPosition){this._acceptPrev(n),n=this._getPrev(++e);continue}if(i.oldPosition<n.newPosition){const[e,t]=Rt._splitCurr(i,n.newPosition-i.oldPosition);this._acceptCurr(e),i=t;continue}if(n.newPosition<i.oldPosition){const[e,t]=Rt._splitPrev(n,i.oldPosition-n.newPosition);this._acceptPrev(e),n=t;continue}let r,s;if(i.oldEnd===n.newEnd)r=n,s=i,n=this._getPrev(++e),i=this._getCurr(++t);else if(i.oldEnd<n.newEnd){const[e,o]=Rt._splitPrev(n,i.oldLength);r=e,s=i,n=o,i=this._getCurr(++t)}else{const[t,o]=Rt._splitCurr(i,n.newLength);r=n,s=t,n=this._getPrev(++e),i=o}this._result[this._resultLen++]=new Dt(r.oldPosition,r.oldText,s.newPosition,s.newText),this._prevDeltaOffset+=r.newLength-r.oldLength,this._currDeltaOffset+=s.newLength-s.oldLength}const r=Rt._merge(this._result);return Rt._removeNoOps(r)}_acceptCurr(e){this._result[this._resultLen++]=Rt._rebaseCurr(this._prevDeltaOffset,e),this._currDeltaOffset+=e.newLength-e.oldLength}_getCurr(e){return e<this._currLen?this._currEdits[e]:null}_acceptPrev(e){this._result[this._resultLen++]=Rt._rebasePrev(this._currDeltaOffset,e),this._prevDeltaOffset+=e.newLength-e.oldLength}_getPrev(e){return e<this._prevLen?this._prevEdits[e]:null}static _rebaseCurr(e,t){return new Dt(t.oldPosition-e,t.oldText,t.newPosition,t.newText)}static _rebasePrev(e,t){return new Dt(t.oldPosition,t.oldText,t.newPosition+e,t.newText)}static _splitPrev(e,t){const n=e.newText.substr(0,t),i=e.newText.substr(t);return[new Dt(e.oldPosition,e.oldText,e.newPosition,n),new Dt(e.oldEnd,"",e.newPosition+t,i)]}static _splitCurr(e,t){const n=e.oldText.substr(0,t),i=e.oldText.substr(t);return[new Dt(e.oldPosition,n,e.newPosition,e.newText),new Dt(e.oldPosition+t,i,e.newEnd,"")]}static _merge(e){if(0===e.length)return e;const t=[];let n=0,i=e[0];for(let r=1;r<e.length;r++){const s=e[r];i.oldEnd===s.oldPosition?i=new Dt(i.oldPosition,i.oldText+s.oldText,i.newPosition,i.newText+s.newText):(t[n++]=i,i=s)}return t[n++]=i,t}static _removeNoOps(e){if(0===e.length)return e;const t=[];let n=0;for(let i=0;i<e.length;i++){const r=e[i];r.oldText!==r.newText&&(t[n++]=r)}return t}}var Mt=n(9403);function Ot(e){return e.toString()}class Bt{static create(e,t){const n=e.getAlternativeVersionId(),i=zt(e);return new Bt(n,n,i,i,t,t,[])}constructor(e,t,n,i,r,s,o){this.beforeVersionId=e,this.afterVersionId=t,this.beforeEOL=n,this.afterEOL=i,this.beforeCursorState=r,this.afterCursorState=s,this.changes=o}append(e,t,n,i,r){var s,o;t.length>0&&(this.changes=(s=this.changes,o=t,null===s||0===s.length?o:new Rt(s,o).compress())),this.afterEOL=n,this.afterVersionId=i,this.afterCursorState=r}static _writeSelectionsSize(e){return 4+16*(e?e.length:0)}static _writeSelections(e,t,n){if(x.Sw(e,t?t.length:0,n),n+=4,t)for(const i of t)x.Sw(e,i.selectionStartLineNumber,n),n+=4,x.Sw(e,i.selectionStartColumn,n),n+=4,x.Sw(e,i.positionLineNumber,n),n+=4,x.Sw(e,i.positionColumn,n),n+=4;return n}static _readSelections(e,t,n){const i=x.bb(e,t);t+=4;for(let r=0;r<i;r++){const i=x.bb(e,t);t+=4;const r=x.bb(e,t);t+=4;const s=x.bb(e,t);t+=4;const o=x.bb(e,t);t+=4,n.push(new p.L(i,r,s,o))}return t}serialize(){let e=10+Bt._writeSelectionsSize(this.beforeCursorState)+Bt._writeSelectionsSize(this.afterCursorState)+4;for(const i of this.changes)e+=i.writeSize();const t=new Uint8Array(e);let n=0;x.Sw(t,this.beforeVersionId,n),n+=4,x.Sw(t,this.afterVersionId,n),n+=4,x.Gs(t,this.beforeEOL,n),n+=1,x.Gs(t,this.afterEOL,n),n+=1,n=Bt._writeSelections(t,this.beforeCursorState,n),n=Bt._writeSelections(t,this.afterCursorState,n),x.Sw(t,this.changes.length,n),n+=4;for(const i of this.changes)n=i.write(t,n);return t.buffer}static deserialize(e){const t=new Uint8Array(e);let n=0;const i=x.bb(t,n);n+=4;const r=x.bb(t,n);n+=4;const s=x.pJ(t,n);n+=1;const o=x.pJ(t,n);n+=1;const a=[];n=Bt._readSelections(t,n,a);const l=[];n=Bt._readSelections(t,n,l);const h=x.bb(t,n);n+=4;const c=[];for(let u=0;u<h;u++)n=Dt.read(t,n,c);return new Bt(i,r,s,o,a,l,c)}}class Ft{get type(){return 0}get resource(){return c.r.isUri(this.model)?this.model:this.model.uri}constructor(e,t,n,i){this.label=e,this.code=t,this.model=n,this._data=Bt.create(n,i)}toString(){return(this._data instanceof Bt?this._data:Bt.deserialize(this._data)).changes.map((e=>e.toString())).join(", ")}matchesResource(e){return(c.r.isUri(this.model)?this.model:this.model.uri).toString()===e.toString()}setModel(e){this.model=e}canAppend(e){return this.model===e&&this._data instanceof Bt}append(e,t,n,i,r){this._data instanceof Bt&&this._data.append(e,t,n,i,r)}close(){this._data instanceof Bt&&(this._data=this._data.serialize())}open(){this._data instanceof Bt||(this._data=Bt.deserialize(this._data))}undo(){if(c.r.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof Bt&&(this._data=this._data.serialize());const e=Bt.deserialize(this._data);this.model._applyUndo(e.changes,e.beforeEOL,e.beforeVersionId,e.beforeCursorState)}redo(){if(c.r.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof Bt&&(this._data=this._data.serialize());const e=Bt.deserialize(this._data);this.model._applyRedo(e.changes,e.afterEOL,e.afterVersionId,e.afterCursorState)}heapSize(){return this._data instanceof Bt&&(this._data=this._data.serialize()),this._data.byteLength+168}}class Pt{get resources(){return this._editStackElementsArr.map((e=>e.resource))}constructor(e,t,n){this.label=e,this.code=t,this.type=1,this._isOpen=!0,this._editStackElementsArr=n.slice(0),this._editStackElementsMap=new Map;for(const i of this._editStackElementsArr){const e=Ot(i.resource);this._editStackElementsMap.set(e,i)}this._delegate=null}prepareUndoRedo(){if(this._delegate)return this._delegate.prepareUndoRedo(this)}matchesResource(e){const t=Ot(e);return this._editStackElementsMap.has(t)}setModel(e){const t=Ot(c.r.isUri(e)?e:e.uri);this._editStackElementsMap.has(t)&&this._editStackElementsMap.get(t).setModel(e)}canAppend(e){if(!this._isOpen)return!1;const t=Ot(e.uri);if(this._editStackElementsMap.has(t)){return this._editStackElementsMap.get(t).canAppend(e)}return!1}append(e,t,n,i,r){const s=Ot(e.uri);this._editStackElementsMap.get(s).append(e,t,n,i,r)}close(){this._isOpen=!1}open(){}undo(){this._isOpen=!1;for(const e of this._editStackElementsArr)e.undo()}redo(){for(const e of this._editStackElementsArr)e.redo()}heapSize(e){const t=Ot(e);if(this._editStackElementsMap.has(t)){return this._editStackElementsMap.get(t).heapSize()}return 0}split(){return this._editStackElementsArr}toString(){const e=[];for(const t of this._editStackElementsArr)e.push(`${(0,Mt.P8)(t.resource)}: ${t}`);return`{${e.join(", ")}}`}}function zt(e){return"\n"===e.getEOL()?0:1}function Vt(e){return!!e&&(e instanceof Ft||e instanceof Pt)}class Wt{constructor(e,t){this._model=e,this._undoRedoService=t}pushStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);Vt(e)&&e.close()}popStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);Vt(e)&&e.open()}clear(){this._undoRedoService.removeElements(this._model.uri)}_getOrCreateEditStackElement(e,t){const n=this._undoRedoService.getLastElement(this._model.uri);if(Vt(n)&&n.canAppend(this._model))return n;const i=new Ft(Tt.kg("edit","Typing"),"undoredo.textBufferEdit",this._model,e);return this._undoRedoService.pushElement(i,t),i}pushEOL(e){const t=this._getOrCreateEditStackElement(null,void 0);this._model.setEOL(e),t.append(this._model,[],zt(this._model),this._model.getAlternativeVersionId(),null)}pushEditOperation(e,t,n,i){const r=this._getOrCreateEditStackElement(e,i),s=this._model.applyEdits(t,!0),o=Wt._computeCursorState(n,s),a=s.map(((e,t)=>({index:t,textChange:e.textChange})));return a.sort(((e,t)=>e.textChange.oldPosition===t.textChange.oldPosition?e.index-t.index:e.textChange.oldPosition-t.textChange.oldPosition)),r.append(this._model,a.map((e=>e.textChange)),zt(this._model),this._model.getAlternativeVersionId(),o),o}static _computeCursorState(e,t){try{return e?e(t):null}catch(n){return(0,l.dz)(n),null}}}var qt,Ht=n(6041);class Ut extends r.jG{constructor(){super(...arguments),this._isDisposed=!1}dispose(){super.dispose(),this._isDisposed=!0}assertNotDisposed(){if(this._isDisposed)throw new Error("TextModelPart is disposed!")}}!function(e){e[e.Disabled=0]="Disabled",e[e.EnabledForActive=1]="EnabledForActive",e[e.Enabled=2]="Enabled"}(qt||(qt={}));class jt{constructor(e,t,n,i,r,s){if(this.visibleColumn=e,this.column=t,this.className=n,this.horizontalLine=i,this.forWrappedLinesAfterColumn=r,this.forWrappedLinesBeforeOrAtColumn=s,-1!==e===(-1!==t))throw new Error}}class Kt{constructor(e,t){this.top=e,this.endColumn=t}}class $t extends Ut{constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t}getLanguageConfiguration(e){return this.languageConfigurationService.getLanguageConfiguration(e)}_computeIndentLevel(e){return function(e,t){let n=0,i=0;const r=e.length;for(;i<r;){const r=e.charCodeAt(i);if(32===r)n++;else{if(9!==r)break;n=n-n%t+t}i++}return i===r?-1:n}(this.textModel.getLineContent(e+1),this.textModel.getOptions().tabSize)}getActiveIndentGuide(e,t,n){this.assertNotDisposed();const i=this.textModel.getLineCount();if(e<1||e>i)throw new l.D7("Illegal value for lineNumber");const r=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,s=Boolean(r&&r.offSide);let o=-2,a=-1,h=-2,c=-1;const u=e=>{if(-1!==o&&(-2===o||o>e-1)){o=-1,a=-1;for(let t=e-2;t>=0;t--){const e=this._computeIndentLevel(t);if(e>=0){o=t,a=e;break}}}if(-2===h){h=-1,c=-1;for(let t=e;t<i;t++){const e=this._computeIndentLevel(t);if(e>=0){h=t,c=e;break}}}};let d=-2,g=-1,f=-2,m=-1;const p=e=>{if(-2===d){d=-1,g=-1;for(let t=e-2;t>=0;t--){const e=this._computeIndentLevel(t);if(e>=0){d=t,g=e;break}}}if(-1!==f&&(-2===f||f<e-1)){f=-1,m=-1;for(let t=e;t<i;t++){const e=this._computeIndentLevel(t);if(e>=0){f=t,m=e;break}}}};let _=0,b=!0,k=0,v=!0,C=0,L=0;for(let l=0;b||v;l++){const r=e-l,o=e+l;l>1&&(r<1||r<t)&&(b=!1),l>1&&(o>i||o>n)&&(v=!1),l>5e4&&(b=!1,v=!1);let f=-1;if(b&&r>=1){const e=this._computeIndentLevel(r-1);e>=0?(h=r-1,c=e,f=Math.ceil(e/this.textModel.getOptions().indentSize)):(u(r),f=this._getIndentLevelForWhitespaceLine(s,a,c))}let y=-1;if(v&&o<=i){const e=this._computeIndentLevel(o-1);e>=0?(d=o-1,g=e,y=Math.ceil(e/this.textModel.getOptions().indentSize)):(p(o),y=this._getIndentLevelForWhitespaceLine(s,g,m))}if(0!==l){if(1===l){if(o<=i&&y>=0&&L+1===y){b=!1,_=o,k=o,C=y;continue}if(r>=1&&f>=0&&f-1===L){v=!1,_=r,k=r,C=f;continue}if(_=e,k=e,C=L,0===C)return{startLineNumber:_,endLineNumber:k,indent:C}}b&&(f>=C?_=r:b=!1),v&&(y>=C?k=o:v=!1)}else L=f}return{startLineNumber:_,endLineNumber:k,indent:C}}getLinesBracketGuides(e,t,n,i){const r=[];for(let h=e;h<=t;h++)r.push([]);const s=!0,o=this.textModel.bracketPairs.getBracketPairsInRangeWithMinIndentation(new m.Q(e,1,t,this.textModel.getLineMaxColumn(t))).toArray();let a;if(n&&o.length>0){const i=(e<=n.lineNumber&&n.lineNumber<=t?o:this.textModel.bracketPairs.getBracketPairsInRange(m.Q.fromPositions(n)).toArray()).filter((e=>m.Q.strictContainsPosition(e.range,n)));a=(0,Ht.Uk)(i,(e=>s))?.range}const l=this.textModel.getOptions().bracketPairColorizationOptions.independentColorPoolPerBracketType,c=new Gt;for(const u of o){if(!u.closingBracketRange)continue;const n=a&&u.range.equalsRange(a);if(!n&&!i.includeInactive)continue;const s=c.getInlineClassName(u.nestingLevel,u.nestingLevelOfEqualBracketType,l)+(i.highlightActive&&n?" "+c.activeClassName:""),o=u.openingBracketRange.getStartPosition(),d=u.closingBracketRange.getStartPosition(),g=i.horizontalGuides===qt.Enabled||i.horizontalGuides===qt.EnabledForActive&&n;if(u.range.startLineNumber===u.range.endLineNumber){g&&r[u.range.startLineNumber-e].push(new jt(-1,u.openingBracketRange.getEndPosition().column,s,new Kt(!1,d.column),-1,-1));continue}const f=this.getVisibleColumnFromPosition(d),m=this.getVisibleColumnFromPosition(u.openingBracketRange.getStartPosition()),p=Math.min(m,f,u.minVisibleColumnIndentation+1);let _=!1;h.HG(this.textModel.getLineContent(u.closingBracketRange.startLineNumber))<u.closingBracketRange.startColumn-1&&(_=!0);const b=Math.max(o.lineNumber,e),k=Math.min(d.lineNumber,t),v=_?1:0;for(let t=b;t<k+v;t++)r[t-e].push(new jt(p,-1,s,null,t===o.lineNumber?o.column:-1,t===d.lineNumber?d.column:-1));g&&(o.lineNumber>=e&&m>p&&r[o.lineNumber-e].push(new jt(p,-1,s,new Kt(!1,o.column),-1,-1)),d.lineNumber<=t&&f>p&&r[d.lineNumber-e].push(new jt(p,-1,s,new Kt(!_,d.column),-1,-1)))}for(const h of r)h.sort(((e,t)=>e.visibleColumn-t.visibleColumn));return r}getVisibleColumnFromPosition(e){return d.visibleColumnFromColumn(this.textModel.getLineContent(e.lineNumber),e.column,this.textModel.getOptions().tabSize)+1}getLinesIndentGuides(e,t){this.assertNotDisposed();const n=this.textModel.getLineCount();if(e<1||e>n)throw new Error("Illegal value for startLineNumber");if(t<1||t>n)throw new Error("Illegal value for endLineNumber");const i=this.textModel.getOptions(),r=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,s=Boolean(r&&r.offSide),o=new Array(t-e+1);let a=-2,l=-1,h=-2,c=-1;for(let u=e;u<=t;u++){const t=u-e,r=this._computeIndentLevel(u-1);if(r>=0)a=u-1,l=r,o[t]=Math.ceil(r/i.indentSize);else{if(-2===a){a=-1,l=-1;for(let e=u-2;e>=0;e--){const t=this._computeIndentLevel(e);if(t>=0){a=e,l=t;break}}}if(-1!==h&&(-2===h||h<u-1)){h=-1,c=-1;for(let e=u;e<n;e++){const t=this._computeIndentLevel(e);if(t>=0){h=e,c=t;break}}}o[t]=this._getIndentLevelForWhitespaceLine(s,l,c)}}return o}_getIndentLevelForWhitespaceLine(e,t,n){const i=this.textModel.getOptions();return-1===t||-1===n?0:t<n?1+Math.floor(t/i.indentSize):t===n||e?Math.ceil(n/i.indentSize):1+Math.floor(n/i.indentSize)}}class Gt{constructor(){this.activeClassName="indent-active"}getInlineClassName(e,t,n){return this.getInlineClassNameOfLevel(n?t:e)}getInlineClassNameOfLevel(e){return"bracket-indent-guide lvl-"+e%30}}class Qt{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}}function Yt(e,t,n,i,r){let s;for(r.spacesDiff=0,r.looksLikeAlignment=!1,s=0;s<t&&s<i;s++){if(e.charCodeAt(s)!==n.charCodeAt(s))break}let o=0,a=0;for(let d=s;d<t;d++){32===e.charCodeAt(d)?o++:a++}let l=0,h=0;for(let d=s;d<i;d++){32===n.charCodeAt(d)?l++:h++}if(o>0&&a>0)return;if(l>0&&h>0)return;const c=Math.abs(a-h),u=Math.abs(o-l);if(0===c)return r.spacesDiff=u,void(u>0&&0<=l-1&&l-1<e.length&&l<n.length&&32!==n.charCodeAt(l)&&32===e.charCodeAt(l-1)&&44===e.charCodeAt(e.length-1)&&(r.looksLikeAlignment=!0));u%c!==0||(r.spacesDiff=u/c)}function Xt(e,t,n){const i=Math.min(e.getLineCount(),1e4);let r=0,s=0,o="",a=0;const l=[2,4,6,8,3,5,7],h=[0,0,0,0,0,0,0,0,0],c=new Qt;for(let g=1;g<=i;g++){const i=e.getLineLength(g),l=e.getLineContent(g),u=i<=65536;let d=!1,f=0,m=0,p=0;for(let t=0,n=i;t<n;t++){const n=u?l.charCodeAt(t):e.getLineCharCode(g,t);if(9===n)p++;else{if(32!==n){d=!0,f=t;break}m++}}if(!d)continue;if(p>0?r++:m>1&&s++,Yt(o,a,l,f,c),c.looksLikeAlignment&&(!n||t!==c.spacesDiff))continue;const _=c.spacesDiff;_<=8&&h[_]++,o=l,a=f}let u=n;r!==s&&(u=r<s);let d=t;if(u){let e=u?0:.1*i;l.forEach((t=>{const n=h[t];n>e&&(e=n,d=t)})),4===d&&h[4]>0&&h[2]>0&&h[2]>=h[4]/2&&(d=2)}return{insertSpaces:u,tabSize:d}}function Zt(e){return(1&e.metadata)>>>0}function Jt(e,t){e.metadata=254&e.metadata|t}function en(e){return(2&e.metadata)>>>1===1}function tn(e,t){e.metadata=253&e.metadata|(t?1:0)<<1}function nn(e){return(4&e.metadata)>>>2===1}function rn(e,t){e.metadata=251&e.metadata|(t?1:0)<<2}function sn(e){return(64&e.metadata)>>>6===1}function on(e,t){e.metadata=191&e.metadata|(t?1:0)<<6}function an(e,t){e.metadata=231&e.metadata|t<<3}function ln(e,t){e.metadata=223&e.metadata|(t?1:0)<<5}class hn{constructor(e,t,n){this.metadata=0,this.parent=this,this.left=this,this.right=this,Jt(this,1),this.start=t,this.end=n,this.delta=0,this.maxEnd=n,this.id=e,this.ownerId=0,this.options=null,rn(this,!1),on(this,!1),an(this,1),ln(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=null,tn(this,!1)}reset(e,t,n,i){this.start=t,this.end=n,this.maxEnd=n,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=i}setOptions(e){this.options=e;const t=this.options.className;rn(this,"squiggly-error"===t||"squiggly-warning"===t||"squiggly-info"===t),on(this,null!==this.options.glyphMarginClassName),an(this,this.options.stickiness),ln(this,this.options.collapseOnReplaceEdit)}setCachedOffsets(e,t,n){this.cachedVersionId!==n&&(this.range=null),this.cachedVersionId=n,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t}detach(){this.parent=null,this.left=null,this.right=null}}const cn=new hn(null,0,0);cn.parent=cn,cn.left=cn,cn.right=cn,Jt(cn,0);class un{constructor(){this.root=cn,this.requestNormalizeDelta=!1}intervalSearch(e,t,n,i,r,s){return this.root===cn?[]:function(e,t,n,i,r,s,o){let a=e.root,l=0,h=0,c=0,u=0;const d=[];let g=0;for(;a!==cn;)if(en(a))tn(a.left,!1),tn(a.right,!1),a===a.parent.right&&(l-=a.parent.delta),a=a.parent;else{if(!en(a.left)){if(h=l+a.maxEnd,h<t){tn(a,!0);continue}if(a.left!==cn){a=a.left;continue}}if(c=l+a.start,c>n)tn(a,!0);else{if(u=l+a.end,u>=t){a.setCachedOffsets(c,u,s);let e=!0;i&&a.ownerId&&a.ownerId!==i&&(e=!1),r&&nn(a)&&(e=!1),o&&!sn(a)&&(e=!1),e&&(d[g++]=a)}tn(a,!0),a.right===cn||en(a.right)||(l+=a.delta,a=a.right)}}return tn(e.root,!1),d}(this,e,t,n,i,r,s)}search(e,t,n,i){return this.root===cn?[]:function(e,t,n,i,r){let s=e.root,o=0,a=0,l=0;const h=[];let c=0;for(;s!==cn;){if(en(s)){tn(s.left,!1),tn(s.right,!1),s===s.parent.right&&(o-=s.parent.delta),s=s.parent;continue}if(s.left!==cn&&!en(s.left)){s=s.left;continue}a=o+s.start,l=o+s.end,s.setCachedOffsets(a,l,i);let e=!0;t&&s.ownerId&&s.ownerId!==t&&(e=!1),n&&nn(s)&&(e=!1),r&&!sn(s)&&(e=!1),e&&(h[c++]=s),tn(s,!0),s.right===cn||en(s.right)||(o+=s.delta,s=s.right)}return tn(e.root,!1),h}(this,e,t,n,i)}collectNodesFromOwner(e){return function(e,t){let n=e.root;const i=[];let r=0;for(;n!==cn;)en(n)?(tn(n.left,!1),tn(n.right,!1),n=n.parent):n.left===cn||en(n.left)?(n.ownerId===t&&(i[r++]=n),tn(n,!0),n.right===cn||en(n.right)||(n=n.right)):n=n.left;return tn(e.root,!1),i}(this,e)}collectNodesPostOrder(){return function(e){let t=e.root;const n=[];let i=0;for(;t!==cn;)en(t)?(tn(t.left,!1),tn(t.right,!1),t=t.parent):t.left===cn||en(t.left)?t.right===cn||en(t.right)?(n[i++]=t,tn(t,!0)):t=t.right:t=t.left;return tn(e.root,!1),n}(this)}insert(e){fn(this,e),this._normalizeDeltaIfNecessary()}delete(e){mn(this,e),this._normalizeDeltaIfNecessary()}resolveNode(e,t){const n=e;let i=0;for(;e!==this.root;)e===e.parent.right&&(i+=e.parent.delta),e=e.parent;const r=n.start+i,s=n.end+i;n.setCachedOffsets(r,s,t)}acceptReplace(e,t,n,i){const r=function(e,t,n){let i=e.root,r=0,s=0,o=0,a=0;const l=[];let h=0;for(;i!==cn;)if(en(i))tn(i.left,!1),tn(i.right,!1),i===i.parent.right&&(r-=i.parent.delta),i=i.parent;else{if(!en(i.left)){if(s=r+i.maxEnd,s<t){tn(i,!0);continue}if(i.left!==cn){i=i.left;continue}}o=r+i.start,o>n?tn(i,!0):(a=r+i.end,a>=t&&(i.setCachedOffsets(o,a,0),l[h++]=i),tn(i,!0),i.right===cn||en(i.right)||(r+=i.delta,i=i.right))}return tn(e.root,!1),l}(this,e,e+t);for(let s=0,o=r.length;s<o;s++){mn(this,r[s])}this._normalizeDeltaIfNecessary(),function(e,t,n,i){let r=e.root,s=0,o=0,a=0;const l=i-(n-t);for(;r!==cn;)if(en(r))tn(r.left,!1),tn(r.right,!1),r===r.parent.right&&(s-=r.parent.delta),vn(r),r=r.parent;else{if(!en(r.left)){if(o=s+r.maxEnd,o<t){tn(r,!0);continue}if(r.left!==cn){r=r.left;continue}}a=s+r.start,a>n?(r.start+=l,r.end+=l,r.delta+=l,(r.delta<-1073741824||r.delta>1073741824)&&(e.requestNormalizeDelta=!0),tn(r,!0)):(tn(r,!0),r.right===cn||en(r.right)||(s+=r.delta,r=r.right))}tn(e.root,!1)}(this,e,e+t,n),this._normalizeDeltaIfNecessary();for(let s=0,o=r.length;s<o;s++){const o=r[s];o.start=o.cachedAbsoluteStart,o.end=o.cachedAbsoluteEnd,gn(o,e,e+t,n,i),o.maxEnd=o.end,fn(this,o)}this._normalizeDeltaIfNecessary()}_normalizeDeltaIfNecessary(){this.requestNormalizeDelta&&(this.requestNormalizeDelta=!1,function(e){let t=e.root,n=0;for(;t!==cn;)t.left===cn||en(t.left)?t.right===cn||en(t.right)?(t.start=n+t.start,t.end=n+t.end,t.delta=0,vn(t),tn(t,!0),tn(t.left,!1),tn(t.right,!1),t===t.parent.right&&(n-=t.parent.delta),t=t.parent):(n+=t.delta,t=t.right):t=t.left;tn(e.root,!1)}(this))}}function dn(e,t,n,i){return e<n||!(e>n)&&(1!==i&&(2===i||t))}function gn(e,t,n,i,r){const s=function(e){return(24&e.metadata)>>>3}(e),o=0===s||2===s,a=1===s||2===s,l=n-t,h=i,c=Math.min(l,h),u=e.start;let d=!1;const g=e.end;let f=!1;t<=u&&g<=n&&function(e){return(32&e.metadata)>>>5===1}(e)&&(e.start=t,d=!0,e.end=t,f=!0);{const e=r?1:l>0?2:0;!d&&dn(u,o,t,e)&&(d=!0),!f&&dn(g,a,t,e)&&(f=!0)}if(c>0&&!r){const e=l>h?2:0;!d&&dn(u,o,t+c,e)&&(d=!0),!f&&dn(g,a,t+c,e)&&(f=!0)}{const i=r?1:0;!d&&dn(u,o,n,i)&&(e.start=t+h,d=!0),!f&&dn(g,a,n,i)&&(e.end=t+h,f=!0)}const m=h-l;d||(e.start=Math.max(0,u+m)),f||(e.end=Math.max(0,g+m)),e.start>e.end&&(e.end=e.start)}function fn(e,t){if(e.root===cn)return t.parent=cn,t.left=cn,t.right=cn,Jt(t,0),e.root=t,e.root;!function(e,t){let n=0,i=e.root;const r=t.start,s=t.end;for(;;){if(Ln(r,s,i.start+n,i.end+n)<0){if(i.left===cn){t.start-=n,t.end-=n,t.maxEnd-=n,i.left=t;break}i=i.left}else{if(i.right===cn){t.start-=n+i.delta,t.end-=n+i.delta,t.maxEnd-=n+i.delta,i.right=t;break}n+=i.delta,i=i.right}}t.parent=i,t.left=cn,t.right=cn,Jt(t,1)}(e,t),Cn(t.parent);let n=t;for(;n!==e.root&&1===Zt(n.parent);)if(n.parent===n.parent.parent.left){const t=n.parent.parent.right;1===Zt(t)?(Jt(n.parent,0),Jt(t,0),Jt(n.parent.parent,1),n=n.parent.parent):(n===n.parent.right&&(n=n.parent,_n(e,n)),Jt(n.parent,0),Jt(n.parent.parent,1),bn(e,n.parent.parent))}else{const t=n.parent.parent.left;1===Zt(t)?(Jt(n.parent,0),Jt(t,0),Jt(n.parent.parent,1),n=n.parent.parent):(n===n.parent.left&&(n=n.parent,bn(e,n)),Jt(n.parent,0),Jt(n.parent.parent,1),_n(e,n.parent.parent))}return Jt(e.root,0),t}function mn(e,t){let n,i;if(t.left===cn?(n=t.right,i=t,n.delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta):t.right===cn?(n=t.left,i=t):(i=function(e){for(;e.left!==cn;)e=e.left;return e}(t.right),n=i.right,n.start+=i.delta,n.end+=i.delta,n.delta+=i.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),i.start+=t.delta,i.end+=t.delta,i.delta=t.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0)),i===e.root)return e.root=n,Jt(n,0),t.detach(),pn(),vn(n),void(e.root.parent=cn);const r=1===Zt(i);if(i===i.parent.left?i.parent.left=n:i.parent.right=n,i===t?n.parent=i.parent:(i.parent===t?n.parent=i:n.parent=i.parent,i.left=t.left,i.right=t.right,i.parent=t.parent,Jt(i,Zt(t)),t===e.root?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left!==cn&&(i.left.parent=i),i.right!==cn&&(i.right.parent=i)),t.detach(),r)return Cn(n.parent),i!==t&&(Cn(i),Cn(i.parent)),void pn();let s;for(Cn(n),Cn(n.parent),i!==t&&(Cn(i),Cn(i.parent));n!==e.root&&0===Zt(n);)n===n.parent.left?(s=n.parent.right,1===Zt(s)&&(Jt(s,0),Jt(n.parent,1),_n(e,n.parent),s=n.parent.right),0===Zt(s.left)&&0===Zt(s.right)?(Jt(s,1),n=n.parent):(0===Zt(s.right)&&(Jt(s.left,0),Jt(s,1),bn(e,s),s=n.parent.right),Jt(s,Zt(n.parent)),Jt(n.parent,0),Jt(s.right,0),_n(e,n.parent),n=e.root)):(s=n.parent.left,1===Zt(s)&&(Jt(s,0),Jt(n.parent,1),bn(e,n.parent),s=n.parent.left),0===Zt(s.left)&&0===Zt(s.right)?(Jt(s,1),n=n.parent):(0===Zt(s.left)&&(Jt(s.right,0),Jt(s,1),_n(e,s),s=n.parent.left),Jt(s,Zt(n.parent)),Jt(n.parent,0),Jt(s.left,0),bn(e,n.parent),n=e.root));Jt(n,0),pn()}function pn(){cn.parent=cn,cn.delta=0,cn.start=0,cn.end=0}function _n(e,t){const n=t.right;n.delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta,t.right=n.left,n.left!==cn&&(n.left.parent=t),n.parent=t.parent,t.parent===cn?e.root=n:t===t.parent.left?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n,vn(t),vn(n)}function bn(e,t){const n=t.left;t.delta-=n.delta,(t.delta<-1073741824||t.delta>1073741824)&&(e.requestNormalizeDelta=!0),t.start-=n.delta,t.end-=n.delta,t.left=n.right,n.right!==cn&&(n.right.parent=t),n.parent=t.parent,t.parent===cn?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n,vn(t),vn(n)}function kn(e){let t=e.end;if(e.left!==cn){const n=e.left.maxEnd;n>t&&(t=n)}if(e.right!==cn){const n=e.right.maxEnd+e.delta;n>t&&(t=n)}return t}function vn(e){e.maxEnd=kn(e)}function Cn(e){for(;e!==cn;){const t=kn(e);if(e.maxEnd===t)return;e.maxEnd=t,e=e.parent}}function Ln(e,t,n,i){return e===n?t-i:e-n}class yn{constructor(e,t){this.piece=e,this.color=t,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}next(){if(this.right!==wn)return Sn(this.right);let e=this;for(;e.parent!==wn&&e.parent.left!==e;)e=e.parent;return e.parent===wn?wn:e.parent}prev(){if(this.left!==wn)return xn(this.left);let e=this;for(;e.parent!==wn&&e.parent.right!==e;)e=e.parent;return e.parent===wn?wn:e.parent}detach(){this.parent=null,this.left=null,this.right=null}}const wn=new yn(null,0);function Sn(e){for(;e.left!==wn;)e=e.left;return e}function xn(e){for(;e.right!==wn;)e=e.right;return e}function En(e){return e===wn?0:e.size_left+e.piece.length+En(e.right)}function Nn(e){return e===wn?0:e.lf_left+e.piece.lineFeedCnt+Nn(e.right)}function In(){wn.parent=wn}function Tn(e,t){const n=t.right;n.size_left+=t.size_left+(t.piece?t.piece.length:0),n.lf_left+=t.lf_left+(t.piece?t.piece.lineFeedCnt:0),t.right=n.left,n.left!==wn&&(n.left.parent=t),n.parent=t.parent,t.parent===wn?e.root=n:t.parent.left===t?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n}function An(e,t){const n=t.left;t.left=n.right,n.right!==wn&&(n.right.parent=t),n.parent=t.parent,t.size_left-=n.size_left+(n.piece?n.piece.length:0),t.lf_left-=n.lf_left+(n.piece?n.piece.lineFeedCnt:0),t.parent===wn?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n}function Dn(e,t){let n,i;if(t.left===wn?(i=t,n=i.right):t.right===wn?(i=t,n=i.left):(i=Sn(t.right),n=i.right),i===e.root)return e.root=n,n.color=0,t.detach(),In(),void(e.root.parent=wn);const r=1===i.color;if(i===i.parent.left?i.parent.left=n:i.parent.right=n,i===t?(n.parent=i.parent,On(e,n)):(i.parent===t?n.parent=i:n.parent=i.parent,On(e,n),i.left=t.left,i.right=t.right,i.parent=t.parent,i.color=t.color,t===e.root?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left!==wn&&(i.left.parent=i),i.right!==wn&&(i.right.parent=i),i.size_left=t.size_left,i.lf_left=t.lf_left,On(e,i)),t.detach(),n.parent.left===n){const t=En(n),i=Nn(n);if(t!==n.parent.size_left||i!==n.parent.lf_left){const r=t-n.parent.size_left,s=i-n.parent.lf_left;n.parent.size_left=t,n.parent.lf_left=i,Mn(e,n.parent,r,s)}}if(On(e,n.parent),r)return void In();let s;for(;n!==e.root&&0===n.color;)n===n.parent.left?(s=n.parent.right,1===s.color&&(s.color=0,n.parent.color=1,Tn(e,n.parent),s=n.parent.right),0===s.left.color&&0===s.right.color?(s.color=1,n=n.parent):(0===s.right.color&&(s.left.color=0,s.color=1,An(e,s),s=n.parent.right),s.color=n.parent.color,n.parent.color=0,s.right.color=0,Tn(e,n.parent),n=e.root)):(s=n.parent.left,1===s.color&&(s.color=0,n.parent.color=1,An(e,n.parent),s=n.parent.left),0===s.left.color&&0===s.right.color?(s.color=1,n=n.parent):(0===s.left.color&&(s.right.color=0,s.color=1,Tn(e,s),s=n.parent.left),s.color=n.parent.color,n.parent.color=0,s.left.color=0,An(e,n.parent),n=e.root));n.color=0,In()}function Rn(e,t){for(On(e,t);t!==e.root&&1===t.parent.color;)if(t.parent===t.parent.parent.left){const n=t.parent.parent.right;1===n.color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.right&&Tn(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,An(e,t.parent.parent))}else{const n=t.parent.parent.left;1===n.color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.left&&An(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,Tn(e,t.parent.parent))}e.root.color=0}function Mn(e,t,n,i){for(;t!==e.root&&t!==wn;)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=i),t=t.parent}function On(e,t){let n=0,i=0;if(t!==e.root){for(;t!==e.root&&t===t.parent.right;)t=t.parent;if(t!==e.root)for(n=En((t=t.parent).left)-t.size_left,i=Nn(t.left)-t.lf_left,t.size_left+=n,t.lf_left+=i;t!==e.root&&(0!==n||0!==i);)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=i),t=t.parent}}wn.parent=wn,wn.left=wn,wn.right=wn,wn.color=0;var Bn=n(7729);const Fn=65535;function Pn(e){let t;return t=e[e.length-1]<65536?new Uint16Array(e.length):new Uint32Array(e.length),t.set(e,0),t}class zn{constructor(e,t,n,i,r){this.lineStarts=e,this.cr=t,this.lf=n,this.crlf=i,this.isBasicASCII=r}}function Vn(e,t=!0){const n=[0];let i=1;for(let r=0,s=e.length;r<s;r++){const t=e.charCodeAt(r);13===t?r+1<s&&10===e.charCodeAt(r+1)?(n[i++]=r+2,r++):n[i++]=r+1:10===t&&(n[i++]=r+1)}return t?Pn(n):n}class Wn{constructor(e,t,n,i,r){this.bufferIndex=e,this.start=t,this.end=n,this.lineFeedCnt=i,this.length=r}}class qn{constructor(e,t){this.buffer=e,this.lineStarts=t}}class Hn{constructor(e,t){this._pieces=[],this._tree=e,this._BOM=t,this._index=0,e.root!==wn&&e.iterate(e.root,(e=>(e!==wn&&this._pieces.push(e.piece),!0)))}read(){return 0===this._pieces.length?0===this._index?(this._index++,this._BOM):null:this._index>this._pieces.length-1?null:0===this._index?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])}}class Un{constructor(e){this._limit=e,this._cache=[]}get(e){for(let t=this._cache.length-1;t>=0;t--){const n=this._cache[t];if(n.nodeStartOffset<=e&&n.nodeStartOffset+n.node.piece.length>=e)return n}return null}get2(e){for(let t=this._cache.length-1;t>=0;t--){const n=this._cache[t];if(n.nodeStartLineNumber&&n.nodeStartLineNumber<e&&n.nodeStartLineNumber+n.node.piece.lineFeedCnt>=e)return n}return null}set(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)}validate(e){let t=!1;const n=this._cache;for(let i=0;i<n.length;i++){const r=n[i];(null===r.node.parent||r.nodeStartOffset>=e)&&(n[i]=null,t=!0)}if(t){const e=[];for(const t of n)null!==t&&e.push(t);this._cache=e}}}class jn{constructor(e,t,n){this.create(e,t,n)}create(e,t,n){this._buffers=[new qn("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=wn,this._lineCnt=1,this._length=0,this._EOL=t,this._EOLLength=t.length,this._EOLNormalized=n;let i=null;for(let r=0,s=e.length;r<s;r++)if(e[r].buffer.length>0){e[r].lineStarts||(e[r].lineStarts=Vn(e[r].buffer));const t=new Wn(r+1,{line:0,column:0},{line:e[r].lineStarts.length-1,column:e[r].buffer.length-e[r].lineStarts[e[r].lineStarts.length-1]},e[r].lineStarts.length-1,e[r].buffer.length);this._buffers.push(e[r]),i=this.rbInsertRight(i,t)}this._searchCache=new Un(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()}normalizeEOL(e){const t=Fn,n=t-Math.floor(21845),i=2*n;let r="",s=0;const o=[];if(this.iterate(this.root,(t=>{const a=this.getNodeContent(t),l=a.length;if(s<=n||s+l<i)return r+=a,s+=l,!0;const h=r.replace(/\r\n|\r|\n/g,e);return o.push(new qn(h,Vn(h))),r=a,s=l,!0})),s>0){const t=r.replace(/\r\n|\r|\n/g,e);o.push(new qn(t,Vn(t)))}this.create(o,e,!0)}getEOL(){return this._EOL}setEOL(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)}createSnapshot(e){return new Hn(this,e)}getOffsetAt(e,t){let n=0,i=this.root;for(;i!==wn;)if(i.left!==wn&&i.lf_left+1>=e)i=i.left;else{if(i.lf_left+i.piece.lineFeedCnt+1>=e){n+=i.size_left;return n+(this.getAccumulatedValue(i,e-i.lf_left-2)+t-1)}e-=i.lf_left+i.piece.lineFeedCnt,n+=i.size_left+i.piece.length,i=i.right}return n}getPositionAt(e){e=Math.floor(e),e=Math.max(0,e);let t=this.root,n=0;const i=e;for(;t!==wn;)if(0!==t.size_left&&t.size_left>=e)t=t.left;else{if(t.size_left+t.piece.length>=e){const r=this.getIndexOf(t,e-t.size_left);if(n+=t.lf_left+r.index,0===r.index){const e=i-this.getOffsetAt(n+1,1);return new f.y(n+1,e+1)}return new f.y(n+1,r.remainder+1)}if(e-=t.size_left+t.piece.length,n+=t.lf_left+t.piece.lineFeedCnt,t.right===wn){const t=i-e-this.getOffsetAt(n+1,1);return new f.y(n+1,t+1)}t=t.right}return new f.y(1,1)}getValueInRange(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";const n=this.nodeAt2(e.startLineNumber,e.startColumn),i=this.nodeAt2(e.endLineNumber,e.endColumn),r=this.getValueInRange2(n,i);return t?t===this._EOL&&this._EOLNormalized&&t===this.getEOL()&&this._EOLNormalized?r:r.replace(/\r\n|\r|\n/g,t):r}getValueInRange2(e,t){if(e.node===t.node){const n=e.node,i=this._buffers[n.piece.bufferIndex].buffer,r=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return i.substring(r+e.remainder,r+t.remainder)}let n=e.node;const i=this._buffers[n.piece.bufferIndex].buffer,r=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);let s=i.substring(r+e.remainder,r+n.piece.length);for(n=n.next();n!==wn;){const e=this._buffers[n.piece.bufferIndex].buffer,i=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);if(n===t.node){s+=e.substring(i,i+t.remainder);break}s+=e.substr(i,n.piece.length),n=n.next()}return s}getLinesContent(){const e=[];let t=0,n="",i=!1;return this.iterate(this.root,(r=>{if(r===wn)return!0;const s=r.piece;let o=s.length;if(0===o)return!0;const a=this._buffers[s.bufferIndex].buffer,l=this._buffers[s.bufferIndex].lineStarts,h=s.start.line,c=s.end.line;let u=l[h]+s.start.column;if(i&&(10===a.charCodeAt(u)&&(u++,o--),e[t++]=n,n="",i=!1,0===o))return!0;if(h===c)return this._EOLNormalized||13!==a.charCodeAt(u+o-1)?n+=a.substr(u,o):(i=!0,n+=a.substr(u,o-1)),!0;n+=this._EOLNormalized?a.substring(u,Math.max(u,l[h+1]-this._EOLLength)):a.substring(u,l[h+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=n;for(let i=h+1;i<c;i++)n=this._EOLNormalized?a.substring(l[i],l[i+1]-this._EOLLength):a.substring(l[i],l[i+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=n;return this._EOLNormalized||13!==a.charCodeAt(l[c]+s.end.column-1)?n=a.substr(l[c],s.end.column):(i=!0,0===s.end.column?t--:n=a.substr(l[c],s.end.column-1)),!0})),i&&(e[t++]=n,n=""),e[t++]=n,e}getLength(){return this._length}getLineCount(){return this._lineCnt}getLineContent(e){return this._lastVisitedLine.lineNumber===e||(this._lastVisitedLine.lineNumber=e,e===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(e):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(e,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(e).replace(/(\r\n|\r|\n)$/,"")),this._lastVisitedLine.value}_getCharCode(e){if(e.remainder===e.node.piece.length){const t=e.node.next();if(!t)return 0;const n=this._buffers[t.piece.bufferIndex],i=this.offsetInBuffer(t.piece.bufferIndex,t.piece.start);return n.buffer.charCodeAt(i)}{const t=this._buffers[e.node.piece.bufferIndex],n=this.offsetInBuffer(e.node.piece.bufferIndex,e.node.piece.start)+e.remainder;return t.buffer.charCodeAt(n)}}getLineCharCode(e,t){const n=this.nodeAt2(e,t+1);return this._getCharCode(n)}getLineLength(e){if(e===this.getLineCount()){const t=this.getOffsetAt(e,1);return this.getLength()-t}return this.getOffsetAt(e+1,1)-this.getOffsetAt(e,1)-this._EOLLength}findMatchesInNode(e,t,n,i,r,s,o,a,l,h,c){const u=this._buffers[e.piece.bufferIndex],d=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start),g=this.offsetInBuffer(e.piece.bufferIndex,r),f=this.offsetInBuffer(e.piece.bufferIndex,s);let p;const _={line:0,column:0};let b,k;t._wordSeparators?(b=u.buffer.substring(g,f),k=e=>e+g,t.reset(0)):(b=u.buffer,k=e=>e,t.reset(g));do{if(p=t.next(b),p){if(k(p.index)>=f)return h;this.positionInBuffer(e,k(p.index)-d,_);const t=this.getLineFeedCnt(e.piece.bufferIndex,r,_),s=_.line===r.line?_.column-r.column+i:_.column+1,o=s+p[0].length;if(c[h++]=(0,Bn.dr)(new m.Q(n+t,s,n+t,o),p,a),k(p.index)+p[0].length>=f)return h;if(h>=l)return h}}while(p);return h}findMatchesLineByLine(e,t,n,i){const r=[];let s=0;const o=new Bn.W5(t.wordSeparators,t.regex);let a=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===a)return[];const l=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===l)return[];let h=this.positionInBuffer(a.node,a.remainder);const c=this.positionInBuffer(l.node,l.remainder);if(a.node===l.node)return this.findMatchesInNode(a.node,o,e.startLineNumber,e.startColumn,h,c,t,n,i,s,r),r;let u=e.startLineNumber,d=a.node;for(;d!==l.node;){const l=this.getLineFeedCnt(d.piece.bufferIndex,h,d.piece.end);if(l>=1){const a=this._buffers[d.piece.bufferIndex].lineStarts,c=this.offsetInBuffer(d.piece.bufferIndex,d.piece.start),g=a[h.line+l],f=u===e.startLineNumber?e.startColumn:1;if(s=this.findMatchesInNode(d,o,u,f,h,this.positionInBuffer(d,g-c),t,n,i,s,r),s>=i)return r;u+=l}const c=u===e.startLineNumber?e.startColumn-1:0;if(u===e.endLineNumber){const a=this.getLineContent(u).substring(c,e.endColumn-1);return s=this._findMatchesInLine(t,o,a,e.endLineNumber,c,s,r,n,i),r}if(s=this._findMatchesInLine(t,o,this.getLineContent(u).substr(c),u,c,s,r,n,i),s>=i)return r;u++,a=this.nodeAt2(u,1),d=a.node,h=this.positionInBuffer(a.node,a.remainder)}if(u===e.endLineNumber){const a=u===e.startLineNumber?e.startColumn-1:0,l=this.getLineContent(u).substring(a,e.endColumn-1);return s=this._findMatchesInLine(t,o,l,e.endLineNumber,a,s,r,n,i),r}const g=u===e.startLineNumber?e.startColumn:1;return s=this.findMatchesInNode(l.node,o,u,g,h,c,t,n,i,s,r),r}_findMatchesInLine(e,t,n,i,r,s,o,a,l){const h=e.wordSeparators;if(!a&&e.simpleSearch){const t=e.simpleSearch,a=t.length,c=n.length;let u=-a;for(;-1!==(u=n.indexOf(t,u+a));)if((!h||(0,Bn.wC)(h,n,c,u,a))&&(o[s++]=new me.Dg(new m.Q(i,u+1+r,i,u+1+a+r),null),s>=l))return s;return s}let c;t.reset(0);do{if(c=t.next(n),c&&(o[s++]=(0,Bn.dr)(new m.Q(i,c.index+1+r,i,c.index+1+c[0].length+r),c,a),s>=l))return s}while(c);return s}insert(e,t,n=!1){if(this._EOLNormalized=this._EOLNormalized&&n,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==wn){const{node:n,remainder:i,nodeStartOffset:r}=this.nodeAt(e),s=n.piece,o=s.bufferIndex,a=this.positionInBuffer(n,i);if(0===n.piece.bufferIndex&&s.end.line===this._lastChangeBufferPos.line&&s.end.column===this._lastChangeBufferPos.column&&r+s.length===e&&t.length<Fn)return this.appendToNode(n,t),void this.computeBufferMetadata();if(r===e)this.insertContentToNodeLeft(t,n),this._searchCache.validate(e);else if(r+n.piece.length>e){const e=[];let r=new Wn(s.bufferIndex,a,s.end,this.getLineFeedCnt(s.bufferIndex,a,s.end),this.offsetInBuffer(o,s.end)-this.offsetInBuffer(o,a));if(this.shouldCheckCRLF()&&this.endWithCR(t)){if(10===this.nodeCharCodeAt(n,i)){const e={line:r.start.line+1,column:0};r=new Wn(r.bufferIndex,e,r.end,this.getLineFeedCnt(r.bufferIndex,e,r.end),r.length-1),t+="\n"}}if(this.shouldCheckCRLF()&&this.startWithLF(t)){if(13===this.nodeCharCodeAt(n,i-1)){const r=this.positionInBuffer(n,i-1);this.deleteNodeTail(n,r),t="\r"+t,0===n.piece.length&&e.push(n)}else this.deleteNodeTail(n,a)}else this.deleteNodeTail(n,a);const l=this.createNewPieces(t);r.length>0&&this.rbInsertRight(n,r);let h=n;for(let t=0;t<l.length;t++)h=this.rbInsertRight(h,l[t]);this.deleteNodes(e)}else this.insertContentToNodeRight(t,n)}else{const e=this.createNewPieces(t);let n=this.rbInsertLeft(null,e[0]);for(let t=1;t<e.length;t++)n=this.rbInsertRight(n,e[t])}this.computeBufferMetadata()}delete(e,t){if(this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",t<=0||this.root===wn)return;const n=this.nodeAt(e),i=this.nodeAt(e+t),r=n.node,s=i.node;if(r===s){const s=this.positionInBuffer(r,n.remainder),o=this.positionInBuffer(r,i.remainder);if(n.nodeStartOffset===e){if(t===r.piece.length){const e=r.next();return Dn(this,r),this.validateCRLFWithPrevNode(e),void this.computeBufferMetadata()}return this.deleteNodeHead(r,o),this._searchCache.validate(e),this.validateCRLFWithPrevNode(r),void this.computeBufferMetadata()}return n.nodeStartOffset+r.piece.length===e+t?(this.deleteNodeTail(r,s),this.validateCRLFWithNextNode(r),void this.computeBufferMetadata()):(this.shrinkNode(r,s,o),void this.computeBufferMetadata())}const o=[],a=this.positionInBuffer(r,n.remainder);this.deleteNodeTail(r,a),this._searchCache.validate(e),0===r.piece.length&&o.push(r);const l=this.positionInBuffer(s,i.remainder);this.deleteNodeHead(s,l),0===s.piece.length&&o.push(s);for(let c=r.next();c!==wn&&c!==s;c=c.next())o.push(c);const h=0===r.piece.length?r.prev():r;this.deleteNodes(o),this.validateCRLFWithNextNode(h),this.computeBufferMetadata()}insertContentToNodeLeft(e,t){const n=[];if(this.shouldCheckCRLF()&&this.endWithCR(e)&&this.startWithLF(t)){const i=t.piece,r={line:i.start.line+1,column:0},s=new Wn(i.bufferIndex,r,i.end,this.getLineFeedCnt(i.bufferIndex,r,i.end),i.length-1);t.piece=s,e+="\n",Mn(this,t,-1,-1),0===t.piece.length&&n.push(t)}const i=this.createNewPieces(e);let r=this.rbInsertLeft(t,i[i.length-1]);for(let s=i.length-2;s>=0;s--)r=this.rbInsertLeft(r,i[s]);this.validateCRLFWithPrevNode(r),this.deleteNodes(n)}insertContentToNodeRight(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+="\n");const n=this.createNewPieces(e),i=this.rbInsertRight(t,n[0]);let r=i;for(let s=1;s<n.length;s++)r=this.rbInsertRight(r,n[s]);this.validateCRLFWithPrevNode(i)}positionInBuffer(e,t,n){const i=e.piece,r=e.piece.bufferIndex,s=this._buffers[r].lineStarts,o=s[i.start.line]+i.start.column+t;let a=i.start.line,l=i.end.line,h=0,c=0,u=0;for(;a<=l&&(h=a+(l-a)/2|0,u=s[h],h!==l);)if(c=s[h+1],o<u)l=h-1;else{if(!(o>=c))break;a=h+1}return n?(n.line=h,n.column=o-u,null):{line:h,column:o-u}}getLineFeedCnt(e,t,n){if(0===n.column)return n.line-t.line;const i=this._buffers[e].lineStarts;if(n.line===i.length-1)return n.line-t.line;const r=i[n.line+1],s=i[n.line]+n.column;if(r>s+1)return n.line-t.line;const o=s-1;return 13===this._buffers[e].buffer.charCodeAt(o)?n.line-t.line+1:n.line-t.line}offsetInBuffer(e,t){return this._buffers[e].lineStarts[t.line]+t.column}deleteNodes(e){for(let t=0;t<e.length;t++)Dn(this,e[t])}createNewPieces(e){if(e.length>Fn){const t=[];for(;e.length>Fn;){const n=e.charCodeAt(65534);let i;13===n||n>=55296&&n<=56319?(i=e.substring(0,65534),e=e.substring(65534)):(i=e.substring(0,Fn),e=e.substring(Fn));const r=Vn(i);t.push(new Wn(this._buffers.length,{line:0,column:0},{line:r.length-1,column:i.length-r[r.length-1]},r.length-1,i.length)),this._buffers.push(new qn(i,r))}const n=Vn(e);return t.push(new Wn(this._buffers.length,{line:0,column:0},{line:n.length-1,column:e.length-n[n.length-1]},n.length-1,e.length)),this._buffers.push(new qn(e,n)),t}let t=this._buffers[0].buffer.length;const n=Vn(e,!1);let i=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===t&&0!==t&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},i=this._lastChangeBufferPos;for(let e=0;e<n.length;e++)n[e]+=t+1;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(n.slice(1)),this._buffers[0].buffer+="_"+e,t+=1}else{if(0!==t)for(let e=0;e<n.length;e++)n[e]+=t;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(n.slice(1)),this._buffers[0].buffer+=e}const r=this._buffers[0].buffer.length,s=this._buffers[0].lineStarts.length-1,o={line:s,column:r-this._buffers[0].lineStarts[s]},a=new Wn(0,i,o,this.getLineFeedCnt(0,i,o),r-t);return this._lastChangeBufferPos=o,[a]}getLineRawContent(e,t=0){let n=this.root,i="";const r=this._searchCache.get2(e);if(r){n=r.node;const s=this.getAccumulatedValue(n,e-r.nodeStartLineNumber-1),o=this._buffers[n.piece.bufferIndex].buffer,a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);if(r.nodeStartLineNumber+n.piece.lineFeedCnt!==e){const i=this.getAccumulatedValue(n,e-r.nodeStartLineNumber);return o.substring(a+s,a+i-t)}i=o.substring(a+s,a+n.piece.length)}else{let r=0;const s=e;for(;n!==wn;)if(n.left!==wn&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){const i=this.getAccumulatedValue(n,e-n.lf_left-2),o=this.getAccumulatedValue(n,e-n.lf_left-1),a=this._buffers[n.piece.bufferIndex].buffer,l=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return r+=n.size_left,this._searchCache.set({node:n,nodeStartOffset:r,nodeStartLineNumber:s-(e-1-n.lf_left)}),a.substring(l+i,l+o-t)}if(n.lf_left+n.piece.lineFeedCnt===e-1){const t=this.getAccumulatedValue(n,e-n.lf_left-2),r=this._buffers[n.piece.bufferIndex].buffer,s=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);i=r.substring(s+t,s+n.piece.length);break}e-=n.lf_left+n.piece.lineFeedCnt,r+=n.size_left+n.piece.length,n=n.right}}for(n=n.next();n!==wn;){const e=this._buffers[n.piece.bufferIndex].buffer;if(n.piece.lineFeedCnt>0){const r=this.getAccumulatedValue(n,0),s=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return i+=e.substring(s,s+r-t),i}{const t=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);i+=e.substr(t,n.piece.length)}n=n.next()}return i}computeBufferMetadata(){let e=this.root,t=1,n=0;for(;e!==wn;)t+=e.lf_left+e.piece.lineFeedCnt,n+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=n,this._searchCache.validate(this._length)}getIndexOf(e,t){const n=e.piece,i=this.positionInBuffer(e,t),r=i.line-n.start.line;if(this.offsetInBuffer(n.bufferIndex,n.end)-this.offsetInBuffer(n.bufferIndex,n.start)===t){const t=this.getLineFeedCnt(e.piece.bufferIndex,n.start,i);if(t!==r)return{index:t,remainder:0}}return{index:r,remainder:i.column}}getAccumulatedValue(e,t){if(t<0)return 0;const n=e.piece,i=this._buffers[n.bufferIndex].lineStarts,r=n.start.line+t+1;return r>n.end.line?i[n.end.line]+n.end.column-i[n.start.line]-n.start.column:i[r]-i[n.start.line]-n.start.column}deleteNodeTail(e,t){const n=e.piece,i=n.lineFeedCnt,r=this.offsetInBuffer(n.bufferIndex,n.end),s=t,o=this.offsetInBuffer(n.bufferIndex,s),a=this.getLineFeedCnt(n.bufferIndex,n.start,s),l=a-i,h=o-r,c=n.length+h;e.piece=new Wn(n.bufferIndex,n.start,s,a,c),Mn(this,e,h,l)}deleteNodeHead(e,t){const n=e.piece,i=n.lineFeedCnt,r=this.offsetInBuffer(n.bufferIndex,n.start),s=t,o=this.getLineFeedCnt(n.bufferIndex,s,n.end),a=o-i,l=r-this.offsetInBuffer(n.bufferIndex,s),h=n.length+l;e.piece=new Wn(n.bufferIndex,s,n.end,o,h),Mn(this,e,l,a)}shrinkNode(e,t,n){const i=e.piece,r=i.start,s=i.end,o=i.length,a=i.lineFeedCnt,l=t,h=this.getLineFeedCnt(i.bufferIndex,i.start,l),c=this.offsetInBuffer(i.bufferIndex,t)-this.offsetInBuffer(i.bufferIndex,r);e.piece=new Wn(i.bufferIndex,i.start,l,h,c),Mn(this,e,c-o,h-a);const u=new Wn(i.bufferIndex,n,s,this.getLineFeedCnt(i.bufferIndex,n,s),this.offsetInBuffer(i.bufferIndex,s)-this.offsetInBuffer(i.bufferIndex,n)),d=this.rbInsertRight(e,u);this.validateCRLFWithPrevNode(d)}appendToNode(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+="\n");const n=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),i=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;const r=Vn(t,!1);for(let u=0;u<r.length;u++)r[u]+=i;if(n){const e=this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-2];this._buffers[0].lineStarts.pop(),this._lastChangeBufferPos={line:this._lastChangeBufferPos.line-1,column:i-e}}this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(r.slice(1));const s=this._buffers[0].lineStarts.length-1,o={line:s,column:this._buffers[0].buffer.length-this._buffers[0].lineStarts[s]},a=e.piece.length+t.length,l=e.piece.lineFeedCnt,h=this.getLineFeedCnt(0,e.piece.start,o),c=h-l;e.piece=new Wn(e.piece.bufferIndex,e.piece.start,o,h,a),this._lastChangeBufferPos=o,Mn(this,e,t.length,c)}nodeAt(e){let t=this.root;const n=this._searchCache.get(e);if(n)return{node:n.node,nodeStartOffset:n.nodeStartOffset,remainder:e-n.nodeStartOffset};let i=0;for(;t!==wn;)if(t.size_left>e)t=t.left;else{if(t.size_left+t.piece.length>=e){i+=t.size_left;const n={node:t,remainder:e-t.size_left,nodeStartOffset:i};return this._searchCache.set(n),n}e-=t.size_left+t.piece.length,i+=t.size_left+t.piece.length,t=t.right}return null}nodeAt2(e,t){let n=this.root,i=0;for(;n!==wn;)if(n.left!==wn&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){const r=this.getAccumulatedValue(n,e-n.lf_left-2),s=this.getAccumulatedValue(n,e-n.lf_left-1);return i+=n.size_left,{node:n,remainder:Math.min(r+t-1,s),nodeStartOffset:i}}if(n.lf_left+n.piece.lineFeedCnt===e-1){const r=this.getAccumulatedValue(n,e-n.lf_left-2);if(r+t-1<=n.piece.length)return{node:n,remainder:r+t-1,nodeStartOffset:i};t-=n.piece.length-r;break}e-=n.lf_left+n.piece.lineFeedCnt,i+=n.size_left+n.piece.length,n=n.right}for(n=n.next();n!==wn;){if(n.piece.lineFeedCnt>0){const e=this.getAccumulatedValue(n,0),i=this.offsetOfNode(n);return{node:n,remainder:Math.min(t-1,e),nodeStartOffset:i}}if(n.piece.length>=t-1){return{node:n,remainder:t-1,nodeStartOffset:this.offsetOfNode(n)}}t-=n.piece.length,n=n.next()}return null}nodeCharCodeAt(e,t){if(e.piece.lineFeedCnt<1)return-1;const n=this._buffers[e.piece.bufferIndex],i=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return n.buffer.charCodeAt(i)}offsetOfNode(e){if(!e)return 0;let t=e.size_left;for(;e!==this.root;)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t}shouldCheckCRLF(){return!(this._EOLNormalized&&"\n"===this._EOL)}startWithLF(e){if("string"===typeof e)return 10===e.charCodeAt(0);if(e===wn||0===e.piece.lineFeedCnt)return!1;const t=e.piece,n=this._buffers[t.bufferIndex].lineStarts,i=t.start.line,r=n[i]+t.start.column;if(i===n.length-1)return!1;return!(n[i+1]>r+1)&&10===this._buffers[t.bufferIndex].buffer.charCodeAt(r)}endWithCR(e){return"string"===typeof e?13===e.charCodeAt(e.length-1):e!==wn&&0!==e.piece.lineFeedCnt&&13===this.nodeCharCodeAt(e,e.piece.length-1)}validateCRLFWithPrevNode(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){const t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}}validateCRLFWithNextNode(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}}fixCRLF(e,t){const n=[],i=this._buffers[e.piece.bufferIndex].lineStarts;let r;r=0===e.piece.end.column?{line:e.piece.end.line-1,column:i[e.piece.end.line]-i[e.piece.end.line-1]-1}:{line:e.piece.end.line,column:e.piece.end.column-1};const s=e.piece.length-1,o=e.piece.lineFeedCnt-1;e.piece=new Wn(e.piece.bufferIndex,e.piece.start,r,o,s),Mn(this,e,-1,-1),0===e.piece.length&&n.push(e);const a={line:t.piece.start.line+1,column:0},l=t.piece.length-1,h=this.getLineFeedCnt(t.piece.bufferIndex,a,t.piece.end);t.piece=new Wn(t.piece.bufferIndex,a,t.piece.end,h,l),Mn(this,t,-1,-1),0===t.piece.length&&n.push(t);const c=this.createNewPieces("\r\n");this.rbInsertRight(e,c[0]);for(let u=0;u<n.length;u++)Dn(this,n[u])}adjustCarriageReturnFromNext(e,t){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const n=t.next();if(this.startWithLF(n)){if(e+="\n",1===n.piece.length)Dn(this,n);else{const e=n.piece,t={line:e.start.line+1,column:0},i=e.length-1,r=this.getLineFeedCnt(e.bufferIndex,t,e.end);n.piece=new Wn(e.bufferIndex,t,e.end,r,i),Mn(this,n,-1,-1)}return!0}}return!1}iterate(e,t){if(e===wn)return t(wn);const n=this.iterate(e.left,t);return n?t(e)&&this.iterate(e.right,t):n}getNodeContent(e){if(e===wn)return"";const t=this._buffers[e.piece.bufferIndex],n=e.piece,i=this.offsetInBuffer(n.bufferIndex,n.start),r=this.offsetInBuffer(n.bufferIndex,n.end);return t.buffer.substring(i,r)}getPieceContent(e){const t=this._buffers[e.bufferIndex],n=this.offsetInBuffer(e.bufferIndex,e.start),i=this.offsetInBuffer(e.bufferIndex,e.end);return t.buffer.substring(n,i)}rbInsertRight(e,t){const n=new yn(t,1);n.left=wn,n.right=wn,n.parent=wn,n.size_left=0,n.lf_left=0;if(this.root===wn)this.root=n,n.color=0;else if(e.right===wn)e.right=n,n.parent=e;else{const t=Sn(e.right);t.left=n,n.parent=t}return Rn(this,n),n}rbInsertLeft(e,t){const n=new yn(t,1);if(n.left=wn,n.right=wn,n.parent=wn,n.size_left=0,n.lf_left=0,this.root===wn)this.root=n,n.color=0;else if(e.left===wn)e.left=n,n.parent=e;else{const t=xn(e.left);t.right=n,n.parent=t}return Rn(this,n),n}}class Kn extends r.jG{constructor(e,t,n,r,s,o,a){super(),this._onDidChangeContent=this._register(new i.vl),this._BOM=t,this._mightContainNonBasicASCII=!o,this._mightContainRTL=r,this._mightContainUnusualLineTerminators=s,this._pieceTree=new jn(e,n,a)}mightContainRTL(){return this._mightContainRTL}mightContainUnusualLineTerminators(){return this._mightContainUnusualLineTerminators}resetMightContainUnusualLineTerminators(){this._mightContainUnusualLineTerminators=!1}mightContainNonBasicASCII(){return this._mightContainNonBasicASCII}getBOM(){return this._BOM}getEOL(){return this._pieceTree.getEOL()}createSnapshot(e){return this._pieceTree.createSnapshot(e?this._BOM:"")}getOffsetAt(e,t){return this._pieceTree.getOffsetAt(e,t)}getPositionAt(e){return this._pieceTree.getPositionAt(e)}getRangeAt(e,t){const n=e+t,i=this.getPositionAt(e),r=this.getPositionAt(n);return new m.Q(i.lineNumber,i.column,r.lineNumber,r.column)}getValueInRange(e,t=0){if(e.isEmpty())return"";const n=this._getEndOfLine(t);return this._pieceTree.getValueInRange(e,n)}getValueLengthInRange(e,t=0){if(e.isEmpty())return 0;if(e.startLineNumber===e.endLineNumber)return e.endColumn-e.startColumn;const n=this.getOffsetAt(e.startLineNumber,e.startColumn),i=this.getOffsetAt(e.endLineNumber,e.endColumn);let r=0;const s=this._getEndOfLine(t),o=this.getEOL();if(s.length!==o.length){r=(s.length-o.length)*(e.endLineNumber-e.startLineNumber)}return i-n+r}getCharacterCountInRange(e,t=0){if(this._mightContainNonBasicASCII){let n=0;const i=e.startLineNumber,r=e.endLineNumber;for(let t=i;t<=r;t++){const s=this.getLineContent(t),o=t===i?e.startColumn-1:0,a=t===r?e.endColumn-1:s.length;for(let e=o;e<a;e++)h.pc(s.charCodeAt(e))?(n+=1,e+=1):n+=1}return n+=this._getEndOfLine(t).length*(r-i),n}return this.getValueLengthInRange(e,t)}getLength(){return this._pieceTree.getLength()}getLineCount(){return this._pieceTree.getLineCount()}getLinesContent(){return this._pieceTree.getLinesContent()}getLineContent(e){return this._pieceTree.getLineContent(e)}getLineCharCode(e,t){return this._pieceTree.getLineCharCode(e,t)}getLineLength(e){return this._pieceTree.getLineLength(e)}getLineFirstNonWhitespaceColumn(e){const t=h.HG(this.getLineContent(e));return-1===t?0:t+1}getLineLastNonWhitespaceColumn(e){const t=h.lT(this.getLineContent(e));return-1===t?0:t+2}_getEndOfLine(e){switch(e){case 1:return"\n";case 2:return"\r\n";case 0:return this.getEOL();default:throw new Error("Unknown EOL preference")}}setEOL(e){this._pieceTree.setEOL(e)}applyEdits(e,t,n){let i=this._mightContainRTL,r=this._mightContainUnusualLineTerminators,s=this._mightContainNonBasicASCII,o=!0,a=[];for(let p=0;p<e.length;p++){const t=e[p];o&&t._isTracked&&(o=!1);const n=t.range;if(t.text){let e=!0;s||(e=!h.aC(t.text),s=e),!i&&e&&(i=h.E_(t.text)),!r&&e&&(r=h.$X(t.text))}let l="",c=0,d=0,g=0;if(t.text){let e;[c,d,g,e]=(0,u.W)(t.text);const n=this.getEOL();l=0===e||e===("\r\n"===n?2:1)?t.text:t.text.replace(/\r\n|\r|\n/g,n)}a[p]={sortIndex:p,identifier:t.identifier||null,range:n,rangeOffset:this.getOffsetAt(n.startLineNumber,n.startColumn),rangeLength:this.getValueLengthInRange(n),text:l,eolCount:c,firstLineLength:d,lastLineLength:g,forceMoveMarkers:Boolean(t.forceMoveMarkers),isAutoWhitespaceEdit:t.isAutoWhitespaceEdit||!1}}a.sort(Kn._sortOpsAscending);let l=!1;for(let h=0,u=a.length-1;h<u;h++){const e=a[h].range.getEndPosition(),t=a[h+1].range.getStartPosition();if(t.isBeforeOrEqual(e)){if(t.isBefore(e))throw new Error("Overlapping ranges are not allowed!");l=!0}}o&&(a=this._reduceOperations(a));const c=n||t?Kn._getInverseEditRanges(a):[],d=[];if(t)for(let u=0;u<a.length;u++){const e=a[u],t=c[u];if(e.isAutoWhitespaceEdit&&e.range.isEmpty())for(let n=t.startLineNumber;n<=t.endLineNumber;n++){let i="";n===t.startLineNumber&&(i=this.getLineContent(e.range.startLineNumber),-1!==h.HG(i))||d.push({lineNumber:n,oldContent:i})}}let g=null;if(n){let e=0;g=[];for(let t=0;t<a.length;t++){const n=a[t],i=c[t],r=this.getValueInRange(n.range),s=n.rangeOffset+e;e+=n.text.length-r.length,g[t]={sortIndex:n.sortIndex,identifier:n.identifier,range:i,text:r,textChange:new Dt(n.rangeOffset,r,s,n.text)}}l||g.sort(((e,t)=>e.sortIndex-t.sortIndex))}this._mightContainRTL=i,this._mightContainUnusualLineTerminators=r,this._mightContainNonBasicASCII=s;const f=this._doApplyEdits(a);let m=null;if(t&&d.length>0){d.sort(((e,t)=>t.lineNumber-e.lineNumber)),m=[];for(let e=0,t=d.length;e<t;e++){const t=d[e].lineNumber;if(e>0&&d[e-1].lineNumber===t)continue;const n=d[e].oldContent,i=this.getLineContent(t);0!==i.length&&i!==n&&-1===h.HG(i)&&m.push(t)}}return this._onDidChangeContent.fire(),new me.F4(g,f,m)}_reduceOperations(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]}_toSingleEditOperation(e){let t=!1;const n=e[0].range,i=e[e.length-1].range,r=new m.Q(n.startLineNumber,n.startColumn,i.endLineNumber,i.endColumn);let s=n.startLineNumber,o=n.startColumn;const a=[];for(let u=0,g=e.length;u<g;u++){const n=e[u],i=n.range;t=t||n.forceMoveMarkers,a.push(this.getValueInRange(new m.Q(s,o,i.startLineNumber,i.startColumn))),n.text.length>0&&a.push(n.text),s=i.endLineNumber,o=i.endColumn}const l=a.join(""),[h,c,d]=(0,u.W)(l);return{sortIndex:0,identifier:e[0].identifier,range:r,rangeOffset:this.getOffsetAt(r.startLineNumber,r.startColumn),rangeLength:this.getValueLengthInRange(r,0),text:l,eolCount:h,firstLineLength:c,lastLineLength:d,forceMoveMarkers:t,isAutoWhitespaceEdit:!1}}_doApplyEdits(e){e.sort(Kn._sortOpsDescending);const t=[];for(let n=0;n<e.length;n++){const i=e[n],r=i.range.startLineNumber,s=i.range.startColumn,o=i.range.endLineNumber,a=i.range.endColumn;if(r===o&&s===a&&0===i.text.length)continue;i.text?(this._pieceTree.delete(i.rangeOffset,i.rangeLength),this._pieceTree.insert(i.rangeOffset,i.text,!0)):this._pieceTree.delete(i.rangeOffset,i.rangeLength);const l=new m.Q(r,s,o,a);t.push({range:l,rangeLength:i.rangeLength,text:i.text,rangeOffset:i.rangeOffset,forceMoveMarkers:i.forceMoveMarkers})}return t}findMatchesLineByLine(e,t,n,i){return this._pieceTree.findMatchesLineByLine(e,t,n,i)}static _getInverseEditRanges(e){const t=[];let n=0,i=0,r=null;for(let s=0,o=e.length;s<o;s++){const o=e[s];let a,l,h;if(r?r.range.endLineNumber===o.range.startLineNumber?(a=n,l=i+(o.range.startColumn-r.range.endColumn)):(a=n+(o.range.startLineNumber-r.range.endLineNumber),l=o.range.startColumn):(a=o.range.startLineNumber,l=o.range.startColumn),o.text.length>0){const e=o.eolCount+1;h=1===e?new m.Q(a,l,a,l+o.firstLineLength):new m.Q(a,l,a+e-1,o.lastLineLength+1)}else h=new m.Q(a,l,a,l);n=h.endLineNumber,i=h.endColumn,t.push(h),r=o}return t}static _sortOpsAscending(e,t){const n=m.Q.compareRangesUsingEnds(e.range,t.range);return 0===n?e.sortIndex-t.sortIndex:n}static _sortOpsDescending(e,t){const n=m.Q.compareRangesUsingEnds(e.range,t.range);return 0===n?t.sortIndex-e.sortIndex:-n}}class $n{constructor(e,t,n,i,r,s,o,a,l){this._chunks=e,this._bom=t,this._cr=n,this._lf=i,this._crlf=r,this._containsRTL=s,this._containsUnusualLineTerminators=o,this._isBasicASCII=a,this._normalizeEOL=l}_getEOL(e){const t=this._cr+this._lf+this._crlf,n=this._cr+this._crlf;return 0===t?1===e?"\n":"\r\n":n>t/2?"\r\n":"\n"}create(e){const t=this._getEOL(e),n=this._chunks;if(this._normalizeEOL&&("\r\n"===t&&(this._cr>0||this._lf>0)||"\n"===t&&(this._cr>0||this._crlf>0)))for(let r=0,s=n.length;r<s;r++){const e=n[r].buffer.replace(/\r\n|\r|\n/g,t),i=Vn(e);n[r]=new qn(e,i)}const i=new Kn(n,this._bom,t,this._containsRTL,this._containsUnusualLineTerminators,this._isBasicASCII,this._normalizeEOL);return{textBuffer:i,disposable:i}}}class Gn{constructor(){this.chunks=[],this.BOM="",this._hasPreviousChar=!1,this._previousChar=0,this._tmpLineStarts=[],this.cr=0,this.lf=0,this.crlf=0,this.containsRTL=!1,this.containsUnusualLineTerminators=!1,this.isBasicASCII=!0}acceptChunk(e){if(0===e.length)return;0===this.chunks.length&&h.LU(e)&&(this.BOM=h.r_,e=e.substr(1));const t=e.charCodeAt(e.length-1);13===t||t>=55296&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0,this._previousChar=t):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1,this._previousChar=t)}_acceptChunk1(e,t){(t||0!==e.length)&&(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))}_acceptChunk2(e){const t=function(e,t){e.length=0,e[0]=0;let n=1,i=0,r=0,s=0,o=!0;for(let l=0,h=t.length;l<h;l++){const a=t.charCodeAt(l);13===a?l+1<h&&10===t.charCodeAt(l+1)?(s++,e[n++]=l+2,l++):(i++,e[n++]=l+1):10===a?(r++,e[n++]=l+1):o&&9!==a&&(a<32||a>126)&&(o=!1)}const a=new zn(Pn(e),i,r,s,o);return e.length=0,a}(this._tmpLineStarts,e);this.chunks.push(new qn(e,t.lineStarts)),this.cr+=t.cr,this.lf+=t.lf,this.crlf+=t.crlf,t.isBasicASCII||(this.isBasicASCII=!1,this.containsRTL||(this.containsRTL=h.E_(e)),this.containsUnusualLineTerminators||(this.containsUnusualLineTerminators=h.$X(e)))}finish(e=!0){return this._finish(),new $n(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,e)}_finish(){if(0===this.chunks.length&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;const e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);const t=Vn(e.buffer);e.lineStarts=t,13===this._previousChar&&this.cr++}}}var Qn=n(6571),Yn=n(2083),Xn=n(1940),Zn=n(8381),Jn=n(4444);const ei=new class{clone(){return this}equals(e){return this===e}};class ti{constructor(e){this._default=e,this._store=[]}get(e){return e<this._store.length?this._store[e]:this._default}set(e,t){for(;e>=this._store.length;)this._store[this._store.length]=this._default;this._store[e]=t}replace(e,t,n){if(e>=this._store.length)return;if(0===t)return void this.insert(e,n);if(0===n)return void this.delete(e,t);const i=this._store.slice(0,e),r=this._store.slice(e+t),s=function(e,t){const n=[];for(let i=0;i<e;i++)n[i]=t;return n}(n,this._default);this._store=i.concat(s,r)}delete(e,t){0===t||e>=this._store.length||this._store.splice(e,t)}insert(e,t){if(0===t||e>=this._store.length)return;const n=[];for(let i=0;i<t;i++)n[i]=this._default;this._store=(0,o.nK)(this._store,e,n)}}class ni{get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._startLineNumber+this._tokens.length-1}constructor(e,t){this._startLineNumber=e,this._tokens=t}getLineTokens(e){return this._tokens[e-this._startLineNumber]}appendLineTokens(e){this._tokens.push(e)}}class ii{constructor(){this._tokens=[]}add(e,t){if(this._tokens.length>0){const n=this._tokens[this._tokens.length-1];if(n.endLineNumber+1===e)return void n.appendLineTokens(t)}this._tokens.push(new ni(e,[t]))}finalize(){return this._tokens}}class ri{static{this.defaultTokenMetadata=33587200}static createEmpty(e,t){const n=ri.defaultTokenMetadata,i=new Uint32Array(2);return i[0]=e.length,i[1]=n,new ri(i,e,t)}static createFromTextAndMetadata(e,t){let n=0,i="";const r=new Array;for(const{text:s,metadata:o}of e)r.push(n+s.length,o),n+=s.length,i+=s;return new ri(new Uint32Array(r),i,t)}constructor(e,t,n){this._lineTokensBrand=void 0,this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t,this.languageIdCodec=n}equals(e){return e instanceof ri&&this.slicedEquals(e,0,this._tokensCount)}slicedEquals(e,t,n){if(this._text!==e._text)return!1;if(this._tokensCount!==e._tokensCount)return!1;const i=t<<1,r=i+(n<<1);for(let s=i;s<r;s++)if(this._tokens[s]!==e._tokens[s])return!1;return!0}getLineContent(){return this._text}getCount(){return this._tokensCount}getStartOffset(e){return e>0?this._tokens[e-1<<1]:0}getMetadata(e){return this._tokens[1+(e<<1)]}getLanguageId(e){const t=this._tokens[1+(e<<1)],n=Ze.x.getLanguageId(t);return this.languageIdCodec.decodeLanguageId(n)}getStandardTokenType(e){const t=this._tokens[1+(e<<1)];return Ze.x.getTokenType(t)}getForeground(e){const t=this._tokens[1+(e<<1)];return Ze.x.getForeground(t)}getClassName(e){const t=this._tokens[1+(e<<1)];return Ze.x.getClassNameFromMetadata(t)}getInlineStyle(e,t){const n=this._tokens[1+(e<<1)];return Ze.x.getInlineStyleFromMetadata(n,t)}getPresentation(e){const t=this._tokens[1+(e<<1)];return Ze.x.getPresentationFromMetadata(t)}getEndOffset(e){return this._tokens[e<<1]}findTokenIndexAtOffset(e){return ri.findIndexInTokensArray(this._tokens,e)}inflate(){return this}sliceAndInflate(e,t,n){return new si(this,e,t,n)}static convertToEndOffset(e,t){const n=(e.length>>>1)-1;for(let i=0;i<n;i++)e[i<<1]=e[i+1<<1];e[n<<1]=t}static findIndexInTokensArray(e,t){if(e.length<=2)return 0;let n=0,i=(e.length>>>1)-1;for(;n<i;){const r=n+Math.floor((i-n)/2),s=e[r<<1];if(s===t)return r+1;s<t?n=r+1:s>t&&(i=r)}return n}withInserted(e){if(0===e.length)return this;let t=0,n=0,i="";const r=new Array;let s=0;for(;;){const o=t<this._tokensCount?this._tokens[t<<1]:-1,a=n<e.length?e[n]:null;if(-1!==o&&(null===a||o<=a.offset)){i+=this._text.substring(s,o);const e=this._tokens[1+(t<<1)];r.push(i.length,e),t++,s=o}else{if(!a)break;if(a.offset>s){i+=this._text.substring(s,a.offset);const e=this._tokens[1+(t<<1)];r.push(i.length,e),s=a.offset}i+=a.text,r.push(i.length,a.tokenMetadata),n++}}return new ri(new Uint32Array(r),i,this.languageIdCodec)}getTokenText(e){const t=this.getStartOffset(e),n=this.getEndOffset(e);return this._text.substring(t,n)}forEach(e){const t=this.getCount();for(let n=0;n<t;n++)e(n)}}class si{constructor(e,t,n,i){this._source=e,this._startOffset=t,this._endOffset=n,this._deltaOffset=i,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this.languageIdCodec=e.languageIdCodec,this._tokensCount=0;for(let r=this._firstTokenIndex,s=e.getCount();r<s;r++){if(e.getStartOffset(r)>=n)break;this._tokensCount++}}getMetadata(e){return this._source.getMetadata(this._firstTokenIndex+e)}getLanguageId(e){return this._source.getLanguageId(this._firstTokenIndex+e)}getLineContent(){return this._source.getLineContent().substring(this._startOffset,this._endOffset)}equals(e){return e instanceof si&&(this._startOffset===e._startOffset&&this._endOffset===e._endOffset&&this._deltaOffset===e._deltaOffset&&this._source.slicedEquals(e._source,this._firstTokenIndex,this._tokensCount))}getCount(){return this._tokensCount}getStandardTokenType(e){return this._source.getStandardTokenType(this._firstTokenIndex+e)}getForeground(e){return this._source.getForeground(this._firstTokenIndex+e)}getEndOffset(e){const t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset}getClassName(e){return this._source.getClassName(this._firstTokenIndex+e)}getInlineStyle(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)}getPresentation(e){return this._source.getPresentation(this._firstTokenIndex+e)}findTokenIndexAtOffset(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex}getTokenText(e){const t=this._firstTokenIndex+e,n=this._source.getStartOffset(t),i=this._source.getEndOffset(t);let r=this._source.getTokenText(t);return n<this._startOffset&&(r=r.substring(this._startOffset-n)),i>this._endOffset&&(r=r.substring(0,r.length-(i-this._endOffset))),r}forEach(e){for(let t=0;t<this.getCount();t++)e(t)}}class oi{constructor(e,t){this.tokenizationSupport=t,this.initialState=this.tokenizationSupport.getInitialState(),this.store=new li(e)}getStartState(e){return this.store.getStartState(e,this.initialState)}getFirstInvalidLine(){return this.store.getFirstInvalidLine(this.initialState)}}class ai extends oi{constructor(e,t,n,i){super(e,t),this._textModel=n,this._languageIdCodec=i}updateTokensUntilLine(e,t){const n=this._textModel.getLanguageId();for(;;){const i=this.getFirstInvalidLine();if(!i||i.lineNumber>t)break;const r=this._textModel.getLineContent(i.lineNumber),s=ui(this._languageIdCodec,n,this.tokenizationSupport,r,!0,i.startState);e.add(i.lineNumber,s.tokens),this.store.setEndState(i.lineNumber,s.endState)}}getTokenTypeIfInsertingCharacter(e,t){const n=this.getStartState(e.lineNumber);if(!n)return 0;const i=this._textModel.getLanguageId(),r=this._textModel.getLineContent(e.lineNumber),s=r.substring(0,e.column-1)+t+r.substring(e.column-1),o=ui(this._languageIdCodec,i,this.tokenizationSupport,s,!0,n),a=new ri(o.tokens,s,this._languageIdCodec);if(0===a.getCount())return 0;const l=a.findTokenIndexAtOffset(e.column-1);return a.getStandardTokenType(l)}tokenizeLineWithEdit(e,t,n){const i=e.lineNumber,r=e.column,s=this.getStartState(i);if(!s)return null;const o=this._textModel.getLineContent(i),a=o.substring(0,r-1)+n+o.substring(r-1+t),l=this._textModel.getLanguageIdAtPosition(i,0),h=ui(this._languageIdCodec,l,this.tokenizationSupport,a,!0,s);return new ri(h.tokens,a,this._languageIdCodec)}hasAccurateTokensForLine(e){return e<this.store.getFirstInvalidEndStateLineNumberOrMax()}isCheapToTokenize(e){const t=this.store.getFirstInvalidEndStateLineNumberOrMax();return e<t||e===t&&this._textModel.getLineLength(e)<2048}tokenizeHeuristically(e,t,n){if(n<=this.store.getFirstInvalidEndStateLineNumberOrMax())return{heuristicTokens:!1};if(t<=this.store.getFirstInvalidEndStateLineNumberOrMax())return this.updateTokensUntilLine(e,n),{heuristicTokens:!1};let i=this.guessStartState(t);const r=this._textModel.getLanguageId();for(let s=t;s<=n;s++){const t=this._textModel.getLineContent(s),n=ui(this._languageIdCodec,r,this.tokenizationSupport,t,!0,i);e.add(s,n.tokens),i=n.endState}return{heuristicTokens:!0}}guessStartState(e){let t=this._textModel.getLineFirstNonWhitespaceColumn(e);const n=[];let i=null;for(let o=e-1;t>1&&o>=1;o--){const e=this._textModel.getLineFirstNonWhitespaceColumn(o);if(0!==e&&(e<t&&(n.push(this._textModel.getLineContent(o)),t=e,i=this.getStartState(o),i)))break}i||(i=this.tokenizationSupport.getInitialState()),n.reverse();const r=this._textModel.getLanguageId();let s=i;for(const o of n){s=ui(this._languageIdCodec,r,this.tokenizationSupport,o,!1,s).endState}return s}}class li{constructor(e){this.lineCount=e,this._tokenizationStateStore=new hi,this._invalidEndStatesLineNumbers=new ci,this._invalidEndStatesLineNumbers.addRange(new Jn.L(1,e+1))}getEndState(e){return this._tokenizationStateStore.getEndState(e)}setEndState(e,t){if(!t)throw new l.D7("Cannot set null/undefined state");this._invalidEndStatesLineNumbers.delete(e);const n=this._tokenizationStateStore.setEndState(e,t);return n&&e<this.lineCount&&this._invalidEndStatesLineNumbers.addRange(new Jn.L(e+1,e+2)),n}acceptChange(e,t){this.lineCount+=t-e.length,this._tokenizationStateStore.acceptChange(e,t),this._invalidEndStatesLineNumbers.addRangeAndResize(new Jn.L(e.startLineNumber,e.endLineNumberExclusive),t)}acceptChanges(e){for(const t of e){const[e]=(0,u.W)(t.text);this.acceptChange(new Qn.M(t.range.startLineNumber,t.range.endLineNumber+1),e+1)}}invalidateEndStateRange(e){this._invalidEndStatesLineNumbers.addRange(new Jn.L(e.startLineNumber,e.endLineNumberExclusive))}getFirstInvalidEndStateLineNumber(){return this._invalidEndStatesLineNumbers.min}getFirstInvalidEndStateLineNumberOrMax(){return this.getFirstInvalidEndStateLineNumber()||Number.MAX_SAFE_INTEGER}allStatesValid(){return null===this._invalidEndStatesLineNumbers.min}getStartState(e,t){return 1===e?t:this.getEndState(e-1)}getFirstInvalidLine(e){const t=this.getFirstInvalidEndStateLineNumber();if(null===t)return null;const n=this.getStartState(t,e);if(!n)throw new l.D7("Start state must be defined");return{lineNumber:t,startState:n}}}class hi{constructor(){this._lineEndStates=new ti(null)}getEndState(e){return this._lineEndStates.get(e)}setEndState(e,t){const n=this._lineEndStates.get(e);return(!n||!n.equals(t))&&(this._lineEndStates.set(e,t),!0)}acceptChange(e,t){let n=e.length;t>0&&n>0&&(n--,t--),this._lineEndStates.replace(e.startLineNumber,n,t)}}class ci{constructor(){this._ranges=[]}get min(){return 0===this._ranges.length?null:this._ranges[0].start}delete(e){const t=this._ranges.findIndex((t=>t.contains(e)));if(-1!==t){const n=this._ranges[t];n.start===e?n.endExclusive===e+1?this._ranges.splice(t,1):this._ranges[t]=new Jn.L(e+1,n.endExclusive):n.endExclusive===e+1?this._ranges[t]=new Jn.L(n.start,e):this._ranges.splice(t,1,new Jn.L(n.start,e),new Jn.L(e+1,n.endExclusive))}}addRange(e){Jn.L.addRange(e,this._ranges)}addRangeAndResize(e,t){let n=0;for(;!(n>=this._ranges.length||e.start<=this._ranges[n].endExclusive);)n++;let i=n;for(;!(i>=this._ranges.length||e.endExclusive<this._ranges[i].start);)i++;const r=t-e.length;for(let s=i;s<this._ranges.length;s++)this._ranges[s]=this._ranges[s].delta(r);if(n===i){const i=new Jn.L(e.start,e.start+t);i.isEmpty||this._ranges.splice(n,0,i)}else{const t=Math.min(e.start,this._ranges[n].start),s=Math.max(e.endExclusive,this._ranges[i-1].endExclusive),o=new Jn.L(t,s+r);o.isEmpty?this._ranges.splice(n,i-n):this._ranges.splice(n,i-n,o)}}toString(){return this._ranges.map((e=>e.toString())).join(" + ")}}function ui(e,t,n,i,r,s){let o=null;if(n)try{o=n.tokenizeEncoded(i,r,s.clone())}catch(a){(0,l.dz)(a)}return o||(o=function(e,t){const n=new Uint32Array(2);return n[0]=0,n[1]=(32768|e|2<<24)>>>0,new Yn.rY(n,null===t?ei:t)}(e.encodeLanguageId(t),s)),ri.convertToEndOffset(o.tokens,i.length),o}class di{constructor(e,t){this._tokenizerWithStateStore=e,this._backgroundTokenStore=t,this._isDisposed=!1,this._isScheduled=!1}dispose(){this._isDisposed=!0}handleChanges(){this._beginBackgroundTokenization()}_beginBackgroundTokenization(){!this._isScheduled&&this._tokenizerWithStateStore._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&(this._isScheduled=!0,(0,Xn.$6)((e=>{this._isScheduled=!1,this._backgroundTokenizeWithDeadline(e)})))}_backgroundTokenizeWithDeadline(e){const t=Date.now()+e.timeRemaining(),n=()=>{!this._isDisposed&&this._tokenizerWithStateStore._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&(this._backgroundTokenizeForAtLeast1ms(),Date.now()<t?(0,s._p)(n):this._beginBackgroundTokenization())};n()}_backgroundTokenizeForAtLeast1ms(){const e=this._tokenizerWithStateStore._textModel.getLineCount(),t=new ii,n=Zn.W.create(!1);do{if(n.elapsed()>1)break;if(this._tokenizeOneInvalidLine(t)>=e)break}while(this._hasLinesToTokenize());this._backgroundTokenStore.setTokens(t.finalize()),this.checkFinished()}_hasLinesToTokenize(){return!!this._tokenizerWithStateStore&&!this._tokenizerWithStateStore.store.allStatesValid()}_tokenizeOneInvalidLine(e){const t=this._tokenizerWithStateStore?.getFirstInvalidLine();return t?(this._tokenizerWithStateStore.updateTokensUntilLine(e,t.lineNumber),t.lineNumber):this._tokenizerWithStateStore._textModel.getLineCount()+1}checkFinished(){this._isDisposed||this._tokenizerWithStateStore.store.allStatesValid()&&this._backgroundTokenStore.backgroundTokenizationFinished()}requestTokens(e,t){this._tokenizerWithStateStore.store.invalidateEndStateRange(new Qn.M(e,t))}}class gi{constructor(){this._onDidChangeVisibleRanges=new i.vl,this.onDidChangeVisibleRanges=this._onDidChangeVisibleRanges.event,this._views=new Set}attachView(){const e=new fi((t=>{this._onDidChangeVisibleRanges.fire({view:e,state:t})}));return this._views.add(e),e}detachView(e){this._views.delete(e),this._onDidChangeVisibleRanges.fire({view:e,state:void 0})}}class fi{constructor(e){this.handleStateChange=e}setVisibleLines(e,t){const n=e.map((e=>new Qn.M(e.startLineNumber,e.endLineNumber+1)));this.handleStateChange({visibleLineRanges:n,stabilized:t})}}class mi extends r.jG{get lineRanges(){return this._lineRanges}constructor(e){super(),this._refreshTokens=e,this.runner=this._register(new Xn.uC((()=>this.update()),50)),this._computedLineRanges=[],this._lineRanges=[]}update(){(0,o.aI)(this._computedLineRanges,this._lineRanges,((e,t)=>e.equals(t)))||(this._computedLineRanges=this._lineRanges,this._refreshTokens())}handleStateChange(e){this._lineRanges=e.visibleLineRanges,e.stabilized?(this.runner.cancel(),this.update()):this.runner.schedule()}}class pi extends r.jG{get backgroundTokenizationState(){return this._backgroundTokenizationState}constructor(e,t,n){super(),this._languageIdCodec=e,this._textModel=t,this.getLanguageId=n,this._backgroundTokenizationState=1,this._onDidChangeBackgroundTokenizationState=this._register(new i.vl),this.onDidChangeBackgroundTokenizationState=this._onDidChangeBackgroundTokenizationState.event,this._onDidChangeTokens=this._register(new i.vl),this.onDidChangeTokens=this._onDidChangeTokens.event}tokenizeIfCheap(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)}}class _i extends pi{constructor(e,t,n,i){super(t,n,i),this._treeSitterService=e,this._tokenizationSupport=null,this._initialize()}_initialize(){const e=this.getLanguageId();this._tokenizationSupport&&this._lastLanguageId===e||(this._lastLanguageId=e,this._tokenizationSupport=Yn.OB.get(e))}getLineTokens(e){const t=this._textModel.getLineContent(e);if(this._tokenizationSupport){const n=this._tokenizationSupport.tokenizeEncoded(e,this._textModel);if(n)return new ri(n,t,this._languageIdCodec)}return ri.createEmpty(t,this._languageIdCodec)}resetTokenization(e=!0){e&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]}),this._initialize()}handleDidChangeAttached(){}handleDidChangeContent(e){e.isFlush&&this.resetTokenization(!1)}forceTokenization(e){}hasAccurateTokensForLine(e){return!0}isCheapToTokenize(e){return!0}getTokenTypeIfInsertingCharacter(e,t,n){return 0}tokenizeLineWithEdit(e,t,n){return null}get hasTokens(){return void 0!==this._treeSitterService.getParseResult(this._textModel)}}var bi=n(4432);const ki=new Uint32Array(0).buffer;class vi{static deleteBeginning(e,t){return null===e||e===ki?e:vi.delete(e,0,t)}static deleteEnding(e,t){if(null===e||e===ki)return e;const n=Ci(e),i=n[n.length-2];return vi.delete(e,t,i)}static delete(e,t,n){if(null===e||e===ki||t===n)return e;const i=Ci(e),r=i.length>>>1;if(0===t&&i[i.length-2]===n)return ki;const s=ri.findIndexInTokensArray(i,t),o=s>0?i[s-1<<1]:0;if(n<i[s<<1]){const o=n-t;for(let e=s;e<r;e++)i[e<<1]-=o;return e}let a,l;o!==t?(i[s<<1]=t,a=s+1<<1,l=t):(a=s<<1,l=o);const h=n-t;for(let u=s+1;u<r;u++){const e=i[u<<1]-h;e>l&&(i[a++]=e,i[a++]=i[1+(u<<1)],l=e)}if(a===i.length)return e;const c=new Uint32Array(a);return c.set(i.subarray(0,a),0),c.buffer}static append(e,t){if(t===ki)return e;if(e===ki)return t;if(null===e)return e;if(null===t)return null;const n=Ci(e),i=Ci(t),r=i.length>>>1,s=new Uint32Array(n.length+i.length);s.set(n,0);let o=n.length;const a=n[n.length-2];for(let l=0;l<r;l++)s[o++]=i[l<<1]+a,s[o++]=i[1+(l<<1)];return s.buffer}static insert(e,t,n){if(null===e||e===ki)return e;const i=Ci(e),r=i.length>>>1;let s=ri.findIndexInTokensArray(i,t);if(s>0){i[s-1<<1]===t&&s--}for(let o=s;o<r;o++)i[o<<1]+=n;return e}}function Ci(e){return e instanceof Uint32Array?e:new Uint32Array(e)}class Li{constructor(e){this._lineTokens=[],this._len=0,this._languageIdCodec=e}flush(){this._lineTokens=[],this._len=0}get hasTokens(){return this._lineTokens.length>0}getTokens(e,t,n){let i=null;if(t<this._len&&(i=this._lineTokens[t]),null!==i&&i!==ki)return new ri(Ci(i),n,this._languageIdCodec);const r=new Uint32Array(2);return r[0]=n.length,r[1]=yi(this._languageIdCodec.encodeLanguageId(e)),new ri(r,n,this._languageIdCodec)}static _massageTokens(e,t,n){const i=n?Ci(n):null;if(0===t){let t=!1;if(i&&i.length>1&&(t=Ze.x.getLanguageId(i[1])!==e),!t)return ki}if(!i||0===i.length){const n=new Uint32Array(2);return n[0]=t,n[1]=yi(e),n.buffer}return i[i.length-2]=t,0===i.byteOffset&&i.byteLength===i.buffer.byteLength?i.buffer:i}_ensureLine(e){for(;e>=this._len;)this._lineTokens[this._len]=null,this._len++}_deleteLines(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._lineTokens.splice(e,t),this._len-=t)}_insertLines(e,t){if(0===t)return;const n=[];for(let i=0;i<t;i++)n[i]=null;this._lineTokens=o.nK(this._lineTokens,e,n),this._len+=t}setTokens(e,t,n,i,r){const s=Li._massageTokens(this._languageIdCodec.encodeLanguageId(e),n,i);this._ensureLine(t);const o=this._lineTokens[t];return this._lineTokens[t]=s,!!r&&!Li._equals(o,s)}static _equals(e,t){if(!e||!t)return!e&&!t;const n=Ci(e),i=Ci(t);if(n.length!==i.length)return!1;for(let r=0,s=n.length;r<s;r++)if(n[r]!==i[r])return!1;return!0}acceptEdit(e,t,n){this._acceptDeleteRange(e),this._acceptInsertText(new f.y(e.startLineNumber,e.startColumn),t,n)}_acceptDeleteRange(e){const t=e.startLineNumber-1;if(t>=this._len)return;if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;return void(this._lineTokens[t]=vi.delete(this._lineTokens[t],e.startColumn-1,e.endColumn-1))}this._lineTokens[t]=vi.deleteEnding(this._lineTokens[t],e.startColumn-1);const n=e.endLineNumber-1;let i=null;n<this._len&&(i=vi.deleteBeginning(this._lineTokens[n],e.endColumn-1)),this._lineTokens[t]=vi.append(this._lineTokens[t],i),this._deleteLines(e.startLineNumber,e.endLineNumber-e.startLineNumber)}_acceptInsertText(e,t,n){if(0===t&&0===n)return;const i=e.lineNumber-1;i>=this._len||(0!==t?(this._lineTokens[i]=vi.deleteEnding(this._lineTokens[i],e.column-1),this._lineTokens[i]=vi.insert(this._lineTokens[i],e.column-1,n),this._insertLines(e.lineNumber,t)):this._lineTokens[i]=vi.insert(this._lineTokens[i],e.column-1,n))}setMultilineTokens(e,t){if(0===e.length)return{changes:[]};const n=[];for(let i=0,r=e.length;i<r;i++){const r=e[i];let s=0,o=0,a=!1;for(let e=r.startLineNumber;e<=r.endLineNumber;e++)if(a)this.setTokens(t.getLanguageId(),e-1,t.getLineLength(e),r.getLineTokens(e),!1),o=e;else{this.setTokens(t.getLanguageId(),e-1,t.getLineLength(e),r.getLineTokens(e),!0)&&(a=!0,s=e,o=e)}a&&n.push({fromLineNumber:s,toLineNumber:o})}return{changes:n}}}function yi(e){return(32768|e|2<<24|1024)>>>0}class wi{constructor(e){this._pieces=[],this._isComplete=!1,this._languageIdCodec=e}flush(){this._pieces=[],this._isComplete=!1}isEmpty(){return 0===this._pieces.length}set(e,t){this._pieces=e||[],this._isComplete=t}setPartial(e,t){let n=e;if(t.length>0){const i=t[0].getRange(),r=t[t.length-1].getRange();if(!i||!r)return e;n=e.plusRange(i).plusRange(r)}let i=null;for(let r=0,s=this._pieces.length;r<s;r++){const e=this._pieces[r];if(e.endLineNumber<n.startLineNumber)continue;if(e.startLineNumber>n.endLineNumber){i=i||{index:r};break}if(e.removeTokens(n),e.isEmpty()){this._pieces.splice(r,1),r--,s--;continue}if(e.endLineNumber<n.startLineNumber)continue;if(e.startLineNumber>n.endLineNumber){i=i||{index:r};continue}const[t,o]=e.split(n);t.isEmpty()?i=i||{index:r}:o.isEmpty()||(this._pieces.splice(r,1,t,o),r++,s++,i=i||{index:r})}return i=i||{index:this._pieces.length},t.length>0&&(this._pieces=o.nK(this._pieces,i.index,t)),n}isComplete(){return this._isComplete}addSparseTokens(e,t){if(0===t.getLineContent().length)return t;const n=this._pieces;if(0===n.length)return t;const i=n[wi._findFirstPieceWithLine(n,e)].getLineTokens(e);if(!i)return t;const r=t.getCount(),s=i.getCount();let o=0;const a=[];let l=0,h=0;const c=(e,t)=>{e!==h&&(h=e,a[l++]=e,a[l++]=t)};for(let u=0;u<s;u++){const e=i.getStartCharacter(u),n=i.getEndCharacter(u),s=i.getMetadata(u),a=((1&s?2048:0)|(2&s?4096:0)|(4&s?8192:0)|(8&s?16384:0)|(16&s?16744448:0)|(32&s?4278190080:0))>>>0,l=~a>>>0;for(;o<r&&t.getEndOffset(o)<=e;)c(t.getEndOffset(o),t.getMetadata(o)),o++;for(o<r&&t.getStartOffset(o)<e&&c(e,t.getMetadata(o));o<r&&t.getEndOffset(o)<n;)c(t.getEndOffset(o),t.getMetadata(o)&l|s&a),o++;if(o<r)c(n,t.getMetadata(o)&l|s&a),t.getEndOffset(o)===n&&o++;else{const e=Math.min(Math.max(0,o-1),r-1);c(n,t.getMetadata(e)&l|s&a)}}for(;o<r;)c(t.getEndOffset(o),t.getMetadata(o)),o++;return new ri(new Uint32Array(a),t.getLineContent(),this._languageIdCodec)}static _findFirstPieceWithLine(e,t){let n=0,i=e.length-1;for(;n<i;){let r=n+Math.floor((i-n)/2);if(e[r].endLineNumber<t)n=r+1;else{if(!(e[r].startLineNumber>t)){for(;r>n&&e[r-1].startLineNumber<=t&&t<=e[r-1].endLineNumber;)r--;return r}i=r-1}}return n}acceptEdit(e,t,n,i,r){for(const s of this._pieces)s.acceptEdit(e,t,n,i,r)}}var Si,xi=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},Ei=function(e,t){return function(n,i){t(n,i,e)}};let Ni=Si=class extends Ut{constructor(e,t,n,s,o,a,l){super(),this._textModel=e,this._bracketPairsTextModelPart=t,this._languageId=n,this._attachedViews=s,this._languageService=o,this._languageConfigurationService=a,this._treeSitterService=l,this._semanticTokens=new wi(this._languageService.languageIdCodec),this._onDidChangeLanguage=this._register(new i.vl),this.onDidChangeLanguage=this._onDidChangeLanguage.event,this._onDidChangeLanguageConfiguration=this._register(new i.vl),this.onDidChangeLanguageConfiguration=this._onDidChangeLanguageConfiguration.event,this._onDidChangeTokens=this._register(new i.vl),this.onDidChangeTokens=this._onDidChangeTokens.event,this._tokensDisposables=this._register(new r.Cm),this._register(this._languageConfigurationService.onDidChange((e=>{e.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})}))),this._register(i.Jh.filter(Yn.OB.onDidChange,(e=>e.changedLanguages.includes(this._languageId)))((()=>{this.createPreferredTokenProvider()}))),this.createPreferredTokenProvider()}createGrammarTokens(){return this._register(new Ii(this._languageService.languageIdCodec,this._textModel,(()=>this._languageId),this._attachedViews))}createTreeSitterTokens(){return this._register(new _i(this._treeSitterService,this._languageService.languageIdCodec,this._textModel,(()=>this._languageId)))}createTokens(e){const t=void 0!==this._tokens;this._tokens?.dispose(),this._tokens=e?this.createTreeSitterTokens():this.createGrammarTokens(),this._tokensDisposables.clear(),this._tokensDisposables.add(this._tokens.onDidChangeTokens((e=>{this._emitModelTokensChangedEvent(e)}))),this._tokensDisposables.add(this._tokens.onDidChangeBackgroundTokenizationState((e=>{this._bracketPairsTextModelPart.handleDidChangeBackgroundTokenizationState()}))),t&&this._tokens.resetTokenization()}createPreferredTokenProvider(){Yn.OB.get(this._languageId)?this._tokens instanceof _i||this.createTokens(!0):this._tokens instanceof Ii||this.createTokens(!1)}handleLanguageConfigurationServiceChange(e){e.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})}handleDidChangeContent(e){if(e.isFlush)this._semanticTokens.flush();else if(!e.isEolChange)for(const t of e.changes){const[e,n,i]=(0,u.W)(t.text);this._semanticTokens.acceptEdit(t.range,e,n,i,t.text.length>0?t.text.charCodeAt(0):0)}this._tokens.handleDidChangeContent(e)}handleDidChangeAttached(){this._tokens.handleDidChangeAttached()}getLineTokens(e){this.validateLineNumber(e);const t=this._tokens.getLineTokens(e);return this._semanticTokens.addSparseTokens(e,t)}_emitModelTokensChangedEvent(e){this._textModel._isDisposing()||(this._bracketPairsTextModelPart.handleDidChangeTokens(e),this._onDidChangeTokens.fire(e))}validateLineNumber(e){if(e<1||e>this._textModel.getLineCount())throw new l.D7("Illegal value for lineNumber")}get hasTokens(){return this._tokens.hasTokens}resetTokenization(){this._tokens.resetTokenization()}get backgroundTokenizationState(){return this._tokens.backgroundTokenizationState}forceTokenization(e){this.validateLineNumber(e),this._tokens.forceTokenization(e)}hasAccurateTokensForLine(e){return this.validateLineNumber(e),this._tokens.hasAccurateTokensForLine(e)}isCheapToTokenize(e){return this.validateLineNumber(e),this._tokens.isCheapToTokenize(e)}tokenizeIfCheap(e){this.validateLineNumber(e),this._tokens.tokenizeIfCheap(e)}getTokenTypeIfInsertingCharacter(e,t,n){return this._tokens.getTokenTypeIfInsertingCharacter(e,t,n)}tokenizeLineWithEdit(e,t,n){return this._tokens.tokenizeLineWithEdit(e,t,n)}setSemanticTokens(e,t){this._semanticTokens.set(e,t),this._emitModelTokensChangedEvent({semanticTokensApplied:null!==e,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]})}hasCompleteSemanticTokens(){return this._semanticTokens.isComplete()}hasSomeSemanticTokens(){return!this._semanticTokens.isEmpty()}setPartialSemanticTokens(e,t){if(this.hasCompleteSemanticTokens())return;const n=this._textModel.validateRange(this._semanticTokens.setPartial(e,t));this._emitModelTokensChangedEvent({semanticTokensApplied:!0,ranges:[{fromLineNumber:n.startLineNumber,toLineNumber:n.endLineNumber}]})}getWordAtPosition(e){this.assertNotDisposed();const t=this._textModel.validatePosition(e),n=this._textModel.getLineContent(t.lineNumber),i=this.getLineTokens(t.lineNumber),r=i.findTokenIndexAtOffset(t.column-1),[s,o]=Si._findLanguageBoundaries(i,r),a=(0,v.Th)(t.column,this.getLanguageConfiguration(i.getLanguageId(r)).getWordDefinition(),n.substring(s,o),s);if(a&&a.startColumn<=e.column&&e.column<=a.endColumn)return a;if(r>0&&s===t.column-1){const[s,o]=Si._findLanguageBoundaries(i,r-1),a=(0,v.Th)(t.column,this.getLanguageConfiguration(i.getLanguageId(r-1)).getWordDefinition(),n.substring(s,o),s);if(a&&a.startColumn<=e.column&&e.column<=a.endColumn)return a}return null}getLanguageConfiguration(e){return this._languageConfigurationService.getLanguageConfiguration(e)}static _findLanguageBoundaries(e,t){const n=e.getLanguageId(t);let i=0;for(let s=t;s>=0&&e.getLanguageId(s)===n;s--)i=e.getStartOffset(s);let r=e.getLineContent().length;for(let s=t,o=e.getCount();s<o&&e.getLanguageId(s)===n;s++)r=e.getEndOffset(s);return[i,r]}getWordUntilPosition(e){const t=this.getWordAtPosition(e);return t?{word:t.word.substr(0,e.column-t.startColumn),startColumn:t.startColumn,endColumn:e.column}:{word:"",startColumn:e.column,endColumn:e.column}}getLanguageId(){return this._languageId}getLanguageIdAtPosition(e,t){const n=this._textModel.validatePosition(new f.y(e,t)),i=this.getLineTokens(n.lineNumber);return i.getLanguageId(i.findTokenIndexAtOffset(n.column-1))}setLanguageId(e,t="api"){if(this._languageId===e)return;const n={oldLanguage:this._languageId,newLanguage:e,source:t};this._languageId=e,this._bracketPairsTextModelPart.handleDidChangeLanguage(n),this._tokens.resetTokenization(),this.createPreferredTokenProvider(),this._onDidChangeLanguage.fire(n),this._onDidChangeLanguageConfiguration.fire({})}};Ni=Si=xi([Ei(4,k.L),Ei(5,se),Ei(6,bi.ITreeSitterParserService)],Ni);class Ii extends pi{constructor(e,t,n,i){super(e,t,n),this._tokenizer=null,this._defaultBackgroundTokenizer=null,this._backgroundTokenizer=this._register(new r.HE),this._tokens=new Li(this._languageIdCodec),this._debugBackgroundTokenizer=this._register(new r.HE),this._attachedViewStates=this._register(new r.$w),this._register(Yn.dG.onDidChange((e=>{const t=this.getLanguageId();-1!==e.changedLanguages.indexOf(t)&&this.resetTokenization()}))),this.resetTokenization(),this._register(i.onDidChangeVisibleRanges((({view:e,state:t})=>{if(t){let n=this._attachedViewStates.get(e);n||(n=new mi((()=>this.refreshRanges(n.lineRanges))),this._attachedViewStates.set(e,n)),n.handleStateChange(t)}else this._attachedViewStates.deleteAndDispose(e)})))}resetTokenization(e=!0){this._tokens.flush(),this._debugBackgroundTokens?.flush(),this._debugBackgroundStates&&(this._debugBackgroundStates=new li(this._textModel.getLineCount())),e&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]});const[t,n]=(()=>{if(this._textModel.isTooLargeForTokenization())return[null,null];const e=Yn.dG.get(this.getLanguageId());if(!e)return[null,null];let t;try{t=e.getInitialState()}catch(n){return(0,l.dz)(n),[null,null]}return[e,t]})();if(this._tokenizer=t&&n?new ai(this._textModel.getLineCount(),t,this._textModel,this._languageIdCodec):null,this._backgroundTokenizer.clear(),this._defaultBackgroundTokenizer=null,this._tokenizer){const e={setTokens:e=>{this.setTokens(e)},backgroundTokenizationFinished:()=>{if(2===this._backgroundTokenizationState)return;this._backgroundTokenizationState=2,this._onDidChangeBackgroundTokenizationState.fire()},setEndState:(e,t)=>{if(!this._tokenizer)return;const n=this._tokenizer.store.getFirstInvalidEndStateLineNumber();null!==n&&e>=n&&this._tokenizer?.store.setEndState(e,t)}};t&&t.createBackgroundTokenizer&&!t.backgroundTokenizerShouldOnlyVerifyTokens&&(this._backgroundTokenizer.value=t.createBackgroundTokenizer(this._textModel,e)),this._backgroundTokenizer.value||this._textModel.isTooLargeForTokenization()||(this._backgroundTokenizer.value=this._defaultBackgroundTokenizer=new di(this._tokenizer,e),this._defaultBackgroundTokenizer.handleChanges()),t?.backgroundTokenizerShouldOnlyVerifyTokens&&t.createBackgroundTokenizer?(this._debugBackgroundTokens=new Li(this._languageIdCodec),this._debugBackgroundStates=new li(this._textModel.getLineCount()),this._debugBackgroundTokenizer.clear(),this._debugBackgroundTokenizer.value=t.createBackgroundTokenizer(this._textModel,{setTokens:e=>{this._debugBackgroundTokens?.setMultilineTokens(e,this._textModel)},backgroundTokenizationFinished(){},setEndState:(e,t)=>{this._debugBackgroundStates?.setEndState(e,t)}})):(this._debugBackgroundTokens=void 0,this._debugBackgroundStates=void 0,this._debugBackgroundTokenizer.value=void 0)}this.refreshAllVisibleLineTokens()}handleDidChangeAttached(){this._defaultBackgroundTokenizer?.handleChanges()}handleDidChangeContent(e){if(e.isFlush)this.resetTokenization(!1);else if(!e.isEolChange){for(const t of e.changes){const[e,n]=(0,u.W)(t.text);this._tokens.acceptEdit(t.range,e,n),this._debugBackgroundTokens?.acceptEdit(t.range,e,n)}this._debugBackgroundStates?.acceptChanges(e.changes),this._tokenizer&&this._tokenizer.store.acceptChanges(e.changes),this._defaultBackgroundTokenizer?.handleChanges()}}setTokens(e){const{changes:t}=this._tokens.setMultilineTokens(e,this._textModel);return t.length>0&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:t}),{changes:t}}refreshAllVisibleLineTokens(){const e=Qn.M.joinMany([...this._attachedViewStates].map((([e,t])=>t.lineRanges)));this.refreshRanges(e)}refreshRanges(e){for(const t of e)this.refreshRange(t.startLineNumber,t.endLineNumberExclusive-1)}refreshRange(e,t){if(!this._tokenizer)return;e=Math.max(1,Math.min(this._textModel.getLineCount(),e)),t=Math.min(this._textModel.getLineCount(),t);const n=new ii,{heuristicTokens:i}=this._tokenizer.tokenizeHeuristically(n,e,t),r=this.setTokens(n.finalize());if(i)for(const s of r.changes)this._backgroundTokenizer.value?.requestTokens(s.fromLineNumber,s.toLineNumber+1);this._defaultBackgroundTokenizer?.checkFinished()}forceTokenization(e){const t=new ii;this._tokenizer?.updateTokensUntilLine(t,e),this.setTokens(t.finalize()),this._defaultBackgroundTokenizer?.checkFinished()}hasAccurateTokensForLine(e){return!this._tokenizer||this._tokenizer.hasAccurateTokensForLine(e)}isCheapToTokenize(e){return!this._tokenizer||this._tokenizer.isCheapToTokenize(e)}getLineTokens(e){const t=this._textModel.getLineContent(e),n=this._tokens.getTokens(this._textModel.getLanguageId(),e-1,t);if(this._debugBackgroundTokens&&this._debugBackgroundStates&&this._tokenizer&&this._debugBackgroundStates.getFirstInvalidEndStateLineNumberOrMax()>e&&this._tokenizer.store.getFirstInvalidEndStateLineNumberOrMax()>e){const i=this._debugBackgroundTokens.getTokens(this._textModel.getLanguageId(),e-1,t);!n.equals(i)&&this._debugBackgroundTokenizer.value?.reportMismatchingTokens&&this._debugBackgroundTokenizer.value.reportMismatchingTokens(e)}return n}getTokenTypeIfInsertingCharacter(e,t,n){if(!this._tokenizer)return 0;const i=this._textModel.validatePosition(new f.y(e,t));return this.forceTokenization(i.lineNumber),this._tokenizer.getTokenTypeIfInsertingCharacter(i,n)}tokenizeLineWithEdit(e,t,n){if(!this._tokenizer)return null;const i=this._textModel.validatePosition(e);return this.forceTokenization(i.lineNumber),this._tokenizer.tokenizeLineWithEdit(i,t,n)}get hasTokens(){return this._tokens.hasTokens}}class Ti{constructor(){this.changeType=1}}class Ai{static applyInjectedText(e,t){if(!t||0===t.length)return e;let n="",i=0;for(const r of t)n+=e.substring(i,r.column-1),i=r.column-1,n+=r.options.content;return n+=e.substring(i),n}static fromDecorations(e){const t=[];for(const n of e)n.options.before&&n.options.before.content.length>0&&t.push(new Ai(n.ownerId,n.range.startLineNumber,n.range.startColumn,n.options.before,0)),n.options.after&&n.options.after.content.length>0&&t.push(new Ai(n.ownerId,n.range.endLineNumber,n.range.endColumn,n.options.after,1));return t.sort(((e,t)=>e.lineNumber===t.lineNumber?e.column===t.column?e.order-t.order:e.column-t.column:e.lineNumber-t.lineNumber)),t}constructor(e,t,n,i,r){this.ownerId=e,this.lineNumber=t,this.column=n,this.options=i,this.order=r}}class Di{constructor(e,t,n){this.changeType=2,this.lineNumber=e,this.detail=t,this.injectedText=n}}class Ri{constructor(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t}}class Mi{constructor(e,t,n,i){this.changeType=4,this.injectedTexts=i,this.fromLineNumber=e,this.toLineNumber=t,this.detail=n}}class Oi{constructor(){this.changeType=5}}class Bi{constructor(e,t,n,i){this.changes=e,this.versionId=t,this.isUndoing=n,this.isRedoing=i,this.resultingSelection=null}containsEvent(e){for(let t=0,n=this.changes.length;t<n;t++){if(this.changes[t].changeType===e)return!0}return!1}static merge(e,t){const n=[].concat(e.changes).concat(t.changes),i=t.versionId,r=e.isUndoing||t.isUndoing,s=e.isRedoing||t.isRedoing;return new Bi(n,i,r,s)}}class Fi{constructor(e){this.changes=e}}class Pi{constructor(e,t){this.rawContentChangedEvent=e,this.contentChangedEvent=t}merge(e){const t=Bi.merge(this.rawContentChangedEvent,e.rawContentChangedEvent),n=Pi._mergeChangeEvents(this.contentChangedEvent,e.contentChangedEvent);return new Pi(t,n)}static _mergeChangeEvents(e,t){const n=[].concat(e.changes).concat(t.changes),i=t.eol,r=t.versionId,s=e.isUndoing||t.isUndoing,o=e.isRedoing||t.isRedoing,a=e.isFlush||t.isFlush;return{changes:n,eol:i,isEolChange:e.isEolChange&&t.isEolChange,versionId:r,isUndoing:s,isRedoing:o,isFlush:a}}}const zi=(0,K.u1)("undoRedoService");class Vi{static{this._ID=0}constructor(){this.id=Vi._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}static{this.None=new Vi}}class Wi{static{this._ID=0}constructor(){this.id=Wi._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}static{this.None=new Wi}}var qi,Hi=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},Ui=function(e,t){return function(n,i){t(n,i,e)}};function ji(e,t){let n;return n="string"===typeof e?function(e){const t=new Gn;return t.acceptChunk(e),t.finish()}(e):me.nk(e)?function(e){const t=new Gn;let n;for(;"string"===typeof(n=e.read());)t.acceptChunk(n);return t.finish()}(e):e,n.create(t)}let Ki=0;class $i{constructor(e){this._source=e,this._eos=!1}read(){if(this._eos)return null;const e=[];let t=0,n=0;for(;;){const i=this._source.read();if(null===i)return this._eos=!0,0===t?null:e.join("");if(i.length>0&&(e[t++]=i,n+=i.length),n>=65536)return e.join("")}}}const Gi=()=>{throw new Error("Invalid change accessor")};let Qi=class extends r.jG{static{qi=this}static{this._MODEL_SYNC_LIMIT=52428800}static{this.LARGE_FILE_SIZE_THRESHOLD=20971520}static{this.LARGE_FILE_LINE_COUNT_THRESHOLD=3e5}static{this.LARGE_FILE_HEAP_OPERATION_THRESHOLD=268435456}static{this.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:_.tabSize,indentSize:_.indentSize,insertSpaces:_.insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:_.trimAutoWhitespace,largeFileOptimizations:_.largeFileOptimizations,bracketPairColorizationOptions:_.bracketPairColorizationOptions}}static resolveOptions(e,t){if(t.detectIndentation){const n=Xt(e,t.tabSize,t.insertSpaces);return new me.X2({tabSize:n.tabSize,indentSize:"tabSize",insertSpaces:n.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL,bracketPairColorizationOptions:t.bracketPairColorizationOptions})}return new me.X2(t)}get onDidChangeLanguage(){return this._tokenizationTextModelPart.onDidChangeLanguage}get onDidChangeLanguageConfiguration(){return this._tokenizationTextModelPart.onDidChangeLanguageConfiguration}get onDidChangeTokens(){return this._tokenizationTextModelPart.onDidChangeTokens}onDidChangeContent(e){return this._eventEmitter.slowEvent((t=>e(t.contentChangedEvent)))}onDidChangeContentOrInjectedText(e){return(0,r.qE)(this._eventEmitter.fastEvent((t=>e(t))),this._onDidChangeInjectedText.event((t=>e(t))))}_isDisposing(){return this.__isDisposing}get tokenization(){return this._tokenizationTextModelPart}get bracketPairs(){return this._bracketPairs}get guides(){return this._guidesTextModelPart}constructor(e,t,n,s=null,o,a,l,u){super(),this._undoRedoService=o,this._languageService=a,this._languageConfigurationService=l,this.instantiationService=u,this._onWillDispose=this._register(new i.vl),this.onWillDispose=this._onWillDispose.event,this._onDidChangeDecorations=this._register(new lr((e=>this.handleBeforeFireDecorationsChangedEvent(e)))),this.onDidChangeDecorations=this._onDidChangeDecorations.event,this._onDidChangeOptions=this._register(new i.vl),this.onDidChangeOptions=this._onDidChangeOptions.event,this._onDidChangeAttached=this._register(new i.vl),this.onDidChangeAttached=this._onDidChangeAttached.event,this._onDidChangeInjectedText=this._register(new i.vl),this._eventEmitter=this._register(new hr),this._languageSelectionListener=this._register(new r.HE),this._deltaDecorationCallCnt=0,this._attachedViews=new gi,Ki++,this.id="$model"+Ki,this.isForSimpleWidget=n.isForSimpleWidget,this._associatedResource="undefined"===typeof s||null===s?c.r.parse("inmemory://model/"+Ki):s,this._attachedEditorCount=0;const{textBuffer:d,disposable:g}=ji(e,n.defaultEOL);this._buffer=d,this._bufferDisposable=g,this._options=qi.resolveOptions(this._buffer,n);const f="string"===typeof t?t:t.languageId;"string"!==typeof t&&(this._languageSelectionListener.value=t.onDidChange((()=>this._setLanguage(t.languageId)))),this._bracketPairs=this._register(new Lt(this,this._languageConfigurationService)),this._guidesTextModelPart=this._register(new $t(this,this._languageConfigurationService)),this._decorationProvider=this._register(new Nt(this)),this._tokenizationTextModelPart=this.instantiationService.createInstance(Ni,this,this._bracketPairs,f,this._attachedViews);const p=this._buffer.getLineCount(),_=this._buffer.getValueLengthInRange(new m.Q(1,1,p,this._buffer.getLineLength(p)+1),0);n.largeFileOptimizations?(this._isTooLargeForTokenization=_>qi.LARGE_FILE_SIZE_THRESHOLD||p>qi.LARGE_FILE_LINE_COUNT_THRESHOLD,this._isTooLargeForHeapOperation=_>qi.LARGE_FILE_HEAP_OPERATION_THRESHOLD):(this._isTooLargeForTokenization=!1,this._isTooLargeForHeapOperation=!1),this._isTooLargeForSyncing=_>qi._MODEL_SYNC_LIMIT,this._versionId=1,this._alternativeVersionId=1,this._initialUndoRedoSnapshot=null,this._isDisposed=!1,this.__isDisposing=!1,this._instanceId=h.tk(Ki),this._lastDecorationId=0,this._decorations=Object.create(null),this._decorationsTree=new Zi,this._commandManager=new Wt(this,this._undoRedoService),this._isUndoing=!1,this._isRedoing=!1,this._trimAutoWhitespaceLines=null,this._register(this._decorationProvider.onDidChange((()=>{this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._onDidChangeDecorations.endDeferredEmit()}))),this._languageService.requestRichLanguageFeatures(f),this._register(this._languageConfigurationService.onDidChange((e=>{this._bracketPairs.handleLanguageConfigurationServiceChange(e),this._tokenizationTextModelPart.handleLanguageConfigurationServiceChange(e)})))}dispose(){this.__isDisposing=!0,this._onWillDispose.fire(),this._tokenizationTextModelPart.dispose(),this._isDisposed=!0,super.dispose(),this._bufferDisposable.dispose(),this.__isDisposing=!1;const e=new Kn([],"","\n",!1,!1,!0,!0);e.dispose(),this._buffer=e,this._bufferDisposable=r.jG.None}_assertNotDisposed(){if(this._isDisposed)throw new l.D7("Model is disposed!")}_emitContentChangedEvent(e,t){this.__isDisposing||(this._tokenizationTextModelPart.handleDidChangeContent(t),this._bracketPairs.handleDidChangeContent(t),this._eventEmitter.fire(new Pi(e,t)))}setValue(e){if(this._assertNotDisposed(),null===e||void 0===e)throw(0,l.Qg)();const{textBuffer:t,disposable:n}=ji(e,this._options.defaultEOL);this._setValueFromTextBuffer(t,n)}_createContentChanged2(e,t,n,i,r,s,o,a){return{changes:[{range:e,rangeOffset:t,rangeLength:n,text:i}],eol:this._buffer.getEOL(),isEolChange:a,versionId:this.getVersionId(),isUndoing:r,isRedoing:s,isFlush:o}}_setValueFromTextBuffer(e,t){this._assertNotDisposed();const n=this.getFullModelRange(),i=this.getValueLengthInRange(n),r=this.getLineCount(),s=this.getLineMaxColumn(r);this._buffer=e,this._bufferDisposable.dispose(),this._bufferDisposable=t,this._increaseVersionId(),this._decorations=Object.create(null),this._decorationsTree=new Zi,this._commandManager.clear(),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new Bi([new Ti],this._versionId,!1,!1),this._createContentChanged2(new m.Q(1,1,r,s),0,i,this.getValue(),!1,!1,!0,!1))}setEOL(e){this._assertNotDisposed();const t=1===e?"\r\n":"\n";if(this._buffer.getEOL()===t)return;const n=this.getFullModelRange(),i=this.getValueLengthInRange(n),r=this.getLineCount(),s=this.getLineMaxColumn(r);this._onBeforeEOLChange(),this._buffer.setEOL(t),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new Bi([new Oi],this._versionId,!1,!1),this._createContentChanged2(new m.Q(1,1,r,s),0,i,this.getValue(),!1,!1,!1,!0))}_onBeforeEOLChange(){this._decorationsTree.ensureAllNodesHaveRanges(this)}_onAfterEOLChange(){const e=this.getVersionId(),t=this._decorationsTree.collectNodesPostOrder();for(let n=0,i=t.length;n<i;n++){const i=t[n],r=i.range,s=i.cachedAbsoluteStart-i.start,o=this._buffer.getOffsetAt(r.startLineNumber,r.startColumn),a=this._buffer.getOffsetAt(r.endLineNumber,r.endColumn);i.cachedAbsoluteStart=o,i.cachedAbsoluteEnd=a,i.cachedVersionId=e,i.start=o-s,i.end=a-s,vn(i)}}onBeforeAttached(){return this._attachedEditorCount++,1===this._attachedEditorCount&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0)),this._attachedViews.attachView()}onBeforeDetached(e){this._attachedEditorCount--,0===this._attachedEditorCount&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0)),this._attachedViews.detachView(e)}isAttachedToEditor(){return this._attachedEditorCount>0}getAttachedEditorCount(){return this._attachedEditorCount}isTooLargeForSyncing(){return this._isTooLargeForSyncing}isTooLargeForTokenization(){return this._isTooLargeForTokenization}isTooLargeForHeapOperation(){return this._isTooLargeForHeapOperation}isDisposed(){return this._isDisposed}isDominatedByLongLines(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;let e=0,t=0;const n=this._buffer.getLineCount();for(let i=1;i<=n;i++){const n=this._buffer.getLineLength(i);n>=1e4?t+=n:e+=n}return t>e}get uri(){return this._associatedResource}getOptions(){return this._assertNotDisposed(),this._options}getFormattingOptions(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}}updateOptions(e){this._assertNotDisposed();const t="undefined"!==typeof e.tabSize?e.tabSize:this._options.tabSize,n="undefined"!==typeof e.indentSize?e.indentSize:this._options.originalIndentSize,i="undefined"!==typeof e.insertSpaces?e.insertSpaces:this._options.insertSpaces,r="undefined"!==typeof e.trimAutoWhitespace?e.trimAutoWhitespace:this._options.trimAutoWhitespace,s="undefined"!==typeof e.bracketColorizationOptions?e.bracketColorizationOptions:this._options.bracketPairColorizationOptions,o=new me.X2({tabSize:t,indentSize:n,insertSpaces:i,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:r,bracketPairColorizationOptions:s});if(this._options.equals(o))return;const a=this._options.createChangeEvent(o);this._options=o,this._bracketPairs.handleDidChangeOptions(a),this._decorationProvider.handleDidChangeOptions(a),this._onDidChangeOptions.fire(a)}detectIndentation(e,t){this._assertNotDisposed();const n=Xt(this._buffer,t,e);this.updateOptions({insertSpaces:n.insertSpaces,tabSize:n.tabSize,indentSize:n.tabSize})}normalizeIndentation(e){return this._assertNotDisposed(),g(e,this._options.indentSize,this._options.insertSpaces)}getVersionId(){return this._assertNotDisposed(),this._versionId}mightContainRTL(){return this._buffer.mightContainRTL()}mightContainUnusualLineTerminators(){return this._buffer.mightContainUnusualLineTerminators()}removeUnusualLineTerminators(e=null){const t=this.findMatches(h._J.source,!1,!0,!1,null,!1,1073741824);this._buffer.resetMightContainUnusualLineTerminators(),this.pushEditOperations(e,t.map((e=>({range:e.range,text:null}))),(()=>null))}mightContainNonBasicASCII(){return this._buffer.mightContainNonBasicASCII()}getAlternativeVersionId(){return this._assertNotDisposed(),this._alternativeVersionId}getInitialUndoRedoSnapshot(){return this._assertNotDisposed(),this._initialUndoRedoSnapshot}getOffsetAt(e){this._assertNotDisposed();const t=this._validatePosition(e.lineNumber,e.column,0);return this._buffer.getOffsetAt(t.lineNumber,t.column)}getPositionAt(e){this._assertNotDisposed();const t=Math.min(this._buffer.getLength(),Math.max(0,e));return this._buffer.getPositionAt(t)}_increaseVersionId(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId}_overwriteVersionId(e){this._versionId=e}_overwriteAlternativeVersionId(e){this._alternativeVersionId=e}_overwriteInitialUndoRedoSnapshot(e){this._initialUndoRedoSnapshot=e}getValue(e,t=!1){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new l.D7("Operation would exceed heap memory limits");const n=this.getFullModelRange(),i=this.getValueInRange(n,e);return t?this._buffer.getBOM()+i:i}createSnapshot(e=!1){return new $i(this._buffer.createSnapshot(e))}getValueLength(e,t=!1){this._assertNotDisposed();const n=this.getFullModelRange(),i=this.getValueLengthInRange(n,e);return t?this._buffer.getBOM().length+i:i}getValueInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(e),t)}getValueLengthInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(e),t)}getCharacterCountInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(e),t)}getLineCount(){return this._assertNotDisposed(),this._buffer.getLineCount()}getLineContent(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineContent(e)}getLineLength(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineLength(e)}getLinesContent(){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new l.D7("Operation would exceed heap memory limits");return this._buffer.getLinesContent()}getEOL(){return this._assertNotDisposed(),this._buffer.getEOL()}getEndOfLineSequence(){return this._assertNotDisposed(),"\n"===this._buffer.getEOL()?0:1}getLineMinColumn(e){return this._assertNotDisposed(),1}getLineMaxColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineLength(e)+1}getLineFirstNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)}getLineLastNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)}_validateRangeRelaxedNoAllocations(e){const t=this._buffer.getLineCount(),n=e.startLineNumber,i=e.startColumn;let r=Math.floor("number"!==typeof n||isNaN(n)?1:n),s=Math.floor("number"!==typeof i||isNaN(i)?1:i);if(r<1)r=1,s=1;else if(r>t)r=t,s=this.getLineMaxColumn(r);else if(s<=1)s=1;else{const e=this.getLineMaxColumn(r);s>=e&&(s=e)}const o=e.endLineNumber,a=e.endColumn;let l=Math.floor("number"!==typeof o||isNaN(o)?1:o),h=Math.floor("number"!==typeof a||isNaN(a)?1:a);if(l<1)l=1,h=1;else if(l>t)l=t,h=this.getLineMaxColumn(l);else if(h<=1)h=1;else{const e=this.getLineMaxColumn(l);h>=e&&(h=e)}return n===r&&i===s&&o===l&&a===h&&e instanceof m.Q&&!(e instanceof p.L)?e:new m.Q(r,s,l,h)}_isValidPosition(e,t,n){if("number"!==typeof e||"number"!==typeof t)return!1;if(isNaN(e)||isNaN(t))return!1;if(e<1||t<1)return!1;if((0|e)!==e||(0|t)!==t)return!1;if(e>this._buffer.getLineCount())return!1;if(1===t)return!0;if(t>this.getLineMaxColumn(e))return!1;if(1===n){const n=this._buffer.getLineCharCode(e,t-2);if(h.pc(n))return!1}return!0}_validatePosition(e,t,n){const i=Math.floor("number"!==typeof e||isNaN(e)?1:e),r=Math.floor("number"!==typeof t||isNaN(t)?1:t),s=this._buffer.getLineCount();if(i<1)return new f.y(1,1);if(i>s)return new f.y(s,this.getLineMaxColumn(s));if(r<=1)return new f.y(i,1);const o=this.getLineMaxColumn(i);if(r>=o)return new f.y(i,o);if(1===n){const e=this._buffer.getLineCharCode(i,r-2);if(h.pc(e))return new f.y(i,r-1)}return new f.y(i,r)}validatePosition(e){return this._assertNotDisposed(),e instanceof f.y&&this._isValidPosition(e.lineNumber,e.column,1)?e:this._validatePosition(e.lineNumber,e.column,1)}_isValidRange(e,t){const n=e.startLineNumber,i=e.startColumn,r=e.endLineNumber,s=e.endColumn;if(!this._isValidPosition(n,i,0))return!1;if(!this._isValidPosition(r,s,0))return!1;if(1===t){const e=i>1?this._buffer.getLineCharCode(n,i-2):0,t=s>1&&s<=this._buffer.getLineLength(r)?this._buffer.getLineCharCode(r,s-2):0,o=h.pc(e),a=h.pc(t);return!o&&!a}return!0}validateRange(e){if(this._assertNotDisposed(),e instanceof m.Q&&!(e instanceof p.L)&&this._isValidRange(e,1))return e;const t=this._validatePosition(e.startLineNumber,e.startColumn,0),n=this._validatePosition(e.endLineNumber,e.endColumn,0),i=t.lineNumber,r=t.column,s=n.lineNumber,o=n.column;{const e=r>1?this._buffer.getLineCharCode(i,r-2):0,t=o>1&&o<=this._buffer.getLineLength(s)?this._buffer.getLineCharCode(s,o-2):0,n=h.pc(e),a=h.pc(t);return n||a?i===s&&r===o?new m.Q(i,r-1,s,o-1):n&&a?new m.Q(i,r-1,s,o+1):n?new m.Q(i,r-1,s,o):new m.Q(i,r,s,o+1):new m.Q(i,r,s,o)}}modifyPosition(e,t){this._assertNotDisposed();const n=this.getOffsetAt(e)+t;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,n)))}getFullModelRange(){this._assertNotDisposed();const e=this.getLineCount();return new m.Q(1,1,e,this.getLineMaxColumn(e))}findMatchesLineByLine(e,t,n,i){return this._buffer.findMatchesLineByLine(e,t,n,i)}findMatches(e,t,n,i,r,s,o=999){this._assertNotDisposed();let a=null;null!==t&&(Array.isArray(t)||(t=[t]),t.every((e=>m.Q.isIRange(e)))&&(a=t.map((e=>this.validateRange(e))))),null===a&&(a=[this.getFullModelRange()]),a=a.sort(((e,t)=>e.startLineNumber-t.startLineNumber||e.startColumn-t.startColumn));const l=[];let h;if(l.push(a.reduce(((e,t)=>m.Q.areIntersecting(e,t)?e.plusRange(t):(l.push(e),t)))),!n&&e.indexOf("\n")<0){const t=new Bn.lt(e,n,i,r).parseSearchRequest();if(!t)return[];h=e=>this.findMatchesLineByLine(e,t,s,o)}else h=t=>Bn.hB.findMatches(this,new Bn.lt(e,n,i,r),t,s,o);return l.map(h).reduce(((e,t)=>e.concat(t)),[])}findNextMatch(e,t,n,i,r,s){this._assertNotDisposed();const o=this.validatePosition(t);if(!n&&e.indexOf("\n")<0){const t=new Bn.lt(e,n,i,r).parseSearchRequest();if(!t)return null;const a=this.getLineCount();let l=new m.Q(o.lineNumber,o.column,a,this.getLineMaxColumn(a)),h=this.findMatchesLineByLine(l,t,s,1);return Bn.hB.findNextMatch(this,new Bn.lt(e,n,i,r),o,s),h.length>0?h[0]:(l=new m.Q(1,1,o.lineNumber,this.getLineMaxColumn(o.lineNumber)),h=this.findMatchesLineByLine(l,t,s,1),h.length>0?h[0]:null)}return Bn.hB.findNextMatch(this,new Bn.lt(e,n,i,r),o,s)}findPreviousMatch(e,t,n,i,r,s){this._assertNotDisposed();const o=this.validatePosition(t);return Bn.hB.findPreviousMatch(this,new Bn.lt(e,n,i,r),o,s)}pushStackElement(){this._commandManager.pushStackElement()}popStackElement(){this._commandManager.popStackElement()}pushEOL(e){if(("\n"===this.getEOL()?0:1)!==e)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEOL(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_validateEditOperation(e){return e instanceof me.Wo?e:new me.Wo(e.identifier||null,this.validateRange(e.range),e.text,e.forceMoveMarkers||!1,e.isAutoWhitespaceEdit||!1,e._isTracked||!1)}_validateEditOperations(e){const t=[];for(let n=0,i=e.length;n<i;n++)t[n]=this._validateEditOperation(e[n]);return t}pushEditOperations(e,t,n,i){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(e,this._validateEditOperations(t),n,i)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_pushEditOperations(e,t,n,i){if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){const n=t.map((e=>({range:this.validateRange(e.range),text:e.text})));let i=!0;if(e)for(let t=0,r=e.length;t<r;t++){const r=e[t];let s=!1;for(let e=0,t=n.length;e<t;e++){const t=n[e].range,i=t.startLineNumber>r.endLineNumber,o=r.startLineNumber>t.endLineNumber;if(!i&&!o){s=!0;break}}if(!s){i=!1;break}}if(i)for(let e=0,r=this._trimAutoWhitespaceLines.length;e<r;e++){const i=this._trimAutoWhitespaceLines[e],r=this.getLineMaxColumn(i);let s=!0;for(let e=0,t=n.length;e<t;e++){const t=n[e].range,o=n[e].text;if(!(i<t.startLineNumber||i>t.endLineNumber)&&(!(i===t.startLineNumber&&t.startColumn===r&&t.isEmpty()&&o&&o.length>0&&"\n"===o.charAt(0))&&!(i===t.startLineNumber&&1===t.startColumn&&t.isEmpty()&&o&&o.length>0&&"\n"===o.charAt(o.length-1)))){s=!1;break}}if(s){const e=new m.Q(i,1,i,r);t.push(new me.Wo(null,e,null,!1,!1,!1))}}this._trimAutoWhitespaceLines=null}return null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEditOperation(e,t,n,i)}_applyUndo(e,t,n,i){const r=e.map((e=>{const t=this.getPositionAt(e.newPosition),n=this.getPositionAt(e.newEnd);return{range:new m.Q(t.lineNumber,t.column,n.lineNumber,n.column),text:e.oldText}}));this._applyUndoRedoEdits(r,t,!0,!1,n,i)}_applyRedo(e,t,n,i){const r=e.map((e=>{const t=this.getPositionAt(e.oldPosition),n=this.getPositionAt(e.oldEnd);return{range:new m.Q(t.lineNumber,t.column,n.lineNumber,n.column),text:e.newText}}));this._applyUndoRedoEdits(r,t,!1,!0,n,i)}_applyUndoRedoEdits(e,t,n,i,r,s){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._isUndoing=n,this._isRedoing=i,this.applyEdits(e,!1),this.setEOL(t),this._overwriteAlternativeVersionId(r)}finally{this._isUndoing=!1,this._isRedoing=!1,this._eventEmitter.endDeferredEmit(s),this._onDidChangeDecorations.endDeferredEmit()}}applyEdits(e,t=!1){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit();const n=this._validateEditOperations(e);return this._doApplyEdits(n,t)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_doApplyEdits(e,t){const n=this._buffer.getLineCount(),i=this._buffer.applyEdits(e,this._options.trimAutoWhitespace,t),r=this._buffer.getLineCount(),s=i.changes;if(this._trimAutoWhitespaceLines=i.trimAutoWhitespaceLineNumbers,0!==s.length){for(let n=0,i=s.length;n<i;n++){const e=s[n];this._decorationsTree.acceptReplace(e.rangeOffset,e.rangeLength,e.text.length,e.forceMoveMarkers)}const e=[];this._increaseVersionId();let t=n;for(let n=0,i=s.length;n<i;n++){const i=s[n],[a]=(0,u.W)(i.text);this._onDidChangeDecorations.fire();const l=i.range.startLineNumber,h=i.range.endLineNumber,c=h-l,d=a,g=Math.min(c,d),m=d-c,p=r-t-m+l,_=p,b=p+d,k=this._decorationsTree.getInjectedTextInInterval(this,this.getOffsetAt(new f.y(_,1)),this.getOffsetAt(new f.y(b,this.getLineMaxColumn(b))),0),v=Ai.fromDecorations(k),C=new o.j3(v);for(let t=g;t>=0;t--){const n=l+t,i=p+t;C.takeFromEndWhile((e=>e.lineNumber>i));const r=C.takeFromEndWhile((e=>e.lineNumber===i));e.push(new Di(n,this.getLineContent(i),r))}if(g<c){const t=l+g;e.push(new Ri(t+1,h))}if(g<d){const n=new o.j3(v),i=l+g,s=d-g,a=r-t-s+i+1,h=[],c=[];for(let e=0;e<s;e++){const t=a+e;c[e]=this.getLineContent(t),n.takeWhile((e=>e.lineNumber<t)),h[e]=n.takeWhile((e=>e.lineNumber===t))}e.push(new Mi(i+1,l+d,c,h))}t+=m}this._emitContentChangedEvent(new Bi(e,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:s,eol:this._buffer.getEOL(),isEolChange:!1,versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return null===i.reverseEdits?void 0:i.reverseEdits}undo(){return this._undoRedoService.undo(this.uri)}canUndo(){return this._undoRedoService.canUndo(this.uri)}redo(){return this._undoRedoService.redo(this.uri)}canRedo(){return this._undoRedoService.canRedo(this.uri)}handleBeforeFireDecorationsChangedEvent(e){if(null===e||0===e.size)return;const t=Array.from(e).map((e=>new Di(e,this.getLineContent(e),this._getInjectedTextInLine(e))));this._onDidChangeInjectedText.fire(new Fi(t))}changeDecorations(e,t=0){this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(t,e)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_changeDecorations(e,t){const n={addDecoration:(t,n)=>this._deltaDecorationsImpl(e,[],[{range:t,options:n}])[0],changeDecoration:(e,t)=>{this._changeDecorationImpl(e,t)},changeDecorationOptions:(e,t)=>{this._changeDecorationOptionsImpl(e,ar(t))},removeDecoration:t=>{this._deltaDecorationsImpl(e,[t],[])},deltaDecorations:(t,n)=>0===t.length&&0===n.length?[]:this._deltaDecorationsImpl(e,t,n)};let i=null;try{i=t(n)}catch(r){(0,l.dz)(r)}return n.addDecoration=Gi,n.changeDecoration=Gi,n.changeDecorationOptions=Gi,n.removeDecoration=Gi,n.deltaDecorations=Gi,i}deltaDecorations(e,t,n=0){if(this._assertNotDisposed(),e||(e=[]),0===e.length&&0===t.length)return[];try{return this._deltaDecorationCallCnt++,this._deltaDecorationCallCnt>1&&(console.warn("Invoking deltaDecorations recursively could lead to leaking decorations."),(0,l.dz)(new Error("Invoking deltaDecorations recursively could lead to leaking decorations."))),this._onDidChangeDecorations.beginDeferredEmit(),this._deltaDecorationsImpl(n,e,t)}finally{this._onDidChangeDecorations.endDeferredEmit(),this._deltaDecorationCallCnt--}}_getTrackedRange(e){return this.getDecorationRange(e)}_setTrackedRange(e,t,n){const i=e?this._decorations[e]:null;if(!i)return t?this._deltaDecorationsImpl(0,[],[{range:t,options:or[n]}],!0)[0]:null;if(!t)return this._decorationsTree.delete(i),delete this._decorations[i.id],null;const r=this._validateRangeRelaxedNoAllocations(t),s=this._buffer.getOffsetAt(r.startLineNumber,r.startColumn),o=this._buffer.getOffsetAt(r.endLineNumber,r.endColumn);return this._decorationsTree.delete(i),i.reset(this.getVersionId(),s,o,r),i.setOptions(or[n]),this._decorationsTree.insert(i),i.id}removeAllDecorationsWithOwnerId(e){if(this._isDisposed)return;const t=this._decorationsTree.collectNodesFromOwner(e);for(let n=0,i=t.length;n<i;n++){const e=t[n];this._decorationsTree.delete(e),delete this._decorations[e.id]}}getDecorationOptions(e){const t=this._decorations[e];return t?t.options:null}getDecorationRange(e){const t=this._decorations[e];return t?this._decorationsTree.getNodeRange(this,t):null}getLineDecorations(e,t=0,n=!1){return e<1||e>this.getLineCount()?[]:this.getLinesDecorations(e,e,t,n)}getLinesDecorations(e,t,n=0,i=!1,r=!1){const s=this.getLineCount(),a=Math.min(s,Math.max(1,e)),l=Math.min(s,Math.max(1,t)),h=this.getLineMaxColumn(l),c=new m.Q(a,1,l,h),u=this._getDecorationsInRange(c,n,i,r);return(0,o.E4)(u,this._decorationProvider.getDecorationsInRange(c,n,i)),u}getDecorationsInRange(e,t=0,n=!1,i=!1,r=!1){const s=this.validateRange(e),a=this._getDecorationsInRange(s,t,n,r);return(0,o.E4)(a,this._decorationProvider.getDecorationsInRange(s,t,n,i)),a}getOverviewRulerDecorations(e=0,t=!1){return this._decorationsTree.getAll(this,e,t,!0,!1)}getInjectedTextDecorations(e=0){return this._decorationsTree.getAllInjectedText(this,e)}_getInjectedTextInLine(e){const t=this._buffer.getOffsetAt(e,1),n=t+this._buffer.getLineLength(e),i=this._decorationsTree.getInjectedTextInInterval(this,t,n,0);return Ai.fromDecorations(i).filter((t=>t.lineNumber===e))}getAllDecorations(e=0,t=!1){let n=this._decorationsTree.getAll(this,e,t,!1,!1);return n=n.concat(this._decorationProvider.getAllDecorations(e,t)),n}getAllMarginDecorations(e=0){return this._decorationsTree.getAll(this,e,!1,!1,!0)}_getDecorationsInRange(e,t,n,i){const r=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),s=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn);return this._decorationsTree.getAllInInterval(this,r,s,t,n,i)}getRangeAt(e,t){return this._buffer.getRangeAt(e,t-e)}_changeDecorationImpl(e,t){const n=this._decorations[e];if(!n)return;if(n.options.after){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.endLineNumber)}if(n.options.before){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.startLineNumber)}const i=this._validateRangeRelaxedNoAllocations(t),r=this._buffer.getOffsetAt(i.startLineNumber,i.startColumn),s=this._buffer.getOffsetAt(i.endLineNumber,i.endColumn);this._decorationsTree.delete(n),n.reset(this.getVersionId(),r,s,i),this._decorationsTree.insert(n),this._onDidChangeDecorations.checkAffectedAndFire(n.options),n.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(i.endLineNumber),n.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(i.startLineNumber)}_changeDecorationOptionsImpl(e,t){const n=this._decorations[e];if(!n)return;const i=!(!n.options.overviewRuler||!n.options.overviewRuler.color),r=!(!t.overviewRuler||!t.overviewRuler.color);if(this._onDidChangeDecorations.checkAffectedAndFire(n.options),this._onDidChangeDecorations.checkAffectedAndFire(t),n.options.after||t.after){const e=this._decorationsTree.getNodeRange(this,n);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(n.options.before||t.before){const e=this._decorationsTree.getNodeRange(this,n);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}const s=i!==r,o=function(e){return!!e.after||!!e.before}(t)!==Xi(n);s||o?(this._decorationsTree.delete(n),n.setOptions(t),this._decorationsTree.insert(n)):n.setOptions(t)}_deltaDecorationsImpl(e,t,n,i=!1){const r=this.getVersionId(),s=t.length;let o=0;const a=n.length;let l=0;this._onDidChangeDecorations.beginDeferredEmit();try{const h=new Array(a);for(;o<s||l<a;){let c=null;if(o<s){do{c=this._decorations[t[o++]]}while(!c&&o<s);if(c){if(c.options.after){const e=this._decorationsTree.getNodeRange(this,c);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(c.options.before){const e=this._decorationsTree.getNodeRange(this,c);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}this._decorationsTree.delete(c),i||this._onDidChangeDecorations.checkAffectedAndFire(c.options)}}if(l<a){if(!c){const e=++this._lastDecorationId,t=`${this._instanceId};${e}`;c=new hn(t,0,0),this._decorations[t]=c}const t=n[l],s=this._validateRangeRelaxedNoAllocations(t.range),o=ar(t.options),a=this._buffer.getOffsetAt(s.startLineNumber,s.startColumn),u=this._buffer.getOffsetAt(s.endLineNumber,s.endColumn);c.ownerId=e,c.reset(r,a,u,s),c.setOptions(o),c.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(s.endLineNumber),c.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(s.startLineNumber),i||this._onDidChangeDecorations.checkAffectedAndFire(o),this._decorationsTree.insert(c),h[l]=c.id,l++}else c&&delete this._decorations[c.id]}return h}finally{this._onDidChangeDecorations.endDeferredEmit()}}getLanguageId(){return this.tokenization.getLanguageId()}setLanguage(e,t){"string"===typeof e?(this._languageSelectionListener.clear(),this._setLanguage(e,t)):(this._languageSelectionListener.value=e.onDidChange((()=>this._setLanguage(e.languageId,t))),this._setLanguage(e.languageId,t))}_setLanguage(e,t){this.tokenization.setLanguageId(e,t),this._languageService.requestRichLanguageFeatures(e)}getLanguageIdAtPosition(e,t){return this.tokenization.getLanguageIdAtPosition(e,t)}getWordAtPosition(e){return this._tokenizationTextModelPart.getWordAtPosition(e)}getWordUntilPosition(e){return this._tokenizationTextModelPart.getWordUntilPosition(e)}normalizePosition(e,t){return e}getLineIndentColumn(e){return function(e){let t=0;for(const n of e){if(" "!==n&&"\t"!==n)break;t++}return t}(this.getLineContent(e))+1}};function Yi(e){return!(!e.options.overviewRuler||!e.options.overviewRuler.color)}function Xi(e){return!!e.options.after||!!e.options.before}Qi=qi=Hi([Ui(4,zi),Ui(5,k.L),Ui(6,se),Ui(7,K._Y)],Qi);class Zi{constructor(){this._decorationsTree0=new un,this._decorationsTree1=new un,this._injectedTextDecorationsTree=new un}ensureAllNodesHaveRanges(e){this.getAll(e,0,!1,!1,!1)}_ensureNodesHaveRanges(e,t){for(const n of t)null===n.range&&(n.range=e.getRangeAt(n.cachedAbsoluteStart,n.cachedAbsoluteEnd));return t}getAllInInterval(e,t,n,i,r,s){const o=e.getVersionId(),a=this._intervalSearch(t,n,i,r,o,s);return this._ensureNodesHaveRanges(e,a)}_intervalSearch(e,t,n,i,r,s){const o=this._decorationsTree0.intervalSearch(e,t,n,i,r,s),a=this._decorationsTree1.intervalSearch(e,t,n,i,r,s),l=this._injectedTextDecorationsTree.intervalSearch(e,t,n,i,r,s);return o.concat(a).concat(l)}getInjectedTextInInterval(e,t,n,i){const r=e.getVersionId(),s=this._injectedTextDecorationsTree.intervalSearch(t,n,i,!1,r,!1);return this._ensureNodesHaveRanges(e,s).filter((e=>e.options.showIfCollapsed||!e.range.isEmpty()))}getAllInjectedText(e,t){const n=e.getVersionId(),i=this._injectedTextDecorationsTree.search(t,!1,n,!1);return this._ensureNodesHaveRanges(e,i).filter((e=>e.options.showIfCollapsed||!e.range.isEmpty()))}getAll(e,t,n,i,r){const s=e.getVersionId(),o=this._search(t,n,i,s,r);return this._ensureNodesHaveRanges(e,o)}_search(e,t,n,i,r){if(n)return this._decorationsTree1.search(e,t,i,r);{const n=this._decorationsTree0.search(e,t,i,r),s=this._decorationsTree1.search(e,t,i,r),o=this._injectedTextDecorationsTree.search(e,t,i,r);return n.concat(s).concat(o)}}collectNodesFromOwner(e){const t=this._decorationsTree0.collectNodesFromOwner(e),n=this._decorationsTree1.collectNodesFromOwner(e),i=this._injectedTextDecorationsTree.collectNodesFromOwner(e);return t.concat(n).concat(i)}collectNodesPostOrder(){const e=this._decorationsTree0.collectNodesPostOrder(),t=this._decorationsTree1.collectNodesPostOrder(),n=this._injectedTextDecorationsTree.collectNodesPostOrder();return e.concat(t).concat(n)}insert(e){Xi(e)?this._injectedTextDecorationsTree.insert(e):Yi(e)?this._decorationsTree1.insert(e):this._decorationsTree0.insert(e)}delete(e){Xi(e)?this._injectedTextDecorationsTree.delete(e):Yi(e)?this._decorationsTree1.delete(e):this._decorationsTree0.delete(e)}getNodeRange(e,t){const n=e.getVersionId();return t.cachedVersionId!==n&&this._resolveNode(t,n),null===t.range&&(t.range=e.getRangeAt(t.cachedAbsoluteStart,t.cachedAbsoluteEnd)),t.range}_resolveNode(e,t){Xi(e)?this._injectedTextDecorationsTree.resolveNode(e,t):Yi(e)?this._decorationsTree1.resolveNode(e,t):this._decorationsTree0.resolveNode(e,t)}acceptReplace(e,t,n,i){this._decorationsTree0.acceptReplace(e,t,n,i),this._decorationsTree1.acceptReplace(e,t,n,i),this._injectedTextDecorationsTree.acceptReplace(e,t,n,i)}}function Ji(e){return e.replace(/[^a-z0-9\-_]/gi," ")}class er{constructor(e){this.color=e.color||"",this.darkColor=e.darkColor||""}}class tr extends er{constructor(e){super(e),this._resolvedColor=null,this.position="number"===typeof e.position?e.position:me.A5.Center}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=null}_resolveColor(e,t){if("string"===typeof e)return e;const n=e?t.getColor(e.id):null;return n?n.toString():""}}class nr{constructor(e){this.position=e?.position??me.ZS.Center,this.persistLane=e?.persistLane}}class ir extends er{constructor(e){super(e),this.position=e.position,this.sectionHeaderStyle=e.sectionHeaderStyle??null,this.sectionHeaderText=e.sectionHeaderText??null}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=void 0}_resolveColor(e,t){return"string"===typeof e?a.Q1.fromHex(e):t.getColor(e.id)}}class rr{static from(e){return e instanceof rr?e:new rr(e)}constructor(e){this.content=e.content||"",this.inlineClassName=e.inlineClassName||null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.attachedData=e.attachedData||null,this.cursorStops=e.cursorStops||null}}class sr{static register(e){return new sr(e)}static createDynamic(e){return new sr(e)}constructor(e){this.description=e.description,this.blockClassName=e.blockClassName?Ji(e.blockClassName):null,this.blockDoesNotCollapse=e.blockDoesNotCollapse??null,this.blockIsAfterEnd=e.blockIsAfterEnd??null,this.blockPadding=e.blockPadding??null,this.stickiness=e.stickiness||0,this.zIndex=e.zIndex||0,this.className=e.className?Ji(e.className):null,this.shouldFillLineOnLineBreak=e.shouldFillLineOnLineBreak??null,this.hoverMessage=e.hoverMessage||null,this.glyphMarginHoverMessage=e.glyphMarginHoverMessage||null,this.lineNumberHoverMessage=e.lineNumberHoverMessage||null,this.isWholeLine=e.isWholeLine||!1,this.showIfCollapsed=e.showIfCollapsed||!1,this.collapseOnReplaceEdit=e.collapseOnReplaceEdit||!1,this.overviewRuler=e.overviewRuler?new tr(e.overviewRuler):null,this.minimap=e.minimap?new ir(e.minimap):null,this.glyphMargin=e.glyphMarginClassName?new nr(e.glyphMargin):null,this.glyphMarginClassName=e.glyphMarginClassName?Ji(e.glyphMarginClassName):null,this.linesDecorationsClassName=e.linesDecorationsClassName?Ji(e.linesDecorationsClassName):null,this.lineNumberClassName=e.lineNumberClassName?Ji(e.lineNumberClassName):null,this.linesDecorationsTooltip=e.linesDecorationsTooltip?h.jy(e.linesDecorationsTooltip):null,this.firstLineDecorationClassName=e.firstLineDecorationClassName?Ji(e.firstLineDecorationClassName):null,this.marginClassName=e.marginClassName?Ji(e.marginClassName):null,this.inlineClassName=e.inlineClassName?Ji(e.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=e.beforeContentClassName?Ji(e.beforeContentClassName):null,this.afterContentClassName=e.afterContentClassName?Ji(e.afterContentClassName):null,this.after=e.after?rr.from(e.after):null,this.before=e.before?rr.from(e.before):null,this.hideInCommentTokens=e.hideInCommentTokens??!1,this.hideInStringTokens=e.hideInStringTokens??!1}}sr.EMPTY=sr.register({description:"empty"});const or=[sr.register({description:"tracked-range-always-grows-when-typing-at-edges",stickiness:0}),sr.register({description:"tracked-range-never-grows-when-typing-at-edges",stickiness:1}),sr.register({description:"tracked-range-grows-only-when-typing-before",stickiness:2}),sr.register({description:"tracked-range-grows-only-when-typing-after",stickiness:3})];function ar(e){return e instanceof sr?e:sr.createDynamic(e)}class lr extends r.jG{constructor(e){super(),this.handleBeforeFire=e,this._actual=this._register(new i.vl),this.event=this._actual.event,this._affectedInjectedTextLines=null,this._deferredCnt=0,this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._affectsLineNumber=!1}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(){this._deferredCnt--,0===this._deferredCnt&&(this._shouldFireDeferred&&this.doFire(),this._affectedInjectedTextLines?.clear(),this._affectedInjectedTextLines=null)}recordLineAffectedByInjectedText(e){this._affectedInjectedTextLines||(this._affectedInjectedTextLines=new Set),this._affectedInjectedTextLines.add(e)}checkAffectedAndFire(e){this._affectsMinimap||=!!e.minimap?.position,this._affectsOverviewRuler||=!!e.overviewRuler?.color,this._affectsGlyphMargin||=!!e.glyphMarginClassName,this._affectsLineNumber||=!!e.lineNumberClassName,this.tryFire()}fire(){this._affectsMinimap=!0,this._affectsOverviewRuler=!0,this._affectsGlyphMargin=!0,this.tryFire()}tryFire(){0===this._deferredCnt?this.doFire():this._shouldFireDeferred=!0}doFire(){this.handleBeforeFire(this._affectedInjectedTextLines);const e={affectsMinimap:this._affectsMinimap,affectsOverviewRuler:this._affectsOverviewRuler,affectsGlyphMargin:this._affectsGlyphMargin,affectsLineNumber:this._affectsLineNumber};this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._actual.fire(e)}}class hr extends r.jG{constructor(){super(),this._fastEmitter=this._register(new i.vl),this.fastEvent=this._fastEmitter.event,this._slowEmitter=this._register(new i.vl),this.slowEvent=this._slowEmitter.event,this._deferredCnt=0,this._deferredEvent=null}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(e=null){if(this._deferredCnt--,0===this._deferredCnt&&null!==this._deferredEvent){this._deferredEvent.rawContentChangedEvent.resultingSelection=e;const t=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(t),this._slowEmitter.fire(t)}}fire(e){this._deferredCnt>0?this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e:(this._fastEmitter.fire(e),this._slowEmitter.fire(e))}}var cr,ur=n(360),dr=n(5600),gr=n(6456),fr=n(146),mr=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},pr=function(e,t){return function(n,i){t(n,i,e)}};function _r(e){return e.toString()}class br{constructor(e,t,n){this.model=e,this._modelEventListeners=new r.Cm,this.model=e,this._modelEventListeners.add(e.onWillDispose((()=>t(e)))),this._modelEventListeners.add(e.onDidChangeLanguage((t=>n(e,t))))}dispose(){this._modelEventListeners.dispose()}}const kr=s.j9||s.zx?1:2;class vr{constructor(e,t,n,i,r,s,o,a){this.uri=e,this.initialUndoRedoSnapshot=t,this.time=n,this.sharesUndoRedoStack=i,this.heapSize=r,this.sha1=s,this.versionId=o,this.alternativeVersionId=a}}let Cr=class extends r.jG{static{cr=this}static{this.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK=20971520}constructor(e,t,n,r){super(),this._configurationService=e,this._resourcePropertiesService=t,this._undoRedoService=n,this._instantiationService=r,this._onModelAdded=this._register(new i.vl),this.onModelAdded=this._onModelAdded.event,this._onModelRemoved=this._register(new i.vl),this.onModelRemoved=this._onModelRemoved.event,this._onModelModeChanged=this._register(new i.vl),this.onModelLanguageChanged=this._onModelModeChanged.event,this._modelCreationOptionsByLanguageAndResource=Object.create(null),this._models={},this._disposedModels=new Map,this._disposedModelsHeapSize=0,this._register(this._configurationService.onDidChangeConfiguration((e=>this._updateModelOptions(e)))),this._updateModelOptions(void 0)}static _readModelOptions(e,t){let n=_.tabSize;if(e.editor&&"undefined"!==typeof e.editor.tabSize){const t=parseInt(e.editor.tabSize,10);isNaN(t)||(n=t),n<1&&(n=1)}let i="tabSize";if(e.editor&&"undefined"!==typeof e.editor.indentSize&&"tabSize"!==e.editor.indentSize){const t=parseInt(e.editor.indentSize,10);isNaN(t)||(i=Math.max(t,1))}let r=_.insertSpaces;e.editor&&"undefined"!==typeof e.editor.insertSpaces&&(r="false"!==e.editor.insertSpaces&&Boolean(e.editor.insertSpaces));let s=kr;const o=e.eol;"\r\n"===o?s=2:"\n"===o&&(s=1);let a=_.trimAutoWhitespace;e.editor&&"undefined"!==typeof e.editor.trimAutoWhitespace&&(a="false"!==e.editor.trimAutoWhitespace&&Boolean(e.editor.trimAutoWhitespace));let l=_.detectIndentation;e.editor&&"undefined"!==typeof e.editor.detectIndentation&&(l="false"!==e.editor.detectIndentation&&Boolean(e.editor.detectIndentation));let h=_.largeFileOptimizations;e.editor&&"undefined"!==typeof e.editor.largeFileOptimizations&&(h="false"!==e.editor.largeFileOptimizations&&Boolean(e.editor.largeFileOptimizations));let c=_.bracketPairColorizationOptions;return e.editor?.bracketPairColorization&&"object"===typeof e.editor.bracketPairColorization&&(c={enabled:!!e.editor.bracketPairColorization.enabled,independentColorPoolPerBracketType:!!e.editor.bracketPairColorization.independentColorPoolPerBracketType}),{isForSimpleWidget:t,tabSize:n,indentSize:i,insertSpaces:r,detectIndentation:l,defaultEOL:s,trimAutoWhitespace:a,largeFileOptimizations:h,bracketPairColorizationOptions:c}}_getEOL(e,t){if(e)return this._resourcePropertiesService.getEOL(e,t);const n=this._configurationService.getValue("files.eol",{overrideIdentifier:t});return n&&"string"===typeof n&&"auto"!==n?n:3===s.OS||2===s.OS?"\n":"\r\n"}_shouldRestoreUndoStack(){const e=this._configurationService.getValue("files.restoreUndoStack");return"boolean"!==typeof e||e}getCreationOptions(e,t,n){const i="string"===typeof e?e:e.languageId;let r=this._modelCreationOptionsByLanguageAndResource[i+t];if(!r){const e=this._configurationService.getValue("editor",{overrideIdentifier:i,resource:t}),s=this._getEOL(t,i);r=cr._readModelOptions({editor:e,eol:s},n),this._modelCreationOptionsByLanguageAndResource[i+t]=r}return r}_updateModelOptions(e){const t=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);const n=Object.keys(this._models);for(let i=0,r=n.length;i<r;i++){const r=n[i],s=this._models[r],o=s.model.getLanguageId(),a=s.model.uri;if(e&&!e.affectsConfiguration("editor",{overrideIdentifier:o,resource:a})&&!e.affectsConfiguration("files.eol",{overrideIdentifier:o,resource:a}))continue;const l=t[o+a],h=this.getCreationOptions(o,a,s.model.isForSimpleWidget);cr._setModelOptionsForModel(s.model,h,l)}}static _setModelOptionsForModel(e,t,n){n&&n.defaultEOL!==t.defaultEOL&&1===e.getLineCount()&&e.setEOL(1===t.defaultEOL?0:1),n&&n.detectIndentation===t.detectIndentation&&n.insertSpaces===t.insertSpaces&&n.tabSize===t.tabSize&&n.indentSize===t.indentSize&&n.trimAutoWhitespace===t.trimAutoWhitespace&&(0,fr.aI)(n.bracketPairColorizationOptions,t.bracketPairColorizationOptions)||(t.detectIndentation?(e.detectIndentation(t.insertSpaces,t.tabSize),e.updateOptions({trimAutoWhitespace:t.trimAutoWhitespace,bracketColorizationOptions:t.bracketPairColorizationOptions})):e.updateOptions({insertSpaces:t.insertSpaces,tabSize:t.tabSize,indentSize:t.indentSize,trimAutoWhitespace:t.trimAutoWhitespace,bracketColorizationOptions:t.bracketPairColorizationOptions}))}_insertDisposedModel(e){this._disposedModels.set(_r(e.uri),e),this._disposedModelsHeapSize+=e.heapSize}_removeDisposedModel(e){const t=this._disposedModels.get(_r(e));return t&&(this._disposedModelsHeapSize-=t.heapSize),this._disposedModels.delete(_r(e)),t}_ensureDisposedModelsHeapSize(e){if(this._disposedModelsHeapSize>e){const t=[];for(this._disposedModels.forEach((e=>{e.sharesUndoRedoStack||t.push(e)})),t.sort(((e,t)=>e.time-t.time));t.length>0&&this._disposedModelsHeapSize>e;){const e=t.shift();this._removeDisposedModel(e.uri),null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}}}_createModelData(e,t,n,i){const r=this.getCreationOptions(t,n,i),s=this._instantiationService.createInstance(Qi,e,t,r,n);if(n&&this._disposedModels.has(_r(n))){const e=this._removeDisposedModel(n),t=this._undoRedoService.getElements(n),i=this._getSHA1Computer(),r=!!i.canComputeSHA1(s)&&i.computeSHA1(s)===e.sha1;if(r||e.sharesUndoRedoStack){for(const e of t.past)Vt(e)&&e.matchesResource(n)&&e.setModel(s);for(const e of t.future)Vt(e)&&e.matchesResource(n)&&e.setModel(s);this._undoRedoService.setElementsValidFlag(n,!0,(e=>Vt(e)&&e.matchesResource(n))),r&&(s._overwriteVersionId(e.versionId),s._overwriteAlternativeVersionId(e.alternativeVersionId),s._overwriteInitialUndoRedoSnapshot(e.initialUndoRedoSnapshot))}else null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}const o=_r(s.uri);if(this._models[o])throw new Error("ModelService: Cannot add model because it already exists!");const a=new br(s,(e=>this._onWillDispose(e)),((e,t)=>this._onDidChangeLanguage(e,t)));return this._models[o]=a,a}createModel(e,t,n,i=!1){let r;return r=t?this._createModelData(e,t,n,i):this._createModelData(e,Q.vH,n,i),this._onModelAdded.fire(r.model),r.model}getModels(){const e=[],t=Object.keys(this._models);for(let n=0,i=t.length;n<i;n++){const i=t[n];e.push(this._models[i].model)}return e}getModel(e){const t=_r(e),n=this._models[t];return n?n.model:null}_schemaShouldMaintainUndoRedoElements(e){return e.scheme===gr.ny.file||e.scheme===gr.ny.vscodeRemote||e.scheme===gr.ny.vscodeUserData||e.scheme===gr.ny.vscodeNotebookCell||"fake-fs"===e.scheme}_onWillDispose(e){const t=_r(e.uri),n=this._models[t],i=this._undoRedoService.getUriComparisonKey(e.uri)!==e.uri.toString();let r=!1,s=0;if(i||this._shouldRestoreUndoStack()&&this._schemaShouldMaintainUndoRedoElements(e.uri)){const t=this._undoRedoService.getElements(e.uri);if(t.past.length>0||t.future.length>0){for(const n of t.past)Vt(n)&&n.matchesResource(e.uri)&&(r=!0,s+=n.heapSize(e.uri),n.setModel(e.uri));for(const n of t.future)Vt(n)&&n.matchesResource(e.uri)&&(r=!0,s+=n.heapSize(e.uri),n.setModel(e.uri))}}const o=cr.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK,a=this._getSHA1Computer();if(r)if(i||!(s>o)&&a.canComputeSHA1(e))this._ensureDisposedModelsHeapSize(o-s),this._undoRedoService.setElementsValidFlag(e.uri,!1,(t=>Vt(t)&&t.matchesResource(e.uri))),this._insertDisposedModel(new vr(e.uri,n.model.getInitialUndoRedoSnapshot(),Date.now(),i,s,a.computeSHA1(e),e.getVersionId(),e.getAlternativeVersionId()));else{const e=n.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}else if(!i){const e=n.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}delete this._models[t],n.dispose(),delete this._modelCreationOptionsByLanguageAndResource[e.getLanguageId()+e.uri],this._onModelRemoved.fire(e)}_onDidChangeLanguage(e,t){const n=t.oldLanguage,i=e.getLanguageId(),r=this.getCreationOptions(n,e.uri,e.isForSimpleWidget),s=this.getCreationOptions(i,e.uri,e.isForSimpleWidget);cr._setModelOptionsForModel(e,s,r),this._onModelModeChanged.fire({model:e,oldLanguageId:n})}_getSHA1Computer(){return new Lr}};Cr=cr=mr([pr(0,$.pG),pr(1,ur.ITextResourcePropertiesService),pr(2,zi),pr(3,K._Y)],Cr);class Lr{static{this.MAX_MODEL_SIZE=10485760}canComputeSHA1(e){return e.getValueLength()<=Lr.MAX_MODEL_SIZE}computeSHA1(e){const t=new dr.v7,n=e.createSnapshot();let i;for(;i=n.read();)t.update(i);return t.digest()}}},1788:(e,t,n)=>{"use strict";function i(e){return e}n.d(t,{VV:()=>s,o5:()=>r});class r{constructor(e,t){this.lastCache=void 0,this.lastArgKey=void 0,"function"===typeof e?(this._fn=e,this._computeKey=i):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this._fn(e)),this.lastCache}}class s{get cachedValues(){return this._map}constructor(e,t){this._map=new Map,this._map2=new Map,"function"===typeof e?(this._fn=e,this._computeKey=i):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);if(this._map2.has(t))return this._map2.get(t);const n=this._fn(e);return this._map.set(e,n),this._map2.set(t,n),n}}},1929:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SimpleWorkerClient:()=>k,SimpleWorkerServer:()=>L,create:()=>y,logOnceWebWorkerWarning:()=>d});var i=n(4383),r=n(1234),s=n(1484),o=n(6456),a=n(8067),l=n(1508);const h="default",c="$initialize";let u=!1;function d(e){a.HZ&&(u||(u=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(e.message))}class g{constructor(e,t,n,i,r){this.vsWorker=e,this.req=t,this.channel=n,this.method=i,this.args=r,this.type=0}}class f{constructor(e,t,n,i){this.vsWorker=e,this.seq=t,this.res=n,this.err=i,this.type=1}}class m{constructor(e,t,n,i,r){this.vsWorker=e,this.req=t,this.channel=n,this.eventName=i,this.arg=r,this.type=2}}class p{constructor(e,t,n){this.vsWorker=e,this.req=t,this.event=n,this.type=3}}class _{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class b{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,t,n){const i=String(++this._lastSentReq);return new Promise(((r,s)=>{this._pendingReplies[i]={resolve:r,reject:s},this._send(new g(this._workerId,i,e,t,n))}))}listen(e,t,n){let i=null;const s=new r.vl({onWillAddFirstListener:()=>{i=String(++this._lastSentReq),this._pendingEmitters.set(i,s),this._send(new m(this._workerId,i,e,t,n))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(i),this._send(new _(this._workerId,i)),i=null}});return s.event}handleMessage(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))}createProxyToRemoteChannel(e,t){const n={get:(n,i)=>("string"!==typeof i||n[i]||(C(i)?n[i]=t=>this.listen(e,i,t):v(i)?n[i]=this.listen(e,i,void 0):36===i.charCodeAt(0)&&(n[i]=async(...n)=>(await(t?.()),this.sendMessage(e,i,n)))),n[i])};return new Proxy(Object.create(null),n)}_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])return void console.warn("Got reply to unknown seq");const t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let n=e.err;return e.err.$isError&&(n=new Error,n.name=e.err.name,n.message=e.err.message,n.stack=e.err.stack),void t.reject(n)}t.resolve(e.res)}_handleRequestMessage(e){const t=e.req;this._handler.handleMessage(e.channel,e.method,e.args).then((e=>{this._send(new f(this._workerId,t,e,void 0))}),(e=>{e.detail instanceof Error&&(e.detail=(0,i.cU)(e.detail)),this._send(new f(this._workerId,t,void 0,(0,i.cU)(e)))}))}_handleSubscribeEventMessage(e){const t=e.req,n=this._handler.handleEvent(e.channel,e.eventName,e.arg)((e=>{this._send(new p(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){const t=[];if(0===e.type)for(let n=0;n<e.args.length;n++)e.args[n]instanceof ArrayBuffer&&t.push(e.args[n]);else 1===e.type&&e.res instanceof ArrayBuffer&&t.push(e.res);this._handler.sendMessage(e,t)}}class k extends s.jG{constructor(e,t){super(),this._localChannels=new Map,this._worker=this._register(e.create({amdModuleId:"vs/base/common/worker/simpleWorker",esmModuleLocation:t.esmModuleLocation,label:t.label},(e=>{this._protocol.handleMessage(e)}),(e=>{(0,i.dz)(e)}))),this._protocol=new b({sendMessage:(e,t)=>{this._worker.postMessage(e,t)},handleMessage:(e,t,n)=>this._handleMessage(e,t,n),handleEvent:(e,t,n)=>this._handleEvent(e,t,n)}),this._protocol.setWorkerId(this._worker.getId());let n=null;const r=globalThis.require;"undefined"!==typeof r&&"function"===typeof r.getConfig?n=r.getConfig():"undefined"!==typeof globalThis.requirejs&&(n=globalThis.requirejs.s.contexts._.config),this._onModuleLoaded=this._protocol.sendMessage(h,c,[this._worker.getId(),JSON.parse(JSON.stringify(n)),t.amdModuleId]),this.proxy=this._protocol.createProxyToRemoteChannel(h,(async()=>{await this._onModuleLoaded})),this._onModuleLoaded.catch((e=>{this._onError("Worker failed to load "+t.amdModuleId,e)}))}_handleMessage(e,t,n){const i=this._localChannels.get(e);if(!i)return Promise.reject(new Error(`Missing channel ${e} on main thread`));if("function"!==typeof i[t])return Promise.reject(new Error(`Missing method ${t} on main thread channel ${e}`));try{return Promise.resolve(i[t].apply(i,n))}catch(r){return Promise.reject(r)}}_handleEvent(e,t,n){const i=this._localChannels.get(e);if(!i)throw new Error(`Missing channel ${e} on main thread`);if(C(t)){const r=i[t].call(i,n);if("function"!==typeof r)throw new Error(`Missing dynamic event ${t} on main thread channel ${e}.`);return r}if(v(t)){const n=i[t];if("function"!==typeof n)throw new Error(`Missing event ${t} on main thread channel ${e}.`);return n}throw new Error(`Malformed event name ${t}`)}setChannel(e,t){this._localChannels.set(e,t)}_onError(e,t){console.error(e),console.info(t)}}function v(e){return"o"===e[0]&&"n"===e[1]&&l.Wv(e.charCodeAt(2))}function C(e){return/^onDynamic/.test(e)&&l.Wv(e.charCodeAt(9))}class L{constructor(e,t){this._localChannels=new Map,this._remoteChannels=new Map,this._requestHandlerFactory=t,this._requestHandler=null,this._protocol=new b({sendMessage:(t,n)=>{e(t,n)},handleMessage:(e,t,n)=>this._handleMessage(e,t,n),handleEvent:(e,t,n)=>this._handleEvent(e,t,n)})}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,t,n){if(e===h&&t===c)return this.initialize(n[0],n[1],n[2]);const i=e===h?this._requestHandler:this._localChannels.get(e);if(!i)return Promise.reject(new Error(`Missing channel ${e} on worker thread`));if("function"!==typeof i[t])return Promise.reject(new Error(`Missing method ${t} on worker thread channel ${e}`));try{return Promise.resolve(i[t].apply(i,n))}catch(r){return Promise.reject(r)}}_handleEvent(e,t,n){const i=e===h?this._requestHandler:this._localChannels.get(e);if(!i)throw new Error(`Missing channel ${e} on worker thread`);if(C(t)){const e=i[t].call(i,n);if("function"!==typeof e)throw new Error(`Missing dynamic event ${t} on request handler.`);return e}if(v(t)){const e=i[t];if("function"!==typeof e)throw new Error(`Missing event ${t} on request handler.`);return e}throw new Error(`Malformed event name ${t}`)}getChannel(e){if(!this._remoteChannels.has(e)){const t=this._protocol.createProxyToRemoteChannel(e);this._remoteChannels.set(e,t)}return this._remoteChannels.get(e)}async initialize(e,t,i){if(this._protocol.setWorkerId(e),!this._requestHandlerFactory){t&&("undefined"!==typeof t.baseUrl&&delete t.baseUrl,"undefined"!==typeof t.paths&&"undefined"!==typeof t.paths.vs&&delete t.paths.vs,"undefined"!==typeof t.trustedTypesPolicy&&delete t.trustedTypesPolicy,t.catchError=!0,globalThis.require.config(t));{const e=o.zl.asBrowserUri(`${i}.js`).toString(!0);return n(5890)(`${e}`).then((e=>{if(this._requestHandler=e.create(this),!this._requestHandler)throw new Error("No RequestHandler!")}))}}this._requestHandler=this._requestHandlerFactory(this)}}function y(e){return new L(e,null)}},1939:(e,t,n)=>{"use strict";n.d(t,{K:()=>i});const i=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"})},1940:(e,t,n)=>{"use strict";n.d(t,{vb:()=>l,uC:()=>h,Qg:()=>a,$6:()=>c});n(8447);var i=n(4383),r=n(1234),s=n(1484),o=n(8067);Symbol("MicrotaskDelay");function a(e){return!!e&&"function"===typeof e.then}class l{constructor(){this.disposable=void 0,this.isDisposed=!1}cancel(){this.disposable?.dispose(),this.disposable=void 0}cancelAndSet(e,t,n=globalThis){if(this.isDisposed)throw new i.D7("Calling 'cancelAndSet' on a disposed IntervalTimer");this.cancel();const r=n.setInterval((()=>{e()}),t);this.disposable=(0,s.s)((()=>{n.clearInterval(r),this.disposable=void 0}))}dispose(){this.cancel(),this.isDisposed=!0}}class h{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return-1!==this.timeoutToken}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner?.()}}let c,u;u="function"!==typeof globalThis.requestIdleCallback||"function"!==typeof globalThis.cancelIdleCallback?(e,t)=>{(0,o._p)((()=>{if(n)return;const e=Date.now()+15,i={didTimeout:!0,timeRemaining:()=>Math.max(0,e-Date.now())};t(Object.freeze(i))}));let n=!1;return{dispose(){n||(n=!0)}}}:(e,t,n)=>{const i=e.requestIdleCallback(t,"number"===typeof n?{timeout:n}:void 0);let r=!1;return{dispose(){r||(r=!0,e.cancelIdleCallback(i))}}},c=e=>u(globalThis,e);var d;!function(e){e.settled=async function(e){let t;const n=await Promise.all(e.map((e=>e.then((e=>e),(e=>{t||(t=e)})))));if("undefined"!==typeof t)throw t;return n},e.withAsyncBody=function(e){return new Promise((async(t,n)=>{try{await e(t,n)}catch(i){n(i)}}))}}(d||(d={}));class g{static fromArray(e){return new g((t=>{t.emitMany(e)}))}static fromPromise(e){return new g((async t=>{t.emitMany(await e)}))}static fromPromises(e){return new g((async t=>{await Promise.all(e.map((async e=>t.emitOne(await e))))}))}static merge(e){return new g((async t=>{await Promise.all(e.map((async e=>{for await(const n of e)t.emitOne(n)})))}))}static{this.EMPTY=g.fromArray([])}constructor(e,t){this._state=0,this._results=[],this._error=null,this._onReturn=t,this._onStateChanged=new r.vl,queueMicrotask((async()=>{const t={emitOne:e=>this.emitOne(e),emitMany:e=>this.emitMany(e),reject:e=>this.reject(e)};try{await Promise.resolve(e(t)),this.resolve()}catch(n){this.reject(n)}finally{t.emitOne=void 0,t.emitMany=void 0,t.reject=void 0}}))}[Symbol.asyncIterator](){let e=0;return{next:async()=>{for(;;){if(2===this._state)throw this._error;if(e<this._results.length)return{done:!1,value:this._results[e++]};if(1===this._state)return{done:!0,value:void 0};await r.Jh.toPromise(this._onStateChanged.event)}},return:async()=>(this._onReturn?.(),{done:!0,value:void 0})}}static map(e,t){return new g((async n=>{for await(const i of e)n.emitOne(t(i))}))}map(e){return g.map(this,e)}static filter(e,t){return new g((async n=>{for await(const i of e)t(i)&&n.emitOne(i)}))}filter(e){return g.filter(this,e)}static coalesce(e){return g.filter(e,(e=>!!e))}coalesce(){return g.coalesce(this)}static async toPromise(e){const t=[];for await(const n of e)t.push(n);return t}toPromise(){return g.toPromise(this)}emitOne(e){0===this._state&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){0===this._state&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){0===this._state&&(this._state=1,this._onStateChanged.fire())}reject(e){0===this._state&&(this._state=2,this._error=e,this._onStateChanged.fire())}}},2083:(e,t,n)=>{"use strict";n.d(t,{rY:()=>p,ou:()=>m,dG:()=>y,OB:()=>w});var i=n(9493),r=(n(9400),n(1234)),s=n(1484);class o{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new r.vl,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]),(0,s.s)((()=>{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();const n=new a(this,e,t);return this._factories.set(e,n),(0,s.s)((()=>{const t=this._factories.get(e);t&&t===n&&(this._factories.delete(e),t.dispose())}))}async getOrCreate(e){const t=this.get(e);if(t)return t;const n=this._factories.get(e);return!n||n.isResolved?null:(await n.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;const 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}}class a extends s.jG{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._resolvePromise=this._create()),this._resolvePromise}async _create(){const e=await this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}}var l,h,c,u,d,g,f=n(8209);class m{constructor(e,t,n){this.offset=e,this.type=t,this.language=n,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}class p{constructor(e,t){this.tokens=e,this.endState=t,this._encodedTokenizationResultBrand=void 0}}!function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(l||(l={})),function(e){const t=new Map;t.set(0,i.W.symbolMethod),t.set(1,i.W.symbolFunction),t.set(2,i.W.symbolConstructor),t.set(3,i.W.symbolField),t.set(4,i.W.symbolVariable),t.set(5,i.W.symbolClass),t.set(6,i.W.symbolStruct),t.set(7,i.W.symbolInterface),t.set(8,i.W.symbolModule),t.set(9,i.W.symbolProperty),t.set(10,i.W.symbolEvent),t.set(11,i.W.symbolOperator),t.set(12,i.W.symbolUnit),t.set(13,i.W.symbolValue),t.set(15,i.W.symbolEnum),t.set(14,i.W.symbolConstant),t.set(15,i.W.symbolEnum),t.set(16,i.W.symbolEnumMember),t.set(17,i.W.symbolKeyword),t.set(27,i.W.symbolSnippet),t.set(18,i.W.symbolText),t.set(19,i.W.symbolColor),t.set(20,i.W.symbolFile),t.set(21,i.W.symbolReference),t.set(22,i.W.symbolCustomColor),t.set(23,i.W.symbolFolder),t.set(24,i.W.symbolTypeParameter),t.set(25,i.W.account),t.set(26,i.W.issues),e.toIcon=function(e){let n=t.get(e);return n||(console.info("No codicon found for CompletionItemKind "+e),n=i.W.symbolProperty),n};const n=new Map;n.set("method",0),n.set("function",1),n.set("constructor",2),n.set("field",3),n.set("variable",4),n.set("class",5),n.set("struct",6),n.set("interface",7),n.set("module",8),n.set("property",9),n.set("event",10),n.set("operator",11),n.set("unit",12),n.set("value",13),n.set("constant",14),n.set("enum",15),n.set("enum-member",16),n.set("enumMember",16),n.set("keyword",17),n.set("snippet",27),n.set("text",18),n.set("color",19),n.set("file",20),n.set("reference",21),n.set("customcolor",22),n.set("folder",23),n.set("type-parameter",24),n.set("typeParameter",24),n.set("account",25),n.set("issue",26),e.fromString=function(e,t){let i=n.get(e);return"undefined"!==typeof i||t||(i=9),i}}(h||(h={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(c||(c={}));!function(e){e[e.Automatic=0]="Automatic",e[e.PasteAs=1]="PasteAs"}(u||(u={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(d||(d={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(g||(g={}));(0,f.kg)("Array","array"),(0,f.kg)("Boolean","boolean"),(0,f.kg)("Class","class"),(0,f.kg)("Constant","constant"),(0,f.kg)("Constructor","constructor"),(0,f.kg)("Enum","enumeration"),(0,f.kg)("EnumMember","enumeration member"),(0,f.kg)("Event","event"),(0,f.kg)("Field","field"),(0,f.kg)("File","file"),(0,f.kg)("Function","function"),(0,f.kg)("Interface","interface"),(0,f.kg)("Key","key"),(0,f.kg)("Method","method"),(0,f.kg)("Module","module"),(0,f.kg)("Namespace","namespace"),(0,f.kg)("Null","null"),(0,f.kg)("Number","number"),(0,f.kg)("Object","object"),(0,f.kg)("Operator","operator"),(0,f.kg)("Package","package"),(0,f.kg)("Property","property"),(0,f.kg)("String","string"),(0,f.kg)("Struct","struct"),(0,f.kg)("TypeParameter","type parameter"),(0,f.kg)("Variable","variable");var _,b,k,v,C;!function(e){const t=new Map;t.set(0,i.W.symbolFile),t.set(1,i.W.symbolModule),t.set(2,i.W.symbolNamespace),t.set(3,i.W.symbolPackage),t.set(4,i.W.symbolClass),t.set(5,i.W.symbolMethod),t.set(6,i.W.symbolProperty),t.set(7,i.W.symbolField),t.set(8,i.W.symbolConstructor),t.set(9,i.W.symbolEnum),t.set(10,i.W.symbolInterface),t.set(11,i.W.symbolFunction),t.set(12,i.W.symbolVariable),t.set(13,i.W.symbolConstant),t.set(14,i.W.symbolString),t.set(15,i.W.symbolNumber),t.set(16,i.W.symbolBoolean),t.set(17,i.W.symbolArray),t.set(18,i.W.symbolObject),t.set(19,i.W.symbolKey),t.set(20,i.W.symbolNull),t.set(21,i.W.symbolEnumMember),t.set(22,i.W.symbolStruct),t.set(23,i.W.symbolEvent),t.set(24,i.W.symbolOperator),t.set(25,i.W.symbolTypeParameter),e.toIcon=function(e){let n=t.get(e);return n||(console.info("No codicon found for SymbolKind "+e),n=i.W.symbolProperty),n}}(_||(_={}));class L{static{this.Comment=new L("comment")}static{this.Imports=new L("imports")}static{this.Region=new L("region")}static fromValue(e){switch(e){case"comment":return L.Comment;case"imports":return L.Imports;case"region":return L.Region}return new L(e)}constructor(e){this.value=e}}!function(e){e[e.AIGenerated=1]="AIGenerated"}(b||(b={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(k||(k={})),function(e){e.is=function(e){return!(!e||"object"!==typeof e)&&("string"===typeof e.id&&"string"===typeof e.title)}}(v||(v={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(C||(C={}));const y=new o,w=new o;var S;!function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(S||(S={}))},2522:(e,t,n)=>{"use strict";var i;n.d(t,{f:()=>i}),function(e){function t(e){return e&&"object"===typeof e&&"function"===typeof e[Symbol.iterator]}e.is=t;const n=Object.freeze([]);function*i(e){yield e}e.empty=function(){return n},e.single=i,e.wrap=function(e){return t(e)?e:i(e)},e.from=function(e){return e||n},e.reverse=function*(e){for(let t=e.length-1;t>=0;t--)yield e[t]},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){let n=0;for(const i of e)if(t(i,n++))return!0;return!1},e.find=function(e,t){for(const n of e)if(t(n))return n},e.filter=function*(e,t){for(const n of e)t(n)&&(yield n)},e.map=function*(e,t){let n=0;for(const i of e)yield t(i,n++)},e.flatMap=function*(e,t){let n=0;for(const i of e)yield*t(i,n++)},e.concat=function*(...e){for(const t of e)yield*t},e.reduce=function(e,t,n){let i=n;for(const r of e)i=t(i,r);return i},e.slice=function*(e,t,n=e.length){for(t<0&&(t+=e.length),n<0?n+=e.length:n>e.length&&(n=e.length);t<n;t++)yield e[t]},e.consume=function(t,n=Number.POSITIVE_INFINITY){const i=[];if(0===n)return[i,t];const r=t[Symbol.iterator]();for(let s=0;s<n;s++){const t=r.next();if(t.done)return[i,e.empty()];i.push(t.value)}return[i,{[Symbol.iterator]:()=>r}]},e.asyncToArray=async function(e){const t=[];for await(const n of e)t.push(n);return Promise.resolve(t)}}(i||(i={}))},2661:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LanguageFeaturesService:()=>m});var i=n(1234),r=n(1484),s=n(6223),o=n(6958),a=n(8821);function l(e,t,n,i,r,s){if(Array.isArray(e)){let o=0;for(const a of e){const e=l(a,t,n,i,r,s);if(10===e)return e;e>o&&(o=e)}return o}if("string"===typeof e)return i?"*"===e?5:e===n?10:0:0;if(e){const{language:l,pattern:h,scheme:c,hasAccessToAllModels:u,notebookType:d}=e;if(!i&&!u)return 0;d&&r&&(t=r);let g=0;if(c)if(c===t.scheme)g=10;else{if("*"!==c)return 0;g=5}if(l)if(l===n)g=10;else{if("*"!==l)return 0;g=Math.max(g,5)}if(d)if(d===s)g=10;else{if("*"!==d||void 0===s)return 0;g=Math.max(g,5)}if(h){let e;if(e="string"===typeof h?h:{...h,base:(0,a.S8)(h.base)},e!==t.fsPath&&!(0,o.YW)(e,t.fsPath))return 0;g=10}return g}return 0}function h(e){return"string"!==typeof e&&(Array.isArray(e)?e.every(h):!!e.exclusive)}class c{constructor(e,t,n,i,r){this.uri=e,this.languageId=t,this.notebookUri=n,this.notebookType=i,this.recursive=r}equals(e){return this.notebookType===e.notebookType&&this.languageId===e.languageId&&this.uri.toString()===e.uri.toString()&&this.notebookUri?.toString()===e.notebookUri?.toString()&&this.recursive===e.recursive}}class u{constructor(e){this._notebookInfoResolver=e,this._clock=0,this._entries=[],this._onDidChange=new i.vl,this.onDidChange=this._onDidChange.event}register(e,t){let n={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(n),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),(0,r.s)((()=>{if(n){const e=this._entries.indexOf(n);e>=0&&(this._entries.splice(e,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),n=void 0)}}))}has(e){return this.all(e).length>0}all(e){if(!e)return[];this._updateScores(e,!1);const t=[];for(const n of this._entries)n._score>0&&t.push(n.provider);return t}ordered(e,t=!1){const n=[];return this._orderedForEach(e,t,(e=>n.push(e.provider))),n}orderedGroups(e){const t=[];let n,i;return this._orderedForEach(e,!1,(e=>{n&&i===e._score?n.push(e.provider):(i=e._score,n=[e.provider],t.push(n))})),t}_orderedForEach(e,t,n){this._updateScores(e,t);for(const i of this._entries)i._score>0&&n(i)}_updateScores(e,t){const n=this._notebookInfoResolver?.(e.uri),i=n?new c(e.uri,e.getLanguageId(),n.uri,n.type,t):new c(e.uri,e.getLanguageId(),void 0,void 0,t);if(!this._lastCandidate?.equals(i)){this._lastCandidate=i;for(const n of this._entries)if(n._score=l(n.selector,i.uri,i.languageId,(0,s.vd)(e),i.notebookUri,i.notebookType),h(n.selector)&&n._score>0){if(!t){for(const e of this._entries)e._score=0;n._score=1e3;break}n._score=0}this._entries.sort(u._compareByScoreAndTime)}}static _compareByScoreAndTime(e,t){return e._score<t._score?1:e._score>t._score?-1:d(e.selector)&&!d(t.selector)?1:!d(e.selector)&&d(t.selector)?-1:e._time<t._time?1:e._time>t._time?-1:0}}function d(e){return"string"!==typeof e&&(Array.isArray(e)?e.some(d):Boolean(e.isBuiltin))}var g=n(6942),f=n(4621);class m{constructor(){this.referenceProvider=new u(this._score.bind(this)),this.renameProvider=new u(this._score.bind(this)),this.newSymbolNamesProvider=new u(this._score.bind(this)),this.codeActionProvider=new u(this._score.bind(this)),this.definitionProvider=new u(this._score.bind(this)),this.typeDefinitionProvider=new u(this._score.bind(this)),this.declarationProvider=new u(this._score.bind(this)),this.implementationProvider=new u(this._score.bind(this)),this.documentSymbolProvider=new u(this._score.bind(this)),this.inlayHintsProvider=new u(this._score.bind(this)),this.colorProvider=new u(this._score.bind(this)),this.codeLensProvider=new u(this._score.bind(this)),this.documentFormattingEditProvider=new u(this._score.bind(this)),this.documentRangeFormattingEditProvider=new u(this._score.bind(this)),this.onTypeFormattingEditProvider=new u(this._score.bind(this)),this.signatureHelpProvider=new u(this._score.bind(this)),this.hoverProvider=new u(this._score.bind(this)),this.documentHighlightProvider=new u(this._score.bind(this)),this.multiDocumentHighlightProvider=new u(this._score.bind(this)),this.selectionRangeProvider=new u(this._score.bind(this)),this.foldingRangeProvider=new u(this._score.bind(this)),this.linkProvider=new u(this._score.bind(this)),this.inlineCompletionsProvider=new u(this._score.bind(this)),this.inlineEditProvider=new u(this._score.bind(this)),this.completionProvider=new u(this._score.bind(this)),this.linkedEditingRangeProvider=new u(this._score.bind(this)),this.documentRangeSemanticTokensProvider=new u(this._score.bind(this)),this.documentSemanticTokensProvider=new u(this._score.bind(this)),this.documentDropEditProvider=new u(this._score.bind(this)),this.documentPasteEditProvider=new u(this._score.bind(this))}_score(e){return this._notebookTypeResolver?.(e)}}(0,f.v)(g.ILanguageFeaturesService,m,1)},3069:(e,t,n)=>{"use strict";n.d(t,{y:()=>i});class i{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new i(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return i.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return i.isBefore(this,e)}static isBefore(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column}isBeforeOrEqual(e){return i.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<=t.column}static compare(e,t){const n=0|e.lineNumber,i=0|t.lineNumber;if(n===i){return(0|e.column)-(0|t.column)}return n-i}clone(){return new i(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new i(e.lineNumber,e.column)}static isIPosition(e){return e&&"number"===typeof e.lineNumber&&"number"===typeof e.column}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}}},3511:(e,t,n)=>{"use strict";n.d(t,{rr:()=>Q,$b:()=>Y});n(1234);var i=n(1484),r=n(8067),s=n(1508),o=n(4383),a=n(8209);function l(...e){switch(e.length){case 1:return(0,a.kg)("contextkey.scanner.hint.didYouMean1","Did you mean {0}?",e[0]);case 2:return(0,a.kg)("contextkey.scanner.hint.didYouMean2","Did you mean {0} or {1}?",e[0],e[1]);case 3:return(0,a.kg)("contextkey.scanner.hint.didYouMean3","Did you mean {0}, {1} or {2}?",e[0],e[1],e[2]);default:return}}const h=(0,a.kg)("contextkey.scanner.hint.didYouForgetToOpenOrCloseQuote","Did you forget to open or close the quote?"),c=(0,a.kg)("contextkey.scanner.hint.didYouForgetToEscapeSlash","Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'.");class u{constructor(){this._input="",this._start=0,this._current=0,this._tokens=[],this._errors=[],this.stringRe=/[a-zA-Z0-9_<>\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(e){switch(e.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return e.isTripleEq?"===":"==";case 4:return e.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:case 8:return">=";case 9:return"=~";case 10:case 17:case 18:case 19:return e.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 20:return"EOF";default:throw(0,o.iH)(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}static{this._regexFlags=new Set(["i","g","s","m","y","u"].map((e=>e.charCodeAt(0))))}static{this._keywords=new Map([["not",14],["in",13],["false",12],["true",11]])}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();){this._start=this._current;switch(this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){const e=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:e})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){const e=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:e})}else this._match(126)?this._addToken(9):this._error(l("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(l("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(l("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return!this._isAtEnd()&&(this._input.charCodeAt(this._current)===e&&(this._current++,!0))}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){const t=this._start,n=this._input.substring(this._start,this._current),i={type:19,offset:this._start,lexeme:n};this._errors.push({offset:t,lexeme:n,additionalInfo:e}),this._tokens.push(i)}_string(){this.stringRe.lastIndex=this._start;const e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;const t=this._input.substring(this._start,this._current),n=u._keywords.get(t);n?this._addToken(n):this._tokens.push({type:17,lexeme:t,offset:this._start})}}_quotedString(){for(;39!==this._peek()&&!this._isAtEnd();)this._advance();this._isAtEnd()?this._error(h):(this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1}))}_regex(){let e=this._current,t=!1,n=!1;for(;;){if(e>=this._input.length)return this._current=e,void this._error(c);const i=this._input.charCodeAt(e);if(t)t=!1;else{if(47===i&&!n){e++;break}91===i?n=!0:92===i?t=!0:93===i&&(n=!1)}e++}for(;e<this._input.length&&u._regexFlags.has(this._input.charCodeAt(e));)e++;this._current=e;const i=this._input.substring(this._start,this._current);this._tokens.push({type:10,lexeme:i,offset:this._start})}_isAtEnd(){return this._current>=this._input.length}}var d=n(3591);const g=new Map;g.set("false",!1),g.set("true",!0),g.set("isMac",r.zx),g.set("isLinux",r.j9),g.set("isWindows",r.uF),g.set("isWeb",r.HZ),g.set("isMacNative",r.zx&&!r.HZ),g.set("isEdge",r.UP),g.set("isFirefox",r.gm),g.set("isChrome",r.H8),g.set("isSafari",r.nr);const f=Object.prototype.hasOwnProperty,m={regexParsingWithErrorRecovery:!0},p=(0,a.kg)("contextkey.parser.error.emptyString","Empty context key expression"),_=(0,a.kg)("contextkey.parser.error.emptyString.hint","Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),b=(0,a.kg)("contextkey.parser.error.noInAfterNot","'in' after 'not'."),k=(0,a.kg)("contextkey.parser.error.closingParenthesis","closing parenthesis ')'"),v=(0,a.kg)("contextkey.parser.error.unexpectedToken","Unexpected token"),C=(0,a.kg)("contextkey.parser.error.unexpectedToken.hint","Did you forget to put && or || before the token?"),L=(0,a.kg)("contextkey.parser.error.unexpectedEOF","Unexpected end of expression"),y=(0,a.kg)("contextkey.parser.error.unexpectedEOF.hint","Did you forget to put a context key?");class w{static{this._parseError=new Error}constructor(e=m){this._config=e,this._scanner=new u,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(""!==e){this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{const e=this._expr();if(!this._isAtEnd()){const e=this._peek(),t=17===e.type?C:void 0;throw this._parsingErrors.push({message:v,offset:e.offset,lexeme:u.getLexeme(e),additionalInfo:t}),w._parseError}return e}catch(t){if(t!==w._parseError)throw t;return}}else this._parsingErrors.push({message:p,offset:0,lexeme:"",additionalInfo:_})}_expr(){return this._or()}_or(){const e=[this._and()];for(;this._matchOne(16);){const t=this._and();e.push(t)}return 1===e.length?e[0]:S.or(...e)}_and(){const e=[this._term()];for(;this._matchOne(15);){const t=this._term();e.push(t)}return 1===e.length?e[0]:S.and(...e)}_term(){if(this._matchOne(2)){const e=this._peek();switch(e.type){case 11:return this._advance(),E.INSTANCE;case 12:return this._advance(),N.INSTANCE;case 0:{this._advance();const e=this._expr();return this._consume(1,k),e?.negate()}case 17:return this._advance(),M.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){const e=this._peek();switch(e.type){case 11:return this._advance(),S.true();case 12:return this._advance(),S.false();case 0:{this._advance();const e=this._expr();return this._consume(1,k),e}case 17:{const i=e.lexeme;if(this._advance(),this._matchOne(9)){const e=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),10!==e.type)throw this._errExpectedButGot("REGEX",e);const n=e.lexeme,r=n.lastIndexOf("/"),s=r===n.length-1?void 0:this._removeFlagsGY(n.substring(r+1));let o;try{o=new RegExp(n.substring(1,r),s)}catch(t){throw this._errExpectedButGot("REGEX",e)}return V.create(i,o)}switch(e.type){case 10:case 19:{const n=[e.lexeme];this._advance();let r=this._peek(),s=0;for(let t=0;t<e.lexeme.length;t++)40===e.lexeme.charCodeAt(t)?s++:41===e.lexeme.charCodeAt(t)&&s--;for(;!this._isAtEnd()&&15!==r.type&&16!==r.type;){switch(r.type){case 0:s++;break;case 1:s--;break;case 10:case 18:for(let t=0;t<r.lexeme.length;t++)40===r.lexeme.charCodeAt(t)?s++:41===e.lexeme.charCodeAt(t)&&s--}if(s<0)break;n.push(u.getLexeme(r)),this._advance(),r=this._peek()}const o=n.join(""),a=o.lastIndexOf("/"),l=a===o.length-1?void 0:this._removeFlagsGY(o.substring(a+1));let h;try{h=new RegExp(o.substring(1,a),l)}catch(t){throw this._errExpectedButGot("REGEX",e)}return S.regex(i,h)}case 18:{const t=e.lexeme;this._advance();let r=null;if(!(0,s.AV)(t)){const i=t.indexOf("/"),s=t.lastIndexOf("/");if(i!==s&&i>=0){const o=t.slice(i+1,s),a="i"===t[s+1]?"i":"";try{r=new RegExp(o,a)}catch(n){throw this._errExpectedButGot("REGEX",e)}}}if(null===r)throw this._errExpectedButGot("REGEX",e);return V.create(i,r)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,b);const e=this._value();return S.notIn(i,e)}switch(this._peek().type){case 3:{this._advance();const e=this._value();if(18===this._previous().type)return S.equals(i,e);switch(e){case"true":return S.has(i);case"false":return S.not(i);default:return S.equals(i,e)}}case 4:{this._advance();const e=this._value();if(18===this._previous().type)return S.notEquals(i,e);switch(e){case"true":return S.not(i);case"false":return S.has(i);default:return S.notEquals(i,e)}}case 5:return this._advance(),P.create(i,this._value());case 6:return this._advance(),z.create(i,this._value());case 7:return this._advance(),B.create(i,this._value());case 8:return this._advance(),F.create(i,this._value());case 13:return this._advance(),S.in(i,this._value());default:return S.has(i)}}case 20:throw this._parsingErrors.push({message:L,offset:e.offset,lexeme:"",additionalInfo:y}),w._parseError;default:throw this._errExpectedButGot("true | false | KEY \n\t| KEY '=~' REGEX \n\t| KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value",this._peek())}}_value(){const e=this._peek();switch(e.type){case 17:case 18:return this._advance(),e.lexeme;case 11:return this._advance(),"true";case 12:return this._advance(),"false";case 13:return this._advance(),"in";default:return""}}_removeFlagsGY(e){return e.replaceAll(this._flagsGYRe,"")}_previous(){return this._tokens[this._current-1]}_matchOne(e){return!!this._check(e)&&(this._advance(),!0)}_advance(){return this._isAtEnd()||this._current++,this._previous()}_consume(e,t){if(this._check(e))return this._advance();throw this._errExpectedButGot(t,this._peek())}_errExpectedButGot(e,t,n){const i=(0,a.kg)("contextkey.parser.error.expectedButGot","Expected: {0}\nReceived: '{1}'.",e,u.getLexeme(t)),r=t.offset,s=u.getLexeme(t);return this._parsingErrors.push({message:i,offset:r,lexeme:s,additionalInfo:n}),w._parseError}_check(e){return this._peek().type===e}_peek(){return this._tokens[this._current]}_isAtEnd(){return 20===this._peek().type}}class S{static false(){return E.INSTANCE}static true(){return N.INSTANCE}static has(e){return I.create(e)}static equals(e,t){return T.create(e,t)}static notEquals(e,t){return R.create(e,t)}static regex(e,t){return V.create(e,t)}static in(e,t){return A.create(e,t)}static notIn(e,t){return D.create(e,t)}static not(e){return M.create(e)}static and(...e){return H.create(e,null,!0)}static or(...e){return U.create(e,null,!0)}static{this._parser=new w({regexParsingWithErrorRecovery:!1})}static deserialize(e){if(void 0===e||null===e)return;return this._parser.parse(e)}}function x(e,t){return e.cmp(t)}class E{static{this.INSTANCE=new E}constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!1}serialize(){return"false"}keys(){return[]}negate(){return N.INSTANCE}}class N{static{this.INSTANCE=new N}constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!0}serialize(){return"true"}keys(){return[]}negate(){return E.INSTANCE}}class I{static create(e,t=null){const n=g.get(e);return"boolean"===typeof n?n?N.INSTANCE:E.INSTANCE:new I(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=2}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=g.get(this.key);return"boolean"===typeof e?e?N.INSTANCE:E.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=M.create(this.key,this)),this.negated}}class T{static create(e,t,n=null){if("boolean"===typeof t)return t?I.create(e,n):M.create(e,n);const i=g.get(e);if("boolean"===typeof i){return t===(i?"true":"false")?N.INSTANCE:E.INSTANCE}return new T(e,t,n)}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=4}cmp(e){return e.type!==this.type?this.type-e.type:$(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=g.get(this.key);if("boolean"===typeof e){const t=e?"true":"false";return this.value===t?N.INSTANCE:E.INSTANCE}return this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=R.create(this.key,this.value,this)),this.negated}}class A{static create(e,t){return new A(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=10,this.negated=null}cmp(e){return e.type!==this.type?this.type-e.type:$(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type&&(this.key===e.key&&this.valueKey===e.valueKey)}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.valueKey),n=e.getValue(this.key);return Array.isArray(t)?t.includes(n):"string"===typeof n&&"object"===typeof t&&null!==t&&f.call(t,n)}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=D.create(this.key,this.valueKey)),this.negated}}class D{static create(e,t){return new D(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=11,this._negated=A.create(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:this._negated.cmp(e._negated)}equals(e){return e.type===this.type&&this._negated.equals(e._negated)}substituteConstants(){return this}evaluate(e){return!this._negated.evaluate(e)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}negate(){return this._negated}}class R{static create(e,t,n=null){if("boolean"===typeof t)return t?M.create(e,n):I.create(e,n);const i=g.get(e);if("boolean"===typeof i){return t===(i?"true":"false")?E.INSTANCE:N.INSTANCE}return new R(e,t,n)}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=5}cmp(e){return e.type!==this.type?this.type-e.type:$(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=g.get(this.key);if("boolean"===typeof e){const t=e?"true":"false";return this.value===t?E.INSTANCE:N.INSTANCE}return this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=T.create(this.key,this.value,this)),this.negated}}class M{static create(e,t=null){const n=g.get(e);return"boolean"===typeof n?n?E.INSTANCE:N.INSTANCE:new M(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=3}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=g.get(this.key);return"boolean"===typeof e?e?E.INSTANCE:N.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=I.create(this.key,this)),this.negated}}function O(e,t){if("string"===typeof e){const t=parseFloat(e);isNaN(t)||(e=t)}return"string"===typeof e||"number"===typeof e?t(e):E.INSTANCE}class B{static create(e,t,n=null){return O(t,(t=>new B(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=12}cmp(e){return e.type!==this.type?this.type-e.type:$(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=z.create(this.key,this.value,this)),this.negated}}class F{static create(e,t,n=null){return O(t,(t=>new F(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=13}cmp(e){return e.type!==this.type?this.type-e.type:$(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=P.create(this.key,this.value,this)),this.negated}}class P{static create(e,t,n=null){return O(t,(t=>new P(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=14}cmp(e){return e.type!==this.type?this.type-e.type:$(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=F.create(this.key,this.value,this)),this.negated}}class z{static create(e,t,n=null){return O(t,(t=>new z(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=15}cmp(e){return e.type!==this.type?this.type-e.type:$(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=B.create(this.key,this.value,this)),this.negated}}class V{static create(e,t){return new V(e,t)}constructor(e,t){this.key=e,this.regexp=t,this.type=7,this.negated=null}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.key<e.key)return-1;if(this.key>e.key)return 1;const t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return t<n?-1:t>n?1:0}equals(e){if(e.type===this.type){const t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return this.key===e.key&&t===n}return!1}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.key);return!!this.regexp&&this.regexp.test(t)}serialize(){const e=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=W.create(this)),this.negated}}class W{static create(e){return new W(e)}constructor(e){this._actual=e,this.type=8}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type&&this._actual.equals(e._actual)}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){return`!(${this._actual.serialize()})`}keys(){return this._actual.keys()}negate(){return this._actual}}function q(e){let t=null;for(let n=0,i=e.length;n<i;n++){const i=e[n].substituteConstants();if(e[n]!==i&&null===t){t=[];for(let i=0;i<n;i++)t[i]=e[i]}null!==t&&(t[n]=i)}return null===t?e:t}class H{static create(e,t,n){return H._normalizeArr(e,t,n)}constructor(e,t){this.expr=e,this.negated=t,this.type=6}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,n=this.expr.length;t<n;t++){const n=x(this.expr[t],e.expr[t]);if(0!==n)return n}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){const e=q(this.expr);return e===this.expr?this:H.create(e,this.negated,!1)}evaluate(e){for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].evaluate(e))return!1;return!0}static _normalizeArr(e,t,n){const i=[];let r=!1;for(const s of e)if(s)if(1!==s.type){if(0===s.type)return E.INSTANCE;6!==s.type?i.push(s):i.push(...s.expr)}else r=!0;if(0===i.length&&r)return N.INSTANCE;if(0!==i.length){if(1===i.length)return i[0];i.sort(x);for(let e=1;e<i.length;e++)i[e-1].equals(i[e])&&(i.splice(e,1),e--);if(1===i.length)return i[0];for(;i.length>1;){const e=i[i.length-1];if(9!==e.type)break;i.pop();const t=i.pop(),r=0===i.length,s=U.create(e.expr.map((e=>H.create([e,t],null,n))),null,r);s&&(i.push(s),i.sort(x))}if(1===i.length)return i[0];if(n){for(let e=0;e<i.length;e++)for(let t=e+1;t<i.length;t++)if(i[e].negate().equals(i[t]))return E.INSTANCE;if(1===i.length)return i[0]}return new H(i,t)}}serialize(){return this.expr.map((e=>e.serialize())).join(" && ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());this.negated=U.create(e,this,!0)}return this.negated}}class U{static create(e,t,n){return U._normalizeArr(e,t,n)}constructor(e,t){this.expr=e,this.negated=t,this.type=9}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,n=this.expr.length;t<n;t++){const n=x(this.expr[t],e.expr[t]);if(0!==n)return n}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){const e=q(this.expr);return e===this.expr?this:U.create(e,this.negated,!1)}evaluate(e){for(let t=0,n=this.expr.length;t<n;t++)if(this.expr[t].evaluate(e))return!0;return!1}static _normalizeArr(e,t,n){let i=[],r=!1;if(e){for(let t=0,n=e.length;t<n;t++){const n=e[t];if(n)if(0!==n.type){if(1===n.type)return N.INSTANCE;9!==n.type?i.push(n):i=i.concat(n.expr)}else r=!0}if(0===i.length&&r)return E.INSTANCE;i.sort(x)}if(0!==i.length){if(1===i.length)return i[0];for(let e=1;e<i.length;e++)i[e-1].equals(i[e])&&(i.splice(e,1),e--);if(1===i.length)return i[0];if(n){for(let e=0;e<i.length;e++)for(let t=e+1;t<i.length;t++)if(i[e].negate().equals(i[t]))return N.INSTANCE;if(1===i.length)return i[0]}return new U(i,t)}}serialize(){return this.expr.map((e=>e.serialize())).join(" || ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());for(;e.length>1;){const t=e.shift(),n=e.shift(),i=[];for(const e of G(t))for(const t of G(n))i.push(H.create([e,t],null,!1));e.unshift(U.create(i,null,!1))}this.negated=U.create(e,this,!0)}return this.negated}}class j extends I{static{this._info=[]}static all(){return j._info.values()}constructor(e,t,n){super(e,null),this._defaultValue=t,"object"===typeof n?j._info.push({...n,key:e}):!0!==n&&j._info.push({key:e,description:n,type:null!==t&&void 0!==t?typeof t:void 0})}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return T.create(this.key,e)}}(0,d.u1)("contextKeyService");function K(e,t){return e<t?-1:e>t?1:0}function $(e,t,n,i){return e<n?-1:e>n?1:t<i?-1:t>i?1:0}function G(e){return 9===e.type?e.expr:[e]}const Q=(0,d.u1)("logService");var Y;!function(e){e[e.Off=0]="Off",e[e.Trace=1]="Trace",e[e.Debug=2]="Debug",e[e.Info=3]="Info",e[e.Warning=4]="Warning",e[e.Error=5]="Error"}(Y||(Y={}));Y.Info;i.jG;new j("logLevel",function(e){switch(e){case Y.Trace:return"trace";case Y.Debug:return"debug";case Y.Info:return"info";case Y.Warning:return"warn";case Y.Error:return"error";case Y.Off:return"off"}}(Y.Info))},3591:(e,t,n)=>{"use strict";var i;n.d(t,{_Y:()=>r,u1:()=>s}),function(e){e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=function(t){return t[e.DI_DEPENDENCIES]||[]}}(i||(i={}));const r=s("instantiationService");function s(e){if(i.serviceIds.has(e))return i.serviceIds.get(e);const t=function(e,n,r){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");!function(e,t,n){t[i.DI_TARGET]===t?t[i.DI_DEPENDENCIES].push({id:e,index:n}):(t[i.DI_DEPENDENCIES]=[{id:e,index:n}],t[i.DI_TARGET]=t)}(t,e,r)};return t.toString=()=>e,i.serviceIds.set(e,t),t}},3750:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IModelService:()=>i});const i=(0,n(3591).u1)("modelService")},3941:(e,t,n)=>{"use strict";n.d(t,{W6:()=>l,vH:()=>h});var i=n(8209),r=n(1234),s=n(6359),o=n(1939),a=n(1646);const l=new class{constructor(){this._onDidChangeLanguages=new r.vl,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[]}registerLanguage(e){return this._languages.push(e),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let t=0,n=this._languages.length;t<n;t++)if(this._languages[t]===e)return void this._languages.splice(t,1)}}}getLanguages(){return this._languages}};s.O.add("editor.modesRegistry",l);const h="plaintext";l.registerLanguage({id:h,extensions:[".txt"],aliases:[i.kg("plainText.alias","Plain Text"),"text"],mimetypes:[o.K.text]}),s.O.as(a.Fd.Configuration).registerDefaultConfigurations([{overrides:{"[plaintext]":{"editor.unicodeHighlight.ambiguousCharacters":!1,"editor.unicodeHighlight.invisibleCharacters":!1}}}])},4001:(e,t,n)=>{"use strict";n.d(t,{Mo:()=>r,pG:()=>i});const i=(0,n(3591).u1)("configurationService");function r(e){return e.replace(/[\[\]]/g,"")}},4243:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ISemanticTokensStylingService:()=>i});const i=(0,n(3591).u1)("semanticTokensStylingService")},4272:(e,t,n)=>{"use strict";n.r(t),n.d(t,{KeyMod:()=>fe,createMonacoBaseAPI:()=>me});var i=n(8447),r=n(1234);class s{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}}const o=new s,a=new s,l=new s,h=new Array(230),c={},u=[],d=Object.create(null),g=Object.create(null),f=[],m=[];for(let pe=0;pe<=193;pe++)f[pe]=-1;for(let pe=0;pe<=132;pe++)m[pe]=-1;var p;!function(){const e="",t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[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,e,0,e,e,e],[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",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],n=[],i=[];for(const r of t){const[e,t,s,p,_,b,k,v,C]=r;if(i[t]||(i[t]=!0,u[t]=s,d[s]=t,g[s.toLowerCase()]=t,e&&(f[t]=p,0!==p&&3!==p&&5!==p&&4!==p&&6!==p&&57!==p&&(m[p]=t))),!n[p]){if(n[p]=!0,!_)throw new Error(`String representation missing for key code ${p} around scan code ${s}`);o.define(p,_),a.define(p,v||_),l.define(p,C||v||_)}b&&(h[b]=p),k&&(c[k]=p)}m[3]=46}(),function(e){e.toString=function(e){return o.keyCodeToStr(e)},e.fromString=function(e){return o.strToKeyCode(e)},e.toUserSettingsUS=function(e){return a.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return l.keyCodeToStr(e)},e.fromUserSettings=function(e){return a.strToKeyCode(e)||l.strToKeyCode(e)},e.toElectronAccelerator=function(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 o.keyCodeToStr(e)}}(p||(p={}));var _,b,k,v,C,L,y,w,S,x,E,N,I,T,A,D,R,M,O,B,F,P,z,V,W,q,H,U,j,K,$,G,Q,Y,X,Z,J,ee,te,ne,ie,re,se,oe,ae,le,he=n(9400),ce=n(3069),ue=n(6677),de=n(5326),ge=n(2083);!function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"}(_||(_={})),function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"}(b||(b={})),function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(k||(k={})),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.Snippet=27]="Snippet"}(v||(v={})),function(e){e[e.Deprecated=1]="Deprecated"}(C||(C={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(L||(L={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(y||(y={})),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"}(w||(w={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(S||(S={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(x||(x={})),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"}(E||(E={})),function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.ariaRequired=5]="ariaRequired",e[e.autoClosingBrackets=6]="autoClosingBrackets",e[e.autoClosingComments=7]="autoClosingComments",e[e.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=9]="autoClosingDelete",e[e.autoClosingOvertype=10]="autoClosingOvertype",e[e.autoClosingQuotes=11]="autoClosingQuotes",e[e.autoIndent=12]="autoIndent",e[e.automaticLayout=13]="automaticLayout",e[e.autoSurround=14]="autoSurround",e[e.bracketPairColorization=15]="bracketPairColorization",e[e.guides=16]="guides",e[e.codeLens=17]="codeLens",e[e.codeLensFontFamily=18]="codeLensFontFamily",e[e.codeLensFontSize=19]="codeLensFontSize",e[e.colorDecorators=20]="colorDecorators",e[e.colorDecoratorsLimit=21]="colorDecoratorsLimit",e[e.columnSelection=22]="columnSelection",e[e.comments=23]="comments",e[e.contextmenu=24]="contextmenu",e[e.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",e[e.cursorBlinking=26]="cursorBlinking",e[e.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",e[e.cursorStyle=28]="cursorStyle",e[e.cursorSurroundingLines=29]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",e[e.cursorWidth=31]="cursorWidth",e[e.disableLayerHinting=32]="disableLayerHinting",e[e.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",e[e.domReadOnly=34]="domReadOnly",e[e.dragAndDrop=35]="dragAndDrop",e[e.dropIntoEditor=36]="dropIntoEditor",e[e.emptySelectionClipboard=37]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",e[e.extraEditorClassName=39]="extraEditorClassName",e[e.fastScrollSensitivity=40]="fastScrollSensitivity",e[e.find=41]="find",e[e.fixedOverflowWidgets=42]="fixedOverflowWidgets",e[e.folding=43]="folding",e[e.foldingStrategy=44]="foldingStrategy",e[e.foldingHighlight=45]="foldingHighlight",e[e.foldingImportsByDefault=46]="foldingImportsByDefault",e[e.foldingMaximumRegions=47]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=49]="fontFamily",e[e.fontInfo=50]="fontInfo",e[e.fontLigatures=51]="fontLigatures",e[e.fontSize=52]="fontSize",e[e.fontWeight=53]="fontWeight",e[e.fontVariations=54]="fontVariations",e[e.formatOnPaste=55]="formatOnPaste",e[e.formatOnType=56]="formatOnType",e[e.glyphMargin=57]="glyphMargin",e[e.gotoLocation=58]="gotoLocation",e[e.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",e[e.hover=60]="hover",e[e.inDiffEditor=61]="inDiffEditor",e[e.inlineSuggest=62]="inlineSuggest",e[e.inlineEdit=63]="inlineEdit",e[e.letterSpacing=64]="letterSpacing",e[e.lightbulb=65]="lightbulb",e[e.lineDecorationsWidth=66]="lineDecorationsWidth",e[e.lineHeight=67]="lineHeight",e[e.lineNumbers=68]="lineNumbers",e[e.lineNumbersMinChars=69]="lineNumbersMinChars",e[e.linkedEditing=70]="linkedEditing",e[e.links=71]="links",e[e.matchBrackets=72]="matchBrackets",e[e.minimap=73]="minimap",e[e.mouseStyle=74]="mouseStyle",e[e.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=76]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",e[e.multiCursorModifier=78]="multiCursorModifier",e[e.multiCursorPaste=79]="multiCursorPaste",e[e.multiCursorLimit=80]="multiCursorLimit",e[e.occurrencesHighlight=81]="occurrencesHighlight",e[e.overviewRulerBorder=82]="overviewRulerBorder",e[e.overviewRulerLanes=83]="overviewRulerLanes",e[e.padding=84]="padding",e[e.pasteAs=85]="pasteAs",e[e.parameterHints=86]="parameterHints",e[e.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",e[e.placeholder=88]="placeholder",e[e.definitionLinkOpensInPeek=89]="definitionLinkOpensInPeek",e[e.quickSuggestions=90]="quickSuggestions",e[e.quickSuggestionsDelay=91]="quickSuggestionsDelay",e[e.readOnly=92]="readOnly",e[e.readOnlyMessage=93]="readOnlyMessage",e[e.renameOnType=94]="renameOnType",e[e.renderControlCharacters=95]="renderControlCharacters",e[e.renderFinalNewline=96]="renderFinalNewline",e[e.renderLineHighlight=97]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=98]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=99]="renderValidationDecorations",e[e.renderWhitespace=100]="renderWhitespace",e[e.revealHorizontalRightPadding=101]="revealHorizontalRightPadding",e[e.roundedSelection=102]="roundedSelection",e[e.rulers=103]="rulers",e[e.scrollbar=104]="scrollbar",e[e.scrollBeyondLastColumn=105]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=106]="scrollBeyondLastLine",e[e.scrollPredominantAxis=107]="scrollPredominantAxis",e[e.selectionClipboard=108]="selectionClipboard",e[e.selectionHighlight=109]="selectionHighlight",e[e.selectOnLineNumbers=110]="selectOnLineNumbers",e[e.showFoldingControls=111]="showFoldingControls",e[e.showUnused=112]="showUnused",e[e.snippetSuggestions=113]="snippetSuggestions",e[e.smartSelect=114]="smartSelect",e[e.smoothScrolling=115]="smoothScrolling",e[e.stickyScroll=116]="stickyScroll",e[e.stickyTabStops=117]="stickyTabStops",e[e.stopRenderingLineAfter=118]="stopRenderingLineAfter",e[e.suggest=119]="suggest",e[e.suggestFontSize=120]="suggestFontSize",e[e.suggestLineHeight=121]="suggestLineHeight",e[e.suggestOnTriggerCharacters=122]="suggestOnTriggerCharacters",e[e.suggestSelection=123]="suggestSelection",e[e.tabCompletion=124]="tabCompletion",e[e.tabIndex=125]="tabIndex",e[e.unicodeHighlighting=126]="unicodeHighlighting",e[e.unusualLineTerminators=127]="unusualLineTerminators",e[e.useShadowDOM=128]="useShadowDOM",e[e.useTabStops=129]="useTabStops",e[e.wordBreak=130]="wordBreak",e[e.wordSegmenterLocales=131]="wordSegmenterLocales",e[e.wordSeparators=132]="wordSeparators",e[e.wordWrap=133]="wordWrap",e[e.wordWrapBreakAfterCharacters=134]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=135]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=136]="wordWrapColumn",e[e.wordWrapOverride1=137]="wordWrapOverride1",e[e.wordWrapOverride2=138]="wordWrapOverride2",e[e.wrappingIndent=139]="wrappingIndent",e[e.wrappingStrategy=140]="wrappingStrategy",e[e.showDeprecated=141]="showDeprecated",e[e.inlayHints=142]="inlayHints",e[e.editorClassName=143]="editorClassName",e[e.pixelRatio=144]="pixelRatio",e[e.tabFocusMode=145]="tabFocusMode",e[e.layoutInfo=146]="layoutInfo",e[e.wrappingInfo=147]="wrappingInfo",e[e.defaultColorDecorators=148]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=149]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=150]="inlineCompletionsAccessibilityVerbose"}(N||(N={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(I||(I={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}(T||(T={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(A||(A={})),function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(D||(D={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(R||(R={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(M||(M={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(O||(O={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(B||(B={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(F||(F={})),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"}(P||(P={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(z||(z={})),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(V||(V={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(W||(W={})),function(e){e[e.Normal=1]="Normal",e[e.Underlined=2]="Underlined"}(q||(q={})),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"}(H||(H={})),function(e){e[e.AIGenerated=1]="AIGenerated"}(U||(U={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(j||(j={})),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"}(K||(K={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}($||($={})),function(e){e[e.Word=0]="Word",e[e.Line=1]="Line",e[e.Suggest=2]="Suggest"}(G||(G={})),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"}(Q||(Q={})),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"}(Y||(Y={})),function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"}(X||(X={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"}(Z||(Z={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(J||(J={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(ee||(ee={})),function(e){e.Off="off",e.OnCode="onCode",e.On="on"}(te||(te={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(ne||(ne={})),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"}(ie||(ie={})),function(e){e[e.Deprecated=1]="Deprecated"}(re||(re={})),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"}(se||(se={})),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"}(oe||(oe={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(ae||(ae={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(le||(le={}));class fe{static{this.CtrlCmd=2048}static{this.Shift=1024}static{this.Alt=512}static{this.WinCtrl=256}static chord(e,t){return function(e,t){return(e|(65535&t)<<16>>>0)>>>0}(e,t)}}function me(){return{editor:void 0,languages:void 0,CancellationTokenSource:i.Qi,Emitter:r.vl,KeyCode:P,KeyMod:fe,Position:ce.y,Range:ue.Q,Selection:de.L,SelectionDirection:ee,MarkerSeverity:z,MarkerTag:V,Uri:he.r,Token:ge.ou}}},4320:(e,t,n)=>{"use strict";var i,r;n.d(t,{cO:()=>c,db:()=>u,fT:()=>o,qK:()=>h});class s{constructor(e,t){this.uri=e,this.value=t}}class o{static{this.defaultToKey=e=>e.toString()}constructor(e,t){if(this[i]="ResourceMap",e instanceof o)this.map=new Map(e.map),this.toKey=t??o.defaultToKey;else if(function(e){return Array.isArray(e)}(e)){this.map=new Map,this.toKey=t??o.defaultToKey;for(const[t,n]of e)this.set(t,n)}else this.map=new Map,this.toKey=e??o.defaultToKey}set(e,t){return this.map.set(this.toKey(e),new s(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){"undefined"!==typeof t&&(e=e.bind(t));for(const[n,i]of this.map)e(i.value,i.uri,this)}*values(){for(const e of this.map.values())yield e.value}*keys(){for(const e of this.map.values())yield e.uri}*entries(){for(const e of this.map.values())yield[e.uri,e.value]}*[(i=Symbol.toStringTag,Symbol.iterator)](){for(const[,e]of this.map)yield[e.uri,e.value]}}class a{constructor(){this[r]="LinkedMap",this._map=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){const n=this._map.get(e);if(n)return 0!==t&&this.touch(n,t),n.value}set(e,t,n=0){let i=this._map.get(e);if(i)i.value=t,0!==n&&this.touch(i,n);else{switch(i={key:e,value:t,next:void 0,previous:void 0},n){case 0:case 2:default:this.addItemLast(i);break;case 1:this.addItemFirst(i)}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const 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 new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const n=this._state;let i=this._head;for(;i;){if(t?e.bind(t)(i.value,i.key,this):e(i.value,i.key,this),this._state!==n)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.key,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}values(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.value,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}entries(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:[n.key,n.value],done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}[(r=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();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(0===e)return void this.clear();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){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;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 new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,n=e.previous;if(!t||!n)throw new 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 new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;const 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(2===t){if(e===this._tail)return;const 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(){const e=[];return this.forEach(((t,n)=>{e.push([n,t])})),e}fromJSON(e){this.clear();for(const[t,n]of e)this.set(t,n)}}class l extends a{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))}}class h extends l{constructor(e,t=1){super(e,t)}trim(e){this.trimOld(e)}set(e,t){return super.set(e,t),this.checkTrim(),this}}class c{constructor(e){if(this._m1=new Map,this._m2=new Map,e)for(const[t,n]of e)this.set(t,n)}clear(){this._m1.clear(),this._m2.clear()}set(e,t){this._m1.set(e,t),this._m2.set(t,e)}get(e){return this._m1.get(e)}getKey(e){return this._m2.get(e)}delete(e){const t=this._m1.get(e);return void 0!==t&&(this._m1.delete(e),this._m2.delete(t),!0)}keys(){return this._m1.keys()}values(){return this._m1.values()}}class u{constructor(){this.map=new Map}add(e,t){let n=this.map.get(e);n||(n=new Set,this.map.set(e,n)),n.add(t)}delete(e,t){const n=this.map.get(e);n&&(n.delete(t),0===n.size&&this.map.delete(e))}forEach(e,t){const n=this.map.get(e);n&&n.forEach(t)}get(e){const t=this.map.get(e);return t||new Set}}},4383:(e,t,n)=>{"use strict";n.d(t,{D7:()=>g,EM:()=>u,Qg:()=>h,cU:()=>s,dz:()=>r,iH:()=>c});const i=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((()=>{if(e.stack){if(d.isErrorNoTelemetry(e))throw new d(e.message+"\n\n"+e.stack);throw new Error(e.message+"\n\n"+e.stack)}throw e}),0)}}emit(e){this.listeners.forEach((t=>{t(e)}))}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function r(e){a(e)||i.onUnexpectedError(e)}function s(e){if(e instanceof Error){const{name:t,message:n}=e;return{$isError:!0,name:t,message:n,stack:e.stacktrace||e.stack,noTelemetry:d.isErrorNoTelemetry(e)}}return e}const o="Canceled";function a(e){return e instanceof l||e instanceof Error&&e.name===o&&e.message===o}class l extends Error{constructor(){super(o),this.name=this.message}}function h(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")}function c(e){return e?new Error(`Illegal state: ${e}`):new Error("Illegal state")}class u extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class d extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof d)return e;const t=new d;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return"CodeExpectedError"===e.name}}class g extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,g.prototype)}}},4432:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITreeSitterParserService:()=>i});const i=(0,n(3591).u1)("treeSitterParserService")},4444:(e,t,n)=>{"use strict";n.d(t,{L:()=>r});var i=n(4383);class r{static addRange(e,t){let n=0;for(;n<t.length&&t[n].endExclusive<e.start;)n++;let i=n;for(;i<t.length&&t[i].start<=e.endExclusive;)i++;if(n===i)t.splice(n,0,e);else{const s=Math.min(e.start,t[n].start),o=Math.max(e.endExclusive,t[i-1].endExclusive);t.splice(n,i-n,new r(s,o))}}static tryCreate(e,t){if(!(e>t))return new r(e,t)}static ofLength(e){return new r(0,e)}static ofStartAndLength(e,t){return new r(e,e+t)}constructor(e,t){if(this.start=e,this.endExclusive=t,e>t)throw new i.D7(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new r(this.start+e,this.endExclusive+e)}deltaStart(e){return new r(this.start+e,this.endExclusive)}deltaEnd(e){return new r(this.start,this.endExclusive+e)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}contains(e){return this.start<=e&&e<this.endExclusive}join(e){return new r(Math.min(this.start,e.start),Math.max(this.endExclusive,e.endExclusive))}intersect(e){const t=Math.max(this.start,e.start),n=Math.min(this.endExclusive,e.endExclusive);if(t<=n)return new r(t,n)}intersects(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 i.D7(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,e))}clipCyclic(e){if(this.isEmpty)throw new i.D7(`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)}}},4454:(e,t,n)=>{"use strict";function i(e){let t=0,n=0,i=0,r=0;for(let s=0,o=e.length;s<o;s++){const a=e.charCodeAt(s);13===a?(0===t&&(n=s),t++,s+1<o&&10===e.charCodeAt(s+1)?(r|=2,s++):r|=3,i=s+1):10===a&&(r|=1,0===t&&(n=s),t++,i=s+1)}return 0===t&&(n=e.length),[t,n,e.length-i,r]}n.d(t,{W:()=>i})},4621:(e,t,n)=>{"use strict";n.d(t,{v:()=>s});class i{constructor(e,t=[],n=!1){this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=n}}const r=[];function s(e,t,n){t instanceof i||(t=new i(t,[],Boolean(n))),r.push([e,t])}},4855:(e,t,n)=>{"use strict";n.r(t),n.d(t,{UnicodeTextModelHighlighter:()=>l});var i=n(6677),r=n(7729),s=n(1508),o=n(6782),a=n(6486);class l{static computeUnicodeHighlights(e,t,n){const l=n?n.startLineNumber:1,c=n?n.endLineNumber:e.getLineCount(),u=new h(t),d=u.getCandidateCodePoints();let g;var f;g="allNonBasicAscii"===d?new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):new RegExp(""+(f=Array.from(d),`[${s.bm(f.map((e=>String.fromCodePoint(e))).join(""))}]`),"g");const m=new r.W5(null,g),p=[];let _,b=!1,k=0,v=0,C=0;e:for(let r=l,h=c;r<=h;r++){const t=e.getLineContent(r),n=t.length;m.reset(0);do{if(_=m.next(t),_){let e=_.index,l=_.index+_[0].length;if(e>0){const n=t.charCodeAt(e-1);s.pc(n)&&e--}if(l+1<n){const e=t.charCodeAt(l-1);s.pc(e)&&l++}const h=t.substring(e,l);let c=(0,a.Th)(e+1,a.Ld,t,0);c&&c.endColumn<=e+1&&(c=null);const d=u.shouldHighlightNonBasicASCII(h,c?c.word:null);if(0!==d){3===d?k++:2===d?v++:1===d?C++:(0,o.xb)(d);const t=1e3;if(p.length>=t){b=!0;break e}p.push(new i.Q(r,e+1,r,l+1))}}}while(_)}return{ranges:p,hasMore:b,ambiguousCharacterCount:k,invisibleCharacterCount:v,nonBasicAsciiCharacterCount:C}}static computeUnicodeHighlightReason(e,t){const n=new h(t);switch(n.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const i=e.codePointAt(0),r=n.ambiguousCharacters.getPrimaryConfusable(i),o=s.tl.getLocales().filter((e=>!s.tl.getInstance(new Set([...t.allowedLocales,e])).isAmbiguous(i)));return{kind:0,confusableWith:String.fromCodePoint(r),notAmbiguousInLocales:o}}case 1:return{kind:2}}}}class h{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=s.tl.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const t of s.y_.codePoints)c(String.fromCodePoint(t))||e.add(t);if(this.options.ambiguousCharacters)for(const t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(const t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e,t){const n=e.codePointAt(0);if(this.allowedCodePoints.has(n))return 0;if(this.options.nonBasicASCII)return 1;let i=!1,r=!1;if(t)for(const o of t){const e=o.codePointAt(0),t=s.aC(o);i=i||t,t||this.ambiguousCharacters.isAmbiguous(e)||s.y_.isInvisibleCharacter(e)||(r=!0)}return!i&&r?0:this.options.invisibleCharacters&&!c(e)&&s.y_.isInvisibleCharacter(n)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(n)?3:0}}function c(e){return" "===e||"\n"===e||"\t"===e}},5152:(e,t,n)=>{"use strict";function i(e){return e<0?0:e>255?255:0|e}function r(e){return e<0?0:e>4294967295?4294967295:0|e}n.d(t,{W:()=>i,j:()=>r})},5196:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BaseEditorSimpleWorker:()=>Pe,EditorSimpleWorker:()=>ze,create:()=>Ve});class i{constructor(e,t,n,i){this.originalStart=e,this.originalLength=t,this.modifiedStart=n,this.modifiedLength=i}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}var r=n(5600);class s{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let n=0,i=e.length;n<i;n++)t[n]=e.charCodeAt(n);return t}}function o(e,t,n){return new c(new s(e),new s(t)).ComputeDiff(n).changes}class a{static Assert(e,t){if(!e)throw new Error(t)}}class l{static Copy(e,t,n,i,r){for(let s=0;s<r;s++)n[i+s]=e[t+s]}static Copy2(e,t,n,i,r){for(let s=0;s<r;s++)n[i+s]=e[t+s]}}class h{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 i(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}}class c{constructor(e,t,n=null){this.ContinueProcessingPredicate=n,this._originalSequence=e,this._modifiedSequence=t;const[i,r,s]=c._getElements(e),[o,a,l]=c._getElements(t);this._hasStrings=s&&l,this._originalStringElements=i,this._originalElementsOrHash=r,this._modifiedStringElements=o,this._modifiedElementsOrHash=a,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"===typeof e[0]}static _getElements(e){const t=e.getElements();if(c._isStringArray(t)){const e=new Int32Array(t.length);for(let n=0,i=t.length;n<i;n++)e[n]=(0,r.e2)(t[n],0);return[t,e,!0]}return t instanceof Int32Array?[[],t,!1]:[[],new Int32Array(t),!1]}ElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._modifiedStringElements[t])}ElementsAreStrictEqual(e,t){if(!this.ElementsAreEqual(e,t))return!1;return c._getStrictElement(this._originalSequence,e)===c._getStrictElement(this._modifiedSequence,t)}static _getStrictElement(e,t){return"function"===typeof e.getStrictElement?e.getStrictElement(t):null}OriginalElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._originalElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._originalStringElements[t])}ModifiedElementsAreEqual(e,t){return this._modifiedElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._modifiedStringElements[e]===this._modifiedStringElements[t])}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,t,n,i,r){const s=[!1];let o=this.ComputeDiffRecursive(e,t,n,i,s);return r&&(o=this.PrettifyChanges(o)),{quitEarly:s[0],changes:o}}ComputeDiffRecursive(e,t,n,r,s){for(s[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 s;return n<=r?(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),s=[new i(e,0,n,r-n+1)]):e<=t?(a.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),s=[new i(e,t-e+1,n,0)]):(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),a.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),s=[]),s}const o=[0],l=[0],h=this.ComputeRecursionPoint(e,t,n,r,o,l,s),c=o[0],u=l[0];if(null!==h)return h;if(!s[0]){const o=this.ComputeDiffRecursive(e,c,n,u,s);let a=[];return a=s[0]?[new i(c+1,t-(c+1)+1,u+1,r-(u+1)+1)]:this.ComputeDiffRecursive(c+1,t,u+1,r,s),this.ConcatenateChanges(o,a)}return[new i(e,t-e+1,n,r-n+1)]}WALKTRACE(e,t,n,r,s,o,a,l,c,u,d,g,f,m,p,_,b,k){let v=null,C=null,L=new h,y=t,w=n,S=f[0]-_[0]-r,x=-1073741824,E=this.m_forwardHistory.length-1;do{const t=S+e;t===y||t<w&&c[t-1]<c[t+1]?(m=(d=c[t+1])-S-r,d<x&&L.MarkNextChange(),x=d,L.AddModifiedElement(d+1,m),S=t+1-e):(m=(d=c[t-1]+1)-S-r,d<x&&L.MarkNextChange(),x=d-1,L.AddOriginalElement(d,m+1),S=t-1-e),E>=0&&(e=(c=this.m_forwardHistory[E])[0],y=1,w=c.length-1)}while(--E>=-1);if(v=L.getReverseChanges(),k[0]){let e=f[0]+1,t=_[0]+1;if(null!==v&&v.length>0){const n=v[v.length-1];e=Math.max(e,n.getOriginalEnd()),t=Math.max(t,n.getModifiedEnd())}C=[new i(e,g-e+1,t,p-t+1)]}else{L=new h,y=o,w=a,S=f[0]-_[0]-l,x=1073741824,E=b?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=S+s;e===y||e<w&&u[e-1]>=u[e+1]?(m=(d=u[e+1]-1)-S-l,d>x&&L.MarkNextChange(),x=d+1,L.AddOriginalElement(d+1,m+1),S=e+1-s):(m=(d=u[e-1])-S-l,d>x&&L.MarkNextChange(),x=d,L.AddModifiedElement(d+1,m+1),S=e-1-s),E>=0&&(s=(u=this.m_reverseHistory[E])[0],y=1,w=u.length-1)}while(--E>=-1);C=L.getChanges()}return this.ConcatenateChanges(v,C)}ComputeRecursionPoint(e,t,n,r,s,o,a){let h=0,c=0,u=0,d=0,g=0,f=0;e--,n--,s[0]=0,o[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const m=t-e+(r-n),p=m+1,_=new Int32Array(p),b=new Int32Array(p),k=r-n,v=t-e,C=e-n,L=t-r,y=(v-k)%2===0;_[k]=e,b[v]=t,a[0]=!1;for(let w=1;w<=m/2+1;w++){let m=0,S=0;u=this.ClipDiagonalBound(k-w,w,k,p),d=this.ClipDiagonalBound(k+w,w,k,p);for(let e=u;e<=d;e+=2){h=e===u||e<d&&_[e-1]<_[e+1]?_[e+1]:_[e-1]+1,c=h-(e-k)-C;const n=h;for(;h<t&&c<r&&this.ElementsAreEqual(h+1,c+1);)h++,c++;if(_[e]=h,h+c>m+S&&(m=h,S=c),!y&&Math.abs(e-v)<=w-1&&h>=b[e])return s[0]=h,o[0]=c,n<=b[e]&&w<=1448?this.WALKTRACE(k,u,d,C,v,g,f,L,_,b,h,t,s,c,r,o,y,a):null}const x=(m-e+(S-n)-w)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(m,x))return a[0]=!0,s[0]=m,o[0]=S,x>0&&w<=1448?this.WALKTRACE(k,u,d,C,v,g,f,L,_,b,h,t,s,c,r,o,y,a):(e++,n++,[new i(e,t-e+1,n,r-n+1)]);g=this.ClipDiagonalBound(v-w,w,v,p),f=this.ClipDiagonalBound(v+w,w,v,p);for(let i=g;i<=f;i+=2){h=i===g||i<f&&b[i-1]>=b[i+1]?b[i+1]-1:b[i-1],c=h-(i-v)-L;const l=h;for(;h>e&&c>n&&this.ElementsAreEqual(h,c);)h--,c--;if(b[i]=h,y&&Math.abs(i-k)<=w&&h<=_[i])return s[0]=h,o[0]=c,l>=_[i]&&w<=1448?this.WALKTRACE(k,u,d,C,v,g,f,L,_,b,h,t,s,c,r,o,y,a):null}if(w<=1447){let e=new Int32Array(d-u+2);e[0]=k-u+1,l.Copy2(_,u,e,1,d-u+1),this.m_forwardHistory.push(e),e=new Int32Array(f-g+2),e[0]=v-g+1,l.Copy2(b,g,e,1,f-g+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(k,u,d,C,v,g,f,L,_,b,h,t,s,c,r,o,y,a)}PrettifyChanges(e){for(let t=0;t<e.length;t++){const n=e[t],i=t<e.length-1?e[t+1].originalStart:this._originalElementsOrHash.length,r=t<e.length-1?e[t+1].modifiedStart:this._modifiedElementsOrHash.length,s=n.originalLength>0,o=n.modifiedLength>0;for(;n.originalStart+n.originalLength<i&&n.modifiedStart+n.modifiedLength<r&&(!s||this.OriginalElementsAreEqual(n.originalStart,n.originalStart+n.originalLength))&&(!o||this.ModifiedElementsAreEqual(n.modifiedStart,n.modifiedStart+n.modifiedLength));){const e=this.ElementsAreStrictEqual(n.originalStart,n.modifiedStart);if(this.ElementsAreStrictEqual(n.originalStart+n.originalLength,n.modifiedStart+n.modifiedLength)&&!e)break;n.originalStart++,n.modifiedStart++}const a=[null];t<e.length-1&&this.ChangesOverlap(e[t],e[t+1],a)&&(e[t]=a[0],e.splice(t+1,1),t--)}for(let t=e.length-1;t>=0;t--){const n=e[t];let i=0,r=0;if(t>0){const n=e[t-1];i=n.originalStart+n.originalLength,r=n.modifiedStart+n.modifiedLength}const s=n.originalLength>0,o=n.modifiedLength>0;let a=0,l=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let e=1;;e++){const t=n.originalStart-e,h=n.modifiedStart-e;if(t<i||h<r)break;if(s&&!this.OriginalElementsAreEqual(t,t+n.originalLength))break;if(o&&!this.ModifiedElementsAreEqual(h,h+n.modifiedLength))break;const c=(t===i&&h===r?5:0)+this._boundaryScore(t,n.originalLength,h,n.modifiedLength);c>l&&(l=c,a=e)}n.originalStart-=a,n.modifiedStart-=a;const h=[null];t>0&&this.ChangesOverlap(e[t-1],e[t],h)&&(e[t-1]=h[0],e.splice(t,1),t++)}if(this._hasStrings)for(let t=1,n=e.length;t<n;t++){const n=e[t-1],i=e[t],r=i.originalStart-n.originalStart-n.originalLength,s=n.originalStart,o=i.originalStart+i.originalLength,a=o-s,l=n.modifiedStart,h=i.modifiedStart+i.modifiedLength,c=h-l;if(r<5&&a<20&&c<20){const e=this._findBetterContiguousSequence(s,a,l,c,r);if(e){const[t,s]=e;t===n.originalStart+n.originalLength&&s===n.modifiedStart+n.modifiedLength||(n.originalLength=t-n.originalStart,n.modifiedLength=s-n.modifiedStart,i.originalStart=t+r,i.modifiedStart=s+r,i.originalLength=o-i.originalStart,i.modifiedLength=h-i.modifiedStart)}}}return e}_findBetterContiguousSequence(e,t,n,i,r){if(t<r||i<r)return null;const s=e+t-r+1,o=n+i-r+1;let a=0,l=0,h=0;for(let c=e;c<s;c++)for(let e=n;e<o;e++){const t=this._contiguousSequenceScore(c,e,r);t>0&&t>a&&(a=t,l=c,h=e)}return a>0?[l,h]:null}_contiguousSequenceScore(e,t,n){let i=0;for(let r=0;r<n;r++){if(!this.ElementsAreEqual(e+r,t+r))return 0;i+=this._originalStringElements[e+r].length}return i}_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){const 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){const n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1}_boundaryScore(e,t,n,i){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(n,i)?1:0)}ConcatenateChanges(e,t){const n=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){const i=new Array(e.length+t.length-1);return l.Copy(e,0,i,0,e.length-1),i[e.length-1]=n[0],l.Copy(t,1,i,e.length,t.length-1),i}{const n=new Array(e.length+t.length);return l.Copy(e,0,n,0,e.length),l.Copy(t,0,n,e.length,t.length),n}}ChangesOverlap(e,t,n){if(a.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),a.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){const r=e.originalStart;let s=e.originalLength;const o=e.modifiedStart;let a=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(s=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(a=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new i(r,s,o,a),!0}return n[0]=null,!1}ClipDiagonalBound(e,t,n,i){if(e>=0&&e<i)return e;const r=t%2===0;if(e<0){return r===(n%2===0)?0:1}return r===((i-n-1)%2===0)?i-1:i-2}}var u=n(6677),d=n(534);class g{constructor(e,t,n){const i=new Uint8Array(e*t);for(let r=0,s=e*t;r<s;r++)i[r]=n;this._data=i,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}}class f{constructor(e){let t=0,n=0;for(let r=0,s=e.length;r<s;r++){const[i,s,o]=e[r];s>t&&(t=s),i>n&&(n=i),o>n&&(n=o)}t++,n++;const i=new g(n,t,0);for(let r=0,s=e.length;r<s;r++){const[t,n,s]=e[r];i.set(t,n,s)}this._states=i,this._maxCharCode=t}nextState(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)}}let m=null;let p=null;class _{static _createLink(e,t,n,i,r){let s=r-1;do{const n=t.charCodeAt(s);if(2!==e.get(n))break;s--}while(s>i);if(i>0){const e=t.charCodeAt(i-1),n=t.charCodeAt(s);(40===e&&41===n||91===e&&93===n||123===e&&125===n)&&s--}return{range:{startLineNumber:n,startColumn:i+1,endLineNumber:n,endColumn:s+2},url:t.substring(i,s+1)}}static computeLinks(e,t=function(){return null===m&&(m=new f([[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]])),m}()){const n=function(){if(null===p){p=new d.V(0);const e=" \t<>'\"\u3001\u3002\uff61\uff64\uff0c\uff0e\uff1a\uff1b\u2018\u3008\u300c\u300e\u3014\uff08\uff3b\uff5b\uff62\uff63\uff5d\uff3d\uff09\u3015\u300f\u300d\u3009\u2019\uff40\uff5e\u2026";for(let n=0;n<e.length;n++)p.set(e.charCodeAt(n),1);const t=".,;:";for(let n=0;n<t.length;n++)p.set(t.charCodeAt(n),2)}return p}(),i=[];for(let r=1,s=e.getLineCount();r<=s;r++){const s=e.getLineContent(r),o=s.length;let a=0,l=0,h=0,c=1,u=!1,d=!1,g=!1,f=!1;for(;a<o;){let e=!1;const o=s.charCodeAt(a);if(13===c){let t;switch(o){case 40:u=!0,t=0;break;case 41:t=u?0:1;break;case 91:g=!0,d=!0,t=0;break;case 93:g=!1,t=d?0:1;break;case 123:f=!0,t=0;break;case 125:t=f?0:1;break;case 39:case 34:case 96:t=h===o?1:39===h||34===h||96===h?0:1;break;case 42:t=42===h?1:0;break;case 124:t=124===h?1:0;break;case 32:t=g?0:1;break;default:t=n.get(o)}1===t&&(i.push(_._createLink(n,s,r,l,a)),e=!0)}else if(12===c){let t;91===o?(d=!0,t=0):t=n.get(o),1===t?e=!0:c=13}else c=t.nextState(c,o),0===c&&(e=!0);e&&(c=1,u=!1,d=!1,f=!1,l=a+1,h=o),a++}13===c&&i.push(_._createLink(n,s,r,l,o))}return i}}class b{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}static{this.INSTANCE=new b}navigateValueSet(e,t,n,i,r){if(e&&t){const n=this.doNavigateValueSet(t,r);if(n)return{range:e,value:n}}if(n&&i){const e=this.doNavigateValueSet(i,r);if(e)return{range:n,value:e}}return null}doNavigateValueSet(e,t){const n=this.numberReplace(e,t);return null!==n?n:this.textReplace(e,t)}numberReplace(e,t){const n=Math.pow(10,e.length-(e.lastIndexOf(".")+1));let i=Number(e);const r=parseFloat(e);return isNaN(i)||isNaN(r)||i!==r?null:0!==i||t?(i=Math.floor(i*n),i+=t?n:-n,String(i/n)):null}textReplace(e,t){return this.valueSetsReplace(this._defaultValueSet,e,t)}valueSetsReplace(e,t,n){let i=null;for(let r=0,s=e.length;null===i&&r<s;r++)i=this.valueSetReplace(e[r],t,n);return i}valueSetReplace(e,t,n){let i=e.indexOf(t);return i>=0?(i+=n?1:-1,i<0?i=e.length-1:i%=e.length,e[i]):null}}var k=n(4272),v=n(718),C=n(8381),L=n(4855);class y{constructor(e,t,n){this.changes=e,this.moves=t,this.hitTimeout=n}}class w{constructor(e,t){this.lineRangeMapping=e,this.changes=t}}var S=n(4383),x=n(6571),E=n(3069),N=n(6782),I=n(4444);n(973);class T{constructor(e,t){this.range=e,this.text=t}toSingleEditOperation(){return{range:this.range,text:this.text}}}class A{static inverse(e,t,n){const i=[];let r=1,s=1;for(const a of e){const e=new A(new x.M(r,a.original.startLineNumber),new x.M(s,a.modified.startLineNumber));e.modified.isEmpty||i.push(e),r=a.original.endLineNumberExclusive,s=a.modified.endLineNumberExclusive}const o=new A(new x.M(r,t+1),new x.M(s,n+1));return o.modified.isEmpty||i.push(o),i}static clip(e,t,n){const i=[];for(const r of e){const e=r.original.intersect(t),s=r.modified.intersect(n);e&&!e.isEmpty&&s&&!s.isEmpty&&i.push(new A(e,s))}return i}constructor(e,t){this.original=e,this.modified=t}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new A(this.modified,this.original)}join(e){return new A(this.original.join(e.original),this.modified.join(e.modified))}toRangeMapping(){const e=this.original.toInclusiveRange(),t=this.modified.toInclusiveRange();if(e&&t)return new O(e,t);if(1===this.original.startLineNumber||1===this.modified.startLineNumber){if(1!==this.modified.startLineNumber||1!==this.original.startLineNumber)throw new S.D7("not a valid diff");return new O(new u.Q(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new u.Q(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}return new O(new u.Q(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new u.Q(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}toRangeMapping2(e,t){if(R(this.original.endLineNumberExclusive,e)&&R(this.modified.endLineNumberExclusive,t))return new O(new u.Q(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new u.Q(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1));if(!this.original.isEmpty&&!this.modified.isEmpty)return new O(u.Q.fromPositions(new E.y(this.original.startLineNumber,1),D(new E.y(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),u.Q.fromPositions(new E.y(this.modified.startLineNumber,1),D(new E.y(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)));if(this.original.startLineNumber>1&&this.modified.startLineNumber>1)return new O(u.Q.fromPositions(D(new E.y(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER),e),D(new E.y(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),u.Q.fromPositions(D(new E.y(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER),t),D(new E.y(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)));throw new S.D7}}function D(e,t){if(e.lineNumber<1)return new E.y(1,1);if(e.lineNumber>t.length)return new E.y(t.length,t[t.length-1].length+1);const n=t[e.lineNumber-1];return e.column>n.length+1?new E.y(e.lineNumber,n.length+1):e}function R(e,t){return e>=1&&e<=t.length}class M extends A{static fromRangeMappings(e){const t=x.M.join(e.map((e=>x.M.fromRangeInclusive(e.originalRange)))),n=x.M.join(e.map((e=>x.M.fromRangeInclusive(e.modifiedRange))));return new M(t,n,e)}constructor(e,t,n){super(e,t),this.innerChanges=n}flip(){return new M(this.modified,this.original,this.innerChanges?.map((e=>e.flip())))}withInnerChangesFromLineRanges(){return new M(this.original,this.modified,[this.toRangeMapping()])}}class O{static assertSorted(e){for(let t=1;t<e.length;t++){const n=e[t-1],i=e[t];if(!n.originalRange.getEndPosition().isBeforeOrEqual(i.originalRange.getStartPosition())||!n.modifiedRange.getEndPosition().isBeforeOrEqual(i.modifiedRange.getStartPosition()))throw new S.D7("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 O(this.modifiedRange,this.originalRange)}toTextEdit(e){const t=e.getValueOfRange(this.modifiedRange);return new T(this.originalRange,t)}}var B=n(1508);class F{computeDiff(e,t,n){const i=new H(e,t,{maxComputationTime:n.maxComputationTimeMs,shouldIgnoreTrimWhitespace:n.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),r=[];let s=null;for(const o of i.changes){let e,t;e=0===o.originalEndLineNumber?new x.M(o.originalStartLineNumber+1,o.originalStartLineNumber+1):new x.M(o.originalStartLineNumber,o.originalEndLineNumber+1),t=0===o.modifiedEndLineNumber?new x.M(o.modifiedStartLineNumber+1,o.modifiedStartLineNumber+1):new x.M(o.modifiedStartLineNumber,o.modifiedEndLineNumber+1);let n=new M(e,t,o.charChanges?.map((e=>new O(new u.Q(e.originalStartLineNumber,e.originalStartColumn,e.originalEndLineNumber,e.originalEndColumn),new u.Q(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)))));s&&(s.modified.endLineNumberExclusive!==n.modified.startLineNumber&&s.original.endLineNumberExclusive!==n.original.startLineNumber||(n=new M(s.original.join(n.original),s.modified.join(n.modified),s.innerChanges&&n.innerChanges?s.innerChanges.concat(n.innerChanges):void 0),r.pop())),r.push(n),s=n}return(0,N.Ft)((()=>(0,N.Xo)(r,((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 y(r,[],i.quitEarly)}}function P(e,t,n,i){return new c(e,t,n).ComputeDiff(i)}class z{constructor(e){const t=[],n=[];for(let i=0,r=e.length;i<r;i++)t[i]=U(e[i],1),n[i]=j(e[i],1);this.lines=e,this._startColumns=t,this._endColumns=n}getElements(){const 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){const i=[],r=[],s=[];let o=0;for(let a=t;a<=n;a++){const t=this.lines[a],l=e?this._startColumns[a]:1,h=e?this._endColumns[a]:t.length+1;for(let e=l;e<h;e++)i[o]=t.charCodeAt(e-1),r[o]=a+1,s[o]=e,o++;!e&&a<n&&(i[o]=10,r[o]=a+1,s[o]=t.length+1,o++)}return new V(i,r,s)}}class V{constructor(e,t,n){this._charCodes=e,this._lineNumbers=t,this._columns=n}toString(){return"["+this._charCodes.map(((e,t)=>(10===e?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[t]},${this._columns[t]})`)).join(", ")+"]"}_assertIndex(e,t){if(e<0||e>=t.length)throw new 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-1===e?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),10===this._charCodes[e]?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-1===e?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),10===this._charCodes[e]?1:this._columns[e]+1)}}class W{constructor(e,t,n,i,r,s,o,a){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=n,this.originalEndColumn=i,this.modifiedStartLineNumber=r,this.modifiedStartColumn=s,this.modifiedEndLineNumber=o,this.modifiedEndColumn=a}static createFromDiffChange(e,t,n){const i=t.getStartLineNumber(e.originalStart),r=t.getStartColumn(e.originalStart),s=t.getEndLineNumber(e.originalStart+e.originalLength-1),o=t.getEndColumn(e.originalStart+e.originalLength-1),a=n.getStartLineNumber(e.modifiedStart),l=n.getStartColumn(e.modifiedStart),h=n.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),c=n.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new W(i,r,s,o,a,l,h,c)}}class q{constructor(e,t,n,i,r){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=n,this.modifiedEndLineNumber=i,this.charChanges=r}static createFromDiffResult(e,t,n,i,r,s,o){let a,l,h,c,u;if(0===t.originalLength?(a=n.getStartLineNumber(t.originalStart)-1,l=0):(a=n.getStartLineNumber(t.originalStart),l=n.getEndLineNumber(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(h=i.getStartLineNumber(t.modifiedStart)-1,c=0):(h=i.getStartLineNumber(t.modifiedStart),c=i.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),s&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&r()){const s=n.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),a=i.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);if(s.getElements().length>0&&a.getElements().length>0){let e=P(s,a,r,!0).changes;o&&(e=function(e){if(e.length<=1)return e;const t=[e[0]];let n=t[0];for(let i=1,r=e.length;i<r;i++){const r=e[i],s=r.originalStart-(n.originalStart+n.originalLength),o=r.modifiedStart-(n.modifiedStart+n.modifiedLength);Math.min(s,o)<3?(n.originalLength=r.originalStart+r.originalLength-n.originalStart,n.modifiedLength=r.modifiedStart+r.modifiedLength-n.modifiedStart):(t.push(r),n=r)}return t}(e)),u=[];for(let t=0,n=e.length;t<n;t++)u.push(W.createFromDiffChange(e[t],s,a))}}return new q(a,l,h,c,u)}}class H{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 z(e),this.modified=new z(t),this.continueLineDiff=K(n.maxComputationTime),this.continueCharDiff=K(0===n.maxComputationTime?0:Math.min(n.maxComputationTime,5e3))}computeDiff(){if(1===this.original.lines.length&&0===this.original.lines[0].length)return 1===this.modified.lines.length&&0===this.modified.lines[0].length?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(1===this.modified.lines.length&&0===this.modified.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const e=P(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=e.changes,n=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){const e=[];for(let n=0,i=t.length;n<i;n++)e.push(q.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[n],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:n,changes:e}}const i=[];let r=0,s=0;for(let o=-1,a=t.length;o<a;o++){const e=o+1<a?t[o+1]:null,n=e?e.originalStart:this.originalLines.length,l=e?e.modifiedStart:this.modifiedLines.length;for(;r<n&&s<l;){const e=this.originalLines[r],t=this.modifiedLines[s];if(e!==t){{let n=U(e,1),o=U(t,1);for(;n>1&&o>1;){if(e.charCodeAt(n-2)!==t.charCodeAt(o-2))break;n--,o--}(n>1||o>1)&&this._pushTrimWhitespaceCharChange(i,r+1,1,n,s+1,1,o)}{let n=j(e,1),o=j(t,1);const a=e.length+1,l=t.length+1;for(;n<a&&o<l;){if(e.charCodeAt(n-1)!==e.charCodeAt(o-1))break;n++,o++}(n<a||o<l)&&this._pushTrimWhitespaceCharChange(i,r+1,n,a,s+1,o,l)}}r++,s++}e&&(i.push(q.createFromDiffResult(this.shouldIgnoreTrimWhitespace,e,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),r+=e.originalLength,s+=e.modifiedLength)}return{quitEarly:n,changes:i}}_pushTrimWhitespaceCharChange(e,t,n,i,r,s,o){if(this._mergeTrimWhitespaceCharChange(e,t,n,i,r,s,o))return;let a;this.shouldComputeCharChanges&&(a=[new W(t,n,t,i,r,s,r,o)]),e.push(new q(t,t,r,r,a))}_mergeTrimWhitespaceCharChange(e,t,n,i,r,s,o){const a=e.length;if(0===a)return!1;const l=e[a-1];return 0!==l.originalEndLineNumber&&0!==l.modifiedEndLineNumber&&(l.originalEndLineNumber===t&&l.modifiedEndLineNumber===r?(this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new W(t,n,t,i,r,s,r,o)),!0):l.originalEndLineNumber+1===t&&l.modifiedEndLineNumber+1===r&&(l.originalEndLineNumber=t,l.modifiedEndLineNumber=r,this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new W(t,n,t,i,r,s,r,o)),!0))}}function U(e,t){const n=B.HG(e);return-1===n?t:n+1}function j(e,t){const n=B.lT(e);return-1===n?t:n+2}function K(e){if(0===e)return()=>!0;const t=Date.now();return()=>Date.now()-t<e}var $=n(9861);class G{static trivial(e,t){return new G([new Q(I.L.ofLength(e.length),I.L.ofLength(t.length))],!1)}static trivialTimedOut(e,t){return new G([new Q(I.L.ofLength(e.length),I.L.ofLength(t.length))],!0)}constructor(e,t){this.diffs=e,this.hitTimeout=t}}class Q{static invert(e,t){const n=[];return(0,$.pN)(e,((e,i)=>{n.push(Q.fromOffsetPairs(e?e.getEndExclusives():Y.zero,i?i.getStarts():new Y(t,(e?e.seq2Range.endExclusive-e.seq1Range.endExclusive:0)+t)))})),n}static fromOffsetPairs(e,t){return new Q(new I.L(e.offset1,t.offset1),new I.L(e.offset2,t.offset2))}static assertSorted(e){let t;for(const n of e){if(t&&!(t.seq1Range.endExclusive<=n.seq1Range.start&&t.seq2Range.endExclusive<=n.seq2Range.start))throw new S.D7("Sequence diffs must be sorted");t=n}}constructor(e,t){this.seq1Range=e,this.seq2Range=t}swap(){return new Q(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(e){return new Q(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}delta(e){return 0===e?this:new Q(this.seq1Range.delta(e),this.seq2Range.delta(e))}deltaStart(e){return 0===e?this:new Q(this.seq1Range.deltaStart(e),this.seq2Range.deltaStart(e))}deltaEnd(e){return 0===e?this:new Q(this.seq1Range.deltaEnd(e),this.seq2Range.deltaEnd(e))}intersect(e){const t=this.seq1Range.intersect(e.seq1Range),n=this.seq2Range.intersect(e.seq2Range);if(t&&n)return new Q(t,n)}getStarts(){return new Y(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new Y(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}class Y{static{this.zero=new Y(0,0)}static{this.max=new Y(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER)}constructor(e,t){this.offset1=e,this.offset2=t}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(e){return 0===e?this:new Y(this.offset1+e,this.offset2+e)}equals(e){return this.offset1===e.offset1&&this.offset2===e.offset2}}class X{static{this.instance=new X}isValid(){return!0}}class Z{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new S.D7("timeout must be positive")}isValid(){return!(Date.now()-this.startTime<this.timeout)&&this.valid&&(this.valid=!1),this.valid}}class J{constructor(e,t){this.width=e,this.height=t,this.array=[],this.array=new 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 ee(e){return 32===e||9===e}class te{static{this.chrKeys=new Map}static getKey(e){let t=this.chrKeys.get(e);return void 0===t&&(t=this.chrKeys.size,this.chrKeys.set(e,t)),t}constructor(e,t,n){this.range=e,this.lines=t,this.source=n,this.histogram=[];let i=0;for(let r=e.startLineNumber-1;r<e.endLineNumberExclusive-1;r++){const e=t[r];for(let t=0;t<e.length;t++){i++;const n=e[t],r=te.getKey(n);this.histogram[r]=(this.histogram[r]||0)+1}i++;const n=te.getKey("\n");this.histogram[n]=(this.histogram[n]||0)+1}this.totalCount=i}computeSimilarity(e){let t=0;const n=Math.max(this.histogram.length,e.histogram.length);for(let i=0;i<n;i++)t+=Math.abs((this.histogram[i]??0)-(e.histogram[i]??0));return 1-t/(this.totalCount+e.totalCount)}}class ne{compute(e,t,n=X.instance,i){if(0===e.length||0===t.length)return G.trivial(e,t);const r=new J(e.length,t.length),s=new J(e.length,t.length),o=new J(e.length,t.length);for(let g=0;g<e.length;g++)for(let a=0;a<t.length;a++){if(!n.isValid())return G.trivialTimedOut(e,t);const l=0===g?0:r.get(g-1,a),h=0===a?0:r.get(g,a-1);let c;e.getElement(g)===t.getElement(a)?(c=0===g||0===a?0:r.get(g-1,a-1),g>0&&a>0&&3===s.get(g-1,a-1)&&(c+=o.get(g-1,a-1)),c+=i?i(g,a):1):c=-1;const u=Math.max(l,h,c);if(u===c){const e=g>0&&a>0?o.get(g-1,a-1):0;o.set(g,a,e+1),s.set(g,a,3)}else u===l?(o.set(g,a,0),s.set(g,a,1)):u===h&&(o.set(g,a,0),s.set(g,a,2));r.set(g,a,u)}const a=[];let l=e.length,h=t.length;function c(e,t){e+1===l&&t+1===h||a.push(new Q(new I.L(e+1,l),new I.L(t+1,h))),l=e,h=t}let u=e.length-1,d=t.length-1;for(;u>=0&&d>=0;)3===s.get(u,d)?(c(u,d),u--,d--):1===s.get(u,d)?u--:d--;return c(-1,-1),a.reverse(),new G(a,!1)}}class ie{compute(e,t,n=X.instance){if(0===e.length||0===t.length)return G.trivial(e,t);const i=e,r=t;function s(e,t){for(;e<i.length&&t<r.length&&i.getElement(e)===r.getElement(t);)e++,t++;return e}let o=0;const a=new se;a.set(0,s(0,0));const l=new oe;l.set(0,0===a.get(0)?null:new re(null,0,0,a.get(0)));let h=0;e:for(;;){if(o++,!n.isValid())return G.trivialTimedOut(i,r);const e=-Math.min(o,r.length+o%2),t=Math.min(o,i.length+o%2);for(h=e;h<=t;h+=2){let n=0;const o=h===t?-1:a.get(h+1),c=h===e?-1:a.get(h-1)+1;n++;const u=Math.min(Math.max(o,c),i.length),d=u-h;if(n++,u>i.length||d>r.length)continue;const g=s(u,d);a.set(h,g);const f=u===o?l.get(h+1):l.get(h-1);if(l.set(h,g!==u?new re(f,u,d,g-u):f),a.get(h)===i.length&&a.get(h)-h===r.length)break e}}let c=l.get(h);const u=[];let d=i.length,g=r.length;for(;;){const e=c?c.x+c.length:0,t=c?c.y+c.length:0;if(e===d&&t===g||u.push(new Q(new I.L(e,d),new I.L(t,g))),!c)break;d=c.x,g=c.y,c=c.prev}return u.reverse(),new G(u,!1)}}class re{constructor(e,t,n,i){this.prev=e,this.x=t,this.y=n,this.length=i}}class se{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=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)>=this.negativeArr.length){const e=this.negativeArr;this.negativeArr=new Int32Array(2*e.length),this.negativeArr.set(e)}this.negativeArr[e]=t}else{if(e>=this.positiveArr.length){const e=this.positiveArr;this.positiveArr=new Int32Array(2*e.length),this.positiveArr.set(e)}this.positiveArr[e]=t}}}class oe{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}}var ae=n(6041),le=n(4320);class he{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 i=this.range.startLineNumber;i<=this.range.endLineNumber;i++){let t=e[i-1],r=0;i===this.range.startLineNumber&&this.range.startColumn>1&&(r=this.range.startColumn-1,t=t.substring(r)),this.lineStartOffsets.push(r);let s=0;if(!n){const e=t.trimStart();s=t.length-e.length,t=e.trimEnd()}this.trimmedWsLengthsByLineIdx.push(s);const o=i===this.range.endLineNumber?Math.min(this.range.endColumn-1-r-s,t.length):t.length;for(let e=0;e<o;e++)this.elements.push(t.charCodeAt(e));i<this.range.endLineNumber&&(this.elements.push("\n".charCodeAt(0)),this.firstElementOffsetByLineIdx.push(this.elements.length))}}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new I.L(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){const t=ge(e>0?this.elements[e-1]:-1),n=ge(e<this.elements.length?this.elements[e]:-1);if(7===t&&8===n)return 0;if(8===t)return 150;let i=0;return t!==n&&(i+=10,0===t&&1===n&&(i+=1)),i+=de(t),i+=de(n),i}translateOffset(e,t="right"){const n=(0,ae.iM)(this.firstElementOffsetByLineIdx,(t=>t<=e)),i=e-this.firstElementOffsetByLineIdx[n];return new E.y(this.range.startLineNumber+n,1+this.lineStartOffsets[n]+i+(0===i&&"left"===t?0:this.trimmedWsLengthsByLineIdx[n]))}translateRange(e){const t=this.translateOffset(e.start,"right"),n=this.translateOffset(e.endExclusive,"left");return n.isBefore(t)?u.Q.fromPositions(n,n):u.Q.fromPositions(t,n)}findWordContaining(e){if(e<0||e>=this.elements.length)return;if(!ce(this.elements[e]))return;let t=e;for(;t>0&&ce(this.elements[t-1]);)t--;let n=e;for(;n<this.elements.length&&ce(this.elements[n]);)n++;return new I.L(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){const t=(0,ae.lx)(this.firstElementOffsetByLineIdx,(t=>t<=e.start))??0,n=(0,ae.XP)(this.firstElementOffsetByLineIdx,(t=>e.endExclusive<=t))??this.elements.length;return new I.L(t,n)}}function ce(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}const ue={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function de(e){return ue[e]}function ge(e){return 10===e?8:13===e?7:ee(e)?6:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:-1===e?3:44===e||59===e?5:4}function fe(e,t,n,i,r,s){let{moves:o,excludedChanges:a}=function(e,t,n,i){const r=[],s=e.filter((e=>e.modified.isEmpty&&e.original.length>=3)).map((e=>new te(e.original,t,e))),o=new Set(e.filter((e=>e.original.isEmpty&&e.modified.length>=3)).map((e=>new te(e.modified,n,e)))),a=new Set;for(const l of s){let e,t=-1;for(const n of o){const i=l.computeSimilarity(n);i>t&&(t=i,e=n)}if(t>.9&&e&&(o.delete(e),r.push(new A(l.range,e.range)),a.add(l.source),a.add(e.source)),!i.isValid())return{moves:r,excludedChanges:a}}return{moves:r,excludedChanges:a}}(e,t,n,s);if(!s.isValid())return[];const l=function(e,t,n,i,r,s){const o=[],a=new le.db;for(const d of e)for(let e=d.original.startLineNumber;e<d.original.endLineNumberExclusive-2;e++){const n=`${t[e-1]}:${t[e+1-1]}:${t[e+2-1]}`;a.add(n,{range:new x.M(e,e+3)})}const l=[];e.sort((0,$.VE)((e=>e.modified.startLineNumber),$.U9));for(const d of e){let e=[];for(let t=d.modified.startLineNumber;t<d.modified.endLineNumberExclusive-2;t++){const i=`${n[t-1]}:${n[t+1-1]}:${n[t+2-1]}`,r=new x.M(t,t+3),s=[];a.forEach(i,(({range:t})=>{for(const i of e)if(i.originalLineRange.endLineNumberExclusive+1===t.endLineNumberExclusive&&i.modifiedLineRange.endLineNumberExclusive+1===r.endLineNumberExclusive)return i.originalLineRange=new x.M(i.originalLineRange.startLineNumber,t.endLineNumberExclusive),i.modifiedLineRange=new x.M(i.modifiedLineRange.startLineNumber,r.endLineNumberExclusive),void s.push(i);const n={modifiedLineRange:r,originalLineRange:t};l.push(n),s.push(n)})),e=s}if(!s.isValid())return[]}l.sort((0,$.Hw)((0,$.VE)((e=>e.modifiedLineRange.length),$.U9)));const h=new x.S,c=new x.S;for(const d of l){const e=d.modifiedLineRange.startLineNumber-d.originalLineRange.startLineNumber,t=h.subtractFrom(d.modifiedLineRange),n=c.subtractFrom(d.originalLineRange).getWithDelta(e),i=t.getIntersection(n);for(const r of i.ranges){if(r.length<3)continue;const t=r,n=r.delta(-e);o.push(new A(n,t)),h.addRange(t),c.addRange(n)}}o.sort((0,$.VE)((e=>e.original.startLineNumber),$.U9));const u=new ae.vJ(e);for(let d=0;d<o.length;d++){const t=o[d],n=u.findLastMonotonous((e=>e.original.startLineNumber<=t.original.startLineNumber)),a=(0,ae.lx)(e,(e=>e.modified.startLineNumber<=t.modified.startLineNumber)),l=Math.max(t.original.startLineNumber-n.original.startLineNumber,t.modified.startLineNumber-a.modified.startLineNumber),g=u.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive)),f=(0,ae.lx)(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)),m=Math.max(g.original.endLineNumberExclusive-t.original.endLineNumberExclusive,f.modified.endLineNumberExclusive-t.modified.endLineNumberExclusive);let p,_;for(p=0;p<l;p++){const e=t.original.startLineNumber-p-1,n=t.modified.startLineNumber-p-1;if(e>i.length||n>r.length)break;if(h.contains(n)||c.contains(e))break;if(!me(i[e-1],r[n-1],s))break}for(p>0&&(c.addRange(new x.M(t.original.startLineNumber-p,t.original.startLineNumber)),h.addRange(new x.M(t.modified.startLineNumber-p,t.modified.startLineNumber))),_=0;_<m;_++){const e=t.original.endLineNumberExclusive+_,n=t.modified.endLineNumberExclusive+_;if(e>i.length||n>r.length)break;if(h.contains(n)||c.contains(e))break;if(!me(i[e-1],r[n-1],s))break}_>0&&(c.addRange(new x.M(t.original.endLineNumberExclusive,t.original.endLineNumberExclusive+_)),h.addRange(new x.M(t.modified.endLineNumberExclusive,t.modified.endLineNumberExclusive+_))),(p>0||_>0)&&(o[d]=new A(new x.M(t.original.startLineNumber-p,t.original.endLineNumberExclusive+_),new x.M(t.modified.startLineNumber-p,t.modified.endLineNumberExclusive+_)))}return o}(e.filter((e=>!a.has(e))),i,r,t,n,s);return(0,$.E4)(o,l),o=function(e){if(0===e.length)return e;e.sort((0,$.VE)((e=>e.original.startLineNumber),$.U9));const t=[e[0]];for(let n=1;n<e.length;n++){const i=t[t.length-1],r=e[n],s=r.original.startLineNumber-i.original.endLineNumberExclusive,o=r.modified.startLineNumber-i.modified.endLineNumberExclusive;s>=0&&o>=0&&s+o<=2?t[t.length-1]=i.join(r):t.push(r)}return t}(o),o=o.filter((e=>{const n=e.original.toOffsetRange().slice(t).map((e=>e.trim()));return n.join("\n").length>=15&&function(e,t){let n=0;for(const i of e)t(i)&&n++;return n}(n,(e=>e.length>=2))>=2})),o=function(e,t){const n=new ae.vJ(e);return t=t.filter((t=>(n.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive))||new A(new x.M(1,1),new x.M(1,1)))!==(0,ae.lx)(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)))),t}(e,o),o}function me(e,t,n){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;const i=(new ie).compute(new he([e],new u.Q(1,1,1,e.length),!1),new he([t],new u.Q(1,1,1,t.length),!1),n);let r=0;const s=Q.invert(i.diffs,e.length);for(const a of s)a.seq1Range.forEach((t=>{ee(e.charCodeAt(t))||r++}));const o=function(t){let n=0;for(let i=0;i<e.length;i++)ee(t.charCodeAt(i))||n++;return n}(e.length>t.length?e:t);return r/o>.6&&o>10}function pe(e,t,n){let i=n;return i=_e(e,t,i),i=_e(e,t,i),i=function(e,t,n){if(!e.getBoundaryScore||!t.getBoundaryScore)return n;for(let i=0;i<n.length;i++){const r=i>0?n[i-1]:void 0,s=n[i],o=i+1<n.length?n[i+1]:void 0,a=new I.L(r?r.seq1Range.endExclusive+1:0,o?o.seq1Range.start-1:e.length),l=new I.L(r?r.seq2Range.endExclusive+1:0,o?o.seq2Range.start-1:t.length);s.seq1Range.isEmpty?n[i]=be(s,e,t,a,l):s.seq2Range.isEmpty&&(n[i]=be(s.swap(),t,e,l,a).swap())}return n}(e,t,i),i}function _e(e,t,n){if(0===n.length)return n;const i=[];i.push(n[0]);for(let s=1;s<n.length;s++){const r=i[i.length-1];let o=n[s];if(o.seq1Range.isEmpty||o.seq2Range.isEmpty){const n=o.seq1Range.start-r.seq1Range.endExclusive;let s;for(s=1;s<=n&&(e.getElement(o.seq1Range.start-s)===e.getElement(o.seq1Range.endExclusive-s)&&t.getElement(o.seq2Range.start-s)===t.getElement(o.seq2Range.endExclusive-s));s++);if(s--,s===n){i[i.length-1]=new Q(new I.L(r.seq1Range.start,o.seq1Range.endExclusive-n),new I.L(r.seq2Range.start,o.seq2Range.endExclusive-n));continue}o=o.delta(-s)}i.push(o)}const r=[];for(let s=0;s<i.length-1;s++){const n=i[s+1];let o=i[s];if(o.seq1Range.isEmpty||o.seq2Range.isEmpty){const r=n.seq1Range.start-o.seq1Range.endExclusive;let a;for(a=0;a<r&&(e.isStronglyEqual(o.seq1Range.start+a,o.seq1Range.endExclusive+a)&&t.isStronglyEqual(o.seq2Range.start+a,o.seq2Range.endExclusive+a));a++);if(a===r){i[s+1]=new Q(new I.L(o.seq1Range.start+r,n.seq1Range.endExclusive),new I.L(o.seq2Range.start+r,n.seq2Range.endExclusive));continue}a>0&&(o=o.delta(a))}r.push(o)}return i.length>0&&r.push(i[i.length-1]),r}function be(e,t,n,i,r){let s=1;for(;e.seq1Range.start-s>=i.start&&e.seq2Range.start-s>=r.start&&n.isStronglyEqual(e.seq2Range.start-s,e.seq2Range.endExclusive-s)&&s<100;)s++;s--;let o=0;for(;e.seq1Range.start+o<i.endExclusive&&e.seq2Range.endExclusive+o<r.endExclusive&&n.isStronglyEqual(e.seq2Range.start+o,e.seq2Range.endExclusive+o)&&o<100;)o++;if(0===s&&0===o)return e;let a=0,l=-1;for(let h=-s;h<=o;h++){const i=e.seq2Range.start+h,r=e.seq2Range.endExclusive+h,s=e.seq1Range.start+h,o=t.getBoundaryScore(s)+n.getBoundaryScore(i)+n.getBoundaryScore(r);o>l&&(l=o,a=h)}return e.delta(a)}class ke{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-((0===e?0:ve(this.lines[e-1]))+(e===this.lines.length?0:ve(this.lines[e])))}getText(e){return this.lines.slice(e.start,e.endExclusive).join("\n")}isStronglyEqual(e,t){return this.lines[e]===this.lines[t]}}function ve(e){let t=0;for(;t<e.length&&(32===e.charCodeAt(t)||9===e.charCodeAt(t));)t++;return t}class Ce{constructor(){this.dynamicProgrammingDiffing=new ne,this.myersDiffingAlgorithm=new ie}computeDiff(e,t,n){if(e.length<=1&&(0,$.aI)(e,t,((e,t)=>e===t)))return new y([],[],!1);if(1===e.length&&0===e[0].length||1===t.length&&0===t[0].length)return new y([new M(new x.M(1,e.length+1),new x.M(1,t.length+1),[new O(new u.Q(1,1,e.length,e[e.length-1].length+1),new u.Q(1,1,t.length,t[t.length-1].length+1))])],[],!1);const i=0===n.maxComputationTimeMs?X.instance:new Z(n.maxComputationTimeMs),r=!n.ignoreTrimWhitespace,s=new Map;function o(e){let t=s.get(e);return void 0===t&&(t=s.size,s.set(e,t)),t}const a=e.map((e=>o(e.trim()))),l=t.map((e=>o(e.trim()))),h=new ke(a,e),c=new ke(l,t),d=(()=>h.length+c.length<1700?this.dynamicProgrammingDiffing.compute(h,c,i,((n,i)=>e[n]===t[i]?0===t[i].length?.1:1+Math.log(1+t[i].length):.99)):this.myersDiffingAlgorithm.compute(h,c,i))();let g=d.diffs,f=d.hitTimeout;g=pe(h,c,g),g=function(e,t,n){let i=n;if(0===i.length)return i;let r,s=0;do{r=!1;const o=[i[0]];for(let a=1;a<i.length;a++){const l=i[a],h=o[o.length-1];function c(t,n){const i=new I.L(h.seq1Range.endExclusive,l.seq1Range.start);return e.getText(i).replace(/\s/g,"").length<=4&&(t.seq1Range.length+t.seq2Range.length>5||n.seq1Range.length+n.seq2Range.length>5)}c(h,l)?(r=!0,o[o.length-1]=o[o.length-1].join(l)):o.push(l)}i=o}while(s++<10&&r);return i}(h,0,g);const m=[],p=n=>{if(r)for(let s=0;s<n;s++){const n=_+s,o=b+s;if(e[n]!==t[o]){const s=this.refineDiff(e,t,new Q(new I.L(n,n+1),new I.L(o,o+1)),i,r);for(const e of s.mappings)m.push(e);s.hitTimeout&&(f=!0)}}};let _=0,b=0;for(const u of g){(0,N.Ft)((()=>u.seq1Range.start-_===u.seq2Range.start-b));p(u.seq1Range.start-_),_=u.seq1Range.endExclusive,b=u.seq2Range.endExclusive;const n=this.refineDiff(e,t,u,i,r);n.hitTimeout&&(f=!0);for(const e of n.mappings)m.push(e)}p(e.length-_);const k=Le(m,e,t);let v=[];return n.computeMoves&&(v=this.computeMoves(k,e,t,a,l,i,r)),(0,N.Ft)((()=>{function n(e,t){if(e.lineNumber<1||e.lineNumber>t.length)return!1;const n=t[e.lineNumber-1];return!(e.column<1||e.column>n.length+1)}function i(e,t){return!(e.startLineNumber<1||e.startLineNumber>t.length+1)&&!(e.endLineNumberExclusive<1||e.endLineNumberExclusive>t.length+1)}for(const r of k){if(!r.innerChanges)return!1;for(const i of r.innerChanges){if(!(n(i.modifiedRange.getStartPosition(),t)&&n(i.modifiedRange.getEndPosition(),t)&&n(i.originalRange.getStartPosition(),e)&&n(i.originalRange.getEndPosition(),e)))return!1}if(!i(r.modified,t)||!i(r.original,e))return!1}return!0})),new y(k,v,f)}computeMoves(e,t,n,i,r,s,o){return fe(e,t,n,i,r,s).map((e=>{const i=Le(this.refineDiff(t,n,new Q(e.original.toOffsetRange(),e.modified.toOffsetRange()),s,o).mappings,t,n,!0);return new w(e,i)}))}refineDiff(e,t,n,i,r){var s;const o=(s=n,new A(new x.M(s.seq1Range.start+1,s.seq1Range.endExclusive+1),new x.M(s.seq2Range.start+1,s.seq2Range.endExclusive+1))).toRangeMapping2(e,t),a=new he(e,o.originalRange,r),l=new he(t,o.modifiedRange,r),h=a.length+l.length<500?this.dynamicProgrammingDiffing.compute(a,l,i):this.myersDiffingAlgorithm.compute(a,l,i),c=!1;let u=h.diffs;u=pe(a,l,u),u=function(e,t,n){const i=Q.invert(n,e.length),r=[];let s=new Y(0,0);function o(n,o){if(n.offset1<s.offset1||n.offset2<s.offset2)return;const a=e.findWordContaining(n.offset1),l=t.findWordContaining(n.offset2);if(!a||!l)return;let h=new Q(a,l);const c=h.intersect(o);let u=c.seq1Range.length,d=c.seq2Range.length;for(;i.length>0;){const n=i[0];if(!n.seq1Range.intersects(h.seq1Range)&&!n.seq2Range.intersects(h.seq2Range))break;const r=e.findWordContaining(n.seq1Range.start),s=t.findWordContaining(n.seq2Range.start),o=new Q(r,s),a=o.intersect(n);if(u+=a.seq1Range.length,d+=a.seq2Range.length,h=h.join(o),!(h.seq1Range.endExclusive>=n.seq1Range.endExclusive))break;i.shift()}u+d<2*(h.seq1Range.length+h.seq2Range.length)/3&&r.push(h),s=h.getEndExclusives()}for(;i.length>0;){const e=i.shift();e.seq1Range.isEmpty||(o(e.getStarts(),e),o(e.getEndExclusives().delta(-1),e))}return function(e,t){const n=[];for(;e.length>0||t.length>0;){const i=e[0],r=t[0];let s;s=i&&(!r||i.seq1Range.start<r.seq1Range.start)?e.shift():t.shift(),n.length>0&&n[n.length-1].seq1Range.endExclusive>=s.seq1Range.start?n[n.length-1]=n[n.length-1].join(s):n.push(s)}return n}(n,r)}(a,l,u),u=function(e,t,n){const i=[];for(const r of n){const e=i[i.length-1];e&&(r.seq1Range.start-e.seq1Range.endExclusive<=2||r.seq2Range.start-e.seq2Range.endExclusive<=2)?i[i.length-1]=new Q(e.seq1Range.join(r.seq1Range),e.seq2Range.join(r.seq2Range)):i.push(r)}return i}(0,0,u),u=function(e,t,n){let i=n;if(0===i.length)return i;let r,s=0;do{r=!1;const a=[i[0]];for(let l=1;l<i.length;l++){const h=i[l],c=a[a.length-1];function u(n,i){const r=new I.L(c.seq1Range.endExclusive,h.seq1Range.start);if(e.countLinesIn(r)>5||r.length>500)return!1;const s=e.getText(r).trim();if(s.length>20||s.split(/\r\n|\r|\n/).length>1)return!1;const o=e.countLinesIn(n.seq1Range),a=n.seq1Range.length,l=t.countLinesIn(n.seq2Range),u=n.seq2Range.length,d=e.countLinesIn(i.seq1Range),g=i.seq1Range.length,f=t.countLinesIn(i.seq2Range),m=i.seq2Range.length;function p(e){return Math.min(e,130)}return Math.pow(Math.pow(p(40*o+a),1.5)+Math.pow(p(40*l+u),1.5),1.5)+Math.pow(Math.pow(p(40*d+g),1.5)+Math.pow(p(40*f+m),1.5),1.5)>74184.96480721243}u(c,h)?(r=!0,a[a.length-1]=a[a.length-1].join(h)):a.push(h)}i=a}while(s++<10&&r);const o=[];return(0,$.kj)(i,((t,n,i)=>{let r=n;function s(e){return e.length>0&&e.trim().length<=3&&n.seq1Range.length+n.seq2Range.length>100}const a=e.extendToFullLines(n.seq1Range),l=e.getText(new I.L(a.start,n.seq1Range.start));s(l)&&(r=r.deltaStart(-l.length));const h=e.getText(new I.L(n.seq1Range.endExclusive,a.endExclusive));s(h)&&(r=r.deltaEnd(h.length));const c=Q.fromOffsetPairs(t?t.getEndExclusives():Y.zero,i?i.getStarts():Y.max),u=r.intersect(c);o.length>0&&u.getStarts().equals(o[o.length-1].getEndExclusives())?o[o.length-1]=o[o.length-1].join(u):o.push(u)})),o}(a,l,u);const d=u.map((e=>new O(a.translateRange(e.seq1Range),l.translateRange(e.seq2Range))));return{mappings:d,hitTimeout:h.hitTimeout}}}function Le(e,t,n,i=!1){const r=[];for(const s of(0,$.n)(e.map((e=>function(e,t,n){let i=0,r=0;1===e.modifiedRange.endColumn&&1===e.originalRange.endColumn&&e.originalRange.startLineNumber+i<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+i<=e.modifiedRange.endLineNumber&&(r=-1);e.modifiedRange.startColumn-1>=n[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+r&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+r&&(i=1);const s=new x.M(e.originalRange.startLineNumber+i,e.originalRange.endLineNumber+1+r),o=new x.M(e.modifiedRange.startLineNumber+i,e.modifiedRange.endLineNumber+1+r);return new M(s,o,[e])}(e,t,n))),((e,t)=>e.original.overlapOrTouch(t.original)||e.modified.overlapOrTouch(t.modified)))){const e=s[0],t=s[s.length-1];r.push(new M(e.original.join(t.original),e.modified.join(t.modified),s.map((e=>e.innerChanges[0]))))}return(0,N.Ft)((()=>{if(!i&&r.length>0){if(r[0].modified.startLineNumber!==r[0].original.startLineNumber)return!1;if(n.length-r[r.length-1].modified.endLineNumberExclusive!==t.length-r[r.length-1].original.endLineNumberExclusive)return!1}return(0,N.Xo)(r,((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))})),r}const ye=()=>new F,we=()=>new Ce;var Se=n(146),xe=n(6456),Ee=n(7661);function Ne(e){const t=[];for(const n of e){const e=Number(n);(e||0===e&&""!==n.replace(/\s/g,""))&&t.push(e)}return t}function Ie(e,t,n,i){return{red:e/255,blue:n/255,green:t/255,alpha:i}}function Te(e,t){const n=t.index,i=t[0].length;if(!n)return;const r=e.positionAt(n);return{startLineNumber:r.lineNumber,startColumn:r.column,endLineNumber:r.lineNumber,endColumn:r.column+i}}function Ae(e,t){if(!e)return;const n=Ee.Q1.Format.CSS.parseHex(t);return n?{range:e,color:Ie(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}:void 0}function De(e,t,n){if(!e||1!==t.length)return;const i=Ne(t[0].values());return{range:e,color:Ie(i[0],i[1],i[2],n?i[3]:1)}}function Re(e,t,n){if(!e||1!==t.length)return;const i=Ne(t[0].values()),r=new Ee.Q1(new Ee.hB(i[0],i[1]/100,i[2]/100,n?i[3]:1));return{range:e,color:Ie(r.rgba.r,r.rgba.g,r.rgba.b,r.rgba.a)}}function Me(e,t){return"string"===typeof e?[...e.matchAll(t)]:e.findMatches(t)}function Oe(e){return e&&"function"===typeof e.getValue&&"function"===typeof e.positionAt?function(e){const t=[],n=Me(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/gm);if(n.length>0)for(const i of n){const n=i.filter((e=>void 0!==e)),r=n[1],s=n[2];if(!s)continue;let o;if("rgb"===r){const t=/^\(\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;o=De(Te(e,i),Me(s,t),!1)}else if("rgba"===r){const t=/^\(\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;o=De(Te(e,i),Me(s,t),!0)}else if("hsl"===r){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;o=Re(Te(e,i),Me(s,t),!1)}else if("hsla"===r){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;o=Re(Te(e,i),Me(s,t),!0)}else"#"===r&&(o=Ae(Te(e,i),r+s));o&&t.push(o)}return t}(e):[]}var Be=n(6691),Fe=n(796);class Pe{constructor(){this._workerTextModelSyncServer=new Fe.WorkerTextModelSyncServer}dispose(){}_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){const i=this._getModel(e);return i?L.UnicodeTextModelHighlighter.computeUnicodeHighlights(i,t,n):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async $findSectionHeaders(e,t){const n=this._getModel(e);return n?(0,Be.findSectionHeaders)(n,t):[]}async $computeDiff(e,t,n,i){const r=this._getModel(e),s=this._getModel(t);if(!r||!s)return null;return ze.computeDiff(r,s,n,i)}static computeDiff(e,t,n,i){const r="advanced"===i?we():ye(),s=e.getLinesContent(),o=t.getLinesContent(),a=r.computeDiff(s,o,n);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:!(a.changes.length>0)&&this._modelsAreIdentical(e,t),quitEarly:a.hitTimeout,changes:l(a.changes),moves:a.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){const n=e.getLineCount();if(n!==t.getLineCount())return!1;for(let i=1;i<=n;i++){if(e.getLineContent(i)!==t.getLineContent(i))return!1}return!0}static{this._diffLimit=1e5}async $computeMoreMinimalEdits(e,t,n){const i=this._getModel(e);if(!i)return t;const r=[];let s;t=t.slice(0).sort(((e,t)=>{if(e.range&&t.range)return u.Q.compareRangesUsingStarts(e.range,t.range);return(e.range?0:1)-(t.range?0:1)}));let a=0;for(let o=1;o<t.length;o++)u.Q.getEndPosition(t[a].range).equals(u.Q.getStartPosition(t[o].range))?(t[a].range=u.Q.fromPositions(u.Q.getStartPosition(t[a].range),u.Q.getEndPosition(t[o].range)),t[a].text+=t[o].text):(a++,t[a]=t[o]);t.length=a+1;for(let{range:l,text:h,eol:c}of t){if("number"===typeof c&&(s=c),u.Q.isEmpty(l)&&!h)continue;const e=i.getValueInRange(l);if(h=h.replace(/\r\n|\n|\r/g,i.eol),e===h)continue;if(Math.max(h.length,e.length)>ze._diffLimit){r.push({range:l,text:h});continue}const t=o(e,h,n),a=i.offsetAt(u.Q.lift(l).getStartPosition());for(const n of t){const e=i.positionAt(a+n.originalStart),t=i.positionAt(a+n.originalStart+n.originalLength),s={text:h.substr(n.modifiedStart,n.modifiedLength),range:{startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:t.lineNumber,endColumn:t.column}};i.getValueInRange(s.range)!==s.text&&r.push(s)}}return"number"===typeof s&&r.push({eol:s,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),r}async $computeLinks(e){const t=this._getModel(e);return t?function(e){return e&&"function"===typeof e.getLineCount&&"function"===typeof e.getLineContent?_.computeLinks(e):[]}(t):null}async $computeDefaultDocumentColors(e){const t=this._getModel(e);return t?Oe(t):null}static{this._suggestionsLimit=1e4}async $textualSuggest(e,t,n,i){const r=new C.W,s=new RegExp(n,i),o=new Set;e:for(const a of e){const e=this._getModel(a);if(e)for(const n of e.words(s))if(n!==t&&isNaN(Number(n))&&(o.add(n),o.size>ze._suggestionsLimit))break e}return{words:Array.from(o),duration:r.elapsed()}}async $computeWordRanges(e,t,n,i){const r=this._getModel(e);if(!r)return Object.create(null);const s=new RegExp(n,i),o=Object.create(null);for(let a=t.startLineNumber;a<t.endLineNumber;a++){const e=r.getLineWords(a,s);for(const t of e){if(!isNaN(Number(t.word)))continue;let e=o[t.word];e||(e=[],o[t.word]=e),e.push({startLineNumber:a,startColumn:t.startColumn,endLineNumber:a,endColumn:t.endColumn})}}return o}async $navigateValueSet(e,t,n,i,r){const s=this._getModel(e);if(!s)return null;const o=new RegExp(i,r);t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1});const a=s.getValueInRange(t),l=s.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},o);if(!l)return null;const h=s.getValueInRange(l);return b.INSTANCE.navigateValueSet(t,a,l,h,n)}}class ze extends Pe{constructor(e,t){super(),this._host=e,this._foreignModuleFactory=t,this._foreignModule=null}async $ping(){return"pong"}$loadForeignModule(e,t,i){const r={host:(0,Se.kT)(i,((e,t)=>this._host.$fhr(e,t))),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(r,t),Promise.resolve((0,Se.V0)(this._foreignModule))):new Promise(((i,s)=>{const o=e=>{this._foreignModule=e.create(r,t),i((0,Se.V0)(this._foreignModule))};{const t=xe.zl.asBrowserUri(`${e}.js`).toString(!0);n(9204)(`${t}`).then(o).catch(s)}}))}$fmr(e,t){if(!this._foreignModule||"function"!==typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(n){return Promise.reject(n)}}}function Ve(e){return new ze(v.EditorWorkerHost.getChannel(e),null)}"function"===typeof importScripts&&(globalThis.monaco=(0,k.createMonacoBaseAPI)())},5326:(e,t,n)=>{"use strict";n.d(t,{L:()=>s});var i=n(3069),r=n(6677);class s extends r.Q{constructor(e,t,n,i){super(e,t,n,i),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=n,this.positionColumn=i}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return s.selectionsEqual(this,e)}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(e,t){return 0===this.getDirection()?new s(this.startLineNumber,this.startColumn,e,t):new s(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new i.y(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new i.y(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return 0===this.getDirection()?new s(e,t,this.endLineNumber,this.endColumn):new s(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new s(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return 0===t?new s(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new s(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new s(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.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,i=e.length;n<i;n++)if(!this.selectionsEqual(e[n],t[n]))return!1;return!0}static isISelection(e){return e&&"number"===typeof e.selectionStartLineNumber&&"number"===typeof e.selectionStartColumn&&"number"===typeof e.positionLineNumber&&"number"===typeof e.positionColumn}static createWithDirection(e,t,n,i,r){return 0===r?new s(e,t,n,i):new s(n,i,e,t)}}},5538:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SemanticTokensProviderStyling:()=>m,toMultilineTokens2:()=>p});n(5982);var i=n(5724),r=n(3511),s=n(3069),o=n(6677),a=n(4454);class l{static create(e,t){return new l(e,new h(t))}get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._endLineNumber}constructor(e,t){this._startLineNumber=e,this._tokens=t,this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}toString(){return this._tokens.toString(this._startLineNumber)}_updateEndLineNumber(){this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}isEmpty(){return this._tokens.isEmpty()}getLineTokens(e){return this._startLineNumber<=e&&e<=this._endLineNumber?this._tokens.getLineTokens(e-this._startLineNumber):null}getRange(){const e=this._tokens.getRange();return e?new o.Q(this._startLineNumber+e.startLineNumber,e.startColumn,this._startLineNumber+e.endLineNumber,e.endColumn):e}removeTokens(e){const t=e.startLineNumber-this._startLineNumber,n=e.endLineNumber-this._startLineNumber;this._startLineNumber+=this._tokens.removeTokens(t,e.startColumn-1,n,e.endColumn-1),this._updateEndLineNumber()}split(e){const t=e.startLineNumber-this._startLineNumber,n=e.endLineNumber-this._startLineNumber,[i,r,s]=this._tokens.split(t,e.startColumn-1,n,e.endColumn-1);return[new l(this._startLineNumber,i),new l(this._startLineNumber+s,r)]}applyEdit(e,t){const[n,i,r]=(0,a.W)(t);this.acceptEdit(e,n,i,r,t.length>0?t.charCodeAt(0):0)}acceptEdit(e,t,n,i,r){this._acceptDeleteRange(e),this._acceptInsertText(new s.y(e.startLineNumber,e.startColumn),t,n,i,r),this._updateEndLineNumber()}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return;const t=e.startLineNumber-this._startLineNumber,n=e.endLineNumber-this._startLineNumber;if(n<0){const e=n-t;return void(this._startLineNumber-=e)}const i=this._tokens.getMaxDeltaLine();if(!(t>=i+1)){if(t<0&&n>=i+1)return this._startLineNumber=0,void this._tokens.clear();if(t<0){const i=-t;this._startLineNumber-=i,this._tokens.acceptDeleteRange(e.startColumn-1,0,0,n,e.endColumn-1)}else this._tokens.acceptDeleteRange(0,t,e.startColumn-1,n,e.endColumn-1)}}_acceptInsertText(e,t,n,i,r){if(0===t&&0===n)return;const s=e.lineNumber-this._startLineNumber;if(s<0)return void(this._startLineNumber+=t);s>=this._tokens.getMaxDeltaLine()+1||this._tokens.acceptInsertText(s,e.column-1,t,n,i,r)}}class h{constructor(e){this._tokens=e,this._tokenCount=e.length/4}toString(e){const t=[];for(let n=0;n<this._tokenCount;n++)t.push(`(${this._getDeltaLine(n)+e},${this._getStartCharacter(n)}-${this._getEndCharacter(n)})`);return`[${t.join(",")}]`}getMaxDeltaLine(){const e=this._getTokenCount();return 0===e?-1:this._getDeltaLine(e-1)}getRange(){const e=this._getTokenCount();if(0===e)return null;const t=this._getStartCharacter(0),n=this._getDeltaLine(e-1),i=this._getEndCharacter(e-1);return new o.Q(0,t+1,n,i+1)}_getTokenCount(){return this._tokenCount}_getDeltaLine(e){return this._tokens[4*e]}_getStartCharacter(e){return this._tokens[4*e+1]}_getEndCharacter(e){return this._tokens[4*e+2]}isEmpty(){return 0===this._getTokenCount()}getLineTokens(e){let t=0,n=this._getTokenCount()-1;for(;t<n;){const i=t+Math.floor((n-t)/2),r=this._getDeltaLine(i);if(r<e)t=i+1;else{if(!(r>e)){let r=i;for(;r>t&&this._getDeltaLine(r-1)===e;)r--;let s=i;for(;s<n&&this._getDeltaLine(s+1)===e;)s++;return new c(this._tokens.subarray(4*r,4*s+4))}n=i-1}}return this._getDeltaLine(t)===e?new c(this._tokens.subarray(4*t,4*t+4)):null}clear(){this._tokenCount=0}removeTokens(e,t,n,i){const r=this._tokens,s=this._tokenCount;let o=0,a=!1,l=0;for(let h=0;h<s;h++){const s=4*h,c=r[s],u=r[s+1],d=r[s+2],g=r[s+3];if((c>e||c===e&&d>=t)&&(c<n||c===n&&u<=i))a=!0;else{if(0===o&&(l=c),a){const e=4*o;r[e]=c-l,r[e+1]=u,r[e+2]=d,r[e+3]=g}o++}}return this._tokenCount=o,l}split(e,t,n,i){const r=this._tokens,s=this._tokenCount,o=[],a=[];let l=o,c=0,u=0;for(let h=0;h<s;h++){const s=4*h,o=r[s],d=r[s+1],g=r[s+2],f=r[s+3];if(o>e||o===e&&g>=t){if(o<n||o===n&&d<=i)continue;l!==a&&(l=a,c=0,u=o)}l[c++]=o-u,l[c++]=d,l[c++]=g,l[c++]=f}return[new h(new Uint32Array(o)),new h(new Uint32Array(a)),u]}acceptDeleteRange(e,t,n,i,r){const s=this._tokens,o=this._tokenCount,a=i-t;let l=0,h=!1;for(let c=0;c<o;c++){const u=4*c;let d=s[u],g=s[u+1],f=s[u+2];const m=s[u+3];if(d<t||d===t&&f<=n){l++;continue}if(d===t&&g<n)d===i&&f>r?f-=r-n:f=n;else if(d===t&&g===n){if(!(d===i&&f>r)){h=!0;continue}f-=r-n}else if(d<i||d===i&&g<r){if(!(d===i&&f>r)){h=!0;continue}d=t,g=n,f=g+(f-r)}else if(d>i){if(0===a&&!h){l=o;break}d-=a}else{if(!(d===i&&g>=r))throw new Error("Not possible!");e&&0===d&&(g+=e,f+=e),d-=a,g-=r-n,f-=r-n}const p=4*l;s[p]=d,s[p+1]=g,s[p+2]=f,s[p+3]=m,l++}this._tokenCount=l}acceptInsertText(e,t,n,i,r,s){const o=0===n&&1===i&&(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122),a=this._tokens,l=this._tokenCount;for(let h=0;h<l;h++){const s=4*h;let l=a[s],c=a[s+1],u=a[s+2];if(!(l<e||l===e&&u<t)){if(l===e&&u===t){if(!o)continue;u+=1}else if(l===e&&c<t&&t<u)0===n?u+=i:u=t;else{if(l===e&&c===t&&o)continue;if(l===e)if(l+=n,0===n)c+=i,u+=i;else{const e=u-c;c=r+(c-t),u=c+e}else l+=n}a[s]=l,a[s+1]=c,a[s+2]=u}}}}class c{constructor(e){this._tokens=e}getCount(){return this._tokens.length/4}getStartCharacter(e){return this._tokens[4*e+1]}getEndCharacter(e){return this._tokens[4*e+2]}getMetadata(e){return this._tokens[4*e+3]}}var u=n(154),d=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},g=function(e,t){return function(n,i){t(n,i,e)}};const f=!1;let m=class{constructor(e,t,n,i){this._legend=e,this._themeService=t,this._languageService=n,this._logService=i,this._hasWarnedOverlappingTokens=!1,this._hasWarnedInvalidLengthTokens=!1,this._hasWarnedInvalidEditStart=!1,this._hashTable=new b}getMetadata(e,t,n){const i=this._languageService.languageIdCodec.encodeLanguageId(n),r=this._hashTable.get(e,t,i);let s;if(r)s=r.metadata;else{let r=this._legend.tokenTypes[e];const o=[];if(r){let e=t;for(let t=0;e>0&&t<this._legend.tokenModifiers.length;t++)1&e&&o.push(this._legend.tokenModifiers[t]),e>>=1;f;const i=this._themeService.getColorTheme().getTokenStyleMetadata(r,o,n);if("undefined"===typeof i)s=2147483647;else{if(s=0,"undefined"!==typeof i.italic){s|=1|(i.italic?1:0)<<11}if("undefined"!==typeof i.bold){s|=2|(i.bold?2:0)<<11}if("undefined"!==typeof i.underline){s|=4|(i.underline?4:0)<<11}if("undefined"!==typeof i.strikethrough){s|=8|(i.strikethrough?8:0)<<11}if(i.foreground){s|=16|i.foreground<<15}0===s&&(s=2147483647)}}else s=2147483647,r="not-in-legend";this._hashTable.add(e,t,i,s)}return s}warnOverlappingSemanticTokens(e,t){this._hasWarnedOverlappingTokens||(this._hasWarnedOverlappingTokens=!0,this._logService.warn(`Overlapping semantic tokens detected at lineNumber ${e}, column ${t}`))}warnInvalidLengthSemanticTokens(e,t){this._hasWarnedInvalidLengthTokens||(this._hasWarnedInvalidLengthTokens=!0,this._logService.warn(`Semantic token with invalid length detected at lineNumber ${e}, column ${t}`))}warnInvalidEditStart(e,t,n,i,r){this._hasWarnedInvalidEditStart||(this._hasWarnedInvalidEditStart=!0,this._logService.warn(`Invalid semantic tokens edit detected (previousResultId: ${e}, resultId: ${t}) at edit #${n}: The provided start offset ${i} is outside the previous data (length ${r}).`))}};function p(e,t,n){const i=e.data,r=e.data.length/5|0,s=Math.max(Math.ceil(r/1024),400),o=[];let a=0,h=1,c=0;for(;a<r;){const e=a;let u=Math.min(e+s,r);if(u<r){let t=u;for(;t-1>e&&0===i[5*t];)t--;if(t-1===e){let e=u;for(;e+1<r&&0===i[5*e];)e++;u=e}else u=t}let d=new Uint32Array(4*(u-e)),g=0,f=0,m=0,p=0;for(;a<u;){const e=5*a,r=i[e],s=i[e+1],o=h+r|0,l=0===r?c+s|0:s,u=l+i[e+2]|0,_=i[e+3],b=i[e+4];if(u<=l)t.warnInvalidLengthSemanticTokens(o,l+1);else if(m===o&&p>l)t.warnOverlappingSemanticTokens(o,l+1);else{const e=t.getMetadata(_,b,n);2147483647!==e&&(0===f&&(f=o),d[g]=o-f,d[g+1]=l,d[g+2]=u,d[g+3]=e,g+=4,m=o,p=u)}h=o,c=l,a++}g!==d.length&&(d=d.subarray(0,g));const _=l.create(f,d);o.push(_)}return o}m=d([g(1,i.Gy),g(2,u.L),g(3,r.rr)],m);class _{constructor(e,t,n,i){this.tokenTypeIndex=e,this.tokenModifierSet=t,this.languageId=n,this.metadata=i,this.next=null}}class b{static{this._SIZES=[3,7,13,31,61,127,251,509,1021,2039,4093,8191,16381,32749,65521,131071,262139,524287,1048573,2097143]}constructor(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=b._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<b._SIZES.length?2/3*this._currentLength:0),this._elements=[],b._nullOutEntries(this._elements,this._currentLength)}static _nullOutEntries(e,t){for(let n=0;n<t;n++)e[n]=null}_hash2(e,t){return(e<<5)-e+t|0}_hashFunc(e,t,n){return this._hash2(this._hash2(e,t),n)%this._currentLength}get(e,t,n){const i=this._hashFunc(e,t,n);let r=this._elements[i];for(;r;){if(r.tokenTypeIndex===e&&r.tokenModifierSet===t&&r.languageId===n)return r;r=r.next}return null}add(e,t,n,i){if(this._elementsCount++,0!==this._growCount&&this._elementsCount>=this._growCount){const e=this._elements;this._currentLengthIndex++,this._currentLength=b._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<b._SIZES.length?2/3*this._currentLength:0),this._elements=[],b._nullOutEntries(this._elements,this._currentLength);for(const t of e){let e=t;for(;e;){const t=e.next;e.next=null,this._add(e),e=t}}}this._add(new _(e,t,n,i))}_add(e){const t=this._hashFunc(e.tokenTypeIndex,e.tokenModifierSet,e.languageId);e.next=this._elements[t],this._elements[t]=e}}},5600:(e,t,n)=>{"use strict";n.d(t,{e2:()=>o,sN:()=>r,v7:()=>c});var i=n(1508);function r(e,t){switch(typeof e){case"object":return null===e?s(349,t):Array.isArray(e)?(n=e,i=s(104579,i=t),n.reduce(((e,t)=>r(t,e)),i)):function(e,t){return t=s(181387,t),Object.keys(e).sort().reduce(((t,n)=>(t=o(n,t),r(e[n],t))),t)}(e,t);case"string":return o(e,t);case"boolean":return function(e,t){return s(e?433:863,t)}(e,t);case"number":return s(e,t);case"undefined":return s(937,t);default:return s(617,t)}var n,i}function s(e,t){return(t<<5)-t+e|0}function o(e,t){t=s(149417,t);for(let n=0,i=e.length;n<i;n++)t=s(e.charCodeAt(n),t);return t}function a(e,t,n=32){const i=n-t;return(e<<t|(~((1<<i)-1)&e)>>>i)>>>0}function l(e,t=0,n=e.byteLength,i=0){for(let r=0;r<n;r++)e[t+r]=i}function h(e,t=32){return e instanceof ArrayBuffer?Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join(""):function(e,t,n="0"){for(;e.length<t;)e=n+e;return e}((e>>>0).toString(16),t/4)}class c{static{this._bigBlock32=new DataView(new ArrayBuffer(320))}constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(0===t)return;const n=this._buff;let r,s,o=this._buffLen,a=this._leftoverHighSurrogate;for(0!==a?(r=a,s=-1,a=0):(r=e.charCodeAt(0),s=0);;){let l=r;if(i.pc(r)){if(!(s+1<t)){a=r;break}{const t=e.charCodeAt(s+1);i.LJ(t)?(s++,l=i.z_(r,t)):l=65533}}else i.LJ(r)&&(l=65533);if(o=this._push(n,o,l),s++,!(s<t))break;r=e.charCodeAt(s)}this._buffLen=o,this._leftoverHighSurrogate=a}_push(e,t,n){return n<128?e[t++]=n:n<2048?(e[t++]=192|(1984&n)>>>6,e[t++]=128|(63&n)>>>0):n<65536?(e[t++]=224|(61440&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0):(e[t++]=240|(1835008&n)>>>18,e[t++]=128|(258048&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>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()),h(this._h0)+h(this._h1)+h(this._h2)+h(this._h3)+h(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,l(this._buff,this._buffLen),this._buffLen>56&&(this._step(),l(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=c._bigBlock32,t=this._buffDV;for(let a=0;a<64;a+=4)e.setUint32(a,t.getUint32(a,!1),!1);for(let c=64;c<320;c+=4)e.setUint32(c,a(e.getUint32(c-12,!1)^e.getUint32(c-32,!1)^e.getUint32(c-56,!1)^e.getUint32(c-64,!1),1),!1);let n,i,r,s=this._h0,o=this._h1,l=this._h2,h=this._h3,u=this._h4;for(let c=0;c<80;c++)c<20?(n=o&l|~o&h,i=1518500249):c<40?(n=o^l^h,i=1859775393):c<60?(n=o&l|o&h|l&h,i=2400959708):(n=o^l^h,i=3395469782),r=a(s,5)+n+u+i+e.getUint32(4*c,!1)&4294967295,u=h,h=l,l=a(o,30),o=s,s=r;this._h0=this._h0+s&4294967295,this._h1=this._h1+o&4294967295,this._h2=this._h2+l&4294967295,this._h3=this._h3+h&4294967295,this._h4=this._h4+u&4294967295}}},5628:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getIconClasses:()=>d});var i,r=n(6456),s=n(9403),o=n(9400),a=n(3941);!function(e){e[e.FILE=0]="FILE",e[e.FOLDER=1]="FOLDER",e[e.ROOT_FOLDER=2]="ROOT_FOLDER"}(i||(i={}));var l,h,c=n(9493);!function(e){e.isThemeColor=function(e){return e&&"object"===typeof e&&"string"===typeof e.id}}(l||(l={})),function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9-]+",e.iconModifierExpression="~[A-Za-z]+",e.iconNameCharacter="[A-Za-z0-9~-]";const t=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function n(e){const i=t.exec(e.id);if(!i)return n(c.W.error);const[,r,s]=i,o=["codicon","codicon-"+r];return s&&o.push("codicon-modifier-"+s.substring(1)),o}e.asClassNameArray=n,e.asClassName=function(e){return n(e).join(" ")},e.asCSSSelector=function(e){return"."+n(e).join(".")},e.isThemeIcon=function(e){return e&&"object"===typeof e&&"string"===typeof e.id&&("undefined"===typeof e.color||l.isThemeColor(e.color))};const i=new RegExp(`^\\$\\((${e.iconNameExpression}(?:${e.iconModifierExpression})?)\\)$`);e.fromString=function(e){const t=i.exec(e);if(!t)return;const[,n]=t;return{id:n}},e.fromId=function(e){return{id:e}},e.modify=function(e,t){let n=e.id;const i=n.lastIndexOf("~");return-1!==i&&(n=n.substring(0,i)),t&&(n=`${n}~${t}`),{id:n}},e.getModifier=function(e){const t=e.id.lastIndexOf("~");if(-1!==t)return e.id.substring(t+1)},e.isEqual=function(e,t){return e.id===t.id&&e.color?.id===t.color?.id}}(h||(h={}));const u=/(?:\/|^)(?:([^\/]+)\/)?([^\/]+)$/;function d(e,t,n,l,c){if(h.isThemeIcon(c))return[`codicon-${c.id}`,"predefined-file-icon"];if(o.r.isUri(c))return[];const d=l===i.ROOT_FOLDER?["rootfolder-icon"]:l===i.FOLDER?["folder-icon"]:["file-icon"];if(n){let o;if(n.scheme===r.ny.data){o=s.B6.parseMetaData(n).get(s.B6.META_DATA_LABEL)}else{const e=n.path.match(u);e?(o=g(e[2].toLowerCase()),e[1]&&d.push(`${g(e[1].toLowerCase())}-name-dir-icon`)):o=g(n.authority.toLowerCase())}if(l===i.ROOT_FOLDER)d.push(`${o}-root-name-folder-icon`);else if(l===i.FOLDER)d.push(`${o}-name-folder-icon`);else{if(o){if(d.push(`${o}-name-file-icon`),d.push("name-file-icon"),o.length<=255){const e=o.split(".");for(let t=1;t<e.length;t++)d.push(`${e.slice(t).join(".")}-ext-file-icon`)}d.push("ext-file-icon")}const i=function(e,t,n){if(!n)return null;let i=null;if(n.scheme===r.ny.data){const e=s.B6.parseMetaData(n).get(s.B6.META_DATA_MIME);e&&(i=t.getLanguageIdByMimeType(e))}else{const t=e.getModel(n);t&&(i=t.getLanguageId())}if(i&&i!==a.vH)return i;return t.guessLanguageIdByFilepathOrFirstLine(n)}(e,t,n);i&&d.push(`${g(i)}-lang-file-icon`)}}return d}function g(e){return e.replace(/[\s]/g,"/")}},5724:(e,t,n)=>{"use strict";n.d(t,{Gy:()=>l,zy:()=>u,Yf:()=>h});var i,r=n(1234),s=n(1484),o=n(3591),a=n(6359);!function(e){e.DARK="dark",e.LIGHT="light",e.HIGH_CONTRAST_DARK="hcDark",e.HIGH_CONTRAST_LIGHT="hcLight"}(i||(i={}));const l=(0,o.u1)("themeService");function h(e){return{id:e}}const c=new class{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new r.vl}onColorThemeChange(e){return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),(0,s.s)((()=>{const t=this.themingParticipants.indexOf(e);this.themingParticipants.splice(t,1)}))}getThemingParticipants(){return this.themingParticipants}};function u(e){return c.onColorThemeChange(e)}a.O.add("base.contributions.theming",c);s.jG},5845:(e,t,n)=>{"use strict";n.d(t,{buw:()=>S,b1q:()=>w,YtV:()=>A,Ubg:()=>q,IIb:()=>V,pOz:()=>z,whs:()=>B,Stt:()=>P,Hng:()=>F,yLC:()=>le,KoI:()=>oe,uMG:()=>ae,x1A:()=>u});var i=n(6782),r=n(1940),s=n(7661),o=n(1234),a=n(8748),l=n(6359),h=n(8209);const c=new class{constructor(){this._onDidChangeSchema=new o.vl,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}registerColor(e,t,n,i=!1,r){const s={id:e,description:n,defaults:t,needsTransparency:i,deprecationMessage:r};this.colorsById[e]=s;const o={type:"string",format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return r&&(o.deprecationMessage=r),i&&(o.pattern="^#(?:(?<rgba>[0-9a-fA-f]{3}[0-9a-eA-E])|(?:[0-9a-fA-F]{6}(?:(?![fF]{2})(?:[0-9a-fA-F]{2}))))?$",o.patternErrorMessage=h.kg("transparecyRequired","This color must be transparent or it will obscure content")),this.colorSchema.properties[e]={description:n,oneOf:[o,{type:"string",const:"default",description:h.kg("useDefault","Use the default color.")}]},this.colorReferenceSchema.enum.push(e),this.colorReferenceSchema.enumDescriptions.push(n),this._onDidChangeSchema.fire(),e}getColors(){return Object.keys(this.colorsById).map((e=>this.colorsById[e]))}resolveDefaultColor(e,t){const n=this.colorsById[e];if(n?.defaults){return _(null!==(i=n.defaults)&&"object"===typeof i&&"light"in i&&"dark"in i?n.defaults[t.type]:n.defaults,t)}var i}getColorSchema(){return this.colorSchema}toString(){return Object.keys(this.colorsById).sort(((e,t)=>{const n=-1===e.indexOf(".")?0:1,i=-1===t.indexOf(".")?0:1;return n!==i?n-i:e.localeCompare(t)})).map((e=>`- \`${e}\`: ${this.colorsById[e].description}`)).join("\n")}};function u(e,t,n,i,r){return c.registerColor(e,t,n,i,r)}function d(e,t){return{op:0,value:e,factor:t}}function g(e,t){return{op:1,value:e,factor:t}}function f(e,t){return{op:2,value:e,factor:t}}function m(...e){return{op:4,values:e}}function p(e,t,n,i){return{op:5,value:e,background:t,factor:n,transparency:i}}function _(e,t){if(null!==e)return"string"===typeof e?"#"===e[0]?s.Q1.fromHex(e):t.getColor(e):e instanceof s.Q1?e:"object"===typeof e?function(e,t){switch(e.op){case 0:return _(e.value,t)?.darken(e.factor);case 1:return _(e.value,t)?.lighten(e.factor);case 2:return _(e.value,t)?.transparent(e.factor);case 3:{const n=_(e.background,t);return n?_(e.value,t)?.makeOpaque(n):_(e.value,t)}case 4:for(const n of e.values){const e=_(n,t);if(e)return e}return;case 6:return _(t.defines(e.if)?e.then:e.else,t);case 5:{const n=_(e.value,t);if(!n)return;const i=_(e.background,t);return i?n.isDarkerThan(i)?s.Q1.getLighterColor(n,i,e.factor).transparent(e.transparency):s.Q1.getDarkerColor(n,i,e.factor).transparent(e.transparency):n.transparent(e.factor*e.transparency)}default:throw(0,i.xb)(e)}}(e,t):void 0}l.O.add("base.contributions.colors",c);const b="vscode://schemas/workbench-colors",k=l.O.as(a.F.JSONContribution);k.registerSchema(b,c.getColorSchema());const v=new r.uC((()=>k.notifySchemaChanged(b)),200);c.onDidChangeSchema((()=>{v.isScheduled()||v.schedule()}));const C=u("foreground",{dark:"#CCCCCC",light:"#616161",hcDark:"#FFFFFF",hcLight:"#292929"},h.kg("foreground","Overall foreground color. This color is only used if not overridden by a component.")),L=(u("disabledForeground",{dark:"#CCCCCC80",light:"#61616180",hcDark:"#A5A5A5",hcLight:"#7F7F7F"},h.kg("disabledForeground","Overall foreground for disabled elements. This color is only used if not overridden by a component.")),u("errorForeground",{dark:"#F48771",light:"#A1260D",hcDark:"#F48771",hcLight:"#B5200D"},h.kg("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),u("descriptionForeground",{light:"#717171",dark:f(C,.7),hcDark:f(C,.7),hcLight:f(C,.7)},h.kg("descriptionForeground","Foreground color for description text providing additional information, for example for a label.")),u("icon.foreground",{dark:"#C5C5C5",light:"#424242",hcDark:"#FFFFFF",hcLight:"#292929"},h.kg("iconForeground","The default color for icons in the workbench."))),y=u("focusBorder",{dark:"#007FD4",light:"#0090F1",hcDark:"#F38518",hcLight:"#006BBD"},h.kg("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),w=u("contrastBorder",{light:null,dark:null,hcDark:"#6FC3DF",hcLight:"#0F4A85"},h.kg("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),S=u("contrastActiveBorder",{light:null,dark:null,hcDark:y,hcLight:y},h.kg("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),x=(u("selection.background",null,h.kg("selectionBackground","The background color of text selections in the workbench (e.g. for input fields or text areas). Note that this does not apply to selections within the editor.")),u("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},h.kg("textLinkForeground","Foreground color for links in text.")),u("textLink.activeForeground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},h.kg("textLinkActiveForeground","Foreground color for links in text when clicked on and on mouse hover.")),u("textSeparator.foreground",{light:"#0000002e",dark:"#ffffff2e",hcDark:s.Q1.black,hcLight:"#292929"},h.kg("textSeparatorForeground","Color for text separators.")),u("textPreformat.foreground",{light:"#A31515",dark:"#D7BA7D",hcDark:"#000000",hcLight:"#FFFFFF"},h.kg("textPreformatForeground","Foreground color for preformatted text segments.")),u("textPreformat.background",{light:"#0000001A",dark:"#FFFFFF1A",hcDark:"#FFFFFF",hcLight:"#09345f"},h.kg("textPreformatBackground","Background color for preformatted text segments.")),u("textBlockQuote.background",{light:"#f2f2f2",dark:"#222222",hcDark:null,hcLight:"#F2F2F2"},h.kg("textBlockQuoteBackground","Background color for block quotes in text.")),u("textBlockQuote.border",{light:"#007acc80",dark:"#007acc80",hcDark:s.Q1.white,hcLight:"#292929"},h.kg("textBlockQuoteBorder","Border color for block quotes in text.")),u("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hcDark:s.Q1.black,hcLight:"#F2F2F2"},h.kg("textCodeBlockBackground","Background color for code blocks in text.")),u("sash.hoverBorder",y,h.kg("sashActiveBorder","Border color of active sashes.")),u("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hcDark:s.Q1.black,hcLight:"#0F4A85"},h.kg("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count."))),E=(u("badge.foreground",{dark:s.Q1.white,light:"#333",hcDark:s.Q1.white,hcLight:s.Q1.white},h.kg("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),u("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hcDark:null,hcLight:null},h.kg("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled."))),N=u("scrollbarSlider.background",{dark:s.Q1.fromHex("#797979").transparent(.4),light:s.Q1.fromHex("#646464").transparent(.4),hcDark:f(w,.6),hcLight:f(w,.4)},h.kg("scrollbarSliderBackground","Scrollbar slider background color.")),I=u("scrollbarSlider.hoverBackground",{dark:s.Q1.fromHex("#646464").transparent(.7),light:s.Q1.fromHex("#646464").transparent(.7),hcDark:f(w,.8),hcLight:f(w,.8)},h.kg("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),T=u("scrollbarSlider.activeBackground",{dark:s.Q1.fromHex("#BFBFBF").transparent(.4),light:s.Q1.fromHex("#000000").transparent(.6),hcDark:w,hcLight:w},h.kg("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),A=(u("progressBar.background",{dark:s.Q1.fromHex("#0E70C0"),light:s.Q1.fromHex("#0E70C0"),hcDark:w,hcLight:w},h.kg("progressBarBackground","Background color of the progress bar that can show for long running operations.")),u("editor.background",{light:"#ffffff",dark:"#1E1E1E",hcDark:s.Q1.black,hcLight:s.Q1.white},h.kg("editorBackground","Editor background color."))),D=(u("editor.foreground",{light:"#333333",dark:"#BBBBBB",hcDark:s.Q1.white,hcLight:C},h.kg("editorForeground","Editor default foreground color.")),u("editorStickyScroll.background",A,h.kg("editorStickyScrollBackground","Background color of sticky scroll in the editor")),u("editorStickyScrollHover.background",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:null,hcLight:s.Q1.fromHex("#0F4A85").transparent(.1)},h.kg("editorStickyScrollHoverBackground","Background color of sticky scroll on hover in the editor")),u("editorStickyScroll.border",{dark:null,light:null,hcDark:w,hcLight:w},h.kg("editorStickyScrollBorder","Border color of sticky scroll in the editor")),u("editorStickyScroll.shadow",E,h.kg("editorStickyScrollShadow"," Shadow color of sticky scroll in the editor")),u("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hcDark:"#0C141F",hcLight:s.Q1.white},h.kg("editorWidgetBackground","Background color of editor widgets, such as find/replace."))),R=u("editorWidget.foreground",C,h.kg("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),M=u("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hcDark:w,hcLight:w},h.kg("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),O=(u("editorWidget.resizeBorder",null,h.kg("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),u("editorError.background",null,h.kg("editorError.background","Background color of error text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),u("editorError.foreground",{dark:"#F14C4C",light:"#E51400",hcDark:"#F48771",hcLight:"#B5200D"},h.kg("editorError.foreground","Foreground color of error squigglies in the editor."))),B=(u("editorError.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#E47777").transparent(.8),hcLight:"#B5200D"},h.kg("errorBorder","If set, color of double underlines for errors in the editor.")),u("editorWarning.background",null,h.kg("editorWarning.background","Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0)),F=u("editorWarning.foreground",{dark:"#CCA700",light:"#BF8803",hcDark:"#FFD370",hcLight:"#895503"},h.kg("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),P=u("editorWarning.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#FFCC00").transparent(.8),hcLight:s.Q1.fromHex("#FFCC00").transparent(.8)},h.kg("warningBorder","If set, color of double underlines for warnings in the editor.")),z=(u("editorInfo.background",null,h.kg("editorInfo.background","Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),u("editorInfo.foreground",{dark:"#3794FF",light:"#1a85ff",hcDark:"#3794FF",hcLight:"#1a85ff"},h.kg("editorInfo.foreground","Foreground color of info squigglies in the editor."))),V=u("editorInfo.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#3794FF").transparent(.8),hcLight:"#292929"},h.kg("infoBorder","If set, color of double underlines for infos in the editor.")),W=(u("editorHint.foreground",{dark:s.Q1.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hcDark:null,hcLight:null},h.kg("editorHint.foreground","Foreground color of hint squigglies in the editor.")),u("editorHint.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#eeeeee").transparent(.8),hcLight:"#292929"},h.kg("hintBorder","If set, color of double underlines for hints in the editor.")),u("editorLink.activeForeground",{dark:"#4E94CE",light:s.Q1.blue,hcDark:s.Q1.cyan,hcLight:"#292929"},h.kg("activeLinkForeground","Color of active links.")),u("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hcDark:"#f3f518",hcLight:"#0F4A85"},h.kg("editorSelectionBackground","Color of the editor selection."))),q=(u("editor.selectionForeground",{light:null,dark:null,hcDark:"#000000",hcLight:s.Q1.white},h.kg("editorSelectionForeground","Color of the selected text for high contrast.")),u("editor.inactiveSelectionBackground",{light:f(W,.5),dark:f(W,.5),hcDark:f(W,.7),hcLight:f(W,.5)},h.kg("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),u("editor.selectionHighlightBackground",{light:p(W,A,.3,.6),dark:p(W,A,.3,.6),hcDark:null,hcLight:null},h.kg("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),u("editor.selectionHighlightBorder",{light:null,dark:null,hcDark:S,hcLight:S},h.kg("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),u("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hcDark:null,hcLight:null},h.kg("editorFindMatch","Color of the current search match.")),u("editor.findMatchForeground",null,h.kg("editorFindMatchForeground","Text color of the current search match.")),u("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hcDark:null,hcLight:null},h.kg("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0)),H=(u("editor.findMatchHighlightForeground",null,h.kg("findMatchHighlightForeground","Foreground color of the other search matches."),!0),u("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hcDark:null,hcLight:null},h.kg("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),u("editor.findMatchBorder",{light:null,dark:null,hcDark:S,hcLight:S},h.kg("editorFindMatchBorder","Border color of the current search match.")),u("editor.findMatchHighlightBorder",{light:null,dark:null,hcDark:S,hcLight:S},h.kg("findMatchHighlightBorder","Border color of the other search matches."))),U=(u("editor.findRangeHighlightBorder",{dark:null,light:null,hcDark:f(S,.4),hcLight:f(S,.4)},h.kg("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),u("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hcDark:"#ADD6FF26",hcLight:null},h.kg("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),u("editorHoverWidget.background",D,h.kg("hoverBackground","Background color of the editor hover."))),j=(u("editorHoverWidget.foreground",R,h.kg("hoverForeground","Foreground color of the editor hover.")),u("editorHoverWidget.border",M,h.kg("hoverBorder","Border color of the editor hover.")),u("editorHoverWidget.statusBarBackground",{dark:g(U,.2),light:d(U,.05),hcDark:D,hcLight:D},h.kg("statusBarBackground","Background color of the editor hover status bar.")),u("editorInlayHint.foreground",{dark:"#969696",light:"#969696",hcDark:s.Q1.white,hcLight:s.Q1.black},h.kg("editorInlayHintForeground","Foreground color of inline hints"))),K=u("editorInlayHint.background",{dark:f(x,.1),light:f(x,.1),hcDark:f(s.Q1.white,.1),hcLight:f(x,.1)},h.kg("editorInlayHintBackground","Background color of inline hints")),$=(u("editorInlayHint.typeForeground",j,h.kg("editorInlayHintForegroundTypes","Foreground color of inline hints for types")),u("editorInlayHint.typeBackground",K,h.kg("editorInlayHintBackgroundTypes","Background color of inline hints for types")),u("editorInlayHint.parameterForeground",j,h.kg("editorInlayHintForegroundParameter","Foreground color of inline hints for parameters")),u("editorInlayHint.parameterBackground",K,h.kg("editorInlayHintBackgroundParameter","Background color of inline hints for parameters")),u("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hcDark:"#FFCC00",hcLight:"#007ACC"},h.kg("editorLightBulbForeground","The color used for the lightbulb actions icon."))),G=(u("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},h.kg("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),u("editorLightBulbAi.foreground",$,h.kg("editorLightBulbAiForeground","The color used for the lightbulb AI icon.")),u("editor.snippetTabstopHighlightBackground",{dark:new s.Q1(new s.bU(124,124,124,.3)),light:new s.Q1(new s.bU(10,50,100,.2)),hcDark:new s.Q1(new s.bU(124,124,124,.3)),hcLight:new s.Q1(new s.bU(10,50,100,.2))},h.kg("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),u("editor.snippetTabstopHighlightBorder",null,h.kg("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),u("editor.snippetFinalTabstopHighlightBackground",null,h.kg("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),u("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new s.Q1(new s.bU(10,50,100,.5)),hcDark:"#525252",hcLight:"#292929"},h.kg("snippetFinalTabstopHighlightBorder","Highlight border color of the final tabstop of a snippet.")),new s.Q1(new s.bU(155,185,85,.2))),Q=new s.Q1(new s.bU(255,0,0,.2)),Y=(u("diffEditor.insertedTextBackground",{dark:"#9ccc2c33",light:"#9ccc2c40",hcDark:null,hcLight:null},h.kg("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),u("diffEditor.removedTextBackground",{dark:"#ff000033",light:"#ff000033",hcDark:null,hcLight:null},h.kg("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),u("diffEditor.insertedLineBackground",{dark:G,light:G,hcDark:null,hcLight:null},h.kg("diffEditorInsertedLines","Background color for lines that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),u("diffEditor.removedLineBackground",{dark:Q,light:Q,hcDark:null,hcLight:null},h.kg("diffEditorRemovedLines","Background color for lines that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),u("diffEditorGutter.insertedLineBackground",null,h.kg("diffEditorInsertedLineGutter","Background color for the margin where lines got inserted.")),u("diffEditorGutter.removedLineBackground",null,h.kg("diffEditorRemovedLineGutter","Background color for the margin where lines got removed.")),u("diffEditorOverview.insertedForeground",null,h.kg("diffEditorOverviewInserted","Diff overview ruler foreground for inserted content.")),u("diffEditorOverview.removedForeground",null,h.kg("diffEditorOverviewRemoved","Diff overview ruler foreground for removed content.")),u("diffEditor.insertedTextBorder",{dark:null,light:null,hcDark:"#33ff2eff",hcLight:"#374E06"},h.kg("diffEditorInsertedOutline","Outline color for the text that got inserted.")),u("diffEditor.removedTextBorder",{dark:null,light:null,hcDark:"#FF008F",hcLight:"#AD0707"},h.kg("diffEditorRemovedOutline","Outline color for text that got removed.")),u("diffEditor.border",{dark:null,light:null,hcDark:w,hcLight:w},h.kg("diffEditorBorder","Border color between the two text editors.")),u("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hcDark:null,hcLight:null},h.kg("diffDiagonalFill","Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.")),u("diffEditor.unchangedRegionBackground","sideBar.background",h.kg("diffEditor.unchangedRegionBackground","The background color of unchanged blocks in the diff editor.")),u("diffEditor.unchangedRegionForeground","foreground",h.kg("diffEditor.unchangedRegionForeground","The foreground color of unchanged blocks in the diff editor.")),u("diffEditor.unchangedCodeBackground",{dark:"#74747429",light:"#b8b8b829",hcDark:null,hcLight:null},h.kg("diffEditor.unchangedCodeBackground","The background color of unchanged code in the diff editor.")),u("widget.shadow",{dark:f(s.Q1.black,.36),light:f(s.Q1.black,.16),hcDark:null,hcLight:null},h.kg("widgetShadow","Shadow color of widgets such as find/replace inside the editor."))),X=(u("widget.border",{dark:null,light:null,hcDark:w,hcLight:w},h.kg("widgetBorder","Border color of widgets such as find/replace inside the editor.")),u("toolbar.hoverBackground",{dark:"#5a5d5e50",light:"#b8b8b850",hcDark:null,hcLight:null},h.kg("toolbarHoverBackground","Toolbar background when hovering over actions using the mouse"))),Z=(u("toolbar.hoverOutline",{dark:null,light:null,hcDark:S,hcLight:S},h.kg("toolbarHoverOutline","Toolbar outline when hovering over actions using the mouse")),u("toolbar.activeBackground",{dark:g(X,.1),light:d(X,.1),hcDark:null,hcLight:null},h.kg("toolbarActiveBackground","Toolbar background when holding the mouse over actions")),u("breadcrumb.foreground",f(C,.8),h.kg("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),u("breadcrumb.background",A,h.kg("breadcrumbsBackground","Background color of breadcrumb items.")),u("breadcrumb.focusForeground",{light:d(C,.2),dark:g(C,.1),hcDark:g(C,.1),hcLight:g(C,.1)},h.kg("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),u("breadcrumb.activeSelectionForeground",{light:d(C,.2),dark:g(C,.1),hcDark:g(C,.1),hcLight:g(C,.1)},h.kg("breadcrumbsSelectedForeground","Color of selected breadcrumb items.")),u("breadcrumbPicker.background",D,h.kg("breadcrumbsSelectedBackground","Background color of breadcrumb item picker.")),s.Q1.fromHex("#40C8AE").transparent(.5)),J=s.Q1.fromHex("#40A6FF").transparent(.5),ee=s.Q1.fromHex("#606060").transparent(.4),te=u("merge.currentHeaderBackground",{dark:Z,light:Z,hcDark:null,hcLight:null},h.kg("mergeCurrentHeaderBackground","Current header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),ne=(u("merge.currentContentBackground",f(te,.4),h.kg("mergeCurrentContentBackground","Current content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),u("merge.incomingHeaderBackground",{dark:J,light:J,hcDark:null,hcLight:null},h.kg("mergeIncomingHeaderBackground","Incoming header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0)),ie=(u("merge.incomingContentBackground",f(ne,.4),h.kg("mergeIncomingContentBackground","Incoming content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),u("merge.commonHeaderBackground",{dark:ee,light:ee,hcDark:null,hcLight:null},h.kg("mergeCommonHeaderBackground","Common ancestor header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0)),re=(u("merge.commonContentBackground",f(ie,.4),h.kg("mergeCommonContentBackground","Common ancestor content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),u("merge.border",{dark:null,light:null,hcDark:"#C3DF6F",hcLight:"#007ACC"},h.kg("mergeBorder","Border color on headers and the splitter in inline merge-conflicts."))),se=(u("editorOverviewRuler.currentContentForeground",{dark:f(te,1),light:f(te,1),hcDark:re,hcLight:re},h.kg("overviewRulerCurrentContentForeground","Current overview ruler foreground for inline merge-conflicts.")),u("editorOverviewRuler.incomingContentForeground",{dark:f(ne,1),light:f(ne,1),hcDark:re,hcLight:re},h.kg("overviewRulerIncomingContentForeground","Incoming overview ruler foreground for inline merge-conflicts.")),u("editorOverviewRuler.commonContentForeground",{dark:f(ie,1),light:f(ie,1),hcDark:re,hcLight:re},h.kg("overviewRulerCommonContentForeground","Common ancestor overview ruler foreground for inline merge-conflicts.")),u("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hcDark:"#AB5A00",hcLight:"#AB5A00"},h.kg("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0),u("editorOverviewRuler.selectionHighlightForeground","#A0A0A0CC",h.kg("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),u("problemsErrorIcon.foreground",O,h.kg("problemsErrorIconForeground","The color used for the problems error icon.")),u("problemsWarningIcon.foreground",F,h.kg("problemsWarningIconForeground","The color used for the problems warning icon.")),u("problemsInfoIcon.foreground",z,h.kg("problemsInfoIconForeground","The color used for the problems info icon.")),u("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hcDark:"#AB5A00",hcLight:"#0F4A85"},h.kg("minimapFindMatchHighlight","Minimap marker color for find matches."),!0)),oe=(u("minimap.selectionOccurrenceHighlight",{light:"#c9c9c9",dark:"#676767",hcDark:"#ffffff",hcLight:"#0F4A85"},h.kg("minimapSelectionOccurrenceHighlight","Minimap marker color for repeating editor selections."),!0),u("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hcDark:"#ffffff",hcLight:"#0F4A85"},h.kg("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),u("minimap.infoHighlight",{dark:z,light:z,hcDark:V,hcLight:V},h.kg("minimapInfo","Minimap marker color for infos."))),ae=u("minimap.warningHighlight",{dark:F,light:F,hcDark:P,hcLight:P},h.kg("overviewRuleWarning","Minimap marker color for warnings.")),le=u("minimap.errorHighlight",{dark:new s.Q1(new s.bU(255,18,18,.7)),light:new s.Q1(new s.bU(255,18,18,.7)),hcDark:new s.Q1(new s.bU(255,50,50,1)),hcLight:"#B5200D"},h.kg("minimapError","Minimap marker color for errors.")),he=(u("minimap.background",null,h.kg("minimapBackground","Minimap background color.")),u("minimap.foregroundOpacity",s.Q1.fromHex("#000f"),h.kg("minimapForegroundOpacity",'Opacity of foreground elements rendered in the minimap. For example, "#000000c0" will render the elements with 75% opacity.')),u("minimapSlider.background",f(N,.5),h.kg("minimapSliderBackground","Minimap slider background color.")),u("minimapSlider.hoverBackground",f(I,.5),h.kg("minimapSliderHoverBackground","Minimap slider background color when hovering.")),u("minimapSlider.activeBackground",f(T,.5),h.kg("minimapSliderActiveBackground","Minimap slider background color when clicked on.")),u("charts.foreground",C,h.kg("chartsForeground","The foreground color used in charts.")),u("charts.lines",f(C,.5),h.kg("chartsLines","The color used for horizontal lines in charts.")),u("charts.red",O,h.kg("chartsRed","The red color used in chart visualizations.")),u("charts.blue",z,h.kg("chartsBlue","The blue color used in chart visualizations.")),u("charts.yellow",F,h.kg("chartsYellow","The yellow color used in chart visualizations.")),u("charts.orange",se,h.kg("chartsOrange","The orange color used in chart visualizations.")),u("charts.green",{dark:"#89D185",light:"#388A34",hcDark:"#89D185",hcLight:"#374e06"},h.kg("chartsGreen","The green color used in chart visualizations.")),u("charts.purple",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},h.kg("chartsPurple","The purple color used in chart visualizations.")),u("input.background",{dark:"#3C3C3C",light:s.Q1.white,hcDark:s.Q1.black,hcLight:s.Q1.white},h.kg("inputBoxBackground","Input box background.")),u("input.foreground",C,h.kg("inputBoxForeground","Input box foreground.")),u("input.border",{dark:null,light:null,hcDark:w,hcLight:w},h.kg("inputBoxBorder","Input box border.")),u("inputOption.activeBorder",{dark:"#007ACC",light:"#007ACC",hcDark:w,hcLight:w},h.kg("inputBoxActiveOptionBorder","Border color of activated options in input fields."))),ce=u("inputOption.hoverBackground",{dark:"#5a5d5e80",light:"#b8b8b850",hcDark:null,hcLight:null},h.kg("inputOption.hoverBackground","Background color of activated options in input fields.")),ue=u("inputOption.activeBackground",{dark:f(y,.4),light:f(y,.2),hcDark:s.Q1.transparent,hcLight:s.Q1.transparent},h.kg("inputOption.activeBackground","Background hover color of options in input fields.")),de=u("inputOption.activeForeground",{dark:s.Q1.white,light:s.Q1.black,hcDark:C,hcLight:C},h.kg("inputOption.activeForeground","Foreground color of activated options in input fields.")),ge=(u("input.placeholderForeground",{light:f(C,.5),dark:f(C,.5),hcDark:f(C,.7),hcLight:f(C,.7)},h.kg("inputPlaceholderForeground","Input box foreground color for placeholder text.")),u("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hcDark:s.Q1.black,hcLight:s.Q1.white},h.kg("inputValidationInfoBackground","Input validation background color for information severity.")),u("inputValidation.infoForeground",{dark:null,light:null,hcDark:null,hcLight:C},h.kg("inputValidationInfoForeground","Input validation foreground color for information severity.")),u("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hcDark:w,hcLight:w},h.kg("inputValidationInfoBorder","Input validation border color for information severity.")),u("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hcDark:s.Q1.black,hcLight:s.Q1.white},h.kg("inputValidationWarningBackground","Input validation background color for warning severity.")),u("inputValidation.warningForeground",{dark:null,light:null,hcDark:null,hcLight:C},h.kg("inputValidationWarningForeground","Input validation foreground color for warning severity.")),u("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hcDark:w,hcLight:w},h.kg("inputValidationWarningBorder","Input validation border color for warning severity.")),u("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hcDark:s.Q1.black,hcLight:s.Q1.white},h.kg("inputValidationErrorBackground","Input validation background color for error severity.")),u("inputValidation.errorForeground",{dark:null,light:null,hcDark:null,hcLight:C},h.kg("inputValidationErrorForeground","Input validation foreground color for error severity.")),u("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hcDark:w,hcLight:w},h.kg("inputValidationErrorBorder","Input validation border color for error severity.")),u("dropdown.background",{dark:"#3C3C3C",light:s.Q1.white,hcDark:s.Q1.black,hcLight:s.Q1.white},h.kg("dropdownBackground","Dropdown background."))),fe=(u("dropdown.listBackground",{dark:null,light:null,hcDark:s.Q1.black,hcLight:s.Q1.white},h.kg("dropdownListBackground","Dropdown list background.")),u("dropdown.foreground",{dark:"#F0F0F0",light:C,hcDark:s.Q1.white,hcLight:C},h.kg("dropdownForeground","Dropdown foreground."))),me=u("dropdown.border",{dark:ge,light:"#CECECE",hcDark:w,hcLight:w},h.kg("dropdownBorder","Dropdown border.")),pe=u("button.foreground",s.Q1.white,h.kg("buttonForeground","Button foreground color.")),_e=(u("button.separator",f(pe,.4),h.kg("buttonSeparator","Button separator color.")),u("button.background",{dark:"#0E639C",light:"#007ACC",hcDark:null,hcLight:"#0F4A85"},h.kg("buttonBackground","Button background color."))),be=(u("button.hoverBackground",{dark:g(_e,.2),light:d(_e,.2),hcDark:_e,hcLight:_e},h.kg("buttonHoverBackground","Button background color when hovering.")),u("button.border",w,h.kg("buttonBorder","Button border color.")),u("button.secondaryForeground",{dark:s.Q1.white,light:s.Q1.white,hcDark:s.Q1.white,hcLight:C},h.kg("buttonSecondaryForeground","Secondary button foreground color.")),u("button.secondaryBackground",{dark:"#3A3D41",light:"#5F6A79",hcDark:null,hcLight:s.Q1.white},h.kg("buttonSecondaryBackground","Secondary button background color."))),ke=(u("button.secondaryHoverBackground",{dark:g(be,.2),light:d(be,.2),hcDark:null,hcLight:null},h.kg("buttonSecondaryHoverBackground","Secondary button background color when hovering.")),u("radio.activeForeground",de,h.kg("radioActiveForeground","Foreground color of active radio option."))),ve=(u("radio.activeBackground",ue,h.kg("radioBackground","Background color of active radio option.")),u("radio.activeBorder",he,h.kg("radioActiveBorder","Border color of the active radio option.")),u("radio.inactiveForeground",null,h.kg("radioInactiveForeground","Foreground color of inactive radio option.")),u("radio.inactiveBackground",null,h.kg("radioInactiveBackground","Background color of inactive radio option.")),u("radio.inactiveBorder",{light:f(ke,.2),dark:f(ke,.2),hcDark:f(ke,.4),hcLight:f(ke,.2)},h.kg("radioInactiveBorder","Border color of the inactive radio option.")),u("radio.inactiveHoverBackground",ce,h.kg("radioHoverBackground","Background color of inactive active radio option when hovering.")),u("checkbox.background",ge,h.kg("checkbox.background","Background color of checkbox widget.")),u("checkbox.selectBackground",D,h.kg("checkbox.select.background","Background color of checkbox widget when the element it's in is selected.")),u("checkbox.foreground",fe,h.kg("checkbox.foreground","Foreground color of checkbox widget.")),u("checkbox.border",me,h.kg("checkbox.border","Border color of checkbox widget.")),u("checkbox.selectBorder",L,h.kg("checkbox.select.border","Border color of checkbox widget when the element it's in is selected.")),u("keybindingLabel.background",{dark:new s.Q1(new s.bU(128,128,128,.17)),light:new s.Q1(new s.bU(221,221,221,.4)),hcDark:s.Q1.transparent,hcLight:s.Q1.transparent},h.kg("keybindingLabelBackground","Keybinding label background color. The keybinding label is used to represent a keyboard shortcut.")),u("keybindingLabel.foreground",{dark:s.Q1.fromHex("#CCCCCC"),light:s.Q1.fromHex("#555555"),hcDark:s.Q1.white,hcLight:C},h.kg("keybindingLabelForeground","Keybinding label foreground color. The keybinding label is used to represent a keyboard shortcut.")),u("keybindingLabel.border",{dark:new s.Q1(new s.bU(51,51,51,.6)),light:new s.Q1(new s.bU(204,204,204,.4)),hcDark:new s.Q1(new s.bU(111,195,223)),hcLight:w},h.kg("keybindingLabelBorder","Keybinding label border color. The keybinding label is used to represent a keyboard shortcut.")),u("keybindingLabel.bottomBorder",{dark:new s.Q1(new s.bU(68,68,68,.6)),light:new s.Q1(new s.bU(187,187,187,.4)),hcDark:new s.Q1(new s.bU(111,195,223)),hcLight:C},h.kg("keybindingLabelBottomBorder","Keybinding label border bottom color. The keybinding label is used to represent a keyboard shortcut.")),u("list.focusBackground",null,h.kg("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),u("list.focusForeground",null,h.kg("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),u("list.focusOutline",{dark:y,light:y,hcDark:S,hcLight:S},h.kg("listFocusOutline","List/Tree outline color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),u("list.focusAndSelectionOutline",null,h.kg("listFocusAndSelectionOutline","List/Tree outline color for the focused item when the list/tree is active and selected. An active list/tree has keyboard focus, an inactive does not.")),u("list.activeSelectionBackground",{dark:"#04395E",light:"#0060C0",hcDark:null,hcLight:s.Q1.fromHex("#0F4A85").transparent(.1)},h.kg("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not."))),Ce=u("list.activeSelectionForeground",{dark:s.Q1.white,light:s.Q1.white,hcDark:null,hcLight:null},h.kg("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Le=u("list.activeSelectionIconForeground",null,h.kg("listActiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),ye=(u("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hcDark:null,hcLight:s.Q1.fromHex("#0F4A85").transparent(.1)},h.kg("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),u("list.inactiveSelectionForeground",null,h.kg("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),u("list.inactiveSelectionIconForeground",null,h.kg("listInactiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),u("list.inactiveFocusBackground",null,h.kg("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),u("list.inactiveFocusOutline",null,h.kg("listInactiveFocusOutline","List/Tree outline color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),u("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:s.Q1.white.transparent(.1),hcLight:s.Q1.fromHex("#0F4A85").transparent(.1)},h.kg("listHoverBackground","List/Tree background when hovering over items using the mouse.")),u("list.hoverForeground",null,h.kg("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),u("list.dropBackground",{dark:"#062F4A",light:"#D6EBFF",hcDark:null,hcLight:null},h.kg("listDropBackground","List/Tree drag and drop background when moving items over other items when using the mouse.")),u("list.dropBetweenBackground",{dark:L,light:L,hcDark:null,hcLight:null},h.kg("listDropBetweenBackground","List/Tree drag and drop border color when moving items between items when using the mouse.")),u("list.highlightForeground",{dark:"#2AAAFF",light:"#0066BF",hcDark:y,hcLight:y},h.kg("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")));u("list.focusHighlightForeground",{dark:ye,light:(we=ve,Se=ye,xe="#BBE7FF",{op:6,if:we,then:Se,else:xe}),hcDark:ye,hcLight:ye},h.kg("listFocusHighlightForeground","List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree."));var we,Se,xe;u("list.invalidItemForeground",{dark:"#B89500",light:"#B89500",hcDark:"#B89500",hcLight:"#B5200D"},h.kg("invalidItemForeground","List/Tree foreground color for invalid items, for example an unresolved root in explorer.")),u("list.errorForeground",{dark:"#F88070",light:"#B01011",hcDark:null,hcLight:null},h.kg("listErrorForeground","Foreground color of list items containing errors.")),u("list.warningForeground",{dark:"#CCA700",light:"#855F00",hcDark:null,hcLight:null},h.kg("listWarningForeground","Foreground color of list items containing warnings.")),u("listFilterWidget.background",{light:d(D,0),dark:g(D,0),hcDark:D,hcLight:D},h.kg("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),u("listFilterWidget.outline",{dark:s.Q1.transparent,light:s.Q1.transparent,hcDark:"#f38518",hcLight:"#007ACC"},h.kg("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),u("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hcDark:w,hcLight:w},h.kg("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),u("listFilterWidget.shadow",Y,h.kg("listFilterWidgetShadow","Shadow color of the type filter widget in lists and trees.")),u("list.filterMatchBackground",{dark:q,light:q,hcDark:null,hcLight:null},h.kg("listFilterMatchHighlight","Background color of the filtered match.")),u("list.filterMatchBorder",{dark:H,light:H,hcDark:w,hcLight:S},h.kg("listFilterMatchHighlightBorder","Border color of the filtered match.")),u("list.deemphasizedForeground",{dark:"#8C8C8C",light:"#8E8E90",hcDark:"#A7A8A9",hcLight:"#666666"},h.kg("listDeemphasizedForeground","List/Tree foreground color for items that are deemphasized."));const Ee=u("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hcDark:"#a9a9a9",hcLight:"#a5a5a5"},h.kg("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),Ne=(u("tree.inactiveIndentGuidesStroke",f(Ee,.4),h.kg("treeInactiveIndentGuidesStroke","Tree stroke color for the indentation guides that are not active.")),u("tree.tableColumnsBorder",{dark:"#CCCCCC20",light:"#61616120",hcDark:null,hcLight:null},h.kg("tableColumnsBorder","Table border color between columns.")),u("tree.tableOddRowsBackground",{dark:f(C,.04),light:f(C,.04),hcDark:null,hcLight:null},h.kg("tableOddRowsBackgroundColor","Background color for odd table rows.")),u("editorActionList.background",D,h.kg("editorActionListBackground","Action List background color.")),u("editorActionList.foreground",R,h.kg("editorActionListForeground","Action List foreground color.")),u("editorActionList.focusForeground",Ce,h.kg("editorActionListFocusForeground","Action List foreground color for the focused item.")),u("editorActionList.focusBackground",ve,h.kg("editorActionListFocusBackground","Action List background color for the focused item.")),u("menu.border",{dark:null,light:null,hcDark:w,hcLight:w},h.kg("menuBorder","Border color of menus.")),u("menu.foreground",fe,h.kg("menuForeground","Foreground color of menu items.")),u("menu.background",ge,h.kg("menuBackground","Background color of menu items.")),u("menu.selectionForeground",Ce,h.kg("menuSelectionForeground","Foreground color of the selected menu item in menus.")),u("menu.selectionBackground",ve,h.kg("menuSelectionBackground","Background color of the selected menu item in menus.")),u("menu.selectionBorder",{dark:null,light:null,hcDark:S,hcLight:S},h.kg("menuSelectionBorder","Border color of the selected menu item in menus.")),u("menu.separatorBackground",{dark:"#606060",light:"#D4D4D4",hcDark:w,hcLight:w},h.kg("menuSeparatorBackground","Color of a separator menu item in menus.")),u("quickInput.background",D,h.kg("pickerBackground","Quick picker background color. The quick picker widget is the container for pickers like the command palette.")),u("quickInput.foreground",R,h.kg("pickerForeground","Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")),u("quickInputTitle.background",{dark:new s.Q1(new s.bU(255,255,255,.105)),light:new s.Q1(new s.bU(0,0,0,.06)),hcDark:"#000000",hcLight:s.Q1.white},h.kg("pickerTitleBackground","Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")),u("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hcDark:s.Q1.white,hcLight:"#0F4A85"},h.kg("pickerGroupForeground","Quick picker color for grouping labels.")),u("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hcDark:s.Q1.white,hcLight:"#0F4A85"},h.kg("pickerGroupBorder","Quick picker color for grouping borders.")),u("quickInput.list.focusBackground",null,"",void 0,h.kg("quickInput.list.focusBackground deprecation","Please use quickInputList.focusBackground instead")));u("quickInputList.focusForeground",Ce,h.kg("quickInput.listFocusForeground","Quick picker foreground color for the focused item.")),u("quickInputList.focusIconForeground",Le,h.kg("quickInput.listFocusIconForeground","Quick picker icon foreground color for the focused item.")),u("quickInputList.focusBackground",{dark:m(Ne,ve),light:m(Ne,ve),hcDark:null,hcLight:null},h.kg("quickInput.listFocusBackground","Quick picker background color for the focused item.")),u("search.resultsInfoForeground",{light:C,dark:f(C,.65),hcDark:C,hcLight:C},h.kg("search.resultsInfoForeground","Color of the text in the search viewlet's completion message.")),u("searchEditor.findMatchBackground",{light:f(q,.66),dark:f(q,.66),hcDark:q,hcLight:q},h.kg("searchEditor.queryMatch","Color of the Search Editor query matches.")),u("searchEditor.findMatchBorder",{light:f(H,.66),dark:f(H,.66),hcDark:H,hcLight:H},h.kg("searchEditor.editorFindMatchBorder","Border color of the Search Editor query matches."))},5890:(e,t,n)=>{var i={"./simpleWorker":1929,"./simpleWorker.js":1929,"monaco-editor/esm/vs/base/common/worker/simpleWorker":1929,"monaco-editor/esm/vs/base/common/worker/simpleWorker.js":1929};function r(e){return Promise.resolve().then((()=>{if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n(i[e])}))}r.keys=()=>Object.keys(i),r.id=5890,e.exports=r},5982:(e,t,n)=>{"use strict";n.d(t,{x:()=>i});class i{static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return 0!==(1024&e)}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(16744448&e)>>>15}static getBackground(e){return(4278190080&e)>>>24}static getClassNameFromMetadata(e){let t="mtk"+this.getForeground(e);const n=this.getFontStyle(e);return 1&n&&(t+=" mtki"),2&n&&(t+=" mtkb"),4&n&&(t+=" mtku"),8&n&&(t+=" mtks"),t}static getInlineStyleFromMetadata(e,t){const n=this.getForeground(e),i=this.getFontStyle(e);let r=`color: ${t[n]};`;1&i&&(r+="font-style: italic;"),2&i&&(r+="font-weight: bold;");let s="";return 4&i&&(s+=" underline"),8&i&&(s+=" line-through"),s&&(r+=`text-decoration:${s};`),r}static getPresentationFromMetadata(e){const t=this.getForeground(e),n=this.getFontStyle(e);return{foreground:t,italic:Boolean(1&n),bold:Boolean(2&n),underline:Boolean(4&n),strikethrough:Boolean(8&n)}}}},6041:(e,t,n)=>{"use strict";function i(e,t){const n=function(e,t,n=e.length-1){for(let i=n;i>=0;i--){if(t(e[i]))return i}return-1}(e,t);if(-1!==n)return e[n]}function r(e,t){const n=s(e,t);return-1===n?void 0:e[n]}function s(e,t,n=0,i=e.length){let r=n,s=i;for(;r<s;){const n=Math.floor((r+s)/2);t(e[n])?r=n+1:s=n}return r-1}function o(e,t){const n=a(e,t);return n===e.length?void 0:e[n]}function a(e,t,n=0,i=e.length){let r=n,s=i;for(;r<s;){const n=Math.floor((r+s)/2);t(e[n])?s=n:r=n+1}return r}n.d(t,{Uk:()=>i,XP:()=>o,hw:()=>a,iM:()=>s,lx:()=>r,vJ:()=>l});class l{static{this.assertInvariants=!1}constructor(e){this._array=e,this._findLastMonotonousLastIdx=0}findLastMonotonous(e){if(l.assertInvariants){if(this._prevFindLastPredicate)for(const t of this._array)if(this._prevFindLastPredicate(t)&&!e(t))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.");this._prevFindLastPredicate=e}const t=s(this._array,e,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=t+1,-1===t?void 0:this._array[t]}}},6223:(e,t,n)=>{"use strict";n.d(t,{A5:()=>i,Dg:()=>l,F4:()=>d,L5:()=>u,Wo:()=>c,X2:()=>a,ZS:()=>r,nk:()=>h,vd:()=>g});var i,r,s,o=n(146);!function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(i||(i={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(r||(r={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(s||(s={}));class a{get originalIndentSize(){return this._indentSizeIsTabSize?"tabSize":this.indentSize}constructor(e){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,0|e.tabSize),"tabSize"===e.indentSize?(this.indentSize=this.tabSize,this._indentSizeIsTabSize=!0):(this.indentSize=Math.max(1,0|e.indentSize),this._indentSizeIsTabSize=!1),this.insertSpaces=Boolean(e.insertSpaces),this.defaultEOL=0|e.defaultEOL,this.trimAutoWhitespace=Boolean(e.trimAutoWhitespace),this.bracketPairColorizationOptions=e.bracketPairColorizationOptions}equals(e){return this.tabSize===e.tabSize&&this._indentSizeIsTabSize===e._indentSizeIsTabSize&&this.indentSize===e.indentSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace&&(0,o.aI)(this.bracketPairColorizationOptions,e.bracketPairColorizationOptions)}createChangeEvent(e){return{tabSize:this.tabSize!==e.tabSize,indentSize:this.indentSize!==e.indentSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}}}class l{constructor(e,t){this._findMatchBrand=void 0,this.range=e,this.matches=t}}function h(e){return e&&"function"===typeof e.read}class c{constructor(e,t,n,i,r,s){this.identifier=e,this.range=t,this.text=n,this.forceMoveMarkers=i,this.isAutoWhitespaceEdit=r,this._isTracked=s}}class u{constructor(e,t,n){this.regex=e,this.wordSeparators=t,this.simpleSearch=n}}class d{constructor(e,t,n){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=n}}function g(e){return!e.isTooLargeForSyncing()&&!e.isForSimpleWidget}},6359:(e,t,n)=>{"use strict";n.d(t,{O:()=>s});var i=n(6782),r=n(631);const s=new class{constructor(){this.data=new Map}add(e,t){i.ok(r.Kg(e)),i.ok(r.Gv(t)),i.ok(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)}as(e){return this.data.get(e)||null}}},6456:(e,t,n)=>{"use strict";n.d(t,{ny:()=>i,v$:()=>h,zl:()=>d});var i,r=n(4383),s=n(8067),o=n(1508),a=n(9400),l=n(8821);function h(e,t){return a.r.isUri(e)?(0,o.Q_)(e.scheme,t):(0,o.ns)(e,t+":")}!function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command",e.vscodeRemote="vscode-remote",e.vscodeRemoteResource="vscode-remote-resource",e.vscodeManagedRemoteResource="vscode-managed-remote-resource",e.vscodeUserData="vscode-userdata",e.vscodeCustomEditor="vscode-custom-editor",e.vscodeNotebookCell="vscode-notebook-cell",e.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",e.vscodeNotebookCellMetadataDiff="vscode-notebook-cell-metadata-diff",e.vscodeNotebookCellOutput="vscode-notebook-cell-output",e.vscodeNotebookCellOutputDiff="vscode-notebook-cell-output-diff",e.vscodeNotebookMetadata="vscode-notebook-metadata",e.vscodeInteractiveInput="vscode-interactive-input",e.vscodeSettings="vscode-settings",e.vscodeWorkspaceTrust="vscode-workspace-trust",e.vscodeTerminal="vscode-terminal",e.vscodeChatCodeBlock="vscode-chat-code-block",e.vscodeChatCodeCompareBlock="vscode-chat-code-compare-block",e.vscodeChatSesssion="vscode-chat-editor",e.webviewPanel="webview-panel",e.vscodeWebview="vscode-webview",e.extension="extension",e.vscodeFileResource="vscode-file",e.tmp="tmp",e.vsls="vsls",e.vscodeSourceControl="vscode-scm",e.commentsInput="comment",e.codeSetting="code-setting",e.outputChannel="output"}(i||(i={}));const c=new class{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(e){this._preferredWebSchema=e}get _remoteResourcesPath(){return l.SA.join(this._serverRootPath,i.vscodeRemoteResource)}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(c){return r.dz(c),e}const t=e.authority;let n=this._hosts[t];n&&-1!==n.indexOf(":")&&-1===n.indexOf("[")&&(n=`[${n}]`);const o=this._ports[t],l=this._connectionTokens[t];let h=`path=${encodeURIComponent(e.path)}`;return"string"===typeof l&&(h+=`&tkn=${encodeURIComponent(l)}`),a.r.from({scheme:s.HZ?this._preferredWebSchema:i.vscodeRemoteResource,authority:`${n}:${o}`,path:this._remoteResourcesPath,query:h})}};class u{static{this.FALLBACK_AUTHORITY="vscode-app"}asBrowserUri(e){const t=this.toUri(e);return this.uriToBrowserUri(t)}uriToBrowserUri(e){return e.scheme===i.vscodeRemote?c.rewrite(e):e.scheme!==i.file||!s.ib&&s.lg!==`${i.vscodeFileResource}://${u.FALLBACK_AUTHORITY}`?e:e.with({scheme:i.vscodeFileResource,authority:e.authority||u.FALLBACK_AUTHORITY,query:null,fragment:null})}toUri(e,t){if(a.r.isUri(e))return e;if(globalThis._VSCODE_FILE_ROOT){const t=globalThis._VSCODE_FILE_ROOT;if(/^\w[\w\d+.-]*:\/\//.test(t))return a.r.joinPath(a.r.parse(t,!0),e);const n=l.fj(t,e);return a.r.file(n)}return a.r.parse(t.toUrl(e))}}const d=new u;var g;!function(e){const t=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);e.CoopAndCoep=Object.freeze(t.get("3"));const n="vscode-coi";e.getHeadersFromQuery=function(e){let i;"string"===typeof e?i=new URL(e).searchParams:e instanceof URL?i=e.searchParams:a.r.isUri(e)&&(i=new URL(e.toString(!0)).searchParams);const r=i?.get(n);if(r)return t.get(r)},e.addSearchParam=function(e,t,i){if(!globalThis.crossOriginIsolated)return;const r=t&&i?"3":i?"2":"1";e instanceof URLSearchParams?e.set(n,r):e[n]=r}}(g||(g={}))},6486:(e,t,n)=>{"use strict";n.d(t,{Io:()=>o,Ld:()=>s,Th:()=>l});var i=n(2522),r=n(8925);const s=function(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const n of"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?")e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}();function o(e){let t=s;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}const a=new r.w;function l(e,t,n,r,s){if(t=o(t),s||(s=i.f.first(a)),n.length>s.maxLen){let i=e-s.maxLen/2;return i<0?i=0:r+=i,l(e,t,n=n.substring(i,e+s.maxLen/2),r,s)}const c=Date.now(),u=e-1-r;let d=-1,g=null;for(let i=1;!(Date.now()-c>=s.timeBudget);i++){const e=u-s.windowSize*i;t.lastIndex=Math.max(0,e);const r=h(t,n,u,d);if(!r&&g)break;if(g=r,e<=0)break;d=e}if(g){const e={word:g[0],startColumn:r+1+g.index,endColumn:r+1+g.index+g[0].length};return t.lastIndex=0,e}return null}function h(e,t,n,i){let r;for(;r=e.exec(t);){const t=r.index||0;if(t<=n&&e.lastIndex>=n)return r;if(i>0&&t>i)return null}return null}a.unshift({maxLen:1e3,windowSize:15,timeBudget:150})},6571:(e,t,n)=>{"use strict";n.d(t,{M:()=>a,S:()=>l});var i=n(4383),r=n(4444),s=n(6677),o=n(6041);class a{static fromRangeInclusive(e){return new a(e.startLineNumber,e.endLineNumber+1)}static joinMany(e){if(0===e.length)return[];let t=new l(e[0].slice());for(let n=1;n<e.length;n++)t=t.getUnion(new l(e[n].slice()));return t.ranges}static join(e){if(0===e.length)throw new i.D7("lineRanges cannot be empty");let t=e[0].startLineNumber,n=e[0].endLineNumberExclusive;for(let i=1;i<e.length;i++)t=Math.min(t,e[i].startLineNumber),n=Math.max(n,e[i].endLineNumberExclusive);return new a(t,n)}static ofLength(e,t){return new a(e,e+t)}static deserialize(e){return new a(e[0],e[1])}constructor(e,t){if(e>t)throw new i.D7(`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(e){return new a(this.startLineNumber+e,this.endLineNumberExclusive+e)}deltaLength(e){return new a(this.startLineNumber,this.endLineNumberExclusive+e)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(e){return new a(Math.min(this.startLineNumber,e.startLineNumber),Math.max(this.endLineNumberExclusive,e.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(e){const t=Math.max(this.startLineNumber,e.startLineNumber),n=Math.min(this.endLineNumberExclusive,e.endLineNumberExclusive);if(t<=n)return new a(t,n)}intersectsStrict(e){return this.startLineNumber<e.endLineNumberExclusive&&e.startLineNumber<this.endLineNumberExclusive}overlapOrTouch(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 s.Q(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new s.Q(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(e){const 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]}includes(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}toOffsetRange(){return new r.L(this.startLineNumber-1,this.endLineNumberExclusive-1)}}class l{constructor(e=[]){this._normalizedRanges=e}get ranges(){return this._normalizedRanges}addRange(e){if(0===e.length)return;const t=(0,o.hw)(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),n=(0,o.iM)(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===n)this._normalizedRanges.splice(t,0,e);else if(t===n-1){const n=this._normalizedRanges[t];this._normalizedRanges[t]=n.join(e)}else{const i=this._normalizedRanges[t].join(this._normalizedRanges[n-1]).join(e);this._normalizedRanges.splice(t,n-t,i)}}contains(e){const t=(0,o.lx)(this._normalizedRanges,(t=>t.startLineNumber<=e));return!!t&&t.endLineNumberExclusive>e}intersects(e){const t=(0,o.lx)(this._normalizedRanges,(t=>t.startLineNumber<e.endLineNumberExclusive));return!!t&&t.endLineNumberExclusive>e.startLineNumber}getUnion(e){if(0===this._normalizedRanges.length)return e;if(0===e._normalizedRanges.length)return this;const t=[];let n=0,i=0,r=null;for(;n<this._normalizedRanges.length||i<e._normalizedRanges.length;){let s=null;if(n<this._normalizedRanges.length&&i<e._normalizedRanges.length){const t=this._normalizedRanges[n],r=e._normalizedRanges[i];t.startLineNumber<r.startLineNumber?(s=t,n++):(s=r,i++)}else n<this._normalizedRanges.length?(s=this._normalizedRanges[n],n++):(s=e._normalizedRanges[i],i++);null===r?r=s:r.endLineNumberExclusive>=s.startLineNumber?r=new a(r.startLineNumber,Math.max(r.endLineNumberExclusive,s.endLineNumberExclusive)):(t.push(r),r=s)}return null!==r&&t.push(r),new l(t)}subtractFrom(e){const t=(0,o.hw)(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),n=(0,o.iM)(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===n)return new l([e]);const i=[];let r=e.startLineNumber;for(let s=t;s<n;s++){const e=this._normalizedRanges[s];e.startLineNumber>r&&i.push(new a(r,e.startLineNumber)),r=e.endLineNumberExclusive}return r<e.endLineNumberExclusive&&i.push(new a(r,e.endLineNumberExclusive)),new l(i)}toString(){return this._normalizedRanges.map((e=>e.toString())).join(", ")}getIntersection(e){const t=[];let n=0,i=0;for(;n<this._normalizedRanges.length&&i<e._normalizedRanges.length;){const r=this._normalizedRanges[n],s=e._normalizedRanges[i],o=r.intersect(s);o&&!o.isEmpty&&t.push(o),r.endLineNumberExclusive<s.endLineNumberExclusive?n++:i++}return new l(t)}getWithDelta(e){return new l(this._normalizedRanges.map((t=>t.delta(e))))}}},6677:(e,t,n)=>{"use strict";n.d(t,{Q:()=>r});var i=n(3069);class r{constructor(e,t,n,i){e>n||e===n&&t>i?(this.startLineNumber=n,this.startColumn=i,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=i)}isEmpty(){return r.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return r.containsPosition(this,e)}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(e){return r.containsRange(this,e)}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(e){return r.strictContainsRange(this,e)}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(e){return r.plusRange(this,e)}static plusRange(e,t){let n,i,s,o;return t.startLineNumber<e.startLineNumber?(n=t.startLineNumber,i=t.startColumn):t.startLineNumber===e.startLineNumber?(n=t.startLineNumber,i=Math.min(t.startColumn,e.startColumn)):(n=e.startLineNumber,i=e.startColumn),t.endLineNumber>e.endLineNumber?(s=t.endLineNumber,o=t.endColumn):t.endLineNumber===e.endLineNumber?(s=t.endLineNumber,o=Math.max(t.endColumn,e.endColumn)):(s=e.endLineNumber,o=e.endColumn),new r(n,i,s,o)}intersectRanges(e){return r.intersectRanges(this,e)}static intersectRanges(e,t){let n=e.startLineNumber,i=e.startColumn,s=e.endLineNumber,o=e.endColumn;const a=t.startLineNumber,l=t.startColumn,h=t.endLineNumber,c=t.endColumn;return n<a?(n=a,i=l):n===a&&(i=Math.max(i,l)),s>h?(s=h,o=c):s===h&&(o=Math.min(o,c)),n>s||n===s&&i>o?null:new r(n,i,s,o)}equalsRange(e){return r.equalsRange(this,e)}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 r.getEndPosition(this)}static getEndPosition(e){return new i.y(e.endLineNumber,e.endColumn)}getStartPosition(){return r.getStartPosition(this)}static getStartPosition(e){return new i.y(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new r(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new r(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return r.collapseToStart(this)}static collapseToStart(e){return new r(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return r.collapseToEnd(this)}static collapseToEnd(e){return new r(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new r(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,t=e){return new r(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new r(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"===typeof e.startLineNumber&&"number"===typeof e.startColumn&&"number"===typeof e.endLineNumber&&"number"===typeof e.endColumn}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 compareRangesUsingStarts(e,t){if(e&&t){const n=0|e.startLineNumber,i=0|t.startLineNumber;if(n===i){const n=0|e.startColumn,i=0|t.startColumn;if(n===i){const n=0|e.endLineNumber,i=0|t.endLineNumber;if(n===i){return(0|e.endColumn)-(0|t.endColumn)}return n-i}return n-i}return n-i}return(e?1:0)-(t?1:0)}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}}},6691:(e,t,n)=>{"use strict";n.r(t),n.d(t,{findSectionHeaders:()=>s});const i=new RegExp("\\bMARK:\\s*(.*)$","d"),r=/^-+|-+$/g;function s(e,t){let n=[];if(t.findRegionSectionHeaders&&t.foldingRules?.markers){const i=function(e,t){const n=[],i=e.getLineCount();for(let r=1;r<=i;r++){const i=e.getLineContent(r),s=i.match(t.foldingRules.markers.start);if(s){const e={startLineNumber:r,startColumn:s[0].length+1,endLineNumber:r,endColumn:i.length+1};if(e.endColumn>e.startColumn){const t={range:e,...a(i.substring(s[0].length)),shouldBeInComments:!1};(t.text||t.hasSeparatorLine)&&n.push(t)}}}return n}(e,t);n=n.concat(i)}if(t.findMarkSectionHeaders){const t=function(e){const t=[],n=e.getLineCount();for(let i=1;i<=n;i++){o(e.getLineContent(i),i,t)}return t}(e);n=n.concat(t)}return n}function o(e,t,n){i.lastIndex=0;const r=i.exec(e);if(r){const e={startLineNumber:t,startColumn:r.indices[1][0]+1,endLineNumber:t,endColumn:r.indices[1][1]+1};if(e.endColumn>e.startColumn){const t={range:e,...a(r[1]),shouldBeInComments:!0};(t.text||t.hasSeparatorLine)&&n.push(t)}}}function a(e){const t=(e=e.trim()).startsWith("-");return{text:e=e.replace(r,""),hasSeparatorLine:t}}},6723:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DraggedTreeItemsIdentifier:()=>r,TreeViewsDnDService:()=>i});class i{constructor(){this._dragOperations=new Map}removeDragOperationTransfer(e){if(e&&this._dragOperations.has(e)){const t=this._dragOperations.get(e);return this._dragOperations.delete(e),t}}}class r{constructor(e){this.identifier=e}}},6782:(e,t,n)=>{"use strict";n.d(t,{Ft:()=>o,Xo:()=>a,ok:()=>r,xb:()=>s});var i=n(4383);function r(e,t){if(!e)throw new Error(t?`Assertion failed (${t})`:"Assertion Failed")}function s(e,t="Unreachable"){throw new Error(t)}function o(e){e()||(e(),(0,i.dz)(new i.D7("Assertion Failed")))}function a(e,t){let n=0;for(;n<e.length-1;){if(!t(e[n],e[n+1]))return!1;n++}return!0}},6942:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ILanguageFeaturesService:()=>i});const i=(0,n(3591).u1)("ILanguageFeaturesService")},6958:(e,t,n)=>{"use strict";n.d(t,{YW:()=>T,qg:()=>A});var i=n(1940),r=n(9326),s=n(4320),o=n(8821),a=n(8067),l=n(1508);const h="**",c="/",u="[/\\\\]",d="[^/\\\\]",g=/\//g;function f(e,t){switch(e){case 0:return"";case 1:return`${d}*?`;default:return`(?:${u}|${d}+${u}${t?`|${u}${d}+`:""})*?`}}function m(e,t){if(!e)return[];const n=[];let i=!1,r=!1,s="";for(const o of e){switch(o){case t:if(!i&&!r){n.push(s),s="";continue}break;case"{":i=!0;break;case"}":i=!1;break;case"[":r=!0;break;case"]":r=!1}s+=o}return s&&n.push(s),n}function p(e){if(!e)return"";let t="";const n=m(e,c);if(n.every((e=>e===h)))t=".*";else{let e=!1;n.forEach(((i,r)=>{if(i===h){if(e)return;t+=f(2,r===n.length-1)}else{let e=!1,s="",o=!1,a="";for(const n of i)if("}"!==n&&e)s+=n;else if(!o||"]"===n&&a)switch(n){case"{":e=!0;continue;case"[":o=!0;continue;case"}":{const n=`(?:${m(s,",").map((e=>p(e))).join("|")})`;t+=n,e=!1,s="";break}case"]":t+="["+a+"]",o=!1,a="";break;case"?":t+=d;continue;case"*":t+=f(1);continue;default:t+=(0,l.bm)(n)}else{let e;e="-"===n?n:"^"!==n&&"!"!==n||a?n===c?"":(0,l.bm)(n):"^",a+=e}r<n.length-1&&(n[r+1]!==h||r+2<n.length)&&(t+=u)}e=i===h}))}return t}const _=/^\*\*\/\*\.[\w\.-]+$/,b=/^\*\*\/([\w\.-]+)\/?$/,k=/^{\*\*\/\*?[\w\.-]+\/?(,\*\*\/\*?[\w\.-]+\/?)*}$/,v=/^{\*\*\/\*?[\w\.-]+(\/(\*\*)?)?(,\*\*\/\*?[\w\.-]+(\/(\*\*)?)?)*}$/,C=/^\*\*((\/[\w\.-]+)+)\/?$/,L=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,y=new s.qK(1e4),w=function(){return!1},S=function(){return null};function x(e,t){if(!e)return S;let n;n="string"!==typeof e?e.pattern:e,n=n.trim();const i=`${n}_${!!t.trimForExclusions}`;let r,s=y.get(i);return s||(s=_.test(n)?function(e,t){return function(n,i){return"string"===typeof n&&n.endsWith(e)?t:null}}(n.substr(4),n):(r=b.exec(N(n,t)))?function(e,t){const n=`/${e}`,i=`\\${e}`,r=function(r,s){return"string"!==typeof r?null:s?s===e?t:null:r===e||r.endsWith(n)||r.endsWith(i)?t:null},s=[e];return r.basenames=s,r.patterns=[t],r.allBasenames=s,r}(r[1],n):(t.trimForExclusions?v:k).test(n)?function(e,t){const n=D(e.slice(1,-1).split(",").map((e=>x(e,t))).filter((e=>e!==S)),e),i=n.length;if(!i)return S;if(1===i)return n[0];const r=function(t,i){for(let r=0,s=n.length;r<s;r++)if(n[r](t,i))return e;return null},s=n.find((e=>!!e.allBasenames));s&&(r.allBasenames=s.allBasenames);const o=n.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);o.length&&(r.allPaths=o);return r}(n,t):(r=C.exec(N(n,t)))?I(r[1].substr(1),n,!0):(r=L.exec(N(n,t)))?I(r[1],n,!1):function(e){try{const t=new RegExp(`^${p(e)}$`);return function(n){return t.lastIndex=0,"string"===typeof n&&t.test(n)?e:null}}catch(t){return S}}(n),y.set(i,s)),E(s,e)}function E(e,t){if("string"===typeof t)return e;const n=function(n,i){return(0,r._1)(n,t.base,!a.j9)?e((0,l.NB)(n.substr(t.base.length),o.Vn),i):null};return n.allBasenames=e.allBasenames,n.allPaths=e.allPaths,n.basenames=e.basenames,n.patterns=e.patterns,n}function N(e,t){return t.trimForExclusions&&e.endsWith("/**")?e.substr(0,e.length-2):e}function I(e,t,n){const i=o.Vn===o.SA.sep,r=i?e:e.replace(g,o.Vn),s=o.Vn+r,a=o.SA.sep+e;let l;return l=n?function(n,o){return"string"!==typeof n||n!==r&&!n.endsWith(s)&&(i||n!==e&&!n.endsWith(a))?null:t}:function(n,s){return"string"!==typeof n||n!==r&&(i||n!==e)?null:t},l.allPaths=[(n?"*/":"./")+e],l}function T(e,t,n){return!(!e||"string"!==typeof t)&&A(e)(t,void 0,n)}function A(e,t={}){if(!e)return w;if("string"===typeof e||function(e){const t=e;if(!t)return!1;return"string"===typeof t.base&&"string"===typeof t.pattern}(e)){const n=x(e,t);if(n===S)return w;const i=function(e,t){return!!n(e,t)};return n.allBasenames&&(i.allBasenames=n.allBasenames),n.allPaths&&(i.allPaths=n.allPaths),i}return function(e,t){const n=D(Object.getOwnPropertyNames(e).map((n=>function(e,t,n){if(!1===t)return S;const r=x(e,n);if(r===S)return S;if("boolean"===typeof t)return r;if(t){const n=t.when;if("string"===typeof n){const t=(t,s,o,a)=>{if(!a||!r(t,s))return null;const l=a(n.replace("$(basename)",(()=>o)));return(0,i.Qg)(l)?l.then((t=>t?e:null)):l?e:null};return t.requiresSiblings=!0,t}}return r}(n,e[n],t))).filter((e=>e!==S))),r=n.length;if(!r)return S;if(!n.some((e=>!!e.requiresSiblings))){if(1===r)return n[0];const e=function(e,t){let r;for(let s=0,o=n.length;s<o;s++){const o=n[s](e,t);if("string"===typeof o)return o;(0,i.Qg)(o)&&(r||(r=[]),r.push(o))}return r?(async()=>{for(const e of r){const t=await e;if("string"===typeof t)return t}return null})():null},t=n.find((e=>!!e.allBasenames));t&&(e.allBasenames=t.allBasenames);const s=n.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);return s.length&&(e.allPaths=s),e}const s=function(e,t,r){let s,a;for(let l=0,h=n.length;l<h;l++){const h=n[l];h.requiresSiblings&&r&&(t||(t=(0,o.P8)(e)),s||(s=t.substr(0,t.length-(0,o.LC)(e).length)));const c=h(e,t,s,r);if("string"===typeof c)return c;(0,i.Qg)(c)&&(a||(a=[]),a.push(c))}return a?(async()=>{for(const e of a){const t=await e;if("string"===typeof t)return t}return null})():null},a=n.find((e=>!!e.allBasenames));a&&(s.allBasenames=a.allBasenames);const l=n.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);l.length&&(s.allPaths=l);return s}(e,t)}function D(e,t){const n=e.filter((e=>!!e.basenames));if(n.length<2)return e;const i=n.reduce(((e,t)=>{const n=t.basenames;return n?e.concat(n):e}),[]);let r;if(t){r=[];for(let e=0,n=i.length;e<n;e++)r.push(t)}else r=n.reduce(((e,t)=>{const n=t.patterns;return n?e.concat(n):e}),[]);const s=function(e,t){if("string"!==typeof e)return null;if(!t){let n;for(n=e.length;n>0;n--){const t=e.charCodeAt(n-1);if(47===t||92===t)break}t=e.substr(n)}const n=i.indexOf(t);return-1!==n?r[n]:null};s.basenames=i,s.patterns=r,s.allBasenames=i;const o=e.filter((e=>!e.basenames));return o.push(s),o}},7004:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SemanticTokensStylingService:()=>d});var i=n(1484),r=n(154),s=n(5724),o=n(3511),a=n(5538),l=n(4243),h=n(4621),c=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},u=function(e,t){return function(n,i){t(n,i,e)}};let d=class extends i.jG{constructor(e,t,n){super(),this._themeService=e,this._logService=t,this._languageService=n,this._caches=new WeakMap,this._register(this._themeService.onDidColorThemeChange((()=>{this._caches=new WeakMap})))}getStyling(e){return this._caches.has(e)||this._caches.set(e,new a.SemanticTokensProviderStyling(e.getLegend(),this._themeService,this._languageService,this._logService)),this._caches.get(e)}};d=c([u(0,s.Gy),u(1,o.rr),u(2,r.L)],d),(0,h.v)(l.ISemanticTokensStylingService,d,1)},7119:(e,t,n)=>{"use strict";n.d(t,{AQ:()=>_,aZ:()=>p,l5:()=>C,lQ:()=>k,s7:()=>w,sH:()=>L,sN:()=>b,ss:()=>v,yI:()=>m,zp:()=>y});var i=n(8209),r=n(7661),s=n(5845),o=n(5724);const a=(0,s.x1A)("editor.lineHighlightBackground",null,i.kg("lineHighlight","Background color for the highlight of line at the cursor position.")),l=((0,s.x1A)("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hcDark:"#f38518",hcLight:s.b1q},i.kg("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),(0,s.x1A)("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hcDark:null,hcLight:null},i.kg("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1A)("editor.rangeHighlightBorder",{dark:null,light:null,hcDark:s.buw,hcLight:s.buw},i.kg("rangeHighlightBorder","Background color of the border around highlighted ranges.")),(0,s.x1A)("editor.symbolHighlightBackground",{dark:s.Ubg,light:s.Ubg,hcDark:null,hcLight:null},i.kg("symbolHighlight","Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1A)("editor.symbolHighlightBorder",{dark:null,light:null,hcDark:s.buw,hcLight:s.buw},i.kg("symbolHighlightBorder","Background color of the border around highlighted symbols.")),(0,s.x1A)("editorCursor.foreground",{dark:"#AEAFAD",light:r.Q1.black,hcDark:r.Q1.white,hcLight:"#0F4A85"},i.kg("caret","Color of the editor cursor."))),h=(0,s.x1A)("editorCursor.background",null,i.kg("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),c=((0,s.x1A)("editorMultiCursor.primary.foreground",l,i.kg("editorMultiCursorPrimaryForeground","Color of the primary editor cursor when multiple cursors are present.")),(0,s.x1A)("editorMultiCursor.primary.background",h,i.kg("editorMultiCursorPrimaryBackground","The background color of the primary editor cursor when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),(0,s.x1A)("editorMultiCursor.secondary.foreground",l,i.kg("editorMultiCursorSecondaryForeground","Color of secondary editor cursors when multiple cursors are present.")),(0,s.x1A)("editorMultiCursor.secondary.background",h,i.kg("editorMultiCursorSecondaryBackground","The background color of secondary editor cursors when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),(0,s.x1A)("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hcDark:"#e3e4e229",hcLight:"#CCCCCC"},i.kg("editorWhitespaces","Color of whitespace characters in the editor."))),u=((0,s.x1A)("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hcDark:r.Q1.white,hcLight:"#292929"},i.kg("editorLineNumbers","Color of editor line numbers.")),(0,s.x1A)("editorIndentGuide.background",c,i.kg("editorIndentGuides","Color of the editor indentation guides."),!1,i.kg("deprecatedEditorIndentGuides","'editorIndentGuide.background' is deprecated. Use 'editorIndentGuide.background1' instead."))),d=(0,s.x1A)("editorIndentGuide.activeBackground",c,i.kg("editorActiveIndentGuide","Color of the active editor indentation guides."),!1,i.kg("deprecatedEditorActiveIndentGuide","'editorIndentGuide.activeBackground' is deprecated. Use 'editorIndentGuide.activeBackground1' instead.")),g=((0,s.x1A)("editorIndentGuide.background1",u,i.kg("editorIndentGuides1","Color of the editor indentation guides (1).")),(0,s.x1A)("editorIndentGuide.background2","#00000000",i.kg("editorIndentGuides2","Color of the editor indentation guides (2).")),(0,s.x1A)("editorIndentGuide.background3","#00000000",i.kg("editorIndentGuides3","Color of the editor indentation guides (3).")),(0,s.x1A)("editorIndentGuide.background4","#00000000",i.kg("editorIndentGuides4","Color of the editor indentation guides (4).")),(0,s.x1A)("editorIndentGuide.background5","#00000000",i.kg("editorIndentGuides5","Color of the editor indentation guides (5).")),(0,s.x1A)("editorIndentGuide.background6","#00000000",i.kg("editorIndentGuides6","Color of the editor indentation guides (6).")),(0,s.x1A)("editorIndentGuide.activeBackground1",d,i.kg("editorActiveIndentGuide1","Color of the active editor indentation guides (1).")),(0,s.x1A)("editorIndentGuide.activeBackground2","#00000000",i.kg("editorActiveIndentGuide2","Color of the active editor indentation guides (2).")),(0,s.x1A)("editorIndentGuide.activeBackground3","#00000000",i.kg("editorActiveIndentGuide3","Color of the active editor indentation guides (3).")),(0,s.x1A)("editorIndentGuide.activeBackground4","#00000000",i.kg("editorActiveIndentGuide4","Color of the active editor indentation guides (4).")),(0,s.x1A)("editorIndentGuide.activeBackground5","#00000000",i.kg("editorActiveIndentGuide5","Color of the active editor indentation guides (5).")),(0,s.x1A)("editorIndentGuide.activeBackground6","#00000000",i.kg("editorActiveIndentGuide6","Color of the active editor indentation guides (6).")),(0,s.x1A)("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hcDark:s.buw,hcLight:s.buw},i.kg("editorActiveLineNumber","Color of editor active line number"),!1,i.kg("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead."))),f=((0,s.x1A)("editorLineNumber.activeForeground",g,i.kg("editorActiveLineNumber","Color of editor active line number")),(0,s.x1A)("editorLineNumber.dimmedForeground",null,i.kg("editorDimmedLineNumber","Color of the final editor line when editor.renderFinalNewline is set to dimmed.")),(0,s.x1A)("editorRuler.foreground",{dark:"#5A5A5A",light:r.Q1.lightgrey,hcDark:r.Q1.white,hcLight:"#292929"},i.kg("editorRuler","Color of the editor rulers.")),(0,s.x1A)("editorCodeLens.foreground",{dark:"#999999",light:"#919191",hcDark:"#999999",hcLight:"#292929"},i.kg("editorCodeLensForeground","Foreground color of editor CodeLens")),(0,s.x1A)("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hcDark:"#0064001a",hcLight:"#0000"},i.kg("editorBracketMatchBackground","Background color behind matching brackets")),(0,s.x1A)("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hcDark:s.b1q,hcLight:s.b1q},i.kg("editorBracketMatchBorder","Color for matching brackets boxes")),(0,s.x1A)("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hcDark:"#7f7f7f4d",hcLight:"#666666"},i.kg("editorOverviewRulerBorder","Color of the overview ruler border.")),(0,s.x1A)("editorOverviewRuler.background",null,i.kg("editorOverviewRulerBackground","Background color of the editor overview ruler.")),(0,s.x1A)("editorGutter.background",s.YtV,i.kg("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),(0,s.x1A)("editorUnnecessaryCode.border",{dark:null,light:null,hcDark:r.Q1.fromHex("#fff").transparent(.8),hcLight:s.b1q},i.kg("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),(0,s.x1A)("editorUnnecessaryCode.opacity",{dark:r.Q1.fromHex("#000a"),light:r.Q1.fromHex("#0007"),hcDark:null,hcLight:null},i.kg("unnecessaryCodeOpacity","Opacity of unnecessary (unused) source code in the editor. For example, \"#000000c0\" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out.")),(0,s.x1A)("editorGhostText.border",{dark:null,light:null,hcDark:r.Q1.fromHex("#fff").transparent(.8),hcLight:r.Q1.fromHex("#292929").transparent(.8)},i.kg("editorGhostTextBorder","Border color of ghost text in the editor.")),(0,s.x1A)("editorGhostText.foreground",{dark:r.Q1.fromHex("#ffffff56"),light:r.Q1.fromHex("#0007"),hcDark:null,hcLight:null},i.kg("editorGhostTextForeground","Foreground color of the ghost text in the editor.")),(0,s.x1A)("editorGhostText.background",null,i.kg("editorGhostTextBackground","Background color of the ghost text in the editor.")),new r.Q1(new r.bU(0,122,204,.6))),m=((0,s.x1A)("editorOverviewRuler.rangeHighlightForeground",f,i.kg("overviewRulerRangeHighlight","Overview ruler marker color for range highlights. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1A)("editorOverviewRuler.errorForeground",{dark:new r.Q1(new r.bU(255,18,18,.7)),light:new r.Q1(new r.bU(255,18,18,.7)),hcDark:new r.Q1(new r.bU(255,50,50,1)),hcLight:"#B5200D"},i.kg("overviewRuleError","Overview ruler marker color for errors."))),p=(0,s.x1A)("editorOverviewRuler.warningForeground",{dark:s.Hng,light:s.Hng,hcDark:s.Stt,hcLight:s.Stt},i.kg("overviewRuleWarning","Overview ruler marker color for warnings.")),_=(0,s.x1A)("editorOverviewRuler.infoForeground",{dark:s.pOz,light:s.pOz,hcDark:s.IIb,hcLight:s.IIb},i.kg("overviewRuleInfo","Overview ruler marker color for infos.")),b=(0,s.x1A)("editorBracketHighlight.foreground1",{dark:"#FFD700",light:"#0431FAFF",hcDark:"#FFD700",hcLight:"#0431FAFF"},i.kg("editorBracketHighlightForeground1","Foreground color of brackets (1). Requires enabling bracket pair colorization.")),k=(0,s.x1A)("editorBracketHighlight.foreground2",{dark:"#DA70D6",light:"#319331FF",hcDark:"#DA70D6",hcLight:"#319331FF"},i.kg("editorBracketHighlightForeground2","Foreground color of brackets (2). Requires enabling bracket pair colorization.")),v=(0,s.x1A)("editorBracketHighlight.foreground3",{dark:"#179FFF",light:"#7B3814FF",hcDark:"#87CEFA",hcLight:"#7B3814FF"},i.kg("editorBracketHighlightForeground3","Foreground color of brackets (3). Requires enabling bracket pair colorization.")),C=(0,s.x1A)("editorBracketHighlight.foreground4","#00000000",i.kg("editorBracketHighlightForeground4","Foreground color of brackets (4). Requires enabling bracket pair colorization.")),L=(0,s.x1A)("editorBracketHighlight.foreground5","#00000000",i.kg("editorBracketHighlightForeground5","Foreground color of brackets (5). Requires enabling bracket pair colorization.")),y=(0,s.x1A)("editorBracketHighlight.foreground6","#00000000",i.kg("editorBracketHighlightForeground6","Foreground color of brackets (6). Requires enabling bracket pair colorization.")),w=(0,s.x1A)("editorBracketHighlight.unexpectedBracket.foreground",{dark:new r.Q1(new r.bU(255,18,18,.8)),light:new r.Q1(new r.bU(255,18,18,.8)),hcDark:"new Color(new RGBA(255, 50, 50, 1))",hcLight:"#B5200D"},i.kg("editorBracketHighlightUnexpectedBracketForeground","Foreground color of unexpected brackets."));(0,s.x1A)("editorBracketPairGuide.background1","#00000000",i.kg("editorBracketPairGuide.background1","Background color of inactive bracket pair guides (1). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background2","#00000000",i.kg("editorBracketPairGuide.background2","Background color of inactive bracket pair guides (2). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background3","#00000000",i.kg("editorBracketPairGuide.background3","Background color of inactive bracket pair guides (3). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background4","#00000000",i.kg("editorBracketPairGuide.background4","Background color of inactive bracket pair guides (4). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background5","#00000000",i.kg("editorBracketPairGuide.background5","Background color of inactive bracket pair guides (5). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background6","#00000000",i.kg("editorBracketPairGuide.background6","Background color of inactive bracket pair guides (6). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground1","#00000000",i.kg("editorBracketPairGuide.activeBackground1","Background color of active bracket pair guides (1). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground2","#00000000",i.kg("editorBracketPairGuide.activeBackground2","Background color of active bracket pair guides (2). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground3","#00000000",i.kg("editorBracketPairGuide.activeBackground3","Background color of active bracket pair guides (3). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground4","#00000000",i.kg("editorBracketPairGuide.activeBackground4","Background color of active bracket pair guides (4). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground5","#00000000",i.kg("editorBracketPairGuide.activeBackground5","Background color of active bracket pair guides (5). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground6","#00000000",i.kg("editorBracketPairGuide.activeBackground6","Background color of active bracket pair guides (6). Requires enabling bracket pair guides.")),(0,s.x1A)("editorUnicodeHighlight.border",s.Hng,i.kg("editorUnicodeHighlight.border","Border color used to highlight unicode characters.")),(0,s.x1A)("editorUnicodeHighlight.background",s.whs,i.kg("editorUnicodeHighlight.background","Background color used to highlight unicode characters."));(0,o.zy)(((e,t)=>{const n=e.getColor(s.YtV),i=e.getColor(a),r=i&&!i.isTransparent()?i:n;r&&t.addRule(`.monaco-editor .inputarea.ime-input { background-color: ${r}; }`)}))},7550:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IMarkerDecorationsService:()=>i});const i=(0,n(3591).u1)("markerDecorationsService")},7596:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LanguageService:()=>D});var i=n(1234),r=n(1484),s=n(9259),o=n(9861),a=n(2083),l=n(3941);const h=(e,t)=>e===t;new WeakMap;class c{constructor(e,t,n){this.owner=e,this.debugNameSource=t,this.referenceFn=n}getDebugName(e){return function(e,t){const n=d.get(e);if(n)return n;const i=function(e,t){const n=d.get(e);if(n)return n;const i=t.owner?function(e){const t=f.get(e);if(t)return t;const n=function(e){const t=e.constructor;if(t)return t.name;return"Object"}(e);let i=g.get(n)??0;i++,g.set(n,i);const r=1===i?n:`${n}#${i}`;return f.set(e,r),r}(t.owner)+".":"";let r;const s=t.debugNameSource;if(void 0!==s){if("function"!==typeof s)return i+s;if(r=s(),void 0!==r)return i+r}const o=t.referenceFn;if(void 0!==o&&(r=m(o),void 0!==r))return i+r;if(void 0!==t.owner){const n=function(e,t){for(const n in e)if(e[n]===t)return n;return}(t.owner,e);if(void 0!==n)return i+n}return}(e,t);if(i){let t=u.get(i)??0;t++,u.set(i,t);const n=1===t?i:`${i}#${t}`;return d.set(e,n),n}return}(e,this)}}const u=new Map,d=new WeakMap;const g=new Map,f=new WeakMap;function m(e){const t=e.toString(),n=/\/\*\*\s*@description\s*([^*]*)\*\//.exec(t),i=n?n[1]:void 0;return i?.trim()}let p,_,b,k;function v(){return p}class C{get TChange(){return null}reportChanges(){this.get()}read(e){return e?e.readObservable(this):this.get()}map(e,t){const n=void 0===t?void 0:e,i=void 0===t?e:t;return k({owner:n,debugName:()=>{const e=m(i);if(void 0!==e)return e;const t=/^\s*\(?\s*([a-zA-Z_$][a-zA-Z_$0-9]*)\s*\)?\s*=>\s*\1(?:\??)\.([a-zA-Z_$][a-zA-Z_$0-9]*)\s*$/.exec(i.toString());return t?`${this.debugName}.${t[2]}`:n?void 0:`${this.debugName} (mapped)`},debugReferenceFn:i},(e=>i(this.read(e),e)))}flatten(){return k({owner:void 0,debugName:()=>`${this.debugName} (flattened)`},(e=>this.read(e).read(e)))}recomputeInitiallyAndOnChange(e,t){return e.add(_(this,t)),this}keepObserved(e){return e.add(b(this)),this}}class L extends C{constructor(){super(...arguments),this.observers=new Set}addObserver(e){const t=this.observers.size;this.observers.add(e),0===t&&this.onFirstObserverAdded()}removeObserver(e){this.observers.delete(e)&&0===this.observers.size&&this.onLastObserverRemoved()}onFirstObserverAdded(){}onLastObserverRemoved(){}}function y(e,t){const n=new w(e,t);try{e(n)}finally{n.finish()}}class w{constructor(e,t){this._fn=e,this._getDebugName=t,this.updatingObservers=[],v()?.handleBeginTransaction(this)}getDebugName(){return this._getDebugName?this._getDebugName():m(this._fn)}updateObserver(e,t){this.updatingObservers.push({observer:e,observable:t}),e.beginUpdate(t)}finish(){const e=this.updatingObservers;for(let t=0;t<e.length;t++){const{observer:n,observable:i}=e[t];n.endUpdate(i)}this.updatingObservers=null,v()?.handleEndTransaction()}}var S=n(6782);!function(e){k=e}((function(e,t){return new x(new c(e.owner,e.debugName,e.debugReferenceFn),t,void 0,void 0,e.onLastObserverRemoved,e.equalsFn??h)}));class x extends L{get debugName(){return this._debugNameData.getDebugName(this)??"(anonymous)"}constructor(e,t,n,i,r=void 0,s){super(),this._debugNameData=e,this._computeFn=t,this.createChangeSummary=n,this._handleChange=i,this._handleLastObserverRemoved=r,this._equalityComparator=s,this.state=0,this.value=void 0,this.updateCount=0,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=void 0,this.changeSummary=this.createChangeSummary?.(),v()?.handleDerivedCreated(this)}onLastObserverRemoved(){this.state=0,this.value=void 0;for(const e of this.dependencies)e.removeObserver(this);this.dependencies.clear(),this._handleLastObserverRemoved?.()}get(){if(0===this.observers.size){const e=this._computeFn(this,this.createChangeSummary?.());return this.onLastObserverRemoved(),e}do{if(1===this.state)for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break;1===this.state&&(this.state=3),this._recomputeIfNeeded()}while(3!==this.state);return this.value}_recomputeIfNeeded(){if(3===this.state)return;const e=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=e;const t=0!==this.state,n=this.value;this.state=3;const i=this.changeSummary;this.changeSummary=this.createChangeSummary?.();try{this.value=this._computeFn(this,i)}finally{for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}const r=t&&!this._equalityComparator(n,this.value);if(v()?.handleDerivedRecomputed(this,{oldValue:n,newValue:this.value,change:void 0,didChange:r,hadValue:t}),r)for(const s of this.observers)s.handleChange(this,void 0)}toString(){return`LazyDerived<${this.debugName}>`}beginUpdate(e){this.updateCount++;const t=1===this.updateCount;if(3===this.state&&(this.state=1,!t))for(const n of this.observers)n.handlePossibleChange(this);if(t)for(const n of this.observers)n.beginUpdate(this)}endUpdate(e){if(this.updateCount--,0===this.updateCount){const e=[...this.observers];for(const t of e)t.endUpdate(this)}(0,S.Ft)((()=>this.updateCount>=0))}handlePossibleChange(e){if(3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){this.state=1;for(const e of this.observers)e.handlePossibleChange(this)}}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){const n=!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary),i=3===this.state;if(n&&(1===this.state||i)&&(this.state=2,i))for(const e of this.observers)e.handlePossibleChange(this)}}readObservable(e){e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}addObserver(e){const t=!this.observers.has(e)&&this.updateCount>0;super.addObserver(e),t&&e.beginUpdate(this)}removeObserver(e){const t=this.observers.has(e)&&this.updateCount>0;super.removeObserver(e),t&&e.endUpdate(this)}}function E(e){return new N(new c(void 0,void 0,e),e,void 0,void 0)}class N{get debugName(){return this._debugNameData.getDebugName(this)??"(anonymous)"}constructor(e,t,n,i){this._debugNameData=e,this._runFn=t,this.createChangeSummary=n,this._handleChange=i,this.state=2,this.updateCount=0,this.disposed=!1,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=this.createChangeSummary?.(),v()?.handleAutorunCreated(this),this._runIfNeeded(),(0,r.Ay)(this)}dispose(){this.disposed=!0;for(const e of this.dependencies)e.removeObserver(this);this.dependencies.clear(),(0,r.VD)(this)}_runIfNeeded(){if(3===this.state)return;const e=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=e,this.state=3;const t=this.disposed;try{if(!t){v()?.handleAutorunTriggered(this);const e=this.changeSummary;this.changeSummary=this.createChangeSummary?.(),this._runFn(this,e)}}finally{t||v()?.handleAutorunFinished(this);for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}}toString(){return`Autorun<${this.debugName}>`}beginUpdate(){3===this.state&&(this.state=1),this.updateCount++}endUpdate(){if(1===this.updateCount)do{if(1===this.state){this.state=3;for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break}this._runIfNeeded()}while(3!==this.state);this.updateCount--,(0,S.Ft)((()=>this.updateCount>=0))}handlePossibleChange(e){3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)&&(this.state=1)}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){(!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary))&&(this.state=2)}}readObservable(e){if(this.disposed)return e.get();e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}}!function(e){e.Observer=N}(E||(E={}));function I(...e){let t,n,i;return 3===e.length?[t,n,i]=e:[n,i]=e,new T(new c(t,void 0,i),n,i,(()=>T.globalTransaction),h)}class T extends L{constructor(e,t,n,i,r){super(),this._debugNameData=e,this.event=t,this._getValue=n,this._getTransaction=i,this._equalityComparator=r,this.hasValue=!1,this.handleEvent=e=>{const t=this._getValue(e),n=this.value,i=!this.hasValue||!this._equalityComparator(n,t);let r=!1;i&&(this.value=t,this.hasValue&&(r=!0,function(e,t,n){e?t(e):y(t,n)}(this._getTransaction(),(e=>{v()?.handleFromEventObservableTriggered(this,{oldValue:n,newValue:t,change:void 0,didChange:i,hadValue:this.hasValue});for(const t of this.observers)e.updateObserver(t,this),t.handleChange(this,void 0)}),(()=>{const e=this.getDebugName();return"Event fired"+(e?`: ${e}`:"")}))),this.hasValue=!0),r||v()?.handleFromEventObservableTriggered(this,{oldValue:n,newValue:t,change:void 0,didChange:i,hadValue:this.hasValue})}}getDebugName(){return this._debugNameData.getDebugName(this)}get debugName(){const e=this.getDebugName();return"From Event"+(e?`: ${e}`:"")}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0,this.hasValue=!1,this.value=void 0}get(){if(this.subscription)return this.hasValue||this.handleEvent(void 0),this.value;return this._getValue(void 0)}}!function(e){e.Observer=T,e.batchEventsGlobally=function(e,t){let n=!1;void 0===T.globalTransaction&&(T.globalTransaction=e,n=!0);try{t()}finally{n&&(T.globalTransaction=void 0)}}}(I||(I={}));!function(e){b=e}((function(e){const t=new A(!1,void 0);return e.addObserver(t),(0,r.s)((()=>{e.removeObserver(t)}))})),function(e){_=e}((function(e,t){const n=new A(!0,t);return e.addObserver(n),t?t(e.get()):e.reportChanges(),(0,r.s)((()=>{e.removeObserver(n)}))}));class A{constructor(e,t){this._forceRecompute=e,this._handleValue=t,this._counter=0}beginUpdate(e){this._counter++}endUpdate(e){this._counter--,0===this._counter&&this._forceRecompute&&(this._handleValue?this._handleValue(e.get()):e.reportChanges())}handlePossibleChange(e){}handleChange(e,t){}}n(4383);class D extends r.jG{static{this.instanceCount=0}constructor(e=!1){super(),this._onDidRequestBasicLanguageFeatures=this._register(new i.vl),this.onDidRequestBasicLanguageFeatures=this._onDidRequestBasicLanguageFeatures.event,this._onDidRequestRichLanguageFeatures=this._register(new i.vl),this.onDidRequestRichLanguageFeatures=this._onDidRequestRichLanguageFeatures.event,this._onDidChange=this._register(new i.vl({leakWarningThreshold:200})),this.onDidChange=this._onDidChange.event,this._requestedBasicLanguages=new Set,this._requestedRichLanguages=new Set,D.instanceCount++,this._registry=this._register(new s.LanguagesRegistry(!0,e)),this.languageIdCodec=this._registry.languageIdCodec,this._register(this._registry.onDidChange((()=>this._onDidChange.fire())))}dispose(){D.instanceCount--,super.dispose()}isRegisteredLanguageId(e){return this._registry.isRegisteredLanguageId(e)}getLanguageIdByLanguageName(e){return this._registry.getLanguageIdByLanguageName(e)}getLanguageIdByMimeType(e){return this._registry.getLanguageIdByMimeType(e)}guessLanguageIdByFilepathOrFirstLine(e,t){const n=this._registry.guessLanguageIdByFilepathOrFirstLine(e,t);return(0,o.Fy)(n,null)}createById(e){return new R(this.onDidChange,(()=>this._createAndGetLanguageIdentifier(e)))}createByFilepathOrFirstLine(e,t){return new R(this.onDidChange,(()=>{const n=this.guessLanguageIdByFilepathOrFirstLine(e,t);return this._createAndGetLanguageIdentifier(n)}))}_createAndGetLanguageIdentifier(e){return e&&this.isRegisteredLanguageId(e)||(e=l.vH),e}requestBasicLanguageFeatures(e){this._requestedBasicLanguages.has(e)||(this._requestedBasicLanguages.add(e),this._onDidRequestBasicLanguageFeatures.fire(e))}requestRichLanguageFeatures(e){this._requestedRichLanguages.has(e)||(this._requestedRichLanguages.add(e),this.requestBasicLanguageFeatures(e),a.dG.getOrCreate(e),this._onDidRequestRichLanguageFeatures.fire(e))}}class R{constructor(e,t){this._value=I(this,e,(()=>t())),this.onDidChange=i.Jh.fromObservable(this._value)}get languageId(){return this._value.get()}}},7614:(e,t,n)=>{var i={"./editorBaseApi":4272,"./editorBaseApi.js":4272,"./editorSimpleWorker":5196,"./editorSimpleWorker.js":5196,"./editorWorker":920,"./editorWorker.js":920,"./editorWorkerHost":718,"./editorWorkerHost.js":718,"./findSectionHeaders":6691,"./findSectionHeaders.js":6691,"./getIconClasses":5628,"./getIconClasses.js":5628,"./languageFeatureDebounce":8709,"./languageFeatureDebounce.js":8709,"./languageFeatures":6942,"./languageFeatures.js":6942,"./languageFeaturesService":2661,"./languageFeaturesService.js":2661,"./languageService":7596,"./languageService.js":7596,"./languagesAssociations":9908,"./languagesAssociations.js":9908,"./languagesRegistry":9259,"./languagesRegistry.js":9259,"./markerDecorations":7550,"./markerDecorations.js":7550,"./markerDecorationsService":448,"./markerDecorationsService.js":448,"./model":3750,"./model.js":3750,"./modelService":1773,"./modelService.js":1773,"./resolverService":8938,"./resolverService.js":8938,"./semanticTokensDto":8232,"./semanticTokensDto.js":8232,"./semanticTokensProviderStyling":5538,"./semanticTokensProviderStyling.js":5538,"./semanticTokensStyling":4243,"./semanticTokensStyling.js":4243,"./semanticTokensStylingService":7004,"./semanticTokensStylingService.js":7004,"./textModelSync/textModelSync.impl":796,"./textModelSync/textModelSync.impl.js":796,"./textModelSync/textModelSync.protocol":8868,"./textModelSync/textModelSync.protocol.js":8868,"./textResourceConfiguration":360,"./textResourceConfiguration.js":360,"./treeSitterParserService":4432,"./treeSitterParserService.js":4432,"./treeViewsDnd":6723,"./treeViewsDnd.js":6723,"./treeViewsDndService":9100,"./treeViewsDndService.js":9100,"./unicodeTextModelHighlighter":4855,"./unicodeTextModelHighlighter.js":4855,"monaco-editor/esm/vs/editor/common/services/editorBaseApi":4272,"monaco-editor/esm/vs/editor/common/services/editorBaseApi.js":4272,"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker":5196,"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker.js":5196,"monaco-editor/esm/vs/editor/common/services/editorWorker":920,"monaco-editor/esm/vs/editor/common/services/editorWorker.js":920,"monaco-editor/esm/vs/editor/common/services/editorWorkerHost":718,"monaco-editor/esm/vs/editor/common/services/editorWorkerHost.js":718,"monaco-editor/esm/vs/editor/common/services/findSectionHeaders":6691,"monaco-editor/esm/vs/editor/common/services/findSectionHeaders.js":6691,"monaco-editor/esm/vs/editor/common/services/getIconClasses":5628,"monaco-editor/esm/vs/editor/common/services/getIconClasses.js":5628,"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce":8709,"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce.js":8709,"monaco-editor/esm/vs/editor/common/services/languageFeatures":6942,"monaco-editor/esm/vs/editor/common/services/languageFeatures.js":6942,"monaco-editor/esm/vs/editor/common/services/languageFeaturesService":2661,"monaco-editor/esm/vs/editor/common/services/languageFeaturesService.js":2661,"monaco-editor/esm/vs/editor/common/services/languageService":7596,"monaco-editor/esm/vs/editor/common/services/languageService.js":7596,"monaco-editor/esm/vs/editor/common/services/languagesAssociations":9908,"monaco-editor/esm/vs/editor/common/services/languagesAssociations.js":9908,"monaco-editor/esm/vs/editor/common/services/languagesRegistry":9259,"monaco-editor/esm/vs/editor/common/services/languagesRegistry.js":9259,"monaco-editor/esm/vs/editor/common/services/markerDecorations":7550,"monaco-editor/esm/vs/editor/common/services/markerDecorations.js":7550,"monaco-editor/esm/vs/editor/common/services/markerDecorationsService":448,"monaco-editor/esm/vs/editor/common/services/markerDecorationsService.js":448,"monaco-editor/esm/vs/editor/common/services/model":3750,"monaco-editor/esm/vs/editor/common/services/model.js":3750,"monaco-editor/esm/vs/editor/common/services/modelService":1773,"monaco-editor/esm/vs/editor/common/services/modelService.js":1773,"monaco-editor/esm/vs/editor/common/services/resolverService":8938,"monaco-editor/esm/vs/editor/common/services/resolverService.js":8938,"monaco-editor/esm/vs/editor/common/services/semanticTokensDto":8232,"monaco-editor/esm/vs/editor/common/services/semanticTokensDto.js":8232,"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling":5538,"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling.js":5538,"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling":4243,"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling.js":4243,"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService":7004,"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService.js":7004,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl":796,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl.js":796,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol":8868,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol.js":8868,"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration":360,"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration.js":360,"monaco-editor/esm/vs/editor/common/services/treeSitterParserService":4432,"monaco-editor/esm/vs/editor/common/services/treeSitterParserService.js":4432,"monaco-editor/esm/vs/editor/common/services/treeViewsDnd":6723,"monaco-editor/esm/vs/editor/common/services/treeViewsDnd.js":6723,"monaco-editor/esm/vs/editor/common/services/treeViewsDndService":9100,"monaco-editor/esm/vs/editor/common/services/treeViewsDndService.js":9100,"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter":4855,"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter.js":4855};function r(e){var t=s(e);return n(t)}function s(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}r.keys=function(){return Object.keys(i)},r.resolve=s,e.exports=r,r.id=7614},7661:(e,t,n)=>{"use strict";function i(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}n.d(t,{Q1:()=>a,bU:()=>r,hB:()=>s});class r{constructor(e,t,n,r=1){this._rgbaBrand=void 0,this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,t)),this.b=0|Math.min(255,Math.max(0,n)),this.a=i(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}}class s{constructor(e,t,n,r){this._hslaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=i(Math.max(Math.min(1,t),0),3),this.l=i(Math.max(Math.min(1,n),0),3),this.a=i(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(e){const t=e.r/255,n=e.g/255,i=e.b/255,r=e.a,o=Math.max(t,n,i),a=Math.min(t,n,i);let l=0,h=0;const c=(a+o)/2,u=o-a;if(u>0){switch(h=Math.min(c<=.5?u/(2*c):u/(2-2*c),1),o){case t:l=(n-i)/u+(n<i?6:0);break;case n:l=(i-t)/u+2;break;case i:l=(t-n)/u+4}l*=60,l=Math.round(l)}return new s(l,h,c,r)}static _hue2rgb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}static toRGBA(e){const t=e.h/360,{s:n,l:i,a:o}=e;let a,l,h;if(0===n)a=l=h=i;else{const e=i<.5?i*(1+n):i+n-i*n,r=2*i-e;a=s._hue2rgb(r,e,t+1/3),l=s._hue2rgb(r,e,t),h=s._hue2rgb(r,e,t-1/3)}return new r(Math.round(255*a),Math.round(255*l),Math.round(255*h),o)}}class o{constructor(e,t,n,r){this._hsvaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=i(Math.max(Math.min(1,t),0),3),this.v=i(Math.max(Math.min(1,n),0),3),this.a=i(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(e){const t=e.r/255,n=e.g/255,i=e.b/255,r=Math.max(t,n,i),s=r-Math.min(t,n,i),a=0===r?0:s/r;let l;return l=0===s?0:r===t?((n-i)/s%6+6)%6:r===n?(i-t)/s+2:(t-n)/s+4,new o(Math.round(60*l),a,r,e.a)}static toRGBA(e){const{h:t,s:n,v:i,a:s}=e,o=i*n,a=o*(1-Math.abs(t/60%2-1)),l=i-o;let[h,c,u]=[0,0,0];return t<60?(h=o,c=a):t<120?(h=a,c=o):t<180?(c=o,u=a):t<240?(c=a,u=o):t<300?(h=a,u=o):t<=360&&(h=o,u=a),h=Math.round(255*(h+l)),c=Math.round(255*(c+l)),u=Math.round(255*(u+l)),new r(h,c,u,s)}}class a{static fromHex(e){return a.Format.CSS.parseHex(e)||a.red}static equals(e,t){return!e&&!t||!(!e||!t)&&e.equals(t)}get hsla(){return this._hsla?this._hsla:s.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:o.fromRGBA(this.rgba)}constructor(e){if(!e)throw new Error("Color needs a value");if(e instanceof r)this.rgba=e;else if(e instanceof s)this._hsla=e,this.rgba=s.toRGBA(e);else{if(!(e instanceof o))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=o.toRGBA(e)}}equals(e){return!!e&&r.equals(this.rgba,e.rgba)&&s.equals(this.hsla,e.hsla)&&o.equals(this.hsva,e.hsva)}getRelativeLuminance(){return i(.2126*a._relativeLuminanceForComponent(this.rgba.r)+.7152*a._relativeLuminanceForComponent(this.rgba.g)+.0722*a._relativeLuminanceForComponent(this.rgba.b),4)}static _relativeLuminanceForComponent(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}isLighter(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128}isLighterThan(e){return this.getRelativeLuminance()>e.getRelativeLuminance()}isDarkerThan(e){return this.getRelativeLuminance()<e.getRelativeLuminance()}lighten(e){return new a(new s(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*e,this.hsla.a))}darken(e){return new a(new s(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*e,this.hsla.a))}transparent(e){const{r:t,g:n,b:i,a:s}=this.rgba;return new a(new r(t,n,i,s*e))}isTransparent(){return 0===this.rgba.a}isOpaque(){return 1===this.rgba.a}opposite(){return new a(new r(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(e){if(this.isOpaque()||1!==e.rgba.a)return this;const{r:t,g:n,b:i,a:s}=this.rgba;return new a(new r(e.rgba.r-s*(e.rgba.r-t),e.rgba.g-s*(e.rgba.g-n),e.rgba.b-s*(e.rgba.b-i),1))}toString(){return this._toString||(this._toString=a.Format.CSS.format(this)),this._toString}static getLighterColor(e,t,n){if(e.isLighterThan(t))return e;n=n||.5;const i=e.getRelativeLuminance(),r=t.getRelativeLuminance();return n=n*(r-i)/r,e.lighten(n)}static getDarkerColor(e,t,n){if(e.isDarkerThan(t))return e;n=n||.5;const i=e.getRelativeLuminance();return n=n*(i-t.getRelativeLuminance())/i,e.darken(n)}static{this.white=new a(new r(255,255,255,1))}static{this.black=new a(new r(0,0,0,1))}static{this.red=new a(new r(255,0,0,1))}static{this.blue=new a(new r(0,0,255,1))}static{this.green=new a(new r(0,255,0,1))}static{this.cyan=new a(new r(0,255,255,1))}static{this.lightgrey=new a(new r(211,211,211,1))}static{this.transparent=new a(new r(0,0,0,0))}}!function(e){let t;!function(t){let n;!function(t){function n(e){const t=e.toString(16);return 2!==t.length?"0"+t:t}function i(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:case 65:return 10;case 98:case 66:return 11;case 99:case 67:return 12;case 100:case 68:return 13;case 101:case 69:return 14;case 102:case 70:return 15}return 0}t.formatRGB=function(t){return 1===t.rgba.a?`rgb(${t.rgba.r}, ${t.rgba.g}, ${t.rgba.b})`:e.Format.CSS.formatRGBA(t)},t.formatRGBA=function(e){return`rgba(${e.rgba.r}, ${e.rgba.g}, ${e.rgba.b}, ${+e.rgba.a.toFixed(2)})`},t.formatHSL=function(t){return 1===t.hsla.a?`hsl(${t.hsla.h}, ${(100*t.hsla.s).toFixed(2)}%, ${(100*t.hsla.l).toFixed(2)}%)`:e.Format.CSS.formatHSLA(t)},t.formatHSLA=function(e){return`hsla(${e.hsla.h}, ${(100*e.hsla.s).toFixed(2)}%, ${(100*e.hsla.l).toFixed(2)}%, ${e.hsla.a.toFixed(2)})`},t.formatHex=function(e){return`#${n(e.rgba.r)}${n(e.rgba.g)}${n(e.rgba.b)}`},t.formatHexA=function(t,i=!1){return i&&1===t.rgba.a?e.Format.CSS.formatHex(t):`#${n(t.rgba.r)}${n(t.rgba.g)}${n(t.rgba.b)}${n(Math.round(255*t.rgba.a))}`},t.format=function(t){return t.isOpaque()?e.Format.CSS.formatHex(t):e.Format.CSS.formatRGBA(t)},t.parseHex=function(t){const n=t.length;if(0===n)return null;if(35!==t.charCodeAt(0))return null;if(7===n){const n=16*i(t.charCodeAt(1))+i(t.charCodeAt(2)),s=16*i(t.charCodeAt(3))+i(t.charCodeAt(4)),o=16*i(t.charCodeAt(5))+i(t.charCodeAt(6));return new e(new r(n,s,o,1))}if(9===n){const n=16*i(t.charCodeAt(1))+i(t.charCodeAt(2)),s=16*i(t.charCodeAt(3))+i(t.charCodeAt(4)),o=16*i(t.charCodeAt(5))+i(t.charCodeAt(6)),a=16*i(t.charCodeAt(7))+i(t.charCodeAt(8));return new e(new r(n,s,o,a/255))}if(4===n){const n=i(t.charCodeAt(1)),s=i(t.charCodeAt(2)),o=i(t.charCodeAt(3));return new e(new r(16*n+n,16*s+s,16*o+o))}if(5===n){const n=i(t.charCodeAt(1)),s=i(t.charCodeAt(2)),o=i(t.charCodeAt(3)),a=i(t.charCodeAt(4));return new e(new r(16*n+n,16*s+s,16*o+o,(16*a+a)/255))}return null}}(n=t.CSS||(t.CSS={}))}(t=e.Format||(e.Format={}))}(a||(a={}))},7729:(e,t,n)=>{"use strict";n.d(t,{lt:()=>u,W5:()=>p,hB:()=>f,dr:()=>d,wC:()=>m});var i=n(1508),r=n(4320),s=n(534);class o extends s.V{constructor(e,t){super(0),this._segmenter=null,this._cachedLine=null,this._cachedSegments=[],this.intlSegmenterLocales=t,this.intlSegmenterLocales.length>0?this._segmenter=new Intl.Segmenter(this.intlSegmenterLocales,{granularity:"word"}):this._segmenter=null;for(let n=0,i=e.length;n<i;n++)this.set(e.charCodeAt(n),2);this.set(32,1),this.set(9,1)}findPrevIntlWordBeforeOrAtOffset(e,t){let n=null;for(const i of this._getIntlSegmenterWordsOnLine(e)){if(i.index>t)break;n=i}return n}findNextIntlWordAtOrAfterOffset(e,t){for(const n of this._getIntlSegmenterWordsOnLine(e))if(!(n.index<t))return n;return null}_getIntlSegmenterWordsOnLine(e){return this._segmenter?(this._cachedLine===e||(this._cachedLine=e,this._cachedSegments=this._filterWordSegments(this._segmenter.segment(e))),this._cachedSegments):[]}_filterWordSegments(e){const t=[];for(const n of e)this._isWordLike(n)&&t.push(n);return t}_isWordLike(e){return!!e.isWordLike}}const a=new r.qK(10);var l=n(3069),h=n(6677),c=n(6223);class u{constructor(e,t,n,i){this.searchString=e,this.isRegex=t,this.matchCase=n,this.wordSeparators=i}parseSearchRequest(){if(""===this.searchString)return null;let e;e=this.isRegex?function(e){if(!e||0===e.length)return!1;for(let t=0,n=e.length;t<n;t++){const i=e.charCodeAt(t);if(10===i)return!0;if(92===i){if(t++,t>=n)break;const i=e.charCodeAt(t);if(110===i||114===i||87===i)return!0}}return!1}(this.searchString):this.searchString.indexOf("\n")>=0;let t=null;try{t=i.OS(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0,unicode:!0})}catch(r){return null}if(!t)return null;let n=!this.isRegex&&!e;return n&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(n=this.matchCase),new c.L5(t,this.wordSeparators?function(e,t){const n=`${e}/${t.join(",")}`;let i=a.get(n);return i||(i=new o(e,t),a.set(n,i)),i}(this.wordSeparators,[]):null,n?this.searchString:null)}}function d(e,t,n){if(!n)return new c.Dg(e,null);const i=[];for(let r=0,s=t.length;r<s;r++)i[r]=t[r];return new c.Dg(e,i)}class g{constructor(e){const t=[];let n=0;for(let i=0,r=e.length;i<r;i++)10===e.charCodeAt(i)&&(t[n++]=i);this._lineFeedsOffsets=t}findLineFeedCountBeforeOffset(e){const t=this._lineFeedsOffsets;let n=0,i=t.length-1;if(-1===i)return 0;if(e<=t[0])return 0;for(;n<i;){const r=n+((i-n)/2|0);t[r]>=e?i=r-1:t[r+1]>=e?(n=r,i=r):n=r+1}return n+1}}class f{static findMatches(e,t,n,i,r){const s=t.parseSearchRequest();return s?s.regex.multiline?this._doFindMatchesMultiline(e,n,new p(s.wordSeparators,s.regex),i,r):this._doFindMatchesLineByLine(e,n,s,i,r):[]}static _getMultilineMatchRange(e,t,n,i,r,s){let o,a,l=0;if(i?(l=i.findLineFeedCountBeforeOffset(r),o=t+r+l):o=t+r,i){const e=i.findLineFeedCountBeforeOffset(r+s.length)-l;a=o+s.length+e}else a=o+s.length;const c=e.getPositionAt(o),u=e.getPositionAt(a);return new h.Q(c.lineNumber,c.column,u.lineNumber,u.column)}static _doFindMatchesMultiline(e,t,n,i,r){const s=e.getOffsetAt(t.getStartPosition()),o=e.getValueInRange(t,1),a="\r\n"===e.getEOL()?new g(o):null,l=[];let h,c=0;for(n.reset(0);h=n.next(o);)if(l[c++]=d(this._getMultilineMatchRange(e,s,o,a,h.index,h[0]),h,i),c>=r)return l;return l}static _doFindMatchesLineByLine(e,t,n,i,r){const s=[];let o=0;if(t.startLineNumber===t.endLineNumber){const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return o=this._findMatchesInLine(n,a,t.startLineNumber,t.startColumn-1,o,s,i,r),s}const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);o=this._findMatchesInLine(n,a,t.startLineNumber,t.startColumn-1,o,s,i,r);for(let l=t.startLineNumber+1;l<t.endLineNumber&&o<r;l++)o=this._findMatchesInLine(n,e.getLineContent(l),l,0,o,s,i,r);if(o<r){const a=e.getLineContent(t.endLineNumber).substring(0,t.endColumn-1);o=this._findMatchesInLine(n,a,t.endLineNumber,0,o,s,i,r)}return s}static _findMatchesInLine(e,t,n,i,r,s,o,a){const l=e.wordSeparators;if(!o&&e.simpleSearch){const o=e.simpleSearch,u=o.length,d=t.length;let g=-u;for(;-1!==(g=t.indexOf(o,g+u));)if((!l||m(l,t,d,g,u))&&(s[r++]=new c.Dg(new h.Q(n,g+1+i,n,g+1+u+i),null),r>=a))return r;return r}const u=new p(e.wordSeparators,e.regex);let g;u.reset(0);do{if(g=u.next(t),g&&(s[r++]=d(new h.Q(n,g.index+1+i,n,g.index+1+g[0].length+i),g,o),r>=a))return r}while(g);return r}static findNextMatch(e,t,n,i){const r=t.parseSearchRequest();if(!r)return null;const s=new p(r.wordSeparators,r.regex);return r.regex.multiline?this._doFindNextMatchMultiline(e,n,s,i):this._doFindNextMatchLineByLine(e,n,s,i)}static _doFindNextMatchMultiline(e,t,n,i){const r=new l.y(t.lineNumber,1),s=e.getOffsetAt(r),o=e.getLineCount(),a=e.getValueInRange(new h.Q(r.lineNumber,r.column,o,e.getLineMaxColumn(o)),1),c="\r\n"===e.getEOL()?new g(a):null;n.reset(t.column-1);const u=n.next(a);return u?d(this._getMultilineMatchRange(e,s,a,c,u.index,u[0]),u,i):1!==t.lineNumber||1!==t.column?this._doFindNextMatchMultiline(e,new l.y(1,1),n,i):null}static _doFindNextMatchLineByLine(e,t,n,i){const r=e.getLineCount(),s=t.lineNumber,o=e.getLineContent(s),a=this._findFirstMatchInLine(n,o,s,t.column,i);if(a)return a;for(let l=1;l<=r;l++){const t=(s+l-1)%r,o=e.getLineContent(t+1),a=this._findFirstMatchInLine(n,o,t+1,1,i);if(a)return a}return null}static _findFirstMatchInLine(e,t,n,i,r){e.reset(i-1);const s=e.next(t);return s?d(new h.Q(n,s.index+1,n,s.index+1+s[0].length),s,r):null}static findPreviousMatch(e,t,n,i){const r=t.parseSearchRequest();if(!r)return null;const s=new p(r.wordSeparators,r.regex);return r.regex.multiline?this._doFindPreviousMatchMultiline(e,n,s,i):this._doFindPreviousMatchLineByLine(e,n,s,i)}static _doFindPreviousMatchMultiline(e,t,n,i){const r=this._doFindMatchesMultiline(e,new h.Q(1,1,t.lineNumber,t.column),n,i,9990);if(r.length>0)return r[r.length-1];const s=e.getLineCount();return t.lineNumber!==s||t.column!==e.getLineMaxColumn(s)?this._doFindPreviousMatchMultiline(e,new l.y(s,e.getLineMaxColumn(s)),n,i):null}static _doFindPreviousMatchLineByLine(e,t,n,i){const r=e.getLineCount(),s=t.lineNumber,o=e.getLineContent(s).substring(0,t.column-1),a=this._findLastMatchInLine(n,o,s,i);if(a)return a;for(let l=1;l<=r;l++){const t=(r+s-l-1)%r,o=e.getLineContent(t+1),a=this._findLastMatchInLine(n,o,t+1,i);if(a)return a}return null}static _findLastMatchInLine(e,t,n,i){let r,s=null;for(e.reset(0);r=e.next(t);)s=d(new h.Q(n,r.index+1,n,r.index+1+r[0].length),r,i);return s}}function m(e,t,n,i,r){return function(e,t,n,i,r){if(0===i)return!0;const s=t.charCodeAt(i-1);if(0!==e.get(s))return!0;if(13===s||10===s)return!0;if(r>0){const n=t.charCodeAt(i);if(0!==e.get(n))return!0}return!1}(e,t,0,i,r)&&function(e,t,n,i,r){if(i+r===n)return!0;const s=t.charCodeAt(i+r);if(0!==e.get(s))return!0;if(13===s||10===s)return!0;if(r>0){const n=t.charCodeAt(i+r-1);if(0!==e.get(n))return!0}return!1}(e,t,n,i,r)}class p{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){const t=e.length;let n;do{if(this._prevMatchStartIndex+this._prevMatchLength===t)return null;if(n=this._searchRegex.exec(e),!n)return null;const r=n.index,s=n[0].length;if(r===this._prevMatchStartIndex&&s===this._prevMatchLength){if(0===s){i.Z5(e,t,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=r,this._prevMatchLength=s,!this._wordSeparators||m(this._wordSeparators,e,t,r,s))return n}while(n);return null}}},8067:(e,t,n)=>{"use strict";n.d(t,{H8:()=>P,HZ:()=>I,OS:()=>M,UP:()=>W,_p:()=>R,cm:()=>F,gm:()=>z,ib:()=>N,j9:()=>E,lg:()=>T,nr:()=>V,uF:()=>S,zx:()=>x});var i=n(8209);const r="en";let s,o,a=!1,l=!1,h=!1,c=!1,u=!1,d=!1,g=!1,f=!1,m=!1,p=!1,_=null,b=null,k=null;const v=globalThis;let C;"undefined"!==typeof v.vscode&&"undefined"!==typeof v.vscode.process?C=v.vscode.process:"undefined"!==typeof process&&"string"===typeof process?.versions?.node&&(C=process);const L="string"===typeof C?.versions?.electron,y=L&&"renderer"===C?.type;if("object"===typeof C){a="win32"===C.platform,l="darwin"===C.platform,h="linux"===C.platform,c=h&&!!C.env.SNAP&&!!C.env.SNAP_REVISION,g=L,m=!!C.env.CI||!!C.env.BUILD_ARTIFACTSTAGINGDIRECTORY,s=r,_=r;const e=C.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e);s=t.userLocale,b=t.osLocale,_=t.resolvedLanguage||r,k=t.languagePack?.translationsConfigFile}catch(q){}u=!0}else"object"!==typeof navigator||y?console.error("Unable to resolve platform."):(o=navigator.userAgent,a=o.indexOf("Windows")>=0,l=o.indexOf("Macintosh")>=0,f=(o.indexOf("Macintosh")>=0||o.indexOf("iPad")>=0||o.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,h=o.indexOf("Linux")>=0,p=o?.indexOf("Mobi")>=0,d=!0,_=i.i8()||r,s=navigator.language.toLowerCase(),b=s);let w=0;l?w=1:a?w=3:h&&(w=2);const S=a,x=l,E=h,N=u,I=d,T=d&&"function"===typeof v.importScripts?v.origin:void 0,A=o,D="function"===typeof v.postMessage&&!v.importScripts,R=(()=>{if(D){const e=[];v.addEventListener("message",(t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let n=0,i=e.length;n<i;n++){const i=e[n];if(i.id===t.data.vscodeScheduleAsyncWork)return e.splice(n,1),void i.callback()}}));let t=0;return n=>{const i=++t;e.push({id:i,callback:n}),v.postMessage({vscodeScheduleAsyncWork:i},"*")}}return e=>setTimeout(e)})(),M=l||f?2:a?1:3;let O=!0,B=!1;function F(){if(!B){B=!0;const e=new Uint8Array(2);e[0]=1,e[1]=2;const t=new Uint16Array(e.buffer);O=513===t[0]}return O}const P=!!(A&&A.indexOf("Chrome")>=0),z=!!(A&&A.indexOf("Firefox")>=0),V=!!(!P&&A&&A.indexOf("Safari")>=0),W=!!(A&&A.indexOf("Edg/")>=0);A&&A.indexOf("Android")},8209:(e,t,n)=>{"use strict";function i(){return globalThis._VSCODE_NLS_LANGUAGE}n.d(t,{i8:()=>i,kg:()=>o});const r="pseudo"===i()||"undefined"!==typeof document&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function s(e,t){let n;return n=0===t.length?e:e.replace(/\{(\d+)\}/g,((e,n)=>{const i=n[0],r=t[i];let s=e;return"string"===typeof r?s=r:"number"!==typeof r&&"boolean"!==typeof r&&void 0!==r&&null!==r||(s=String(r)),s})),r&&(n="\uff3b"+n.replace(/[aouei]/g,"$&$&")+"\uff3d"),n}function o(e,t,...n){return s("number"===typeof e?a(e,t):t,n)}function a(e,t){const n=globalThis._VSCODE_NLS_MESSAGES?.[e];if("string"!==typeof n){if("string"===typeof t)return t;throw new Error(`!!! NLS MISSING: ${e} !!!`)}return n}},8232:(e,t,n)=>{"use strict";n.r(t),n.d(t,{encodeSemanticTokensDto:()=>s});var i=n(1674),r=n(8067);function s(e){const t=new Uint32Array(function(e){let t=0;if(t+=2,"full"===e.type)t+=1+e.data.length;else{t+=1,t+=3*e.deltas.length;for(const n of e.deltas)n.data&&(t+=n.data.length)}return t}(e));let n=0;if(t[n++]=e.id,"full"===e.type)t[n++]=1,t[n++]=e.data.length,t.set(e.data,n),n+=e.data.length;else{t[n++]=2,t[n++]=e.deltas.length;for(const i of e.deltas)t[n++]=i.start,t[n++]=i.deleteCount,i.data?(t[n++]=i.data.length,t.set(i.data,n),n+=i.data.length):t[n++]=0}return function(e){const t=new Uint8Array(e.buffer,e.byteOffset,4*e.length);return r.cm()||function(e){for(let t=0,n=e.length;t<n;t+=4){const n=e[t+0],i=e[t+1],r=e[t+2],s=e[t+3];e[t+0]=s,e[t+1]=r,e[t+2]=i,e[t+3]=n}}(t),i.MB.wrap(t)}(t)}},8381:(e,t,n)=>{"use strict";n.d(t,{W:()=>r});const i=globalThis.performance&&"function"===typeof globalThis.performance.now;class r{static create(e){return new r(e)}constructor(e){this._now=i&&!1===e?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}}},8447:(e,t,n)=>{"use strict";n.d(t,{Qi:()=>a});var i=n(1234);const r=Object.freeze((function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}}));var s;!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||(t instanceof o||!(!t||"object"!==typeof t)&&("boolean"===typeof t.isCancellationRequested&&"function"===typeof t.onCancellationRequested))},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:i.Jh.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:r})}(s||(s={}));class o{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?r:(this._emitter||(this._emitter=new i.vl),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class a{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new o),this._token}cancel(){this._token?this._token instanceof o&&this._token.cancel():this._token=s.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof o&&this._token.dispose():this._token=s.None}}},8709:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ILanguageFeatureDebounceService:()=>m,LanguageFeatureDebounceService:()=>k});var i=n(5600),r=n(4320);function s(e,t,n){return Math.min(Math.max(e,t),n)}class o{constructor(){this._n=1,this._val=0}update(e){return this._val=this._val+(e-this._val)/this._n,this._n+=1,this._val}get value(){return this._val}}class a{constructor(e){this._n=0,this._val=0,this._values=[],this._index=0,this._sum=0,this._values=new Array(e),this._values.fill(0,0,e)}update(e){const t=this._values[this._index];return this._values[this._index]=e,this._index=(this._index+1)%this._values.length,this._sum-=t,this._sum+=e,this._n<this._values.length&&(this._n+=1),this._val=this._sum/this._n,this._val}get value(){return this._val}}var l=n(3591);const h=(0,l.u1)("environmentService");var c=n(4621),u=n(3511),d=n(6456),g=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},f=function(e,t){return function(n,i){t(n,i,e)}};const m=(0,l.u1)("ILanguageFeatureDebounceService");var p;!function(e){const t=new WeakMap;let n=0;e.of=function(e){let i=t.get(e);return void 0===i&&(i=++n,t.set(e,i)),i}}(p||(p={}));class _{constructor(e){this._default=e}get(e){return this._default}update(e,t){return this._default}default(){return this._default}}class b{constructor(e,t,n,i,s,o){this._logService=e,this._name=t,this._registry=n,this._default=i,this._min=s,this._max=o,this._cache=new r.qK(50,.7)}_key(e){return e.id+this._registry.all(e).reduce(((e,t)=>(0,i.sN)(p.of(t),e)),0)}get(e){const t=this._key(e),n=this._cache.get(t);return n?s(n.value,this._min,this._max):this.default()}update(e,t){const n=this._key(e);let i=this._cache.get(n);i||(i=new a(6),this._cache.set(n,i));const r=s(i.update(t),this._min,this._max);return(0,d.v$)(e.uri,"output")||this._logService.trace(`[DEBOUNCE: ${this._name}] for ${e.uri.toString()} is ${r}ms`),r}_overall(){const e=new o;for(const[,t]of this._cache)e.update(t.value);return e.value}default(){return s(0|this._overall()||this._default,this._min,this._max)}}let k=class{constructor(e,t){this._logService=e,this._data=new Map,this._isDev=t.isExtensionDevelopment||!t.isBuilt}for(e,t,n){const i=n?.min??50,r=n?.max??i**2,s=n?.key??void 0,o=`${p.of(e)},${i}${s?","+s:""}`;let a=this._data.get(o);return a||(this._isDev?(this._logService.debug(`[DEBOUNCE: ${t}] is disabled in developed mode`),a=new _(1.5*i)):a=new b(this._logService,t,e,0|this._overallAverage()||1.5*i,i,r),this._data.set(o,a)),a}_overallAverage(){const e=new o;for(const t of this._data.values())e.update(t.default());return e.value}};k=g([f(0,u.rr),f(1,h)],k),(0,c.v)(m,k,1)},8748:(e,t,n)=>{"use strict";n.d(t,{F:()=>s});var i=n(1234),r=n(6359);const s={JSONContribution:"base.contributions.json"};const o=new class{constructor(){this._onDidChangeSchema=new i.vl,this.schemasById={}}registerSchema(e,t){var n;this.schemasById[(n=e,n.length>0&&"#"===n.charAt(n.length-1)?n.substring(0,n.length-1):n)]=t,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}};r.O.add(s.JSONContribution,o)},8821:(e,t,n)=>{"use strict";n.d(t,{P8:()=>N,pD:()=>E,LC:()=>I,fj:()=>w,S8:()=>y,SA:()=>L,V8:()=>x,hd:()=>S,Vn:()=>T,IN:()=>v});var i=n(8067);let r;const s=globalThis.vscode;if("undefined"!==typeof s&&"undefined"!==typeof s.process){const e=s.process;r={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd:()=>e.cwd()}}else r="undefined"!==typeof process&&"string"===typeof process?.versions?.node?{get platform(){return process.platform},get arch(){return process.arch},get env(){return{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}},cwd:()=>({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}.VSCODE_CWD||process.cwd())}:{get platform(){return i.uF?"win32":i.zx?"darwin":"linux"},get arch(){},get env(){return{}},cwd:()=>"/"};const o=r.cwd,a=(r.env,r.platform),l=46,h=47,c=92,u=58;class d extends Error{constructor(e,t,n){let i;"string"===typeof t&&0===t.indexOf("not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";const r=-1!==e.indexOf(".")?"property":"argument";let s=`The "${e}" ${r} ${i} of type ${t}`;s+=". Received type "+typeof n,super(s),this.code="ERR_INVALID_ARG_TYPE"}}function g(e,t){if("string"!==typeof e)throw new d(t,"string",e)}const f="win32"===a;function m(e){return e===h||e===c}function p(e){return e===h}function _(e){return e>=65&&e<=90||e>=97&&e<=122}function b(e,t,n,i){let r="",s=0,o=-1,a=0,c=0;for(let u=0;u<=e.length;++u){if(u<e.length)c=e.charCodeAt(u);else{if(i(c))break;c=h}if(i(c)){if(o===u-1||1===a);else if(2===a){if(r.length<2||2!==s||r.charCodeAt(r.length-1)!==l||r.charCodeAt(r.length-2)!==l){if(r.length>2){const e=r.lastIndexOf(n);-1===e?(r="",s=0):(r=r.slice(0,e),s=r.length-1-r.lastIndexOf(n)),o=u,a=0;continue}if(0!==r.length){r="",s=0,o=u,a=0;continue}}t&&(r+=r.length>0?`${n}..`:"..",s=2)}else r.length>0?r+=`${n}${e.slice(o+1,u)}`:r=e.slice(o+1,u),s=u-o-1;o=u,a=0}else c===l&&-1!==a?++a:a=-1}return r}function k(e,t){!function(e,t){if(null===e||"object"!==typeof e)throw new d(t,"Object",e)}(t,"pathObject");const n=t.dir||t.root,i=t.base||`${t.name||""}${r=t.ext,r?`${"."===r[0]?"":"."}${r}`:""}`;var r;return n?n===t.root?`${n}${i}`:`${n}${e}${i}`:i}const v={resolve(...e){let t="",n="",i=!1;for(let r=e.length-1;r>=-1;r--){let s;if(r>=0){if(s=e[r],g(s,`paths[${r}]`),0===s.length)continue}else 0===t.length?s=o():(s={NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}[`=${t}`]||o(),(void 0===s||s.slice(0,2).toLowerCase()!==t.toLowerCase()&&s.charCodeAt(2)===c)&&(s=`${t}\\`));const a=s.length;let l=0,h="",d=!1;const f=s.charCodeAt(0);if(1===a)m(f)&&(l=1,d=!0);else if(m(f))if(d=!0,m(s.charCodeAt(1))){let e=2,t=e;for(;e<a&&!m(s.charCodeAt(e));)e++;if(e<a&&e!==t){const n=s.slice(t,e);for(t=e;e<a&&m(s.charCodeAt(e));)e++;if(e<a&&e!==t){for(t=e;e<a&&!m(s.charCodeAt(e));)e++;e!==a&&e===t||(h=`\\\\${n}\\${s.slice(t,e)}`,l=e)}}}else l=1;else _(f)&&s.charCodeAt(1)===u&&(h=s.slice(0,2),l=2,a>2&&m(s.charCodeAt(2))&&(d=!0,l=3));if(h.length>0)if(t.length>0){if(h.toLowerCase()!==t.toLowerCase())continue}else t=h;if(i){if(t.length>0)break}else if(n=`${s.slice(l)}\\${n}`,i=d,d&&t.length>0)break}return n=b(n,!i,"\\",m),i?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){g(e,"path");const t=e.length;if(0===t)return".";let n,i=0,r=!1;const s=e.charCodeAt(0);if(1===t)return p(s)?"\\":e;if(m(s))if(r=!0,m(e.charCodeAt(1))){let r=2,s=r;for(;r<t&&!m(e.charCodeAt(r));)r++;if(r<t&&r!==s){const o=e.slice(s,r);for(s=r;r<t&&m(e.charCodeAt(r));)r++;if(r<t&&r!==s){for(s=r;r<t&&!m(e.charCodeAt(r));)r++;if(r===t)return`\\\\${o}\\${e.slice(s)}\\`;r!==s&&(n=`\\\\${o}\\${e.slice(s,r)}`,i=r)}}}else i=1;else _(s)&&e.charCodeAt(1)===u&&(n=e.slice(0,2),i=2,t>2&&m(e.charCodeAt(2))&&(r=!0,i=3));let o=i<t?b(e.slice(i),!r,"\\",m):"";return 0!==o.length||r||(o="."),o.length>0&&m(e.charCodeAt(t-1))&&(o+="\\"),void 0===n?r?`\\${o}`:o:r?`${n}\\${o}`:`${n}${o}`},isAbsolute(e){g(e,"path");const t=e.length;if(0===t)return!1;const n=e.charCodeAt(0);return m(n)||t>2&&_(n)&&e.charCodeAt(1)===u&&m(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let t,n;for(let s=0;s<e.length;++s){const i=e[s];g(i,"path"),i.length>0&&(void 0===t?t=n=i:t+=`\\${i}`)}if(void 0===t)return".";let i=!0,r=0;if("string"===typeof n&&m(n.charCodeAt(0))){++r;const e=n.length;e>1&&m(n.charCodeAt(1))&&(++r,e>2&&(m(n.charCodeAt(2))?++r:i=!1))}if(i){for(;r<t.length&&m(t.charCodeAt(r));)r++;r>=2&&(t=`\\${t.slice(r)}`)}return v.normalize(t)},relative(e,t){if(g(e,"from"),g(t,"to"),e===t)return"";const n=v.resolve(e),i=v.resolve(t);if(n===i)return"";if((e=n.toLowerCase())===(t=i.toLowerCase()))return"";let r=0;for(;r<e.length&&e.charCodeAt(r)===c;)r++;let s=e.length;for(;s-1>r&&e.charCodeAt(s-1)===c;)s--;const o=s-r;let a=0;for(;a<t.length&&t.charCodeAt(a)===c;)a++;let l=t.length;for(;l-1>a&&t.charCodeAt(l-1)===c;)l--;const h=l-a,u=o<h?o:h;let d=-1,f=0;for(;f<u;f++){const n=e.charCodeAt(r+f);if(n!==t.charCodeAt(a+f))break;n===c&&(d=f)}if(f!==u){if(-1===d)return i}else{if(h>u){if(t.charCodeAt(a+f)===c)return i.slice(a+f+1);if(2===f)return i.slice(a+f)}o>u&&(e.charCodeAt(r+f)===c?d=f:2===f&&(d=3)),-1===d&&(d=0)}let m="";for(f=r+d+1;f<=s;++f)f!==s&&e.charCodeAt(f)!==c||(m+=0===m.length?"..":"\\..");return a+=d,m.length>0?`${m}${i.slice(a,l)}`:(i.charCodeAt(a)===c&&++a,i.slice(a,l))},toNamespacedPath(e){if("string"!==typeof e||0===e.length)return e;const t=v.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===c){if(t.charCodeAt(1)===c){const e=t.charCodeAt(2);if(63!==e&&e!==l)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(_(t.charCodeAt(0))&&t.charCodeAt(1)===u&&t.charCodeAt(2)===c)return`\\\\?\\${t}`;return e},dirname(e){g(e,"path");const t=e.length;if(0===t)return".";let n=-1,i=0;const r=e.charCodeAt(0);if(1===t)return m(r)?e:".";if(m(r)){if(n=i=1,m(e.charCodeAt(1))){let r=2,s=r;for(;r<t&&!m(e.charCodeAt(r));)r++;if(r<t&&r!==s){for(s=r;r<t&&m(e.charCodeAt(r));)r++;if(r<t&&r!==s){for(s=r;r<t&&!m(e.charCodeAt(r));)r++;if(r===t)return e;r!==s&&(n=i=r+1)}}}}else _(r)&&e.charCodeAt(1)===u&&(n=t>2&&m(e.charCodeAt(2))?3:2,i=n);let s=-1,o=!0;for(let a=t-1;a>=i;--a)if(m(e.charCodeAt(a))){if(!o){s=a;break}}else o=!1;if(-1===s){if(-1===n)return".";s=n}return e.slice(0,s)},basename(e,t){void 0!==t&&g(t,"suffix"),g(e,"path");let n,i=0,r=-1,s=!0;if(e.length>=2&&_(e.charCodeAt(0))&&e.charCodeAt(1)===u&&(i=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(n=e.length-1;n>=i;--n){const l=e.charCodeAt(n);if(m(l)){if(!s){i=n+1;break}}else-1===a&&(s=!1,a=n+1),o>=0&&(l===t.charCodeAt(o)?-1===--o&&(r=n):(o=-1,r=a))}return i===r?r=a:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=i;--n)if(m(e.charCodeAt(n))){if(!s){i=n+1;break}}else-1===r&&(s=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname(e){g(e,"path");let t=0,n=-1,i=0,r=-1,s=!0,o=0;e.length>=2&&e.charCodeAt(1)===u&&_(e.charCodeAt(0))&&(t=i=2);for(let a=e.length-1;a>=t;--a){const t=e.charCodeAt(a);if(m(t)){if(!s){i=a+1;break}}else-1===r&&(s=!1,r=a+1),t===l?-1===n?n=a:1!==o&&(o=1):-1!==n&&(o=-1)}return-1===n||-1===r||0===o||1===o&&n===r-1&&n===i+1?"":e.slice(n,r)},format:k.bind(null,"\\"),parse(e){g(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.length;let i=0,r=e.charCodeAt(0);if(1===n)return m(r)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(m(r)){if(i=1,m(e.charCodeAt(1))){let t=2,r=t;for(;t<n&&!m(e.charCodeAt(t));)t++;if(t<n&&t!==r){for(r=t;t<n&&m(e.charCodeAt(t));)t++;if(t<n&&t!==r){for(r=t;t<n&&!m(e.charCodeAt(t));)t++;t===n?i=t:t!==r&&(i=t+1)}}}}else if(_(r)&&e.charCodeAt(1)===u){if(n<=2)return t.root=t.dir=e,t;if(i=2,m(e.charCodeAt(2))){if(3===n)return t.root=t.dir=e,t;i=3}}i>0&&(t.root=e.slice(0,i));let s=-1,o=i,a=-1,h=!0,c=e.length-1,d=0;for(;c>=i;--c)if(r=e.charCodeAt(c),m(r)){if(!h){o=c+1;break}}else-1===a&&(h=!1,a=c+1),r===l?-1===s?s=c:1!==d&&(d=1):-1!==s&&(d=-1);return-1!==a&&(-1===s||0===d||1===d&&s===a-1&&s===o+1?t.base=t.name=e.slice(o,a):(t.name=e.slice(o,s),t.base=e.slice(o,a),t.ext=e.slice(s,a))),t.dir=o>0&&o!==i?e.slice(0,o-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},C=(()=>{if(f){const e=/\\/g;return()=>{const t=o().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>o()})(),L={resolve(...e){let t="",n=!1;for(let i=e.length-1;i>=-1&&!n;i--){const r=i>=0?e[i]:C();g(r,`paths[${i}]`),0!==r.length&&(t=`${r}/${t}`,n=r.charCodeAt(0)===h)}return t=b(t,!n,"/",p),n?`/${t}`:t.length>0?t:"."},normalize(e){if(g(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===h,n=e.charCodeAt(e.length-1)===h;return 0===(e=b(e,!t,"/",p)).length?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute:e=>(g(e,"path"),e.length>0&&e.charCodeAt(0)===h),join(...e){if(0===e.length)return".";let t;for(let n=0;n<e.length;++n){const i=e[n];g(i,"path"),i.length>0&&(void 0===t?t=i:t+=`/${i}`)}return void 0===t?".":L.normalize(t)},relative(e,t){if(g(e,"from"),g(t,"to"),e===t)return"";if((e=L.resolve(e))===(t=L.resolve(t)))return"";const n=e.length,i=n-1,r=t.length-1,s=i<r?i:r;let o=-1,a=0;for(;a<s;a++){const n=e.charCodeAt(1+a);if(n!==t.charCodeAt(1+a))break;n===h&&(o=a)}if(a===s)if(r>s){if(t.charCodeAt(1+a)===h)return t.slice(1+a+1);if(0===a)return t.slice(1+a)}else i>s&&(e.charCodeAt(1+a)===h?o=a:0===a&&(o=0));let l="";for(a=1+o+1;a<=n;++a)a!==n&&e.charCodeAt(a)!==h||(l+=0===l.length?"..":"/..");return`${l}${t.slice(1+o)}`},toNamespacedPath:e=>e,dirname(e){if(g(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===h;let n=-1,i=!0;for(let r=e.length-1;r>=1;--r)if(e.charCodeAt(r)===h){if(!i){n=r;break}}else i=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename(e,t){void 0!==t&&g(t,"ext"),g(e,"path");let n,i=0,r=-1,s=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(n=e.length-1;n>=0;--n){const l=e.charCodeAt(n);if(l===h){if(!s){i=n+1;break}}else-1===a&&(s=!1,a=n+1),o>=0&&(l===t.charCodeAt(o)?-1===--o&&(r=n):(o=-1,r=a))}return i===r?r=a:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===h){if(!s){i=n+1;break}}else-1===r&&(s=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname(e){g(e,"path");let t=-1,n=0,i=-1,r=!0,s=0;for(let o=e.length-1;o>=0;--o){const a=e.charCodeAt(o);if(a!==h)-1===i&&(r=!1,i=o+1),a===l?-1===t?t=o:1!==s&&(s=1):-1!==t&&(s=-1);else if(!r){n=o+1;break}}return-1===t||-1===i||0===s||1===s&&t===i-1&&t===n+1?"":e.slice(t,i)},format:k.bind(null,"/"),parse(e){g(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.charCodeAt(0)===h;let i;n?(t.root="/",i=1):i=0;let r=-1,s=0,o=-1,a=!0,c=e.length-1,u=0;for(;c>=i;--c){const t=e.charCodeAt(c);if(t!==h)-1===o&&(a=!1,o=c+1),t===l?-1===r?r=c:1!==u&&(u=1):-1!==r&&(u=-1);else if(!a){s=c+1;break}}if(-1!==o){const i=0===s&&n?1:s;-1===r||0===u||1===u&&r===o-1&&r===s+1?t.base=t.name=e.slice(i,o):(t.name=e.slice(i,r),t.base=e.slice(i,o),t.ext=e.slice(r,o))}return s>0?t.dir=e.slice(0,s-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};L.win32=v.win32=v,L.posix=v.posix=L;const y=f?v.normalize:L.normalize,w=f?v.join:L.join,S=f?v.resolve:L.resolve,x=f?v.relative:L.relative,E=f?v.dirname:L.dirname,N=f?v.basename:L.basename,I=f?v.extname:L.extname,T=f?v.sep:L.sep},8868:(e,t,n)=>{"use strict";n.r(t)},8925:(e,t,n)=>{"use strict";n.d(t,{w:()=>r});class i{static{this.Undefined=new i(void 0)}constructor(e){this.element=e,this.next=i.Undefined,this.prev=i.Undefined}}class r{constructor(){this._first=i.Undefined,this._last=i.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===i.Undefined}clear(){let e=this._first;for(;e!==i.Undefined;){const t=e.next;e.prev=i.Undefined,e.next=i.Undefined,e=t}this._first=i.Undefined,this._last=i.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new i(e);if(this._first===i.Undefined)this._first=n,this._last=n;else if(t){const e=this._last;this._last=n,n.prev=e,e.next=n}else{const 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!==i.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==i.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==i.Undefined&&e.next!==i.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===i.Undefined&&e.next===i.Undefined?(this._first=i.Undefined,this._last=i.Undefined):e.next===i.Undefined?(this._last=this._last.prev,this._last.next=i.Undefined):e.prev===i.Undefined&&(this._first=this._first.next,this._first.prev=i.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==i.Undefined;)yield e.element,e=e.next}}},8938:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITextModelService:()=>i});const i=(0,n(3591).u1)("textModelService")},9100:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITreeViewsDnDService:()=>o});var i=n(4621),r=n(3591),s=n(6723);const o=(0,r.u1)("treeViewsDndService");(0,i.v)(o,s.TreeViewsDnDService,1)},9204:(e,t,n)=>{var i={"./editorBaseApi":[4272],"./editorBaseApi.js":[4272],"./editorSimpleWorker":[5196],"./editorSimpleWorker.js":[5196],"./editorWorker":[920,792],"./editorWorker.js":[920,792],"./editorWorkerHost":[718],"./editorWorkerHost.js":[718],"./findSectionHeaders":[6691],"./findSectionHeaders.js":[6691],"./getIconClasses":[5628,792],"./getIconClasses.js":[5628,792],"./languageFeatureDebounce":[8709,792],"./languageFeatureDebounce.js":[8709,792],"./languageFeatures":[6942,792],"./languageFeatures.js":[6942,792],"./languageFeaturesService":[2661,792],"./languageFeaturesService.js":[2661,792],"./languageService":[7596,792],"./languageService.js":[7596,792],"./languagesAssociations":[9908,792],"./languagesAssociations.js":[9908,792],"./languagesRegistry":[9259,792],"./languagesRegistry.js":[9259,792],"./markerDecorations":[7550,792],"./markerDecorations.js":[7550,792],"./markerDecorationsService":[448,792],"./markerDecorationsService.js":[448,792],"./model":[3750,792],"./model.js":[3750,792],"./modelService":[1773,792],"./modelService.js":[1773,792],"./resolverService":[8938,792],"./resolverService.js":[8938,792],"./semanticTokensDto":[8232,792],"./semanticTokensDto.js":[8232,792],"./semanticTokensProviderStyling":[5538,792],"./semanticTokensProviderStyling.js":[5538,792],"./semanticTokensStyling":[4243,792],"./semanticTokensStyling.js":[4243,792],"./semanticTokensStylingService":[7004,792],"./semanticTokensStylingService.js":[7004,792],"./textModelSync/textModelSync.impl":[796],"./textModelSync/textModelSync.impl.js":[796],"./textModelSync/textModelSync.protocol":[8868,792],"./textModelSync/textModelSync.protocol.js":[8868,792],"./textResourceConfiguration":[360,792],"./textResourceConfiguration.js":[360,792],"./treeSitterParserService":[4432,792],"./treeSitterParserService.js":[4432,792],"./treeViewsDnd":[6723,792],"./treeViewsDnd.js":[6723,792],"./treeViewsDndService":[9100,792],"./treeViewsDndService.js":[9100,792],"./unicodeTextModelHighlighter":[4855],"./unicodeTextModelHighlighter.js":[4855],"monaco-editor/esm/vs/editor/common/services/editorBaseApi":[4272],"monaco-editor/esm/vs/editor/common/services/editorBaseApi.js":[4272],"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker":[5196],"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker.js":[5196],"monaco-editor/esm/vs/editor/common/services/editorWorker":[920,792],"monaco-editor/esm/vs/editor/common/services/editorWorker.js":[920,792],"monaco-editor/esm/vs/editor/common/services/editorWorkerHost":[718],"monaco-editor/esm/vs/editor/common/services/editorWorkerHost.js":[718],"monaco-editor/esm/vs/editor/common/services/findSectionHeaders":[6691],"monaco-editor/esm/vs/editor/common/services/findSectionHeaders.js":[6691],"monaco-editor/esm/vs/editor/common/services/getIconClasses":[5628,792],"monaco-editor/esm/vs/editor/common/services/getIconClasses.js":[5628,792],"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce":[8709,792],"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce.js":[8709,792],"monaco-editor/esm/vs/editor/common/services/languageFeatures":[6942,792],"monaco-editor/esm/vs/editor/common/services/languageFeatures.js":[6942,792],"monaco-editor/esm/vs/editor/common/services/languageFeaturesService":[2661,792],"monaco-editor/esm/vs/editor/common/services/languageFeaturesService.js":[2661,792],"monaco-editor/esm/vs/editor/common/services/languageService":[7596,792],"monaco-editor/esm/vs/editor/common/services/languageService.js":[7596,792],"monaco-editor/esm/vs/editor/common/services/languagesAssociations":[9908,792],"monaco-editor/esm/vs/editor/common/services/languagesAssociations.js":[9908,792],"monaco-editor/esm/vs/editor/common/services/languagesRegistry":[9259,792],"monaco-editor/esm/vs/editor/common/services/languagesRegistry.js":[9259,792],"monaco-editor/esm/vs/editor/common/services/markerDecorations":[7550,792],"monaco-editor/esm/vs/editor/common/services/markerDecorations.js":[7550,792],"monaco-editor/esm/vs/editor/common/services/markerDecorationsService":[448,792],"monaco-editor/esm/vs/editor/common/services/markerDecorationsService.js":[448,792],"monaco-editor/esm/vs/editor/common/services/model":[3750,792],"monaco-editor/esm/vs/editor/common/services/model.js":[3750,792],"monaco-editor/esm/vs/editor/common/services/modelService":[1773,792],"monaco-editor/esm/vs/editor/common/services/modelService.js":[1773,792],"monaco-editor/esm/vs/editor/common/services/resolverService":[8938,792],"monaco-editor/esm/vs/editor/common/services/resolverService.js":[8938,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensDto":[8232,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensDto.js":[8232,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling":[5538,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling.js":[5538,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling":[4243,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling.js":[4243,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService":[7004,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService.js":[7004,792],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl":[796],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl.js":[796],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol":[8868,792],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol.js":[8868,792],"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration":[360,792],"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration.js":[360,792],"monaco-editor/esm/vs/editor/common/services/treeSitterParserService":[4432,792],"monaco-editor/esm/vs/editor/common/services/treeSitterParserService.js":[4432,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDnd":[6723,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDnd.js":[6723,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDndService":[9100,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDndService.js":[9100,792],"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter":[4855],"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter.js":[4855]};function r(e){if(!n.o(i,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=i[e],r=t[0];return Promise.all(t.slice(1).map(n.e)).then((()=>n(r)))}r.keys=()=>Object.keys(i),r.id=9204,e.exports=r},9259:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LanguageIdCodec:()=>d,LanguagesRegistry:()=>g});var i=n(1234),r=n(1484),s=n(1508),o=n(9908),a=n(3941),l=n(1646),h=n(6359);const c=Object.prototype.hasOwnProperty,u="vs.editor.nullLanguage";class d{constructor(){this._languageIdToLanguage=[],this._languageToLanguageId=new Map,this._register(u,0),this._register(a.vH,1),this._nextLanguageId=2}_register(e,t){this._languageIdToLanguage[t]=e,this._languageToLanguageId.set(e,t)}register(e){if(this._languageToLanguageId.has(e))return;const t=this._nextLanguageId++;this._register(e,t)}encodeLanguageId(e){return this._languageToLanguageId.get(e)||0}decodeLanguageId(e){return this._languageIdToLanguage[e]||u}}class g extends r.jG{static{this.instanceCount=0}constructor(e=!0,t=!1){super(),this._onDidChange=this._register(new i.vl),this.onDidChange=this._onDidChange.event,g.instanceCount++,this._warnOnOverwrite=t,this.languageIdCodec=new d,this._dynamicLanguages=[],this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},e&&(this._initializeFromRegistry(),this._register(a.W6.onDidChangeLanguages((e=>{this._initializeFromRegistry()}))))}dispose(){g.instanceCount--,super.dispose()}_initializeFromRegistry(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},(0,o.clearPlatformLanguageAssociations)();const e=[].concat(a.W6.getLanguages()).concat(this._dynamicLanguages);this._registerLanguages(e)}_registerLanguages(e){for(const t of e)this._registerLanguage(t);this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach((e=>{const t=this._languages[e];t.name&&(this._nameMap[t.name]=t.identifier),t.aliases.forEach((e=>{this._lowercaseNameMap[e.toLowerCase()]=t.identifier})),t.mimetypes.forEach((e=>{this._mimeTypesMap[e]=t.identifier}))})),h.O.as(l.Fd.Configuration).registerOverrideIdentifiers(this.getRegisteredLanguageIds()),this._onDidChange.fire()}_registerLanguage(e){const t=e.id;let n;c.call(this._languages,t)?n=this._languages[t]:(this.languageIdCodec.register(t),n={identifier:t,name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[],icons:[]},this._languages[t]=n),this._mergeLanguage(n,e)}_mergeLanguage(e,t){const n=t.id;let i=null;if(Array.isArray(t.mimetypes)&&t.mimetypes.length>0&&(e.mimetypes.push(...t.mimetypes),i=t.mimetypes[0]),i||(i=`text/x-${n}`,e.mimetypes.push(i)),Array.isArray(t.extensions)){t.configuration?e.extensions=t.extensions.concat(e.extensions):e.extensions=e.extensions.concat(t.extensions);for(const e of t.extensions)(0,o.registerPlatformLanguageAssociation)({id:n,mime:i,extension:e},this._warnOnOverwrite)}if(Array.isArray(t.filenames))for(const s of t.filenames)(0,o.registerPlatformLanguageAssociation)({id:n,mime:i,filename:s},this._warnOnOverwrite),e.filenames.push(s);if(Array.isArray(t.filenamePatterns))for(const s of t.filenamePatterns)(0,o.registerPlatformLanguageAssociation)({id:n,mime:i,filepattern:s},this._warnOnOverwrite);if("string"===typeof t.firstLine&&t.firstLine.length>0){let e=t.firstLine;"^"!==e.charAt(0)&&(e="^"+e);try{const t=new RegExp(e);(0,s.eY)(t)||(0,o.registerPlatformLanguageAssociation)({id:n,mime:i,firstline:t},this._warnOnOverwrite)}catch(l){console.warn(`[${t.id}]: Invalid regular expression \`${e}\`: `,l)}}e.aliases.push(n);let r=null;if("undefined"!==typeof t.aliases&&Array.isArray(t.aliases)&&(r=0===t.aliases.length?[null]:t.aliases),null!==r)for(const s of r)s&&0!==s.length&&e.aliases.push(s);const a=null!==r&&r.length>0;if(a&&null===r[0]);else{const t=(a?r[0]:null)||n;!a&&e.name||(e.name=t)}t.configuration&&e.configurationFiles.push(t.configuration),t.icon&&e.icons.push(t.icon)}isRegisteredLanguageId(e){return!!e&&c.call(this._languages,e)}getRegisteredLanguageIds(){return Object.keys(this._languages)}getLanguageIdByLanguageName(e){const t=e.toLowerCase();return c.call(this._lowercaseNameMap,t)?this._lowercaseNameMap[t]:null}getLanguageIdByMimeType(e){return e&&c.call(this._mimeTypesMap,e)?this._mimeTypesMap[e]:null}guessLanguageIdByFilepathOrFirstLine(e,t){return e||t?(0,o.getLanguageIds)(e,t):[]}}},9326:(e,t,n)=>{"use strict";n.d(t,{TH:()=>o,Zn:()=>l,_1:()=>h,kb:()=>a});var i=n(8821),r=(n(8067),n(1508));function s(e){return 47===e||92===e}function o(e){return e.replace(/[\\/]/g,i.SA.sep)}function a(e){return-1===e.indexOf("/")&&(e=o(e)),/^[a-zA-Z]:(\/|$)/.test(e)&&(e="/"+e),e}function l(e,t=i.SA.sep){if(!e)return"";const n=e.length,r=e.charCodeAt(0);if(s(r)){if(s(e.charCodeAt(1))&&!s(e.charCodeAt(2))){let i=3;const r=i;for(;i<n&&!s(e.charCodeAt(i));i++);if(r!==i&&!s(e.charCodeAt(i+1)))for(i+=1;i<n;i++)if(s(e.charCodeAt(i)))return e.slice(0,i+1).replace(/[\\/]/g,t)}return t}if(c(r)&&58===e.charCodeAt(1))return s(e.charCodeAt(2))?e.slice(0,2)+t:e.slice(0,2);let o=e.indexOf("://");if(-1!==o)for(o+=3;o<n;o++)if(s(e.charCodeAt(o)))return e.slice(0,o+1);return""}function h(e,t,n,s=i.Vn){if(e===t)return!0;if(!e||!t)return!1;if(t.length>e.length)return!1;if(n){if(!(0,r.ns)(e,t))return!1;if(t.length===e.length)return!0;let n=t.length;return t.charAt(t.length-1)===s&&n--,e.charAt(n)===s}return t.charAt(t.length-1)!==s&&(t+=s),0===e.indexOf(t)}function c(e){return e>=65&&e<=90||e>=97&&e<=122}},9400:(e,t,n)=>{"use strict";n.d(t,{I:()=>_,r:()=>u});var i=n(8821),r=n(8067);const s=/^\w[\w\d+.-]*$/,o=/^\//,a=/^\/\//;const l="",h="/",c=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class u{static isUri(e){return e instanceof u||!!e&&("string"===typeof e.authority&&"string"===typeof e.fragment&&"string"===typeof e.path&&"string"===typeof e.query&&"string"===typeof e.scheme&&"string"===typeof e.fsPath&&"function"===typeof e.with&&"function"===typeof e.toString)}constructor(e,t,n,i,r,c=!1){"object"===typeof e?(this.scheme=e.scheme||l,this.authority=e.authority||l,this.path=e.path||l,this.query=e.query||l,this.fragment=e.fragment||l):(this.scheme=function(e,t){return e||t?e:"file"}(e,c),this.authority=t||l,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==h&&(t=h+t):t=h}return t}(this.scheme,n||l),this.query=i||l,this.fragment=r||l,function(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!s.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!o.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(a.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,c))}get fsPath(){return _(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:i,query:r,fragment:s}=e;return void 0===t?t=this.scheme:null===t&&(t=l),void 0===n?n=this.authority:null===n&&(n=l),void 0===i?i=this.path:null===i&&(i=l),void 0===r?r=this.query:null===r&&(r=l),void 0===s?s=this.fragment:null===s&&(s=l),t===this.scheme&&n===this.authority&&i===this.path&&r===this.query&&s===this.fragment?this:new g(t,n,i,r,s)}static parse(e,t=!1){const n=c.exec(e);return n?new g(n[2]||l,C(n[4]||l),C(n[5]||l),C(n[7]||l),C(n[9]||l),t):new g(l,l,l,l,l)}static file(e){let t=l;if(r.uF&&(e=e.replace(/\\/g,h)),e[0]===h&&e[1]===h){const n=e.indexOf(h,2);-1===n?(t=e.substring(2),e=h):(t=e.substring(2,n),e=e.substring(n)||h)}return new g("file",t,e,l,l)}static from(e,t){return new g(e.scheme,e.authority,e.path,e.query,e.fragment,t)}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let n;return n=r.uF&&"file"===e.scheme?u.file(i.IN.join(_(e,!0),...t)).path:i.SA.join(e.path,...t),e.with({path:n})}toString(e=!1){return b(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof u)return e;{const t=new g(e);return t._formatted=e.external??null,t._fsPath=e._sep===d?e.fsPath??null:null,t}}return e}}const d=r.uF?1:void 0;class g extends u{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=_(this,!1)),this._fsPath}toString(e=!1){return e?b(this,!0):(this._formatted||(this._formatted=b(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=d),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}}const f={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 m(e,t,n){let i,r=-1;for(let s=0;s<e.length;s++){const o=e.charCodeAt(s);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o||n&&91===o||n&&93===o||n&&58===o)-1!==r&&(i+=encodeURIComponent(e.substring(r,s)),r=-1),void 0!==i&&(i+=e.charAt(s));else{void 0===i&&(i=e.substr(0,s));const t=f[o];void 0!==t?(-1!==r&&(i+=encodeURIComponent(e.substring(r,s)),r=-1),i+=t):-1===r&&(r=s)}}return-1!==r&&(i+=encodeURIComponent(e.substring(r))),void 0!==i?i:e}function p(e){let t;for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);35===i||63===i?(void 0===t&&(t=e.substr(0,n)),t+=f[i]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function _(e,t){let n;return n=e.authority&&e.path.length>1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,r.uF&&(n=n.replace(/\//g,"\\")),n}function b(e,t){const n=t?p:m;let i="",{scheme:r,authority:s,path:o,query:a,fragment:l}=e;if(r&&(i+=r,i+=":"),(s||"file"===r)&&(i+=h,i+=h),s){let e=s.indexOf("@");if(-1!==e){const t=s.substr(0,e);s=s.substr(e+1),e=t.lastIndexOf(":"),-1===e?i+=n(t,!1,!1):(i+=n(t.substr(0,e),!1,!1),i+=":",i+=n(t.substr(e+1),!1,!0)),i+="@"}s=s.toLowerCase(),e=s.lastIndexOf(":"),-1===e?i+=n(s,!1,!0):(i+=n(s.substr(0,e),!1,!0),i+=s.substr(e))}if(o){if(o.length>=3&&47===o.charCodeAt(0)&&58===o.charCodeAt(2)){const e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&58===o.charCodeAt(1)){const e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}i+=n(o,!0,!1)}return a&&(i+="?",i+=n(a,!1,!1)),l&&(i+="#",i+=t?l:m(l,!1,!1)),i}function k(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+k(e.substr(3)):e}}const v=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function C(e){return e.match(v)?e.replace(v,(e=>k(e))):e}},9403:(e,t,n)=>{"use strict";n.d(t,{B6:()=>m,P8:()=>d});var i=n(9326),r=n(6456),s=n(8821),o=n(8067),a=n(1508),l=n(9400);function h(e){return(0,l.I)(e,!0)}class c{constructor(e){this._ignorePathCasing=e}compare(e,t,n=!1){return e===t?0:(0,a.UD)(this.getComparisonKey(e,n),this.getComparisonKey(t,n))}isEqual(e,t,n=!1){return e===t||!(!e||!t)&&this.getComparisonKey(e,n)===this.getComparisonKey(t,n)}getComparisonKey(e,t=!1){return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:t?null:void 0}).toString()}isEqualOrParent(e,t,n=!1){if(e.scheme===t.scheme){if(e.scheme===r.ny.file)return i._1(h(e),h(t),this._ignorePathCasing(e))&&e.query===t.query&&(n||e.fragment===t.fragment);if(g(e.authority,t.authority))return i._1(e.path,t.path,this._ignorePathCasing(e),"/")&&e.query===t.query&&(n||e.fragment===t.fragment)}return!1}joinPath(e,...t){return l.r.joinPath(e,...t)}basenameOrAuthority(e){return d(e)||e.authority}basename(e){return s.SA.basename(e.path)}extname(e){return s.SA.extname(e.path)}dirname(e){if(0===e.path.length)return e;let t;return e.scheme===r.ny.file?t=l.r.file(s.pD(h(e))).path:(t=s.SA.dirname(e.path),e.authority&&t.length&&47!==t.charCodeAt(0)&&(console.error(`dirname("${e.toString})) resulted in a relative path`),t="/")),e.with({path:t})}normalizePath(e){if(!e.path.length)return e;let t;return t=e.scheme===r.ny.file?l.r.file(s.S8(h(e))).path:s.SA.normalize(e.path),e.with({path:t})}relativePath(e,t){if(e.scheme!==t.scheme||!g(e.authority,t.authority))return;if(e.scheme===r.ny.file){const n=s.V8(h(e),h(t));return o.uF?i.TH(n):n}let n=e.path||"/";const a=t.path||"/";if(this._ignorePathCasing(e)){let e=0;for(const t=Math.min(n.length,a.length);e<t&&(n.charCodeAt(e)===a.charCodeAt(e)||n.charAt(e).toLowerCase()===a.charAt(e).toLowerCase());e++);n=a.substr(0,e)+n.substr(e)}return s.SA.relative(n,a)}resolvePath(e,t){if(e.scheme===r.ny.file){const n=l.r.file(s.hd(h(e),t));return e.with({authority:n.authority,path:n.path})}return t=i.kb(t),e.with({path:s.SA.resolve(e.path,t)})}isAbsolutePath(e){return!!e.path&&"/"===e.path[0]}isEqualAuthority(e,t){return e===t||void 0!==e&&void 0!==t&&(0,a.Q_)(e,t)}hasTrailingPathSeparator(e,t=s.Vn){if(e.scheme===r.ny.file){const n=h(e);return n.length>i.Zn(n).length&&n[n.length-1]===t}{const t=e.path;return t.length>1&&47===t.charCodeAt(t.length-1)&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}}removeTrailingPathSeparator(e,t=s.Vn){return f(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e,t=s.Vn){let n=!1;if(e.scheme===r.ny.file){const r=h(e);n=void 0!==r&&r.length===i.Zn(r).length&&r[r.length-1]===t}else{t="/";const i=e.path;n=1===i.length&&47===i.charCodeAt(i.length-1)}return n||f(e,t)?e:e.with({path:e.path+"/"})}}const u=new c((()=>!1)),d=(new c((e=>e.scheme!==r.ny.file||!o.j9)),new c((e=>!0)),u.isEqual.bind(u),u.isEqualOrParent.bind(u),u.getComparisonKey.bind(u),u.basenameOrAuthority.bind(u),u.basename.bind(u)),g=(u.extname.bind(u),u.dirname.bind(u),u.joinPath.bind(u),u.normalizePath.bind(u),u.relativePath.bind(u),u.resolvePath.bind(u),u.isAbsolutePath.bind(u),u.isEqualAuthority.bind(u)),f=u.hasTrailingPathSeparator.bind(u);u.removeTrailingPathSeparator.bind(u),u.addTrailingPathSeparator.bind(u);var m;!function(e){e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=function(t){const n=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach((e=>{const[t,i]=e.split(":");t&&i&&n.set(t,i)}));const i=t.path.substring(0,t.path.indexOf(";"));return i&&n.set(e.META_DATA_MIME,i),n}}(m||(m={}))},9493:(e,t,n)=>{"use strict";n.d(t,{W:()=>o});var i=n(631);const r=Object.create(null);function s(e,t){if((0,i.Kg)(t)){const n=r[t];if(void 0===n)throw new Error(`${e} references an unknown codicon: ${t}`);t=n}return r[e]=t,{id:e}}const o={...{add:s("add",6e4),plus:s("plus",6e4),gistNew:s("gist-new",6e4),repoCreate:s("repo-create",6e4),lightbulb:s("lightbulb",60001),lightBulb:s("light-bulb",60001),repo:s("repo",60002),repoDelete:s("repo-delete",60002),gistFork:s("gist-fork",60003),repoForked:s("repo-forked",60003),gitPullRequest:s("git-pull-request",60004),gitPullRequestAbandoned:s("git-pull-request-abandoned",60004),recordKeys:s("record-keys",60005),keyboard:s("keyboard",60005),tag:s("tag",60006),gitPullRequestLabel:s("git-pull-request-label",60006),tagAdd:s("tag-add",60006),tagRemove:s("tag-remove",60006),person:s("person",60007),personFollow:s("person-follow",60007),personOutline:s("person-outline",60007),personFilled:s("person-filled",60007),gitBranch:s("git-branch",60008),gitBranchCreate:s("git-branch-create",60008),gitBranchDelete:s("git-branch-delete",60008),sourceControl:s("source-control",60008),mirror:s("mirror",60009),mirrorPublic:s("mirror-public",60009),star:s("star",60010),starAdd:s("star-add",60010),starDelete:s("star-delete",60010),starEmpty:s("star-empty",60010),comment:s("comment",60011),commentAdd:s("comment-add",60011),alert:s("alert",60012),warning:s("warning",60012),search:s("search",60013),searchSave:s("search-save",60013),logOut:s("log-out",60014),signOut:s("sign-out",60014),logIn:s("log-in",60015),signIn:s("sign-in",60015),eye:s("eye",60016),eyeUnwatch:s("eye-unwatch",60016),eyeWatch:s("eye-watch",60016),circleFilled:s("circle-filled",60017),primitiveDot:s("primitive-dot",60017),closeDirty:s("close-dirty",60017),debugBreakpoint:s("debug-breakpoint",60017),debugBreakpointDisabled:s("debug-breakpoint-disabled",60017),debugHint:s("debug-hint",60017),terminalDecorationSuccess:s("terminal-decoration-success",60017),primitiveSquare:s("primitive-square",60018),edit:s("edit",60019),pencil:s("pencil",60019),info:s("info",60020),issueOpened:s("issue-opened",60020),gistPrivate:s("gist-private",60021),gitForkPrivate:s("git-fork-private",60021),lock:s("lock",60021),mirrorPrivate:s("mirror-private",60021),close:s("close",60022),removeClose:s("remove-close",60022),x:s("x",60022),repoSync:s("repo-sync",60023),sync:s("sync",60023),clone:s("clone",60024),desktopDownload:s("desktop-download",60024),beaker:s("beaker",60025),microscope:s("microscope",60025),vm:s("vm",60026),deviceDesktop:s("device-desktop",60026),file:s("file",60027),fileText:s("file-text",60027),more:s("more",60028),ellipsis:s("ellipsis",60028),kebabHorizontal:s("kebab-horizontal",60028),mailReply:s("mail-reply",60029),reply:s("reply",60029),organization:s("organization",60030),organizationFilled:s("organization-filled",60030),organizationOutline:s("organization-outline",60030),newFile:s("new-file",60031),fileAdd:s("file-add",60031),newFolder:s("new-folder",60032),fileDirectoryCreate:s("file-directory-create",60032),trash:s("trash",60033),trashcan:s("trashcan",60033),history:s("history",60034),clock:s("clock",60034),folder:s("folder",60035),fileDirectory:s("file-directory",60035),symbolFolder:s("symbol-folder",60035),logoGithub:s("logo-github",60036),markGithub:s("mark-github",60036),github:s("github",60036),terminal:s("terminal",60037),console:s("console",60037),repl:s("repl",60037),zap:s("zap",60038),symbolEvent:s("symbol-event",60038),error:s("error",60039),stop:s("stop",60039),variable:s("variable",60040),symbolVariable:s("symbol-variable",60040),array:s("array",60042),symbolArray:s("symbol-array",60042),symbolModule:s("symbol-module",60043),symbolPackage:s("symbol-package",60043),symbolNamespace:s("symbol-namespace",60043),symbolObject:s("symbol-object",60043),symbolMethod:s("symbol-method",60044),symbolFunction:s("symbol-function",60044),symbolConstructor:s("symbol-constructor",60044),symbolBoolean:s("symbol-boolean",60047),symbolNull:s("symbol-null",60047),symbolNumeric:s("symbol-numeric",60048),symbolNumber:s("symbol-number",60048),symbolStructure:s("symbol-structure",60049),symbolStruct:s("symbol-struct",60049),symbolParameter:s("symbol-parameter",60050),symbolTypeParameter:s("symbol-type-parameter",60050),symbolKey:s("symbol-key",60051),symbolText:s("symbol-text",60051),symbolReference:s("symbol-reference",60052),goToFile:s("go-to-file",60052),symbolEnum:s("symbol-enum",60053),symbolValue:s("symbol-value",60053),symbolRuler:s("symbol-ruler",60054),symbolUnit:s("symbol-unit",60054),activateBreakpoints:s("activate-breakpoints",60055),archive:s("archive",60056),arrowBoth:s("arrow-both",60057),arrowDown:s("arrow-down",60058),arrowLeft:s("arrow-left",60059),arrowRight:s("arrow-right",60060),arrowSmallDown:s("arrow-small-down",60061),arrowSmallLeft:s("arrow-small-left",60062),arrowSmallRight:s("arrow-small-right",60063),arrowSmallUp:s("arrow-small-up",60064),arrowUp:s("arrow-up",60065),bell:s("bell",60066),bold:s("bold",60067),book:s("book",60068),bookmark:s("bookmark",60069),debugBreakpointConditionalUnverified:s("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:s("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:s("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:s("debug-breakpoint-data-unverified",60072),debugBreakpointData:s("debug-breakpoint-data",60073),debugBreakpointDataDisabled:s("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:s("debug-breakpoint-log-unverified",60074),debugBreakpointLog:s("debug-breakpoint-log",60075),debugBreakpointLogDisabled:s("debug-breakpoint-log-disabled",60075),briefcase:s("briefcase",60076),broadcast:s("broadcast",60077),browser:s("browser",60078),bug:s("bug",60079),calendar:s("calendar",60080),caseSensitive:s("case-sensitive",60081),check:s("check",60082),checklist:s("checklist",60083),chevronDown:s("chevron-down",60084),chevronLeft:s("chevron-left",60085),chevronRight:s("chevron-right",60086),chevronUp:s("chevron-up",60087),chromeClose:s("chrome-close",60088),chromeMaximize:s("chrome-maximize",60089),chromeMinimize:s("chrome-minimize",60090),chromeRestore:s("chrome-restore",60091),circleOutline:s("circle-outline",60092),circle:s("circle",60092),debugBreakpointUnverified:s("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:s("terminal-decoration-incomplete",60092),circleSlash:s("circle-slash",60093),circuitBoard:s("circuit-board",60094),clearAll:s("clear-all",60095),clippy:s("clippy",60096),closeAll:s("close-all",60097),cloudDownload:s("cloud-download",60098),cloudUpload:s("cloud-upload",60099),code:s("code",60100),collapseAll:s("collapse-all",60101),colorMode:s("color-mode",60102),commentDiscussion:s("comment-discussion",60103),creditCard:s("credit-card",60105),dash:s("dash",60108),dashboard:s("dashboard",60109),database:s("database",60110),debugContinue:s("debug-continue",60111),debugDisconnect:s("debug-disconnect",60112),debugPause:s("debug-pause",60113),debugRestart:s("debug-restart",60114),debugStart:s("debug-start",60115),debugStepInto:s("debug-step-into",60116),debugStepOut:s("debug-step-out",60117),debugStepOver:s("debug-step-over",60118),debugStop:s("debug-stop",60119),debug:s("debug",60120),deviceCameraVideo:s("device-camera-video",60121),deviceCamera:s("device-camera",60122),deviceMobile:s("device-mobile",60123),diffAdded:s("diff-added",60124),diffIgnored:s("diff-ignored",60125),diffModified:s("diff-modified",60126),diffRemoved:s("diff-removed",60127),diffRenamed:s("diff-renamed",60128),diff:s("diff",60129),diffSidebyside:s("diff-sidebyside",60129),discard:s("discard",60130),editorLayout:s("editor-layout",60131),emptyWindow:s("empty-window",60132),exclude:s("exclude",60133),extensions:s("extensions",60134),eyeClosed:s("eye-closed",60135),fileBinary:s("file-binary",60136),fileCode:s("file-code",60137),fileMedia:s("file-media",60138),filePdf:s("file-pdf",60139),fileSubmodule:s("file-submodule",60140),fileSymlinkDirectory:s("file-symlink-directory",60141),fileSymlinkFile:s("file-symlink-file",60142),fileZip:s("file-zip",60143),files:s("files",60144),filter:s("filter",60145),flame:s("flame",60146),foldDown:s("fold-down",60147),foldUp:s("fold-up",60148),fold:s("fold",60149),folderActive:s("folder-active",60150),folderOpened:s("folder-opened",60151),gear:s("gear",60152),gift:s("gift",60153),gistSecret:s("gist-secret",60154),gist:s("gist",60155),gitCommit:s("git-commit",60156),gitCompare:s("git-compare",60157),compareChanges:s("compare-changes",60157),gitMerge:s("git-merge",60158),githubAction:s("github-action",60159),githubAlt:s("github-alt",60160),globe:s("globe",60161),grabber:s("grabber",60162),graph:s("graph",60163),gripper:s("gripper",60164),heart:s("heart",60165),home:s("home",60166),horizontalRule:s("horizontal-rule",60167),hubot:s("hubot",60168),inbox:s("inbox",60169),issueReopened:s("issue-reopened",60171),issues:s("issues",60172),italic:s("italic",60173),jersey:s("jersey",60174),json:s("json",60175),kebabVertical:s("kebab-vertical",60176),key:s("key",60177),law:s("law",60178),lightbulbAutofix:s("lightbulb-autofix",60179),linkExternal:s("link-external",60180),link:s("link",60181),listOrdered:s("list-ordered",60182),listUnordered:s("list-unordered",60183),liveShare:s("live-share",60184),loading:s("loading",60185),location:s("location",60186),mailRead:s("mail-read",60187),mail:s("mail",60188),markdown:s("markdown",60189),megaphone:s("megaphone",60190),mention:s("mention",60191),milestone:s("milestone",60192),gitPullRequestMilestone:s("git-pull-request-milestone",60192),mortarBoard:s("mortar-board",60193),move:s("move",60194),multipleWindows:s("multiple-windows",60195),mute:s("mute",60196),noNewline:s("no-newline",60197),note:s("note",60198),octoface:s("octoface",60199),openPreview:s("open-preview",60200),package:s("package",60201),paintcan:s("paintcan",60202),pin:s("pin",60203),play:s("play",60204),run:s("run",60204),plug:s("plug",60205),preserveCase:s("preserve-case",60206),preview:s("preview",60207),project:s("project",60208),pulse:s("pulse",60209),question:s("question",60210),quote:s("quote",60211),radioTower:s("radio-tower",60212),reactions:s("reactions",60213),references:s("references",60214),refresh:s("refresh",60215),regex:s("regex",60216),remoteExplorer:s("remote-explorer",60217),remote:s("remote",60218),remove:s("remove",60219),replaceAll:s("replace-all",60220),replace:s("replace",60221),repoClone:s("repo-clone",60222),repoForcePush:s("repo-force-push",60223),repoPull:s("repo-pull",60224),repoPush:s("repo-push",60225),report:s("report",60226),requestChanges:s("request-changes",60227),rocket:s("rocket",60228),rootFolderOpened:s("root-folder-opened",60229),rootFolder:s("root-folder",60230),rss:s("rss",60231),ruby:s("ruby",60232),saveAll:s("save-all",60233),saveAs:s("save-as",60234),save:s("save",60235),screenFull:s("screen-full",60236),screenNormal:s("screen-normal",60237),searchStop:s("search-stop",60238),server:s("server",60240),settingsGear:s("settings-gear",60241),settings:s("settings",60242),shield:s("shield",60243),smiley:s("smiley",60244),sortPrecedence:s("sort-precedence",60245),splitHorizontal:s("split-horizontal",60246),splitVertical:s("split-vertical",60247),squirrel:s("squirrel",60248),starFull:s("star-full",60249),starHalf:s("star-half",60250),symbolClass:s("symbol-class",60251),symbolColor:s("symbol-color",60252),symbolConstant:s("symbol-constant",60253),symbolEnumMember:s("symbol-enum-member",60254),symbolField:s("symbol-field",60255),symbolFile:s("symbol-file",60256),symbolInterface:s("symbol-interface",60257),symbolKeyword:s("symbol-keyword",60258),symbolMisc:s("symbol-misc",60259),symbolOperator:s("symbol-operator",60260),symbolProperty:s("symbol-property",60261),wrench:s("wrench",60261),wrenchSubaction:s("wrench-subaction",60261),symbolSnippet:s("symbol-snippet",60262),tasklist:s("tasklist",60263),telescope:s("telescope",60264),textSize:s("text-size",60265),threeBars:s("three-bars",60266),thumbsdown:s("thumbsdown",60267),thumbsup:s("thumbsup",60268),tools:s("tools",60269),triangleDown:s("triangle-down",60270),triangleLeft:s("triangle-left",60271),triangleRight:s("triangle-right",60272),triangleUp:s("triangle-up",60273),twitter:s("twitter",60274),unfold:s("unfold",60275),unlock:s("unlock",60276),unmute:s("unmute",60277),unverified:s("unverified",60278),verified:s("verified",60279),versions:s("versions",60280),vmActive:s("vm-active",60281),vmOutline:s("vm-outline",60282),vmRunning:s("vm-running",60283),watch:s("watch",60284),whitespace:s("whitespace",60285),wholeWord:s("whole-word",60286),window:s("window",60287),wordWrap:s("word-wrap",60288),zoomIn:s("zoom-in",60289),zoomOut:s("zoom-out",60290),listFilter:s("list-filter",60291),listFlat:s("list-flat",60292),listSelection:s("list-selection",60293),selection:s("selection",60293),listTree:s("list-tree",60294),debugBreakpointFunctionUnverified:s("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:s("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:s("debug-breakpoint-function-disabled",60296),debugStackframeActive:s("debug-stackframe-active",60297),circleSmallFilled:s("circle-small-filled",60298),debugStackframeDot:s("debug-stackframe-dot",60298),terminalDecorationMark:s("terminal-decoration-mark",60298),debugStackframe:s("debug-stackframe",60299),debugStackframeFocused:s("debug-stackframe-focused",60299),debugBreakpointUnsupported:s("debug-breakpoint-unsupported",60300),symbolString:s("symbol-string",60301),debugReverseContinue:s("debug-reverse-continue",60302),debugStepBack:s("debug-step-back",60303),debugRestartFrame:s("debug-restart-frame",60304),debugAlt:s("debug-alt",60305),callIncoming:s("call-incoming",60306),callOutgoing:s("call-outgoing",60307),menu:s("menu",60308),expandAll:s("expand-all",60309),feedback:s("feedback",60310),gitPullRequestReviewer:s("git-pull-request-reviewer",60310),groupByRefType:s("group-by-ref-type",60311),ungroupByRefType:s("ungroup-by-ref-type",60312),account:s("account",60313),gitPullRequestAssignee:s("git-pull-request-assignee",60313),bellDot:s("bell-dot",60314),debugConsole:s("debug-console",60315),library:s("library",60316),output:s("output",60317),runAll:s("run-all",60318),syncIgnored:s("sync-ignored",60319),pinned:s("pinned",60320),githubInverted:s("github-inverted",60321),serverProcess:s("server-process",60322),serverEnvironment:s("server-environment",60323),pass:s("pass",60324),issueClosed:s("issue-closed",60324),stopCircle:s("stop-circle",60325),playCircle:s("play-circle",60326),record:s("record",60327),debugAltSmall:s("debug-alt-small",60328),vmConnect:s("vm-connect",60329),cloud:s("cloud",60330),merge:s("merge",60331),export:s("export",60332),graphLeft:s("graph-left",60333),magnet:s("magnet",60334),notebook:s("notebook",60335),redo:s("redo",60336),checkAll:s("check-all",60337),pinnedDirty:s("pinned-dirty",60338),passFilled:s("pass-filled",60339),circleLargeFilled:s("circle-large-filled",60340),circleLarge:s("circle-large",60341),circleLargeOutline:s("circle-large-outline",60341),combine:s("combine",60342),gather:s("gather",60342),table:s("table",60343),variableGroup:s("variable-group",60344),typeHierarchy:s("type-hierarchy",60345),typeHierarchySub:s("type-hierarchy-sub",60346),typeHierarchySuper:s("type-hierarchy-super",60347),gitPullRequestCreate:s("git-pull-request-create",60348),runAbove:s("run-above",60349),runBelow:s("run-below",60350),notebookTemplate:s("notebook-template",60351),debugRerun:s("debug-rerun",60352),workspaceTrusted:s("workspace-trusted",60353),workspaceUntrusted:s("workspace-untrusted",60354),workspaceUnknown:s("workspace-unknown",60355),terminalCmd:s("terminal-cmd",60356),terminalDebian:s("terminal-debian",60357),terminalLinux:s("terminal-linux",60358),terminalPowershell:s("terminal-powershell",60359),terminalTmux:s("terminal-tmux",60360),terminalUbuntu:s("terminal-ubuntu",60361),terminalBash:s("terminal-bash",60362),arrowSwap:s("arrow-swap",60363),copy:s("copy",60364),personAdd:s("person-add",60365),filterFilled:s("filter-filled",60366),wand:s("wand",60367),debugLineByLine:s("debug-line-by-line",60368),inspect:s("inspect",60369),layers:s("layers",60370),layersDot:s("layers-dot",60371),layersActive:s("layers-active",60372),compass:s("compass",60373),compassDot:s("compass-dot",60374),compassActive:s("compass-active",60375),azure:s("azure",60376),issueDraft:s("issue-draft",60377),gitPullRequestClosed:s("git-pull-request-closed",60378),gitPullRequestDraft:s("git-pull-request-draft",60379),debugAll:s("debug-all",60380),debugCoverage:s("debug-coverage",60381),runErrors:s("run-errors",60382),folderLibrary:s("folder-library",60383),debugContinueSmall:s("debug-continue-small",60384),beakerStop:s("beaker-stop",60385),graphLine:s("graph-line",60386),graphScatter:s("graph-scatter",60387),pieChart:s("pie-chart",60388),bracket:s("bracket",60175),bracketDot:s("bracket-dot",60389),bracketError:s("bracket-error",60390),lockSmall:s("lock-small",60391),azureDevops:s("azure-devops",60392),verifiedFilled:s("verified-filled",60393),newline:s("newline",60394),layout:s("layout",60395),layoutActivitybarLeft:s("layout-activitybar-left",60396),layoutActivitybarRight:s("layout-activitybar-right",60397),layoutPanelLeft:s("layout-panel-left",60398),layoutPanelCenter:s("layout-panel-center",60399),layoutPanelJustify:s("layout-panel-justify",60400),layoutPanelRight:s("layout-panel-right",60401),layoutPanel:s("layout-panel",60402),layoutSidebarLeft:s("layout-sidebar-left",60403),layoutSidebarRight:s("layout-sidebar-right",60404),layoutStatusbar:s("layout-statusbar",60405),layoutMenubar:s("layout-menubar",60406),layoutCentered:s("layout-centered",60407),target:s("target",60408),indent:s("indent",60409),recordSmall:s("record-small",60410),errorSmall:s("error-small",60411),terminalDecorationError:s("terminal-decoration-error",60411),arrowCircleDown:s("arrow-circle-down",60412),arrowCircleLeft:s("arrow-circle-left",60413),arrowCircleRight:s("arrow-circle-right",60414),arrowCircleUp:s("arrow-circle-up",60415),layoutSidebarRightOff:s("layout-sidebar-right-off",60416),layoutPanelOff:s("layout-panel-off",60417),layoutSidebarLeftOff:s("layout-sidebar-left-off",60418),blank:s("blank",60419),heartFilled:s("heart-filled",60420),map:s("map",60421),mapHorizontal:s("map-horizontal",60421),foldHorizontal:s("fold-horizontal",60421),mapFilled:s("map-filled",60422),mapHorizontalFilled:s("map-horizontal-filled",60422),foldHorizontalFilled:s("fold-horizontal-filled",60422),circleSmall:s("circle-small",60423),bellSlash:s("bell-slash",60424),bellSlashDot:s("bell-slash-dot",60425),commentUnresolved:s("comment-unresolved",60426),gitPullRequestGoToChanges:s("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:s("git-pull-request-new-changes",60428),searchFuzzy:s("search-fuzzy",60429),commentDraft:s("comment-draft",60430),send:s("send",60431),sparkle:s("sparkle",60432),insert:s("insert",60433),mic:s("mic",60434),thumbsdownFilled:s("thumbsdown-filled",60435),thumbsupFilled:s("thumbsup-filled",60436),coffee:s("coffee",60437),snake:s("snake",60438),game:s("game",60439),vr:s("vr",60440),chip:s("chip",60441),piano:s("piano",60442),music:s("music",60443),micFilled:s("mic-filled",60444),repoFetch:s("repo-fetch",60445),copilot:s("copilot",60446),lightbulbSparkle:s("lightbulb-sparkle",60447),robot:s("robot",60448),sparkleFilled:s("sparkle-filled",60449),diffSingle:s("diff-single",60450),diffMultiple:s("diff-multiple",60451),surroundWith:s("surround-with",60452),share:s("share",60453),gitStash:s("git-stash",60454),gitStashApply:s("git-stash-apply",60455),gitStashPop:s("git-stash-pop",60456),vscode:s("vscode",60457),vscodeInsiders:s("vscode-insiders",60458),codeOss:s("code-oss",60459),runCoverage:s("run-coverage",60460),runAllCoverage:s("run-all-coverage",60461),coverage:s("coverage",60462),githubProject:s("github-project",60463),mapVertical:s("map-vertical",60464),foldVertical:s("fold-vertical",60464),mapVerticalFilled:s("map-vertical-filled",60465),foldVerticalFilled:s("fold-vertical-filled",60465),goToSearch:s("go-to-search",60466),percentage:s("percentage",60467),sortPercentage:s("sort-percentage",60467),attach:s("attach",60468)},...{dialogError:s("dialog-error","error"),dialogWarning:s("dialog-warning","warning"),dialogInfo:s("dialog-info","info"),dialogClose:s("dialog-close","close"),treeItemExpanded:s("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:s("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:s("tree-filter-on-type-off","list-selection"),treeFilterClear:s("tree-filter-clear","close"),treeItemLoading:s("tree-item-loading","loading"),menuSelection:s("menu-selection","check"),menuSubmenu:s("menu-submenu","chevron-right"),menuBarMore:s("menubar-more","more"),scrollbarButtonLeft:s("scrollbar-button-left","triangle-left"),scrollbarButtonRight:s("scrollbar-button-right","triangle-right"),scrollbarButtonUp:s("scrollbar-button-up","triangle-up"),scrollbarButtonDown:s("scrollbar-button-down","triangle-down"),toolBarMore:s("toolbar-more","more"),quickInputBack:s("quick-input-back","arrow-left"),dropDownButton:s("drop-down-button",60084),symbolCustomColor:s("symbol-customcolor",60252),exportIcon:s("export",60332),workspaceUnspecified:s("workspace-unspecified",60355),newLine:s("newline",60394),thumbsDownFilled:s("thumbsdown-filled",60435),thumbsUpFilled:s("thumbsup-filled",60436),gitFetch:s("git-fetch",60445),lightbulbSparkleAutofix:s("lightbulb-sparkle-autofix",60447),debugBreakpointPending:s("debug-breakpoint-pending",60377)}}},9861:(e,t,n)=>{"use strict";function i(e,t,n=(e,t)=>e===t){if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(let i=0,r=e.length;i<r;i++)if(!n(e[i],t[i]))return!1;return!0}function*r(e,t){let n,i;for(const r of e)void 0!==i&&t(i,r)?n.push(r):(n&&(yield n),n=[r]),i=r;n&&(yield n)}function s(e,t){for(let n=0;n<=e.length;n++)t(0===n?void 0:e[n-1],n===e.length?void 0:e[n])}function o(e,t){for(let n=0;n<e.length;n++)t(0===n?void 0:e[n-1],e[n],n+1===e.length?void 0:e[n+1])}function a(e,t=e=>e){const n=new Set;return e.filter((e=>{const i=t(e);return!n.has(i)&&(n.add(i),!0)}))}function l(e,t){return e.length>0?e[0]:t}function h(e,t,n){const i=e.slice(0,t),r=e.slice(t);return i.concat(n,r)}function c(e,t){for(const n of t)e.push(n)}var u;function d(e,t){return(n,i)=>t(e(n),e(i))}n.d(t,{E4:()=>c,Fy:()=>l,Hw:()=>f,U9:()=>g,VE:()=>d,aI:()=>i,c1:()=>p,dM:()=>a,j3:()=>m,kj:()=>o,n:()=>r,nK:()=>h,pN:()=>s}),function(e){e.isLessThan=function(e){return e<0},e.isLessThanOrEqual=function(e){return e<=0},e.isGreaterThan=function(e){return e>0},e.isNeitherLessOrGreaterThan=function(e){return 0===e},e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0}(u||(u={}));const g=(e,t)=>e-t;function f(e){return(t,n)=>-e(t,n)}class m{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t<this.items.length&&e(this.items[t]);)t++;const n=t===this.firstIdx?null:this.items.slice(this.firstIdx,t);return this.firstIdx=t,n}takeFromEndWhile(e){let t=this.lastIdx;for(;t>=0&&e(this.items[t]);)t--;const n=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,n}peek(){if(0!==this.length)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class p{static{this.empty=new p((e=>{}))}constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate((t=>(e.push(t),!0))),e}filter(e){return new p((t=>this.iterate((n=>!e(n)||t(n)))))}map(e){return new p((t=>this.iterate((n=>t(e(n))))))}findLast(e){let t;return this.iterate((n=>(e(n)&&(t=n),!0))),t}findLastMaxBy(e){let t,n=!0;return this.iterate((i=>((n||u.isGreaterThan(e(i,t)))&&(n=!1,t=i),!0))),t}}},9908:(e,t,n)=>{"use strict";n.r(t),n.d(t,{clearPlatformLanguageAssociations:()=>f,getLanguageIds:()=>m,registerPlatformLanguageAssociation:()=>g});var i=n(6958),r=n(1939),s=n(6456),o=n(8821),a=n(9403),l=n(1508),h=n(3941);let c=[],u=[],d=[];function g(e,t=!1){!function(e,t,n){const r=function(e,t){return{id:e.id,mime:e.mime,filename:e.filename,extension:e.extension,filepattern:e.filepattern,firstline:e.firstline,userConfigured:t,filenameLowercase:e.filename?e.filename.toLowerCase():void 0,extensionLowercase:e.extension?e.extension.toLowerCase():void 0,filepatternLowercase:e.filepattern?(0,i.qg)(e.filepattern.toLowerCase()):void 0,filepatternOnPath:!!e.filepattern&&e.filepattern.indexOf(o.SA.sep)>=0}}(e,t);c.push(r),r.userConfigured?d.push(r):u.push(r);n&&!r.userConfigured&&c.forEach((e=>{e.mime===r.mime||e.userConfigured||(r.extension&&e.extension===r.extension&&console.warn(`Overwriting extension <<${r.extension}>> to now point to mime <<${r.mime}>>`),r.filename&&e.filename===r.filename&&console.warn(`Overwriting filename <<${r.filename}>> to now point to mime <<${r.mime}>>`),r.filepattern&&e.filepattern===r.filepattern&&console.warn(`Overwriting filepattern <<${r.filepattern}>> to now point to mime <<${r.mime}>>`),r.firstline&&e.firstline===r.firstline&&console.warn(`Overwriting firstline <<${r.firstline}>> to now point to mime <<${r.mime}>>`))}))}(e,!1,t)}function f(){c=c.filter((e=>e.userConfigured)),u=[]}function m(e,t){return function(e,t){let n;if(e)switch(e.scheme){case s.ny.file:n=e.fsPath;break;case s.ny.data:n=a.B6.parseMetaData(e).get(a.B6.META_DATA_LABEL);break;case s.ny.vscodeNotebookCell:n=void 0;break;default:n=e.path}if(!n)return[{id:"unknown",mime:r.K.unknown}];n=n.toLowerCase();const i=(0,o.P8)(n),g=p(n,i,d);if(g)return[g,{id:h.vH,mime:r.K.text}];const f=p(n,i,u);if(f)return[f,{id:h.vH,mime:r.K.text}];if(t){const e=function(e){(0,l.LU)(e)&&(e=e.substr(1));if(e.length>0)for(let t=c.length-1;t>=0;t--){const n=c[t];if(!n.firstline)continue;const i=e.match(n.firstline);if(i&&i.length>0)return n}return}(t);if(e)return[e,{id:h.vH,mime:r.K.text}]}return[{id:"unknown",mime:r.K.unknown}]}(e,t).map((e=>e.id))}function p(e,t,n){let i,r,s;for(let o=n.length-1;o>=0;o--){const a=n[o];if(t===a.filenameLowercase){i=a;break}if(a.filepattern&&(!r||a.filepattern.length>r.filepattern.length)){const n=a.filepatternOnPath?e:t;a.filepatternLowercase?.(n)&&(r=a)}a.extension&&(!s||a.extension.length>s.extension.length)&&t.endsWith(a.extensionLowercase)&&(s=a)}return i||(r||(s||void 0))}}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var s=t[i]={exports:{}};return e[i](s,s.exports,n),s.exports}n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.e=()=>Promise.resolve(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=n(1929),t=n(5196),i=n(718);let r=!1;globalThis.onmessage=n=>{r||function(n){if(r)return;r=!0;const s=new e.SimpleWorkerServer((e=>{globalThis.postMessage(e)}),(e=>new t.EditorSimpleWorker(i.EditorWorkerHost.getChannel(e),n)));globalThis.onmessage=e=>{s.onmessage(e.data)}}(null)}})()})();
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/html.worker.js b/ydb/core/viewer/monitoring/html.worker.js index 51b5565992..cc29e85a83 100644 --- a/ydb/core/viewer/monitoring/html.worker.js +++ b/ydb/core/viewer/monitoring/html.worker.js @@ -1 +1 @@ -(()=>{var e={9861:(e,t,n)=>{"use strict";function i(e,t,n=(e,t)=>e===t){if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(let i=0,r=e.length;i<r;i++)if(!n(e[i],t[i]))return!1;return!0}function*r(e,t){let n,i;for(const r of e)void 0!==i&&t(i,r)?n.push(r):(n&&(yield n),n=[r]),i=r;n&&(yield n)}function s(e,t){for(let n=0;n<=e.length;n++)t(0===n?void 0:e[n-1],n===e.length?void 0:e[n])}function o(e,t){for(let n=0;n<e.length;n++)t(0===n?void 0:e[n-1],e[n],n+1===e.length?void 0:e[n+1])}function a(e,t=e=>e){const n=new Set;return e.filter((e=>{const i=t(e);return!n.has(i)&&(n.add(i),!0)}))}function l(e,t){return e.length>0?e[0]:t}function h(e,t,n){const i=e.slice(0,t),r=e.slice(t);return i.concat(n,r)}function c(e,t){for(const n of t)e.push(n)}var d;function u(e,t){return(n,i)=>t(e(n),e(i))}n.d(t,{E4:()=>c,Fy:()=>l,Hw:()=>f,U9:()=>g,VE:()=>u,aI:()=>i,c1:()=>p,dM:()=>a,j3:()=>m,kj:()=>o,n:()=>r,nK:()=>h,pN:()=>s}),function(e){e.isLessThan=function(e){return e<0},e.isLessThanOrEqual=function(e){return e<=0},e.isGreaterThan=function(e){return e>0},e.isNeitherLessOrGreaterThan=function(e){return 0===e},e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0}(d||(d={}));const g=(e,t)=>e-t;function f(e){return(t,n)=>-e(t,n)}class m{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t<this.items.length&&e(this.items[t]);)t++;const n=t===this.firstIdx?null:this.items.slice(this.firstIdx,t);return this.firstIdx=t,n}takeFromEndWhile(e){let t=this.lastIdx;for(;t>=0&&e(this.items[t]);)t--;const n=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,n}peek(){if(0!==this.length)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class p{static{this.empty=new p((e=>{}))}constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate((t=>(e.push(t),!0))),e}filter(e){return new p((t=>this.iterate((n=>!e(n)||t(n)))))}map(e){return new p((t=>this.iterate((n=>t(e(n))))))}findLast(e){let t;return this.iterate((n=>(e(n)&&(t=n),!0))),t}findLastMaxBy(e){let t,n=!0;return this.iterate((i=>((n||d.isGreaterThan(e(i,t)))&&(n=!1,t=i),!0))),t}}},6041:(e,t,n)=>{"use strict";function i(e,t){const n=function(e,t,n=e.length-1){for(let i=n;i>=0;i--){if(t(e[i]))return i}return-1}(e,t);if(-1!==n)return e[n]}function r(e,t){const n=s(e,t);return-1===n?void 0:e[n]}function s(e,t,n=0,i=e.length){let r=n,s=i;for(;r<s;){const n=Math.floor((r+s)/2);t(e[n])?r=n+1:s=n}return r-1}function o(e,t){const n=a(e,t);return n===e.length?void 0:e[n]}function a(e,t,n=0,i=e.length){let r=n,s=i;for(;r<s;){const n=Math.floor((r+s)/2);t(e[n])?s=n:r=n+1}return r}n.d(t,{Uk:()=>i,XP:()=>o,hw:()=>a,iM:()=>s,lx:()=>r,vJ:()=>l});class l{static{this.assertInvariants=!1}constructor(e){this._array=e,this._findLastMonotonousLastIdx=0}findLastMonotonous(e){if(l.assertInvariants){if(this._prevFindLastPredicate)for(const t of this._array)if(this._prevFindLastPredicate(t)&&!e(t))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.");this._prevFindLastPredicate=e}const t=s(this._array,e,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=t+1,-1===t?void 0:this._array[t]}}},6782:(e,t,n)=>{"use strict";n.d(t,{Ft:()=>o,Xo:()=>a,ok:()=>r,xb:()=>s});var i=n(4383);function r(e,t){if(!e)throw new Error(t?`Assertion failed (${t})`:"Assertion Failed")}function s(e,t="Unreachable"){throw new Error(t)}function o(e){e()||(e(),(0,i.dz)(new i.D7("Assertion Failed")))}function a(e,t){let n=0;for(;n<e.length-1;){if(!t(e[n],e[n+1]))return!1;n++}return!0}},1940:(e,t,n)=>{"use strict";n.d(t,{vb:()=>l,uC:()=>h,Qg:()=>a,$6:()=>c});n(8447);var i=n(4383),r=n(1234),s=n(1484),o=n(8067);Symbol("MicrotaskDelay");function a(e){return!!e&&"function"===typeof e.then}class l{constructor(){this.disposable=void 0,this.isDisposed=!1}cancel(){this.disposable?.dispose(),this.disposable=void 0}cancelAndSet(e,t,n=globalThis){if(this.isDisposed)throw new i.D7("Calling 'cancelAndSet' on a disposed IntervalTimer");this.cancel();const r=n.setInterval((()=>{e()}),t);this.disposable=(0,s.s)((()=>{n.clearInterval(r),this.disposable=void 0}))}dispose(){this.cancel(),this.isDisposed=!0}}class h{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return-1!==this.timeoutToken}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner?.()}}let c,d;d="function"!==typeof globalThis.requestIdleCallback||"function"!==typeof globalThis.cancelIdleCallback?(e,t)=>{(0,o._p)((()=>{if(n)return;const e=Date.now()+15,i={didTimeout:!0,timeRemaining:()=>Math.max(0,e-Date.now())};t(Object.freeze(i))}));let n=!1;return{dispose(){n||(n=!0)}}}:(e,t,n)=>{const i=e.requestIdleCallback(t,"number"===typeof n?{timeout:n}:void 0);let r=!1;return{dispose(){r||(r=!0,e.cancelIdleCallback(i))}}},c=e=>d(globalThis,e);var u;!function(e){e.settled=async function(e){let t;const n=await Promise.all(e.map((e=>e.then((e=>e),(e=>{t||(t=e)})))));if("undefined"!==typeof t)throw t;return n},e.withAsyncBody=function(e){return new Promise((async(t,n)=>{try{await e(t,n)}catch(i){n(i)}}))}}(u||(u={}));class g{static fromArray(e){return new g((t=>{t.emitMany(e)}))}static fromPromise(e){return new g((async t=>{t.emitMany(await e)}))}static fromPromises(e){return new g((async t=>{await Promise.all(e.map((async e=>t.emitOne(await e))))}))}static merge(e){return new g((async t=>{await Promise.all(e.map((async e=>{for await(const n of e)t.emitOne(n)})))}))}static{this.EMPTY=g.fromArray([])}constructor(e,t){this._state=0,this._results=[],this._error=null,this._onReturn=t,this._onStateChanged=new r.vl,queueMicrotask((async()=>{const t={emitOne:e=>this.emitOne(e),emitMany:e=>this.emitMany(e),reject:e=>this.reject(e)};try{await Promise.resolve(e(t)),this.resolve()}catch(n){this.reject(n)}finally{t.emitOne=void 0,t.emitMany=void 0,t.reject=void 0}}))}[Symbol.asyncIterator](){let e=0;return{next:async()=>{for(;;){if(2===this._state)throw this._error;if(e<this._results.length)return{done:!1,value:this._results[e++]};if(1===this._state)return{done:!0,value:void 0};await r.Jh.toPromise(this._onStateChanged.event)}},return:async()=>(this._onReturn?.(),{done:!0,value:void 0})}}static map(e,t){return new g((async n=>{for await(const i of e)n.emitOne(t(i))}))}map(e){return g.map(this,e)}static filter(e,t){return new g((async n=>{for await(const i of e)t(i)&&n.emitOne(i)}))}filter(e){return g.filter(this,e)}static coalesce(e){return g.filter(e,(e=>!!e))}coalesce(){return g.coalesce(this)}static async toPromise(e){const t=[];for await(const n of e)t.push(n);return t}toPromise(){return g.toPromise(this)}emitOne(e){0===this._state&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){0===this._state&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){0===this._state&&(this._state=1,this._onStateChanged.fire())}reject(e){0===this._state&&(this._state=2,this._error=e,this._onStateChanged.fire())}}},1674:(e,t,n)=>{"use strict";n.d(t,{$l:()=>a,Gs:()=>u,MB:()=>o,Sw:()=>c,bb:()=>h,gN:()=>l,pJ:()=>d});var i=n(1090);const r="undefined"!==typeof Buffer;new i.d((()=>new Uint8Array(256)));let s;class o{static wrap(e){return r&&!Buffer.isBuffer(e)&&(e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),new o(e)}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}toString(){return r?this.buffer.toString():(s||(s=new TextDecoder),s.decode(this.buffer))}}function a(e,t){return(e[t+0]|0)>>>0|e[t+1]<<8>>>0}function l(e,t,n){e[n+0]=255&t,t>>>=8,e[n+1]=255&t}function h(e,t){return e[t]*2**24+65536*e[t+1]+256*e[t+2]+e[t+3]}function c(e,t,n){e[n+3]=t,t>>>=8,e[n+2]=t,t>>>=8,e[n+1]=t,t>>>=8,e[n]=t}function d(e,t){return e[t]}function u(e,t,n){e[n]=t}},1788:(e,t,n)=>{"use strict";function i(e){return e}n.d(t,{VV:()=>s,o5:()=>r});class r{constructor(e,t){this.lastCache=void 0,this.lastArgKey=void 0,"function"===typeof e?(this._fn=e,this._computeKey=i):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this._fn(e)),this.lastCache}}class s{get cachedValues(){return this._map}constructor(e,t){this._map=new Map,this._map2=new Map,"function"===typeof e?(this._fn=e,this._computeKey=i):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);if(this._map2.has(t))return this._map2.get(t);const n=this._fn(e);return this._map.set(e,n),this._map2.set(t,n),n}}},8447:(e,t,n)=>{"use strict";n.d(t,{Qi:()=>a});var i=n(1234);const r=Object.freeze((function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}}));var s;!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||(t instanceof o||!(!t||"object"!==typeof t)&&("boolean"===typeof t.isCancellationRequested&&"function"===typeof t.onCancellationRequested))},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:i.Jh.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:r})}(s||(s={}));class o{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?r:(this._emitter||(this._emitter=new i.vl),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class a{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new o),this._token}cancel(){this._token?this._token instanceof o&&this._token.cancel():this._token=s.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof o&&this._token.dispose():this._token=s.None}}},9493:(e,t,n)=>{"use strict";n.d(t,{W:()=>o});var i=n(631);const r=Object.create(null);function s(e,t){if((0,i.Kg)(t)){const n=r[t];if(void 0===n)throw new Error(`${e} references an unknown codicon: ${t}`);t=n}return r[e]=t,{id:e}}const o={...{add:s("add",6e4),plus:s("plus",6e4),gistNew:s("gist-new",6e4),repoCreate:s("repo-create",6e4),lightbulb:s("lightbulb",60001),lightBulb:s("light-bulb",60001),repo:s("repo",60002),repoDelete:s("repo-delete",60002),gistFork:s("gist-fork",60003),repoForked:s("repo-forked",60003),gitPullRequest:s("git-pull-request",60004),gitPullRequestAbandoned:s("git-pull-request-abandoned",60004),recordKeys:s("record-keys",60005),keyboard:s("keyboard",60005),tag:s("tag",60006),gitPullRequestLabel:s("git-pull-request-label",60006),tagAdd:s("tag-add",60006),tagRemove:s("tag-remove",60006),person:s("person",60007),personFollow:s("person-follow",60007),personOutline:s("person-outline",60007),personFilled:s("person-filled",60007),gitBranch:s("git-branch",60008),gitBranchCreate:s("git-branch-create",60008),gitBranchDelete:s("git-branch-delete",60008),sourceControl:s("source-control",60008),mirror:s("mirror",60009),mirrorPublic:s("mirror-public",60009),star:s("star",60010),starAdd:s("star-add",60010),starDelete:s("star-delete",60010),starEmpty:s("star-empty",60010),comment:s("comment",60011),commentAdd:s("comment-add",60011),alert:s("alert",60012),warning:s("warning",60012),search:s("search",60013),searchSave:s("search-save",60013),logOut:s("log-out",60014),signOut:s("sign-out",60014),logIn:s("log-in",60015),signIn:s("sign-in",60015),eye:s("eye",60016),eyeUnwatch:s("eye-unwatch",60016),eyeWatch:s("eye-watch",60016),circleFilled:s("circle-filled",60017),primitiveDot:s("primitive-dot",60017),closeDirty:s("close-dirty",60017),debugBreakpoint:s("debug-breakpoint",60017),debugBreakpointDisabled:s("debug-breakpoint-disabled",60017),debugHint:s("debug-hint",60017),terminalDecorationSuccess:s("terminal-decoration-success",60017),primitiveSquare:s("primitive-square",60018),edit:s("edit",60019),pencil:s("pencil",60019),info:s("info",60020),issueOpened:s("issue-opened",60020),gistPrivate:s("gist-private",60021),gitForkPrivate:s("git-fork-private",60021),lock:s("lock",60021),mirrorPrivate:s("mirror-private",60021),close:s("close",60022),removeClose:s("remove-close",60022),x:s("x",60022),repoSync:s("repo-sync",60023),sync:s("sync",60023),clone:s("clone",60024),desktopDownload:s("desktop-download",60024),beaker:s("beaker",60025),microscope:s("microscope",60025),vm:s("vm",60026),deviceDesktop:s("device-desktop",60026),file:s("file",60027),fileText:s("file-text",60027),more:s("more",60028),ellipsis:s("ellipsis",60028),kebabHorizontal:s("kebab-horizontal",60028),mailReply:s("mail-reply",60029),reply:s("reply",60029),organization:s("organization",60030),organizationFilled:s("organization-filled",60030),organizationOutline:s("organization-outline",60030),newFile:s("new-file",60031),fileAdd:s("file-add",60031),newFolder:s("new-folder",60032),fileDirectoryCreate:s("file-directory-create",60032),trash:s("trash",60033),trashcan:s("trashcan",60033),history:s("history",60034),clock:s("clock",60034),folder:s("folder",60035),fileDirectory:s("file-directory",60035),symbolFolder:s("symbol-folder",60035),logoGithub:s("logo-github",60036),markGithub:s("mark-github",60036),github:s("github",60036),terminal:s("terminal",60037),console:s("console",60037),repl:s("repl",60037),zap:s("zap",60038),symbolEvent:s("symbol-event",60038),error:s("error",60039),stop:s("stop",60039),variable:s("variable",60040),symbolVariable:s("symbol-variable",60040),array:s("array",60042),symbolArray:s("symbol-array",60042),symbolModule:s("symbol-module",60043),symbolPackage:s("symbol-package",60043),symbolNamespace:s("symbol-namespace",60043),symbolObject:s("symbol-object",60043),symbolMethod:s("symbol-method",60044),symbolFunction:s("symbol-function",60044),symbolConstructor:s("symbol-constructor",60044),symbolBoolean:s("symbol-boolean",60047),symbolNull:s("symbol-null",60047),symbolNumeric:s("symbol-numeric",60048),symbolNumber:s("symbol-number",60048),symbolStructure:s("symbol-structure",60049),symbolStruct:s("symbol-struct",60049),symbolParameter:s("symbol-parameter",60050),symbolTypeParameter:s("symbol-type-parameter",60050),symbolKey:s("symbol-key",60051),symbolText:s("symbol-text",60051),symbolReference:s("symbol-reference",60052),goToFile:s("go-to-file",60052),symbolEnum:s("symbol-enum",60053),symbolValue:s("symbol-value",60053),symbolRuler:s("symbol-ruler",60054),symbolUnit:s("symbol-unit",60054),activateBreakpoints:s("activate-breakpoints",60055),archive:s("archive",60056),arrowBoth:s("arrow-both",60057),arrowDown:s("arrow-down",60058),arrowLeft:s("arrow-left",60059),arrowRight:s("arrow-right",60060),arrowSmallDown:s("arrow-small-down",60061),arrowSmallLeft:s("arrow-small-left",60062),arrowSmallRight:s("arrow-small-right",60063),arrowSmallUp:s("arrow-small-up",60064),arrowUp:s("arrow-up",60065),bell:s("bell",60066),bold:s("bold",60067),book:s("book",60068),bookmark:s("bookmark",60069),debugBreakpointConditionalUnverified:s("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:s("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:s("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:s("debug-breakpoint-data-unverified",60072),debugBreakpointData:s("debug-breakpoint-data",60073),debugBreakpointDataDisabled:s("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:s("debug-breakpoint-log-unverified",60074),debugBreakpointLog:s("debug-breakpoint-log",60075),debugBreakpointLogDisabled:s("debug-breakpoint-log-disabled",60075),briefcase:s("briefcase",60076),broadcast:s("broadcast",60077),browser:s("browser",60078),bug:s("bug",60079),calendar:s("calendar",60080),caseSensitive:s("case-sensitive",60081),check:s("check",60082),checklist:s("checklist",60083),chevronDown:s("chevron-down",60084),chevronLeft:s("chevron-left",60085),chevronRight:s("chevron-right",60086),chevronUp:s("chevron-up",60087),chromeClose:s("chrome-close",60088),chromeMaximize:s("chrome-maximize",60089),chromeMinimize:s("chrome-minimize",60090),chromeRestore:s("chrome-restore",60091),circleOutline:s("circle-outline",60092),circle:s("circle",60092),debugBreakpointUnverified:s("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:s("terminal-decoration-incomplete",60092),circleSlash:s("circle-slash",60093),circuitBoard:s("circuit-board",60094),clearAll:s("clear-all",60095),clippy:s("clippy",60096),closeAll:s("close-all",60097),cloudDownload:s("cloud-download",60098),cloudUpload:s("cloud-upload",60099),code:s("code",60100),collapseAll:s("collapse-all",60101),colorMode:s("color-mode",60102),commentDiscussion:s("comment-discussion",60103),creditCard:s("credit-card",60105),dash:s("dash",60108),dashboard:s("dashboard",60109),database:s("database",60110),debugContinue:s("debug-continue",60111),debugDisconnect:s("debug-disconnect",60112),debugPause:s("debug-pause",60113),debugRestart:s("debug-restart",60114),debugStart:s("debug-start",60115),debugStepInto:s("debug-step-into",60116),debugStepOut:s("debug-step-out",60117),debugStepOver:s("debug-step-over",60118),debugStop:s("debug-stop",60119),debug:s("debug",60120),deviceCameraVideo:s("device-camera-video",60121),deviceCamera:s("device-camera",60122),deviceMobile:s("device-mobile",60123),diffAdded:s("diff-added",60124),diffIgnored:s("diff-ignored",60125),diffModified:s("diff-modified",60126),diffRemoved:s("diff-removed",60127),diffRenamed:s("diff-renamed",60128),diff:s("diff",60129),diffSidebyside:s("diff-sidebyside",60129),discard:s("discard",60130),editorLayout:s("editor-layout",60131),emptyWindow:s("empty-window",60132),exclude:s("exclude",60133),extensions:s("extensions",60134),eyeClosed:s("eye-closed",60135),fileBinary:s("file-binary",60136),fileCode:s("file-code",60137),fileMedia:s("file-media",60138),filePdf:s("file-pdf",60139),fileSubmodule:s("file-submodule",60140),fileSymlinkDirectory:s("file-symlink-directory",60141),fileSymlinkFile:s("file-symlink-file",60142),fileZip:s("file-zip",60143),files:s("files",60144),filter:s("filter",60145),flame:s("flame",60146),foldDown:s("fold-down",60147),foldUp:s("fold-up",60148),fold:s("fold",60149),folderActive:s("folder-active",60150),folderOpened:s("folder-opened",60151),gear:s("gear",60152),gift:s("gift",60153),gistSecret:s("gist-secret",60154),gist:s("gist",60155),gitCommit:s("git-commit",60156),gitCompare:s("git-compare",60157),compareChanges:s("compare-changes",60157),gitMerge:s("git-merge",60158),githubAction:s("github-action",60159),githubAlt:s("github-alt",60160),globe:s("globe",60161),grabber:s("grabber",60162),graph:s("graph",60163),gripper:s("gripper",60164),heart:s("heart",60165),home:s("home",60166),horizontalRule:s("horizontal-rule",60167),hubot:s("hubot",60168),inbox:s("inbox",60169),issueReopened:s("issue-reopened",60171),issues:s("issues",60172),italic:s("italic",60173),jersey:s("jersey",60174),json:s("json",60175),kebabVertical:s("kebab-vertical",60176),key:s("key",60177),law:s("law",60178),lightbulbAutofix:s("lightbulb-autofix",60179),linkExternal:s("link-external",60180),link:s("link",60181),listOrdered:s("list-ordered",60182),listUnordered:s("list-unordered",60183),liveShare:s("live-share",60184),loading:s("loading",60185),location:s("location",60186),mailRead:s("mail-read",60187),mail:s("mail",60188),markdown:s("markdown",60189),megaphone:s("megaphone",60190),mention:s("mention",60191),milestone:s("milestone",60192),gitPullRequestMilestone:s("git-pull-request-milestone",60192),mortarBoard:s("mortar-board",60193),move:s("move",60194),multipleWindows:s("multiple-windows",60195),mute:s("mute",60196),noNewline:s("no-newline",60197),note:s("note",60198),octoface:s("octoface",60199),openPreview:s("open-preview",60200),package:s("package",60201),paintcan:s("paintcan",60202),pin:s("pin",60203),play:s("play",60204),run:s("run",60204),plug:s("plug",60205),preserveCase:s("preserve-case",60206),preview:s("preview",60207),project:s("project",60208),pulse:s("pulse",60209),question:s("question",60210),quote:s("quote",60211),radioTower:s("radio-tower",60212),reactions:s("reactions",60213),references:s("references",60214),refresh:s("refresh",60215),regex:s("regex",60216),remoteExplorer:s("remote-explorer",60217),remote:s("remote",60218),remove:s("remove",60219),replaceAll:s("replace-all",60220),replace:s("replace",60221),repoClone:s("repo-clone",60222),repoForcePush:s("repo-force-push",60223),repoPull:s("repo-pull",60224),repoPush:s("repo-push",60225),report:s("report",60226),requestChanges:s("request-changes",60227),rocket:s("rocket",60228),rootFolderOpened:s("root-folder-opened",60229),rootFolder:s("root-folder",60230),rss:s("rss",60231),ruby:s("ruby",60232),saveAll:s("save-all",60233),saveAs:s("save-as",60234),save:s("save",60235),screenFull:s("screen-full",60236),screenNormal:s("screen-normal",60237),searchStop:s("search-stop",60238),server:s("server",60240),settingsGear:s("settings-gear",60241),settings:s("settings",60242),shield:s("shield",60243),smiley:s("smiley",60244),sortPrecedence:s("sort-precedence",60245),splitHorizontal:s("split-horizontal",60246),splitVertical:s("split-vertical",60247),squirrel:s("squirrel",60248),starFull:s("star-full",60249),starHalf:s("star-half",60250),symbolClass:s("symbol-class",60251),symbolColor:s("symbol-color",60252),symbolConstant:s("symbol-constant",60253),symbolEnumMember:s("symbol-enum-member",60254),symbolField:s("symbol-field",60255),symbolFile:s("symbol-file",60256),symbolInterface:s("symbol-interface",60257),symbolKeyword:s("symbol-keyword",60258),symbolMisc:s("symbol-misc",60259),symbolOperator:s("symbol-operator",60260),symbolProperty:s("symbol-property",60261),wrench:s("wrench",60261),wrenchSubaction:s("wrench-subaction",60261),symbolSnippet:s("symbol-snippet",60262),tasklist:s("tasklist",60263),telescope:s("telescope",60264),textSize:s("text-size",60265),threeBars:s("three-bars",60266),thumbsdown:s("thumbsdown",60267),thumbsup:s("thumbsup",60268),tools:s("tools",60269),triangleDown:s("triangle-down",60270),triangleLeft:s("triangle-left",60271),triangleRight:s("triangle-right",60272),triangleUp:s("triangle-up",60273),twitter:s("twitter",60274),unfold:s("unfold",60275),unlock:s("unlock",60276),unmute:s("unmute",60277),unverified:s("unverified",60278),verified:s("verified",60279),versions:s("versions",60280),vmActive:s("vm-active",60281),vmOutline:s("vm-outline",60282),vmRunning:s("vm-running",60283),watch:s("watch",60284),whitespace:s("whitespace",60285),wholeWord:s("whole-word",60286),window:s("window",60287),wordWrap:s("word-wrap",60288),zoomIn:s("zoom-in",60289),zoomOut:s("zoom-out",60290),listFilter:s("list-filter",60291),listFlat:s("list-flat",60292),listSelection:s("list-selection",60293),selection:s("selection",60293),listTree:s("list-tree",60294),debugBreakpointFunctionUnverified:s("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:s("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:s("debug-breakpoint-function-disabled",60296),debugStackframeActive:s("debug-stackframe-active",60297),circleSmallFilled:s("circle-small-filled",60298),debugStackframeDot:s("debug-stackframe-dot",60298),terminalDecorationMark:s("terminal-decoration-mark",60298),debugStackframe:s("debug-stackframe",60299),debugStackframeFocused:s("debug-stackframe-focused",60299),debugBreakpointUnsupported:s("debug-breakpoint-unsupported",60300),symbolString:s("symbol-string",60301),debugReverseContinue:s("debug-reverse-continue",60302),debugStepBack:s("debug-step-back",60303),debugRestartFrame:s("debug-restart-frame",60304),debugAlt:s("debug-alt",60305),callIncoming:s("call-incoming",60306),callOutgoing:s("call-outgoing",60307),menu:s("menu",60308),expandAll:s("expand-all",60309),feedback:s("feedback",60310),gitPullRequestReviewer:s("git-pull-request-reviewer",60310),groupByRefType:s("group-by-ref-type",60311),ungroupByRefType:s("ungroup-by-ref-type",60312),account:s("account",60313),gitPullRequestAssignee:s("git-pull-request-assignee",60313),bellDot:s("bell-dot",60314),debugConsole:s("debug-console",60315),library:s("library",60316),output:s("output",60317),runAll:s("run-all",60318),syncIgnored:s("sync-ignored",60319),pinned:s("pinned",60320),githubInverted:s("github-inverted",60321),serverProcess:s("server-process",60322),serverEnvironment:s("server-environment",60323),pass:s("pass",60324),issueClosed:s("issue-closed",60324),stopCircle:s("stop-circle",60325),playCircle:s("play-circle",60326),record:s("record",60327),debugAltSmall:s("debug-alt-small",60328),vmConnect:s("vm-connect",60329),cloud:s("cloud",60330),merge:s("merge",60331),export:s("export",60332),graphLeft:s("graph-left",60333),magnet:s("magnet",60334),notebook:s("notebook",60335),redo:s("redo",60336),checkAll:s("check-all",60337),pinnedDirty:s("pinned-dirty",60338),passFilled:s("pass-filled",60339),circleLargeFilled:s("circle-large-filled",60340),circleLarge:s("circle-large",60341),circleLargeOutline:s("circle-large-outline",60341),combine:s("combine",60342),gather:s("gather",60342),table:s("table",60343),variableGroup:s("variable-group",60344),typeHierarchy:s("type-hierarchy",60345),typeHierarchySub:s("type-hierarchy-sub",60346),typeHierarchySuper:s("type-hierarchy-super",60347),gitPullRequestCreate:s("git-pull-request-create",60348),runAbove:s("run-above",60349),runBelow:s("run-below",60350),notebookTemplate:s("notebook-template",60351),debugRerun:s("debug-rerun",60352),workspaceTrusted:s("workspace-trusted",60353),workspaceUntrusted:s("workspace-untrusted",60354),workspaceUnknown:s("workspace-unknown",60355),terminalCmd:s("terminal-cmd",60356),terminalDebian:s("terminal-debian",60357),terminalLinux:s("terminal-linux",60358),terminalPowershell:s("terminal-powershell",60359),terminalTmux:s("terminal-tmux",60360),terminalUbuntu:s("terminal-ubuntu",60361),terminalBash:s("terminal-bash",60362),arrowSwap:s("arrow-swap",60363),copy:s("copy",60364),personAdd:s("person-add",60365),filterFilled:s("filter-filled",60366),wand:s("wand",60367),debugLineByLine:s("debug-line-by-line",60368),inspect:s("inspect",60369),layers:s("layers",60370),layersDot:s("layers-dot",60371),layersActive:s("layers-active",60372),compass:s("compass",60373),compassDot:s("compass-dot",60374),compassActive:s("compass-active",60375),azure:s("azure",60376),issueDraft:s("issue-draft",60377),gitPullRequestClosed:s("git-pull-request-closed",60378),gitPullRequestDraft:s("git-pull-request-draft",60379),debugAll:s("debug-all",60380),debugCoverage:s("debug-coverage",60381),runErrors:s("run-errors",60382),folderLibrary:s("folder-library",60383),debugContinueSmall:s("debug-continue-small",60384),beakerStop:s("beaker-stop",60385),graphLine:s("graph-line",60386),graphScatter:s("graph-scatter",60387),pieChart:s("pie-chart",60388),bracket:s("bracket",60175),bracketDot:s("bracket-dot",60389),bracketError:s("bracket-error",60390),lockSmall:s("lock-small",60391),azureDevops:s("azure-devops",60392),verifiedFilled:s("verified-filled",60393),newline:s("newline",60394),layout:s("layout",60395),layoutActivitybarLeft:s("layout-activitybar-left",60396),layoutActivitybarRight:s("layout-activitybar-right",60397),layoutPanelLeft:s("layout-panel-left",60398),layoutPanelCenter:s("layout-panel-center",60399),layoutPanelJustify:s("layout-panel-justify",60400),layoutPanelRight:s("layout-panel-right",60401),layoutPanel:s("layout-panel",60402),layoutSidebarLeft:s("layout-sidebar-left",60403),layoutSidebarRight:s("layout-sidebar-right",60404),layoutStatusbar:s("layout-statusbar",60405),layoutMenubar:s("layout-menubar",60406),layoutCentered:s("layout-centered",60407),target:s("target",60408),indent:s("indent",60409),recordSmall:s("record-small",60410),errorSmall:s("error-small",60411),terminalDecorationError:s("terminal-decoration-error",60411),arrowCircleDown:s("arrow-circle-down",60412),arrowCircleLeft:s("arrow-circle-left",60413),arrowCircleRight:s("arrow-circle-right",60414),arrowCircleUp:s("arrow-circle-up",60415),layoutSidebarRightOff:s("layout-sidebar-right-off",60416),layoutPanelOff:s("layout-panel-off",60417),layoutSidebarLeftOff:s("layout-sidebar-left-off",60418),blank:s("blank",60419),heartFilled:s("heart-filled",60420),map:s("map",60421),mapHorizontal:s("map-horizontal",60421),foldHorizontal:s("fold-horizontal",60421),mapFilled:s("map-filled",60422),mapHorizontalFilled:s("map-horizontal-filled",60422),foldHorizontalFilled:s("fold-horizontal-filled",60422),circleSmall:s("circle-small",60423),bellSlash:s("bell-slash",60424),bellSlashDot:s("bell-slash-dot",60425),commentUnresolved:s("comment-unresolved",60426),gitPullRequestGoToChanges:s("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:s("git-pull-request-new-changes",60428),searchFuzzy:s("search-fuzzy",60429),commentDraft:s("comment-draft",60430),send:s("send",60431),sparkle:s("sparkle",60432),insert:s("insert",60433),mic:s("mic",60434),thumbsdownFilled:s("thumbsdown-filled",60435),thumbsupFilled:s("thumbsup-filled",60436),coffee:s("coffee",60437),snake:s("snake",60438),game:s("game",60439),vr:s("vr",60440),chip:s("chip",60441),piano:s("piano",60442),music:s("music",60443),micFilled:s("mic-filled",60444),repoFetch:s("repo-fetch",60445),copilot:s("copilot",60446),lightbulbSparkle:s("lightbulb-sparkle",60447),robot:s("robot",60448),sparkleFilled:s("sparkle-filled",60449),diffSingle:s("diff-single",60450),diffMultiple:s("diff-multiple",60451),surroundWith:s("surround-with",60452),share:s("share",60453),gitStash:s("git-stash",60454),gitStashApply:s("git-stash-apply",60455),gitStashPop:s("git-stash-pop",60456),vscode:s("vscode",60457),vscodeInsiders:s("vscode-insiders",60458),codeOss:s("code-oss",60459),runCoverage:s("run-coverage",60460),runAllCoverage:s("run-all-coverage",60461),coverage:s("coverage",60462),githubProject:s("github-project",60463),mapVertical:s("map-vertical",60464),foldVertical:s("fold-vertical",60464),mapVerticalFilled:s("map-vertical-filled",60465),foldVerticalFilled:s("fold-vertical-filled",60465),goToSearch:s("go-to-search",60466),percentage:s("percentage",60467),sortPercentage:s("sort-percentage",60467),attach:s("attach",60468)},...{dialogError:s("dialog-error","error"),dialogWarning:s("dialog-warning","warning"),dialogInfo:s("dialog-info","info"),dialogClose:s("dialog-close","close"),treeItemExpanded:s("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:s("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:s("tree-filter-on-type-off","list-selection"),treeFilterClear:s("tree-filter-clear","close"),treeItemLoading:s("tree-item-loading","loading"),menuSelection:s("menu-selection","check"),menuSubmenu:s("menu-submenu","chevron-right"),menuBarMore:s("menubar-more","more"),scrollbarButtonLeft:s("scrollbar-button-left","triangle-left"),scrollbarButtonRight:s("scrollbar-button-right","triangle-right"),scrollbarButtonUp:s("scrollbar-button-up","triangle-up"),scrollbarButtonDown:s("scrollbar-button-down","triangle-down"),toolBarMore:s("toolbar-more","more"),quickInputBack:s("quick-input-back","arrow-left"),dropDownButton:s("drop-down-button",60084),symbolCustomColor:s("symbol-customcolor",60252),exportIcon:s("export",60332),workspaceUnspecified:s("workspace-unspecified",60355),newLine:s("newline",60394),thumbsDownFilled:s("thumbsdown-filled",60435),thumbsUpFilled:s("thumbsup-filled",60436),gitFetch:s("git-fetch",60445),lightbulbSparkleAutofix:s("lightbulb-sparkle-autofix",60447),debugBreakpointPending:s("debug-breakpoint-pending",60377)}}},7661:(e,t,n)=>{"use strict";function i(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}n.d(t,{Q1:()=>a,bU:()=>r,hB:()=>s});class r{constructor(e,t,n,r=1){this._rgbaBrand=void 0,this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,t)),this.b=0|Math.min(255,Math.max(0,n)),this.a=i(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}}class s{constructor(e,t,n,r){this._hslaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=i(Math.max(Math.min(1,t),0),3),this.l=i(Math.max(Math.min(1,n),0),3),this.a=i(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(e){const t=e.r/255,n=e.g/255,i=e.b/255,r=e.a,o=Math.max(t,n,i),a=Math.min(t,n,i);let l=0,h=0;const c=(a+o)/2,d=o-a;if(d>0){switch(h=Math.min(c<=.5?d/(2*c):d/(2-2*c),1),o){case t:l=(n-i)/d+(n<i?6:0);break;case n:l=(i-t)/d+2;break;case i:l=(t-n)/d+4}l*=60,l=Math.round(l)}return new s(l,h,c,r)}static _hue2rgb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}static toRGBA(e){const t=e.h/360,{s:n,l:i,a:o}=e;let a,l,h;if(0===n)a=l=h=i;else{const e=i<.5?i*(1+n):i+n-i*n,r=2*i-e;a=s._hue2rgb(r,e,t+1/3),l=s._hue2rgb(r,e,t),h=s._hue2rgb(r,e,t-1/3)}return new r(Math.round(255*a),Math.round(255*l),Math.round(255*h),o)}}class o{constructor(e,t,n,r){this._hsvaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=i(Math.max(Math.min(1,t),0),3),this.v=i(Math.max(Math.min(1,n),0),3),this.a=i(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(e){const t=e.r/255,n=e.g/255,i=e.b/255,r=Math.max(t,n,i),s=r-Math.min(t,n,i),a=0===r?0:s/r;let l;return l=0===s?0:r===t?((n-i)/s%6+6)%6:r===n?(i-t)/s+2:(t-n)/s+4,new o(Math.round(60*l),a,r,e.a)}static toRGBA(e){const{h:t,s:n,v:i,a:s}=e,o=i*n,a=o*(1-Math.abs(t/60%2-1)),l=i-o;let[h,c,d]=[0,0,0];return t<60?(h=o,c=a):t<120?(h=a,c=o):t<180?(c=o,d=a):t<240?(c=a,d=o):t<300?(h=a,d=o):t<=360&&(h=o,d=a),h=Math.round(255*(h+l)),c=Math.round(255*(c+l)),d=Math.round(255*(d+l)),new r(h,c,d,s)}}class a{static fromHex(e){return a.Format.CSS.parseHex(e)||a.red}static equals(e,t){return!e&&!t||!(!e||!t)&&e.equals(t)}get hsla(){return this._hsla?this._hsla:s.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:o.fromRGBA(this.rgba)}constructor(e){if(!e)throw new Error("Color needs a value");if(e instanceof r)this.rgba=e;else if(e instanceof s)this._hsla=e,this.rgba=s.toRGBA(e);else{if(!(e instanceof o))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=o.toRGBA(e)}}equals(e){return!!e&&r.equals(this.rgba,e.rgba)&&s.equals(this.hsla,e.hsla)&&o.equals(this.hsva,e.hsva)}getRelativeLuminance(){return i(.2126*a._relativeLuminanceForComponent(this.rgba.r)+.7152*a._relativeLuminanceForComponent(this.rgba.g)+.0722*a._relativeLuminanceForComponent(this.rgba.b),4)}static _relativeLuminanceForComponent(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}isLighter(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128}isLighterThan(e){return this.getRelativeLuminance()>e.getRelativeLuminance()}isDarkerThan(e){return this.getRelativeLuminance()<e.getRelativeLuminance()}lighten(e){return new a(new s(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*e,this.hsla.a))}darken(e){return new a(new s(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*e,this.hsla.a))}transparent(e){const{r:t,g:n,b:i,a:s}=this.rgba;return new a(new r(t,n,i,s*e))}isTransparent(){return 0===this.rgba.a}isOpaque(){return 1===this.rgba.a}opposite(){return new a(new r(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(e){if(this.isOpaque()||1!==e.rgba.a)return this;const{r:t,g:n,b:i,a:s}=this.rgba;return new a(new r(e.rgba.r-s*(e.rgba.r-t),e.rgba.g-s*(e.rgba.g-n),e.rgba.b-s*(e.rgba.b-i),1))}toString(){return this._toString||(this._toString=a.Format.CSS.format(this)),this._toString}static getLighterColor(e,t,n){if(e.isLighterThan(t))return e;n=n||.5;const i=e.getRelativeLuminance(),r=t.getRelativeLuminance();return n=n*(r-i)/r,e.lighten(n)}static getDarkerColor(e,t,n){if(e.isDarkerThan(t))return e;n=n||.5;const i=e.getRelativeLuminance();return n=n*(i-t.getRelativeLuminance())/i,e.darken(n)}static{this.white=new a(new r(255,255,255,1))}static{this.black=new a(new r(0,0,0,1))}static{this.red=new a(new r(255,0,0,1))}static{this.blue=new a(new r(0,0,255,1))}static{this.green=new a(new r(0,255,0,1))}static{this.cyan=new a(new r(0,255,255,1))}static{this.lightgrey=new a(new r(211,211,211,1))}static{this.transparent=new a(new r(0,0,0,0))}}!function(e){let t;!function(t){let n;!function(t){function n(e){const t=e.toString(16);return 2!==t.length?"0"+t:t}function i(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:case 65:return 10;case 98:case 66:return 11;case 99:case 67:return 12;case 100:case 68:return 13;case 101:case 69:return 14;case 102:case 70:return 15}return 0}t.formatRGB=function(t){return 1===t.rgba.a?`rgb(${t.rgba.r}, ${t.rgba.g}, ${t.rgba.b})`:e.Format.CSS.formatRGBA(t)},t.formatRGBA=function(e){return`rgba(${e.rgba.r}, ${e.rgba.g}, ${e.rgba.b}, ${+e.rgba.a.toFixed(2)})`},t.formatHSL=function(t){return 1===t.hsla.a?`hsl(${t.hsla.h}, ${(100*t.hsla.s).toFixed(2)}%, ${(100*t.hsla.l).toFixed(2)}%)`:e.Format.CSS.formatHSLA(t)},t.formatHSLA=function(e){return`hsla(${e.hsla.h}, ${(100*e.hsla.s).toFixed(2)}%, ${(100*e.hsla.l).toFixed(2)}%, ${e.hsla.a.toFixed(2)})`},t.formatHex=function(e){return`#${n(e.rgba.r)}${n(e.rgba.g)}${n(e.rgba.b)}`},t.formatHexA=function(t,i=!1){return i&&1===t.rgba.a?e.Format.CSS.formatHex(t):`#${n(t.rgba.r)}${n(t.rgba.g)}${n(t.rgba.b)}${n(Math.round(255*t.rgba.a))}`},t.format=function(t){return t.isOpaque()?e.Format.CSS.formatHex(t):e.Format.CSS.formatRGBA(t)},t.parseHex=function(t){const n=t.length;if(0===n)return null;if(35!==t.charCodeAt(0))return null;if(7===n){const n=16*i(t.charCodeAt(1))+i(t.charCodeAt(2)),s=16*i(t.charCodeAt(3))+i(t.charCodeAt(4)),o=16*i(t.charCodeAt(5))+i(t.charCodeAt(6));return new e(new r(n,s,o,1))}if(9===n){const n=16*i(t.charCodeAt(1))+i(t.charCodeAt(2)),s=16*i(t.charCodeAt(3))+i(t.charCodeAt(4)),o=16*i(t.charCodeAt(5))+i(t.charCodeAt(6)),a=16*i(t.charCodeAt(7))+i(t.charCodeAt(8));return new e(new r(n,s,o,a/255))}if(4===n){const n=i(t.charCodeAt(1)),s=i(t.charCodeAt(2)),o=i(t.charCodeAt(3));return new e(new r(16*n+n,16*s+s,16*o+o))}if(5===n){const n=i(t.charCodeAt(1)),s=i(t.charCodeAt(2)),o=i(t.charCodeAt(3)),a=i(t.charCodeAt(4));return new e(new r(16*n+n,16*s+s,16*o+o,(16*a+a)/255))}return null}}(n=t.CSS||(t.CSS={}))}(t=e.Format||(e.Format={}))}(a||(a={}))},4383:(e,t,n)=>{"use strict";n.d(t,{D7:()=>g,EM:()=>d,Qg:()=>h,cU:()=>s,dz:()=>r,iH:()=>c});const i=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((()=>{if(e.stack){if(u.isErrorNoTelemetry(e))throw new u(e.message+"\n\n"+e.stack);throw new Error(e.message+"\n\n"+e.stack)}throw e}),0)}}emit(e){this.listeners.forEach((t=>{t(e)}))}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function r(e){a(e)||i.onUnexpectedError(e)}function s(e){if(e instanceof Error){const{name:t,message:n}=e;return{$isError:!0,name:t,message:n,stack:e.stacktrace||e.stack,noTelemetry:u.isErrorNoTelemetry(e)}}return e}const o="Canceled";function a(e){return e instanceof l||e instanceof Error&&e.name===o&&e.message===o}class l extends Error{constructor(){super(o),this.name=this.message}}function h(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")}function c(e){return e?new Error(`Illegal state: ${e}`):new Error("Illegal state")}class d extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class u extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof u)return e;const t=new u;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return"CodeExpectedError"===e.name}}class g extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,g.prototype)}}},1234:(e,t,n)=>{"use strict";n.d(t,{Jh:()=>o,vl:()=>f});var i=n(4383),r=n(1484),s=(n(8925),n(8381));var o;!function(e){function t(e){false}function n(e){return(t,n=null,i)=>{let r,s=!1;return r=e((e=>{if(!s)return r?r.dispose():s=!0,t.call(n,e)}),null,i),s&&r.dispose(),r}}function i(e,t,n){return o(((n,i=null,r)=>e((e=>n.call(i,t(e))),null,r)),n)}function s(e,t,n){return o(((n,i=null,r)=>e((e=>t(e)&&n.call(i,e)),null,r)),n)}function o(e,n){let i;const r={onWillAddFirstListener(){i=e(s.fire,s)},onDidRemoveLastListener(){i?.dispose()}};n||t();const s=new f(r);return n?.add(s),s.event}function a(e,n,i=100,r=!1,s=!1,o,a){let l,h,c,d,u=0;const g={leakWarningThreshold:o,onWillAddFirstListener(){l=e((e=>{u++,h=n(h,e),r&&!c&&(m.fire(h),h=void 0),d=()=>{const e=h;h=void 0,c=void 0,(!r||u>1)&&m.fire(e),u=0},"number"===typeof i?(clearTimeout(c),c=setTimeout(d,i)):void 0===c&&(c=0,queueMicrotask(d))}))},onWillRemoveListener(){s&&u>0&&d?.()},onDidRemoveLastListener(){d=void 0,l.dispose()}};a||t();const m=new f(g);return a?.add(m),m.event}e.None=()=>r.jG.None,e.defer=function(e,t){return a(e,(()=>{}),0,void 0,!0,void 0,t)},e.once=n,e.onceIf=function(t,n){return e.once(e.filter(t,n))},e.map=i,e.forEach=function(e,t,n){return o(((n,i=null,r)=>e((e=>{t(e),n.call(i,e)}),null,r)),n)},e.filter=s,e.signal=function(e){return e},e.any=function(...e){return(t,n=null,i)=>function(e,t){t instanceof Array?t.push(e):t&&t.add(e);return e}((0,r.qE)(...e.map((e=>e((e=>t.call(n,e)))))),i)},e.reduce=function(e,t,n,r){let s=n;return i(e,(e=>(s=t(s,e),s)),r)},e.debounce=a,e.accumulate=function(t,n=0,i){return e.debounce(t,((e,t)=>e?(e.push(t),e):[t]),n,void 0,!0,void 0,i)},e.latch=function(e,t=(e,t)=>e===t,n){let i,r=!0;return s(e,(e=>{const n=r||!t(e,i);return r=!1,i=e,n}),n)},e.split=function(t,n,i){return[e.filter(t,n,i),e.filter(t,(e=>!n(e)),i)]},e.buffer=function(e,t=!1,n=[],i){let r=n.slice(),s=e((e=>{r?r.push(e):a.fire(e)}));i&&i.add(s);const o=()=>{r?.forEach((e=>a.fire(e))),r=null},a=new f({onWillAddFirstListener(){s||(s=e((e=>a.fire(e))),i&&i.add(s))},onDidAddFirstListener(){r&&(t?setTimeout(o):o())},onDidRemoveLastListener(){s&&s.dispose(),s=null}});return i&&i.add(a),a.event},e.chain=function(e,t){return(n,i,r)=>{const s=t(new h);return e((function(e){const t=s.evaluate(e);t!==l&&n.call(i,t)}),void 0,r)}};const l=Symbol("HaltChainable");class h{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:l)),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,n=!0;return this.steps.push((i=>{const r=n||!e(i,t);return n=!1,t=i,r?i:l})),this}evaluate(e){for(const t of this.steps)if((e=t(e))===l)break;return e}}e.fromNodeEventEmitter=function(e,t,n=e=>e){const i=(...e)=>r.fire(n(...e)),r=new f({onWillAddFirstListener:()=>e.on(t,i),onDidRemoveLastListener:()=>e.removeListener(t,i)});return r.event},e.fromDOMEventEmitter=function(e,t,n=e=>e){const i=(...e)=>r.fire(n(...e)),r=new f({onWillAddFirstListener:()=>e.addEventListener(t,i),onDidRemoveLastListener:()=>e.removeEventListener(t,i)});return r.event},e.toPromise=function(e){return new Promise((t=>n(e)(t)))},e.fromPromise=function(e){const t=new f;return e.then((e=>{t.fire(e)}),(()=>{t.fire(void 0)})).finally((()=>{t.dispose()})),t.event},e.forward=function(e,t){return e((e=>t.fire(e)))},e.runAndSubscribe=function(e,t,n){return t(n),e((e=>t(e)))};class c{constructor(e,n){this._observable=e,this._counter=0,this._hasChanged=!1;const i={onWillAddFirstListener:()=>{e.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{e.removeObserver(this)}};n||t(),this.emitter=new f(i),n&&n.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,0===this._counter&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}e.fromObservable=function(e,t){return new c(e,t).emitter.event},e.fromObservableLight=function(e){return(t,n,i)=>{let s=0,o=!1;const a={beginUpdate(){s++},endUpdate(){s--,0===s&&(e.reportChanges(),o&&(o=!1,t.call(n)))},handlePossibleChange(){},handleChange(){o=!0}};e.addObserver(a),e.reportChanges();const l={dispose(){e.removeObserver(a)}};return i instanceof r.Cm?i.add(l):Array.isArray(i)&&i.push(l),l}}}(o||(o={}));class a{static{this.all=new Set}static{this._idPool=0}constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${a._idPool++}`,a.all.add(this)}start(e){this._stopWatch=new s.W,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}class l{static{this._idPool=1}constructor(e,t,n=(l._idPool++).toString(16).padStart(3,"0")){this._errorHandler=e,this.threshold=t,this.name=n,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(e,t){const n=this.threshold;if(n<=0||t<n)return;this._stacks||(this._stacks=new Map);const i=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,i+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=.5*n;const[e,i]=this.getMostFrequentStack(),r=`[${this.name}] potential listener LEAK detected, having ${t} listeners already. MOST frequent listener (${i}):`;console.warn(r),console.warn(e);const s=new c(r,e);this._errorHandler(s)}return()=>{const t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}getMostFrequentStack(){if(!this._stacks)return;let e,t=0;for(const[n,i]of this._stacks)(!e||t<i)&&(e=[n,i],t=i);return e}}class h{static create(){const e=new Error;return new h(e.stack??"")}constructor(e){this.value=e}print(){console.warn(this.value.split("\n").slice(2).join("\n"))}}class c extends Error{constructor(e,t){super(e),this.name="ListenerLeakError",this.stack=t}}class d extends Error{constructor(e,t){super(e),this.name="ListenerRefusalError",this.stack=t}}class u{constructor(e){this.value=e}}let g;class f{constructor(e){this._size=0,this._options=e,this._leakageMon=this._options?.leakWarningThreshold?new l(e?.onListenerError??i.dz,this._options?.leakWarningThreshold??-1):void 0,this._perfMon=this._options?._profName?new a(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,t,n)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const 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);const t=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],n=new d(`${e}. HINT: Stack shows most frequent listener (${t[1]}-times)`,t[0]);return(this._options?.onListenerError||i.dz)(n),r.jG.None}if(this._disposed)return r.jG.None;t&&(e=e.bind(t));const s=new u(e);let o;this._leakageMon&&this._size>=Math.ceil(.2*this._leakageMon.threshold)&&(s.stack=h.create(),o=this._leakageMon.check(s.stack,this._size+1)),this._listeners?this._listeners instanceof u?(this._deliveryQueue??=new m,this._listeners=[this._listeners,s]):this._listeners.push(s):(this._options?.onWillAddFirstListener?.(this),this._listeners=s,this._options?.onDidAddFirstListener?.(this)),this._size++;const a=(0,r.s)((()=>{g?.unregister(a),o?.(),this._removeListener(s)}));if(n instanceof r.Cm?n.add(a):Array.isArray(n)&&n.push(a),g){const e=(new Error).stack.split("\n").slice(2,3).join("\n").trim(),t=/(file:|vscode-file:\/\/vscode-app)?(\/[^:]*:\d+:\d+)/.exec(e);g.register(a,t?.[2]??e,a)}return a},this._event}_removeListener(e){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(1===this._size)return this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),void(this._size=0);const t=this._listeners,n=t.indexOf(e);if(-1===n)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,t[n]=void 0;const i=this._deliveryQueue.current===this;if(2*this._size<=t.length){let e=0;for(let n=0;n<t.length;n++)t[n]?t[e++]=t[n]:i&&(this._deliveryQueue.end--,e<this._deliveryQueue.i&&this._deliveryQueue.i--);t.length=e}}_deliver(e,t){if(!e)return;const n=this._options?.onListenerError||i.dz;if(n)try{e.value(t)}catch(r){n(r)}else e.value(t)}_deliverQueue(e){const 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 u)this._deliver(this._listeners,e);else{const t=this._deliveryQueue;t.enqueue(this,e,this._listeners.length),this._deliverQueue(t)}else;this._perfMon?.stop()}hasListeners(){return this._size>0}}class m{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}}},9326:(e,t,n)=>{"use strict";n.d(t,{TH:()=>o,Zn:()=>l,_1:()=>h,kb:()=>a});var i=n(8821),r=(n(8067),n(1508));function s(e){return 47===e||92===e}function o(e){return e.replace(/[\\/]/g,i.SA.sep)}function a(e){return-1===e.indexOf("/")&&(e=o(e)),/^[a-zA-Z]:(\/|$)/.test(e)&&(e="/"+e),e}function l(e,t=i.SA.sep){if(!e)return"";const n=e.length,r=e.charCodeAt(0);if(s(r)){if(s(e.charCodeAt(1))&&!s(e.charCodeAt(2))){let i=3;const r=i;for(;i<n&&!s(e.charCodeAt(i));i++);if(r!==i&&!s(e.charCodeAt(i+1)))for(i+=1;i<n;i++)if(s(e.charCodeAt(i)))return e.slice(0,i+1).replace(/[\\/]/g,t)}return t}if(c(r)&&58===e.charCodeAt(1))return s(e.charCodeAt(2))?e.slice(0,2)+t:e.slice(0,2);let o=e.indexOf("://");if(-1!==o)for(o+=3;o<n;o++)if(s(e.charCodeAt(o)))return e.slice(0,o+1);return""}function h(e,t,n,s=i.Vn){if(e===t)return!0;if(!e||!t)return!1;if(t.length>e.length)return!1;if(n){if(!(0,r.ns)(e,t))return!1;if(t.length===e.length)return!0;let n=t.length;return t.charAt(t.length-1)===s&&n--,e.charAt(n)===s}return t.charAt(t.length-1)!==s&&(t+=s),0===e.indexOf(t)}function c(e){return e>=65&&e<=90||e>=97&&e<=122}},6958:(e,t,n)=>{"use strict";n.d(t,{YW:()=>I,qg:()=>M});var i=n(1940),r=n(9326),s=n(4320),o=n(8821),a=n(8067),l=n(1508);const h="**",c="/",d="[/\\\\]",u="[^/\\\\]",g=/\//g;function f(e,t){switch(e){case 0:return"";case 1:return`${u}*?`;default:return`(?:${d}|${u}+${d}${t?`|${d}${u}+`:""})*?`}}function m(e,t){if(!e)return[];const n=[];let i=!1,r=!1,s="";for(const o of e){switch(o){case t:if(!i&&!r){n.push(s),s="";continue}break;case"{":i=!0;break;case"}":i=!1;break;case"[":r=!0;break;case"]":r=!1}s+=o}return s&&n.push(s),n}function p(e){if(!e)return"";let t="";const n=m(e,c);if(n.every((e=>e===h)))t=".*";else{let e=!1;n.forEach(((i,r)=>{if(i===h){if(e)return;t+=f(2,r===n.length-1)}else{let e=!1,s="",o=!1,a="";for(const n of i)if("}"!==n&&e)s+=n;else if(!o||"]"===n&&a)switch(n){case"{":e=!0;continue;case"[":o=!0;continue;case"}":{const n=`(?:${m(s,",").map((e=>p(e))).join("|")})`;t+=n,e=!1,s="";break}case"]":t+="["+a+"]",o=!1,a="";break;case"?":t+=u;continue;case"*":t+=f(1);continue;default:t+=(0,l.bm)(n)}else{let e;e="-"===n?n:"^"!==n&&"!"!==n||a?n===c?"":(0,l.bm)(n):"^",a+=e}r<n.length-1&&(n[r+1]!==h||r+2<n.length)&&(t+=d)}e=i===h}))}return t}const _=/^\*\*\/\*\.[\w\.-]+$/,b=/^\*\*\/([\w\.-]+)\/?$/,v=/^{\*\*\/\*?[\w\.-]+\/?(,\*\*\/\*?[\w\.-]+\/?)*}$/,w=/^{\*\*\/\*?[\w\.-]+(\/(\*\*)?)?(,\*\*\/\*?[\w\.-]+(\/(\*\*)?)?)*}$/,k=/^\*\*((\/[\w\.-]+)+)\/?$/,y=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,T=new s.qK(1e4),C=function(){return!1},S=function(){return null};function L(e,t){if(!e)return S;let n;n="string"!==typeof e?e.pattern:e,n=n.trim();const i=`${n}_${!!t.trimForExclusions}`;let r,s=T.get(i);return s||(s=_.test(n)?function(e,t){return function(n,i){return"string"===typeof n&&n.endsWith(e)?t:null}}(n.substr(4),n):(r=b.exec(E(n,t)))?function(e,t){const n=`/${e}`,i=`\\${e}`,r=function(r,s){return"string"!==typeof r?null:s?s===e?t:null:r===e||r.endsWith(n)||r.endsWith(i)?t:null},s=[e];return r.basenames=s,r.patterns=[t],r.allBasenames=s,r}(r[1],n):(t.trimForExclusions?w:v).test(n)?function(e,t){const n=N(e.slice(1,-1).split(",").map((e=>L(e,t))).filter((e=>e!==S)),e),i=n.length;if(!i)return S;if(1===i)return n[0];const r=function(t,i){for(let r=0,s=n.length;r<s;r++)if(n[r](t,i))return e;return null},s=n.find((e=>!!e.allBasenames));s&&(r.allBasenames=s.allBasenames);const o=n.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);o.length&&(r.allPaths=o);return r}(n,t):(r=k.exec(E(n,t)))?A(r[1].substr(1),n,!0):(r=y.exec(E(n,t)))?A(r[1],n,!1):function(e){try{const t=new RegExp(`^${p(e)}$`);return function(n){return t.lastIndex=0,"string"===typeof n&&t.test(n)?e:null}}catch(t){return S}}(n),T.set(i,s)),x(s,e)}function x(e,t){if("string"===typeof t)return e;const n=function(n,i){return(0,r._1)(n,t.base,!a.j9)?e((0,l.NB)(n.substr(t.base.length),o.Vn),i):null};return n.allBasenames=e.allBasenames,n.allPaths=e.allPaths,n.basenames=e.basenames,n.patterns=e.patterns,n}function E(e,t){return t.trimForExclusions&&e.endsWith("/**")?e.substr(0,e.length-2):e}function A(e,t,n){const i=o.Vn===o.SA.sep,r=i?e:e.replace(g,o.Vn),s=o.Vn+r,a=o.SA.sep+e;let l;return l=n?function(n,o){return"string"!==typeof n||n!==r&&!n.endsWith(s)&&(i||n!==e&&!n.endsWith(a))?null:t}:function(n,s){return"string"!==typeof n||n!==r&&(i||n!==e)?null:t},l.allPaths=[(n?"*/":"./")+e],l}function I(e,t,n){return!(!e||"string"!==typeof t)&&M(e)(t,void 0,n)}function M(e,t={}){if(!e)return C;if("string"===typeof e||function(e){const t=e;if(!t)return!1;return"string"===typeof t.base&&"string"===typeof t.pattern}(e)){const n=L(e,t);if(n===S)return C;const i=function(e,t){return!!n(e,t)};return n.allBasenames&&(i.allBasenames=n.allBasenames),n.allPaths&&(i.allPaths=n.allPaths),i}return function(e,t){const n=N(Object.getOwnPropertyNames(e).map((n=>function(e,t,n){if(!1===t)return S;const r=L(e,n);if(r===S)return S;if("boolean"===typeof t)return r;if(t){const n=t.when;if("string"===typeof n){const t=(t,s,o,a)=>{if(!a||!r(t,s))return null;const l=a(n.replace("$(basename)",(()=>o)));return(0,i.Qg)(l)?l.then((t=>t?e:null)):l?e:null};return t.requiresSiblings=!0,t}}return r}(n,e[n],t))).filter((e=>e!==S))),r=n.length;if(!r)return S;if(!n.some((e=>!!e.requiresSiblings))){if(1===r)return n[0];const e=function(e,t){let r;for(let s=0,o=n.length;s<o;s++){const o=n[s](e,t);if("string"===typeof o)return o;(0,i.Qg)(o)&&(r||(r=[]),r.push(o))}return r?(async()=>{for(const e of r){const t=await e;if("string"===typeof t)return t}return null})():null},t=n.find((e=>!!e.allBasenames));t&&(e.allBasenames=t.allBasenames);const s=n.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);return s.length&&(e.allPaths=s),e}const s=function(e,t,r){let s,a;for(let l=0,h=n.length;l<h;l++){const h=n[l];h.requiresSiblings&&r&&(t||(t=(0,o.P8)(e)),s||(s=t.substr(0,t.length-(0,o.LC)(e).length)));const c=h(e,t,s,r);if("string"===typeof c)return c;(0,i.Qg)(c)&&(a||(a=[]),a.push(c))}return a?(async()=>{for(const e of a){const t=await e;if("string"===typeof t)return t}return null})():null},a=n.find((e=>!!e.allBasenames));a&&(s.allBasenames=a.allBasenames);const l=n.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);l.length&&(s.allPaths=l);return s}(e,t)}function N(e,t){const n=e.filter((e=>!!e.basenames));if(n.length<2)return e;const i=n.reduce(((e,t)=>{const n=t.basenames;return n?e.concat(n):e}),[]);let r;if(t){r=[];for(let e=0,n=i.length;e<n;e++)r.push(t)}else r=n.reduce(((e,t)=>{const n=t.patterns;return n?e.concat(n):e}),[]);const s=function(e,t){if("string"!==typeof e)return null;if(!t){let n;for(n=e.length;n>0;n--){const t=e.charCodeAt(n-1);if(47===t||92===t)break}t=e.substr(n)}const n=i.indexOf(t);return-1!==n?r[n]:null};s.basenames=i,s.patterns=r,s.allBasenames=i;const o=e.filter((e=>!e.basenames));return o.push(s),o}},5600:(e,t,n)=>{"use strict";n.d(t,{e2:()=>o,sN:()=>r,v7:()=>c});var i=n(1508);function r(e,t){switch(typeof e){case"object":return null===e?s(349,t):Array.isArray(e)?(n=e,i=s(104579,i=t),n.reduce(((e,t)=>r(t,e)),i)):function(e,t){return t=s(181387,t),Object.keys(e).sort().reduce(((t,n)=>(t=o(n,t),r(e[n],t))),t)}(e,t);case"string":return o(e,t);case"boolean":return function(e,t){return s(e?433:863,t)}(e,t);case"number":return s(e,t);case"undefined":return s(937,t);default:return s(617,t)}var n,i}function s(e,t){return(t<<5)-t+e|0}function o(e,t){t=s(149417,t);for(let n=0,i=e.length;n<i;n++)t=s(e.charCodeAt(n),t);return t}function a(e,t,n=32){const i=n-t;return(e<<t|(~((1<<i)-1)&e)>>>i)>>>0}function l(e,t=0,n=e.byteLength,i=0){for(let r=0;r<n;r++)e[t+r]=i}function h(e,t=32){return e instanceof ArrayBuffer?Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join(""):function(e,t,n="0"){for(;e.length<t;)e=n+e;return e}((e>>>0).toString(16),t/4)}class c{static{this._bigBlock32=new DataView(new ArrayBuffer(320))}constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(0===t)return;const n=this._buff;let r,s,o=this._buffLen,a=this._leftoverHighSurrogate;for(0!==a?(r=a,s=-1,a=0):(r=e.charCodeAt(0),s=0);;){let l=r;if(i.pc(r)){if(!(s+1<t)){a=r;break}{const t=e.charCodeAt(s+1);i.LJ(t)?(s++,l=i.z_(r,t)):l=65533}}else i.LJ(r)&&(l=65533);if(o=this._push(n,o,l),s++,!(s<t))break;r=e.charCodeAt(s)}this._buffLen=o,this._leftoverHighSurrogate=a}_push(e,t,n){return n<128?e[t++]=n:n<2048?(e[t++]=192|(1984&n)>>>6,e[t++]=128|(63&n)>>>0):n<65536?(e[t++]=224|(61440&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0):(e[t++]=240|(1835008&n)>>>18,e[t++]=128|(258048&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>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()),h(this._h0)+h(this._h1)+h(this._h2)+h(this._h3)+h(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,l(this._buff,this._buffLen),this._buffLen>56&&(this._step(),l(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=c._bigBlock32,t=this._buffDV;for(let a=0;a<64;a+=4)e.setUint32(a,t.getUint32(a,!1),!1);for(let c=64;c<320;c+=4)e.setUint32(c,a(e.getUint32(c-12,!1)^e.getUint32(c-32,!1)^e.getUint32(c-56,!1)^e.getUint32(c-64,!1),1),!1);let n,i,r,s=this._h0,o=this._h1,l=this._h2,h=this._h3,d=this._h4;for(let c=0;c<80;c++)c<20?(n=o&l|~o&h,i=1518500249):c<40?(n=o^l^h,i=1859775393):c<60?(n=o&l|o&h|l&h,i=2400959708):(n=o^l^h,i=3395469782),r=a(s,5)+n+d+i+e.getUint32(4*c,!1)&4294967295,d=h,h=l,l=a(o,30),o=s,s=r;this._h0=this._h0+s&4294967295,this._h1=this._h1+o&4294967295,this._h2=this._h2+l&4294967295,this._h3=this._h3+h&4294967295,this._h4=this._h4+d&4294967295}}},2522:(e,t,n)=>{"use strict";var i;n.d(t,{f:()=>i}),function(e){function t(e){return e&&"object"===typeof e&&"function"===typeof e[Symbol.iterator]}e.is=t;const n=Object.freeze([]);function*i(e){yield e}e.empty=function(){return n},e.single=i,e.wrap=function(e){return t(e)?e:i(e)},e.from=function(e){return e||n},e.reverse=function*(e){for(let t=e.length-1;t>=0;t--)yield e[t]},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){let n=0;for(const i of e)if(t(i,n++))return!0;return!1},e.find=function(e,t){for(const n of e)if(t(n))return n},e.filter=function*(e,t){for(const n of e)t(n)&&(yield n)},e.map=function*(e,t){let n=0;for(const i of e)yield t(i,n++)},e.flatMap=function*(e,t){let n=0;for(const i of e)yield*t(i,n++)},e.concat=function*(...e){for(const t of e)yield*t},e.reduce=function(e,t,n){let i=n;for(const r of e)i=t(i,r);return i},e.slice=function*(e,t,n=e.length){for(t<0&&(t+=e.length),n<0?n+=e.length:n>e.length&&(n=e.length);t<n;t++)yield e[t]},e.consume=function(t,n=Number.POSITIVE_INFINITY){const i=[];if(0===n)return[i,t];const r=t[Symbol.iterator]();for(let s=0;s<n;s++){const t=r.next();if(t.done)return[i,e.empty()];i.push(t.value)}return[i,{[Symbol.iterator]:()=>r}]},e.asyncToArray=async function(e){const t=[];for await(const n of e)t.push(n);return Promise.resolve(t)}}(i||(i={}))},1090:(e,t,n)=>{"use strict";n.d(t,{d:()=>i});class i{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}},1484:(e,t,n)=>{"use strict";function i(e,t){const n=this;let i,r=!1;return function(){if(r)return i;if(r=!0,t)try{i=e.apply(n,arguments)}finally{t()}else i=e.apply(n,arguments);return i}}n.d(t,{jG:()=>g,$w:()=>m,Cm:()=>u,HE:()=>f,qE:()=>c,AS:()=>h,VD:()=>a,s:()=>d,Ay:()=>o});var r=n(2522);let s=null;function o(e){return s?.trackDisposable(e),e}function a(e){s?.markAsDisposed(e)}function l(e,t){s?.setParent(e,t)}function h(e){if(r.f.is(e)){const n=[];for(const i of e)if(i)try{i.dispose()}catch(t){n.push(t)}if(1===n.length)throw n[0];if(n.length>1)throw new AggregateError(n,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function c(...e){const t=d((()=>h(e)));return function(e,t){if(s)for(const n of e)s.setParent(n,t)}(e,t),t}function d(e){const t=o({dispose:i((()=>{a(t),e()}))});return t}class u{static{this.DISABLE_DISPOSED_WARNING=!1}constructor(){this._toDispose=new Set,this._isDisposed=!1,o(this)}dispose(){this._isDisposed||(a(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(0!==this._toDispose.size)try{h(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return l(e,this),this._isDisposed?u.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}deleteAndLeak(e){e&&this._toDispose.has(e)&&(this._toDispose.delete(e),l(e,null))}}class g{static{this.None=Object.freeze({dispose(){}})}constructor(){this._store=new u,o(this),l(this._store,this)}dispose(){a(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}class f{constructor(){this._isDisposed=!1,o(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){this._isDisposed||e===this._value||(this._value?.dispose(),e&&l(e,this),this._value=e)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,a(this),this._value?.dispose(),this._value=void 0}}class m{constructor(){this._store=new Map,this._isDisposed=!1,o(this)}dispose(){a(this),this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{h(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,t,n=!1){this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),n||this._store.get(e)?.dispose(),this._store.set(e,t)}deleteAndDispose(e){this._store.get(e)?.dispose(),this._store.delete(e)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}},8925:(e,t,n)=>{"use strict";n.d(t,{w:()=>r});class i{static{this.Undefined=new i(void 0)}constructor(e){this.element=e,this.next=i.Undefined,this.prev=i.Undefined}}class r{constructor(){this._first=i.Undefined,this._last=i.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===i.Undefined}clear(){let e=this._first;for(;e!==i.Undefined;){const t=e.next;e.prev=i.Undefined,e.next=i.Undefined,e=t}this._first=i.Undefined,this._last=i.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new i(e);if(this._first===i.Undefined)this._first=n,this._last=n;else if(t){const e=this._last;this._last=n,n.prev=e,e.next=n}else{const 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!==i.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==i.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==i.Undefined&&e.next!==i.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===i.Undefined&&e.next===i.Undefined?(this._first=i.Undefined,this._last=i.Undefined):e.next===i.Undefined?(this._last=this._last.prev,this._last.next=i.Undefined):e.prev===i.Undefined&&(this._first=this._first.next,this._first.prev=i.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==i.Undefined;)yield e.element,e=e.next}}},4320:(e,t,n)=>{"use strict";var i,r;n.d(t,{cO:()=>c,db:()=>d,fT:()=>o,qK:()=>h});class s{constructor(e,t){this.uri=e,this.value=t}}class o{static{this.defaultToKey=e=>e.toString()}constructor(e,t){if(this[i]="ResourceMap",e instanceof o)this.map=new Map(e.map),this.toKey=t??o.defaultToKey;else if(function(e){return Array.isArray(e)}(e)){this.map=new Map,this.toKey=t??o.defaultToKey;for(const[t,n]of e)this.set(t,n)}else this.map=new Map,this.toKey=e??o.defaultToKey}set(e,t){return this.map.set(this.toKey(e),new s(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){"undefined"!==typeof t&&(e=e.bind(t));for(const[n,i]of this.map)e(i.value,i.uri,this)}*values(){for(const e of this.map.values())yield e.value}*keys(){for(const e of this.map.values())yield e.uri}*entries(){for(const e of this.map.values())yield[e.uri,e.value]}*[(i=Symbol.toStringTag,Symbol.iterator)](){for(const[,e]of this.map)yield[e.uri,e.value]}}class a{constructor(){this[r]="LinkedMap",this._map=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){const n=this._map.get(e);if(n)return 0!==t&&this.touch(n,t),n.value}set(e,t,n=0){let i=this._map.get(e);if(i)i.value=t,0!==n&&this.touch(i,n);else{switch(i={key:e,value:t,next:void 0,previous:void 0},n){case 0:case 2:default:this.addItemLast(i);break;case 1:this.addItemFirst(i)}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const 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 new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const n=this._state;let i=this._head;for(;i;){if(t?e.bind(t)(i.value,i.key,this):e(i.value,i.key,this),this._state!==n)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.key,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}values(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.value,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}entries(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:[n.key,n.value],done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}[(r=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();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(0===e)return void this.clear();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){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;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 new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,n=e.previous;if(!t||!n)throw new 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 new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;const 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(2===t){if(e===this._tail)return;const 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(){const e=[];return this.forEach(((t,n)=>{e.push([n,t])})),e}fromJSON(e){this.clear();for(const[t,n]of e)this.set(t,n)}}class l extends a{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))}}class h extends l{constructor(e,t=1){super(e,t)}trim(e){this.trimOld(e)}set(e,t){return super.set(e,t),this.checkTrim(),this}}class c{constructor(e){if(this._m1=new Map,this._m2=new Map,e)for(const[t,n]of e)this.set(t,n)}clear(){this._m1.clear(),this._m2.clear()}set(e,t){this._m1.set(e,t),this._m2.set(t,e)}get(e){return this._m1.get(e)}getKey(e){return this._m2.get(e)}delete(e){const t=this._m1.get(e);return void 0!==t&&(this._m1.delete(e),this._m2.delete(t),!0)}keys(){return this._m1.keys()}values(){return this._m1.values()}}class d{constructor(){this.map=new Map}add(e,t){let n=this.map.get(e);n||(n=new Set,this.map.set(e,n)),n.add(t)}delete(e,t){const n=this.map.get(e);n&&(n.delete(t),0===n.size&&this.map.delete(e))}forEach(e,t){const n=this.map.get(e);n&&n.forEach(t)}get(e){const t=this.map.get(e);return t||new Set}}},1939:(e,t,n)=>{"use strict";n.d(t,{K:()=>i});const i=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"})},6456:(e,t,n)=>{"use strict";n.d(t,{ny:()=>i,v$:()=>h,zl:()=>u});var i,r=n(4383),s=n(8067),o=n(1508),a=n(9400),l=n(8821);function h(e,t){return a.r.isUri(e)?(0,o.Q_)(e.scheme,t):(0,o.ns)(e,t+":")}!function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command",e.vscodeRemote="vscode-remote",e.vscodeRemoteResource="vscode-remote-resource",e.vscodeManagedRemoteResource="vscode-managed-remote-resource",e.vscodeUserData="vscode-userdata",e.vscodeCustomEditor="vscode-custom-editor",e.vscodeNotebookCell="vscode-notebook-cell",e.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",e.vscodeNotebookCellMetadataDiff="vscode-notebook-cell-metadata-diff",e.vscodeNotebookCellOutput="vscode-notebook-cell-output",e.vscodeNotebookCellOutputDiff="vscode-notebook-cell-output-diff",e.vscodeNotebookMetadata="vscode-notebook-metadata",e.vscodeInteractiveInput="vscode-interactive-input",e.vscodeSettings="vscode-settings",e.vscodeWorkspaceTrust="vscode-workspace-trust",e.vscodeTerminal="vscode-terminal",e.vscodeChatCodeBlock="vscode-chat-code-block",e.vscodeChatCodeCompareBlock="vscode-chat-code-compare-block",e.vscodeChatSesssion="vscode-chat-editor",e.webviewPanel="webview-panel",e.vscodeWebview="vscode-webview",e.extension="extension",e.vscodeFileResource="vscode-file",e.tmp="tmp",e.vsls="vsls",e.vscodeSourceControl="vscode-scm",e.commentsInput="comment",e.codeSetting="code-setting",e.outputChannel="output"}(i||(i={}));const c=new class{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(e){this._preferredWebSchema=e}get _remoteResourcesPath(){return l.SA.join(this._serverRootPath,i.vscodeRemoteResource)}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(c){return r.dz(c),e}const t=e.authority;let n=this._hosts[t];n&&-1!==n.indexOf(":")&&-1===n.indexOf("[")&&(n=`[${n}]`);const o=this._ports[t],l=this._connectionTokens[t];let h=`path=${encodeURIComponent(e.path)}`;return"string"===typeof l&&(h+=`&tkn=${encodeURIComponent(l)}`),a.r.from({scheme:s.HZ?this._preferredWebSchema:i.vscodeRemoteResource,authority:`${n}:${o}`,path:this._remoteResourcesPath,query:h})}};class d{static{this.FALLBACK_AUTHORITY="vscode-app"}asBrowserUri(e){const t=this.toUri(e);return this.uriToBrowserUri(t)}uriToBrowserUri(e){return e.scheme===i.vscodeRemote?c.rewrite(e):e.scheme!==i.file||!s.ib&&s.lg!==`${i.vscodeFileResource}://${d.FALLBACK_AUTHORITY}`?e:e.with({scheme:i.vscodeFileResource,authority:e.authority||d.FALLBACK_AUTHORITY,query:null,fragment:null})}toUri(e,t){if(a.r.isUri(e))return e;if(globalThis._VSCODE_FILE_ROOT){const t=globalThis._VSCODE_FILE_ROOT;if(/^\w[\w\d+.-]*:\/\//.test(t))return a.r.joinPath(a.r.parse(t,!0),e);const n=l.fj(t,e);return a.r.file(n)}return a.r.parse(t.toUrl(e))}}const u=new d;var g;!function(e){const t=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);e.CoopAndCoep=Object.freeze(t.get("3"));const n="vscode-coi";e.getHeadersFromQuery=function(e){let i;"string"===typeof e?i=new URL(e).searchParams:e instanceof URL?i=e.searchParams:a.r.isUri(e)&&(i=new URL(e.toString(!0)).searchParams);const r=i?.get(n);if(r)return t.get(r)},e.addSearchParam=function(e,t,i){if(!globalThis.crossOriginIsolated)return;const r=t&&i?"3":i?"2":"1";e instanceof URLSearchParams?e.set(n,r):e[n]=r}}(g||(g={}))},146:(e,t,n)=>{"use strict";n.d(t,{V0:()=>r,aI:()=>i,kT:()=>s});Object.prototype.hasOwnProperty;function i(e,t){if(e===t)return!0;if(null===e||void 0===e||null===t||void 0===t)return!1;if(typeof e!==typeof t)return!1;if("object"!==typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;let n,r;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!i(e[n],t[n]))return!1}else{const s=[];for(r in e)s.push(r);s.sort();const o=[];for(r in t)o.push(r);if(o.sort(),!i(s,o))return!1;for(n=0;n<s.length;n++)if(!i(e[s[n]],t[s[n]]))return!1}return!0}function r(e){const t=[];for(const n of function(e){let t=[];for(;Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}(e))"function"===typeof e[n]&&t.push(n);return t}function s(e,t){const n=e=>function(){const n=Array.prototype.slice.call(arguments,0);return t(e,n)},i={};for(const r of e)i[r]=n(r);return i}},8821:(e,t,n)=>{"use strict";n.d(t,{P8:()=>E,pD:()=>x,LC:()=>A,fj:()=>C,S8:()=>T,SA:()=>y,V8:()=>L,hd:()=>S,Vn:()=>I,IN:()=>w});var i=n(8067);let r;const s=globalThis.vscode;if("undefined"!==typeof s&&"undefined"!==typeof s.process){const e=s.process;r={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd:()=>e.cwd()}}else r="undefined"!==typeof process&&"string"===typeof process?.versions?.node?{get platform(){return process.platform},get arch(){return process.arch},get env(){return{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}},cwd:()=>({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}.VSCODE_CWD||process.cwd())}:{get platform(){return i.uF?"win32":i.zx?"darwin":"linux"},get arch(){},get env(){return{}},cwd:()=>"/"};const o=r.cwd,a=(r.env,r.platform),l=46,h=47,c=92,d=58;class u extends Error{constructor(e,t,n){let i;"string"===typeof t&&0===t.indexOf("not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";const r=-1!==e.indexOf(".")?"property":"argument";let s=`The "${e}" ${r} ${i} of type ${t}`;s+=". Received type "+typeof n,super(s),this.code="ERR_INVALID_ARG_TYPE"}}function g(e,t){if("string"!==typeof e)throw new u(t,"string",e)}const f="win32"===a;function m(e){return e===h||e===c}function p(e){return e===h}function _(e){return e>=65&&e<=90||e>=97&&e<=122}function b(e,t,n,i){let r="",s=0,o=-1,a=0,c=0;for(let d=0;d<=e.length;++d){if(d<e.length)c=e.charCodeAt(d);else{if(i(c))break;c=h}if(i(c)){if(o===d-1||1===a);else if(2===a){if(r.length<2||2!==s||r.charCodeAt(r.length-1)!==l||r.charCodeAt(r.length-2)!==l){if(r.length>2){const e=r.lastIndexOf(n);-1===e?(r="",s=0):(r=r.slice(0,e),s=r.length-1-r.lastIndexOf(n)),o=d,a=0;continue}if(0!==r.length){r="",s=0,o=d,a=0;continue}}t&&(r+=r.length>0?`${n}..`:"..",s=2)}else r.length>0?r+=`${n}${e.slice(o+1,d)}`:r=e.slice(o+1,d),s=d-o-1;o=d,a=0}else c===l&&-1!==a?++a:a=-1}return r}function v(e,t){!function(e,t){if(null===e||"object"!==typeof e)throw new u(t,"Object",e)}(t,"pathObject");const n=t.dir||t.root,i=t.base||`${t.name||""}${r=t.ext,r?`${"."===r[0]?"":"."}${r}`:""}`;var r;return n?n===t.root?`${n}${i}`:`${n}${e}${i}`:i}const w={resolve(...e){let t="",n="",i=!1;for(let r=e.length-1;r>=-1;r--){let s;if(r>=0){if(s=e[r],g(s,`paths[${r}]`),0===s.length)continue}else 0===t.length?s=o():(s={NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}[`=${t}`]||o(),(void 0===s||s.slice(0,2).toLowerCase()!==t.toLowerCase()&&s.charCodeAt(2)===c)&&(s=`${t}\\`));const a=s.length;let l=0,h="",u=!1;const f=s.charCodeAt(0);if(1===a)m(f)&&(l=1,u=!0);else if(m(f))if(u=!0,m(s.charCodeAt(1))){let e=2,t=e;for(;e<a&&!m(s.charCodeAt(e));)e++;if(e<a&&e!==t){const n=s.slice(t,e);for(t=e;e<a&&m(s.charCodeAt(e));)e++;if(e<a&&e!==t){for(t=e;e<a&&!m(s.charCodeAt(e));)e++;e!==a&&e===t||(h=`\\\\${n}\\${s.slice(t,e)}`,l=e)}}}else l=1;else _(f)&&s.charCodeAt(1)===d&&(h=s.slice(0,2),l=2,a>2&&m(s.charCodeAt(2))&&(u=!0,l=3));if(h.length>0)if(t.length>0){if(h.toLowerCase()!==t.toLowerCase())continue}else t=h;if(i){if(t.length>0)break}else if(n=`${s.slice(l)}\\${n}`,i=u,u&&t.length>0)break}return n=b(n,!i,"\\",m),i?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){g(e,"path");const t=e.length;if(0===t)return".";let n,i=0,r=!1;const s=e.charCodeAt(0);if(1===t)return p(s)?"\\":e;if(m(s))if(r=!0,m(e.charCodeAt(1))){let r=2,s=r;for(;r<t&&!m(e.charCodeAt(r));)r++;if(r<t&&r!==s){const o=e.slice(s,r);for(s=r;r<t&&m(e.charCodeAt(r));)r++;if(r<t&&r!==s){for(s=r;r<t&&!m(e.charCodeAt(r));)r++;if(r===t)return`\\\\${o}\\${e.slice(s)}\\`;r!==s&&(n=`\\\\${o}\\${e.slice(s,r)}`,i=r)}}}else i=1;else _(s)&&e.charCodeAt(1)===d&&(n=e.slice(0,2),i=2,t>2&&m(e.charCodeAt(2))&&(r=!0,i=3));let o=i<t?b(e.slice(i),!r,"\\",m):"";return 0!==o.length||r||(o="."),o.length>0&&m(e.charCodeAt(t-1))&&(o+="\\"),void 0===n?r?`\\${o}`:o:r?`${n}\\${o}`:`${n}${o}`},isAbsolute(e){g(e,"path");const t=e.length;if(0===t)return!1;const n=e.charCodeAt(0);return m(n)||t>2&&_(n)&&e.charCodeAt(1)===d&&m(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let t,n;for(let s=0;s<e.length;++s){const i=e[s];g(i,"path"),i.length>0&&(void 0===t?t=n=i:t+=`\\${i}`)}if(void 0===t)return".";let i=!0,r=0;if("string"===typeof n&&m(n.charCodeAt(0))){++r;const e=n.length;e>1&&m(n.charCodeAt(1))&&(++r,e>2&&(m(n.charCodeAt(2))?++r:i=!1))}if(i){for(;r<t.length&&m(t.charCodeAt(r));)r++;r>=2&&(t=`\\${t.slice(r)}`)}return w.normalize(t)},relative(e,t){if(g(e,"from"),g(t,"to"),e===t)return"";const n=w.resolve(e),i=w.resolve(t);if(n===i)return"";if((e=n.toLowerCase())===(t=i.toLowerCase()))return"";let r=0;for(;r<e.length&&e.charCodeAt(r)===c;)r++;let s=e.length;for(;s-1>r&&e.charCodeAt(s-1)===c;)s--;const o=s-r;let a=0;for(;a<t.length&&t.charCodeAt(a)===c;)a++;let l=t.length;for(;l-1>a&&t.charCodeAt(l-1)===c;)l--;const h=l-a,d=o<h?o:h;let u=-1,f=0;for(;f<d;f++){const n=e.charCodeAt(r+f);if(n!==t.charCodeAt(a+f))break;n===c&&(u=f)}if(f!==d){if(-1===u)return i}else{if(h>d){if(t.charCodeAt(a+f)===c)return i.slice(a+f+1);if(2===f)return i.slice(a+f)}o>d&&(e.charCodeAt(r+f)===c?u=f:2===f&&(u=3)),-1===u&&(u=0)}let m="";for(f=r+u+1;f<=s;++f)f!==s&&e.charCodeAt(f)!==c||(m+=0===m.length?"..":"\\..");return a+=u,m.length>0?`${m}${i.slice(a,l)}`:(i.charCodeAt(a)===c&&++a,i.slice(a,l))},toNamespacedPath(e){if("string"!==typeof e||0===e.length)return e;const t=w.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===c){if(t.charCodeAt(1)===c){const e=t.charCodeAt(2);if(63!==e&&e!==l)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(_(t.charCodeAt(0))&&t.charCodeAt(1)===d&&t.charCodeAt(2)===c)return`\\\\?\\${t}`;return e},dirname(e){g(e,"path");const t=e.length;if(0===t)return".";let n=-1,i=0;const r=e.charCodeAt(0);if(1===t)return m(r)?e:".";if(m(r)){if(n=i=1,m(e.charCodeAt(1))){let r=2,s=r;for(;r<t&&!m(e.charCodeAt(r));)r++;if(r<t&&r!==s){for(s=r;r<t&&m(e.charCodeAt(r));)r++;if(r<t&&r!==s){for(s=r;r<t&&!m(e.charCodeAt(r));)r++;if(r===t)return e;r!==s&&(n=i=r+1)}}}}else _(r)&&e.charCodeAt(1)===d&&(n=t>2&&m(e.charCodeAt(2))?3:2,i=n);let s=-1,o=!0;for(let a=t-1;a>=i;--a)if(m(e.charCodeAt(a))){if(!o){s=a;break}}else o=!1;if(-1===s){if(-1===n)return".";s=n}return e.slice(0,s)},basename(e,t){void 0!==t&&g(t,"suffix"),g(e,"path");let n,i=0,r=-1,s=!0;if(e.length>=2&&_(e.charCodeAt(0))&&e.charCodeAt(1)===d&&(i=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(n=e.length-1;n>=i;--n){const l=e.charCodeAt(n);if(m(l)){if(!s){i=n+1;break}}else-1===a&&(s=!1,a=n+1),o>=0&&(l===t.charCodeAt(o)?-1===--o&&(r=n):(o=-1,r=a))}return i===r?r=a:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=i;--n)if(m(e.charCodeAt(n))){if(!s){i=n+1;break}}else-1===r&&(s=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname(e){g(e,"path");let t=0,n=-1,i=0,r=-1,s=!0,o=0;e.length>=2&&e.charCodeAt(1)===d&&_(e.charCodeAt(0))&&(t=i=2);for(let a=e.length-1;a>=t;--a){const t=e.charCodeAt(a);if(m(t)){if(!s){i=a+1;break}}else-1===r&&(s=!1,r=a+1),t===l?-1===n?n=a:1!==o&&(o=1):-1!==n&&(o=-1)}return-1===n||-1===r||0===o||1===o&&n===r-1&&n===i+1?"":e.slice(n,r)},format:v.bind(null,"\\"),parse(e){g(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.length;let i=0,r=e.charCodeAt(0);if(1===n)return m(r)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(m(r)){if(i=1,m(e.charCodeAt(1))){let t=2,r=t;for(;t<n&&!m(e.charCodeAt(t));)t++;if(t<n&&t!==r){for(r=t;t<n&&m(e.charCodeAt(t));)t++;if(t<n&&t!==r){for(r=t;t<n&&!m(e.charCodeAt(t));)t++;t===n?i=t:t!==r&&(i=t+1)}}}}else if(_(r)&&e.charCodeAt(1)===d){if(n<=2)return t.root=t.dir=e,t;if(i=2,m(e.charCodeAt(2))){if(3===n)return t.root=t.dir=e,t;i=3}}i>0&&(t.root=e.slice(0,i));let s=-1,o=i,a=-1,h=!0,c=e.length-1,u=0;for(;c>=i;--c)if(r=e.charCodeAt(c),m(r)){if(!h){o=c+1;break}}else-1===a&&(h=!1,a=c+1),r===l?-1===s?s=c:1!==u&&(u=1):-1!==s&&(u=-1);return-1!==a&&(-1===s||0===u||1===u&&s===a-1&&s===o+1?t.base=t.name=e.slice(o,a):(t.name=e.slice(o,s),t.base=e.slice(o,a),t.ext=e.slice(s,a))),t.dir=o>0&&o!==i?e.slice(0,o-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},k=(()=>{if(f){const e=/\\/g;return()=>{const t=o().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>o()})(),y={resolve(...e){let t="",n=!1;for(let i=e.length-1;i>=-1&&!n;i--){const r=i>=0?e[i]:k();g(r,`paths[${i}]`),0!==r.length&&(t=`${r}/${t}`,n=r.charCodeAt(0)===h)}return t=b(t,!n,"/",p),n?`/${t}`:t.length>0?t:"."},normalize(e){if(g(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===h,n=e.charCodeAt(e.length-1)===h;return 0===(e=b(e,!t,"/",p)).length?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute:e=>(g(e,"path"),e.length>0&&e.charCodeAt(0)===h),join(...e){if(0===e.length)return".";let t;for(let n=0;n<e.length;++n){const i=e[n];g(i,"path"),i.length>0&&(void 0===t?t=i:t+=`/${i}`)}return void 0===t?".":y.normalize(t)},relative(e,t){if(g(e,"from"),g(t,"to"),e===t)return"";if((e=y.resolve(e))===(t=y.resolve(t)))return"";const n=e.length,i=n-1,r=t.length-1,s=i<r?i:r;let o=-1,a=0;for(;a<s;a++){const n=e.charCodeAt(1+a);if(n!==t.charCodeAt(1+a))break;n===h&&(o=a)}if(a===s)if(r>s){if(t.charCodeAt(1+a)===h)return t.slice(1+a+1);if(0===a)return t.slice(1+a)}else i>s&&(e.charCodeAt(1+a)===h?o=a:0===a&&(o=0));let l="";for(a=1+o+1;a<=n;++a)a!==n&&e.charCodeAt(a)!==h||(l+=0===l.length?"..":"/..");return`${l}${t.slice(1+o)}`},toNamespacedPath:e=>e,dirname(e){if(g(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===h;let n=-1,i=!0;for(let r=e.length-1;r>=1;--r)if(e.charCodeAt(r)===h){if(!i){n=r;break}}else i=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename(e,t){void 0!==t&&g(t,"ext"),g(e,"path");let n,i=0,r=-1,s=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(n=e.length-1;n>=0;--n){const l=e.charCodeAt(n);if(l===h){if(!s){i=n+1;break}}else-1===a&&(s=!1,a=n+1),o>=0&&(l===t.charCodeAt(o)?-1===--o&&(r=n):(o=-1,r=a))}return i===r?r=a:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===h){if(!s){i=n+1;break}}else-1===r&&(s=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname(e){g(e,"path");let t=-1,n=0,i=-1,r=!0,s=0;for(let o=e.length-1;o>=0;--o){const a=e.charCodeAt(o);if(a!==h)-1===i&&(r=!1,i=o+1),a===l?-1===t?t=o:1!==s&&(s=1):-1!==t&&(s=-1);else if(!r){n=o+1;break}}return-1===t||-1===i||0===s||1===s&&t===i-1&&t===n+1?"":e.slice(t,i)},format:v.bind(null,"/"),parse(e){g(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.charCodeAt(0)===h;let i;n?(t.root="/",i=1):i=0;let r=-1,s=0,o=-1,a=!0,c=e.length-1,d=0;for(;c>=i;--c){const t=e.charCodeAt(c);if(t!==h)-1===o&&(a=!1,o=c+1),t===l?-1===r?r=c:1!==d&&(d=1):-1!==r&&(d=-1);else if(!a){s=c+1;break}}if(-1!==o){const i=0===s&&n?1:s;-1===r||0===d||1===d&&r===o-1&&r===s+1?t.base=t.name=e.slice(i,o):(t.name=e.slice(i,r),t.base=e.slice(i,o),t.ext=e.slice(r,o))}return s>0?t.dir=e.slice(0,s-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};y.win32=w.win32=w,y.posix=w.posix=y;const T=f?w.normalize:y.normalize,C=f?w.join:y.join,S=f?w.resolve:y.resolve,L=f?w.relative:y.relative,x=f?w.dirname:y.dirname,E=f?w.basename:y.basename,A=f?w.extname:y.extname,I=f?w.sep:y.sep},8067:(e,t,n)=>{"use strict";n.d(t,{H8:()=>P,HZ:()=>A,OS:()=>D,UP:()=>H,_p:()=>R,cm:()=>z,gm:()=>F,ib:()=>E,j9:()=>x,lg:()=>I,nr:()=>W,uF:()=>S,zx:()=>L});var i=n(8209);const r="en";let s,o,a=!1,l=!1,h=!1,c=!1,d=!1,u=!1,g=!1,f=!1,m=!1,p=!1,_=null,b=null,v=null;const w=globalThis;let k;"undefined"!==typeof w.vscode&&"undefined"!==typeof w.vscode.process?k=w.vscode.process:"undefined"!==typeof process&&"string"===typeof process?.versions?.node&&(k=process);const y="string"===typeof k?.versions?.electron,T=y&&"renderer"===k?.type;if("object"===typeof k){a="win32"===k.platform,l="darwin"===k.platform,h="linux"===k.platform,c=h&&!!k.env.SNAP&&!!k.env.SNAP_REVISION,g=y,m=!!k.env.CI||!!k.env.BUILD_ARTIFACTSTAGINGDIRECTORY,s=r,_=r;const e=k.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e);s=t.userLocale,b=t.osLocale,_=t.resolvedLanguage||r,v=t.languagePack?.translationsConfigFile}catch(U){}d=!0}else"object"!==typeof navigator||T?console.error("Unable to resolve platform."):(o=navigator.userAgent,a=o.indexOf("Windows")>=0,l=o.indexOf("Macintosh")>=0,f=(o.indexOf("Macintosh")>=0||o.indexOf("iPad")>=0||o.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,h=o.indexOf("Linux")>=0,p=o?.indexOf("Mobi")>=0,u=!0,_=i.i8()||r,s=navigator.language.toLowerCase(),b=s);let C=0;l?C=1:a?C=3:h&&(C=2);const S=a,L=l,x=h,E=d,A=u,I=u&&"function"===typeof w.importScripts?w.origin:void 0,M=o,N="function"===typeof w.postMessage&&!w.importScripts,R=(()=>{if(N){const e=[];w.addEventListener("message",(t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let n=0,i=e.length;n<i;n++){const i=e[n];if(i.id===t.data.vscodeScheduleAsyncWork)return e.splice(n,1),void i.callback()}}));let t=0;return n=>{const i=++t;e.push({id:i,callback:n}),w.postMessage({vscodeScheduleAsyncWork:i},"*")}}return e=>setTimeout(e)})(),D=l||f?2:a?1:3;let O=!0,B=!1;function z(){if(!B){B=!0;const e=new Uint8Array(2);e[0]=1,e[1]=2;const t=new Uint16Array(e.buffer);O=513===t[0]}return O}const P=!!(M&&M.indexOf("Chrome")>=0),F=!!(M&&M.indexOf("Firefox")>=0),W=!!(!P&&M&&M.indexOf("Safari")>=0),H=!!(M&&M.indexOf("Edg/")>=0);M&&M.indexOf("Android")},9403:(e,t,n)=>{"use strict";n.d(t,{B6:()=>m,P8:()=>u});var i=n(9326),r=n(6456),s=n(8821),o=n(8067),a=n(1508),l=n(9400);function h(e){return(0,l.I)(e,!0)}class c{constructor(e){this._ignorePathCasing=e}compare(e,t,n=!1){return e===t?0:(0,a.UD)(this.getComparisonKey(e,n),this.getComparisonKey(t,n))}isEqual(e,t,n=!1){return e===t||!(!e||!t)&&this.getComparisonKey(e,n)===this.getComparisonKey(t,n)}getComparisonKey(e,t=!1){return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:t?null:void 0}).toString()}isEqualOrParent(e,t,n=!1){if(e.scheme===t.scheme){if(e.scheme===r.ny.file)return i._1(h(e),h(t),this._ignorePathCasing(e))&&e.query===t.query&&(n||e.fragment===t.fragment);if(g(e.authority,t.authority))return i._1(e.path,t.path,this._ignorePathCasing(e),"/")&&e.query===t.query&&(n||e.fragment===t.fragment)}return!1}joinPath(e,...t){return l.r.joinPath(e,...t)}basenameOrAuthority(e){return u(e)||e.authority}basename(e){return s.SA.basename(e.path)}extname(e){return s.SA.extname(e.path)}dirname(e){if(0===e.path.length)return e;let t;return e.scheme===r.ny.file?t=l.r.file(s.pD(h(e))).path:(t=s.SA.dirname(e.path),e.authority&&t.length&&47!==t.charCodeAt(0)&&(console.error(`dirname("${e.toString})) resulted in a relative path`),t="/")),e.with({path:t})}normalizePath(e){if(!e.path.length)return e;let t;return t=e.scheme===r.ny.file?l.r.file(s.S8(h(e))).path:s.SA.normalize(e.path),e.with({path:t})}relativePath(e,t){if(e.scheme!==t.scheme||!g(e.authority,t.authority))return;if(e.scheme===r.ny.file){const n=s.V8(h(e),h(t));return o.uF?i.TH(n):n}let n=e.path||"/";const a=t.path||"/";if(this._ignorePathCasing(e)){let e=0;for(const t=Math.min(n.length,a.length);e<t&&(n.charCodeAt(e)===a.charCodeAt(e)||n.charAt(e).toLowerCase()===a.charAt(e).toLowerCase());e++);n=a.substr(0,e)+n.substr(e)}return s.SA.relative(n,a)}resolvePath(e,t){if(e.scheme===r.ny.file){const n=l.r.file(s.hd(h(e),t));return e.with({authority:n.authority,path:n.path})}return t=i.kb(t),e.with({path:s.SA.resolve(e.path,t)})}isAbsolutePath(e){return!!e.path&&"/"===e.path[0]}isEqualAuthority(e,t){return e===t||void 0!==e&&void 0!==t&&(0,a.Q_)(e,t)}hasTrailingPathSeparator(e,t=s.Vn){if(e.scheme===r.ny.file){const n=h(e);return n.length>i.Zn(n).length&&n[n.length-1]===t}{const t=e.path;return t.length>1&&47===t.charCodeAt(t.length-1)&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}}removeTrailingPathSeparator(e,t=s.Vn){return f(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e,t=s.Vn){let n=!1;if(e.scheme===r.ny.file){const r=h(e);n=void 0!==r&&r.length===i.Zn(r).length&&r[r.length-1]===t}else{t="/";const i=e.path;n=1===i.length&&47===i.charCodeAt(i.length-1)}return n||f(e,t)?e:e.with({path:e.path+"/"})}}const d=new c((()=>!1)),u=(new c((e=>e.scheme!==r.ny.file||!o.j9)),new c((e=>!0)),d.isEqual.bind(d),d.isEqualOrParent.bind(d),d.getComparisonKey.bind(d),d.basenameOrAuthority.bind(d),d.basename.bind(d)),g=(d.extname.bind(d),d.dirname.bind(d),d.joinPath.bind(d),d.normalizePath.bind(d),d.relativePath.bind(d),d.resolvePath.bind(d),d.isAbsolutePath.bind(d),d.isEqualAuthority.bind(d)),f=d.hasTrailingPathSeparator.bind(d);d.removeTrailingPathSeparator.bind(d),d.addTrailingPathSeparator.bind(d);var m;!function(e){e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=function(t){const n=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach((e=>{const[t,i]=e.split(":");t&&i&&n.set(t,i)}));const i=t.path.substring(0,t.path.indexOf(";"));return i&&n.set(e.META_DATA_MIME,i),n}}(m||(m={}))},8381:(e,t,n)=>{"use strict";n.d(t,{W:()=>r});const i=globalThis.performance&&"function"===typeof globalThis.performance.now;class r{static create(e){return new r(e)}constructor(e){this._now=i&&!1===e?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}}},1508:(e,t,n)=>{"use strict";n.d(t,{$X:()=>N,AV:()=>s,E_:()=>E,HG:()=>u,LJ:()=>y,LU:()=>B,NB:()=>l,OS:()=>h,Q_:()=>v,Ss:()=>D,UD:()=>f,Wv:()=>b,Z5:()=>C,_J:()=>M,aC:()=>I,bm:()=>a,eY:()=>c,jy:()=>o,km:()=>L,lT:()=>g,ne:()=>R,ns:()=>w,pc:()=>k,r_:()=>O,tk:()=>z,tl:()=>W,uz:()=>d,y_:()=>H,z_:()=>T});var i=n(1788),r=n(1090);function s(e){return!e||"string"!==typeof e||0===e.trim().length}function o(e){return e.replace(/[<>"'&]/g,(e=>{switch(e){case"<":return"<";case">":return">";case'"':return""";case"'":return"'";case"&":return"&"}return e}))}function a(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function l(e,t){if(!e||!t)return e;const n=t.length;if(0===n||0===e.length)return e;let i=0;for(;e.indexOf(t,i)===i;)i+=n;return e.substring(i)}function h(e,t,n={}){if(!e)throw new Error("Cannot create regex from empty string");t||(e=a(e)),n.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));let i="";return n.global&&(i+="g"),n.matchCase||(i+="i"),n.multiline&&(i+="m"),n.unicode&&(i+="u"),new RegExp(e,i)}function c(e){if("^"===e.source||"^$"===e.source||"$"===e.source||"^\\s*$"===e.source)return!1;return!(!e.exec("")||0!==e.lastIndex)}function d(e){return e.split(/\r\n|\r|\n/)}function u(e){for(let t=0,n=e.length;t<n;t++){const n=e.charCodeAt(t);if(32!==n&&9!==n)return t}return-1}function g(e,t=e.length-1){for(let n=t;n>=0;n--){const t=e.charCodeAt(n);if(32!==t&&9!==t)return n}return-1}function f(e,t){return e<t?-1:e>t?1:0}function m(e,t,n=0,i=e.length,r=0,s=t.length){for(;n<i&&r<s;n++,r++){const i=e.charCodeAt(n),s=t.charCodeAt(r);if(i<s)return-1;if(i>s)return 1}const o=i-n,a=s-r;return o<a?-1:o>a?1:0}function p(e,t,n=0,i=e.length,r=0,s=t.length){for(;n<i&&r<s;n++,r++){let o=e.charCodeAt(n),a=t.charCodeAt(r);if(o===a)continue;if(o>=128||a>=128)return m(e.toLowerCase(),t.toLowerCase(),n,i,r,s);_(o)&&(o-=32),_(a)&&(a-=32);const l=o-a;if(0!==l)return l}const o=i-n,a=s-r;return o<a?-1:o>a?1:0}function _(e){return e>=97&&e<=122}function b(e){return e>=65&&e<=90}function v(e,t){return e.length===t.length&&0===p(e,t)}function w(e,t){const n=t.length;return!(t.length>e.length)&&0===p(e,t,0,n)}function k(e){return 55296<=e&&e<=56319}function y(e){return 56320<=e&&e<=57343}function T(e,t){return t-56320+(e-55296<<10)+65536}function C(e,t,n){const i=e.charCodeAt(n);if(k(i)&&n+1<t){const t=e.charCodeAt(n+1);if(y(t))return T(i,t)}return i}class S{get offset(){return this._offset}constructor(e,t=0){this._str=e,this._len=e.length,this._offset=t}setOffset(e){this._offset=e}prevCodePoint(){const e=function(e,t){const n=e.charCodeAt(t-1);if(y(n)&&t>1){const i=e.charCodeAt(t-2);if(k(i))return T(i,n)}return n}(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){const e=C(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class L{get offset(){return this._iterator.offset}constructor(e,t=0){this._iterator=new S(e,t)}nextGraphemeLength(){const e=F.getInstance(),t=this._iterator,n=t.offset;let i=e.getGraphemeBreakType(t.nextCodePoint());for(;!t.eol();){const n=t.offset,r=e.getGraphemeBreakType(t.nextCodePoint());if(P(i,r)){t.setOffset(n);break}i=r}return t.offset-n}prevGraphemeLength(){const e=F.getInstance(),t=this._iterator,n=t.offset;let i=e.getGraphemeBreakType(t.prevCodePoint());for(;t.offset>0;){const n=t.offset,r=e.getGraphemeBreakType(t.prevCodePoint());if(P(r,i)){t.setOffset(n);break}i=r}return n-t.offset}eol(){return this._iterator.eol()}}let x;function E(e){return x||(x=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/),x.test(e)}const A=/^[\t\n\r\x20-\x7E]*$/;function I(e){return A.test(e)}const M=/[\u2028\u2029]/;function N(e){return M.test(e)}function R(e){return e>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function D(e){return e>=127462&&e<=127487||8986===e||8987===e||9200===e||9203===e||e>=9728&&e<=10175||11088===e||11093===e||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129008||e>=129280&&e<=129535||e>=129648&&e<=129782}const O=String.fromCharCode(65279);function B(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}function z(e){return(e%=52)<26?String.fromCharCode(97+e):String.fromCharCode(65+e-26)}function P(e,t){return 0===e?5!==t&&7!==t:(2!==e||3!==t)&&(4===e||2===e||3===e||(4===t||2===t||3===t||(8!==e||8!==t&&9!==t&&11!==t&&12!==t)&&((11!==e&&9!==e||9!==t&&10!==t)&&((12!==e&&10!==e||10!==t)&&(5!==t&&13!==t&&(7!==t&&(1!==e&&((13!==e||14!==t)&&(6!==e||6!==t)))))))))}class F{static{this._INSTANCE=null}static getInstance(){return F._INSTANCE||(F._INSTANCE=new F),F._INSTANCE}constructor(){this._data=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]")}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;const t=this._data,n=t.length/3;let i=1;for(;i<=n;)if(e<t[3*i])i*=2;else{if(!(e>t[3*i+1]))return t[3*i+2];i=2*i+1}return 0}}class W{static{this.ambiguousCharacterData=new r.d((()=>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,8218,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,8242,96,1370,96,1523,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,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,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,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,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,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,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,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,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,71922,67,71913,67,65315,67,8557,67,8450,67,8493,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,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,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,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,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,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,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,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,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,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,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,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,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,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,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,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,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,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,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,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,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,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,71919,87,71910,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,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,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,66293,90,71909,90,65338,90,8484,90,8488,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,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,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,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,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,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,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,65283,35,65292,44,65307,59],"ko":[8211,45,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,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,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,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[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,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,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,65283,35,65307,59]}')))}static{this.cache=new i.o5({getCacheKey:JSON.stringify},(e=>{function t(e){const t=new Map;for(let n=0;n<e.length;n+=2)t.set(e[n],e[n+1]);return t}function n(e,t){if(!e)return t;const n=new Map;for(const[i,r]of e)t.has(i)&&n.set(i,r);return n}const i=this.ambiguousCharacterData.value;let r,s=e.filter((e=>!e.startsWith("_")&&e in i));0===s.length&&(s=["_default"]);for(const a of s){r=n(r,t(i[a]))}const o=function(e,t){const n=new Map(e);for(const[i,r]of t)n.set(i,r);return n}(t(i._common),r);return new W(o)}))}static getInstance(e){return W.cache.get(Array.from(e))}static{this._locales=new r.d((()=>Object.keys(W.ambiguousCharacterData.value).filter((e=>!e.startsWith("_")))))}static getLocales(){return W._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())}}class H{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,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,12288,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]")}static{this._data=void 0}static getData(){return this._data||(this._data=new Set(H.getRawData())),this._data}static isInvisibleCharacter(e){return H.getData().has(e)}static get codePoints(){return H.getData()}}},631:(e,t,n)=>{"use strict";function i(e){return"string"===typeof e}function r(e){return"object"===typeof e&&null!==e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function s(e){return"undefined"===typeof e}function o(e){return s(e)||null===e}n.d(t,{Gv:()=>r,Kg:()=>i,b0:()=>s,z:()=>o})},5152:(e,t,n)=>{"use strict";function i(e){return e<0?0:e>255?255:0|e}function r(e){return e<0?0:e>4294967295?4294967295:0|e}n.d(t,{W:()=>i,j:()=>r})},9400:(e,t,n)=>{"use strict";n.d(t,{I:()=>_,r:()=>d});var i=n(8821),r=n(8067);const s=/^\w[\w\d+.-]*$/,o=/^\//,a=/^\/\//;const l="",h="/",c=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class d{static isUri(e){return e instanceof d||!!e&&("string"===typeof e.authority&&"string"===typeof e.fragment&&"string"===typeof e.path&&"string"===typeof e.query&&"string"===typeof e.scheme&&"string"===typeof e.fsPath&&"function"===typeof e.with&&"function"===typeof e.toString)}constructor(e,t,n,i,r,c=!1){"object"===typeof e?(this.scheme=e.scheme||l,this.authority=e.authority||l,this.path=e.path||l,this.query=e.query||l,this.fragment=e.fragment||l):(this.scheme=function(e,t){return e||t?e:"file"}(e,c),this.authority=t||l,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==h&&(t=h+t):t=h}return t}(this.scheme,n||l),this.query=i||l,this.fragment=r||l,function(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!s.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!o.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(a.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,c))}get fsPath(){return _(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:i,query:r,fragment:s}=e;return void 0===t?t=this.scheme:null===t&&(t=l),void 0===n?n=this.authority:null===n&&(n=l),void 0===i?i=this.path:null===i&&(i=l),void 0===r?r=this.query:null===r&&(r=l),void 0===s?s=this.fragment:null===s&&(s=l),t===this.scheme&&n===this.authority&&i===this.path&&r===this.query&&s===this.fragment?this:new g(t,n,i,r,s)}static parse(e,t=!1){const n=c.exec(e);return n?new g(n[2]||l,k(n[4]||l),k(n[5]||l),k(n[7]||l),k(n[9]||l),t):new g(l,l,l,l,l)}static file(e){let t=l;if(r.uF&&(e=e.replace(/\\/g,h)),e[0]===h&&e[1]===h){const n=e.indexOf(h,2);-1===n?(t=e.substring(2),e=h):(t=e.substring(2,n),e=e.substring(n)||h)}return new g("file",t,e,l,l)}static from(e,t){return new g(e.scheme,e.authority,e.path,e.query,e.fragment,t)}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let n;return n=r.uF&&"file"===e.scheme?d.file(i.IN.join(_(e,!0),...t)).path:i.SA.join(e.path,...t),e.with({path:n})}toString(e=!1){return b(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof d)return e;{const t=new g(e);return t._formatted=e.external??null,t._fsPath=e._sep===u?e.fsPath??null:null,t}}return e}}const u=r.uF?1:void 0;class g extends d{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=_(this,!1)),this._fsPath}toString(e=!1){return e?b(this,!0):(this._formatted||(this._formatted=b(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=u),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}}const f={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 m(e,t,n){let i,r=-1;for(let s=0;s<e.length;s++){const o=e.charCodeAt(s);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o||n&&91===o||n&&93===o||n&&58===o)-1!==r&&(i+=encodeURIComponent(e.substring(r,s)),r=-1),void 0!==i&&(i+=e.charAt(s));else{void 0===i&&(i=e.substr(0,s));const t=f[o];void 0!==t?(-1!==r&&(i+=encodeURIComponent(e.substring(r,s)),r=-1),i+=t):-1===r&&(r=s)}}return-1!==r&&(i+=encodeURIComponent(e.substring(r))),void 0!==i?i:e}function p(e){let t;for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);35===i||63===i?(void 0===t&&(t=e.substr(0,n)),t+=f[i]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function _(e,t){let n;return n=e.authority&&e.path.length>1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,r.uF&&(n=n.replace(/\//g,"\\")),n}function b(e,t){const n=t?p:m;let i="",{scheme:r,authority:s,path:o,query:a,fragment:l}=e;if(r&&(i+=r,i+=":"),(s||"file"===r)&&(i+=h,i+=h),s){let e=s.indexOf("@");if(-1!==e){const t=s.substr(0,e);s=s.substr(e+1),e=t.lastIndexOf(":"),-1===e?i+=n(t,!1,!1):(i+=n(t.substr(0,e),!1,!1),i+=":",i+=n(t.substr(e+1),!1,!0)),i+="@"}s=s.toLowerCase(),e=s.lastIndexOf(":"),-1===e?i+=n(s,!1,!0):(i+=n(s.substr(0,e),!1,!0),i+=s.substr(e))}if(o){if(o.length>=3&&47===o.charCodeAt(0)&&58===o.charCodeAt(2)){const e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&58===o.charCodeAt(1)){const e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}i+=n(o,!0,!1)}return a&&(i+="?",i+=n(a,!1,!1)),l&&(i+="#",i+=t?l:m(l,!1,!1)),i}function v(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+v(e.substr(3)):e}}const w=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function k(e){return e.match(w)?e.replace(w,(e=>v(e))):e}},1929:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SimpleWorkerClient:()=>v,SimpleWorkerServer:()=>y,create:()=>T,logOnceWebWorkerWarning:()=>u});var i=n(4383),r=n(1234),s=n(1484),o=n(6456),a=n(8067),l=n(1508);const h="default",c="$initialize";let d=!1;function u(e){a.HZ&&(d||(d=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(e.message))}class g{constructor(e,t,n,i,r){this.vsWorker=e,this.req=t,this.channel=n,this.method=i,this.args=r,this.type=0}}class f{constructor(e,t,n,i){this.vsWorker=e,this.seq=t,this.res=n,this.err=i,this.type=1}}class m{constructor(e,t,n,i,r){this.vsWorker=e,this.req=t,this.channel=n,this.eventName=i,this.arg=r,this.type=2}}class p{constructor(e,t,n){this.vsWorker=e,this.req=t,this.event=n,this.type=3}}class _{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class b{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,t,n){const i=String(++this._lastSentReq);return new Promise(((r,s)=>{this._pendingReplies[i]={resolve:r,reject:s},this._send(new g(this._workerId,i,e,t,n))}))}listen(e,t,n){let i=null;const s=new r.vl({onWillAddFirstListener:()=>{i=String(++this._lastSentReq),this._pendingEmitters.set(i,s),this._send(new m(this._workerId,i,e,t,n))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(i),this._send(new _(this._workerId,i)),i=null}});return s.event}handleMessage(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))}createProxyToRemoteChannel(e,t){const n={get:(n,i)=>("string"!==typeof i||n[i]||(k(i)?n[i]=t=>this.listen(e,i,t):w(i)?n[i]=this.listen(e,i,void 0):36===i.charCodeAt(0)&&(n[i]=async(...n)=>(await(t?.()),this.sendMessage(e,i,n)))),n[i])};return new Proxy(Object.create(null),n)}_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])return void console.warn("Got reply to unknown seq");const t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let n=e.err;return e.err.$isError&&(n=new Error,n.name=e.err.name,n.message=e.err.message,n.stack=e.err.stack),void t.reject(n)}t.resolve(e.res)}_handleRequestMessage(e){const t=e.req;this._handler.handleMessage(e.channel,e.method,e.args).then((e=>{this._send(new f(this._workerId,t,e,void 0))}),(e=>{e.detail instanceof Error&&(e.detail=(0,i.cU)(e.detail)),this._send(new f(this._workerId,t,void 0,(0,i.cU)(e)))}))}_handleSubscribeEventMessage(e){const t=e.req,n=this._handler.handleEvent(e.channel,e.eventName,e.arg)((e=>{this._send(new p(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){const t=[];if(0===e.type)for(let n=0;n<e.args.length;n++)e.args[n]instanceof ArrayBuffer&&t.push(e.args[n]);else 1===e.type&&e.res instanceof ArrayBuffer&&t.push(e.res);this._handler.sendMessage(e,t)}}class v extends s.jG{constructor(e,t){super(),this._localChannels=new Map,this._worker=this._register(e.create({amdModuleId:"vs/base/common/worker/simpleWorker",esmModuleLocation:t.esmModuleLocation,label:t.label},(e=>{this._protocol.handleMessage(e)}),(e=>{(0,i.dz)(e)}))),this._protocol=new b({sendMessage:(e,t)=>{this._worker.postMessage(e,t)},handleMessage:(e,t,n)=>this._handleMessage(e,t,n),handleEvent:(e,t,n)=>this._handleEvent(e,t,n)}),this._protocol.setWorkerId(this._worker.getId());let n=null;const r=globalThis.require;"undefined"!==typeof r&&"function"===typeof r.getConfig?n=r.getConfig():"undefined"!==typeof globalThis.requirejs&&(n=globalThis.requirejs.s.contexts._.config),this._onModuleLoaded=this._protocol.sendMessage(h,c,[this._worker.getId(),JSON.parse(JSON.stringify(n)),t.amdModuleId]),this.proxy=this._protocol.createProxyToRemoteChannel(h,(async()=>{await this._onModuleLoaded})),this._onModuleLoaded.catch((e=>{this._onError("Worker failed to load "+t.amdModuleId,e)}))}_handleMessage(e,t,n){const i=this._localChannels.get(e);if(!i)return Promise.reject(new Error(`Missing channel ${e} on main thread`));if("function"!==typeof i[t])return Promise.reject(new Error(`Missing method ${t} on main thread channel ${e}`));try{return Promise.resolve(i[t].apply(i,n))}catch(r){return Promise.reject(r)}}_handleEvent(e,t,n){const i=this._localChannels.get(e);if(!i)throw new Error(`Missing channel ${e} on main thread`);if(k(t)){const r=i[t].call(i,n);if("function"!==typeof r)throw new Error(`Missing dynamic event ${t} on main thread channel ${e}.`);return r}if(w(t)){const n=i[t];if("function"!==typeof n)throw new Error(`Missing event ${t} on main thread channel ${e}.`);return n}throw new Error(`Malformed event name ${t}`)}setChannel(e,t){this._localChannels.set(e,t)}_onError(e,t){console.error(e),console.info(t)}}function w(e){return"o"===e[0]&&"n"===e[1]&&l.Wv(e.charCodeAt(2))}function k(e){return/^onDynamic/.test(e)&&l.Wv(e.charCodeAt(9))}class y{constructor(e,t){this._localChannels=new Map,this._remoteChannels=new Map,this._requestHandlerFactory=t,this._requestHandler=null,this._protocol=new b({sendMessage:(t,n)=>{e(t,n)},handleMessage:(e,t,n)=>this._handleMessage(e,t,n),handleEvent:(e,t,n)=>this._handleEvent(e,t,n)})}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,t,n){if(e===h&&t===c)return this.initialize(n[0],n[1],n[2]);const i=e===h?this._requestHandler:this._localChannels.get(e);if(!i)return Promise.reject(new Error(`Missing channel ${e} on worker thread`));if("function"!==typeof i[t])return Promise.reject(new Error(`Missing method ${t} on worker thread channel ${e}`));try{return Promise.resolve(i[t].apply(i,n))}catch(r){return Promise.reject(r)}}_handleEvent(e,t,n){const i=e===h?this._requestHandler:this._localChannels.get(e);if(!i)throw new Error(`Missing channel ${e} on worker thread`);if(k(t)){const e=i[t].call(i,n);if("function"!==typeof e)throw new Error(`Missing dynamic event ${t} on request handler.`);return e}if(w(t)){const e=i[t];if("function"!==typeof e)throw new Error(`Missing event ${t} on request handler.`);return e}throw new Error(`Malformed event name ${t}`)}getChannel(e){if(!this._remoteChannels.has(e)){const t=this._protocol.createProxyToRemoteChannel(e);this._remoteChannels.set(e,t)}return this._remoteChannels.get(e)}async initialize(e,t,i){if(this._protocol.setWorkerId(e),!this._requestHandlerFactory){t&&("undefined"!==typeof t.baseUrl&&delete t.baseUrl,"undefined"!==typeof t.paths&&"undefined"!==typeof t.paths.vs&&delete t.paths.vs,"undefined"!==typeof t.trustedTypesPolicy&&delete t.trustedTypesPolicy,t.catchError=!0,globalThis.require.config(t));{const e=o.zl.asBrowserUri(`${i}.js`).toString(!0);return n(5890)(`${e}`).then((e=>{if(this._requestHandler=e.create(this),!this._requestHandler)throw new Error("No RequestHandler!")}))}}this._requestHandler=this._requestHandlerFactory(this)}}function T(e){return new y(e,null)}},534:(e,t,n)=>{"use strict";n.d(t,{V:()=>r});var i=n(5152);class r{constructor(e){const t=(0,i.W)(e);this._defaultValue=t,this._asciiMap=r._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){const t=new Uint8Array(256);return t.fill(e),t}set(e,t){const n=(0,i.W)(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()}}},7119:(e,t,n)=>{"use strict";n.d(t,{AQ:()=>_,aZ:()=>p,l5:()=>k,lQ:()=>v,s7:()=>C,sH:()=>y,sN:()=>b,ss:()=>w,yI:()=>m,zp:()=>T});var i=n(8209),r=n(7661),s=n(5845),o=n(5724);const a=(0,s.x1A)("editor.lineHighlightBackground",null,i.kg("lineHighlight","Background color for the highlight of line at the cursor position.")),l=((0,s.x1A)("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hcDark:"#f38518",hcLight:s.b1q},i.kg("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),(0,s.x1A)("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hcDark:null,hcLight:null},i.kg("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1A)("editor.rangeHighlightBorder",{dark:null,light:null,hcDark:s.buw,hcLight:s.buw},i.kg("rangeHighlightBorder","Background color of the border around highlighted ranges.")),(0,s.x1A)("editor.symbolHighlightBackground",{dark:s.Ubg,light:s.Ubg,hcDark:null,hcLight:null},i.kg("symbolHighlight","Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1A)("editor.symbolHighlightBorder",{dark:null,light:null,hcDark:s.buw,hcLight:s.buw},i.kg("symbolHighlightBorder","Background color of the border around highlighted symbols.")),(0,s.x1A)("editorCursor.foreground",{dark:"#AEAFAD",light:r.Q1.black,hcDark:r.Q1.white,hcLight:"#0F4A85"},i.kg("caret","Color of the editor cursor."))),h=(0,s.x1A)("editorCursor.background",null,i.kg("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),c=((0,s.x1A)("editorMultiCursor.primary.foreground",l,i.kg("editorMultiCursorPrimaryForeground","Color of the primary editor cursor when multiple cursors are present.")),(0,s.x1A)("editorMultiCursor.primary.background",h,i.kg("editorMultiCursorPrimaryBackground","The background color of the primary editor cursor when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),(0,s.x1A)("editorMultiCursor.secondary.foreground",l,i.kg("editorMultiCursorSecondaryForeground","Color of secondary editor cursors when multiple cursors are present.")),(0,s.x1A)("editorMultiCursor.secondary.background",h,i.kg("editorMultiCursorSecondaryBackground","The background color of secondary editor cursors when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),(0,s.x1A)("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hcDark:"#e3e4e229",hcLight:"#CCCCCC"},i.kg("editorWhitespaces","Color of whitespace characters in the editor."))),d=((0,s.x1A)("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hcDark:r.Q1.white,hcLight:"#292929"},i.kg("editorLineNumbers","Color of editor line numbers.")),(0,s.x1A)("editorIndentGuide.background",c,i.kg("editorIndentGuides","Color of the editor indentation guides."),!1,i.kg("deprecatedEditorIndentGuides","'editorIndentGuide.background' is deprecated. Use 'editorIndentGuide.background1' instead."))),u=(0,s.x1A)("editorIndentGuide.activeBackground",c,i.kg("editorActiveIndentGuide","Color of the active editor indentation guides."),!1,i.kg("deprecatedEditorActiveIndentGuide","'editorIndentGuide.activeBackground' is deprecated. Use 'editorIndentGuide.activeBackground1' instead.")),g=((0,s.x1A)("editorIndentGuide.background1",d,i.kg("editorIndentGuides1","Color of the editor indentation guides (1).")),(0,s.x1A)("editorIndentGuide.background2","#00000000",i.kg("editorIndentGuides2","Color of the editor indentation guides (2).")),(0,s.x1A)("editorIndentGuide.background3","#00000000",i.kg("editorIndentGuides3","Color of the editor indentation guides (3).")),(0,s.x1A)("editorIndentGuide.background4","#00000000",i.kg("editorIndentGuides4","Color of the editor indentation guides (4).")),(0,s.x1A)("editorIndentGuide.background5","#00000000",i.kg("editorIndentGuides5","Color of the editor indentation guides (5).")),(0,s.x1A)("editorIndentGuide.background6","#00000000",i.kg("editorIndentGuides6","Color of the editor indentation guides (6).")),(0,s.x1A)("editorIndentGuide.activeBackground1",u,i.kg("editorActiveIndentGuide1","Color of the active editor indentation guides (1).")),(0,s.x1A)("editorIndentGuide.activeBackground2","#00000000",i.kg("editorActiveIndentGuide2","Color of the active editor indentation guides (2).")),(0,s.x1A)("editorIndentGuide.activeBackground3","#00000000",i.kg("editorActiveIndentGuide3","Color of the active editor indentation guides (3).")),(0,s.x1A)("editorIndentGuide.activeBackground4","#00000000",i.kg("editorActiveIndentGuide4","Color of the active editor indentation guides (4).")),(0,s.x1A)("editorIndentGuide.activeBackground5","#00000000",i.kg("editorActiveIndentGuide5","Color of the active editor indentation guides (5).")),(0,s.x1A)("editorIndentGuide.activeBackground6","#00000000",i.kg("editorActiveIndentGuide6","Color of the active editor indentation guides (6).")),(0,s.x1A)("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hcDark:s.buw,hcLight:s.buw},i.kg("editorActiveLineNumber","Color of editor active line number"),!1,i.kg("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead."))),f=((0,s.x1A)("editorLineNumber.activeForeground",g,i.kg("editorActiveLineNumber","Color of editor active line number")),(0,s.x1A)("editorLineNumber.dimmedForeground",null,i.kg("editorDimmedLineNumber","Color of the final editor line when editor.renderFinalNewline is set to dimmed.")),(0,s.x1A)("editorRuler.foreground",{dark:"#5A5A5A",light:r.Q1.lightgrey,hcDark:r.Q1.white,hcLight:"#292929"},i.kg("editorRuler","Color of the editor rulers.")),(0,s.x1A)("editorCodeLens.foreground",{dark:"#999999",light:"#919191",hcDark:"#999999",hcLight:"#292929"},i.kg("editorCodeLensForeground","Foreground color of editor CodeLens")),(0,s.x1A)("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hcDark:"#0064001a",hcLight:"#0000"},i.kg("editorBracketMatchBackground","Background color behind matching brackets")),(0,s.x1A)("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hcDark:s.b1q,hcLight:s.b1q},i.kg("editorBracketMatchBorder","Color for matching brackets boxes")),(0,s.x1A)("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hcDark:"#7f7f7f4d",hcLight:"#666666"},i.kg("editorOverviewRulerBorder","Color of the overview ruler border.")),(0,s.x1A)("editorOverviewRuler.background",null,i.kg("editorOverviewRulerBackground","Background color of the editor overview ruler.")),(0,s.x1A)("editorGutter.background",s.YtV,i.kg("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),(0,s.x1A)("editorUnnecessaryCode.border",{dark:null,light:null,hcDark:r.Q1.fromHex("#fff").transparent(.8),hcLight:s.b1q},i.kg("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),(0,s.x1A)("editorUnnecessaryCode.opacity",{dark:r.Q1.fromHex("#000a"),light:r.Q1.fromHex("#0007"),hcDark:null,hcLight:null},i.kg("unnecessaryCodeOpacity","Opacity of unnecessary (unused) source code in the editor. For example, \"#000000c0\" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out.")),(0,s.x1A)("editorGhostText.border",{dark:null,light:null,hcDark:r.Q1.fromHex("#fff").transparent(.8),hcLight:r.Q1.fromHex("#292929").transparent(.8)},i.kg("editorGhostTextBorder","Border color of ghost text in the editor.")),(0,s.x1A)("editorGhostText.foreground",{dark:r.Q1.fromHex("#ffffff56"),light:r.Q1.fromHex("#0007"),hcDark:null,hcLight:null},i.kg("editorGhostTextForeground","Foreground color of the ghost text in the editor.")),(0,s.x1A)("editorGhostText.background",null,i.kg("editorGhostTextBackground","Background color of the ghost text in the editor.")),new r.Q1(new r.bU(0,122,204,.6))),m=((0,s.x1A)("editorOverviewRuler.rangeHighlightForeground",f,i.kg("overviewRulerRangeHighlight","Overview ruler marker color for range highlights. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1A)("editorOverviewRuler.errorForeground",{dark:new r.Q1(new r.bU(255,18,18,.7)),light:new r.Q1(new r.bU(255,18,18,.7)),hcDark:new r.Q1(new r.bU(255,50,50,1)),hcLight:"#B5200D"},i.kg("overviewRuleError","Overview ruler marker color for errors."))),p=(0,s.x1A)("editorOverviewRuler.warningForeground",{dark:s.Hng,light:s.Hng,hcDark:s.Stt,hcLight:s.Stt},i.kg("overviewRuleWarning","Overview ruler marker color for warnings.")),_=(0,s.x1A)("editorOverviewRuler.infoForeground",{dark:s.pOz,light:s.pOz,hcDark:s.IIb,hcLight:s.IIb},i.kg("overviewRuleInfo","Overview ruler marker color for infos.")),b=(0,s.x1A)("editorBracketHighlight.foreground1",{dark:"#FFD700",light:"#0431FAFF",hcDark:"#FFD700",hcLight:"#0431FAFF"},i.kg("editorBracketHighlightForeground1","Foreground color of brackets (1). Requires enabling bracket pair colorization.")),v=(0,s.x1A)("editorBracketHighlight.foreground2",{dark:"#DA70D6",light:"#319331FF",hcDark:"#DA70D6",hcLight:"#319331FF"},i.kg("editorBracketHighlightForeground2","Foreground color of brackets (2). Requires enabling bracket pair colorization.")),w=(0,s.x1A)("editorBracketHighlight.foreground3",{dark:"#179FFF",light:"#7B3814FF",hcDark:"#87CEFA",hcLight:"#7B3814FF"},i.kg("editorBracketHighlightForeground3","Foreground color of brackets (3). Requires enabling bracket pair colorization.")),k=(0,s.x1A)("editorBracketHighlight.foreground4","#00000000",i.kg("editorBracketHighlightForeground4","Foreground color of brackets (4). Requires enabling bracket pair colorization.")),y=(0,s.x1A)("editorBracketHighlight.foreground5","#00000000",i.kg("editorBracketHighlightForeground5","Foreground color of brackets (5). Requires enabling bracket pair colorization.")),T=(0,s.x1A)("editorBracketHighlight.foreground6","#00000000",i.kg("editorBracketHighlightForeground6","Foreground color of brackets (6). Requires enabling bracket pair colorization.")),C=(0,s.x1A)("editorBracketHighlight.unexpectedBracket.foreground",{dark:new r.Q1(new r.bU(255,18,18,.8)),light:new r.Q1(new r.bU(255,18,18,.8)),hcDark:"new Color(new RGBA(255, 50, 50, 1))",hcLight:"#B5200D"},i.kg("editorBracketHighlightUnexpectedBracketForeground","Foreground color of unexpected brackets."));(0,s.x1A)("editorBracketPairGuide.background1","#00000000",i.kg("editorBracketPairGuide.background1","Background color of inactive bracket pair guides (1). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background2","#00000000",i.kg("editorBracketPairGuide.background2","Background color of inactive bracket pair guides (2). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background3","#00000000",i.kg("editorBracketPairGuide.background3","Background color of inactive bracket pair guides (3). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background4","#00000000",i.kg("editorBracketPairGuide.background4","Background color of inactive bracket pair guides (4). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background5","#00000000",i.kg("editorBracketPairGuide.background5","Background color of inactive bracket pair guides (5). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background6","#00000000",i.kg("editorBracketPairGuide.background6","Background color of inactive bracket pair guides (6). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground1","#00000000",i.kg("editorBracketPairGuide.activeBackground1","Background color of active bracket pair guides (1). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground2","#00000000",i.kg("editorBracketPairGuide.activeBackground2","Background color of active bracket pair guides (2). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground3","#00000000",i.kg("editorBracketPairGuide.activeBackground3","Background color of active bracket pair guides (3). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground4","#00000000",i.kg("editorBracketPairGuide.activeBackground4","Background color of active bracket pair guides (4). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground5","#00000000",i.kg("editorBracketPairGuide.activeBackground5","Background color of active bracket pair guides (5). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground6","#00000000",i.kg("editorBracketPairGuide.activeBackground6","Background color of active bracket pair guides (6). Requires enabling bracket pair guides.")),(0,s.x1A)("editorUnicodeHighlight.border",s.Hng,i.kg("editorUnicodeHighlight.border","Border color used to highlight unicode characters.")),(0,s.x1A)("editorUnicodeHighlight.background",s.whs,i.kg("editorUnicodeHighlight.background","Background color used to highlight unicode characters."));(0,o.zy)(((e,t)=>{const n=e.getColor(s.YtV),i=e.getColor(a),r=i&&!i.isTransparent()?i:n;r&&t.addRule(`.monaco-editor .inputarea.ime-input { background-color: ${r}; }`)}))},4454:(e,t,n)=>{"use strict";function i(e){let t=0,n=0,i=0,r=0;for(let s=0,o=e.length;s<o;s++){const a=e.charCodeAt(s);13===a?(0===t&&(n=s),t++,s+1<o&&10===e.charCodeAt(s+1)?(r|=2,s++):r|=3,i=s+1):10===a&&(r|=1,0===t&&(n=s),t++,i=s+1)}return 0===t&&(n=e.length),[t,n,e.length-i,r]}n.d(t,{W:()=>i})},6571:(e,t,n)=>{"use strict";n.d(t,{M:()=>a,S:()=>l});var i=n(4383),r=n(4444),s=n(6677),o=n(6041);class a{static fromRangeInclusive(e){return new a(e.startLineNumber,e.endLineNumber+1)}static joinMany(e){if(0===e.length)return[];let t=new l(e[0].slice());for(let n=1;n<e.length;n++)t=t.getUnion(new l(e[n].slice()));return t.ranges}static join(e){if(0===e.length)throw new i.D7("lineRanges cannot be empty");let t=e[0].startLineNumber,n=e[0].endLineNumberExclusive;for(let i=1;i<e.length;i++)t=Math.min(t,e[i].startLineNumber),n=Math.max(n,e[i].endLineNumberExclusive);return new a(t,n)}static ofLength(e,t){return new a(e,e+t)}static deserialize(e){return new a(e[0],e[1])}constructor(e,t){if(e>t)throw new i.D7(`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(e){return new a(this.startLineNumber+e,this.endLineNumberExclusive+e)}deltaLength(e){return new a(this.startLineNumber,this.endLineNumberExclusive+e)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(e){return new a(Math.min(this.startLineNumber,e.startLineNumber),Math.max(this.endLineNumberExclusive,e.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(e){const t=Math.max(this.startLineNumber,e.startLineNumber),n=Math.min(this.endLineNumberExclusive,e.endLineNumberExclusive);if(t<=n)return new a(t,n)}intersectsStrict(e){return this.startLineNumber<e.endLineNumberExclusive&&e.startLineNumber<this.endLineNumberExclusive}overlapOrTouch(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 s.Q(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new s.Q(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(e){const 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]}includes(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}toOffsetRange(){return new r.L(this.startLineNumber-1,this.endLineNumberExclusive-1)}}class l{constructor(e=[]){this._normalizedRanges=e}get ranges(){return this._normalizedRanges}addRange(e){if(0===e.length)return;const t=(0,o.hw)(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),n=(0,o.iM)(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===n)this._normalizedRanges.splice(t,0,e);else if(t===n-1){const n=this._normalizedRanges[t];this._normalizedRanges[t]=n.join(e)}else{const i=this._normalizedRanges[t].join(this._normalizedRanges[n-1]).join(e);this._normalizedRanges.splice(t,n-t,i)}}contains(e){const t=(0,o.lx)(this._normalizedRanges,(t=>t.startLineNumber<=e));return!!t&&t.endLineNumberExclusive>e}intersects(e){const t=(0,o.lx)(this._normalizedRanges,(t=>t.startLineNumber<e.endLineNumberExclusive));return!!t&&t.endLineNumberExclusive>e.startLineNumber}getUnion(e){if(0===this._normalizedRanges.length)return e;if(0===e._normalizedRanges.length)return this;const t=[];let n=0,i=0,r=null;for(;n<this._normalizedRanges.length||i<e._normalizedRanges.length;){let s=null;if(n<this._normalizedRanges.length&&i<e._normalizedRanges.length){const t=this._normalizedRanges[n],r=e._normalizedRanges[i];t.startLineNumber<r.startLineNumber?(s=t,n++):(s=r,i++)}else n<this._normalizedRanges.length?(s=this._normalizedRanges[n],n++):(s=e._normalizedRanges[i],i++);null===r?r=s:r.endLineNumberExclusive>=s.startLineNumber?r=new a(r.startLineNumber,Math.max(r.endLineNumberExclusive,s.endLineNumberExclusive)):(t.push(r),r=s)}return null!==r&&t.push(r),new l(t)}subtractFrom(e){const t=(0,o.hw)(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),n=(0,o.iM)(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===n)return new l([e]);const i=[];let r=e.startLineNumber;for(let s=t;s<n;s++){const e=this._normalizedRanges[s];e.startLineNumber>r&&i.push(new a(r,e.startLineNumber)),r=e.endLineNumberExclusive}return r<e.endLineNumberExclusive&&i.push(new a(r,e.endLineNumberExclusive)),new l(i)}toString(){return this._normalizedRanges.map((e=>e.toString())).join(", ")}getIntersection(e){const t=[];let n=0,i=0;for(;n<this._normalizedRanges.length&&i<e._normalizedRanges.length;){const r=this._normalizedRanges[n],s=e._normalizedRanges[i],o=r.intersect(s);o&&!o.isEmpty&&t.push(o),r.endLineNumberExclusive<s.endLineNumberExclusive?n++:i++}return new l(t)}getWithDelta(e){return new l(this._normalizedRanges.map((t=>t.delta(e))))}}},4444:(e,t,n)=>{"use strict";n.d(t,{L:()=>r});var i=n(4383);class r{static addRange(e,t){let n=0;for(;n<t.length&&t[n].endExclusive<e.start;)n++;let i=n;for(;i<t.length&&t[i].start<=e.endExclusive;)i++;if(n===i)t.splice(n,0,e);else{const s=Math.min(e.start,t[n].start),o=Math.max(e.endExclusive,t[i-1].endExclusive);t.splice(n,i-n,new r(s,o))}}static tryCreate(e,t){if(!(e>t))return new r(e,t)}static ofLength(e){return new r(0,e)}static ofStartAndLength(e,t){return new r(e,e+t)}constructor(e,t){if(this.start=e,this.endExclusive=t,e>t)throw new i.D7(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new r(this.start+e,this.endExclusive+e)}deltaStart(e){return new r(this.start+e,this.endExclusive)}deltaEnd(e){return new r(this.start,this.endExclusive+e)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}contains(e){return this.start<=e&&e<this.endExclusive}join(e){return new r(Math.min(this.start,e.start),Math.max(this.endExclusive,e.endExclusive))}intersect(e){const t=Math.max(this.start,e.start),n=Math.min(this.endExclusive,e.endExclusive);if(t<=n)return new r(t,n)}intersects(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 i.D7(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,e))}clipCyclic(e){if(this.isEmpty)throw new i.D7(`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)}}},3069:(e,t,n)=>{"use strict";n.d(t,{y:()=>i});class i{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new i(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return i.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return i.isBefore(this,e)}static isBefore(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column}isBeforeOrEqual(e){return i.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<=t.column}static compare(e,t){const n=0|e.lineNumber,i=0|t.lineNumber;if(n===i){return(0|e.column)-(0|t.column)}return n-i}clone(){return new i(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new i(e.lineNumber,e.column)}static isIPosition(e){return e&&"number"===typeof e.lineNumber&&"number"===typeof e.column}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}}},6677:(e,t,n)=>{"use strict";n.d(t,{Q:()=>r});var i=n(3069);class r{constructor(e,t,n,i){e>n||e===n&&t>i?(this.startLineNumber=n,this.startColumn=i,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=i)}isEmpty(){return r.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return r.containsPosition(this,e)}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(e){return r.containsRange(this,e)}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(e){return r.strictContainsRange(this,e)}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(e){return r.plusRange(this,e)}static plusRange(e,t){let n,i,s,o;return t.startLineNumber<e.startLineNumber?(n=t.startLineNumber,i=t.startColumn):t.startLineNumber===e.startLineNumber?(n=t.startLineNumber,i=Math.min(t.startColumn,e.startColumn)):(n=e.startLineNumber,i=e.startColumn),t.endLineNumber>e.endLineNumber?(s=t.endLineNumber,o=t.endColumn):t.endLineNumber===e.endLineNumber?(s=t.endLineNumber,o=Math.max(t.endColumn,e.endColumn)):(s=e.endLineNumber,o=e.endColumn),new r(n,i,s,o)}intersectRanges(e){return r.intersectRanges(this,e)}static intersectRanges(e,t){let n=e.startLineNumber,i=e.startColumn,s=e.endLineNumber,o=e.endColumn;const a=t.startLineNumber,l=t.startColumn,h=t.endLineNumber,c=t.endColumn;return n<a?(n=a,i=l):n===a&&(i=Math.max(i,l)),s>h?(s=h,o=c):s===h&&(o=Math.min(o,c)),n>s||n===s&&i>o?null:new r(n,i,s,o)}equalsRange(e){return r.equalsRange(this,e)}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 r.getEndPosition(this)}static getEndPosition(e){return new i.y(e.endLineNumber,e.endColumn)}getStartPosition(){return r.getStartPosition(this)}static getStartPosition(e){return new i.y(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new r(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new r(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return r.collapseToStart(this)}static collapseToStart(e){return new r(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return r.collapseToEnd(this)}static collapseToEnd(e){return new r(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new r(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,t=e){return new r(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new r(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"===typeof e.startLineNumber&&"number"===typeof e.startColumn&&"number"===typeof e.endLineNumber&&"number"===typeof e.endColumn}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 compareRangesUsingStarts(e,t){if(e&&t){const n=0|e.startLineNumber,i=0|t.startLineNumber;if(n===i){const n=0|e.startColumn,i=0|t.startColumn;if(n===i){const n=0|e.endLineNumber,i=0|t.endLineNumber;if(n===i){return(0|e.endColumn)-(0|t.endColumn)}return n-i}return n-i}return n-i}return(e?1:0)-(t?1:0)}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}}},5326:(e,t,n)=>{"use strict";n.d(t,{L:()=>s});var i=n(3069),r=n(6677);class s extends r.Q{constructor(e,t,n,i){super(e,t,n,i),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=n,this.positionColumn=i}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return s.selectionsEqual(this,e)}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(e,t){return 0===this.getDirection()?new s(this.startLineNumber,this.startColumn,e,t):new s(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new i.y(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new i.y(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return 0===this.getDirection()?new s(e,t,this.endLineNumber,this.endColumn):new s(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new s(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return 0===t?new s(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new s(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new s(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.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,i=e.length;n<i;n++)if(!this.selectionsEqual(e[n],t[n]))return!1;return!0}static isISelection(e){return e&&"number"===typeof e.selectionStartLineNumber&&"number"===typeof e.selectionStartColumn&&"number"===typeof e.positionLineNumber&&"number"===typeof e.positionColumn}static createWithDirection(e,t,n,i,r){return 0===r?new s(e,t,n,i):new s(n,i,e,t)}}},973:(e,t,n)=>{"use strict";n.d(t,{W:()=>s});var i=n(3069),r=n(6677);class s{static{this.zero=new s(0,0)}static betweenPositions(e,t){return e.lineNumber===t.lineNumber?new s(0,t.column-e.column):new s(t.lineNumber-e.lineNumber,t.column-1)}static ofRange(e){return s.betweenPositions(e.getStartPosition(),e.getEndPosition())}static ofText(e){let t=0,n=0;for(const i of e)"\n"===i?(t++,n=0):n++;return new s(t,n)}constructor(e,t){this.lineCount=e,this.columnCount=t}isGreaterThanOrEqualTo(e){return this.lineCount!==e.lineCount?this.lineCount>e.lineCount:this.columnCount>=e.columnCount}createRange(e){return 0===this.lineCount?new r.Q(e.lineNumber,e.column,e.lineNumber,e.column+this.columnCount):new r.Q(e.lineNumber,e.column,e.lineNumber+this.lineCount,this.columnCount+1)}addToPosition(e){return 0===this.lineCount?new i.y(e.lineNumber,e.column+this.columnCount):new i.y(e.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}}},6486:(e,t,n)=>{"use strict";n.d(t,{Io:()=>o,Ld:()=>s,Th:()=>l});var i=n(2522),r=n(8925);const s=function(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const n of"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?")e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}();function o(e){let t=s;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}const a=new r.w;function l(e,t,n,r,s){if(t=o(t),s||(s=i.f.first(a)),n.length>s.maxLen){let i=e-s.maxLen/2;return i<0?i=0:r+=i,l(e,t,n=n.substring(i,e+s.maxLen/2),r,s)}const c=Date.now(),d=e-1-r;let u=-1,g=null;for(let i=1;!(Date.now()-c>=s.timeBudget);i++){const e=d-s.windowSize*i;t.lastIndex=Math.max(0,e);const r=h(t,n,d,u);if(!r&&g)break;if(g=r,e<=0)break;u=e}if(g){const e={word:g[0],startColumn:r+1+g.index,endColumn:r+1+g.index+g[0].length};return t.lastIndex=0,e}return null}function h(e,t,n,i){let r;for(;r=e.exec(t);){const t=r.index||0;if(t<=n&&e.lastIndex>=n)return r;if(i>0&&t>i)return null}return null}a.unshift({maxLen:1e3,windowSize:15,timeBudget:150})},5982:(e,t,n)=>{"use strict";n.d(t,{x:()=>i});class i{static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return 0!==(1024&e)}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(16744448&e)>>>15}static getBackground(e){return(4278190080&e)>>>24}static getClassNameFromMetadata(e){let t="mtk"+this.getForeground(e);const n=this.getFontStyle(e);return 1&n&&(t+=" mtki"),2&n&&(t+=" mtkb"),4&n&&(t+=" mtku"),8&n&&(t+=" mtks"),t}static getInlineStyleFromMetadata(e,t){const n=this.getForeground(e),i=this.getFontStyle(e);let r=`color: ${t[n]};`;1&i&&(r+="font-style: italic;"),2&i&&(r+="font-weight: bold;");let s="";return 4&i&&(s+=" underline"),8&i&&(s+=" line-through"),s&&(r+=`text-decoration:${s};`),r}static getPresentationFromMetadata(e){const t=this.getForeground(e),n=this.getFontStyle(e);return{foreground:t,italic:Boolean(1&n),bold:Boolean(2&n),underline:Boolean(4&n),strikethrough:Boolean(8&n)}}}},2083:(e,t,n)=>{"use strict";n.d(t,{rY:()=>p,ou:()=>m,dG:()=>T,OB:()=>C});var i=n(9493),r=(n(9400),n(1234)),s=n(1484);class o{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new r.vl,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]),(0,s.s)((()=>{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();const n=new a(this,e,t);return this._factories.set(e,n),(0,s.s)((()=>{const t=this._factories.get(e);t&&t===n&&(this._factories.delete(e),t.dispose())}))}async getOrCreate(e){const t=this.get(e);if(t)return t;const n=this._factories.get(e);return!n||n.isResolved?null:(await n.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;const 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}}class a extends s.jG{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._resolvePromise=this._create()),this._resolvePromise}async _create(){const e=await this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}}var l,h,c,d,u,g,f=n(8209);class m{constructor(e,t,n){this.offset=e,this.type=t,this.language=n,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}class p{constructor(e,t){this.tokens=e,this.endState=t,this._encodedTokenizationResultBrand=void 0}}!function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(l||(l={})),function(e){const t=new Map;t.set(0,i.W.symbolMethod),t.set(1,i.W.symbolFunction),t.set(2,i.W.symbolConstructor),t.set(3,i.W.symbolField),t.set(4,i.W.symbolVariable),t.set(5,i.W.symbolClass),t.set(6,i.W.symbolStruct),t.set(7,i.W.symbolInterface),t.set(8,i.W.symbolModule),t.set(9,i.W.symbolProperty),t.set(10,i.W.symbolEvent),t.set(11,i.W.symbolOperator),t.set(12,i.W.symbolUnit),t.set(13,i.W.symbolValue),t.set(15,i.W.symbolEnum),t.set(14,i.W.symbolConstant),t.set(15,i.W.symbolEnum),t.set(16,i.W.symbolEnumMember),t.set(17,i.W.symbolKeyword),t.set(27,i.W.symbolSnippet),t.set(18,i.W.symbolText),t.set(19,i.W.symbolColor),t.set(20,i.W.symbolFile),t.set(21,i.W.symbolReference),t.set(22,i.W.symbolCustomColor),t.set(23,i.W.symbolFolder),t.set(24,i.W.symbolTypeParameter),t.set(25,i.W.account),t.set(26,i.W.issues),e.toIcon=function(e){let n=t.get(e);return n||(console.info("No codicon found for CompletionItemKind "+e),n=i.W.symbolProperty),n};const n=new Map;n.set("method",0),n.set("function",1),n.set("constructor",2),n.set("field",3),n.set("variable",4),n.set("class",5),n.set("struct",6),n.set("interface",7),n.set("module",8),n.set("property",9),n.set("event",10),n.set("operator",11),n.set("unit",12),n.set("value",13),n.set("constant",14),n.set("enum",15),n.set("enum-member",16),n.set("enumMember",16),n.set("keyword",17),n.set("snippet",27),n.set("text",18),n.set("color",19),n.set("file",20),n.set("reference",21),n.set("customcolor",22),n.set("folder",23),n.set("type-parameter",24),n.set("typeParameter",24),n.set("account",25),n.set("issue",26),e.fromString=function(e,t){let i=n.get(e);return"undefined"!==typeof i||t||(i=9),i}}(h||(h={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(c||(c={}));!function(e){e[e.Automatic=0]="Automatic",e[e.PasteAs=1]="PasteAs"}(d||(d={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(u||(u={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(g||(g={}));(0,f.kg)("Array","array"),(0,f.kg)("Boolean","boolean"),(0,f.kg)("Class","class"),(0,f.kg)("Constant","constant"),(0,f.kg)("Constructor","constructor"),(0,f.kg)("Enum","enumeration"),(0,f.kg)("EnumMember","enumeration member"),(0,f.kg)("Event","event"),(0,f.kg)("Field","field"),(0,f.kg)("File","file"),(0,f.kg)("Function","function"),(0,f.kg)("Interface","interface"),(0,f.kg)("Key","key"),(0,f.kg)("Method","method"),(0,f.kg)("Module","module"),(0,f.kg)("Namespace","namespace"),(0,f.kg)("Null","null"),(0,f.kg)("Number","number"),(0,f.kg)("Object","object"),(0,f.kg)("Operator","operator"),(0,f.kg)("Package","package"),(0,f.kg)("Property","property"),(0,f.kg)("String","string"),(0,f.kg)("Struct","struct"),(0,f.kg)("TypeParameter","type parameter"),(0,f.kg)("Variable","variable");var _,b,v,w,k;!function(e){const t=new Map;t.set(0,i.W.symbolFile),t.set(1,i.W.symbolModule),t.set(2,i.W.symbolNamespace),t.set(3,i.W.symbolPackage),t.set(4,i.W.symbolClass),t.set(5,i.W.symbolMethod),t.set(6,i.W.symbolProperty),t.set(7,i.W.symbolField),t.set(8,i.W.symbolConstructor),t.set(9,i.W.symbolEnum),t.set(10,i.W.symbolInterface),t.set(11,i.W.symbolFunction),t.set(12,i.W.symbolVariable),t.set(13,i.W.symbolConstant),t.set(14,i.W.symbolString),t.set(15,i.W.symbolNumber),t.set(16,i.W.symbolBoolean),t.set(17,i.W.symbolArray),t.set(18,i.W.symbolObject),t.set(19,i.W.symbolKey),t.set(20,i.W.symbolNull),t.set(21,i.W.symbolEnumMember),t.set(22,i.W.symbolStruct),t.set(23,i.W.symbolEvent),t.set(24,i.W.symbolOperator),t.set(25,i.W.symbolTypeParameter),e.toIcon=function(e){let n=t.get(e);return n||(console.info("No codicon found for SymbolKind "+e),n=i.W.symbolProperty),n}}(_||(_={}));class y{static{this.Comment=new y("comment")}static{this.Imports=new y("imports")}static{this.Region=new y("region")}static fromValue(e){switch(e){case"comment":return y.Comment;case"imports":return y.Imports;case"region":return y.Region}return new y(e)}constructor(e){this.value=e}}!function(e){e[e.AIGenerated=1]="AIGenerated"}(b||(b={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(v||(v={})),function(e){e.is=function(e){return!(!e||"object"!==typeof e)&&("string"===typeof e.id&&"string"===typeof e.title)}}(w||(w={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(k||(k={}));const T=new o,C=new o;var S;!function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(S||(S={}))},154:(e,t,n)=>{"use strict";n.d(t,{L:()=>i});const i=(0,n(3591).u1)("languageService")},3941:(e,t,n)=>{"use strict";n.d(t,{W6:()=>l,vH:()=>h});var i=n(8209),r=n(1234),s=n(6359),o=n(1939),a=n(1646);const l=new class{constructor(){this._onDidChangeLanguages=new r.vl,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[]}registerLanguage(e){return this._languages.push(e),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let t=0,n=this._languages.length;t<n;t++)if(this._languages[t]===e)return void this._languages.splice(t,1)}}}getLanguages(){return this._languages}};s.O.add("editor.modesRegistry",l);const h="plaintext";l.registerLanguage({id:h,extensions:[".txt"],aliases:[i.kg("plainText.alias","Plain Text"),"text"],mimetypes:[o.K.text]}),s.O.as(a.Fd.Configuration).registerDefaultConfigurations([{overrides:{"[plaintext]":{"editor.unicodeHighlight.ambiguousCharacters":!1,"editor.unicodeHighlight.invisibleCharacters":!1}}}])},6223:(e,t,n)=>{"use strict";n.d(t,{A5:()=>i,Dg:()=>l,F4:()=>u,L5:()=>d,Wo:()=>c,X2:()=>a,ZS:()=>r,nk:()=>h,vd:()=>g});var i,r,s,o=n(146);!function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(i||(i={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(r||(r={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(s||(s={}));class a{get originalIndentSize(){return this._indentSizeIsTabSize?"tabSize":this.indentSize}constructor(e){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,0|e.tabSize),"tabSize"===e.indentSize?(this.indentSize=this.tabSize,this._indentSizeIsTabSize=!0):(this.indentSize=Math.max(1,0|e.indentSize),this._indentSizeIsTabSize=!1),this.insertSpaces=Boolean(e.insertSpaces),this.defaultEOL=0|e.defaultEOL,this.trimAutoWhitespace=Boolean(e.trimAutoWhitespace),this.bracketPairColorizationOptions=e.bracketPairColorizationOptions}equals(e){return this.tabSize===e.tabSize&&this._indentSizeIsTabSize===e._indentSizeIsTabSize&&this.indentSize===e.indentSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace&&(0,o.aI)(this.bracketPairColorizationOptions,e.bracketPairColorizationOptions)}createChangeEvent(e){return{tabSize:this.tabSize!==e.tabSize,indentSize:this.indentSize!==e.indentSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}}}class l{constructor(e,t){this._findMatchBrand=void 0,this.range=e,this.matches=t}}function h(e){return e&&"function"===typeof e.read}class c{constructor(e,t,n,i,r,s){this.identifier=e,this.range=t,this.text=n,this.forceMoveMarkers=i,this.isAutoWhitespaceEdit=r,this._isTracked=s}}class d{constructor(e,t,n){this.regex=e,this.wordSeparators=t,this.simpleSearch=n}}class u{constructor(e,t,n){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=n}}function g(e){return!e.isTooLargeForSyncing()&&!e.isForSimpleWidget}},7729:(e,t,n)=>{"use strict";n.d(t,{lt:()=>d,W5:()=>p,hB:()=>f,dr:()=>u,wC:()=>m});var i=n(1508),r=n(4320),s=n(534);class o extends s.V{constructor(e,t){super(0),this._segmenter=null,this._cachedLine=null,this._cachedSegments=[],this.intlSegmenterLocales=t,this.intlSegmenterLocales.length>0?this._segmenter=new Intl.Segmenter(this.intlSegmenterLocales,{granularity:"word"}):this._segmenter=null;for(let n=0,i=e.length;n<i;n++)this.set(e.charCodeAt(n),2);this.set(32,1),this.set(9,1)}findPrevIntlWordBeforeOrAtOffset(e,t){let n=null;for(const i of this._getIntlSegmenterWordsOnLine(e)){if(i.index>t)break;n=i}return n}findNextIntlWordAtOrAfterOffset(e,t){for(const n of this._getIntlSegmenterWordsOnLine(e))if(!(n.index<t))return n;return null}_getIntlSegmenterWordsOnLine(e){return this._segmenter?(this._cachedLine===e||(this._cachedLine=e,this._cachedSegments=this._filterWordSegments(this._segmenter.segment(e))),this._cachedSegments):[]}_filterWordSegments(e){const t=[];for(const n of e)this._isWordLike(n)&&t.push(n);return t}_isWordLike(e){return!!e.isWordLike}}const a=new r.qK(10);var l=n(3069),h=n(6677),c=n(6223);class d{constructor(e,t,n,i){this.searchString=e,this.isRegex=t,this.matchCase=n,this.wordSeparators=i}parseSearchRequest(){if(""===this.searchString)return null;let e;e=this.isRegex?function(e){if(!e||0===e.length)return!1;for(let t=0,n=e.length;t<n;t++){const i=e.charCodeAt(t);if(10===i)return!0;if(92===i){if(t++,t>=n)break;const i=e.charCodeAt(t);if(110===i||114===i||87===i)return!0}}return!1}(this.searchString):this.searchString.indexOf("\n")>=0;let t=null;try{t=i.OS(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0,unicode:!0})}catch(r){return null}if(!t)return null;let n=!this.isRegex&&!e;return n&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(n=this.matchCase),new c.L5(t,this.wordSeparators?function(e,t){const n=`${e}/${t.join(",")}`;let i=a.get(n);return i||(i=new o(e,t),a.set(n,i)),i}(this.wordSeparators,[]):null,n?this.searchString:null)}}function u(e,t,n){if(!n)return new c.Dg(e,null);const i=[];for(let r=0,s=t.length;r<s;r++)i[r]=t[r];return new c.Dg(e,i)}class g{constructor(e){const t=[];let n=0;for(let i=0,r=e.length;i<r;i++)10===e.charCodeAt(i)&&(t[n++]=i);this._lineFeedsOffsets=t}findLineFeedCountBeforeOffset(e){const t=this._lineFeedsOffsets;let n=0,i=t.length-1;if(-1===i)return 0;if(e<=t[0])return 0;for(;n<i;){const r=n+((i-n)/2|0);t[r]>=e?i=r-1:t[r+1]>=e?(n=r,i=r):n=r+1}return n+1}}class f{static findMatches(e,t,n,i,r){const s=t.parseSearchRequest();return s?s.regex.multiline?this._doFindMatchesMultiline(e,n,new p(s.wordSeparators,s.regex),i,r):this._doFindMatchesLineByLine(e,n,s,i,r):[]}static _getMultilineMatchRange(e,t,n,i,r,s){let o,a,l=0;if(i?(l=i.findLineFeedCountBeforeOffset(r),o=t+r+l):o=t+r,i){const e=i.findLineFeedCountBeforeOffset(r+s.length)-l;a=o+s.length+e}else a=o+s.length;const c=e.getPositionAt(o),d=e.getPositionAt(a);return new h.Q(c.lineNumber,c.column,d.lineNumber,d.column)}static _doFindMatchesMultiline(e,t,n,i,r){const s=e.getOffsetAt(t.getStartPosition()),o=e.getValueInRange(t,1),a="\r\n"===e.getEOL()?new g(o):null,l=[];let h,c=0;for(n.reset(0);h=n.next(o);)if(l[c++]=u(this._getMultilineMatchRange(e,s,o,a,h.index,h[0]),h,i),c>=r)return l;return l}static _doFindMatchesLineByLine(e,t,n,i,r){const s=[];let o=0;if(t.startLineNumber===t.endLineNumber){const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return o=this._findMatchesInLine(n,a,t.startLineNumber,t.startColumn-1,o,s,i,r),s}const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);o=this._findMatchesInLine(n,a,t.startLineNumber,t.startColumn-1,o,s,i,r);for(let l=t.startLineNumber+1;l<t.endLineNumber&&o<r;l++)o=this._findMatchesInLine(n,e.getLineContent(l),l,0,o,s,i,r);if(o<r){const a=e.getLineContent(t.endLineNumber).substring(0,t.endColumn-1);o=this._findMatchesInLine(n,a,t.endLineNumber,0,o,s,i,r)}return s}static _findMatchesInLine(e,t,n,i,r,s,o,a){const l=e.wordSeparators;if(!o&&e.simpleSearch){const o=e.simpleSearch,d=o.length,u=t.length;let g=-d;for(;-1!==(g=t.indexOf(o,g+d));)if((!l||m(l,t,u,g,d))&&(s[r++]=new c.Dg(new h.Q(n,g+1+i,n,g+1+d+i),null),r>=a))return r;return r}const d=new p(e.wordSeparators,e.regex);let g;d.reset(0);do{if(g=d.next(t),g&&(s[r++]=u(new h.Q(n,g.index+1+i,n,g.index+1+g[0].length+i),g,o),r>=a))return r}while(g);return r}static findNextMatch(e,t,n,i){const r=t.parseSearchRequest();if(!r)return null;const s=new p(r.wordSeparators,r.regex);return r.regex.multiline?this._doFindNextMatchMultiline(e,n,s,i):this._doFindNextMatchLineByLine(e,n,s,i)}static _doFindNextMatchMultiline(e,t,n,i){const r=new l.y(t.lineNumber,1),s=e.getOffsetAt(r),o=e.getLineCount(),a=e.getValueInRange(new h.Q(r.lineNumber,r.column,o,e.getLineMaxColumn(o)),1),c="\r\n"===e.getEOL()?new g(a):null;n.reset(t.column-1);const d=n.next(a);return d?u(this._getMultilineMatchRange(e,s,a,c,d.index,d[0]),d,i):1!==t.lineNumber||1!==t.column?this._doFindNextMatchMultiline(e,new l.y(1,1),n,i):null}static _doFindNextMatchLineByLine(e,t,n,i){const r=e.getLineCount(),s=t.lineNumber,o=e.getLineContent(s),a=this._findFirstMatchInLine(n,o,s,t.column,i);if(a)return a;for(let l=1;l<=r;l++){const t=(s+l-1)%r,o=e.getLineContent(t+1),a=this._findFirstMatchInLine(n,o,t+1,1,i);if(a)return a}return null}static _findFirstMatchInLine(e,t,n,i,r){e.reset(i-1);const s=e.next(t);return s?u(new h.Q(n,s.index+1,n,s.index+1+s[0].length),s,r):null}static findPreviousMatch(e,t,n,i){const r=t.parseSearchRequest();if(!r)return null;const s=new p(r.wordSeparators,r.regex);return r.regex.multiline?this._doFindPreviousMatchMultiline(e,n,s,i):this._doFindPreviousMatchLineByLine(e,n,s,i)}static _doFindPreviousMatchMultiline(e,t,n,i){const r=this._doFindMatchesMultiline(e,new h.Q(1,1,t.lineNumber,t.column),n,i,9990);if(r.length>0)return r[r.length-1];const s=e.getLineCount();return t.lineNumber!==s||t.column!==e.getLineMaxColumn(s)?this._doFindPreviousMatchMultiline(e,new l.y(s,e.getLineMaxColumn(s)),n,i):null}static _doFindPreviousMatchLineByLine(e,t,n,i){const r=e.getLineCount(),s=t.lineNumber,o=e.getLineContent(s).substring(0,t.column-1),a=this._findLastMatchInLine(n,o,s,i);if(a)return a;for(let l=1;l<=r;l++){const t=(r+s-l-1)%r,o=e.getLineContent(t+1),a=this._findLastMatchInLine(n,o,t+1,i);if(a)return a}return null}static _findLastMatchInLine(e,t,n,i){let r,s=null;for(e.reset(0);r=e.next(t);)s=u(new h.Q(n,r.index+1,n,r.index+1+r[0].length),r,i);return s}}function m(e,t,n,i,r){return function(e,t,n,i,r){if(0===i)return!0;const s=t.charCodeAt(i-1);if(0!==e.get(s))return!0;if(13===s||10===s)return!0;if(r>0){const n=t.charCodeAt(i);if(0!==e.get(n))return!0}return!1}(e,t,0,i,r)&&function(e,t,n,i,r){if(i+r===n)return!0;const s=t.charCodeAt(i+r);if(0!==e.get(s))return!0;if(13===s||10===s)return!0;if(r>0){const n=t.charCodeAt(i+r-1);if(0!==e.get(n))return!0}return!1}(e,t,n,i,r)}class p{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){const t=e.length;let n;do{if(this._prevMatchStartIndex+this._prevMatchLength===t)return null;if(n=this._searchRegex.exec(e),!n)return null;const r=n.index,s=n[0].length;if(r===this._prevMatchStartIndex&&s===this._prevMatchLength){if(0===s){i.Z5(e,t,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=r,this._prevMatchLength=s,!this._wordSeparators||m(this._wordSeparators,e,t,r,s))return n}while(n);return null}}},4272:(e,t,n)=>{"use strict";n.r(t),n.d(t,{KeyMod:()=>fe,createMonacoBaseAPI:()=>me});var i=n(8447),r=n(1234);class s{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}}const o=new s,a=new s,l=new s,h=new Array(230),c={},d=[],u=Object.create(null),g=Object.create(null),f=[],m=[];for(let pe=0;pe<=193;pe++)f[pe]=-1;for(let pe=0;pe<=132;pe++)m[pe]=-1;var p;!function(){const e="",t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[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,e,0,e,e,e],[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",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],n=[],i=[];for(const r of t){const[e,t,s,p,_,b,v,w,k]=r;if(i[t]||(i[t]=!0,d[t]=s,u[s]=t,g[s.toLowerCase()]=t,e&&(f[t]=p,0!==p&&3!==p&&5!==p&&4!==p&&6!==p&&57!==p&&(m[p]=t))),!n[p]){if(n[p]=!0,!_)throw new Error(`String representation missing for key code ${p} around scan code ${s}`);o.define(p,_),a.define(p,w||_),l.define(p,k||w||_)}b&&(h[b]=p),v&&(c[v]=p)}m[3]=46}(),function(e){e.toString=function(e){return o.keyCodeToStr(e)},e.fromString=function(e){return o.strToKeyCode(e)},e.toUserSettingsUS=function(e){return a.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return l.keyCodeToStr(e)},e.fromUserSettings=function(e){return a.strToKeyCode(e)||l.strToKeyCode(e)},e.toElectronAccelerator=function(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 o.keyCodeToStr(e)}}(p||(p={}));var _,b,v,w,k,y,T,C,S,L,x,E,A,I,M,N,R,D,O,B,z,P,F,W,H,U,q,V,j,G,K,$,Q,Y,X,J,Z,ee,te,ne,ie,re,se,oe,ae,le,he=n(9400),ce=n(3069),de=n(6677),ue=n(5326),ge=n(2083);!function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"}(_||(_={})),function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"}(b||(b={})),function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(v||(v={})),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.Snippet=27]="Snippet"}(w||(w={})),function(e){e[e.Deprecated=1]="Deprecated"}(k||(k={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(y||(y={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(T||(T={})),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"}(C||(C={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(S||(S={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(L||(L={})),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"}(x||(x={})),function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.ariaRequired=5]="ariaRequired",e[e.autoClosingBrackets=6]="autoClosingBrackets",e[e.autoClosingComments=7]="autoClosingComments",e[e.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=9]="autoClosingDelete",e[e.autoClosingOvertype=10]="autoClosingOvertype",e[e.autoClosingQuotes=11]="autoClosingQuotes",e[e.autoIndent=12]="autoIndent",e[e.automaticLayout=13]="automaticLayout",e[e.autoSurround=14]="autoSurround",e[e.bracketPairColorization=15]="bracketPairColorization",e[e.guides=16]="guides",e[e.codeLens=17]="codeLens",e[e.codeLensFontFamily=18]="codeLensFontFamily",e[e.codeLensFontSize=19]="codeLensFontSize",e[e.colorDecorators=20]="colorDecorators",e[e.colorDecoratorsLimit=21]="colorDecoratorsLimit",e[e.columnSelection=22]="columnSelection",e[e.comments=23]="comments",e[e.contextmenu=24]="contextmenu",e[e.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",e[e.cursorBlinking=26]="cursorBlinking",e[e.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",e[e.cursorStyle=28]="cursorStyle",e[e.cursorSurroundingLines=29]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",e[e.cursorWidth=31]="cursorWidth",e[e.disableLayerHinting=32]="disableLayerHinting",e[e.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",e[e.domReadOnly=34]="domReadOnly",e[e.dragAndDrop=35]="dragAndDrop",e[e.dropIntoEditor=36]="dropIntoEditor",e[e.emptySelectionClipboard=37]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",e[e.extraEditorClassName=39]="extraEditorClassName",e[e.fastScrollSensitivity=40]="fastScrollSensitivity",e[e.find=41]="find",e[e.fixedOverflowWidgets=42]="fixedOverflowWidgets",e[e.folding=43]="folding",e[e.foldingStrategy=44]="foldingStrategy",e[e.foldingHighlight=45]="foldingHighlight",e[e.foldingImportsByDefault=46]="foldingImportsByDefault",e[e.foldingMaximumRegions=47]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=49]="fontFamily",e[e.fontInfo=50]="fontInfo",e[e.fontLigatures=51]="fontLigatures",e[e.fontSize=52]="fontSize",e[e.fontWeight=53]="fontWeight",e[e.fontVariations=54]="fontVariations",e[e.formatOnPaste=55]="formatOnPaste",e[e.formatOnType=56]="formatOnType",e[e.glyphMargin=57]="glyphMargin",e[e.gotoLocation=58]="gotoLocation",e[e.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",e[e.hover=60]="hover",e[e.inDiffEditor=61]="inDiffEditor",e[e.inlineSuggest=62]="inlineSuggest",e[e.inlineEdit=63]="inlineEdit",e[e.letterSpacing=64]="letterSpacing",e[e.lightbulb=65]="lightbulb",e[e.lineDecorationsWidth=66]="lineDecorationsWidth",e[e.lineHeight=67]="lineHeight",e[e.lineNumbers=68]="lineNumbers",e[e.lineNumbersMinChars=69]="lineNumbersMinChars",e[e.linkedEditing=70]="linkedEditing",e[e.links=71]="links",e[e.matchBrackets=72]="matchBrackets",e[e.minimap=73]="minimap",e[e.mouseStyle=74]="mouseStyle",e[e.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=76]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",e[e.multiCursorModifier=78]="multiCursorModifier",e[e.multiCursorPaste=79]="multiCursorPaste",e[e.multiCursorLimit=80]="multiCursorLimit",e[e.occurrencesHighlight=81]="occurrencesHighlight",e[e.overviewRulerBorder=82]="overviewRulerBorder",e[e.overviewRulerLanes=83]="overviewRulerLanes",e[e.padding=84]="padding",e[e.pasteAs=85]="pasteAs",e[e.parameterHints=86]="parameterHints",e[e.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",e[e.placeholder=88]="placeholder",e[e.definitionLinkOpensInPeek=89]="definitionLinkOpensInPeek",e[e.quickSuggestions=90]="quickSuggestions",e[e.quickSuggestionsDelay=91]="quickSuggestionsDelay",e[e.readOnly=92]="readOnly",e[e.readOnlyMessage=93]="readOnlyMessage",e[e.renameOnType=94]="renameOnType",e[e.renderControlCharacters=95]="renderControlCharacters",e[e.renderFinalNewline=96]="renderFinalNewline",e[e.renderLineHighlight=97]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=98]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=99]="renderValidationDecorations",e[e.renderWhitespace=100]="renderWhitespace",e[e.revealHorizontalRightPadding=101]="revealHorizontalRightPadding",e[e.roundedSelection=102]="roundedSelection",e[e.rulers=103]="rulers",e[e.scrollbar=104]="scrollbar",e[e.scrollBeyondLastColumn=105]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=106]="scrollBeyondLastLine",e[e.scrollPredominantAxis=107]="scrollPredominantAxis",e[e.selectionClipboard=108]="selectionClipboard",e[e.selectionHighlight=109]="selectionHighlight",e[e.selectOnLineNumbers=110]="selectOnLineNumbers",e[e.showFoldingControls=111]="showFoldingControls",e[e.showUnused=112]="showUnused",e[e.snippetSuggestions=113]="snippetSuggestions",e[e.smartSelect=114]="smartSelect",e[e.smoothScrolling=115]="smoothScrolling",e[e.stickyScroll=116]="stickyScroll",e[e.stickyTabStops=117]="stickyTabStops",e[e.stopRenderingLineAfter=118]="stopRenderingLineAfter",e[e.suggest=119]="suggest",e[e.suggestFontSize=120]="suggestFontSize",e[e.suggestLineHeight=121]="suggestLineHeight",e[e.suggestOnTriggerCharacters=122]="suggestOnTriggerCharacters",e[e.suggestSelection=123]="suggestSelection",e[e.tabCompletion=124]="tabCompletion",e[e.tabIndex=125]="tabIndex",e[e.unicodeHighlighting=126]="unicodeHighlighting",e[e.unusualLineTerminators=127]="unusualLineTerminators",e[e.useShadowDOM=128]="useShadowDOM",e[e.useTabStops=129]="useTabStops",e[e.wordBreak=130]="wordBreak",e[e.wordSegmenterLocales=131]="wordSegmenterLocales",e[e.wordSeparators=132]="wordSeparators",e[e.wordWrap=133]="wordWrap",e[e.wordWrapBreakAfterCharacters=134]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=135]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=136]="wordWrapColumn",e[e.wordWrapOverride1=137]="wordWrapOverride1",e[e.wordWrapOverride2=138]="wordWrapOverride2",e[e.wrappingIndent=139]="wrappingIndent",e[e.wrappingStrategy=140]="wrappingStrategy",e[e.showDeprecated=141]="showDeprecated",e[e.inlayHints=142]="inlayHints",e[e.editorClassName=143]="editorClassName",e[e.pixelRatio=144]="pixelRatio",e[e.tabFocusMode=145]="tabFocusMode",e[e.layoutInfo=146]="layoutInfo",e[e.wrappingInfo=147]="wrappingInfo",e[e.defaultColorDecorators=148]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=149]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=150]="inlineCompletionsAccessibilityVerbose"}(E||(E={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(A||(A={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}(I||(I={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(M||(M={})),function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(N||(N={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(R||(R={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(D||(D={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(O||(O={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(B||(B={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(z||(z={})),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"}(P||(P={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(F||(F={})),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(W||(W={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(H||(H={})),function(e){e[e.Normal=1]="Normal",e[e.Underlined=2]="Underlined"}(U||(U={})),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"}(q||(q={})),function(e){e[e.AIGenerated=1]="AIGenerated"}(V||(V={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(j||(j={})),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"}(G||(G={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(K||(K={})),function(e){e[e.Word=0]="Word",e[e.Line=1]="Line",e[e.Suggest=2]="Suggest"}($||($={})),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"}(Q||(Q={})),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"}(Y||(Y={})),function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"}(X||(X={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"}(J||(J={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(Z||(Z={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(ee||(ee={})),function(e){e.Off="off",e.OnCode="onCode",e.On="on"}(te||(te={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(ne||(ne={})),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"}(ie||(ie={})),function(e){e[e.Deprecated=1]="Deprecated"}(re||(re={})),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"}(se||(se={})),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"}(oe||(oe={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(ae||(ae={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(le||(le={}));class fe{static{this.CtrlCmd=2048}static{this.Shift=1024}static{this.Alt=512}static{this.WinCtrl=256}static chord(e,t){return function(e,t){return(e|(65535&t)<<16>>>0)>>>0}(e,t)}}function me(){return{editor:void 0,languages:void 0,CancellationTokenSource:i.Qi,Emitter:r.vl,KeyCode:P,KeyMod:fe,Position:ce.y,Range:de.Q,Selection:ue.L,SelectionDirection:ee,MarkerSeverity:F,MarkerTag:W,Uri:he.r,Token:ge.ou}}},5196:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BaseEditorSimpleWorker:()=>Pe,EditorSimpleWorker:()=>Fe,create:()=>We});class i{constructor(e,t,n,i){this.originalStart=e,this.originalLength=t,this.modifiedStart=n,this.modifiedLength=i}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}var r=n(5600);class s{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let n=0,i=e.length;n<i;n++)t[n]=e.charCodeAt(n);return t}}function o(e,t,n){return new c(new s(e),new s(t)).ComputeDiff(n).changes}class a{static Assert(e,t){if(!e)throw new Error(t)}}class l{static Copy(e,t,n,i,r){for(let s=0;s<r;s++)n[i+s]=e[t+s]}static Copy2(e,t,n,i,r){for(let s=0;s<r;s++)n[i+s]=e[t+s]}}class h{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 i(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}}class c{constructor(e,t,n=null){this.ContinueProcessingPredicate=n,this._originalSequence=e,this._modifiedSequence=t;const[i,r,s]=c._getElements(e),[o,a,l]=c._getElements(t);this._hasStrings=s&&l,this._originalStringElements=i,this._originalElementsOrHash=r,this._modifiedStringElements=o,this._modifiedElementsOrHash=a,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"===typeof e[0]}static _getElements(e){const t=e.getElements();if(c._isStringArray(t)){const e=new Int32Array(t.length);for(let n=0,i=t.length;n<i;n++)e[n]=(0,r.e2)(t[n],0);return[t,e,!0]}return t instanceof Int32Array?[[],t,!1]:[[],new Int32Array(t),!1]}ElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._modifiedStringElements[t])}ElementsAreStrictEqual(e,t){if(!this.ElementsAreEqual(e,t))return!1;return c._getStrictElement(this._originalSequence,e)===c._getStrictElement(this._modifiedSequence,t)}static _getStrictElement(e,t){return"function"===typeof e.getStrictElement?e.getStrictElement(t):null}OriginalElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._originalElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._originalStringElements[t])}ModifiedElementsAreEqual(e,t){return this._modifiedElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._modifiedStringElements[e]===this._modifiedStringElements[t])}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,t,n,i,r){const s=[!1];let o=this.ComputeDiffRecursive(e,t,n,i,s);return r&&(o=this.PrettifyChanges(o)),{quitEarly:s[0],changes:o}}ComputeDiffRecursive(e,t,n,r,s){for(s[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 s;return n<=r?(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),s=[new i(e,0,n,r-n+1)]):e<=t?(a.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),s=[new i(e,t-e+1,n,0)]):(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),a.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),s=[]),s}const o=[0],l=[0],h=this.ComputeRecursionPoint(e,t,n,r,o,l,s),c=o[0],d=l[0];if(null!==h)return h;if(!s[0]){const o=this.ComputeDiffRecursive(e,c,n,d,s);let a=[];return a=s[0]?[new i(c+1,t-(c+1)+1,d+1,r-(d+1)+1)]:this.ComputeDiffRecursive(c+1,t,d+1,r,s),this.ConcatenateChanges(o,a)}return[new i(e,t-e+1,n,r-n+1)]}WALKTRACE(e,t,n,r,s,o,a,l,c,d,u,g,f,m,p,_,b,v){let w=null,k=null,y=new h,T=t,C=n,S=f[0]-_[0]-r,L=-1073741824,x=this.m_forwardHistory.length-1;do{const t=S+e;t===T||t<C&&c[t-1]<c[t+1]?(m=(u=c[t+1])-S-r,u<L&&y.MarkNextChange(),L=u,y.AddModifiedElement(u+1,m),S=t+1-e):(m=(u=c[t-1]+1)-S-r,u<L&&y.MarkNextChange(),L=u-1,y.AddOriginalElement(u,m+1),S=t-1-e),x>=0&&(e=(c=this.m_forwardHistory[x])[0],T=1,C=c.length-1)}while(--x>=-1);if(w=y.getReverseChanges(),v[0]){let e=f[0]+1,t=_[0]+1;if(null!==w&&w.length>0){const n=w[w.length-1];e=Math.max(e,n.getOriginalEnd()),t=Math.max(t,n.getModifiedEnd())}k=[new i(e,g-e+1,t,p-t+1)]}else{y=new h,T=o,C=a,S=f[0]-_[0]-l,L=1073741824,x=b?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=S+s;e===T||e<C&&d[e-1]>=d[e+1]?(m=(u=d[e+1]-1)-S-l,u>L&&y.MarkNextChange(),L=u+1,y.AddOriginalElement(u+1,m+1),S=e+1-s):(m=(u=d[e-1])-S-l,u>L&&y.MarkNextChange(),L=u,y.AddModifiedElement(u+1,m+1),S=e-1-s),x>=0&&(s=(d=this.m_reverseHistory[x])[0],T=1,C=d.length-1)}while(--x>=-1);k=y.getChanges()}return this.ConcatenateChanges(w,k)}ComputeRecursionPoint(e,t,n,r,s,o,a){let h=0,c=0,d=0,u=0,g=0,f=0;e--,n--,s[0]=0,o[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const m=t-e+(r-n),p=m+1,_=new Int32Array(p),b=new Int32Array(p),v=r-n,w=t-e,k=e-n,y=t-r,T=(w-v)%2===0;_[v]=e,b[w]=t,a[0]=!1;for(let C=1;C<=m/2+1;C++){let m=0,S=0;d=this.ClipDiagonalBound(v-C,C,v,p),u=this.ClipDiagonalBound(v+C,C,v,p);for(let e=d;e<=u;e+=2){h=e===d||e<u&&_[e-1]<_[e+1]?_[e+1]:_[e-1]+1,c=h-(e-v)-k;const n=h;for(;h<t&&c<r&&this.ElementsAreEqual(h+1,c+1);)h++,c++;if(_[e]=h,h+c>m+S&&(m=h,S=c),!T&&Math.abs(e-w)<=C-1&&h>=b[e])return s[0]=h,o[0]=c,n<=b[e]&&C<=1448?this.WALKTRACE(v,d,u,k,w,g,f,y,_,b,h,t,s,c,r,o,T,a):null}const L=(m-e+(S-n)-C)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(m,L))return a[0]=!0,s[0]=m,o[0]=S,L>0&&C<=1448?this.WALKTRACE(v,d,u,k,w,g,f,y,_,b,h,t,s,c,r,o,T,a):(e++,n++,[new i(e,t-e+1,n,r-n+1)]);g=this.ClipDiagonalBound(w-C,C,w,p),f=this.ClipDiagonalBound(w+C,C,w,p);for(let i=g;i<=f;i+=2){h=i===g||i<f&&b[i-1]>=b[i+1]?b[i+1]-1:b[i-1],c=h-(i-w)-y;const l=h;for(;h>e&&c>n&&this.ElementsAreEqual(h,c);)h--,c--;if(b[i]=h,T&&Math.abs(i-v)<=C&&h<=_[i])return s[0]=h,o[0]=c,l>=_[i]&&C<=1448?this.WALKTRACE(v,d,u,k,w,g,f,y,_,b,h,t,s,c,r,o,T,a):null}if(C<=1447){let e=new Int32Array(u-d+2);e[0]=v-d+1,l.Copy2(_,d,e,1,u-d+1),this.m_forwardHistory.push(e),e=new Int32Array(f-g+2),e[0]=w-g+1,l.Copy2(b,g,e,1,f-g+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(v,d,u,k,w,g,f,y,_,b,h,t,s,c,r,o,T,a)}PrettifyChanges(e){for(let t=0;t<e.length;t++){const n=e[t],i=t<e.length-1?e[t+1].originalStart:this._originalElementsOrHash.length,r=t<e.length-1?e[t+1].modifiedStart:this._modifiedElementsOrHash.length,s=n.originalLength>0,o=n.modifiedLength>0;for(;n.originalStart+n.originalLength<i&&n.modifiedStart+n.modifiedLength<r&&(!s||this.OriginalElementsAreEqual(n.originalStart,n.originalStart+n.originalLength))&&(!o||this.ModifiedElementsAreEqual(n.modifiedStart,n.modifiedStart+n.modifiedLength));){const e=this.ElementsAreStrictEqual(n.originalStart,n.modifiedStart);if(this.ElementsAreStrictEqual(n.originalStart+n.originalLength,n.modifiedStart+n.modifiedLength)&&!e)break;n.originalStart++,n.modifiedStart++}const a=[null];t<e.length-1&&this.ChangesOverlap(e[t],e[t+1],a)&&(e[t]=a[0],e.splice(t+1,1),t--)}for(let t=e.length-1;t>=0;t--){const n=e[t];let i=0,r=0;if(t>0){const n=e[t-1];i=n.originalStart+n.originalLength,r=n.modifiedStart+n.modifiedLength}const s=n.originalLength>0,o=n.modifiedLength>0;let a=0,l=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let e=1;;e++){const t=n.originalStart-e,h=n.modifiedStart-e;if(t<i||h<r)break;if(s&&!this.OriginalElementsAreEqual(t,t+n.originalLength))break;if(o&&!this.ModifiedElementsAreEqual(h,h+n.modifiedLength))break;const c=(t===i&&h===r?5:0)+this._boundaryScore(t,n.originalLength,h,n.modifiedLength);c>l&&(l=c,a=e)}n.originalStart-=a,n.modifiedStart-=a;const h=[null];t>0&&this.ChangesOverlap(e[t-1],e[t],h)&&(e[t-1]=h[0],e.splice(t,1),t++)}if(this._hasStrings)for(let t=1,n=e.length;t<n;t++){const n=e[t-1],i=e[t],r=i.originalStart-n.originalStart-n.originalLength,s=n.originalStart,o=i.originalStart+i.originalLength,a=o-s,l=n.modifiedStart,h=i.modifiedStart+i.modifiedLength,c=h-l;if(r<5&&a<20&&c<20){const e=this._findBetterContiguousSequence(s,a,l,c,r);if(e){const[t,s]=e;t===n.originalStart+n.originalLength&&s===n.modifiedStart+n.modifiedLength||(n.originalLength=t-n.originalStart,n.modifiedLength=s-n.modifiedStart,i.originalStart=t+r,i.modifiedStart=s+r,i.originalLength=o-i.originalStart,i.modifiedLength=h-i.modifiedStart)}}}return e}_findBetterContiguousSequence(e,t,n,i,r){if(t<r||i<r)return null;const s=e+t-r+1,o=n+i-r+1;let a=0,l=0,h=0;for(let c=e;c<s;c++)for(let e=n;e<o;e++){const t=this._contiguousSequenceScore(c,e,r);t>0&&t>a&&(a=t,l=c,h=e)}return a>0?[l,h]:null}_contiguousSequenceScore(e,t,n){let i=0;for(let r=0;r<n;r++){if(!this.ElementsAreEqual(e+r,t+r))return 0;i+=this._originalStringElements[e+r].length}return i}_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){const 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){const n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1}_boundaryScore(e,t,n,i){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(n,i)?1:0)}ConcatenateChanges(e,t){const n=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){const i=new Array(e.length+t.length-1);return l.Copy(e,0,i,0,e.length-1),i[e.length-1]=n[0],l.Copy(t,1,i,e.length,t.length-1),i}{const n=new Array(e.length+t.length);return l.Copy(e,0,n,0,e.length),l.Copy(t,0,n,e.length,t.length),n}}ChangesOverlap(e,t,n){if(a.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),a.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){const r=e.originalStart;let s=e.originalLength;const o=e.modifiedStart;let a=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(s=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(a=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new i(r,s,o,a),!0}return n[0]=null,!1}ClipDiagonalBound(e,t,n,i){if(e>=0&&e<i)return e;const r=t%2===0;if(e<0){return r===(n%2===0)?0:1}return r===((i-n-1)%2===0)?i-1:i-2}}var d=n(6677),u=n(534);class g{constructor(e,t,n){const i=new Uint8Array(e*t);for(let r=0,s=e*t;r<s;r++)i[r]=n;this._data=i,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}}class f{constructor(e){let t=0,n=0;for(let r=0,s=e.length;r<s;r++){const[i,s,o]=e[r];s>t&&(t=s),i>n&&(n=i),o>n&&(n=o)}t++,n++;const i=new g(n,t,0);for(let r=0,s=e.length;r<s;r++){const[t,n,s]=e[r];i.set(t,n,s)}this._states=i,this._maxCharCode=t}nextState(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)}}let m=null;let p=null;class _{static _createLink(e,t,n,i,r){let s=r-1;do{const n=t.charCodeAt(s);if(2!==e.get(n))break;s--}while(s>i);if(i>0){const e=t.charCodeAt(i-1),n=t.charCodeAt(s);(40===e&&41===n||91===e&&93===n||123===e&&125===n)&&s--}return{range:{startLineNumber:n,startColumn:i+1,endLineNumber:n,endColumn:s+2},url:t.substring(i,s+1)}}static computeLinks(e,t=function(){return null===m&&(m=new f([[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]])),m}()){const n=function(){if(null===p){p=new u.V(0);const e=" \t<>'\"\u3001\u3002\uff61\uff64\uff0c\uff0e\uff1a\uff1b\u2018\u3008\u300c\u300e\u3014\uff08\uff3b\uff5b\uff62\uff63\uff5d\uff3d\uff09\u3015\u300f\u300d\u3009\u2019\uff40\uff5e\u2026";for(let n=0;n<e.length;n++)p.set(e.charCodeAt(n),1);const t=".,;:";for(let n=0;n<t.length;n++)p.set(t.charCodeAt(n),2)}return p}(),i=[];for(let r=1,s=e.getLineCount();r<=s;r++){const s=e.getLineContent(r),o=s.length;let a=0,l=0,h=0,c=1,d=!1,u=!1,g=!1,f=!1;for(;a<o;){let e=!1;const o=s.charCodeAt(a);if(13===c){let t;switch(o){case 40:d=!0,t=0;break;case 41:t=d?0:1;break;case 91:g=!0,u=!0,t=0;break;case 93:g=!1,t=u?0:1;break;case 123:f=!0,t=0;break;case 125:t=f?0:1;break;case 39:case 34:case 96:t=h===o?1:39===h||34===h||96===h?0:1;break;case 42:t=42===h?1:0;break;case 124:t=124===h?1:0;break;case 32:t=g?0:1;break;default:t=n.get(o)}1===t&&(i.push(_._createLink(n,s,r,l,a)),e=!0)}else if(12===c){let t;91===o?(u=!0,t=0):t=n.get(o),1===t?e=!0:c=13}else c=t.nextState(c,o),0===c&&(e=!0);e&&(c=1,d=!1,u=!1,f=!1,l=a+1,h=o),a++}13===c&&i.push(_._createLink(n,s,r,l,o))}return i}}class b{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}static{this.INSTANCE=new b}navigateValueSet(e,t,n,i,r){if(e&&t){const n=this.doNavigateValueSet(t,r);if(n)return{range:e,value:n}}if(n&&i){const e=this.doNavigateValueSet(i,r);if(e)return{range:n,value:e}}return null}doNavigateValueSet(e,t){const n=this.numberReplace(e,t);return null!==n?n:this.textReplace(e,t)}numberReplace(e,t){const n=Math.pow(10,e.length-(e.lastIndexOf(".")+1));let i=Number(e);const r=parseFloat(e);return isNaN(i)||isNaN(r)||i!==r?null:0!==i||t?(i=Math.floor(i*n),i+=t?n:-n,String(i/n)):null}textReplace(e,t){return this.valueSetsReplace(this._defaultValueSet,e,t)}valueSetsReplace(e,t,n){let i=null;for(let r=0,s=e.length;null===i&&r<s;r++)i=this.valueSetReplace(e[r],t,n);return i}valueSetReplace(e,t,n){let i=e.indexOf(t);return i>=0?(i+=n?1:-1,i<0?i=e.length-1:i%=e.length,e[i]):null}}var v=n(4272),w=n(718),k=n(8381),y=n(4855);class T{constructor(e,t,n){this.changes=e,this.moves=t,this.hitTimeout=n}}class C{constructor(e,t){this.lineRangeMapping=e,this.changes=t}}var S=n(4383),L=n(6571),x=n(3069),E=n(6782),A=n(4444);n(973);class I{constructor(e,t){this.range=e,this.text=t}toSingleEditOperation(){return{range:this.range,text:this.text}}}class M{static inverse(e,t,n){const i=[];let r=1,s=1;for(const a of e){const e=new M(new L.M(r,a.original.startLineNumber),new L.M(s,a.modified.startLineNumber));e.modified.isEmpty||i.push(e),r=a.original.endLineNumberExclusive,s=a.modified.endLineNumberExclusive}const o=new M(new L.M(r,t+1),new L.M(s,n+1));return o.modified.isEmpty||i.push(o),i}static clip(e,t,n){const i=[];for(const r of e){const e=r.original.intersect(t),s=r.modified.intersect(n);e&&!e.isEmpty&&s&&!s.isEmpty&&i.push(new M(e,s))}return i}constructor(e,t){this.original=e,this.modified=t}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new M(this.modified,this.original)}join(e){return new M(this.original.join(e.original),this.modified.join(e.modified))}toRangeMapping(){const e=this.original.toInclusiveRange(),t=this.modified.toInclusiveRange();if(e&&t)return new O(e,t);if(1===this.original.startLineNumber||1===this.modified.startLineNumber){if(1!==this.modified.startLineNumber||1!==this.original.startLineNumber)throw new S.D7("not a valid diff");return new O(new d.Q(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new d.Q(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}return new O(new d.Q(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new d.Q(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}toRangeMapping2(e,t){if(R(this.original.endLineNumberExclusive,e)&&R(this.modified.endLineNumberExclusive,t))return new O(new d.Q(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new d.Q(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1));if(!this.original.isEmpty&&!this.modified.isEmpty)return new O(d.Q.fromPositions(new x.y(this.original.startLineNumber,1),N(new x.y(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),d.Q.fromPositions(new x.y(this.modified.startLineNumber,1),N(new x.y(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)));if(this.original.startLineNumber>1&&this.modified.startLineNumber>1)return new O(d.Q.fromPositions(N(new x.y(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER),e),N(new x.y(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),d.Q.fromPositions(N(new x.y(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER),t),N(new x.y(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)));throw new S.D7}}function N(e,t){if(e.lineNumber<1)return new x.y(1,1);if(e.lineNumber>t.length)return new x.y(t.length,t[t.length-1].length+1);const n=t[e.lineNumber-1];return e.column>n.length+1?new x.y(e.lineNumber,n.length+1):e}function R(e,t){return e>=1&&e<=t.length}class D extends M{static fromRangeMappings(e){const t=L.M.join(e.map((e=>L.M.fromRangeInclusive(e.originalRange)))),n=L.M.join(e.map((e=>L.M.fromRangeInclusive(e.modifiedRange))));return new D(t,n,e)}constructor(e,t,n){super(e,t),this.innerChanges=n}flip(){return new D(this.modified,this.original,this.innerChanges?.map((e=>e.flip())))}withInnerChangesFromLineRanges(){return new D(this.original,this.modified,[this.toRangeMapping()])}}class O{static assertSorted(e){for(let t=1;t<e.length;t++){const n=e[t-1],i=e[t];if(!n.originalRange.getEndPosition().isBeforeOrEqual(i.originalRange.getStartPosition())||!n.modifiedRange.getEndPosition().isBeforeOrEqual(i.modifiedRange.getStartPosition()))throw new S.D7("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 O(this.modifiedRange,this.originalRange)}toTextEdit(e){const t=e.getValueOfRange(this.modifiedRange);return new I(this.originalRange,t)}}var B=n(1508);class z{computeDiff(e,t,n){const i=new q(e,t,{maxComputationTime:n.maxComputationTimeMs,shouldIgnoreTrimWhitespace:n.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),r=[];let s=null;for(const o of i.changes){let e,t;e=0===o.originalEndLineNumber?new L.M(o.originalStartLineNumber+1,o.originalStartLineNumber+1):new L.M(o.originalStartLineNumber,o.originalEndLineNumber+1),t=0===o.modifiedEndLineNumber?new L.M(o.modifiedStartLineNumber+1,o.modifiedStartLineNumber+1):new L.M(o.modifiedStartLineNumber,o.modifiedEndLineNumber+1);let n=new D(e,t,o.charChanges?.map((e=>new O(new d.Q(e.originalStartLineNumber,e.originalStartColumn,e.originalEndLineNumber,e.originalEndColumn),new d.Q(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)))));s&&(s.modified.endLineNumberExclusive!==n.modified.startLineNumber&&s.original.endLineNumberExclusive!==n.original.startLineNumber||(n=new D(s.original.join(n.original),s.modified.join(n.modified),s.innerChanges&&n.innerChanges?s.innerChanges.concat(n.innerChanges):void 0),r.pop())),r.push(n),s=n}return(0,E.Ft)((()=>(0,E.Xo)(r,((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 T(r,[],i.quitEarly)}}function P(e,t,n,i){return new c(e,t,n).ComputeDiff(i)}class F{constructor(e){const t=[],n=[];for(let i=0,r=e.length;i<r;i++)t[i]=V(e[i],1),n[i]=j(e[i],1);this.lines=e,this._startColumns=t,this._endColumns=n}getElements(){const 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){const i=[],r=[],s=[];let o=0;for(let a=t;a<=n;a++){const t=this.lines[a],l=e?this._startColumns[a]:1,h=e?this._endColumns[a]:t.length+1;for(let e=l;e<h;e++)i[o]=t.charCodeAt(e-1),r[o]=a+1,s[o]=e,o++;!e&&a<n&&(i[o]=10,r[o]=a+1,s[o]=t.length+1,o++)}return new W(i,r,s)}}class W{constructor(e,t,n){this._charCodes=e,this._lineNumbers=t,this._columns=n}toString(){return"["+this._charCodes.map(((e,t)=>(10===e?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[t]},${this._columns[t]})`)).join(", ")+"]"}_assertIndex(e,t){if(e<0||e>=t.length)throw new 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-1===e?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),10===this._charCodes[e]?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-1===e?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),10===this._charCodes[e]?1:this._columns[e]+1)}}class H{constructor(e,t,n,i,r,s,o,a){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=n,this.originalEndColumn=i,this.modifiedStartLineNumber=r,this.modifiedStartColumn=s,this.modifiedEndLineNumber=o,this.modifiedEndColumn=a}static createFromDiffChange(e,t,n){const i=t.getStartLineNumber(e.originalStart),r=t.getStartColumn(e.originalStart),s=t.getEndLineNumber(e.originalStart+e.originalLength-1),o=t.getEndColumn(e.originalStart+e.originalLength-1),a=n.getStartLineNumber(e.modifiedStart),l=n.getStartColumn(e.modifiedStart),h=n.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),c=n.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new H(i,r,s,o,a,l,h,c)}}class U{constructor(e,t,n,i,r){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=n,this.modifiedEndLineNumber=i,this.charChanges=r}static createFromDiffResult(e,t,n,i,r,s,o){let a,l,h,c,d;if(0===t.originalLength?(a=n.getStartLineNumber(t.originalStart)-1,l=0):(a=n.getStartLineNumber(t.originalStart),l=n.getEndLineNumber(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(h=i.getStartLineNumber(t.modifiedStart)-1,c=0):(h=i.getStartLineNumber(t.modifiedStart),c=i.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),s&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&r()){const s=n.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),a=i.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);if(s.getElements().length>0&&a.getElements().length>0){let e=P(s,a,r,!0).changes;o&&(e=function(e){if(e.length<=1)return e;const t=[e[0]];let n=t[0];for(let i=1,r=e.length;i<r;i++){const r=e[i],s=r.originalStart-(n.originalStart+n.originalLength),o=r.modifiedStart-(n.modifiedStart+n.modifiedLength);Math.min(s,o)<3?(n.originalLength=r.originalStart+r.originalLength-n.originalStart,n.modifiedLength=r.modifiedStart+r.modifiedLength-n.modifiedStart):(t.push(r),n=r)}return t}(e)),d=[];for(let t=0,n=e.length;t<n;t++)d.push(H.createFromDiffChange(e[t],s,a))}}return new U(a,l,h,c,d)}}class q{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 F(e),this.modified=new F(t),this.continueLineDiff=G(n.maxComputationTime),this.continueCharDiff=G(0===n.maxComputationTime?0:Math.min(n.maxComputationTime,5e3))}computeDiff(){if(1===this.original.lines.length&&0===this.original.lines[0].length)return 1===this.modified.lines.length&&0===this.modified.lines[0].length?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(1===this.modified.lines.length&&0===this.modified.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const e=P(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=e.changes,n=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){const e=[];for(let n=0,i=t.length;n<i;n++)e.push(U.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[n],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:n,changes:e}}const i=[];let r=0,s=0;for(let o=-1,a=t.length;o<a;o++){const e=o+1<a?t[o+1]:null,n=e?e.originalStart:this.originalLines.length,l=e?e.modifiedStart:this.modifiedLines.length;for(;r<n&&s<l;){const e=this.originalLines[r],t=this.modifiedLines[s];if(e!==t){{let n=V(e,1),o=V(t,1);for(;n>1&&o>1;){if(e.charCodeAt(n-2)!==t.charCodeAt(o-2))break;n--,o--}(n>1||o>1)&&this._pushTrimWhitespaceCharChange(i,r+1,1,n,s+1,1,o)}{let n=j(e,1),o=j(t,1);const a=e.length+1,l=t.length+1;for(;n<a&&o<l;){if(e.charCodeAt(n-1)!==e.charCodeAt(o-1))break;n++,o++}(n<a||o<l)&&this._pushTrimWhitespaceCharChange(i,r+1,n,a,s+1,o,l)}}r++,s++}e&&(i.push(U.createFromDiffResult(this.shouldIgnoreTrimWhitespace,e,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),r+=e.originalLength,s+=e.modifiedLength)}return{quitEarly:n,changes:i}}_pushTrimWhitespaceCharChange(e,t,n,i,r,s,o){if(this._mergeTrimWhitespaceCharChange(e,t,n,i,r,s,o))return;let a;this.shouldComputeCharChanges&&(a=[new H(t,n,t,i,r,s,r,o)]),e.push(new U(t,t,r,r,a))}_mergeTrimWhitespaceCharChange(e,t,n,i,r,s,o){const a=e.length;if(0===a)return!1;const l=e[a-1];return 0!==l.originalEndLineNumber&&0!==l.modifiedEndLineNumber&&(l.originalEndLineNumber===t&&l.modifiedEndLineNumber===r?(this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new H(t,n,t,i,r,s,r,o)),!0):l.originalEndLineNumber+1===t&&l.modifiedEndLineNumber+1===r&&(l.originalEndLineNumber=t,l.modifiedEndLineNumber=r,this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new H(t,n,t,i,r,s,r,o)),!0))}}function V(e,t){const n=B.HG(e);return-1===n?t:n+1}function j(e,t){const n=B.lT(e);return-1===n?t:n+2}function G(e){if(0===e)return()=>!0;const t=Date.now();return()=>Date.now()-t<e}var K=n(9861);class ${static trivial(e,t){return new $([new Q(A.L.ofLength(e.length),A.L.ofLength(t.length))],!1)}static trivialTimedOut(e,t){return new $([new Q(A.L.ofLength(e.length),A.L.ofLength(t.length))],!0)}constructor(e,t){this.diffs=e,this.hitTimeout=t}}class Q{static invert(e,t){const n=[];return(0,K.pN)(e,((e,i)=>{n.push(Q.fromOffsetPairs(e?e.getEndExclusives():Y.zero,i?i.getStarts():new Y(t,(e?e.seq2Range.endExclusive-e.seq1Range.endExclusive:0)+t)))})),n}static fromOffsetPairs(e,t){return new Q(new A.L(e.offset1,t.offset1),new A.L(e.offset2,t.offset2))}static assertSorted(e){let t;for(const n of e){if(t&&!(t.seq1Range.endExclusive<=n.seq1Range.start&&t.seq2Range.endExclusive<=n.seq2Range.start))throw new S.D7("Sequence diffs must be sorted");t=n}}constructor(e,t){this.seq1Range=e,this.seq2Range=t}swap(){return new Q(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(e){return new Q(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}delta(e){return 0===e?this:new Q(this.seq1Range.delta(e),this.seq2Range.delta(e))}deltaStart(e){return 0===e?this:new Q(this.seq1Range.deltaStart(e),this.seq2Range.deltaStart(e))}deltaEnd(e){return 0===e?this:new Q(this.seq1Range.deltaEnd(e),this.seq2Range.deltaEnd(e))}intersect(e){const t=this.seq1Range.intersect(e.seq1Range),n=this.seq2Range.intersect(e.seq2Range);if(t&&n)return new Q(t,n)}getStarts(){return new Y(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new Y(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}class Y{static{this.zero=new Y(0,0)}static{this.max=new Y(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER)}constructor(e,t){this.offset1=e,this.offset2=t}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(e){return 0===e?this:new Y(this.offset1+e,this.offset2+e)}equals(e){return this.offset1===e.offset1&&this.offset2===e.offset2}}class X{static{this.instance=new X}isValid(){return!0}}class J{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new S.D7("timeout must be positive")}isValid(){return!(Date.now()-this.startTime<this.timeout)&&this.valid&&(this.valid=!1),this.valid}}class Z{constructor(e,t){this.width=e,this.height=t,this.array=[],this.array=new 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 ee(e){return 32===e||9===e}class te{static{this.chrKeys=new Map}static getKey(e){let t=this.chrKeys.get(e);return void 0===t&&(t=this.chrKeys.size,this.chrKeys.set(e,t)),t}constructor(e,t,n){this.range=e,this.lines=t,this.source=n,this.histogram=[];let i=0;for(let r=e.startLineNumber-1;r<e.endLineNumberExclusive-1;r++){const e=t[r];for(let t=0;t<e.length;t++){i++;const n=e[t],r=te.getKey(n);this.histogram[r]=(this.histogram[r]||0)+1}i++;const n=te.getKey("\n");this.histogram[n]=(this.histogram[n]||0)+1}this.totalCount=i}computeSimilarity(e){let t=0;const n=Math.max(this.histogram.length,e.histogram.length);for(let i=0;i<n;i++)t+=Math.abs((this.histogram[i]??0)-(e.histogram[i]??0));return 1-t/(this.totalCount+e.totalCount)}}class ne{compute(e,t,n=X.instance,i){if(0===e.length||0===t.length)return $.trivial(e,t);const r=new Z(e.length,t.length),s=new Z(e.length,t.length),o=new Z(e.length,t.length);for(let g=0;g<e.length;g++)for(let a=0;a<t.length;a++){if(!n.isValid())return $.trivialTimedOut(e,t);const l=0===g?0:r.get(g-1,a),h=0===a?0:r.get(g,a-1);let c;e.getElement(g)===t.getElement(a)?(c=0===g||0===a?0:r.get(g-1,a-1),g>0&&a>0&&3===s.get(g-1,a-1)&&(c+=o.get(g-1,a-1)),c+=i?i(g,a):1):c=-1;const d=Math.max(l,h,c);if(d===c){const e=g>0&&a>0?o.get(g-1,a-1):0;o.set(g,a,e+1),s.set(g,a,3)}else d===l?(o.set(g,a,0),s.set(g,a,1)):d===h&&(o.set(g,a,0),s.set(g,a,2));r.set(g,a,d)}const a=[];let l=e.length,h=t.length;function c(e,t){e+1===l&&t+1===h||a.push(new Q(new A.L(e+1,l),new A.L(t+1,h))),l=e,h=t}let d=e.length-1,u=t.length-1;for(;d>=0&&u>=0;)3===s.get(d,u)?(c(d,u),d--,u--):1===s.get(d,u)?d--:u--;return c(-1,-1),a.reverse(),new $(a,!1)}}class ie{compute(e,t,n=X.instance){if(0===e.length||0===t.length)return $.trivial(e,t);const i=e,r=t;function s(e,t){for(;e<i.length&&t<r.length&&i.getElement(e)===r.getElement(t);)e++,t++;return e}let o=0;const a=new se;a.set(0,s(0,0));const l=new oe;l.set(0,0===a.get(0)?null:new re(null,0,0,a.get(0)));let h=0;e:for(;;){if(o++,!n.isValid())return $.trivialTimedOut(i,r);const e=-Math.min(o,r.length+o%2),t=Math.min(o,i.length+o%2);for(h=e;h<=t;h+=2){let n=0;const o=h===t?-1:a.get(h+1),c=h===e?-1:a.get(h-1)+1;n++;const d=Math.min(Math.max(o,c),i.length),u=d-h;if(n++,d>i.length||u>r.length)continue;const g=s(d,u);a.set(h,g);const f=d===o?l.get(h+1):l.get(h-1);if(l.set(h,g!==d?new re(f,d,u,g-d):f),a.get(h)===i.length&&a.get(h)-h===r.length)break e}}let c=l.get(h);const d=[];let u=i.length,g=r.length;for(;;){const e=c?c.x+c.length:0,t=c?c.y+c.length:0;if(e===u&&t===g||d.push(new Q(new A.L(e,u),new A.L(t,g))),!c)break;u=c.x,g=c.y,c=c.prev}return d.reverse(),new $(d,!1)}}class re{constructor(e,t,n,i){this.prev=e,this.x=t,this.y=n,this.length=i}}class se{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=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)>=this.negativeArr.length){const e=this.negativeArr;this.negativeArr=new Int32Array(2*e.length),this.negativeArr.set(e)}this.negativeArr[e]=t}else{if(e>=this.positiveArr.length){const e=this.positiveArr;this.positiveArr=new Int32Array(2*e.length),this.positiveArr.set(e)}this.positiveArr[e]=t}}}class oe{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}}var ae=n(6041),le=n(4320);class he{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 i=this.range.startLineNumber;i<=this.range.endLineNumber;i++){let t=e[i-1],r=0;i===this.range.startLineNumber&&this.range.startColumn>1&&(r=this.range.startColumn-1,t=t.substring(r)),this.lineStartOffsets.push(r);let s=0;if(!n){const e=t.trimStart();s=t.length-e.length,t=e.trimEnd()}this.trimmedWsLengthsByLineIdx.push(s);const o=i===this.range.endLineNumber?Math.min(this.range.endColumn-1-r-s,t.length):t.length;for(let e=0;e<o;e++)this.elements.push(t.charCodeAt(e));i<this.range.endLineNumber&&(this.elements.push("\n".charCodeAt(0)),this.firstElementOffsetByLineIdx.push(this.elements.length))}}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new A.L(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){const t=ge(e>0?this.elements[e-1]:-1),n=ge(e<this.elements.length?this.elements[e]:-1);if(7===t&&8===n)return 0;if(8===t)return 150;let i=0;return t!==n&&(i+=10,0===t&&1===n&&(i+=1)),i+=ue(t),i+=ue(n),i}translateOffset(e,t="right"){const n=(0,ae.iM)(this.firstElementOffsetByLineIdx,(t=>t<=e)),i=e-this.firstElementOffsetByLineIdx[n];return new x.y(this.range.startLineNumber+n,1+this.lineStartOffsets[n]+i+(0===i&&"left"===t?0:this.trimmedWsLengthsByLineIdx[n]))}translateRange(e){const t=this.translateOffset(e.start,"right"),n=this.translateOffset(e.endExclusive,"left");return n.isBefore(t)?d.Q.fromPositions(n,n):d.Q.fromPositions(t,n)}findWordContaining(e){if(e<0||e>=this.elements.length)return;if(!ce(this.elements[e]))return;let t=e;for(;t>0&&ce(this.elements[t-1]);)t--;let n=e;for(;n<this.elements.length&&ce(this.elements[n]);)n++;return new A.L(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){const t=(0,ae.lx)(this.firstElementOffsetByLineIdx,(t=>t<=e.start))??0,n=(0,ae.XP)(this.firstElementOffsetByLineIdx,(t=>e.endExclusive<=t))??this.elements.length;return new A.L(t,n)}}function ce(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}const de={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function ue(e){return de[e]}function ge(e){return 10===e?8:13===e?7:ee(e)?6:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:-1===e?3:44===e||59===e?5:4}function fe(e,t,n,i,r,s){let{moves:o,excludedChanges:a}=function(e,t,n,i){const r=[],s=e.filter((e=>e.modified.isEmpty&&e.original.length>=3)).map((e=>new te(e.original,t,e))),o=new Set(e.filter((e=>e.original.isEmpty&&e.modified.length>=3)).map((e=>new te(e.modified,n,e)))),a=new Set;for(const l of s){let e,t=-1;for(const n of o){const i=l.computeSimilarity(n);i>t&&(t=i,e=n)}if(t>.9&&e&&(o.delete(e),r.push(new M(l.range,e.range)),a.add(l.source),a.add(e.source)),!i.isValid())return{moves:r,excludedChanges:a}}return{moves:r,excludedChanges:a}}(e,t,n,s);if(!s.isValid())return[];const l=function(e,t,n,i,r,s){const o=[],a=new le.db;for(const u of e)for(let e=u.original.startLineNumber;e<u.original.endLineNumberExclusive-2;e++){const n=`${t[e-1]}:${t[e+1-1]}:${t[e+2-1]}`;a.add(n,{range:new L.M(e,e+3)})}const l=[];e.sort((0,K.VE)((e=>e.modified.startLineNumber),K.U9));for(const u of e){let e=[];for(let t=u.modified.startLineNumber;t<u.modified.endLineNumberExclusive-2;t++){const i=`${n[t-1]}:${n[t+1-1]}:${n[t+2-1]}`,r=new L.M(t,t+3),s=[];a.forEach(i,(({range:t})=>{for(const i of e)if(i.originalLineRange.endLineNumberExclusive+1===t.endLineNumberExclusive&&i.modifiedLineRange.endLineNumberExclusive+1===r.endLineNumberExclusive)return i.originalLineRange=new L.M(i.originalLineRange.startLineNumber,t.endLineNumberExclusive),i.modifiedLineRange=new L.M(i.modifiedLineRange.startLineNumber,r.endLineNumberExclusive),void s.push(i);const n={modifiedLineRange:r,originalLineRange:t};l.push(n),s.push(n)})),e=s}if(!s.isValid())return[]}l.sort((0,K.Hw)((0,K.VE)((e=>e.modifiedLineRange.length),K.U9)));const h=new L.S,c=new L.S;for(const u of l){const e=u.modifiedLineRange.startLineNumber-u.originalLineRange.startLineNumber,t=h.subtractFrom(u.modifiedLineRange),n=c.subtractFrom(u.originalLineRange).getWithDelta(e),i=t.getIntersection(n);for(const r of i.ranges){if(r.length<3)continue;const t=r,n=r.delta(-e);o.push(new M(n,t)),h.addRange(t),c.addRange(n)}}o.sort((0,K.VE)((e=>e.original.startLineNumber),K.U9));const d=new ae.vJ(e);for(let u=0;u<o.length;u++){const t=o[u],n=d.findLastMonotonous((e=>e.original.startLineNumber<=t.original.startLineNumber)),a=(0,ae.lx)(e,(e=>e.modified.startLineNumber<=t.modified.startLineNumber)),l=Math.max(t.original.startLineNumber-n.original.startLineNumber,t.modified.startLineNumber-a.modified.startLineNumber),g=d.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive)),f=(0,ae.lx)(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)),m=Math.max(g.original.endLineNumberExclusive-t.original.endLineNumberExclusive,f.modified.endLineNumberExclusive-t.modified.endLineNumberExclusive);let p,_;for(p=0;p<l;p++){const e=t.original.startLineNumber-p-1,n=t.modified.startLineNumber-p-1;if(e>i.length||n>r.length)break;if(h.contains(n)||c.contains(e))break;if(!me(i[e-1],r[n-1],s))break}for(p>0&&(c.addRange(new L.M(t.original.startLineNumber-p,t.original.startLineNumber)),h.addRange(new L.M(t.modified.startLineNumber-p,t.modified.startLineNumber))),_=0;_<m;_++){const e=t.original.endLineNumberExclusive+_,n=t.modified.endLineNumberExclusive+_;if(e>i.length||n>r.length)break;if(h.contains(n)||c.contains(e))break;if(!me(i[e-1],r[n-1],s))break}_>0&&(c.addRange(new L.M(t.original.endLineNumberExclusive,t.original.endLineNumberExclusive+_)),h.addRange(new L.M(t.modified.endLineNumberExclusive,t.modified.endLineNumberExclusive+_))),(p>0||_>0)&&(o[u]=new M(new L.M(t.original.startLineNumber-p,t.original.endLineNumberExclusive+_),new L.M(t.modified.startLineNumber-p,t.modified.endLineNumberExclusive+_)))}return o}(e.filter((e=>!a.has(e))),i,r,t,n,s);return(0,K.E4)(o,l),o=function(e){if(0===e.length)return e;e.sort((0,K.VE)((e=>e.original.startLineNumber),K.U9));const t=[e[0]];for(let n=1;n<e.length;n++){const i=t[t.length-1],r=e[n],s=r.original.startLineNumber-i.original.endLineNumberExclusive,o=r.modified.startLineNumber-i.modified.endLineNumberExclusive;s>=0&&o>=0&&s+o<=2?t[t.length-1]=i.join(r):t.push(r)}return t}(o),o=o.filter((e=>{const n=e.original.toOffsetRange().slice(t).map((e=>e.trim()));return n.join("\n").length>=15&&function(e,t){let n=0;for(const i of e)t(i)&&n++;return n}(n,(e=>e.length>=2))>=2})),o=function(e,t){const n=new ae.vJ(e);return t=t.filter((t=>(n.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive))||new M(new L.M(1,1),new L.M(1,1)))!==(0,ae.lx)(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)))),t}(e,o),o}function me(e,t,n){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;const i=(new ie).compute(new he([e],new d.Q(1,1,1,e.length),!1),new he([t],new d.Q(1,1,1,t.length),!1),n);let r=0;const s=Q.invert(i.diffs,e.length);for(const a of s)a.seq1Range.forEach((t=>{ee(e.charCodeAt(t))||r++}));const o=function(t){let n=0;for(let i=0;i<e.length;i++)ee(t.charCodeAt(i))||n++;return n}(e.length>t.length?e:t);return r/o>.6&&o>10}function pe(e,t,n){let i=n;return i=_e(e,t,i),i=_e(e,t,i),i=function(e,t,n){if(!e.getBoundaryScore||!t.getBoundaryScore)return n;for(let i=0;i<n.length;i++){const r=i>0?n[i-1]:void 0,s=n[i],o=i+1<n.length?n[i+1]:void 0,a=new A.L(r?r.seq1Range.endExclusive+1:0,o?o.seq1Range.start-1:e.length),l=new A.L(r?r.seq2Range.endExclusive+1:0,o?o.seq2Range.start-1:t.length);s.seq1Range.isEmpty?n[i]=be(s,e,t,a,l):s.seq2Range.isEmpty&&(n[i]=be(s.swap(),t,e,l,a).swap())}return n}(e,t,i),i}function _e(e,t,n){if(0===n.length)return n;const i=[];i.push(n[0]);for(let s=1;s<n.length;s++){const r=i[i.length-1];let o=n[s];if(o.seq1Range.isEmpty||o.seq2Range.isEmpty){const n=o.seq1Range.start-r.seq1Range.endExclusive;let s;for(s=1;s<=n&&(e.getElement(o.seq1Range.start-s)===e.getElement(o.seq1Range.endExclusive-s)&&t.getElement(o.seq2Range.start-s)===t.getElement(o.seq2Range.endExclusive-s));s++);if(s--,s===n){i[i.length-1]=new Q(new A.L(r.seq1Range.start,o.seq1Range.endExclusive-n),new A.L(r.seq2Range.start,o.seq2Range.endExclusive-n));continue}o=o.delta(-s)}i.push(o)}const r=[];for(let s=0;s<i.length-1;s++){const n=i[s+1];let o=i[s];if(o.seq1Range.isEmpty||o.seq2Range.isEmpty){const r=n.seq1Range.start-o.seq1Range.endExclusive;let a;for(a=0;a<r&&(e.isStronglyEqual(o.seq1Range.start+a,o.seq1Range.endExclusive+a)&&t.isStronglyEqual(o.seq2Range.start+a,o.seq2Range.endExclusive+a));a++);if(a===r){i[s+1]=new Q(new A.L(o.seq1Range.start+r,n.seq1Range.endExclusive),new A.L(o.seq2Range.start+r,n.seq2Range.endExclusive));continue}a>0&&(o=o.delta(a))}r.push(o)}return i.length>0&&r.push(i[i.length-1]),r}function be(e,t,n,i,r){let s=1;for(;e.seq1Range.start-s>=i.start&&e.seq2Range.start-s>=r.start&&n.isStronglyEqual(e.seq2Range.start-s,e.seq2Range.endExclusive-s)&&s<100;)s++;s--;let o=0;for(;e.seq1Range.start+o<i.endExclusive&&e.seq2Range.endExclusive+o<r.endExclusive&&n.isStronglyEqual(e.seq2Range.start+o,e.seq2Range.endExclusive+o)&&o<100;)o++;if(0===s&&0===o)return e;let a=0,l=-1;for(let h=-s;h<=o;h++){const i=e.seq2Range.start+h,r=e.seq2Range.endExclusive+h,s=e.seq1Range.start+h,o=t.getBoundaryScore(s)+n.getBoundaryScore(i)+n.getBoundaryScore(r);o>l&&(l=o,a=h)}return e.delta(a)}class ve{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-((0===e?0:we(this.lines[e-1]))+(e===this.lines.length?0:we(this.lines[e])))}getText(e){return this.lines.slice(e.start,e.endExclusive).join("\n")}isStronglyEqual(e,t){return this.lines[e]===this.lines[t]}}function we(e){let t=0;for(;t<e.length&&(32===e.charCodeAt(t)||9===e.charCodeAt(t));)t++;return t}class ke{constructor(){this.dynamicProgrammingDiffing=new ne,this.myersDiffingAlgorithm=new ie}computeDiff(e,t,n){if(e.length<=1&&(0,K.aI)(e,t,((e,t)=>e===t)))return new T([],[],!1);if(1===e.length&&0===e[0].length||1===t.length&&0===t[0].length)return new T([new D(new L.M(1,e.length+1),new L.M(1,t.length+1),[new O(new d.Q(1,1,e.length,e[e.length-1].length+1),new d.Q(1,1,t.length,t[t.length-1].length+1))])],[],!1);const i=0===n.maxComputationTimeMs?X.instance:new J(n.maxComputationTimeMs),r=!n.ignoreTrimWhitespace,s=new Map;function o(e){let t=s.get(e);return void 0===t&&(t=s.size,s.set(e,t)),t}const a=e.map((e=>o(e.trim()))),l=t.map((e=>o(e.trim()))),h=new ve(a,e),c=new ve(l,t),u=(()=>h.length+c.length<1700?this.dynamicProgrammingDiffing.compute(h,c,i,((n,i)=>e[n]===t[i]?0===t[i].length?.1:1+Math.log(1+t[i].length):.99)):this.myersDiffingAlgorithm.compute(h,c,i))();let g=u.diffs,f=u.hitTimeout;g=pe(h,c,g),g=function(e,t,n){let i=n;if(0===i.length)return i;let r,s=0;do{r=!1;const o=[i[0]];for(let a=1;a<i.length;a++){const l=i[a],h=o[o.length-1];function c(t,n){const i=new A.L(h.seq1Range.endExclusive,l.seq1Range.start);return e.getText(i).replace(/\s/g,"").length<=4&&(t.seq1Range.length+t.seq2Range.length>5||n.seq1Range.length+n.seq2Range.length>5)}c(h,l)?(r=!0,o[o.length-1]=o[o.length-1].join(l)):o.push(l)}i=o}while(s++<10&&r);return i}(h,0,g);const m=[],p=n=>{if(r)for(let s=0;s<n;s++){const n=_+s,o=b+s;if(e[n]!==t[o]){const s=this.refineDiff(e,t,new Q(new A.L(n,n+1),new A.L(o,o+1)),i,r);for(const e of s.mappings)m.push(e);s.hitTimeout&&(f=!0)}}};let _=0,b=0;for(const d of g){(0,E.Ft)((()=>d.seq1Range.start-_===d.seq2Range.start-b));p(d.seq1Range.start-_),_=d.seq1Range.endExclusive,b=d.seq2Range.endExclusive;const n=this.refineDiff(e,t,d,i,r);n.hitTimeout&&(f=!0);for(const e of n.mappings)m.push(e)}p(e.length-_);const v=ye(m,e,t);let w=[];return n.computeMoves&&(w=this.computeMoves(v,e,t,a,l,i,r)),(0,E.Ft)((()=>{function n(e,t){if(e.lineNumber<1||e.lineNumber>t.length)return!1;const n=t[e.lineNumber-1];return!(e.column<1||e.column>n.length+1)}function i(e,t){return!(e.startLineNumber<1||e.startLineNumber>t.length+1)&&!(e.endLineNumberExclusive<1||e.endLineNumberExclusive>t.length+1)}for(const r of v){if(!r.innerChanges)return!1;for(const i of r.innerChanges){if(!(n(i.modifiedRange.getStartPosition(),t)&&n(i.modifiedRange.getEndPosition(),t)&&n(i.originalRange.getStartPosition(),e)&&n(i.originalRange.getEndPosition(),e)))return!1}if(!i(r.modified,t)||!i(r.original,e))return!1}return!0})),new T(v,w,f)}computeMoves(e,t,n,i,r,s,o){return fe(e,t,n,i,r,s).map((e=>{const i=ye(this.refineDiff(t,n,new Q(e.original.toOffsetRange(),e.modified.toOffsetRange()),s,o).mappings,t,n,!0);return new C(e,i)}))}refineDiff(e,t,n,i,r){var s;const o=(s=n,new M(new L.M(s.seq1Range.start+1,s.seq1Range.endExclusive+1),new L.M(s.seq2Range.start+1,s.seq2Range.endExclusive+1))).toRangeMapping2(e,t),a=new he(e,o.originalRange,r),l=new he(t,o.modifiedRange,r),h=a.length+l.length<500?this.dynamicProgrammingDiffing.compute(a,l,i):this.myersDiffingAlgorithm.compute(a,l,i),c=!1;let d=h.diffs;d=pe(a,l,d),d=function(e,t,n){const i=Q.invert(n,e.length),r=[];let s=new Y(0,0);function o(n,o){if(n.offset1<s.offset1||n.offset2<s.offset2)return;const a=e.findWordContaining(n.offset1),l=t.findWordContaining(n.offset2);if(!a||!l)return;let h=new Q(a,l);const c=h.intersect(o);let d=c.seq1Range.length,u=c.seq2Range.length;for(;i.length>0;){const n=i[0];if(!n.seq1Range.intersects(h.seq1Range)&&!n.seq2Range.intersects(h.seq2Range))break;const r=e.findWordContaining(n.seq1Range.start),s=t.findWordContaining(n.seq2Range.start),o=new Q(r,s),a=o.intersect(n);if(d+=a.seq1Range.length,u+=a.seq2Range.length,h=h.join(o),!(h.seq1Range.endExclusive>=n.seq1Range.endExclusive))break;i.shift()}d+u<2*(h.seq1Range.length+h.seq2Range.length)/3&&r.push(h),s=h.getEndExclusives()}for(;i.length>0;){const e=i.shift();e.seq1Range.isEmpty||(o(e.getStarts(),e),o(e.getEndExclusives().delta(-1),e))}return function(e,t){const n=[];for(;e.length>0||t.length>0;){const i=e[0],r=t[0];let s;s=i&&(!r||i.seq1Range.start<r.seq1Range.start)?e.shift():t.shift(),n.length>0&&n[n.length-1].seq1Range.endExclusive>=s.seq1Range.start?n[n.length-1]=n[n.length-1].join(s):n.push(s)}return n}(n,r)}(a,l,d),d=function(e,t,n){const i=[];for(const r of n){const e=i[i.length-1];e&&(r.seq1Range.start-e.seq1Range.endExclusive<=2||r.seq2Range.start-e.seq2Range.endExclusive<=2)?i[i.length-1]=new Q(e.seq1Range.join(r.seq1Range),e.seq2Range.join(r.seq2Range)):i.push(r)}return i}(0,0,d),d=function(e,t,n){let i=n;if(0===i.length)return i;let r,s=0;do{r=!1;const a=[i[0]];for(let l=1;l<i.length;l++){const h=i[l],c=a[a.length-1];function d(n,i){const r=new A.L(c.seq1Range.endExclusive,h.seq1Range.start);if(e.countLinesIn(r)>5||r.length>500)return!1;const s=e.getText(r).trim();if(s.length>20||s.split(/\r\n|\r|\n/).length>1)return!1;const o=e.countLinesIn(n.seq1Range),a=n.seq1Range.length,l=t.countLinesIn(n.seq2Range),d=n.seq2Range.length,u=e.countLinesIn(i.seq1Range),g=i.seq1Range.length,f=t.countLinesIn(i.seq2Range),m=i.seq2Range.length;function p(e){return Math.min(e,130)}return Math.pow(Math.pow(p(40*o+a),1.5)+Math.pow(p(40*l+d),1.5),1.5)+Math.pow(Math.pow(p(40*u+g),1.5)+Math.pow(p(40*f+m),1.5),1.5)>74184.96480721243}d(c,h)?(r=!0,a[a.length-1]=a[a.length-1].join(h)):a.push(h)}i=a}while(s++<10&&r);const o=[];return(0,K.kj)(i,((t,n,i)=>{let r=n;function s(e){return e.length>0&&e.trim().length<=3&&n.seq1Range.length+n.seq2Range.length>100}const a=e.extendToFullLines(n.seq1Range),l=e.getText(new A.L(a.start,n.seq1Range.start));s(l)&&(r=r.deltaStart(-l.length));const h=e.getText(new A.L(n.seq1Range.endExclusive,a.endExclusive));s(h)&&(r=r.deltaEnd(h.length));const c=Q.fromOffsetPairs(t?t.getEndExclusives():Y.zero,i?i.getStarts():Y.max),d=r.intersect(c);o.length>0&&d.getStarts().equals(o[o.length-1].getEndExclusives())?o[o.length-1]=o[o.length-1].join(d):o.push(d)})),o}(a,l,d);const u=d.map((e=>new O(a.translateRange(e.seq1Range),l.translateRange(e.seq2Range))));return{mappings:u,hitTimeout:h.hitTimeout}}}function ye(e,t,n,i=!1){const r=[];for(const s of(0,K.n)(e.map((e=>function(e,t,n){let i=0,r=0;1===e.modifiedRange.endColumn&&1===e.originalRange.endColumn&&e.originalRange.startLineNumber+i<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+i<=e.modifiedRange.endLineNumber&&(r=-1);e.modifiedRange.startColumn-1>=n[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+r&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+r&&(i=1);const s=new L.M(e.originalRange.startLineNumber+i,e.originalRange.endLineNumber+1+r),o=new L.M(e.modifiedRange.startLineNumber+i,e.modifiedRange.endLineNumber+1+r);return new D(s,o,[e])}(e,t,n))),((e,t)=>e.original.overlapOrTouch(t.original)||e.modified.overlapOrTouch(t.modified)))){const e=s[0],t=s[s.length-1];r.push(new D(e.original.join(t.original),e.modified.join(t.modified),s.map((e=>e.innerChanges[0]))))}return(0,E.Ft)((()=>{if(!i&&r.length>0){if(r[0].modified.startLineNumber!==r[0].original.startLineNumber)return!1;if(n.length-r[r.length-1].modified.endLineNumberExclusive!==t.length-r[r.length-1].original.endLineNumberExclusive)return!1}return(0,E.Xo)(r,((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))})),r}const Te=()=>new z,Ce=()=>new ke;var Se=n(146),Le=n(6456),xe=n(7661);function Ee(e){const t=[];for(const n of e){const e=Number(n);(e||0===e&&""!==n.replace(/\s/g,""))&&t.push(e)}return t}function Ae(e,t,n,i){return{red:e/255,blue:n/255,green:t/255,alpha:i}}function Ie(e,t){const n=t.index,i=t[0].length;if(!n)return;const r=e.positionAt(n);return{startLineNumber:r.lineNumber,startColumn:r.column,endLineNumber:r.lineNumber,endColumn:r.column+i}}function Me(e,t){if(!e)return;const n=xe.Q1.Format.CSS.parseHex(t);return n?{range:e,color:Ae(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}:void 0}function Ne(e,t,n){if(!e||1!==t.length)return;const i=Ee(t[0].values());return{range:e,color:Ae(i[0],i[1],i[2],n?i[3]:1)}}function Re(e,t,n){if(!e||1!==t.length)return;const i=Ee(t[0].values()),r=new xe.Q1(new xe.hB(i[0],i[1]/100,i[2]/100,n?i[3]:1));return{range:e,color:Ae(r.rgba.r,r.rgba.g,r.rgba.b,r.rgba.a)}}function De(e,t){return"string"===typeof e?[...e.matchAll(t)]:e.findMatches(t)}function Oe(e){return e&&"function"===typeof e.getValue&&"function"===typeof e.positionAt?function(e){const t=[],n=De(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/gm);if(n.length>0)for(const i of n){const n=i.filter((e=>void 0!==e)),r=n[1],s=n[2];if(!s)continue;let o;if("rgb"===r){const t=/^\(\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;o=Ne(Ie(e,i),De(s,t),!1)}else if("rgba"===r){const t=/^\(\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;o=Ne(Ie(e,i),De(s,t),!0)}else if("hsl"===r){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;o=Re(Ie(e,i),De(s,t),!1)}else if("hsla"===r){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;o=Re(Ie(e,i),De(s,t),!0)}else"#"===r&&(o=Me(Ie(e,i),r+s));o&&t.push(o)}return t}(e):[]}var Be=n(6691),ze=n(796);class Pe{constructor(){this._workerTextModelSyncServer=new ze.WorkerTextModelSyncServer}dispose(){}_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){const i=this._getModel(e);return i?y.UnicodeTextModelHighlighter.computeUnicodeHighlights(i,t,n):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async $findSectionHeaders(e,t){const n=this._getModel(e);return n?(0,Be.findSectionHeaders)(n,t):[]}async $computeDiff(e,t,n,i){const r=this._getModel(e),s=this._getModel(t);if(!r||!s)return null;return Fe.computeDiff(r,s,n,i)}static computeDiff(e,t,n,i){const r="advanced"===i?Ce():Te(),s=e.getLinesContent(),o=t.getLinesContent(),a=r.computeDiff(s,o,n);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:!(a.changes.length>0)&&this._modelsAreIdentical(e,t),quitEarly:a.hitTimeout,changes:l(a.changes),moves:a.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){const n=e.getLineCount();if(n!==t.getLineCount())return!1;for(let i=1;i<=n;i++){if(e.getLineContent(i)!==t.getLineContent(i))return!1}return!0}static{this._diffLimit=1e5}async $computeMoreMinimalEdits(e,t,n){const i=this._getModel(e);if(!i)return t;const r=[];let s;t=t.slice(0).sort(((e,t)=>{if(e.range&&t.range)return d.Q.compareRangesUsingStarts(e.range,t.range);return(e.range?0:1)-(t.range?0:1)}));let a=0;for(let o=1;o<t.length;o++)d.Q.getEndPosition(t[a].range).equals(d.Q.getStartPosition(t[o].range))?(t[a].range=d.Q.fromPositions(d.Q.getStartPosition(t[a].range),d.Q.getEndPosition(t[o].range)),t[a].text+=t[o].text):(a++,t[a]=t[o]);t.length=a+1;for(let{range:l,text:h,eol:c}of t){if("number"===typeof c&&(s=c),d.Q.isEmpty(l)&&!h)continue;const e=i.getValueInRange(l);if(h=h.replace(/\r\n|\n|\r/g,i.eol),e===h)continue;if(Math.max(h.length,e.length)>Fe._diffLimit){r.push({range:l,text:h});continue}const t=o(e,h,n),a=i.offsetAt(d.Q.lift(l).getStartPosition());for(const n of t){const e=i.positionAt(a+n.originalStart),t=i.positionAt(a+n.originalStart+n.originalLength),s={text:h.substr(n.modifiedStart,n.modifiedLength),range:{startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:t.lineNumber,endColumn:t.column}};i.getValueInRange(s.range)!==s.text&&r.push(s)}}return"number"===typeof s&&r.push({eol:s,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),r}async $computeLinks(e){const t=this._getModel(e);return t?function(e){return e&&"function"===typeof e.getLineCount&&"function"===typeof e.getLineContent?_.computeLinks(e):[]}(t):null}async $computeDefaultDocumentColors(e){const t=this._getModel(e);return t?Oe(t):null}static{this._suggestionsLimit=1e4}async $textualSuggest(e,t,n,i){const r=new k.W,s=new RegExp(n,i),o=new Set;e:for(const a of e){const e=this._getModel(a);if(e)for(const n of e.words(s))if(n!==t&&isNaN(Number(n))&&(o.add(n),o.size>Fe._suggestionsLimit))break e}return{words:Array.from(o),duration:r.elapsed()}}async $computeWordRanges(e,t,n,i){const r=this._getModel(e);if(!r)return Object.create(null);const s=new RegExp(n,i),o=Object.create(null);for(let a=t.startLineNumber;a<t.endLineNumber;a++){const e=r.getLineWords(a,s);for(const t of e){if(!isNaN(Number(t.word)))continue;let e=o[t.word];e||(e=[],o[t.word]=e),e.push({startLineNumber:a,startColumn:t.startColumn,endLineNumber:a,endColumn:t.endColumn})}}return o}async $navigateValueSet(e,t,n,i,r){const s=this._getModel(e);if(!s)return null;const o=new RegExp(i,r);t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1});const a=s.getValueInRange(t),l=s.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},o);if(!l)return null;const h=s.getValueInRange(l);return b.INSTANCE.navigateValueSet(t,a,l,h,n)}}class Fe extends Pe{constructor(e,t){super(),this._host=e,this._foreignModuleFactory=t,this._foreignModule=null}async $ping(){return"pong"}$loadForeignModule(e,t,i){const r={host:(0,Se.kT)(i,((e,t)=>this._host.$fhr(e,t))),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(r,t),Promise.resolve((0,Se.V0)(this._foreignModule))):new Promise(((i,s)=>{const o=e=>{this._foreignModule=e.create(r,t),i((0,Se.V0)(this._foreignModule))};{const t=Le.zl.asBrowserUri(`${e}.js`).toString(!0);n(9204)(`${t}`).then(o).catch(s)}}))}$fmr(e,t){if(!this._foreignModule||"function"!==typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(n){return Promise.reject(n)}}}function We(e){return new Fe(w.EditorWorkerHost.getChannel(e),null)}"function"===typeof importScripts&&(globalThis.monaco=(0,v.createMonacoBaseAPI)())},920:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IEditorWorkerService:()=>i});const i=(0,n(3591).u1)("editorWorkerService")},718:(e,t,n)=>{"use strict";n.r(t),n.d(t,{EditorWorkerHost:()=>i});class i{static{this.CHANNEL_NAME="editorWorkerHost"}static getChannel(e){return e.getChannel(i.CHANNEL_NAME)}static setChannel(e,t){e.setChannel(i.CHANNEL_NAME,t)}}},6691:(e,t,n)=>{"use strict";n.r(t),n.d(t,{findSectionHeaders:()=>s});const i=new RegExp("\\bMARK:\\s*(.*)$","d"),r=/^-+|-+$/g;function s(e,t){let n=[];if(t.findRegionSectionHeaders&&t.foldingRules?.markers){const i=function(e,t){const n=[],i=e.getLineCount();for(let r=1;r<=i;r++){const i=e.getLineContent(r),s=i.match(t.foldingRules.markers.start);if(s){const e={startLineNumber:r,startColumn:s[0].length+1,endLineNumber:r,endColumn:i.length+1};if(e.endColumn>e.startColumn){const t={range:e,...a(i.substring(s[0].length)),shouldBeInComments:!1};(t.text||t.hasSeparatorLine)&&n.push(t)}}}return n}(e,t);n=n.concat(i)}if(t.findMarkSectionHeaders){const t=function(e){const t=[],n=e.getLineCount();for(let i=1;i<=n;i++){o(e.getLineContent(i),i,t)}return t}(e);n=n.concat(t)}return n}function o(e,t,n){i.lastIndex=0;const r=i.exec(e);if(r){const e={startLineNumber:t,startColumn:r.indices[1][0]+1,endLineNumber:t,endColumn:r.indices[1][1]+1};if(e.endColumn>e.startColumn){const t={range:e,...a(r[1]),shouldBeInComments:!0};(t.text||t.hasSeparatorLine)&&n.push(t)}}}function a(e){const t=(e=e.trim()).startsWith("-");return{text:e=e.replace(r,""),hasSeparatorLine:t}}},5628:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getIconClasses:()=>u});var i,r=n(6456),s=n(9403),o=n(9400),a=n(3941);!function(e){e[e.FILE=0]="FILE",e[e.FOLDER=1]="FOLDER",e[e.ROOT_FOLDER=2]="ROOT_FOLDER"}(i||(i={}));var l,h,c=n(9493);!function(e){e.isThemeColor=function(e){return e&&"object"===typeof e&&"string"===typeof e.id}}(l||(l={})),function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9-]+",e.iconModifierExpression="~[A-Za-z]+",e.iconNameCharacter="[A-Za-z0-9~-]";const t=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function n(e){const i=t.exec(e.id);if(!i)return n(c.W.error);const[,r,s]=i,o=["codicon","codicon-"+r];return s&&o.push("codicon-modifier-"+s.substring(1)),o}e.asClassNameArray=n,e.asClassName=function(e){return n(e).join(" ")},e.asCSSSelector=function(e){return"."+n(e).join(".")},e.isThemeIcon=function(e){return e&&"object"===typeof e&&"string"===typeof e.id&&("undefined"===typeof e.color||l.isThemeColor(e.color))};const i=new RegExp(`^\\$\\((${e.iconNameExpression}(?:${e.iconModifierExpression})?)\\)$`);e.fromString=function(e){const t=i.exec(e);if(!t)return;const[,n]=t;return{id:n}},e.fromId=function(e){return{id:e}},e.modify=function(e,t){let n=e.id;const i=n.lastIndexOf("~");return-1!==i&&(n=n.substring(0,i)),t&&(n=`${n}~${t}`),{id:n}},e.getModifier=function(e){const t=e.id.lastIndexOf("~");if(-1!==t)return e.id.substring(t+1)},e.isEqual=function(e,t){return e.id===t.id&&e.color?.id===t.color?.id}}(h||(h={}));const d=/(?:\/|^)(?:([^\/]+)\/)?([^\/]+)$/;function u(e,t,n,l,c){if(h.isThemeIcon(c))return[`codicon-${c.id}`,"predefined-file-icon"];if(o.r.isUri(c))return[];const u=l===i.ROOT_FOLDER?["rootfolder-icon"]:l===i.FOLDER?["folder-icon"]:["file-icon"];if(n){let o;if(n.scheme===r.ny.data){o=s.B6.parseMetaData(n).get(s.B6.META_DATA_LABEL)}else{const e=n.path.match(d);e?(o=g(e[2].toLowerCase()),e[1]&&u.push(`${g(e[1].toLowerCase())}-name-dir-icon`)):o=g(n.authority.toLowerCase())}if(l===i.ROOT_FOLDER)u.push(`${o}-root-name-folder-icon`);else if(l===i.FOLDER)u.push(`${o}-name-folder-icon`);else{if(o){if(u.push(`${o}-name-file-icon`),u.push("name-file-icon"),o.length<=255){const e=o.split(".");for(let t=1;t<e.length;t++)u.push(`${e.slice(t).join(".")}-ext-file-icon`)}u.push("ext-file-icon")}const i=function(e,t,n){if(!n)return null;let i=null;if(n.scheme===r.ny.data){const e=s.B6.parseMetaData(n).get(s.B6.META_DATA_MIME);e&&(i=t.getLanguageIdByMimeType(e))}else{const t=e.getModel(n);t&&(i=t.getLanguageId())}if(i&&i!==a.vH)return i;return t.guessLanguageIdByFilepathOrFirstLine(n)}(e,t,n);i&&u.push(`${g(i)}-lang-file-icon`)}}return u}function g(e){return e.replace(/[\s]/g,"/")}},8709:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ILanguageFeatureDebounceService:()=>m,LanguageFeatureDebounceService:()=>v});var i=n(5600),r=n(4320);function s(e,t,n){return Math.min(Math.max(e,t),n)}class o{constructor(){this._n=1,this._val=0}update(e){return this._val=this._val+(e-this._val)/this._n,this._n+=1,this._val}get value(){return this._val}}class a{constructor(e){this._n=0,this._val=0,this._values=[],this._index=0,this._sum=0,this._values=new Array(e),this._values.fill(0,0,e)}update(e){const t=this._values[this._index];return this._values[this._index]=e,this._index=(this._index+1)%this._values.length,this._sum-=t,this._sum+=e,this._n<this._values.length&&(this._n+=1),this._val=this._sum/this._n,this._val}get value(){return this._val}}var l=n(3591);const h=(0,l.u1)("environmentService");var c=n(4621),d=n(3511),u=n(6456),g=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},f=function(e,t){return function(n,i){t(n,i,e)}};const m=(0,l.u1)("ILanguageFeatureDebounceService");var p;!function(e){const t=new WeakMap;let n=0;e.of=function(e){let i=t.get(e);return void 0===i&&(i=++n,t.set(e,i)),i}}(p||(p={}));class _{constructor(e){this._default=e}get(e){return this._default}update(e,t){return this._default}default(){return this._default}}class b{constructor(e,t,n,i,s,o){this._logService=e,this._name=t,this._registry=n,this._default=i,this._min=s,this._max=o,this._cache=new r.qK(50,.7)}_key(e){return e.id+this._registry.all(e).reduce(((e,t)=>(0,i.sN)(p.of(t),e)),0)}get(e){const t=this._key(e),n=this._cache.get(t);return n?s(n.value,this._min,this._max):this.default()}update(e,t){const n=this._key(e);let i=this._cache.get(n);i||(i=new a(6),this._cache.set(n,i));const r=s(i.update(t),this._min,this._max);return(0,u.v$)(e.uri,"output")||this._logService.trace(`[DEBOUNCE: ${this._name}] for ${e.uri.toString()} is ${r}ms`),r}_overall(){const e=new o;for(const[,t]of this._cache)e.update(t.value);return e.value}default(){return s(0|this._overall()||this._default,this._min,this._max)}}let v=class{constructor(e,t){this._logService=e,this._data=new Map,this._isDev=t.isExtensionDevelopment||!t.isBuilt}for(e,t,n){const i=n?.min??50,r=n?.max??i**2,s=n?.key??void 0,o=`${p.of(e)},${i}${s?","+s:""}`;let a=this._data.get(o);return a||(this._isDev?(this._logService.debug(`[DEBOUNCE: ${t}] is disabled in developed mode`),a=new _(1.5*i)):a=new b(this._logService,t,e,0|this._overallAverage()||1.5*i,i,r),this._data.set(o,a)),a}_overallAverage(){const e=new o;for(const t of this._data.values())e.update(t.default());return e.value}};v=g([f(0,d.rr),f(1,h)],v),(0,c.v)(m,v,1)},6942:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ILanguageFeaturesService:()=>i});const i=(0,n(3591).u1)("ILanguageFeaturesService")},2661:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LanguageFeaturesService:()=>m});var i=n(1234),r=n(1484),s=n(6223),o=n(6958),a=n(8821);function l(e,t,n,i,r,s){if(Array.isArray(e)){let o=0;for(const a of e){const e=l(a,t,n,i,r,s);if(10===e)return e;e>o&&(o=e)}return o}if("string"===typeof e)return i?"*"===e?5:e===n?10:0:0;if(e){const{language:l,pattern:h,scheme:c,hasAccessToAllModels:d,notebookType:u}=e;if(!i&&!d)return 0;u&&r&&(t=r);let g=0;if(c)if(c===t.scheme)g=10;else{if("*"!==c)return 0;g=5}if(l)if(l===n)g=10;else{if("*"!==l)return 0;g=Math.max(g,5)}if(u)if(u===s)g=10;else{if("*"!==u||void 0===s)return 0;g=Math.max(g,5)}if(h){let e;if(e="string"===typeof h?h:{...h,base:(0,a.S8)(h.base)},e!==t.fsPath&&!(0,o.YW)(e,t.fsPath))return 0;g=10}return g}return 0}function h(e){return"string"!==typeof e&&(Array.isArray(e)?e.every(h):!!e.exclusive)}class c{constructor(e,t,n,i,r){this.uri=e,this.languageId=t,this.notebookUri=n,this.notebookType=i,this.recursive=r}equals(e){return this.notebookType===e.notebookType&&this.languageId===e.languageId&&this.uri.toString()===e.uri.toString()&&this.notebookUri?.toString()===e.notebookUri?.toString()&&this.recursive===e.recursive}}class d{constructor(e){this._notebookInfoResolver=e,this._clock=0,this._entries=[],this._onDidChange=new i.vl,this.onDidChange=this._onDidChange.event}register(e,t){let n={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(n),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),(0,r.s)((()=>{if(n){const e=this._entries.indexOf(n);e>=0&&(this._entries.splice(e,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),n=void 0)}}))}has(e){return this.all(e).length>0}all(e){if(!e)return[];this._updateScores(e,!1);const t=[];for(const n of this._entries)n._score>0&&t.push(n.provider);return t}ordered(e,t=!1){const n=[];return this._orderedForEach(e,t,(e=>n.push(e.provider))),n}orderedGroups(e){const t=[];let n,i;return this._orderedForEach(e,!1,(e=>{n&&i===e._score?n.push(e.provider):(i=e._score,n=[e.provider],t.push(n))})),t}_orderedForEach(e,t,n){this._updateScores(e,t);for(const i of this._entries)i._score>0&&n(i)}_updateScores(e,t){const n=this._notebookInfoResolver?.(e.uri),i=n?new c(e.uri,e.getLanguageId(),n.uri,n.type,t):new c(e.uri,e.getLanguageId(),void 0,void 0,t);if(!this._lastCandidate?.equals(i)){this._lastCandidate=i;for(const n of this._entries)if(n._score=l(n.selector,i.uri,i.languageId,(0,s.vd)(e),i.notebookUri,i.notebookType),h(n.selector)&&n._score>0){if(!t){for(const e of this._entries)e._score=0;n._score=1e3;break}n._score=0}this._entries.sort(d._compareByScoreAndTime)}}static _compareByScoreAndTime(e,t){return e._score<t._score?1:e._score>t._score?-1:u(e.selector)&&!u(t.selector)?1:!u(e.selector)&&u(t.selector)?-1:e._time<t._time?1:e._time>t._time?-1:0}}function u(e){return"string"!==typeof e&&(Array.isArray(e)?e.some(u):Boolean(e.isBuiltin))}var g=n(6942),f=n(4621);class m{constructor(){this.referenceProvider=new d(this._score.bind(this)),this.renameProvider=new d(this._score.bind(this)),this.newSymbolNamesProvider=new d(this._score.bind(this)),this.codeActionProvider=new d(this._score.bind(this)),this.definitionProvider=new d(this._score.bind(this)),this.typeDefinitionProvider=new d(this._score.bind(this)),this.declarationProvider=new d(this._score.bind(this)),this.implementationProvider=new d(this._score.bind(this)),this.documentSymbolProvider=new d(this._score.bind(this)),this.inlayHintsProvider=new d(this._score.bind(this)),this.colorProvider=new d(this._score.bind(this)),this.codeLensProvider=new d(this._score.bind(this)),this.documentFormattingEditProvider=new d(this._score.bind(this)),this.documentRangeFormattingEditProvider=new d(this._score.bind(this)),this.onTypeFormattingEditProvider=new d(this._score.bind(this)),this.signatureHelpProvider=new d(this._score.bind(this)),this.hoverProvider=new d(this._score.bind(this)),this.documentHighlightProvider=new d(this._score.bind(this)),this.multiDocumentHighlightProvider=new d(this._score.bind(this)),this.selectionRangeProvider=new d(this._score.bind(this)),this.foldingRangeProvider=new d(this._score.bind(this)),this.linkProvider=new d(this._score.bind(this)),this.inlineCompletionsProvider=new d(this._score.bind(this)),this.inlineEditProvider=new d(this._score.bind(this)),this.completionProvider=new d(this._score.bind(this)),this.linkedEditingRangeProvider=new d(this._score.bind(this)),this.documentRangeSemanticTokensProvider=new d(this._score.bind(this)),this.documentSemanticTokensProvider=new d(this._score.bind(this)),this.documentDropEditProvider=new d(this._score.bind(this)),this.documentPasteEditProvider=new d(this._score.bind(this))}_score(e){return this._notebookTypeResolver?.(e)}}(0,f.v)(g.ILanguageFeaturesService,m,1)},7596:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LanguageService:()=>N});var i=n(1234),r=n(1484),s=n(9259),o=n(9861),a=n(2083),l=n(3941);const h=(e,t)=>e===t;new WeakMap;class c{constructor(e,t,n){this.owner=e,this.debugNameSource=t,this.referenceFn=n}getDebugName(e){return function(e,t){const n=u.get(e);if(n)return n;const i=function(e,t){const n=u.get(e);if(n)return n;const i=t.owner?function(e){const t=f.get(e);if(t)return t;const n=function(e){const t=e.constructor;if(t)return t.name;return"Object"}(e);let i=g.get(n)??0;i++,g.set(n,i);const r=1===i?n:`${n}#${i}`;return f.set(e,r),r}(t.owner)+".":"";let r;const s=t.debugNameSource;if(void 0!==s){if("function"!==typeof s)return i+s;if(r=s(),void 0!==r)return i+r}const o=t.referenceFn;if(void 0!==o&&(r=m(o),void 0!==r))return i+r;if(void 0!==t.owner){const n=function(e,t){for(const n in e)if(e[n]===t)return n;return}(t.owner,e);if(void 0!==n)return i+n}return}(e,t);if(i){let t=d.get(i)??0;t++,d.set(i,t);const n=1===t?i:`${i}#${t}`;return u.set(e,n),n}return}(e,this)}}const d=new Map,u=new WeakMap;const g=new Map,f=new WeakMap;function m(e){const t=e.toString(),n=/\/\*\*\s*@description\s*([^*]*)\*\//.exec(t),i=n?n[1]:void 0;return i?.trim()}let p,_,b,v;function w(){return p}class k{get TChange(){return null}reportChanges(){this.get()}read(e){return e?e.readObservable(this):this.get()}map(e,t){const n=void 0===t?void 0:e,i=void 0===t?e:t;return v({owner:n,debugName:()=>{const e=m(i);if(void 0!==e)return e;const t=/^\s*\(?\s*([a-zA-Z_$][a-zA-Z_$0-9]*)\s*\)?\s*=>\s*\1(?:\??)\.([a-zA-Z_$][a-zA-Z_$0-9]*)\s*$/.exec(i.toString());return t?`${this.debugName}.${t[2]}`:n?void 0:`${this.debugName} (mapped)`},debugReferenceFn:i},(e=>i(this.read(e),e)))}flatten(){return v({owner:void 0,debugName:()=>`${this.debugName} (flattened)`},(e=>this.read(e).read(e)))}recomputeInitiallyAndOnChange(e,t){return e.add(_(this,t)),this}keepObserved(e){return e.add(b(this)),this}}class y extends k{constructor(){super(...arguments),this.observers=new Set}addObserver(e){const t=this.observers.size;this.observers.add(e),0===t&&this.onFirstObserverAdded()}removeObserver(e){this.observers.delete(e)&&0===this.observers.size&&this.onLastObserverRemoved()}onFirstObserverAdded(){}onLastObserverRemoved(){}}function T(e,t){const n=new C(e,t);try{e(n)}finally{n.finish()}}class C{constructor(e,t){this._fn=e,this._getDebugName=t,this.updatingObservers=[],w()?.handleBeginTransaction(this)}getDebugName(){return this._getDebugName?this._getDebugName():m(this._fn)}updateObserver(e,t){this.updatingObservers.push({observer:e,observable:t}),e.beginUpdate(t)}finish(){const e=this.updatingObservers;for(let t=0;t<e.length;t++){const{observer:n,observable:i}=e[t];n.endUpdate(i)}this.updatingObservers=null,w()?.handleEndTransaction()}}var S=n(6782);!function(e){v=e}((function(e,t){return new L(new c(e.owner,e.debugName,e.debugReferenceFn),t,void 0,void 0,e.onLastObserverRemoved,e.equalsFn??h)}));class L extends y{get debugName(){return this._debugNameData.getDebugName(this)??"(anonymous)"}constructor(e,t,n,i,r=void 0,s){super(),this._debugNameData=e,this._computeFn=t,this.createChangeSummary=n,this._handleChange=i,this._handleLastObserverRemoved=r,this._equalityComparator=s,this.state=0,this.value=void 0,this.updateCount=0,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=void 0,this.changeSummary=this.createChangeSummary?.(),w()?.handleDerivedCreated(this)}onLastObserverRemoved(){this.state=0,this.value=void 0;for(const e of this.dependencies)e.removeObserver(this);this.dependencies.clear(),this._handleLastObserverRemoved?.()}get(){if(0===this.observers.size){const e=this._computeFn(this,this.createChangeSummary?.());return this.onLastObserverRemoved(),e}do{if(1===this.state)for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break;1===this.state&&(this.state=3),this._recomputeIfNeeded()}while(3!==this.state);return this.value}_recomputeIfNeeded(){if(3===this.state)return;const e=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=e;const t=0!==this.state,n=this.value;this.state=3;const i=this.changeSummary;this.changeSummary=this.createChangeSummary?.();try{this.value=this._computeFn(this,i)}finally{for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}const r=t&&!this._equalityComparator(n,this.value);if(w()?.handleDerivedRecomputed(this,{oldValue:n,newValue:this.value,change:void 0,didChange:r,hadValue:t}),r)for(const s of this.observers)s.handleChange(this,void 0)}toString(){return`LazyDerived<${this.debugName}>`}beginUpdate(e){this.updateCount++;const t=1===this.updateCount;if(3===this.state&&(this.state=1,!t))for(const n of this.observers)n.handlePossibleChange(this);if(t)for(const n of this.observers)n.beginUpdate(this)}endUpdate(e){if(this.updateCount--,0===this.updateCount){const e=[...this.observers];for(const t of e)t.endUpdate(this)}(0,S.Ft)((()=>this.updateCount>=0))}handlePossibleChange(e){if(3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){this.state=1;for(const e of this.observers)e.handlePossibleChange(this)}}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){const n=!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary),i=3===this.state;if(n&&(1===this.state||i)&&(this.state=2,i))for(const e of this.observers)e.handlePossibleChange(this)}}readObservable(e){e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}addObserver(e){const t=!this.observers.has(e)&&this.updateCount>0;super.addObserver(e),t&&e.beginUpdate(this)}removeObserver(e){const t=this.observers.has(e)&&this.updateCount>0;super.removeObserver(e),t&&e.endUpdate(this)}}function x(e){return new E(new c(void 0,void 0,e),e,void 0,void 0)}class E{get debugName(){return this._debugNameData.getDebugName(this)??"(anonymous)"}constructor(e,t,n,i){this._debugNameData=e,this._runFn=t,this.createChangeSummary=n,this._handleChange=i,this.state=2,this.updateCount=0,this.disposed=!1,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=this.createChangeSummary?.(),w()?.handleAutorunCreated(this),this._runIfNeeded(),(0,r.Ay)(this)}dispose(){this.disposed=!0;for(const e of this.dependencies)e.removeObserver(this);this.dependencies.clear(),(0,r.VD)(this)}_runIfNeeded(){if(3===this.state)return;const e=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=e,this.state=3;const t=this.disposed;try{if(!t){w()?.handleAutorunTriggered(this);const e=this.changeSummary;this.changeSummary=this.createChangeSummary?.(),this._runFn(this,e)}}finally{t||w()?.handleAutorunFinished(this);for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}}toString(){return`Autorun<${this.debugName}>`}beginUpdate(){3===this.state&&(this.state=1),this.updateCount++}endUpdate(){if(1===this.updateCount)do{if(1===this.state){this.state=3;for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break}this._runIfNeeded()}while(3!==this.state);this.updateCount--,(0,S.Ft)((()=>this.updateCount>=0))}handlePossibleChange(e){3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)&&(this.state=1)}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){(!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary))&&(this.state=2)}}readObservable(e){if(this.disposed)return e.get();e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}}!function(e){e.Observer=E}(x||(x={}));function A(...e){let t,n,i;return 3===e.length?[t,n,i]=e:[n,i]=e,new I(new c(t,void 0,i),n,i,(()=>I.globalTransaction),h)}class I extends y{constructor(e,t,n,i,r){super(),this._debugNameData=e,this.event=t,this._getValue=n,this._getTransaction=i,this._equalityComparator=r,this.hasValue=!1,this.handleEvent=e=>{const t=this._getValue(e),n=this.value,i=!this.hasValue||!this._equalityComparator(n,t);let r=!1;i&&(this.value=t,this.hasValue&&(r=!0,function(e,t,n){e?t(e):T(t,n)}(this._getTransaction(),(e=>{w()?.handleFromEventObservableTriggered(this,{oldValue:n,newValue:t,change:void 0,didChange:i,hadValue:this.hasValue});for(const t of this.observers)e.updateObserver(t,this),t.handleChange(this,void 0)}),(()=>{const e=this.getDebugName();return"Event fired"+(e?`: ${e}`:"")}))),this.hasValue=!0),r||w()?.handleFromEventObservableTriggered(this,{oldValue:n,newValue:t,change:void 0,didChange:i,hadValue:this.hasValue})}}getDebugName(){return this._debugNameData.getDebugName(this)}get debugName(){const e=this.getDebugName();return"From Event"+(e?`: ${e}`:"")}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0,this.hasValue=!1,this.value=void 0}get(){if(this.subscription)return this.hasValue||this.handleEvent(void 0),this.value;return this._getValue(void 0)}}!function(e){e.Observer=I,e.batchEventsGlobally=function(e,t){let n=!1;void 0===I.globalTransaction&&(I.globalTransaction=e,n=!0);try{t()}finally{n&&(I.globalTransaction=void 0)}}}(A||(A={}));!function(e){b=e}((function(e){const t=new M(!1,void 0);return e.addObserver(t),(0,r.s)((()=>{e.removeObserver(t)}))})),function(e){_=e}((function(e,t){const n=new M(!0,t);return e.addObserver(n),t?t(e.get()):e.reportChanges(),(0,r.s)((()=>{e.removeObserver(n)}))}));class M{constructor(e,t){this._forceRecompute=e,this._handleValue=t,this._counter=0}beginUpdate(e){this._counter++}endUpdate(e){this._counter--,0===this._counter&&this._forceRecompute&&(this._handleValue?this._handleValue(e.get()):e.reportChanges())}handlePossibleChange(e){}handleChange(e,t){}}n(4383);class N extends r.jG{static{this.instanceCount=0}constructor(e=!1){super(),this._onDidRequestBasicLanguageFeatures=this._register(new i.vl),this.onDidRequestBasicLanguageFeatures=this._onDidRequestBasicLanguageFeatures.event,this._onDidRequestRichLanguageFeatures=this._register(new i.vl),this.onDidRequestRichLanguageFeatures=this._onDidRequestRichLanguageFeatures.event,this._onDidChange=this._register(new i.vl({leakWarningThreshold:200})),this.onDidChange=this._onDidChange.event,this._requestedBasicLanguages=new Set,this._requestedRichLanguages=new Set,N.instanceCount++,this._registry=this._register(new s.LanguagesRegistry(!0,e)),this.languageIdCodec=this._registry.languageIdCodec,this._register(this._registry.onDidChange((()=>this._onDidChange.fire())))}dispose(){N.instanceCount--,super.dispose()}isRegisteredLanguageId(e){return this._registry.isRegisteredLanguageId(e)}getLanguageIdByLanguageName(e){return this._registry.getLanguageIdByLanguageName(e)}getLanguageIdByMimeType(e){return this._registry.getLanguageIdByMimeType(e)}guessLanguageIdByFilepathOrFirstLine(e,t){const n=this._registry.guessLanguageIdByFilepathOrFirstLine(e,t);return(0,o.Fy)(n,null)}createById(e){return new R(this.onDidChange,(()=>this._createAndGetLanguageIdentifier(e)))}createByFilepathOrFirstLine(e,t){return new R(this.onDidChange,(()=>{const n=this.guessLanguageIdByFilepathOrFirstLine(e,t);return this._createAndGetLanguageIdentifier(n)}))}_createAndGetLanguageIdentifier(e){return e&&this.isRegisteredLanguageId(e)||(e=l.vH),e}requestBasicLanguageFeatures(e){this._requestedBasicLanguages.has(e)||(this._requestedBasicLanguages.add(e),this._onDidRequestBasicLanguageFeatures.fire(e))}requestRichLanguageFeatures(e){this._requestedRichLanguages.has(e)||(this._requestedRichLanguages.add(e),this.requestBasicLanguageFeatures(e),a.dG.getOrCreate(e),this._onDidRequestRichLanguageFeatures.fire(e))}}class R{constructor(e,t){this._value=A(this,e,(()=>t())),this.onDidChange=i.Jh.fromObservable(this._value)}get languageId(){return this._value.get()}}},9908:(e,t,n)=>{"use strict";n.r(t),n.d(t,{clearPlatformLanguageAssociations:()=>f,getLanguageIds:()=>m,registerPlatformLanguageAssociation:()=>g});var i=n(6958),r=n(1939),s=n(6456),o=n(8821),a=n(9403),l=n(1508),h=n(3941);let c=[],d=[],u=[];function g(e,t=!1){!function(e,t,n){const r=function(e,t){return{id:e.id,mime:e.mime,filename:e.filename,extension:e.extension,filepattern:e.filepattern,firstline:e.firstline,userConfigured:t,filenameLowercase:e.filename?e.filename.toLowerCase():void 0,extensionLowercase:e.extension?e.extension.toLowerCase():void 0,filepatternLowercase:e.filepattern?(0,i.qg)(e.filepattern.toLowerCase()):void 0,filepatternOnPath:!!e.filepattern&&e.filepattern.indexOf(o.SA.sep)>=0}}(e,t);c.push(r),r.userConfigured?u.push(r):d.push(r);n&&!r.userConfigured&&c.forEach((e=>{e.mime===r.mime||e.userConfigured||(r.extension&&e.extension===r.extension&&console.warn(`Overwriting extension <<${r.extension}>> to now point to mime <<${r.mime}>>`),r.filename&&e.filename===r.filename&&console.warn(`Overwriting filename <<${r.filename}>> to now point to mime <<${r.mime}>>`),r.filepattern&&e.filepattern===r.filepattern&&console.warn(`Overwriting filepattern <<${r.filepattern}>> to now point to mime <<${r.mime}>>`),r.firstline&&e.firstline===r.firstline&&console.warn(`Overwriting firstline <<${r.firstline}>> to now point to mime <<${r.mime}>>`))}))}(e,!1,t)}function f(){c=c.filter((e=>e.userConfigured)),d=[]}function m(e,t){return function(e,t){let n;if(e)switch(e.scheme){case s.ny.file:n=e.fsPath;break;case s.ny.data:n=a.B6.parseMetaData(e).get(a.B6.META_DATA_LABEL);break;case s.ny.vscodeNotebookCell:n=void 0;break;default:n=e.path}if(!n)return[{id:"unknown",mime:r.K.unknown}];n=n.toLowerCase();const i=(0,o.P8)(n),g=p(n,i,u);if(g)return[g,{id:h.vH,mime:r.K.text}];const f=p(n,i,d);if(f)return[f,{id:h.vH,mime:r.K.text}];if(t){const e=function(e){(0,l.LU)(e)&&(e=e.substr(1));if(e.length>0)for(let t=c.length-1;t>=0;t--){const n=c[t];if(!n.firstline)continue;const i=e.match(n.firstline);if(i&&i.length>0)return n}return}(t);if(e)return[e,{id:h.vH,mime:r.K.text}]}return[{id:"unknown",mime:r.K.unknown}]}(e,t).map((e=>e.id))}function p(e,t,n){let i,r,s;for(let o=n.length-1;o>=0;o--){const a=n[o];if(t===a.filenameLowercase){i=a;break}if(a.filepattern&&(!r||a.filepattern.length>r.filepattern.length)){const n=a.filepatternOnPath?e:t;a.filepatternLowercase?.(n)&&(r=a)}a.extension&&(!s||a.extension.length>s.extension.length)&&t.endsWith(a.extensionLowercase)&&(s=a)}return i||(r||(s||void 0))}},9259:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LanguageIdCodec:()=>u,LanguagesRegistry:()=>g});var i=n(1234),r=n(1484),s=n(1508),o=n(9908),a=n(3941),l=n(1646),h=n(6359);const c=Object.prototype.hasOwnProperty,d="vs.editor.nullLanguage";class u{constructor(){this._languageIdToLanguage=[],this._languageToLanguageId=new Map,this._register(d,0),this._register(a.vH,1),this._nextLanguageId=2}_register(e,t){this._languageIdToLanguage[t]=e,this._languageToLanguageId.set(e,t)}register(e){if(this._languageToLanguageId.has(e))return;const t=this._nextLanguageId++;this._register(e,t)}encodeLanguageId(e){return this._languageToLanguageId.get(e)||0}decodeLanguageId(e){return this._languageIdToLanguage[e]||d}}class g extends r.jG{static{this.instanceCount=0}constructor(e=!0,t=!1){super(),this._onDidChange=this._register(new i.vl),this.onDidChange=this._onDidChange.event,g.instanceCount++,this._warnOnOverwrite=t,this.languageIdCodec=new u,this._dynamicLanguages=[],this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},e&&(this._initializeFromRegistry(),this._register(a.W6.onDidChangeLanguages((e=>{this._initializeFromRegistry()}))))}dispose(){g.instanceCount--,super.dispose()}_initializeFromRegistry(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},(0,o.clearPlatformLanguageAssociations)();const e=[].concat(a.W6.getLanguages()).concat(this._dynamicLanguages);this._registerLanguages(e)}_registerLanguages(e){for(const t of e)this._registerLanguage(t);this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach((e=>{const t=this._languages[e];t.name&&(this._nameMap[t.name]=t.identifier),t.aliases.forEach((e=>{this._lowercaseNameMap[e.toLowerCase()]=t.identifier})),t.mimetypes.forEach((e=>{this._mimeTypesMap[e]=t.identifier}))})),h.O.as(l.Fd.Configuration).registerOverrideIdentifiers(this.getRegisteredLanguageIds()),this._onDidChange.fire()}_registerLanguage(e){const t=e.id;let n;c.call(this._languages,t)?n=this._languages[t]:(this.languageIdCodec.register(t),n={identifier:t,name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[],icons:[]},this._languages[t]=n),this._mergeLanguage(n,e)}_mergeLanguage(e,t){const n=t.id;let i=null;if(Array.isArray(t.mimetypes)&&t.mimetypes.length>0&&(e.mimetypes.push(...t.mimetypes),i=t.mimetypes[0]),i||(i=`text/x-${n}`,e.mimetypes.push(i)),Array.isArray(t.extensions)){t.configuration?e.extensions=t.extensions.concat(e.extensions):e.extensions=e.extensions.concat(t.extensions);for(const e of t.extensions)(0,o.registerPlatformLanguageAssociation)({id:n,mime:i,extension:e},this._warnOnOverwrite)}if(Array.isArray(t.filenames))for(const s of t.filenames)(0,o.registerPlatformLanguageAssociation)({id:n,mime:i,filename:s},this._warnOnOverwrite),e.filenames.push(s);if(Array.isArray(t.filenamePatterns))for(const s of t.filenamePatterns)(0,o.registerPlatformLanguageAssociation)({id:n,mime:i,filepattern:s},this._warnOnOverwrite);if("string"===typeof t.firstLine&&t.firstLine.length>0){let e=t.firstLine;"^"!==e.charAt(0)&&(e="^"+e);try{const t=new RegExp(e);(0,s.eY)(t)||(0,o.registerPlatformLanguageAssociation)({id:n,mime:i,firstline:t},this._warnOnOverwrite)}catch(l){console.warn(`[${t.id}]: Invalid regular expression \`${e}\`: `,l)}}e.aliases.push(n);let r=null;if("undefined"!==typeof t.aliases&&Array.isArray(t.aliases)&&(r=0===t.aliases.length?[null]:t.aliases),null!==r)for(const s of r)s&&0!==s.length&&e.aliases.push(s);const a=null!==r&&r.length>0;if(a&&null===r[0]);else{const t=(a?r[0]:null)||n;!a&&e.name||(e.name=t)}t.configuration&&e.configurationFiles.push(t.configuration),t.icon&&e.icons.push(t.icon)}isRegisteredLanguageId(e){return!!e&&c.call(this._languages,e)}getRegisteredLanguageIds(){return Object.keys(this._languages)}getLanguageIdByLanguageName(e){const t=e.toLowerCase();return c.call(this._lowercaseNameMap,t)?this._lowercaseNameMap[t]:null}getLanguageIdByMimeType(e){return e&&c.call(this._mimeTypesMap,e)?this._mimeTypesMap[e]:null}guessLanguageIdByFilepathOrFirstLine(e,t){return e||t?(0,o.getLanguageIds)(e,t):[]}}},7550:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IMarkerDecorationsService:()=>i});const i=(0,n(3591).u1)("markerDecorationsService")},448:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MarkerDecorationsService:()=>T});var i,r=n(1508);!function(e){e[e.Ignore=0]="Ignore",e[e.Info=1]="Info",e[e.Warning=2]="Warning",e[e.Error=3]="Error"}(i||(i={})),function(e){const t="error",n="warning",i="info";e.fromValue=function(s){return s?r.Q_(t,s)?e.Error:r.Q_(n,s)||r.Q_("warn",s)?e.Warning:r.Q_(i,s)?e.Info:e.Ignore:e.Ignore},e.toString=function(r){switch(r){case e.Error:return t;case e.Warning:return n;case e.Info:return i;default:return"ignore"}}}(i||(i={}));const s=i;var o,a,l=n(8209),h=n(3591);!function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(o||(o={})),function(e){e.compare=function(e,t){return t-e};const t=Object.create(null);t[e.Error]=(0,l.kg)("sev.error","Error"),t[e.Warning]=(0,l.kg)("sev.warning","Warning"),t[e.Info]=(0,l.kg)("sev.info","Info"),e.toString=function(e){return t[e]||""},e.fromSeverity=function(t){switch(t){case s.Error:return e.Error;case s.Warning:return e.Warning;case s.Info:return e.Info;case s.Ignore:return e.Hint}},e.toSeverity=function(t){switch(t){case e.Error:return s.Error;case e.Warning:return s.Warning;case e.Info:return s.Info;case e.Hint:return s.Ignore}}}(o||(o={})),function(e){const t="";function n(e,n){const i=[t];return e.source?i.push(e.source.replace("\xa6","\\\xa6")):i.push(t),e.code?"string"===typeof e.code?i.push(e.code.replace("\xa6","\\\xa6")):i.push(e.code.value.replace("\xa6","\\\xa6")):i.push(t),void 0!==e.severity&&null!==e.severity?i.push(o.toString(e.severity)):i.push(t),e.message&&n?i.push(e.message.replace("\xa6","\\\xa6")):i.push(t),void 0!==e.startLineNumber&&null!==e.startLineNumber?i.push(e.startLineNumber.toString()):i.push(t),void 0!==e.startColumn&&null!==e.startColumn?i.push(e.startColumn.toString()):i.push(t),void 0!==e.endLineNumber&&null!==e.endLineNumber?i.push(e.endLineNumber.toString()):i.push(t),void 0!==e.endColumn&&null!==e.endColumn?i.push(e.endColumn.toString()):i.push(t),i.push(t),i.join("\xa6")}e.makeKey=function(e){return n(e,!0)},e.makeKeyOptionalMessage=n}(a||(a={}));const c=(0,h.u1)("markerService");var d=n(1484),u=n(6223),g=n(5724),f=n(7119),m=n(3750),p=n(6677),_=n(6456),b=n(1234),v=n(5845),w=n(4320);var k=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},y=function(e,t){return function(n,i){t(n,i,e)}};let T=class extends d.jG{constructor(e,t){super(),this._markerService=t,this._onDidChangeMarker=this._register(new b.vl),this._markerDecorations=new w.fT,e.getModels().forEach((e=>this._onModelAdded(e))),this._register(e.onModelAdded(this._onModelAdded,this)),this._register(e.onModelRemoved(this._onModelRemoved,this)),this._register(this._markerService.onMarkerChanged(this._handleMarkerChange,this))}dispose(){super.dispose(),this._markerDecorations.forEach((e=>e.dispose())),this._markerDecorations.clear()}getMarker(e,t){const n=this._markerDecorations.get(e);return n&&n.getMarker(t)||null}_handleMarkerChange(e){e.forEach((e=>{const t=this._markerDecorations.get(e);t&&this._updateDecorations(t)}))}_onModelAdded(e){const t=new C(e);this._markerDecorations.set(e.uri,t),this._updateDecorations(t)}_onModelRemoved(e){const t=this._markerDecorations.get(e.uri);t&&(t.dispose(),this._markerDecorations.delete(e.uri)),e.uri.scheme!==_.ny.inMemory&&e.uri.scheme!==_.ny.internal&&e.uri.scheme!==_.ny.vscode||this._markerService?.read({resource:e.uri}).map((e=>e.owner)).forEach((t=>this._markerService.remove(t,[e.uri])))}_updateDecorations(e){const t=this._markerService.read({resource:e.model.uri,take:500});e.update(t)&&this._onDidChangeMarker.fire(e.model)}};T=k([y(0,m.IModelService),y(1,c)],T);class C extends d.jG{constructor(e){super(),this.model=e,this._map=new w.cO,this._register((0,d.s)((()=>{this.model.deltaDecorations([...this._map.values()],[]),this._map.clear()})))}update(e){const{added:t,removed:n}=function(e,t){const n=[],i=[];for(const r of e)t.has(r)||n.push(r);for(const r of t)e.has(r)||i.push(r);return{removed:n,added:i}}(new Set(this._map.keys()),new Set(e));if(0===t.length&&0===n.length)return!1;const i=n.map((e=>this._map.get(e))),r=t.map((e=>({range:this._createDecorationRange(this.model,e),options:this._createDecorationOption(e)}))),s=this.model.deltaDecorations(i,r);for(const o of n)this._map.delete(o);for(let o=0;o<s.length;o++)this._map.set(t[o],s[o]);return!0}getMarker(e){return this._map.getKey(e.id)}_createDecorationRange(e,t){let n=p.Q.lift(t);if(t.severity!==o.Hint||this._hasMarkerTag(t,1)||this._hasMarkerTag(t,2)||(n=n.setEndPosition(n.startLineNumber,n.startColumn+2)),n=e.validateRange(n),n.isEmpty()){const t=e.getLineLastNonWhitespaceColumn(n.startLineNumber)||e.getLineMaxColumn(n.startLineNumber);if(1===t||n.endColumn>=t)return n;const i=e.getWordAtPosition(n.getStartPosition());i&&(n=new p.Q(n.startLineNumber,i.startColumn,n.endLineNumber,i.endColumn))}else if(t.endColumn===Number.MAX_VALUE&&1===t.startColumn&&n.startLineNumber===n.endLineNumber){const i=e.getLineFirstNonWhitespaceColumn(t.startLineNumber);i<n.endColumn&&(n=new p.Q(n.startLineNumber,i,n.endLineNumber,n.endColumn),t.startColumn=i)}return n}_createDecorationOption(e){let t,n,i,r,s;switch(e.severity){case o.Hint:t=this._hasMarkerTag(e,2)?void 0:this._hasMarkerTag(e,1)?"squiggly-unnecessary":"squiggly-hint",i=0;break;case o.Info:t="squiggly-info",n=(0,g.Yf)(f.AQ),i=10,s={color:(0,g.Yf)(v.KoI),position:1};break;case o.Warning:t="squiggly-warning",n=(0,g.Yf)(f.aZ),i=20,s={color:(0,g.Yf)(v.uMG),position:1};break;case o.Error:default:t="squiggly-error",n=(0,g.Yf)(f.yI),i=30,s={color:(0,g.Yf)(v.yLC),position:1}}return e.tags&&(-1!==e.tags.indexOf(1)&&(r="squiggly-inline-unnecessary"),-1!==e.tags.indexOf(2)&&(r="squiggly-inline-deprecated")),{description:"marker-decoration",stickiness:1,className:t,showIfCollapsed:!0,overviewRuler:{color:n,position:u.A5.Right},minimap:s,zIndex:i,inlineClassName:r}}_hasMarkerTag(e,t){return!!e.tags&&e.tags.indexOf(t)>=0}}},3750:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IModelService:()=>i});const i=(0,n(3591).u1)("modelService")},1773:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DefaultModelSHA1Computer:()=>yr,ModelService:()=>kr});var i=n(1234),r=n(1484),s=n(8067),o=n(9861),a=n(7661),l=n(4383),h=n(1508),c=n(9400),d=n(4454);class u{static _nextVisibleColumn(e,t,n){return 9===e?u.nextRenderTabStop(t,n):h.ne(e)||h.Ss(e)?t+2:t+1}static visibleColumnFromColumn(e,t,n){const i=Math.min(t-1,e.length),r=e.substring(0,i),s=new h.km(r);let o=0;for(;!s.eol();){const e=h.Z5(r,i,s.offset);s.nextGraphemeLength(),o=this._nextVisibleColumn(e,o,n)}return o}static columnFromVisibleColumn(e,t,n){if(t<=0)return 1;const i=e.length,r=new h.km(e);let s=0,o=1;for(;!r.eol();){const a=h.Z5(e,i,r.offset);r.nextGraphemeLength();const l=this._nextVisibleColumn(a,s,n),c=r.offset+1;if(l>=t){return l-t<t-s?c:o}s=l,o=c}return i+1}static nextRenderTabStop(e,t){return e+t-e%t}static nextIndentTabStop(e,t){return e+t-e%t}static prevRenderTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}static prevIndentTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}}function g(e,t,n){let i=h.HG(e);return-1===i&&(i=e.length),function(e,t,n){let i=0;for(let s=0;s<e.length;s++)"\t"===e.charAt(s)?i=u.nextIndentTabStop(i,t):i++;let r="";if(!n){const e=Math.floor(i/t);i%=t;for(let t=0;t<e;t++)r+="\t"}for(let s=0;s<i;s++)r+=" ";return r}(e.substring(0,i),t,n)+e.substring(i)}var f=n(3069),m=n(6677),p=n(5326);const _={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}};var b,v=n(154),w=n(6486);!function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(b||(b={}));class k{constructor(e){if(this._neutralCharacter=null,this._neutralCharacterSearched=!1,this.open=e.open,this.close=e.close,this._inString=!0,this._inComment=!0,this._inRegEx=!0,Array.isArray(e.notIn))for(let t=0,n=e.notIn.length;t<n;t++){switch(e.notIn[t]){case"string":this._inString=!1;break;case"comment":this._inComment=!1;break;case"regex":this._inRegEx=!1}}}isOK(e){switch(e){case 0:return!0;case 1:return this._inComment;case 2:return this._inString;case 3:return this._inRegEx}}shouldAutoClose(e,t){if(0===e.getTokenCount())return!0;const n=e.findTokenIndexAtOffset(t-2),i=e.getStandardTokenType(n);return this.isOK(i)}_findNeutralCharacterInRange(e,t){for(let n=e;n<=t;n++){const e=String.fromCharCode(n);if(!this.open.includes(e)&&!this.close.includes(e))return e}return null}findNeutralCharacter(){return this._neutralCharacterSearched||(this._neutralCharacterSearched=!0,this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(48,57)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(97,122)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(65,90))),this._neutralCharacter}}class y{constructor(e){this.autoClosingPairsOpenByStart=new Map,this.autoClosingPairsOpenByEnd=new Map,this.autoClosingPairsCloseByStart=new Map,this.autoClosingPairsCloseByEnd=new Map,this.autoClosingPairsCloseSingleChar=new Map;for(const t of e)T(this.autoClosingPairsOpenByStart,t.open.charAt(0),t),T(this.autoClosingPairsOpenByEnd,t.open.charAt(t.open.length-1),t),T(this.autoClosingPairsCloseByStart,t.close.charAt(0),t),T(this.autoClosingPairsCloseByEnd,t.close.charAt(t.close.length-1),t),1===t.close.length&&1===t.open.length&&T(this.autoClosingPairsCloseSingleChar,t.close,t)}}function T(e,t,n){e.has(t)?e.get(t).push(n):e.set(t,[n])}class C{static{this.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES=";:.,=}])> \n\t"}static{this.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS="'\"`;:.,=}])> \n\t"}constructor(e){if(e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map((e=>new k(e))):e.brackets?this._autoClosingPairs=e.brackets.map((e=>new k({open:e[0],close:e[1]}))):this._autoClosingPairs=[],e.__electricCharacterSupport&&e.__electricCharacterSupport.docComment){const t=e.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new k({open:t.open,close:t.close||""}))}this._autoCloseBeforeForQuotes="string"===typeof e.autoCloseBefore?e.autoCloseBefore:C.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES,this._autoCloseBeforeForBrackets="string"===typeof e.autoCloseBefore?e.autoCloseBefore:C.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS,this._surroundingPairs=e.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(e){return e?this._autoCloseBeforeForQuotes:this._autoCloseBeforeForBrackets}getSurroundingPairs(){return this._surroundingPairs}}function S(e){return 0!==(3&e)}var L=n(1674);let x,E,A;function I(){return x||(x=new TextDecoder("UTF-16LE")),x}function M(){return A||(A=s.cm()?I():(E||(E=new TextDecoder("UTF-16BE")),E)),A}function N(e,t,n){const i=new Uint16Array(e.buffer,t,n);return n>0&&(65279===i[0]||65534===i[0])?function(e,t,n){const i=[];let r=0;for(let s=0;s<n;s++){const n=L.$l(e,t);t+=2,i[r++]=String.fromCharCode(n)}return i.join("")}(e,t,n):I().decode(i)}class R{constructor(e,t,n,i,r,s){this._richEditBracketBrand=void 0,this.languageId=e,this.index=t,this.open=n,this.close=i,this.forwardRegex=r,this.reversedRegex=s,this._openSet=R._toSet(this.open),this._closeSet=R._toSet(this.close)}isOpen(e){return this._openSet.has(e)}isClose(e){return this._closeSet.has(e)}static _toSet(e){const t=new Set;for(const n of e)t.add(n);return t}}class D{constructor(e,t){this._richEditBracketsBrand=void 0;const n=function(e){const t=e.length;e=e.map((e=>[e[0].toLowerCase(),e[1].toLowerCase()]));const n=[];for(let o=0;o<t;o++)n[o]=o;const i=(e,t)=>{const[n,i]=e,[r,s]=t;return n===r||n===s||i===r||i===s},r=(e,i)=>{const r=Math.min(e,i),s=Math.max(e,i);for(let o=0;o<t;o++)n[o]===s&&(n[o]=r)};for(let o=0;o<t;o++){const s=e[o];for(let a=o+1;a<t;a++)i(s,e[a])&&r(n[o],n[a])}const s=[];for(let o=0;o<t;o++){const i=[],r=[];for(let s=0;s<t;s++)if(n[s]===o){const[t,n]=e[s];i.push(t),r.push(n)}i.length>0&&s.push({open:i,close:r})}return s}(t);this.brackets=n.map(((t,i)=>new R(e,i,t.open,t.close,function(e,t,n,i){let r=[];r=r.concat(e),r=r.concat(t);for(let s=0,o=r.length;s<o;s++)O(r[s],n,i,r);return r=z(r),r.sort(B),r.reverse(),F(r)}(t.open,t.close,n,i),function(e,t,n,i){let r=[];r=r.concat(e),r=r.concat(t);for(let s=0,o=r.length;s<o;s++)O(r[s],n,i,r);return r=z(r),r.sort(B),r.reverse(),F(r.map(W))}(t.open,t.close,n,i)))),this.forwardRegex=function(e){let t=[];for(const n of e){for(const e of n.open)t.push(e);for(const e of n.close)t.push(e)}return t=z(t),F(t)}(this.brackets),this.reversedRegex=function(e){let t=[];for(const n of e){for(const e of n.open)t.push(e);for(const e of n.close)t.push(e)}return t=z(t),F(t.map(W))}(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(const i of this.brackets){for(const e of i.open)this.textIsBracket[e]=i,this.textIsOpenBracket[e]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,e.length);for(const e of i.close)this.textIsBracket[e]=i,this.textIsOpenBracket[e]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,e.length)}}}function O(e,t,n,i){for(let r=0,s=t.length;r<s;r++){if(r===n)continue;const s=t[r];for(const t of s.open)t.indexOf(e)>=0&&i.push(t);for(const t of s.close)t.indexOf(e)>=0&&i.push(t)}}function B(e,t){return e.length-t.length}function z(e){if(e.length<=1)return e;const t=[],n=new Set;for(const i of e)n.has(i)||(t.push(i),n.add(i));return t}function P(e){const t=/^[\w ]+$/.test(e);return e=h.bm(e),t?`\\b${e}\\b`:e}function F(e,t){const n=`(${e.map(P).join(")|(")})`;return h.OS(n,!0,t)}const W=function(){let e=null,t=null;return function(n){return e!==n&&(e=n,t=function(e){const t=new Uint16Array(e.length);let n=0;for(let i=e.length-1;i>=0;i--)t[n++]=e.charCodeAt(i);return M().decode(t)}(e)),t}}();class H{static _findPrevBracketInText(e,t,n,i){const r=n.match(e);if(!r)return null;const s=n.length-(r.index||0),o=r[0].length,a=i+s;return new m.Q(t,a-o+1,t,a+1)}static findPrevBracketInRange(e,t,n,i,r){const s=W(n).substring(n.length-r,n.length-i);return this._findPrevBracketInText(e,t,s,i)}static findNextBracketInText(e,t,n,i){const r=n.match(e);if(!r)return null;const s=r.index||0,o=r[0].length;if(0===o)return null;const a=i+s;return new m.Q(t,a+1,t,a+1+o)}static findNextBracketInRange(e,t,n,i,r){const s=n.substring(i,r);return this.findNextBracketInText(e,t,s,i)}}class U{constructor(e){this._richEditBrackets=e}getElectricCharacters(){const e=[];if(this._richEditBrackets)for(const t of this._richEditBrackets.brackets)for(const n of t.close){const t=n.charAt(n.length-1);e.push(t)}return(0,o.dM)(e)}onElectricCharacter(e,t,n){if(!this._richEditBrackets||0===this._richEditBrackets.brackets.length)return null;const i=t.findTokenIndexAtOffset(n-1);if(S(t.getStandardTokenType(i)))return null;const r=this._richEditBrackets.reversedRegex,s=t.getLineContent().substring(0,n-1)+e,o=H.findPrevBracketInRange(r,1,s,0,s.length);if(!o)return null;const a=s.substring(o.startColumn-1,o.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[a])return null;const l=t.getActualLineContentBefore(o.startColumn-1);return/^\s*$/.test(l)?{matchOpenBracket:a}:null}}function q(e){return e.global&&(e.lastIndex=0),!0}class V{constructor(e){this._indentationRules=e}shouldIncrease(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&q(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(e))}shouldDecrease(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&q(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(e))}shouldIndentNextLine(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&q(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(e))}shouldIgnore(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&q(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(e))}getIndentMetadata(e){let t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t}}class j{constructor(e){(e=e||{}).brackets=e.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],e.brackets.forEach((e=>{const t=j._createOpenBracketRegExp(e[0]),n=j._createCloseBracketRegExp(e[1]);t&&n&&this._brackets.push({open:e[0],openRegExp:t,close:e[1],closeRegExp:n})})),this._regExpRules=e.onEnterRules||[]}onEnter(e,t,n,i){if(e>=3)for(let r=0,s=this._regExpRules.length;r<s;r++){const e=this._regExpRules[r];if([{reg:e.beforeText,text:n},{reg:e.afterText,text:i},{reg:e.previousLineText,text:t}].every((e=>!e.reg||(e.reg.lastIndex=0,e.reg.test(e.text)))))return e.action}if(e>=2&&n.length>0&&i.length>0)for(let r=0,s=this._brackets.length;r<s;r++){const e=this._brackets[r];if(e.openRegExp.test(n)&&e.closeRegExp.test(i))return{indentAction:b.IndentOutdent}}if(e>=2&&n.length>0)for(let r=0,s=this._brackets.length;r<s;r++){if(this._brackets[r].openRegExp.test(n))return{indentAction:b.Indent}}return null}static _createOpenBracketRegExp(e){let t=h.bm(e);return/\B/.test(t.charAt(0))||(t="\\b"+t),t+="\\s*$",j._safeRegExp(t)}static _createCloseBracketRegExp(e){let t=h.bm(e);return/\B/.test(t.charAt(t.length-1))||(t+="\\b"),t="^\\s*"+t,j._safeRegExp(t)}static _safeRegExp(e){try{return new RegExp(e)}catch(t){return(0,l.dz)(t),null}}}var G=n(3591),K=n(4001),$=n(4621),Q=n(3941),Y=n(1788);class X{constructor(e,t){this.languageId=e;const n=t.brackets?J(t.brackets):[],i=new Y.VV((e=>{const t=new Set;return{info:new ee(this,e,t),closing:t}})),r=new Y.VV((e=>{const t=new Set,n=new Set;return{info:new te(this,e,t,n),opening:t,openingColorized:n}}));for(const[o,a]of n){const e=i.get(o),t=r.get(a);e.closing.add(t.info),t.opening.add(e.info)}const s=t.colorizedBracketPairs?J(t.colorizedBracketPairs):n.filter((e=>!("<"===e[0]&&">"===e[1])));for(const[o,a]of s){const e=i.get(o),t=r.get(a);e.closing.add(t.info),t.openingColorized.add(e.info),t.opening.add(e.info)}this._openingBrackets=new Map([...i.cachedValues].map((([e,t])=>[e,t.info]))),this._closingBrackets=new Map([...r.cachedValues].map((([e,t])=>[e,t.info])))}get openingBrackets(){return[...this._openingBrackets.values()]}get closingBrackets(){return[...this._closingBrackets.values()]}getOpeningBracketInfo(e){return this._openingBrackets.get(e)}getClosingBracketInfo(e){return this._closingBrackets.get(e)}getBracketInfo(e){return this.getOpeningBracketInfo(e)||this.getClosingBracketInfo(e)}getBracketRegExp(e){return F(Array.from([...this._openingBrackets.keys(),...this._closingBrackets.keys()]),e)}}function J(e){return e.filter((([e,t])=>""!==e&&""!==t))}class Z{constructor(e,t){this.config=e,this.bracketText=t}get languageId(){return this.config.languageId}}class ee extends Z{constructor(e,t,n){super(e,t),this.openedBrackets=n,this.isOpeningBracket=!0}}class te extends Z{constructor(e,t,n,i){super(e,t),this.openingBrackets=n,this.openingColorizedBrackets=i,this.isOpeningBracket=!1}closes(e){return e.config===this.config&&this.openingBrackets.has(e)}closesColorized(e){return e.config===this.config&&this.openingColorizedBrackets.has(e)}getOpeningBrackets(){return[...this.openingBrackets]}}var ne=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},ie=function(e,t){return function(n,i){t(n,i,e)}};class re{constructor(e){this.languageId=e}affects(e){return!this.languageId||this.languageId===e}}const se=(0,G.u1)("languageConfigurationService");let oe=class extends r.jG{constructor(e,t){super(),this.configurationService=e,this.languageService=t,this._registry=this._register(new ge),this.onDidChangeEmitter=this._register(new i.vl),this.onDidChange=this.onDidChangeEmitter.event,this.configurations=new Map;const n=new Set(Object.values(ae));this._register(this.configurationService.onDidChangeConfiguration((e=>{const t=e.change.keys.some((e=>n.has(e))),i=e.change.overrides.filter((([e,t])=>t.some((e=>n.has(e))))).map((([e])=>e));if(t)this.configurations.clear(),this.onDidChangeEmitter.fire(new re(void 0));else for(const n of i)this.languageService.isRegisteredLanguageId(n)&&(this.configurations.delete(n),this.onDidChangeEmitter.fire(new re(n)))}))),this._register(this._registry.onDidChange((e=>{this.configurations.delete(e.languageId),this.onDidChangeEmitter.fire(new re(e.languageId))})))}register(e,t,n){return this._registry.register(e,t,n)}getLanguageConfiguration(e){let t=this.configurations.get(e);return t||(t=function(e,t,n,i){let r=t.getLanguageConfiguration(e);if(!r){if(!i.isRegisteredLanguageId(e))return new fe(e,{});r=new fe(e,{})}const s=function(e,t){const n=t.getValue(ae.brackets,{overrideIdentifier:e}),i=t.getValue(ae.colorizedBracketPairs,{overrideIdentifier:e});return{brackets:le(n),colorizedBracketPairs:le(i)}}(r.languageId,n),o=ce([r.underlyingConfig,s]);return new fe(r.languageId,o)}(e,this._registry,this.configurationService,this.languageService),this.configurations.set(e,t)),t}};oe=ne([ie(0,K.pG),ie(1,v.L)],oe);const ae={brackets:"editor.language.brackets",colorizedBracketPairs:"editor.language.colorizedBracketPairs"};function le(e){if(Array.isArray(e))return e.map((e=>{if(Array.isArray(e)&&2===e.length)return[e[0],e[1]]})).filter((e=>!!e))}class he{constructor(e){this.languageId=e,this._resolved=null,this._entries=[],this._order=0,this._resolved=null}register(e,t){const n=new de(e,t,++this._order);return this._entries.push(n),this._resolved=null,(0,r.s)((()=>{for(let e=0;e<this._entries.length;e++)if(this._entries[e]===n){this._entries.splice(e,1),this._resolved=null;break}}))}getResolvedConfiguration(){if(!this._resolved){const e=this._resolve();e&&(this._resolved=new fe(this.languageId,e))}return this._resolved}_resolve(){return 0===this._entries.length?null:(this._entries.sort(de.cmp),ce(this._entries.map((e=>e.configuration))))}}function ce(e){let t={comments:void 0,brackets:void 0,wordPattern:void 0,indentationRules:void 0,onEnterRules:void 0,autoClosingPairs:void 0,surroundingPairs:void 0,autoCloseBefore:void 0,folding:void 0,colorizedBracketPairs:void 0,__electricCharacterSupport:void 0};for(const n of e)t={comments:n.comments||t.comments,brackets:n.brackets||t.brackets,wordPattern:n.wordPattern||t.wordPattern,indentationRules:n.indentationRules||t.indentationRules,onEnterRules:n.onEnterRules||t.onEnterRules,autoClosingPairs:n.autoClosingPairs||t.autoClosingPairs,surroundingPairs:n.surroundingPairs||t.surroundingPairs,autoCloseBefore:n.autoCloseBefore||t.autoCloseBefore,folding:n.folding||t.folding,colorizedBracketPairs:n.colorizedBracketPairs||t.colorizedBracketPairs,__electricCharacterSupport:n.__electricCharacterSupport||t.__electricCharacterSupport};return t}class de{constructor(e,t,n){this.configuration=e,this.priority=t,this.order=n}static cmp(e,t){return e.priority===t.priority?e.order-t.order:e.priority-t.priority}}class ue{constructor(e){this.languageId=e}}class ge extends r.jG{constructor(){super(),this._entries=new Map,this._onDidChange=this._register(new i.vl),this.onDidChange=this._onDidChange.event,this._register(this.register(Q.vH,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],colorizedBracketPairs:[],folding:{offSide:!0}},0))}register(e,t,n=0){let i=this._entries.get(e);i||(i=new he(e),this._entries.set(e,i));const s=i.register(t,n);return this._onDidChange.fire(new ue(e)),(0,r.s)((()=>{s.dispose(),this._onDidChange.fire(new ue(e))}))}getLanguageConfiguration(e){const t=this._entries.get(e);return t?.getResolvedConfiguration()||null}}class fe{constructor(e,t){this.languageId=e,this.underlyingConfig=t,this._brackets=null,this._electricCharacter=null,this._onEnterSupport=this.underlyingConfig.brackets||this.underlyingConfig.indentationRules||this.underlyingConfig.onEnterRules?new j(this.underlyingConfig):null,this.comments=fe._handleComments(this.underlyingConfig),this.characterPair=new C(this.underlyingConfig),this.wordDefinition=this.underlyingConfig.wordPattern||w.Ld,this.indentationRules=this.underlyingConfig.indentationRules,this.underlyingConfig.indentationRules?this.indentRulesSupport=new V(this.underlyingConfig.indentationRules):this.indentRulesSupport=null,this.foldingRules=this.underlyingConfig.folding||{},this.bracketsNew=new X(e,this.underlyingConfig)}getWordDefinition(){return(0,w.Io)(this.wordDefinition)}get brackets(){return!this._brackets&&this.underlyingConfig.brackets&&(this._brackets=new D(this.languageId,this.underlyingConfig.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new U(this.brackets)),this._electricCharacter}onEnter(e,t,n,i){return this._onEnterSupport?this._onEnterSupport.onEnter(e,t,n,i):null}getAutoClosingPairs(){return new y(this.characterPair.getAutoClosingPairs())}getAutoCloseBeforeSet(e){return this.characterPair.getAutoCloseBeforeSet(e)}getSurroundingPairs(){return this.characterPair.getSurroundingPairs()}static _handleComments(e){const t=e.comments;if(!t)return null;const n={};if(t.lineComment&&(n.lineCommentToken=t.lineComment),t.blockComment){const[e,i]=t.blockComment;n.blockCommentStartToken=e,n.blockCommentEndToken=i}return n}}(0,$.v)(se,oe,1);var me=n(6223);class pe{constructor(e,t,n,i){this.range=e,this.nestingLevel=t,this.nestingLevelOfEqualBracketType=n,this.isInvalid=i}}class _e{constructor(e,t,n,i,r,s){this.range=e,this.openingBracketRange=t,this.closingBracketRange=n,this.nestingLevel=i,this.nestingLevelOfEqualBracketType=r,this.bracketPairNode=s}get openingBracketInfo(){return this.bracketPairNode.openingBracket.bracketInfo}}class be extends _e{constructor(e,t,n,i,r,s,o){super(e,t,n,i,r,s),this.minVisibleColumnIndentation=o}}var ve=n(973);function we(e){return 0===e}const ke=2**26;function ye(e,t){return e*ke+t}function Te(e){const t=e,n=Math.floor(t/ke),i=t-n*ke;return new ve.W(n,i)}function Ce(e,t){let n=e+t;return t>=ke&&(n-=e%ke),n}function Se(e,t){return e.reduce(((e,n)=>Ce(e,t(n))),0)}function Le(e,t){return e===t}function xe(e,t){const n=e,i=t;if(i-n<=0)return 0;const r=Math.floor(n/ke),s=Math.floor(i/ke),o=i-s*ke;if(r===s){return ye(0,o-(n-r*ke))}return ye(s-r,o)}function Ee(e,t){return e<t}function Ae(e,t){return e<=t}function Ie(e,t){return e>=t}function Me(e){return ye(e.lineNumber-1,e.column-1)}function Ne(e,t){const n=e,i=Math.floor(n/ke),r=n-i*ke,s=t,o=Math.floor(s/ke),a=s-o*ke;return new m.Q(i+1,r+1,o+1,a+1)}class Re{static fromModelContentChanges(e){return e.map((e=>{const t=m.Q.lift(e.range);return new Re(Me(t.getStartPosition()),Me(t.getEndPosition()),function(e){const t=(0,h.uz)(e);return ye(t.length-1,t[t.length-1].length)}(e.text))})).reverse()}constructor(e,t,n){this.startOffset=e,this.endOffset=t,this.newLength=n}toString(){return`[${Te(this.startOffset)}...${Te(this.endOffset)}) -> ${Te(this.newLength)}`}}class De{constructor(e){this.nextEditIdx=0,this.deltaOldToNewLineCount=0,this.deltaOldToNewColumnCount=0,this.deltaLineIdxInOld=-1,this.edits=e.map((e=>Oe.from(e)))}getOffsetBeforeChange(e){return this.adjustNextEdit(e),this.translateCurToOld(e)}getDistanceToNextChange(e){this.adjustNextEdit(e);const t=this.edits[this.nextEditIdx],n=t?this.translateOldToCur(t.offsetObj):null;return null===n?null:xe(e,n)}translateOldToCur(e){return e.lineCount===this.deltaLineIdxInOld?ye(e.lineCount+this.deltaOldToNewLineCount,e.columnCount+this.deltaOldToNewColumnCount):ye(e.lineCount+this.deltaOldToNewLineCount,e.columnCount)}translateCurToOld(e){const t=Te(e);return t.lineCount-this.deltaOldToNewLineCount===this.deltaLineIdxInOld?ye(t.lineCount-this.deltaOldToNewLineCount,t.columnCount-this.deltaOldToNewColumnCount):ye(t.lineCount-this.deltaOldToNewLineCount,t.columnCount)}adjustNextEdit(e){for(;this.nextEditIdx<this.edits.length;){const t=this.edits[this.nextEditIdx],n=this.translateOldToCur(t.endOffsetAfterObj);if(!Ae(n,e))break;{this.nextEditIdx++;const e=Te(n),i=Te(this.translateOldToCur(t.endOffsetBeforeObj)),r=e.lineCount-i.lineCount;this.deltaOldToNewLineCount+=r;const s=this.deltaLineIdxInOld===t.endOffsetBeforeObj.lineCount?this.deltaOldToNewColumnCount:0,o=e.columnCount-i.columnCount;this.deltaOldToNewColumnCount=s+o,this.deltaLineIdxInOld=t.endOffsetBeforeObj.lineCount}}}}class Oe{static from(e){return new Oe(e.startOffset,e.endOffset,e.newLength)}constructor(e,t,n){this.endOffsetBeforeObj=Te(t),this.endOffsetAfterObj=Te(Ce(e,n)),this.offsetObj=Te(e)}}const Be=[];class ze{static{this.cache=new Array(129)}static create(e,t){if(e<=128&&0===t.length){let n=ze.cache[e];return n||(n=new ze(e,t),ze.cache[e]=n),n}return new ze(e,t)}static{this.empty=ze.create(0,Be)}static getEmpty(){return this.empty}constructor(e,t){this.items=e,this.additionalItems=t}add(e,t){const n=t.getKey(e);let i=n>>5;if(0===i){const e=1<<n|this.items;return e===this.items?this:ze.create(e,this.additionalItems)}i--;const r=this.additionalItems.slice(0);for(;r.length<i;)r.push(0);return r[i]|=1<<(31&n),ze.create(this.items,r)}merge(e){const t=this.items|e.items;if(this.additionalItems===Be&&e.additionalItems===Be)return t===this.items?this:t===e.items?e:ze.create(t,Be);const n=[];for(let i=0;i<Math.max(this.additionalItems.length,e.additionalItems.length);i++){const t=this.additionalItems[i]||0,r=e.additionalItems[i]||0;n.push(t|r)}return ze.create(t,n)}intersects(e){if(0!==(this.items&e.items))return!0;for(let t=0;t<Math.min(this.additionalItems.length,e.additionalItems.length);t++)if(0!==(this.additionalItems[t]&e.additionalItems[t]))return!0;return!1}}const Pe={getKey:e=>e};class Fe{constructor(){this.items=new Map}getKey(e){let t=this.items.get(e);return void 0===t&&(t=this.items.size,this.items.set(e,t)),t}}class We{get length(){return this._length}constructor(e){this._length=e}}class He extends We{static create(e,t,n){let i=e.length;return t&&(i=Ce(i,t.length)),n&&(i=Ce(i,n.length)),new He(i,e,t,n,t?t.missingOpeningBracketIds:ze.getEmpty())}get kind(){return 2}get listHeight(){return 0}get childrenLength(){return 3}getChild(e){switch(e){case 0:return this.openingBracket;case 1:return this.child;case 2:return this.closingBracket}throw new Error("Invalid child index")}get children(){const e=[];return e.push(this.openingBracket),this.child&&e.push(this.child),this.closingBracket&&e.push(this.closingBracket),e}constructor(e,t,n,i,r){super(e),this.openingBracket=t,this.child=n,this.closingBracket=i,this.missingOpeningBracketIds=r}canBeReused(e){return null!==this.closingBracket&&!e.intersects(this.missingOpeningBracketIds)}deepClone(){return new He(this.length,this.openingBracket.deepClone(),this.child&&this.child.deepClone(),this.closingBracket&&this.closingBracket.deepClone(),this.missingOpeningBracketIds)}computeMinIndentation(e,t){return this.child?this.child.computeMinIndentation(Ce(e,this.openingBracket.length),t):Number.MAX_SAFE_INTEGER}}class Ue extends We{static create23(e,t,n,i=!1){let r=e.length,s=e.missingOpeningBracketIds;if(e.listHeight!==t.listHeight)throw new Error("Invalid list heights");if(r=Ce(r,t.length),s=s.merge(t.missingOpeningBracketIds),n){if(e.listHeight!==n.listHeight)throw new Error("Invalid list heights");r=Ce(r,n.length),s=s.merge(n.missingOpeningBracketIds)}return i?new Ve(r,e.listHeight+1,e,t,n,s):new qe(r,e.listHeight+1,e,t,n,s)}static getEmpty(){return new Ge(0,0,[],ze.getEmpty())}get kind(){return 4}get missingOpeningBracketIds(){return this._missingOpeningBracketIds}constructor(e,t,n){super(e),this.listHeight=t,this._missingOpeningBracketIds=n,this.cachedMinIndentation=-1}throwIfImmutable(){}makeLastElementMutable(){this.throwIfImmutable();const e=this.childrenLength;if(0===e)return;const t=this.getChild(e-1),n=4===t.kind?t.toMutable():t;return t!==n&&this.setChild(e-1,n),n}makeFirstElementMutable(){this.throwIfImmutable();if(0===this.childrenLength)return;const e=this.getChild(0),t=4===e.kind?e.toMutable():e;return e!==t&&this.setChild(0,t),t}canBeReused(e){if(e.intersects(this.missingOpeningBracketIds))return!1;if(0===this.childrenLength)return!1;let t=this;for(;4===t.kind;){const e=t.childrenLength;if(0===e)throw new l.D7;t=t.getChild(e-1)}return t.canBeReused(e)}handleChildrenChanged(){this.throwIfImmutable();const e=this.childrenLength;let t=this.getChild(0).length,n=this.getChild(0).missingOpeningBracketIds;for(let i=1;i<e;i++){const e=this.getChild(i);t=Ce(t,e.length),n=n.merge(e.missingOpeningBracketIds)}this._length=t,this._missingOpeningBracketIds=n,this.cachedMinIndentation=-1}computeMinIndentation(e,t){if(-1!==this.cachedMinIndentation)return this.cachedMinIndentation;let n=Number.MAX_SAFE_INTEGER,i=e;for(let r=0;r<this.childrenLength;r++){const e=this.getChild(r);e&&(n=Math.min(n,e.computeMinIndentation(i,t)),i=Ce(i,e.length))}return this.cachedMinIndentation=n,n}}class qe extends Ue{get childrenLength(){return null!==this._item3?3:2}getChild(e){switch(e){case 0:return this._item1;case 1:return this._item2;case 2:return this._item3}throw new Error("Invalid child index")}setChild(e,t){switch(e){case 0:return void(this._item1=t);case 1:return void(this._item2=t);case 2:return void(this._item3=t)}throw new Error("Invalid child index")}get children(){return this._item3?[this._item1,this._item2,this._item3]:[this._item1,this._item2]}get item1(){return this._item1}get item2(){return this._item2}get item3(){return this._item3}constructor(e,t,n,i,r,s){super(e,t,s),this._item1=n,this._item2=i,this._item3=r}deepClone(){return new qe(this.length,this.listHeight,this._item1.deepClone(),this._item2.deepClone(),this._item3?this._item3.deepClone():null,this.missingOpeningBracketIds)}appendChildOfSameHeight(e){if(this._item3)throw new Error("Cannot append to a full (2,3) tree node");this.throwIfImmutable(),this._item3=e,this.handleChildrenChanged()}unappendChild(){if(!this._item3)throw new Error("Cannot remove from a non-full (2,3) tree node");this.throwIfImmutable();const e=this._item3;return this._item3=null,this.handleChildrenChanged(),e}prependChildOfSameHeight(e){if(this._item3)throw new Error("Cannot prepend to a full (2,3) tree node");this.throwIfImmutable(),this._item3=this._item2,this._item2=this._item1,this._item1=e,this.handleChildrenChanged()}unprependChild(){if(!this._item3)throw new Error("Cannot remove from a non-full (2,3) tree node");this.throwIfImmutable();const e=this._item1;return this._item1=this._item2,this._item2=this._item3,this._item3=null,this.handleChildrenChanged(),e}toMutable(){return this}}class Ve extends qe{toMutable(){return new qe(this.length,this.listHeight,this.item1,this.item2,this.item3,this.missingOpeningBracketIds)}throwIfImmutable(){throw new Error("this instance is immutable")}}class je extends Ue{get childrenLength(){return this._children.length}getChild(e){return this._children[e]}setChild(e,t){this._children[e]=t}get children(){return this._children}constructor(e,t,n,i){super(e,t,i),this._children=n}deepClone(){const e=new Array(this._children.length);for(let t=0;t<this._children.length;t++)e[t]=this._children[t].deepClone();return new je(this.length,this.listHeight,e,this.missingOpeningBracketIds)}appendChildOfSameHeight(e){this.throwIfImmutable(),this._children.push(e),this.handleChildrenChanged()}unappendChild(){this.throwIfImmutable();const e=this._children.pop();return this.handleChildrenChanged(),e}prependChildOfSameHeight(e){this.throwIfImmutable(),this._children.unshift(e),this.handleChildrenChanged()}unprependChild(){this.throwIfImmutable();const e=this._children.shift();return this.handleChildrenChanged(),e}toMutable(){return this}}class Ge extends je{toMutable(){return new je(this.length,this.listHeight,[...this.children],this.missingOpeningBracketIds)}throwIfImmutable(){throw new Error("this instance is immutable")}}const Ke=[];class $e extends We{get listHeight(){return 0}get childrenLength(){return 0}getChild(e){return null}get children(){return Ke}deepClone(){return this}}class Qe extends $e{get kind(){return 0}get missingOpeningBracketIds(){return ze.getEmpty()}canBeReused(e){return!0}computeMinIndentation(e,t){const n=Te(e),i=(0===n.columnCount?n.lineCount:n.lineCount+1)+1,r=(s=Ce(e,this.length),Math.floor(s/ke)+1);var s;let o=Number.MAX_SAFE_INTEGER;for(let a=i;a<=r;a++){const e=t.getLineFirstNonWhitespaceColumn(a),n=t.getLineContent(a);if(0===e)continue;const i=u.visibleColumnFromColumn(n,e,t.getOptions().tabSize);o=Math.min(o,i)}return o}}class Ye extends $e{static create(e,t,n){return new Ye(e,t,n)}get kind(){return 1}get missingOpeningBracketIds(){return ze.getEmpty()}constructor(e,t,n){super(e),this.bracketInfo=t,this.bracketIds=n}get text(){return this.bracketInfo.bracketText}get languageId(){return this.bracketInfo.languageId}canBeReused(e){return!1}computeMinIndentation(e,t){return Number.MAX_SAFE_INTEGER}}class Xe extends $e{get kind(){return 3}constructor(e,t){super(t),this.missingOpeningBracketIds=e}canBeReused(e){return!e.intersects(this.missingOpeningBracketIds)}computeMinIndentation(e,t){return Number.MAX_SAFE_INTEGER}}var Je=n(5982);class Ze{constructor(e,t,n,i,r){this.length=e,this.kind=t,this.bracketId=n,this.bracketIds=i,this.astNode=r}}class et{constructor(e,t){this.textModel=e,this.bracketTokens=t,this.reader=new tt(this.textModel,this.bracketTokens),this._offset=0,this.didPeek=!1,this.peeked=null,this.textBufferLineCount=e.getLineCount(),this.textBufferLastLineLength=e.getLineLength(this.textBufferLineCount)}get offset(){return this._offset}get length(){return ye(this.textBufferLineCount-1,this.textBufferLastLineLength)}skip(e){this.didPeek=!1,this._offset=Ce(this._offset,e);const t=Te(this._offset);this.reader.setPosition(t.lineCount,t.columnCount)}read(){let e;return this.peeked?(this.didPeek=!1,e=this.peeked):e=this.reader.read(),e&&(this._offset=Ce(this._offset,e.length)),e}peek(){return this.didPeek||(this.peeked=this.reader.read(),this.didPeek=!0),this.peeked}}class tt{constructor(e,t){this.textModel=e,this.bracketTokens=t,this.lineIdx=0,this.line=null,this.lineCharOffset=0,this.lineTokens=null,this.lineTokenOffset=0,this.peekedToken=null,this.textBufferLineCount=e.getLineCount(),this.textBufferLastLineLength=e.getLineLength(this.textBufferLineCount)}setPosition(e,t){e===this.lineIdx?(this.lineCharOffset=t,null!==this.line&&(this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset))):(this.lineIdx=e,this.lineCharOffset=t,this.line=null),this.peekedToken=null}read(){if(this.peekedToken){const e=this.peekedToken;return this.peekedToken=null,this.lineCharOffset+=e.length,e}if(this.lineIdx>this.textBufferLineCount-1||this.lineIdx===this.textBufferLineCount-1&&this.lineCharOffset>=this.textBufferLastLineLength)return null;null===this.line&&(this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.line=this.lineTokens.getLineContent(),this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset));const e=this.lineIdx,t=this.lineCharOffset;let n=0;for(;;){const i=this.lineTokens,r=i.getCount();let s=null;if(this.lineTokenOffset<r){const o=i.getMetadata(this.lineTokenOffset);for(;this.lineTokenOffset+1<r&&o===i.getMetadata(this.lineTokenOffset+1);)this.lineTokenOffset++;const a=0===Je.x.getTokenType(o),l=Je.x.containsBalancedBrackets(o),h=i.getEndOffset(this.lineTokenOffset);if(l&&a&&this.lineCharOffset<h){const e=i.getLanguageId(this.lineTokenOffset),t=this.line.substring(this.lineCharOffset,h),n=this.bracketTokens.getSingleLanguageBracketTokens(e),r=n.regExpGlobal;if(r){r.lastIndex=0;const e=r.exec(t);e&&(s=n.getToken(e[0]),s&&(this.lineCharOffset+=e.index))}}if(n+=h-this.lineCharOffset,s){if(e!==this.lineIdx||t!==this.lineCharOffset){this.peekedToken=s;break}return this.lineCharOffset+=s.length,s}this.lineTokenOffset++,this.lineCharOffset=h}else{if(this.lineIdx===this.textBufferLineCount-1)break;if(this.lineIdx++,this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.lineTokenOffset=0,this.line=this.lineTokens.getLineContent(),this.lineCharOffset=0,n+=33,n>1e3)break}if(n>1500)break}const i=(r=e,s=t,o=this.lineIdx,a=this.lineCharOffset,r!==o?ye(o-r,a):ye(0,a-s));var r,s,o,a;return new Ze(i,0,-1,ze.getEmpty(),new Qe(i))}}class nt{constructor(e,t){this.text=e,this._offset=0,this.idx=0;const n=t.getRegExpStr(),i=n?new RegExp(n+"|\n","gi"):null,r=[];let s,o=0,a=0,l=0,h=0;const c=[];for(let g=0;g<60;g++)c.push(new Ze(ye(0,g),0,-1,ze.getEmpty(),new Qe(ye(0,g))));const d=[];for(let g=0;g<60;g++)d.push(new Ze(ye(1,g),0,-1,ze.getEmpty(),new Qe(ye(1,g))));if(i)for(i.lastIndex=0;null!==(s=i.exec(e));){const e=s.index,n=s[0];if("\n"===n)o++,a=e+1;else{if(l!==e){let t;if(h===o){const n=e-l;if(n<c.length)t=c[n];else{const e=ye(0,n);t=new Ze(e,0,-1,ze.getEmpty(),new Qe(e))}}else{const n=o-h,i=e-a;if(1===n&&i<d.length)t=d[i];else{const e=ye(n,i);t=new Ze(e,0,-1,ze.getEmpty(),new Qe(e))}}r.push(t)}r.push(t.getToken(n)),l=e+n.length,h=o}}const u=e.length;if(l!==u){const e=h===o?ye(0,u-l):ye(o-h,u-a);r.push(new Ze(e,0,-1,ze.getEmpty(),new Qe(e)))}this.length=ye(o,u-a),this.tokens=r}get offset(){return this._offset}read(){return this.tokens[this.idx++]||null}peek(){return this.tokens[this.idx]||null}skip(e){throw new l.EM}}class it{static createFromLanguage(e,t){function n(e){return t.getKey(`${e.languageId}:::${e.bracketText}`)}const i=new Map;for(const r of e.bracketsNew.openingBrackets){const e=ye(0,r.bracketText.length),t=n(r),s=ze.getEmpty().add(t,Pe);i.set(r.bracketText,new Ze(e,1,t,s,Ye.create(e,r,s)))}for(const r of e.bracketsNew.closingBrackets){const e=ye(0,r.bracketText.length);let t=ze.getEmpty();const s=r.getOpeningBrackets();for(const i of s)t=t.add(n(i),Pe);i.set(r.bracketText,new Ze(e,2,n(s[0]),t,Ye.create(e,r,t)))}return new it(i)}constructor(e){this.map=e,this.hasRegExp=!1,this._regExpGlobal=null}getRegExpStr(){if(this.isEmpty)return null;{const e=[...this.map.keys()];return e.sort(),e.reverse(),e.map((e=>function(e){let t=(0,h.bm)(e);/^[\w ]+/.test(e)&&(t=`\\b${t}`);/[\w ]+$/.test(e)&&(t=`${t}\\b`);return t}(e))).join("|")}}get regExpGlobal(){if(!this.hasRegExp){const e=this.getRegExpStr();this._regExpGlobal=e?new RegExp(e,"gi"):null,this.hasRegExp=!0}return this._regExpGlobal}getToken(e){return this.map.get(e.toLowerCase())}findClosingTokenText(e){for(const[t,n]of this.map)if(2===n.kind&&n.bracketIds.intersects(e))return t}get isEmpty(){return 0===this.map.size}}class rt{constructor(e,t){this.denseKeyProvider=e,this.getLanguageConfiguration=t,this.languageIdToBracketTokens=new Map}didLanguageChange(e){return this.languageIdToBracketTokens.has(e)}getSingleLanguageBracketTokens(e){let t=this.languageIdToBracketTokens.get(e);return t||(t=it.createFromLanguage(this.getLanguageConfiguration(e),this.denseKeyProvider),this.languageIdToBracketTokens.set(e,t)),t}}function st(e,t=!1){if(0===e.length)return null;if(1===e.length)return e[0];let n=e.length;for(;n>3;){const i=n>>1;for(let r=0;r<i;r++){const i=r<<1;e[r]=Ue.create23(e[i],e[i+1],i+3===n?e[i+2]:null,t)}n=i}return Ue.create23(e[0],e[1],n>=3?e[2]:null,t)}function ot(e,t){return Math.abs(e.listHeight-t.listHeight)}function at(e,t){return e.listHeight===t.listHeight?Ue.create23(e,t,null,!1):e.listHeight>t.listHeight?function(e,t){let n=e=e.toMutable();const i=[];let r;for(;;){if(t.listHeight===n.listHeight){r=t;break}if(4!==n.kind)throw new Error("unexpected");i.push(n),n=n.makeLastElementMutable()}for(let s=i.length-1;s>=0;s--){const e=i[s];r?e.childrenLength>=3?r=Ue.create23(e.unappendChild(),r,null,!1):(e.appendChildOfSameHeight(r),r=void 0):e.handleChildrenChanged()}return r?Ue.create23(e,r,null,!1):e}(e,t):function(e,t){let n=e=e.toMutable();const i=[];for(;t.listHeight!==n.listHeight;){if(4!==n.kind)throw new Error("unexpected");i.push(n),n=n.makeFirstElementMutable()}let r=t;for(let s=i.length-1;s>=0;s--){const e=i[s];r?e.childrenLength>=3?r=Ue.create23(r,e.unprependChild(),null,!1):(e.prependChildOfSameHeight(r),r=void 0):e.handleChildrenChanged()}return r?Ue.create23(r,e,null,!1):e}(t,e)}class lt{constructor(e){this.lastOffset=0,this.nextNodes=[e],this.offsets=[0],this.idxs=[]}readLongestNodeAt(e,t){if(Ee(e,this.lastOffset))throw new Error("Invalid offset");for(this.lastOffset=e;;){const n=ct(this.nextNodes);if(!n)return;const i=ct(this.offsets);if(Ee(e,i))return;if(Ee(i,e))if(Ce(i,n.length)<=e)this.nextNodeAfterCurrent();else{const e=ht(n);-1!==e?(this.nextNodes.push(n.getChild(e)),this.offsets.push(i),this.idxs.push(e)):this.nextNodeAfterCurrent()}else{if(t(n))return this.nextNodeAfterCurrent(),n;{const e=ht(n);if(-1===e)return void this.nextNodeAfterCurrent();this.nextNodes.push(n.getChild(e)),this.offsets.push(i),this.idxs.push(e)}}}}nextNodeAfterCurrent(){for(;;){const e=ct(this.offsets),t=ct(this.nextNodes);if(this.nextNodes.pop(),this.offsets.pop(),0===this.idxs.length)break;const n=ct(this.nextNodes),i=ht(n,this.idxs[this.idxs.length-1]);if(-1!==i){this.nextNodes.push(n.getChild(i)),this.offsets.push(Ce(e,t.length)),this.idxs[this.idxs.length-1]=i;break}this.idxs.pop()}}}function ht(e,t=-1){for(;;){if(++t>=e.childrenLength)return-1;if(e.getChild(t))return t}}function ct(e){return e.length>0?e[e.length-1]:void 0}function dt(e,t,n,i){return new ut(e,t,n,i).parseDocument()}class ut{constructor(e,t,n,i){if(this.tokenizer=e,this.createImmutableLists=i,this._itemsConstructed=0,this._itemsFromCache=0,n&&i)throw new Error("Not supported");this.oldNodeReader=n?new lt(n):void 0,this.positionMapper=new De(t)}parseDocument(){this._itemsConstructed=0,this._itemsFromCache=0;let e=this.parseList(ze.getEmpty(),0);return e||(e=Ue.getEmpty()),e}parseList(e,t){const n=[];for(;;){let i=this.tryReadChildFromCache(e);if(!i){const n=this.tokenizer.peek();if(!n||2===n.kind&&n.bracketIds.intersects(e))break;i=this.parseChild(e,t+1)}4===i.kind&&0===i.childrenLength||n.push(i)}const i=this.oldNodeReader?function(e){if(0===e.length)return null;if(1===e.length)return e[0];let t=0;function n(){if(t>=e.length)return null;const n=t,i=e[n].listHeight;for(t++;t<e.length&&e[t].listHeight===i;)t++;return t-n>=2?st(0===n&&t===e.length?e:e.slice(n,t),!1):e[n]}let i=n(),r=n();if(!r)return i;for(let s=n();s;s=n())ot(i,r)<=ot(r,s)?(i=at(i,r),r=s):r=at(r,s);return at(i,r)}(n):st(n,this.createImmutableLists);return i}tryReadChildFromCache(e){if(this.oldNodeReader){const t=this.positionMapper.getDistanceToNextChange(this.tokenizer.offset);if(null===t||!we(t)){const n=this.oldNodeReader.readLongestNodeAt(this.positionMapper.getOffsetBeforeChange(this.tokenizer.offset),(n=>{if(null!==t&&!Ee(n.length,t))return!1;return n.canBeReused(e)}));if(n)return this._itemsFromCache++,this.tokenizer.skip(n.length),n}}}parseChild(e,t){this._itemsConstructed++;const n=this.tokenizer.read();switch(n.kind){case 2:return new Xe(n.bracketIds,n.length);case 0:return n.astNode;case 1:{if(t>300)return new Qe(n.length);const i=e.merge(n.bracketIds),r=this.parseList(i,t+1),s=this.tokenizer.peek();return s&&2===s.kind&&(s.bracketId===n.bracketId||s.bracketIds.intersects(n.bracketIds))?(this.tokenizer.read(),He.create(n.astNode,r,s.astNode)):He.create(n.astNode,r,null)}default:throw new Error("unexpected")}}}function gt(e,t){if(0===e.length)return t;if(0===t.length)return e;const n=new o.j3(mt(e)),i=mt(t);i.push({modified:!1,lengthBefore:void 0,lengthAfter:void 0});let r=n.dequeue();function s(e){if(void 0===e){const e=n.takeWhile((e=>!0))||[];return r&&e.unshift(r),e}const t=[];for(;r&&!we(e);){const[i,s]=r.splitAt(e);t.push(i),e=xe(i.lengthAfter,e),r=s??n.dequeue()}return we(e)||t.push(new ft(!1,e,e)),t}const a=[];function l(e,t,n){if(a.length>0&&Le(a[a.length-1].endOffset,e)){const e=a[a.length-1];a[a.length-1]=new Re(e.startOffset,t,Ce(e.newLength,n))}else a.push({startOffset:e,endOffset:t,newLength:n})}let h=0;for(const o of i){const e=s(o.lengthBefore);if(o.modified){const t=Ce(h,Se(e,(e=>e.lengthBefore)));l(h,t,o.lengthAfter),h=t}else for(const t of e){const e=h;h=Ce(h,t.lengthBefore),t.modified&&l(e,h,t.lengthAfter)}}return a}class ft{constructor(e,t,n){this.modified=e,this.lengthBefore=t,this.lengthAfter=n}splitAt(e){const t=xe(e,this.lengthAfter);return Le(t,0)?[this,void 0]:this.modified?[new ft(this.modified,this.lengthBefore,e),new ft(this.modified,0,t)]:[new ft(this.modified,e,e),new ft(this.modified,t,t)]}toString(){return`${this.modified?"M":"U"}:${Te(this.lengthBefore)} -> ${Te(this.lengthAfter)}`}}function mt(e){const t=[];let n=0;for(const i of e){const e=xe(n,i.startOffset);we(e)||t.push(new ft(!1,e,e));const r=xe(i.startOffset,i.endOffset);t.push(new ft(!0,r,i.newLength)),n=i.endOffset}return t}class pt extends r.jG{didLanguageChange(e){return this.brackets.didLanguageChange(e)}constructor(e,t){if(super(),this.textModel=e,this.getLanguageConfiguration=t,this.didChangeEmitter=new i.vl,this.denseKeyProvider=new Fe,this.brackets=new rt(this.denseKeyProvider,this.getLanguageConfiguration),this.onDidChange=this.didChangeEmitter.event,this.queuedTextEditsForInitialAstWithoutTokens=[],this.queuedTextEdits=[],e.tokenization.hasTokens)2===e.tokenization.backgroundTokenizationState?(this.initialAstWithoutTokens=void 0,this.astWithTokens=this.parseDocumentFromTextBuffer([],void 0,!1)):(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer([],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens);else{const e=this.brackets.getSingleLanguageBracketTokens(this.textModel.getLanguageId()),t=new nt(this.textModel.getValue(),e);this.initialAstWithoutTokens=dt(t,[],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens}}handleDidChangeBackgroundTokenizationState(){if(2===this.textModel.tokenization.backgroundTokenizationState){const e=void 0===this.initialAstWithoutTokens;this.initialAstWithoutTokens=void 0,e||this.didChangeEmitter.fire()}}handleDidChangeTokens({ranges:e}){const t=e.map((e=>new Re(ye(e.fromLineNumber-1,0),ye(e.toLineNumber,0),ye(e.toLineNumber-e.fromLineNumber+1,0))));this.handleEdits(t,!0),this.initialAstWithoutTokens||this.didChangeEmitter.fire()}handleContentChanged(e){const t=Re.fromModelContentChanges(e.changes);this.handleEdits(t,!1)}handleEdits(e,t){const n=gt(this.queuedTextEdits,e);this.queuedTextEdits=n,this.initialAstWithoutTokens&&!t&&(this.queuedTextEditsForInitialAstWithoutTokens=gt(this.queuedTextEditsForInitialAstWithoutTokens,e))}flushQueue(){this.queuedTextEdits.length>0&&(this.astWithTokens=this.parseDocumentFromTextBuffer(this.queuedTextEdits,this.astWithTokens,!1),this.queuedTextEdits=[]),this.queuedTextEditsForInitialAstWithoutTokens.length>0&&(this.initialAstWithoutTokens&&(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer(this.queuedTextEditsForInitialAstWithoutTokens,this.initialAstWithoutTokens,!1)),this.queuedTextEditsForInitialAstWithoutTokens=[])}parseDocumentFromTextBuffer(e,t,n){const i=t;return dt(new et(this.textModel,this.brackets),e,i,n)}getBracketsInRange(e,t){this.flushQueue();const n=ye(e.startLineNumber-1,e.startColumn-1),i=ye(e.endLineNumber-1,e.endColumn-1);return new o.c1((e=>{const r=this.initialAstWithoutTokens||this.astWithTokens;vt(r,0,r.length,n,i,e,0,0,new Map,t)}))}getBracketPairsInRange(e,t){this.flushQueue();const n=Me(e.getStartPosition()),i=Me(e.getEndPosition());return new o.c1((e=>{const r=this.initialAstWithoutTokens||this.astWithTokens,s=new wt(e,t,this.textModel);kt(r,0,r.length,n,i,s,0,new Map)}))}getFirstBracketAfter(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return bt(t,0,t.length,Me(e))}getFirstBracketBefore(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return _t(t,0,t.length,Me(e))}}function _t(e,t,n,i){if(4===e.kind||2===e.kind){const r=[];for(const i of e.children)n=Ce(t,i.length),r.push({nodeOffsetStart:t,nodeOffsetEnd:n}),t=n;for(let t=r.length-1;t>=0;t--){const{nodeOffsetStart:n,nodeOffsetEnd:s}=r[t];if(Ee(n,i)){const r=_t(e.children[t],n,s,i);if(r)return r}}return null}if(3===e.kind)return null;if(1===e.kind){const i=Ne(t,n);return{bracketInfo:e.bracketInfo,range:i}}return null}function bt(e,t,n,i){if(4===e.kind||2===e.kind){for(const r of e.children){if(Ee(i,n=Ce(t,r.length))){const e=bt(r,t,n,i);if(e)return e}t=n}return null}if(3===e.kind)return null;if(1===e.kind){const i=Ne(t,n);return{bracketInfo:e.bracketInfo,range:i}}return null}function vt(e,t,n,i,r,s,o,a,l,h,c=!1){if(o>200)return!0;e:for(;;)switch(e.kind){case 4:{const a=e.childrenLength;for(let c=0;c<a;c++){const a=e.getChild(c);if(a){if(n=Ce(t,a.length),Ae(t,r)&&Ie(n,i)){if(Ie(n,r)){e=a;continue e}if(!vt(a,t,n,i,r,s,o,0,l,h))return!1}t=n}}return!0}case 2:{const c=!h||!e.closingBracket||e.closingBracket.bracketInfo.closesColorized(e.openingBracket.bracketInfo);let d=0;if(l){let t=l.get(e.openingBracket.text);void 0===t&&(t=0),d=t,c&&(t++,l.set(e.openingBracket.text,t))}const u=e.childrenLength;for(let g=0;g<u;g++){const u=e.getChild(g);if(u){if(n=Ce(t,u.length),Ae(t,r)&&Ie(n,i)){if(Ie(n,r)&&1!==u.kind){e=u,c?(o++,a=d+1):a=d;continue e}if(c||1!==u.kind||!e.closingBracket){if(!vt(u,t,n,i,r,s,c?o+1:o,c?d+1:d,l,h,!e.closingBracket))return!1}}t=n}}return l?.set(e.openingBracket.text,d),!0}case 3:{const e=Ne(t,n);return s(new pe(e,o-1,0,!0))}case 1:{const e=Ne(t,n);return s(new pe(e,o-1,a-1,c))}case 0:return!0}}class wt{constructor(e,t,n){this.push=e,this.includeMinIndentation=t,this.textModel=n}}function kt(e,t,n,i,r,s,o,a){if(o>200)return!0;let l=!0;if(2===e.kind){let h=0;if(a){let t=a.get(e.openingBracket.text);void 0===t&&(t=0),h=t,t++,a.set(e.openingBracket.text,t)}const c=Ce(t,e.openingBracket.length);let d=-1;if(s.includeMinIndentation&&(d=e.computeMinIndentation(t,s.textModel)),l=s.push(new be(Ne(t,n),Ne(t,c),e.closingBracket?Ne(Ce(c,e.child?.length||0),n):void 0,o,h,e,d)),t=c,l&&e.child){const h=e.child;if(n=Ce(t,h.length),Ae(t,r)&&Ie(n,i)&&(l=kt(h,t,n,i,r,s,o+1,a),!l))return!1}a?.set(e.openingBracket.text,h)}else{let n=t;for(const t of e.children){const e=n;if(n=Ce(n,t.length),Ae(e,r)&&Ae(i,n)&&(l=kt(t,e,n,i,r,s,o,a),!l))return!1}}return l}class yt extends r.jG{get canBuildAST(){return this.textModel.getValueLength()<=5e6}constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t,this.bracketPairsTree=this._register(new r.HE),this.onDidChangeEmitter=new i.vl,this.onDidChange=this.onDidChangeEmitter.event,this.bracketsRequested=!1}handleLanguageConfigurationServiceChange(e){e.languageId&&!this.bracketPairsTree.value?.object.didLanguageChange(e.languageId)||(this.bracketPairsTree.clear(),this.updateBracketPairsTree())}handleDidChangeOptions(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeLanguage(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeContent(e){this.bracketPairsTree.value?.object.handleContentChanged(e)}handleDidChangeBackgroundTokenizationState(){this.bracketPairsTree.value?.object.handleDidChangeBackgroundTokenizationState()}handleDidChangeTokens(e){this.bracketPairsTree.value?.object.handleDidChangeTokens(e)}updateBracketPairsTree(){if(this.bracketsRequested&&this.canBuildAST){if(!this.bracketPairsTree.value){const n=new r.Cm;this.bracketPairsTree.value=(e=n.add(new pt(this.textModel,(e=>this.languageConfigurationService.getLanguageConfiguration(e)))),t=n,{object:e,dispose:()=>t?.dispose()}),n.add(this.bracketPairsTree.value.object.onDidChange((e=>this.onDidChangeEmitter.fire(e)))),this.onDidChangeEmitter.fire()}}else this.bracketPairsTree.value&&(this.bracketPairsTree.clear(),this.onDidChangeEmitter.fire());var e,t}getBracketPairsInRange(e){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketPairsInRange(e,!1)||o.c1.empty}getBracketPairsInRangeWithMinIndentation(e){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketPairsInRange(e,!0)||o.c1.empty}getBracketsInRange(e,t=!1){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketsInRange(e,t)||o.c1.empty}findMatchingBracketUp(e,t,n){const i=this.textModel.validatePosition(t),r=this.textModel.getLanguageIdAtPosition(i.lineNumber,i.column);if(this.canBuildAST){const n=this.languageConfigurationService.getLanguageConfiguration(r).bracketsNew.getClosingBracketInfo(e);if(!n)return null;const i=this.getBracketPairsInRange(m.Q.fromPositions(t,t)).findLast((e=>n.closes(e.openingBracketInfo)));return i?i.openingBracketRange:null}{const t=e.toLowerCase(),s=this.languageConfigurationService.getLanguageConfiguration(r).brackets;if(!s)return null;const o=s.textIsBracket[t];return o?St(this._findMatchingBracketUp(o,i,Tt(n))):null}}matchBracket(e,t){if(this.canBuildAST){const t=this.getBracketPairsInRange(m.Q.fromPositions(e,e)).filter((t=>void 0!==t.closingBracketRange&&(t.openingBracketRange.containsPosition(e)||t.closingBracketRange.containsPosition(e)))).findLastMaxBy((0,o.VE)((t=>t.openingBracketRange.containsPosition(e)?t.openingBracketRange:t.closingBracketRange),m.Q.compareRangesUsingStarts));return t?[t.openingBracketRange,t.closingBracketRange]:null}{const n=Tt(t);return this._matchBracket(this.textModel.validatePosition(e),n)}}_establishBracketSearchOffsets(e,t,n,i){const r=t.getCount(),s=t.getLanguageId(i);let o=Math.max(0,e.column-1-n.maxBracketLength);for(let l=i-1;l>=0;l--){const e=t.getEndOffset(l);if(e<=o)break;if(S(t.getStandardTokenType(l))||t.getLanguageId(l)!==s){o=e;break}}let a=Math.min(t.getLineContent().length,e.column-1+n.maxBracketLength);for(let l=i+1;l<r;l++){const e=t.getStartOffset(l);if(e>=a)break;if(S(t.getStandardTokenType(l))||t.getLanguageId(l)!==s){a=e;break}}return{searchStartOffset:o,searchEndOffset:a}}_matchBracket(e,t){const n=e.lineNumber,i=this.textModel.tokenization.getLineTokens(n),r=this.textModel.getLineContent(n),s=i.findTokenIndexAtOffset(e.column-1);if(s<0)return null;const o=this.languageConfigurationService.getLanguageConfiguration(i.getLanguageId(s)).brackets;if(o&&!S(i.getStandardTokenType(s))){let{searchStartOffset:a,searchEndOffset:l}=this._establishBracketSearchOffsets(e,i,o,s),h=null;for(;;){const i=H.findNextBracketInRange(o.forwardRegex,n,r,a,l);if(!i)break;if(i.startColumn<=e.column&&e.column<=i.endColumn){const e=r.substring(i.startColumn-1,i.endColumn-1).toLowerCase(),n=this._matchFoundBracket(i,o.textIsBracket[e],o.textIsOpenBracket[e],t);if(n){if(n instanceof Ct)return null;h=n}}a=i.endColumn-1}if(h)return h}if(s>0&&i.getStartOffset(s)===e.column-1){const o=s-1,a=this.languageConfigurationService.getLanguageConfiguration(i.getLanguageId(o)).brackets;if(a&&!S(i.getStandardTokenType(o))){const{searchStartOffset:s,searchEndOffset:l}=this._establishBracketSearchOffsets(e,i,a,o),h=H.findPrevBracketInRange(a.reversedRegex,n,r,s,l);if(h&&h.startColumn<=e.column&&e.column<=h.endColumn){const e=r.substring(h.startColumn-1,h.endColumn-1).toLowerCase(),n=this._matchFoundBracket(h,a.textIsBracket[e],a.textIsOpenBracket[e],t);if(n)return n instanceof Ct?null:n}}}return null}_matchFoundBracket(e,t,n,i){if(!t)return null;const r=n?this._findMatchingBracketDown(t,e.getEndPosition(),i):this._findMatchingBracketUp(t,e.getStartPosition(),i);return r?r instanceof Ct?r:[e,r]:null}_findMatchingBracketUp(e,t,n){const i=e.languageId,r=e.reversedRegex;let s=-1,o=0;const a=(t,i,a,l)=>{for(;;){if(n&&++o%100===0&&!n())return Ct.INSTANCE;const h=H.findPrevBracketInRange(r,t,i,a,l);if(!h)break;const c=i.substring(h.startColumn-1,h.endColumn-1).toLowerCase();if(e.isOpen(c)?s++:e.isClose(c)&&s--,0===s)return h;l=h.startColumn-1}return null};for(let l=t.lineNumber;l>=1;l--){const e=this.textModel.tokenization.getLineTokens(l),n=e.getCount(),r=this.textModel.getLineContent(l);let s=n-1,o=r.length,h=r.length;l===t.lineNumber&&(s=e.findTokenIndexAtOffset(t.column-1),o=t.column-1,h=t.column-1);let c=!0;for(;s>=0;s--){const t=e.getLanguageId(s)===i&&!S(e.getStandardTokenType(s));if(t)c?o=e.getStartOffset(s):(o=e.getStartOffset(s),h=e.getEndOffset(s));else if(c&&o!==h){const e=a(l,r,o,h);if(e)return e}c=t}if(c&&o!==h){const e=a(l,r,o,h);if(e)return e}}return null}_findMatchingBracketDown(e,t,n){const i=e.languageId,r=e.forwardRegex;let s=1,o=0;const a=(t,i,a,l)=>{for(;;){if(n&&++o%100===0&&!n())return Ct.INSTANCE;const h=H.findNextBracketInRange(r,t,i,a,l);if(!h)break;const c=i.substring(h.startColumn-1,h.endColumn-1).toLowerCase();if(e.isOpen(c)?s++:e.isClose(c)&&s--,0===s)return h;a=h.endColumn-1}return null},l=this.textModel.getLineCount();for(let h=t.lineNumber;h<=l;h++){const e=this.textModel.tokenization.getLineTokens(h),n=e.getCount(),r=this.textModel.getLineContent(h);let s=0,o=0,l=0;h===t.lineNumber&&(s=e.findTokenIndexAtOffset(t.column-1),o=t.column-1,l=t.column-1);let c=!0;for(;s<n;s++){const t=e.getLanguageId(s)===i&&!S(e.getStandardTokenType(s));if(t)c||(o=e.getStartOffset(s)),l=e.getEndOffset(s);else if(c&&o!==l){const e=a(h,r,o,l);if(e)return e}c=t}if(c&&o!==l){const e=a(h,r,o,l);if(e)return e}}return null}findPrevBracket(e){const t=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getFirstBracketBefore(t)||null;let n=null,i=null,r=null;for(let s=t.lineNumber;s>=1;s--){const e=this.textModel.tokenization.getLineTokens(s),o=e.getCount(),a=this.textModel.getLineContent(s);let l=o-1,h=a.length,c=a.length;if(s===t.lineNumber){l=e.findTokenIndexAtOffset(t.column-1),h=t.column-1,c=t.column-1;const s=e.getLanguageId(l);n!==s&&(n=s,i=this.languageConfigurationService.getLanguageConfiguration(n).brackets,r=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew)}let d=!0;for(;l>=0;l--){const t=e.getLanguageId(l);if(n!==t){if(i&&r&&d&&h!==c){const e=H.findPrevBracketInRange(i.reversedRegex,s,a,h,c);if(e)return this._toFoundBracket(r,e);d=!1}n=t,i=this.languageConfigurationService.getLanguageConfiguration(n).brackets,r=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew}const o=!!i&&!S(e.getStandardTokenType(l));if(o)d?h=e.getStartOffset(l):(h=e.getStartOffset(l),c=e.getEndOffset(l));else if(r&&i&&d&&h!==c){const e=H.findPrevBracketInRange(i.reversedRegex,s,a,h,c);if(e)return this._toFoundBracket(r,e)}d=o}if(r&&i&&d&&h!==c){const e=H.findPrevBracketInRange(i.reversedRegex,s,a,h,c);if(e)return this._toFoundBracket(r,e)}}return null}findNextBracket(e){const t=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getFirstBracketAfter(t)||null;const n=this.textModel.getLineCount();let i=null,r=null,s=null;for(let o=t.lineNumber;o<=n;o++){const e=this.textModel.tokenization.getLineTokens(o),n=e.getCount(),a=this.textModel.getLineContent(o);let l=0,h=0,c=0;if(o===t.lineNumber){l=e.findTokenIndexAtOffset(t.column-1),h=t.column-1,c=t.column-1;const n=e.getLanguageId(l);i!==n&&(i=n,r=this.languageConfigurationService.getLanguageConfiguration(i).brackets,s=this.languageConfigurationService.getLanguageConfiguration(i).bracketsNew)}let d=!0;for(;l<n;l++){const t=e.getLanguageId(l);if(i!==t){if(s&&r&&d&&h!==c){const e=H.findNextBracketInRange(r.forwardRegex,o,a,h,c);if(e)return this._toFoundBracket(s,e);d=!1}i=t,r=this.languageConfigurationService.getLanguageConfiguration(i).brackets,s=this.languageConfigurationService.getLanguageConfiguration(i).bracketsNew}const n=!!r&&!S(e.getStandardTokenType(l));if(n)d||(h=e.getStartOffset(l)),c=e.getEndOffset(l);else if(s&&r&&d&&h!==c){const e=H.findNextBracketInRange(r.forwardRegex,o,a,h,c);if(e)return this._toFoundBracket(s,e)}d=n}if(s&&r&&d&&h!==c){const e=H.findNextBracketInRange(r.forwardRegex,o,a,h,c);if(e)return this._toFoundBracket(s,e)}}return null}findEnclosingBrackets(e,t){const n=this.textModel.validatePosition(e);if(this.canBuildAST){const e=m.Q.fromPositions(n),t=this.getBracketPairsInRange(m.Q.fromPositions(n,n)).findLast((t=>void 0!==t.closingBracketRange&&t.range.strictContainsRange(e)));return t?[t.openingBracketRange,t.closingBracketRange]:null}const i=Tt(t),r=this.textModel.getLineCount(),s=new Map;let o=[];const a=(e,t)=>{if(!s.has(e)){const n=[];for(let e=0,i=t?t.brackets.length:0;e<i;e++)n[e]=0;s.set(e,n)}o=s.get(e)};let l=0;const h=(e,t,n,r,s)=>{for(;;){if(i&&++l%100===0&&!i())return Ct.INSTANCE;const a=H.findNextBracketInRange(e.forwardRegex,t,n,r,s);if(!a)break;const h=n.substring(a.startColumn-1,a.endColumn-1).toLowerCase(),c=e.textIsBracket[h];if(c&&(c.isOpen(h)?o[c.index]++:c.isClose(h)&&o[c.index]--,-1===o[c.index]))return this._matchFoundBracket(a,c,!1,i);r=a.endColumn-1}return null};let c=null,d=null;for(let u=n.lineNumber;u<=r;u++){const e=this.textModel.tokenization.getLineTokens(u),t=e.getCount(),i=this.textModel.getLineContent(u);let r=0,s=0,o=0;if(u===n.lineNumber){r=e.findTokenIndexAtOffset(n.column-1),s=n.column-1,o=n.column-1;const t=e.getLanguageId(r);c!==t&&(c=t,d=this.languageConfigurationService.getLanguageConfiguration(c).brackets,a(c,d))}let l=!0;for(;r<t;r++){const t=e.getLanguageId(r);if(c!==t){if(d&&l&&s!==o){const e=h(d,u,i,s,o);if(e)return St(e);l=!1}c=t,d=this.languageConfigurationService.getLanguageConfiguration(c).brackets,a(c,d)}const n=!!d&&!S(e.getStandardTokenType(r));if(n)l||(s=e.getStartOffset(r)),o=e.getEndOffset(r);else if(d&&l&&s!==o){const e=h(d,u,i,s,o);if(e)return St(e)}l=n}if(d&&l&&s!==o){const e=h(d,u,i,s,o);if(e)return St(e)}}return null}_toFoundBracket(e,t){if(!t)return null;let n=this.textModel.getValueInRange(t);n=n.toLowerCase();const i=e.getBracketInfo(n);return i?{range:t,bracketInfo:i}:null}}function Tt(e){if("undefined"===typeof e)return()=>!0;{const t=Date.now();return()=>Date.now()-t<=e}}class Ct{static{this.INSTANCE=new Ct}constructor(){this._searchCanceledBrand=void 0}}function St(e){return e instanceof Ct?null:e}var Lt=n(7119),xt=n(5724);class Et extends r.jG{constructor(e){super(),this.textModel=e,this.colorProvider=new At,this.onDidChangeEmitter=new i.vl,this.onDidChange=this.onDidChangeEmitter.event,this.colorizationOptions=e.getOptions().bracketPairColorizationOptions,this._register(e.bracketPairs.onDidChange((e=>{this.onDidChangeEmitter.fire()})))}handleDidChangeOptions(e){this.colorizationOptions=this.textModel.getOptions().bracketPairColorizationOptions}getDecorationsInRange(e,t,n,i){if(i)return[];if(void 0===t)return[];if(!this.colorizationOptions.enabled)return[];return this.textModel.bracketPairs.getBracketsInRange(e,!0).map((e=>({id:`bracket${e.range.toString()}-${e.nestingLevel}`,options:{description:"BracketPairColorization",inlineClassName:this.colorProvider.getInlineClassName(e,this.colorizationOptions.independentColorPoolPerBracketType)},ownerId:0,range:e.range}))).toArray()}getAllDecorations(e,t){return void 0===e?[]:this.colorizationOptions.enabled?this.getDecorationsInRange(new m.Q(1,1,this.textModel.getLineCount(),1),e,t):[]}}class At{constructor(){this.unexpectedClosingBracketClassName="unexpected-closing-bracket"}getInlineClassName(e,t){return e.isInvalid?this.unexpectedClosingBracketClassName:this.getInlineClassNameOfLevel(t?e.nestingLevelOfEqualBracketType:e.nestingLevel)}getInlineClassNameOfLevel(e){return"bracket-highlighting-"+e%30}}(0,xt.zy)(((e,t)=>{const n=[Lt.sN,Lt.lQ,Lt.ss,Lt.l5,Lt.sH,Lt.zp],i=new At;t.addRule(`.monaco-editor .${i.unexpectedClosingBracketClassName} { color: ${e.getColor(Lt.s7)}; }`);const r=n.map((t=>e.getColor(t))).filter((e=>!!e)).filter((e=>!e.isTransparent()));for(let s=0;s<30;s++){const e=r[s%r.length];t.addRule(`.monaco-editor .${i.getInlineClassNameOfLevel(s)} { color: ${e}; }`)}}));var It=n(8209);function Mt(e){return e.replace(/\n/g,"\\n").replace(/\r/g,"\\r")}class Nt{get oldLength(){return this.oldText.length}get oldEnd(){return this.oldPosition+this.oldText.length}get newLength(){return this.newText.length}get newEnd(){return this.newPosition+this.newText.length}constructor(e,t,n,i){this.oldPosition=e,this.oldText=t,this.newPosition=n,this.newText=i}toString(){return 0===this.oldText.length?`(insert@${this.oldPosition} "${Mt(this.newText)}")`:0===this.newText.length?`(delete@${this.oldPosition} "${Mt(this.oldText)}")`:`(replace@${this.oldPosition} "${Mt(this.oldText)}" with "${Mt(this.newText)}")`}static _writeStringSize(e){return 4+2*e.length}static _writeString(e,t,n){const i=t.length;L.Sw(e,i,n),n+=4;for(let r=0;r<i;r++)L.gN(e,t.charCodeAt(r),n),n+=2;return n}static _readString(e,t){const n=L.bb(e,t);return N(e,t+=4,n)}writeSize(){return 8+Nt._writeStringSize(this.oldText)+Nt._writeStringSize(this.newText)}write(e,t){return L.Sw(e,this.oldPosition,t),t+=4,L.Sw(e,this.newPosition,t),t+=4,t=Nt._writeString(e,this.oldText,t),t=Nt._writeString(e,this.newText,t)}static read(e,t,n){const i=L.bb(e,t);t+=4;const r=L.bb(e,t);t+=4;const s=Nt._readString(e,t);t+=Nt._writeStringSize(s);const o=Nt._readString(e,t);return t+=Nt._writeStringSize(o),n.push(new Nt(i,s,r,o)),t}}class Rt{constructor(e,t){this._prevEdits=e,this._currEdits=t,this._result=[],this._resultLen=0,this._prevLen=this._prevEdits.length,this._prevDeltaOffset=0,this._currLen=this._currEdits.length,this._currDeltaOffset=0}compress(){let e=0,t=0,n=this._getPrev(e),i=this._getCurr(t);for(;e<this._prevLen||t<this._currLen;){if(null===n){this._acceptCurr(i),i=this._getCurr(++t);continue}if(null===i){this._acceptPrev(n),n=this._getPrev(++e);continue}if(i.oldEnd<=n.newPosition){this._acceptCurr(i),i=this._getCurr(++t);continue}if(n.newEnd<=i.oldPosition){this._acceptPrev(n),n=this._getPrev(++e);continue}if(i.oldPosition<n.newPosition){const[e,t]=Rt._splitCurr(i,n.newPosition-i.oldPosition);this._acceptCurr(e),i=t;continue}if(n.newPosition<i.oldPosition){const[e,t]=Rt._splitPrev(n,i.oldPosition-n.newPosition);this._acceptPrev(e),n=t;continue}let r,s;if(i.oldEnd===n.newEnd)r=n,s=i,n=this._getPrev(++e),i=this._getCurr(++t);else if(i.oldEnd<n.newEnd){const[e,o]=Rt._splitPrev(n,i.oldLength);r=e,s=i,n=o,i=this._getCurr(++t)}else{const[t,o]=Rt._splitCurr(i,n.newLength);r=n,s=t,n=this._getPrev(++e),i=o}this._result[this._resultLen++]=new Nt(r.oldPosition,r.oldText,s.newPosition,s.newText),this._prevDeltaOffset+=r.newLength-r.oldLength,this._currDeltaOffset+=s.newLength-s.oldLength}const r=Rt._merge(this._result);return Rt._removeNoOps(r)}_acceptCurr(e){this._result[this._resultLen++]=Rt._rebaseCurr(this._prevDeltaOffset,e),this._currDeltaOffset+=e.newLength-e.oldLength}_getCurr(e){return e<this._currLen?this._currEdits[e]:null}_acceptPrev(e){this._result[this._resultLen++]=Rt._rebasePrev(this._currDeltaOffset,e),this._prevDeltaOffset+=e.newLength-e.oldLength}_getPrev(e){return e<this._prevLen?this._prevEdits[e]:null}static _rebaseCurr(e,t){return new Nt(t.oldPosition-e,t.oldText,t.newPosition,t.newText)}static _rebasePrev(e,t){return new Nt(t.oldPosition,t.oldText,t.newPosition+e,t.newText)}static _splitPrev(e,t){const n=e.newText.substr(0,t),i=e.newText.substr(t);return[new Nt(e.oldPosition,e.oldText,e.newPosition,n),new Nt(e.oldEnd,"",e.newPosition+t,i)]}static _splitCurr(e,t){const n=e.oldText.substr(0,t),i=e.oldText.substr(t);return[new Nt(e.oldPosition,n,e.newPosition,e.newText),new Nt(e.oldPosition+t,i,e.newEnd,"")]}static _merge(e){if(0===e.length)return e;const t=[];let n=0,i=e[0];for(let r=1;r<e.length;r++){const s=e[r];i.oldEnd===s.oldPosition?i=new Nt(i.oldPosition,i.oldText+s.oldText,i.newPosition,i.newText+s.newText):(t[n++]=i,i=s)}return t[n++]=i,t}static _removeNoOps(e){if(0===e.length)return e;const t=[];let n=0;for(let i=0;i<e.length;i++){const r=e[i];r.oldText!==r.newText&&(t[n++]=r)}return t}}var Dt=n(9403);function Ot(e){return e.toString()}class Bt{static create(e,t){const n=e.getAlternativeVersionId(),i=Ft(e);return new Bt(n,n,i,i,t,t,[])}constructor(e,t,n,i,r,s,o){this.beforeVersionId=e,this.afterVersionId=t,this.beforeEOL=n,this.afterEOL=i,this.beforeCursorState=r,this.afterCursorState=s,this.changes=o}append(e,t,n,i,r){var s,o;t.length>0&&(this.changes=(s=this.changes,o=t,null===s||0===s.length?o:new Rt(s,o).compress())),this.afterEOL=n,this.afterVersionId=i,this.afterCursorState=r}static _writeSelectionsSize(e){return 4+16*(e?e.length:0)}static _writeSelections(e,t,n){if(L.Sw(e,t?t.length:0,n),n+=4,t)for(const i of t)L.Sw(e,i.selectionStartLineNumber,n),n+=4,L.Sw(e,i.selectionStartColumn,n),n+=4,L.Sw(e,i.positionLineNumber,n),n+=4,L.Sw(e,i.positionColumn,n),n+=4;return n}static _readSelections(e,t,n){const i=L.bb(e,t);t+=4;for(let r=0;r<i;r++){const i=L.bb(e,t);t+=4;const r=L.bb(e,t);t+=4;const s=L.bb(e,t);t+=4;const o=L.bb(e,t);t+=4,n.push(new p.L(i,r,s,o))}return t}serialize(){let e=10+Bt._writeSelectionsSize(this.beforeCursorState)+Bt._writeSelectionsSize(this.afterCursorState)+4;for(const i of this.changes)e+=i.writeSize();const t=new Uint8Array(e);let n=0;L.Sw(t,this.beforeVersionId,n),n+=4,L.Sw(t,this.afterVersionId,n),n+=4,L.Gs(t,this.beforeEOL,n),n+=1,L.Gs(t,this.afterEOL,n),n+=1,n=Bt._writeSelections(t,this.beforeCursorState,n),n=Bt._writeSelections(t,this.afterCursorState,n),L.Sw(t,this.changes.length,n),n+=4;for(const i of this.changes)n=i.write(t,n);return t.buffer}static deserialize(e){const t=new Uint8Array(e);let n=0;const i=L.bb(t,n);n+=4;const r=L.bb(t,n);n+=4;const s=L.pJ(t,n);n+=1;const o=L.pJ(t,n);n+=1;const a=[];n=Bt._readSelections(t,n,a);const l=[];n=Bt._readSelections(t,n,l);const h=L.bb(t,n);n+=4;const c=[];for(let d=0;d<h;d++)n=Nt.read(t,n,c);return new Bt(i,r,s,o,a,l,c)}}class zt{get type(){return 0}get resource(){return c.r.isUri(this.model)?this.model:this.model.uri}constructor(e,t,n,i){this.label=e,this.code=t,this.model=n,this._data=Bt.create(n,i)}toString(){return(this._data instanceof Bt?this._data:Bt.deserialize(this._data)).changes.map((e=>e.toString())).join(", ")}matchesResource(e){return(c.r.isUri(this.model)?this.model:this.model.uri).toString()===e.toString()}setModel(e){this.model=e}canAppend(e){return this.model===e&&this._data instanceof Bt}append(e,t,n,i,r){this._data instanceof Bt&&this._data.append(e,t,n,i,r)}close(){this._data instanceof Bt&&(this._data=this._data.serialize())}open(){this._data instanceof Bt||(this._data=Bt.deserialize(this._data))}undo(){if(c.r.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof Bt&&(this._data=this._data.serialize());const e=Bt.deserialize(this._data);this.model._applyUndo(e.changes,e.beforeEOL,e.beforeVersionId,e.beforeCursorState)}redo(){if(c.r.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof Bt&&(this._data=this._data.serialize());const e=Bt.deserialize(this._data);this.model._applyRedo(e.changes,e.afterEOL,e.afterVersionId,e.afterCursorState)}heapSize(){return this._data instanceof Bt&&(this._data=this._data.serialize()),this._data.byteLength+168}}class Pt{get resources(){return this._editStackElementsArr.map((e=>e.resource))}constructor(e,t,n){this.label=e,this.code=t,this.type=1,this._isOpen=!0,this._editStackElementsArr=n.slice(0),this._editStackElementsMap=new Map;for(const i of this._editStackElementsArr){const e=Ot(i.resource);this._editStackElementsMap.set(e,i)}this._delegate=null}prepareUndoRedo(){if(this._delegate)return this._delegate.prepareUndoRedo(this)}matchesResource(e){const t=Ot(e);return this._editStackElementsMap.has(t)}setModel(e){const t=Ot(c.r.isUri(e)?e:e.uri);this._editStackElementsMap.has(t)&&this._editStackElementsMap.get(t).setModel(e)}canAppend(e){if(!this._isOpen)return!1;const t=Ot(e.uri);if(this._editStackElementsMap.has(t)){return this._editStackElementsMap.get(t).canAppend(e)}return!1}append(e,t,n,i,r){const s=Ot(e.uri);this._editStackElementsMap.get(s).append(e,t,n,i,r)}close(){this._isOpen=!1}open(){}undo(){this._isOpen=!1;for(const e of this._editStackElementsArr)e.undo()}redo(){for(const e of this._editStackElementsArr)e.redo()}heapSize(e){const t=Ot(e);if(this._editStackElementsMap.has(t)){return this._editStackElementsMap.get(t).heapSize()}return 0}split(){return this._editStackElementsArr}toString(){const e=[];for(const t of this._editStackElementsArr)e.push(`${(0,Dt.P8)(t.resource)}: ${t}`);return`{${e.join(", ")}}`}}function Ft(e){return"\n"===e.getEOL()?0:1}function Wt(e){return!!e&&(e instanceof zt||e instanceof Pt)}class Ht{constructor(e,t){this._model=e,this._undoRedoService=t}pushStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);Wt(e)&&e.close()}popStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);Wt(e)&&e.open()}clear(){this._undoRedoService.removeElements(this._model.uri)}_getOrCreateEditStackElement(e,t){const n=this._undoRedoService.getLastElement(this._model.uri);if(Wt(n)&&n.canAppend(this._model))return n;const i=new zt(It.kg("edit","Typing"),"undoredo.textBufferEdit",this._model,e);return this._undoRedoService.pushElement(i,t),i}pushEOL(e){const t=this._getOrCreateEditStackElement(null,void 0);this._model.setEOL(e),t.append(this._model,[],Ft(this._model),this._model.getAlternativeVersionId(),null)}pushEditOperation(e,t,n,i){const r=this._getOrCreateEditStackElement(e,i),s=this._model.applyEdits(t,!0),o=Ht._computeCursorState(n,s),a=s.map(((e,t)=>({index:t,textChange:e.textChange})));return a.sort(((e,t)=>e.textChange.oldPosition===t.textChange.oldPosition?e.index-t.index:e.textChange.oldPosition-t.textChange.oldPosition)),r.append(this._model,a.map((e=>e.textChange)),Ft(this._model),this._model.getAlternativeVersionId(),o),o}static _computeCursorState(e,t){try{return e?e(t):null}catch(n){return(0,l.dz)(n),null}}}var Ut,qt=n(6041);class Vt extends r.jG{constructor(){super(...arguments),this._isDisposed=!1}dispose(){super.dispose(),this._isDisposed=!0}assertNotDisposed(){if(this._isDisposed)throw new Error("TextModelPart is disposed!")}}!function(e){e[e.Disabled=0]="Disabled",e[e.EnabledForActive=1]="EnabledForActive",e[e.Enabled=2]="Enabled"}(Ut||(Ut={}));class jt{constructor(e,t,n,i,r,s){if(this.visibleColumn=e,this.column=t,this.className=n,this.horizontalLine=i,this.forWrappedLinesAfterColumn=r,this.forWrappedLinesBeforeOrAtColumn=s,-1!==e===(-1!==t))throw new Error}}class Gt{constructor(e,t){this.top=e,this.endColumn=t}}class Kt extends Vt{constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t}getLanguageConfiguration(e){return this.languageConfigurationService.getLanguageConfiguration(e)}_computeIndentLevel(e){return function(e,t){let n=0,i=0;const r=e.length;for(;i<r;){const r=e.charCodeAt(i);if(32===r)n++;else{if(9!==r)break;n=n-n%t+t}i++}return i===r?-1:n}(this.textModel.getLineContent(e+1),this.textModel.getOptions().tabSize)}getActiveIndentGuide(e,t,n){this.assertNotDisposed();const i=this.textModel.getLineCount();if(e<1||e>i)throw new l.D7("Illegal value for lineNumber");const r=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,s=Boolean(r&&r.offSide);let o=-2,a=-1,h=-2,c=-1;const d=e=>{if(-1!==o&&(-2===o||o>e-1)){o=-1,a=-1;for(let t=e-2;t>=0;t--){const e=this._computeIndentLevel(t);if(e>=0){o=t,a=e;break}}}if(-2===h){h=-1,c=-1;for(let t=e;t<i;t++){const e=this._computeIndentLevel(t);if(e>=0){h=t,c=e;break}}}};let u=-2,g=-1,f=-2,m=-1;const p=e=>{if(-2===u){u=-1,g=-1;for(let t=e-2;t>=0;t--){const e=this._computeIndentLevel(t);if(e>=0){u=t,g=e;break}}}if(-1!==f&&(-2===f||f<e-1)){f=-1,m=-1;for(let t=e;t<i;t++){const e=this._computeIndentLevel(t);if(e>=0){f=t,m=e;break}}}};let _=0,b=!0,v=0,w=!0,k=0,y=0;for(let l=0;b||w;l++){const r=e-l,o=e+l;l>1&&(r<1||r<t)&&(b=!1),l>1&&(o>i||o>n)&&(w=!1),l>5e4&&(b=!1,w=!1);let f=-1;if(b&&r>=1){const e=this._computeIndentLevel(r-1);e>=0?(h=r-1,c=e,f=Math.ceil(e/this.textModel.getOptions().indentSize)):(d(r),f=this._getIndentLevelForWhitespaceLine(s,a,c))}let T=-1;if(w&&o<=i){const e=this._computeIndentLevel(o-1);e>=0?(u=o-1,g=e,T=Math.ceil(e/this.textModel.getOptions().indentSize)):(p(o),T=this._getIndentLevelForWhitespaceLine(s,g,m))}if(0!==l){if(1===l){if(o<=i&&T>=0&&y+1===T){b=!1,_=o,v=o,k=T;continue}if(r>=1&&f>=0&&f-1===y){w=!1,_=r,v=r,k=f;continue}if(_=e,v=e,k=y,0===k)return{startLineNumber:_,endLineNumber:v,indent:k}}b&&(f>=k?_=r:b=!1),w&&(T>=k?v=o:w=!1)}else y=f}return{startLineNumber:_,endLineNumber:v,indent:k}}getLinesBracketGuides(e,t,n,i){const r=[];for(let h=e;h<=t;h++)r.push([]);const s=!0,o=this.textModel.bracketPairs.getBracketPairsInRangeWithMinIndentation(new m.Q(e,1,t,this.textModel.getLineMaxColumn(t))).toArray();let a;if(n&&o.length>0){const i=(e<=n.lineNumber&&n.lineNumber<=t?o:this.textModel.bracketPairs.getBracketPairsInRange(m.Q.fromPositions(n)).toArray()).filter((e=>m.Q.strictContainsPosition(e.range,n)));a=(0,qt.Uk)(i,(e=>s))?.range}const l=this.textModel.getOptions().bracketPairColorizationOptions.independentColorPoolPerBracketType,c=new $t;for(const d of o){if(!d.closingBracketRange)continue;const n=a&&d.range.equalsRange(a);if(!n&&!i.includeInactive)continue;const s=c.getInlineClassName(d.nestingLevel,d.nestingLevelOfEqualBracketType,l)+(i.highlightActive&&n?" "+c.activeClassName:""),o=d.openingBracketRange.getStartPosition(),u=d.closingBracketRange.getStartPosition(),g=i.horizontalGuides===Ut.Enabled||i.horizontalGuides===Ut.EnabledForActive&&n;if(d.range.startLineNumber===d.range.endLineNumber){g&&r[d.range.startLineNumber-e].push(new jt(-1,d.openingBracketRange.getEndPosition().column,s,new Gt(!1,u.column),-1,-1));continue}const f=this.getVisibleColumnFromPosition(u),m=this.getVisibleColumnFromPosition(d.openingBracketRange.getStartPosition()),p=Math.min(m,f,d.minVisibleColumnIndentation+1);let _=!1;h.HG(this.textModel.getLineContent(d.closingBracketRange.startLineNumber))<d.closingBracketRange.startColumn-1&&(_=!0);const b=Math.max(o.lineNumber,e),v=Math.min(u.lineNumber,t),w=_?1:0;for(let t=b;t<v+w;t++)r[t-e].push(new jt(p,-1,s,null,t===o.lineNumber?o.column:-1,t===u.lineNumber?u.column:-1));g&&(o.lineNumber>=e&&m>p&&r[o.lineNumber-e].push(new jt(p,-1,s,new Gt(!1,o.column),-1,-1)),u.lineNumber<=t&&f>p&&r[u.lineNumber-e].push(new jt(p,-1,s,new Gt(!_,u.column),-1,-1)))}for(const h of r)h.sort(((e,t)=>e.visibleColumn-t.visibleColumn));return r}getVisibleColumnFromPosition(e){return u.visibleColumnFromColumn(this.textModel.getLineContent(e.lineNumber),e.column,this.textModel.getOptions().tabSize)+1}getLinesIndentGuides(e,t){this.assertNotDisposed();const n=this.textModel.getLineCount();if(e<1||e>n)throw new Error("Illegal value for startLineNumber");if(t<1||t>n)throw new Error("Illegal value for endLineNumber");const i=this.textModel.getOptions(),r=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,s=Boolean(r&&r.offSide),o=new Array(t-e+1);let a=-2,l=-1,h=-2,c=-1;for(let d=e;d<=t;d++){const t=d-e,r=this._computeIndentLevel(d-1);if(r>=0)a=d-1,l=r,o[t]=Math.ceil(r/i.indentSize);else{if(-2===a){a=-1,l=-1;for(let e=d-2;e>=0;e--){const t=this._computeIndentLevel(e);if(t>=0){a=e,l=t;break}}}if(-1!==h&&(-2===h||h<d-1)){h=-1,c=-1;for(let e=d;e<n;e++){const t=this._computeIndentLevel(e);if(t>=0){h=e,c=t;break}}}o[t]=this._getIndentLevelForWhitespaceLine(s,l,c)}}return o}_getIndentLevelForWhitespaceLine(e,t,n){const i=this.textModel.getOptions();return-1===t||-1===n?0:t<n?1+Math.floor(t/i.indentSize):t===n||e?Math.ceil(n/i.indentSize):1+Math.floor(n/i.indentSize)}}class $t{constructor(){this.activeClassName="indent-active"}getInlineClassName(e,t,n){return this.getInlineClassNameOfLevel(n?t:e)}getInlineClassNameOfLevel(e){return"bracket-indent-guide lvl-"+e%30}}class Qt{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}}function Yt(e,t,n,i,r){let s;for(r.spacesDiff=0,r.looksLikeAlignment=!1,s=0;s<t&&s<i;s++){if(e.charCodeAt(s)!==n.charCodeAt(s))break}let o=0,a=0;for(let u=s;u<t;u++){32===e.charCodeAt(u)?o++:a++}let l=0,h=0;for(let u=s;u<i;u++){32===n.charCodeAt(u)?l++:h++}if(o>0&&a>0)return;if(l>0&&h>0)return;const c=Math.abs(a-h),d=Math.abs(o-l);if(0===c)return r.spacesDiff=d,void(d>0&&0<=l-1&&l-1<e.length&&l<n.length&&32!==n.charCodeAt(l)&&32===e.charCodeAt(l-1)&&44===e.charCodeAt(e.length-1)&&(r.looksLikeAlignment=!0));d%c!==0||(r.spacesDiff=d/c)}function Xt(e,t,n){const i=Math.min(e.getLineCount(),1e4);let r=0,s=0,o="",a=0;const l=[2,4,6,8,3,5,7],h=[0,0,0,0,0,0,0,0,0],c=new Qt;for(let g=1;g<=i;g++){const i=e.getLineLength(g),l=e.getLineContent(g),d=i<=65536;let u=!1,f=0,m=0,p=0;for(let t=0,n=i;t<n;t++){const n=d?l.charCodeAt(t):e.getLineCharCode(g,t);if(9===n)p++;else{if(32!==n){u=!0,f=t;break}m++}}if(!u)continue;if(p>0?r++:m>1&&s++,Yt(o,a,l,f,c),c.looksLikeAlignment&&(!n||t!==c.spacesDiff))continue;const _=c.spacesDiff;_<=8&&h[_]++,o=l,a=f}let d=n;r!==s&&(d=r<s);let u=t;if(d){let e=d?0:.1*i;l.forEach((t=>{const n=h[t];n>e&&(e=n,u=t)})),4===u&&h[4]>0&&h[2]>0&&h[2]>=h[4]/2&&(u=2)}return{insertSpaces:d,tabSize:u}}function Jt(e){return(1&e.metadata)>>>0}function Zt(e,t){e.metadata=254&e.metadata|t}function en(e){return(2&e.metadata)>>>1===1}function tn(e,t){e.metadata=253&e.metadata|(t?1:0)<<1}function nn(e){return(4&e.metadata)>>>2===1}function rn(e,t){e.metadata=251&e.metadata|(t?1:0)<<2}function sn(e){return(64&e.metadata)>>>6===1}function on(e,t){e.metadata=191&e.metadata|(t?1:0)<<6}function an(e,t){e.metadata=231&e.metadata|t<<3}function ln(e,t){e.metadata=223&e.metadata|(t?1:0)<<5}class hn{constructor(e,t,n){this.metadata=0,this.parent=this,this.left=this,this.right=this,Zt(this,1),this.start=t,this.end=n,this.delta=0,this.maxEnd=n,this.id=e,this.ownerId=0,this.options=null,rn(this,!1),on(this,!1),an(this,1),ln(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=null,tn(this,!1)}reset(e,t,n,i){this.start=t,this.end=n,this.maxEnd=n,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=i}setOptions(e){this.options=e;const t=this.options.className;rn(this,"squiggly-error"===t||"squiggly-warning"===t||"squiggly-info"===t),on(this,null!==this.options.glyphMarginClassName),an(this,this.options.stickiness),ln(this,this.options.collapseOnReplaceEdit)}setCachedOffsets(e,t,n){this.cachedVersionId!==n&&(this.range=null),this.cachedVersionId=n,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t}detach(){this.parent=null,this.left=null,this.right=null}}const cn=new hn(null,0,0);cn.parent=cn,cn.left=cn,cn.right=cn,Zt(cn,0);class dn{constructor(){this.root=cn,this.requestNormalizeDelta=!1}intervalSearch(e,t,n,i,r,s){return this.root===cn?[]:function(e,t,n,i,r,s,o){let a=e.root,l=0,h=0,c=0,d=0;const u=[];let g=0;for(;a!==cn;)if(en(a))tn(a.left,!1),tn(a.right,!1),a===a.parent.right&&(l-=a.parent.delta),a=a.parent;else{if(!en(a.left)){if(h=l+a.maxEnd,h<t){tn(a,!0);continue}if(a.left!==cn){a=a.left;continue}}if(c=l+a.start,c>n)tn(a,!0);else{if(d=l+a.end,d>=t){a.setCachedOffsets(c,d,s);let e=!0;i&&a.ownerId&&a.ownerId!==i&&(e=!1),r&&nn(a)&&(e=!1),o&&!sn(a)&&(e=!1),e&&(u[g++]=a)}tn(a,!0),a.right===cn||en(a.right)||(l+=a.delta,a=a.right)}}return tn(e.root,!1),u}(this,e,t,n,i,r,s)}search(e,t,n,i){return this.root===cn?[]:function(e,t,n,i,r){let s=e.root,o=0,a=0,l=0;const h=[];let c=0;for(;s!==cn;){if(en(s)){tn(s.left,!1),tn(s.right,!1),s===s.parent.right&&(o-=s.parent.delta),s=s.parent;continue}if(s.left!==cn&&!en(s.left)){s=s.left;continue}a=o+s.start,l=o+s.end,s.setCachedOffsets(a,l,i);let e=!0;t&&s.ownerId&&s.ownerId!==t&&(e=!1),n&&nn(s)&&(e=!1),r&&!sn(s)&&(e=!1),e&&(h[c++]=s),tn(s,!0),s.right===cn||en(s.right)||(o+=s.delta,s=s.right)}return tn(e.root,!1),h}(this,e,t,n,i)}collectNodesFromOwner(e){return function(e,t){let n=e.root;const i=[];let r=0;for(;n!==cn;)en(n)?(tn(n.left,!1),tn(n.right,!1),n=n.parent):n.left===cn||en(n.left)?(n.ownerId===t&&(i[r++]=n),tn(n,!0),n.right===cn||en(n.right)||(n=n.right)):n=n.left;return tn(e.root,!1),i}(this,e)}collectNodesPostOrder(){return function(e){let t=e.root;const n=[];let i=0;for(;t!==cn;)en(t)?(tn(t.left,!1),tn(t.right,!1),t=t.parent):t.left===cn||en(t.left)?t.right===cn||en(t.right)?(n[i++]=t,tn(t,!0)):t=t.right:t=t.left;return tn(e.root,!1),n}(this)}insert(e){fn(this,e),this._normalizeDeltaIfNecessary()}delete(e){mn(this,e),this._normalizeDeltaIfNecessary()}resolveNode(e,t){const n=e;let i=0;for(;e!==this.root;)e===e.parent.right&&(i+=e.parent.delta),e=e.parent;const r=n.start+i,s=n.end+i;n.setCachedOffsets(r,s,t)}acceptReplace(e,t,n,i){const r=function(e,t,n){let i=e.root,r=0,s=0,o=0,a=0;const l=[];let h=0;for(;i!==cn;)if(en(i))tn(i.left,!1),tn(i.right,!1),i===i.parent.right&&(r-=i.parent.delta),i=i.parent;else{if(!en(i.left)){if(s=r+i.maxEnd,s<t){tn(i,!0);continue}if(i.left!==cn){i=i.left;continue}}o=r+i.start,o>n?tn(i,!0):(a=r+i.end,a>=t&&(i.setCachedOffsets(o,a,0),l[h++]=i),tn(i,!0),i.right===cn||en(i.right)||(r+=i.delta,i=i.right))}return tn(e.root,!1),l}(this,e,e+t);for(let s=0,o=r.length;s<o;s++){mn(this,r[s])}this._normalizeDeltaIfNecessary(),function(e,t,n,i){let r=e.root,s=0,o=0,a=0;const l=i-(n-t);for(;r!==cn;)if(en(r))tn(r.left,!1),tn(r.right,!1),r===r.parent.right&&(s-=r.parent.delta),wn(r),r=r.parent;else{if(!en(r.left)){if(o=s+r.maxEnd,o<t){tn(r,!0);continue}if(r.left!==cn){r=r.left;continue}}a=s+r.start,a>n?(r.start+=l,r.end+=l,r.delta+=l,(r.delta<-1073741824||r.delta>1073741824)&&(e.requestNormalizeDelta=!0),tn(r,!0)):(tn(r,!0),r.right===cn||en(r.right)||(s+=r.delta,r=r.right))}tn(e.root,!1)}(this,e,e+t,n),this._normalizeDeltaIfNecessary();for(let s=0,o=r.length;s<o;s++){const o=r[s];o.start=o.cachedAbsoluteStart,o.end=o.cachedAbsoluteEnd,gn(o,e,e+t,n,i),o.maxEnd=o.end,fn(this,o)}this._normalizeDeltaIfNecessary()}_normalizeDeltaIfNecessary(){this.requestNormalizeDelta&&(this.requestNormalizeDelta=!1,function(e){let t=e.root,n=0;for(;t!==cn;)t.left===cn||en(t.left)?t.right===cn||en(t.right)?(t.start=n+t.start,t.end=n+t.end,t.delta=0,wn(t),tn(t,!0),tn(t.left,!1),tn(t.right,!1),t===t.parent.right&&(n-=t.parent.delta),t=t.parent):(n+=t.delta,t=t.right):t=t.left;tn(e.root,!1)}(this))}}function un(e,t,n,i){return e<n||!(e>n)&&(1!==i&&(2===i||t))}function gn(e,t,n,i,r){const s=function(e){return(24&e.metadata)>>>3}(e),o=0===s||2===s,a=1===s||2===s,l=n-t,h=i,c=Math.min(l,h),d=e.start;let u=!1;const g=e.end;let f=!1;t<=d&&g<=n&&function(e){return(32&e.metadata)>>>5===1}(e)&&(e.start=t,u=!0,e.end=t,f=!0);{const e=r?1:l>0?2:0;!u&&un(d,o,t,e)&&(u=!0),!f&&un(g,a,t,e)&&(f=!0)}if(c>0&&!r){const e=l>h?2:0;!u&&un(d,o,t+c,e)&&(u=!0),!f&&un(g,a,t+c,e)&&(f=!0)}{const i=r?1:0;!u&&un(d,o,n,i)&&(e.start=t+h,u=!0),!f&&un(g,a,n,i)&&(e.end=t+h,f=!0)}const m=h-l;u||(e.start=Math.max(0,d+m)),f||(e.end=Math.max(0,g+m)),e.start>e.end&&(e.end=e.start)}function fn(e,t){if(e.root===cn)return t.parent=cn,t.left=cn,t.right=cn,Zt(t,0),e.root=t,e.root;!function(e,t){let n=0,i=e.root;const r=t.start,s=t.end;for(;;){if(yn(r,s,i.start+n,i.end+n)<0){if(i.left===cn){t.start-=n,t.end-=n,t.maxEnd-=n,i.left=t;break}i=i.left}else{if(i.right===cn){t.start-=n+i.delta,t.end-=n+i.delta,t.maxEnd-=n+i.delta,i.right=t;break}n+=i.delta,i=i.right}}t.parent=i,t.left=cn,t.right=cn,Zt(t,1)}(e,t),kn(t.parent);let n=t;for(;n!==e.root&&1===Jt(n.parent);)if(n.parent===n.parent.parent.left){const t=n.parent.parent.right;1===Jt(t)?(Zt(n.parent,0),Zt(t,0),Zt(n.parent.parent,1),n=n.parent.parent):(n===n.parent.right&&(n=n.parent,_n(e,n)),Zt(n.parent,0),Zt(n.parent.parent,1),bn(e,n.parent.parent))}else{const t=n.parent.parent.left;1===Jt(t)?(Zt(n.parent,0),Zt(t,0),Zt(n.parent.parent,1),n=n.parent.parent):(n===n.parent.left&&(n=n.parent,bn(e,n)),Zt(n.parent,0),Zt(n.parent.parent,1),_n(e,n.parent.parent))}return Zt(e.root,0),t}function mn(e,t){let n,i;if(t.left===cn?(n=t.right,i=t,n.delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta):t.right===cn?(n=t.left,i=t):(i=function(e){for(;e.left!==cn;)e=e.left;return e}(t.right),n=i.right,n.start+=i.delta,n.end+=i.delta,n.delta+=i.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),i.start+=t.delta,i.end+=t.delta,i.delta=t.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0)),i===e.root)return e.root=n,Zt(n,0),t.detach(),pn(),wn(n),void(e.root.parent=cn);const r=1===Jt(i);if(i===i.parent.left?i.parent.left=n:i.parent.right=n,i===t?n.parent=i.parent:(i.parent===t?n.parent=i:n.parent=i.parent,i.left=t.left,i.right=t.right,i.parent=t.parent,Zt(i,Jt(t)),t===e.root?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left!==cn&&(i.left.parent=i),i.right!==cn&&(i.right.parent=i)),t.detach(),r)return kn(n.parent),i!==t&&(kn(i),kn(i.parent)),void pn();let s;for(kn(n),kn(n.parent),i!==t&&(kn(i),kn(i.parent));n!==e.root&&0===Jt(n);)n===n.parent.left?(s=n.parent.right,1===Jt(s)&&(Zt(s,0),Zt(n.parent,1),_n(e,n.parent),s=n.parent.right),0===Jt(s.left)&&0===Jt(s.right)?(Zt(s,1),n=n.parent):(0===Jt(s.right)&&(Zt(s.left,0),Zt(s,1),bn(e,s),s=n.parent.right),Zt(s,Jt(n.parent)),Zt(n.parent,0),Zt(s.right,0),_n(e,n.parent),n=e.root)):(s=n.parent.left,1===Jt(s)&&(Zt(s,0),Zt(n.parent,1),bn(e,n.parent),s=n.parent.left),0===Jt(s.left)&&0===Jt(s.right)?(Zt(s,1),n=n.parent):(0===Jt(s.left)&&(Zt(s.right,0),Zt(s,1),_n(e,s),s=n.parent.left),Zt(s,Jt(n.parent)),Zt(n.parent,0),Zt(s.left,0),bn(e,n.parent),n=e.root));Zt(n,0),pn()}function pn(){cn.parent=cn,cn.delta=0,cn.start=0,cn.end=0}function _n(e,t){const n=t.right;n.delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta,t.right=n.left,n.left!==cn&&(n.left.parent=t),n.parent=t.parent,t.parent===cn?e.root=n:t===t.parent.left?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n,wn(t),wn(n)}function bn(e,t){const n=t.left;t.delta-=n.delta,(t.delta<-1073741824||t.delta>1073741824)&&(e.requestNormalizeDelta=!0),t.start-=n.delta,t.end-=n.delta,t.left=n.right,n.right!==cn&&(n.right.parent=t),n.parent=t.parent,t.parent===cn?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n,wn(t),wn(n)}function vn(e){let t=e.end;if(e.left!==cn){const n=e.left.maxEnd;n>t&&(t=n)}if(e.right!==cn){const n=e.right.maxEnd+e.delta;n>t&&(t=n)}return t}function wn(e){e.maxEnd=vn(e)}function kn(e){for(;e!==cn;){const t=vn(e);if(e.maxEnd===t)return;e.maxEnd=t,e=e.parent}}function yn(e,t,n,i){return e===n?t-i:e-n}class Tn{constructor(e,t){this.piece=e,this.color=t,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}next(){if(this.right!==Cn)return Sn(this.right);let e=this;for(;e.parent!==Cn&&e.parent.left!==e;)e=e.parent;return e.parent===Cn?Cn:e.parent}prev(){if(this.left!==Cn)return Ln(this.left);let e=this;for(;e.parent!==Cn&&e.parent.right!==e;)e=e.parent;return e.parent===Cn?Cn:e.parent}detach(){this.parent=null,this.left=null,this.right=null}}const Cn=new Tn(null,0);function Sn(e){for(;e.left!==Cn;)e=e.left;return e}function Ln(e){for(;e.right!==Cn;)e=e.right;return e}function xn(e){return e===Cn?0:e.size_left+e.piece.length+xn(e.right)}function En(e){return e===Cn?0:e.lf_left+e.piece.lineFeedCnt+En(e.right)}function An(){Cn.parent=Cn}function In(e,t){const n=t.right;n.size_left+=t.size_left+(t.piece?t.piece.length:0),n.lf_left+=t.lf_left+(t.piece?t.piece.lineFeedCnt:0),t.right=n.left,n.left!==Cn&&(n.left.parent=t),n.parent=t.parent,t.parent===Cn?e.root=n:t.parent.left===t?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n}function Mn(e,t){const n=t.left;t.left=n.right,n.right!==Cn&&(n.right.parent=t),n.parent=t.parent,t.size_left-=n.size_left+(n.piece?n.piece.length:0),t.lf_left-=n.lf_left+(n.piece?n.piece.lineFeedCnt:0),t.parent===Cn?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n}function Nn(e,t){let n,i;if(t.left===Cn?(i=t,n=i.right):t.right===Cn?(i=t,n=i.left):(i=Sn(t.right),n=i.right),i===e.root)return e.root=n,n.color=0,t.detach(),An(),void(e.root.parent=Cn);const r=1===i.color;if(i===i.parent.left?i.parent.left=n:i.parent.right=n,i===t?(n.parent=i.parent,On(e,n)):(i.parent===t?n.parent=i:n.parent=i.parent,On(e,n),i.left=t.left,i.right=t.right,i.parent=t.parent,i.color=t.color,t===e.root?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left!==Cn&&(i.left.parent=i),i.right!==Cn&&(i.right.parent=i),i.size_left=t.size_left,i.lf_left=t.lf_left,On(e,i)),t.detach(),n.parent.left===n){const t=xn(n),i=En(n);if(t!==n.parent.size_left||i!==n.parent.lf_left){const r=t-n.parent.size_left,s=i-n.parent.lf_left;n.parent.size_left=t,n.parent.lf_left=i,Dn(e,n.parent,r,s)}}if(On(e,n.parent),r)return void An();let s;for(;n!==e.root&&0===n.color;)n===n.parent.left?(s=n.parent.right,1===s.color&&(s.color=0,n.parent.color=1,In(e,n.parent),s=n.parent.right),0===s.left.color&&0===s.right.color?(s.color=1,n=n.parent):(0===s.right.color&&(s.left.color=0,s.color=1,Mn(e,s),s=n.parent.right),s.color=n.parent.color,n.parent.color=0,s.right.color=0,In(e,n.parent),n=e.root)):(s=n.parent.left,1===s.color&&(s.color=0,n.parent.color=1,Mn(e,n.parent),s=n.parent.left),0===s.left.color&&0===s.right.color?(s.color=1,n=n.parent):(0===s.left.color&&(s.right.color=0,s.color=1,In(e,s),s=n.parent.left),s.color=n.parent.color,n.parent.color=0,s.left.color=0,Mn(e,n.parent),n=e.root));n.color=0,An()}function Rn(e,t){for(On(e,t);t!==e.root&&1===t.parent.color;)if(t.parent===t.parent.parent.left){const n=t.parent.parent.right;1===n.color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.right&&In(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,Mn(e,t.parent.parent))}else{const n=t.parent.parent.left;1===n.color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.left&&Mn(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,In(e,t.parent.parent))}e.root.color=0}function Dn(e,t,n,i){for(;t!==e.root&&t!==Cn;)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=i),t=t.parent}function On(e,t){let n=0,i=0;if(t!==e.root){for(;t!==e.root&&t===t.parent.right;)t=t.parent;if(t!==e.root)for(n=xn((t=t.parent).left)-t.size_left,i=En(t.left)-t.lf_left,t.size_left+=n,t.lf_left+=i;t!==e.root&&(0!==n||0!==i);)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=i),t=t.parent}}Cn.parent=Cn,Cn.left=Cn,Cn.right=Cn,Cn.color=0;var Bn=n(7729);const zn=65535;function Pn(e){let t;return t=e[e.length-1]<65536?new Uint16Array(e.length):new Uint32Array(e.length),t.set(e,0),t}class Fn{constructor(e,t,n,i,r){this.lineStarts=e,this.cr=t,this.lf=n,this.crlf=i,this.isBasicASCII=r}}function Wn(e,t=!0){const n=[0];let i=1;for(let r=0,s=e.length;r<s;r++){const t=e.charCodeAt(r);13===t?r+1<s&&10===e.charCodeAt(r+1)?(n[i++]=r+2,r++):n[i++]=r+1:10===t&&(n[i++]=r+1)}return t?Pn(n):n}class Hn{constructor(e,t,n,i,r){this.bufferIndex=e,this.start=t,this.end=n,this.lineFeedCnt=i,this.length=r}}class Un{constructor(e,t){this.buffer=e,this.lineStarts=t}}class qn{constructor(e,t){this._pieces=[],this._tree=e,this._BOM=t,this._index=0,e.root!==Cn&&e.iterate(e.root,(e=>(e!==Cn&&this._pieces.push(e.piece),!0)))}read(){return 0===this._pieces.length?0===this._index?(this._index++,this._BOM):null:this._index>this._pieces.length-1?null:0===this._index?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])}}class Vn{constructor(e){this._limit=e,this._cache=[]}get(e){for(let t=this._cache.length-1;t>=0;t--){const n=this._cache[t];if(n.nodeStartOffset<=e&&n.nodeStartOffset+n.node.piece.length>=e)return n}return null}get2(e){for(let t=this._cache.length-1;t>=0;t--){const n=this._cache[t];if(n.nodeStartLineNumber&&n.nodeStartLineNumber<e&&n.nodeStartLineNumber+n.node.piece.lineFeedCnt>=e)return n}return null}set(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)}validate(e){let t=!1;const n=this._cache;for(let i=0;i<n.length;i++){const r=n[i];(null===r.node.parent||r.nodeStartOffset>=e)&&(n[i]=null,t=!0)}if(t){const e=[];for(const t of n)null!==t&&e.push(t);this._cache=e}}}class jn{constructor(e,t,n){this.create(e,t,n)}create(e,t,n){this._buffers=[new Un("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=Cn,this._lineCnt=1,this._length=0,this._EOL=t,this._EOLLength=t.length,this._EOLNormalized=n;let i=null;for(let r=0,s=e.length;r<s;r++)if(e[r].buffer.length>0){e[r].lineStarts||(e[r].lineStarts=Wn(e[r].buffer));const t=new Hn(r+1,{line:0,column:0},{line:e[r].lineStarts.length-1,column:e[r].buffer.length-e[r].lineStarts[e[r].lineStarts.length-1]},e[r].lineStarts.length-1,e[r].buffer.length);this._buffers.push(e[r]),i=this.rbInsertRight(i,t)}this._searchCache=new Vn(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()}normalizeEOL(e){const t=zn,n=t-Math.floor(21845),i=2*n;let r="",s=0;const o=[];if(this.iterate(this.root,(t=>{const a=this.getNodeContent(t),l=a.length;if(s<=n||s+l<i)return r+=a,s+=l,!0;const h=r.replace(/\r\n|\r|\n/g,e);return o.push(new Un(h,Wn(h))),r=a,s=l,!0})),s>0){const t=r.replace(/\r\n|\r|\n/g,e);o.push(new Un(t,Wn(t)))}this.create(o,e,!0)}getEOL(){return this._EOL}setEOL(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)}createSnapshot(e){return new qn(this,e)}getOffsetAt(e,t){let n=0,i=this.root;for(;i!==Cn;)if(i.left!==Cn&&i.lf_left+1>=e)i=i.left;else{if(i.lf_left+i.piece.lineFeedCnt+1>=e){n+=i.size_left;return n+(this.getAccumulatedValue(i,e-i.lf_left-2)+t-1)}e-=i.lf_left+i.piece.lineFeedCnt,n+=i.size_left+i.piece.length,i=i.right}return n}getPositionAt(e){e=Math.floor(e),e=Math.max(0,e);let t=this.root,n=0;const i=e;for(;t!==Cn;)if(0!==t.size_left&&t.size_left>=e)t=t.left;else{if(t.size_left+t.piece.length>=e){const r=this.getIndexOf(t,e-t.size_left);if(n+=t.lf_left+r.index,0===r.index){const e=i-this.getOffsetAt(n+1,1);return new f.y(n+1,e+1)}return new f.y(n+1,r.remainder+1)}if(e-=t.size_left+t.piece.length,n+=t.lf_left+t.piece.lineFeedCnt,t.right===Cn){const t=i-e-this.getOffsetAt(n+1,1);return new f.y(n+1,t+1)}t=t.right}return new f.y(1,1)}getValueInRange(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";const n=this.nodeAt2(e.startLineNumber,e.startColumn),i=this.nodeAt2(e.endLineNumber,e.endColumn),r=this.getValueInRange2(n,i);return t?t===this._EOL&&this._EOLNormalized&&t===this.getEOL()&&this._EOLNormalized?r:r.replace(/\r\n|\r|\n/g,t):r}getValueInRange2(e,t){if(e.node===t.node){const n=e.node,i=this._buffers[n.piece.bufferIndex].buffer,r=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return i.substring(r+e.remainder,r+t.remainder)}let n=e.node;const i=this._buffers[n.piece.bufferIndex].buffer,r=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);let s=i.substring(r+e.remainder,r+n.piece.length);for(n=n.next();n!==Cn;){const e=this._buffers[n.piece.bufferIndex].buffer,i=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);if(n===t.node){s+=e.substring(i,i+t.remainder);break}s+=e.substr(i,n.piece.length),n=n.next()}return s}getLinesContent(){const e=[];let t=0,n="",i=!1;return this.iterate(this.root,(r=>{if(r===Cn)return!0;const s=r.piece;let o=s.length;if(0===o)return!0;const a=this._buffers[s.bufferIndex].buffer,l=this._buffers[s.bufferIndex].lineStarts,h=s.start.line,c=s.end.line;let d=l[h]+s.start.column;if(i&&(10===a.charCodeAt(d)&&(d++,o--),e[t++]=n,n="",i=!1,0===o))return!0;if(h===c)return this._EOLNormalized||13!==a.charCodeAt(d+o-1)?n+=a.substr(d,o):(i=!0,n+=a.substr(d,o-1)),!0;n+=this._EOLNormalized?a.substring(d,Math.max(d,l[h+1]-this._EOLLength)):a.substring(d,l[h+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=n;for(let i=h+1;i<c;i++)n=this._EOLNormalized?a.substring(l[i],l[i+1]-this._EOLLength):a.substring(l[i],l[i+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=n;return this._EOLNormalized||13!==a.charCodeAt(l[c]+s.end.column-1)?n=a.substr(l[c],s.end.column):(i=!0,0===s.end.column?t--:n=a.substr(l[c],s.end.column-1)),!0})),i&&(e[t++]=n,n=""),e[t++]=n,e}getLength(){return this._length}getLineCount(){return this._lineCnt}getLineContent(e){return this._lastVisitedLine.lineNumber===e||(this._lastVisitedLine.lineNumber=e,e===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(e):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(e,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(e).replace(/(\r\n|\r|\n)$/,"")),this._lastVisitedLine.value}_getCharCode(e){if(e.remainder===e.node.piece.length){const t=e.node.next();if(!t)return 0;const n=this._buffers[t.piece.bufferIndex],i=this.offsetInBuffer(t.piece.bufferIndex,t.piece.start);return n.buffer.charCodeAt(i)}{const t=this._buffers[e.node.piece.bufferIndex],n=this.offsetInBuffer(e.node.piece.bufferIndex,e.node.piece.start)+e.remainder;return t.buffer.charCodeAt(n)}}getLineCharCode(e,t){const n=this.nodeAt2(e,t+1);return this._getCharCode(n)}getLineLength(e){if(e===this.getLineCount()){const t=this.getOffsetAt(e,1);return this.getLength()-t}return this.getOffsetAt(e+1,1)-this.getOffsetAt(e,1)-this._EOLLength}findMatchesInNode(e,t,n,i,r,s,o,a,l,h,c){const d=this._buffers[e.piece.bufferIndex],u=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start),g=this.offsetInBuffer(e.piece.bufferIndex,r),f=this.offsetInBuffer(e.piece.bufferIndex,s);let p;const _={line:0,column:0};let b,v;t._wordSeparators?(b=d.buffer.substring(g,f),v=e=>e+g,t.reset(0)):(b=d.buffer,v=e=>e,t.reset(g));do{if(p=t.next(b),p){if(v(p.index)>=f)return h;this.positionInBuffer(e,v(p.index)-u,_);const t=this.getLineFeedCnt(e.piece.bufferIndex,r,_),s=_.line===r.line?_.column-r.column+i:_.column+1,o=s+p[0].length;if(c[h++]=(0,Bn.dr)(new m.Q(n+t,s,n+t,o),p,a),v(p.index)+p[0].length>=f)return h;if(h>=l)return h}}while(p);return h}findMatchesLineByLine(e,t,n,i){const r=[];let s=0;const o=new Bn.W5(t.wordSeparators,t.regex);let a=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===a)return[];const l=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===l)return[];let h=this.positionInBuffer(a.node,a.remainder);const c=this.positionInBuffer(l.node,l.remainder);if(a.node===l.node)return this.findMatchesInNode(a.node,o,e.startLineNumber,e.startColumn,h,c,t,n,i,s,r),r;let d=e.startLineNumber,u=a.node;for(;u!==l.node;){const l=this.getLineFeedCnt(u.piece.bufferIndex,h,u.piece.end);if(l>=1){const a=this._buffers[u.piece.bufferIndex].lineStarts,c=this.offsetInBuffer(u.piece.bufferIndex,u.piece.start),g=a[h.line+l],f=d===e.startLineNumber?e.startColumn:1;if(s=this.findMatchesInNode(u,o,d,f,h,this.positionInBuffer(u,g-c),t,n,i,s,r),s>=i)return r;d+=l}const c=d===e.startLineNumber?e.startColumn-1:0;if(d===e.endLineNumber){const a=this.getLineContent(d).substring(c,e.endColumn-1);return s=this._findMatchesInLine(t,o,a,e.endLineNumber,c,s,r,n,i),r}if(s=this._findMatchesInLine(t,o,this.getLineContent(d).substr(c),d,c,s,r,n,i),s>=i)return r;d++,a=this.nodeAt2(d,1),u=a.node,h=this.positionInBuffer(a.node,a.remainder)}if(d===e.endLineNumber){const a=d===e.startLineNumber?e.startColumn-1:0,l=this.getLineContent(d).substring(a,e.endColumn-1);return s=this._findMatchesInLine(t,o,l,e.endLineNumber,a,s,r,n,i),r}const g=d===e.startLineNumber?e.startColumn:1;return s=this.findMatchesInNode(l.node,o,d,g,h,c,t,n,i,s,r),r}_findMatchesInLine(e,t,n,i,r,s,o,a,l){const h=e.wordSeparators;if(!a&&e.simpleSearch){const t=e.simpleSearch,a=t.length,c=n.length;let d=-a;for(;-1!==(d=n.indexOf(t,d+a));)if((!h||(0,Bn.wC)(h,n,c,d,a))&&(o[s++]=new me.Dg(new m.Q(i,d+1+r,i,d+1+a+r),null),s>=l))return s;return s}let c;t.reset(0);do{if(c=t.next(n),c&&(o[s++]=(0,Bn.dr)(new m.Q(i,c.index+1+r,i,c.index+1+c[0].length+r),c,a),s>=l))return s}while(c);return s}insert(e,t,n=!1){if(this._EOLNormalized=this._EOLNormalized&&n,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==Cn){const{node:n,remainder:i,nodeStartOffset:r}=this.nodeAt(e),s=n.piece,o=s.bufferIndex,a=this.positionInBuffer(n,i);if(0===n.piece.bufferIndex&&s.end.line===this._lastChangeBufferPos.line&&s.end.column===this._lastChangeBufferPos.column&&r+s.length===e&&t.length<zn)return this.appendToNode(n,t),void this.computeBufferMetadata();if(r===e)this.insertContentToNodeLeft(t,n),this._searchCache.validate(e);else if(r+n.piece.length>e){const e=[];let r=new Hn(s.bufferIndex,a,s.end,this.getLineFeedCnt(s.bufferIndex,a,s.end),this.offsetInBuffer(o,s.end)-this.offsetInBuffer(o,a));if(this.shouldCheckCRLF()&&this.endWithCR(t)){if(10===this.nodeCharCodeAt(n,i)){const e={line:r.start.line+1,column:0};r=new Hn(r.bufferIndex,e,r.end,this.getLineFeedCnt(r.bufferIndex,e,r.end),r.length-1),t+="\n"}}if(this.shouldCheckCRLF()&&this.startWithLF(t)){if(13===this.nodeCharCodeAt(n,i-1)){const r=this.positionInBuffer(n,i-1);this.deleteNodeTail(n,r),t="\r"+t,0===n.piece.length&&e.push(n)}else this.deleteNodeTail(n,a)}else this.deleteNodeTail(n,a);const l=this.createNewPieces(t);r.length>0&&this.rbInsertRight(n,r);let h=n;for(let t=0;t<l.length;t++)h=this.rbInsertRight(h,l[t]);this.deleteNodes(e)}else this.insertContentToNodeRight(t,n)}else{const e=this.createNewPieces(t);let n=this.rbInsertLeft(null,e[0]);for(let t=1;t<e.length;t++)n=this.rbInsertRight(n,e[t])}this.computeBufferMetadata()}delete(e,t){if(this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",t<=0||this.root===Cn)return;const n=this.nodeAt(e),i=this.nodeAt(e+t),r=n.node,s=i.node;if(r===s){const s=this.positionInBuffer(r,n.remainder),o=this.positionInBuffer(r,i.remainder);if(n.nodeStartOffset===e){if(t===r.piece.length){const e=r.next();return Nn(this,r),this.validateCRLFWithPrevNode(e),void this.computeBufferMetadata()}return this.deleteNodeHead(r,o),this._searchCache.validate(e),this.validateCRLFWithPrevNode(r),void this.computeBufferMetadata()}return n.nodeStartOffset+r.piece.length===e+t?(this.deleteNodeTail(r,s),this.validateCRLFWithNextNode(r),void this.computeBufferMetadata()):(this.shrinkNode(r,s,o),void this.computeBufferMetadata())}const o=[],a=this.positionInBuffer(r,n.remainder);this.deleteNodeTail(r,a),this._searchCache.validate(e),0===r.piece.length&&o.push(r);const l=this.positionInBuffer(s,i.remainder);this.deleteNodeHead(s,l),0===s.piece.length&&o.push(s);for(let c=r.next();c!==Cn&&c!==s;c=c.next())o.push(c);const h=0===r.piece.length?r.prev():r;this.deleteNodes(o),this.validateCRLFWithNextNode(h),this.computeBufferMetadata()}insertContentToNodeLeft(e,t){const n=[];if(this.shouldCheckCRLF()&&this.endWithCR(e)&&this.startWithLF(t)){const i=t.piece,r={line:i.start.line+1,column:0},s=new Hn(i.bufferIndex,r,i.end,this.getLineFeedCnt(i.bufferIndex,r,i.end),i.length-1);t.piece=s,e+="\n",Dn(this,t,-1,-1),0===t.piece.length&&n.push(t)}const i=this.createNewPieces(e);let r=this.rbInsertLeft(t,i[i.length-1]);for(let s=i.length-2;s>=0;s--)r=this.rbInsertLeft(r,i[s]);this.validateCRLFWithPrevNode(r),this.deleteNodes(n)}insertContentToNodeRight(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+="\n");const n=this.createNewPieces(e),i=this.rbInsertRight(t,n[0]);let r=i;for(let s=1;s<n.length;s++)r=this.rbInsertRight(r,n[s]);this.validateCRLFWithPrevNode(i)}positionInBuffer(e,t,n){const i=e.piece,r=e.piece.bufferIndex,s=this._buffers[r].lineStarts,o=s[i.start.line]+i.start.column+t;let a=i.start.line,l=i.end.line,h=0,c=0,d=0;for(;a<=l&&(h=a+(l-a)/2|0,d=s[h],h!==l);)if(c=s[h+1],o<d)l=h-1;else{if(!(o>=c))break;a=h+1}return n?(n.line=h,n.column=o-d,null):{line:h,column:o-d}}getLineFeedCnt(e,t,n){if(0===n.column)return n.line-t.line;const i=this._buffers[e].lineStarts;if(n.line===i.length-1)return n.line-t.line;const r=i[n.line+1],s=i[n.line]+n.column;if(r>s+1)return n.line-t.line;const o=s-1;return 13===this._buffers[e].buffer.charCodeAt(o)?n.line-t.line+1:n.line-t.line}offsetInBuffer(e,t){return this._buffers[e].lineStarts[t.line]+t.column}deleteNodes(e){for(let t=0;t<e.length;t++)Nn(this,e[t])}createNewPieces(e){if(e.length>zn){const t=[];for(;e.length>zn;){const n=e.charCodeAt(65534);let i;13===n||n>=55296&&n<=56319?(i=e.substring(0,65534),e=e.substring(65534)):(i=e.substring(0,zn),e=e.substring(zn));const r=Wn(i);t.push(new Hn(this._buffers.length,{line:0,column:0},{line:r.length-1,column:i.length-r[r.length-1]},r.length-1,i.length)),this._buffers.push(new Un(i,r))}const n=Wn(e);return t.push(new Hn(this._buffers.length,{line:0,column:0},{line:n.length-1,column:e.length-n[n.length-1]},n.length-1,e.length)),this._buffers.push(new Un(e,n)),t}let t=this._buffers[0].buffer.length;const n=Wn(e,!1);let i=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===t&&0!==t&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},i=this._lastChangeBufferPos;for(let e=0;e<n.length;e++)n[e]+=t+1;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(n.slice(1)),this._buffers[0].buffer+="_"+e,t+=1}else{if(0!==t)for(let e=0;e<n.length;e++)n[e]+=t;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(n.slice(1)),this._buffers[0].buffer+=e}const r=this._buffers[0].buffer.length,s=this._buffers[0].lineStarts.length-1,o={line:s,column:r-this._buffers[0].lineStarts[s]},a=new Hn(0,i,o,this.getLineFeedCnt(0,i,o),r-t);return this._lastChangeBufferPos=o,[a]}getLineRawContent(e,t=0){let n=this.root,i="";const r=this._searchCache.get2(e);if(r){n=r.node;const s=this.getAccumulatedValue(n,e-r.nodeStartLineNumber-1),o=this._buffers[n.piece.bufferIndex].buffer,a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);if(r.nodeStartLineNumber+n.piece.lineFeedCnt!==e){const i=this.getAccumulatedValue(n,e-r.nodeStartLineNumber);return o.substring(a+s,a+i-t)}i=o.substring(a+s,a+n.piece.length)}else{let r=0;const s=e;for(;n!==Cn;)if(n.left!==Cn&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){const i=this.getAccumulatedValue(n,e-n.lf_left-2),o=this.getAccumulatedValue(n,e-n.lf_left-1),a=this._buffers[n.piece.bufferIndex].buffer,l=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return r+=n.size_left,this._searchCache.set({node:n,nodeStartOffset:r,nodeStartLineNumber:s-(e-1-n.lf_left)}),a.substring(l+i,l+o-t)}if(n.lf_left+n.piece.lineFeedCnt===e-1){const t=this.getAccumulatedValue(n,e-n.lf_left-2),r=this._buffers[n.piece.bufferIndex].buffer,s=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);i=r.substring(s+t,s+n.piece.length);break}e-=n.lf_left+n.piece.lineFeedCnt,r+=n.size_left+n.piece.length,n=n.right}}for(n=n.next();n!==Cn;){const e=this._buffers[n.piece.bufferIndex].buffer;if(n.piece.lineFeedCnt>0){const r=this.getAccumulatedValue(n,0),s=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return i+=e.substring(s,s+r-t),i}{const t=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);i+=e.substr(t,n.piece.length)}n=n.next()}return i}computeBufferMetadata(){let e=this.root,t=1,n=0;for(;e!==Cn;)t+=e.lf_left+e.piece.lineFeedCnt,n+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=n,this._searchCache.validate(this._length)}getIndexOf(e,t){const n=e.piece,i=this.positionInBuffer(e,t),r=i.line-n.start.line;if(this.offsetInBuffer(n.bufferIndex,n.end)-this.offsetInBuffer(n.bufferIndex,n.start)===t){const t=this.getLineFeedCnt(e.piece.bufferIndex,n.start,i);if(t!==r)return{index:t,remainder:0}}return{index:r,remainder:i.column}}getAccumulatedValue(e,t){if(t<0)return 0;const n=e.piece,i=this._buffers[n.bufferIndex].lineStarts,r=n.start.line+t+1;return r>n.end.line?i[n.end.line]+n.end.column-i[n.start.line]-n.start.column:i[r]-i[n.start.line]-n.start.column}deleteNodeTail(e,t){const n=e.piece,i=n.lineFeedCnt,r=this.offsetInBuffer(n.bufferIndex,n.end),s=t,o=this.offsetInBuffer(n.bufferIndex,s),a=this.getLineFeedCnt(n.bufferIndex,n.start,s),l=a-i,h=o-r,c=n.length+h;e.piece=new Hn(n.bufferIndex,n.start,s,a,c),Dn(this,e,h,l)}deleteNodeHead(e,t){const n=e.piece,i=n.lineFeedCnt,r=this.offsetInBuffer(n.bufferIndex,n.start),s=t,o=this.getLineFeedCnt(n.bufferIndex,s,n.end),a=o-i,l=r-this.offsetInBuffer(n.bufferIndex,s),h=n.length+l;e.piece=new Hn(n.bufferIndex,s,n.end,o,h),Dn(this,e,l,a)}shrinkNode(e,t,n){const i=e.piece,r=i.start,s=i.end,o=i.length,a=i.lineFeedCnt,l=t,h=this.getLineFeedCnt(i.bufferIndex,i.start,l),c=this.offsetInBuffer(i.bufferIndex,t)-this.offsetInBuffer(i.bufferIndex,r);e.piece=new Hn(i.bufferIndex,i.start,l,h,c),Dn(this,e,c-o,h-a);const d=new Hn(i.bufferIndex,n,s,this.getLineFeedCnt(i.bufferIndex,n,s),this.offsetInBuffer(i.bufferIndex,s)-this.offsetInBuffer(i.bufferIndex,n)),u=this.rbInsertRight(e,d);this.validateCRLFWithPrevNode(u)}appendToNode(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+="\n");const n=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),i=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;const r=Wn(t,!1);for(let d=0;d<r.length;d++)r[d]+=i;if(n){const e=this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-2];this._buffers[0].lineStarts.pop(),this._lastChangeBufferPos={line:this._lastChangeBufferPos.line-1,column:i-e}}this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(r.slice(1));const s=this._buffers[0].lineStarts.length-1,o={line:s,column:this._buffers[0].buffer.length-this._buffers[0].lineStarts[s]},a=e.piece.length+t.length,l=e.piece.lineFeedCnt,h=this.getLineFeedCnt(0,e.piece.start,o),c=h-l;e.piece=new Hn(e.piece.bufferIndex,e.piece.start,o,h,a),this._lastChangeBufferPos=o,Dn(this,e,t.length,c)}nodeAt(e){let t=this.root;const n=this._searchCache.get(e);if(n)return{node:n.node,nodeStartOffset:n.nodeStartOffset,remainder:e-n.nodeStartOffset};let i=0;for(;t!==Cn;)if(t.size_left>e)t=t.left;else{if(t.size_left+t.piece.length>=e){i+=t.size_left;const n={node:t,remainder:e-t.size_left,nodeStartOffset:i};return this._searchCache.set(n),n}e-=t.size_left+t.piece.length,i+=t.size_left+t.piece.length,t=t.right}return null}nodeAt2(e,t){let n=this.root,i=0;for(;n!==Cn;)if(n.left!==Cn&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){const r=this.getAccumulatedValue(n,e-n.lf_left-2),s=this.getAccumulatedValue(n,e-n.lf_left-1);return i+=n.size_left,{node:n,remainder:Math.min(r+t-1,s),nodeStartOffset:i}}if(n.lf_left+n.piece.lineFeedCnt===e-1){const r=this.getAccumulatedValue(n,e-n.lf_left-2);if(r+t-1<=n.piece.length)return{node:n,remainder:r+t-1,nodeStartOffset:i};t-=n.piece.length-r;break}e-=n.lf_left+n.piece.lineFeedCnt,i+=n.size_left+n.piece.length,n=n.right}for(n=n.next();n!==Cn;){if(n.piece.lineFeedCnt>0){const e=this.getAccumulatedValue(n,0),i=this.offsetOfNode(n);return{node:n,remainder:Math.min(t-1,e),nodeStartOffset:i}}if(n.piece.length>=t-1){return{node:n,remainder:t-1,nodeStartOffset:this.offsetOfNode(n)}}t-=n.piece.length,n=n.next()}return null}nodeCharCodeAt(e,t){if(e.piece.lineFeedCnt<1)return-1;const n=this._buffers[e.piece.bufferIndex],i=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return n.buffer.charCodeAt(i)}offsetOfNode(e){if(!e)return 0;let t=e.size_left;for(;e!==this.root;)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t}shouldCheckCRLF(){return!(this._EOLNormalized&&"\n"===this._EOL)}startWithLF(e){if("string"===typeof e)return 10===e.charCodeAt(0);if(e===Cn||0===e.piece.lineFeedCnt)return!1;const t=e.piece,n=this._buffers[t.bufferIndex].lineStarts,i=t.start.line,r=n[i]+t.start.column;if(i===n.length-1)return!1;return!(n[i+1]>r+1)&&10===this._buffers[t.bufferIndex].buffer.charCodeAt(r)}endWithCR(e){return"string"===typeof e?13===e.charCodeAt(e.length-1):e!==Cn&&0!==e.piece.lineFeedCnt&&13===this.nodeCharCodeAt(e,e.piece.length-1)}validateCRLFWithPrevNode(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){const t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}}validateCRLFWithNextNode(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}}fixCRLF(e,t){const n=[],i=this._buffers[e.piece.bufferIndex].lineStarts;let r;r=0===e.piece.end.column?{line:e.piece.end.line-1,column:i[e.piece.end.line]-i[e.piece.end.line-1]-1}:{line:e.piece.end.line,column:e.piece.end.column-1};const s=e.piece.length-1,o=e.piece.lineFeedCnt-1;e.piece=new Hn(e.piece.bufferIndex,e.piece.start,r,o,s),Dn(this,e,-1,-1),0===e.piece.length&&n.push(e);const a={line:t.piece.start.line+1,column:0},l=t.piece.length-1,h=this.getLineFeedCnt(t.piece.bufferIndex,a,t.piece.end);t.piece=new Hn(t.piece.bufferIndex,a,t.piece.end,h,l),Dn(this,t,-1,-1),0===t.piece.length&&n.push(t);const c=this.createNewPieces("\r\n");this.rbInsertRight(e,c[0]);for(let d=0;d<n.length;d++)Nn(this,n[d])}adjustCarriageReturnFromNext(e,t){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const n=t.next();if(this.startWithLF(n)){if(e+="\n",1===n.piece.length)Nn(this,n);else{const e=n.piece,t={line:e.start.line+1,column:0},i=e.length-1,r=this.getLineFeedCnt(e.bufferIndex,t,e.end);n.piece=new Hn(e.bufferIndex,t,e.end,r,i),Dn(this,n,-1,-1)}return!0}}return!1}iterate(e,t){if(e===Cn)return t(Cn);const n=this.iterate(e.left,t);return n?t(e)&&this.iterate(e.right,t):n}getNodeContent(e){if(e===Cn)return"";const t=this._buffers[e.piece.bufferIndex],n=e.piece,i=this.offsetInBuffer(n.bufferIndex,n.start),r=this.offsetInBuffer(n.bufferIndex,n.end);return t.buffer.substring(i,r)}getPieceContent(e){const t=this._buffers[e.bufferIndex],n=this.offsetInBuffer(e.bufferIndex,e.start),i=this.offsetInBuffer(e.bufferIndex,e.end);return t.buffer.substring(n,i)}rbInsertRight(e,t){const n=new Tn(t,1);n.left=Cn,n.right=Cn,n.parent=Cn,n.size_left=0,n.lf_left=0;if(this.root===Cn)this.root=n,n.color=0;else if(e.right===Cn)e.right=n,n.parent=e;else{const t=Sn(e.right);t.left=n,n.parent=t}return Rn(this,n),n}rbInsertLeft(e,t){const n=new Tn(t,1);if(n.left=Cn,n.right=Cn,n.parent=Cn,n.size_left=0,n.lf_left=0,this.root===Cn)this.root=n,n.color=0;else if(e.left===Cn)e.left=n,n.parent=e;else{const t=Ln(e.left);t.right=n,n.parent=t}return Rn(this,n),n}}class Gn extends r.jG{constructor(e,t,n,r,s,o,a){super(),this._onDidChangeContent=this._register(new i.vl),this._BOM=t,this._mightContainNonBasicASCII=!o,this._mightContainRTL=r,this._mightContainUnusualLineTerminators=s,this._pieceTree=new jn(e,n,a)}mightContainRTL(){return this._mightContainRTL}mightContainUnusualLineTerminators(){return this._mightContainUnusualLineTerminators}resetMightContainUnusualLineTerminators(){this._mightContainUnusualLineTerminators=!1}mightContainNonBasicASCII(){return this._mightContainNonBasicASCII}getBOM(){return this._BOM}getEOL(){return this._pieceTree.getEOL()}createSnapshot(e){return this._pieceTree.createSnapshot(e?this._BOM:"")}getOffsetAt(e,t){return this._pieceTree.getOffsetAt(e,t)}getPositionAt(e){return this._pieceTree.getPositionAt(e)}getRangeAt(e,t){const n=e+t,i=this.getPositionAt(e),r=this.getPositionAt(n);return new m.Q(i.lineNumber,i.column,r.lineNumber,r.column)}getValueInRange(e,t=0){if(e.isEmpty())return"";const n=this._getEndOfLine(t);return this._pieceTree.getValueInRange(e,n)}getValueLengthInRange(e,t=0){if(e.isEmpty())return 0;if(e.startLineNumber===e.endLineNumber)return e.endColumn-e.startColumn;const n=this.getOffsetAt(e.startLineNumber,e.startColumn),i=this.getOffsetAt(e.endLineNumber,e.endColumn);let r=0;const s=this._getEndOfLine(t),o=this.getEOL();if(s.length!==o.length){r=(s.length-o.length)*(e.endLineNumber-e.startLineNumber)}return i-n+r}getCharacterCountInRange(e,t=0){if(this._mightContainNonBasicASCII){let n=0;const i=e.startLineNumber,r=e.endLineNumber;for(let t=i;t<=r;t++){const s=this.getLineContent(t),o=t===i?e.startColumn-1:0,a=t===r?e.endColumn-1:s.length;for(let e=o;e<a;e++)h.pc(s.charCodeAt(e))?(n+=1,e+=1):n+=1}return n+=this._getEndOfLine(t).length*(r-i),n}return this.getValueLengthInRange(e,t)}getLength(){return this._pieceTree.getLength()}getLineCount(){return this._pieceTree.getLineCount()}getLinesContent(){return this._pieceTree.getLinesContent()}getLineContent(e){return this._pieceTree.getLineContent(e)}getLineCharCode(e,t){return this._pieceTree.getLineCharCode(e,t)}getLineLength(e){return this._pieceTree.getLineLength(e)}getLineFirstNonWhitespaceColumn(e){const t=h.HG(this.getLineContent(e));return-1===t?0:t+1}getLineLastNonWhitespaceColumn(e){const t=h.lT(this.getLineContent(e));return-1===t?0:t+2}_getEndOfLine(e){switch(e){case 1:return"\n";case 2:return"\r\n";case 0:return this.getEOL();default:throw new Error("Unknown EOL preference")}}setEOL(e){this._pieceTree.setEOL(e)}applyEdits(e,t,n){let i=this._mightContainRTL,r=this._mightContainUnusualLineTerminators,s=this._mightContainNonBasicASCII,o=!0,a=[];for(let p=0;p<e.length;p++){const t=e[p];o&&t._isTracked&&(o=!1);const n=t.range;if(t.text){let e=!0;s||(e=!h.aC(t.text),s=e),!i&&e&&(i=h.E_(t.text)),!r&&e&&(r=h.$X(t.text))}let l="",c=0,u=0,g=0;if(t.text){let e;[c,u,g,e]=(0,d.W)(t.text);const n=this.getEOL();l=0===e||e===("\r\n"===n?2:1)?t.text:t.text.replace(/\r\n|\r|\n/g,n)}a[p]={sortIndex:p,identifier:t.identifier||null,range:n,rangeOffset:this.getOffsetAt(n.startLineNumber,n.startColumn),rangeLength:this.getValueLengthInRange(n),text:l,eolCount:c,firstLineLength:u,lastLineLength:g,forceMoveMarkers:Boolean(t.forceMoveMarkers),isAutoWhitespaceEdit:t.isAutoWhitespaceEdit||!1}}a.sort(Gn._sortOpsAscending);let l=!1;for(let h=0,d=a.length-1;h<d;h++){const e=a[h].range.getEndPosition(),t=a[h+1].range.getStartPosition();if(t.isBeforeOrEqual(e)){if(t.isBefore(e))throw new Error("Overlapping ranges are not allowed!");l=!0}}o&&(a=this._reduceOperations(a));const c=n||t?Gn._getInverseEditRanges(a):[],u=[];if(t)for(let d=0;d<a.length;d++){const e=a[d],t=c[d];if(e.isAutoWhitespaceEdit&&e.range.isEmpty())for(let n=t.startLineNumber;n<=t.endLineNumber;n++){let i="";n===t.startLineNumber&&(i=this.getLineContent(e.range.startLineNumber),-1!==h.HG(i))||u.push({lineNumber:n,oldContent:i})}}let g=null;if(n){let e=0;g=[];for(let t=0;t<a.length;t++){const n=a[t],i=c[t],r=this.getValueInRange(n.range),s=n.rangeOffset+e;e+=n.text.length-r.length,g[t]={sortIndex:n.sortIndex,identifier:n.identifier,range:i,text:r,textChange:new Nt(n.rangeOffset,r,s,n.text)}}l||g.sort(((e,t)=>e.sortIndex-t.sortIndex))}this._mightContainRTL=i,this._mightContainUnusualLineTerminators=r,this._mightContainNonBasicASCII=s;const f=this._doApplyEdits(a);let m=null;if(t&&u.length>0){u.sort(((e,t)=>t.lineNumber-e.lineNumber)),m=[];for(let e=0,t=u.length;e<t;e++){const t=u[e].lineNumber;if(e>0&&u[e-1].lineNumber===t)continue;const n=u[e].oldContent,i=this.getLineContent(t);0!==i.length&&i!==n&&-1===h.HG(i)&&m.push(t)}}return this._onDidChangeContent.fire(),new me.F4(g,f,m)}_reduceOperations(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]}_toSingleEditOperation(e){let t=!1;const n=e[0].range,i=e[e.length-1].range,r=new m.Q(n.startLineNumber,n.startColumn,i.endLineNumber,i.endColumn);let s=n.startLineNumber,o=n.startColumn;const a=[];for(let d=0,g=e.length;d<g;d++){const n=e[d],i=n.range;t=t||n.forceMoveMarkers,a.push(this.getValueInRange(new m.Q(s,o,i.startLineNumber,i.startColumn))),n.text.length>0&&a.push(n.text),s=i.endLineNumber,o=i.endColumn}const l=a.join(""),[h,c,u]=(0,d.W)(l);return{sortIndex:0,identifier:e[0].identifier,range:r,rangeOffset:this.getOffsetAt(r.startLineNumber,r.startColumn),rangeLength:this.getValueLengthInRange(r,0),text:l,eolCount:h,firstLineLength:c,lastLineLength:u,forceMoveMarkers:t,isAutoWhitespaceEdit:!1}}_doApplyEdits(e){e.sort(Gn._sortOpsDescending);const t=[];for(let n=0;n<e.length;n++){const i=e[n],r=i.range.startLineNumber,s=i.range.startColumn,o=i.range.endLineNumber,a=i.range.endColumn;if(r===o&&s===a&&0===i.text.length)continue;i.text?(this._pieceTree.delete(i.rangeOffset,i.rangeLength),this._pieceTree.insert(i.rangeOffset,i.text,!0)):this._pieceTree.delete(i.rangeOffset,i.rangeLength);const l=new m.Q(r,s,o,a);t.push({range:l,rangeLength:i.rangeLength,text:i.text,rangeOffset:i.rangeOffset,forceMoveMarkers:i.forceMoveMarkers})}return t}findMatchesLineByLine(e,t,n,i){return this._pieceTree.findMatchesLineByLine(e,t,n,i)}static _getInverseEditRanges(e){const t=[];let n=0,i=0,r=null;for(let s=0,o=e.length;s<o;s++){const o=e[s];let a,l,h;if(r?r.range.endLineNumber===o.range.startLineNumber?(a=n,l=i+(o.range.startColumn-r.range.endColumn)):(a=n+(o.range.startLineNumber-r.range.endLineNumber),l=o.range.startColumn):(a=o.range.startLineNumber,l=o.range.startColumn),o.text.length>0){const e=o.eolCount+1;h=1===e?new m.Q(a,l,a,l+o.firstLineLength):new m.Q(a,l,a+e-1,o.lastLineLength+1)}else h=new m.Q(a,l,a,l);n=h.endLineNumber,i=h.endColumn,t.push(h),r=o}return t}static _sortOpsAscending(e,t){const n=m.Q.compareRangesUsingEnds(e.range,t.range);return 0===n?e.sortIndex-t.sortIndex:n}static _sortOpsDescending(e,t){const n=m.Q.compareRangesUsingEnds(e.range,t.range);return 0===n?t.sortIndex-e.sortIndex:-n}}class Kn{constructor(e,t,n,i,r,s,o,a,l){this._chunks=e,this._bom=t,this._cr=n,this._lf=i,this._crlf=r,this._containsRTL=s,this._containsUnusualLineTerminators=o,this._isBasicASCII=a,this._normalizeEOL=l}_getEOL(e){const t=this._cr+this._lf+this._crlf,n=this._cr+this._crlf;return 0===t?1===e?"\n":"\r\n":n>t/2?"\r\n":"\n"}create(e){const t=this._getEOL(e),n=this._chunks;if(this._normalizeEOL&&("\r\n"===t&&(this._cr>0||this._lf>0)||"\n"===t&&(this._cr>0||this._crlf>0)))for(let r=0,s=n.length;r<s;r++){const e=n[r].buffer.replace(/\r\n|\r|\n/g,t),i=Wn(e);n[r]=new Un(e,i)}const i=new Gn(n,this._bom,t,this._containsRTL,this._containsUnusualLineTerminators,this._isBasicASCII,this._normalizeEOL);return{textBuffer:i,disposable:i}}}class $n{constructor(){this.chunks=[],this.BOM="",this._hasPreviousChar=!1,this._previousChar=0,this._tmpLineStarts=[],this.cr=0,this.lf=0,this.crlf=0,this.containsRTL=!1,this.containsUnusualLineTerminators=!1,this.isBasicASCII=!0}acceptChunk(e){if(0===e.length)return;0===this.chunks.length&&h.LU(e)&&(this.BOM=h.r_,e=e.substr(1));const t=e.charCodeAt(e.length-1);13===t||t>=55296&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0,this._previousChar=t):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1,this._previousChar=t)}_acceptChunk1(e,t){(t||0!==e.length)&&(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))}_acceptChunk2(e){const t=function(e,t){e.length=0,e[0]=0;let n=1,i=0,r=0,s=0,o=!0;for(let l=0,h=t.length;l<h;l++){const a=t.charCodeAt(l);13===a?l+1<h&&10===t.charCodeAt(l+1)?(s++,e[n++]=l+2,l++):(i++,e[n++]=l+1):10===a?(r++,e[n++]=l+1):o&&9!==a&&(a<32||a>126)&&(o=!1)}const a=new Fn(Pn(e),i,r,s,o);return e.length=0,a}(this._tmpLineStarts,e);this.chunks.push(new Un(e,t.lineStarts)),this.cr+=t.cr,this.lf+=t.lf,this.crlf+=t.crlf,t.isBasicASCII||(this.isBasicASCII=!1,this.containsRTL||(this.containsRTL=h.E_(e)),this.containsUnusualLineTerminators||(this.containsUnusualLineTerminators=h.$X(e)))}finish(e=!0){return this._finish(),new Kn(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,e)}_finish(){if(0===this.chunks.length&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;const e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);const t=Wn(e.buffer);e.lineStarts=t,13===this._previousChar&&this.cr++}}}var Qn=n(6571),Yn=n(2083),Xn=n(1940),Jn=n(8381),Zn=n(4444);const ei=new class{clone(){return this}equals(e){return this===e}};class ti{constructor(e){this._default=e,this._store=[]}get(e){return e<this._store.length?this._store[e]:this._default}set(e,t){for(;e>=this._store.length;)this._store[this._store.length]=this._default;this._store[e]=t}replace(e,t,n){if(e>=this._store.length)return;if(0===t)return void this.insert(e,n);if(0===n)return void this.delete(e,t);const i=this._store.slice(0,e),r=this._store.slice(e+t),s=function(e,t){const n=[];for(let i=0;i<e;i++)n[i]=t;return n}(n,this._default);this._store=i.concat(s,r)}delete(e,t){0===t||e>=this._store.length||this._store.splice(e,t)}insert(e,t){if(0===t||e>=this._store.length)return;const n=[];for(let i=0;i<t;i++)n[i]=this._default;this._store=(0,o.nK)(this._store,e,n)}}class ni{get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._startLineNumber+this._tokens.length-1}constructor(e,t){this._startLineNumber=e,this._tokens=t}getLineTokens(e){return this._tokens[e-this._startLineNumber]}appendLineTokens(e){this._tokens.push(e)}}class ii{constructor(){this._tokens=[]}add(e,t){if(this._tokens.length>0){const n=this._tokens[this._tokens.length-1];if(n.endLineNumber+1===e)return void n.appendLineTokens(t)}this._tokens.push(new ni(e,[t]))}finalize(){return this._tokens}}class ri{static{this.defaultTokenMetadata=33587200}static createEmpty(e,t){const n=ri.defaultTokenMetadata,i=new Uint32Array(2);return i[0]=e.length,i[1]=n,new ri(i,e,t)}static createFromTextAndMetadata(e,t){let n=0,i="";const r=new Array;for(const{text:s,metadata:o}of e)r.push(n+s.length,o),n+=s.length,i+=s;return new ri(new Uint32Array(r),i,t)}constructor(e,t,n){this._lineTokensBrand=void 0,this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t,this.languageIdCodec=n}equals(e){return e instanceof ri&&this.slicedEquals(e,0,this._tokensCount)}slicedEquals(e,t,n){if(this._text!==e._text)return!1;if(this._tokensCount!==e._tokensCount)return!1;const i=t<<1,r=i+(n<<1);for(let s=i;s<r;s++)if(this._tokens[s]!==e._tokens[s])return!1;return!0}getLineContent(){return this._text}getCount(){return this._tokensCount}getStartOffset(e){return e>0?this._tokens[e-1<<1]:0}getMetadata(e){return this._tokens[1+(e<<1)]}getLanguageId(e){const t=this._tokens[1+(e<<1)],n=Je.x.getLanguageId(t);return this.languageIdCodec.decodeLanguageId(n)}getStandardTokenType(e){const t=this._tokens[1+(e<<1)];return Je.x.getTokenType(t)}getForeground(e){const t=this._tokens[1+(e<<1)];return Je.x.getForeground(t)}getClassName(e){const t=this._tokens[1+(e<<1)];return Je.x.getClassNameFromMetadata(t)}getInlineStyle(e,t){const n=this._tokens[1+(e<<1)];return Je.x.getInlineStyleFromMetadata(n,t)}getPresentation(e){const t=this._tokens[1+(e<<1)];return Je.x.getPresentationFromMetadata(t)}getEndOffset(e){return this._tokens[e<<1]}findTokenIndexAtOffset(e){return ri.findIndexInTokensArray(this._tokens,e)}inflate(){return this}sliceAndInflate(e,t,n){return new si(this,e,t,n)}static convertToEndOffset(e,t){const n=(e.length>>>1)-1;for(let i=0;i<n;i++)e[i<<1]=e[i+1<<1];e[n<<1]=t}static findIndexInTokensArray(e,t){if(e.length<=2)return 0;let n=0,i=(e.length>>>1)-1;for(;n<i;){const r=n+Math.floor((i-n)/2),s=e[r<<1];if(s===t)return r+1;s<t?n=r+1:s>t&&(i=r)}return n}withInserted(e){if(0===e.length)return this;let t=0,n=0,i="";const r=new Array;let s=0;for(;;){const o=t<this._tokensCount?this._tokens[t<<1]:-1,a=n<e.length?e[n]:null;if(-1!==o&&(null===a||o<=a.offset)){i+=this._text.substring(s,o);const e=this._tokens[1+(t<<1)];r.push(i.length,e),t++,s=o}else{if(!a)break;if(a.offset>s){i+=this._text.substring(s,a.offset);const e=this._tokens[1+(t<<1)];r.push(i.length,e),s=a.offset}i+=a.text,r.push(i.length,a.tokenMetadata),n++}}return new ri(new Uint32Array(r),i,this.languageIdCodec)}getTokenText(e){const t=this.getStartOffset(e),n=this.getEndOffset(e);return this._text.substring(t,n)}forEach(e){const t=this.getCount();for(let n=0;n<t;n++)e(n)}}class si{constructor(e,t,n,i){this._source=e,this._startOffset=t,this._endOffset=n,this._deltaOffset=i,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this.languageIdCodec=e.languageIdCodec,this._tokensCount=0;for(let r=this._firstTokenIndex,s=e.getCount();r<s;r++){if(e.getStartOffset(r)>=n)break;this._tokensCount++}}getMetadata(e){return this._source.getMetadata(this._firstTokenIndex+e)}getLanguageId(e){return this._source.getLanguageId(this._firstTokenIndex+e)}getLineContent(){return this._source.getLineContent().substring(this._startOffset,this._endOffset)}equals(e){return e instanceof si&&(this._startOffset===e._startOffset&&this._endOffset===e._endOffset&&this._deltaOffset===e._deltaOffset&&this._source.slicedEquals(e._source,this._firstTokenIndex,this._tokensCount))}getCount(){return this._tokensCount}getStandardTokenType(e){return this._source.getStandardTokenType(this._firstTokenIndex+e)}getForeground(e){return this._source.getForeground(this._firstTokenIndex+e)}getEndOffset(e){const t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset}getClassName(e){return this._source.getClassName(this._firstTokenIndex+e)}getInlineStyle(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)}getPresentation(e){return this._source.getPresentation(this._firstTokenIndex+e)}findTokenIndexAtOffset(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex}getTokenText(e){const t=this._firstTokenIndex+e,n=this._source.getStartOffset(t),i=this._source.getEndOffset(t);let r=this._source.getTokenText(t);return n<this._startOffset&&(r=r.substring(this._startOffset-n)),i>this._endOffset&&(r=r.substring(0,r.length-(i-this._endOffset))),r}forEach(e){for(let t=0;t<this.getCount();t++)e(t)}}class oi{constructor(e,t){this.tokenizationSupport=t,this.initialState=this.tokenizationSupport.getInitialState(),this.store=new li(e)}getStartState(e){return this.store.getStartState(e,this.initialState)}getFirstInvalidLine(){return this.store.getFirstInvalidLine(this.initialState)}}class ai extends oi{constructor(e,t,n,i){super(e,t),this._textModel=n,this._languageIdCodec=i}updateTokensUntilLine(e,t){const n=this._textModel.getLanguageId();for(;;){const i=this.getFirstInvalidLine();if(!i||i.lineNumber>t)break;const r=this._textModel.getLineContent(i.lineNumber),s=di(this._languageIdCodec,n,this.tokenizationSupport,r,!0,i.startState);e.add(i.lineNumber,s.tokens),this.store.setEndState(i.lineNumber,s.endState)}}getTokenTypeIfInsertingCharacter(e,t){const n=this.getStartState(e.lineNumber);if(!n)return 0;const i=this._textModel.getLanguageId(),r=this._textModel.getLineContent(e.lineNumber),s=r.substring(0,e.column-1)+t+r.substring(e.column-1),o=di(this._languageIdCodec,i,this.tokenizationSupport,s,!0,n),a=new ri(o.tokens,s,this._languageIdCodec);if(0===a.getCount())return 0;const l=a.findTokenIndexAtOffset(e.column-1);return a.getStandardTokenType(l)}tokenizeLineWithEdit(e,t,n){const i=e.lineNumber,r=e.column,s=this.getStartState(i);if(!s)return null;const o=this._textModel.getLineContent(i),a=o.substring(0,r-1)+n+o.substring(r-1+t),l=this._textModel.getLanguageIdAtPosition(i,0),h=di(this._languageIdCodec,l,this.tokenizationSupport,a,!0,s);return new ri(h.tokens,a,this._languageIdCodec)}hasAccurateTokensForLine(e){return e<this.store.getFirstInvalidEndStateLineNumberOrMax()}isCheapToTokenize(e){const t=this.store.getFirstInvalidEndStateLineNumberOrMax();return e<t||e===t&&this._textModel.getLineLength(e)<2048}tokenizeHeuristically(e,t,n){if(n<=this.store.getFirstInvalidEndStateLineNumberOrMax())return{heuristicTokens:!1};if(t<=this.store.getFirstInvalidEndStateLineNumberOrMax())return this.updateTokensUntilLine(e,n),{heuristicTokens:!1};let i=this.guessStartState(t);const r=this._textModel.getLanguageId();for(let s=t;s<=n;s++){const t=this._textModel.getLineContent(s),n=di(this._languageIdCodec,r,this.tokenizationSupport,t,!0,i);e.add(s,n.tokens),i=n.endState}return{heuristicTokens:!0}}guessStartState(e){let t=this._textModel.getLineFirstNonWhitespaceColumn(e);const n=[];let i=null;for(let o=e-1;t>1&&o>=1;o--){const e=this._textModel.getLineFirstNonWhitespaceColumn(o);if(0!==e&&(e<t&&(n.push(this._textModel.getLineContent(o)),t=e,i=this.getStartState(o),i)))break}i||(i=this.tokenizationSupport.getInitialState()),n.reverse();const r=this._textModel.getLanguageId();let s=i;for(const o of n){s=di(this._languageIdCodec,r,this.tokenizationSupport,o,!1,s).endState}return s}}class li{constructor(e){this.lineCount=e,this._tokenizationStateStore=new hi,this._invalidEndStatesLineNumbers=new ci,this._invalidEndStatesLineNumbers.addRange(new Zn.L(1,e+1))}getEndState(e){return this._tokenizationStateStore.getEndState(e)}setEndState(e,t){if(!t)throw new l.D7("Cannot set null/undefined state");this._invalidEndStatesLineNumbers.delete(e);const n=this._tokenizationStateStore.setEndState(e,t);return n&&e<this.lineCount&&this._invalidEndStatesLineNumbers.addRange(new Zn.L(e+1,e+2)),n}acceptChange(e,t){this.lineCount+=t-e.length,this._tokenizationStateStore.acceptChange(e,t),this._invalidEndStatesLineNumbers.addRangeAndResize(new Zn.L(e.startLineNumber,e.endLineNumberExclusive),t)}acceptChanges(e){for(const t of e){const[e]=(0,d.W)(t.text);this.acceptChange(new Qn.M(t.range.startLineNumber,t.range.endLineNumber+1),e+1)}}invalidateEndStateRange(e){this._invalidEndStatesLineNumbers.addRange(new Zn.L(e.startLineNumber,e.endLineNumberExclusive))}getFirstInvalidEndStateLineNumber(){return this._invalidEndStatesLineNumbers.min}getFirstInvalidEndStateLineNumberOrMax(){return this.getFirstInvalidEndStateLineNumber()||Number.MAX_SAFE_INTEGER}allStatesValid(){return null===this._invalidEndStatesLineNumbers.min}getStartState(e,t){return 1===e?t:this.getEndState(e-1)}getFirstInvalidLine(e){const t=this.getFirstInvalidEndStateLineNumber();if(null===t)return null;const n=this.getStartState(t,e);if(!n)throw new l.D7("Start state must be defined");return{lineNumber:t,startState:n}}}class hi{constructor(){this._lineEndStates=new ti(null)}getEndState(e){return this._lineEndStates.get(e)}setEndState(e,t){const n=this._lineEndStates.get(e);return(!n||!n.equals(t))&&(this._lineEndStates.set(e,t),!0)}acceptChange(e,t){let n=e.length;t>0&&n>0&&(n--,t--),this._lineEndStates.replace(e.startLineNumber,n,t)}}class ci{constructor(){this._ranges=[]}get min(){return 0===this._ranges.length?null:this._ranges[0].start}delete(e){const t=this._ranges.findIndex((t=>t.contains(e)));if(-1!==t){const n=this._ranges[t];n.start===e?n.endExclusive===e+1?this._ranges.splice(t,1):this._ranges[t]=new Zn.L(e+1,n.endExclusive):n.endExclusive===e+1?this._ranges[t]=new Zn.L(n.start,e):this._ranges.splice(t,1,new Zn.L(n.start,e),new Zn.L(e+1,n.endExclusive))}}addRange(e){Zn.L.addRange(e,this._ranges)}addRangeAndResize(e,t){let n=0;for(;!(n>=this._ranges.length||e.start<=this._ranges[n].endExclusive);)n++;let i=n;for(;!(i>=this._ranges.length||e.endExclusive<this._ranges[i].start);)i++;const r=t-e.length;for(let s=i;s<this._ranges.length;s++)this._ranges[s]=this._ranges[s].delta(r);if(n===i){const i=new Zn.L(e.start,e.start+t);i.isEmpty||this._ranges.splice(n,0,i)}else{const t=Math.min(e.start,this._ranges[n].start),s=Math.max(e.endExclusive,this._ranges[i-1].endExclusive),o=new Zn.L(t,s+r);o.isEmpty?this._ranges.splice(n,i-n):this._ranges.splice(n,i-n,o)}}toString(){return this._ranges.map((e=>e.toString())).join(" + ")}}function di(e,t,n,i,r,s){let o=null;if(n)try{o=n.tokenizeEncoded(i,r,s.clone())}catch(a){(0,l.dz)(a)}return o||(o=function(e,t){const n=new Uint32Array(2);return n[0]=0,n[1]=(32768|e|2<<24)>>>0,new Yn.rY(n,null===t?ei:t)}(e.encodeLanguageId(t),s)),ri.convertToEndOffset(o.tokens,i.length),o}class ui{constructor(e,t){this._tokenizerWithStateStore=e,this._backgroundTokenStore=t,this._isDisposed=!1,this._isScheduled=!1}dispose(){this._isDisposed=!0}handleChanges(){this._beginBackgroundTokenization()}_beginBackgroundTokenization(){!this._isScheduled&&this._tokenizerWithStateStore._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&(this._isScheduled=!0,(0,Xn.$6)((e=>{this._isScheduled=!1,this._backgroundTokenizeWithDeadline(e)})))}_backgroundTokenizeWithDeadline(e){const t=Date.now()+e.timeRemaining(),n=()=>{!this._isDisposed&&this._tokenizerWithStateStore._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&(this._backgroundTokenizeForAtLeast1ms(),Date.now()<t?(0,s._p)(n):this._beginBackgroundTokenization())};n()}_backgroundTokenizeForAtLeast1ms(){const e=this._tokenizerWithStateStore._textModel.getLineCount(),t=new ii,n=Jn.W.create(!1);do{if(n.elapsed()>1)break;if(this._tokenizeOneInvalidLine(t)>=e)break}while(this._hasLinesToTokenize());this._backgroundTokenStore.setTokens(t.finalize()),this.checkFinished()}_hasLinesToTokenize(){return!!this._tokenizerWithStateStore&&!this._tokenizerWithStateStore.store.allStatesValid()}_tokenizeOneInvalidLine(e){const t=this._tokenizerWithStateStore?.getFirstInvalidLine();return t?(this._tokenizerWithStateStore.updateTokensUntilLine(e,t.lineNumber),t.lineNumber):this._tokenizerWithStateStore._textModel.getLineCount()+1}checkFinished(){this._isDisposed||this._tokenizerWithStateStore.store.allStatesValid()&&this._backgroundTokenStore.backgroundTokenizationFinished()}requestTokens(e,t){this._tokenizerWithStateStore.store.invalidateEndStateRange(new Qn.M(e,t))}}class gi{constructor(){this._onDidChangeVisibleRanges=new i.vl,this.onDidChangeVisibleRanges=this._onDidChangeVisibleRanges.event,this._views=new Set}attachView(){const e=new fi((t=>{this._onDidChangeVisibleRanges.fire({view:e,state:t})}));return this._views.add(e),e}detachView(e){this._views.delete(e),this._onDidChangeVisibleRanges.fire({view:e,state:void 0})}}class fi{constructor(e){this.handleStateChange=e}setVisibleLines(e,t){const n=e.map((e=>new Qn.M(e.startLineNumber,e.endLineNumber+1)));this.handleStateChange({visibleLineRanges:n,stabilized:t})}}class mi extends r.jG{get lineRanges(){return this._lineRanges}constructor(e){super(),this._refreshTokens=e,this.runner=this._register(new Xn.uC((()=>this.update()),50)),this._computedLineRanges=[],this._lineRanges=[]}update(){(0,o.aI)(this._computedLineRanges,this._lineRanges,((e,t)=>e.equals(t)))||(this._computedLineRanges=this._lineRanges,this._refreshTokens())}handleStateChange(e){this._lineRanges=e.visibleLineRanges,e.stabilized?(this.runner.cancel(),this.update()):this.runner.schedule()}}class pi extends r.jG{get backgroundTokenizationState(){return this._backgroundTokenizationState}constructor(e,t,n){super(),this._languageIdCodec=e,this._textModel=t,this.getLanguageId=n,this._backgroundTokenizationState=1,this._onDidChangeBackgroundTokenizationState=this._register(new i.vl),this.onDidChangeBackgroundTokenizationState=this._onDidChangeBackgroundTokenizationState.event,this._onDidChangeTokens=this._register(new i.vl),this.onDidChangeTokens=this._onDidChangeTokens.event}tokenizeIfCheap(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)}}class _i extends pi{constructor(e,t,n,i){super(t,n,i),this._treeSitterService=e,this._tokenizationSupport=null,this._initialize()}_initialize(){const e=this.getLanguageId();this._tokenizationSupport&&this._lastLanguageId===e||(this._lastLanguageId=e,this._tokenizationSupport=Yn.OB.get(e))}getLineTokens(e){const t=this._textModel.getLineContent(e);if(this._tokenizationSupport){const n=this._tokenizationSupport.tokenizeEncoded(e,this._textModel);if(n)return new ri(n,t,this._languageIdCodec)}return ri.createEmpty(t,this._languageIdCodec)}resetTokenization(e=!0){e&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]}),this._initialize()}handleDidChangeAttached(){}handleDidChangeContent(e){e.isFlush&&this.resetTokenization(!1)}forceTokenization(e){}hasAccurateTokensForLine(e){return!0}isCheapToTokenize(e){return!0}getTokenTypeIfInsertingCharacter(e,t,n){return 0}tokenizeLineWithEdit(e,t,n){return null}get hasTokens(){return void 0!==this._treeSitterService.getParseResult(this._textModel)}}var bi=n(4432);const vi=new Uint32Array(0).buffer;class wi{static deleteBeginning(e,t){return null===e||e===vi?e:wi.delete(e,0,t)}static deleteEnding(e,t){if(null===e||e===vi)return e;const n=ki(e),i=n[n.length-2];return wi.delete(e,t,i)}static delete(e,t,n){if(null===e||e===vi||t===n)return e;const i=ki(e),r=i.length>>>1;if(0===t&&i[i.length-2]===n)return vi;const s=ri.findIndexInTokensArray(i,t),o=s>0?i[s-1<<1]:0;if(n<i[s<<1]){const o=n-t;for(let e=s;e<r;e++)i[e<<1]-=o;return e}let a,l;o!==t?(i[s<<1]=t,a=s+1<<1,l=t):(a=s<<1,l=o);const h=n-t;for(let d=s+1;d<r;d++){const e=i[d<<1]-h;e>l&&(i[a++]=e,i[a++]=i[1+(d<<1)],l=e)}if(a===i.length)return e;const c=new Uint32Array(a);return c.set(i.subarray(0,a),0),c.buffer}static append(e,t){if(t===vi)return e;if(e===vi)return t;if(null===e)return e;if(null===t)return null;const n=ki(e),i=ki(t),r=i.length>>>1,s=new Uint32Array(n.length+i.length);s.set(n,0);let o=n.length;const a=n[n.length-2];for(let l=0;l<r;l++)s[o++]=i[l<<1]+a,s[o++]=i[1+(l<<1)];return s.buffer}static insert(e,t,n){if(null===e||e===vi)return e;const i=ki(e),r=i.length>>>1;let s=ri.findIndexInTokensArray(i,t);if(s>0){i[s-1<<1]===t&&s--}for(let o=s;o<r;o++)i[o<<1]+=n;return e}}function ki(e){return e instanceof Uint32Array?e:new Uint32Array(e)}class yi{constructor(e){this._lineTokens=[],this._len=0,this._languageIdCodec=e}flush(){this._lineTokens=[],this._len=0}get hasTokens(){return this._lineTokens.length>0}getTokens(e,t,n){let i=null;if(t<this._len&&(i=this._lineTokens[t]),null!==i&&i!==vi)return new ri(ki(i),n,this._languageIdCodec);const r=new Uint32Array(2);return r[0]=n.length,r[1]=Ti(this._languageIdCodec.encodeLanguageId(e)),new ri(r,n,this._languageIdCodec)}static _massageTokens(e,t,n){const i=n?ki(n):null;if(0===t){let t=!1;if(i&&i.length>1&&(t=Je.x.getLanguageId(i[1])!==e),!t)return vi}if(!i||0===i.length){const n=new Uint32Array(2);return n[0]=t,n[1]=Ti(e),n.buffer}return i[i.length-2]=t,0===i.byteOffset&&i.byteLength===i.buffer.byteLength?i.buffer:i}_ensureLine(e){for(;e>=this._len;)this._lineTokens[this._len]=null,this._len++}_deleteLines(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._lineTokens.splice(e,t),this._len-=t)}_insertLines(e,t){if(0===t)return;const n=[];for(let i=0;i<t;i++)n[i]=null;this._lineTokens=o.nK(this._lineTokens,e,n),this._len+=t}setTokens(e,t,n,i,r){const s=yi._massageTokens(this._languageIdCodec.encodeLanguageId(e),n,i);this._ensureLine(t);const o=this._lineTokens[t];return this._lineTokens[t]=s,!!r&&!yi._equals(o,s)}static _equals(e,t){if(!e||!t)return!e&&!t;const n=ki(e),i=ki(t);if(n.length!==i.length)return!1;for(let r=0,s=n.length;r<s;r++)if(n[r]!==i[r])return!1;return!0}acceptEdit(e,t,n){this._acceptDeleteRange(e),this._acceptInsertText(new f.y(e.startLineNumber,e.startColumn),t,n)}_acceptDeleteRange(e){const t=e.startLineNumber-1;if(t>=this._len)return;if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;return void(this._lineTokens[t]=wi.delete(this._lineTokens[t],e.startColumn-1,e.endColumn-1))}this._lineTokens[t]=wi.deleteEnding(this._lineTokens[t],e.startColumn-1);const n=e.endLineNumber-1;let i=null;n<this._len&&(i=wi.deleteBeginning(this._lineTokens[n],e.endColumn-1)),this._lineTokens[t]=wi.append(this._lineTokens[t],i),this._deleteLines(e.startLineNumber,e.endLineNumber-e.startLineNumber)}_acceptInsertText(e,t,n){if(0===t&&0===n)return;const i=e.lineNumber-1;i>=this._len||(0!==t?(this._lineTokens[i]=wi.deleteEnding(this._lineTokens[i],e.column-1),this._lineTokens[i]=wi.insert(this._lineTokens[i],e.column-1,n),this._insertLines(e.lineNumber,t)):this._lineTokens[i]=wi.insert(this._lineTokens[i],e.column-1,n))}setMultilineTokens(e,t){if(0===e.length)return{changes:[]};const n=[];for(let i=0,r=e.length;i<r;i++){const r=e[i];let s=0,o=0,a=!1;for(let e=r.startLineNumber;e<=r.endLineNumber;e++)if(a)this.setTokens(t.getLanguageId(),e-1,t.getLineLength(e),r.getLineTokens(e),!1),o=e;else{this.setTokens(t.getLanguageId(),e-1,t.getLineLength(e),r.getLineTokens(e),!0)&&(a=!0,s=e,o=e)}a&&n.push({fromLineNumber:s,toLineNumber:o})}return{changes:n}}}function Ti(e){return(32768|e|2<<24|1024)>>>0}class Ci{constructor(e){this._pieces=[],this._isComplete=!1,this._languageIdCodec=e}flush(){this._pieces=[],this._isComplete=!1}isEmpty(){return 0===this._pieces.length}set(e,t){this._pieces=e||[],this._isComplete=t}setPartial(e,t){let n=e;if(t.length>0){const i=t[0].getRange(),r=t[t.length-1].getRange();if(!i||!r)return e;n=e.plusRange(i).plusRange(r)}let i=null;for(let r=0,s=this._pieces.length;r<s;r++){const e=this._pieces[r];if(e.endLineNumber<n.startLineNumber)continue;if(e.startLineNumber>n.endLineNumber){i=i||{index:r};break}if(e.removeTokens(n),e.isEmpty()){this._pieces.splice(r,1),r--,s--;continue}if(e.endLineNumber<n.startLineNumber)continue;if(e.startLineNumber>n.endLineNumber){i=i||{index:r};continue}const[t,o]=e.split(n);t.isEmpty()?i=i||{index:r}:o.isEmpty()||(this._pieces.splice(r,1,t,o),r++,s++,i=i||{index:r})}return i=i||{index:this._pieces.length},t.length>0&&(this._pieces=o.nK(this._pieces,i.index,t)),n}isComplete(){return this._isComplete}addSparseTokens(e,t){if(0===t.getLineContent().length)return t;const n=this._pieces;if(0===n.length)return t;const i=n[Ci._findFirstPieceWithLine(n,e)].getLineTokens(e);if(!i)return t;const r=t.getCount(),s=i.getCount();let o=0;const a=[];let l=0,h=0;const c=(e,t)=>{e!==h&&(h=e,a[l++]=e,a[l++]=t)};for(let d=0;d<s;d++){const e=i.getStartCharacter(d),n=i.getEndCharacter(d),s=i.getMetadata(d),a=((1&s?2048:0)|(2&s?4096:0)|(4&s?8192:0)|(8&s?16384:0)|(16&s?16744448:0)|(32&s?4278190080:0))>>>0,l=~a>>>0;for(;o<r&&t.getEndOffset(o)<=e;)c(t.getEndOffset(o),t.getMetadata(o)),o++;for(o<r&&t.getStartOffset(o)<e&&c(e,t.getMetadata(o));o<r&&t.getEndOffset(o)<n;)c(t.getEndOffset(o),t.getMetadata(o)&l|s&a),o++;if(o<r)c(n,t.getMetadata(o)&l|s&a),t.getEndOffset(o)===n&&o++;else{const e=Math.min(Math.max(0,o-1),r-1);c(n,t.getMetadata(e)&l|s&a)}}for(;o<r;)c(t.getEndOffset(o),t.getMetadata(o)),o++;return new ri(new Uint32Array(a),t.getLineContent(),this._languageIdCodec)}static _findFirstPieceWithLine(e,t){let n=0,i=e.length-1;for(;n<i;){let r=n+Math.floor((i-n)/2);if(e[r].endLineNumber<t)n=r+1;else{if(!(e[r].startLineNumber>t)){for(;r>n&&e[r-1].startLineNumber<=t&&t<=e[r-1].endLineNumber;)r--;return r}i=r-1}}return n}acceptEdit(e,t,n,i,r){for(const s of this._pieces)s.acceptEdit(e,t,n,i,r)}}var Si,Li=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},xi=function(e,t){return function(n,i){t(n,i,e)}};let Ei=Si=class extends Vt{constructor(e,t,n,s,o,a,l){super(),this._textModel=e,this._bracketPairsTextModelPart=t,this._languageId=n,this._attachedViews=s,this._languageService=o,this._languageConfigurationService=a,this._treeSitterService=l,this._semanticTokens=new Ci(this._languageService.languageIdCodec),this._onDidChangeLanguage=this._register(new i.vl),this.onDidChangeLanguage=this._onDidChangeLanguage.event,this._onDidChangeLanguageConfiguration=this._register(new i.vl),this.onDidChangeLanguageConfiguration=this._onDidChangeLanguageConfiguration.event,this._onDidChangeTokens=this._register(new i.vl),this.onDidChangeTokens=this._onDidChangeTokens.event,this._tokensDisposables=this._register(new r.Cm),this._register(this._languageConfigurationService.onDidChange((e=>{e.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})}))),this._register(i.Jh.filter(Yn.OB.onDidChange,(e=>e.changedLanguages.includes(this._languageId)))((()=>{this.createPreferredTokenProvider()}))),this.createPreferredTokenProvider()}createGrammarTokens(){return this._register(new Ai(this._languageService.languageIdCodec,this._textModel,(()=>this._languageId),this._attachedViews))}createTreeSitterTokens(){return this._register(new _i(this._treeSitterService,this._languageService.languageIdCodec,this._textModel,(()=>this._languageId)))}createTokens(e){const t=void 0!==this._tokens;this._tokens?.dispose(),this._tokens=e?this.createTreeSitterTokens():this.createGrammarTokens(),this._tokensDisposables.clear(),this._tokensDisposables.add(this._tokens.onDidChangeTokens((e=>{this._emitModelTokensChangedEvent(e)}))),this._tokensDisposables.add(this._tokens.onDidChangeBackgroundTokenizationState((e=>{this._bracketPairsTextModelPart.handleDidChangeBackgroundTokenizationState()}))),t&&this._tokens.resetTokenization()}createPreferredTokenProvider(){Yn.OB.get(this._languageId)?this._tokens instanceof _i||this.createTokens(!0):this._tokens instanceof Ai||this.createTokens(!1)}handleLanguageConfigurationServiceChange(e){e.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})}handleDidChangeContent(e){if(e.isFlush)this._semanticTokens.flush();else if(!e.isEolChange)for(const t of e.changes){const[e,n,i]=(0,d.W)(t.text);this._semanticTokens.acceptEdit(t.range,e,n,i,t.text.length>0?t.text.charCodeAt(0):0)}this._tokens.handleDidChangeContent(e)}handleDidChangeAttached(){this._tokens.handleDidChangeAttached()}getLineTokens(e){this.validateLineNumber(e);const t=this._tokens.getLineTokens(e);return this._semanticTokens.addSparseTokens(e,t)}_emitModelTokensChangedEvent(e){this._textModel._isDisposing()||(this._bracketPairsTextModelPart.handleDidChangeTokens(e),this._onDidChangeTokens.fire(e))}validateLineNumber(e){if(e<1||e>this._textModel.getLineCount())throw new l.D7("Illegal value for lineNumber")}get hasTokens(){return this._tokens.hasTokens}resetTokenization(){this._tokens.resetTokenization()}get backgroundTokenizationState(){return this._tokens.backgroundTokenizationState}forceTokenization(e){this.validateLineNumber(e),this._tokens.forceTokenization(e)}hasAccurateTokensForLine(e){return this.validateLineNumber(e),this._tokens.hasAccurateTokensForLine(e)}isCheapToTokenize(e){return this.validateLineNumber(e),this._tokens.isCheapToTokenize(e)}tokenizeIfCheap(e){this.validateLineNumber(e),this._tokens.tokenizeIfCheap(e)}getTokenTypeIfInsertingCharacter(e,t,n){return this._tokens.getTokenTypeIfInsertingCharacter(e,t,n)}tokenizeLineWithEdit(e,t,n){return this._tokens.tokenizeLineWithEdit(e,t,n)}setSemanticTokens(e,t){this._semanticTokens.set(e,t),this._emitModelTokensChangedEvent({semanticTokensApplied:null!==e,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]})}hasCompleteSemanticTokens(){return this._semanticTokens.isComplete()}hasSomeSemanticTokens(){return!this._semanticTokens.isEmpty()}setPartialSemanticTokens(e,t){if(this.hasCompleteSemanticTokens())return;const n=this._textModel.validateRange(this._semanticTokens.setPartial(e,t));this._emitModelTokensChangedEvent({semanticTokensApplied:!0,ranges:[{fromLineNumber:n.startLineNumber,toLineNumber:n.endLineNumber}]})}getWordAtPosition(e){this.assertNotDisposed();const t=this._textModel.validatePosition(e),n=this._textModel.getLineContent(t.lineNumber),i=this.getLineTokens(t.lineNumber),r=i.findTokenIndexAtOffset(t.column-1),[s,o]=Si._findLanguageBoundaries(i,r),a=(0,w.Th)(t.column,this.getLanguageConfiguration(i.getLanguageId(r)).getWordDefinition(),n.substring(s,o),s);if(a&&a.startColumn<=e.column&&e.column<=a.endColumn)return a;if(r>0&&s===t.column-1){const[s,o]=Si._findLanguageBoundaries(i,r-1),a=(0,w.Th)(t.column,this.getLanguageConfiguration(i.getLanguageId(r-1)).getWordDefinition(),n.substring(s,o),s);if(a&&a.startColumn<=e.column&&e.column<=a.endColumn)return a}return null}getLanguageConfiguration(e){return this._languageConfigurationService.getLanguageConfiguration(e)}static _findLanguageBoundaries(e,t){const n=e.getLanguageId(t);let i=0;for(let s=t;s>=0&&e.getLanguageId(s)===n;s--)i=e.getStartOffset(s);let r=e.getLineContent().length;for(let s=t,o=e.getCount();s<o&&e.getLanguageId(s)===n;s++)r=e.getEndOffset(s);return[i,r]}getWordUntilPosition(e){const t=this.getWordAtPosition(e);return t?{word:t.word.substr(0,e.column-t.startColumn),startColumn:t.startColumn,endColumn:e.column}:{word:"",startColumn:e.column,endColumn:e.column}}getLanguageId(){return this._languageId}getLanguageIdAtPosition(e,t){const n=this._textModel.validatePosition(new f.y(e,t)),i=this.getLineTokens(n.lineNumber);return i.getLanguageId(i.findTokenIndexAtOffset(n.column-1))}setLanguageId(e,t="api"){if(this._languageId===e)return;const n={oldLanguage:this._languageId,newLanguage:e,source:t};this._languageId=e,this._bracketPairsTextModelPart.handleDidChangeLanguage(n),this._tokens.resetTokenization(),this.createPreferredTokenProvider(),this._onDidChangeLanguage.fire(n),this._onDidChangeLanguageConfiguration.fire({})}};Ei=Si=Li([xi(4,v.L),xi(5,se),xi(6,bi.ITreeSitterParserService)],Ei);class Ai extends pi{constructor(e,t,n,i){super(e,t,n),this._tokenizer=null,this._defaultBackgroundTokenizer=null,this._backgroundTokenizer=this._register(new r.HE),this._tokens=new yi(this._languageIdCodec),this._debugBackgroundTokenizer=this._register(new r.HE),this._attachedViewStates=this._register(new r.$w),this._register(Yn.dG.onDidChange((e=>{const t=this.getLanguageId();-1!==e.changedLanguages.indexOf(t)&&this.resetTokenization()}))),this.resetTokenization(),this._register(i.onDidChangeVisibleRanges((({view:e,state:t})=>{if(t){let n=this._attachedViewStates.get(e);n||(n=new mi((()=>this.refreshRanges(n.lineRanges))),this._attachedViewStates.set(e,n)),n.handleStateChange(t)}else this._attachedViewStates.deleteAndDispose(e)})))}resetTokenization(e=!0){this._tokens.flush(),this._debugBackgroundTokens?.flush(),this._debugBackgroundStates&&(this._debugBackgroundStates=new li(this._textModel.getLineCount())),e&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]});const[t,n]=(()=>{if(this._textModel.isTooLargeForTokenization())return[null,null];const e=Yn.dG.get(this.getLanguageId());if(!e)return[null,null];let t;try{t=e.getInitialState()}catch(n){return(0,l.dz)(n),[null,null]}return[e,t]})();if(this._tokenizer=t&&n?new ai(this._textModel.getLineCount(),t,this._textModel,this._languageIdCodec):null,this._backgroundTokenizer.clear(),this._defaultBackgroundTokenizer=null,this._tokenizer){const e={setTokens:e=>{this.setTokens(e)},backgroundTokenizationFinished:()=>{if(2===this._backgroundTokenizationState)return;this._backgroundTokenizationState=2,this._onDidChangeBackgroundTokenizationState.fire()},setEndState:(e,t)=>{if(!this._tokenizer)return;const n=this._tokenizer.store.getFirstInvalidEndStateLineNumber();null!==n&&e>=n&&this._tokenizer?.store.setEndState(e,t)}};t&&t.createBackgroundTokenizer&&!t.backgroundTokenizerShouldOnlyVerifyTokens&&(this._backgroundTokenizer.value=t.createBackgroundTokenizer(this._textModel,e)),this._backgroundTokenizer.value||this._textModel.isTooLargeForTokenization()||(this._backgroundTokenizer.value=this._defaultBackgroundTokenizer=new ui(this._tokenizer,e),this._defaultBackgroundTokenizer.handleChanges()),t?.backgroundTokenizerShouldOnlyVerifyTokens&&t.createBackgroundTokenizer?(this._debugBackgroundTokens=new yi(this._languageIdCodec),this._debugBackgroundStates=new li(this._textModel.getLineCount()),this._debugBackgroundTokenizer.clear(),this._debugBackgroundTokenizer.value=t.createBackgroundTokenizer(this._textModel,{setTokens:e=>{this._debugBackgroundTokens?.setMultilineTokens(e,this._textModel)},backgroundTokenizationFinished(){},setEndState:(e,t)=>{this._debugBackgroundStates?.setEndState(e,t)}})):(this._debugBackgroundTokens=void 0,this._debugBackgroundStates=void 0,this._debugBackgroundTokenizer.value=void 0)}this.refreshAllVisibleLineTokens()}handleDidChangeAttached(){this._defaultBackgroundTokenizer?.handleChanges()}handleDidChangeContent(e){if(e.isFlush)this.resetTokenization(!1);else if(!e.isEolChange){for(const t of e.changes){const[e,n]=(0,d.W)(t.text);this._tokens.acceptEdit(t.range,e,n),this._debugBackgroundTokens?.acceptEdit(t.range,e,n)}this._debugBackgroundStates?.acceptChanges(e.changes),this._tokenizer&&this._tokenizer.store.acceptChanges(e.changes),this._defaultBackgroundTokenizer?.handleChanges()}}setTokens(e){const{changes:t}=this._tokens.setMultilineTokens(e,this._textModel);return t.length>0&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:t}),{changes:t}}refreshAllVisibleLineTokens(){const e=Qn.M.joinMany([...this._attachedViewStates].map((([e,t])=>t.lineRanges)));this.refreshRanges(e)}refreshRanges(e){for(const t of e)this.refreshRange(t.startLineNumber,t.endLineNumberExclusive-1)}refreshRange(e,t){if(!this._tokenizer)return;e=Math.max(1,Math.min(this._textModel.getLineCount(),e)),t=Math.min(this._textModel.getLineCount(),t);const n=new ii,{heuristicTokens:i}=this._tokenizer.tokenizeHeuristically(n,e,t),r=this.setTokens(n.finalize());if(i)for(const s of r.changes)this._backgroundTokenizer.value?.requestTokens(s.fromLineNumber,s.toLineNumber+1);this._defaultBackgroundTokenizer?.checkFinished()}forceTokenization(e){const t=new ii;this._tokenizer?.updateTokensUntilLine(t,e),this.setTokens(t.finalize()),this._defaultBackgroundTokenizer?.checkFinished()}hasAccurateTokensForLine(e){return!this._tokenizer||this._tokenizer.hasAccurateTokensForLine(e)}isCheapToTokenize(e){return!this._tokenizer||this._tokenizer.isCheapToTokenize(e)}getLineTokens(e){const t=this._textModel.getLineContent(e),n=this._tokens.getTokens(this._textModel.getLanguageId(),e-1,t);if(this._debugBackgroundTokens&&this._debugBackgroundStates&&this._tokenizer&&this._debugBackgroundStates.getFirstInvalidEndStateLineNumberOrMax()>e&&this._tokenizer.store.getFirstInvalidEndStateLineNumberOrMax()>e){const i=this._debugBackgroundTokens.getTokens(this._textModel.getLanguageId(),e-1,t);!n.equals(i)&&this._debugBackgroundTokenizer.value?.reportMismatchingTokens&&this._debugBackgroundTokenizer.value.reportMismatchingTokens(e)}return n}getTokenTypeIfInsertingCharacter(e,t,n){if(!this._tokenizer)return 0;const i=this._textModel.validatePosition(new f.y(e,t));return this.forceTokenization(i.lineNumber),this._tokenizer.getTokenTypeIfInsertingCharacter(i,n)}tokenizeLineWithEdit(e,t,n){if(!this._tokenizer)return null;const i=this._textModel.validatePosition(e);return this.forceTokenization(i.lineNumber),this._tokenizer.tokenizeLineWithEdit(i,t,n)}get hasTokens(){return this._tokens.hasTokens}}class Ii{constructor(){this.changeType=1}}class Mi{static applyInjectedText(e,t){if(!t||0===t.length)return e;let n="",i=0;for(const r of t)n+=e.substring(i,r.column-1),i=r.column-1,n+=r.options.content;return n+=e.substring(i),n}static fromDecorations(e){const t=[];for(const n of e)n.options.before&&n.options.before.content.length>0&&t.push(new Mi(n.ownerId,n.range.startLineNumber,n.range.startColumn,n.options.before,0)),n.options.after&&n.options.after.content.length>0&&t.push(new Mi(n.ownerId,n.range.endLineNumber,n.range.endColumn,n.options.after,1));return t.sort(((e,t)=>e.lineNumber===t.lineNumber?e.column===t.column?e.order-t.order:e.column-t.column:e.lineNumber-t.lineNumber)),t}constructor(e,t,n,i,r){this.ownerId=e,this.lineNumber=t,this.column=n,this.options=i,this.order=r}}class Ni{constructor(e,t,n){this.changeType=2,this.lineNumber=e,this.detail=t,this.injectedText=n}}class Ri{constructor(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t}}class Di{constructor(e,t,n,i){this.changeType=4,this.injectedTexts=i,this.fromLineNumber=e,this.toLineNumber=t,this.detail=n}}class Oi{constructor(){this.changeType=5}}class Bi{constructor(e,t,n,i){this.changes=e,this.versionId=t,this.isUndoing=n,this.isRedoing=i,this.resultingSelection=null}containsEvent(e){for(let t=0,n=this.changes.length;t<n;t++){if(this.changes[t].changeType===e)return!0}return!1}static merge(e,t){const n=[].concat(e.changes).concat(t.changes),i=t.versionId,r=e.isUndoing||t.isUndoing,s=e.isRedoing||t.isRedoing;return new Bi(n,i,r,s)}}class zi{constructor(e){this.changes=e}}class Pi{constructor(e,t){this.rawContentChangedEvent=e,this.contentChangedEvent=t}merge(e){const t=Bi.merge(this.rawContentChangedEvent,e.rawContentChangedEvent),n=Pi._mergeChangeEvents(this.contentChangedEvent,e.contentChangedEvent);return new Pi(t,n)}static _mergeChangeEvents(e,t){const n=[].concat(e.changes).concat(t.changes),i=t.eol,r=t.versionId,s=e.isUndoing||t.isUndoing,o=e.isRedoing||t.isRedoing,a=e.isFlush||t.isFlush;return{changes:n,eol:i,isEolChange:e.isEolChange&&t.isEolChange,versionId:r,isUndoing:s,isRedoing:o,isFlush:a}}}const Fi=(0,G.u1)("undoRedoService");class Wi{static{this._ID=0}constructor(){this.id=Wi._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}static{this.None=new Wi}}class Hi{static{this._ID=0}constructor(){this.id=Hi._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}static{this.None=new Hi}}var Ui,qi=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},Vi=function(e,t){return function(n,i){t(n,i,e)}};function ji(e,t){let n;return n="string"===typeof e?function(e){const t=new $n;return t.acceptChunk(e),t.finish()}(e):me.nk(e)?function(e){const t=new $n;let n;for(;"string"===typeof(n=e.read());)t.acceptChunk(n);return t.finish()}(e):e,n.create(t)}let Gi=0;class Ki{constructor(e){this._source=e,this._eos=!1}read(){if(this._eos)return null;const e=[];let t=0,n=0;for(;;){const i=this._source.read();if(null===i)return this._eos=!0,0===t?null:e.join("");if(i.length>0&&(e[t++]=i,n+=i.length),n>=65536)return e.join("")}}}const $i=()=>{throw new Error("Invalid change accessor")};let Qi=class extends r.jG{static{Ui=this}static{this._MODEL_SYNC_LIMIT=52428800}static{this.LARGE_FILE_SIZE_THRESHOLD=20971520}static{this.LARGE_FILE_LINE_COUNT_THRESHOLD=3e5}static{this.LARGE_FILE_HEAP_OPERATION_THRESHOLD=268435456}static{this.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:_.tabSize,indentSize:_.indentSize,insertSpaces:_.insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:_.trimAutoWhitespace,largeFileOptimizations:_.largeFileOptimizations,bracketPairColorizationOptions:_.bracketPairColorizationOptions}}static resolveOptions(e,t){if(t.detectIndentation){const n=Xt(e,t.tabSize,t.insertSpaces);return new me.X2({tabSize:n.tabSize,indentSize:"tabSize",insertSpaces:n.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL,bracketPairColorizationOptions:t.bracketPairColorizationOptions})}return new me.X2(t)}get onDidChangeLanguage(){return this._tokenizationTextModelPart.onDidChangeLanguage}get onDidChangeLanguageConfiguration(){return this._tokenizationTextModelPart.onDidChangeLanguageConfiguration}get onDidChangeTokens(){return this._tokenizationTextModelPart.onDidChangeTokens}onDidChangeContent(e){return this._eventEmitter.slowEvent((t=>e(t.contentChangedEvent)))}onDidChangeContentOrInjectedText(e){return(0,r.qE)(this._eventEmitter.fastEvent((t=>e(t))),this._onDidChangeInjectedText.event((t=>e(t))))}_isDisposing(){return this.__isDisposing}get tokenization(){return this._tokenizationTextModelPart}get bracketPairs(){return this._bracketPairs}get guides(){return this._guidesTextModelPart}constructor(e,t,n,s=null,o,a,l,d){super(),this._undoRedoService=o,this._languageService=a,this._languageConfigurationService=l,this.instantiationService=d,this._onWillDispose=this._register(new i.vl),this.onWillDispose=this._onWillDispose.event,this._onDidChangeDecorations=this._register(new lr((e=>this.handleBeforeFireDecorationsChangedEvent(e)))),this.onDidChangeDecorations=this._onDidChangeDecorations.event,this._onDidChangeOptions=this._register(new i.vl),this.onDidChangeOptions=this._onDidChangeOptions.event,this._onDidChangeAttached=this._register(new i.vl),this.onDidChangeAttached=this._onDidChangeAttached.event,this._onDidChangeInjectedText=this._register(new i.vl),this._eventEmitter=this._register(new hr),this._languageSelectionListener=this._register(new r.HE),this._deltaDecorationCallCnt=0,this._attachedViews=new gi,Gi++,this.id="$model"+Gi,this.isForSimpleWidget=n.isForSimpleWidget,this._associatedResource="undefined"===typeof s||null===s?c.r.parse("inmemory://model/"+Gi):s,this._attachedEditorCount=0;const{textBuffer:u,disposable:g}=ji(e,n.defaultEOL);this._buffer=u,this._bufferDisposable=g,this._options=Ui.resolveOptions(this._buffer,n);const f="string"===typeof t?t:t.languageId;"string"!==typeof t&&(this._languageSelectionListener.value=t.onDidChange((()=>this._setLanguage(t.languageId)))),this._bracketPairs=this._register(new yt(this,this._languageConfigurationService)),this._guidesTextModelPart=this._register(new Kt(this,this._languageConfigurationService)),this._decorationProvider=this._register(new Et(this)),this._tokenizationTextModelPart=this.instantiationService.createInstance(Ei,this,this._bracketPairs,f,this._attachedViews);const p=this._buffer.getLineCount(),_=this._buffer.getValueLengthInRange(new m.Q(1,1,p,this._buffer.getLineLength(p)+1),0);n.largeFileOptimizations?(this._isTooLargeForTokenization=_>Ui.LARGE_FILE_SIZE_THRESHOLD||p>Ui.LARGE_FILE_LINE_COUNT_THRESHOLD,this._isTooLargeForHeapOperation=_>Ui.LARGE_FILE_HEAP_OPERATION_THRESHOLD):(this._isTooLargeForTokenization=!1,this._isTooLargeForHeapOperation=!1),this._isTooLargeForSyncing=_>Ui._MODEL_SYNC_LIMIT,this._versionId=1,this._alternativeVersionId=1,this._initialUndoRedoSnapshot=null,this._isDisposed=!1,this.__isDisposing=!1,this._instanceId=h.tk(Gi),this._lastDecorationId=0,this._decorations=Object.create(null),this._decorationsTree=new Ji,this._commandManager=new Ht(this,this._undoRedoService),this._isUndoing=!1,this._isRedoing=!1,this._trimAutoWhitespaceLines=null,this._register(this._decorationProvider.onDidChange((()=>{this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._onDidChangeDecorations.endDeferredEmit()}))),this._languageService.requestRichLanguageFeatures(f),this._register(this._languageConfigurationService.onDidChange((e=>{this._bracketPairs.handleLanguageConfigurationServiceChange(e),this._tokenizationTextModelPart.handleLanguageConfigurationServiceChange(e)})))}dispose(){this.__isDisposing=!0,this._onWillDispose.fire(),this._tokenizationTextModelPart.dispose(),this._isDisposed=!0,super.dispose(),this._bufferDisposable.dispose(),this.__isDisposing=!1;const e=new Gn([],"","\n",!1,!1,!0,!0);e.dispose(),this._buffer=e,this._bufferDisposable=r.jG.None}_assertNotDisposed(){if(this._isDisposed)throw new l.D7("Model is disposed!")}_emitContentChangedEvent(e,t){this.__isDisposing||(this._tokenizationTextModelPart.handleDidChangeContent(t),this._bracketPairs.handleDidChangeContent(t),this._eventEmitter.fire(new Pi(e,t)))}setValue(e){if(this._assertNotDisposed(),null===e||void 0===e)throw(0,l.Qg)();const{textBuffer:t,disposable:n}=ji(e,this._options.defaultEOL);this._setValueFromTextBuffer(t,n)}_createContentChanged2(e,t,n,i,r,s,o,a){return{changes:[{range:e,rangeOffset:t,rangeLength:n,text:i}],eol:this._buffer.getEOL(),isEolChange:a,versionId:this.getVersionId(),isUndoing:r,isRedoing:s,isFlush:o}}_setValueFromTextBuffer(e,t){this._assertNotDisposed();const n=this.getFullModelRange(),i=this.getValueLengthInRange(n),r=this.getLineCount(),s=this.getLineMaxColumn(r);this._buffer=e,this._bufferDisposable.dispose(),this._bufferDisposable=t,this._increaseVersionId(),this._decorations=Object.create(null),this._decorationsTree=new Ji,this._commandManager.clear(),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new Bi([new Ii],this._versionId,!1,!1),this._createContentChanged2(new m.Q(1,1,r,s),0,i,this.getValue(),!1,!1,!0,!1))}setEOL(e){this._assertNotDisposed();const t=1===e?"\r\n":"\n";if(this._buffer.getEOL()===t)return;const n=this.getFullModelRange(),i=this.getValueLengthInRange(n),r=this.getLineCount(),s=this.getLineMaxColumn(r);this._onBeforeEOLChange(),this._buffer.setEOL(t),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new Bi([new Oi],this._versionId,!1,!1),this._createContentChanged2(new m.Q(1,1,r,s),0,i,this.getValue(),!1,!1,!1,!0))}_onBeforeEOLChange(){this._decorationsTree.ensureAllNodesHaveRanges(this)}_onAfterEOLChange(){const e=this.getVersionId(),t=this._decorationsTree.collectNodesPostOrder();for(let n=0,i=t.length;n<i;n++){const i=t[n],r=i.range,s=i.cachedAbsoluteStart-i.start,o=this._buffer.getOffsetAt(r.startLineNumber,r.startColumn),a=this._buffer.getOffsetAt(r.endLineNumber,r.endColumn);i.cachedAbsoluteStart=o,i.cachedAbsoluteEnd=a,i.cachedVersionId=e,i.start=o-s,i.end=a-s,wn(i)}}onBeforeAttached(){return this._attachedEditorCount++,1===this._attachedEditorCount&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0)),this._attachedViews.attachView()}onBeforeDetached(e){this._attachedEditorCount--,0===this._attachedEditorCount&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0)),this._attachedViews.detachView(e)}isAttachedToEditor(){return this._attachedEditorCount>0}getAttachedEditorCount(){return this._attachedEditorCount}isTooLargeForSyncing(){return this._isTooLargeForSyncing}isTooLargeForTokenization(){return this._isTooLargeForTokenization}isTooLargeForHeapOperation(){return this._isTooLargeForHeapOperation}isDisposed(){return this._isDisposed}isDominatedByLongLines(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;let e=0,t=0;const n=this._buffer.getLineCount();for(let i=1;i<=n;i++){const n=this._buffer.getLineLength(i);n>=1e4?t+=n:e+=n}return t>e}get uri(){return this._associatedResource}getOptions(){return this._assertNotDisposed(),this._options}getFormattingOptions(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}}updateOptions(e){this._assertNotDisposed();const t="undefined"!==typeof e.tabSize?e.tabSize:this._options.tabSize,n="undefined"!==typeof e.indentSize?e.indentSize:this._options.originalIndentSize,i="undefined"!==typeof e.insertSpaces?e.insertSpaces:this._options.insertSpaces,r="undefined"!==typeof e.trimAutoWhitespace?e.trimAutoWhitespace:this._options.trimAutoWhitespace,s="undefined"!==typeof e.bracketColorizationOptions?e.bracketColorizationOptions:this._options.bracketPairColorizationOptions,o=new me.X2({tabSize:t,indentSize:n,insertSpaces:i,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:r,bracketPairColorizationOptions:s});if(this._options.equals(o))return;const a=this._options.createChangeEvent(o);this._options=o,this._bracketPairs.handleDidChangeOptions(a),this._decorationProvider.handleDidChangeOptions(a),this._onDidChangeOptions.fire(a)}detectIndentation(e,t){this._assertNotDisposed();const n=Xt(this._buffer,t,e);this.updateOptions({insertSpaces:n.insertSpaces,tabSize:n.tabSize,indentSize:n.tabSize})}normalizeIndentation(e){return this._assertNotDisposed(),g(e,this._options.indentSize,this._options.insertSpaces)}getVersionId(){return this._assertNotDisposed(),this._versionId}mightContainRTL(){return this._buffer.mightContainRTL()}mightContainUnusualLineTerminators(){return this._buffer.mightContainUnusualLineTerminators()}removeUnusualLineTerminators(e=null){const t=this.findMatches(h._J.source,!1,!0,!1,null,!1,1073741824);this._buffer.resetMightContainUnusualLineTerminators(),this.pushEditOperations(e,t.map((e=>({range:e.range,text:null}))),(()=>null))}mightContainNonBasicASCII(){return this._buffer.mightContainNonBasicASCII()}getAlternativeVersionId(){return this._assertNotDisposed(),this._alternativeVersionId}getInitialUndoRedoSnapshot(){return this._assertNotDisposed(),this._initialUndoRedoSnapshot}getOffsetAt(e){this._assertNotDisposed();const t=this._validatePosition(e.lineNumber,e.column,0);return this._buffer.getOffsetAt(t.lineNumber,t.column)}getPositionAt(e){this._assertNotDisposed();const t=Math.min(this._buffer.getLength(),Math.max(0,e));return this._buffer.getPositionAt(t)}_increaseVersionId(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId}_overwriteVersionId(e){this._versionId=e}_overwriteAlternativeVersionId(e){this._alternativeVersionId=e}_overwriteInitialUndoRedoSnapshot(e){this._initialUndoRedoSnapshot=e}getValue(e,t=!1){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new l.D7("Operation would exceed heap memory limits");const n=this.getFullModelRange(),i=this.getValueInRange(n,e);return t?this._buffer.getBOM()+i:i}createSnapshot(e=!1){return new Ki(this._buffer.createSnapshot(e))}getValueLength(e,t=!1){this._assertNotDisposed();const n=this.getFullModelRange(),i=this.getValueLengthInRange(n,e);return t?this._buffer.getBOM().length+i:i}getValueInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(e),t)}getValueLengthInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(e),t)}getCharacterCountInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(e),t)}getLineCount(){return this._assertNotDisposed(),this._buffer.getLineCount()}getLineContent(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineContent(e)}getLineLength(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineLength(e)}getLinesContent(){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new l.D7("Operation would exceed heap memory limits");return this._buffer.getLinesContent()}getEOL(){return this._assertNotDisposed(),this._buffer.getEOL()}getEndOfLineSequence(){return this._assertNotDisposed(),"\n"===this._buffer.getEOL()?0:1}getLineMinColumn(e){return this._assertNotDisposed(),1}getLineMaxColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineLength(e)+1}getLineFirstNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)}getLineLastNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)}_validateRangeRelaxedNoAllocations(e){const t=this._buffer.getLineCount(),n=e.startLineNumber,i=e.startColumn;let r=Math.floor("number"!==typeof n||isNaN(n)?1:n),s=Math.floor("number"!==typeof i||isNaN(i)?1:i);if(r<1)r=1,s=1;else if(r>t)r=t,s=this.getLineMaxColumn(r);else if(s<=1)s=1;else{const e=this.getLineMaxColumn(r);s>=e&&(s=e)}const o=e.endLineNumber,a=e.endColumn;let l=Math.floor("number"!==typeof o||isNaN(o)?1:o),h=Math.floor("number"!==typeof a||isNaN(a)?1:a);if(l<1)l=1,h=1;else if(l>t)l=t,h=this.getLineMaxColumn(l);else if(h<=1)h=1;else{const e=this.getLineMaxColumn(l);h>=e&&(h=e)}return n===r&&i===s&&o===l&&a===h&&e instanceof m.Q&&!(e instanceof p.L)?e:new m.Q(r,s,l,h)}_isValidPosition(e,t,n){if("number"!==typeof e||"number"!==typeof t)return!1;if(isNaN(e)||isNaN(t))return!1;if(e<1||t<1)return!1;if((0|e)!==e||(0|t)!==t)return!1;if(e>this._buffer.getLineCount())return!1;if(1===t)return!0;if(t>this.getLineMaxColumn(e))return!1;if(1===n){const n=this._buffer.getLineCharCode(e,t-2);if(h.pc(n))return!1}return!0}_validatePosition(e,t,n){const i=Math.floor("number"!==typeof e||isNaN(e)?1:e),r=Math.floor("number"!==typeof t||isNaN(t)?1:t),s=this._buffer.getLineCount();if(i<1)return new f.y(1,1);if(i>s)return new f.y(s,this.getLineMaxColumn(s));if(r<=1)return new f.y(i,1);const o=this.getLineMaxColumn(i);if(r>=o)return new f.y(i,o);if(1===n){const e=this._buffer.getLineCharCode(i,r-2);if(h.pc(e))return new f.y(i,r-1)}return new f.y(i,r)}validatePosition(e){return this._assertNotDisposed(),e instanceof f.y&&this._isValidPosition(e.lineNumber,e.column,1)?e:this._validatePosition(e.lineNumber,e.column,1)}_isValidRange(e,t){const n=e.startLineNumber,i=e.startColumn,r=e.endLineNumber,s=e.endColumn;if(!this._isValidPosition(n,i,0))return!1;if(!this._isValidPosition(r,s,0))return!1;if(1===t){const e=i>1?this._buffer.getLineCharCode(n,i-2):0,t=s>1&&s<=this._buffer.getLineLength(r)?this._buffer.getLineCharCode(r,s-2):0,o=h.pc(e),a=h.pc(t);return!o&&!a}return!0}validateRange(e){if(this._assertNotDisposed(),e instanceof m.Q&&!(e instanceof p.L)&&this._isValidRange(e,1))return e;const t=this._validatePosition(e.startLineNumber,e.startColumn,0),n=this._validatePosition(e.endLineNumber,e.endColumn,0),i=t.lineNumber,r=t.column,s=n.lineNumber,o=n.column;{const e=r>1?this._buffer.getLineCharCode(i,r-2):0,t=o>1&&o<=this._buffer.getLineLength(s)?this._buffer.getLineCharCode(s,o-2):0,n=h.pc(e),a=h.pc(t);return n||a?i===s&&r===o?new m.Q(i,r-1,s,o-1):n&&a?new m.Q(i,r-1,s,o+1):n?new m.Q(i,r-1,s,o):new m.Q(i,r,s,o+1):new m.Q(i,r,s,o)}}modifyPosition(e,t){this._assertNotDisposed();const n=this.getOffsetAt(e)+t;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,n)))}getFullModelRange(){this._assertNotDisposed();const e=this.getLineCount();return new m.Q(1,1,e,this.getLineMaxColumn(e))}findMatchesLineByLine(e,t,n,i){return this._buffer.findMatchesLineByLine(e,t,n,i)}findMatches(e,t,n,i,r,s,o=999){this._assertNotDisposed();let a=null;null!==t&&(Array.isArray(t)||(t=[t]),t.every((e=>m.Q.isIRange(e)))&&(a=t.map((e=>this.validateRange(e))))),null===a&&(a=[this.getFullModelRange()]),a=a.sort(((e,t)=>e.startLineNumber-t.startLineNumber||e.startColumn-t.startColumn));const l=[];let h;if(l.push(a.reduce(((e,t)=>m.Q.areIntersecting(e,t)?e.plusRange(t):(l.push(e),t)))),!n&&e.indexOf("\n")<0){const t=new Bn.lt(e,n,i,r).parseSearchRequest();if(!t)return[];h=e=>this.findMatchesLineByLine(e,t,s,o)}else h=t=>Bn.hB.findMatches(this,new Bn.lt(e,n,i,r),t,s,o);return l.map(h).reduce(((e,t)=>e.concat(t)),[])}findNextMatch(e,t,n,i,r,s){this._assertNotDisposed();const o=this.validatePosition(t);if(!n&&e.indexOf("\n")<0){const t=new Bn.lt(e,n,i,r).parseSearchRequest();if(!t)return null;const a=this.getLineCount();let l=new m.Q(o.lineNumber,o.column,a,this.getLineMaxColumn(a)),h=this.findMatchesLineByLine(l,t,s,1);return Bn.hB.findNextMatch(this,new Bn.lt(e,n,i,r),o,s),h.length>0?h[0]:(l=new m.Q(1,1,o.lineNumber,this.getLineMaxColumn(o.lineNumber)),h=this.findMatchesLineByLine(l,t,s,1),h.length>0?h[0]:null)}return Bn.hB.findNextMatch(this,new Bn.lt(e,n,i,r),o,s)}findPreviousMatch(e,t,n,i,r,s){this._assertNotDisposed();const o=this.validatePosition(t);return Bn.hB.findPreviousMatch(this,new Bn.lt(e,n,i,r),o,s)}pushStackElement(){this._commandManager.pushStackElement()}popStackElement(){this._commandManager.popStackElement()}pushEOL(e){if(("\n"===this.getEOL()?0:1)!==e)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEOL(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_validateEditOperation(e){return e instanceof me.Wo?e:new me.Wo(e.identifier||null,this.validateRange(e.range),e.text,e.forceMoveMarkers||!1,e.isAutoWhitespaceEdit||!1,e._isTracked||!1)}_validateEditOperations(e){const t=[];for(let n=0,i=e.length;n<i;n++)t[n]=this._validateEditOperation(e[n]);return t}pushEditOperations(e,t,n,i){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(e,this._validateEditOperations(t),n,i)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_pushEditOperations(e,t,n,i){if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){const n=t.map((e=>({range:this.validateRange(e.range),text:e.text})));let i=!0;if(e)for(let t=0,r=e.length;t<r;t++){const r=e[t];let s=!1;for(let e=0,t=n.length;e<t;e++){const t=n[e].range,i=t.startLineNumber>r.endLineNumber,o=r.startLineNumber>t.endLineNumber;if(!i&&!o){s=!0;break}}if(!s){i=!1;break}}if(i)for(let e=0,r=this._trimAutoWhitespaceLines.length;e<r;e++){const i=this._trimAutoWhitespaceLines[e],r=this.getLineMaxColumn(i);let s=!0;for(let e=0,t=n.length;e<t;e++){const t=n[e].range,o=n[e].text;if(!(i<t.startLineNumber||i>t.endLineNumber)&&(!(i===t.startLineNumber&&t.startColumn===r&&t.isEmpty()&&o&&o.length>0&&"\n"===o.charAt(0))&&!(i===t.startLineNumber&&1===t.startColumn&&t.isEmpty()&&o&&o.length>0&&"\n"===o.charAt(o.length-1)))){s=!1;break}}if(s){const e=new m.Q(i,1,i,r);t.push(new me.Wo(null,e,null,!1,!1,!1))}}this._trimAutoWhitespaceLines=null}return null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEditOperation(e,t,n,i)}_applyUndo(e,t,n,i){const r=e.map((e=>{const t=this.getPositionAt(e.newPosition),n=this.getPositionAt(e.newEnd);return{range:new m.Q(t.lineNumber,t.column,n.lineNumber,n.column),text:e.oldText}}));this._applyUndoRedoEdits(r,t,!0,!1,n,i)}_applyRedo(e,t,n,i){const r=e.map((e=>{const t=this.getPositionAt(e.oldPosition),n=this.getPositionAt(e.oldEnd);return{range:new m.Q(t.lineNumber,t.column,n.lineNumber,n.column),text:e.newText}}));this._applyUndoRedoEdits(r,t,!1,!0,n,i)}_applyUndoRedoEdits(e,t,n,i,r,s){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._isUndoing=n,this._isRedoing=i,this.applyEdits(e,!1),this.setEOL(t),this._overwriteAlternativeVersionId(r)}finally{this._isUndoing=!1,this._isRedoing=!1,this._eventEmitter.endDeferredEmit(s),this._onDidChangeDecorations.endDeferredEmit()}}applyEdits(e,t=!1){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit();const n=this._validateEditOperations(e);return this._doApplyEdits(n,t)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_doApplyEdits(e,t){const n=this._buffer.getLineCount(),i=this._buffer.applyEdits(e,this._options.trimAutoWhitespace,t),r=this._buffer.getLineCount(),s=i.changes;if(this._trimAutoWhitespaceLines=i.trimAutoWhitespaceLineNumbers,0!==s.length){for(let n=0,i=s.length;n<i;n++){const e=s[n];this._decorationsTree.acceptReplace(e.rangeOffset,e.rangeLength,e.text.length,e.forceMoveMarkers)}const e=[];this._increaseVersionId();let t=n;for(let n=0,i=s.length;n<i;n++){const i=s[n],[a]=(0,d.W)(i.text);this._onDidChangeDecorations.fire();const l=i.range.startLineNumber,h=i.range.endLineNumber,c=h-l,u=a,g=Math.min(c,u),m=u-c,p=r-t-m+l,_=p,b=p+u,v=this._decorationsTree.getInjectedTextInInterval(this,this.getOffsetAt(new f.y(_,1)),this.getOffsetAt(new f.y(b,this.getLineMaxColumn(b))),0),w=Mi.fromDecorations(v),k=new o.j3(w);for(let t=g;t>=0;t--){const n=l+t,i=p+t;k.takeFromEndWhile((e=>e.lineNumber>i));const r=k.takeFromEndWhile((e=>e.lineNumber===i));e.push(new Ni(n,this.getLineContent(i),r))}if(g<c){const t=l+g;e.push(new Ri(t+1,h))}if(g<u){const n=new o.j3(w),i=l+g,s=u-g,a=r-t-s+i+1,h=[],c=[];for(let e=0;e<s;e++){const t=a+e;c[e]=this.getLineContent(t),n.takeWhile((e=>e.lineNumber<t)),h[e]=n.takeWhile((e=>e.lineNumber===t))}e.push(new Di(i+1,l+u,c,h))}t+=m}this._emitContentChangedEvent(new Bi(e,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:s,eol:this._buffer.getEOL(),isEolChange:!1,versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return null===i.reverseEdits?void 0:i.reverseEdits}undo(){return this._undoRedoService.undo(this.uri)}canUndo(){return this._undoRedoService.canUndo(this.uri)}redo(){return this._undoRedoService.redo(this.uri)}canRedo(){return this._undoRedoService.canRedo(this.uri)}handleBeforeFireDecorationsChangedEvent(e){if(null===e||0===e.size)return;const t=Array.from(e).map((e=>new Ni(e,this.getLineContent(e),this._getInjectedTextInLine(e))));this._onDidChangeInjectedText.fire(new zi(t))}changeDecorations(e,t=0){this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(t,e)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_changeDecorations(e,t){const n={addDecoration:(t,n)=>this._deltaDecorationsImpl(e,[],[{range:t,options:n}])[0],changeDecoration:(e,t)=>{this._changeDecorationImpl(e,t)},changeDecorationOptions:(e,t)=>{this._changeDecorationOptionsImpl(e,ar(t))},removeDecoration:t=>{this._deltaDecorationsImpl(e,[t],[])},deltaDecorations:(t,n)=>0===t.length&&0===n.length?[]:this._deltaDecorationsImpl(e,t,n)};let i=null;try{i=t(n)}catch(r){(0,l.dz)(r)}return n.addDecoration=$i,n.changeDecoration=$i,n.changeDecorationOptions=$i,n.removeDecoration=$i,n.deltaDecorations=$i,i}deltaDecorations(e,t,n=0){if(this._assertNotDisposed(),e||(e=[]),0===e.length&&0===t.length)return[];try{return this._deltaDecorationCallCnt++,this._deltaDecorationCallCnt>1&&(console.warn("Invoking deltaDecorations recursively could lead to leaking decorations."),(0,l.dz)(new Error("Invoking deltaDecorations recursively could lead to leaking decorations."))),this._onDidChangeDecorations.beginDeferredEmit(),this._deltaDecorationsImpl(n,e,t)}finally{this._onDidChangeDecorations.endDeferredEmit(),this._deltaDecorationCallCnt--}}_getTrackedRange(e){return this.getDecorationRange(e)}_setTrackedRange(e,t,n){const i=e?this._decorations[e]:null;if(!i)return t?this._deltaDecorationsImpl(0,[],[{range:t,options:or[n]}],!0)[0]:null;if(!t)return this._decorationsTree.delete(i),delete this._decorations[i.id],null;const r=this._validateRangeRelaxedNoAllocations(t),s=this._buffer.getOffsetAt(r.startLineNumber,r.startColumn),o=this._buffer.getOffsetAt(r.endLineNumber,r.endColumn);return this._decorationsTree.delete(i),i.reset(this.getVersionId(),s,o,r),i.setOptions(or[n]),this._decorationsTree.insert(i),i.id}removeAllDecorationsWithOwnerId(e){if(this._isDisposed)return;const t=this._decorationsTree.collectNodesFromOwner(e);for(let n=0,i=t.length;n<i;n++){const e=t[n];this._decorationsTree.delete(e),delete this._decorations[e.id]}}getDecorationOptions(e){const t=this._decorations[e];return t?t.options:null}getDecorationRange(e){const t=this._decorations[e];return t?this._decorationsTree.getNodeRange(this,t):null}getLineDecorations(e,t=0,n=!1){return e<1||e>this.getLineCount()?[]:this.getLinesDecorations(e,e,t,n)}getLinesDecorations(e,t,n=0,i=!1,r=!1){const s=this.getLineCount(),a=Math.min(s,Math.max(1,e)),l=Math.min(s,Math.max(1,t)),h=this.getLineMaxColumn(l),c=new m.Q(a,1,l,h),d=this._getDecorationsInRange(c,n,i,r);return(0,o.E4)(d,this._decorationProvider.getDecorationsInRange(c,n,i)),d}getDecorationsInRange(e,t=0,n=!1,i=!1,r=!1){const s=this.validateRange(e),a=this._getDecorationsInRange(s,t,n,r);return(0,o.E4)(a,this._decorationProvider.getDecorationsInRange(s,t,n,i)),a}getOverviewRulerDecorations(e=0,t=!1){return this._decorationsTree.getAll(this,e,t,!0,!1)}getInjectedTextDecorations(e=0){return this._decorationsTree.getAllInjectedText(this,e)}_getInjectedTextInLine(e){const t=this._buffer.getOffsetAt(e,1),n=t+this._buffer.getLineLength(e),i=this._decorationsTree.getInjectedTextInInterval(this,t,n,0);return Mi.fromDecorations(i).filter((t=>t.lineNumber===e))}getAllDecorations(e=0,t=!1){let n=this._decorationsTree.getAll(this,e,t,!1,!1);return n=n.concat(this._decorationProvider.getAllDecorations(e,t)),n}getAllMarginDecorations(e=0){return this._decorationsTree.getAll(this,e,!1,!1,!0)}_getDecorationsInRange(e,t,n,i){const r=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),s=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn);return this._decorationsTree.getAllInInterval(this,r,s,t,n,i)}getRangeAt(e,t){return this._buffer.getRangeAt(e,t-e)}_changeDecorationImpl(e,t){const n=this._decorations[e];if(!n)return;if(n.options.after){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.endLineNumber)}if(n.options.before){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.startLineNumber)}const i=this._validateRangeRelaxedNoAllocations(t),r=this._buffer.getOffsetAt(i.startLineNumber,i.startColumn),s=this._buffer.getOffsetAt(i.endLineNumber,i.endColumn);this._decorationsTree.delete(n),n.reset(this.getVersionId(),r,s,i),this._decorationsTree.insert(n),this._onDidChangeDecorations.checkAffectedAndFire(n.options),n.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(i.endLineNumber),n.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(i.startLineNumber)}_changeDecorationOptionsImpl(e,t){const n=this._decorations[e];if(!n)return;const i=!(!n.options.overviewRuler||!n.options.overviewRuler.color),r=!(!t.overviewRuler||!t.overviewRuler.color);if(this._onDidChangeDecorations.checkAffectedAndFire(n.options),this._onDidChangeDecorations.checkAffectedAndFire(t),n.options.after||t.after){const e=this._decorationsTree.getNodeRange(this,n);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(n.options.before||t.before){const e=this._decorationsTree.getNodeRange(this,n);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}const s=i!==r,o=function(e){return!!e.after||!!e.before}(t)!==Xi(n);s||o?(this._decorationsTree.delete(n),n.setOptions(t),this._decorationsTree.insert(n)):n.setOptions(t)}_deltaDecorationsImpl(e,t,n,i=!1){const r=this.getVersionId(),s=t.length;let o=0;const a=n.length;let l=0;this._onDidChangeDecorations.beginDeferredEmit();try{const h=new Array(a);for(;o<s||l<a;){let c=null;if(o<s){do{c=this._decorations[t[o++]]}while(!c&&o<s);if(c){if(c.options.after){const e=this._decorationsTree.getNodeRange(this,c);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(c.options.before){const e=this._decorationsTree.getNodeRange(this,c);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}this._decorationsTree.delete(c),i||this._onDidChangeDecorations.checkAffectedAndFire(c.options)}}if(l<a){if(!c){const e=++this._lastDecorationId,t=`${this._instanceId};${e}`;c=new hn(t,0,0),this._decorations[t]=c}const t=n[l],s=this._validateRangeRelaxedNoAllocations(t.range),o=ar(t.options),a=this._buffer.getOffsetAt(s.startLineNumber,s.startColumn),d=this._buffer.getOffsetAt(s.endLineNumber,s.endColumn);c.ownerId=e,c.reset(r,a,d,s),c.setOptions(o),c.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(s.endLineNumber),c.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(s.startLineNumber),i||this._onDidChangeDecorations.checkAffectedAndFire(o),this._decorationsTree.insert(c),h[l]=c.id,l++}else c&&delete this._decorations[c.id]}return h}finally{this._onDidChangeDecorations.endDeferredEmit()}}getLanguageId(){return this.tokenization.getLanguageId()}setLanguage(e,t){"string"===typeof e?(this._languageSelectionListener.clear(),this._setLanguage(e,t)):(this._languageSelectionListener.value=e.onDidChange((()=>this._setLanguage(e.languageId,t))),this._setLanguage(e.languageId,t))}_setLanguage(e,t){this.tokenization.setLanguageId(e,t),this._languageService.requestRichLanguageFeatures(e)}getLanguageIdAtPosition(e,t){return this.tokenization.getLanguageIdAtPosition(e,t)}getWordAtPosition(e){return this._tokenizationTextModelPart.getWordAtPosition(e)}getWordUntilPosition(e){return this._tokenizationTextModelPart.getWordUntilPosition(e)}normalizePosition(e,t){return e}getLineIndentColumn(e){return function(e){let t=0;for(const n of e){if(" "!==n&&"\t"!==n)break;t++}return t}(this.getLineContent(e))+1}};function Yi(e){return!(!e.options.overviewRuler||!e.options.overviewRuler.color)}function Xi(e){return!!e.options.after||!!e.options.before}Qi=Ui=qi([Vi(4,Fi),Vi(5,v.L),Vi(6,se),Vi(7,G._Y)],Qi);class Ji{constructor(){this._decorationsTree0=new dn,this._decorationsTree1=new dn,this._injectedTextDecorationsTree=new dn}ensureAllNodesHaveRanges(e){this.getAll(e,0,!1,!1,!1)}_ensureNodesHaveRanges(e,t){for(const n of t)null===n.range&&(n.range=e.getRangeAt(n.cachedAbsoluteStart,n.cachedAbsoluteEnd));return t}getAllInInterval(e,t,n,i,r,s){const o=e.getVersionId(),a=this._intervalSearch(t,n,i,r,o,s);return this._ensureNodesHaveRanges(e,a)}_intervalSearch(e,t,n,i,r,s){const o=this._decorationsTree0.intervalSearch(e,t,n,i,r,s),a=this._decorationsTree1.intervalSearch(e,t,n,i,r,s),l=this._injectedTextDecorationsTree.intervalSearch(e,t,n,i,r,s);return o.concat(a).concat(l)}getInjectedTextInInterval(e,t,n,i){const r=e.getVersionId(),s=this._injectedTextDecorationsTree.intervalSearch(t,n,i,!1,r,!1);return this._ensureNodesHaveRanges(e,s).filter((e=>e.options.showIfCollapsed||!e.range.isEmpty()))}getAllInjectedText(e,t){const n=e.getVersionId(),i=this._injectedTextDecorationsTree.search(t,!1,n,!1);return this._ensureNodesHaveRanges(e,i).filter((e=>e.options.showIfCollapsed||!e.range.isEmpty()))}getAll(e,t,n,i,r){const s=e.getVersionId(),o=this._search(t,n,i,s,r);return this._ensureNodesHaveRanges(e,o)}_search(e,t,n,i,r){if(n)return this._decorationsTree1.search(e,t,i,r);{const n=this._decorationsTree0.search(e,t,i,r),s=this._decorationsTree1.search(e,t,i,r),o=this._injectedTextDecorationsTree.search(e,t,i,r);return n.concat(s).concat(o)}}collectNodesFromOwner(e){const t=this._decorationsTree0.collectNodesFromOwner(e),n=this._decorationsTree1.collectNodesFromOwner(e),i=this._injectedTextDecorationsTree.collectNodesFromOwner(e);return t.concat(n).concat(i)}collectNodesPostOrder(){const e=this._decorationsTree0.collectNodesPostOrder(),t=this._decorationsTree1.collectNodesPostOrder(),n=this._injectedTextDecorationsTree.collectNodesPostOrder();return e.concat(t).concat(n)}insert(e){Xi(e)?this._injectedTextDecorationsTree.insert(e):Yi(e)?this._decorationsTree1.insert(e):this._decorationsTree0.insert(e)}delete(e){Xi(e)?this._injectedTextDecorationsTree.delete(e):Yi(e)?this._decorationsTree1.delete(e):this._decorationsTree0.delete(e)}getNodeRange(e,t){const n=e.getVersionId();return t.cachedVersionId!==n&&this._resolveNode(t,n),null===t.range&&(t.range=e.getRangeAt(t.cachedAbsoluteStart,t.cachedAbsoluteEnd)),t.range}_resolveNode(e,t){Xi(e)?this._injectedTextDecorationsTree.resolveNode(e,t):Yi(e)?this._decorationsTree1.resolveNode(e,t):this._decorationsTree0.resolveNode(e,t)}acceptReplace(e,t,n,i){this._decorationsTree0.acceptReplace(e,t,n,i),this._decorationsTree1.acceptReplace(e,t,n,i),this._injectedTextDecorationsTree.acceptReplace(e,t,n,i)}}function Zi(e){return e.replace(/[^a-z0-9\-_]/gi," ")}class er{constructor(e){this.color=e.color||"",this.darkColor=e.darkColor||""}}class tr extends er{constructor(e){super(e),this._resolvedColor=null,this.position="number"===typeof e.position?e.position:me.A5.Center}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=null}_resolveColor(e,t){if("string"===typeof e)return e;const n=e?t.getColor(e.id):null;return n?n.toString():""}}class nr{constructor(e){this.position=e?.position??me.ZS.Center,this.persistLane=e?.persistLane}}class ir extends er{constructor(e){super(e),this.position=e.position,this.sectionHeaderStyle=e.sectionHeaderStyle??null,this.sectionHeaderText=e.sectionHeaderText??null}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=void 0}_resolveColor(e,t){return"string"===typeof e?a.Q1.fromHex(e):t.getColor(e.id)}}class rr{static from(e){return e instanceof rr?e:new rr(e)}constructor(e){this.content=e.content||"",this.inlineClassName=e.inlineClassName||null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.attachedData=e.attachedData||null,this.cursorStops=e.cursorStops||null}}class sr{static register(e){return new sr(e)}static createDynamic(e){return new sr(e)}constructor(e){this.description=e.description,this.blockClassName=e.blockClassName?Zi(e.blockClassName):null,this.blockDoesNotCollapse=e.blockDoesNotCollapse??null,this.blockIsAfterEnd=e.blockIsAfterEnd??null,this.blockPadding=e.blockPadding??null,this.stickiness=e.stickiness||0,this.zIndex=e.zIndex||0,this.className=e.className?Zi(e.className):null,this.shouldFillLineOnLineBreak=e.shouldFillLineOnLineBreak??null,this.hoverMessage=e.hoverMessage||null,this.glyphMarginHoverMessage=e.glyphMarginHoverMessage||null,this.lineNumberHoverMessage=e.lineNumberHoverMessage||null,this.isWholeLine=e.isWholeLine||!1,this.showIfCollapsed=e.showIfCollapsed||!1,this.collapseOnReplaceEdit=e.collapseOnReplaceEdit||!1,this.overviewRuler=e.overviewRuler?new tr(e.overviewRuler):null,this.minimap=e.minimap?new ir(e.minimap):null,this.glyphMargin=e.glyphMarginClassName?new nr(e.glyphMargin):null,this.glyphMarginClassName=e.glyphMarginClassName?Zi(e.glyphMarginClassName):null,this.linesDecorationsClassName=e.linesDecorationsClassName?Zi(e.linesDecorationsClassName):null,this.lineNumberClassName=e.lineNumberClassName?Zi(e.lineNumberClassName):null,this.linesDecorationsTooltip=e.linesDecorationsTooltip?h.jy(e.linesDecorationsTooltip):null,this.firstLineDecorationClassName=e.firstLineDecorationClassName?Zi(e.firstLineDecorationClassName):null,this.marginClassName=e.marginClassName?Zi(e.marginClassName):null,this.inlineClassName=e.inlineClassName?Zi(e.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=e.beforeContentClassName?Zi(e.beforeContentClassName):null,this.afterContentClassName=e.afterContentClassName?Zi(e.afterContentClassName):null,this.after=e.after?rr.from(e.after):null,this.before=e.before?rr.from(e.before):null,this.hideInCommentTokens=e.hideInCommentTokens??!1,this.hideInStringTokens=e.hideInStringTokens??!1}}sr.EMPTY=sr.register({description:"empty"});const or=[sr.register({description:"tracked-range-always-grows-when-typing-at-edges",stickiness:0}),sr.register({description:"tracked-range-never-grows-when-typing-at-edges",stickiness:1}),sr.register({description:"tracked-range-grows-only-when-typing-before",stickiness:2}),sr.register({description:"tracked-range-grows-only-when-typing-after",stickiness:3})];function ar(e){return e instanceof sr?e:sr.createDynamic(e)}class lr extends r.jG{constructor(e){super(),this.handleBeforeFire=e,this._actual=this._register(new i.vl),this.event=this._actual.event,this._affectedInjectedTextLines=null,this._deferredCnt=0,this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._affectsLineNumber=!1}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(){this._deferredCnt--,0===this._deferredCnt&&(this._shouldFireDeferred&&this.doFire(),this._affectedInjectedTextLines?.clear(),this._affectedInjectedTextLines=null)}recordLineAffectedByInjectedText(e){this._affectedInjectedTextLines||(this._affectedInjectedTextLines=new Set),this._affectedInjectedTextLines.add(e)}checkAffectedAndFire(e){this._affectsMinimap||=!!e.minimap?.position,this._affectsOverviewRuler||=!!e.overviewRuler?.color,this._affectsGlyphMargin||=!!e.glyphMarginClassName,this._affectsLineNumber||=!!e.lineNumberClassName,this.tryFire()}fire(){this._affectsMinimap=!0,this._affectsOverviewRuler=!0,this._affectsGlyphMargin=!0,this.tryFire()}tryFire(){0===this._deferredCnt?this.doFire():this._shouldFireDeferred=!0}doFire(){this.handleBeforeFire(this._affectedInjectedTextLines);const e={affectsMinimap:this._affectsMinimap,affectsOverviewRuler:this._affectsOverviewRuler,affectsGlyphMargin:this._affectsGlyphMargin,affectsLineNumber:this._affectsLineNumber};this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._actual.fire(e)}}class hr extends r.jG{constructor(){super(),this._fastEmitter=this._register(new i.vl),this.fastEvent=this._fastEmitter.event,this._slowEmitter=this._register(new i.vl),this.slowEvent=this._slowEmitter.event,this._deferredCnt=0,this._deferredEvent=null}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(e=null){if(this._deferredCnt--,0===this._deferredCnt&&null!==this._deferredEvent){this._deferredEvent.rawContentChangedEvent.resultingSelection=e;const t=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(t),this._slowEmitter.fire(t)}}fire(e){this._deferredCnt>0?this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e:(this._fastEmitter.fire(e),this._slowEmitter.fire(e))}}var cr,dr=n(360),ur=n(5600),gr=n(6456),fr=n(146),mr=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},pr=function(e,t){return function(n,i){t(n,i,e)}};function _r(e){return e.toString()}class br{constructor(e,t,n){this.model=e,this._modelEventListeners=new r.Cm,this.model=e,this._modelEventListeners.add(e.onWillDispose((()=>t(e)))),this._modelEventListeners.add(e.onDidChangeLanguage((t=>n(e,t))))}dispose(){this._modelEventListeners.dispose()}}const vr=s.j9||s.zx?1:2;class wr{constructor(e,t,n,i,r,s,o,a){this.uri=e,this.initialUndoRedoSnapshot=t,this.time=n,this.sharesUndoRedoStack=i,this.heapSize=r,this.sha1=s,this.versionId=o,this.alternativeVersionId=a}}let kr=class extends r.jG{static{cr=this}static{this.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK=20971520}constructor(e,t,n,r){super(),this._configurationService=e,this._resourcePropertiesService=t,this._undoRedoService=n,this._instantiationService=r,this._onModelAdded=this._register(new i.vl),this.onModelAdded=this._onModelAdded.event,this._onModelRemoved=this._register(new i.vl),this.onModelRemoved=this._onModelRemoved.event,this._onModelModeChanged=this._register(new i.vl),this.onModelLanguageChanged=this._onModelModeChanged.event,this._modelCreationOptionsByLanguageAndResource=Object.create(null),this._models={},this._disposedModels=new Map,this._disposedModelsHeapSize=0,this._register(this._configurationService.onDidChangeConfiguration((e=>this._updateModelOptions(e)))),this._updateModelOptions(void 0)}static _readModelOptions(e,t){let n=_.tabSize;if(e.editor&&"undefined"!==typeof e.editor.tabSize){const t=parseInt(e.editor.tabSize,10);isNaN(t)||(n=t),n<1&&(n=1)}let i="tabSize";if(e.editor&&"undefined"!==typeof e.editor.indentSize&&"tabSize"!==e.editor.indentSize){const t=parseInt(e.editor.indentSize,10);isNaN(t)||(i=Math.max(t,1))}let r=_.insertSpaces;e.editor&&"undefined"!==typeof e.editor.insertSpaces&&(r="false"!==e.editor.insertSpaces&&Boolean(e.editor.insertSpaces));let s=vr;const o=e.eol;"\r\n"===o?s=2:"\n"===o&&(s=1);let a=_.trimAutoWhitespace;e.editor&&"undefined"!==typeof e.editor.trimAutoWhitespace&&(a="false"!==e.editor.trimAutoWhitespace&&Boolean(e.editor.trimAutoWhitespace));let l=_.detectIndentation;e.editor&&"undefined"!==typeof e.editor.detectIndentation&&(l="false"!==e.editor.detectIndentation&&Boolean(e.editor.detectIndentation));let h=_.largeFileOptimizations;e.editor&&"undefined"!==typeof e.editor.largeFileOptimizations&&(h="false"!==e.editor.largeFileOptimizations&&Boolean(e.editor.largeFileOptimizations));let c=_.bracketPairColorizationOptions;return e.editor?.bracketPairColorization&&"object"===typeof e.editor.bracketPairColorization&&(c={enabled:!!e.editor.bracketPairColorization.enabled,independentColorPoolPerBracketType:!!e.editor.bracketPairColorization.independentColorPoolPerBracketType}),{isForSimpleWidget:t,tabSize:n,indentSize:i,insertSpaces:r,detectIndentation:l,defaultEOL:s,trimAutoWhitespace:a,largeFileOptimizations:h,bracketPairColorizationOptions:c}}_getEOL(e,t){if(e)return this._resourcePropertiesService.getEOL(e,t);const n=this._configurationService.getValue("files.eol",{overrideIdentifier:t});return n&&"string"===typeof n&&"auto"!==n?n:3===s.OS||2===s.OS?"\n":"\r\n"}_shouldRestoreUndoStack(){const e=this._configurationService.getValue("files.restoreUndoStack");return"boolean"!==typeof e||e}getCreationOptions(e,t,n){const i="string"===typeof e?e:e.languageId;let r=this._modelCreationOptionsByLanguageAndResource[i+t];if(!r){const e=this._configurationService.getValue("editor",{overrideIdentifier:i,resource:t}),s=this._getEOL(t,i);r=cr._readModelOptions({editor:e,eol:s},n),this._modelCreationOptionsByLanguageAndResource[i+t]=r}return r}_updateModelOptions(e){const t=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);const n=Object.keys(this._models);for(let i=0,r=n.length;i<r;i++){const r=n[i],s=this._models[r],o=s.model.getLanguageId(),a=s.model.uri;if(e&&!e.affectsConfiguration("editor",{overrideIdentifier:o,resource:a})&&!e.affectsConfiguration("files.eol",{overrideIdentifier:o,resource:a}))continue;const l=t[o+a],h=this.getCreationOptions(o,a,s.model.isForSimpleWidget);cr._setModelOptionsForModel(s.model,h,l)}}static _setModelOptionsForModel(e,t,n){n&&n.defaultEOL!==t.defaultEOL&&1===e.getLineCount()&&e.setEOL(1===t.defaultEOL?0:1),n&&n.detectIndentation===t.detectIndentation&&n.insertSpaces===t.insertSpaces&&n.tabSize===t.tabSize&&n.indentSize===t.indentSize&&n.trimAutoWhitespace===t.trimAutoWhitespace&&(0,fr.aI)(n.bracketPairColorizationOptions,t.bracketPairColorizationOptions)||(t.detectIndentation?(e.detectIndentation(t.insertSpaces,t.tabSize),e.updateOptions({trimAutoWhitespace:t.trimAutoWhitespace,bracketColorizationOptions:t.bracketPairColorizationOptions})):e.updateOptions({insertSpaces:t.insertSpaces,tabSize:t.tabSize,indentSize:t.indentSize,trimAutoWhitespace:t.trimAutoWhitespace,bracketColorizationOptions:t.bracketPairColorizationOptions}))}_insertDisposedModel(e){this._disposedModels.set(_r(e.uri),e),this._disposedModelsHeapSize+=e.heapSize}_removeDisposedModel(e){const t=this._disposedModels.get(_r(e));return t&&(this._disposedModelsHeapSize-=t.heapSize),this._disposedModels.delete(_r(e)),t}_ensureDisposedModelsHeapSize(e){if(this._disposedModelsHeapSize>e){const t=[];for(this._disposedModels.forEach((e=>{e.sharesUndoRedoStack||t.push(e)})),t.sort(((e,t)=>e.time-t.time));t.length>0&&this._disposedModelsHeapSize>e;){const e=t.shift();this._removeDisposedModel(e.uri),null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}}}_createModelData(e,t,n,i){const r=this.getCreationOptions(t,n,i),s=this._instantiationService.createInstance(Qi,e,t,r,n);if(n&&this._disposedModels.has(_r(n))){const e=this._removeDisposedModel(n),t=this._undoRedoService.getElements(n),i=this._getSHA1Computer(),r=!!i.canComputeSHA1(s)&&i.computeSHA1(s)===e.sha1;if(r||e.sharesUndoRedoStack){for(const e of t.past)Wt(e)&&e.matchesResource(n)&&e.setModel(s);for(const e of t.future)Wt(e)&&e.matchesResource(n)&&e.setModel(s);this._undoRedoService.setElementsValidFlag(n,!0,(e=>Wt(e)&&e.matchesResource(n))),r&&(s._overwriteVersionId(e.versionId),s._overwriteAlternativeVersionId(e.alternativeVersionId),s._overwriteInitialUndoRedoSnapshot(e.initialUndoRedoSnapshot))}else null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}const o=_r(s.uri);if(this._models[o])throw new Error("ModelService: Cannot add model because it already exists!");const a=new br(s,(e=>this._onWillDispose(e)),((e,t)=>this._onDidChangeLanguage(e,t)));return this._models[o]=a,a}createModel(e,t,n,i=!1){let r;return r=t?this._createModelData(e,t,n,i):this._createModelData(e,Q.vH,n,i),this._onModelAdded.fire(r.model),r.model}getModels(){const e=[],t=Object.keys(this._models);for(let n=0,i=t.length;n<i;n++){const i=t[n];e.push(this._models[i].model)}return e}getModel(e){const t=_r(e),n=this._models[t];return n?n.model:null}_schemaShouldMaintainUndoRedoElements(e){return e.scheme===gr.ny.file||e.scheme===gr.ny.vscodeRemote||e.scheme===gr.ny.vscodeUserData||e.scheme===gr.ny.vscodeNotebookCell||"fake-fs"===e.scheme}_onWillDispose(e){const t=_r(e.uri),n=this._models[t],i=this._undoRedoService.getUriComparisonKey(e.uri)!==e.uri.toString();let r=!1,s=0;if(i||this._shouldRestoreUndoStack()&&this._schemaShouldMaintainUndoRedoElements(e.uri)){const t=this._undoRedoService.getElements(e.uri);if(t.past.length>0||t.future.length>0){for(const n of t.past)Wt(n)&&n.matchesResource(e.uri)&&(r=!0,s+=n.heapSize(e.uri),n.setModel(e.uri));for(const n of t.future)Wt(n)&&n.matchesResource(e.uri)&&(r=!0,s+=n.heapSize(e.uri),n.setModel(e.uri))}}const o=cr.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK,a=this._getSHA1Computer();if(r)if(i||!(s>o)&&a.canComputeSHA1(e))this._ensureDisposedModelsHeapSize(o-s),this._undoRedoService.setElementsValidFlag(e.uri,!1,(t=>Wt(t)&&t.matchesResource(e.uri))),this._insertDisposedModel(new wr(e.uri,n.model.getInitialUndoRedoSnapshot(),Date.now(),i,s,a.computeSHA1(e),e.getVersionId(),e.getAlternativeVersionId()));else{const e=n.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}else if(!i){const e=n.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}delete this._models[t],n.dispose(),delete this._modelCreationOptionsByLanguageAndResource[e.getLanguageId()+e.uri],this._onModelRemoved.fire(e)}_onDidChangeLanguage(e,t){const n=t.oldLanguage,i=e.getLanguageId(),r=this.getCreationOptions(n,e.uri,e.isForSimpleWidget),s=this.getCreationOptions(i,e.uri,e.isForSimpleWidget);cr._setModelOptionsForModel(e,s,r),this._onModelModeChanged.fire({model:e,oldLanguageId:n})}_getSHA1Computer(){return new yr}};kr=cr=mr([pr(0,K.pG),pr(1,dr.ITextResourcePropertiesService),pr(2,Fi),pr(3,G._Y)],kr);class yr{static{this.MAX_MODEL_SIZE=10485760}canComputeSHA1(e){return e.getValueLength()<=yr.MAX_MODEL_SIZE}computeSHA1(e){const t=new ur.v7,n=e.createSnapshot();let i;for(;i=n.read();)t.update(i);return t.digest()}}},8938:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITextModelService:()=>i});const i=(0,n(3591).u1)("textModelService")},8232:(e,t,n)=>{"use strict";n.r(t),n.d(t,{encodeSemanticTokensDto:()=>s});var i=n(1674),r=n(8067);function s(e){const t=new Uint32Array(function(e){let t=0;if(t+=2,"full"===e.type)t+=1+e.data.length;else{t+=1,t+=3*e.deltas.length;for(const n of e.deltas)n.data&&(t+=n.data.length)}return t}(e));let n=0;if(t[n++]=e.id,"full"===e.type)t[n++]=1,t[n++]=e.data.length,t.set(e.data,n),n+=e.data.length;else{t[n++]=2,t[n++]=e.deltas.length;for(const i of e.deltas)t[n++]=i.start,t[n++]=i.deleteCount,i.data?(t[n++]=i.data.length,t.set(i.data,n),n+=i.data.length):t[n++]=0}return function(e){const t=new Uint8Array(e.buffer,e.byteOffset,4*e.length);return r.cm()||function(e){for(let t=0,n=e.length;t<n;t+=4){const n=e[t+0],i=e[t+1],r=e[t+2],s=e[t+3];e[t+0]=s,e[t+1]=r,e[t+2]=i,e[t+3]=n}}(t),i.MB.wrap(t)}(t)}},5538:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SemanticTokensProviderStyling:()=>m,toMultilineTokens2:()=>p});n(5982);var i=n(5724),r=n(3511),s=n(3069),o=n(6677),a=n(4454);class l{static create(e,t){return new l(e,new h(t))}get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._endLineNumber}constructor(e,t){this._startLineNumber=e,this._tokens=t,this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}toString(){return this._tokens.toString(this._startLineNumber)}_updateEndLineNumber(){this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}isEmpty(){return this._tokens.isEmpty()}getLineTokens(e){return this._startLineNumber<=e&&e<=this._endLineNumber?this._tokens.getLineTokens(e-this._startLineNumber):null}getRange(){const e=this._tokens.getRange();return e?new o.Q(this._startLineNumber+e.startLineNumber,e.startColumn,this._startLineNumber+e.endLineNumber,e.endColumn):e}removeTokens(e){const t=e.startLineNumber-this._startLineNumber,n=e.endLineNumber-this._startLineNumber;this._startLineNumber+=this._tokens.removeTokens(t,e.startColumn-1,n,e.endColumn-1),this._updateEndLineNumber()}split(e){const t=e.startLineNumber-this._startLineNumber,n=e.endLineNumber-this._startLineNumber,[i,r,s]=this._tokens.split(t,e.startColumn-1,n,e.endColumn-1);return[new l(this._startLineNumber,i),new l(this._startLineNumber+s,r)]}applyEdit(e,t){const[n,i,r]=(0,a.W)(t);this.acceptEdit(e,n,i,r,t.length>0?t.charCodeAt(0):0)}acceptEdit(e,t,n,i,r){this._acceptDeleteRange(e),this._acceptInsertText(new s.y(e.startLineNumber,e.startColumn),t,n,i,r),this._updateEndLineNumber()}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return;const t=e.startLineNumber-this._startLineNumber,n=e.endLineNumber-this._startLineNumber;if(n<0){const e=n-t;return void(this._startLineNumber-=e)}const i=this._tokens.getMaxDeltaLine();if(!(t>=i+1)){if(t<0&&n>=i+1)return this._startLineNumber=0,void this._tokens.clear();if(t<0){const i=-t;this._startLineNumber-=i,this._tokens.acceptDeleteRange(e.startColumn-1,0,0,n,e.endColumn-1)}else this._tokens.acceptDeleteRange(0,t,e.startColumn-1,n,e.endColumn-1)}}_acceptInsertText(e,t,n,i,r){if(0===t&&0===n)return;const s=e.lineNumber-this._startLineNumber;if(s<0)return void(this._startLineNumber+=t);s>=this._tokens.getMaxDeltaLine()+1||this._tokens.acceptInsertText(s,e.column-1,t,n,i,r)}}class h{constructor(e){this._tokens=e,this._tokenCount=e.length/4}toString(e){const t=[];for(let n=0;n<this._tokenCount;n++)t.push(`(${this._getDeltaLine(n)+e},${this._getStartCharacter(n)}-${this._getEndCharacter(n)})`);return`[${t.join(",")}]`}getMaxDeltaLine(){const e=this._getTokenCount();return 0===e?-1:this._getDeltaLine(e-1)}getRange(){const e=this._getTokenCount();if(0===e)return null;const t=this._getStartCharacter(0),n=this._getDeltaLine(e-1),i=this._getEndCharacter(e-1);return new o.Q(0,t+1,n,i+1)}_getTokenCount(){return this._tokenCount}_getDeltaLine(e){return this._tokens[4*e]}_getStartCharacter(e){return this._tokens[4*e+1]}_getEndCharacter(e){return this._tokens[4*e+2]}isEmpty(){return 0===this._getTokenCount()}getLineTokens(e){let t=0,n=this._getTokenCount()-1;for(;t<n;){const i=t+Math.floor((n-t)/2),r=this._getDeltaLine(i);if(r<e)t=i+1;else{if(!(r>e)){let r=i;for(;r>t&&this._getDeltaLine(r-1)===e;)r--;let s=i;for(;s<n&&this._getDeltaLine(s+1)===e;)s++;return new c(this._tokens.subarray(4*r,4*s+4))}n=i-1}}return this._getDeltaLine(t)===e?new c(this._tokens.subarray(4*t,4*t+4)):null}clear(){this._tokenCount=0}removeTokens(e,t,n,i){const r=this._tokens,s=this._tokenCount;let o=0,a=!1,l=0;for(let h=0;h<s;h++){const s=4*h,c=r[s],d=r[s+1],u=r[s+2],g=r[s+3];if((c>e||c===e&&u>=t)&&(c<n||c===n&&d<=i))a=!0;else{if(0===o&&(l=c),a){const e=4*o;r[e]=c-l,r[e+1]=d,r[e+2]=u,r[e+3]=g}o++}}return this._tokenCount=o,l}split(e,t,n,i){const r=this._tokens,s=this._tokenCount,o=[],a=[];let l=o,c=0,d=0;for(let h=0;h<s;h++){const s=4*h,o=r[s],u=r[s+1],g=r[s+2],f=r[s+3];if(o>e||o===e&&g>=t){if(o<n||o===n&&u<=i)continue;l!==a&&(l=a,c=0,d=o)}l[c++]=o-d,l[c++]=u,l[c++]=g,l[c++]=f}return[new h(new Uint32Array(o)),new h(new Uint32Array(a)),d]}acceptDeleteRange(e,t,n,i,r){const s=this._tokens,o=this._tokenCount,a=i-t;let l=0,h=!1;for(let c=0;c<o;c++){const d=4*c;let u=s[d],g=s[d+1],f=s[d+2];const m=s[d+3];if(u<t||u===t&&f<=n){l++;continue}if(u===t&&g<n)u===i&&f>r?f-=r-n:f=n;else if(u===t&&g===n){if(!(u===i&&f>r)){h=!0;continue}f-=r-n}else if(u<i||u===i&&g<r){if(!(u===i&&f>r)){h=!0;continue}u=t,g=n,f=g+(f-r)}else if(u>i){if(0===a&&!h){l=o;break}u-=a}else{if(!(u===i&&g>=r))throw new Error("Not possible!");e&&0===u&&(g+=e,f+=e),u-=a,g-=r-n,f-=r-n}const p=4*l;s[p]=u,s[p+1]=g,s[p+2]=f,s[p+3]=m,l++}this._tokenCount=l}acceptInsertText(e,t,n,i,r,s){const o=0===n&&1===i&&(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122),a=this._tokens,l=this._tokenCount;for(let h=0;h<l;h++){const s=4*h;let l=a[s],c=a[s+1],d=a[s+2];if(!(l<e||l===e&&d<t)){if(l===e&&d===t){if(!o)continue;d+=1}else if(l===e&&c<t&&t<d)0===n?d+=i:d=t;else{if(l===e&&c===t&&o)continue;if(l===e)if(l+=n,0===n)c+=i,d+=i;else{const e=d-c;c=r+(c-t),d=c+e}else l+=n}a[s]=l,a[s+1]=c,a[s+2]=d}}}}class c{constructor(e){this._tokens=e}getCount(){return this._tokens.length/4}getStartCharacter(e){return this._tokens[4*e+1]}getEndCharacter(e){return this._tokens[4*e+2]}getMetadata(e){return this._tokens[4*e+3]}}var d=n(154),u=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},g=function(e,t){return function(n,i){t(n,i,e)}};const f=!1;let m=class{constructor(e,t,n,i){this._legend=e,this._themeService=t,this._languageService=n,this._logService=i,this._hasWarnedOverlappingTokens=!1,this._hasWarnedInvalidLengthTokens=!1,this._hasWarnedInvalidEditStart=!1,this._hashTable=new b}getMetadata(e,t,n){const i=this._languageService.languageIdCodec.encodeLanguageId(n),r=this._hashTable.get(e,t,i);let s;if(r)s=r.metadata;else{let r=this._legend.tokenTypes[e];const o=[];if(r){let e=t;for(let t=0;e>0&&t<this._legend.tokenModifiers.length;t++)1&e&&o.push(this._legend.tokenModifiers[t]),e>>=1;f;const i=this._themeService.getColorTheme().getTokenStyleMetadata(r,o,n);if("undefined"===typeof i)s=2147483647;else{if(s=0,"undefined"!==typeof i.italic){s|=1|(i.italic?1:0)<<11}if("undefined"!==typeof i.bold){s|=2|(i.bold?2:0)<<11}if("undefined"!==typeof i.underline){s|=4|(i.underline?4:0)<<11}if("undefined"!==typeof i.strikethrough){s|=8|(i.strikethrough?8:0)<<11}if(i.foreground){s|=16|i.foreground<<15}0===s&&(s=2147483647)}}else s=2147483647,r="not-in-legend";this._hashTable.add(e,t,i,s)}return s}warnOverlappingSemanticTokens(e,t){this._hasWarnedOverlappingTokens||(this._hasWarnedOverlappingTokens=!0,this._logService.warn(`Overlapping semantic tokens detected at lineNumber ${e}, column ${t}`))}warnInvalidLengthSemanticTokens(e,t){this._hasWarnedInvalidLengthTokens||(this._hasWarnedInvalidLengthTokens=!0,this._logService.warn(`Semantic token with invalid length detected at lineNumber ${e}, column ${t}`))}warnInvalidEditStart(e,t,n,i,r){this._hasWarnedInvalidEditStart||(this._hasWarnedInvalidEditStart=!0,this._logService.warn(`Invalid semantic tokens edit detected (previousResultId: ${e}, resultId: ${t}) at edit #${n}: The provided start offset ${i} is outside the previous data (length ${r}).`))}};function p(e,t,n){const i=e.data,r=e.data.length/5|0,s=Math.max(Math.ceil(r/1024),400),o=[];let a=0,h=1,c=0;for(;a<r;){const e=a;let d=Math.min(e+s,r);if(d<r){let t=d;for(;t-1>e&&0===i[5*t];)t--;if(t-1===e){let e=d;for(;e+1<r&&0===i[5*e];)e++;d=e}else d=t}let u=new Uint32Array(4*(d-e)),g=0,f=0,m=0,p=0;for(;a<d;){const e=5*a,r=i[e],s=i[e+1],o=h+r|0,l=0===r?c+s|0:s,d=l+i[e+2]|0,_=i[e+3],b=i[e+4];if(d<=l)t.warnInvalidLengthSemanticTokens(o,l+1);else if(m===o&&p>l)t.warnOverlappingSemanticTokens(o,l+1);else{const e=t.getMetadata(_,b,n);2147483647!==e&&(0===f&&(f=o),u[g]=o-f,u[g+1]=l,u[g+2]=d,u[g+3]=e,g+=4,m=o,p=d)}h=o,c=l,a++}g!==u.length&&(u=u.subarray(0,g));const _=l.create(f,u);o.push(_)}return o}m=u([g(1,i.Gy),g(2,d.L),g(3,r.rr)],m);class _{constructor(e,t,n,i){this.tokenTypeIndex=e,this.tokenModifierSet=t,this.languageId=n,this.metadata=i,this.next=null}}class b{static{this._SIZES=[3,7,13,31,61,127,251,509,1021,2039,4093,8191,16381,32749,65521,131071,262139,524287,1048573,2097143]}constructor(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=b._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<b._SIZES.length?2/3*this._currentLength:0),this._elements=[],b._nullOutEntries(this._elements,this._currentLength)}static _nullOutEntries(e,t){for(let n=0;n<t;n++)e[n]=null}_hash2(e,t){return(e<<5)-e+t|0}_hashFunc(e,t,n){return this._hash2(this._hash2(e,t),n)%this._currentLength}get(e,t,n){const i=this._hashFunc(e,t,n);let r=this._elements[i];for(;r;){if(r.tokenTypeIndex===e&&r.tokenModifierSet===t&&r.languageId===n)return r;r=r.next}return null}add(e,t,n,i){if(this._elementsCount++,0!==this._growCount&&this._elementsCount>=this._growCount){const e=this._elements;this._currentLengthIndex++,this._currentLength=b._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<b._SIZES.length?2/3*this._currentLength:0),this._elements=[],b._nullOutEntries(this._elements,this._currentLength);for(const t of e){let e=t;for(;e;){const t=e.next;e.next=null,this._add(e),e=t}}}this._add(new _(e,t,n,i))}_add(e){const t=this._hashFunc(e.tokenTypeIndex,e.tokenModifierSet,e.languageId);e.next=this._elements[t],this._elements[t]=e}}},4243:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ISemanticTokensStylingService:()=>i});const i=(0,n(3591).u1)("semanticTokensStylingService")},7004:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SemanticTokensStylingService:()=>u});var i=n(1484),r=n(154),s=n(5724),o=n(3511),a=n(5538),l=n(4243),h=n(4621),c=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},d=function(e,t){return function(n,i){t(n,i,e)}};let u=class extends i.jG{constructor(e,t,n){super(),this._themeService=e,this._logService=t,this._languageService=n,this._caches=new WeakMap,this._register(this._themeService.onDidColorThemeChange((()=>{this._caches=new WeakMap})))}getStyling(e){return this._caches.has(e)||this._caches.set(e,new a.SemanticTokensProviderStyling(e.getLegend(),this._themeService,this._languageService,this._logService)),this._caches.get(e)}};u=c([d(0,s.Gy),d(1,o.rr),d(2,r.L)],u),(0,h.v)(l.ISemanticTokensStylingService,u,1)},796:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MirrorModel:()=>_,STOP_SYNC_MODEL_DELTA_TIME_MS:()=>f,WorkerTextModelSyncClient:()=>m,WorkerTextModelSyncServer:()=>p});var i=n(1940),r=n(1484),s=n(9400),o=n(3069),a=n(6677),l=n(6486),h=n(1508),c=(n(9861),n(5152));class d{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=(0,c.j)(e);const n=this.values,i=this.prefixSum,r=t.length;return 0!==r&&(this.values=new Uint32Array(n.length+r),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+r),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(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,t){return e=(0,c.j)(e),t=(0,c.j)(t),this.values[e]!==t&&(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,t){e=(0,c.j)(e),t=(0,c.j)(t);const n=this.values,i=this.prefixSum;if(e>=n.length)return!1;const r=n.length-e;return t>=r&&(t=r),0!==t&&(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(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=(0,c.j)(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;0===t&&(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,i=0,r=0,s=0;for(;t<=n;)if(i=t+(n-t)/2|0,r=this.prefixSum[i],s=r-this.values[i],e<s)n=i-1;else{if(!(e>=r))break;t=i+1}return new u(i,e-s)}}class u{constructor(e,t){this.index=e,this.remainder=t,this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=t}}class g{constructor(e,t,n,i){this._uri=e,this._lines=t,this._eol=n,this._versionId=i,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const t=e.changes;for(const n of t)this._acceptDeleteRange(n.range),this._acceptInsertText(new o.y(n.range.startLineNumber,n.range.startColumn),n.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,t=this._lines.length,n=new Uint32Array(t);for(let i=0;i<t;i++)n[i]=this._lines[i].length+e;this._lineStarts=new d(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)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);else{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))}}_acceptInsertText(e,t){if(0===t.length)return;const n=(0,h.uz)(t);if(1===n.length)return void 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));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]);const i=new Uint32Array(n.length-1);for(let r=1;r<n.length;r++)this._lines.splice(e.lineNumber+r-1,0,n[r]),i[r-1]=n[r].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,i)}}const f=6e4;class m extends r.jG{constructor(e,t,n=!1){if(super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=e,this._modelService=t,!n){const e=new i.vb;e.cancelAndSet((()=>this._checkStopModelSync()),Math.round(f/2)),this._register(e)}}dispose(){for(const e in this._syncedModels)(0,r.AS)(this._syncedModels[e]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(e,t=!1){for(const n of e){const e=n.toString();this._syncedModels[e]||this._beginModelSync(n,t),this._syncedModels[e]&&(this._syncedModelsLastUsedTime[e]=(new Date).getTime())}}_checkStopModelSync(){const e=(new Date).getTime(),t=[];for(const n in this._syncedModelsLastUsedTime){e-this._syncedModelsLastUsedTime[n]>f&&t.push(n)}for(const n of t)this._stopModelSync(n)}_beginModelSync(e,t){const n=this._modelService.getModel(e);if(!n)return;if(!t&&n.isTooLargeForSyncing())return;const i=e.toString();this._proxy.$acceptNewModel({url:n.uri.toString(),lines:n.getLinesContent(),EOL:n.getEOL(),versionId:n.getVersionId()});const s=new r.Cm;s.add(n.onDidChangeContent((e=>{this._proxy.$acceptModelChanged(i.toString(),e)}))),s.add(n.onWillDispose((()=>{this._stopModelSync(i)}))),s.add((0,r.s)((()=>{this._proxy.$acceptRemovedModel(i)}))),this._syncedModels[i]=s}_stopModelSync(e){const t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],(0,r.AS)(t)}}class p{constructor(){this._models=Object.create(null)}getModel(e){return this._models[e]}getModels(){const e=[];return Object.keys(this._models).forEach((t=>e.push(this._models[t]))),e}$acceptNewModel(e){this._models[e.url]=new _(s.r.parse(e.url),e.lines,e.EOL,e.versionId)}$acceptModelChanged(e,t){if(!this._models[e])return;this._models[e].onEvents(t)}$acceptRemovedModel(e){this._models[e]&&delete this._models[e]}}class _ extends g{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){const t=[];for(let n=0;n<this._lines.length;n++){const i=this._lines[n],r=this.offsetAt(new o.y(n+1,1)),s=i.matchAll(e);for(const e of s)(e.index||0===e.index)&&(e.index=e.index+r),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){const n=(0,l.Th)(e.column,(0,l.Io)(t),this._lines[e.lineNumber-1],0);return n?new a.Q(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null}words(e){const t=this._lines,n=this._wordenize.bind(this);let i=0,r="",s=0,o=[];return{*[Symbol.iterator](){for(;;)if(s<o.length){const e=r.substring(o[s].start,o[s].end);s+=1,yield e}else{if(!(i<t.length))break;r=t[i],o=n(r,e),s=0,i+=1}}}}getLineWords(e,t){const n=this._lines[e-1],i=this._wordenize(n,t),r=[];for(const s of i)r.push({word:n.substring(s.start,s.end),startColumn:s.start+1,endColumn:s.end+1});return r}_wordenize(e,t){const n=[];let i;for(t.lastIndex=0;(i=t.exec(e))&&0!==i[0].length;)n.push({start:i.index,end:i.index+i[0].length});return n}getValueInRange(e){if((e=this._validateRange(e)).startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);const t=this._eol,n=e.startLineNumber-1,i=e.endLineNumber-1,r=[];r.push(this._lines[n].substring(e.startColumn-1));for(let s=n+1;s<i;s++)r.push(this._lines[s]);return r.push(this._lines[i].substring(0,e.endColumn-1)),r.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();const 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){const 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(!o.y.isIPosition(e))throw new Error("bad position");let{lineNumber:t,column:n}=e,i=!1;if(t<1)t=1,n=1,i=!0;else if(t>this._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,i=!0;else{const e=this._lines[t-1].length+1;n<1?(n=1,i=!0):n>e&&(n=e,i=!0)}return i?{lineNumber:t,column:n}:e}}},8868:(e,t,n)=>{"use strict";n.r(t)},360:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITextResourceConfigurationService:()=>r,ITextResourcePropertiesService:()=>s});var i=n(3591);const r=(0,i.u1)("textResourceConfigurationService"),s=(0,i.u1)("textResourcePropertiesService")},4432:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITreeSitterParserService:()=>i});const i=(0,n(3591).u1)("treeSitterParserService")},6723:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DraggedTreeItemsIdentifier:()=>r,TreeViewsDnDService:()=>i});class i{constructor(){this._dragOperations=new Map}removeDragOperationTransfer(e){if(e&&this._dragOperations.has(e)){const t=this._dragOperations.get(e);return this._dragOperations.delete(e),t}}}class r{constructor(e){this.identifier=e}}},9100:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITreeViewsDnDService:()=>o});var i=n(4621),r=n(3591),s=n(6723);const o=(0,r.u1)("treeViewsDndService");(0,i.v)(o,s.TreeViewsDnDService,1)},4855:(e,t,n)=>{"use strict";n.r(t),n.d(t,{UnicodeTextModelHighlighter:()=>l});var i=n(6677),r=n(7729),s=n(1508),o=n(6782),a=n(6486);class l{static computeUnicodeHighlights(e,t,n){const l=n?n.startLineNumber:1,c=n?n.endLineNumber:e.getLineCount(),d=new h(t),u=d.getCandidateCodePoints();let g;var f;g="allNonBasicAscii"===u?new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):new RegExp(""+(f=Array.from(u),`[${s.bm(f.map((e=>String.fromCodePoint(e))).join(""))}]`),"g");const m=new r.W5(null,g),p=[];let _,b=!1,v=0,w=0,k=0;e:for(let r=l,h=c;r<=h;r++){const t=e.getLineContent(r),n=t.length;m.reset(0);do{if(_=m.next(t),_){let e=_.index,l=_.index+_[0].length;if(e>0){const n=t.charCodeAt(e-1);s.pc(n)&&e--}if(l+1<n){const e=t.charCodeAt(l-1);s.pc(e)&&l++}const h=t.substring(e,l);let c=(0,a.Th)(e+1,a.Ld,t,0);c&&c.endColumn<=e+1&&(c=null);const u=d.shouldHighlightNonBasicASCII(h,c?c.word:null);if(0!==u){3===u?v++:2===u?w++:1===u?k++:(0,o.xb)(u);const t=1e3;if(p.length>=t){b=!0;break e}p.push(new i.Q(r,e+1,r,l+1))}}}while(_)}return{ranges:p,hasMore:b,ambiguousCharacterCount:v,invisibleCharacterCount:w,nonBasicAsciiCharacterCount:k}}static computeUnicodeHighlightReason(e,t){const n=new h(t);switch(n.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const i=e.codePointAt(0),r=n.ambiguousCharacters.getPrimaryConfusable(i),o=s.tl.getLocales().filter((e=>!s.tl.getInstance(new Set([...t.allowedLocales,e])).isAmbiguous(i)));return{kind:0,confusableWith:String.fromCodePoint(r),notAmbiguousInLocales:o}}case 1:return{kind:2}}}}class h{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=s.tl.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const t of s.y_.codePoints)c(String.fromCodePoint(t))||e.add(t);if(this.options.ambiguousCharacters)for(const t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(const t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e,t){const n=e.codePointAt(0);if(this.allowedCodePoints.has(n))return 0;if(this.options.nonBasicASCII)return 1;let i=!1,r=!1;if(t)for(const o of t){const e=o.codePointAt(0),t=s.aC(o);i=i||t,t||this.ambiguousCharacters.isAmbiguous(e)||s.y_.isInvisibleCharacter(e)||(r=!0)}return!i&&r?0:this.options.invisibleCharacters&&!c(e)&&s.y_.isInvisibleCharacter(n)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(n)?3:0}}function c(e){return" "===e||"\n"===e||"\t"===e}},8209:(e,t,n)=>{"use strict";function i(){return globalThis._VSCODE_NLS_LANGUAGE}n.d(t,{i8:()=>i,kg:()=>o});const r="pseudo"===i()||"undefined"!==typeof document&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function s(e,t){let n;return n=0===t.length?e:e.replace(/\{(\d+)\}/g,((e,n)=>{const i=n[0],r=t[i];let s=e;return"string"===typeof r?s=r:"number"!==typeof r&&"boolean"!==typeof r&&void 0!==r&&null!==r||(s=String(r)),s})),r&&(n="\uff3b"+n.replace(/[aouei]/g,"$&$&")+"\uff3d"),n}function o(e,t,...n){return s("number"===typeof e?a(e,t):t,n)}function a(e,t){const n=globalThis._VSCODE_NLS_MESSAGES?.[e];if("string"!==typeof n){if("string"===typeof t)return t;throw new Error(`!!! NLS MISSING: ${e} !!!`)}return n}},4001:(e,t,n)=>{"use strict";n.d(t,{Mo:()=>r,pG:()=>i});const i=(0,n(3591).u1)("configurationService");function r(e){return e.replace(/[\[\]]/g,"")}},1646:(e,t,n)=>{"use strict";n.d(t,{Fd:()=>c});var i=n(9861),r=n(1234),s=n(631),o=n(8209),a=n(4001),l=n(8748),h=n(6359);const c={Configuration:"base.contributions.configuration"},d={properties:{},patternProperties:{}},u={properties:{},patternProperties:{}},g={properties:{},patternProperties:{}},f={properties:{},patternProperties:{}},m={properties:{},patternProperties:{}},p={properties:{},patternProperties:{}},_="vscode://schemas/settings/resourceLanguage",b=h.O.as(l.F.JSONContribution);const v="\\[([^\\]]+)\\]",w=new RegExp(v,"g"),k=`^(${v})+$`,y=new RegExp(k);function T(e){const t=[];if(y.test(e)){let n=w.exec(e);for(;n?.length;){const i=n[1].trim();i&&t.push(i),n=w.exec(e)}}return(0,i.dM)(t)}const C=new class{constructor(){this.registeredConfigurationDefaults=[],this.overrideIdentifiers=new Set,this._onDidSchemaChange=new r.vl,this._onDidUpdateConfiguration=new r.vl,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:o.kg("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!0,allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.policyConfigurations=new Map,this.excludedConfigurationProperties={},b.registerSchema(_,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(e,t=!0){this.registerConfigurations([e],t)}registerConfigurations(e,t=!0){const n=new Set;this.doRegisterConfigurations(e,t,n),b.registerSchema(_,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:n})}registerDefaultConfigurations(e){const t=new Set;this.doRegisterDefaultConfigurations(e,t),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:t,defaultsOverrides:!0})}doRegisterDefaultConfigurations(e,t){this.registeredConfigurationDefaults.push(...e);const n=[];for(const{overrides:i,source:r}of e)for(const e in i){t.add(e);const s=this.configurationDefaultsOverrides.get(e)??this.configurationDefaultsOverrides.set(e,{configurationDefaultOverrides:[]}).get(e),o=i[e];if(s.configurationDefaultOverrides.push({value:o,source:r}),y.test(e)){const t=this.mergeDefaultConfigurationsForOverrideIdentifier(e,o,r,s.configurationDefaultOverrideValue);if(!t)continue;s.configurationDefaultOverrideValue=t,this.updateDefaultOverrideProperty(e,t,r),n.push(...T(e))}else{const t=this.mergeDefaultConfigurationsForConfigurationProperty(e,o,r,s.configurationDefaultOverrideValue);if(!t)continue;s.configurationDefaultOverrideValue=t;const n=this.configurationProperties[e];n&&(this.updatePropertyDefaultValue(e,n),this.updateSchema(e,n))}}this.doRegisterOverrideIdentifiers(n)}updateDefaultOverrideProperty(e,t,n){const i={type:"object",default:t.value,description:o.kg("defaultLanguageConfiguration.description","Configure settings to be overridden for the {0} language.",(0,a.Mo)(e)),$ref:_,defaultDefaultValue:t.value,source:n,defaultValueSource:n};this.configurationProperties[e]=i,this.defaultLanguageConfigurationOverridesNode.properties[e]=i}mergeDefaultConfigurationsForOverrideIdentifier(e,t,n,i){const r=i?.value||{},o=i?.source??new Map;if(o instanceof Map){for(const e of Object.keys(t)){const i=t[e];if(s.Gv(i)&&(s.b0(r[e])||s.Gv(r[e]))){if(r[e]={...r[e]??{},...i},n)for(const t in i)o.set(`${e}.${t}`,n)}else r[e]=i,n?o.set(e,n):o.delete(e)}return{value:r,source:o}}console.error("objectConfigurationSources is not a Map")}mergeDefaultConfigurationsForConfigurationProperty(e,t,n,i){const r=this.configurationProperties[e],o=i?.value??r?.defaultDefaultValue;let a=n;if(s.Gv(t)&&(void 0!==r&&"object"===r.type||void 0===r&&(s.b0(o)||s.Gv(o)))){if(a=i?.source??new Map,!(a instanceof Map))return void console.error("defaultValueSource is not a Map");for(const i in t)n&&a.set(`${e}.${i}`,n);t={...s.Gv(o)?o:{},...t}}return{value:t,source:a}}registerOverrideIdentifiers(e){this.doRegisterOverrideIdentifiers(e),this._onDidSchemaChange.fire()}doRegisterOverrideIdentifiers(e){for(const t of e)this.overrideIdentifiers.add(t);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(e,t,n){e.forEach((e=>{this.validateAndRegisterProperties(e,t,e.extensionInfo,e.restrictedProperties,void 0,n),this.configurationContributors.push(e),this.registerJSONConfiguration(e)}))}validateAndRegisterProperties(e,t=!0,n,i,r=3,o){r=s.z(e.scope)?r:e.scope;const a=e.properties;if(a)for(const h in a){const e=a[h];t&&S(h,e)?delete a[h]:(e.source=n,e.defaultDefaultValue=a[h].default,this.updatePropertyDefaultValue(h,e),y.test(h)?e.scope=void 0:(e.scope=s.z(e.scope)?r:e.scope,e.restricted=s.z(e.restricted)?!!i?.includes(h):e.restricted),!a[h].hasOwnProperty("included")||a[h].included?(this.configurationProperties[h]=a[h],a[h].policy?.name&&this.policyConfigurations.set(a[h].policy.name,h),!a[h].deprecationMessage&&a[h].markdownDeprecationMessage&&(a[h].deprecationMessage=a[h].markdownDeprecationMessage),o.add(h)):(this.excludedConfigurationProperties[h]=a[h],delete a[h]))}const l=e.allOf;if(l)for(const s of l)this.validateAndRegisterProperties(s,t,n,i,r,o)}getConfigurationProperties(){return this.configurationProperties}getPolicyConfigurations(){return this.policyConfigurations}registerJSONConfiguration(e){const t=e=>{const n=e.properties;if(n)for(const t in n)this.updateSchema(t,n[t]);const i=e.allOf;i?.forEach(t)};t(e)}updateSchema(e,t){switch(d.properties[e]=t,t.scope){case 1:u.properties[e]=t;break;case 2:g.properties[e]=t;break;case 6:f.properties[e]=t;break;case 3:m.properties[e]=t;break;case 4:p.properties[e]=t;break;case 5:p.properties[e]=t,this.resourceLanguageSettingsSchema.properties[e]=t}}updateOverridePropertyPatternKey(){for(const e of this.overrideIdentifiers.values()){const t=`[${e}]`,n={type:"object",description:o.kg("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:o.kg("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:_};this.updatePropertyDefaultValue(t,n),d.properties[t]=n,u.properties[t]=n,g.properties[t]=n,f.properties[t]=n,m.properties[t]=n,p.properties[t]=n}}registerOverridePropertyPatternKey(){const e={type:"object",description:o.kg("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:o.kg("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:_};d.patternProperties[k]=e,u.patternProperties[k]=e,g.patternProperties[k]=e,f.patternProperties[k]=e,m.patternProperties[k]=e,p.patternProperties[k]=e,this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,t){const n=this.configurationDefaultsOverrides.get(e)?.configurationDefaultOverrideValue;let i,r;!n||t.disallowConfigurationDefault&&n.source||(i=n.value,r=n.source),s.b0(i)&&(i=t.defaultDefaultValue,r=void 0),s.b0(i)&&(i=function(e){switch(Array.isArray(e)?e[0]:e){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}(t.type)),t.default=i,t.defaultValueSource=r}};function S(e,t){return e.trim()?y.test(e)?o.kg("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e):void 0!==C.getConfigurationProperties()[e]?o.kg("config.property.duplicate","Cannot register '{0}'. This property is already registered.",e):t.policy?.name&&void 0!==C.getPolicyConfigurations().get(t.policy?.name)?o.kg("config.policy.duplicate","Cannot register '{0}'. The associated policy {1} is already registered with {2}.",e,t.policy?.name,C.getPolicyConfigurations().get(t.policy?.name)):null:o.kg("config.property.empty","Cannot register an empty property")}h.O.add(c.Configuration,C)},4621:(e,t,n)=>{"use strict";n.d(t,{v:()=>s});class i{constructor(e,t=[],n=!1){this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=n}}const r=[];function s(e,t,n){t instanceof i||(t=new i(t,[],Boolean(n))),r.push([e,t])}},3591:(e,t,n)=>{"use strict";var i;n.d(t,{_Y:()=>r,u1:()=>s}),function(e){e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=function(t){return t[e.DI_DEPENDENCIES]||[]}}(i||(i={}));const r=s("instantiationService");function s(e){if(i.serviceIds.has(e))return i.serviceIds.get(e);const t=function(e,n,r){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");!function(e,t,n){t[i.DI_TARGET]===t?t[i.DI_DEPENDENCIES].push({id:e,index:n}):(t[i.DI_DEPENDENCIES]=[{id:e,index:n}],t[i.DI_TARGET]=t)}(t,e,r)};return t.toString=()=>e,i.serviceIds.set(e,t),t}},8748:(e,t,n)=>{"use strict";n.d(t,{F:()=>s});var i=n(1234),r=n(6359);const s={JSONContribution:"base.contributions.json"};const o=new class{constructor(){this._onDidChangeSchema=new i.vl,this.schemasById={}}registerSchema(e,t){var n;this.schemasById[(n=e,n.length>0&&"#"===n.charAt(n.length-1)?n.substring(0,n.length-1):n)]=t,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}};r.O.add(s.JSONContribution,o)},3511:(e,t,n)=>{"use strict";n.d(t,{rr:()=>Q,$b:()=>Y});n(1234);var i=n(1484),r=n(8067),s=n(1508),o=n(4383),a=n(8209);function l(...e){switch(e.length){case 1:return(0,a.kg)("contextkey.scanner.hint.didYouMean1","Did you mean {0}?",e[0]);case 2:return(0,a.kg)("contextkey.scanner.hint.didYouMean2","Did you mean {0} or {1}?",e[0],e[1]);case 3:return(0,a.kg)("contextkey.scanner.hint.didYouMean3","Did you mean {0}, {1} or {2}?",e[0],e[1],e[2]);default:return}}const h=(0,a.kg)("contextkey.scanner.hint.didYouForgetToOpenOrCloseQuote","Did you forget to open or close the quote?"),c=(0,a.kg)("contextkey.scanner.hint.didYouForgetToEscapeSlash","Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'.");class d{constructor(){this._input="",this._start=0,this._current=0,this._tokens=[],this._errors=[],this.stringRe=/[a-zA-Z0-9_<>\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(e){switch(e.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return e.isTripleEq?"===":"==";case 4:return e.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:case 8:return">=";case 9:return"=~";case 10:case 17:case 18:case 19:return e.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 20:return"EOF";default:throw(0,o.iH)(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}static{this._regexFlags=new Set(["i","g","s","m","y","u"].map((e=>e.charCodeAt(0))))}static{this._keywords=new Map([["not",14],["in",13],["false",12],["true",11]])}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();){this._start=this._current;switch(this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){const e=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:e})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){const e=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:e})}else this._match(126)?this._addToken(9):this._error(l("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(l("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(l("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return!this._isAtEnd()&&(this._input.charCodeAt(this._current)===e&&(this._current++,!0))}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){const t=this._start,n=this._input.substring(this._start,this._current),i={type:19,offset:this._start,lexeme:n};this._errors.push({offset:t,lexeme:n,additionalInfo:e}),this._tokens.push(i)}_string(){this.stringRe.lastIndex=this._start;const e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;const t=this._input.substring(this._start,this._current),n=d._keywords.get(t);n?this._addToken(n):this._tokens.push({type:17,lexeme:t,offset:this._start})}}_quotedString(){for(;39!==this._peek()&&!this._isAtEnd();)this._advance();this._isAtEnd()?this._error(h):(this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1}))}_regex(){let e=this._current,t=!1,n=!1;for(;;){if(e>=this._input.length)return this._current=e,void this._error(c);const i=this._input.charCodeAt(e);if(t)t=!1;else{if(47===i&&!n){e++;break}91===i?n=!0:92===i?t=!0:93===i&&(n=!1)}e++}for(;e<this._input.length&&d._regexFlags.has(this._input.charCodeAt(e));)e++;this._current=e;const i=this._input.substring(this._start,this._current);this._tokens.push({type:10,lexeme:i,offset:this._start})}_isAtEnd(){return this._current>=this._input.length}}var u=n(3591);const g=new Map;g.set("false",!1),g.set("true",!0),g.set("isMac",r.zx),g.set("isLinux",r.j9),g.set("isWindows",r.uF),g.set("isWeb",r.HZ),g.set("isMacNative",r.zx&&!r.HZ),g.set("isEdge",r.UP),g.set("isFirefox",r.gm),g.set("isChrome",r.H8),g.set("isSafari",r.nr);const f=Object.prototype.hasOwnProperty,m={regexParsingWithErrorRecovery:!0},p=(0,a.kg)("contextkey.parser.error.emptyString","Empty context key expression"),_=(0,a.kg)("contextkey.parser.error.emptyString.hint","Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),b=(0,a.kg)("contextkey.parser.error.noInAfterNot","'in' after 'not'."),v=(0,a.kg)("contextkey.parser.error.closingParenthesis","closing parenthesis ')'"),w=(0,a.kg)("contextkey.parser.error.unexpectedToken","Unexpected token"),k=(0,a.kg)("contextkey.parser.error.unexpectedToken.hint","Did you forget to put && or || before the token?"),y=(0,a.kg)("contextkey.parser.error.unexpectedEOF","Unexpected end of expression"),T=(0,a.kg)("contextkey.parser.error.unexpectedEOF.hint","Did you forget to put a context key?");class C{static{this._parseError=new Error}constructor(e=m){this._config=e,this._scanner=new d,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(""!==e){this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{const e=this._expr();if(!this._isAtEnd()){const e=this._peek(),t=17===e.type?k:void 0;throw this._parsingErrors.push({message:w,offset:e.offset,lexeme:d.getLexeme(e),additionalInfo:t}),C._parseError}return e}catch(t){if(t!==C._parseError)throw t;return}}else this._parsingErrors.push({message:p,offset:0,lexeme:"",additionalInfo:_})}_expr(){return this._or()}_or(){const e=[this._and()];for(;this._matchOne(16);){const t=this._and();e.push(t)}return 1===e.length?e[0]:S.or(...e)}_and(){const e=[this._term()];for(;this._matchOne(15);){const t=this._term();e.push(t)}return 1===e.length?e[0]:S.and(...e)}_term(){if(this._matchOne(2)){const e=this._peek();switch(e.type){case 11:return this._advance(),x.INSTANCE;case 12:return this._advance(),E.INSTANCE;case 0:{this._advance();const e=this._expr();return this._consume(1,v),e?.negate()}case 17:return this._advance(),D.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){const e=this._peek();switch(e.type){case 11:return this._advance(),S.true();case 12:return this._advance(),S.false();case 0:{this._advance();const e=this._expr();return this._consume(1,v),e}case 17:{const i=e.lexeme;if(this._advance(),this._matchOne(9)){const e=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),10!==e.type)throw this._errExpectedButGot("REGEX",e);const n=e.lexeme,r=n.lastIndexOf("/"),s=r===n.length-1?void 0:this._removeFlagsGY(n.substring(r+1));let o;try{o=new RegExp(n.substring(1,r),s)}catch(t){throw this._errExpectedButGot("REGEX",e)}return W.create(i,o)}switch(e.type){case 10:case 19:{const n=[e.lexeme];this._advance();let r=this._peek(),s=0;for(let t=0;t<e.lexeme.length;t++)40===e.lexeme.charCodeAt(t)?s++:41===e.lexeme.charCodeAt(t)&&s--;for(;!this._isAtEnd()&&15!==r.type&&16!==r.type;){switch(r.type){case 0:s++;break;case 1:s--;break;case 10:case 18:for(let t=0;t<r.lexeme.length;t++)40===r.lexeme.charCodeAt(t)?s++:41===e.lexeme.charCodeAt(t)&&s--}if(s<0)break;n.push(d.getLexeme(r)),this._advance(),r=this._peek()}const o=n.join(""),a=o.lastIndexOf("/"),l=a===o.length-1?void 0:this._removeFlagsGY(o.substring(a+1));let h;try{h=new RegExp(o.substring(1,a),l)}catch(t){throw this._errExpectedButGot("REGEX",e)}return S.regex(i,h)}case 18:{const t=e.lexeme;this._advance();let r=null;if(!(0,s.AV)(t)){const i=t.indexOf("/"),s=t.lastIndexOf("/");if(i!==s&&i>=0){const o=t.slice(i+1,s),a="i"===t[s+1]?"i":"";try{r=new RegExp(o,a)}catch(n){throw this._errExpectedButGot("REGEX",e)}}}if(null===r)throw this._errExpectedButGot("REGEX",e);return W.create(i,r)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,b);const e=this._value();return S.notIn(i,e)}switch(this._peek().type){case 3:{this._advance();const e=this._value();if(18===this._previous().type)return S.equals(i,e);switch(e){case"true":return S.has(i);case"false":return S.not(i);default:return S.equals(i,e)}}case 4:{this._advance();const e=this._value();if(18===this._previous().type)return S.notEquals(i,e);switch(e){case"true":return S.not(i);case"false":return S.has(i);default:return S.notEquals(i,e)}}case 5:return this._advance(),P.create(i,this._value());case 6:return this._advance(),F.create(i,this._value());case 7:return this._advance(),B.create(i,this._value());case 8:return this._advance(),z.create(i,this._value());case 13:return this._advance(),S.in(i,this._value());default:return S.has(i)}}case 20:throw this._parsingErrors.push({message:y,offset:e.offset,lexeme:"",additionalInfo:T}),C._parseError;default:throw this._errExpectedButGot("true | false | KEY \n\t| KEY '=~' REGEX \n\t| KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value",this._peek())}}_value(){const e=this._peek();switch(e.type){case 17:case 18:return this._advance(),e.lexeme;case 11:return this._advance(),"true";case 12:return this._advance(),"false";case 13:return this._advance(),"in";default:return""}}_removeFlagsGY(e){return e.replaceAll(this._flagsGYRe,"")}_previous(){return this._tokens[this._current-1]}_matchOne(e){return!!this._check(e)&&(this._advance(),!0)}_advance(){return this._isAtEnd()||this._current++,this._previous()}_consume(e,t){if(this._check(e))return this._advance();throw this._errExpectedButGot(t,this._peek())}_errExpectedButGot(e,t,n){const i=(0,a.kg)("contextkey.parser.error.expectedButGot","Expected: {0}\nReceived: '{1}'.",e,d.getLexeme(t)),r=t.offset,s=d.getLexeme(t);return this._parsingErrors.push({message:i,offset:r,lexeme:s,additionalInfo:n}),C._parseError}_check(e){return this._peek().type===e}_peek(){return this._tokens[this._current]}_isAtEnd(){return 20===this._peek().type}}class S{static false(){return x.INSTANCE}static true(){return E.INSTANCE}static has(e){return A.create(e)}static equals(e,t){return I.create(e,t)}static notEquals(e,t){return R.create(e,t)}static regex(e,t){return W.create(e,t)}static in(e,t){return M.create(e,t)}static notIn(e,t){return N.create(e,t)}static not(e){return D.create(e)}static and(...e){return q.create(e,null,!0)}static or(...e){return V.create(e,null,!0)}static{this._parser=new C({regexParsingWithErrorRecovery:!1})}static deserialize(e){if(void 0===e||null===e)return;return this._parser.parse(e)}}function L(e,t){return e.cmp(t)}class x{static{this.INSTANCE=new x}constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!1}serialize(){return"false"}keys(){return[]}negate(){return E.INSTANCE}}class E{static{this.INSTANCE=new E}constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!0}serialize(){return"true"}keys(){return[]}negate(){return x.INSTANCE}}class A{static create(e,t=null){const n=g.get(e);return"boolean"===typeof n?n?E.INSTANCE:x.INSTANCE:new A(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=2}cmp(e){return e.type!==this.type?this.type-e.type:G(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=g.get(this.key);return"boolean"===typeof e?e?E.INSTANCE:x.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=D.create(this.key,this)),this.negated}}class I{static create(e,t,n=null){if("boolean"===typeof t)return t?A.create(e,n):D.create(e,n);const i=g.get(e);if("boolean"===typeof i){return t===(i?"true":"false")?E.INSTANCE:x.INSTANCE}return new I(e,t,n)}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=4}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=g.get(this.key);if("boolean"===typeof e){const t=e?"true":"false";return this.value===t?E.INSTANCE:x.INSTANCE}return this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=R.create(this.key,this.value,this)),this.negated}}class M{static create(e,t){return new M(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=10,this.negated=null}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type&&(this.key===e.key&&this.valueKey===e.valueKey)}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.valueKey),n=e.getValue(this.key);return Array.isArray(t)?t.includes(n):"string"===typeof n&&"object"===typeof t&&null!==t&&f.call(t,n)}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=N.create(this.key,this.valueKey)),this.negated}}class N{static create(e,t){return new N(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=11,this._negated=M.create(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:this._negated.cmp(e._negated)}equals(e){return e.type===this.type&&this._negated.equals(e._negated)}substituteConstants(){return this}evaluate(e){return!this._negated.evaluate(e)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}negate(){return this._negated}}class R{static create(e,t,n=null){if("boolean"===typeof t)return t?D.create(e,n):A.create(e,n);const i=g.get(e);if("boolean"===typeof i){return t===(i?"true":"false")?x.INSTANCE:E.INSTANCE}return new R(e,t,n)}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=5}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=g.get(this.key);if("boolean"===typeof e){const t=e?"true":"false";return this.value===t?x.INSTANCE:E.INSTANCE}return this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=I.create(this.key,this.value,this)),this.negated}}class D{static create(e,t=null){const n=g.get(e);return"boolean"===typeof n?n?x.INSTANCE:E.INSTANCE:new D(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=3}cmp(e){return e.type!==this.type?this.type-e.type:G(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=g.get(this.key);return"boolean"===typeof e?e?x.INSTANCE:E.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=A.create(this.key,this)),this.negated}}function O(e,t){if("string"===typeof e){const t=parseFloat(e);isNaN(t)||(e=t)}return"string"===typeof e||"number"===typeof e?t(e):x.INSTANCE}class B{static create(e,t,n=null){return O(t,(t=>new B(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=12}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=F.create(this.key,this.value,this)),this.negated}}class z{static create(e,t,n=null){return O(t,(t=>new z(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=13}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=P.create(this.key,this.value,this)),this.negated}}class P{static create(e,t,n=null){return O(t,(t=>new P(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=14}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=z.create(this.key,this.value,this)),this.negated}}class F{static create(e,t,n=null){return O(t,(t=>new F(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=15}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=B.create(this.key,this.value,this)),this.negated}}class W{static create(e,t){return new W(e,t)}constructor(e,t){this.key=e,this.regexp=t,this.type=7,this.negated=null}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.key<e.key)return-1;if(this.key>e.key)return 1;const t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return t<n?-1:t>n?1:0}equals(e){if(e.type===this.type){const t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return this.key===e.key&&t===n}return!1}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.key);return!!this.regexp&&this.regexp.test(t)}serialize(){const e=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=H.create(this)),this.negated}}class H{static create(e){return new H(e)}constructor(e){this._actual=e,this.type=8}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type&&this._actual.equals(e._actual)}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){return`!(${this._actual.serialize()})`}keys(){return this._actual.keys()}negate(){return this._actual}}function U(e){let t=null;for(let n=0,i=e.length;n<i;n++){const i=e[n].substituteConstants();if(e[n]!==i&&null===t){t=[];for(let i=0;i<n;i++)t[i]=e[i]}null!==t&&(t[n]=i)}return null===t?e:t}class q{static create(e,t,n){return q._normalizeArr(e,t,n)}constructor(e,t){this.expr=e,this.negated=t,this.type=6}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,n=this.expr.length;t<n;t++){const n=L(this.expr[t],e.expr[t]);if(0!==n)return n}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){const e=U(this.expr);return e===this.expr?this:q.create(e,this.negated,!1)}evaluate(e){for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].evaluate(e))return!1;return!0}static _normalizeArr(e,t,n){const i=[];let r=!1;for(const s of e)if(s)if(1!==s.type){if(0===s.type)return x.INSTANCE;6!==s.type?i.push(s):i.push(...s.expr)}else r=!0;if(0===i.length&&r)return E.INSTANCE;if(0!==i.length){if(1===i.length)return i[0];i.sort(L);for(let e=1;e<i.length;e++)i[e-1].equals(i[e])&&(i.splice(e,1),e--);if(1===i.length)return i[0];for(;i.length>1;){const e=i[i.length-1];if(9!==e.type)break;i.pop();const t=i.pop(),r=0===i.length,s=V.create(e.expr.map((e=>q.create([e,t],null,n))),null,r);s&&(i.push(s),i.sort(L))}if(1===i.length)return i[0];if(n){for(let e=0;e<i.length;e++)for(let t=e+1;t<i.length;t++)if(i[e].negate().equals(i[t]))return x.INSTANCE;if(1===i.length)return i[0]}return new q(i,t)}}serialize(){return this.expr.map((e=>e.serialize())).join(" && ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());this.negated=V.create(e,this,!0)}return this.negated}}class V{static create(e,t,n){return V._normalizeArr(e,t,n)}constructor(e,t){this.expr=e,this.negated=t,this.type=9}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,n=this.expr.length;t<n;t++){const n=L(this.expr[t],e.expr[t]);if(0!==n)return n}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){const e=U(this.expr);return e===this.expr?this:V.create(e,this.negated,!1)}evaluate(e){for(let t=0,n=this.expr.length;t<n;t++)if(this.expr[t].evaluate(e))return!0;return!1}static _normalizeArr(e,t,n){let i=[],r=!1;if(e){for(let t=0,n=e.length;t<n;t++){const n=e[t];if(n)if(0!==n.type){if(1===n.type)return E.INSTANCE;9!==n.type?i.push(n):i=i.concat(n.expr)}else r=!0}if(0===i.length&&r)return x.INSTANCE;i.sort(L)}if(0!==i.length){if(1===i.length)return i[0];for(let e=1;e<i.length;e++)i[e-1].equals(i[e])&&(i.splice(e,1),e--);if(1===i.length)return i[0];if(n){for(let e=0;e<i.length;e++)for(let t=e+1;t<i.length;t++)if(i[e].negate().equals(i[t]))return E.INSTANCE;if(1===i.length)return i[0]}return new V(i,t)}}serialize(){return this.expr.map((e=>e.serialize())).join(" || ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());for(;e.length>1;){const t=e.shift(),n=e.shift(),i=[];for(const e of $(t))for(const t of $(n))i.push(q.create([e,t],null,!1));e.unshift(V.create(i,null,!1))}this.negated=V.create(e,this,!0)}return this.negated}}class j extends A{static{this._info=[]}static all(){return j._info.values()}constructor(e,t,n){super(e,null),this._defaultValue=t,"object"===typeof n?j._info.push({...n,key:e}):!0!==n&&j._info.push({key:e,description:n,type:null!==t&&void 0!==t?typeof t:void 0})}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return I.create(this.key,e)}}(0,u.u1)("contextKeyService");function G(e,t){return e<t?-1:e>t?1:0}function K(e,t,n,i){return e<n?-1:e>n?1:t<i?-1:t>i?1:0}function $(e){return 9===e.type?e.expr:[e]}const Q=(0,u.u1)("logService");var Y;!function(e){e[e.Off=0]="Off",e[e.Trace=1]="Trace",e[e.Debug=2]="Debug",e[e.Info=3]="Info",e[e.Warning=4]="Warning",e[e.Error=5]="Error"}(Y||(Y={}));Y.Info;i.jG;new j("logLevel",function(e){switch(e){case Y.Trace:return"trace";case Y.Debug:return"debug";case Y.Info:return"info";case Y.Warning:return"warn";case Y.Error:return"error";case Y.Off:return"off"}}(Y.Info))},6359:(e,t,n)=>{"use strict";n.d(t,{O:()=>s});var i=n(6782),r=n(631);const s=new class{constructor(){this.data=new Map}add(e,t){i.ok(r.Kg(e)),i.ok(r.Gv(t)),i.ok(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)}as(e){return this.data.get(e)||null}}},5845:(e,t,n)=>{"use strict";n.d(t,{buw:()=>S,b1q:()=>C,YtV:()=>M,Ubg:()=>U,IIb:()=>W,pOz:()=>F,whs:()=>B,Stt:()=>P,Hng:()=>z,yLC:()=>le,KoI:()=>oe,uMG:()=>ae,x1A:()=>d});var i=n(6782),r=n(1940),s=n(7661),o=n(1234),a=n(8748),l=n(6359),h=n(8209);const c=new class{constructor(){this._onDidChangeSchema=new o.vl,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}registerColor(e,t,n,i=!1,r){const s={id:e,description:n,defaults:t,needsTransparency:i,deprecationMessage:r};this.colorsById[e]=s;const o={type:"string",format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return r&&(o.deprecationMessage=r),i&&(o.pattern="^#(?:(?<rgba>[0-9a-fA-f]{3}[0-9a-eA-E])|(?:[0-9a-fA-F]{6}(?:(?![fF]{2})(?:[0-9a-fA-F]{2}))))?$",o.patternErrorMessage=h.kg("transparecyRequired","This color must be transparent or it will obscure content")),this.colorSchema.properties[e]={description:n,oneOf:[o,{type:"string",const:"default",description:h.kg("useDefault","Use the default color.")}]},this.colorReferenceSchema.enum.push(e),this.colorReferenceSchema.enumDescriptions.push(n),this._onDidChangeSchema.fire(),e}getColors(){return Object.keys(this.colorsById).map((e=>this.colorsById[e]))}resolveDefaultColor(e,t){const n=this.colorsById[e];if(n?.defaults){return _(null!==(i=n.defaults)&&"object"===typeof i&&"light"in i&&"dark"in i?n.defaults[t.type]:n.defaults,t)}var i}getColorSchema(){return this.colorSchema}toString(){return Object.keys(this.colorsById).sort(((e,t)=>{const n=-1===e.indexOf(".")?0:1,i=-1===t.indexOf(".")?0:1;return n!==i?n-i:e.localeCompare(t)})).map((e=>`- \`${e}\`: ${this.colorsById[e].description}`)).join("\n")}};function d(e,t,n,i,r){return c.registerColor(e,t,n,i,r)}function u(e,t){return{op:0,value:e,factor:t}}function g(e,t){return{op:1,value:e,factor:t}}function f(e,t){return{op:2,value:e,factor:t}}function m(...e){return{op:4,values:e}}function p(e,t,n,i){return{op:5,value:e,background:t,factor:n,transparency:i}}function _(e,t){if(null!==e)return"string"===typeof e?"#"===e[0]?s.Q1.fromHex(e):t.getColor(e):e instanceof s.Q1?e:"object"===typeof e?function(e,t){switch(e.op){case 0:return _(e.value,t)?.darken(e.factor);case 1:return _(e.value,t)?.lighten(e.factor);case 2:return _(e.value,t)?.transparent(e.factor);case 3:{const n=_(e.background,t);return n?_(e.value,t)?.makeOpaque(n):_(e.value,t)}case 4:for(const n of e.values){const e=_(n,t);if(e)return e}return;case 6:return _(t.defines(e.if)?e.then:e.else,t);case 5:{const n=_(e.value,t);if(!n)return;const i=_(e.background,t);return i?n.isDarkerThan(i)?s.Q1.getLighterColor(n,i,e.factor).transparent(e.transparency):s.Q1.getDarkerColor(n,i,e.factor).transparent(e.transparency):n.transparent(e.factor*e.transparency)}default:throw(0,i.xb)(e)}}(e,t):void 0}l.O.add("base.contributions.colors",c);const b="vscode://schemas/workbench-colors",v=l.O.as(a.F.JSONContribution);v.registerSchema(b,c.getColorSchema());const w=new r.uC((()=>v.notifySchemaChanged(b)),200);c.onDidChangeSchema((()=>{w.isScheduled()||w.schedule()}));const k=d("foreground",{dark:"#CCCCCC",light:"#616161",hcDark:"#FFFFFF",hcLight:"#292929"},h.kg("foreground","Overall foreground color. This color is only used if not overridden by a component.")),y=(d("disabledForeground",{dark:"#CCCCCC80",light:"#61616180",hcDark:"#A5A5A5",hcLight:"#7F7F7F"},h.kg("disabledForeground","Overall foreground for disabled elements. This color is only used if not overridden by a component.")),d("errorForeground",{dark:"#F48771",light:"#A1260D",hcDark:"#F48771",hcLight:"#B5200D"},h.kg("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),d("descriptionForeground",{light:"#717171",dark:f(k,.7),hcDark:f(k,.7),hcLight:f(k,.7)},h.kg("descriptionForeground","Foreground color for description text providing additional information, for example for a label.")),d("icon.foreground",{dark:"#C5C5C5",light:"#424242",hcDark:"#FFFFFF",hcLight:"#292929"},h.kg("iconForeground","The default color for icons in the workbench."))),T=d("focusBorder",{dark:"#007FD4",light:"#0090F1",hcDark:"#F38518",hcLight:"#006BBD"},h.kg("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),C=d("contrastBorder",{light:null,dark:null,hcDark:"#6FC3DF",hcLight:"#0F4A85"},h.kg("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),S=d("contrastActiveBorder",{light:null,dark:null,hcDark:T,hcLight:T},h.kg("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),L=(d("selection.background",null,h.kg("selectionBackground","The background color of text selections in the workbench (e.g. for input fields or text areas). Note that this does not apply to selections within the editor.")),d("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},h.kg("textLinkForeground","Foreground color for links in text.")),d("textLink.activeForeground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},h.kg("textLinkActiveForeground","Foreground color for links in text when clicked on and on mouse hover.")),d("textSeparator.foreground",{light:"#0000002e",dark:"#ffffff2e",hcDark:s.Q1.black,hcLight:"#292929"},h.kg("textSeparatorForeground","Color for text separators.")),d("textPreformat.foreground",{light:"#A31515",dark:"#D7BA7D",hcDark:"#000000",hcLight:"#FFFFFF"},h.kg("textPreformatForeground","Foreground color for preformatted text segments.")),d("textPreformat.background",{light:"#0000001A",dark:"#FFFFFF1A",hcDark:"#FFFFFF",hcLight:"#09345f"},h.kg("textPreformatBackground","Background color for preformatted text segments.")),d("textBlockQuote.background",{light:"#f2f2f2",dark:"#222222",hcDark:null,hcLight:"#F2F2F2"},h.kg("textBlockQuoteBackground","Background color for block quotes in text.")),d("textBlockQuote.border",{light:"#007acc80",dark:"#007acc80",hcDark:s.Q1.white,hcLight:"#292929"},h.kg("textBlockQuoteBorder","Border color for block quotes in text.")),d("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hcDark:s.Q1.black,hcLight:"#F2F2F2"},h.kg("textCodeBlockBackground","Background color for code blocks in text.")),d("sash.hoverBorder",T,h.kg("sashActiveBorder","Border color of active sashes.")),d("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hcDark:s.Q1.black,hcLight:"#0F4A85"},h.kg("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count."))),x=(d("badge.foreground",{dark:s.Q1.white,light:"#333",hcDark:s.Q1.white,hcLight:s.Q1.white},h.kg("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),d("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hcDark:null,hcLight:null},h.kg("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled."))),E=d("scrollbarSlider.background",{dark:s.Q1.fromHex("#797979").transparent(.4),light:s.Q1.fromHex("#646464").transparent(.4),hcDark:f(C,.6),hcLight:f(C,.4)},h.kg("scrollbarSliderBackground","Scrollbar slider background color.")),A=d("scrollbarSlider.hoverBackground",{dark:s.Q1.fromHex("#646464").transparent(.7),light:s.Q1.fromHex("#646464").transparent(.7),hcDark:f(C,.8),hcLight:f(C,.8)},h.kg("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),I=d("scrollbarSlider.activeBackground",{dark:s.Q1.fromHex("#BFBFBF").transparent(.4),light:s.Q1.fromHex("#000000").transparent(.6),hcDark:C,hcLight:C},h.kg("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),M=(d("progressBar.background",{dark:s.Q1.fromHex("#0E70C0"),light:s.Q1.fromHex("#0E70C0"),hcDark:C,hcLight:C},h.kg("progressBarBackground","Background color of the progress bar that can show for long running operations.")),d("editor.background",{light:"#ffffff",dark:"#1E1E1E",hcDark:s.Q1.black,hcLight:s.Q1.white},h.kg("editorBackground","Editor background color."))),N=(d("editor.foreground",{light:"#333333",dark:"#BBBBBB",hcDark:s.Q1.white,hcLight:k},h.kg("editorForeground","Editor default foreground color.")),d("editorStickyScroll.background",M,h.kg("editorStickyScrollBackground","Background color of sticky scroll in the editor")),d("editorStickyScrollHover.background",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:null,hcLight:s.Q1.fromHex("#0F4A85").transparent(.1)},h.kg("editorStickyScrollHoverBackground","Background color of sticky scroll on hover in the editor")),d("editorStickyScroll.border",{dark:null,light:null,hcDark:C,hcLight:C},h.kg("editorStickyScrollBorder","Border color of sticky scroll in the editor")),d("editorStickyScroll.shadow",x,h.kg("editorStickyScrollShadow"," Shadow color of sticky scroll in the editor")),d("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hcDark:"#0C141F",hcLight:s.Q1.white},h.kg("editorWidgetBackground","Background color of editor widgets, such as find/replace."))),R=d("editorWidget.foreground",k,h.kg("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),D=d("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hcDark:C,hcLight:C},h.kg("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),O=(d("editorWidget.resizeBorder",null,h.kg("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),d("editorError.background",null,h.kg("editorError.background","Background color of error text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),d("editorError.foreground",{dark:"#F14C4C",light:"#E51400",hcDark:"#F48771",hcLight:"#B5200D"},h.kg("editorError.foreground","Foreground color of error squigglies in the editor."))),B=(d("editorError.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#E47777").transparent(.8),hcLight:"#B5200D"},h.kg("errorBorder","If set, color of double underlines for errors in the editor.")),d("editorWarning.background",null,h.kg("editorWarning.background","Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0)),z=d("editorWarning.foreground",{dark:"#CCA700",light:"#BF8803",hcDark:"#FFD370",hcLight:"#895503"},h.kg("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),P=d("editorWarning.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#FFCC00").transparent(.8),hcLight:s.Q1.fromHex("#FFCC00").transparent(.8)},h.kg("warningBorder","If set, color of double underlines for warnings in the editor.")),F=(d("editorInfo.background",null,h.kg("editorInfo.background","Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),d("editorInfo.foreground",{dark:"#3794FF",light:"#1a85ff",hcDark:"#3794FF",hcLight:"#1a85ff"},h.kg("editorInfo.foreground","Foreground color of info squigglies in the editor."))),W=d("editorInfo.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#3794FF").transparent(.8),hcLight:"#292929"},h.kg("infoBorder","If set, color of double underlines for infos in the editor.")),H=(d("editorHint.foreground",{dark:s.Q1.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hcDark:null,hcLight:null},h.kg("editorHint.foreground","Foreground color of hint squigglies in the editor.")),d("editorHint.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#eeeeee").transparent(.8),hcLight:"#292929"},h.kg("hintBorder","If set, color of double underlines for hints in the editor.")),d("editorLink.activeForeground",{dark:"#4E94CE",light:s.Q1.blue,hcDark:s.Q1.cyan,hcLight:"#292929"},h.kg("activeLinkForeground","Color of active links.")),d("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hcDark:"#f3f518",hcLight:"#0F4A85"},h.kg("editorSelectionBackground","Color of the editor selection."))),U=(d("editor.selectionForeground",{light:null,dark:null,hcDark:"#000000",hcLight:s.Q1.white},h.kg("editorSelectionForeground","Color of the selected text for high contrast.")),d("editor.inactiveSelectionBackground",{light:f(H,.5),dark:f(H,.5),hcDark:f(H,.7),hcLight:f(H,.5)},h.kg("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),d("editor.selectionHighlightBackground",{light:p(H,M,.3,.6),dark:p(H,M,.3,.6),hcDark:null,hcLight:null},h.kg("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),d("editor.selectionHighlightBorder",{light:null,dark:null,hcDark:S,hcLight:S},h.kg("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),d("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hcDark:null,hcLight:null},h.kg("editorFindMatch","Color of the current search match.")),d("editor.findMatchForeground",null,h.kg("editorFindMatchForeground","Text color of the current search match.")),d("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hcDark:null,hcLight:null},h.kg("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0)),q=(d("editor.findMatchHighlightForeground",null,h.kg("findMatchHighlightForeground","Foreground color of the other search matches."),!0),d("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hcDark:null,hcLight:null},h.kg("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),d("editor.findMatchBorder",{light:null,dark:null,hcDark:S,hcLight:S},h.kg("editorFindMatchBorder","Border color of the current search match.")),d("editor.findMatchHighlightBorder",{light:null,dark:null,hcDark:S,hcLight:S},h.kg("findMatchHighlightBorder","Border color of the other search matches."))),V=(d("editor.findRangeHighlightBorder",{dark:null,light:null,hcDark:f(S,.4),hcLight:f(S,.4)},h.kg("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),d("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hcDark:"#ADD6FF26",hcLight:null},h.kg("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),d("editorHoverWidget.background",N,h.kg("hoverBackground","Background color of the editor hover."))),j=(d("editorHoverWidget.foreground",R,h.kg("hoverForeground","Foreground color of the editor hover.")),d("editorHoverWidget.border",D,h.kg("hoverBorder","Border color of the editor hover.")),d("editorHoverWidget.statusBarBackground",{dark:g(V,.2),light:u(V,.05),hcDark:N,hcLight:N},h.kg("statusBarBackground","Background color of the editor hover status bar.")),d("editorInlayHint.foreground",{dark:"#969696",light:"#969696",hcDark:s.Q1.white,hcLight:s.Q1.black},h.kg("editorInlayHintForeground","Foreground color of inline hints"))),G=d("editorInlayHint.background",{dark:f(L,.1),light:f(L,.1),hcDark:f(s.Q1.white,.1),hcLight:f(L,.1)},h.kg("editorInlayHintBackground","Background color of inline hints")),K=(d("editorInlayHint.typeForeground",j,h.kg("editorInlayHintForegroundTypes","Foreground color of inline hints for types")),d("editorInlayHint.typeBackground",G,h.kg("editorInlayHintBackgroundTypes","Background color of inline hints for types")),d("editorInlayHint.parameterForeground",j,h.kg("editorInlayHintForegroundParameter","Foreground color of inline hints for parameters")),d("editorInlayHint.parameterBackground",G,h.kg("editorInlayHintBackgroundParameter","Background color of inline hints for parameters")),d("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hcDark:"#FFCC00",hcLight:"#007ACC"},h.kg("editorLightBulbForeground","The color used for the lightbulb actions icon."))),$=(d("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},h.kg("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),d("editorLightBulbAi.foreground",K,h.kg("editorLightBulbAiForeground","The color used for the lightbulb AI icon.")),d("editor.snippetTabstopHighlightBackground",{dark:new s.Q1(new s.bU(124,124,124,.3)),light:new s.Q1(new s.bU(10,50,100,.2)),hcDark:new s.Q1(new s.bU(124,124,124,.3)),hcLight:new s.Q1(new s.bU(10,50,100,.2))},h.kg("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),d("editor.snippetTabstopHighlightBorder",null,h.kg("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),d("editor.snippetFinalTabstopHighlightBackground",null,h.kg("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),d("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new s.Q1(new s.bU(10,50,100,.5)),hcDark:"#525252",hcLight:"#292929"},h.kg("snippetFinalTabstopHighlightBorder","Highlight border color of the final tabstop of a snippet.")),new s.Q1(new s.bU(155,185,85,.2))),Q=new s.Q1(new s.bU(255,0,0,.2)),Y=(d("diffEditor.insertedTextBackground",{dark:"#9ccc2c33",light:"#9ccc2c40",hcDark:null,hcLight:null},h.kg("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),d("diffEditor.removedTextBackground",{dark:"#ff000033",light:"#ff000033",hcDark:null,hcLight:null},h.kg("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),d("diffEditor.insertedLineBackground",{dark:$,light:$,hcDark:null,hcLight:null},h.kg("diffEditorInsertedLines","Background color for lines that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),d("diffEditor.removedLineBackground",{dark:Q,light:Q,hcDark:null,hcLight:null},h.kg("diffEditorRemovedLines","Background color for lines that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),d("diffEditorGutter.insertedLineBackground",null,h.kg("diffEditorInsertedLineGutter","Background color for the margin where lines got inserted.")),d("diffEditorGutter.removedLineBackground",null,h.kg("diffEditorRemovedLineGutter","Background color for the margin where lines got removed.")),d("diffEditorOverview.insertedForeground",null,h.kg("diffEditorOverviewInserted","Diff overview ruler foreground for inserted content.")),d("diffEditorOverview.removedForeground",null,h.kg("diffEditorOverviewRemoved","Diff overview ruler foreground for removed content.")),d("diffEditor.insertedTextBorder",{dark:null,light:null,hcDark:"#33ff2eff",hcLight:"#374E06"},h.kg("diffEditorInsertedOutline","Outline color for the text that got inserted.")),d("diffEditor.removedTextBorder",{dark:null,light:null,hcDark:"#FF008F",hcLight:"#AD0707"},h.kg("diffEditorRemovedOutline","Outline color for text that got removed.")),d("diffEditor.border",{dark:null,light:null,hcDark:C,hcLight:C},h.kg("diffEditorBorder","Border color between the two text editors.")),d("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hcDark:null,hcLight:null},h.kg("diffDiagonalFill","Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.")),d("diffEditor.unchangedRegionBackground","sideBar.background",h.kg("diffEditor.unchangedRegionBackground","The background color of unchanged blocks in the diff editor.")),d("diffEditor.unchangedRegionForeground","foreground",h.kg("diffEditor.unchangedRegionForeground","The foreground color of unchanged blocks in the diff editor.")),d("diffEditor.unchangedCodeBackground",{dark:"#74747429",light:"#b8b8b829",hcDark:null,hcLight:null},h.kg("diffEditor.unchangedCodeBackground","The background color of unchanged code in the diff editor.")),d("widget.shadow",{dark:f(s.Q1.black,.36),light:f(s.Q1.black,.16),hcDark:null,hcLight:null},h.kg("widgetShadow","Shadow color of widgets such as find/replace inside the editor."))),X=(d("widget.border",{dark:null,light:null,hcDark:C,hcLight:C},h.kg("widgetBorder","Border color of widgets such as find/replace inside the editor.")),d("toolbar.hoverBackground",{dark:"#5a5d5e50",light:"#b8b8b850",hcDark:null,hcLight:null},h.kg("toolbarHoverBackground","Toolbar background when hovering over actions using the mouse"))),J=(d("toolbar.hoverOutline",{dark:null,light:null,hcDark:S,hcLight:S},h.kg("toolbarHoverOutline","Toolbar outline when hovering over actions using the mouse")),d("toolbar.activeBackground",{dark:g(X,.1),light:u(X,.1),hcDark:null,hcLight:null},h.kg("toolbarActiveBackground","Toolbar background when holding the mouse over actions")),d("breadcrumb.foreground",f(k,.8),h.kg("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),d("breadcrumb.background",M,h.kg("breadcrumbsBackground","Background color of breadcrumb items.")),d("breadcrumb.focusForeground",{light:u(k,.2),dark:g(k,.1),hcDark:g(k,.1),hcLight:g(k,.1)},h.kg("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),d("breadcrumb.activeSelectionForeground",{light:u(k,.2),dark:g(k,.1),hcDark:g(k,.1),hcLight:g(k,.1)},h.kg("breadcrumbsSelectedForeground","Color of selected breadcrumb items.")),d("breadcrumbPicker.background",N,h.kg("breadcrumbsSelectedBackground","Background color of breadcrumb item picker.")),s.Q1.fromHex("#40C8AE").transparent(.5)),Z=s.Q1.fromHex("#40A6FF").transparent(.5),ee=s.Q1.fromHex("#606060").transparent(.4),te=d("merge.currentHeaderBackground",{dark:J,light:J,hcDark:null,hcLight:null},h.kg("mergeCurrentHeaderBackground","Current header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),ne=(d("merge.currentContentBackground",f(te,.4),h.kg("mergeCurrentContentBackground","Current content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),d("merge.incomingHeaderBackground",{dark:Z,light:Z,hcDark:null,hcLight:null},h.kg("mergeIncomingHeaderBackground","Incoming header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0)),ie=(d("merge.incomingContentBackground",f(ne,.4),h.kg("mergeIncomingContentBackground","Incoming content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),d("merge.commonHeaderBackground",{dark:ee,light:ee,hcDark:null,hcLight:null},h.kg("mergeCommonHeaderBackground","Common ancestor header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0)),re=(d("merge.commonContentBackground",f(ie,.4),h.kg("mergeCommonContentBackground","Common ancestor content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),d("merge.border",{dark:null,light:null,hcDark:"#C3DF6F",hcLight:"#007ACC"},h.kg("mergeBorder","Border color on headers and the splitter in inline merge-conflicts."))),se=(d("editorOverviewRuler.currentContentForeground",{dark:f(te,1),light:f(te,1),hcDark:re,hcLight:re},h.kg("overviewRulerCurrentContentForeground","Current overview ruler foreground for inline merge-conflicts.")),d("editorOverviewRuler.incomingContentForeground",{dark:f(ne,1),light:f(ne,1),hcDark:re,hcLight:re},h.kg("overviewRulerIncomingContentForeground","Incoming overview ruler foreground for inline merge-conflicts.")),d("editorOverviewRuler.commonContentForeground",{dark:f(ie,1),light:f(ie,1),hcDark:re,hcLight:re},h.kg("overviewRulerCommonContentForeground","Common ancestor overview ruler foreground for inline merge-conflicts.")),d("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hcDark:"#AB5A00",hcLight:"#AB5A00"},h.kg("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0),d("editorOverviewRuler.selectionHighlightForeground","#A0A0A0CC",h.kg("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),d("problemsErrorIcon.foreground",O,h.kg("problemsErrorIconForeground","The color used for the problems error icon.")),d("problemsWarningIcon.foreground",z,h.kg("problemsWarningIconForeground","The color used for the problems warning icon.")),d("problemsInfoIcon.foreground",F,h.kg("problemsInfoIconForeground","The color used for the problems info icon.")),d("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hcDark:"#AB5A00",hcLight:"#0F4A85"},h.kg("minimapFindMatchHighlight","Minimap marker color for find matches."),!0)),oe=(d("minimap.selectionOccurrenceHighlight",{light:"#c9c9c9",dark:"#676767",hcDark:"#ffffff",hcLight:"#0F4A85"},h.kg("minimapSelectionOccurrenceHighlight","Minimap marker color for repeating editor selections."),!0),d("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hcDark:"#ffffff",hcLight:"#0F4A85"},h.kg("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),d("minimap.infoHighlight",{dark:F,light:F,hcDark:W,hcLight:W},h.kg("minimapInfo","Minimap marker color for infos."))),ae=d("minimap.warningHighlight",{dark:z,light:z,hcDark:P,hcLight:P},h.kg("overviewRuleWarning","Minimap marker color for warnings.")),le=d("minimap.errorHighlight",{dark:new s.Q1(new s.bU(255,18,18,.7)),light:new s.Q1(new s.bU(255,18,18,.7)),hcDark:new s.Q1(new s.bU(255,50,50,1)),hcLight:"#B5200D"},h.kg("minimapError","Minimap marker color for errors.")),he=(d("minimap.background",null,h.kg("minimapBackground","Minimap background color.")),d("minimap.foregroundOpacity",s.Q1.fromHex("#000f"),h.kg("minimapForegroundOpacity",'Opacity of foreground elements rendered in the minimap. For example, "#000000c0" will render the elements with 75% opacity.')),d("minimapSlider.background",f(E,.5),h.kg("minimapSliderBackground","Minimap slider background color.")),d("minimapSlider.hoverBackground",f(A,.5),h.kg("minimapSliderHoverBackground","Minimap slider background color when hovering.")),d("minimapSlider.activeBackground",f(I,.5),h.kg("minimapSliderActiveBackground","Minimap slider background color when clicked on.")),d("charts.foreground",k,h.kg("chartsForeground","The foreground color used in charts.")),d("charts.lines",f(k,.5),h.kg("chartsLines","The color used for horizontal lines in charts.")),d("charts.red",O,h.kg("chartsRed","The red color used in chart visualizations.")),d("charts.blue",F,h.kg("chartsBlue","The blue color used in chart visualizations.")),d("charts.yellow",z,h.kg("chartsYellow","The yellow color used in chart visualizations.")),d("charts.orange",se,h.kg("chartsOrange","The orange color used in chart visualizations.")),d("charts.green",{dark:"#89D185",light:"#388A34",hcDark:"#89D185",hcLight:"#374e06"},h.kg("chartsGreen","The green color used in chart visualizations.")),d("charts.purple",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},h.kg("chartsPurple","The purple color used in chart visualizations.")),d("input.background",{dark:"#3C3C3C",light:s.Q1.white,hcDark:s.Q1.black,hcLight:s.Q1.white},h.kg("inputBoxBackground","Input box background.")),d("input.foreground",k,h.kg("inputBoxForeground","Input box foreground.")),d("input.border",{dark:null,light:null,hcDark:C,hcLight:C},h.kg("inputBoxBorder","Input box border.")),d("inputOption.activeBorder",{dark:"#007ACC",light:"#007ACC",hcDark:C,hcLight:C},h.kg("inputBoxActiveOptionBorder","Border color of activated options in input fields."))),ce=d("inputOption.hoverBackground",{dark:"#5a5d5e80",light:"#b8b8b850",hcDark:null,hcLight:null},h.kg("inputOption.hoverBackground","Background color of activated options in input fields.")),de=d("inputOption.activeBackground",{dark:f(T,.4),light:f(T,.2),hcDark:s.Q1.transparent,hcLight:s.Q1.transparent},h.kg("inputOption.activeBackground","Background hover color of options in input fields.")),ue=d("inputOption.activeForeground",{dark:s.Q1.white,light:s.Q1.black,hcDark:k,hcLight:k},h.kg("inputOption.activeForeground","Foreground color of activated options in input fields.")),ge=(d("input.placeholderForeground",{light:f(k,.5),dark:f(k,.5),hcDark:f(k,.7),hcLight:f(k,.7)},h.kg("inputPlaceholderForeground","Input box foreground color for placeholder text.")),d("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hcDark:s.Q1.black,hcLight:s.Q1.white},h.kg("inputValidationInfoBackground","Input validation background color for information severity.")),d("inputValidation.infoForeground",{dark:null,light:null,hcDark:null,hcLight:k},h.kg("inputValidationInfoForeground","Input validation foreground color for information severity.")),d("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hcDark:C,hcLight:C},h.kg("inputValidationInfoBorder","Input validation border color for information severity.")),d("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hcDark:s.Q1.black,hcLight:s.Q1.white},h.kg("inputValidationWarningBackground","Input validation background color for warning severity.")),d("inputValidation.warningForeground",{dark:null,light:null,hcDark:null,hcLight:k},h.kg("inputValidationWarningForeground","Input validation foreground color for warning severity.")),d("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hcDark:C,hcLight:C},h.kg("inputValidationWarningBorder","Input validation border color for warning severity.")),d("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hcDark:s.Q1.black,hcLight:s.Q1.white},h.kg("inputValidationErrorBackground","Input validation background color for error severity.")),d("inputValidation.errorForeground",{dark:null,light:null,hcDark:null,hcLight:k},h.kg("inputValidationErrorForeground","Input validation foreground color for error severity.")),d("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hcDark:C,hcLight:C},h.kg("inputValidationErrorBorder","Input validation border color for error severity.")),d("dropdown.background",{dark:"#3C3C3C",light:s.Q1.white,hcDark:s.Q1.black,hcLight:s.Q1.white},h.kg("dropdownBackground","Dropdown background."))),fe=(d("dropdown.listBackground",{dark:null,light:null,hcDark:s.Q1.black,hcLight:s.Q1.white},h.kg("dropdownListBackground","Dropdown list background.")),d("dropdown.foreground",{dark:"#F0F0F0",light:k,hcDark:s.Q1.white,hcLight:k},h.kg("dropdownForeground","Dropdown foreground."))),me=d("dropdown.border",{dark:ge,light:"#CECECE",hcDark:C,hcLight:C},h.kg("dropdownBorder","Dropdown border.")),pe=d("button.foreground",s.Q1.white,h.kg("buttonForeground","Button foreground color.")),_e=(d("button.separator",f(pe,.4),h.kg("buttonSeparator","Button separator color.")),d("button.background",{dark:"#0E639C",light:"#007ACC",hcDark:null,hcLight:"#0F4A85"},h.kg("buttonBackground","Button background color."))),be=(d("button.hoverBackground",{dark:g(_e,.2),light:u(_e,.2),hcDark:_e,hcLight:_e},h.kg("buttonHoverBackground","Button background color when hovering.")),d("button.border",C,h.kg("buttonBorder","Button border color.")),d("button.secondaryForeground",{dark:s.Q1.white,light:s.Q1.white,hcDark:s.Q1.white,hcLight:k},h.kg("buttonSecondaryForeground","Secondary button foreground color.")),d("button.secondaryBackground",{dark:"#3A3D41",light:"#5F6A79",hcDark:null,hcLight:s.Q1.white},h.kg("buttonSecondaryBackground","Secondary button background color."))),ve=(d("button.secondaryHoverBackground",{dark:g(be,.2),light:u(be,.2),hcDark:null,hcLight:null},h.kg("buttonSecondaryHoverBackground","Secondary button background color when hovering.")),d("radio.activeForeground",ue,h.kg("radioActiveForeground","Foreground color of active radio option."))),we=(d("radio.activeBackground",de,h.kg("radioBackground","Background color of active radio option.")),d("radio.activeBorder",he,h.kg("radioActiveBorder","Border color of the active radio option.")),d("radio.inactiveForeground",null,h.kg("radioInactiveForeground","Foreground color of inactive radio option.")),d("radio.inactiveBackground",null,h.kg("radioInactiveBackground","Background color of inactive radio option.")),d("radio.inactiveBorder",{light:f(ve,.2),dark:f(ve,.2),hcDark:f(ve,.4),hcLight:f(ve,.2)},h.kg("radioInactiveBorder","Border color of the inactive radio option.")),d("radio.inactiveHoverBackground",ce,h.kg("radioHoverBackground","Background color of inactive active radio option when hovering.")),d("checkbox.background",ge,h.kg("checkbox.background","Background color of checkbox widget.")),d("checkbox.selectBackground",N,h.kg("checkbox.select.background","Background color of checkbox widget when the element it's in is selected.")),d("checkbox.foreground",fe,h.kg("checkbox.foreground","Foreground color of checkbox widget.")),d("checkbox.border",me,h.kg("checkbox.border","Border color of checkbox widget.")),d("checkbox.selectBorder",y,h.kg("checkbox.select.border","Border color of checkbox widget when the element it's in is selected.")),d("keybindingLabel.background",{dark:new s.Q1(new s.bU(128,128,128,.17)),light:new s.Q1(new s.bU(221,221,221,.4)),hcDark:s.Q1.transparent,hcLight:s.Q1.transparent},h.kg("keybindingLabelBackground","Keybinding label background color. The keybinding label is used to represent a keyboard shortcut.")),d("keybindingLabel.foreground",{dark:s.Q1.fromHex("#CCCCCC"),light:s.Q1.fromHex("#555555"),hcDark:s.Q1.white,hcLight:k},h.kg("keybindingLabelForeground","Keybinding label foreground color. The keybinding label is used to represent a keyboard shortcut.")),d("keybindingLabel.border",{dark:new s.Q1(new s.bU(51,51,51,.6)),light:new s.Q1(new s.bU(204,204,204,.4)),hcDark:new s.Q1(new s.bU(111,195,223)),hcLight:C},h.kg("keybindingLabelBorder","Keybinding label border color. The keybinding label is used to represent a keyboard shortcut.")),d("keybindingLabel.bottomBorder",{dark:new s.Q1(new s.bU(68,68,68,.6)),light:new s.Q1(new s.bU(187,187,187,.4)),hcDark:new s.Q1(new s.bU(111,195,223)),hcLight:k},h.kg("keybindingLabelBottomBorder","Keybinding label border bottom color. The keybinding label is used to represent a keyboard shortcut.")),d("list.focusBackground",null,h.kg("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),d("list.focusForeground",null,h.kg("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),d("list.focusOutline",{dark:T,light:T,hcDark:S,hcLight:S},h.kg("listFocusOutline","List/Tree outline color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),d("list.focusAndSelectionOutline",null,h.kg("listFocusAndSelectionOutline","List/Tree outline color for the focused item when the list/tree is active and selected. An active list/tree has keyboard focus, an inactive does not.")),d("list.activeSelectionBackground",{dark:"#04395E",light:"#0060C0",hcDark:null,hcLight:s.Q1.fromHex("#0F4A85").transparent(.1)},h.kg("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not."))),ke=d("list.activeSelectionForeground",{dark:s.Q1.white,light:s.Q1.white,hcDark:null,hcLight:null},h.kg("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),ye=d("list.activeSelectionIconForeground",null,h.kg("listActiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Te=(d("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hcDark:null,hcLight:s.Q1.fromHex("#0F4A85").transparent(.1)},h.kg("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),d("list.inactiveSelectionForeground",null,h.kg("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),d("list.inactiveSelectionIconForeground",null,h.kg("listInactiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),d("list.inactiveFocusBackground",null,h.kg("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),d("list.inactiveFocusOutline",null,h.kg("listInactiveFocusOutline","List/Tree outline color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),d("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:s.Q1.white.transparent(.1),hcLight:s.Q1.fromHex("#0F4A85").transparent(.1)},h.kg("listHoverBackground","List/Tree background when hovering over items using the mouse.")),d("list.hoverForeground",null,h.kg("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),d("list.dropBackground",{dark:"#062F4A",light:"#D6EBFF",hcDark:null,hcLight:null},h.kg("listDropBackground","List/Tree drag and drop background when moving items over other items when using the mouse.")),d("list.dropBetweenBackground",{dark:y,light:y,hcDark:null,hcLight:null},h.kg("listDropBetweenBackground","List/Tree drag and drop border color when moving items between items when using the mouse.")),d("list.highlightForeground",{dark:"#2AAAFF",light:"#0066BF",hcDark:T,hcLight:T},h.kg("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")));d("list.focusHighlightForeground",{dark:Te,light:(Ce=we,Se=Te,Le="#BBE7FF",{op:6,if:Ce,then:Se,else:Le}),hcDark:Te,hcLight:Te},h.kg("listFocusHighlightForeground","List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree."));var Ce,Se,Le;d("list.invalidItemForeground",{dark:"#B89500",light:"#B89500",hcDark:"#B89500",hcLight:"#B5200D"},h.kg("invalidItemForeground","List/Tree foreground color for invalid items, for example an unresolved root in explorer.")),d("list.errorForeground",{dark:"#F88070",light:"#B01011",hcDark:null,hcLight:null},h.kg("listErrorForeground","Foreground color of list items containing errors.")),d("list.warningForeground",{dark:"#CCA700",light:"#855F00",hcDark:null,hcLight:null},h.kg("listWarningForeground","Foreground color of list items containing warnings.")),d("listFilterWidget.background",{light:u(N,0),dark:g(N,0),hcDark:N,hcLight:N},h.kg("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),d("listFilterWidget.outline",{dark:s.Q1.transparent,light:s.Q1.transparent,hcDark:"#f38518",hcLight:"#007ACC"},h.kg("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),d("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hcDark:C,hcLight:C},h.kg("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),d("listFilterWidget.shadow",Y,h.kg("listFilterWidgetShadow","Shadow color of the type filter widget in lists and trees.")),d("list.filterMatchBackground",{dark:U,light:U,hcDark:null,hcLight:null},h.kg("listFilterMatchHighlight","Background color of the filtered match.")),d("list.filterMatchBorder",{dark:q,light:q,hcDark:C,hcLight:S},h.kg("listFilterMatchHighlightBorder","Border color of the filtered match.")),d("list.deemphasizedForeground",{dark:"#8C8C8C",light:"#8E8E90",hcDark:"#A7A8A9",hcLight:"#666666"},h.kg("listDeemphasizedForeground","List/Tree foreground color for items that are deemphasized."));const xe=d("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hcDark:"#a9a9a9",hcLight:"#a5a5a5"},h.kg("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),Ee=(d("tree.inactiveIndentGuidesStroke",f(xe,.4),h.kg("treeInactiveIndentGuidesStroke","Tree stroke color for the indentation guides that are not active.")),d("tree.tableColumnsBorder",{dark:"#CCCCCC20",light:"#61616120",hcDark:null,hcLight:null},h.kg("tableColumnsBorder","Table border color between columns.")),d("tree.tableOddRowsBackground",{dark:f(k,.04),light:f(k,.04),hcDark:null,hcLight:null},h.kg("tableOddRowsBackgroundColor","Background color for odd table rows.")),d("editorActionList.background",N,h.kg("editorActionListBackground","Action List background color.")),d("editorActionList.foreground",R,h.kg("editorActionListForeground","Action List foreground color.")),d("editorActionList.focusForeground",ke,h.kg("editorActionListFocusForeground","Action List foreground color for the focused item.")),d("editorActionList.focusBackground",we,h.kg("editorActionListFocusBackground","Action List background color for the focused item.")),d("menu.border",{dark:null,light:null,hcDark:C,hcLight:C},h.kg("menuBorder","Border color of menus.")),d("menu.foreground",fe,h.kg("menuForeground","Foreground color of menu items.")),d("menu.background",ge,h.kg("menuBackground","Background color of menu items.")),d("menu.selectionForeground",ke,h.kg("menuSelectionForeground","Foreground color of the selected menu item in menus.")),d("menu.selectionBackground",we,h.kg("menuSelectionBackground","Background color of the selected menu item in menus.")),d("menu.selectionBorder",{dark:null,light:null,hcDark:S,hcLight:S},h.kg("menuSelectionBorder","Border color of the selected menu item in menus.")),d("menu.separatorBackground",{dark:"#606060",light:"#D4D4D4",hcDark:C,hcLight:C},h.kg("menuSeparatorBackground","Color of a separator menu item in menus.")),d("quickInput.background",N,h.kg("pickerBackground","Quick picker background color. The quick picker widget is the container for pickers like the command palette.")),d("quickInput.foreground",R,h.kg("pickerForeground","Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")),d("quickInputTitle.background",{dark:new s.Q1(new s.bU(255,255,255,.105)),light:new s.Q1(new s.bU(0,0,0,.06)),hcDark:"#000000",hcLight:s.Q1.white},h.kg("pickerTitleBackground","Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")),d("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hcDark:s.Q1.white,hcLight:"#0F4A85"},h.kg("pickerGroupForeground","Quick picker color for grouping labels.")),d("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hcDark:s.Q1.white,hcLight:"#0F4A85"},h.kg("pickerGroupBorder","Quick picker color for grouping borders.")),d("quickInput.list.focusBackground",null,"",void 0,h.kg("quickInput.list.focusBackground deprecation","Please use quickInputList.focusBackground instead")));d("quickInputList.focusForeground",ke,h.kg("quickInput.listFocusForeground","Quick picker foreground color for the focused item.")),d("quickInputList.focusIconForeground",ye,h.kg("quickInput.listFocusIconForeground","Quick picker icon foreground color for the focused item.")),d("quickInputList.focusBackground",{dark:m(Ee,we),light:m(Ee,we),hcDark:null,hcLight:null},h.kg("quickInput.listFocusBackground","Quick picker background color for the focused item.")),d("search.resultsInfoForeground",{light:k,dark:f(k,.65),hcDark:k,hcLight:k},h.kg("search.resultsInfoForeground","Color of the text in the search viewlet's completion message.")),d("searchEditor.findMatchBackground",{light:f(U,.66),dark:f(U,.66),hcDark:U,hcLight:U},h.kg("searchEditor.queryMatch","Color of the Search Editor query matches.")),d("searchEditor.findMatchBorder",{light:f(q,.66),dark:f(q,.66),hcDark:q,hcLight:q},h.kg("searchEditor.editorFindMatchBorder","Border color of the Search Editor query matches."))},5724:(e,t,n)=>{"use strict";n.d(t,{Gy:()=>l,zy:()=>d,Yf:()=>h});var i,r=n(1234),s=n(1484),o=n(3591),a=n(6359);!function(e){e.DARK="dark",e.LIGHT="light",e.HIGH_CONTRAST_DARK="hcDark",e.HIGH_CONTRAST_LIGHT="hcLight"}(i||(i={}));const l=(0,o.u1)("themeService");function h(e){return{id:e}}const c=new class{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new r.vl}onColorThemeChange(e){return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),(0,s.s)((()=>{const t=this.themingParticipants.indexOf(e);this.themingParticipants.splice(t,1)}))}getThemingParticipants(){return this.themingParticipants}};function d(e){return c.onColorThemeChange(e)}a.O.add("base.contributions.theming",c);s.jG},5890:(e,t,n)=>{var i={"./simpleWorker":1929,"./simpleWorker.js":1929,"monaco-editor/esm/vs/base/common/worker/simpleWorker":1929,"monaco-editor/esm/vs/base/common/worker/simpleWorker.js":1929};function r(e){return Promise.resolve().then((()=>{if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n(i[e])}))}r.keys=()=>Object.keys(i),r.id=5890,e.exports=r},9204:(e,t,n)=>{var i={"./editorBaseApi":[4272],"./editorBaseApi.js":[4272],"./editorSimpleWorker":[5196],"./editorSimpleWorker.js":[5196],"./editorWorker":[920,792],"./editorWorker.js":[920,792],"./editorWorkerHost":[718],"./editorWorkerHost.js":[718],"./findSectionHeaders":[6691],"./findSectionHeaders.js":[6691],"./getIconClasses":[5628,792],"./getIconClasses.js":[5628,792],"./languageFeatureDebounce":[8709,792],"./languageFeatureDebounce.js":[8709,792],"./languageFeatures":[6942,792],"./languageFeatures.js":[6942,792],"./languageFeaturesService":[2661,792],"./languageFeaturesService.js":[2661,792],"./languageService":[7596,792],"./languageService.js":[7596,792],"./languagesAssociations":[9908,792],"./languagesAssociations.js":[9908,792],"./languagesRegistry":[9259,792],"./languagesRegistry.js":[9259,792],"./markerDecorations":[7550,792],"./markerDecorations.js":[7550,792],"./markerDecorationsService":[448,792],"./markerDecorationsService.js":[448,792],"./model":[3750,792],"./model.js":[3750,792],"./modelService":[1773,792],"./modelService.js":[1773,792],"./resolverService":[8938,792],"./resolverService.js":[8938,792],"./semanticTokensDto":[8232,792],"./semanticTokensDto.js":[8232,792],"./semanticTokensProviderStyling":[5538,792],"./semanticTokensProviderStyling.js":[5538,792],"./semanticTokensStyling":[4243,792],"./semanticTokensStyling.js":[4243,792],"./semanticTokensStylingService":[7004,792],"./semanticTokensStylingService.js":[7004,792],"./textModelSync/textModelSync.impl":[796],"./textModelSync/textModelSync.impl.js":[796],"./textModelSync/textModelSync.protocol":[8868,792],"./textModelSync/textModelSync.protocol.js":[8868,792],"./textResourceConfiguration":[360,792],"./textResourceConfiguration.js":[360,792],"./treeSitterParserService":[4432,792],"./treeSitterParserService.js":[4432,792],"./treeViewsDnd":[6723,792],"./treeViewsDnd.js":[6723,792],"./treeViewsDndService":[9100,792],"./treeViewsDndService.js":[9100,792],"./unicodeTextModelHighlighter":[4855],"./unicodeTextModelHighlighter.js":[4855],"monaco-editor/esm/vs/editor/common/services/editorBaseApi":[4272],"monaco-editor/esm/vs/editor/common/services/editorBaseApi.js":[4272],"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker":[5196],"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker.js":[5196],"monaco-editor/esm/vs/editor/common/services/editorWorker":[920,792],"monaco-editor/esm/vs/editor/common/services/editorWorker.js":[920,792],"monaco-editor/esm/vs/editor/common/services/editorWorkerHost":[718],"monaco-editor/esm/vs/editor/common/services/editorWorkerHost.js":[718],"monaco-editor/esm/vs/editor/common/services/findSectionHeaders":[6691],"monaco-editor/esm/vs/editor/common/services/findSectionHeaders.js":[6691],"monaco-editor/esm/vs/editor/common/services/getIconClasses":[5628,792],"monaco-editor/esm/vs/editor/common/services/getIconClasses.js":[5628,792],"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce":[8709,792],"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce.js":[8709,792],"monaco-editor/esm/vs/editor/common/services/languageFeatures":[6942,792],"monaco-editor/esm/vs/editor/common/services/languageFeatures.js":[6942,792],"monaco-editor/esm/vs/editor/common/services/languageFeaturesService":[2661,792],"monaco-editor/esm/vs/editor/common/services/languageFeaturesService.js":[2661,792],"monaco-editor/esm/vs/editor/common/services/languageService":[7596,792],"monaco-editor/esm/vs/editor/common/services/languageService.js":[7596,792],"monaco-editor/esm/vs/editor/common/services/languagesAssociations":[9908,792],"monaco-editor/esm/vs/editor/common/services/languagesAssociations.js":[9908,792],"monaco-editor/esm/vs/editor/common/services/languagesRegistry":[9259,792],"monaco-editor/esm/vs/editor/common/services/languagesRegistry.js":[9259,792],"monaco-editor/esm/vs/editor/common/services/markerDecorations":[7550,792],"monaco-editor/esm/vs/editor/common/services/markerDecorations.js":[7550,792],"monaco-editor/esm/vs/editor/common/services/markerDecorationsService":[448,792],"monaco-editor/esm/vs/editor/common/services/markerDecorationsService.js":[448,792],"monaco-editor/esm/vs/editor/common/services/model":[3750,792],"monaco-editor/esm/vs/editor/common/services/model.js":[3750,792],"monaco-editor/esm/vs/editor/common/services/modelService":[1773,792],"monaco-editor/esm/vs/editor/common/services/modelService.js":[1773,792],"monaco-editor/esm/vs/editor/common/services/resolverService":[8938,792],"monaco-editor/esm/vs/editor/common/services/resolverService.js":[8938,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensDto":[8232,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensDto.js":[8232,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling":[5538,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling.js":[5538,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling":[4243,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling.js":[4243,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService":[7004,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService.js":[7004,792],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl":[796],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl.js":[796],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol":[8868,792],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol.js":[8868,792],"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration":[360,792],"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration.js":[360,792],"monaco-editor/esm/vs/editor/common/services/treeSitterParserService":[4432,792],"monaco-editor/esm/vs/editor/common/services/treeSitterParserService.js":[4432,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDnd":[6723,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDnd.js":[6723,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDndService":[9100,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDndService.js":[9100,792],"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter":[4855],"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter.js":[4855]};function r(e){if(!n.o(i,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=i[e],r=t[0];return Promise.all(t.slice(1).map(n.e)).then((()=>n(r)))}r.keys=()=>Object.keys(i),r.id=9204,e.exports=r},7614:(e,t,n)=>{var i={"./editorBaseApi":4272,"./editorBaseApi.js":4272,"./editorSimpleWorker":5196,"./editorSimpleWorker.js":5196,"./editorWorker":920,"./editorWorker.js":920,"./editorWorkerHost":718,"./editorWorkerHost.js":718,"./findSectionHeaders":6691,"./findSectionHeaders.js":6691,"./getIconClasses":5628,"./getIconClasses.js":5628,"./languageFeatureDebounce":8709,"./languageFeatureDebounce.js":8709,"./languageFeatures":6942,"./languageFeatures.js":6942,"./languageFeaturesService":2661,"./languageFeaturesService.js":2661,"./languageService":7596,"./languageService.js":7596,"./languagesAssociations":9908,"./languagesAssociations.js":9908,"./languagesRegistry":9259,"./languagesRegistry.js":9259,"./markerDecorations":7550,"./markerDecorations.js":7550,"./markerDecorationsService":448,"./markerDecorationsService.js":448,"./model":3750,"./model.js":3750,"./modelService":1773,"./modelService.js":1773,"./resolverService":8938,"./resolverService.js":8938,"./semanticTokensDto":8232,"./semanticTokensDto.js":8232,"./semanticTokensProviderStyling":5538,"./semanticTokensProviderStyling.js":5538,"./semanticTokensStyling":4243,"./semanticTokensStyling.js":4243,"./semanticTokensStylingService":7004,"./semanticTokensStylingService.js":7004,"./textModelSync/textModelSync.impl":796,"./textModelSync/textModelSync.impl.js":796,"./textModelSync/textModelSync.protocol":8868,"./textModelSync/textModelSync.protocol.js":8868,"./textResourceConfiguration":360,"./textResourceConfiguration.js":360,"./treeSitterParserService":4432,"./treeSitterParserService.js":4432,"./treeViewsDnd":6723,"./treeViewsDnd.js":6723,"./treeViewsDndService":9100,"./treeViewsDndService.js":9100,"./unicodeTextModelHighlighter":4855,"./unicodeTextModelHighlighter.js":4855,"monaco-editor/esm/vs/editor/common/services/editorBaseApi":4272,"monaco-editor/esm/vs/editor/common/services/editorBaseApi.js":4272,"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker":5196,"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker.js":5196,"monaco-editor/esm/vs/editor/common/services/editorWorker":920,"monaco-editor/esm/vs/editor/common/services/editorWorker.js":920,"monaco-editor/esm/vs/editor/common/services/editorWorkerHost":718,"monaco-editor/esm/vs/editor/common/services/editorWorkerHost.js":718,"monaco-editor/esm/vs/editor/common/services/findSectionHeaders":6691,"monaco-editor/esm/vs/editor/common/services/findSectionHeaders.js":6691,"monaco-editor/esm/vs/editor/common/services/getIconClasses":5628,"monaco-editor/esm/vs/editor/common/services/getIconClasses.js":5628,"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce":8709,"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce.js":8709,"monaco-editor/esm/vs/editor/common/services/languageFeatures":6942,"monaco-editor/esm/vs/editor/common/services/languageFeatures.js":6942,"monaco-editor/esm/vs/editor/common/services/languageFeaturesService":2661,"monaco-editor/esm/vs/editor/common/services/languageFeaturesService.js":2661,"monaco-editor/esm/vs/editor/common/services/languageService":7596,"monaco-editor/esm/vs/editor/common/services/languageService.js":7596,"monaco-editor/esm/vs/editor/common/services/languagesAssociations":9908,"monaco-editor/esm/vs/editor/common/services/languagesAssociations.js":9908,"monaco-editor/esm/vs/editor/common/services/languagesRegistry":9259,"monaco-editor/esm/vs/editor/common/services/languagesRegistry.js":9259,"monaco-editor/esm/vs/editor/common/services/markerDecorations":7550,"monaco-editor/esm/vs/editor/common/services/markerDecorations.js":7550,"monaco-editor/esm/vs/editor/common/services/markerDecorationsService":448,"monaco-editor/esm/vs/editor/common/services/markerDecorationsService.js":448,"monaco-editor/esm/vs/editor/common/services/model":3750,"monaco-editor/esm/vs/editor/common/services/model.js":3750,"monaco-editor/esm/vs/editor/common/services/modelService":1773,"monaco-editor/esm/vs/editor/common/services/modelService.js":1773,"monaco-editor/esm/vs/editor/common/services/resolverService":8938,"monaco-editor/esm/vs/editor/common/services/resolverService.js":8938,"monaco-editor/esm/vs/editor/common/services/semanticTokensDto":8232,"monaco-editor/esm/vs/editor/common/services/semanticTokensDto.js":8232,"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling":5538,"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling.js":5538,"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling":4243,"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling.js":4243,"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService":7004,"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService.js":7004,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl":796,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl.js":796,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol":8868,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol.js":8868,"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration":360,"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration.js":360,"monaco-editor/esm/vs/editor/common/services/treeSitterParserService":4432,"monaco-editor/esm/vs/editor/common/services/treeSitterParserService.js":4432,"monaco-editor/esm/vs/editor/common/services/treeViewsDnd":6723,"monaco-editor/esm/vs/editor/common/services/treeViewsDnd.js":6723,"monaco-editor/esm/vs/editor/common/services/treeViewsDndService":9100,"monaco-editor/esm/vs/editor/common/services/treeViewsDndService.js":9100,"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter":4855,"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter.js":4855};function r(e){var t=s(e);return n(t)}function s(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}r.keys=function(){return Object.keys(i)},r.resolve=s,e.exports=r,r.id=7614}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var s=t[i]={exports:{}};return e[i](s,s.exports,n),s.exports}n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.e=()=>Promise.resolve(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=n(1929),t=n(5196),i=n(718);let r=!1;function s(n){if(r)return;r=!0;const s=new e.SimpleWorkerServer((e=>{globalThis.postMessage(e)}),(e=>new t.EditorSimpleWorker(i.EditorWorkerHost.getChannel(e),n)));globalThis.onmessage=e=>{s.onmessage(e.data)}}function o(...e){const t=e[0];let n,i,r;if("string"===typeof t)n=t,i=t,e.splice(0,1),r=e&&"object"===typeof e[0]?e[0]:e;else{if(t instanceof Array){const n=e.slice(1);if(t.length!==n.length+1)throw new Error("expected a string as the first argument to l10n.t");let i=t[0];for(let e=1;e<t.length;e++)i+=`{${e-1}}`+t[e];return o(i,...n)}i=t.message,n=i,t.comment&&t.comment.length>0&&(n+=`/${Array.isArray(t.comment)?t.comment.join(""):t.comment}`),r=t.args??{}}return Rt(i,r)}globalThis.onmessage=e=>{r||s(null)};var a,l,h,c,d,u,g,f,m,p,_,b,v,w,k,y,T,C,S,L,x,E,A,I,M,N,R,D,O,B,z,P,F,W,H,U,q,V,j,G,K,$,Q,Y,X,J,Z,ee,te,ne,ie,re,se,oe,ae,le,he,ce,de,ue,ge,fe,me,pe,_e,be,ve,we,ke,ye,Te,Ce,Se,Le,xe,Ee,Ae,Ie,Me,Ne,Re,De,Oe,Be,ze,Pe,Fe,We,He,Ue,qe,Ve,je,Ge,Ke,$e,Qe,Ye,Xe,Je,Ze,et,tt,nt,it,rt,st,ot,at,lt,ht,ct,dt,ut,gt,ft,mt,pt,_t,bt,vt,wt,kt,yt,Tt,Ct,St,Lt,xt,Et,At,It,Mt,Nt=/{([^}]+)}/g;function Rt(e,t){return 0===Object.keys(t).length?e:e.replace(Nt,((e,n)=>t[n]??e))}(a||(a={})).is=function(e){return"string"===typeof e},(l||(l={})).is=function(e){return"string"===typeof e},(c=h||(h={})).MIN_VALUE=-2147483648,c.MAX_VALUE=2147483647,c.is=function(e){return"number"===typeof e&&c.MIN_VALUE<=e&&e<=c.MAX_VALUE},(u=d||(d={})).MIN_VALUE=0,u.MAX_VALUE=2147483647,u.is=function(e){return"number"===typeof e&&u.MIN_VALUE<=e&&e<=u.MAX_VALUE},(f=g||(g={})).create=function(e,t){return e===Number.MAX_VALUE&&(e=d.MAX_VALUE),t===Number.MAX_VALUE&&(t=d.MAX_VALUE),{line:e,character:t}},f.is=function(e){let t=e;return Dt.objectLiteral(t)&&Dt.uinteger(t.line)&&Dt.uinteger(t.character)},(p=m||(m={})).create=function(e,t,n,i){if(Dt.uinteger(e)&&Dt.uinteger(t)&&Dt.uinteger(n)&&Dt.uinteger(i))return{start:g.create(e,t),end:g.create(n,i)};if(g.is(e)&&g.is(t))return{start:e,end:t};throw new Error(`Range#create called with invalid arguments[${e}, ${t}, ${n}, ${i}]`)},p.is=function(e){let t=e;return Dt.objectLiteral(t)&&g.is(t.start)&&g.is(t.end)},(b=_||(_={})).create=function(e,t){return{uri:e,range:t}},b.is=function(e){let t=e;return Dt.objectLiteral(t)&&m.is(t.range)&&(Dt.string(t.uri)||Dt.undefined(t.uri))},(w=v||(v={})).create=function(e,t,n,i){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:i}},w.is=function(e){let t=e;return Dt.objectLiteral(t)&&m.is(t.targetRange)&&Dt.string(t.targetUri)&&m.is(t.targetSelectionRange)&&(m.is(t.originSelectionRange)||Dt.undefined(t.originSelectionRange))},(y=k||(k={})).create=function(e,t,n,i){return{red:e,green:t,blue:n,alpha:i}},y.is=function(e){const t=e;return Dt.objectLiteral(t)&&Dt.numberRange(t.red,0,1)&&Dt.numberRange(t.green,0,1)&&Dt.numberRange(t.blue,0,1)&&Dt.numberRange(t.alpha,0,1)},(C=T||(T={})).create=function(e,t){return{range:e,color:t}},C.is=function(e){const t=e;return Dt.objectLiteral(t)&&m.is(t.range)&&k.is(t.color)},(L=S||(S={})).create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},L.is=function(e){const t=e;return Dt.objectLiteral(t)&&Dt.string(t.label)&&(Dt.undefined(t.textEdit)||U.is(t))&&(Dt.undefined(t.additionalTextEdits)||Dt.typedArray(t.additionalTextEdits,U.is))},(E=x||(x={})).Comment="comment",E.Imports="imports",E.Region="region",(I=A||(A={})).create=function(e,t,n,i,r,s){const o={startLine:e,endLine:t};return Dt.defined(n)&&(o.startCharacter=n),Dt.defined(i)&&(o.endCharacter=i),Dt.defined(r)&&(o.kind=r),Dt.defined(s)&&(o.collapsedText=s),o},I.is=function(e){const t=e;return Dt.objectLiteral(t)&&Dt.uinteger(t.startLine)&&Dt.uinteger(t.startLine)&&(Dt.undefined(t.startCharacter)||Dt.uinteger(t.startCharacter))&&(Dt.undefined(t.endCharacter)||Dt.uinteger(t.endCharacter))&&(Dt.undefined(t.kind)||Dt.string(t.kind))},(N=M||(M={})).create=function(e,t){return{location:e,message:t}},N.is=function(e){let t=e;return Dt.defined(t)&&_.is(t.location)&&Dt.string(t.message)},(D=R||(R={})).Error=1,D.Warning=2,D.Information=3,D.Hint=4,(B=O||(O={})).Unnecessary=1,B.Deprecated=2,(z||(z={})).is=function(e){const t=e;return Dt.objectLiteral(t)&&Dt.string(t.href)},(F=P||(P={})).create=function(e,t,n,i,r,s){let o={range:e,message:t};return Dt.defined(n)&&(o.severity=n),Dt.defined(i)&&(o.code=i),Dt.defined(r)&&(o.source=r),Dt.defined(s)&&(o.relatedInformation=s),o},F.is=function(e){var t;let n=e;return Dt.defined(n)&&m.is(n.range)&&Dt.string(n.message)&&(Dt.number(n.severity)||Dt.undefined(n.severity))&&(Dt.integer(n.code)||Dt.string(n.code)||Dt.undefined(n.code))&&(Dt.undefined(n.codeDescription)||Dt.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(Dt.string(n.source)||Dt.undefined(n.source))&&(Dt.undefined(n.relatedInformation)||Dt.typedArray(n.relatedInformation,M.is))},(H=W||(W={})).create=function(e,t,...n){let i={title:e,command:t};return Dt.defined(n)&&n.length>0&&(i.arguments=n),i},H.is=function(e){let t=e;return Dt.defined(t)&&Dt.string(t.title)&&Dt.string(t.command)},(q=U||(U={})).replace=function(e,t){return{range:e,newText:t}},q.insert=function(e,t){return{range:{start:e,end:e},newText:t}},q.del=function(e){return{range:e,newText:""}},q.is=function(e){const t=e;return Dt.objectLiteral(t)&&Dt.string(t.newText)&&m.is(t.range)},(j=V||(V={})).create=function(e,t,n){const i={label:e};return void 0!==t&&(i.needsConfirmation=t),void 0!==n&&(i.description=n),i},j.is=function(e){const t=e;return Dt.objectLiteral(t)&&Dt.string(t.label)&&(Dt.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(Dt.string(t.description)||void 0===t.description)},(G||(G={})).is=function(e){const t=e;return Dt.string(t)},($=K||(K={})).replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},$.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},$.del=function(e,t){return{range:e,newText:"",annotationId:t}},$.is=function(e){const t=e;return U.is(t)&&(V.is(t.annotationId)||G.is(t.annotationId))},(Y=Q||(Q={})).create=function(e,t){return{textDocument:e,edits:t}},Y.is=function(e){let t=e;return Dt.defined(t)&&le.is(t.textDocument)&&Array.isArray(t.edits)},(J=X||(X={})).create=function(e,t,n){let i={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(i.options=t),void 0!==n&&(i.annotationId=n),i},J.is=function(e){let t=e;return t&&"create"===t.kind&&Dt.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||Dt.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Dt.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||G.is(t.annotationId))},(ee=Z||(Z={})).create=function(e,t,n,i){let r={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(r.options=n),void 0!==i&&(r.annotationId=i),r},ee.is=function(e){let t=e;return t&&"rename"===t.kind&&Dt.string(t.oldUri)&&Dt.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||Dt.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Dt.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||G.is(t.annotationId))},(ne=te||(te={})).create=function(e,t,n){let i={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(i.options=t),void 0!==n&&(i.annotationId=n),i},ne.is=function(e){let t=e;return t&&"delete"===t.kind&&Dt.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||Dt.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||Dt.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||G.is(t.annotationId))},(ie||(ie={})).is=function(e){let t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((e=>Dt.string(e.kind)?X.is(e)||Z.is(e)||te.is(e):Q.is(e))))},(se=re||(re={})).create=function(e){return{uri:e}},se.is=function(e){let t=e;return Dt.defined(t)&&Dt.string(t.uri)},(ae=oe||(oe={})).create=function(e,t){return{uri:e,version:t}},ae.is=function(e){let t=e;return Dt.defined(t)&&Dt.string(t.uri)&&Dt.integer(t.version)},(he=le||(le={})).create=function(e,t){return{uri:e,version:t}},he.is=function(e){let t=e;return Dt.defined(t)&&Dt.string(t.uri)&&(null===t.version||Dt.integer(t.version))},(de=ce||(ce={})).create=function(e,t,n,i){return{uri:e,languageId:t,version:n,text:i}},de.is=function(e){let t=e;return Dt.defined(t)&&Dt.string(t.uri)&&Dt.string(t.languageId)&&Dt.integer(t.version)&&Dt.string(t.text)},(ge=ue||(ue={})).PlainText="plaintext",ge.Markdown="markdown",ge.is=function(e){const t=e;return t===ge.PlainText||t===ge.Markdown},(fe||(fe={})).is=function(e){const t=e;return Dt.objectLiteral(e)&&ue.is(t.kind)&&Dt.string(t.value)},(pe=me||(me={})).Text=1,pe.Method=2,pe.Function=3,pe.Constructor=4,pe.Field=5,pe.Variable=6,pe.Class=7,pe.Interface=8,pe.Module=9,pe.Property=10,pe.Unit=11,pe.Value=12,pe.Enum=13,pe.Keyword=14,pe.Snippet=15,pe.Color=16,pe.File=17,pe.Reference=18,pe.Folder=19,pe.EnumMember=20,pe.Constant=21,pe.Struct=22,pe.Event=23,pe.Operator=24,pe.TypeParameter=25,(be=_e||(_e={})).PlainText=1,be.Snippet=2,(ve||(ve={})).Deprecated=1,(ke=we||(we={})).create=function(e,t,n){return{newText:e,insert:t,replace:n}},ke.is=function(e){const t=e;return t&&Dt.string(t.newText)&&m.is(t.insert)&&m.is(t.replace)},(Te=ye||(ye={})).asIs=1,Te.adjustIndentation=2,(Ce||(Ce={})).is=function(e){const t=e;return t&&(Dt.string(t.detail)||void 0===t.detail)&&(Dt.string(t.description)||void 0===t.description)},(Se||(Se={})).create=function(e){return{label:e}},(Le||(Le={})).create=function(e,t){return{items:e||[],isIncomplete:!!t}},(Ee=xe||(xe={})).fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},Ee.is=function(e){const t=e;return Dt.string(t)||Dt.objectLiteral(t)&&Dt.string(t.language)&&Dt.string(t.value)},(Ae||(Ae={})).is=function(e){let t=e;return!!t&&Dt.objectLiteral(t)&&(fe.is(t.contents)||xe.is(t.contents)||Dt.typedArray(t.contents,xe.is))&&(void 0===e.range||m.is(e.range))},(Ie||(Ie={})).create=function(e,t){return t?{label:e,documentation:t}:{label:e}},(Me||(Me={})).create=function(e,t,...n){let i={label:e};return Dt.defined(t)&&(i.documentation=t),Dt.defined(n)?i.parameters=n:i.parameters=[],i},(Re=Ne||(Ne={})).Text=1,Re.Read=2,Re.Write=3,(De||(De={})).create=function(e,t){let n={range:e};return Dt.number(t)&&(n.kind=t),n},(Be=Oe||(Oe={})).File=1,Be.Module=2,Be.Namespace=3,Be.Package=4,Be.Class=5,Be.Method=6,Be.Property=7,Be.Field=8,Be.Constructor=9,Be.Enum=10,Be.Interface=11,Be.Function=12,Be.Variable=13,Be.Constant=14,Be.String=15,Be.Number=16,Be.Boolean=17,Be.Array=18,Be.Object=19,Be.Key=20,Be.Null=21,Be.EnumMember=22,Be.Struct=23,Be.Event=24,Be.Operator=25,Be.TypeParameter=26,(ze||(ze={})).Deprecated=1,(Pe||(Pe={})).create=function(e,t,n,i,r){let s={name:e,kind:t,location:{uri:i,range:n}};return r&&(s.containerName=r),s},(Fe||(Fe={})).create=function(e,t,n,i){return void 0!==i?{name:e,kind:t,location:{uri:n,range:i}}:{name:e,kind:t,location:{uri:n}}},(He=We||(We={})).create=function(e,t,n,i,r,s){let o={name:e,detail:t,kind:n,range:i,selectionRange:r};return void 0!==s&&(o.children=s),o},He.is=function(e){let t=e;return t&&Dt.string(t.name)&&Dt.number(t.kind)&&m.is(t.range)&&m.is(t.selectionRange)&&(void 0===t.detail||Dt.string(t.detail))&&(void 0===t.deprecated||Dt.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))},(qe=Ue||(Ue={})).Empty="",qe.QuickFix="quickfix",qe.Refactor="refactor",qe.RefactorExtract="refactor.extract",qe.RefactorInline="refactor.inline",qe.RefactorRewrite="refactor.rewrite",qe.Source="source",qe.SourceOrganizeImports="source.organizeImports",qe.SourceFixAll="source.fixAll",(je=Ve||(Ve={})).Invoked=1,je.Automatic=2,(Ke=Ge||(Ge={})).create=function(e,t,n){let i={diagnostics:e};return void 0!==t&&null!==t&&(i.only=t),void 0!==n&&null!==n&&(i.triggerKind=n),i},Ke.is=function(e){let t=e;return Dt.defined(t)&&Dt.typedArray(t.diagnostics,P.is)&&(void 0===t.only||Dt.typedArray(t.only,Dt.string))&&(void 0===t.triggerKind||t.triggerKind===Ve.Invoked||t.triggerKind===Ve.Automatic)},(Qe=$e||($e={})).create=function(e,t,n){let i={title:e},r=!0;return"string"===typeof t?(r=!1,i.kind=t):W.is(t)?i.command=t:i.edit=t,r&&void 0!==n&&(i.kind=n),i},Qe.is=function(e){let t=e;return t&&Dt.string(t.title)&&(void 0===t.diagnostics||Dt.typedArray(t.diagnostics,P.is))&&(void 0===t.kind||Dt.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||W.is(t.command))&&(void 0===t.isPreferred||Dt.boolean(t.isPreferred))&&(void 0===t.edit||ie.is(t.edit))},(Xe=Ye||(Ye={})).create=function(e,t){let n={range:e};return Dt.defined(t)&&(n.data=t),n},Xe.is=function(e){let t=e;return Dt.defined(t)&&m.is(t.range)&&(Dt.undefined(t.command)||W.is(t.command))},(Ze=Je||(Je={})).create=function(e,t){return{tabSize:e,insertSpaces:t}},Ze.is=function(e){let t=e;return Dt.defined(t)&&Dt.uinteger(t.tabSize)&&Dt.boolean(t.insertSpaces)},(tt=et||(et={})).create=function(e,t,n){return{range:e,target:t,data:n}},tt.is=function(e){let t=e;return Dt.defined(t)&&m.is(t.range)&&(Dt.undefined(t.target)||Dt.string(t.target))},(it=nt||(nt={})).create=function(e,t){return{range:e,parent:t}},it.is=function(e){let t=e;return Dt.objectLiteral(t)&&m.is(t.range)&&(void 0===t.parent||it.is(t.parent))},(st=rt||(rt={})).namespace="namespace",st.type="type",st.class="class",st.enum="enum",st.interface="interface",st.struct="struct",st.typeParameter="typeParameter",st.parameter="parameter",st.variable="variable",st.property="property",st.enumMember="enumMember",st.event="event",st.function="function",st.method="method",st.macro="macro",st.keyword="keyword",st.modifier="modifier",st.comment="comment",st.string="string",st.number="number",st.regexp="regexp",st.operator="operator",st.decorator="decorator",(at=ot||(ot={})).declaration="declaration",at.definition="definition",at.readonly="readonly",at.static="static",at.deprecated="deprecated",at.abstract="abstract",at.async="async",at.modification="modification",at.documentation="documentation",at.defaultLibrary="defaultLibrary",(lt||(lt={})).is=function(e){const t=e;return Dt.objectLiteral(t)&&(void 0===t.resultId||"string"===typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"===typeof t.data[0])},(ct=ht||(ht={})).create=function(e,t){return{range:e,text:t}},ct.is=function(e){const t=e;return void 0!==t&&null!==t&&m.is(t.range)&&Dt.string(t.text)},(ut=dt||(dt={})).create=function(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}},ut.is=function(e){const t=e;return void 0!==t&&null!==t&&m.is(t.range)&&Dt.boolean(t.caseSensitiveLookup)&&(Dt.string(t.variableName)||void 0===t.variableName)},(ft=gt||(gt={})).create=function(e,t){return{range:e,expression:t}},ft.is=function(e){const t=e;return void 0!==t&&null!==t&&m.is(t.range)&&(Dt.string(t.expression)||void 0===t.expression)},(pt=mt||(mt={})).create=function(e,t){return{frameId:e,stoppedLocation:t}},pt.is=function(e){const t=e;return Dt.defined(t)&&m.is(e.stoppedLocation)},(bt=_t||(_t={})).Type=1,bt.Parameter=2,bt.is=function(e){return 1===e||2===e},(wt=vt||(vt={})).create=function(e){return{value:e}},wt.is=function(e){const t=e;return Dt.objectLiteral(t)&&(void 0===t.tooltip||Dt.string(t.tooltip)||fe.is(t.tooltip))&&(void 0===t.location||_.is(t.location))&&(void 0===t.command||W.is(t.command))},(yt=kt||(kt={})).create=function(e,t,n){const i={position:e,label:t};return void 0!==n&&(i.kind=n),i},yt.is=function(e){const t=e;return Dt.objectLiteral(t)&&g.is(t.position)&&(Dt.string(t.label)||Dt.typedArray(t.label,vt.is))&&(void 0===t.kind||_t.is(t.kind))&&void 0===t.textEdits||Dt.typedArray(t.textEdits,U.is)&&(void 0===t.tooltip||Dt.string(t.tooltip)||fe.is(t.tooltip))&&(void 0===t.paddingLeft||Dt.boolean(t.paddingLeft))&&(void 0===t.paddingRight||Dt.boolean(t.paddingRight))},(Tt||(Tt={})).createSnippet=function(e){return{kind:"snippet",value:e}},(Ct||(Ct={})).create=function(e,t,n,i){return{insertText:e,filterText:t,range:n,command:i}},(St||(St={})).create=function(e){return{items:e}},(xt=Lt||(Lt={})).Invoked=0,xt.Automatic=1,(Et||(Et={})).create=function(e,t){return{range:e,text:t}},(At||(At={})).create=function(e,t){return{triggerKind:e,selectedCompletionInfo:t}},(It||(It={})).is=function(e){const t=e;return Dt.objectLiteral(t)&&l.is(t.uri)&&Dt.string(t.name)},function(e){function t(e,n){if(e.length<=1)return e;const i=e.length/2|0,r=e.slice(0,i),s=e.slice(i);t(r,n),t(s,n);let o=0,a=0,l=0;for(;o<r.length&&a<s.length;){let t=n(r[o],s[a]);e[l++]=t<=0?r[o++]:s[a++]}for(;o<r.length;)e[l++]=r[o++];for(;a<s.length;)e[l++]=s[a++];return e}e.create=function(e,t,n,i){return new Ot(e,t,n,i)},e.is=function(e){let t=e;return!!(Dt.defined(t)&&Dt.string(t.uri)&&(Dt.undefined(t.languageId)||Dt.string(t.languageId))&&Dt.uinteger(t.lineCount)&&Dt.func(t.getText)&&Dt.func(t.positionAt)&&Dt.func(t.offsetAt))},e.applyEdits=function(e,n){let i=e.getText(),r=t(n,((e,t)=>{let n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),s=i.length;for(let t=r.length-1;t>=0;t--){let n=r[t],o=e.offsetAt(n.range.start),a=e.offsetAt(n.range.end);if(!(a<=s))throw new Error("Overlapping edit");i=i.substring(0,o)+n.newText+i.substring(a,i.length),s=o}return i}}(Mt||(Mt={}));var Dt,Ot=class{constructor(e,t,n,i){this._uri=e,this._languageId=t,this._version=n,this._content=i,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(void 0===this._lineOffsets){let e=[],t=this._content,n=!0;for(let i=0;i<t.length;i++){n&&(e.push(i),n=!1);let r=t.charAt(i);n="\r"===r||"\n"===r,"\r"===r&&i+1<t.length&&"\n"===t.charAt(i+1)&&i++}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,i=t.length;if(0===i)return g.create(0,e);for(;n<i;){let r=Math.floor((n+i)/2);t[r]>e?i=r:n=r+1}let r=n-1;return g.create(r,e-t[r])}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],i=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,i),n)}get lineCount(){return this.getLineOffsets().length}};!function(e){const t=Object.prototype.toString;e.defined=function(e){return"undefined"!==typeof e},e.undefined=function(e){return"undefined"===typeof e},e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===t.call(e)},e.number=function(e){return"[object Number]"===t.call(e)},e.numberRange=function(e,n,i){return"[object Number]"===t.call(e)&&n<=e&&e<=i},e.integer=function(e){return"[object Number]"===t.call(e)&&-2147483648<=e&&e<=2147483647},e.uinteger=function(e){return"[object Number]"===t.call(e)&&0<=e&&e<=2147483647},e.func=function(e){return"[object Function]"===t.call(e)},e.objectLiteral=function(e){return null!==e&&"object"===typeof e},e.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)}}(Dt||(Dt={}));var Bt,zt,Pt,Ft,Wt,Ht,Ut,qt,Vt,jt=class e{constructor(e,t,n,i){this._uri=e,this._languageId=t,this._version=n,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){const t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(t,n){for(let i of t)if(e.isIncremental(i)){const e=$t(i.range),t=this.offsetAt(e.start),n=this.offsetAt(e.end);this._content=this._content.substring(0,t)+i.text+this._content.substring(n,this._content.length);const r=Math.max(e.start.line,0),s=Math.max(e.end.line,0);let o=this._lineOffsets;const a=Kt(i.text,!1,t);if(s-r===a.length)for(let i=0,h=a.length;i<h;i++)o[i+r+1]=a[i];else a.length<1e4?o.splice(r+1,s-r,...a):this._lineOffsets=o=o.slice(0,r+1).concat(a,o.slice(s+1));const l=i.text.length-(n-t);if(0!==l)for(let i=r+1+a.length,h=o.length;i<h;i++)o[i]=o[i]+l}else{if(!e.isFull(i))throw new Error("Unknown change event received");this._content=i.text,this._lineOffsets=void 0}this._version=n}getLineOffsets(){return void 0===this._lineOffsets&&(this._lineOffsets=Kt(this._content,!0)),this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,i=t.length;if(0===i)return{line:0,character:e};for(;n<i;){let r=Math.floor((n+i)/2);t[r]>e?i=r:n=r+1}let r=n-1;return{line:r,character:e-t[r]}}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],i=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,i),n)}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){let t=e;return void 0!==t&&null!==t&&"string"===typeof t.text&&void 0!==t.range&&(void 0===t.rangeLength||"number"===typeof t.rangeLength)}static isFull(e){let t=e;return void 0!==t&&null!==t&&"string"===typeof t.text&&void 0===t.range&&void 0===t.rangeLength}};function Gt(e,t){if(e.length<=1)return e;const n=e.length/2|0,i=e.slice(0,n),r=e.slice(n);Gt(i,t),Gt(r,t);let s=0,o=0,a=0;for(;s<i.length&&o<r.length;){let n=t(i[s],r[o]);e[a++]=n<=0?i[s++]:r[o++]}for(;s<i.length;)e[a++]=i[s++];for(;o<r.length;)e[a++]=r[o++];return e}function Kt(e,t,n=0){const i=t?[n]:[];for(let r=0;r<e.length;r++){let t=e.charCodeAt(r);13!==t&&10!==t||(13===t&&r+1<e.length&&10===e.charCodeAt(r+1)&&r++,i.push(n+r+1))}return i}function $t(e){const 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 Qt(e){const t=$t(e.range);return t!==e.range?{newText:e.newText,range:t}:e}(zt=Bt||(Bt={})).create=function(e,t,n,i){return new jt(e,t,n,i)},zt.update=function(e,t,n){if(e instanceof jt)return e.update(t,n),e;throw new Error("TextDocument.update: document must be created by TextDocument.create")},zt.applyEdits=function(e,t){let n=e.getText(),i=Gt(t.map(Qt),((e,t)=>{let n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),r=0;const s=[];for(const o of i){let t=e.offsetAt(o.range.start);if(t<r)throw new Error("Overlapping edit");t>r&&s.push(n.substring(r,t)),o.newText.length&&s.push(o.newText),r=e.offsetAt(o.range.end)}return s.push(n.substr(r)),s.join("")},(Ft=Pt||(Pt={}))[Ft.StartCommentTag=0]="StartCommentTag",Ft[Ft.Comment=1]="Comment",Ft[Ft.EndCommentTag=2]="EndCommentTag",Ft[Ft.StartTagOpen=3]="StartTagOpen",Ft[Ft.StartTagClose=4]="StartTagClose",Ft[Ft.StartTagSelfClose=5]="StartTagSelfClose",Ft[Ft.StartTag=6]="StartTag",Ft[Ft.EndTagOpen=7]="EndTagOpen",Ft[Ft.EndTagClose=8]="EndTagClose",Ft[Ft.EndTag=9]="EndTag",Ft[Ft.DelimiterAssign=10]="DelimiterAssign",Ft[Ft.AttributeName=11]="AttributeName",Ft[Ft.AttributeValue=12]="AttributeValue",Ft[Ft.StartDoctypeTag=13]="StartDoctypeTag",Ft[Ft.Doctype=14]="Doctype",Ft[Ft.EndDoctypeTag=15]="EndDoctypeTag",Ft[Ft.Content=16]="Content",Ft[Ft.Whitespace=17]="Whitespace",Ft[Ft.Unknown=18]="Unknown",Ft[Ft.Script=19]="Script",Ft[Ft.Styles=20]="Styles",Ft[Ft.EOS=21]="EOS",(Ht=Wt||(Wt={}))[Ht.WithinContent=0]="WithinContent",Ht[Ht.AfterOpeningStartTag=1]="AfterOpeningStartTag",Ht[Ht.AfterOpeningEndTag=2]="AfterOpeningEndTag",Ht[Ht.WithinDoctype=3]="WithinDoctype",Ht[Ht.WithinTag=4]="WithinTag",Ht[Ht.WithinEndTag=5]="WithinEndTag",Ht[Ht.WithinComment=6]="WithinComment",Ht[Ht.WithinScriptContent=7]="WithinScriptContent",Ht[Ht.WithinStyleContent=8]="WithinStyleContent",Ht[Ht.AfterAttributeName=9]="AfterAttributeName",Ht[Ht.BeforeAttributeValue=10]="BeforeAttributeValue",(Ut||(Ut={})).LATEST={textDocument:{completion:{completionItem:{documentationFormat:[ue.Markdown,ue.PlainText]}},hover:{contentFormat:[ue.Markdown,ue.PlainText]}}},(Vt=qt||(qt={}))[Vt.Unknown=0]="Unknown",Vt[Vt.File=1]="File",Vt[Vt.Directory=2]="Directory",Vt[Vt.SymbolicLink=64]="SymbolicLink";var Yt=class{constructor(e,t){this.source=e,this.len=e.length,this.position=t}eos(){return this.len<=this.position}getSource(){return this.source}pos(){return this.position}goBackTo(e){this.position=e}goBack(e){this.position-=e}advance(e){this.position+=e}goToEnd(){this.position=this.source.length}nextChar(){return this.source.charCodeAt(this.position++)||0}peekChar(e=0){return this.source.charCodeAt(this.position+e)||0}advanceIfChar(e){return e===this.source.charCodeAt(this.position)&&(this.position++,!0)}advanceIfChars(e){let t;if(this.position+e.length>this.source.length)return!1;for(t=0;t<e.length;t++)if(this.source.charCodeAt(this.position+t)!==e[t])return!1;return this.advance(t),!0}advanceIfRegExp(e){const t=this.source.substr(this.position).match(e);return t?(this.position=this.position+t.index+t[0].length,t[0]):""}advanceUntilRegExp(e){const t=this.source.substr(this.position).match(e);return t?(this.position=this.position+t.index,t[0]):(this.goToEnd(),"")}advanceUntilChar(e){for(;this.position<this.source.length;){if(this.source.charCodeAt(this.position)===e)return!0;this.advance(1)}return!1}advanceUntilChars(e){for(;this.position+e.length<=this.source.length;){let t=0;for(;t<e.length&&this.source.charCodeAt(this.position+t)===e[t];t++);if(t===e.length)return!0;this.advance(1)}return this.goToEnd(),!1}skipWhitespace(){return this.advanceWhileChar((e=>e===hn||e===cn||e===on||e===ln||e===an))>0}advanceWhileChar(e){const t=this.position;for(;this.position<this.len&&e(this.source.charCodeAt(this.position));)this.position++;return this.position-t}},Xt="!".charCodeAt(0),Jt="-".charCodeAt(0),Zt="<".charCodeAt(0),en=">".charCodeAt(0),tn="/".charCodeAt(0),nn="=".charCodeAt(0),rn='"'.charCodeAt(0),sn="'".charCodeAt(0),on="\n".charCodeAt(0),an="\r".charCodeAt(0),ln="\f".charCodeAt(0),hn=" ".charCodeAt(0),cn="\t".charCodeAt(0),dn={"text/x-handlebars-template":!0,"text/html":!0};function un(e,t=0,n=Wt.WithinContent,i=!1){const r=new Yt(e,t);let s,a,l,h,c,d=n,u=0,g=Pt.Unknown;function f(){return r.advanceIfRegExp(/^[_:\w][_:\w-.\d]*/).toLowerCase()}function m(e,t,n){return g=t,u=e,s=n,t}function p(){const e=r.pos();if(r.eos())return m(e,Pt.EOS);let t;switch(d){case Wt.WithinComment:return r.advanceIfChars([Jt,Jt,en])?(d=Wt.WithinContent,m(e,Pt.EndCommentTag)):(r.advanceUntilChars([Jt,Jt,en]),m(e,Pt.Comment));case Wt.WithinDoctype:return r.advanceIfChar(en)?(d=Wt.WithinContent,m(e,Pt.EndDoctypeTag)):(r.advanceUntilChar(en),m(e,Pt.Doctype));case Wt.WithinContent:if(r.advanceIfChar(Zt)){if(!r.eos()&&r.peekChar()===Xt){if(r.advanceIfChars([Xt,Jt,Jt]))return d=Wt.WithinComment,m(e,Pt.StartCommentTag);if(r.advanceIfRegExp(/^!doctype/i))return d=Wt.WithinDoctype,m(e,Pt.StartDoctypeTag)}return r.advanceIfChar(tn)?(d=Wt.AfterOpeningEndTag,m(e,Pt.EndTagOpen)):(d=Wt.AfterOpeningStartTag,m(e,Pt.StartTagOpen))}return r.advanceUntilChar(Zt),m(e,Pt.Content);case Wt.AfterOpeningEndTag:return f().length>0?(d=Wt.WithinEndTag,m(e,Pt.EndTag)):r.skipWhitespace()?m(e,Pt.Whitespace,o("Tag name must directly follow the open bracket.")):(d=Wt.WithinEndTag,r.advanceUntilChar(en),e<r.pos()?m(e,Pt.Unknown,o("End tag name expected.")):p());case Wt.WithinEndTag:if(r.skipWhitespace())return m(e,Pt.Whitespace);if(r.advanceIfChar(en))return d=Wt.WithinContent,m(e,Pt.EndTagClose);if(i&&r.peekChar()===Zt)return d=Wt.WithinContent,m(e,Pt.EndTagClose,o("Closing bracket missing."));t=o("Closing bracket expected.");break;case Wt.AfterOpeningStartTag:return l=f(),c=void 0,h=void 0,l.length>0?(a=!1,d=Wt.WithinTag,m(e,Pt.StartTag)):r.skipWhitespace()?m(e,Pt.Whitespace,o("Tag name must directly follow the open bracket.")):(d=Wt.WithinTag,r.advanceUntilChar(en),e<r.pos()?m(e,Pt.Unknown,o("Start tag name expected.")):p());case Wt.WithinTag:return r.skipWhitespace()?(a=!0,m(e,Pt.Whitespace)):a&&(h=r.advanceIfRegExp(/^[^\s"'></=\x00-\x0F\x7F\x80-\x9F]*/).toLowerCase(),h.length>0)?(d=Wt.AfterAttributeName,a=!1,m(e,Pt.AttributeName)):r.advanceIfChars([tn,en])?(d=Wt.WithinContent,m(e,Pt.StartTagSelfClose)):r.advanceIfChar(en)?(d="script"===l?c&&dn[c]?Wt.WithinContent:Wt.WithinScriptContent:"style"===l?Wt.WithinStyleContent:Wt.WithinContent,m(e,Pt.StartTagClose)):i&&r.peekChar()===Zt?(d=Wt.WithinContent,m(e,Pt.StartTagClose,o("Closing bracket missing."))):(r.advance(1),m(e,Pt.Unknown,o("Unexpected character in tag.")));case Wt.AfterAttributeName:return r.skipWhitespace()?(a=!0,m(e,Pt.Whitespace)):r.advanceIfChar(nn)?(d=Wt.BeforeAttributeValue,m(e,Pt.DelimiterAssign)):(d=Wt.WithinTag,p());case Wt.BeforeAttributeValue:if(r.skipWhitespace())return m(e,Pt.Whitespace);let n=r.advanceIfRegExp(/^[^\s"'`=<>]+/);if(n.length>0&&(r.peekChar()===en&&r.peekChar(-1)===tn&&(r.goBack(1),n=n.substring(0,n.length-1)),"type"===h&&(c=n),n.length>0))return d=Wt.WithinTag,a=!1,m(e,Pt.AttributeValue);const s=r.peekChar();return s===sn||s===rn?(r.advance(1),r.advanceUntilChar(s)&&r.advance(1),"type"===h&&(c=r.getSource().substring(e+1,r.pos()-1)),d=Wt.WithinTag,a=!1,m(e,Pt.AttributeValue)):(d=Wt.WithinTag,a=!1,p());case Wt.WithinScriptContent:let u=1;for(;!r.eos();){const t=r.advanceIfRegExp(/<!--|-->|<\/?script\s*\/?>?/i);if(0===t.length)return r.goToEnd(),m(e,Pt.Script);if("\x3c!--"===t)1===u&&(u=2);else if("--\x3e"===t)u=1;else if("/"!==t[1])2===u&&(u=3);else{if(3!==u){r.goBack(t.length);break}u=2}}return d=Wt.WithinContent,e<r.pos()?m(e,Pt.Script):p();case Wt.WithinStyleContent:return r.advanceUntilRegExp(/<\/style/i),d=Wt.WithinContent,e<r.pos()?m(e,Pt.Styles):p()}return r.advance(1),d=Wt.WithinContent,m(e,Pt.Unknown,t)}return{scan:function(){const e=r.pos(),t=d,n=p();return n===Pt.EOS||e!==r.pos()||i&&(n===Pt.StartTagClose||n===Pt.EndTagClose)?n:(console.warn("Scanner.scan has not advanced at offset "+e+", state before: "+t+" after: "+d),r.advance(1),m(e,Pt.Unknown))},getTokenType:()=>g,getTokenOffset:()=>u,getTokenLength:()=>r.pos()-u,getTokenEnd:()=>r.pos(),getTokenText:()=>r.getSource().substring(u,r.pos()),getScannerState:()=>d,getTokenError:()=>s}}function gn(e,t){let n=0,i=e.length;if(0===i)return 0;for(;n<i;){let r=Math.floor((n+i)/2);t(e[r])?i=r:n=r+1}return n}var fn=class{get attributeNames(){return this.attributes?Object.keys(this.attributes):[]}constructor(e,t,n,i){this.start=e,this.end=t,this.children=n,this.parent=i,this.closed=!1}isSameTag(e){return void 0===this.tag?void 0===e:void 0!==e&&this.tag.length===e.length&&this.tag.toLowerCase()===e}get firstChild(){return this.children[0]}get lastChild(){return this.children.length?this.children[this.children.length-1]:void 0}findNodeBefore(e){const t=gn(this.children,(t=>e<=t.start))-1;if(t>=0){const n=this.children[t];if(e>n.start){if(e<n.end)return n.findNodeBefore(e);const t=n.lastChild;return t&&t.end===n.end?n.findNodeBefore(e):n}}return this}findNodeAt(e){const t=gn(this.children,(t=>e<=t.start))-1;if(t>=0){const n=this.children[t];if(e>n.start&&e<=n.end)return n.findNodeAt(e)}return this}},mn=class{constructor(e){this.dataManager=e}parseDocument(e){return this.parse(e.getText(),this.dataManager.getVoidElements(e.languageId))}parse(e,t){const n=un(e,void 0,void 0,!0),i=new fn(0,e.length,[],void 0);let r,s=i,o=-1,a=null,l=n.scan();for(;l!==Pt.EOS;){switch(l){case Pt.StartTagOpen:const i=new fn(n.getTokenOffset(),e.length,[],s);s.children.push(i),s=i;break;case Pt.StartTag:s.tag=n.getTokenText();break;case Pt.StartTagClose:s.parent&&(s.end=n.getTokenEnd(),n.getTokenLength()?(s.startTagEnd=n.getTokenEnd(),s.tag&&this.dataManager.isVoidElement(s.tag,t)&&(s.closed=!0,s=s.parent)):s=s.parent);break;case Pt.StartTagSelfClose:s.parent&&(s.closed=!0,s.end=n.getTokenEnd(),s.startTagEnd=n.getTokenEnd(),s=s.parent);break;case Pt.EndTagOpen:o=n.getTokenOffset(),r=void 0;break;case Pt.EndTag:r=n.getTokenText().toLowerCase();break;case Pt.EndTagClose:let l=s;for(;!l.isSameTag(r)&&l.parent;)l=l.parent;if(l.parent){for(;s!==l;)s.end=o,s.closed=!1,s=s.parent;s.closed=!0,s.endTagStart=o,s.end=n.getTokenEnd(),s=s.parent}break;case Pt.AttributeName:{a=n.getTokenText();let e=s.attributes;e||(s.attributes=e={}),e[a]=null;break}case Pt.AttributeValue:{const e=n.getTokenText(),t=s.attributes;t&&a&&(t[a]=e,a=null);break}}l=n.scan()}for(;s.parent;)s.end=e.length,s.closed=!1,s=s.parent;return{roots:i.children,findNodeBefore:i.findNodeBefore.bind(i),findNodeAt:i.findNodeAt.bind(i)}}},pn={"Aacute;":"\xc1",Aacute:"\xc1","aacute;":"\xe1",aacute:"\xe1","Abreve;":"\u0102","abreve;":"\u0103","ac;":"\u223e","acd;":"\u223f","acE;":"\u223e\u0333","Acirc;":"\xc2",Acirc:"\xc2","acirc;":"\xe2",acirc:"\xe2","acute;":"\xb4",acute:"\xb4","Acy;":"\u0410","acy;":"\u0430","AElig;":"\xc6",AElig:"\xc6","aelig;":"\xe6",aelig:"\xe6","af;":"\u2061","Afr;":"\ud835\udd04","afr;":"\ud835\udd1e","Agrave;":"\xc0",Agrave:"\xc0","agrave;":"\xe0",agrave:"\xe0","alefsym;":"\u2135","aleph;":"\u2135","Alpha;":"\u0391","alpha;":"\u03b1","Amacr;":"\u0100","amacr;":"\u0101","amalg;":"\u2a3f","AMP;":"&",AMP:"&","amp;":"&",amp:"&","And;":"\u2a53","and;":"\u2227","andand;":"\u2a55","andd;":"\u2a5c","andslope;":"\u2a58","andv;":"\u2a5a","ang;":"\u2220","ange;":"\u29a4","angle;":"\u2220","angmsd;":"\u2221","angmsdaa;":"\u29a8","angmsdab;":"\u29a9","angmsdac;":"\u29aa","angmsdad;":"\u29ab","angmsdae;":"\u29ac","angmsdaf;":"\u29ad","angmsdag;":"\u29ae","angmsdah;":"\u29af","angrt;":"\u221f","angrtvb;":"\u22be","angrtvbd;":"\u299d","angsph;":"\u2222","angst;":"\xc5","angzarr;":"\u237c","Aogon;":"\u0104","aogon;":"\u0105","Aopf;":"\ud835\udd38","aopf;":"\ud835\udd52","ap;":"\u2248","apacir;":"\u2a6f","apE;":"\u2a70","ape;":"\u224a","apid;":"\u224b","apos;":"'","ApplyFunction;":"\u2061","approx;":"\u2248","approxeq;":"\u224a","Aring;":"\xc5",Aring:"\xc5","aring;":"\xe5",aring:"\xe5","Ascr;":"\ud835\udc9c","ascr;":"\ud835\udcb6","Assign;":"\u2254","ast;":"*","asymp;":"\u2248","asympeq;":"\u224d","Atilde;":"\xc3",Atilde:"\xc3","atilde;":"\xe3",atilde:"\xe3","Auml;":"\xc4",Auml:"\xc4","auml;":"\xe4",auml:"\xe4","awconint;":"\u2233","awint;":"\u2a11","backcong;":"\u224c","backepsilon;":"\u03f6","backprime;":"\u2035","backsim;":"\u223d","backsimeq;":"\u22cd","Backslash;":"\u2216","Barv;":"\u2ae7","barvee;":"\u22bd","Barwed;":"\u2306","barwed;":"\u2305","barwedge;":"\u2305","bbrk;":"\u23b5","bbrktbrk;":"\u23b6","bcong;":"\u224c","Bcy;":"\u0411","bcy;":"\u0431","bdquo;":"\u201e","becaus;":"\u2235","Because;":"\u2235","because;":"\u2235","bemptyv;":"\u29b0","bepsi;":"\u03f6","bernou;":"\u212c","Bernoullis;":"\u212c","Beta;":"\u0392","beta;":"\u03b2","beth;":"\u2136","between;":"\u226c","Bfr;":"\ud835\udd05","bfr;":"\ud835\udd1f","bigcap;":"\u22c2","bigcirc;":"\u25ef","bigcup;":"\u22c3","bigodot;":"\u2a00","bigoplus;":"\u2a01","bigotimes;":"\u2a02","bigsqcup;":"\u2a06","bigstar;":"\u2605","bigtriangledown;":"\u25bd","bigtriangleup;":"\u25b3","biguplus;":"\u2a04","bigvee;":"\u22c1","bigwedge;":"\u22c0","bkarow;":"\u290d","blacklozenge;":"\u29eb","blacksquare;":"\u25aa","blacktriangle;":"\u25b4","blacktriangledown;":"\u25be","blacktriangleleft;":"\u25c2","blacktriangleright;":"\u25b8","blank;":"\u2423","blk12;":"\u2592","blk14;":"\u2591","blk34;":"\u2593","block;":"\u2588","bne;":"=\u20e5","bnequiv;":"\u2261\u20e5","bNot;":"\u2aed","bnot;":"\u2310","Bopf;":"\ud835\udd39","bopf;":"\ud835\udd53","bot;":"\u22a5","bottom;":"\u22a5","bowtie;":"\u22c8","boxbox;":"\u29c9","boxDL;":"\u2557","boxDl;":"\u2556","boxdL;":"\u2555","boxdl;":"\u2510","boxDR;":"\u2554","boxDr;":"\u2553","boxdR;":"\u2552","boxdr;":"\u250c","boxH;":"\u2550","boxh;":"\u2500","boxHD;":"\u2566","boxHd;":"\u2564","boxhD;":"\u2565","boxhd;":"\u252c","boxHU;":"\u2569","boxHu;":"\u2567","boxhU;":"\u2568","boxhu;":"\u2534","boxminus;":"\u229f","boxplus;":"\u229e","boxtimes;":"\u22a0","boxUL;":"\u255d","boxUl;":"\u255c","boxuL;":"\u255b","boxul;":"\u2518","boxUR;":"\u255a","boxUr;":"\u2559","boxuR;":"\u2558","boxur;":"\u2514","boxV;":"\u2551","boxv;":"\u2502","boxVH;":"\u256c","boxVh;":"\u256b","boxvH;":"\u256a","boxvh;":"\u253c","boxVL;":"\u2563","boxVl;":"\u2562","boxvL;":"\u2561","boxvl;":"\u2524","boxVR;":"\u2560","boxVr;":"\u255f","boxvR;":"\u255e","boxvr;":"\u251c","bprime;":"\u2035","Breve;":"\u02d8","breve;":"\u02d8","brvbar;":"\xa6",brvbar:"\xa6","Bscr;":"\u212c","bscr;":"\ud835\udcb7","bsemi;":"\u204f","bsim;":"\u223d","bsime;":"\u22cd","bsol;":"\\","bsolb;":"\u29c5","bsolhsub;":"\u27c8","bull;":"\u2022","bullet;":"\u2022","bump;":"\u224e","bumpE;":"\u2aae","bumpe;":"\u224f","Bumpeq;":"\u224e","bumpeq;":"\u224f","Cacute;":"\u0106","cacute;":"\u0107","Cap;":"\u22d2","cap;":"\u2229","capand;":"\u2a44","capbrcup;":"\u2a49","capcap;":"\u2a4b","capcup;":"\u2a47","capdot;":"\u2a40","CapitalDifferentialD;":"\u2145","caps;":"\u2229\ufe00","caret;":"\u2041","caron;":"\u02c7","Cayleys;":"\u212d","ccaps;":"\u2a4d","Ccaron;":"\u010c","ccaron;":"\u010d","Ccedil;":"\xc7",Ccedil:"\xc7","ccedil;":"\xe7",ccedil:"\xe7","Ccirc;":"\u0108","ccirc;":"\u0109","Cconint;":"\u2230","ccups;":"\u2a4c","ccupssm;":"\u2a50","Cdot;":"\u010a","cdot;":"\u010b","cedil;":"\xb8",cedil:"\xb8","Cedilla;":"\xb8","cemptyv;":"\u29b2","cent;":"\xa2",cent:"\xa2","CenterDot;":"\xb7","centerdot;":"\xb7","Cfr;":"\u212d","cfr;":"\ud835\udd20","CHcy;":"\u0427","chcy;":"\u0447","check;":"\u2713","checkmark;":"\u2713","Chi;":"\u03a7","chi;":"\u03c7","cir;":"\u25cb","circ;":"\u02c6","circeq;":"\u2257","circlearrowleft;":"\u21ba","circlearrowright;":"\u21bb","circledast;":"\u229b","circledcirc;":"\u229a","circleddash;":"\u229d","CircleDot;":"\u2299","circledR;":"\xae","circledS;":"\u24c8","CircleMinus;":"\u2296","CirclePlus;":"\u2295","CircleTimes;":"\u2297","cirE;":"\u29c3","cire;":"\u2257","cirfnint;":"\u2a10","cirmid;":"\u2aef","cirscir;":"\u29c2","ClockwiseContourIntegral;":"\u2232","CloseCurlyDoubleQuote;":"\u201d","CloseCurlyQuote;":"\u2019","clubs;":"\u2663","clubsuit;":"\u2663","Colon;":"\u2237","colon;":":","Colone;":"\u2a74","colone;":"\u2254","coloneq;":"\u2254","comma;":",","commat;":"@","comp;":"\u2201","compfn;":"\u2218","complement;":"\u2201","complexes;":"\u2102","cong;":"\u2245","congdot;":"\u2a6d","Congruent;":"\u2261","Conint;":"\u222f","conint;":"\u222e","ContourIntegral;":"\u222e","Copf;":"\u2102","copf;":"\ud835\udd54","coprod;":"\u2210","Coproduct;":"\u2210","COPY;":"\xa9",COPY:"\xa9","copy;":"\xa9",copy:"\xa9","copysr;":"\u2117","CounterClockwiseContourIntegral;":"\u2233","crarr;":"\u21b5","Cross;":"\u2a2f","cross;":"\u2717","Cscr;":"\ud835\udc9e","cscr;":"\ud835\udcb8","csub;":"\u2acf","csube;":"\u2ad1","csup;":"\u2ad0","csupe;":"\u2ad2","ctdot;":"\u22ef","cudarrl;":"\u2938","cudarrr;":"\u2935","cuepr;":"\u22de","cuesc;":"\u22df","cularr;":"\u21b6","cularrp;":"\u293d","Cup;":"\u22d3","cup;":"\u222a","cupbrcap;":"\u2a48","CupCap;":"\u224d","cupcap;":"\u2a46","cupcup;":"\u2a4a","cupdot;":"\u228d","cupor;":"\u2a45","cups;":"\u222a\ufe00","curarr;":"\u21b7","curarrm;":"\u293c","curlyeqprec;":"\u22de","curlyeqsucc;":"\u22df","curlyvee;":"\u22ce","curlywedge;":"\u22cf","curren;":"\xa4",curren:"\xa4","curvearrowleft;":"\u21b6","curvearrowright;":"\u21b7","cuvee;":"\u22ce","cuwed;":"\u22cf","cwconint;":"\u2232","cwint;":"\u2231","cylcty;":"\u232d","Dagger;":"\u2021","dagger;":"\u2020","daleth;":"\u2138","Darr;":"\u21a1","dArr;":"\u21d3","darr;":"\u2193","dash;":"\u2010","Dashv;":"\u2ae4","dashv;":"\u22a3","dbkarow;":"\u290f","dblac;":"\u02dd","Dcaron;":"\u010e","dcaron;":"\u010f","Dcy;":"\u0414","dcy;":"\u0434","DD;":"\u2145","dd;":"\u2146","ddagger;":"\u2021","ddarr;":"\u21ca","DDotrahd;":"\u2911","ddotseq;":"\u2a77","deg;":"\xb0",deg:"\xb0","Del;":"\u2207","Delta;":"\u0394","delta;":"\u03b4","demptyv;":"\u29b1","dfisht;":"\u297f","Dfr;":"\ud835\udd07","dfr;":"\ud835\udd21","dHar;":"\u2965","dharl;":"\u21c3","dharr;":"\u21c2","DiacriticalAcute;":"\xb4","DiacriticalDot;":"\u02d9","DiacriticalDoubleAcute;":"\u02dd","DiacriticalGrave;":"`","DiacriticalTilde;":"\u02dc","diam;":"\u22c4","Diamond;":"\u22c4","diamond;":"\u22c4","diamondsuit;":"\u2666","diams;":"\u2666","die;":"\xa8","DifferentialD;":"\u2146","digamma;":"\u03dd","disin;":"\u22f2","div;":"\xf7","divide;":"\xf7",divide:"\xf7","divideontimes;":"\u22c7","divonx;":"\u22c7","DJcy;":"\u0402","djcy;":"\u0452","dlcorn;":"\u231e","dlcrop;":"\u230d","dollar;":"$","Dopf;":"\ud835\udd3b","dopf;":"\ud835\udd55","Dot;":"\xa8","dot;":"\u02d9","DotDot;":"\u20dc","doteq;":"\u2250","doteqdot;":"\u2251","DotEqual;":"\u2250","dotminus;":"\u2238","dotplus;":"\u2214","dotsquare;":"\u22a1","doublebarwedge;":"\u2306","DoubleContourIntegral;":"\u222f","DoubleDot;":"\xa8","DoubleDownArrow;":"\u21d3","DoubleLeftArrow;":"\u21d0","DoubleLeftRightArrow;":"\u21d4","DoubleLeftTee;":"\u2ae4","DoubleLongLeftArrow;":"\u27f8","DoubleLongLeftRightArrow;":"\u27fa","DoubleLongRightArrow;":"\u27f9","DoubleRightArrow;":"\u21d2","DoubleRightTee;":"\u22a8","DoubleUpArrow;":"\u21d1","DoubleUpDownArrow;":"\u21d5","DoubleVerticalBar;":"\u2225","DownArrow;":"\u2193","Downarrow;":"\u21d3","downarrow;":"\u2193","DownArrowBar;":"\u2913","DownArrowUpArrow;":"\u21f5","DownBreve;":"\u0311","downdownarrows;":"\u21ca","downharpoonleft;":"\u21c3","downharpoonright;":"\u21c2","DownLeftRightVector;":"\u2950","DownLeftTeeVector;":"\u295e","DownLeftVector;":"\u21bd","DownLeftVectorBar;":"\u2956","DownRightTeeVector;":"\u295f","DownRightVector;":"\u21c1","DownRightVectorBar;":"\u2957","DownTee;":"\u22a4","DownTeeArrow;":"\u21a7","drbkarow;":"\u2910","drcorn;":"\u231f","drcrop;":"\u230c","Dscr;":"\ud835\udc9f","dscr;":"\ud835\udcb9","DScy;":"\u0405","dscy;":"\u0455","dsol;":"\u29f6","Dstrok;":"\u0110","dstrok;":"\u0111","dtdot;":"\u22f1","dtri;":"\u25bf","dtrif;":"\u25be","duarr;":"\u21f5","duhar;":"\u296f","dwangle;":"\u29a6","DZcy;":"\u040f","dzcy;":"\u045f","dzigrarr;":"\u27ff","Eacute;":"\xc9",Eacute:"\xc9","eacute;":"\xe9",eacute:"\xe9","easter;":"\u2a6e","Ecaron;":"\u011a","ecaron;":"\u011b","ecir;":"\u2256","Ecirc;":"\xca",Ecirc:"\xca","ecirc;":"\xea",ecirc:"\xea","ecolon;":"\u2255","Ecy;":"\u042d","ecy;":"\u044d","eDDot;":"\u2a77","Edot;":"\u0116","eDot;":"\u2251","edot;":"\u0117","ee;":"\u2147","efDot;":"\u2252","Efr;":"\ud835\udd08","efr;":"\ud835\udd22","eg;":"\u2a9a","Egrave;":"\xc8",Egrave:"\xc8","egrave;":"\xe8",egrave:"\xe8","egs;":"\u2a96","egsdot;":"\u2a98","el;":"\u2a99","Element;":"\u2208","elinters;":"\u23e7","ell;":"\u2113","els;":"\u2a95","elsdot;":"\u2a97","Emacr;":"\u0112","emacr;":"\u0113","empty;":"\u2205","emptyset;":"\u2205","EmptySmallSquare;":"\u25fb","emptyv;":"\u2205","EmptyVerySmallSquare;":"\u25ab","emsp;":"\u2003","emsp13;":"\u2004","emsp14;":"\u2005","ENG;":"\u014a","eng;":"\u014b","ensp;":"\u2002","Eogon;":"\u0118","eogon;":"\u0119","Eopf;":"\ud835\udd3c","eopf;":"\ud835\udd56","epar;":"\u22d5","eparsl;":"\u29e3","eplus;":"\u2a71","epsi;":"\u03b5","Epsilon;":"\u0395","epsilon;":"\u03b5","epsiv;":"\u03f5","eqcirc;":"\u2256","eqcolon;":"\u2255","eqsim;":"\u2242","eqslantgtr;":"\u2a96","eqslantless;":"\u2a95","Equal;":"\u2a75","equals;":"=","EqualTilde;":"\u2242","equest;":"\u225f","Equilibrium;":"\u21cc","equiv;":"\u2261","equivDD;":"\u2a78","eqvparsl;":"\u29e5","erarr;":"\u2971","erDot;":"\u2253","Escr;":"\u2130","escr;":"\u212f","esdot;":"\u2250","Esim;":"\u2a73","esim;":"\u2242","Eta;":"\u0397","eta;":"\u03b7","ETH;":"\xd0",ETH:"\xd0","eth;":"\xf0",eth:"\xf0","Euml;":"\xcb",Euml:"\xcb","euml;":"\xeb",euml:"\xeb","euro;":"\u20ac","excl;":"!","exist;":"\u2203","Exists;":"\u2203","expectation;":"\u2130","ExponentialE;":"\u2147","exponentiale;":"\u2147","fallingdotseq;":"\u2252","Fcy;":"\u0424","fcy;":"\u0444","female;":"\u2640","ffilig;":"\ufb03","fflig;":"\ufb00","ffllig;":"\ufb04","Ffr;":"\ud835\udd09","ffr;":"\ud835\udd23","filig;":"\ufb01","FilledSmallSquare;":"\u25fc","FilledVerySmallSquare;":"\u25aa","fjlig;":"fj","flat;":"\u266d","fllig;":"\ufb02","fltns;":"\u25b1","fnof;":"\u0192","Fopf;":"\ud835\udd3d","fopf;":"\ud835\udd57","ForAll;":"\u2200","forall;":"\u2200","fork;":"\u22d4","forkv;":"\u2ad9","Fouriertrf;":"\u2131","fpartint;":"\u2a0d","frac12;":"\xbd",frac12:"\xbd","frac13;":"\u2153","frac14;":"\xbc",frac14:"\xbc","frac15;":"\u2155","frac16;":"\u2159","frac18;":"\u215b","frac23;":"\u2154","frac25;":"\u2156","frac34;":"\xbe",frac34:"\xbe","frac35;":"\u2157","frac38;":"\u215c","frac45;":"\u2158","frac56;":"\u215a","frac58;":"\u215d","frac78;":"\u215e","frasl;":"\u2044","frown;":"\u2322","Fscr;":"\u2131","fscr;":"\ud835\udcbb","gacute;":"\u01f5","Gamma;":"\u0393","gamma;":"\u03b3","Gammad;":"\u03dc","gammad;":"\u03dd","gap;":"\u2a86","Gbreve;":"\u011e","gbreve;":"\u011f","Gcedil;":"\u0122","Gcirc;":"\u011c","gcirc;":"\u011d","Gcy;":"\u0413","gcy;":"\u0433","Gdot;":"\u0120","gdot;":"\u0121","gE;":"\u2267","ge;":"\u2265","gEl;":"\u2a8c","gel;":"\u22db","geq;":"\u2265","geqq;":"\u2267","geqslant;":"\u2a7e","ges;":"\u2a7e","gescc;":"\u2aa9","gesdot;":"\u2a80","gesdoto;":"\u2a82","gesdotol;":"\u2a84","gesl;":"\u22db\ufe00","gesles;":"\u2a94","Gfr;":"\ud835\udd0a","gfr;":"\ud835\udd24","Gg;":"\u22d9","gg;":"\u226b","ggg;":"\u22d9","gimel;":"\u2137","GJcy;":"\u0403","gjcy;":"\u0453","gl;":"\u2277","gla;":"\u2aa5","glE;":"\u2a92","glj;":"\u2aa4","gnap;":"\u2a8a","gnapprox;":"\u2a8a","gnE;":"\u2269","gne;":"\u2a88","gneq;":"\u2a88","gneqq;":"\u2269","gnsim;":"\u22e7","Gopf;":"\ud835\udd3e","gopf;":"\ud835\udd58","grave;":"`","GreaterEqual;":"\u2265","GreaterEqualLess;":"\u22db","GreaterFullEqual;":"\u2267","GreaterGreater;":"\u2aa2","GreaterLess;":"\u2277","GreaterSlantEqual;":"\u2a7e","GreaterTilde;":"\u2273","Gscr;":"\ud835\udca2","gscr;":"\u210a","gsim;":"\u2273","gsime;":"\u2a8e","gsiml;":"\u2a90","GT;":">",GT:">","Gt;":"\u226b","gt;":">",gt:">","gtcc;":"\u2aa7","gtcir;":"\u2a7a","gtdot;":"\u22d7","gtlPar;":"\u2995","gtquest;":"\u2a7c","gtrapprox;":"\u2a86","gtrarr;":"\u2978","gtrdot;":"\u22d7","gtreqless;":"\u22db","gtreqqless;":"\u2a8c","gtrless;":"\u2277","gtrsim;":"\u2273","gvertneqq;":"\u2269\ufe00","gvnE;":"\u2269\ufe00","Hacek;":"\u02c7","hairsp;":"\u200a","half;":"\xbd","hamilt;":"\u210b","HARDcy;":"\u042a","hardcy;":"\u044a","hArr;":"\u21d4","harr;":"\u2194","harrcir;":"\u2948","harrw;":"\u21ad","Hat;":"^","hbar;":"\u210f","Hcirc;":"\u0124","hcirc;":"\u0125","hearts;":"\u2665","heartsuit;":"\u2665","hellip;":"\u2026","hercon;":"\u22b9","Hfr;":"\u210c","hfr;":"\ud835\udd25","HilbertSpace;":"\u210b","hksearow;":"\u2925","hkswarow;":"\u2926","hoarr;":"\u21ff","homtht;":"\u223b","hookleftarrow;":"\u21a9","hookrightarrow;":"\u21aa","Hopf;":"\u210d","hopf;":"\ud835\udd59","horbar;":"\u2015","HorizontalLine;":"\u2500","Hscr;":"\u210b","hscr;":"\ud835\udcbd","hslash;":"\u210f","Hstrok;":"\u0126","hstrok;":"\u0127","HumpDownHump;":"\u224e","HumpEqual;":"\u224f","hybull;":"\u2043","hyphen;":"\u2010","Iacute;":"\xcd",Iacute:"\xcd","iacute;":"\xed",iacute:"\xed","ic;":"\u2063","Icirc;":"\xce",Icirc:"\xce","icirc;":"\xee",icirc:"\xee","Icy;":"\u0418","icy;":"\u0438","Idot;":"\u0130","IEcy;":"\u0415","iecy;":"\u0435","iexcl;":"\xa1",iexcl:"\xa1","iff;":"\u21d4","Ifr;":"\u2111","ifr;":"\ud835\udd26","Igrave;":"\xcc",Igrave:"\xcc","igrave;":"\xec",igrave:"\xec","ii;":"\u2148","iiiint;":"\u2a0c","iiint;":"\u222d","iinfin;":"\u29dc","iiota;":"\u2129","IJlig;":"\u0132","ijlig;":"\u0133","Im;":"\u2111","Imacr;":"\u012a","imacr;":"\u012b","image;":"\u2111","ImaginaryI;":"\u2148","imagline;":"\u2110","imagpart;":"\u2111","imath;":"\u0131","imof;":"\u22b7","imped;":"\u01b5","Implies;":"\u21d2","in;":"\u2208","incare;":"\u2105","infin;":"\u221e","infintie;":"\u29dd","inodot;":"\u0131","Int;":"\u222c","int;":"\u222b","intcal;":"\u22ba","integers;":"\u2124","Integral;":"\u222b","intercal;":"\u22ba","Intersection;":"\u22c2","intlarhk;":"\u2a17","intprod;":"\u2a3c","InvisibleComma;":"\u2063","InvisibleTimes;":"\u2062","IOcy;":"\u0401","iocy;":"\u0451","Iogon;":"\u012e","iogon;":"\u012f","Iopf;":"\ud835\udd40","iopf;":"\ud835\udd5a","Iota;":"\u0399","iota;":"\u03b9","iprod;":"\u2a3c","iquest;":"\xbf",iquest:"\xbf","Iscr;":"\u2110","iscr;":"\ud835\udcbe","isin;":"\u2208","isindot;":"\u22f5","isinE;":"\u22f9","isins;":"\u22f4","isinsv;":"\u22f3","isinv;":"\u2208","it;":"\u2062","Itilde;":"\u0128","itilde;":"\u0129","Iukcy;":"\u0406","iukcy;":"\u0456","Iuml;":"\xcf",Iuml:"\xcf","iuml;":"\xef",iuml:"\xef","Jcirc;":"\u0134","jcirc;":"\u0135","Jcy;":"\u0419","jcy;":"\u0439","Jfr;":"\ud835\udd0d","jfr;":"\ud835\udd27","jmath;":"\u0237","Jopf;":"\ud835\udd41","jopf;":"\ud835\udd5b","Jscr;":"\ud835\udca5","jscr;":"\ud835\udcbf","Jsercy;":"\u0408","jsercy;":"\u0458","Jukcy;":"\u0404","jukcy;":"\u0454","Kappa;":"\u039a","kappa;":"\u03ba","kappav;":"\u03f0","Kcedil;":"\u0136","kcedil;":"\u0137","Kcy;":"\u041a","kcy;":"\u043a","Kfr;":"\ud835\udd0e","kfr;":"\ud835\udd28","kgreen;":"\u0138","KHcy;":"\u0425","khcy;":"\u0445","KJcy;":"\u040c","kjcy;":"\u045c","Kopf;":"\ud835\udd42","kopf;":"\ud835\udd5c","Kscr;":"\ud835\udca6","kscr;":"\ud835\udcc0","lAarr;":"\u21da","Lacute;":"\u0139","lacute;":"\u013a","laemptyv;":"\u29b4","lagran;":"\u2112","Lambda;":"\u039b","lambda;":"\u03bb","Lang;":"\u27ea","lang;":"\u27e8","langd;":"\u2991","langle;":"\u27e8","lap;":"\u2a85","Laplacetrf;":"\u2112","laquo;":"\xab",laquo:"\xab","Larr;":"\u219e","lArr;":"\u21d0","larr;":"\u2190","larrb;":"\u21e4","larrbfs;":"\u291f","larrfs;":"\u291d","larrhk;":"\u21a9","larrlp;":"\u21ab","larrpl;":"\u2939","larrsim;":"\u2973","larrtl;":"\u21a2","lat;":"\u2aab","lAtail;":"\u291b","latail;":"\u2919","late;":"\u2aad","lates;":"\u2aad\ufe00","lBarr;":"\u290e","lbarr;":"\u290c","lbbrk;":"\u2772","lbrace;":"{","lbrack;":"[","lbrke;":"\u298b","lbrksld;":"\u298f","lbrkslu;":"\u298d","Lcaron;":"\u013d","lcaron;":"\u013e","Lcedil;":"\u013b","lcedil;":"\u013c","lceil;":"\u2308","lcub;":"{","Lcy;":"\u041b","lcy;":"\u043b","ldca;":"\u2936","ldquo;":"\u201c","ldquor;":"\u201e","ldrdhar;":"\u2967","ldrushar;":"\u294b","ldsh;":"\u21b2","lE;":"\u2266","le;":"\u2264","LeftAngleBracket;":"\u27e8","LeftArrow;":"\u2190","Leftarrow;":"\u21d0","leftarrow;":"\u2190","LeftArrowBar;":"\u21e4","LeftArrowRightArrow;":"\u21c6","leftarrowtail;":"\u21a2","LeftCeiling;":"\u2308","LeftDoubleBracket;":"\u27e6","LeftDownTeeVector;":"\u2961","LeftDownVector;":"\u21c3","LeftDownVectorBar;":"\u2959","LeftFloor;":"\u230a","leftharpoondown;":"\u21bd","leftharpoonup;":"\u21bc","leftleftarrows;":"\u21c7","LeftRightArrow;":"\u2194","Leftrightarrow;":"\u21d4","leftrightarrow;":"\u2194","leftrightarrows;":"\u21c6","leftrightharpoons;":"\u21cb","leftrightsquigarrow;":"\u21ad","LeftRightVector;":"\u294e","LeftTee;":"\u22a3","LeftTeeArrow;":"\u21a4","LeftTeeVector;":"\u295a","leftthreetimes;":"\u22cb","LeftTriangle;":"\u22b2","LeftTriangleBar;":"\u29cf","LeftTriangleEqual;":"\u22b4","LeftUpDownVector;":"\u2951","LeftUpTeeVector;":"\u2960","LeftUpVector;":"\u21bf","LeftUpVectorBar;":"\u2958","LeftVector;":"\u21bc","LeftVectorBar;":"\u2952","lEg;":"\u2a8b","leg;":"\u22da","leq;":"\u2264","leqq;":"\u2266","leqslant;":"\u2a7d","les;":"\u2a7d","lescc;":"\u2aa8","lesdot;":"\u2a7f","lesdoto;":"\u2a81","lesdotor;":"\u2a83","lesg;":"\u22da\ufe00","lesges;":"\u2a93","lessapprox;":"\u2a85","lessdot;":"\u22d6","lesseqgtr;":"\u22da","lesseqqgtr;":"\u2a8b","LessEqualGreater;":"\u22da","LessFullEqual;":"\u2266","LessGreater;":"\u2276","lessgtr;":"\u2276","LessLess;":"\u2aa1","lesssim;":"\u2272","LessSlantEqual;":"\u2a7d","LessTilde;":"\u2272","lfisht;":"\u297c","lfloor;":"\u230a","Lfr;":"\ud835\udd0f","lfr;":"\ud835\udd29","lg;":"\u2276","lgE;":"\u2a91","lHar;":"\u2962","lhard;":"\u21bd","lharu;":"\u21bc","lharul;":"\u296a","lhblk;":"\u2584","LJcy;":"\u0409","ljcy;":"\u0459","Ll;":"\u22d8","ll;":"\u226a","llarr;":"\u21c7","llcorner;":"\u231e","Lleftarrow;":"\u21da","llhard;":"\u296b","lltri;":"\u25fa","Lmidot;":"\u013f","lmidot;":"\u0140","lmoust;":"\u23b0","lmoustache;":"\u23b0","lnap;":"\u2a89","lnapprox;":"\u2a89","lnE;":"\u2268","lne;":"\u2a87","lneq;":"\u2a87","lneqq;":"\u2268","lnsim;":"\u22e6","loang;":"\u27ec","loarr;":"\u21fd","lobrk;":"\u27e6","LongLeftArrow;":"\u27f5","Longleftarrow;":"\u27f8","longleftarrow;":"\u27f5","LongLeftRightArrow;":"\u27f7","Longleftrightarrow;":"\u27fa","longleftrightarrow;":"\u27f7","longmapsto;":"\u27fc","LongRightArrow;":"\u27f6","Longrightarrow;":"\u27f9","longrightarrow;":"\u27f6","looparrowleft;":"\u21ab","looparrowright;":"\u21ac","lopar;":"\u2985","Lopf;":"\ud835\udd43","lopf;":"\ud835\udd5d","loplus;":"\u2a2d","lotimes;":"\u2a34","lowast;":"\u2217","lowbar;":"_","LowerLeftArrow;":"\u2199","LowerRightArrow;":"\u2198","loz;":"\u25ca","lozenge;":"\u25ca","lozf;":"\u29eb","lpar;":"(","lparlt;":"\u2993","lrarr;":"\u21c6","lrcorner;":"\u231f","lrhar;":"\u21cb","lrhard;":"\u296d","lrm;":"\u200e","lrtri;":"\u22bf","lsaquo;":"\u2039","Lscr;":"\u2112","lscr;":"\ud835\udcc1","Lsh;":"\u21b0","lsh;":"\u21b0","lsim;":"\u2272","lsime;":"\u2a8d","lsimg;":"\u2a8f","lsqb;":"[","lsquo;":"\u2018","lsquor;":"\u201a","Lstrok;":"\u0141","lstrok;":"\u0142","LT;":"<",LT:"<","Lt;":"\u226a","lt;":"<",lt:"<","ltcc;":"\u2aa6","ltcir;":"\u2a79","ltdot;":"\u22d6","lthree;":"\u22cb","ltimes;":"\u22c9","ltlarr;":"\u2976","ltquest;":"\u2a7b","ltri;":"\u25c3","ltrie;":"\u22b4","ltrif;":"\u25c2","ltrPar;":"\u2996","lurdshar;":"\u294a","luruhar;":"\u2966","lvertneqq;":"\u2268\ufe00","lvnE;":"\u2268\ufe00","macr;":"\xaf",macr:"\xaf","male;":"\u2642","malt;":"\u2720","maltese;":"\u2720","Map;":"\u2905","map;":"\u21a6","mapsto;":"\u21a6","mapstodown;":"\u21a7","mapstoleft;":"\u21a4","mapstoup;":"\u21a5","marker;":"\u25ae","mcomma;":"\u2a29","Mcy;":"\u041c","mcy;":"\u043c","mdash;":"\u2014","mDDot;":"\u223a","measuredangle;":"\u2221","MediumSpace;":"\u205f","Mellintrf;":"\u2133","Mfr;":"\ud835\udd10","mfr;":"\ud835\udd2a","mho;":"\u2127","micro;":"\xb5",micro:"\xb5","mid;":"\u2223","midast;":"*","midcir;":"\u2af0","middot;":"\xb7",middot:"\xb7","minus;":"\u2212","minusb;":"\u229f","minusd;":"\u2238","minusdu;":"\u2a2a","MinusPlus;":"\u2213","mlcp;":"\u2adb","mldr;":"\u2026","mnplus;":"\u2213","models;":"\u22a7","Mopf;":"\ud835\udd44","mopf;":"\ud835\udd5e","mp;":"\u2213","Mscr;":"\u2133","mscr;":"\ud835\udcc2","mstpos;":"\u223e","Mu;":"\u039c","mu;":"\u03bc","multimap;":"\u22b8","mumap;":"\u22b8","nabla;":"\u2207","Nacute;":"\u0143","nacute;":"\u0144","nang;":"\u2220\u20d2","nap;":"\u2249","napE;":"\u2a70\u0338","napid;":"\u224b\u0338","napos;":"\u0149","napprox;":"\u2249","natur;":"\u266e","natural;":"\u266e","naturals;":"\u2115","nbsp;":"\xa0",nbsp:"\xa0","nbump;":"\u224e\u0338","nbumpe;":"\u224f\u0338","ncap;":"\u2a43","Ncaron;":"\u0147","ncaron;":"\u0148","Ncedil;":"\u0145","ncedil;":"\u0146","ncong;":"\u2247","ncongdot;":"\u2a6d\u0338","ncup;":"\u2a42","Ncy;":"\u041d","ncy;":"\u043d","ndash;":"\u2013","ne;":"\u2260","nearhk;":"\u2924","neArr;":"\u21d7","nearr;":"\u2197","nearrow;":"\u2197","nedot;":"\u2250\u0338","NegativeMediumSpace;":"\u200b","NegativeThickSpace;":"\u200b","NegativeThinSpace;":"\u200b","NegativeVeryThinSpace;":"\u200b","nequiv;":"\u2262","nesear;":"\u2928","nesim;":"\u2242\u0338","NestedGreaterGreater;":"\u226b","NestedLessLess;":"\u226a","NewLine;":"\n","nexist;":"\u2204","nexists;":"\u2204","Nfr;":"\ud835\udd11","nfr;":"\ud835\udd2b","ngE;":"\u2267\u0338","nge;":"\u2271","ngeq;":"\u2271","ngeqq;":"\u2267\u0338","ngeqslant;":"\u2a7e\u0338","nges;":"\u2a7e\u0338","nGg;":"\u22d9\u0338","ngsim;":"\u2275","nGt;":"\u226b\u20d2","ngt;":"\u226f","ngtr;":"\u226f","nGtv;":"\u226b\u0338","nhArr;":"\u21ce","nharr;":"\u21ae","nhpar;":"\u2af2","ni;":"\u220b","nis;":"\u22fc","nisd;":"\u22fa","niv;":"\u220b","NJcy;":"\u040a","njcy;":"\u045a","nlArr;":"\u21cd","nlarr;":"\u219a","nldr;":"\u2025","nlE;":"\u2266\u0338","nle;":"\u2270","nLeftarrow;":"\u21cd","nleftarrow;":"\u219a","nLeftrightarrow;":"\u21ce","nleftrightarrow;":"\u21ae","nleq;":"\u2270","nleqq;":"\u2266\u0338","nleqslant;":"\u2a7d\u0338","nles;":"\u2a7d\u0338","nless;":"\u226e","nLl;":"\u22d8\u0338","nlsim;":"\u2274","nLt;":"\u226a\u20d2","nlt;":"\u226e","nltri;":"\u22ea","nltrie;":"\u22ec","nLtv;":"\u226a\u0338","nmid;":"\u2224","NoBreak;":"\u2060","NonBreakingSpace;":"\xa0","Nopf;":"\u2115","nopf;":"\ud835\udd5f","Not;":"\u2aec","not;":"\xac",not:"\xac","NotCongruent;":"\u2262","NotCupCap;":"\u226d","NotDoubleVerticalBar;":"\u2226","NotElement;":"\u2209","NotEqual;":"\u2260","NotEqualTilde;":"\u2242\u0338","NotExists;":"\u2204","NotGreater;":"\u226f","NotGreaterEqual;":"\u2271","NotGreaterFullEqual;":"\u2267\u0338","NotGreaterGreater;":"\u226b\u0338","NotGreaterLess;":"\u2279","NotGreaterSlantEqual;":"\u2a7e\u0338","NotGreaterTilde;":"\u2275","NotHumpDownHump;":"\u224e\u0338","NotHumpEqual;":"\u224f\u0338","notin;":"\u2209","notindot;":"\u22f5\u0338","notinE;":"\u22f9\u0338","notinva;":"\u2209","notinvb;":"\u22f7","notinvc;":"\u22f6","NotLeftTriangle;":"\u22ea","NotLeftTriangleBar;":"\u29cf\u0338","NotLeftTriangleEqual;":"\u22ec","NotLess;":"\u226e","NotLessEqual;":"\u2270","NotLessGreater;":"\u2278","NotLessLess;":"\u226a\u0338","NotLessSlantEqual;":"\u2a7d\u0338","NotLessTilde;":"\u2274","NotNestedGreaterGreater;":"\u2aa2\u0338","NotNestedLessLess;":"\u2aa1\u0338","notni;":"\u220c","notniva;":"\u220c","notnivb;":"\u22fe","notnivc;":"\u22fd","NotPrecedes;":"\u2280","NotPrecedesEqual;":"\u2aaf\u0338","NotPrecedesSlantEqual;":"\u22e0","NotReverseElement;":"\u220c","NotRightTriangle;":"\u22eb","NotRightTriangleBar;":"\u29d0\u0338","NotRightTriangleEqual;":"\u22ed","NotSquareSubset;":"\u228f\u0338","NotSquareSubsetEqual;":"\u22e2","NotSquareSuperset;":"\u2290\u0338","NotSquareSupersetEqual;":"\u22e3","NotSubset;":"\u2282\u20d2","NotSubsetEqual;":"\u2288","NotSucceeds;":"\u2281","NotSucceedsEqual;":"\u2ab0\u0338","NotSucceedsSlantEqual;":"\u22e1","NotSucceedsTilde;":"\u227f\u0338","NotSuperset;":"\u2283\u20d2","NotSupersetEqual;":"\u2289","NotTilde;":"\u2241","NotTildeEqual;":"\u2244","NotTildeFullEqual;":"\u2247","NotTildeTilde;":"\u2249","NotVerticalBar;":"\u2224","npar;":"\u2226","nparallel;":"\u2226","nparsl;":"\u2afd\u20e5","npart;":"\u2202\u0338","npolint;":"\u2a14","npr;":"\u2280","nprcue;":"\u22e0","npre;":"\u2aaf\u0338","nprec;":"\u2280","npreceq;":"\u2aaf\u0338","nrArr;":"\u21cf","nrarr;":"\u219b","nrarrc;":"\u2933\u0338","nrarrw;":"\u219d\u0338","nRightarrow;":"\u21cf","nrightarrow;":"\u219b","nrtri;":"\u22eb","nrtrie;":"\u22ed","nsc;":"\u2281","nsccue;":"\u22e1","nsce;":"\u2ab0\u0338","Nscr;":"\ud835\udca9","nscr;":"\ud835\udcc3","nshortmid;":"\u2224","nshortparallel;":"\u2226","nsim;":"\u2241","nsime;":"\u2244","nsimeq;":"\u2244","nsmid;":"\u2224","nspar;":"\u2226","nsqsube;":"\u22e2","nsqsupe;":"\u22e3","nsub;":"\u2284","nsubE;":"\u2ac5\u0338","nsube;":"\u2288","nsubset;":"\u2282\u20d2","nsubseteq;":"\u2288","nsubseteqq;":"\u2ac5\u0338","nsucc;":"\u2281","nsucceq;":"\u2ab0\u0338","nsup;":"\u2285","nsupE;":"\u2ac6\u0338","nsupe;":"\u2289","nsupset;":"\u2283\u20d2","nsupseteq;":"\u2289","nsupseteqq;":"\u2ac6\u0338","ntgl;":"\u2279","Ntilde;":"\xd1",Ntilde:"\xd1","ntilde;":"\xf1",ntilde:"\xf1","ntlg;":"\u2278","ntriangleleft;":"\u22ea","ntrianglelefteq;":"\u22ec","ntriangleright;":"\u22eb","ntrianglerighteq;":"\u22ed","Nu;":"\u039d","nu;":"\u03bd","num;":"#","numero;":"\u2116","numsp;":"\u2007","nvap;":"\u224d\u20d2","nVDash;":"\u22af","nVdash;":"\u22ae","nvDash;":"\u22ad","nvdash;":"\u22ac","nvge;":"\u2265\u20d2","nvgt;":">\u20d2","nvHarr;":"\u2904","nvinfin;":"\u29de","nvlArr;":"\u2902","nvle;":"\u2264\u20d2","nvlt;":"<\u20d2","nvltrie;":"\u22b4\u20d2","nvrArr;":"\u2903","nvrtrie;":"\u22b5\u20d2","nvsim;":"\u223c\u20d2","nwarhk;":"\u2923","nwArr;":"\u21d6","nwarr;":"\u2196","nwarrow;":"\u2196","nwnear;":"\u2927","Oacute;":"\xd3",Oacute:"\xd3","oacute;":"\xf3",oacute:"\xf3","oast;":"\u229b","ocir;":"\u229a","Ocirc;":"\xd4",Ocirc:"\xd4","ocirc;":"\xf4",ocirc:"\xf4","Ocy;":"\u041e","ocy;":"\u043e","odash;":"\u229d","Odblac;":"\u0150","odblac;":"\u0151","odiv;":"\u2a38","odot;":"\u2299","odsold;":"\u29bc","OElig;":"\u0152","oelig;":"\u0153","ofcir;":"\u29bf","Ofr;":"\ud835\udd12","ofr;":"\ud835\udd2c","ogon;":"\u02db","Ograve;":"\xd2",Ograve:"\xd2","ograve;":"\xf2",ograve:"\xf2","ogt;":"\u29c1","ohbar;":"\u29b5","ohm;":"\u03a9","oint;":"\u222e","olarr;":"\u21ba","olcir;":"\u29be","olcross;":"\u29bb","oline;":"\u203e","olt;":"\u29c0","Omacr;":"\u014c","omacr;":"\u014d","Omega;":"\u03a9","omega;":"\u03c9","Omicron;":"\u039f","omicron;":"\u03bf","omid;":"\u29b6","ominus;":"\u2296","Oopf;":"\ud835\udd46","oopf;":"\ud835\udd60","opar;":"\u29b7","OpenCurlyDoubleQuote;":"\u201c","OpenCurlyQuote;":"\u2018","operp;":"\u29b9","oplus;":"\u2295","Or;":"\u2a54","or;":"\u2228","orarr;":"\u21bb","ord;":"\u2a5d","order;":"\u2134","orderof;":"\u2134","ordf;":"\xaa",ordf:"\xaa","ordm;":"\xba",ordm:"\xba","origof;":"\u22b6","oror;":"\u2a56","orslope;":"\u2a57","orv;":"\u2a5b","oS;":"\u24c8","Oscr;":"\ud835\udcaa","oscr;":"\u2134","Oslash;":"\xd8",Oslash:"\xd8","oslash;":"\xf8",oslash:"\xf8","osol;":"\u2298","Otilde;":"\xd5",Otilde:"\xd5","otilde;":"\xf5",otilde:"\xf5","Otimes;":"\u2a37","otimes;":"\u2297","otimesas;":"\u2a36","Ouml;":"\xd6",Ouml:"\xd6","ouml;":"\xf6",ouml:"\xf6","ovbar;":"\u233d","OverBar;":"\u203e","OverBrace;":"\u23de","OverBracket;":"\u23b4","OverParenthesis;":"\u23dc","par;":"\u2225","para;":"\xb6",para:"\xb6","parallel;":"\u2225","parsim;":"\u2af3","parsl;":"\u2afd","part;":"\u2202","PartialD;":"\u2202","Pcy;":"\u041f","pcy;":"\u043f","percnt;":"%","period;":".","permil;":"\u2030","perp;":"\u22a5","pertenk;":"\u2031","Pfr;":"\ud835\udd13","pfr;":"\ud835\udd2d","Phi;":"\u03a6","phi;":"\u03c6","phiv;":"\u03d5","phmmat;":"\u2133","phone;":"\u260e","Pi;":"\u03a0","pi;":"\u03c0","pitchfork;":"\u22d4","piv;":"\u03d6","planck;":"\u210f","planckh;":"\u210e","plankv;":"\u210f","plus;":"+","plusacir;":"\u2a23","plusb;":"\u229e","pluscir;":"\u2a22","plusdo;":"\u2214","plusdu;":"\u2a25","pluse;":"\u2a72","PlusMinus;":"\xb1","plusmn;":"\xb1",plusmn:"\xb1","plussim;":"\u2a26","plustwo;":"\u2a27","pm;":"\xb1","Poincareplane;":"\u210c","pointint;":"\u2a15","Popf;":"\u2119","popf;":"\ud835\udd61","pound;":"\xa3",pound:"\xa3","Pr;":"\u2abb","pr;":"\u227a","prap;":"\u2ab7","prcue;":"\u227c","prE;":"\u2ab3","pre;":"\u2aaf","prec;":"\u227a","precapprox;":"\u2ab7","preccurlyeq;":"\u227c","Precedes;":"\u227a","PrecedesEqual;":"\u2aaf","PrecedesSlantEqual;":"\u227c","PrecedesTilde;":"\u227e","preceq;":"\u2aaf","precnapprox;":"\u2ab9","precneqq;":"\u2ab5","precnsim;":"\u22e8","precsim;":"\u227e","Prime;":"\u2033","prime;":"\u2032","primes;":"\u2119","prnap;":"\u2ab9","prnE;":"\u2ab5","prnsim;":"\u22e8","prod;":"\u220f","Product;":"\u220f","profalar;":"\u232e","profline;":"\u2312","profsurf;":"\u2313","prop;":"\u221d","Proportion;":"\u2237","Proportional;":"\u221d","propto;":"\u221d","prsim;":"\u227e","prurel;":"\u22b0","Pscr;":"\ud835\udcab","pscr;":"\ud835\udcc5","Psi;":"\u03a8","psi;":"\u03c8","puncsp;":"\u2008","Qfr;":"\ud835\udd14","qfr;":"\ud835\udd2e","qint;":"\u2a0c","Qopf;":"\u211a","qopf;":"\ud835\udd62","qprime;":"\u2057","Qscr;":"\ud835\udcac","qscr;":"\ud835\udcc6","quaternions;":"\u210d","quatint;":"\u2a16","quest;":"?","questeq;":"\u225f","QUOT;":'"',QUOT:'"',"quot;":'"',quot:'"',"rAarr;":"\u21db","race;":"\u223d\u0331","Racute;":"\u0154","racute;":"\u0155","radic;":"\u221a","raemptyv;":"\u29b3","Rang;":"\u27eb","rang;":"\u27e9","rangd;":"\u2992","range;":"\u29a5","rangle;":"\u27e9","raquo;":"\xbb",raquo:"\xbb","Rarr;":"\u21a0","rArr;":"\u21d2","rarr;":"\u2192","rarrap;":"\u2975","rarrb;":"\u21e5","rarrbfs;":"\u2920","rarrc;":"\u2933","rarrfs;":"\u291e","rarrhk;":"\u21aa","rarrlp;":"\u21ac","rarrpl;":"\u2945","rarrsim;":"\u2974","Rarrtl;":"\u2916","rarrtl;":"\u21a3","rarrw;":"\u219d","rAtail;":"\u291c","ratail;":"\u291a","ratio;":"\u2236","rationals;":"\u211a","RBarr;":"\u2910","rBarr;":"\u290f","rbarr;":"\u290d","rbbrk;":"\u2773","rbrace;":"}","rbrack;":"]","rbrke;":"\u298c","rbrksld;":"\u298e","rbrkslu;":"\u2990","Rcaron;":"\u0158","rcaron;":"\u0159","Rcedil;":"\u0156","rcedil;":"\u0157","rceil;":"\u2309","rcub;":"}","Rcy;":"\u0420","rcy;":"\u0440","rdca;":"\u2937","rdldhar;":"\u2969","rdquo;":"\u201d","rdquor;":"\u201d","rdsh;":"\u21b3","Re;":"\u211c","real;":"\u211c","realine;":"\u211b","realpart;":"\u211c","reals;":"\u211d","rect;":"\u25ad","REG;":"\xae",REG:"\xae","reg;":"\xae",reg:"\xae","ReverseElement;":"\u220b","ReverseEquilibrium;":"\u21cb","ReverseUpEquilibrium;":"\u296f","rfisht;":"\u297d","rfloor;":"\u230b","Rfr;":"\u211c","rfr;":"\ud835\udd2f","rHar;":"\u2964","rhard;":"\u21c1","rharu;":"\u21c0","rharul;":"\u296c","Rho;":"\u03a1","rho;":"\u03c1","rhov;":"\u03f1","RightAngleBracket;":"\u27e9","RightArrow;":"\u2192","Rightarrow;":"\u21d2","rightarrow;":"\u2192","RightArrowBar;":"\u21e5","RightArrowLeftArrow;":"\u21c4","rightarrowtail;":"\u21a3","RightCeiling;":"\u2309","RightDoubleBracket;":"\u27e7","RightDownTeeVector;":"\u295d","RightDownVector;":"\u21c2","RightDownVectorBar;":"\u2955","RightFloor;":"\u230b","rightharpoondown;":"\u21c1","rightharpoonup;":"\u21c0","rightleftarrows;":"\u21c4","rightleftharpoons;":"\u21cc","rightrightarrows;":"\u21c9","rightsquigarrow;":"\u219d","RightTee;":"\u22a2","RightTeeArrow;":"\u21a6","RightTeeVector;":"\u295b","rightthreetimes;":"\u22cc","RightTriangle;":"\u22b3","RightTriangleBar;":"\u29d0","RightTriangleEqual;":"\u22b5","RightUpDownVector;":"\u294f","RightUpTeeVector;":"\u295c","RightUpVector;":"\u21be","RightUpVectorBar;":"\u2954","RightVector;":"\u21c0","RightVectorBar;":"\u2953","ring;":"\u02da","risingdotseq;":"\u2253","rlarr;":"\u21c4","rlhar;":"\u21cc","rlm;":"\u200f","rmoust;":"\u23b1","rmoustache;":"\u23b1","rnmid;":"\u2aee","roang;":"\u27ed","roarr;":"\u21fe","robrk;":"\u27e7","ropar;":"\u2986","Ropf;":"\u211d","ropf;":"\ud835\udd63","roplus;":"\u2a2e","rotimes;":"\u2a35","RoundImplies;":"\u2970","rpar;":")","rpargt;":"\u2994","rppolint;":"\u2a12","rrarr;":"\u21c9","Rrightarrow;":"\u21db","rsaquo;":"\u203a","Rscr;":"\u211b","rscr;":"\ud835\udcc7","Rsh;":"\u21b1","rsh;":"\u21b1","rsqb;":"]","rsquo;":"\u2019","rsquor;":"\u2019","rthree;":"\u22cc","rtimes;":"\u22ca","rtri;":"\u25b9","rtrie;":"\u22b5","rtrif;":"\u25b8","rtriltri;":"\u29ce","RuleDelayed;":"\u29f4","ruluhar;":"\u2968","rx;":"\u211e","Sacute;":"\u015a","sacute;":"\u015b","sbquo;":"\u201a","Sc;":"\u2abc","sc;":"\u227b","scap;":"\u2ab8","Scaron;":"\u0160","scaron;":"\u0161","sccue;":"\u227d","scE;":"\u2ab4","sce;":"\u2ab0","Scedil;":"\u015e","scedil;":"\u015f","Scirc;":"\u015c","scirc;":"\u015d","scnap;":"\u2aba","scnE;":"\u2ab6","scnsim;":"\u22e9","scpolint;":"\u2a13","scsim;":"\u227f","Scy;":"\u0421","scy;":"\u0441","sdot;":"\u22c5","sdotb;":"\u22a1","sdote;":"\u2a66","searhk;":"\u2925","seArr;":"\u21d8","searr;":"\u2198","searrow;":"\u2198","sect;":"\xa7",sect:"\xa7","semi;":";","seswar;":"\u2929","setminus;":"\u2216","setmn;":"\u2216","sext;":"\u2736","Sfr;":"\ud835\udd16","sfr;":"\ud835\udd30","sfrown;":"\u2322","sharp;":"\u266f","SHCHcy;":"\u0429","shchcy;":"\u0449","SHcy;":"\u0428","shcy;":"\u0448","ShortDownArrow;":"\u2193","ShortLeftArrow;":"\u2190","shortmid;":"\u2223","shortparallel;":"\u2225","ShortRightArrow;":"\u2192","ShortUpArrow;":"\u2191","shy;":"\xad",shy:"\xad","Sigma;":"\u03a3","sigma;":"\u03c3","sigmaf;":"\u03c2","sigmav;":"\u03c2","sim;":"\u223c","simdot;":"\u2a6a","sime;":"\u2243","simeq;":"\u2243","simg;":"\u2a9e","simgE;":"\u2aa0","siml;":"\u2a9d","simlE;":"\u2a9f","simne;":"\u2246","simplus;":"\u2a24","simrarr;":"\u2972","slarr;":"\u2190","SmallCircle;":"\u2218","smallsetminus;":"\u2216","smashp;":"\u2a33","smeparsl;":"\u29e4","smid;":"\u2223","smile;":"\u2323","smt;":"\u2aaa","smte;":"\u2aac","smtes;":"\u2aac\ufe00","SOFTcy;":"\u042c","softcy;":"\u044c","sol;":"/","solb;":"\u29c4","solbar;":"\u233f","Sopf;":"\ud835\udd4a","sopf;":"\ud835\udd64","spades;":"\u2660","spadesuit;":"\u2660","spar;":"\u2225","sqcap;":"\u2293","sqcaps;":"\u2293\ufe00","sqcup;":"\u2294","sqcups;":"\u2294\ufe00","Sqrt;":"\u221a","sqsub;":"\u228f","sqsube;":"\u2291","sqsubset;":"\u228f","sqsubseteq;":"\u2291","sqsup;":"\u2290","sqsupe;":"\u2292","sqsupset;":"\u2290","sqsupseteq;":"\u2292","squ;":"\u25a1","Square;":"\u25a1","square;":"\u25a1","SquareIntersection;":"\u2293","SquareSubset;":"\u228f","SquareSubsetEqual;":"\u2291","SquareSuperset;":"\u2290","SquareSupersetEqual;":"\u2292","SquareUnion;":"\u2294","squarf;":"\u25aa","squf;":"\u25aa","srarr;":"\u2192","Sscr;":"\ud835\udcae","sscr;":"\ud835\udcc8","ssetmn;":"\u2216","ssmile;":"\u2323","sstarf;":"\u22c6","Star;":"\u22c6","star;":"\u2606","starf;":"\u2605","straightepsilon;":"\u03f5","straightphi;":"\u03d5","strns;":"\xaf","Sub;":"\u22d0","sub;":"\u2282","subdot;":"\u2abd","subE;":"\u2ac5","sube;":"\u2286","subedot;":"\u2ac3","submult;":"\u2ac1","subnE;":"\u2acb","subne;":"\u228a","subplus;":"\u2abf","subrarr;":"\u2979","Subset;":"\u22d0","subset;":"\u2282","subseteq;":"\u2286","subseteqq;":"\u2ac5","SubsetEqual;":"\u2286","subsetneq;":"\u228a","subsetneqq;":"\u2acb","subsim;":"\u2ac7","subsub;":"\u2ad5","subsup;":"\u2ad3","succ;":"\u227b","succapprox;":"\u2ab8","succcurlyeq;":"\u227d","Succeeds;":"\u227b","SucceedsEqual;":"\u2ab0","SucceedsSlantEqual;":"\u227d","SucceedsTilde;":"\u227f","succeq;":"\u2ab0","succnapprox;":"\u2aba","succneqq;":"\u2ab6","succnsim;":"\u22e9","succsim;":"\u227f","SuchThat;":"\u220b","Sum;":"\u2211","sum;":"\u2211","sung;":"\u266a","Sup;":"\u22d1","sup;":"\u2283","sup1;":"\xb9",sup1:"\xb9","sup2;":"\xb2",sup2:"\xb2","sup3;":"\xb3",sup3:"\xb3","supdot;":"\u2abe","supdsub;":"\u2ad8","supE;":"\u2ac6","supe;":"\u2287","supedot;":"\u2ac4","Superset;":"\u2283","SupersetEqual;":"\u2287","suphsol;":"\u27c9","suphsub;":"\u2ad7","suplarr;":"\u297b","supmult;":"\u2ac2","supnE;":"\u2acc","supne;":"\u228b","supplus;":"\u2ac0","Supset;":"\u22d1","supset;":"\u2283","supseteq;":"\u2287","supseteqq;":"\u2ac6","supsetneq;":"\u228b","supsetneqq;":"\u2acc","supsim;":"\u2ac8","supsub;":"\u2ad4","supsup;":"\u2ad6","swarhk;":"\u2926","swArr;":"\u21d9","swarr;":"\u2199","swarrow;":"\u2199","swnwar;":"\u292a","szlig;":"\xdf",szlig:"\xdf","Tab;":"\t","target;":"\u2316","Tau;":"\u03a4","tau;":"\u03c4","tbrk;":"\u23b4","Tcaron;":"\u0164","tcaron;":"\u0165","Tcedil;":"\u0162","tcedil;":"\u0163","Tcy;":"\u0422","tcy;":"\u0442","tdot;":"\u20db","telrec;":"\u2315","Tfr;":"\ud835\udd17","tfr;":"\ud835\udd31","there4;":"\u2234","Therefore;":"\u2234","therefore;":"\u2234","Theta;":"\u0398","theta;":"\u03b8","thetasym;":"\u03d1","thetav;":"\u03d1","thickapprox;":"\u2248","thicksim;":"\u223c","ThickSpace;":"\u205f\u200a","thinsp;":"\u2009","ThinSpace;":"\u2009","thkap;":"\u2248","thksim;":"\u223c","THORN;":"\xde",THORN:"\xde","thorn;":"\xfe",thorn:"\xfe","Tilde;":"\u223c","tilde;":"\u02dc","TildeEqual;":"\u2243","TildeFullEqual;":"\u2245","TildeTilde;":"\u2248","times;":"\xd7",times:"\xd7","timesb;":"\u22a0","timesbar;":"\u2a31","timesd;":"\u2a30","tint;":"\u222d","toea;":"\u2928","top;":"\u22a4","topbot;":"\u2336","topcir;":"\u2af1","Topf;":"\ud835\udd4b","topf;":"\ud835\udd65","topfork;":"\u2ada","tosa;":"\u2929","tprime;":"\u2034","TRADE;":"\u2122","trade;":"\u2122","triangle;":"\u25b5","triangledown;":"\u25bf","triangleleft;":"\u25c3","trianglelefteq;":"\u22b4","triangleq;":"\u225c","triangleright;":"\u25b9","trianglerighteq;":"\u22b5","tridot;":"\u25ec","trie;":"\u225c","triminus;":"\u2a3a","TripleDot;":"\u20db","triplus;":"\u2a39","trisb;":"\u29cd","tritime;":"\u2a3b","trpezium;":"\u23e2","Tscr;":"\ud835\udcaf","tscr;":"\ud835\udcc9","TScy;":"\u0426","tscy;":"\u0446","TSHcy;":"\u040b","tshcy;":"\u045b","Tstrok;":"\u0166","tstrok;":"\u0167","twixt;":"\u226c","twoheadleftarrow;":"\u219e","twoheadrightarrow;":"\u21a0","Uacute;":"\xda",Uacute:"\xda","uacute;":"\xfa",uacute:"\xfa","Uarr;":"\u219f","uArr;":"\u21d1","uarr;":"\u2191","Uarrocir;":"\u2949","Ubrcy;":"\u040e","ubrcy;":"\u045e","Ubreve;":"\u016c","ubreve;":"\u016d","Ucirc;":"\xdb",Ucirc:"\xdb","ucirc;":"\xfb",ucirc:"\xfb","Ucy;":"\u0423","ucy;":"\u0443","udarr;":"\u21c5","Udblac;":"\u0170","udblac;":"\u0171","udhar;":"\u296e","ufisht;":"\u297e","Ufr;":"\ud835\udd18","ufr;":"\ud835\udd32","Ugrave;":"\xd9",Ugrave:"\xd9","ugrave;":"\xf9",ugrave:"\xf9","uHar;":"\u2963","uharl;":"\u21bf","uharr;":"\u21be","uhblk;":"\u2580","ulcorn;":"\u231c","ulcorner;":"\u231c","ulcrop;":"\u230f","ultri;":"\u25f8","Umacr;":"\u016a","umacr;":"\u016b","uml;":"\xa8",uml:"\xa8","UnderBar;":"_","UnderBrace;":"\u23df","UnderBracket;":"\u23b5","UnderParenthesis;":"\u23dd","Union;":"\u22c3","UnionPlus;":"\u228e","Uogon;":"\u0172","uogon;":"\u0173","Uopf;":"\ud835\udd4c","uopf;":"\ud835\udd66","UpArrow;":"\u2191","Uparrow;":"\u21d1","uparrow;":"\u2191","UpArrowBar;":"\u2912","UpArrowDownArrow;":"\u21c5","UpDownArrow;":"\u2195","Updownarrow;":"\u21d5","updownarrow;":"\u2195","UpEquilibrium;":"\u296e","upharpoonleft;":"\u21bf","upharpoonright;":"\u21be","uplus;":"\u228e","UpperLeftArrow;":"\u2196","UpperRightArrow;":"\u2197","Upsi;":"\u03d2","upsi;":"\u03c5","upsih;":"\u03d2","Upsilon;":"\u03a5","upsilon;":"\u03c5","UpTee;":"\u22a5","UpTeeArrow;":"\u21a5","upuparrows;":"\u21c8","urcorn;":"\u231d","urcorner;":"\u231d","urcrop;":"\u230e","Uring;":"\u016e","uring;":"\u016f","urtri;":"\u25f9","Uscr;":"\ud835\udcb0","uscr;":"\ud835\udcca","utdot;":"\u22f0","Utilde;":"\u0168","utilde;":"\u0169","utri;":"\u25b5","utrif;":"\u25b4","uuarr;":"\u21c8","Uuml;":"\xdc",Uuml:"\xdc","uuml;":"\xfc",uuml:"\xfc","uwangle;":"\u29a7","vangrt;":"\u299c","varepsilon;":"\u03f5","varkappa;":"\u03f0","varnothing;":"\u2205","varphi;":"\u03d5","varpi;":"\u03d6","varpropto;":"\u221d","vArr;":"\u21d5","varr;":"\u2195","varrho;":"\u03f1","varsigma;":"\u03c2","varsubsetneq;":"\u228a\ufe00","varsubsetneqq;":"\u2acb\ufe00","varsupsetneq;":"\u228b\ufe00","varsupsetneqq;":"\u2acc\ufe00","vartheta;":"\u03d1","vartriangleleft;":"\u22b2","vartriangleright;":"\u22b3","Vbar;":"\u2aeb","vBar;":"\u2ae8","vBarv;":"\u2ae9","Vcy;":"\u0412","vcy;":"\u0432","VDash;":"\u22ab","Vdash;":"\u22a9","vDash;":"\u22a8","vdash;":"\u22a2","Vdashl;":"\u2ae6","Vee;":"\u22c1","vee;":"\u2228","veebar;":"\u22bb","veeeq;":"\u225a","vellip;":"\u22ee","Verbar;":"\u2016","verbar;":"|","Vert;":"\u2016","vert;":"|","VerticalBar;":"\u2223","VerticalLine;":"|","VerticalSeparator;":"\u2758","VerticalTilde;":"\u2240","VeryThinSpace;":"\u200a","Vfr;":"\ud835\udd19","vfr;":"\ud835\udd33","vltri;":"\u22b2","vnsub;":"\u2282\u20d2","vnsup;":"\u2283\u20d2","Vopf;":"\ud835\udd4d","vopf;":"\ud835\udd67","vprop;":"\u221d","vrtri;":"\u22b3","Vscr;":"\ud835\udcb1","vscr;":"\ud835\udccb","vsubnE;":"\u2acb\ufe00","vsubne;":"\u228a\ufe00","vsupnE;":"\u2acc\ufe00","vsupne;":"\u228b\ufe00","Vvdash;":"\u22aa","vzigzag;":"\u299a","Wcirc;":"\u0174","wcirc;":"\u0175","wedbar;":"\u2a5f","Wedge;":"\u22c0","wedge;":"\u2227","wedgeq;":"\u2259","weierp;":"\u2118","Wfr;":"\ud835\udd1a","wfr;":"\ud835\udd34","Wopf;":"\ud835\udd4e","wopf;":"\ud835\udd68","wp;":"\u2118","wr;":"\u2240","wreath;":"\u2240","Wscr;":"\ud835\udcb2","wscr;":"\ud835\udccc","xcap;":"\u22c2","xcirc;":"\u25ef","xcup;":"\u22c3","xdtri;":"\u25bd","Xfr;":"\ud835\udd1b","xfr;":"\ud835\udd35","xhArr;":"\u27fa","xharr;":"\u27f7","Xi;":"\u039e","xi;":"\u03be","xlArr;":"\u27f8","xlarr;":"\u27f5","xmap;":"\u27fc","xnis;":"\u22fb","xodot;":"\u2a00","Xopf;":"\ud835\udd4f","xopf;":"\ud835\udd69","xoplus;":"\u2a01","xotime;":"\u2a02","xrArr;":"\u27f9","xrarr;":"\u27f6","Xscr;":"\ud835\udcb3","xscr;":"\ud835\udccd","xsqcup;":"\u2a06","xuplus;":"\u2a04","xutri;":"\u25b3","xvee;":"\u22c1","xwedge;":"\u22c0","Yacute;":"\xdd",Yacute:"\xdd","yacute;":"\xfd",yacute:"\xfd","YAcy;":"\u042f","yacy;":"\u044f","Ycirc;":"\u0176","ycirc;":"\u0177","Ycy;":"\u042b","ycy;":"\u044b","yen;":"\xa5",yen:"\xa5","Yfr;":"\ud835\udd1c","yfr;":"\ud835\udd36","YIcy;":"\u0407","yicy;":"\u0457","Yopf;":"\ud835\udd50","yopf;":"\ud835\udd6a","Yscr;":"\ud835\udcb4","yscr;":"\ud835\udcce","YUcy;":"\u042e","yucy;":"\u044e","Yuml;":"\u0178","yuml;":"\xff",yuml:"\xff","Zacute;":"\u0179","zacute;":"\u017a","Zcaron;":"\u017d","zcaron;":"\u017e","Zcy;":"\u0417","zcy;":"\u0437","Zdot;":"\u017b","zdot;":"\u017c","zeetrf;":"\u2128","ZeroWidthSpace;":"\u200b","Zeta;":"\u0396","zeta;":"\u03b6","Zfr;":"\u2128","zfr;":"\ud835\udd37","ZHcy;":"\u0416","zhcy;":"\u0436","zigrarr;":"\u21dd","Zopf;":"\u2124","zopf;":"\ud835\udd6b","Zscr;":"\ud835\udcb5","zscr;":"\ud835\udccf","zwj;":"\u200d","zwnj;":"\u200c"};function _n(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 bn(e,t){const n=e.length-t.length;return n>0?e.lastIndexOf(t)===n:0===n&&e===t}function vn(e,t){let n="";for(;t>0;)1===(1&t)&&(n+=e),e+=e,t>>>=1;return n}var wn="a".charCodeAt(0),kn="z".charCodeAt(0),yn="A".charCodeAt(0),Tn="Z".charCodeAt(0),Cn="0".charCodeAt(0),Sn="9".charCodeAt(0);function Ln(e,t){const n=e.charCodeAt(t);return wn<=n&&n<=kn||yn<=n&&n<=Tn||Cn<=n&&n<=Sn}function xn(e){return"undefined"!==typeof e}var En=class{isApplicable(){return!0}constructor(e,t){this.id=e,this._tags=[],this._tagMap={},this._valueSetMap={},this._tags=t.tags||[],this._globalAttributes=t.globalAttributes||[],this._tags.forEach((e=>{this._tagMap[e.name.toLowerCase()]=e})),t.valueSets&&t.valueSets.forEach((e=>{this._valueSetMap[e.name]=e.values}))}getId(){return this.id}provideTags(){return this._tags}provideAttributes(e){const t=[],n=e=>{t.push(e)},i=this._tagMap[e.toLowerCase()];return i&&i.attributes.forEach(n),this._globalAttributes.forEach(n),t}provideValues(e,t){const n=[];t=t.toLowerCase();const i=e=>{e.forEach((e=>{e.name.toLowerCase()===t&&(e.values&&e.values.forEach((e=>{n.push(e)})),e.valueSet&&this._valueSetMap[e.valueSet]&&this._valueSetMap[e.valueSet].forEach((e=>{n.push(e)})))}))},r=this._tagMap[e.toLowerCase()];return r&&i(r.attributes),i(this._globalAttributes),n}};function An(e,t={},n){const i={kind:n?"markdown":"plaintext",value:""};if(e.description&&!1!==t.documentation){const t=function(e){if(e)return"string"===typeof e?{kind:"markdown",value:e}:{kind:"markdown",value:e.value}}(e.description);t&&(i.value+=t.value)}if(e.references&&e.references.length>0&&!1!==t.references&&(i.value.length&&(i.value+="\n\n"),i.value+=n?e.references.map((e=>`[${e.name}](${e.url})`)).join(" | "):e.references.map((e=>`${e.name}: ${e.url}`)).join("\n")),""!==i.value)return i}var In=class{constructor(e,t){this.dataManager=e,this.readDirectory=t,this.atributeCompletions=[]}onHtmlAttributeValue(e){this.dataManager.isPathAttribute(e.tag,e.attribute)&&this.atributeCompletions.push(e)}async computeCompletions(e,t){const n={items:[],isIncomplete:!1};for(const i of this.atributeCompletions){const r=Nn(e.getText(i.range));if(Rn(r))if("."===r||".."===r)n.isIncomplete=!0;else{const s=Dn(i.value,r,i.range),o=await this.providePathSuggestions(i.value,s,e,t);for(const e of o)n.items.push(e)}}return n}async providePathSuggestions(e,t,n,i){const r=e.substring(0,e.lastIndexOf("/")+1);let s=i.resolveReference(r||".",n.uri);if(s)try{const e=[],n=await this.readDirectory(s);for(const[i,r]of n)i.charCodeAt(0)!==Mn&&e.push(On(i,r===qt.Directory,t));return e}catch(o){}return[]}},Mn=".".charCodeAt(0);function Nn(e){return _n(e,"'")||_n(e,'"')?e.slice(1,-1):e}function Rn(e){return!(_n(e,"http")||_n(e,"https")||_n(e,"//"))}function Dn(e,t,n){let i;const r=e.lastIndexOf("/");if(-1===r)i=function(e,t,n){const i=Bn(e.start,t),r=Bn(e.end,n);return m.create(i,r)}(n,1,-1);else{const e=t.slice(r+1),s=Bn(n.end,-1-e.length),o=e.indexOf(" ");let a;a=-1!==o?Bn(s,o):Bn(n.end,-1),i=m.create(s,a)}return i}function On(e,t,n){return t?{label:e+="/",kind:me.Folder,textEdit:U.replace(n,e),command:{title:"Suggest",command:"editor.action.triggerSuggest"}}:{label:e,kind:me.File,textEdit:U.replace(n,e)}}function Bn(e,t){return g.create(e.line,e.character+t)}var zn=class{constructor(e,t){this.lsOptions=e,this.dataManager=t,this.completionParticipants=[]}setCompletionParticipants(e){this.completionParticipants=e||[]}async doComplete2(e,t,n,i,r){if(!this.lsOptions.fileSystemProvider||!this.lsOptions.fileSystemProvider.readDirectory)return this.doComplete(e,t,n,r);const s=new In(this.dataManager,this.lsOptions.fileSystemProvider.readDirectory),o=this.completionParticipants;this.completionParticipants=[s].concat(o);const a=this.doComplete(e,t,n,r);try{const t=await s.computeCompletions(e,i);return{isIncomplete:a.isIncomplete||t.isIncomplete,items:t.items.concat(a.items)}}finally{this.completionParticipants=o}}doComplete(e,t,n,i){const r=this._doComplete(e,t,n,i);return this.convertCompletionList(r)}_doComplete(e,t,n,i){const r={isIncomplete:!1,items:[]},s=this.completionParticipants,a=this.dataManager.getDataProviders().filter((t=>t.isApplicable(e.languageId)&&(!i||!1!==i[t.getId()]))),l=this.dataManager.getVoidElements(a),h=this.doesSupportMarkdown(),c=e.getText(),d=e.offsetAt(t),u=n.findNodeBefore(d);if(!u)return r;const f=un(c,u.start);let p,_="";function b(t,n=d){return t>d&&(t=d),{start:e.positionAt(t),end:e.positionAt(n)}}function v(e,t){const n=b(e,t);return a.forEach((e=>{e.provideTags().forEach((e=>{r.items.push({label:e.name,kind:me.Property,documentation:An(e,void 0,h),textEdit:U.replace(n,e.name),insertTextFormat:_e.PlainText})}))})),r}function w(e){let t=e;for(;t>0;){const n=c.charAt(t-1);if("\n\r".indexOf(n)>=0)return c.substring(t,e);if(!Pn(n))return null;t--}return c.substring(0,e)}function k(e,t,n=d){const i=b(e,n),s=Fn(c,n,Wt.WithinEndTag,Pt.EndTagClose)?"":">";let o=u;for(t&&(o=o.parent);o;){const t=o.tag;if(t&&(!o.closed||o.endTagStart&&o.endTagStart>d)){const n={label:"/"+t,kind:me.Property,filterText:"/"+t,textEdit:U.replace(i,"/"+t+s),insertTextFormat:_e.PlainText},a=w(o.start),l=w(e-1);if(null!==a&&null!==l&&a!==l){const i=a+"</"+t+s;n.textEdit=U.replace(b(e-1-l.length),i),n.filterText=l+"</"+t}return r.items.push(n),r}o=o.parent}return t||a.forEach((e=>{e.provideTags().forEach((e=>{r.items.push({label:"/"+e.name,kind:me.Property,documentation:An(e,void 0,h),filterText:"/"+e.name+s,textEdit:U.replace(i,"/"+e.name+s),insertTextFormat:_e.PlainText})}))})),r}const y=(t,n)=>{if(i&&i.hideAutoCompleteProposals)return r;if(!this.dataManager.isVoidElement(n,l)){const i=e.positionAt(t);r.items.push({label:"</"+n+">",kind:me.Property,filterText:"</"+n+">",textEdit:U.insert(i,"$0</"+n+">"),insertTextFormat:_e.Snippet})}return r};function T(e,t){return v(e,t),k(e,!0,t),r}function C(e,t=d){let s=d;for(;s<t&&"<"!==c[s];)s++;const o=c.substring(e,t),l=b(e,s);let g="";if(!Fn(c,t,Wt.AfterAttributeName,Pt.DelimiterAssign)){const e=i?.attributeDefaultValue??"doublequotes";g="empty"===e?"=$1":"singlequotes"===e?"='$1'":'="$1"'}const f=function(){const e=Object.create(null);return u.attributeNames.forEach((t=>{e[t]=!0})),e}();return f[o]=!1,a.forEach((e=>{e.provideAttributes(_).forEach((e=>{if(f[e.name])return;f[e.name]=!0;let t,n=e.name;"v"!==e.valueSet&&g.length&&(n+=g,(e.valueSet||"style"===e.name)&&(t={title:"Suggest",command:"editor.action.triggerSuggest"})),r.items.push({label:e.name,kind:"handler"===e.valueSet?me.Function:me.Value,documentation:An(e,void 0,h),textEdit:U.replace(l,n),insertTextFormat:_e.Snippet,command:t})}))})),function(e,t){const i="data-",s={};function o(e){e.attributeNames.forEach((e=>{!_n(e,i)||s[e]||t[e]||(s[e]=e+'="$1"')})),e.children.forEach((e=>o(e)))}s[i]=`${i}$1="$2"`,n&&n.roots.forEach((e=>o(e)));Object.keys(s).forEach((t=>r.items.push({label:t,kind:me.Value,textEdit:U.replace(e,s[t]),insertTextFormat:_e.Snippet})))}(l,f),r}function S(n,i=d){let o,l,u;if(d>n&&d<=i&&(g=c[n],/^["']*$/.test(g))){const e=n+1;let t=i;i>n&&c[i-1]===c[n]&&t--;const r=function(e,t,n){for(;t>n&&!Pn(e[t-1]);)t--;return t}(c,d,e),s=function(e,t,n){for(;t<n&&!Pn(e[t]);)t++;return t}(c,d,t);o=b(r,s),u=d>=e&&d<=t?c.substring(e,d):"",l=!1}else o=b(n,i),u=c.substring(n,d),l=!0;var g;if(s.length>0){const r=_.toLowerCase(),o=p.toLowerCase(),a=b(n,i);for(const n of s)n.onHtmlAttributeValue&&n.onHtmlAttributeValue({document:e,position:t,tag:r,attribute:o,value:u,range:a})}return a.forEach((e=>{e.provideValues(_,p).forEach((e=>{const t=l?'"'+e.name+'"':e.name;r.items.push({label:e.name,filterText:t,kind:me.Unit,documentation:An(e,void 0,h),textEdit:U.replace(o,t),insertTextFormat:_e.PlainText})}))})),E(),r}function L(e){return d===f.getTokenEnd()&&(I=f.scan(),I===e&&f.getTokenOffset()===d)?f.getTokenEnd():d}function x(){for(const n of s)n.onHtmlContent&&n.onHtmlContent({document:e,position:t});return E()}function E(){let e=d-1,n=t.character;for(;e>=0&&Ln(c,e);)e--,n--;if(e>=0&&"&"===c[e]){const e=m.create(g.create(t.line,n-1),t);for(const t in pn)if(bn(t,";")){const n="&"+t;r.items.push({label:n,kind:me.Keyword,documentation:o("Character entity representing '{0}'",pn[t]),textEdit:U.replace(e,n),insertTextFormat:_e.PlainText})}}return r}function A(e,t){const n=b(e,t);r.items.push({label:"!DOCTYPE",kind:me.Property,documentation:"A preamble for an HTML document.",textEdit:U.replace(n,"!DOCTYPE html>"),insertTextFormat:_e.PlainText})}let I=f.scan();for(;I!==Pt.EOS&&f.getTokenOffset()<=d;){switch(I){case Pt.StartTagOpen:if(f.getTokenEnd()===d){const e=L(Pt.StartTag);return 0===t.line&&A(d,e),T(d,e)}break;case Pt.StartTag:if(f.getTokenOffset()<=d&&d<=f.getTokenEnd())return v(f.getTokenOffset(),f.getTokenEnd());_=f.getTokenText();break;case Pt.AttributeName:if(f.getTokenOffset()<=d&&d<=f.getTokenEnd())return C(f.getTokenOffset(),f.getTokenEnd());p=f.getTokenText();break;case Pt.DelimiterAssign:if(f.getTokenEnd()===d){const e=L(Pt.AttributeValue);return S(d,e)}break;case Pt.AttributeValue:if(f.getTokenOffset()<=d&&d<=f.getTokenEnd())return S(f.getTokenOffset(),f.getTokenEnd());break;case Pt.Whitespace:if(d<=f.getTokenEnd())switch(f.getScannerState()){case Wt.AfterOpeningStartTag:return T(f.getTokenOffset(),L(Pt.StartTag));case Wt.WithinTag:case Wt.AfterAttributeName:return C(f.getTokenEnd());case Wt.BeforeAttributeValue:return S(f.getTokenEnd());case Wt.AfterOpeningEndTag:return k(f.getTokenOffset()-1,!1);case Wt.WithinContent:return x()}break;case Pt.EndTagOpen:if(d<=f.getTokenEnd()){return k(f.getTokenOffset()+1,!1,L(Pt.EndTag))}break;case Pt.EndTag:if(d<=f.getTokenEnd()){let e=f.getTokenOffset()-1;for(;e>=0;){const t=c.charAt(e);if("/"===t)return k(e,!1,f.getTokenEnd());if(!Pn(t))break;e--}}break;case Pt.StartTagClose:if(d<=f.getTokenEnd()&&_)return y(f.getTokenEnd(),_);break;case Pt.Content:if(d<=f.getTokenEnd())return x();break;default:if(d<=f.getTokenEnd())return r}I=f.scan()}return r}doQuoteComplete(e,t,n,i){const r=e.offsetAt(t);if(r<=0)return null;const s=i?.attributeDefaultValue??"doublequotes";if("empty"===s)return null;if("="!==e.getText().charAt(r-1))return null;const o="doublequotes"===s?'"$1"':"'$1'",a=n.findNodeBefore(r);if(a&&a.attributes&&a.start<r&&(!a.endTagStart||a.endTagStart>r)){const t=un(e.getText(),a.start);let n=t.scan();for(;n!==Pt.EOS&&t.getTokenEnd()<=r;){if(n===Pt.AttributeName&&t.getTokenEnd()===r-1)return n=t.scan(),n!==Pt.DelimiterAssign?null:(n=t.scan(),n===Pt.Unknown||n===Pt.AttributeValue?null:o);n=t.scan()}}return null}doTagComplete(e,t,n){const i=e.offsetAt(t);if(i<=0)return null;const r=e.getText().charAt(i-1);if(">"===r){const t=this.dataManager.getVoidElements(e.languageId),r=n.findNodeBefore(i);if(r&&r.tag&&!this.dataManager.isVoidElement(r.tag,t)&&r.start<i&&(!r.endTagStart||r.endTagStart>i)){const t=un(e.getText(),r.start);let n=t.scan();for(;n!==Pt.EOS&&t.getTokenEnd()<=i;){if(n===Pt.StartTagClose&&t.getTokenEnd()===i)return`$0</${r.tag}>`;n=t.scan()}}}else if("/"===r){let t=n.findNodeBefore(i);for(;t&&t.closed&&!(t.endTagStart&&t.endTagStart>i);)t=t.parent;if(t&&t.tag){const n=un(e.getText(),t.start);let r=n.scan();for(;r!==Pt.EOS&&n.getTokenEnd()<=i;){if(r===Pt.EndTagOpen&&n.getTokenEnd()===i)return">"!==e.getText().charAt(i)?`${t.tag}>`:t.tag;r=n.scan()}}}return null}convertCompletionList(e){return this.doesSupportMarkdown()||e.items.forEach((e=>{e.documentation&&"string"!==typeof e.documentation&&(e.documentation={kind:"plaintext",value:e.documentation.value})})),e}doesSupportMarkdown(){if(!xn(this.supportsMarkdown)){if(!xn(this.lsOptions.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;const e=this.lsOptions.clientCapabilities.textDocument?.completion?.completionItem?.documentationFormat;this.supportsMarkdown=Array.isArray(e)&&-1!==e.indexOf(ue.Markdown)}return this.supportsMarkdown}};function Pn(e){return/^\s*$/.test(e)}function Fn(e,t,n,i){const r=un(e,t,n);let s=r.scan();for(;s===Pt.Whitespace;)s=r.scan();return s===i}var Wn,Hn=class{constructor(e,t){this.lsOptions=e,this.dataManager=t}doHover(e,t,n,i){const r=this.convertContents.bind(this),s=this.doesSupportMarkdown(),a=e.offsetAt(t),l=n.findNodeAt(a),h=e.getText();if(!l||!l.tag)return null;const c=this.dataManager.getDataProviders().filter((t=>t.isApplicable(e.languageId)));function d(e,t,n){for(const o of c){let n=null;if(o.provideTags().forEach((r=>{if(r.name.toLowerCase()===e.toLowerCase()){let e=An(r,i,s);e||(e={kind:s?"markdown":"plaintext",value:""}),n={contents:e,range:t}}})),n)return n.contents=r(n.contents),n}return null}function u(t,n){const i=un(e.getText(),n);let r=i.scan();for(;r!==Pt.EOS&&(i.getTokenEnd()<a||i.getTokenEnd()===a&&r!==t);)r=i.scan();return r===t&&a<=i.getTokenEnd()?{start:e.positionAt(i.getTokenOffset()),end:e.positionAt(i.getTokenEnd())}:null}if(l.endTagStart&&a>=l.endTagStart){const e=u(Pt.EndTag,l.endTagStart);return e?d(l.tag,e):null}const f=u(Pt.StartTag,l.start);if(f)return d(l.tag,f);const p=u(Pt.AttributeName,l.start);if(p){return function(e,t,n){for(const o of c){let a=null;if(o.provideAttributes(e).forEach((e=>{if(t===e.name&&e.description){const t=An(e,i,s);a=t?{contents:t,range:n}:null}})),a)return a.contents=r(a.contents),a}return null}(l.tag,e.getText(p),p)}const _=function(){let e=a-1,n=t.character;for(;e>=0&&Ln(h,e);)e--,n--;let i=e+1,r=n;for(;Ln(h,i);)i++,r++;if(e>=0&&"&"===h[e]){let e=null;return e=";"===h[i]?m.create(g.create(t.line,n),g.create(t.line,r+1)):m.create(g.create(t.line,n),g.create(t.line,r)),e}return null}();if(_)return function(e,t){let n=function(e){let t=a-1,n="&";for(;t>=0&&Ln(e,t);)t--;for(t+=1;Ln(e,t);)n+=e[t],t+=1;return n+=";",n}(e);for(const i in pn){let e=null;if(n==="&"+i){let n=pn[i].charCodeAt(0).toString(16).toUpperCase(),r="U+";if(n.length<4){const e=4-n.length;let t=0;for(;t<e;)r+="0",t+=1}r+=n;const s=o("Character entity representing '{0}', unicode equivalent '{1}'",pn[i],r);e=s?{contents:s,range:t}:null}if(e)return e.contents=r(e.contents),e}return null}(h,_);const b=u(Pt.AttributeValue,l.start);if(b){const t=l.tag,n=function(e){if(e.length<=1)return e.replace(/['"]/,"");"'"!==e[0]&&'"'!==e[0]||(e=e.slice(1));"'"!==e[e.length-1]&&'"'!==e[e.length-1]||(e=e.slice(0,-1));return e}(e.getText(b)),o=function(t,n){const i=un(e.getText(),t);let r,s=i.scan();for(;s!==Pt.EOS&&i.getTokenEnd()<=n;)s=i.scan(),s===Pt.AttributeName&&(r=i.getTokenText());return r}(l.start,e.offsetAt(b.start));if(o)return function(e,t,n,o){for(const a of c){let l=null;if(a.provideValues(e,t).forEach((e=>{if(n===e.name&&e.description){const t=An(e,i,s);l=t?{contents:t,range:o}:null}})),l)return l.contents=r(l.contents),l}return null}(t,o,n,b)}return null}convertContents(e){if(!this.doesSupportMarkdown()){if("string"===typeof e)return e;if("kind"in e)return{kind:"plaintext",value:e.value};if(!Array.isArray(e))return e.value;e.map((e=>"string"===typeof e?e:e.value))}return e}doesSupportMarkdown(){if(!xn(this.supportsMarkdown)){if(!xn(this.lsOptions.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;const e=this.lsOptions.clientCapabilities?.textDocument?.hover?.contentFormat;this.supportsMarkdown=Array.isArray(e)&&-1!==e.indexOf(ue.Markdown)}return this.supportsMarkdown}};function Un(e,t){return e}!function(){var e=[,,function(e){function t(e){this.__parent=e,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}function n(e,t){this.__cache=[""],this.__indent_size=e.indent_size,this.__indent_string=e.indent_char,e.indent_with_tabs||(this.__indent_string=new Array(e.indent_size+1).join(e.indent_char)),t=t||"",e.indent_level>0&&(t=new Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=t,this.__base_string_length=t.length}function i(e,i){this.__indent_cache=new n(e,i),this.raw=!1,this._end_with_newline=e.end_with_newline,this.indent_size=e.indent_size,this.wrap_line_length=e.wrap_line_length,this.indent_empty_lines=e.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new t(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}t.prototype.clone_empty=function(){var e=new t(this.__parent);return e.set_indent(this.__indent_count,this.__alignment_count),e},t.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e]},t.prototype.has_match=function(e){for(var t=this.__items.length-1;t>=0;t--)if(this.__items[t].match(e))return!0;return!1},t.prototype.set_indent=function(e,t){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=t||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},t.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},t.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},t.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===e.__items[0]&&(e.__items.splice(0,1),e.__character_count-=1),!0}return!1},t.prototype.is_empty=function(){return 0===this.__items.length},t.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},t.prototype.push=function(e){this.__items.push(e);var t=e.lastIndexOf("\n");-1!==t?this.__character_count=e.length-t:this.__character_count+=e.length},t.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e},t.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},t.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},t.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),this.__character_count-=1},t.prototype.toString=function(){var e="";return this.is_empty()?this.__parent.indent_empty_lines&&(e=this.__parent.get_indent_string(this.__indent_count)):(e=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),e+=this.__items.join("")),e},n.prototype.get_indent_size=function(e,t){var n=this.__base_string_length;return t=t||0,e<0&&(n=0),n+=e*this.__indent_size,n+=t},n.prototype.get_indent_string=function(e,t){var n=this.__base_string;return t=t||0,e<0&&(e=0,n=""),t+=e*this.__indent_size,this.__ensure_cache(t),n+=this.__cache[t]},n.prototype.__ensure_cache=function(e){for(;e>=this.__cache.length;)this.__add_column()},n.prototype.__add_column=function(){var e=this.__cache.length,t=0,n="";this.__indent_size&&e>=this.__indent_size&&(e-=(t=Math.floor(e/this.__indent_size))*this.__indent_size,n=new Array(t+1).join(this.__indent_string)),e&&(n+=new Array(e+1).join(" ")),this.__cache.push(n)},i.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},i.prototype.get_line_number=function(){return this.__lines.length},i.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t)},i.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t)},i.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},i.prototype.add_new_line=function(e){return!(this.is_empty()||!e&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},i.prototype.get_code=function(e){this.trim(!0);var t=this.current_line.pop();t&&("\n"===t[t.length-1]&&(t=t.replace(/\n+$/g,"")),this.current_line.push(t)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==e&&(n=n.replace(/[\n]/g,e)),n},i.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},i.prototype.set_indent=function(e,t){return e=e||0,t=t||0,this.next_line.set_indent(e,t),this.__lines.length>1?(this.current_line.set_indent(e,t),!0):(this.current_line.set_indent(),!1)},i.prototype.add_raw_token=function(e){for(var t=0;t<e.newlines;t++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(e.whitespace_before),this.current_line.push(e.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},i.prototype.add_token=function(e){this.__add_space_before_token(),this.current_line.push(e),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},i.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},i.prototype.remove_indent=function(e){for(var t=this.__lines.length;e<t;)this.__lines[e]._remove_indent(),e++;this.current_line._remove_wrap_indent()},i.prototype.trim=function(e){for(e=void 0!==e&&e,this.current_line.trim();e&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},i.prototype.just_added_newline=function(){return this.current_line.is_empty()},i.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},i.prototype.ensure_empty_line_above=function(e,n){for(var i=this.__lines.length-2;i>=0;){var r=this.__lines[i];if(r.is_empty())break;if(0!==r.item(0).indexOf(e)&&r.item(-1)!==n){this.__lines.splice(i+1,0,new t(this)),this.previous_line=this.__lines[this.__lines.length-2];break}i--}},e.exports.Output=i},,,,function(e){function t(e,t){this.raw_options=n(e,t),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}function n(e,t){var n,r={};for(n in e=i(e))n!==t&&(r[n]=e[n]);if(t&&e[t])for(n in e[t])r[n]=e[t][n];return r}function i(e){var t,n={};for(t in e){n[t.replace(/-/g,"_")]=e[t]}return n}t.prototype._get_array=function(e,t){var n=this.raw_options[e],i=t||[];return"object"===typeof n?null!==n&&"function"===typeof n.concat&&(i=n.concat()):"string"===typeof n&&(i=n.split(/[^a-zA-Z0-9_\/\-]+/)),i},t.prototype._get_boolean=function(e,t){var n=this.raw_options[e];return void 0===n?!!t:!!n},t.prototype._get_characters=function(e,t){var n=this.raw_options[e],i=t||"";return"string"===typeof n&&(i=n.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),i},t.prototype._get_number=function(e,t){var n=this.raw_options[e];t=parseInt(t,10),isNaN(t)&&(t=0);var i=parseInt(n,10);return isNaN(i)&&(i=t),i},t.prototype._get_selection=function(e,t,n){var i=this._get_selection_list(e,t,n);if(1!==i.length)throw new Error("Invalid Option Value: The option '"+e+"' can only be one of the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return i[0]},t.prototype._get_selection_list=function(e,t,n){if(!t||0===t.length)throw new Error("Selection list cannot be empty.");if(n=n||[t[0]],!this._is_valid_selection(n,t))throw new Error("Invalid Default Value!");var i=this._get_array(e,n);if(!this._is_valid_selection(i,t))throw new Error("Invalid Option Value: The option '"+e+"' can contain only the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return i},t.prototype._is_valid_selection=function(e,t){return e.length&&t.length&&!e.some((function(e){return-1===t.indexOf(e)}))},e.exports.Options=t,e.exports.normalizeOpts=i,e.exports.mergeOpts=n},,function(e){var t=RegExp.prototype.hasOwnProperty("sticky");function n(e){this.__input=e||"",this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){this.__position>0&&(this.__position-=1)},n.prototype.hasNext=function(){return this.__position<this.__input_length},n.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__input.charAt(this.__position),this.__position+=1),e},n.prototype.peek=function(e){var t=null;return e=e||0,(e+=this.__position)>=0&&e<this.__input_length&&(t=this.__input.charAt(e)),t},n.prototype.__match=function(e,n){e.lastIndex=n;var i=e.exec(this.__input);return!i||t&&e.sticky||i.index!==n&&(i=null),i},n.prototype.test=function(e,t){return t=t||0,(t+=this.__position)>=0&&t<this.__input_length&&!!this.__match(e,t)},n.prototype.testChar=function(e,t){var n=this.peek(t);return e.lastIndex=0,null!==n&&e.test(n)},n.prototype.match=function(e){var t=this.__match(e,this.__position);return t?this.__position+=t[0].length:t=null,t},n.prototype.read=function(e,t,n){var i,r="";return e&&(i=this.match(e))&&(r+=i[0]),!t||!i&&e||(r+=this.readUntil(t,n)),r},n.prototype.readUntil=function(e,t){var n,i=this.__position;e.lastIndex=this.__position;var r=e.exec(this.__input);return r?(i=r.index,t&&(i+=r[0].length)):i=this.__input_length,n=this.__input.substring(this.__position,i),this.__position=i,n},n.prototype.readUntilAfter=function(e){return this.readUntil(e,!0)},n.prototype.get_regexp=function(e,n){var i=null,r="g";return n&&t&&(r="y"),"string"===typeof e&&""!==e?i=new RegExp(e,r):e&&(i=new RegExp(e.source,r)),i},n.prototype.get_literal_regexp=function(e){return RegExp(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},n.prototype.peekUntilAfter=function(e){var t=this.__position,n=this.readUntilAfter(e);return this.__position=t,n},n.prototype.lookBack=function(e){var t=this.__position-1;return t>=e.length&&this.__input.substring(t-e.length,t).toLowerCase()===e},e.exports.InputScanner=n},,,,,function(e){function t(e,t){e="string"===typeof e?e:e.source,t="string"===typeof t?t:t.source,this.__directives_block_pattern=new RegExp(e+/ beautify( \w+[:]\w+)+ /.source+t,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(e+/\sbeautify\signore:end\s/.source+t,"g")}t.prototype.get_directives=function(e){if(!e.match(this.__directives_block_pattern))return null;var t={};this.__directive_pattern.lastIndex=0;for(var n=this.__directive_pattern.exec(e);n;)t[n[1]]=n[2],n=this.__directive_pattern.exec(e);return t},t.prototype.readIgnored=function(e){return e.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.Directives=t},,function(e,t,n){var i=n(16).Beautifier,r=n(17).Options;e.exports=function(e,t){return new i(e,t).beautify()},e.exports.defaultOptions=function(){return new r}},function(e,t,n){var i=n(17).Options,r=n(2).Output,s=n(8).InputScanner,o=new(0,n(13).Directives)(/\/\*/,/\*\//),a=/\r\n|[\r\n]/,l=/\r\n|[\r\n]/g,h=/\s/,c=/(?:\s|\n)+/g,d=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,u=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function g(e,t){this._source_text=e||"",this._options=new i(t),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}g.prototype.eatString=function(e){var t="";for(this._ch=this._input.next();this._ch;){if(t+=this._ch,"\\"===this._ch)t+=this._input.next();else if(-1!==e.indexOf(this._ch)||"\n"===this._ch)break;this._ch=this._input.next()}return t},g.prototype.eatWhitespace=function(e){for(var t=h.test(this._input.peek()),n=0;h.test(this._input.peek());)this._ch=this._input.next(),e&&"\n"===this._ch&&(0===n||n<this._options.max_preserve_newlines)&&(n++,this._output.add_new_line(!0));return t},g.prototype.foundNestedPseudoClass=function(){for(var e=0,t=1,n=this._input.peek(t);n;){if("{"===n)return!0;if("("===n)e+=1;else if(")"===n){if(0===e)return!1;e-=1}else if(";"===n||"}"===n)return!1;t++,n=this._input.peek(t)}return!1},g.prototype.print_string=function(e){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(e)},g.prototype.preserveSingleSpace=function(e){e&&(this._output.space_before_token=!0)},g.prototype.indent=function(){this._indentLevel++},g.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},g.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._source_text,t=this._options.eol;"auto"===t&&(t="\n",e&&a.test(e||"")&&(t=e.match(a)[0]));var n=(e=e.replace(l,"\n")).match(/^[\t ]*/)[0];this._output=new r(this._options,n),this._input=new s(e),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var i,g,f=0,m=!1,p=!1,_=!1,b=!1,v=!1,w=this._ch,k=!1;i=""!==this._input.read(c),g=w,this._ch=this._input.next(),"\\"===this._ch&&this._input.hasNext()&&(this._ch+=this._input.next()),w=this._ch,this._ch;)if("/"===this._ch&&"*"===this._input.peek()){this._output.add_new_line(),this._input.back();var y=this._input.read(d),T=o.get_directives(y);T&&"start"===T.ignore&&(y+=o.readIgnored(this._input)),this.print_string(y),this.eatWhitespace(!0),this._output.add_new_line()}else if("/"===this._ch&&"/"===this._input.peek())this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(u)),this.eatWhitespace(!0);else if("$"===this._ch){this.preserveSingleSpace(i),this.print_string(this._ch);var C=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);C.match(/[ :]$/)&&(C=this.eatString(": ").replace(/\s+$/,""),this.print_string(C),this._output.space_before_token=!0),0===f&&-1!==C.indexOf(":")&&(p=!0,this.indent())}else if("@"===this._ch)if(this.preserveSingleSpace(i),"{"===this._input.peek())this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var S=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);S.match(/[ :]$/)&&(S=this.eatString(": ").replace(/\s+$/,""),this.print_string(S),this._output.space_before_token=!0),0===f&&-1!==S.indexOf(":")?(p=!0,this.indent()):S in this.NESTED_AT_RULE?(this._nestedLevel+=1,S in this.CONDITIONAL_GROUP_RULE&&(_=!0)):0!==f||p||(b=!0)}else if("#"===this._ch&&"{"===this._input.peek())this.preserveSingleSpace(i),this.print_string(this._ch+this.eatString("}"));else if("{"===this._ch)p&&(p=!1,this.outdent()),b=!1,_?(_=!1,m=this._indentLevel>=this._nestedLevel):m=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&m&&this._output.previous_line&&"{"!==this._output.previous_line.item(-1)&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,"expand"===this._options.brace_style?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):("("===g?this._output.space_before_token=!1:","!==g&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if("}"===this._ch)this.outdent(),this._output.add_new_line(),"{"===g&&this._output.trim(!0),p&&(this.outdent(),p=!1),this.print_string(this._ch),m=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&"}"!==this._input.peek()&&this._output.add_new_line(!0),")"===this._input.peek()&&(this._output.trim(!0),"expand"===this._options.brace_style&&this._output.add_new_line(!0));else if(":"===this._ch){for(var L=0;L<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;L++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[L])){k=!0;break}!m&&!_||this._input.lookBack("&")||this.foundNestedPseudoClass()||this._input.lookBack("(")||b||0!==f?(this._input.lookBack(" ")&&(this._output.space_before_token=!0),":"===this._input.peek()?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":")):(this.print_string(":"),p||(p=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent()))}else if('"'===this._ch||"'"===this._ch){var x='"'===g||"'"===g;this.preserveSingleSpace(x||i),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(";"===this._ch)k=!1,0===f?(p&&(this.outdent(),p=!1),b=!1,this.print_string(this._ch),this.eatWhitespace(!0),"/"!==this._input.peek()&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if("("===this._ch)if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),f++,this.indent(),this._ch=this._input.next(),")"===this._ch||'"'===this._ch||"'"===this._ch?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),f&&(f--,this.outdent()));else{var E=!1;this._input.lookBack("with")&&(E=!0),this.preserveSingleSpace(i||E),this.print_string(this._ch),p&&"$"===g&&this._options.selector_separator_newline?(this._output.add_new_line(),v=!0):(this.eatWhitespace(),f++,this.indent())}else if(")"===this._ch)f&&(f--,this.outdent()),v&&";"===this._input.peek()&&this._options.selector_separator_newline&&(v=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(","===this._ch)this.print_string(this._ch),this.eatWhitespace(!0),!this._options.selector_separator_newline||p&&!v||0!==f||b?this._output.space_before_token=!0:this._output.add_new_line();else if(">"!==this._ch&&"+"!==this._ch&&"~"!==this._ch||p||0!==f)if("]"===this._ch)this.print_string(this._ch);else if("["===this._ch)this.preserveSingleSpace(i),this.print_string(this._ch);else if("="===this._ch)this.eatWhitespace(),this.print_string("="),h.test(this._ch)&&(this._ch="");else if("!"!==this._ch||this._input.lookBack("\\")){var A='"'===g||"'"===g;this.preserveSingleSpace(A||i),this.print_string(this._ch),!this._output.just_added_newline()&&"\n"===this._input.peek()&&k&&this._output.add_new_line()}else this._output.space_before_token=!0,this.print_string(this._ch);else this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&h.test(this._ch)&&(this._ch=""));return this._output.get_code(t)},e.exports.Beautifier=g},function(e,t,n){var i=n(6).Options;function r(e){i.call(this,e,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var t=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||t;var n=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var r=0;r<n.length;r++)"expand"!==n[r]?this.brace_style="collapse":this.brace_style=n[r]}r.prototype=new i,e.exports.Options=r}],t={};var n=function n(i){var r=t[i];if(void 0!==r)return r.exports;var s=t[i]={exports:{}};return e[i](s,s.exports,n),s.exports}(15);Wn=n}();var qn,Vn,jn=Wn;function Gn(e,t,n){let i=e.getText(),r=!0,s=0;const o=n.tabSize||4;if(t){let o=e.offsetAt(t.start),a=o;for(;a>0&&Xn(i,a-1);)a--;0===a||Yn(i,a-1)?o=a:a<o&&(o=a+1);let l=e.offsetAt(t.end),h=l;for(;h<i.length&&Xn(i,h);)h++;(h===i.length||Yn(i,h))&&(l=h),t=m.create(e.positionAt(o),e.positionAt(l));const c=i.substring(0,o);if(new RegExp(/.*[<][^>]*$/).test(c))return i=i.substring(o,l),[{range:t,newText:i}];if(r=l===i.length,i=i.substring(o,l),0!==o){const i=e.offsetAt(g.create(t.start.line,0));s=function(e,t,n){let i=t,r=0;const s=n.tabSize||4;for(;i<e.length;){const t=e.charAt(i);if(" "===t)r++;else{if("\t"!==t)break;r+=s}i++}return Math.floor(r/s)}(e.getText(),i,n)}}else t=m.create(g.create(0,0),e.positionAt(i.length));const a={indent_size:o,indent_char:n.insertSpaces?" ":"\t",indent_empty_lines:Kn(n,"indentEmptyLines",!1),wrap_line_length:Kn(n,"wrapLineLength",120),unformatted:$n(n,"unformatted",void 0),content_unformatted:$n(n,"contentUnformatted",void 0),indent_inner_html:Kn(n,"indentInnerHtml",!1),preserve_newlines:Kn(n,"preserveNewLines",!0),max_preserve_newlines:Kn(n,"maxPreserveNewLines",32786),indent_handlebars:Kn(n,"indentHandlebars",!1),end_with_newline:r&&Kn(n,"endWithNewline",!1),extra_liners:$n(n,"extraLiners",void 0),wrap_attributes:Kn(n,"wrapAttributes","auto"),wrap_attributes_indent_size:Kn(n,"wrapAttributesIndentSize",void 0),eol:"\n",indent_scripts:Kn(n,"indentScripts","normal"),templating:Qn(n,"all"),unformatted_content_delimiter:Kn(n,"unformattedContentDelimiter","")};let l=function(e,t){return qn(e,t,Un,jn)}(i.replace(/^\s+/,""),a);if(s>0){const e=n.insertSpaces?vn(" ",o*s):vn("\t",s);l=l.split("\n").join("\n"+e),0===t.start.character&&(l=e+l)}return[{range:t,newText:l}]}function Kn(e,t,n){if(e&&e.hasOwnProperty(t)){const n=e[t];if(null!==n)return n}return n}function $n(e,t,n){const i=Kn(e,t,null);return"string"===typeof i?i.length>0?i.split(",").map((e=>e.trim().toLowerCase())):[]:n}function Qn(e,t){const n=Kn(e,"templating",t);return!0===n?["auto"]:!1===n||n===t||!1===Array.isArray(n)?["none"]:n}function Yn(e,t){return-1!=="\r\n".indexOf(e.charAt(t))}function Xn(e,t){return-1!==" \t".indexOf(e.charAt(t))}!function(){var e=[,,function(e){function t(e){this.__parent=e,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}function n(e,t){this.__cache=[""],this.__indent_size=e.indent_size,this.__indent_string=e.indent_char,e.indent_with_tabs||(this.__indent_string=new Array(e.indent_size+1).join(e.indent_char)),t=t||"",e.indent_level>0&&(t=new Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=t,this.__base_string_length=t.length}function i(e,i){this.__indent_cache=new n(e,i),this.raw=!1,this._end_with_newline=e.end_with_newline,this.indent_size=e.indent_size,this.wrap_line_length=e.wrap_line_length,this.indent_empty_lines=e.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new t(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}t.prototype.clone_empty=function(){var e=new t(this.__parent);return e.set_indent(this.__indent_count,this.__alignment_count),e},t.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e]},t.prototype.has_match=function(e){for(var t=this.__items.length-1;t>=0;t--)if(this.__items[t].match(e))return!0;return!1},t.prototype.set_indent=function(e,t){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=t||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},t.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},t.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},t.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===e.__items[0]&&(e.__items.splice(0,1),e.__character_count-=1),!0}return!1},t.prototype.is_empty=function(){return 0===this.__items.length},t.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},t.prototype.push=function(e){this.__items.push(e);var t=e.lastIndexOf("\n");-1!==t?this.__character_count=e.length-t:this.__character_count+=e.length},t.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e},t.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},t.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},t.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),this.__character_count-=1},t.prototype.toString=function(){var e="";return this.is_empty()?this.__parent.indent_empty_lines&&(e=this.__parent.get_indent_string(this.__indent_count)):(e=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),e+=this.__items.join("")),e},n.prototype.get_indent_size=function(e,t){var n=this.__base_string_length;return t=t||0,e<0&&(n=0),n+=e*this.__indent_size,n+=t},n.prototype.get_indent_string=function(e,t){var n=this.__base_string;return t=t||0,e<0&&(e=0,n=""),t+=e*this.__indent_size,this.__ensure_cache(t),n+=this.__cache[t]},n.prototype.__ensure_cache=function(e){for(;e>=this.__cache.length;)this.__add_column()},n.prototype.__add_column=function(){var e=this.__cache.length,t=0,n="";this.__indent_size&&e>=this.__indent_size&&(e-=(t=Math.floor(e/this.__indent_size))*this.__indent_size,n=new Array(t+1).join(this.__indent_string)),e&&(n+=new Array(e+1).join(" ")),this.__cache.push(n)},i.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},i.prototype.get_line_number=function(){return this.__lines.length},i.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t)},i.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t)},i.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},i.prototype.add_new_line=function(e){return!(this.is_empty()||!e&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},i.prototype.get_code=function(e){this.trim(!0);var t=this.current_line.pop();t&&("\n"===t[t.length-1]&&(t=t.replace(/\n+$/g,"")),this.current_line.push(t)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==e&&(n=n.replace(/[\n]/g,e)),n},i.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},i.prototype.set_indent=function(e,t){return e=e||0,t=t||0,this.next_line.set_indent(e,t),this.__lines.length>1?(this.current_line.set_indent(e,t),!0):(this.current_line.set_indent(),!1)},i.prototype.add_raw_token=function(e){for(var t=0;t<e.newlines;t++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(e.whitespace_before),this.current_line.push(e.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},i.prototype.add_token=function(e){this.__add_space_before_token(),this.current_line.push(e),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},i.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},i.prototype.remove_indent=function(e){for(var t=this.__lines.length;e<t;)this.__lines[e]._remove_indent(),e++;this.current_line._remove_wrap_indent()},i.prototype.trim=function(e){for(e=void 0!==e&&e,this.current_line.trim();e&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},i.prototype.just_added_newline=function(){return this.current_line.is_empty()},i.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},i.prototype.ensure_empty_line_above=function(e,n){for(var i=this.__lines.length-2;i>=0;){var r=this.__lines[i];if(r.is_empty())break;if(0!==r.item(0).indexOf(e)&&r.item(-1)!==n){this.__lines.splice(i+1,0,new t(this)),this.previous_line=this.__lines[this.__lines.length-2];break}i--}},e.exports.Output=i},function(e){e.exports.Token=function(e,t,n,i){this.type=e,this.text=t,this.comments_before=null,this.newlines=n||0,this.whitespace_before=i||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}},,,function(e){function t(e,t){this.raw_options=n(e,t),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}function n(e,t){var n,r={};for(n in e=i(e))n!==t&&(r[n]=e[n]);if(t&&e[t])for(n in e[t])r[n]=e[t][n];return r}function i(e){var t,n={};for(t in e){n[t.replace(/-/g,"_")]=e[t]}return n}t.prototype._get_array=function(e,t){var n=this.raw_options[e],i=t||[];return"object"===typeof n?null!==n&&"function"===typeof n.concat&&(i=n.concat()):"string"===typeof n&&(i=n.split(/[^a-zA-Z0-9_\/\-]+/)),i},t.prototype._get_boolean=function(e,t){var n=this.raw_options[e];return void 0===n?!!t:!!n},t.prototype._get_characters=function(e,t){var n=this.raw_options[e],i=t||"";return"string"===typeof n&&(i=n.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),i},t.prototype._get_number=function(e,t){var n=this.raw_options[e];t=parseInt(t,10),isNaN(t)&&(t=0);var i=parseInt(n,10);return isNaN(i)&&(i=t),i},t.prototype._get_selection=function(e,t,n){var i=this._get_selection_list(e,t,n);if(1!==i.length)throw new Error("Invalid Option Value: The option '"+e+"' can only be one of the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return i[0]},t.prototype._get_selection_list=function(e,t,n){if(!t||0===t.length)throw new Error("Selection list cannot be empty.");if(n=n||[t[0]],!this._is_valid_selection(n,t))throw new Error("Invalid Default Value!");var i=this._get_array(e,n);if(!this._is_valid_selection(i,t))throw new Error("Invalid Option Value: The option '"+e+"' can contain only the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return i},t.prototype._is_valid_selection=function(e,t){return e.length&&t.length&&!e.some((function(e){return-1===t.indexOf(e)}))},e.exports.Options=t,e.exports.normalizeOpts=i,e.exports.mergeOpts=n},,function(e){var t=RegExp.prototype.hasOwnProperty("sticky");function n(e){this.__input=e||"",this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){this.__position>0&&(this.__position-=1)},n.prototype.hasNext=function(){return this.__position<this.__input_length},n.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__input.charAt(this.__position),this.__position+=1),e},n.prototype.peek=function(e){var t=null;return e=e||0,(e+=this.__position)>=0&&e<this.__input_length&&(t=this.__input.charAt(e)),t},n.prototype.__match=function(e,n){e.lastIndex=n;var i=e.exec(this.__input);return!i||t&&e.sticky||i.index!==n&&(i=null),i},n.prototype.test=function(e,t){return t=t||0,(t+=this.__position)>=0&&t<this.__input_length&&!!this.__match(e,t)},n.prototype.testChar=function(e,t){var n=this.peek(t);return e.lastIndex=0,null!==n&&e.test(n)},n.prototype.match=function(e){var t=this.__match(e,this.__position);return t?this.__position+=t[0].length:t=null,t},n.prototype.read=function(e,t,n){var i,r="";return e&&(i=this.match(e))&&(r+=i[0]),!t||!i&&e||(r+=this.readUntil(t,n)),r},n.prototype.readUntil=function(e,t){var n,i=this.__position;e.lastIndex=this.__position;var r=e.exec(this.__input);return r?(i=r.index,t&&(i+=r[0].length)):i=this.__input_length,n=this.__input.substring(this.__position,i),this.__position=i,n},n.prototype.readUntilAfter=function(e){return this.readUntil(e,!0)},n.prototype.get_regexp=function(e,n){var i=null,r="g";return n&&t&&(r="y"),"string"===typeof e&&""!==e?i=new RegExp(e,r):e&&(i=new RegExp(e.source,r)),i},n.prototype.get_literal_regexp=function(e){return RegExp(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},n.prototype.peekUntilAfter=function(e){var t=this.__position,n=this.readUntilAfter(e);return this.__position=t,n},n.prototype.lookBack=function(e){var t=this.__position-1;return t>=e.length&&this.__input.substring(t-e.length,t).toLowerCase()===e},e.exports.InputScanner=n},function(e,t,n){var i=n(8).InputScanner,r=n(3).Token,s=n(10).TokenStream,o=n(11).WhitespacePattern,a={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},l=function(e,t){this._input=new i(e),this._options=t||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new o(this._input)};l.prototype.tokenize=function(){var e;this._input.restart(),this.__tokens=new s,this._reset();for(var t=new r(a.START,""),n=null,i=[],o=new s;t.type!==a.EOF;){for(e=this._get_next_token(t,n);this._is_comment(e);)o.add(e),e=this._get_next_token(t,n);o.isEmpty()||(e.comments_before=o,o=new s),e.parent=n,this._is_opening(e)?(i.push(n),n=e):n&&this._is_closing(e,n)&&(e.opened=n,n.closed=e,n=i.pop(),e.parent=n),e.previous=t,t.next=e,this.__tokens.add(e),t=e}return this.__tokens},l.prototype._is_first_token=function(){return this.__tokens.isEmpty()},l.prototype._reset=function(){},l.prototype._get_next_token=function(e,t){this._readWhitespace();var n=this._input.read(/.+/g);return n?this._create_token(a.RAW,n):this._create_token(a.EOF,"")},l.prototype._is_comment=function(e){return!1},l.prototype._is_opening=function(e){return!1},l.prototype._is_closing=function(e,t){return!1},l.prototype._create_token=function(e,t){return new r(e,t,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token)},l.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},e.exports.Tokenizer=l,e.exports.TOKEN=a},function(e){function t(e){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=e}t.prototype.restart=function(){this.__position=0},t.prototype.isEmpty=function(){return 0===this.__tokens_length},t.prototype.hasNext=function(){return this.__position<this.__tokens_length},t.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__tokens[this.__position],this.__position+=1),e},t.prototype.peek=function(e){var t=null;return e=e||0,(e+=this.__position)>=0&&e<this.__tokens_length&&(t=this.__tokens[e]),t},t.prototype.add=function(e){this.__parent_token&&(e.parent=this.__parent_token),this.__tokens.push(e),this.__tokens_length+=1},e.exports.TokenStream=t},function(e,t,n){var i=n(12).Pattern;function r(e,t){i.call(this,e,t),t?this._line_regexp=this._input.get_regexp(t._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}r.prototype=new i,r.prototype.__set_whitespace_patterns=function(e,t){e+="\\t ",t+="\\n\\r",this._match_pattern=this._input.get_regexp("["+e+t+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+t+"]")},r.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var e=this._input.read(this._match_pattern);if(" "===e)this.whitespace_before_token=" ";else if(e){var t=this.__split(this._newline_regexp,e);this.newline_count=t.length-1,this.whitespace_before_token=t[this.newline_count]}return e},r.prototype.matching=function(e,t){var n=this._create();return n.__set_whitespace_patterns(e,t),n._update(),n},r.prototype._create=function(){return new r(this._input,this)},r.prototype.__split=function(e,t){e.lastIndex=0;for(var n=0,i=[],r=e.exec(t);r;)i.push(t.substring(n,r.index)),n=r.index+r[0].length,r=e.exec(t);return n<t.length?i.push(t.substring(n,t.length)):i.push(""),i},e.exports.WhitespacePattern=r},function(e){function t(e,t){this._input=e,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,t&&(this._starting_pattern=this._input.get_regexp(t._starting_pattern,!0),this._match_pattern=this._input.get_regexp(t._match_pattern,!0),this._until_pattern=this._input.get_regexp(t._until_pattern),this._until_after=t._until_after)}t.prototype.read=function(){var e=this._input.read(this._starting_pattern);return this._starting_pattern&&!e||(e+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),e},t.prototype.read_match=function(){return this._input.match(this._match_pattern)},t.prototype.until_after=function(e){var t=this._create();return t._until_after=!0,t._until_pattern=this._input.get_regexp(e),t._update(),t},t.prototype.until=function(e){var t=this._create();return t._until_after=!1,t._until_pattern=this._input.get_regexp(e),t._update(),t},t.prototype.starting_with=function(e){var t=this._create();return t._starting_pattern=this._input.get_regexp(e,!0),t._update(),t},t.prototype.matching=function(e){var t=this._create();return t._match_pattern=this._input.get_regexp(e,!0),t._update(),t},t.prototype._create=function(){return new t(this._input,this)},t.prototype._update=function(){},e.exports.Pattern=t},function(e){function t(e,t){e="string"===typeof e?e:e.source,t="string"===typeof t?t:t.source,this.__directives_block_pattern=new RegExp(e+/ beautify( \w+[:]\w+)+ /.source+t,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(e+/\sbeautify\signore:end\s/.source+t,"g")}t.prototype.get_directives=function(e){if(!e.match(this.__directives_block_pattern))return null;var t={};this.__directive_pattern.lastIndex=0;for(var n=this.__directive_pattern.exec(e);n;)t[n[1]]=n[2],n=this.__directive_pattern.exec(e);return t},t.prototype.readIgnored=function(e){return e.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.Directives=t},function(e,t,n){var i=n(12).Pattern,r={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function s(e,t){i.call(this,e,t),this.__template_pattern=null,this._disabled=Object.assign({},r),this._excluded=Object.assign({},r),t&&(this.__template_pattern=this._input.get_regexp(t.__template_pattern),this._excluded=Object.assign(this._excluded,t._excluded),this._disabled=Object.assign(this._disabled,t._disabled));var n=new i(e);this.__patterns={handlebars_comment:n.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:n.starting_with(/{{{/).until_after(/}}}/),handlebars:n.starting_with(/{{/).until_after(/}}/),php:n.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:n.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:n.starting_with(/{%/).until_after(/%}/),django_value:n.starting_with(/{{/).until_after(/}}/),django_comment:n.starting_with(/{#/).until_after(/#}/),smarty:n.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:n.starting_with(/{\*/).until_after(/\*}/),smarty_literal:n.starting_with(/{literal}/).until_after(/{\/literal}/)}}s.prototype=new i,s.prototype._create=function(){return new s(this._input,this)},s.prototype._update=function(){this.__set_templated_pattern()},s.prototype.disable=function(e){var t=this._create();return t._disabled[e]=!0,t._update(),t},s.prototype.read_options=function(e){var t=this._create();for(var n in r)t._disabled[n]=-1===e.templating.indexOf(n);return t._update(),t},s.prototype.exclude=function(e){var t=this._create();return t._excluded[e]=!0,t._update(),t},s.prototype.read=function(){var e="";e=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern);for(var t=this._read_template();t;)this._match_pattern?t+=this._input.read(this._match_pattern):t+=this._input.readUntil(this.__template_pattern),e+=t,t=this._read_template();return this._until_after&&(e+=this._input.readUntilAfter(this._until_pattern)),e},s.prototype.__set_templated_pattern=function(){var e=[];this._disabled.php||e.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||e.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||e.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(e.push(this.__patterns.django._starting_pattern.source),e.push(this.__patterns.django_value._starting_pattern.source),e.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||e.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&e.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+e.join("|")+")")},s.prototype._read_template=function(){var e="",t=this._input.peek();if("<"===t){var n=this._input.peek(1);this._disabled.php||this._excluded.php||"?"!==n||(e=e||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==n||(e=e||this.__patterns.erb.read())}else"{"===t&&(this._disabled.handlebars||this._excluded.handlebars||(e=(e=(e=e||this.__patterns.handlebars_comment.read())||this.__patterns.handlebars_unescaped.read())||this.__patterns.handlebars.read()),this._disabled.django||(this._excluded.django||this._excluded.handlebars||(e=e||this.__patterns.django_value.read()),this._excluded.django||(e=(e=e||this.__patterns.django_comment.read())||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(e=(e=(e=e||this.__patterns.smarty_comment.read())||this.__patterns.smarty_literal.read())||this.__patterns.smarty.read()));return e},e.exports.TemplatablePattern=s},,,,function(e,t,n){var i=n(19).Beautifier,r=n(20).Options;e.exports=function(e,t,n,r){return new i(e,t,n,r).beautify()},e.exports.defaultOptions=function(){return new r}},function(e,t,n){var i=n(20).Options,r=n(2).Output,s=n(21).Tokenizer,o=n(21).TOKEN,a=/\r\n|[\r\n]/,l=/\r\n|[\r\n]/g,h=function(e,t){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=e.max_preserve_newlines,this.preserve_newlines=e.preserve_newlines,this._output=new r(e,t)};h.prototype.current_line_has_match=function(e){return this._output.current_line.has_match(e)},h.prototype.set_space_before_token=function(e,t){this._output.space_before_token=e,this._output.non_breaking_space=t},h.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},h.prototype.add_raw_token=function(e){this._output.add_raw_token(e)},h.prototype.print_preserved_newlines=function(e){var t=0;e.type!==o.TEXT&&e.previous.type!==o.TEXT&&(t=e.newlines?1:0),this.preserve_newlines&&(t=e.newlines<this.max_preserve_newlines+1?e.newlines:this.max_preserve_newlines+1);for(var n=0;n<t;n++)this.print_newline(n>0);return 0!==t},h.prototype.traverse_whitespace=function(e){return!(!e.whitespace_before&&!e.newlines)&&(this.print_preserved_newlines(e)||(this._output.space_before_token=!0),!0)},h.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},h.prototype.print_newline=function(e){this._output.add_new_line(e)},h.prototype.print_token=function(e){e.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(e.text))},h.prototype.indent=function(){this.indent_level++},h.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},h.prototype.get_full_indent=function(e){return(e=this.indent_level+(e||0))<1?"":this._output.get_indent_string(e)};var c=function(e,t){var n=null,i=null;return t.closed?("script"===e?n="text/javascript":"style"===e&&(n="text/css"),n=function(e){for(var t=null,n=e.next;n.type!==o.EOF&&e.closed!==n;){if(n.type===o.ATTRIBUTE&&"type"===n.text){n.next&&n.next.type===o.EQUALS&&n.next.next&&n.next.next.type===o.VALUE&&(t=n.next.next.text);break}n=n.next}return t}(t)||n,n.search("text/css")>-1?i="css":n.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?i="javascript":n.search(/(text|application|dojo)\/(x-)?(html)/)>-1?i="html":n.search(/test\/null/)>-1&&(i="null"),i):null};function d(e,t){return-1!==t.indexOf(e)}function u(e,t,n){this.parent=e||null,this.tag=t?t.tag_name:"",this.indent_level=n||0,this.parser_token=t||null}function g(e){this._printer=e,this._current_frame=null}function f(e,t,n,r){this._source_text=e||"",t=t||{},this._js_beautify=n,this._css_beautify=r,this._tag_stack=null;var s=new i(t,"html");this._options=s,this._is_wrap_attributes_force="force"===this._options.wrap_attributes.substr(0,5),this._is_wrap_attributes_force_expand_multiline="force-expand-multiline"===this._options.wrap_attributes,this._is_wrap_attributes_force_aligned="force-aligned"===this._options.wrap_attributes,this._is_wrap_attributes_aligned_multiple="aligned-multiple"===this._options.wrap_attributes,this._is_wrap_attributes_preserve="preserve"===this._options.wrap_attributes.substr(0,8),this._is_wrap_attributes_preserve_aligned="preserve-aligned"===this._options.wrap_attributes}g.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},g.prototype.record_tag=function(e){var t=new u(this._current_frame,e,this._printer.indent_level);this._current_frame=t},g.prototype._try_pop_frame=function(e){var t=null;return e&&(t=e.parser_token,this._printer.indent_level=e.indent_level,this._current_frame=e.parent),t},g.prototype._get_frame=function(e,t){for(var n=this._current_frame;n&&-1===e.indexOf(n.tag);){if(t&&-1!==t.indexOf(n.tag)){n=null;break}n=n.parent}return n},g.prototype.try_pop=function(e,t){var n=this._get_frame([e],t);return this._try_pop_frame(n)},g.prototype.indent_to_tag=function(e){var t=this._get_frame(e);t&&(this._printer.indent_level=t.indent_level)},f.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._source_text,t=this._options.eol;"auto"===this._options.eol&&(t="\n",e&&a.test(e)&&(t=e.match(a)[0]));var n=(e=e.replace(l,"\n")).match(/^[\t ]*/)[0],i={text:"",type:""},r=new m,c=new h(this._options,n),d=new s(e,this._options).tokenize();this._tag_stack=new g(c);for(var u=null,f=d.next();f.type!==o.EOF;)f.type===o.TAG_OPEN||f.type===o.COMMENT?r=u=this._handle_tag_open(c,f,r,i,d):f.type===o.ATTRIBUTE||f.type===o.EQUALS||f.type===o.VALUE||f.type===o.TEXT&&!r.tag_complete?u=this._handle_inside_tag(c,f,r,i):f.type===o.TAG_CLOSE?u=this._handle_tag_close(c,f,r):f.type===o.TEXT?u=this._handle_text(c,f,r):f.type===o.CONTROL_FLOW_OPEN?u=this._handle_control_flow_open(c,f):f.type===o.CONTROL_FLOW_CLOSE?u=this._handle_control_flow_close(c,f):c.add_raw_token(f),i=u,f=d.next();return c._output.get_code(t)},f.prototype._handle_control_flow_open=function(e,t){var n={text:t.text,type:t.type};return e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),t.newlines?e.print_preserved_newlines(t):e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),e.print_token(t),e.indent(),n},f.prototype._handle_control_flow_close=function(e,t){var n={text:t.text,type:t.type};return e.deindent(),t.newlines?e.print_preserved_newlines(t):e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),e.print_token(t),n},f.prototype._handle_tag_close=function(e,t,n){var i={text:t.text,type:t.type};return e.alignment_size=0,n.tag_complete=!0,e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),n.is_unformatted?e.add_raw_token(t):("<"===n.tag_start_char&&(e.set_space_before_token("/"===t.text[0],!0),this._is_wrap_attributes_force_expand_multiline&&n.has_wrapped_attrs&&e.print_newline(!1)),e.print_token(t)),!n.indent_content||n.is_unformatted||n.is_content_unformatted||(e.indent(),n.indent_content=!1),n.is_inline_element||n.is_unformatted||n.is_content_unformatted||e.set_wrap_point(),i},f.prototype._handle_inside_tag=function(e,t,n,i){var r=n.has_wrapped_attrs,s={text:t.text,type:t.type};return e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),n.is_unformatted?e.add_raw_token(t):"{"===n.tag_start_char&&t.type===o.TEXT?e.print_preserved_newlines(t)?(t.newlines=0,e.add_raw_token(t)):e.print_token(t):(t.type===o.ATTRIBUTE?e.set_space_before_token(!0):(t.type===o.EQUALS||t.type===o.VALUE&&t.previous.type===o.EQUALS)&&e.set_space_before_token(!1),t.type===o.ATTRIBUTE&&"<"===n.tag_start_char&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(e.traverse_whitespace(t),r=r||0!==t.newlines),this._is_wrap_attributes_force&&n.attr_count>=this._options.wrap_attributes_min_attrs&&(i.type!==o.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(e.print_newline(!1),r=!0)),e.print_token(t),r=r||e.previous_token_wrapped(),n.has_wrapped_attrs=r),s},f.prototype._handle_text=function(e,t,n){var i={text:t.text,type:"TK_CONTENT"};return n.custom_beautifier_name?this._print_custom_beatifier_text(e,t,n):n.is_unformatted||n.is_content_unformatted?e.add_raw_token(t):(e.traverse_whitespace(t),e.print_token(t)),i},f.prototype._print_custom_beatifier_text=function(e,t,n){var i=this;if(""!==t.text){var r,s=t.text,o=1,a="",l="";"javascript"===n.custom_beautifier_name&&"function"===typeof this._js_beautify?r=this._js_beautify:"css"===n.custom_beautifier_name&&"function"===typeof this._css_beautify?r=this._css_beautify:"html"===n.custom_beautifier_name&&(r=function(e,t){return new f(e,t,i._js_beautify,i._css_beautify).beautify()}),"keep"===this._options.indent_scripts?o=0:"separate"===this._options.indent_scripts&&(o=-e.indent_level);var h=e.get_full_indent(o);if(s=s.replace(/\n[ \t]*$/,""),"html"!==n.custom_beautifier_name&&"<"===s[0]&&s.match(/^(<!--|<!\[CDATA\[)/)){var c=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(s);if(!c)return void e.add_raw_token(t);a=h+c[1]+"\n",s=c[4],c[5]&&(l=h+c[5]),s=s.replace(/\n[ \t]*$/,""),(c[2]||-1!==c[3].indexOf("\n"))&&(c=c[3].match(/[ \t]+$/))&&(t.whitespace_before=c[0])}if(s)if(r){var d=function(){this.eol="\n"};d.prototype=this._options.raw_options,s=r(h+s,new d)}else{var u=t.whitespace_before;u&&(s=s.replace(new RegExp("\n("+u+")?","g"),"\n")),s=h+s.replace(/\n/g,"\n"+h)}a&&(s=s?a+s+"\n"+l:a+l),e.print_newline(!1),s&&(t.text=s,t.whitespace_before="",t.newlines=0,e.add_raw_token(t),e.print_newline(!0))}},f.prototype._handle_tag_open=function(e,t,n,i,r){var s=this._get_tag_open_token(t);if(!n.is_unformatted&&!n.is_content_unformatted||n.is_empty_element||t.type!==o.TAG_OPEN||s.is_start_tag?(e.traverse_whitespace(t),this._set_tag_position(e,t,s,n,i),s.is_inline_element||e.set_wrap_point(),e.print_token(t)):(e.add_raw_token(t),s.start_tag_token=this._tag_stack.try_pop(s.tag_name)),s.is_start_tag&&this._is_wrap_attributes_force){var a,l=0;do{(a=r.peek(l)).type===o.ATTRIBUTE&&(s.attr_count+=1),l+=1}while(a.type!==o.EOF&&a.type!==o.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(s.alignment_size=t.text.length+1),s.tag_complete||s.is_unformatted||(e.alignment_size=s.alignment_size),s};var m=function(e,t){if(this.parent=e||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",t){var n;this.tag_start_char=t.text[0],this.text=t.text,"<"===this.tag_start_char?(n=t.text.match(/^<([^\s>]*)/),this.tag_check=n?n[1]:""):(n=t.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=n?n[1]:"",(t.text.startsWith("{{#>")||t.text.startsWith("{{~#>"))&&">"===this.tag_check[0]&&(">"===this.tag_check&&null!==t.next?this.tag_check=t.next.text.split(" ")[0]:this.tag_check=t.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),t.type===o.COMMENT&&(this.tag_complete=!0),this.is_start_tag="/"!==this.tag_check.charAt(0),this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||t.closed&&"/>"===t.closed.text;var i=2;"{"===this.tag_start_char&&this.text.length>=3&&"~"===this.text.charAt(2)&&(i=3),this.is_end_tag=this.is_end_tag||"{"===this.tag_start_char&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(i)))}else this.tag_complete=!0};f.prototype._get_tag_open_token=function(e){var t=new m(this._tag_stack.get_parser_token(),e);return t.alignment_size=this._options.wrap_attributes_indent_size,t.is_end_tag=t.is_end_tag||d(t.tag_check,this._options.void_elements),t.is_empty_element=t.tag_complete||t.is_start_tag&&t.is_end_tag,t.is_unformatted=!t.tag_complete&&d(t.tag_check,this._options.unformatted),t.is_content_unformatted=!t.is_empty_element&&d(t.tag_check,this._options.content_unformatted),t.is_inline_element=d(t.tag_name,this._options.inline)||this._options.inline_custom_elements&&t.tag_name.includes("-")||"{"===t.tag_start_char,t},f.prototype._set_tag_position=function(e,t,n,i,r){if(n.is_empty_element||(n.is_end_tag?n.start_tag_token=this._tag_stack.try_pop(n.tag_name):(this._do_optional_end_element(n)&&(n.is_inline_element||e.print_newline(!1)),this._tag_stack.record_tag(n),"script"!==n.tag_name&&"style"!==n.tag_name||n.is_unformatted||n.is_content_unformatted||(n.custom_beautifier_name=c(n.tag_check,t)))),d(n.tag_check,this._options.extra_liners)&&(e.print_newline(!1),e._output.just_added_blankline()||e.print_newline(!0)),n.is_empty_element){if("{"===n.tag_start_char&&"else"===n.tag_check)this._tag_stack.indent_to_tag(["if","unless","each"]),n.indent_content=!0,e.current_line_has_match(/{{#if/)||e.print_newline(!1);"!--"===n.tag_name&&r.type===o.TAG_CLOSE&&i.is_end_tag&&-1===n.text.indexOf("\n")||(n.is_inline_element||n.is_unformatted||e.print_newline(!1),this._calcluate_parent_multiline(e,n))}else if(n.is_end_tag){var s=!1;s=(s=n.start_tag_token&&n.start_tag_token.multiline_content)||!n.is_inline_element&&!(i.is_inline_element||i.is_unformatted)&&!(r.type===o.TAG_CLOSE&&n.start_tag_token===i)&&"TK_CONTENT"!==r.type,(n.is_content_unformatted||n.is_unformatted)&&(s=!1),s&&e.print_newline(!1)}else n.indent_content=!n.custom_beautifier_name,"<"===n.tag_start_char&&("html"===n.tag_name?n.indent_content=this._options.indent_inner_html:"head"===n.tag_name?n.indent_content=this._options.indent_head_inner_html:"body"===n.tag_name&&(n.indent_content=this._options.indent_body_inner_html)),n.is_inline_element||n.is_unformatted||"TK_CONTENT"===r.type&&!n.is_content_unformatted||e.print_newline(!1),this._calcluate_parent_multiline(e,n)},f.prototype._calcluate_parent_multiline=function(e,t){!t.parent||!e._output.just_added_newline()||(t.is_inline_element||t.is_unformatted)&&t.parent.is_inline_element||(t.parent.multiline_content=!0)};var p=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","menu","nav","ol","p","pre","section","table","ul"],_=["a","audio","del","ins","map","noscript","video"];f.prototype._do_optional_end_element=function(e){var t=null;if(!e.is_empty_element&&e.is_start_tag&&e.parent){if("body"===e.tag_name)t=t||this._tag_stack.try_pop("head");else if("li"===e.tag_name)t=t||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if("dd"===e.tag_name||"dt"===e.tag_name)t=(t=t||this._tag_stack.try_pop("dt",["dl"]))||this._tag_stack.try_pop("dd",["dl"]);else if("p"===e.parent.tag_name&&-1!==p.indexOf(e.tag_name)){var n=e.parent.parent;n&&-1!==_.indexOf(n.tag_name)||(t=t||this._tag_stack.try_pop("p"))}else"rp"===e.tag_name||"rt"===e.tag_name?t=(t=t||this._tag_stack.try_pop("rt",["ruby","rtc"]))||this._tag_stack.try_pop("rp",["ruby","rtc"]):"optgroup"===e.tag_name?t=t||this._tag_stack.try_pop("optgroup",["select"]):"option"===e.tag_name?t=t||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):"colgroup"===e.tag_name?t=t||this._tag_stack.try_pop("caption",["table"]):"thead"===e.tag_name?t=(t=t||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]):"tbody"===e.tag_name||"tfoot"===e.tag_name?t=(t=(t=(t=t||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]))||this._tag_stack.try_pop("thead",["table"]))||this._tag_stack.try_pop("tbody",["table"]):"tr"===e.tag_name?t=(t=(t=t||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]))||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"]):"th"!==e.tag_name&&"td"!==e.tag_name||(t=(t=t||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]))||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return e.parent=this._tag_stack.get_parser_token(),t}},e.exports.Beautifier=f},function(e,t,n){var i=n(6).Options;function r(e){i.call(this,e,"html"),1===this.templating.length&&"auto"===this.templating[0]&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_min_attrs=this._get_number("wrap_attributes_min_attrs",2),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.inline_custom_elements=this._get_boolean("inline_custom_elements",!0),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}r.prototype=new i,e.exports.Options=r},function(e,t,n){var i=n(9).Tokenizer,r=n(9).TOKEN,s=n(13).Directives,o=n(14).TemplatablePattern,a=n(12).Pattern,l={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",CONTROL_FLOW_OPEN:"TK_CONTROL_FLOW_OPEN",CONTROL_FLOW_CLOSE:"TK_CONTROL_FLOW_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:r.START,RAW:r.RAW,EOF:r.EOF},h=new s(/<\!--/,/-->/),c=function(e,t){i.call(this,e,t),this._current_tag_name="";var n=new o(this._input).read_options(this._options),r=new a(this._input);if(this.__patterns={word:n.until(/[\n\r\t <]/),word_control_flow_close_excluded:n.until(/[\n\r\t <}]/),single_quote:n.until_after(/'/),double_quote:n.until_after(/"/),attribute:n.until(/[\n\r\t =>]|\/>/),element_name:n.until(/[\n\r\t >\/]/),angular_control_flow_start:r.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:r.starting_with(/{{!--/).until_after(/--}}/),handlebars:r.starting_with(/{{/).until_after(/}}/),handlebars_open:r.until(/[\n\r\t }]/),handlebars_raw_close:r.until(/}}/),comment:r.starting_with(/<!--/).until_after(/-->/),cdata:r.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:r.starting_with(/<!\[/).until_after(/]>/),processing:r.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars"),this.__patterns.word_control_flow_close_excluded=this.__patterns.word_control_flow_close_excluded.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var s=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=r.matching(s).until_after(s)}};(c.prototype=new i)._is_comment=function(e){return!1},c.prototype._is_opening=function(e){return e.type===l.TAG_OPEN||e.type===l.CONTROL_FLOW_OPEN},c.prototype._is_closing=function(e,t){return e.type===l.TAG_CLOSE&&t&&((">"===e.text||"/>"===e.text)&&"<"===t.text[0]||"}}"===e.text&&"{"===t.text[0]&&"{"===t.text[1])||e.type===l.CONTROL_FLOW_CLOSE&&"}"===e.text&&t.text.endsWith("{")},c.prototype._reset=function(){this._current_tag_name=""},c.prototype._get_next_token=function(e,t){var n=null;this._readWhitespace();var i=this._input.peek();return null===i?this._create_token(l.EOF,""):n=(n=(n=(n=(n=(n=(n=(n=(n=(n=n||this._read_open_handlebars(i,t))||this._read_attribute(i,e,t))||this._read_close(i,t))||this._read_control_flows(i,t))||this._read_raw_content(i,e,t))||this._read_content_word(i,t))||this._read_comment_or_cdata(i))||this._read_processing(i))||this._read_open(i,t))||this._create_token(l.UNKNOWN,this._input.next())},c.prototype._read_comment_or_cdata=function(e){var t=null,n=null,i=null;"<"===e&&("!"===this._input.peek(1)&&((n=this.__patterns.comment.read())?(i=h.get_directives(n))&&"start"===i.ignore&&(n+=h.readIgnored(this._input)):n=this.__patterns.cdata.read()),n&&((t=this._create_token(l.COMMENT,n)).directives=i));return t},c.prototype._read_processing=function(e){var t=null,n=null;if("<"===e){var i=this._input.peek(1);"!"!==i&&"?"!==i||(n=(n=this.__patterns.conditional_comment.read())||this.__patterns.processing.read()),n&&((t=this._create_token(l.COMMENT,n)).directives=null)}return t},c.prototype._read_open=function(e,t){var n=null,i=null;return t&&t.type!==l.CONTROL_FLOW_OPEN||"<"===e&&(n=this._input.next(),"/"===this._input.peek()&&(n+=this._input.next()),n+=this.__patterns.element_name.read(),i=this._create_token(l.TAG_OPEN,n)),i},c.prototype._read_open_handlebars=function(e,t){var n=null,i=null;return t&&t.type!==l.CONTROL_FLOW_OPEN||this._options.indent_handlebars&&"{"===e&&"{"===this._input.peek(1)&&("!"===this._input.peek(2)?(n=(n=this.__patterns.handlebars_comment.read())||this.__patterns.handlebars.read(),i=this._create_token(l.COMMENT,n)):(n=this.__patterns.handlebars_open.read(),i=this._create_token(l.TAG_OPEN,n))),i},c.prototype._read_control_flows=function(e,t){var n="",i=null;if(!this._options.templating.includes("angular")||!this._options.indent_handlebars)return i;if("@"===e){if(""===(n=this.__patterns.angular_control_flow_start.read()))return i;for(var r=n.endsWith("(")?1:0,s=0;!n.endsWith("{")||r!==s;){var o=this._input.next();if(null===o)break;"("===o?r++:")"===o&&s++,n+=o}i=this._create_token(l.CONTROL_FLOW_OPEN,n)}else"}"===e&&t&&t.type===l.CONTROL_FLOW_OPEN&&(n=this._input.next(),i=this._create_token(l.CONTROL_FLOW_CLOSE,n));return i},c.prototype._read_close=function(e,t){var n=null,i=null;return t&&t.type===l.TAG_OPEN&&("<"===t.text[0]&&(">"===e||"/"===e&&">"===this._input.peek(1))?(n=this._input.next(),"/"===e&&(n+=this._input.next()),i=this._create_token(l.TAG_CLOSE,n)):"{"===t.text[0]&&"}"===e&&"}"===this._input.peek(1)&&(this._input.next(),this._input.next(),i=this._create_token(l.TAG_CLOSE,"}}"))),i},c.prototype._read_attribute=function(e,t,n){var i=null,r="";if(n&&"<"===n.text[0])if("="===e)i=this._create_token(l.EQUALS,this._input.next());else if('"'===e||"'"===e){var s=this._input.next();s+='"'===e?this.__patterns.double_quote.read():this.__patterns.single_quote.read(),i=this._create_token(l.VALUE,s)}else(r=this.__patterns.attribute.read())&&(i=t.type===l.EQUALS?this._create_token(l.VALUE,r):this._create_token(l.ATTRIBUTE,r));return i},c.prototype._is_content_unformatted=function(e){return-1===this._options.void_elements.indexOf(e)&&(-1!==this._options.content_unformatted.indexOf(e)||-1!==this._options.unformatted.indexOf(e))},c.prototype._read_raw_content=function(e,t,n){var i="";if(n&&"{"===n.text[0])i=this.__patterns.handlebars_raw_close.read();else if(t.type===l.TAG_CLOSE&&"<"===t.opened.text[0]&&"/"!==t.text[0]){var r=t.opened.text.substr(1).toLowerCase();if("script"===r||"style"===r){var s=this._read_comment_or_cdata(e);if(s)return s.type=l.TEXT,s;i=this._input.readUntil(new RegExp("</"+r+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(r)&&(i=this._input.readUntil(new RegExp("</"+r+"[\\n\\r\\t ]*?>","ig")))}return i?this._create_token(l.TEXT,i):null},c.prototype._read_content_word=function(e,t){var n="";if(this._options.unformatted_content_delimiter&&e===this._options.unformatted_content_delimiter[0]&&(n=this.__patterns.unformatted_content_delimiter.read()),n||(n=t&&t.type===l.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),n)return this._create_token(l.TEXT,n)},e.exports.Tokenizer=c,e.exports.TOKEN=l}],t={};var n=function n(i){var r=t[i];if(void 0!==r)return r.exports;var s=t[i]={exports:{}};return e[i](s,s.exports,n),s.exports}(18);qn=n}(),(()=>{var e={470:e=>{function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,i="",r=0,s=-1,o=0,a=0;a<=e.length;++a){if(a<e.length)n=e.charCodeAt(a);else{if(47===n)break;n=47}if(47===n){if(s===a-1||1===o);else if(s!==a-1&&2===o){if(i.length<2||2!==r||46!==i.charCodeAt(i.length-1)||46!==i.charCodeAt(i.length-2))if(i.length>2){var l=i.lastIndexOf("/");if(l!==i.length-1){-1===l?(i="",r=0):r=(i=i.slice(0,l)).length-1-i.lastIndexOf("/"),s=a,o=0;continue}}else if(2===i.length||1===i.length){i="",r=0,s=a,o=0;continue}t&&(i.length>0?i+="/..":i="..",r=2)}else i.length>0?i+="/"+e.slice(s+1,a):i=e.slice(s+1,a),r=a-s-1;s=a,o=0}else 46===n&&-1!==o?++o:o=-1}return i}var i={resolve:function(){for(var e,i="",r=!1,s=arguments.length-1;s>=-1&&!r;s--){var o;s>=0?o=arguments[s]:(void 0===e&&(e=process.cwd()),o=e),t(o),0!==o.length&&(i=o+"/"+i,r=47===o.charCodeAt(0))}return i=n(i,!r),r?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(e){if(t(e),0===e.length)return".";var i=47===e.charCodeAt(0),r=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!i)).length||i||(e="."),e.length>0&&r&&(e+="/"),i?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n<arguments.length;++n){var r=arguments[n];t(r),r.length>0&&(void 0===e?e=r:e+="/"+r)}return void 0===e?".":i.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n)return"";if((e=i.resolve(e))===(n=i.resolve(n)))return"";for(var r=1;r<e.length&&47===e.charCodeAt(r);++r);for(var s=e.length,o=s-r,a=1;a<n.length&&47===n.charCodeAt(a);++a);for(var l=n.length-a,h=o<l?o:l,c=-1,d=0;d<=h;++d){if(d===h){if(l>h){if(47===n.charCodeAt(a+d))return n.slice(a+d+1);if(0===d)return n.slice(a+d)}else o>h&&(47===e.charCodeAt(r+d)?c=d:0===d&&(c=0));break}var u=e.charCodeAt(r+d);if(u!==n.charCodeAt(a+d))break;47===u&&(c=d)}var g="";for(d=r+c+1;d<=s;++d)d!==s&&47!==e.charCodeAt(d)||(0===g.length?g+="..":g+="/..");return g.length>0?g+n.slice(a+c):(a+=c,47===n.charCodeAt(a)&&++a,n.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),i=47===n,r=-1,s=!0,o=e.length-1;o>=1;--o)if(47===(n=e.charCodeAt(o))){if(!s){r=o;break}}else s=!1;return-1===r?i?"/":".":i&&1===r?"//":e.slice(0,r)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');t(e);var i,r=0,s=-1,o=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var a=n.length-1,l=-1;for(i=e.length-1;i>=0;--i){var h=e.charCodeAt(i);if(47===h){if(!o){r=i+1;break}}else-1===l&&(o=!1,l=i+1),a>=0&&(h===n.charCodeAt(a)?-1==--a&&(s=i):(a=-1,s=l))}return r===s?s=l:-1===s&&(s=e.length),e.slice(r,s)}for(i=e.length-1;i>=0;--i)if(47===e.charCodeAt(i)){if(!o){r=i+1;break}}else-1===s&&(o=!1,s=i+1);return-1===s?"":e.slice(r,s)},extname:function(e){t(e);for(var n=-1,i=0,r=-1,s=!0,o=0,a=e.length-1;a>=0;--a){var l=e.charCodeAt(a);if(47!==l)-1===r&&(s=!1,r=a+1),46===l?-1===n?n=a:1!==o&&(o=1):-1!==n&&(o=-1);else if(!s){i=a+1;break}}return-1===n||-1===r||0===o||1===o&&n===r-1&&n===i+1?"":e.slice(n,r)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,i=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+i:n+"/"+i:i}(0,e)},parse:function(e){t(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var i,r=e.charCodeAt(0),s=47===r;s?(n.root="/",i=1):i=0;for(var o=-1,a=0,l=-1,h=!0,c=e.length-1,d=0;c>=i;--c)if(47!==(r=e.charCodeAt(c)))-1===l&&(h=!1,l=c+1),46===r?-1===o?o=c:1!==d&&(d=1):-1!==o&&(d=-1);else if(!h){a=c+1;break}return-1===o||-1===l||0===d||1===d&&o===l-1&&o===a+1?-1!==l&&(n.base=n.name=0===a&&s?e.slice(1,l):e.slice(a,l)):(0===a&&s?(n.name=e.slice(1,o),n.base=e.slice(1,l)):(n.name=e.slice(a,o),n.base=e.slice(a,l)),n.ext=e.slice(o,l)),a>0?n.dir=e.slice(0,a-1):s&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};i.posix=i,e.exports=i}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var s=t[i]={exports:{}};return e[i](s,s.exports,n),s.exports}n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};(()=>{let e;if(n.r(i),n.d(i,{URI:()=>c,Utils:()=>C}),"object"==typeof process)e="win32"===process.platform;else if("object"==typeof navigator){let t=navigator.userAgent;e=t.indexOf("Windows")>=0}const t=/^\w[\w\d+.-]*$/,r=/^\//,s=/^\/\//;function o(e,n){if(!e.scheme&&n)throw new 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 new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!r.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(s.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}const a="",l="/",h=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class c{static isUri(e){return e instanceof c||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString}scheme;authority;path;query;fragment;constructor(e,t,n,i,r,s=!1){"object"==typeof e?(this.scheme=e.scheme||a,this.authority=e.authority||a,this.path=e.path||a,this.query=e.query||a,this.fragment=e.fragment||a):(this.scheme=function(e,t){return e||t?e:"file"}(e,s),this.authority=t||a,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==l&&(t=l+t):t=l}return t}(this.scheme,n||a),this.query=i||a,this.fragment=r||a,o(this,s))}get fsPath(){return p(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:i,query:r,fragment:s}=e;return void 0===t?t=this.scheme:null===t&&(t=a),void 0===n?n=this.authority:null===n&&(n=a),void 0===i?i=this.path:null===i&&(i=a),void 0===r?r=this.query:null===r&&(r=a),void 0===s?s=this.fragment:null===s&&(s=a),t===this.scheme&&n===this.authority&&i===this.path&&r===this.query&&s===this.fragment?this:new u(t,n,i,r,s)}static parse(e,t=!1){const n=h.exec(e);return n?new u(n[2]||a,w(n[4]||a),w(n[5]||a),w(n[7]||a),w(n[9]||a),t):new u(a,a,a,a,a)}static file(t){let n=a;if(e&&(t=t.replace(/\\/g,l)),t[0]===l&&t[1]===l){const e=t.indexOf(l,2);-1===e?(n=t.substring(2),t=l):(n=t.substring(2,e),t=t.substring(e)||l)}return new u("file",n,t,a,a)}static from(e){const t=new u(e.scheme,e.authority,e.path,e.query,e.fragment);return o(t,!0),t}toString(e=!1){return _(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof c)return e;{const t=new u(e);return t._formatted=e.external,t._fsPath=e._sep===d?e.fsPath:null,t}}return e}}const d=e?1:void 0;class u extends c{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=p(this,!1)),this._fsPath}toString(e=!1){return e?_(this,!0):(this._formatted||(this._formatted=_(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=d),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}}const g={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 i,r=-1;for(let s=0;s<e.length;s++){const o=e.charCodeAt(s);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o||n&&91===o||n&&93===o||n&&58===o)-1!==r&&(i+=encodeURIComponent(e.substring(r,s)),r=-1),void 0!==i&&(i+=e.charAt(s));else{void 0===i&&(i=e.substr(0,s));const t=g[o];void 0!==t?(-1!==r&&(i+=encodeURIComponent(e.substring(r,s)),r=-1),i+=t):-1===r&&(r=s)}}return-1!==r&&(i+=encodeURIComponent(e.substring(r))),void 0!==i?i:e}function m(e){let t;for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);35===i||63===i?(void 0===t&&(t=e.substr(0,n)),t+=g[i]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function p(t,n){let i;return i=t.authority&&t.path.length>1&&"file"===t.scheme?`//${t.authority}${t.path}`:47===t.path.charCodeAt(0)&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&58===t.path.charCodeAt(2)?n?t.path.substr(1):t.path[1].toLowerCase()+t.path.substr(2):t.path,e&&(i=i.replace(/\//g,"\\")),i}function _(e,t){const n=t?m:f;let i="",{scheme:r,authority:s,path:o,query:a,fragment:h}=e;if(r&&(i+=r,i+=":"),(s||"file"===r)&&(i+=l,i+=l),s){let e=s.indexOf("@");if(-1!==e){const t=s.substr(0,e);s=s.substr(e+1),e=t.lastIndexOf(":"),-1===e?i+=n(t,!1,!1):(i+=n(t.substr(0,e),!1,!1),i+=":",i+=n(t.substr(e+1),!1,!0)),i+="@"}s=s.toLowerCase(),e=s.lastIndexOf(":"),-1===e?i+=n(s,!1,!0):(i+=n(s.substr(0,e),!1,!0),i+=s.substr(e))}if(o){if(o.length>=3&&47===o.charCodeAt(0)&&58===o.charCodeAt(2)){const e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&58===o.charCodeAt(1)){const e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}i+=n(o,!0,!1)}return a&&(i+="?",i+=n(a,!1,!1)),h&&(i+="#",i+=t?h:f(h,!1,!1)),i}function b(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+b(e.substr(3)):e}}const v=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function w(e){return e.match(v)?e.replace(v,(e=>b(e))):e}var k=n(470);const y=k.posix||k,T="/";var C,S;(S=C||(C={})).joinPath=function(e,...t){return e.with({path:y.join(e.path,...t)})},S.resolvePath=function(e,...t){let n=e.path,i=!1;n[0]!==T&&(n=T+n,i=!0);let r=y.resolve(n,...t);return i&&r[0]===T&&!e.authority&&(r=r.substring(1)),e.with({path:r})},S.dirname=function(e){if(0===e.path.length||e.path===T)return e;let t=y.dirname(e.path);return 1===t.length&&46===t.charCodeAt(0)&&(t=""),e.with({path:t})},S.basename=function(e){return y.basename(e.path)},S.extname=function(e){return y.extname(e.path)}})(),Vn=i})();var{URI:Jn,Utils:Zn}=Vn;function ei(e){const t=e[0];return t!==e[e.length-1]||"'"!==t&&'"'!==t||(e=e.substring(1,e.length-1)),e}function ti(e,t,n,i,r,s){const o=ei(n);if(a=o,l=e.languageId,!a.length||"handlebars"===l&&/{{|}}/.test(a)||!/\b(w[\w\d+.-]*:\/\/)?[^\s()<>]+(?:\([\w\d]+\)|([^[:punct:]\s]|\/?))/.test(a))return;var a,l;o.length<n.length&&(i++,r--);const h=function(e,t,n,i){if(/^\s*javascript\:/i.test(t)||/[\n\r]/.test(t))return;const r=(t=t.replace(/^\s*/g,"")).match(/^(\w[\w\d+.-]*):/);if(r){const e=r[1].toLowerCase();return"http"===e||"https"===e||"file"===e?t:void 0}if(/^\#/i.test(t))return e+t;if(/^\/\//i.test(t))return(_n(e,"https://")?"https":"http")+":"+t.replace(/^\s*/g,"");return n?n.resolveReference(t,i||e):t}(e.uri,o,t,s);if(!h)return;const c=function(e,t){try{let n=Jn.parse(e);return"file"===n.scheme&&n.query&&(n=n.with({query:null}),e=n.toString(!0)),"file"!==n.scheme||!n.fragment||e.startsWith(t.uri)&&e.charCodeAt(t.uri.length)===ni?e:n.with({fragment:null}).toString(!0)}catch(n){return}}(h,e);return{range:m.create(e.positionAt(i),e.positionAt(r)),target:c}}var ni="#".charCodeAt(0);var ii=class{constructor(e){this.dataManager=e}findDocumentLinks(e,t){const n=[],i=un(e.getText(),0);let r,s,o,a=i.scan(),l=!1;const h={};for(;a!==Pt.EOS;){switch(a){case Pt.StartTag:s=i.getTokenText().toLowerCase(),o||(l="base"===s);break;case Pt.AttributeName:r=i.getTokenText().toLowerCase();break;case Pt.AttributeValue:if(s&&r&&this.dataManager.isPathAttribute(s,r)){const s=i.getTokenText();if(!l){const r=ti(e,t,s,i.getTokenOffset(),i.getTokenEnd(),o);r&&n.push(r)}l&&"undefined"===typeof o&&(o=ei(s),o&&t&&(o=t.resolveReference(o,e.uri))),l=!1,r=void 0}else if("id"===r){h[ei(i.getTokenText())]=i.getTokenOffset()}}a=i.scan()}for(const c of n){const t=e.uri+"#";if(c.target&&_n(c.target,t)){const n=h[c.target.substring(t.length)];if(void 0!==n){const i=e.positionAt(n);c.target=`${t}${i.line+1},${i.character+1}`}else c.target=e.uri}}return n}};function ri(e,t,n){const i=e.offsetAt(t),r=n.findNodeAt(i);if(!r.tag)return[];const s=[],o=ai(Pt.StartTag,e,r.start),a="number"===typeof r.endTagStart&&ai(Pt.EndTag,e,r.endTagStart);return(o&&oi(o,t)||a&&oi(a,t))&&(o&&s.push({kind:Ne.Read,range:o}),a&&s.push({kind:Ne.Read,range:a})),s}function si(e,t){return e.line<t.line||e.line===t.line&&e.character<=t.character}function oi(e,t){return si(e.start,t)&&si(t,e.end)}function ai(e,t,n){const i=un(t.getText(),n);let r=i.scan();for(;r!==Pt.EOS&&r!==e;)r=i.scan();return r!==Pt.EOS?{start:t.positionAt(i.getTokenOffset()),end:t.positionAt(i.getTokenEnd())}:null}function li(e,t){const n=[],i=hi(e,t);for(const s of i)r(s,void 0);return n;function r(t,i){const s=Pe.create(t.name,t.kind,t.range,e.uri,i?.name);if(s.containerName??(s.containerName=""),n.push(s),t.children)for(const e of t.children)r(e,t)}}function hi(e,t){const n=[];return t.roots.forEach((t=>{ci(e,t,n)})),n}function ci(e,t,n){const i=function(e){let t=e.tag;if(e.attributes){const n=e.attributes.id,i=e.attributes.class;n&&(t+=`#${n.replace(/[\"\']/g,"")}`),i&&(t+=i.replace(/[\"\']/g,"").split(/\s+/).map((e=>`.${e}`)).join(""))}return t||"?"}(t),r=m.create(e.positionAt(t.start),e.positionAt(t.end)),s=We.create(i,void 0,Oe.Field,r,r);n.push(s),t.children.forEach((t=>{s.children??(s.children=[]),ci(e,t,s.children)}))}function di(e,t,n,i){const r=e.offsetAt(t),s=i.findNodeAt(r);if(!s.tag)return null;if(!function(e,t,n){if(e.endTagStart&&e.endTagStart+2<=t&&t<=e.endTagStart+2+n.length)return!0;return e.start+1<=t&&t<=e.start+1+n.length}(s,r,s.tag))return null;const o=[],a={start:e.positionAt(s.start+1),end:e.positionAt(s.start+1+s.tag.length)};if(o.push({range:a,newText:n}),s.endTagStart){const t={start:e.positionAt(s.endTagStart+2),end:e.positionAt(s.endTagStart+2+s.tag.length)};o.push({range:t,newText:n})}return{changes:{[e.uri.toString()]:o}}}function ui(e,t,n){const i=e.offsetAt(t),r=n.findNodeAt(i);if(!r.tag)return null;if(!r.endTagStart)return null;if(r.start+1<=i&&i<=r.start+1+r.tag.length){const t=i-1-r.start+r.endTagStart+2;return e.positionAt(t)}if(r.endTagStart+2<=i&&i<=r.endTagStart+2+r.tag.length){const t=i-2-r.endTagStart+r.start+1;return e.positionAt(t)}return null}function gi(e,t,n){const i=e.offsetAt(t),r=n.findNodeAt(i),s=r.tag?r.tag.length:0;return r.endTagStart&&(r.start+1<=i&&i<=r.start+1+s||r.endTagStart+2<=i&&i<=r.endTagStart+2+s)?[m.create(e.positionAt(r.start+1),e.positionAt(r.start+1+s)),m.create(e.positionAt(r.endTagStart+2),e.positionAt(r.endTagStart+2+s))]:null}var fi=class{constructor(e){this.dataManager=e}limitRanges(e,t){let n;e=e.sort(((e,t)=>{let n=e.startLine-t.startLine;return 0===n&&(n=e.endLine-t.endLine),n}));const i=[],r=[],s=[],o=(e,t)=>{r[e]=t,t<30&&(s[t]=(s[t]||0)+1)};for(let c=0;c<e.length;c++){const t=e[c];if(n){if(t.startLine>n.startLine)if(t.endLine<=n.endLine)i.push(n),n=t,o(c,i.length);else if(t.startLine>n.endLine){do{n=i.pop()}while(n&&t.startLine>n.endLine);n&&i.push(n),n=t,o(c,i.length)}}else n=t,o(c,0)}let a=0,l=0;for(let c=0;c<s.length;c++){const e=s[c];if(e){if(e+a>t){l=c;break}a+=e}}const h=[];for(let c=0;c<e.length;c++){const n=r[c];"number"===typeof n&&(n<l||n===l&&a++<t)&&h.push(e[c])}return h}getFoldingRanges(e,t){const n=this.dataManager.getVoidElements(e.languageId),i=un(e.getText());let r=i.scan();const s=[],o=[];let a=null,l=-1;function h(e){s.push(e),l=e.startLine}for(;r!==Pt.EOS;){switch(r){case Pt.StartTag:{const t=i.getTokenText(),n=e.positionAt(i.getTokenOffset()).line;o.push({startLine:n,tagName:t}),a=t;break}case Pt.EndTag:a=i.getTokenText();break;case Pt.StartTagClose:if(!a||!this.dataManager.isVoidElement(a,n))break;case Pt.EndTagClose:case Pt.StartTagSelfClose:{let t=o.length-1;for(;t>=0&&o[t].tagName!==a;)t--;if(t>=0){const n=o[t];o.length=t;const r=e.positionAt(i.getTokenOffset()).line,s=n.startLine,a=r-1;a>s&&l!==s&&h({startLine:s,endLine:a})}break}case Pt.Comment:{let t=e.positionAt(i.getTokenOffset()).line;const n=i.getTokenText().match(/^\s*#(region\b)|(endregion\b)/);if(n)if(n[1])o.push({startLine:t,tagName:""});else{let e=o.length-1;for(;e>=0&&o[e].tagName.length;)e--;if(e>=0){const n=o[e];o.length=e;const i=t;t=n.startLine,i>t&&l!==t&&h({startLine:t,endLine:i,kind:x.Region})}}else{const n=e.positionAt(i.getTokenOffset()+i.getTokenLength()).line;t<n&&h({startLine:t,endLine:n,kind:x.Comment})}break}}r=i.scan()}const c=t&&t.rangeLimit||Number.MAX_VALUE;return s.length>c?this.limitRanges(s,c):s}},mi=class{constructor(e){this.htmlParser=e}getSelectionRanges(e,t){const n=this.htmlParser.parseDocument(e);return t.map((t=>this.getSelectionRange(t,e,n)))}getSelectionRange(e,t,n){const i=this.getApplicableRanges(t,e,n);let r,s;for(let o=i.length-1;o>=0;o--){const e=i[o];r&&e[0]===r[0]&&e[1]===r[1]||(s=nt.create(m.create(t.positionAt(i[o][0]),t.positionAt(i[o][1])),s)),r=e}return s||(s=nt.create(m.create(e,e))),s}getApplicableRanges(e,t,n){const i=e.offsetAt(t),r=n.findNodeAt(i);let s=this.getAllParentTagRanges(r);if(r.startTagEnd&&!r.endTagStart){if(r.startTagEnd!==r.end)return[[r.start,r.end]];const t=m.create(e.positionAt(r.startTagEnd-2),e.positionAt(r.startTagEnd));"/>"===e.getText(t)?s.unshift([r.start+1,r.startTagEnd-2]):s.unshift([r.start+1,r.startTagEnd-1]);return s=this.getAttributeLevelRanges(e,r,i).concat(s),s}if(!r.startTagEnd||!r.endTagStart)return s;if(s.unshift([r.start,r.end]),r.start<i&&i<r.startTagEnd){s.unshift([r.start+1,r.startTagEnd-1]);return s=this.getAttributeLevelRanges(e,r,i).concat(s),s}return r.startTagEnd<=i&&i<=r.endTagStart?(s.unshift([r.startTagEnd,r.endTagStart]),s):(i>=r.endTagStart+2&&s.unshift([r.endTagStart+2,r.end-1]),s)}getAllParentTagRanges(e){let t=e;const n=[];for(;t.parent;)t=t.parent,this.getNodeRanges(t).forEach((e=>n.push(e)));return n}getNodeRanges(e){return e.startTagEnd&&e.endTagStart&&e.startTagEnd<e.endTagStart?[[e.startTagEnd,e.endTagStart],[e.start,e.end]]:[[e.start,e.end]]}getAttributeLevelRanges(e,t,n){const i=m.create(e.positionAt(t.start),e.positionAt(t.end)),r=e.getText(i),s=n-t.start,o=un(r);let a=o.scan();const l=t.start,h=[];let c=!1,d=-1;for(;a!==Pt.EOS;){switch(a){case Pt.AttributeName:if(s<o.getTokenOffset()){c=!1;break}s<=o.getTokenEnd()&&h.unshift([o.getTokenOffset(),o.getTokenEnd()]),c=!0,d=o.getTokenOffset();break;case Pt.AttributeValue:{if(!c)break;const e=o.getTokenText();if(s<o.getTokenOffset()){h.push([d,o.getTokenEnd()]);break}s>=o.getTokenOffset()&&s<=o.getTokenEnd()&&(h.unshift([o.getTokenOffset(),o.getTokenEnd()]),('"'===e[0]&&'"'===e[e.length-1]||"'"===e[0]&&"'"===e[e.length-1])&&s>=o.getTokenOffset()+1&&s<=o.getTokenEnd()-1&&h.unshift([o.getTokenOffset()+1,o.getTokenEnd()-1]),h.push([d,o.getTokenEnd()]));break}}a=o.scan()}return h.map((e=>[e[0]+l,e[1]+l]))}},pi={version:1.1,tags:[{name:"html",description:{kind:"markdown",value:"The html element represents the root of an HTML document."},attributes:[{name:"manifest",description:{kind:"markdown",value:"Specifies the URI of a resource manifest indicating resources that should be cached locally. See [Using the application cache](https://developer.mozilla.org/en-US/docs/Web/HTML/Using_the_application_cache) for details."}},{name:"version",description:'Specifies the version of the HTML [Document Type Definition](https://developer.mozilla.org/en-US/docs/Glossary/DTD "Document Type Definition: In HTML, the doctype is the required "<!DOCTYPE html>" preamble found at the top of all documents. Its sole purpose is to prevent a browser from switching into so-called \u201cquirks mode\u201d when rendering a document; that is, the "<!DOCTYPE html>" doctype ensures that the browser makes a best-effort attempt at following the relevant specifications, rather than using a different rendering mode that is incompatible with some specifications.") that governs the current document. This attribute is not needed, because it is redundant with the version information in the document type declaration.'},{name:"xmlns",description:'Specifies the XML Namespace of the document. Default value is `"http://www.w3.org/1999/xhtml"`. This is required in documents parsed with XML parsers, and optional in text/html documents.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/html"}]},{name:"head",description:{kind:"markdown",value:"The head element represents a collection of metadata for the Document."},attributes:[{name:"profile",description:"The URIs of one or more metadata profiles, separated by white space."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/head"}]},{name:"title",description:{kind:"markdown",value:"The title element represents the document's title or name. Authors should use titles that identify their documents even when they are used out of context, for example in a user's history or bookmarks, or in search results. The document's title is often different from its first heading, since the first heading does not have to stand alone when taken out of context."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/title"}]},{name:"base",description:{kind:"markdown",value:"The base element allows authors to specify the document base URL for the purposes of resolving relative URLs, and the name of the default browsing context for the purposes of following hyperlinks. The element does not represent any content beyond this information."},void:!0,attributes:[{name:"href",description:{kind:"markdown",value:"The base URL to be used throughout the document for relative URL addresses. If this attribute is specified, this element must come before any other elements with attributes whose values are URLs. Absolute and relative URLs are allowed."}},{name:"target",valueSet:"target",description:{kind:"markdown",value:"A name or keyword indicating the default location to display the result when hyperlinks or forms cause navigation, for elements that do not have an explicit target reference. It is a name of, or keyword for, a _browsing context_ (for example: tab, window, or inline frame). The following keywords have special meanings:\n\n* `_self`: Load the result into the same browsing context as the current one. This value is the default if the attribute is not specified.\n* `_blank`: Load the result into a new unnamed browsing context.\n* `_parent`: Load the result into the parent browsing context of the current one. If there is no parent, this option behaves the same way as `_self`.\n* `_top`: Load the result into the top-level browsing context (that is, the browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this option behaves the same way as `_self`.\n\nIf this attribute is specified, this element must come before any other elements with attributes whose values are URLs."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/base"}]},{name:"link",description:{kind:"markdown",value:"The link element allows authors to link their document to other resources."},void:!0,attributes:[{name:"href",description:{kind:"markdown",value:'This attribute specifies the [URL](https://developer.mozilla.org/en-US/docs/Glossary/URL "URL: Uniform Resource Locator (URL) is a text string specifying where a resource can be found on the Internet.") of the linked resource. A URL can be absolute or relative.'}},{name:"crossorigin",valueSet:"xo",description:{kind:"markdown",value:'This enumerated attribute indicates whether [CORS](https://developer.mozilla.org/en-US/docs/Glossary/CORS "CORS: CORS (Cross-Origin Resource Sharing) is a system, consisting of transmitting HTTP headers, that determines whether browsers block frontend JavaScript code from accessing responses for cross-origin requests.") must be used when fetching the resource. [CORS-enabled images](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_Enabled_Image) can be reused in the [`<canvas>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas "Use the HTML <canvas> element with either the canvas scripting API or the WebGL API to draw graphics and animations.") element without being _tainted_. The allowed values are:\n\n`anonymous`\n\nA cross-origin request (i.e. with an [`Origin`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin "The Origin request header indicates where a fetch originates from. It doesn\'t include any path information, but only the server name. It is sent with CORS requests, as well as with POST requests. It is similar to the Referer header, but, unlike this header, it doesn\'t disclose the whole path.") HTTP header) is performed, but no credential is sent (i.e. no cookie, X.509 certificate, or HTTP Basic authentication). If the server does not give credentials to the origin site (by not setting the [`Access-Control-Allow-Origin`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin "The Access-Control-Allow-Origin response header indicates whether the response can be shared with requesting code from the given origin.") HTTP header) the image will be tainted and its usage restricted.\n\n`use-credentials`\n\nA cross-origin request (i.e. with an `Origin` HTTP header) is performed along with a credential sent (i.e. a cookie, certificate, and/or HTTP Basic authentication is performed). If the server does not give credentials to the origin site (through [`Access-Control-Allow-Credentials`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Credentials "The Access-Control-Allow-Credentials response header tells browsers whether to expose the response to frontend JavaScript code when the request\'s credentials mode (Request.credentials) is "include".") HTTP header), the resource will be _tainted_ and its usage restricted.\n\nIf the attribute is not present, the resource is fetched without a [CORS](https://developer.mozilla.org/en-US/docs/Glossary/CORS "CORS: CORS (Cross-Origin Resource Sharing) is a system, consisting of transmitting HTTP headers, that determines whether browsers block frontend JavaScript code from accessing responses for cross-origin requests.") request (i.e. without sending the `Origin` HTTP header), preventing its non-tainted usage. If invalid, it is handled as if the enumerated keyword **anonymous** was used. See [CORS settings attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) for additional information.'}},{name:"rel",description:{kind:"markdown",value:"This attribute names a relationship of the linked document to the current document. The attribute must be a space-separated list of the [link types values](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types)."}},{name:"media",description:{kind:"markdown",value:"This attribute specifies the media that the linked resource applies to. Its value must be a media type / [media query](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries). This attribute is mainly useful when linking to external stylesheets \u2014 it allows the user agent to pick the best adapted one for the device it runs on.\n\n**Notes:**\n\n* In HTML 4, this can only be a simple white-space-separated list of media description literals, i.e., [media types and groups](https://developer.mozilla.org/en-US/docs/Web/CSS/@media), where defined and allowed as values for this attribute, such as `print`, `screen`, `aural`, `braille`. HTML5 extended this to any kind of [media queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries), which are a superset of the allowed values of HTML 4.\n* Browsers not supporting [CSS3 Media Queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries) won't necessarily recognize the adequate link; do not forget to set fallback links, the restricted set of media queries defined in HTML 4."}},{name:"hreflang",description:{kind:"markdown",value:"This attribute indicates the language of the linked resource. It is purely advisory. Allowed values are determined by [BCP47](https://www.ietf.org/rfc/bcp/bcp47.txt). Use this attribute only if the [`href`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href) attribute is present."}},{name:"type",description:{kind:"markdown",value:'This attribute is used to define the type of the content linked to. The value of the attribute should be a MIME type such as **text/html**, **text/css**, and so on. The common use of this attribute is to define the type of stylesheet being referenced (such as **text/css**), but given that CSS is the only stylesheet language used on the web, not only is it possible to omit the `type` attribute, but is actually now recommended practice. It is also used on `rel="preload"` link types, to make sure the browser only downloads file types that it supports.'}},{name:"sizes",description:{kind:"markdown",value:"This attribute defines the sizes of the icons for visual media contained in the resource. It must be present only if the [`rel`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-rel) contains a value of `icon` or a non-standard type such as Apple's `apple-touch-icon`. It may have the following values:\n\n* `any`, meaning that the icon can be scaled to any size as it is in a vector format, like `image/svg+xml`.\n* a white-space separated list of sizes, each in the format `_<width in pixels>_x_<height in pixels>_` or `_<width in pixels>_X_<height in pixels>_`. Each of these sizes must be contained in the resource.\n\n**Note:** Most icon formats are only able to store one single icon; therefore most of the time the [`sizes`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-sizes) contains only one entry. MS's ICO format does, as well as Apple's ICNS. ICO is more ubiquitous; you should definitely use it."}},{name:"as",description:'This attribute is only used when `rel="preload"` or `rel="prefetch"` has been set on the `<link>` element. It specifies the type of content being loaded by the `<link>`, which is necessary for content prioritization, request matching, application of correct [content security policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), and setting of correct [`Accept`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept "The Accept request HTTP header advertises which content types, expressed as MIME types, the client is able to understand. Using content negotiation, the server then selects one of the proposals, uses it and informs the client of its choice with the Content-Type response header. Browsers set adequate values for this header depending on\xa0the context where the request is done: when fetching a CSS stylesheet a different value is set for the request than when fetching an image,\xa0video or a script.") request header.'},{name:"importance",description:"Indicates the relative importance of the resource. Priority hints are delegated using the values:"},{name:"importance",description:'**`auto`**: Indicates\xa0**no\xa0preference**. The browser may use its own heuristics to decide the priority of the resource.\n\n**`high`**: Indicates to the\xa0browser\xa0that the resource is of\xa0**high** priority.\n\n**`low`**:\xa0Indicates to the\xa0browser\xa0that the resource is of\xa0**low** priority.\n\n**Note:** The `importance` attribute may only be used for the `<link>` element if `rel="preload"` or `rel="prefetch"` is present.'},{name:"integrity",description:"Contains inline metadata \u2014 a base64-encoded cryptographic hash of the resource (file) you\u2019re telling the browser to fetch. The browser can use this to verify that the fetched resource has been delivered free of unexpected manipulation. See [Subresource Integrity](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity)."},{name:"referrerpolicy",description:'A string indicating which referrer to use when fetching the resource:\n\n* `no-referrer` means that the [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will not be sent.\n* `no-referrer-when-downgrade` means that no [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will be sent when navigating to an origin without TLS (HTTPS). This is a user agent\u2019s default behavior, if no policy is otherwise specified.\n* `origin` means that the referrer will be the origin of the page, which is roughly the scheme, the host, and the port.\n* `origin-when-cross-origin` means that navigating to other origins will be limited to the scheme, the host, and the port, while navigating on the same origin will include the referrer\'s path.\n* `unsafe-url` means that the referrer will include the origin and the path (but not the fragment, password, or username). This case is unsafe because it can leak origins and paths from TLS-protected resources to insecure origins.'},{name:"title",description:'The `title` attribute has special semantics on the `<link>` element. When used on a `<link rel="stylesheet">` it defines a [preferred or an alternate stylesheet](https://developer.mozilla.org/en-US/docs/Web/CSS/Alternative_style_sheets). Incorrectly using it may [cause the stylesheet to be ignored](https://developer.mozilla.org/en-US/docs/Correctly_Using_Titles_With_External_Stylesheets).'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/link"}]},{name:"meta",description:{kind:"markdown",value:"The meta element represents various kinds of metadata that cannot be expressed using the title, base, link, style, and script elements."},void:!0,attributes:[{name:"name",description:{kind:"markdown",value:'This attribute defines the name of a piece of document-level metadata. It should not be set if one of the attributes [`itemprop`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-itemprop), [`http-equiv`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-http-equiv) or [`charset`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-charset) is also set.\n\nThis metadata name is associated with the value contained by the [`content`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-content) attribute. The possible values for the name attribute are:\n\n* `application-name` which defines the name of the application running in the web page.\n \n **Note:**\n \n * Browsers may use this to identify the application. It is different from the [`<title>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/title "The HTML Title element (<title>) defines the document\'s title that is shown in a browser\'s title bar or a page\'s tab.") element, which usually contain the application name, but may also contain information like the document name or a status.\n * Simple web pages shouldn\'t define an application-name.\n \n* `author` which defines the name of the document\'s author.\n* `description` which contains a short and accurate summary of the content of the page. Several browsers, like Firefox and Opera, use this as the default description of bookmarked pages.\n* `generator` which contains the identifier of the software that generated the page.\n* `keywords` which contains words relevant to the page\'s content separated by commas.\n* `referrer` which controls the [`Referer` HTTP header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer) attached to requests sent from the document:\n \n Values for the `content` attribute of `<meta name="referrer">`\n \n `no-referrer`\n \n Do not send a HTTP `Referrer` header.\n \n `origin`\n \n Send the [origin](https://developer.mozilla.org/en-US/docs/Glossary/Origin) of the document.\n \n `no-referrer-when-downgrade`\n \n Send the [origin](https://developer.mozilla.org/en-US/docs/Glossary/Origin) as a referrer to URLs as secure as the current page, (https\u2192https), but does not send a referrer to less secure URLs (https\u2192http). This is the default behaviour.\n \n `origin-when-cross-origin`\n \n Send the full URL (stripped of parameters) for same-origin requests, but only send the [origin](https://developer.mozilla.org/en-US/docs/Glossary/Origin) for other cases.\n \n `same-origin`\n \n A referrer will be sent for [same-site origins](https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy), but cross-origin requests will contain no referrer information.\n \n `strict-origin`\n \n Only send the origin of the document as the referrer to a-priori as-much-secure destination (HTTPS->HTTPS), but don\'t send it to a less secure destination (HTTPS->HTTP).\n \n `strict-origin-when-cross-origin`\n \n Send a full URL when performing a same-origin request, only send the origin of the document to a-priori as-much-secure destination (HTTPS->HTTPS), and send no header to a less secure destination (HTTPS->HTTP).\n \n `unsafe-URL`\n \n Send the full URL (stripped of parameters) for same-origin or cross-origin requests.\n \n **Notes:**\n \n * Some browsers support the deprecated values of `always`, `default`, and `never` for referrer.\n * Dynamically inserting `<meta name="referrer">` (with [`document.write`](https://developer.mozilla.org/en-US/docs/Web/API/Document/write) or [`appendChild`](https://developer.mozilla.org/en-US/docs/Web/API/Node/appendChild)) makes the referrer behaviour unpredictable.\n * When several conflicting policies are defined, the no-referrer policy is applied.\n \n\nThis attribute may also have a value taken from the extended list defined on [WHATWG Wiki MetaExtensions page](https://wiki.whatwg.org/wiki/MetaExtensions). Although none have been formally accepted yet, a few commonly used names are:\n\n* `creator` which defines the name of the creator of the document, such as an organization or institution. If there are more than one, several [`<meta>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta "The HTML <meta> element represents metadata that cannot be represented by other HTML meta-related elements, like <base>, <link>, <script>, <style> or <title>.") elements should be used.\n* `googlebot`, a synonym of `robots`, is only followed by Googlebot (the indexing crawler for Google).\n* `publisher` which defines the name of the document\'s publisher.\n* `robots` which defines the behaviour that cooperative crawlers, or "robots", should use with the page. It is a comma-separated list of the values below:\n \n Values for the content of `<meta name="robots">`\n \n Value\n \n Description\n \n Used by\n \n `index`\n \n Allows the robot to index the page (default).\n \n All\n \n `noindex`\n \n Requests the robot to not index the page.\n \n All\n \n `follow`\n \n Allows the robot to follow the links on the page (default).\n \n All\n \n `nofollow`\n \n Requests the robot to not follow the links on the page.\n \n All\n \n `none`\n \n Equivalent to `noindex, nofollow`\n \n [Google](https://support.google.com/webmasters/answer/79812)\n \n `noodp`\n \n Prevents using the [Open Directory Project](https://www.dmoz.org/) description, if any, as the page description in search engine results.\n \n [Google](https://support.google.com/webmasters/answer/35624#nodmoz), [Yahoo](https://help.yahoo.com/kb/search-for-desktop/meta-tags-robotstxt-yahoo-search-sln2213.html#cont5), [Bing](https://www.bing.com/webmaster/help/which-robots-metatags-does-bing-support-5198d240)\n \n `noarchive`\n \n Requests the search engine not to cache the page content.\n \n [Google](https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag#valid-indexing--serving-directives), [Yahoo](https://help.yahoo.com/kb/search-for-desktop/SLN2213.html), [Bing](https://www.bing.com/webmaster/help/which-robots-metatags-does-bing-support-5198d240)\n \n `nosnippet`\n \n Prevents displaying any description of the page in search engine results.\n \n [Google](https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag#valid-indexing--serving-directives), [Bing](https://www.bing.com/webmaster/help/which-robots-metatags-does-bing-support-5198d240)\n \n `noimageindex`\n \n Requests this page not to appear as the referring page of an indexed image.\n \n [Google](https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag#valid-indexing--serving-directives)\n \n `nocache`\n \n Synonym of `noarchive`.\n \n [Bing](https://www.bing.com/webmaster/help/which-robots-metatags-does-bing-support-5198d240)\n \n **Notes:**\n \n * Only cooperative robots follow these rules. Do not expect to prevent e-mail harvesters with them.\n * The robot still needs to access the page in order to read these rules. To prevent bandwidth consumption, use a _[robots.txt](https://developer.mozilla.org/en-US/docs/Glossary/robots.txt "robots.txt: Robots.txt is a file which is usually placed in the root of any website. It decides whether\xa0crawlers are permitted or forbidden access to the web site.")_ file.\n * If you want to remove a page, `noindex` will work, but only after the robot visits the page again. Ensure that the `robots.txt` file is not preventing revisits.\n * Some values are mutually exclusive, like `index` and `noindex`, or `follow` and `nofollow`. In these cases the robot\'s behaviour is undefined and may vary between them.\n * Some crawler robots, like Google, Yahoo and Bing, support the same values for the HTTP header `X-Robots-Tag`; this allows non-HTML documents like images to use these rules.\n \n* `slurp`, is a synonym of `robots`, but only for Slurp - the crawler for Yahoo Search.\n* `viewport`, which gives hints about the size of the initial size of the [viewport](https://developer.mozilla.org/en-US/docs/Glossary/viewport "viewport: A viewport represents a polygonal (normally rectangular) area in computer graphics that is currently being viewed. In web browser terms, it refers to the part of the document you\'re viewing which is currently visible in its window (or the screen, if the document is being viewed in full screen mode). Content outside the viewport is not visible onscreen until scrolled into view."). Used by mobile devices only.\n \n Values for the content of `<meta name="viewport">`\n \n Value\n \n Possible subvalues\n \n Description\n \n `width`\n \n A positive integer number, or the text `device-width`\n \n Defines the pixel width of the viewport that you want the web site to be rendered at.\n \n `height`\n \n A positive integer, or the text `device-height`\n \n Defines the height of the viewport. Not used by any browser.\n \n `initial-scale`\n \n A positive number between `0.0` and `10.0`\n \n Defines the ratio between the device width (`device-width` in portrait mode or `device-height` in landscape mode) and the viewport size.\n \n `maximum-scale`\n \n A positive number between `0.0` and `10.0`\n \n Defines the maximum amount to zoom in. It must be greater or equal to the `minimum-scale` or the behaviour is undefined. Browser settings can ignore this rule and iOS10+ ignores it by default.\n \n `minimum-scale`\n \n A positive number between `0.0` and `10.0`\n \n Defines the minimum zoom level. It must be smaller or equal to the `maximum-scale` or the behaviour is undefined. Browser settings can ignore this rule and iOS10+ ignores it by default.\n \n `user-scalable`\n \n `yes` or `no`\n \n If set to `no`, the user is not able to zoom in the webpage. The default is `yes`. Browser settings can ignore this rule, and iOS10+ ignores it by default.\n \n Specification\n \n Status\n \n Comment\n \n [CSS Device Adaptation \n The definition of \'<meta name="viewport">\' in that specification.](https://drafts.csswg.org/css-device-adapt/#viewport-meta)\n \n Working Draft\n \n Non-normatively describes the Viewport META element\n \n See also: [`@viewport`](https://developer.mozilla.org/en-US/docs/Web/CSS/@viewport "The @viewport CSS at-rule lets you configure the viewport through which the document is viewed. It\'s primarily used for mobile devices, but is also used by desktop browsers that support features like "snap to edge" (such as Microsoft Edge).")\n \n **Notes:**\n \n * Though unstandardized, this declaration is respected by most mobile browsers due to de-facto dominance.\n * The default values may vary between devices and browsers.\n * To learn about this declaration in Firefox for Mobile, see [this article](https://developer.mozilla.org/en-US/docs/Mobile/Viewport_meta_tag "Mobile/Viewport meta tag").'}},{name:"http-equiv",description:{kind:"markdown",value:'Defines a pragma directive. The attribute is named `**http-equiv**(alent)` because all the allowed values are names of particular HTTP headers:\n\n* `"content-language"` \n Defines the default language of the page. It can be overridden by the [lang](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/lang) attribute on any element.\n \n **Warning:** Do not use this value, as it is obsolete. Prefer the `lang` attribute on the [`<html>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/html "The HTML <html> element represents the root (top-level element) of an HTML document, so it is also referred to as the root element. All other elements must be descendants of this element.") element.\n \n* `"content-security-policy"` \n Allows page authors to define a [content policy](https://developer.mozilla.org/en-US/docs/Web/Security/CSP/CSP_policy_directives) for the current page. Content policies mostly specify allowed server origins and script endpoints which help guard against cross-site scripting attacks.\n* `"content-type"` \n Defines the [MIME type](https://developer.mozilla.org/en-US/docs/Glossary/MIME_type) of the document, followed by its character encoding. It follows the same syntax as the HTTP `content-type` entity-header field, but as it is inside a HTML page, most values other than `text/html` are impossible. Therefore the valid syntax for its `content` is the string \'`text/html`\' followed by a character set with the following syntax: \'`; charset=_IANAcharset_`\', where `IANAcharset` is the _preferred MIME name_ for a character set as [defined by the IANA.](https://www.iana.org/assignments/character-sets)\n \n **Warning:** Do not use this value, as it is obsolete. Use the [`charset`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-charset) attribute on the [`<meta>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta "The HTML <meta> element represents metadata that cannot be represented by other HTML meta-related elements, like <base>, <link>, <script>, <style> or <title>.") element.\n \n **Note:** As [`<meta>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta "The HTML <meta> element represents metadata that cannot be represented by other HTML meta-related elements, like <base>, <link>, <script>, <style> or <title>.") can\'t change documents\' types in XHTML or HTML5\'s XHTML serialization, never set the MIME type to an XHTML MIME type with `<meta>`.\n \n* `"refresh"` \n This instruction specifies:\n * The number of seconds until the page should be reloaded - only if the [`content`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-content) attribute contains a positive integer.\n * The number of seconds until the page should redirect to another - only if the [`content`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-content) attribute contains a positive integer followed by the string \'`;url=`\', and a valid URL.\n* `"set-cookie"` \n Defines a [cookie](https://developer.mozilla.org/en-US/docs/cookie) for the page. Its content must follow the syntax defined in the [IETF HTTP Cookie Specification](https://tools.ietf.org/html/draft-ietf-httpstate-cookie-14).\n \n **Warning:** Do not use this instruction, as it is obsolete. Use the HTTP header [`Set-Cookie`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie) instead.'}},{name:"content",description:{kind:"markdown",value:"This attribute contains the value for the [`http-equiv`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-http-equiv) or [`name`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-name) attribute, depending on which is used."}},{name:"charset",description:{kind:"markdown",value:'This attribute declares the page\'s character encoding. It must contain a [standard IANA MIME name for character encodings](https://www.iana.org/assignments/character-sets). Although the standard doesn\'t request a specific encoding, it suggests:\n\n* Authors are encouraged to use [`UTF-8`](https://developer.mozilla.org/en-US/docs/Glossary/UTF-8).\n* Authors should not use ASCII-incompatible encodings to avoid security risk: browsers not supporting them may interpret harmful content as HTML. This happens with the `JIS_C6226-1983`, `JIS_X0212-1990`, `HZ-GB-2312`, `JOHAB`, the ISO-2022 family and the EBCDIC family.\n\n**Note:** ASCII-incompatible encodings are those that don\'t map the 8-bit code points `0x20` to `0x7E` to the `0x0020` to `0x007E` Unicode code points)\n\n* Authors **must not** use `CESU-8`, `UTF-7`, `BOCU-1` and/or `SCSU` as [cross-site scripting](https://developer.mozilla.org/en-US/docs/Glossary/Cross-site_scripting) attacks with these encodings have been demonstrated.\n* Authors should not use `UTF-32` because not all HTML5 encoding algorithms can distinguish it from `UTF-16`.\n\n**Notes:**\n\n* The declared character encoding must match the one the page was saved with to avoid garbled characters and security holes.\n* The [`<meta>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta "The HTML <meta> element represents metadata that cannot be represented by other HTML meta-related elements, like <base>, <link>, <script>, <style> or <title>.") element declaring the encoding must be inside the [`<head>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/head "The HTML <head> element provides general information (metadata) about the document, including its title and links to its\xa0scripts and style sheets.") element and **within the first 1024 bytes** of the HTML as some browsers only look at those bytes before choosing an encoding.\n* This [`<meta>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta "The HTML <meta> element represents metadata that cannot be represented by other HTML meta-related elements, like <base>, <link>, <script>, <style> or <title>.") element is only one part of the [algorithm to determine a page\'s character set](https://www.whatwg.org/specs/web-apps/current-work/multipage/parsing.html#encoding-sniffing-algorithm "Algorithm charset page"). The [`Content-Type` header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type) and any [Byte-Order Marks](https://developer.mozilla.org/en-US/docs/Glossary/Byte-Order_Mark "The definition of that term (Byte-Order Marks) has not been written yet; please consider contributing it!") override this element.\n* It is strongly recommended to define the character encoding. If a page\'s encoding is undefined, cross-scripting techniques are possible, such as the [`UTF-7` fallback cross-scripting technique](https://code.google.com/p/doctype-mirror/wiki/ArticleUtf7).\n* The [`<meta>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta "The HTML <meta> element represents metadata that cannot be represented by other HTML meta-related elements, like <base>, <link>, <script>, <style> or <title>.") element with a `charset` attribute is a synonym for the pre-HTML5 `<meta http-equiv="Content-Type" content="text/html; charset=_IANAcharset_">`, where _`IANAcharset`_ contains the value of the equivalent [`charset`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-charset) attribute. This syntax is still allowed, although no longer recommended.'}},{name:"scheme",description:"This attribute defines the scheme in which metadata is described. A scheme is a context leading to the correct interpretations of the [`content`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-content) value, like a format.\n\n**Warning:** Do not use this value, as it is obsolete. There is no replacement as there was no real usage for it."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/meta"}]},{name:"style",description:{kind:"markdown",value:"The style element allows authors to embed style information in their documents. The style element is one of several inputs to the styling processing model. The element does not represent content for the user."},attributes:[{name:"media",description:{kind:"markdown",value:"This attribute defines which media the style should be applied to. Its value is a [media query](https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Media_queries), which defaults to `all` if the attribute is missing."}},{name:"nonce",description:{kind:"markdown",value:"A cryptographic nonce (number used once) used to whitelist inline styles in a [style-src Content-Security-Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/style-src). The server must generate a unique nonce value each time it transmits a policy. It is critical to provide a nonce that cannot be guessed as bypassing a resource\u2019s policy is otherwise trivial."}},{name:"type",description:{kind:"markdown",value:"This attribute defines the styling language as a MIME type (charset should not be specified). This attribute is optional and defaults to `text/css` if it is not specified \u2014 there is very little reason to include this in modern web documents."}},{name:"scoped",valueSet:"v"},{name:"title",description:"This attribute specifies [alternative style sheet](https://developer.mozilla.org/en-US/docs/Web/CSS/Alternative_style_sheets) sets."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/style"}]},{name:"body",description:{kind:"markdown",value:"The body element represents the content of the document."},attributes:[{name:"onafterprint",description:{kind:"markdown",value:"Function to call after the user has printed the document."}},{name:"onbeforeprint",description:{kind:"markdown",value:"Function to call when the user requests printing of the document."}},{name:"onbeforeunload",description:{kind:"markdown",value:"Function to call when the document is about to be unloaded."}},{name:"onhashchange",description:{kind:"markdown",value:"Function to call when the fragment identifier part (starting with the hash (`'#'`) character) of the document's current address has changed."}},{name:"onlanguagechange",description:{kind:"markdown",value:"Function to call when the preferred languages changed."}},{name:"onmessage",description:{kind:"markdown",value:"Function to call when the document has received a message."}},{name:"onoffline",description:{kind:"markdown",value:"Function to call when network communication has failed."}},{name:"ononline",description:{kind:"markdown",value:"Function to call when network communication has been restored."}},{name:"onpagehide"},{name:"onpageshow"},{name:"onpopstate",description:{kind:"markdown",value:"Function to call when the user has navigated session history."}},{name:"onstorage",description:{kind:"markdown",value:"Function to call when the storage area has changed."}},{name:"onunload",description:{kind:"markdown",value:"Function to call when the document is going away."}},{name:"alink",description:'Color of text for hyperlinks when selected. _This method is non-conforming, use CSS [`color`](https://developer.mozilla.org/en-US/docs/Web/CSS/color "The color CSS property sets the foreground color value of an element\'s text and text decorations, and sets the currentcolor value.") property in conjunction with the [`:active`](https://developer.mozilla.org/en-US/docs/Web/CSS/:active "The :active CSS pseudo-class represents an element (such as a button) that is being activated by the user.") pseudo-class instead._'},{name:"background",description:'URI of a image to use as a background. _This method is non-conforming, use CSS [`background`](https://developer.mozilla.org/en-US/docs/Web/CSS/background "The background shorthand CSS property sets all background style properties at once, such as color, image, origin and size, or repeat method.") property on the element instead._'},{name:"bgcolor",description:'Background color for the document. _This method is non-conforming, use CSS [`background-color`](https://developer.mozilla.org/en-US/docs/Web/CSS/background-color "The background-color CSS property sets the background color of an element.") property on the element instead._'},{name:"bottommargin",description:'The margin of the bottom of the body. _This method is non-conforming, use CSS [`margin-bottom`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-bottom "The margin-bottom CSS property sets the margin area on the bottom of an element. A positive value places it farther from its neighbors, while a negative value places it closer.") property on the element instead._'},{name:"leftmargin",description:'The margin of the left of the body. _This method is non-conforming, use CSS [`margin-left`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left "The margin-left CSS property sets the margin area on the left side of an element. A positive value places it farther from its neighbors, while a negative value places it closer.") property on the element instead._'},{name:"link",description:'Color of text for unvisited hypertext links. _This method is non-conforming, use CSS [`color`](https://developer.mozilla.org/en-US/docs/Web/CSS/color "The color CSS property sets the foreground color value of an element\'s text and text decorations, and sets the currentcolor value.") property in conjunction with the [`:link`](https://developer.mozilla.org/en-US/docs/Web/CSS/:link "The :link CSS pseudo-class represents an element that has not yet been visited. It matches every unvisited <a>, <area>, or <link> element that has an href attribute.") pseudo-class instead._'},{name:"onblur",description:"Function to call when the document loses focus."},{name:"onerror",description:"Function to call when the document fails to load properly."},{name:"onfocus",description:"Function to call when the document receives focus."},{name:"onload",description:"Function to call when the document has finished loading."},{name:"onredo",description:"Function to call when the user has moved forward in undo transaction history."},{name:"onresize",description:"Function to call when the document has been resized."},{name:"onundo",description:"Function to call when the user has moved backward in undo transaction history."},{name:"rightmargin",description:'The margin of the right of the body. _This method is non-conforming, use CSS [`margin-right`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-right "The margin-right CSS property sets the margin area on the right side of an element. A positive value places it farther from its neighbors, while a negative value places it closer.") property on the element instead._'},{name:"text",description:'Foreground color of text. _This method is non-conforming, use CSS [`color`](https://developer.mozilla.org/en-US/docs/Web/CSS/color "The color CSS property sets the foreground color value of an element\'s text and text decorations, and sets the currentcolor value.") property on the element instead._'},{name:"topmargin",description:'The margin of the top of the body. _This method is non-conforming, use CSS [`margin-top`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-top "The margin-top CSS property sets the margin area on the top of an element. A positive value places it farther from its neighbors, while a negative value places it closer.") property on the element instead._'},{name:"vlink",description:'Color of text for visited hypertext links. _This method is non-conforming, use CSS [`color`](https://developer.mozilla.org/en-US/docs/Web/CSS/color "The color CSS property sets the foreground color value of an element\'s text and text decorations, and sets the currentcolor value.") property in conjunction with the [`:visited`](https://developer.mozilla.org/en-US/docs/Web/CSS/:visited "The :visited CSS pseudo-class represents links that the user has already visited. For privacy reasons, the styles that can be modified using this selector are very limited.") pseudo-class instead._'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/body"}]},{name:"article",description:{kind:"markdown",value:"The article element represents a complete, or self-contained, composition in a document, page, application, or site and that is, in principle, independently distributable or reusable, e.g. in syndication. This could be a forum post, a magazine or newspaper article, a blog entry, a user-submitted comment, an interactive widget or gadget, or any other independent item of content. Each article should be identified, typically by including a heading (h1\u2013h6 element) as a child of the article element."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/article"}]},{name:"section",description:{kind:"markdown",value:"The section element represents a generic section of a document or application. A section, in this context, is a thematic grouping of content. Each section should be identified, typically by including a heading ( h1- h6 element) as a child of the section element."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/section"}]},{name:"nav",description:{kind:"markdown",value:"The nav element represents a section of a page that links to other pages or to parts within the page: a section with navigation links."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/nav"}]},{name:"aside",description:{kind:"markdown",value:"The aside element represents a section of a page that consists of content that is tangentially related to the content around the aside element, and which could be considered separate from that content. Such sections are often represented as sidebars in printed typography."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/aside"}]},{name:"h1",description:{kind:"markdown",value:"The h1 element represents a section heading."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements"}]},{name:"h2",description:{kind:"markdown",value:"The h2 element represents a section heading."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements"}]},{name:"h3",description:{kind:"markdown",value:"The h3 element represents a section heading."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements"}]},{name:"h4",description:{kind:"markdown",value:"The h4 element represents a section heading."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements"}]},{name:"h5",description:{kind:"markdown",value:"The h5 element represents a section heading."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements"}]},{name:"h6",description:{kind:"markdown",value:"The h6 element represents a section heading."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements"}]},{name:"header",description:{kind:"markdown",value:"The header element represents introductory content for its nearest ancestor sectioning content or sectioning root element. A header typically contains a group of introductory or navigational aids. When the nearest ancestor sectioning content or sectioning root element is the body element, then it applies to the whole page."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/header"}]},{name:"footer",description:{kind:"markdown",value:"The footer element represents a footer for its nearest ancestor sectioning content or sectioning root element. A footer typically contains information about its section such as who wrote it, links to related documents, copyright data, and the like."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/footer"}]},{name:"address",description:{kind:"markdown",value:"The address element represents the contact information for its nearest article or body element ancestor. If that is the body element, then the contact information applies to the document as a whole."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/address"}]},{name:"p",description:{kind:"markdown",value:"The p element represents a paragraph."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/p"}]},{name:"hr",description:{kind:"markdown",value:"The hr element represents a paragraph-level thematic break, e.g. a scene change in a story, or a transition to another topic within a section of a reference book."},void:!0,attributes:[{name:"align",description:"Sets the alignment of the rule on the page. If no value is specified, the default value is `left`."},{name:"color",description:"Sets the color of the rule through color name or hexadecimal value."},{name:"noshade",description:"Sets the rule to have no shading."},{name:"size",description:"Sets the height, in pixels, of the rule."},{name:"width",description:"Sets the length of the rule on the page through a pixel or percentage value."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/hr"}]},{name:"pre",description:{kind:"markdown",value:"The pre element represents a block of preformatted text, in which structure is represented by typographic conventions rather than by elements."},attributes:[{name:"cols",description:'Contains the _preferred_ count of characters that a line should have. It was a non-standard synonym of [`width`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/pre#attr-width). To achieve such an effect, use CSS [`width`](https://developer.mozilla.org/en-US/docs/Web/CSS/width "The width CSS property sets an element\'s width. By default it sets the width of the content area, but if box-sizing is set to border-box, it sets the width of the border area.") instead.'},{name:"width",description:'Contains the _preferred_ count of characters that a line should have. Though technically still implemented, this attribute has no visual effect; to achieve such an effect, use CSS [`width`](https://developer.mozilla.org/en-US/docs/Web/CSS/width "The width CSS property sets an element\'s width. By default it sets the width of the content area, but if box-sizing is set to border-box, it sets the width of the border area.") instead.'},{name:"wrap",description:'Is a _hint_ indicating how the overflow must happen. In modern browser this hint is ignored and no visual effect results in its present; to achieve such an effect, use CSS [`white-space`](https://developer.mozilla.org/en-US/docs/Web/CSS/white-space "The white-space CSS property sets how white space inside an element is handled.") instead.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/pre"}]},{name:"blockquote",description:{kind:"markdown",value:"The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a footer or cite element, and optionally with in-line changes such as annotations and abbreviations."},attributes:[{name:"cite",description:{kind:"markdown",value:"A URL that designates a source document or message for the information quoted. This attribute is intended to point to information explaining the context or the reference for the quote."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/blockquote"}]},{name:"ol",description:{kind:"markdown",value:"The ol element represents a list of items, where the items have been intentionally ordered, such that changing the order would change the meaning of the document."},attributes:[{name:"reversed",valueSet:"v",description:{kind:"markdown",value:"This Boolean attribute specifies that the items of the list are specified in reversed order."}},{name:"start",description:{kind:"markdown",value:'This integer attribute specifies the start value for numbering the individual list items. Although the ordering type of list elements might be Roman numerals, such as XXXI, or letters, the value of start is always represented as a number. To start numbering elements from the letter "C", use `<ol start="3">`.\n\n**Note**: This attribute was deprecated in HTML4, but reintroduced in HTML5.'}},{name:"type",valueSet:"lt",description:{kind:"markdown",value:"Indicates the numbering type:\n\n* `'a'` indicates lowercase letters,\n* `'A'` indicates uppercase letters,\n* `'i'` indicates lowercase Roman numerals,\n* `'I'` indicates uppercase Roman numerals,\n* and `'1'` indicates numbers (default).\n\nThe type set is used for the entire list unless a different [`type`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/li#attr-type) attribute is used within an enclosed [`<li>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/li \"The HTML <li> element is used to represent an item in a list. It must be contained in a parent element: an ordered list (<ol>), an unordered list (<ul>), or a menu (<menu>). In menus and unordered lists, list items are usually displayed using bullet points. In ordered lists, they are usually displayed with an ascending counter on the left, such as a number or letter.\") element.\n\n**Note:** This attribute was deprecated in HTML4, but reintroduced in HTML5.\n\nUnless the value of the list number matters (e.g. in legal or technical documents where items are to be referenced by their number/letter), the CSS [`list-style-type`](https://developer.mozilla.org/en-US/docs/Web/CSS/list-style-type \"The list-style-type CSS property sets the marker (such as a disc, character, or custom counter style) of a list item element.\") property should be used instead."}},{name:"compact",description:'This Boolean attribute hints that the list should be rendered in a compact style. The interpretation of this attribute depends on the user agent and it doesn\'t work in all browsers.\n\n**Warning:** Do not use this attribute, as it has been deprecated: the [`<ol>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ol "The HTML <ol> element represents an ordered list of items, typically rendered as a numbered list.") element should be styled using [CSS](https://developer.mozilla.org/en-US/docs/CSS). To give an effect similar to the `compact` attribute, the [CSS](https://developer.mozilla.org/en-US/docs/CSS) property [`line-height`](https://developer.mozilla.org/en-US/docs/Web/CSS/line-height "The line-height CSS property sets the amount of space used for lines, such as in text. On block-level elements, it specifies the minimum height of line boxes within the element. On non-replaced inline elements, it specifies the height that is used to calculate line box height.") can be used with a value of `80%`.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/ol"}]},{name:"ul",description:{kind:"markdown",value:"The ul element represents a list of items, where the order of the items is not important \u2014 that is, where changing the order would not materially change the meaning of the document."},attributes:[{name:"compact",description:'This Boolean attribute hints that the list should be rendered in a compact style. The interpretation of this attribute depends on the user agent and it doesn\'t work in all browsers.\n\n**Usage note:\xa0**Do not use this attribute, as it has been deprecated: the [`<ul>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ul "The HTML <ul> element represents an unordered list of items, typically rendered as a bulleted list.") element should be styled using [CSS](https://developer.mozilla.org/en-US/docs/CSS). To give a similar effect as the `compact` attribute, the [CSS](https://developer.mozilla.org/en-US/docs/CSS) property [line-height](https://developer.mozilla.org/en-US/docs/CSS/line-height) can be used with a value of `80%`.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/ul"}]},{name:"li",description:{kind:"markdown",value:"The li element represents a list item. If its parent element is an ol, ul, or menu element, then the element is an item of the parent element's list, as defined for those elements. Otherwise, the list item has no defined list-related relationship to any other li element."},attributes:[{name:"value",description:{kind:"markdown",value:'This integer attribute indicates the current ordinal value of the list item as defined by the [`<ol>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ol "The HTML <ol> element represents an ordered list of items, typically rendered as a numbered list.") element. The only allowed value for this attribute is a number, even if the list is displayed with Roman numerals or letters. List items that follow this one continue numbering from the value set. The **value** attribute has no meaning for unordered lists ([`<ul>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ul "The HTML <ul> element represents an unordered list of items, typically rendered as a bulleted list.")) or for menus ([`<menu>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/menu "The HTML <menu> element represents a group of commands that a user can perform or activate. This includes both list menus, which might appear across the top of a screen, as well as context menus, such as those that might appear underneath a button after it has been clicked.")).\n\n**Note**: This attribute was deprecated in HTML4, but reintroduced in HTML5.\n\n**Note:** Prior to Gecko\xa09.0, negative values were incorrectly converted to 0. Starting in Gecko\xa09.0 all integer values are correctly parsed.'}},{name:"type",description:'This character attribute indicates the numbering type:\n\n* `a`: lowercase letters\n* `A`: uppercase letters\n* `i`: lowercase Roman numerals\n* `I`: uppercase Roman numerals\n* `1`: numbers\n\nThis type overrides the one used by its parent [`<ol>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ol "The HTML <ol> element represents an ordered list of items, typically rendered as a numbered list.") element, if any.\n\n**Usage note:** This attribute has been deprecated: use the CSS [`list-style-type`](https://developer.mozilla.org/en-US/docs/Web/CSS/list-style-type "The list-style-type CSS property sets the marker (such as a disc, character, or custom counter style) of a list item element.") property instead.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/li"}]},{name:"dl",description:{kind:"markdown",value:"The dl element represents an association list consisting of zero or more name-value groups (a description list). A name-value group consists of one or more names (dt elements) followed by one or more values (dd elements), ignoring any nodes other than dt and dd elements. Within a single dl element, there should not be more than one dt element for each name."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/dl"}]},{name:"dt",description:{kind:"markdown",value:"The dt element represents the term, or name, part of a term-description group in a description list (dl element)."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/dt"}]},{name:"dd",description:{kind:"markdown",value:"The dd element represents the description, definition, or value, part of a term-description group in a description list (dl element)."},attributes:[{name:"nowrap",description:"If the value of this attribute is set to `yes`, the definition text will not wrap. The default value is `no`."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/dd"}]},{name:"figure",description:{kind:"markdown",value:"The figure element represents some flow content, optionally with a caption, that is self-contained (like a complete sentence) and is typically referenced as a single unit from the main flow of the document."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/figure"}]},{name:"figcaption",description:{kind:"markdown",value:"The figcaption element represents a caption or legend for the rest of the contents of the figcaption element's parent figure element, if any."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/figcaption"}]},{name:"main",description:{kind:"markdown",value:"The main element represents the main content of the body of a document or application. The main content area consists of content that is directly related to or expands upon the central topic of a document or central functionality of an application."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/main"}]},{name:"div",description:{kind:"markdown",value:"The div element has no special meaning at all. It represents its children. It can be used with the class, lang, and title attributes to mark up semantics common to a group of consecutive elements."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/div"}]},{name:"a",description:{kind:"markdown",value:"If the a element has an href attribute, then it represents a hyperlink (a hypertext anchor) labeled by its contents."},attributes:[{name:"href",description:{kind:"markdown",value:'Contains a URL or a URL fragment that the hyperlink points to.\nA URL fragment is a name preceded by a hash mark (`#`), which specifies an internal target location (an [`id`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-id) of an HTML element) within the current document. URLs are not restricted to Web (HTTP)-based documents, but can use any protocol supported by the browser. For example, [`file:`](https://en.wikipedia.org/wiki/File_URI_scheme), `ftp:`, and `mailto:` work in most browsers.\n\n**Note:** You can use `href="#top"` or the empty fragment `href="#"` to link to the top of the current page. [This behavior is specified by HTML5](https://www.w3.org/TR/html5/single-page.html#scroll-to-fragid).'}},{name:"target",valueSet:"target",description:{kind:"markdown",value:'Specifies where to display the linked URL. It is a name of, or keyword for, a _browsing context_: a tab, window, or `<iframe>`. The following keywords have special meanings:\n\n* `_self`: Load the URL into the same browsing context as the current one. This is the default behavior.\n* `_blank`: Load the URL into a new browsing context. This is usually a tab, but users can configure browsers to use new windows instead.\n* `_parent`: Load the URL into the parent browsing context of the current one. If there is no parent, this behaves the same way as `_self`.\n* `_top`: Load the URL into the top-level browsing context (that is, the "highest" browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this behaves the same way as `_self`.\n\n**Note:** When using `target`, consider adding `rel="noreferrer"` to avoid exploitation of the `window.opener` API.\n\n**Note:** Linking to another page using `target="_blank"` will run the new page on the same process as your page. If the new page is executing expensive JS, your page\'s performance may suffer. To avoid this use `rel="noopener"`.'}},{name:"download",description:{kind:"markdown",value:"This attribute instructs browsers to download a URL instead of navigating to it, so the user will be prompted to save it as a local file. If the attribute has a value, it is used as the pre-filled file name in the Save prompt (the user can still change the file name if they want). There are no restrictions on allowed values, though `/` and `\\` are converted to underscores. Most file systems limit some punctuation in file names, and browsers will adjust the suggested name accordingly.\n\n**Notes:**\n\n* This attribute only works for [same-origin URLs](https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy).\n* Although HTTP(s) URLs need to be in the same-origin, [`blob:` URLs](https://developer.mozilla.org/en-US/docs/Web/API/URL.createObjectURL) and [`data:` URLs](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs) are allowed so that content generated by JavaScript, such as pictures created in an image-editor Web app, can be downloaded.\n* If the HTTP header [`Content-Disposition:`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition) gives a different filename than this attribute, the HTTP header takes priority over this attribute.\n* If `Content-Disposition:` is set to `inline`, Firefox prioritizes `Content-Disposition`, like the filename case, while Chrome prioritizes the `download` attribute."}},{name:"ping",description:{kind:"markdown",value:'Contains a space-separated list of URLs to which, when the hyperlink is followed, [`POST`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST "The HTTP POST method sends data to the server. The type of the body of the request is indicated by the Content-Type header.") requests with the body `PING` will be sent by the browser (in the background). Typically used for tracking.'}},{name:"rel",description:{kind:"markdown",value:"Specifies the relationship of the target object to the link object. The value is a space-separated list of [link types](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types)."}},{name:"hreflang",description:{kind:"markdown",value:'This attribute indicates the human language of the linked resource. It is purely advisory, with no built-in functionality. Allowed values are determined by [BCP47](https://www.ietf.org/rfc/bcp/bcp47.txt "Tags for Identifying Languages").'}},{name:"type",description:{kind:"markdown",value:'Specifies the media type in the form of a [MIME type](https://developer.mozilla.org/en-US/docs/Glossary/MIME_type "MIME type: A\xa0MIME type\xa0(now properly called "media type", but\xa0also sometimes "content type") is a string sent along\xa0with a file indicating the type of the file (describing the content format, for example, a sound file might be labeled\xa0audio/ogg, or an image file\xa0image/png).") for the linked URL. It is purely advisory, with no built-in functionality.'}},{name:"referrerpolicy",description:"Indicates which [referrer](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer) to send when fetching the URL:\n\n* `'no-referrer'` means the `Referer:` header will not be sent.\n* `'no-referrer-when-downgrade'` means no `Referer:` header will be sent when navigating to an origin without HTTPS. This is the default behavior.\n* `'origin'` means the referrer will be the [origin](https://developer.mozilla.org/en-US/docs/Glossary/Origin) of the page, not including information after the domain.\n* `'origin-when-cross-origin'` meaning that navigations to other origins will be limited to the scheme, the host and the port, while navigations on the same origin will include the referrer's path.\n* `'strict-origin-when-cross-origin'`\n* `'unsafe-url'` means the referrer will include the origin and path, but not the fragment, password, or username. This is unsafe because it can leak data from secure URLs to insecure ones."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/a"}]},{name:"em",description:{kind:"markdown",value:"The em element represents stress emphasis of its contents."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/em"}]},{name:"strong",description:{kind:"markdown",value:"The strong element represents strong importance, seriousness, or urgency for its contents."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/strong"}]},{name:"small",description:{kind:"markdown",value:"The small element represents side comments such as small print."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/small"}]},{name:"s",description:{kind:"markdown",value:"The s element represents contents that are no longer accurate or no longer relevant."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/s"}]},{name:"cite",description:{kind:"markdown",value:"The cite element represents a reference to a creative work. It must include the title of the work or the name of the author(person, people or organization) or an URL reference, or a reference in abbreviated form as per the conventions used for the addition of citation metadata."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/cite"}]},{name:"q",description:{kind:"markdown",value:"The q element represents some phrasing content quoted from another source."},attributes:[{name:"cite",description:{kind:"markdown",value:"The value of this attribute is a URL that designates a source document or message for the information quoted. This attribute is intended to point to information explaining the context or the reference for the quote."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/q"}]},{name:"dfn",description:{kind:"markdown",value:"The dfn element represents the defining instance of a term. The paragraph, description list group, or section that is the nearest ancestor of the dfn element must also contain the definition(s) for the term given by the dfn element."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/dfn"}]},{name:"abbr",description:{kind:"markdown",value:"The abbr element represents an abbreviation or acronym, optionally with its expansion. The title attribute may be used to provide an expansion of the abbreviation. The attribute, if specified, must contain an expansion of the abbreviation, and nothing else."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/abbr"}]},{name:"ruby",description:{kind:"markdown",value:"The ruby element allows one or more spans of phrasing content to be marked with ruby annotations. Ruby annotations are short runs of text presented alongside base text, primarily used in East Asian typography as a guide for pronunciation or to include other annotations. In Japanese, this form of typography is also known as furigana. Ruby text can appear on either side, and sometimes both sides, of the base text, and it is possible to control its position using CSS. A more complete introduction to ruby can be found in the Use Cases & Exploratory Approaches for Ruby Markup document as well as in CSS Ruby Module Level 1. [RUBY-UC] [CSSRUBY]"},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/ruby"}]},{name:"rb",description:{kind:"markdown",value:"The rb element marks the base text component of a ruby annotation. When it is the child of a ruby element, it doesn't represent anything itself, but its parent ruby element uses it as part of determining what it represents."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/rb"}]},{name:"rt",description:{kind:"markdown",value:"The rt element marks the ruby text component of a ruby annotation. When it is the child of a ruby element or of an rtc element that is itself the child of a ruby element, it doesn't represent anything itself, but its ancestor ruby element uses it as part of determining what it represents."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/rt"}]},{name:"rp",description:{kind:"markdown",value:"The rp element is used to provide fallback text to be shown by user agents that don't support ruby annotations. One widespread convention is to provide parentheses around the ruby text component of a ruby annotation."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/rp"}]},{name:"time",description:{kind:"markdown",value:"The time element represents its contents, along with a machine-readable form of those contents in the datetime attribute. The kind of content is limited to various kinds of dates, times, time-zone offsets, and durations, as described below."},attributes:[{name:"datetime",description:{kind:"markdown",value:"This attribute indicates the time and/or date of the element and must be in one of the formats described below."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/time"}]},{name:"code",description:{kind:"markdown",value:"The code element represents a fragment of computer code. This could be an XML element name, a file name, a computer program, or any other string that a computer would recognize."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/code"}]},{name:"var",description:{kind:"markdown",value:"The var element represents a variable. This could be an actual variable in a mathematical expression or programming context, an identifier representing a constant, a symbol identifying a physical quantity, a function parameter, or just be a term used as a placeholder in prose."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/var"}]},{name:"samp",description:{kind:"markdown",value:"The samp element represents sample or quoted output from another program or computing system."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/samp"}]},{name:"kbd",description:{kind:"markdown",value:"The kbd element represents user input (typically keyboard input, although it may also be used to represent other input, such as voice commands)."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/kbd"}]},{name:"sub",description:{kind:"markdown",value:"The sub element represents a subscript."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/sub"}]},{name:"sup",description:{kind:"markdown",value:"The sup element represents a superscript."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/sup"}]},{name:"i",description:{kind:"markdown",value:"The i element represents a span of text in an alternate voice or mood, or otherwise offset from the normal prose in a manner indicating a different quality of text, such as a taxonomic designation, a technical term, an idiomatic phrase from another language, transliteration, a thought, or a ship name in Western texts."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/i"}]},{name:"b",description:{kind:"markdown",value:"The b element represents a span of text to which attention is being drawn for utilitarian purposes without conveying any extra importance and with no implication of an alternate voice or mood, such as key words in a document abstract, product names in a review, actionable words in interactive text-driven software, or an article lede."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/b"}]},{name:"u",description:{kind:"markdown",value:"The u element represents a span of text with an unarticulated, though explicitly rendered, non-textual annotation, such as labeling the text as being a proper name in Chinese text (a Chinese proper name mark), or labeling the text as being misspelt."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/u"}]},{name:"mark",description:{kind:"markdown",value:"The mark element represents a run of text in one document marked or highlighted for reference purposes, due to its relevance in another context. When used in a quotation or other block of text referred to from the prose, it indicates a highlight that was not originally present but which has been added to bring the reader's attention to a part of the text that might not have been considered important by the original author when the block was originally written, but which is now under previously unexpected scrutiny. When used in the main prose of a document, it indicates a part of the document that has been highlighted due to its likely relevance to the user's current activity."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/mark"}]},{name:"bdi",description:{kind:"markdown",value:"The bdi element represents a span of text that is to be isolated from its surroundings for the purposes of bidirectional text formatting. [BIDI]"},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/bdi"}]},{name:"bdo",description:{kind:"markdown",value:"The bdo element represents explicit text directionality formatting control for its children. It allows authors to override the Unicode bidirectional algorithm by explicitly specifying a direction override. [BIDI]"},attributes:[{name:"dir",description:"The direction in which text should be rendered in this element's contents. Possible values are:\n\n* `ltr`: Indicates that the text should go in a left-to-right direction.\n* `rtl`: Indicates that the text should go in a right-to-left direction."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/bdo"}]},{name:"span",description:{kind:"markdown",value:"The span element doesn't mean anything on its own, but can be useful when used together with the global attributes, e.g. class, lang, or dir. It represents its children."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/span"}]},{name:"br",description:{kind:"markdown",value:"The br element represents a line break."},void:!0,attributes:[{name:"clear",description:"Indicates where to begin the next line after the break."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/br"}]},{name:"wbr",description:{kind:"markdown",value:"The wbr element represents a line break opportunity."},void:!0,attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/wbr"}]},{name:"ins",description:{kind:"markdown",value:"The ins element represents an addition to the document."},attributes:[{name:"cite",description:"This attribute defines the URI of a resource that explains the change, such as a link to meeting minutes or a ticket in a troubleshooting system."},{name:"datetime",description:'This attribute indicates the time and date of the change and must be a valid date with an optional time string. If the value cannot be parsed as a date with an optional time string, the element does not have an associated time stamp. For the format of the string without a time, see [Format of a valid date string](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats#Format_of_a_valid_date_string "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article.") in [Date and time formats used in HTML](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article."). The format of the string if it includes both date and time is covered in [Format of a valid local date and time string](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats#Format_of_a_valid_local_date_and_time_string "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article.") in [Date and time formats used in HTML](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article.").'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/ins"}]},{name:"del",description:{kind:"markdown",value:"The del element represents a removal from the document."},attributes:[{name:"cite",description:{kind:"markdown",value:"A URI for a resource that explains the change (for example, meeting minutes)."}},{name:"datetime",description:{kind:"markdown",value:'This attribute indicates the time and date of the change and must be a valid date string with an optional time. If the value cannot be parsed as a date with an optional time string, the element does not have an associated time stamp. For the format of the string without a time, see [Format of a valid date string](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats#Format_of_a_valid_date_string "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article.") in [Date and time formats used in HTML](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article."). The format of the string if it includes both date and time is covered in [Format of a valid local date and time string](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats#Format_of_a_valid_local_date_and_time_string "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article.") in [Date and time formats used in HTML](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article.").'}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/del"}]},{name:"picture",description:{kind:"markdown",value:"The picture element is a container which provides multiple sources to its contained img element to allow authors to declaratively control or give hints to the user agent about which image resource to use, based on the screen pixel density, viewport size, image format, and other factors. It represents its children."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/picture"}]},{name:"img",description:{kind:"markdown",value:"An img element represents an image."},void:!0,attributes:[{name:"alt",description:{kind:"markdown",value:'This attribute defines an alternative text description of the image.\n\n**Note:** Browsers do not always display the image referenced by the element. This is the case for non-graphical browsers (including those used by people with visual impairments), if the user chooses not to display images, or if the browser cannot display the image because it is invalid or an [unsupported type](#Supported_image_formats). In these cases, the browser may replace the image with the text defined in this element\'s `alt` attribute. You should, for these reasons and others, provide a useful value for `alt` whenever possible.\n\n**Note:** Omitting this attribute altogether indicates that the image is a key part of the content, and no textual equivalent is available. Setting this attribute to an empty string (`alt=""`) indicates that this image is _not_ a key part of the content (decorative), and that non-visual browsers may omit it from rendering.'}},{name:"src",description:{kind:"markdown",value:"The image URL. This attribute is mandatory for the `<img>` element. On browsers supporting `srcset`, `src` is treated like a candidate image with a pixel density descriptor `1x` unless an image with this pixel density descriptor is already defined in `srcset,` or unless `srcset` contains '`w`' descriptors."}},{name:"srcset",description:{kind:"markdown",value:"A list of one or more strings separated by commas indicating a set of possible image sources for the user agent to use. Each string is composed of:\n\n1. a URL to an image,\n2. optionally, whitespace followed by one of:\n * A width descriptor, or a positive integer directly followed by '`w`'. The width descriptor is divided by the source size given in the `sizes` attribute to calculate the effective pixel density.\n * A pixel density descriptor, which is a positive floating point number directly followed by '`x`'.\n\nIf no descriptor is specified, the source is assigned the default descriptor: `1x`.\n\nIt is incorrect to mix width descriptors and pixel density descriptors in the same `srcset` attribute. Duplicate descriptors (for instance, two sources in the same `srcset` which are both described with '`2x`') are also invalid.\n\nThe user agent selects any one of the available sources at its discretion. This provides them with significant leeway to tailor their selection based on things like user preferences or bandwidth conditions. See our [Responsive images](https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images) tutorial for an example."}},{name:"crossorigin",valueSet:"xo",description:{kind:"markdown",value:'This enumerated attribute indicates if the fetching of the related image must be done using CORS or not. [CORS-enabled images](https://developer.mozilla.org/en-US/docs/CORS_Enabled_Image) can be reused in the [`<canvas>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas "Use the HTML <canvas> element with either the canvas scripting API or the WebGL API to draw graphics and animations.") element without being "[tainted](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image#What_is_a_tainted_canvas)." The allowed values are:\n`anonymous`\n\nA cross-origin request (i.e., with `Origin:` HTTP header) is performed, but no credential is sent (i.e., no cookie, X.509 certificate, or HTTP Basic authentication). If the server does not give credentials to the origin site (by not setting the [`Access-Control-Allow-Origin`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin "The Access-Control-Allow-Origin response header indicates whether the response can be shared with requesting code from the given origin.") HTTP header), the image will be tainted and its usage restricted.\n\n`use-credentials`\n\nA cross-origin request (i.e., with the [`Origin`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin "The Origin request header indicates where a fetch originates from. It doesn\'t include any path information, but only the server name. It is sent with CORS requests, as well as with POST requests. It is similar to the Referer header, but, unlike this header, it doesn\'t disclose the whole path.") HTTP header) performed along with credentials sent (i.e., a cookie, certificate, or HTTP Basic authentication). If the server does not give credentials to the origin site (through the `Access-Control-Allow-Credentials` HTTP header), the image will be tainted and its usage restricted.\n\nIf the attribute is not present, the resource is fetched without a CORS request (i.e., without sending the `Origin` HTTP header), preventing its non-tainted usage in [`<canvas>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas "Use the HTML <canvas> element with either the canvas scripting API or the WebGL API to draw graphics and animations.") elements. If invalid, it is handled as if the `anonymous` value was used. See [CORS settings attributes](https://developer.mozilla.org/en-US/docs/HTML/CORS_settings_attributes) for additional information.'}},{name:"usemap",description:{kind:"markdown",value:'The partial URL (starting with \'#\') of an [image map](https://developer.mozilla.org/en-US/docs/HTML/Element/map) associated with the element.\n\n**Note:** You cannot use this attribute if the `<img>` element is a descendant of an [`<a>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a "The HTML <a> element (or anchor element) creates a hyperlink to other web pages, files, locations within the same page, email addresses, or any other URL.") or [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") element.'}},{name:"ismap",valueSet:"v",description:{kind:"markdown",value:'This Boolean attribute indicates that the image is part of a server-side map. If so, the precise coordinates of a click are sent to the server.\n\n**Note:** This attribute is allowed only if the `<img>` element is a descendant of an [`<a>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a "The HTML <a> element (or anchor element) creates a hyperlink to other web pages, files, locations within the same page, email addresses, or any other URL.") element with a valid [`href`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href) attribute.'}},{name:"width",description:{kind:"markdown",value:"The intrinsic width of the image in pixels."}},{name:"height",description:{kind:"markdown",value:"The intrinsic height of the image in pixels."}},{name:"decoding",valueSet:"decoding",description:{kind:"markdown",value:"Provides an image decoding hint to the browser. The allowed values are:\n`sync`\n\nDecode the image synchronously for atomic presentation with other content.\n\n`async`\n\nDecode the image asynchronously to reduce delay in presenting other content.\n\n`auto`\n\nDefault mode, which indicates no preference for the decoding mode. The browser decides what is best for the user."}},{name:"loading",valueSet:"loading",description:{kind:"markdown",value:"Indicates how the browser should load the image."}},{name:"referrerpolicy",valueSet:"referrerpolicy",description:{kind:"markdown",value:"A string indicating which referrer to use when fetching the resource:\n\n* `no-referrer:` The [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer \"The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.\") header will not be sent.\n* `no-referrer-when-downgrade:` No `Referer` header will be sent when navigating to an origin without TLS (HTTPS). This is a user agent\u2019s default behavior if no policy is otherwise specified.\n* `origin:` The `Referer` header will include the page of origin's scheme, the host, and the port.\n* `origin-when-cross-origin:` Navigating to other origins will limit the included referral data to the scheme, the host and the port, while navigating from the same origin will include the referrer's full path.\n* `unsafe-url:` The `Referer` header will include the origin and the path, but not the fragment, password, or username. This case is unsafe because it can leak origins and paths from TLS-protected resources to insecure origins."}},{name:"sizes",description:{kind:"markdown",value:"A list of one or more strings separated by commas indicating a set of source sizes. Each source size consists of:\n\n1. a media condition. This must be omitted for the last item.\n2. a source size value.\n\nSource size values specify the intended display size of the image. User agents use the current source size to select one of the sources supplied by the `srcset` attribute, when those sources are described using width ('`w`') descriptors. The selected source size affects the intrinsic size of the image (the image\u2019s display size if no CSS styling is applied). If the `srcset` attribute is absent, or contains no values with a width (`w`) descriptor, then the `sizes` attribute has no effect."}},{name:"importance",description:"Indicates the relative importance of the resource. Priority hints are delegated using the values:"},{name:"importance",description:"`auto`: Indicates\xa0**no\xa0preference**. The browser may use its own heuristics to decide the priority of the image.\n\n`high`: Indicates to the\xa0browser\xa0that the image is of\xa0**high** priority.\n\n`low`:\xa0Indicates to the\xa0browser\xa0that the image is of\xa0**low** priority."},{name:"intrinsicsize",description:"This attribute tells the browser to ignore the actual intrinsic size of the image and pretend it\u2019s the size specified in the attribute. Specifically, the image would raster at these dimensions and `naturalWidth`/`naturalHeight` on images would return the values specified in this attribute. [Explainer](https://github.com/ojanvafai/intrinsicsize-attribute), [examples](https://googlechrome.github.io/samples/intrinsic-size/index.html)"}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/img"}]},{name:"iframe",description:{kind:"markdown",value:"The iframe element represents a nested browsing context."},attributes:[{name:"src",description:{kind:"markdown",value:'The URL of the page to embed. Use a value of `about:blank` to embed an empty page that conforms to the [same-origin policy](https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy#Inherited_origins). Also note that programatically removing an `<iframe>`\'s src attribute (e.g. via [`Element.removeAttribute()`](https://developer.mozilla.org/en-US/docs/Web/API/Element/removeAttribute "The Element method removeAttribute() removes the attribute with the specified name from the element.")) causes `about:blank` to be loaded in the frame in Firefox (from version 65), Chromium-based browsers, and Safari/iOS.'}},{name:"srcdoc",description:{kind:"markdown",value:"Inline HTML to embed, overriding the `src` attribute. If a browser does not support the `srcdoc` attribute, it will fall back to the URL in the `src` attribute."}},{name:"name",description:{kind:"markdown",value:'A targetable name for the embedded browsing context. This can be used in the `target` attribute of the [`<a>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a "The HTML <a> element (or anchor element) creates a hyperlink to other web pages, files, locations within the same page, email addresses, or any other URL."), [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server."), or [`<base>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base "The HTML <base> element specifies the base URL to use for all relative URLs contained within a document. There can be only one <base> element in a document.") elements; the `formtarget` attribute of the [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") or [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") elements; or the `windowName` parameter in the [`window.open()`](https://developer.mozilla.org/en-US/docs/Web/API/Window/open "The\xa0Window interface\'s open() method loads the specified resource into the browsing context (window, <iframe> or tab) with the specified name. If the name doesn\'t exist, then a new window is opened and the specified resource is loaded into its browsing context.") method.'}},{name:"sandbox",valueSet:"sb",description:{kind:"markdown",value:'Applies extra restrictions to the content in the frame. The value of the attribute can either be empty to apply all restrictions, or space-separated tokens to lift particular restrictions:\n\n* `allow-forms`: Allows the resource to submit forms. If this keyword is not used, form submission is blocked.\n* `allow-modals`: Lets the resource [open modal windows](https://html.spec.whatwg.org/multipage/origin.html#sandboxed-modals-flag).\n* `allow-orientation-lock`: Lets the resource [lock the screen orientation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/lockOrientation).\n* `allow-pointer-lock`: Lets the resource use the [Pointer Lock API](https://developer.mozilla.org/en-US/docs/WebAPI/Pointer_Lock).\n* `allow-popups`: Allows popups (such as `window.open()`, `target="_blank"`, or `showModalDialog()`). If this keyword is not used, the popup will silently fail to open.\n* `allow-popups-to-escape-sandbox`: Lets the sandboxed document open new windows without those windows inheriting the sandboxing. For example, this can safely sandbox an advertisement without forcing the same restrictions upon the page the ad links to.\n* `allow-presentation`: Lets the resource start a [presentation session](https://developer.mozilla.org/en-US/docs/Web/API/PresentationRequest).\n* `allow-same-origin`: If this token is not used, the resource is treated as being from a special origin that always fails the [same-origin policy](https://developer.mozilla.org/en-US/docs/Glossary/same-origin_policy "same-origin policy: The same-origin policy is a critical security mechanism that restricts how a document or script loaded from one origin can interact with a resource from another origin.").\n* `allow-scripts`: Lets the resource run scripts (but not create popup windows).\n* `allow-storage-access-by-user-activation` : Lets the resource request access to the parent\'s storage capabilities with the [Storage Access API](https://developer.mozilla.org/en-US/docs/Web/API/Storage_Access_API).\n* `allow-top-navigation`: Lets the resource navigate the top-level browsing context (the one named `_top`).\n* `allow-top-navigation-by-user-activation`: Lets the resource navigate the top-level browsing context, but only if initiated by a user gesture.\n\n**Notes about sandboxing:**\n\n* When the embedded document has the same origin as the embedding page, it is **strongly discouraged** to use both `allow-scripts` and `allow-same-origin`, as that lets the embedded document remove the `sandbox` attribute \u2014 making it no more secure than not using the `sandbox` attribute at all.\n* Sandboxing is useless if the attacker can display content outside a sandboxed `iframe` \u2014 such as if the viewer opens the frame in a new tab. Such content should be also served from a _separate origin_ to limit potential damage.\n* The `sandbox` attribute is unsupported in Internet Explorer 9 and earlier.'}},{name:"seamless",valueSet:"v"},{name:"allowfullscreen",valueSet:"v",description:{kind:"markdown",value:'Set to `true` if the `<iframe>` can activate fullscreen mode by calling the [`requestFullscreen()`](https://developer.mozilla.org/en-US/docs/Web/API/Element/requestFullscreen "The Element.requestFullscreen() method issues an asynchronous request to make the element be displayed in full-screen mode.") method.\nThis attribute is considered a legacy attribute and redefined as `allow="fullscreen"`.'}},{name:"width",description:{kind:"markdown",value:"The width of the frame in CSS pixels. Default is `300`."}},{name:"height",description:{kind:"markdown",value:"The height of the frame in CSS pixels. Default is `150`."}},{name:"allow",description:"Specifies a [feature policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/Feature_Policy) for the `<iframe>`."},{name:"allowpaymentrequest",description:"Set to `true` if a cross-origin `<iframe>` should be allowed to invoke the [Payment Request API](https://developer.mozilla.org/en-US/docs/Web/API/Payment_Request_API)."},{name:"allowpaymentrequest",description:'This attribute is considered a legacy attribute and redefined as `allow="payment"`.'},{name:"csp",description:'A [Content Security Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP) enforced for the embedded resource. See [`HTMLIFrameElement.csp`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/csp "The csp property of the HTMLIFrameElement interface specifies the Content Security Policy that an embedded document must agree to enforce upon itself.") for details.'},{name:"importance",description:"The download priority of the resource in the `<iframe>`'s `src` attribute. Allowed values:\n\n`auto` (default)\n\nNo preference. The browser uses its own heuristics to decide the priority of the resource.\n\n`high`\n\nThe resource should be downloaded before other lower-priority page resources.\n\n`low`\n\nThe resource should be downloaded after other higher-priority page resources."},{name:"referrerpolicy",description:'Indicates which [referrer](https://developer.mozilla.org/en-US/docs/Web/API/Document/referrer) to send when fetching the frame\'s resource:\n\n* `no-referrer`: The [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will not be sent.\n* `no-referrer-when-downgrade` (default): The [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will not be sent to [origin](https://developer.mozilla.org/en-US/docs/Glossary/origin "origin: Web content\'s origin is defined by the scheme (protocol), host (domain), and port of the URL used to access it. Two objects have the same origin only when the scheme, host, and port all match.")s without [TLS](https://developer.mozilla.org/en-US/docs/Glossary/TLS "TLS: Transport Layer Security (TLS), previously known as Secure Sockets Layer (SSL), is a protocol used by applications to communicate securely across a network, preventing tampering with and eavesdropping on email, web browsing, messaging, and other protocols.") ([HTTPS](https://developer.mozilla.org/en-US/docs/Glossary/HTTPS "HTTPS: HTTPS (HTTP Secure) is an encrypted version of the HTTP protocol. It usually uses SSL or TLS to encrypt all communication between a client and a server. This secure connection allows clients to safely exchange sensitive data with a server, for example for banking activities or online shopping.")).\n* `origin`: The sent referrer will be limited to the origin of the referring page: its [scheme](https://developer.mozilla.org/en-US/docs/Archive/Mozilla/URIScheme), [host](https://developer.mozilla.org/en-US/docs/Glossary/host "host: A host is a device connected to the Internet (or a local network). Some hosts called servers offer additional services like serving webpages or storing files and emails."), and [port](https://developer.mozilla.org/en-US/docs/Glossary/port "port: For a computer connected to a network with an IP address, a port is a communication endpoint. Ports are designated by numbers, and below 1024 each port is associated by default with a specific protocol.").\n* `origin-when-cross-origin`: The referrer sent to other origins will be limited to the scheme, the host, and the port. Navigations on the same origin will still include the path.\n* `same-origin`: A referrer will be sent for [same origin](https://developer.mozilla.org/en-US/docs/Glossary/Same-origin_policy "same origin: The same-origin policy is a critical security mechanism that restricts how a document or script loaded from one origin can interact with a resource from another origin."), but cross-origin requests will contain no referrer information.\n* `strict-origin`: Only send the origin of the document as the referrer when the protocol security level stays the same (HTTPS\u2192HTTPS), but don\'t send it to a less secure destination (HTTPS\u2192HTTP).\n* `strict-origin-when-cross-origin`: Send a full URL when performing a same-origin request, only send the origin when the protocol security level stays the same (HTTPS\u2192HTTPS), and send no header to a less secure destination (HTTPS\u2192HTTP).\n* `unsafe-url`: The referrer will include the origin _and_ the path (but not the [fragment](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/hash), [password](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/password), or [username](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/username)). **This value is unsafe**, because it leaks origins and paths from TLS-protected resources to insecure origins.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/iframe"}]},{name:"embed",description:{kind:"markdown",value:"The embed element provides an integration point for an external (typically non-HTML) application or interactive content."},void:!0,attributes:[{name:"src",description:{kind:"markdown",value:"The URL\xa0of the resource being embedded."}},{name:"type",description:{kind:"markdown",value:"The MIME\xa0type to use to select the plug-in to instantiate."}},{name:"width",description:{kind:"markdown",value:"The displayed width of the resource, in [CSS pixels](https://drafts.csswg.org/css-values/#px). This must be an absolute value; percentages are _not_ allowed."}},{name:"height",description:{kind:"markdown",value:"The displayed height of the resource, in [CSS pixels](https://drafts.csswg.org/css-values/#px). This must be an absolute value; percentages are _not_ allowed."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/embed"}]},{name:"object",description:{kind:"markdown",value:"The object element can represent an external resource, which, depending on the type of the resource, will either be treated as an image, as a nested browsing context, or as an external resource to be processed by a plugin."},attributes:[{name:"data",description:{kind:"markdown",value:"The address of the resource as a valid URL. At least one of **data** and **type** must be defined."}},{name:"type",description:{kind:"markdown",value:"The [content type](https://developer.mozilla.org/en-US/docs/Glossary/Content_type) of the resource specified by **data**. At least one of **data** and **type** must be defined."}},{name:"typemustmatch",valueSet:"v",description:{kind:"markdown",value:"This Boolean attribute indicates if the **type** attribute and the actual [content type](https://developer.mozilla.org/en-US/docs/Glossary/Content_type) of the resource must match to be used."}},{name:"name",description:{kind:"markdown",value:"The name of valid browsing context (HTML5), or the name of the control (HTML 4)."}},{name:"usemap",description:{kind:"markdown",value:"A hash-name reference to a [`<map>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/map \"The HTML <map> element is used with <area> elements to define an image map (a clickable link area).\") element; that is a '#' followed by the value of a [`name`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/map#attr-name) of a map element."}},{name:"form",description:{kind:"markdown",value:'The form element, if any, that the object element is associated with (its _form owner_). The value of the attribute must be an ID of a [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") element in the same document.'}},{name:"width",description:{kind:"markdown",value:"The width of the display resource, in [CSS pixels](https://drafts.csswg.org/css-values/#px). -- (Absolute values only. [NO percentages](https://html.spec.whatwg.org/multipage/embedded-content.html#dimension-attributes))"}},{name:"height",description:{kind:"markdown",value:"The height of the displayed resource, in [CSS pixels](https://drafts.csswg.org/css-values/#px). -- (Absolute values only. [NO percentages](https://html.spec.whatwg.org/multipage/embedded-content.html#dimension-attributes))"}},{name:"archive",description:"A space-separated list of URIs for archives of resources for the object."},{name:"border",description:"The width of a border around the control, in pixels."},{name:"classid",description:"The URI of the object's implementation. It can be used together with, or in place of, the **data** attribute."},{name:"codebase",description:"The base path used to resolve relative URIs specified by **classid**, **data**, or **archive**. If not specified, the default is the base URI of the current document."},{name:"codetype",description:"The content type of the data specified by **classid**."},{name:"declare",description:"The presence of this Boolean attribute makes this element a declaration only. The object must be instantiated by a subsequent `<object>` element. In HTML5, repeat the <object> element completely each that that the resource is reused."},{name:"standby",description:"A message that the browser can show while loading the object's implementation and data."},{name:"tabindex",description:"The position of the element in the tabbing navigation order for the current document."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/object"}]},{name:"param",description:{kind:"markdown",value:"The param element defines parameters for plugins invoked by object elements. It does not represent anything on its own."},void:!0,attributes:[{name:"name",description:{kind:"markdown",value:"Name of the parameter."}},{name:"value",description:{kind:"markdown",value:"Specifies the value of the parameter."}},{name:"type",description:'Only used if the `valuetype` is set to "ref". Specifies the MIME type of values found at the URI specified by value.'},{name:"valuetype",description:'Specifies the type of the `value` attribute. Possible values are:\n\n* data: Default value. The value is passed to the object\'s implementation as a string.\n* ref: The value is a URI to a resource where run-time values are stored.\n* object: An ID of another [`<object>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/object "The HTML <object> element represents an external resource, which can be treated as an image, a nested browsing context, or a resource to be handled by a plugin.") in the same document.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/param"}]},{name:"video",description:{kind:"markdown",value:"A video element is used for playing videos or movies, and audio files with captions."},attributes:[{name:"src"},{name:"crossorigin",valueSet:"xo"},{name:"poster"},{name:"preload",valueSet:"pl"},{name:"autoplay",valueSet:"v",description:{kind:"markdown",value:'A Boolean attribute; if specified, the video automatically begins to play back as soon as it can do so without stopping to finish loading the data.\n**Note**: Sites that automatically play audio (or video with an audio track) can be an unpleasant experience for users, so it should be avoided when possible. If you must offer autoplay functionality, you should make it opt-in (requiring a user to specifically enable it). However, this can be useful when creating media elements whose source will be set at a later time, under user control.\n\nTo disable video autoplay, `autoplay="false"` will not work; the video will autoplay if the attribute is there in the `<video>` tag at all. To remove autoplay the attribute needs to be removed altogether.\n\nIn some browsers (e.g. Chrome 70.0) autoplay is not working if no `muted` attribute is present.'}},{name:"mediagroup"},{name:"loop",valueSet:"v"},{name:"muted",valueSet:"v"},{name:"controls",valueSet:"v"},{name:"width"},{name:"height"}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/video"}]},{name:"audio",description:{kind:"markdown",value:"An audio element represents a sound or audio stream."},attributes:[{name:"src",description:{kind:"markdown",value:'The URL of the audio to embed. This is subject to [HTTP access controls](https://developer.mozilla.org/en-US/docs/HTTP_access_control). This is optional; you may instead use the [`<source>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source "The HTML <source> element specifies multiple media resources for the <picture>, the <audio> element, or the <video> element.") element within the audio block to specify the audio to embed.'}},{name:"crossorigin",valueSet:"xo",description:{kind:"markdown",value:'This enumerated attribute indicates whether to use CORS to fetch the related image. [CORS-enabled resources](https://developer.mozilla.org/en-US/docs/CORS_Enabled_Image) can be reused in the [`<canvas>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas "Use the HTML <canvas> element with either the canvas scripting API or the WebGL API to draw graphics and animations.") element without being _tainted_. The allowed values are:\n\nanonymous\n\nSends a cross-origin request without a credential. In other words, it sends the `Origin:` HTTP header without a cookie, X.509 certificate, or performing HTTP Basic authentication. If the server does not give credentials to the origin site (by not setting the `Access-Control-Allow-Origin:` HTTP header), the image will be _tainted_, and its usage restricted.\n\nuse-credentials\n\nSends a cross-origin request with a credential. In other words, it sends the `Origin:` HTTP header with a cookie, a certificate, or performing HTTP Basic authentication. If the server does not give credentials to the origin site (through `Access-Control-Allow-Credentials:` HTTP header), the image will be _tainted_ and its usage restricted.\n\nWhen not present, the resource is fetched without a CORS request (i.e. without sending the `Origin:` HTTP header), preventing its non-tainted used in [`<canvas>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas "Use the HTML <canvas> element with either the canvas scripting API or the WebGL API to draw graphics and animations.") elements. If invalid, it is handled as if the enumerated keyword **anonymous** was used. See [CORS settings attributes](https://developer.mozilla.org/en-US/docs/HTML/CORS_settings_attributes) for additional information.'}},{name:"preload",valueSet:"pl",description:{kind:"markdown",value:"This enumerated attribute is intended to provide a hint to the browser about what the author thinks will lead to the best user experience. It may have one of the following values:\n\n* `none`: Indicates that the audio should not be preloaded.\n* `metadata`: Indicates that only audio metadata (e.g. length) is fetched.\n* `auto`: Indicates that the whole audio file can be downloaded, even if the user is not expected to use it.\n* _empty string_: A synonym of the `auto` value.\n\nIf not set, `preload`'s default value is browser-defined (i.e. each browser may have its own default value). The spec advises it to be set to `metadata`.\n\n**Usage notes:**\n\n* The `autoplay` attribute has precedence over\xa0`preload`. If `autoplay` is specified, the browser would obviously need to start downloading the audio for playback.\n* The browser is not forced by the specification to follow the value of this attribute; it is a mere hint."}},{name:"autoplay",valueSet:"v",description:{kind:"markdown",value:"A Boolean attribute:\xa0if specified, the audio will automatically begin playback as soon as it can do so, without waiting for the entire audio file to finish downloading.\n\n**Note**: Sites that automatically play audio (or videos with an audio track) can be an unpleasant experience for users, so should be avoided when possible. If you must offer autoplay functionality, you should make it opt-in (requiring a user to specifically enable it). However, this can be useful when creating media elements whose source will be set at a later time, under user control."}},{name:"mediagroup"},{name:"loop",valueSet:"v",description:{kind:"markdown",value:"A Boolean attribute:\xa0if specified, the audio player will\xa0automatically seek back to the start\xa0upon reaching the end of the audio."}},{name:"muted",valueSet:"v",description:{kind:"markdown",value:"A Boolean attribute that indicates whether the audio will be initially silenced. Its default value is `false`."}},{name:"controls",valueSet:"v",description:{kind:"markdown",value:"If this attribute is present, the browser will offer controls to allow the user to control audio playback, including volume, seeking, and pause/resume playback."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/audio"}]},{name:"source",description:{kind:"markdown",value:"The source element allows authors to specify multiple alternative media resources for media elements. It does not represent anything on its own."},void:!0,attributes:[{name:"src",description:{kind:"markdown",value:'Required for [`<audio>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio "The HTML <audio> element is used to embed sound content in documents. It may contain one or more audio sources, represented using the src attribute or the <source> element:\xa0the browser will choose the most suitable one. It can also be the destination for streamed media, using a MediaStream.") and [`<video>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video "The HTML Video element (<video>) embeds a media player which supports video playback into the document."), address of the media resource. The value of this attribute is ignored when the `<source>` element is placed inside a [`<picture>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture "The HTML <picture> element contains zero or more <source> elements and one <img> element to provide versions of an image for different display/device scenarios.") element.'}},{name:"type",description:{kind:"markdown",value:"The MIME-type of the resource, optionally with a `codecs` parameter. See [RFC 4281](https://tools.ietf.org/html/rfc4281) for information about how to specify codecs."}},{name:"sizes",description:'Is a list of source sizes that describes the final rendered width of the image represented by the source. Each source size consists of a comma-separated list of media condition-length pairs. This information is used by the browser to determine, before laying the page out, which image defined in [`srcset`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source#attr-srcset) to use. \nThe `sizes` attribute has an effect only when the [`<source>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source "The HTML <source> element specifies multiple media resources for the <picture>, the <audio> element, or the <video> element.") element is the direct child of a [`<picture>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture "The HTML <picture> element contains zero or more <source> elements and one <img> element to provide versions of an image for different display/device scenarios.") element.'},{name:"srcset",description:"A list of one or more strings separated by commas indicating a set of possible images represented by the source for the browser to use. Each string is composed of:\n\n1. one URL to an image,\n2. a width descriptor, that is a positive integer directly followed by `'w'`. The default value, if missing, is the infinity.\n3. a pixel density descriptor, that is a positive floating number directly followed by `'x'`. The default value, if missing, is `1x`.\n\nEach string in the list must have at least a width descriptor or a pixel density descriptor to be valid. Among the list, there must be only one string containing the same tuple of width descriptor and pixel density descriptor. \nThe browser chooses the most adequate image to display at a given point of time. \nThe `srcset` attribute has an effect only when the [`<source>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source \"The HTML <source> element specifies multiple media resources for the <picture>, the <audio> element, or the <video> element.\") element is the direct child of a [`<picture>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture \"The HTML <picture> element contains zero or more <source> elements and one <img> element to provide versions of an image for different display/device scenarios.\") element."},{name:"media",description:'[Media query](https://developer.mozilla.org/en-US/docs/CSS/Media_queries) of the resource\'s intended media; this should be used only in a [`<picture>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture "The HTML <picture> element contains zero or more <source> elements and one <img> element to provide versions of an image for different display/device scenarios.") element.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/source"}]},{name:"track",description:{kind:"markdown",value:"The track element allows authors to specify explicit external timed text tracks for media elements. It does not represent anything on its own."},void:!0,attributes:[{name:"default",valueSet:"v",description:{kind:"markdown",value:"This attribute indicates that the track should be enabled unless the user's preferences indicate that another track is more appropriate. This may only be used on one `track` element per media element."}},{name:"kind",valueSet:"tk",description:{kind:"markdown",value:"How the text track is meant to be used. If omitted the default kind is `subtitles`. If the attribute is not present, it will use the `subtitles`. If the attribute contains an invalid value, it will use `metadata`. (Versions of Chrome earlier than 52 treated an invalid value as `subtitles`.)\xa0The following keywords are allowed:\n\n* `subtitles`\n * Subtitles provide translation of content that cannot be understood by the viewer. For example dialogue or text that is not English in an English language film.\n * Subtitles may contain additional content, usually extra background information. For example the text at the beginning of the Star Wars films, or the date, time, and location of a scene.\n* `captions`\n * Closed captions provide a transcription and possibly a translation of audio.\n * It may include important non-verbal information such as music cues or sound effects. It may indicate the cue's source (e.g. music, text, character).\n * Suitable for users who are deaf or when the sound is muted.\n* `descriptions`\n * Textual description of the video content.\n * Suitable for users who are blind or where the video cannot be seen.\n* `chapters`\n * Chapter titles are intended to be used when the user is navigating the media resource.\n* `metadata`\n * Tracks used by scripts. Not visible to the user."}},{name:"label",description:{kind:"markdown",value:"A user-readable title of the text track which is used by the browser when listing available text tracks."}},{name:"src",description:{kind:"markdown",value:'Address of the track (`.vtt` file). Must be a valid URL. This attribute must be specified and its URL value must have the same origin as the document \u2014 unless the [`<audio>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio "The HTML <audio> element is used to embed sound content in documents. It may contain one or more audio sources, represented using the src attribute or the <source> element:\xa0the browser will choose the most suitable one. It can also be the destination for streamed media, using a MediaStream.") or [`<video>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video "The HTML Video element (<video>) embeds a media player which supports video playback into the document.") parent element of the `track` element has a [`crossorigin`](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) attribute.'}},{name:"srclang",description:{kind:"markdown",value:"Language of the track text data. It must be a valid [BCP 47](https://r12a.github.io/app-subtags/) language tag. If the `kind` attribute is set to\xa0`subtitles,` then `srclang` must be defined."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/track"}]},{name:"map",description:{kind:"markdown",value:"The map element, in conjunction with an img element and any area element descendants, defines an image map. The element represents its children."},attributes:[{name:"name",description:{kind:"markdown",value:"The name attribute gives the map a name so that it can be referenced. The attribute must be present and must have a non-empty value with no space characters. The value of the name attribute must not be a compatibility-caseless match for the value of the name attribute of another map element in the same document. If the id attribute is also specified, both attributes must have the same value."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/map"}]},{name:"area",description:{kind:"markdown",value:"The area element represents either a hyperlink with some text and a corresponding area on an image map, or a dead area on an image map."},void:!0,attributes:[{name:"alt"},{name:"coords"},{name:"shape",valueSet:"sh"},{name:"href"},{name:"target",valueSet:"target"},{name:"download"},{name:"ping"},{name:"rel"},{name:"hreflang"},{name:"type"},{name:"accesskey",description:"Specifies a keyboard navigation accelerator for the element. Pressing ALT or a similar key in association with the specified character selects the form control correlated with that key sequence. Page designers are forewarned to avoid key sequences already bound to browsers. This attribute is global since HTML5."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/area"}]},{name:"table",description:{kind:"markdown",value:"The table element represents data with more than one dimension, in the form of a table."},attributes:[{name:"border"},{name:"align",description:'This enumerated attribute indicates how the table must be aligned inside the containing document. It may have the following values:\n\n* left: the table is displayed on the left side of the document;\n* center: the table is displayed in the center of the document;\n* right: the table is displayed on the right side of the document.\n\n**Usage Note**\n\n* **Do not use this attribute**, as it has been deprecated. The [`<table>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/table "The HTML <table> element represents tabular data \u2014 that is, information presented in a two-dimensional table comprised of rows and columns of cells containing data.") element should be styled using [CSS](https://developer.mozilla.org/en-US/docs/CSS). Set [`margin-left`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left "The margin-left CSS property sets the margin area on the left side of an element. A positive value places it farther from its neighbors, while a negative value places it closer.") and [`margin-right`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-right "The margin-right CSS property sets the margin area on the right side of an element. A positive value places it farther from its neighbors, while a negative value places it closer.") to `auto` or [`margin`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin "The margin CSS property sets the margin area on all four sides of an element. It is a shorthand for margin-top, margin-right, margin-bottom, and margin-left.") to `0 auto` to achieve an effect that is similar to the align attribute.\n* Prior to Firefox 4, Firefox also supported the `middle`, `absmiddle`, and `abscenter` values as synonyms of `center`, in quirks mode only.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/table"}]},{name:"caption",description:{kind:"markdown",value:"The caption element represents the title of the table that is its parent, if it has a parent and that is a table element."},attributes:[{name:"align",description:'This enumerated attribute indicates how the caption must be aligned with respect to the table. It may have one of the following values:\n\n`left`\n\nThe caption is displayed to the left of the table.\n\n`top`\n\nThe caption is displayed above the table.\n\n`right`\n\nThe caption is displayed to the right of the table.\n\n`bottom`\n\nThe caption is displayed below the table.\n\n**Usage note:** Do not use this attribute, as it has been deprecated. The [`<caption>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/caption "The HTML Table Caption element (<caption>) specifies the caption (or title) of a table, and if used is always the first child of a <table>.") element should be styled using the [CSS](https://developer.mozilla.org/en-US/docs/CSS) properties [`caption-side`](https://developer.mozilla.org/en-US/docs/Web/CSS/caption-side "The caption-side CSS property puts the content of a table\'s <caption> on the specified side. The values are relative to the writing-mode of the table.") and [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.").'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/caption"}]},{name:"colgroup",description:{kind:"markdown",value:"The colgroup element represents a group of one or more columns in the table that is its parent, if it has a parent and that is a table element."},attributes:[{name:"span"},{name:"align",description:'This enumerated attribute specifies how horizontal alignment of each column cell content will be handled. Possible values are:\n\n* `left`, aligning the content to the left of the cell\n* `center`, centering the content in the cell\n* `right`, aligning the content to the right of the cell\n* `justify`, inserting spaces into the textual content so that the content is justified in the cell\n* `char`, aligning the textual content on a special character with a minimal offset, defined by the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col#attr-charoff) attributes Unimplemented (see [bug\xa02212](https://bugzilla.mozilla.org/show_bug.cgi?id=2212 "character alignment not implemented (align=char, charoff=, text-align:<string>)")).\n\nIf this attribute is not set, the `left` value is assumed. The descendant [`<col>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col "The HTML <col> element defines a column within a table and is used for defining common semantics on all common cells. It is generally found within a <colgroup> element.") elements may override this value using their own [`align`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col#attr-align) attribute.\n\n**Note:** Do not use this attribute as it is obsolete (not supported) in the latest standard.\n\n* To achieve the same effect as the `left`, `center`, `right` or `justify` values:\n * Do not try to set the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property on a selector giving a [`<colgroup>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/colgroup "The HTML <colgroup> element defines a group of columns within a table.") element. Because [`<td>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td "The HTML <td> element defines a cell of a table that contains data. It participates in the table model.") elements are not descendant of the [`<colgroup>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/colgroup "The HTML <colgroup> element defines a group of columns within a table.") element, they won\'t inherit it.\n * If the table doesn\'t use a [`colspan`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-colspan) attribute, use one `td:nth-child(an+b)` CSS selector per column, where a is the total number of the columns in the table and b is the ordinal position of this column in the table. Only after this selector the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property can be used.\n * If the table does use a [`colspan`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-colspan) attribute, the effect can be achieved by combining adequate CSS attribute selectors like `[colspan=n]`, though this is not trivial.\n* To achieve the same effect as the `char` value, in CSS3, you can use the value of the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/colgroup#attr-char) as the value of the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property Unimplemented.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/colgroup"}]},{name:"col",description:{kind:"markdown",value:"If a col element has a parent and that is a colgroup element that itself has a parent that is a table element, then the col element represents one or more columns in the column group represented by that colgroup."},void:!0,attributes:[{name:"span"},{name:"align",description:'This enumerated attribute specifies how horizontal alignment of each column cell content will be handled. Possible values are:\n\n* `left`, aligning the content to the left of the cell\n* `center`, centering the content in the cell\n* `right`, aligning the content to the right of the cell\n* `justify`, inserting spaces into the textual content so that the content is justified in the cell\n* `char`, aligning the textual content on a special character with a minimal offset, defined by the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col#attr-charoff) attributes Unimplemented (see [bug\xa02212](https://bugzilla.mozilla.org/show_bug.cgi?id=2212 "character alignment not implemented (align=char, charoff=, text-align:<string>)")).\n\nIf this attribute is not set, its value is inherited from the [`align`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/colgroup#attr-align) of the [`<colgroup>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/colgroup "The HTML <colgroup> element defines a group of columns within a table.") element this `<col>` element belongs too. If there are none, the `left` value is assumed.\n\n**Note:** Do not use this attribute as it is obsolete (not supported) in the latest standard.\n\n* To achieve the same effect as the `left`, `center`, `right` or `justify` values:\n * Do not try to set the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property on a selector giving a [`<col>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col "The HTML <col> element defines a column within a table and is used for defining common semantics on all common cells. It is generally found within a <colgroup> element.") element. Because [`<td>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td "The HTML <td> element defines a cell of a table that contains data. It participates in the table model.") elements are not descendant of the [`<col>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col "The HTML <col> element defines a column within a table and is used for defining common semantics on all common cells. It is generally found within a <colgroup> element.") element, they won\'t inherit it.\n * If the table doesn\'t use a [`colspan`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-colspan) attribute, use the `td:nth-child(an+b)` CSS selector. Set `a` to zero and `b` to the position of the column in the table, e.g. `td:nth-child(2) { text-align: right; }` to right-align the second column.\n * If the table does use a [`colspan`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-colspan) attribute, the effect can be achieved by combining adequate CSS attribute selectors like `[colspan=n]`, though this is not trivial.\n* To achieve the same effect as the `char` value, in CSS3, you can use the value of the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col#attr-char) as the value of the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property Unimplemented.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/col"}]},{name:"tbody",description:{kind:"markdown",value:"The tbody element represents a block of rows that consist of a body of data for the parent table element, if the tbody element has a parent and it is a table."},attributes:[{name:"align",description:'This enumerated attribute specifies how horizontal alignment of each cell content will be handled. Possible values are:\n\n* `left`, aligning the content to the left of the cell\n* `center`, centering the content in the cell\n* `right`, aligning the content to the right of the cell\n* `justify`, inserting spaces into the textual content so that the content is justified in the cell\n* `char`, aligning the textual content on a special character with a minimal offset, defined by the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody#attr-charoff) attributes.\n\nIf this attribute is not set, the `left` value is assumed.\n\n**Note:** Do not use this attribute as it is obsolete (not supported) in the latest standard.\n\n* To achieve the same effect as the `left`, `center`, `right` or `justify` values, use the CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property on it.\n* To achieve the same effect as the `char` value, in CSS3, you can use the value of the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody#attr-char) as the value of the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property Unimplemented.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/tbody"}]},{name:"thead",description:{kind:"markdown",value:"The thead element represents the block of rows that consist of the column labels (headers) for the parent table element, if the thead element has a parent and it is a table."},attributes:[{name:"align",description:'This enumerated attribute specifies how horizontal alignment of each cell content will be handled. Possible values are:\n\n* `left`, aligning the content to the left of the cell\n* `center`, centering the content in the cell\n* `right`, aligning the content to the right of the cell\n* `justify`, inserting spaces into the textual content so that the content is justified in the cell\n* `char`, aligning the textual content on a special character with a minimal offset, defined by the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/thead#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/thead#attr-charoff) attributes Unimplemented (see [bug\xa02212](https://bugzilla.mozilla.org/show_bug.cgi?id=2212 "character alignment not implemented (align=char, charoff=, text-align:<string>)")).\n\nIf this attribute is not set, the `left` value is assumed.\n\n**Note:** Do not use this attribute as it is obsolete (not supported) in the latest standard.\n\n* To achieve the same effect as the `left`, `center`, `right` or `justify` values, use the CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property on it.\n* To achieve the same effect as the `char` value, in CSS3, you can use the value of the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/thead#attr-char) as the value of the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property Unimplemented.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/thead"}]},{name:"tfoot",description:{kind:"markdown",value:"The tfoot element represents the block of rows that consist of the column summaries (footers) for the parent table element, if the tfoot element has a parent and it is a table."},attributes:[{name:"align",description:'This enumerated attribute specifies how horizontal alignment of each cell content will be handled. Possible values are:\n\n* `left`, aligning the content to the left of the cell\n* `center`, centering the content in the cell\n* `right`, aligning the content to the right of the cell\n* `justify`, inserting spaces into the textual content so that the content is justified in the cell\n* `char`, aligning the textual content on a special character with a minimal offset, defined by the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody#attr-charoff) attributes Unimplemented (see [bug\xa02212](https://bugzilla.mozilla.org/show_bug.cgi?id=2212 "character alignment not implemented (align=char, charoff=, text-align:<string>)")).\n\nIf this attribute is not set, the `left` value is assumed.\n\n**Note:** Do not use this attribute as it is obsolete (not supported) in the latest standard.\n\n* To achieve the same effect as the `left`, `center`, `right` or `justify` values, use the CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property on it.\n* To achieve the same effect as the `char` value, in CSS3, you can use the value of the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tfoot#attr-char) as the value of the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property Unimplemented.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/tfoot"}]},{name:"tr",description:{kind:"markdown",value:"The tr element represents a row of cells in a table."},attributes:[{name:"align",description:'A [`DOMString`](https://developer.mozilla.org/en-US/docs/Web/API/DOMString "DOMString is a UTF-16 String. As JavaScript already uses such strings, DOMString is mapped directly to a String.") which specifies how the cell\'s context should be aligned horizontally within the cells in the row; this is shorthand for using `align` on every cell in the row individually. Possible values are:\n\n`left`\n\nAlign the content of each cell at its left edge.\n\n`center`\n\nCenter the contents of each cell between their left and right edges.\n\n`right`\n\nAlign the content of each cell at its right edge.\n\n`justify`\n\nWiden whitespaces within the text of each cell so that the text fills the full width of each cell (full justification).\n\n`char`\n\nAlign each cell in the row on a specific character (such that each row in the column that is configured this way will horizontally align its cells on that character). This uses the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tr#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tr#attr-charoff) to establish the alignment character (typically "." or "," when aligning numerical data) and the number of characters that should follow the alignment character. This alignment type was never widely supported.\n\nIf no value is expressly set for `align`, the parent node\'s value is inherited.\n\nInstead of using the obsolete `align` attribute, you should instead use the CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property to establish `left`, `center`, `right`, or `justify` alignment for the row\'s cells. To apply character-based alignment, set the CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property to the alignment character (such as `"."` or `","`).'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/tr"}]},{name:"td",description:{kind:"markdown",value:"The td element represents a data cell in a table."},attributes:[{name:"colspan"},{name:"rowspan"},{name:"headers"},{name:"abbr",description:"This attribute contains a short abbreviated description of the cell's content. Some user-agents, such as speech readers, may present this description before the content itself.\n\n**Note:** Do not use this attribute as it is obsolete in the latest standard. Alternatively, you can put the abbreviated description inside the cell and place the long content in the **title** attribute."},{name:"align",description:'This enumerated attribute specifies how the cell content\'s horizontal alignment will be handled. Possible values are:\n\n* `left`: The content is aligned to the left of the cell.\n* `center`: The content is centered in the cell.\n* `right`: The content is aligned to the right of the cell.\n* `justify` (with text only): The content is stretched out inside the cell so that it covers its entire width.\n* `char` (with text only): The content is aligned to a character inside the `<th>` element with minimal offset. This character is defined by the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-charoff) attributes Unimplemented (see [bug\xa02212](https://bugzilla.mozilla.org/show_bug.cgi?id=2212 "character alignment not implemented (align=char, charoff=, text-align:<string>)")).\n\nThe default value when this attribute is not specified is `left`.\n\n**Note:** Do not use this attribute as it is obsolete in the latest standard.\n\n* To achieve the same effect as the `left`, `center`, `right` or `justify` values, apply the CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property to the element.\n* To achieve the same effect as the `char` value, give the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property the same value you would use for the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-char). Unimplemented in CSS3.'},{name:"axis",description:"This attribute contains a list of space-separated strings. Each string is the `id` of a group of cells that this header applies to.\n\n**Note:** Do not use this attribute as it is obsolete in the latest standard."},{name:"bgcolor",description:'This attribute defines the background color of each cell in a column. It consists of a 6-digit hexadecimal code as defined in [sRGB](https://www.w3.org/Graphics/Color/sRGB) and is prefixed by \'#\'. This attribute may be used with one of sixteen predefined color strings:\n\n\xa0\n\n`black` = "#000000"\n\n\xa0\n\n`green` = "#008000"\n\n\xa0\n\n`silver` = "#C0C0C0"\n\n\xa0\n\n`lime` = "#00FF00"\n\n\xa0\n\n`gray` = "#808080"\n\n\xa0\n\n`olive` = "#808000"\n\n\xa0\n\n`white` = "#FFFFFF"\n\n\xa0\n\n`yellow` = "#FFFF00"\n\n\xa0\n\n`maroon` = "#800000"\n\n\xa0\n\n`navy` = "#000080"\n\n\xa0\n\n`red` = "#FF0000"\n\n\xa0\n\n`blue` = "#0000FF"\n\n\xa0\n\n`purple` = "#800080"\n\n\xa0\n\n`teal` = "#008080"\n\n\xa0\n\n`fuchsia` = "#FF00FF"\n\n\xa0\n\n`aqua` = "#00FFFF"\n\n**Note:** Do not use this attribute, as it is non-standard and only implemented in some versions of Microsoft Internet Explorer: The [`<td>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td "The HTML <td> element defines a cell of a table that contains data. It participates in the table model.") element should be styled using [CSS](https://developer.mozilla.org/en-US/docs/CSS). To create a similar effect use the [`background-color`](https://developer.mozilla.org/en-US/docs/Web/CSS/background-color "The background-color CSS property sets the background color of an element.") property in [CSS](https://developer.mozilla.org/en-US/docs/CSS) instead.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/td"}]},{name:"th",description:{kind:"markdown",value:"The th element represents a header cell in a table."},attributes:[{name:"colspan"},{name:"rowspan"},{name:"headers"},{name:"scope",valueSet:"s"},{name:"sorted"},{name:"abbr",description:{kind:"markdown",value:"This attribute contains a short abbreviated description of the cell's content. Some user-agents, such as speech readers, may present this description before the content itself."}},{name:"align",description:'This enumerated attribute specifies how the cell content\'s horizontal alignment will be handled. Possible values are:\n\n* `left`: The content is aligned to the left of the cell.\n* `center`: The content is centered in the cell.\n* `right`: The content is aligned to the right of the cell.\n* `justify` (with text only): The content is stretched out inside the cell so that it covers its entire width.\n* `char` (with text only): The content is aligned to a character inside the `<th>` element with minimal offset. This character is defined by the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th#attr-charoff) attributes.\n\nThe default value when this attribute is not specified is `left`.\n\n**Note:** Do not use this attribute as it is obsolete in the latest standard.\n\n* To achieve the same effect as the `left`, `center`, `right` or `justify` values, apply the CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property to the element.\n* To achieve the same effect as the `char` value, give the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property the same value you would use for the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th#attr-char). Unimplemented in CSS3.'},{name:"axis",description:"This attribute contains a list of space-separated strings. Each string is the `id` of a group of cells that this header applies to.\n\n**Note:** Do not use this attribute as it is obsolete in the latest standard: use the [`scope`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th#attr-scope) attribute instead."},{name:"bgcolor",description:'This attribute defines the background color of each cell in a column. It consists of a 6-digit hexadecimal code as defined in [sRGB](https://www.w3.org/Graphics/Color/sRGB) and is prefixed by \'#\'. This attribute may be used with one of sixteen predefined color strings:\n\n\xa0\n\n`black` = "#000000"\n\n\xa0\n\n`green` = "#008000"\n\n\xa0\n\n`silver` = "#C0C0C0"\n\n\xa0\n\n`lime` = "#00FF00"\n\n\xa0\n\n`gray` = "#808080"\n\n\xa0\n\n`olive` = "#808000"\n\n\xa0\n\n`white` = "#FFFFFF"\n\n\xa0\n\n`yellow` = "#FFFF00"\n\n\xa0\n\n`maroon` = "#800000"\n\n\xa0\n\n`navy` = "#000080"\n\n\xa0\n\n`red` = "#FF0000"\n\n\xa0\n\n`blue` = "#0000FF"\n\n\xa0\n\n`purple` = "#800080"\n\n\xa0\n\n`teal` = "#008080"\n\n\xa0\n\n`fuchsia` = "#FF00FF"\n\n\xa0\n\n`aqua` = "#00FFFF"\n\n**Note:** Do not use this attribute, as it is non-standard and only implemented in some versions of Microsoft Internet Explorer: The [`<th>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th "The HTML <th> element defines a cell as header of a group of table cells. The exact nature of this group is defined by the scope and headers attributes.") element should be styled using [CSS](https://developer.mozilla.org/en-US/docs/Web/CSS). To create a similar effect use the [`background-color`](https://developer.mozilla.org/en-US/docs/Web/CSS/background-color "The background-color CSS property sets the background color of an element.") property in [CSS](https://developer.mozilla.org/en-US/docs/Web/CSS) instead.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/th"}]},{name:"form",description:{kind:"markdown",value:"The form element represents a collection of form-associated elements, some of which can represent editable values that can be submitted to a server for processing."},attributes:[{name:"accept-charset",description:{kind:"markdown",value:'A space- or comma-delimited list of character encodings that the server accepts. The browser uses them in the order in which they are listed. The default value, the reserved string `"UNKNOWN"`, indicates the same encoding as that of the document containing the form element. \nIn previous versions of HTML, the different character encodings could be delimited by spaces or commas. In HTML5, only spaces are allowed as delimiters.'}},{name:"action",description:{kind:"markdown",value:'The URI of a program that processes the form information. This value can be overridden by a [`formaction`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-formaction) attribute on a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") or [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element.'}},{name:"autocomplete",valueSet:"o",description:{kind:"markdown",value:"Indicates whether input elements can by default have their values automatically completed by the browser. This setting can be overridden by an `autocomplete` attribute on an element belonging to the form. Possible values are:\n\n* `off`: The user must explicitly enter a value into each field for every use, or the document provides its own auto-completion method; the browser does not automatically complete entries.\n* `on`: The browser can automatically complete values based on values that the user has previously entered in the form.\n\nFor most modern browsers (including Firefox 38+, Google Chrome 34+, IE 11+) setting the autocomplete attribute will not prevent a browser's password manager from asking the user if they want to store login fields (username and password), if the user permits the storage the browser will autofill the login the next time the user visits the page. See [The autocomplete attribute and login fields](https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion#The_autocomplete_attribute_and_login_fields).\n**Note:** If you set `autocomplete` to `off` in a form because the document provides its own auto-completion, then you should also set `autocomplete` to `off` for each of the form's `input` elements that the document can auto-complete. For details, see the note regarding Google Chrome in the [Browser Compatibility chart](#compatChart)."}},{name:"enctype",valueSet:"et",description:{kind:"markdown",value:'When the value of the `method` attribute is `post`, enctype is the [MIME type](https://en.wikipedia.org/wiki/Mime_type) of content that is used to submit the form to the server. Possible values are:\n\n* `application/x-www-form-urlencoded`: The default value if the attribute is not specified.\n* `multipart/form-data`: The value used for an [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element with the `type` attribute set to "file".\n* `text/plain`: (HTML5)\n\nThis value can be overridden by a [`formenctype`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-formenctype) attribute on a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") or [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element.'}},{name:"method",valueSet:"m",description:{kind:"markdown",value:'The [HTTP](https://developer.mozilla.org/en-US/docs/Web/HTTP) method that the browser uses to submit the form. Possible values are:\n\n* `post`: Corresponds to the HTTP [POST method](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.5) ; form data are included in the body of the form and sent to the server.\n* `get`: Corresponds to the HTTP [GET method](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.3); form data are appended to the `action` attribute URI with a \'?\' as separator, and the resulting URI is sent to the server. Use this method when the form has no side-effects and contains only ASCII characters.\n* `dialog`: Use when the form is inside a\xa0[`<dialog>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog "The HTML <dialog> element represents a dialog box or other interactive component, such as an inspector or window.") element to close the dialog when submitted.\n\nThis value can be overridden by a [`formmethod`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-formmethod) attribute on a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") or [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element.'}},{name:"name",description:{kind:"markdown",value:"The name of the form. In HTML 4, its use is deprecated (`id` should be used instead). It must be unique among the forms in a document and not just an empty string in HTML 5."}},{name:"novalidate",valueSet:"v",description:{kind:"markdown",value:'This Boolean attribute indicates that the form is not to be validated when submitted. If this attribute is not specified (and therefore the form is validated), this default setting can be overridden by a [`formnovalidate`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-formnovalidate) attribute on a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") or [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element belonging to the form.'}},{name:"target",valueSet:"target",description:{kind:"markdown",value:'A name or keyword indicating where to display the response that is received after submitting the form. In HTML 4, this is the name/keyword for a frame. In HTML5, it is a name/keyword for a _browsing context_ (for example, tab, window, or inline frame). The following keywords have special meanings:\n\n* `_self`: Load the response into the same HTML 4 frame (or HTML5 browsing context) as the current one. This value is the default if the attribute is not specified.\n* `_blank`: Load the response into a new unnamed HTML 4 window or HTML5 browsing context.\n* `_parent`: Load the response into the HTML 4 frameset parent of the current frame, or HTML5 parent browsing context of the current one. If there is no parent, this option behaves the same way as `_self`.\n* `_top`: HTML 4: Load the response into the full original window, and cancel all other frames. HTML5: Load the response into the top-level browsing context (i.e., the browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this option behaves the same way as `_self`.\n* _iframename_: The response is displayed in a named [`<iframe>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe "The HTML Inline Frame element (<iframe>) represents a nested browsing context, embedding another HTML page into the current one.").\n\nHTML5: This value can be overridden by a [`formtarget`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-formtarget) attribute on a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") or [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element.'}},{name:"accept",description:'A comma-separated list of content types that the server accepts.\n\n**Usage note:** This attribute has been removed in HTML5 and should no longer be used. Instead, use the [`accept`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-accept) attribute of the specific [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element.'},{name:"autocapitalize",description:"This is a nonstandard attribute used by iOS Safari Mobile which controls whether and how the text value for textual form control descendants should be automatically capitalized as it is entered/edited by the user. If the `autocapitalize` attribute is specified on an individual form control descendant, it trumps the form-wide `autocapitalize` setting. The non-deprecated values are available in iOS 5 and later. The default value is `sentences`. Possible values are:\n\n* `none`: Completely disables automatic capitalization\n* `sentences`: Automatically capitalize the first letter of sentences.\n* `words`: Automatically capitalize the first letter of words.\n* `characters`: Automatically capitalize all characters.\n* `on`: Deprecated since iOS 5.\n* `off`: Deprecated since iOS 5."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/form"}]},{name:"label",description:{kind:"markdown",value:"The label element represents a caption in a user interface. The caption can be associated with a specific form control, known as the label element's labeled control, either using the for attribute, or by putting the form control inside the label element itself."},attributes:[{name:"form",description:{kind:"markdown",value:'The [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") element with which the label is associated (its _form owner_). If specified, the value of the attribute is the `id` of a [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") element in the same document. This lets you place label elements anywhere within a document, not just as descendants of their form elements.'}},{name:"for",description:{kind:"markdown",value:"The [`id`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-id) of a [labelable](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Form_labelable) form-related element in the same document as the `<label>` element. The first element in the document with an `id` matching the value of the `for` attribute is the _labeled control_ for this label element, if it is a labelable element. If it is\xa0not labelable then the `for` attribute has no effect. If there are other elements which also match the `id` value, later in the document, they are not considered.\n\n**Note**: A `<label>` element can have both a `for` attribute and a contained control element, as long as the `for` attribute points to the contained control element."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/label"}]},{name:"input",description:{kind:"markdown",value:"The input element represents a typed data field, usually with a form control to allow the user to edit the data."},void:!0,attributes:[{name:"accept"},{name:"alt"},{name:"autocomplete",valueSet:"inputautocomplete"},{name:"autofocus",valueSet:"v"},{name:"checked",valueSet:"v"},{name:"dirname"},{name:"disabled",valueSet:"v"},{name:"form"},{name:"formaction"},{name:"formenctype",valueSet:"et"},{name:"formmethod",valueSet:"fm"},{name:"formnovalidate",valueSet:"v"},{name:"formtarget"},{name:"height"},{name:"inputmode",valueSet:"im"},{name:"list"},{name:"max"},{name:"maxlength"},{name:"min"},{name:"minlength"},{name:"multiple",valueSet:"v"},{name:"name"},{name:"pattern"},{name:"placeholder"},{name:"readonly",valueSet:"v"},{name:"required",valueSet:"v"},{name:"size"},{name:"src"},{name:"step"},{name:"type",valueSet:"t"},{name:"value"},{name:"width"}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/input"}]},{name:"button",description:{kind:"markdown",value:"The button element represents a button labeled by its contents."},attributes:[{name:"autofocus",valueSet:"v",description:{kind:"markdown",value:"This Boolean attribute lets you specify that the button should have input focus when the page loads, unless the user overrides it, for example by typing in a different control. Only one form-associated element in a document can have this attribute specified."}},{name:"disabled",valueSet:"v",description:{kind:"markdown",value:'This Boolean attribute indicates that the user cannot interact with the button. If this attribute is not specified, the button inherits its setting from the containing element, for example [`<fieldset>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/fieldset "The HTML <fieldset> element is used to group several controls as well as labels (<label>) within a web form."); if there is no containing element with the **disabled** attribute set, then the button is enabled.\n\nFirefox will, unlike other browsers, by default, [persist the dynamic disabled state](https://stackoverflow.com/questions/5985839/bug-with-firefox-disabled-attribute-of-input-not-resetting-when-refreshing) of a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") across page loads. Use the [`autocomplete`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-autocomplete) attribute to control this feature.'}},{name:"form",description:{kind:"markdown",value:'The form element that the button is associated with (its _form owner_). The value of the attribute must be the **id** attribute of a [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") element in the same document. If this attribute is not specified, the `<button>` element will be associated to an ancestor [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") element, if one exists. This attribute enables you to associate `<button>` elements to [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") elements anywhere within a document, not just as descendants of [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") elements.'}},{name:"formaction",description:{kind:"markdown",value:"The URI of a program that processes the information submitted by the button. If specified, it overrides the [`action`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-action) attribute of the button's form owner."}},{name:"formenctype",valueSet:"et",description:{kind:"markdown",value:'If the button is a submit button, this attribute specifies the type of content that is used to submit the form to the server. Possible values are:\n\n* `application/x-www-form-urlencoded`: The default value if the attribute is not specified.\n* `multipart/form-data`: Use this value if you are using an [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element with the [`type`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-type) attribute set to `file`.\n* `text/plain`\n\nIf this attribute is specified, it overrides the [`enctype`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-enctype) attribute of the button\'s form owner.'}},{name:"formmethod",valueSet:"fm",description:{kind:"markdown",value:"If the button is a submit button, this attribute specifies the HTTP method that the browser uses to submit the form. Possible values are:\n\n* `post`: The data from the form are included in the body of the form and sent to the server.\n* `get`: The data from the form are appended to the **form** attribute URI, with a '?' as a separator, and the resulting URI is sent to the server. Use this method when the form has no side-effects and contains only ASCII characters.\n\nIf specified, this attribute overrides the [`method`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-method) attribute of the button's form owner."}},{name:"formnovalidate",valueSet:"v",description:{kind:"markdown",value:"If the button is a submit button, this Boolean attribute specifies that the form is not to be validated when it is submitted. If this attribute is specified, it overrides the [`novalidate`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-novalidate) attribute of the button's form owner."}},{name:"formtarget",description:{kind:"markdown",value:"If the button is a submit button, this attribute is a name or keyword indicating where to display the response that is received after submitting the form. This is a name of, or keyword for, a _browsing context_ (for example, tab, window, or inline frame). If this attribute is specified, it overrides the [`target`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-target) attribute of the button's form owner. The following keywords have special meanings:\n\n* `_self`: Load the response into the same browsing context as the current one. This value is the default if the attribute is not specified.\n* `_blank`: Load the response into a new unnamed browsing context.\n* `_parent`: Load the response into the parent browsing context of the current one. If there is no parent, this option behaves the same way as `_self`.\n* `_top`: Load the response into the top-level browsing context (that is, the browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this option behaves the same way as `_self`."}},{name:"name",description:{kind:"markdown",value:"The name of the button, which is submitted with the form data."}},{name:"type",valueSet:"bt",description:{kind:"markdown",value:"The type of the button. Possible values are:\n\n* `submit`: The button submits the form data to the server. This is the default if the attribute is not specified, or if the attribute is dynamically changed to an empty or invalid value.\n* `reset`: The button resets all the controls to their initial values.\n* `button`: The button has no default behavior. It can have client-side scripts associated with the element's events, which are triggered when the events occur."}},{name:"value",description:{kind:"markdown",value:"The initial value of the button. It defines the value associated with the button which is submitted with the form data. This value is passed to the server in params when the form is submitted."}},{name:"autocomplete",description:'The use of this attribute on a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") is nonstandard and Firefox-specific. By default, unlike other browsers, [Firefox persists the dynamic disabled state](https://stackoverflow.com/questions/5985839/bug-with-firefox-disabled-attribute-of-input-not-resetting-when-refreshing) of a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") across page loads. Setting the value of this attribute to `off` (i.e. `autocomplete="off"`) disables this feature. See [bug\xa0654072](https://bugzilla.mozilla.org/show_bug.cgi?id=654072 "if disabled state is changed with javascript, the normal state doesn\'t return after refreshing the page").'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/button"}]},{name:"select",description:{kind:"markdown",value:"The select element represents a control for selecting amongst a set of options."},attributes:[{name:"autocomplete",valueSet:"inputautocomplete",description:{kind:"markdown",value:'A [`DOMString`](https://developer.mozilla.org/en-US/docs/Web/API/DOMString "DOMString is a UTF-16 String. As JavaScript already uses such strings, DOMString is mapped directly to a String.") providing a hint for a [user agent\'s](https://developer.mozilla.org/en-US/docs/Glossary/user_agent "user agent\'s: A user agent is a computer program representing a person, for example, a browser in a Web context.") autocomplete feature. See [The HTML autocomplete attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) for a complete list of values and details on how to use autocomplete.'}},{name:"autofocus",valueSet:"v",description:{kind:"markdown",value:"This Boolean attribute lets you specify that a form control should have input focus when the page loads. Only one form element in a document can have the `autofocus` attribute."}},{name:"disabled",valueSet:"v",description:{kind:"markdown",value:"This Boolean attribute indicates that the user cannot interact with the control. If this attribute is not specified, the control inherits its setting from the containing element, for example `fieldset`; if there is no containing element with the `disabled` attribute set, then the control is enabled."}},{name:"form",description:{kind:"markdown",value:'This attribute lets you specify the form element to\xa0which\xa0the select element is associated\xa0(that is, its "form owner"). If this attribute is specified, its value must be the same as the `id` of a form element in the same document. This enables you to place select elements anywhere within a document, not just as descendants of their form elements.'}},{name:"multiple",valueSet:"v",description:{kind:"markdown",value:"This Boolean attribute indicates that multiple options can be selected in the list. If it is not specified, then only one option can be selected at a time. When `multiple` is specified, most browsers will show a scrolling list box instead of a single line dropdown."}},{name:"name",description:{kind:"markdown",value:"This attribute is used to specify the name of the control."}},{name:"required",valueSet:"v",description:{kind:"markdown",value:"A Boolean attribute indicating that an option with a non-empty string value must be selected."}},{name:"size",description:{kind:"markdown",value:"If the control is presented as a scrolling list box (e.g. when `multiple` is specified), this attribute represents the number of rows in the list that should be visible at one time. Browsers are not required to present a select element as a scrolled list box. The default value is 0.\n\n**Note:** According to the HTML5 specification, the default value for size should be 1; however, in practice, this has been found to break some web sites, and no other browser currently does that, so Mozilla has opted to continue to return 0 for the time being with Firefox."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/select"}]},{name:"datalist",description:{kind:"markdown",value:"The datalist element represents a set of option elements that represent predefined options for other controls. In the rendering, the datalist element represents nothing and it, along with its children, should be hidden."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/datalist"}]},{name:"optgroup",description:{kind:"markdown",value:"The optgroup element represents a group of option elements with a common label."},attributes:[{name:"disabled",valueSet:"v",description:{kind:"markdown",value:"If this Boolean attribute is set, none of the items in this option group is selectable. Often browsers grey out such control and it won't receive any browsing events, like mouse clicks or focus-related ones."}},{name:"label",description:{kind:"markdown",value:"The name of the group of options, which the browser can use when labeling the options in the user interface. This attribute is mandatory if this element is used."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/optgroup"}]},{name:"option",description:{kind:"markdown",value:"The option element represents an option in a select element or as part of a list of suggestions in a datalist element."},attributes:[{name:"disabled",valueSet:"v",description:{kind:"markdown",value:'If this Boolean attribute is set, this option is not checkable. Often browsers grey out such control and it won\'t receive any browsing event, like mouse clicks or focus-related ones. If this attribute is not set, the element can still be disabled if one of its ancestors is a disabled [`<optgroup>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/optgroup "The HTML <optgroup> element creates a grouping of options within a <select> element.") element.'}},{name:"label",description:{kind:"markdown",value:"This attribute is text for the label indicating the meaning of the option. If the `label` attribute isn't defined, its value is that of the element text content."}},{name:"selected",valueSet:"v",description:{kind:"markdown",value:'If present, this Boolean attribute indicates that the option is initially selected. If the `<option>` element is the descendant of a [`<select>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select "The HTML <select> element represents a control that provides a menu of options") element whose [`multiple`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select#attr-multiple) attribute is not set, only one single `<option>` of this [`<select>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select "The HTML <select> element represents a control that provides a menu of options") element may have the `selected` attribute.'}},{name:"value",description:{kind:"markdown",value:"The content of this attribute represents the value to be submitted with the form, should this option be selected.\xa0If this attribute is omitted, the value is taken from the text content of the option element."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/option"}]},{name:"textarea",description:{kind:"markdown",value:"The textarea element represents a multiline plain text edit control for the element's raw value. The contents of the control represent the control's default value."},attributes:[{name:"autocomplete",valueSet:"inputautocomplete",description:{kind:"markdown",value:'This attribute indicates whether the value of the control can be automatically completed by the browser. Possible values are:\n\n* `off`: The user must explicitly enter a value into this field for every use, or the document provides its own auto-completion method; the browser does not automatically complete the entry.\n* `on`: The browser can automatically complete the value based on values that the user has entered during previous uses.\n\nIf the `autocomplete` attribute is not specified on a `<textarea>` element, then the browser uses the `autocomplete` attribute value of the `<textarea>` element\'s form owner. The form owner is either the [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") element that this `<textarea>` element is a descendant of or the form element whose `id` is specified by the `form` attribute of the input element. For more information, see the [`autocomplete`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-autocomplete) attribute in [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.").'}},{name:"autofocus",valueSet:"v",description:{kind:"markdown",value:"This Boolean attribute lets you specify that a form control should have input focus when the page loads. Only one form-associated element in a document can have this attribute specified."}},{name:"cols",description:{kind:"markdown",value:"The visible width of the text control, in average character widths. If it is specified, it must be a positive integer. If it is not specified, the default value is `20`."}},{name:"dirname"},{name:"disabled",valueSet:"v",description:{kind:"markdown",value:'This Boolean attribute indicates that the user cannot interact with the control. If this attribute is not specified, the control inherits its setting from the containing element, for example [`<fieldset>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/fieldset "The HTML <fieldset> element is used to group several controls as well as labels (<label>) within a web form."); if there is no containing element when the `disabled` attribute is set, the control is enabled.'}},{name:"form",description:{kind:"markdown",value:'The form element that the `<textarea>` element is associated with (its "form owner"). The value of the attribute must be the `id` of a form element in the same document. If this attribute is not specified, the `<textarea>` element must be a descendant of a form element. This attribute enables you to place `<textarea>` elements anywhere within a document, not just as descendants of form elements.'}},{name:"inputmode",valueSet:"im"},{name:"maxlength",description:{kind:"markdown",value:"The maximum number of characters (unicode code points) that the user can enter. If this value isn't specified, the user can enter an unlimited number of characters."}},{name:"minlength",description:{kind:"markdown",value:"The minimum number of characters (unicode code points) required that the user should enter."}},{name:"name",description:{kind:"markdown",value:"The name of the control."}},{name:"placeholder",description:{kind:"markdown",value:'A hint to the user of what can be entered in the control. Carriage returns or line-feeds within the placeholder text must be treated as line breaks when rendering the hint.\n\n**Note:** Placeholders should only be used to show an example of the type of data that should be entered into a form; they are _not_ a substitute for a proper [`<label>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/label "The HTML <label> element represents a caption for an item in a user interface.") element tied to the input. See [Labels and placeholders](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Labels_and_placeholders "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") in [<input>: The Input (Form Input) element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") for a full explanation.'}},{name:"readonly",valueSet:"v",description:{kind:"markdown",value:"This Boolean attribute indicates that the user cannot modify the value of the control. Unlike the `disabled` attribute, the `readonly` attribute does not prevent the user from clicking or selecting in the control. The value of a read-only control is still submitted with the form."}},{name:"required",valueSet:"v",description:{kind:"markdown",value:"This attribute specifies that the user must fill in a value before submitting a form."}},{name:"rows",description:{kind:"markdown",value:"The number of visible text lines for the control."}},{name:"wrap",valueSet:"w",description:{kind:"markdown",value:"Indicates how the control wraps text. Possible values are:\n\n* `hard`: The browser automatically inserts line breaks (CR+LF) so that each line has no more than the width of the control; the `cols` attribute must also be specified for this to take effect.\n* `soft`: The browser ensures that all line breaks in the value consist of a CR+LF pair, but does not insert any additional line breaks.\n* `off` : Like `soft` but changes appearance to `white-space: pre` so line segments exceeding `cols` are not wrapped and the `<textarea>` becomes horizontally scrollable.\n\nIf this attribute is not specified, `soft` is its default value."}},{name:"autocapitalize",description:"This is a non-standard attribute supported by WebKit on iOS (therefore nearly all browsers running on iOS, including Safari, Firefox, and Chrome), which controls whether and how the text value should be automatically capitalized as it is entered/edited by the user. The non-deprecated values are available in iOS 5 and later. Possible values are:\n\n* `none`: Completely disables automatic capitalization.\n* `sentences`: Automatically capitalize the first letter of sentences.\n* `words`: Automatically capitalize the first letter of words.\n* `characters`: Automatically capitalize all characters.\n* `on`: Deprecated since iOS 5.\n* `off`: Deprecated since iOS 5."},{name:"spellcheck",description:"Specifies whether the `<textarea>` is subject to spell checking by the underlying browser/OS. the value can be:\n\n* `true`: Indicates that the element needs to have its spelling and grammar checked.\n* `default` : Indicates that the element is to act according to a default behavior, possibly based on the parent element's own `spellcheck` value.\n* `false` : Indicates that the element should not be spell checked."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/textarea"}]},{name:"output",description:{kind:"markdown",value:"The output element represents the result of a calculation performed by the application, or the result of a user action."},attributes:[{name:"for",description:{kind:"markdown",value:"A space-separated list of other elements\u2019 [`id`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id)s, indicating that those elements contributed input values to (or otherwise affected) the calculation."}},{name:"form",description:{kind:"markdown",value:'The [form element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form) that this element is associated with (its "form owner"). The value of the attribute must be an `id` of a form element in the same document. If this attribute is not specified, the output element must be a descendant of a form element. This attribute enables you to place output elements anywhere within a document, not just as descendants of their form elements.'}},{name:"name",description:{kind:"markdown",value:'The name of the element, exposed in the [`HTMLFormElement`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement "The HTMLFormElement interface represents a <form> element in the DOM; it allows access to and in some cases modification of aspects of the form, as well as access to its component elements.") API.'}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/output"}]},{name:"progress",description:{kind:"markdown",value:"The progress element represents the completion progress of a task. The progress is either indeterminate, indicating that progress is being made but that it is not clear how much more work remains to be done before the task is complete (e.g. because the task is waiting for a remote host to respond), or the progress is a number in the range zero to a maximum, giving the fraction of work that has so far been completed."},attributes:[{name:"value",description:{kind:"markdown",value:"This attribute specifies how much of the task that has been completed. It must be a valid floating point number between 0 and `max`, or between 0 and 1 if `max` is omitted. If there is no `value` attribute, the progress bar is indeterminate; this indicates that an activity is ongoing with no indication of how long it is expected to take."}},{name:"max",description:{kind:"markdown",value:"This attribute describes how much work the task indicated by the `progress` element requires. The `max` attribute, if present, must have a value greater than zero and be a valid floating point number. The default value is 1."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/progress"}]},{name:"meter",description:{kind:"markdown",value:"The meter element represents a scalar measurement within a known range, or a fractional value; for example disk usage, the relevance of a query result, or the fraction of a voting population to have selected a particular candidate."},attributes:[{name:"value",description:{kind:"markdown",value:"The current numeric value. This must be between the minimum and maximum values (`min` attribute and `max` attribute) if they are specified. If unspecified or malformed, the value is 0. If specified, but not within the range given by the `min` attribute and `max` attribute, the value is equal to the nearest end of the range.\n\n**Usage note:** Unless the `value` attribute is between `0` and `1` (inclusive), the `min` and `max` attributes should define the range so that the `value` attribute's value is within it."}},{name:"min",description:{kind:"markdown",value:"The lower numeric bound of the measured range. This must be less than the maximum value (`max` attribute), if specified. If unspecified, the minimum value is 0."}},{name:"max",description:{kind:"markdown",value:"The upper numeric bound of the measured range. This must be greater than the minimum value (`min` attribute), if specified. If unspecified, the maximum value is 1."}},{name:"low",description:{kind:"markdown",value:"The upper numeric bound of the low end of the measured range. This must be greater than the minimum value (`min` attribute), and it also must be less than the high value and maximum value (`high` attribute and `max` attribute, respectively), if any are specified. If unspecified, or if less than the minimum value, the `low` value is equal to the minimum value."}},{name:"high",description:{kind:"markdown",value:"The lower numeric bound of the high end of the measured range. This must be less than the maximum value (`max` attribute), and it also must be greater than the low value and minimum value (`low` attribute and **min** attribute, respectively), if any are specified. If unspecified, or if greater than the maximum value, the `high` value is equal to the maximum value."}},{name:"optimum",description:{kind:"markdown",value:"This attribute indicates the optimal numeric value. It must be within the range (as defined by the `min` attribute and `max` attribute). When used with the `low` attribute and `high` attribute, it gives an indication where along the range is considered preferable. For example, if it is between the `min` attribute and the `low` attribute, then the lower range is considered preferred."}},{name:"form",description:"This attribute associates the element with a `form` element that has ownership of the `meter` element. For example, a `meter` might be displaying a range corresponding to an `input` element of `type` _number_. This attribute is only used if the `meter` element is being used as a form-associated element; even then, it may be omitted if the element appears as a descendant of a `form` element."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/meter"}]},{name:"fieldset",description:{kind:"markdown",value:"The fieldset element represents a set of form controls optionally grouped under a common name."},attributes:[{name:"disabled",valueSet:"v",description:{kind:"markdown",value:"If this Boolean attribute is set, all form controls that are descendants of the `<fieldset>`, are disabled, meaning they are not editable and won't be submitted along with the `<form>`. They won't receive any browsing events, like mouse clicks or focus-related events. By default browsers display such controls grayed out. Note that form elements inside the [`<legend>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/legend \"The HTML <legend> element represents a caption for the content of its parent <fieldset>.\") element won't be disabled."}},{name:"form",description:{kind:"markdown",value:'This attribute takes the value of the `id` attribute of a [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") element you want the `<fieldset>` to be part of, even if it is not inside the form.'}},{name:"name",description:{kind:"markdown",value:'The name associated with the group.\n\n**Note**: The caption for the fieldset is given by the first [`<legend>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/legend "The HTML <legend> element represents a caption for the content of its parent <fieldset>.") element nested inside it.'}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/fieldset"}]},{name:"legend",description:{kind:"markdown",value:"The legend element represents a caption for the rest of the contents of the legend element's parent fieldset element, if any."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/legend"}]},{name:"details",description:{kind:"markdown",value:"The details element represents a disclosure widget from which the user can obtain additional information or controls."},attributes:[{name:"open",valueSet:"v",description:{kind:"markdown",value:"This Boolean attribute indicates whether or not the details \u2014 that is, the contents of the `<details>` element \u2014 are currently visible. The default, `false`, means the details are not visible."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/details"}]},{name:"summary",description:{kind:"markdown",value:"The summary element represents a summary, caption, or legend for the rest of the contents of the summary element's parent details element, if any."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/summary"}]},{name:"dialog",description:{kind:"markdown",value:"The dialog element represents a part of an application that a user interacts with to perform a task, for example a dialog box, inspector, or window."},attributes:[{name:"open",description:"Indicates that the dialog is active and available for interaction. When the `open` attribute is not set, the dialog shouldn't be shown to the user."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/dialog"}]},{name:"script",description:{kind:"markdown",value:"The script element allows authors to include dynamic script and data blocks in their documents. The element does not represent content for the user."},attributes:[{name:"src",description:{kind:"markdown",value:"This attribute specifies the URI of an external script; this can be used as an alternative to embedding a script directly within a document.\n\nIf a `script` element has a `src` attribute specified, it should not have a script embedded inside its tags."}},{name:"type",description:{kind:"markdown",value:'This attribute indicates the type of script represented. The value of this attribute will be in one of the following categories:\n\n* **Omitted or a JavaScript MIME type:** For HTML5-compliant browsers this indicates the script is JavaScript. HTML5 specification urges authors to omit the attribute rather than provide a redundant MIME type. In earlier browsers, this identified the scripting language of the embedded or imported (via the `src` attribute) code. JavaScript MIME types are [listed in the specification](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types#JavaScript_types).\n* **`module`:** For HTML5-compliant browsers the code is treated as a JavaScript module. The processing of the script contents is not affected by the `charset` and `defer` attributes. For information on using `module`, see [ES6 in Depth: Modules](https://hacks.mozilla.org/2015/08/es6-in-depth-modules/). Code may behave differently when the `module` keyword is used.\n* **Any other value:** The embedded content is treated as a data block which won\'t be processed by the browser. Developers must use a valid MIME type that is not a JavaScript MIME type to denote data blocks. The `src` attribute will be ignored.\n\n**Note:** in Firefox you could specify the version of JavaScript contained in a `<script>` element by including a non-standard `version` parameter inside the `type` attribute \u2014 for example `type="text/javascript;version=1.8"`. This has been removed in Firefox 59 (see [bug\xa01428745](https://bugzilla.mozilla.org/show_bug.cgi?id=1428745 "FIXED: Remove support for version parameter from script loader")).'}},{name:"charset"},{name:"async",valueSet:"v",description:{kind:"markdown",value:'This is a Boolean attribute indicating that the browser should, if possible, load the script asynchronously.\n\nThis attribute must not be used if the `src` attribute is absent (i.e. for inline scripts). If it is included in this case it will have no effect.\n\nBrowsers usually assume the worst case scenario and load scripts synchronously, (i.e. `async="false"`) during HTML parsing.\n\nDynamically inserted scripts (using [`document.createElement()`](https://developer.mozilla.org/en-US/docs/Web/API/Document/createElement "In an HTML document, the document.createElement() method creates the HTML element specified by tagName, or an HTMLUnknownElement if tagName isn\'t recognized.")) load asynchronously by default, so to turn on synchronous loading (i.e. scripts load in the order they were inserted) set `async="false"`.\n\nSee [Browser compatibility](#Browser_compatibility) for notes on browser support. See also [Async scripts for asm.js](https://developer.mozilla.org/en-US/docs/Games/Techniques/Async_scripts).'}},{name:"defer",valueSet:"v",description:{kind:"markdown",value:'This Boolean attribute is set to indicate to a browser that the script is meant to be executed after the document has been parsed, but before firing [`DOMContentLoaded`](https://developer.mozilla.org/en-US/docs/Web/Events/DOMContentLoaded "/en-US/docs/Web/Events/DOMContentLoaded").\n\nScripts with the `defer` attribute will prevent the `DOMContentLoaded` event from firing until the script has loaded and finished evaluating.\n\nThis attribute must not be used if the `src` attribute is absent (i.e. for inline scripts), in this case it would have no effect.\n\nTo achieve a similar effect for dynamically inserted scripts use `async="false"` instead. Scripts with the `defer` attribute will execute in the order in which they appear in the document.'}},{name:"crossorigin",valueSet:"xo",description:{kind:"markdown",value:'Normal `script` elements pass minimal information to the [`window.onerror`](https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onerror "The onerror property of the GlobalEventHandlers mixin is an EventHandler that processes error events.") for scripts which do not pass the standard [CORS](https://developer.mozilla.org/en-US/docs/Glossary/CORS "CORS: CORS (Cross-Origin Resource Sharing) is a system, consisting of transmitting HTTP headers, that determines whether browsers block frontend JavaScript code from accessing responses for cross-origin requests.") checks. To allow error logging for sites which use a separate domain for static media, use this attribute. See [CORS settings attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) for a more descriptive explanation of its valid arguments.'}},{name:"nonce",description:{kind:"markdown",value:"A cryptographic nonce (number used once) to list the allowed inline scripts in a [script-src Content-Security-Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/script-src). The server must generate a unique nonce value each time it transmits a policy. It is critical to provide a nonce that cannot be guessed as bypassing a resource's policy is otherwise trivial."}},{name:"integrity",description:"This attribute contains inline metadata that a user agent can use to verify that a fetched resource has been delivered free of unexpected manipulation. See [Subresource Integrity](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity)."},{name:"nomodule",description:"This Boolean attribute is set to indicate that the script should not be executed in browsers that support [ES2015 modules](https://hacks.mozilla.org/2015/08/es6-in-depth-modules/) \u2014 in effect, this can be used to serve fallback scripts to older browsers that do not support modular JavaScript code."},{name:"referrerpolicy",description:'Indicates which [referrer](https://developer.mozilla.org/en-US/docs/Web/API/Document/referrer) to send when fetching the script, or resources fetched by the script:\n\n* `no-referrer`: The [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will not be sent.\n* `no-referrer-when-downgrade` (default): The [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will not be sent to [origin](https://developer.mozilla.org/en-US/docs/Glossary/origin "origin: Web content\'s origin is defined by the scheme (protocol), host (domain), and port of the URL used to access it. Two objects have the same origin only when the scheme, host, and port all match.")s without [TLS](https://developer.mozilla.org/en-US/docs/Glossary/TLS "TLS: Transport Layer Security (TLS), previously known as Secure Sockets Layer (SSL), is a protocol used by applications to communicate securely across a network, preventing tampering with and eavesdropping on email, web browsing, messaging, and other protocols.") ([HTTPS](https://developer.mozilla.org/en-US/docs/Glossary/HTTPS "HTTPS: HTTPS (HTTP Secure) is an encrypted version of the HTTP protocol. It usually uses SSL or TLS to encrypt all communication between a client and a server. This secure connection allows clients to safely exchange sensitive data with a server, for example for banking activities or online shopping.")).\n* `origin`: The sent referrer will be limited to the origin of the referring page: its [scheme](https://developer.mozilla.org/en-US/docs/Archive/Mozilla/URIScheme), [host](https://developer.mozilla.org/en-US/docs/Glossary/host "host: A host is a device connected to the Internet (or a local network). Some hosts called servers offer additional services like serving webpages or storing files and emails."), and [port](https://developer.mozilla.org/en-US/docs/Glossary/port "port: For a computer connected to a network with an IP address, a port is a communication endpoint. Ports are designated by numbers, and below 1024 each port is associated by default with a specific protocol.").\n* `origin-when-cross-origin`: The referrer sent to other origins will be limited to the scheme, the host, and the port. Navigations on the same origin will still include the path.\n* `same-origin`: A referrer will be sent for [same origin](https://developer.mozilla.org/en-US/docs/Glossary/Same-origin_policy "same origin: The same-origin policy is a critical security mechanism that restricts how a document or script loaded from one origin can interact with a resource from another origin."), but cross-origin requests will contain no referrer information.\n* `strict-origin`: Only send the origin of the document as the referrer when the protocol security level stays the same (e.g. HTTPS\u2192HTTPS), but don\'t send it to a less secure destination (e.g. HTTPS\u2192HTTP).\n* `strict-origin-when-cross-origin`: Send a full URL when performing a same-origin request, but only send the origin when the protocol security level stays the same (e.g.HTTPS\u2192HTTPS), and send no header to a less secure destination (e.g. HTTPS\u2192HTTP).\n* `unsafe-url`: The referrer will include the origin _and_ the path (but not the [fragment](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/hash), [password](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/password), or [username](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/username)). **This value is unsafe**, because it leaks origins and paths from TLS-protected resources to insecure origins.\n\n**Note**: An empty string value (`""`) is both the default value, and a fallback value if `referrerpolicy` is not supported. If `referrerpolicy` is not explicitly specified on the `<script>` element, it will adopt a higher-level referrer policy, i.e. one set on the whole document or domain. If a higher-level policy is not available,\xa0the empty string is treated as being equivalent to `no-referrer-when-downgrade`.'},{name:"text",description:"Like the `textContent` attribute, this attribute sets the text content of the element. Unlike the `textContent` attribute, however, this attribute is evaluated as executable code after the node is inserted into the DOM."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/script"}]},{name:"noscript",description:{kind:"markdown",value:"The noscript element represents nothing if scripting is enabled, and represents its children if scripting is disabled. It is used to present different markup to user agents that support scripting and those that don't support scripting, by affecting how the document is parsed."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/noscript"}]},{name:"template",description:{kind:"markdown",value:"The template element is used to declare fragments of HTML that can be cloned and inserted in the document by script."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/template"}]},{name:"canvas",description:{kind:"markdown",value:"The canvas element provides scripts with a resolution-dependent bitmap canvas, which can be used for rendering graphs, game graphics, art, or other visual images on the fly."},attributes:[{name:"width",description:{kind:"markdown",value:"The width of the coordinate space in CSS pixels. Defaults to 300."}},{name:"height",description:{kind:"markdown",value:"The height of the coordinate space in CSS pixels. Defaults to 150."}},{name:"moz-opaque",description:"Lets the canvas know whether or not translucency will be a factor. If the canvas knows there's no translucency, painting performance can be optimized. This is only supported by Mozilla-based browsers; use the standardized [`canvas.getContext('2d', { alpha: false })`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/getContext \"The HTMLCanvasElement.getContext() method returns a drawing context on the canvas, or null if the context identifier is not supported.\") instead."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/canvas"}]},{name:"slot",description:{kind:"markdown",value:"The slot element is a placeholder inside a web component that you can fill with your own markup, which lets you create separate DOM trees and present them together."},attributes:[{name:"name",description:{kind:"markdown",value:"The slot's name.\nA **named slot** is a `<slot>` element with a `name` attribute."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/slot"}]},{name:"data",description:{kind:"markdown",value:"The data element links a given piece of content with a machine-readable translation."},attributes:[{name:"value",description:{kind:"markdown",value:"This attribute specifies the machine-readable translation of the content of the element."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/data"}]},{name:"hgroup",description:{kind:"markdown",value:"The hgroup element represents a heading and related content. It groups a single h1\u2013h6 element with one or more p."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/hgroup"}]},{name:"menu",description:{kind:"markdown",value:"The menu element represents an unordered list of interactive items."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/menu"}]}],globalAttributes:[{name:"accesskey",description:{kind:"markdown",value:"Provides a hint for generating a keyboard shortcut for the current element. This attribute consists of a space-separated list of characters. The browser should use the first one that exists on the computer keyboard layout."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/accesskey"}]},{name:"autocapitalize",description:{kind:"markdown",value:"Controls whether and how text input is automatically capitalized as it is entered/edited by the user. It can have the following values:\n\n* `off` or `none`, no autocapitalization is applied (all letters default to lowercase)\n* `on` or `sentences`, the first letter of each sentence defaults to a capital letter; all other letters default to lowercase\n* `words`, the first letter of each word defaults to a capital letter; all other letters default to lowercase\n* `characters`, all letters should default to uppercase"},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/autocapitalize"}]},{name:"class",description:{kind:"markdown",value:'A space-separated list of the classes of the element. Classes allows CSS and JavaScript to select and access specific elements via the [class selectors](https://developer.mozilla.org/docs/Web/CSS/Class_selectors) or functions like the method [`Document.getElementsByClassName()`](https://developer.mozilla.org/docs/Web/API/Document/getElementsByClassName "returns an array-like object of all child elements which have all of the given class names.").'},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/class"}]},{name:"contenteditable",description:{kind:"markdown",value:"An enumerated attribute indicating if the element should be editable by the user. If so, the browser modifies its widget to allow editing. The attribute must take one of the following values:\n\n* `true` or the _empty string_, which indicates that the element must be editable;\n* `false`, which indicates that the element must not be editable."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/contenteditable"}]},{name:"contextmenu",description:{kind:"markdown",value:'The `[**id**](#attr-id)` of a [`<menu>`](https://developer.mozilla.org/docs/Web/HTML/Element/menu "The HTML <menu> element represents a group of commands that a user can perform or activate. This includes both list menus, which might appear across the top of a screen, as well as context menus, such as those that might appear underneath a button after it has been clicked.") to use as the contextual menu for this element.'},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/contextmenu"}]},{name:"dir",description:{kind:"markdown",value:"An enumerated attribute indicating the directionality of the element's text. It can have the following values:\n\n* `ltr`, which means _left to right_ and is to be used for languages that are written from the left to the right (like English);\n* `rtl`, which means _right to left_ and is to be used for languages that are written from the right to the left (like Arabic);\n* `auto`, which lets the user agent decide. It uses a basic algorithm as it parses the characters inside the element until it finds a character with a strong directionality, then it applies that directionality to the whole element."},valueSet:"d",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/dir"}]},{name:"draggable",description:{kind:"markdown",value:"An enumerated attribute indicating whether the element can be dragged, using the [Drag and Drop API](https://developer.mozilla.org/docs/DragDrop/Drag_and_Drop). It can have the following values:\n\n* `true`, which indicates that the element may be dragged\n* `false`, which indicates that the element may not be dragged."},valueSet:"b",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/draggable"}]},{name:"dropzone",description:{kind:"markdown",value:"An enumerated attribute indicating what types of content can be dropped on an element, using the [Drag and Drop API](https://developer.mozilla.org/docs/DragDrop/Drag_and_Drop). It can have the following values:\n\n* `copy`, which indicates that dropping will create a copy of the element that was dragged\n* `move`, which indicates that the element that was dragged will be moved to this new location.\n* `link`, will create a link to the dragged data."}},{name:"exportparts",description:{kind:"markdown",value:"Used to transitively export shadow parts from a nested shadow tree into a containing light tree."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/exportparts"}]},{name:"hidden",description:{kind:"markdown",value:"A Boolean attribute indicates that the element is not yet, or is no longer, _relevant_. For example, it can be used to hide elements of the page that can't be used until the login process has been completed. The browser won't render such elements. This attribute must not be used to hide content that could legitimately be shown."},valueSet:"v",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/hidden"}]},{name:"id",description:{kind:"markdown",value:"Defines a unique identifier (ID) which must be unique in the whole document. Its purpose is to identify the element when linking (using a fragment identifier), scripting, or styling (with CSS)."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/id"}]},{name:"inputmode",description:{kind:"markdown",value:'Provides a hint to browsers as to the type of virtual keyboard configuration to use when editing this element or its contents. Used primarily on [`<input>`](https://developer.mozilla.org/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") elements, but is usable on any element while in `[contenteditable](https://developer.mozilla.org/docs/Web/HTML/Global_attributes#attr-contenteditable)` mode.'},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/inputmode"}]},{name:"is",description:{kind:"markdown",value:"Allows you to specify that a standard HTML element should behave like a registered custom built-in element (see [Using custom elements](https://developer.mozilla.org/docs/Web/Web_Components/Using_custom_elements) for more details)."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/is"}]},{name:"itemid",description:{kind:"markdown",value:"The unique, global identifier of an item."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/itemid"}]},{name:"itemprop",description:{kind:"markdown",value:"Used to add properties to an item. Every HTML element may have an `itemprop` attribute specified, where an `itemprop` consists of a name and value pair."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/itemprop"}]},{name:"itemref",description:{kind:"markdown",value:"Properties that are not descendants of an element with the `itemscope` attribute can be associated with the item using an `itemref`. It provides a list of element ids (not `itemid`s) with additional properties elsewhere in the document."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/itemref"}]},{name:"itemscope",description:{kind:"markdown",value:"`itemscope` (usually) works along with `[itemtype](https://developer.mozilla.org/docs/Web/HTML/Global_attributes#attr-itemtype)` to specify that the HTML contained in a block is about a particular item. `itemscope` creates the Item and defines the scope of the `itemtype` associated with it. `itemtype` is a valid URL of a vocabulary (such as [schema.org](https://schema.org/)) that describes the item and its properties context."},valueSet:"v",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/itemscope"}]},{name:"itemtype",description:{kind:"markdown",value:"Specifies the URL of the vocabulary that will be used to define `itemprop`s (item properties) in the data structure. `[itemscope](https://developer.mozilla.org/docs/Web/HTML/Global_attributes#attr-itemscope)` is used to set the scope of where in the data structure the vocabulary set by `itemtype` will be active."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/itemtype"}]},{name:"lang",description:{kind:"markdown",value:"Helps define the language of an element: the language that non-editable elements are in, or the language that editable elements should be written in by the user. The attribute contains one \u201clanguage tag\u201d (made of hyphen-separated \u201clanguage subtags\u201d) in the format defined in [_Tags for Identifying Languages (BCP47)_](https://www.ietf.org/rfc/bcp/bcp47.txt). [**xml:lang**](#attr-xml:lang) has priority over it."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/lang"}]},{name:"part",description:{kind:"markdown",value:'A space-separated list of the part names of the element. Part names allows CSS to select and style specific elements in a shadow tree via the [`::part`](https://developer.mozilla.org/docs/Web/CSS/::part "The ::part CSS pseudo-element represents any element within a shadow tree that has a matching part attribute.") pseudo-element.'},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/part"}]},{name:"role",valueSet:"roles"},{name:"slot",description:{kind:"markdown",value:"Assigns a slot in a [shadow DOM](https://developer.mozilla.org/docs/Web/Web_Components/Shadow_DOM) shadow tree to an element: An element with a `slot` attribute is assigned to the slot created by the [`<slot>`](https://developer.mozilla.org/docs/Web/HTML/Element/slot \"The HTML <slot> element\u2014part of the Web Components technology suite\u2014is a placeholder inside a web component that you can fill with your own markup, which lets you create separate DOM trees and present them together.\") element whose `[name](https://developer.mozilla.org/docs/Web/HTML/Element/slot#attr-name)` attribute's value matches that `slot` attribute's value."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/slot"}]},{name:"spellcheck",description:{kind:"markdown",value:"An enumerated attribute defines whether the element may be checked for spelling errors. It may have the following values:\n\n* `true`, which indicates that the element should be, if possible, checked for spelling errors;\n* `false`, which indicates that the element should not be checked for spelling errors."},valueSet:"b",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/spellcheck"}]},{name:"style",description:{kind:"markdown",value:'Contains [CSS](https://developer.mozilla.org/docs/Web/CSS) styling declarations to be applied to the element. Note that it is recommended for styles to be defined in a separate file or files. This attribute and the [`<style>`](https://developer.mozilla.org/docs/Web/HTML/Element/style "The HTML <style> element contains style information for a document, or part of a document.") element have mainly the purpose of allowing for quick styling, for example for testing purposes.'},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/style"}]},{name:"tabindex",description:{kind:"markdown",value:"An integer attribute indicating if the element can take input focus (is _focusable_), if it should participate to sequential keyboard navigation, and if so, at what position. It can take several values:\n\n* a _negative value_ means that the element should be focusable, but should not be reachable via sequential keyboard navigation;\n* `0` means that the element should be focusable and reachable via sequential keyboard navigation, but its relative order is defined by the platform convention;\n* a _positive value_ means that the element should be focusable and reachable via sequential keyboard navigation; the order in which the elements are focused is the increasing value of the [**tabindex**](#attr-tabindex). If several elements share the same tabindex, their relative order follows their relative positions in the document."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/tabindex"}]},{name:"title",description:{kind:"markdown",value:"Contains a text representing advisory information related to the element it belongs to. Such information can typically, but not necessarily, be presented to the user as a tooltip."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/title"}]},{name:"translate",description:{kind:"markdown",value:"An enumerated attribute that is used to specify whether an element's attribute values and the values of its [`Text`](https://developer.mozilla.org/docs/Web/API/Text \"The Text interface represents the textual content of Element or Attr. If an element has no markup within its content, it has a single child implementing Text that contains the element's text. However, if the element contains markup, it is parsed into information items and Text nodes that form its children.\") node children are to be translated when the page is localized, or whether to leave them unchanged. It can have the following values:\n\n* empty string and `yes`, which indicates that the element will be translated.\n* `no`, which indicates that the element will not be translated."},valueSet:"y",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/translate"}]},{name:"onabort",description:{kind:"markdown",value:"The loading of a resource has been aborted."}},{name:"onblur",description:{kind:"markdown",value:"An element has lost focus (does not bubble)."}},{name:"oncanplay",description:{kind:"markdown",value:"The user agent can play the media, but estimates that not enough data has been loaded to play the media up to its end without having to stop for further buffering of content."}},{name:"oncanplaythrough",description:{kind:"markdown",value:"The user agent can play the media up to its end without having to stop for further buffering of content."}},{name:"onchange",description:{kind:"markdown",value:"The change event is fired for <input>, <select>, and <textarea> elements when a change to the element's value is committed by the user."}},{name:"onclick",description:{kind:"markdown",value:"A pointing device button has been pressed and released on an element."}},{name:"oncontextmenu",description:{kind:"markdown",value:"The right button of the mouse is clicked (before the context menu is displayed)."}},{name:"ondblclick",description:{kind:"markdown",value:"A pointing device button is clicked twice on an element."}},{name:"ondrag",description:{kind:"markdown",value:"An element or text selection is being dragged (every 350ms)."}},{name:"ondragend",description:{kind:"markdown",value:"A drag operation is being ended (by releasing a mouse button or hitting the escape key)."}},{name:"ondragenter",description:{kind:"markdown",value:"A dragged element or text selection enters a valid drop target."}},{name:"ondragleave",description:{kind:"markdown",value:"A dragged element or text selection leaves a valid drop target."}},{name:"ondragover",description:{kind:"markdown",value:"An element or text selection is being dragged over a valid drop target (every 350ms)."}},{name:"ondragstart",description:{kind:"markdown",value:"The user starts dragging an element or text selection."}},{name:"ondrop",description:{kind:"markdown",value:"An element is dropped on a valid drop target."}},{name:"ondurationchange",description:{kind:"markdown",value:"The duration attribute has been updated."}},{name:"onemptied",description:{kind:"markdown",value:"The media has become empty; for example, this event is sent if the media has already been loaded (or partially loaded), and the load() method is called to reload it."}},{name:"onended",description:{kind:"markdown",value:"Playback has stopped because the end of the media was reached."}},{name:"onerror",description:{kind:"markdown",value:"A resource failed to load."}},{name:"onfocus",description:{kind:"markdown",value:"An element has received focus (does not bubble)."}},{name:"onformchange"},{name:"onforminput"},{name:"oninput",description:{kind:"markdown",value:"The value of an element changes or the content of an element with the attribute contenteditable is modified."}},{name:"oninvalid",description:{kind:"markdown",value:"A submittable element has been checked and doesn't satisfy its constraints."}},{name:"onkeydown",description:{kind:"markdown",value:"A key is pressed down."}},{name:"onkeypress",description:{kind:"markdown",value:"A key is pressed down and that key normally produces a character value (use input instead)."}},{name:"onkeyup",description:{kind:"markdown",value:"A key is released."}},{name:"onload",description:{kind:"markdown",value:"A resource and its dependent resources have finished loading."}},{name:"onloadeddata",description:{kind:"markdown",value:"The first frame of the media has finished loading."}},{name:"onloadedmetadata",description:{kind:"markdown",value:"The metadata has been loaded."}},{name:"onloadstart",description:{kind:"markdown",value:"Progress has begun."}},{name:"onmousedown",description:{kind:"markdown",value:"A pointing device button (usually a mouse) is pressed on an element."}},{name:"onmousemove",description:{kind:"markdown",value:"A pointing device is moved over an element."}},{name:"onmouseout",description:{kind:"markdown",value:"A pointing device is moved off the element that has the listener attached or off one of its children."}},{name:"onmouseover",description:{kind:"markdown",value:"A pointing device is moved onto the element that has the listener attached or onto one of its children."}},{name:"onmouseup",description:{kind:"markdown",value:"A pointing device button is released over an element."}},{name:"onmousewheel"},{name:"onmouseenter",description:{kind:"markdown",value:"A pointing device is moved onto the element that has the listener attached."}},{name:"onmouseleave",description:{kind:"markdown",value:"A pointing device is moved off the element that has the listener attached."}},{name:"onpause",description:{kind:"markdown",value:"Playback has been paused."}},{name:"onplay",description:{kind:"markdown",value:"Playback has begun."}},{name:"onplaying",description:{kind:"markdown",value:"Playback is ready to start after having been paused or delayed due to lack of data."}},{name:"onprogress",description:{kind:"markdown",value:"In progress."}},{name:"onratechange",description:{kind:"markdown",value:"The playback rate has changed."}},{name:"onreset",description:{kind:"markdown",value:"A form is reset."}},{name:"onresize",description:{kind:"markdown",value:"The document view has been resized."}},{name:"onreadystatechange",description:{kind:"markdown",value:"The readyState attribute of a document has changed."}},{name:"onscroll",description:{kind:"markdown",value:"The document view or an element has been scrolled."}},{name:"onseeked",description:{kind:"markdown",value:"A seek operation completed."}},{name:"onseeking",description:{kind:"markdown",value:"A seek operation began."}},{name:"onselect",description:{kind:"markdown",value:"Some text is being selected."}},{name:"onshow",description:{kind:"markdown",value:"A contextmenu event was fired on/bubbled to an element that has a contextmenu attribute"}},{name:"onstalled",description:{kind:"markdown",value:"The user agent is trying to fetch media data, but data is unexpectedly not forthcoming."}},{name:"onsubmit",description:{kind:"markdown",value:"A form is submitted."}},{name:"onsuspend",description:{kind:"markdown",value:"Media data loading has been suspended."}},{name:"ontimeupdate",description:{kind:"markdown",value:"The time indicated by the currentTime attribute has been updated."}},{name:"onvolumechange",description:{kind:"markdown",value:"The volume has changed."}},{name:"onwaiting",description:{kind:"markdown",value:"Playback has stopped because of a temporary lack of data."}},{name:"onpointercancel",description:{kind:"markdown",value:"The pointer is unlikely to produce any more events."}},{name:"onpointerdown",description:{kind:"markdown",value:"The pointer enters the active buttons state."}},{name:"onpointerenter",description:{kind:"markdown",value:"Pointing device is moved inside the hit-testing boundary."}},{name:"onpointerleave",description:{kind:"markdown",value:"Pointing device is moved out of the hit-testing boundary."}},{name:"onpointerlockchange",description:{kind:"markdown",value:"The pointer was locked or released."}},{name:"onpointerlockerror",description:{kind:"markdown",value:"It was impossible to lock the pointer for technical reasons or because the permission was denied."}},{name:"onpointermove",description:{kind:"markdown",value:"The pointer changed coordinates."}},{name:"onpointerout",description:{kind:"markdown",value:"The pointing device moved out of hit-testing boundary or leaves detectable hover range."}},{name:"onpointerover",description:{kind:"markdown",value:"The pointing device is moved into the hit-testing boundary."}},{name:"onpointerup",description:{kind:"markdown",value:"The pointer leaves the active buttons state."}},{name:"aria-activedescendant",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-activedescendant"}],description:{kind:"markdown",value:"Identifies the currently active element when DOM focus is on a [`composite`](https://www.w3.org/TR/wai-aria-1.1/#composite) widget, [`textbox`](https://www.w3.org/TR/wai-aria-1.1/#textbox), [`group`](https://www.w3.org/TR/wai-aria-1.1/#group), or [`application`](https://www.w3.org/TR/wai-aria-1.1/#application)."}},{name:"aria-atomic",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-atomic"}],description:{kind:"markdown",value:"Indicates whether [assistive technologies](https://www.w3.org/TR/wai-aria-1.1/#dfn-assistive-technology) will present all, or only parts of, the changed region based on the change notifications defined by the [`aria-relevant`](https://www.w3.org/TR/wai-aria-1.1/#aria-relevant) attribute."}},{name:"aria-autocomplete",valueSet:"autocomplete",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-autocomplete"}],description:{kind:"markdown",value:"Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be presented if they are made."}},{name:"aria-busy",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-busy"}],description:{kind:"markdown",value:"Indicates an element is being modified and that assistive technologies _MAY_ want to wait until the modifications are complete before exposing them to the user."}},{name:"aria-checked",valueSet:"tristate",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-checked"}],description:{kind:"markdown",value:'Indicates the current "checked" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of checkboxes, radio buttons, and other [widgets](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-pressed`](https://www.w3.org/TR/wai-aria-1.1/#aria-pressed) and [`aria-selected`](https://www.w3.org/TR/wai-aria-1.1/#aria-selected).'}},{name:"aria-colcount",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-colcount"}],description:{kind:"markdown",value:"Defines the total number of columns in a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-colindex)."}},{name:"aria-colindex",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-colindex"}],description:{kind:"markdown",value:"Defines an [element's](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) column index or position with respect to the total number of columns within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colcount`](https://www.w3.org/TR/wai-aria-1.1/#aria-colcount) and [`aria-colspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-colspan)."}},{name:"aria-colspan",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-colspan"}],description:{kind:"markdown",value:"Defines the number of columns spanned by a cell or gridcell within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-colindex) and [`aria-rowspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan)."}},{name:"aria-controls",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-controls"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) whose contents or presence are controlled by the current element. See related [`aria-owns`](https://www.w3.org/TR/wai-aria-1.1/#aria-owns)."}},{name:"aria-current",valueSet:"current",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-current"}],description:{kind:"markdown",value:"Indicates the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that represents the current item within a container or set of related elements."}},{name:"aria-describedby",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-describedby"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) that describes the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-labelledby`](https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby)."}},{name:"aria-disabled",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-disabled"}],description:{kind:"markdown",value:"Indicates that the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is [perceivable](https://www.w3.org/TR/wai-aria-1.1/#dfn-perceivable) but disabled, so it is not editable or otherwise [operable](https://www.w3.org/TR/wai-aria-1.1/#dfn-operable). See related [`aria-hidden`](https://www.w3.org/TR/wai-aria-1.1/#aria-hidden) and [`aria-readonly`](https://www.w3.org/TR/wai-aria-1.1/#aria-readonly)."}},{name:"aria-dropeffect",valueSet:"dropeffect",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-dropeffect"}],description:{kind:"markdown",value:"\\[Deprecated in ARIA 1.1\\] Indicates what functions can be performed when a dragged object is released on the drop target."}},{name:"aria-errormessage",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-errormessage"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that provides an error message for the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-invalid`](https://www.w3.org/TR/wai-aria-1.1/#aria-invalid) and [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby)."}},{name:"aria-expanded",valueSet:"u",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-expanded"}],description:{kind:"markdown",value:"Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed."}},{name:"aria-flowto",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-flowto"}],description:{kind:"markdown",value:"Identifies the next [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) in an alternate reading order of content which, at the user's discretion, allows assistive technology to override the general default of reading in document source order."}},{name:"aria-grabbed",valueSet:"u",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-grabbed"}],description:{kind:"markdown",value:'\\[Deprecated in ARIA 1.1\\] Indicates an element\'s "grabbed" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) in a drag-and-drop operation.'}},{name:"aria-haspopup",valueSet:"haspopup",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-haspopup"}],description:{kind:"markdown",value:"Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element)."}},{name:"aria-hidden",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-hidden"}],description:{kind:"markdown",value:"Indicates whether the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is exposed to an accessibility API. See related [`aria-disabled`](https://www.w3.org/TR/wai-aria-1.1/#aria-disabled)."}},{name:"aria-invalid",valueSet:"invalid",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-invalid"}],description:{kind:"markdown",value:"Indicates the entered value does not conform to the format expected by the application. See related [`aria-errormessage`](https://www.w3.org/TR/wai-aria-1.1/#aria-errormessage)."}},{name:"aria-label",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-label"}],description:{kind:"markdown",value:"Defines a string value that labels the current element. See related [`aria-labelledby`](https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby)."}},{name:"aria-labelledby",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) that labels the current element. See related [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby)."}},{name:"aria-level",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-level"}],description:{kind:"markdown",value:"Defines the hierarchical level of an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) within a structure."}},{name:"aria-live",valueSet:"live",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-live"}],description:{kind:"markdown",value:"Indicates that an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) will be updated, and describes the types of updates the [user agents](https://www.w3.org/TR/wai-aria-1.1/#dfn-user-agent), [assistive technologies](https://www.w3.org/TR/wai-aria-1.1/#dfn-assistive-technology), and user can expect from the [live region](https://www.w3.org/TR/wai-aria-1.1/#dfn-live-region)."}},{name:"aria-modal",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-modal"}],description:{kind:"markdown",value:"Indicates whether an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is modal when displayed."}},{name:"aria-multiline",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-multiline"}],description:{kind:"markdown",value:"Indicates whether a text box accepts multiple lines of input or only a single line."}},{name:"aria-multiselectable",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-multiselectable"}],description:{kind:"markdown",value:"Indicates that the user may select more than one item from the current selectable descendants."}},{name:"aria-orientation",valueSet:"orientation",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-orientation"}],description:{kind:"markdown",value:"Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous."}},{name:"aria-owns",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-owns"}],description:{kind:"markdown",value:"Identifies an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) in order to define a visual, functional, or contextual parent/child [relationship](https://www.w3.org/TR/wai-aria-1.1/#dfn-relationship) between DOM elements where the DOM hierarchy cannot be used to represent the relationship. See related [`aria-controls`](https://www.w3.org/TR/wai-aria-1.1/#aria-controls)."}},{name:"aria-placeholder",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-placeholder"}],description:{kind:"markdown",value:"Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value. A hint could be a sample value or a brief description of the expected format."}},{name:"aria-posinset",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-posinset"}],description:{kind:"markdown",value:"Defines an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element)'s number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. See related [`aria-setsize`](https://www.w3.org/TR/wai-aria-1.1/#aria-setsize)."}},{name:"aria-pressed",valueSet:"tristate",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-pressed"}],description:{kind:"markdown",value:'Indicates the current "pressed" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of toggle buttons. See related [`aria-checked`](https://www.w3.org/TR/wai-aria-1.1/#aria-checked) and [`aria-selected`](https://www.w3.org/TR/wai-aria-1.1/#aria-selected).'}},{name:"aria-readonly",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-readonly"}],description:{kind:"markdown",value:"Indicates that the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is not editable, but is otherwise [operable](https://www.w3.org/TR/wai-aria-1.1/#dfn-operable). See related [`aria-disabled`](https://www.w3.org/TR/wai-aria-1.1/#aria-disabled)."}},{name:"aria-relevant",valueSet:"relevant",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-relevant"}],description:{kind:"markdown",value:"Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified. See related [`aria-atomic`](https://www.w3.org/TR/wai-aria-1.1/#aria-atomic)."}},{name:"aria-required",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-required"}],description:{kind:"markdown",value:"Indicates that user input is required on the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) before a form may be submitted."}},{name:"aria-roledescription",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-roledescription"}],description:{kind:"markdown",value:"Defines a human-readable, author-localized description for the [role](https://www.w3.org/TR/wai-aria-1.1/#dfn-role) of an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element)."}},{name:"aria-rowcount",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-rowcount"}],description:{kind:"markdown",value:"Defines the total number of rows in a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex)."}},{name:"aria-rowindex",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex"}],description:{kind:"markdown",value:"Defines an [element's](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) row index or position with respect to the total number of rows within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowcount`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowcount) and [`aria-rowspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan)."}},{name:"aria-rowspan",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan"}],description:{kind:"markdown",value:"Defines the number of rows spanned by a cell or gridcell within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex) and [`aria-colspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-colspan)."}},{name:"aria-selected",valueSet:"u",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-selected"}],description:{kind:"markdown",value:'Indicates the current "selected" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of various [widgets](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-checked`](https://www.w3.org/TR/wai-aria-1.1/#aria-checked) and [`aria-pressed`](https://www.w3.org/TR/wai-aria-1.1/#aria-pressed).'}},{name:"aria-setsize",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-setsize"}],description:{kind:"markdown",value:"Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. See related [`aria-posinset`](https://www.w3.org/TR/wai-aria-1.1/#aria-posinset)."}},{name:"aria-sort",valueSet:"sort",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-sort"}],description:{kind:"markdown",value:"Indicates if items in a table or grid are sorted in ascending or descending order."}},{name:"aria-valuemax",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuemax"}],description:{kind:"markdown",value:"Defines the maximum allowed value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget)."}},{name:"aria-valuemin",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuemin"}],description:{kind:"markdown",value:"Defines the minimum allowed value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget)."}},{name:"aria-valuenow",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuenow"}],description:{kind:"markdown",value:"Defines the current value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-valuetext`](https://www.w3.org/TR/wai-aria-1.1/#aria-valuetext)."}},{name:"aria-valuetext",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuetext"}],description:{kind:"markdown",value:"Defines the human readable text alternative of [`aria-valuenow`](https://www.w3.org/TR/wai-aria-1.1/#aria-valuenow) for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget)."}},{name:"aria-details",description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that provides a detailed, extended description for the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby)."}},{name:"aria-keyshortcuts",description:{kind:"markdown",value:"Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element."}}],valueSets:[{name:"b",values:[{name:"true"},{name:"false"}]},{name:"u",values:[{name:"true"},{name:"false"},{name:"undefined"}]},{name:"o",values:[{name:"on"},{name:"off"}]},{name:"y",values:[{name:"yes"},{name:"no"}]},{name:"w",values:[{name:"soft"},{name:"hard"}]},{name:"d",values:[{name:"ltr"},{name:"rtl"},{name:"auto"}]},{name:"m",values:[{name:"get",description:{kind:"markdown",value:"Corresponds to the HTTP [GET method](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.3); form data are appended to the `action` attribute URI with a '?' as separator, and the resulting URI is sent to the server. Use this method when the form has no side-effects and contains only ASCII characters."}},{name:"post",description:{kind:"markdown",value:"Corresponds to the HTTP [POST method](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.5); form data are included in the body of the form and sent to the server."}},{name:"dialog",description:{kind:"markdown",value:"Use when the form is inside a [`<dialog>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog) element to close the dialog when submitted."}}]},{name:"fm",values:[{name:"get"},{name:"post"}]},{name:"s",values:[{name:"row"},{name:"col"},{name:"rowgroup"},{name:"colgroup"}]},{name:"t",values:[{name:"hidden"},{name:"text"},{name:"search"},{name:"tel"},{name:"url"},{name:"email"},{name:"password"},{name:"datetime"},{name:"date"},{name:"month"},{name:"week"},{name:"time"},{name:"datetime-local"},{name:"number"},{name:"range"},{name:"color"},{name:"checkbox"},{name:"radio"},{name:"file"},{name:"submit"},{name:"image"},{name:"reset"},{name:"button"}]},{name:"im",values:[{name:"verbatim"},{name:"latin"},{name:"latin-name"},{name:"latin-prose"},{name:"full-width-latin"},{name:"kana"},{name:"kana-name"},{name:"katakana"},{name:"numeric"},{name:"tel"},{name:"email"},{name:"url"}]},{name:"bt",values:[{name:"button"},{name:"submit"},{name:"reset"},{name:"menu"}]},{name:"lt",values:[{name:"1"},{name:"a"},{name:"A"},{name:"i"},{name:"I"}]},{name:"mt",values:[{name:"context"},{name:"toolbar"}]},{name:"mit",values:[{name:"command"},{name:"checkbox"},{name:"radio"}]},{name:"et",values:[{name:"application/x-www-form-urlencoded"},{name:"multipart/form-data"},{name:"text/plain"}]},{name:"tk",values:[{name:"subtitles"},{name:"captions"},{name:"descriptions"},{name:"chapters"},{name:"metadata"}]},{name:"pl",values:[{name:"none"},{name:"metadata"},{name:"auto"}]},{name:"sh",values:[{name:"circle"},{name:"default"},{name:"poly"},{name:"rect"}]},{name:"xo",values:[{name:"anonymous"},{name:"use-credentials"}]},{name:"target",values:[{name:"_self"},{name:"_blank"},{name:"_parent"},{name:"_top"}]},{name:"sb",values:[{name:"allow-forms"},{name:"allow-modals"},{name:"allow-pointer-lock"},{name:"allow-popups"},{name:"allow-popups-to-escape-sandbox"},{name:"allow-same-origin"},{name:"allow-scripts"},{name:"allow-top-navigation"}]},{name:"tristate",values:[{name:"true"},{name:"false"},{name:"mixed"},{name:"undefined"}]},{name:"inputautocomplete",values:[{name:"additional-name"},{name:"address-level1"},{name:"address-level2"},{name:"address-level3"},{name:"address-level4"},{name:"address-line1"},{name:"address-line2"},{name:"address-line3"},{name:"bday"},{name:"bday-year"},{name:"bday-day"},{name:"bday-month"},{name:"billing"},{name:"cc-additional-name"},{name:"cc-csc"},{name:"cc-exp"},{name:"cc-exp-month"},{name:"cc-exp-year"},{name:"cc-family-name"},{name:"cc-given-name"},{name:"cc-name"},{name:"cc-number"},{name:"cc-type"},{name:"country"},{name:"country-name"},{name:"current-password"},{name:"email"},{name:"family-name"},{name:"fax"},{name:"given-name"},{name:"home"},{name:"honorific-prefix"},{name:"honorific-suffix"},{name:"impp"},{name:"language"},{name:"mobile"},{name:"name"},{name:"new-password"},{name:"nickname"},{name:"off"},{name:"on"},{name:"organization"},{name:"organization-title"},{name:"pager"},{name:"photo"},{name:"postal-code"},{name:"sex"},{name:"shipping"},{name:"street-address"},{name:"tel-area-code"},{name:"tel"},{name:"tel-country-code"},{name:"tel-extension"},{name:"tel-local"},{name:"tel-local-prefix"},{name:"tel-local-suffix"},{name:"tel-national"},{name:"transaction-amount"},{name:"transaction-currency"},{name:"url"},{name:"username"},{name:"work"}]},{name:"autocomplete",values:[{name:"inline"},{name:"list"},{name:"both"},{name:"none"}]},{name:"current",values:[{name:"page"},{name:"step"},{name:"location"},{name:"date"},{name:"time"},{name:"true"},{name:"false"}]},{name:"dropeffect",values:[{name:"copy"},{name:"move"},{name:"link"},{name:"execute"},{name:"popup"},{name:"none"}]},{name:"invalid",values:[{name:"grammar"},{name:"false"},{name:"spelling"},{name:"true"}]},{name:"live",values:[{name:"off"},{name:"polite"},{name:"assertive"}]},{name:"orientation",values:[{name:"vertical"},{name:"horizontal"},{name:"undefined"}]},{name:"relevant",values:[{name:"additions"},{name:"removals"},{name:"text"},{name:"all"},{name:"additions text"}]},{name:"sort",values:[{name:"ascending"},{name:"descending"},{name:"none"},{name:"other"}]},{name:"roles",values:[{name:"alert"},{name:"alertdialog"},{name:"button"},{name:"checkbox"},{name:"dialog"},{name:"gridcell"},{name:"link"},{name:"log"},{name:"marquee"},{name:"menuitem"},{name:"menuitemcheckbox"},{name:"menuitemradio"},{name:"option"},{name:"progressbar"},{name:"radio"},{name:"scrollbar"},{name:"searchbox"},{name:"slider"},{name:"spinbutton"},{name:"status"},{name:"switch"},{name:"tab"},{name:"tabpanel"},{name:"textbox"},{name:"timer"},{name:"tooltip"},{name:"treeitem"},{name:"combobox"},{name:"grid"},{name:"listbox"},{name:"menu"},{name:"menubar"},{name:"radiogroup"},{name:"tablist"},{name:"tree"},{name:"treegrid"},{name:"application"},{name:"article"},{name:"cell"},{name:"columnheader"},{name:"definition"},{name:"directory"},{name:"document"},{name:"feed"},{name:"figure"},{name:"group"},{name:"heading"},{name:"img"},{name:"list"},{name:"listitem"},{name:"math"},{name:"none"},{name:"note"},{name:"presentation"},{name:"region"},{name:"row"},{name:"rowgroup"},{name:"rowheader"},{name:"separator"},{name:"table"},{name:"term"},{name:"text"},{name:"toolbar"},{name:"banner"},{name:"complementary"},{name:"contentinfo"},{name:"form"},{name:"main"},{name:"navigation"},{name:"region"},{name:"search"},{name:"doc-abstract"},{name:"doc-acknowledgments"},{name:"doc-afterword"},{name:"doc-appendix"},{name:"doc-backlink"},{name:"doc-biblioentry"},{name:"doc-bibliography"},{name:"doc-biblioref"},{name:"doc-chapter"},{name:"doc-colophon"},{name:"doc-conclusion"},{name:"doc-cover"},{name:"doc-credit"},{name:"doc-credits"},{name:"doc-dedication"},{name:"doc-endnote"},{name:"doc-endnotes"},{name:"doc-epigraph"},{name:"doc-epilogue"},{name:"doc-errata"},{name:"doc-example"},{name:"doc-footnote"},{name:"doc-foreword"},{name:"doc-glossary"},{name:"doc-glossref"},{name:"doc-index"},{name:"doc-introduction"},{name:"doc-noteref"},{name:"doc-notice"},{name:"doc-pagebreak"},{name:"doc-pagelist"},{name:"doc-part"},{name:"doc-preface"},{name:"doc-prologue"},{name:"doc-pullquote"},{name:"doc-qna"},{name:"doc-subtitle"},{name:"doc-tip"},{name:"doc-toc"}]},{name:"metanames",values:[{name:"application-name"},{name:"author"},{name:"description"},{name:"format-detection"},{name:"generator"},{name:"keywords"},{name:"publisher"},{name:"referrer"},{name:"robots"},{name:"theme-color"},{name:"viewport"}]},{name:"haspopup",values:[{name:"false",description:{kind:"markdown",value:"(default) Indicates the element does not have a popup."}},{name:"true",description:{kind:"markdown",value:"Indicates the popup is a menu."}},{name:"menu",description:{kind:"markdown",value:"Indicates the popup is a menu."}},{name:"listbox",description:{kind:"markdown",value:"Indicates the popup is a listbox."}},{name:"tree",description:{kind:"markdown",value:"Indicates the popup is a tree."}},{name:"grid",description:{kind:"markdown",value:"Indicates the popup is a grid."}},{name:"dialog",description:{kind:"markdown",value:"Indicates the popup is a dialog."}}]},{name:"decoding",values:[{name:"sync"},{name:"async"},{name:"auto"}]},{name:"loading",values:[{name:"eager",description:{kind:"markdown",value:"Loads the image immediately, regardless of whether or not the image is currently within the visible viewport (this is the default value)."}},{name:"lazy",description:{kind:"markdown",value:"Defers loading the image until it reaches a calculated distance from the viewport, as defined by the browser. The intent is to avoid the network and storage bandwidth needed to handle the image until it's reasonably certain that it will be needed. This generally improves the performance of the content in most typical use cases."}}]},{name:"referrerpolicy",values:[{name:"no-referrer"},{name:"no-referrer-when-downgrade"},{name:"origin"},{name:"origin-when-cross-origin"},{name:"same-origin"},{name:"strict-origin"},{name:"strict-origin-when-cross-origin"},{name:"unsafe-url"}]}]},_i=class{constructor(e){this.dataProviders=[],this.setDataProviders(!1!==e.useDefaultDataProvider,e.customDataProviders||[])}setDataProviders(e,t){this.dataProviders=[],e&&this.dataProviders.push(new En("html5",pi)),this.dataProviders.push(...t)}getDataProviders(){return this.dataProviders}isVoidElement(e,t){return!!e&&function(e,t,n){let i=0,r=e.length-1;for(;i<=r;){const s=(i+r)/2|0,o=n(e[s],t);if(o<0)i=s+1;else{if(!(o>0))return s;r=s-1}}return-(i+1)}(t,e.toLowerCase(),((e,t)=>e.localeCompare(t)))>=0}getVoidElements(e){const t=Array.isArray(e)?e:this.getDataProviders().filter((t=>t.isApplicable(e))),n=[];return t.forEach((e=>{e.provideTags().filter((e=>e.void)).forEach((e=>n.push(e.name)))})),n.sort()}isPathAttribute(e,t){if("src"===t||"href"===t)return!0;const n=bi[e];return!!n&&("string"===typeof n?n===t:-1!==n.indexOf(t))}},bi={a:"href",area:"href",body:"background",blockquote:"cite",del:"cite",form:"action",frame:["src","longdesc"],img:["src","longdesc"],ins:"cite",link:"href",object:"data",q:"cite",script:"src",audio:"src",button:"formaction",command:"icon",embed:"src",html:"manifest",input:["src","formaction"],source:"src",track:"src",video:["src","poster"]},vi={};function wi(e,t){return new En(e,t)}var ki=class{constructor(e,t){this._ctx=e,this._languageSettings=t.languageSettings,this._languageId=t.languageId;const n=this._languageSettings.data,i=n?.useDefaultDataProvider,r=[];if(n?.dataProviders)for(const s in n.dataProviders)r.push(wi(s,n.dataProviders[s]));this._languageService=function(e=vi){const t=new _i(e),n=new Hn(e,t),i=new zn(e,t),r=new mn(t),s=new mi(r),o=new fi(t),a=new ii(t);return{setDataProviders:t.setDataProviders.bind(t),createScanner:un,parseHTMLDocument:r.parseDocument.bind(r),doComplete:i.doComplete.bind(i),doComplete2:i.doComplete2.bind(i),setCompletionParticipants:i.setCompletionParticipants.bind(i),doHover:n.doHover.bind(n),format:Gn,findDocumentHighlights:ri,findDocumentLinks:a.findDocumentLinks.bind(a),findDocumentSymbols:li,findDocumentSymbols2:hi,getFoldingRanges:o.getFoldingRanges.bind(o),getSelectionRanges:s.getSelectionRanges.bind(s),doQuoteComplete:i.doQuoteComplete.bind(i),doTagComplete:i.doTagComplete.bind(i),doRename:di,findMatchingTagPosition:ui,findOnTypeRenameRanges:gi,findLinkedEditingRanges:gi}}({useDefaultDataProvider:i,customDataProviders:r})}async doComplete(e,t){let n=this._getTextDocument(e);if(!n)return null;let i=this._languageService.parseHTMLDocument(n);return Promise.resolve(this._languageService.doComplete(n,t,i,this._languageSettings&&this._languageSettings.suggest))}async format(e,t,n){let i=this._getTextDocument(e);if(!i)return[];let r={...this._languageSettings.format,...n},s=this._languageService.format(i,t,r);return Promise.resolve(s)}async doHover(e,t){let n=this._getTextDocument(e);if(!n)return null;let i=this._languageService.parseHTMLDocument(n),r=this._languageService.doHover(n,t,i);return Promise.resolve(r)}async findDocumentHighlights(e,t){let n=this._getTextDocument(e);if(!n)return[];let i=this._languageService.parseHTMLDocument(n),r=this._languageService.findDocumentHighlights(n,t,i);return Promise.resolve(r)}async findDocumentLinks(e){let t=this._getTextDocument(e);if(!t)return[];let n=this._languageService.findDocumentLinks(t,null);return Promise.resolve(n)}async findDocumentSymbols(e){let t=this._getTextDocument(e);if(!t)return[];let n=this._languageService.parseHTMLDocument(t),i=this._languageService.findDocumentSymbols(t,n);return Promise.resolve(i)}async getFoldingRanges(e,t){let n=this._getTextDocument(e);if(!n)return[];let i=this._languageService.getFoldingRanges(n,t);return Promise.resolve(i)}async getSelectionRanges(e,t){let n=this._getTextDocument(e);if(!n)return[];let i=this._languageService.getSelectionRanges(n,t);return Promise.resolve(i)}async doRename(e,t,n){let i=this._getTextDocument(e);if(!i)return null;let r=this._languageService.parseHTMLDocument(i),s=this._languageService.doRename(i,t,n,r);return Promise.resolve(s)}_getTextDocument(e){let t=this._ctx.getMirrorModels();for(let n of t)if(n.uri.toString()===e)return Bt.create(e,this._languageId,n.version,n.getValue());return null}};self.onmessage=()=>{s(((e,t)=>new ki(e,t)))}})()})();
\ No newline at end of file +(()=>{var e={146:(e,t,n)=>{"use strict";n.d(t,{V0:()=>r,aI:()=>i,kT:()=>s});Object.prototype.hasOwnProperty;function i(e,t){if(e===t)return!0;if(null===e||void 0===e||null===t||void 0===t)return!1;if(typeof e!==typeof t)return!1;if("object"!==typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;let n,r;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!i(e[n],t[n]))return!1}else{const s=[];for(r in e)s.push(r);s.sort();const o=[];for(r in t)o.push(r);if(o.sort(),!i(s,o))return!1;for(n=0;n<s.length;n++)if(!i(e[s[n]],t[s[n]]))return!1}return!0}function r(e){const t=[];for(const n of function(e){let t=[];for(;Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}(e))"function"===typeof e[n]&&t.push(n);return t}function s(e,t){const n=e=>function(){const n=Array.prototype.slice.call(arguments,0);return t(e,n)},i={};for(const r of e)i[r]=n(r);return i}},154:(e,t,n)=>{"use strict";n.d(t,{L:()=>i});const i=(0,n(3591).u1)("languageService")},360:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITextResourceConfigurationService:()=>r,ITextResourcePropertiesService:()=>s});var i=n(3591);const r=(0,i.u1)("textResourceConfigurationService"),s=(0,i.u1)("textResourcePropertiesService")},448:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MarkerDecorationsService:()=>T});var i,r=n(1508);!function(e){e[e.Ignore=0]="Ignore",e[e.Info=1]="Info",e[e.Warning=2]="Warning",e[e.Error=3]="Error"}(i||(i={})),function(e){const t="error",n="warning",i="info";e.fromValue=function(s){return s?r.Q_(t,s)?e.Error:r.Q_(n,s)||r.Q_("warn",s)?e.Warning:r.Q_(i,s)?e.Info:e.Ignore:e.Ignore},e.toString=function(r){switch(r){case e.Error:return t;case e.Warning:return n;case e.Info:return i;default:return"ignore"}}}(i||(i={}));const s=i;var o,a,l=n(8209),h=n(3591);!function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(o||(o={})),function(e){e.compare=function(e,t){return t-e};const t=Object.create(null);t[e.Error]=(0,l.kg)("sev.error","Error"),t[e.Warning]=(0,l.kg)("sev.warning","Warning"),t[e.Info]=(0,l.kg)("sev.info","Info"),e.toString=function(e){return t[e]||""},e.fromSeverity=function(t){switch(t){case s.Error:return e.Error;case s.Warning:return e.Warning;case s.Info:return e.Info;case s.Ignore:return e.Hint}},e.toSeverity=function(t){switch(t){case e.Error:return s.Error;case e.Warning:return s.Warning;case e.Info:return s.Info;case e.Hint:return s.Ignore}}}(o||(o={})),function(e){const t="";function n(e,n){const i=[t];return e.source?i.push(e.source.replace("\xa6","\\\xa6")):i.push(t),e.code?"string"===typeof e.code?i.push(e.code.replace("\xa6","\\\xa6")):i.push(e.code.value.replace("\xa6","\\\xa6")):i.push(t),void 0!==e.severity&&null!==e.severity?i.push(o.toString(e.severity)):i.push(t),e.message&&n?i.push(e.message.replace("\xa6","\\\xa6")):i.push(t),void 0!==e.startLineNumber&&null!==e.startLineNumber?i.push(e.startLineNumber.toString()):i.push(t),void 0!==e.startColumn&&null!==e.startColumn?i.push(e.startColumn.toString()):i.push(t),void 0!==e.endLineNumber&&null!==e.endLineNumber?i.push(e.endLineNumber.toString()):i.push(t),void 0!==e.endColumn&&null!==e.endColumn?i.push(e.endColumn.toString()):i.push(t),i.push(t),i.join("\xa6")}e.makeKey=function(e){return n(e,!0)},e.makeKeyOptionalMessage=n}(a||(a={}));const c=(0,h.u1)("markerService");var d=n(1484),u=n(6223),g=n(5724),f=n(7119),m=n(3750),p=n(6677),_=n(6456),b=n(1234),v=n(5845),w=n(4320);var k=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},y=function(e,t){return function(n,i){t(n,i,e)}};let T=class extends d.jG{constructor(e,t){super(),this._markerService=t,this._onDidChangeMarker=this._register(new b.vl),this._markerDecorations=new w.fT,e.getModels().forEach((e=>this._onModelAdded(e))),this._register(e.onModelAdded(this._onModelAdded,this)),this._register(e.onModelRemoved(this._onModelRemoved,this)),this._register(this._markerService.onMarkerChanged(this._handleMarkerChange,this))}dispose(){super.dispose(),this._markerDecorations.forEach((e=>e.dispose())),this._markerDecorations.clear()}getMarker(e,t){const n=this._markerDecorations.get(e);return n&&n.getMarker(t)||null}_handleMarkerChange(e){e.forEach((e=>{const t=this._markerDecorations.get(e);t&&this._updateDecorations(t)}))}_onModelAdded(e){const t=new C(e);this._markerDecorations.set(e.uri,t),this._updateDecorations(t)}_onModelRemoved(e){const t=this._markerDecorations.get(e.uri);t&&(t.dispose(),this._markerDecorations.delete(e.uri)),e.uri.scheme!==_.ny.inMemory&&e.uri.scheme!==_.ny.internal&&e.uri.scheme!==_.ny.vscode||this._markerService?.read({resource:e.uri}).map((e=>e.owner)).forEach((t=>this._markerService.remove(t,[e.uri])))}_updateDecorations(e){const t=this._markerService.read({resource:e.model.uri,take:500});e.update(t)&&this._onDidChangeMarker.fire(e.model)}};T=k([y(0,m.IModelService),y(1,c)],T);class C extends d.jG{constructor(e){super(),this.model=e,this._map=new w.cO,this._register((0,d.s)((()=>{this.model.deltaDecorations([...this._map.values()],[]),this._map.clear()})))}update(e){const{added:t,removed:n}=function(e,t){const n=[],i=[];for(const r of e)t.has(r)||n.push(r);for(const r of t)e.has(r)||i.push(r);return{removed:n,added:i}}(new Set(this._map.keys()),new Set(e));if(0===t.length&&0===n.length)return!1;const i=n.map((e=>this._map.get(e))),r=t.map((e=>({range:this._createDecorationRange(this.model,e),options:this._createDecorationOption(e)}))),s=this.model.deltaDecorations(i,r);for(const o of n)this._map.delete(o);for(let o=0;o<s.length;o++)this._map.set(t[o],s[o]);return!0}getMarker(e){return this._map.getKey(e.id)}_createDecorationRange(e,t){let n=p.Q.lift(t);if(t.severity!==o.Hint||this._hasMarkerTag(t,1)||this._hasMarkerTag(t,2)||(n=n.setEndPosition(n.startLineNumber,n.startColumn+2)),n=e.validateRange(n),n.isEmpty()){const t=e.getLineLastNonWhitespaceColumn(n.startLineNumber)||e.getLineMaxColumn(n.startLineNumber);if(1===t||n.endColumn>=t)return n;const i=e.getWordAtPosition(n.getStartPosition());i&&(n=new p.Q(n.startLineNumber,i.startColumn,n.endLineNumber,i.endColumn))}else if(t.endColumn===Number.MAX_VALUE&&1===t.startColumn&&n.startLineNumber===n.endLineNumber){const i=e.getLineFirstNonWhitespaceColumn(t.startLineNumber);i<n.endColumn&&(n=new p.Q(n.startLineNumber,i,n.endLineNumber,n.endColumn),t.startColumn=i)}return n}_createDecorationOption(e){let t,n,i,r,s;switch(e.severity){case o.Hint:t=this._hasMarkerTag(e,2)?void 0:this._hasMarkerTag(e,1)?"squiggly-unnecessary":"squiggly-hint",i=0;break;case o.Info:t="squiggly-info",n=(0,g.Yf)(f.AQ),i=10,s={color:(0,g.Yf)(v.KoI),position:1};break;case o.Warning:t="squiggly-warning",n=(0,g.Yf)(f.aZ),i=20,s={color:(0,g.Yf)(v.uMG),position:1};break;case o.Error:default:t="squiggly-error",n=(0,g.Yf)(f.yI),i=30,s={color:(0,g.Yf)(v.yLC),position:1}}return e.tags&&(-1!==e.tags.indexOf(1)&&(r="squiggly-inline-unnecessary"),-1!==e.tags.indexOf(2)&&(r="squiggly-inline-deprecated")),{description:"marker-decoration",stickiness:1,className:t,showIfCollapsed:!0,overviewRuler:{color:n,position:u.A5.Right},minimap:s,zIndex:i,inlineClassName:r}}_hasMarkerTag(e,t){return!!e.tags&&e.tags.indexOf(t)>=0}}},534:(e,t,n)=>{"use strict";n.d(t,{V:()=>r});var i=n(5152);class r{constructor(e){const t=(0,i.W)(e);this._defaultValue=t,this._asciiMap=r._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){const t=new Uint8Array(256);return t.fill(e),t}set(e,t){const n=(0,i.W)(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()}}},631:(e,t,n)=>{"use strict";function i(e){return"string"===typeof e}function r(e){return"object"===typeof e&&null!==e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function s(e){return"undefined"===typeof e}function o(e){return s(e)||null===e}n.d(t,{Gv:()=>r,Kg:()=>i,b0:()=>s,z:()=>o})},718:(e,t,n)=>{"use strict";n.r(t),n.d(t,{EditorWorkerHost:()=>i});class i{static{this.CHANNEL_NAME="editorWorkerHost"}static getChannel(e){return e.getChannel(i.CHANNEL_NAME)}static setChannel(e,t){e.setChannel(i.CHANNEL_NAME,t)}}},796:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MirrorModel:()=>_,STOP_SYNC_MODEL_DELTA_TIME_MS:()=>f,WorkerTextModelSyncClient:()=>m,WorkerTextModelSyncServer:()=>p});var i=n(1940),r=n(1484),s=n(9400),o=n(3069),a=n(6677),l=n(6486),h=n(1508),c=(n(9861),n(5152));class d{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=(0,c.j)(e);const n=this.values,i=this.prefixSum,r=t.length;return 0!==r&&(this.values=new Uint32Array(n.length+r),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+r),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(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,t){return e=(0,c.j)(e),t=(0,c.j)(t),this.values[e]!==t&&(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,t){e=(0,c.j)(e),t=(0,c.j)(t);const n=this.values,i=this.prefixSum;if(e>=n.length)return!1;const r=n.length-e;return t>=r&&(t=r),0!==t&&(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(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=(0,c.j)(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;0===t&&(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,i=0,r=0,s=0;for(;t<=n;)if(i=t+(n-t)/2|0,r=this.prefixSum[i],s=r-this.values[i],e<s)n=i-1;else{if(!(e>=r))break;t=i+1}return new u(i,e-s)}}class u{constructor(e,t){this.index=e,this.remainder=t,this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=t}}class g{constructor(e,t,n,i){this._uri=e,this._lines=t,this._eol=n,this._versionId=i,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const t=e.changes;for(const n of t)this._acceptDeleteRange(n.range),this._acceptInsertText(new o.y(n.range.startLineNumber,n.range.startColumn),n.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,t=this._lines.length,n=new Uint32Array(t);for(let i=0;i<t;i++)n[i]=this._lines[i].length+e;this._lineStarts=new d(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)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);else{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))}}_acceptInsertText(e,t){if(0===t.length)return;const n=(0,h.uz)(t);if(1===n.length)return void 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));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]);const i=new Uint32Array(n.length-1);for(let r=1;r<n.length;r++)this._lines.splice(e.lineNumber+r-1,0,n[r]),i[r-1]=n[r].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,i)}}const f=6e4;class m extends r.jG{constructor(e,t,n=!1){if(super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=e,this._modelService=t,!n){const e=new i.vb;e.cancelAndSet((()=>this._checkStopModelSync()),Math.round(f/2)),this._register(e)}}dispose(){for(const e in this._syncedModels)(0,r.AS)(this._syncedModels[e]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(e,t=!1){for(const n of e){const e=n.toString();this._syncedModels[e]||this._beginModelSync(n,t),this._syncedModels[e]&&(this._syncedModelsLastUsedTime[e]=(new Date).getTime())}}_checkStopModelSync(){const e=(new Date).getTime(),t=[];for(const n in this._syncedModelsLastUsedTime){e-this._syncedModelsLastUsedTime[n]>f&&t.push(n)}for(const n of t)this._stopModelSync(n)}_beginModelSync(e,t){const n=this._modelService.getModel(e);if(!n)return;if(!t&&n.isTooLargeForSyncing())return;const i=e.toString();this._proxy.$acceptNewModel({url:n.uri.toString(),lines:n.getLinesContent(),EOL:n.getEOL(),versionId:n.getVersionId()});const s=new r.Cm;s.add(n.onDidChangeContent((e=>{this._proxy.$acceptModelChanged(i.toString(),e)}))),s.add(n.onWillDispose((()=>{this._stopModelSync(i)}))),s.add((0,r.s)((()=>{this._proxy.$acceptRemovedModel(i)}))),this._syncedModels[i]=s}_stopModelSync(e){const t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],(0,r.AS)(t)}}class p{constructor(){this._models=Object.create(null)}getModel(e){return this._models[e]}getModels(){const e=[];return Object.keys(this._models).forEach((t=>e.push(this._models[t]))),e}$acceptNewModel(e){this._models[e.url]=new _(s.r.parse(e.url),e.lines,e.EOL,e.versionId)}$acceptModelChanged(e,t){if(!this._models[e])return;this._models[e].onEvents(t)}$acceptRemovedModel(e){this._models[e]&&delete this._models[e]}}class _ extends g{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){const t=[];for(let n=0;n<this._lines.length;n++){const i=this._lines[n],r=this.offsetAt(new o.y(n+1,1)),s=i.matchAll(e);for(const e of s)(e.index||0===e.index)&&(e.index=e.index+r),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){const n=(0,l.Th)(e.column,(0,l.Io)(t),this._lines[e.lineNumber-1],0);return n?new a.Q(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null}words(e){const t=this._lines,n=this._wordenize.bind(this);let i=0,r="",s=0,o=[];return{*[Symbol.iterator](){for(;;)if(s<o.length){const e=r.substring(o[s].start,o[s].end);s+=1,yield e}else{if(!(i<t.length))break;r=t[i],o=n(r,e),s=0,i+=1}}}}getLineWords(e,t){const n=this._lines[e-1],i=this._wordenize(n,t),r=[];for(const s of i)r.push({word:n.substring(s.start,s.end),startColumn:s.start+1,endColumn:s.end+1});return r}_wordenize(e,t){const n=[];let i;for(t.lastIndex=0;(i=t.exec(e))&&0!==i[0].length;)n.push({start:i.index,end:i.index+i[0].length});return n}getValueInRange(e){if((e=this._validateRange(e)).startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);const t=this._eol,n=e.startLineNumber-1,i=e.endLineNumber-1,r=[];r.push(this._lines[n].substring(e.startColumn-1));for(let s=n+1;s<i;s++)r.push(this._lines[s]);return r.push(this._lines[i].substring(0,e.endColumn-1)),r.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();const 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){const 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(!o.y.isIPosition(e))throw new Error("bad position");let{lineNumber:t,column:n}=e,i=!1;if(t<1)t=1,n=1,i=!0;else if(t>this._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,i=!0;else{const e=this._lines[t-1].length+1;n<1?(n=1,i=!0):n>e&&(n=e,i=!0)}return i?{lineNumber:t,column:n}:e}}},920:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IEditorWorkerService:()=>i});const i=(0,n(3591).u1)("editorWorkerService")},973:(e,t,n)=>{"use strict";n.d(t,{W:()=>s});var i=n(3069),r=n(6677);class s{static{this.zero=new s(0,0)}static betweenPositions(e,t){return e.lineNumber===t.lineNumber?new s(0,t.column-e.column):new s(t.lineNumber-e.lineNumber,t.column-1)}static ofRange(e){return s.betweenPositions(e.getStartPosition(),e.getEndPosition())}static ofText(e){let t=0,n=0;for(const i of e)"\n"===i?(t++,n=0):n++;return new s(t,n)}constructor(e,t){this.lineCount=e,this.columnCount=t}isGreaterThanOrEqualTo(e){return this.lineCount!==e.lineCount?this.lineCount>e.lineCount:this.columnCount>=e.columnCount}createRange(e){return 0===this.lineCount?new r.Q(e.lineNumber,e.column,e.lineNumber,e.column+this.columnCount):new r.Q(e.lineNumber,e.column,e.lineNumber+this.lineCount,this.columnCount+1)}addToPosition(e){return 0===this.lineCount?new i.y(e.lineNumber,e.column+this.columnCount):new i.y(e.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}}},1090:(e,t,n)=>{"use strict";n.d(t,{d:()=>i});class i{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}},1234:(e,t,n)=>{"use strict";n.d(t,{Jh:()=>o,vl:()=>f});var i=n(4383),r=n(1484),s=(n(8925),n(8381));var o;!function(e){function t(e){false}function n(e){return(t,n=null,i)=>{let r,s=!1;return r=e((e=>{if(!s)return r?r.dispose():s=!0,t.call(n,e)}),null,i),s&&r.dispose(),r}}function i(e,t,n){return o(((n,i=null,r)=>e((e=>n.call(i,t(e))),null,r)),n)}function s(e,t,n){return o(((n,i=null,r)=>e((e=>t(e)&&n.call(i,e)),null,r)),n)}function o(e,n){let i;const r={onWillAddFirstListener(){i=e(s.fire,s)},onDidRemoveLastListener(){i?.dispose()}};n||t();const s=new f(r);return n?.add(s),s.event}function a(e,n,i=100,r=!1,s=!1,o,a){let l,h,c,d,u=0;const g={leakWarningThreshold:o,onWillAddFirstListener(){l=e((e=>{u++,h=n(h,e),r&&!c&&(m.fire(h),h=void 0),d=()=>{const e=h;h=void 0,c=void 0,(!r||u>1)&&m.fire(e),u=0},"number"===typeof i?(clearTimeout(c),c=setTimeout(d,i)):void 0===c&&(c=0,queueMicrotask(d))}))},onWillRemoveListener(){s&&u>0&&d?.()},onDidRemoveLastListener(){d=void 0,l.dispose()}};a||t();const m=new f(g);return a?.add(m),m.event}e.None=()=>r.jG.None,e.defer=function(e,t){return a(e,(()=>{}),0,void 0,!0,void 0,t)},e.once=n,e.onceIf=function(t,n){return e.once(e.filter(t,n))},e.map=i,e.forEach=function(e,t,n){return o(((n,i=null,r)=>e((e=>{t(e),n.call(i,e)}),null,r)),n)},e.filter=s,e.signal=function(e){return e},e.any=function(...e){return(t,n=null,i)=>function(e,t){t instanceof Array?t.push(e):t&&t.add(e);return e}((0,r.qE)(...e.map((e=>e((e=>t.call(n,e)))))),i)},e.reduce=function(e,t,n,r){let s=n;return i(e,(e=>(s=t(s,e),s)),r)},e.debounce=a,e.accumulate=function(t,n=0,i){return e.debounce(t,((e,t)=>e?(e.push(t),e):[t]),n,void 0,!0,void 0,i)},e.latch=function(e,t=(e,t)=>e===t,n){let i,r=!0;return s(e,(e=>{const n=r||!t(e,i);return r=!1,i=e,n}),n)},e.split=function(t,n,i){return[e.filter(t,n,i),e.filter(t,(e=>!n(e)),i)]},e.buffer=function(e,t=!1,n=[],i){let r=n.slice(),s=e((e=>{r?r.push(e):a.fire(e)}));i&&i.add(s);const o=()=>{r?.forEach((e=>a.fire(e))),r=null},a=new f({onWillAddFirstListener(){s||(s=e((e=>a.fire(e))),i&&i.add(s))},onDidAddFirstListener(){r&&(t?setTimeout(o):o())},onDidRemoveLastListener(){s&&s.dispose(),s=null}});return i&&i.add(a),a.event},e.chain=function(e,t){return(n,i,r)=>{const s=t(new h);return e((function(e){const t=s.evaluate(e);t!==l&&n.call(i,t)}),void 0,r)}};const l=Symbol("HaltChainable");class h{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:l)),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,n=!0;return this.steps.push((i=>{const r=n||!e(i,t);return n=!1,t=i,r?i:l})),this}evaluate(e){for(const t of this.steps)if((e=t(e))===l)break;return e}}e.fromNodeEventEmitter=function(e,t,n=e=>e){const i=(...e)=>r.fire(n(...e)),r=new f({onWillAddFirstListener:()=>e.on(t,i),onDidRemoveLastListener:()=>e.removeListener(t,i)});return r.event},e.fromDOMEventEmitter=function(e,t,n=e=>e){const i=(...e)=>r.fire(n(...e)),r=new f({onWillAddFirstListener:()=>e.addEventListener(t,i),onDidRemoveLastListener:()=>e.removeEventListener(t,i)});return r.event},e.toPromise=function(e){return new Promise((t=>n(e)(t)))},e.fromPromise=function(e){const t=new f;return e.then((e=>{t.fire(e)}),(()=>{t.fire(void 0)})).finally((()=>{t.dispose()})),t.event},e.forward=function(e,t){return e((e=>t.fire(e)))},e.runAndSubscribe=function(e,t,n){return t(n),e((e=>t(e)))};class c{constructor(e,n){this._observable=e,this._counter=0,this._hasChanged=!1;const i={onWillAddFirstListener:()=>{e.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{e.removeObserver(this)}};n||t(),this.emitter=new f(i),n&&n.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,0===this._counter&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}e.fromObservable=function(e,t){return new c(e,t).emitter.event},e.fromObservableLight=function(e){return(t,n,i)=>{let s=0,o=!1;const a={beginUpdate(){s++},endUpdate(){s--,0===s&&(e.reportChanges(),o&&(o=!1,t.call(n)))},handlePossibleChange(){},handleChange(){o=!0}};e.addObserver(a),e.reportChanges();const l={dispose(){e.removeObserver(a)}};return i instanceof r.Cm?i.add(l):Array.isArray(i)&&i.push(l),l}}}(o||(o={}));class a{static{this.all=new Set}static{this._idPool=0}constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${a._idPool++}`,a.all.add(this)}start(e){this._stopWatch=new s.W,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}class l{static{this._idPool=1}constructor(e,t,n=(l._idPool++).toString(16).padStart(3,"0")){this._errorHandler=e,this.threshold=t,this.name=n,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(e,t){const n=this.threshold;if(n<=0||t<n)return;this._stacks||(this._stacks=new Map);const i=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,i+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=.5*n;const[e,i]=this.getMostFrequentStack(),r=`[${this.name}] potential listener LEAK detected, having ${t} listeners already. MOST frequent listener (${i}):`;console.warn(r),console.warn(e);const s=new c(r,e);this._errorHandler(s)}return()=>{const t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}getMostFrequentStack(){if(!this._stacks)return;let e,t=0;for(const[n,i]of this._stacks)(!e||t<i)&&(e=[n,i],t=i);return e}}class h{static create(){const e=new Error;return new h(e.stack??"")}constructor(e){this.value=e}print(){console.warn(this.value.split("\n").slice(2).join("\n"))}}class c extends Error{constructor(e,t){super(e),this.name="ListenerLeakError",this.stack=t}}class d extends Error{constructor(e,t){super(e),this.name="ListenerRefusalError",this.stack=t}}class u{constructor(e){this.value=e}}let g;class f{constructor(e){this._size=0,this._options=e,this._leakageMon=this._options?.leakWarningThreshold?new l(e?.onListenerError??i.dz,this._options?.leakWarningThreshold??-1):void 0,this._perfMon=this._options?._profName?new a(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,t,n)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const 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);const t=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],n=new d(`${e}. HINT: Stack shows most frequent listener (${t[1]}-times)`,t[0]);return(this._options?.onListenerError||i.dz)(n),r.jG.None}if(this._disposed)return r.jG.None;t&&(e=e.bind(t));const s=new u(e);let o;this._leakageMon&&this._size>=Math.ceil(.2*this._leakageMon.threshold)&&(s.stack=h.create(),o=this._leakageMon.check(s.stack,this._size+1)),this._listeners?this._listeners instanceof u?(this._deliveryQueue??=new m,this._listeners=[this._listeners,s]):this._listeners.push(s):(this._options?.onWillAddFirstListener?.(this),this._listeners=s,this._options?.onDidAddFirstListener?.(this)),this._size++;const a=(0,r.s)((()=>{g?.unregister(a),o?.(),this._removeListener(s)}));if(n instanceof r.Cm?n.add(a):Array.isArray(n)&&n.push(a),g){const e=(new Error).stack.split("\n").slice(2,3).join("\n").trim(),t=/(file:|vscode-file:\/\/vscode-app)?(\/[^:]*:\d+:\d+)/.exec(e);g.register(a,t?.[2]??e,a)}return a},this._event}_removeListener(e){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(1===this._size)return this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),void(this._size=0);const t=this._listeners,n=t.indexOf(e);if(-1===n)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,t[n]=void 0;const i=this._deliveryQueue.current===this;if(2*this._size<=t.length){let e=0;for(let n=0;n<t.length;n++)t[n]?t[e++]=t[n]:i&&(this._deliveryQueue.end--,e<this._deliveryQueue.i&&this._deliveryQueue.i--);t.length=e}}_deliver(e,t){if(!e)return;const n=this._options?.onListenerError||i.dz;if(n)try{e.value(t)}catch(r){n(r)}else e.value(t)}_deliverQueue(e){const 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 u)this._deliver(this._listeners,e);else{const t=this._deliveryQueue;t.enqueue(this,e,this._listeners.length),this._deliverQueue(t)}else;this._perfMon?.stop()}hasListeners(){return this._size>0}}class m{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}}},1484:(e,t,n)=>{"use strict";function i(e,t){const n=this;let i,r=!1;return function(){if(r)return i;if(r=!0,t)try{i=e.apply(n,arguments)}finally{t()}else i=e.apply(n,arguments);return i}}n.d(t,{jG:()=>g,$w:()=>m,Cm:()=>u,HE:()=>f,qE:()=>c,AS:()=>h,VD:()=>a,s:()=>d,Ay:()=>o});var r=n(2522);let s=null;function o(e){return s?.trackDisposable(e),e}function a(e){s?.markAsDisposed(e)}function l(e,t){s?.setParent(e,t)}function h(e){if(r.f.is(e)){const n=[];for(const i of e)if(i)try{i.dispose()}catch(t){n.push(t)}if(1===n.length)throw n[0];if(n.length>1)throw new AggregateError(n,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function c(...e){const t=d((()=>h(e)));return function(e,t){if(s)for(const n of e)s.setParent(n,t)}(e,t),t}function d(e){const t=o({dispose:i((()=>{a(t),e()}))});return t}class u{static{this.DISABLE_DISPOSED_WARNING=!1}constructor(){this._toDispose=new Set,this._isDisposed=!1,o(this)}dispose(){this._isDisposed||(a(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(0!==this._toDispose.size)try{h(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return l(e,this),this._isDisposed?u.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}deleteAndLeak(e){e&&this._toDispose.has(e)&&(this._toDispose.delete(e),l(e,null))}}class g{static{this.None=Object.freeze({dispose(){}})}constructor(){this._store=new u,o(this),l(this._store,this)}dispose(){a(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}class f{constructor(){this._isDisposed=!1,o(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){this._isDisposed||e===this._value||(this._value?.dispose(),e&&l(e,this),this._value=e)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,a(this),this._value?.dispose(),this._value=void 0}}class m{constructor(){this._store=new Map,this._isDisposed=!1,o(this)}dispose(){a(this),this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{h(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,t,n=!1){this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),n||this._store.get(e)?.dispose(),this._store.set(e,t)}deleteAndDispose(e){this._store.get(e)?.dispose(),this._store.delete(e)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}},1508:(e,t,n)=>{"use strict";n.d(t,{$X:()=>N,AV:()=>s,E_:()=>E,HG:()=>u,LJ:()=>y,LU:()=>B,NB:()=>l,OS:()=>h,Q_:()=>v,Ss:()=>D,UD:()=>f,Wv:()=>b,Z5:()=>C,_J:()=>M,aC:()=>I,bm:()=>a,eY:()=>c,jy:()=>o,km:()=>L,lT:()=>g,ne:()=>R,ns:()=>w,pc:()=>k,r_:()=>O,tk:()=>z,tl:()=>W,uz:()=>d,y_:()=>H,z_:()=>T});var i=n(1788),r=n(1090);function s(e){return!e||"string"!==typeof e||0===e.trim().length}function o(e){return e.replace(/[<>"'&]/g,(e=>{switch(e){case"<":return"<";case">":return">";case'"':return""";case"'":return"'";case"&":return"&"}return e}))}function a(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function l(e,t){if(!e||!t)return e;const n=t.length;if(0===n||0===e.length)return e;let i=0;for(;e.indexOf(t,i)===i;)i+=n;return e.substring(i)}function h(e,t,n={}){if(!e)throw new Error("Cannot create regex from empty string");t||(e=a(e)),n.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));let i="";return n.global&&(i+="g"),n.matchCase||(i+="i"),n.multiline&&(i+="m"),n.unicode&&(i+="u"),new RegExp(e,i)}function c(e){if("^"===e.source||"^$"===e.source||"$"===e.source||"^\\s*$"===e.source)return!1;return!(!e.exec("")||0!==e.lastIndex)}function d(e){return e.split(/\r\n|\r|\n/)}function u(e){for(let t=0,n=e.length;t<n;t++){const n=e.charCodeAt(t);if(32!==n&&9!==n)return t}return-1}function g(e,t=e.length-1){for(let n=t;n>=0;n--){const t=e.charCodeAt(n);if(32!==t&&9!==t)return n}return-1}function f(e,t){return e<t?-1:e>t?1:0}function m(e,t,n=0,i=e.length,r=0,s=t.length){for(;n<i&&r<s;n++,r++){const i=e.charCodeAt(n),s=t.charCodeAt(r);if(i<s)return-1;if(i>s)return 1}const o=i-n,a=s-r;return o<a?-1:o>a?1:0}function p(e,t,n=0,i=e.length,r=0,s=t.length){for(;n<i&&r<s;n++,r++){let o=e.charCodeAt(n),a=t.charCodeAt(r);if(o===a)continue;if(o>=128||a>=128)return m(e.toLowerCase(),t.toLowerCase(),n,i,r,s);_(o)&&(o-=32),_(a)&&(a-=32);const l=o-a;if(0!==l)return l}const o=i-n,a=s-r;return o<a?-1:o>a?1:0}function _(e){return e>=97&&e<=122}function b(e){return e>=65&&e<=90}function v(e,t){return e.length===t.length&&0===p(e,t)}function w(e,t){const n=t.length;return!(t.length>e.length)&&0===p(e,t,0,n)}function k(e){return 55296<=e&&e<=56319}function y(e){return 56320<=e&&e<=57343}function T(e,t){return t-56320+(e-55296<<10)+65536}function C(e,t,n){const i=e.charCodeAt(n);if(k(i)&&n+1<t){const t=e.charCodeAt(n+1);if(y(t))return T(i,t)}return i}class S{get offset(){return this._offset}constructor(e,t=0){this._str=e,this._len=e.length,this._offset=t}setOffset(e){this._offset=e}prevCodePoint(){const e=function(e,t){const n=e.charCodeAt(t-1);if(y(n)&&t>1){const i=e.charCodeAt(t-2);if(k(i))return T(i,n)}return n}(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){const e=C(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class L{get offset(){return this._iterator.offset}constructor(e,t=0){this._iterator=new S(e,t)}nextGraphemeLength(){const e=F.getInstance(),t=this._iterator,n=t.offset;let i=e.getGraphemeBreakType(t.nextCodePoint());for(;!t.eol();){const n=t.offset,r=e.getGraphemeBreakType(t.nextCodePoint());if(P(i,r)){t.setOffset(n);break}i=r}return t.offset-n}prevGraphemeLength(){const e=F.getInstance(),t=this._iterator,n=t.offset;let i=e.getGraphemeBreakType(t.prevCodePoint());for(;t.offset>0;){const n=t.offset,r=e.getGraphemeBreakType(t.prevCodePoint());if(P(r,i)){t.setOffset(n);break}i=r}return n-t.offset}eol(){return this._iterator.eol()}}let x;function E(e){return x||(x=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/),x.test(e)}const A=/^[\t\n\r\x20-\x7E]*$/;function I(e){return A.test(e)}const M=/[\u2028\u2029]/;function N(e){return M.test(e)}function R(e){return e>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function D(e){return e>=127462&&e<=127487||8986===e||8987===e||9200===e||9203===e||e>=9728&&e<=10175||11088===e||11093===e||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129008||e>=129280&&e<=129535||e>=129648&&e<=129782}const O=String.fromCharCode(65279);function B(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}function z(e){return(e%=52)<26?String.fromCharCode(97+e):String.fromCharCode(65+e-26)}function P(e,t){return 0===e?5!==t&&7!==t:(2!==e||3!==t)&&(4===e||2===e||3===e||(4===t||2===t||3===t||(8!==e||8!==t&&9!==t&&11!==t&&12!==t)&&((11!==e&&9!==e||9!==t&&10!==t)&&((12!==e&&10!==e||10!==t)&&(5!==t&&13!==t&&(7!==t&&(1!==e&&((13!==e||14!==t)&&(6!==e||6!==t)))))))))}class F{static{this._INSTANCE=null}static getInstance(){return F._INSTANCE||(F._INSTANCE=new F),F._INSTANCE}constructor(){this._data=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]")}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;const t=this._data,n=t.length/3;let i=1;for(;i<=n;)if(e<t[3*i])i*=2;else{if(!(e>t[3*i+1]))return t[3*i+2];i=2*i+1}return 0}}class W{static{this.ambiguousCharacterData=new r.d((()=>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,8218,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,8242,96,1370,96,1523,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,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,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,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,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,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,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,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,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,71922,67,71913,67,65315,67,8557,67,8450,67,8493,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,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,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,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,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,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,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,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,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,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,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,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,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,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,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,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,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,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,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,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,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,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,71919,87,71910,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,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,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,66293,90,71909,90,65338,90,8484,90,8488,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,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,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,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,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,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,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,65283,35,65292,44,65307,59],"ko":[8211,45,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,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,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,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[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,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,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,65283,35,65307,59]}')))}static{this.cache=new i.o5({getCacheKey:JSON.stringify},(e=>{function t(e){const t=new Map;for(let n=0;n<e.length;n+=2)t.set(e[n],e[n+1]);return t}function n(e,t){if(!e)return t;const n=new Map;for(const[i,r]of e)t.has(i)&&n.set(i,r);return n}const i=this.ambiguousCharacterData.value;let r,s=e.filter((e=>!e.startsWith("_")&&e in i));0===s.length&&(s=["_default"]);for(const a of s){r=n(r,t(i[a]))}const o=function(e,t){const n=new Map(e);for(const[i,r]of t)n.set(i,r);return n}(t(i._common),r);return new W(o)}))}static getInstance(e){return W.cache.get(Array.from(e))}static{this._locales=new r.d((()=>Object.keys(W.ambiguousCharacterData.value).filter((e=>!e.startsWith("_")))))}static getLocales(){return W._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())}}class H{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,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,12288,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]")}static{this._data=void 0}static getData(){return this._data||(this._data=new Set(H.getRawData())),this._data}static isInvisibleCharacter(e){return H.getData().has(e)}static get codePoints(){return H.getData()}}},1646:(e,t,n)=>{"use strict";n.d(t,{Fd:()=>c});var i=n(9861),r=n(1234),s=n(631),o=n(8209),a=n(4001),l=n(8748),h=n(6359);const c={Configuration:"base.contributions.configuration"},d={properties:{},patternProperties:{}},u={properties:{},patternProperties:{}},g={properties:{},patternProperties:{}},f={properties:{},patternProperties:{}},m={properties:{},patternProperties:{}},p={properties:{},patternProperties:{}},_="vscode://schemas/settings/resourceLanguage",b=h.O.as(l.F.JSONContribution);const v="\\[([^\\]]+)\\]",w=new RegExp(v,"g"),k=`^(${v})+$`,y=new RegExp(k);function T(e){const t=[];if(y.test(e)){let n=w.exec(e);for(;n?.length;){const i=n[1].trim();i&&t.push(i),n=w.exec(e)}}return(0,i.dM)(t)}const C=new class{constructor(){this.registeredConfigurationDefaults=[],this.overrideIdentifiers=new Set,this._onDidSchemaChange=new r.vl,this._onDidUpdateConfiguration=new r.vl,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:o.kg("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!0,allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.policyConfigurations=new Map,this.excludedConfigurationProperties={},b.registerSchema(_,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(e,t=!0){this.registerConfigurations([e],t)}registerConfigurations(e,t=!0){const n=new Set;this.doRegisterConfigurations(e,t,n),b.registerSchema(_,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:n})}registerDefaultConfigurations(e){const t=new Set;this.doRegisterDefaultConfigurations(e,t),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:t,defaultsOverrides:!0})}doRegisterDefaultConfigurations(e,t){this.registeredConfigurationDefaults.push(...e);const n=[];for(const{overrides:i,source:r}of e)for(const e in i){t.add(e);const s=this.configurationDefaultsOverrides.get(e)??this.configurationDefaultsOverrides.set(e,{configurationDefaultOverrides:[]}).get(e),o=i[e];if(s.configurationDefaultOverrides.push({value:o,source:r}),y.test(e)){const t=this.mergeDefaultConfigurationsForOverrideIdentifier(e,o,r,s.configurationDefaultOverrideValue);if(!t)continue;s.configurationDefaultOverrideValue=t,this.updateDefaultOverrideProperty(e,t,r),n.push(...T(e))}else{const t=this.mergeDefaultConfigurationsForConfigurationProperty(e,o,r,s.configurationDefaultOverrideValue);if(!t)continue;s.configurationDefaultOverrideValue=t;const n=this.configurationProperties[e];n&&(this.updatePropertyDefaultValue(e,n),this.updateSchema(e,n))}}this.doRegisterOverrideIdentifiers(n)}updateDefaultOverrideProperty(e,t,n){const i={type:"object",default:t.value,description:o.kg("defaultLanguageConfiguration.description","Configure settings to be overridden for the {0} language.",(0,a.Mo)(e)),$ref:_,defaultDefaultValue:t.value,source:n,defaultValueSource:n};this.configurationProperties[e]=i,this.defaultLanguageConfigurationOverridesNode.properties[e]=i}mergeDefaultConfigurationsForOverrideIdentifier(e,t,n,i){const r=i?.value||{},o=i?.source??new Map;if(o instanceof Map){for(const e of Object.keys(t)){const i=t[e];if(s.Gv(i)&&(s.b0(r[e])||s.Gv(r[e]))){if(r[e]={...r[e]??{},...i},n)for(const t in i)o.set(`${e}.${t}`,n)}else r[e]=i,n?o.set(e,n):o.delete(e)}return{value:r,source:o}}console.error("objectConfigurationSources is not a Map")}mergeDefaultConfigurationsForConfigurationProperty(e,t,n,i){const r=this.configurationProperties[e],o=i?.value??r?.defaultDefaultValue;let a=n;if(s.Gv(t)&&(void 0!==r&&"object"===r.type||void 0===r&&(s.b0(o)||s.Gv(o)))){if(a=i?.source??new Map,!(a instanceof Map))return void console.error("defaultValueSource is not a Map");for(const i in t)n&&a.set(`${e}.${i}`,n);t={...s.Gv(o)?o:{},...t}}return{value:t,source:a}}registerOverrideIdentifiers(e){this.doRegisterOverrideIdentifiers(e),this._onDidSchemaChange.fire()}doRegisterOverrideIdentifiers(e){for(const t of e)this.overrideIdentifiers.add(t);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(e,t,n){e.forEach((e=>{this.validateAndRegisterProperties(e,t,e.extensionInfo,e.restrictedProperties,void 0,n),this.configurationContributors.push(e),this.registerJSONConfiguration(e)}))}validateAndRegisterProperties(e,t=!0,n,i,r=3,o){r=s.z(e.scope)?r:e.scope;const a=e.properties;if(a)for(const h in a){const e=a[h];t&&S(h,e)?delete a[h]:(e.source=n,e.defaultDefaultValue=a[h].default,this.updatePropertyDefaultValue(h,e),y.test(h)?e.scope=void 0:(e.scope=s.z(e.scope)?r:e.scope,e.restricted=s.z(e.restricted)?!!i?.includes(h):e.restricted),!a[h].hasOwnProperty("included")||a[h].included?(this.configurationProperties[h]=a[h],a[h].policy?.name&&this.policyConfigurations.set(a[h].policy.name,h),!a[h].deprecationMessage&&a[h].markdownDeprecationMessage&&(a[h].deprecationMessage=a[h].markdownDeprecationMessage),o.add(h)):(this.excludedConfigurationProperties[h]=a[h],delete a[h]))}const l=e.allOf;if(l)for(const s of l)this.validateAndRegisterProperties(s,t,n,i,r,o)}getConfigurationProperties(){return this.configurationProperties}getPolicyConfigurations(){return this.policyConfigurations}registerJSONConfiguration(e){const t=e=>{const n=e.properties;if(n)for(const t in n)this.updateSchema(t,n[t]);const i=e.allOf;i?.forEach(t)};t(e)}updateSchema(e,t){switch(d.properties[e]=t,t.scope){case 1:u.properties[e]=t;break;case 2:g.properties[e]=t;break;case 6:f.properties[e]=t;break;case 3:m.properties[e]=t;break;case 4:p.properties[e]=t;break;case 5:p.properties[e]=t,this.resourceLanguageSettingsSchema.properties[e]=t}}updateOverridePropertyPatternKey(){for(const e of this.overrideIdentifiers.values()){const t=`[${e}]`,n={type:"object",description:o.kg("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:o.kg("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:_};this.updatePropertyDefaultValue(t,n),d.properties[t]=n,u.properties[t]=n,g.properties[t]=n,f.properties[t]=n,m.properties[t]=n,p.properties[t]=n}}registerOverridePropertyPatternKey(){const e={type:"object",description:o.kg("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:o.kg("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:_};d.patternProperties[k]=e,u.patternProperties[k]=e,g.patternProperties[k]=e,f.patternProperties[k]=e,m.patternProperties[k]=e,p.patternProperties[k]=e,this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,t){const n=this.configurationDefaultsOverrides.get(e)?.configurationDefaultOverrideValue;let i,r;!n||t.disallowConfigurationDefault&&n.source||(i=n.value,r=n.source),s.b0(i)&&(i=t.defaultDefaultValue,r=void 0),s.b0(i)&&(i=function(e){switch(Array.isArray(e)?e[0]:e){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}(t.type)),t.default=i,t.defaultValueSource=r}};function S(e,t){return e.trim()?y.test(e)?o.kg("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e):void 0!==C.getConfigurationProperties()[e]?o.kg("config.property.duplicate","Cannot register '{0}'. This property is already registered.",e):t.policy?.name&&void 0!==C.getPolicyConfigurations().get(t.policy?.name)?o.kg("config.policy.duplicate","Cannot register '{0}'. The associated policy {1} is already registered with {2}.",e,t.policy?.name,C.getPolicyConfigurations().get(t.policy?.name)):null:o.kg("config.property.empty","Cannot register an empty property")}h.O.add(c.Configuration,C)},1674:(e,t,n)=>{"use strict";n.d(t,{$l:()=>a,Gs:()=>u,MB:()=>o,Sw:()=>c,bb:()=>h,gN:()=>l,pJ:()=>d});var i=n(1090);const r="undefined"!==typeof Buffer;new i.d((()=>new Uint8Array(256)));let s;class o{static wrap(e){return r&&!Buffer.isBuffer(e)&&(e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),new o(e)}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}toString(){return r?this.buffer.toString():(s||(s=new TextDecoder),s.decode(this.buffer))}}function a(e,t){return(e[t+0]|0)>>>0|e[t+1]<<8>>>0}function l(e,t,n){e[n+0]=255&t,t>>>=8,e[n+1]=255&t}function h(e,t){return e[t]*2**24+65536*e[t+1]+256*e[t+2]+e[t+3]}function c(e,t,n){e[n+3]=t,t>>>=8,e[n+2]=t,t>>>=8,e[n+1]=t,t>>>=8,e[n]=t}function d(e,t){return e[t]}function u(e,t,n){e[n]=t}},1773:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DefaultModelSHA1Computer:()=>yr,ModelService:()=>kr});var i=n(1234),r=n(1484),s=n(8067),o=n(9861),a=n(7661),l=n(4383),h=n(1508),c=n(9400),d=n(4454);class u{static _nextVisibleColumn(e,t,n){return 9===e?u.nextRenderTabStop(t,n):h.ne(e)||h.Ss(e)?t+2:t+1}static visibleColumnFromColumn(e,t,n){const i=Math.min(t-1,e.length),r=e.substring(0,i),s=new h.km(r);let o=0;for(;!s.eol();){const e=h.Z5(r,i,s.offset);s.nextGraphemeLength(),o=this._nextVisibleColumn(e,o,n)}return o}static columnFromVisibleColumn(e,t,n){if(t<=0)return 1;const i=e.length,r=new h.km(e);let s=0,o=1;for(;!r.eol();){const a=h.Z5(e,i,r.offset);r.nextGraphemeLength();const l=this._nextVisibleColumn(a,s,n),c=r.offset+1;if(l>=t){return l-t<t-s?c:o}s=l,o=c}return i+1}static nextRenderTabStop(e,t){return e+t-e%t}static nextIndentTabStop(e,t){return e+t-e%t}static prevRenderTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}static prevIndentTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}}function g(e,t,n){let i=h.HG(e);return-1===i&&(i=e.length),function(e,t,n){let i=0;for(let s=0;s<e.length;s++)"\t"===e.charAt(s)?i=u.nextIndentTabStop(i,t):i++;let r="";if(!n){const e=Math.floor(i/t);i%=t;for(let t=0;t<e;t++)r+="\t"}for(let s=0;s<i;s++)r+=" ";return r}(e.substring(0,i),t,n)+e.substring(i)}var f=n(3069),m=n(6677),p=n(5326);const _={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}};var b,v=n(154),w=n(6486);!function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(b||(b={}));class k{constructor(e){if(this._neutralCharacter=null,this._neutralCharacterSearched=!1,this.open=e.open,this.close=e.close,this._inString=!0,this._inComment=!0,this._inRegEx=!0,Array.isArray(e.notIn))for(let t=0,n=e.notIn.length;t<n;t++){switch(e.notIn[t]){case"string":this._inString=!1;break;case"comment":this._inComment=!1;break;case"regex":this._inRegEx=!1}}}isOK(e){switch(e){case 0:return!0;case 1:return this._inComment;case 2:return this._inString;case 3:return this._inRegEx}}shouldAutoClose(e,t){if(0===e.getTokenCount())return!0;const n=e.findTokenIndexAtOffset(t-2),i=e.getStandardTokenType(n);return this.isOK(i)}_findNeutralCharacterInRange(e,t){for(let n=e;n<=t;n++){const e=String.fromCharCode(n);if(!this.open.includes(e)&&!this.close.includes(e))return e}return null}findNeutralCharacter(){return this._neutralCharacterSearched||(this._neutralCharacterSearched=!0,this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(48,57)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(97,122)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(65,90))),this._neutralCharacter}}class y{constructor(e){this.autoClosingPairsOpenByStart=new Map,this.autoClosingPairsOpenByEnd=new Map,this.autoClosingPairsCloseByStart=new Map,this.autoClosingPairsCloseByEnd=new Map,this.autoClosingPairsCloseSingleChar=new Map;for(const t of e)T(this.autoClosingPairsOpenByStart,t.open.charAt(0),t),T(this.autoClosingPairsOpenByEnd,t.open.charAt(t.open.length-1),t),T(this.autoClosingPairsCloseByStart,t.close.charAt(0),t),T(this.autoClosingPairsCloseByEnd,t.close.charAt(t.close.length-1),t),1===t.close.length&&1===t.open.length&&T(this.autoClosingPairsCloseSingleChar,t.close,t)}}function T(e,t,n){e.has(t)?e.get(t).push(n):e.set(t,[n])}class C{static{this.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES=";:.,=}])> \n\t"}static{this.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS="'\"`;:.,=}])> \n\t"}constructor(e){if(e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map((e=>new k(e))):e.brackets?this._autoClosingPairs=e.brackets.map((e=>new k({open:e[0],close:e[1]}))):this._autoClosingPairs=[],e.__electricCharacterSupport&&e.__electricCharacterSupport.docComment){const t=e.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new k({open:t.open,close:t.close||""}))}this._autoCloseBeforeForQuotes="string"===typeof e.autoCloseBefore?e.autoCloseBefore:C.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES,this._autoCloseBeforeForBrackets="string"===typeof e.autoCloseBefore?e.autoCloseBefore:C.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS,this._surroundingPairs=e.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(e){return e?this._autoCloseBeforeForQuotes:this._autoCloseBeforeForBrackets}getSurroundingPairs(){return this._surroundingPairs}}function S(e){return 0!==(3&e)}var L=n(1674);let x,E,A;function I(){return x||(x=new TextDecoder("UTF-16LE")),x}function M(){return A||(A=s.cm()?I():(E||(E=new TextDecoder("UTF-16BE")),E)),A}function N(e,t,n){const i=new Uint16Array(e.buffer,t,n);return n>0&&(65279===i[0]||65534===i[0])?function(e,t,n){const i=[];let r=0;for(let s=0;s<n;s++){const n=L.$l(e,t);t+=2,i[r++]=String.fromCharCode(n)}return i.join("")}(e,t,n):I().decode(i)}class R{constructor(e,t,n,i,r,s){this._richEditBracketBrand=void 0,this.languageId=e,this.index=t,this.open=n,this.close=i,this.forwardRegex=r,this.reversedRegex=s,this._openSet=R._toSet(this.open),this._closeSet=R._toSet(this.close)}isOpen(e){return this._openSet.has(e)}isClose(e){return this._closeSet.has(e)}static _toSet(e){const t=new Set;for(const n of e)t.add(n);return t}}class D{constructor(e,t){this._richEditBracketsBrand=void 0;const n=function(e){const t=e.length;e=e.map((e=>[e[0].toLowerCase(),e[1].toLowerCase()]));const n=[];for(let o=0;o<t;o++)n[o]=o;const i=(e,t)=>{const[n,i]=e,[r,s]=t;return n===r||n===s||i===r||i===s},r=(e,i)=>{const r=Math.min(e,i),s=Math.max(e,i);for(let o=0;o<t;o++)n[o]===s&&(n[o]=r)};for(let o=0;o<t;o++){const s=e[o];for(let a=o+1;a<t;a++)i(s,e[a])&&r(n[o],n[a])}const s=[];for(let o=0;o<t;o++){const i=[],r=[];for(let s=0;s<t;s++)if(n[s]===o){const[t,n]=e[s];i.push(t),r.push(n)}i.length>0&&s.push({open:i,close:r})}return s}(t);this.brackets=n.map(((t,i)=>new R(e,i,t.open,t.close,function(e,t,n,i){let r=[];r=r.concat(e),r=r.concat(t);for(let s=0,o=r.length;s<o;s++)O(r[s],n,i,r);return r=z(r),r.sort(B),r.reverse(),F(r)}(t.open,t.close,n,i),function(e,t,n,i){let r=[];r=r.concat(e),r=r.concat(t);for(let s=0,o=r.length;s<o;s++)O(r[s],n,i,r);return r=z(r),r.sort(B),r.reverse(),F(r.map(W))}(t.open,t.close,n,i)))),this.forwardRegex=function(e){let t=[];for(const n of e){for(const e of n.open)t.push(e);for(const e of n.close)t.push(e)}return t=z(t),F(t)}(this.brackets),this.reversedRegex=function(e){let t=[];for(const n of e){for(const e of n.open)t.push(e);for(const e of n.close)t.push(e)}return t=z(t),F(t.map(W))}(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(const i of this.brackets){for(const e of i.open)this.textIsBracket[e]=i,this.textIsOpenBracket[e]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,e.length);for(const e of i.close)this.textIsBracket[e]=i,this.textIsOpenBracket[e]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,e.length)}}}function O(e,t,n,i){for(let r=0,s=t.length;r<s;r++){if(r===n)continue;const s=t[r];for(const t of s.open)t.indexOf(e)>=0&&i.push(t);for(const t of s.close)t.indexOf(e)>=0&&i.push(t)}}function B(e,t){return e.length-t.length}function z(e){if(e.length<=1)return e;const t=[],n=new Set;for(const i of e)n.has(i)||(t.push(i),n.add(i));return t}function P(e){const t=/^[\w ]+$/.test(e);return e=h.bm(e),t?`\\b${e}\\b`:e}function F(e,t){const n=`(${e.map(P).join(")|(")})`;return h.OS(n,!0,t)}const W=function(){let e=null,t=null;return function(n){return e!==n&&(e=n,t=function(e){const t=new Uint16Array(e.length);let n=0;for(let i=e.length-1;i>=0;i--)t[n++]=e.charCodeAt(i);return M().decode(t)}(e)),t}}();class H{static _findPrevBracketInText(e,t,n,i){const r=n.match(e);if(!r)return null;const s=n.length-(r.index||0),o=r[0].length,a=i+s;return new m.Q(t,a-o+1,t,a+1)}static findPrevBracketInRange(e,t,n,i,r){const s=W(n).substring(n.length-r,n.length-i);return this._findPrevBracketInText(e,t,s,i)}static findNextBracketInText(e,t,n,i){const r=n.match(e);if(!r)return null;const s=r.index||0,o=r[0].length;if(0===o)return null;const a=i+s;return new m.Q(t,a+1,t,a+1+o)}static findNextBracketInRange(e,t,n,i,r){const s=n.substring(i,r);return this.findNextBracketInText(e,t,s,i)}}class U{constructor(e){this._richEditBrackets=e}getElectricCharacters(){const e=[];if(this._richEditBrackets)for(const t of this._richEditBrackets.brackets)for(const n of t.close){const t=n.charAt(n.length-1);e.push(t)}return(0,o.dM)(e)}onElectricCharacter(e,t,n){if(!this._richEditBrackets||0===this._richEditBrackets.brackets.length)return null;const i=t.findTokenIndexAtOffset(n-1);if(S(t.getStandardTokenType(i)))return null;const r=this._richEditBrackets.reversedRegex,s=t.getLineContent().substring(0,n-1)+e,o=H.findPrevBracketInRange(r,1,s,0,s.length);if(!o)return null;const a=s.substring(o.startColumn-1,o.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[a])return null;const l=t.getActualLineContentBefore(o.startColumn-1);return/^\s*$/.test(l)?{matchOpenBracket:a}:null}}function q(e){return e.global&&(e.lastIndex=0),!0}class V{constructor(e){this._indentationRules=e}shouldIncrease(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&q(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(e))}shouldDecrease(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&q(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(e))}shouldIndentNextLine(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&q(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(e))}shouldIgnore(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&q(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(e))}getIndentMetadata(e){let t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t}}class j{constructor(e){(e=e||{}).brackets=e.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],e.brackets.forEach((e=>{const t=j._createOpenBracketRegExp(e[0]),n=j._createCloseBracketRegExp(e[1]);t&&n&&this._brackets.push({open:e[0],openRegExp:t,close:e[1],closeRegExp:n})})),this._regExpRules=e.onEnterRules||[]}onEnter(e,t,n,i){if(e>=3)for(let r=0,s=this._regExpRules.length;r<s;r++){const e=this._regExpRules[r];if([{reg:e.beforeText,text:n},{reg:e.afterText,text:i},{reg:e.previousLineText,text:t}].every((e=>!e.reg||(e.reg.lastIndex=0,e.reg.test(e.text)))))return e.action}if(e>=2&&n.length>0&&i.length>0)for(let r=0,s=this._brackets.length;r<s;r++){const e=this._brackets[r];if(e.openRegExp.test(n)&&e.closeRegExp.test(i))return{indentAction:b.IndentOutdent}}if(e>=2&&n.length>0)for(let r=0,s=this._brackets.length;r<s;r++){if(this._brackets[r].openRegExp.test(n))return{indentAction:b.Indent}}return null}static _createOpenBracketRegExp(e){let t=h.bm(e);return/\B/.test(t.charAt(0))||(t="\\b"+t),t+="\\s*$",j._safeRegExp(t)}static _createCloseBracketRegExp(e){let t=h.bm(e);return/\B/.test(t.charAt(t.length-1))||(t+="\\b"),t="^\\s*"+t,j._safeRegExp(t)}static _safeRegExp(e){try{return new RegExp(e)}catch(t){return(0,l.dz)(t),null}}}var G=n(3591),K=n(4001),$=n(4621),Q=n(3941),Y=n(1788);class X{constructor(e,t){this.languageId=e;const n=t.brackets?J(t.brackets):[],i=new Y.VV((e=>{const t=new Set;return{info:new ee(this,e,t),closing:t}})),r=new Y.VV((e=>{const t=new Set,n=new Set;return{info:new te(this,e,t,n),opening:t,openingColorized:n}}));for(const[o,a]of n){const e=i.get(o),t=r.get(a);e.closing.add(t.info),t.opening.add(e.info)}const s=t.colorizedBracketPairs?J(t.colorizedBracketPairs):n.filter((e=>!("<"===e[0]&&">"===e[1])));for(const[o,a]of s){const e=i.get(o),t=r.get(a);e.closing.add(t.info),t.openingColorized.add(e.info),t.opening.add(e.info)}this._openingBrackets=new Map([...i.cachedValues].map((([e,t])=>[e,t.info]))),this._closingBrackets=new Map([...r.cachedValues].map((([e,t])=>[e,t.info])))}get openingBrackets(){return[...this._openingBrackets.values()]}get closingBrackets(){return[...this._closingBrackets.values()]}getOpeningBracketInfo(e){return this._openingBrackets.get(e)}getClosingBracketInfo(e){return this._closingBrackets.get(e)}getBracketInfo(e){return this.getOpeningBracketInfo(e)||this.getClosingBracketInfo(e)}getBracketRegExp(e){return F(Array.from([...this._openingBrackets.keys(),...this._closingBrackets.keys()]),e)}}function J(e){return e.filter((([e,t])=>""!==e&&""!==t))}class Z{constructor(e,t){this.config=e,this.bracketText=t}get languageId(){return this.config.languageId}}class ee extends Z{constructor(e,t,n){super(e,t),this.openedBrackets=n,this.isOpeningBracket=!0}}class te extends Z{constructor(e,t,n,i){super(e,t),this.openingBrackets=n,this.openingColorizedBrackets=i,this.isOpeningBracket=!1}closes(e){return e.config===this.config&&this.openingBrackets.has(e)}closesColorized(e){return e.config===this.config&&this.openingColorizedBrackets.has(e)}getOpeningBrackets(){return[...this.openingBrackets]}}var ne=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},ie=function(e,t){return function(n,i){t(n,i,e)}};class re{constructor(e){this.languageId=e}affects(e){return!this.languageId||this.languageId===e}}const se=(0,G.u1)("languageConfigurationService");let oe=class extends r.jG{constructor(e,t){super(),this.configurationService=e,this.languageService=t,this._registry=this._register(new ge),this.onDidChangeEmitter=this._register(new i.vl),this.onDidChange=this.onDidChangeEmitter.event,this.configurations=new Map;const n=new Set(Object.values(ae));this._register(this.configurationService.onDidChangeConfiguration((e=>{const t=e.change.keys.some((e=>n.has(e))),i=e.change.overrides.filter((([e,t])=>t.some((e=>n.has(e))))).map((([e])=>e));if(t)this.configurations.clear(),this.onDidChangeEmitter.fire(new re(void 0));else for(const n of i)this.languageService.isRegisteredLanguageId(n)&&(this.configurations.delete(n),this.onDidChangeEmitter.fire(new re(n)))}))),this._register(this._registry.onDidChange((e=>{this.configurations.delete(e.languageId),this.onDidChangeEmitter.fire(new re(e.languageId))})))}register(e,t,n){return this._registry.register(e,t,n)}getLanguageConfiguration(e){let t=this.configurations.get(e);return t||(t=function(e,t,n,i){let r=t.getLanguageConfiguration(e);if(!r){if(!i.isRegisteredLanguageId(e))return new fe(e,{});r=new fe(e,{})}const s=function(e,t){const n=t.getValue(ae.brackets,{overrideIdentifier:e}),i=t.getValue(ae.colorizedBracketPairs,{overrideIdentifier:e});return{brackets:le(n),colorizedBracketPairs:le(i)}}(r.languageId,n),o=ce([r.underlyingConfig,s]);return new fe(r.languageId,o)}(e,this._registry,this.configurationService,this.languageService),this.configurations.set(e,t)),t}};oe=ne([ie(0,K.pG),ie(1,v.L)],oe);const ae={brackets:"editor.language.brackets",colorizedBracketPairs:"editor.language.colorizedBracketPairs"};function le(e){if(Array.isArray(e))return e.map((e=>{if(Array.isArray(e)&&2===e.length)return[e[0],e[1]]})).filter((e=>!!e))}class he{constructor(e){this.languageId=e,this._resolved=null,this._entries=[],this._order=0,this._resolved=null}register(e,t){const n=new de(e,t,++this._order);return this._entries.push(n),this._resolved=null,(0,r.s)((()=>{for(let e=0;e<this._entries.length;e++)if(this._entries[e]===n){this._entries.splice(e,1),this._resolved=null;break}}))}getResolvedConfiguration(){if(!this._resolved){const e=this._resolve();e&&(this._resolved=new fe(this.languageId,e))}return this._resolved}_resolve(){return 0===this._entries.length?null:(this._entries.sort(de.cmp),ce(this._entries.map((e=>e.configuration))))}}function ce(e){let t={comments:void 0,brackets:void 0,wordPattern:void 0,indentationRules:void 0,onEnterRules:void 0,autoClosingPairs:void 0,surroundingPairs:void 0,autoCloseBefore:void 0,folding:void 0,colorizedBracketPairs:void 0,__electricCharacterSupport:void 0};for(const n of e)t={comments:n.comments||t.comments,brackets:n.brackets||t.brackets,wordPattern:n.wordPattern||t.wordPattern,indentationRules:n.indentationRules||t.indentationRules,onEnterRules:n.onEnterRules||t.onEnterRules,autoClosingPairs:n.autoClosingPairs||t.autoClosingPairs,surroundingPairs:n.surroundingPairs||t.surroundingPairs,autoCloseBefore:n.autoCloseBefore||t.autoCloseBefore,folding:n.folding||t.folding,colorizedBracketPairs:n.colorizedBracketPairs||t.colorizedBracketPairs,__electricCharacterSupport:n.__electricCharacterSupport||t.__electricCharacterSupport};return t}class de{constructor(e,t,n){this.configuration=e,this.priority=t,this.order=n}static cmp(e,t){return e.priority===t.priority?e.order-t.order:e.priority-t.priority}}class ue{constructor(e){this.languageId=e}}class ge extends r.jG{constructor(){super(),this._entries=new Map,this._onDidChange=this._register(new i.vl),this.onDidChange=this._onDidChange.event,this._register(this.register(Q.vH,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],colorizedBracketPairs:[],folding:{offSide:!0}},0))}register(e,t,n=0){let i=this._entries.get(e);i||(i=new he(e),this._entries.set(e,i));const s=i.register(t,n);return this._onDidChange.fire(new ue(e)),(0,r.s)((()=>{s.dispose(),this._onDidChange.fire(new ue(e))}))}getLanguageConfiguration(e){const t=this._entries.get(e);return t?.getResolvedConfiguration()||null}}class fe{constructor(e,t){this.languageId=e,this.underlyingConfig=t,this._brackets=null,this._electricCharacter=null,this._onEnterSupport=this.underlyingConfig.brackets||this.underlyingConfig.indentationRules||this.underlyingConfig.onEnterRules?new j(this.underlyingConfig):null,this.comments=fe._handleComments(this.underlyingConfig),this.characterPair=new C(this.underlyingConfig),this.wordDefinition=this.underlyingConfig.wordPattern||w.Ld,this.indentationRules=this.underlyingConfig.indentationRules,this.underlyingConfig.indentationRules?this.indentRulesSupport=new V(this.underlyingConfig.indentationRules):this.indentRulesSupport=null,this.foldingRules=this.underlyingConfig.folding||{},this.bracketsNew=new X(e,this.underlyingConfig)}getWordDefinition(){return(0,w.Io)(this.wordDefinition)}get brackets(){return!this._brackets&&this.underlyingConfig.brackets&&(this._brackets=new D(this.languageId,this.underlyingConfig.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new U(this.brackets)),this._electricCharacter}onEnter(e,t,n,i){return this._onEnterSupport?this._onEnterSupport.onEnter(e,t,n,i):null}getAutoClosingPairs(){return new y(this.characterPair.getAutoClosingPairs())}getAutoCloseBeforeSet(e){return this.characterPair.getAutoCloseBeforeSet(e)}getSurroundingPairs(){return this.characterPair.getSurroundingPairs()}static _handleComments(e){const t=e.comments;if(!t)return null;const n={};if(t.lineComment&&(n.lineCommentToken=t.lineComment),t.blockComment){const[e,i]=t.blockComment;n.blockCommentStartToken=e,n.blockCommentEndToken=i}return n}}(0,$.v)(se,oe,1);var me=n(6223);class pe{constructor(e,t,n,i){this.range=e,this.nestingLevel=t,this.nestingLevelOfEqualBracketType=n,this.isInvalid=i}}class _e{constructor(e,t,n,i,r,s){this.range=e,this.openingBracketRange=t,this.closingBracketRange=n,this.nestingLevel=i,this.nestingLevelOfEqualBracketType=r,this.bracketPairNode=s}get openingBracketInfo(){return this.bracketPairNode.openingBracket.bracketInfo}}class be extends _e{constructor(e,t,n,i,r,s,o){super(e,t,n,i,r,s),this.minVisibleColumnIndentation=o}}var ve=n(973);function we(e){return 0===e}const ke=2**26;function ye(e,t){return e*ke+t}function Te(e){const t=e,n=Math.floor(t/ke),i=t-n*ke;return new ve.W(n,i)}function Ce(e,t){let n=e+t;return t>=ke&&(n-=e%ke),n}function Se(e,t){return e.reduce(((e,n)=>Ce(e,t(n))),0)}function Le(e,t){return e===t}function xe(e,t){const n=e,i=t;if(i-n<=0)return 0;const r=Math.floor(n/ke),s=Math.floor(i/ke),o=i-s*ke;if(r===s){return ye(0,o-(n-r*ke))}return ye(s-r,o)}function Ee(e,t){return e<t}function Ae(e,t){return e<=t}function Ie(e,t){return e>=t}function Me(e){return ye(e.lineNumber-1,e.column-1)}function Ne(e,t){const n=e,i=Math.floor(n/ke),r=n-i*ke,s=t,o=Math.floor(s/ke),a=s-o*ke;return new m.Q(i+1,r+1,o+1,a+1)}class Re{static fromModelContentChanges(e){return e.map((e=>{const t=m.Q.lift(e.range);return new Re(Me(t.getStartPosition()),Me(t.getEndPosition()),function(e){const t=(0,h.uz)(e);return ye(t.length-1,t[t.length-1].length)}(e.text))})).reverse()}constructor(e,t,n){this.startOffset=e,this.endOffset=t,this.newLength=n}toString(){return`[${Te(this.startOffset)}...${Te(this.endOffset)}) -> ${Te(this.newLength)}`}}class De{constructor(e){this.nextEditIdx=0,this.deltaOldToNewLineCount=0,this.deltaOldToNewColumnCount=0,this.deltaLineIdxInOld=-1,this.edits=e.map((e=>Oe.from(e)))}getOffsetBeforeChange(e){return this.adjustNextEdit(e),this.translateCurToOld(e)}getDistanceToNextChange(e){this.adjustNextEdit(e);const t=this.edits[this.nextEditIdx],n=t?this.translateOldToCur(t.offsetObj):null;return null===n?null:xe(e,n)}translateOldToCur(e){return e.lineCount===this.deltaLineIdxInOld?ye(e.lineCount+this.deltaOldToNewLineCount,e.columnCount+this.deltaOldToNewColumnCount):ye(e.lineCount+this.deltaOldToNewLineCount,e.columnCount)}translateCurToOld(e){const t=Te(e);return t.lineCount-this.deltaOldToNewLineCount===this.deltaLineIdxInOld?ye(t.lineCount-this.deltaOldToNewLineCount,t.columnCount-this.deltaOldToNewColumnCount):ye(t.lineCount-this.deltaOldToNewLineCount,t.columnCount)}adjustNextEdit(e){for(;this.nextEditIdx<this.edits.length;){const t=this.edits[this.nextEditIdx],n=this.translateOldToCur(t.endOffsetAfterObj);if(!Ae(n,e))break;{this.nextEditIdx++;const e=Te(n),i=Te(this.translateOldToCur(t.endOffsetBeforeObj)),r=e.lineCount-i.lineCount;this.deltaOldToNewLineCount+=r;const s=this.deltaLineIdxInOld===t.endOffsetBeforeObj.lineCount?this.deltaOldToNewColumnCount:0,o=e.columnCount-i.columnCount;this.deltaOldToNewColumnCount=s+o,this.deltaLineIdxInOld=t.endOffsetBeforeObj.lineCount}}}}class Oe{static from(e){return new Oe(e.startOffset,e.endOffset,e.newLength)}constructor(e,t,n){this.endOffsetBeforeObj=Te(t),this.endOffsetAfterObj=Te(Ce(e,n)),this.offsetObj=Te(e)}}const Be=[];class ze{static{this.cache=new Array(129)}static create(e,t){if(e<=128&&0===t.length){let n=ze.cache[e];return n||(n=new ze(e,t),ze.cache[e]=n),n}return new ze(e,t)}static{this.empty=ze.create(0,Be)}static getEmpty(){return this.empty}constructor(e,t){this.items=e,this.additionalItems=t}add(e,t){const n=t.getKey(e);let i=n>>5;if(0===i){const e=1<<n|this.items;return e===this.items?this:ze.create(e,this.additionalItems)}i--;const r=this.additionalItems.slice(0);for(;r.length<i;)r.push(0);return r[i]|=1<<(31&n),ze.create(this.items,r)}merge(e){const t=this.items|e.items;if(this.additionalItems===Be&&e.additionalItems===Be)return t===this.items?this:t===e.items?e:ze.create(t,Be);const n=[];for(let i=0;i<Math.max(this.additionalItems.length,e.additionalItems.length);i++){const t=this.additionalItems[i]||0,r=e.additionalItems[i]||0;n.push(t|r)}return ze.create(t,n)}intersects(e){if(0!==(this.items&e.items))return!0;for(let t=0;t<Math.min(this.additionalItems.length,e.additionalItems.length);t++)if(0!==(this.additionalItems[t]&e.additionalItems[t]))return!0;return!1}}const Pe={getKey:e=>e};class Fe{constructor(){this.items=new Map}getKey(e){let t=this.items.get(e);return void 0===t&&(t=this.items.size,this.items.set(e,t)),t}}class We{get length(){return this._length}constructor(e){this._length=e}}class He extends We{static create(e,t,n){let i=e.length;return t&&(i=Ce(i,t.length)),n&&(i=Ce(i,n.length)),new He(i,e,t,n,t?t.missingOpeningBracketIds:ze.getEmpty())}get kind(){return 2}get listHeight(){return 0}get childrenLength(){return 3}getChild(e){switch(e){case 0:return this.openingBracket;case 1:return this.child;case 2:return this.closingBracket}throw new Error("Invalid child index")}get children(){const e=[];return e.push(this.openingBracket),this.child&&e.push(this.child),this.closingBracket&&e.push(this.closingBracket),e}constructor(e,t,n,i,r){super(e),this.openingBracket=t,this.child=n,this.closingBracket=i,this.missingOpeningBracketIds=r}canBeReused(e){return null!==this.closingBracket&&!e.intersects(this.missingOpeningBracketIds)}deepClone(){return new He(this.length,this.openingBracket.deepClone(),this.child&&this.child.deepClone(),this.closingBracket&&this.closingBracket.deepClone(),this.missingOpeningBracketIds)}computeMinIndentation(e,t){return this.child?this.child.computeMinIndentation(Ce(e,this.openingBracket.length),t):Number.MAX_SAFE_INTEGER}}class Ue extends We{static create23(e,t,n,i=!1){let r=e.length,s=e.missingOpeningBracketIds;if(e.listHeight!==t.listHeight)throw new Error("Invalid list heights");if(r=Ce(r,t.length),s=s.merge(t.missingOpeningBracketIds),n){if(e.listHeight!==n.listHeight)throw new Error("Invalid list heights");r=Ce(r,n.length),s=s.merge(n.missingOpeningBracketIds)}return i?new Ve(r,e.listHeight+1,e,t,n,s):new qe(r,e.listHeight+1,e,t,n,s)}static getEmpty(){return new Ge(0,0,[],ze.getEmpty())}get kind(){return 4}get missingOpeningBracketIds(){return this._missingOpeningBracketIds}constructor(e,t,n){super(e),this.listHeight=t,this._missingOpeningBracketIds=n,this.cachedMinIndentation=-1}throwIfImmutable(){}makeLastElementMutable(){this.throwIfImmutable();const e=this.childrenLength;if(0===e)return;const t=this.getChild(e-1),n=4===t.kind?t.toMutable():t;return t!==n&&this.setChild(e-1,n),n}makeFirstElementMutable(){this.throwIfImmutable();if(0===this.childrenLength)return;const e=this.getChild(0),t=4===e.kind?e.toMutable():e;return e!==t&&this.setChild(0,t),t}canBeReused(e){if(e.intersects(this.missingOpeningBracketIds))return!1;if(0===this.childrenLength)return!1;let t=this;for(;4===t.kind;){const e=t.childrenLength;if(0===e)throw new l.D7;t=t.getChild(e-1)}return t.canBeReused(e)}handleChildrenChanged(){this.throwIfImmutable();const e=this.childrenLength;let t=this.getChild(0).length,n=this.getChild(0).missingOpeningBracketIds;for(let i=1;i<e;i++){const e=this.getChild(i);t=Ce(t,e.length),n=n.merge(e.missingOpeningBracketIds)}this._length=t,this._missingOpeningBracketIds=n,this.cachedMinIndentation=-1}computeMinIndentation(e,t){if(-1!==this.cachedMinIndentation)return this.cachedMinIndentation;let n=Number.MAX_SAFE_INTEGER,i=e;for(let r=0;r<this.childrenLength;r++){const e=this.getChild(r);e&&(n=Math.min(n,e.computeMinIndentation(i,t)),i=Ce(i,e.length))}return this.cachedMinIndentation=n,n}}class qe extends Ue{get childrenLength(){return null!==this._item3?3:2}getChild(e){switch(e){case 0:return this._item1;case 1:return this._item2;case 2:return this._item3}throw new Error("Invalid child index")}setChild(e,t){switch(e){case 0:return void(this._item1=t);case 1:return void(this._item2=t);case 2:return void(this._item3=t)}throw new Error("Invalid child index")}get children(){return this._item3?[this._item1,this._item2,this._item3]:[this._item1,this._item2]}get item1(){return this._item1}get item2(){return this._item2}get item3(){return this._item3}constructor(e,t,n,i,r,s){super(e,t,s),this._item1=n,this._item2=i,this._item3=r}deepClone(){return new qe(this.length,this.listHeight,this._item1.deepClone(),this._item2.deepClone(),this._item3?this._item3.deepClone():null,this.missingOpeningBracketIds)}appendChildOfSameHeight(e){if(this._item3)throw new Error("Cannot append to a full (2,3) tree node");this.throwIfImmutable(),this._item3=e,this.handleChildrenChanged()}unappendChild(){if(!this._item3)throw new Error("Cannot remove from a non-full (2,3) tree node");this.throwIfImmutable();const e=this._item3;return this._item3=null,this.handleChildrenChanged(),e}prependChildOfSameHeight(e){if(this._item3)throw new Error("Cannot prepend to a full (2,3) tree node");this.throwIfImmutable(),this._item3=this._item2,this._item2=this._item1,this._item1=e,this.handleChildrenChanged()}unprependChild(){if(!this._item3)throw new Error("Cannot remove from a non-full (2,3) tree node");this.throwIfImmutable();const e=this._item1;return this._item1=this._item2,this._item2=this._item3,this._item3=null,this.handleChildrenChanged(),e}toMutable(){return this}}class Ve extends qe{toMutable(){return new qe(this.length,this.listHeight,this.item1,this.item2,this.item3,this.missingOpeningBracketIds)}throwIfImmutable(){throw new Error("this instance is immutable")}}class je extends Ue{get childrenLength(){return this._children.length}getChild(e){return this._children[e]}setChild(e,t){this._children[e]=t}get children(){return this._children}constructor(e,t,n,i){super(e,t,i),this._children=n}deepClone(){const e=new Array(this._children.length);for(let t=0;t<this._children.length;t++)e[t]=this._children[t].deepClone();return new je(this.length,this.listHeight,e,this.missingOpeningBracketIds)}appendChildOfSameHeight(e){this.throwIfImmutable(),this._children.push(e),this.handleChildrenChanged()}unappendChild(){this.throwIfImmutable();const e=this._children.pop();return this.handleChildrenChanged(),e}prependChildOfSameHeight(e){this.throwIfImmutable(),this._children.unshift(e),this.handleChildrenChanged()}unprependChild(){this.throwIfImmutable();const e=this._children.shift();return this.handleChildrenChanged(),e}toMutable(){return this}}class Ge extends je{toMutable(){return new je(this.length,this.listHeight,[...this.children],this.missingOpeningBracketIds)}throwIfImmutable(){throw new Error("this instance is immutable")}}const Ke=[];class $e extends We{get listHeight(){return 0}get childrenLength(){return 0}getChild(e){return null}get children(){return Ke}deepClone(){return this}}class Qe extends $e{get kind(){return 0}get missingOpeningBracketIds(){return ze.getEmpty()}canBeReused(e){return!0}computeMinIndentation(e,t){const n=Te(e),i=(0===n.columnCount?n.lineCount:n.lineCount+1)+1,r=(s=Ce(e,this.length),Math.floor(s/ke)+1);var s;let o=Number.MAX_SAFE_INTEGER;for(let a=i;a<=r;a++){const e=t.getLineFirstNonWhitespaceColumn(a),n=t.getLineContent(a);if(0===e)continue;const i=u.visibleColumnFromColumn(n,e,t.getOptions().tabSize);o=Math.min(o,i)}return o}}class Ye extends $e{static create(e,t,n){return new Ye(e,t,n)}get kind(){return 1}get missingOpeningBracketIds(){return ze.getEmpty()}constructor(e,t,n){super(e),this.bracketInfo=t,this.bracketIds=n}get text(){return this.bracketInfo.bracketText}get languageId(){return this.bracketInfo.languageId}canBeReused(e){return!1}computeMinIndentation(e,t){return Number.MAX_SAFE_INTEGER}}class Xe extends $e{get kind(){return 3}constructor(e,t){super(t),this.missingOpeningBracketIds=e}canBeReused(e){return!e.intersects(this.missingOpeningBracketIds)}computeMinIndentation(e,t){return Number.MAX_SAFE_INTEGER}}var Je=n(5982);class Ze{constructor(e,t,n,i,r){this.length=e,this.kind=t,this.bracketId=n,this.bracketIds=i,this.astNode=r}}class et{constructor(e,t){this.textModel=e,this.bracketTokens=t,this.reader=new tt(this.textModel,this.bracketTokens),this._offset=0,this.didPeek=!1,this.peeked=null,this.textBufferLineCount=e.getLineCount(),this.textBufferLastLineLength=e.getLineLength(this.textBufferLineCount)}get offset(){return this._offset}get length(){return ye(this.textBufferLineCount-1,this.textBufferLastLineLength)}skip(e){this.didPeek=!1,this._offset=Ce(this._offset,e);const t=Te(this._offset);this.reader.setPosition(t.lineCount,t.columnCount)}read(){let e;return this.peeked?(this.didPeek=!1,e=this.peeked):e=this.reader.read(),e&&(this._offset=Ce(this._offset,e.length)),e}peek(){return this.didPeek||(this.peeked=this.reader.read(),this.didPeek=!0),this.peeked}}class tt{constructor(e,t){this.textModel=e,this.bracketTokens=t,this.lineIdx=0,this.line=null,this.lineCharOffset=0,this.lineTokens=null,this.lineTokenOffset=0,this.peekedToken=null,this.textBufferLineCount=e.getLineCount(),this.textBufferLastLineLength=e.getLineLength(this.textBufferLineCount)}setPosition(e,t){e===this.lineIdx?(this.lineCharOffset=t,null!==this.line&&(this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset))):(this.lineIdx=e,this.lineCharOffset=t,this.line=null),this.peekedToken=null}read(){if(this.peekedToken){const e=this.peekedToken;return this.peekedToken=null,this.lineCharOffset+=e.length,e}if(this.lineIdx>this.textBufferLineCount-1||this.lineIdx===this.textBufferLineCount-1&&this.lineCharOffset>=this.textBufferLastLineLength)return null;null===this.line&&(this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.line=this.lineTokens.getLineContent(),this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset));const e=this.lineIdx,t=this.lineCharOffset;let n=0;for(;;){const i=this.lineTokens,r=i.getCount();let s=null;if(this.lineTokenOffset<r){const o=i.getMetadata(this.lineTokenOffset);for(;this.lineTokenOffset+1<r&&o===i.getMetadata(this.lineTokenOffset+1);)this.lineTokenOffset++;const a=0===Je.x.getTokenType(o),l=Je.x.containsBalancedBrackets(o),h=i.getEndOffset(this.lineTokenOffset);if(l&&a&&this.lineCharOffset<h){const e=i.getLanguageId(this.lineTokenOffset),t=this.line.substring(this.lineCharOffset,h),n=this.bracketTokens.getSingleLanguageBracketTokens(e),r=n.regExpGlobal;if(r){r.lastIndex=0;const e=r.exec(t);e&&(s=n.getToken(e[0]),s&&(this.lineCharOffset+=e.index))}}if(n+=h-this.lineCharOffset,s){if(e!==this.lineIdx||t!==this.lineCharOffset){this.peekedToken=s;break}return this.lineCharOffset+=s.length,s}this.lineTokenOffset++,this.lineCharOffset=h}else{if(this.lineIdx===this.textBufferLineCount-1)break;if(this.lineIdx++,this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.lineTokenOffset=0,this.line=this.lineTokens.getLineContent(),this.lineCharOffset=0,n+=33,n>1e3)break}if(n>1500)break}const i=(r=e,s=t,o=this.lineIdx,a=this.lineCharOffset,r!==o?ye(o-r,a):ye(0,a-s));var r,s,o,a;return new Ze(i,0,-1,ze.getEmpty(),new Qe(i))}}class nt{constructor(e,t){this.text=e,this._offset=0,this.idx=0;const n=t.getRegExpStr(),i=n?new RegExp(n+"|\n","gi"):null,r=[];let s,o=0,a=0,l=0,h=0;const c=[];for(let g=0;g<60;g++)c.push(new Ze(ye(0,g),0,-1,ze.getEmpty(),new Qe(ye(0,g))));const d=[];for(let g=0;g<60;g++)d.push(new Ze(ye(1,g),0,-1,ze.getEmpty(),new Qe(ye(1,g))));if(i)for(i.lastIndex=0;null!==(s=i.exec(e));){const e=s.index,n=s[0];if("\n"===n)o++,a=e+1;else{if(l!==e){let t;if(h===o){const n=e-l;if(n<c.length)t=c[n];else{const e=ye(0,n);t=new Ze(e,0,-1,ze.getEmpty(),new Qe(e))}}else{const n=o-h,i=e-a;if(1===n&&i<d.length)t=d[i];else{const e=ye(n,i);t=new Ze(e,0,-1,ze.getEmpty(),new Qe(e))}}r.push(t)}r.push(t.getToken(n)),l=e+n.length,h=o}}const u=e.length;if(l!==u){const e=h===o?ye(0,u-l):ye(o-h,u-a);r.push(new Ze(e,0,-1,ze.getEmpty(),new Qe(e)))}this.length=ye(o,u-a),this.tokens=r}get offset(){return this._offset}read(){return this.tokens[this.idx++]||null}peek(){return this.tokens[this.idx]||null}skip(e){throw new l.EM}}class it{static createFromLanguage(e,t){function n(e){return t.getKey(`${e.languageId}:::${e.bracketText}`)}const i=new Map;for(const r of e.bracketsNew.openingBrackets){const e=ye(0,r.bracketText.length),t=n(r),s=ze.getEmpty().add(t,Pe);i.set(r.bracketText,new Ze(e,1,t,s,Ye.create(e,r,s)))}for(const r of e.bracketsNew.closingBrackets){const e=ye(0,r.bracketText.length);let t=ze.getEmpty();const s=r.getOpeningBrackets();for(const i of s)t=t.add(n(i),Pe);i.set(r.bracketText,new Ze(e,2,n(s[0]),t,Ye.create(e,r,t)))}return new it(i)}constructor(e){this.map=e,this.hasRegExp=!1,this._regExpGlobal=null}getRegExpStr(){if(this.isEmpty)return null;{const e=[...this.map.keys()];return e.sort(),e.reverse(),e.map((e=>function(e){let t=(0,h.bm)(e);/^[\w ]+/.test(e)&&(t=`\\b${t}`);/[\w ]+$/.test(e)&&(t=`${t}\\b`);return t}(e))).join("|")}}get regExpGlobal(){if(!this.hasRegExp){const e=this.getRegExpStr();this._regExpGlobal=e?new RegExp(e,"gi"):null,this.hasRegExp=!0}return this._regExpGlobal}getToken(e){return this.map.get(e.toLowerCase())}findClosingTokenText(e){for(const[t,n]of this.map)if(2===n.kind&&n.bracketIds.intersects(e))return t}get isEmpty(){return 0===this.map.size}}class rt{constructor(e,t){this.denseKeyProvider=e,this.getLanguageConfiguration=t,this.languageIdToBracketTokens=new Map}didLanguageChange(e){return this.languageIdToBracketTokens.has(e)}getSingleLanguageBracketTokens(e){let t=this.languageIdToBracketTokens.get(e);return t||(t=it.createFromLanguage(this.getLanguageConfiguration(e),this.denseKeyProvider),this.languageIdToBracketTokens.set(e,t)),t}}function st(e,t=!1){if(0===e.length)return null;if(1===e.length)return e[0];let n=e.length;for(;n>3;){const i=n>>1;for(let r=0;r<i;r++){const i=r<<1;e[r]=Ue.create23(e[i],e[i+1],i+3===n?e[i+2]:null,t)}n=i}return Ue.create23(e[0],e[1],n>=3?e[2]:null,t)}function ot(e,t){return Math.abs(e.listHeight-t.listHeight)}function at(e,t){return e.listHeight===t.listHeight?Ue.create23(e,t,null,!1):e.listHeight>t.listHeight?function(e,t){let n=e=e.toMutable();const i=[];let r;for(;;){if(t.listHeight===n.listHeight){r=t;break}if(4!==n.kind)throw new Error("unexpected");i.push(n),n=n.makeLastElementMutable()}for(let s=i.length-1;s>=0;s--){const e=i[s];r?e.childrenLength>=3?r=Ue.create23(e.unappendChild(),r,null,!1):(e.appendChildOfSameHeight(r),r=void 0):e.handleChildrenChanged()}return r?Ue.create23(e,r,null,!1):e}(e,t):function(e,t){let n=e=e.toMutable();const i=[];for(;t.listHeight!==n.listHeight;){if(4!==n.kind)throw new Error("unexpected");i.push(n),n=n.makeFirstElementMutable()}let r=t;for(let s=i.length-1;s>=0;s--){const e=i[s];r?e.childrenLength>=3?r=Ue.create23(r,e.unprependChild(),null,!1):(e.prependChildOfSameHeight(r),r=void 0):e.handleChildrenChanged()}return r?Ue.create23(r,e,null,!1):e}(t,e)}class lt{constructor(e){this.lastOffset=0,this.nextNodes=[e],this.offsets=[0],this.idxs=[]}readLongestNodeAt(e,t){if(Ee(e,this.lastOffset))throw new Error("Invalid offset");for(this.lastOffset=e;;){const n=ct(this.nextNodes);if(!n)return;const i=ct(this.offsets);if(Ee(e,i))return;if(Ee(i,e))if(Ce(i,n.length)<=e)this.nextNodeAfterCurrent();else{const e=ht(n);-1!==e?(this.nextNodes.push(n.getChild(e)),this.offsets.push(i),this.idxs.push(e)):this.nextNodeAfterCurrent()}else{if(t(n))return this.nextNodeAfterCurrent(),n;{const e=ht(n);if(-1===e)return void this.nextNodeAfterCurrent();this.nextNodes.push(n.getChild(e)),this.offsets.push(i),this.idxs.push(e)}}}}nextNodeAfterCurrent(){for(;;){const e=ct(this.offsets),t=ct(this.nextNodes);if(this.nextNodes.pop(),this.offsets.pop(),0===this.idxs.length)break;const n=ct(this.nextNodes),i=ht(n,this.idxs[this.idxs.length-1]);if(-1!==i){this.nextNodes.push(n.getChild(i)),this.offsets.push(Ce(e,t.length)),this.idxs[this.idxs.length-1]=i;break}this.idxs.pop()}}}function ht(e,t=-1){for(;;){if(++t>=e.childrenLength)return-1;if(e.getChild(t))return t}}function ct(e){return e.length>0?e[e.length-1]:void 0}function dt(e,t,n,i){return new ut(e,t,n,i).parseDocument()}class ut{constructor(e,t,n,i){if(this.tokenizer=e,this.createImmutableLists=i,this._itemsConstructed=0,this._itemsFromCache=0,n&&i)throw new Error("Not supported");this.oldNodeReader=n?new lt(n):void 0,this.positionMapper=new De(t)}parseDocument(){this._itemsConstructed=0,this._itemsFromCache=0;let e=this.parseList(ze.getEmpty(),0);return e||(e=Ue.getEmpty()),e}parseList(e,t){const n=[];for(;;){let i=this.tryReadChildFromCache(e);if(!i){const n=this.tokenizer.peek();if(!n||2===n.kind&&n.bracketIds.intersects(e))break;i=this.parseChild(e,t+1)}4===i.kind&&0===i.childrenLength||n.push(i)}const i=this.oldNodeReader?function(e){if(0===e.length)return null;if(1===e.length)return e[0];let t=0;function n(){if(t>=e.length)return null;const n=t,i=e[n].listHeight;for(t++;t<e.length&&e[t].listHeight===i;)t++;return t-n>=2?st(0===n&&t===e.length?e:e.slice(n,t),!1):e[n]}let i=n(),r=n();if(!r)return i;for(let s=n();s;s=n())ot(i,r)<=ot(r,s)?(i=at(i,r),r=s):r=at(r,s);return at(i,r)}(n):st(n,this.createImmutableLists);return i}tryReadChildFromCache(e){if(this.oldNodeReader){const t=this.positionMapper.getDistanceToNextChange(this.tokenizer.offset);if(null===t||!we(t)){const n=this.oldNodeReader.readLongestNodeAt(this.positionMapper.getOffsetBeforeChange(this.tokenizer.offset),(n=>{if(null!==t&&!Ee(n.length,t))return!1;return n.canBeReused(e)}));if(n)return this._itemsFromCache++,this.tokenizer.skip(n.length),n}}}parseChild(e,t){this._itemsConstructed++;const n=this.tokenizer.read();switch(n.kind){case 2:return new Xe(n.bracketIds,n.length);case 0:return n.astNode;case 1:{if(t>300)return new Qe(n.length);const i=e.merge(n.bracketIds),r=this.parseList(i,t+1),s=this.tokenizer.peek();return s&&2===s.kind&&(s.bracketId===n.bracketId||s.bracketIds.intersects(n.bracketIds))?(this.tokenizer.read(),He.create(n.astNode,r,s.astNode)):He.create(n.astNode,r,null)}default:throw new Error("unexpected")}}}function gt(e,t){if(0===e.length)return t;if(0===t.length)return e;const n=new o.j3(mt(e)),i=mt(t);i.push({modified:!1,lengthBefore:void 0,lengthAfter:void 0});let r=n.dequeue();function s(e){if(void 0===e){const e=n.takeWhile((e=>!0))||[];return r&&e.unshift(r),e}const t=[];for(;r&&!we(e);){const[i,s]=r.splitAt(e);t.push(i),e=xe(i.lengthAfter,e),r=s??n.dequeue()}return we(e)||t.push(new ft(!1,e,e)),t}const a=[];function l(e,t,n){if(a.length>0&&Le(a[a.length-1].endOffset,e)){const e=a[a.length-1];a[a.length-1]=new Re(e.startOffset,t,Ce(e.newLength,n))}else a.push({startOffset:e,endOffset:t,newLength:n})}let h=0;for(const o of i){const e=s(o.lengthBefore);if(o.modified){const t=Ce(h,Se(e,(e=>e.lengthBefore)));l(h,t,o.lengthAfter),h=t}else for(const t of e){const e=h;h=Ce(h,t.lengthBefore),t.modified&&l(e,h,t.lengthAfter)}}return a}class ft{constructor(e,t,n){this.modified=e,this.lengthBefore=t,this.lengthAfter=n}splitAt(e){const t=xe(e,this.lengthAfter);return Le(t,0)?[this,void 0]:this.modified?[new ft(this.modified,this.lengthBefore,e),new ft(this.modified,0,t)]:[new ft(this.modified,e,e),new ft(this.modified,t,t)]}toString(){return`${this.modified?"M":"U"}:${Te(this.lengthBefore)} -> ${Te(this.lengthAfter)}`}}function mt(e){const t=[];let n=0;for(const i of e){const e=xe(n,i.startOffset);we(e)||t.push(new ft(!1,e,e));const r=xe(i.startOffset,i.endOffset);t.push(new ft(!0,r,i.newLength)),n=i.endOffset}return t}class pt extends r.jG{didLanguageChange(e){return this.brackets.didLanguageChange(e)}constructor(e,t){if(super(),this.textModel=e,this.getLanguageConfiguration=t,this.didChangeEmitter=new i.vl,this.denseKeyProvider=new Fe,this.brackets=new rt(this.denseKeyProvider,this.getLanguageConfiguration),this.onDidChange=this.didChangeEmitter.event,this.queuedTextEditsForInitialAstWithoutTokens=[],this.queuedTextEdits=[],e.tokenization.hasTokens)2===e.tokenization.backgroundTokenizationState?(this.initialAstWithoutTokens=void 0,this.astWithTokens=this.parseDocumentFromTextBuffer([],void 0,!1)):(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer([],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens);else{const e=this.brackets.getSingleLanguageBracketTokens(this.textModel.getLanguageId()),t=new nt(this.textModel.getValue(),e);this.initialAstWithoutTokens=dt(t,[],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens}}handleDidChangeBackgroundTokenizationState(){if(2===this.textModel.tokenization.backgroundTokenizationState){const e=void 0===this.initialAstWithoutTokens;this.initialAstWithoutTokens=void 0,e||this.didChangeEmitter.fire()}}handleDidChangeTokens({ranges:e}){const t=e.map((e=>new Re(ye(e.fromLineNumber-1,0),ye(e.toLineNumber,0),ye(e.toLineNumber-e.fromLineNumber+1,0))));this.handleEdits(t,!0),this.initialAstWithoutTokens||this.didChangeEmitter.fire()}handleContentChanged(e){const t=Re.fromModelContentChanges(e.changes);this.handleEdits(t,!1)}handleEdits(e,t){const n=gt(this.queuedTextEdits,e);this.queuedTextEdits=n,this.initialAstWithoutTokens&&!t&&(this.queuedTextEditsForInitialAstWithoutTokens=gt(this.queuedTextEditsForInitialAstWithoutTokens,e))}flushQueue(){this.queuedTextEdits.length>0&&(this.astWithTokens=this.parseDocumentFromTextBuffer(this.queuedTextEdits,this.astWithTokens,!1),this.queuedTextEdits=[]),this.queuedTextEditsForInitialAstWithoutTokens.length>0&&(this.initialAstWithoutTokens&&(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer(this.queuedTextEditsForInitialAstWithoutTokens,this.initialAstWithoutTokens,!1)),this.queuedTextEditsForInitialAstWithoutTokens=[])}parseDocumentFromTextBuffer(e,t,n){const i=t;return dt(new et(this.textModel,this.brackets),e,i,n)}getBracketsInRange(e,t){this.flushQueue();const n=ye(e.startLineNumber-1,e.startColumn-1),i=ye(e.endLineNumber-1,e.endColumn-1);return new o.c1((e=>{const r=this.initialAstWithoutTokens||this.astWithTokens;vt(r,0,r.length,n,i,e,0,0,new Map,t)}))}getBracketPairsInRange(e,t){this.flushQueue();const n=Me(e.getStartPosition()),i=Me(e.getEndPosition());return new o.c1((e=>{const r=this.initialAstWithoutTokens||this.astWithTokens,s=new wt(e,t,this.textModel);kt(r,0,r.length,n,i,s,0,new Map)}))}getFirstBracketAfter(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return bt(t,0,t.length,Me(e))}getFirstBracketBefore(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return _t(t,0,t.length,Me(e))}}function _t(e,t,n,i){if(4===e.kind||2===e.kind){const r=[];for(const i of e.children)n=Ce(t,i.length),r.push({nodeOffsetStart:t,nodeOffsetEnd:n}),t=n;for(let t=r.length-1;t>=0;t--){const{nodeOffsetStart:n,nodeOffsetEnd:s}=r[t];if(Ee(n,i)){const r=_t(e.children[t],n,s,i);if(r)return r}}return null}if(3===e.kind)return null;if(1===e.kind){const i=Ne(t,n);return{bracketInfo:e.bracketInfo,range:i}}return null}function bt(e,t,n,i){if(4===e.kind||2===e.kind){for(const r of e.children){if(Ee(i,n=Ce(t,r.length))){const e=bt(r,t,n,i);if(e)return e}t=n}return null}if(3===e.kind)return null;if(1===e.kind){const i=Ne(t,n);return{bracketInfo:e.bracketInfo,range:i}}return null}function vt(e,t,n,i,r,s,o,a,l,h,c=!1){if(o>200)return!0;e:for(;;)switch(e.kind){case 4:{const a=e.childrenLength;for(let c=0;c<a;c++){const a=e.getChild(c);if(a){if(n=Ce(t,a.length),Ae(t,r)&&Ie(n,i)){if(Ie(n,r)){e=a;continue e}if(!vt(a,t,n,i,r,s,o,0,l,h))return!1}t=n}}return!0}case 2:{const c=!h||!e.closingBracket||e.closingBracket.bracketInfo.closesColorized(e.openingBracket.bracketInfo);let d=0;if(l){let t=l.get(e.openingBracket.text);void 0===t&&(t=0),d=t,c&&(t++,l.set(e.openingBracket.text,t))}const u=e.childrenLength;for(let g=0;g<u;g++){const u=e.getChild(g);if(u){if(n=Ce(t,u.length),Ae(t,r)&&Ie(n,i)){if(Ie(n,r)&&1!==u.kind){e=u,c?(o++,a=d+1):a=d;continue e}if(c||1!==u.kind||!e.closingBracket){if(!vt(u,t,n,i,r,s,c?o+1:o,c?d+1:d,l,h,!e.closingBracket))return!1}}t=n}}return l?.set(e.openingBracket.text,d),!0}case 3:{const e=Ne(t,n);return s(new pe(e,o-1,0,!0))}case 1:{const e=Ne(t,n);return s(new pe(e,o-1,a-1,c))}case 0:return!0}}class wt{constructor(e,t,n){this.push=e,this.includeMinIndentation=t,this.textModel=n}}function kt(e,t,n,i,r,s,o,a){if(o>200)return!0;let l=!0;if(2===e.kind){let h=0;if(a){let t=a.get(e.openingBracket.text);void 0===t&&(t=0),h=t,t++,a.set(e.openingBracket.text,t)}const c=Ce(t,e.openingBracket.length);let d=-1;if(s.includeMinIndentation&&(d=e.computeMinIndentation(t,s.textModel)),l=s.push(new be(Ne(t,n),Ne(t,c),e.closingBracket?Ne(Ce(c,e.child?.length||0),n):void 0,o,h,e,d)),t=c,l&&e.child){const h=e.child;if(n=Ce(t,h.length),Ae(t,r)&&Ie(n,i)&&(l=kt(h,t,n,i,r,s,o+1,a),!l))return!1}a?.set(e.openingBracket.text,h)}else{let n=t;for(const t of e.children){const e=n;if(n=Ce(n,t.length),Ae(e,r)&&Ae(i,n)&&(l=kt(t,e,n,i,r,s,o,a),!l))return!1}}return l}class yt extends r.jG{get canBuildAST(){return this.textModel.getValueLength()<=5e6}constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t,this.bracketPairsTree=this._register(new r.HE),this.onDidChangeEmitter=new i.vl,this.onDidChange=this.onDidChangeEmitter.event,this.bracketsRequested=!1}handleLanguageConfigurationServiceChange(e){e.languageId&&!this.bracketPairsTree.value?.object.didLanguageChange(e.languageId)||(this.bracketPairsTree.clear(),this.updateBracketPairsTree())}handleDidChangeOptions(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeLanguage(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeContent(e){this.bracketPairsTree.value?.object.handleContentChanged(e)}handleDidChangeBackgroundTokenizationState(){this.bracketPairsTree.value?.object.handleDidChangeBackgroundTokenizationState()}handleDidChangeTokens(e){this.bracketPairsTree.value?.object.handleDidChangeTokens(e)}updateBracketPairsTree(){if(this.bracketsRequested&&this.canBuildAST){if(!this.bracketPairsTree.value){const n=new r.Cm;this.bracketPairsTree.value=(e=n.add(new pt(this.textModel,(e=>this.languageConfigurationService.getLanguageConfiguration(e)))),t=n,{object:e,dispose:()=>t?.dispose()}),n.add(this.bracketPairsTree.value.object.onDidChange((e=>this.onDidChangeEmitter.fire(e)))),this.onDidChangeEmitter.fire()}}else this.bracketPairsTree.value&&(this.bracketPairsTree.clear(),this.onDidChangeEmitter.fire());var e,t}getBracketPairsInRange(e){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketPairsInRange(e,!1)||o.c1.empty}getBracketPairsInRangeWithMinIndentation(e){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketPairsInRange(e,!0)||o.c1.empty}getBracketsInRange(e,t=!1){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketsInRange(e,t)||o.c1.empty}findMatchingBracketUp(e,t,n){const i=this.textModel.validatePosition(t),r=this.textModel.getLanguageIdAtPosition(i.lineNumber,i.column);if(this.canBuildAST){const n=this.languageConfigurationService.getLanguageConfiguration(r).bracketsNew.getClosingBracketInfo(e);if(!n)return null;const i=this.getBracketPairsInRange(m.Q.fromPositions(t,t)).findLast((e=>n.closes(e.openingBracketInfo)));return i?i.openingBracketRange:null}{const t=e.toLowerCase(),s=this.languageConfigurationService.getLanguageConfiguration(r).brackets;if(!s)return null;const o=s.textIsBracket[t];return o?St(this._findMatchingBracketUp(o,i,Tt(n))):null}}matchBracket(e,t){if(this.canBuildAST){const t=this.getBracketPairsInRange(m.Q.fromPositions(e,e)).filter((t=>void 0!==t.closingBracketRange&&(t.openingBracketRange.containsPosition(e)||t.closingBracketRange.containsPosition(e)))).findLastMaxBy((0,o.VE)((t=>t.openingBracketRange.containsPosition(e)?t.openingBracketRange:t.closingBracketRange),m.Q.compareRangesUsingStarts));return t?[t.openingBracketRange,t.closingBracketRange]:null}{const n=Tt(t);return this._matchBracket(this.textModel.validatePosition(e),n)}}_establishBracketSearchOffsets(e,t,n,i){const r=t.getCount(),s=t.getLanguageId(i);let o=Math.max(0,e.column-1-n.maxBracketLength);for(let l=i-1;l>=0;l--){const e=t.getEndOffset(l);if(e<=o)break;if(S(t.getStandardTokenType(l))||t.getLanguageId(l)!==s){o=e;break}}let a=Math.min(t.getLineContent().length,e.column-1+n.maxBracketLength);for(let l=i+1;l<r;l++){const e=t.getStartOffset(l);if(e>=a)break;if(S(t.getStandardTokenType(l))||t.getLanguageId(l)!==s){a=e;break}}return{searchStartOffset:o,searchEndOffset:a}}_matchBracket(e,t){const n=e.lineNumber,i=this.textModel.tokenization.getLineTokens(n),r=this.textModel.getLineContent(n),s=i.findTokenIndexAtOffset(e.column-1);if(s<0)return null;const o=this.languageConfigurationService.getLanguageConfiguration(i.getLanguageId(s)).brackets;if(o&&!S(i.getStandardTokenType(s))){let{searchStartOffset:a,searchEndOffset:l}=this._establishBracketSearchOffsets(e,i,o,s),h=null;for(;;){const i=H.findNextBracketInRange(o.forwardRegex,n,r,a,l);if(!i)break;if(i.startColumn<=e.column&&e.column<=i.endColumn){const e=r.substring(i.startColumn-1,i.endColumn-1).toLowerCase(),n=this._matchFoundBracket(i,o.textIsBracket[e],o.textIsOpenBracket[e],t);if(n){if(n instanceof Ct)return null;h=n}}a=i.endColumn-1}if(h)return h}if(s>0&&i.getStartOffset(s)===e.column-1){const o=s-1,a=this.languageConfigurationService.getLanguageConfiguration(i.getLanguageId(o)).brackets;if(a&&!S(i.getStandardTokenType(o))){const{searchStartOffset:s,searchEndOffset:l}=this._establishBracketSearchOffsets(e,i,a,o),h=H.findPrevBracketInRange(a.reversedRegex,n,r,s,l);if(h&&h.startColumn<=e.column&&e.column<=h.endColumn){const e=r.substring(h.startColumn-1,h.endColumn-1).toLowerCase(),n=this._matchFoundBracket(h,a.textIsBracket[e],a.textIsOpenBracket[e],t);if(n)return n instanceof Ct?null:n}}}return null}_matchFoundBracket(e,t,n,i){if(!t)return null;const r=n?this._findMatchingBracketDown(t,e.getEndPosition(),i):this._findMatchingBracketUp(t,e.getStartPosition(),i);return r?r instanceof Ct?r:[e,r]:null}_findMatchingBracketUp(e,t,n){const i=e.languageId,r=e.reversedRegex;let s=-1,o=0;const a=(t,i,a,l)=>{for(;;){if(n&&++o%100===0&&!n())return Ct.INSTANCE;const h=H.findPrevBracketInRange(r,t,i,a,l);if(!h)break;const c=i.substring(h.startColumn-1,h.endColumn-1).toLowerCase();if(e.isOpen(c)?s++:e.isClose(c)&&s--,0===s)return h;l=h.startColumn-1}return null};for(let l=t.lineNumber;l>=1;l--){const e=this.textModel.tokenization.getLineTokens(l),n=e.getCount(),r=this.textModel.getLineContent(l);let s=n-1,o=r.length,h=r.length;l===t.lineNumber&&(s=e.findTokenIndexAtOffset(t.column-1),o=t.column-1,h=t.column-1);let c=!0;for(;s>=0;s--){const t=e.getLanguageId(s)===i&&!S(e.getStandardTokenType(s));if(t)c?o=e.getStartOffset(s):(o=e.getStartOffset(s),h=e.getEndOffset(s));else if(c&&o!==h){const e=a(l,r,o,h);if(e)return e}c=t}if(c&&o!==h){const e=a(l,r,o,h);if(e)return e}}return null}_findMatchingBracketDown(e,t,n){const i=e.languageId,r=e.forwardRegex;let s=1,o=0;const a=(t,i,a,l)=>{for(;;){if(n&&++o%100===0&&!n())return Ct.INSTANCE;const h=H.findNextBracketInRange(r,t,i,a,l);if(!h)break;const c=i.substring(h.startColumn-1,h.endColumn-1).toLowerCase();if(e.isOpen(c)?s++:e.isClose(c)&&s--,0===s)return h;a=h.endColumn-1}return null},l=this.textModel.getLineCount();for(let h=t.lineNumber;h<=l;h++){const e=this.textModel.tokenization.getLineTokens(h),n=e.getCount(),r=this.textModel.getLineContent(h);let s=0,o=0,l=0;h===t.lineNumber&&(s=e.findTokenIndexAtOffset(t.column-1),o=t.column-1,l=t.column-1);let c=!0;for(;s<n;s++){const t=e.getLanguageId(s)===i&&!S(e.getStandardTokenType(s));if(t)c||(o=e.getStartOffset(s)),l=e.getEndOffset(s);else if(c&&o!==l){const e=a(h,r,o,l);if(e)return e}c=t}if(c&&o!==l){const e=a(h,r,o,l);if(e)return e}}return null}findPrevBracket(e){const t=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getFirstBracketBefore(t)||null;let n=null,i=null,r=null;for(let s=t.lineNumber;s>=1;s--){const e=this.textModel.tokenization.getLineTokens(s),o=e.getCount(),a=this.textModel.getLineContent(s);let l=o-1,h=a.length,c=a.length;if(s===t.lineNumber){l=e.findTokenIndexAtOffset(t.column-1),h=t.column-1,c=t.column-1;const s=e.getLanguageId(l);n!==s&&(n=s,i=this.languageConfigurationService.getLanguageConfiguration(n).brackets,r=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew)}let d=!0;for(;l>=0;l--){const t=e.getLanguageId(l);if(n!==t){if(i&&r&&d&&h!==c){const e=H.findPrevBracketInRange(i.reversedRegex,s,a,h,c);if(e)return this._toFoundBracket(r,e);d=!1}n=t,i=this.languageConfigurationService.getLanguageConfiguration(n).brackets,r=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew}const o=!!i&&!S(e.getStandardTokenType(l));if(o)d?h=e.getStartOffset(l):(h=e.getStartOffset(l),c=e.getEndOffset(l));else if(r&&i&&d&&h!==c){const e=H.findPrevBracketInRange(i.reversedRegex,s,a,h,c);if(e)return this._toFoundBracket(r,e)}d=o}if(r&&i&&d&&h!==c){const e=H.findPrevBracketInRange(i.reversedRegex,s,a,h,c);if(e)return this._toFoundBracket(r,e)}}return null}findNextBracket(e){const t=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getFirstBracketAfter(t)||null;const n=this.textModel.getLineCount();let i=null,r=null,s=null;for(let o=t.lineNumber;o<=n;o++){const e=this.textModel.tokenization.getLineTokens(o),n=e.getCount(),a=this.textModel.getLineContent(o);let l=0,h=0,c=0;if(o===t.lineNumber){l=e.findTokenIndexAtOffset(t.column-1),h=t.column-1,c=t.column-1;const n=e.getLanguageId(l);i!==n&&(i=n,r=this.languageConfigurationService.getLanguageConfiguration(i).brackets,s=this.languageConfigurationService.getLanguageConfiguration(i).bracketsNew)}let d=!0;for(;l<n;l++){const t=e.getLanguageId(l);if(i!==t){if(s&&r&&d&&h!==c){const e=H.findNextBracketInRange(r.forwardRegex,o,a,h,c);if(e)return this._toFoundBracket(s,e);d=!1}i=t,r=this.languageConfigurationService.getLanguageConfiguration(i).brackets,s=this.languageConfigurationService.getLanguageConfiguration(i).bracketsNew}const n=!!r&&!S(e.getStandardTokenType(l));if(n)d||(h=e.getStartOffset(l)),c=e.getEndOffset(l);else if(s&&r&&d&&h!==c){const e=H.findNextBracketInRange(r.forwardRegex,o,a,h,c);if(e)return this._toFoundBracket(s,e)}d=n}if(s&&r&&d&&h!==c){const e=H.findNextBracketInRange(r.forwardRegex,o,a,h,c);if(e)return this._toFoundBracket(s,e)}}return null}findEnclosingBrackets(e,t){const n=this.textModel.validatePosition(e);if(this.canBuildAST){const e=m.Q.fromPositions(n),t=this.getBracketPairsInRange(m.Q.fromPositions(n,n)).findLast((t=>void 0!==t.closingBracketRange&&t.range.strictContainsRange(e)));return t?[t.openingBracketRange,t.closingBracketRange]:null}const i=Tt(t),r=this.textModel.getLineCount(),s=new Map;let o=[];const a=(e,t)=>{if(!s.has(e)){const n=[];for(let e=0,i=t?t.brackets.length:0;e<i;e++)n[e]=0;s.set(e,n)}o=s.get(e)};let l=0;const h=(e,t,n,r,s)=>{for(;;){if(i&&++l%100===0&&!i())return Ct.INSTANCE;const a=H.findNextBracketInRange(e.forwardRegex,t,n,r,s);if(!a)break;const h=n.substring(a.startColumn-1,a.endColumn-1).toLowerCase(),c=e.textIsBracket[h];if(c&&(c.isOpen(h)?o[c.index]++:c.isClose(h)&&o[c.index]--,-1===o[c.index]))return this._matchFoundBracket(a,c,!1,i);r=a.endColumn-1}return null};let c=null,d=null;for(let u=n.lineNumber;u<=r;u++){const e=this.textModel.tokenization.getLineTokens(u),t=e.getCount(),i=this.textModel.getLineContent(u);let r=0,s=0,o=0;if(u===n.lineNumber){r=e.findTokenIndexAtOffset(n.column-1),s=n.column-1,o=n.column-1;const t=e.getLanguageId(r);c!==t&&(c=t,d=this.languageConfigurationService.getLanguageConfiguration(c).brackets,a(c,d))}let l=!0;for(;r<t;r++){const t=e.getLanguageId(r);if(c!==t){if(d&&l&&s!==o){const e=h(d,u,i,s,o);if(e)return St(e);l=!1}c=t,d=this.languageConfigurationService.getLanguageConfiguration(c).brackets,a(c,d)}const n=!!d&&!S(e.getStandardTokenType(r));if(n)l||(s=e.getStartOffset(r)),o=e.getEndOffset(r);else if(d&&l&&s!==o){const e=h(d,u,i,s,o);if(e)return St(e)}l=n}if(d&&l&&s!==o){const e=h(d,u,i,s,o);if(e)return St(e)}}return null}_toFoundBracket(e,t){if(!t)return null;let n=this.textModel.getValueInRange(t);n=n.toLowerCase();const i=e.getBracketInfo(n);return i?{range:t,bracketInfo:i}:null}}function Tt(e){if("undefined"===typeof e)return()=>!0;{const t=Date.now();return()=>Date.now()-t<=e}}class Ct{static{this.INSTANCE=new Ct}constructor(){this._searchCanceledBrand=void 0}}function St(e){return e instanceof Ct?null:e}var Lt=n(7119),xt=n(5724);class Et extends r.jG{constructor(e){super(),this.textModel=e,this.colorProvider=new At,this.onDidChangeEmitter=new i.vl,this.onDidChange=this.onDidChangeEmitter.event,this.colorizationOptions=e.getOptions().bracketPairColorizationOptions,this._register(e.bracketPairs.onDidChange((e=>{this.onDidChangeEmitter.fire()})))}handleDidChangeOptions(e){this.colorizationOptions=this.textModel.getOptions().bracketPairColorizationOptions}getDecorationsInRange(e,t,n,i){if(i)return[];if(void 0===t)return[];if(!this.colorizationOptions.enabled)return[];return this.textModel.bracketPairs.getBracketsInRange(e,!0).map((e=>({id:`bracket${e.range.toString()}-${e.nestingLevel}`,options:{description:"BracketPairColorization",inlineClassName:this.colorProvider.getInlineClassName(e,this.colorizationOptions.independentColorPoolPerBracketType)},ownerId:0,range:e.range}))).toArray()}getAllDecorations(e,t){return void 0===e?[]:this.colorizationOptions.enabled?this.getDecorationsInRange(new m.Q(1,1,this.textModel.getLineCount(),1),e,t):[]}}class At{constructor(){this.unexpectedClosingBracketClassName="unexpected-closing-bracket"}getInlineClassName(e,t){return e.isInvalid?this.unexpectedClosingBracketClassName:this.getInlineClassNameOfLevel(t?e.nestingLevelOfEqualBracketType:e.nestingLevel)}getInlineClassNameOfLevel(e){return"bracket-highlighting-"+e%30}}(0,xt.zy)(((e,t)=>{const n=[Lt.sN,Lt.lQ,Lt.ss,Lt.l5,Lt.sH,Lt.zp],i=new At;t.addRule(`.monaco-editor .${i.unexpectedClosingBracketClassName} { color: ${e.getColor(Lt.s7)}; }`);const r=n.map((t=>e.getColor(t))).filter((e=>!!e)).filter((e=>!e.isTransparent()));for(let s=0;s<30;s++){const e=r[s%r.length];t.addRule(`.monaco-editor .${i.getInlineClassNameOfLevel(s)} { color: ${e}; }`)}}));var It=n(8209);function Mt(e){return e.replace(/\n/g,"\\n").replace(/\r/g,"\\r")}class Nt{get oldLength(){return this.oldText.length}get oldEnd(){return this.oldPosition+this.oldText.length}get newLength(){return this.newText.length}get newEnd(){return this.newPosition+this.newText.length}constructor(e,t,n,i){this.oldPosition=e,this.oldText=t,this.newPosition=n,this.newText=i}toString(){return 0===this.oldText.length?`(insert@${this.oldPosition} "${Mt(this.newText)}")`:0===this.newText.length?`(delete@${this.oldPosition} "${Mt(this.oldText)}")`:`(replace@${this.oldPosition} "${Mt(this.oldText)}" with "${Mt(this.newText)}")`}static _writeStringSize(e){return 4+2*e.length}static _writeString(e,t,n){const i=t.length;L.Sw(e,i,n),n+=4;for(let r=0;r<i;r++)L.gN(e,t.charCodeAt(r),n),n+=2;return n}static _readString(e,t){const n=L.bb(e,t);return N(e,t+=4,n)}writeSize(){return 8+Nt._writeStringSize(this.oldText)+Nt._writeStringSize(this.newText)}write(e,t){return L.Sw(e,this.oldPosition,t),t+=4,L.Sw(e,this.newPosition,t),t+=4,t=Nt._writeString(e,this.oldText,t),t=Nt._writeString(e,this.newText,t)}static read(e,t,n){const i=L.bb(e,t);t+=4;const r=L.bb(e,t);t+=4;const s=Nt._readString(e,t);t+=Nt._writeStringSize(s);const o=Nt._readString(e,t);return t+=Nt._writeStringSize(o),n.push(new Nt(i,s,r,o)),t}}class Rt{constructor(e,t){this._prevEdits=e,this._currEdits=t,this._result=[],this._resultLen=0,this._prevLen=this._prevEdits.length,this._prevDeltaOffset=0,this._currLen=this._currEdits.length,this._currDeltaOffset=0}compress(){let e=0,t=0,n=this._getPrev(e),i=this._getCurr(t);for(;e<this._prevLen||t<this._currLen;){if(null===n){this._acceptCurr(i),i=this._getCurr(++t);continue}if(null===i){this._acceptPrev(n),n=this._getPrev(++e);continue}if(i.oldEnd<=n.newPosition){this._acceptCurr(i),i=this._getCurr(++t);continue}if(n.newEnd<=i.oldPosition){this._acceptPrev(n),n=this._getPrev(++e);continue}if(i.oldPosition<n.newPosition){const[e,t]=Rt._splitCurr(i,n.newPosition-i.oldPosition);this._acceptCurr(e),i=t;continue}if(n.newPosition<i.oldPosition){const[e,t]=Rt._splitPrev(n,i.oldPosition-n.newPosition);this._acceptPrev(e),n=t;continue}let r,s;if(i.oldEnd===n.newEnd)r=n,s=i,n=this._getPrev(++e),i=this._getCurr(++t);else if(i.oldEnd<n.newEnd){const[e,o]=Rt._splitPrev(n,i.oldLength);r=e,s=i,n=o,i=this._getCurr(++t)}else{const[t,o]=Rt._splitCurr(i,n.newLength);r=n,s=t,n=this._getPrev(++e),i=o}this._result[this._resultLen++]=new Nt(r.oldPosition,r.oldText,s.newPosition,s.newText),this._prevDeltaOffset+=r.newLength-r.oldLength,this._currDeltaOffset+=s.newLength-s.oldLength}const r=Rt._merge(this._result);return Rt._removeNoOps(r)}_acceptCurr(e){this._result[this._resultLen++]=Rt._rebaseCurr(this._prevDeltaOffset,e),this._currDeltaOffset+=e.newLength-e.oldLength}_getCurr(e){return e<this._currLen?this._currEdits[e]:null}_acceptPrev(e){this._result[this._resultLen++]=Rt._rebasePrev(this._currDeltaOffset,e),this._prevDeltaOffset+=e.newLength-e.oldLength}_getPrev(e){return e<this._prevLen?this._prevEdits[e]:null}static _rebaseCurr(e,t){return new Nt(t.oldPosition-e,t.oldText,t.newPosition,t.newText)}static _rebasePrev(e,t){return new Nt(t.oldPosition,t.oldText,t.newPosition+e,t.newText)}static _splitPrev(e,t){const n=e.newText.substr(0,t),i=e.newText.substr(t);return[new Nt(e.oldPosition,e.oldText,e.newPosition,n),new Nt(e.oldEnd,"",e.newPosition+t,i)]}static _splitCurr(e,t){const n=e.oldText.substr(0,t),i=e.oldText.substr(t);return[new Nt(e.oldPosition,n,e.newPosition,e.newText),new Nt(e.oldPosition+t,i,e.newEnd,"")]}static _merge(e){if(0===e.length)return e;const t=[];let n=0,i=e[0];for(let r=1;r<e.length;r++){const s=e[r];i.oldEnd===s.oldPosition?i=new Nt(i.oldPosition,i.oldText+s.oldText,i.newPosition,i.newText+s.newText):(t[n++]=i,i=s)}return t[n++]=i,t}static _removeNoOps(e){if(0===e.length)return e;const t=[];let n=0;for(let i=0;i<e.length;i++){const r=e[i];r.oldText!==r.newText&&(t[n++]=r)}return t}}var Dt=n(9403);function Ot(e){return e.toString()}class Bt{static create(e,t){const n=e.getAlternativeVersionId(),i=Ft(e);return new Bt(n,n,i,i,t,t,[])}constructor(e,t,n,i,r,s,o){this.beforeVersionId=e,this.afterVersionId=t,this.beforeEOL=n,this.afterEOL=i,this.beforeCursorState=r,this.afterCursorState=s,this.changes=o}append(e,t,n,i,r){var s,o;t.length>0&&(this.changes=(s=this.changes,o=t,null===s||0===s.length?o:new Rt(s,o).compress())),this.afterEOL=n,this.afterVersionId=i,this.afterCursorState=r}static _writeSelectionsSize(e){return 4+16*(e?e.length:0)}static _writeSelections(e,t,n){if(L.Sw(e,t?t.length:0,n),n+=4,t)for(const i of t)L.Sw(e,i.selectionStartLineNumber,n),n+=4,L.Sw(e,i.selectionStartColumn,n),n+=4,L.Sw(e,i.positionLineNumber,n),n+=4,L.Sw(e,i.positionColumn,n),n+=4;return n}static _readSelections(e,t,n){const i=L.bb(e,t);t+=4;for(let r=0;r<i;r++){const i=L.bb(e,t);t+=4;const r=L.bb(e,t);t+=4;const s=L.bb(e,t);t+=4;const o=L.bb(e,t);t+=4,n.push(new p.L(i,r,s,o))}return t}serialize(){let e=10+Bt._writeSelectionsSize(this.beforeCursorState)+Bt._writeSelectionsSize(this.afterCursorState)+4;for(const i of this.changes)e+=i.writeSize();const t=new Uint8Array(e);let n=0;L.Sw(t,this.beforeVersionId,n),n+=4,L.Sw(t,this.afterVersionId,n),n+=4,L.Gs(t,this.beforeEOL,n),n+=1,L.Gs(t,this.afterEOL,n),n+=1,n=Bt._writeSelections(t,this.beforeCursorState,n),n=Bt._writeSelections(t,this.afterCursorState,n),L.Sw(t,this.changes.length,n),n+=4;for(const i of this.changes)n=i.write(t,n);return t.buffer}static deserialize(e){const t=new Uint8Array(e);let n=0;const i=L.bb(t,n);n+=4;const r=L.bb(t,n);n+=4;const s=L.pJ(t,n);n+=1;const o=L.pJ(t,n);n+=1;const a=[];n=Bt._readSelections(t,n,a);const l=[];n=Bt._readSelections(t,n,l);const h=L.bb(t,n);n+=4;const c=[];for(let d=0;d<h;d++)n=Nt.read(t,n,c);return new Bt(i,r,s,o,a,l,c)}}class zt{get type(){return 0}get resource(){return c.r.isUri(this.model)?this.model:this.model.uri}constructor(e,t,n,i){this.label=e,this.code=t,this.model=n,this._data=Bt.create(n,i)}toString(){return(this._data instanceof Bt?this._data:Bt.deserialize(this._data)).changes.map((e=>e.toString())).join(", ")}matchesResource(e){return(c.r.isUri(this.model)?this.model:this.model.uri).toString()===e.toString()}setModel(e){this.model=e}canAppend(e){return this.model===e&&this._data instanceof Bt}append(e,t,n,i,r){this._data instanceof Bt&&this._data.append(e,t,n,i,r)}close(){this._data instanceof Bt&&(this._data=this._data.serialize())}open(){this._data instanceof Bt||(this._data=Bt.deserialize(this._data))}undo(){if(c.r.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof Bt&&(this._data=this._data.serialize());const e=Bt.deserialize(this._data);this.model._applyUndo(e.changes,e.beforeEOL,e.beforeVersionId,e.beforeCursorState)}redo(){if(c.r.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof Bt&&(this._data=this._data.serialize());const e=Bt.deserialize(this._data);this.model._applyRedo(e.changes,e.afterEOL,e.afterVersionId,e.afterCursorState)}heapSize(){return this._data instanceof Bt&&(this._data=this._data.serialize()),this._data.byteLength+168}}class Pt{get resources(){return this._editStackElementsArr.map((e=>e.resource))}constructor(e,t,n){this.label=e,this.code=t,this.type=1,this._isOpen=!0,this._editStackElementsArr=n.slice(0),this._editStackElementsMap=new Map;for(const i of this._editStackElementsArr){const e=Ot(i.resource);this._editStackElementsMap.set(e,i)}this._delegate=null}prepareUndoRedo(){if(this._delegate)return this._delegate.prepareUndoRedo(this)}matchesResource(e){const t=Ot(e);return this._editStackElementsMap.has(t)}setModel(e){const t=Ot(c.r.isUri(e)?e:e.uri);this._editStackElementsMap.has(t)&&this._editStackElementsMap.get(t).setModel(e)}canAppend(e){if(!this._isOpen)return!1;const t=Ot(e.uri);if(this._editStackElementsMap.has(t)){return this._editStackElementsMap.get(t).canAppend(e)}return!1}append(e,t,n,i,r){const s=Ot(e.uri);this._editStackElementsMap.get(s).append(e,t,n,i,r)}close(){this._isOpen=!1}open(){}undo(){this._isOpen=!1;for(const e of this._editStackElementsArr)e.undo()}redo(){for(const e of this._editStackElementsArr)e.redo()}heapSize(e){const t=Ot(e);if(this._editStackElementsMap.has(t)){return this._editStackElementsMap.get(t).heapSize()}return 0}split(){return this._editStackElementsArr}toString(){const e=[];for(const t of this._editStackElementsArr)e.push(`${(0,Dt.P8)(t.resource)}: ${t}`);return`{${e.join(", ")}}`}}function Ft(e){return"\n"===e.getEOL()?0:1}function Wt(e){return!!e&&(e instanceof zt||e instanceof Pt)}class Ht{constructor(e,t){this._model=e,this._undoRedoService=t}pushStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);Wt(e)&&e.close()}popStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);Wt(e)&&e.open()}clear(){this._undoRedoService.removeElements(this._model.uri)}_getOrCreateEditStackElement(e,t){const n=this._undoRedoService.getLastElement(this._model.uri);if(Wt(n)&&n.canAppend(this._model))return n;const i=new zt(It.kg("edit","Typing"),"undoredo.textBufferEdit",this._model,e);return this._undoRedoService.pushElement(i,t),i}pushEOL(e){const t=this._getOrCreateEditStackElement(null,void 0);this._model.setEOL(e),t.append(this._model,[],Ft(this._model),this._model.getAlternativeVersionId(),null)}pushEditOperation(e,t,n,i){const r=this._getOrCreateEditStackElement(e,i),s=this._model.applyEdits(t,!0),o=Ht._computeCursorState(n,s),a=s.map(((e,t)=>({index:t,textChange:e.textChange})));return a.sort(((e,t)=>e.textChange.oldPosition===t.textChange.oldPosition?e.index-t.index:e.textChange.oldPosition-t.textChange.oldPosition)),r.append(this._model,a.map((e=>e.textChange)),Ft(this._model),this._model.getAlternativeVersionId(),o),o}static _computeCursorState(e,t){try{return e?e(t):null}catch(n){return(0,l.dz)(n),null}}}var Ut,qt=n(6041);class Vt extends r.jG{constructor(){super(...arguments),this._isDisposed=!1}dispose(){super.dispose(),this._isDisposed=!0}assertNotDisposed(){if(this._isDisposed)throw new Error("TextModelPart is disposed!")}}!function(e){e[e.Disabled=0]="Disabled",e[e.EnabledForActive=1]="EnabledForActive",e[e.Enabled=2]="Enabled"}(Ut||(Ut={}));class jt{constructor(e,t,n,i,r,s){if(this.visibleColumn=e,this.column=t,this.className=n,this.horizontalLine=i,this.forWrappedLinesAfterColumn=r,this.forWrappedLinesBeforeOrAtColumn=s,-1!==e===(-1!==t))throw new Error}}class Gt{constructor(e,t){this.top=e,this.endColumn=t}}class Kt extends Vt{constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t}getLanguageConfiguration(e){return this.languageConfigurationService.getLanguageConfiguration(e)}_computeIndentLevel(e){return function(e,t){let n=0,i=0;const r=e.length;for(;i<r;){const r=e.charCodeAt(i);if(32===r)n++;else{if(9!==r)break;n=n-n%t+t}i++}return i===r?-1:n}(this.textModel.getLineContent(e+1),this.textModel.getOptions().tabSize)}getActiveIndentGuide(e,t,n){this.assertNotDisposed();const i=this.textModel.getLineCount();if(e<1||e>i)throw new l.D7("Illegal value for lineNumber");const r=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,s=Boolean(r&&r.offSide);let o=-2,a=-1,h=-2,c=-1;const d=e=>{if(-1!==o&&(-2===o||o>e-1)){o=-1,a=-1;for(let t=e-2;t>=0;t--){const e=this._computeIndentLevel(t);if(e>=0){o=t,a=e;break}}}if(-2===h){h=-1,c=-1;for(let t=e;t<i;t++){const e=this._computeIndentLevel(t);if(e>=0){h=t,c=e;break}}}};let u=-2,g=-1,f=-2,m=-1;const p=e=>{if(-2===u){u=-1,g=-1;for(let t=e-2;t>=0;t--){const e=this._computeIndentLevel(t);if(e>=0){u=t,g=e;break}}}if(-1!==f&&(-2===f||f<e-1)){f=-1,m=-1;for(let t=e;t<i;t++){const e=this._computeIndentLevel(t);if(e>=0){f=t,m=e;break}}}};let _=0,b=!0,v=0,w=!0,k=0,y=0;for(let l=0;b||w;l++){const r=e-l,o=e+l;l>1&&(r<1||r<t)&&(b=!1),l>1&&(o>i||o>n)&&(w=!1),l>5e4&&(b=!1,w=!1);let f=-1;if(b&&r>=1){const e=this._computeIndentLevel(r-1);e>=0?(h=r-1,c=e,f=Math.ceil(e/this.textModel.getOptions().indentSize)):(d(r),f=this._getIndentLevelForWhitespaceLine(s,a,c))}let T=-1;if(w&&o<=i){const e=this._computeIndentLevel(o-1);e>=0?(u=o-1,g=e,T=Math.ceil(e/this.textModel.getOptions().indentSize)):(p(o),T=this._getIndentLevelForWhitespaceLine(s,g,m))}if(0!==l){if(1===l){if(o<=i&&T>=0&&y+1===T){b=!1,_=o,v=o,k=T;continue}if(r>=1&&f>=0&&f-1===y){w=!1,_=r,v=r,k=f;continue}if(_=e,v=e,k=y,0===k)return{startLineNumber:_,endLineNumber:v,indent:k}}b&&(f>=k?_=r:b=!1),w&&(T>=k?v=o:w=!1)}else y=f}return{startLineNumber:_,endLineNumber:v,indent:k}}getLinesBracketGuides(e,t,n,i){const r=[];for(let h=e;h<=t;h++)r.push([]);const s=!0,o=this.textModel.bracketPairs.getBracketPairsInRangeWithMinIndentation(new m.Q(e,1,t,this.textModel.getLineMaxColumn(t))).toArray();let a;if(n&&o.length>0){const i=(e<=n.lineNumber&&n.lineNumber<=t?o:this.textModel.bracketPairs.getBracketPairsInRange(m.Q.fromPositions(n)).toArray()).filter((e=>m.Q.strictContainsPosition(e.range,n)));a=(0,qt.Uk)(i,(e=>s))?.range}const l=this.textModel.getOptions().bracketPairColorizationOptions.independentColorPoolPerBracketType,c=new $t;for(const d of o){if(!d.closingBracketRange)continue;const n=a&&d.range.equalsRange(a);if(!n&&!i.includeInactive)continue;const s=c.getInlineClassName(d.nestingLevel,d.nestingLevelOfEqualBracketType,l)+(i.highlightActive&&n?" "+c.activeClassName:""),o=d.openingBracketRange.getStartPosition(),u=d.closingBracketRange.getStartPosition(),g=i.horizontalGuides===Ut.Enabled||i.horizontalGuides===Ut.EnabledForActive&&n;if(d.range.startLineNumber===d.range.endLineNumber){g&&r[d.range.startLineNumber-e].push(new jt(-1,d.openingBracketRange.getEndPosition().column,s,new Gt(!1,u.column),-1,-1));continue}const f=this.getVisibleColumnFromPosition(u),m=this.getVisibleColumnFromPosition(d.openingBracketRange.getStartPosition()),p=Math.min(m,f,d.minVisibleColumnIndentation+1);let _=!1;h.HG(this.textModel.getLineContent(d.closingBracketRange.startLineNumber))<d.closingBracketRange.startColumn-1&&(_=!0);const b=Math.max(o.lineNumber,e),v=Math.min(u.lineNumber,t),w=_?1:0;for(let t=b;t<v+w;t++)r[t-e].push(new jt(p,-1,s,null,t===o.lineNumber?o.column:-1,t===u.lineNumber?u.column:-1));g&&(o.lineNumber>=e&&m>p&&r[o.lineNumber-e].push(new jt(p,-1,s,new Gt(!1,o.column),-1,-1)),u.lineNumber<=t&&f>p&&r[u.lineNumber-e].push(new jt(p,-1,s,new Gt(!_,u.column),-1,-1)))}for(const h of r)h.sort(((e,t)=>e.visibleColumn-t.visibleColumn));return r}getVisibleColumnFromPosition(e){return u.visibleColumnFromColumn(this.textModel.getLineContent(e.lineNumber),e.column,this.textModel.getOptions().tabSize)+1}getLinesIndentGuides(e,t){this.assertNotDisposed();const n=this.textModel.getLineCount();if(e<1||e>n)throw new Error("Illegal value for startLineNumber");if(t<1||t>n)throw new Error("Illegal value for endLineNumber");const i=this.textModel.getOptions(),r=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,s=Boolean(r&&r.offSide),o=new Array(t-e+1);let a=-2,l=-1,h=-2,c=-1;for(let d=e;d<=t;d++){const t=d-e,r=this._computeIndentLevel(d-1);if(r>=0)a=d-1,l=r,o[t]=Math.ceil(r/i.indentSize);else{if(-2===a){a=-1,l=-1;for(let e=d-2;e>=0;e--){const t=this._computeIndentLevel(e);if(t>=0){a=e,l=t;break}}}if(-1!==h&&(-2===h||h<d-1)){h=-1,c=-1;for(let e=d;e<n;e++){const t=this._computeIndentLevel(e);if(t>=0){h=e,c=t;break}}}o[t]=this._getIndentLevelForWhitespaceLine(s,l,c)}}return o}_getIndentLevelForWhitespaceLine(e,t,n){const i=this.textModel.getOptions();return-1===t||-1===n?0:t<n?1+Math.floor(t/i.indentSize):t===n||e?Math.ceil(n/i.indentSize):1+Math.floor(n/i.indentSize)}}class $t{constructor(){this.activeClassName="indent-active"}getInlineClassName(e,t,n){return this.getInlineClassNameOfLevel(n?t:e)}getInlineClassNameOfLevel(e){return"bracket-indent-guide lvl-"+e%30}}class Qt{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}}function Yt(e,t,n,i,r){let s;for(r.spacesDiff=0,r.looksLikeAlignment=!1,s=0;s<t&&s<i;s++){if(e.charCodeAt(s)!==n.charCodeAt(s))break}let o=0,a=0;for(let u=s;u<t;u++){32===e.charCodeAt(u)?o++:a++}let l=0,h=0;for(let u=s;u<i;u++){32===n.charCodeAt(u)?l++:h++}if(o>0&&a>0)return;if(l>0&&h>0)return;const c=Math.abs(a-h),d=Math.abs(o-l);if(0===c)return r.spacesDiff=d,void(d>0&&0<=l-1&&l-1<e.length&&l<n.length&&32!==n.charCodeAt(l)&&32===e.charCodeAt(l-1)&&44===e.charCodeAt(e.length-1)&&(r.looksLikeAlignment=!0));d%c!==0||(r.spacesDiff=d/c)}function Xt(e,t,n){const i=Math.min(e.getLineCount(),1e4);let r=0,s=0,o="",a=0;const l=[2,4,6,8,3,5,7],h=[0,0,0,0,0,0,0,0,0],c=new Qt;for(let g=1;g<=i;g++){const i=e.getLineLength(g),l=e.getLineContent(g),d=i<=65536;let u=!1,f=0,m=0,p=0;for(let t=0,n=i;t<n;t++){const n=d?l.charCodeAt(t):e.getLineCharCode(g,t);if(9===n)p++;else{if(32!==n){u=!0,f=t;break}m++}}if(!u)continue;if(p>0?r++:m>1&&s++,Yt(o,a,l,f,c),c.looksLikeAlignment&&(!n||t!==c.spacesDiff))continue;const _=c.spacesDiff;_<=8&&h[_]++,o=l,a=f}let d=n;r!==s&&(d=r<s);let u=t;if(d){let e=d?0:.1*i;l.forEach((t=>{const n=h[t];n>e&&(e=n,u=t)})),4===u&&h[4]>0&&h[2]>0&&h[2]>=h[4]/2&&(u=2)}return{insertSpaces:d,tabSize:u}}function Jt(e){return(1&e.metadata)>>>0}function Zt(e,t){e.metadata=254&e.metadata|t}function en(e){return(2&e.metadata)>>>1===1}function tn(e,t){e.metadata=253&e.metadata|(t?1:0)<<1}function nn(e){return(4&e.metadata)>>>2===1}function rn(e,t){e.metadata=251&e.metadata|(t?1:0)<<2}function sn(e){return(64&e.metadata)>>>6===1}function on(e,t){e.metadata=191&e.metadata|(t?1:0)<<6}function an(e,t){e.metadata=231&e.metadata|t<<3}function ln(e,t){e.metadata=223&e.metadata|(t?1:0)<<5}class hn{constructor(e,t,n){this.metadata=0,this.parent=this,this.left=this,this.right=this,Zt(this,1),this.start=t,this.end=n,this.delta=0,this.maxEnd=n,this.id=e,this.ownerId=0,this.options=null,rn(this,!1),on(this,!1),an(this,1),ln(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=null,tn(this,!1)}reset(e,t,n,i){this.start=t,this.end=n,this.maxEnd=n,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=i}setOptions(e){this.options=e;const t=this.options.className;rn(this,"squiggly-error"===t||"squiggly-warning"===t||"squiggly-info"===t),on(this,null!==this.options.glyphMarginClassName),an(this,this.options.stickiness),ln(this,this.options.collapseOnReplaceEdit)}setCachedOffsets(e,t,n){this.cachedVersionId!==n&&(this.range=null),this.cachedVersionId=n,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t}detach(){this.parent=null,this.left=null,this.right=null}}const cn=new hn(null,0,0);cn.parent=cn,cn.left=cn,cn.right=cn,Zt(cn,0);class dn{constructor(){this.root=cn,this.requestNormalizeDelta=!1}intervalSearch(e,t,n,i,r,s){return this.root===cn?[]:function(e,t,n,i,r,s,o){let a=e.root,l=0,h=0,c=0,d=0;const u=[];let g=0;for(;a!==cn;)if(en(a))tn(a.left,!1),tn(a.right,!1),a===a.parent.right&&(l-=a.parent.delta),a=a.parent;else{if(!en(a.left)){if(h=l+a.maxEnd,h<t){tn(a,!0);continue}if(a.left!==cn){a=a.left;continue}}if(c=l+a.start,c>n)tn(a,!0);else{if(d=l+a.end,d>=t){a.setCachedOffsets(c,d,s);let e=!0;i&&a.ownerId&&a.ownerId!==i&&(e=!1),r&&nn(a)&&(e=!1),o&&!sn(a)&&(e=!1),e&&(u[g++]=a)}tn(a,!0),a.right===cn||en(a.right)||(l+=a.delta,a=a.right)}}return tn(e.root,!1),u}(this,e,t,n,i,r,s)}search(e,t,n,i){return this.root===cn?[]:function(e,t,n,i,r){let s=e.root,o=0,a=0,l=0;const h=[];let c=0;for(;s!==cn;){if(en(s)){tn(s.left,!1),tn(s.right,!1),s===s.parent.right&&(o-=s.parent.delta),s=s.parent;continue}if(s.left!==cn&&!en(s.left)){s=s.left;continue}a=o+s.start,l=o+s.end,s.setCachedOffsets(a,l,i);let e=!0;t&&s.ownerId&&s.ownerId!==t&&(e=!1),n&&nn(s)&&(e=!1),r&&!sn(s)&&(e=!1),e&&(h[c++]=s),tn(s,!0),s.right===cn||en(s.right)||(o+=s.delta,s=s.right)}return tn(e.root,!1),h}(this,e,t,n,i)}collectNodesFromOwner(e){return function(e,t){let n=e.root;const i=[];let r=0;for(;n!==cn;)en(n)?(tn(n.left,!1),tn(n.right,!1),n=n.parent):n.left===cn||en(n.left)?(n.ownerId===t&&(i[r++]=n),tn(n,!0),n.right===cn||en(n.right)||(n=n.right)):n=n.left;return tn(e.root,!1),i}(this,e)}collectNodesPostOrder(){return function(e){let t=e.root;const n=[];let i=0;for(;t!==cn;)en(t)?(tn(t.left,!1),tn(t.right,!1),t=t.parent):t.left===cn||en(t.left)?t.right===cn||en(t.right)?(n[i++]=t,tn(t,!0)):t=t.right:t=t.left;return tn(e.root,!1),n}(this)}insert(e){fn(this,e),this._normalizeDeltaIfNecessary()}delete(e){mn(this,e),this._normalizeDeltaIfNecessary()}resolveNode(e,t){const n=e;let i=0;for(;e!==this.root;)e===e.parent.right&&(i+=e.parent.delta),e=e.parent;const r=n.start+i,s=n.end+i;n.setCachedOffsets(r,s,t)}acceptReplace(e,t,n,i){const r=function(e,t,n){let i=e.root,r=0,s=0,o=0,a=0;const l=[];let h=0;for(;i!==cn;)if(en(i))tn(i.left,!1),tn(i.right,!1),i===i.parent.right&&(r-=i.parent.delta),i=i.parent;else{if(!en(i.left)){if(s=r+i.maxEnd,s<t){tn(i,!0);continue}if(i.left!==cn){i=i.left;continue}}o=r+i.start,o>n?tn(i,!0):(a=r+i.end,a>=t&&(i.setCachedOffsets(o,a,0),l[h++]=i),tn(i,!0),i.right===cn||en(i.right)||(r+=i.delta,i=i.right))}return tn(e.root,!1),l}(this,e,e+t);for(let s=0,o=r.length;s<o;s++){mn(this,r[s])}this._normalizeDeltaIfNecessary(),function(e,t,n,i){let r=e.root,s=0,o=0,a=0;const l=i-(n-t);for(;r!==cn;)if(en(r))tn(r.left,!1),tn(r.right,!1),r===r.parent.right&&(s-=r.parent.delta),wn(r),r=r.parent;else{if(!en(r.left)){if(o=s+r.maxEnd,o<t){tn(r,!0);continue}if(r.left!==cn){r=r.left;continue}}a=s+r.start,a>n?(r.start+=l,r.end+=l,r.delta+=l,(r.delta<-1073741824||r.delta>1073741824)&&(e.requestNormalizeDelta=!0),tn(r,!0)):(tn(r,!0),r.right===cn||en(r.right)||(s+=r.delta,r=r.right))}tn(e.root,!1)}(this,e,e+t,n),this._normalizeDeltaIfNecessary();for(let s=0,o=r.length;s<o;s++){const o=r[s];o.start=o.cachedAbsoluteStart,o.end=o.cachedAbsoluteEnd,gn(o,e,e+t,n,i),o.maxEnd=o.end,fn(this,o)}this._normalizeDeltaIfNecessary()}_normalizeDeltaIfNecessary(){this.requestNormalizeDelta&&(this.requestNormalizeDelta=!1,function(e){let t=e.root,n=0;for(;t!==cn;)t.left===cn||en(t.left)?t.right===cn||en(t.right)?(t.start=n+t.start,t.end=n+t.end,t.delta=0,wn(t),tn(t,!0),tn(t.left,!1),tn(t.right,!1),t===t.parent.right&&(n-=t.parent.delta),t=t.parent):(n+=t.delta,t=t.right):t=t.left;tn(e.root,!1)}(this))}}function un(e,t,n,i){return e<n||!(e>n)&&(1!==i&&(2===i||t))}function gn(e,t,n,i,r){const s=function(e){return(24&e.metadata)>>>3}(e),o=0===s||2===s,a=1===s||2===s,l=n-t,h=i,c=Math.min(l,h),d=e.start;let u=!1;const g=e.end;let f=!1;t<=d&&g<=n&&function(e){return(32&e.metadata)>>>5===1}(e)&&(e.start=t,u=!0,e.end=t,f=!0);{const e=r?1:l>0?2:0;!u&&un(d,o,t,e)&&(u=!0),!f&&un(g,a,t,e)&&(f=!0)}if(c>0&&!r){const e=l>h?2:0;!u&&un(d,o,t+c,e)&&(u=!0),!f&&un(g,a,t+c,e)&&(f=!0)}{const i=r?1:0;!u&&un(d,o,n,i)&&(e.start=t+h,u=!0),!f&&un(g,a,n,i)&&(e.end=t+h,f=!0)}const m=h-l;u||(e.start=Math.max(0,d+m)),f||(e.end=Math.max(0,g+m)),e.start>e.end&&(e.end=e.start)}function fn(e,t){if(e.root===cn)return t.parent=cn,t.left=cn,t.right=cn,Zt(t,0),e.root=t,e.root;!function(e,t){let n=0,i=e.root;const r=t.start,s=t.end;for(;;){if(yn(r,s,i.start+n,i.end+n)<0){if(i.left===cn){t.start-=n,t.end-=n,t.maxEnd-=n,i.left=t;break}i=i.left}else{if(i.right===cn){t.start-=n+i.delta,t.end-=n+i.delta,t.maxEnd-=n+i.delta,i.right=t;break}n+=i.delta,i=i.right}}t.parent=i,t.left=cn,t.right=cn,Zt(t,1)}(e,t),kn(t.parent);let n=t;for(;n!==e.root&&1===Jt(n.parent);)if(n.parent===n.parent.parent.left){const t=n.parent.parent.right;1===Jt(t)?(Zt(n.parent,0),Zt(t,0),Zt(n.parent.parent,1),n=n.parent.parent):(n===n.parent.right&&(n=n.parent,_n(e,n)),Zt(n.parent,0),Zt(n.parent.parent,1),bn(e,n.parent.parent))}else{const t=n.parent.parent.left;1===Jt(t)?(Zt(n.parent,0),Zt(t,0),Zt(n.parent.parent,1),n=n.parent.parent):(n===n.parent.left&&(n=n.parent,bn(e,n)),Zt(n.parent,0),Zt(n.parent.parent,1),_n(e,n.parent.parent))}return Zt(e.root,0),t}function mn(e,t){let n,i;if(t.left===cn?(n=t.right,i=t,n.delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta):t.right===cn?(n=t.left,i=t):(i=function(e){for(;e.left!==cn;)e=e.left;return e}(t.right),n=i.right,n.start+=i.delta,n.end+=i.delta,n.delta+=i.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),i.start+=t.delta,i.end+=t.delta,i.delta=t.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0)),i===e.root)return e.root=n,Zt(n,0),t.detach(),pn(),wn(n),void(e.root.parent=cn);const r=1===Jt(i);if(i===i.parent.left?i.parent.left=n:i.parent.right=n,i===t?n.parent=i.parent:(i.parent===t?n.parent=i:n.parent=i.parent,i.left=t.left,i.right=t.right,i.parent=t.parent,Zt(i,Jt(t)),t===e.root?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left!==cn&&(i.left.parent=i),i.right!==cn&&(i.right.parent=i)),t.detach(),r)return kn(n.parent),i!==t&&(kn(i),kn(i.parent)),void pn();let s;for(kn(n),kn(n.parent),i!==t&&(kn(i),kn(i.parent));n!==e.root&&0===Jt(n);)n===n.parent.left?(s=n.parent.right,1===Jt(s)&&(Zt(s,0),Zt(n.parent,1),_n(e,n.parent),s=n.parent.right),0===Jt(s.left)&&0===Jt(s.right)?(Zt(s,1),n=n.parent):(0===Jt(s.right)&&(Zt(s.left,0),Zt(s,1),bn(e,s),s=n.parent.right),Zt(s,Jt(n.parent)),Zt(n.parent,0),Zt(s.right,0),_n(e,n.parent),n=e.root)):(s=n.parent.left,1===Jt(s)&&(Zt(s,0),Zt(n.parent,1),bn(e,n.parent),s=n.parent.left),0===Jt(s.left)&&0===Jt(s.right)?(Zt(s,1),n=n.parent):(0===Jt(s.left)&&(Zt(s.right,0),Zt(s,1),_n(e,s),s=n.parent.left),Zt(s,Jt(n.parent)),Zt(n.parent,0),Zt(s.left,0),bn(e,n.parent),n=e.root));Zt(n,0),pn()}function pn(){cn.parent=cn,cn.delta=0,cn.start=0,cn.end=0}function _n(e,t){const n=t.right;n.delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta,t.right=n.left,n.left!==cn&&(n.left.parent=t),n.parent=t.parent,t.parent===cn?e.root=n:t===t.parent.left?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n,wn(t),wn(n)}function bn(e,t){const n=t.left;t.delta-=n.delta,(t.delta<-1073741824||t.delta>1073741824)&&(e.requestNormalizeDelta=!0),t.start-=n.delta,t.end-=n.delta,t.left=n.right,n.right!==cn&&(n.right.parent=t),n.parent=t.parent,t.parent===cn?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n,wn(t),wn(n)}function vn(e){let t=e.end;if(e.left!==cn){const n=e.left.maxEnd;n>t&&(t=n)}if(e.right!==cn){const n=e.right.maxEnd+e.delta;n>t&&(t=n)}return t}function wn(e){e.maxEnd=vn(e)}function kn(e){for(;e!==cn;){const t=vn(e);if(e.maxEnd===t)return;e.maxEnd=t,e=e.parent}}function yn(e,t,n,i){return e===n?t-i:e-n}class Tn{constructor(e,t){this.piece=e,this.color=t,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}next(){if(this.right!==Cn)return Sn(this.right);let e=this;for(;e.parent!==Cn&&e.parent.left!==e;)e=e.parent;return e.parent===Cn?Cn:e.parent}prev(){if(this.left!==Cn)return Ln(this.left);let e=this;for(;e.parent!==Cn&&e.parent.right!==e;)e=e.parent;return e.parent===Cn?Cn:e.parent}detach(){this.parent=null,this.left=null,this.right=null}}const Cn=new Tn(null,0);function Sn(e){for(;e.left!==Cn;)e=e.left;return e}function Ln(e){for(;e.right!==Cn;)e=e.right;return e}function xn(e){return e===Cn?0:e.size_left+e.piece.length+xn(e.right)}function En(e){return e===Cn?0:e.lf_left+e.piece.lineFeedCnt+En(e.right)}function An(){Cn.parent=Cn}function In(e,t){const n=t.right;n.size_left+=t.size_left+(t.piece?t.piece.length:0),n.lf_left+=t.lf_left+(t.piece?t.piece.lineFeedCnt:0),t.right=n.left,n.left!==Cn&&(n.left.parent=t),n.parent=t.parent,t.parent===Cn?e.root=n:t.parent.left===t?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n}function Mn(e,t){const n=t.left;t.left=n.right,n.right!==Cn&&(n.right.parent=t),n.parent=t.parent,t.size_left-=n.size_left+(n.piece?n.piece.length:0),t.lf_left-=n.lf_left+(n.piece?n.piece.lineFeedCnt:0),t.parent===Cn?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n}function Nn(e,t){let n,i;if(t.left===Cn?(i=t,n=i.right):t.right===Cn?(i=t,n=i.left):(i=Sn(t.right),n=i.right),i===e.root)return e.root=n,n.color=0,t.detach(),An(),void(e.root.parent=Cn);const r=1===i.color;if(i===i.parent.left?i.parent.left=n:i.parent.right=n,i===t?(n.parent=i.parent,On(e,n)):(i.parent===t?n.parent=i:n.parent=i.parent,On(e,n),i.left=t.left,i.right=t.right,i.parent=t.parent,i.color=t.color,t===e.root?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left!==Cn&&(i.left.parent=i),i.right!==Cn&&(i.right.parent=i),i.size_left=t.size_left,i.lf_left=t.lf_left,On(e,i)),t.detach(),n.parent.left===n){const t=xn(n),i=En(n);if(t!==n.parent.size_left||i!==n.parent.lf_left){const r=t-n.parent.size_left,s=i-n.parent.lf_left;n.parent.size_left=t,n.parent.lf_left=i,Dn(e,n.parent,r,s)}}if(On(e,n.parent),r)return void An();let s;for(;n!==e.root&&0===n.color;)n===n.parent.left?(s=n.parent.right,1===s.color&&(s.color=0,n.parent.color=1,In(e,n.parent),s=n.parent.right),0===s.left.color&&0===s.right.color?(s.color=1,n=n.parent):(0===s.right.color&&(s.left.color=0,s.color=1,Mn(e,s),s=n.parent.right),s.color=n.parent.color,n.parent.color=0,s.right.color=0,In(e,n.parent),n=e.root)):(s=n.parent.left,1===s.color&&(s.color=0,n.parent.color=1,Mn(e,n.parent),s=n.parent.left),0===s.left.color&&0===s.right.color?(s.color=1,n=n.parent):(0===s.left.color&&(s.right.color=0,s.color=1,In(e,s),s=n.parent.left),s.color=n.parent.color,n.parent.color=0,s.left.color=0,Mn(e,n.parent),n=e.root));n.color=0,An()}function Rn(e,t){for(On(e,t);t!==e.root&&1===t.parent.color;)if(t.parent===t.parent.parent.left){const n=t.parent.parent.right;1===n.color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.right&&In(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,Mn(e,t.parent.parent))}else{const n=t.parent.parent.left;1===n.color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.left&&Mn(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,In(e,t.parent.parent))}e.root.color=0}function Dn(e,t,n,i){for(;t!==e.root&&t!==Cn;)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=i),t=t.parent}function On(e,t){let n=0,i=0;if(t!==e.root){for(;t!==e.root&&t===t.parent.right;)t=t.parent;if(t!==e.root)for(n=xn((t=t.parent).left)-t.size_left,i=En(t.left)-t.lf_left,t.size_left+=n,t.lf_left+=i;t!==e.root&&(0!==n||0!==i);)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=i),t=t.parent}}Cn.parent=Cn,Cn.left=Cn,Cn.right=Cn,Cn.color=0;var Bn=n(7729);const zn=65535;function Pn(e){let t;return t=e[e.length-1]<65536?new Uint16Array(e.length):new Uint32Array(e.length),t.set(e,0),t}class Fn{constructor(e,t,n,i,r){this.lineStarts=e,this.cr=t,this.lf=n,this.crlf=i,this.isBasicASCII=r}}function Wn(e,t=!0){const n=[0];let i=1;for(let r=0,s=e.length;r<s;r++){const t=e.charCodeAt(r);13===t?r+1<s&&10===e.charCodeAt(r+1)?(n[i++]=r+2,r++):n[i++]=r+1:10===t&&(n[i++]=r+1)}return t?Pn(n):n}class Hn{constructor(e,t,n,i,r){this.bufferIndex=e,this.start=t,this.end=n,this.lineFeedCnt=i,this.length=r}}class Un{constructor(e,t){this.buffer=e,this.lineStarts=t}}class qn{constructor(e,t){this._pieces=[],this._tree=e,this._BOM=t,this._index=0,e.root!==Cn&&e.iterate(e.root,(e=>(e!==Cn&&this._pieces.push(e.piece),!0)))}read(){return 0===this._pieces.length?0===this._index?(this._index++,this._BOM):null:this._index>this._pieces.length-1?null:0===this._index?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])}}class Vn{constructor(e){this._limit=e,this._cache=[]}get(e){for(let t=this._cache.length-1;t>=0;t--){const n=this._cache[t];if(n.nodeStartOffset<=e&&n.nodeStartOffset+n.node.piece.length>=e)return n}return null}get2(e){for(let t=this._cache.length-1;t>=0;t--){const n=this._cache[t];if(n.nodeStartLineNumber&&n.nodeStartLineNumber<e&&n.nodeStartLineNumber+n.node.piece.lineFeedCnt>=e)return n}return null}set(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)}validate(e){let t=!1;const n=this._cache;for(let i=0;i<n.length;i++){const r=n[i];(null===r.node.parent||r.nodeStartOffset>=e)&&(n[i]=null,t=!0)}if(t){const e=[];for(const t of n)null!==t&&e.push(t);this._cache=e}}}class jn{constructor(e,t,n){this.create(e,t,n)}create(e,t,n){this._buffers=[new Un("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=Cn,this._lineCnt=1,this._length=0,this._EOL=t,this._EOLLength=t.length,this._EOLNormalized=n;let i=null;for(let r=0,s=e.length;r<s;r++)if(e[r].buffer.length>0){e[r].lineStarts||(e[r].lineStarts=Wn(e[r].buffer));const t=new Hn(r+1,{line:0,column:0},{line:e[r].lineStarts.length-1,column:e[r].buffer.length-e[r].lineStarts[e[r].lineStarts.length-1]},e[r].lineStarts.length-1,e[r].buffer.length);this._buffers.push(e[r]),i=this.rbInsertRight(i,t)}this._searchCache=new Vn(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()}normalizeEOL(e){const t=zn,n=t-Math.floor(21845),i=2*n;let r="",s=0;const o=[];if(this.iterate(this.root,(t=>{const a=this.getNodeContent(t),l=a.length;if(s<=n||s+l<i)return r+=a,s+=l,!0;const h=r.replace(/\r\n|\r|\n/g,e);return o.push(new Un(h,Wn(h))),r=a,s=l,!0})),s>0){const t=r.replace(/\r\n|\r|\n/g,e);o.push(new Un(t,Wn(t)))}this.create(o,e,!0)}getEOL(){return this._EOL}setEOL(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)}createSnapshot(e){return new qn(this,e)}getOffsetAt(e,t){let n=0,i=this.root;for(;i!==Cn;)if(i.left!==Cn&&i.lf_left+1>=e)i=i.left;else{if(i.lf_left+i.piece.lineFeedCnt+1>=e){n+=i.size_left;return n+(this.getAccumulatedValue(i,e-i.lf_left-2)+t-1)}e-=i.lf_left+i.piece.lineFeedCnt,n+=i.size_left+i.piece.length,i=i.right}return n}getPositionAt(e){e=Math.floor(e),e=Math.max(0,e);let t=this.root,n=0;const i=e;for(;t!==Cn;)if(0!==t.size_left&&t.size_left>=e)t=t.left;else{if(t.size_left+t.piece.length>=e){const r=this.getIndexOf(t,e-t.size_left);if(n+=t.lf_left+r.index,0===r.index){const e=i-this.getOffsetAt(n+1,1);return new f.y(n+1,e+1)}return new f.y(n+1,r.remainder+1)}if(e-=t.size_left+t.piece.length,n+=t.lf_left+t.piece.lineFeedCnt,t.right===Cn){const t=i-e-this.getOffsetAt(n+1,1);return new f.y(n+1,t+1)}t=t.right}return new f.y(1,1)}getValueInRange(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";const n=this.nodeAt2(e.startLineNumber,e.startColumn),i=this.nodeAt2(e.endLineNumber,e.endColumn),r=this.getValueInRange2(n,i);return t?t===this._EOL&&this._EOLNormalized&&t===this.getEOL()&&this._EOLNormalized?r:r.replace(/\r\n|\r|\n/g,t):r}getValueInRange2(e,t){if(e.node===t.node){const n=e.node,i=this._buffers[n.piece.bufferIndex].buffer,r=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return i.substring(r+e.remainder,r+t.remainder)}let n=e.node;const i=this._buffers[n.piece.bufferIndex].buffer,r=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);let s=i.substring(r+e.remainder,r+n.piece.length);for(n=n.next();n!==Cn;){const e=this._buffers[n.piece.bufferIndex].buffer,i=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);if(n===t.node){s+=e.substring(i,i+t.remainder);break}s+=e.substr(i,n.piece.length),n=n.next()}return s}getLinesContent(){const e=[];let t=0,n="",i=!1;return this.iterate(this.root,(r=>{if(r===Cn)return!0;const s=r.piece;let o=s.length;if(0===o)return!0;const a=this._buffers[s.bufferIndex].buffer,l=this._buffers[s.bufferIndex].lineStarts,h=s.start.line,c=s.end.line;let d=l[h]+s.start.column;if(i&&(10===a.charCodeAt(d)&&(d++,o--),e[t++]=n,n="",i=!1,0===o))return!0;if(h===c)return this._EOLNormalized||13!==a.charCodeAt(d+o-1)?n+=a.substr(d,o):(i=!0,n+=a.substr(d,o-1)),!0;n+=this._EOLNormalized?a.substring(d,Math.max(d,l[h+1]-this._EOLLength)):a.substring(d,l[h+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=n;for(let i=h+1;i<c;i++)n=this._EOLNormalized?a.substring(l[i],l[i+1]-this._EOLLength):a.substring(l[i],l[i+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=n;return this._EOLNormalized||13!==a.charCodeAt(l[c]+s.end.column-1)?n=a.substr(l[c],s.end.column):(i=!0,0===s.end.column?t--:n=a.substr(l[c],s.end.column-1)),!0})),i&&(e[t++]=n,n=""),e[t++]=n,e}getLength(){return this._length}getLineCount(){return this._lineCnt}getLineContent(e){return this._lastVisitedLine.lineNumber===e||(this._lastVisitedLine.lineNumber=e,e===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(e):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(e,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(e).replace(/(\r\n|\r|\n)$/,"")),this._lastVisitedLine.value}_getCharCode(e){if(e.remainder===e.node.piece.length){const t=e.node.next();if(!t)return 0;const n=this._buffers[t.piece.bufferIndex],i=this.offsetInBuffer(t.piece.bufferIndex,t.piece.start);return n.buffer.charCodeAt(i)}{const t=this._buffers[e.node.piece.bufferIndex],n=this.offsetInBuffer(e.node.piece.bufferIndex,e.node.piece.start)+e.remainder;return t.buffer.charCodeAt(n)}}getLineCharCode(e,t){const n=this.nodeAt2(e,t+1);return this._getCharCode(n)}getLineLength(e){if(e===this.getLineCount()){const t=this.getOffsetAt(e,1);return this.getLength()-t}return this.getOffsetAt(e+1,1)-this.getOffsetAt(e,1)-this._EOLLength}findMatchesInNode(e,t,n,i,r,s,o,a,l,h,c){const d=this._buffers[e.piece.bufferIndex],u=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start),g=this.offsetInBuffer(e.piece.bufferIndex,r),f=this.offsetInBuffer(e.piece.bufferIndex,s);let p;const _={line:0,column:0};let b,v;t._wordSeparators?(b=d.buffer.substring(g,f),v=e=>e+g,t.reset(0)):(b=d.buffer,v=e=>e,t.reset(g));do{if(p=t.next(b),p){if(v(p.index)>=f)return h;this.positionInBuffer(e,v(p.index)-u,_);const t=this.getLineFeedCnt(e.piece.bufferIndex,r,_),s=_.line===r.line?_.column-r.column+i:_.column+1,o=s+p[0].length;if(c[h++]=(0,Bn.dr)(new m.Q(n+t,s,n+t,o),p,a),v(p.index)+p[0].length>=f)return h;if(h>=l)return h}}while(p);return h}findMatchesLineByLine(e,t,n,i){const r=[];let s=0;const o=new Bn.W5(t.wordSeparators,t.regex);let a=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===a)return[];const l=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===l)return[];let h=this.positionInBuffer(a.node,a.remainder);const c=this.positionInBuffer(l.node,l.remainder);if(a.node===l.node)return this.findMatchesInNode(a.node,o,e.startLineNumber,e.startColumn,h,c,t,n,i,s,r),r;let d=e.startLineNumber,u=a.node;for(;u!==l.node;){const l=this.getLineFeedCnt(u.piece.bufferIndex,h,u.piece.end);if(l>=1){const a=this._buffers[u.piece.bufferIndex].lineStarts,c=this.offsetInBuffer(u.piece.bufferIndex,u.piece.start),g=a[h.line+l],f=d===e.startLineNumber?e.startColumn:1;if(s=this.findMatchesInNode(u,o,d,f,h,this.positionInBuffer(u,g-c),t,n,i,s,r),s>=i)return r;d+=l}const c=d===e.startLineNumber?e.startColumn-1:0;if(d===e.endLineNumber){const a=this.getLineContent(d).substring(c,e.endColumn-1);return s=this._findMatchesInLine(t,o,a,e.endLineNumber,c,s,r,n,i),r}if(s=this._findMatchesInLine(t,o,this.getLineContent(d).substr(c),d,c,s,r,n,i),s>=i)return r;d++,a=this.nodeAt2(d,1),u=a.node,h=this.positionInBuffer(a.node,a.remainder)}if(d===e.endLineNumber){const a=d===e.startLineNumber?e.startColumn-1:0,l=this.getLineContent(d).substring(a,e.endColumn-1);return s=this._findMatchesInLine(t,o,l,e.endLineNumber,a,s,r,n,i),r}const g=d===e.startLineNumber?e.startColumn:1;return s=this.findMatchesInNode(l.node,o,d,g,h,c,t,n,i,s,r),r}_findMatchesInLine(e,t,n,i,r,s,o,a,l){const h=e.wordSeparators;if(!a&&e.simpleSearch){const t=e.simpleSearch,a=t.length,c=n.length;let d=-a;for(;-1!==(d=n.indexOf(t,d+a));)if((!h||(0,Bn.wC)(h,n,c,d,a))&&(o[s++]=new me.Dg(new m.Q(i,d+1+r,i,d+1+a+r),null),s>=l))return s;return s}let c;t.reset(0);do{if(c=t.next(n),c&&(o[s++]=(0,Bn.dr)(new m.Q(i,c.index+1+r,i,c.index+1+c[0].length+r),c,a),s>=l))return s}while(c);return s}insert(e,t,n=!1){if(this._EOLNormalized=this._EOLNormalized&&n,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==Cn){const{node:n,remainder:i,nodeStartOffset:r}=this.nodeAt(e),s=n.piece,o=s.bufferIndex,a=this.positionInBuffer(n,i);if(0===n.piece.bufferIndex&&s.end.line===this._lastChangeBufferPos.line&&s.end.column===this._lastChangeBufferPos.column&&r+s.length===e&&t.length<zn)return this.appendToNode(n,t),void this.computeBufferMetadata();if(r===e)this.insertContentToNodeLeft(t,n),this._searchCache.validate(e);else if(r+n.piece.length>e){const e=[];let r=new Hn(s.bufferIndex,a,s.end,this.getLineFeedCnt(s.bufferIndex,a,s.end),this.offsetInBuffer(o,s.end)-this.offsetInBuffer(o,a));if(this.shouldCheckCRLF()&&this.endWithCR(t)){if(10===this.nodeCharCodeAt(n,i)){const e={line:r.start.line+1,column:0};r=new Hn(r.bufferIndex,e,r.end,this.getLineFeedCnt(r.bufferIndex,e,r.end),r.length-1),t+="\n"}}if(this.shouldCheckCRLF()&&this.startWithLF(t)){if(13===this.nodeCharCodeAt(n,i-1)){const r=this.positionInBuffer(n,i-1);this.deleteNodeTail(n,r),t="\r"+t,0===n.piece.length&&e.push(n)}else this.deleteNodeTail(n,a)}else this.deleteNodeTail(n,a);const l=this.createNewPieces(t);r.length>0&&this.rbInsertRight(n,r);let h=n;for(let t=0;t<l.length;t++)h=this.rbInsertRight(h,l[t]);this.deleteNodes(e)}else this.insertContentToNodeRight(t,n)}else{const e=this.createNewPieces(t);let n=this.rbInsertLeft(null,e[0]);for(let t=1;t<e.length;t++)n=this.rbInsertRight(n,e[t])}this.computeBufferMetadata()}delete(e,t){if(this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",t<=0||this.root===Cn)return;const n=this.nodeAt(e),i=this.nodeAt(e+t),r=n.node,s=i.node;if(r===s){const s=this.positionInBuffer(r,n.remainder),o=this.positionInBuffer(r,i.remainder);if(n.nodeStartOffset===e){if(t===r.piece.length){const e=r.next();return Nn(this,r),this.validateCRLFWithPrevNode(e),void this.computeBufferMetadata()}return this.deleteNodeHead(r,o),this._searchCache.validate(e),this.validateCRLFWithPrevNode(r),void this.computeBufferMetadata()}return n.nodeStartOffset+r.piece.length===e+t?(this.deleteNodeTail(r,s),this.validateCRLFWithNextNode(r),void this.computeBufferMetadata()):(this.shrinkNode(r,s,o),void this.computeBufferMetadata())}const o=[],a=this.positionInBuffer(r,n.remainder);this.deleteNodeTail(r,a),this._searchCache.validate(e),0===r.piece.length&&o.push(r);const l=this.positionInBuffer(s,i.remainder);this.deleteNodeHead(s,l),0===s.piece.length&&o.push(s);for(let c=r.next();c!==Cn&&c!==s;c=c.next())o.push(c);const h=0===r.piece.length?r.prev():r;this.deleteNodes(o),this.validateCRLFWithNextNode(h),this.computeBufferMetadata()}insertContentToNodeLeft(e,t){const n=[];if(this.shouldCheckCRLF()&&this.endWithCR(e)&&this.startWithLF(t)){const i=t.piece,r={line:i.start.line+1,column:0},s=new Hn(i.bufferIndex,r,i.end,this.getLineFeedCnt(i.bufferIndex,r,i.end),i.length-1);t.piece=s,e+="\n",Dn(this,t,-1,-1),0===t.piece.length&&n.push(t)}const i=this.createNewPieces(e);let r=this.rbInsertLeft(t,i[i.length-1]);for(let s=i.length-2;s>=0;s--)r=this.rbInsertLeft(r,i[s]);this.validateCRLFWithPrevNode(r),this.deleteNodes(n)}insertContentToNodeRight(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+="\n");const n=this.createNewPieces(e),i=this.rbInsertRight(t,n[0]);let r=i;for(let s=1;s<n.length;s++)r=this.rbInsertRight(r,n[s]);this.validateCRLFWithPrevNode(i)}positionInBuffer(e,t,n){const i=e.piece,r=e.piece.bufferIndex,s=this._buffers[r].lineStarts,o=s[i.start.line]+i.start.column+t;let a=i.start.line,l=i.end.line,h=0,c=0,d=0;for(;a<=l&&(h=a+(l-a)/2|0,d=s[h],h!==l);)if(c=s[h+1],o<d)l=h-1;else{if(!(o>=c))break;a=h+1}return n?(n.line=h,n.column=o-d,null):{line:h,column:o-d}}getLineFeedCnt(e,t,n){if(0===n.column)return n.line-t.line;const i=this._buffers[e].lineStarts;if(n.line===i.length-1)return n.line-t.line;const r=i[n.line+1],s=i[n.line]+n.column;if(r>s+1)return n.line-t.line;const o=s-1;return 13===this._buffers[e].buffer.charCodeAt(o)?n.line-t.line+1:n.line-t.line}offsetInBuffer(e,t){return this._buffers[e].lineStarts[t.line]+t.column}deleteNodes(e){for(let t=0;t<e.length;t++)Nn(this,e[t])}createNewPieces(e){if(e.length>zn){const t=[];for(;e.length>zn;){const n=e.charCodeAt(65534);let i;13===n||n>=55296&&n<=56319?(i=e.substring(0,65534),e=e.substring(65534)):(i=e.substring(0,zn),e=e.substring(zn));const r=Wn(i);t.push(new Hn(this._buffers.length,{line:0,column:0},{line:r.length-1,column:i.length-r[r.length-1]},r.length-1,i.length)),this._buffers.push(new Un(i,r))}const n=Wn(e);return t.push(new Hn(this._buffers.length,{line:0,column:0},{line:n.length-1,column:e.length-n[n.length-1]},n.length-1,e.length)),this._buffers.push(new Un(e,n)),t}let t=this._buffers[0].buffer.length;const n=Wn(e,!1);let i=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===t&&0!==t&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},i=this._lastChangeBufferPos;for(let e=0;e<n.length;e++)n[e]+=t+1;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(n.slice(1)),this._buffers[0].buffer+="_"+e,t+=1}else{if(0!==t)for(let e=0;e<n.length;e++)n[e]+=t;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(n.slice(1)),this._buffers[0].buffer+=e}const r=this._buffers[0].buffer.length,s=this._buffers[0].lineStarts.length-1,o={line:s,column:r-this._buffers[0].lineStarts[s]},a=new Hn(0,i,o,this.getLineFeedCnt(0,i,o),r-t);return this._lastChangeBufferPos=o,[a]}getLineRawContent(e,t=0){let n=this.root,i="";const r=this._searchCache.get2(e);if(r){n=r.node;const s=this.getAccumulatedValue(n,e-r.nodeStartLineNumber-1),o=this._buffers[n.piece.bufferIndex].buffer,a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);if(r.nodeStartLineNumber+n.piece.lineFeedCnt!==e){const i=this.getAccumulatedValue(n,e-r.nodeStartLineNumber);return o.substring(a+s,a+i-t)}i=o.substring(a+s,a+n.piece.length)}else{let r=0;const s=e;for(;n!==Cn;)if(n.left!==Cn&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){const i=this.getAccumulatedValue(n,e-n.lf_left-2),o=this.getAccumulatedValue(n,e-n.lf_left-1),a=this._buffers[n.piece.bufferIndex].buffer,l=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return r+=n.size_left,this._searchCache.set({node:n,nodeStartOffset:r,nodeStartLineNumber:s-(e-1-n.lf_left)}),a.substring(l+i,l+o-t)}if(n.lf_left+n.piece.lineFeedCnt===e-1){const t=this.getAccumulatedValue(n,e-n.lf_left-2),r=this._buffers[n.piece.bufferIndex].buffer,s=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);i=r.substring(s+t,s+n.piece.length);break}e-=n.lf_left+n.piece.lineFeedCnt,r+=n.size_left+n.piece.length,n=n.right}}for(n=n.next();n!==Cn;){const e=this._buffers[n.piece.bufferIndex].buffer;if(n.piece.lineFeedCnt>0){const r=this.getAccumulatedValue(n,0),s=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return i+=e.substring(s,s+r-t),i}{const t=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);i+=e.substr(t,n.piece.length)}n=n.next()}return i}computeBufferMetadata(){let e=this.root,t=1,n=0;for(;e!==Cn;)t+=e.lf_left+e.piece.lineFeedCnt,n+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=n,this._searchCache.validate(this._length)}getIndexOf(e,t){const n=e.piece,i=this.positionInBuffer(e,t),r=i.line-n.start.line;if(this.offsetInBuffer(n.bufferIndex,n.end)-this.offsetInBuffer(n.bufferIndex,n.start)===t){const t=this.getLineFeedCnt(e.piece.bufferIndex,n.start,i);if(t!==r)return{index:t,remainder:0}}return{index:r,remainder:i.column}}getAccumulatedValue(e,t){if(t<0)return 0;const n=e.piece,i=this._buffers[n.bufferIndex].lineStarts,r=n.start.line+t+1;return r>n.end.line?i[n.end.line]+n.end.column-i[n.start.line]-n.start.column:i[r]-i[n.start.line]-n.start.column}deleteNodeTail(e,t){const n=e.piece,i=n.lineFeedCnt,r=this.offsetInBuffer(n.bufferIndex,n.end),s=t,o=this.offsetInBuffer(n.bufferIndex,s),a=this.getLineFeedCnt(n.bufferIndex,n.start,s),l=a-i,h=o-r,c=n.length+h;e.piece=new Hn(n.bufferIndex,n.start,s,a,c),Dn(this,e,h,l)}deleteNodeHead(e,t){const n=e.piece,i=n.lineFeedCnt,r=this.offsetInBuffer(n.bufferIndex,n.start),s=t,o=this.getLineFeedCnt(n.bufferIndex,s,n.end),a=o-i,l=r-this.offsetInBuffer(n.bufferIndex,s),h=n.length+l;e.piece=new Hn(n.bufferIndex,s,n.end,o,h),Dn(this,e,l,a)}shrinkNode(e,t,n){const i=e.piece,r=i.start,s=i.end,o=i.length,a=i.lineFeedCnt,l=t,h=this.getLineFeedCnt(i.bufferIndex,i.start,l),c=this.offsetInBuffer(i.bufferIndex,t)-this.offsetInBuffer(i.bufferIndex,r);e.piece=new Hn(i.bufferIndex,i.start,l,h,c),Dn(this,e,c-o,h-a);const d=new Hn(i.bufferIndex,n,s,this.getLineFeedCnt(i.bufferIndex,n,s),this.offsetInBuffer(i.bufferIndex,s)-this.offsetInBuffer(i.bufferIndex,n)),u=this.rbInsertRight(e,d);this.validateCRLFWithPrevNode(u)}appendToNode(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+="\n");const n=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),i=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;const r=Wn(t,!1);for(let d=0;d<r.length;d++)r[d]+=i;if(n){const e=this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-2];this._buffers[0].lineStarts.pop(),this._lastChangeBufferPos={line:this._lastChangeBufferPos.line-1,column:i-e}}this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(r.slice(1));const s=this._buffers[0].lineStarts.length-1,o={line:s,column:this._buffers[0].buffer.length-this._buffers[0].lineStarts[s]},a=e.piece.length+t.length,l=e.piece.lineFeedCnt,h=this.getLineFeedCnt(0,e.piece.start,o),c=h-l;e.piece=new Hn(e.piece.bufferIndex,e.piece.start,o,h,a),this._lastChangeBufferPos=o,Dn(this,e,t.length,c)}nodeAt(e){let t=this.root;const n=this._searchCache.get(e);if(n)return{node:n.node,nodeStartOffset:n.nodeStartOffset,remainder:e-n.nodeStartOffset};let i=0;for(;t!==Cn;)if(t.size_left>e)t=t.left;else{if(t.size_left+t.piece.length>=e){i+=t.size_left;const n={node:t,remainder:e-t.size_left,nodeStartOffset:i};return this._searchCache.set(n),n}e-=t.size_left+t.piece.length,i+=t.size_left+t.piece.length,t=t.right}return null}nodeAt2(e,t){let n=this.root,i=0;for(;n!==Cn;)if(n.left!==Cn&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){const r=this.getAccumulatedValue(n,e-n.lf_left-2),s=this.getAccumulatedValue(n,e-n.lf_left-1);return i+=n.size_left,{node:n,remainder:Math.min(r+t-1,s),nodeStartOffset:i}}if(n.lf_left+n.piece.lineFeedCnt===e-1){const r=this.getAccumulatedValue(n,e-n.lf_left-2);if(r+t-1<=n.piece.length)return{node:n,remainder:r+t-1,nodeStartOffset:i};t-=n.piece.length-r;break}e-=n.lf_left+n.piece.lineFeedCnt,i+=n.size_left+n.piece.length,n=n.right}for(n=n.next();n!==Cn;){if(n.piece.lineFeedCnt>0){const e=this.getAccumulatedValue(n,0),i=this.offsetOfNode(n);return{node:n,remainder:Math.min(t-1,e),nodeStartOffset:i}}if(n.piece.length>=t-1){return{node:n,remainder:t-1,nodeStartOffset:this.offsetOfNode(n)}}t-=n.piece.length,n=n.next()}return null}nodeCharCodeAt(e,t){if(e.piece.lineFeedCnt<1)return-1;const n=this._buffers[e.piece.bufferIndex],i=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return n.buffer.charCodeAt(i)}offsetOfNode(e){if(!e)return 0;let t=e.size_left;for(;e!==this.root;)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t}shouldCheckCRLF(){return!(this._EOLNormalized&&"\n"===this._EOL)}startWithLF(e){if("string"===typeof e)return 10===e.charCodeAt(0);if(e===Cn||0===e.piece.lineFeedCnt)return!1;const t=e.piece,n=this._buffers[t.bufferIndex].lineStarts,i=t.start.line,r=n[i]+t.start.column;if(i===n.length-1)return!1;return!(n[i+1]>r+1)&&10===this._buffers[t.bufferIndex].buffer.charCodeAt(r)}endWithCR(e){return"string"===typeof e?13===e.charCodeAt(e.length-1):e!==Cn&&0!==e.piece.lineFeedCnt&&13===this.nodeCharCodeAt(e,e.piece.length-1)}validateCRLFWithPrevNode(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){const t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}}validateCRLFWithNextNode(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}}fixCRLF(e,t){const n=[],i=this._buffers[e.piece.bufferIndex].lineStarts;let r;r=0===e.piece.end.column?{line:e.piece.end.line-1,column:i[e.piece.end.line]-i[e.piece.end.line-1]-1}:{line:e.piece.end.line,column:e.piece.end.column-1};const s=e.piece.length-1,o=e.piece.lineFeedCnt-1;e.piece=new Hn(e.piece.bufferIndex,e.piece.start,r,o,s),Dn(this,e,-1,-1),0===e.piece.length&&n.push(e);const a={line:t.piece.start.line+1,column:0},l=t.piece.length-1,h=this.getLineFeedCnt(t.piece.bufferIndex,a,t.piece.end);t.piece=new Hn(t.piece.bufferIndex,a,t.piece.end,h,l),Dn(this,t,-1,-1),0===t.piece.length&&n.push(t);const c=this.createNewPieces("\r\n");this.rbInsertRight(e,c[0]);for(let d=0;d<n.length;d++)Nn(this,n[d])}adjustCarriageReturnFromNext(e,t){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const n=t.next();if(this.startWithLF(n)){if(e+="\n",1===n.piece.length)Nn(this,n);else{const e=n.piece,t={line:e.start.line+1,column:0},i=e.length-1,r=this.getLineFeedCnt(e.bufferIndex,t,e.end);n.piece=new Hn(e.bufferIndex,t,e.end,r,i),Dn(this,n,-1,-1)}return!0}}return!1}iterate(e,t){if(e===Cn)return t(Cn);const n=this.iterate(e.left,t);return n?t(e)&&this.iterate(e.right,t):n}getNodeContent(e){if(e===Cn)return"";const t=this._buffers[e.piece.bufferIndex],n=e.piece,i=this.offsetInBuffer(n.bufferIndex,n.start),r=this.offsetInBuffer(n.bufferIndex,n.end);return t.buffer.substring(i,r)}getPieceContent(e){const t=this._buffers[e.bufferIndex],n=this.offsetInBuffer(e.bufferIndex,e.start),i=this.offsetInBuffer(e.bufferIndex,e.end);return t.buffer.substring(n,i)}rbInsertRight(e,t){const n=new Tn(t,1);n.left=Cn,n.right=Cn,n.parent=Cn,n.size_left=0,n.lf_left=0;if(this.root===Cn)this.root=n,n.color=0;else if(e.right===Cn)e.right=n,n.parent=e;else{const t=Sn(e.right);t.left=n,n.parent=t}return Rn(this,n),n}rbInsertLeft(e,t){const n=new Tn(t,1);if(n.left=Cn,n.right=Cn,n.parent=Cn,n.size_left=0,n.lf_left=0,this.root===Cn)this.root=n,n.color=0;else if(e.left===Cn)e.left=n,n.parent=e;else{const t=Ln(e.left);t.right=n,n.parent=t}return Rn(this,n),n}}class Gn extends r.jG{constructor(e,t,n,r,s,o,a){super(),this._onDidChangeContent=this._register(new i.vl),this._BOM=t,this._mightContainNonBasicASCII=!o,this._mightContainRTL=r,this._mightContainUnusualLineTerminators=s,this._pieceTree=new jn(e,n,a)}mightContainRTL(){return this._mightContainRTL}mightContainUnusualLineTerminators(){return this._mightContainUnusualLineTerminators}resetMightContainUnusualLineTerminators(){this._mightContainUnusualLineTerminators=!1}mightContainNonBasicASCII(){return this._mightContainNonBasicASCII}getBOM(){return this._BOM}getEOL(){return this._pieceTree.getEOL()}createSnapshot(e){return this._pieceTree.createSnapshot(e?this._BOM:"")}getOffsetAt(e,t){return this._pieceTree.getOffsetAt(e,t)}getPositionAt(e){return this._pieceTree.getPositionAt(e)}getRangeAt(e,t){const n=e+t,i=this.getPositionAt(e),r=this.getPositionAt(n);return new m.Q(i.lineNumber,i.column,r.lineNumber,r.column)}getValueInRange(e,t=0){if(e.isEmpty())return"";const n=this._getEndOfLine(t);return this._pieceTree.getValueInRange(e,n)}getValueLengthInRange(e,t=0){if(e.isEmpty())return 0;if(e.startLineNumber===e.endLineNumber)return e.endColumn-e.startColumn;const n=this.getOffsetAt(e.startLineNumber,e.startColumn),i=this.getOffsetAt(e.endLineNumber,e.endColumn);let r=0;const s=this._getEndOfLine(t),o=this.getEOL();if(s.length!==o.length){r=(s.length-o.length)*(e.endLineNumber-e.startLineNumber)}return i-n+r}getCharacterCountInRange(e,t=0){if(this._mightContainNonBasicASCII){let n=0;const i=e.startLineNumber,r=e.endLineNumber;for(let t=i;t<=r;t++){const s=this.getLineContent(t),o=t===i?e.startColumn-1:0,a=t===r?e.endColumn-1:s.length;for(let e=o;e<a;e++)h.pc(s.charCodeAt(e))?(n+=1,e+=1):n+=1}return n+=this._getEndOfLine(t).length*(r-i),n}return this.getValueLengthInRange(e,t)}getLength(){return this._pieceTree.getLength()}getLineCount(){return this._pieceTree.getLineCount()}getLinesContent(){return this._pieceTree.getLinesContent()}getLineContent(e){return this._pieceTree.getLineContent(e)}getLineCharCode(e,t){return this._pieceTree.getLineCharCode(e,t)}getLineLength(e){return this._pieceTree.getLineLength(e)}getLineFirstNonWhitespaceColumn(e){const t=h.HG(this.getLineContent(e));return-1===t?0:t+1}getLineLastNonWhitespaceColumn(e){const t=h.lT(this.getLineContent(e));return-1===t?0:t+2}_getEndOfLine(e){switch(e){case 1:return"\n";case 2:return"\r\n";case 0:return this.getEOL();default:throw new Error("Unknown EOL preference")}}setEOL(e){this._pieceTree.setEOL(e)}applyEdits(e,t,n){let i=this._mightContainRTL,r=this._mightContainUnusualLineTerminators,s=this._mightContainNonBasicASCII,o=!0,a=[];for(let p=0;p<e.length;p++){const t=e[p];o&&t._isTracked&&(o=!1);const n=t.range;if(t.text){let e=!0;s||(e=!h.aC(t.text),s=e),!i&&e&&(i=h.E_(t.text)),!r&&e&&(r=h.$X(t.text))}let l="",c=0,u=0,g=0;if(t.text){let e;[c,u,g,e]=(0,d.W)(t.text);const n=this.getEOL();l=0===e||e===("\r\n"===n?2:1)?t.text:t.text.replace(/\r\n|\r|\n/g,n)}a[p]={sortIndex:p,identifier:t.identifier||null,range:n,rangeOffset:this.getOffsetAt(n.startLineNumber,n.startColumn),rangeLength:this.getValueLengthInRange(n),text:l,eolCount:c,firstLineLength:u,lastLineLength:g,forceMoveMarkers:Boolean(t.forceMoveMarkers),isAutoWhitespaceEdit:t.isAutoWhitespaceEdit||!1}}a.sort(Gn._sortOpsAscending);let l=!1;for(let h=0,d=a.length-1;h<d;h++){const e=a[h].range.getEndPosition(),t=a[h+1].range.getStartPosition();if(t.isBeforeOrEqual(e)){if(t.isBefore(e))throw new Error("Overlapping ranges are not allowed!");l=!0}}o&&(a=this._reduceOperations(a));const c=n||t?Gn._getInverseEditRanges(a):[],u=[];if(t)for(let d=0;d<a.length;d++){const e=a[d],t=c[d];if(e.isAutoWhitespaceEdit&&e.range.isEmpty())for(let n=t.startLineNumber;n<=t.endLineNumber;n++){let i="";n===t.startLineNumber&&(i=this.getLineContent(e.range.startLineNumber),-1!==h.HG(i))||u.push({lineNumber:n,oldContent:i})}}let g=null;if(n){let e=0;g=[];for(let t=0;t<a.length;t++){const n=a[t],i=c[t],r=this.getValueInRange(n.range),s=n.rangeOffset+e;e+=n.text.length-r.length,g[t]={sortIndex:n.sortIndex,identifier:n.identifier,range:i,text:r,textChange:new Nt(n.rangeOffset,r,s,n.text)}}l||g.sort(((e,t)=>e.sortIndex-t.sortIndex))}this._mightContainRTL=i,this._mightContainUnusualLineTerminators=r,this._mightContainNonBasicASCII=s;const f=this._doApplyEdits(a);let m=null;if(t&&u.length>0){u.sort(((e,t)=>t.lineNumber-e.lineNumber)),m=[];for(let e=0,t=u.length;e<t;e++){const t=u[e].lineNumber;if(e>0&&u[e-1].lineNumber===t)continue;const n=u[e].oldContent,i=this.getLineContent(t);0!==i.length&&i!==n&&-1===h.HG(i)&&m.push(t)}}return this._onDidChangeContent.fire(),new me.F4(g,f,m)}_reduceOperations(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]}_toSingleEditOperation(e){let t=!1;const n=e[0].range,i=e[e.length-1].range,r=new m.Q(n.startLineNumber,n.startColumn,i.endLineNumber,i.endColumn);let s=n.startLineNumber,o=n.startColumn;const a=[];for(let d=0,g=e.length;d<g;d++){const n=e[d],i=n.range;t=t||n.forceMoveMarkers,a.push(this.getValueInRange(new m.Q(s,o,i.startLineNumber,i.startColumn))),n.text.length>0&&a.push(n.text),s=i.endLineNumber,o=i.endColumn}const l=a.join(""),[h,c,u]=(0,d.W)(l);return{sortIndex:0,identifier:e[0].identifier,range:r,rangeOffset:this.getOffsetAt(r.startLineNumber,r.startColumn),rangeLength:this.getValueLengthInRange(r,0),text:l,eolCount:h,firstLineLength:c,lastLineLength:u,forceMoveMarkers:t,isAutoWhitespaceEdit:!1}}_doApplyEdits(e){e.sort(Gn._sortOpsDescending);const t=[];for(let n=0;n<e.length;n++){const i=e[n],r=i.range.startLineNumber,s=i.range.startColumn,o=i.range.endLineNumber,a=i.range.endColumn;if(r===o&&s===a&&0===i.text.length)continue;i.text?(this._pieceTree.delete(i.rangeOffset,i.rangeLength),this._pieceTree.insert(i.rangeOffset,i.text,!0)):this._pieceTree.delete(i.rangeOffset,i.rangeLength);const l=new m.Q(r,s,o,a);t.push({range:l,rangeLength:i.rangeLength,text:i.text,rangeOffset:i.rangeOffset,forceMoveMarkers:i.forceMoveMarkers})}return t}findMatchesLineByLine(e,t,n,i){return this._pieceTree.findMatchesLineByLine(e,t,n,i)}static _getInverseEditRanges(e){const t=[];let n=0,i=0,r=null;for(let s=0,o=e.length;s<o;s++){const o=e[s];let a,l,h;if(r?r.range.endLineNumber===o.range.startLineNumber?(a=n,l=i+(o.range.startColumn-r.range.endColumn)):(a=n+(o.range.startLineNumber-r.range.endLineNumber),l=o.range.startColumn):(a=o.range.startLineNumber,l=o.range.startColumn),o.text.length>0){const e=o.eolCount+1;h=1===e?new m.Q(a,l,a,l+o.firstLineLength):new m.Q(a,l,a+e-1,o.lastLineLength+1)}else h=new m.Q(a,l,a,l);n=h.endLineNumber,i=h.endColumn,t.push(h),r=o}return t}static _sortOpsAscending(e,t){const n=m.Q.compareRangesUsingEnds(e.range,t.range);return 0===n?e.sortIndex-t.sortIndex:n}static _sortOpsDescending(e,t){const n=m.Q.compareRangesUsingEnds(e.range,t.range);return 0===n?t.sortIndex-e.sortIndex:-n}}class Kn{constructor(e,t,n,i,r,s,o,a,l){this._chunks=e,this._bom=t,this._cr=n,this._lf=i,this._crlf=r,this._containsRTL=s,this._containsUnusualLineTerminators=o,this._isBasicASCII=a,this._normalizeEOL=l}_getEOL(e){const t=this._cr+this._lf+this._crlf,n=this._cr+this._crlf;return 0===t?1===e?"\n":"\r\n":n>t/2?"\r\n":"\n"}create(e){const t=this._getEOL(e),n=this._chunks;if(this._normalizeEOL&&("\r\n"===t&&(this._cr>0||this._lf>0)||"\n"===t&&(this._cr>0||this._crlf>0)))for(let r=0,s=n.length;r<s;r++){const e=n[r].buffer.replace(/\r\n|\r|\n/g,t),i=Wn(e);n[r]=new Un(e,i)}const i=new Gn(n,this._bom,t,this._containsRTL,this._containsUnusualLineTerminators,this._isBasicASCII,this._normalizeEOL);return{textBuffer:i,disposable:i}}}class $n{constructor(){this.chunks=[],this.BOM="",this._hasPreviousChar=!1,this._previousChar=0,this._tmpLineStarts=[],this.cr=0,this.lf=0,this.crlf=0,this.containsRTL=!1,this.containsUnusualLineTerminators=!1,this.isBasicASCII=!0}acceptChunk(e){if(0===e.length)return;0===this.chunks.length&&h.LU(e)&&(this.BOM=h.r_,e=e.substr(1));const t=e.charCodeAt(e.length-1);13===t||t>=55296&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0,this._previousChar=t):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1,this._previousChar=t)}_acceptChunk1(e,t){(t||0!==e.length)&&(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))}_acceptChunk2(e){const t=function(e,t){e.length=0,e[0]=0;let n=1,i=0,r=0,s=0,o=!0;for(let l=0,h=t.length;l<h;l++){const a=t.charCodeAt(l);13===a?l+1<h&&10===t.charCodeAt(l+1)?(s++,e[n++]=l+2,l++):(i++,e[n++]=l+1):10===a?(r++,e[n++]=l+1):o&&9!==a&&(a<32||a>126)&&(o=!1)}const a=new Fn(Pn(e),i,r,s,o);return e.length=0,a}(this._tmpLineStarts,e);this.chunks.push(new Un(e,t.lineStarts)),this.cr+=t.cr,this.lf+=t.lf,this.crlf+=t.crlf,t.isBasicASCII||(this.isBasicASCII=!1,this.containsRTL||(this.containsRTL=h.E_(e)),this.containsUnusualLineTerminators||(this.containsUnusualLineTerminators=h.$X(e)))}finish(e=!0){return this._finish(),new Kn(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,e)}_finish(){if(0===this.chunks.length&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;const e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);const t=Wn(e.buffer);e.lineStarts=t,13===this._previousChar&&this.cr++}}}var Qn=n(6571),Yn=n(2083),Xn=n(1940),Jn=n(8381),Zn=n(4444);const ei=new class{clone(){return this}equals(e){return this===e}};class ti{constructor(e){this._default=e,this._store=[]}get(e){return e<this._store.length?this._store[e]:this._default}set(e,t){for(;e>=this._store.length;)this._store[this._store.length]=this._default;this._store[e]=t}replace(e,t,n){if(e>=this._store.length)return;if(0===t)return void this.insert(e,n);if(0===n)return void this.delete(e,t);const i=this._store.slice(0,e),r=this._store.slice(e+t),s=function(e,t){const n=[];for(let i=0;i<e;i++)n[i]=t;return n}(n,this._default);this._store=i.concat(s,r)}delete(e,t){0===t||e>=this._store.length||this._store.splice(e,t)}insert(e,t){if(0===t||e>=this._store.length)return;const n=[];for(let i=0;i<t;i++)n[i]=this._default;this._store=(0,o.nK)(this._store,e,n)}}class ni{get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._startLineNumber+this._tokens.length-1}constructor(e,t){this._startLineNumber=e,this._tokens=t}getLineTokens(e){return this._tokens[e-this._startLineNumber]}appendLineTokens(e){this._tokens.push(e)}}class ii{constructor(){this._tokens=[]}add(e,t){if(this._tokens.length>0){const n=this._tokens[this._tokens.length-1];if(n.endLineNumber+1===e)return void n.appendLineTokens(t)}this._tokens.push(new ni(e,[t]))}finalize(){return this._tokens}}class ri{static{this.defaultTokenMetadata=33587200}static createEmpty(e,t){const n=ri.defaultTokenMetadata,i=new Uint32Array(2);return i[0]=e.length,i[1]=n,new ri(i,e,t)}static createFromTextAndMetadata(e,t){let n=0,i="";const r=new Array;for(const{text:s,metadata:o}of e)r.push(n+s.length,o),n+=s.length,i+=s;return new ri(new Uint32Array(r),i,t)}constructor(e,t,n){this._lineTokensBrand=void 0,this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t,this.languageIdCodec=n}equals(e){return e instanceof ri&&this.slicedEquals(e,0,this._tokensCount)}slicedEquals(e,t,n){if(this._text!==e._text)return!1;if(this._tokensCount!==e._tokensCount)return!1;const i=t<<1,r=i+(n<<1);for(let s=i;s<r;s++)if(this._tokens[s]!==e._tokens[s])return!1;return!0}getLineContent(){return this._text}getCount(){return this._tokensCount}getStartOffset(e){return e>0?this._tokens[e-1<<1]:0}getMetadata(e){return this._tokens[1+(e<<1)]}getLanguageId(e){const t=this._tokens[1+(e<<1)],n=Je.x.getLanguageId(t);return this.languageIdCodec.decodeLanguageId(n)}getStandardTokenType(e){const t=this._tokens[1+(e<<1)];return Je.x.getTokenType(t)}getForeground(e){const t=this._tokens[1+(e<<1)];return Je.x.getForeground(t)}getClassName(e){const t=this._tokens[1+(e<<1)];return Je.x.getClassNameFromMetadata(t)}getInlineStyle(e,t){const n=this._tokens[1+(e<<1)];return Je.x.getInlineStyleFromMetadata(n,t)}getPresentation(e){const t=this._tokens[1+(e<<1)];return Je.x.getPresentationFromMetadata(t)}getEndOffset(e){return this._tokens[e<<1]}findTokenIndexAtOffset(e){return ri.findIndexInTokensArray(this._tokens,e)}inflate(){return this}sliceAndInflate(e,t,n){return new si(this,e,t,n)}static convertToEndOffset(e,t){const n=(e.length>>>1)-1;for(let i=0;i<n;i++)e[i<<1]=e[i+1<<1];e[n<<1]=t}static findIndexInTokensArray(e,t){if(e.length<=2)return 0;let n=0,i=(e.length>>>1)-1;for(;n<i;){const r=n+Math.floor((i-n)/2),s=e[r<<1];if(s===t)return r+1;s<t?n=r+1:s>t&&(i=r)}return n}withInserted(e){if(0===e.length)return this;let t=0,n=0,i="";const r=new Array;let s=0;for(;;){const o=t<this._tokensCount?this._tokens[t<<1]:-1,a=n<e.length?e[n]:null;if(-1!==o&&(null===a||o<=a.offset)){i+=this._text.substring(s,o);const e=this._tokens[1+(t<<1)];r.push(i.length,e),t++,s=o}else{if(!a)break;if(a.offset>s){i+=this._text.substring(s,a.offset);const e=this._tokens[1+(t<<1)];r.push(i.length,e),s=a.offset}i+=a.text,r.push(i.length,a.tokenMetadata),n++}}return new ri(new Uint32Array(r),i,this.languageIdCodec)}getTokenText(e){const t=this.getStartOffset(e),n=this.getEndOffset(e);return this._text.substring(t,n)}forEach(e){const t=this.getCount();for(let n=0;n<t;n++)e(n)}}class si{constructor(e,t,n,i){this._source=e,this._startOffset=t,this._endOffset=n,this._deltaOffset=i,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this.languageIdCodec=e.languageIdCodec,this._tokensCount=0;for(let r=this._firstTokenIndex,s=e.getCount();r<s;r++){if(e.getStartOffset(r)>=n)break;this._tokensCount++}}getMetadata(e){return this._source.getMetadata(this._firstTokenIndex+e)}getLanguageId(e){return this._source.getLanguageId(this._firstTokenIndex+e)}getLineContent(){return this._source.getLineContent().substring(this._startOffset,this._endOffset)}equals(e){return e instanceof si&&(this._startOffset===e._startOffset&&this._endOffset===e._endOffset&&this._deltaOffset===e._deltaOffset&&this._source.slicedEquals(e._source,this._firstTokenIndex,this._tokensCount))}getCount(){return this._tokensCount}getStandardTokenType(e){return this._source.getStandardTokenType(this._firstTokenIndex+e)}getForeground(e){return this._source.getForeground(this._firstTokenIndex+e)}getEndOffset(e){const t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset}getClassName(e){return this._source.getClassName(this._firstTokenIndex+e)}getInlineStyle(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)}getPresentation(e){return this._source.getPresentation(this._firstTokenIndex+e)}findTokenIndexAtOffset(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex}getTokenText(e){const t=this._firstTokenIndex+e,n=this._source.getStartOffset(t),i=this._source.getEndOffset(t);let r=this._source.getTokenText(t);return n<this._startOffset&&(r=r.substring(this._startOffset-n)),i>this._endOffset&&(r=r.substring(0,r.length-(i-this._endOffset))),r}forEach(e){for(let t=0;t<this.getCount();t++)e(t)}}class oi{constructor(e,t){this.tokenizationSupport=t,this.initialState=this.tokenizationSupport.getInitialState(),this.store=new li(e)}getStartState(e){return this.store.getStartState(e,this.initialState)}getFirstInvalidLine(){return this.store.getFirstInvalidLine(this.initialState)}}class ai extends oi{constructor(e,t,n,i){super(e,t),this._textModel=n,this._languageIdCodec=i}updateTokensUntilLine(e,t){const n=this._textModel.getLanguageId();for(;;){const i=this.getFirstInvalidLine();if(!i||i.lineNumber>t)break;const r=this._textModel.getLineContent(i.lineNumber),s=di(this._languageIdCodec,n,this.tokenizationSupport,r,!0,i.startState);e.add(i.lineNumber,s.tokens),this.store.setEndState(i.lineNumber,s.endState)}}getTokenTypeIfInsertingCharacter(e,t){const n=this.getStartState(e.lineNumber);if(!n)return 0;const i=this._textModel.getLanguageId(),r=this._textModel.getLineContent(e.lineNumber),s=r.substring(0,e.column-1)+t+r.substring(e.column-1),o=di(this._languageIdCodec,i,this.tokenizationSupport,s,!0,n),a=new ri(o.tokens,s,this._languageIdCodec);if(0===a.getCount())return 0;const l=a.findTokenIndexAtOffset(e.column-1);return a.getStandardTokenType(l)}tokenizeLineWithEdit(e,t,n){const i=e.lineNumber,r=e.column,s=this.getStartState(i);if(!s)return null;const o=this._textModel.getLineContent(i),a=o.substring(0,r-1)+n+o.substring(r-1+t),l=this._textModel.getLanguageIdAtPosition(i,0),h=di(this._languageIdCodec,l,this.tokenizationSupport,a,!0,s);return new ri(h.tokens,a,this._languageIdCodec)}hasAccurateTokensForLine(e){return e<this.store.getFirstInvalidEndStateLineNumberOrMax()}isCheapToTokenize(e){const t=this.store.getFirstInvalidEndStateLineNumberOrMax();return e<t||e===t&&this._textModel.getLineLength(e)<2048}tokenizeHeuristically(e,t,n){if(n<=this.store.getFirstInvalidEndStateLineNumberOrMax())return{heuristicTokens:!1};if(t<=this.store.getFirstInvalidEndStateLineNumberOrMax())return this.updateTokensUntilLine(e,n),{heuristicTokens:!1};let i=this.guessStartState(t);const r=this._textModel.getLanguageId();for(let s=t;s<=n;s++){const t=this._textModel.getLineContent(s),n=di(this._languageIdCodec,r,this.tokenizationSupport,t,!0,i);e.add(s,n.tokens),i=n.endState}return{heuristicTokens:!0}}guessStartState(e){let t=this._textModel.getLineFirstNonWhitespaceColumn(e);const n=[];let i=null;for(let o=e-1;t>1&&o>=1;o--){const e=this._textModel.getLineFirstNonWhitespaceColumn(o);if(0!==e&&(e<t&&(n.push(this._textModel.getLineContent(o)),t=e,i=this.getStartState(o),i)))break}i||(i=this.tokenizationSupport.getInitialState()),n.reverse();const r=this._textModel.getLanguageId();let s=i;for(const o of n){s=di(this._languageIdCodec,r,this.tokenizationSupport,o,!1,s).endState}return s}}class li{constructor(e){this.lineCount=e,this._tokenizationStateStore=new hi,this._invalidEndStatesLineNumbers=new ci,this._invalidEndStatesLineNumbers.addRange(new Zn.L(1,e+1))}getEndState(e){return this._tokenizationStateStore.getEndState(e)}setEndState(e,t){if(!t)throw new l.D7("Cannot set null/undefined state");this._invalidEndStatesLineNumbers.delete(e);const n=this._tokenizationStateStore.setEndState(e,t);return n&&e<this.lineCount&&this._invalidEndStatesLineNumbers.addRange(new Zn.L(e+1,e+2)),n}acceptChange(e,t){this.lineCount+=t-e.length,this._tokenizationStateStore.acceptChange(e,t),this._invalidEndStatesLineNumbers.addRangeAndResize(new Zn.L(e.startLineNumber,e.endLineNumberExclusive),t)}acceptChanges(e){for(const t of e){const[e]=(0,d.W)(t.text);this.acceptChange(new Qn.M(t.range.startLineNumber,t.range.endLineNumber+1),e+1)}}invalidateEndStateRange(e){this._invalidEndStatesLineNumbers.addRange(new Zn.L(e.startLineNumber,e.endLineNumberExclusive))}getFirstInvalidEndStateLineNumber(){return this._invalidEndStatesLineNumbers.min}getFirstInvalidEndStateLineNumberOrMax(){return this.getFirstInvalidEndStateLineNumber()||Number.MAX_SAFE_INTEGER}allStatesValid(){return null===this._invalidEndStatesLineNumbers.min}getStartState(e,t){return 1===e?t:this.getEndState(e-1)}getFirstInvalidLine(e){const t=this.getFirstInvalidEndStateLineNumber();if(null===t)return null;const n=this.getStartState(t,e);if(!n)throw new l.D7("Start state must be defined");return{lineNumber:t,startState:n}}}class hi{constructor(){this._lineEndStates=new ti(null)}getEndState(e){return this._lineEndStates.get(e)}setEndState(e,t){const n=this._lineEndStates.get(e);return(!n||!n.equals(t))&&(this._lineEndStates.set(e,t),!0)}acceptChange(e,t){let n=e.length;t>0&&n>0&&(n--,t--),this._lineEndStates.replace(e.startLineNumber,n,t)}}class ci{constructor(){this._ranges=[]}get min(){return 0===this._ranges.length?null:this._ranges[0].start}delete(e){const t=this._ranges.findIndex((t=>t.contains(e)));if(-1!==t){const n=this._ranges[t];n.start===e?n.endExclusive===e+1?this._ranges.splice(t,1):this._ranges[t]=new Zn.L(e+1,n.endExclusive):n.endExclusive===e+1?this._ranges[t]=new Zn.L(n.start,e):this._ranges.splice(t,1,new Zn.L(n.start,e),new Zn.L(e+1,n.endExclusive))}}addRange(e){Zn.L.addRange(e,this._ranges)}addRangeAndResize(e,t){let n=0;for(;!(n>=this._ranges.length||e.start<=this._ranges[n].endExclusive);)n++;let i=n;for(;!(i>=this._ranges.length||e.endExclusive<this._ranges[i].start);)i++;const r=t-e.length;for(let s=i;s<this._ranges.length;s++)this._ranges[s]=this._ranges[s].delta(r);if(n===i){const i=new Zn.L(e.start,e.start+t);i.isEmpty||this._ranges.splice(n,0,i)}else{const t=Math.min(e.start,this._ranges[n].start),s=Math.max(e.endExclusive,this._ranges[i-1].endExclusive),o=new Zn.L(t,s+r);o.isEmpty?this._ranges.splice(n,i-n):this._ranges.splice(n,i-n,o)}}toString(){return this._ranges.map((e=>e.toString())).join(" + ")}}function di(e,t,n,i,r,s){let o=null;if(n)try{o=n.tokenizeEncoded(i,r,s.clone())}catch(a){(0,l.dz)(a)}return o||(o=function(e,t){const n=new Uint32Array(2);return n[0]=0,n[1]=(32768|e|2<<24)>>>0,new Yn.rY(n,null===t?ei:t)}(e.encodeLanguageId(t),s)),ri.convertToEndOffset(o.tokens,i.length),o}class ui{constructor(e,t){this._tokenizerWithStateStore=e,this._backgroundTokenStore=t,this._isDisposed=!1,this._isScheduled=!1}dispose(){this._isDisposed=!0}handleChanges(){this._beginBackgroundTokenization()}_beginBackgroundTokenization(){!this._isScheduled&&this._tokenizerWithStateStore._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&(this._isScheduled=!0,(0,Xn.$6)((e=>{this._isScheduled=!1,this._backgroundTokenizeWithDeadline(e)})))}_backgroundTokenizeWithDeadline(e){const t=Date.now()+e.timeRemaining(),n=()=>{!this._isDisposed&&this._tokenizerWithStateStore._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&(this._backgroundTokenizeForAtLeast1ms(),Date.now()<t?(0,s._p)(n):this._beginBackgroundTokenization())};n()}_backgroundTokenizeForAtLeast1ms(){const e=this._tokenizerWithStateStore._textModel.getLineCount(),t=new ii,n=Jn.W.create(!1);do{if(n.elapsed()>1)break;if(this._tokenizeOneInvalidLine(t)>=e)break}while(this._hasLinesToTokenize());this._backgroundTokenStore.setTokens(t.finalize()),this.checkFinished()}_hasLinesToTokenize(){return!!this._tokenizerWithStateStore&&!this._tokenizerWithStateStore.store.allStatesValid()}_tokenizeOneInvalidLine(e){const t=this._tokenizerWithStateStore?.getFirstInvalidLine();return t?(this._tokenizerWithStateStore.updateTokensUntilLine(e,t.lineNumber),t.lineNumber):this._tokenizerWithStateStore._textModel.getLineCount()+1}checkFinished(){this._isDisposed||this._tokenizerWithStateStore.store.allStatesValid()&&this._backgroundTokenStore.backgroundTokenizationFinished()}requestTokens(e,t){this._tokenizerWithStateStore.store.invalidateEndStateRange(new Qn.M(e,t))}}class gi{constructor(){this._onDidChangeVisibleRanges=new i.vl,this.onDidChangeVisibleRanges=this._onDidChangeVisibleRanges.event,this._views=new Set}attachView(){const e=new fi((t=>{this._onDidChangeVisibleRanges.fire({view:e,state:t})}));return this._views.add(e),e}detachView(e){this._views.delete(e),this._onDidChangeVisibleRanges.fire({view:e,state:void 0})}}class fi{constructor(e){this.handleStateChange=e}setVisibleLines(e,t){const n=e.map((e=>new Qn.M(e.startLineNumber,e.endLineNumber+1)));this.handleStateChange({visibleLineRanges:n,stabilized:t})}}class mi extends r.jG{get lineRanges(){return this._lineRanges}constructor(e){super(),this._refreshTokens=e,this.runner=this._register(new Xn.uC((()=>this.update()),50)),this._computedLineRanges=[],this._lineRanges=[]}update(){(0,o.aI)(this._computedLineRanges,this._lineRanges,((e,t)=>e.equals(t)))||(this._computedLineRanges=this._lineRanges,this._refreshTokens())}handleStateChange(e){this._lineRanges=e.visibleLineRanges,e.stabilized?(this.runner.cancel(),this.update()):this.runner.schedule()}}class pi extends r.jG{get backgroundTokenizationState(){return this._backgroundTokenizationState}constructor(e,t,n){super(),this._languageIdCodec=e,this._textModel=t,this.getLanguageId=n,this._backgroundTokenizationState=1,this._onDidChangeBackgroundTokenizationState=this._register(new i.vl),this.onDidChangeBackgroundTokenizationState=this._onDidChangeBackgroundTokenizationState.event,this._onDidChangeTokens=this._register(new i.vl),this.onDidChangeTokens=this._onDidChangeTokens.event}tokenizeIfCheap(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)}}class _i extends pi{constructor(e,t,n,i){super(t,n,i),this._treeSitterService=e,this._tokenizationSupport=null,this._initialize()}_initialize(){const e=this.getLanguageId();this._tokenizationSupport&&this._lastLanguageId===e||(this._lastLanguageId=e,this._tokenizationSupport=Yn.OB.get(e))}getLineTokens(e){const t=this._textModel.getLineContent(e);if(this._tokenizationSupport){const n=this._tokenizationSupport.tokenizeEncoded(e,this._textModel);if(n)return new ri(n,t,this._languageIdCodec)}return ri.createEmpty(t,this._languageIdCodec)}resetTokenization(e=!0){e&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]}),this._initialize()}handleDidChangeAttached(){}handleDidChangeContent(e){e.isFlush&&this.resetTokenization(!1)}forceTokenization(e){}hasAccurateTokensForLine(e){return!0}isCheapToTokenize(e){return!0}getTokenTypeIfInsertingCharacter(e,t,n){return 0}tokenizeLineWithEdit(e,t,n){return null}get hasTokens(){return void 0!==this._treeSitterService.getParseResult(this._textModel)}}var bi=n(4432);const vi=new Uint32Array(0).buffer;class wi{static deleteBeginning(e,t){return null===e||e===vi?e:wi.delete(e,0,t)}static deleteEnding(e,t){if(null===e||e===vi)return e;const n=ki(e),i=n[n.length-2];return wi.delete(e,t,i)}static delete(e,t,n){if(null===e||e===vi||t===n)return e;const i=ki(e),r=i.length>>>1;if(0===t&&i[i.length-2]===n)return vi;const s=ri.findIndexInTokensArray(i,t),o=s>0?i[s-1<<1]:0;if(n<i[s<<1]){const o=n-t;for(let e=s;e<r;e++)i[e<<1]-=o;return e}let a,l;o!==t?(i[s<<1]=t,a=s+1<<1,l=t):(a=s<<1,l=o);const h=n-t;for(let d=s+1;d<r;d++){const e=i[d<<1]-h;e>l&&(i[a++]=e,i[a++]=i[1+(d<<1)],l=e)}if(a===i.length)return e;const c=new Uint32Array(a);return c.set(i.subarray(0,a),0),c.buffer}static append(e,t){if(t===vi)return e;if(e===vi)return t;if(null===e)return e;if(null===t)return null;const n=ki(e),i=ki(t),r=i.length>>>1,s=new Uint32Array(n.length+i.length);s.set(n,0);let o=n.length;const a=n[n.length-2];for(let l=0;l<r;l++)s[o++]=i[l<<1]+a,s[o++]=i[1+(l<<1)];return s.buffer}static insert(e,t,n){if(null===e||e===vi)return e;const i=ki(e),r=i.length>>>1;let s=ri.findIndexInTokensArray(i,t);if(s>0){i[s-1<<1]===t&&s--}for(let o=s;o<r;o++)i[o<<1]+=n;return e}}function ki(e){return e instanceof Uint32Array?e:new Uint32Array(e)}class yi{constructor(e){this._lineTokens=[],this._len=0,this._languageIdCodec=e}flush(){this._lineTokens=[],this._len=0}get hasTokens(){return this._lineTokens.length>0}getTokens(e,t,n){let i=null;if(t<this._len&&(i=this._lineTokens[t]),null!==i&&i!==vi)return new ri(ki(i),n,this._languageIdCodec);const r=new Uint32Array(2);return r[0]=n.length,r[1]=Ti(this._languageIdCodec.encodeLanguageId(e)),new ri(r,n,this._languageIdCodec)}static _massageTokens(e,t,n){const i=n?ki(n):null;if(0===t){let t=!1;if(i&&i.length>1&&(t=Je.x.getLanguageId(i[1])!==e),!t)return vi}if(!i||0===i.length){const n=new Uint32Array(2);return n[0]=t,n[1]=Ti(e),n.buffer}return i[i.length-2]=t,0===i.byteOffset&&i.byteLength===i.buffer.byteLength?i.buffer:i}_ensureLine(e){for(;e>=this._len;)this._lineTokens[this._len]=null,this._len++}_deleteLines(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._lineTokens.splice(e,t),this._len-=t)}_insertLines(e,t){if(0===t)return;const n=[];for(let i=0;i<t;i++)n[i]=null;this._lineTokens=o.nK(this._lineTokens,e,n),this._len+=t}setTokens(e,t,n,i,r){const s=yi._massageTokens(this._languageIdCodec.encodeLanguageId(e),n,i);this._ensureLine(t);const o=this._lineTokens[t];return this._lineTokens[t]=s,!!r&&!yi._equals(o,s)}static _equals(e,t){if(!e||!t)return!e&&!t;const n=ki(e),i=ki(t);if(n.length!==i.length)return!1;for(let r=0,s=n.length;r<s;r++)if(n[r]!==i[r])return!1;return!0}acceptEdit(e,t,n){this._acceptDeleteRange(e),this._acceptInsertText(new f.y(e.startLineNumber,e.startColumn),t,n)}_acceptDeleteRange(e){const t=e.startLineNumber-1;if(t>=this._len)return;if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;return void(this._lineTokens[t]=wi.delete(this._lineTokens[t],e.startColumn-1,e.endColumn-1))}this._lineTokens[t]=wi.deleteEnding(this._lineTokens[t],e.startColumn-1);const n=e.endLineNumber-1;let i=null;n<this._len&&(i=wi.deleteBeginning(this._lineTokens[n],e.endColumn-1)),this._lineTokens[t]=wi.append(this._lineTokens[t],i),this._deleteLines(e.startLineNumber,e.endLineNumber-e.startLineNumber)}_acceptInsertText(e,t,n){if(0===t&&0===n)return;const i=e.lineNumber-1;i>=this._len||(0!==t?(this._lineTokens[i]=wi.deleteEnding(this._lineTokens[i],e.column-1),this._lineTokens[i]=wi.insert(this._lineTokens[i],e.column-1,n),this._insertLines(e.lineNumber,t)):this._lineTokens[i]=wi.insert(this._lineTokens[i],e.column-1,n))}setMultilineTokens(e,t){if(0===e.length)return{changes:[]};const n=[];for(let i=0,r=e.length;i<r;i++){const r=e[i];let s=0,o=0,a=!1;for(let e=r.startLineNumber;e<=r.endLineNumber;e++)if(a)this.setTokens(t.getLanguageId(),e-1,t.getLineLength(e),r.getLineTokens(e),!1),o=e;else{this.setTokens(t.getLanguageId(),e-1,t.getLineLength(e),r.getLineTokens(e),!0)&&(a=!0,s=e,o=e)}a&&n.push({fromLineNumber:s,toLineNumber:o})}return{changes:n}}}function Ti(e){return(32768|e|2<<24|1024)>>>0}class Ci{constructor(e){this._pieces=[],this._isComplete=!1,this._languageIdCodec=e}flush(){this._pieces=[],this._isComplete=!1}isEmpty(){return 0===this._pieces.length}set(e,t){this._pieces=e||[],this._isComplete=t}setPartial(e,t){let n=e;if(t.length>0){const i=t[0].getRange(),r=t[t.length-1].getRange();if(!i||!r)return e;n=e.plusRange(i).plusRange(r)}let i=null;for(let r=0,s=this._pieces.length;r<s;r++){const e=this._pieces[r];if(e.endLineNumber<n.startLineNumber)continue;if(e.startLineNumber>n.endLineNumber){i=i||{index:r};break}if(e.removeTokens(n),e.isEmpty()){this._pieces.splice(r,1),r--,s--;continue}if(e.endLineNumber<n.startLineNumber)continue;if(e.startLineNumber>n.endLineNumber){i=i||{index:r};continue}const[t,o]=e.split(n);t.isEmpty()?i=i||{index:r}:o.isEmpty()||(this._pieces.splice(r,1,t,o),r++,s++,i=i||{index:r})}return i=i||{index:this._pieces.length},t.length>0&&(this._pieces=o.nK(this._pieces,i.index,t)),n}isComplete(){return this._isComplete}addSparseTokens(e,t){if(0===t.getLineContent().length)return t;const n=this._pieces;if(0===n.length)return t;const i=n[Ci._findFirstPieceWithLine(n,e)].getLineTokens(e);if(!i)return t;const r=t.getCount(),s=i.getCount();let o=0;const a=[];let l=0,h=0;const c=(e,t)=>{e!==h&&(h=e,a[l++]=e,a[l++]=t)};for(let d=0;d<s;d++){const e=i.getStartCharacter(d),n=i.getEndCharacter(d),s=i.getMetadata(d),a=((1&s?2048:0)|(2&s?4096:0)|(4&s?8192:0)|(8&s?16384:0)|(16&s?16744448:0)|(32&s?4278190080:0))>>>0,l=~a>>>0;for(;o<r&&t.getEndOffset(o)<=e;)c(t.getEndOffset(o),t.getMetadata(o)),o++;for(o<r&&t.getStartOffset(o)<e&&c(e,t.getMetadata(o));o<r&&t.getEndOffset(o)<n;)c(t.getEndOffset(o),t.getMetadata(o)&l|s&a),o++;if(o<r)c(n,t.getMetadata(o)&l|s&a),t.getEndOffset(o)===n&&o++;else{const e=Math.min(Math.max(0,o-1),r-1);c(n,t.getMetadata(e)&l|s&a)}}for(;o<r;)c(t.getEndOffset(o),t.getMetadata(o)),o++;return new ri(new Uint32Array(a),t.getLineContent(),this._languageIdCodec)}static _findFirstPieceWithLine(e,t){let n=0,i=e.length-1;for(;n<i;){let r=n+Math.floor((i-n)/2);if(e[r].endLineNumber<t)n=r+1;else{if(!(e[r].startLineNumber>t)){for(;r>n&&e[r-1].startLineNumber<=t&&t<=e[r-1].endLineNumber;)r--;return r}i=r-1}}return n}acceptEdit(e,t,n,i,r){for(const s of this._pieces)s.acceptEdit(e,t,n,i,r)}}var Si,Li=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},xi=function(e,t){return function(n,i){t(n,i,e)}};let Ei=Si=class extends Vt{constructor(e,t,n,s,o,a,l){super(),this._textModel=e,this._bracketPairsTextModelPart=t,this._languageId=n,this._attachedViews=s,this._languageService=o,this._languageConfigurationService=a,this._treeSitterService=l,this._semanticTokens=new Ci(this._languageService.languageIdCodec),this._onDidChangeLanguage=this._register(new i.vl),this.onDidChangeLanguage=this._onDidChangeLanguage.event,this._onDidChangeLanguageConfiguration=this._register(new i.vl),this.onDidChangeLanguageConfiguration=this._onDidChangeLanguageConfiguration.event,this._onDidChangeTokens=this._register(new i.vl),this.onDidChangeTokens=this._onDidChangeTokens.event,this._tokensDisposables=this._register(new r.Cm),this._register(this._languageConfigurationService.onDidChange((e=>{e.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})}))),this._register(i.Jh.filter(Yn.OB.onDidChange,(e=>e.changedLanguages.includes(this._languageId)))((()=>{this.createPreferredTokenProvider()}))),this.createPreferredTokenProvider()}createGrammarTokens(){return this._register(new Ai(this._languageService.languageIdCodec,this._textModel,(()=>this._languageId),this._attachedViews))}createTreeSitterTokens(){return this._register(new _i(this._treeSitterService,this._languageService.languageIdCodec,this._textModel,(()=>this._languageId)))}createTokens(e){const t=void 0!==this._tokens;this._tokens?.dispose(),this._tokens=e?this.createTreeSitterTokens():this.createGrammarTokens(),this._tokensDisposables.clear(),this._tokensDisposables.add(this._tokens.onDidChangeTokens((e=>{this._emitModelTokensChangedEvent(e)}))),this._tokensDisposables.add(this._tokens.onDidChangeBackgroundTokenizationState((e=>{this._bracketPairsTextModelPart.handleDidChangeBackgroundTokenizationState()}))),t&&this._tokens.resetTokenization()}createPreferredTokenProvider(){Yn.OB.get(this._languageId)?this._tokens instanceof _i||this.createTokens(!0):this._tokens instanceof Ai||this.createTokens(!1)}handleLanguageConfigurationServiceChange(e){e.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})}handleDidChangeContent(e){if(e.isFlush)this._semanticTokens.flush();else if(!e.isEolChange)for(const t of e.changes){const[e,n,i]=(0,d.W)(t.text);this._semanticTokens.acceptEdit(t.range,e,n,i,t.text.length>0?t.text.charCodeAt(0):0)}this._tokens.handleDidChangeContent(e)}handleDidChangeAttached(){this._tokens.handleDidChangeAttached()}getLineTokens(e){this.validateLineNumber(e);const t=this._tokens.getLineTokens(e);return this._semanticTokens.addSparseTokens(e,t)}_emitModelTokensChangedEvent(e){this._textModel._isDisposing()||(this._bracketPairsTextModelPart.handleDidChangeTokens(e),this._onDidChangeTokens.fire(e))}validateLineNumber(e){if(e<1||e>this._textModel.getLineCount())throw new l.D7("Illegal value for lineNumber")}get hasTokens(){return this._tokens.hasTokens}resetTokenization(){this._tokens.resetTokenization()}get backgroundTokenizationState(){return this._tokens.backgroundTokenizationState}forceTokenization(e){this.validateLineNumber(e),this._tokens.forceTokenization(e)}hasAccurateTokensForLine(e){return this.validateLineNumber(e),this._tokens.hasAccurateTokensForLine(e)}isCheapToTokenize(e){return this.validateLineNumber(e),this._tokens.isCheapToTokenize(e)}tokenizeIfCheap(e){this.validateLineNumber(e),this._tokens.tokenizeIfCheap(e)}getTokenTypeIfInsertingCharacter(e,t,n){return this._tokens.getTokenTypeIfInsertingCharacter(e,t,n)}tokenizeLineWithEdit(e,t,n){return this._tokens.tokenizeLineWithEdit(e,t,n)}setSemanticTokens(e,t){this._semanticTokens.set(e,t),this._emitModelTokensChangedEvent({semanticTokensApplied:null!==e,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]})}hasCompleteSemanticTokens(){return this._semanticTokens.isComplete()}hasSomeSemanticTokens(){return!this._semanticTokens.isEmpty()}setPartialSemanticTokens(e,t){if(this.hasCompleteSemanticTokens())return;const n=this._textModel.validateRange(this._semanticTokens.setPartial(e,t));this._emitModelTokensChangedEvent({semanticTokensApplied:!0,ranges:[{fromLineNumber:n.startLineNumber,toLineNumber:n.endLineNumber}]})}getWordAtPosition(e){this.assertNotDisposed();const t=this._textModel.validatePosition(e),n=this._textModel.getLineContent(t.lineNumber),i=this.getLineTokens(t.lineNumber),r=i.findTokenIndexAtOffset(t.column-1),[s,o]=Si._findLanguageBoundaries(i,r),a=(0,w.Th)(t.column,this.getLanguageConfiguration(i.getLanguageId(r)).getWordDefinition(),n.substring(s,o),s);if(a&&a.startColumn<=e.column&&e.column<=a.endColumn)return a;if(r>0&&s===t.column-1){const[s,o]=Si._findLanguageBoundaries(i,r-1),a=(0,w.Th)(t.column,this.getLanguageConfiguration(i.getLanguageId(r-1)).getWordDefinition(),n.substring(s,o),s);if(a&&a.startColumn<=e.column&&e.column<=a.endColumn)return a}return null}getLanguageConfiguration(e){return this._languageConfigurationService.getLanguageConfiguration(e)}static _findLanguageBoundaries(e,t){const n=e.getLanguageId(t);let i=0;for(let s=t;s>=0&&e.getLanguageId(s)===n;s--)i=e.getStartOffset(s);let r=e.getLineContent().length;for(let s=t,o=e.getCount();s<o&&e.getLanguageId(s)===n;s++)r=e.getEndOffset(s);return[i,r]}getWordUntilPosition(e){const t=this.getWordAtPosition(e);return t?{word:t.word.substr(0,e.column-t.startColumn),startColumn:t.startColumn,endColumn:e.column}:{word:"",startColumn:e.column,endColumn:e.column}}getLanguageId(){return this._languageId}getLanguageIdAtPosition(e,t){const n=this._textModel.validatePosition(new f.y(e,t)),i=this.getLineTokens(n.lineNumber);return i.getLanguageId(i.findTokenIndexAtOffset(n.column-1))}setLanguageId(e,t="api"){if(this._languageId===e)return;const n={oldLanguage:this._languageId,newLanguage:e,source:t};this._languageId=e,this._bracketPairsTextModelPart.handleDidChangeLanguage(n),this._tokens.resetTokenization(),this.createPreferredTokenProvider(),this._onDidChangeLanguage.fire(n),this._onDidChangeLanguageConfiguration.fire({})}};Ei=Si=Li([xi(4,v.L),xi(5,se),xi(6,bi.ITreeSitterParserService)],Ei);class Ai extends pi{constructor(e,t,n,i){super(e,t,n),this._tokenizer=null,this._defaultBackgroundTokenizer=null,this._backgroundTokenizer=this._register(new r.HE),this._tokens=new yi(this._languageIdCodec),this._debugBackgroundTokenizer=this._register(new r.HE),this._attachedViewStates=this._register(new r.$w),this._register(Yn.dG.onDidChange((e=>{const t=this.getLanguageId();-1!==e.changedLanguages.indexOf(t)&&this.resetTokenization()}))),this.resetTokenization(),this._register(i.onDidChangeVisibleRanges((({view:e,state:t})=>{if(t){let n=this._attachedViewStates.get(e);n||(n=new mi((()=>this.refreshRanges(n.lineRanges))),this._attachedViewStates.set(e,n)),n.handleStateChange(t)}else this._attachedViewStates.deleteAndDispose(e)})))}resetTokenization(e=!0){this._tokens.flush(),this._debugBackgroundTokens?.flush(),this._debugBackgroundStates&&(this._debugBackgroundStates=new li(this._textModel.getLineCount())),e&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]});const[t,n]=(()=>{if(this._textModel.isTooLargeForTokenization())return[null,null];const e=Yn.dG.get(this.getLanguageId());if(!e)return[null,null];let t;try{t=e.getInitialState()}catch(n){return(0,l.dz)(n),[null,null]}return[e,t]})();if(this._tokenizer=t&&n?new ai(this._textModel.getLineCount(),t,this._textModel,this._languageIdCodec):null,this._backgroundTokenizer.clear(),this._defaultBackgroundTokenizer=null,this._tokenizer){const e={setTokens:e=>{this.setTokens(e)},backgroundTokenizationFinished:()=>{if(2===this._backgroundTokenizationState)return;this._backgroundTokenizationState=2,this._onDidChangeBackgroundTokenizationState.fire()},setEndState:(e,t)=>{if(!this._tokenizer)return;const n=this._tokenizer.store.getFirstInvalidEndStateLineNumber();null!==n&&e>=n&&this._tokenizer?.store.setEndState(e,t)}};t&&t.createBackgroundTokenizer&&!t.backgroundTokenizerShouldOnlyVerifyTokens&&(this._backgroundTokenizer.value=t.createBackgroundTokenizer(this._textModel,e)),this._backgroundTokenizer.value||this._textModel.isTooLargeForTokenization()||(this._backgroundTokenizer.value=this._defaultBackgroundTokenizer=new ui(this._tokenizer,e),this._defaultBackgroundTokenizer.handleChanges()),t?.backgroundTokenizerShouldOnlyVerifyTokens&&t.createBackgroundTokenizer?(this._debugBackgroundTokens=new yi(this._languageIdCodec),this._debugBackgroundStates=new li(this._textModel.getLineCount()),this._debugBackgroundTokenizer.clear(),this._debugBackgroundTokenizer.value=t.createBackgroundTokenizer(this._textModel,{setTokens:e=>{this._debugBackgroundTokens?.setMultilineTokens(e,this._textModel)},backgroundTokenizationFinished(){},setEndState:(e,t)=>{this._debugBackgroundStates?.setEndState(e,t)}})):(this._debugBackgroundTokens=void 0,this._debugBackgroundStates=void 0,this._debugBackgroundTokenizer.value=void 0)}this.refreshAllVisibleLineTokens()}handleDidChangeAttached(){this._defaultBackgroundTokenizer?.handleChanges()}handleDidChangeContent(e){if(e.isFlush)this.resetTokenization(!1);else if(!e.isEolChange){for(const t of e.changes){const[e,n]=(0,d.W)(t.text);this._tokens.acceptEdit(t.range,e,n),this._debugBackgroundTokens?.acceptEdit(t.range,e,n)}this._debugBackgroundStates?.acceptChanges(e.changes),this._tokenizer&&this._tokenizer.store.acceptChanges(e.changes),this._defaultBackgroundTokenizer?.handleChanges()}}setTokens(e){const{changes:t}=this._tokens.setMultilineTokens(e,this._textModel);return t.length>0&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:t}),{changes:t}}refreshAllVisibleLineTokens(){const e=Qn.M.joinMany([...this._attachedViewStates].map((([e,t])=>t.lineRanges)));this.refreshRanges(e)}refreshRanges(e){for(const t of e)this.refreshRange(t.startLineNumber,t.endLineNumberExclusive-1)}refreshRange(e,t){if(!this._tokenizer)return;e=Math.max(1,Math.min(this._textModel.getLineCount(),e)),t=Math.min(this._textModel.getLineCount(),t);const n=new ii,{heuristicTokens:i}=this._tokenizer.tokenizeHeuristically(n,e,t),r=this.setTokens(n.finalize());if(i)for(const s of r.changes)this._backgroundTokenizer.value?.requestTokens(s.fromLineNumber,s.toLineNumber+1);this._defaultBackgroundTokenizer?.checkFinished()}forceTokenization(e){const t=new ii;this._tokenizer?.updateTokensUntilLine(t,e),this.setTokens(t.finalize()),this._defaultBackgroundTokenizer?.checkFinished()}hasAccurateTokensForLine(e){return!this._tokenizer||this._tokenizer.hasAccurateTokensForLine(e)}isCheapToTokenize(e){return!this._tokenizer||this._tokenizer.isCheapToTokenize(e)}getLineTokens(e){const t=this._textModel.getLineContent(e),n=this._tokens.getTokens(this._textModel.getLanguageId(),e-1,t);if(this._debugBackgroundTokens&&this._debugBackgroundStates&&this._tokenizer&&this._debugBackgroundStates.getFirstInvalidEndStateLineNumberOrMax()>e&&this._tokenizer.store.getFirstInvalidEndStateLineNumberOrMax()>e){const i=this._debugBackgroundTokens.getTokens(this._textModel.getLanguageId(),e-1,t);!n.equals(i)&&this._debugBackgroundTokenizer.value?.reportMismatchingTokens&&this._debugBackgroundTokenizer.value.reportMismatchingTokens(e)}return n}getTokenTypeIfInsertingCharacter(e,t,n){if(!this._tokenizer)return 0;const i=this._textModel.validatePosition(new f.y(e,t));return this.forceTokenization(i.lineNumber),this._tokenizer.getTokenTypeIfInsertingCharacter(i,n)}tokenizeLineWithEdit(e,t,n){if(!this._tokenizer)return null;const i=this._textModel.validatePosition(e);return this.forceTokenization(i.lineNumber),this._tokenizer.tokenizeLineWithEdit(i,t,n)}get hasTokens(){return this._tokens.hasTokens}}class Ii{constructor(){this.changeType=1}}class Mi{static applyInjectedText(e,t){if(!t||0===t.length)return e;let n="",i=0;for(const r of t)n+=e.substring(i,r.column-1),i=r.column-1,n+=r.options.content;return n+=e.substring(i),n}static fromDecorations(e){const t=[];for(const n of e)n.options.before&&n.options.before.content.length>0&&t.push(new Mi(n.ownerId,n.range.startLineNumber,n.range.startColumn,n.options.before,0)),n.options.after&&n.options.after.content.length>0&&t.push(new Mi(n.ownerId,n.range.endLineNumber,n.range.endColumn,n.options.after,1));return t.sort(((e,t)=>e.lineNumber===t.lineNumber?e.column===t.column?e.order-t.order:e.column-t.column:e.lineNumber-t.lineNumber)),t}constructor(e,t,n,i,r){this.ownerId=e,this.lineNumber=t,this.column=n,this.options=i,this.order=r}}class Ni{constructor(e,t,n){this.changeType=2,this.lineNumber=e,this.detail=t,this.injectedText=n}}class Ri{constructor(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t}}class Di{constructor(e,t,n,i){this.changeType=4,this.injectedTexts=i,this.fromLineNumber=e,this.toLineNumber=t,this.detail=n}}class Oi{constructor(){this.changeType=5}}class Bi{constructor(e,t,n,i){this.changes=e,this.versionId=t,this.isUndoing=n,this.isRedoing=i,this.resultingSelection=null}containsEvent(e){for(let t=0,n=this.changes.length;t<n;t++){if(this.changes[t].changeType===e)return!0}return!1}static merge(e,t){const n=[].concat(e.changes).concat(t.changes),i=t.versionId,r=e.isUndoing||t.isUndoing,s=e.isRedoing||t.isRedoing;return new Bi(n,i,r,s)}}class zi{constructor(e){this.changes=e}}class Pi{constructor(e,t){this.rawContentChangedEvent=e,this.contentChangedEvent=t}merge(e){const t=Bi.merge(this.rawContentChangedEvent,e.rawContentChangedEvent),n=Pi._mergeChangeEvents(this.contentChangedEvent,e.contentChangedEvent);return new Pi(t,n)}static _mergeChangeEvents(e,t){const n=[].concat(e.changes).concat(t.changes),i=t.eol,r=t.versionId,s=e.isUndoing||t.isUndoing,o=e.isRedoing||t.isRedoing,a=e.isFlush||t.isFlush;return{changes:n,eol:i,isEolChange:e.isEolChange&&t.isEolChange,versionId:r,isUndoing:s,isRedoing:o,isFlush:a}}}const Fi=(0,G.u1)("undoRedoService");class Wi{static{this._ID=0}constructor(){this.id=Wi._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}static{this.None=new Wi}}class Hi{static{this._ID=0}constructor(){this.id=Hi._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}static{this.None=new Hi}}var Ui,qi=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},Vi=function(e,t){return function(n,i){t(n,i,e)}};function ji(e,t){let n;return n="string"===typeof e?function(e){const t=new $n;return t.acceptChunk(e),t.finish()}(e):me.nk(e)?function(e){const t=new $n;let n;for(;"string"===typeof(n=e.read());)t.acceptChunk(n);return t.finish()}(e):e,n.create(t)}let Gi=0;class Ki{constructor(e){this._source=e,this._eos=!1}read(){if(this._eos)return null;const e=[];let t=0,n=0;for(;;){const i=this._source.read();if(null===i)return this._eos=!0,0===t?null:e.join("");if(i.length>0&&(e[t++]=i,n+=i.length),n>=65536)return e.join("")}}}const $i=()=>{throw new Error("Invalid change accessor")};let Qi=class extends r.jG{static{Ui=this}static{this._MODEL_SYNC_LIMIT=52428800}static{this.LARGE_FILE_SIZE_THRESHOLD=20971520}static{this.LARGE_FILE_LINE_COUNT_THRESHOLD=3e5}static{this.LARGE_FILE_HEAP_OPERATION_THRESHOLD=268435456}static{this.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:_.tabSize,indentSize:_.indentSize,insertSpaces:_.insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:_.trimAutoWhitespace,largeFileOptimizations:_.largeFileOptimizations,bracketPairColorizationOptions:_.bracketPairColorizationOptions}}static resolveOptions(e,t){if(t.detectIndentation){const n=Xt(e,t.tabSize,t.insertSpaces);return new me.X2({tabSize:n.tabSize,indentSize:"tabSize",insertSpaces:n.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL,bracketPairColorizationOptions:t.bracketPairColorizationOptions})}return new me.X2(t)}get onDidChangeLanguage(){return this._tokenizationTextModelPart.onDidChangeLanguage}get onDidChangeLanguageConfiguration(){return this._tokenizationTextModelPart.onDidChangeLanguageConfiguration}get onDidChangeTokens(){return this._tokenizationTextModelPart.onDidChangeTokens}onDidChangeContent(e){return this._eventEmitter.slowEvent((t=>e(t.contentChangedEvent)))}onDidChangeContentOrInjectedText(e){return(0,r.qE)(this._eventEmitter.fastEvent((t=>e(t))),this._onDidChangeInjectedText.event((t=>e(t))))}_isDisposing(){return this.__isDisposing}get tokenization(){return this._tokenizationTextModelPart}get bracketPairs(){return this._bracketPairs}get guides(){return this._guidesTextModelPart}constructor(e,t,n,s=null,o,a,l,d){super(),this._undoRedoService=o,this._languageService=a,this._languageConfigurationService=l,this.instantiationService=d,this._onWillDispose=this._register(new i.vl),this.onWillDispose=this._onWillDispose.event,this._onDidChangeDecorations=this._register(new lr((e=>this.handleBeforeFireDecorationsChangedEvent(e)))),this.onDidChangeDecorations=this._onDidChangeDecorations.event,this._onDidChangeOptions=this._register(new i.vl),this.onDidChangeOptions=this._onDidChangeOptions.event,this._onDidChangeAttached=this._register(new i.vl),this.onDidChangeAttached=this._onDidChangeAttached.event,this._onDidChangeInjectedText=this._register(new i.vl),this._eventEmitter=this._register(new hr),this._languageSelectionListener=this._register(new r.HE),this._deltaDecorationCallCnt=0,this._attachedViews=new gi,Gi++,this.id="$model"+Gi,this.isForSimpleWidget=n.isForSimpleWidget,this._associatedResource="undefined"===typeof s||null===s?c.r.parse("inmemory://model/"+Gi):s,this._attachedEditorCount=0;const{textBuffer:u,disposable:g}=ji(e,n.defaultEOL);this._buffer=u,this._bufferDisposable=g,this._options=Ui.resolveOptions(this._buffer,n);const f="string"===typeof t?t:t.languageId;"string"!==typeof t&&(this._languageSelectionListener.value=t.onDidChange((()=>this._setLanguage(t.languageId)))),this._bracketPairs=this._register(new yt(this,this._languageConfigurationService)),this._guidesTextModelPart=this._register(new Kt(this,this._languageConfigurationService)),this._decorationProvider=this._register(new Et(this)),this._tokenizationTextModelPart=this.instantiationService.createInstance(Ei,this,this._bracketPairs,f,this._attachedViews);const p=this._buffer.getLineCount(),_=this._buffer.getValueLengthInRange(new m.Q(1,1,p,this._buffer.getLineLength(p)+1),0);n.largeFileOptimizations?(this._isTooLargeForTokenization=_>Ui.LARGE_FILE_SIZE_THRESHOLD||p>Ui.LARGE_FILE_LINE_COUNT_THRESHOLD,this._isTooLargeForHeapOperation=_>Ui.LARGE_FILE_HEAP_OPERATION_THRESHOLD):(this._isTooLargeForTokenization=!1,this._isTooLargeForHeapOperation=!1),this._isTooLargeForSyncing=_>Ui._MODEL_SYNC_LIMIT,this._versionId=1,this._alternativeVersionId=1,this._initialUndoRedoSnapshot=null,this._isDisposed=!1,this.__isDisposing=!1,this._instanceId=h.tk(Gi),this._lastDecorationId=0,this._decorations=Object.create(null),this._decorationsTree=new Ji,this._commandManager=new Ht(this,this._undoRedoService),this._isUndoing=!1,this._isRedoing=!1,this._trimAutoWhitespaceLines=null,this._register(this._decorationProvider.onDidChange((()=>{this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._onDidChangeDecorations.endDeferredEmit()}))),this._languageService.requestRichLanguageFeatures(f),this._register(this._languageConfigurationService.onDidChange((e=>{this._bracketPairs.handleLanguageConfigurationServiceChange(e),this._tokenizationTextModelPart.handleLanguageConfigurationServiceChange(e)})))}dispose(){this.__isDisposing=!0,this._onWillDispose.fire(),this._tokenizationTextModelPart.dispose(),this._isDisposed=!0,super.dispose(),this._bufferDisposable.dispose(),this.__isDisposing=!1;const e=new Gn([],"","\n",!1,!1,!0,!0);e.dispose(),this._buffer=e,this._bufferDisposable=r.jG.None}_assertNotDisposed(){if(this._isDisposed)throw new l.D7("Model is disposed!")}_emitContentChangedEvent(e,t){this.__isDisposing||(this._tokenizationTextModelPart.handleDidChangeContent(t),this._bracketPairs.handleDidChangeContent(t),this._eventEmitter.fire(new Pi(e,t)))}setValue(e){if(this._assertNotDisposed(),null===e||void 0===e)throw(0,l.Qg)();const{textBuffer:t,disposable:n}=ji(e,this._options.defaultEOL);this._setValueFromTextBuffer(t,n)}_createContentChanged2(e,t,n,i,r,s,o,a){return{changes:[{range:e,rangeOffset:t,rangeLength:n,text:i}],eol:this._buffer.getEOL(),isEolChange:a,versionId:this.getVersionId(),isUndoing:r,isRedoing:s,isFlush:o}}_setValueFromTextBuffer(e,t){this._assertNotDisposed();const n=this.getFullModelRange(),i=this.getValueLengthInRange(n),r=this.getLineCount(),s=this.getLineMaxColumn(r);this._buffer=e,this._bufferDisposable.dispose(),this._bufferDisposable=t,this._increaseVersionId(),this._decorations=Object.create(null),this._decorationsTree=new Ji,this._commandManager.clear(),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new Bi([new Ii],this._versionId,!1,!1),this._createContentChanged2(new m.Q(1,1,r,s),0,i,this.getValue(),!1,!1,!0,!1))}setEOL(e){this._assertNotDisposed();const t=1===e?"\r\n":"\n";if(this._buffer.getEOL()===t)return;const n=this.getFullModelRange(),i=this.getValueLengthInRange(n),r=this.getLineCount(),s=this.getLineMaxColumn(r);this._onBeforeEOLChange(),this._buffer.setEOL(t),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new Bi([new Oi],this._versionId,!1,!1),this._createContentChanged2(new m.Q(1,1,r,s),0,i,this.getValue(),!1,!1,!1,!0))}_onBeforeEOLChange(){this._decorationsTree.ensureAllNodesHaveRanges(this)}_onAfterEOLChange(){const e=this.getVersionId(),t=this._decorationsTree.collectNodesPostOrder();for(let n=0,i=t.length;n<i;n++){const i=t[n],r=i.range,s=i.cachedAbsoluteStart-i.start,o=this._buffer.getOffsetAt(r.startLineNumber,r.startColumn),a=this._buffer.getOffsetAt(r.endLineNumber,r.endColumn);i.cachedAbsoluteStart=o,i.cachedAbsoluteEnd=a,i.cachedVersionId=e,i.start=o-s,i.end=a-s,wn(i)}}onBeforeAttached(){return this._attachedEditorCount++,1===this._attachedEditorCount&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0)),this._attachedViews.attachView()}onBeforeDetached(e){this._attachedEditorCount--,0===this._attachedEditorCount&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0)),this._attachedViews.detachView(e)}isAttachedToEditor(){return this._attachedEditorCount>0}getAttachedEditorCount(){return this._attachedEditorCount}isTooLargeForSyncing(){return this._isTooLargeForSyncing}isTooLargeForTokenization(){return this._isTooLargeForTokenization}isTooLargeForHeapOperation(){return this._isTooLargeForHeapOperation}isDisposed(){return this._isDisposed}isDominatedByLongLines(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;let e=0,t=0;const n=this._buffer.getLineCount();for(let i=1;i<=n;i++){const n=this._buffer.getLineLength(i);n>=1e4?t+=n:e+=n}return t>e}get uri(){return this._associatedResource}getOptions(){return this._assertNotDisposed(),this._options}getFormattingOptions(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}}updateOptions(e){this._assertNotDisposed();const t="undefined"!==typeof e.tabSize?e.tabSize:this._options.tabSize,n="undefined"!==typeof e.indentSize?e.indentSize:this._options.originalIndentSize,i="undefined"!==typeof e.insertSpaces?e.insertSpaces:this._options.insertSpaces,r="undefined"!==typeof e.trimAutoWhitespace?e.trimAutoWhitespace:this._options.trimAutoWhitespace,s="undefined"!==typeof e.bracketColorizationOptions?e.bracketColorizationOptions:this._options.bracketPairColorizationOptions,o=new me.X2({tabSize:t,indentSize:n,insertSpaces:i,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:r,bracketPairColorizationOptions:s});if(this._options.equals(o))return;const a=this._options.createChangeEvent(o);this._options=o,this._bracketPairs.handleDidChangeOptions(a),this._decorationProvider.handleDidChangeOptions(a),this._onDidChangeOptions.fire(a)}detectIndentation(e,t){this._assertNotDisposed();const n=Xt(this._buffer,t,e);this.updateOptions({insertSpaces:n.insertSpaces,tabSize:n.tabSize,indentSize:n.tabSize})}normalizeIndentation(e){return this._assertNotDisposed(),g(e,this._options.indentSize,this._options.insertSpaces)}getVersionId(){return this._assertNotDisposed(),this._versionId}mightContainRTL(){return this._buffer.mightContainRTL()}mightContainUnusualLineTerminators(){return this._buffer.mightContainUnusualLineTerminators()}removeUnusualLineTerminators(e=null){const t=this.findMatches(h._J.source,!1,!0,!1,null,!1,1073741824);this._buffer.resetMightContainUnusualLineTerminators(),this.pushEditOperations(e,t.map((e=>({range:e.range,text:null}))),(()=>null))}mightContainNonBasicASCII(){return this._buffer.mightContainNonBasicASCII()}getAlternativeVersionId(){return this._assertNotDisposed(),this._alternativeVersionId}getInitialUndoRedoSnapshot(){return this._assertNotDisposed(),this._initialUndoRedoSnapshot}getOffsetAt(e){this._assertNotDisposed();const t=this._validatePosition(e.lineNumber,e.column,0);return this._buffer.getOffsetAt(t.lineNumber,t.column)}getPositionAt(e){this._assertNotDisposed();const t=Math.min(this._buffer.getLength(),Math.max(0,e));return this._buffer.getPositionAt(t)}_increaseVersionId(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId}_overwriteVersionId(e){this._versionId=e}_overwriteAlternativeVersionId(e){this._alternativeVersionId=e}_overwriteInitialUndoRedoSnapshot(e){this._initialUndoRedoSnapshot=e}getValue(e,t=!1){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new l.D7("Operation would exceed heap memory limits");const n=this.getFullModelRange(),i=this.getValueInRange(n,e);return t?this._buffer.getBOM()+i:i}createSnapshot(e=!1){return new Ki(this._buffer.createSnapshot(e))}getValueLength(e,t=!1){this._assertNotDisposed();const n=this.getFullModelRange(),i=this.getValueLengthInRange(n,e);return t?this._buffer.getBOM().length+i:i}getValueInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(e),t)}getValueLengthInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(e),t)}getCharacterCountInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(e),t)}getLineCount(){return this._assertNotDisposed(),this._buffer.getLineCount()}getLineContent(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineContent(e)}getLineLength(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineLength(e)}getLinesContent(){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new l.D7("Operation would exceed heap memory limits");return this._buffer.getLinesContent()}getEOL(){return this._assertNotDisposed(),this._buffer.getEOL()}getEndOfLineSequence(){return this._assertNotDisposed(),"\n"===this._buffer.getEOL()?0:1}getLineMinColumn(e){return this._assertNotDisposed(),1}getLineMaxColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineLength(e)+1}getLineFirstNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)}getLineLastNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)}_validateRangeRelaxedNoAllocations(e){const t=this._buffer.getLineCount(),n=e.startLineNumber,i=e.startColumn;let r=Math.floor("number"!==typeof n||isNaN(n)?1:n),s=Math.floor("number"!==typeof i||isNaN(i)?1:i);if(r<1)r=1,s=1;else if(r>t)r=t,s=this.getLineMaxColumn(r);else if(s<=1)s=1;else{const e=this.getLineMaxColumn(r);s>=e&&(s=e)}const o=e.endLineNumber,a=e.endColumn;let l=Math.floor("number"!==typeof o||isNaN(o)?1:o),h=Math.floor("number"!==typeof a||isNaN(a)?1:a);if(l<1)l=1,h=1;else if(l>t)l=t,h=this.getLineMaxColumn(l);else if(h<=1)h=1;else{const e=this.getLineMaxColumn(l);h>=e&&(h=e)}return n===r&&i===s&&o===l&&a===h&&e instanceof m.Q&&!(e instanceof p.L)?e:new m.Q(r,s,l,h)}_isValidPosition(e,t,n){if("number"!==typeof e||"number"!==typeof t)return!1;if(isNaN(e)||isNaN(t))return!1;if(e<1||t<1)return!1;if((0|e)!==e||(0|t)!==t)return!1;if(e>this._buffer.getLineCount())return!1;if(1===t)return!0;if(t>this.getLineMaxColumn(e))return!1;if(1===n){const n=this._buffer.getLineCharCode(e,t-2);if(h.pc(n))return!1}return!0}_validatePosition(e,t,n){const i=Math.floor("number"!==typeof e||isNaN(e)?1:e),r=Math.floor("number"!==typeof t||isNaN(t)?1:t),s=this._buffer.getLineCount();if(i<1)return new f.y(1,1);if(i>s)return new f.y(s,this.getLineMaxColumn(s));if(r<=1)return new f.y(i,1);const o=this.getLineMaxColumn(i);if(r>=o)return new f.y(i,o);if(1===n){const e=this._buffer.getLineCharCode(i,r-2);if(h.pc(e))return new f.y(i,r-1)}return new f.y(i,r)}validatePosition(e){return this._assertNotDisposed(),e instanceof f.y&&this._isValidPosition(e.lineNumber,e.column,1)?e:this._validatePosition(e.lineNumber,e.column,1)}_isValidRange(e,t){const n=e.startLineNumber,i=e.startColumn,r=e.endLineNumber,s=e.endColumn;if(!this._isValidPosition(n,i,0))return!1;if(!this._isValidPosition(r,s,0))return!1;if(1===t){const e=i>1?this._buffer.getLineCharCode(n,i-2):0,t=s>1&&s<=this._buffer.getLineLength(r)?this._buffer.getLineCharCode(r,s-2):0,o=h.pc(e),a=h.pc(t);return!o&&!a}return!0}validateRange(e){if(this._assertNotDisposed(),e instanceof m.Q&&!(e instanceof p.L)&&this._isValidRange(e,1))return e;const t=this._validatePosition(e.startLineNumber,e.startColumn,0),n=this._validatePosition(e.endLineNumber,e.endColumn,0),i=t.lineNumber,r=t.column,s=n.lineNumber,o=n.column;{const e=r>1?this._buffer.getLineCharCode(i,r-2):0,t=o>1&&o<=this._buffer.getLineLength(s)?this._buffer.getLineCharCode(s,o-2):0,n=h.pc(e),a=h.pc(t);return n||a?i===s&&r===o?new m.Q(i,r-1,s,o-1):n&&a?new m.Q(i,r-1,s,o+1):n?new m.Q(i,r-1,s,o):new m.Q(i,r,s,o+1):new m.Q(i,r,s,o)}}modifyPosition(e,t){this._assertNotDisposed();const n=this.getOffsetAt(e)+t;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,n)))}getFullModelRange(){this._assertNotDisposed();const e=this.getLineCount();return new m.Q(1,1,e,this.getLineMaxColumn(e))}findMatchesLineByLine(e,t,n,i){return this._buffer.findMatchesLineByLine(e,t,n,i)}findMatches(e,t,n,i,r,s,o=999){this._assertNotDisposed();let a=null;null!==t&&(Array.isArray(t)||(t=[t]),t.every((e=>m.Q.isIRange(e)))&&(a=t.map((e=>this.validateRange(e))))),null===a&&(a=[this.getFullModelRange()]),a=a.sort(((e,t)=>e.startLineNumber-t.startLineNumber||e.startColumn-t.startColumn));const l=[];let h;if(l.push(a.reduce(((e,t)=>m.Q.areIntersecting(e,t)?e.plusRange(t):(l.push(e),t)))),!n&&e.indexOf("\n")<0){const t=new Bn.lt(e,n,i,r).parseSearchRequest();if(!t)return[];h=e=>this.findMatchesLineByLine(e,t,s,o)}else h=t=>Bn.hB.findMatches(this,new Bn.lt(e,n,i,r),t,s,o);return l.map(h).reduce(((e,t)=>e.concat(t)),[])}findNextMatch(e,t,n,i,r,s){this._assertNotDisposed();const o=this.validatePosition(t);if(!n&&e.indexOf("\n")<0){const t=new Bn.lt(e,n,i,r).parseSearchRequest();if(!t)return null;const a=this.getLineCount();let l=new m.Q(o.lineNumber,o.column,a,this.getLineMaxColumn(a)),h=this.findMatchesLineByLine(l,t,s,1);return Bn.hB.findNextMatch(this,new Bn.lt(e,n,i,r),o,s),h.length>0?h[0]:(l=new m.Q(1,1,o.lineNumber,this.getLineMaxColumn(o.lineNumber)),h=this.findMatchesLineByLine(l,t,s,1),h.length>0?h[0]:null)}return Bn.hB.findNextMatch(this,new Bn.lt(e,n,i,r),o,s)}findPreviousMatch(e,t,n,i,r,s){this._assertNotDisposed();const o=this.validatePosition(t);return Bn.hB.findPreviousMatch(this,new Bn.lt(e,n,i,r),o,s)}pushStackElement(){this._commandManager.pushStackElement()}popStackElement(){this._commandManager.popStackElement()}pushEOL(e){if(("\n"===this.getEOL()?0:1)!==e)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEOL(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_validateEditOperation(e){return e instanceof me.Wo?e:new me.Wo(e.identifier||null,this.validateRange(e.range),e.text,e.forceMoveMarkers||!1,e.isAutoWhitespaceEdit||!1,e._isTracked||!1)}_validateEditOperations(e){const t=[];for(let n=0,i=e.length;n<i;n++)t[n]=this._validateEditOperation(e[n]);return t}pushEditOperations(e,t,n,i){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(e,this._validateEditOperations(t),n,i)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_pushEditOperations(e,t,n,i){if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){const n=t.map((e=>({range:this.validateRange(e.range),text:e.text})));let i=!0;if(e)for(let t=0,r=e.length;t<r;t++){const r=e[t];let s=!1;for(let e=0,t=n.length;e<t;e++){const t=n[e].range,i=t.startLineNumber>r.endLineNumber,o=r.startLineNumber>t.endLineNumber;if(!i&&!o){s=!0;break}}if(!s){i=!1;break}}if(i)for(let e=0,r=this._trimAutoWhitespaceLines.length;e<r;e++){const i=this._trimAutoWhitespaceLines[e],r=this.getLineMaxColumn(i);let s=!0;for(let e=0,t=n.length;e<t;e++){const t=n[e].range,o=n[e].text;if(!(i<t.startLineNumber||i>t.endLineNumber)&&(!(i===t.startLineNumber&&t.startColumn===r&&t.isEmpty()&&o&&o.length>0&&"\n"===o.charAt(0))&&!(i===t.startLineNumber&&1===t.startColumn&&t.isEmpty()&&o&&o.length>0&&"\n"===o.charAt(o.length-1)))){s=!1;break}}if(s){const e=new m.Q(i,1,i,r);t.push(new me.Wo(null,e,null,!1,!1,!1))}}this._trimAutoWhitespaceLines=null}return null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEditOperation(e,t,n,i)}_applyUndo(e,t,n,i){const r=e.map((e=>{const t=this.getPositionAt(e.newPosition),n=this.getPositionAt(e.newEnd);return{range:new m.Q(t.lineNumber,t.column,n.lineNumber,n.column),text:e.oldText}}));this._applyUndoRedoEdits(r,t,!0,!1,n,i)}_applyRedo(e,t,n,i){const r=e.map((e=>{const t=this.getPositionAt(e.oldPosition),n=this.getPositionAt(e.oldEnd);return{range:new m.Q(t.lineNumber,t.column,n.lineNumber,n.column),text:e.newText}}));this._applyUndoRedoEdits(r,t,!1,!0,n,i)}_applyUndoRedoEdits(e,t,n,i,r,s){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._isUndoing=n,this._isRedoing=i,this.applyEdits(e,!1),this.setEOL(t),this._overwriteAlternativeVersionId(r)}finally{this._isUndoing=!1,this._isRedoing=!1,this._eventEmitter.endDeferredEmit(s),this._onDidChangeDecorations.endDeferredEmit()}}applyEdits(e,t=!1){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit();const n=this._validateEditOperations(e);return this._doApplyEdits(n,t)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_doApplyEdits(e,t){const n=this._buffer.getLineCount(),i=this._buffer.applyEdits(e,this._options.trimAutoWhitespace,t),r=this._buffer.getLineCount(),s=i.changes;if(this._trimAutoWhitespaceLines=i.trimAutoWhitespaceLineNumbers,0!==s.length){for(let n=0,i=s.length;n<i;n++){const e=s[n];this._decorationsTree.acceptReplace(e.rangeOffset,e.rangeLength,e.text.length,e.forceMoveMarkers)}const e=[];this._increaseVersionId();let t=n;for(let n=0,i=s.length;n<i;n++){const i=s[n],[a]=(0,d.W)(i.text);this._onDidChangeDecorations.fire();const l=i.range.startLineNumber,h=i.range.endLineNumber,c=h-l,u=a,g=Math.min(c,u),m=u-c,p=r-t-m+l,_=p,b=p+u,v=this._decorationsTree.getInjectedTextInInterval(this,this.getOffsetAt(new f.y(_,1)),this.getOffsetAt(new f.y(b,this.getLineMaxColumn(b))),0),w=Mi.fromDecorations(v),k=new o.j3(w);for(let t=g;t>=0;t--){const n=l+t,i=p+t;k.takeFromEndWhile((e=>e.lineNumber>i));const r=k.takeFromEndWhile((e=>e.lineNumber===i));e.push(new Ni(n,this.getLineContent(i),r))}if(g<c){const t=l+g;e.push(new Ri(t+1,h))}if(g<u){const n=new o.j3(w),i=l+g,s=u-g,a=r-t-s+i+1,h=[],c=[];for(let e=0;e<s;e++){const t=a+e;c[e]=this.getLineContent(t),n.takeWhile((e=>e.lineNumber<t)),h[e]=n.takeWhile((e=>e.lineNumber===t))}e.push(new Di(i+1,l+u,c,h))}t+=m}this._emitContentChangedEvent(new Bi(e,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:s,eol:this._buffer.getEOL(),isEolChange:!1,versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return null===i.reverseEdits?void 0:i.reverseEdits}undo(){return this._undoRedoService.undo(this.uri)}canUndo(){return this._undoRedoService.canUndo(this.uri)}redo(){return this._undoRedoService.redo(this.uri)}canRedo(){return this._undoRedoService.canRedo(this.uri)}handleBeforeFireDecorationsChangedEvent(e){if(null===e||0===e.size)return;const t=Array.from(e).map((e=>new Ni(e,this.getLineContent(e),this._getInjectedTextInLine(e))));this._onDidChangeInjectedText.fire(new zi(t))}changeDecorations(e,t=0){this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(t,e)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_changeDecorations(e,t){const n={addDecoration:(t,n)=>this._deltaDecorationsImpl(e,[],[{range:t,options:n}])[0],changeDecoration:(e,t)=>{this._changeDecorationImpl(e,t)},changeDecorationOptions:(e,t)=>{this._changeDecorationOptionsImpl(e,ar(t))},removeDecoration:t=>{this._deltaDecorationsImpl(e,[t],[])},deltaDecorations:(t,n)=>0===t.length&&0===n.length?[]:this._deltaDecorationsImpl(e,t,n)};let i=null;try{i=t(n)}catch(r){(0,l.dz)(r)}return n.addDecoration=$i,n.changeDecoration=$i,n.changeDecorationOptions=$i,n.removeDecoration=$i,n.deltaDecorations=$i,i}deltaDecorations(e,t,n=0){if(this._assertNotDisposed(),e||(e=[]),0===e.length&&0===t.length)return[];try{return this._deltaDecorationCallCnt++,this._deltaDecorationCallCnt>1&&(console.warn("Invoking deltaDecorations recursively could lead to leaking decorations."),(0,l.dz)(new Error("Invoking deltaDecorations recursively could lead to leaking decorations."))),this._onDidChangeDecorations.beginDeferredEmit(),this._deltaDecorationsImpl(n,e,t)}finally{this._onDidChangeDecorations.endDeferredEmit(),this._deltaDecorationCallCnt--}}_getTrackedRange(e){return this.getDecorationRange(e)}_setTrackedRange(e,t,n){const i=e?this._decorations[e]:null;if(!i)return t?this._deltaDecorationsImpl(0,[],[{range:t,options:or[n]}],!0)[0]:null;if(!t)return this._decorationsTree.delete(i),delete this._decorations[i.id],null;const r=this._validateRangeRelaxedNoAllocations(t),s=this._buffer.getOffsetAt(r.startLineNumber,r.startColumn),o=this._buffer.getOffsetAt(r.endLineNumber,r.endColumn);return this._decorationsTree.delete(i),i.reset(this.getVersionId(),s,o,r),i.setOptions(or[n]),this._decorationsTree.insert(i),i.id}removeAllDecorationsWithOwnerId(e){if(this._isDisposed)return;const t=this._decorationsTree.collectNodesFromOwner(e);for(let n=0,i=t.length;n<i;n++){const e=t[n];this._decorationsTree.delete(e),delete this._decorations[e.id]}}getDecorationOptions(e){const t=this._decorations[e];return t?t.options:null}getDecorationRange(e){const t=this._decorations[e];return t?this._decorationsTree.getNodeRange(this,t):null}getLineDecorations(e,t=0,n=!1){return e<1||e>this.getLineCount()?[]:this.getLinesDecorations(e,e,t,n)}getLinesDecorations(e,t,n=0,i=!1,r=!1){const s=this.getLineCount(),a=Math.min(s,Math.max(1,e)),l=Math.min(s,Math.max(1,t)),h=this.getLineMaxColumn(l),c=new m.Q(a,1,l,h),d=this._getDecorationsInRange(c,n,i,r);return(0,o.E4)(d,this._decorationProvider.getDecorationsInRange(c,n,i)),d}getDecorationsInRange(e,t=0,n=!1,i=!1,r=!1){const s=this.validateRange(e),a=this._getDecorationsInRange(s,t,n,r);return(0,o.E4)(a,this._decorationProvider.getDecorationsInRange(s,t,n,i)),a}getOverviewRulerDecorations(e=0,t=!1){return this._decorationsTree.getAll(this,e,t,!0,!1)}getInjectedTextDecorations(e=0){return this._decorationsTree.getAllInjectedText(this,e)}_getInjectedTextInLine(e){const t=this._buffer.getOffsetAt(e,1),n=t+this._buffer.getLineLength(e),i=this._decorationsTree.getInjectedTextInInterval(this,t,n,0);return Mi.fromDecorations(i).filter((t=>t.lineNumber===e))}getAllDecorations(e=0,t=!1){let n=this._decorationsTree.getAll(this,e,t,!1,!1);return n=n.concat(this._decorationProvider.getAllDecorations(e,t)),n}getAllMarginDecorations(e=0){return this._decorationsTree.getAll(this,e,!1,!1,!0)}_getDecorationsInRange(e,t,n,i){const r=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),s=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn);return this._decorationsTree.getAllInInterval(this,r,s,t,n,i)}getRangeAt(e,t){return this._buffer.getRangeAt(e,t-e)}_changeDecorationImpl(e,t){const n=this._decorations[e];if(!n)return;if(n.options.after){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.endLineNumber)}if(n.options.before){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.startLineNumber)}const i=this._validateRangeRelaxedNoAllocations(t),r=this._buffer.getOffsetAt(i.startLineNumber,i.startColumn),s=this._buffer.getOffsetAt(i.endLineNumber,i.endColumn);this._decorationsTree.delete(n),n.reset(this.getVersionId(),r,s,i),this._decorationsTree.insert(n),this._onDidChangeDecorations.checkAffectedAndFire(n.options),n.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(i.endLineNumber),n.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(i.startLineNumber)}_changeDecorationOptionsImpl(e,t){const n=this._decorations[e];if(!n)return;const i=!(!n.options.overviewRuler||!n.options.overviewRuler.color),r=!(!t.overviewRuler||!t.overviewRuler.color);if(this._onDidChangeDecorations.checkAffectedAndFire(n.options),this._onDidChangeDecorations.checkAffectedAndFire(t),n.options.after||t.after){const e=this._decorationsTree.getNodeRange(this,n);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(n.options.before||t.before){const e=this._decorationsTree.getNodeRange(this,n);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}const s=i!==r,o=function(e){return!!e.after||!!e.before}(t)!==Xi(n);s||o?(this._decorationsTree.delete(n),n.setOptions(t),this._decorationsTree.insert(n)):n.setOptions(t)}_deltaDecorationsImpl(e,t,n,i=!1){const r=this.getVersionId(),s=t.length;let o=0;const a=n.length;let l=0;this._onDidChangeDecorations.beginDeferredEmit();try{const h=new Array(a);for(;o<s||l<a;){let c=null;if(o<s){do{c=this._decorations[t[o++]]}while(!c&&o<s);if(c){if(c.options.after){const e=this._decorationsTree.getNodeRange(this,c);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(c.options.before){const e=this._decorationsTree.getNodeRange(this,c);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}this._decorationsTree.delete(c),i||this._onDidChangeDecorations.checkAffectedAndFire(c.options)}}if(l<a){if(!c){const e=++this._lastDecorationId,t=`${this._instanceId};${e}`;c=new hn(t,0,0),this._decorations[t]=c}const t=n[l],s=this._validateRangeRelaxedNoAllocations(t.range),o=ar(t.options),a=this._buffer.getOffsetAt(s.startLineNumber,s.startColumn),d=this._buffer.getOffsetAt(s.endLineNumber,s.endColumn);c.ownerId=e,c.reset(r,a,d,s),c.setOptions(o),c.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(s.endLineNumber),c.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(s.startLineNumber),i||this._onDidChangeDecorations.checkAffectedAndFire(o),this._decorationsTree.insert(c),h[l]=c.id,l++}else c&&delete this._decorations[c.id]}return h}finally{this._onDidChangeDecorations.endDeferredEmit()}}getLanguageId(){return this.tokenization.getLanguageId()}setLanguage(e,t){"string"===typeof e?(this._languageSelectionListener.clear(),this._setLanguage(e,t)):(this._languageSelectionListener.value=e.onDidChange((()=>this._setLanguage(e.languageId,t))),this._setLanguage(e.languageId,t))}_setLanguage(e,t){this.tokenization.setLanguageId(e,t),this._languageService.requestRichLanguageFeatures(e)}getLanguageIdAtPosition(e,t){return this.tokenization.getLanguageIdAtPosition(e,t)}getWordAtPosition(e){return this._tokenizationTextModelPart.getWordAtPosition(e)}getWordUntilPosition(e){return this._tokenizationTextModelPart.getWordUntilPosition(e)}normalizePosition(e,t){return e}getLineIndentColumn(e){return function(e){let t=0;for(const n of e){if(" "!==n&&"\t"!==n)break;t++}return t}(this.getLineContent(e))+1}};function Yi(e){return!(!e.options.overviewRuler||!e.options.overviewRuler.color)}function Xi(e){return!!e.options.after||!!e.options.before}Qi=Ui=qi([Vi(4,Fi),Vi(5,v.L),Vi(6,se),Vi(7,G._Y)],Qi);class Ji{constructor(){this._decorationsTree0=new dn,this._decorationsTree1=new dn,this._injectedTextDecorationsTree=new dn}ensureAllNodesHaveRanges(e){this.getAll(e,0,!1,!1,!1)}_ensureNodesHaveRanges(e,t){for(const n of t)null===n.range&&(n.range=e.getRangeAt(n.cachedAbsoluteStart,n.cachedAbsoluteEnd));return t}getAllInInterval(e,t,n,i,r,s){const o=e.getVersionId(),a=this._intervalSearch(t,n,i,r,o,s);return this._ensureNodesHaveRanges(e,a)}_intervalSearch(e,t,n,i,r,s){const o=this._decorationsTree0.intervalSearch(e,t,n,i,r,s),a=this._decorationsTree1.intervalSearch(e,t,n,i,r,s),l=this._injectedTextDecorationsTree.intervalSearch(e,t,n,i,r,s);return o.concat(a).concat(l)}getInjectedTextInInterval(e,t,n,i){const r=e.getVersionId(),s=this._injectedTextDecorationsTree.intervalSearch(t,n,i,!1,r,!1);return this._ensureNodesHaveRanges(e,s).filter((e=>e.options.showIfCollapsed||!e.range.isEmpty()))}getAllInjectedText(e,t){const n=e.getVersionId(),i=this._injectedTextDecorationsTree.search(t,!1,n,!1);return this._ensureNodesHaveRanges(e,i).filter((e=>e.options.showIfCollapsed||!e.range.isEmpty()))}getAll(e,t,n,i,r){const s=e.getVersionId(),o=this._search(t,n,i,s,r);return this._ensureNodesHaveRanges(e,o)}_search(e,t,n,i,r){if(n)return this._decorationsTree1.search(e,t,i,r);{const n=this._decorationsTree0.search(e,t,i,r),s=this._decorationsTree1.search(e,t,i,r),o=this._injectedTextDecorationsTree.search(e,t,i,r);return n.concat(s).concat(o)}}collectNodesFromOwner(e){const t=this._decorationsTree0.collectNodesFromOwner(e),n=this._decorationsTree1.collectNodesFromOwner(e),i=this._injectedTextDecorationsTree.collectNodesFromOwner(e);return t.concat(n).concat(i)}collectNodesPostOrder(){const e=this._decorationsTree0.collectNodesPostOrder(),t=this._decorationsTree1.collectNodesPostOrder(),n=this._injectedTextDecorationsTree.collectNodesPostOrder();return e.concat(t).concat(n)}insert(e){Xi(e)?this._injectedTextDecorationsTree.insert(e):Yi(e)?this._decorationsTree1.insert(e):this._decorationsTree0.insert(e)}delete(e){Xi(e)?this._injectedTextDecorationsTree.delete(e):Yi(e)?this._decorationsTree1.delete(e):this._decorationsTree0.delete(e)}getNodeRange(e,t){const n=e.getVersionId();return t.cachedVersionId!==n&&this._resolveNode(t,n),null===t.range&&(t.range=e.getRangeAt(t.cachedAbsoluteStart,t.cachedAbsoluteEnd)),t.range}_resolveNode(e,t){Xi(e)?this._injectedTextDecorationsTree.resolveNode(e,t):Yi(e)?this._decorationsTree1.resolveNode(e,t):this._decorationsTree0.resolveNode(e,t)}acceptReplace(e,t,n,i){this._decorationsTree0.acceptReplace(e,t,n,i),this._decorationsTree1.acceptReplace(e,t,n,i),this._injectedTextDecorationsTree.acceptReplace(e,t,n,i)}}function Zi(e){return e.replace(/[^a-z0-9\-_]/gi," ")}class er{constructor(e){this.color=e.color||"",this.darkColor=e.darkColor||""}}class tr extends er{constructor(e){super(e),this._resolvedColor=null,this.position="number"===typeof e.position?e.position:me.A5.Center}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=null}_resolveColor(e,t){if("string"===typeof e)return e;const n=e?t.getColor(e.id):null;return n?n.toString():""}}class nr{constructor(e){this.position=e?.position??me.ZS.Center,this.persistLane=e?.persistLane}}class ir extends er{constructor(e){super(e),this.position=e.position,this.sectionHeaderStyle=e.sectionHeaderStyle??null,this.sectionHeaderText=e.sectionHeaderText??null}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=void 0}_resolveColor(e,t){return"string"===typeof e?a.Q1.fromHex(e):t.getColor(e.id)}}class rr{static from(e){return e instanceof rr?e:new rr(e)}constructor(e){this.content=e.content||"",this.inlineClassName=e.inlineClassName||null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.attachedData=e.attachedData||null,this.cursorStops=e.cursorStops||null}}class sr{static register(e){return new sr(e)}static createDynamic(e){return new sr(e)}constructor(e){this.description=e.description,this.blockClassName=e.blockClassName?Zi(e.blockClassName):null,this.blockDoesNotCollapse=e.blockDoesNotCollapse??null,this.blockIsAfterEnd=e.blockIsAfterEnd??null,this.blockPadding=e.blockPadding??null,this.stickiness=e.stickiness||0,this.zIndex=e.zIndex||0,this.className=e.className?Zi(e.className):null,this.shouldFillLineOnLineBreak=e.shouldFillLineOnLineBreak??null,this.hoverMessage=e.hoverMessage||null,this.glyphMarginHoverMessage=e.glyphMarginHoverMessage||null,this.lineNumberHoverMessage=e.lineNumberHoverMessage||null,this.isWholeLine=e.isWholeLine||!1,this.showIfCollapsed=e.showIfCollapsed||!1,this.collapseOnReplaceEdit=e.collapseOnReplaceEdit||!1,this.overviewRuler=e.overviewRuler?new tr(e.overviewRuler):null,this.minimap=e.minimap?new ir(e.minimap):null,this.glyphMargin=e.glyphMarginClassName?new nr(e.glyphMargin):null,this.glyphMarginClassName=e.glyphMarginClassName?Zi(e.glyphMarginClassName):null,this.linesDecorationsClassName=e.linesDecorationsClassName?Zi(e.linesDecorationsClassName):null,this.lineNumberClassName=e.lineNumberClassName?Zi(e.lineNumberClassName):null,this.linesDecorationsTooltip=e.linesDecorationsTooltip?h.jy(e.linesDecorationsTooltip):null,this.firstLineDecorationClassName=e.firstLineDecorationClassName?Zi(e.firstLineDecorationClassName):null,this.marginClassName=e.marginClassName?Zi(e.marginClassName):null,this.inlineClassName=e.inlineClassName?Zi(e.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=e.beforeContentClassName?Zi(e.beforeContentClassName):null,this.afterContentClassName=e.afterContentClassName?Zi(e.afterContentClassName):null,this.after=e.after?rr.from(e.after):null,this.before=e.before?rr.from(e.before):null,this.hideInCommentTokens=e.hideInCommentTokens??!1,this.hideInStringTokens=e.hideInStringTokens??!1}}sr.EMPTY=sr.register({description:"empty"});const or=[sr.register({description:"tracked-range-always-grows-when-typing-at-edges",stickiness:0}),sr.register({description:"tracked-range-never-grows-when-typing-at-edges",stickiness:1}),sr.register({description:"tracked-range-grows-only-when-typing-before",stickiness:2}),sr.register({description:"tracked-range-grows-only-when-typing-after",stickiness:3})];function ar(e){return e instanceof sr?e:sr.createDynamic(e)}class lr extends r.jG{constructor(e){super(),this.handleBeforeFire=e,this._actual=this._register(new i.vl),this.event=this._actual.event,this._affectedInjectedTextLines=null,this._deferredCnt=0,this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._affectsLineNumber=!1}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(){this._deferredCnt--,0===this._deferredCnt&&(this._shouldFireDeferred&&this.doFire(),this._affectedInjectedTextLines?.clear(),this._affectedInjectedTextLines=null)}recordLineAffectedByInjectedText(e){this._affectedInjectedTextLines||(this._affectedInjectedTextLines=new Set),this._affectedInjectedTextLines.add(e)}checkAffectedAndFire(e){this._affectsMinimap||=!!e.minimap?.position,this._affectsOverviewRuler||=!!e.overviewRuler?.color,this._affectsGlyphMargin||=!!e.glyphMarginClassName,this._affectsLineNumber||=!!e.lineNumberClassName,this.tryFire()}fire(){this._affectsMinimap=!0,this._affectsOverviewRuler=!0,this._affectsGlyphMargin=!0,this.tryFire()}tryFire(){0===this._deferredCnt?this.doFire():this._shouldFireDeferred=!0}doFire(){this.handleBeforeFire(this._affectedInjectedTextLines);const e={affectsMinimap:this._affectsMinimap,affectsOverviewRuler:this._affectsOverviewRuler,affectsGlyphMargin:this._affectsGlyphMargin,affectsLineNumber:this._affectsLineNumber};this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._actual.fire(e)}}class hr extends r.jG{constructor(){super(),this._fastEmitter=this._register(new i.vl),this.fastEvent=this._fastEmitter.event,this._slowEmitter=this._register(new i.vl),this.slowEvent=this._slowEmitter.event,this._deferredCnt=0,this._deferredEvent=null}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(e=null){if(this._deferredCnt--,0===this._deferredCnt&&null!==this._deferredEvent){this._deferredEvent.rawContentChangedEvent.resultingSelection=e;const t=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(t),this._slowEmitter.fire(t)}}fire(e){this._deferredCnt>0?this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e:(this._fastEmitter.fire(e),this._slowEmitter.fire(e))}}var cr,dr=n(360),ur=n(5600),gr=n(6456),fr=n(146),mr=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},pr=function(e,t){return function(n,i){t(n,i,e)}};function _r(e){return e.toString()}class br{constructor(e,t,n){this.model=e,this._modelEventListeners=new r.Cm,this.model=e,this._modelEventListeners.add(e.onWillDispose((()=>t(e)))),this._modelEventListeners.add(e.onDidChangeLanguage((t=>n(e,t))))}dispose(){this._modelEventListeners.dispose()}}const vr=s.j9||s.zx?1:2;class wr{constructor(e,t,n,i,r,s,o,a){this.uri=e,this.initialUndoRedoSnapshot=t,this.time=n,this.sharesUndoRedoStack=i,this.heapSize=r,this.sha1=s,this.versionId=o,this.alternativeVersionId=a}}let kr=class extends r.jG{static{cr=this}static{this.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK=20971520}constructor(e,t,n,r){super(),this._configurationService=e,this._resourcePropertiesService=t,this._undoRedoService=n,this._instantiationService=r,this._onModelAdded=this._register(new i.vl),this.onModelAdded=this._onModelAdded.event,this._onModelRemoved=this._register(new i.vl),this.onModelRemoved=this._onModelRemoved.event,this._onModelModeChanged=this._register(new i.vl),this.onModelLanguageChanged=this._onModelModeChanged.event,this._modelCreationOptionsByLanguageAndResource=Object.create(null),this._models={},this._disposedModels=new Map,this._disposedModelsHeapSize=0,this._register(this._configurationService.onDidChangeConfiguration((e=>this._updateModelOptions(e)))),this._updateModelOptions(void 0)}static _readModelOptions(e,t){let n=_.tabSize;if(e.editor&&"undefined"!==typeof e.editor.tabSize){const t=parseInt(e.editor.tabSize,10);isNaN(t)||(n=t),n<1&&(n=1)}let i="tabSize";if(e.editor&&"undefined"!==typeof e.editor.indentSize&&"tabSize"!==e.editor.indentSize){const t=parseInt(e.editor.indentSize,10);isNaN(t)||(i=Math.max(t,1))}let r=_.insertSpaces;e.editor&&"undefined"!==typeof e.editor.insertSpaces&&(r="false"!==e.editor.insertSpaces&&Boolean(e.editor.insertSpaces));let s=vr;const o=e.eol;"\r\n"===o?s=2:"\n"===o&&(s=1);let a=_.trimAutoWhitespace;e.editor&&"undefined"!==typeof e.editor.trimAutoWhitespace&&(a="false"!==e.editor.trimAutoWhitespace&&Boolean(e.editor.trimAutoWhitespace));let l=_.detectIndentation;e.editor&&"undefined"!==typeof e.editor.detectIndentation&&(l="false"!==e.editor.detectIndentation&&Boolean(e.editor.detectIndentation));let h=_.largeFileOptimizations;e.editor&&"undefined"!==typeof e.editor.largeFileOptimizations&&(h="false"!==e.editor.largeFileOptimizations&&Boolean(e.editor.largeFileOptimizations));let c=_.bracketPairColorizationOptions;return e.editor?.bracketPairColorization&&"object"===typeof e.editor.bracketPairColorization&&(c={enabled:!!e.editor.bracketPairColorization.enabled,independentColorPoolPerBracketType:!!e.editor.bracketPairColorization.independentColorPoolPerBracketType}),{isForSimpleWidget:t,tabSize:n,indentSize:i,insertSpaces:r,detectIndentation:l,defaultEOL:s,trimAutoWhitespace:a,largeFileOptimizations:h,bracketPairColorizationOptions:c}}_getEOL(e,t){if(e)return this._resourcePropertiesService.getEOL(e,t);const n=this._configurationService.getValue("files.eol",{overrideIdentifier:t});return n&&"string"===typeof n&&"auto"!==n?n:3===s.OS||2===s.OS?"\n":"\r\n"}_shouldRestoreUndoStack(){const e=this._configurationService.getValue("files.restoreUndoStack");return"boolean"!==typeof e||e}getCreationOptions(e,t,n){const i="string"===typeof e?e:e.languageId;let r=this._modelCreationOptionsByLanguageAndResource[i+t];if(!r){const e=this._configurationService.getValue("editor",{overrideIdentifier:i,resource:t}),s=this._getEOL(t,i);r=cr._readModelOptions({editor:e,eol:s},n),this._modelCreationOptionsByLanguageAndResource[i+t]=r}return r}_updateModelOptions(e){const t=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);const n=Object.keys(this._models);for(let i=0,r=n.length;i<r;i++){const r=n[i],s=this._models[r],o=s.model.getLanguageId(),a=s.model.uri;if(e&&!e.affectsConfiguration("editor",{overrideIdentifier:o,resource:a})&&!e.affectsConfiguration("files.eol",{overrideIdentifier:o,resource:a}))continue;const l=t[o+a],h=this.getCreationOptions(o,a,s.model.isForSimpleWidget);cr._setModelOptionsForModel(s.model,h,l)}}static _setModelOptionsForModel(e,t,n){n&&n.defaultEOL!==t.defaultEOL&&1===e.getLineCount()&&e.setEOL(1===t.defaultEOL?0:1),n&&n.detectIndentation===t.detectIndentation&&n.insertSpaces===t.insertSpaces&&n.tabSize===t.tabSize&&n.indentSize===t.indentSize&&n.trimAutoWhitespace===t.trimAutoWhitespace&&(0,fr.aI)(n.bracketPairColorizationOptions,t.bracketPairColorizationOptions)||(t.detectIndentation?(e.detectIndentation(t.insertSpaces,t.tabSize),e.updateOptions({trimAutoWhitespace:t.trimAutoWhitespace,bracketColorizationOptions:t.bracketPairColorizationOptions})):e.updateOptions({insertSpaces:t.insertSpaces,tabSize:t.tabSize,indentSize:t.indentSize,trimAutoWhitespace:t.trimAutoWhitespace,bracketColorizationOptions:t.bracketPairColorizationOptions}))}_insertDisposedModel(e){this._disposedModels.set(_r(e.uri),e),this._disposedModelsHeapSize+=e.heapSize}_removeDisposedModel(e){const t=this._disposedModels.get(_r(e));return t&&(this._disposedModelsHeapSize-=t.heapSize),this._disposedModels.delete(_r(e)),t}_ensureDisposedModelsHeapSize(e){if(this._disposedModelsHeapSize>e){const t=[];for(this._disposedModels.forEach((e=>{e.sharesUndoRedoStack||t.push(e)})),t.sort(((e,t)=>e.time-t.time));t.length>0&&this._disposedModelsHeapSize>e;){const e=t.shift();this._removeDisposedModel(e.uri),null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}}}_createModelData(e,t,n,i){const r=this.getCreationOptions(t,n,i),s=this._instantiationService.createInstance(Qi,e,t,r,n);if(n&&this._disposedModels.has(_r(n))){const e=this._removeDisposedModel(n),t=this._undoRedoService.getElements(n),i=this._getSHA1Computer(),r=!!i.canComputeSHA1(s)&&i.computeSHA1(s)===e.sha1;if(r||e.sharesUndoRedoStack){for(const e of t.past)Wt(e)&&e.matchesResource(n)&&e.setModel(s);for(const e of t.future)Wt(e)&&e.matchesResource(n)&&e.setModel(s);this._undoRedoService.setElementsValidFlag(n,!0,(e=>Wt(e)&&e.matchesResource(n))),r&&(s._overwriteVersionId(e.versionId),s._overwriteAlternativeVersionId(e.alternativeVersionId),s._overwriteInitialUndoRedoSnapshot(e.initialUndoRedoSnapshot))}else null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}const o=_r(s.uri);if(this._models[o])throw new Error("ModelService: Cannot add model because it already exists!");const a=new br(s,(e=>this._onWillDispose(e)),((e,t)=>this._onDidChangeLanguage(e,t)));return this._models[o]=a,a}createModel(e,t,n,i=!1){let r;return r=t?this._createModelData(e,t,n,i):this._createModelData(e,Q.vH,n,i),this._onModelAdded.fire(r.model),r.model}getModels(){const e=[],t=Object.keys(this._models);for(let n=0,i=t.length;n<i;n++){const i=t[n];e.push(this._models[i].model)}return e}getModel(e){const t=_r(e),n=this._models[t];return n?n.model:null}_schemaShouldMaintainUndoRedoElements(e){return e.scheme===gr.ny.file||e.scheme===gr.ny.vscodeRemote||e.scheme===gr.ny.vscodeUserData||e.scheme===gr.ny.vscodeNotebookCell||"fake-fs"===e.scheme}_onWillDispose(e){const t=_r(e.uri),n=this._models[t],i=this._undoRedoService.getUriComparisonKey(e.uri)!==e.uri.toString();let r=!1,s=0;if(i||this._shouldRestoreUndoStack()&&this._schemaShouldMaintainUndoRedoElements(e.uri)){const t=this._undoRedoService.getElements(e.uri);if(t.past.length>0||t.future.length>0){for(const n of t.past)Wt(n)&&n.matchesResource(e.uri)&&(r=!0,s+=n.heapSize(e.uri),n.setModel(e.uri));for(const n of t.future)Wt(n)&&n.matchesResource(e.uri)&&(r=!0,s+=n.heapSize(e.uri),n.setModel(e.uri))}}const o=cr.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK,a=this._getSHA1Computer();if(r)if(i||!(s>o)&&a.canComputeSHA1(e))this._ensureDisposedModelsHeapSize(o-s),this._undoRedoService.setElementsValidFlag(e.uri,!1,(t=>Wt(t)&&t.matchesResource(e.uri))),this._insertDisposedModel(new wr(e.uri,n.model.getInitialUndoRedoSnapshot(),Date.now(),i,s,a.computeSHA1(e),e.getVersionId(),e.getAlternativeVersionId()));else{const e=n.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}else if(!i){const e=n.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}delete this._models[t],n.dispose(),delete this._modelCreationOptionsByLanguageAndResource[e.getLanguageId()+e.uri],this._onModelRemoved.fire(e)}_onDidChangeLanguage(e,t){const n=t.oldLanguage,i=e.getLanguageId(),r=this.getCreationOptions(n,e.uri,e.isForSimpleWidget),s=this.getCreationOptions(i,e.uri,e.isForSimpleWidget);cr._setModelOptionsForModel(e,s,r),this._onModelModeChanged.fire({model:e,oldLanguageId:n})}_getSHA1Computer(){return new yr}};kr=cr=mr([pr(0,K.pG),pr(1,dr.ITextResourcePropertiesService),pr(2,Fi),pr(3,G._Y)],kr);class yr{static{this.MAX_MODEL_SIZE=10485760}canComputeSHA1(e){return e.getValueLength()<=yr.MAX_MODEL_SIZE}computeSHA1(e){const t=new ur.v7,n=e.createSnapshot();let i;for(;i=n.read();)t.update(i);return t.digest()}}},1788:(e,t,n)=>{"use strict";function i(e){return e}n.d(t,{VV:()=>s,o5:()=>r});class r{constructor(e,t){this.lastCache=void 0,this.lastArgKey=void 0,"function"===typeof e?(this._fn=e,this._computeKey=i):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this._fn(e)),this.lastCache}}class s{get cachedValues(){return this._map}constructor(e,t){this._map=new Map,this._map2=new Map,"function"===typeof e?(this._fn=e,this._computeKey=i):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);if(this._map2.has(t))return this._map2.get(t);const n=this._fn(e);return this._map.set(e,n),this._map2.set(t,n),n}}},1929:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SimpleWorkerClient:()=>v,SimpleWorkerServer:()=>y,create:()=>T,logOnceWebWorkerWarning:()=>u});var i=n(4383),r=n(1234),s=n(1484),o=n(6456),a=n(8067),l=n(1508);const h="default",c="$initialize";let d=!1;function u(e){a.HZ&&(d||(d=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(e.message))}class g{constructor(e,t,n,i,r){this.vsWorker=e,this.req=t,this.channel=n,this.method=i,this.args=r,this.type=0}}class f{constructor(e,t,n,i){this.vsWorker=e,this.seq=t,this.res=n,this.err=i,this.type=1}}class m{constructor(e,t,n,i,r){this.vsWorker=e,this.req=t,this.channel=n,this.eventName=i,this.arg=r,this.type=2}}class p{constructor(e,t,n){this.vsWorker=e,this.req=t,this.event=n,this.type=3}}class _{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class b{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,t,n){const i=String(++this._lastSentReq);return new Promise(((r,s)=>{this._pendingReplies[i]={resolve:r,reject:s},this._send(new g(this._workerId,i,e,t,n))}))}listen(e,t,n){let i=null;const s=new r.vl({onWillAddFirstListener:()=>{i=String(++this._lastSentReq),this._pendingEmitters.set(i,s),this._send(new m(this._workerId,i,e,t,n))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(i),this._send(new _(this._workerId,i)),i=null}});return s.event}handleMessage(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))}createProxyToRemoteChannel(e,t){const n={get:(n,i)=>("string"!==typeof i||n[i]||(k(i)?n[i]=t=>this.listen(e,i,t):w(i)?n[i]=this.listen(e,i,void 0):36===i.charCodeAt(0)&&(n[i]=async(...n)=>(await(t?.()),this.sendMessage(e,i,n)))),n[i])};return new Proxy(Object.create(null),n)}_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])return void console.warn("Got reply to unknown seq");const t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let n=e.err;return e.err.$isError&&(n=new Error,n.name=e.err.name,n.message=e.err.message,n.stack=e.err.stack),void t.reject(n)}t.resolve(e.res)}_handleRequestMessage(e){const t=e.req;this._handler.handleMessage(e.channel,e.method,e.args).then((e=>{this._send(new f(this._workerId,t,e,void 0))}),(e=>{e.detail instanceof Error&&(e.detail=(0,i.cU)(e.detail)),this._send(new f(this._workerId,t,void 0,(0,i.cU)(e)))}))}_handleSubscribeEventMessage(e){const t=e.req,n=this._handler.handleEvent(e.channel,e.eventName,e.arg)((e=>{this._send(new p(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){const t=[];if(0===e.type)for(let n=0;n<e.args.length;n++)e.args[n]instanceof ArrayBuffer&&t.push(e.args[n]);else 1===e.type&&e.res instanceof ArrayBuffer&&t.push(e.res);this._handler.sendMessage(e,t)}}class v extends s.jG{constructor(e,t){super(),this._localChannels=new Map,this._worker=this._register(e.create({amdModuleId:"vs/base/common/worker/simpleWorker",esmModuleLocation:t.esmModuleLocation,label:t.label},(e=>{this._protocol.handleMessage(e)}),(e=>{(0,i.dz)(e)}))),this._protocol=new b({sendMessage:(e,t)=>{this._worker.postMessage(e,t)},handleMessage:(e,t,n)=>this._handleMessage(e,t,n),handleEvent:(e,t,n)=>this._handleEvent(e,t,n)}),this._protocol.setWorkerId(this._worker.getId());let n=null;const r=globalThis.require;"undefined"!==typeof r&&"function"===typeof r.getConfig?n=r.getConfig():"undefined"!==typeof globalThis.requirejs&&(n=globalThis.requirejs.s.contexts._.config),this._onModuleLoaded=this._protocol.sendMessage(h,c,[this._worker.getId(),JSON.parse(JSON.stringify(n)),t.amdModuleId]),this.proxy=this._protocol.createProxyToRemoteChannel(h,(async()=>{await this._onModuleLoaded})),this._onModuleLoaded.catch((e=>{this._onError("Worker failed to load "+t.amdModuleId,e)}))}_handleMessage(e,t,n){const i=this._localChannels.get(e);if(!i)return Promise.reject(new Error(`Missing channel ${e} on main thread`));if("function"!==typeof i[t])return Promise.reject(new Error(`Missing method ${t} on main thread channel ${e}`));try{return Promise.resolve(i[t].apply(i,n))}catch(r){return Promise.reject(r)}}_handleEvent(e,t,n){const i=this._localChannels.get(e);if(!i)throw new Error(`Missing channel ${e} on main thread`);if(k(t)){const r=i[t].call(i,n);if("function"!==typeof r)throw new Error(`Missing dynamic event ${t} on main thread channel ${e}.`);return r}if(w(t)){const n=i[t];if("function"!==typeof n)throw new Error(`Missing event ${t} on main thread channel ${e}.`);return n}throw new Error(`Malformed event name ${t}`)}setChannel(e,t){this._localChannels.set(e,t)}_onError(e,t){console.error(e),console.info(t)}}function w(e){return"o"===e[0]&&"n"===e[1]&&l.Wv(e.charCodeAt(2))}function k(e){return/^onDynamic/.test(e)&&l.Wv(e.charCodeAt(9))}class y{constructor(e,t){this._localChannels=new Map,this._remoteChannels=new Map,this._requestHandlerFactory=t,this._requestHandler=null,this._protocol=new b({sendMessage:(t,n)=>{e(t,n)},handleMessage:(e,t,n)=>this._handleMessage(e,t,n),handleEvent:(e,t,n)=>this._handleEvent(e,t,n)})}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,t,n){if(e===h&&t===c)return this.initialize(n[0],n[1],n[2]);const i=e===h?this._requestHandler:this._localChannels.get(e);if(!i)return Promise.reject(new Error(`Missing channel ${e} on worker thread`));if("function"!==typeof i[t])return Promise.reject(new Error(`Missing method ${t} on worker thread channel ${e}`));try{return Promise.resolve(i[t].apply(i,n))}catch(r){return Promise.reject(r)}}_handleEvent(e,t,n){const i=e===h?this._requestHandler:this._localChannels.get(e);if(!i)throw new Error(`Missing channel ${e} on worker thread`);if(k(t)){const e=i[t].call(i,n);if("function"!==typeof e)throw new Error(`Missing dynamic event ${t} on request handler.`);return e}if(w(t)){const e=i[t];if("function"!==typeof e)throw new Error(`Missing event ${t} on request handler.`);return e}throw new Error(`Malformed event name ${t}`)}getChannel(e){if(!this._remoteChannels.has(e)){const t=this._protocol.createProxyToRemoteChannel(e);this._remoteChannels.set(e,t)}return this._remoteChannels.get(e)}async initialize(e,t,i){if(this._protocol.setWorkerId(e),!this._requestHandlerFactory){t&&("undefined"!==typeof t.baseUrl&&delete t.baseUrl,"undefined"!==typeof t.paths&&"undefined"!==typeof t.paths.vs&&delete t.paths.vs,"undefined"!==typeof t.trustedTypesPolicy&&delete t.trustedTypesPolicy,t.catchError=!0,globalThis.require.config(t));{const e=o.zl.asBrowserUri(`${i}.js`).toString(!0);return n(5890)(`${e}`).then((e=>{if(this._requestHandler=e.create(this),!this._requestHandler)throw new Error("No RequestHandler!")}))}}this._requestHandler=this._requestHandlerFactory(this)}}function T(e){return new y(e,null)}},1939:(e,t,n)=>{"use strict";n.d(t,{K:()=>i});const i=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"})},1940:(e,t,n)=>{"use strict";n.d(t,{vb:()=>l,uC:()=>h,Qg:()=>a,$6:()=>c});n(8447);var i=n(4383),r=n(1234),s=n(1484),o=n(8067);Symbol("MicrotaskDelay");function a(e){return!!e&&"function"===typeof e.then}class l{constructor(){this.disposable=void 0,this.isDisposed=!1}cancel(){this.disposable?.dispose(),this.disposable=void 0}cancelAndSet(e,t,n=globalThis){if(this.isDisposed)throw new i.D7("Calling 'cancelAndSet' on a disposed IntervalTimer");this.cancel();const r=n.setInterval((()=>{e()}),t);this.disposable=(0,s.s)((()=>{n.clearInterval(r),this.disposable=void 0}))}dispose(){this.cancel(),this.isDisposed=!0}}class h{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return-1!==this.timeoutToken}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner?.()}}let c,d;d="function"!==typeof globalThis.requestIdleCallback||"function"!==typeof globalThis.cancelIdleCallback?(e,t)=>{(0,o._p)((()=>{if(n)return;const e=Date.now()+15,i={didTimeout:!0,timeRemaining:()=>Math.max(0,e-Date.now())};t(Object.freeze(i))}));let n=!1;return{dispose(){n||(n=!0)}}}:(e,t,n)=>{const i=e.requestIdleCallback(t,"number"===typeof n?{timeout:n}:void 0);let r=!1;return{dispose(){r||(r=!0,e.cancelIdleCallback(i))}}},c=e=>d(globalThis,e);var u;!function(e){e.settled=async function(e){let t;const n=await Promise.all(e.map((e=>e.then((e=>e),(e=>{t||(t=e)})))));if("undefined"!==typeof t)throw t;return n},e.withAsyncBody=function(e){return new Promise((async(t,n)=>{try{await e(t,n)}catch(i){n(i)}}))}}(u||(u={}));class g{static fromArray(e){return new g((t=>{t.emitMany(e)}))}static fromPromise(e){return new g((async t=>{t.emitMany(await e)}))}static fromPromises(e){return new g((async t=>{await Promise.all(e.map((async e=>t.emitOne(await e))))}))}static merge(e){return new g((async t=>{await Promise.all(e.map((async e=>{for await(const n of e)t.emitOne(n)})))}))}static{this.EMPTY=g.fromArray([])}constructor(e,t){this._state=0,this._results=[],this._error=null,this._onReturn=t,this._onStateChanged=new r.vl,queueMicrotask((async()=>{const t={emitOne:e=>this.emitOne(e),emitMany:e=>this.emitMany(e),reject:e=>this.reject(e)};try{await Promise.resolve(e(t)),this.resolve()}catch(n){this.reject(n)}finally{t.emitOne=void 0,t.emitMany=void 0,t.reject=void 0}}))}[Symbol.asyncIterator](){let e=0;return{next:async()=>{for(;;){if(2===this._state)throw this._error;if(e<this._results.length)return{done:!1,value:this._results[e++]};if(1===this._state)return{done:!0,value:void 0};await r.Jh.toPromise(this._onStateChanged.event)}},return:async()=>(this._onReturn?.(),{done:!0,value:void 0})}}static map(e,t){return new g((async n=>{for await(const i of e)n.emitOne(t(i))}))}map(e){return g.map(this,e)}static filter(e,t){return new g((async n=>{for await(const i of e)t(i)&&n.emitOne(i)}))}filter(e){return g.filter(this,e)}static coalesce(e){return g.filter(e,(e=>!!e))}coalesce(){return g.coalesce(this)}static async toPromise(e){const t=[];for await(const n of e)t.push(n);return t}toPromise(){return g.toPromise(this)}emitOne(e){0===this._state&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){0===this._state&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){0===this._state&&(this._state=1,this._onStateChanged.fire())}reject(e){0===this._state&&(this._state=2,this._error=e,this._onStateChanged.fire())}}},2083:(e,t,n)=>{"use strict";n.d(t,{rY:()=>p,ou:()=>m,dG:()=>T,OB:()=>C});var i=n(9493),r=(n(9400),n(1234)),s=n(1484);class o{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new r.vl,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]),(0,s.s)((()=>{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();const n=new a(this,e,t);return this._factories.set(e,n),(0,s.s)((()=>{const t=this._factories.get(e);t&&t===n&&(this._factories.delete(e),t.dispose())}))}async getOrCreate(e){const t=this.get(e);if(t)return t;const n=this._factories.get(e);return!n||n.isResolved?null:(await n.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;const 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}}class a extends s.jG{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._resolvePromise=this._create()),this._resolvePromise}async _create(){const e=await this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}}var l,h,c,d,u,g,f=n(8209);class m{constructor(e,t,n){this.offset=e,this.type=t,this.language=n,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}class p{constructor(e,t){this.tokens=e,this.endState=t,this._encodedTokenizationResultBrand=void 0}}!function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(l||(l={})),function(e){const t=new Map;t.set(0,i.W.symbolMethod),t.set(1,i.W.symbolFunction),t.set(2,i.W.symbolConstructor),t.set(3,i.W.symbolField),t.set(4,i.W.symbolVariable),t.set(5,i.W.symbolClass),t.set(6,i.W.symbolStruct),t.set(7,i.W.symbolInterface),t.set(8,i.W.symbolModule),t.set(9,i.W.symbolProperty),t.set(10,i.W.symbolEvent),t.set(11,i.W.symbolOperator),t.set(12,i.W.symbolUnit),t.set(13,i.W.symbolValue),t.set(15,i.W.symbolEnum),t.set(14,i.W.symbolConstant),t.set(15,i.W.symbolEnum),t.set(16,i.W.symbolEnumMember),t.set(17,i.W.symbolKeyword),t.set(27,i.W.symbolSnippet),t.set(18,i.W.symbolText),t.set(19,i.W.symbolColor),t.set(20,i.W.symbolFile),t.set(21,i.W.symbolReference),t.set(22,i.W.symbolCustomColor),t.set(23,i.W.symbolFolder),t.set(24,i.W.symbolTypeParameter),t.set(25,i.W.account),t.set(26,i.W.issues),e.toIcon=function(e){let n=t.get(e);return n||(console.info("No codicon found for CompletionItemKind "+e),n=i.W.symbolProperty),n};const n=new Map;n.set("method",0),n.set("function",1),n.set("constructor",2),n.set("field",3),n.set("variable",4),n.set("class",5),n.set("struct",6),n.set("interface",7),n.set("module",8),n.set("property",9),n.set("event",10),n.set("operator",11),n.set("unit",12),n.set("value",13),n.set("constant",14),n.set("enum",15),n.set("enum-member",16),n.set("enumMember",16),n.set("keyword",17),n.set("snippet",27),n.set("text",18),n.set("color",19),n.set("file",20),n.set("reference",21),n.set("customcolor",22),n.set("folder",23),n.set("type-parameter",24),n.set("typeParameter",24),n.set("account",25),n.set("issue",26),e.fromString=function(e,t){let i=n.get(e);return"undefined"!==typeof i||t||(i=9),i}}(h||(h={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(c||(c={}));!function(e){e[e.Automatic=0]="Automatic",e[e.PasteAs=1]="PasteAs"}(d||(d={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(u||(u={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(g||(g={}));(0,f.kg)("Array","array"),(0,f.kg)("Boolean","boolean"),(0,f.kg)("Class","class"),(0,f.kg)("Constant","constant"),(0,f.kg)("Constructor","constructor"),(0,f.kg)("Enum","enumeration"),(0,f.kg)("EnumMember","enumeration member"),(0,f.kg)("Event","event"),(0,f.kg)("Field","field"),(0,f.kg)("File","file"),(0,f.kg)("Function","function"),(0,f.kg)("Interface","interface"),(0,f.kg)("Key","key"),(0,f.kg)("Method","method"),(0,f.kg)("Module","module"),(0,f.kg)("Namespace","namespace"),(0,f.kg)("Null","null"),(0,f.kg)("Number","number"),(0,f.kg)("Object","object"),(0,f.kg)("Operator","operator"),(0,f.kg)("Package","package"),(0,f.kg)("Property","property"),(0,f.kg)("String","string"),(0,f.kg)("Struct","struct"),(0,f.kg)("TypeParameter","type parameter"),(0,f.kg)("Variable","variable");var _,b,v,w,k;!function(e){const t=new Map;t.set(0,i.W.symbolFile),t.set(1,i.W.symbolModule),t.set(2,i.W.symbolNamespace),t.set(3,i.W.symbolPackage),t.set(4,i.W.symbolClass),t.set(5,i.W.symbolMethod),t.set(6,i.W.symbolProperty),t.set(7,i.W.symbolField),t.set(8,i.W.symbolConstructor),t.set(9,i.W.symbolEnum),t.set(10,i.W.symbolInterface),t.set(11,i.W.symbolFunction),t.set(12,i.W.symbolVariable),t.set(13,i.W.symbolConstant),t.set(14,i.W.symbolString),t.set(15,i.W.symbolNumber),t.set(16,i.W.symbolBoolean),t.set(17,i.W.symbolArray),t.set(18,i.W.symbolObject),t.set(19,i.W.symbolKey),t.set(20,i.W.symbolNull),t.set(21,i.W.symbolEnumMember),t.set(22,i.W.symbolStruct),t.set(23,i.W.symbolEvent),t.set(24,i.W.symbolOperator),t.set(25,i.W.symbolTypeParameter),e.toIcon=function(e){let n=t.get(e);return n||(console.info("No codicon found for SymbolKind "+e),n=i.W.symbolProperty),n}}(_||(_={}));class y{static{this.Comment=new y("comment")}static{this.Imports=new y("imports")}static{this.Region=new y("region")}static fromValue(e){switch(e){case"comment":return y.Comment;case"imports":return y.Imports;case"region":return y.Region}return new y(e)}constructor(e){this.value=e}}!function(e){e[e.AIGenerated=1]="AIGenerated"}(b||(b={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(v||(v={})),function(e){e.is=function(e){return!(!e||"object"!==typeof e)&&("string"===typeof e.id&&"string"===typeof e.title)}}(w||(w={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(k||(k={}));const T=new o,C=new o;var S;!function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(S||(S={}))},2522:(e,t,n)=>{"use strict";var i;n.d(t,{f:()=>i}),function(e){function t(e){return e&&"object"===typeof e&&"function"===typeof e[Symbol.iterator]}e.is=t;const n=Object.freeze([]);function*i(e){yield e}e.empty=function(){return n},e.single=i,e.wrap=function(e){return t(e)?e:i(e)},e.from=function(e){return e||n},e.reverse=function*(e){for(let t=e.length-1;t>=0;t--)yield e[t]},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){let n=0;for(const i of e)if(t(i,n++))return!0;return!1},e.find=function(e,t){for(const n of e)if(t(n))return n},e.filter=function*(e,t){for(const n of e)t(n)&&(yield n)},e.map=function*(e,t){let n=0;for(const i of e)yield t(i,n++)},e.flatMap=function*(e,t){let n=0;for(const i of e)yield*t(i,n++)},e.concat=function*(...e){for(const t of e)yield*t},e.reduce=function(e,t,n){let i=n;for(const r of e)i=t(i,r);return i},e.slice=function*(e,t,n=e.length){for(t<0&&(t+=e.length),n<0?n+=e.length:n>e.length&&(n=e.length);t<n;t++)yield e[t]},e.consume=function(t,n=Number.POSITIVE_INFINITY){const i=[];if(0===n)return[i,t];const r=t[Symbol.iterator]();for(let s=0;s<n;s++){const t=r.next();if(t.done)return[i,e.empty()];i.push(t.value)}return[i,{[Symbol.iterator]:()=>r}]},e.asyncToArray=async function(e){const t=[];for await(const n of e)t.push(n);return Promise.resolve(t)}}(i||(i={}))},2661:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LanguageFeaturesService:()=>m});var i=n(1234),r=n(1484),s=n(6223),o=n(6958),a=n(8821);function l(e,t,n,i,r,s){if(Array.isArray(e)){let o=0;for(const a of e){const e=l(a,t,n,i,r,s);if(10===e)return e;e>o&&(o=e)}return o}if("string"===typeof e)return i?"*"===e?5:e===n?10:0:0;if(e){const{language:l,pattern:h,scheme:c,hasAccessToAllModels:d,notebookType:u}=e;if(!i&&!d)return 0;u&&r&&(t=r);let g=0;if(c)if(c===t.scheme)g=10;else{if("*"!==c)return 0;g=5}if(l)if(l===n)g=10;else{if("*"!==l)return 0;g=Math.max(g,5)}if(u)if(u===s)g=10;else{if("*"!==u||void 0===s)return 0;g=Math.max(g,5)}if(h){let e;if(e="string"===typeof h?h:{...h,base:(0,a.S8)(h.base)},e!==t.fsPath&&!(0,o.YW)(e,t.fsPath))return 0;g=10}return g}return 0}function h(e){return"string"!==typeof e&&(Array.isArray(e)?e.every(h):!!e.exclusive)}class c{constructor(e,t,n,i,r){this.uri=e,this.languageId=t,this.notebookUri=n,this.notebookType=i,this.recursive=r}equals(e){return this.notebookType===e.notebookType&&this.languageId===e.languageId&&this.uri.toString()===e.uri.toString()&&this.notebookUri?.toString()===e.notebookUri?.toString()&&this.recursive===e.recursive}}class d{constructor(e){this._notebookInfoResolver=e,this._clock=0,this._entries=[],this._onDidChange=new i.vl,this.onDidChange=this._onDidChange.event}register(e,t){let n={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(n),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),(0,r.s)((()=>{if(n){const e=this._entries.indexOf(n);e>=0&&(this._entries.splice(e,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),n=void 0)}}))}has(e){return this.all(e).length>0}all(e){if(!e)return[];this._updateScores(e,!1);const t=[];for(const n of this._entries)n._score>0&&t.push(n.provider);return t}ordered(e,t=!1){const n=[];return this._orderedForEach(e,t,(e=>n.push(e.provider))),n}orderedGroups(e){const t=[];let n,i;return this._orderedForEach(e,!1,(e=>{n&&i===e._score?n.push(e.provider):(i=e._score,n=[e.provider],t.push(n))})),t}_orderedForEach(e,t,n){this._updateScores(e,t);for(const i of this._entries)i._score>0&&n(i)}_updateScores(e,t){const n=this._notebookInfoResolver?.(e.uri),i=n?new c(e.uri,e.getLanguageId(),n.uri,n.type,t):new c(e.uri,e.getLanguageId(),void 0,void 0,t);if(!this._lastCandidate?.equals(i)){this._lastCandidate=i;for(const n of this._entries)if(n._score=l(n.selector,i.uri,i.languageId,(0,s.vd)(e),i.notebookUri,i.notebookType),h(n.selector)&&n._score>0){if(!t){for(const e of this._entries)e._score=0;n._score=1e3;break}n._score=0}this._entries.sort(d._compareByScoreAndTime)}}static _compareByScoreAndTime(e,t){return e._score<t._score?1:e._score>t._score?-1:u(e.selector)&&!u(t.selector)?1:!u(e.selector)&&u(t.selector)?-1:e._time<t._time?1:e._time>t._time?-1:0}}function u(e){return"string"!==typeof e&&(Array.isArray(e)?e.some(u):Boolean(e.isBuiltin))}var g=n(6942),f=n(4621);class m{constructor(){this.referenceProvider=new d(this._score.bind(this)),this.renameProvider=new d(this._score.bind(this)),this.newSymbolNamesProvider=new d(this._score.bind(this)),this.codeActionProvider=new d(this._score.bind(this)),this.definitionProvider=new d(this._score.bind(this)),this.typeDefinitionProvider=new d(this._score.bind(this)),this.declarationProvider=new d(this._score.bind(this)),this.implementationProvider=new d(this._score.bind(this)),this.documentSymbolProvider=new d(this._score.bind(this)),this.inlayHintsProvider=new d(this._score.bind(this)),this.colorProvider=new d(this._score.bind(this)),this.codeLensProvider=new d(this._score.bind(this)),this.documentFormattingEditProvider=new d(this._score.bind(this)),this.documentRangeFormattingEditProvider=new d(this._score.bind(this)),this.onTypeFormattingEditProvider=new d(this._score.bind(this)),this.signatureHelpProvider=new d(this._score.bind(this)),this.hoverProvider=new d(this._score.bind(this)),this.documentHighlightProvider=new d(this._score.bind(this)),this.multiDocumentHighlightProvider=new d(this._score.bind(this)),this.selectionRangeProvider=new d(this._score.bind(this)),this.foldingRangeProvider=new d(this._score.bind(this)),this.linkProvider=new d(this._score.bind(this)),this.inlineCompletionsProvider=new d(this._score.bind(this)),this.inlineEditProvider=new d(this._score.bind(this)),this.completionProvider=new d(this._score.bind(this)),this.linkedEditingRangeProvider=new d(this._score.bind(this)),this.documentRangeSemanticTokensProvider=new d(this._score.bind(this)),this.documentSemanticTokensProvider=new d(this._score.bind(this)),this.documentDropEditProvider=new d(this._score.bind(this)),this.documentPasteEditProvider=new d(this._score.bind(this))}_score(e){return this._notebookTypeResolver?.(e)}}(0,f.v)(g.ILanguageFeaturesService,m,1)},3069:(e,t,n)=>{"use strict";n.d(t,{y:()=>i});class i{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new i(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return i.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return i.isBefore(this,e)}static isBefore(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column}isBeforeOrEqual(e){return i.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<=t.column}static compare(e,t){const n=0|e.lineNumber,i=0|t.lineNumber;if(n===i){return(0|e.column)-(0|t.column)}return n-i}clone(){return new i(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new i(e.lineNumber,e.column)}static isIPosition(e){return e&&"number"===typeof e.lineNumber&&"number"===typeof e.column}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}}},3511:(e,t,n)=>{"use strict";n.d(t,{rr:()=>Q,$b:()=>Y});n(1234);var i=n(1484),r=n(8067),s=n(1508),o=n(4383),a=n(8209);function l(...e){switch(e.length){case 1:return(0,a.kg)("contextkey.scanner.hint.didYouMean1","Did you mean {0}?",e[0]);case 2:return(0,a.kg)("contextkey.scanner.hint.didYouMean2","Did you mean {0} or {1}?",e[0],e[1]);case 3:return(0,a.kg)("contextkey.scanner.hint.didYouMean3","Did you mean {0}, {1} or {2}?",e[0],e[1],e[2]);default:return}}const h=(0,a.kg)("contextkey.scanner.hint.didYouForgetToOpenOrCloseQuote","Did you forget to open or close the quote?"),c=(0,a.kg)("contextkey.scanner.hint.didYouForgetToEscapeSlash","Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'.");class d{constructor(){this._input="",this._start=0,this._current=0,this._tokens=[],this._errors=[],this.stringRe=/[a-zA-Z0-9_<>\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(e){switch(e.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return e.isTripleEq?"===":"==";case 4:return e.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:case 8:return">=";case 9:return"=~";case 10:case 17:case 18:case 19:return e.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 20:return"EOF";default:throw(0,o.iH)(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}static{this._regexFlags=new Set(["i","g","s","m","y","u"].map((e=>e.charCodeAt(0))))}static{this._keywords=new Map([["not",14],["in",13],["false",12],["true",11]])}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();){this._start=this._current;switch(this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){const e=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:e})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){const e=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:e})}else this._match(126)?this._addToken(9):this._error(l("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(l("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(l("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return!this._isAtEnd()&&(this._input.charCodeAt(this._current)===e&&(this._current++,!0))}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){const t=this._start,n=this._input.substring(this._start,this._current),i={type:19,offset:this._start,lexeme:n};this._errors.push({offset:t,lexeme:n,additionalInfo:e}),this._tokens.push(i)}_string(){this.stringRe.lastIndex=this._start;const e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;const t=this._input.substring(this._start,this._current),n=d._keywords.get(t);n?this._addToken(n):this._tokens.push({type:17,lexeme:t,offset:this._start})}}_quotedString(){for(;39!==this._peek()&&!this._isAtEnd();)this._advance();this._isAtEnd()?this._error(h):(this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1}))}_regex(){let e=this._current,t=!1,n=!1;for(;;){if(e>=this._input.length)return this._current=e,void this._error(c);const i=this._input.charCodeAt(e);if(t)t=!1;else{if(47===i&&!n){e++;break}91===i?n=!0:92===i?t=!0:93===i&&(n=!1)}e++}for(;e<this._input.length&&d._regexFlags.has(this._input.charCodeAt(e));)e++;this._current=e;const i=this._input.substring(this._start,this._current);this._tokens.push({type:10,lexeme:i,offset:this._start})}_isAtEnd(){return this._current>=this._input.length}}var u=n(3591);const g=new Map;g.set("false",!1),g.set("true",!0),g.set("isMac",r.zx),g.set("isLinux",r.j9),g.set("isWindows",r.uF),g.set("isWeb",r.HZ),g.set("isMacNative",r.zx&&!r.HZ),g.set("isEdge",r.UP),g.set("isFirefox",r.gm),g.set("isChrome",r.H8),g.set("isSafari",r.nr);const f=Object.prototype.hasOwnProperty,m={regexParsingWithErrorRecovery:!0},p=(0,a.kg)("contextkey.parser.error.emptyString","Empty context key expression"),_=(0,a.kg)("contextkey.parser.error.emptyString.hint","Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),b=(0,a.kg)("contextkey.parser.error.noInAfterNot","'in' after 'not'."),v=(0,a.kg)("contextkey.parser.error.closingParenthesis","closing parenthesis ')'"),w=(0,a.kg)("contextkey.parser.error.unexpectedToken","Unexpected token"),k=(0,a.kg)("contextkey.parser.error.unexpectedToken.hint","Did you forget to put && or || before the token?"),y=(0,a.kg)("contextkey.parser.error.unexpectedEOF","Unexpected end of expression"),T=(0,a.kg)("contextkey.parser.error.unexpectedEOF.hint","Did you forget to put a context key?");class C{static{this._parseError=new Error}constructor(e=m){this._config=e,this._scanner=new d,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(""!==e){this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{const e=this._expr();if(!this._isAtEnd()){const e=this._peek(),t=17===e.type?k:void 0;throw this._parsingErrors.push({message:w,offset:e.offset,lexeme:d.getLexeme(e),additionalInfo:t}),C._parseError}return e}catch(t){if(t!==C._parseError)throw t;return}}else this._parsingErrors.push({message:p,offset:0,lexeme:"",additionalInfo:_})}_expr(){return this._or()}_or(){const e=[this._and()];for(;this._matchOne(16);){const t=this._and();e.push(t)}return 1===e.length?e[0]:S.or(...e)}_and(){const e=[this._term()];for(;this._matchOne(15);){const t=this._term();e.push(t)}return 1===e.length?e[0]:S.and(...e)}_term(){if(this._matchOne(2)){const e=this._peek();switch(e.type){case 11:return this._advance(),x.INSTANCE;case 12:return this._advance(),E.INSTANCE;case 0:{this._advance();const e=this._expr();return this._consume(1,v),e?.negate()}case 17:return this._advance(),D.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){const e=this._peek();switch(e.type){case 11:return this._advance(),S.true();case 12:return this._advance(),S.false();case 0:{this._advance();const e=this._expr();return this._consume(1,v),e}case 17:{const i=e.lexeme;if(this._advance(),this._matchOne(9)){const e=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),10!==e.type)throw this._errExpectedButGot("REGEX",e);const n=e.lexeme,r=n.lastIndexOf("/"),s=r===n.length-1?void 0:this._removeFlagsGY(n.substring(r+1));let o;try{o=new RegExp(n.substring(1,r),s)}catch(t){throw this._errExpectedButGot("REGEX",e)}return W.create(i,o)}switch(e.type){case 10:case 19:{const n=[e.lexeme];this._advance();let r=this._peek(),s=0;for(let t=0;t<e.lexeme.length;t++)40===e.lexeme.charCodeAt(t)?s++:41===e.lexeme.charCodeAt(t)&&s--;for(;!this._isAtEnd()&&15!==r.type&&16!==r.type;){switch(r.type){case 0:s++;break;case 1:s--;break;case 10:case 18:for(let t=0;t<r.lexeme.length;t++)40===r.lexeme.charCodeAt(t)?s++:41===e.lexeme.charCodeAt(t)&&s--}if(s<0)break;n.push(d.getLexeme(r)),this._advance(),r=this._peek()}const o=n.join(""),a=o.lastIndexOf("/"),l=a===o.length-1?void 0:this._removeFlagsGY(o.substring(a+1));let h;try{h=new RegExp(o.substring(1,a),l)}catch(t){throw this._errExpectedButGot("REGEX",e)}return S.regex(i,h)}case 18:{const t=e.lexeme;this._advance();let r=null;if(!(0,s.AV)(t)){const i=t.indexOf("/"),s=t.lastIndexOf("/");if(i!==s&&i>=0){const o=t.slice(i+1,s),a="i"===t[s+1]?"i":"";try{r=new RegExp(o,a)}catch(n){throw this._errExpectedButGot("REGEX",e)}}}if(null===r)throw this._errExpectedButGot("REGEX",e);return W.create(i,r)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,b);const e=this._value();return S.notIn(i,e)}switch(this._peek().type){case 3:{this._advance();const e=this._value();if(18===this._previous().type)return S.equals(i,e);switch(e){case"true":return S.has(i);case"false":return S.not(i);default:return S.equals(i,e)}}case 4:{this._advance();const e=this._value();if(18===this._previous().type)return S.notEquals(i,e);switch(e){case"true":return S.not(i);case"false":return S.has(i);default:return S.notEquals(i,e)}}case 5:return this._advance(),P.create(i,this._value());case 6:return this._advance(),F.create(i,this._value());case 7:return this._advance(),B.create(i,this._value());case 8:return this._advance(),z.create(i,this._value());case 13:return this._advance(),S.in(i,this._value());default:return S.has(i)}}case 20:throw this._parsingErrors.push({message:y,offset:e.offset,lexeme:"",additionalInfo:T}),C._parseError;default:throw this._errExpectedButGot("true | false | KEY \n\t| KEY '=~' REGEX \n\t| KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value",this._peek())}}_value(){const e=this._peek();switch(e.type){case 17:case 18:return this._advance(),e.lexeme;case 11:return this._advance(),"true";case 12:return this._advance(),"false";case 13:return this._advance(),"in";default:return""}}_removeFlagsGY(e){return e.replaceAll(this._flagsGYRe,"")}_previous(){return this._tokens[this._current-1]}_matchOne(e){return!!this._check(e)&&(this._advance(),!0)}_advance(){return this._isAtEnd()||this._current++,this._previous()}_consume(e,t){if(this._check(e))return this._advance();throw this._errExpectedButGot(t,this._peek())}_errExpectedButGot(e,t,n){const i=(0,a.kg)("contextkey.parser.error.expectedButGot","Expected: {0}\nReceived: '{1}'.",e,d.getLexeme(t)),r=t.offset,s=d.getLexeme(t);return this._parsingErrors.push({message:i,offset:r,lexeme:s,additionalInfo:n}),C._parseError}_check(e){return this._peek().type===e}_peek(){return this._tokens[this._current]}_isAtEnd(){return 20===this._peek().type}}class S{static false(){return x.INSTANCE}static true(){return E.INSTANCE}static has(e){return A.create(e)}static equals(e,t){return I.create(e,t)}static notEquals(e,t){return R.create(e,t)}static regex(e,t){return W.create(e,t)}static in(e,t){return M.create(e,t)}static notIn(e,t){return N.create(e,t)}static not(e){return D.create(e)}static and(...e){return q.create(e,null,!0)}static or(...e){return V.create(e,null,!0)}static{this._parser=new C({regexParsingWithErrorRecovery:!1})}static deserialize(e){if(void 0===e||null===e)return;return this._parser.parse(e)}}function L(e,t){return e.cmp(t)}class x{static{this.INSTANCE=new x}constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!1}serialize(){return"false"}keys(){return[]}negate(){return E.INSTANCE}}class E{static{this.INSTANCE=new E}constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!0}serialize(){return"true"}keys(){return[]}negate(){return x.INSTANCE}}class A{static create(e,t=null){const n=g.get(e);return"boolean"===typeof n?n?E.INSTANCE:x.INSTANCE:new A(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=2}cmp(e){return e.type!==this.type?this.type-e.type:G(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=g.get(this.key);return"boolean"===typeof e?e?E.INSTANCE:x.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=D.create(this.key,this)),this.negated}}class I{static create(e,t,n=null){if("boolean"===typeof t)return t?A.create(e,n):D.create(e,n);const i=g.get(e);if("boolean"===typeof i){return t===(i?"true":"false")?E.INSTANCE:x.INSTANCE}return new I(e,t,n)}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=4}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=g.get(this.key);if("boolean"===typeof e){const t=e?"true":"false";return this.value===t?E.INSTANCE:x.INSTANCE}return this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=R.create(this.key,this.value,this)),this.negated}}class M{static create(e,t){return new M(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=10,this.negated=null}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type&&(this.key===e.key&&this.valueKey===e.valueKey)}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.valueKey),n=e.getValue(this.key);return Array.isArray(t)?t.includes(n):"string"===typeof n&&"object"===typeof t&&null!==t&&f.call(t,n)}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=N.create(this.key,this.valueKey)),this.negated}}class N{static create(e,t){return new N(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=11,this._negated=M.create(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:this._negated.cmp(e._negated)}equals(e){return e.type===this.type&&this._negated.equals(e._negated)}substituteConstants(){return this}evaluate(e){return!this._negated.evaluate(e)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}negate(){return this._negated}}class R{static create(e,t,n=null){if("boolean"===typeof t)return t?D.create(e,n):A.create(e,n);const i=g.get(e);if("boolean"===typeof i){return t===(i?"true":"false")?x.INSTANCE:E.INSTANCE}return new R(e,t,n)}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=5}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=g.get(this.key);if("boolean"===typeof e){const t=e?"true":"false";return this.value===t?x.INSTANCE:E.INSTANCE}return this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=I.create(this.key,this.value,this)),this.negated}}class D{static create(e,t=null){const n=g.get(e);return"boolean"===typeof n?n?x.INSTANCE:E.INSTANCE:new D(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=3}cmp(e){return e.type!==this.type?this.type-e.type:G(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=g.get(this.key);return"boolean"===typeof e?e?x.INSTANCE:E.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=A.create(this.key,this)),this.negated}}function O(e,t){if("string"===typeof e){const t=parseFloat(e);isNaN(t)||(e=t)}return"string"===typeof e||"number"===typeof e?t(e):x.INSTANCE}class B{static create(e,t,n=null){return O(t,(t=>new B(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=12}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=F.create(this.key,this.value,this)),this.negated}}class z{static create(e,t,n=null){return O(t,(t=>new z(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=13}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=P.create(this.key,this.value,this)),this.negated}}class P{static create(e,t,n=null){return O(t,(t=>new P(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=14}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=z.create(this.key,this.value,this)),this.negated}}class F{static create(e,t,n=null){return O(t,(t=>new F(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=15}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=B.create(this.key,this.value,this)),this.negated}}class W{static create(e,t){return new W(e,t)}constructor(e,t){this.key=e,this.regexp=t,this.type=7,this.negated=null}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.key<e.key)return-1;if(this.key>e.key)return 1;const t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return t<n?-1:t>n?1:0}equals(e){if(e.type===this.type){const t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return this.key===e.key&&t===n}return!1}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.key);return!!this.regexp&&this.regexp.test(t)}serialize(){const e=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=H.create(this)),this.negated}}class H{static create(e){return new H(e)}constructor(e){this._actual=e,this.type=8}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type&&this._actual.equals(e._actual)}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){return`!(${this._actual.serialize()})`}keys(){return this._actual.keys()}negate(){return this._actual}}function U(e){let t=null;for(let n=0,i=e.length;n<i;n++){const i=e[n].substituteConstants();if(e[n]!==i&&null===t){t=[];for(let i=0;i<n;i++)t[i]=e[i]}null!==t&&(t[n]=i)}return null===t?e:t}class q{static create(e,t,n){return q._normalizeArr(e,t,n)}constructor(e,t){this.expr=e,this.negated=t,this.type=6}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,n=this.expr.length;t<n;t++){const n=L(this.expr[t],e.expr[t]);if(0!==n)return n}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){const e=U(this.expr);return e===this.expr?this:q.create(e,this.negated,!1)}evaluate(e){for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].evaluate(e))return!1;return!0}static _normalizeArr(e,t,n){const i=[];let r=!1;for(const s of e)if(s)if(1!==s.type){if(0===s.type)return x.INSTANCE;6!==s.type?i.push(s):i.push(...s.expr)}else r=!0;if(0===i.length&&r)return E.INSTANCE;if(0!==i.length){if(1===i.length)return i[0];i.sort(L);for(let e=1;e<i.length;e++)i[e-1].equals(i[e])&&(i.splice(e,1),e--);if(1===i.length)return i[0];for(;i.length>1;){const e=i[i.length-1];if(9!==e.type)break;i.pop();const t=i.pop(),r=0===i.length,s=V.create(e.expr.map((e=>q.create([e,t],null,n))),null,r);s&&(i.push(s),i.sort(L))}if(1===i.length)return i[0];if(n){for(let e=0;e<i.length;e++)for(let t=e+1;t<i.length;t++)if(i[e].negate().equals(i[t]))return x.INSTANCE;if(1===i.length)return i[0]}return new q(i,t)}}serialize(){return this.expr.map((e=>e.serialize())).join(" && ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());this.negated=V.create(e,this,!0)}return this.negated}}class V{static create(e,t,n){return V._normalizeArr(e,t,n)}constructor(e,t){this.expr=e,this.negated=t,this.type=9}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,n=this.expr.length;t<n;t++){const n=L(this.expr[t],e.expr[t]);if(0!==n)return n}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){const e=U(this.expr);return e===this.expr?this:V.create(e,this.negated,!1)}evaluate(e){for(let t=0,n=this.expr.length;t<n;t++)if(this.expr[t].evaluate(e))return!0;return!1}static _normalizeArr(e,t,n){let i=[],r=!1;if(e){for(let t=0,n=e.length;t<n;t++){const n=e[t];if(n)if(0!==n.type){if(1===n.type)return E.INSTANCE;9!==n.type?i.push(n):i=i.concat(n.expr)}else r=!0}if(0===i.length&&r)return x.INSTANCE;i.sort(L)}if(0!==i.length){if(1===i.length)return i[0];for(let e=1;e<i.length;e++)i[e-1].equals(i[e])&&(i.splice(e,1),e--);if(1===i.length)return i[0];if(n){for(let e=0;e<i.length;e++)for(let t=e+1;t<i.length;t++)if(i[e].negate().equals(i[t]))return E.INSTANCE;if(1===i.length)return i[0]}return new V(i,t)}}serialize(){return this.expr.map((e=>e.serialize())).join(" || ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());for(;e.length>1;){const t=e.shift(),n=e.shift(),i=[];for(const e of $(t))for(const t of $(n))i.push(q.create([e,t],null,!1));e.unshift(V.create(i,null,!1))}this.negated=V.create(e,this,!0)}return this.negated}}class j extends A{static{this._info=[]}static all(){return j._info.values()}constructor(e,t,n){super(e,null),this._defaultValue=t,"object"===typeof n?j._info.push({...n,key:e}):!0!==n&&j._info.push({key:e,description:n,type:null!==t&&void 0!==t?typeof t:void 0})}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return I.create(this.key,e)}}(0,u.u1)("contextKeyService");function G(e,t){return e<t?-1:e>t?1:0}function K(e,t,n,i){return e<n?-1:e>n?1:t<i?-1:t>i?1:0}function $(e){return 9===e.type?e.expr:[e]}const Q=(0,u.u1)("logService");var Y;!function(e){e[e.Off=0]="Off",e[e.Trace=1]="Trace",e[e.Debug=2]="Debug",e[e.Info=3]="Info",e[e.Warning=4]="Warning",e[e.Error=5]="Error"}(Y||(Y={}));Y.Info;i.jG;new j("logLevel",function(e){switch(e){case Y.Trace:return"trace";case Y.Debug:return"debug";case Y.Info:return"info";case Y.Warning:return"warn";case Y.Error:return"error";case Y.Off:return"off"}}(Y.Info))},3591:(e,t,n)=>{"use strict";var i;n.d(t,{_Y:()=>r,u1:()=>s}),function(e){e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=function(t){return t[e.DI_DEPENDENCIES]||[]}}(i||(i={}));const r=s("instantiationService");function s(e){if(i.serviceIds.has(e))return i.serviceIds.get(e);const t=function(e,n,r){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");!function(e,t,n){t[i.DI_TARGET]===t?t[i.DI_DEPENDENCIES].push({id:e,index:n}):(t[i.DI_DEPENDENCIES]=[{id:e,index:n}],t[i.DI_TARGET]=t)}(t,e,r)};return t.toString=()=>e,i.serviceIds.set(e,t),t}},3750:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IModelService:()=>i});const i=(0,n(3591).u1)("modelService")},3941:(e,t,n)=>{"use strict";n.d(t,{W6:()=>l,vH:()=>h});var i=n(8209),r=n(1234),s=n(6359),o=n(1939),a=n(1646);const l=new class{constructor(){this._onDidChangeLanguages=new r.vl,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[]}registerLanguage(e){return this._languages.push(e),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let t=0,n=this._languages.length;t<n;t++)if(this._languages[t]===e)return void this._languages.splice(t,1)}}}getLanguages(){return this._languages}};s.O.add("editor.modesRegistry",l);const h="plaintext";l.registerLanguage({id:h,extensions:[".txt"],aliases:[i.kg("plainText.alias","Plain Text"),"text"],mimetypes:[o.K.text]}),s.O.as(a.Fd.Configuration).registerDefaultConfigurations([{overrides:{"[plaintext]":{"editor.unicodeHighlight.ambiguousCharacters":!1,"editor.unicodeHighlight.invisibleCharacters":!1}}}])},4001:(e,t,n)=>{"use strict";n.d(t,{Mo:()=>r,pG:()=>i});const i=(0,n(3591).u1)("configurationService");function r(e){return e.replace(/[\[\]]/g,"")}},4243:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ISemanticTokensStylingService:()=>i});const i=(0,n(3591).u1)("semanticTokensStylingService")},4272:(e,t,n)=>{"use strict";n.r(t),n.d(t,{KeyMod:()=>fe,createMonacoBaseAPI:()=>me});var i=n(8447),r=n(1234);class s{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}}const o=new s,a=new s,l=new s,h=new Array(230),c={},d=[],u=Object.create(null),g=Object.create(null),f=[],m=[];for(let pe=0;pe<=193;pe++)f[pe]=-1;for(let pe=0;pe<=132;pe++)m[pe]=-1;var p;!function(){const e="",t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[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,e,0,e,e,e],[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",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],n=[],i=[];for(const r of t){const[e,t,s,p,_,b,v,w,k]=r;if(i[t]||(i[t]=!0,d[t]=s,u[s]=t,g[s.toLowerCase()]=t,e&&(f[t]=p,0!==p&&3!==p&&5!==p&&4!==p&&6!==p&&57!==p&&(m[p]=t))),!n[p]){if(n[p]=!0,!_)throw new Error(`String representation missing for key code ${p} around scan code ${s}`);o.define(p,_),a.define(p,w||_),l.define(p,k||w||_)}b&&(h[b]=p),v&&(c[v]=p)}m[3]=46}(),function(e){e.toString=function(e){return o.keyCodeToStr(e)},e.fromString=function(e){return o.strToKeyCode(e)},e.toUserSettingsUS=function(e){return a.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return l.keyCodeToStr(e)},e.fromUserSettings=function(e){return a.strToKeyCode(e)||l.strToKeyCode(e)},e.toElectronAccelerator=function(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 o.keyCodeToStr(e)}}(p||(p={}));var _,b,v,w,k,y,T,C,S,L,x,E,A,I,M,N,R,D,O,B,z,P,F,W,H,U,q,V,j,G,K,$,Q,Y,X,J,Z,ee,te,ne,ie,re,se,oe,ae,le,he=n(9400),ce=n(3069),de=n(6677),ue=n(5326),ge=n(2083);!function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"}(_||(_={})),function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"}(b||(b={})),function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(v||(v={})),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.Snippet=27]="Snippet"}(w||(w={})),function(e){e[e.Deprecated=1]="Deprecated"}(k||(k={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(y||(y={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(T||(T={})),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"}(C||(C={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(S||(S={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(L||(L={})),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"}(x||(x={})),function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.ariaRequired=5]="ariaRequired",e[e.autoClosingBrackets=6]="autoClosingBrackets",e[e.autoClosingComments=7]="autoClosingComments",e[e.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=9]="autoClosingDelete",e[e.autoClosingOvertype=10]="autoClosingOvertype",e[e.autoClosingQuotes=11]="autoClosingQuotes",e[e.autoIndent=12]="autoIndent",e[e.automaticLayout=13]="automaticLayout",e[e.autoSurround=14]="autoSurround",e[e.bracketPairColorization=15]="bracketPairColorization",e[e.guides=16]="guides",e[e.codeLens=17]="codeLens",e[e.codeLensFontFamily=18]="codeLensFontFamily",e[e.codeLensFontSize=19]="codeLensFontSize",e[e.colorDecorators=20]="colorDecorators",e[e.colorDecoratorsLimit=21]="colorDecoratorsLimit",e[e.columnSelection=22]="columnSelection",e[e.comments=23]="comments",e[e.contextmenu=24]="contextmenu",e[e.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",e[e.cursorBlinking=26]="cursorBlinking",e[e.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",e[e.cursorStyle=28]="cursorStyle",e[e.cursorSurroundingLines=29]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",e[e.cursorWidth=31]="cursorWidth",e[e.disableLayerHinting=32]="disableLayerHinting",e[e.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",e[e.domReadOnly=34]="domReadOnly",e[e.dragAndDrop=35]="dragAndDrop",e[e.dropIntoEditor=36]="dropIntoEditor",e[e.emptySelectionClipboard=37]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",e[e.extraEditorClassName=39]="extraEditorClassName",e[e.fastScrollSensitivity=40]="fastScrollSensitivity",e[e.find=41]="find",e[e.fixedOverflowWidgets=42]="fixedOverflowWidgets",e[e.folding=43]="folding",e[e.foldingStrategy=44]="foldingStrategy",e[e.foldingHighlight=45]="foldingHighlight",e[e.foldingImportsByDefault=46]="foldingImportsByDefault",e[e.foldingMaximumRegions=47]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=49]="fontFamily",e[e.fontInfo=50]="fontInfo",e[e.fontLigatures=51]="fontLigatures",e[e.fontSize=52]="fontSize",e[e.fontWeight=53]="fontWeight",e[e.fontVariations=54]="fontVariations",e[e.formatOnPaste=55]="formatOnPaste",e[e.formatOnType=56]="formatOnType",e[e.glyphMargin=57]="glyphMargin",e[e.gotoLocation=58]="gotoLocation",e[e.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",e[e.hover=60]="hover",e[e.inDiffEditor=61]="inDiffEditor",e[e.inlineSuggest=62]="inlineSuggest",e[e.inlineEdit=63]="inlineEdit",e[e.letterSpacing=64]="letterSpacing",e[e.lightbulb=65]="lightbulb",e[e.lineDecorationsWidth=66]="lineDecorationsWidth",e[e.lineHeight=67]="lineHeight",e[e.lineNumbers=68]="lineNumbers",e[e.lineNumbersMinChars=69]="lineNumbersMinChars",e[e.linkedEditing=70]="linkedEditing",e[e.links=71]="links",e[e.matchBrackets=72]="matchBrackets",e[e.minimap=73]="minimap",e[e.mouseStyle=74]="mouseStyle",e[e.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=76]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",e[e.multiCursorModifier=78]="multiCursorModifier",e[e.multiCursorPaste=79]="multiCursorPaste",e[e.multiCursorLimit=80]="multiCursorLimit",e[e.occurrencesHighlight=81]="occurrencesHighlight",e[e.overviewRulerBorder=82]="overviewRulerBorder",e[e.overviewRulerLanes=83]="overviewRulerLanes",e[e.padding=84]="padding",e[e.pasteAs=85]="pasteAs",e[e.parameterHints=86]="parameterHints",e[e.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",e[e.placeholder=88]="placeholder",e[e.definitionLinkOpensInPeek=89]="definitionLinkOpensInPeek",e[e.quickSuggestions=90]="quickSuggestions",e[e.quickSuggestionsDelay=91]="quickSuggestionsDelay",e[e.readOnly=92]="readOnly",e[e.readOnlyMessage=93]="readOnlyMessage",e[e.renameOnType=94]="renameOnType",e[e.renderControlCharacters=95]="renderControlCharacters",e[e.renderFinalNewline=96]="renderFinalNewline",e[e.renderLineHighlight=97]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=98]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=99]="renderValidationDecorations",e[e.renderWhitespace=100]="renderWhitespace",e[e.revealHorizontalRightPadding=101]="revealHorizontalRightPadding",e[e.roundedSelection=102]="roundedSelection",e[e.rulers=103]="rulers",e[e.scrollbar=104]="scrollbar",e[e.scrollBeyondLastColumn=105]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=106]="scrollBeyondLastLine",e[e.scrollPredominantAxis=107]="scrollPredominantAxis",e[e.selectionClipboard=108]="selectionClipboard",e[e.selectionHighlight=109]="selectionHighlight",e[e.selectOnLineNumbers=110]="selectOnLineNumbers",e[e.showFoldingControls=111]="showFoldingControls",e[e.showUnused=112]="showUnused",e[e.snippetSuggestions=113]="snippetSuggestions",e[e.smartSelect=114]="smartSelect",e[e.smoothScrolling=115]="smoothScrolling",e[e.stickyScroll=116]="stickyScroll",e[e.stickyTabStops=117]="stickyTabStops",e[e.stopRenderingLineAfter=118]="stopRenderingLineAfter",e[e.suggest=119]="suggest",e[e.suggestFontSize=120]="suggestFontSize",e[e.suggestLineHeight=121]="suggestLineHeight",e[e.suggestOnTriggerCharacters=122]="suggestOnTriggerCharacters",e[e.suggestSelection=123]="suggestSelection",e[e.tabCompletion=124]="tabCompletion",e[e.tabIndex=125]="tabIndex",e[e.unicodeHighlighting=126]="unicodeHighlighting",e[e.unusualLineTerminators=127]="unusualLineTerminators",e[e.useShadowDOM=128]="useShadowDOM",e[e.useTabStops=129]="useTabStops",e[e.wordBreak=130]="wordBreak",e[e.wordSegmenterLocales=131]="wordSegmenterLocales",e[e.wordSeparators=132]="wordSeparators",e[e.wordWrap=133]="wordWrap",e[e.wordWrapBreakAfterCharacters=134]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=135]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=136]="wordWrapColumn",e[e.wordWrapOverride1=137]="wordWrapOverride1",e[e.wordWrapOverride2=138]="wordWrapOverride2",e[e.wrappingIndent=139]="wrappingIndent",e[e.wrappingStrategy=140]="wrappingStrategy",e[e.showDeprecated=141]="showDeprecated",e[e.inlayHints=142]="inlayHints",e[e.editorClassName=143]="editorClassName",e[e.pixelRatio=144]="pixelRatio",e[e.tabFocusMode=145]="tabFocusMode",e[e.layoutInfo=146]="layoutInfo",e[e.wrappingInfo=147]="wrappingInfo",e[e.defaultColorDecorators=148]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=149]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=150]="inlineCompletionsAccessibilityVerbose"}(E||(E={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(A||(A={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}(I||(I={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(M||(M={})),function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(N||(N={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(R||(R={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(D||(D={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(O||(O={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(B||(B={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(z||(z={})),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"}(P||(P={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(F||(F={})),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(W||(W={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(H||(H={})),function(e){e[e.Normal=1]="Normal",e[e.Underlined=2]="Underlined"}(U||(U={})),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"}(q||(q={})),function(e){e[e.AIGenerated=1]="AIGenerated"}(V||(V={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(j||(j={})),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"}(G||(G={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(K||(K={})),function(e){e[e.Word=0]="Word",e[e.Line=1]="Line",e[e.Suggest=2]="Suggest"}($||($={})),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"}(Q||(Q={})),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"}(Y||(Y={})),function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"}(X||(X={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"}(J||(J={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(Z||(Z={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(ee||(ee={})),function(e){e.Off="off",e.OnCode="onCode",e.On="on"}(te||(te={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(ne||(ne={})),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"}(ie||(ie={})),function(e){e[e.Deprecated=1]="Deprecated"}(re||(re={})),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"}(se||(se={})),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"}(oe||(oe={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(ae||(ae={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(le||(le={}));class fe{static{this.CtrlCmd=2048}static{this.Shift=1024}static{this.Alt=512}static{this.WinCtrl=256}static chord(e,t){return function(e,t){return(e|(65535&t)<<16>>>0)>>>0}(e,t)}}function me(){return{editor:void 0,languages:void 0,CancellationTokenSource:i.Qi,Emitter:r.vl,KeyCode:P,KeyMod:fe,Position:ce.y,Range:de.Q,Selection:ue.L,SelectionDirection:ee,MarkerSeverity:F,MarkerTag:W,Uri:he.r,Token:ge.ou}}},4320:(e,t,n)=>{"use strict";var i,r;n.d(t,{cO:()=>c,db:()=>d,fT:()=>o,qK:()=>h});class s{constructor(e,t){this.uri=e,this.value=t}}class o{static{this.defaultToKey=e=>e.toString()}constructor(e,t){if(this[i]="ResourceMap",e instanceof o)this.map=new Map(e.map),this.toKey=t??o.defaultToKey;else if(function(e){return Array.isArray(e)}(e)){this.map=new Map,this.toKey=t??o.defaultToKey;for(const[t,n]of e)this.set(t,n)}else this.map=new Map,this.toKey=e??o.defaultToKey}set(e,t){return this.map.set(this.toKey(e),new s(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){"undefined"!==typeof t&&(e=e.bind(t));for(const[n,i]of this.map)e(i.value,i.uri,this)}*values(){for(const e of this.map.values())yield e.value}*keys(){for(const e of this.map.values())yield e.uri}*entries(){for(const e of this.map.values())yield[e.uri,e.value]}*[(i=Symbol.toStringTag,Symbol.iterator)](){for(const[,e]of this.map)yield[e.uri,e.value]}}class a{constructor(){this[r]="LinkedMap",this._map=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){const n=this._map.get(e);if(n)return 0!==t&&this.touch(n,t),n.value}set(e,t,n=0){let i=this._map.get(e);if(i)i.value=t,0!==n&&this.touch(i,n);else{switch(i={key:e,value:t,next:void 0,previous:void 0},n){case 0:case 2:default:this.addItemLast(i);break;case 1:this.addItemFirst(i)}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const 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 new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const n=this._state;let i=this._head;for(;i;){if(t?e.bind(t)(i.value,i.key,this):e(i.value,i.key,this),this._state!==n)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.key,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}values(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.value,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}entries(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:[n.key,n.value],done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}[(r=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();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(0===e)return void this.clear();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){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;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 new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,n=e.previous;if(!t||!n)throw new 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 new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;const 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(2===t){if(e===this._tail)return;const 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(){const e=[];return this.forEach(((t,n)=>{e.push([n,t])})),e}fromJSON(e){this.clear();for(const[t,n]of e)this.set(t,n)}}class l extends a{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))}}class h extends l{constructor(e,t=1){super(e,t)}trim(e){this.trimOld(e)}set(e,t){return super.set(e,t),this.checkTrim(),this}}class c{constructor(e){if(this._m1=new Map,this._m2=new Map,e)for(const[t,n]of e)this.set(t,n)}clear(){this._m1.clear(),this._m2.clear()}set(e,t){this._m1.set(e,t),this._m2.set(t,e)}get(e){return this._m1.get(e)}getKey(e){return this._m2.get(e)}delete(e){const t=this._m1.get(e);return void 0!==t&&(this._m1.delete(e),this._m2.delete(t),!0)}keys(){return this._m1.keys()}values(){return this._m1.values()}}class d{constructor(){this.map=new Map}add(e,t){let n=this.map.get(e);n||(n=new Set,this.map.set(e,n)),n.add(t)}delete(e,t){const n=this.map.get(e);n&&(n.delete(t),0===n.size&&this.map.delete(e))}forEach(e,t){const n=this.map.get(e);n&&n.forEach(t)}get(e){const t=this.map.get(e);return t||new Set}}},4383:(e,t,n)=>{"use strict";n.d(t,{D7:()=>g,EM:()=>d,Qg:()=>h,cU:()=>s,dz:()=>r,iH:()=>c});const i=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((()=>{if(e.stack){if(u.isErrorNoTelemetry(e))throw new u(e.message+"\n\n"+e.stack);throw new Error(e.message+"\n\n"+e.stack)}throw e}),0)}}emit(e){this.listeners.forEach((t=>{t(e)}))}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function r(e){a(e)||i.onUnexpectedError(e)}function s(e){if(e instanceof Error){const{name:t,message:n}=e;return{$isError:!0,name:t,message:n,stack:e.stacktrace||e.stack,noTelemetry:u.isErrorNoTelemetry(e)}}return e}const o="Canceled";function a(e){return e instanceof l||e instanceof Error&&e.name===o&&e.message===o}class l extends Error{constructor(){super(o),this.name=this.message}}function h(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")}function c(e){return e?new Error(`Illegal state: ${e}`):new Error("Illegal state")}class d extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class u extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof u)return e;const t=new u;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return"CodeExpectedError"===e.name}}class g extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,g.prototype)}}},4432:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITreeSitterParserService:()=>i});const i=(0,n(3591).u1)("treeSitterParserService")},4444:(e,t,n)=>{"use strict";n.d(t,{L:()=>r});var i=n(4383);class r{static addRange(e,t){let n=0;for(;n<t.length&&t[n].endExclusive<e.start;)n++;let i=n;for(;i<t.length&&t[i].start<=e.endExclusive;)i++;if(n===i)t.splice(n,0,e);else{const s=Math.min(e.start,t[n].start),o=Math.max(e.endExclusive,t[i-1].endExclusive);t.splice(n,i-n,new r(s,o))}}static tryCreate(e,t){if(!(e>t))return new r(e,t)}static ofLength(e){return new r(0,e)}static ofStartAndLength(e,t){return new r(e,e+t)}constructor(e,t){if(this.start=e,this.endExclusive=t,e>t)throw new i.D7(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new r(this.start+e,this.endExclusive+e)}deltaStart(e){return new r(this.start+e,this.endExclusive)}deltaEnd(e){return new r(this.start,this.endExclusive+e)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}contains(e){return this.start<=e&&e<this.endExclusive}join(e){return new r(Math.min(this.start,e.start),Math.max(this.endExclusive,e.endExclusive))}intersect(e){const t=Math.max(this.start,e.start),n=Math.min(this.endExclusive,e.endExclusive);if(t<=n)return new r(t,n)}intersects(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 i.D7(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,e))}clipCyclic(e){if(this.isEmpty)throw new i.D7(`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)}}},4454:(e,t,n)=>{"use strict";function i(e){let t=0,n=0,i=0,r=0;for(let s=0,o=e.length;s<o;s++){const a=e.charCodeAt(s);13===a?(0===t&&(n=s),t++,s+1<o&&10===e.charCodeAt(s+1)?(r|=2,s++):r|=3,i=s+1):10===a&&(r|=1,0===t&&(n=s),t++,i=s+1)}return 0===t&&(n=e.length),[t,n,e.length-i,r]}n.d(t,{W:()=>i})},4621:(e,t,n)=>{"use strict";n.d(t,{v:()=>s});class i{constructor(e,t=[],n=!1){this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=n}}const r=[];function s(e,t,n){t instanceof i||(t=new i(t,[],Boolean(n))),r.push([e,t])}},4855:(e,t,n)=>{"use strict";n.r(t),n.d(t,{UnicodeTextModelHighlighter:()=>l});var i=n(6677),r=n(7729),s=n(1508),o=n(6782),a=n(6486);class l{static computeUnicodeHighlights(e,t,n){const l=n?n.startLineNumber:1,c=n?n.endLineNumber:e.getLineCount(),d=new h(t),u=d.getCandidateCodePoints();let g;var f;g="allNonBasicAscii"===u?new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):new RegExp(""+(f=Array.from(u),`[${s.bm(f.map((e=>String.fromCodePoint(e))).join(""))}]`),"g");const m=new r.W5(null,g),p=[];let _,b=!1,v=0,w=0,k=0;e:for(let r=l,h=c;r<=h;r++){const t=e.getLineContent(r),n=t.length;m.reset(0);do{if(_=m.next(t),_){let e=_.index,l=_.index+_[0].length;if(e>0){const n=t.charCodeAt(e-1);s.pc(n)&&e--}if(l+1<n){const e=t.charCodeAt(l-1);s.pc(e)&&l++}const h=t.substring(e,l);let c=(0,a.Th)(e+1,a.Ld,t,0);c&&c.endColumn<=e+1&&(c=null);const u=d.shouldHighlightNonBasicASCII(h,c?c.word:null);if(0!==u){3===u?v++:2===u?w++:1===u?k++:(0,o.xb)(u);const t=1e3;if(p.length>=t){b=!0;break e}p.push(new i.Q(r,e+1,r,l+1))}}}while(_)}return{ranges:p,hasMore:b,ambiguousCharacterCount:v,invisibleCharacterCount:w,nonBasicAsciiCharacterCount:k}}static computeUnicodeHighlightReason(e,t){const n=new h(t);switch(n.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const i=e.codePointAt(0),r=n.ambiguousCharacters.getPrimaryConfusable(i),o=s.tl.getLocales().filter((e=>!s.tl.getInstance(new Set([...t.allowedLocales,e])).isAmbiguous(i)));return{kind:0,confusableWith:String.fromCodePoint(r),notAmbiguousInLocales:o}}case 1:return{kind:2}}}}class h{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=s.tl.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const t of s.y_.codePoints)c(String.fromCodePoint(t))||e.add(t);if(this.options.ambiguousCharacters)for(const t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(const t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e,t){const n=e.codePointAt(0);if(this.allowedCodePoints.has(n))return 0;if(this.options.nonBasicASCII)return 1;let i=!1,r=!1;if(t)for(const o of t){const e=o.codePointAt(0),t=s.aC(o);i=i||t,t||this.ambiguousCharacters.isAmbiguous(e)||s.y_.isInvisibleCharacter(e)||(r=!0)}return!i&&r?0:this.options.invisibleCharacters&&!c(e)&&s.y_.isInvisibleCharacter(n)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(n)?3:0}}function c(e){return" "===e||"\n"===e||"\t"===e}},5152:(e,t,n)=>{"use strict";function i(e){return e<0?0:e>255?255:0|e}function r(e){return e<0?0:e>4294967295?4294967295:0|e}n.d(t,{W:()=>i,j:()=>r})},5196:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BaseEditorSimpleWorker:()=>Pe,EditorSimpleWorker:()=>Fe,create:()=>We});class i{constructor(e,t,n,i){this.originalStart=e,this.originalLength=t,this.modifiedStart=n,this.modifiedLength=i}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}var r=n(5600);class s{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let n=0,i=e.length;n<i;n++)t[n]=e.charCodeAt(n);return t}}function o(e,t,n){return new c(new s(e),new s(t)).ComputeDiff(n).changes}class a{static Assert(e,t){if(!e)throw new Error(t)}}class l{static Copy(e,t,n,i,r){for(let s=0;s<r;s++)n[i+s]=e[t+s]}static Copy2(e,t,n,i,r){for(let s=0;s<r;s++)n[i+s]=e[t+s]}}class h{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 i(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}}class c{constructor(e,t,n=null){this.ContinueProcessingPredicate=n,this._originalSequence=e,this._modifiedSequence=t;const[i,r,s]=c._getElements(e),[o,a,l]=c._getElements(t);this._hasStrings=s&&l,this._originalStringElements=i,this._originalElementsOrHash=r,this._modifiedStringElements=o,this._modifiedElementsOrHash=a,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"===typeof e[0]}static _getElements(e){const t=e.getElements();if(c._isStringArray(t)){const e=new Int32Array(t.length);for(let n=0,i=t.length;n<i;n++)e[n]=(0,r.e2)(t[n],0);return[t,e,!0]}return t instanceof Int32Array?[[],t,!1]:[[],new Int32Array(t),!1]}ElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._modifiedStringElements[t])}ElementsAreStrictEqual(e,t){if(!this.ElementsAreEqual(e,t))return!1;return c._getStrictElement(this._originalSequence,e)===c._getStrictElement(this._modifiedSequence,t)}static _getStrictElement(e,t){return"function"===typeof e.getStrictElement?e.getStrictElement(t):null}OriginalElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._originalElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._originalStringElements[t])}ModifiedElementsAreEqual(e,t){return this._modifiedElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._modifiedStringElements[e]===this._modifiedStringElements[t])}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,t,n,i,r){const s=[!1];let o=this.ComputeDiffRecursive(e,t,n,i,s);return r&&(o=this.PrettifyChanges(o)),{quitEarly:s[0],changes:o}}ComputeDiffRecursive(e,t,n,r,s){for(s[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 s;return n<=r?(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),s=[new i(e,0,n,r-n+1)]):e<=t?(a.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),s=[new i(e,t-e+1,n,0)]):(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),a.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),s=[]),s}const o=[0],l=[0],h=this.ComputeRecursionPoint(e,t,n,r,o,l,s),c=o[0],d=l[0];if(null!==h)return h;if(!s[0]){const o=this.ComputeDiffRecursive(e,c,n,d,s);let a=[];return a=s[0]?[new i(c+1,t-(c+1)+1,d+1,r-(d+1)+1)]:this.ComputeDiffRecursive(c+1,t,d+1,r,s),this.ConcatenateChanges(o,a)}return[new i(e,t-e+1,n,r-n+1)]}WALKTRACE(e,t,n,r,s,o,a,l,c,d,u,g,f,m,p,_,b,v){let w=null,k=null,y=new h,T=t,C=n,S=f[0]-_[0]-r,L=-1073741824,x=this.m_forwardHistory.length-1;do{const t=S+e;t===T||t<C&&c[t-1]<c[t+1]?(m=(u=c[t+1])-S-r,u<L&&y.MarkNextChange(),L=u,y.AddModifiedElement(u+1,m),S=t+1-e):(m=(u=c[t-1]+1)-S-r,u<L&&y.MarkNextChange(),L=u-1,y.AddOriginalElement(u,m+1),S=t-1-e),x>=0&&(e=(c=this.m_forwardHistory[x])[0],T=1,C=c.length-1)}while(--x>=-1);if(w=y.getReverseChanges(),v[0]){let e=f[0]+1,t=_[0]+1;if(null!==w&&w.length>0){const n=w[w.length-1];e=Math.max(e,n.getOriginalEnd()),t=Math.max(t,n.getModifiedEnd())}k=[new i(e,g-e+1,t,p-t+1)]}else{y=new h,T=o,C=a,S=f[0]-_[0]-l,L=1073741824,x=b?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=S+s;e===T||e<C&&d[e-1]>=d[e+1]?(m=(u=d[e+1]-1)-S-l,u>L&&y.MarkNextChange(),L=u+1,y.AddOriginalElement(u+1,m+1),S=e+1-s):(m=(u=d[e-1])-S-l,u>L&&y.MarkNextChange(),L=u,y.AddModifiedElement(u+1,m+1),S=e-1-s),x>=0&&(s=(d=this.m_reverseHistory[x])[0],T=1,C=d.length-1)}while(--x>=-1);k=y.getChanges()}return this.ConcatenateChanges(w,k)}ComputeRecursionPoint(e,t,n,r,s,o,a){let h=0,c=0,d=0,u=0,g=0,f=0;e--,n--,s[0]=0,o[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const m=t-e+(r-n),p=m+1,_=new Int32Array(p),b=new Int32Array(p),v=r-n,w=t-e,k=e-n,y=t-r,T=(w-v)%2===0;_[v]=e,b[w]=t,a[0]=!1;for(let C=1;C<=m/2+1;C++){let m=0,S=0;d=this.ClipDiagonalBound(v-C,C,v,p),u=this.ClipDiagonalBound(v+C,C,v,p);for(let e=d;e<=u;e+=2){h=e===d||e<u&&_[e-1]<_[e+1]?_[e+1]:_[e-1]+1,c=h-(e-v)-k;const n=h;for(;h<t&&c<r&&this.ElementsAreEqual(h+1,c+1);)h++,c++;if(_[e]=h,h+c>m+S&&(m=h,S=c),!T&&Math.abs(e-w)<=C-1&&h>=b[e])return s[0]=h,o[0]=c,n<=b[e]&&C<=1448?this.WALKTRACE(v,d,u,k,w,g,f,y,_,b,h,t,s,c,r,o,T,a):null}const L=(m-e+(S-n)-C)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(m,L))return a[0]=!0,s[0]=m,o[0]=S,L>0&&C<=1448?this.WALKTRACE(v,d,u,k,w,g,f,y,_,b,h,t,s,c,r,o,T,a):(e++,n++,[new i(e,t-e+1,n,r-n+1)]);g=this.ClipDiagonalBound(w-C,C,w,p),f=this.ClipDiagonalBound(w+C,C,w,p);for(let i=g;i<=f;i+=2){h=i===g||i<f&&b[i-1]>=b[i+1]?b[i+1]-1:b[i-1],c=h-(i-w)-y;const l=h;for(;h>e&&c>n&&this.ElementsAreEqual(h,c);)h--,c--;if(b[i]=h,T&&Math.abs(i-v)<=C&&h<=_[i])return s[0]=h,o[0]=c,l>=_[i]&&C<=1448?this.WALKTRACE(v,d,u,k,w,g,f,y,_,b,h,t,s,c,r,o,T,a):null}if(C<=1447){let e=new Int32Array(u-d+2);e[0]=v-d+1,l.Copy2(_,d,e,1,u-d+1),this.m_forwardHistory.push(e),e=new Int32Array(f-g+2),e[0]=w-g+1,l.Copy2(b,g,e,1,f-g+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(v,d,u,k,w,g,f,y,_,b,h,t,s,c,r,o,T,a)}PrettifyChanges(e){for(let t=0;t<e.length;t++){const n=e[t],i=t<e.length-1?e[t+1].originalStart:this._originalElementsOrHash.length,r=t<e.length-1?e[t+1].modifiedStart:this._modifiedElementsOrHash.length,s=n.originalLength>0,o=n.modifiedLength>0;for(;n.originalStart+n.originalLength<i&&n.modifiedStart+n.modifiedLength<r&&(!s||this.OriginalElementsAreEqual(n.originalStart,n.originalStart+n.originalLength))&&(!o||this.ModifiedElementsAreEqual(n.modifiedStart,n.modifiedStart+n.modifiedLength));){const e=this.ElementsAreStrictEqual(n.originalStart,n.modifiedStart);if(this.ElementsAreStrictEqual(n.originalStart+n.originalLength,n.modifiedStart+n.modifiedLength)&&!e)break;n.originalStart++,n.modifiedStart++}const a=[null];t<e.length-1&&this.ChangesOverlap(e[t],e[t+1],a)&&(e[t]=a[0],e.splice(t+1,1),t--)}for(let t=e.length-1;t>=0;t--){const n=e[t];let i=0,r=0;if(t>0){const n=e[t-1];i=n.originalStart+n.originalLength,r=n.modifiedStart+n.modifiedLength}const s=n.originalLength>0,o=n.modifiedLength>0;let a=0,l=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let e=1;;e++){const t=n.originalStart-e,h=n.modifiedStart-e;if(t<i||h<r)break;if(s&&!this.OriginalElementsAreEqual(t,t+n.originalLength))break;if(o&&!this.ModifiedElementsAreEqual(h,h+n.modifiedLength))break;const c=(t===i&&h===r?5:0)+this._boundaryScore(t,n.originalLength,h,n.modifiedLength);c>l&&(l=c,a=e)}n.originalStart-=a,n.modifiedStart-=a;const h=[null];t>0&&this.ChangesOverlap(e[t-1],e[t],h)&&(e[t-1]=h[0],e.splice(t,1),t++)}if(this._hasStrings)for(let t=1,n=e.length;t<n;t++){const n=e[t-1],i=e[t],r=i.originalStart-n.originalStart-n.originalLength,s=n.originalStart,o=i.originalStart+i.originalLength,a=o-s,l=n.modifiedStart,h=i.modifiedStart+i.modifiedLength,c=h-l;if(r<5&&a<20&&c<20){const e=this._findBetterContiguousSequence(s,a,l,c,r);if(e){const[t,s]=e;t===n.originalStart+n.originalLength&&s===n.modifiedStart+n.modifiedLength||(n.originalLength=t-n.originalStart,n.modifiedLength=s-n.modifiedStart,i.originalStart=t+r,i.modifiedStart=s+r,i.originalLength=o-i.originalStart,i.modifiedLength=h-i.modifiedStart)}}}return e}_findBetterContiguousSequence(e,t,n,i,r){if(t<r||i<r)return null;const s=e+t-r+1,o=n+i-r+1;let a=0,l=0,h=0;for(let c=e;c<s;c++)for(let e=n;e<o;e++){const t=this._contiguousSequenceScore(c,e,r);t>0&&t>a&&(a=t,l=c,h=e)}return a>0?[l,h]:null}_contiguousSequenceScore(e,t,n){let i=0;for(let r=0;r<n;r++){if(!this.ElementsAreEqual(e+r,t+r))return 0;i+=this._originalStringElements[e+r].length}return i}_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){const 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){const n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1}_boundaryScore(e,t,n,i){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(n,i)?1:0)}ConcatenateChanges(e,t){const n=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){const i=new Array(e.length+t.length-1);return l.Copy(e,0,i,0,e.length-1),i[e.length-1]=n[0],l.Copy(t,1,i,e.length,t.length-1),i}{const n=new Array(e.length+t.length);return l.Copy(e,0,n,0,e.length),l.Copy(t,0,n,e.length,t.length),n}}ChangesOverlap(e,t,n){if(a.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),a.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){const r=e.originalStart;let s=e.originalLength;const o=e.modifiedStart;let a=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(s=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(a=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new i(r,s,o,a),!0}return n[0]=null,!1}ClipDiagonalBound(e,t,n,i){if(e>=0&&e<i)return e;const r=t%2===0;if(e<0){return r===(n%2===0)?0:1}return r===((i-n-1)%2===0)?i-1:i-2}}var d=n(6677),u=n(534);class g{constructor(e,t,n){const i=new Uint8Array(e*t);for(let r=0,s=e*t;r<s;r++)i[r]=n;this._data=i,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}}class f{constructor(e){let t=0,n=0;for(let r=0,s=e.length;r<s;r++){const[i,s,o]=e[r];s>t&&(t=s),i>n&&(n=i),o>n&&(n=o)}t++,n++;const i=new g(n,t,0);for(let r=0,s=e.length;r<s;r++){const[t,n,s]=e[r];i.set(t,n,s)}this._states=i,this._maxCharCode=t}nextState(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)}}let m=null;let p=null;class _{static _createLink(e,t,n,i,r){let s=r-1;do{const n=t.charCodeAt(s);if(2!==e.get(n))break;s--}while(s>i);if(i>0){const e=t.charCodeAt(i-1),n=t.charCodeAt(s);(40===e&&41===n||91===e&&93===n||123===e&&125===n)&&s--}return{range:{startLineNumber:n,startColumn:i+1,endLineNumber:n,endColumn:s+2},url:t.substring(i,s+1)}}static computeLinks(e,t=function(){return null===m&&(m=new f([[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]])),m}()){const n=function(){if(null===p){p=new u.V(0);const e=" \t<>'\"\u3001\u3002\uff61\uff64\uff0c\uff0e\uff1a\uff1b\u2018\u3008\u300c\u300e\u3014\uff08\uff3b\uff5b\uff62\uff63\uff5d\uff3d\uff09\u3015\u300f\u300d\u3009\u2019\uff40\uff5e\u2026";for(let n=0;n<e.length;n++)p.set(e.charCodeAt(n),1);const t=".,;:";for(let n=0;n<t.length;n++)p.set(t.charCodeAt(n),2)}return p}(),i=[];for(let r=1,s=e.getLineCount();r<=s;r++){const s=e.getLineContent(r),o=s.length;let a=0,l=0,h=0,c=1,d=!1,u=!1,g=!1,f=!1;for(;a<o;){let e=!1;const o=s.charCodeAt(a);if(13===c){let t;switch(o){case 40:d=!0,t=0;break;case 41:t=d?0:1;break;case 91:g=!0,u=!0,t=0;break;case 93:g=!1,t=u?0:1;break;case 123:f=!0,t=0;break;case 125:t=f?0:1;break;case 39:case 34:case 96:t=h===o?1:39===h||34===h||96===h?0:1;break;case 42:t=42===h?1:0;break;case 124:t=124===h?1:0;break;case 32:t=g?0:1;break;default:t=n.get(o)}1===t&&(i.push(_._createLink(n,s,r,l,a)),e=!0)}else if(12===c){let t;91===o?(u=!0,t=0):t=n.get(o),1===t?e=!0:c=13}else c=t.nextState(c,o),0===c&&(e=!0);e&&(c=1,d=!1,u=!1,f=!1,l=a+1,h=o),a++}13===c&&i.push(_._createLink(n,s,r,l,o))}return i}}class b{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}static{this.INSTANCE=new b}navigateValueSet(e,t,n,i,r){if(e&&t){const n=this.doNavigateValueSet(t,r);if(n)return{range:e,value:n}}if(n&&i){const e=this.doNavigateValueSet(i,r);if(e)return{range:n,value:e}}return null}doNavigateValueSet(e,t){const n=this.numberReplace(e,t);return null!==n?n:this.textReplace(e,t)}numberReplace(e,t){const n=Math.pow(10,e.length-(e.lastIndexOf(".")+1));let i=Number(e);const r=parseFloat(e);return isNaN(i)||isNaN(r)||i!==r?null:0!==i||t?(i=Math.floor(i*n),i+=t?n:-n,String(i/n)):null}textReplace(e,t){return this.valueSetsReplace(this._defaultValueSet,e,t)}valueSetsReplace(e,t,n){let i=null;for(let r=0,s=e.length;null===i&&r<s;r++)i=this.valueSetReplace(e[r],t,n);return i}valueSetReplace(e,t,n){let i=e.indexOf(t);return i>=0?(i+=n?1:-1,i<0?i=e.length-1:i%=e.length,e[i]):null}}var v=n(4272),w=n(718),k=n(8381),y=n(4855);class T{constructor(e,t,n){this.changes=e,this.moves=t,this.hitTimeout=n}}class C{constructor(e,t){this.lineRangeMapping=e,this.changes=t}}var S=n(4383),L=n(6571),x=n(3069),E=n(6782),A=n(4444);n(973);class I{constructor(e,t){this.range=e,this.text=t}toSingleEditOperation(){return{range:this.range,text:this.text}}}class M{static inverse(e,t,n){const i=[];let r=1,s=1;for(const a of e){const e=new M(new L.M(r,a.original.startLineNumber),new L.M(s,a.modified.startLineNumber));e.modified.isEmpty||i.push(e),r=a.original.endLineNumberExclusive,s=a.modified.endLineNumberExclusive}const o=new M(new L.M(r,t+1),new L.M(s,n+1));return o.modified.isEmpty||i.push(o),i}static clip(e,t,n){const i=[];for(const r of e){const e=r.original.intersect(t),s=r.modified.intersect(n);e&&!e.isEmpty&&s&&!s.isEmpty&&i.push(new M(e,s))}return i}constructor(e,t){this.original=e,this.modified=t}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new M(this.modified,this.original)}join(e){return new M(this.original.join(e.original),this.modified.join(e.modified))}toRangeMapping(){const e=this.original.toInclusiveRange(),t=this.modified.toInclusiveRange();if(e&&t)return new O(e,t);if(1===this.original.startLineNumber||1===this.modified.startLineNumber){if(1!==this.modified.startLineNumber||1!==this.original.startLineNumber)throw new S.D7("not a valid diff");return new O(new d.Q(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new d.Q(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}return new O(new d.Q(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new d.Q(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}toRangeMapping2(e,t){if(R(this.original.endLineNumberExclusive,e)&&R(this.modified.endLineNumberExclusive,t))return new O(new d.Q(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new d.Q(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1));if(!this.original.isEmpty&&!this.modified.isEmpty)return new O(d.Q.fromPositions(new x.y(this.original.startLineNumber,1),N(new x.y(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),d.Q.fromPositions(new x.y(this.modified.startLineNumber,1),N(new x.y(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)));if(this.original.startLineNumber>1&&this.modified.startLineNumber>1)return new O(d.Q.fromPositions(N(new x.y(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER),e),N(new x.y(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),d.Q.fromPositions(N(new x.y(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER),t),N(new x.y(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)));throw new S.D7}}function N(e,t){if(e.lineNumber<1)return new x.y(1,1);if(e.lineNumber>t.length)return new x.y(t.length,t[t.length-1].length+1);const n=t[e.lineNumber-1];return e.column>n.length+1?new x.y(e.lineNumber,n.length+1):e}function R(e,t){return e>=1&&e<=t.length}class D extends M{static fromRangeMappings(e){const t=L.M.join(e.map((e=>L.M.fromRangeInclusive(e.originalRange)))),n=L.M.join(e.map((e=>L.M.fromRangeInclusive(e.modifiedRange))));return new D(t,n,e)}constructor(e,t,n){super(e,t),this.innerChanges=n}flip(){return new D(this.modified,this.original,this.innerChanges?.map((e=>e.flip())))}withInnerChangesFromLineRanges(){return new D(this.original,this.modified,[this.toRangeMapping()])}}class O{static assertSorted(e){for(let t=1;t<e.length;t++){const n=e[t-1],i=e[t];if(!n.originalRange.getEndPosition().isBeforeOrEqual(i.originalRange.getStartPosition())||!n.modifiedRange.getEndPosition().isBeforeOrEqual(i.modifiedRange.getStartPosition()))throw new S.D7("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 O(this.modifiedRange,this.originalRange)}toTextEdit(e){const t=e.getValueOfRange(this.modifiedRange);return new I(this.originalRange,t)}}var B=n(1508);class z{computeDiff(e,t,n){const i=new q(e,t,{maxComputationTime:n.maxComputationTimeMs,shouldIgnoreTrimWhitespace:n.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),r=[];let s=null;for(const o of i.changes){let e,t;e=0===o.originalEndLineNumber?new L.M(o.originalStartLineNumber+1,o.originalStartLineNumber+1):new L.M(o.originalStartLineNumber,o.originalEndLineNumber+1),t=0===o.modifiedEndLineNumber?new L.M(o.modifiedStartLineNumber+1,o.modifiedStartLineNumber+1):new L.M(o.modifiedStartLineNumber,o.modifiedEndLineNumber+1);let n=new D(e,t,o.charChanges?.map((e=>new O(new d.Q(e.originalStartLineNumber,e.originalStartColumn,e.originalEndLineNumber,e.originalEndColumn),new d.Q(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)))));s&&(s.modified.endLineNumberExclusive!==n.modified.startLineNumber&&s.original.endLineNumberExclusive!==n.original.startLineNumber||(n=new D(s.original.join(n.original),s.modified.join(n.modified),s.innerChanges&&n.innerChanges?s.innerChanges.concat(n.innerChanges):void 0),r.pop())),r.push(n),s=n}return(0,E.Ft)((()=>(0,E.Xo)(r,((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 T(r,[],i.quitEarly)}}function P(e,t,n,i){return new c(e,t,n).ComputeDiff(i)}class F{constructor(e){const t=[],n=[];for(let i=0,r=e.length;i<r;i++)t[i]=V(e[i],1),n[i]=j(e[i],1);this.lines=e,this._startColumns=t,this._endColumns=n}getElements(){const 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){const i=[],r=[],s=[];let o=0;for(let a=t;a<=n;a++){const t=this.lines[a],l=e?this._startColumns[a]:1,h=e?this._endColumns[a]:t.length+1;for(let e=l;e<h;e++)i[o]=t.charCodeAt(e-1),r[o]=a+1,s[o]=e,o++;!e&&a<n&&(i[o]=10,r[o]=a+1,s[o]=t.length+1,o++)}return new W(i,r,s)}}class W{constructor(e,t,n){this._charCodes=e,this._lineNumbers=t,this._columns=n}toString(){return"["+this._charCodes.map(((e,t)=>(10===e?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[t]},${this._columns[t]})`)).join(", ")+"]"}_assertIndex(e,t){if(e<0||e>=t.length)throw new 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-1===e?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),10===this._charCodes[e]?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-1===e?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),10===this._charCodes[e]?1:this._columns[e]+1)}}class H{constructor(e,t,n,i,r,s,o,a){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=n,this.originalEndColumn=i,this.modifiedStartLineNumber=r,this.modifiedStartColumn=s,this.modifiedEndLineNumber=o,this.modifiedEndColumn=a}static createFromDiffChange(e,t,n){const i=t.getStartLineNumber(e.originalStart),r=t.getStartColumn(e.originalStart),s=t.getEndLineNumber(e.originalStart+e.originalLength-1),o=t.getEndColumn(e.originalStart+e.originalLength-1),a=n.getStartLineNumber(e.modifiedStart),l=n.getStartColumn(e.modifiedStart),h=n.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),c=n.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new H(i,r,s,o,a,l,h,c)}}class U{constructor(e,t,n,i,r){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=n,this.modifiedEndLineNumber=i,this.charChanges=r}static createFromDiffResult(e,t,n,i,r,s,o){let a,l,h,c,d;if(0===t.originalLength?(a=n.getStartLineNumber(t.originalStart)-1,l=0):(a=n.getStartLineNumber(t.originalStart),l=n.getEndLineNumber(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(h=i.getStartLineNumber(t.modifiedStart)-1,c=0):(h=i.getStartLineNumber(t.modifiedStart),c=i.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),s&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&r()){const s=n.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),a=i.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);if(s.getElements().length>0&&a.getElements().length>0){let e=P(s,a,r,!0).changes;o&&(e=function(e){if(e.length<=1)return e;const t=[e[0]];let n=t[0];for(let i=1,r=e.length;i<r;i++){const r=e[i],s=r.originalStart-(n.originalStart+n.originalLength),o=r.modifiedStart-(n.modifiedStart+n.modifiedLength);Math.min(s,o)<3?(n.originalLength=r.originalStart+r.originalLength-n.originalStart,n.modifiedLength=r.modifiedStart+r.modifiedLength-n.modifiedStart):(t.push(r),n=r)}return t}(e)),d=[];for(let t=0,n=e.length;t<n;t++)d.push(H.createFromDiffChange(e[t],s,a))}}return new U(a,l,h,c,d)}}class q{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 F(e),this.modified=new F(t),this.continueLineDiff=G(n.maxComputationTime),this.continueCharDiff=G(0===n.maxComputationTime?0:Math.min(n.maxComputationTime,5e3))}computeDiff(){if(1===this.original.lines.length&&0===this.original.lines[0].length)return 1===this.modified.lines.length&&0===this.modified.lines[0].length?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(1===this.modified.lines.length&&0===this.modified.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const e=P(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=e.changes,n=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){const e=[];for(let n=0,i=t.length;n<i;n++)e.push(U.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[n],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:n,changes:e}}const i=[];let r=0,s=0;for(let o=-1,a=t.length;o<a;o++){const e=o+1<a?t[o+1]:null,n=e?e.originalStart:this.originalLines.length,l=e?e.modifiedStart:this.modifiedLines.length;for(;r<n&&s<l;){const e=this.originalLines[r],t=this.modifiedLines[s];if(e!==t){{let n=V(e,1),o=V(t,1);for(;n>1&&o>1;){if(e.charCodeAt(n-2)!==t.charCodeAt(o-2))break;n--,o--}(n>1||o>1)&&this._pushTrimWhitespaceCharChange(i,r+1,1,n,s+1,1,o)}{let n=j(e,1),o=j(t,1);const a=e.length+1,l=t.length+1;for(;n<a&&o<l;){if(e.charCodeAt(n-1)!==e.charCodeAt(o-1))break;n++,o++}(n<a||o<l)&&this._pushTrimWhitespaceCharChange(i,r+1,n,a,s+1,o,l)}}r++,s++}e&&(i.push(U.createFromDiffResult(this.shouldIgnoreTrimWhitespace,e,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),r+=e.originalLength,s+=e.modifiedLength)}return{quitEarly:n,changes:i}}_pushTrimWhitespaceCharChange(e,t,n,i,r,s,o){if(this._mergeTrimWhitespaceCharChange(e,t,n,i,r,s,o))return;let a;this.shouldComputeCharChanges&&(a=[new H(t,n,t,i,r,s,r,o)]),e.push(new U(t,t,r,r,a))}_mergeTrimWhitespaceCharChange(e,t,n,i,r,s,o){const a=e.length;if(0===a)return!1;const l=e[a-1];return 0!==l.originalEndLineNumber&&0!==l.modifiedEndLineNumber&&(l.originalEndLineNumber===t&&l.modifiedEndLineNumber===r?(this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new H(t,n,t,i,r,s,r,o)),!0):l.originalEndLineNumber+1===t&&l.modifiedEndLineNumber+1===r&&(l.originalEndLineNumber=t,l.modifiedEndLineNumber=r,this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new H(t,n,t,i,r,s,r,o)),!0))}}function V(e,t){const n=B.HG(e);return-1===n?t:n+1}function j(e,t){const n=B.lT(e);return-1===n?t:n+2}function G(e){if(0===e)return()=>!0;const t=Date.now();return()=>Date.now()-t<e}var K=n(9861);class ${static trivial(e,t){return new $([new Q(A.L.ofLength(e.length),A.L.ofLength(t.length))],!1)}static trivialTimedOut(e,t){return new $([new Q(A.L.ofLength(e.length),A.L.ofLength(t.length))],!0)}constructor(e,t){this.diffs=e,this.hitTimeout=t}}class Q{static invert(e,t){const n=[];return(0,K.pN)(e,((e,i)=>{n.push(Q.fromOffsetPairs(e?e.getEndExclusives():Y.zero,i?i.getStarts():new Y(t,(e?e.seq2Range.endExclusive-e.seq1Range.endExclusive:0)+t)))})),n}static fromOffsetPairs(e,t){return new Q(new A.L(e.offset1,t.offset1),new A.L(e.offset2,t.offset2))}static assertSorted(e){let t;for(const n of e){if(t&&!(t.seq1Range.endExclusive<=n.seq1Range.start&&t.seq2Range.endExclusive<=n.seq2Range.start))throw new S.D7("Sequence diffs must be sorted");t=n}}constructor(e,t){this.seq1Range=e,this.seq2Range=t}swap(){return new Q(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(e){return new Q(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}delta(e){return 0===e?this:new Q(this.seq1Range.delta(e),this.seq2Range.delta(e))}deltaStart(e){return 0===e?this:new Q(this.seq1Range.deltaStart(e),this.seq2Range.deltaStart(e))}deltaEnd(e){return 0===e?this:new Q(this.seq1Range.deltaEnd(e),this.seq2Range.deltaEnd(e))}intersect(e){const t=this.seq1Range.intersect(e.seq1Range),n=this.seq2Range.intersect(e.seq2Range);if(t&&n)return new Q(t,n)}getStarts(){return new Y(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new Y(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}class Y{static{this.zero=new Y(0,0)}static{this.max=new Y(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER)}constructor(e,t){this.offset1=e,this.offset2=t}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(e){return 0===e?this:new Y(this.offset1+e,this.offset2+e)}equals(e){return this.offset1===e.offset1&&this.offset2===e.offset2}}class X{static{this.instance=new X}isValid(){return!0}}class J{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new S.D7("timeout must be positive")}isValid(){return!(Date.now()-this.startTime<this.timeout)&&this.valid&&(this.valid=!1),this.valid}}class Z{constructor(e,t){this.width=e,this.height=t,this.array=[],this.array=new 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 ee(e){return 32===e||9===e}class te{static{this.chrKeys=new Map}static getKey(e){let t=this.chrKeys.get(e);return void 0===t&&(t=this.chrKeys.size,this.chrKeys.set(e,t)),t}constructor(e,t,n){this.range=e,this.lines=t,this.source=n,this.histogram=[];let i=0;for(let r=e.startLineNumber-1;r<e.endLineNumberExclusive-1;r++){const e=t[r];for(let t=0;t<e.length;t++){i++;const n=e[t],r=te.getKey(n);this.histogram[r]=(this.histogram[r]||0)+1}i++;const n=te.getKey("\n");this.histogram[n]=(this.histogram[n]||0)+1}this.totalCount=i}computeSimilarity(e){let t=0;const n=Math.max(this.histogram.length,e.histogram.length);for(let i=0;i<n;i++)t+=Math.abs((this.histogram[i]??0)-(e.histogram[i]??0));return 1-t/(this.totalCount+e.totalCount)}}class ne{compute(e,t,n=X.instance,i){if(0===e.length||0===t.length)return $.trivial(e,t);const r=new Z(e.length,t.length),s=new Z(e.length,t.length),o=new Z(e.length,t.length);for(let g=0;g<e.length;g++)for(let a=0;a<t.length;a++){if(!n.isValid())return $.trivialTimedOut(e,t);const l=0===g?0:r.get(g-1,a),h=0===a?0:r.get(g,a-1);let c;e.getElement(g)===t.getElement(a)?(c=0===g||0===a?0:r.get(g-1,a-1),g>0&&a>0&&3===s.get(g-1,a-1)&&(c+=o.get(g-1,a-1)),c+=i?i(g,a):1):c=-1;const d=Math.max(l,h,c);if(d===c){const e=g>0&&a>0?o.get(g-1,a-1):0;o.set(g,a,e+1),s.set(g,a,3)}else d===l?(o.set(g,a,0),s.set(g,a,1)):d===h&&(o.set(g,a,0),s.set(g,a,2));r.set(g,a,d)}const a=[];let l=e.length,h=t.length;function c(e,t){e+1===l&&t+1===h||a.push(new Q(new A.L(e+1,l),new A.L(t+1,h))),l=e,h=t}let d=e.length-1,u=t.length-1;for(;d>=0&&u>=0;)3===s.get(d,u)?(c(d,u),d--,u--):1===s.get(d,u)?d--:u--;return c(-1,-1),a.reverse(),new $(a,!1)}}class ie{compute(e,t,n=X.instance){if(0===e.length||0===t.length)return $.trivial(e,t);const i=e,r=t;function s(e,t){for(;e<i.length&&t<r.length&&i.getElement(e)===r.getElement(t);)e++,t++;return e}let o=0;const a=new se;a.set(0,s(0,0));const l=new oe;l.set(0,0===a.get(0)?null:new re(null,0,0,a.get(0)));let h=0;e:for(;;){if(o++,!n.isValid())return $.trivialTimedOut(i,r);const e=-Math.min(o,r.length+o%2),t=Math.min(o,i.length+o%2);for(h=e;h<=t;h+=2){let n=0;const o=h===t?-1:a.get(h+1),c=h===e?-1:a.get(h-1)+1;n++;const d=Math.min(Math.max(o,c),i.length),u=d-h;if(n++,d>i.length||u>r.length)continue;const g=s(d,u);a.set(h,g);const f=d===o?l.get(h+1):l.get(h-1);if(l.set(h,g!==d?new re(f,d,u,g-d):f),a.get(h)===i.length&&a.get(h)-h===r.length)break e}}let c=l.get(h);const d=[];let u=i.length,g=r.length;for(;;){const e=c?c.x+c.length:0,t=c?c.y+c.length:0;if(e===u&&t===g||d.push(new Q(new A.L(e,u),new A.L(t,g))),!c)break;u=c.x,g=c.y,c=c.prev}return d.reverse(),new $(d,!1)}}class re{constructor(e,t,n,i){this.prev=e,this.x=t,this.y=n,this.length=i}}class se{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=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)>=this.negativeArr.length){const e=this.negativeArr;this.negativeArr=new Int32Array(2*e.length),this.negativeArr.set(e)}this.negativeArr[e]=t}else{if(e>=this.positiveArr.length){const e=this.positiveArr;this.positiveArr=new Int32Array(2*e.length),this.positiveArr.set(e)}this.positiveArr[e]=t}}}class oe{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}}var ae=n(6041),le=n(4320);class he{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 i=this.range.startLineNumber;i<=this.range.endLineNumber;i++){let t=e[i-1],r=0;i===this.range.startLineNumber&&this.range.startColumn>1&&(r=this.range.startColumn-1,t=t.substring(r)),this.lineStartOffsets.push(r);let s=0;if(!n){const e=t.trimStart();s=t.length-e.length,t=e.trimEnd()}this.trimmedWsLengthsByLineIdx.push(s);const o=i===this.range.endLineNumber?Math.min(this.range.endColumn-1-r-s,t.length):t.length;for(let e=0;e<o;e++)this.elements.push(t.charCodeAt(e));i<this.range.endLineNumber&&(this.elements.push("\n".charCodeAt(0)),this.firstElementOffsetByLineIdx.push(this.elements.length))}}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new A.L(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){const t=ge(e>0?this.elements[e-1]:-1),n=ge(e<this.elements.length?this.elements[e]:-1);if(7===t&&8===n)return 0;if(8===t)return 150;let i=0;return t!==n&&(i+=10,0===t&&1===n&&(i+=1)),i+=ue(t),i+=ue(n),i}translateOffset(e,t="right"){const n=(0,ae.iM)(this.firstElementOffsetByLineIdx,(t=>t<=e)),i=e-this.firstElementOffsetByLineIdx[n];return new x.y(this.range.startLineNumber+n,1+this.lineStartOffsets[n]+i+(0===i&&"left"===t?0:this.trimmedWsLengthsByLineIdx[n]))}translateRange(e){const t=this.translateOffset(e.start,"right"),n=this.translateOffset(e.endExclusive,"left");return n.isBefore(t)?d.Q.fromPositions(n,n):d.Q.fromPositions(t,n)}findWordContaining(e){if(e<0||e>=this.elements.length)return;if(!ce(this.elements[e]))return;let t=e;for(;t>0&&ce(this.elements[t-1]);)t--;let n=e;for(;n<this.elements.length&&ce(this.elements[n]);)n++;return new A.L(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){const t=(0,ae.lx)(this.firstElementOffsetByLineIdx,(t=>t<=e.start))??0,n=(0,ae.XP)(this.firstElementOffsetByLineIdx,(t=>e.endExclusive<=t))??this.elements.length;return new A.L(t,n)}}function ce(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}const de={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function ue(e){return de[e]}function ge(e){return 10===e?8:13===e?7:ee(e)?6:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:-1===e?3:44===e||59===e?5:4}function fe(e,t,n,i,r,s){let{moves:o,excludedChanges:a}=function(e,t,n,i){const r=[],s=e.filter((e=>e.modified.isEmpty&&e.original.length>=3)).map((e=>new te(e.original,t,e))),o=new Set(e.filter((e=>e.original.isEmpty&&e.modified.length>=3)).map((e=>new te(e.modified,n,e)))),a=new Set;for(const l of s){let e,t=-1;for(const n of o){const i=l.computeSimilarity(n);i>t&&(t=i,e=n)}if(t>.9&&e&&(o.delete(e),r.push(new M(l.range,e.range)),a.add(l.source),a.add(e.source)),!i.isValid())return{moves:r,excludedChanges:a}}return{moves:r,excludedChanges:a}}(e,t,n,s);if(!s.isValid())return[];const l=function(e,t,n,i,r,s){const o=[],a=new le.db;for(const u of e)for(let e=u.original.startLineNumber;e<u.original.endLineNumberExclusive-2;e++){const n=`${t[e-1]}:${t[e+1-1]}:${t[e+2-1]}`;a.add(n,{range:new L.M(e,e+3)})}const l=[];e.sort((0,K.VE)((e=>e.modified.startLineNumber),K.U9));for(const u of e){let e=[];for(let t=u.modified.startLineNumber;t<u.modified.endLineNumberExclusive-2;t++){const i=`${n[t-1]}:${n[t+1-1]}:${n[t+2-1]}`,r=new L.M(t,t+3),s=[];a.forEach(i,(({range:t})=>{for(const i of e)if(i.originalLineRange.endLineNumberExclusive+1===t.endLineNumberExclusive&&i.modifiedLineRange.endLineNumberExclusive+1===r.endLineNumberExclusive)return i.originalLineRange=new L.M(i.originalLineRange.startLineNumber,t.endLineNumberExclusive),i.modifiedLineRange=new L.M(i.modifiedLineRange.startLineNumber,r.endLineNumberExclusive),void s.push(i);const n={modifiedLineRange:r,originalLineRange:t};l.push(n),s.push(n)})),e=s}if(!s.isValid())return[]}l.sort((0,K.Hw)((0,K.VE)((e=>e.modifiedLineRange.length),K.U9)));const h=new L.S,c=new L.S;for(const u of l){const e=u.modifiedLineRange.startLineNumber-u.originalLineRange.startLineNumber,t=h.subtractFrom(u.modifiedLineRange),n=c.subtractFrom(u.originalLineRange).getWithDelta(e),i=t.getIntersection(n);for(const r of i.ranges){if(r.length<3)continue;const t=r,n=r.delta(-e);o.push(new M(n,t)),h.addRange(t),c.addRange(n)}}o.sort((0,K.VE)((e=>e.original.startLineNumber),K.U9));const d=new ae.vJ(e);for(let u=0;u<o.length;u++){const t=o[u],n=d.findLastMonotonous((e=>e.original.startLineNumber<=t.original.startLineNumber)),a=(0,ae.lx)(e,(e=>e.modified.startLineNumber<=t.modified.startLineNumber)),l=Math.max(t.original.startLineNumber-n.original.startLineNumber,t.modified.startLineNumber-a.modified.startLineNumber),g=d.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive)),f=(0,ae.lx)(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)),m=Math.max(g.original.endLineNumberExclusive-t.original.endLineNumberExclusive,f.modified.endLineNumberExclusive-t.modified.endLineNumberExclusive);let p,_;for(p=0;p<l;p++){const e=t.original.startLineNumber-p-1,n=t.modified.startLineNumber-p-1;if(e>i.length||n>r.length)break;if(h.contains(n)||c.contains(e))break;if(!me(i[e-1],r[n-1],s))break}for(p>0&&(c.addRange(new L.M(t.original.startLineNumber-p,t.original.startLineNumber)),h.addRange(new L.M(t.modified.startLineNumber-p,t.modified.startLineNumber))),_=0;_<m;_++){const e=t.original.endLineNumberExclusive+_,n=t.modified.endLineNumberExclusive+_;if(e>i.length||n>r.length)break;if(h.contains(n)||c.contains(e))break;if(!me(i[e-1],r[n-1],s))break}_>0&&(c.addRange(new L.M(t.original.endLineNumberExclusive,t.original.endLineNumberExclusive+_)),h.addRange(new L.M(t.modified.endLineNumberExclusive,t.modified.endLineNumberExclusive+_))),(p>0||_>0)&&(o[u]=new M(new L.M(t.original.startLineNumber-p,t.original.endLineNumberExclusive+_),new L.M(t.modified.startLineNumber-p,t.modified.endLineNumberExclusive+_)))}return o}(e.filter((e=>!a.has(e))),i,r,t,n,s);return(0,K.E4)(o,l),o=function(e){if(0===e.length)return e;e.sort((0,K.VE)((e=>e.original.startLineNumber),K.U9));const t=[e[0]];for(let n=1;n<e.length;n++){const i=t[t.length-1],r=e[n],s=r.original.startLineNumber-i.original.endLineNumberExclusive,o=r.modified.startLineNumber-i.modified.endLineNumberExclusive;s>=0&&o>=0&&s+o<=2?t[t.length-1]=i.join(r):t.push(r)}return t}(o),o=o.filter((e=>{const n=e.original.toOffsetRange().slice(t).map((e=>e.trim()));return n.join("\n").length>=15&&function(e,t){let n=0;for(const i of e)t(i)&&n++;return n}(n,(e=>e.length>=2))>=2})),o=function(e,t){const n=new ae.vJ(e);return t=t.filter((t=>(n.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive))||new M(new L.M(1,1),new L.M(1,1)))!==(0,ae.lx)(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)))),t}(e,o),o}function me(e,t,n){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;const i=(new ie).compute(new he([e],new d.Q(1,1,1,e.length),!1),new he([t],new d.Q(1,1,1,t.length),!1),n);let r=0;const s=Q.invert(i.diffs,e.length);for(const a of s)a.seq1Range.forEach((t=>{ee(e.charCodeAt(t))||r++}));const o=function(t){let n=0;for(let i=0;i<e.length;i++)ee(t.charCodeAt(i))||n++;return n}(e.length>t.length?e:t);return r/o>.6&&o>10}function pe(e,t,n){let i=n;return i=_e(e,t,i),i=_e(e,t,i),i=function(e,t,n){if(!e.getBoundaryScore||!t.getBoundaryScore)return n;for(let i=0;i<n.length;i++){const r=i>0?n[i-1]:void 0,s=n[i],o=i+1<n.length?n[i+1]:void 0,a=new A.L(r?r.seq1Range.endExclusive+1:0,o?o.seq1Range.start-1:e.length),l=new A.L(r?r.seq2Range.endExclusive+1:0,o?o.seq2Range.start-1:t.length);s.seq1Range.isEmpty?n[i]=be(s,e,t,a,l):s.seq2Range.isEmpty&&(n[i]=be(s.swap(),t,e,l,a).swap())}return n}(e,t,i),i}function _e(e,t,n){if(0===n.length)return n;const i=[];i.push(n[0]);for(let s=1;s<n.length;s++){const r=i[i.length-1];let o=n[s];if(o.seq1Range.isEmpty||o.seq2Range.isEmpty){const n=o.seq1Range.start-r.seq1Range.endExclusive;let s;for(s=1;s<=n&&(e.getElement(o.seq1Range.start-s)===e.getElement(o.seq1Range.endExclusive-s)&&t.getElement(o.seq2Range.start-s)===t.getElement(o.seq2Range.endExclusive-s));s++);if(s--,s===n){i[i.length-1]=new Q(new A.L(r.seq1Range.start,o.seq1Range.endExclusive-n),new A.L(r.seq2Range.start,o.seq2Range.endExclusive-n));continue}o=o.delta(-s)}i.push(o)}const r=[];for(let s=0;s<i.length-1;s++){const n=i[s+1];let o=i[s];if(o.seq1Range.isEmpty||o.seq2Range.isEmpty){const r=n.seq1Range.start-o.seq1Range.endExclusive;let a;for(a=0;a<r&&(e.isStronglyEqual(o.seq1Range.start+a,o.seq1Range.endExclusive+a)&&t.isStronglyEqual(o.seq2Range.start+a,o.seq2Range.endExclusive+a));a++);if(a===r){i[s+1]=new Q(new A.L(o.seq1Range.start+r,n.seq1Range.endExclusive),new A.L(o.seq2Range.start+r,n.seq2Range.endExclusive));continue}a>0&&(o=o.delta(a))}r.push(o)}return i.length>0&&r.push(i[i.length-1]),r}function be(e,t,n,i,r){let s=1;for(;e.seq1Range.start-s>=i.start&&e.seq2Range.start-s>=r.start&&n.isStronglyEqual(e.seq2Range.start-s,e.seq2Range.endExclusive-s)&&s<100;)s++;s--;let o=0;for(;e.seq1Range.start+o<i.endExclusive&&e.seq2Range.endExclusive+o<r.endExclusive&&n.isStronglyEqual(e.seq2Range.start+o,e.seq2Range.endExclusive+o)&&o<100;)o++;if(0===s&&0===o)return e;let a=0,l=-1;for(let h=-s;h<=o;h++){const i=e.seq2Range.start+h,r=e.seq2Range.endExclusive+h,s=e.seq1Range.start+h,o=t.getBoundaryScore(s)+n.getBoundaryScore(i)+n.getBoundaryScore(r);o>l&&(l=o,a=h)}return e.delta(a)}class ve{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-((0===e?0:we(this.lines[e-1]))+(e===this.lines.length?0:we(this.lines[e])))}getText(e){return this.lines.slice(e.start,e.endExclusive).join("\n")}isStronglyEqual(e,t){return this.lines[e]===this.lines[t]}}function we(e){let t=0;for(;t<e.length&&(32===e.charCodeAt(t)||9===e.charCodeAt(t));)t++;return t}class ke{constructor(){this.dynamicProgrammingDiffing=new ne,this.myersDiffingAlgorithm=new ie}computeDiff(e,t,n){if(e.length<=1&&(0,K.aI)(e,t,((e,t)=>e===t)))return new T([],[],!1);if(1===e.length&&0===e[0].length||1===t.length&&0===t[0].length)return new T([new D(new L.M(1,e.length+1),new L.M(1,t.length+1),[new O(new d.Q(1,1,e.length,e[e.length-1].length+1),new d.Q(1,1,t.length,t[t.length-1].length+1))])],[],!1);const i=0===n.maxComputationTimeMs?X.instance:new J(n.maxComputationTimeMs),r=!n.ignoreTrimWhitespace,s=new Map;function o(e){let t=s.get(e);return void 0===t&&(t=s.size,s.set(e,t)),t}const a=e.map((e=>o(e.trim()))),l=t.map((e=>o(e.trim()))),h=new ve(a,e),c=new ve(l,t),u=(()=>h.length+c.length<1700?this.dynamicProgrammingDiffing.compute(h,c,i,((n,i)=>e[n]===t[i]?0===t[i].length?.1:1+Math.log(1+t[i].length):.99)):this.myersDiffingAlgorithm.compute(h,c,i))();let g=u.diffs,f=u.hitTimeout;g=pe(h,c,g),g=function(e,t,n){let i=n;if(0===i.length)return i;let r,s=0;do{r=!1;const o=[i[0]];for(let a=1;a<i.length;a++){const l=i[a],h=o[o.length-1];function c(t,n){const i=new A.L(h.seq1Range.endExclusive,l.seq1Range.start);return e.getText(i).replace(/\s/g,"").length<=4&&(t.seq1Range.length+t.seq2Range.length>5||n.seq1Range.length+n.seq2Range.length>5)}c(h,l)?(r=!0,o[o.length-1]=o[o.length-1].join(l)):o.push(l)}i=o}while(s++<10&&r);return i}(h,0,g);const m=[],p=n=>{if(r)for(let s=0;s<n;s++){const n=_+s,o=b+s;if(e[n]!==t[o]){const s=this.refineDiff(e,t,new Q(new A.L(n,n+1),new A.L(o,o+1)),i,r);for(const e of s.mappings)m.push(e);s.hitTimeout&&(f=!0)}}};let _=0,b=0;for(const d of g){(0,E.Ft)((()=>d.seq1Range.start-_===d.seq2Range.start-b));p(d.seq1Range.start-_),_=d.seq1Range.endExclusive,b=d.seq2Range.endExclusive;const n=this.refineDiff(e,t,d,i,r);n.hitTimeout&&(f=!0);for(const e of n.mappings)m.push(e)}p(e.length-_);const v=ye(m,e,t);let w=[];return n.computeMoves&&(w=this.computeMoves(v,e,t,a,l,i,r)),(0,E.Ft)((()=>{function n(e,t){if(e.lineNumber<1||e.lineNumber>t.length)return!1;const n=t[e.lineNumber-1];return!(e.column<1||e.column>n.length+1)}function i(e,t){return!(e.startLineNumber<1||e.startLineNumber>t.length+1)&&!(e.endLineNumberExclusive<1||e.endLineNumberExclusive>t.length+1)}for(const r of v){if(!r.innerChanges)return!1;for(const i of r.innerChanges){if(!(n(i.modifiedRange.getStartPosition(),t)&&n(i.modifiedRange.getEndPosition(),t)&&n(i.originalRange.getStartPosition(),e)&&n(i.originalRange.getEndPosition(),e)))return!1}if(!i(r.modified,t)||!i(r.original,e))return!1}return!0})),new T(v,w,f)}computeMoves(e,t,n,i,r,s,o){return fe(e,t,n,i,r,s).map((e=>{const i=ye(this.refineDiff(t,n,new Q(e.original.toOffsetRange(),e.modified.toOffsetRange()),s,o).mappings,t,n,!0);return new C(e,i)}))}refineDiff(e,t,n,i,r){var s;const o=(s=n,new M(new L.M(s.seq1Range.start+1,s.seq1Range.endExclusive+1),new L.M(s.seq2Range.start+1,s.seq2Range.endExclusive+1))).toRangeMapping2(e,t),a=new he(e,o.originalRange,r),l=new he(t,o.modifiedRange,r),h=a.length+l.length<500?this.dynamicProgrammingDiffing.compute(a,l,i):this.myersDiffingAlgorithm.compute(a,l,i),c=!1;let d=h.diffs;d=pe(a,l,d),d=function(e,t,n){const i=Q.invert(n,e.length),r=[];let s=new Y(0,0);function o(n,o){if(n.offset1<s.offset1||n.offset2<s.offset2)return;const a=e.findWordContaining(n.offset1),l=t.findWordContaining(n.offset2);if(!a||!l)return;let h=new Q(a,l);const c=h.intersect(o);let d=c.seq1Range.length,u=c.seq2Range.length;for(;i.length>0;){const n=i[0];if(!n.seq1Range.intersects(h.seq1Range)&&!n.seq2Range.intersects(h.seq2Range))break;const r=e.findWordContaining(n.seq1Range.start),s=t.findWordContaining(n.seq2Range.start),o=new Q(r,s),a=o.intersect(n);if(d+=a.seq1Range.length,u+=a.seq2Range.length,h=h.join(o),!(h.seq1Range.endExclusive>=n.seq1Range.endExclusive))break;i.shift()}d+u<2*(h.seq1Range.length+h.seq2Range.length)/3&&r.push(h),s=h.getEndExclusives()}for(;i.length>0;){const e=i.shift();e.seq1Range.isEmpty||(o(e.getStarts(),e),o(e.getEndExclusives().delta(-1),e))}return function(e,t){const n=[];for(;e.length>0||t.length>0;){const i=e[0],r=t[0];let s;s=i&&(!r||i.seq1Range.start<r.seq1Range.start)?e.shift():t.shift(),n.length>0&&n[n.length-1].seq1Range.endExclusive>=s.seq1Range.start?n[n.length-1]=n[n.length-1].join(s):n.push(s)}return n}(n,r)}(a,l,d),d=function(e,t,n){const i=[];for(const r of n){const e=i[i.length-1];e&&(r.seq1Range.start-e.seq1Range.endExclusive<=2||r.seq2Range.start-e.seq2Range.endExclusive<=2)?i[i.length-1]=new Q(e.seq1Range.join(r.seq1Range),e.seq2Range.join(r.seq2Range)):i.push(r)}return i}(0,0,d),d=function(e,t,n){let i=n;if(0===i.length)return i;let r,s=0;do{r=!1;const a=[i[0]];for(let l=1;l<i.length;l++){const h=i[l],c=a[a.length-1];function d(n,i){const r=new A.L(c.seq1Range.endExclusive,h.seq1Range.start);if(e.countLinesIn(r)>5||r.length>500)return!1;const s=e.getText(r).trim();if(s.length>20||s.split(/\r\n|\r|\n/).length>1)return!1;const o=e.countLinesIn(n.seq1Range),a=n.seq1Range.length,l=t.countLinesIn(n.seq2Range),d=n.seq2Range.length,u=e.countLinesIn(i.seq1Range),g=i.seq1Range.length,f=t.countLinesIn(i.seq2Range),m=i.seq2Range.length;function p(e){return Math.min(e,130)}return Math.pow(Math.pow(p(40*o+a),1.5)+Math.pow(p(40*l+d),1.5),1.5)+Math.pow(Math.pow(p(40*u+g),1.5)+Math.pow(p(40*f+m),1.5),1.5)>74184.96480721243}d(c,h)?(r=!0,a[a.length-1]=a[a.length-1].join(h)):a.push(h)}i=a}while(s++<10&&r);const o=[];return(0,K.kj)(i,((t,n,i)=>{let r=n;function s(e){return e.length>0&&e.trim().length<=3&&n.seq1Range.length+n.seq2Range.length>100}const a=e.extendToFullLines(n.seq1Range),l=e.getText(new A.L(a.start,n.seq1Range.start));s(l)&&(r=r.deltaStart(-l.length));const h=e.getText(new A.L(n.seq1Range.endExclusive,a.endExclusive));s(h)&&(r=r.deltaEnd(h.length));const c=Q.fromOffsetPairs(t?t.getEndExclusives():Y.zero,i?i.getStarts():Y.max),d=r.intersect(c);o.length>0&&d.getStarts().equals(o[o.length-1].getEndExclusives())?o[o.length-1]=o[o.length-1].join(d):o.push(d)})),o}(a,l,d);const u=d.map((e=>new O(a.translateRange(e.seq1Range),l.translateRange(e.seq2Range))));return{mappings:u,hitTimeout:h.hitTimeout}}}function ye(e,t,n,i=!1){const r=[];for(const s of(0,K.n)(e.map((e=>function(e,t,n){let i=0,r=0;1===e.modifiedRange.endColumn&&1===e.originalRange.endColumn&&e.originalRange.startLineNumber+i<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+i<=e.modifiedRange.endLineNumber&&(r=-1);e.modifiedRange.startColumn-1>=n[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+r&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+r&&(i=1);const s=new L.M(e.originalRange.startLineNumber+i,e.originalRange.endLineNumber+1+r),o=new L.M(e.modifiedRange.startLineNumber+i,e.modifiedRange.endLineNumber+1+r);return new D(s,o,[e])}(e,t,n))),((e,t)=>e.original.overlapOrTouch(t.original)||e.modified.overlapOrTouch(t.modified)))){const e=s[0],t=s[s.length-1];r.push(new D(e.original.join(t.original),e.modified.join(t.modified),s.map((e=>e.innerChanges[0]))))}return(0,E.Ft)((()=>{if(!i&&r.length>0){if(r[0].modified.startLineNumber!==r[0].original.startLineNumber)return!1;if(n.length-r[r.length-1].modified.endLineNumberExclusive!==t.length-r[r.length-1].original.endLineNumberExclusive)return!1}return(0,E.Xo)(r,((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))})),r}const Te=()=>new z,Ce=()=>new ke;var Se=n(146),Le=n(6456),xe=n(7661);function Ee(e){const t=[];for(const n of e){const e=Number(n);(e||0===e&&""!==n.replace(/\s/g,""))&&t.push(e)}return t}function Ae(e,t,n,i){return{red:e/255,blue:n/255,green:t/255,alpha:i}}function Ie(e,t){const n=t.index,i=t[0].length;if(!n)return;const r=e.positionAt(n);return{startLineNumber:r.lineNumber,startColumn:r.column,endLineNumber:r.lineNumber,endColumn:r.column+i}}function Me(e,t){if(!e)return;const n=xe.Q1.Format.CSS.parseHex(t);return n?{range:e,color:Ae(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}:void 0}function Ne(e,t,n){if(!e||1!==t.length)return;const i=Ee(t[0].values());return{range:e,color:Ae(i[0],i[1],i[2],n?i[3]:1)}}function Re(e,t,n){if(!e||1!==t.length)return;const i=Ee(t[0].values()),r=new xe.Q1(new xe.hB(i[0],i[1]/100,i[2]/100,n?i[3]:1));return{range:e,color:Ae(r.rgba.r,r.rgba.g,r.rgba.b,r.rgba.a)}}function De(e,t){return"string"===typeof e?[...e.matchAll(t)]:e.findMatches(t)}function Oe(e){return e&&"function"===typeof e.getValue&&"function"===typeof e.positionAt?function(e){const t=[],n=De(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/gm);if(n.length>0)for(const i of n){const n=i.filter((e=>void 0!==e)),r=n[1],s=n[2];if(!s)continue;let o;if("rgb"===r){const t=/^\(\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;o=Ne(Ie(e,i),De(s,t),!1)}else if("rgba"===r){const t=/^\(\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;o=Ne(Ie(e,i),De(s,t),!0)}else if("hsl"===r){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;o=Re(Ie(e,i),De(s,t),!1)}else if("hsla"===r){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;o=Re(Ie(e,i),De(s,t),!0)}else"#"===r&&(o=Me(Ie(e,i),r+s));o&&t.push(o)}return t}(e):[]}var Be=n(6691),ze=n(796);class Pe{constructor(){this._workerTextModelSyncServer=new ze.WorkerTextModelSyncServer}dispose(){}_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){const i=this._getModel(e);return i?y.UnicodeTextModelHighlighter.computeUnicodeHighlights(i,t,n):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async $findSectionHeaders(e,t){const n=this._getModel(e);return n?(0,Be.findSectionHeaders)(n,t):[]}async $computeDiff(e,t,n,i){const r=this._getModel(e),s=this._getModel(t);if(!r||!s)return null;return Fe.computeDiff(r,s,n,i)}static computeDiff(e,t,n,i){const r="advanced"===i?Ce():Te(),s=e.getLinesContent(),o=t.getLinesContent(),a=r.computeDiff(s,o,n);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:!(a.changes.length>0)&&this._modelsAreIdentical(e,t),quitEarly:a.hitTimeout,changes:l(a.changes),moves:a.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){const n=e.getLineCount();if(n!==t.getLineCount())return!1;for(let i=1;i<=n;i++){if(e.getLineContent(i)!==t.getLineContent(i))return!1}return!0}static{this._diffLimit=1e5}async $computeMoreMinimalEdits(e,t,n){const i=this._getModel(e);if(!i)return t;const r=[];let s;t=t.slice(0).sort(((e,t)=>{if(e.range&&t.range)return d.Q.compareRangesUsingStarts(e.range,t.range);return(e.range?0:1)-(t.range?0:1)}));let a=0;for(let o=1;o<t.length;o++)d.Q.getEndPosition(t[a].range).equals(d.Q.getStartPosition(t[o].range))?(t[a].range=d.Q.fromPositions(d.Q.getStartPosition(t[a].range),d.Q.getEndPosition(t[o].range)),t[a].text+=t[o].text):(a++,t[a]=t[o]);t.length=a+1;for(let{range:l,text:h,eol:c}of t){if("number"===typeof c&&(s=c),d.Q.isEmpty(l)&&!h)continue;const e=i.getValueInRange(l);if(h=h.replace(/\r\n|\n|\r/g,i.eol),e===h)continue;if(Math.max(h.length,e.length)>Fe._diffLimit){r.push({range:l,text:h});continue}const t=o(e,h,n),a=i.offsetAt(d.Q.lift(l).getStartPosition());for(const n of t){const e=i.positionAt(a+n.originalStart),t=i.positionAt(a+n.originalStart+n.originalLength),s={text:h.substr(n.modifiedStart,n.modifiedLength),range:{startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:t.lineNumber,endColumn:t.column}};i.getValueInRange(s.range)!==s.text&&r.push(s)}}return"number"===typeof s&&r.push({eol:s,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),r}async $computeLinks(e){const t=this._getModel(e);return t?function(e){return e&&"function"===typeof e.getLineCount&&"function"===typeof e.getLineContent?_.computeLinks(e):[]}(t):null}async $computeDefaultDocumentColors(e){const t=this._getModel(e);return t?Oe(t):null}static{this._suggestionsLimit=1e4}async $textualSuggest(e,t,n,i){const r=new k.W,s=new RegExp(n,i),o=new Set;e:for(const a of e){const e=this._getModel(a);if(e)for(const n of e.words(s))if(n!==t&&isNaN(Number(n))&&(o.add(n),o.size>Fe._suggestionsLimit))break e}return{words:Array.from(o),duration:r.elapsed()}}async $computeWordRanges(e,t,n,i){const r=this._getModel(e);if(!r)return Object.create(null);const s=new RegExp(n,i),o=Object.create(null);for(let a=t.startLineNumber;a<t.endLineNumber;a++){const e=r.getLineWords(a,s);for(const t of e){if(!isNaN(Number(t.word)))continue;let e=o[t.word];e||(e=[],o[t.word]=e),e.push({startLineNumber:a,startColumn:t.startColumn,endLineNumber:a,endColumn:t.endColumn})}}return o}async $navigateValueSet(e,t,n,i,r){const s=this._getModel(e);if(!s)return null;const o=new RegExp(i,r);t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1});const a=s.getValueInRange(t),l=s.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},o);if(!l)return null;const h=s.getValueInRange(l);return b.INSTANCE.navigateValueSet(t,a,l,h,n)}}class Fe extends Pe{constructor(e,t){super(),this._host=e,this._foreignModuleFactory=t,this._foreignModule=null}async $ping(){return"pong"}$loadForeignModule(e,t,i){const r={host:(0,Se.kT)(i,((e,t)=>this._host.$fhr(e,t))),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(r,t),Promise.resolve((0,Se.V0)(this._foreignModule))):new Promise(((i,s)=>{const o=e=>{this._foreignModule=e.create(r,t),i((0,Se.V0)(this._foreignModule))};{const t=Le.zl.asBrowserUri(`${e}.js`).toString(!0);n(9204)(`${t}`).then(o).catch(s)}}))}$fmr(e,t){if(!this._foreignModule||"function"!==typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(n){return Promise.reject(n)}}}function We(e){return new Fe(w.EditorWorkerHost.getChannel(e),null)}"function"===typeof importScripts&&(globalThis.monaco=(0,v.createMonacoBaseAPI)())},5326:(e,t,n)=>{"use strict";n.d(t,{L:()=>s});var i=n(3069),r=n(6677);class s extends r.Q{constructor(e,t,n,i){super(e,t,n,i),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=n,this.positionColumn=i}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return s.selectionsEqual(this,e)}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(e,t){return 0===this.getDirection()?new s(this.startLineNumber,this.startColumn,e,t):new s(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new i.y(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new i.y(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return 0===this.getDirection()?new s(e,t,this.endLineNumber,this.endColumn):new s(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new s(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return 0===t?new s(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new s(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new s(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.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,i=e.length;n<i;n++)if(!this.selectionsEqual(e[n],t[n]))return!1;return!0}static isISelection(e){return e&&"number"===typeof e.selectionStartLineNumber&&"number"===typeof e.selectionStartColumn&&"number"===typeof e.positionLineNumber&&"number"===typeof e.positionColumn}static createWithDirection(e,t,n,i,r){return 0===r?new s(e,t,n,i):new s(n,i,e,t)}}},5538:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SemanticTokensProviderStyling:()=>m,toMultilineTokens2:()=>p});n(5982);var i=n(5724),r=n(3511),s=n(3069),o=n(6677),a=n(4454);class l{static create(e,t){return new l(e,new h(t))}get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._endLineNumber}constructor(e,t){this._startLineNumber=e,this._tokens=t,this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}toString(){return this._tokens.toString(this._startLineNumber)}_updateEndLineNumber(){this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}isEmpty(){return this._tokens.isEmpty()}getLineTokens(e){return this._startLineNumber<=e&&e<=this._endLineNumber?this._tokens.getLineTokens(e-this._startLineNumber):null}getRange(){const e=this._tokens.getRange();return e?new o.Q(this._startLineNumber+e.startLineNumber,e.startColumn,this._startLineNumber+e.endLineNumber,e.endColumn):e}removeTokens(e){const t=e.startLineNumber-this._startLineNumber,n=e.endLineNumber-this._startLineNumber;this._startLineNumber+=this._tokens.removeTokens(t,e.startColumn-1,n,e.endColumn-1),this._updateEndLineNumber()}split(e){const t=e.startLineNumber-this._startLineNumber,n=e.endLineNumber-this._startLineNumber,[i,r,s]=this._tokens.split(t,e.startColumn-1,n,e.endColumn-1);return[new l(this._startLineNumber,i),new l(this._startLineNumber+s,r)]}applyEdit(e,t){const[n,i,r]=(0,a.W)(t);this.acceptEdit(e,n,i,r,t.length>0?t.charCodeAt(0):0)}acceptEdit(e,t,n,i,r){this._acceptDeleteRange(e),this._acceptInsertText(new s.y(e.startLineNumber,e.startColumn),t,n,i,r),this._updateEndLineNumber()}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return;const t=e.startLineNumber-this._startLineNumber,n=e.endLineNumber-this._startLineNumber;if(n<0){const e=n-t;return void(this._startLineNumber-=e)}const i=this._tokens.getMaxDeltaLine();if(!(t>=i+1)){if(t<0&&n>=i+1)return this._startLineNumber=0,void this._tokens.clear();if(t<0){const i=-t;this._startLineNumber-=i,this._tokens.acceptDeleteRange(e.startColumn-1,0,0,n,e.endColumn-1)}else this._tokens.acceptDeleteRange(0,t,e.startColumn-1,n,e.endColumn-1)}}_acceptInsertText(e,t,n,i,r){if(0===t&&0===n)return;const s=e.lineNumber-this._startLineNumber;if(s<0)return void(this._startLineNumber+=t);s>=this._tokens.getMaxDeltaLine()+1||this._tokens.acceptInsertText(s,e.column-1,t,n,i,r)}}class h{constructor(e){this._tokens=e,this._tokenCount=e.length/4}toString(e){const t=[];for(let n=0;n<this._tokenCount;n++)t.push(`(${this._getDeltaLine(n)+e},${this._getStartCharacter(n)}-${this._getEndCharacter(n)})`);return`[${t.join(",")}]`}getMaxDeltaLine(){const e=this._getTokenCount();return 0===e?-1:this._getDeltaLine(e-1)}getRange(){const e=this._getTokenCount();if(0===e)return null;const t=this._getStartCharacter(0),n=this._getDeltaLine(e-1),i=this._getEndCharacter(e-1);return new o.Q(0,t+1,n,i+1)}_getTokenCount(){return this._tokenCount}_getDeltaLine(e){return this._tokens[4*e]}_getStartCharacter(e){return this._tokens[4*e+1]}_getEndCharacter(e){return this._tokens[4*e+2]}isEmpty(){return 0===this._getTokenCount()}getLineTokens(e){let t=0,n=this._getTokenCount()-1;for(;t<n;){const i=t+Math.floor((n-t)/2),r=this._getDeltaLine(i);if(r<e)t=i+1;else{if(!(r>e)){let r=i;for(;r>t&&this._getDeltaLine(r-1)===e;)r--;let s=i;for(;s<n&&this._getDeltaLine(s+1)===e;)s++;return new c(this._tokens.subarray(4*r,4*s+4))}n=i-1}}return this._getDeltaLine(t)===e?new c(this._tokens.subarray(4*t,4*t+4)):null}clear(){this._tokenCount=0}removeTokens(e,t,n,i){const r=this._tokens,s=this._tokenCount;let o=0,a=!1,l=0;for(let h=0;h<s;h++){const s=4*h,c=r[s],d=r[s+1],u=r[s+2],g=r[s+3];if((c>e||c===e&&u>=t)&&(c<n||c===n&&d<=i))a=!0;else{if(0===o&&(l=c),a){const e=4*o;r[e]=c-l,r[e+1]=d,r[e+2]=u,r[e+3]=g}o++}}return this._tokenCount=o,l}split(e,t,n,i){const r=this._tokens,s=this._tokenCount,o=[],a=[];let l=o,c=0,d=0;for(let h=0;h<s;h++){const s=4*h,o=r[s],u=r[s+1],g=r[s+2],f=r[s+3];if(o>e||o===e&&g>=t){if(o<n||o===n&&u<=i)continue;l!==a&&(l=a,c=0,d=o)}l[c++]=o-d,l[c++]=u,l[c++]=g,l[c++]=f}return[new h(new Uint32Array(o)),new h(new Uint32Array(a)),d]}acceptDeleteRange(e,t,n,i,r){const s=this._tokens,o=this._tokenCount,a=i-t;let l=0,h=!1;for(let c=0;c<o;c++){const d=4*c;let u=s[d],g=s[d+1],f=s[d+2];const m=s[d+3];if(u<t||u===t&&f<=n){l++;continue}if(u===t&&g<n)u===i&&f>r?f-=r-n:f=n;else if(u===t&&g===n){if(!(u===i&&f>r)){h=!0;continue}f-=r-n}else if(u<i||u===i&&g<r){if(!(u===i&&f>r)){h=!0;continue}u=t,g=n,f=g+(f-r)}else if(u>i){if(0===a&&!h){l=o;break}u-=a}else{if(!(u===i&&g>=r))throw new Error("Not possible!");e&&0===u&&(g+=e,f+=e),u-=a,g-=r-n,f-=r-n}const p=4*l;s[p]=u,s[p+1]=g,s[p+2]=f,s[p+3]=m,l++}this._tokenCount=l}acceptInsertText(e,t,n,i,r,s){const o=0===n&&1===i&&(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122),a=this._tokens,l=this._tokenCount;for(let h=0;h<l;h++){const s=4*h;let l=a[s],c=a[s+1],d=a[s+2];if(!(l<e||l===e&&d<t)){if(l===e&&d===t){if(!o)continue;d+=1}else if(l===e&&c<t&&t<d)0===n?d+=i:d=t;else{if(l===e&&c===t&&o)continue;if(l===e)if(l+=n,0===n)c+=i,d+=i;else{const e=d-c;c=r+(c-t),d=c+e}else l+=n}a[s]=l,a[s+1]=c,a[s+2]=d}}}}class c{constructor(e){this._tokens=e}getCount(){return this._tokens.length/4}getStartCharacter(e){return this._tokens[4*e+1]}getEndCharacter(e){return this._tokens[4*e+2]}getMetadata(e){return this._tokens[4*e+3]}}var d=n(154),u=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},g=function(e,t){return function(n,i){t(n,i,e)}};const f=!1;let m=class{constructor(e,t,n,i){this._legend=e,this._themeService=t,this._languageService=n,this._logService=i,this._hasWarnedOverlappingTokens=!1,this._hasWarnedInvalidLengthTokens=!1,this._hasWarnedInvalidEditStart=!1,this._hashTable=new b}getMetadata(e,t,n){const i=this._languageService.languageIdCodec.encodeLanguageId(n),r=this._hashTable.get(e,t,i);let s;if(r)s=r.metadata;else{let r=this._legend.tokenTypes[e];const o=[];if(r){let e=t;for(let t=0;e>0&&t<this._legend.tokenModifiers.length;t++)1&e&&o.push(this._legend.tokenModifiers[t]),e>>=1;f;const i=this._themeService.getColorTheme().getTokenStyleMetadata(r,o,n);if("undefined"===typeof i)s=2147483647;else{if(s=0,"undefined"!==typeof i.italic){s|=1|(i.italic?1:0)<<11}if("undefined"!==typeof i.bold){s|=2|(i.bold?2:0)<<11}if("undefined"!==typeof i.underline){s|=4|(i.underline?4:0)<<11}if("undefined"!==typeof i.strikethrough){s|=8|(i.strikethrough?8:0)<<11}if(i.foreground){s|=16|i.foreground<<15}0===s&&(s=2147483647)}}else s=2147483647,r="not-in-legend";this._hashTable.add(e,t,i,s)}return s}warnOverlappingSemanticTokens(e,t){this._hasWarnedOverlappingTokens||(this._hasWarnedOverlappingTokens=!0,this._logService.warn(`Overlapping semantic tokens detected at lineNumber ${e}, column ${t}`))}warnInvalidLengthSemanticTokens(e,t){this._hasWarnedInvalidLengthTokens||(this._hasWarnedInvalidLengthTokens=!0,this._logService.warn(`Semantic token with invalid length detected at lineNumber ${e}, column ${t}`))}warnInvalidEditStart(e,t,n,i,r){this._hasWarnedInvalidEditStart||(this._hasWarnedInvalidEditStart=!0,this._logService.warn(`Invalid semantic tokens edit detected (previousResultId: ${e}, resultId: ${t}) at edit #${n}: The provided start offset ${i} is outside the previous data (length ${r}).`))}};function p(e,t,n){const i=e.data,r=e.data.length/5|0,s=Math.max(Math.ceil(r/1024),400),o=[];let a=0,h=1,c=0;for(;a<r;){const e=a;let d=Math.min(e+s,r);if(d<r){let t=d;for(;t-1>e&&0===i[5*t];)t--;if(t-1===e){let e=d;for(;e+1<r&&0===i[5*e];)e++;d=e}else d=t}let u=new Uint32Array(4*(d-e)),g=0,f=0,m=0,p=0;for(;a<d;){const e=5*a,r=i[e],s=i[e+1],o=h+r|0,l=0===r?c+s|0:s,d=l+i[e+2]|0,_=i[e+3],b=i[e+4];if(d<=l)t.warnInvalidLengthSemanticTokens(o,l+1);else if(m===o&&p>l)t.warnOverlappingSemanticTokens(o,l+1);else{const e=t.getMetadata(_,b,n);2147483647!==e&&(0===f&&(f=o),u[g]=o-f,u[g+1]=l,u[g+2]=d,u[g+3]=e,g+=4,m=o,p=d)}h=o,c=l,a++}g!==u.length&&(u=u.subarray(0,g));const _=l.create(f,u);o.push(_)}return o}m=u([g(1,i.Gy),g(2,d.L),g(3,r.rr)],m);class _{constructor(e,t,n,i){this.tokenTypeIndex=e,this.tokenModifierSet=t,this.languageId=n,this.metadata=i,this.next=null}}class b{static{this._SIZES=[3,7,13,31,61,127,251,509,1021,2039,4093,8191,16381,32749,65521,131071,262139,524287,1048573,2097143]}constructor(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=b._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<b._SIZES.length?2/3*this._currentLength:0),this._elements=[],b._nullOutEntries(this._elements,this._currentLength)}static _nullOutEntries(e,t){for(let n=0;n<t;n++)e[n]=null}_hash2(e,t){return(e<<5)-e+t|0}_hashFunc(e,t,n){return this._hash2(this._hash2(e,t),n)%this._currentLength}get(e,t,n){const i=this._hashFunc(e,t,n);let r=this._elements[i];for(;r;){if(r.tokenTypeIndex===e&&r.tokenModifierSet===t&&r.languageId===n)return r;r=r.next}return null}add(e,t,n,i){if(this._elementsCount++,0!==this._growCount&&this._elementsCount>=this._growCount){const e=this._elements;this._currentLengthIndex++,this._currentLength=b._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<b._SIZES.length?2/3*this._currentLength:0),this._elements=[],b._nullOutEntries(this._elements,this._currentLength);for(const t of e){let e=t;for(;e;){const t=e.next;e.next=null,this._add(e),e=t}}}this._add(new _(e,t,n,i))}_add(e){const t=this._hashFunc(e.tokenTypeIndex,e.tokenModifierSet,e.languageId);e.next=this._elements[t],this._elements[t]=e}}},5600:(e,t,n)=>{"use strict";n.d(t,{e2:()=>o,sN:()=>r,v7:()=>c});var i=n(1508);function r(e,t){switch(typeof e){case"object":return null===e?s(349,t):Array.isArray(e)?(n=e,i=s(104579,i=t),n.reduce(((e,t)=>r(t,e)),i)):function(e,t){return t=s(181387,t),Object.keys(e).sort().reduce(((t,n)=>(t=o(n,t),r(e[n],t))),t)}(e,t);case"string":return o(e,t);case"boolean":return function(e,t){return s(e?433:863,t)}(e,t);case"number":return s(e,t);case"undefined":return s(937,t);default:return s(617,t)}var n,i}function s(e,t){return(t<<5)-t+e|0}function o(e,t){t=s(149417,t);for(let n=0,i=e.length;n<i;n++)t=s(e.charCodeAt(n),t);return t}function a(e,t,n=32){const i=n-t;return(e<<t|(~((1<<i)-1)&e)>>>i)>>>0}function l(e,t=0,n=e.byteLength,i=0){for(let r=0;r<n;r++)e[t+r]=i}function h(e,t=32){return e instanceof ArrayBuffer?Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join(""):function(e,t,n="0"){for(;e.length<t;)e=n+e;return e}((e>>>0).toString(16),t/4)}class c{static{this._bigBlock32=new DataView(new ArrayBuffer(320))}constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(0===t)return;const n=this._buff;let r,s,o=this._buffLen,a=this._leftoverHighSurrogate;for(0!==a?(r=a,s=-1,a=0):(r=e.charCodeAt(0),s=0);;){let l=r;if(i.pc(r)){if(!(s+1<t)){a=r;break}{const t=e.charCodeAt(s+1);i.LJ(t)?(s++,l=i.z_(r,t)):l=65533}}else i.LJ(r)&&(l=65533);if(o=this._push(n,o,l),s++,!(s<t))break;r=e.charCodeAt(s)}this._buffLen=o,this._leftoverHighSurrogate=a}_push(e,t,n){return n<128?e[t++]=n:n<2048?(e[t++]=192|(1984&n)>>>6,e[t++]=128|(63&n)>>>0):n<65536?(e[t++]=224|(61440&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0):(e[t++]=240|(1835008&n)>>>18,e[t++]=128|(258048&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>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()),h(this._h0)+h(this._h1)+h(this._h2)+h(this._h3)+h(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,l(this._buff,this._buffLen),this._buffLen>56&&(this._step(),l(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=c._bigBlock32,t=this._buffDV;for(let a=0;a<64;a+=4)e.setUint32(a,t.getUint32(a,!1),!1);for(let c=64;c<320;c+=4)e.setUint32(c,a(e.getUint32(c-12,!1)^e.getUint32(c-32,!1)^e.getUint32(c-56,!1)^e.getUint32(c-64,!1),1),!1);let n,i,r,s=this._h0,o=this._h1,l=this._h2,h=this._h3,d=this._h4;for(let c=0;c<80;c++)c<20?(n=o&l|~o&h,i=1518500249):c<40?(n=o^l^h,i=1859775393):c<60?(n=o&l|o&h|l&h,i=2400959708):(n=o^l^h,i=3395469782),r=a(s,5)+n+d+i+e.getUint32(4*c,!1)&4294967295,d=h,h=l,l=a(o,30),o=s,s=r;this._h0=this._h0+s&4294967295,this._h1=this._h1+o&4294967295,this._h2=this._h2+l&4294967295,this._h3=this._h3+h&4294967295,this._h4=this._h4+d&4294967295}}},5628:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getIconClasses:()=>u});var i,r=n(6456),s=n(9403),o=n(9400),a=n(3941);!function(e){e[e.FILE=0]="FILE",e[e.FOLDER=1]="FOLDER",e[e.ROOT_FOLDER=2]="ROOT_FOLDER"}(i||(i={}));var l,h,c=n(9493);!function(e){e.isThemeColor=function(e){return e&&"object"===typeof e&&"string"===typeof e.id}}(l||(l={})),function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9-]+",e.iconModifierExpression="~[A-Za-z]+",e.iconNameCharacter="[A-Za-z0-9~-]";const t=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function n(e){const i=t.exec(e.id);if(!i)return n(c.W.error);const[,r,s]=i,o=["codicon","codicon-"+r];return s&&o.push("codicon-modifier-"+s.substring(1)),o}e.asClassNameArray=n,e.asClassName=function(e){return n(e).join(" ")},e.asCSSSelector=function(e){return"."+n(e).join(".")},e.isThemeIcon=function(e){return e&&"object"===typeof e&&"string"===typeof e.id&&("undefined"===typeof e.color||l.isThemeColor(e.color))};const i=new RegExp(`^\\$\\((${e.iconNameExpression}(?:${e.iconModifierExpression})?)\\)$`);e.fromString=function(e){const t=i.exec(e);if(!t)return;const[,n]=t;return{id:n}},e.fromId=function(e){return{id:e}},e.modify=function(e,t){let n=e.id;const i=n.lastIndexOf("~");return-1!==i&&(n=n.substring(0,i)),t&&(n=`${n}~${t}`),{id:n}},e.getModifier=function(e){const t=e.id.lastIndexOf("~");if(-1!==t)return e.id.substring(t+1)},e.isEqual=function(e,t){return e.id===t.id&&e.color?.id===t.color?.id}}(h||(h={}));const d=/(?:\/|^)(?:([^\/]+)\/)?([^\/]+)$/;function u(e,t,n,l,c){if(h.isThemeIcon(c))return[`codicon-${c.id}`,"predefined-file-icon"];if(o.r.isUri(c))return[];const u=l===i.ROOT_FOLDER?["rootfolder-icon"]:l===i.FOLDER?["folder-icon"]:["file-icon"];if(n){let o;if(n.scheme===r.ny.data){o=s.B6.parseMetaData(n).get(s.B6.META_DATA_LABEL)}else{const e=n.path.match(d);e?(o=g(e[2].toLowerCase()),e[1]&&u.push(`${g(e[1].toLowerCase())}-name-dir-icon`)):o=g(n.authority.toLowerCase())}if(l===i.ROOT_FOLDER)u.push(`${o}-root-name-folder-icon`);else if(l===i.FOLDER)u.push(`${o}-name-folder-icon`);else{if(o){if(u.push(`${o}-name-file-icon`),u.push("name-file-icon"),o.length<=255){const e=o.split(".");for(let t=1;t<e.length;t++)u.push(`${e.slice(t).join(".")}-ext-file-icon`)}u.push("ext-file-icon")}const i=function(e,t,n){if(!n)return null;let i=null;if(n.scheme===r.ny.data){const e=s.B6.parseMetaData(n).get(s.B6.META_DATA_MIME);e&&(i=t.getLanguageIdByMimeType(e))}else{const t=e.getModel(n);t&&(i=t.getLanguageId())}if(i&&i!==a.vH)return i;return t.guessLanguageIdByFilepathOrFirstLine(n)}(e,t,n);i&&u.push(`${g(i)}-lang-file-icon`)}}return u}function g(e){return e.replace(/[\s]/g,"/")}},5724:(e,t,n)=>{"use strict";n.d(t,{Gy:()=>l,zy:()=>d,Yf:()=>h});var i,r=n(1234),s=n(1484),o=n(3591),a=n(6359);!function(e){e.DARK="dark",e.LIGHT="light",e.HIGH_CONTRAST_DARK="hcDark",e.HIGH_CONTRAST_LIGHT="hcLight"}(i||(i={}));const l=(0,o.u1)("themeService");function h(e){return{id:e}}const c=new class{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new r.vl}onColorThemeChange(e){return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),(0,s.s)((()=>{const t=this.themingParticipants.indexOf(e);this.themingParticipants.splice(t,1)}))}getThemingParticipants(){return this.themingParticipants}};function d(e){return c.onColorThemeChange(e)}a.O.add("base.contributions.theming",c);s.jG},5845:(e,t,n)=>{"use strict";n.d(t,{buw:()=>S,b1q:()=>C,YtV:()=>M,Ubg:()=>U,IIb:()=>W,pOz:()=>F,whs:()=>B,Stt:()=>P,Hng:()=>z,yLC:()=>le,KoI:()=>oe,uMG:()=>ae,x1A:()=>d});var i=n(6782),r=n(1940),s=n(7661),o=n(1234),a=n(8748),l=n(6359),h=n(8209);const c=new class{constructor(){this._onDidChangeSchema=new o.vl,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}registerColor(e,t,n,i=!1,r){const s={id:e,description:n,defaults:t,needsTransparency:i,deprecationMessage:r};this.colorsById[e]=s;const o={type:"string",format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return r&&(o.deprecationMessage=r),i&&(o.pattern="^#(?:(?<rgba>[0-9a-fA-f]{3}[0-9a-eA-E])|(?:[0-9a-fA-F]{6}(?:(?![fF]{2})(?:[0-9a-fA-F]{2}))))?$",o.patternErrorMessage=h.kg("transparecyRequired","This color must be transparent or it will obscure content")),this.colorSchema.properties[e]={description:n,oneOf:[o,{type:"string",const:"default",description:h.kg("useDefault","Use the default color.")}]},this.colorReferenceSchema.enum.push(e),this.colorReferenceSchema.enumDescriptions.push(n),this._onDidChangeSchema.fire(),e}getColors(){return Object.keys(this.colorsById).map((e=>this.colorsById[e]))}resolveDefaultColor(e,t){const n=this.colorsById[e];if(n?.defaults){return _(null!==(i=n.defaults)&&"object"===typeof i&&"light"in i&&"dark"in i?n.defaults[t.type]:n.defaults,t)}var i}getColorSchema(){return this.colorSchema}toString(){return Object.keys(this.colorsById).sort(((e,t)=>{const n=-1===e.indexOf(".")?0:1,i=-1===t.indexOf(".")?0:1;return n!==i?n-i:e.localeCompare(t)})).map((e=>`- \`${e}\`: ${this.colorsById[e].description}`)).join("\n")}};function d(e,t,n,i,r){return c.registerColor(e,t,n,i,r)}function u(e,t){return{op:0,value:e,factor:t}}function g(e,t){return{op:1,value:e,factor:t}}function f(e,t){return{op:2,value:e,factor:t}}function m(...e){return{op:4,values:e}}function p(e,t,n,i){return{op:5,value:e,background:t,factor:n,transparency:i}}function _(e,t){if(null!==e)return"string"===typeof e?"#"===e[0]?s.Q1.fromHex(e):t.getColor(e):e instanceof s.Q1?e:"object"===typeof e?function(e,t){switch(e.op){case 0:return _(e.value,t)?.darken(e.factor);case 1:return _(e.value,t)?.lighten(e.factor);case 2:return _(e.value,t)?.transparent(e.factor);case 3:{const n=_(e.background,t);return n?_(e.value,t)?.makeOpaque(n):_(e.value,t)}case 4:for(const n of e.values){const e=_(n,t);if(e)return e}return;case 6:return _(t.defines(e.if)?e.then:e.else,t);case 5:{const n=_(e.value,t);if(!n)return;const i=_(e.background,t);return i?n.isDarkerThan(i)?s.Q1.getLighterColor(n,i,e.factor).transparent(e.transparency):s.Q1.getDarkerColor(n,i,e.factor).transparent(e.transparency):n.transparent(e.factor*e.transparency)}default:throw(0,i.xb)(e)}}(e,t):void 0}l.O.add("base.contributions.colors",c);const b="vscode://schemas/workbench-colors",v=l.O.as(a.F.JSONContribution);v.registerSchema(b,c.getColorSchema());const w=new r.uC((()=>v.notifySchemaChanged(b)),200);c.onDidChangeSchema((()=>{w.isScheduled()||w.schedule()}));const k=d("foreground",{dark:"#CCCCCC",light:"#616161",hcDark:"#FFFFFF",hcLight:"#292929"},h.kg("foreground","Overall foreground color. This color is only used if not overridden by a component.")),y=(d("disabledForeground",{dark:"#CCCCCC80",light:"#61616180",hcDark:"#A5A5A5",hcLight:"#7F7F7F"},h.kg("disabledForeground","Overall foreground for disabled elements. This color is only used if not overridden by a component.")),d("errorForeground",{dark:"#F48771",light:"#A1260D",hcDark:"#F48771",hcLight:"#B5200D"},h.kg("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),d("descriptionForeground",{light:"#717171",dark:f(k,.7),hcDark:f(k,.7),hcLight:f(k,.7)},h.kg("descriptionForeground","Foreground color for description text providing additional information, for example for a label.")),d("icon.foreground",{dark:"#C5C5C5",light:"#424242",hcDark:"#FFFFFF",hcLight:"#292929"},h.kg("iconForeground","The default color for icons in the workbench."))),T=d("focusBorder",{dark:"#007FD4",light:"#0090F1",hcDark:"#F38518",hcLight:"#006BBD"},h.kg("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),C=d("contrastBorder",{light:null,dark:null,hcDark:"#6FC3DF",hcLight:"#0F4A85"},h.kg("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),S=d("contrastActiveBorder",{light:null,dark:null,hcDark:T,hcLight:T},h.kg("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),L=(d("selection.background",null,h.kg("selectionBackground","The background color of text selections in the workbench (e.g. for input fields or text areas). Note that this does not apply to selections within the editor.")),d("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},h.kg("textLinkForeground","Foreground color for links in text.")),d("textLink.activeForeground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},h.kg("textLinkActiveForeground","Foreground color for links in text when clicked on and on mouse hover.")),d("textSeparator.foreground",{light:"#0000002e",dark:"#ffffff2e",hcDark:s.Q1.black,hcLight:"#292929"},h.kg("textSeparatorForeground","Color for text separators.")),d("textPreformat.foreground",{light:"#A31515",dark:"#D7BA7D",hcDark:"#000000",hcLight:"#FFFFFF"},h.kg("textPreformatForeground","Foreground color for preformatted text segments.")),d("textPreformat.background",{light:"#0000001A",dark:"#FFFFFF1A",hcDark:"#FFFFFF",hcLight:"#09345f"},h.kg("textPreformatBackground","Background color for preformatted text segments.")),d("textBlockQuote.background",{light:"#f2f2f2",dark:"#222222",hcDark:null,hcLight:"#F2F2F2"},h.kg("textBlockQuoteBackground","Background color for block quotes in text.")),d("textBlockQuote.border",{light:"#007acc80",dark:"#007acc80",hcDark:s.Q1.white,hcLight:"#292929"},h.kg("textBlockQuoteBorder","Border color for block quotes in text.")),d("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hcDark:s.Q1.black,hcLight:"#F2F2F2"},h.kg("textCodeBlockBackground","Background color for code blocks in text.")),d("sash.hoverBorder",T,h.kg("sashActiveBorder","Border color of active sashes.")),d("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hcDark:s.Q1.black,hcLight:"#0F4A85"},h.kg("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count."))),x=(d("badge.foreground",{dark:s.Q1.white,light:"#333",hcDark:s.Q1.white,hcLight:s.Q1.white},h.kg("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),d("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hcDark:null,hcLight:null},h.kg("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled."))),E=d("scrollbarSlider.background",{dark:s.Q1.fromHex("#797979").transparent(.4),light:s.Q1.fromHex("#646464").transparent(.4),hcDark:f(C,.6),hcLight:f(C,.4)},h.kg("scrollbarSliderBackground","Scrollbar slider background color.")),A=d("scrollbarSlider.hoverBackground",{dark:s.Q1.fromHex("#646464").transparent(.7),light:s.Q1.fromHex("#646464").transparent(.7),hcDark:f(C,.8),hcLight:f(C,.8)},h.kg("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),I=d("scrollbarSlider.activeBackground",{dark:s.Q1.fromHex("#BFBFBF").transparent(.4),light:s.Q1.fromHex("#000000").transparent(.6),hcDark:C,hcLight:C},h.kg("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),M=(d("progressBar.background",{dark:s.Q1.fromHex("#0E70C0"),light:s.Q1.fromHex("#0E70C0"),hcDark:C,hcLight:C},h.kg("progressBarBackground","Background color of the progress bar that can show for long running operations.")),d("editor.background",{light:"#ffffff",dark:"#1E1E1E",hcDark:s.Q1.black,hcLight:s.Q1.white},h.kg("editorBackground","Editor background color."))),N=(d("editor.foreground",{light:"#333333",dark:"#BBBBBB",hcDark:s.Q1.white,hcLight:k},h.kg("editorForeground","Editor default foreground color.")),d("editorStickyScroll.background",M,h.kg("editorStickyScrollBackground","Background color of sticky scroll in the editor")),d("editorStickyScrollHover.background",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:null,hcLight:s.Q1.fromHex("#0F4A85").transparent(.1)},h.kg("editorStickyScrollHoverBackground","Background color of sticky scroll on hover in the editor")),d("editorStickyScroll.border",{dark:null,light:null,hcDark:C,hcLight:C},h.kg("editorStickyScrollBorder","Border color of sticky scroll in the editor")),d("editorStickyScroll.shadow",x,h.kg("editorStickyScrollShadow"," Shadow color of sticky scroll in the editor")),d("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hcDark:"#0C141F",hcLight:s.Q1.white},h.kg("editorWidgetBackground","Background color of editor widgets, such as find/replace."))),R=d("editorWidget.foreground",k,h.kg("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),D=d("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hcDark:C,hcLight:C},h.kg("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),O=(d("editorWidget.resizeBorder",null,h.kg("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),d("editorError.background",null,h.kg("editorError.background","Background color of error text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),d("editorError.foreground",{dark:"#F14C4C",light:"#E51400",hcDark:"#F48771",hcLight:"#B5200D"},h.kg("editorError.foreground","Foreground color of error squigglies in the editor."))),B=(d("editorError.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#E47777").transparent(.8),hcLight:"#B5200D"},h.kg("errorBorder","If set, color of double underlines for errors in the editor.")),d("editorWarning.background",null,h.kg("editorWarning.background","Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0)),z=d("editorWarning.foreground",{dark:"#CCA700",light:"#BF8803",hcDark:"#FFD370",hcLight:"#895503"},h.kg("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),P=d("editorWarning.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#FFCC00").transparent(.8),hcLight:s.Q1.fromHex("#FFCC00").transparent(.8)},h.kg("warningBorder","If set, color of double underlines for warnings in the editor.")),F=(d("editorInfo.background",null,h.kg("editorInfo.background","Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),d("editorInfo.foreground",{dark:"#3794FF",light:"#1a85ff",hcDark:"#3794FF",hcLight:"#1a85ff"},h.kg("editorInfo.foreground","Foreground color of info squigglies in the editor."))),W=d("editorInfo.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#3794FF").transparent(.8),hcLight:"#292929"},h.kg("infoBorder","If set, color of double underlines for infos in the editor.")),H=(d("editorHint.foreground",{dark:s.Q1.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hcDark:null,hcLight:null},h.kg("editorHint.foreground","Foreground color of hint squigglies in the editor.")),d("editorHint.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#eeeeee").transparent(.8),hcLight:"#292929"},h.kg("hintBorder","If set, color of double underlines for hints in the editor.")),d("editorLink.activeForeground",{dark:"#4E94CE",light:s.Q1.blue,hcDark:s.Q1.cyan,hcLight:"#292929"},h.kg("activeLinkForeground","Color of active links.")),d("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hcDark:"#f3f518",hcLight:"#0F4A85"},h.kg("editorSelectionBackground","Color of the editor selection."))),U=(d("editor.selectionForeground",{light:null,dark:null,hcDark:"#000000",hcLight:s.Q1.white},h.kg("editorSelectionForeground","Color of the selected text for high contrast.")),d("editor.inactiveSelectionBackground",{light:f(H,.5),dark:f(H,.5),hcDark:f(H,.7),hcLight:f(H,.5)},h.kg("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),d("editor.selectionHighlightBackground",{light:p(H,M,.3,.6),dark:p(H,M,.3,.6),hcDark:null,hcLight:null},h.kg("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),d("editor.selectionHighlightBorder",{light:null,dark:null,hcDark:S,hcLight:S},h.kg("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),d("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hcDark:null,hcLight:null},h.kg("editorFindMatch","Color of the current search match.")),d("editor.findMatchForeground",null,h.kg("editorFindMatchForeground","Text color of the current search match.")),d("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hcDark:null,hcLight:null},h.kg("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0)),q=(d("editor.findMatchHighlightForeground",null,h.kg("findMatchHighlightForeground","Foreground color of the other search matches."),!0),d("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hcDark:null,hcLight:null},h.kg("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),d("editor.findMatchBorder",{light:null,dark:null,hcDark:S,hcLight:S},h.kg("editorFindMatchBorder","Border color of the current search match.")),d("editor.findMatchHighlightBorder",{light:null,dark:null,hcDark:S,hcLight:S},h.kg("findMatchHighlightBorder","Border color of the other search matches."))),V=(d("editor.findRangeHighlightBorder",{dark:null,light:null,hcDark:f(S,.4),hcLight:f(S,.4)},h.kg("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),d("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hcDark:"#ADD6FF26",hcLight:null},h.kg("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),d("editorHoverWidget.background",N,h.kg("hoverBackground","Background color of the editor hover."))),j=(d("editorHoverWidget.foreground",R,h.kg("hoverForeground","Foreground color of the editor hover.")),d("editorHoverWidget.border",D,h.kg("hoverBorder","Border color of the editor hover.")),d("editorHoverWidget.statusBarBackground",{dark:g(V,.2),light:u(V,.05),hcDark:N,hcLight:N},h.kg("statusBarBackground","Background color of the editor hover status bar.")),d("editorInlayHint.foreground",{dark:"#969696",light:"#969696",hcDark:s.Q1.white,hcLight:s.Q1.black},h.kg("editorInlayHintForeground","Foreground color of inline hints"))),G=d("editorInlayHint.background",{dark:f(L,.1),light:f(L,.1),hcDark:f(s.Q1.white,.1),hcLight:f(L,.1)},h.kg("editorInlayHintBackground","Background color of inline hints")),K=(d("editorInlayHint.typeForeground",j,h.kg("editorInlayHintForegroundTypes","Foreground color of inline hints for types")),d("editorInlayHint.typeBackground",G,h.kg("editorInlayHintBackgroundTypes","Background color of inline hints for types")),d("editorInlayHint.parameterForeground",j,h.kg("editorInlayHintForegroundParameter","Foreground color of inline hints for parameters")),d("editorInlayHint.parameterBackground",G,h.kg("editorInlayHintBackgroundParameter","Background color of inline hints for parameters")),d("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hcDark:"#FFCC00",hcLight:"#007ACC"},h.kg("editorLightBulbForeground","The color used for the lightbulb actions icon."))),$=(d("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},h.kg("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),d("editorLightBulbAi.foreground",K,h.kg("editorLightBulbAiForeground","The color used for the lightbulb AI icon.")),d("editor.snippetTabstopHighlightBackground",{dark:new s.Q1(new s.bU(124,124,124,.3)),light:new s.Q1(new s.bU(10,50,100,.2)),hcDark:new s.Q1(new s.bU(124,124,124,.3)),hcLight:new s.Q1(new s.bU(10,50,100,.2))},h.kg("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),d("editor.snippetTabstopHighlightBorder",null,h.kg("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),d("editor.snippetFinalTabstopHighlightBackground",null,h.kg("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),d("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new s.Q1(new s.bU(10,50,100,.5)),hcDark:"#525252",hcLight:"#292929"},h.kg("snippetFinalTabstopHighlightBorder","Highlight border color of the final tabstop of a snippet.")),new s.Q1(new s.bU(155,185,85,.2))),Q=new s.Q1(new s.bU(255,0,0,.2)),Y=(d("diffEditor.insertedTextBackground",{dark:"#9ccc2c33",light:"#9ccc2c40",hcDark:null,hcLight:null},h.kg("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),d("diffEditor.removedTextBackground",{dark:"#ff000033",light:"#ff000033",hcDark:null,hcLight:null},h.kg("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),d("diffEditor.insertedLineBackground",{dark:$,light:$,hcDark:null,hcLight:null},h.kg("diffEditorInsertedLines","Background color for lines that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),d("diffEditor.removedLineBackground",{dark:Q,light:Q,hcDark:null,hcLight:null},h.kg("diffEditorRemovedLines","Background color for lines that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),d("diffEditorGutter.insertedLineBackground",null,h.kg("diffEditorInsertedLineGutter","Background color for the margin where lines got inserted.")),d("diffEditorGutter.removedLineBackground",null,h.kg("diffEditorRemovedLineGutter","Background color for the margin where lines got removed.")),d("diffEditorOverview.insertedForeground",null,h.kg("diffEditorOverviewInserted","Diff overview ruler foreground for inserted content.")),d("diffEditorOverview.removedForeground",null,h.kg("diffEditorOverviewRemoved","Diff overview ruler foreground for removed content.")),d("diffEditor.insertedTextBorder",{dark:null,light:null,hcDark:"#33ff2eff",hcLight:"#374E06"},h.kg("diffEditorInsertedOutline","Outline color for the text that got inserted.")),d("diffEditor.removedTextBorder",{dark:null,light:null,hcDark:"#FF008F",hcLight:"#AD0707"},h.kg("diffEditorRemovedOutline","Outline color for text that got removed.")),d("diffEditor.border",{dark:null,light:null,hcDark:C,hcLight:C},h.kg("diffEditorBorder","Border color between the two text editors.")),d("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hcDark:null,hcLight:null},h.kg("diffDiagonalFill","Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.")),d("diffEditor.unchangedRegionBackground","sideBar.background",h.kg("diffEditor.unchangedRegionBackground","The background color of unchanged blocks in the diff editor.")),d("diffEditor.unchangedRegionForeground","foreground",h.kg("diffEditor.unchangedRegionForeground","The foreground color of unchanged blocks in the diff editor.")),d("diffEditor.unchangedCodeBackground",{dark:"#74747429",light:"#b8b8b829",hcDark:null,hcLight:null},h.kg("diffEditor.unchangedCodeBackground","The background color of unchanged code in the diff editor.")),d("widget.shadow",{dark:f(s.Q1.black,.36),light:f(s.Q1.black,.16),hcDark:null,hcLight:null},h.kg("widgetShadow","Shadow color of widgets such as find/replace inside the editor."))),X=(d("widget.border",{dark:null,light:null,hcDark:C,hcLight:C},h.kg("widgetBorder","Border color of widgets such as find/replace inside the editor.")),d("toolbar.hoverBackground",{dark:"#5a5d5e50",light:"#b8b8b850",hcDark:null,hcLight:null},h.kg("toolbarHoverBackground","Toolbar background when hovering over actions using the mouse"))),J=(d("toolbar.hoverOutline",{dark:null,light:null,hcDark:S,hcLight:S},h.kg("toolbarHoverOutline","Toolbar outline when hovering over actions using the mouse")),d("toolbar.activeBackground",{dark:g(X,.1),light:u(X,.1),hcDark:null,hcLight:null},h.kg("toolbarActiveBackground","Toolbar background when holding the mouse over actions")),d("breadcrumb.foreground",f(k,.8),h.kg("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),d("breadcrumb.background",M,h.kg("breadcrumbsBackground","Background color of breadcrumb items.")),d("breadcrumb.focusForeground",{light:u(k,.2),dark:g(k,.1),hcDark:g(k,.1),hcLight:g(k,.1)},h.kg("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),d("breadcrumb.activeSelectionForeground",{light:u(k,.2),dark:g(k,.1),hcDark:g(k,.1),hcLight:g(k,.1)},h.kg("breadcrumbsSelectedForeground","Color of selected breadcrumb items.")),d("breadcrumbPicker.background",N,h.kg("breadcrumbsSelectedBackground","Background color of breadcrumb item picker.")),s.Q1.fromHex("#40C8AE").transparent(.5)),Z=s.Q1.fromHex("#40A6FF").transparent(.5),ee=s.Q1.fromHex("#606060").transparent(.4),te=d("merge.currentHeaderBackground",{dark:J,light:J,hcDark:null,hcLight:null},h.kg("mergeCurrentHeaderBackground","Current header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),ne=(d("merge.currentContentBackground",f(te,.4),h.kg("mergeCurrentContentBackground","Current content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),d("merge.incomingHeaderBackground",{dark:Z,light:Z,hcDark:null,hcLight:null},h.kg("mergeIncomingHeaderBackground","Incoming header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0)),ie=(d("merge.incomingContentBackground",f(ne,.4),h.kg("mergeIncomingContentBackground","Incoming content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),d("merge.commonHeaderBackground",{dark:ee,light:ee,hcDark:null,hcLight:null},h.kg("mergeCommonHeaderBackground","Common ancestor header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0)),re=(d("merge.commonContentBackground",f(ie,.4),h.kg("mergeCommonContentBackground","Common ancestor content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),d("merge.border",{dark:null,light:null,hcDark:"#C3DF6F",hcLight:"#007ACC"},h.kg("mergeBorder","Border color on headers and the splitter in inline merge-conflicts."))),se=(d("editorOverviewRuler.currentContentForeground",{dark:f(te,1),light:f(te,1),hcDark:re,hcLight:re},h.kg("overviewRulerCurrentContentForeground","Current overview ruler foreground for inline merge-conflicts.")),d("editorOverviewRuler.incomingContentForeground",{dark:f(ne,1),light:f(ne,1),hcDark:re,hcLight:re},h.kg("overviewRulerIncomingContentForeground","Incoming overview ruler foreground for inline merge-conflicts.")),d("editorOverviewRuler.commonContentForeground",{dark:f(ie,1),light:f(ie,1),hcDark:re,hcLight:re},h.kg("overviewRulerCommonContentForeground","Common ancestor overview ruler foreground for inline merge-conflicts.")),d("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hcDark:"#AB5A00",hcLight:"#AB5A00"},h.kg("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0),d("editorOverviewRuler.selectionHighlightForeground","#A0A0A0CC",h.kg("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),d("problemsErrorIcon.foreground",O,h.kg("problemsErrorIconForeground","The color used for the problems error icon.")),d("problemsWarningIcon.foreground",z,h.kg("problemsWarningIconForeground","The color used for the problems warning icon.")),d("problemsInfoIcon.foreground",F,h.kg("problemsInfoIconForeground","The color used for the problems info icon.")),d("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hcDark:"#AB5A00",hcLight:"#0F4A85"},h.kg("minimapFindMatchHighlight","Minimap marker color for find matches."),!0)),oe=(d("minimap.selectionOccurrenceHighlight",{light:"#c9c9c9",dark:"#676767",hcDark:"#ffffff",hcLight:"#0F4A85"},h.kg("minimapSelectionOccurrenceHighlight","Minimap marker color for repeating editor selections."),!0),d("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hcDark:"#ffffff",hcLight:"#0F4A85"},h.kg("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),d("minimap.infoHighlight",{dark:F,light:F,hcDark:W,hcLight:W},h.kg("minimapInfo","Minimap marker color for infos."))),ae=d("minimap.warningHighlight",{dark:z,light:z,hcDark:P,hcLight:P},h.kg("overviewRuleWarning","Minimap marker color for warnings.")),le=d("minimap.errorHighlight",{dark:new s.Q1(new s.bU(255,18,18,.7)),light:new s.Q1(new s.bU(255,18,18,.7)),hcDark:new s.Q1(new s.bU(255,50,50,1)),hcLight:"#B5200D"},h.kg("minimapError","Minimap marker color for errors.")),he=(d("minimap.background",null,h.kg("minimapBackground","Minimap background color.")),d("minimap.foregroundOpacity",s.Q1.fromHex("#000f"),h.kg("minimapForegroundOpacity",'Opacity of foreground elements rendered in the minimap. For example, "#000000c0" will render the elements with 75% opacity.')),d("minimapSlider.background",f(E,.5),h.kg("minimapSliderBackground","Minimap slider background color.")),d("minimapSlider.hoverBackground",f(A,.5),h.kg("minimapSliderHoverBackground","Minimap slider background color when hovering.")),d("minimapSlider.activeBackground",f(I,.5),h.kg("minimapSliderActiveBackground","Minimap slider background color when clicked on.")),d("charts.foreground",k,h.kg("chartsForeground","The foreground color used in charts.")),d("charts.lines",f(k,.5),h.kg("chartsLines","The color used for horizontal lines in charts.")),d("charts.red",O,h.kg("chartsRed","The red color used in chart visualizations.")),d("charts.blue",F,h.kg("chartsBlue","The blue color used in chart visualizations.")),d("charts.yellow",z,h.kg("chartsYellow","The yellow color used in chart visualizations.")),d("charts.orange",se,h.kg("chartsOrange","The orange color used in chart visualizations.")),d("charts.green",{dark:"#89D185",light:"#388A34",hcDark:"#89D185",hcLight:"#374e06"},h.kg("chartsGreen","The green color used in chart visualizations.")),d("charts.purple",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},h.kg("chartsPurple","The purple color used in chart visualizations.")),d("input.background",{dark:"#3C3C3C",light:s.Q1.white,hcDark:s.Q1.black,hcLight:s.Q1.white},h.kg("inputBoxBackground","Input box background.")),d("input.foreground",k,h.kg("inputBoxForeground","Input box foreground.")),d("input.border",{dark:null,light:null,hcDark:C,hcLight:C},h.kg("inputBoxBorder","Input box border.")),d("inputOption.activeBorder",{dark:"#007ACC",light:"#007ACC",hcDark:C,hcLight:C},h.kg("inputBoxActiveOptionBorder","Border color of activated options in input fields."))),ce=d("inputOption.hoverBackground",{dark:"#5a5d5e80",light:"#b8b8b850",hcDark:null,hcLight:null},h.kg("inputOption.hoverBackground","Background color of activated options in input fields.")),de=d("inputOption.activeBackground",{dark:f(T,.4),light:f(T,.2),hcDark:s.Q1.transparent,hcLight:s.Q1.transparent},h.kg("inputOption.activeBackground","Background hover color of options in input fields.")),ue=d("inputOption.activeForeground",{dark:s.Q1.white,light:s.Q1.black,hcDark:k,hcLight:k},h.kg("inputOption.activeForeground","Foreground color of activated options in input fields.")),ge=(d("input.placeholderForeground",{light:f(k,.5),dark:f(k,.5),hcDark:f(k,.7),hcLight:f(k,.7)},h.kg("inputPlaceholderForeground","Input box foreground color for placeholder text.")),d("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hcDark:s.Q1.black,hcLight:s.Q1.white},h.kg("inputValidationInfoBackground","Input validation background color for information severity.")),d("inputValidation.infoForeground",{dark:null,light:null,hcDark:null,hcLight:k},h.kg("inputValidationInfoForeground","Input validation foreground color for information severity.")),d("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hcDark:C,hcLight:C},h.kg("inputValidationInfoBorder","Input validation border color for information severity.")),d("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hcDark:s.Q1.black,hcLight:s.Q1.white},h.kg("inputValidationWarningBackground","Input validation background color for warning severity.")),d("inputValidation.warningForeground",{dark:null,light:null,hcDark:null,hcLight:k},h.kg("inputValidationWarningForeground","Input validation foreground color for warning severity.")),d("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hcDark:C,hcLight:C},h.kg("inputValidationWarningBorder","Input validation border color for warning severity.")),d("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hcDark:s.Q1.black,hcLight:s.Q1.white},h.kg("inputValidationErrorBackground","Input validation background color for error severity.")),d("inputValidation.errorForeground",{dark:null,light:null,hcDark:null,hcLight:k},h.kg("inputValidationErrorForeground","Input validation foreground color for error severity.")),d("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hcDark:C,hcLight:C},h.kg("inputValidationErrorBorder","Input validation border color for error severity.")),d("dropdown.background",{dark:"#3C3C3C",light:s.Q1.white,hcDark:s.Q1.black,hcLight:s.Q1.white},h.kg("dropdownBackground","Dropdown background."))),fe=(d("dropdown.listBackground",{dark:null,light:null,hcDark:s.Q1.black,hcLight:s.Q1.white},h.kg("dropdownListBackground","Dropdown list background.")),d("dropdown.foreground",{dark:"#F0F0F0",light:k,hcDark:s.Q1.white,hcLight:k},h.kg("dropdownForeground","Dropdown foreground."))),me=d("dropdown.border",{dark:ge,light:"#CECECE",hcDark:C,hcLight:C},h.kg("dropdownBorder","Dropdown border.")),pe=d("button.foreground",s.Q1.white,h.kg("buttonForeground","Button foreground color.")),_e=(d("button.separator",f(pe,.4),h.kg("buttonSeparator","Button separator color.")),d("button.background",{dark:"#0E639C",light:"#007ACC",hcDark:null,hcLight:"#0F4A85"},h.kg("buttonBackground","Button background color."))),be=(d("button.hoverBackground",{dark:g(_e,.2),light:u(_e,.2),hcDark:_e,hcLight:_e},h.kg("buttonHoverBackground","Button background color when hovering.")),d("button.border",C,h.kg("buttonBorder","Button border color.")),d("button.secondaryForeground",{dark:s.Q1.white,light:s.Q1.white,hcDark:s.Q1.white,hcLight:k},h.kg("buttonSecondaryForeground","Secondary button foreground color.")),d("button.secondaryBackground",{dark:"#3A3D41",light:"#5F6A79",hcDark:null,hcLight:s.Q1.white},h.kg("buttonSecondaryBackground","Secondary button background color."))),ve=(d("button.secondaryHoverBackground",{dark:g(be,.2),light:u(be,.2),hcDark:null,hcLight:null},h.kg("buttonSecondaryHoverBackground","Secondary button background color when hovering.")),d("radio.activeForeground",ue,h.kg("radioActiveForeground","Foreground color of active radio option."))),we=(d("radio.activeBackground",de,h.kg("radioBackground","Background color of active radio option.")),d("radio.activeBorder",he,h.kg("radioActiveBorder","Border color of the active radio option.")),d("radio.inactiveForeground",null,h.kg("radioInactiveForeground","Foreground color of inactive radio option.")),d("radio.inactiveBackground",null,h.kg("radioInactiveBackground","Background color of inactive radio option.")),d("radio.inactiveBorder",{light:f(ve,.2),dark:f(ve,.2),hcDark:f(ve,.4),hcLight:f(ve,.2)},h.kg("radioInactiveBorder","Border color of the inactive radio option.")),d("radio.inactiveHoverBackground",ce,h.kg("radioHoverBackground","Background color of inactive active radio option when hovering.")),d("checkbox.background",ge,h.kg("checkbox.background","Background color of checkbox widget.")),d("checkbox.selectBackground",N,h.kg("checkbox.select.background","Background color of checkbox widget when the element it's in is selected.")),d("checkbox.foreground",fe,h.kg("checkbox.foreground","Foreground color of checkbox widget.")),d("checkbox.border",me,h.kg("checkbox.border","Border color of checkbox widget.")),d("checkbox.selectBorder",y,h.kg("checkbox.select.border","Border color of checkbox widget when the element it's in is selected.")),d("keybindingLabel.background",{dark:new s.Q1(new s.bU(128,128,128,.17)),light:new s.Q1(new s.bU(221,221,221,.4)),hcDark:s.Q1.transparent,hcLight:s.Q1.transparent},h.kg("keybindingLabelBackground","Keybinding label background color. The keybinding label is used to represent a keyboard shortcut.")),d("keybindingLabel.foreground",{dark:s.Q1.fromHex("#CCCCCC"),light:s.Q1.fromHex("#555555"),hcDark:s.Q1.white,hcLight:k},h.kg("keybindingLabelForeground","Keybinding label foreground color. The keybinding label is used to represent a keyboard shortcut.")),d("keybindingLabel.border",{dark:new s.Q1(new s.bU(51,51,51,.6)),light:new s.Q1(new s.bU(204,204,204,.4)),hcDark:new s.Q1(new s.bU(111,195,223)),hcLight:C},h.kg("keybindingLabelBorder","Keybinding label border color. The keybinding label is used to represent a keyboard shortcut.")),d("keybindingLabel.bottomBorder",{dark:new s.Q1(new s.bU(68,68,68,.6)),light:new s.Q1(new s.bU(187,187,187,.4)),hcDark:new s.Q1(new s.bU(111,195,223)),hcLight:k},h.kg("keybindingLabelBottomBorder","Keybinding label border bottom color. The keybinding label is used to represent a keyboard shortcut.")),d("list.focusBackground",null,h.kg("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),d("list.focusForeground",null,h.kg("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),d("list.focusOutline",{dark:T,light:T,hcDark:S,hcLight:S},h.kg("listFocusOutline","List/Tree outline color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),d("list.focusAndSelectionOutline",null,h.kg("listFocusAndSelectionOutline","List/Tree outline color for the focused item when the list/tree is active and selected. An active list/tree has keyboard focus, an inactive does not.")),d("list.activeSelectionBackground",{dark:"#04395E",light:"#0060C0",hcDark:null,hcLight:s.Q1.fromHex("#0F4A85").transparent(.1)},h.kg("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not."))),ke=d("list.activeSelectionForeground",{dark:s.Q1.white,light:s.Q1.white,hcDark:null,hcLight:null},h.kg("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),ye=d("list.activeSelectionIconForeground",null,h.kg("listActiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Te=(d("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hcDark:null,hcLight:s.Q1.fromHex("#0F4A85").transparent(.1)},h.kg("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),d("list.inactiveSelectionForeground",null,h.kg("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),d("list.inactiveSelectionIconForeground",null,h.kg("listInactiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),d("list.inactiveFocusBackground",null,h.kg("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),d("list.inactiveFocusOutline",null,h.kg("listInactiveFocusOutline","List/Tree outline color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),d("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:s.Q1.white.transparent(.1),hcLight:s.Q1.fromHex("#0F4A85").transparent(.1)},h.kg("listHoverBackground","List/Tree background when hovering over items using the mouse.")),d("list.hoverForeground",null,h.kg("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),d("list.dropBackground",{dark:"#062F4A",light:"#D6EBFF",hcDark:null,hcLight:null},h.kg("listDropBackground","List/Tree drag and drop background when moving items over other items when using the mouse.")),d("list.dropBetweenBackground",{dark:y,light:y,hcDark:null,hcLight:null},h.kg("listDropBetweenBackground","List/Tree drag and drop border color when moving items between items when using the mouse.")),d("list.highlightForeground",{dark:"#2AAAFF",light:"#0066BF",hcDark:T,hcLight:T},h.kg("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")));d("list.focusHighlightForeground",{dark:Te,light:(Ce=we,Se=Te,Le="#BBE7FF",{op:6,if:Ce,then:Se,else:Le}),hcDark:Te,hcLight:Te},h.kg("listFocusHighlightForeground","List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree."));var Ce,Se,Le;d("list.invalidItemForeground",{dark:"#B89500",light:"#B89500",hcDark:"#B89500",hcLight:"#B5200D"},h.kg("invalidItemForeground","List/Tree foreground color for invalid items, for example an unresolved root in explorer.")),d("list.errorForeground",{dark:"#F88070",light:"#B01011",hcDark:null,hcLight:null},h.kg("listErrorForeground","Foreground color of list items containing errors.")),d("list.warningForeground",{dark:"#CCA700",light:"#855F00",hcDark:null,hcLight:null},h.kg("listWarningForeground","Foreground color of list items containing warnings.")),d("listFilterWidget.background",{light:u(N,0),dark:g(N,0),hcDark:N,hcLight:N},h.kg("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),d("listFilterWidget.outline",{dark:s.Q1.transparent,light:s.Q1.transparent,hcDark:"#f38518",hcLight:"#007ACC"},h.kg("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),d("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hcDark:C,hcLight:C},h.kg("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),d("listFilterWidget.shadow",Y,h.kg("listFilterWidgetShadow","Shadow color of the type filter widget in lists and trees.")),d("list.filterMatchBackground",{dark:U,light:U,hcDark:null,hcLight:null},h.kg("listFilterMatchHighlight","Background color of the filtered match.")),d("list.filterMatchBorder",{dark:q,light:q,hcDark:C,hcLight:S},h.kg("listFilterMatchHighlightBorder","Border color of the filtered match.")),d("list.deemphasizedForeground",{dark:"#8C8C8C",light:"#8E8E90",hcDark:"#A7A8A9",hcLight:"#666666"},h.kg("listDeemphasizedForeground","List/Tree foreground color for items that are deemphasized."));const xe=d("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hcDark:"#a9a9a9",hcLight:"#a5a5a5"},h.kg("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),Ee=(d("tree.inactiveIndentGuidesStroke",f(xe,.4),h.kg("treeInactiveIndentGuidesStroke","Tree stroke color for the indentation guides that are not active.")),d("tree.tableColumnsBorder",{dark:"#CCCCCC20",light:"#61616120",hcDark:null,hcLight:null},h.kg("tableColumnsBorder","Table border color between columns.")),d("tree.tableOddRowsBackground",{dark:f(k,.04),light:f(k,.04),hcDark:null,hcLight:null},h.kg("tableOddRowsBackgroundColor","Background color for odd table rows.")),d("editorActionList.background",N,h.kg("editorActionListBackground","Action List background color.")),d("editorActionList.foreground",R,h.kg("editorActionListForeground","Action List foreground color.")),d("editorActionList.focusForeground",ke,h.kg("editorActionListFocusForeground","Action List foreground color for the focused item.")),d("editorActionList.focusBackground",we,h.kg("editorActionListFocusBackground","Action List background color for the focused item.")),d("menu.border",{dark:null,light:null,hcDark:C,hcLight:C},h.kg("menuBorder","Border color of menus.")),d("menu.foreground",fe,h.kg("menuForeground","Foreground color of menu items.")),d("menu.background",ge,h.kg("menuBackground","Background color of menu items.")),d("menu.selectionForeground",ke,h.kg("menuSelectionForeground","Foreground color of the selected menu item in menus.")),d("menu.selectionBackground",we,h.kg("menuSelectionBackground","Background color of the selected menu item in menus.")),d("menu.selectionBorder",{dark:null,light:null,hcDark:S,hcLight:S},h.kg("menuSelectionBorder","Border color of the selected menu item in menus.")),d("menu.separatorBackground",{dark:"#606060",light:"#D4D4D4",hcDark:C,hcLight:C},h.kg("menuSeparatorBackground","Color of a separator menu item in menus.")),d("quickInput.background",N,h.kg("pickerBackground","Quick picker background color. The quick picker widget is the container for pickers like the command palette.")),d("quickInput.foreground",R,h.kg("pickerForeground","Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")),d("quickInputTitle.background",{dark:new s.Q1(new s.bU(255,255,255,.105)),light:new s.Q1(new s.bU(0,0,0,.06)),hcDark:"#000000",hcLight:s.Q1.white},h.kg("pickerTitleBackground","Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")),d("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hcDark:s.Q1.white,hcLight:"#0F4A85"},h.kg("pickerGroupForeground","Quick picker color for grouping labels.")),d("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hcDark:s.Q1.white,hcLight:"#0F4A85"},h.kg("pickerGroupBorder","Quick picker color for grouping borders.")),d("quickInput.list.focusBackground",null,"",void 0,h.kg("quickInput.list.focusBackground deprecation","Please use quickInputList.focusBackground instead")));d("quickInputList.focusForeground",ke,h.kg("quickInput.listFocusForeground","Quick picker foreground color for the focused item.")),d("quickInputList.focusIconForeground",ye,h.kg("quickInput.listFocusIconForeground","Quick picker icon foreground color for the focused item.")),d("quickInputList.focusBackground",{dark:m(Ee,we),light:m(Ee,we),hcDark:null,hcLight:null},h.kg("quickInput.listFocusBackground","Quick picker background color for the focused item.")),d("search.resultsInfoForeground",{light:k,dark:f(k,.65),hcDark:k,hcLight:k},h.kg("search.resultsInfoForeground","Color of the text in the search viewlet's completion message.")),d("searchEditor.findMatchBackground",{light:f(U,.66),dark:f(U,.66),hcDark:U,hcLight:U},h.kg("searchEditor.queryMatch","Color of the Search Editor query matches.")),d("searchEditor.findMatchBorder",{light:f(q,.66),dark:f(q,.66),hcDark:q,hcLight:q},h.kg("searchEditor.editorFindMatchBorder","Border color of the Search Editor query matches."))},5890:(e,t,n)=>{var i={"./simpleWorker":1929,"./simpleWorker.js":1929,"monaco-editor/esm/vs/base/common/worker/simpleWorker":1929,"monaco-editor/esm/vs/base/common/worker/simpleWorker.js":1929};function r(e){return Promise.resolve().then((()=>{if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n(i[e])}))}r.keys=()=>Object.keys(i),r.id=5890,e.exports=r},5982:(e,t,n)=>{"use strict";n.d(t,{x:()=>i});class i{static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return 0!==(1024&e)}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(16744448&e)>>>15}static getBackground(e){return(4278190080&e)>>>24}static getClassNameFromMetadata(e){let t="mtk"+this.getForeground(e);const n=this.getFontStyle(e);return 1&n&&(t+=" mtki"),2&n&&(t+=" mtkb"),4&n&&(t+=" mtku"),8&n&&(t+=" mtks"),t}static getInlineStyleFromMetadata(e,t){const n=this.getForeground(e),i=this.getFontStyle(e);let r=`color: ${t[n]};`;1&i&&(r+="font-style: italic;"),2&i&&(r+="font-weight: bold;");let s="";return 4&i&&(s+=" underline"),8&i&&(s+=" line-through"),s&&(r+=`text-decoration:${s};`),r}static getPresentationFromMetadata(e){const t=this.getForeground(e),n=this.getFontStyle(e);return{foreground:t,italic:Boolean(1&n),bold:Boolean(2&n),underline:Boolean(4&n),strikethrough:Boolean(8&n)}}}},6041:(e,t,n)=>{"use strict";function i(e,t){const n=function(e,t,n=e.length-1){for(let i=n;i>=0;i--){if(t(e[i]))return i}return-1}(e,t);if(-1!==n)return e[n]}function r(e,t){const n=s(e,t);return-1===n?void 0:e[n]}function s(e,t,n=0,i=e.length){let r=n,s=i;for(;r<s;){const n=Math.floor((r+s)/2);t(e[n])?r=n+1:s=n}return r-1}function o(e,t){const n=a(e,t);return n===e.length?void 0:e[n]}function a(e,t,n=0,i=e.length){let r=n,s=i;for(;r<s;){const n=Math.floor((r+s)/2);t(e[n])?s=n:r=n+1}return r}n.d(t,{Uk:()=>i,XP:()=>o,hw:()=>a,iM:()=>s,lx:()=>r,vJ:()=>l});class l{static{this.assertInvariants=!1}constructor(e){this._array=e,this._findLastMonotonousLastIdx=0}findLastMonotonous(e){if(l.assertInvariants){if(this._prevFindLastPredicate)for(const t of this._array)if(this._prevFindLastPredicate(t)&&!e(t))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.");this._prevFindLastPredicate=e}const t=s(this._array,e,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=t+1,-1===t?void 0:this._array[t]}}},6223:(e,t,n)=>{"use strict";n.d(t,{A5:()=>i,Dg:()=>l,F4:()=>u,L5:()=>d,Wo:()=>c,X2:()=>a,ZS:()=>r,nk:()=>h,vd:()=>g});var i,r,s,o=n(146);!function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(i||(i={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(r||(r={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(s||(s={}));class a{get originalIndentSize(){return this._indentSizeIsTabSize?"tabSize":this.indentSize}constructor(e){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,0|e.tabSize),"tabSize"===e.indentSize?(this.indentSize=this.tabSize,this._indentSizeIsTabSize=!0):(this.indentSize=Math.max(1,0|e.indentSize),this._indentSizeIsTabSize=!1),this.insertSpaces=Boolean(e.insertSpaces),this.defaultEOL=0|e.defaultEOL,this.trimAutoWhitespace=Boolean(e.trimAutoWhitespace),this.bracketPairColorizationOptions=e.bracketPairColorizationOptions}equals(e){return this.tabSize===e.tabSize&&this._indentSizeIsTabSize===e._indentSizeIsTabSize&&this.indentSize===e.indentSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace&&(0,o.aI)(this.bracketPairColorizationOptions,e.bracketPairColorizationOptions)}createChangeEvent(e){return{tabSize:this.tabSize!==e.tabSize,indentSize:this.indentSize!==e.indentSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}}}class l{constructor(e,t){this._findMatchBrand=void 0,this.range=e,this.matches=t}}function h(e){return e&&"function"===typeof e.read}class c{constructor(e,t,n,i,r,s){this.identifier=e,this.range=t,this.text=n,this.forceMoveMarkers=i,this.isAutoWhitespaceEdit=r,this._isTracked=s}}class d{constructor(e,t,n){this.regex=e,this.wordSeparators=t,this.simpleSearch=n}}class u{constructor(e,t,n){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=n}}function g(e){return!e.isTooLargeForSyncing()&&!e.isForSimpleWidget}},6359:(e,t,n)=>{"use strict";n.d(t,{O:()=>s});var i=n(6782),r=n(631);const s=new class{constructor(){this.data=new Map}add(e,t){i.ok(r.Kg(e)),i.ok(r.Gv(t)),i.ok(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)}as(e){return this.data.get(e)||null}}},6456:(e,t,n)=>{"use strict";n.d(t,{ny:()=>i,v$:()=>h,zl:()=>u});var i,r=n(4383),s=n(8067),o=n(1508),a=n(9400),l=n(8821);function h(e,t){return a.r.isUri(e)?(0,o.Q_)(e.scheme,t):(0,o.ns)(e,t+":")}!function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command",e.vscodeRemote="vscode-remote",e.vscodeRemoteResource="vscode-remote-resource",e.vscodeManagedRemoteResource="vscode-managed-remote-resource",e.vscodeUserData="vscode-userdata",e.vscodeCustomEditor="vscode-custom-editor",e.vscodeNotebookCell="vscode-notebook-cell",e.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",e.vscodeNotebookCellMetadataDiff="vscode-notebook-cell-metadata-diff",e.vscodeNotebookCellOutput="vscode-notebook-cell-output",e.vscodeNotebookCellOutputDiff="vscode-notebook-cell-output-diff",e.vscodeNotebookMetadata="vscode-notebook-metadata",e.vscodeInteractiveInput="vscode-interactive-input",e.vscodeSettings="vscode-settings",e.vscodeWorkspaceTrust="vscode-workspace-trust",e.vscodeTerminal="vscode-terminal",e.vscodeChatCodeBlock="vscode-chat-code-block",e.vscodeChatCodeCompareBlock="vscode-chat-code-compare-block",e.vscodeChatSesssion="vscode-chat-editor",e.webviewPanel="webview-panel",e.vscodeWebview="vscode-webview",e.extension="extension",e.vscodeFileResource="vscode-file",e.tmp="tmp",e.vsls="vsls",e.vscodeSourceControl="vscode-scm",e.commentsInput="comment",e.codeSetting="code-setting",e.outputChannel="output"}(i||(i={}));const c=new class{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(e){this._preferredWebSchema=e}get _remoteResourcesPath(){return l.SA.join(this._serverRootPath,i.vscodeRemoteResource)}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(c){return r.dz(c),e}const t=e.authority;let n=this._hosts[t];n&&-1!==n.indexOf(":")&&-1===n.indexOf("[")&&(n=`[${n}]`);const o=this._ports[t],l=this._connectionTokens[t];let h=`path=${encodeURIComponent(e.path)}`;return"string"===typeof l&&(h+=`&tkn=${encodeURIComponent(l)}`),a.r.from({scheme:s.HZ?this._preferredWebSchema:i.vscodeRemoteResource,authority:`${n}:${o}`,path:this._remoteResourcesPath,query:h})}};class d{static{this.FALLBACK_AUTHORITY="vscode-app"}asBrowserUri(e){const t=this.toUri(e);return this.uriToBrowserUri(t)}uriToBrowserUri(e){return e.scheme===i.vscodeRemote?c.rewrite(e):e.scheme!==i.file||!s.ib&&s.lg!==`${i.vscodeFileResource}://${d.FALLBACK_AUTHORITY}`?e:e.with({scheme:i.vscodeFileResource,authority:e.authority||d.FALLBACK_AUTHORITY,query:null,fragment:null})}toUri(e,t){if(a.r.isUri(e))return e;if(globalThis._VSCODE_FILE_ROOT){const t=globalThis._VSCODE_FILE_ROOT;if(/^\w[\w\d+.-]*:\/\//.test(t))return a.r.joinPath(a.r.parse(t,!0),e);const n=l.fj(t,e);return a.r.file(n)}return a.r.parse(t.toUrl(e))}}const u=new d;var g;!function(e){const t=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);e.CoopAndCoep=Object.freeze(t.get("3"));const n="vscode-coi";e.getHeadersFromQuery=function(e){let i;"string"===typeof e?i=new URL(e).searchParams:e instanceof URL?i=e.searchParams:a.r.isUri(e)&&(i=new URL(e.toString(!0)).searchParams);const r=i?.get(n);if(r)return t.get(r)},e.addSearchParam=function(e,t,i){if(!globalThis.crossOriginIsolated)return;const r=t&&i?"3":i?"2":"1";e instanceof URLSearchParams?e.set(n,r):e[n]=r}}(g||(g={}))},6486:(e,t,n)=>{"use strict";n.d(t,{Io:()=>o,Ld:()=>s,Th:()=>l});var i=n(2522),r=n(8925);const s=function(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const n of"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?")e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}();function o(e){let t=s;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}const a=new r.w;function l(e,t,n,r,s){if(t=o(t),s||(s=i.f.first(a)),n.length>s.maxLen){let i=e-s.maxLen/2;return i<0?i=0:r+=i,l(e,t,n=n.substring(i,e+s.maxLen/2),r,s)}const c=Date.now(),d=e-1-r;let u=-1,g=null;for(let i=1;!(Date.now()-c>=s.timeBudget);i++){const e=d-s.windowSize*i;t.lastIndex=Math.max(0,e);const r=h(t,n,d,u);if(!r&&g)break;if(g=r,e<=0)break;u=e}if(g){const e={word:g[0],startColumn:r+1+g.index,endColumn:r+1+g.index+g[0].length};return t.lastIndex=0,e}return null}function h(e,t,n,i){let r;for(;r=e.exec(t);){const t=r.index||0;if(t<=n&&e.lastIndex>=n)return r;if(i>0&&t>i)return null}return null}a.unshift({maxLen:1e3,windowSize:15,timeBudget:150})},6571:(e,t,n)=>{"use strict";n.d(t,{M:()=>a,S:()=>l});var i=n(4383),r=n(4444),s=n(6677),o=n(6041);class a{static fromRangeInclusive(e){return new a(e.startLineNumber,e.endLineNumber+1)}static joinMany(e){if(0===e.length)return[];let t=new l(e[0].slice());for(let n=1;n<e.length;n++)t=t.getUnion(new l(e[n].slice()));return t.ranges}static join(e){if(0===e.length)throw new i.D7("lineRanges cannot be empty");let t=e[0].startLineNumber,n=e[0].endLineNumberExclusive;for(let i=1;i<e.length;i++)t=Math.min(t,e[i].startLineNumber),n=Math.max(n,e[i].endLineNumberExclusive);return new a(t,n)}static ofLength(e,t){return new a(e,e+t)}static deserialize(e){return new a(e[0],e[1])}constructor(e,t){if(e>t)throw new i.D7(`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(e){return new a(this.startLineNumber+e,this.endLineNumberExclusive+e)}deltaLength(e){return new a(this.startLineNumber,this.endLineNumberExclusive+e)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(e){return new a(Math.min(this.startLineNumber,e.startLineNumber),Math.max(this.endLineNumberExclusive,e.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(e){const t=Math.max(this.startLineNumber,e.startLineNumber),n=Math.min(this.endLineNumberExclusive,e.endLineNumberExclusive);if(t<=n)return new a(t,n)}intersectsStrict(e){return this.startLineNumber<e.endLineNumberExclusive&&e.startLineNumber<this.endLineNumberExclusive}overlapOrTouch(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 s.Q(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new s.Q(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(e){const 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]}includes(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}toOffsetRange(){return new r.L(this.startLineNumber-1,this.endLineNumberExclusive-1)}}class l{constructor(e=[]){this._normalizedRanges=e}get ranges(){return this._normalizedRanges}addRange(e){if(0===e.length)return;const t=(0,o.hw)(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),n=(0,o.iM)(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===n)this._normalizedRanges.splice(t,0,e);else if(t===n-1){const n=this._normalizedRanges[t];this._normalizedRanges[t]=n.join(e)}else{const i=this._normalizedRanges[t].join(this._normalizedRanges[n-1]).join(e);this._normalizedRanges.splice(t,n-t,i)}}contains(e){const t=(0,o.lx)(this._normalizedRanges,(t=>t.startLineNumber<=e));return!!t&&t.endLineNumberExclusive>e}intersects(e){const t=(0,o.lx)(this._normalizedRanges,(t=>t.startLineNumber<e.endLineNumberExclusive));return!!t&&t.endLineNumberExclusive>e.startLineNumber}getUnion(e){if(0===this._normalizedRanges.length)return e;if(0===e._normalizedRanges.length)return this;const t=[];let n=0,i=0,r=null;for(;n<this._normalizedRanges.length||i<e._normalizedRanges.length;){let s=null;if(n<this._normalizedRanges.length&&i<e._normalizedRanges.length){const t=this._normalizedRanges[n],r=e._normalizedRanges[i];t.startLineNumber<r.startLineNumber?(s=t,n++):(s=r,i++)}else n<this._normalizedRanges.length?(s=this._normalizedRanges[n],n++):(s=e._normalizedRanges[i],i++);null===r?r=s:r.endLineNumberExclusive>=s.startLineNumber?r=new a(r.startLineNumber,Math.max(r.endLineNumberExclusive,s.endLineNumberExclusive)):(t.push(r),r=s)}return null!==r&&t.push(r),new l(t)}subtractFrom(e){const t=(0,o.hw)(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),n=(0,o.iM)(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===n)return new l([e]);const i=[];let r=e.startLineNumber;for(let s=t;s<n;s++){const e=this._normalizedRanges[s];e.startLineNumber>r&&i.push(new a(r,e.startLineNumber)),r=e.endLineNumberExclusive}return r<e.endLineNumberExclusive&&i.push(new a(r,e.endLineNumberExclusive)),new l(i)}toString(){return this._normalizedRanges.map((e=>e.toString())).join(", ")}getIntersection(e){const t=[];let n=0,i=0;for(;n<this._normalizedRanges.length&&i<e._normalizedRanges.length;){const r=this._normalizedRanges[n],s=e._normalizedRanges[i],o=r.intersect(s);o&&!o.isEmpty&&t.push(o),r.endLineNumberExclusive<s.endLineNumberExclusive?n++:i++}return new l(t)}getWithDelta(e){return new l(this._normalizedRanges.map((t=>t.delta(e))))}}},6677:(e,t,n)=>{"use strict";n.d(t,{Q:()=>r});var i=n(3069);class r{constructor(e,t,n,i){e>n||e===n&&t>i?(this.startLineNumber=n,this.startColumn=i,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=i)}isEmpty(){return r.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return r.containsPosition(this,e)}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(e){return r.containsRange(this,e)}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(e){return r.strictContainsRange(this,e)}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(e){return r.plusRange(this,e)}static plusRange(e,t){let n,i,s,o;return t.startLineNumber<e.startLineNumber?(n=t.startLineNumber,i=t.startColumn):t.startLineNumber===e.startLineNumber?(n=t.startLineNumber,i=Math.min(t.startColumn,e.startColumn)):(n=e.startLineNumber,i=e.startColumn),t.endLineNumber>e.endLineNumber?(s=t.endLineNumber,o=t.endColumn):t.endLineNumber===e.endLineNumber?(s=t.endLineNumber,o=Math.max(t.endColumn,e.endColumn)):(s=e.endLineNumber,o=e.endColumn),new r(n,i,s,o)}intersectRanges(e){return r.intersectRanges(this,e)}static intersectRanges(e,t){let n=e.startLineNumber,i=e.startColumn,s=e.endLineNumber,o=e.endColumn;const a=t.startLineNumber,l=t.startColumn,h=t.endLineNumber,c=t.endColumn;return n<a?(n=a,i=l):n===a&&(i=Math.max(i,l)),s>h?(s=h,o=c):s===h&&(o=Math.min(o,c)),n>s||n===s&&i>o?null:new r(n,i,s,o)}equalsRange(e){return r.equalsRange(this,e)}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 r.getEndPosition(this)}static getEndPosition(e){return new i.y(e.endLineNumber,e.endColumn)}getStartPosition(){return r.getStartPosition(this)}static getStartPosition(e){return new i.y(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new r(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new r(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return r.collapseToStart(this)}static collapseToStart(e){return new r(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return r.collapseToEnd(this)}static collapseToEnd(e){return new r(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new r(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,t=e){return new r(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new r(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"===typeof e.startLineNumber&&"number"===typeof e.startColumn&&"number"===typeof e.endLineNumber&&"number"===typeof e.endColumn}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 compareRangesUsingStarts(e,t){if(e&&t){const n=0|e.startLineNumber,i=0|t.startLineNumber;if(n===i){const n=0|e.startColumn,i=0|t.startColumn;if(n===i){const n=0|e.endLineNumber,i=0|t.endLineNumber;if(n===i){return(0|e.endColumn)-(0|t.endColumn)}return n-i}return n-i}return n-i}return(e?1:0)-(t?1:0)}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}}},6691:(e,t,n)=>{"use strict";n.r(t),n.d(t,{findSectionHeaders:()=>s});const i=new RegExp("\\bMARK:\\s*(.*)$","d"),r=/^-+|-+$/g;function s(e,t){let n=[];if(t.findRegionSectionHeaders&&t.foldingRules?.markers){const i=function(e,t){const n=[],i=e.getLineCount();for(let r=1;r<=i;r++){const i=e.getLineContent(r),s=i.match(t.foldingRules.markers.start);if(s){const e={startLineNumber:r,startColumn:s[0].length+1,endLineNumber:r,endColumn:i.length+1};if(e.endColumn>e.startColumn){const t={range:e,...a(i.substring(s[0].length)),shouldBeInComments:!1};(t.text||t.hasSeparatorLine)&&n.push(t)}}}return n}(e,t);n=n.concat(i)}if(t.findMarkSectionHeaders){const t=function(e){const t=[],n=e.getLineCount();for(let i=1;i<=n;i++){o(e.getLineContent(i),i,t)}return t}(e);n=n.concat(t)}return n}function o(e,t,n){i.lastIndex=0;const r=i.exec(e);if(r){const e={startLineNumber:t,startColumn:r.indices[1][0]+1,endLineNumber:t,endColumn:r.indices[1][1]+1};if(e.endColumn>e.startColumn){const t={range:e,...a(r[1]),shouldBeInComments:!0};(t.text||t.hasSeparatorLine)&&n.push(t)}}}function a(e){const t=(e=e.trim()).startsWith("-");return{text:e=e.replace(r,""),hasSeparatorLine:t}}},6723:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DraggedTreeItemsIdentifier:()=>r,TreeViewsDnDService:()=>i});class i{constructor(){this._dragOperations=new Map}removeDragOperationTransfer(e){if(e&&this._dragOperations.has(e)){const t=this._dragOperations.get(e);return this._dragOperations.delete(e),t}}}class r{constructor(e){this.identifier=e}}},6782:(e,t,n)=>{"use strict";n.d(t,{Ft:()=>o,Xo:()=>a,ok:()=>r,xb:()=>s});var i=n(4383);function r(e,t){if(!e)throw new Error(t?`Assertion failed (${t})`:"Assertion Failed")}function s(e,t="Unreachable"){throw new Error(t)}function o(e){e()||(e(),(0,i.dz)(new i.D7("Assertion Failed")))}function a(e,t){let n=0;for(;n<e.length-1;){if(!t(e[n],e[n+1]))return!1;n++}return!0}},6942:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ILanguageFeaturesService:()=>i});const i=(0,n(3591).u1)("ILanguageFeaturesService")},6958:(e,t,n)=>{"use strict";n.d(t,{YW:()=>I,qg:()=>M});var i=n(1940),r=n(9326),s=n(4320),o=n(8821),a=n(8067),l=n(1508);const h="**",c="/",d="[/\\\\]",u="[^/\\\\]",g=/\//g;function f(e,t){switch(e){case 0:return"";case 1:return`${u}*?`;default:return`(?:${d}|${u}+${d}${t?`|${d}${u}+`:""})*?`}}function m(e,t){if(!e)return[];const n=[];let i=!1,r=!1,s="";for(const o of e){switch(o){case t:if(!i&&!r){n.push(s),s="";continue}break;case"{":i=!0;break;case"}":i=!1;break;case"[":r=!0;break;case"]":r=!1}s+=o}return s&&n.push(s),n}function p(e){if(!e)return"";let t="";const n=m(e,c);if(n.every((e=>e===h)))t=".*";else{let e=!1;n.forEach(((i,r)=>{if(i===h){if(e)return;t+=f(2,r===n.length-1)}else{let e=!1,s="",o=!1,a="";for(const n of i)if("}"!==n&&e)s+=n;else if(!o||"]"===n&&a)switch(n){case"{":e=!0;continue;case"[":o=!0;continue;case"}":{const n=`(?:${m(s,",").map((e=>p(e))).join("|")})`;t+=n,e=!1,s="";break}case"]":t+="["+a+"]",o=!1,a="";break;case"?":t+=u;continue;case"*":t+=f(1);continue;default:t+=(0,l.bm)(n)}else{let e;e="-"===n?n:"^"!==n&&"!"!==n||a?n===c?"":(0,l.bm)(n):"^",a+=e}r<n.length-1&&(n[r+1]!==h||r+2<n.length)&&(t+=d)}e=i===h}))}return t}const _=/^\*\*\/\*\.[\w\.-]+$/,b=/^\*\*\/([\w\.-]+)\/?$/,v=/^{\*\*\/\*?[\w\.-]+\/?(,\*\*\/\*?[\w\.-]+\/?)*}$/,w=/^{\*\*\/\*?[\w\.-]+(\/(\*\*)?)?(,\*\*\/\*?[\w\.-]+(\/(\*\*)?)?)*}$/,k=/^\*\*((\/[\w\.-]+)+)\/?$/,y=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,T=new s.qK(1e4),C=function(){return!1},S=function(){return null};function L(e,t){if(!e)return S;let n;n="string"!==typeof e?e.pattern:e,n=n.trim();const i=`${n}_${!!t.trimForExclusions}`;let r,s=T.get(i);return s||(s=_.test(n)?function(e,t){return function(n,i){return"string"===typeof n&&n.endsWith(e)?t:null}}(n.substr(4),n):(r=b.exec(E(n,t)))?function(e,t){const n=`/${e}`,i=`\\${e}`,r=function(r,s){return"string"!==typeof r?null:s?s===e?t:null:r===e||r.endsWith(n)||r.endsWith(i)?t:null},s=[e];return r.basenames=s,r.patterns=[t],r.allBasenames=s,r}(r[1],n):(t.trimForExclusions?w:v).test(n)?function(e,t){const n=N(e.slice(1,-1).split(",").map((e=>L(e,t))).filter((e=>e!==S)),e),i=n.length;if(!i)return S;if(1===i)return n[0];const r=function(t,i){for(let r=0,s=n.length;r<s;r++)if(n[r](t,i))return e;return null},s=n.find((e=>!!e.allBasenames));s&&(r.allBasenames=s.allBasenames);const o=n.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);o.length&&(r.allPaths=o);return r}(n,t):(r=k.exec(E(n,t)))?A(r[1].substr(1),n,!0):(r=y.exec(E(n,t)))?A(r[1],n,!1):function(e){try{const t=new RegExp(`^${p(e)}$`);return function(n){return t.lastIndex=0,"string"===typeof n&&t.test(n)?e:null}}catch(t){return S}}(n),T.set(i,s)),x(s,e)}function x(e,t){if("string"===typeof t)return e;const n=function(n,i){return(0,r._1)(n,t.base,!a.j9)?e((0,l.NB)(n.substr(t.base.length),o.Vn),i):null};return n.allBasenames=e.allBasenames,n.allPaths=e.allPaths,n.basenames=e.basenames,n.patterns=e.patterns,n}function E(e,t){return t.trimForExclusions&&e.endsWith("/**")?e.substr(0,e.length-2):e}function A(e,t,n){const i=o.Vn===o.SA.sep,r=i?e:e.replace(g,o.Vn),s=o.Vn+r,a=o.SA.sep+e;let l;return l=n?function(n,o){return"string"!==typeof n||n!==r&&!n.endsWith(s)&&(i||n!==e&&!n.endsWith(a))?null:t}:function(n,s){return"string"!==typeof n||n!==r&&(i||n!==e)?null:t},l.allPaths=[(n?"*/":"./")+e],l}function I(e,t,n){return!(!e||"string"!==typeof t)&&M(e)(t,void 0,n)}function M(e,t={}){if(!e)return C;if("string"===typeof e||function(e){const t=e;if(!t)return!1;return"string"===typeof t.base&&"string"===typeof t.pattern}(e)){const n=L(e,t);if(n===S)return C;const i=function(e,t){return!!n(e,t)};return n.allBasenames&&(i.allBasenames=n.allBasenames),n.allPaths&&(i.allPaths=n.allPaths),i}return function(e,t){const n=N(Object.getOwnPropertyNames(e).map((n=>function(e,t,n){if(!1===t)return S;const r=L(e,n);if(r===S)return S;if("boolean"===typeof t)return r;if(t){const n=t.when;if("string"===typeof n){const t=(t,s,o,a)=>{if(!a||!r(t,s))return null;const l=a(n.replace("$(basename)",(()=>o)));return(0,i.Qg)(l)?l.then((t=>t?e:null)):l?e:null};return t.requiresSiblings=!0,t}}return r}(n,e[n],t))).filter((e=>e!==S))),r=n.length;if(!r)return S;if(!n.some((e=>!!e.requiresSiblings))){if(1===r)return n[0];const e=function(e,t){let r;for(let s=0,o=n.length;s<o;s++){const o=n[s](e,t);if("string"===typeof o)return o;(0,i.Qg)(o)&&(r||(r=[]),r.push(o))}return r?(async()=>{for(const e of r){const t=await e;if("string"===typeof t)return t}return null})():null},t=n.find((e=>!!e.allBasenames));t&&(e.allBasenames=t.allBasenames);const s=n.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);return s.length&&(e.allPaths=s),e}const s=function(e,t,r){let s,a;for(let l=0,h=n.length;l<h;l++){const h=n[l];h.requiresSiblings&&r&&(t||(t=(0,o.P8)(e)),s||(s=t.substr(0,t.length-(0,o.LC)(e).length)));const c=h(e,t,s,r);if("string"===typeof c)return c;(0,i.Qg)(c)&&(a||(a=[]),a.push(c))}return a?(async()=>{for(const e of a){const t=await e;if("string"===typeof t)return t}return null})():null},a=n.find((e=>!!e.allBasenames));a&&(s.allBasenames=a.allBasenames);const l=n.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);l.length&&(s.allPaths=l);return s}(e,t)}function N(e,t){const n=e.filter((e=>!!e.basenames));if(n.length<2)return e;const i=n.reduce(((e,t)=>{const n=t.basenames;return n?e.concat(n):e}),[]);let r;if(t){r=[];for(let e=0,n=i.length;e<n;e++)r.push(t)}else r=n.reduce(((e,t)=>{const n=t.patterns;return n?e.concat(n):e}),[]);const s=function(e,t){if("string"!==typeof e)return null;if(!t){let n;for(n=e.length;n>0;n--){const t=e.charCodeAt(n-1);if(47===t||92===t)break}t=e.substr(n)}const n=i.indexOf(t);return-1!==n?r[n]:null};s.basenames=i,s.patterns=r,s.allBasenames=i;const o=e.filter((e=>!e.basenames));return o.push(s),o}},7004:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SemanticTokensStylingService:()=>u});var i=n(1484),r=n(154),s=n(5724),o=n(3511),a=n(5538),l=n(4243),h=n(4621),c=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},d=function(e,t){return function(n,i){t(n,i,e)}};let u=class extends i.jG{constructor(e,t,n){super(),this._themeService=e,this._logService=t,this._languageService=n,this._caches=new WeakMap,this._register(this._themeService.onDidColorThemeChange((()=>{this._caches=new WeakMap})))}getStyling(e){return this._caches.has(e)||this._caches.set(e,new a.SemanticTokensProviderStyling(e.getLegend(),this._themeService,this._languageService,this._logService)),this._caches.get(e)}};u=c([d(0,s.Gy),d(1,o.rr),d(2,r.L)],u),(0,h.v)(l.ISemanticTokensStylingService,u,1)},7119:(e,t,n)=>{"use strict";n.d(t,{AQ:()=>_,aZ:()=>p,l5:()=>k,lQ:()=>v,s7:()=>C,sH:()=>y,sN:()=>b,ss:()=>w,yI:()=>m,zp:()=>T});var i=n(8209),r=n(7661),s=n(5845),o=n(5724);const a=(0,s.x1A)("editor.lineHighlightBackground",null,i.kg("lineHighlight","Background color for the highlight of line at the cursor position.")),l=((0,s.x1A)("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hcDark:"#f38518",hcLight:s.b1q},i.kg("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),(0,s.x1A)("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hcDark:null,hcLight:null},i.kg("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1A)("editor.rangeHighlightBorder",{dark:null,light:null,hcDark:s.buw,hcLight:s.buw},i.kg("rangeHighlightBorder","Background color of the border around highlighted ranges.")),(0,s.x1A)("editor.symbolHighlightBackground",{dark:s.Ubg,light:s.Ubg,hcDark:null,hcLight:null},i.kg("symbolHighlight","Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1A)("editor.symbolHighlightBorder",{dark:null,light:null,hcDark:s.buw,hcLight:s.buw},i.kg("symbolHighlightBorder","Background color of the border around highlighted symbols.")),(0,s.x1A)("editorCursor.foreground",{dark:"#AEAFAD",light:r.Q1.black,hcDark:r.Q1.white,hcLight:"#0F4A85"},i.kg("caret","Color of the editor cursor."))),h=(0,s.x1A)("editorCursor.background",null,i.kg("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),c=((0,s.x1A)("editorMultiCursor.primary.foreground",l,i.kg("editorMultiCursorPrimaryForeground","Color of the primary editor cursor when multiple cursors are present.")),(0,s.x1A)("editorMultiCursor.primary.background",h,i.kg("editorMultiCursorPrimaryBackground","The background color of the primary editor cursor when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),(0,s.x1A)("editorMultiCursor.secondary.foreground",l,i.kg("editorMultiCursorSecondaryForeground","Color of secondary editor cursors when multiple cursors are present.")),(0,s.x1A)("editorMultiCursor.secondary.background",h,i.kg("editorMultiCursorSecondaryBackground","The background color of secondary editor cursors when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),(0,s.x1A)("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hcDark:"#e3e4e229",hcLight:"#CCCCCC"},i.kg("editorWhitespaces","Color of whitespace characters in the editor."))),d=((0,s.x1A)("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hcDark:r.Q1.white,hcLight:"#292929"},i.kg("editorLineNumbers","Color of editor line numbers.")),(0,s.x1A)("editorIndentGuide.background",c,i.kg("editorIndentGuides","Color of the editor indentation guides."),!1,i.kg("deprecatedEditorIndentGuides","'editorIndentGuide.background' is deprecated. Use 'editorIndentGuide.background1' instead."))),u=(0,s.x1A)("editorIndentGuide.activeBackground",c,i.kg("editorActiveIndentGuide","Color of the active editor indentation guides."),!1,i.kg("deprecatedEditorActiveIndentGuide","'editorIndentGuide.activeBackground' is deprecated. Use 'editorIndentGuide.activeBackground1' instead.")),g=((0,s.x1A)("editorIndentGuide.background1",d,i.kg("editorIndentGuides1","Color of the editor indentation guides (1).")),(0,s.x1A)("editorIndentGuide.background2","#00000000",i.kg("editorIndentGuides2","Color of the editor indentation guides (2).")),(0,s.x1A)("editorIndentGuide.background3","#00000000",i.kg("editorIndentGuides3","Color of the editor indentation guides (3).")),(0,s.x1A)("editorIndentGuide.background4","#00000000",i.kg("editorIndentGuides4","Color of the editor indentation guides (4).")),(0,s.x1A)("editorIndentGuide.background5","#00000000",i.kg("editorIndentGuides5","Color of the editor indentation guides (5).")),(0,s.x1A)("editorIndentGuide.background6","#00000000",i.kg("editorIndentGuides6","Color of the editor indentation guides (6).")),(0,s.x1A)("editorIndentGuide.activeBackground1",u,i.kg("editorActiveIndentGuide1","Color of the active editor indentation guides (1).")),(0,s.x1A)("editorIndentGuide.activeBackground2","#00000000",i.kg("editorActiveIndentGuide2","Color of the active editor indentation guides (2).")),(0,s.x1A)("editorIndentGuide.activeBackground3","#00000000",i.kg("editorActiveIndentGuide3","Color of the active editor indentation guides (3).")),(0,s.x1A)("editorIndentGuide.activeBackground4","#00000000",i.kg("editorActiveIndentGuide4","Color of the active editor indentation guides (4).")),(0,s.x1A)("editorIndentGuide.activeBackground5","#00000000",i.kg("editorActiveIndentGuide5","Color of the active editor indentation guides (5).")),(0,s.x1A)("editorIndentGuide.activeBackground6","#00000000",i.kg("editorActiveIndentGuide6","Color of the active editor indentation guides (6).")),(0,s.x1A)("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hcDark:s.buw,hcLight:s.buw},i.kg("editorActiveLineNumber","Color of editor active line number"),!1,i.kg("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead."))),f=((0,s.x1A)("editorLineNumber.activeForeground",g,i.kg("editorActiveLineNumber","Color of editor active line number")),(0,s.x1A)("editorLineNumber.dimmedForeground",null,i.kg("editorDimmedLineNumber","Color of the final editor line when editor.renderFinalNewline is set to dimmed.")),(0,s.x1A)("editorRuler.foreground",{dark:"#5A5A5A",light:r.Q1.lightgrey,hcDark:r.Q1.white,hcLight:"#292929"},i.kg("editorRuler","Color of the editor rulers.")),(0,s.x1A)("editorCodeLens.foreground",{dark:"#999999",light:"#919191",hcDark:"#999999",hcLight:"#292929"},i.kg("editorCodeLensForeground","Foreground color of editor CodeLens")),(0,s.x1A)("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hcDark:"#0064001a",hcLight:"#0000"},i.kg("editorBracketMatchBackground","Background color behind matching brackets")),(0,s.x1A)("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hcDark:s.b1q,hcLight:s.b1q},i.kg("editorBracketMatchBorder","Color for matching brackets boxes")),(0,s.x1A)("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hcDark:"#7f7f7f4d",hcLight:"#666666"},i.kg("editorOverviewRulerBorder","Color of the overview ruler border.")),(0,s.x1A)("editorOverviewRuler.background",null,i.kg("editorOverviewRulerBackground","Background color of the editor overview ruler.")),(0,s.x1A)("editorGutter.background",s.YtV,i.kg("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),(0,s.x1A)("editorUnnecessaryCode.border",{dark:null,light:null,hcDark:r.Q1.fromHex("#fff").transparent(.8),hcLight:s.b1q},i.kg("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),(0,s.x1A)("editorUnnecessaryCode.opacity",{dark:r.Q1.fromHex("#000a"),light:r.Q1.fromHex("#0007"),hcDark:null,hcLight:null},i.kg("unnecessaryCodeOpacity","Opacity of unnecessary (unused) source code in the editor. For example, \"#000000c0\" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out.")),(0,s.x1A)("editorGhostText.border",{dark:null,light:null,hcDark:r.Q1.fromHex("#fff").transparent(.8),hcLight:r.Q1.fromHex("#292929").transparent(.8)},i.kg("editorGhostTextBorder","Border color of ghost text in the editor.")),(0,s.x1A)("editorGhostText.foreground",{dark:r.Q1.fromHex("#ffffff56"),light:r.Q1.fromHex("#0007"),hcDark:null,hcLight:null},i.kg("editorGhostTextForeground","Foreground color of the ghost text in the editor.")),(0,s.x1A)("editorGhostText.background",null,i.kg("editorGhostTextBackground","Background color of the ghost text in the editor.")),new r.Q1(new r.bU(0,122,204,.6))),m=((0,s.x1A)("editorOverviewRuler.rangeHighlightForeground",f,i.kg("overviewRulerRangeHighlight","Overview ruler marker color for range highlights. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1A)("editorOverviewRuler.errorForeground",{dark:new r.Q1(new r.bU(255,18,18,.7)),light:new r.Q1(new r.bU(255,18,18,.7)),hcDark:new r.Q1(new r.bU(255,50,50,1)),hcLight:"#B5200D"},i.kg("overviewRuleError","Overview ruler marker color for errors."))),p=(0,s.x1A)("editorOverviewRuler.warningForeground",{dark:s.Hng,light:s.Hng,hcDark:s.Stt,hcLight:s.Stt},i.kg("overviewRuleWarning","Overview ruler marker color for warnings.")),_=(0,s.x1A)("editorOverviewRuler.infoForeground",{dark:s.pOz,light:s.pOz,hcDark:s.IIb,hcLight:s.IIb},i.kg("overviewRuleInfo","Overview ruler marker color for infos.")),b=(0,s.x1A)("editorBracketHighlight.foreground1",{dark:"#FFD700",light:"#0431FAFF",hcDark:"#FFD700",hcLight:"#0431FAFF"},i.kg("editorBracketHighlightForeground1","Foreground color of brackets (1). Requires enabling bracket pair colorization.")),v=(0,s.x1A)("editorBracketHighlight.foreground2",{dark:"#DA70D6",light:"#319331FF",hcDark:"#DA70D6",hcLight:"#319331FF"},i.kg("editorBracketHighlightForeground2","Foreground color of brackets (2). Requires enabling bracket pair colorization.")),w=(0,s.x1A)("editorBracketHighlight.foreground3",{dark:"#179FFF",light:"#7B3814FF",hcDark:"#87CEFA",hcLight:"#7B3814FF"},i.kg("editorBracketHighlightForeground3","Foreground color of brackets (3). Requires enabling bracket pair colorization.")),k=(0,s.x1A)("editorBracketHighlight.foreground4","#00000000",i.kg("editorBracketHighlightForeground4","Foreground color of brackets (4). Requires enabling bracket pair colorization.")),y=(0,s.x1A)("editorBracketHighlight.foreground5","#00000000",i.kg("editorBracketHighlightForeground5","Foreground color of brackets (5). Requires enabling bracket pair colorization.")),T=(0,s.x1A)("editorBracketHighlight.foreground6","#00000000",i.kg("editorBracketHighlightForeground6","Foreground color of brackets (6). Requires enabling bracket pair colorization.")),C=(0,s.x1A)("editorBracketHighlight.unexpectedBracket.foreground",{dark:new r.Q1(new r.bU(255,18,18,.8)),light:new r.Q1(new r.bU(255,18,18,.8)),hcDark:"new Color(new RGBA(255, 50, 50, 1))",hcLight:"#B5200D"},i.kg("editorBracketHighlightUnexpectedBracketForeground","Foreground color of unexpected brackets."));(0,s.x1A)("editorBracketPairGuide.background1","#00000000",i.kg("editorBracketPairGuide.background1","Background color of inactive bracket pair guides (1). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background2","#00000000",i.kg("editorBracketPairGuide.background2","Background color of inactive bracket pair guides (2). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background3","#00000000",i.kg("editorBracketPairGuide.background3","Background color of inactive bracket pair guides (3). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background4","#00000000",i.kg("editorBracketPairGuide.background4","Background color of inactive bracket pair guides (4). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background5","#00000000",i.kg("editorBracketPairGuide.background5","Background color of inactive bracket pair guides (5). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background6","#00000000",i.kg("editorBracketPairGuide.background6","Background color of inactive bracket pair guides (6). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground1","#00000000",i.kg("editorBracketPairGuide.activeBackground1","Background color of active bracket pair guides (1). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground2","#00000000",i.kg("editorBracketPairGuide.activeBackground2","Background color of active bracket pair guides (2). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground3","#00000000",i.kg("editorBracketPairGuide.activeBackground3","Background color of active bracket pair guides (3). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground4","#00000000",i.kg("editorBracketPairGuide.activeBackground4","Background color of active bracket pair guides (4). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground5","#00000000",i.kg("editorBracketPairGuide.activeBackground5","Background color of active bracket pair guides (5). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground6","#00000000",i.kg("editorBracketPairGuide.activeBackground6","Background color of active bracket pair guides (6). Requires enabling bracket pair guides.")),(0,s.x1A)("editorUnicodeHighlight.border",s.Hng,i.kg("editorUnicodeHighlight.border","Border color used to highlight unicode characters.")),(0,s.x1A)("editorUnicodeHighlight.background",s.whs,i.kg("editorUnicodeHighlight.background","Background color used to highlight unicode characters."));(0,o.zy)(((e,t)=>{const n=e.getColor(s.YtV),i=e.getColor(a),r=i&&!i.isTransparent()?i:n;r&&t.addRule(`.monaco-editor .inputarea.ime-input { background-color: ${r}; }`)}))},7550:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IMarkerDecorationsService:()=>i});const i=(0,n(3591).u1)("markerDecorationsService")},7596:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LanguageService:()=>N});var i=n(1234),r=n(1484),s=n(9259),o=n(9861),a=n(2083),l=n(3941);const h=(e,t)=>e===t;new WeakMap;class c{constructor(e,t,n){this.owner=e,this.debugNameSource=t,this.referenceFn=n}getDebugName(e){return function(e,t){const n=u.get(e);if(n)return n;const i=function(e,t){const n=u.get(e);if(n)return n;const i=t.owner?function(e){const t=f.get(e);if(t)return t;const n=function(e){const t=e.constructor;if(t)return t.name;return"Object"}(e);let i=g.get(n)??0;i++,g.set(n,i);const r=1===i?n:`${n}#${i}`;return f.set(e,r),r}(t.owner)+".":"";let r;const s=t.debugNameSource;if(void 0!==s){if("function"!==typeof s)return i+s;if(r=s(),void 0!==r)return i+r}const o=t.referenceFn;if(void 0!==o&&(r=m(o),void 0!==r))return i+r;if(void 0!==t.owner){const n=function(e,t){for(const n in e)if(e[n]===t)return n;return}(t.owner,e);if(void 0!==n)return i+n}return}(e,t);if(i){let t=d.get(i)??0;t++,d.set(i,t);const n=1===t?i:`${i}#${t}`;return u.set(e,n),n}return}(e,this)}}const d=new Map,u=new WeakMap;const g=new Map,f=new WeakMap;function m(e){const t=e.toString(),n=/\/\*\*\s*@description\s*([^*]*)\*\//.exec(t),i=n?n[1]:void 0;return i?.trim()}let p,_,b,v;function w(){return p}class k{get TChange(){return null}reportChanges(){this.get()}read(e){return e?e.readObservable(this):this.get()}map(e,t){const n=void 0===t?void 0:e,i=void 0===t?e:t;return v({owner:n,debugName:()=>{const e=m(i);if(void 0!==e)return e;const t=/^\s*\(?\s*([a-zA-Z_$][a-zA-Z_$0-9]*)\s*\)?\s*=>\s*\1(?:\??)\.([a-zA-Z_$][a-zA-Z_$0-9]*)\s*$/.exec(i.toString());return t?`${this.debugName}.${t[2]}`:n?void 0:`${this.debugName} (mapped)`},debugReferenceFn:i},(e=>i(this.read(e),e)))}flatten(){return v({owner:void 0,debugName:()=>`${this.debugName} (flattened)`},(e=>this.read(e).read(e)))}recomputeInitiallyAndOnChange(e,t){return e.add(_(this,t)),this}keepObserved(e){return e.add(b(this)),this}}class y extends k{constructor(){super(...arguments),this.observers=new Set}addObserver(e){const t=this.observers.size;this.observers.add(e),0===t&&this.onFirstObserverAdded()}removeObserver(e){this.observers.delete(e)&&0===this.observers.size&&this.onLastObserverRemoved()}onFirstObserverAdded(){}onLastObserverRemoved(){}}function T(e,t){const n=new C(e,t);try{e(n)}finally{n.finish()}}class C{constructor(e,t){this._fn=e,this._getDebugName=t,this.updatingObservers=[],w()?.handleBeginTransaction(this)}getDebugName(){return this._getDebugName?this._getDebugName():m(this._fn)}updateObserver(e,t){this.updatingObservers.push({observer:e,observable:t}),e.beginUpdate(t)}finish(){const e=this.updatingObservers;for(let t=0;t<e.length;t++){const{observer:n,observable:i}=e[t];n.endUpdate(i)}this.updatingObservers=null,w()?.handleEndTransaction()}}var S=n(6782);!function(e){v=e}((function(e,t){return new L(new c(e.owner,e.debugName,e.debugReferenceFn),t,void 0,void 0,e.onLastObserverRemoved,e.equalsFn??h)}));class L extends y{get debugName(){return this._debugNameData.getDebugName(this)??"(anonymous)"}constructor(e,t,n,i,r=void 0,s){super(),this._debugNameData=e,this._computeFn=t,this.createChangeSummary=n,this._handleChange=i,this._handleLastObserverRemoved=r,this._equalityComparator=s,this.state=0,this.value=void 0,this.updateCount=0,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=void 0,this.changeSummary=this.createChangeSummary?.(),w()?.handleDerivedCreated(this)}onLastObserverRemoved(){this.state=0,this.value=void 0;for(const e of this.dependencies)e.removeObserver(this);this.dependencies.clear(),this._handleLastObserverRemoved?.()}get(){if(0===this.observers.size){const e=this._computeFn(this,this.createChangeSummary?.());return this.onLastObserverRemoved(),e}do{if(1===this.state)for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break;1===this.state&&(this.state=3),this._recomputeIfNeeded()}while(3!==this.state);return this.value}_recomputeIfNeeded(){if(3===this.state)return;const e=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=e;const t=0!==this.state,n=this.value;this.state=3;const i=this.changeSummary;this.changeSummary=this.createChangeSummary?.();try{this.value=this._computeFn(this,i)}finally{for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}const r=t&&!this._equalityComparator(n,this.value);if(w()?.handleDerivedRecomputed(this,{oldValue:n,newValue:this.value,change:void 0,didChange:r,hadValue:t}),r)for(const s of this.observers)s.handleChange(this,void 0)}toString(){return`LazyDerived<${this.debugName}>`}beginUpdate(e){this.updateCount++;const t=1===this.updateCount;if(3===this.state&&(this.state=1,!t))for(const n of this.observers)n.handlePossibleChange(this);if(t)for(const n of this.observers)n.beginUpdate(this)}endUpdate(e){if(this.updateCount--,0===this.updateCount){const e=[...this.observers];for(const t of e)t.endUpdate(this)}(0,S.Ft)((()=>this.updateCount>=0))}handlePossibleChange(e){if(3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){this.state=1;for(const e of this.observers)e.handlePossibleChange(this)}}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){const n=!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary),i=3===this.state;if(n&&(1===this.state||i)&&(this.state=2,i))for(const e of this.observers)e.handlePossibleChange(this)}}readObservable(e){e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}addObserver(e){const t=!this.observers.has(e)&&this.updateCount>0;super.addObserver(e),t&&e.beginUpdate(this)}removeObserver(e){const t=this.observers.has(e)&&this.updateCount>0;super.removeObserver(e),t&&e.endUpdate(this)}}function x(e){return new E(new c(void 0,void 0,e),e,void 0,void 0)}class E{get debugName(){return this._debugNameData.getDebugName(this)??"(anonymous)"}constructor(e,t,n,i){this._debugNameData=e,this._runFn=t,this.createChangeSummary=n,this._handleChange=i,this.state=2,this.updateCount=0,this.disposed=!1,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=this.createChangeSummary?.(),w()?.handleAutorunCreated(this),this._runIfNeeded(),(0,r.Ay)(this)}dispose(){this.disposed=!0;for(const e of this.dependencies)e.removeObserver(this);this.dependencies.clear(),(0,r.VD)(this)}_runIfNeeded(){if(3===this.state)return;const e=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=e,this.state=3;const t=this.disposed;try{if(!t){w()?.handleAutorunTriggered(this);const e=this.changeSummary;this.changeSummary=this.createChangeSummary?.(),this._runFn(this,e)}}finally{t||w()?.handleAutorunFinished(this);for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}}toString(){return`Autorun<${this.debugName}>`}beginUpdate(){3===this.state&&(this.state=1),this.updateCount++}endUpdate(){if(1===this.updateCount)do{if(1===this.state){this.state=3;for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break}this._runIfNeeded()}while(3!==this.state);this.updateCount--,(0,S.Ft)((()=>this.updateCount>=0))}handlePossibleChange(e){3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)&&(this.state=1)}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){(!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary))&&(this.state=2)}}readObservable(e){if(this.disposed)return e.get();e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}}!function(e){e.Observer=E}(x||(x={}));function A(...e){let t,n,i;return 3===e.length?[t,n,i]=e:[n,i]=e,new I(new c(t,void 0,i),n,i,(()=>I.globalTransaction),h)}class I extends y{constructor(e,t,n,i,r){super(),this._debugNameData=e,this.event=t,this._getValue=n,this._getTransaction=i,this._equalityComparator=r,this.hasValue=!1,this.handleEvent=e=>{const t=this._getValue(e),n=this.value,i=!this.hasValue||!this._equalityComparator(n,t);let r=!1;i&&(this.value=t,this.hasValue&&(r=!0,function(e,t,n){e?t(e):T(t,n)}(this._getTransaction(),(e=>{w()?.handleFromEventObservableTriggered(this,{oldValue:n,newValue:t,change:void 0,didChange:i,hadValue:this.hasValue});for(const t of this.observers)e.updateObserver(t,this),t.handleChange(this,void 0)}),(()=>{const e=this.getDebugName();return"Event fired"+(e?`: ${e}`:"")}))),this.hasValue=!0),r||w()?.handleFromEventObservableTriggered(this,{oldValue:n,newValue:t,change:void 0,didChange:i,hadValue:this.hasValue})}}getDebugName(){return this._debugNameData.getDebugName(this)}get debugName(){const e=this.getDebugName();return"From Event"+(e?`: ${e}`:"")}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0,this.hasValue=!1,this.value=void 0}get(){if(this.subscription)return this.hasValue||this.handleEvent(void 0),this.value;return this._getValue(void 0)}}!function(e){e.Observer=I,e.batchEventsGlobally=function(e,t){let n=!1;void 0===I.globalTransaction&&(I.globalTransaction=e,n=!0);try{t()}finally{n&&(I.globalTransaction=void 0)}}}(A||(A={}));!function(e){b=e}((function(e){const t=new M(!1,void 0);return e.addObserver(t),(0,r.s)((()=>{e.removeObserver(t)}))})),function(e){_=e}((function(e,t){const n=new M(!0,t);return e.addObserver(n),t?t(e.get()):e.reportChanges(),(0,r.s)((()=>{e.removeObserver(n)}))}));class M{constructor(e,t){this._forceRecompute=e,this._handleValue=t,this._counter=0}beginUpdate(e){this._counter++}endUpdate(e){this._counter--,0===this._counter&&this._forceRecompute&&(this._handleValue?this._handleValue(e.get()):e.reportChanges())}handlePossibleChange(e){}handleChange(e,t){}}n(4383);class N extends r.jG{static{this.instanceCount=0}constructor(e=!1){super(),this._onDidRequestBasicLanguageFeatures=this._register(new i.vl),this.onDidRequestBasicLanguageFeatures=this._onDidRequestBasicLanguageFeatures.event,this._onDidRequestRichLanguageFeatures=this._register(new i.vl),this.onDidRequestRichLanguageFeatures=this._onDidRequestRichLanguageFeatures.event,this._onDidChange=this._register(new i.vl({leakWarningThreshold:200})),this.onDidChange=this._onDidChange.event,this._requestedBasicLanguages=new Set,this._requestedRichLanguages=new Set,N.instanceCount++,this._registry=this._register(new s.LanguagesRegistry(!0,e)),this.languageIdCodec=this._registry.languageIdCodec,this._register(this._registry.onDidChange((()=>this._onDidChange.fire())))}dispose(){N.instanceCount--,super.dispose()}isRegisteredLanguageId(e){return this._registry.isRegisteredLanguageId(e)}getLanguageIdByLanguageName(e){return this._registry.getLanguageIdByLanguageName(e)}getLanguageIdByMimeType(e){return this._registry.getLanguageIdByMimeType(e)}guessLanguageIdByFilepathOrFirstLine(e,t){const n=this._registry.guessLanguageIdByFilepathOrFirstLine(e,t);return(0,o.Fy)(n,null)}createById(e){return new R(this.onDidChange,(()=>this._createAndGetLanguageIdentifier(e)))}createByFilepathOrFirstLine(e,t){return new R(this.onDidChange,(()=>{const n=this.guessLanguageIdByFilepathOrFirstLine(e,t);return this._createAndGetLanguageIdentifier(n)}))}_createAndGetLanguageIdentifier(e){return e&&this.isRegisteredLanguageId(e)||(e=l.vH),e}requestBasicLanguageFeatures(e){this._requestedBasicLanguages.has(e)||(this._requestedBasicLanguages.add(e),this._onDidRequestBasicLanguageFeatures.fire(e))}requestRichLanguageFeatures(e){this._requestedRichLanguages.has(e)||(this._requestedRichLanguages.add(e),this.requestBasicLanguageFeatures(e),a.dG.getOrCreate(e),this._onDidRequestRichLanguageFeatures.fire(e))}}class R{constructor(e,t){this._value=A(this,e,(()=>t())),this.onDidChange=i.Jh.fromObservable(this._value)}get languageId(){return this._value.get()}}},7614:(e,t,n)=>{var i={"./editorBaseApi":4272,"./editorBaseApi.js":4272,"./editorSimpleWorker":5196,"./editorSimpleWorker.js":5196,"./editorWorker":920,"./editorWorker.js":920,"./editorWorkerHost":718,"./editorWorkerHost.js":718,"./findSectionHeaders":6691,"./findSectionHeaders.js":6691,"./getIconClasses":5628,"./getIconClasses.js":5628,"./languageFeatureDebounce":8709,"./languageFeatureDebounce.js":8709,"./languageFeatures":6942,"./languageFeatures.js":6942,"./languageFeaturesService":2661,"./languageFeaturesService.js":2661,"./languageService":7596,"./languageService.js":7596,"./languagesAssociations":9908,"./languagesAssociations.js":9908,"./languagesRegistry":9259,"./languagesRegistry.js":9259,"./markerDecorations":7550,"./markerDecorations.js":7550,"./markerDecorationsService":448,"./markerDecorationsService.js":448,"./model":3750,"./model.js":3750,"./modelService":1773,"./modelService.js":1773,"./resolverService":8938,"./resolverService.js":8938,"./semanticTokensDto":8232,"./semanticTokensDto.js":8232,"./semanticTokensProviderStyling":5538,"./semanticTokensProviderStyling.js":5538,"./semanticTokensStyling":4243,"./semanticTokensStyling.js":4243,"./semanticTokensStylingService":7004,"./semanticTokensStylingService.js":7004,"./textModelSync/textModelSync.impl":796,"./textModelSync/textModelSync.impl.js":796,"./textModelSync/textModelSync.protocol":8868,"./textModelSync/textModelSync.protocol.js":8868,"./textResourceConfiguration":360,"./textResourceConfiguration.js":360,"./treeSitterParserService":4432,"./treeSitterParserService.js":4432,"./treeViewsDnd":6723,"./treeViewsDnd.js":6723,"./treeViewsDndService":9100,"./treeViewsDndService.js":9100,"./unicodeTextModelHighlighter":4855,"./unicodeTextModelHighlighter.js":4855,"monaco-editor/esm/vs/editor/common/services/editorBaseApi":4272,"monaco-editor/esm/vs/editor/common/services/editorBaseApi.js":4272,"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker":5196,"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker.js":5196,"monaco-editor/esm/vs/editor/common/services/editorWorker":920,"monaco-editor/esm/vs/editor/common/services/editorWorker.js":920,"monaco-editor/esm/vs/editor/common/services/editorWorkerHost":718,"monaco-editor/esm/vs/editor/common/services/editorWorkerHost.js":718,"monaco-editor/esm/vs/editor/common/services/findSectionHeaders":6691,"monaco-editor/esm/vs/editor/common/services/findSectionHeaders.js":6691,"monaco-editor/esm/vs/editor/common/services/getIconClasses":5628,"monaco-editor/esm/vs/editor/common/services/getIconClasses.js":5628,"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce":8709,"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce.js":8709,"monaco-editor/esm/vs/editor/common/services/languageFeatures":6942,"monaco-editor/esm/vs/editor/common/services/languageFeatures.js":6942,"monaco-editor/esm/vs/editor/common/services/languageFeaturesService":2661,"monaco-editor/esm/vs/editor/common/services/languageFeaturesService.js":2661,"monaco-editor/esm/vs/editor/common/services/languageService":7596,"monaco-editor/esm/vs/editor/common/services/languageService.js":7596,"monaco-editor/esm/vs/editor/common/services/languagesAssociations":9908,"monaco-editor/esm/vs/editor/common/services/languagesAssociations.js":9908,"monaco-editor/esm/vs/editor/common/services/languagesRegistry":9259,"monaco-editor/esm/vs/editor/common/services/languagesRegistry.js":9259,"monaco-editor/esm/vs/editor/common/services/markerDecorations":7550,"monaco-editor/esm/vs/editor/common/services/markerDecorations.js":7550,"monaco-editor/esm/vs/editor/common/services/markerDecorationsService":448,"monaco-editor/esm/vs/editor/common/services/markerDecorationsService.js":448,"monaco-editor/esm/vs/editor/common/services/model":3750,"monaco-editor/esm/vs/editor/common/services/model.js":3750,"monaco-editor/esm/vs/editor/common/services/modelService":1773,"monaco-editor/esm/vs/editor/common/services/modelService.js":1773,"monaco-editor/esm/vs/editor/common/services/resolverService":8938,"monaco-editor/esm/vs/editor/common/services/resolverService.js":8938,"monaco-editor/esm/vs/editor/common/services/semanticTokensDto":8232,"monaco-editor/esm/vs/editor/common/services/semanticTokensDto.js":8232,"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling":5538,"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling.js":5538,"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling":4243,"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling.js":4243,"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService":7004,"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService.js":7004,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl":796,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl.js":796,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol":8868,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol.js":8868,"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration":360,"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration.js":360,"monaco-editor/esm/vs/editor/common/services/treeSitterParserService":4432,"monaco-editor/esm/vs/editor/common/services/treeSitterParserService.js":4432,"monaco-editor/esm/vs/editor/common/services/treeViewsDnd":6723,"monaco-editor/esm/vs/editor/common/services/treeViewsDnd.js":6723,"monaco-editor/esm/vs/editor/common/services/treeViewsDndService":9100,"monaco-editor/esm/vs/editor/common/services/treeViewsDndService.js":9100,"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter":4855,"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter.js":4855};function r(e){var t=s(e);return n(t)}function s(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}r.keys=function(){return Object.keys(i)},r.resolve=s,e.exports=r,r.id=7614},7661:(e,t,n)=>{"use strict";function i(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}n.d(t,{Q1:()=>a,bU:()=>r,hB:()=>s});class r{constructor(e,t,n,r=1){this._rgbaBrand=void 0,this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,t)),this.b=0|Math.min(255,Math.max(0,n)),this.a=i(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}}class s{constructor(e,t,n,r){this._hslaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=i(Math.max(Math.min(1,t),0),3),this.l=i(Math.max(Math.min(1,n),0),3),this.a=i(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(e){const t=e.r/255,n=e.g/255,i=e.b/255,r=e.a,o=Math.max(t,n,i),a=Math.min(t,n,i);let l=0,h=0;const c=(a+o)/2,d=o-a;if(d>0){switch(h=Math.min(c<=.5?d/(2*c):d/(2-2*c),1),o){case t:l=(n-i)/d+(n<i?6:0);break;case n:l=(i-t)/d+2;break;case i:l=(t-n)/d+4}l*=60,l=Math.round(l)}return new s(l,h,c,r)}static _hue2rgb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}static toRGBA(e){const t=e.h/360,{s:n,l:i,a:o}=e;let a,l,h;if(0===n)a=l=h=i;else{const e=i<.5?i*(1+n):i+n-i*n,r=2*i-e;a=s._hue2rgb(r,e,t+1/3),l=s._hue2rgb(r,e,t),h=s._hue2rgb(r,e,t-1/3)}return new r(Math.round(255*a),Math.round(255*l),Math.round(255*h),o)}}class o{constructor(e,t,n,r){this._hsvaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=i(Math.max(Math.min(1,t),0),3),this.v=i(Math.max(Math.min(1,n),0),3),this.a=i(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(e){const t=e.r/255,n=e.g/255,i=e.b/255,r=Math.max(t,n,i),s=r-Math.min(t,n,i),a=0===r?0:s/r;let l;return l=0===s?0:r===t?((n-i)/s%6+6)%6:r===n?(i-t)/s+2:(t-n)/s+4,new o(Math.round(60*l),a,r,e.a)}static toRGBA(e){const{h:t,s:n,v:i,a:s}=e,o=i*n,a=o*(1-Math.abs(t/60%2-1)),l=i-o;let[h,c,d]=[0,0,0];return t<60?(h=o,c=a):t<120?(h=a,c=o):t<180?(c=o,d=a):t<240?(c=a,d=o):t<300?(h=a,d=o):t<=360&&(h=o,d=a),h=Math.round(255*(h+l)),c=Math.round(255*(c+l)),d=Math.round(255*(d+l)),new r(h,c,d,s)}}class a{static fromHex(e){return a.Format.CSS.parseHex(e)||a.red}static equals(e,t){return!e&&!t||!(!e||!t)&&e.equals(t)}get hsla(){return this._hsla?this._hsla:s.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:o.fromRGBA(this.rgba)}constructor(e){if(!e)throw new Error("Color needs a value");if(e instanceof r)this.rgba=e;else if(e instanceof s)this._hsla=e,this.rgba=s.toRGBA(e);else{if(!(e instanceof o))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=o.toRGBA(e)}}equals(e){return!!e&&r.equals(this.rgba,e.rgba)&&s.equals(this.hsla,e.hsla)&&o.equals(this.hsva,e.hsva)}getRelativeLuminance(){return i(.2126*a._relativeLuminanceForComponent(this.rgba.r)+.7152*a._relativeLuminanceForComponent(this.rgba.g)+.0722*a._relativeLuminanceForComponent(this.rgba.b),4)}static _relativeLuminanceForComponent(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}isLighter(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128}isLighterThan(e){return this.getRelativeLuminance()>e.getRelativeLuminance()}isDarkerThan(e){return this.getRelativeLuminance()<e.getRelativeLuminance()}lighten(e){return new a(new s(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*e,this.hsla.a))}darken(e){return new a(new s(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*e,this.hsla.a))}transparent(e){const{r:t,g:n,b:i,a:s}=this.rgba;return new a(new r(t,n,i,s*e))}isTransparent(){return 0===this.rgba.a}isOpaque(){return 1===this.rgba.a}opposite(){return new a(new r(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(e){if(this.isOpaque()||1!==e.rgba.a)return this;const{r:t,g:n,b:i,a:s}=this.rgba;return new a(new r(e.rgba.r-s*(e.rgba.r-t),e.rgba.g-s*(e.rgba.g-n),e.rgba.b-s*(e.rgba.b-i),1))}toString(){return this._toString||(this._toString=a.Format.CSS.format(this)),this._toString}static getLighterColor(e,t,n){if(e.isLighterThan(t))return e;n=n||.5;const i=e.getRelativeLuminance(),r=t.getRelativeLuminance();return n=n*(r-i)/r,e.lighten(n)}static getDarkerColor(e,t,n){if(e.isDarkerThan(t))return e;n=n||.5;const i=e.getRelativeLuminance();return n=n*(i-t.getRelativeLuminance())/i,e.darken(n)}static{this.white=new a(new r(255,255,255,1))}static{this.black=new a(new r(0,0,0,1))}static{this.red=new a(new r(255,0,0,1))}static{this.blue=new a(new r(0,0,255,1))}static{this.green=new a(new r(0,255,0,1))}static{this.cyan=new a(new r(0,255,255,1))}static{this.lightgrey=new a(new r(211,211,211,1))}static{this.transparent=new a(new r(0,0,0,0))}}!function(e){let t;!function(t){let n;!function(t){function n(e){const t=e.toString(16);return 2!==t.length?"0"+t:t}function i(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:case 65:return 10;case 98:case 66:return 11;case 99:case 67:return 12;case 100:case 68:return 13;case 101:case 69:return 14;case 102:case 70:return 15}return 0}t.formatRGB=function(t){return 1===t.rgba.a?`rgb(${t.rgba.r}, ${t.rgba.g}, ${t.rgba.b})`:e.Format.CSS.formatRGBA(t)},t.formatRGBA=function(e){return`rgba(${e.rgba.r}, ${e.rgba.g}, ${e.rgba.b}, ${+e.rgba.a.toFixed(2)})`},t.formatHSL=function(t){return 1===t.hsla.a?`hsl(${t.hsla.h}, ${(100*t.hsla.s).toFixed(2)}%, ${(100*t.hsla.l).toFixed(2)}%)`:e.Format.CSS.formatHSLA(t)},t.formatHSLA=function(e){return`hsla(${e.hsla.h}, ${(100*e.hsla.s).toFixed(2)}%, ${(100*e.hsla.l).toFixed(2)}%, ${e.hsla.a.toFixed(2)})`},t.formatHex=function(e){return`#${n(e.rgba.r)}${n(e.rgba.g)}${n(e.rgba.b)}`},t.formatHexA=function(t,i=!1){return i&&1===t.rgba.a?e.Format.CSS.formatHex(t):`#${n(t.rgba.r)}${n(t.rgba.g)}${n(t.rgba.b)}${n(Math.round(255*t.rgba.a))}`},t.format=function(t){return t.isOpaque()?e.Format.CSS.formatHex(t):e.Format.CSS.formatRGBA(t)},t.parseHex=function(t){const n=t.length;if(0===n)return null;if(35!==t.charCodeAt(0))return null;if(7===n){const n=16*i(t.charCodeAt(1))+i(t.charCodeAt(2)),s=16*i(t.charCodeAt(3))+i(t.charCodeAt(4)),o=16*i(t.charCodeAt(5))+i(t.charCodeAt(6));return new e(new r(n,s,o,1))}if(9===n){const n=16*i(t.charCodeAt(1))+i(t.charCodeAt(2)),s=16*i(t.charCodeAt(3))+i(t.charCodeAt(4)),o=16*i(t.charCodeAt(5))+i(t.charCodeAt(6)),a=16*i(t.charCodeAt(7))+i(t.charCodeAt(8));return new e(new r(n,s,o,a/255))}if(4===n){const n=i(t.charCodeAt(1)),s=i(t.charCodeAt(2)),o=i(t.charCodeAt(3));return new e(new r(16*n+n,16*s+s,16*o+o))}if(5===n){const n=i(t.charCodeAt(1)),s=i(t.charCodeAt(2)),o=i(t.charCodeAt(3)),a=i(t.charCodeAt(4));return new e(new r(16*n+n,16*s+s,16*o+o,(16*a+a)/255))}return null}}(n=t.CSS||(t.CSS={}))}(t=e.Format||(e.Format={}))}(a||(a={}))},7729:(e,t,n)=>{"use strict";n.d(t,{lt:()=>d,W5:()=>p,hB:()=>f,dr:()=>u,wC:()=>m});var i=n(1508),r=n(4320),s=n(534);class o extends s.V{constructor(e,t){super(0),this._segmenter=null,this._cachedLine=null,this._cachedSegments=[],this.intlSegmenterLocales=t,this.intlSegmenterLocales.length>0?this._segmenter=new Intl.Segmenter(this.intlSegmenterLocales,{granularity:"word"}):this._segmenter=null;for(let n=0,i=e.length;n<i;n++)this.set(e.charCodeAt(n),2);this.set(32,1),this.set(9,1)}findPrevIntlWordBeforeOrAtOffset(e,t){let n=null;for(const i of this._getIntlSegmenterWordsOnLine(e)){if(i.index>t)break;n=i}return n}findNextIntlWordAtOrAfterOffset(e,t){for(const n of this._getIntlSegmenterWordsOnLine(e))if(!(n.index<t))return n;return null}_getIntlSegmenterWordsOnLine(e){return this._segmenter?(this._cachedLine===e||(this._cachedLine=e,this._cachedSegments=this._filterWordSegments(this._segmenter.segment(e))),this._cachedSegments):[]}_filterWordSegments(e){const t=[];for(const n of e)this._isWordLike(n)&&t.push(n);return t}_isWordLike(e){return!!e.isWordLike}}const a=new r.qK(10);var l=n(3069),h=n(6677),c=n(6223);class d{constructor(e,t,n,i){this.searchString=e,this.isRegex=t,this.matchCase=n,this.wordSeparators=i}parseSearchRequest(){if(""===this.searchString)return null;let e;e=this.isRegex?function(e){if(!e||0===e.length)return!1;for(let t=0,n=e.length;t<n;t++){const i=e.charCodeAt(t);if(10===i)return!0;if(92===i){if(t++,t>=n)break;const i=e.charCodeAt(t);if(110===i||114===i||87===i)return!0}}return!1}(this.searchString):this.searchString.indexOf("\n")>=0;let t=null;try{t=i.OS(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0,unicode:!0})}catch(r){return null}if(!t)return null;let n=!this.isRegex&&!e;return n&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(n=this.matchCase),new c.L5(t,this.wordSeparators?function(e,t){const n=`${e}/${t.join(",")}`;let i=a.get(n);return i||(i=new o(e,t),a.set(n,i)),i}(this.wordSeparators,[]):null,n?this.searchString:null)}}function u(e,t,n){if(!n)return new c.Dg(e,null);const i=[];for(let r=0,s=t.length;r<s;r++)i[r]=t[r];return new c.Dg(e,i)}class g{constructor(e){const t=[];let n=0;for(let i=0,r=e.length;i<r;i++)10===e.charCodeAt(i)&&(t[n++]=i);this._lineFeedsOffsets=t}findLineFeedCountBeforeOffset(e){const t=this._lineFeedsOffsets;let n=0,i=t.length-1;if(-1===i)return 0;if(e<=t[0])return 0;for(;n<i;){const r=n+((i-n)/2|0);t[r]>=e?i=r-1:t[r+1]>=e?(n=r,i=r):n=r+1}return n+1}}class f{static findMatches(e,t,n,i,r){const s=t.parseSearchRequest();return s?s.regex.multiline?this._doFindMatchesMultiline(e,n,new p(s.wordSeparators,s.regex),i,r):this._doFindMatchesLineByLine(e,n,s,i,r):[]}static _getMultilineMatchRange(e,t,n,i,r,s){let o,a,l=0;if(i?(l=i.findLineFeedCountBeforeOffset(r),o=t+r+l):o=t+r,i){const e=i.findLineFeedCountBeforeOffset(r+s.length)-l;a=o+s.length+e}else a=o+s.length;const c=e.getPositionAt(o),d=e.getPositionAt(a);return new h.Q(c.lineNumber,c.column,d.lineNumber,d.column)}static _doFindMatchesMultiline(e,t,n,i,r){const s=e.getOffsetAt(t.getStartPosition()),o=e.getValueInRange(t,1),a="\r\n"===e.getEOL()?new g(o):null,l=[];let h,c=0;for(n.reset(0);h=n.next(o);)if(l[c++]=u(this._getMultilineMatchRange(e,s,o,a,h.index,h[0]),h,i),c>=r)return l;return l}static _doFindMatchesLineByLine(e,t,n,i,r){const s=[];let o=0;if(t.startLineNumber===t.endLineNumber){const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return o=this._findMatchesInLine(n,a,t.startLineNumber,t.startColumn-1,o,s,i,r),s}const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);o=this._findMatchesInLine(n,a,t.startLineNumber,t.startColumn-1,o,s,i,r);for(let l=t.startLineNumber+1;l<t.endLineNumber&&o<r;l++)o=this._findMatchesInLine(n,e.getLineContent(l),l,0,o,s,i,r);if(o<r){const a=e.getLineContent(t.endLineNumber).substring(0,t.endColumn-1);o=this._findMatchesInLine(n,a,t.endLineNumber,0,o,s,i,r)}return s}static _findMatchesInLine(e,t,n,i,r,s,o,a){const l=e.wordSeparators;if(!o&&e.simpleSearch){const o=e.simpleSearch,d=o.length,u=t.length;let g=-d;for(;-1!==(g=t.indexOf(o,g+d));)if((!l||m(l,t,u,g,d))&&(s[r++]=new c.Dg(new h.Q(n,g+1+i,n,g+1+d+i),null),r>=a))return r;return r}const d=new p(e.wordSeparators,e.regex);let g;d.reset(0);do{if(g=d.next(t),g&&(s[r++]=u(new h.Q(n,g.index+1+i,n,g.index+1+g[0].length+i),g,o),r>=a))return r}while(g);return r}static findNextMatch(e,t,n,i){const r=t.parseSearchRequest();if(!r)return null;const s=new p(r.wordSeparators,r.regex);return r.regex.multiline?this._doFindNextMatchMultiline(e,n,s,i):this._doFindNextMatchLineByLine(e,n,s,i)}static _doFindNextMatchMultiline(e,t,n,i){const r=new l.y(t.lineNumber,1),s=e.getOffsetAt(r),o=e.getLineCount(),a=e.getValueInRange(new h.Q(r.lineNumber,r.column,o,e.getLineMaxColumn(o)),1),c="\r\n"===e.getEOL()?new g(a):null;n.reset(t.column-1);const d=n.next(a);return d?u(this._getMultilineMatchRange(e,s,a,c,d.index,d[0]),d,i):1!==t.lineNumber||1!==t.column?this._doFindNextMatchMultiline(e,new l.y(1,1),n,i):null}static _doFindNextMatchLineByLine(e,t,n,i){const r=e.getLineCount(),s=t.lineNumber,o=e.getLineContent(s),a=this._findFirstMatchInLine(n,o,s,t.column,i);if(a)return a;for(let l=1;l<=r;l++){const t=(s+l-1)%r,o=e.getLineContent(t+1),a=this._findFirstMatchInLine(n,o,t+1,1,i);if(a)return a}return null}static _findFirstMatchInLine(e,t,n,i,r){e.reset(i-1);const s=e.next(t);return s?u(new h.Q(n,s.index+1,n,s.index+1+s[0].length),s,r):null}static findPreviousMatch(e,t,n,i){const r=t.parseSearchRequest();if(!r)return null;const s=new p(r.wordSeparators,r.regex);return r.regex.multiline?this._doFindPreviousMatchMultiline(e,n,s,i):this._doFindPreviousMatchLineByLine(e,n,s,i)}static _doFindPreviousMatchMultiline(e,t,n,i){const r=this._doFindMatchesMultiline(e,new h.Q(1,1,t.lineNumber,t.column),n,i,9990);if(r.length>0)return r[r.length-1];const s=e.getLineCount();return t.lineNumber!==s||t.column!==e.getLineMaxColumn(s)?this._doFindPreviousMatchMultiline(e,new l.y(s,e.getLineMaxColumn(s)),n,i):null}static _doFindPreviousMatchLineByLine(e,t,n,i){const r=e.getLineCount(),s=t.lineNumber,o=e.getLineContent(s).substring(0,t.column-1),a=this._findLastMatchInLine(n,o,s,i);if(a)return a;for(let l=1;l<=r;l++){const t=(r+s-l-1)%r,o=e.getLineContent(t+1),a=this._findLastMatchInLine(n,o,t+1,i);if(a)return a}return null}static _findLastMatchInLine(e,t,n,i){let r,s=null;for(e.reset(0);r=e.next(t);)s=u(new h.Q(n,r.index+1,n,r.index+1+r[0].length),r,i);return s}}function m(e,t,n,i,r){return function(e,t,n,i,r){if(0===i)return!0;const s=t.charCodeAt(i-1);if(0!==e.get(s))return!0;if(13===s||10===s)return!0;if(r>0){const n=t.charCodeAt(i);if(0!==e.get(n))return!0}return!1}(e,t,0,i,r)&&function(e,t,n,i,r){if(i+r===n)return!0;const s=t.charCodeAt(i+r);if(0!==e.get(s))return!0;if(13===s||10===s)return!0;if(r>0){const n=t.charCodeAt(i+r-1);if(0!==e.get(n))return!0}return!1}(e,t,n,i,r)}class p{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){const t=e.length;let n;do{if(this._prevMatchStartIndex+this._prevMatchLength===t)return null;if(n=this._searchRegex.exec(e),!n)return null;const r=n.index,s=n[0].length;if(r===this._prevMatchStartIndex&&s===this._prevMatchLength){if(0===s){i.Z5(e,t,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=r,this._prevMatchLength=s,!this._wordSeparators||m(this._wordSeparators,e,t,r,s))return n}while(n);return null}}},8067:(e,t,n)=>{"use strict";n.d(t,{H8:()=>P,HZ:()=>A,OS:()=>D,UP:()=>H,_p:()=>R,cm:()=>z,gm:()=>F,ib:()=>E,j9:()=>x,lg:()=>I,nr:()=>W,uF:()=>S,zx:()=>L});var i=n(8209);const r="en";let s,o,a=!1,l=!1,h=!1,c=!1,d=!1,u=!1,g=!1,f=!1,m=!1,p=!1,_=null,b=null,v=null;const w=globalThis;let k;"undefined"!==typeof w.vscode&&"undefined"!==typeof w.vscode.process?k=w.vscode.process:"undefined"!==typeof process&&"string"===typeof process?.versions?.node&&(k=process);const y="string"===typeof k?.versions?.electron,T=y&&"renderer"===k?.type;if("object"===typeof k){a="win32"===k.platform,l="darwin"===k.platform,h="linux"===k.platform,c=h&&!!k.env.SNAP&&!!k.env.SNAP_REVISION,g=y,m=!!k.env.CI||!!k.env.BUILD_ARTIFACTSTAGINGDIRECTORY,s=r,_=r;const e=k.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e);s=t.userLocale,b=t.osLocale,_=t.resolvedLanguage||r,v=t.languagePack?.translationsConfigFile}catch(U){}d=!0}else"object"!==typeof navigator||T?console.error("Unable to resolve platform."):(o=navigator.userAgent,a=o.indexOf("Windows")>=0,l=o.indexOf("Macintosh")>=0,f=(o.indexOf("Macintosh")>=0||o.indexOf("iPad")>=0||o.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,h=o.indexOf("Linux")>=0,p=o?.indexOf("Mobi")>=0,u=!0,_=i.i8()||r,s=navigator.language.toLowerCase(),b=s);let C=0;l?C=1:a?C=3:h&&(C=2);const S=a,L=l,x=h,E=d,A=u,I=u&&"function"===typeof w.importScripts?w.origin:void 0,M=o,N="function"===typeof w.postMessage&&!w.importScripts,R=(()=>{if(N){const e=[];w.addEventListener("message",(t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let n=0,i=e.length;n<i;n++){const i=e[n];if(i.id===t.data.vscodeScheduleAsyncWork)return e.splice(n,1),void i.callback()}}));let t=0;return n=>{const i=++t;e.push({id:i,callback:n}),w.postMessage({vscodeScheduleAsyncWork:i},"*")}}return e=>setTimeout(e)})(),D=l||f?2:a?1:3;let O=!0,B=!1;function z(){if(!B){B=!0;const e=new Uint8Array(2);e[0]=1,e[1]=2;const t=new Uint16Array(e.buffer);O=513===t[0]}return O}const P=!!(M&&M.indexOf("Chrome")>=0),F=!!(M&&M.indexOf("Firefox")>=0),W=!!(!P&&M&&M.indexOf("Safari")>=0),H=!!(M&&M.indexOf("Edg/")>=0);M&&M.indexOf("Android")},8209:(e,t,n)=>{"use strict";function i(){return globalThis._VSCODE_NLS_LANGUAGE}n.d(t,{i8:()=>i,kg:()=>o});const r="pseudo"===i()||"undefined"!==typeof document&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function s(e,t){let n;return n=0===t.length?e:e.replace(/\{(\d+)\}/g,((e,n)=>{const i=n[0],r=t[i];let s=e;return"string"===typeof r?s=r:"number"!==typeof r&&"boolean"!==typeof r&&void 0!==r&&null!==r||(s=String(r)),s})),r&&(n="\uff3b"+n.replace(/[aouei]/g,"$&$&")+"\uff3d"),n}function o(e,t,...n){return s("number"===typeof e?a(e,t):t,n)}function a(e,t){const n=globalThis._VSCODE_NLS_MESSAGES?.[e];if("string"!==typeof n){if("string"===typeof t)return t;throw new Error(`!!! NLS MISSING: ${e} !!!`)}return n}},8232:(e,t,n)=>{"use strict";n.r(t),n.d(t,{encodeSemanticTokensDto:()=>s});var i=n(1674),r=n(8067);function s(e){const t=new Uint32Array(function(e){let t=0;if(t+=2,"full"===e.type)t+=1+e.data.length;else{t+=1,t+=3*e.deltas.length;for(const n of e.deltas)n.data&&(t+=n.data.length)}return t}(e));let n=0;if(t[n++]=e.id,"full"===e.type)t[n++]=1,t[n++]=e.data.length,t.set(e.data,n),n+=e.data.length;else{t[n++]=2,t[n++]=e.deltas.length;for(const i of e.deltas)t[n++]=i.start,t[n++]=i.deleteCount,i.data?(t[n++]=i.data.length,t.set(i.data,n),n+=i.data.length):t[n++]=0}return function(e){const t=new Uint8Array(e.buffer,e.byteOffset,4*e.length);return r.cm()||function(e){for(let t=0,n=e.length;t<n;t+=4){const n=e[t+0],i=e[t+1],r=e[t+2],s=e[t+3];e[t+0]=s,e[t+1]=r,e[t+2]=i,e[t+3]=n}}(t),i.MB.wrap(t)}(t)}},8381:(e,t,n)=>{"use strict";n.d(t,{W:()=>r});const i=globalThis.performance&&"function"===typeof globalThis.performance.now;class r{static create(e){return new r(e)}constructor(e){this._now=i&&!1===e?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}}},8447:(e,t,n)=>{"use strict";n.d(t,{Qi:()=>a});var i=n(1234);const r=Object.freeze((function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}}));var s;!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||(t instanceof o||!(!t||"object"!==typeof t)&&("boolean"===typeof t.isCancellationRequested&&"function"===typeof t.onCancellationRequested))},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:i.Jh.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:r})}(s||(s={}));class o{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?r:(this._emitter||(this._emitter=new i.vl),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class a{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new o),this._token}cancel(){this._token?this._token instanceof o&&this._token.cancel():this._token=s.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof o&&this._token.dispose():this._token=s.None}}},8709:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ILanguageFeatureDebounceService:()=>m,LanguageFeatureDebounceService:()=>v});var i=n(5600),r=n(4320);function s(e,t,n){return Math.min(Math.max(e,t),n)}class o{constructor(){this._n=1,this._val=0}update(e){return this._val=this._val+(e-this._val)/this._n,this._n+=1,this._val}get value(){return this._val}}class a{constructor(e){this._n=0,this._val=0,this._values=[],this._index=0,this._sum=0,this._values=new Array(e),this._values.fill(0,0,e)}update(e){const t=this._values[this._index];return this._values[this._index]=e,this._index=(this._index+1)%this._values.length,this._sum-=t,this._sum+=e,this._n<this._values.length&&(this._n+=1),this._val=this._sum/this._n,this._val}get value(){return this._val}}var l=n(3591);const h=(0,l.u1)("environmentService");var c=n(4621),d=n(3511),u=n(6456),g=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},f=function(e,t){return function(n,i){t(n,i,e)}};const m=(0,l.u1)("ILanguageFeatureDebounceService");var p;!function(e){const t=new WeakMap;let n=0;e.of=function(e){let i=t.get(e);return void 0===i&&(i=++n,t.set(e,i)),i}}(p||(p={}));class _{constructor(e){this._default=e}get(e){return this._default}update(e,t){return this._default}default(){return this._default}}class b{constructor(e,t,n,i,s,o){this._logService=e,this._name=t,this._registry=n,this._default=i,this._min=s,this._max=o,this._cache=new r.qK(50,.7)}_key(e){return e.id+this._registry.all(e).reduce(((e,t)=>(0,i.sN)(p.of(t),e)),0)}get(e){const t=this._key(e),n=this._cache.get(t);return n?s(n.value,this._min,this._max):this.default()}update(e,t){const n=this._key(e);let i=this._cache.get(n);i||(i=new a(6),this._cache.set(n,i));const r=s(i.update(t),this._min,this._max);return(0,u.v$)(e.uri,"output")||this._logService.trace(`[DEBOUNCE: ${this._name}] for ${e.uri.toString()} is ${r}ms`),r}_overall(){const e=new o;for(const[,t]of this._cache)e.update(t.value);return e.value}default(){return s(0|this._overall()||this._default,this._min,this._max)}}let v=class{constructor(e,t){this._logService=e,this._data=new Map,this._isDev=t.isExtensionDevelopment||!t.isBuilt}for(e,t,n){const i=n?.min??50,r=n?.max??i**2,s=n?.key??void 0,o=`${p.of(e)},${i}${s?","+s:""}`;let a=this._data.get(o);return a||(this._isDev?(this._logService.debug(`[DEBOUNCE: ${t}] is disabled in developed mode`),a=new _(1.5*i)):a=new b(this._logService,t,e,0|this._overallAverage()||1.5*i,i,r),this._data.set(o,a)),a}_overallAverage(){const e=new o;for(const t of this._data.values())e.update(t.default());return e.value}};v=g([f(0,d.rr),f(1,h)],v),(0,c.v)(m,v,1)},8748:(e,t,n)=>{"use strict";n.d(t,{F:()=>s});var i=n(1234),r=n(6359);const s={JSONContribution:"base.contributions.json"};const o=new class{constructor(){this._onDidChangeSchema=new i.vl,this.schemasById={}}registerSchema(e,t){var n;this.schemasById[(n=e,n.length>0&&"#"===n.charAt(n.length-1)?n.substring(0,n.length-1):n)]=t,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}};r.O.add(s.JSONContribution,o)},8821:(e,t,n)=>{"use strict";n.d(t,{P8:()=>E,pD:()=>x,LC:()=>A,fj:()=>C,S8:()=>T,SA:()=>y,V8:()=>L,hd:()=>S,Vn:()=>I,IN:()=>w});var i=n(8067);let r;const s=globalThis.vscode;if("undefined"!==typeof s&&"undefined"!==typeof s.process){const e=s.process;r={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd:()=>e.cwd()}}else r="undefined"!==typeof process&&"string"===typeof process?.versions?.node?{get platform(){return process.platform},get arch(){return process.arch},get env(){return{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}},cwd:()=>({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}.VSCODE_CWD||process.cwd())}:{get platform(){return i.uF?"win32":i.zx?"darwin":"linux"},get arch(){},get env(){return{}},cwd:()=>"/"};const o=r.cwd,a=(r.env,r.platform),l=46,h=47,c=92,d=58;class u extends Error{constructor(e,t,n){let i;"string"===typeof t&&0===t.indexOf("not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";const r=-1!==e.indexOf(".")?"property":"argument";let s=`The "${e}" ${r} ${i} of type ${t}`;s+=". Received type "+typeof n,super(s),this.code="ERR_INVALID_ARG_TYPE"}}function g(e,t){if("string"!==typeof e)throw new u(t,"string",e)}const f="win32"===a;function m(e){return e===h||e===c}function p(e){return e===h}function _(e){return e>=65&&e<=90||e>=97&&e<=122}function b(e,t,n,i){let r="",s=0,o=-1,a=0,c=0;for(let d=0;d<=e.length;++d){if(d<e.length)c=e.charCodeAt(d);else{if(i(c))break;c=h}if(i(c)){if(o===d-1||1===a);else if(2===a){if(r.length<2||2!==s||r.charCodeAt(r.length-1)!==l||r.charCodeAt(r.length-2)!==l){if(r.length>2){const e=r.lastIndexOf(n);-1===e?(r="",s=0):(r=r.slice(0,e),s=r.length-1-r.lastIndexOf(n)),o=d,a=0;continue}if(0!==r.length){r="",s=0,o=d,a=0;continue}}t&&(r+=r.length>0?`${n}..`:"..",s=2)}else r.length>0?r+=`${n}${e.slice(o+1,d)}`:r=e.slice(o+1,d),s=d-o-1;o=d,a=0}else c===l&&-1!==a?++a:a=-1}return r}function v(e,t){!function(e,t){if(null===e||"object"!==typeof e)throw new u(t,"Object",e)}(t,"pathObject");const n=t.dir||t.root,i=t.base||`${t.name||""}${r=t.ext,r?`${"."===r[0]?"":"."}${r}`:""}`;var r;return n?n===t.root?`${n}${i}`:`${n}${e}${i}`:i}const w={resolve(...e){let t="",n="",i=!1;for(let r=e.length-1;r>=-1;r--){let s;if(r>=0){if(s=e[r],g(s,`paths[${r}]`),0===s.length)continue}else 0===t.length?s=o():(s={NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}[`=${t}`]||o(),(void 0===s||s.slice(0,2).toLowerCase()!==t.toLowerCase()&&s.charCodeAt(2)===c)&&(s=`${t}\\`));const a=s.length;let l=0,h="",u=!1;const f=s.charCodeAt(0);if(1===a)m(f)&&(l=1,u=!0);else if(m(f))if(u=!0,m(s.charCodeAt(1))){let e=2,t=e;for(;e<a&&!m(s.charCodeAt(e));)e++;if(e<a&&e!==t){const n=s.slice(t,e);for(t=e;e<a&&m(s.charCodeAt(e));)e++;if(e<a&&e!==t){for(t=e;e<a&&!m(s.charCodeAt(e));)e++;e!==a&&e===t||(h=`\\\\${n}\\${s.slice(t,e)}`,l=e)}}}else l=1;else _(f)&&s.charCodeAt(1)===d&&(h=s.slice(0,2),l=2,a>2&&m(s.charCodeAt(2))&&(u=!0,l=3));if(h.length>0)if(t.length>0){if(h.toLowerCase()!==t.toLowerCase())continue}else t=h;if(i){if(t.length>0)break}else if(n=`${s.slice(l)}\\${n}`,i=u,u&&t.length>0)break}return n=b(n,!i,"\\",m),i?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){g(e,"path");const t=e.length;if(0===t)return".";let n,i=0,r=!1;const s=e.charCodeAt(0);if(1===t)return p(s)?"\\":e;if(m(s))if(r=!0,m(e.charCodeAt(1))){let r=2,s=r;for(;r<t&&!m(e.charCodeAt(r));)r++;if(r<t&&r!==s){const o=e.slice(s,r);for(s=r;r<t&&m(e.charCodeAt(r));)r++;if(r<t&&r!==s){for(s=r;r<t&&!m(e.charCodeAt(r));)r++;if(r===t)return`\\\\${o}\\${e.slice(s)}\\`;r!==s&&(n=`\\\\${o}\\${e.slice(s,r)}`,i=r)}}}else i=1;else _(s)&&e.charCodeAt(1)===d&&(n=e.slice(0,2),i=2,t>2&&m(e.charCodeAt(2))&&(r=!0,i=3));let o=i<t?b(e.slice(i),!r,"\\",m):"";return 0!==o.length||r||(o="."),o.length>0&&m(e.charCodeAt(t-1))&&(o+="\\"),void 0===n?r?`\\${o}`:o:r?`${n}\\${o}`:`${n}${o}`},isAbsolute(e){g(e,"path");const t=e.length;if(0===t)return!1;const n=e.charCodeAt(0);return m(n)||t>2&&_(n)&&e.charCodeAt(1)===d&&m(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let t,n;for(let s=0;s<e.length;++s){const i=e[s];g(i,"path"),i.length>0&&(void 0===t?t=n=i:t+=`\\${i}`)}if(void 0===t)return".";let i=!0,r=0;if("string"===typeof n&&m(n.charCodeAt(0))){++r;const e=n.length;e>1&&m(n.charCodeAt(1))&&(++r,e>2&&(m(n.charCodeAt(2))?++r:i=!1))}if(i){for(;r<t.length&&m(t.charCodeAt(r));)r++;r>=2&&(t=`\\${t.slice(r)}`)}return w.normalize(t)},relative(e,t){if(g(e,"from"),g(t,"to"),e===t)return"";const n=w.resolve(e),i=w.resolve(t);if(n===i)return"";if((e=n.toLowerCase())===(t=i.toLowerCase()))return"";let r=0;for(;r<e.length&&e.charCodeAt(r)===c;)r++;let s=e.length;for(;s-1>r&&e.charCodeAt(s-1)===c;)s--;const o=s-r;let a=0;for(;a<t.length&&t.charCodeAt(a)===c;)a++;let l=t.length;for(;l-1>a&&t.charCodeAt(l-1)===c;)l--;const h=l-a,d=o<h?o:h;let u=-1,f=0;for(;f<d;f++){const n=e.charCodeAt(r+f);if(n!==t.charCodeAt(a+f))break;n===c&&(u=f)}if(f!==d){if(-1===u)return i}else{if(h>d){if(t.charCodeAt(a+f)===c)return i.slice(a+f+1);if(2===f)return i.slice(a+f)}o>d&&(e.charCodeAt(r+f)===c?u=f:2===f&&(u=3)),-1===u&&(u=0)}let m="";for(f=r+u+1;f<=s;++f)f!==s&&e.charCodeAt(f)!==c||(m+=0===m.length?"..":"\\..");return a+=u,m.length>0?`${m}${i.slice(a,l)}`:(i.charCodeAt(a)===c&&++a,i.slice(a,l))},toNamespacedPath(e){if("string"!==typeof e||0===e.length)return e;const t=w.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===c){if(t.charCodeAt(1)===c){const e=t.charCodeAt(2);if(63!==e&&e!==l)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(_(t.charCodeAt(0))&&t.charCodeAt(1)===d&&t.charCodeAt(2)===c)return`\\\\?\\${t}`;return e},dirname(e){g(e,"path");const t=e.length;if(0===t)return".";let n=-1,i=0;const r=e.charCodeAt(0);if(1===t)return m(r)?e:".";if(m(r)){if(n=i=1,m(e.charCodeAt(1))){let r=2,s=r;for(;r<t&&!m(e.charCodeAt(r));)r++;if(r<t&&r!==s){for(s=r;r<t&&m(e.charCodeAt(r));)r++;if(r<t&&r!==s){for(s=r;r<t&&!m(e.charCodeAt(r));)r++;if(r===t)return e;r!==s&&(n=i=r+1)}}}}else _(r)&&e.charCodeAt(1)===d&&(n=t>2&&m(e.charCodeAt(2))?3:2,i=n);let s=-1,o=!0;for(let a=t-1;a>=i;--a)if(m(e.charCodeAt(a))){if(!o){s=a;break}}else o=!1;if(-1===s){if(-1===n)return".";s=n}return e.slice(0,s)},basename(e,t){void 0!==t&&g(t,"suffix"),g(e,"path");let n,i=0,r=-1,s=!0;if(e.length>=2&&_(e.charCodeAt(0))&&e.charCodeAt(1)===d&&(i=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(n=e.length-1;n>=i;--n){const l=e.charCodeAt(n);if(m(l)){if(!s){i=n+1;break}}else-1===a&&(s=!1,a=n+1),o>=0&&(l===t.charCodeAt(o)?-1===--o&&(r=n):(o=-1,r=a))}return i===r?r=a:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=i;--n)if(m(e.charCodeAt(n))){if(!s){i=n+1;break}}else-1===r&&(s=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname(e){g(e,"path");let t=0,n=-1,i=0,r=-1,s=!0,o=0;e.length>=2&&e.charCodeAt(1)===d&&_(e.charCodeAt(0))&&(t=i=2);for(let a=e.length-1;a>=t;--a){const t=e.charCodeAt(a);if(m(t)){if(!s){i=a+1;break}}else-1===r&&(s=!1,r=a+1),t===l?-1===n?n=a:1!==o&&(o=1):-1!==n&&(o=-1)}return-1===n||-1===r||0===o||1===o&&n===r-1&&n===i+1?"":e.slice(n,r)},format:v.bind(null,"\\"),parse(e){g(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.length;let i=0,r=e.charCodeAt(0);if(1===n)return m(r)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(m(r)){if(i=1,m(e.charCodeAt(1))){let t=2,r=t;for(;t<n&&!m(e.charCodeAt(t));)t++;if(t<n&&t!==r){for(r=t;t<n&&m(e.charCodeAt(t));)t++;if(t<n&&t!==r){for(r=t;t<n&&!m(e.charCodeAt(t));)t++;t===n?i=t:t!==r&&(i=t+1)}}}}else if(_(r)&&e.charCodeAt(1)===d){if(n<=2)return t.root=t.dir=e,t;if(i=2,m(e.charCodeAt(2))){if(3===n)return t.root=t.dir=e,t;i=3}}i>0&&(t.root=e.slice(0,i));let s=-1,o=i,a=-1,h=!0,c=e.length-1,u=0;for(;c>=i;--c)if(r=e.charCodeAt(c),m(r)){if(!h){o=c+1;break}}else-1===a&&(h=!1,a=c+1),r===l?-1===s?s=c:1!==u&&(u=1):-1!==s&&(u=-1);return-1!==a&&(-1===s||0===u||1===u&&s===a-1&&s===o+1?t.base=t.name=e.slice(o,a):(t.name=e.slice(o,s),t.base=e.slice(o,a),t.ext=e.slice(s,a))),t.dir=o>0&&o!==i?e.slice(0,o-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},k=(()=>{if(f){const e=/\\/g;return()=>{const t=o().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>o()})(),y={resolve(...e){let t="",n=!1;for(let i=e.length-1;i>=-1&&!n;i--){const r=i>=0?e[i]:k();g(r,`paths[${i}]`),0!==r.length&&(t=`${r}/${t}`,n=r.charCodeAt(0)===h)}return t=b(t,!n,"/",p),n?`/${t}`:t.length>0?t:"."},normalize(e){if(g(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===h,n=e.charCodeAt(e.length-1)===h;return 0===(e=b(e,!t,"/",p)).length?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute:e=>(g(e,"path"),e.length>0&&e.charCodeAt(0)===h),join(...e){if(0===e.length)return".";let t;for(let n=0;n<e.length;++n){const i=e[n];g(i,"path"),i.length>0&&(void 0===t?t=i:t+=`/${i}`)}return void 0===t?".":y.normalize(t)},relative(e,t){if(g(e,"from"),g(t,"to"),e===t)return"";if((e=y.resolve(e))===(t=y.resolve(t)))return"";const n=e.length,i=n-1,r=t.length-1,s=i<r?i:r;let o=-1,a=0;for(;a<s;a++){const n=e.charCodeAt(1+a);if(n!==t.charCodeAt(1+a))break;n===h&&(o=a)}if(a===s)if(r>s){if(t.charCodeAt(1+a)===h)return t.slice(1+a+1);if(0===a)return t.slice(1+a)}else i>s&&(e.charCodeAt(1+a)===h?o=a:0===a&&(o=0));let l="";for(a=1+o+1;a<=n;++a)a!==n&&e.charCodeAt(a)!==h||(l+=0===l.length?"..":"/..");return`${l}${t.slice(1+o)}`},toNamespacedPath:e=>e,dirname(e){if(g(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===h;let n=-1,i=!0;for(let r=e.length-1;r>=1;--r)if(e.charCodeAt(r)===h){if(!i){n=r;break}}else i=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename(e,t){void 0!==t&&g(t,"ext"),g(e,"path");let n,i=0,r=-1,s=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(n=e.length-1;n>=0;--n){const l=e.charCodeAt(n);if(l===h){if(!s){i=n+1;break}}else-1===a&&(s=!1,a=n+1),o>=0&&(l===t.charCodeAt(o)?-1===--o&&(r=n):(o=-1,r=a))}return i===r?r=a:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===h){if(!s){i=n+1;break}}else-1===r&&(s=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname(e){g(e,"path");let t=-1,n=0,i=-1,r=!0,s=0;for(let o=e.length-1;o>=0;--o){const a=e.charCodeAt(o);if(a!==h)-1===i&&(r=!1,i=o+1),a===l?-1===t?t=o:1!==s&&(s=1):-1!==t&&(s=-1);else if(!r){n=o+1;break}}return-1===t||-1===i||0===s||1===s&&t===i-1&&t===n+1?"":e.slice(t,i)},format:v.bind(null,"/"),parse(e){g(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.charCodeAt(0)===h;let i;n?(t.root="/",i=1):i=0;let r=-1,s=0,o=-1,a=!0,c=e.length-1,d=0;for(;c>=i;--c){const t=e.charCodeAt(c);if(t!==h)-1===o&&(a=!1,o=c+1),t===l?-1===r?r=c:1!==d&&(d=1):-1!==r&&(d=-1);else if(!a){s=c+1;break}}if(-1!==o){const i=0===s&&n?1:s;-1===r||0===d||1===d&&r===o-1&&r===s+1?t.base=t.name=e.slice(i,o):(t.name=e.slice(i,r),t.base=e.slice(i,o),t.ext=e.slice(r,o))}return s>0?t.dir=e.slice(0,s-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};y.win32=w.win32=w,y.posix=w.posix=y;const T=f?w.normalize:y.normalize,C=f?w.join:y.join,S=f?w.resolve:y.resolve,L=f?w.relative:y.relative,x=f?w.dirname:y.dirname,E=f?w.basename:y.basename,A=f?w.extname:y.extname,I=f?w.sep:y.sep},8868:(e,t,n)=>{"use strict";n.r(t)},8925:(e,t,n)=>{"use strict";n.d(t,{w:()=>r});class i{static{this.Undefined=new i(void 0)}constructor(e){this.element=e,this.next=i.Undefined,this.prev=i.Undefined}}class r{constructor(){this._first=i.Undefined,this._last=i.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===i.Undefined}clear(){let e=this._first;for(;e!==i.Undefined;){const t=e.next;e.prev=i.Undefined,e.next=i.Undefined,e=t}this._first=i.Undefined,this._last=i.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new i(e);if(this._first===i.Undefined)this._first=n,this._last=n;else if(t){const e=this._last;this._last=n,n.prev=e,e.next=n}else{const 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!==i.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==i.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==i.Undefined&&e.next!==i.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===i.Undefined&&e.next===i.Undefined?(this._first=i.Undefined,this._last=i.Undefined):e.next===i.Undefined?(this._last=this._last.prev,this._last.next=i.Undefined):e.prev===i.Undefined&&(this._first=this._first.next,this._first.prev=i.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==i.Undefined;)yield e.element,e=e.next}}},8938:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITextModelService:()=>i});const i=(0,n(3591).u1)("textModelService")},9100:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITreeViewsDnDService:()=>o});var i=n(4621),r=n(3591),s=n(6723);const o=(0,r.u1)("treeViewsDndService");(0,i.v)(o,s.TreeViewsDnDService,1)},9204:(e,t,n)=>{var i={"./editorBaseApi":[4272],"./editorBaseApi.js":[4272],"./editorSimpleWorker":[5196],"./editorSimpleWorker.js":[5196],"./editorWorker":[920,792],"./editorWorker.js":[920,792],"./editorWorkerHost":[718],"./editorWorkerHost.js":[718],"./findSectionHeaders":[6691],"./findSectionHeaders.js":[6691],"./getIconClasses":[5628,792],"./getIconClasses.js":[5628,792],"./languageFeatureDebounce":[8709,792],"./languageFeatureDebounce.js":[8709,792],"./languageFeatures":[6942,792],"./languageFeatures.js":[6942,792],"./languageFeaturesService":[2661,792],"./languageFeaturesService.js":[2661,792],"./languageService":[7596,792],"./languageService.js":[7596,792],"./languagesAssociations":[9908,792],"./languagesAssociations.js":[9908,792],"./languagesRegistry":[9259,792],"./languagesRegistry.js":[9259,792],"./markerDecorations":[7550,792],"./markerDecorations.js":[7550,792],"./markerDecorationsService":[448,792],"./markerDecorationsService.js":[448,792],"./model":[3750,792],"./model.js":[3750,792],"./modelService":[1773,792],"./modelService.js":[1773,792],"./resolverService":[8938,792],"./resolverService.js":[8938,792],"./semanticTokensDto":[8232,792],"./semanticTokensDto.js":[8232,792],"./semanticTokensProviderStyling":[5538,792],"./semanticTokensProviderStyling.js":[5538,792],"./semanticTokensStyling":[4243,792],"./semanticTokensStyling.js":[4243,792],"./semanticTokensStylingService":[7004,792],"./semanticTokensStylingService.js":[7004,792],"./textModelSync/textModelSync.impl":[796],"./textModelSync/textModelSync.impl.js":[796],"./textModelSync/textModelSync.protocol":[8868,792],"./textModelSync/textModelSync.protocol.js":[8868,792],"./textResourceConfiguration":[360,792],"./textResourceConfiguration.js":[360,792],"./treeSitterParserService":[4432,792],"./treeSitterParserService.js":[4432,792],"./treeViewsDnd":[6723,792],"./treeViewsDnd.js":[6723,792],"./treeViewsDndService":[9100,792],"./treeViewsDndService.js":[9100,792],"./unicodeTextModelHighlighter":[4855],"./unicodeTextModelHighlighter.js":[4855],"monaco-editor/esm/vs/editor/common/services/editorBaseApi":[4272],"monaco-editor/esm/vs/editor/common/services/editorBaseApi.js":[4272],"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker":[5196],"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker.js":[5196],"monaco-editor/esm/vs/editor/common/services/editorWorker":[920,792],"monaco-editor/esm/vs/editor/common/services/editorWorker.js":[920,792],"monaco-editor/esm/vs/editor/common/services/editorWorkerHost":[718],"monaco-editor/esm/vs/editor/common/services/editorWorkerHost.js":[718],"monaco-editor/esm/vs/editor/common/services/findSectionHeaders":[6691],"monaco-editor/esm/vs/editor/common/services/findSectionHeaders.js":[6691],"monaco-editor/esm/vs/editor/common/services/getIconClasses":[5628,792],"monaco-editor/esm/vs/editor/common/services/getIconClasses.js":[5628,792],"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce":[8709,792],"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce.js":[8709,792],"monaco-editor/esm/vs/editor/common/services/languageFeatures":[6942,792],"monaco-editor/esm/vs/editor/common/services/languageFeatures.js":[6942,792],"monaco-editor/esm/vs/editor/common/services/languageFeaturesService":[2661,792],"monaco-editor/esm/vs/editor/common/services/languageFeaturesService.js":[2661,792],"monaco-editor/esm/vs/editor/common/services/languageService":[7596,792],"monaco-editor/esm/vs/editor/common/services/languageService.js":[7596,792],"monaco-editor/esm/vs/editor/common/services/languagesAssociations":[9908,792],"monaco-editor/esm/vs/editor/common/services/languagesAssociations.js":[9908,792],"monaco-editor/esm/vs/editor/common/services/languagesRegistry":[9259,792],"monaco-editor/esm/vs/editor/common/services/languagesRegistry.js":[9259,792],"monaco-editor/esm/vs/editor/common/services/markerDecorations":[7550,792],"monaco-editor/esm/vs/editor/common/services/markerDecorations.js":[7550,792],"monaco-editor/esm/vs/editor/common/services/markerDecorationsService":[448,792],"monaco-editor/esm/vs/editor/common/services/markerDecorationsService.js":[448,792],"monaco-editor/esm/vs/editor/common/services/model":[3750,792],"monaco-editor/esm/vs/editor/common/services/model.js":[3750,792],"monaco-editor/esm/vs/editor/common/services/modelService":[1773,792],"monaco-editor/esm/vs/editor/common/services/modelService.js":[1773,792],"monaco-editor/esm/vs/editor/common/services/resolverService":[8938,792],"monaco-editor/esm/vs/editor/common/services/resolverService.js":[8938,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensDto":[8232,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensDto.js":[8232,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling":[5538,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling.js":[5538,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling":[4243,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling.js":[4243,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService":[7004,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService.js":[7004,792],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl":[796],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl.js":[796],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol":[8868,792],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol.js":[8868,792],"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration":[360,792],"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration.js":[360,792],"monaco-editor/esm/vs/editor/common/services/treeSitterParserService":[4432,792],"monaco-editor/esm/vs/editor/common/services/treeSitterParserService.js":[4432,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDnd":[6723,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDnd.js":[6723,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDndService":[9100,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDndService.js":[9100,792],"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter":[4855],"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter.js":[4855]};function r(e){if(!n.o(i,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=i[e],r=t[0];return Promise.all(t.slice(1).map(n.e)).then((()=>n(r)))}r.keys=()=>Object.keys(i),r.id=9204,e.exports=r},9259:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LanguageIdCodec:()=>u,LanguagesRegistry:()=>g});var i=n(1234),r=n(1484),s=n(1508),o=n(9908),a=n(3941),l=n(1646),h=n(6359);const c=Object.prototype.hasOwnProperty,d="vs.editor.nullLanguage";class u{constructor(){this._languageIdToLanguage=[],this._languageToLanguageId=new Map,this._register(d,0),this._register(a.vH,1),this._nextLanguageId=2}_register(e,t){this._languageIdToLanguage[t]=e,this._languageToLanguageId.set(e,t)}register(e){if(this._languageToLanguageId.has(e))return;const t=this._nextLanguageId++;this._register(e,t)}encodeLanguageId(e){return this._languageToLanguageId.get(e)||0}decodeLanguageId(e){return this._languageIdToLanguage[e]||d}}class g extends r.jG{static{this.instanceCount=0}constructor(e=!0,t=!1){super(),this._onDidChange=this._register(new i.vl),this.onDidChange=this._onDidChange.event,g.instanceCount++,this._warnOnOverwrite=t,this.languageIdCodec=new u,this._dynamicLanguages=[],this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},e&&(this._initializeFromRegistry(),this._register(a.W6.onDidChangeLanguages((e=>{this._initializeFromRegistry()}))))}dispose(){g.instanceCount--,super.dispose()}_initializeFromRegistry(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},(0,o.clearPlatformLanguageAssociations)();const e=[].concat(a.W6.getLanguages()).concat(this._dynamicLanguages);this._registerLanguages(e)}_registerLanguages(e){for(const t of e)this._registerLanguage(t);this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach((e=>{const t=this._languages[e];t.name&&(this._nameMap[t.name]=t.identifier),t.aliases.forEach((e=>{this._lowercaseNameMap[e.toLowerCase()]=t.identifier})),t.mimetypes.forEach((e=>{this._mimeTypesMap[e]=t.identifier}))})),h.O.as(l.Fd.Configuration).registerOverrideIdentifiers(this.getRegisteredLanguageIds()),this._onDidChange.fire()}_registerLanguage(e){const t=e.id;let n;c.call(this._languages,t)?n=this._languages[t]:(this.languageIdCodec.register(t),n={identifier:t,name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[],icons:[]},this._languages[t]=n),this._mergeLanguage(n,e)}_mergeLanguage(e,t){const n=t.id;let i=null;if(Array.isArray(t.mimetypes)&&t.mimetypes.length>0&&(e.mimetypes.push(...t.mimetypes),i=t.mimetypes[0]),i||(i=`text/x-${n}`,e.mimetypes.push(i)),Array.isArray(t.extensions)){t.configuration?e.extensions=t.extensions.concat(e.extensions):e.extensions=e.extensions.concat(t.extensions);for(const e of t.extensions)(0,o.registerPlatformLanguageAssociation)({id:n,mime:i,extension:e},this._warnOnOverwrite)}if(Array.isArray(t.filenames))for(const s of t.filenames)(0,o.registerPlatformLanguageAssociation)({id:n,mime:i,filename:s},this._warnOnOverwrite),e.filenames.push(s);if(Array.isArray(t.filenamePatterns))for(const s of t.filenamePatterns)(0,o.registerPlatformLanguageAssociation)({id:n,mime:i,filepattern:s},this._warnOnOverwrite);if("string"===typeof t.firstLine&&t.firstLine.length>0){let e=t.firstLine;"^"!==e.charAt(0)&&(e="^"+e);try{const t=new RegExp(e);(0,s.eY)(t)||(0,o.registerPlatformLanguageAssociation)({id:n,mime:i,firstline:t},this._warnOnOverwrite)}catch(l){console.warn(`[${t.id}]: Invalid regular expression \`${e}\`: `,l)}}e.aliases.push(n);let r=null;if("undefined"!==typeof t.aliases&&Array.isArray(t.aliases)&&(r=0===t.aliases.length?[null]:t.aliases),null!==r)for(const s of r)s&&0!==s.length&&e.aliases.push(s);const a=null!==r&&r.length>0;if(a&&null===r[0]);else{const t=(a?r[0]:null)||n;!a&&e.name||(e.name=t)}t.configuration&&e.configurationFiles.push(t.configuration),t.icon&&e.icons.push(t.icon)}isRegisteredLanguageId(e){return!!e&&c.call(this._languages,e)}getRegisteredLanguageIds(){return Object.keys(this._languages)}getLanguageIdByLanguageName(e){const t=e.toLowerCase();return c.call(this._lowercaseNameMap,t)?this._lowercaseNameMap[t]:null}getLanguageIdByMimeType(e){return e&&c.call(this._mimeTypesMap,e)?this._mimeTypesMap[e]:null}guessLanguageIdByFilepathOrFirstLine(e,t){return e||t?(0,o.getLanguageIds)(e,t):[]}}},9326:(e,t,n)=>{"use strict";n.d(t,{TH:()=>o,Zn:()=>l,_1:()=>h,kb:()=>a});var i=n(8821),r=(n(8067),n(1508));function s(e){return 47===e||92===e}function o(e){return e.replace(/[\\/]/g,i.SA.sep)}function a(e){return-1===e.indexOf("/")&&(e=o(e)),/^[a-zA-Z]:(\/|$)/.test(e)&&(e="/"+e),e}function l(e,t=i.SA.sep){if(!e)return"";const n=e.length,r=e.charCodeAt(0);if(s(r)){if(s(e.charCodeAt(1))&&!s(e.charCodeAt(2))){let i=3;const r=i;for(;i<n&&!s(e.charCodeAt(i));i++);if(r!==i&&!s(e.charCodeAt(i+1)))for(i+=1;i<n;i++)if(s(e.charCodeAt(i)))return e.slice(0,i+1).replace(/[\\/]/g,t)}return t}if(c(r)&&58===e.charCodeAt(1))return s(e.charCodeAt(2))?e.slice(0,2)+t:e.slice(0,2);let o=e.indexOf("://");if(-1!==o)for(o+=3;o<n;o++)if(s(e.charCodeAt(o)))return e.slice(0,o+1);return""}function h(e,t,n,s=i.Vn){if(e===t)return!0;if(!e||!t)return!1;if(t.length>e.length)return!1;if(n){if(!(0,r.ns)(e,t))return!1;if(t.length===e.length)return!0;let n=t.length;return t.charAt(t.length-1)===s&&n--,e.charAt(n)===s}return t.charAt(t.length-1)!==s&&(t+=s),0===e.indexOf(t)}function c(e){return e>=65&&e<=90||e>=97&&e<=122}},9400:(e,t,n)=>{"use strict";n.d(t,{I:()=>_,r:()=>d});var i=n(8821),r=n(8067);const s=/^\w[\w\d+.-]*$/,o=/^\//,a=/^\/\//;const l="",h="/",c=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class d{static isUri(e){return e instanceof d||!!e&&("string"===typeof e.authority&&"string"===typeof e.fragment&&"string"===typeof e.path&&"string"===typeof e.query&&"string"===typeof e.scheme&&"string"===typeof e.fsPath&&"function"===typeof e.with&&"function"===typeof e.toString)}constructor(e,t,n,i,r,c=!1){"object"===typeof e?(this.scheme=e.scheme||l,this.authority=e.authority||l,this.path=e.path||l,this.query=e.query||l,this.fragment=e.fragment||l):(this.scheme=function(e,t){return e||t?e:"file"}(e,c),this.authority=t||l,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==h&&(t=h+t):t=h}return t}(this.scheme,n||l),this.query=i||l,this.fragment=r||l,function(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!s.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!o.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(a.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,c))}get fsPath(){return _(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:i,query:r,fragment:s}=e;return void 0===t?t=this.scheme:null===t&&(t=l),void 0===n?n=this.authority:null===n&&(n=l),void 0===i?i=this.path:null===i&&(i=l),void 0===r?r=this.query:null===r&&(r=l),void 0===s?s=this.fragment:null===s&&(s=l),t===this.scheme&&n===this.authority&&i===this.path&&r===this.query&&s===this.fragment?this:new g(t,n,i,r,s)}static parse(e,t=!1){const n=c.exec(e);return n?new g(n[2]||l,k(n[4]||l),k(n[5]||l),k(n[7]||l),k(n[9]||l),t):new g(l,l,l,l,l)}static file(e){let t=l;if(r.uF&&(e=e.replace(/\\/g,h)),e[0]===h&&e[1]===h){const n=e.indexOf(h,2);-1===n?(t=e.substring(2),e=h):(t=e.substring(2,n),e=e.substring(n)||h)}return new g("file",t,e,l,l)}static from(e,t){return new g(e.scheme,e.authority,e.path,e.query,e.fragment,t)}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let n;return n=r.uF&&"file"===e.scheme?d.file(i.IN.join(_(e,!0),...t)).path:i.SA.join(e.path,...t),e.with({path:n})}toString(e=!1){return b(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof d)return e;{const t=new g(e);return t._formatted=e.external??null,t._fsPath=e._sep===u?e.fsPath??null:null,t}}return e}}const u=r.uF?1:void 0;class g extends d{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=_(this,!1)),this._fsPath}toString(e=!1){return e?b(this,!0):(this._formatted||(this._formatted=b(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=u),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}}const f={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 m(e,t,n){let i,r=-1;for(let s=0;s<e.length;s++){const o=e.charCodeAt(s);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o||n&&91===o||n&&93===o||n&&58===o)-1!==r&&(i+=encodeURIComponent(e.substring(r,s)),r=-1),void 0!==i&&(i+=e.charAt(s));else{void 0===i&&(i=e.substr(0,s));const t=f[o];void 0!==t?(-1!==r&&(i+=encodeURIComponent(e.substring(r,s)),r=-1),i+=t):-1===r&&(r=s)}}return-1!==r&&(i+=encodeURIComponent(e.substring(r))),void 0!==i?i:e}function p(e){let t;for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);35===i||63===i?(void 0===t&&(t=e.substr(0,n)),t+=f[i]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function _(e,t){let n;return n=e.authority&&e.path.length>1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,r.uF&&(n=n.replace(/\//g,"\\")),n}function b(e,t){const n=t?p:m;let i="",{scheme:r,authority:s,path:o,query:a,fragment:l}=e;if(r&&(i+=r,i+=":"),(s||"file"===r)&&(i+=h,i+=h),s){let e=s.indexOf("@");if(-1!==e){const t=s.substr(0,e);s=s.substr(e+1),e=t.lastIndexOf(":"),-1===e?i+=n(t,!1,!1):(i+=n(t.substr(0,e),!1,!1),i+=":",i+=n(t.substr(e+1),!1,!0)),i+="@"}s=s.toLowerCase(),e=s.lastIndexOf(":"),-1===e?i+=n(s,!1,!0):(i+=n(s.substr(0,e),!1,!0),i+=s.substr(e))}if(o){if(o.length>=3&&47===o.charCodeAt(0)&&58===o.charCodeAt(2)){const e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&58===o.charCodeAt(1)){const e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}i+=n(o,!0,!1)}return a&&(i+="?",i+=n(a,!1,!1)),l&&(i+="#",i+=t?l:m(l,!1,!1)),i}function v(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+v(e.substr(3)):e}}const w=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function k(e){return e.match(w)?e.replace(w,(e=>v(e))):e}},9403:(e,t,n)=>{"use strict";n.d(t,{B6:()=>m,P8:()=>u});var i=n(9326),r=n(6456),s=n(8821),o=n(8067),a=n(1508),l=n(9400);function h(e){return(0,l.I)(e,!0)}class c{constructor(e){this._ignorePathCasing=e}compare(e,t,n=!1){return e===t?0:(0,a.UD)(this.getComparisonKey(e,n),this.getComparisonKey(t,n))}isEqual(e,t,n=!1){return e===t||!(!e||!t)&&this.getComparisonKey(e,n)===this.getComparisonKey(t,n)}getComparisonKey(e,t=!1){return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:t?null:void 0}).toString()}isEqualOrParent(e,t,n=!1){if(e.scheme===t.scheme){if(e.scheme===r.ny.file)return i._1(h(e),h(t),this._ignorePathCasing(e))&&e.query===t.query&&(n||e.fragment===t.fragment);if(g(e.authority,t.authority))return i._1(e.path,t.path,this._ignorePathCasing(e),"/")&&e.query===t.query&&(n||e.fragment===t.fragment)}return!1}joinPath(e,...t){return l.r.joinPath(e,...t)}basenameOrAuthority(e){return u(e)||e.authority}basename(e){return s.SA.basename(e.path)}extname(e){return s.SA.extname(e.path)}dirname(e){if(0===e.path.length)return e;let t;return e.scheme===r.ny.file?t=l.r.file(s.pD(h(e))).path:(t=s.SA.dirname(e.path),e.authority&&t.length&&47!==t.charCodeAt(0)&&(console.error(`dirname("${e.toString})) resulted in a relative path`),t="/")),e.with({path:t})}normalizePath(e){if(!e.path.length)return e;let t;return t=e.scheme===r.ny.file?l.r.file(s.S8(h(e))).path:s.SA.normalize(e.path),e.with({path:t})}relativePath(e,t){if(e.scheme!==t.scheme||!g(e.authority,t.authority))return;if(e.scheme===r.ny.file){const n=s.V8(h(e),h(t));return o.uF?i.TH(n):n}let n=e.path||"/";const a=t.path||"/";if(this._ignorePathCasing(e)){let e=0;for(const t=Math.min(n.length,a.length);e<t&&(n.charCodeAt(e)===a.charCodeAt(e)||n.charAt(e).toLowerCase()===a.charAt(e).toLowerCase());e++);n=a.substr(0,e)+n.substr(e)}return s.SA.relative(n,a)}resolvePath(e,t){if(e.scheme===r.ny.file){const n=l.r.file(s.hd(h(e),t));return e.with({authority:n.authority,path:n.path})}return t=i.kb(t),e.with({path:s.SA.resolve(e.path,t)})}isAbsolutePath(e){return!!e.path&&"/"===e.path[0]}isEqualAuthority(e,t){return e===t||void 0!==e&&void 0!==t&&(0,a.Q_)(e,t)}hasTrailingPathSeparator(e,t=s.Vn){if(e.scheme===r.ny.file){const n=h(e);return n.length>i.Zn(n).length&&n[n.length-1]===t}{const t=e.path;return t.length>1&&47===t.charCodeAt(t.length-1)&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}}removeTrailingPathSeparator(e,t=s.Vn){return f(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e,t=s.Vn){let n=!1;if(e.scheme===r.ny.file){const r=h(e);n=void 0!==r&&r.length===i.Zn(r).length&&r[r.length-1]===t}else{t="/";const i=e.path;n=1===i.length&&47===i.charCodeAt(i.length-1)}return n||f(e,t)?e:e.with({path:e.path+"/"})}}const d=new c((()=>!1)),u=(new c((e=>e.scheme!==r.ny.file||!o.j9)),new c((e=>!0)),d.isEqual.bind(d),d.isEqualOrParent.bind(d),d.getComparisonKey.bind(d),d.basenameOrAuthority.bind(d),d.basename.bind(d)),g=(d.extname.bind(d),d.dirname.bind(d),d.joinPath.bind(d),d.normalizePath.bind(d),d.relativePath.bind(d),d.resolvePath.bind(d),d.isAbsolutePath.bind(d),d.isEqualAuthority.bind(d)),f=d.hasTrailingPathSeparator.bind(d);d.removeTrailingPathSeparator.bind(d),d.addTrailingPathSeparator.bind(d);var m;!function(e){e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=function(t){const n=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach((e=>{const[t,i]=e.split(":");t&&i&&n.set(t,i)}));const i=t.path.substring(0,t.path.indexOf(";"));return i&&n.set(e.META_DATA_MIME,i),n}}(m||(m={}))},9493:(e,t,n)=>{"use strict";n.d(t,{W:()=>o});var i=n(631);const r=Object.create(null);function s(e,t){if((0,i.Kg)(t)){const n=r[t];if(void 0===n)throw new Error(`${e} references an unknown codicon: ${t}`);t=n}return r[e]=t,{id:e}}const o={...{add:s("add",6e4),plus:s("plus",6e4),gistNew:s("gist-new",6e4),repoCreate:s("repo-create",6e4),lightbulb:s("lightbulb",60001),lightBulb:s("light-bulb",60001),repo:s("repo",60002),repoDelete:s("repo-delete",60002),gistFork:s("gist-fork",60003),repoForked:s("repo-forked",60003),gitPullRequest:s("git-pull-request",60004),gitPullRequestAbandoned:s("git-pull-request-abandoned",60004),recordKeys:s("record-keys",60005),keyboard:s("keyboard",60005),tag:s("tag",60006),gitPullRequestLabel:s("git-pull-request-label",60006),tagAdd:s("tag-add",60006),tagRemove:s("tag-remove",60006),person:s("person",60007),personFollow:s("person-follow",60007),personOutline:s("person-outline",60007),personFilled:s("person-filled",60007),gitBranch:s("git-branch",60008),gitBranchCreate:s("git-branch-create",60008),gitBranchDelete:s("git-branch-delete",60008),sourceControl:s("source-control",60008),mirror:s("mirror",60009),mirrorPublic:s("mirror-public",60009),star:s("star",60010),starAdd:s("star-add",60010),starDelete:s("star-delete",60010),starEmpty:s("star-empty",60010),comment:s("comment",60011),commentAdd:s("comment-add",60011),alert:s("alert",60012),warning:s("warning",60012),search:s("search",60013),searchSave:s("search-save",60013),logOut:s("log-out",60014),signOut:s("sign-out",60014),logIn:s("log-in",60015),signIn:s("sign-in",60015),eye:s("eye",60016),eyeUnwatch:s("eye-unwatch",60016),eyeWatch:s("eye-watch",60016),circleFilled:s("circle-filled",60017),primitiveDot:s("primitive-dot",60017),closeDirty:s("close-dirty",60017),debugBreakpoint:s("debug-breakpoint",60017),debugBreakpointDisabled:s("debug-breakpoint-disabled",60017),debugHint:s("debug-hint",60017),terminalDecorationSuccess:s("terminal-decoration-success",60017),primitiveSquare:s("primitive-square",60018),edit:s("edit",60019),pencil:s("pencil",60019),info:s("info",60020),issueOpened:s("issue-opened",60020),gistPrivate:s("gist-private",60021),gitForkPrivate:s("git-fork-private",60021),lock:s("lock",60021),mirrorPrivate:s("mirror-private",60021),close:s("close",60022),removeClose:s("remove-close",60022),x:s("x",60022),repoSync:s("repo-sync",60023),sync:s("sync",60023),clone:s("clone",60024),desktopDownload:s("desktop-download",60024),beaker:s("beaker",60025),microscope:s("microscope",60025),vm:s("vm",60026),deviceDesktop:s("device-desktop",60026),file:s("file",60027),fileText:s("file-text",60027),more:s("more",60028),ellipsis:s("ellipsis",60028),kebabHorizontal:s("kebab-horizontal",60028),mailReply:s("mail-reply",60029),reply:s("reply",60029),organization:s("organization",60030),organizationFilled:s("organization-filled",60030),organizationOutline:s("organization-outline",60030),newFile:s("new-file",60031),fileAdd:s("file-add",60031),newFolder:s("new-folder",60032),fileDirectoryCreate:s("file-directory-create",60032),trash:s("trash",60033),trashcan:s("trashcan",60033),history:s("history",60034),clock:s("clock",60034),folder:s("folder",60035),fileDirectory:s("file-directory",60035),symbolFolder:s("symbol-folder",60035),logoGithub:s("logo-github",60036),markGithub:s("mark-github",60036),github:s("github",60036),terminal:s("terminal",60037),console:s("console",60037),repl:s("repl",60037),zap:s("zap",60038),symbolEvent:s("symbol-event",60038),error:s("error",60039),stop:s("stop",60039),variable:s("variable",60040),symbolVariable:s("symbol-variable",60040),array:s("array",60042),symbolArray:s("symbol-array",60042),symbolModule:s("symbol-module",60043),symbolPackage:s("symbol-package",60043),symbolNamespace:s("symbol-namespace",60043),symbolObject:s("symbol-object",60043),symbolMethod:s("symbol-method",60044),symbolFunction:s("symbol-function",60044),symbolConstructor:s("symbol-constructor",60044),symbolBoolean:s("symbol-boolean",60047),symbolNull:s("symbol-null",60047),symbolNumeric:s("symbol-numeric",60048),symbolNumber:s("symbol-number",60048),symbolStructure:s("symbol-structure",60049),symbolStruct:s("symbol-struct",60049),symbolParameter:s("symbol-parameter",60050),symbolTypeParameter:s("symbol-type-parameter",60050),symbolKey:s("symbol-key",60051),symbolText:s("symbol-text",60051),symbolReference:s("symbol-reference",60052),goToFile:s("go-to-file",60052),symbolEnum:s("symbol-enum",60053),symbolValue:s("symbol-value",60053),symbolRuler:s("symbol-ruler",60054),symbolUnit:s("symbol-unit",60054),activateBreakpoints:s("activate-breakpoints",60055),archive:s("archive",60056),arrowBoth:s("arrow-both",60057),arrowDown:s("arrow-down",60058),arrowLeft:s("arrow-left",60059),arrowRight:s("arrow-right",60060),arrowSmallDown:s("arrow-small-down",60061),arrowSmallLeft:s("arrow-small-left",60062),arrowSmallRight:s("arrow-small-right",60063),arrowSmallUp:s("arrow-small-up",60064),arrowUp:s("arrow-up",60065),bell:s("bell",60066),bold:s("bold",60067),book:s("book",60068),bookmark:s("bookmark",60069),debugBreakpointConditionalUnverified:s("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:s("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:s("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:s("debug-breakpoint-data-unverified",60072),debugBreakpointData:s("debug-breakpoint-data",60073),debugBreakpointDataDisabled:s("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:s("debug-breakpoint-log-unverified",60074),debugBreakpointLog:s("debug-breakpoint-log",60075),debugBreakpointLogDisabled:s("debug-breakpoint-log-disabled",60075),briefcase:s("briefcase",60076),broadcast:s("broadcast",60077),browser:s("browser",60078),bug:s("bug",60079),calendar:s("calendar",60080),caseSensitive:s("case-sensitive",60081),check:s("check",60082),checklist:s("checklist",60083),chevronDown:s("chevron-down",60084),chevronLeft:s("chevron-left",60085),chevronRight:s("chevron-right",60086),chevronUp:s("chevron-up",60087),chromeClose:s("chrome-close",60088),chromeMaximize:s("chrome-maximize",60089),chromeMinimize:s("chrome-minimize",60090),chromeRestore:s("chrome-restore",60091),circleOutline:s("circle-outline",60092),circle:s("circle",60092),debugBreakpointUnverified:s("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:s("terminal-decoration-incomplete",60092),circleSlash:s("circle-slash",60093),circuitBoard:s("circuit-board",60094),clearAll:s("clear-all",60095),clippy:s("clippy",60096),closeAll:s("close-all",60097),cloudDownload:s("cloud-download",60098),cloudUpload:s("cloud-upload",60099),code:s("code",60100),collapseAll:s("collapse-all",60101),colorMode:s("color-mode",60102),commentDiscussion:s("comment-discussion",60103),creditCard:s("credit-card",60105),dash:s("dash",60108),dashboard:s("dashboard",60109),database:s("database",60110),debugContinue:s("debug-continue",60111),debugDisconnect:s("debug-disconnect",60112),debugPause:s("debug-pause",60113),debugRestart:s("debug-restart",60114),debugStart:s("debug-start",60115),debugStepInto:s("debug-step-into",60116),debugStepOut:s("debug-step-out",60117),debugStepOver:s("debug-step-over",60118),debugStop:s("debug-stop",60119),debug:s("debug",60120),deviceCameraVideo:s("device-camera-video",60121),deviceCamera:s("device-camera",60122),deviceMobile:s("device-mobile",60123),diffAdded:s("diff-added",60124),diffIgnored:s("diff-ignored",60125),diffModified:s("diff-modified",60126),diffRemoved:s("diff-removed",60127),diffRenamed:s("diff-renamed",60128),diff:s("diff",60129),diffSidebyside:s("diff-sidebyside",60129),discard:s("discard",60130),editorLayout:s("editor-layout",60131),emptyWindow:s("empty-window",60132),exclude:s("exclude",60133),extensions:s("extensions",60134),eyeClosed:s("eye-closed",60135),fileBinary:s("file-binary",60136),fileCode:s("file-code",60137),fileMedia:s("file-media",60138),filePdf:s("file-pdf",60139),fileSubmodule:s("file-submodule",60140),fileSymlinkDirectory:s("file-symlink-directory",60141),fileSymlinkFile:s("file-symlink-file",60142),fileZip:s("file-zip",60143),files:s("files",60144),filter:s("filter",60145),flame:s("flame",60146),foldDown:s("fold-down",60147),foldUp:s("fold-up",60148),fold:s("fold",60149),folderActive:s("folder-active",60150),folderOpened:s("folder-opened",60151),gear:s("gear",60152),gift:s("gift",60153),gistSecret:s("gist-secret",60154),gist:s("gist",60155),gitCommit:s("git-commit",60156),gitCompare:s("git-compare",60157),compareChanges:s("compare-changes",60157),gitMerge:s("git-merge",60158),githubAction:s("github-action",60159),githubAlt:s("github-alt",60160),globe:s("globe",60161),grabber:s("grabber",60162),graph:s("graph",60163),gripper:s("gripper",60164),heart:s("heart",60165),home:s("home",60166),horizontalRule:s("horizontal-rule",60167),hubot:s("hubot",60168),inbox:s("inbox",60169),issueReopened:s("issue-reopened",60171),issues:s("issues",60172),italic:s("italic",60173),jersey:s("jersey",60174),json:s("json",60175),kebabVertical:s("kebab-vertical",60176),key:s("key",60177),law:s("law",60178),lightbulbAutofix:s("lightbulb-autofix",60179),linkExternal:s("link-external",60180),link:s("link",60181),listOrdered:s("list-ordered",60182),listUnordered:s("list-unordered",60183),liveShare:s("live-share",60184),loading:s("loading",60185),location:s("location",60186),mailRead:s("mail-read",60187),mail:s("mail",60188),markdown:s("markdown",60189),megaphone:s("megaphone",60190),mention:s("mention",60191),milestone:s("milestone",60192),gitPullRequestMilestone:s("git-pull-request-milestone",60192),mortarBoard:s("mortar-board",60193),move:s("move",60194),multipleWindows:s("multiple-windows",60195),mute:s("mute",60196),noNewline:s("no-newline",60197),note:s("note",60198),octoface:s("octoface",60199),openPreview:s("open-preview",60200),package:s("package",60201),paintcan:s("paintcan",60202),pin:s("pin",60203),play:s("play",60204),run:s("run",60204),plug:s("plug",60205),preserveCase:s("preserve-case",60206),preview:s("preview",60207),project:s("project",60208),pulse:s("pulse",60209),question:s("question",60210),quote:s("quote",60211),radioTower:s("radio-tower",60212),reactions:s("reactions",60213),references:s("references",60214),refresh:s("refresh",60215),regex:s("regex",60216),remoteExplorer:s("remote-explorer",60217),remote:s("remote",60218),remove:s("remove",60219),replaceAll:s("replace-all",60220),replace:s("replace",60221),repoClone:s("repo-clone",60222),repoForcePush:s("repo-force-push",60223),repoPull:s("repo-pull",60224),repoPush:s("repo-push",60225),report:s("report",60226),requestChanges:s("request-changes",60227),rocket:s("rocket",60228),rootFolderOpened:s("root-folder-opened",60229),rootFolder:s("root-folder",60230),rss:s("rss",60231),ruby:s("ruby",60232),saveAll:s("save-all",60233),saveAs:s("save-as",60234),save:s("save",60235),screenFull:s("screen-full",60236),screenNormal:s("screen-normal",60237),searchStop:s("search-stop",60238),server:s("server",60240),settingsGear:s("settings-gear",60241),settings:s("settings",60242),shield:s("shield",60243),smiley:s("smiley",60244),sortPrecedence:s("sort-precedence",60245),splitHorizontal:s("split-horizontal",60246),splitVertical:s("split-vertical",60247),squirrel:s("squirrel",60248),starFull:s("star-full",60249),starHalf:s("star-half",60250),symbolClass:s("symbol-class",60251),symbolColor:s("symbol-color",60252),symbolConstant:s("symbol-constant",60253),symbolEnumMember:s("symbol-enum-member",60254),symbolField:s("symbol-field",60255),symbolFile:s("symbol-file",60256),symbolInterface:s("symbol-interface",60257),symbolKeyword:s("symbol-keyword",60258),symbolMisc:s("symbol-misc",60259),symbolOperator:s("symbol-operator",60260),symbolProperty:s("symbol-property",60261),wrench:s("wrench",60261),wrenchSubaction:s("wrench-subaction",60261),symbolSnippet:s("symbol-snippet",60262),tasklist:s("tasklist",60263),telescope:s("telescope",60264),textSize:s("text-size",60265),threeBars:s("three-bars",60266),thumbsdown:s("thumbsdown",60267),thumbsup:s("thumbsup",60268),tools:s("tools",60269),triangleDown:s("triangle-down",60270),triangleLeft:s("triangle-left",60271),triangleRight:s("triangle-right",60272),triangleUp:s("triangle-up",60273),twitter:s("twitter",60274),unfold:s("unfold",60275),unlock:s("unlock",60276),unmute:s("unmute",60277),unverified:s("unverified",60278),verified:s("verified",60279),versions:s("versions",60280),vmActive:s("vm-active",60281),vmOutline:s("vm-outline",60282),vmRunning:s("vm-running",60283),watch:s("watch",60284),whitespace:s("whitespace",60285),wholeWord:s("whole-word",60286),window:s("window",60287),wordWrap:s("word-wrap",60288),zoomIn:s("zoom-in",60289),zoomOut:s("zoom-out",60290),listFilter:s("list-filter",60291),listFlat:s("list-flat",60292),listSelection:s("list-selection",60293),selection:s("selection",60293),listTree:s("list-tree",60294),debugBreakpointFunctionUnverified:s("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:s("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:s("debug-breakpoint-function-disabled",60296),debugStackframeActive:s("debug-stackframe-active",60297),circleSmallFilled:s("circle-small-filled",60298),debugStackframeDot:s("debug-stackframe-dot",60298),terminalDecorationMark:s("terminal-decoration-mark",60298),debugStackframe:s("debug-stackframe",60299),debugStackframeFocused:s("debug-stackframe-focused",60299),debugBreakpointUnsupported:s("debug-breakpoint-unsupported",60300),symbolString:s("symbol-string",60301),debugReverseContinue:s("debug-reverse-continue",60302),debugStepBack:s("debug-step-back",60303),debugRestartFrame:s("debug-restart-frame",60304),debugAlt:s("debug-alt",60305),callIncoming:s("call-incoming",60306),callOutgoing:s("call-outgoing",60307),menu:s("menu",60308),expandAll:s("expand-all",60309),feedback:s("feedback",60310),gitPullRequestReviewer:s("git-pull-request-reviewer",60310),groupByRefType:s("group-by-ref-type",60311),ungroupByRefType:s("ungroup-by-ref-type",60312),account:s("account",60313),gitPullRequestAssignee:s("git-pull-request-assignee",60313),bellDot:s("bell-dot",60314),debugConsole:s("debug-console",60315),library:s("library",60316),output:s("output",60317),runAll:s("run-all",60318),syncIgnored:s("sync-ignored",60319),pinned:s("pinned",60320),githubInverted:s("github-inverted",60321),serverProcess:s("server-process",60322),serverEnvironment:s("server-environment",60323),pass:s("pass",60324),issueClosed:s("issue-closed",60324),stopCircle:s("stop-circle",60325),playCircle:s("play-circle",60326),record:s("record",60327),debugAltSmall:s("debug-alt-small",60328),vmConnect:s("vm-connect",60329),cloud:s("cloud",60330),merge:s("merge",60331),export:s("export",60332),graphLeft:s("graph-left",60333),magnet:s("magnet",60334),notebook:s("notebook",60335),redo:s("redo",60336),checkAll:s("check-all",60337),pinnedDirty:s("pinned-dirty",60338),passFilled:s("pass-filled",60339),circleLargeFilled:s("circle-large-filled",60340),circleLarge:s("circle-large",60341),circleLargeOutline:s("circle-large-outline",60341),combine:s("combine",60342),gather:s("gather",60342),table:s("table",60343),variableGroup:s("variable-group",60344),typeHierarchy:s("type-hierarchy",60345),typeHierarchySub:s("type-hierarchy-sub",60346),typeHierarchySuper:s("type-hierarchy-super",60347),gitPullRequestCreate:s("git-pull-request-create",60348),runAbove:s("run-above",60349),runBelow:s("run-below",60350),notebookTemplate:s("notebook-template",60351),debugRerun:s("debug-rerun",60352),workspaceTrusted:s("workspace-trusted",60353),workspaceUntrusted:s("workspace-untrusted",60354),workspaceUnknown:s("workspace-unknown",60355),terminalCmd:s("terminal-cmd",60356),terminalDebian:s("terminal-debian",60357),terminalLinux:s("terminal-linux",60358),terminalPowershell:s("terminal-powershell",60359),terminalTmux:s("terminal-tmux",60360),terminalUbuntu:s("terminal-ubuntu",60361),terminalBash:s("terminal-bash",60362),arrowSwap:s("arrow-swap",60363),copy:s("copy",60364),personAdd:s("person-add",60365),filterFilled:s("filter-filled",60366),wand:s("wand",60367),debugLineByLine:s("debug-line-by-line",60368),inspect:s("inspect",60369),layers:s("layers",60370),layersDot:s("layers-dot",60371),layersActive:s("layers-active",60372),compass:s("compass",60373),compassDot:s("compass-dot",60374),compassActive:s("compass-active",60375),azure:s("azure",60376),issueDraft:s("issue-draft",60377),gitPullRequestClosed:s("git-pull-request-closed",60378),gitPullRequestDraft:s("git-pull-request-draft",60379),debugAll:s("debug-all",60380),debugCoverage:s("debug-coverage",60381),runErrors:s("run-errors",60382),folderLibrary:s("folder-library",60383),debugContinueSmall:s("debug-continue-small",60384),beakerStop:s("beaker-stop",60385),graphLine:s("graph-line",60386),graphScatter:s("graph-scatter",60387),pieChart:s("pie-chart",60388),bracket:s("bracket",60175),bracketDot:s("bracket-dot",60389),bracketError:s("bracket-error",60390),lockSmall:s("lock-small",60391),azureDevops:s("azure-devops",60392),verifiedFilled:s("verified-filled",60393),newline:s("newline",60394),layout:s("layout",60395),layoutActivitybarLeft:s("layout-activitybar-left",60396),layoutActivitybarRight:s("layout-activitybar-right",60397),layoutPanelLeft:s("layout-panel-left",60398),layoutPanelCenter:s("layout-panel-center",60399),layoutPanelJustify:s("layout-panel-justify",60400),layoutPanelRight:s("layout-panel-right",60401),layoutPanel:s("layout-panel",60402),layoutSidebarLeft:s("layout-sidebar-left",60403),layoutSidebarRight:s("layout-sidebar-right",60404),layoutStatusbar:s("layout-statusbar",60405),layoutMenubar:s("layout-menubar",60406),layoutCentered:s("layout-centered",60407),target:s("target",60408),indent:s("indent",60409),recordSmall:s("record-small",60410),errorSmall:s("error-small",60411),terminalDecorationError:s("terminal-decoration-error",60411),arrowCircleDown:s("arrow-circle-down",60412),arrowCircleLeft:s("arrow-circle-left",60413),arrowCircleRight:s("arrow-circle-right",60414),arrowCircleUp:s("arrow-circle-up",60415),layoutSidebarRightOff:s("layout-sidebar-right-off",60416),layoutPanelOff:s("layout-panel-off",60417),layoutSidebarLeftOff:s("layout-sidebar-left-off",60418),blank:s("blank",60419),heartFilled:s("heart-filled",60420),map:s("map",60421),mapHorizontal:s("map-horizontal",60421),foldHorizontal:s("fold-horizontal",60421),mapFilled:s("map-filled",60422),mapHorizontalFilled:s("map-horizontal-filled",60422),foldHorizontalFilled:s("fold-horizontal-filled",60422),circleSmall:s("circle-small",60423),bellSlash:s("bell-slash",60424),bellSlashDot:s("bell-slash-dot",60425),commentUnresolved:s("comment-unresolved",60426),gitPullRequestGoToChanges:s("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:s("git-pull-request-new-changes",60428),searchFuzzy:s("search-fuzzy",60429),commentDraft:s("comment-draft",60430),send:s("send",60431),sparkle:s("sparkle",60432),insert:s("insert",60433),mic:s("mic",60434),thumbsdownFilled:s("thumbsdown-filled",60435),thumbsupFilled:s("thumbsup-filled",60436),coffee:s("coffee",60437),snake:s("snake",60438),game:s("game",60439),vr:s("vr",60440),chip:s("chip",60441),piano:s("piano",60442),music:s("music",60443),micFilled:s("mic-filled",60444),repoFetch:s("repo-fetch",60445),copilot:s("copilot",60446),lightbulbSparkle:s("lightbulb-sparkle",60447),robot:s("robot",60448),sparkleFilled:s("sparkle-filled",60449),diffSingle:s("diff-single",60450),diffMultiple:s("diff-multiple",60451),surroundWith:s("surround-with",60452),share:s("share",60453),gitStash:s("git-stash",60454),gitStashApply:s("git-stash-apply",60455),gitStashPop:s("git-stash-pop",60456),vscode:s("vscode",60457),vscodeInsiders:s("vscode-insiders",60458),codeOss:s("code-oss",60459),runCoverage:s("run-coverage",60460),runAllCoverage:s("run-all-coverage",60461),coverage:s("coverage",60462),githubProject:s("github-project",60463),mapVertical:s("map-vertical",60464),foldVertical:s("fold-vertical",60464),mapVerticalFilled:s("map-vertical-filled",60465),foldVerticalFilled:s("fold-vertical-filled",60465),goToSearch:s("go-to-search",60466),percentage:s("percentage",60467),sortPercentage:s("sort-percentage",60467),attach:s("attach",60468)},...{dialogError:s("dialog-error","error"),dialogWarning:s("dialog-warning","warning"),dialogInfo:s("dialog-info","info"),dialogClose:s("dialog-close","close"),treeItemExpanded:s("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:s("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:s("tree-filter-on-type-off","list-selection"),treeFilterClear:s("tree-filter-clear","close"),treeItemLoading:s("tree-item-loading","loading"),menuSelection:s("menu-selection","check"),menuSubmenu:s("menu-submenu","chevron-right"),menuBarMore:s("menubar-more","more"),scrollbarButtonLeft:s("scrollbar-button-left","triangle-left"),scrollbarButtonRight:s("scrollbar-button-right","triangle-right"),scrollbarButtonUp:s("scrollbar-button-up","triangle-up"),scrollbarButtonDown:s("scrollbar-button-down","triangle-down"),toolBarMore:s("toolbar-more","more"),quickInputBack:s("quick-input-back","arrow-left"),dropDownButton:s("drop-down-button",60084),symbolCustomColor:s("symbol-customcolor",60252),exportIcon:s("export",60332),workspaceUnspecified:s("workspace-unspecified",60355),newLine:s("newline",60394),thumbsDownFilled:s("thumbsdown-filled",60435),thumbsUpFilled:s("thumbsup-filled",60436),gitFetch:s("git-fetch",60445),lightbulbSparkleAutofix:s("lightbulb-sparkle-autofix",60447),debugBreakpointPending:s("debug-breakpoint-pending",60377)}}},9861:(e,t,n)=>{"use strict";function i(e,t,n=(e,t)=>e===t){if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(let i=0,r=e.length;i<r;i++)if(!n(e[i],t[i]))return!1;return!0}function*r(e,t){let n,i;for(const r of e)void 0!==i&&t(i,r)?n.push(r):(n&&(yield n),n=[r]),i=r;n&&(yield n)}function s(e,t){for(let n=0;n<=e.length;n++)t(0===n?void 0:e[n-1],n===e.length?void 0:e[n])}function o(e,t){for(let n=0;n<e.length;n++)t(0===n?void 0:e[n-1],e[n],n+1===e.length?void 0:e[n+1])}function a(e,t=e=>e){const n=new Set;return e.filter((e=>{const i=t(e);return!n.has(i)&&(n.add(i),!0)}))}function l(e,t){return e.length>0?e[0]:t}function h(e,t,n){const i=e.slice(0,t),r=e.slice(t);return i.concat(n,r)}function c(e,t){for(const n of t)e.push(n)}var d;function u(e,t){return(n,i)=>t(e(n),e(i))}n.d(t,{E4:()=>c,Fy:()=>l,Hw:()=>f,U9:()=>g,VE:()=>u,aI:()=>i,c1:()=>p,dM:()=>a,j3:()=>m,kj:()=>o,n:()=>r,nK:()=>h,pN:()=>s}),function(e){e.isLessThan=function(e){return e<0},e.isLessThanOrEqual=function(e){return e<=0},e.isGreaterThan=function(e){return e>0},e.isNeitherLessOrGreaterThan=function(e){return 0===e},e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0}(d||(d={}));const g=(e,t)=>e-t;function f(e){return(t,n)=>-e(t,n)}class m{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t<this.items.length&&e(this.items[t]);)t++;const n=t===this.firstIdx?null:this.items.slice(this.firstIdx,t);return this.firstIdx=t,n}takeFromEndWhile(e){let t=this.lastIdx;for(;t>=0&&e(this.items[t]);)t--;const n=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,n}peek(){if(0!==this.length)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class p{static{this.empty=new p((e=>{}))}constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate((t=>(e.push(t),!0))),e}filter(e){return new p((t=>this.iterate((n=>!e(n)||t(n)))))}map(e){return new p((t=>this.iterate((n=>t(e(n))))))}findLast(e){let t;return this.iterate((n=>(e(n)&&(t=n),!0))),t}findLastMaxBy(e){let t,n=!0;return this.iterate((i=>((n||d.isGreaterThan(e(i,t)))&&(n=!1,t=i),!0))),t}}},9908:(e,t,n)=>{"use strict";n.r(t),n.d(t,{clearPlatformLanguageAssociations:()=>f,getLanguageIds:()=>m,registerPlatformLanguageAssociation:()=>g});var i=n(6958),r=n(1939),s=n(6456),o=n(8821),a=n(9403),l=n(1508),h=n(3941);let c=[],d=[],u=[];function g(e,t=!1){!function(e,t,n){const r=function(e,t){return{id:e.id,mime:e.mime,filename:e.filename,extension:e.extension,filepattern:e.filepattern,firstline:e.firstline,userConfigured:t,filenameLowercase:e.filename?e.filename.toLowerCase():void 0,extensionLowercase:e.extension?e.extension.toLowerCase():void 0,filepatternLowercase:e.filepattern?(0,i.qg)(e.filepattern.toLowerCase()):void 0,filepatternOnPath:!!e.filepattern&&e.filepattern.indexOf(o.SA.sep)>=0}}(e,t);c.push(r),r.userConfigured?u.push(r):d.push(r);n&&!r.userConfigured&&c.forEach((e=>{e.mime===r.mime||e.userConfigured||(r.extension&&e.extension===r.extension&&console.warn(`Overwriting extension <<${r.extension}>> to now point to mime <<${r.mime}>>`),r.filename&&e.filename===r.filename&&console.warn(`Overwriting filename <<${r.filename}>> to now point to mime <<${r.mime}>>`),r.filepattern&&e.filepattern===r.filepattern&&console.warn(`Overwriting filepattern <<${r.filepattern}>> to now point to mime <<${r.mime}>>`),r.firstline&&e.firstline===r.firstline&&console.warn(`Overwriting firstline <<${r.firstline}>> to now point to mime <<${r.mime}>>`))}))}(e,!1,t)}function f(){c=c.filter((e=>e.userConfigured)),d=[]}function m(e,t){return function(e,t){let n;if(e)switch(e.scheme){case s.ny.file:n=e.fsPath;break;case s.ny.data:n=a.B6.parseMetaData(e).get(a.B6.META_DATA_LABEL);break;case s.ny.vscodeNotebookCell:n=void 0;break;default:n=e.path}if(!n)return[{id:"unknown",mime:r.K.unknown}];n=n.toLowerCase();const i=(0,o.P8)(n),g=p(n,i,u);if(g)return[g,{id:h.vH,mime:r.K.text}];const f=p(n,i,d);if(f)return[f,{id:h.vH,mime:r.K.text}];if(t){const e=function(e){(0,l.LU)(e)&&(e=e.substr(1));if(e.length>0)for(let t=c.length-1;t>=0;t--){const n=c[t];if(!n.firstline)continue;const i=e.match(n.firstline);if(i&&i.length>0)return n}return}(t);if(e)return[e,{id:h.vH,mime:r.K.text}]}return[{id:"unknown",mime:r.K.unknown}]}(e,t).map((e=>e.id))}function p(e,t,n){let i,r,s;for(let o=n.length-1;o>=0;o--){const a=n[o];if(t===a.filenameLowercase){i=a;break}if(a.filepattern&&(!r||a.filepattern.length>r.filepattern.length)){const n=a.filepatternOnPath?e:t;a.filepatternLowercase?.(n)&&(r=a)}a.extension&&(!s||a.extension.length>s.extension.length)&&t.endsWith(a.extensionLowercase)&&(s=a)}return i||(r||(s||void 0))}}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var s=t[i]={exports:{}};return e[i](s,s.exports,n),s.exports}n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.e=()=>Promise.resolve(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=n(1929),t=n(5196),i=n(718);let r=!1;function s(n){if(r)return;r=!0;const s=new e.SimpleWorkerServer((e=>{globalThis.postMessage(e)}),(e=>new t.EditorSimpleWorker(i.EditorWorkerHost.getChannel(e),n)));globalThis.onmessage=e=>{s.onmessage(e.data)}}function o(...e){const t=e[0];let n,i,r;if("string"===typeof t)n=t,i=t,e.splice(0,1),r=e&&"object"===typeof e[0]?e[0]:e;else{if(t instanceof Array){const n=e.slice(1);if(t.length!==n.length+1)throw new Error("expected a string as the first argument to l10n.t");let i=t[0];for(let e=1;e<t.length;e++)i+=`{${e-1}}`+t[e];return o(i,...n)}i=t.message,n=i,t.comment&&t.comment.length>0&&(n+=`/${Array.isArray(t.comment)?t.comment.join(""):t.comment}`),r=t.args??{}}return Rt(i,r)}globalThis.onmessage=e=>{r||s(null)};var a,l,h,c,d,u,g,f,m,p,_,b,v,w,k,y,T,C,S,L,x,E,A,I,M,N,R,D,O,B,z,P,F,W,H,U,q,V,j,G,K,$,Q,Y,X,J,Z,ee,te,ne,ie,re,se,oe,ae,le,he,ce,de,ue,ge,fe,me,pe,_e,be,ve,we,ke,ye,Te,Ce,Se,Le,xe,Ee,Ae,Ie,Me,Ne,Re,De,Oe,Be,ze,Pe,Fe,We,He,Ue,qe,Ve,je,Ge,Ke,$e,Qe,Ye,Xe,Je,Ze,et,tt,nt,it,rt,st,ot,at,lt,ht,ct,dt,ut,gt,ft,mt,pt,_t,bt,vt,wt,kt,yt,Tt,Ct,St,Lt,xt,Et,At,It,Mt,Nt=/{([^}]+)}/g;function Rt(e,t){return 0===Object.keys(t).length?e:e.replace(Nt,((e,n)=>t[n]??e))}(a||(a={})).is=function(e){return"string"===typeof e},(l||(l={})).is=function(e){return"string"===typeof e},(c=h||(h={})).MIN_VALUE=-2147483648,c.MAX_VALUE=2147483647,c.is=function(e){return"number"===typeof e&&c.MIN_VALUE<=e&&e<=c.MAX_VALUE},(u=d||(d={})).MIN_VALUE=0,u.MAX_VALUE=2147483647,u.is=function(e){return"number"===typeof e&&u.MIN_VALUE<=e&&e<=u.MAX_VALUE},(f=g||(g={})).create=function(e,t){return e===Number.MAX_VALUE&&(e=d.MAX_VALUE),t===Number.MAX_VALUE&&(t=d.MAX_VALUE),{line:e,character:t}},f.is=function(e){let t=e;return Dt.objectLiteral(t)&&Dt.uinteger(t.line)&&Dt.uinteger(t.character)},(p=m||(m={})).create=function(e,t,n,i){if(Dt.uinteger(e)&&Dt.uinteger(t)&&Dt.uinteger(n)&&Dt.uinteger(i))return{start:g.create(e,t),end:g.create(n,i)};if(g.is(e)&&g.is(t))return{start:e,end:t};throw new Error(`Range#create called with invalid arguments[${e}, ${t}, ${n}, ${i}]`)},p.is=function(e){let t=e;return Dt.objectLiteral(t)&&g.is(t.start)&&g.is(t.end)},(b=_||(_={})).create=function(e,t){return{uri:e,range:t}},b.is=function(e){let t=e;return Dt.objectLiteral(t)&&m.is(t.range)&&(Dt.string(t.uri)||Dt.undefined(t.uri))},(w=v||(v={})).create=function(e,t,n,i){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:i}},w.is=function(e){let t=e;return Dt.objectLiteral(t)&&m.is(t.targetRange)&&Dt.string(t.targetUri)&&m.is(t.targetSelectionRange)&&(m.is(t.originSelectionRange)||Dt.undefined(t.originSelectionRange))},(y=k||(k={})).create=function(e,t,n,i){return{red:e,green:t,blue:n,alpha:i}},y.is=function(e){const t=e;return Dt.objectLiteral(t)&&Dt.numberRange(t.red,0,1)&&Dt.numberRange(t.green,0,1)&&Dt.numberRange(t.blue,0,1)&&Dt.numberRange(t.alpha,0,1)},(C=T||(T={})).create=function(e,t){return{range:e,color:t}},C.is=function(e){const t=e;return Dt.objectLiteral(t)&&m.is(t.range)&&k.is(t.color)},(L=S||(S={})).create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},L.is=function(e){const t=e;return Dt.objectLiteral(t)&&Dt.string(t.label)&&(Dt.undefined(t.textEdit)||U.is(t))&&(Dt.undefined(t.additionalTextEdits)||Dt.typedArray(t.additionalTextEdits,U.is))},(E=x||(x={})).Comment="comment",E.Imports="imports",E.Region="region",(I=A||(A={})).create=function(e,t,n,i,r,s){const o={startLine:e,endLine:t};return Dt.defined(n)&&(o.startCharacter=n),Dt.defined(i)&&(o.endCharacter=i),Dt.defined(r)&&(o.kind=r),Dt.defined(s)&&(o.collapsedText=s),o},I.is=function(e){const t=e;return Dt.objectLiteral(t)&&Dt.uinteger(t.startLine)&&Dt.uinteger(t.startLine)&&(Dt.undefined(t.startCharacter)||Dt.uinteger(t.startCharacter))&&(Dt.undefined(t.endCharacter)||Dt.uinteger(t.endCharacter))&&(Dt.undefined(t.kind)||Dt.string(t.kind))},(N=M||(M={})).create=function(e,t){return{location:e,message:t}},N.is=function(e){let t=e;return Dt.defined(t)&&_.is(t.location)&&Dt.string(t.message)},(D=R||(R={})).Error=1,D.Warning=2,D.Information=3,D.Hint=4,(B=O||(O={})).Unnecessary=1,B.Deprecated=2,(z||(z={})).is=function(e){const t=e;return Dt.objectLiteral(t)&&Dt.string(t.href)},(F=P||(P={})).create=function(e,t,n,i,r,s){let o={range:e,message:t};return Dt.defined(n)&&(o.severity=n),Dt.defined(i)&&(o.code=i),Dt.defined(r)&&(o.source=r),Dt.defined(s)&&(o.relatedInformation=s),o},F.is=function(e){var t;let n=e;return Dt.defined(n)&&m.is(n.range)&&Dt.string(n.message)&&(Dt.number(n.severity)||Dt.undefined(n.severity))&&(Dt.integer(n.code)||Dt.string(n.code)||Dt.undefined(n.code))&&(Dt.undefined(n.codeDescription)||Dt.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(Dt.string(n.source)||Dt.undefined(n.source))&&(Dt.undefined(n.relatedInformation)||Dt.typedArray(n.relatedInformation,M.is))},(H=W||(W={})).create=function(e,t,...n){let i={title:e,command:t};return Dt.defined(n)&&n.length>0&&(i.arguments=n),i},H.is=function(e){let t=e;return Dt.defined(t)&&Dt.string(t.title)&&Dt.string(t.command)},(q=U||(U={})).replace=function(e,t){return{range:e,newText:t}},q.insert=function(e,t){return{range:{start:e,end:e},newText:t}},q.del=function(e){return{range:e,newText:""}},q.is=function(e){const t=e;return Dt.objectLiteral(t)&&Dt.string(t.newText)&&m.is(t.range)},(j=V||(V={})).create=function(e,t,n){const i={label:e};return void 0!==t&&(i.needsConfirmation=t),void 0!==n&&(i.description=n),i},j.is=function(e){const t=e;return Dt.objectLiteral(t)&&Dt.string(t.label)&&(Dt.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(Dt.string(t.description)||void 0===t.description)},(G||(G={})).is=function(e){const t=e;return Dt.string(t)},($=K||(K={})).replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},$.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},$.del=function(e,t){return{range:e,newText:"",annotationId:t}},$.is=function(e){const t=e;return U.is(t)&&(V.is(t.annotationId)||G.is(t.annotationId))},(Y=Q||(Q={})).create=function(e,t){return{textDocument:e,edits:t}},Y.is=function(e){let t=e;return Dt.defined(t)&&le.is(t.textDocument)&&Array.isArray(t.edits)},(J=X||(X={})).create=function(e,t,n){let i={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(i.options=t),void 0!==n&&(i.annotationId=n),i},J.is=function(e){let t=e;return t&&"create"===t.kind&&Dt.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||Dt.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Dt.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||G.is(t.annotationId))},(ee=Z||(Z={})).create=function(e,t,n,i){let r={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(r.options=n),void 0!==i&&(r.annotationId=i),r},ee.is=function(e){let t=e;return t&&"rename"===t.kind&&Dt.string(t.oldUri)&&Dt.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||Dt.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Dt.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||G.is(t.annotationId))},(ne=te||(te={})).create=function(e,t,n){let i={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(i.options=t),void 0!==n&&(i.annotationId=n),i},ne.is=function(e){let t=e;return t&&"delete"===t.kind&&Dt.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||Dt.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||Dt.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||G.is(t.annotationId))},(ie||(ie={})).is=function(e){let t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((e=>Dt.string(e.kind)?X.is(e)||Z.is(e)||te.is(e):Q.is(e))))},(se=re||(re={})).create=function(e){return{uri:e}},se.is=function(e){let t=e;return Dt.defined(t)&&Dt.string(t.uri)},(ae=oe||(oe={})).create=function(e,t){return{uri:e,version:t}},ae.is=function(e){let t=e;return Dt.defined(t)&&Dt.string(t.uri)&&Dt.integer(t.version)},(he=le||(le={})).create=function(e,t){return{uri:e,version:t}},he.is=function(e){let t=e;return Dt.defined(t)&&Dt.string(t.uri)&&(null===t.version||Dt.integer(t.version))},(de=ce||(ce={})).create=function(e,t,n,i){return{uri:e,languageId:t,version:n,text:i}},de.is=function(e){let t=e;return Dt.defined(t)&&Dt.string(t.uri)&&Dt.string(t.languageId)&&Dt.integer(t.version)&&Dt.string(t.text)},(ge=ue||(ue={})).PlainText="plaintext",ge.Markdown="markdown",ge.is=function(e){const t=e;return t===ge.PlainText||t===ge.Markdown},(fe||(fe={})).is=function(e){const t=e;return Dt.objectLiteral(e)&&ue.is(t.kind)&&Dt.string(t.value)},(pe=me||(me={})).Text=1,pe.Method=2,pe.Function=3,pe.Constructor=4,pe.Field=5,pe.Variable=6,pe.Class=7,pe.Interface=8,pe.Module=9,pe.Property=10,pe.Unit=11,pe.Value=12,pe.Enum=13,pe.Keyword=14,pe.Snippet=15,pe.Color=16,pe.File=17,pe.Reference=18,pe.Folder=19,pe.EnumMember=20,pe.Constant=21,pe.Struct=22,pe.Event=23,pe.Operator=24,pe.TypeParameter=25,(be=_e||(_e={})).PlainText=1,be.Snippet=2,(ve||(ve={})).Deprecated=1,(ke=we||(we={})).create=function(e,t,n){return{newText:e,insert:t,replace:n}},ke.is=function(e){const t=e;return t&&Dt.string(t.newText)&&m.is(t.insert)&&m.is(t.replace)},(Te=ye||(ye={})).asIs=1,Te.adjustIndentation=2,(Ce||(Ce={})).is=function(e){const t=e;return t&&(Dt.string(t.detail)||void 0===t.detail)&&(Dt.string(t.description)||void 0===t.description)},(Se||(Se={})).create=function(e){return{label:e}},(Le||(Le={})).create=function(e,t){return{items:e||[],isIncomplete:!!t}},(Ee=xe||(xe={})).fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},Ee.is=function(e){const t=e;return Dt.string(t)||Dt.objectLiteral(t)&&Dt.string(t.language)&&Dt.string(t.value)},(Ae||(Ae={})).is=function(e){let t=e;return!!t&&Dt.objectLiteral(t)&&(fe.is(t.contents)||xe.is(t.contents)||Dt.typedArray(t.contents,xe.is))&&(void 0===e.range||m.is(e.range))},(Ie||(Ie={})).create=function(e,t){return t?{label:e,documentation:t}:{label:e}},(Me||(Me={})).create=function(e,t,...n){let i={label:e};return Dt.defined(t)&&(i.documentation=t),Dt.defined(n)?i.parameters=n:i.parameters=[],i},(Re=Ne||(Ne={})).Text=1,Re.Read=2,Re.Write=3,(De||(De={})).create=function(e,t){let n={range:e};return Dt.number(t)&&(n.kind=t),n},(Be=Oe||(Oe={})).File=1,Be.Module=2,Be.Namespace=3,Be.Package=4,Be.Class=5,Be.Method=6,Be.Property=7,Be.Field=8,Be.Constructor=9,Be.Enum=10,Be.Interface=11,Be.Function=12,Be.Variable=13,Be.Constant=14,Be.String=15,Be.Number=16,Be.Boolean=17,Be.Array=18,Be.Object=19,Be.Key=20,Be.Null=21,Be.EnumMember=22,Be.Struct=23,Be.Event=24,Be.Operator=25,Be.TypeParameter=26,(ze||(ze={})).Deprecated=1,(Pe||(Pe={})).create=function(e,t,n,i,r){let s={name:e,kind:t,location:{uri:i,range:n}};return r&&(s.containerName=r),s},(Fe||(Fe={})).create=function(e,t,n,i){return void 0!==i?{name:e,kind:t,location:{uri:n,range:i}}:{name:e,kind:t,location:{uri:n}}},(He=We||(We={})).create=function(e,t,n,i,r,s){let o={name:e,detail:t,kind:n,range:i,selectionRange:r};return void 0!==s&&(o.children=s),o},He.is=function(e){let t=e;return t&&Dt.string(t.name)&&Dt.number(t.kind)&&m.is(t.range)&&m.is(t.selectionRange)&&(void 0===t.detail||Dt.string(t.detail))&&(void 0===t.deprecated||Dt.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))},(qe=Ue||(Ue={})).Empty="",qe.QuickFix="quickfix",qe.Refactor="refactor",qe.RefactorExtract="refactor.extract",qe.RefactorInline="refactor.inline",qe.RefactorRewrite="refactor.rewrite",qe.Source="source",qe.SourceOrganizeImports="source.organizeImports",qe.SourceFixAll="source.fixAll",(je=Ve||(Ve={})).Invoked=1,je.Automatic=2,(Ke=Ge||(Ge={})).create=function(e,t,n){let i={diagnostics:e};return void 0!==t&&null!==t&&(i.only=t),void 0!==n&&null!==n&&(i.triggerKind=n),i},Ke.is=function(e){let t=e;return Dt.defined(t)&&Dt.typedArray(t.diagnostics,P.is)&&(void 0===t.only||Dt.typedArray(t.only,Dt.string))&&(void 0===t.triggerKind||t.triggerKind===Ve.Invoked||t.triggerKind===Ve.Automatic)},(Qe=$e||($e={})).create=function(e,t,n){let i={title:e},r=!0;return"string"===typeof t?(r=!1,i.kind=t):W.is(t)?i.command=t:i.edit=t,r&&void 0!==n&&(i.kind=n),i},Qe.is=function(e){let t=e;return t&&Dt.string(t.title)&&(void 0===t.diagnostics||Dt.typedArray(t.diagnostics,P.is))&&(void 0===t.kind||Dt.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||W.is(t.command))&&(void 0===t.isPreferred||Dt.boolean(t.isPreferred))&&(void 0===t.edit||ie.is(t.edit))},(Xe=Ye||(Ye={})).create=function(e,t){let n={range:e};return Dt.defined(t)&&(n.data=t),n},Xe.is=function(e){let t=e;return Dt.defined(t)&&m.is(t.range)&&(Dt.undefined(t.command)||W.is(t.command))},(Ze=Je||(Je={})).create=function(e,t){return{tabSize:e,insertSpaces:t}},Ze.is=function(e){let t=e;return Dt.defined(t)&&Dt.uinteger(t.tabSize)&&Dt.boolean(t.insertSpaces)},(tt=et||(et={})).create=function(e,t,n){return{range:e,target:t,data:n}},tt.is=function(e){let t=e;return Dt.defined(t)&&m.is(t.range)&&(Dt.undefined(t.target)||Dt.string(t.target))},(it=nt||(nt={})).create=function(e,t){return{range:e,parent:t}},it.is=function(e){let t=e;return Dt.objectLiteral(t)&&m.is(t.range)&&(void 0===t.parent||it.is(t.parent))},(st=rt||(rt={})).namespace="namespace",st.type="type",st.class="class",st.enum="enum",st.interface="interface",st.struct="struct",st.typeParameter="typeParameter",st.parameter="parameter",st.variable="variable",st.property="property",st.enumMember="enumMember",st.event="event",st.function="function",st.method="method",st.macro="macro",st.keyword="keyword",st.modifier="modifier",st.comment="comment",st.string="string",st.number="number",st.regexp="regexp",st.operator="operator",st.decorator="decorator",(at=ot||(ot={})).declaration="declaration",at.definition="definition",at.readonly="readonly",at.static="static",at.deprecated="deprecated",at.abstract="abstract",at.async="async",at.modification="modification",at.documentation="documentation",at.defaultLibrary="defaultLibrary",(lt||(lt={})).is=function(e){const t=e;return Dt.objectLiteral(t)&&(void 0===t.resultId||"string"===typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"===typeof t.data[0])},(ct=ht||(ht={})).create=function(e,t){return{range:e,text:t}},ct.is=function(e){const t=e;return void 0!==t&&null!==t&&m.is(t.range)&&Dt.string(t.text)},(ut=dt||(dt={})).create=function(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}},ut.is=function(e){const t=e;return void 0!==t&&null!==t&&m.is(t.range)&&Dt.boolean(t.caseSensitiveLookup)&&(Dt.string(t.variableName)||void 0===t.variableName)},(ft=gt||(gt={})).create=function(e,t){return{range:e,expression:t}},ft.is=function(e){const t=e;return void 0!==t&&null!==t&&m.is(t.range)&&(Dt.string(t.expression)||void 0===t.expression)},(pt=mt||(mt={})).create=function(e,t){return{frameId:e,stoppedLocation:t}},pt.is=function(e){const t=e;return Dt.defined(t)&&m.is(e.stoppedLocation)},(bt=_t||(_t={})).Type=1,bt.Parameter=2,bt.is=function(e){return 1===e||2===e},(wt=vt||(vt={})).create=function(e){return{value:e}},wt.is=function(e){const t=e;return Dt.objectLiteral(t)&&(void 0===t.tooltip||Dt.string(t.tooltip)||fe.is(t.tooltip))&&(void 0===t.location||_.is(t.location))&&(void 0===t.command||W.is(t.command))},(yt=kt||(kt={})).create=function(e,t,n){const i={position:e,label:t};return void 0!==n&&(i.kind=n),i},yt.is=function(e){const t=e;return Dt.objectLiteral(t)&&g.is(t.position)&&(Dt.string(t.label)||Dt.typedArray(t.label,vt.is))&&(void 0===t.kind||_t.is(t.kind))&&void 0===t.textEdits||Dt.typedArray(t.textEdits,U.is)&&(void 0===t.tooltip||Dt.string(t.tooltip)||fe.is(t.tooltip))&&(void 0===t.paddingLeft||Dt.boolean(t.paddingLeft))&&(void 0===t.paddingRight||Dt.boolean(t.paddingRight))},(Tt||(Tt={})).createSnippet=function(e){return{kind:"snippet",value:e}},(Ct||(Ct={})).create=function(e,t,n,i){return{insertText:e,filterText:t,range:n,command:i}},(St||(St={})).create=function(e){return{items:e}},(xt=Lt||(Lt={})).Invoked=0,xt.Automatic=1,(Et||(Et={})).create=function(e,t){return{range:e,text:t}},(At||(At={})).create=function(e,t){return{triggerKind:e,selectedCompletionInfo:t}},(It||(It={})).is=function(e){const t=e;return Dt.objectLiteral(t)&&l.is(t.uri)&&Dt.string(t.name)},function(e){function t(e,n){if(e.length<=1)return e;const i=e.length/2|0,r=e.slice(0,i),s=e.slice(i);t(r,n),t(s,n);let o=0,a=0,l=0;for(;o<r.length&&a<s.length;){let t=n(r[o],s[a]);e[l++]=t<=0?r[o++]:s[a++]}for(;o<r.length;)e[l++]=r[o++];for(;a<s.length;)e[l++]=s[a++];return e}e.create=function(e,t,n,i){return new Ot(e,t,n,i)},e.is=function(e){let t=e;return!!(Dt.defined(t)&&Dt.string(t.uri)&&(Dt.undefined(t.languageId)||Dt.string(t.languageId))&&Dt.uinteger(t.lineCount)&&Dt.func(t.getText)&&Dt.func(t.positionAt)&&Dt.func(t.offsetAt))},e.applyEdits=function(e,n){let i=e.getText(),r=t(n,((e,t)=>{let n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),s=i.length;for(let t=r.length-1;t>=0;t--){let n=r[t],o=e.offsetAt(n.range.start),a=e.offsetAt(n.range.end);if(!(a<=s))throw new Error("Overlapping edit");i=i.substring(0,o)+n.newText+i.substring(a,i.length),s=o}return i}}(Mt||(Mt={}));var Dt,Ot=class{constructor(e,t,n,i){this._uri=e,this._languageId=t,this._version=n,this._content=i,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(void 0===this._lineOffsets){let e=[],t=this._content,n=!0;for(let i=0;i<t.length;i++){n&&(e.push(i),n=!1);let r=t.charAt(i);n="\r"===r||"\n"===r,"\r"===r&&i+1<t.length&&"\n"===t.charAt(i+1)&&i++}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,i=t.length;if(0===i)return g.create(0,e);for(;n<i;){let r=Math.floor((n+i)/2);t[r]>e?i=r:n=r+1}let r=n-1;return g.create(r,e-t[r])}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],i=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,i),n)}get lineCount(){return this.getLineOffsets().length}};!function(e){const t=Object.prototype.toString;e.defined=function(e){return"undefined"!==typeof e},e.undefined=function(e){return"undefined"===typeof e},e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===t.call(e)},e.number=function(e){return"[object Number]"===t.call(e)},e.numberRange=function(e,n,i){return"[object Number]"===t.call(e)&&n<=e&&e<=i},e.integer=function(e){return"[object Number]"===t.call(e)&&-2147483648<=e&&e<=2147483647},e.uinteger=function(e){return"[object Number]"===t.call(e)&&0<=e&&e<=2147483647},e.func=function(e){return"[object Function]"===t.call(e)},e.objectLiteral=function(e){return null!==e&&"object"===typeof e},e.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)}}(Dt||(Dt={}));var Bt,zt,Pt,Ft,Wt,Ht,Ut,qt,Vt,jt=class e{constructor(e,t,n,i){this._uri=e,this._languageId=t,this._version=n,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){const t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(t,n){for(let i of t)if(e.isIncremental(i)){const e=$t(i.range),t=this.offsetAt(e.start),n=this.offsetAt(e.end);this._content=this._content.substring(0,t)+i.text+this._content.substring(n,this._content.length);const r=Math.max(e.start.line,0),s=Math.max(e.end.line,0);let o=this._lineOffsets;const a=Kt(i.text,!1,t);if(s-r===a.length)for(let i=0,h=a.length;i<h;i++)o[i+r+1]=a[i];else a.length<1e4?o.splice(r+1,s-r,...a):this._lineOffsets=o=o.slice(0,r+1).concat(a,o.slice(s+1));const l=i.text.length-(n-t);if(0!==l)for(let i=r+1+a.length,h=o.length;i<h;i++)o[i]=o[i]+l}else{if(!e.isFull(i))throw new Error("Unknown change event received");this._content=i.text,this._lineOffsets=void 0}this._version=n}getLineOffsets(){return void 0===this._lineOffsets&&(this._lineOffsets=Kt(this._content,!0)),this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,i=t.length;if(0===i)return{line:0,character:e};for(;n<i;){let r=Math.floor((n+i)/2);t[r]>e?i=r:n=r+1}let r=n-1;return{line:r,character:e-t[r]}}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],i=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,i),n)}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){let t=e;return void 0!==t&&null!==t&&"string"===typeof t.text&&void 0!==t.range&&(void 0===t.rangeLength||"number"===typeof t.rangeLength)}static isFull(e){let t=e;return void 0!==t&&null!==t&&"string"===typeof t.text&&void 0===t.range&&void 0===t.rangeLength}};function Gt(e,t){if(e.length<=1)return e;const n=e.length/2|0,i=e.slice(0,n),r=e.slice(n);Gt(i,t),Gt(r,t);let s=0,o=0,a=0;for(;s<i.length&&o<r.length;){let n=t(i[s],r[o]);e[a++]=n<=0?i[s++]:r[o++]}for(;s<i.length;)e[a++]=i[s++];for(;o<r.length;)e[a++]=r[o++];return e}function Kt(e,t,n=0){const i=t?[n]:[];for(let r=0;r<e.length;r++){let t=e.charCodeAt(r);13!==t&&10!==t||(13===t&&r+1<e.length&&10===e.charCodeAt(r+1)&&r++,i.push(n+r+1))}return i}function $t(e){const 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 Qt(e){const t=$t(e.range);return t!==e.range?{newText:e.newText,range:t}:e}(zt=Bt||(Bt={})).create=function(e,t,n,i){return new jt(e,t,n,i)},zt.update=function(e,t,n){if(e instanceof jt)return e.update(t,n),e;throw new Error("TextDocument.update: document must be created by TextDocument.create")},zt.applyEdits=function(e,t){let n=e.getText(),i=Gt(t.map(Qt),((e,t)=>{let n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),r=0;const s=[];for(const o of i){let t=e.offsetAt(o.range.start);if(t<r)throw new Error("Overlapping edit");t>r&&s.push(n.substring(r,t)),o.newText.length&&s.push(o.newText),r=e.offsetAt(o.range.end)}return s.push(n.substr(r)),s.join("")},(Ft=Pt||(Pt={}))[Ft.StartCommentTag=0]="StartCommentTag",Ft[Ft.Comment=1]="Comment",Ft[Ft.EndCommentTag=2]="EndCommentTag",Ft[Ft.StartTagOpen=3]="StartTagOpen",Ft[Ft.StartTagClose=4]="StartTagClose",Ft[Ft.StartTagSelfClose=5]="StartTagSelfClose",Ft[Ft.StartTag=6]="StartTag",Ft[Ft.EndTagOpen=7]="EndTagOpen",Ft[Ft.EndTagClose=8]="EndTagClose",Ft[Ft.EndTag=9]="EndTag",Ft[Ft.DelimiterAssign=10]="DelimiterAssign",Ft[Ft.AttributeName=11]="AttributeName",Ft[Ft.AttributeValue=12]="AttributeValue",Ft[Ft.StartDoctypeTag=13]="StartDoctypeTag",Ft[Ft.Doctype=14]="Doctype",Ft[Ft.EndDoctypeTag=15]="EndDoctypeTag",Ft[Ft.Content=16]="Content",Ft[Ft.Whitespace=17]="Whitespace",Ft[Ft.Unknown=18]="Unknown",Ft[Ft.Script=19]="Script",Ft[Ft.Styles=20]="Styles",Ft[Ft.EOS=21]="EOS",(Ht=Wt||(Wt={}))[Ht.WithinContent=0]="WithinContent",Ht[Ht.AfterOpeningStartTag=1]="AfterOpeningStartTag",Ht[Ht.AfterOpeningEndTag=2]="AfterOpeningEndTag",Ht[Ht.WithinDoctype=3]="WithinDoctype",Ht[Ht.WithinTag=4]="WithinTag",Ht[Ht.WithinEndTag=5]="WithinEndTag",Ht[Ht.WithinComment=6]="WithinComment",Ht[Ht.WithinScriptContent=7]="WithinScriptContent",Ht[Ht.WithinStyleContent=8]="WithinStyleContent",Ht[Ht.AfterAttributeName=9]="AfterAttributeName",Ht[Ht.BeforeAttributeValue=10]="BeforeAttributeValue",(Ut||(Ut={})).LATEST={textDocument:{completion:{completionItem:{documentationFormat:[ue.Markdown,ue.PlainText]}},hover:{contentFormat:[ue.Markdown,ue.PlainText]}}},(Vt=qt||(qt={}))[Vt.Unknown=0]="Unknown",Vt[Vt.File=1]="File",Vt[Vt.Directory=2]="Directory",Vt[Vt.SymbolicLink=64]="SymbolicLink";var Yt=class{constructor(e,t){this.source=e,this.len=e.length,this.position=t}eos(){return this.len<=this.position}getSource(){return this.source}pos(){return this.position}goBackTo(e){this.position=e}goBack(e){this.position-=e}advance(e){this.position+=e}goToEnd(){this.position=this.source.length}nextChar(){return this.source.charCodeAt(this.position++)||0}peekChar(e=0){return this.source.charCodeAt(this.position+e)||0}advanceIfChar(e){return e===this.source.charCodeAt(this.position)&&(this.position++,!0)}advanceIfChars(e){let t;if(this.position+e.length>this.source.length)return!1;for(t=0;t<e.length;t++)if(this.source.charCodeAt(this.position+t)!==e[t])return!1;return this.advance(t),!0}advanceIfRegExp(e){const t=this.source.substr(this.position).match(e);return t?(this.position=this.position+t.index+t[0].length,t[0]):""}advanceUntilRegExp(e){const t=this.source.substr(this.position).match(e);return t?(this.position=this.position+t.index,t[0]):(this.goToEnd(),"")}advanceUntilChar(e){for(;this.position<this.source.length;){if(this.source.charCodeAt(this.position)===e)return!0;this.advance(1)}return!1}advanceUntilChars(e){for(;this.position+e.length<=this.source.length;){let t=0;for(;t<e.length&&this.source.charCodeAt(this.position+t)===e[t];t++);if(t===e.length)return!0;this.advance(1)}return this.goToEnd(),!1}skipWhitespace(){return this.advanceWhileChar((e=>e===hn||e===cn||e===on||e===ln||e===an))>0}advanceWhileChar(e){const t=this.position;for(;this.position<this.len&&e(this.source.charCodeAt(this.position));)this.position++;return this.position-t}},Xt="!".charCodeAt(0),Jt="-".charCodeAt(0),Zt="<".charCodeAt(0),en=">".charCodeAt(0),tn="/".charCodeAt(0),nn="=".charCodeAt(0),rn='"'.charCodeAt(0),sn="'".charCodeAt(0),on="\n".charCodeAt(0),an="\r".charCodeAt(0),ln="\f".charCodeAt(0),hn=" ".charCodeAt(0),cn="\t".charCodeAt(0),dn={"text/x-handlebars-template":!0,"text/html":!0};function un(e,t=0,n=Wt.WithinContent,i=!1){const r=new Yt(e,t);let s,a,l,h,c,d=n,u=0,g=Pt.Unknown;function f(){return r.advanceIfRegExp(/^[_:\w][_:\w-.\d]*/).toLowerCase()}function m(e,t,n){return g=t,u=e,s=n,t}function p(){const e=r.pos();if(r.eos())return m(e,Pt.EOS);let t;switch(d){case Wt.WithinComment:return r.advanceIfChars([Jt,Jt,en])?(d=Wt.WithinContent,m(e,Pt.EndCommentTag)):(r.advanceUntilChars([Jt,Jt,en]),m(e,Pt.Comment));case Wt.WithinDoctype:return r.advanceIfChar(en)?(d=Wt.WithinContent,m(e,Pt.EndDoctypeTag)):(r.advanceUntilChar(en),m(e,Pt.Doctype));case Wt.WithinContent:if(r.advanceIfChar(Zt)){if(!r.eos()&&r.peekChar()===Xt){if(r.advanceIfChars([Xt,Jt,Jt]))return d=Wt.WithinComment,m(e,Pt.StartCommentTag);if(r.advanceIfRegExp(/^!doctype/i))return d=Wt.WithinDoctype,m(e,Pt.StartDoctypeTag)}return r.advanceIfChar(tn)?(d=Wt.AfterOpeningEndTag,m(e,Pt.EndTagOpen)):(d=Wt.AfterOpeningStartTag,m(e,Pt.StartTagOpen))}return r.advanceUntilChar(Zt),m(e,Pt.Content);case Wt.AfterOpeningEndTag:return f().length>0?(d=Wt.WithinEndTag,m(e,Pt.EndTag)):r.skipWhitespace()?m(e,Pt.Whitespace,o("Tag name must directly follow the open bracket.")):(d=Wt.WithinEndTag,r.advanceUntilChar(en),e<r.pos()?m(e,Pt.Unknown,o("End tag name expected.")):p());case Wt.WithinEndTag:if(r.skipWhitespace())return m(e,Pt.Whitespace);if(r.advanceIfChar(en))return d=Wt.WithinContent,m(e,Pt.EndTagClose);if(i&&r.peekChar()===Zt)return d=Wt.WithinContent,m(e,Pt.EndTagClose,o("Closing bracket missing."));t=o("Closing bracket expected.");break;case Wt.AfterOpeningStartTag:return l=f(),c=void 0,h=void 0,l.length>0?(a=!1,d=Wt.WithinTag,m(e,Pt.StartTag)):r.skipWhitespace()?m(e,Pt.Whitespace,o("Tag name must directly follow the open bracket.")):(d=Wt.WithinTag,r.advanceUntilChar(en),e<r.pos()?m(e,Pt.Unknown,o("Start tag name expected.")):p());case Wt.WithinTag:return r.skipWhitespace()?(a=!0,m(e,Pt.Whitespace)):a&&(h=r.advanceIfRegExp(/^[^\s"'></=\x00-\x0F\x7F\x80-\x9F]*/).toLowerCase(),h.length>0)?(d=Wt.AfterAttributeName,a=!1,m(e,Pt.AttributeName)):r.advanceIfChars([tn,en])?(d=Wt.WithinContent,m(e,Pt.StartTagSelfClose)):r.advanceIfChar(en)?(d="script"===l?c&&dn[c]?Wt.WithinContent:Wt.WithinScriptContent:"style"===l?Wt.WithinStyleContent:Wt.WithinContent,m(e,Pt.StartTagClose)):i&&r.peekChar()===Zt?(d=Wt.WithinContent,m(e,Pt.StartTagClose,o("Closing bracket missing."))):(r.advance(1),m(e,Pt.Unknown,o("Unexpected character in tag.")));case Wt.AfterAttributeName:return r.skipWhitespace()?(a=!0,m(e,Pt.Whitespace)):r.advanceIfChar(nn)?(d=Wt.BeforeAttributeValue,m(e,Pt.DelimiterAssign)):(d=Wt.WithinTag,p());case Wt.BeforeAttributeValue:if(r.skipWhitespace())return m(e,Pt.Whitespace);let n=r.advanceIfRegExp(/^[^\s"'`=<>]+/);if(n.length>0&&(r.peekChar()===en&&r.peekChar(-1)===tn&&(r.goBack(1),n=n.substring(0,n.length-1)),"type"===h&&(c=n),n.length>0))return d=Wt.WithinTag,a=!1,m(e,Pt.AttributeValue);const s=r.peekChar();return s===sn||s===rn?(r.advance(1),r.advanceUntilChar(s)&&r.advance(1),"type"===h&&(c=r.getSource().substring(e+1,r.pos()-1)),d=Wt.WithinTag,a=!1,m(e,Pt.AttributeValue)):(d=Wt.WithinTag,a=!1,p());case Wt.WithinScriptContent:let u=1;for(;!r.eos();){const t=r.advanceIfRegExp(/<!--|-->|<\/?script\s*\/?>?/i);if(0===t.length)return r.goToEnd(),m(e,Pt.Script);if("\x3c!--"===t)1===u&&(u=2);else if("--\x3e"===t)u=1;else if("/"!==t[1])2===u&&(u=3);else{if(3!==u){r.goBack(t.length);break}u=2}}return d=Wt.WithinContent,e<r.pos()?m(e,Pt.Script):p();case Wt.WithinStyleContent:return r.advanceUntilRegExp(/<\/style/i),d=Wt.WithinContent,e<r.pos()?m(e,Pt.Styles):p()}return r.advance(1),d=Wt.WithinContent,m(e,Pt.Unknown,t)}return{scan:function(){const e=r.pos(),t=d,n=p();return n===Pt.EOS||e!==r.pos()||i&&(n===Pt.StartTagClose||n===Pt.EndTagClose)?n:(console.warn("Scanner.scan has not advanced at offset "+e+", state before: "+t+" after: "+d),r.advance(1),m(e,Pt.Unknown))},getTokenType:()=>g,getTokenOffset:()=>u,getTokenLength:()=>r.pos()-u,getTokenEnd:()=>r.pos(),getTokenText:()=>r.getSource().substring(u,r.pos()),getScannerState:()=>d,getTokenError:()=>s}}function gn(e,t){let n=0,i=e.length;if(0===i)return 0;for(;n<i;){let r=Math.floor((n+i)/2);t(e[r])?i=r:n=r+1}return n}var fn=class{get attributeNames(){return this.attributes?Object.keys(this.attributes):[]}constructor(e,t,n,i){this.start=e,this.end=t,this.children=n,this.parent=i,this.closed=!1}isSameTag(e){return void 0===this.tag?void 0===e:void 0!==e&&this.tag.length===e.length&&this.tag.toLowerCase()===e}get firstChild(){return this.children[0]}get lastChild(){return this.children.length?this.children[this.children.length-1]:void 0}findNodeBefore(e){const t=gn(this.children,(t=>e<=t.start))-1;if(t>=0){const n=this.children[t];if(e>n.start){if(e<n.end)return n.findNodeBefore(e);const t=n.lastChild;return t&&t.end===n.end?n.findNodeBefore(e):n}}return this}findNodeAt(e){const t=gn(this.children,(t=>e<=t.start))-1;if(t>=0){const n=this.children[t];if(e>n.start&&e<=n.end)return n.findNodeAt(e)}return this}},mn=class{constructor(e){this.dataManager=e}parseDocument(e){return this.parse(e.getText(),this.dataManager.getVoidElements(e.languageId))}parse(e,t){const n=un(e,void 0,void 0,!0),i=new fn(0,e.length,[],void 0);let r,s=i,o=-1,a=null,l=n.scan();for(;l!==Pt.EOS;){switch(l){case Pt.StartTagOpen:const i=new fn(n.getTokenOffset(),e.length,[],s);s.children.push(i),s=i;break;case Pt.StartTag:s.tag=n.getTokenText();break;case Pt.StartTagClose:s.parent&&(s.end=n.getTokenEnd(),n.getTokenLength()?(s.startTagEnd=n.getTokenEnd(),s.tag&&this.dataManager.isVoidElement(s.tag,t)&&(s.closed=!0,s=s.parent)):s=s.parent);break;case Pt.StartTagSelfClose:s.parent&&(s.closed=!0,s.end=n.getTokenEnd(),s.startTagEnd=n.getTokenEnd(),s=s.parent);break;case Pt.EndTagOpen:o=n.getTokenOffset(),r=void 0;break;case Pt.EndTag:r=n.getTokenText().toLowerCase();break;case Pt.EndTagClose:let l=s;for(;!l.isSameTag(r)&&l.parent;)l=l.parent;if(l.parent){for(;s!==l;)s.end=o,s.closed=!1,s=s.parent;s.closed=!0,s.endTagStart=o,s.end=n.getTokenEnd(),s=s.parent}break;case Pt.AttributeName:{a=n.getTokenText();let e=s.attributes;e||(s.attributes=e={}),e[a]=null;break}case Pt.AttributeValue:{const e=n.getTokenText(),t=s.attributes;t&&a&&(t[a]=e,a=null);break}}l=n.scan()}for(;s.parent;)s.end=e.length,s.closed=!1,s=s.parent;return{roots:i.children,findNodeBefore:i.findNodeBefore.bind(i),findNodeAt:i.findNodeAt.bind(i)}}},pn={"Aacute;":"\xc1",Aacute:"\xc1","aacute;":"\xe1",aacute:"\xe1","Abreve;":"\u0102","abreve;":"\u0103","ac;":"\u223e","acd;":"\u223f","acE;":"\u223e\u0333","Acirc;":"\xc2",Acirc:"\xc2","acirc;":"\xe2",acirc:"\xe2","acute;":"\xb4",acute:"\xb4","Acy;":"\u0410","acy;":"\u0430","AElig;":"\xc6",AElig:"\xc6","aelig;":"\xe6",aelig:"\xe6","af;":"\u2061","Afr;":"\ud835\udd04","afr;":"\ud835\udd1e","Agrave;":"\xc0",Agrave:"\xc0","agrave;":"\xe0",agrave:"\xe0","alefsym;":"\u2135","aleph;":"\u2135","Alpha;":"\u0391","alpha;":"\u03b1","Amacr;":"\u0100","amacr;":"\u0101","amalg;":"\u2a3f","AMP;":"&",AMP:"&","amp;":"&",amp:"&","And;":"\u2a53","and;":"\u2227","andand;":"\u2a55","andd;":"\u2a5c","andslope;":"\u2a58","andv;":"\u2a5a","ang;":"\u2220","ange;":"\u29a4","angle;":"\u2220","angmsd;":"\u2221","angmsdaa;":"\u29a8","angmsdab;":"\u29a9","angmsdac;":"\u29aa","angmsdad;":"\u29ab","angmsdae;":"\u29ac","angmsdaf;":"\u29ad","angmsdag;":"\u29ae","angmsdah;":"\u29af","angrt;":"\u221f","angrtvb;":"\u22be","angrtvbd;":"\u299d","angsph;":"\u2222","angst;":"\xc5","angzarr;":"\u237c","Aogon;":"\u0104","aogon;":"\u0105","Aopf;":"\ud835\udd38","aopf;":"\ud835\udd52","ap;":"\u2248","apacir;":"\u2a6f","apE;":"\u2a70","ape;":"\u224a","apid;":"\u224b","apos;":"'","ApplyFunction;":"\u2061","approx;":"\u2248","approxeq;":"\u224a","Aring;":"\xc5",Aring:"\xc5","aring;":"\xe5",aring:"\xe5","Ascr;":"\ud835\udc9c","ascr;":"\ud835\udcb6","Assign;":"\u2254","ast;":"*","asymp;":"\u2248","asympeq;":"\u224d","Atilde;":"\xc3",Atilde:"\xc3","atilde;":"\xe3",atilde:"\xe3","Auml;":"\xc4",Auml:"\xc4","auml;":"\xe4",auml:"\xe4","awconint;":"\u2233","awint;":"\u2a11","backcong;":"\u224c","backepsilon;":"\u03f6","backprime;":"\u2035","backsim;":"\u223d","backsimeq;":"\u22cd","Backslash;":"\u2216","Barv;":"\u2ae7","barvee;":"\u22bd","Barwed;":"\u2306","barwed;":"\u2305","barwedge;":"\u2305","bbrk;":"\u23b5","bbrktbrk;":"\u23b6","bcong;":"\u224c","Bcy;":"\u0411","bcy;":"\u0431","bdquo;":"\u201e","becaus;":"\u2235","Because;":"\u2235","because;":"\u2235","bemptyv;":"\u29b0","bepsi;":"\u03f6","bernou;":"\u212c","Bernoullis;":"\u212c","Beta;":"\u0392","beta;":"\u03b2","beth;":"\u2136","between;":"\u226c","Bfr;":"\ud835\udd05","bfr;":"\ud835\udd1f","bigcap;":"\u22c2","bigcirc;":"\u25ef","bigcup;":"\u22c3","bigodot;":"\u2a00","bigoplus;":"\u2a01","bigotimes;":"\u2a02","bigsqcup;":"\u2a06","bigstar;":"\u2605","bigtriangledown;":"\u25bd","bigtriangleup;":"\u25b3","biguplus;":"\u2a04","bigvee;":"\u22c1","bigwedge;":"\u22c0","bkarow;":"\u290d","blacklozenge;":"\u29eb","blacksquare;":"\u25aa","blacktriangle;":"\u25b4","blacktriangledown;":"\u25be","blacktriangleleft;":"\u25c2","blacktriangleright;":"\u25b8","blank;":"\u2423","blk12;":"\u2592","blk14;":"\u2591","blk34;":"\u2593","block;":"\u2588","bne;":"=\u20e5","bnequiv;":"\u2261\u20e5","bNot;":"\u2aed","bnot;":"\u2310","Bopf;":"\ud835\udd39","bopf;":"\ud835\udd53","bot;":"\u22a5","bottom;":"\u22a5","bowtie;":"\u22c8","boxbox;":"\u29c9","boxDL;":"\u2557","boxDl;":"\u2556","boxdL;":"\u2555","boxdl;":"\u2510","boxDR;":"\u2554","boxDr;":"\u2553","boxdR;":"\u2552","boxdr;":"\u250c","boxH;":"\u2550","boxh;":"\u2500","boxHD;":"\u2566","boxHd;":"\u2564","boxhD;":"\u2565","boxhd;":"\u252c","boxHU;":"\u2569","boxHu;":"\u2567","boxhU;":"\u2568","boxhu;":"\u2534","boxminus;":"\u229f","boxplus;":"\u229e","boxtimes;":"\u22a0","boxUL;":"\u255d","boxUl;":"\u255c","boxuL;":"\u255b","boxul;":"\u2518","boxUR;":"\u255a","boxUr;":"\u2559","boxuR;":"\u2558","boxur;":"\u2514","boxV;":"\u2551","boxv;":"\u2502","boxVH;":"\u256c","boxVh;":"\u256b","boxvH;":"\u256a","boxvh;":"\u253c","boxVL;":"\u2563","boxVl;":"\u2562","boxvL;":"\u2561","boxvl;":"\u2524","boxVR;":"\u2560","boxVr;":"\u255f","boxvR;":"\u255e","boxvr;":"\u251c","bprime;":"\u2035","Breve;":"\u02d8","breve;":"\u02d8","brvbar;":"\xa6",brvbar:"\xa6","Bscr;":"\u212c","bscr;":"\ud835\udcb7","bsemi;":"\u204f","bsim;":"\u223d","bsime;":"\u22cd","bsol;":"\\","bsolb;":"\u29c5","bsolhsub;":"\u27c8","bull;":"\u2022","bullet;":"\u2022","bump;":"\u224e","bumpE;":"\u2aae","bumpe;":"\u224f","Bumpeq;":"\u224e","bumpeq;":"\u224f","Cacute;":"\u0106","cacute;":"\u0107","Cap;":"\u22d2","cap;":"\u2229","capand;":"\u2a44","capbrcup;":"\u2a49","capcap;":"\u2a4b","capcup;":"\u2a47","capdot;":"\u2a40","CapitalDifferentialD;":"\u2145","caps;":"\u2229\ufe00","caret;":"\u2041","caron;":"\u02c7","Cayleys;":"\u212d","ccaps;":"\u2a4d","Ccaron;":"\u010c","ccaron;":"\u010d","Ccedil;":"\xc7",Ccedil:"\xc7","ccedil;":"\xe7",ccedil:"\xe7","Ccirc;":"\u0108","ccirc;":"\u0109","Cconint;":"\u2230","ccups;":"\u2a4c","ccupssm;":"\u2a50","Cdot;":"\u010a","cdot;":"\u010b","cedil;":"\xb8",cedil:"\xb8","Cedilla;":"\xb8","cemptyv;":"\u29b2","cent;":"\xa2",cent:"\xa2","CenterDot;":"\xb7","centerdot;":"\xb7","Cfr;":"\u212d","cfr;":"\ud835\udd20","CHcy;":"\u0427","chcy;":"\u0447","check;":"\u2713","checkmark;":"\u2713","Chi;":"\u03a7","chi;":"\u03c7","cir;":"\u25cb","circ;":"\u02c6","circeq;":"\u2257","circlearrowleft;":"\u21ba","circlearrowright;":"\u21bb","circledast;":"\u229b","circledcirc;":"\u229a","circleddash;":"\u229d","CircleDot;":"\u2299","circledR;":"\xae","circledS;":"\u24c8","CircleMinus;":"\u2296","CirclePlus;":"\u2295","CircleTimes;":"\u2297","cirE;":"\u29c3","cire;":"\u2257","cirfnint;":"\u2a10","cirmid;":"\u2aef","cirscir;":"\u29c2","ClockwiseContourIntegral;":"\u2232","CloseCurlyDoubleQuote;":"\u201d","CloseCurlyQuote;":"\u2019","clubs;":"\u2663","clubsuit;":"\u2663","Colon;":"\u2237","colon;":":","Colone;":"\u2a74","colone;":"\u2254","coloneq;":"\u2254","comma;":",","commat;":"@","comp;":"\u2201","compfn;":"\u2218","complement;":"\u2201","complexes;":"\u2102","cong;":"\u2245","congdot;":"\u2a6d","Congruent;":"\u2261","Conint;":"\u222f","conint;":"\u222e","ContourIntegral;":"\u222e","Copf;":"\u2102","copf;":"\ud835\udd54","coprod;":"\u2210","Coproduct;":"\u2210","COPY;":"\xa9",COPY:"\xa9","copy;":"\xa9",copy:"\xa9","copysr;":"\u2117","CounterClockwiseContourIntegral;":"\u2233","crarr;":"\u21b5","Cross;":"\u2a2f","cross;":"\u2717","Cscr;":"\ud835\udc9e","cscr;":"\ud835\udcb8","csub;":"\u2acf","csube;":"\u2ad1","csup;":"\u2ad0","csupe;":"\u2ad2","ctdot;":"\u22ef","cudarrl;":"\u2938","cudarrr;":"\u2935","cuepr;":"\u22de","cuesc;":"\u22df","cularr;":"\u21b6","cularrp;":"\u293d","Cup;":"\u22d3","cup;":"\u222a","cupbrcap;":"\u2a48","CupCap;":"\u224d","cupcap;":"\u2a46","cupcup;":"\u2a4a","cupdot;":"\u228d","cupor;":"\u2a45","cups;":"\u222a\ufe00","curarr;":"\u21b7","curarrm;":"\u293c","curlyeqprec;":"\u22de","curlyeqsucc;":"\u22df","curlyvee;":"\u22ce","curlywedge;":"\u22cf","curren;":"\xa4",curren:"\xa4","curvearrowleft;":"\u21b6","curvearrowright;":"\u21b7","cuvee;":"\u22ce","cuwed;":"\u22cf","cwconint;":"\u2232","cwint;":"\u2231","cylcty;":"\u232d","Dagger;":"\u2021","dagger;":"\u2020","daleth;":"\u2138","Darr;":"\u21a1","dArr;":"\u21d3","darr;":"\u2193","dash;":"\u2010","Dashv;":"\u2ae4","dashv;":"\u22a3","dbkarow;":"\u290f","dblac;":"\u02dd","Dcaron;":"\u010e","dcaron;":"\u010f","Dcy;":"\u0414","dcy;":"\u0434","DD;":"\u2145","dd;":"\u2146","ddagger;":"\u2021","ddarr;":"\u21ca","DDotrahd;":"\u2911","ddotseq;":"\u2a77","deg;":"\xb0",deg:"\xb0","Del;":"\u2207","Delta;":"\u0394","delta;":"\u03b4","demptyv;":"\u29b1","dfisht;":"\u297f","Dfr;":"\ud835\udd07","dfr;":"\ud835\udd21","dHar;":"\u2965","dharl;":"\u21c3","dharr;":"\u21c2","DiacriticalAcute;":"\xb4","DiacriticalDot;":"\u02d9","DiacriticalDoubleAcute;":"\u02dd","DiacriticalGrave;":"`","DiacriticalTilde;":"\u02dc","diam;":"\u22c4","Diamond;":"\u22c4","diamond;":"\u22c4","diamondsuit;":"\u2666","diams;":"\u2666","die;":"\xa8","DifferentialD;":"\u2146","digamma;":"\u03dd","disin;":"\u22f2","div;":"\xf7","divide;":"\xf7",divide:"\xf7","divideontimes;":"\u22c7","divonx;":"\u22c7","DJcy;":"\u0402","djcy;":"\u0452","dlcorn;":"\u231e","dlcrop;":"\u230d","dollar;":"$","Dopf;":"\ud835\udd3b","dopf;":"\ud835\udd55","Dot;":"\xa8","dot;":"\u02d9","DotDot;":"\u20dc","doteq;":"\u2250","doteqdot;":"\u2251","DotEqual;":"\u2250","dotminus;":"\u2238","dotplus;":"\u2214","dotsquare;":"\u22a1","doublebarwedge;":"\u2306","DoubleContourIntegral;":"\u222f","DoubleDot;":"\xa8","DoubleDownArrow;":"\u21d3","DoubleLeftArrow;":"\u21d0","DoubleLeftRightArrow;":"\u21d4","DoubleLeftTee;":"\u2ae4","DoubleLongLeftArrow;":"\u27f8","DoubleLongLeftRightArrow;":"\u27fa","DoubleLongRightArrow;":"\u27f9","DoubleRightArrow;":"\u21d2","DoubleRightTee;":"\u22a8","DoubleUpArrow;":"\u21d1","DoubleUpDownArrow;":"\u21d5","DoubleVerticalBar;":"\u2225","DownArrow;":"\u2193","Downarrow;":"\u21d3","downarrow;":"\u2193","DownArrowBar;":"\u2913","DownArrowUpArrow;":"\u21f5","DownBreve;":"\u0311","downdownarrows;":"\u21ca","downharpoonleft;":"\u21c3","downharpoonright;":"\u21c2","DownLeftRightVector;":"\u2950","DownLeftTeeVector;":"\u295e","DownLeftVector;":"\u21bd","DownLeftVectorBar;":"\u2956","DownRightTeeVector;":"\u295f","DownRightVector;":"\u21c1","DownRightVectorBar;":"\u2957","DownTee;":"\u22a4","DownTeeArrow;":"\u21a7","drbkarow;":"\u2910","drcorn;":"\u231f","drcrop;":"\u230c","Dscr;":"\ud835\udc9f","dscr;":"\ud835\udcb9","DScy;":"\u0405","dscy;":"\u0455","dsol;":"\u29f6","Dstrok;":"\u0110","dstrok;":"\u0111","dtdot;":"\u22f1","dtri;":"\u25bf","dtrif;":"\u25be","duarr;":"\u21f5","duhar;":"\u296f","dwangle;":"\u29a6","DZcy;":"\u040f","dzcy;":"\u045f","dzigrarr;":"\u27ff","Eacute;":"\xc9",Eacute:"\xc9","eacute;":"\xe9",eacute:"\xe9","easter;":"\u2a6e","Ecaron;":"\u011a","ecaron;":"\u011b","ecir;":"\u2256","Ecirc;":"\xca",Ecirc:"\xca","ecirc;":"\xea",ecirc:"\xea","ecolon;":"\u2255","Ecy;":"\u042d","ecy;":"\u044d","eDDot;":"\u2a77","Edot;":"\u0116","eDot;":"\u2251","edot;":"\u0117","ee;":"\u2147","efDot;":"\u2252","Efr;":"\ud835\udd08","efr;":"\ud835\udd22","eg;":"\u2a9a","Egrave;":"\xc8",Egrave:"\xc8","egrave;":"\xe8",egrave:"\xe8","egs;":"\u2a96","egsdot;":"\u2a98","el;":"\u2a99","Element;":"\u2208","elinters;":"\u23e7","ell;":"\u2113","els;":"\u2a95","elsdot;":"\u2a97","Emacr;":"\u0112","emacr;":"\u0113","empty;":"\u2205","emptyset;":"\u2205","EmptySmallSquare;":"\u25fb","emptyv;":"\u2205","EmptyVerySmallSquare;":"\u25ab","emsp;":"\u2003","emsp13;":"\u2004","emsp14;":"\u2005","ENG;":"\u014a","eng;":"\u014b","ensp;":"\u2002","Eogon;":"\u0118","eogon;":"\u0119","Eopf;":"\ud835\udd3c","eopf;":"\ud835\udd56","epar;":"\u22d5","eparsl;":"\u29e3","eplus;":"\u2a71","epsi;":"\u03b5","Epsilon;":"\u0395","epsilon;":"\u03b5","epsiv;":"\u03f5","eqcirc;":"\u2256","eqcolon;":"\u2255","eqsim;":"\u2242","eqslantgtr;":"\u2a96","eqslantless;":"\u2a95","Equal;":"\u2a75","equals;":"=","EqualTilde;":"\u2242","equest;":"\u225f","Equilibrium;":"\u21cc","equiv;":"\u2261","equivDD;":"\u2a78","eqvparsl;":"\u29e5","erarr;":"\u2971","erDot;":"\u2253","Escr;":"\u2130","escr;":"\u212f","esdot;":"\u2250","Esim;":"\u2a73","esim;":"\u2242","Eta;":"\u0397","eta;":"\u03b7","ETH;":"\xd0",ETH:"\xd0","eth;":"\xf0",eth:"\xf0","Euml;":"\xcb",Euml:"\xcb","euml;":"\xeb",euml:"\xeb","euro;":"\u20ac","excl;":"!","exist;":"\u2203","Exists;":"\u2203","expectation;":"\u2130","ExponentialE;":"\u2147","exponentiale;":"\u2147","fallingdotseq;":"\u2252","Fcy;":"\u0424","fcy;":"\u0444","female;":"\u2640","ffilig;":"\ufb03","fflig;":"\ufb00","ffllig;":"\ufb04","Ffr;":"\ud835\udd09","ffr;":"\ud835\udd23","filig;":"\ufb01","FilledSmallSquare;":"\u25fc","FilledVerySmallSquare;":"\u25aa","fjlig;":"fj","flat;":"\u266d","fllig;":"\ufb02","fltns;":"\u25b1","fnof;":"\u0192","Fopf;":"\ud835\udd3d","fopf;":"\ud835\udd57","ForAll;":"\u2200","forall;":"\u2200","fork;":"\u22d4","forkv;":"\u2ad9","Fouriertrf;":"\u2131","fpartint;":"\u2a0d","frac12;":"\xbd",frac12:"\xbd","frac13;":"\u2153","frac14;":"\xbc",frac14:"\xbc","frac15;":"\u2155","frac16;":"\u2159","frac18;":"\u215b","frac23;":"\u2154","frac25;":"\u2156","frac34;":"\xbe",frac34:"\xbe","frac35;":"\u2157","frac38;":"\u215c","frac45;":"\u2158","frac56;":"\u215a","frac58;":"\u215d","frac78;":"\u215e","frasl;":"\u2044","frown;":"\u2322","Fscr;":"\u2131","fscr;":"\ud835\udcbb","gacute;":"\u01f5","Gamma;":"\u0393","gamma;":"\u03b3","Gammad;":"\u03dc","gammad;":"\u03dd","gap;":"\u2a86","Gbreve;":"\u011e","gbreve;":"\u011f","Gcedil;":"\u0122","Gcirc;":"\u011c","gcirc;":"\u011d","Gcy;":"\u0413","gcy;":"\u0433","Gdot;":"\u0120","gdot;":"\u0121","gE;":"\u2267","ge;":"\u2265","gEl;":"\u2a8c","gel;":"\u22db","geq;":"\u2265","geqq;":"\u2267","geqslant;":"\u2a7e","ges;":"\u2a7e","gescc;":"\u2aa9","gesdot;":"\u2a80","gesdoto;":"\u2a82","gesdotol;":"\u2a84","gesl;":"\u22db\ufe00","gesles;":"\u2a94","Gfr;":"\ud835\udd0a","gfr;":"\ud835\udd24","Gg;":"\u22d9","gg;":"\u226b","ggg;":"\u22d9","gimel;":"\u2137","GJcy;":"\u0403","gjcy;":"\u0453","gl;":"\u2277","gla;":"\u2aa5","glE;":"\u2a92","glj;":"\u2aa4","gnap;":"\u2a8a","gnapprox;":"\u2a8a","gnE;":"\u2269","gne;":"\u2a88","gneq;":"\u2a88","gneqq;":"\u2269","gnsim;":"\u22e7","Gopf;":"\ud835\udd3e","gopf;":"\ud835\udd58","grave;":"`","GreaterEqual;":"\u2265","GreaterEqualLess;":"\u22db","GreaterFullEqual;":"\u2267","GreaterGreater;":"\u2aa2","GreaterLess;":"\u2277","GreaterSlantEqual;":"\u2a7e","GreaterTilde;":"\u2273","Gscr;":"\ud835\udca2","gscr;":"\u210a","gsim;":"\u2273","gsime;":"\u2a8e","gsiml;":"\u2a90","GT;":">",GT:">","Gt;":"\u226b","gt;":">",gt:">","gtcc;":"\u2aa7","gtcir;":"\u2a7a","gtdot;":"\u22d7","gtlPar;":"\u2995","gtquest;":"\u2a7c","gtrapprox;":"\u2a86","gtrarr;":"\u2978","gtrdot;":"\u22d7","gtreqless;":"\u22db","gtreqqless;":"\u2a8c","gtrless;":"\u2277","gtrsim;":"\u2273","gvertneqq;":"\u2269\ufe00","gvnE;":"\u2269\ufe00","Hacek;":"\u02c7","hairsp;":"\u200a","half;":"\xbd","hamilt;":"\u210b","HARDcy;":"\u042a","hardcy;":"\u044a","hArr;":"\u21d4","harr;":"\u2194","harrcir;":"\u2948","harrw;":"\u21ad","Hat;":"^","hbar;":"\u210f","Hcirc;":"\u0124","hcirc;":"\u0125","hearts;":"\u2665","heartsuit;":"\u2665","hellip;":"\u2026","hercon;":"\u22b9","Hfr;":"\u210c","hfr;":"\ud835\udd25","HilbertSpace;":"\u210b","hksearow;":"\u2925","hkswarow;":"\u2926","hoarr;":"\u21ff","homtht;":"\u223b","hookleftarrow;":"\u21a9","hookrightarrow;":"\u21aa","Hopf;":"\u210d","hopf;":"\ud835\udd59","horbar;":"\u2015","HorizontalLine;":"\u2500","Hscr;":"\u210b","hscr;":"\ud835\udcbd","hslash;":"\u210f","Hstrok;":"\u0126","hstrok;":"\u0127","HumpDownHump;":"\u224e","HumpEqual;":"\u224f","hybull;":"\u2043","hyphen;":"\u2010","Iacute;":"\xcd",Iacute:"\xcd","iacute;":"\xed",iacute:"\xed","ic;":"\u2063","Icirc;":"\xce",Icirc:"\xce","icirc;":"\xee",icirc:"\xee","Icy;":"\u0418","icy;":"\u0438","Idot;":"\u0130","IEcy;":"\u0415","iecy;":"\u0435","iexcl;":"\xa1",iexcl:"\xa1","iff;":"\u21d4","Ifr;":"\u2111","ifr;":"\ud835\udd26","Igrave;":"\xcc",Igrave:"\xcc","igrave;":"\xec",igrave:"\xec","ii;":"\u2148","iiiint;":"\u2a0c","iiint;":"\u222d","iinfin;":"\u29dc","iiota;":"\u2129","IJlig;":"\u0132","ijlig;":"\u0133","Im;":"\u2111","Imacr;":"\u012a","imacr;":"\u012b","image;":"\u2111","ImaginaryI;":"\u2148","imagline;":"\u2110","imagpart;":"\u2111","imath;":"\u0131","imof;":"\u22b7","imped;":"\u01b5","Implies;":"\u21d2","in;":"\u2208","incare;":"\u2105","infin;":"\u221e","infintie;":"\u29dd","inodot;":"\u0131","Int;":"\u222c","int;":"\u222b","intcal;":"\u22ba","integers;":"\u2124","Integral;":"\u222b","intercal;":"\u22ba","Intersection;":"\u22c2","intlarhk;":"\u2a17","intprod;":"\u2a3c","InvisibleComma;":"\u2063","InvisibleTimes;":"\u2062","IOcy;":"\u0401","iocy;":"\u0451","Iogon;":"\u012e","iogon;":"\u012f","Iopf;":"\ud835\udd40","iopf;":"\ud835\udd5a","Iota;":"\u0399","iota;":"\u03b9","iprod;":"\u2a3c","iquest;":"\xbf",iquest:"\xbf","Iscr;":"\u2110","iscr;":"\ud835\udcbe","isin;":"\u2208","isindot;":"\u22f5","isinE;":"\u22f9","isins;":"\u22f4","isinsv;":"\u22f3","isinv;":"\u2208","it;":"\u2062","Itilde;":"\u0128","itilde;":"\u0129","Iukcy;":"\u0406","iukcy;":"\u0456","Iuml;":"\xcf",Iuml:"\xcf","iuml;":"\xef",iuml:"\xef","Jcirc;":"\u0134","jcirc;":"\u0135","Jcy;":"\u0419","jcy;":"\u0439","Jfr;":"\ud835\udd0d","jfr;":"\ud835\udd27","jmath;":"\u0237","Jopf;":"\ud835\udd41","jopf;":"\ud835\udd5b","Jscr;":"\ud835\udca5","jscr;":"\ud835\udcbf","Jsercy;":"\u0408","jsercy;":"\u0458","Jukcy;":"\u0404","jukcy;":"\u0454","Kappa;":"\u039a","kappa;":"\u03ba","kappav;":"\u03f0","Kcedil;":"\u0136","kcedil;":"\u0137","Kcy;":"\u041a","kcy;":"\u043a","Kfr;":"\ud835\udd0e","kfr;":"\ud835\udd28","kgreen;":"\u0138","KHcy;":"\u0425","khcy;":"\u0445","KJcy;":"\u040c","kjcy;":"\u045c","Kopf;":"\ud835\udd42","kopf;":"\ud835\udd5c","Kscr;":"\ud835\udca6","kscr;":"\ud835\udcc0","lAarr;":"\u21da","Lacute;":"\u0139","lacute;":"\u013a","laemptyv;":"\u29b4","lagran;":"\u2112","Lambda;":"\u039b","lambda;":"\u03bb","Lang;":"\u27ea","lang;":"\u27e8","langd;":"\u2991","langle;":"\u27e8","lap;":"\u2a85","Laplacetrf;":"\u2112","laquo;":"\xab",laquo:"\xab","Larr;":"\u219e","lArr;":"\u21d0","larr;":"\u2190","larrb;":"\u21e4","larrbfs;":"\u291f","larrfs;":"\u291d","larrhk;":"\u21a9","larrlp;":"\u21ab","larrpl;":"\u2939","larrsim;":"\u2973","larrtl;":"\u21a2","lat;":"\u2aab","lAtail;":"\u291b","latail;":"\u2919","late;":"\u2aad","lates;":"\u2aad\ufe00","lBarr;":"\u290e","lbarr;":"\u290c","lbbrk;":"\u2772","lbrace;":"{","lbrack;":"[","lbrke;":"\u298b","lbrksld;":"\u298f","lbrkslu;":"\u298d","Lcaron;":"\u013d","lcaron;":"\u013e","Lcedil;":"\u013b","lcedil;":"\u013c","lceil;":"\u2308","lcub;":"{","Lcy;":"\u041b","lcy;":"\u043b","ldca;":"\u2936","ldquo;":"\u201c","ldquor;":"\u201e","ldrdhar;":"\u2967","ldrushar;":"\u294b","ldsh;":"\u21b2","lE;":"\u2266","le;":"\u2264","LeftAngleBracket;":"\u27e8","LeftArrow;":"\u2190","Leftarrow;":"\u21d0","leftarrow;":"\u2190","LeftArrowBar;":"\u21e4","LeftArrowRightArrow;":"\u21c6","leftarrowtail;":"\u21a2","LeftCeiling;":"\u2308","LeftDoubleBracket;":"\u27e6","LeftDownTeeVector;":"\u2961","LeftDownVector;":"\u21c3","LeftDownVectorBar;":"\u2959","LeftFloor;":"\u230a","leftharpoondown;":"\u21bd","leftharpoonup;":"\u21bc","leftleftarrows;":"\u21c7","LeftRightArrow;":"\u2194","Leftrightarrow;":"\u21d4","leftrightarrow;":"\u2194","leftrightarrows;":"\u21c6","leftrightharpoons;":"\u21cb","leftrightsquigarrow;":"\u21ad","LeftRightVector;":"\u294e","LeftTee;":"\u22a3","LeftTeeArrow;":"\u21a4","LeftTeeVector;":"\u295a","leftthreetimes;":"\u22cb","LeftTriangle;":"\u22b2","LeftTriangleBar;":"\u29cf","LeftTriangleEqual;":"\u22b4","LeftUpDownVector;":"\u2951","LeftUpTeeVector;":"\u2960","LeftUpVector;":"\u21bf","LeftUpVectorBar;":"\u2958","LeftVector;":"\u21bc","LeftVectorBar;":"\u2952","lEg;":"\u2a8b","leg;":"\u22da","leq;":"\u2264","leqq;":"\u2266","leqslant;":"\u2a7d","les;":"\u2a7d","lescc;":"\u2aa8","lesdot;":"\u2a7f","lesdoto;":"\u2a81","lesdotor;":"\u2a83","lesg;":"\u22da\ufe00","lesges;":"\u2a93","lessapprox;":"\u2a85","lessdot;":"\u22d6","lesseqgtr;":"\u22da","lesseqqgtr;":"\u2a8b","LessEqualGreater;":"\u22da","LessFullEqual;":"\u2266","LessGreater;":"\u2276","lessgtr;":"\u2276","LessLess;":"\u2aa1","lesssim;":"\u2272","LessSlantEqual;":"\u2a7d","LessTilde;":"\u2272","lfisht;":"\u297c","lfloor;":"\u230a","Lfr;":"\ud835\udd0f","lfr;":"\ud835\udd29","lg;":"\u2276","lgE;":"\u2a91","lHar;":"\u2962","lhard;":"\u21bd","lharu;":"\u21bc","lharul;":"\u296a","lhblk;":"\u2584","LJcy;":"\u0409","ljcy;":"\u0459","Ll;":"\u22d8","ll;":"\u226a","llarr;":"\u21c7","llcorner;":"\u231e","Lleftarrow;":"\u21da","llhard;":"\u296b","lltri;":"\u25fa","Lmidot;":"\u013f","lmidot;":"\u0140","lmoust;":"\u23b0","lmoustache;":"\u23b0","lnap;":"\u2a89","lnapprox;":"\u2a89","lnE;":"\u2268","lne;":"\u2a87","lneq;":"\u2a87","lneqq;":"\u2268","lnsim;":"\u22e6","loang;":"\u27ec","loarr;":"\u21fd","lobrk;":"\u27e6","LongLeftArrow;":"\u27f5","Longleftarrow;":"\u27f8","longleftarrow;":"\u27f5","LongLeftRightArrow;":"\u27f7","Longleftrightarrow;":"\u27fa","longleftrightarrow;":"\u27f7","longmapsto;":"\u27fc","LongRightArrow;":"\u27f6","Longrightarrow;":"\u27f9","longrightarrow;":"\u27f6","looparrowleft;":"\u21ab","looparrowright;":"\u21ac","lopar;":"\u2985","Lopf;":"\ud835\udd43","lopf;":"\ud835\udd5d","loplus;":"\u2a2d","lotimes;":"\u2a34","lowast;":"\u2217","lowbar;":"_","LowerLeftArrow;":"\u2199","LowerRightArrow;":"\u2198","loz;":"\u25ca","lozenge;":"\u25ca","lozf;":"\u29eb","lpar;":"(","lparlt;":"\u2993","lrarr;":"\u21c6","lrcorner;":"\u231f","lrhar;":"\u21cb","lrhard;":"\u296d","lrm;":"\u200e","lrtri;":"\u22bf","lsaquo;":"\u2039","Lscr;":"\u2112","lscr;":"\ud835\udcc1","Lsh;":"\u21b0","lsh;":"\u21b0","lsim;":"\u2272","lsime;":"\u2a8d","lsimg;":"\u2a8f","lsqb;":"[","lsquo;":"\u2018","lsquor;":"\u201a","Lstrok;":"\u0141","lstrok;":"\u0142","LT;":"<",LT:"<","Lt;":"\u226a","lt;":"<",lt:"<","ltcc;":"\u2aa6","ltcir;":"\u2a79","ltdot;":"\u22d6","lthree;":"\u22cb","ltimes;":"\u22c9","ltlarr;":"\u2976","ltquest;":"\u2a7b","ltri;":"\u25c3","ltrie;":"\u22b4","ltrif;":"\u25c2","ltrPar;":"\u2996","lurdshar;":"\u294a","luruhar;":"\u2966","lvertneqq;":"\u2268\ufe00","lvnE;":"\u2268\ufe00","macr;":"\xaf",macr:"\xaf","male;":"\u2642","malt;":"\u2720","maltese;":"\u2720","Map;":"\u2905","map;":"\u21a6","mapsto;":"\u21a6","mapstodown;":"\u21a7","mapstoleft;":"\u21a4","mapstoup;":"\u21a5","marker;":"\u25ae","mcomma;":"\u2a29","Mcy;":"\u041c","mcy;":"\u043c","mdash;":"\u2014","mDDot;":"\u223a","measuredangle;":"\u2221","MediumSpace;":"\u205f","Mellintrf;":"\u2133","Mfr;":"\ud835\udd10","mfr;":"\ud835\udd2a","mho;":"\u2127","micro;":"\xb5",micro:"\xb5","mid;":"\u2223","midast;":"*","midcir;":"\u2af0","middot;":"\xb7",middot:"\xb7","minus;":"\u2212","minusb;":"\u229f","minusd;":"\u2238","minusdu;":"\u2a2a","MinusPlus;":"\u2213","mlcp;":"\u2adb","mldr;":"\u2026","mnplus;":"\u2213","models;":"\u22a7","Mopf;":"\ud835\udd44","mopf;":"\ud835\udd5e","mp;":"\u2213","Mscr;":"\u2133","mscr;":"\ud835\udcc2","mstpos;":"\u223e","Mu;":"\u039c","mu;":"\u03bc","multimap;":"\u22b8","mumap;":"\u22b8","nabla;":"\u2207","Nacute;":"\u0143","nacute;":"\u0144","nang;":"\u2220\u20d2","nap;":"\u2249","napE;":"\u2a70\u0338","napid;":"\u224b\u0338","napos;":"\u0149","napprox;":"\u2249","natur;":"\u266e","natural;":"\u266e","naturals;":"\u2115","nbsp;":"\xa0",nbsp:"\xa0","nbump;":"\u224e\u0338","nbumpe;":"\u224f\u0338","ncap;":"\u2a43","Ncaron;":"\u0147","ncaron;":"\u0148","Ncedil;":"\u0145","ncedil;":"\u0146","ncong;":"\u2247","ncongdot;":"\u2a6d\u0338","ncup;":"\u2a42","Ncy;":"\u041d","ncy;":"\u043d","ndash;":"\u2013","ne;":"\u2260","nearhk;":"\u2924","neArr;":"\u21d7","nearr;":"\u2197","nearrow;":"\u2197","nedot;":"\u2250\u0338","NegativeMediumSpace;":"\u200b","NegativeThickSpace;":"\u200b","NegativeThinSpace;":"\u200b","NegativeVeryThinSpace;":"\u200b","nequiv;":"\u2262","nesear;":"\u2928","nesim;":"\u2242\u0338","NestedGreaterGreater;":"\u226b","NestedLessLess;":"\u226a","NewLine;":"\n","nexist;":"\u2204","nexists;":"\u2204","Nfr;":"\ud835\udd11","nfr;":"\ud835\udd2b","ngE;":"\u2267\u0338","nge;":"\u2271","ngeq;":"\u2271","ngeqq;":"\u2267\u0338","ngeqslant;":"\u2a7e\u0338","nges;":"\u2a7e\u0338","nGg;":"\u22d9\u0338","ngsim;":"\u2275","nGt;":"\u226b\u20d2","ngt;":"\u226f","ngtr;":"\u226f","nGtv;":"\u226b\u0338","nhArr;":"\u21ce","nharr;":"\u21ae","nhpar;":"\u2af2","ni;":"\u220b","nis;":"\u22fc","nisd;":"\u22fa","niv;":"\u220b","NJcy;":"\u040a","njcy;":"\u045a","nlArr;":"\u21cd","nlarr;":"\u219a","nldr;":"\u2025","nlE;":"\u2266\u0338","nle;":"\u2270","nLeftarrow;":"\u21cd","nleftarrow;":"\u219a","nLeftrightarrow;":"\u21ce","nleftrightarrow;":"\u21ae","nleq;":"\u2270","nleqq;":"\u2266\u0338","nleqslant;":"\u2a7d\u0338","nles;":"\u2a7d\u0338","nless;":"\u226e","nLl;":"\u22d8\u0338","nlsim;":"\u2274","nLt;":"\u226a\u20d2","nlt;":"\u226e","nltri;":"\u22ea","nltrie;":"\u22ec","nLtv;":"\u226a\u0338","nmid;":"\u2224","NoBreak;":"\u2060","NonBreakingSpace;":"\xa0","Nopf;":"\u2115","nopf;":"\ud835\udd5f","Not;":"\u2aec","not;":"\xac",not:"\xac","NotCongruent;":"\u2262","NotCupCap;":"\u226d","NotDoubleVerticalBar;":"\u2226","NotElement;":"\u2209","NotEqual;":"\u2260","NotEqualTilde;":"\u2242\u0338","NotExists;":"\u2204","NotGreater;":"\u226f","NotGreaterEqual;":"\u2271","NotGreaterFullEqual;":"\u2267\u0338","NotGreaterGreater;":"\u226b\u0338","NotGreaterLess;":"\u2279","NotGreaterSlantEqual;":"\u2a7e\u0338","NotGreaterTilde;":"\u2275","NotHumpDownHump;":"\u224e\u0338","NotHumpEqual;":"\u224f\u0338","notin;":"\u2209","notindot;":"\u22f5\u0338","notinE;":"\u22f9\u0338","notinva;":"\u2209","notinvb;":"\u22f7","notinvc;":"\u22f6","NotLeftTriangle;":"\u22ea","NotLeftTriangleBar;":"\u29cf\u0338","NotLeftTriangleEqual;":"\u22ec","NotLess;":"\u226e","NotLessEqual;":"\u2270","NotLessGreater;":"\u2278","NotLessLess;":"\u226a\u0338","NotLessSlantEqual;":"\u2a7d\u0338","NotLessTilde;":"\u2274","NotNestedGreaterGreater;":"\u2aa2\u0338","NotNestedLessLess;":"\u2aa1\u0338","notni;":"\u220c","notniva;":"\u220c","notnivb;":"\u22fe","notnivc;":"\u22fd","NotPrecedes;":"\u2280","NotPrecedesEqual;":"\u2aaf\u0338","NotPrecedesSlantEqual;":"\u22e0","NotReverseElement;":"\u220c","NotRightTriangle;":"\u22eb","NotRightTriangleBar;":"\u29d0\u0338","NotRightTriangleEqual;":"\u22ed","NotSquareSubset;":"\u228f\u0338","NotSquareSubsetEqual;":"\u22e2","NotSquareSuperset;":"\u2290\u0338","NotSquareSupersetEqual;":"\u22e3","NotSubset;":"\u2282\u20d2","NotSubsetEqual;":"\u2288","NotSucceeds;":"\u2281","NotSucceedsEqual;":"\u2ab0\u0338","NotSucceedsSlantEqual;":"\u22e1","NotSucceedsTilde;":"\u227f\u0338","NotSuperset;":"\u2283\u20d2","NotSupersetEqual;":"\u2289","NotTilde;":"\u2241","NotTildeEqual;":"\u2244","NotTildeFullEqual;":"\u2247","NotTildeTilde;":"\u2249","NotVerticalBar;":"\u2224","npar;":"\u2226","nparallel;":"\u2226","nparsl;":"\u2afd\u20e5","npart;":"\u2202\u0338","npolint;":"\u2a14","npr;":"\u2280","nprcue;":"\u22e0","npre;":"\u2aaf\u0338","nprec;":"\u2280","npreceq;":"\u2aaf\u0338","nrArr;":"\u21cf","nrarr;":"\u219b","nrarrc;":"\u2933\u0338","nrarrw;":"\u219d\u0338","nRightarrow;":"\u21cf","nrightarrow;":"\u219b","nrtri;":"\u22eb","nrtrie;":"\u22ed","nsc;":"\u2281","nsccue;":"\u22e1","nsce;":"\u2ab0\u0338","Nscr;":"\ud835\udca9","nscr;":"\ud835\udcc3","nshortmid;":"\u2224","nshortparallel;":"\u2226","nsim;":"\u2241","nsime;":"\u2244","nsimeq;":"\u2244","nsmid;":"\u2224","nspar;":"\u2226","nsqsube;":"\u22e2","nsqsupe;":"\u22e3","nsub;":"\u2284","nsubE;":"\u2ac5\u0338","nsube;":"\u2288","nsubset;":"\u2282\u20d2","nsubseteq;":"\u2288","nsubseteqq;":"\u2ac5\u0338","nsucc;":"\u2281","nsucceq;":"\u2ab0\u0338","nsup;":"\u2285","nsupE;":"\u2ac6\u0338","nsupe;":"\u2289","nsupset;":"\u2283\u20d2","nsupseteq;":"\u2289","nsupseteqq;":"\u2ac6\u0338","ntgl;":"\u2279","Ntilde;":"\xd1",Ntilde:"\xd1","ntilde;":"\xf1",ntilde:"\xf1","ntlg;":"\u2278","ntriangleleft;":"\u22ea","ntrianglelefteq;":"\u22ec","ntriangleright;":"\u22eb","ntrianglerighteq;":"\u22ed","Nu;":"\u039d","nu;":"\u03bd","num;":"#","numero;":"\u2116","numsp;":"\u2007","nvap;":"\u224d\u20d2","nVDash;":"\u22af","nVdash;":"\u22ae","nvDash;":"\u22ad","nvdash;":"\u22ac","nvge;":"\u2265\u20d2","nvgt;":">\u20d2","nvHarr;":"\u2904","nvinfin;":"\u29de","nvlArr;":"\u2902","nvle;":"\u2264\u20d2","nvlt;":"<\u20d2","nvltrie;":"\u22b4\u20d2","nvrArr;":"\u2903","nvrtrie;":"\u22b5\u20d2","nvsim;":"\u223c\u20d2","nwarhk;":"\u2923","nwArr;":"\u21d6","nwarr;":"\u2196","nwarrow;":"\u2196","nwnear;":"\u2927","Oacute;":"\xd3",Oacute:"\xd3","oacute;":"\xf3",oacute:"\xf3","oast;":"\u229b","ocir;":"\u229a","Ocirc;":"\xd4",Ocirc:"\xd4","ocirc;":"\xf4",ocirc:"\xf4","Ocy;":"\u041e","ocy;":"\u043e","odash;":"\u229d","Odblac;":"\u0150","odblac;":"\u0151","odiv;":"\u2a38","odot;":"\u2299","odsold;":"\u29bc","OElig;":"\u0152","oelig;":"\u0153","ofcir;":"\u29bf","Ofr;":"\ud835\udd12","ofr;":"\ud835\udd2c","ogon;":"\u02db","Ograve;":"\xd2",Ograve:"\xd2","ograve;":"\xf2",ograve:"\xf2","ogt;":"\u29c1","ohbar;":"\u29b5","ohm;":"\u03a9","oint;":"\u222e","olarr;":"\u21ba","olcir;":"\u29be","olcross;":"\u29bb","oline;":"\u203e","olt;":"\u29c0","Omacr;":"\u014c","omacr;":"\u014d","Omega;":"\u03a9","omega;":"\u03c9","Omicron;":"\u039f","omicron;":"\u03bf","omid;":"\u29b6","ominus;":"\u2296","Oopf;":"\ud835\udd46","oopf;":"\ud835\udd60","opar;":"\u29b7","OpenCurlyDoubleQuote;":"\u201c","OpenCurlyQuote;":"\u2018","operp;":"\u29b9","oplus;":"\u2295","Or;":"\u2a54","or;":"\u2228","orarr;":"\u21bb","ord;":"\u2a5d","order;":"\u2134","orderof;":"\u2134","ordf;":"\xaa",ordf:"\xaa","ordm;":"\xba",ordm:"\xba","origof;":"\u22b6","oror;":"\u2a56","orslope;":"\u2a57","orv;":"\u2a5b","oS;":"\u24c8","Oscr;":"\ud835\udcaa","oscr;":"\u2134","Oslash;":"\xd8",Oslash:"\xd8","oslash;":"\xf8",oslash:"\xf8","osol;":"\u2298","Otilde;":"\xd5",Otilde:"\xd5","otilde;":"\xf5",otilde:"\xf5","Otimes;":"\u2a37","otimes;":"\u2297","otimesas;":"\u2a36","Ouml;":"\xd6",Ouml:"\xd6","ouml;":"\xf6",ouml:"\xf6","ovbar;":"\u233d","OverBar;":"\u203e","OverBrace;":"\u23de","OverBracket;":"\u23b4","OverParenthesis;":"\u23dc","par;":"\u2225","para;":"\xb6",para:"\xb6","parallel;":"\u2225","parsim;":"\u2af3","parsl;":"\u2afd","part;":"\u2202","PartialD;":"\u2202","Pcy;":"\u041f","pcy;":"\u043f","percnt;":"%","period;":".","permil;":"\u2030","perp;":"\u22a5","pertenk;":"\u2031","Pfr;":"\ud835\udd13","pfr;":"\ud835\udd2d","Phi;":"\u03a6","phi;":"\u03c6","phiv;":"\u03d5","phmmat;":"\u2133","phone;":"\u260e","Pi;":"\u03a0","pi;":"\u03c0","pitchfork;":"\u22d4","piv;":"\u03d6","planck;":"\u210f","planckh;":"\u210e","plankv;":"\u210f","plus;":"+","plusacir;":"\u2a23","plusb;":"\u229e","pluscir;":"\u2a22","plusdo;":"\u2214","plusdu;":"\u2a25","pluse;":"\u2a72","PlusMinus;":"\xb1","plusmn;":"\xb1",plusmn:"\xb1","plussim;":"\u2a26","plustwo;":"\u2a27","pm;":"\xb1","Poincareplane;":"\u210c","pointint;":"\u2a15","Popf;":"\u2119","popf;":"\ud835\udd61","pound;":"\xa3",pound:"\xa3","Pr;":"\u2abb","pr;":"\u227a","prap;":"\u2ab7","prcue;":"\u227c","prE;":"\u2ab3","pre;":"\u2aaf","prec;":"\u227a","precapprox;":"\u2ab7","preccurlyeq;":"\u227c","Precedes;":"\u227a","PrecedesEqual;":"\u2aaf","PrecedesSlantEqual;":"\u227c","PrecedesTilde;":"\u227e","preceq;":"\u2aaf","precnapprox;":"\u2ab9","precneqq;":"\u2ab5","precnsim;":"\u22e8","precsim;":"\u227e","Prime;":"\u2033","prime;":"\u2032","primes;":"\u2119","prnap;":"\u2ab9","prnE;":"\u2ab5","prnsim;":"\u22e8","prod;":"\u220f","Product;":"\u220f","profalar;":"\u232e","profline;":"\u2312","profsurf;":"\u2313","prop;":"\u221d","Proportion;":"\u2237","Proportional;":"\u221d","propto;":"\u221d","prsim;":"\u227e","prurel;":"\u22b0","Pscr;":"\ud835\udcab","pscr;":"\ud835\udcc5","Psi;":"\u03a8","psi;":"\u03c8","puncsp;":"\u2008","Qfr;":"\ud835\udd14","qfr;":"\ud835\udd2e","qint;":"\u2a0c","Qopf;":"\u211a","qopf;":"\ud835\udd62","qprime;":"\u2057","Qscr;":"\ud835\udcac","qscr;":"\ud835\udcc6","quaternions;":"\u210d","quatint;":"\u2a16","quest;":"?","questeq;":"\u225f","QUOT;":'"',QUOT:'"',"quot;":'"',quot:'"',"rAarr;":"\u21db","race;":"\u223d\u0331","Racute;":"\u0154","racute;":"\u0155","radic;":"\u221a","raemptyv;":"\u29b3","Rang;":"\u27eb","rang;":"\u27e9","rangd;":"\u2992","range;":"\u29a5","rangle;":"\u27e9","raquo;":"\xbb",raquo:"\xbb","Rarr;":"\u21a0","rArr;":"\u21d2","rarr;":"\u2192","rarrap;":"\u2975","rarrb;":"\u21e5","rarrbfs;":"\u2920","rarrc;":"\u2933","rarrfs;":"\u291e","rarrhk;":"\u21aa","rarrlp;":"\u21ac","rarrpl;":"\u2945","rarrsim;":"\u2974","Rarrtl;":"\u2916","rarrtl;":"\u21a3","rarrw;":"\u219d","rAtail;":"\u291c","ratail;":"\u291a","ratio;":"\u2236","rationals;":"\u211a","RBarr;":"\u2910","rBarr;":"\u290f","rbarr;":"\u290d","rbbrk;":"\u2773","rbrace;":"}","rbrack;":"]","rbrke;":"\u298c","rbrksld;":"\u298e","rbrkslu;":"\u2990","Rcaron;":"\u0158","rcaron;":"\u0159","Rcedil;":"\u0156","rcedil;":"\u0157","rceil;":"\u2309","rcub;":"}","Rcy;":"\u0420","rcy;":"\u0440","rdca;":"\u2937","rdldhar;":"\u2969","rdquo;":"\u201d","rdquor;":"\u201d","rdsh;":"\u21b3","Re;":"\u211c","real;":"\u211c","realine;":"\u211b","realpart;":"\u211c","reals;":"\u211d","rect;":"\u25ad","REG;":"\xae",REG:"\xae","reg;":"\xae",reg:"\xae","ReverseElement;":"\u220b","ReverseEquilibrium;":"\u21cb","ReverseUpEquilibrium;":"\u296f","rfisht;":"\u297d","rfloor;":"\u230b","Rfr;":"\u211c","rfr;":"\ud835\udd2f","rHar;":"\u2964","rhard;":"\u21c1","rharu;":"\u21c0","rharul;":"\u296c","Rho;":"\u03a1","rho;":"\u03c1","rhov;":"\u03f1","RightAngleBracket;":"\u27e9","RightArrow;":"\u2192","Rightarrow;":"\u21d2","rightarrow;":"\u2192","RightArrowBar;":"\u21e5","RightArrowLeftArrow;":"\u21c4","rightarrowtail;":"\u21a3","RightCeiling;":"\u2309","RightDoubleBracket;":"\u27e7","RightDownTeeVector;":"\u295d","RightDownVector;":"\u21c2","RightDownVectorBar;":"\u2955","RightFloor;":"\u230b","rightharpoondown;":"\u21c1","rightharpoonup;":"\u21c0","rightleftarrows;":"\u21c4","rightleftharpoons;":"\u21cc","rightrightarrows;":"\u21c9","rightsquigarrow;":"\u219d","RightTee;":"\u22a2","RightTeeArrow;":"\u21a6","RightTeeVector;":"\u295b","rightthreetimes;":"\u22cc","RightTriangle;":"\u22b3","RightTriangleBar;":"\u29d0","RightTriangleEqual;":"\u22b5","RightUpDownVector;":"\u294f","RightUpTeeVector;":"\u295c","RightUpVector;":"\u21be","RightUpVectorBar;":"\u2954","RightVector;":"\u21c0","RightVectorBar;":"\u2953","ring;":"\u02da","risingdotseq;":"\u2253","rlarr;":"\u21c4","rlhar;":"\u21cc","rlm;":"\u200f","rmoust;":"\u23b1","rmoustache;":"\u23b1","rnmid;":"\u2aee","roang;":"\u27ed","roarr;":"\u21fe","robrk;":"\u27e7","ropar;":"\u2986","Ropf;":"\u211d","ropf;":"\ud835\udd63","roplus;":"\u2a2e","rotimes;":"\u2a35","RoundImplies;":"\u2970","rpar;":")","rpargt;":"\u2994","rppolint;":"\u2a12","rrarr;":"\u21c9","Rrightarrow;":"\u21db","rsaquo;":"\u203a","Rscr;":"\u211b","rscr;":"\ud835\udcc7","Rsh;":"\u21b1","rsh;":"\u21b1","rsqb;":"]","rsquo;":"\u2019","rsquor;":"\u2019","rthree;":"\u22cc","rtimes;":"\u22ca","rtri;":"\u25b9","rtrie;":"\u22b5","rtrif;":"\u25b8","rtriltri;":"\u29ce","RuleDelayed;":"\u29f4","ruluhar;":"\u2968","rx;":"\u211e","Sacute;":"\u015a","sacute;":"\u015b","sbquo;":"\u201a","Sc;":"\u2abc","sc;":"\u227b","scap;":"\u2ab8","Scaron;":"\u0160","scaron;":"\u0161","sccue;":"\u227d","scE;":"\u2ab4","sce;":"\u2ab0","Scedil;":"\u015e","scedil;":"\u015f","Scirc;":"\u015c","scirc;":"\u015d","scnap;":"\u2aba","scnE;":"\u2ab6","scnsim;":"\u22e9","scpolint;":"\u2a13","scsim;":"\u227f","Scy;":"\u0421","scy;":"\u0441","sdot;":"\u22c5","sdotb;":"\u22a1","sdote;":"\u2a66","searhk;":"\u2925","seArr;":"\u21d8","searr;":"\u2198","searrow;":"\u2198","sect;":"\xa7",sect:"\xa7","semi;":";","seswar;":"\u2929","setminus;":"\u2216","setmn;":"\u2216","sext;":"\u2736","Sfr;":"\ud835\udd16","sfr;":"\ud835\udd30","sfrown;":"\u2322","sharp;":"\u266f","SHCHcy;":"\u0429","shchcy;":"\u0449","SHcy;":"\u0428","shcy;":"\u0448","ShortDownArrow;":"\u2193","ShortLeftArrow;":"\u2190","shortmid;":"\u2223","shortparallel;":"\u2225","ShortRightArrow;":"\u2192","ShortUpArrow;":"\u2191","shy;":"\xad",shy:"\xad","Sigma;":"\u03a3","sigma;":"\u03c3","sigmaf;":"\u03c2","sigmav;":"\u03c2","sim;":"\u223c","simdot;":"\u2a6a","sime;":"\u2243","simeq;":"\u2243","simg;":"\u2a9e","simgE;":"\u2aa0","siml;":"\u2a9d","simlE;":"\u2a9f","simne;":"\u2246","simplus;":"\u2a24","simrarr;":"\u2972","slarr;":"\u2190","SmallCircle;":"\u2218","smallsetminus;":"\u2216","smashp;":"\u2a33","smeparsl;":"\u29e4","smid;":"\u2223","smile;":"\u2323","smt;":"\u2aaa","smte;":"\u2aac","smtes;":"\u2aac\ufe00","SOFTcy;":"\u042c","softcy;":"\u044c","sol;":"/","solb;":"\u29c4","solbar;":"\u233f","Sopf;":"\ud835\udd4a","sopf;":"\ud835\udd64","spades;":"\u2660","spadesuit;":"\u2660","spar;":"\u2225","sqcap;":"\u2293","sqcaps;":"\u2293\ufe00","sqcup;":"\u2294","sqcups;":"\u2294\ufe00","Sqrt;":"\u221a","sqsub;":"\u228f","sqsube;":"\u2291","sqsubset;":"\u228f","sqsubseteq;":"\u2291","sqsup;":"\u2290","sqsupe;":"\u2292","sqsupset;":"\u2290","sqsupseteq;":"\u2292","squ;":"\u25a1","Square;":"\u25a1","square;":"\u25a1","SquareIntersection;":"\u2293","SquareSubset;":"\u228f","SquareSubsetEqual;":"\u2291","SquareSuperset;":"\u2290","SquareSupersetEqual;":"\u2292","SquareUnion;":"\u2294","squarf;":"\u25aa","squf;":"\u25aa","srarr;":"\u2192","Sscr;":"\ud835\udcae","sscr;":"\ud835\udcc8","ssetmn;":"\u2216","ssmile;":"\u2323","sstarf;":"\u22c6","Star;":"\u22c6","star;":"\u2606","starf;":"\u2605","straightepsilon;":"\u03f5","straightphi;":"\u03d5","strns;":"\xaf","Sub;":"\u22d0","sub;":"\u2282","subdot;":"\u2abd","subE;":"\u2ac5","sube;":"\u2286","subedot;":"\u2ac3","submult;":"\u2ac1","subnE;":"\u2acb","subne;":"\u228a","subplus;":"\u2abf","subrarr;":"\u2979","Subset;":"\u22d0","subset;":"\u2282","subseteq;":"\u2286","subseteqq;":"\u2ac5","SubsetEqual;":"\u2286","subsetneq;":"\u228a","subsetneqq;":"\u2acb","subsim;":"\u2ac7","subsub;":"\u2ad5","subsup;":"\u2ad3","succ;":"\u227b","succapprox;":"\u2ab8","succcurlyeq;":"\u227d","Succeeds;":"\u227b","SucceedsEqual;":"\u2ab0","SucceedsSlantEqual;":"\u227d","SucceedsTilde;":"\u227f","succeq;":"\u2ab0","succnapprox;":"\u2aba","succneqq;":"\u2ab6","succnsim;":"\u22e9","succsim;":"\u227f","SuchThat;":"\u220b","Sum;":"\u2211","sum;":"\u2211","sung;":"\u266a","Sup;":"\u22d1","sup;":"\u2283","sup1;":"\xb9",sup1:"\xb9","sup2;":"\xb2",sup2:"\xb2","sup3;":"\xb3",sup3:"\xb3","supdot;":"\u2abe","supdsub;":"\u2ad8","supE;":"\u2ac6","supe;":"\u2287","supedot;":"\u2ac4","Superset;":"\u2283","SupersetEqual;":"\u2287","suphsol;":"\u27c9","suphsub;":"\u2ad7","suplarr;":"\u297b","supmult;":"\u2ac2","supnE;":"\u2acc","supne;":"\u228b","supplus;":"\u2ac0","Supset;":"\u22d1","supset;":"\u2283","supseteq;":"\u2287","supseteqq;":"\u2ac6","supsetneq;":"\u228b","supsetneqq;":"\u2acc","supsim;":"\u2ac8","supsub;":"\u2ad4","supsup;":"\u2ad6","swarhk;":"\u2926","swArr;":"\u21d9","swarr;":"\u2199","swarrow;":"\u2199","swnwar;":"\u292a","szlig;":"\xdf",szlig:"\xdf","Tab;":"\t","target;":"\u2316","Tau;":"\u03a4","tau;":"\u03c4","tbrk;":"\u23b4","Tcaron;":"\u0164","tcaron;":"\u0165","Tcedil;":"\u0162","tcedil;":"\u0163","Tcy;":"\u0422","tcy;":"\u0442","tdot;":"\u20db","telrec;":"\u2315","Tfr;":"\ud835\udd17","tfr;":"\ud835\udd31","there4;":"\u2234","Therefore;":"\u2234","therefore;":"\u2234","Theta;":"\u0398","theta;":"\u03b8","thetasym;":"\u03d1","thetav;":"\u03d1","thickapprox;":"\u2248","thicksim;":"\u223c","ThickSpace;":"\u205f\u200a","thinsp;":"\u2009","ThinSpace;":"\u2009","thkap;":"\u2248","thksim;":"\u223c","THORN;":"\xde",THORN:"\xde","thorn;":"\xfe",thorn:"\xfe","Tilde;":"\u223c","tilde;":"\u02dc","TildeEqual;":"\u2243","TildeFullEqual;":"\u2245","TildeTilde;":"\u2248","times;":"\xd7",times:"\xd7","timesb;":"\u22a0","timesbar;":"\u2a31","timesd;":"\u2a30","tint;":"\u222d","toea;":"\u2928","top;":"\u22a4","topbot;":"\u2336","topcir;":"\u2af1","Topf;":"\ud835\udd4b","topf;":"\ud835\udd65","topfork;":"\u2ada","tosa;":"\u2929","tprime;":"\u2034","TRADE;":"\u2122","trade;":"\u2122","triangle;":"\u25b5","triangledown;":"\u25bf","triangleleft;":"\u25c3","trianglelefteq;":"\u22b4","triangleq;":"\u225c","triangleright;":"\u25b9","trianglerighteq;":"\u22b5","tridot;":"\u25ec","trie;":"\u225c","triminus;":"\u2a3a","TripleDot;":"\u20db","triplus;":"\u2a39","trisb;":"\u29cd","tritime;":"\u2a3b","trpezium;":"\u23e2","Tscr;":"\ud835\udcaf","tscr;":"\ud835\udcc9","TScy;":"\u0426","tscy;":"\u0446","TSHcy;":"\u040b","tshcy;":"\u045b","Tstrok;":"\u0166","tstrok;":"\u0167","twixt;":"\u226c","twoheadleftarrow;":"\u219e","twoheadrightarrow;":"\u21a0","Uacute;":"\xda",Uacute:"\xda","uacute;":"\xfa",uacute:"\xfa","Uarr;":"\u219f","uArr;":"\u21d1","uarr;":"\u2191","Uarrocir;":"\u2949","Ubrcy;":"\u040e","ubrcy;":"\u045e","Ubreve;":"\u016c","ubreve;":"\u016d","Ucirc;":"\xdb",Ucirc:"\xdb","ucirc;":"\xfb",ucirc:"\xfb","Ucy;":"\u0423","ucy;":"\u0443","udarr;":"\u21c5","Udblac;":"\u0170","udblac;":"\u0171","udhar;":"\u296e","ufisht;":"\u297e","Ufr;":"\ud835\udd18","ufr;":"\ud835\udd32","Ugrave;":"\xd9",Ugrave:"\xd9","ugrave;":"\xf9",ugrave:"\xf9","uHar;":"\u2963","uharl;":"\u21bf","uharr;":"\u21be","uhblk;":"\u2580","ulcorn;":"\u231c","ulcorner;":"\u231c","ulcrop;":"\u230f","ultri;":"\u25f8","Umacr;":"\u016a","umacr;":"\u016b","uml;":"\xa8",uml:"\xa8","UnderBar;":"_","UnderBrace;":"\u23df","UnderBracket;":"\u23b5","UnderParenthesis;":"\u23dd","Union;":"\u22c3","UnionPlus;":"\u228e","Uogon;":"\u0172","uogon;":"\u0173","Uopf;":"\ud835\udd4c","uopf;":"\ud835\udd66","UpArrow;":"\u2191","Uparrow;":"\u21d1","uparrow;":"\u2191","UpArrowBar;":"\u2912","UpArrowDownArrow;":"\u21c5","UpDownArrow;":"\u2195","Updownarrow;":"\u21d5","updownarrow;":"\u2195","UpEquilibrium;":"\u296e","upharpoonleft;":"\u21bf","upharpoonright;":"\u21be","uplus;":"\u228e","UpperLeftArrow;":"\u2196","UpperRightArrow;":"\u2197","Upsi;":"\u03d2","upsi;":"\u03c5","upsih;":"\u03d2","Upsilon;":"\u03a5","upsilon;":"\u03c5","UpTee;":"\u22a5","UpTeeArrow;":"\u21a5","upuparrows;":"\u21c8","urcorn;":"\u231d","urcorner;":"\u231d","urcrop;":"\u230e","Uring;":"\u016e","uring;":"\u016f","urtri;":"\u25f9","Uscr;":"\ud835\udcb0","uscr;":"\ud835\udcca","utdot;":"\u22f0","Utilde;":"\u0168","utilde;":"\u0169","utri;":"\u25b5","utrif;":"\u25b4","uuarr;":"\u21c8","Uuml;":"\xdc",Uuml:"\xdc","uuml;":"\xfc",uuml:"\xfc","uwangle;":"\u29a7","vangrt;":"\u299c","varepsilon;":"\u03f5","varkappa;":"\u03f0","varnothing;":"\u2205","varphi;":"\u03d5","varpi;":"\u03d6","varpropto;":"\u221d","vArr;":"\u21d5","varr;":"\u2195","varrho;":"\u03f1","varsigma;":"\u03c2","varsubsetneq;":"\u228a\ufe00","varsubsetneqq;":"\u2acb\ufe00","varsupsetneq;":"\u228b\ufe00","varsupsetneqq;":"\u2acc\ufe00","vartheta;":"\u03d1","vartriangleleft;":"\u22b2","vartriangleright;":"\u22b3","Vbar;":"\u2aeb","vBar;":"\u2ae8","vBarv;":"\u2ae9","Vcy;":"\u0412","vcy;":"\u0432","VDash;":"\u22ab","Vdash;":"\u22a9","vDash;":"\u22a8","vdash;":"\u22a2","Vdashl;":"\u2ae6","Vee;":"\u22c1","vee;":"\u2228","veebar;":"\u22bb","veeeq;":"\u225a","vellip;":"\u22ee","Verbar;":"\u2016","verbar;":"|","Vert;":"\u2016","vert;":"|","VerticalBar;":"\u2223","VerticalLine;":"|","VerticalSeparator;":"\u2758","VerticalTilde;":"\u2240","VeryThinSpace;":"\u200a","Vfr;":"\ud835\udd19","vfr;":"\ud835\udd33","vltri;":"\u22b2","vnsub;":"\u2282\u20d2","vnsup;":"\u2283\u20d2","Vopf;":"\ud835\udd4d","vopf;":"\ud835\udd67","vprop;":"\u221d","vrtri;":"\u22b3","Vscr;":"\ud835\udcb1","vscr;":"\ud835\udccb","vsubnE;":"\u2acb\ufe00","vsubne;":"\u228a\ufe00","vsupnE;":"\u2acc\ufe00","vsupne;":"\u228b\ufe00","Vvdash;":"\u22aa","vzigzag;":"\u299a","Wcirc;":"\u0174","wcirc;":"\u0175","wedbar;":"\u2a5f","Wedge;":"\u22c0","wedge;":"\u2227","wedgeq;":"\u2259","weierp;":"\u2118","Wfr;":"\ud835\udd1a","wfr;":"\ud835\udd34","Wopf;":"\ud835\udd4e","wopf;":"\ud835\udd68","wp;":"\u2118","wr;":"\u2240","wreath;":"\u2240","Wscr;":"\ud835\udcb2","wscr;":"\ud835\udccc","xcap;":"\u22c2","xcirc;":"\u25ef","xcup;":"\u22c3","xdtri;":"\u25bd","Xfr;":"\ud835\udd1b","xfr;":"\ud835\udd35","xhArr;":"\u27fa","xharr;":"\u27f7","Xi;":"\u039e","xi;":"\u03be","xlArr;":"\u27f8","xlarr;":"\u27f5","xmap;":"\u27fc","xnis;":"\u22fb","xodot;":"\u2a00","Xopf;":"\ud835\udd4f","xopf;":"\ud835\udd69","xoplus;":"\u2a01","xotime;":"\u2a02","xrArr;":"\u27f9","xrarr;":"\u27f6","Xscr;":"\ud835\udcb3","xscr;":"\ud835\udccd","xsqcup;":"\u2a06","xuplus;":"\u2a04","xutri;":"\u25b3","xvee;":"\u22c1","xwedge;":"\u22c0","Yacute;":"\xdd",Yacute:"\xdd","yacute;":"\xfd",yacute:"\xfd","YAcy;":"\u042f","yacy;":"\u044f","Ycirc;":"\u0176","ycirc;":"\u0177","Ycy;":"\u042b","ycy;":"\u044b","yen;":"\xa5",yen:"\xa5","Yfr;":"\ud835\udd1c","yfr;":"\ud835\udd36","YIcy;":"\u0407","yicy;":"\u0457","Yopf;":"\ud835\udd50","yopf;":"\ud835\udd6a","Yscr;":"\ud835\udcb4","yscr;":"\ud835\udcce","YUcy;":"\u042e","yucy;":"\u044e","Yuml;":"\u0178","yuml;":"\xff",yuml:"\xff","Zacute;":"\u0179","zacute;":"\u017a","Zcaron;":"\u017d","zcaron;":"\u017e","Zcy;":"\u0417","zcy;":"\u0437","Zdot;":"\u017b","zdot;":"\u017c","zeetrf;":"\u2128","ZeroWidthSpace;":"\u200b","Zeta;":"\u0396","zeta;":"\u03b6","Zfr;":"\u2128","zfr;":"\ud835\udd37","ZHcy;":"\u0416","zhcy;":"\u0436","zigrarr;":"\u21dd","Zopf;":"\u2124","zopf;":"\ud835\udd6b","Zscr;":"\ud835\udcb5","zscr;":"\ud835\udccf","zwj;":"\u200d","zwnj;":"\u200c"};function _n(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 bn(e,t){const n=e.length-t.length;return n>0?e.lastIndexOf(t)===n:0===n&&e===t}function vn(e,t){let n="";for(;t>0;)1===(1&t)&&(n+=e),e+=e,t>>>=1;return n}var wn="a".charCodeAt(0),kn="z".charCodeAt(0),yn="A".charCodeAt(0),Tn="Z".charCodeAt(0),Cn="0".charCodeAt(0),Sn="9".charCodeAt(0);function Ln(e,t){const n=e.charCodeAt(t);return wn<=n&&n<=kn||yn<=n&&n<=Tn||Cn<=n&&n<=Sn}function xn(e){return"undefined"!==typeof e}var En=class{isApplicable(){return!0}constructor(e,t){this.id=e,this._tags=[],this._tagMap={},this._valueSetMap={},this._tags=t.tags||[],this._globalAttributes=t.globalAttributes||[],this._tags.forEach((e=>{this._tagMap[e.name.toLowerCase()]=e})),t.valueSets&&t.valueSets.forEach((e=>{this._valueSetMap[e.name]=e.values}))}getId(){return this.id}provideTags(){return this._tags}provideAttributes(e){const t=[],n=e=>{t.push(e)},i=this._tagMap[e.toLowerCase()];return i&&i.attributes.forEach(n),this._globalAttributes.forEach(n),t}provideValues(e,t){const n=[];t=t.toLowerCase();const i=e=>{e.forEach((e=>{e.name.toLowerCase()===t&&(e.values&&e.values.forEach((e=>{n.push(e)})),e.valueSet&&this._valueSetMap[e.valueSet]&&this._valueSetMap[e.valueSet].forEach((e=>{n.push(e)})))}))},r=this._tagMap[e.toLowerCase()];return r&&i(r.attributes),i(this._globalAttributes),n}};function An(e,t={},n){const i={kind:n?"markdown":"plaintext",value:""};if(e.description&&!1!==t.documentation){const t=function(e){if(e)return"string"===typeof e?{kind:"markdown",value:e}:{kind:"markdown",value:e.value}}(e.description);t&&(i.value+=t.value)}if(e.references&&e.references.length>0&&!1!==t.references&&(i.value.length&&(i.value+="\n\n"),i.value+=n?e.references.map((e=>`[${e.name}](${e.url})`)).join(" | "):e.references.map((e=>`${e.name}: ${e.url}`)).join("\n")),""!==i.value)return i}var In=class{constructor(e,t){this.dataManager=e,this.readDirectory=t,this.atributeCompletions=[]}onHtmlAttributeValue(e){this.dataManager.isPathAttribute(e.tag,e.attribute)&&this.atributeCompletions.push(e)}async computeCompletions(e,t){const n={items:[],isIncomplete:!1};for(const i of this.atributeCompletions){const r=Nn(e.getText(i.range));if(Rn(r))if("."===r||".."===r)n.isIncomplete=!0;else{const s=Dn(i.value,r,i.range),o=await this.providePathSuggestions(i.value,s,e,t);for(const e of o)n.items.push(e)}}return n}async providePathSuggestions(e,t,n,i){const r=e.substring(0,e.lastIndexOf("/")+1);let s=i.resolveReference(r||".",n.uri);if(s)try{const e=[],n=await this.readDirectory(s);for(const[i,r]of n)i.charCodeAt(0)!==Mn&&e.push(On(i,r===qt.Directory,t));return e}catch(o){}return[]}},Mn=".".charCodeAt(0);function Nn(e){return _n(e,"'")||_n(e,'"')?e.slice(1,-1):e}function Rn(e){return!(_n(e,"http")||_n(e,"https")||_n(e,"//"))}function Dn(e,t,n){let i;const r=e.lastIndexOf("/");if(-1===r)i=function(e,t,n){const i=Bn(e.start,t),r=Bn(e.end,n);return m.create(i,r)}(n,1,-1);else{const e=t.slice(r+1),s=Bn(n.end,-1-e.length),o=e.indexOf(" ");let a;a=-1!==o?Bn(s,o):Bn(n.end,-1),i=m.create(s,a)}return i}function On(e,t,n){return t?{label:e+="/",kind:me.Folder,textEdit:U.replace(n,e),command:{title:"Suggest",command:"editor.action.triggerSuggest"}}:{label:e,kind:me.File,textEdit:U.replace(n,e)}}function Bn(e,t){return g.create(e.line,e.character+t)}var zn=class{constructor(e,t){this.lsOptions=e,this.dataManager=t,this.completionParticipants=[]}setCompletionParticipants(e){this.completionParticipants=e||[]}async doComplete2(e,t,n,i,r){if(!this.lsOptions.fileSystemProvider||!this.lsOptions.fileSystemProvider.readDirectory)return this.doComplete(e,t,n,r);const s=new In(this.dataManager,this.lsOptions.fileSystemProvider.readDirectory),o=this.completionParticipants;this.completionParticipants=[s].concat(o);const a=this.doComplete(e,t,n,r);try{const t=await s.computeCompletions(e,i);return{isIncomplete:a.isIncomplete||t.isIncomplete,items:t.items.concat(a.items)}}finally{this.completionParticipants=o}}doComplete(e,t,n,i){const r=this._doComplete(e,t,n,i);return this.convertCompletionList(r)}_doComplete(e,t,n,i){const r={isIncomplete:!1,items:[]},s=this.completionParticipants,a=this.dataManager.getDataProviders().filter((t=>t.isApplicable(e.languageId)&&(!i||!1!==i[t.getId()]))),l=this.dataManager.getVoidElements(a),h=this.doesSupportMarkdown(),c=e.getText(),d=e.offsetAt(t),u=n.findNodeBefore(d);if(!u)return r;const f=un(c,u.start);let p,_="";function b(t,n=d){return t>d&&(t=d),{start:e.positionAt(t),end:e.positionAt(n)}}function v(e,t){const n=b(e,t);return a.forEach((e=>{e.provideTags().forEach((e=>{r.items.push({label:e.name,kind:me.Property,documentation:An(e,void 0,h),textEdit:U.replace(n,e.name),insertTextFormat:_e.PlainText})}))})),r}function w(e){let t=e;for(;t>0;){const n=c.charAt(t-1);if("\n\r".indexOf(n)>=0)return c.substring(t,e);if(!Pn(n))return null;t--}return c.substring(0,e)}function k(e,t,n=d){const i=b(e,n),s=Fn(c,n,Wt.WithinEndTag,Pt.EndTagClose)?"":">";let o=u;for(t&&(o=o.parent);o;){const t=o.tag;if(t&&(!o.closed||o.endTagStart&&o.endTagStart>d)){const n={label:"/"+t,kind:me.Property,filterText:"/"+t,textEdit:U.replace(i,"/"+t+s),insertTextFormat:_e.PlainText},a=w(o.start),l=w(e-1);if(null!==a&&null!==l&&a!==l){const i=a+"</"+t+s;n.textEdit=U.replace(b(e-1-l.length),i),n.filterText=l+"</"+t}return r.items.push(n),r}o=o.parent}return t||a.forEach((e=>{e.provideTags().forEach((e=>{r.items.push({label:"/"+e.name,kind:me.Property,documentation:An(e,void 0,h),filterText:"/"+e.name+s,textEdit:U.replace(i,"/"+e.name+s),insertTextFormat:_e.PlainText})}))})),r}const y=(t,n)=>{if(i&&i.hideAutoCompleteProposals)return r;if(!this.dataManager.isVoidElement(n,l)){const i=e.positionAt(t);r.items.push({label:"</"+n+">",kind:me.Property,filterText:"</"+n+">",textEdit:U.insert(i,"$0</"+n+">"),insertTextFormat:_e.Snippet})}return r};function T(e,t){return v(e,t),k(e,!0,t),r}function C(e,t=d){let s=d;for(;s<t&&"<"!==c[s];)s++;const o=c.substring(e,t),l=b(e,s);let g="";if(!Fn(c,t,Wt.AfterAttributeName,Pt.DelimiterAssign)){const e=i?.attributeDefaultValue??"doublequotes";g="empty"===e?"=$1":"singlequotes"===e?"='$1'":'="$1"'}const f=function(){const e=Object.create(null);return u.attributeNames.forEach((t=>{e[t]=!0})),e}();return f[o]=!1,a.forEach((e=>{e.provideAttributes(_).forEach((e=>{if(f[e.name])return;f[e.name]=!0;let t,n=e.name;"v"!==e.valueSet&&g.length&&(n+=g,(e.valueSet||"style"===e.name)&&(t={title:"Suggest",command:"editor.action.triggerSuggest"})),r.items.push({label:e.name,kind:"handler"===e.valueSet?me.Function:me.Value,documentation:An(e,void 0,h),textEdit:U.replace(l,n),insertTextFormat:_e.Snippet,command:t})}))})),function(e,t){const i="data-",s={};function o(e){e.attributeNames.forEach((e=>{!_n(e,i)||s[e]||t[e]||(s[e]=e+'="$1"')})),e.children.forEach((e=>o(e)))}s[i]=`${i}$1="$2"`,n&&n.roots.forEach((e=>o(e)));Object.keys(s).forEach((t=>r.items.push({label:t,kind:me.Value,textEdit:U.replace(e,s[t]),insertTextFormat:_e.Snippet})))}(l,f),r}function S(n,i=d){let o,l,u;if(d>n&&d<=i&&(g=c[n],/^["']*$/.test(g))){const e=n+1;let t=i;i>n&&c[i-1]===c[n]&&t--;const r=function(e,t,n){for(;t>n&&!Pn(e[t-1]);)t--;return t}(c,d,e),s=function(e,t,n){for(;t<n&&!Pn(e[t]);)t++;return t}(c,d,t);o=b(r,s),u=d>=e&&d<=t?c.substring(e,d):"",l=!1}else o=b(n,i),u=c.substring(n,d),l=!0;var g;if(s.length>0){const r=_.toLowerCase(),o=p.toLowerCase(),a=b(n,i);for(const n of s)n.onHtmlAttributeValue&&n.onHtmlAttributeValue({document:e,position:t,tag:r,attribute:o,value:u,range:a})}return a.forEach((e=>{e.provideValues(_,p).forEach((e=>{const t=l?'"'+e.name+'"':e.name;r.items.push({label:e.name,filterText:t,kind:me.Unit,documentation:An(e,void 0,h),textEdit:U.replace(o,t),insertTextFormat:_e.PlainText})}))})),E(),r}function L(e){return d===f.getTokenEnd()&&(I=f.scan(),I===e&&f.getTokenOffset()===d)?f.getTokenEnd():d}function x(){for(const n of s)n.onHtmlContent&&n.onHtmlContent({document:e,position:t});return E()}function E(){let e=d-1,n=t.character;for(;e>=0&&Ln(c,e);)e--,n--;if(e>=0&&"&"===c[e]){const e=m.create(g.create(t.line,n-1),t);for(const t in pn)if(bn(t,";")){const n="&"+t;r.items.push({label:n,kind:me.Keyword,documentation:o("Character entity representing '{0}'",pn[t]),textEdit:U.replace(e,n),insertTextFormat:_e.PlainText})}}return r}function A(e,t){const n=b(e,t);r.items.push({label:"!DOCTYPE",kind:me.Property,documentation:"A preamble for an HTML document.",textEdit:U.replace(n,"!DOCTYPE html>"),insertTextFormat:_e.PlainText})}let I=f.scan();for(;I!==Pt.EOS&&f.getTokenOffset()<=d;){switch(I){case Pt.StartTagOpen:if(f.getTokenEnd()===d){const e=L(Pt.StartTag);return 0===t.line&&A(d,e),T(d,e)}break;case Pt.StartTag:if(f.getTokenOffset()<=d&&d<=f.getTokenEnd())return v(f.getTokenOffset(),f.getTokenEnd());_=f.getTokenText();break;case Pt.AttributeName:if(f.getTokenOffset()<=d&&d<=f.getTokenEnd())return C(f.getTokenOffset(),f.getTokenEnd());p=f.getTokenText();break;case Pt.DelimiterAssign:if(f.getTokenEnd()===d){const e=L(Pt.AttributeValue);return S(d,e)}break;case Pt.AttributeValue:if(f.getTokenOffset()<=d&&d<=f.getTokenEnd())return S(f.getTokenOffset(),f.getTokenEnd());break;case Pt.Whitespace:if(d<=f.getTokenEnd())switch(f.getScannerState()){case Wt.AfterOpeningStartTag:return T(f.getTokenOffset(),L(Pt.StartTag));case Wt.WithinTag:case Wt.AfterAttributeName:return C(f.getTokenEnd());case Wt.BeforeAttributeValue:return S(f.getTokenEnd());case Wt.AfterOpeningEndTag:return k(f.getTokenOffset()-1,!1);case Wt.WithinContent:return x()}break;case Pt.EndTagOpen:if(d<=f.getTokenEnd()){return k(f.getTokenOffset()+1,!1,L(Pt.EndTag))}break;case Pt.EndTag:if(d<=f.getTokenEnd()){let e=f.getTokenOffset()-1;for(;e>=0;){const t=c.charAt(e);if("/"===t)return k(e,!1,f.getTokenEnd());if(!Pn(t))break;e--}}break;case Pt.StartTagClose:if(d<=f.getTokenEnd()&&_)return y(f.getTokenEnd(),_);break;case Pt.Content:if(d<=f.getTokenEnd())return x();break;default:if(d<=f.getTokenEnd())return r}I=f.scan()}return r}doQuoteComplete(e,t,n,i){const r=e.offsetAt(t);if(r<=0)return null;const s=i?.attributeDefaultValue??"doublequotes";if("empty"===s)return null;if("="!==e.getText().charAt(r-1))return null;const o="doublequotes"===s?'"$1"':"'$1'",a=n.findNodeBefore(r);if(a&&a.attributes&&a.start<r&&(!a.endTagStart||a.endTagStart>r)){const t=un(e.getText(),a.start);let n=t.scan();for(;n!==Pt.EOS&&t.getTokenEnd()<=r;){if(n===Pt.AttributeName&&t.getTokenEnd()===r-1)return n=t.scan(),n!==Pt.DelimiterAssign?null:(n=t.scan(),n===Pt.Unknown||n===Pt.AttributeValue?null:o);n=t.scan()}}return null}doTagComplete(e,t,n){const i=e.offsetAt(t);if(i<=0)return null;const r=e.getText().charAt(i-1);if(">"===r){const t=this.dataManager.getVoidElements(e.languageId),r=n.findNodeBefore(i);if(r&&r.tag&&!this.dataManager.isVoidElement(r.tag,t)&&r.start<i&&(!r.endTagStart||r.endTagStart>i)){const t=un(e.getText(),r.start);let n=t.scan();for(;n!==Pt.EOS&&t.getTokenEnd()<=i;){if(n===Pt.StartTagClose&&t.getTokenEnd()===i)return`$0</${r.tag}>`;n=t.scan()}}}else if("/"===r){let t=n.findNodeBefore(i);for(;t&&t.closed&&!(t.endTagStart&&t.endTagStart>i);)t=t.parent;if(t&&t.tag){const n=un(e.getText(),t.start);let r=n.scan();for(;r!==Pt.EOS&&n.getTokenEnd()<=i;){if(r===Pt.EndTagOpen&&n.getTokenEnd()===i)return">"!==e.getText().charAt(i)?`${t.tag}>`:t.tag;r=n.scan()}}}return null}convertCompletionList(e){return this.doesSupportMarkdown()||e.items.forEach((e=>{e.documentation&&"string"!==typeof e.documentation&&(e.documentation={kind:"plaintext",value:e.documentation.value})})),e}doesSupportMarkdown(){if(!xn(this.supportsMarkdown)){if(!xn(this.lsOptions.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;const e=this.lsOptions.clientCapabilities.textDocument?.completion?.completionItem?.documentationFormat;this.supportsMarkdown=Array.isArray(e)&&-1!==e.indexOf(ue.Markdown)}return this.supportsMarkdown}};function Pn(e){return/^\s*$/.test(e)}function Fn(e,t,n,i){const r=un(e,t,n);let s=r.scan();for(;s===Pt.Whitespace;)s=r.scan();return s===i}var Wn,Hn=class{constructor(e,t){this.lsOptions=e,this.dataManager=t}doHover(e,t,n,i){const r=this.convertContents.bind(this),s=this.doesSupportMarkdown(),a=e.offsetAt(t),l=n.findNodeAt(a),h=e.getText();if(!l||!l.tag)return null;const c=this.dataManager.getDataProviders().filter((t=>t.isApplicable(e.languageId)));function d(e,t,n){for(const o of c){let n=null;if(o.provideTags().forEach((r=>{if(r.name.toLowerCase()===e.toLowerCase()){let e=An(r,i,s);e||(e={kind:s?"markdown":"plaintext",value:""}),n={contents:e,range:t}}})),n)return n.contents=r(n.contents),n}return null}function u(t,n){const i=un(e.getText(),n);let r=i.scan();for(;r!==Pt.EOS&&(i.getTokenEnd()<a||i.getTokenEnd()===a&&r!==t);)r=i.scan();return r===t&&a<=i.getTokenEnd()?{start:e.positionAt(i.getTokenOffset()),end:e.positionAt(i.getTokenEnd())}:null}if(l.endTagStart&&a>=l.endTagStart){const e=u(Pt.EndTag,l.endTagStart);return e?d(l.tag,e):null}const f=u(Pt.StartTag,l.start);if(f)return d(l.tag,f);const p=u(Pt.AttributeName,l.start);if(p){return function(e,t,n){for(const o of c){let a=null;if(o.provideAttributes(e).forEach((e=>{if(t===e.name&&e.description){const t=An(e,i,s);a=t?{contents:t,range:n}:null}})),a)return a.contents=r(a.contents),a}return null}(l.tag,e.getText(p),p)}const _=function(){let e=a-1,n=t.character;for(;e>=0&&Ln(h,e);)e--,n--;let i=e+1,r=n;for(;Ln(h,i);)i++,r++;if(e>=0&&"&"===h[e]){let e=null;return e=";"===h[i]?m.create(g.create(t.line,n),g.create(t.line,r+1)):m.create(g.create(t.line,n),g.create(t.line,r)),e}return null}();if(_)return function(e,t){let n=function(e){let t=a-1,n="&";for(;t>=0&&Ln(e,t);)t--;for(t+=1;Ln(e,t);)n+=e[t],t+=1;return n+=";",n}(e);for(const i in pn){let e=null;if(n==="&"+i){let n=pn[i].charCodeAt(0).toString(16).toUpperCase(),r="U+";if(n.length<4){const e=4-n.length;let t=0;for(;t<e;)r+="0",t+=1}r+=n;const s=o("Character entity representing '{0}', unicode equivalent '{1}'",pn[i],r);e=s?{contents:s,range:t}:null}if(e)return e.contents=r(e.contents),e}return null}(h,_);const b=u(Pt.AttributeValue,l.start);if(b){const t=l.tag,n=function(e){if(e.length<=1)return e.replace(/['"]/,"");"'"!==e[0]&&'"'!==e[0]||(e=e.slice(1));"'"!==e[e.length-1]&&'"'!==e[e.length-1]||(e=e.slice(0,-1));return e}(e.getText(b)),o=function(t,n){const i=un(e.getText(),t);let r,s=i.scan();for(;s!==Pt.EOS&&i.getTokenEnd()<=n;)s=i.scan(),s===Pt.AttributeName&&(r=i.getTokenText());return r}(l.start,e.offsetAt(b.start));if(o)return function(e,t,n,o){for(const a of c){let l=null;if(a.provideValues(e,t).forEach((e=>{if(n===e.name&&e.description){const t=An(e,i,s);l=t?{contents:t,range:o}:null}})),l)return l.contents=r(l.contents),l}return null}(t,o,n,b)}return null}convertContents(e){if(!this.doesSupportMarkdown()){if("string"===typeof e)return e;if("kind"in e)return{kind:"plaintext",value:e.value};if(!Array.isArray(e))return e.value;e.map((e=>"string"===typeof e?e:e.value))}return e}doesSupportMarkdown(){if(!xn(this.supportsMarkdown)){if(!xn(this.lsOptions.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;const e=this.lsOptions.clientCapabilities?.textDocument?.hover?.contentFormat;this.supportsMarkdown=Array.isArray(e)&&-1!==e.indexOf(ue.Markdown)}return this.supportsMarkdown}};function Un(e,t){return e}!function(){var e=[,,function(e){function t(e){this.__parent=e,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}function n(e,t){this.__cache=[""],this.__indent_size=e.indent_size,this.__indent_string=e.indent_char,e.indent_with_tabs||(this.__indent_string=new Array(e.indent_size+1).join(e.indent_char)),t=t||"",e.indent_level>0&&(t=new Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=t,this.__base_string_length=t.length}function i(e,i){this.__indent_cache=new n(e,i),this.raw=!1,this._end_with_newline=e.end_with_newline,this.indent_size=e.indent_size,this.wrap_line_length=e.wrap_line_length,this.indent_empty_lines=e.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new t(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}t.prototype.clone_empty=function(){var e=new t(this.__parent);return e.set_indent(this.__indent_count,this.__alignment_count),e},t.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e]},t.prototype.has_match=function(e){for(var t=this.__items.length-1;t>=0;t--)if(this.__items[t].match(e))return!0;return!1},t.prototype.set_indent=function(e,t){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=t||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},t.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},t.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},t.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===e.__items[0]&&(e.__items.splice(0,1),e.__character_count-=1),!0}return!1},t.prototype.is_empty=function(){return 0===this.__items.length},t.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},t.prototype.push=function(e){this.__items.push(e);var t=e.lastIndexOf("\n");-1!==t?this.__character_count=e.length-t:this.__character_count+=e.length},t.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e},t.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},t.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},t.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),this.__character_count-=1},t.prototype.toString=function(){var e="";return this.is_empty()?this.__parent.indent_empty_lines&&(e=this.__parent.get_indent_string(this.__indent_count)):(e=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),e+=this.__items.join("")),e},n.prototype.get_indent_size=function(e,t){var n=this.__base_string_length;return t=t||0,e<0&&(n=0),n+=e*this.__indent_size,n+=t},n.prototype.get_indent_string=function(e,t){var n=this.__base_string;return t=t||0,e<0&&(e=0,n=""),t+=e*this.__indent_size,this.__ensure_cache(t),n+=this.__cache[t]},n.prototype.__ensure_cache=function(e){for(;e>=this.__cache.length;)this.__add_column()},n.prototype.__add_column=function(){var e=this.__cache.length,t=0,n="";this.__indent_size&&e>=this.__indent_size&&(e-=(t=Math.floor(e/this.__indent_size))*this.__indent_size,n=new Array(t+1).join(this.__indent_string)),e&&(n+=new Array(e+1).join(" ")),this.__cache.push(n)},i.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},i.prototype.get_line_number=function(){return this.__lines.length},i.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t)},i.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t)},i.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},i.prototype.add_new_line=function(e){return!(this.is_empty()||!e&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},i.prototype.get_code=function(e){this.trim(!0);var t=this.current_line.pop();t&&("\n"===t[t.length-1]&&(t=t.replace(/\n+$/g,"")),this.current_line.push(t)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==e&&(n=n.replace(/[\n]/g,e)),n},i.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},i.prototype.set_indent=function(e,t){return e=e||0,t=t||0,this.next_line.set_indent(e,t),this.__lines.length>1?(this.current_line.set_indent(e,t),!0):(this.current_line.set_indent(),!1)},i.prototype.add_raw_token=function(e){for(var t=0;t<e.newlines;t++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(e.whitespace_before),this.current_line.push(e.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},i.prototype.add_token=function(e){this.__add_space_before_token(),this.current_line.push(e),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},i.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},i.prototype.remove_indent=function(e){for(var t=this.__lines.length;e<t;)this.__lines[e]._remove_indent(),e++;this.current_line._remove_wrap_indent()},i.prototype.trim=function(e){for(e=void 0!==e&&e,this.current_line.trim();e&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},i.prototype.just_added_newline=function(){return this.current_line.is_empty()},i.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},i.prototype.ensure_empty_line_above=function(e,n){for(var i=this.__lines.length-2;i>=0;){var r=this.__lines[i];if(r.is_empty())break;if(0!==r.item(0).indexOf(e)&&r.item(-1)!==n){this.__lines.splice(i+1,0,new t(this)),this.previous_line=this.__lines[this.__lines.length-2];break}i--}},e.exports.Output=i},,,,function(e){function t(e,t){this.raw_options=n(e,t),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}function n(e,t){var n,r={};for(n in e=i(e))n!==t&&(r[n]=e[n]);if(t&&e[t])for(n in e[t])r[n]=e[t][n];return r}function i(e){var t,n={};for(t in e){n[t.replace(/-/g,"_")]=e[t]}return n}t.prototype._get_array=function(e,t){var n=this.raw_options[e],i=t||[];return"object"===typeof n?null!==n&&"function"===typeof n.concat&&(i=n.concat()):"string"===typeof n&&(i=n.split(/[^a-zA-Z0-9_\/\-]+/)),i},t.prototype._get_boolean=function(e,t){var n=this.raw_options[e];return void 0===n?!!t:!!n},t.prototype._get_characters=function(e,t){var n=this.raw_options[e],i=t||"";return"string"===typeof n&&(i=n.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),i},t.prototype._get_number=function(e,t){var n=this.raw_options[e];t=parseInt(t,10),isNaN(t)&&(t=0);var i=parseInt(n,10);return isNaN(i)&&(i=t),i},t.prototype._get_selection=function(e,t,n){var i=this._get_selection_list(e,t,n);if(1!==i.length)throw new Error("Invalid Option Value: The option '"+e+"' can only be one of the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return i[0]},t.prototype._get_selection_list=function(e,t,n){if(!t||0===t.length)throw new Error("Selection list cannot be empty.");if(n=n||[t[0]],!this._is_valid_selection(n,t))throw new Error("Invalid Default Value!");var i=this._get_array(e,n);if(!this._is_valid_selection(i,t))throw new Error("Invalid Option Value: The option '"+e+"' can contain only the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return i},t.prototype._is_valid_selection=function(e,t){return e.length&&t.length&&!e.some((function(e){return-1===t.indexOf(e)}))},e.exports.Options=t,e.exports.normalizeOpts=i,e.exports.mergeOpts=n},,function(e){var t=RegExp.prototype.hasOwnProperty("sticky");function n(e){this.__input=e||"",this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){this.__position>0&&(this.__position-=1)},n.prototype.hasNext=function(){return this.__position<this.__input_length},n.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__input.charAt(this.__position),this.__position+=1),e},n.prototype.peek=function(e){var t=null;return e=e||0,(e+=this.__position)>=0&&e<this.__input_length&&(t=this.__input.charAt(e)),t},n.prototype.__match=function(e,n){e.lastIndex=n;var i=e.exec(this.__input);return!i||t&&e.sticky||i.index!==n&&(i=null),i},n.prototype.test=function(e,t){return t=t||0,(t+=this.__position)>=0&&t<this.__input_length&&!!this.__match(e,t)},n.prototype.testChar=function(e,t){var n=this.peek(t);return e.lastIndex=0,null!==n&&e.test(n)},n.prototype.match=function(e){var t=this.__match(e,this.__position);return t?this.__position+=t[0].length:t=null,t},n.prototype.read=function(e,t,n){var i,r="";return e&&(i=this.match(e))&&(r+=i[0]),!t||!i&&e||(r+=this.readUntil(t,n)),r},n.prototype.readUntil=function(e,t){var n,i=this.__position;e.lastIndex=this.__position;var r=e.exec(this.__input);return r?(i=r.index,t&&(i+=r[0].length)):i=this.__input_length,n=this.__input.substring(this.__position,i),this.__position=i,n},n.prototype.readUntilAfter=function(e){return this.readUntil(e,!0)},n.prototype.get_regexp=function(e,n){var i=null,r="g";return n&&t&&(r="y"),"string"===typeof e&&""!==e?i=new RegExp(e,r):e&&(i=new RegExp(e.source,r)),i},n.prototype.get_literal_regexp=function(e){return RegExp(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},n.prototype.peekUntilAfter=function(e){var t=this.__position,n=this.readUntilAfter(e);return this.__position=t,n},n.prototype.lookBack=function(e){var t=this.__position-1;return t>=e.length&&this.__input.substring(t-e.length,t).toLowerCase()===e},e.exports.InputScanner=n},,,,,function(e){function t(e,t){e="string"===typeof e?e:e.source,t="string"===typeof t?t:t.source,this.__directives_block_pattern=new RegExp(e+/ beautify( \w+[:]\w+)+ /.source+t,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(e+/\sbeautify\signore:end\s/.source+t,"g")}t.prototype.get_directives=function(e){if(!e.match(this.__directives_block_pattern))return null;var t={};this.__directive_pattern.lastIndex=0;for(var n=this.__directive_pattern.exec(e);n;)t[n[1]]=n[2],n=this.__directive_pattern.exec(e);return t},t.prototype.readIgnored=function(e){return e.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.Directives=t},,function(e,t,n){var i=n(16).Beautifier,r=n(17).Options;e.exports=function(e,t){return new i(e,t).beautify()},e.exports.defaultOptions=function(){return new r}},function(e,t,n){var i=n(17).Options,r=n(2).Output,s=n(8).InputScanner,o=new(0,n(13).Directives)(/\/\*/,/\*\//),a=/\r\n|[\r\n]/,l=/\r\n|[\r\n]/g,h=/\s/,c=/(?:\s|\n)+/g,d=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,u=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function g(e,t){this._source_text=e||"",this._options=new i(t),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}g.prototype.eatString=function(e){var t="";for(this._ch=this._input.next();this._ch;){if(t+=this._ch,"\\"===this._ch)t+=this._input.next();else if(-1!==e.indexOf(this._ch)||"\n"===this._ch)break;this._ch=this._input.next()}return t},g.prototype.eatWhitespace=function(e){for(var t=h.test(this._input.peek()),n=0;h.test(this._input.peek());)this._ch=this._input.next(),e&&"\n"===this._ch&&(0===n||n<this._options.max_preserve_newlines)&&(n++,this._output.add_new_line(!0));return t},g.prototype.foundNestedPseudoClass=function(){for(var e=0,t=1,n=this._input.peek(t);n;){if("{"===n)return!0;if("("===n)e+=1;else if(")"===n){if(0===e)return!1;e-=1}else if(";"===n||"}"===n)return!1;t++,n=this._input.peek(t)}return!1},g.prototype.print_string=function(e){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(e)},g.prototype.preserveSingleSpace=function(e){e&&(this._output.space_before_token=!0)},g.prototype.indent=function(){this._indentLevel++},g.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},g.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._source_text,t=this._options.eol;"auto"===t&&(t="\n",e&&a.test(e||"")&&(t=e.match(a)[0]));var n=(e=e.replace(l,"\n")).match(/^[\t ]*/)[0];this._output=new r(this._options,n),this._input=new s(e),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var i,g,f=0,m=!1,p=!1,_=!1,b=!1,v=!1,w=this._ch,k=!1;i=""!==this._input.read(c),g=w,this._ch=this._input.next(),"\\"===this._ch&&this._input.hasNext()&&(this._ch+=this._input.next()),w=this._ch,this._ch;)if("/"===this._ch&&"*"===this._input.peek()){this._output.add_new_line(),this._input.back();var y=this._input.read(d),T=o.get_directives(y);T&&"start"===T.ignore&&(y+=o.readIgnored(this._input)),this.print_string(y),this.eatWhitespace(!0),this._output.add_new_line()}else if("/"===this._ch&&"/"===this._input.peek())this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(u)),this.eatWhitespace(!0);else if("$"===this._ch){this.preserveSingleSpace(i),this.print_string(this._ch);var C=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);C.match(/[ :]$/)&&(C=this.eatString(": ").replace(/\s+$/,""),this.print_string(C),this._output.space_before_token=!0),0===f&&-1!==C.indexOf(":")&&(p=!0,this.indent())}else if("@"===this._ch)if(this.preserveSingleSpace(i),"{"===this._input.peek())this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var S=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);S.match(/[ :]$/)&&(S=this.eatString(": ").replace(/\s+$/,""),this.print_string(S),this._output.space_before_token=!0),0===f&&-1!==S.indexOf(":")?(p=!0,this.indent()):S in this.NESTED_AT_RULE?(this._nestedLevel+=1,S in this.CONDITIONAL_GROUP_RULE&&(_=!0)):0!==f||p||(b=!0)}else if("#"===this._ch&&"{"===this._input.peek())this.preserveSingleSpace(i),this.print_string(this._ch+this.eatString("}"));else if("{"===this._ch)p&&(p=!1,this.outdent()),b=!1,_?(_=!1,m=this._indentLevel>=this._nestedLevel):m=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&m&&this._output.previous_line&&"{"!==this._output.previous_line.item(-1)&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,"expand"===this._options.brace_style?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):("("===g?this._output.space_before_token=!1:","!==g&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if("}"===this._ch)this.outdent(),this._output.add_new_line(),"{"===g&&this._output.trim(!0),p&&(this.outdent(),p=!1),this.print_string(this._ch),m=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&"}"!==this._input.peek()&&this._output.add_new_line(!0),")"===this._input.peek()&&(this._output.trim(!0),"expand"===this._options.brace_style&&this._output.add_new_line(!0));else if(":"===this._ch){for(var L=0;L<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;L++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[L])){k=!0;break}!m&&!_||this._input.lookBack("&")||this.foundNestedPseudoClass()||this._input.lookBack("(")||b||0!==f?(this._input.lookBack(" ")&&(this._output.space_before_token=!0),":"===this._input.peek()?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":")):(this.print_string(":"),p||(p=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent()))}else if('"'===this._ch||"'"===this._ch){var x='"'===g||"'"===g;this.preserveSingleSpace(x||i),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(";"===this._ch)k=!1,0===f?(p&&(this.outdent(),p=!1),b=!1,this.print_string(this._ch),this.eatWhitespace(!0),"/"!==this._input.peek()&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if("("===this._ch)if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),f++,this.indent(),this._ch=this._input.next(),")"===this._ch||'"'===this._ch||"'"===this._ch?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),f&&(f--,this.outdent()));else{var E=!1;this._input.lookBack("with")&&(E=!0),this.preserveSingleSpace(i||E),this.print_string(this._ch),p&&"$"===g&&this._options.selector_separator_newline?(this._output.add_new_line(),v=!0):(this.eatWhitespace(),f++,this.indent())}else if(")"===this._ch)f&&(f--,this.outdent()),v&&";"===this._input.peek()&&this._options.selector_separator_newline&&(v=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(","===this._ch)this.print_string(this._ch),this.eatWhitespace(!0),!this._options.selector_separator_newline||p&&!v||0!==f||b?this._output.space_before_token=!0:this._output.add_new_line();else if(">"!==this._ch&&"+"!==this._ch&&"~"!==this._ch||p||0!==f)if("]"===this._ch)this.print_string(this._ch);else if("["===this._ch)this.preserveSingleSpace(i),this.print_string(this._ch);else if("="===this._ch)this.eatWhitespace(),this.print_string("="),h.test(this._ch)&&(this._ch="");else if("!"!==this._ch||this._input.lookBack("\\")){var A='"'===g||"'"===g;this.preserveSingleSpace(A||i),this.print_string(this._ch),!this._output.just_added_newline()&&"\n"===this._input.peek()&&k&&this._output.add_new_line()}else this._output.space_before_token=!0,this.print_string(this._ch);else this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&h.test(this._ch)&&(this._ch=""));return this._output.get_code(t)},e.exports.Beautifier=g},function(e,t,n){var i=n(6).Options;function r(e){i.call(this,e,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var t=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||t;var n=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var r=0;r<n.length;r++)"expand"!==n[r]?this.brace_style="collapse":this.brace_style=n[r]}r.prototype=new i,e.exports.Options=r}],t={};var n=function n(i){var r=t[i];if(void 0!==r)return r.exports;var s=t[i]={exports:{}};return e[i](s,s.exports,n),s.exports}(15);Wn=n}();var qn,Vn,jn=Wn;function Gn(e,t,n){let i=e.getText(),r=!0,s=0;const o=n.tabSize||4;if(t){let o=e.offsetAt(t.start),a=o;for(;a>0&&Xn(i,a-1);)a--;0===a||Yn(i,a-1)?o=a:a<o&&(o=a+1);let l=e.offsetAt(t.end),h=l;for(;h<i.length&&Xn(i,h);)h++;(h===i.length||Yn(i,h))&&(l=h),t=m.create(e.positionAt(o),e.positionAt(l));const c=i.substring(0,o);if(new RegExp(/.*[<][^>]*$/).test(c))return i=i.substring(o,l),[{range:t,newText:i}];if(r=l===i.length,i=i.substring(o,l),0!==o){const i=e.offsetAt(g.create(t.start.line,0));s=function(e,t,n){let i=t,r=0;const s=n.tabSize||4;for(;i<e.length;){const t=e.charAt(i);if(" "===t)r++;else{if("\t"!==t)break;r+=s}i++}return Math.floor(r/s)}(e.getText(),i,n)}}else t=m.create(g.create(0,0),e.positionAt(i.length));const a={indent_size:o,indent_char:n.insertSpaces?" ":"\t",indent_empty_lines:Kn(n,"indentEmptyLines",!1),wrap_line_length:Kn(n,"wrapLineLength",120),unformatted:$n(n,"unformatted",void 0),content_unformatted:$n(n,"contentUnformatted",void 0),indent_inner_html:Kn(n,"indentInnerHtml",!1),preserve_newlines:Kn(n,"preserveNewLines",!0),max_preserve_newlines:Kn(n,"maxPreserveNewLines",32786),indent_handlebars:Kn(n,"indentHandlebars",!1),end_with_newline:r&&Kn(n,"endWithNewline",!1),extra_liners:$n(n,"extraLiners",void 0),wrap_attributes:Kn(n,"wrapAttributes","auto"),wrap_attributes_indent_size:Kn(n,"wrapAttributesIndentSize",void 0),eol:"\n",indent_scripts:Kn(n,"indentScripts","normal"),templating:Qn(n,"all"),unformatted_content_delimiter:Kn(n,"unformattedContentDelimiter","")};let l=function(e,t){return qn(e,t,Un,jn)}(i.replace(/^\s+/,""),a);if(s>0){const e=n.insertSpaces?vn(" ",o*s):vn("\t",s);l=l.split("\n").join("\n"+e),0===t.start.character&&(l=e+l)}return[{range:t,newText:l}]}function Kn(e,t,n){if(e&&e.hasOwnProperty(t)){const n=e[t];if(null!==n)return n}return n}function $n(e,t,n){const i=Kn(e,t,null);return"string"===typeof i?i.length>0?i.split(",").map((e=>e.trim().toLowerCase())):[]:n}function Qn(e,t){const n=Kn(e,"templating",t);return!0===n?["auto"]:!1===n||n===t||!1===Array.isArray(n)?["none"]:n}function Yn(e,t){return-1!=="\r\n".indexOf(e.charAt(t))}function Xn(e,t){return-1!==" \t".indexOf(e.charAt(t))}!function(){var e=[,,function(e){function t(e){this.__parent=e,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}function n(e,t){this.__cache=[""],this.__indent_size=e.indent_size,this.__indent_string=e.indent_char,e.indent_with_tabs||(this.__indent_string=new Array(e.indent_size+1).join(e.indent_char)),t=t||"",e.indent_level>0&&(t=new Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=t,this.__base_string_length=t.length}function i(e,i){this.__indent_cache=new n(e,i),this.raw=!1,this._end_with_newline=e.end_with_newline,this.indent_size=e.indent_size,this.wrap_line_length=e.wrap_line_length,this.indent_empty_lines=e.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new t(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}t.prototype.clone_empty=function(){var e=new t(this.__parent);return e.set_indent(this.__indent_count,this.__alignment_count),e},t.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e]},t.prototype.has_match=function(e){for(var t=this.__items.length-1;t>=0;t--)if(this.__items[t].match(e))return!0;return!1},t.prototype.set_indent=function(e,t){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=t||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},t.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},t.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},t.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===e.__items[0]&&(e.__items.splice(0,1),e.__character_count-=1),!0}return!1},t.prototype.is_empty=function(){return 0===this.__items.length},t.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},t.prototype.push=function(e){this.__items.push(e);var t=e.lastIndexOf("\n");-1!==t?this.__character_count=e.length-t:this.__character_count+=e.length},t.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e},t.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},t.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},t.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),this.__character_count-=1},t.prototype.toString=function(){var e="";return this.is_empty()?this.__parent.indent_empty_lines&&(e=this.__parent.get_indent_string(this.__indent_count)):(e=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),e+=this.__items.join("")),e},n.prototype.get_indent_size=function(e,t){var n=this.__base_string_length;return t=t||0,e<0&&(n=0),n+=e*this.__indent_size,n+=t},n.prototype.get_indent_string=function(e,t){var n=this.__base_string;return t=t||0,e<0&&(e=0,n=""),t+=e*this.__indent_size,this.__ensure_cache(t),n+=this.__cache[t]},n.prototype.__ensure_cache=function(e){for(;e>=this.__cache.length;)this.__add_column()},n.prototype.__add_column=function(){var e=this.__cache.length,t=0,n="";this.__indent_size&&e>=this.__indent_size&&(e-=(t=Math.floor(e/this.__indent_size))*this.__indent_size,n=new Array(t+1).join(this.__indent_string)),e&&(n+=new Array(e+1).join(" ")),this.__cache.push(n)},i.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},i.prototype.get_line_number=function(){return this.__lines.length},i.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t)},i.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t)},i.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},i.prototype.add_new_line=function(e){return!(this.is_empty()||!e&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},i.prototype.get_code=function(e){this.trim(!0);var t=this.current_line.pop();t&&("\n"===t[t.length-1]&&(t=t.replace(/\n+$/g,"")),this.current_line.push(t)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==e&&(n=n.replace(/[\n]/g,e)),n},i.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},i.prototype.set_indent=function(e,t){return e=e||0,t=t||0,this.next_line.set_indent(e,t),this.__lines.length>1?(this.current_line.set_indent(e,t),!0):(this.current_line.set_indent(),!1)},i.prototype.add_raw_token=function(e){for(var t=0;t<e.newlines;t++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(e.whitespace_before),this.current_line.push(e.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},i.prototype.add_token=function(e){this.__add_space_before_token(),this.current_line.push(e),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},i.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},i.prototype.remove_indent=function(e){for(var t=this.__lines.length;e<t;)this.__lines[e]._remove_indent(),e++;this.current_line._remove_wrap_indent()},i.prototype.trim=function(e){for(e=void 0!==e&&e,this.current_line.trim();e&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},i.prototype.just_added_newline=function(){return this.current_line.is_empty()},i.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},i.prototype.ensure_empty_line_above=function(e,n){for(var i=this.__lines.length-2;i>=0;){var r=this.__lines[i];if(r.is_empty())break;if(0!==r.item(0).indexOf(e)&&r.item(-1)!==n){this.__lines.splice(i+1,0,new t(this)),this.previous_line=this.__lines[this.__lines.length-2];break}i--}},e.exports.Output=i},function(e){e.exports.Token=function(e,t,n,i){this.type=e,this.text=t,this.comments_before=null,this.newlines=n||0,this.whitespace_before=i||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}},,,function(e){function t(e,t){this.raw_options=n(e,t),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}function n(e,t){var n,r={};for(n in e=i(e))n!==t&&(r[n]=e[n]);if(t&&e[t])for(n in e[t])r[n]=e[t][n];return r}function i(e){var t,n={};for(t in e){n[t.replace(/-/g,"_")]=e[t]}return n}t.prototype._get_array=function(e,t){var n=this.raw_options[e],i=t||[];return"object"===typeof n?null!==n&&"function"===typeof n.concat&&(i=n.concat()):"string"===typeof n&&(i=n.split(/[^a-zA-Z0-9_\/\-]+/)),i},t.prototype._get_boolean=function(e,t){var n=this.raw_options[e];return void 0===n?!!t:!!n},t.prototype._get_characters=function(e,t){var n=this.raw_options[e],i=t||"";return"string"===typeof n&&(i=n.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),i},t.prototype._get_number=function(e,t){var n=this.raw_options[e];t=parseInt(t,10),isNaN(t)&&(t=0);var i=parseInt(n,10);return isNaN(i)&&(i=t),i},t.prototype._get_selection=function(e,t,n){var i=this._get_selection_list(e,t,n);if(1!==i.length)throw new Error("Invalid Option Value: The option '"+e+"' can only be one of the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return i[0]},t.prototype._get_selection_list=function(e,t,n){if(!t||0===t.length)throw new Error("Selection list cannot be empty.");if(n=n||[t[0]],!this._is_valid_selection(n,t))throw new Error("Invalid Default Value!");var i=this._get_array(e,n);if(!this._is_valid_selection(i,t))throw new Error("Invalid Option Value: The option '"+e+"' can contain only the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return i},t.prototype._is_valid_selection=function(e,t){return e.length&&t.length&&!e.some((function(e){return-1===t.indexOf(e)}))},e.exports.Options=t,e.exports.normalizeOpts=i,e.exports.mergeOpts=n},,function(e){var t=RegExp.prototype.hasOwnProperty("sticky");function n(e){this.__input=e||"",this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){this.__position>0&&(this.__position-=1)},n.prototype.hasNext=function(){return this.__position<this.__input_length},n.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__input.charAt(this.__position),this.__position+=1),e},n.prototype.peek=function(e){var t=null;return e=e||0,(e+=this.__position)>=0&&e<this.__input_length&&(t=this.__input.charAt(e)),t},n.prototype.__match=function(e,n){e.lastIndex=n;var i=e.exec(this.__input);return!i||t&&e.sticky||i.index!==n&&(i=null),i},n.prototype.test=function(e,t){return t=t||0,(t+=this.__position)>=0&&t<this.__input_length&&!!this.__match(e,t)},n.prototype.testChar=function(e,t){var n=this.peek(t);return e.lastIndex=0,null!==n&&e.test(n)},n.prototype.match=function(e){var t=this.__match(e,this.__position);return t?this.__position+=t[0].length:t=null,t},n.prototype.read=function(e,t,n){var i,r="";return e&&(i=this.match(e))&&(r+=i[0]),!t||!i&&e||(r+=this.readUntil(t,n)),r},n.prototype.readUntil=function(e,t){var n,i=this.__position;e.lastIndex=this.__position;var r=e.exec(this.__input);return r?(i=r.index,t&&(i+=r[0].length)):i=this.__input_length,n=this.__input.substring(this.__position,i),this.__position=i,n},n.prototype.readUntilAfter=function(e){return this.readUntil(e,!0)},n.prototype.get_regexp=function(e,n){var i=null,r="g";return n&&t&&(r="y"),"string"===typeof e&&""!==e?i=new RegExp(e,r):e&&(i=new RegExp(e.source,r)),i},n.prototype.get_literal_regexp=function(e){return RegExp(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},n.prototype.peekUntilAfter=function(e){var t=this.__position,n=this.readUntilAfter(e);return this.__position=t,n},n.prototype.lookBack=function(e){var t=this.__position-1;return t>=e.length&&this.__input.substring(t-e.length,t).toLowerCase()===e},e.exports.InputScanner=n},function(e,t,n){var i=n(8).InputScanner,r=n(3).Token,s=n(10).TokenStream,o=n(11).WhitespacePattern,a={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},l=function(e,t){this._input=new i(e),this._options=t||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new o(this._input)};l.prototype.tokenize=function(){var e;this._input.restart(),this.__tokens=new s,this._reset();for(var t=new r(a.START,""),n=null,i=[],o=new s;t.type!==a.EOF;){for(e=this._get_next_token(t,n);this._is_comment(e);)o.add(e),e=this._get_next_token(t,n);o.isEmpty()||(e.comments_before=o,o=new s),e.parent=n,this._is_opening(e)?(i.push(n),n=e):n&&this._is_closing(e,n)&&(e.opened=n,n.closed=e,n=i.pop(),e.parent=n),e.previous=t,t.next=e,this.__tokens.add(e),t=e}return this.__tokens},l.prototype._is_first_token=function(){return this.__tokens.isEmpty()},l.prototype._reset=function(){},l.prototype._get_next_token=function(e,t){this._readWhitespace();var n=this._input.read(/.+/g);return n?this._create_token(a.RAW,n):this._create_token(a.EOF,"")},l.prototype._is_comment=function(e){return!1},l.prototype._is_opening=function(e){return!1},l.prototype._is_closing=function(e,t){return!1},l.prototype._create_token=function(e,t){return new r(e,t,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token)},l.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},e.exports.Tokenizer=l,e.exports.TOKEN=a},function(e){function t(e){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=e}t.prototype.restart=function(){this.__position=0},t.prototype.isEmpty=function(){return 0===this.__tokens_length},t.prototype.hasNext=function(){return this.__position<this.__tokens_length},t.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__tokens[this.__position],this.__position+=1),e},t.prototype.peek=function(e){var t=null;return e=e||0,(e+=this.__position)>=0&&e<this.__tokens_length&&(t=this.__tokens[e]),t},t.prototype.add=function(e){this.__parent_token&&(e.parent=this.__parent_token),this.__tokens.push(e),this.__tokens_length+=1},e.exports.TokenStream=t},function(e,t,n){var i=n(12).Pattern;function r(e,t){i.call(this,e,t),t?this._line_regexp=this._input.get_regexp(t._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}r.prototype=new i,r.prototype.__set_whitespace_patterns=function(e,t){e+="\\t ",t+="\\n\\r",this._match_pattern=this._input.get_regexp("["+e+t+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+t+"]")},r.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var e=this._input.read(this._match_pattern);if(" "===e)this.whitespace_before_token=" ";else if(e){var t=this.__split(this._newline_regexp,e);this.newline_count=t.length-1,this.whitespace_before_token=t[this.newline_count]}return e},r.prototype.matching=function(e,t){var n=this._create();return n.__set_whitespace_patterns(e,t),n._update(),n},r.prototype._create=function(){return new r(this._input,this)},r.prototype.__split=function(e,t){e.lastIndex=0;for(var n=0,i=[],r=e.exec(t);r;)i.push(t.substring(n,r.index)),n=r.index+r[0].length,r=e.exec(t);return n<t.length?i.push(t.substring(n,t.length)):i.push(""),i},e.exports.WhitespacePattern=r},function(e){function t(e,t){this._input=e,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,t&&(this._starting_pattern=this._input.get_regexp(t._starting_pattern,!0),this._match_pattern=this._input.get_regexp(t._match_pattern,!0),this._until_pattern=this._input.get_regexp(t._until_pattern),this._until_after=t._until_after)}t.prototype.read=function(){var e=this._input.read(this._starting_pattern);return this._starting_pattern&&!e||(e+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),e},t.prototype.read_match=function(){return this._input.match(this._match_pattern)},t.prototype.until_after=function(e){var t=this._create();return t._until_after=!0,t._until_pattern=this._input.get_regexp(e),t._update(),t},t.prototype.until=function(e){var t=this._create();return t._until_after=!1,t._until_pattern=this._input.get_regexp(e),t._update(),t},t.prototype.starting_with=function(e){var t=this._create();return t._starting_pattern=this._input.get_regexp(e,!0),t._update(),t},t.prototype.matching=function(e){var t=this._create();return t._match_pattern=this._input.get_regexp(e,!0),t._update(),t},t.prototype._create=function(){return new t(this._input,this)},t.prototype._update=function(){},e.exports.Pattern=t},function(e){function t(e,t){e="string"===typeof e?e:e.source,t="string"===typeof t?t:t.source,this.__directives_block_pattern=new RegExp(e+/ beautify( \w+[:]\w+)+ /.source+t,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(e+/\sbeautify\signore:end\s/.source+t,"g")}t.prototype.get_directives=function(e){if(!e.match(this.__directives_block_pattern))return null;var t={};this.__directive_pattern.lastIndex=0;for(var n=this.__directive_pattern.exec(e);n;)t[n[1]]=n[2],n=this.__directive_pattern.exec(e);return t},t.prototype.readIgnored=function(e){return e.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.Directives=t},function(e,t,n){var i=n(12).Pattern,r={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function s(e,t){i.call(this,e,t),this.__template_pattern=null,this._disabled=Object.assign({},r),this._excluded=Object.assign({},r),t&&(this.__template_pattern=this._input.get_regexp(t.__template_pattern),this._excluded=Object.assign(this._excluded,t._excluded),this._disabled=Object.assign(this._disabled,t._disabled));var n=new i(e);this.__patterns={handlebars_comment:n.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:n.starting_with(/{{{/).until_after(/}}}/),handlebars:n.starting_with(/{{/).until_after(/}}/),php:n.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:n.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:n.starting_with(/{%/).until_after(/%}/),django_value:n.starting_with(/{{/).until_after(/}}/),django_comment:n.starting_with(/{#/).until_after(/#}/),smarty:n.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:n.starting_with(/{\*/).until_after(/\*}/),smarty_literal:n.starting_with(/{literal}/).until_after(/{\/literal}/)}}s.prototype=new i,s.prototype._create=function(){return new s(this._input,this)},s.prototype._update=function(){this.__set_templated_pattern()},s.prototype.disable=function(e){var t=this._create();return t._disabled[e]=!0,t._update(),t},s.prototype.read_options=function(e){var t=this._create();for(var n in r)t._disabled[n]=-1===e.templating.indexOf(n);return t._update(),t},s.prototype.exclude=function(e){var t=this._create();return t._excluded[e]=!0,t._update(),t},s.prototype.read=function(){var e="";e=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern);for(var t=this._read_template();t;)this._match_pattern?t+=this._input.read(this._match_pattern):t+=this._input.readUntil(this.__template_pattern),e+=t,t=this._read_template();return this._until_after&&(e+=this._input.readUntilAfter(this._until_pattern)),e},s.prototype.__set_templated_pattern=function(){var e=[];this._disabled.php||e.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||e.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||e.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(e.push(this.__patterns.django._starting_pattern.source),e.push(this.__patterns.django_value._starting_pattern.source),e.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||e.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&e.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+e.join("|")+")")},s.prototype._read_template=function(){var e="",t=this._input.peek();if("<"===t){var n=this._input.peek(1);this._disabled.php||this._excluded.php||"?"!==n||(e=e||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==n||(e=e||this.__patterns.erb.read())}else"{"===t&&(this._disabled.handlebars||this._excluded.handlebars||(e=(e=(e=e||this.__patterns.handlebars_comment.read())||this.__patterns.handlebars_unescaped.read())||this.__patterns.handlebars.read()),this._disabled.django||(this._excluded.django||this._excluded.handlebars||(e=e||this.__patterns.django_value.read()),this._excluded.django||(e=(e=e||this.__patterns.django_comment.read())||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(e=(e=(e=e||this.__patterns.smarty_comment.read())||this.__patterns.smarty_literal.read())||this.__patterns.smarty.read()));return e},e.exports.TemplatablePattern=s},,,,function(e,t,n){var i=n(19).Beautifier,r=n(20).Options;e.exports=function(e,t,n,r){return new i(e,t,n,r).beautify()},e.exports.defaultOptions=function(){return new r}},function(e,t,n){var i=n(20).Options,r=n(2).Output,s=n(21).Tokenizer,o=n(21).TOKEN,a=/\r\n|[\r\n]/,l=/\r\n|[\r\n]/g,h=function(e,t){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=e.max_preserve_newlines,this.preserve_newlines=e.preserve_newlines,this._output=new r(e,t)};h.prototype.current_line_has_match=function(e){return this._output.current_line.has_match(e)},h.prototype.set_space_before_token=function(e,t){this._output.space_before_token=e,this._output.non_breaking_space=t},h.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},h.prototype.add_raw_token=function(e){this._output.add_raw_token(e)},h.prototype.print_preserved_newlines=function(e){var t=0;e.type!==o.TEXT&&e.previous.type!==o.TEXT&&(t=e.newlines?1:0),this.preserve_newlines&&(t=e.newlines<this.max_preserve_newlines+1?e.newlines:this.max_preserve_newlines+1);for(var n=0;n<t;n++)this.print_newline(n>0);return 0!==t},h.prototype.traverse_whitespace=function(e){return!(!e.whitespace_before&&!e.newlines)&&(this.print_preserved_newlines(e)||(this._output.space_before_token=!0),!0)},h.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},h.prototype.print_newline=function(e){this._output.add_new_line(e)},h.prototype.print_token=function(e){e.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(e.text))},h.prototype.indent=function(){this.indent_level++},h.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},h.prototype.get_full_indent=function(e){return(e=this.indent_level+(e||0))<1?"":this._output.get_indent_string(e)};var c=function(e,t){var n=null,i=null;return t.closed?("script"===e?n="text/javascript":"style"===e&&(n="text/css"),n=function(e){for(var t=null,n=e.next;n.type!==o.EOF&&e.closed!==n;){if(n.type===o.ATTRIBUTE&&"type"===n.text){n.next&&n.next.type===o.EQUALS&&n.next.next&&n.next.next.type===o.VALUE&&(t=n.next.next.text);break}n=n.next}return t}(t)||n,n.search("text/css")>-1?i="css":n.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?i="javascript":n.search(/(text|application|dojo)\/(x-)?(html)/)>-1?i="html":n.search(/test\/null/)>-1&&(i="null"),i):null};function d(e,t){return-1!==t.indexOf(e)}function u(e,t,n){this.parent=e||null,this.tag=t?t.tag_name:"",this.indent_level=n||0,this.parser_token=t||null}function g(e){this._printer=e,this._current_frame=null}function f(e,t,n,r){this._source_text=e||"",t=t||{},this._js_beautify=n,this._css_beautify=r,this._tag_stack=null;var s=new i(t,"html");this._options=s,this._is_wrap_attributes_force="force"===this._options.wrap_attributes.substr(0,5),this._is_wrap_attributes_force_expand_multiline="force-expand-multiline"===this._options.wrap_attributes,this._is_wrap_attributes_force_aligned="force-aligned"===this._options.wrap_attributes,this._is_wrap_attributes_aligned_multiple="aligned-multiple"===this._options.wrap_attributes,this._is_wrap_attributes_preserve="preserve"===this._options.wrap_attributes.substr(0,8),this._is_wrap_attributes_preserve_aligned="preserve-aligned"===this._options.wrap_attributes}g.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},g.prototype.record_tag=function(e){var t=new u(this._current_frame,e,this._printer.indent_level);this._current_frame=t},g.prototype._try_pop_frame=function(e){var t=null;return e&&(t=e.parser_token,this._printer.indent_level=e.indent_level,this._current_frame=e.parent),t},g.prototype._get_frame=function(e,t){for(var n=this._current_frame;n&&-1===e.indexOf(n.tag);){if(t&&-1!==t.indexOf(n.tag)){n=null;break}n=n.parent}return n},g.prototype.try_pop=function(e,t){var n=this._get_frame([e],t);return this._try_pop_frame(n)},g.prototype.indent_to_tag=function(e){var t=this._get_frame(e);t&&(this._printer.indent_level=t.indent_level)},f.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._source_text,t=this._options.eol;"auto"===this._options.eol&&(t="\n",e&&a.test(e)&&(t=e.match(a)[0]));var n=(e=e.replace(l,"\n")).match(/^[\t ]*/)[0],i={text:"",type:""},r=new m,c=new h(this._options,n),d=new s(e,this._options).tokenize();this._tag_stack=new g(c);for(var u=null,f=d.next();f.type!==o.EOF;)f.type===o.TAG_OPEN||f.type===o.COMMENT?r=u=this._handle_tag_open(c,f,r,i,d):f.type===o.ATTRIBUTE||f.type===o.EQUALS||f.type===o.VALUE||f.type===o.TEXT&&!r.tag_complete?u=this._handle_inside_tag(c,f,r,i):f.type===o.TAG_CLOSE?u=this._handle_tag_close(c,f,r):f.type===o.TEXT?u=this._handle_text(c,f,r):f.type===o.CONTROL_FLOW_OPEN?u=this._handle_control_flow_open(c,f):f.type===o.CONTROL_FLOW_CLOSE?u=this._handle_control_flow_close(c,f):c.add_raw_token(f),i=u,f=d.next();return c._output.get_code(t)},f.prototype._handle_control_flow_open=function(e,t){var n={text:t.text,type:t.type};return e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),t.newlines?e.print_preserved_newlines(t):e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),e.print_token(t),e.indent(),n},f.prototype._handle_control_flow_close=function(e,t){var n={text:t.text,type:t.type};return e.deindent(),t.newlines?e.print_preserved_newlines(t):e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),e.print_token(t),n},f.prototype._handle_tag_close=function(e,t,n){var i={text:t.text,type:t.type};return e.alignment_size=0,n.tag_complete=!0,e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),n.is_unformatted?e.add_raw_token(t):("<"===n.tag_start_char&&(e.set_space_before_token("/"===t.text[0],!0),this._is_wrap_attributes_force_expand_multiline&&n.has_wrapped_attrs&&e.print_newline(!1)),e.print_token(t)),!n.indent_content||n.is_unformatted||n.is_content_unformatted||(e.indent(),n.indent_content=!1),n.is_inline_element||n.is_unformatted||n.is_content_unformatted||e.set_wrap_point(),i},f.prototype._handle_inside_tag=function(e,t,n,i){var r=n.has_wrapped_attrs,s={text:t.text,type:t.type};return e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),n.is_unformatted?e.add_raw_token(t):"{"===n.tag_start_char&&t.type===o.TEXT?e.print_preserved_newlines(t)?(t.newlines=0,e.add_raw_token(t)):e.print_token(t):(t.type===o.ATTRIBUTE?e.set_space_before_token(!0):(t.type===o.EQUALS||t.type===o.VALUE&&t.previous.type===o.EQUALS)&&e.set_space_before_token(!1),t.type===o.ATTRIBUTE&&"<"===n.tag_start_char&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(e.traverse_whitespace(t),r=r||0!==t.newlines),this._is_wrap_attributes_force&&n.attr_count>=this._options.wrap_attributes_min_attrs&&(i.type!==o.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(e.print_newline(!1),r=!0)),e.print_token(t),r=r||e.previous_token_wrapped(),n.has_wrapped_attrs=r),s},f.prototype._handle_text=function(e,t,n){var i={text:t.text,type:"TK_CONTENT"};return n.custom_beautifier_name?this._print_custom_beatifier_text(e,t,n):n.is_unformatted||n.is_content_unformatted?e.add_raw_token(t):(e.traverse_whitespace(t),e.print_token(t)),i},f.prototype._print_custom_beatifier_text=function(e,t,n){var i=this;if(""!==t.text){var r,s=t.text,o=1,a="",l="";"javascript"===n.custom_beautifier_name&&"function"===typeof this._js_beautify?r=this._js_beautify:"css"===n.custom_beautifier_name&&"function"===typeof this._css_beautify?r=this._css_beautify:"html"===n.custom_beautifier_name&&(r=function(e,t){return new f(e,t,i._js_beautify,i._css_beautify).beautify()}),"keep"===this._options.indent_scripts?o=0:"separate"===this._options.indent_scripts&&(o=-e.indent_level);var h=e.get_full_indent(o);if(s=s.replace(/\n[ \t]*$/,""),"html"!==n.custom_beautifier_name&&"<"===s[0]&&s.match(/^(<!--|<!\[CDATA\[)/)){var c=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(s);if(!c)return void e.add_raw_token(t);a=h+c[1]+"\n",s=c[4],c[5]&&(l=h+c[5]),s=s.replace(/\n[ \t]*$/,""),(c[2]||-1!==c[3].indexOf("\n"))&&(c=c[3].match(/[ \t]+$/))&&(t.whitespace_before=c[0])}if(s)if(r){var d=function(){this.eol="\n"};d.prototype=this._options.raw_options,s=r(h+s,new d)}else{var u=t.whitespace_before;u&&(s=s.replace(new RegExp("\n("+u+")?","g"),"\n")),s=h+s.replace(/\n/g,"\n"+h)}a&&(s=s?a+s+"\n"+l:a+l),e.print_newline(!1),s&&(t.text=s,t.whitespace_before="",t.newlines=0,e.add_raw_token(t),e.print_newline(!0))}},f.prototype._handle_tag_open=function(e,t,n,i,r){var s=this._get_tag_open_token(t);if(!n.is_unformatted&&!n.is_content_unformatted||n.is_empty_element||t.type!==o.TAG_OPEN||s.is_start_tag?(e.traverse_whitespace(t),this._set_tag_position(e,t,s,n,i),s.is_inline_element||e.set_wrap_point(),e.print_token(t)):(e.add_raw_token(t),s.start_tag_token=this._tag_stack.try_pop(s.tag_name)),s.is_start_tag&&this._is_wrap_attributes_force){var a,l=0;do{(a=r.peek(l)).type===o.ATTRIBUTE&&(s.attr_count+=1),l+=1}while(a.type!==o.EOF&&a.type!==o.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(s.alignment_size=t.text.length+1),s.tag_complete||s.is_unformatted||(e.alignment_size=s.alignment_size),s};var m=function(e,t){if(this.parent=e||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",t){var n;this.tag_start_char=t.text[0],this.text=t.text,"<"===this.tag_start_char?(n=t.text.match(/^<([^\s>]*)/),this.tag_check=n?n[1]:""):(n=t.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=n?n[1]:"",(t.text.startsWith("{{#>")||t.text.startsWith("{{~#>"))&&">"===this.tag_check[0]&&(">"===this.tag_check&&null!==t.next?this.tag_check=t.next.text.split(" ")[0]:this.tag_check=t.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),t.type===o.COMMENT&&(this.tag_complete=!0),this.is_start_tag="/"!==this.tag_check.charAt(0),this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||t.closed&&"/>"===t.closed.text;var i=2;"{"===this.tag_start_char&&this.text.length>=3&&"~"===this.text.charAt(2)&&(i=3),this.is_end_tag=this.is_end_tag||"{"===this.tag_start_char&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(i)))}else this.tag_complete=!0};f.prototype._get_tag_open_token=function(e){var t=new m(this._tag_stack.get_parser_token(),e);return t.alignment_size=this._options.wrap_attributes_indent_size,t.is_end_tag=t.is_end_tag||d(t.tag_check,this._options.void_elements),t.is_empty_element=t.tag_complete||t.is_start_tag&&t.is_end_tag,t.is_unformatted=!t.tag_complete&&d(t.tag_check,this._options.unformatted),t.is_content_unformatted=!t.is_empty_element&&d(t.tag_check,this._options.content_unformatted),t.is_inline_element=d(t.tag_name,this._options.inline)||this._options.inline_custom_elements&&t.tag_name.includes("-")||"{"===t.tag_start_char,t},f.prototype._set_tag_position=function(e,t,n,i,r){if(n.is_empty_element||(n.is_end_tag?n.start_tag_token=this._tag_stack.try_pop(n.tag_name):(this._do_optional_end_element(n)&&(n.is_inline_element||e.print_newline(!1)),this._tag_stack.record_tag(n),"script"!==n.tag_name&&"style"!==n.tag_name||n.is_unformatted||n.is_content_unformatted||(n.custom_beautifier_name=c(n.tag_check,t)))),d(n.tag_check,this._options.extra_liners)&&(e.print_newline(!1),e._output.just_added_blankline()||e.print_newline(!0)),n.is_empty_element){if("{"===n.tag_start_char&&"else"===n.tag_check)this._tag_stack.indent_to_tag(["if","unless","each"]),n.indent_content=!0,e.current_line_has_match(/{{#if/)||e.print_newline(!1);"!--"===n.tag_name&&r.type===o.TAG_CLOSE&&i.is_end_tag&&-1===n.text.indexOf("\n")||(n.is_inline_element||n.is_unformatted||e.print_newline(!1),this._calcluate_parent_multiline(e,n))}else if(n.is_end_tag){var s=!1;s=(s=n.start_tag_token&&n.start_tag_token.multiline_content)||!n.is_inline_element&&!(i.is_inline_element||i.is_unformatted)&&!(r.type===o.TAG_CLOSE&&n.start_tag_token===i)&&"TK_CONTENT"!==r.type,(n.is_content_unformatted||n.is_unformatted)&&(s=!1),s&&e.print_newline(!1)}else n.indent_content=!n.custom_beautifier_name,"<"===n.tag_start_char&&("html"===n.tag_name?n.indent_content=this._options.indent_inner_html:"head"===n.tag_name?n.indent_content=this._options.indent_head_inner_html:"body"===n.tag_name&&(n.indent_content=this._options.indent_body_inner_html)),n.is_inline_element||n.is_unformatted||"TK_CONTENT"===r.type&&!n.is_content_unformatted||e.print_newline(!1),this._calcluate_parent_multiline(e,n)},f.prototype._calcluate_parent_multiline=function(e,t){!t.parent||!e._output.just_added_newline()||(t.is_inline_element||t.is_unformatted)&&t.parent.is_inline_element||(t.parent.multiline_content=!0)};var p=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","menu","nav","ol","p","pre","section","table","ul"],_=["a","audio","del","ins","map","noscript","video"];f.prototype._do_optional_end_element=function(e){var t=null;if(!e.is_empty_element&&e.is_start_tag&&e.parent){if("body"===e.tag_name)t=t||this._tag_stack.try_pop("head");else if("li"===e.tag_name)t=t||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if("dd"===e.tag_name||"dt"===e.tag_name)t=(t=t||this._tag_stack.try_pop("dt",["dl"]))||this._tag_stack.try_pop("dd",["dl"]);else if("p"===e.parent.tag_name&&-1!==p.indexOf(e.tag_name)){var n=e.parent.parent;n&&-1!==_.indexOf(n.tag_name)||(t=t||this._tag_stack.try_pop("p"))}else"rp"===e.tag_name||"rt"===e.tag_name?t=(t=t||this._tag_stack.try_pop("rt",["ruby","rtc"]))||this._tag_stack.try_pop("rp",["ruby","rtc"]):"optgroup"===e.tag_name?t=t||this._tag_stack.try_pop("optgroup",["select"]):"option"===e.tag_name?t=t||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):"colgroup"===e.tag_name?t=t||this._tag_stack.try_pop("caption",["table"]):"thead"===e.tag_name?t=(t=t||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]):"tbody"===e.tag_name||"tfoot"===e.tag_name?t=(t=(t=(t=t||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]))||this._tag_stack.try_pop("thead",["table"]))||this._tag_stack.try_pop("tbody",["table"]):"tr"===e.tag_name?t=(t=(t=t||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]))||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"]):"th"!==e.tag_name&&"td"!==e.tag_name||(t=(t=t||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]))||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return e.parent=this._tag_stack.get_parser_token(),t}},e.exports.Beautifier=f},function(e,t,n){var i=n(6).Options;function r(e){i.call(this,e,"html"),1===this.templating.length&&"auto"===this.templating[0]&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_min_attrs=this._get_number("wrap_attributes_min_attrs",2),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.inline_custom_elements=this._get_boolean("inline_custom_elements",!0),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}r.prototype=new i,e.exports.Options=r},function(e,t,n){var i=n(9).Tokenizer,r=n(9).TOKEN,s=n(13).Directives,o=n(14).TemplatablePattern,a=n(12).Pattern,l={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",CONTROL_FLOW_OPEN:"TK_CONTROL_FLOW_OPEN",CONTROL_FLOW_CLOSE:"TK_CONTROL_FLOW_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:r.START,RAW:r.RAW,EOF:r.EOF},h=new s(/<\!--/,/-->/),c=function(e,t){i.call(this,e,t),this._current_tag_name="";var n=new o(this._input).read_options(this._options),r=new a(this._input);if(this.__patterns={word:n.until(/[\n\r\t <]/),word_control_flow_close_excluded:n.until(/[\n\r\t <}]/),single_quote:n.until_after(/'/),double_quote:n.until_after(/"/),attribute:n.until(/[\n\r\t =>]|\/>/),element_name:n.until(/[\n\r\t >\/]/),angular_control_flow_start:r.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:r.starting_with(/{{!--/).until_after(/--}}/),handlebars:r.starting_with(/{{/).until_after(/}}/),handlebars_open:r.until(/[\n\r\t }]/),handlebars_raw_close:r.until(/}}/),comment:r.starting_with(/<!--/).until_after(/-->/),cdata:r.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:r.starting_with(/<!\[/).until_after(/]>/),processing:r.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars"),this.__patterns.word_control_flow_close_excluded=this.__patterns.word_control_flow_close_excluded.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var s=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=r.matching(s).until_after(s)}};(c.prototype=new i)._is_comment=function(e){return!1},c.prototype._is_opening=function(e){return e.type===l.TAG_OPEN||e.type===l.CONTROL_FLOW_OPEN},c.prototype._is_closing=function(e,t){return e.type===l.TAG_CLOSE&&t&&((">"===e.text||"/>"===e.text)&&"<"===t.text[0]||"}}"===e.text&&"{"===t.text[0]&&"{"===t.text[1])||e.type===l.CONTROL_FLOW_CLOSE&&"}"===e.text&&t.text.endsWith("{")},c.prototype._reset=function(){this._current_tag_name=""},c.prototype._get_next_token=function(e,t){var n=null;this._readWhitespace();var i=this._input.peek();return null===i?this._create_token(l.EOF,""):n=(n=(n=(n=(n=(n=(n=(n=(n=(n=n||this._read_open_handlebars(i,t))||this._read_attribute(i,e,t))||this._read_close(i,t))||this._read_control_flows(i,t))||this._read_raw_content(i,e,t))||this._read_content_word(i,t))||this._read_comment_or_cdata(i))||this._read_processing(i))||this._read_open(i,t))||this._create_token(l.UNKNOWN,this._input.next())},c.prototype._read_comment_or_cdata=function(e){var t=null,n=null,i=null;"<"===e&&("!"===this._input.peek(1)&&((n=this.__patterns.comment.read())?(i=h.get_directives(n))&&"start"===i.ignore&&(n+=h.readIgnored(this._input)):n=this.__patterns.cdata.read()),n&&((t=this._create_token(l.COMMENT,n)).directives=i));return t},c.prototype._read_processing=function(e){var t=null,n=null;if("<"===e){var i=this._input.peek(1);"!"!==i&&"?"!==i||(n=(n=this.__patterns.conditional_comment.read())||this.__patterns.processing.read()),n&&((t=this._create_token(l.COMMENT,n)).directives=null)}return t},c.prototype._read_open=function(e,t){var n=null,i=null;return t&&t.type!==l.CONTROL_FLOW_OPEN||"<"===e&&(n=this._input.next(),"/"===this._input.peek()&&(n+=this._input.next()),n+=this.__patterns.element_name.read(),i=this._create_token(l.TAG_OPEN,n)),i},c.prototype._read_open_handlebars=function(e,t){var n=null,i=null;return t&&t.type!==l.CONTROL_FLOW_OPEN||this._options.indent_handlebars&&"{"===e&&"{"===this._input.peek(1)&&("!"===this._input.peek(2)?(n=(n=this.__patterns.handlebars_comment.read())||this.__patterns.handlebars.read(),i=this._create_token(l.COMMENT,n)):(n=this.__patterns.handlebars_open.read(),i=this._create_token(l.TAG_OPEN,n))),i},c.prototype._read_control_flows=function(e,t){var n="",i=null;if(!this._options.templating.includes("angular")||!this._options.indent_handlebars)return i;if("@"===e){if(""===(n=this.__patterns.angular_control_flow_start.read()))return i;for(var r=n.endsWith("(")?1:0,s=0;!n.endsWith("{")||r!==s;){var o=this._input.next();if(null===o)break;"("===o?r++:")"===o&&s++,n+=o}i=this._create_token(l.CONTROL_FLOW_OPEN,n)}else"}"===e&&t&&t.type===l.CONTROL_FLOW_OPEN&&(n=this._input.next(),i=this._create_token(l.CONTROL_FLOW_CLOSE,n));return i},c.prototype._read_close=function(e,t){var n=null,i=null;return t&&t.type===l.TAG_OPEN&&("<"===t.text[0]&&(">"===e||"/"===e&&">"===this._input.peek(1))?(n=this._input.next(),"/"===e&&(n+=this._input.next()),i=this._create_token(l.TAG_CLOSE,n)):"{"===t.text[0]&&"}"===e&&"}"===this._input.peek(1)&&(this._input.next(),this._input.next(),i=this._create_token(l.TAG_CLOSE,"}}"))),i},c.prototype._read_attribute=function(e,t,n){var i=null,r="";if(n&&"<"===n.text[0])if("="===e)i=this._create_token(l.EQUALS,this._input.next());else if('"'===e||"'"===e){var s=this._input.next();s+='"'===e?this.__patterns.double_quote.read():this.__patterns.single_quote.read(),i=this._create_token(l.VALUE,s)}else(r=this.__patterns.attribute.read())&&(i=t.type===l.EQUALS?this._create_token(l.VALUE,r):this._create_token(l.ATTRIBUTE,r));return i},c.prototype._is_content_unformatted=function(e){return-1===this._options.void_elements.indexOf(e)&&(-1!==this._options.content_unformatted.indexOf(e)||-1!==this._options.unformatted.indexOf(e))},c.prototype._read_raw_content=function(e,t,n){var i="";if(n&&"{"===n.text[0])i=this.__patterns.handlebars_raw_close.read();else if(t.type===l.TAG_CLOSE&&"<"===t.opened.text[0]&&"/"!==t.text[0]){var r=t.opened.text.substr(1).toLowerCase();if("script"===r||"style"===r){var s=this._read_comment_or_cdata(e);if(s)return s.type=l.TEXT,s;i=this._input.readUntil(new RegExp("</"+r+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(r)&&(i=this._input.readUntil(new RegExp("</"+r+"[\\n\\r\\t ]*?>","ig")))}return i?this._create_token(l.TEXT,i):null},c.prototype._read_content_word=function(e,t){var n="";if(this._options.unformatted_content_delimiter&&e===this._options.unformatted_content_delimiter[0]&&(n=this.__patterns.unformatted_content_delimiter.read()),n||(n=t&&t.type===l.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),n)return this._create_token(l.TEXT,n)},e.exports.Tokenizer=c,e.exports.TOKEN=l}],t={};var n=function n(i){var r=t[i];if(void 0!==r)return r.exports;var s=t[i]={exports:{}};return e[i](s,s.exports,n),s.exports}(18);qn=n}(),(()=>{var e={470:e=>{function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,i="",r=0,s=-1,o=0,a=0;a<=e.length;++a){if(a<e.length)n=e.charCodeAt(a);else{if(47===n)break;n=47}if(47===n){if(s===a-1||1===o);else if(s!==a-1&&2===o){if(i.length<2||2!==r||46!==i.charCodeAt(i.length-1)||46!==i.charCodeAt(i.length-2))if(i.length>2){var l=i.lastIndexOf("/");if(l!==i.length-1){-1===l?(i="",r=0):r=(i=i.slice(0,l)).length-1-i.lastIndexOf("/"),s=a,o=0;continue}}else if(2===i.length||1===i.length){i="",r=0,s=a,o=0;continue}t&&(i.length>0?i+="/..":i="..",r=2)}else i.length>0?i+="/"+e.slice(s+1,a):i=e.slice(s+1,a),r=a-s-1;s=a,o=0}else 46===n&&-1!==o?++o:o=-1}return i}var i={resolve:function(){for(var e,i="",r=!1,s=arguments.length-1;s>=-1&&!r;s--){var o;s>=0?o=arguments[s]:(void 0===e&&(e=process.cwd()),o=e),t(o),0!==o.length&&(i=o+"/"+i,r=47===o.charCodeAt(0))}return i=n(i,!r),r?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(e){if(t(e),0===e.length)return".";var i=47===e.charCodeAt(0),r=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!i)).length||i||(e="."),e.length>0&&r&&(e+="/"),i?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n<arguments.length;++n){var r=arguments[n];t(r),r.length>0&&(void 0===e?e=r:e+="/"+r)}return void 0===e?".":i.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n)return"";if((e=i.resolve(e))===(n=i.resolve(n)))return"";for(var r=1;r<e.length&&47===e.charCodeAt(r);++r);for(var s=e.length,o=s-r,a=1;a<n.length&&47===n.charCodeAt(a);++a);for(var l=n.length-a,h=o<l?o:l,c=-1,d=0;d<=h;++d){if(d===h){if(l>h){if(47===n.charCodeAt(a+d))return n.slice(a+d+1);if(0===d)return n.slice(a+d)}else o>h&&(47===e.charCodeAt(r+d)?c=d:0===d&&(c=0));break}var u=e.charCodeAt(r+d);if(u!==n.charCodeAt(a+d))break;47===u&&(c=d)}var g="";for(d=r+c+1;d<=s;++d)d!==s&&47!==e.charCodeAt(d)||(0===g.length?g+="..":g+="/..");return g.length>0?g+n.slice(a+c):(a+=c,47===n.charCodeAt(a)&&++a,n.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),i=47===n,r=-1,s=!0,o=e.length-1;o>=1;--o)if(47===(n=e.charCodeAt(o))){if(!s){r=o;break}}else s=!1;return-1===r?i?"/":".":i&&1===r?"//":e.slice(0,r)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');t(e);var i,r=0,s=-1,o=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var a=n.length-1,l=-1;for(i=e.length-1;i>=0;--i){var h=e.charCodeAt(i);if(47===h){if(!o){r=i+1;break}}else-1===l&&(o=!1,l=i+1),a>=0&&(h===n.charCodeAt(a)?-1==--a&&(s=i):(a=-1,s=l))}return r===s?s=l:-1===s&&(s=e.length),e.slice(r,s)}for(i=e.length-1;i>=0;--i)if(47===e.charCodeAt(i)){if(!o){r=i+1;break}}else-1===s&&(o=!1,s=i+1);return-1===s?"":e.slice(r,s)},extname:function(e){t(e);for(var n=-1,i=0,r=-1,s=!0,o=0,a=e.length-1;a>=0;--a){var l=e.charCodeAt(a);if(47!==l)-1===r&&(s=!1,r=a+1),46===l?-1===n?n=a:1!==o&&(o=1):-1!==n&&(o=-1);else if(!s){i=a+1;break}}return-1===n||-1===r||0===o||1===o&&n===r-1&&n===i+1?"":e.slice(n,r)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,i=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+i:n+"/"+i:i}(0,e)},parse:function(e){t(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var i,r=e.charCodeAt(0),s=47===r;s?(n.root="/",i=1):i=0;for(var o=-1,a=0,l=-1,h=!0,c=e.length-1,d=0;c>=i;--c)if(47!==(r=e.charCodeAt(c)))-1===l&&(h=!1,l=c+1),46===r?-1===o?o=c:1!==d&&(d=1):-1!==o&&(d=-1);else if(!h){a=c+1;break}return-1===o||-1===l||0===d||1===d&&o===l-1&&o===a+1?-1!==l&&(n.base=n.name=0===a&&s?e.slice(1,l):e.slice(a,l)):(0===a&&s?(n.name=e.slice(1,o),n.base=e.slice(1,l)):(n.name=e.slice(a,o),n.base=e.slice(a,l)),n.ext=e.slice(o,l)),a>0?n.dir=e.slice(0,a-1):s&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};i.posix=i,e.exports=i}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var s=t[i]={exports:{}};return e[i](s,s.exports,n),s.exports}n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};(()=>{let e;if(n.r(i),n.d(i,{URI:()=>c,Utils:()=>C}),"object"==typeof process)e="win32"===process.platform;else if("object"==typeof navigator){let t=navigator.userAgent;e=t.indexOf("Windows")>=0}const t=/^\w[\w\d+.-]*$/,r=/^\//,s=/^\/\//;function o(e,n){if(!e.scheme&&n)throw new 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 new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!r.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(s.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}const a="",l="/",h=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class c{static isUri(e){return e instanceof c||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString}scheme;authority;path;query;fragment;constructor(e,t,n,i,r,s=!1){"object"==typeof e?(this.scheme=e.scheme||a,this.authority=e.authority||a,this.path=e.path||a,this.query=e.query||a,this.fragment=e.fragment||a):(this.scheme=function(e,t){return e||t?e:"file"}(e,s),this.authority=t||a,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==l&&(t=l+t):t=l}return t}(this.scheme,n||a),this.query=i||a,this.fragment=r||a,o(this,s))}get fsPath(){return p(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:i,query:r,fragment:s}=e;return void 0===t?t=this.scheme:null===t&&(t=a),void 0===n?n=this.authority:null===n&&(n=a),void 0===i?i=this.path:null===i&&(i=a),void 0===r?r=this.query:null===r&&(r=a),void 0===s?s=this.fragment:null===s&&(s=a),t===this.scheme&&n===this.authority&&i===this.path&&r===this.query&&s===this.fragment?this:new u(t,n,i,r,s)}static parse(e,t=!1){const n=h.exec(e);return n?new u(n[2]||a,w(n[4]||a),w(n[5]||a),w(n[7]||a),w(n[9]||a),t):new u(a,a,a,a,a)}static file(t){let n=a;if(e&&(t=t.replace(/\\/g,l)),t[0]===l&&t[1]===l){const e=t.indexOf(l,2);-1===e?(n=t.substring(2),t=l):(n=t.substring(2,e),t=t.substring(e)||l)}return new u("file",n,t,a,a)}static from(e){const t=new u(e.scheme,e.authority,e.path,e.query,e.fragment);return o(t,!0),t}toString(e=!1){return _(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof c)return e;{const t=new u(e);return t._formatted=e.external,t._fsPath=e._sep===d?e.fsPath:null,t}}return e}}const d=e?1:void 0;class u extends c{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=p(this,!1)),this._fsPath}toString(e=!1){return e?_(this,!0):(this._formatted||(this._formatted=_(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=d),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}}const g={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 i,r=-1;for(let s=0;s<e.length;s++){const o=e.charCodeAt(s);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o||n&&91===o||n&&93===o||n&&58===o)-1!==r&&(i+=encodeURIComponent(e.substring(r,s)),r=-1),void 0!==i&&(i+=e.charAt(s));else{void 0===i&&(i=e.substr(0,s));const t=g[o];void 0!==t?(-1!==r&&(i+=encodeURIComponent(e.substring(r,s)),r=-1),i+=t):-1===r&&(r=s)}}return-1!==r&&(i+=encodeURIComponent(e.substring(r))),void 0!==i?i:e}function m(e){let t;for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);35===i||63===i?(void 0===t&&(t=e.substr(0,n)),t+=g[i]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function p(t,n){let i;return i=t.authority&&t.path.length>1&&"file"===t.scheme?`//${t.authority}${t.path}`:47===t.path.charCodeAt(0)&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&58===t.path.charCodeAt(2)?n?t.path.substr(1):t.path[1].toLowerCase()+t.path.substr(2):t.path,e&&(i=i.replace(/\//g,"\\")),i}function _(e,t){const n=t?m:f;let i="",{scheme:r,authority:s,path:o,query:a,fragment:h}=e;if(r&&(i+=r,i+=":"),(s||"file"===r)&&(i+=l,i+=l),s){let e=s.indexOf("@");if(-1!==e){const t=s.substr(0,e);s=s.substr(e+1),e=t.lastIndexOf(":"),-1===e?i+=n(t,!1,!1):(i+=n(t.substr(0,e),!1,!1),i+=":",i+=n(t.substr(e+1),!1,!0)),i+="@"}s=s.toLowerCase(),e=s.lastIndexOf(":"),-1===e?i+=n(s,!1,!0):(i+=n(s.substr(0,e),!1,!0),i+=s.substr(e))}if(o){if(o.length>=3&&47===o.charCodeAt(0)&&58===o.charCodeAt(2)){const e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&58===o.charCodeAt(1)){const e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}i+=n(o,!0,!1)}return a&&(i+="?",i+=n(a,!1,!1)),h&&(i+="#",i+=t?h:f(h,!1,!1)),i}function b(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+b(e.substr(3)):e}}const v=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function w(e){return e.match(v)?e.replace(v,(e=>b(e))):e}var k=n(470);const y=k.posix||k,T="/";var C,S;(S=C||(C={})).joinPath=function(e,...t){return e.with({path:y.join(e.path,...t)})},S.resolvePath=function(e,...t){let n=e.path,i=!1;n[0]!==T&&(n=T+n,i=!0);let r=y.resolve(n,...t);return i&&r[0]===T&&!e.authority&&(r=r.substring(1)),e.with({path:r})},S.dirname=function(e){if(0===e.path.length||e.path===T)return e;let t=y.dirname(e.path);return 1===t.length&&46===t.charCodeAt(0)&&(t=""),e.with({path:t})},S.basename=function(e){return y.basename(e.path)},S.extname=function(e){return y.extname(e.path)}})(),Vn=i})();var{URI:Jn,Utils:Zn}=Vn;function ei(e){const t=e[0];return t!==e[e.length-1]||"'"!==t&&'"'!==t||(e=e.substring(1,e.length-1)),e}function ti(e,t,n,i,r,s){const o=ei(n);if(a=o,l=e.languageId,!a.length||"handlebars"===l&&/{{|}}/.test(a)||!/\b(w[\w\d+.-]*:\/\/)?[^\s()<>]+(?:\([\w\d]+\)|([^[:punct:]\s]|\/?))/.test(a))return;var a,l;o.length<n.length&&(i++,r--);const h=function(e,t,n,i){if(/^\s*javascript\:/i.test(t)||/[\n\r]/.test(t))return;const r=(t=t.replace(/^\s*/g,"")).match(/^(\w[\w\d+.-]*):/);if(r){const e=r[1].toLowerCase();return"http"===e||"https"===e||"file"===e?t:void 0}if(/^\#/i.test(t))return e+t;if(/^\/\//i.test(t))return(_n(e,"https://")?"https":"http")+":"+t.replace(/^\s*/g,"");return n?n.resolveReference(t,i||e):t}(e.uri,o,t,s);if(!h)return;const c=function(e,t){try{let n=Jn.parse(e);return"file"===n.scheme&&n.query&&(n=n.with({query:null}),e=n.toString(!0)),"file"!==n.scheme||!n.fragment||e.startsWith(t.uri)&&e.charCodeAt(t.uri.length)===ni?e:n.with({fragment:null}).toString(!0)}catch(n){return}}(h,e);return{range:m.create(e.positionAt(i),e.positionAt(r)),target:c}}var ni="#".charCodeAt(0);var ii=class{constructor(e){this.dataManager=e}findDocumentLinks(e,t){const n=[],i=un(e.getText(),0);let r,s,o,a=i.scan(),l=!1;const h={};for(;a!==Pt.EOS;){switch(a){case Pt.StartTag:s=i.getTokenText().toLowerCase(),o||(l="base"===s);break;case Pt.AttributeName:r=i.getTokenText().toLowerCase();break;case Pt.AttributeValue:if(s&&r&&this.dataManager.isPathAttribute(s,r)){const s=i.getTokenText();if(!l){const r=ti(e,t,s,i.getTokenOffset(),i.getTokenEnd(),o);r&&n.push(r)}l&&"undefined"===typeof o&&(o=ei(s),o&&t&&(o=t.resolveReference(o,e.uri))),l=!1,r=void 0}else if("id"===r){h[ei(i.getTokenText())]=i.getTokenOffset()}}a=i.scan()}for(const c of n){const t=e.uri+"#";if(c.target&&_n(c.target,t)){const n=h[c.target.substring(t.length)];if(void 0!==n){const i=e.positionAt(n);c.target=`${t}${i.line+1},${i.character+1}`}else c.target=e.uri}}return n}};function ri(e,t,n){const i=e.offsetAt(t),r=n.findNodeAt(i);if(!r.tag)return[];const s=[],o=ai(Pt.StartTag,e,r.start),a="number"===typeof r.endTagStart&&ai(Pt.EndTag,e,r.endTagStart);return(o&&oi(o,t)||a&&oi(a,t))&&(o&&s.push({kind:Ne.Read,range:o}),a&&s.push({kind:Ne.Read,range:a})),s}function si(e,t){return e.line<t.line||e.line===t.line&&e.character<=t.character}function oi(e,t){return si(e.start,t)&&si(t,e.end)}function ai(e,t,n){const i=un(t.getText(),n);let r=i.scan();for(;r!==Pt.EOS&&r!==e;)r=i.scan();return r!==Pt.EOS?{start:t.positionAt(i.getTokenOffset()),end:t.positionAt(i.getTokenEnd())}:null}function li(e,t){const n=[],i=hi(e,t);for(const s of i)r(s,void 0);return n;function r(t,i){const s=Pe.create(t.name,t.kind,t.range,e.uri,i?.name);if(s.containerName??(s.containerName=""),n.push(s),t.children)for(const e of t.children)r(e,t)}}function hi(e,t){const n=[];return t.roots.forEach((t=>{ci(e,t,n)})),n}function ci(e,t,n){const i=function(e){let t=e.tag;if(e.attributes){const n=e.attributes.id,i=e.attributes.class;n&&(t+=`#${n.replace(/[\"\']/g,"")}`),i&&(t+=i.replace(/[\"\']/g,"").split(/\s+/).map((e=>`.${e}`)).join(""))}return t||"?"}(t),r=m.create(e.positionAt(t.start),e.positionAt(t.end)),s=We.create(i,void 0,Oe.Field,r,r);n.push(s),t.children.forEach((t=>{s.children??(s.children=[]),ci(e,t,s.children)}))}function di(e,t,n,i){const r=e.offsetAt(t),s=i.findNodeAt(r);if(!s.tag)return null;if(!function(e,t,n){if(e.endTagStart&&e.endTagStart+2<=t&&t<=e.endTagStart+2+n.length)return!0;return e.start+1<=t&&t<=e.start+1+n.length}(s,r,s.tag))return null;const o=[],a={start:e.positionAt(s.start+1),end:e.positionAt(s.start+1+s.tag.length)};if(o.push({range:a,newText:n}),s.endTagStart){const t={start:e.positionAt(s.endTagStart+2),end:e.positionAt(s.endTagStart+2+s.tag.length)};o.push({range:t,newText:n})}return{changes:{[e.uri.toString()]:o}}}function ui(e,t,n){const i=e.offsetAt(t),r=n.findNodeAt(i);if(!r.tag)return null;if(!r.endTagStart)return null;if(r.start+1<=i&&i<=r.start+1+r.tag.length){const t=i-1-r.start+r.endTagStart+2;return e.positionAt(t)}if(r.endTagStart+2<=i&&i<=r.endTagStart+2+r.tag.length){const t=i-2-r.endTagStart+r.start+1;return e.positionAt(t)}return null}function gi(e,t,n){const i=e.offsetAt(t),r=n.findNodeAt(i),s=r.tag?r.tag.length:0;return r.endTagStart&&(r.start+1<=i&&i<=r.start+1+s||r.endTagStart+2<=i&&i<=r.endTagStart+2+s)?[m.create(e.positionAt(r.start+1),e.positionAt(r.start+1+s)),m.create(e.positionAt(r.endTagStart+2),e.positionAt(r.endTagStart+2+s))]:null}var fi=class{constructor(e){this.dataManager=e}limitRanges(e,t){let n;e=e.sort(((e,t)=>{let n=e.startLine-t.startLine;return 0===n&&(n=e.endLine-t.endLine),n}));const i=[],r=[],s=[],o=(e,t)=>{r[e]=t,t<30&&(s[t]=(s[t]||0)+1)};for(let c=0;c<e.length;c++){const t=e[c];if(n){if(t.startLine>n.startLine)if(t.endLine<=n.endLine)i.push(n),n=t,o(c,i.length);else if(t.startLine>n.endLine){do{n=i.pop()}while(n&&t.startLine>n.endLine);n&&i.push(n),n=t,o(c,i.length)}}else n=t,o(c,0)}let a=0,l=0;for(let c=0;c<s.length;c++){const e=s[c];if(e){if(e+a>t){l=c;break}a+=e}}const h=[];for(let c=0;c<e.length;c++){const n=r[c];"number"===typeof n&&(n<l||n===l&&a++<t)&&h.push(e[c])}return h}getFoldingRanges(e,t){const n=this.dataManager.getVoidElements(e.languageId),i=un(e.getText());let r=i.scan();const s=[],o=[];let a=null,l=-1;function h(e){s.push(e),l=e.startLine}for(;r!==Pt.EOS;){switch(r){case Pt.StartTag:{const t=i.getTokenText(),n=e.positionAt(i.getTokenOffset()).line;o.push({startLine:n,tagName:t}),a=t;break}case Pt.EndTag:a=i.getTokenText();break;case Pt.StartTagClose:if(!a||!this.dataManager.isVoidElement(a,n))break;case Pt.EndTagClose:case Pt.StartTagSelfClose:{let t=o.length-1;for(;t>=0&&o[t].tagName!==a;)t--;if(t>=0){const n=o[t];o.length=t;const r=e.positionAt(i.getTokenOffset()).line,s=n.startLine,a=r-1;a>s&&l!==s&&h({startLine:s,endLine:a})}break}case Pt.Comment:{let t=e.positionAt(i.getTokenOffset()).line;const n=i.getTokenText().match(/^\s*#(region\b)|(endregion\b)/);if(n)if(n[1])o.push({startLine:t,tagName:""});else{let e=o.length-1;for(;e>=0&&o[e].tagName.length;)e--;if(e>=0){const n=o[e];o.length=e;const i=t;t=n.startLine,i>t&&l!==t&&h({startLine:t,endLine:i,kind:x.Region})}}else{const n=e.positionAt(i.getTokenOffset()+i.getTokenLength()).line;t<n&&h({startLine:t,endLine:n,kind:x.Comment})}break}}r=i.scan()}const c=t&&t.rangeLimit||Number.MAX_VALUE;return s.length>c?this.limitRanges(s,c):s}},mi=class{constructor(e){this.htmlParser=e}getSelectionRanges(e,t){const n=this.htmlParser.parseDocument(e);return t.map((t=>this.getSelectionRange(t,e,n)))}getSelectionRange(e,t,n){const i=this.getApplicableRanges(t,e,n);let r,s;for(let o=i.length-1;o>=0;o--){const e=i[o];r&&e[0]===r[0]&&e[1]===r[1]||(s=nt.create(m.create(t.positionAt(i[o][0]),t.positionAt(i[o][1])),s)),r=e}return s||(s=nt.create(m.create(e,e))),s}getApplicableRanges(e,t,n){const i=e.offsetAt(t),r=n.findNodeAt(i);let s=this.getAllParentTagRanges(r);if(r.startTagEnd&&!r.endTagStart){if(r.startTagEnd!==r.end)return[[r.start,r.end]];const t=m.create(e.positionAt(r.startTagEnd-2),e.positionAt(r.startTagEnd));"/>"===e.getText(t)?s.unshift([r.start+1,r.startTagEnd-2]):s.unshift([r.start+1,r.startTagEnd-1]);return s=this.getAttributeLevelRanges(e,r,i).concat(s),s}if(!r.startTagEnd||!r.endTagStart)return s;if(s.unshift([r.start,r.end]),r.start<i&&i<r.startTagEnd){s.unshift([r.start+1,r.startTagEnd-1]);return s=this.getAttributeLevelRanges(e,r,i).concat(s),s}return r.startTagEnd<=i&&i<=r.endTagStart?(s.unshift([r.startTagEnd,r.endTagStart]),s):(i>=r.endTagStart+2&&s.unshift([r.endTagStart+2,r.end-1]),s)}getAllParentTagRanges(e){let t=e;const n=[];for(;t.parent;)t=t.parent,this.getNodeRanges(t).forEach((e=>n.push(e)));return n}getNodeRanges(e){return e.startTagEnd&&e.endTagStart&&e.startTagEnd<e.endTagStart?[[e.startTagEnd,e.endTagStart],[e.start,e.end]]:[[e.start,e.end]]}getAttributeLevelRanges(e,t,n){const i=m.create(e.positionAt(t.start),e.positionAt(t.end)),r=e.getText(i),s=n-t.start,o=un(r);let a=o.scan();const l=t.start,h=[];let c=!1,d=-1;for(;a!==Pt.EOS;){switch(a){case Pt.AttributeName:if(s<o.getTokenOffset()){c=!1;break}s<=o.getTokenEnd()&&h.unshift([o.getTokenOffset(),o.getTokenEnd()]),c=!0,d=o.getTokenOffset();break;case Pt.AttributeValue:{if(!c)break;const e=o.getTokenText();if(s<o.getTokenOffset()){h.push([d,o.getTokenEnd()]);break}s>=o.getTokenOffset()&&s<=o.getTokenEnd()&&(h.unshift([o.getTokenOffset(),o.getTokenEnd()]),('"'===e[0]&&'"'===e[e.length-1]||"'"===e[0]&&"'"===e[e.length-1])&&s>=o.getTokenOffset()+1&&s<=o.getTokenEnd()-1&&h.unshift([o.getTokenOffset()+1,o.getTokenEnd()-1]),h.push([d,o.getTokenEnd()]));break}}a=o.scan()}return h.map((e=>[e[0]+l,e[1]+l]))}},pi={version:1.1,tags:[{name:"html",description:{kind:"markdown",value:"The html element represents the root of an HTML document."},attributes:[{name:"manifest",description:{kind:"markdown",value:"Specifies the URI of a resource manifest indicating resources that should be cached locally. See [Using the application cache](https://developer.mozilla.org/en-US/docs/Web/HTML/Using_the_application_cache) for details."}},{name:"version",description:'Specifies the version of the HTML [Document Type Definition](https://developer.mozilla.org/en-US/docs/Glossary/DTD "Document Type Definition: In HTML, the doctype is the required "<!DOCTYPE html>" preamble found at the top of all documents. Its sole purpose is to prevent a browser from switching into so-called \u201cquirks mode\u201d when rendering a document; that is, the "<!DOCTYPE html>" doctype ensures that the browser makes a best-effort attempt at following the relevant specifications, rather than using a different rendering mode that is incompatible with some specifications.") that governs the current document. This attribute is not needed, because it is redundant with the version information in the document type declaration.'},{name:"xmlns",description:'Specifies the XML Namespace of the document. Default value is `"http://www.w3.org/1999/xhtml"`. This is required in documents parsed with XML parsers, and optional in text/html documents.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/html"}]},{name:"head",description:{kind:"markdown",value:"The head element represents a collection of metadata for the Document."},attributes:[{name:"profile",description:"The URIs of one or more metadata profiles, separated by white space."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/head"}]},{name:"title",description:{kind:"markdown",value:"The title element represents the document's title or name. Authors should use titles that identify their documents even when they are used out of context, for example in a user's history or bookmarks, or in search results. The document's title is often different from its first heading, since the first heading does not have to stand alone when taken out of context."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/title"}]},{name:"base",description:{kind:"markdown",value:"The base element allows authors to specify the document base URL for the purposes of resolving relative URLs, and the name of the default browsing context for the purposes of following hyperlinks. The element does not represent any content beyond this information."},void:!0,attributes:[{name:"href",description:{kind:"markdown",value:"The base URL to be used throughout the document for relative URL addresses. If this attribute is specified, this element must come before any other elements with attributes whose values are URLs. Absolute and relative URLs are allowed."}},{name:"target",valueSet:"target",description:{kind:"markdown",value:"A name or keyword indicating the default location to display the result when hyperlinks or forms cause navigation, for elements that do not have an explicit target reference. It is a name of, or keyword for, a _browsing context_ (for example: tab, window, or inline frame). The following keywords have special meanings:\n\n* `_self`: Load the result into the same browsing context as the current one. This value is the default if the attribute is not specified.\n* `_blank`: Load the result into a new unnamed browsing context.\n* `_parent`: Load the result into the parent browsing context of the current one. If there is no parent, this option behaves the same way as `_self`.\n* `_top`: Load the result into the top-level browsing context (that is, the browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this option behaves the same way as `_self`.\n\nIf this attribute is specified, this element must come before any other elements with attributes whose values are URLs."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/base"}]},{name:"link",description:{kind:"markdown",value:"The link element allows authors to link their document to other resources."},void:!0,attributes:[{name:"href",description:{kind:"markdown",value:'This attribute specifies the [URL](https://developer.mozilla.org/en-US/docs/Glossary/URL "URL: Uniform Resource Locator (URL) is a text string specifying where a resource can be found on the Internet.") of the linked resource. A URL can be absolute or relative.'}},{name:"crossorigin",valueSet:"xo",description:{kind:"markdown",value:'This enumerated attribute indicates whether [CORS](https://developer.mozilla.org/en-US/docs/Glossary/CORS "CORS: CORS (Cross-Origin Resource Sharing) is a system, consisting of transmitting HTTP headers, that determines whether browsers block frontend JavaScript code from accessing responses for cross-origin requests.") must be used when fetching the resource. [CORS-enabled images](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_Enabled_Image) can be reused in the [`<canvas>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas "Use the HTML <canvas> element with either the canvas scripting API or the WebGL API to draw graphics and animations.") element without being _tainted_. The allowed values are:\n\n`anonymous`\n\nA cross-origin request (i.e. with an [`Origin`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin "The Origin request header indicates where a fetch originates from. It doesn\'t include any path information, but only the server name. It is sent with CORS requests, as well as with POST requests. It is similar to the Referer header, but, unlike this header, it doesn\'t disclose the whole path.") HTTP header) is performed, but no credential is sent (i.e. no cookie, X.509 certificate, or HTTP Basic authentication). If the server does not give credentials to the origin site (by not setting the [`Access-Control-Allow-Origin`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin "The Access-Control-Allow-Origin response header indicates whether the response can be shared with requesting code from the given origin.") HTTP header) the image will be tainted and its usage restricted.\n\n`use-credentials`\n\nA cross-origin request (i.e. with an `Origin` HTTP header) is performed along with a credential sent (i.e. a cookie, certificate, and/or HTTP Basic authentication is performed). If the server does not give credentials to the origin site (through [`Access-Control-Allow-Credentials`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Credentials "The Access-Control-Allow-Credentials response header tells browsers whether to expose the response to frontend JavaScript code when the request\'s credentials mode (Request.credentials) is "include".") HTTP header), the resource will be _tainted_ and its usage restricted.\n\nIf the attribute is not present, the resource is fetched without a [CORS](https://developer.mozilla.org/en-US/docs/Glossary/CORS "CORS: CORS (Cross-Origin Resource Sharing) is a system, consisting of transmitting HTTP headers, that determines whether browsers block frontend JavaScript code from accessing responses for cross-origin requests.") request (i.e. without sending the `Origin` HTTP header), preventing its non-tainted usage. If invalid, it is handled as if the enumerated keyword **anonymous** was used. See [CORS settings attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) for additional information.'}},{name:"rel",description:{kind:"markdown",value:"This attribute names a relationship of the linked document to the current document. The attribute must be a space-separated list of the [link types values](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types)."}},{name:"media",description:{kind:"markdown",value:"This attribute specifies the media that the linked resource applies to. Its value must be a media type / [media query](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries). This attribute is mainly useful when linking to external stylesheets \u2014 it allows the user agent to pick the best adapted one for the device it runs on.\n\n**Notes:**\n\n* In HTML 4, this can only be a simple white-space-separated list of media description literals, i.e., [media types and groups](https://developer.mozilla.org/en-US/docs/Web/CSS/@media), where defined and allowed as values for this attribute, such as `print`, `screen`, `aural`, `braille`. HTML5 extended this to any kind of [media queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries), which are a superset of the allowed values of HTML 4.\n* Browsers not supporting [CSS3 Media Queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries) won't necessarily recognize the adequate link; do not forget to set fallback links, the restricted set of media queries defined in HTML 4."}},{name:"hreflang",description:{kind:"markdown",value:"This attribute indicates the language of the linked resource. It is purely advisory. Allowed values are determined by [BCP47](https://www.ietf.org/rfc/bcp/bcp47.txt). Use this attribute only if the [`href`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href) attribute is present."}},{name:"type",description:{kind:"markdown",value:'This attribute is used to define the type of the content linked to. The value of the attribute should be a MIME type such as **text/html**, **text/css**, and so on. The common use of this attribute is to define the type of stylesheet being referenced (such as **text/css**), but given that CSS is the only stylesheet language used on the web, not only is it possible to omit the `type` attribute, but is actually now recommended practice. It is also used on `rel="preload"` link types, to make sure the browser only downloads file types that it supports.'}},{name:"sizes",description:{kind:"markdown",value:"This attribute defines the sizes of the icons for visual media contained in the resource. It must be present only if the [`rel`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-rel) contains a value of `icon` or a non-standard type such as Apple's `apple-touch-icon`. It may have the following values:\n\n* `any`, meaning that the icon can be scaled to any size as it is in a vector format, like `image/svg+xml`.\n* a white-space separated list of sizes, each in the format `_<width in pixels>_x_<height in pixels>_` or `_<width in pixels>_X_<height in pixels>_`. Each of these sizes must be contained in the resource.\n\n**Note:** Most icon formats are only able to store one single icon; therefore most of the time the [`sizes`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-sizes) contains only one entry. MS's ICO format does, as well as Apple's ICNS. ICO is more ubiquitous; you should definitely use it."}},{name:"as",description:'This attribute is only used when `rel="preload"` or `rel="prefetch"` has been set on the `<link>` element. It specifies the type of content being loaded by the `<link>`, which is necessary for content prioritization, request matching, application of correct [content security policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), and setting of correct [`Accept`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept "The Accept request HTTP header advertises which content types, expressed as MIME types, the client is able to understand. Using content negotiation, the server then selects one of the proposals, uses it and informs the client of its choice with the Content-Type response header. Browsers set adequate values for this header depending on\xa0the context where the request is done: when fetching a CSS stylesheet a different value is set for the request than when fetching an image,\xa0video or a script.") request header.'},{name:"importance",description:"Indicates the relative importance of the resource. Priority hints are delegated using the values:"},{name:"importance",description:'**`auto`**: Indicates\xa0**no\xa0preference**. The browser may use its own heuristics to decide the priority of the resource.\n\n**`high`**: Indicates to the\xa0browser\xa0that the resource is of\xa0**high** priority.\n\n**`low`**:\xa0Indicates to the\xa0browser\xa0that the resource is of\xa0**low** priority.\n\n**Note:** The `importance` attribute may only be used for the `<link>` element if `rel="preload"` or `rel="prefetch"` is present.'},{name:"integrity",description:"Contains inline metadata \u2014 a base64-encoded cryptographic hash of the resource (file) you\u2019re telling the browser to fetch. The browser can use this to verify that the fetched resource has been delivered free of unexpected manipulation. See [Subresource Integrity](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity)."},{name:"referrerpolicy",description:'A string indicating which referrer to use when fetching the resource:\n\n* `no-referrer` means that the [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will not be sent.\n* `no-referrer-when-downgrade` means that no [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will be sent when navigating to an origin without TLS (HTTPS). This is a user agent\u2019s default behavior, if no policy is otherwise specified.\n* `origin` means that the referrer will be the origin of the page, which is roughly the scheme, the host, and the port.\n* `origin-when-cross-origin` means that navigating to other origins will be limited to the scheme, the host, and the port, while navigating on the same origin will include the referrer\'s path.\n* `unsafe-url` means that the referrer will include the origin and the path (but not the fragment, password, or username). This case is unsafe because it can leak origins and paths from TLS-protected resources to insecure origins.'},{name:"title",description:'The `title` attribute has special semantics on the `<link>` element. When used on a `<link rel="stylesheet">` it defines a [preferred or an alternate stylesheet](https://developer.mozilla.org/en-US/docs/Web/CSS/Alternative_style_sheets). Incorrectly using it may [cause the stylesheet to be ignored](https://developer.mozilla.org/en-US/docs/Correctly_Using_Titles_With_External_Stylesheets).'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/link"}]},{name:"meta",description:{kind:"markdown",value:"The meta element represents various kinds of metadata that cannot be expressed using the title, base, link, style, and script elements."},void:!0,attributes:[{name:"name",description:{kind:"markdown",value:'This attribute defines the name of a piece of document-level metadata. It should not be set if one of the attributes [`itemprop`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-itemprop), [`http-equiv`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-http-equiv) or [`charset`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-charset) is also set.\n\nThis metadata name is associated with the value contained by the [`content`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-content) attribute. The possible values for the name attribute are:\n\n* `application-name` which defines the name of the application running in the web page.\n \n **Note:**\n \n * Browsers may use this to identify the application. It is different from the [`<title>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/title "The HTML Title element (<title>) defines the document\'s title that is shown in a browser\'s title bar or a page\'s tab.") element, which usually contain the application name, but may also contain information like the document name or a status.\n * Simple web pages shouldn\'t define an application-name.\n \n* `author` which defines the name of the document\'s author.\n* `description` which contains a short and accurate summary of the content of the page. Several browsers, like Firefox and Opera, use this as the default description of bookmarked pages.\n* `generator` which contains the identifier of the software that generated the page.\n* `keywords` which contains words relevant to the page\'s content separated by commas.\n* `referrer` which controls the [`Referer` HTTP header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer) attached to requests sent from the document:\n \n Values for the `content` attribute of `<meta name="referrer">`\n \n `no-referrer`\n \n Do not send a HTTP `Referrer` header.\n \n `origin`\n \n Send the [origin](https://developer.mozilla.org/en-US/docs/Glossary/Origin) of the document.\n \n `no-referrer-when-downgrade`\n \n Send the [origin](https://developer.mozilla.org/en-US/docs/Glossary/Origin) as a referrer to URLs as secure as the current page, (https\u2192https), but does not send a referrer to less secure URLs (https\u2192http). This is the default behaviour.\n \n `origin-when-cross-origin`\n \n Send the full URL (stripped of parameters) for same-origin requests, but only send the [origin](https://developer.mozilla.org/en-US/docs/Glossary/Origin) for other cases.\n \n `same-origin`\n \n A referrer will be sent for [same-site origins](https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy), but cross-origin requests will contain no referrer information.\n \n `strict-origin`\n \n Only send the origin of the document as the referrer to a-priori as-much-secure destination (HTTPS->HTTPS), but don\'t send it to a less secure destination (HTTPS->HTTP).\n \n `strict-origin-when-cross-origin`\n \n Send a full URL when performing a same-origin request, only send the origin of the document to a-priori as-much-secure destination (HTTPS->HTTPS), and send no header to a less secure destination (HTTPS->HTTP).\n \n `unsafe-URL`\n \n Send the full URL (stripped of parameters) for same-origin or cross-origin requests.\n \n **Notes:**\n \n * Some browsers support the deprecated values of `always`, `default`, and `never` for referrer.\n * Dynamically inserting `<meta name="referrer">` (with [`document.write`](https://developer.mozilla.org/en-US/docs/Web/API/Document/write) or [`appendChild`](https://developer.mozilla.org/en-US/docs/Web/API/Node/appendChild)) makes the referrer behaviour unpredictable.\n * When several conflicting policies are defined, the no-referrer policy is applied.\n \n\nThis attribute may also have a value taken from the extended list defined on [WHATWG Wiki MetaExtensions page](https://wiki.whatwg.org/wiki/MetaExtensions). Although none have been formally accepted yet, a few commonly used names are:\n\n* `creator` which defines the name of the creator of the document, such as an organization or institution. If there are more than one, several [`<meta>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta "The HTML <meta> element represents metadata that cannot be represented by other HTML meta-related elements, like <base>, <link>, <script>, <style> or <title>.") elements should be used.\n* `googlebot`, a synonym of `robots`, is only followed by Googlebot (the indexing crawler for Google).\n* `publisher` which defines the name of the document\'s publisher.\n* `robots` which defines the behaviour that cooperative crawlers, or "robots", should use with the page. It is a comma-separated list of the values below:\n \n Values for the content of `<meta name="robots">`\n \n Value\n \n Description\n \n Used by\n \n `index`\n \n Allows the robot to index the page (default).\n \n All\n \n `noindex`\n \n Requests the robot to not index the page.\n \n All\n \n `follow`\n \n Allows the robot to follow the links on the page (default).\n \n All\n \n `nofollow`\n \n Requests the robot to not follow the links on the page.\n \n All\n \n `none`\n \n Equivalent to `noindex, nofollow`\n \n [Google](https://support.google.com/webmasters/answer/79812)\n \n `noodp`\n \n Prevents using the [Open Directory Project](https://www.dmoz.org/) description, if any, as the page description in search engine results.\n \n [Google](https://support.google.com/webmasters/answer/35624#nodmoz), [Yahoo](https://help.yahoo.com/kb/search-for-desktop/meta-tags-robotstxt-yahoo-search-sln2213.html#cont5), [Bing](https://www.bing.com/webmaster/help/which-robots-metatags-does-bing-support-5198d240)\n \n `noarchive`\n \n Requests the search engine not to cache the page content.\n \n [Google](https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag#valid-indexing--serving-directives), [Yahoo](https://help.yahoo.com/kb/search-for-desktop/SLN2213.html), [Bing](https://www.bing.com/webmaster/help/which-robots-metatags-does-bing-support-5198d240)\n \n `nosnippet`\n \n Prevents displaying any description of the page in search engine results.\n \n [Google](https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag#valid-indexing--serving-directives), [Bing](https://www.bing.com/webmaster/help/which-robots-metatags-does-bing-support-5198d240)\n \n `noimageindex`\n \n Requests this page not to appear as the referring page of an indexed image.\n \n [Google](https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag#valid-indexing--serving-directives)\n \n `nocache`\n \n Synonym of `noarchive`.\n \n [Bing](https://www.bing.com/webmaster/help/which-robots-metatags-does-bing-support-5198d240)\n \n **Notes:**\n \n * Only cooperative robots follow these rules. Do not expect to prevent e-mail harvesters with them.\n * The robot still needs to access the page in order to read these rules. To prevent bandwidth consumption, use a _[robots.txt](https://developer.mozilla.org/en-US/docs/Glossary/robots.txt "robots.txt: Robots.txt is a file which is usually placed in the root of any website. It decides whether\xa0crawlers are permitted or forbidden access to the web site.")_ file.\n * If you want to remove a page, `noindex` will work, but only after the robot visits the page again. Ensure that the `robots.txt` file is not preventing revisits.\n * Some values are mutually exclusive, like `index` and `noindex`, or `follow` and `nofollow`. In these cases the robot\'s behaviour is undefined and may vary between them.\n * Some crawler robots, like Google, Yahoo and Bing, support the same values for the HTTP header `X-Robots-Tag`; this allows non-HTML documents like images to use these rules.\n \n* `slurp`, is a synonym of `robots`, but only for Slurp - the crawler for Yahoo Search.\n* `viewport`, which gives hints about the size of the initial size of the [viewport](https://developer.mozilla.org/en-US/docs/Glossary/viewport "viewport: A viewport represents a polygonal (normally rectangular) area in computer graphics that is currently being viewed. In web browser terms, it refers to the part of the document you\'re viewing which is currently visible in its window (or the screen, if the document is being viewed in full screen mode). Content outside the viewport is not visible onscreen until scrolled into view."). Used by mobile devices only.\n \n Values for the content of `<meta name="viewport">`\n \n Value\n \n Possible subvalues\n \n Description\n \n `width`\n \n A positive integer number, or the text `device-width`\n \n Defines the pixel width of the viewport that you want the web site to be rendered at.\n \n `height`\n \n A positive integer, or the text `device-height`\n \n Defines the height of the viewport. Not used by any browser.\n \n `initial-scale`\n \n A positive number between `0.0` and `10.0`\n \n Defines the ratio between the device width (`device-width` in portrait mode or `device-height` in landscape mode) and the viewport size.\n \n `maximum-scale`\n \n A positive number between `0.0` and `10.0`\n \n Defines the maximum amount to zoom in. It must be greater or equal to the `minimum-scale` or the behaviour is undefined. Browser settings can ignore this rule and iOS10+ ignores it by default.\n \n `minimum-scale`\n \n A positive number between `0.0` and `10.0`\n \n Defines the minimum zoom level. It must be smaller or equal to the `maximum-scale` or the behaviour is undefined. Browser settings can ignore this rule and iOS10+ ignores it by default.\n \n `user-scalable`\n \n `yes` or `no`\n \n If set to `no`, the user is not able to zoom in the webpage. The default is `yes`. Browser settings can ignore this rule, and iOS10+ ignores it by default.\n \n Specification\n \n Status\n \n Comment\n \n [CSS Device Adaptation \n The definition of \'<meta name="viewport">\' in that specification.](https://drafts.csswg.org/css-device-adapt/#viewport-meta)\n \n Working Draft\n \n Non-normatively describes the Viewport META element\n \n See also: [`@viewport`](https://developer.mozilla.org/en-US/docs/Web/CSS/@viewport "The @viewport CSS at-rule lets you configure the viewport through which the document is viewed. It\'s primarily used for mobile devices, but is also used by desktop browsers that support features like "snap to edge" (such as Microsoft Edge).")\n \n **Notes:**\n \n * Though unstandardized, this declaration is respected by most mobile browsers due to de-facto dominance.\n * The default values may vary between devices and browsers.\n * To learn about this declaration in Firefox for Mobile, see [this article](https://developer.mozilla.org/en-US/docs/Mobile/Viewport_meta_tag "Mobile/Viewport meta tag").'}},{name:"http-equiv",description:{kind:"markdown",value:'Defines a pragma directive. The attribute is named `**http-equiv**(alent)` because all the allowed values are names of particular HTTP headers:\n\n* `"content-language"` \n Defines the default language of the page. It can be overridden by the [lang](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/lang) attribute on any element.\n \n **Warning:** Do not use this value, as it is obsolete. Prefer the `lang` attribute on the [`<html>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/html "The HTML <html> element represents the root (top-level element) of an HTML document, so it is also referred to as the root element. All other elements must be descendants of this element.") element.\n \n* `"content-security-policy"` \n Allows page authors to define a [content policy](https://developer.mozilla.org/en-US/docs/Web/Security/CSP/CSP_policy_directives) for the current page. Content policies mostly specify allowed server origins and script endpoints which help guard against cross-site scripting attacks.\n* `"content-type"` \n Defines the [MIME type](https://developer.mozilla.org/en-US/docs/Glossary/MIME_type) of the document, followed by its character encoding. It follows the same syntax as the HTTP `content-type` entity-header field, but as it is inside a HTML page, most values other than `text/html` are impossible. Therefore the valid syntax for its `content` is the string \'`text/html`\' followed by a character set with the following syntax: \'`; charset=_IANAcharset_`\', where `IANAcharset` is the _preferred MIME name_ for a character set as [defined by the IANA.](https://www.iana.org/assignments/character-sets)\n \n **Warning:** Do not use this value, as it is obsolete. Use the [`charset`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-charset) attribute on the [`<meta>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta "The HTML <meta> element represents metadata that cannot be represented by other HTML meta-related elements, like <base>, <link>, <script>, <style> or <title>.") element.\n \n **Note:** As [`<meta>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta "The HTML <meta> element represents metadata that cannot be represented by other HTML meta-related elements, like <base>, <link>, <script>, <style> or <title>.") can\'t change documents\' types in XHTML or HTML5\'s XHTML serialization, never set the MIME type to an XHTML MIME type with `<meta>`.\n \n* `"refresh"` \n This instruction specifies:\n * The number of seconds until the page should be reloaded - only if the [`content`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-content) attribute contains a positive integer.\n * The number of seconds until the page should redirect to another - only if the [`content`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-content) attribute contains a positive integer followed by the string \'`;url=`\', and a valid URL.\n* `"set-cookie"` \n Defines a [cookie](https://developer.mozilla.org/en-US/docs/cookie) for the page. Its content must follow the syntax defined in the [IETF HTTP Cookie Specification](https://tools.ietf.org/html/draft-ietf-httpstate-cookie-14).\n \n **Warning:** Do not use this instruction, as it is obsolete. Use the HTTP header [`Set-Cookie`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie) instead.'}},{name:"content",description:{kind:"markdown",value:"This attribute contains the value for the [`http-equiv`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-http-equiv) or [`name`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-name) attribute, depending on which is used."}},{name:"charset",description:{kind:"markdown",value:'This attribute declares the page\'s character encoding. It must contain a [standard IANA MIME name for character encodings](https://www.iana.org/assignments/character-sets). Although the standard doesn\'t request a specific encoding, it suggests:\n\n* Authors are encouraged to use [`UTF-8`](https://developer.mozilla.org/en-US/docs/Glossary/UTF-8).\n* Authors should not use ASCII-incompatible encodings to avoid security risk: browsers not supporting them may interpret harmful content as HTML. This happens with the `JIS_C6226-1983`, `JIS_X0212-1990`, `HZ-GB-2312`, `JOHAB`, the ISO-2022 family and the EBCDIC family.\n\n**Note:** ASCII-incompatible encodings are those that don\'t map the 8-bit code points `0x20` to `0x7E` to the `0x0020` to `0x007E` Unicode code points)\n\n* Authors **must not** use `CESU-8`, `UTF-7`, `BOCU-1` and/or `SCSU` as [cross-site scripting](https://developer.mozilla.org/en-US/docs/Glossary/Cross-site_scripting) attacks with these encodings have been demonstrated.\n* Authors should not use `UTF-32` because not all HTML5 encoding algorithms can distinguish it from `UTF-16`.\n\n**Notes:**\n\n* The declared character encoding must match the one the page was saved with to avoid garbled characters and security holes.\n* The [`<meta>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta "The HTML <meta> element represents metadata that cannot be represented by other HTML meta-related elements, like <base>, <link>, <script>, <style> or <title>.") element declaring the encoding must be inside the [`<head>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/head "The HTML <head> element provides general information (metadata) about the document, including its title and links to its\xa0scripts and style sheets.") element and **within the first 1024 bytes** of the HTML as some browsers only look at those bytes before choosing an encoding.\n* This [`<meta>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta "The HTML <meta> element represents metadata that cannot be represented by other HTML meta-related elements, like <base>, <link>, <script>, <style> or <title>.") element is only one part of the [algorithm to determine a page\'s character set](https://www.whatwg.org/specs/web-apps/current-work/multipage/parsing.html#encoding-sniffing-algorithm "Algorithm charset page"). The [`Content-Type` header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type) and any [Byte-Order Marks](https://developer.mozilla.org/en-US/docs/Glossary/Byte-Order_Mark "The definition of that term (Byte-Order Marks) has not been written yet; please consider contributing it!") override this element.\n* It is strongly recommended to define the character encoding. If a page\'s encoding is undefined, cross-scripting techniques are possible, such as the [`UTF-7` fallback cross-scripting technique](https://code.google.com/p/doctype-mirror/wiki/ArticleUtf7).\n* The [`<meta>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta "The HTML <meta> element represents metadata that cannot be represented by other HTML meta-related elements, like <base>, <link>, <script>, <style> or <title>.") element with a `charset` attribute is a synonym for the pre-HTML5 `<meta http-equiv="Content-Type" content="text/html; charset=_IANAcharset_">`, where _`IANAcharset`_ contains the value of the equivalent [`charset`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-charset) attribute. This syntax is still allowed, although no longer recommended.'}},{name:"scheme",description:"This attribute defines the scheme in which metadata is described. A scheme is a context leading to the correct interpretations of the [`content`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-content) value, like a format.\n\n**Warning:** Do not use this value, as it is obsolete. There is no replacement as there was no real usage for it."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/meta"}]},{name:"style",description:{kind:"markdown",value:"The style element allows authors to embed style information in their documents. The style element is one of several inputs to the styling processing model. The element does not represent content for the user."},attributes:[{name:"media",description:{kind:"markdown",value:"This attribute defines which media the style should be applied to. Its value is a [media query](https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Media_queries), which defaults to `all` if the attribute is missing."}},{name:"nonce",description:{kind:"markdown",value:"A cryptographic nonce (number used once) used to whitelist inline styles in a [style-src Content-Security-Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/style-src). The server must generate a unique nonce value each time it transmits a policy. It is critical to provide a nonce that cannot be guessed as bypassing a resource\u2019s policy is otherwise trivial."}},{name:"type",description:{kind:"markdown",value:"This attribute defines the styling language as a MIME type (charset should not be specified). This attribute is optional and defaults to `text/css` if it is not specified \u2014 there is very little reason to include this in modern web documents."}},{name:"scoped",valueSet:"v"},{name:"title",description:"This attribute specifies [alternative style sheet](https://developer.mozilla.org/en-US/docs/Web/CSS/Alternative_style_sheets) sets."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/style"}]},{name:"body",description:{kind:"markdown",value:"The body element represents the content of the document."},attributes:[{name:"onafterprint",description:{kind:"markdown",value:"Function to call after the user has printed the document."}},{name:"onbeforeprint",description:{kind:"markdown",value:"Function to call when the user requests printing of the document."}},{name:"onbeforeunload",description:{kind:"markdown",value:"Function to call when the document is about to be unloaded."}},{name:"onhashchange",description:{kind:"markdown",value:"Function to call when the fragment identifier part (starting with the hash (`'#'`) character) of the document's current address has changed."}},{name:"onlanguagechange",description:{kind:"markdown",value:"Function to call when the preferred languages changed."}},{name:"onmessage",description:{kind:"markdown",value:"Function to call when the document has received a message."}},{name:"onoffline",description:{kind:"markdown",value:"Function to call when network communication has failed."}},{name:"ononline",description:{kind:"markdown",value:"Function to call when network communication has been restored."}},{name:"onpagehide"},{name:"onpageshow"},{name:"onpopstate",description:{kind:"markdown",value:"Function to call when the user has navigated session history."}},{name:"onstorage",description:{kind:"markdown",value:"Function to call when the storage area has changed."}},{name:"onunload",description:{kind:"markdown",value:"Function to call when the document is going away."}},{name:"alink",description:'Color of text for hyperlinks when selected. _This method is non-conforming, use CSS [`color`](https://developer.mozilla.org/en-US/docs/Web/CSS/color "The color CSS property sets the foreground color value of an element\'s text and text decorations, and sets the currentcolor value.") property in conjunction with the [`:active`](https://developer.mozilla.org/en-US/docs/Web/CSS/:active "The :active CSS pseudo-class represents an element (such as a button) that is being activated by the user.") pseudo-class instead._'},{name:"background",description:'URI of a image to use as a background. _This method is non-conforming, use CSS [`background`](https://developer.mozilla.org/en-US/docs/Web/CSS/background "The background shorthand CSS property sets all background style properties at once, such as color, image, origin and size, or repeat method.") property on the element instead._'},{name:"bgcolor",description:'Background color for the document. _This method is non-conforming, use CSS [`background-color`](https://developer.mozilla.org/en-US/docs/Web/CSS/background-color "The background-color CSS property sets the background color of an element.") property on the element instead._'},{name:"bottommargin",description:'The margin of the bottom of the body. _This method is non-conforming, use CSS [`margin-bottom`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-bottom "The margin-bottom CSS property sets the margin area on the bottom of an element. A positive value places it farther from its neighbors, while a negative value places it closer.") property on the element instead._'},{name:"leftmargin",description:'The margin of the left of the body. _This method is non-conforming, use CSS [`margin-left`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left "The margin-left CSS property sets the margin area on the left side of an element. A positive value places it farther from its neighbors, while a negative value places it closer.") property on the element instead._'},{name:"link",description:'Color of text for unvisited hypertext links. _This method is non-conforming, use CSS [`color`](https://developer.mozilla.org/en-US/docs/Web/CSS/color "The color CSS property sets the foreground color value of an element\'s text and text decorations, and sets the currentcolor value.") property in conjunction with the [`:link`](https://developer.mozilla.org/en-US/docs/Web/CSS/:link "The :link CSS pseudo-class represents an element that has not yet been visited. It matches every unvisited <a>, <area>, or <link> element that has an href attribute.") pseudo-class instead._'},{name:"onblur",description:"Function to call when the document loses focus."},{name:"onerror",description:"Function to call when the document fails to load properly."},{name:"onfocus",description:"Function to call when the document receives focus."},{name:"onload",description:"Function to call when the document has finished loading."},{name:"onredo",description:"Function to call when the user has moved forward in undo transaction history."},{name:"onresize",description:"Function to call when the document has been resized."},{name:"onundo",description:"Function to call when the user has moved backward in undo transaction history."},{name:"rightmargin",description:'The margin of the right of the body. _This method is non-conforming, use CSS [`margin-right`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-right "The margin-right CSS property sets the margin area on the right side of an element. A positive value places it farther from its neighbors, while a negative value places it closer.") property on the element instead._'},{name:"text",description:'Foreground color of text. _This method is non-conforming, use CSS [`color`](https://developer.mozilla.org/en-US/docs/Web/CSS/color "The color CSS property sets the foreground color value of an element\'s text and text decorations, and sets the currentcolor value.") property on the element instead._'},{name:"topmargin",description:'The margin of the top of the body. _This method is non-conforming, use CSS [`margin-top`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-top "The margin-top CSS property sets the margin area on the top of an element. A positive value places it farther from its neighbors, while a negative value places it closer.") property on the element instead._'},{name:"vlink",description:'Color of text for visited hypertext links. _This method is non-conforming, use CSS [`color`](https://developer.mozilla.org/en-US/docs/Web/CSS/color "The color CSS property sets the foreground color value of an element\'s text and text decorations, and sets the currentcolor value.") property in conjunction with the [`:visited`](https://developer.mozilla.org/en-US/docs/Web/CSS/:visited "The :visited CSS pseudo-class represents links that the user has already visited. For privacy reasons, the styles that can be modified using this selector are very limited.") pseudo-class instead._'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/body"}]},{name:"article",description:{kind:"markdown",value:"The article element represents a complete, or self-contained, composition in a document, page, application, or site and that is, in principle, independently distributable or reusable, e.g. in syndication. This could be a forum post, a magazine or newspaper article, a blog entry, a user-submitted comment, an interactive widget or gadget, or any other independent item of content. Each article should be identified, typically by including a heading (h1\u2013h6 element) as a child of the article element."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/article"}]},{name:"section",description:{kind:"markdown",value:"The section element represents a generic section of a document or application. A section, in this context, is a thematic grouping of content. Each section should be identified, typically by including a heading ( h1- h6 element) as a child of the section element."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/section"}]},{name:"nav",description:{kind:"markdown",value:"The nav element represents a section of a page that links to other pages or to parts within the page: a section with navigation links."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/nav"}]},{name:"aside",description:{kind:"markdown",value:"The aside element represents a section of a page that consists of content that is tangentially related to the content around the aside element, and which could be considered separate from that content. Such sections are often represented as sidebars in printed typography."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/aside"}]},{name:"h1",description:{kind:"markdown",value:"The h1 element represents a section heading."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements"}]},{name:"h2",description:{kind:"markdown",value:"The h2 element represents a section heading."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements"}]},{name:"h3",description:{kind:"markdown",value:"The h3 element represents a section heading."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements"}]},{name:"h4",description:{kind:"markdown",value:"The h4 element represents a section heading."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements"}]},{name:"h5",description:{kind:"markdown",value:"The h5 element represents a section heading."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements"}]},{name:"h6",description:{kind:"markdown",value:"The h6 element represents a section heading."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements"}]},{name:"header",description:{kind:"markdown",value:"The header element represents introductory content for its nearest ancestor sectioning content or sectioning root element. A header typically contains a group of introductory or navigational aids. When the nearest ancestor sectioning content or sectioning root element is the body element, then it applies to the whole page."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/header"}]},{name:"footer",description:{kind:"markdown",value:"The footer element represents a footer for its nearest ancestor sectioning content or sectioning root element. A footer typically contains information about its section such as who wrote it, links to related documents, copyright data, and the like."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/footer"}]},{name:"address",description:{kind:"markdown",value:"The address element represents the contact information for its nearest article or body element ancestor. If that is the body element, then the contact information applies to the document as a whole."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/address"}]},{name:"p",description:{kind:"markdown",value:"The p element represents a paragraph."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/p"}]},{name:"hr",description:{kind:"markdown",value:"The hr element represents a paragraph-level thematic break, e.g. a scene change in a story, or a transition to another topic within a section of a reference book."},void:!0,attributes:[{name:"align",description:"Sets the alignment of the rule on the page. If no value is specified, the default value is `left`."},{name:"color",description:"Sets the color of the rule through color name or hexadecimal value."},{name:"noshade",description:"Sets the rule to have no shading."},{name:"size",description:"Sets the height, in pixels, of the rule."},{name:"width",description:"Sets the length of the rule on the page through a pixel or percentage value."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/hr"}]},{name:"pre",description:{kind:"markdown",value:"The pre element represents a block of preformatted text, in which structure is represented by typographic conventions rather than by elements."},attributes:[{name:"cols",description:'Contains the _preferred_ count of characters that a line should have. It was a non-standard synonym of [`width`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/pre#attr-width). To achieve such an effect, use CSS [`width`](https://developer.mozilla.org/en-US/docs/Web/CSS/width "The width CSS property sets an element\'s width. By default it sets the width of the content area, but if box-sizing is set to border-box, it sets the width of the border area.") instead.'},{name:"width",description:'Contains the _preferred_ count of characters that a line should have. Though technically still implemented, this attribute has no visual effect; to achieve such an effect, use CSS [`width`](https://developer.mozilla.org/en-US/docs/Web/CSS/width "The width CSS property sets an element\'s width. By default it sets the width of the content area, but if box-sizing is set to border-box, it sets the width of the border area.") instead.'},{name:"wrap",description:'Is a _hint_ indicating how the overflow must happen. In modern browser this hint is ignored and no visual effect results in its present; to achieve such an effect, use CSS [`white-space`](https://developer.mozilla.org/en-US/docs/Web/CSS/white-space "The white-space CSS property sets how white space inside an element is handled.") instead.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/pre"}]},{name:"blockquote",description:{kind:"markdown",value:"The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a footer or cite element, and optionally with in-line changes such as annotations and abbreviations."},attributes:[{name:"cite",description:{kind:"markdown",value:"A URL that designates a source document or message for the information quoted. This attribute is intended to point to information explaining the context or the reference for the quote."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/blockquote"}]},{name:"ol",description:{kind:"markdown",value:"The ol element represents a list of items, where the items have been intentionally ordered, such that changing the order would change the meaning of the document."},attributes:[{name:"reversed",valueSet:"v",description:{kind:"markdown",value:"This Boolean attribute specifies that the items of the list are specified in reversed order."}},{name:"start",description:{kind:"markdown",value:'This integer attribute specifies the start value for numbering the individual list items. Although the ordering type of list elements might be Roman numerals, such as XXXI, or letters, the value of start is always represented as a number. To start numbering elements from the letter "C", use `<ol start="3">`.\n\n**Note**: This attribute was deprecated in HTML4, but reintroduced in HTML5.'}},{name:"type",valueSet:"lt",description:{kind:"markdown",value:"Indicates the numbering type:\n\n* `'a'` indicates lowercase letters,\n* `'A'` indicates uppercase letters,\n* `'i'` indicates lowercase Roman numerals,\n* `'I'` indicates uppercase Roman numerals,\n* and `'1'` indicates numbers (default).\n\nThe type set is used for the entire list unless a different [`type`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/li#attr-type) attribute is used within an enclosed [`<li>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/li \"The HTML <li> element is used to represent an item in a list. It must be contained in a parent element: an ordered list (<ol>), an unordered list (<ul>), or a menu (<menu>). In menus and unordered lists, list items are usually displayed using bullet points. In ordered lists, they are usually displayed with an ascending counter on the left, such as a number or letter.\") element.\n\n**Note:** This attribute was deprecated in HTML4, but reintroduced in HTML5.\n\nUnless the value of the list number matters (e.g. in legal or technical documents where items are to be referenced by their number/letter), the CSS [`list-style-type`](https://developer.mozilla.org/en-US/docs/Web/CSS/list-style-type \"The list-style-type CSS property sets the marker (such as a disc, character, or custom counter style) of a list item element.\") property should be used instead."}},{name:"compact",description:'This Boolean attribute hints that the list should be rendered in a compact style. The interpretation of this attribute depends on the user agent and it doesn\'t work in all browsers.\n\n**Warning:** Do not use this attribute, as it has been deprecated: the [`<ol>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ol "The HTML <ol> element represents an ordered list of items, typically rendered as a numbered list.") element should be styled using [CSS](https://developer.mozilla.org/en-US/docs/CSS). To give an effect similar to the `compact` attribute, the [CSS](https://developer.mozilla.org/en-US/docs/CSS) property [`line-height`](https://developer.mozilla.org/en-US/docs/Web/CSS/line-height "The line-height CSS property sets the amount of space used for lines, such as in text. On block-level elements, it specifies the minimum height of line boxes within the element. On non-replaced inline elements, it specifies the height that is used to calculate line box height.") can be used with a value of `80%`.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/ol"}]},{name:"ul",description:{kind:"markdown",value:"The ul element represents a list of items, where the order of the items is not important \u2014 that is, where changing the order would not materially change the meaning of the document."},attributes:[{name:"compact",description:'This Boolean attribute hints that the list should be rendered in a compact style. The interpretation of this attribute depends on the user agent and it doesn\'t work in all browsers.\n\n**Usage note:\xa0**Do not use this attribute, as it has been deprecated: the [`<ul>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ul "The HTML <ul> element represents an unordered list of items, typically rendered as a bulleted list.") element should be styled using [CSS](https://developer.mozilla.org/en-US/docs/CSS). To give a similar effect as the `compact` attribute, the [CSS](https://developer.mozilla.org/en-US/docs/CSS) property [line-height](https://developer.mozilla.org/en-US/docs/CSS/line-height) can be used with a value of `80%`.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/ul"}]},{name:"li",description:{kind:"markdown",value:"The li element represents a list item. If its parent element is an ol, ul, or menu element, then the element is an item of the parent element's list, as defined for those elements. Otherwise, the list item has no defined list-related relationship to any other li element."},attributes:[{name:"value",description:{kind:"markdown",value:'This integer attribute indicates the current ordinal value of the list item as defined by the [`<ol>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ol "The HTML <ol> element represents an ordered list of items, typically rendered as a numbered list.") element. The only allowed value for this attribute is a number, even if the list is displayed with Roman numerals or letters. List items that follow this one continue numbering from the value set. The **value** attribute has no meaning for unordered lists ([`<ul>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ul "The HTML <ul> element represents an unordered list of items, typically rendered as a bulleted list.")) or for menus ([`<menu>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/menu "The HTML <menu> element represents a group of commands that a user can perform or activate. This includes both list menus, which might appear across the top of a screen, as well as context menus, such as those that might appear underneath a button after it has been clicked.")).\n\n**Note**: This attribute was deprecated in HTML4, but reintroduced in HTML5.\n\n**Note:** Prior to Gecko\xa09.0, negative values were incorrectly converted to 0. Starting in Gecko\xa09.0 all integer values are correctly parsed.'}},{name:"type",description:'This character attribute indicates the numbering type:\n\n* `a`: lowercase letters\n* `A`: uppercase letters\n* `i`: lowercase Roman numerals\n* `I`: uppercase Roman numerals\n* `1`: numbers\n\nThis type overrides the one used by its parent [`<ol>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ol "The HTML <ol> element represents an ordered list of items, typically rendered as a numbered list.") element, if any.\n\n**Usage note:** This attribute has been deprecated: use the CSS [`list-style-type`](https://developer.mozilla.org/en-US/docs/Web/CSS/list-style-type "The list-style-type CSS property sets the marker (such as a disc, character, or custom counter style) of a list item element.") property instead.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/li"}]},{name:"dl",description:{kind:"markdown",value:"The dl element represents an association list consisting of zero or more name-value groups (a description list). A name-value group consists of one or more names (dt elements) followed by one or more values (dd elements), ignoring any nodes other than dt and dd elements. Within a single dl element, there should not be more than one dt element for each name."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/dl"}]},{name:"dt",description:{kind:"markdown",value:"The dt element represents the term, or name, part of a term-description group in a description list (dl element)."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/dt"}]},{name:"dd",description:{kind:"markdown",value:"The dd element represents the description, definition, or value, part of a term-description group in a description list (dl element)."},attributes:[{name:"nowrap",description:"If the value of this attribute is set to `yes`, the definition text will not wrap. The default value is `no`."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/dd"}]},{name:"figure",description:{kind:"markdown",value:"The figure element represents some flow content, optionally with a caption, that is self-contained (like a complete sentence) and is typically referenced as a single unit from the main flow of the document."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/figure"}]},{name:"figcaption",description:{kind:"markdown",value:"The figcaption element represents a caption or legend for the rest of the contents of the figcaption element's parent figure element, if any."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/figcaption"}]},{name:"main",description:{kind:"markdown",value:"The main element represents the main content of the body of a document or application. The main content area consists of content that is directly related to or expands upon the central topic of a document or central functionality of an application."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/main"}]},{name:"div",description:{kind:"markdown",value:"The div element has no special meaning at all. It represents its children. It can be used with the class, lang, and title attributes to mark up semantics common to a group of consecutive elements."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/div"}]},{name:"a",description:{kind:"markdown",value:"If the a element has an href attribute, then it represents a hyperlink (a hypertext anchor) labeled by its contents."},attributes:[{name:"href",description:{kind:"markdown",value:'Contains a URL or a URL fragment that the hyperlink points to.\nA URL fragment is a name preceded by a hash mark (`#`), which specifies an internal target location (an [`id`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-id) of an HTML element) within the current document. URLs are not restricted to Web (HTTP)-based documents, but can use any protocol supported by the browser. For example, [`file:`](https://en.wikipedia.org/wiki/File_URI_scheme), `ftp:`, and `mailto:` work in most browsers.\n\n**Note:** You can use `href="#top"` or the empty fragment `href="#"` to link to the top of the current page. [This behavior is specified by HTML5](https://www.w3.org/TR/html5/single-page.html#scroll-to-fragid).'}},{name:"target",valueSet:"target",description:{kind:"markdown",value:'Specifies where to display the linked URL. It is a name of, or keyword for, a _browsing context_: a tab, window, or `<iframe>`. The following keywords have special meanings:\n\n* `_self`: Load the URL into the same browsing context as the current one. This is the default behavior.\n* `_blank`: Load the URL into a new browsing context. This is usually a tab, but users can configure browsers to use new windows instead.\n* `_parent`: Load the URL into the parent browsing context of the current one. If there is no parent, this behaves the same way as `_self`.\n* `_top`: Load the URL into the top-level browsing context (that is, the "highest" browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this behaves the same way as `_self`.\n\n**Note:** When using `target`, consider adding `rel="noreferrer"` to avoid exploitation of the `window.opener` API.\n\n**Note:** Linking to another page using `target="_blank"` will run the new page on the same process as your page. If the new page is executing expensive JS, your page\'s performance may suffer. To avoid this use `rel="noopener"`.'}},{name:"download",description:{kind:"markdown",value:"This attribute instructs browsers to download a URL instead of navigating to it, so the user will be prompted to save it as a local file. If the attribute has a value, it is used as the pre-filled file name in the Save prompt (the user can still change the file name if they want). There are no restrictions on allowed values, though `/` and `\\` are converted to underscores. Most file systems limit some punctuation in file names, and browsers will adjust the suggested name accordingly.\n\n**Notes:**\n\n* This attribute only works for [same-origin URLs](https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy).\n* Although HTTP(s) URLs need to be in the same-origin, [`blob:` URLs](https://developer.mozilla.org/en-US/docs/Web/API/URL.createObjectURL) and [`data:` URLs](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs) are allowed so that content generated by JavaScript, such as pictures created in an image-editor Web app, can be downloaded.\n* If the HTTP header [`Content-Disposition:`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition) gives a different filename than this attribute, the HTTP header takes priority over this attribute.\n* If `Content-Disposition:` is set to `inline`, Firefox prioritizes `Content-Disposition`, like the filename case, while Chrome prioritizes the `download` attribute."}},{name:"ping",description:{kind:"markdown",value:'Contains a space-separated list of URLs to which, when the hyperlink is followed, [`POST`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST "The HTTP POST method sends data to the server. The type of the body of the request is indicated by the Content-Type header.") requests with the body `PING` will be sent by the browser (in the background). Typically used for tracking.'}},{name:"rel",description:{kind:"markdown",value:"Specifies the relationship of the target object to the link object. The value is a space-separated list of [link types](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types)."}},{name:"hreflang",description:{kind:"markdown",value:'This attribute indicates the human language of the linked resource. It is purely advisory, with no built-in functionality. Allowed values are determined by [BCP47](https://www.ietf.org/rfc/bcp/bcp47.txt "Tags for Identifying Languages").'}},{name:"type",description:{kind:"markdown",value:'Specifies the media type in the form of a [MIME type](https://developer.mozilla.org/en-US/docs/Glossary/MIME_type "MIME type: A\xa0MIME type\xa0(now properly called "media type", but\xa0also sometimes "content type") is a string sent along\xa0with a file indicating the type of the file (describing the content format, for example, a sound file might be labeled\xa0audio/ogg, or an image file\xa0image/png).") for the linked URL. It is purely advisory, with no built-in functionality.'}},{name:"referrerpolicy",description:"Indicates which [referrer](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer) to send when fetching the URL:\n\n* `'no-referrer'` means the `Referer:` header will not be sent.\n* `'no-referrer-when-downgrade'` means no `Referer:` header will be sent when navigating to an origin without HTTPS. This is the default behavior.\n* `'origin'` means the referrer will be the [origin](https://developer.mozilla.org/en-US/docs/Glossary/Origin) of the page, not including information after the domain.\n* `'origin-when-cross-origin'` meaning that navigations to other origins will be limited to the scheme, the host and the port, while navigations on the same origin will include the referrer's path.\n* `'strict-origin-when-cross-origin'`\n* `'unsafe-url'` means the referrer will include the origin and path, but not the fragment, password, or username. This is unsafe because it can leak data from secure URLs to insecure ones."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/a"}]},{name:"em",description:{kind:"markdown",value:"The em element represents stress emphasis of its contents."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/em"}]},{name:"strong",description:{kind:"markdown",value:"The strong element represents strong importance, seriousness, or urgency for its contents."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/strong"}]},{name:"small",description:{kind:"markdown",value:"The small element represents side comments such as small print."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/small"}]},{name:"s",description:{kind:"markdown",value:"The s element represents contents that are no longer accurate or no longer relevant."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/s"}]},{name:"cite",description:{kind:"markdown",value:"The cite element represents a reference to a creative work. It must include the title of the work or the name of the author(person, people or organization) or an URL reference, or a reference in abbreviated form as per the conventions used for the addition of citation metadata."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/cite"}]},{name:"q",description:{kind:"markdown",value:"The q element represents some phrasing content quoted from another source."},attributes:[{name:"cite",description:{kind:"markdown",value:"The value of this attribute is a URL that designates a source document or message for the information quoted. This attribute is intended to point to information explaining the context or the reference for the quote."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/q"}]},{name:"dfn",description:{kind:"markdown",value:"The dfn element represents the defining instance of a term. The paragraph, description list group, or section that is the nearest ancestor of the dfn element must also contain the definition(s) for the term given by the dfn element."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/dfn"}]},{name:"abbr",description:{kind:"markdown",value:"The abbr element represents an abbreviation or acronym, optionally with its expansion. The title attribute may be used to provide an expansion of the abbreviation. The attribute, if specified, must contain an expansion of the abbreviation, and nothing else."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/abbr"}]},{name:"ruby",description:{kind:"markdown",value:"The ruby element allows one or more spans of phrasing content to be marked with ruby annotations. Ruby annotations are short runs of text presented alongside base text, primarily used in East Asian typography as a guide for pronunciation or to include other annotations. In Japanese, this form of typography is also known as furigana. Ruby text can appear on either side, and sometimes both sides, of the base text, and it is possible to control its position using CSS. A more complete introduction to ruby can be found in the Use Cases & Exploratory Approaches for Ruby Markup document as well as in CSS Ruby Module Level 1. [RUBY-UC] [CSSRUBY]"},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/ruby"}]},{name:"rb",description:{kind:"markdown",value:"The rb element marks the base text component of a ruby annotation. When it is the child of a ruby element, it doesn't represent anything itself, but its parent ruby element uses it as part of determining what it represents."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/rb"}]},{name:"rt",description:{kind:"markdown",value:"The rt element marks the ruby text component of a ruby annotation. When it is the child of a ruby element or of an rtc element that is itself the child of a ruby element, it doesn't represent anything itself, but its ancestor ruby element uses it as part of determining what it represents."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/rt"}]},{name:"rp",description:{kind:"markdown",value:"The rp element is used to provide fallback text to be shown by user agents that don't support ruby annotations. One widespread convention is to provide parentheses around the ruby text component of a ruby annotation."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/rp"}]},{name:"time",description:{kind:"markdown",value:"The time element represents its contents, along with a machine-readable form of those contents in the datetime attribute. The kind of content is limited to various kinds of dates, times, time-zone offsets, and durations, as described below."},attributes:[{name:"datetime",description:{kind:"markdown",value:"This attribute indicates the time and/or date of the element and must be in one of the formats described below."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/time"}]},{name:"code",description:{kind:"markdown",value:"The code element represents a fragment of computer code. This could be an XML element name, a file name, a computer program, or any other string that a computer would recognize."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/code"}]},{name:"var",description:{kind:"markdown",value:"The var element represents a variable. This could be an actual variable in a mathematical expression or programming context, an identifier representing a constant, a symbol identifying a physical quantity, a function parameter, or just be a term used as a placeholder in prose."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/var"}]},{name:"samp",description:{kind:"markdown",value:"The samp element represents sample or quoted output from another program or computing system."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/samp"}]},{name:"kbd",description:{kind:"markdown",value:"The kbd element represents user input (typically keyboard input, although it may also be used to represent other input, such as voice commands)."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/kbd"}]},{name:"sub",description:{kind:"markdown",value:"The sub element represents a subscript."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/sub"}]},{name:"sup",description:{kind:"markdown",value:"The sup element represents a superscript."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/sup"}]},{name:"i",description:{kind:"markdown",value:"The i element represents a span of text in an alternate voice or mood, or otherwise offset from the normal prose in a manner indicating a different quality of text, such as a taxonomic designation, a technical term, an idiomatic phrase from another language, transliteration, a thought, or a ship name in Western texts."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/i"}]},{name:"b",description:{kind:"markdown",value:"The b element represents a span of text to which attention is being drawn for utilitarian purposes without conveying any extra importance and with no implication of an alternate voice or mood, such as key words in a document abstract, product names in a review, actionable words in interactive text-driven software, or an article lede."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/b"}]},{name:"u",description:{kind:"markdown",value:"The u element represents a span of text with an unarticulated, though explicitly rendered, non-textual annotation, such as labeling the text as being a proper name in Chinese text (a Chinese proper name mark), or labeling the text as being misspelt."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/u"}]},{name:"mark",description:{kind:"markdown",value:"The mark element represents a run of text in one document marked or highlighted for reference purposes, due to its relevance in another context. When used in a quotation or other block of text referred to from the prose, it indicates a highlight that was not originally present but which has been added to bring the reader's attention to a part of the text that might not have been considered important by the original author when the block was originally written, but which is now under previously unexpected scrutiny. When used in the main prose of a document, it indicates a part of the document that has been highlighted due to its likely relevance to the user's current activity."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/mark"}]},{name:"bdi",description:{kind:"markdown",value:"The bdi element represents a span of text that is to be isolated from its surroundings for the purposes of bidirectional text formatting. [BIDI]"},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/bdi"}]},{name:"bdo",description:{kind:"markdown",value:"The bdo element represents explicit text directionality formatting control for its children. It allows authors to override the Unicode bidirectional algorithm by explicitly specifying a direction override. [BIDI]"},attributes:[{name:"dir",description:"The direction in which text should be rendered in this element's contents. Possible values are:\n\n* `ltr`: Indicates that the text should go in a left-to-right direction.\n* `rtl`: Indicates that the text should go in a right-to-left direction."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/bdo"}]},{name:"span",description:{kind:"markdown",value:"The span element doesn't mean anything on its own, but can be useful when used together with the global attributes, e.g. class, lang, or dir. It represents its children."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/span"}]},{name:"br",description:{kind:"markdown",value:"The br element represents a line break."},void:!0,attributes:[{name:"clear",description:"Indicates where to begin the next line after the break."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/br"}]},{name:"wbr",description:{kind:"markdown",value:"The wbr element represents a line break opportunity."},void:!0,attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/wbr"}]},{name:"ins",description:{kind:"markdown",value:"The ins element represents an addition to the document."},attributes:[{name:"cite",description:"This attribute defines the URI of a resource that explains the change, such as a link to meeting minutes or a ticket in a troubleshooting system."},{name:"datetime",description:'This attribute indicates the time and date of the change and must be a valid date with an optional time string. If the value cannot be parsed as a date with an optional time string, the element does not have an associated time stamp. For the format of the string without a time, see [Format of a valid date string](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats#Format_of_a_valid_date_string "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article.") in [Date and time formats used in HTML](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article."). The format of the string if it includes both date and time is covered in [Format of a valid local date and time string](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats#Format_of_a_valid_local_date_and_time_string "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article.") in [Date and time formats used in HTML](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article.").'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/ins"}]},{name:"del",description:{kind:"markdown",value:"The del element represents a removal from the document."},attributes:[{name:"cite",description:{kind:"markdown",value:"A URI for a resource that explains the change (for example, meeting minutes)."}},{name:"datetime",description:{kind:"markdown",value:'This attribute indicates the time and date of the change and must be a valid date string with an optional time. If the value cannot be parsed as a date with an optional time string, the element does not have an associated time stamp. For the format of the string without a time, see [Format of a valid date string](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats#Format_of_a_valid_date_string "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article.") in [Date and time formats used in HTML](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article."). The format of the string if it includes both date and time is covered in [Format of a valid local date and time string](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats#Format_of_a_valid_local_date_and_time_string "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article.") in [Date and time formats used in HTML](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article.").'}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/del"}]},{name:"picture",description:{kind:"markdown",value:"The picture element is a container which provides multiple sources to its contained img element to allow authors to declaratively control or give hints to the user agent about which image resource to use, based on the screen pixel density, viewport size, image format, and other factors. It represents its children."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/picture"}]},{name:"img",description:{kind:"markdown",value:"An img element represents an image."},void:!0,attributes:[{name:"alt",description:{kind:"markdown",value:'This attribute defines an alternative text description of the image.\n\n**Note:** Browsers do not always display the image referenced by the element. This is the case for non-graphical browsers (including those used by people with visual impairments), if the user chooses not to display images, or if the browser cannot display the image because it is invalid or an [unsupported type](#Supported_image_formats). In these cases, the browser may replace the image with the text defined in this element\'s `alt` attribute. You should, for these reasons and others, provide a useful value for `alt` whenever possible.\n\n**Note:** Omitting this attribute altogether indicates that the image is a key part of the content, and no textual equivalent is available. Setting this attribute to an empty string (`alt=""`) indicates that this image is _not_ a key part of the content (decorative), and that non-visual browsers may omit it from rendering.'}},{name:"src",description:{kind:"markdown",value:"The image URL. This attribute is mandatory for the `<img>` element. On browsers supporting `srcset`, `src` is treated like a candidate image with a pixel density descriptor `1x` unless an image with this pixel density descriptor is already defined in `srcset,` or unless `srcset` contains '`w`' descriptors."}},{name:"srcset",description:{kind:"markdown",value:"A list of one or more strings separated by commas indicating a set of possible image sources for the user agent to use. Each string is composed of:\n\n1. a URL to an image,\n2. optionally, whitespace followed by one of:\n * A width descriptor, or a positive integer directly followed by '`w`'. The width descriptor is divided by the source size given in the `sizes` attribute to calculate the effective pixel density.\n * A pixel density descriptor, which is a positive floating point number directly followed by '`x`'.\n\nIf no descriptor is specified, the source is assigned the default descriptor: `1x`.\n\nIt is incorrect to mix width descriptors and pixel density descriptors in the same `srcset` attribute. Duplicate descriptors (for instance, two sources in the same `srcset` which are both described with '`2x`') are also invalid.\n\nThe user agent selects any one of the available sources at its discretion. This provides them with significant leeway to tailor their selection based on things like user preferences or bandwidth conditions. See our [Responsive images](https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images) tutorial for an example."}},{name:"crossorigin",valueSet:"xo",description:{kind:"markdown",value:'This enumerated attribute indicates if the fetching of the related image must be done using CORS or not. [CORS-enabled images](https://developer.mozilla.org/en-US/docs/CORS_Enabled_Image) can be reused in the [`<canvas>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas "Use the HTML <canvas> element with either the canvas scripting API or the WebGL API to draw graphics and animations.") element without being "[tainted](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image#What_is_a_tainted_canvas)." The allowed values are:\n`anonymous`\n\nA cross-origin request (i.e., with `Origin:` HTTP header) is performed, but no credential is sent (i.e., no cookie, X.509 certificate, or HTTP Basic authentication). If the server does not give credentials to the origin site (by not setting the [`Access-Control-Allow-Origin`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin "The Access-Control-Allow-Origin response header indicates whether the response can be shared with requesting code from the given origin.") HTTP header), the image will be tainted and its usage restricted.\n\n`use-credentials`\n\nA cross-origin request (i.e., with the [`Origin`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin "The Origin request header indicates where a fetch originates from. It doesn\'t include any path information, but only the server name. It is sent with CORS requests, as well as with POST requests. It is similar to the Referer header, but, unlike this header, it doesn\'t disclose the whole path.") HTTP header) performed along with credentials sent (i.e., a cookie, certificate, or HTTP Basic authentication). If the server does not give credentials to the origin site (through the `Access-Control-Allow-Credentials` HTTP header), the image will be tainted and its usage restricted.\n\nIf the attribute is not present, the resource is fetched without a CORS request (i.e., without sending the `Origin` HTTP header), preventing its non-tainted usage in [`<canvas>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas "Use the HTML <canvas> element with either the canvas scripting API or the WebGL API to draw graphics and animations.") elements. If invalid, it is handled as if the `anonymous` value was used. See [CORS settings attributes](https://developer.mozilla.org/en-US/docs/HTML/CORS_settings_attributes) for additional information.'}},{name:"usemap",description:{kind:"markdown",value:'The partial URL (starting with \'#\') of an [image map](https://developer.mozilla.org/en-US/docs/HTML/Element/map) associated with the element.\n\n**Note:** You cannot use this attribute if the `<img>` element is a descendant of an [`<a>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a "The HTML <a> element (or anchor element) creates a hyperlink to other web pages, files, locations within the same page, email addresses, or any other URL.") or [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") element.'}},{name:"ismap",valueSet:"v",description:{kind:"markdown",value:'This Boolean attribute indicates that the image is part of a server-side map. If so, the precise coordinates of a click are sent to the server.\n\n**Note:** This attribute is allowed only if the `<img>` element is a descendant of an [`<a>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a "The HTML <a> element (or anchor element) creates a hyperlink to other web pages, files, locations within the same page, email addresses, or any other URL.") element with a valid [`href`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href) attribute.'}},{name:"width",description:{kind:"markdown",value:"The intrinsic width of the image in pixels."}},{name:"height",description:{kind:"markdown",value:"The intrinsic height of the image in pixels."}},{name:"decoding",valueSet:"decoding",description:{kind:"markdown",value:"Provides an image decoding hint to the browser. The allowed values are:\n`sync`\n\nDecode the image synchronously for atomic presentation with other content.\n\n`async`\n\nDecode the image asynchronously to reduce delay in presenting other content.\n\n`auto`\n\nDefault mode, which indicates no preference for the decoding mode. The browser decides what is best for the user."}},{name:"loading",valueSet:"loading",description:{kind:"markdown",value:"Indicates how the browser should load the image."}},{name:"referrerpolicy",valueSet:"referrerpolicy",description:{kind:"markdown",value:"A string indicating which referrer to use when fetching the resource:\n\n* `no-referrer:` The [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer \"The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.\") header will not be sent.\n* `no-referrer-when-downgrade:` No `Referer` header will be sent when navigating to an origin without TLS (HTTPS). This is a user agent\u2019s default behavior if no policy is otherwise specified.\n* `origin:` The `Referer` header will include the page of origin's scheme, the host, and the port.\n* `origin-when-cross-origin:` Navigating to other origins will limit the included referral data to the scheme, the host and the port, while navigating from the same origin will include the referrer's full path.\n* `unsafe-url:` The `Referer` header will include the origin and the path, but not the fragment, password, or username. This case is unsafe because it can leak origins and paths from TLS-protected resources to insecure origins."}},{name:"sizes",description:{kind:"markdown",value:"A list of one or more strings separated by commas indicating a set of source sizes. Each source size consists of:\n\n1. a media condition. This must be omitted for the last item.\n2. a source size value.\n\nSource size values specify the intended display size of the image. User agents use the current source size to select one of the sources supplied by the `srcset` attribute, when those sources are described using width ('`w`') descriptors. The selected source size affects the intrinsic size of the image (the image\u2019s display size if no CSS styling is applied). If the `srcset` attribute is absent, or contains no values with a width (`w`) descriptor, then the `sizes` attribute has no effect."}},{name:"importance",description:"Indicates the relative importance of the resource. Priority hints are delegated using the values:"},{name:"importance",description:"`auto`: Indicates\xa0**no\xa0preference**. The browser may use its own heuristics to decide the priority of the image.\n\n`high`: Indicates to the\xa0browser\xa0that the image is of\xa0**high** priority.\n\n`low`:\xa0Indicates to the\xa0browser\xa0that the image is of\xa0**low** priority."},{name:"intrinsicsize",description:"This attribute tells the browser to ignore the actual intrinsic size of the image and pretend it\u2019s the size specified in the attribute. Specifically, the image would raster at these dimensions and `naturalWidth`/`naturalHeight` on images would return the values specified in this attribute. [Explainer](https://github.com/ojanvafai/intrinsicsize-attribute), [examples](https://googlechrome.github.io/samples/intrinsic-size/index.html)"}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/img"}]},{name:"iframe",description:{kind:"markdown",value:"The iframe element represents a nested browsing context."},attributes:[{name:"src",description:{kind:"markdown",value:'The URL of the page to embed. Use a value of `about:blank` to embed an empty page that conforms to the [same-origin policy](https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy#Inherited_origins). Also note that programatically removing an `<iframe>`\'s src attribute (e.g. via [`Element.removeAttribute()`](https://developer.mozilla.org/en-US/docs/Web/API/Element/removeAttribute "The Element method removeAttribute() removes the attribute with the specified name from the element.")) causes `about:blank` to be loaded in the frame in Firefox (from version 65), Chromium-based browsers, and Safari/iOS.'}},{name:"srcdoc",description:{kind:"markdown",value:"Inline HTML to embed, overriding the `src` attribute. If a browser does not support the `srcdoc` attribute, it will fall back to the URL in the `src` attribute."}},{name:"name",description:{kind:"markdown",value:'A targetable name for the embedded browsing context. This can be used in the `target` attribute of the [`<a>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a "The HTML <a> element (or anchor element) creates a hyperlink to other web pages, files, locations within the same page, email addresses, or any other URL."), [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server."), or [`<base>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base "The HTML <base> element specifies the base URL to use for all relative URLs contained within a document. There can be only one <base> element in a document.") elements; the `formtarget` attribute of the [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") or [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") elements; or the `windowName` parameter in the [`window.open()`](https://developer.mozilla.org/en-US/docs/Web/API/Window/open "The\xa0Window interface\'s open() method loads the specified resource into the browsing context (window, <iframe> or tab) with the specified name. If the name doesn\'t exist, then a new window is opened and the specified resource is loaded into its browsing context.") method.'}},{name:"sandbox",valueSet:"sb",description:{kind:"markdown",value:'Applies extra restrictions to the content in the frame. The value of the attribute can either be empty to apply all restrictions, or space-separated tokens to lift particular restrictions:\n\n* `allow-forms`: Allows the resource to submit forms. If this keyword is not used, form submission is blocked.\n* `allow-modals`: Lets the resource [open modal windows](https://html.spec.whatwg.org/multipage/origin.html#sandboxed-modals-flag).\n* `allow-orientation-lock`: Lets the resource [lock the screen orientation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/lockOrientation).\n* `allow-pointer-lock`: Lets the resource use the [Pointer Lock API](https://developer.mozilla.org/en-US/docs/WebAPI/Pointer_Lock).\n* `allow-popups`: Allows popups (such as `window.open()`, `target="_blank"`, or `showModalDialog()`). If this keyword is not used, the popup will silently fail to open.\n* `allow-popups-to-escape-sandbox`: Lets the sandboxed document open new windows without those windows inheriting the sandboxing. For example, this can safely sandbox an advertisement without forcing the same restrictions upon the page the ad links to.\n* `allow-presentation`: Lets the resource start a [presentation session](https://developer.mozilla.org/en-US/docs/Web/API/PresentationRequest).\n* `allow-same-origin`: If this token is not used, the resource is treated as being from a special origin that always fails the [same-origin policy](https://developer.mozilla.org/en-US/docs/Glossary/same-origin_policy "same-origin policy: The same-origin policy is a critical security mechanism that restricts how a document or script loaded from one origin can interact with a resource from another origin.").\n* `allow-scripts`: Lets the resource run scripts (but not create popup windows).\n* `allow-storage-access-by-user-activation` : Lets the resource request access to the parent\'s storage capabilities with the [Storage Access API](https://developer.mozilla.org/en-US/docs/Web/API/Storage_Access_API).\n* `allow-top-navigation`: Lets the resource navigate the top-level browsing context (the one named `_top`).\n* `allow-top-navigation-by-user-activation`: Lets the resource navigate the top-level browsing context, but only if initiated by a user gesture.\n\n**Notes about sandboxing:**\n\n* When the embedded document has the same origin as the embedding page, it is **strongly discouraged** to use both `allow-scripts` and `allow-same-origin`, as that lets the embedded document remove the `sandbox` attribute \u2014 making it no more secure than not using the `sandbox` attribute at all.\n* Sandboxing is useless if the attacker can display content outside a sandboxed `iframe` \u2014 such as if the viewer opens the frame in a new tab. Such content should be also served from a _separate origin_ to limit potential damage.\n* The `sandbox` attribute is unsupported in Internet Explorer 9 and earlier.'}},{name:"seamless",valueSet:"v"},{name:"allowfullscreen",valueSet:"v",description:{kind:"markdown",value:'Set to `true` if the `<iframe>` can activate fullscreen mode by calling the [`requestFullscreen()`](https://developer.mozilla.org/en-US/docs/Web/API/Element/requestFullscreen "The Element.requestFullscreen() method issues an asynchronous request to make the element be displayed in full-screen mode.") method.\nThis attribute is considered a legacy attribute and redefined as `allow="fullscreen"`.'}},{name:"width",description:{kind:"markdown",value:"The width of the frame in CSS pixels. Default is `300`."}},{name:"height",description:{kind:"markdown",value:"The height of the frame in CSS pixels. Default is `150`."}},{name:"allow",description:"Specifies a [feature policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/Feature_Policy) for the `<iframe>`."},{name:"allowpaymentrequest",description:"Set to `true` if a cross-origin `<iframe>` should be allowed to invoke the [Payment Request API](https://developer.mozilla.org/en-US/docs/Web/API/Payment_Request_API)."},{name:"allowpaymentrequest",description:'This attribute is considered a legacy attribute and redefined as `allow="payment"`.'},{name:"csp",description:'A [Content Security Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP) enforced for the embedded resource. See [`HTMLIFrameElement.csp`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/csp "The csp property of the HTMLIFrameElement interface specifies the Content Security Policy that an embedded document must agree to enforce upon itself.") for details.'},{name:"importance",description:"The download priority of the resource in the `<iframe>`'s `src` attribute. Allowed values:\n\n`auto` (default)\n\nNo preference. The browser uses its own heuristics to decide the priority of the resource.\n\n`high`\n\nThe resource should be downloaded before other lower-priority page resources.\n\n`low`\n\nThe resource should be downloaded after other higher-priority page resources."},{name:"referrerpolicy",description:'Indicates which [referrer](https://developer.mozilla.org/en-US/docs/Web/API/Document/referrer) to send when fetching the frame\'s resource:\n\n* `no-referrer`: The [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will not be sent.\n* `no-referrer-when-downgrade` (default): The [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will not be sent to [origin](https://developer.mozilla.org/en-US/docs/Glossary/origin "origin: Web content\'s origin is defined by the scheme (protocol), host (domain), and port of the URL used to access it. Two objects have the same origin only when the scheme, host, and port all match.")s without [TLS](https://developer.mozilla.org/en-US/docs/Glossary/TLS "TLS: Transport Layer Security (TLS), previously known as Secure Sockets Layer (SSL), is a protocol used by applications to communicate securely across a network, preventing tampering with and eavesdropping on email, web browsing, messaging, and other protocols.") ([HTTPS](https://developer.mozilla.org/en-US/docs/Glossary/HTTPS "HTTPS: HTTPS (HTTP Secure) is an encrypted version of the HTTP protocol. It usually uses SSL or TLS to encrypt all communication between a client and a server. This secure connection allows clients to safely exchange sensitive data with a server, for example for banking activities or online shopping.")).\n* `origin`: The sent referrer will be limited to the origin of the referring page: its [scheme](https://developer.mozilla.org/en-US/docs/Archive/Mozilla/URIScheme), [host](https://developer.mozilla.org/en-US/docs/Glossary/host "host: A host is a device connected to the Internet (or a local network). Some hosts called servers offer additional services like serving webpages or storing files and emails."), and [port](https://developer.mozilla.org/en-US/docs/Glossary/port "port: For a computer connected to a network with an IP address, a port is a communication endpoint. Ports are designated by numbers, and below 1024 each port is associated by default with a specific protocol.").\n* `origin-when-cross-origin`: The referrer sent to other origins will be limited to the scheme, the host, and the port. Navigations on the same origin will still include the path.\n* `same-origin`: A referrer will be sent for [same origin](https://developer.mozilla.org/en-US/docs/Glossary/Same-origin_policy "same origin: The same-origin policy is a critical security mechanism that restricts how a document or script loaded from one origin can interact with a resource from another origin."), but cross-origin requests will contain no referrer information.\n* `strict-origin`: Only send the origin of the document as the referrer when the protocol security level stays the same (HTTPS\u2192HTTPS), but don\'t send it to a less secure destination (HTTPS\u2192HTTP).\n* `strict-origin-when-cross-origin`: Send a full URL when performing a same-origin request, only send the origin when the protocol security level stays the same (HTTPS\u2192HTTPS), and send no header to a less secure destination (HTTPS\u2192HTTP).\n* `unsafe-url`: The referrer will include the origin _and_ the path (but not the [fragment](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/hash), [password](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/password), or [username](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/username)). **This value is unsafe**, because it leaks origins and paths from TLS-protected resources to insecure origins.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/iframe"}]},{name:"embed",description:{kind:"markdown",value:"The embed element provides an integration point for an external (typically non-HTML) application or interactive content."},void:!0,attributes:[{name:"src",description:{kind:"markdown",value:"The URL\xa0of the resource being embedded."}},{name:"type",description:{kind:"markdown",value:"The MIME\xa0type to use to select the plug-in to instantiate."}},{name:"width",description:{kind:"markdown",value:"The displayed width of the resource, in [CSS pixels](https://drafts.csswg.org/css-values/#px). This must be an absolute value; percentages are _not_ allowed."}},{name:"height",description:{kind:"markdown",value:"The displayed height of the resource, in [CSS pixels](https://drafts.csswg.org/css-values/#px). This must be an absolute value; percentages are _not_ allowed."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/embed"}]},{name:"object",description:{kind:"markdown",value:"The object element can represent an external resource, which, depending on the type of the resource, will either be treated as an image, as a nested browsing context, or as an external resource to be processed by a plugin."},attributes:[{name:"data",description:{kind:"markdown",value:"The address of the resource as a valid URL. At least one of **data** and **type** must be defined."}},{name:"type",description:{kind:"markdown",value:"The [content type](https://developer.mozilla.org/en-US/docs/Glossary/Content_type) of the resource specified by **data**. At least one of **data** and **type** must be defined."}},{name:"typemustmatch",valueSet:"v",description:{kind:"markdown",value:"This Boolean attribute indicates if the **type** attribute and the actual [content type](https://developer.mozilla.org/en-US/docs/Glossary/Content_type) of the resource must match to be used."}},{name:"name",description:{kind:"markdown",value:"The name of valid browsing context (HTML5), or the name of the control (HTML 4)."}},{name:"usemap",description:{kind:"markdown",value:"A hash-name reference to a [`<map>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/map \"The HTML <map> element is used with <area> elements to define an image map (a clickable link area).\") element; that is a '#' followed by the value of a [`name`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/map#attr-name) of a map element."}},{name:"form",description:{kind:"markdown",value:'The form element, if any, that the object element is associated with (its _form owner_). The value of the attribute must be an ID of a [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") element in the same document.'}},{name:"width",description:{kind:"markdown",value:"The width of the display resource, in [CSS pixels](https://drafts.csswg.org/css-values/#px). -- (Absolute values only. [NO percentages](https://html.spec.whatwg.org/multipage/embedded-content.html#dimension-attributes))"}},{name:"height",description:{kind:"markdown",value:"The height of the displayed resource, in [CSS pixels](https://drafts.csswg.org/css-values/#px). -- (Absolute values only. [NO percentages](https://html.spec.whatwg.org/multipage/embedded-content.html#dimension-attributes))"}},{name:"archive",description:"A space-separated list of URIs for archives of resources for the object."},{name:"border",description:"The width of a border around the control, in pixels."},{name:"classid",description:"The URI of the object's implementation. It can be used together with, or in place of, the **data** attribute."},{name:"codebase",description:"The base path used to resolve relative URIs specified by **classid**, **data**, or **archive**. If not specified, the default is the base URI of the current document."},{name:"codetype",description:"The content type of the data specified by **classid**."},{name:"declare",description:"The presence of this Boolean attribute makes this element a declaration only. The object must be instantiated by a subsequent `<object>` element. In HTML5, repeat the <object> element completely each that that the resource is reused."},{name:"standby",description:"A message that the browser can show while loading the object's implementation and data."},{name:"tabindex",description:"The position of the element in the tabbing navigation order for the current document."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/object"}]},{name:"param",description:{kind:"markdown",value:"The param element defines parameters for plugins invoked by object elements. It does not represent anything on its own."},void:!0,attributes:[{name:"name",description:{kind:"markdown",value:"Name of the parameter."}},{name:"value",description:{kind:"markdown",value:"Specifies the value of the parameter."}},{name:"type",description:'Only used if the `valuetype` is set to "ref". Specifies the MIME type of values found at the URI specified by value.'},{name:"valuetype",description:'Specifies the type of the `value` attribute. Possible values are:\n\n* data: Default value. The value is passed to the object\'s implementation as a string.\n* ref: The value is a URI to a resource where run-time values are stored.\n* object: An ID of another [`<object>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/object "The HTML <object> element represents an external resource, which can be treated as an image, a nested browsing context, or a resource to be handled by a plugin.") in the same document.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/param"}]},{name:"video",description:{kind:"markdown",value:"A video element is used for playing videos or movies, and audio files with captions."},attributes:[{name:"src"},{name:"crossorigin",valueSet:"xo"},{name:"poster"},{name:"preload",valueSet:"pl"},{name:"autoplay",valueSet:"v",description:{kind:"markdown",value:'A Boolean attribute; if specified, the video automatically begins to play back as soon as it can do so without stopping to finish loading the data.\n**Note**: Sites that automatically play audio (or video with an audio track) can be an unpleasant experience for users, so it should be avoided when possible. If you must offer autoplay functionality, you should make it opt-in (requiring a user to specifically enable it). However, this can be useful when creating media elements whose source will be set at a later time, under user control.\n\nTo disable video autoplay, `autoplay="false"` will not work; the video will autoplay if the attribute is there in the `<video>` tag at all. To remove autoplay the attribute needs to be removed altogether.\n\nIn some browsers (e.g. Chrome 70.0) autoplay is not working if no `muted` attribute is present.'}},{name:"mediagroup"},{name:"loop",valueSet:"v"},{name:"muted",valueSet:"v"},{name:"controls",valueSet:"v"},{name:"width"},{name:"height"}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/video"}]},{name:"audio",description:{kind:"markdown",value:"An audio element represents a sound or audio stream."},attributes:[{name:"src",description:{kind:"markdown",value:'The URL of the audio to embed. This is subject to [HTTP access controls](https://developer.mozilla.org/en-US/docs/HTTP_access_control). This is optional; you may instead use the [`<source>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source "The HTML <source> element specifies multiple media resources for the <picture>, the <audio> element, or the <video> element.") element within the audio block to specify the audio to embed.'}},{name:"crossorigin",valueSet:"xo",description:{kind:"markdown",value:'This enumerated attribute indicates whether to use CORS to fetch the related image. [CORS-enabled resources](https://developer.mozilla.org/en-US/docs/CORS_Enabled_Image) can be reused in the [`<canvas>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas "Use the HTML <canvas> element with either the canvas scripting API or the WebGL API to draw graphics and animations.") element without being _tainted_. The allowed values are:\n\nanonymous\n\nSends a cross-origin request without a credential. In other words, it sends the `Origin:` HTTP header without a cookie, X.509 certificate, or performing HTTP Basic authentication. If the server does not give credentials to the origin site (by not setting the `Access-Control-Allow-Origin:` HTTP header), the image will be _tainted_, and its usage restricted.\n\nuse-credentials\n\nSends a cross-origin request with a credential. In other words, it sends the `Origin:` HTTP header with a cookie, a certificate, or performing HTTP Basic authentication. If the server does not give credentials to the origin site (through `Access-Control-Allow-Credentials:` HTTP header), the image will be _tainted_ and its usage restricted.\n\nWhen not present, the resource is fetched without a CORS request (i.e. without sending the `Origin:` HTTP header), preventing its non-tainted used in [`<canvas>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas "Use the HTML <canvas> element with either the canvas scripting API or the WebGL API to draw graphics and animations.") elements. If invalid, it is handled as if the enumerated keyword **anonymous** was used. See [CORS settings attributes](https://developer.mozilla.org/en-US/docs/HTML/CORS_settings_attributes) for additional information.'}},{name:"preload",valueSet:"pl",description:{kind:"markdown",value:"This enumerated attribute is intended to provide a hint to the browser about what the author thinks will lead to the best user experience. It may have one of the following values:\n\n* `none`: Indicates that the audio should not be preloaded.\n* `metadata`: Indicates that only audio metadata (e.g. length) is fetched.\n* `auto`: Indicates that the whole audio file can be downloaded, even if the user is not expected to use it.\n* _empty string_: A synonym of the `auto` value.\n\nIf not set, `preload`'s default value is browser-defined (i.e. each browser may have its own default value). The spec advises it to be set to `metadata`.\n\n**Usage notes:**\n\n* The `autoplay` attribute has precedence over\xa0`preload`. If `autoplay` is specified, the browser would obviously need to start downloading the audio for playback.\n* The browser is not forced by the specification to follow the value of this attribute; it is a mere hint."}},{name:"autoplay",valueSet:"v",description:{kind:"markdown",value:"A Boolean attribute:\xa0if specified, the audio will automatically begin playback as soon as it can do so, without waiting for the entire audio file to finish downloading.\n\n**Note**: Sites that automatically play audio (or videos with an audio track) can be an unpleasant experience for users, so should be avoided when possible. If you must offer autoplay functionality, you should make it opt-in (requiring a user to specifically enable it). However, this can be useful when creating media elements whose source will be set at a later time, under user control."}},{name:"mediagroup"},{name:"loop",valueSet:"v",description:{kind:"markdown",value:"A Boolean attribute:\xa0if specified, the audio player will\xa0automatically seek back to the start\xa0upon reaching the end of the audio."}},{name:"muted",valueSet:"v",description:{kind:"markdown",value:"A Boolean attribute that indicates whether the audio will be initially silenced. Its default value is `false`."}},{name:"controls",valueSet:"v",description:{kind:"markdown",value:"If this attribute is present, the browser will offer controls to allow the user to control audio playback, including volume, seeking, and pause/resume playback."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/audio"}]},{name:"source",description:{kind:"markdown",value:"The source element allows authors to specify multiple alternative media resources for media elements. It does not represent anything on its own."},void:!0,attributes:[{name:"src",description:{kind:"markdown",value:'Required for [`<audio>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio "The HTML <audio> element is used to embed sound content in documents. It may contain one or more audio sources, represented using the src attribute or the <source> element:\xa0the browser will choose the most suitable one. It can also be the destination for streamed media, using a MediaStream.") and [`<video>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video "The HTML Video element (<video>) embeds a media player which supports video playback into the document."), address of the media resource. The value of this attribute is ignored when the `<source>` element is placed inside a [`<picture>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture "The HTML <picture> element contains zero or more <source> elements and one <img> element to provide versions of an image for different display/device scenarios.") element.'}},{name:"type",description:{kind:"markdown",value:"The MIME-type of the resource, optionally with a `codecs` parameter. See [RFC 4281](https://tools.ietf.org/html/rfc4281) for information about how to specify codecs."}},{name:"sizes",description:'Is a list of source sizes that describes the final rendered width of the image represented by the source. Each source size consists of a comma-separated list of media condition-length pairs. This information is used by the browser to determine, before laying the page out, which image defined in [`srcset`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source#attr-srcset) to use. \nThe `sizes` attribute has an effect only when the [`<source>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source "The HTML <source> element specifies multiple media resources for the <picture>, the <audio> element, or the <video> element.") element is the direct child of a [`<picture>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture "The HTML <picture> element contains zero or more <source> elements and one <img> element to provide versions of an image for different display/device scenarios.") element.'},{name:"srcset",description:"A list of one or more strings separated by commas indicating a set of possible images represented by the source for the browser to use. Each string is composed of:\n\n1. one URL to an image,\n2. a width descriptor, that is a positive integer directly followed by `'w'`. The default value, if missing, is the infinity.\n3. a pixel density descriptor, that is a positive floating number directly followed by `'x'`. The default value, if missing, is `1x`.\n\nEach string in the list must have at least a width descriptor or a pixel density descriptor to be valid. Among the list, there must be only one string containing the same tuple of width descriptor and pixel density descriptor. \nThe browser chooses the most adequate image to display at a given point of time. \nThe `srcset` attribute has an effect only when the [`<source>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source \"The HTML <source> element specifies multiple media resources for the <picture>, the <audio> element, or the <video> element.\") element is the direct child of a [`<picture>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture \"The HTML <picture> element contains zero or more <source> elements and one <img> element to provide versions of an image for different display/device scenarios.\") element."},{name:"media",description:'[Media query](https://developer.mozilla.org/en-US/docs/CSS/Media_queries) of the resource\'s intended media; this should be used only in a [`<picture>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture "The HTML <picture> element contains zero or more <source> elements and one <img> element to provide versions of an image for different display/device scenarios.") element.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/source"}]},{name:"track",description:{kind:"markdown",value:"The track element allows authors to specify explicit external timed text tracks for media elements. It does not represent anything on its own."},void:!0,attributes:[{name:"default",valueSet:"v",description:{kind:"markdown",value:"This attribute indicates that the track should be enabled unless the user's preferences indicate that another track is more appropriate. This may only be used on one `track` element per media element."}},{name:"kind",valueSet:"tk",description:{kind:"markdown",value:"How the text track is meant to be used. If omitted the default kind is `subtitles`. If the attribute is not present, it will use the `subtitles`. If the attribute contains an invalid value, it will use `metadata`. (Versions of Chrome earlier than 52 treated an invalid value as `subtitles`.)\xa0The following keywords are allowed:\n\n* `subtitles`\n * Subtitles provide translation of content that cannot be understood by the viewer. For example dialogue or text that is not English in an English language film.\n * Subtitles may contain additional content, usually extra background information. For example the text at the beginning of the Star Wars films, or the date, time, and location of a scene.\n* `captions`\n * Closed captions provide a transcription and possibly a translation of audio.\n * It may include important non-verbal information such as music cues or sound effects. It may indicate the cue's source (e.g. music, text, character).\n * Suitable for users who are deaf or when the sound is muted.\n* `descriptions`\n * Textual description of the video content.\n * Suitable for users who are blind or where the video cannot be seen.\n* `chapters`\n * Chapter titles are intended to be used when the user is navigating the media resource.\n* `metadata`\n * Tracks used by scripts. Not visible to the user."}},{name:"label",description:{kind:"markdown",value:"A user-readable title of the text track which is used by the browser when listing available text tracks."}},{name:"src",description:{kind:"markdown",value:'Address of the track (`.vtt` file). Must be a valid URL. This attribute must be specified and its URL value must have the same origin as the document \u2014 unless the [`<audio>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio "The HTML <audio> element is used to embed sound content in documents. It may contain one or more audio sources, represented using the src attribute or the <source> element:\xa0the browser will choose the most suitable one. It can also be the destination for streamed media, using a MediaStream.") or [`<video>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video "The HTML Video element (<video>) embeds a media player which supports video playback into the document.") parent element of the `track` element has a [`crossorigin`](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) attribute.'}},{name:"srclang",description:{kind:"markdown",value:"Language of the track text data. It must be a valid [BCP 47](https://r12a.github.io/app-subtags/) language tag. If the `kind` attribute is set to\xa0`subtitles,` then `srclang` must be defined."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/track"}]},{name:"map",description:{kind:"markdown",value:"The map element, in conjunction with an img element and any area element descendants, defines an image map. The element represents its children."},attributes:[{name:"name",description:{kind:"markdown",value:"The name attribute gives the map a name so that it can be referenced. The attribute must be present and must have a non-empty value with no space characters. The value of the name attribute must not be a compatibility-caseless match for the value of the name attribute of another map element in the same document. If the id attribute is also specified, both attributes must have the same value."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/map"}]},{name:"area",description:{kind:"markdown",value:"The area element represents either a hyperlink with some text and a corresponding area on an image map, or a dead area on an image map."},void:!0,attributes:[{name:"alt"},{name:"coords"},{name:"shape",valueSet:"sh"},{name:"href"},{name:"target",valueSet:"target"},{name:"download"},{name:"ping"},{name:"rel"},{name:"hreflang"},{name:"type"},{name:"accesskey",description:"Specifies a keyboard navigation accelerator for the element. Pressing ALT or a similar key in association with the specified character selects the form control correlated with that key sequence. Page designers are forewarned to avoid key sequences already bound to browsers. This attribute is global since HTML5."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/area"}]},{name:"table",description:{kind:"markdown",value:"The table element represents data with more than one dimension, in the form of a table."},attributes:[{name:"border"},{name:"align",description:'This enumerated attribute indicates how the table must be aligned inside the containing document. It may have the following values:\n\n* left: the table is displayed on the left side of the document;\n* center: the table is displayed in the center of the document;\n* right: the table is displayed on the right side of the document.\n\n**Usage Note**\n\n* **Do not use this attribute**, as it has been deprecated. The [`<table>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/table "The HTML <table> element represents tabular data \u2014 that is, information presented in a two-dimensional table comprised of rows and columns of cells containing data.") element should be styled using [CSS](https://developer.mozilla.org/en-US/docs/CSS). Set [`margin-left`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left "The margin-left CSS property sets the margin area on the left side of an element. A positive value places it farther from its neighbors, while a negative value places it closer.") and [`margin-right`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-right "The margin-right CSS property sets the margin area on the right side of an element. A positive value places it farther from its neighbors, while a negative value places it closer.") to `auto` or [`margin`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin "The margin CSS property sets the margin area on all four sides of an element. It is a shorthand for margin-top, margin-right, margin-bottom, and margin-left.") to `0 auto` to achieve an effect that is similar to the align attribute.\n* Prior to Firefox 4, Firefox also supported the `middle`, `absmiddle`, and `abscenter` values as synonyms of `center`, in quirks mode only.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/table"}]},{name:"caption",description:{kind:"markdown",value:"The caption element represents the title of the table that is its parent, if it has a parent and that is a table element."},attributes:[{name:"align",description:'This enumerated attribute indicates how the caption must be aligned with respect to the table. It may have one of the following values:\n\n`left`\n\nThe caption is displayed to the left of the table.\n\n`top`\n\nThe caption is displayed above the table.\n\n`right`\n\nThe caption is displayed to the right of the table.\n\n`bottom`\n\nThe caption is displayed below the table.\n\n**Usage note:** Do not use this attribute, as it has been deprecated. The [`<caption>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/caption "The HTML Table Caption element (<caption>) specifies the caption (or title) of a table, and if used is always the first child of a <table>.") element should be styled using the [CSS](https://developer.mozilla.org/en-US/docs/CSS) properties [`caption-side`](https://developer.mozilla.org/en-US/docs/Web/CSS/caption-side "The caption-side CSS property puts the content of a table\'s <caption> on the specified side. The values are relative to the writing-mode of the table.") and [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.").'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/caption"}]},{name:"colgroup",description:{kind:"markdown",value:"The colgroup element represents a group of one or more columns in the table that is its parent, if it has a parent and that is a table element."},attributes:[{name:"span"},{name:"align",description:'This enumerated attribute specifies how horizontal alignment of each column cell content will be handled. Possible values are:\n\n* `left`, aligning the content to the left of the cell\n* `center`, centering the content in the cell\n* `right`, aligning the content to the right of the cell\n* `justify`, inserting spaces into the textual content so that the content is justified in the cell\n* `char`, aligning the textual content on a special character with a minimal offset, defined by the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col#attr-charoff) attributes Unimplemented (see [bug\xa02212](https://bugzilla.mozilla.org/show_bug.cgi?id=2212 "character alignment not implemented (align=char, charoff=, text-align:<string>)")).\n\nIf this attribute is not set, the `left` value is assumed. The descendant [`<col>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col "The HTML <col> element defines a column within a table and is used for defining common semantics on all common cells. It is generally found within a <colgroup> element.") elements may override this value using their own [`align`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col#attr-align) attribute.\n\n**Note:** Do not use this attribute as it is obsolete (not supported) in the latest standard.\n\n* To achieve the same effect as the `left`, `center`, `right` or `justify` values:\n * Do not try to set the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property on a selector giving a [`<colgroup>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/colgroup "The HTML <colgroup> element defines a group of columns within a table.") element. Because [`<td>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td "The HTML <td> element defines a cell of a table that contains data. It participates in the table model.") elements are not descendant of the [`<colgroup>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/colgroup "The HTML <colgroup> element defines a group of columns within a table.") element, they won\'t inherit it.\n * If the table doesn\'t use a [`colspan`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-colspan) attribute, use one `td:nth-child(an+b)` CSS selector per column, where a is the total number of the columns in the table and b is the ordinal position of this column in the table. Only after this selector the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property can be used.\n * If the table does use a [`colspan`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-colspan) attribute, the effect can be achieved by combining adequate CSS attribute selectors like `[colspan=n]`, though this is not trivial.\n* To achieve the same effect as the `char` value, in CSS3, you can use the value of the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/colgroup#attr-char) as the value of the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property Unimplemented.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/colgroup"}]},{name:"col",description:{kind:"markdown",value:"If a col element has a parent and that is a colgroup element that itself has a parent that is a table element, then the col element represents one or more columns in the column group represented by that colgroup."},void:!0,attributes:[{name:"span"},{name:"align",description:'This enumerated attribute specifies how horizontal alignment of each column cell content will be handled. Possible values are:\n\n* `left`, aligning the content to the left of the cell\n* `center`, centering the content in the cell\n* `right`, aligning the content to the right of the cell\n* `justify`, inserting spaces into the textual content so that the content is justified in the cell\n* `char`, aligning the textual content on a special character with a minimal offset, defined by the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col#attr-charoff) attributes Unimplemented (see [bug\xa02212](https://bugzilla.mozilla.org/show_bug.cgi?id=2212 "character alignment not implemented (align=char, charoff=, text-align:<string>)")).\n\nIf this attribute is not set, its value is inherited from the [`align`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/colgroup#attr-align) of the [`<colgroup>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/colgroup "The HTML <colgroup> element defines a group of columns within a table.") element this `<col>` element belongs too. If there are none, the `left` value is assumed.\n\n**Note:** Do not use this attribute as it is obsolete (not supported) in the latest standard.\n\n* To achieve the same effect as the `left`, `center`, `right` or `justify` values:\n * Do not try to set the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property on a selector giving a [`<col>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col "The HTML <col> element defines a column within a table and is used for defining common semantics on all common cells. It is generally found within a <colgroup> element.") element. Because [`<td>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td "The HTML <td> element defines a cell of a table that contains data. It participates in the table model.") elements are not descendant of the [`<col>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col "The HTML <col> element defines a column within a table and is used for defining common semantics on all common cells. It is generally found within a <colgroup> element.") element, they won\'t inherit it.\n * If the table doesn\'t use a [`colspan`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-colspan) attribute, use the `td:nth-child(an+b)` CSS selector. Set `a` to zero and `b` to the position of the column in the table, e.g. `td:nth-child(2) { text-align: right; }` to right-align the second column.\n * If the table does use a [`colspan`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-colspan) attribute, the effect can be achieved by combining adequate CSS attribute selectors like `[colspan=n]`, though this is not trivial.\n* To achieve the same effect as the `char` value, in CSS3, you can use the value of the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col#attr-char) as the value of the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property Unimplemented.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/col"}]},{name:"tbody",description:{kind:"markdown",value:"The tbody element represents a block of rows that consist of a body of data for the parent table element, if the tbody element has a parent and it is a table."},attributes:[{name:"align",description:'This enumerated attribute specifies how horizontal alignment of each cell content will be handled. Possible values are:\n\n* `left`, aligning the content to the left of the cell\n* `center`, centering the content in the cell\n* `right`, aligning the content to the right of the cell\n* `justify`, inserting spaces into the textual content so that the content is justified in the cell\n* `char`, aligning the textual content on a special character with a minimal offset, defined by the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody#attr-charoff) attributes.\n\nIf this attribute is not set, the `left` value is assumed.\n\n**Note:** Do not use this attribute as it is obsolete (not supported) in the latest standard.\n\n* To achieve the same effect as the `left`, `center`, `right` or `justify` values, use the CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property on it.\n* To achieve the same effect as the `char` value, in CSS3, you can use the value of the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody#attr-char) as the value of the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property Unimplemented.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/tbody"}]},{name:"thead",description:{kind:"markdown",value:"The thead element represents the block of rows that consist of the column labels (headers) for the parent table element, if the thead element has a parent and it is a table."},attributes:[{name:"align",description:'This enumerated attribute specifies how horizontal alignment of each cell content will be handled. Possible values are:\n\n* `left`, aligning the content to the left of the cell\n* `center`, centering the content in the cell\n* `right`, aligning the content to the right of the cell\n* `justify`, inserting spaces into the textual content so that the content is justified in the cell\n* `char`, aligning the textual content on a special character with a minimal offset, defined by the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/thead#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/thead#attr-charoff) attributes Unimplemented (see [bug\xa02212](https://bugzilla.mozilla.org/show_bug.cgi?id=2212 "character alignment not implemented (align=char, charoff=, text-align:<string>)")).\n\nIf this attribute is not set, the `left` value is assumed.\n\n**Note:** Do not use this attribute as it is obsolete (not supported) in the latest standard.\n\n* To achieve the same effect as the `left`, `center`, `right` or `justify` values, use the CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property on it.\n* To achieve the same effect as the `char` value, in CSS3, you can use the value of the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/thead#attr-char) as the value of the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property Unimplemented.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/thead"}]},{name:"tfoot",description:{kind:"markdown",value:"The tfoot element represents the block of rows that consist of the column summaries (footers) for the parent table element, if the tfoot element has a parent and it is a table."},attributes:[{name:"align",description:'This enumerated attribute specifies how horizontal alignment of each cell content will be handled. Possible values are:\n\n* `left`, aligning the content to the left of the cell\n* `center`, centering the content in the cell\n* `right`, aligning the content to the right of the cell\n* `justify`, inserting spaces into the textual content so that the content is justified in the cell\n* `char`, aligning the textual content on a special character with a minimal offset, defined by the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody#attr-charoff) attributes Unimplemented (see [bug\xa02212](https://bugzilla.mozilla.org/show_bug.cgi?id=2212 "character alignment not implemented (align=char, charoff=, text-align:<string>)")).\n\nIf this attribute is not set, the `left` value is assumed.\n\n**Note:** Do not use this attribute as it is obsolete (not supported) in the latest standard.\n\n* To achieve the same effect as the `left`, `center`, `right` or `justify` values, use the CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property on it.\n* To achieve the same effect as the `char` value, in CSS3, you can use the value of the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tfoot#attr-char) as the value of the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property Unimplemented.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/tfoot"}]},{name:"tr",description:{kind:"markdown",value:"The tr element represents a row of cells in a table."},attributes:[{name:"align",description:'A [`DOMString`](https://developer.mozilla.org/en-US/docs/Web/API/DOMString "DOMString is a UTF-16 String. As JavaScript already uses such strings, DOMString is mapped directly to a String.") which specifies how the cell\'s context should be aligned horizontally within the cells in the row; this is shorthand for using `align` on every cell in the row individually. Possible values are:\n\n`left`\n\nAlign the content of each cell at its left edge.\n\n`center`\n\nCenter the contents of each cell between their left and right edges.\n\n`right`\n\nAlign the content of each cell at its right edge.\n\n`justify`\n\nWiden whitespaces within the text of each cell so that the text fills the full width of each cell (full justification).\n\n`char`\n\nAlign each cell in the row on a specific character (such that each row in the column that is configured this way will horizontally align its cells on that character). This uses the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tr#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tr#attr-charoff) to establish the alignment character (typically "." or "," when aligning numerical data) and the number of characters that should follow the alignment character. This alignment type was never widely supported.\n\nIf no value is expressly set for `align`, the parent node\'s value is inherited.\n\nInstead of using the obsolete `align` attribute, you should instead use the CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property to establish `left`, `center`, `right`, or `justify` alignment for the row\'s cells. To apply character-based alignment, set the CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property to the alignment character (such as `"."` or `","`).'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/tr"}]},{name:"td",description:{kind:"markdown",value:"The td element represents a data cell in a table."},attributes:[{name:"colspan"},{name:"rowspan"},{name:"headers"},{name:"abbr",description:"This attribute contains a short abbreviated description of the cell's content. Some user-agents, such as speech readers, may present this description before the content itself.\n\n**Note:** Do not use this attribute as it is obsolete in the latest standard. Alternatively, you can put the abbreviated description inside the cell and place the long content in the **title** attribute."},{name:"align",description:'This enumerated attribute specifies how the cell content\'s horizontal alignment will be handled. Possible values are:\n\n* `left`: The content is aligned to the left of the cell.\n* `center`: The content is centered in the cell.\n* `right`: The content is aligned to the right of the cell.\n* `justify` (with text only): The content is stretched out inside the cell so that it covers its entire width.\n* `char` (with text only): The content is aligned to a character inside the `<th>` element with minimal offset. This character is defined by the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-charoff) attributes Unimplemented (see [bug\xa02212](https://bugzilla.mozilla.org/show_bug.cgi?id=2212 "character alignment not implemented (align=char, charoff=, text-align:<string>)")).\n\nThe default value when this attribute is not specified is `left`.\n\n**Note:** Do not use this attribute as it is obsolete in the latest standard.\n\n* To achieve the same effect as the `left`, `center`, `right` or `justify` values, apply the CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property to the element.\n* To achieve the same effect as the `char` value, give the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property the same value you would use for the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-char). Unimplemented in CSS3.'},{name:"axis",description:"This attribute contains a list of space-separated strings. Each string is the `id` of a group of cells that this header applies to.\n\n**Note:** Do not use this attribute as it is obsolete in the latest standard."},{name:"bgcolor",description:'This attribute defines the background color of each cell in a column. It consists of a 6-digit hexadecimal code as defined in [sRGB](https://www.w3.org/Graphics/Color/sRGB) and is prefixed by \'#\'. This attribute may be used with one of sixteen predefined color strings:\n\n\xa0\n\n`black` = "#000000"\n\n\xa0\n\n`green` = "#008000"\n\n\xa0\n\n`silver` = "#C0C0C0"\n\n\xa0\n\n`lime` = "#00FF00"\n\n\xa0\n\n`gray` = "#808080"\n\n\xa0\n\n`olive` = "#808000"\n\n\xa0\n\n`white` = "#FFFFFF"\n\n\xa0\n\n`yellow` = "#FFFF00"\n\n\xa0\n\n`maroon` = "#800000"\n\n\xa0\n\n`navy` = "#000080"\n\n\xa0\n\n`red` = "#FF0000"\n\n\xa0\n\n`blue` = "#0000FF"\n\n\xa0\n\n`purple` = "#800080"\n\n\xa0\n\n`teal` = "#008080"\n\n\xa0\n\n`fuchsia` = "#FF00FF"\n\n\xa0\n\n`aqua` = "#00FFFF"\n\n**Note:** Do not use this attribute, as it is non-standard and only implemented in some versions of Microsoft Internet Explorer: The [`<td>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td "The HTML <td> element defines a cell of a table that contains data. It participates in the table model.") element should be styled using [CSS](https://developer.mozilla.org/en-US/docs/CSS). To create a similar effect use the [`background-color`](https://developer.mozilla.org/en-US/docs/Web/CSS/background-color "The background-color CSS property sets the background color of an element.") property in [CSS](https://developer.mozilla.org/en-US/docs/CSS) instead.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/td"}]},{name:"th",description:{kind:"markdown",value:"The th element represents a header cell in a table."},attributes:[{name:"colspan"},{name:"rowspan"},{name:"headers"},{name:"scope",valueSet:"s"},{name:"sorted"},{name:"abbr",description:{kind:"markdown",value:"This attribute contains a short abbreviated description of the cell's content. Some user-agents, such as speech readers, may present this description before the content itself."}},{name:"align",description:'This enumerated attribute specifies how the cell content\'s horizontal alignment will be handled. Possible values are:\n\n* `left`: The content is aligned to the left of the cell.\n* `center`: The content is centered in the cell.\n* `right`: The content is aligned to the right of the cell.\n* `justify` (with text only): The content is stretched out inside the cell so that it covers its entire width.\n* `char` (with text only): The content is aligned to a character inside the `<th>` element with minimal offset. This character is defined by the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th#attr-charoff) attributes.\n\nThe default value when this attribute is not specified is `left`.\n\n**Note:** Do not use this attribute as it is obsolete in the latest standard.\n\n* To achieve the same effect as the `left`, `center`, `right` or `justify` values, apply the CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property to the element.\n* To achieve the same effect as the `char` value, give the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property the same value you would use for the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th#attr-char). Unimplemented in CSS3.'},{name:"axis",description:"This attribute contains a list of space-separated strings. Each string is the `id` of a group of cells that this header applies to.\n\n**Note:** Do not use this attribute as it is obsolete in the latest standard: use the [`scope`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th#attr-scope) attribute instead."},{name:"bgcolor",description:'This attribute defines the background color of each cell in a column. It consists of a 6-digit hexadecimal code as defined in [sRGB](https://www.w3.org/Graphics/Color/sRGB) and is prefixed by \'#\'. This attribute may be used with one of sixteen predefined color strings:\n\n\xa0\n\n`black` = "#000000"\n\n\xa0\n\n`green` = "#008000"\n\n\xa0\n\n`silver` = "#C0C0C0"\n\n\xa0\n\n`lime` = "#00FF00"\n\n\xa0\n\n`gray` = "#808080"\n\n\xa0\n\n`olive` = "#808000"\n\n\xa0\n\n`white` = "#FFFFFF"\n\n\xa0\n\n`yellow` = "#FFFF00"\n\n\xa0\n\n`maroon` = "#800000"\n\n\xa0\n\n`navy` = "#000080"\n\n\xa0\n\n`red` = "#FF0000"\n\n\xa0\n\n`blue` = "#0000FF"\n\n\xa0\n\n`purple` = "#800080"\n\n\xa0\n\n`teal` = "#008080"\n\n\xa0\n\n`fuchsia` = "#FF00FF"\n\n\xa0\n\n`aqua` = "#00FFFF"\n\n**Note:** Do not use this attribute, as it is non-standard and only implemented in some versions of Microsoft Internet Explorer: The [`<th>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th "The HTML <th> element defines a cell as header of a group of table cells. The exact nature of this group is defined by the scope and headers attributes.") element should be styled using [CSS](https://developer.mozilla.org/en-US/docs/Web/CSS). To create a similar effect use the [`background-color`](https://developer.mozilla.org/en-US/docs/Web/CSS/background-color "The background-color CSS property sets the background color of an element.") property in [CSS](https://developer.mozilla.org/en-US/docs/Web/CSS) instead.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/th"}]},{name:"form",description:{kind:"markdown",value:"The form element represents a collection of form-associated elements, some of which can represent editable values that can be submitted to a server for processing."},attributes:[{name:"accept-charset",description:{kind:"markdown",value:'A space- or comma-delimited list of character encodings that the server accepts. The browser uses them in the order in which they are listed. The default value, the reserved string `"UNKNOWN"`, indicates the same encoding as that of the document containing the form element. \nIn previous versions of HTML, the different character encodings could be delimited by spaces or commas. In HTML5, only spaces are allowed as delimiters.'}},{name:"action",description:{kind:"markdown",value:'The URI of a program that processes the form information. This value can be overridden by a [`formaction`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-formaction) attribute on a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") or [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element.'}},{name:"autocomplete",valueSet:"o",description:{kind:"markdown",value:"Indicates whether input elements can by default have their values automatically completed by the browser. This setting can be overridden by an `autocomplete` attribute on an element belonging to the form. Possible values are:\n\n* `off`: The user must explicitly enter a value into each field for every use, or the document provides its own auto-completion method; the browser does not automatically complete entries.\n* `on`: The browser can automatically complete values based on values that the user has previously entered in the form.\n\nFor most modern browsers (including Firefox 38+, Google Chrome 34+, IE 11+) setting the autocomplete attribute will not prevent a browser's password manager from asking the user if they want to store login fields (username and password), if the user permits the storage the browser will autofill the login the next time the user visits the page. See [The autocomplete attribute and login fields](https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion#The_autocomplete_attribute_and_login_fields).\n**Note:** If you set `autocomplete` to `off` in a form because the document provides its own auto-completion, then you should also set `autocomplete` to `off` for each of the form's `input` elements that the document can auto-complete. For details, see the note regarding Google Chrome in the [Browser Compatibility chart](#compatChart)."}},{name:"enctype",valueSet:"et",description:{kind:"markdown",value:'When the value of the `method` attribute is `post`, enctype is the [MIME type](https://en.wikipedia.org/wiki/Mime_type) of content that is used to submit the form to the server. Possible values are:\n\n* `application/x-www-form-urlencoded`: The default value if the attribute is not specified.\n* `multipart/form-data`: The value used for an [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element with the `type` attribute set to "file".\n* `text/plain`: (HTML5)\n\nThis value can be overridden by a [`formenctype`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-formenctype) attribute on a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") or [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element.'}},{name:"method",valueSet:"m",description:{kind:"markdown",value:'The [HTTP](https://developer.mozilla.org/en-US/docs/Web/HTTP) method that the browser uses to submit the form. Possible values are:\n\n* `post`: Corresponds to the HTTP [POST method](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.5) ; form data are included in the body of the form and sent to the server.\n* `get`: Corresponds to the HTTP [GET method](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.3); form data are appended to the `action` attribute URI with a \'?\' as separator, and the resulting URI is sent to the server. Use this method when the form has no side-effects and contains only ASCII characters.\n* `dialog`: Use when the form is inside a\xa0[`<dialog>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog "The HTML <dialog> element represents a dialog box or other interactive component, such as an inspector or window.") element to close the dialog when submitted.\n\nThis value can be overridden by a [`formmethod`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-formmethod) attribute on a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") or [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element.'}},{name:"name",description:{kind:"markdown",value:"The name of the form. In HTML 4, its use is deprecated (`id` should be used instead). It must be unique among the forms in a document and not just an empty string in HTML 5."}},{name:"novalidate",valueSet:"v",description:{kind:"markdown",value:'This Boolean attribute indicates that the form is not to be validated when submitted. If this attribute is not specified (and therefore the form is validated), this default setting can be overridden by a [`formnovalidate`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-formnovalidate) attribute on a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") or [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element belonging to the form.'}},{name:"target",valueSet:"target",description:{kind:"markdown",value:'A name or keyword indicating where to display the response that is received after submitting the form. In HTML 4, this is the name/keyword for a frame. In HTML5, it is a name/keyword for a _browsing context_ (for example, tab, window, or inline frame). The following keywords have special meanings:\n\n* `_self`: Load the response into the same HTML 4 frame (or HTML5 browsing context) as the current one. This value is the default if the attribute is not specified.\n* `_blank`: Load the response into a new unnamed HTML 4 window or HTML5 browsing context.\n* `_parent`: Load the response into the HTML 4 frameset parent of the current frame, or HTML5 parent browsing context of the current one. If there is no parent, this option behaves the same way as `_self`.\n* `_top`: HTML 4: Load the response into the full original window, and cancel all other frames. HTML5: Load the response into the top-level browsing context (i.e., the browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this option behaves the same way as `_self`.\n* _iframename_: The response is displayed in a named [`<iframe>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe "The HTML Inline Frame element (<iframe>) represents a nested browsing context, embedding another HTML page into the current one.").\n\nHTML5: This value can be overridden by a [`formtarget`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-formtarget) attribute on a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") or [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element.'}},{name:"accept",description:'A comma-separated list of content types that the server accepts.\n\n**Usage note:** This attribute has been removed in HTML5 and should no longer be used. Instead, use the [`accept`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-accept) attribute of the specific [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element.'},{name:"autocapitalize",description:"This is a nonstandard attribute used by iOS Safari Mobile which controls whether and how the text value for textual form control descendants should be automatically capitalized as it is entered/edited by the user. If the `autocapitalize` attribute is specified on an individual form control descendant, it trumps the form-wide `autocapitalize` setting. The non-deprecated values are available in iOS 5 and later. The default value is `sentences`. Possible values are:\n\n* `none`: Completely disables automatic capitalization\n* `sentences`: Automatically capitalize the first letter of sentences.\n* `words`: Automatically capitalize the first letter of words.\n* `characters`: Automatically capitalize all characters.\n* `on`: Deprecated since iOS 5.\n* `off`: Deprecated since iOS 5."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/form"}]},{name:"label",description:{kind:"markdown",value:"The label element represents a caption in a user interface. The caption can be associated with a specific form control, known as the label element's labeled control, either using the for attribute, or by putting the form control inside the label element itself."},attributes:[{name:"form",description:{kind:"markdown",value:'The [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") element with which the label is associated (its _form owner_). If specified, the value of the attribute is the `id` of a [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") element in the same document. This lets you place label elements anywhere within a document, not just as descendants of their form elements.'}},{name:"for",description:{kind:"markdown",value:"The [`id`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-id) of a [labelable](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Form_labelable) form-related element in the same document as the `<label>` element. The first element in the document with an `id` matching the value of the `for` attribute is the _labeled control_ for this label element, if it is a labelable element. If it is\xa0not labelable then the `for` attribute has no effect. If there are other elements which also match the `id` value, later in the document, they are not considered.\n\n**Note**: A `<label>` element can have both a `for` attribute and a contained control element, as long as the `for` attribute points to the contained control element."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/label"}]},{name:"input",description:{kind:"markdown",value:"The input element represents a typed data field, usually with a form control to allow the user to edit the data."},void:!0,attributes:[{name:"accept"},{name:"alt"},{name:"autocomplete",valueSet:"inputautocomplete"},{name:"autofocus",valueSet:"v"},{name:"checked",valueSet:"v"},{name:"dirname"},{name:"disabled",valueSet:"v"},{name:"form"},{name:"formaction"},{name:"formenctype",valueSet:"et"},{name:"formmethod",valueSet:"fm"},{name:"formnovalidate",valueSet:"v"},{name:"formtarget"},{name:"height"},{name:"inputmode",valueSet:"im"},{name:"list"},{name:"max"},{name:"maxlength"},{name:"min"},{name:"minlength"},{name:"multiple",valueSet:"v"},{name:"name"},{name:"pattern"},{name:"placeholder"},{name:"readonly",valueSet:"v"},{name:"required",valueSet:"v"},{name:"size"},{name:"src"},{name:"step"},{name:"type",valueSet:"t"},{name:"value"},{name:"width"}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/input"}]},{name:"button",description:{kind:"markdown",value:"The button element represents a button labeled by its contents."},attributes:[{name:"autofocus",valueSet:"v",description:{kind:"markdown",value:"This Boolean attribute lets you specify that the button should have input focus when the page loads, unless the user overrides it, for example by typing in a different control. Only one form-associated element in a document can have this attribute specified."}},{name:"disabled",valueSet:"v",description:{kind:"markdown",value:'This Boolean attribute indicates that the user cannot interact with the button. If this attribute is not specified, the button inherits its setting from the containing element, for example [`<fieldset>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/fieldset "The HTML <fieldset> element is used to group several controls as well as labels (<label>) within a web form."); if there is no containing element with the **disabled** attribute set, then the button is enabled.\n\nFirefox will, unlike other browsers, by default, [persist the dynamic disabled state](https://stackoverflow.com/questions/5985839/bug-with-firefox-disabled-attribute-of-input-not-resetting-when-refreshing) of a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") across page loads. Use the [`autocomplete`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-autocomplete) attribute to control this feature.'}},{name:"form",description:{kind:"markdown",value:'The form element that the button is associated with (its _form owner_). The value of the attribute must be the **id** attribute of a [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") element in the same document. If this attribute is not specified, the `<button>` element will be associated to an ancestor [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") element, if one exists. This attribute enables you to associate `<button>` elements to [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") elements anywhere within a document, not just as descendants of [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") elements.'}},{name:"formaction",description:{kind:"markdown",value:"The URI of a program that processes the information submitted by the button. If specified, it overrides the [`action`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-action) attribute of the button's form owner."}},{name:"formenctype",valueSet:"et",description:{kind:"markdown",value:'If the button is a submit button, this attribute specifies the type of content that is used to submit the form to the server. Possible values are:\n\n* `application/x-www-form-urlencoded`: The default value if the attribute is not specified.\n* `multipart/form-data`: Use this value if you are using an [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element with the [`type`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-type) attribute set to `file`.\n* `text/plain`\n\nIf this attribute is specified, it overrides the [`enctype`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-enctype) attribute of the button\'s form owner.'}},{name:"formmethod",valueSet:"fm",description:{kind:"markdown",value:"If the button is a submit button, this attribute specifies the HTTP method that the browser uses to submit the form. Possible values are:\n\n* `post`: The data from the form are included in the body of the form and sent to the server.\n* `get`: The data from the form are appended to the **form** attribute URI, with a '?' as a separator, and the resulting URI is sent to the server. Use this method when the form has no side-effects and contains only ASCII characters.\n\nIf specified, this attribute overrides the [`method`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-method) attribute of the button's form owner."}},{name:"formnovalidate",valueSet:"v",description:{kind:"markdown",value:"If the button is a submit button, this Boolean attribute specifies that the form is not to be validated when it is submitted. If this attribute is specified, it overrides the [`novalidate`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-novalidate) attribute of the button's form owner."}},{name:"formtarget",description:{kind:"markdown",value:"If the button is a submit button, this attribute is a name or keyword indicating where to display the response that is received after submitting the form. This is a name of, or keyword for, a _browsing context_ (for example, tab, window, or inline frame). If this attribute is specified, it overrides the [`target`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-target) attribute of the button's form owner. The following keywords have special meanings:\n\n* `_self`: Load the response into the same browsing context as the current one. This value is the default if the attribute is not specified.\n* `_blank`: Load the response into a new unnamed browsing context.\n* `_parent`: Load the response into the parent browsing context of the current one. If there is no parent, this option behaves the same way as `_self`.\n* `_top`: Load the response into the top-level browsing context (that is, the browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this option behaves the same way as `_self`."}},{name:"name",description:{kind:"markdown",value:"The name of the button, which is submitted with the form data."}},{name:"type",valueSet:"bt",description:{kind:"markdown",value:"The type of the button. Possible values are:\n\n* `submit`: The button submits the form data to the server. This is the default if the attribute is not specified, or if the attribute is dynamically changed to an empty or invalid value.\n* `reset`: The button resets all the controls to their initial values.\n* `button`: The button has no default behavior. It can have client-side scripts associated with the element's events, which are triggered when the events occur."}},{name:"value",description:{kind:"markdown",value:"The initial value of the button. It defines the value associated with the button which is submitted with the form data. This value is passed to the server in params when the form is submitted."}},{name:"autocomplete",description:'The use of this attribute on a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") is nonstandard and Firefox-specific. By default, unlike other browsers, [Firefox persists the dynamic disabled state](https://stackoverflow.com/questions/5985839/bug-with-firefox-disabled-attribute-of-input-not-resetting-when-refreshing) of a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") across page loads. Setting the value of this attribute to `off` (i.e. `autocomplete="off"`) disables this feature. See [bug\xa0654072](https://bugzilla.mozilla.org/show_bug.cgi?id=654072 "if disabled state is changed with javascript, the normal state doesn\'t return after refreshing the page").'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/button"}]},{name:"select",description:{kind:"markdown",value:"The select element represents a control for selecting amongst a set of options."},attributes:[{name:"autocomplete",valueSet:"inputautocomplete",description:{kind:"markdown",value:'A [`DOMString`](https://developer.mozilla.org/en-US/docs/Web/API/DOMString "DOMString is a UTF-16 String. As JavaScript already uses such strings, DOMString is mapped directly to a String.") providing a hint for a [user agent\'s](https://developer.mozilla.org/en-US/docs/Glossary/user_agent "user agent\'s: A user agent is a computer program representing a person, for example, a browser in a Web context.") autocomplete feature. See [The HTML autocomplete attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) for a complete list of values and details on how to use autocomplete.'}},{name:"autofocus",valueSet:"v",description:{kind:"markdown",value:"This Boolean attribute lets you specify that a form control should have input focus when the page loads. Only one form element in a document can have the `autofocus` attribute."}},{name:"disabled",valueSet:"v",description:{kind:"markdown",value:"This Boolean attribute indicates that the user cannot interact with the control. If this attribute is not specified, the control inherits its setting from the containing element, for example `fieldset`; if there is no containing element with the `disabled` attribute set, then the control is enabled."}},{name:"form",description:{kind:"markdown",value:'This attribute lets you specify the form element to\xa0which\xa0the select element is associated\xa0(that is, its "form owner"). If this attribute is specified, its value must be the same as the `id` of a form element in the same document. This enables you to place select elements anywhere within a document, not just as descendants of their form elements.'}},{name:"multiple",valueSet:"v",description:{kind:"markdown",value:"This Boolean attribute indicates that multiple options can be selected in the list. If it is not specified, then only one option can be selected at a time. When `multiple` is specified, most browsers will show a scrolling list box instead of a single line dropdown."}},{name:"name",description:{kind:"markdown",value:"This attribute is used to specify the name of the control."}},{name:"required",valueSet:"v",description:{kind:"markdown",value:"A Boolean attribute indicating that an option with a non-empty string value must be selected."}},{name:"size",description:{kind:"markdown",value:"If the control is presented as a scrolling list box (e.g. when `multiple` is specified), this attribute represents the number of rows in the list that should be visible at one time. Browsers are not required to present a select element as a scrolled list box. The default value is 0.\n\n**Note:** According to the HTML5 specification, the default value for size should be 1; however, in practice, this has been found to break some web sites, and no other browser currently does that, so Mozilla has opted to continue to return 0 for the time being with Firefox."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/select"}]},{name:"datalist",description:{kind:"markdown",value:"The datalist element represents a set of option elements that represent predefined options for other controls. In the rendering, the datalist element represents nothing and it, along with its children, should be hidden."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/datalist"}]},{name:"optgroup",description:{kind:"markdown",value:"The optgroup element represents a group of option elements with a common label."},attributes:[{name:"disabled",valueSet:"v",description:{kind:"markdown",value:"If this Boolean attribute is set, none of the items in this option group is selectable. Often browsers grey out such control and it won't receive any browsing events, like mouse clicks or focus-related ones."}},{name:"label",description:{kind:"markdown",value:"The name of the group of options, which the browser can use when labeling the options in the user interface. This attribute is mandatory if this element is used."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/optgroup"}]},{name:"option",description:{kind:"markdown",value:"The option element represents an option in a select element or as part of a list of suggestions in a datalist element."},attributes:[{name:"disabled",valueSet:"v",description:{kind:"markdown",value:'If this Boolean attribute is set, this option is not checkable. Often browsers grey out such control and it won\'t receive any browsing event, like mouse clicks or focus-related ones. If this attribute is not set, the element can still be disabled if one of its ancestors is a disabled [`<optgroup>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/optgroup "The HTML <optgroup> element creates a grouping of options within a <select> element.") element.'}},{name:"label",description:{kind:"markdown",value:"This attribute is text for the label indicating the meaning of the option. If the `label` attribute isn't defined, its value is that of the element text content."}},{name:"selected",valueSet:"v",description:{kind:"markdown",value:'If present, this Boolean attribute indicates that the option is initially selected. If the `<option>` element is the descendant of a [`<select>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select "The HTML <select> element represents a control that provides a menu of options") element whose [`multiple`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select#attr-multiple) attribute is not set, only one single `<option>` of this [`<select>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select "The HTML <select> element represents a control that provides a menu of options") element may have the `selected` attribute.'}},{name:"value",description:{kind:"markdown",value:"The content of this attribute represents the value to be submitted with the form, should this option be selected.\xa0If this attribute is omitted, the value is taken from the text content of the option element."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/option"}]},{name:"textarea",description:{kind:"markdown",value:"The textarea element represents a multiline plain text edit control for the element's raw value. The contents of the control represent the control's default value."},attributes:[{name:"autocomplete",valueSet:"inputautocomplete",description:{kind:"markdown",value:'This attribute indicates whether the value of the control can be automatically completed by the browser. Possible values are:\n\n* `off`: The user must explicitly enter a value into this field for every use, or the document provides its own auto-completion method; the browser does not automatically complete the entry.\n* `on`: The browser can automatically complete the value based on values that the user has entered during previous uses.\n\nIf the `autocomplete` attribute is not specified on a `<textarea>` element, then the browser uses the `autocomplete` attribute value of the `<textarea>` element\'s form owner. The form owner is either the [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") element that this `<textarea>` element is a descendant of or the form element whose `id` is specified by the `form` attribute of the input element. For more information, see the [`autocomplete`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-autocomplete) attribute in [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.").'}},{name:"autofocus",valueSet:"v",description:{kind:"markdown",value:"This Boolean attribute lets you specify that a form control should have input focus when the page loads. Only one form-associated element in a document can have this attribute specified."}},{name:"cols",description:{kind:"markdown",value:"The visible width of the text control, in average character widths. If it is specified, it must be a positive integer. If it is not specified, the default value is `20`."}},{name:"dirname"},{name:"disabled",valueSet:"v",description:{kind:"markdown",value:'This Boolean attribute indicates that the user cannot interact with the control. If this attribute is not specified, the control inherits its setting from the containing element, for example [`<fieldset>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/fieldset "The HTML <fieldset> element is used to group several controls as well as labels (<label>) within a web form."); if there is no containing element when the `disabled` attribute is set, the control is enabled.'}},{name:"form",description:{kind:"markdown",value:'The form element that the `<textarea>` element is associated with (its "form owner"). The value of the attribute must be the `id` of a form element in the same document. If this attribute is not specified, the `<textarea>` element must be a descendant of a form element. This attribute enables you to place `<textarea>` elements anywhere within a document, not just as descendants of form elements.'}},{name:"inputmode",valueSet:"im"},{name:"maxlength",description:{kind:"markdown",value:"The maximum number of characters (unicode code points) that the user can enter. If this value isn't specified, the user can enter an unlimited number of characters."}},{name:"minlength",description:{kind:"markdown",value:"The minimum number of characters (unicode code points) required that the user should enter."}},{name:"name",description:{kind:"markdown",value:"The name of the control."}},{name:"placeholder",description:{kind:"markdown",value:'A hint to the user of what can be entered in the control. Carriage returns or line-feeds within the placeholder text must be treated as line breaks when rendering the hint.\n\n**Note:** Placeholders should only be used to show an example of the type of data that should be entered into a form; they are _not_ a substitute for a proper [`<label>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/label "The HTML <label> element represents a caption for an item in a user interface.") element tied to the input. See [Labels and placeholders](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Labels_and_placeholders "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") in [<input>: The Input (Form Input) element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") for a full explanation.'}},{name:"readonly",valueSet:"v",description:{kind:"markdown",value:"This Boolean attribute indicates that the user cannot modify the value of the control. Unlike the `disabled` attribute, the `readonly` attribute does not prevent the user from clicking or selecting in the control. The value of a read-only control is still submitted with the form."}},{name:"required",valueSet:"v",description:{kind:"markdown",value:"This attribute specifies that the user must fill in a value before submitting a form."}},{name:"rows",description:{kind:"markdown",value:"The number of visible text lines for the control."}},{name:"wrap",valueSet:"w",description:{kind:"markdown",value:"Indicates how the control wraps text. Possible values are:\n\n* `hard`: The browser automatically inserts line breaks (CR+LF) so that each line has no more than the width of the control; the `cols` attribute must also be specified for this to take effect.\n* `soft`: The browser ensures that all line breaks in the value consist of a CR+LF pair, but does not insert any additional line breaks.\n* `off` : Like `soft` but changes appearance to `white-space: pre` so line segments exceeding `cols` are not wrapped and the `<textarea>` becomes horizontally scrollable.\n\nIf this attribute is not specified, `soft` is its default value."}},{name:"autocapitalize",description:"This is a non-standard attribute supported by WebKit on iOS (therefore nearly all browsers running on iOS, including Safari, Firefox, and Chrome), which controls whether and how the text value should be automatically capitalized as it is entered/edited by the user. The non-deprecated values are available in iOS 5 and later. Possible values are:\n\n* `none`: Completely disables automatic capitalization.\n* `sentences`: Automatically capitalize the first letter of sentences.\n* `words`: Automatically capitalize the first letter of words.\n* `characters`: Automatically capitalize all characters.\n* `on`: Deprecated since iOS 5.\n* `off`: Deprecated since iOS 5."},{name:"spellcheck",description:"Specifies whether the `<textarea>` is subject to spell checking by the underlying browser/OS. the value can be:\n\n* `true`: Indicates that the element needs to have its spelling and grammar checked.\n* `default` : Indicates that the element is to act according to a default behavior, possibly based on the parent element's own `spellcheck` value.\n* `false` : Indicates that the element should not be spell checked."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/textarea"}]},{name:"output",description:{kind:"markdown",value:"The output element represents the result of a calculation performed by the application, or the result of a user action."},attributes:[{name:"for",description:{kind:"markdown",value:"A space-separated list of other elements\u2019 [`id`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id)s, indicating that those elements contributed input values to (or otherwise affected) the calculation."}},{name:"form",description:{kind:"markdown",value:'The [form element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form) that this element is associated with (its "form owner"). The value of the attribute must be an `id` of a form element in the same document. If this attribute is not specified, the output element must be a descendant of a form element. This attribute enables you to place output elements anywhere within a document, not just as descendants of their form elements.'}},{name:"name",description:{kind:"markdown",value:'The name of the element, exposed in the [`HTMLFormElement`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement "The HTMLFormElement interface represents a <form> element in the DOM; it allows access to and in some cases modification of aspects of the form, as well as access to its component elements.") API.'}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/output"}]},{name:"progress",description:{kind:"markdown",value:"The progress element represents the completion progress of a task. The progress is either indeterminate, indicating that progress is being made but that it is not clear how much more work remains to be done before the task is complete (e.g. because the task is waiting for a remote host to respond), or the progress is a number in the range zero to a maximum, giving the fraction of work that has so far been completed."},attributes:[{name:"value",description:{kind:"markdown",value:"This attribute specifies how much of the task that has been completed. It must be a valid floating point number between 0 and `max`, or between 0 and 1 if `max` is omitted. If there is no `value` attribute, the progress bar is indeterminate; this indicates that an activity is ongoing with no indication of how long it is expected to take."}},{name:"max",description:{kind:"markdown",value:"This attribute describes how much work the task indicated by the `progress` element requires. The `max` attribute, if present, must have a value greater than zero and be a valid floating point number. The default value is 1."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/progress"}]},{name:"meter",description:{kind:"markdown",value:"The meter element represents a scalar measurement within a known range, or a fractional value; for example disk usage, the relevance of a query result, or the fraction of a voting population to have selected a particular candidate."},attributes:[{name:"value",description:{kind:"markdown",value:"The current numeric value. This must be between the minimum and maximum values (`min` attribute and `max` attribute) if they are specified. If unspecified or malformed, the value is 0. If specified, but not within the range given by the `min` attribute and `max` attribute, the value is equal to the nearest end of the range.\n\n**Usage note:** Unless the `value` attribute is between `0` and `1` (inclusive), the `min` and `max` attributes should define the range so that the `value` attribute's value is within it."}},{name:"min",description:{kind:"markdown",value:"The lower numeric bound of the measured range. This must be less than the maximum value (`max` attribute), if specified. If unspecified, the minimum value is 0."}},{name:"max",description:{kind:"markdown",value:"The upper numeric bound of the measured range. This must be greater than the minimum value (`min` attribute), if specified. If unspecified, the maximum value is 1."}},{name:"low",description:{kind:"markdown",value:"The upper numeric bound of the low end of the measured range. This must be greater than the minimum value (`min` attribute), and it also must be less than the high value and maximum value (`high` attribute and `max` attribute, respectively), if any are specified. If unspecified, or if less than the minimum value, the `low` value is equal to the minimum value."}},{name:"high",description:{kind:"markdown",value:"The lower numeric bound of the high end of the measured range. This must be less than the maximum value (`max` attribute), and it also must be greater than the low value and minimum value (`low` attribute and **min** attribute, respectively), if any are specified. If unspecified, or if greater than the maximum value, the `high` value is equal to the maximum value."}},{name:"optimum",description:{kind:"markdown",value:"This attribute indicates the optimal numeric value. It must be within the range (as defined by the `min` attribute and `max` attribute). When used with the `low` attribute and `high` attribute, it gives an indication where along the range is considered preferable. For example, if it is between the `min` attribute and the `low` attribute, then the lower range is considered preferred."}},{name:"form",description:"This attribute associates the element with a `form` element that has ownership of the `meter` element. For example, a `meter` might be displaying a range corresponding to an `input` element of `type` _number_. This attribute is only used if the `meter` element is being used as a form-associated element; even then, it may be omitted if the element appears as a descendant of a `form` element."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/meter"}]},{name:"fieldset",description:{kind:"markdown",value:"The fieldset element represents a set of form controls optionally grouped under a common name."},attributes:[{name:"disabled",valueSet:"v",description:{kind:"markdown",value:"If this Boolean attribute is set, all form controls that are descendants of the `<fieldset>`, are disabled, meaning they are not editable and won't be submitted along with the `<form>`. They won't receive any browsing events, like mouse clicks or focus-related events. By default browsers display such controls grayed out. Note that form elements inside the [`<legend>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/legend \"The HTML <legend> element represents a caption for the content of its parent <fieldset>.\") element won't be disabled."}},{name:"form",description:{kind:"markdown",value:'This attribute takes the value of the `id` attribute of a [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") element you want the `<fieldset>` to be part of, even if it is not inside the form.'}},{name:"name",description:{kind:"markdown",value:'The name associated with the group.\n\n**Note**: The caption for the fieldset is given by the first [`<legend>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/legend "The HTML <legend> element represents a caption for the content of its parent <fieldset>.") element nested inside it.'}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/fieldset"}]},{name:"legend",description:{kind:"markdown",value:"The legend element represents a caption for the rest of the contents of the legend element's parent fieldset element, if any."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/legend"}]},{name:"details",description:{kind:"markdown",value:"The details element represents a disclosure widget from which the user can obtain additional information or controls."},attributes:[{name:"open",valueSet:"v",description:{kind:"markdown",value:"This Boolean attribute indicates whether or not the details \u2014 that is, the contents of the `<details>` element \u2014 are currently visible. The default, `false`, means the details are not visible."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/details"}]},{name:"summary",description:{kind:"markdown",value:"The summary element represents a summary, caption, or legend for the rest of the contents of the summary element's parent details element, if any."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/summary"}]},{name:"dialog",description:{kind:"markdown",value:"The dialog element represents a part of an application that a user interacts with to perform a task, for example a dialog box, inspector, or window."},attributes:[{name:"open",description:"Indicates that the dialog is active and available for interaction. When the `open` attribute is not set, the dialog shouldn't be shown to the user."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/dialog"}]},{name:"script",description:{kind:"markdown",value:"The script element allows authors to include dynamic script and data blocks in their documents. The element does not represent content for the user."},attributes:[{name:"src",description:{kind:"markdown",value:"This attribute specifies the URI of an external script; this can be used as an alternative to embedding a script directly within a document.\n\nIf a `script` element has a `src` attribute specified, it should not have a script embedded inside its tags."}},{name:"type",description:{kind:"markdown",value:'This attribute indicates the type of script represented. The value of this attribute will be in one of the following categories:\n\n* **Omitted or a JavaScript MIME type:** For HTML5-compliant browsers this indicates the script is JavaScript. HTML5 specification urges authors to omit the attribute rather than provide a redundant MIME type. In earlier browsers, this identified the scripting language of the embedded or imported (via the `src` attribute) code. JavaScript MIME types are [listed in the specification](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types#JavaScript_types).\n* **`module`:** For HTML5-compliant browsers the code is treated as a JavaScript module. The processing of the script contents is not affected by the `charset` and `defer` attributes. For information on using `module`, see [ES6 in Depth: Modules](https://hacks.mozilla.org/2015/08/es6-in-depth-modules/). Code may behave differently when the `module` keyword is used.\n* **Any other value:** The embedded content is treated as a data block which won\'t be processed by the browser. Developers must use a valid MIME type that is not a JavaScript MIME type to denote data blocks. The `src` attribute will be ignored.\n\n**Note:** in Firefox you could specify the version of JavaScript contained in a `<script>` element by including a non-standard `version` parameter inside the `type` attribute \u2014 for example `type="text/javascript;version=1.8"`. This has been removed in Firefox 59 (see [bug\xa01428745](https://bugzilla.mozilla.org/show_bug.cgi?id=1428745 "FIXED: Remove support for version parameter from script loader")).'}},{name:"charset"},{name:"async",valueSet:"v",description:{kind:"markdown",value:'This is a Boolean attribute indicating that the browser should, if possible, load the script asynchronously.\n\nThis attribute must not be used if the `src` attribute is absent (i.e. for inline scripts). If it is included in this case it will have no effect.\n\nBrowsers usually assume the worst case scenario and load scripts synchronously, (i.e. `async="false"`) during HTML parsing.\n\nDynamically inserted scripts (using [`document.createElement()`](https://developer.mozilla.org/en-US/docs/Web/API/Document/createElement "In an HTML document, the document.createElement() method creates the HTML element specified by tagName, or an HTMLUnknownElement if tagName isn\'t recognized.")) load asynchronously by default, so to turn on synchronous loading (i.e. scripts load in the order they were inserted) set `async="false"`.\n\nSee [Browser compatibility](#Browser_compatibility) for notes on browser support. See also [Async scripts for asm.js](https://developer.mozilla.org/en-US/docs/Games/Techniques/Async_scripts).'}},{name:"defer",valueSet:"v",description:{kind:"markdown",value:'This Boolean attribute is set to indicate to a browser that the script is meant to be executed after the document has been parsed, but before firing [`DOMContentLoaded`](https://developer.mozilla.org/en-US/docs/Web/Events/DOMContentLoaded "/en-US/docs/Web/Events/DOMContentLoaded").\n\nScripts with the `defer` attribute will prevent the `DOMContentLoaded` event from firing until the script has loaded and finished evaluating.\n\nThis attribute must not be used if the `src` attribute is absent (i.e. for inline scripts), in this case it would have no effect.\n\nTo achieve a similar effect for dynamically inserted scripts use `async="false"` instead. Scripts with the `defer` attribute will execute in the order in which they appear in the document.'}},{name:"crossorigin",valueSet:"xo",description:{kind:"markdown",value:'Normal `script` elements pass minimal information to the [`window.onerror`](https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onerror "The onerror property of the GlobalEventHandlers mixin is an EventHandler that processes error events.") for scripts which do not pass the standard [CORS](https://developer.mozilla.org/en-US/docs/Glossary/CORS "CORS: CORS (Cross-Origin Resource Sharing) is a system, consisting of transmitting HTTP headers, that determines whether browsers block frontend JavaScript code from accessing responses for cross-origin requests.") checks. To allow error logging for sites which use a separate domain for static media, use this attribute. See [CORS settings attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) for a more descriptive explanation of its valid arguments.'}},{name:"nonce",description:{kind:"markdown",value:"A cryptographic nonce (number used once) to list the allowed inline scripts in a [script-src Content-Security-Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/script-src). The server must generate a unique nonce value each time it transmits a policy. It is critical to provide a nonce that cannot be guessed as bypassing a resource's policy is otherwise trivial."}},{name:"integrity",description:"This attribute contains inline metadata that a user agent can use to verify that a fetched resource has been delivered free of unexpected manipulation. See [Subresource Integrity](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity)."},{name:"nomodule",description:"This Boolean attribute is set to indicate that the script should not be executed in browsers that support [ES2015 modules](https://hacks.mozilla.org/2015/08/es6-in-depth-modules/) \u2014 in effect, this can be used to serve fallback scripts to older browsers that do not support modular JavaScript code."},{name:"referrerpolicy",description:'Indicates which [referrer](https://developer.mozilla.org/en-US/docs/Web/API/Document/referrer) to send when fetching the script, or resources fetched by the script:\n\n* `no-referrer`: The [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will not be sent.\n* `no-referrer-when-downgrade` (default): The [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will not be sent to [origin](https://developer.mozilla.org/en-US/docs/Glossary/origin "origin: Web content\'s origin is defined by the scheme (protocol), host (domain), and port of the URL used to access it. Two objects have the same origin only when the scheme, host, and port all match.")s without [TLS](https://developer.mozilla.org/en-US/docs/Glossary/TLS "TLS: Transport Layer Security (TLS), previously known as Secure Sockets Layer (SSL), is a protocol used by applications to communicate securely across a network, preventing tampering with and eavesdropping on email, web browsing, messaging, and other protocols.") ([HTTPS](https://developer.mozilla.org/en-US/docs/Glossary/HTTPS "HTTPS: HTTPS (HTTP Secure) is an encrypted version of the HTTP protocol. It usually uses SSL or TLS to encrypt all communication between a client and a server. This secure connection allows clients to safely exchange sensitive data with a server, for example for banking activities or online shopping.")).\n* `origin`: The sent referrer will be limited to the origin of the referring page: its [scheme](https://developer.mozilla.org/en-US/docs/Archive/Mozilla/URIScheme), [host](https://developer.mozilla.org/en-US/docs/Glossary/host "host: A host is a device connected to the Internet (or a local network). Some hosts called servers offer additional services like serving webpages or storing files and emails."), and [port](https://developer.mozilla.org/en-US/docs/Glossary/port "port: For a computer connected to a network with an IP address, a port is a communication endpoint. Ports are designated by numbers, and below 1024 each port is associated by default with a specific protocol.").\n* `origin-when-cross-origin`: The referrer sent to other origins will be limited to the scheme, the host, and the port. Navigations on the same origin will still include the path.\n* `same-origin`: A referrer will be sent for [same origin](https://developer.mozilla.org/en-US/docs/Glossary/Same-origin_policy "same origin: The same-origin policy is a critical security mechanism that restricts how a document or script loaded from one origin can interact with a resource from another origin."), but cross-origin requests will contain no referrer information.\n* `strict-origin`: Only send the origin of the document as the referrer when the protocol security level stays the same (e.g. HTTPS\u2192HTTPS), but don\'t send it to a less secure destination (e.g. HTTPS\u2192HTTP).\n* `strict-origin-when-cross-origin`: Send a full URL when performing a same-origin request, but only send the origin when the protocol security level stays the same (e.g.HTTPS\u2192HTTPS), and send no header to a less secure destination (e.g. HTTPS\u2192HTTP).\n* `unsafe-url`: The referrer will include the origin _and_ the path (but not the [fragment](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/hash), [password](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/password), or [username](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/username)). **This value is unsafe**, because it leaks origins and paths from TLS-protected resources to insecure origins.\n\n**Note**: An empty string value (`""`) is both the default value, and a fallback value if `referrerpolicy` is not supported. If `referrerpolicy` is not explicitly specified on the `<script>` element, it will adopt a higher-level referrer policy, i.e. one set on the whole document or domain. If a higher-level policy is not available,\xa0the empty string is treated as being equivalent to `no-referrer-when-downgrade`.'},{name:"text",description:"Like the `textContent` attribute, this attribute sets the text content of the element. Unlike the `textContent` attribute, however, this attribute is evaluated as executable code after the node is inserted into the DOM."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/script"}]},{name:"noscript",description:{kind:"markdown",value:"The noscript element represents nothing if scripting is enabled, and represents its children if scripting is disabled. It is used to present different markup to user agents that support scripting and those that don't support scripting, by affecting how the document is parsed."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/noscript"}]},{name:"template",description:{kind:"markdown",value:"The template element is used to declare fragments of HTML that can be cloned and inserted in the document by script."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/template"}]},{name:"canvas",description:{kind:"markdown",value:"The canvas element provides scripts with a resolution-dependent bitmap canvas, which can be used for rendering graphs, game graphics, art, or other visual images on the fly."},attributes:[{name:"width",description:{kind:"markdown",value:"The width of the coordinate space in CSS pixels. Defaults to 300."}},{name:"height",description:{kind:"markdown",value:"The height of the coordinate space in CSS pixels. Defaults to 150."}},{name:"moz-opaque",description:"Lets the canvas know whether or not translucency will be a factor. If the canvas knows there's no translucency, painting performance can be optimized. This is only supported by Mozilla-based browsers; use the standardized [`canvas.getContext('2d', { alpha: false })`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/getContext \"The HTMLCanvasElement.getContext() method returns a drawing context on the canvas, or null if the context identifier is not supported.\") instead."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/canvas"}]},{name:"slot",description:{kind:"markdown",value:"The slot element is a placeholder inside a web component that you can fill with your own markup, which lets you create separate DOM trees and present them together."},attributes:[{name:"name",description:{kind:"markdown",value:"The slot's name.\nA **named slot** is a `<slot>` element with a `name` attribute."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/slot"}]},{name:"data",description:{kind:"markdown",value:"The data element links a given piece of content with a machine-readable translation."},attributes:[{name:"value",description:{kind:"markdown",value:"This attribute specifies the machine-readable translation of the content of the element."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/data"}]},{name:"hgroup",description:{kind:"markdown",value:"The hgroup element represents a heading and related content. It groups a single h1\u2013h6 element with one or more p."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/hgroup"}]},{name:"menu",description:{kind:"markdown",value:"The menu element represents an unordered list of interactive items."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/menu"}]}],globalAttributes:[{name:"accesskey",description:{kind:"markdown",value:"Provides a hint for generating a keyboard shortcut for the current element. This attribute consists of a space-separated list of characters. The browser should use the first one that exists on the computer keyboard layout."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/accesskey"}]},{name:"autocapitalize",description:{kind:"markdown",value:"Controls whether and how text input is automatically capitalized as it is entered/edited by the user. It can have the following values:\n\n* `off` or `none`, no autocapitalization is applied (all letters default to lowercase)\n* `on` or `sentences`, the first letter of each sentence defaults to a capital letter; all other letters default to lowercase\n* `words`, the first letter of each word defaults to a capital letter; all other letters default to lowercase\n* `characters`, all letters should default to uppercase"},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/autocapitalize"}]},{name:"class",description:{kind:"markdown",value:'A space-separated list of the classes of the element. Classes allows CSS and JavaScript to select and access specific elements via the [class selectors](https://developer.mozilla.org/docs/Web/CSS/Class_selectors) or functions like the method [`Document.getElementsByClassName()`](https://developer.mozilla.org/docs/Web/API/Document/getElementsByClassName "returns an array-like object of all child elements which have all of the given class names.").'},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/class"}]},{name:"contenteditable",description:{kind:"markdown",value:"An enumerated attribute indicating if the element should be editable by the user. If so, the browser modifies its widget to allow editing. The attribute must take one of the following values:\n\n* `true` or the _empty string_, which indicates that the element must be editable;\n* `false`, which indicates that the element must not be editable."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/contenteditable"}]},{name:"contextmenu",description:{kind:"markdown",value:'The `[**id**](#attr-id)` of a [`<menu>`](https://developer.mozilla.org/docs/Web/HTML/Element/menu "The HTML <menu> element represents a group of commands that a user can perform or activate. This includes both list menus, which might appear across the top of a screen, as well as context menus, such as those that might appear underneath a button after it has been clicked.") to use as the contextual menu for this element.'},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/contextmenu"}]},{name:"dir",description:{kind:"markdown",value:"An enumerated attribute indicating the directionality of the element's text. It can have the following values:\n\n* `ltr`, which means _left to right_ and is to be used for languages that are written from the left to the right (like English);\n* `rtl`, which means _right to left_ and is to be used for languages that are written from the right to the left (like Arabic);\n* `auto`, which lets the user agent decide. It uses a basic algorithm as it parses the characters inside the element until it finds a character with a strong directionality, then it applies that directionality to the whole element."},valueSet:"d",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/dir"}]},{name:"draggable",description:{kind:"markdown",value:"An enumerated attribute indicating whether the element can be dragged, using the [Drag and Drop API](https://developer.mozilla.org/docs/DragDrop/Drag_and_Drop). It can have the following values:\n\n* `true`, which indicates that the element may be dragged\n* `false`, which indicates that the element may not be dragged."},valueSet:"b",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/draggable"}]},{name:"dropzone",description:{kind:"markdown",value:"An enumerated attribute indicating what types of content can be dropped on an element, using the [Drag and Drop API](https://developer.mozilla.org/docs/DragDrop/Drag_and_Drop). It can have the following values:\n\n* `copy`, which indicates that dropping will create a copy of the element that was dragged\n* `move`, which indicates that the element that was dragged will be moved to this new location.\n* `link`, will create a link to the dragged data."}},{name:"exportparts",description:{kind:"markdown",value:"Used to transitively export shadow parts from a nested shadow tree into a containing light tree."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/exportparts"}]},{name:"hidden",description:{kind:"markdown",value:"A Boolean attribute indicates that the element is not yet, or is no longer, _relevant_. For example, it can be used to hide elements of the page that can't be used until the login process has been completed. The browser won't render such elements. This attribute must not be used to hide content that could legitimately be shown."},valueSet:"v",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/hidden"}]},{name:"id",description:{kind:"markdown",value:"Defines a unique identifier (ID) which must be unique in the whole document. Its purpose is to identify the element when linking (using a fragment identifier), scripting, or styling (with CSS)."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/id"}]},{name:"inputmode",description:{kind:"markdown",value:'Provides a hint to browsers as to the type of virtual keyboard configuration to use when editing this element or its contents. Used primarily on [`<input>`](https://developer.mozilla.org/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") elements, but is usable on any element while in `[contenteditable](https://developer.mozilla.org/docs/Web/HTML/Global_attributes#attr-contenteditable)` mode.'},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/inputmode"}]},{name:"is",description:{kind:"markdown",value:"Allows you to specify that a standard HTML element should behave like a registered custom built-in element (see [Using custom elements](https://developer.mozilla.org/docs/Web/Web_Components/Using_custom_elements) for more details)."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/is"}]},{name:"itemid",description:{kind:"markdown",value:"The unique, global identifier of an item."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/itemid"}]},{name:"itemprop",description:{kind:"markdown",value:"Used to add properties to an item. Every HTML element may have an `itemprop` attribute specified, where an `itemprop` consists of a name and value pair."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/itemprop"}]},{name:"itemref",description:{kind:"markdown",value:"Properties that are not descendants of an element with the `itemscope` attribute can be associated with the item using an `itemref`. It provides a list of element ids (not `itemid`s) with additional properties elsewhere in the document."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/itemref"}]},{name:"itemscope",description:{kind:"markdown",value:"`itemscope` (usually) works along with `[itemtype](https://developer.mozilla.org/docs/Web/HTML/Global_attributes#attr-itemtype)` to specify that the HTML contained in a block is about a particular item. `itemscope` creates the Item and defines the scope of the `itemtype` associated with it. `itemtype` is a valid URL of a vocabulary (such as [schema.org](https://schema.org/)) that describes the item and its properties context."},valueSet:"v",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/itemscope"}]},{name:"itemtype",description:{kind:"markdown",value:"Specifies the URL of the vocabulary that will be used to define `itemprop`s (item properties) in the data structure. `[itemscope](https://developer.mozilla.org/docs/Web/HTML/Global_attributes#attr-itemscope)` is used to set the scope of where in the data structure the vocabulary set by `itemtype` will be active."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/itemtype"}]},{name:"lang",description:{kind:"markdown",value:"Helps define the language of an element: the language that non-editable elements are in, or the language that editable elements should be written in by the user. The attribute contains one \u201clanguage tag\u201d (made of hyphen-separated \u201clanguage subtags\u201d) in the format defined in [_Tags for Identifying Languages (BCP47)_](https://www.ietf.org/rfc/bcp/bcp47.txt). [**xml:lang**](#attr-xml:lang) has priority over it."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/lang"}]},{name:"part",description:{kind:"markdown",value:'A space-separated list of the part names of the element. Part names allows CSS to select and style specific elements in a shadow tree via the [`::part`](https://developer.mozilla.org/docs/Web/CSS/::part "The ::part CSS pseudo-element represents any element within a shadow tree that has a matching part attribute.") pseudo-element.'},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/part"}]},{name:"role",valueSet:"roles"},{name:"slot",description:{kind:"markdown",value:"Assigns a slot in a [shadow DOM](https://developer.mozilla.org/docs/Web/Web_Components/Shadow_DOM) shadow tree to an element: An element with a `slot` attribute is assigned to the slot created by the [`<slot>`](https://developer.mozilla.org/docs/Web/HTML/Element/slot \"The HTML <slot> element\u2014part of the Web Components technology suite\u2014is a placeholder inside a web component that you can fill with your own markup, which lets you create separate DOM trees and present them together.\") element whose `[name](https://developer.mozilla.org/docs/Web/HTML/Element/slot#attr-name)` attribute's value matches that `slot` attribute's value."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/slot"}]},{name:"spellcheck",description:{kind:"markdown",value:"An enumerated attribute defines whether the element may be checked for spelling errors. It may have the following values:\n\n* `true`, which indicates that the element should be, if possible, checked for spelling errors;\n* `false`, which indicates that the element should not be checked for spelling errors."},valueSet:"b",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/spellcheck"}]},{name:"style",description:{kind:"markdown",value:'Contains [CSS](https://developer.mozilla.org/docs/Web/CSS) styling declarations to be applied to the element. Note that it is recommended for styles to be defined in a separate file or files. This attribute and the [`<style>`](https://developer.mozilla.org/docs/Web/HTML/Element/style "The HTML <style> element contains style information for a document, or part of a document.") element have mainly the purpose of allowing for quick styling, for example for testing purposes.'},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/style"}]},{name:"tabindex",description:{kind:"markdown",value:"An integer attribute indicating if the element can take input focus (is _focusable_), if it should participate to sequential keyboard navigation, and if so, at what position. It can take several values:\n\n* a _negative value_ means that the element should be focusable, but should not be reachable via sequential keyboard navigation;\n* `0` means that the element should be focusable and reachable via sequential keyboard navigation, but its relative order is defined by the platform convention;\n* a _positive value_ means that the element should be focusable and reachable via sequential keyboard navigation; the order in which the elements are focused is the increasing value of the [**tabindex**](#attr-tabindex). If several elements share the same tabindex, their relative order follows their relative positions in the document."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/tabindex"}]},{name:"title",description:{kind:"markdown",value:"Contains a text representing advisory information related to the element it belongs to. Such information can typically, but not necessarily, be presented to the user as a tooltip."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/title"}]},{name:"translate",description:{kind:"markdown",value:"An enumerated attribute that is used to specify whether an element's attribute values and the values of its [`Text`](https://developer.mozilla.org/docs/Web/API/Text \"The Text interface represents the textual content of Element or Attr. If an element has no markup within its content, it has a single child implementing Text that contains the element's text. However, if the element contains markup, it is parsed into information items and Text nodes that form its children.\") node children are to be translated when the page is localized, or whether to leave them unchanged. It can have the following values:\n\n* empty string and `yes`, which indicates that the element will be translated.\n* `no`, which indicates that the element will not be translated."},valueSet:"y",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/translate"}]},{name:"onabort",description:{kind:"markdown",value:"The loading of a resource has been aborted."}},{name:"onblur",description:{kind:"markdown",value:"An element has lost focus (does not bubble)."}},{name:"oncanplay",description:{kind:"markdown",value:"The user agent can play the media, but estimates that not enough data has been loaded to play the media up to its end without having to stop for further buffering of content."}},{name:"oncanplaythrough",description:{kind:"markdown",value:"The user agent can play the media up to its end without having to stop for further buffering of content."}},{name:"onchange",description:{kind:"markdown",value:"The change event is fired for <input>, <select>, and <textarea> elements when a change to the element's value is committed by the user."}},{name:"onclick",description:{kind:"markdown",value:"A pointing device button has been pressed and released on an element."}},{name:"oncontextmenu",description:{kind:"markdown",value:"The right button of the mouse is clicked (before the context menu is displayed)."}},{name:"ondblclick",description:{kind:"markdown",value:"A pointing device button is clicked twice on an element."}},{name:"ondrag",description:{kind:"markdown",value:"An element or text selection is being dragged (every 350ms)."}},{name:"ondragend",description:{kind:"markdown",value:"A drag operation is being ended (by releasing a mouse button or hitting the escape key)."}},{name:"ondragenter",description:{kind:"markdown",value:"A dragged element or text selection enters a valid drop target."}},{name:"ondragleave",description:{kind:"markdown",value:"A dragged element or text selection leaves a valid drop target."}},{name:"ondragover",description:{kind:"markdown",value:"An element or text selection is being dragged over a valid drop target (every 350ms)."}},{name:"ondragstart",description:{kind:"markdown",value:"The user starts dragging an element or text selection."}},{name:"ondrop",description:{kind:"markdown",value:"An element is dropped on a valid drop target."}},{name:"ondurationchange",description:{kind:"markdown",value:"The duration attribute has been updated."}},{name:"onemptied",description:{kind:"markdown",value:"The media has become empty; for example, this event is sent if the media has already been loaded (or partially loaded), and the load() method is called to reload it."}},{name:"onended",description:{kind:"markdown",value:"Playback has stopped because the end of the media was reached."}},{name:"onerror",description:{kind:"markdown",value:"A resource failed to load."}},{name:"onfocus",description:{kind:"markdown",value:"An element has received focus (does not bubble)."}},{name:"onformchange"},{name:"onforminput"},{name:"oninput",description:{kind:"markdown",value:"The value of an element changes or the content of an element with the attribute contenteditable is modified."}},{name:"oninvalid",description:{kind:"markdown",value:"A submittable element has been checked and doesn't satisfy its constraints."}},{name:"onkeydown",description:{kind:"markdown",value:"A key is pressed down."}},{name:"onkeypress",description:{kind:"markdown",value:"A key is pressed down and that key normally produces a character value (use input instead)."}},{name:"onkeyup",description:{kind:"markdown",value:"A key is released."}},{name:"onload",description:{kind:"markdown",value:"A resource and its dependent resources have finished loading."}},{name:"onloadeddata",description:{kind:"markdown",value:"The first frame of the media has finished loading."}},{name:"onloadedmetadata",description:{kind:"markdown",value:"The metadata has been loaded."}},{name:"onloadstart",description:{kind:"markdown",value:"Progress has begun."}},{name:"onmousedown",description:{kind:"markdown",value:"A pointing device button (usually a mouse) is pressed on an element."}},{name:"onmousemove",description:{kind:"markdown",value:"A pointing device is moved over an element."}},{name:"onmouseout",description:{kind:"markdown",value:"A pointing device is moved off the element that has the listener attached or off one of its children."}},{name:"onmouseover",description:{kind:"markdown",value:"A pointing device is moved onto the element that has the listener attached or onto one of its children."}},{name:"onmouseup",description:{kind:"markdown",value:"A pointing device button is released over an element."}},{name:"onmousewheel"},{name:"onmouseenter",description:{kind:"markdown",value:"A pointing device is moved onto the element that has the listener attached."}},{name:"onmouseleave",description:{kind:"markdown",value:"A pointing device is moved off the element that has the listener attached."}},{name:"onpause",description:{kind:"markdown",value:"Playback has been paused."}},{name:"onplay",description:{kind:"markdown",value:"Playback has begun."}},{name:"onplaying",description:{kind:"markdown",value:"Playback is ready to start after having been paused or delayed due to lack of data."}},{name:"onprogress",description:{kind:"markdown",value:"In progress."}},{name:"onratechange",description:{kind:"markdown",value:"The playback rate has changed."}},{name:"onreset",description:{kind:"markdown",value:"A form is reset."}},{name:"onresize",description:{kind:"markdown",value:"The document view has been resized."}},{name:"onreadystatechange",description:{kind:"markdown",value:"The readyState attribute of a document has changed."}},{name:"onscroll",description:{kind:"markdown",value:"The document view or an element has been scrolled."}},{name:"onseeked",description:{kind:"markdown",value:"A seek operation completed."}},{name:"onseeking",description:{kind:"markdown",value:"A seek operation began."}},{name:"onselect",description:{kind:"markdown",value:"Some text is being selected."}},{name:"onshow",description:{kind:"markdown",value:"A contextmenu event was fired on/bubbled to an element that has a contextmenu attribute"}},{name:"onstalled",description:{kind:"markdown",value:"The user agent is trying to fetch media data, but data is unexpectedly not forthcoming."}},{name:"onsubmit",description:{kind:"markdown",value:"A form is submitted."}},{name:"onsuspend",description:{kind:"markdown",value:"Media data loading has been suspended."}},{name:"ontimeupdate",description:{kind:"markdown",value:"The time indicated by the currentTime attribute has been updated."}},{name:"onvolumechange",description:{kind:"markdown",value:"The volume has changed."}},{name:"onwaiting",description:{kind:"markdown",value:"Playback has stopped because of a temporary lack of data."}},{name:"onpointercancel",description:{kind:"markdown",value:"The pointer is unlikely to produce any more events."}},{name:"onpointerdown",description:{kind:"markdown",value:"The pointer enters the active buttons state."}},{name:"onpointerenter",description:{kind:"markdown",value:"Pointing device is moved inside the hit-testing boundary."}},{name:"onpointerleave",description:{kind:"markdown",value:"Pointing device is moved out of the hit-testing boundary."}},{name:"onpointerlockchange",description:{kind:"markdown",value:"The pointer was locked or released."}},{name:"onpointerlockerror",description:{kind:"markdown",value:"It was impossible to lock the pointer for technical reasons or because the permission was denied."}},{name:"onpointermove",description:{kind:"markdown",value:"The pointer changed coordinates."}},{name:"onpointerout",description:{kind:"markdown",value:"The pointing device moved out of hit-testing boundary or leaves detectable hover range."}},{name:"onpointerover",description:{kind:"markdown",value:"The pointing device is moved into the hit-testing boundary."}},{name:"onpointerup",description:{kind:"markdown",value:"The pointer leaves the active buttons state."}},{name:"aria-activedescendant",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-activedescendant"}],description:{kind:"markdown",value:"Identifies the currently active element when DOM focus is on a [`composite`](https://www.w3.org/TR/wai-aria-1.1/#composite) widget, [`textbox`](https://www.w3.org/TR/wai-aria-1.1/#textbox), [`group`](https://www.w3.org/TR/wai-aria-1.1/#group), or [`application`](https://www.w3.org/TR/wai-aria-1.1/#application)."}},{name:"aria-atomic",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-atomic"}],description:{kind:"markdown",value:"Indicates whether [assistive technologies](https://www.w3.org/TR/wai-aria-1.1/#dfn-assistive-technology) will present all, or only parts of, the changed region based on the change notifications defined by the [`aria-relevant`](https://www.w3.org/TR/wai-aria-1.1/#aria-relevant) attribute."}},{name:"aria-autocomplete",valueSet:"autocomplete",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-autocomplete"}],description:{kind:"markdown",value:"Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be presented if they are made."}},{name:"aria-busy",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-busy"}],description:{kind:"markdown",value:"Indicates an element is being modified and that assistive technologies _MAY_ want to wait until the modifications are complete before exposing them to the user."}},{name:"aria-checked",valueSet:"tristate",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-checked"}],description:{kind:"markdown",value:'Indicates the current "checked" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of checkboxes, radio buttons, and other [widgets](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-pressed`](https://www.w3.org/TR/wai-aria-1.1/#aria-pressed) and [`aria-selected`](https://www.w3.org/TR/wai-aria-1.1/#aria-selected).'}},{name:"aria-colcount",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-colcount"}],description:{kind:"markdown",value:"Defines the total number of columns in a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-colindex)."}},{name:"aria-colindex",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-colindex"}],description:{kind:"markdown",value:"Defines an [element's](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) column index or position with respect to the total number of columns within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colcount`](https://www.w3.org/TR/wai-aria-1.1/#aria-colcount) and [`aria-colspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-colspan)."}},{name:"aria-colspan",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-colspan"}],description:{kind:"markdown",value:"Defines the number of columns spanned by a cell or gridcell within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-colindex) and [`aria-rowspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan)."}},{name:"aria-controls",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-controls"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) whose contents or presence are controlled by the current element. See related [`aria-owns`](https://www.w3.org/TR/wai-aria-1.1/#aria-owns)."}},{name:"aria-current",valueSet:"current",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-current"}],description:{kind:"markdown",value:"Indicates the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that represents the current item within a container or set of related elements."}},{name:"aria-describedby",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-describedby"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) that describes the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-labelledby`](https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby)."}},{name:"aria-disabled",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-disabled"}],description:{kind:"markdown",value:"Indicates that the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is [perceivable](https://www.w3.org/TR/wai-aria-1.1/#dfn-perceivable) but disabled, so it is not editable or otherwise [operable](https://www.w3.org/TR/wai-aria-1.1/#dfn-operable). See related [`aria-hidden`](https://www.w3.org/TR/wai-aria-1.1/#aria-hidden) and [`aria-readonly`](https://www.w3.org/TR/wai-aria-1.1/#aria-readonly)."}},{name:"aria-dropeffect",valueSet:"dropeffect",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-dropeffect"}],description:{kind:"markdown",value:"\\[Deprecated in ARIA 1.1\\] Indicates what functions can be performed when a dragged object is released on the drop target."}},{name:"aria-errormessage",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-errormessage"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that provides an error message for the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-invalid`](https://www.w3.org/TR/wai-aria-1.1/#aria-invalid) and [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby)."}},{name:"aria-expanded",valueSet:"u",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-expanded"}],description:{kind:"markdown",value:"Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed."}},{name:"aria-flowto",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-flowto"}],description:{kind:"markdown",value:"Identifies the next [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) in an alternate reading order of content which, at the user's discretion, allows assistive technology to override the general default of reading in document source order."}},{name:"aria-grabbed",valueSet:"u",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-grabbed"}],description:{kind:"markdown",value:'\\[Deprecated in ARIA 1.1\\] Indicates an element\'s "grabbed" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) in a drag-and-drop operation.'}},{name:"aria-haspopup",valueSet:"haspopup",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-haspopup"}],description:{kind:"markdown",value:"Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element)."}},{name:"aria-hidden",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-hidden"}],description:{kind:"markdown",value:"Indicates whether the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is exposed to an accessibility API. See related [`aria-disabled`](https://www.w3.org/TR/wai-aria-1.1/#aria-disabled)."}},{name:"aria-invalid",valueSet:"invalid",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-invalid"}],description:{kind:"markdown",value:"Indicates the entered value does not conform to the format expected by the application. See related [`aria-errormessage`](https://www.w3.org/TR/wai-aria-1.1/#aria-errormessage)."}},{name:"aria-label",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-label"}],description:{kind:"markdown",value:"Defines a string value that labels the current element. See related [`aria-labelledby`](https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby)."}},{name:"aria-labelledby",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) that labels the current element. See related [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby)."}},{name:"aria-level",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-level"}],description:{kind:"markdown",value:"Defines the hierarchical level of an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) within a structure."}},{name:"aria-live",valueSet:"live",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-live"}],description:{kind:"markdown",value:"Indicates that an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) will be updated, and describes the types of updates the [user agents](https://www.w3.org/TR/wai-aria-1.1/#dfn-user-agent), [assistive technologies](https://www.w3.org/TR/wai-aria-1.1/#dfn-assistive-technology), and user can expect from the [live region](https://www.w3.org/TR/wai-aria-1.1/#dfn-live-region)."}},{name:"aria-modal",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-modal"}],description:{kind:"markdown",value:"Indicates whether an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is modal when displayed."}},{name:"aria-multiline",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-multiline"}],description:{kind:"markdown",value:"Indicates whether a text box accepts multiple lines of input or only a single line."}},{name:"aria-multiselectable",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-multiselectable"}],description:{kind:"markdown",value:"Indicates that the user may select more than one item from the current selectable descendants."}},{name:"aria-orientation",valueSet:"orientation",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-orientation"}],description:{kind:"markdown",value:"Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous."}},{name:"aria-owns",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-owns"}],description:{kind:"markdown",value:"Identifies an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) in order to define a visual, functional, or contextual parent/child [relationship](https://www.w3.org/TR/wai-aria-1.1/#dfn-relationship) between DOM elements where the DOM hierarchy cannot be used to represent the relationship. See related [`aria-controls`](https://www.w3.org/TR/wai-aria-1.1/#aria-controls)."}},{name:"aria-placeholder",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-placeholder"}],description:{kind:"markdown",value:"Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value. A hint could be a sample value or a brief description of the expected format."}},{name:"aria-posinset",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-posinset"}],description:{kind:"markdown",value:"Defines an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element)'s number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. See related [`aria-setsize`](https://www.w3.org/TR/wai-aria-1.1/#aria-setsize)."}},{name:"aria-pressed",valueSet:"tristate",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-pressed"}],description:{kind:"markdown",value:'Indicates the current "pressed" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of toggle buttons. See related [`aria-checked`](https://www.w3.org/TR/wai-aria-1.1/#aria-checked) and [`aria-selected`](https://www.w3.org/TR/wai-aria-1.1/#aria-selected).'}},{name:"aria-readonly",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-readonly"}],description:{kind:"markdown",value:"Indicates that the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is not editable, but is otherwise [operable](https://www.w3.org/TR/wai-aria-1.1/#dfn-operable). See related [`aria-disabled`](https://www.w3.org/TR/wai-aria-1.1/#aria-disabled)."}},{name:"aria-relevant",valueSet:"relevant",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-relevant"}],description:{kind:"markdown",value:"Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified. See related [`aria-atomic`](https://www.w3.org/TR/wai-aria-1.1/#aria-atomic)."}},{name:"aria-required",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-required"}],description:{kind:"markdown",value:"Indicates that user input is required on the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) before a form may be submitted."}},{name:"aria-roledescription",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-roledescription"}],description:{kind:"markdown",value:"Defines a human-readable, author-localized description for the [role](https://www.w3.org/TR/wai-aria-1.1/#dfn-role) of an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element)."}},{name:"aria-rowcount",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-rowcount"}],description:{kind:"markdown",value:"Defines the total number of rows in a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex)."}},{name:"aria-rowindex",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex"}],description:{kind:"markdown",value:"Defines an [element's](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) row index or position with respect to the total number of rows within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowcount`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowcount) and [`aria-rowspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan)."}},{name:"aria-rowspan",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan"}],description:{kind:"markdown",value:"Defines the number of rows spanned by a cell or gridcell within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex) and [`aria-colspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-colspan)."}},{name:"aria-selected",valueSet:"u",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-selected"}],description:{kind:"markdown",value:'Indicates the current "selected" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of various [widgets](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-checked`](https://www.w3.org/TR/wai-aria-1.1/#aria-checked) and [`aria-pressed`](https://www.w3.org/TR/wai-aria-1.1/#aria-pressed).'}},{name:"aria-setsize",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-setsize"}],description:{kind:"markdown",value:"Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. See related [`aria-posinset`](https://www.w3.org/TR/wai-aria-1.1/#aria-posinset)."}},{name:"aria-sort",valueSet:"sort",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-sort"}],description:{kind:"markdown",value:"Indicates if items in a table or grid are sorted in ascending or descending order."}},{name:"aria-valuemax",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuemax"}],description:{kind:"markdown",value:"Defines the maximum allowed value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget)."}},{name:"aria-valuemin",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuemin"}],description:{kind:"markdown",value:"Defines the minimum allowed value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget)."}},{name:"aria-valuenow",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuenow"}],description:{kind:"markdown",value:"Defines the current value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-valuetext`](https://www.w3.org/TR/wai-aria-1.1/#aria-valuetext)."}},{name:"aria-valuetext",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuetext"}],description:{kind:"markdown",value:"Defines the human readable text alternative of [`aria-valuenow`](https://www.w3.org/TR/wai-aria-1.1/#aria-valuenow) for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget)."}},{name:"aria-details",description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that provides a detailed, extended description for the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby)."}},{name:"aria-keyshortcuts",description:{kind:"markdown",value:"Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element."}}],valueSets:[{name:"b",values:[{name:"true"},{name:"false"}]},{name:"u",values:[{name:"true"},{name:"false"},{name:"undefined"}]},{name:"o",values:[{name:"on"},{name:"off"}]},{name:"y",values:[{name:"yes"},{name:"no"}]},{name:"w",values:[{name:"soft"},{name:"hard"}]},{name:"d",values:[{name:"ltr"},{name:"rtl"},{name:"auto"}]},{name:"m",values:[{name:"get",description:{kind:"markdown",value:"Corresponds to the HTTP [GET method](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.3); form data are appended to the `action` attribute URI with a '?' as separator, and the resulting URI is sent to the server. Use this method when the form has no side-effects and contains only ASCII characters."}},{name:"post",description:{kind:"markdown",value:"Corresponds to the HTTP [POST method](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.5); form data are included in the body of the form and sent to the server."}},{name:"dialog",description:{kind:"markdown",value:"Use when the form is inside a [`<dialog>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog) element to close the dialog when submitted."}}]},{name:"fm",values:[{name:"get"},{name:"post"}]},{name:"s",values:[{name:"row"},{name:"col"},{name:"rowgroup"},{name:"colgroup"}]},{name:"t",values:[{name:"hidden"},{name:"text"},{name:"search"},{name:"tel"},{name:"url"},{name:"email"},{name:"password"},{name:"datetime"},{name:"date"},{name:"month"},{name:"week"},{name:"time"},{name:"datetime-local"},{name:"number"},{name:"range"},{name:"color"},{name:"checkbox"},{name:"radio"},{name:"file"},{name:"submit"},{name:"image"},{name:"reset"},{name:"button"}]},{name:"im",values:[{name:"verbatim"},{name:"latin"},{name:"latin-name"},{name:"latin-prose"},{name:"full-width-latin"},{name:"kana"},{name:"kana-name"},{name:"katakana"},{name:"numeric"},{name:"tel"},{name:"email"},{name:"url"}]},{name:"bt",values:[{name:"button"},{name:"submit"},{name:"reset"},{name:"menu"}]},{name:"lt",values:[{name:"1"},{name:"a"},{name:"A"},{name:"i"},{name:"I"}]},{name:"mt",values:[{name:"context"},{name:"toolbar"}]},{name:"mit",values:[{name:"command"},{name:"checkbox"},{name:"radio"}]},{name:"et",values:[{name:"application/x-www-form-urlencoded"},{name:"multipart/form-data"},{name:"text/plain"}]},{name:"tk",values:[{name:"subtitles"},{name:"captions"},{name:"descriptions"},{name:"chapters"},{name:"metadata"}]},{name:"pl",values:[{name:"none"},{name:"metadata"},{name:"auto"}]},{name:"sh",values:[{name:"circle"},{name:"default"},{name:"poly"},{name:"rect"}]},{name:"xo",values:[{name:"anonymous"},{name:"use-credentials"}]},{name:"target",values:[{name:"_self"},{name:"_blank"},{name:"_parent"},{name:"_top"}]},{name:"sb",values:[{name:"allow-forms"},{name:"allow-modals"},{name:"allow-pointer-lock"},{name:"allow-popups"},{name:"allow-popups-to-escape-sandbox"},{name:"allow-same-origin"},{name:"allow-scripts"},{name:"allow-top-navigation"}]},{name:"tristate",values:[{name:"true"},{name:"false"},{name:"mixed"},{name:"undefined"}]},{name:"inputautocomplete",values:[{name:"additional-name"},{name:"address-level1"},{name:"address-level2"},{name:"address-level3"},{name:"address-level4"},{name:"address-line1"},{name:"address-line2"},{name:"address-line3"},{name:"bday"},{name:"bday-year"},{name:"bday-day"},{name:"bday-month"},{name:"billing"},{name:"cc-additional-name"},{name:"cc-csc"},{name:"cc-exp"},{name:"cc-exp-month"},{name:"cc-exp-year"},{name:"cc-family-name"},{name:"cc-given-name"},{name:"cc-name"},{name:"cc-number"},{name:"cc-type"},{name:"country"},{name:"country-name"},{name:"current-password"},{name:"email"},{name:"family-name"},{name:"fax"},{name:"given-name"},{name:"home"},{name:"honorific-prefix"},{name:"honorific-suffix"},{name:"impp"},{name:"language"},{name:"mobile"},{name:"name"},{name:"new-password"},{name:"nickname"},{name:"off"},{name:"on"},{name:"organization"},{name:"organization-title"},{name:"pager"},{name:"photo"},{name:"postal-code"},{name:"sex"},{name:"shipping"},{name:"street-address"},{name:"tel-area-code"},{name:"tel"},{name:"tel-country-code"},{name:"tel-extension"},{name:"tel-local"},{name:"tel-local-prefix"},{name:"tel-local-suffix"},{name:"tel-national"},{name:"transaction-amount"},{name:"transaction-currency"},{name:"url"},{name:"username"},{name:"work"}]},{name:"autocomplete",values:[{name:"inline"},{name:"list"},{name:"both"},{name:"none"}]},{name:"current",values:[{name:"page"},{name:"step"},{name:"location"},{name:"date"},{name:"time"},{name:"true"},{name:"false"}]},{name:"dropeffect",values:[{name:"copy"},{name:"move"},{name:"link"},{name:"execute"},{name:"popup"},{name:"none"}]},{name:"invalid",values:[{name:"grammar"},{name:"false"},{name:"spelling"},{name:"true"}]},{name:"live",values:[{name:"off"},{name:"polite"},{name:"assertive"}]},{name:"orientation",values:[{name:"vertical"},{name:"horizontal"},{name:"undefined"}]},{name:"relevant",values:[{name:"additions"},{name:"removals"},{name:"text"},{name:"all"},{name:"additions text"}]},{name:"sort",values:[{name:"ascending"},{name:"descending"},{name:"none"},{name:"other"}]},{name:"roles",values:[{name:"alert"},{name:"alertdialog"},{name:"button"},{name:"checkbox"},{name:"dialog"},{name:"gridcell"},{name:"link"},{name:"log"},{name:"marquee"},{name:"menuitem"},{name:"menuitemcheckbox"},{name:"menuitemradio"},{name:"option"},{name:"progressbar"},{name:"radio"},{name:"scrollbar"},{name:"searchbox"},{name:"slider"},{name:"spinbutton"},{name:"status"},{name:"switch"},{name:"tab"},{name:"tabpanel"},{name:"textbox"},{name:"timer"},{name:"tooltip"},{name:"treeitem"},{name:"combobox"},{name:"grid"},{name:"listbox"},{name:"menu"},{name:"menubar"},{name:"radiogroup"},{name:"tablist"},{name:"tree"},{name:"treegrid"},{name:"application"},{name:"article"},{name:"cell"},{name:"columnheader"},{name:"definition"},{name:"directory"},{name:"document"},{name:"feed"},{name:"figure"},{name:"group"},{name:"heading"},{name:"img"},{name:"list"},{name:"listitem"},{name:"math"},{name:"none"},{name:"note"},{name:"presentation"},{name:"region"},{name:"row"},{name:"rowgroup"},{name:"rowheader"},{name:"separator"},{name:"table"},{name:"term"},{name:"text"},{name:"toolbar"},{name:"banner"},{name:"complementary"},{name:"contentinfo"},{name:"form"},{name:"main"},{name:"navigation"},{name:"region"},{name:"search"},{name:"doc-abstract"},{name:"doc-acknowledgments"},{name:"doc-afterword"},{name:"doc-appendix"},{name:"doc-backlink"},{name:"doc-biblioentry"},{name:"doc-bibliography"},{name:"doc-biblioref"},{name:"doc-chapter"},{name:"doc-colophon"},{name:"doc-conclusion"},{name:"doc-cover"},{name:"doc-credit"},{name:"doc-credits"},{name:"doc-dedication"},{name:"doc-endnote"},{name:"doc-endnotes"},{name:"doc-epigraph"},{name:"doc-epilogue"},{name:"doc-errata"},{name:"doc-example"},{name:"doc-footnote"},{name:"doc-foreword"},{name:"doc-glossary"},{name:"doc-glossref"},{name:"doc-index"},{name:"doc-introduction"},{name:"doc-noteref"},{name:"doc-notice"},{name:"doc-pagebreak"},{name:"doc-pagelist"},{name:"doc-part"},{name:"doc-preface"},{name:"doc-prologue"},{name:"doc-pullquote"},{name:"doc-qna"},{name:"doc-subtitle"},{name:"doc-tip"},{name:"doc-toc"}]},{name:"metanames",values:[{name:"application-name"},{name:"author"},{name:"description"},{name:"format-detection"},{name:"generator"},{name:"keywords"},{name:"publisher"},{name:"referrer"},{name:"robots"},{name:"theme-color"},{name:"viewport"}]},{name:"haspopup",values:[{name:"false",description:{kind:"markdown",value:"(default) Indicates the element does not have a popup."}},{name:"true",description:{kind:"markdown",value:"Indicates the popup is a menu."}},{name:"menu",description:{kind:"markdown",value:"Indicates the popup is a menu."}},{name:"listbox",description:{kind:"markdown",value:"Indicates the popup is a listbox."}},{name:"tree",description:{kind:"markdown",value:"Indicates the popup is a tree."}},{name:"grid",description:{kind:"markdown",value:"Indicates the popup is a grid."}},{name:"dialog",description:{kind:"markdown",value:"Indicates the popup is a dialog."}}]},{name:"decoding",values:[{name:"sync"},{name:"async"},{name:"auto"}]},{name:"loading",values:[{name:"eager",description:{kind:"markdown",value:"Loads the image immediately, regardless of whether or not the image is currently within the visible viewport (this is the default value)."}},{name:"lazy",description:{kind:"markdown",value:"Defers loading the image until it reaches a calculated distance from the viewport, as defined by the browser. The intent is to avoid the network and storage bandwidth needed to handle the image until it's reasonably certain that it will be needed. This generally improves the performance of the content in most typical use cases."}}]},{name:"referrerpolicy",values:[{name:"no-referrer"},{name:"no-referrer-when-downgrade"},{name:"origin"},{name:"origin-when-cross-origin"},{name:"same-origin"},{name:"strict-origin"},{name:"strict-origin-when-cross-origin"},{name:"unsafe-url"}]}]},_i=class{constructor(e){this.dataProviders=[],this.setDataProviders(!1!==e.useDefaultDataProvider,e.customDataProviders||[])}setDataProviders(e,t){this.dataProviders=[],e&&this.dataProviders.push(new En("html5",pi)),this.dataProviders.push(...t)}getDataProviders(){return this.dataProviders}isVoidElement(e,t){return!!e&&function(e,t,n){let i=0,r=e.length-1;for(;i<=r;){const s=(i+r)/2|0,o=n(e[s],t);if(o<0)i=s+1;else{if(!(o>0))return s;r=s-1}}return-(i+1)}(t,e.toLowerCase(),((e,t)=>e.localeCompare(t)))>=0}getVoidElements(e){const t=Array.isArray(e)?e:this.getDataProviders().filter((t=>t.isApplicable(e))),n=[];return t.forEach((e=>{e.provideTags().filter((e=>e.void)).forEach((e=>n.push(e.name)))})),n.sort()}isPathAttribute(e,t){if("src"===t||"href"===t)return!0;const n=bi[e];return!!n&&("string"===typeof n?n===t:-1!==n.indexOf(t))}},bi={a:"href",area:"href",body:"background",blockquote:"cite",del:"cite",form:"action",frame:["src","longdesc"],img:["src","longdesc"],ins:"cite",link:"href",object:"data",q:"cite",script:"src",audio:"src",button:"formaction",command:"icon",embed:"src",html:"manifest",input:["src","formaction"],source:"src",track:"src",video:["src","poster"]},vi={};function wi(e,t){return new En(e,t)}var ki=class{constructor(e,t){this._ctx=e,this._languageSettings=t.languageSettings,this._languageId=t.languageId;const n=this._languageSettings.data,i=n?.useDefaultDataProvider,r=[];if(n?.dataProviders)for(const s in n.dataProviders)r.push(wi(s,n.dataProviders[s]));this._languageService=function(e=vi){const t=new _i(e),n=new Hn(e,t),i=new zn(e,t),r=new mn(t),s=new mi(r),o=new fi(t),a=new ii(t);return{setDataProviders:t.setDataProviders.bind(t),createScanner:un,parseHTMLDocument:r.parseDocument.bind(r),doComplete:i.doComplete.bind(i),doComplete2:i.doComplete2.bind(i),setCompletionParticipants:i.setCompletionParticipants.bind(i),doHover:n.doHover.bind(n),format:Gn,findDocumentHighlights:ri,findDocumentLinks:a.findDocumentLinks.bind(a),findDocumentSymbols:li,findDocumentSymbols2:hi,getFoldingRanges:o.getFoldingRanges.bind(o),getSelectionRanges:s.getSelectionRanges.bind(s),doQuoteComplete:i.doQuoteComplete.bind(i),doTagComplete:i.doTagComplete.bind(i),doRename:di,findMatchingTagPosition:ui,findOnTypeRenameRanges:gi,findLinkedEditingRanges:gi}}({useDefaultDataProvider:i,customDataProviders:r})}async doComplete(e,t){let n=this._getTextDocument(e);if(!n)return null;let i=this._languageService.parseHTMLDocument(n);return Promise.resolve(this._languageService.doComplete(n,t,i,this._languageSettings&&this._languageSettings.suggest))}async format(e,t,n){let i=this._getTextDocument(e);if(!i)return[];let r={...this._languageSettings.format,...n},s=this._languageService.format(i,t,r);return Promise.resolve(s)}async doHover(e,t){let n=this._getTextDocument(e);if(!n)return null;let i=this._languageService.parseHTMLDocument(n),r=this._languageService.doHover(n,t,i);return Promise.resolve(r)}async findDocumentHighlights(e,t){let n=this._getTextDocument(e);if(!n)return[];let i=this._languageService.parseHTMLDocument(n),r=this._languageService.findDocumentHighlights(n,t,i);return Promise.resolve(r)}async findDocumentLinks(e){let t=this._getTextDocument(e);if(!t)return[];let n=this._languageService.findDocumentLinks(t,null);return Promise.resolve(n)}async findDocumentSymbols(e){let t=this._getTextDocument(e);if(!t)return[];let n=this._languageService.parseHTMLDocument(t),i=this._languageService.findDocumentSymbols(t,n);return Promise.resolve(i)}async getFoldingRanges(e,t){let n=this._getTextDocument(e);if(!n)return[];let i=this._languageService.getFoldingRanges(n,t);return Promise.resolve(i)}async getSelectionRanges(e,t){let n=this._getTextDocument(e);if(!n)return[];let i=this._languageService.getSelectionRanges(n,t);return Promise.resolve(i)}async doRename(e,t,n){let i=this._getTextDocument(e);if(!i)return null;let r=this._languageService.parseHTMLDocument(i),s=this._languageService.doRename(i,t,n,r);return Promise.resolve(s)}_getTextDocument(e){let t=this._ctx.getMirrorModels();for(let n of t)if(n.uri.toString()===e)return Bt.create(e,this._languageId,n.version,n.getValue());return null}};self.onmessage=()=>{s(((e,t)=>new ki(e,t)))}})()})();
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/index.html b/ydb/core/viewer/monitoring/index.html index d2f047a5c4..4c05fda6f1 100644 --- a/ydb/core/viewer/monitoring/index.html +++ b/ydb/core/viewer/monitoring/index.html @@ -1 +1 @@ -<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="./static/favicon.png"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="YDB Monitoring"/><meta name="referrer" content="no-referrer-when-downgrade"/><title>YDB Monitoring</title><script>window.systemSettings={},window.userSettings={},window.web_version=!1,window.custom_backend=!1,window.meta_backend="undefined"</script><script defer="defer" src="./static/js/main.9d6586d0.js"></script><link href="./static/css/main.bc1b7571.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
\ No newline at end of file +<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="./static/favicon.png"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="YDB Monitoring"/><meta name="referrer" content="no-referrer-when-downgrade"/><title>YDB Monitoring</title><script>window.systemSettings={},window.web_version=!1,window.custom_backend=!1,window.meta_backend="undefined",window.react_app_disable_checks="%REACT_APP_DISABLE_CHECKS%"</script><script defer="defer" src="./static/js/main.806ca619.js"></script><link href="./static/css/main.8f03af14.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/json.worker.js b/ydb/core/viewer/monitoring/json.worker.js index 42d921d50f..368506b1ca 100644 --- a/ydb/core/viewer/monitoring/json.worker.js +++ b/ydb/core/viewer/monitoring/json.worker.js @@ -1,2 +1,2 @@ /*! For license information please see json.worker.js.LICENSE.txt */ -(()=>{var e={9861:(e,t,n)=>{"use strict";function r(e,t,n=(e,t)=>e===t){if(e===t)return!0;if(!e||!t)return!1;if(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*i(e,t){let n,r;for(const i of e)void 0!==r&&t(r,i)?n.push(i):(n&&(yield n),n=[i]),r=i;n&&(yield n)}function s(e,t){for(let n=0;n<=e.length;n++)t(0===n?void 0:e[n-1],n===e.length?void 0:e[n])}function o(e,t){for(let n=0;n<e.length;n++)t(0===n?void 0:e[n-1],e[n],n+1===e.length?void 0:e[n+1])}function a(e,t=e=>e){const n=new Set;return e.filter((e=>{const r=t(e);return!n.has(r)&&(n.add(r),!0)}))}function l(e,t){return e.length>0?e[0]:t}function c(e,t,n){const r=e.slice(0,t),i=e.slice(t);return r.concat(n,i)}function h(e,t){for(const n of t)e.push(n)}var u;function d(e,t){return(n,r)=>t(e(n),e(r))}n.d(t,{E4:()=>h,Fy:()=>l,Hw:()=>f,U9:()=>g,VE:()=>d,aI:()=>r,c1:()=>p,dM:()=>a,j3:()=>m,kj:()=>o,n:()=>i,nK:()=>c,pN:()=>s}),function(e){e.isLessThan=function(e){return e<0},e.isLessThanOrEqual=function(e){return e<=0},e.isGreaterThan=function(e){return e>0},e.isNeitherLessOrGreaterThan=function(e){return 0===e},e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0}(u||(u={}));const g=(e,t)=>e-t;function f(e){return(t,n)=>-e(t,n)}class m{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t<this.items.length&&e(this.items[t]);)t++;const n=t===this.firstIdx?null:this.items.slice(this.firstIdx,t);return this.firstIdx=t,n}takeFromEndWhile(e){let t=this.lastIdx;for(;t>=0&&e(this.items[t]);)t--;const n=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,n}peek(){if(0!==this.length)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class p{static{this.empty=new p((e=>{}))}constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate((t=>(e.push(t),!0))),e}filter(e){return new p((t=>this.iterate((n=>!e(n)||t(n)))))}map(e){return new p((t=>this.iterate((n=>t(e(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||u.isGreaterThan(e(r,t)))&&(n=!1,t=r),!0))),t}}},6041:(e,t,n)=>{"use strict";function r(e,t){const n=function(e,t,n=e.length-1){for(let r=n;r>=0;r--){if(t(e[r]))return r}return-1}(e,t);if(-1!==n)return e[n]}function i(e,t){const n=s(e,t);return-1===n?void 0:e[n]}function s(e,t,n=0,r=e.length){let i=n,s=r;for(;i<s;){const n=Math.floor((i+s)/2);t(e[n])?i=n+1:s=n}return i-1}function o(e,t){const n=a(e,t);return n===e.length?void 0:e[n]}function a(e,t,n=0,r=e.length){let i=n,s=r;for(;i<s;){const n=Math.floor((i+s)/2);t(e[n])?s=n:i=n+1}return i}n.d(t,{Uk:()=>r,XP:()=>o,hw:()=>a,iM:()=>s,lx:()=>i,vJ:()=>l});class l{static{this.assertInvariants=!1}constructor(e){this._array=e,this._findLastMonotonousLastIdx=0}findLastMonotonous(e){if(l.assertInvariants){if(this._prevFindLastPredicate)for(const t of this._array)if(this._prevFindLastPredicate(t)&&!e(t))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.");this._prevFindLastPredicate=e}const t=s(this._array,e,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=t+1,-1===t?void 0:this._array[t]}}},6782:(e,t,n)=>{"use strict";n.d(t,{Ft:()=>o,Xo:()=>a,ok:()=>i,xb:()=>s});var r=n(4383);function i(e,t){if(!e)throw new Error(t?`Assertion failed (${t})`:"Assertion Failed")}function s(e,t="Unreachable"){throw new Error(t)}function o(e){e()||(e(),(0,r.dz)(new r.D7("Assertion Failed")))}function a(e,t){let n=0;for(;n<e.length-1;){if(!t(e[n],e[n+1]))return!1;n++}return!0}},1940:(e,t,n)=>{"use strict";n.d(t,{vb:()=>l,uC:()=>c,Qg:()=>a,$6:()=>h});n(8447);var r=n(4383),i=n(1234),s=n(1484),o=n(8067);Symbol("MicrotaskDelay");function a(e){return!!e&&"function"===typeof e.then}class l{constructor(){this.disposable=void 0,this.isDisposed=!1}cancel(){this.disposable?.dispose(),this.disposable=void 0}cancelAndSet(e,t,n=globalThis){if(this.isDisposed)throw new r.D7("Calling 'cancelAndSet' on a disposed IntervalTimer");this.cancel();const i=n.setInterval((()=>{e()}),t);this.disposable=(0,s.s)((()=>{n.clearInterval(i),this.disposable=void 0}))}dispose(){this.cancel(),this.isDisposed=!0}}class c{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return-1!==this.timeoutToken}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner?.()}}let h,u;u="function"!==typeof globalThis.requestIdleCallback||"function"!==typeof globalThis.cancelIdleCallback?(e,t)=>{(0,o._p)((()=>{if(n)return;const e=Date.now()+15,r={didTimeout:!0,timeRemaining:()=>Math.max(0,e-Date.now())};t(Object.freeze(r))}));let n=!1;return{dispose(){n||(n=!0)}}}:(e,t,n)=>{const r=e.requestIdleCallback(t,"number"===typeof n?{timeout:n}:void 0);let i=!1;return{dispose(){i||(i=!0,e.cancelIdleCallback(r))}}},h=e=>u(globalThis,e);var d;!function(e){e.settled=async function(e){let t;const n=await Promise.all(e.map((e=>e.then((e=>e),(e=>{t||(t=e)})))));if("undefined"!==typeof t)throw t;return n},e.withAsyncBody=function(e){return new Promise((async(t,n)=>{try{await e(t,n)}catch(r){n(r)}}))}}(d||(d={}));class g{static fromArray(e){return new g((t=>{t.emitMany(e)}))}static fromPromise(e){return new g((async t=>{t.emitMany(await e)}))}static fromPromises(e){return new g((async t=>{await Promise.all(e.map((async e=>t.emitOne(await e))))}))}static merge(e){return new g((async t=>{await Promise.all(e.map((async e=>{for await(const n of e)t.emitOne(n)})))}))}static{this.EMPTY=g.fromArray([])}constructor(e,t){this._state=0,this._results=[],this._error=null,this._onReturn=t,this._onStateChanged=new i.vl,queueMicrotask((async()=>{const t={emitOne:e=>this.emitOne(e),emitMany:e=>this.emitMany(e),reject:e=>this.reject(e)};try{await Promise.resolve(e(t)),this.resolve()}catch(n){this.reject(n)}finally{t.emitOne=void 0,t.emitMany=void 0,t.reject=void 0}}))}[Symbol.asyncIterator](){let e=0;return{next:async()=>{for(;;){if(2===this._state)throw this._error;if(e<this._results.length)return{done:!1,value:this._results[e++]};if(1===this._state)return{done:!0,value:void 0};await i.Jh.toPromise(this._onStateChanged.event)}},return:async()=>(this._onReturn?.(),{done:!0,value:void 0})}}static map(e,t){return new g((async n=>{for await(const r of e)n.emitOne(t(r))}))}map(e){return g.map(this,e)}static filter(e,t){return new g((async n=>{for await(const r of e)t(r)&&n.emitOne(r)}))}filter(e){return g.filter(this,e)}static coalesce(e){return g.filter(e,(e=>!!e))}coalesce(){return g.coalesce(this)}static async toPromise(e){const t=[];for await(const n of e)t.push(n);return t}toPromise(){return g.toPromise(this)}emitOne(e){0===this._state&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){0===this._state&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){0===this._state&&(this._state=1,this._onStateChanged.fire())}reject(e){0===this._state&&(this._state=2,this._error=e,this._onStateChanged.fire())}}},1674:(e,t,n)=>{"use strict";n.d(t,{$l:()=>a,Gs:()=>d,MB:()=>o,Sw:()=>h,bb:()=>c,gN:()=>l,pJ:()=>u});var r=n(1090);const i="undefined"!==typeof Buffer;new r.d((()=>new Uint8Array(256)));let s;class o{static wrap(e){return i&&!Buffer.isBuffer(e)&&(e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),new o(e)}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}toString(){return i?this.buffer.toString():(s||(s=new TextDecoder),s.decode(this.buffer))}}function a(e,t){return(e[t+0]|0)>>>0|e[t+1]<<8>>>0}function l(e,t,n){e[n+0]=255&t,t>>>=8,e[n+1]=255&t}function c(e,t){return e[t]*2**24+65536*e[t+1]+256*e[t+2]+e[t+3]}function h(e,t,n){e[n+3]=t,t>>>=8,e[n+2]=t,t>>>=8,e[n+1]=t,t>>>=8,e[n]=t}function u(e,t){return e[t]}function d(e,t,n){e[n]=t}},1788:(e,t,n)=>{"use strict";function r(e){return e}n.d(t,{VV:()=>s,o5:()=>i});class i{constructor(e,t){this.lastCache=void 0,this.lastArgKey=void 0,"function"===typeof e?(this._fn=e,this._computeKey=r):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this._fn(e)),this.lastCache}}class s{get cachedValues(){return this._map}constructor(e,t){this._map=new Map,this._map2=new Map,"function"===typeof e?(this._fn=e,this._computeKey=r):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);if(this._map2.has(t))return this._map2.get(t);const n=this._fn(e);return this._map.set(e,n),this._map2.set(t,n),n}}},8447:(e,t,n)=>{"use strict";n.d(t,{Qi:()=>a});var r=n(1234);const i=Object.freeze((function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}}));var s;!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||(t instanceof o||!(!t||"object"!==typeof t)&&("boolean"===typeof t.isCancellationRequested&&"function"===typeof t.onCancellationRequested))},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:r.Jh.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:i})}(s||(s={}));class o{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?i:(this._emitter||(this._emitter=new r.vl),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class a{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new o),this._token}cancel(){this._token?this._token instanceof o&&this._token.cancel():this._token=s.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof o&&this._token.dispose():this._token=s.None}}},9493:(e,t,n)=>{"use strict";n.d(t,{W:()=>o});var r=n(631);const i=Object.create(null);function s(e,t){if((0,r.Kg)(t)){const n=i[t];if(void 0===n)throw new Error(`${e} references an unknown codicon: ${t}`);t=n}return i[e]=t,{id:e}}const o={...{add:s("add",6e4),plus:s("plus",6e4),gistNew:s("gist-new",6e4),repoCreate:s("repo-create",6e4),lightbulb:s("lightbulb",60001),lightBulb:s("light-bulb",60001),repo:s("repo",60002),repoDelete:s("repo-delete",60002),gistFork:s("gist-fork",60003),repoForked:s("repo-forked",60003),gitPullRequest:s("git-pull-request",60004),gitPullRequestAbandoned:s("git-pull-request-abandoned",60004),recordKeys:s("record-keys",60005),keyboard:s("keyboard",60005),tag:s("tag",60006),gitPullRequestLabel:s("git-pull-request-label",60006),tagAdd:s("tag-add",60006),tagRemove:s("tag-remove",60006),person:s("person",60007),personFollow:s("person-follow",60007),personOutline:s("person-outline",60007),personFilled:s("person-filled",60007),gitBranch:s("git-branch",60008),gitBranchCreate:s("git-branch-create",60008),gitBranchDelete:s("git-branch-delete",60008),sourceControl:s("source-control",60008),mirror:s("mirror",60009),mirrorPublic:s("mirror-public",60009),star:s("star",60010),starAdd:s("star-add",60010),starDelete:s("star-delete",60010),starEmpty:s("star-empty",60010),comment:s("comment",60011),commentAdd:s("comment-add",60011),alert:s("alert",60012),warning:s("warning",60012),search:s("search",60013),searchSave:s("search-save",60013),logOut:s("log-out",60014),signOut:s("sign-out",60014),logIn:s("log-in",60015),signIn:s("sign-in",60015),eye:s("eye",60016),eyeUnwatch:s("eye-unwatch",60016),eyeWatch:s("eye-watch",60016),circleFilled:s("circle-filled",60017),primitiveDot:s("primitive-dot",60017),closeDirty:s("close-dirty",60017),debugBreakpoint:s("debug-breakpoint",60017),debugBreakpointDisabled:s("debug-breakpoint-disabled",60017),debugHint:s("debug-hint",60017),terminalDecorationSuccess:s("terminal-decoration-success",60017),primitiveSquare:s("primitive-square",60018),edit:s("edit",60019),pencil:s("pencil",60019),info:s("info",60020),issueOpened:s("issue-opened",60020),gistPrivate:s("gist-private",60021),gitForkPrivate:s("git-fork-private",60021),lock:s("lock",60021),mirrorPrivate:s("mirror-private",60021),close:s("close",60022),removeClose:s("remove-close",60022),x:s("x",60022),repoSync:s("repo-sync",60023),sync:s("sync",60023),clone:s("clone",60024),desktopDownload:s("desktop-download",60024),beaker:s("beaker",60025),microscope:s("microscope",60025),vm:s("vm",60026),deviceDesktop:s("device-desktop",60026),file:s("file",60027),fileText:s("file-text",60027),more:s("more",60028),ellipsis:s("ellipsis",60028),kebabHorizontal:s("kebab-horizontal",60028),mailReply:s("mail-reply",60029),reply:s("reply",60029),organization:s("organization",60030),organizationFilled:s("organization-filled",60030),organizationOutline:s("organization-outline",60030),newFile:s("new-file",60031),fileAdd:s("file-add",60031),newFolder:s("new-folder",60032),fileDirectoryCreate:s("file-directory-create",60032),trash:s("trash",60033),trashcan:s("trashcan",60033),history:s("history",60034),clock:s("clock",60034),folder:s("folder",60035),fileDirectory:s("file-directory",60035),symbolFolder:s("symbol-folder",60035),logoGithub:s("logo-github",60036),markGithub:s("mark-github",60036),github:s("github",60036),terminal:s("terminal",60037),console:s("console",60037),repl:s("repl",60037),zap:s("zap",60038),symbolEvent:s("symbol-event",60038),error:s("error",60039),stop:s("stop",60039),variable:s("variable",60040),symbolVariable:s("symbol-variable",60040),array:s("array",60042),symbolArray:s("symbol-array",60042),symbolModule:s("symbol-module",60043),symbolPackage:s("symbol-package",60043),symbolNamespace:s("symbol-namespace",60043),symbolObject:s("symbol-object",60043),symbolMethod:s("symbol-method",60044),symbolFunction:s("symbol-function",60044),symbolConstructor:s("symbol-constructor",60044),symbolBoolean:s("symbol-boolean",60047),symbolNull:s("symbol-null",60047),symbolNumeric:s("symbol-numeric",60048),symbolNumber:s("symbol-number",60048),symbolStructure:s("symbol-structure",60049),symbolStruct:s("symbol-struct",60049),symbolParameter:s("symbol-parameter",60050),symbolTypeParameter:s("symbol-type-parameter",60050),symbolKey:s("symbol-key",60051),symbolText:s("symbol-text",60051),symbolReference:s("symbol-reference",60052),goToFile:s("go-to-file",60052),symbolEnum:s("symbol-enum",60053),symbolValue:s("symbol-value",60053),symbolRuler:s("symbol-ruler",60054),symbolUnit:s("symbol-unit",60054),activateBreakpoints:s("activate-breakpoints",60055),archive:s("archive",60056),arrowBoth:s("arrow-both",60057),arrowDown:s("arrow-down",60058),arrowLeft:s("arrow-left",60059),arrowRight:s("arrow-right",60060),arrowSmallDown:s("arrow-small-down",60061),arrowSmallLeft:s("arrow-small-left",60062),arrowSmallRight:s("arrow-small-right",60063),arrowSmallUp:s("arrow-small-up",60064),arrowUp:s("arrow-up",60065),bell:s("bell",60066),bold:s("bold",60067),book:s("book",60068),bookmark:s("bookmark",60069),debugBreakpointConditionalUnverified:s("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:s("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:s("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:s("debug-breakpoint-data-unverified",60072),debugBreakpointData:s("debug-breakpoint-data",60073),debugBreakpointDataDisabled:s("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:s("debug-breakpoint-log-unverified",60074),debugBreakpointLog:s("debug-breakpoint-log",60075),debugBreakpointLogDisabled:s("debug-breakpoint-log-disabled",60075),briefcase:s("briefcase",60076),broadcast:s("broadcast",60077),browser:s("browser",60078),bug:s("bug",60079),calendar:s("calendar",60080),caseSensitive:s("case-sensitive",60081),check:s("check",60082),checklist:s("checklist",60083),chevronDown:s("chevron-down",60084),chevronLeft:s("chevron-left",60085),chevronRight:s("chevron-right",60086),chevronUp:s("chevron-up",60087),chromeClose:s("chrome-close",60088),chromeMaximize:s("chrome-maximize",60089),chromeMinimize:s("chrome-minimize",60090),chromeRestore:s("chrome-restore",60091),circleOutline:s("circle-outline",60092),circle:s("circle",60092),debugBreakpointUnverified:s("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:s("terminal-decoration-incomplete",60092),circleSlash:s("circle-slash",60093),circuitBoard:s("circuit-board",60094),clearAll:s("clear-all",60095),clippy:s("clippy",60096),closeAll:s("close-all",60097),cloudDownload:s("cloud-download",60098),cloudUpload:s("cloud-upload",60099),code:s("code",60100),collapseAll:s("collapse-all",60101),colorMode:s("color-mode",60102),commentDiscussion:s("comment-discussion",60103),creditCard:s("credit-card",60105),dash:s("dash",60108),dashboard:s("dashboard",60109),database:s("database",60110),debugContinue:s("debug-continue",60111),debugDisconnect:s("debug-disconnect",60112),debugPause:s("debug-pause",60113),debugRestart:s("debug-restart",60114),debugStart:s("debug-start",60115),debugStepInto:s("debug-step-into",60116),debugStepOut:s("debug-step-out",60117),debugStepOver:s("debug-step-over",60118),debugStop:s("debug-stop",60119),debug:s("debug",60120),deviceCameraVideo:s("device-camera-video",60121),deviceCamera:s("device-camera",60122),deviceMobile:s("device-mobile",60123),diffAdded:s("diff-added",60124),diffIgnored:s("diff-ignored",60125),diffModified:s("diff-modified",60126),diffRemoved:s("diff-removed",60127),diffRenamed:s("diff-renamed",60128),diff:s("diff",60129),diffSidebyside:s("diff-sidebyside",60129),discard:s("discard",60130),editorLayout:s("editor-layout",60131),emptyWindow:s("empty-window",60132),exclude:s("exclude",60133),extensions:s("extensions",60134),eyeClosed:s("eye-closed",60135),fileBinary:s("file-binary",60136),fileCode:s("file-code",60137),fileMedia:s("file-media",60138),filePdf:s("file-pdf",60139),fileSubmodule:s("file-submodule",60140),fileSymlinkDirectory:s("file-symlink-directory",60141),fileSymlinkFile:s("file-symlink-file",60142),fileZip:s("file-zip",60143),files:s("files",60144),filter:s("filter",60145),flame:s("flame",60146),foldDown:s("fold-down",60147),foldUp:s("fold-up",60148),fold:s("fold",60149),folderActive:s("folder-active",60150),folderOpened:s("folder-opened",60151),gear:s("gear",60152),gift:s("gift",60153),gistSecret:s("gist-secret",60154),gist:s("gist",60155),gitCommit:s("git-commit",60156),gitCompare:s("git-compare",60157),compareChanges:s("compare-changes",60157),gitMerge:s("git-merge",60158),githubAction:s("github-action",60159),githubAlt:s("github-alt",60160),globe:s("globe",60161),grabber:s("grabber",60162),graph:s("graph",60163),gripper:s("gripper",60164),heart:s("heart",60165),home:s("home",60166),horizontalRule:s("horizontal-rule",60167),hubot:s("hubot",60168),inbox:s("inbox",60169),issueReopened:s("issue-reopened",60171),issues:s("issues",60172),italic:s("italic",60173),jersey:s("jersey",60174),json:s("json",60175),kebabVertical:s("kebab-vertical",60176),key:s("key",60177),law:s("law",60178),lightbulbAutofix:s("lightbulb-autofix",60179),linkExternal:s("link-external",60180),link:s("link",60181),listOrdered:s("list-ordered",60182),listUnordered:s("list-unordered",60183),liveShare:s("live-share",60184),loading:s("loading",60185),location:s("location",60186),mailRead:s("mail-read",60187),mail:s("mail",60188),markdown:s("markdown",60189),megaphone:s("megaphone",60190),mention:s("mention",60191),milestone:s("milestone",60192),gitPullRequestMilestone:s("git-pull-request-milestone",60192),mortarBoard:s("mortar-board",60193),move:s("move",60194),multipleWindows:s("multiple-windows",60195),mute:s("mute",60196),noNewline:s("no-newline",60197),note:s("note",60198),octoface:s("octoface",60199),openPreview:s("open-preview",60200),package:s("package",60201),paintcan:s("paintcan",60202),pin:s("pin",60203),play:s("play",60204),run:s("run",60204),plug:s("plug",60205),preserveCase:s("preserve-case",60206),preview:s("preview",60207),project:s("project",60208),pulse:s("pulse",60209),question:s("question",60210),quote:s("quote",60211),radioTower:s("radio-tower",60212),reactions:s("reactions",60213),references:s("references",60214),refresh:s("refresh",60215),regex:s("regex",60216),remoteExplorer:s("remote-explorer",60217),remote:s("remote",60218),remove:s("remove",60219),replaceAll:s("replace-all",60220),replace:s("replace",60221),repoClone:s("repo-clone",60222),repoForcePush:s("repo-force-push",60223),repoPull:s("repo-pull",60224),repoPush:s("repo-push",60225),report:s("report",60226),requestChanges:s("request-changes",60227),rocket:s("rocket",60228),rootFolderOpened:s("root-folder-opened",60229),rootFolder:s("root-folder",60230),rss:s("rss",60231),ruby:s("ruby",60232),saveAll:s("save-all",60233),saveAs:s("save-as",60234),save:s("save",60235),screenFull:s("screen-full",60236),screenNormal:s("screen-normal",60237),searchStop:s("search-stop",60238),server:s("server",60240),settingsGear:s("settings-gear",60241),settings:s("settings",60242),shield:s("shield",60243),smiley:s("smiley",60244),sortPrecedence:s("sort-precedence",60245),splitHorizontal:s("split-horizontal",60246),splitVertical:s("split-vertical",60247),squirrel:s("squirrel",60248),starFull:s("star-full",60249),starHalf:s("star-half",60250),symbolClass:s("symbol-class",60251),symbolColor:s("symbol-color",60252),symbolConstant:s("symbol-constant",60253),symbolEnumMember:s("symbol-enum-member",60254),symbolField:s("symbol-field",60255),symbolFile:s("symbol-file",60256),symbolInterface:s("symbol-interface",60257),symbolKeyword:s("symbol-keyword",60258),symbolMisc:s("symbol-misc",60259),symbolOperator:s("symbol-operator",60260),symbolProperty:s("symbol-property",60261),wrench:s("wrench",60261),wrenchSubaction:s("wrench-subaction",60261),symbolSnippet:s("symbol-snippet",60262),tasklist:s("tasklist",60263),telescope:s("telescope",60264),textSize:s("text-size",60265),threeBars:s("three-bars",60266),thumbsdown:s("thumbsdown",60267),thumbsup:s("thumbsup",60268),tools:s("tools",60269),triangleDown:s("triangle-down",60270),triangleLeft:s("triangle-left",60271),triangleRight:s("triangle-right",60272),triangleUp:s("triangle-up",60273),twitter:s("twitter",60274),unfold:s("unfold",60275),unlock:s("unlock",60276),unmute:s("unmute",60277),unverified:s("unverified",60278),verified:s("verified",60279),versions:s("versions",60280),vmActive:s("vm-active",60281),vmOutline:s("vm-outline",60282),vmRunning:s("vm-running",60283),watch:s("watch",60284),whitespace:s("whitespace",60285),wholeWord:s("whole-word",60286),window:s("window",60287),wordWrap:s("word-wrap",60288),zoomIn:s("zoom-in",60289),zoomOut:s("zoom-out",60290),listFilter:s("list-filter",60291),listFlat:s("list-flat",60292),listSelection:s("list-selection",60293),selection:s("selection",60293),listTree:s("list-tree",60294),debugBreakpointFunctionUnverified:s("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:s("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:s("debug-breakpoint-function-disabled",60296),debugStackframeActive:s("debug-stackframe-active",60297),circleSmallFilled:s("circle-small-filled",60298),debugStackframeDot:s("debug-stackframe-dot",60298),terminalDecorationMark:s("terminal-decoration-mark",60298),debugStackframe:s("debug-stackframe",60299),debugStackframeFocused:s("debug-stackframe-focused",60299),debugBreakpointUnsupported:s("debug-breakpoint-unsupported",60300),symbolString:s("symbol-string",60301),debugReverseContinue:s("debug-reverse-continue",60302),debugStepBack:s("debug-step-back",60303),debugRestartFrame:s("debug-restart-frame",60304),debugAlt:s("debug-alt",60305),callIncoming:s("call-incoming",60306),callOutgoing:s("call-outgoing",60307),menu:s("menu",60308),expandAll:s("expand-all",60309),feedback:s("feedback",60310),gitPullRequestReviewer:s("git-pull-request-reviewer",60310),groupByRefType:s("group-by-ref-type",60311),ungroupByRefType:s("ungroup-by-ref-type",60312),account:s("account",60313),gitPullRequestAssignee:s("git-pull-request-assignee",60313),bellDot:s("bell-dot",60314),debugConsole:s("debug-console",60315),library:s("library",60316),output:s("output",60317),runAll:s("run-all",60318),syncIgnored:s("sync-ignored",60319),pinned:s("pinned",60320),githubInverted:s("github-inverted",60321),serverProcess:s("server-process",60322),serverEnvironment:s("server-environment",60323),pass:s("pass",60324),issueClosed:s("issue-closed",60324),stopCircle:s("stop-circle",60325),playCircle:s("play-circle",60326),record:s("record",60327),debugAltSmall:s("debug-alt-small",60328),vmConnect:s("vm-connect",60329),cloud:s("cloud",60330),merge:s("merge",60331),export:s("export",60332),graphLeft:s("graph-left",60333),magnet:s("magnet",60334),notebook:s("notebook",60335),redo:s("redo",60336),checkAll:s("check-all",60337),pinnedDirty:s("pinned-dirty",60338),passFilled:s("pass-filled",60339),circleLargeFilled:s("circle-large-filled",60340),circleLarge:s("circle-large",60341),circleLargeOutline:s("circle-large-outline",60341),combine:s("combine",60342),gather:s("gather",60342),table:s("table",60343),variableGroup:s("variable-group",60344),typeHierarchy:s("type-hierarchy",60345),typeHierarchySub:s("type-hierarchy-sub",60346),typeHierarchySuper:s("type-hierarchy-super",60347),gitPullRequestCreate:s("git-pull-request-create",60348),runAbove:s("run-above",60349),runBelow:s("run-below",60350),notebookTemplate:s("notebook-template",60351),debugRerun:s("debug-rerun",60352),workspaceTrusted:s("workspace-trusted",60353),workspaceUntrusted:s("workspace-untrusted",60354),workspaceUnknown:s("workspace-unknown",60355),terminalCmd:s("terminal-cmd",60356),terminalDebian:s("terminal-debian",60357),terminalLinux:s("terminal-linux",60358),terminalPowershell:s("terminal-powershell",60359),terminalTmux:s("terminal-tmux",60360),terminalUbuntu:s("terminal-ubuntu",60361),terminalBash:s("terminal-bash",60362),arrowSwap:s("arrow-swap",60363),copy:s("copy",60364),personAdd:s("person-add",60365),filterFilled:s("filter-filled",60366),wand:s("wand",60367),debugLineByLine:s("debug-line-by-line",60368),inspect:s("inspect",60369),layers:s("layers",60370),layersDot:s("layers-dot",60371),layersActive:s("layers-active",60372),compass:s("compass",60373),compassDot:s("compass-dot",60374),compassActive:s("compass-active",60375),azure:s("azure",60376),issueDraft:s("issue-draft",60377),gitPullRequestClosed:s("git-pull-request-closed",60378),gitPullRequestDraft:s("git-pull-request-draft",60379),debugAll:s("debug-all",60380),debugCoverage:s("debug-coverage",60381),runErrors:s("run-errors",60382),folderLibrary:s("folder-library",60383),debugContinueSmall:s("debug-continue-small",60384),beakerStop:s("beaker-stop",60385),graphLine:s("graph-line",60386),graphScatter:s("graph-scatter",60387),pieChart:s("pie-chart",60388),bracket:s("bracket",60175),bracketDot:s("bracket-dot",60389),bracketError:s("bracket-error",60390),lockSmall:s("lock-small",60391),azureDevops:s("azure-devops",60392),verifiedFilled:s("verified-filled",60393),newline:s("newline",60394),layout:s("layout",60395),layoutActivitybarLeft:s("layout-activitybar-left",60396),layoutActivitybarRight:s("layout-activitybar-right",60397),layoutPanelLeft:s("layout-panel-left",60398),layoutPanelCenter:s("layout-panel-center",60399),layoutPanelJustify:s("layout-panel-justify",60400),layoutPanelRight:s("layout-panel-right",60401),layoutPanel:s("layout-panel",60402),layoutSidebarLeft:s("layout-sidebar-left",60403),layoutSidebarRight:s("layout-sidebar-right",60404),layoutStatusbar:s("layout-statusbar",60405),layoutMenubar:s("layout-menubar",60406),layoutCentered:s("layout-centered",60407),target:s("target",60408),indent:s("indent",60409),recordSmall:s("record-small",60410),errorSmall:s("error-small",60411),terminalDecorationError:s("terminal-decoration-error",60411),arrowCircleDown:s("arrow-circle-down",60412),arrowCircleLeft:s("arrow-circle-left",60413),arrowCircleRight:s("arrow-circle-right",60414),arrowCircleUp:s("arrow-circle-up",60415),layoutSidebarRightOff:s("layout-sidebar-right-off",60416),layoutPanelOff:s("layout-panel-off",60417),layoutSidebarLeftOff:s("layout-sidebar-left-off",60418),blank:s("blank",60419),heartFilled:s("heart-filled",60420),map:s("map",60421),mapHorizontal:s("map-horizontal",60421),foldHorizontal:s("fold-horizontal",60421),mapFilled:s("map-filled",60422),mapHorizontalFilled:s("map-horizontal-filled",60422),foldHorizontalFilled:s("fold-horizontal-filled",60422),circleSmall:s("circle-small",60423),bellSlash:s("bell-slash",60424),bellSlashDot:s("bell-slash-dot",60425),commentUnresolved:s("comment-unresolved",60426),gitPullRequestGoToChanges:s("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:s("git-pull-request-new-changes",60428),searchFuzzy:s("search-fuzzy",60429),commentDraft:s("comment-draft",60430),send:s("send",60431),sparkle:s("sparkle",60432),insert:s("insert",60433),mic:s("mic",60434),thumbsdownFilled:s("thumbsdown-filled",60435),thumbsupFilled:s("thumbsup-filled",60436),coffee:s("coffee",60437),snake:s("snake",60438),game:s("game",60439),vr:s("vr",60440),chip:s("chip",60441),piano:s("piano",60442),music:s("music",60443),micFilled:s("mic-filled",60444),repoFetch:s("repo-fetch",60445),copilot:s("copilot",60446),lightbulbSparkle:s("lightbulb-sparkle",60447),robot:s("robot",60448),sparkleFilled:s("sparkle-filled",60449),diffSingle:s("diff-single",60450),diffMultiple:s("diff-multiple",60451),surroundWith:s("surround-with",60452),share:s("share",60453),gitStash:s("git-stash",60454),gitStashApply:s("git-stash-apply",60455),gitStashPop:s("git-stash-pop",60456),vscode:s("vscode",60457),vscodeInsiders:s("vscode-insiders",60458),codeOss:s("code-oss",60459),runCoverage:s("run-coverage",60460),runAllCoverage:s("run-all-coverage",60461),coverage:s("coverage",60462),githubProject:s("github-project",60463),mapVertical:s("map-vertical",60464),foldVertical:s("fold-vertical",60464),mapVerticalFilled:s("map-vertical-filled",60465),foldVerticalFilled:s("fold-vertical-filled",60465),goToSearch:s("go-to-search",60466),percentage:s("percentage",60467),sortPercentage:s("sort-percentage",60467),attach:s("attach",60468)},...{dialogError:s("dialog-error","error"),dialogWarning:s("dialog-warning","warning"),dialogInfo:s("dialog-info","info"),dialogClose:s("dialog-close","close"),treeItemExpanded:s("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:s("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:s("tree-filter-on-type-off","list-selection"),treeFilterClear:s("tree-filter-clear","close"),treeItemLoading:s("tree-item-loading","loading"),menuSelection:s("menu-selection","check"),menuSubmenu:s("menu-submenu","chevron-right"),menuBarMore:s("menubar-more","more"),scrollbarButtonLeft:s("scrollbar-button-left","triangle-left"),scrollbarButtonRight:s("scrollbar-button-right","triangle-right"),scrollbarButtonUp:s("scrollbar-button-up","triangle-up"),scrollbarButtonDown:s("scrollbar-button-down","triangle-down"),toolBarMore:s("toolbar-more","more"),quickInputBack:s("quick-input-back","arrow-left"),dropDownButton:s("drop-down-button",60084),symbolCustomColor:s("symbol-customcolor",60252),exportIcon:s("export",60332),workspaceUnspecified:s("workspace-unspecified",60355),newLine:s("newline",60394),thumbsDownFilled:s("thumbsdown-filled",60435),thumbsUpFilled:s("thumbsup-filled",60436),gitFetch:s("git-fetch",60445),lightbulbSparkleAutofix:s("lightbulb-sparkle-autofix",60447),debugBreakpointPending:s("debug-breakpoint-pending",60377)}}},7661:(e,t,n)=>{"use strict";function r(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}n.d(t,{Q1:()=>a,bU:()=>i,hB:()=>s});class i{constructor(e,t,n,i=1){this._rgbaBrand=void 0,this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,t)),this.b=0|Math.min(255,Math.max(0,n)),this.a=r(Math.max(Math.min(1,i),0),3)}static equals(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}}class s{constructor(e,t,n,i){this._hslaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=r(Math.max(Math.min(1,t),0),3),this.l=r(Math.max(Math.min(1,n),0),3),this.a=r(Math.max(Math.min(1,i),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(e){const t=e.r/255,n=e.g/255,r=e.b/255,i=e.a,o=Math.max(t,n,r),a=Math.min(t,n,r);let l=0,c=0;const h=(a+o)/2,u=o-a;if(u>0){switch(c=Math.min(h<=.5?u/(2*h):u/(2-2*h),1),o){case t:l=(n-r)/u+(n<r?6:0);break;case n:l=(r-t)/u+2;break;case r:l=(t-n)/u+4}l*=60,l=Math.round(l)}return new s(l,c,h,i)}static _hue2rgb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}static toRGBA(e){const t=e.h/360,{s:n,l:r,a:o}=e;let a,l,c;if(0===n)a=l=c=r;else{const e=r<.5?r*(1+n):r+n-r*n,i=2*r-e;a=s._hue2rgb(i,e,t+1/3),l=s._hue2rgb(i,e,t),c=s._hue2rgb(i,e,t-1/3)}return new i(Math.round(255*a),Math.round(255*l),Math.round(255*c),o)}}class o{constructor(e,t,n,i){this._hsvaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=r(Math.max(Math.min(1,t),0),3),this.v=r(Math.max(Math.min(1,n),0),3),this.a=r(Math.max(Math.min(1,i),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(e){const t=e.r/255,n=e.g/255,r=e.b/255,i=Math.max(t,n,r),s=i-Math.min(t,n,r),a=0===i?0:s/i;let l;return l=0===s?0:i===t?((n-r)/s%6+6)%6:i===n?(r-t)/s+2:(t-n)/s+4,new o(Math.round(60*l),a,i,e.a)}static toRGBA(e){const{h:t,s:n,v:r,a:s}=e,o=r*n,a=o*(1-Math.abs(t/60%2-1)),l=r-o;let[c,h,u]=[0,0,0];return t<60?(c=o,h=a):t<120?(c=a,h=o):t<180?(h=o,u=a):t<240?(h=a,u=o):t<300?(c=a,u=o):t<=360&&(c=o,u=a),c=Math.round(255*(c+l)),h=Math.round(255*(h+l)),u=Math.round(255*(u+l)),new i(c,h,u,s)}}class a{static fromHex(e){return a.Format.CSS.parseHex(e)||a.red}static equals(e,t){return!e&&!t||!(!e||!t)&&e.equals(t)}get hsla(){return this._hsla?this._hsla:s.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:o.fromRGBA(this.rgba)}constructor(e){if(!e)throw new Error("Color needs a value");if(e instanceof i)this.rgba=e;else if(e instanceof s)this._hsla=e,this.rgba=s.toRGBA(e);else{if(!(e instanceof o))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=o.toRGBA(e)}}equals(e){return!!e&&i.equals(this.rgba,e.rgba)&&s.equals(this.hsla,e.hsla)&&o.equals(this.hsva,e.hsva)}getRelativeLuminance(){return r(.2126*a._relativeLuminanceForComponent(this.rgba.r)+.7152*a._relativeLuminanceForComponent(this.rgba.g)+.0722*a._relativeLuminanceForComponent(this.rgba.b),4)}static _relativeLuminanceForComponent(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}isLighter(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128}isLighterThan(e){return this.getRelativeLuminance()>e.getRelativeLuminance()}isDarkerThan(e){return this.getRelativeLuminance()<e.getRelativeLuminance()}lighten(e){return new a(new s(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*e,this.hsla.a))}darken(e){return new a(new s(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*e,this.hsla.a))}transparent(e){const{r:t,g:n,b:r,a:s}=this.rgba;return new a(new i(t,n,r,s*e))}isTransparent(){return 0===this.rgba.a}isOpaque(){return 1===this.rgba.a}opposite(){return new a(new i(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(e){if(this.isOpaque()||1!==e.rgba.a)return this;const{r:t,g:n,b:r,a:s}=this.rgba;return new a(new i(e.rgba.r-s*(e.rgba.r-t),e.rgba.g-s*(e.rgba.g-n),e.rgba.b-s*(e.rgba.b-r),1))}toString(){return this._toString||(this._toString=a.Format.CSS.format(this)),this._toString}static getLighterColor(e,t,n){if(e.isLighterThan(t))return e;n=n||.5;const 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=n||.5;const r=e.getRelativeLuminance();return n=n*(r-t.getRelativeLuminance())/r,e.darken(n)}static{this.white=new a(new i(255,255,255,1))}static{this.black=new a(new i(0,0,0,1))}static{this.red=new a(new i(255,0,0,1))}static{this.blue=new a(new i(0,0,255,1))}static{this.green=new a(new i(0,255,0,1))}static{this.cyan=new a(new i(0,255,255,1))}static{this.lightgrey=new a(new i(211,211,211,1))}static{this.transparent=new a(new i(0,0,0,0))}}!function(e){let t;!function(t){let n;!function(t){function n(e){const t=e.toString(16);return 2!==t.length?"0"+t:t}function r(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:case 65:return 10;case 98:case 66:return 11;case 99:case 67:return 12;case 100:case 68:return 13;case 101:case 69:return 14;case 102:case 70:return 15}return 0}t.formatRGB=function(t){return 1===t.rgba.a?`rgb(${t.rgba.r}, ${t.rgba.g}, ${t.rgba.b})`:e.Format.CSS.formatRGBA(t)},t.formatRGBA=function(e){return`rgba(${e.rgba.r}, ${e.rgba.g}, ${e.rgba.b}, ${+e.rgba.a.toFixed(2)})`},t.formatHSL=function(t){return 1===t.hsla.a?`hsl(${t.hsla.h}, ${(100*t.hsla.s).toFixed(2)}%, ${(100*t.hsla.l).toFixed(2)}%)`:e.Format.CSS.formatHSLA(t)},t.formatHSLA=function(e){return`hsla(${e.hsla.h}, ${(100*e.hsla.s).toFixed(2)}%, ${(100*e.hsla.l).toFixed(2)}%, ${e.hsla.a.toFixed(2)})`},t.formatHex=function(e){return`#${n(e.rgba.r)}${n(e.rgba.g)}${n(e.rgba.b)}`},t.formatHexA=function(t,r=!1){return r&&1===t.rgba.a?e.Format.CSS.formatHex(t):`#${n(t.rgba.r)}${n(t.rgba.g)}${n(t.rgba.b)}${n(Math.round(255*t.rgba.a))}`},t.format=function(t){return t.isOpaque()?e.Format.CSS.formatHex(t):e.Format.CSS.formatRGBA(t)},t.parseHex=function(t){const n=t.length;if(0===n)return null;if(35!==t.charCodeAt(0))return null;if(7===n){const n=16*r(t.charCodeAt(1))+r(t.charCodeAt(2)),s=16*r(t.charCodeAt(3))+r(t.charCodeAt(4)),o=16*r(t.charCodeAt(5))+r(t.charCodeAt(6));return new e(new i(n,s,o,1))}if(9===n){const n=16*r(t.charCodeAt(1))+r(t.charCodeAt(2)),s=16*r(t.charCodeAt(3))+r(t.charCodeAt(4)),o=16*r(t.charCodeAt(5))+r(t.charCodeAt(6)),a=16*r(t.charCodeAt(7))+r(t.charCodeAt(8));return new e(new i(n,s,o,a/255))}if(4===n){const n=r(t.charCodeAt(1)),s=r(t.charCodeAt(2)),o=r(t.charCodeAt(3));return new e(new i(16*n+n,16*s+s,16*o+o))}if(5===n){const n=r(t.charCodeAt(1)),s=r(t.charCodeAt(2)),o=r(t.charCodeAt(3)),a=r(t.charCodeAt(4));return new e(new i(16*n+n,16*s+s,16*o+o,(16*a+a)/255))}return null}}(n=t.CSS||(t.CSS={}))}(t=e.Format||(e.Format={}))}(a||(a={}))},4383:(e,t,n)=>{"use strict";n.d(t,{D7:()=>g,EM:()=>u,Qg:()=>c,cU:()=>s,dz:()=>i,iH:()=>h});const r=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((()=>{if(e.stack){if(d.isErrorNoTelemetry(e))throw new d(e.message+"\n\n"+e.stack);throw new Error(e.message+"\n\n"+e.stack)}throw e}),0)}}emit(e){this.listeners.forEach((t=>{t(e)}))}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function i(e){a(e)||r.onUnexpectedError(e)}function s(e){if(e instanceof Error){const{name:t,message:n}=e;return{$isError:!0,name:t,message:n,stack:e.stacktrace||e.stack,noTelemetry:d.isErrorNoTelemetry(e)}}return e}const o="Canceled";function a(e){return e instanceof l||e instanceof Error&&e.name===o&&e.message===o}class l extends Error{constructor(){super(o),this.name=this.message}}function c(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")}function h(e){return e?new Error(`Illegal state: ${e}`):new Error("Illegal state")}class u extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class d extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof d)return e;const t=new d;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return"CodeExpectedError"===e.name}}class g extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,g.prototype)}}},1234:(e,t,n)=>{"use strict";n.d(t,{Jh:()=>o,vl:()=>f});var r=n(4383),i=n(1484),s=(n(8925),n(8381));var o;!function(e){function t(e){false}function n(e){return(t,n=null,r)=>{let i,s=!1;return i=e((e=>{if(!s)return i?i.dispose():s=!0,t.call(n,e)}),null,r),s&&i.dispose(),i}}function r(e,t,n){return o(((n,r=null,i)=>e((e=>n.call(r,t(e))),null,i)),n)}function s(e,t,n){return o(((n,r=null,i)=>e((e=>t(e)&&n.call(r,e)),null,i)),n)}function o(e,n){let r;const i={onWillAddFirstListener(){r=e(s.fire,s)},onDidRemoveLastListener(){r?.dispose()}};n||t();const s=new f(i);return n?.add(s),s.event}function a(e,n,r=100,i=!1,s=!1,o,a){let l,c,h,u,d=0;const g={leakWarningThreshold:o,onWillAddFirstListener(){l=e((e=>{d++,c=n(c,e),i&&!h&&(m.fire(c),c=void 0),u=()=>{const e=c;c=void 0,h=void 0,(!i||d>1)&&m.fire(e),d=0},"number"===typeof r?(clearTimeout(h),h=setTimeout(u,r)):void 0===h&&(h=0,queueMicrotask(u))}))},onWillRemoveListener(){s&&d>0&&u?.()},onDidRemoveLastListener(){u=void 0,l.dispose()}};a||t();const m=new f(g);return a?.add(m),m.event}e.None=()=>i.jG.None,e.defer=function(e,t){return a(e,(()=>{}),0,void 0,!0,void 0,t)},e.once=n,e.onceIf=function(t,n){return e.once(e.filter(t,n))},e.map=r,e.forEach=function(e,t,n){return o(((n,r=null,i)=>e((e=>{t(e),n.call(r,e)}),null,i)),n)},e.filter=s,e.signal=function(e){return e},e.any=function(...e){return(t,n=null,r)=>function(e,t){t instanceof Array?t.push(e):t&&t.add(e);return e}((0,i.qE)(...e.map((e=>e((e=>t.call(n,e)))))),r)},e.reduce=function(e,t,n,i){let s=n;return r(e,(e=>(s=t(s,e),s)),i)},e.debounce=a,e.accumulate=function(t,n=0,r){return e.debounce(t,((e,t)=>e?(e.push(t),e):[t]),n,void 0,!0,void 0,r)},e.latch=function(e,t=(e,t)=>e===t,n){let r,i=!0;return s(e,(e=>{const n=i||!t(e,r);return i=!1,r=e,n}),n)},e.split=function(t,n,r){return[e.filter(t,n,r),e.filter(t,(e=>!n(e)),r)]},e.buffer=function(e,t=!1,n=[],r){let i=n.slice(),s=e((e=>{i?i.push(e):a.fire(e)}));r&&r.add(s);const o=()=>{i?.forEach((e=>a.fire(e))),i=null},a=new f({onWillAddFirstListener(){s||(s=e((e=>a.fire(e))),r&&r.add(s))},onDidAddFirstListener(){i&&(t?setTimeout(o):o())},onDidRemoveLastListener(){s&&s.dispose(),s=null}});return r&&r.add(a),a.event},e.chain=function(e,t){return(n,r,i)=>{const s=t(new c);return e((function(e){const t=s.evaluate(e);t!==l&&n.call(r,t)}),void 0,i)}};const l=Symbol("HaltChainable");class c{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:l)),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,n=!0;return this.steps.push((r=>{const i=n||!e(r,t);return n=!1,t=r,i?r:l})),this}evaluate(e){for(const t of this.steps)if((e=t(e))===l)break;return e}}e.fromNodeEventEmitter=function(e,t,n=e=>e){const r=(...e)=>i.fire(n(...e)),i=new f({onWillAddFirstListener:()=>e.on(t,r),onDidRemoveLastListener:()=>e.removeListener(t,r)});return i.event},e.fromDOMEventEmitter=function(e,t,n=e=>e){const r=(...e)=>i.fire(n(...e)),i=new f({onWillAddFirstListener:()=>e.addEventListener(t,r),onDidRemoveLastListener:()=>e.removeEventListener(t,r)});return i.event},e.toPromise=function(e){return new Promise((t=>n(e)(t)))},e.fromPromise=function(e){const t=new f;return e.then((e=>{t.fire(e)}),(()=>{t.fire(void 0)})).finally((()=>{t.dispose()})),t.event},e.forward=function(e,t){return e((e=>t.fire(e)))},e.runAndSubscribe=function(e,t,n){return t(n),e((e=>t(e)))};class h{constructor(e,n){this._observable=e,this._counter=0,this._hasChanged=!1;const r={onWillAddFirstListener:()=>{e.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{e.removeObserver(this)}};n||t(),this.emitter=new f(r),n&&n.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,0===this._counter&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}e.fromObservable=function(e,t){return new h(e,t).emitter.event},e.fromObservableLight=function(e){return(t,n,r)=>{let s=0,o=!1;const a={beginUpdate(){s++},endUpdate(){s--,0===s&&(e.reportChanges(),o&&(o=!1,t.call(n)))},handlePossibleChange(){},handleChange(){o=!0}};e.addObserver(a),e.reportChanges();const l={dispose(){e.removeObserver(a)}};return r instanceof i.Cm?r.add(l):Array.isArray(r)&&r.push(l),l}}}(o||(o={}));class a{static{this.all=new Set}static{this._idPool=0}constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${a._idPool++}`,a.all.add(this)}start(e){this._stopWatch=new s.W,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}class l{static{this._idPool=1}constructor(e,t,n=(l._idPool++).toString(16).padStart(3,"0")){this._errorHandler=e,this.threshold=t,this.name=n,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(e,t){const n=this.threshold;if(n<=0||t<n)return;this._stacks||(this._stacks=new Map);const r=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,r+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=.5*n;const[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);const s=new h(i,e);this._errorHandler(s)}return()=>{const t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}getMostFrequentStack(){if(!this._stacks)return;let e,t=0;for(const[n,r]of this._stacks)(!e||t<r)&&(e=[n,r],t=r);return e}}class c{static create(){const e=new Error;return new c(e.stack??"")}constructor(e){this.value=e}print(){console.warn(this.value.split("\n").slice(2).join("\n"))}}class h extends Error{constructor(e,t){super(e),this.name="ListenerLeakError",this.stack=t}}class u extends Error{constructor(e,t){super(e),this.name="ListenerRefusalError",this.stack=t}}class d{constructor(e){this.value=e}}let g;class f{constructor(e){this._size=0,this._options=e,this._leakageMon=this._options?.leakWarningThreshold?new l(e?.onListenerError??r.dz,this._options?.leakWarningThreshold??-1):void 0,this._perfMon=this._options?._profName?new a(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,t,n)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const 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);const t=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],n=new u(`${e}. HINT: Stack shows most frequent listener (${t[1]}-times)`,t[0]);return(this._options?.onListenerError||r.dz)(n),i.jG.None}if(this._disposed)return i.jG.None;t&&(e=e.bind(t));const s=new d(e);let o;this._leakageMon&&this._size>=Math.ceil(.2*this._leakageMon.threshold)&&(s.stack=c.create(),o=this._leakageMon.check(s.stack,this._size+1)),this._listeners?this._listeners instanceof d?(this._deliveryQueue??=new m,this._listeners=[this._listeners,s]):this._listeners.push(s):(this._options?.onWillAddFirstListener?.(this),this._listeners=s,this._options?.onDidAddFirstListener?.(this)),this._size++;const a=(0,i.s)((()=>{g?.unregister(a),o?.(),this._removeListener(s)}));if(n instanceof i.Cm?n.add(a):Array.isArray(n)&&n.push(a),g){const e=(new Error).stack.split("\n").slice(2,3).join("\n").trim(),t=/(file:|vscode-file:\/\/vscode-app)?(\/[^:]*:\d+:\d+)/.exec(e);g.register(a,t?.[2]??e,a)}return a},this._event}_removeListener(e){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(1===this._size)return this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),void(this._size=0);const t=this._listeners,n=t.indexOf(e);if(-1===n)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,t[n]=void 0;const r=this._deliveryQueue.current===this;if(2*this._size<=t.length){let e=0;for(let n=0;n<t.length;n++)t[n]?t[e++]=t[n]:r&&(this._deliveryQueue.end--,e<this._deliveryQueue.i&&this._deliveryQueue.i--);t.length=e}}_deliver(e,t){if(!e)return;const n=this._options?.onListenerError||r.dz;if(n)try{e.value(t)}catch(i){n(i)}else e.value(t)}_deliverQueue(e){const 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 d)this._deliver(this._listeners,e);else{const t=this._deliveryQueue;t.enqueue(this,e,this._listeners.length),this._deliverQueue(t)}else;this._perfMon?.stop()}hasListeners(){return this._size>0}}class m{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}}},9326:(e,t,n)=>{"use strict";n.d(t,{TH:()=>o,Zn:()=>l,_1:()=>c,kb:()=>a});var r=n(8821),i=(n(8067),n(1508));function s(e){return 47===e||92===e}function o(e){return e.replace(/[\\/]/g,r.SA.sep)}function a(e){return-1===e.indexOf("/")&&(e=o(e)),/^[a-zA-Z]:(\/|$)/.test(e)&&(e="/"+e),e}function l(e,t=r.SA.sep){if(!e)return"";const n=e.length,i=e.charCodeAt(0);if(s(i)){if(s(e.charCodeAt(1))&&!s(e.charCodeAt(2))){let r=3;const i=r;for(;r<n&&!s(e.charCodeAt(r));r++);if(i!==r&&!s(e.charCodeAt(r+1)))for(r+=1;r<n;r++)if(s(e.charCodeAt(r)))return e.slice(0,r+1).replace(/[\\/]/g,t)}return t}if(h(i)&&58===e.charCodeAt(1))return s(e.charCodeAt(2))?e.slice(0,2)+t:e.slice(0,2);let o=e.indexOf("://");if(-1!==o)for(o+=3;o<n;o++)if(s(e.charCodeAt(o)))return e.slice(0,o+1);return""}function c(e,t,n,s=r.Vn){if(e===t)return!0;if(!e||!t)return!1;if(t.length>e.length)return!1;if(n){if(!(0,i.ns)(e,t))return!1;if(t.length===e.length)return!0;let n=t.length;return t.charAt(t.length-1)===s&&n--,e.charAt(n)===s}return t.charAt(t.length-1)!==s&&(t+=s),0===e.indexOf(t)}function h(e){return e>=65&&e<=90||e>=97&&e<=122}},6958:(e,t,n)=>{"use strict";n.d(t,{YW:()=>A,qg:()=>I});var r=n(1940),i=n(9326),s=n(4320),o=n(8821),a=n(8067),l=n(1508);const c="**",h="/",u="[/\\\\]",d="[^/\\\\]",g=/\//g;function f(e,t){switch(e){case 0:return"";case 1:return`${d}*?`;default:return`(?:${u}|${d}+${u}${t?`|${u}${d}+`:""})*?`}}function m(e,t){if(!e)return[];const n=[];let r=!1,i=!1,s="";for(const o of e){switch(o){case t:if(!r&&!i){n.push(s),s="";continue}break;case"{":r=!0;break;case"}":r=!1;break;case"[":i=!0;break;case"]":i=!1}s+=o}return s&&n.push(s),n}function p(e){if(!e)return"";let t="";const n=m(e,h);if(n.every((e=>e===c)))t=".*";else{let e=!1;n.forEach(((r,i)=>{if(r===c){if(e)return;t+=f(2,i===n.length-1)}else{let e=!1,s="",o=!1,a="";for(const n of r)if("}"!==n&&e)s+=n;else if(!o||"]"===n&&a)switch(n){case"{":e=!0;continue;case"[":o=!0;continue;case"}":{const n=`(?:${m(s,",").map((e=>p(e))).join("|")})`;t+=n,e=!1,s="";break}case"]":t+="["+a+"]",o=!1,a="";break;case"?":t+=d;continue;case"*":t+=f(1);continue;default:t+=(0,l.bm)(n)}else{let e;e="-"===n?n:"^"!==n&&"!"!==n||a?n===h?"":(0,l.bm)(n):"^",a+=e}i<n.length-1&&(n[i+1]!==c||i+2<n.length)&&(t+=u)}e=r===c}))}return t}const b=/^\*\*\/\*\.[\w\.-]+$/,_=/^\*\*\/([\w\.-]+)\/?$/,k=/^{\*\*\/\*?[\w\.-]+\/?(,\*\*\/\*?[\w\.-]+\/?)*}$/,v=/^{\*\*\/\*?[\w\.-]+(\/(\*\*)?)?(,\*\*\/\*?[\w\.-]+(\/(\*\*)?)?)*}$/,C=/^\*\*((\/[\w\.-]+)+)\/?$/,y=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,L=new s.qK(1e4),w=function(){return!1},S=function(){return null};function x(e,t){if(!e)return S;let n;n="string"!==typeof e?e.pattern:e,n=n.trim();const r=`${n}_${!!t.trimForExclusions}`;let i,s=L.get(r);return s||(s=b.test(n)?function(e,t){return function(n,r){return"string"===typeof n&&n.endsWith(e)?t:null}}(n.substr(4),n):(i=_.exec(N(n,t)))?function(e,t){const n=`/${e}`,r=`\\${e}`,i=function(i,s){return"string"!==typeof i?null:s?s===e?t:null:i===e||i.endsWith(n)||i.endsWith(r)?t:null},s=[e];return i.basenames=s,i.patterns=[t],i.allBasenames=s,i}(i[1],n):(t.trimForExclusions?v:k).test(n)?function(e,t){const n=O(e.slice(1,-1).split(",").map((e=>x(e,t))).filter((e=>e!==S)),e),r=n.length;if(!r)return S;if(1===r)return n[0];const i=function(t,r){for(let i=0,s=n.length;i<s;i++)if(n[i](t,r))return e;return null},s=n.find((e=>!!e.allBasenames));s&&(i.allBasenames=s.allBasenames);const o=n.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);o.length&&(i.allPaths=o);return i}(n,t):(i=C.exec(N(n,t)))?T(i[1].substr(1),n,!0):(i=y.exec(N(n,t)))?T(i[1],n,!1):function(e){try{const t=new RegExp(`^${p(e)}$`);return function(n){return t.lastIndex=0,"string"===typeof n&&t.test(n)?e:null}}catch(t){return S}}(n),L.set(r,s)),E(s,e)}function E(e,t){if("string"===typeof t)return e;const n=function(n,r){return(0,i._1)(n,t.base,!a.j9)?e((0,l.NB)(n.substr(t.base.length),o.Vn),r):null};return n.allBasenames=e.allBasenames,n.allPaths=e.allPaths,n.basenames=e.basenames,n.patterns=e.patterns,n}function N(e,t){return t.trimForExclusions&&e.endsWith("/**")?e.substr(0,e.length-2):e}function T(e,t,n){const r=o.Vn===o.SA.sep,i=r?e:e.replace(g,o.Vn),s=o.Vn+i,a=o.SA.sep+e;let l;return l=n?function(n,o){return"string"!==typeof n||n!==i&&!n.endsWith(s)&&(r||n!==e&&!n.endsWith(a))?null:t}:function(n,s){return"string"!==typeof n||n!==i&&(r||n!==e)?null:t},l.allPaths=[(n?"*/":"./")+e],l}function A(e,t,n){return!(!e||"string"!==typeof t)&&I(e)(t,void 0,n)}function I(e,t={}){if(!e)return w;if("string"===typeof e||function(e){const t=e;if(!t)return!1;return"string"===typeof t.base&&"string"===typeof t.pattern}(e)){const n=x(e,t);if(n===S)return w;const r=function(e,t){return!!n(e,t)};return n.allBasenames&&(r.allBasenames=n.allBasenames),n.allPaths&&(r.allPaths=n.allPaths),r}return function(e,t){const n=O(Object.getOwnPropertyNames(e).map((n=>function(e,t,n){if(!1===t)return S;const i=x(e,n);if(i===S)return S;if("boolean"===typeof t)return i;if(t){const n=t.when;if("string"===typeof n){const t=(t,s,o,a)=>{if(!a||!i(t,s))return null;const l=a(n.replace("$(basename)",(()=>o)));return(0,r.Qg)(l)?l.then((t=>t?e:null)):l?e:null};return t.requiresSiblings=!0,t}}return i}(n,e[n],t))).filter((e=>e!==S))),i=n.length;if(!i)return S;if(!n.some((e=>!!e.requiresSiblings))){if(1===i)return n[0];const e=function(e,t){let i;for(let s=0,o=n.length;s<o;s++){const o=n[s](e,t);if("string"===typeof o)return o;(0,r.Qg)(o)&&(i||(i=[]),i.push(o))}return i?(async()=>{for(const e of i){const t=await e;if("string"===typeof t)return t}return null})():null},t=n.find((e=>!!e.allBasenames));t&&(e.allBasenames=t.allBasenames);const s=n.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);return s.length&&(e.allPaths=s),e}const s=function(e,t,i){let s,a;for(let l=0,c=n.length;l<c;l++){const c=n[l];c.requiresSiblings&&i&&(t||(t=(0,o.P8)(e)),s||(s=t.substr(0,t.length-(0,o.LC)(e).length)));const h=c(e,t,s,i);if("string"===typeof h)return h;(0,r.Qg)(h)&&(a||(a=[]),a.push(h))}return a?(async()=>{for(const e of a){const t=await e;if("string"===typeof t)return t}return null})():null},a=n.find((e=>!!e.allBasenames));a&&(s.allBasenames=a.allBasenames);const l=n.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);l.length&&(s.allPaths=l);return s}(e,t)}function O(e,t){const n=e.filter((e=>!!e.basenames));if(n.length<2)return e;const r=n.reduce(((e,t)=>{const n=t.basenames;return n?e.concat(n):e}),[]);let i;if(t){i=[];for(let e=0,n=r.length;e<n;e++)i.push(t)}else i=n.reduce(((e,t)=>{const n=t.patterns;return n?e.concat(n):e}),[]);const s=function(e,t){if("string"!==typeof e)return null;if(!t){let n;for(n=e.length;n>0;n--){const t=e.charCodeAt(n-1);if(47===t||92===t)break}t=e.substr(n)}const n=r.indexOf(t);return-1!==n?i[n]:null};s.basenames=r,s.patterns=i,s.allBasenames=r;const o=e.filter((e=>!e.basenames));return o.push(s),o}},5600:(e,t,n)=>{"use strict";n.d(t,{e2:()=>o,sN:()=>i,v7:()=>h});var r=n(1508);function i(e,t){switch(typeof e){case"object":return null===e?s(349,t):Array.isArray(e)?(n=e,r=s(104579,r=t),n.reduce(((e,t)=>i(t,e)),r)):function(e,t){return t=s(181387,t),Object.keys(e).sort().reduce(((t,n)=>(t=o(n,t),i(e[n],t))),t)}(e,t);case"string":return o(e,t);case"boolean":return function(e,t){return s(e?433:863,t)}(e,t);case"number":return s(e,t);case"undefined":return s(937,t);default:return s(617,t)}var n,r}function s(e,t){return(t<<5)-t+e|0}function o(e,t){t=s(149417,t);for(let n=0,r=e.length;n<r;n++)t=s(e.charCodeAt(n),t);return t}function a(e,t,n=32){const r=n-t;return(e<<t|(~((1<<r)-1)&e)>>>r)>>>0}function l(e,t=0,n=e.byteLength,r=0){for(let i=0;i<n;i++)e[t+i]=r}function c(e,t=32){return e instanceof ArrayBuffer?Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join(""):function(e,t,n="0"){for(;e.length<t;)e=n+e;return e}((e>>>0).toString(16),t/4)}class h{static{this._bigBlock32=new DataView(new ArrayBuffer(320))}constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(0===t)return;const n=this._buff;let i,s,o=this._buffLen,a=this._leftoverHighSurrogate;for(0!==a?(i=a,s=-1,a=0):(i=e.charCodeAt(0),s=0);;){let l=i;if(r.pc(i)){if(!(s+1<t)){a=i;break}{const t=e.charCodeAt(s+1);r.LJ(t)?(s++,l=r.z_(i,t)):l=65533}}else r.LJ(i)&&(l=65533);if(o=this._push(n,o,l),s++,!(s<t))break;i=e.charCodeAt(s)}this._buffLen=o,this._leftoverHighSurrogate=a}_push(e,t,n){return n<128?e[t++]=n:n<2048?(e[t++]=192|(1984&n)>>>6,e[t++]=128|(63&n)>>>0):n<65536?(e[t++]=224|(61440&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0):(e[t++]=240|(1835008&n)>>>18,e[t++]=128|(258048&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>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()),c(this._h0)+c(this._h1)+c(this._h2)+c(this._h3)+c(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,l(this._buff,this._buffLen),this._buffLen>56&&(this._step(),l(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=h._bigBlock32,t=this._buffDV;for(let a=0;a<64;a+=4)e.setUint32(a,t.getUint32(a,!1),!1);for(let h=64;h<320;h+=4)e.setUint32(h,a(e.getUint32(h-12,!1)^e.getUint32(h-32,!1)^e.getUint32(h-56,!1)^e.getUint32(h-64,!1),1),!1);let n,r,i,s=this._h0,o=this._h1,l=this._h2,c=this._h3,u=this._h4;for(let h=0;h<80;h++)h<20?(n=o&l|~o&c,r=1518500249):h<40?(n=o^l^c,r=1859775393):h<60?(n=o&l|o&c|l&c,r=2400959708):(n=o^l^c,r=3395469782),i=a(s,5)+n+u+r+e.getUint32(4*h,!1)&4294967295,u=c,c=l,l=a(o,30),o=s,s=i;this._h0=this._h0+s&4294967295,this._h1=this._h1+o&4294967295,this._h2=this._h2+l&4294967295,this._h3=this._h3+c&4294967295,this._h4=this._h4+u&4294967295}}},2522:(e,t,n)=>{"use strict";var r;n.d(t,{f:()=>r}),function(e){function t(e){return e&&"object"===typeof e&&"function"===typeof e[Symbol.iterator]}e.is=t;const n=Object.freeze([]);function*r(e){yield e}e.empty=function(){return n},e.single=r,e.wrap=function(e){return t(e)?e:r(e)},e.from=function(e){return e||n},e.reverse=function*(e){for(let t=e.length-1;t>=0;t--)yield e[t]},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){let n=0;for(const r of e)if(t(r,n++))return!0;return!1},e.find=function(e,t){for(const n of e)if(t(n))return n},e.filter=function*(e,t){for(const n of e)t(n)&&(yield n)},e.map=function*(e,t){let n=0;for(const r of e)yield t(r,n++)},e.flatMap=function*(e,t){let n=0;for(const r of e)yield*t(r,n++)},e.concat=function*(...e){for(const t of e)yield*t},e.reduce=function(e,t,n){let r=n;for(const i of e)r=t(r,i);return r},e.slice=function*(e,t,n=e.length){for(t<0&&(t+=e.length),n<0?n+=e.length:n>e.length&&(n=e.length);t<n;t++)yield e[t]},e.consume=function(t,n=Number.POSITIVE_INFINITY){const r=[];if(0===n)return[r,t];const i=t[Symbol.iterator]();for(let s=0;s<n;s++){const t=i.next();if(t.done)return[r,e.empty()];r.push(t.value)}return[r,{[Symbol.iterator]:()=>i}]},e.asyncToArray=async function(e){const t=[];for await(const n of e)t.push(n);return Promise.resolve(t)}}(r||(r={}))},1090:(e,t,n)=>{"use strict";n.d(t,{d:()=>r});class r{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}},1484:(e,t,n)=>{"use strict";function r(e,t){const n=this;let r,i=!1;return function(){if(i)return r;if(i=!0,t)try{r=e.apply(n,arguments)}finally{t()}else r=e.apply(n,arguments);return r}}n.d(t,{jG:()=>g,$w:()=>m,Cm:()=>d,HE:()=>f,qE:()=>h,AS:()=>c,VD:()=>a,s:()=>u,Ay:()=>o});var i=n(2522);let s=null;function o(e){return s?.trackDisposable(e),e}function a(e){s?.markAsDisposed(e)}function l(e,t){s?.setParent(e,t)}function c(e){if(i.f.is(e)){const n=[];for(const r of e)if(r)try{r.dispose()}catch(t){n.push(t)}if(1===n.length)throw n[0];if(n.length>1)throw new AggregateError(n,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function h(...e){const t=u((()=>c(e)));return function(e,t){if(s)for(const n of e)s.setParent(n,t)}(e,t),t}function u(e){const t=o({dispose:r((()=>{a(t),e()}))});return t}class d{static{this.DISABLE_DISPOSED_WARNING=!1}constructor(){this._toDispose=new Set,this._isDisposed=!1,o(this)}dispose(){this._isDisposed||(a(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(0!==this._toDispose.size)try{c(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return l(e,this),this._isDisposed?d.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}deleteAndLeak(e){e&&this._toDispose.has(e)&&(this._toDispose.delete(e),l(e,null))}}class g{static{this.None=Object.freeze({dispose(){}})}constructor(){this._store=new d,o(this),l(this._store,this)}dispose(){a(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}class f{constructor(){this._isDisposed=!1,o(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){this._isDisposed||e===this._value||(this._value?.dispose(),e&&l(e,this),this._value=e)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,a(this),this._value?.dispose(),this._value=void 0}}class m{constructor(){this._store=new Map,this._isDisposed=!1,o(this)}dispose(){a(this),this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{c(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,t,n=!1){this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),n||this._store.get(e)?.dispose(),this._store.set(e,t)}deleteAndDispose(e){this._store.get(e)?.dispose(),this._store.delete(e)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}},8925:(e,t,n)=>{"use strict";n.d(t,{w:()=>i});class r{static{this.Undefined=new r(void 0)}constructor(e){this.element=e,this.next=r.Undefined,this.prev=r.Undefined}}class i{constructor(){this._first=r.Undefined,this._last=r.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===r.Undefined}clear(){let e=this._first;for(;e!==r.Undefined;){const t=e.next;e.prev=r.Undefined,e.next=r.Undefined,e=t}this._first=r.Undefined,this._last=r.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new r(e);if(this._first===r.Undefined)this._first=n,this._last=n;else if(t){const e=this._last;this._last=n,n.prev=e,e.next=n}else{const e=this._first;this._first=n,n.next=e,e.prev=n}this._size+=1;let i=!1;return()=>{i||(i=!0,this._remove(n))}}shift(){if(this._first!==r.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==r.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==r.Undefined&&e.next!==r.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===r.Undefined&&e.next===r.Undefined?(this._first=r.Undefined,this._last=r.Undefined):e.next===r.Undefined?(this._last=this._last.prev,this._last.next=r.Undefined):e.prev===r.Undefined&&(this._first=this._first.next,this._first.prev=r.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==r.Undefined;)yield e.element,e=e.next}}},4320:(e,t,n)=>{"use strict";var r,i;n.d(t,{cO:()=>h,db:()=>u,fT:()=>o,qK:()=>c});class s{constructor(e,t){this.uri=e,this.value=t}}class o{static{this.defaultToKey=e=>e.toString()}constructor(e,t){if(this[r]="ResourceMap",e instanceof o)this.map=new Map(e.map),this.toKey=t??o.defaultToKey;else if(function(e){return Array.isArray(e)}(e)){this.map=new Map,this.toKey=t??o.defaultToKey;for(const[t,n]of e)this.set(t,n)}else this.map=new Map,this.toKey=e??o.defaultToKey}set(e,t){return this.map.set(this.toKey(e),new s(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){"undefined"!==typeof t&&(e=e.bind(t));for(const[n,r]of this.map)e(r.value,r.uri,this)}*values(){for(const e of this.map.values())yield e.value}*keys(){for(const e of this.map.values())yield e.uri}*entries(){for(const e of this.map.values())yield[e.uri,e.value]}*[(r=Symbol.toStringTag,Symbol.iterator)](){for(const[,e]of this.map)yield[e.uri,e.value]}}class a{constructor(){this[i]="LinkedMap",this._map=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){const n=this._map.get(e);if(n)return 0!==t&&this.touch(n,t),n.value}set(e,t,n=0){let r=this._map.get(e);if(r)r.value=t,0!==n&&this.touch(r,n);else{switch(r={key:e,value:t,next:void 0,previous:void 0},n){case 0:case 2:default:this.addItemLast(r);break;case 1:this.addItemFirst(r)}this._map.set(e,r),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const 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 new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const n=this._state;let 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 new Error("LinkedMap got modified during iteration.");r=r.next}}keys(){const e=this,t=this._state;let n=this._head;const r={[Symbol.iterator]:()=>r,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.key,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return r}values(){const e=this,t=this._state;let n=this._head;const r={[Symbol.iterator]:()=>r,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.value,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return r}entries(){const e=this,t=this._state;let n=this._head;const r={[Symbol.iterator]:()=>r,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:[n.key,n.value],done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return r}[(i=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();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(0===e)return void this.clear();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){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;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 new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,n=e.previous;if(!t||!n)throw new 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 new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;const 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(2===t){if(e===this._tail)return;const 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(){const e=[];return this.forEach(((t,n)=>{e.push([n,t])})),e}fromJSON(e){this.clear();for(const[t,n]of e)this.set(t,n)}}class l extends a{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))}}class c extends l{constructor(e,t=1){super(e,t)}trim(e){this.trimOld(e)}set(e,t){return super.set(e,t),this.checkTrim(),this}}class h{constructor(e){if(this._m1=new Map,this._m2=new Map,e)for(const[t,n]of e)this.set(t,n)}clear(){this._m1.clear(),this._m2.clear()}set(e,t){this._m1.set(e,t),this._m2.set(t,e)}get(e){return this._m1.get(e)}getKey(e){return this._m2.get(e)}delete(e){const t=this._m1.get(e);return void 0!==t&&(this._m1.delete(e),this._m2.delete(t),!0)}keys(){return this._m1.keys()}values(){return this._m1.values()}}class u{constructor(){this.map=new Map}add(e,t){let n=this.map.get(e);n||(n=new Set,this.map.set(e,n)),n.add(t)}delete(e,t){const n=this.map.get(e);n&&(n.delete(t),0===n.size&&this.map.delete(e))}forEach(e,t){const n=this.map.get(e);n&&n.forEach(t)}get(e){const t=this.map.get(e);return t||new Set}}},1939:(e,t,n)=>{"use strict";n.d(t,{K:()=>r});const r=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"})},6456:(e,t,n)=>{"use strict";n.d(t,{ny:()=>r,v$:()=>c,zl:()=>d});var r,i=n(4383),s=n(8067),o=n(1508),a=n(9400),l=n(8821);function c(e,t){return a.r.isUri(e)?(0,o.Q_)(e.scheme,t):(0,o.ns)(e,t+":")}!function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command",e.vscodeRemote="vscode-remote",e.vscodeRemoteResource="vscode-remote-resource",e.vscodeManagedRemoteResource="vscode-managed-remote-resource",e.vscodeUserData="vscode-userdata",e.vscodeCustomEditor="vscode-custom-editor",e.vscodeNotebookCell="vscode-notebook-cell",e.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",e.vscodeNotebookCellMetadataDiff="vscode-notebook-cell-metadata-diff",e.vscodeNotebookCellOutput="vscode-notebook-cell-output",e.vscodeNotebookCellOutputDiff="vscode-notebook-cell-output-diff",e.vscodeNotebookMetadata="vscode-notebook-metadata",e.vscodeInteractiveInput="vscode-interactive-input",e.vscodeSettings="vscode-settings",e.vscodeWorkspaceTrust="vscode-workspace-trust",e.vscodeTerminal="vscode-terminal",e.vscodeChatCodeBlock="vscode-chat-code-block",e.vscodeChatCodeCompareBlock="vscode-chat-code-compare-block",e.vscodeChatSesssion="vscode-chat-editor",e.webviewPanel="webview-panel",e.vscodeWebview="vscode-webview",e.extension="extension",e.vscodeFileResource="vscode-file",e.tmp="tmp",e.vsls="vsls",e.vscodeSourceControl="vscode-scm",e.commentsInput="comment",e.codeSetting="code-setting",e.outputChannel="output"}(r||(r={}));const h=new class{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(e){this._preferredWebSchema=e}get _remoteResourcesPath(){return l.SA.join(this._serverRootPath,r.vscodeRemoteResource)}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(h){return i.dz(h),e}const t=e.authority;let n=this._hosts[t];n&&-1!==n.indexOf(":")&&-1===n.indexOf("[")&&(n=`[${n}]`);const o=this._ports[t],l=this._connectionTokens[t];let c=`path=${encodeURIComponent(e.path)}`;return"string"===typeof l&&(c+=`&tkn=${encodeURIComponent(l)}`),a.r.from({scheme:s.HZ?this._preferredWebSchema:r.vscodeRemoteResource,authority:`${n}:${o}`,path:this._remoteResourcesPath,query:c})}};class u{static{this.FALLBACK_AUTHORITY="vscode-app"}asBrowserUri(e){const t=this.toUri(e);return this.uriToBrowserUri(t)}uriToBrowserUri(e){return e.scheme===r.vscodeRemote?h.rewrite(e):e.scheme!==r.file||!s.ib&&s.lg!==`${r.vscodeFileResource}://${u.FALLBACK_AUTHORITY}`?e:e.with({scheme:r.vscodeFileResource,authority:e.authority||u.FALLBACK_AUTHORITY,query:null,fragment:null})}toUri(e,t){if(a.r.isUri(e))return e;if(globalThis._VSCODE_FILE_ROOT){const t=globalThis._VSCODE_FILE_ROOT;if(/^\w[\w\d+.-]*:\/\//.test(t))return a.r.joinPath(a.r.parse(t,!0),e);const n=l.fj(t,e);return a.r.file(n)}return a.r.parse(t.toUrl(e))}}const d=new u;var g;!function(e){const t=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);e.CoopAndCoep=Object.freeze(t.get("3"));const n="vscode-coi";e.getHeadersFromQuery=function(e){let r;"string"===typeof e?r=new URL(e).searchParams:e instanceof URL?r=e.searchParams:a.r.isUri(e)&&(r=new URL(e.toString(!0)).searchParams);const i=r?.get(n);if(i)return t.get(i)},e.addSearchParam=function(e,t,r){if(!globalThis.crossOriginIsolated)return;const i=t&&r?"3":r?"2":"1";e instanceof URLSearchParams?e.set(n,i):e[n]=i}}(g||(g={}))},146:(e,t,n)=>{"use strict";n.d(t,{V0:()=>i,aI:()=>r,kT:()=>s});Object.prototype.hasOwnProperty;function r(e,t){if(e===t)return!0;if(null===e||void 0===e||null===t||void 0===t)return!1;if(typeof e!==typeof t)return!1;if("object"!==typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;let n,i;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else{const s=[];for(i in e)s.push(i);s.sort();const o=[];for(i in t)o.push(i);if(o.sort(),!r(s,o))return!1;for(n=0;n<s.length;n++)if(!r(e[s[n]],t[s[n]]))return!1}return!0}function i(e){const t=[];for(const n of function(e){let t=[];for(;Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}(e))"function"===typeof e[n]&&t.push(n);return t}function s(e,t){const n=e=>function(){const n=Array.prototype.slice.call(arguments,0);return t(e,n)},r={};for(const i of e)r[i]=n(i);return r}},8821:(e,t,n)=>{"use strict";n.d(t,{P8:()=>N,pD:()=>E,LC:()=>T,fj:()=>w,S8:()=>L,SA:()=>y,V8:()=>x,hd:()=>S,Vn:()=>A,IN:()=>v});var r=n(8067);let i;const s=globalThis.vscode;if("undefined"!==typeof s&&"undefined"!==typeof s.process){const e=s.process;i={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd:()=>e.cwd()}}else i="undefined"!==typeof process&&"string"===typeof process?.versions?.node?{get platform(){return process.platform},get arch(){return process.arch},get env(){return{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}},cwd:()=>({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}.VSCODE_CWD||process.cwd())}:{get platform(){return r.uF?"win32":r.zx?"darwin":"linux"},get arch(){},get env(){return{}},cwd:()=>"/"};const o=i.cwd,a=(i.env,i.platform),l=46,c=47,h=92,u=58;class d extends Error{constructor(e,t,n){let r;"string"===typeof t&&0===t.indexOf("not ")?(r="must not be",t=t.replace(/^not /,"")):r="must be";const i=-1!==e.indexOf(".")?"property":"argument";let s=`The "${e}" ${i} ${r} of type ${t}`;s+=". Received type "+typeof n,super(s),this.code="ERR_INVALID_ARG_TYPE"}}function g(e,t){if("string"!==typeof e)throw new d(t,"string",e)}const f="win32"===a;function m(e){return e===c||e===h}function p(e){return e===c}function b(e){return e>=65&&e<=90||e>=97&&e<=122}function _(e,t,n,r){let i="",s=0,o=-1,a=0,h=0;for(let u=0;u<=e.length;++u){if(u<e.length)h=e.charCodeAt(u);else{if(r(h))break;h=c}if(r(h)){if(o===u-1||1===a);else if(2===a){if(i.length<2||2!==s||i.charCodeAt(i.length-1)!==l||i.charCodeAt(i.length-2)!==l){if(i.length>2){const e=i.lastIndexOf(n);-1===e?(i="",s=0):(i=i.slice(0,e),s=i.length-1-i.lastIndexOf(n)),o=u,a=0;continue}if(0!==i.length){i="",s=0,o=u,a=0;continue}}t&&(i+=i.length>0?`${n}..`:"..",s=2)}else i.length>0?i+=`${n}${e.slice(o+1,u)}`:i=e.slice(o+1,u),s=u-o-1;o=u,a=0}else h===l&&-1!==a?++a:a=-1}return i}function k(e,t){!function(e,t){if(null===e||"object"!==typeof e)throw new d(t,"Object",e)}(t,"pathObject");const n=t.dir||t.root,r=t.base||`${t.name||""}${i=t.ext,i?`${"."===i[0]?"":"."}${i}`:""}`;var i;return n?n===t.root?`${n}${r}`:`${n}${e}${r}`:r}const v={resolve(...e){let t="",n="",r=!1;for(let i=e.length-1;i>=-1;i--){let s;if(i>=0){if(s=e[i],g(s,`paths[${i}]`),0===s.length)continue}else 0===t.length?s=o():(s={NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}[`=${t}`]||o(),(void 0===s||s.slice(0,2).toLowerCase()!==t.toLowerCase()&&s.charCodeAt(2)===h)&&(s=`${t}\\`));const a=s.length;let l=0,c="",d=!1;const f=s.charCodeAt(0);if(1===a)m(f)&&(l=1,d=!0);else if(m(f))if(d=!0,m(s.charCodeAt(1))){let e=2,t=e;for(;e<a&&!m(s.charCodeAt(e));)e++;if(e<a&&e!==t){const n=s.slice(t,e);for(t=e;e<a&&m(s.charCodeAt(e));)e++;if(e<a&&e!==t){for(t=e;e<a&&!m(s.charCodeAt(e));)e++;e!==a&&e===t||(c=`\\\\${n}\\${s.slice(t,e)}`,l=e)}}}else l=1;else b(f)&&s.charCodeAt(1)===u&&(c=s.slice(0,2),l=2,a>2&&m(s.charCodeAt(2))&&(d=!0,l=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=`${s.slice(l)}\\${n}`,r=d,d&&t.length>0)break}return n=_(n,!r,"\\",m),r?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){g(e,"path");const t=e.length;if(0===t)return".";let n,r=0,i=!1;const s=e.charCodeAt(0);if(1===t)return p(s)?"\\":e;if(m(s))if(i=!0,m(e.charCodeAt(1))){let i=2,s=i;for(;i<t&&!m(e.charCodeAt(i));)i++;if(i<t&&i!==s){const o=e.slice(s,i);for(s=i;i<t&&m(e.charCodeAt(i));)i++;if(i<t&&i!==s){for(s=i;i<t&&!m(e.charCodeAt(i));)i++;if(i===t)return`\\\\${o}\\${e.slice(s)}\\`;i!==s&&(n=`\\\\${o}\\${e.slice(s,i)}`,r=i)}}}else r=1;else b(s)&&e.charCodeAt(1)===u&&(n=e.slice(0,2),r=2,t>2&&m(e.charCodeAt(2))&&(i=!0,r=3));let o=r<t?_(e.slice(r),!i,"\\",m):"";return 0!==o.length||i||(o="."),o.length>0&&m(e.charCodeAt(t-1))&&(o+="\\"),void 0===n?i?`\\${o}`:o:i?`${n}\\${o}`:`${n}${o}`},isAbsolute(e){g(e,"path");const t=e.length;if(0===t)return!1;const n=e.charCodeAt(0);return m(n)||t>2&&b(n)&&e.charCodeAt(1)===u&&m(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let t,n;for(let s=0;s<e.length;++s){const r=e[s];g(r,"path"),r.length>0&&(void 0===t?t=n=r:t+=`\\${r}`)}if(void 0===t)return".";let r=!0,i=0;if("string"===typeof n&&m(n.charCodeAt(0))){++i;const e=n.length;e>1&&m(n.charCodeAt(1))&&(++i,e>2&&(m(n.charCodeAt(2))?++i:r=!1))}if(r){for(;i<t.length&&m(t.charCodeAt(i));)i++;i>=2&&(t=`\\${t.slice(i)}`)}return v.normalize(t)},relative(e,t){if(g(e,"from"),g(t,"to"),e===t)return"";const n=v.resolve(e),r=v.resolve(t);if(n===r)return"";if((e=n.toLowerCase())===(t=r.toLowerCase()))return"";let i=0;for(;i<e.length&&e.charCodeAt(i)===h;)i++;let s=e.length;for(;s-1>i&&e.charCodeAt(s-1)===h;)s--;const o=s-i;let a=0;for(;a<t.length&&t.charCodeAt(a)===h;)a++;let l=t.length;for(;l-1>a&&t.charCodeAt(l-1)===h;)l--;const c=l-a,u=o<c?o:c;let d=-1,f=0;for(;f<u;f++){const n=e.charCodeAt(i+f);if(n!==t.charCodeAt(a+f))break;n===h&&(d=f)}if(f!==u){if(-1===d)return r}else{if(c>u){if(t.charCodeAt(a+f)===h)return r.slice(a+f+1);if(2===f)return r.slice(a+f)}o>u&&(e.charCodeAt(i+f)===h?d=f:2===f&&(d=3)),-1===d&&(d=0)}let m="";for(f=i+d+1;f<=s;++f)f!==s&&e.charCodeAt(f)!==h||(m+=0===m.length?"..":"\\..");return a+=d,m.length>0?`${m}${r.slice(a,l)}`:(r.charCodeAt(a)===h&&++a,r.slice(a,l))},toNamespacedPath(e){if("string"!==typeof e||0===e.length)return e;const t=v.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===h){if(t.charCodeAt(1)===h){const e=t.charCodeAt(2);if(63!==e&&e!==l)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(b(t.charCodeAt(0))&&t.charCodeAt(1)===u&&t.charCodeAt(2)===h)return`\\\\?\\${t}`;return e},dirname(e){g(e,"path");const t=e.length;if(0===t)return".";let n=-1,r=0;const i=e.charCodeAt(0);if(1===t)return m(i)?e:".";if(m(i)){if(n=r=1,m(e.charCodeAt(1))){let i=2,s=i;for(;i<t&&!m(e.charCodeAt(i));)i++;if(i<t&&i!==s){for(s=i;i<t&&m(e.charCodeAt(i));)i++;if(i<t&&i!==s){for(s=i;i<t&&!m(e.charCodeAt(i));)i++;if(i===t)return e;i!==s&&(n=r=i+1)}}}}else b(i)&&e.charCodeAt(1)===u&&(n=t>2&&m(e.charCodeAt(2))?3:2,r=n);let s=-1,o=!0;for(let a=t-1;a>=r;--a)if(m(e.charCodeAt(a))){if(!o){s=a;break}}else o=!1;if(-1===s){if(-1===n)return".";s=n}return e.slice(0,s)},basename(e,t){void 0!==t&&g(t,"suffix"),g(e,"path");let n,r=0,i=-1,s=!0;if(e.length>=2&&b(e.charCodeAt(0))&&e.charCodeAt(1)===u&&(r=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(n=e.length-1;n>=r;--n){const l=e.charCodeAt(n);if(m(l)){if(!s){r=n+1;break}}else-1===a&&(s=!1,a=n+1),o>=0&&(l===t.charCodeAt(o)?-1===--o&&(i=n):(o=-1,i=a))}return r===i?i=a:-1===i&&(i=e.length),e.slice(r,i)}for(n=e.length-1;n>=r;--n)if(m(e.charCodeAt(n))){if(!s){r=n+1;break}}else-1===i&&(s=!1,i=n+1);return-1===i?"":e.slice(r,i)},extname(e){g(e,"path");let t=0,n=-1,r=0,i=-1,s=!0,o=0;e.length>=2&&e.charCodeAt(1)===u&&b(e.charCodeAt(0))&&(t=r=2);for(let a=e.length-1;a>=t;--a){const t=e.charCodeAt(a);if(m(t)){if(!s){r=a+1;break}}else-1===i&&(s=!1,i=a+1),t===l?-1===n?n=a:1!==o&&(o=1):-1!==n&&(o=-1)}return-1===n||-1===i||0===o||1===o&&n===i-1&&n===r+1?"":e.slice(n,i)},format:k.bind(null,"\\"),parse(e){g(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.length;let r=0,i=e.charCodeAt(0);if(1===n)return m(i)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(m(i)){if(r=1,m(e.charCodeAt(1))){let t=2,i=t;for(;t<n&&!m(e.charCodeAt(t));)t++;if(t<n&&t!==i){for(i=t;t<n&&m(e.charCodeAt(t));)t++;if(t<n&&t!==i){for(i=t;t<n&&!m(e.charCodeAt(t));)t++;t===n?r=t:t!==i&&(r=t+1)}}}}else if(b(i)&&e.charCodeAt(1)===u){if(n<=2)return t.root=t.dir=e,t;if(r=2,m(e.charCodeAt(2))){if(3===n)return t.root=t.dir=e,t;r=3}}r>0&&(t.root=e.slice(0,r));let s=-1,o=r,a=-1,c=!0,h=e.length-1,d=0;for(;h>=r;--h)if(i=e.charCodeAt(h),m(i)){if(!c){o=h+1;break}}else-1===a&&(c=!1,a=h+1),i===l?-1===s?s=h:1!==d&&(d=1):-1!==s&&(d=-1);return-1!==a&&(-1===s||0===d||1===d&&s===a-1&&s===o+1?t.base=t.name=e.slice(o,a):(t.name=e.slice(o,s),t.base=e.slice(o,a),t.ext=e.slice(s,a))),t.dir=o>0&&o!==r?e.slice(0,o-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},C=(()=>{if(f){const e=/\\/g;return()=>{const t=o().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>o()})(),y={resolve(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const i=r>=0?e[r]:C();g(i,`paths[${r}]`),0!==i.length&&(t=`${i}/${t}`,n=i.charCodeAt(0)===c)}return t=_(t,!n,"/",p),n?`/${t}`:t.length>0?t:"."},normalize(e){if(g(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===c,n=e.charCodeAt(e.length-1)===c;return 0===(e=_(e,!t,"/",p)).length?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute:e=>(g(e,"path"),e.length>0&&e.charCodeAt(0)===c),join(...e){if(0===e.length)return".";let t;for(let n=0;n<e.length;++n){const r=e[n];g(r,"path"),r.length>0&&(void 0===t?t=r:t+=`/${r}`)}return void 0===t?".":y.normalize(t)},relative(e,t){if(g(e,"from"),g(t,"to"),e===t)return"";if((e=y.resolve(e))===(t=y.resolve(t)))return"";const n=e.length,r=n-1,i=t.length-1,s=r<i?r:i;let o=-1,a=0;for(;a<s;a++){const n=e.charCodeAt(1+a);if(n!==t.charCodeAt(1+a))break;n===c&&(o=a)}if(a===s)if(i>s){if(t.charCodeAt(1+a)===c)return t.slice(1+a+1);if(0===a)return t.slice(1+a)}else r>s&&(e.charCodeAt(1+a)===c?o=a:0===a&&(o=0));let l="";for(a=1+o+1;a<=n;++a)a!==n&&e.charCodeAt(a)!==c||(l+=0===l.length?"..":"/..");return`${l}${t.slice(1+o)}`},toNamespacedPath:e=>e,dirname(e){if(g(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===c;let n=-1,r=!0;for(let i=e.length-1;i>=1;--i)if(e.charCodeAt(i)===c){if(!r){n=i;break}}else r=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename(e,t){void 0!==t&&g(t,"ext"),g(e,"path");let n,r=0,i=-1,s=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(n=e.length-1;n>=0;--n){const l=e.charCodeAt(n);if(l===c){if(!s){r=n+1;break}}else-1===a&&(s=!1,a=n+1),o>=0&&(l===t.charCodeAt(o)?-1===--o&&(i=n):(o=-1,i=a))}return r===i?i=a:-1===i&&(i=e.length),e.slice(r,i)}for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===c){if(!s){r=n+1;break}}else-1===i&&(s=!1,i=n+1);return-1===i?"":e.slice(r,i)},extname(e){g(e,"path");let t=-1,n=0,r=-1,i=!0,s=0;for(let o=e.length-1;o>=0;--o){const a=e.charCodeAt(o);if(a!==c)-1===r&&(i=!1,r=o+1),a===l?-1===t?t=o:1!==s&&(s=1):-1!==t&&(s=-1);else if(!i){n=o+1;break}}return-1===t||-1===r||0===s||1===s&&t===r-1&&t===n+1?"":e.slice(t,r)},format:k.bind(null,"/"),parse(e){g(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.charCodeAt(0)===c;let r;n?(t.root="/",r=1):r=0;let i=-1,s=0,o=-1,a=!0,h=e.length-1,u=0;for(;h>=r;--h){const t=e.charCodeAt(h);if(t!==c)-1===o&&(a=!1,o=h+1),t===l?-1===i?i=h:1!==u&&(u=1):-1!==i&&(u=-1);else if(!a){s=h+1;break}}if(-1!==o){const r=0===s&&n?1:s;-1===i||0===u||1===u&&i===o-1&&i===s+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 s>0?t.dir=e.slice(0,s-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};y.win32=v.win32=v,y.posix=v.posix=y;const L=f?v.normalize:y.normalize,w=f?v.join:y.join,S=f?v.resolve:y.resolve,x=f?v.relative:y.relative,E=f?v.dirname:y.dirname,N=f?v.basename:y.basename,T=f?v.extname:y.extname,A=f?v.sep:y.sep},8067:(e,t,n)=>{"use strict";n.d(t,{H8:()=>P,HZ:()=>T,OS:()=>R,UP:()=>j,_p:()=>M,cm:()=>F,gm:()=>V,ib:()=>N,j9:()=>E,lg:()=>A,nr:()=>z,uF:()=>S,zx:()=>x});var r=n(8209);const i="en";let s,o,a=!1,l=!1,c=!1,h=!1,u=!1,d=!1,g=!1,f=!1,m=!1,p=!1,b=null,_=null,k=null;const v=globalThis;let C;"undefined"!==typeof v.vscode&&"undefined"!==typeof v.vscode.process?C=v.vscode.process:"undefined"!==typeof process&&"string"===typeof process?.versions?.node&&(C=process);const y="string"===typeof C?.versions?.electron,L=y&&"renderer"===C?.type;if("object"===typeof C){a="win32"===C.platform,l="darwin"===C.platform,c="linux"===C.platform,h=c&&!!C.env.SNAP&&!!C.env.SNAP_REVISION,g=y,m=!!C.env.CI||!!C.env.BUILD_ARTIFACTSTAGINGDIRECTORY,s=i,b=i;const e=C.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e);s=t.userLocale,_=t.osLocale,b=t.resolvedLanguage||i,k=t.languagePack?.translationsConfigFile}catch(q){}u=!0}else"object"!==typeof navigator||L?console.error("Unable to resolve platform."):(o=navigator.userAgent,a=o.indexOf("Windows")>=0,l=o.indexOf("Macintosh")>=0,f=(o.indexOf("Macintosh")>=0||o.indexOf("iPad")>=0||o.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,c=o.indexOf("Linux")>=0,p=o?.indexOf("Mobi")>=0,d=!0,b=r.i8()||i,s=navigator.language.toLowerCase(),_=s);let w=0;l?w=1:a?w=3:c&&(w=2);const S=a,x=l,E=c,N=u,T=d,A=d&&"function"===typeof v.importScripts?v.origin:void 0,I=o,O="function"===typeof v.postMessage&&!v.importScripts,M=(()=>{if(O){const e=[];v.addEventListener("message",(t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let n=0,r=e.length;n<r;n++){const r=e[n];if(r.id===t.data.vscodeScheduleAsyncWork)return e.splice(n,1),void r.callback()}}));let t=0;return n=>{const r=++t;e.push({id:r,callback:n}),v.postMessage({vscodeScheduleAsyncWork:r},"*")}}return e=>setTimeout(e)})(),R=l||f?2:a?1:3;let D=!0,B=!1;function F(){if(!B){B=!0;const e=new Uint8Array(2);e[0]=1,e[1]=2;const t=new Uint16Array(e.buffer);D=513===t[0]}return D}const P=!!(I&&I.indexOf("Chrome")>=0),V=!!(I&&I.indexOf("Firefox")>=0),z=!!(!P&&I&&I.indexOf("Safari")>=0),j=!!(I&&I.indexOf("Edg/")>=0);I&&I.indexOf("Android")},9403:(e,t,n)=>{"use strict";n.d(t,{B6:()=>m,P8:()=>d});var r=n(9326),i=n(6456),s=n(8821),o=n(8067),a=n(1508),l=n(9400);function c(e){return(0,l.I)(e,!0)}class h{constructor(e){this._ignorePathCasing=e}compare(e,t,n=!1){return e===t?0:(0,a.UD)(this.getComparisonKey(e,n),this.getComparisonKey(t,n))}isEqual(e,t,n=!1){return e===t||!(!e||!t)&&this.getComparisonKey(e,n)===this.getComparisonKey(t,n)}getComparisonKey(e,t=!1){return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:t?null:void 0}).toString()}isEqualOrParent(e,t,n=!1){if(e.scheme===t.scheme){if(e.scheme===i.ny.file)return r._1(c(e),c(t),this._ignorePathCasing(e))&&e.query===t.query&&(n||e.fragment===t.fragment);if(g(e.authority,t.authority))return r._1(e.path,t.path,this._ignorePathCasing(e),"/")&&e.query===t.query&&(n||e.fragment===t.fragment)}return!1}joinPath(e,...t){return l.r.joinPath(e,...t)}basenameOrAuthority(e){return d(e)||e.authority}basename(e){return s.SA.basename(e.path)}extname(e){return s.SA.extname(e.path)}dirname(e){if(0===e.path.length)return e;let t;return e.scheme===i.ny.file?t=l.r.file(s.pD(c(e))).path:(t=s.SA.dirname(e.path),e.authority&&t.length&&47!==t.charCodeAt(0)&&(console.error(`dirname("${e.toString})) resulted in a relative path`),t="/")),e.with({path:t})}normalizePath(e){if(!e.path.length)return e;let t;return t=e.scheme===i.ny.file?l.r.file(s.S8(c(e))).path:s.SA.normalize(e.path),e.with({path:t})}relativePath(e,t){if(e.scheme!==t.scheme||!g(e.authority,t.authority))return;if(e.scheme===i.ny.file){const n=s.V8(c(e),c(t));return o.uF?r.TH(n):n}let n=e.path||"/";const a=t.path||"/";if(this._ignorePathCasing(e)){let e=0;for(const t=Math.min(n.length,a.length);e<t&&(n.charCodeAt(e)===a.charCodeAt(e)||n.charAt(e).toLowerCase()===a.charAt(e).toLowerCase());e++);n=a.substr(0,e)+n.substr(e)}return s.SA.relative(n,a)}resolvePath(e,t){if(e.scheme===i.ny.file){const n=l.r.file(s.hd(c(e),t));return e.with({authority:n.authority,path:n.path})}return t=r.kb(t),e.with({path:s.SA.resolve(e.path,t)})}isAbsolutePath(e){return!!e.path&&"/"===e.path[0]}isEqualAuthority(e,t){return e===t||void 0!==e&&void 0!==t&&(0,a.Q_)(e,t)}hasTrailingPathSeparator(e,t=s.Vn){if(e.scheme===i.ny.file){const n=c(e);return n.length>r.Zn(n).length&&n[n.length-1]===t}{const t=e.path;return t.length>1&&47===t.charCodeAt(t.length-1)&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}}removeTrailingPathSeparator(e,t=s.Vn){return f(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e,t=s.Vn){let n=!1;if(e.scheme===i.ny.file){const i=c(e);n=void 0!==i&&i.length===r.Zn(i).length&&i[i.length-1]===t}else{t="/";const r=e.path;n=1===r.length&&47===r.charCodeAt(r.length-1)}return n||f(e,t)?e:e.with({path:e.path+"/"})}}const u=new h((()=>!1)),d=(new h((e=>e.scheme!==i.ny.file||!o.j9)),new h((e=>!0)),u.isEqual.bind(u),u.isEqualOrParent.bind(u),u.getComparisonKey.bind(u),u.basenameOrAuthority.bind(u),u.basename.bind(u)),g=(u.extname.bind(u),u.dirname.bind(u),u.joinPath.bind(u),u.normalizePath.bind(u),u.relativePath.bind(u),u.resolvePath.bind(u),u.isAbsolutePath.bind(u),u.isEqualAuthority.bind(u)),f=u.hasTrailingPathSeparator.bind(u);u.removeTrailingPathSeparator.bind(u),u.addTrailingPathSeparator.bind(u);var m;!function(e){e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=function(t){const n=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach((e=>{const[t,r]=e.split(":");t&&r&&n.set(t,r)}));const r=t.path.substring(0,t.path.indexOf(";"));return r&&n.set(e.META_DATA_MIME,r),n}}(m||(m={}))},8381:(e,t,n)=>{"use strict";n.d(t,{W:()=>i});const r=globalThis.performance&&"function"===typeof globalThis.performance.now;class i{static create(e){return new i(e)}constructor(e){this._now=r&&!1===e?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}}},1508:(e,t,n)=>{"use strict";n.d(t,{$X:()=>O,AV:()=>s,E_:()=>N,HG:()=>d,LJ:()=>y,LU:()=>B,NB:()=>l,OS:()=>c,Q_:()=>k,Ss:()=>R,UD:()=>f,Wv:()=>_,Z5:()=>w,_J:()=>I,aC:()=>A,bm:()=>a,eY:()=>h,jy:()=>o,km:()=>x,lT:()=>g,ne:()=>M,ns:()=>v,pc:()=>C,r_:()=>D,tk:()=>F,tl:()=>z,uz:()=>u,y_:()=>j,z_:()=>L});var r=n(1788),i=n(1090);function s(e){return!e||"string"!==typeof e||0===e.trim().length}function o(e){return e.replace(/[<>"'&]/g,(e=>{switch(e){case"<":return"<";case">":return">";case'"':return""";case"'":return"'";case"&":return"&"}return e}))}function a(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function l(e,t){if(!e||!t)return e;const n=t.length;if(0===n||0===e.length)return e;let r=0;for(;e.indexOf(t,r)===r;)r+=n;return e.substring(r)}function c(e,t,n={}){if(!e)throw new Error("Cannot create regex from empty string");t||(e=a(e)),n.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));let r="";return n.global&&(r+="g"),n.matchCase||(r+="i"),n.multiline&&(r+="m"),n.unicode&&(r+="u"),new RegExp(e,r)}function h(e){if("^"===e.source||"^$"===e.source||"$"===e.source||"^\\s*$"===e.source)return!1;return!(!e.exec("")||0!==e.lastIndex)}function u(e){return e.split(/\r\n|\r|\n/)}function d(e){for(let t=0,n=e.length;t<n;t++){const n=e.charCodeAt(t);if(32!==n&&9!==n)return t}return-1}function g(e,t=e.length-1){for(let n=t;n>=0;n--){const t=e.charCodeAt(n);if(32!==t&&9!==t)return n}return-1}function f(e,t){return e<t?-1:e>t?1:0}function m(e,t,n=0,r=e.length,i=0,s=t.length){for(;n<r&&i<s;n++,i++){const r=e.charCodeAt(n),s=t.charCodeAt(i);if(r<s)return-1;if(r>s)return 1}const o=r-n,a=s-i;return o<a?-1:o>a?1:0}function p(e,t,n=0,r=e.length,i=0,s=t.length){for(;n<r&&i<s;n++,i++){let o=e.charCodeAt(n),a=t.charCodeAt(i);if(o===a)continue;if(o>=128||a>=128)return m(e.toLowerCase(),t.toLowerCase(),n,r,i,s);b(o)&&(o-=32),b(a)&&(a-=32);const l=o-a;if(0!==l)return l}const o=r-n,a=s-i;return o<a?-1:o>a?1:0}function b(e){return e>=97&&e<=122}function _(e){return e>=65&&e<=90}function k(e,t){return e.length===t.length&&0===p(e,t)}function v(e,t){const n=t.length;return!(t.length>e.length)&&0===p(e,t,0,n)}function C(e){return 55296<=e&&e<=56319}function y(e){return 56320<=e&&e<=57343}function L(e,t){return t-56320+(e-55296<<10)+65536}function w(e,t,n){const r=e.charCodeAt(n);if(C(r)&&n+1<t){const t=e.charCodeAt(n+1);if(y(t))return L(r,t)}return r}class S{get offset(){return this._offset}constructor(e,t=0){this._str=e,this._len=e.length,this._offset=t}setOffset(e){this._offset=e}prevCodePoint(){const e=function(e,t){const n=e.charCodeAt(t-1);if(y(n)&&t>1){const r=e.charCodeAt(t-2);if(C(r))return L(r,n)}return n}(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){const e=w(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class x{get offset(){return this._iterator.offset}constructor(e,t=0){this._iterator=new S(e,t)}nextGraphemeLength(){const e=V.getInstance(),t=this._iterator,n=t.offset;let r=e.getGraphemeBreakType(t.nextCodePoint());for(;!t.eol();){const n=t.offset,i=e.getGraphemeBreakType(t.nextCodePoint());if(P(r,i)){t.setOffset(n);break}r=i}return t.offset-n}prevGraphemeLength(){const e=V.getInstance(),t=this._iterator,n=t.offset;let r=e.getGraphemeBreakType(t.prevCodePoint());for(;t.offset>0;){const n=t.offset,i=e.getGraphemeBreakType(t.prevCodePoint());if(P(i,r)){t.setOffset(n);break}r=i}return n-t.offset}eol(){return this._iterator.eol()}}let E;function N(e){return E||(E=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/),E.test(e)}const T=/^[\t\n\r\x20-\x7E]*$/;function A(e){return T.test(e)}const I=/[\u2028\u2029]/;function O(e){return I.test(e)}function M(e){return e>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function R(e){return e>=127462&&e<=127487||8986===e||8987===e||9200===e||9203===e||e>=9728&&e<=10175||11088===e||11093===e||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129008||e>=129280&&e<=129535||e>=129648&&e<=129782}const D=String.fromCharCode(65279);function B(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}function F(e){return(e%=52)<26?String.fromCharCode(97+e):String.fromCharCode(65+e-26)}function P(e,t){return 0===e?5!==t&&7!==t:(2!==e||3!==t)&&(4===e||2===e||3===e||(4===t||2===t||3===t||(8!==e||8!==t&&9!==t&&11!==t&&12!==t)&&((11!==e&&9!==e||9!==t&&10!==t)&&((12!==e&&10!==e||10!==t)&&(5!==t&&13!==t&&(7!==t&&(1!==e&&((13!==e||14!==t)&&(6!==e||6!==t)))))))))}class V{static{this._INSTANCE=null}static getInstance(){return V._INSTANCE||(V._INSTANCE=new V),V._INSTANCE}constructor(){this._data=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]")}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;const t=this._data,n=t.length/3;let r=1;for(;r<=n;)if(e<t[3*r])r*=2;else{if(!(e>t[3*r+1]))return t[3*r+2];r=2*r+1}return 0}}class z{static{this.ambiguousCharacterData=new i.d((()=>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,8218,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,8242,96,1370,96,1523,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,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,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,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,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,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,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,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,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,71922,67,71913,67,65315,67,8557,67,8450,67,8493,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,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,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,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,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,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,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,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,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,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,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,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,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,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,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,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,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,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,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,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,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,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,71919,87,71910,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,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,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,66293,90,71909,90,65338,90,8484,90,8488,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,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,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,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,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,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,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,65283,35,65292,44,65307,59],"ko":[8211,45,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,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,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,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[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,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,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,65283,35,65307,59]}')))}static{this.cache=new r.o5({getCacheKey:JSON.stringify},(e=>{function t(e){const t=new Map;for(let n=0;n<e.length;n+=2)t.set(e[n],e[n+1]);return t}function n(e,t){if(!e)return t;const n=new Map;for(const[r,i]of e)t.has(r)&&n.set(r,i);return n}const r=this.ambiguousCharacterData.value;let i,s=e.filter((e=>!e.startsWith("_")&&e in r));0===s.length&&(s=["_default"]);for(const a of s){i=n(i,t(r[a]))}const o=function(e,t){const n=new Map(e);for(const[r,i]of t)n.set(r,i);return n}(t(r._common),i);return new z(o)}))}static getInstance(e){return z.cache.get(Array.from(e))}static{this._locales=new i.d((()=>Object.keys(z.ambiguousCharacterData.value).filter((e=>!e.startsWith("_")))))}static getLocales(){return z._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())}}class j{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,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,12288,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]")}static{this._data=void 0}static getData(){return this._data||(this._data=new Set(j.getRawData())),this._data}static isInvisibleCharacter(e){return j.getData().has(e)}static get codePoints(){return j.getData()}}},631:(e,t,n)=>{"use strict";function r(e){return"string"===typeof e}function i(e){return"object"===typeof e&&null!==e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function s(e){return"undefined"===typeof e}function o(e){return s(e)||null===e}n.d(t,{Gv:()=>i,Kg:()=>r,b0:()=>s,z:()=>o})},5152:(e,t,n)=>{"use strict";function r(e){return e<0?0:e>255?255:0|e}function i(e){return e<0?0:e>4294967295?4294967295:0|e}n.d(t,{W:()=>r,j:()=>i})},9400:(e,t,n)=>{"use strict";n.d(t,{I:()=>b,r:()=>u});var r=n(8821),i=n(8067);const s=/^\w[\w\d+.-]*$/,o=/^\//,a=/^\/\//;const l="",c="/",h=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class u{static isUri(e){return e instanceof u||!!e&&("string"===typeof e.authority&&"string"===typeof e.fragment&&"string"===typeof e.path&&"string"===typeof e.query&&"string"===typeof e.scheme&&"string"===typeof e.fsPath&&"function"===typeof e.with&&"function"===typeof e.toString)}constructor(e,t,n,r,i,h=!1){"object"===typeof e?(this.scheme=e.scheme||l,this.authority=e.authority||l,this.path=e.path||l,this.query=e.query||l,this.fragment=e.fragment||l):(this.scheme=function(e,t){return e||t?e:"file"}(e,h),this.authority=t||l,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==c&&(t=c+t):t=c}return t}(this.scheme,n||l),this.query=r||l,this.fragment=i||l,function(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!s.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!o.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(a.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,h))}get fsPath(){return b(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:i,fragment:s}=e;return void 0===t?t=this.scheme:null===t&&(t=l),void 0===n?n=this.authority:null===n&&(n=l),void 0===r?r=this.path:null===r&&(r=l),void 0===i?i=this.query:null===i&&(i=l),void 0===s?s=this.fragment:null===s&&(s=l),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&s===this.fragment?this:new g(t,n,r,i,s)}static parse(e,t=!1){const n=h.exec(e);return n?new g(n[2]||l,C(n[4]||l),C(n[5]||l),C(n[7]||l),C(n[9]||l),t):new g(l,l,l,l,l)}static file(e){let t=l;if(i.uF&&(e=e.replace(/\\/g,c)),e[0]===c&&e[1]===c){const n=e.indexOf(c,2);-1===n?(t=e.substring(2),e=c):(t=e.substring(2,n),e=e.substring(n)||c)}return new g("file",t,e,l,l)}static from(e,t){return new g(e.scheme,e.authority,e.path,e.query,e.fragment,t)}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let n;return n=i.uF&&"file"===e.scheme?u.file(r.IN.join(b(e,!0),...t)).path:r.SA.join(e.path,...t),e.with({path:n})}toString(e=!1){return _(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof u)return e;{const t=new g(e);return t._formatted=e.external??null,t._fsPath=e._sep===d?e.fsPath??null:null,t}}return e}}const d=i.uF?1:void 0;class g extends u{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=b(this,!1)),this._fsPath}toString(e=!1){return e?_(this,!0):(this._formatted||(this._formatted=_(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=d),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}}const f={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 m(e,t,n){let r,i=-1;for(let s=0;s<e.length;s++){const o=e.charCodeAt(s);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o||n&&91===o||n&&93===o||n&&58===o)-1!==i&&(r+=encodeURIComponent(e.substring(i,s)),i=-1),void 0!==r&&(r+=e.charAt(s));else{void 0===r&&(r=e.substr(0,s));const t=f[o];void 0!==t?(-1!==i&&(r+=encodeURIComponent(e.substring(i,s)),i=-1),r+=t):-1===i&&(i=s)}}return-1!==i&&(r+=encodeURIComponent(e.substring(i))),void 0!==r?r:e}function p(e){let t;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);35===r||63===r?(void 0===t&&(t=e.substr(0,n)),t+=f[r]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function b(e,t){let n;return n=e.authority&&e.path.length>1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,i.uF&&(n=n.replace(/\//g,"\\")),n}function _(e,t){const n=t?p:m;let r="",{scheme:i,authority:s,path:o,query:a,fragment:l}=e;if(i&&(r+=i,r+=":"),(s||"file"===i)&&(r+=c,r+=c),s){let e=s.indexOf("@");if(-1!==e){const t=s.substr(0,e);s=s.substr(e+1),e=t.lastIndexOf(":"),-1===e?r+=n(t,!1,!1):(r+=n(t.substr(0,e),!1,!1),r+=":",r+=n(t.substr(e+1),!1,!0)),r+="@"}s=s.toLowerCase(),e=s.lastIndexOf(":"),-1===e?r+=n(s,!1,!0):(r+=n(s.substr(0,e),!1,!0),r+=s.substr(e))}if(o){if(o.length>=3&&47===o.charCodeAt(0)&&58===o.charCodeAt(2)){const e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&58===o.charCodeAt(1)){const e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}r+=n(o,!0,!1)}return a&&(r+="?",r+=n(a,!1,!1)),l&&(r+="#",r+=t?l:m(l,!1,!1)),r}function k(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+k(e.substr(3)):e}}const v=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function C(e){return e.match(v)?e.replace(v,(e=>k(e))):e}},1929:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SimpleWorkerClient:()=>k,SimpleWorkerServer:()=>y,create:()=>L,logOnceWebWorkerWarning:()=>d});var r=n(4383),i=n(1234),s=n(1484),o=n(6456),a=n(8067),l=n(1508);const c="default",h="$initialize";let u=!1;function d(e){a.HZ&&(u||(u=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(e.message))}class g{constructor(e,t,n,r,i){this.vsWorker=e,this.req=t,this.channel=n,this.method=r,this.args=i,this.type=0}}class f{constructor(e,t,n,r){this.vsWorker=e,this.seq=t,this.res=n,this.err=r,this.type=1}}class m{constructor(e,t,n,r,i){this.vsWorker=e,this.req=t,this.channel=n,this.eventName=r,this.arg=i,this.type=2}}class p{constructor(e,t,n){this.vsWorker=e,this.req=t,this.event=n,this.type=3}}class b{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class _{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,t,n){const r=String(++this._lastSentReq);return new Promise(((i,s)=>{this._pendingReplies[r]={resolve:i,reject:s},this._send(new g(this._workerId,r,e,t,n))}))}listen(e,t,n){let r=null;const s=new i.vl({onWillAddFirstListener:()=>{r=String(++this._lastSentReq),this._pendingEmitters.set(r,s),this._send(new m(this._workerId,r,e,t,n))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(r),this._send(new b(this._workerId,r)),r=null}});return s.event}handleMessage(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))}createProxyToRemoteChannel(e,t){const n={get:(n,r)=>("string"!==typeof r||n[r]||(C(r)?n[r]=t=>this.listen(e,r,t):v(r)?n[r]=this.listen(e,r,void 0):36===r.charCodeAt(0)&&(n[r]=async(...n)=>(await(t?.()),this.sendMessage(e,r,n)))),n[r])};return new Proxy(Object.create(null),n)}_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])return void console.warn("Got reply to unknown seq");const t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let n=e.err;return e.err.$isError&&(n=new Error,n.name=e.err.name,n.message=e.err.message,n.stack=e.err.stack),void t.reject(n)}t.resolve(e.res)}_handleRequestMessage(e){const t=e.req;this._handler.handleMessage(e.channel,e.method,e.args).then((e=>{this._send(new f(this._workerId,t,e,void 0))}),(e=>{e.detail instanceof Error&&(e.detail=(0,r.cU)(e.detail)),this._send(new f(this._workerId,t,void 0,(0,r.cU)(e)))}))}_handleSubscribeEventMessage(e){const t=e.req,n=this._handler.handleEvent(e.channel,e.eventName,e.arg)((e=>{this._send(new p(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){const t=[];if(0===e.type)for(let n=0;n<e.args.length;n++)e.args[n]instanceof ArrayBuffer&&t.push(e.args[n]);else 1===e.type&&e.res instanceof ArrayBuffer&&t.push(e.res);this._handler.sendMessage(e,t)}}class k extends s.jG{constructor(e,t){super(),this._localChannels=new Map,this._worker=this._register(e.create({amdModuleId:"vs/base/common/worker/simpleWorker",esmModuleLocation:t.esmModuleLocation,label:t.label},(e=>{this._protocol.handleMessage(e)}),(e=>{(0,r.dz)(e)}))),this._protocol=new _({sendMessage:(e,t)=>{this._worker.postMessage(e,t)},handleMessage:(e,t,n)=>this._handleMessage(e,t,n),handleEvent:(e,t,n)=>this._handleEvent(e,t,n)}),this._protocol.setWorkerId(this._worker.getId());let n=null;const i=globalThis.require;"undefined"!==typeof i&&"function"===typeof i.getConfig?n=i.getConfig():"undefined"!==typeof globalThis.requirejs&&(n=globalThis.requirejs.s.contexts._.config),this._onModuleLoaded=this._protocol.sendMessage(c,h,[this._worker.getId(),JSON.parse(JSON.stringify(n)),t.amdModuleId]),this.proxy=this._protocol.createProxyToRemoteChannel(c,(async()=>{await this._onModuleLoaded})),this._onModuleLoaded.catch((e=>{this._onError("Worker failed to load "+t.amdModuleId,e)}))}_handleMessage(e,t,n){const r=this._localChannels.get(e);if(!r)return Promise.reject(new Error(`Missing channel ${e} on main thread`));if("function"!==typeof r[t])return Promise.reject(new Error(`Missing method ${t} on main thread channel ${e}`));try{return Promise.resolve(r[t].apply(r,n))}catch(i){return Promise.reject(i)}}_handleEvent(e,t,n){const r=this._localChannels.get(e);if(!r)throw new Error(`Missing channel ${e} on main thread`);if(C(t)){const i=r[t].call(r,n);if("function"!==typeof i)throw new Error(`Missing dynamic event ${t} on main thread channel ${e}.`);return i}if(v(t)){const n=r[t];if("function"!==typeof n)throw new Error(`Missing event ${t} on main thread channel ${e}.`);return n}throw new Error(`Malformed event name ${t}`)}setChannel(e,t){this._localChannels.set(e,t)}_onError(e,t){console.error(e),console.info(t)}}function v(e){return"o"===e[0]&&"n"===e[1]&&l.Wv(e.charCodeAt(2))}function C(e){return/^onDynamic/.test(e)&&l.Wv(e.charCodeAt(9))}class y{constructor(e,t){this._localChannels=new Map,this._remoteChannels=new Map,this._requestHandlerFactory=t,this._requestHandler=null,this._protocol=new _({sendMessage:(t,n)=>{e(t,n)},handleMessage:(e,t,n)=>this._handleMessage(e,t,n),handleEvent:(e,t,n)=>this._handleEvent(e,t,n)})}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,t,n){if(e===c&&t===h)return this.initialize(n[0],n[1],n[2]);const r=e===c?this._requestHandler:this._localChannels.get(e);if(!r)return Promise.reject(new Error(`Missing channel ${e} on worker thread`));if("function"!==typeof r[t])return Promise.reject(new Error(`Missing method ${t} on worker thread channel ${e}`));try{return Promise.resolve(r[t].apply(r,n))}catch(i){return Promise.reject(i)}}_handleEvent(e,t,n){const r=e===c?this._requestHandler:this._localChannels.get(e);if(!r)throw new Error(`Missing channel ${e} on worker thread`);if(C(t)){const e=r[t].call(r,n);if("function"!==typeof e)throw new Error(`Missing dynamic event ${t} on request handler.`);return e}if(v(t)){const e=r[t];if("function"!==typeof e)throw new Error(`Missing event ${t} on request handler.`);return e}throw new Error(`Malformed event name ${t}`)}getChannel(e){if(!this._remoteChannels.has(e)){const t=this._protocol.createProxyToRemoteChannel(e);this._remoteChannels.set(e,t)}return this._remoteChannels.get(e)}async initialize(e,t,r){if(this._protocol.setWorkerId(e),!this._requestHandlerFactory){t&&("undefined"!==typeof t.baseUrl&&delete t.baseUrl,"undefined"!==typeof t.paths&&"undefined"!==typeof t.paths.vs&&delete t.paths.vs,"undefined"!==typeof t.trustedTypesPolicy&&delete t.trustedTypesPolicy,t.catchError=!0,globalThis.require.config(t));{const e=o.zl.asBrowserUri(`${r}.js`).toString(!0);return n(5890)(`${e}`).then((e=>{if(this._requestHandler=e.create(this),!this._requestHandler)throw new Error("No RequestHandler!")}))}}this._requestHandler=this._requestHandlerFactory(this)}}function L(e){return new y(e,null)}},534:(e,t,n)=>{"use strict";n.d(t,{V:()=>i});var r=n(5152);class i{constructor(e){const t=(0,r.W)(e);this._defaultValue=t,this._asciiMap=i._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){const t=new Uint8Array(256);return t.fill(e),t}set(e,t){const n=(0,r.W)(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()}}},7119:(e,t,n)=>{"use strict";n.d(t,{AQ:()=>b,aZ:()=>p,l5:()=>C,lQ:()=>k,s7:()=>w,sH:()=>y,sN:()=>_,ss:()=>v,yI:()=>m,zp:()=>L});var r=n(8209),i=n(7661),s=n(5845),o=n(5724);const a=(0,s.x1A)("editor.lineHighlightBackground",null,r.kg("lineHighlight","Background color for the highlight of line at the cursor position.")),l=((0,s.x1A)("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hcDark:"#f38518",hcLight:s.b1q},r.kg("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),(0,s.x1A)("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hcDark:null,hcLight:null},r.kg("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1A)("editor.rangeHighlightBorder",{dark:null,light:null,hcDark:s.buw,hcLight:s.buw},r.kg("rangeHighlightBorder","Background color of the border around highlighted ranges.")),(0,s.x1A)("editor.symbolHighlightBackground",{dark:s.Ubg,light:s.Ubg,hcDark:null,hcLight:null},r.kg("symbolHighlight","Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1A)("editor.symbolHighlightBorder",{dark:null,light:null,hcDark:s.buw,hcLight:s.buw},r.kg("symbolHighlightBorder","Background color of the border around highlighted symbols.")),(0,s.x1A)("editorCursor.foreground",{dark:"#AEAFAD",light:i.Q1.black,hcDark:i.Q1.white,hcLight:"#0F4A85"},r.kg("caret","Color of the editor cursor."))),c=(0,s.x1A)("editorCursor.background",null,r.kg("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),h=((0,s.x1A)("editorMultiCursor.primary.foreground",l,r.kg("editorMultiCursorPrimaryForeground","Color of the primary editor cursor when multiple cursors are present.")),(0,s.x1A)("editorMultiCursor.primary.background",c,r.kg("editorMultiCursorPrimaryBackground","The background color of the primary editor cursor when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),(0,s.x1A)("editorMultiCursor.secondary.foreground",l,r.kg("editorMultiCursorSecondaryForeground","Color of secondary editor cursors when multiple cursors are present.")),(0,s.x1A)("editorMultiCursor.secondary.background",c,r.kg("editorMultiCursorSecondaryBackground","The background color of secondary editor cursors when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),(0,s.x1A)("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hcDark:"#e3e4e229",hcLight:"#CCCCCC"},r.kg("editorWhitespaces","Color of whitespace characters in the editor."))),u=((0,s.x1A)("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hcDark:i.Q1.white,hcLight:"#292929"},r.kg("editorLineNumbers","Color of editor line numbers.")),(0,s.x1A)("editorIndentGuide.background",h,r.kg("editorIndentGuides","Color of the editor indentation guides."),!1,r.kg("deprecatedEditorIndentGuides","'editorIndentGuide.background' is deprecated. Use 'editorIndentGuide.background1' instead."))),d=(0,s.x1A)("editorIndentGuide.activeBackground",h,r.kg("editorActiveIndentGuide","Color of the active editor indentation guides."),!1,r.kg("deprecatedEditorActiveIndentGuide","'editorIndentGuide.activeBackground' is deprecated. Use 'editorIndentGuide.activeBackground1' instead.")),g=((0,s.x1A)("editorIndentGuide.background1",u,r.kg("editorIndentGuides1","Color of the editor indentation guides (1).")),(0,s.x1A)("editorIndentGuide.background2","#00000000",r.kg("editorIndentGuides2","Color of the editor indentation guides (2).")),(0,s.x1A)("editorIndentGuide.background3","#00000000",r.kg("editorIndentGuides3","Color of the editor indentation guides (3).")),(0,s.x1A)("editorIndentGuide.background4","#00000000",r.kg("editorIndentGuides4","Color of the editor indentation guides (4).")),(0,s.x1A)("editorIndentGuide.background5","#00000000",r.kg("editorIndentGuides5","Color of the editor indentation guides (5).")),(0,s.x1A)("editorIndentGuide.background6","#00000000",r.kg("editorIndentGuides6","Color of the editor indentation guides (6).")),(0,s.x1A)("editorIndentGuide.activeBackground1",d,r.kg("editorActiveIndentGuide1","Color of the active editor indentation guides (1).")),(0,s.x1A)("editorIndentGuide.activeBackground2","#00000000",r.kg("editorActiveIndentGuide2","Color of the active editor indentation guides (2).")),(0,s.x1A)("editorIndentGuide.activeBackground3","#00000000",r.kg("editorActiveIndentGuide3","Color of the active editor indentation guides (3).")),(0,s.x1A)("editorIndentGuide.activeBackground4","#00000000",r.kg("editorActiveIndentGuide4","Color of the active editor indentation guides (4).")),(0,s.x1A)("editorIndentGuide.activeBackground5","#00000000",r.kg("editorActiveIndentGuide5","Color of the active editor indentation guides (5).")),(0,s.x1A)("editorIndentGuide.activeBackground6","#00000000",r.kg("editorActiveIndentGuide6","Color of the active editor indentation guides (6).")),(0,s.x1A)("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hcDark:s.buw,hcLight:s.buw},r.kg("editorActiveLineNumber","Color of editor active line number"),!1,r.kg("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead."))),f=((0,s.x1A)("editorLineNumber.activeForeground",g,r.kg("editorActiveLineNumber","Color of editor active line number")),(0,s.x1A)("editorLineNumber.dimmedForeground",null,r.kg("editorDimmedLineNumber","Color of the final editor line when editor.renderFinalNewline is set to dimmed.")),(0,s.x1A)("editorRuler.foreground",{dark:"#5A5A5A",light:i.Q1.lightgrey,hcDark:i.Q1.white,hcLight:"#292929"},r.kg("editorRuler","Color of the editor rulers.")),(0,s.x1A)("editorCodeLens.foreground",{dark:"#999999",light:"#919191",hcDark:"#999999",hcLight:"#292929"},r.kg("editorCodeLensForeground","Foreground color of editor CodeLens")),(0,s.x1A)("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hcDark:"#0064001a",hcLight:"#0000"},r.kg("editorBracketMatchBackground","Background color behind matching brackets")),(0,s.x1A)("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hcDark:s.b1q,hcLight:s.b1q},r.kg("editorBracketMatchBorder","Color for matching brackets boxes")),(0,s.x1A)("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hcDark:"#7f7f7f4d",hcLight:"#666666"},r.kg("editorOverviewRulerBorder","Color of the overview ruler border.")),(0,s.x1A)("editorOverviewRuler.background",null,r.kg("editorOverviewRulerBackground","Background color of the editor overview ruler.")),(0,s.x1A)("editorGutter.background",s.YtV,r.kg("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),(0,s.x1A)("editorUnnecessaryCode.border",{dark:null,light:null,hcDark:i.Q1.fromHex("#fff").transparent(.8),hcLight:s.b1q},r.kg("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),(0,s.x1A)("editorUnnecessaryCode.opacity",{dark:i.Q1.fromHex("#000a"),light:i.Q1.fromHex("#0007"),hcDark:null,hcLight:null},r.kg("unnecessaryCodeOpacity","Opacity of unnecessary (unused) source code in the editor. For example, \"#000000c0\" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out.")),(0,s.x1A)("editorGhostText.border",{dark:null,light:null,hcDark:i.Q1.fromHex("#fff").transparent(.8),hcLight:i.Q1.fromHex("#292929").transparent(.8)},r.kg("editorGhostTextBorder","Border color of ghost text in the editor.")),(0,s.x1A)("editorGhostText.foreground",{dark:i.Q1.fromHex("#ffffff56"),light:i.Q1.fromHex("#0007"),hcDark:null,hcLight:null},r.kg("editorGhostTextForeground","Foreground color of the ghost text in the editor.")),(0,s.x1A)("editorGhostText.background",null,r.kg("editorGhostTextBackground","Background color of the ghost text in the editor.")),new i.Q1(new i.bU(0,122,204,.6))),m=((0,s.x1A)("editorOverviewRuler.rangeHighlightForeground",f,r.kg("overviewRulerRangeHighlight","Overview ruler marker color for range highlights. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1A)("editorOverviewRuler.errorForeground",{dark:new i.Q1(new i.bU(255,18,18,.7)),light:new i.Q1(new i.bU(255,18,18,.7)),hcDark:new i.Q1(new i.bU(255,50,50,1)),hcLight:"#B5200D"},r.kg("overviewRuleError","Overview ruler marker color for errors."))),p=(0,s.x1A)("editorOverviewRuler.warningForeground",{dark:s.Hng,light:s.Hng,hcDark:s.Stt,hcLight:s.Stt},r.kg("overviewRuleWarning","Overview ruler marker color for warnings.")),b=(0,s.x1A)("editorOverviewRuler.infoForeground",{dark:s.pOz,light:s.pOz,hcDark:s.IIb,hcLight:s.IIb},r.kg("overviewRuleInfo","Overview ruler marker color for infos.")),_=(0,s.x1A)("editorBracketHighlight.foreground1",{dark:"#FFD700",light:"#0431FAFF",hcDark:"#FFD700",hcLight:"#0431FAFF"},r.kg("editorBracketHighlightForeground1","Foreground color of brackets (1). Requires enabling bracket pair colorization.")),k=(0,s.x1A)("editorBracketHighlight.foreground2",{dark:"#DA70D6",light:"#319331FF",hcDark:"#DA70D6",hcLight:"#319331FF"},r.kg("editorBracketHighlightForeground2","Foreground color of brackets (2). Requires enabling bracket pair colorization.")),v=(0,s.x1A)("editorBracketHighlight.foreground3",{dark:"#179FFF",light:"#7B3814FF",hcDark:"#87CEFA",hcLight:"#7B3814FF"},r.kg("editorBracketHighlightForeground3","Foreground color of brackets (3). Requires enabling bracket pair colorization.")),C=(0,s.x1A)("editorBracketHighlight.foreground4","#00000000",r.kg("editorBracketHighlightForeground4","Foreground color of brackets (4). Requires enabling bracket pair colorization.")),y=(0,s.x1A)("editorBracketHighlight.foreground5","#00000000",r.kg("editorBracketHighlightForeground5","Foreground color of brackets (5). Requires enabling bracket pair colorization.")),L=(0,s.x1A)("editorBracketHighlight.foreground6","#00000000",r.kg("editorBracketHighlightForeground6","Foreground color of brackets (6). Requires enabling bracket pair colorization.")),w=(0,s.x1A)("editorBracketHighlight.unexpectedBracket.foreground",{dark:new i.Q1(new i.bU(255,18,18,.8)),light:new i.Q1(new i.bU(255,18,18,.8)),hcDark:"new Color(new RGBA(255, 50, 50, 1))",hcLight:"#B5200D"},r.kg("editorBracketHighlightUnexpectedBracketForeground","Foreground color of unexpected brackets."));(0,s.x1A)("editorBracketPairGuide.background1","#00000000",r.kg("editorBracketPairGuide.background1","Background color of inactive bracket pair guides (1). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background2","#00000000",r.kg("editorBracketPairGuide.background2","Background color of inactive bracket pair guides (2). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background3","#00000000",r.kg("editorBracketPairGuide.background3","Background color of inactive bracket pair guides (3). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background4","#00000000",r.kg("editorBracketPairGuide.background4","Background color of inactive bracket pair guides (4). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background5","#00000000",r.kg("editorBracketPairGuide.background5","Background color of inactive bracket pair guides (5). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background6","#00000000",r.kg("editorBracketPairGuide.background6","Background color of inactive bracket pair guides (6). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground1","#00000000",r.kg("editorBracketPairGuide.activeBackground1","Background color of active bracket pair guides (1). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground2","#00000000",r.kg("editorBracketPairGuide.activeBackground2","Background color of active bracket pair guides (2). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground3","#00000000",r.kg("editorBracketPairGuide.activeBackground3","Background color of active bracket pair guides (3). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground4","#00000000",r.kg("editorBracketPairGuide.activeBackground4","Background color of active bracket pair guides (4). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground5","#00000000",r.kg("editorBracketPairGuide.activeBackground5","Background color of active bracket pair guides (5). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground6","#00000000",r.kg("editorBracketPairGuide.activeBackground6","Background color of active bracket pair guides (6). Requires enabling bracket pair guides.")),(0,s.x1A)("editorUnicodeHighlight.border",s.Hng,r.kg("editorUnicodeHighlight.border","Border color used to highlight unicode characters.")),(0,s.x1A)("editorUnicodeHighlight.background",s.whs,r.kg("editorUnicodeHighlight.background","Background color used to highlight unicode characters."));(0,o.zy)(((e,t)=>{const n=e.getColor(s.YtV),r=e.getColor(a),i=r&&!r.isTransparent()?r:n;i&&t.addRule(`.monaco-editor .inputarea.ime-input { background-color: ${i}; }`)}))},4454:(e,t,n)=>{"use strict";function r(e){let t=0,n=0,r=0,i=0;for(let s=0,o=e.length;s<o;s++){const a=e.charCodeAt(s);13===a?(0===t&&(n=s),t++,s+1<o&&10===e.charCodeAt(s+1)?(i|=2,s++):i|=3,r=s+1):10===a&&(i|=1,0===t&&(n=s),t++,r=s+1)}return 0===t&&(n=e.length),[t,n,e.length-r,i]}n.d(t,{W:()=>r})},6571:(e,t,n)=>{"use strict";n.d(t,{M:()=>a,S:()=>l});var r=n(4383),i=n(4444),s=n(6677),o=n(6041);class a{static fromRangeInclusive(e){return new a(e.startLineNumber,e.endLineNumber+1)}static joinMany(e){if(0===e.length)return[];let t=new l(e[0].slice());for(let n=1;n<e.length;n++)t=t.getUnion(new l(e[n].slice()));return t.ranges}static join(e){if(0===e.length)throw new r.D7("lineRanges cannot be empty");let t=e[0].startLineNumber,n=e[0].endLineNumberExclusive;for(let r=1;r<e.length;r++)t=Math.min(t,e[r].startLineNumber),n=Math.max(n,e[r].endLineNumberExclusive);return new a(t,n)}static ofLength(e,t){return new a(e,e+t)}static deserialize(e){return new a(e[0],e[1])}constructor(e,t){if(e>t)throw new r.D7(`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(e){return new a(this.startLineNumber+e,this.endLineNumberExclusive+e)}deltaLength(e){return new a(this.startLineNumber,this.endLineNumberExclusive+e)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(e){return new a(Math.min(this.startLineNumber,e.startLineNumber),Math.max(this.endLineNumberExclusive,e.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(e){const t=Math.max(this.startLineNumber,e.startLineNumber),n=Math.min(this.endLineNumberExclusive,e.endLineNumberExclusive);if(t<=n)return new a(t,n)}intersectsStrict(e){return this.startLineNumber<e.endLineNumberExclusive&&e.startLineNumber<this.endLineNumberExclusive}overlapOrTouch(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 s.Q(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new s.Q(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(e){const 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]}includes(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}toOffsetRange(){return new i.L(this.startLineNumber-1,this.endLineNumberExclusive-1)}}class l{constructor(e=[]){this._normalizedRanges=e}get ranges(){return this._normalizedRanges}addRange(e){if(0===e.length)return;const t=(0,o.hw)(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),n=(0,o.iM)(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===n)this._normalizedRanges.splice(t,0,e);else if(t===n-1){const n=this._normalizedRanges[t];this._normalizedRanges[t]=n.join(e)}else{const r=this._normalizedRanges[t].join(this._normalizedRanges[n-1]).join(e);this._normalizedRanges.splice(t,n-t,r)}}contains(e){const t=(0,o.lx)(this._normalizedRanges,(t=>t.startLineNumber<=e));return!!t&&t.endLineNumberExclusive>e}intersects(e){const t=(0,o.lx)(this._normalizedRanges,(t=>t.startLineNumber<e.endLineNumberExclusive));return!!t&&t.endLineNumberExclusive>e.startLineNumber}getUnion(e){if(0===this._normalizedRanges.length)return e;if(0===e._normalizedRanges.length)return this;const t=[];let n=0,r=0,i=null;for(;n<this._normalizedRanges.length||r<e._normalizedRanges.length;){let s=null;if(n<this._normalizedRanges.length&&r<e._normalizedRanges.length){const t=this._normalizedRanges[n],i=e._normalizedRanges[r];t.startLineNumber<i.startLineNumber?(s=t,n++):(s=i,r++)}else n<this._normalizedRanges.length?(s=this._normalizedRanges[n],n++):(s=e._normalizedRanges[r],r++);null===i?i=s:i.endLineNumberExclusive>=s.startLineNumber?i=new a(i.startLineNumber,Math.max(i.endLineNumberExclusive,s.endLineNumberExclusive)):(t.push(i),i=s)}return null!==i&&t.push(i),new l(t)}subtractFrom(e){const t=(0,o.hw)(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),n=(0,o.iM)(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===n)return new l([e]);const r=[];let i=e.startLineNumber;for(let s=t;s<n;s++){const e=this._normalizedRanges[s];e.startLineNumber>i&&r.push(new a(i,e.startLineNumber)),i=e.endLineNumberExclusive}return i<e.endLineNumberExclusive&&r.push(new a(i,e.endLineNumberExclusive)),new l(r)}toString(){return this._normalizedRanges.map((e=>e.toString())).join(", ")}getIntersection(e){const t=[];let n=0,r=0;for(;n<this._normalizedRanges.length&&r<e._normalizedRanges.length;){const i=this._normalizedRanges[n],s=e._normalizedRanges[r],o=i.intersect(s);o&&!o.isEmpty&&t.push(o),i.endLineNumberExclusive<s.endLineNumberExclusive?n++:r++}return new l(t)}getWithDelta(e){return new l(this._normalizedRanges.map((t=>t.delta(e))))}}},4444:(e,t,n)=>{"use strict";n.d(t,{L:()=>i});var r=n(4383);class i{static addRange(e,t){let n=0;for(;n<t.length&&t[n].endExclusive<e.start;)n++;let r=n;for(;r<t.length&&t[r].start<=e.endExclusive;)r++;if(n===r)t.splice(n,0,e);else{const s=Math.min(e.start,t[n].start),o=Math.max(e.endExclusive,t[r-1].endExclusive);t.splice(n,r-n,new i(s,o))}}static tryCreate(e,t){if(!(e>t))return new i(e,t)}static ofLength(e){return new i(0,e)}static ofStartAndLength(e,t){return new i(e,e+t)}constructor(e,t){if(this.start=e,this.endExclusive=t,e>t)throw new r.D7(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new i(this.start+e,this.endExclusive+e)}deltaStart(e){return new i(this.start+e,this.endExclusive)}deltaEnd(e){return new i(this.start,this.endExclusive+e)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}contains(e){return this.start<=e&&e<this.endExclusive}join(e){return new i(Math.min(this.start,e.start),Math.max(this.endExclusive,e.endExclusive))}intersect(e){const t=Math.max(this.start,e.start),n=Math.min(this.endExclusive,e.endExclusive);if(t<=n)return new i(t,n)}intersects(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 r.D7(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,e))}clipCyclic(e){if(this.isEmpty)throw new r.D7(`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)}}},3069:(e,t,n)=>{"use strict";n.d(t,{y:()=>r});class r{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new r(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return r.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return r.isBefore(this,e)}static isBefore(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column}isBeforeOrEqual(e){return r.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<=t.column}static compare(e,t){const n=0|e.lineNumber,r=0|t.lineNumber;if(n===r){return(0|e.column)-(0|t.column)}return n-r}clone(){return new r(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new r(e.lineNumber,e.column)}static isIPosition(e){return e&&"number"===typeof e.lineNumber&&"number"===typeof e.column}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}}},6677:(e,t,n)=>{"use strict";n.d(t,{Q:()=>i});var r=n(3069);class i{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 i.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return i.containsPosition(this,e)}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(e){return i.containsRange(this,e)}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(e){return i.strictContainsRange(this,e)}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(e){return i.plusRange(this,e)}static plusRange(e,t){let n,r,s,o;return t.startLineNumber<e.startLineNumber?(n=t.startLineNumber,r=t.startColumn):t.startLineNumber===e.startLineNumber?(n=t.startLineNumber,r=Math.min(t.startColumn,e.startColumn)):(n=e.startLineNumber,r=e.startColumn),t.endLineNumber>e.endLineNumber?(s=t.endLineNumber,o=t.endColumn):t.endLineNumber===e.endLineNumber?(s=t.endLineNumber,o=Math.max(t.endColumn,e.endColumn)):(s=e.endLineNumber,o=e.endColumn),new i(n,r,s,o)}intersectRanges(e){return i.intersectRanges(this,e)}static intersectRanges(e,t){let n=e.startLineNumber,r=e.startColumn,s=e.endLineNumber,o=e.endColumn;const a=t.startLineNumber,l=t.startColumn,c=t.endLineNumber,h=t.endColumn;return n<a?(n=a,r=l):n===a&&(r=Math.max(r,l)),s>c?(s=c,o=h):s===c&&(o=Math.min(o,h)),n>s||n===s&&r>o?null:new i(n,r,s,o)}equalsRange(e){return i.equalsRange(this,e)}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 i.getEndPosition(this)}static getEndPosition(e){return new r.y(e.endLineNumber,e.endColumn)}getStartPosition(){return i.getStartPosition(this)}static getStartPosition(e){return new r.y(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new i(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new i(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return i.collapseToStart(this)}static collapseToStart(e){return new i(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return i.collapseToEnd(this)}static collapseToEnd(e){return new i(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new i(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,t=e){return new i(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new i(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"===typeof e.startLineNumber&&"number"===typeof e.startColumn&&"number"===typeof e.endLineNumber&&"number"===typeof e.endColumn}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 compareRangesUsingStarts(e,t){if(e&&t){const n=0|e.startLineNumber,r=0|t.startLineNumber;if(n===r){const n=0|e.startColumn,r=0|t.startColumn;if(n===r){const n=0|e.endLineNumber,r=0|t.endLineNumber;if(n===r){return(0|e.endColumn)-(0|t.endColumn)}return n-r}return n-r}return n-r}return(e?1:0)-(t?1:0)}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}}},5326:(e,t,n)=>{"use strict";n.d(t,{L:()=>s});var r=n(3069),i=n(6677);class s extends i.Q{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(e){return s.selectionsEqual(this,e)}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(e,t){return 0===this.getDirection()?new s(this.startLineNumber,this.startColumn,e,t):new s(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new r.y(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new r.y(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return 0===this.getDirection()?new s(e,t,this.endLineNumber,this.endColumn):new s(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new s(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return 0===t?new s(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new s(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new s(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.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&&"number"===typeof e.selectionStartLineNumber&&"number"===typeof e.selectionStartColumn&&"number"===typeof e.positionLineNumber&&"number"===typeof e.positionColumn}static createWithDirection(e,t,n,r,i){return 0===i?new s(e,t,n,r):new s(n,r,e,t)}}},973:(e,t,n)=>{"use strict";n.d(t,{W:()=>s});var r=n(3069),i=n(6677);class s{static{this.zero=new s(0,0)}static betweenPositions(e,t){return e.lineNumber===t.lineNumber?new s(0,t.column-e.column):new s(t.lineNumber-e.lineNumber,t.column-1)}static ofRange(e){return s.betweenPositions(e.getStartPosition(),e.getEndPosition())}static ofText(e){let t=0,n=0;for(const r of e)"\n"===r?(t++,n=0):n++;return new s(t,n)}constructor(e,t){this.lineCount=e,this.columnCount=t}isGreaterThanOrEqualTo(e){return this.lineCount!==e.lineCount?this.lineCount>e.lineCount:this.columnCount>=e.columnCount}createRange(e){return 0===this.lineCount?new i.Q(e.lineNumber,e.column,e.lineNumber,e.column+this.columnCount):new i.Q(e.lineNumber,e.column,e.lineNumber+this.lineCount,this.columnCount+1)}addToPosition(e){return 0===this.lineCount?new r.y(e.lineNumber,e.column+this.columnCount):new r.y(e.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}}},6486:(e,t,n)=>{"use strict";n.d(t,{Io:()=>o,Ld:()=>s,Th:()=>l});var r=n(2522),i=n(8925);const s=function(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const n of"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?")e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}();function o(e){let t=s;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}const a=new i.w;function l(e,t,n,i,s){if(t=o(t),s||(s=r.f.first(a)),n.length>s.maxLen){let r=e-s.maxLen/2;return r<0?r=0:i+=r,l(e,t,n=n.substring(r,e+s.maxLen/2),i,s)}const h=Date.now(),u=e-1-i;let d=-1,g=null;for(let r=1;!(Date.now()-h>=s.timeBudget);r++){const e=u-s.windowSize*r;t.lastIndex=Math.max(0,e);const i=c(t,n,u,d);if(!i&&g)break;if(g=i,e<=0)break;d=e}if(g){const e={word:g[0],startColumn:i+1+g.index,endColumn:i+1+g.index+g[0].length};return t.lastIndex=0,e}return null}function c(e,t,n,r){let i;for(;i=e.exec(t);){const t=i.index||0;if(t<=n&&e.lastIndex>=n)return i;if(r>0&&t>r)return null}return null}a.unshift({maxLen:1e3,windowSize:15,timeBudget:150})},5982:(e,t,n)=>{"use strict";n.d(t,{x:()=>r});class r{static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return 0!==(1024&e)}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(16744448&e)>>>15}static getBackground(e){return(4278190080&e)>>>24}static getClassNameFromMetadata(e){let t="mtk"+this.getForeground(e);const n=this.getFontStyle(e);return 1&n&&(t+=" mtki"),2&n&&(t+=" mtkb"),4&n&&(t+=" mtku"),8&n&&(t+=" mtks"),t}static getInlineStyleFromMetadata(e,t){const n=this.getForeground(e),r=this.getFontStyle(e);let i=`color: ${t[n]};`;1&r&&(i+="font-style: italic;"),2&r&&(i+="font-weight: bold;");let s="";return 4&r&&(s+=" underline"),8&r&&(s+=" line-through"),s&&(i+=`text-decoration:${s};`),i}static getPresentationFromMetadata(e){const t=this.getForeground(e),n=this.getFontStyle(e);return{foreground:t,italic:Boolean(1&n),bold:Boolean(2&n),underline:Boolean(4&n),strikethrough:Boolean(8&n)}}}},2083:(e,t,n)=>{"use strict";n.d(t,{rY:()=>p,ou:()=>m,dG:()=>L,OB:()=>w});var r=n(9493),i=(n(9400),n(1234)),s=n(1484);class o{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new i.vl,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]),(0,s.s)((()=>{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();const n=new a(this,e,t);return this._factories.set(e,n),(0,s.s)((()=>{const t=this._factories.get(e);t&&t===n&&(this._factories.delete(e),t.dispose())}))}async getOrCreate(e){const t=this.get(e);if(t)return t;const n=this._factories.get(e);return!n||n.isResolved?null:(await n.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;const 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}}class a extends s.jG{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._resolvePromise=this._create()),this._resolvePromise}async _create(){const e=await this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}}var l,c,h,u,d,g,f=n(8209);class m{constructor(e,t,n){this.offset=e,this.type=t,this.language=n,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}class p{constructor(e,t){this.tokens=e,this.endState=t,this._encodedTokenizationResultBrand=void 0}}!function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(l||(l={})),function(e){const t=new Map;t.set(0,r.W.symbolMethod),t.set(1,r.W.symbolFunction),t.set(2,r.W.symbolConstructor),t.set(3,r.W.symbolField),t.set(4,r.W.symbolVariable),t.set(5,r.W.symbolClass),t.set(6,r.W.symbolStruct),t.set(7,r.W.symbolInterface),t.set(8,r.W.symbolModule),t.set(9,r.W.symbolProperty),t.set(10,r.W.symbolEvent),t.set(11,r.W.symbolOperator),t.set(12,r.W.symbolUnit),t.set(13,r.W.symbolValue),t.set(15,r.W.symbolEnum),t.set(14,r.W.symbolConstant),t.set(15,r.W.symbolEnum),t.set(16,r.W.symbolEnumMember),t.set(17,r.W.symbolKeyword),t.set(27,r.W.symbolSnippet),t.set(18,r.W.symbolText),t.set(19,r.W.symbolColor),t.set(20,r.W.symbolFile),t.set(21,r.W.symbolReference),t.set(22,r.W.symbolCustomColor),t.set(23,r.W.symbolFolder),t.set(24,r.W.symbolTypeParameter),t.set(25,r.W.account),t.set(26,r.W.issues),e.toIcon=function(e){let n=t.get(e);return n||(console.info("No codicon found for CompletionItemKind "+e),n=r.W.symbolProperty),n};const n=new Map;n.set("method",0),n.set("function",1),n.set("constructor",2),n.set("field",3),n.set("variable",4),n.set("class",5),n.set("struct",6),n.set("interface",7),n.set("module",8),n.set("property",9),n.set("event",10),n.set("operator",11),n.set("unit",12),n.set("value",13),n.set("constant",14),n.set("enum",15),n.set("enum-member",16),n.set("enumMember",16),n.set("keyword",17),n.set("snippet",27),n.set("text",18),n.set("color",19),n.set("file",20),n.set("reference",21),n.set("customcolor",22),n.set("folder",23),n.set("type-parameter",24),n.set("typeParameter",24),n.set("account",25),n.set("issue",26),e.fromString=function(e,t){let r=n.get(e);return"undefined"!==typeof r||t||(r=9),r}}(c||(c={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(h||(h={}));!function(e){e[e.Automatic=0]="Automatic",e[e.PasteAs=1]="PasteAs"}(u||(u={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(d||(d={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(g||(g={}));(0,f.kg)("Array","array"),(0,f.kg)("Boolean","boolean"),(0,f.kg)("Class","class"),(0,f.kg)("Constant","constant"),(0,f.kg)("Constructor","constructor"),(0,f.kg)("Enum","enumeration"),(0,f.kg)("EnumMember","enumeration member"),(0,f.kg)("Event","event"),(0,f.kg)("Field","field"),(0,f.kg)("File","file"),(0,f.kg)("Function","function"),(0,f.kg)("Interface","interface"),(0,f.kg)("Key","key"),(0,f.kg)("Method","method"),(0,f.kg)("Module","module"),(0,f.kg)("Namespace","namespace"),(0,f.kg)("Null","null"),(0,f.kg)("Number","number"),(0,f.kg)("Object","object"),(0,f.kg)("Operator","operator"),(0,f.kg)("Package","package"),(0,f.kg)("Property","property"),(0,f.kg)("String","string"),(0,f.kg)("Struct","struct"),(0,f.kg)("TypeParameter","type parameter"),(0,f.kg)("Variable","variable");var b,_,k,v,C;!function(e){const t=new Map;t.set(0,r.W.symbolFile),t.set(1,r.W.symbolModule),t.set(2,r.W.symbolNamespace),t.set(3,r.W.symbolPackage),t.set(4,r.W.symbolClass),t.set(5,r.W.symbolMethod),t.set(6,r.W.symbolProperty),t.set(7,r.W.symbolField),t.set(8,r.W.symbolConstructor),t.set(9,r.W.symbolEnum),t.set(10,r.W.symbolInterface),t.set(11,r.W.symbolFunction),t.set(12,r.W.symbolVariable),t.set(13,r.W.symbolConstant),t.set(14,r.W.symbolString),t.set(15,r.W.symbolNumber),t.set(16,r.W.symbolBoolean),t.set(17,r.W.symbolArray),t.set(18,r.W.symbolObject),t.set(19,r.W.symbolKey),t.set(20,r.W.symbolNull),t.set(21,r.W.symbolEnumMember),t.set(22,r.W.symbolStruct),t.set(23,r.W.symbolEvent),t.set(24,r.W.symbolOperator),t.set(25,r.W.symbolTypeParameter),e.toIcon=function(e){let n=t.get(e);return n||(console.info("No codicon found for SymbolKind "+e),n=r.W.symbolProperty),n}}(b||(b={}));class y{static{this.Comment=new y("comment")}static{this.Imports=new y("imports")}static{this.Region=new y("region")}static fromValue(e){switch(e){case"comment":return y.Comment;case"imports":return y.Imports;case"region":return y.Region}return new y(e)}constructor(e){this.value=e}}!function(e){e[e.AIGenerated=1]="AIGenerated"}(_||(_={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(k||(k={})),function(e){e.is=function(e){return!(!e||"object"!==typeof e)&&("string"===typeof e.id&&"string"===typeof e.title)}}(v||(v={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(C||(C={}));const L=new o,w=new o;var S;!function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(S||(S={}))},154:(e,t,n)=>{"use strict";n.d(t,{L:()=>r});const r=(0,n(3591).u1)("languageService")},3941:(e,t,n)=>{"use strict";n.d(t,{W6:()=>l,vH:()=>c});var r=n(8209),i=n(1234),s=n(6359),o=n(1939),a=n(1646);const l=new class{constructor(){this._onDidChangeLanguages=new i.vl,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[]}registerLanguage(e){return this._languages.push(e),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let t=0,n=this._languages.length;t<n;t++)if(this._languages[t]===e)return void this._languages.splice(t,1)}}}getLanguages(){return this._languages}};s.O.add("editor.modesRegistry",l);const c="plaintext";l.registerLanguage({id:c,extensions:[".txt"],aliases:[r.kg("plainText.alias","Plain Text"),"text"],mimetypes:[o.K.text]}),s.O.as(a.Fd.Configuration).registerDefaultConfigurations([{overrides:{"[plaintext]":{"editor.unicodeHighlight.ambiguousCharacters":!1,"editor.unicodeHighlight.invisibleCharacters":!1}}}])},6223:(e,t,n)=>{"use strict";n.d(t,{A5:()=>r,Dg:()=>l,F4:()=>d,L5:()=>u,Wo:()=>h,X2:()=>a,ZS:()=>i,nk:()=>c,vd:()=>g});var r,i,s,o=n(146);!function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(r||(r={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(i||(i={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(s||(s={}));class a{get originalIndentSize(){return this._indentSizeIsTabSize?"tabSize":this.indentSize}constructor(e){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,0|e.tabSize),"tabSize"===e.indentSize?(this.indentSize=this.tabSize,this._indentSizeIsTabSize=!0):(this.indentSize=Math.max(1,0|e.indentSize),this._indentSizeIsTabSize=!1),this.insertSpaces=Boolean(e.insertSpaces),this.defaultEOL=0|e.defaultEOL,this.trimAutoWhitespace=Boolean(e.trimAutoWhitespace),this.bracketPairColorizationOptions=e.bracketPairColorizationOptions}equals(e){return this.tabSize===e.tabSize&&this._indentSizeIsTabSize===e._indentSizeIsTabSize&&this.indentSize===e.indentSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace&&(0,o.aI)(this.bracketPairColorizationOptions,e.bracketPairColorizationOptions)}createChangeEvent(e){return{tabSize:this.tabSize!==e.tabSize,indentSize:this.indentSize!==e.indentSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}}}class l{constructor(e,t){this._findMatchBrand=void 0,this.range=e,this.matches=t}}function c(e){return e&&"function"===typeof e.read}class h{constructor(e,t,n,r,i,s){this.identifier=e,this.range=t,this.text=n,this.forceMoveMarkers=r,this.isAutoWhitespaceEdit=i,this._isTracked=s}}class u{constructor(e,t,n){this.regex=e,this.wordSeparators=t,this.simpleSearch=n}}class d{constructor(e,t,n){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=n}}function g(e){return!e.isTooLargeForSyncing()&&!e.isForSimpleWidget}},7729:(e,t,n)=>{"use strict";n.d(t,{lt:()=>u,W5:()=>p,hB:()=>f,dr:()=>d,wC:()=>m});var r=n(1508),i=n(4320),s=n(534);class o extends s.V{constructor(e,t){super(0),this._segmenter=null,this._cachedLine=null,this._cachedSegments=[],this.intlSegmenterLocales=t,this.intlSegmenterLocales.length>0?this._segmenter=new Intl.Segmenter(this.intlSegmenterLocales,{granularity:"word"}):this._segmenter=null;for(let n=0,r=e.length;n<r;n++)this.set(e.charCodeAt(n),2);this.set(32,1),this.set(9,1)}findPrevIntlWordBeforeOrAtOffset(e,t){let n=null;for(const r of this._getIntlSegmenterWordsOnLine(e)){if(r.index>t)break;n=r}return n}findNextIntlWordAtOrAfterOffset(e,t){for(const n of this._getIntlSegmenterWordsOnLine(e))if(!(n.index<t))return n;return null}_getIntlSegmenterWordsOnLine(e){return this._segmenter?(this._cachedLine===e||(this._cachedLine=e,this._cachedSegments=this._filterWordSegments(this._segmenter.segment(e))),this._cachedSegments):[]}_filterWordSegments(e){const t=[];for(const n of e)this._isWordLike(n)&&t.push(n);return t}_isWordLike(e){return!!e.isWordLike}}const a=new i.qK(10);var l=n(3069),c=n(6677),h=n(6223);class u{constructor(e,t,n,r){this.searchString=e,this.isRegex=t,this.matchCase=n,this.wordSeparators=r}parseSearchRequest(){if(""===this.searchString)return null;let e;e=this.isRegex?function(e){if(!e||0===e.length)return!1;for(let t=0,n=e.length;t<n;t++){const r=e.charCodeAt(t);if(10===r)return!0;if(92===r){if(t++,t>=n)break;const r=e.charCodeAt(t);if(110===r||114===r||87===r)return!0}}return!1}(this.searchString):this.searchString.indexOf("\n")>=0;let t=null;try{t=r.OS(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0,unicode:!0})}catch(i){return null}if(!t)return null;let n=!this.isRegex&&!e;return n&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(n=this.matchCase),new h.L5(t,this.wordSeparators?function(e,t){const n=`${e}/${t.join(",")}`;let r=a.get(n);return r||(r=new o(e,t),a.set(n,r)),r}(this.wordSeparators,[]):null,n?this.searchString:null)}}function d(e,t,n){if(!n)return new h.Dg(e,null);const r=[];for(let i=0,s=t.length;i<s;i++)r[i]=t[i];return new h.Dg(e,r)}class g{constructor(e){const t=[];let n=0;for(let r=0,i=e.length;r<i;r++)10===e.charCodeAt(r)&&(t[n++]=r);this._lineFeedsOffsets=t}findLineFeedCountBeforeOffset(e){const t=this._lineFeedsOffsets;let n=0,r=t.length-1;if(-1===r)return 0;if(e<=t[0])return 0;for(;n<r;){const i=n+((r-n)/2|0);t[i]>=e?r=i-1:t[i+1]>=e?(n=i,r=i):n=i+1}return n+1}}class f{static findMatches(e,t,n,r,i){const s=t.parseSearchRequest();return s?s.regex.multiline?this._doFindMatchesMultiline(e,n,new p(s.wordSeparators,s.regex),r,i):this._doFindMatchesLineByLine(e,n,s,r,i):[]}static _getMultilineMatchRange(e,t,n,r,i,s){let o,a,l=0;if(r?(l=r.findLineFeedCountBeforeOffset(i),o=t+i+l):o=t+i,r){const e=r.findLineFeedCountBeforeOffset(i+s.length)-l;a=o+s.length+e}else a=o+s.length;const h=e.getPositionAt(o),u=e.getPositionAt(a);return new c.Q(h.lineNumber,h.column,u.lineNumber,u.column)}static _doFindMatchesMultiline(e,t,n,r,i){const s=e.getOffsetAt(t.getStartPosition()),o=e.getValueInRange(t,1),a="\r\n"===e.getEOL()?new g(o):null,l=[];let c,h=0;for(n.reset(0);c=n.next(o);)if(l[h++]=d(this._getMultilineMatchRange(e,s,o,a,c.index,c[0]),c,r),h>=i)return l;return l}static _doFindMatchesLineByLine(e,t,n,r,i){const s=[];let o=0;if(t.startLineNumber===t.endLineNumber){const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return o=this._findMatchesInLine(n,a,t.startLineNumber,t.startColumn-1,o,s,r,i),s}const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);o=this._findMatchesInLine(n,a,t.startLineNumber,t.startColumn-1,o,s,r,i);for(let l=t.startLineNumber+1;l<t.endLineNumber&&o<i;l++)o=this._findMatchesInLine(n,e.getLineContent(l),l,0,o,s,r,i);if(o<i){const a=e.getLineContent(t.endLineNumber).substring(0,t.endColumn-1);o=this._findMatchesInLine(n,a,t.endLineNumber,0,o,s,r,i)}return s}static _findMatchesInLine(e,t,n,r,i,s,o,a){const l=e.wordSeparators;if(!o&&e.simpleSearch){const o=e.simpleSearch,u=o.length,d=t.length;let g=-u;for(;-1!==(g=t.indexOf(o,g+u));)if((!l||m(l,t,d,g,u))&&(s[i++]=new h.Dg(new c.Q(n,g+1+r,n,g+1+u+r),null),i>=a))return i;return i}const u=new p(e.wordSeparators,e.regex);let g;u.reset(0);do{if(g=u.next(t),g&&(s[i++]=d(new c.Q(n,g.index+1+r,n,g.index+1+g[0].length+r),g,o),i>=a))return i}while(g);return i}static findNextMatch(e,t,n,r){const i=t.parseSearchRequest();if(!i)return null;const s=new p(i.wordSeparators,i.regex);return i.regex.multiline?this._doFindNextMatchMultiline(e,n,s,r):this._doFindNextMatchLineByLine(e,n,s,r)}static _doFindNextMatchMultiline(e,t,n,r){const i=new l.y(t.lineNumber,1),s=e.getOffsetAt(i),o=e.getLineCount(),a=e.getValueInRange(new c.Q(i.lineNumber,i.column,o,e.getLineMaxColumn(o)),1),h="\r\n"===e.getEOL()?new g(a):null;n.reset(t.column-1);const u=n.next(a);return u?d(this._getMultilineMatchRange(e,s,a,h,u.index,u[0]),u,r):1!==t.lineNumber||1!==t.column?this._doFindNextMatchMultiline(e,new l.y(1,1),n,r):null}static _doFindNextMatchLineByLine(e,t,n,r){const i=e.getLineCount(),s=t.lineNumber,o=e.getLineContent(s),a=this._findFirstMatchInLine(n,o,s,t.column,r);if(a)return a;for(let l=1;l<=i;l++){const t=(s+l-1)%i,o=e.getLineContent(t+1),a=this._findFirstMatchInLine(n,o,t+1,1,r);if(a)return a}return null}static _findFirstMatchInLine(e,t,n,r,i){e.reset(r-1);const s=e.next(t);return s?d(new c.Q(n,s.index+1,n,s.index+1+s[0].length),s,i):null}static findPreviousMatch(e,t,n,r){const i=t.parseSearchRequest();if(!i)return null;const s=new p(i.wordSeparators,i.regex);return i.regex.multiline?this._doFindPreviousMatchMultiline(e,n,s,r):this._doFindPreviousMatchLineByLine(e,n,s,r)}static _doFindPreviousMatchMultiline(e,t,n,r){const i=this._doFindMatchesMultiline(e,new c.Q(1,1,t.lineNumber,t.column),n,r,9990);if(i.length>0)return i[i.length-1];const s=e.getLineCount();return t.lineNumber!==s||t.column!==e.getLineMaxColumn(s)?this._doFindPreviousMatchMultiline(e,new l.y(s,e.getLineMaxColumn(s)),n,r):null}static _doFindPreviousMatchLineByLine(e,t,n,r){const i=e.getLineCount(),s=t.lineNumber,o=e.getLineContent(s).substring(0,t.column-1),a=this._findLastMatchInLine(n,o,s,r);if(a)return a;for(let l=1;l<=i;l++){const t=(i+s-l-1)%i,o=e.getLineContent(t+1),a=this._findLastMatchInLine(n,o,t+1,r);if(a)return a}return null}static _findLastMatchInLine(e,t,n,r){let i,s=null;for(e.reset(0);i=e.next(t);)s=d(new c.Q(n,i.index+1,n,i.index+1+i[0].length),i,r);return s}}function m(e,t,n,r,i){return function(e,t,n,r,i){if(0===r)return!0;const s=t.charCodeAt(r-1);if(0!==e.get(s))return!0;if(13===s||10===s)return!0;if(i>0){const n=t.charCodeAt(r);if(0!==e.get(n))return!0}return!1}(e,t,0,r,i)&&function(e,t,n,r,i){if(r+i===n)return!0;const s=t.charCodeAt(r+i);if(0!==e.get(s))return!0;if(13===s||10===s)return!0;if(i>0){const n=t.charCodeAt(r+i-1);if(0!==e.get(n))return!0}return!1}(e,t,n,r,i)}class p{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){const t=e.length;let n;do{if(this._prevMatchStartIndex+this._prevMatchLength===t)return null;if(n=this._searchRegex.exec(e),!n)return null;const i=n.index,s=n[0].length;if(i===this._prevMatchStartIndex&&s===this._prevMatchLength){if(0===s){r.Z5(e,t,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=i,this._prevMatchLength=s,!this._wordSeparators||m(this._wordSeparators,e,t,i,s))return n}while(n);return null}}},4272:(e,t,n)=>{"use strict";n.r(t),n.d(t,{KeyMod:()=>fe,createMonacoBaseAPI:()=>me});var r=n(8447),i=n(1234);class s{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}}const o=new s,a=new s,l=new s,c=new Array(230),h={},u=[],d=Object.create(null),g=Object.create(null),f=[],m=[];for(let pe=0;pe<=193;pe++)f[pe]=-1;for(let pe=0;pe<=132;pe++)m[pe]=-1;var p;!function(){const e="",t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[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,e,0,e,e,e],[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",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],n=[],r=[];for(const i of t){const[e,t,s,p,b,_,k,v,C]=i;if(r[t]||(r[t]=!0,u[t]=s,d[s]=t,g[s.toLowerCase()]=t,e&&(f[t]=p,0!==p&&3!==p&&5!==p&&4!==p&&6!==p&&57!==p&&(m[p]=t))),!n[p]){if(n[p]=!0,!b)throw new Error(`String representation missing for key code ${p} around scan code ${s}`);o.define(p,b),a.define(p,v||b),l.define(p,C||v||b)}_&&(c[_]=p),k&&(h[k]=p)}m[3]=46}(),function(e){e.toString=function(e){return o.keyCodeToStr(e)},e.fromString=function(e){return o.strToKeyCode(e)},e.toUserSettingsUS=function(e){return a.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return l.keyCodeToStr(e)},e.fromUserSettings=function(e){return a.strToKeyCode(e)||l.strToKeyCode(e)},e.toElectronAccelerator=function(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 o.keyCodeToStr(e)}}(p||(p={}));var b,_,k,v,C,y,L,w,S,x,E,N,T,A,I,O,M,R,D,B,F,P,V,z,j,q,W,U,$,H,K,G,Q,J,X,Y,Z,ee,te,ne,re,ie,se,oe,ae,le,ce=n(9400),he=n(3069),ue=n(6677),de=n(5326),ge=n(2083);!function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"}(b||(b={})),function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"}(_||(_={})),function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(k||(k={})),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.Snippet=27]="Snippet"}(v||(v={})),function(e){e[e.Deprecated=1]="Deprecated"}(C||(C={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(y||(y={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(L||(L={})),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"}(w||(w={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(S||(S={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(x||(x={})),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"}(E||(E={})),function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.ariaRequired=5]="ariaRequired",e[e.autoClosingBrackets=6]="autoClosingBrackets",e[e.autoClosingComments=7]="autoClosingComments",e[e.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=9]="autoClosingDelete",e[e.autoClosingOvertype=10]="autoClosingOvertype",e[e.autoClosingQuotes=11]="autoClosingQuotes",e[e.autoIndent=12]="autoIndent",e[e.automaticLayout=13]="automaticLayout",e[e.autoSurround=14]="autoSurround",e[e.bracketPairColorization=15]="bracketPairColorization",e[e.guides=16]="guides",e[e.codeLens=17]="codeLens",e[e.codeLensFontFamily=18]="codeLensFontFamily",e[e.codeLensFontSize=19]="codeLensFontSize",e[e.colorDecorators=20]="colorDecorators",e[e.colorDecoratorsLimit=21]="colorDecoratorsLimit",e[e.columnSelection=22]="columnSelection",e[e.comments=23]="comments",e[e.contextmenu=24]="contextmenu",e[e.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",e[e.cursorBlinking=26]="cursorBlinking",e[e.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",e[e.cursorStyle=28]="cursorStyle",e[e.cursorSurroundingLines=29]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",e[e.cursorWidth=31]="cursorWidth",e[e.disableLayerHinting=32]="disableLayerHinting",e[e.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",e[e.domReadOnly=34]="domReadOnly",e[e.dragAndDrop=35]="dragAndDrop",e[e.dropIntoEditor=36]="dropIntoEditor",e[e.emptySelectionClipboard=37]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",e[e.extraEditorClassName=39]="extraEditorClassName",e[e.fastScrollSensitivity=40]="fastScrollSensitivity",e[e.find=41]="find",e[e.fixedOverflowWidgets=42]="fixedOverflowWidgets",e[e.folding=43]="folding",e[e.foldingStrategy=44]="foldingStrategy",e[e.foldingHighlight=45]="foldingHighlight",e[e.foldingImportsByDefault=46]="foldingImportsByDefault",e[e.foldingMaximumRegions=47]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=49]="fontFamily",e[e.fontInfo=50]="fontInfo",e[e.fontLigatures=51]="fontLigatures",e[e.fontSize=52]="fontSize",e[e.fontWeight=53]="fontWeight",e[e.fontVariations=54]="fontVariations",e[e.formatOnPaste=55]="formatOnPaste",e[e.formatOnType=56]="formatOnType",e[e.glyphMargin=57]="glyphMargin",e[e.gotoLocation=58]="gotoLocation",e[e.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",e[e.hover=60]="hover",e[e.inDiffEditor=61]="inDiffEditor",e[e.inlineSuggest=62]="inlineSuggest",e[e.inlineEdit=63]="inlineEdit",e[e.letterSpacing=64]="letterSpacing",e[e.lightbulb=65]="lightbulb",e[e.lineDecorationsWidth=66]="lineDecorationsWidth",e[e.lineHeight=67]="lineHeight",e[e.lineNumbers=68]="lineNumbers",e[e.lineNumbersMinChars=69]="lineNumbersMinChars",e[e.linkedEditing=70]="linkedEditing",e[e.links=71]="links",e[e.matchBrackets=72]="matchBrackets",e[e.minimap=73]="minimap",e[e.mouseStyle=74]="mouseStyle",e[e.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=76]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",e[e.multiCursorModifier=78]="multiCursorModifier",e[e.multiCursorPaste=79]="multiCursorPaste",e[e.multiCursorLimit=80]="multiCursorLimit",e[e.occurrencesHighlight=81]="occurrencesHighlight",e[e.overviewRulerBorder=82]="overviewRulerBorder",e[e.overviewRulerLanes=83]="overviewRulerLanes",e[e.padding=84]="padding",e[e.pasteAs=85]="pasteAs",e[e.parameterHints=86]="parameterHints",e[e.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",e[e.placeholder=88]="placeholder",e[e.definitionLinkOpensInPeek=89]="definitionLinkOpensInPeek",e[e.quickSuggestions=90]="quickSuggestions",e[e.quickSuggestionsDelay=91]="quickSuggestionsDelay",e[e.readOnly=92]="readOnly",e[e.readOnlyMessage=93]="readOnlyMessage",e[e.renameOnType=94]="renameOnType",e[e.renderControlCharacters=95]="renderControlCharacters",e[e.renderFinalNewline=96]="renderFinalNewline",e[e.renderLineHighlight=97]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=98]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=99]="renderValidationDecorations",e[e.renderWhitespace=100]="renderWhitespace",e[e.revealHorizontalRightPadding=101]="revealHorizontalRightPadding",e[e.roundedSelection=102]="roundedSelection",e[e.rulers=103]="rulers",e[e.scrollbar=104]="scrollbar",e[e.scrollBeyondLastColumn=105]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=106]="scrollBeyondLastLine",e[e.scrollPredominantAxis=107]="scrollPredominantAxis",e[e.selectionClipboard=108]="selectionClipboard",e[e.selectionHighlight=109]="selectionHighlight",e[e.selectOnLineNumbers=110]="selectOnLineNumbers",e[e.showFoldingControls=111]="showFoldingControls",e[e.showUnused=112]="showUnused",e[e.snippetSuggestions=113]="snippetSuggestions",e[e.smartSelect=114]="smartSelect",e[e.smoothScrolling=115]="smoothScrolling",e[e.stickyScroll=116]="stickyScroll",e[e.stickyTabStops=117]="stickyTabStops",e[e.stopRenderingLineAfter=118]="stopRenderingLineAfter",e[e.suggest=119]="suggest",e[e.suggestFontSize=120]="suggestFontSize",e[e.suggestLineHeight=121]="suggestLineHeight",e[e.suggestOnTriggerCharacters=122]="suggestOnTriggerCharacters",e[e.suggestSelection=123]="suggestSelection",e[e.tabCompletion=124]="tabCompletion",e[e.tabIndex=125]="tabIndex",e[e.unicodeHighlighting=126]="unicodeHighlighting",e[e.unusualLineTerminators=127]="unusualLineTerminators",e[e.useShadowDOM=128]="useShadowDOM",e[e.useTabStops=129]="useTabStops",e[e.wordBreak=130]="wordBreak",e[e.wordSegmenterLocales=131]="wordSegmenterLocales",e[e.wordSeparators=132]="wordSeparators",e[e.wordWrap=133]="wordWrap",e[e.wordWrapBreakAfterCharacters=134]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=135]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=136]="wordWrapColumn",e[e.wordWrapOverride1=137]="wordWrapOverride1",e[e.wordWrapOverride2=138]="wordWrapOverride2",e[e.wrappingIndent=139]="wrappingIndent",e[e.wrappingStrategy=140]="wrappingStrategy",e[e.showDeprecated=141]="showDeprecated",e[e.inlayHints=142]="inlayHints",e[e.editorClassName=143]="editorClassName",e[e.pixelRatio=144]="pixelRatio",e[e.tabFocusMode=145]="tabFocusMode",e[e.layoutInfo=146]="layoutInfo",e[e.wrappingInfo=147]="wrappingInfo",e[e.defaultColorDecorators=148]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=149]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=150]="inlineCompletionsAccessibilityVerbose"}(N||(N={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(T||(T={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}(A||(A={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(I||(I={})),function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(O||(O={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(M||(M={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(R||(R={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(D||(D={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(B||(B={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(F||(F={})),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"}(P||(P={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(V||(V={})),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(z||(z={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(j||(j={})),function(e){e[e.Normal=1]="Normal",e[e.Underlined=2]="Underlined"}(q||(q={})),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"}(W||(W={})),function(e){e[e.AIGenerated=1]="AIGenerated"}(U||(U={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}($||($={})),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"}(H||(H={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(K||(K={})),function(e){e[e.Word=0]="Word",e[e.Line=1]="Line",e[e.Suggest=2]="Suggest"}(G||(G={})),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"}(Q||(Q={})),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"}(J||(J={})),function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"}(X||(X={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"}(Y||(Y={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(Z||(Z={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(ee||(ee={})),function(e){e.Off="off",e.OnCode="onCode",e.On="on"}(te||(te={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(ne||(ne={})),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"}(re||(re={})),function(e){e[e.Deprecated=1]="Deprecated"}(ie||(ie={})),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"}(se||(se={})),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"}(oe||(oe={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(ae||(ae={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(le||(le={}));class fe{static{this.CtrlCmd=2048}static{this.Shift=1024}static{this.Alt=512}static{this.WinCtrl=256}static chord(e,t){return function(e,t){return(e|(65535&t)<<16>>>0)>>>0}(e,t)}}function me(){return{editor:void 0,languages:void 0,CancellationTokenSource:r.Qi,Emitter:i.vl,KeyCode:P,KeyMod:fe,Position:he.y,Range:ue.Q,Selection:de.L,SelectionDirection:ee,MarkerSeverity:V,MarkerTag:z,Uri:ce.r,Token:ge.ou}}},5196:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BaseEditorSimpleWorker:()=>Pe,EditorSimpleWorker:()=>Ve,create:()=>ze});class r{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}}var i=n(5600);class s{constructor(e){this.source=e}getElements(){const 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 o(e,t,n){return new h(new s(e),new s(t)).ComputeDiff(n).changes}class a{static Assert(e,t){if(!e)throw new Error(t)}}class l{static Copy(e,t,n,r,i){for(let s=0;s<i;s++)n[r+s]=e[t+s]}static Copy2(e,t,n,r,i){for(let s=0;s<i;s++)n[r+s]=e[t+s]}}class c{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 r(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}}class h{constructor(e,t,n=null){this.ContinueProcessingPredicate=n,this._originalSequence=e,this._modifiedSequence=t;const[r,i,s]=h._getElements(e),[o,a,l]=h._getElements(t);this._hasStrings=s&&l,this._originalStringElements=r,this._originalElementsOrHash=i,this._modifiedStringElements=o,this._modifiedElementsOrHash=a,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"===typeof e[0]}static _getElements(e){const t=e.getElements();if(h._isStringArray(t)){const e=new Int32Array(t.length);for(let n=0,r=t.length;n<r;n++)e[n]=(0,i.e2)(t[n],0);return[t,e,!0]}return t instanceof Int32Array?[[],t,!1]:[[],new Int32Array(t),!1]}ElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._modifiedStringElements[t])}ElementsAreStrictEqual(e,t){if(!this.ElementsAreEqual(e,t))return!1;return h._getStrictElement(this._originalSequence,e)===h._getStrictElement(this._modifiedSequence,t)}static _getStrictElement(e,t){return"function"===typeof e.getStrictElement?e.getStrictElement(t):null}OriginalElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._originalElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._originalStringElements[t])}ModifiedElementsAreEqual(e,t){return this._modifiedElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._modifiedStringElements[e]===this._modifiedStringElements[t])}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,t,n,r,i){const s=[!1];let o=this.ComputeDiffRecursive(e,t,n,r,s);return i&&(o=this.PrettifyChanges(o)),{quitEarly:s[0],changes:o}}ComputeDiffRecursive(e,t,n,i,s){for(s[0]=!1;e<=t&&n<=i&&this.ElementsAreEqual(e,n);)e++,n++;for(;t>=e&&i>=n&&this.ElementsAreEqual(t,i);)t--,i--;if(e>t||n>i){let s;return n<=i?(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),s=[new r(e,0,n,i-n+1)]):e<=t?(a.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),s=[new r(e,t-e+1,n,0)]):(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),a.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),s=[]),s}const o=[0],l=[0],c=this.ComputeRecursionPoint(e,t,n,i,o,l,s),h=o[0],u=l[0];if(null!==c)return c;if(!s[0]){const o=this.ComputeDiffRecursive(e,h,n,u,s);let a=[];return a=s[0]?[new r(h+1,t-(h+1)+1,u+1,i-(u+1)+1)]:this.ComputeDiffRecursive(h+1,t,u+1,i,s),this.ConcatenateChanges(o,a)}return[new r(e,t-e+1,n,i-n+1)]}WALKTRACE(e,t,n,i,s,o,a,l,h,u,d,g,f,m,p,b,_,k){let v=null,C=null,y=new c,L=t,w=n,S=f[0]-b[0]-i,x=-1073741824,E=this.m_forwardHistory.length-1;do{const t=S+e;t===L||t<w&&h[t-1]<h[t+1]?(m=(d=h[t+1])-S-i,d<x&&y.MarkNextChange(),x=d,y.AddModifiedElement(d+1,m),S=t+1-e):(m=(d=h[t-1]+1)-S-i,d<x&&y.MarkNextChange(),x=d-1,y.AddOriginalElement(d,m+1),S=t-1-e),E>=0&&(e=(h=this.m_forwardHistory[E])[0],L=1,w=h.length-1)}while(--E>=-1);if(v=y.getReverseChanges(),k[0]){let e=f[0]+1,t=b[0]+1;if(null!==v&&v.length>0){const n=v[v.length-1];e=Math.max(e,n.getOriginalEnd()),t=Math.max(t,n.getModifiedEnd())}C=[new r(e,g-e+1,t,p-t+1)]}else{y=new c,L=o,w=a,S=f[0]-b[0]-l,x=1073741824,E=_?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=S+s;e===L||e<w&&u[e-1]>=u[e+1]?(m=(d=u[e+1]-1)-S-l,d>x&&y.MarkNextChange(),x=d+1,y.AddOriginalElement(d+1,m+1),S=e+1-s):(m=(d=u[e-1])-S-l,d>x&&y.MarkNextChange(),x=d,y.AddModifiedElement(d+1,m+1),S=e-1-s),E>=0&&(s=(u=this.m_reverseHistory[E])[0],L=1,w=u.length-1)}while(--E>=-1);C=y.getChanges()}return this.ConcatenateChanges(v,C)}ComputeRecursionPoint(e,t,n,i,s,o,a){let c=0,h=0,u=0,d=0,g=0,f=0;e--,n--,s[0]=0,o[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const m=t-e+(i-n),p=m+1,b=new Int32Array(p),_=new Int32Array(p),k=i-n,v=t-e,C=e-n,y=t-i,L=(v-k)%2===0;b[k]=e,_[v]=t,a[0]=!1;for(let w=1;w<=m/2+1;w++){let m=0,S=0;u=this.ClipDiagonalBound(k-w,w,k,p),d=this.ClipDiagonalBound(k+w,w,k,p);for(let e=u;e<=d;e+=2){c=e===u||e<d&&b[e-1]<b[e+1]?b[e+1]:b[e-1]+1,h=c-(e-k)-C;const n=c;for(;c<t&&h<i&&this.ElementsAreEqual(c+1,h+1);)c++,h++;if(b[e]=c,c+h>m+S&&(m=c,S=h),!L&&Math.abs(e-v)<=w-1&&c>=_[e])return s[0]=c,o[0]=h,n<=_[e]&&w<=1448?this.WALKTRACE(k,u,d,C,v,g,f,y,b,_,c,t,s,h,i,o,L,a):null}const x=(m-e+(S-n)-w)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(m,x))return a[0]=!0,s[0]=m,o[0]=S,x>0&&w<=1448?this.WALKTRACE(k,u,d,C,v,g,f,y,b,_,c,t,s,h,i,o,L,a):(e++,n++,[new r(e,t-e+1,n,i-n+1)]);g=this.ClipDiagonalBound(v-w,w,v,p),f=this.ClipDiagonalBound(v+w,w,v,p);for(let r=g;r<=f;r+=2){c=r===g||r<f&&_[r-1]>=_[r+1]?_[r+1]-1:_[r-1],h=c-(r-v)-y;const l=c;for(;c>e&&h>n&&this.ElementsAreEqual(c,h);)c--,h--;if(_[r]=c,L&&Math.abs(r-k)<=w&&c<=b[r])return s[0]=c,o[0]=h,l>=b[r]&&w<=1448?this.WALKTRACE(k,u,d,C,v,g,f,y,b,_,c,t,s,h,i,o,L,a):null}if(w<=1447){let e=new Int32Array(d-u+2);e[0]=k-u+1,l.Copy2(b,u,e,1,d-u+1),this.m_forwardHistory.push(e),e=new Int32Array(f-g+2),e[0]=v-g+1,l.Copy2(_,g,e,1,f-g+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(k,u,d,C,v,g,f,y,b,_,c,t,s,h,i,o,L,a)}PrettifyChanges(e){for(let t=0;t<e.length;t++){const 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,s=n.originalLength>0,o=n.modifiedLength>0;for(;n.originalStart+n.originalLength<r&&n.modifiedStart+n.modifiedLength<i&&(!s||this.OriginalElementsAreEqual(n.originalStart,n.originalStart+n.originalLength))&&(!o||this.ModifiedElementsAreEqual(n.modifiedStart,n.modifiedStart+n.modifiedLength));){const e=this.ElementsAreStrictEqual(n.originalStart,n.modifiedStart);if(this.ElementsAreStrictEqual(n.originalStart+n.originalLength,n.modifiedStart+n.modifiedLength)&&!e)break;n.originalStart++,n.modifiedStart++}const a=[null];t<e.length-1&&this.ChangesOverlap(e[t],e[t+1],a)&&(e[t]=a[0],e.splice(t+1,1),t--)}for(let t=e.length-1;t>=0;t--){const n=e[t];let r=0,i=0;if(t>0){const n=e[t-1];r=n.originalStart+n.originalLength,i=n.modifiedStart+n.modifiedLength}const s=n.originalLength>0,o=n.modifiedLength>0;let a=0,l=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let e=1;;e++){const t=n.originalStart-e,c=n.modifiedStart-e;if(t<r||c<i)break;if(s&&!this.OriginalElementsAreEqual(t,t+n.originalLength))break;if(o&&!this.ModifiedElementsAreEqual(c,c+n.modifiedLength))break;const h=(t===r&&c===i?5:0)+this._boundaryScore(t,n.originalLength,c,n.modifiedLength);h>l&&(l=h,a=e)}n.originalStart-=a,n.modifiedStart-=a;const c=[null];t>0&&this.ChangesOverlap(e[t-1],e[t],c)&&(e[t-1]=c[0],e.splice(t,1),t++)}if(this._hasStrings)for(let t=1,n=e.length;t<n;t++){const n=e[t-1],r=e[t],i=r.originalStart-n.originalStart-n.originalLength,s=n.originalStart,o=r.originalStart+r.originalLength,a=o-s,l=n.modifiedStart,c=r.modifiedStart+r.modifiedLength,h=c-l;if(i<5&&a<20&&h<20){const e=this._findBetterContiguousSequence(s,a,l,h,i);if(e){const[t,s]=e;t===n.originalStart+n.originalLength&&s===n.modifiedStart+n.modifiedLength||(n.originalLength=t-n.originalStart,n.modifiedLength=s-n.modifiedStart,r.originalStart=t+i,r.modifiedStart=s+i,r.originalLength=o-r.originalStart,r.modifiedLength=c-r.modifiedStart)}}}return e}_findBetterContiguousSequence(e,t,n,r,i){if(t<i||r<i)return null;const s=e+t-i+1,o=n+r-i+1;let a=0,l=0,c=0;for(let h=e;h<s;h++)for(let e=n;e<o;e++){const t=this._contiguousSequenceScore(h,e,i);t>0&&t>a&&(a=t,l=h,c=e)}return a>0?[l,c]: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){const 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){const 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)?1:0)+(this._ModifiedRegionIsBoundary(n,r)?1:0)}ConcatenateChanges(e,t){const n=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){const r=new Array(e.length+t.length-1);return l.Copy(e,0,r,0,e.length-1),r[e.length-1]=n[0],l.Copy(t,1,r,e.length,t.length-1),r}{const n=new Array(e.length+t.length);return l.Copy(e,0,n,0,e.length),l.Copy(t,0,n,e.length,t.length),n}}ChangesOverlap(e,t,n){if(a.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),a.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){const i=e.originalStart;let s=e.originalLength;const o=e.modifiedStart;let a=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(s=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(a=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new r(i,s,o,a),!0}return n[0]=null,!1}ClipDiagonalBound(e,t,n,r){if(e>=0&&e<r)return e;const i=t%2===0;if(e<0){return i===(n%2===0)?0:1}return i===((r-n-1)%2===0)?r-1:r-2}}var u=n(6677),d=n(534);class g{constructor(e,t,n){const r=new Uint8Array(e*t);for(let i=0,s=e*t;i<s;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}}class f{constructor(e){let t=0,n=0;for(let i=0,s=e.length;i<s;i++){const[r,s,o]=e[i];s>t&&(t=s),r>n&&(n=r),o>n&&(n=o)}t++,n++;const r=new g(n,t,0);for(let i=0,s=e.length;i<s;i++){const[t,n,s]=e[i];r.set(t,n,s)}this._states=r,this._maxCharCode=t}nextState(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)}}let m=null;let p=null;class b{static _createLink(e,t,n,r,i){let s=i-1;do{const n=t.charCodeAt(s);if(2!==e.get(n))break;s--}while(s>r);if(r>0){const e=t.charCodeAt(r-1),n=t.charCodeAt(s);(40===e&&41===n||91===e&&93===n||123===e&&125===n)&&s--}return{range:{startLineNumber:n,startColumn:r+1,endLineNumber:n,endColumn:s+2},url:t.substring(r,s+1)}}static computeLinks(e,t=function(){return null===m&&(m=new f([[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]])),m}()){const n=function(){if(null===p){p=new d.V(0);const e=" \t<>'\"\u3001\u3002\uff61\uff64\uff0c\uff0e\uff1a\uff1b\u2018\u3008\u300c\u300e\u3014\uff08\uff3b\uff5b\uff62\uff63\uff5d\uff3d\uff09\u3015\u300f\u300d\u3009\u2019\uff40\uff5e\u2026";for(let n=0;n<e.length;n++)p.set(e.charCodeAt(n),1);const t=".,;:";for(let n=0;n<t.length;n++)p.set(t.charCodeAt(n),2)}return p}(),r=[];for(let i=1,s=e.getLineCount();i<=s;i++){const s=e.getLineContent(i),o=s.length;let a=0,l=0,c=0,h=1,u=!1,d=!1,g=!1,f=!1;for(;a<o;){let e=!1;const o=s.charCodeAt(a);if(13===h){let t;switch(o){case 40:u=!0,t=0;break;case 41:t=u?0:1;break;case 91:g=!0,d=!0,t=0;break;case 93:g=!1,t=d?0:1;break;case 123:f=!0,t=0;break;case 125:t=f?0:1;break;case 39:case 34:case 96:t=c===o?1:39===c||34===c||96===c?0:1;break;case 42:t=42===c?1:0;break;case 124:t=124===c?1:0;break;case 32:t=g?0:1;break;default:t=n.get(o)}1===t&&(r.push(b._createLink(n,s,i,l,a)),e=!0)}else if(12===h){let t;91===o?(d=!0,t=0):t=n.get(o),1===t?e=!0:h=13}else h=t.nextState(h,o),0===h&&(e=!0);e&&(h=1,u=!1,d=!1,f=!1,l=a+1,c=o),a++}13===h&&r.push(b._createLink(n,s,i,l,o))}return r}}class _{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}static{this.INSTANCE=new _}navigateValueSet(e,t,n,r,i){if(e&&t){const n=this.doNavigateValueSet(t,i);if(n)return{range:e,value:n}}if(n&&r){const e=this.doNavigateValueSet(r,i);if(e)return{range:n,value:e}}return null}doNavigateValueSet(e,t){const n=this.numberReplace(e,t);return null!==n?n:this.textReplace(e,t)}numberReplace(e,t){const n=Math.pow(10,e.length-(e.lastIndexOf(".")+1));let r=Number(e);const i=parseFloat(e);return isNaN(r)||isNaN(i)||r!==i?null:0!==r||t?(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,s=e.length;null===r&&i<s;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}}var k=n(4272),v=n(718),C=n(8381),y=n(4855);class L{constructor(e,t,n){this.changes=e,this.moves=t,this.hitTimeout=n}}class w{constructor(e,t){this.lineRangeMapping=e,this.changes=t}}var S=n(4383),x=n(6571),E=n(3069),N=n(6782),T=n(4444);n(973);class A{constructor(e,t){this.range=e,this.text=t}toSingleEditOperation(){return{range:this.range,text:this.text}}}class I{static inverse(e,t,n){const r=[];let i=1,s=1;for(const a of e){const e=new I(new x.M(i,a.original.startLineNumber),new x.M(s,a.modified.startLineNumber));e.modified.isEmpty||r.push(e),i=a.original.endLineNumberExclusive,s=a.modified.endLineNumberExclusive}const o=new I(new x.M(i,t+1),new x.M(s,n+1));return o.modified.isEmpty||r.push(o),r}static clip(e,t,n){const r=[];for(const i of e){const e=i.original.intersect(t),s=i.modified.intersect(n);e&&!e.isEmpty&&s&&!s.isEmpty&&r.push(new I(e,s))}return r}constructor(e,t){this.original=e,this.modified=t}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new I(this.modified,this.original)}join(e){return new I(this.original.join(e.original),this.modified.join(e.modified))}toRangeMapping(){const e=this.original.toInclusiveRange(),t=this.modified.toInclusiveRange();if(e&&t)return new D(e,t);if(1===this.original.startLineNumber||1===this.modified.startLineNumber){if(1!==this.modified.startLineNumber||1!==this.original.startLineNumber)throw new S.D7("not a valid diff");return new D(new u.Q(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new u.Q(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}return new D(new u.Q(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new u.Q(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}toRangeMapping2(e,t){if(M(this.original.endLineNumberExclusive,e)&&M(this.modified.endLineNumberExclusive,t))return new D(new u.Q(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new u.Q(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1));if(!this.original.isEmpty&&!this.modified.isEmpty)return new D(u.Q.fromPositions(new E.y(this.original.startLineNumber,1),O(new E.y(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),u.Q.fromPositions(new E.y(this.modified.startLineNumber,1),O(new E.y(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)));if(this.original.startLineNumber>1&&this.modified.startLineNumber>1)return new D(u.Q.fromPositions(O(new E.y(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER),e),O(new E.y(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),u.Q.fromPositions(O(new E.y(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER),t),O(new E.y(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)));throw new S.D7}}function O(e,t){if(e.lineNumber<1)return new E.y(1,1);if(e.lineNumber>t.length)return new E.y(t.length,t[t.length-1].length+1);const n=t[e.lineNumber-1];return e.column>n.length+1?new E.y(e.lineNumber,n.length+1):e}function M(e,t){return e>=1&&e<=t.length}class R extends I{static fromRangeMappings(e){const t=x.M.join(e.map((e=>x.M.fromRangeInclusive(e.originalRange)))),n=x.M.join(e.map((e=>x.M.fromRangeInclusive(e.modifiedRange))));return new R(t,n,e)}constructor(e,t,n){super(e,t),this.innerChanges=n}flip(){return new R(this.modified,this.original,this.innerChanges?.map((e=>e.flip())))}withInnerChangesFromLineRanges(){return new R(this.original,this.modified,[this.toRangeMapping()])}}class D{static assertSorted(e){for(let t=1;t<e.length;t++){const n=e[t-1],r=e[t];if(!n.originalRange.getEndPosition().isBeforeOrEqual(r.originalRange.getStartPosition())||!n.modifiedRange.getEndPosition().isBeforeOrEqual(r.modifiedRange.getStartPosition()))throw new S.D7("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 D(this.modifiedRange,this.originalRange)}toTextEdit(e){const t=e.getValueOfRange(this.modifiedRange);return new A(this.originalRange,t)}}var B=n(1508);class F{computeDiff(e,t,n){const r=new W(e,t,{maxComputationTime:n.maxComputationTimeMs,shouldIgnoreTrimWhitespace:n.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),i=[];let s=null;for(const o of r.changes){let e,t;e=0===o.originalEndLineNumber?new x.M(o.originalStartLineNumber+1,o.originalStartLineNumber+1):new x.M(o.originalStartLineNumber,o.originalEndLineNumber+1),t=0===o.modifiedEndLineNumber?new x.M(o.modifiedStartLineNumber+1,o.modifiedStartLineNumber+1):new x.M(o.modifiedStartLineNumber,o.modifiedEndLineNumber+1);let n=new R(e,t,o.charChanges?.map((e=>new D(new u.Q(e.originalStartLineNumber,e.originalStartColumn,e.originalEndLineNumber,e.originalEndColumn),new u.Q(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)))));s&&(s.modified.endLineNumberExclusive!==n.modified.startLineNumber&&s.original.endLineNumberExclusive!==n.original.startLineNumber||(n=new R(s.original.join(n.original),s.modified.join(n.modified),s.innerChanges&&n.innerChanges?s.innerChanges.concat(n.innerChanges):void 0),i.pop())),i.push(n),s=n}return(0,N.Ft)((()=>(0,N.Xo)(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 L(i,[],r.quitEarly)}}function P(e,t,n,r){return new h(e,t,n).ComputeDiff(r)}class V{constructor(e){const t=[],n=[];for(let r=0,i=e.length;r<i;r++)t[r]=U(e[r],1),n[r]=$(e[r],1);this.lines=e,this._startColumns=t,this._endColumns=n}getElements(){const 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){const r=[],i=[],s=[];let o=0;for(let a=t;a<=n;a++){const t=this.lines[a],l=e?this._startColumns[a]:1,c=e?this._endColumns[a]:t.length+1;for(let e=l;e<c;e++)r[o]=t.charCodeAt(e-1),i[o]=a+1,s[o]=e,o++;!e&&a<n&&(r[o]=10,i[o]=a+1,s[o]=t.length+1,o++)}return new z(r,i,s)}}class z{constructor(e,t,n){this._charCodes=e,this._lineNumbers=t,this._columns=n}toString(){return"["+this._charCodes.map(((e,t)=>(10===e?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[t]},${this._columns[t]})`)).join(", ")+"]"}_assertIndex(e,t){if(e<0||e>=t.length)throw new 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-1===e?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),10===this._charCodes[e]?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-1===e?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),10===this._charCodes[e]?1:this._columns[e]+1)}}class j{constructor(e,t,n,r,i,s,o,a){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=n,this.originalEndColumn=r,this.modifiedStartLineNumber=i,this.modifiedStartColumn=s,this.modifiedEndLineNumber=o,this.modifiedEndColumn=a}static createFromDiffChange(e,t,n){const r=t.getStartLineNumber(e.originalStart),i=t.getStartColumn(e.originalStart),s=t.getEndLineNumber(e.originalStart+e.originalLength-1),o=t.getEndColumn(e.originalStart+e.originalLength-1),a=n.getStartLineNumber(e.modifiedStart),l=n.getStartColumn(e.modifiedStart),c=n.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),h=n.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new j(r,i,s,o,a,l,c,h)}}class q{constructor(e,t,n,r,i){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=n,this.modifiedEndLineNumber=r,this.charChanges=i}static createFromDiffResult(e,t,n,r,i,s,o){let a,l,c,h,u;if(0===t.originalLength?(a=n.getStartLineNumber(t.originalStart)-1,l=0):(a=n.getStartLineNumber(t.originalStart),l=n.getEndLineNumber(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(c=r.getStartLineNumber(t.modifiedStart)-1,h=0):(c=r.getStartLineNumber(t.modifiedStart),h=r.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),s&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&i()){const s=n.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),a=r.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);if(s.getElements().length>0&&a.getElements().length>0){let e=P(s,a,i,!0).changes;o&&(e=function(e){if(e.length<=1)return e;const t=[e[0]];let n=t[0];for(let r=1,i=e.length;r<i;r++){const i=e[r],s=i.originalStart-(n.originalStart+n.originalLength),o=i.modifiedStart-(n.modifiedStart+n.modifiedLength);Math.min(s,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}(e)),u=[];for(let t=0,n=e.length;t<n;t++)u.push(j.createFromDiffChange(e[t],s,a))}}return new q(a,l,c,h,u)}}class W{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 V(e),this.modified=new V(t),this.continueLineDiff=H(n.maxComputationTime),this.continueCharDiff=H(0===n.maxComputationTime?0:Math.min(n.maxComputationTime,5e3))}computeDiff(){if(1===this.original.lines.length&&0===this.original.lines[0].length)return 1===this.modified.lines.length&&0===this.modified.lines[0].length?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(1===this.modified.lines.length&&0===this.modified.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const e=P(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=e.changes,n=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){const e=[];for(let n=0,r=t.length;n<r;n++)e.push(q.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[n],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:n,changes:e}}const r=[];let i=0,s=0;for(let o=-1,a=t.length;o<a;o++){const e=o+1<a?t[o+1]:null,n=e?e.originalStart:this.originalLines.length,l=e?e.modifiedStart:this.modifiedLines.length;for(;i<n&&s<l;){const e=this.originalLines[i],t=this.modifiedLines[s];if(e!==t){{let n=U(e,1),o=U(t,1);for(;n>1&&o>1;){if(e.charCodeAt(n-2)!==t.charCodeAt(o-2))break;n--,o--}(n>1||o>1)&&this._pushTrimWhitespaceCharChange(r,i+1,1,n,s+1,1,o)}{let n=$(e,1),o=$(t,1);const a=e.length+1,l=t.length+1;for(;n<a&&o<l;){if(e.charCodeAt(n-1)!==e.charCodeAt(o-1))break;n++,o++}(n<a||o<l)&&this._pushTrimWhitespaceCharChange(r,i+1,n,a,s+1,o,l)}}i++,s++}e&&(r.push(q.createFromDiffResult(this.shouldIgnoreTrimWhitespace,e,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),i+=e.originalLength,s+=e.modifiedLength)}return{quitEarly:n,changes:r}}_pushTrimWhitespaceCharChange(e,t,n,r,i,s,o){if(this._mergeTrimWhitespaceCharChange(e,t,n,r,i,s,o))return;let a;this.shouldComputeCharChanges&&(a=[new j(t,n,t,r,i,s,i,o)]),e.push(new q(t,t,i,i,a))}_mergeTrimWhitespaceCharChange(e,t,n,r,i,s,o){const a=e.length;if(0===a)return!1;const l=e[a-1];return 0!==l.originalEndLineNumber&&0!==l.modifiedEndLineNumber&&(l.originalEndLineNumber===t&&l.modifiedEndLineNumber===i?(this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new j(t,n,t,r,i,s,i,o)),!0):l.originalEndLineNumber+1===t&&l.modifiedEndLineNumber+1===i&&(l.originalEndLineNumber=t,l.modifiedEndLineNumber=i,this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new j(t,n,t,r,i,s,i,o)),!0))}}function U(e,t){const n=B.HG(e);return-1===n?t:n+1}function $(e,t){const n=B.lT(e);return-1===n?t:n+2}function H(e){if(0===e)return()=>!0;const t=Date.now();return()=>Date.now()-t<e}var K=n(9861);class G{static trivial(e,t){return new G([new Q(T.L.ofLength(e.length),T.L.ofLength(t.length))],!1)}static trivialTimedOut(e,t){return new G([new Q(T.L.ofLength(e.length),T.L.ofLength(t.length))],!0)}constructor(e,t){this.diffs=e,this.hitTimeout=t}}class Q{static invert(e,t){const n=[];return(0,K.pN)(e,((e,r)=>{n.push(Q.fromOffsetPairs(e?e.getEndExclusives():J.zero,r?r.getStarts():new J(t,(e?e.seq2Range.endExclusive-e.seq1Range.endExclusive:0)+t)))})),n}static fromOffsetPairs(e,t){return new Q(new T.L(e.offset1,t.offset1),new T.L(e.offset2,t.offset2))}static assertSorted(e){let t;for(const n of e){if(t&&!(t.seq1Range.endExclusive<=n.seq1Range.start&&t.seq2Range.endExclusive<=n.seq2Range.start))throw new S.D7("Sequence diffs must be sorted");t=n}}constructor(e,t){this.seq1Range=e,this.seq2Range=t}swap(){return new Q(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(e){return new Q(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}delta(e){return 0===e?this:new Q(this.seq1Range.delta(e),this.seq2Range.delta(e))}deltaStart(e){return 0===e?this:new Q(this.seq1Range.deltaStart(e),this.seq2Range.deltaStart(e))}deltaEnd(e){return 0===e?this:new Q(this.seq1Range.deltaEnd(e),this.seq2Range.deltaEnd(e))}intersect(e){const t=this.seq1Range.intersect(e.seq1Range),n=this.seq2Range.intersect(e.seq2Range);if(t&&n)return new Q(t,n)}getStarts(){return new J(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new J(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}class J{static{this.zero=new J(0,0)}static{this.max=new J(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER)}constructor(e,t){this.offset1=e,this.offset2=t}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(e){return 0===e?this:new J(this.offset1+e,this.offset2+e)}equals(e){return this.offset1===e.offset1&&this.offset2===e.offset2}}class X{static{this.instance=new X}isValid(){return!0}}class Y{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new S.D7("timeout must be positive")}isValid(){return!(Date.now()-this.startTime<this.timeout)&&this.valid&&(this.valid=!1),this.valid}}class Z{constructor(e,t){this.width=e,this.height=t,this.array=[],this.array=new 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 ee(e){return 32===e||9===e}class te{static{this.chrKeys=new Map}static getKey(e){let t=this.chrKeys.get(e);return void 0===t&&(t=this.chrKeys.size,this.chrKeys.set(e,t)),t}constructor(e,t,n){this.range=e,this.lines=t,this.source=n,this.histogram=[];let r=0;for(let i=e.startLineNumber-1;i<e.endLineNumberExclusive-1;i++){const e=t[i];for(let t=0;t<e.length;t++){r++;const n=e[t],i=te.getKey(n);this.histogram[i]=(this.histogram[i]||0)+1}r++;const n=te.getKey("\n");this.histogram[n]=(this.histogram[n]||0)+1}this.totalCount=r}computeSimilarity(e){let t=0;const 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)}}class ne{compute(e,t,n=X.instance,r){if(0===e.length||0===t.length)return G.trivial(e,t);const i=new Z(e.length,t.length),s=new Z(e.length,t.length),o=new Z(e.length,t.length);for(let g=0;g<e.length;g++)for(let a=0;a<t.length;a++){if(!n.isValid())return G.trivialTimedOut(e,t);const l=0===g?0:i.get(g-1,a),c=0===a?0:i.get(g,a-1);let h;e.getElement(g)===t.getElement(a)?(h=0===g||0===a?0:i.get(g-1,a-1),g>0&&a>0&&3===s.get(g-1,a-1)&&(h+=o.get(g-1,a-1)),h+=r?r(g,a):1):h=-1;const u=Math.max(l,c,h);if(u===h){const e=g>0&&a>0?o.get(g-1,a-1):0;o.set(g,a,e+1),s.set(g,a,3)}else u===l?(o.set(g,a,0),s.set(g,a,1)):u===c&&(o.set(g,a,0),s.set(g,a,2));i.set(g,a,u)}const a=[];let l=e.length,c=t.length;function h(e,t){e+1===l&&t+1===c||a.push(new Q(new T.L(e+1,l),new T.L(t+1,c))),l=e,c=t}let u=e.length-1,d=t.length-1;for(;u>=0&&d>=0;)3===s.get(u,d)?(h(u,d),u--,d--):1===s.get(u,d)?u--:d--;return h(-1,-1),a.reverse(),new G(a,!1)}}class re{compute(e,t,n=X.instance){if(0===e.length||0===t.length)return G.trivial(e,t);const r=e,i=t;function s(e,t){for(;e<r.length&&t<i.length&&r.getElement(e)===i.getElement(t);)e++,t++;return e}let o=0;const a=new se;a.set(0,s(0,0));const l=new oe;l.set(0,0===a.get(0)?null:new ie(null,0,0,a.get(0)));let c=0;e:for(;;){if(o++,!n.isValid())return G.trivialTimedOut(r,i);const e=-Math.min(o,i.length+o%2),t=Math.min(o,r.length+o%2);for(c=e;c<=t;c+=2){let n=0;const o=c===t?-1:a.get(c+1),h=c===e?-1:a.get(c-1)+1;n++;const u=Math.min(Math.max(o,h),r.length),d=u-c;if(n++,u>r.length||d>i.length)continue;const g=s(u,d);a.set(c,g);const f=u===o?l.get(c+1):l.get(c-1);if(l.set(c,g!==u?new ie(f,u,d,g-u):f),a.get(c)===r.length&&a.get(c)-c===i.length)break e}}let h=l.get(c);const u=[];let d=r.length,g=i.length;for(;;){const e=h?h.x+h.length:0,t=h?h.y+h.length:0;if(e===d&&t===g||u.push(new Q(new T.L(e,d),new T.L(t,g))),!h)break;d=h.x,g=h.y,h=h.prev}return u.reverse(),new G(u,!1)}}class ie{constructor(e,t,n,r){this.prev=e,this.x=t,this.y=n,this.length=r}}class se{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=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)>=this.negativeArr.length){const e=this.negativeArr;this.negativeArr=new Int32Array(2*e.length),this.negativeArr.set(e)}this.negativeArr[e]=t}else{if(e>=this.positiveArr.length){const e=this.positiveArr;this.positiveArr=new Int32Array(2*e.length),this.positiveArr.set(e)}this.positiveArr[e]=t}}}class oe{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}}var ae=n(6041),le=n(4320);class ce{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 r=this.range.startLineNumber;r<=this.range.endLineNumber;r++){let t=e[r-1],i=0;r===this.range.startLineNumber&&this.range.startColumn>1&&(i=this.range.startColumn-1,t=t.substring(i)),this.lineStartOffsets.push(i);let s=0;if(!n){const e=t.trimStart();s=t.length-e.length,t=e.trimEnd()}this.trimmedWsLengthsByLineIdx.push(s);const o=r===this.range.endLineNumber?Math.min(this.range.endColumn-1-i-s,t.length):t.length;for(let e=0;e<o;e++)this.elements.push(t.charCodeAt(e));r<this.range.endLineNumber&&(this.elements.push("\n".charCodeAt(0)),this.firstElementOffsetByLineIdx.push(this.elements.length))}}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new T.L(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){const t=ge(e>0?this.elements[e-1]:-1),n=ge(e<this.elements.length?this.elements[e]:-1);if(7===t&&8===n)return 0;if(8===t)return 150;let r=0;return t!==n&&(r+=10,0===t&&1===n&&(r+=1)),r+=de(t),r+=de(n),r}translateOffset(e,t="right"){const n=(0,ae.iM)(this.firstElementOffsetByLineIdx,(t=>t<=e)),r=e-this.firstElementOffsetByLineIdx[n];return new E.y(this.range.startLineNumber+n,1+this.lineStartOffsets[n]+r+(0===r&&"left"===t?0:this.trimmedWsLengthsByLineIdx[n]))}translateRange(e){const t=this.translateOffset(e.start,"right"),n=this.translateOffset(e.endExclusive,"left");return n.isBefore(t)?u.Q.fromPositions(n,n):u.Q.fromPositions(t,n)}findWordContaining(e){if(e<0||e>=this.elements.length)return;if(!he(this.elements[e]))return;let t=e;for(;t>0&&he(this.elements[t-1]);)t--;let n=e;for(;n<this.elements.length&&he(this.elements[n]);)n++;return new T.L(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){const t=(0,ae.lx)(this.firstElementOffsetByLineIdx,(t=>t<=e.start))??0,n=(0,ae.XP)(this.firstElementOffsetByLineIdx,(t=>e.endExclusive<=t))??this.elements.length;return new T.L(t,n)}}function he(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}const ue={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function de(e){return ue[e]}function ge(e){return 10===e?8:13===e?7:ee(e)?6:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:-1===e?3:44===e||59===e?5:4}function fe(e,t,n,r,i,s){let{moves:o,excludedChanges:a}=function(e,t,n,r){const i=[],s=e.filter((e=>e.modified.isEmpty&&e.original.length>=3)).map((e=>new te(e.original,t,e))),o=new Set(e.filter((e=>e.original.isEmpty&&e.modified.length>=3)).map((e=>new te(e.modified,n,e)))),a=new Set;for(const l of s){let e,t=-1;for(const n of o){const r=l.computeSimilarity(n);r>t&&(t=r,e=n)}if(t>.9&&e&&(o.delete(e),i.push(new I(l.range,e.range)),a.add(l.source),a.add(e.source)),!r.isValid())return{moves:i,excludedChanges:a}}return{moves:i,excludedChanges:a}}(e,t,n,s);if(!s.isValid())return[];const l=function(e,t,n,r,i,s){const o=[],a=new le.db;for(const d of e)for(let e=d.original.startLineNumber;e<d.original.endLineNumberExclusive-2;e++){const n=`${t[e-1]}:${t[e+1-1]}:${t[e+2-1]}`;a.add(n,{range:new x.M(e,e+3)})}const l=[];e.sort((0,K.VE)((e=>e.modified.startLineNumber),K.U9));for(const d of e){let e=[];for(let t=d.modified.startLineNumber;t<d.modified.endLineNumberExclusive-2;t++){const r=`${n[t-1]}:${n[t+1-1]}:${n[t+2-1]}`,i=new x.M(t,t+3),s=[];a.forEach(r,(({range:t})=>{for(const r of e)if(r.originalLineRange.endLineNumberExclusive+1===t.endLineNumberExclusive&&r.modifiedLineRange.endLineNumberExclusive+1===i.endLineNumberExclusive)return r.originalLineRange=new x.M(r.originalLineRange.startLineNumber,t.endLineNumberExclusive),r.modifiedLineRange=new x.M(r.modifiedLineRange.startLineNumber,i.endLineNumberExclusive),void s.push(r);const n={modifiedLineRange:i,originalLineRange:t};l.push(n),s.push(n)})),e=s}if(!s.isValid())return[]}l.sort((0,K.Hw)((0,K.VE)((e=>e.modifiedLineRange.length),K.U9)));const c=new x.S,h=new x.S;for(const d of l){const e=d.modifiedLineRange.startLineNumber-d.originalLineRange.startLineNumber,t=c.subtractFrom(d.modifiedLineRange),n=h.subtractFrom(d.originalLineRange).getWithDelta(e),r=t.getIntersection(n);for(const i of r.ranges){if(i.length<3)continue;const t=i,n=i.delta(-e);o.push(new I(n,t)),c.addRange(t),h.addRange(n)}}o.sort((0,K.VE)((e=>e.original.startLineNumber),K.U9));const u=new ae.vJ(e);for(let d=0;d<o.length;d++){const t=o[d],n=u.findLastMonotonous((e=>e.original.startLineNumber<=t.original.startLineNumber)),a=(0,ae.lx)(e,(e=>e.modified.startLineNumber<=t.modified.startLineNumber)),l=Math.max(t.original.startLineNumber-n.original.startLineNumber,t.modified.startLineNumber-a.modified.startLineNumber),g=u.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive)),f=(0,ae.lx)(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)),m=Math.max(g.original.endLineNumberExclusive-t.original.endLineNumberExclusive,f.modified.endLineNumberExclusive-t.modified.endLineNumberExclusive);let p,b;for(p=0;p<l;p++){const e=t.original.startLineNumber-p-1,n=t.modified.startLineNumber-p-1;if(e>r.length||n>i.length)break;if(c.contains(n)||h.contains(e))break;if(!me(r[e-1],i[n-1],s))break}for(p>0&&(h.addRange(new x.M(t.original.startLineNumber-p,t.original.startLineNumber)),c.addRange(new x.M(t.modified.startLineNumber-p,t.modified.startLineNumber))),b=0;b<m;b++){const e=t.original.endLineNumberExclusive+b,n=t.modified.endLineNumberExclusive+b;if(e>r.length||n>i.length)break;if(c.contains(n)||h.contains(e))break;if(!me(r[e-1],i[n-1],s))break}b>0&&(h.addRange(new x.M(t.original.endLineNumberExclusive,t.original.endLineNumberExclusive+b)),c.addRange(new x.M(t.modified.endLineNumberExclusive,t.modified.endLineNumberExclusive+b))),(p>0||b>0)&&(o[d]=new I(new x.M(t.original.startLineNumber-p,t.original.endLineNumberExclusive+b),new x.M(t.modified.startLineNumber-p,t.modified.endLineNumberExclusive+b)))}return o}(e.filter((e=>!a.has(e))),r,i,t,n,s);return(0,K.E4)(o,l),o=function(e){if(0===e.length)return e;e.sort((0,K.VE)((e=>e.original.startLineNumber),K.U9));const t=[e[0]];for(let n=1;n<e.length;n++){const r=t[t.length-1],i=e[n],s=i.original.startLineNumber-r.original.endLineNumberExclusive,o=i.modified.startLineNumber-r.modified.endLineNumberExclusive;s>=0&&o>=0&&s+o<=2?t[t.length-1]=r.join(i):t.push(i)}return t}(o),o=o.filter((e=>{const n=e.original.toOffsetRange().slice(t).map((e=>e.trim()));return n.join("\n").length>=15&&function(e,t){let n=0;for(const r of e)t(r)&&n++;return n}(n,(e=>e.length>=2))>=2})),o=function(e,t){const n=new ae.vJ(e);return t=t.filter((t=>(n.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive))||new I(new x.M(1,1),new x.M(1,1)))!==(0,ae.lx)(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)))),t}(e,o),o}function me(e,t,n){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;const r=(new re).compute(new ce([e],new u.Q(1,1,1,e.length),!1),new ce([t],new u.Q(1,1,1,t.length),!1),n);let i=0;const s=Q.invert(r.diffs,e.length);for(const a of s)a.seq1Range.forEach((t=>{ee(e.charCodeAt(t))||i++}));const o=function(t){let n=0;for(let r=0;r<e.length;r++)ee(t.charCodeAt(r))||n++;return n}(e.length>t.length?e:t);return i/o>.6&&o>10}function pe(e,t,n){let r=n;return r=be(e,t,r),r=be(e,t,r),r=function(e,t,n){if(!e.getBoundaryScore||!t.getBoundaryScore)return n;for(let r=0;r<n.length;r++){const i=r>0?n[r-1]:void 0,s=n[r],o=r+1<n.length?n[r+1]:void 0,a=new T.L(i?i.seq1Range.endExclusive+1:0,o?o.seq1Range.start-1:e.length),l=new T.L(i?i.seq2Range.endExclusive+1:0,o?o.seq2Range.start-1:t.length);s.seq1Range.isEmpty?n[r]=_e(s,e,t,a,l):s.seq2Range.isEmpty&&(n[r]=_e(s.swap(),t,e,l,a).swap())}return n}(e,t,r),r}function be(e,t,n){if(0===n.length)return n;const r=[];r.push(n[0]);for(let s=1;s<n.length;s++){const i=r[r.length-1];let o=n[s];if(o.seq1Range.isEmpty||o.seq2Range.isEmpty){const n=o.seq1Range.start-i.seq1Range.endExclusive;let s;for(s=1;s<=n&&(e.getElement(o.seq1Range.start-s)===e.getElement(o.seq1Range.endExclusive-s)&&t.getElement(o.seq2Range.start-s)===t.getElement(o.seq2Range.endExclusive-s));s++);if(s--,s===n){r[r.length-1]=new Q(new T.L(i.seq1Range.start,o.seq1Range.endExclusive-n),new T.L(i.seq2Range.start,o.seq2Range.endExclusive-n));continue}o=o.delta(-s)}r.push(o)}const i=[];for(let s=0;s<r.length-1;s++){const n=r[s+1];let o=r[s];if(o.seq1Range.isEmpty||o.seq2Range.isEmpty){const i=n.seq1Range.start-o.seq1Range.endExclusive;let a;for(a=0;a<i&&(e.isStronglyEqual(o.seq1Range.start+a,o.seq1Range.endExclusive+a)&&t.isStronglyEqual(o.seq2Range.start+a,o.seq2Range.endExclusive+a));a++);if(a===i){r[s+1]=new Q(new T.L(o.seq1Range.start+i,n.seq1Range.endExclusive),new T.L(o.seq2Range.start+i,n.seq2Range.endExclusive));continue}a>0&&(o=o.delta(a))}i.push(o)}return r.length>0&&i.push(r[r.length-1]),i}function _e(e,t,n,r,i){let s=1;for(;e.seq1Range.start-s>=r.start&&e.seq2Range.start-s>=i.start&&n.isStronglyEqual(e.seq2Range.start-s,e.seq2Range.endExclusive-s)&&s<100;)s++;s--;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(0===s&&0===o)return e;let a=0,l=-1;for(let c=-s;c<=o;c++){const r=e.seq2Range.start+c,i=e.seq2Range.endExclusive+c,s=e.seq1Range.start+c,o=t.getBoundaryScore(s)+n.getBoundaryScore(r)+n.getBoundaryScore(i);o>l&&(l=o,a=c)}return e.delta(a)}class ke{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-((0===e?0:ve(this.lines[e-1]))+(e===this.lines.length?0:ve(this.lines[e])))}getText(e){return this.lines.slice(e.start,e.endExclusive).join("\n")}isStronglyEqual(e,t){return this.lines[e]===this.lines[t]}}function ve(e){let t=0;for(;t<e.length&&(32===e.charCodeAt(t)||9===e.charCodeAt(t));)t++;return t}class Ce{constructor(){this.dynamicProgrammingDiffing=new ne,this.myersDiffingAlgorithm=new re}computeDiff(e,t,n){if(e.length<=1&&(0,K.aI)(e,t,((e,t)=>e===t)))return new L([],[],!1);if(1===e.length&&0===e[0].length||1===t.length&&0===t[0].length)return new L([new R(new x.M(1,e.length+1),new x.M(1,t.length+1),[new D(new u.Q(1,1,e.length,e[e.length-1].length+1),new u.Q(1,1,t.length,t[t.length-1].length+1))])],[],!1);const r=0===n.maxComputationTimeMs?X.instance:new Y(n.maxComputationTimeMs),i=!n.ignoreTrimWhitespace,s=new Map;function o(e){let t=s.get(e);return void 0===t&&(t=s.size,s.set(e,t)),t}const a=e.map((e=>o(e.trim()))),l=t.map((e=>o(e.trim()))),c=new ke(a,e),h=new ke(l,t),d=(()=>c.length+h.length<1700?this.dynamicProgrammingDiffing.compute(c,h,r,((n,r)=>e[n]===t[r]?0===t[r].length?.1:1+Math.log(1+t[r].length):.99)):this.myersDiffingAlgorithm.compute(c,h,r))();let g=d.diffs,f=d.hitTimeout;g=pe(c,h,g),g=function(e,t,n){let r=n;if(0===r.length)return r;let i,s=0;do{i=!1;const o=[r[0]];for(let a=1;a<r.length;a++){const l=r[a],c=o[o.length-1];function h(t,n){const r=new T.L(c.seq1Range.endExclusive,l.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)}h(c,l)?(i=!0,o[o.length-1]=o[o.length-1].join(l)):o.push(l)}r=o}while(s++<10&&i);return r}(c,0,g);const m=[],p=n=>{if(i)for(let s=0;s<n;s++){const n=b+s,o=_+s;if(e[n]!==t[o]){const s=this.refineDiff(e,t,new Q(new T.L(n,n+1),new T.L(o,o+1)),r,i);for(const e of s.mappings)m.push(e);s.hitTimeout&&(f=!0)}}};let b=0,_=0;for(const u of g){(0,N.Ft)((()=>u.seq1Range.start-b===u.seq2Range.start-_));p(u.seq1Range.start-b),b=u.seq1Range.endExclusive,_=u.seq2Range.endExclusive;const n=this.refineDiff(e,t,u,r,i);n.hitTimeout&&(f=!0);for(const e of n.mappings)m.push(e)}p(e.length-b);const k=ye(m,e,t);let v=[];return n.computeMoves&&(v=this.computeMoves(k,e,t,a,l,r,i)),(0,N.Ft)((()=>{function n(e,t){if(e.lineNumber<1||e.lineNumber>t.length)return!1;const 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(const i of k){if(!i.innerChanges)return!1;for(const 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 L(k,v,f)}computeMoves(e,t,n,r,i,s,o){return fe(e,t,n,r,i,s).map((e=>{const r=ye(this.refineDiff(t,n,new Q(e.original.toOffsetRange(),e.modified.toOffsetRange()),s,o).mappings,t,n,!0);return new w(e,r)}))}refineDiff(e,t,n,r,i){var s;const o=(s=n,new I(new x.M(s.seq1Range.start+1,s.seq1Range.endExclusive+1),new x.M(s.seq2Range.start+1,s.seq2Range.endExclusive+1))).toRangeMapping2(e,t),a=new ce(e,o.originalRange,i),l=new ce(t,o.modifiedRange,i),c=a.length+l.length<500?this.dynamicProgrammingDiffing.compute(a,l,r):this.myersDiffingAlgorithm.compute(a,l,r),h=!1;let u=c.diffs;u=pe(a,l,u),u=function(e,t,n){const r=Q.invert(n,e.length),i=[];let s=new J(0,0);function o(n,o){if(n.offset1<s.offset1||n.offset2<s.offset2)return;const a=e.findWordContaining(n.offset1),l=t.findWordContaining(n.offset2);if(!a||!l)return;let c=new Q(a,l);const h=c.intersect(o);let u=h.seq1Range.length,d=h.seq2Range.length;for(;r.length>0;){const n=r[0];if(!n.seq1Range.intersects(c.seq1Range)&&!n.seq2Range.intersects(c.seq2Range))break;const i=e.findWordContaining(n.seq1Range.start),s=t.findWordContaining(n.seq2Range.start),o=new Q(i,s),a=o.intersect(n);if(u+=a.seq1Range.length,d+=a.seq2Range.length,c=c.join(o),!(c.seq1Range.endExclusive>=n.seq1Range.endExclusive))break;r.shift()}u+d<2*(c.seq1Range.length+c.seq2Range.length)/3&&i.push(c),s=c.getEndExclusives()}for(;r.length>0;){const e=r.shift();e.seq1Range.isEmpty||(o(e.getStarts(),e),o(e.getEndExclusives().delta(-1),e))}return function(e,t){const n=[];for(;e.length>0||t.length>0;){const r=e[0],i=t[0];let s;s=r&&(!i||r.seq1Range.start<i.seq1Range.start)?e.shift():t.shift(),n.length>0&&n[n.length-1].seq1Range.endExclusive>=s.seq1Range.start?n[n.length-1]=n[n.length-1].join(s):n.push(s)}return n}(n,i)}(a,l,u),u=function(e,t,n){const r=[];for(const i of n){const e=r[r.length-1];e&&(i.seq1Range.start-e.seq1Range.endExclusive<=2||i.seq2Range.start-e.seq2Range.endExclusive<=2)?r[r.length-1]=new Q(e.seq1Range.join(i.seq1Range),e.seq2Range.join(i.seq2Range)):r.push(i)}return r}(0,0,u),u=function(e,t,n){let r=n;if(0===r.length)return r;let i,s=0;do{i=!1;const a=[r[0]];for(let l=1;l<r.length;l++){const c=r[l],h=a[a.length-1];function u(n,r){const i=new T.L(h.seq1Range.endExclusive,c.seq1Range.start);if(e.countLinesIn(i)>5||i.length>500)return!1;const s=e.getText(i).trim();if(s.length>20||s.split(/\r\n|\r|\n/).length>1)return!1;const o=e.countLinesIn(n.seq1Range),a=n.seq1Range.length,l=t.countLinesIn(n.seq2Range),u=n.seq2Range.length,d=e.countLinesIn(r.seq1Range),g=r.seq1Range.length,f=t.countLinesIn(r.seq2Range),m=r.seq2Range.length;function p(e){return Math.min(e,130)}return Math.pow(Math.pow(p(40*o+a),1.5)+Math.pow(p(40*l+u),1.5),1.5)+Math.pow(Math.pow(p(40*d+g),1.5)+Math.pow(p(40*f+m),1.5),1.5)>74184.96480721243}u(h,c)?(i=!0,a[a.length-1]=a[a.length-1].join(c)):a.push(c)}r=a}while(s++<10&&i);const o=[];return(0,K.kj)(r,((t,n,r)=>{let i=n;function s(e){return e.length>0&&e.trim().length<=3&&n.seq1Range.length+n.seq2Range.length>100}const a=e.extendToFullLines(n.seq1Range),l=e.getText(new T.L(a.start,n.seq1Range.start));s(l)&&(i=i.deltaStart(-l.length));const c=e.getText(new T.L(n.seq1Range.endExclusive,a.endExclusive));s(c)&&(i=i.deltaEnd(c.length));const h=Q.fromOffsetPairs(t?t.getEndExclusives():J.zero,r?r.getStarts():J.max),u=i.intersect(h);o.length>0&&u.getStarts().equals(o[o.length-1].getEndExclusives())?o[o.length-1]=o[o.length-1].join(u):o.push(u)})),o}(a,l,u);const d=u.map((e=>new D(a.translateRange(e.seq1Range),l.translateRange(e.seq2Range))));return{mappings:d,hitTimeout:c.hitTimeout}}}function ye(e,t,n,r=!1){const i=[];for(const s of(0,K.n)(e.map((e=>function(e,t,n){let r=0,i=0;1===e.modifiedRange.endColumn&&1===e.originalRange.endColumn&&e.originalRange.startLineNumber+r<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+r<=e.modifiedRange.endLineNumber&&(i=-1);e.modifiedRange.startColumn-1>=n[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+i&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+i&&(r=1);const s=new x.M(e.originalRange.startLineNumber+r,e.originalRange.endLineNumber+1+i),o=new x.M(e.modifiedRange.startLineNumber+r,e.modifiedRange.endLineNumber+1+i);return new R(s,o,[e])}(e,t,n))),((e,t)=>e.original.overlapOrTouch(t.original)||e.modified.overlapOrTouch(t.modified)))){const e=s[0],t=s[s.length-1];i.push(new R(e.original.join(t.original),e.modified.join(t.modified),s.map((e=>e.innerChanges[0]))))}return(0,N.Ft)((()=>{if(!r&&i.length>0){if(i[0].modified.startLineNumber!==i[0].original.startLineNumber)return!1;if(n.length-i[i.length-1].modified.endLineNumberExclusive!==t.length-i[i.length-1].original.endLineNumberExclusive)return!1}return(0,N.Xo)(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}const Le=()=>new F,we=()=>new Ce;var Se=n(146),xe=n(6456),Ee=n(7661);function Ne(e){const t=[];for(const n of e){const e=Number(n);(e||0===e&&""!==n.replace(/\s/g,""))&&t.push(e)}return t}function Te(e,t,n,r){return{red:e/255,blue:n/255,green:t/255,alpha:r}}function Ae(e,t){const n=t.index,r=t[0].length;if(!n)return;const i=e.positionAt(n);return{startLineNumber:i.lineNumber,startColumn:i.column,endLineNumber:i.lineNumber,endColumn:i.column+r}}function Ie(e,t){if(!e)return;const n=Ee.Q1.Format.CSS.parseHex(t);return n?{range:e,color:Te(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}:void 0}function Oe(e,t,n){if(!e||1!==t.length)return;const r=Ne(t[0].values());return{range:e,color:Te(r[0],r[1],r[2],n?r[3]:1)}}function Me(e,t,n){if(!e||1!==t.length)return;const r=Ne(t[0].values()),i=new Ee.Q1(new Ee.hB(r[0],r[1]/100,r[2]/100,n?r[3]:1));return{range:e,color:Te(i.rgba.r,i.rgba.g,i.rgba.b,i.rgba.a)}}function Re(e,t){return"string"===typeof e?[...e.matchAll(t)]:e.findMatches(t)}function De(e){return e&&"function"===typeof e.getValue&&"function"===typeof e.positionAt?function(e){const t=[],n=Re(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/gm);if(n.length>0)for(const r of n){const n=r.filter((e=>void 0!==e)),i=n[1],s=n[2];if(!s)continue;let o;if("rgb"===i){const t=/^\(\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;o=Oe(Ae(e,r),Re(s,t),!1)}else if("rgba"===i){const t=/^\(\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;o=Oe(Ae(e,r),Re(s,t),!0)}else if("hsl"===i){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;o=Me(Ae(e,r),Re(s,t),!1)}else if("hsla"===i){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;o=Me(Ae(e,r),Re(s,t),!0)}else"#"===i&&(o=Ie(Ae(e,r),i+s));o&&t.push(o)}return t}(e):[]}var Be=n(6691),Fe=n(796);class Pe{constructor(){this._workerTextModelSyncServer=new Fe.WorkerTextModelSyncServer}dispose(){}_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){const r=this._getModel(e);return r?y.UnicodeTextModelHighlighter.computeUnicodeHighlights(r,t,n):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async $findSectionHeaders(e,t){const n=this._getModel(e);return n?(0,Be.findSectionHeaders)(n,t):[]}async $computeDiff(e,t,n,r){const i=this._getModel(e),s=this._getModel(t);if(!i||!s)return null;return Ve.computeDiff(i,s,n,r)}static computeDiff(e,t,n,r){const i="advanced"===r?we():Le(),s=e.getLinesContent(),o=t.getLinesContent(),a=i.computeDiff(s,o,n);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:!(a.changes.length>0)&&this._modelsAreIdentical(e,t),quitEarly:a.hitTimeout,changes:l(a.changes),moves:a.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){const 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(e,t,n){const r=this._getModel(e);if(!r)return t;const i=[];let s;t=t.slice(0).sort(((e,t)=>{if(e.range&&t.range)return u.Q.compareRangesUsingStarts(e.range,t.range);return(e.range?0:1)-(t.range?0:1)}));let a=0;for(let o=1;o<t.length;o++)u.Q.getEndPosition(t[a].range).equals(u.Q.getStartPosition(t[o].range))?(t[a].range=u.Q.fromPositions(u.Q.getStartPosition(t[a].range),u.Q.getEndPosition(t[o].range)),t[a].text+=t[o].text):(a++,t[a]=t[o]);t.length=a+1;for(let{range:l,text:c,eol:h}of t){if("number"===typeof h&&(s=h),u.Q.isEmpty(l)&&!c)continue;const e=r.getValueInRange(l);if(c=c.replace(/\r\n|\n|\r/g,r.eol),e===c)continue;if(Math.max(c.length,e.length)>Ve._diffLimit){i.push({range:l,text:c});continue}const t=o(e,c,n),a=r.offsetAt(u.Q.lift(l).getStartPosition());for(const n of t){const e=r.positionAt(a+n.originalStart),t=r.positionAt(a+n.originalStart+n.originalLength),s={text:c.substr(n.modifiedStart,n.modifiedLength),range:{startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:t.lineNumber,endColumn:t.column}};r.getValueInRange(s.range)!==s.text&&i.push(s)}}return"number"===typeof s&&i.push({eol:s,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),i}async $computeLinks(e){const t=this._getModel(e);return t?function(e){return e&&"function"===typeof e.getLineCount&&"function"===typeof e.getLineContent?b.computeLinks(e):[]}(t):null}async $computeDefaultDocumentColors(e){const t=this._getModel(e);return t?De(t):null}static{this._suggestionsLimit=1e4}async $textualSuggest(e,t,n,r){const i=new C.W,s=new RegExp(n,r),o=new Set;e:for(const a of e){const e=this._getModel(a);if(e)for(const n of e.words(s))if(n!==t&&isNaN(Number(n))&&(o.add(n),o.size>Ve._suggestionsLimit))break e}return{words:Array.from(o),duration:i.elapsed()}}async $computeWordRanges(e,t,n,r){const i=this._getModel(e);if(!i)return Object.create(null);const s=new RegExp(n,r),o=Object.create(null);for(let a=t.startLineNumber;a<t.endLineNumber;a++){const e=i.getLineWords(a,s);for(const t of e){if(!isNaN(Number(t.word)))continue;let e=o[t.word];e||(e=[],o[t.word]=e),e.push({startLineNumber:a,startColumn:t.startColumn,endLineNumber:a,endColumn:t.endColumn})}}return o}async $navigateValueSet(e,t,n,r,i){const s=this._getModel(e);if(!s)return null;const o=new RegExp(r,i);t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1});const a=s.getValueInRange(t),l=s.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},o);if(!l)return null;const c=s.getValueInRange(l);return _.INSTANCE.navigateValueSet(t,a,l,c,n)}}class Ve extends Pe{constructor(e,t){super(),this._host=e,this._foreignModuleFactory=t,this._foreignModule=null}async $ping(){return"pong"}$loadForeignModule(e,t,r){const i={host:(0,Se.kT)(r,((e,t)=>this._host.$fhr(e,t))),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(i,t),Promise.resolve((0,Se.V0)(this._foreignModule))):new Promise(((r,s)=>{const o=e=>{this._foreignModule=e.create(i,t),r((0,Se.V0)(this._foreignModule))};{const t=xe.zl.asBrowserUri(`${e}.js`).toString(!0);n(9204)(`${t}`).then(o).catch(s)}}))}$fmr(e,t){if(!this._foreignModule||"function"!==typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(n){return Promise.reject(n)}}}function ze(e){return new Ve(v.EditorWorkerHost.getChannel(e),null)}"function"===typeof importScripts&&(globalThis.monaco=(0,k.createMonacoBaseAPI)())},920:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IEditorWorkerService:()=>r});const r=(0,n(3591).u1)("editorWorkerService")},718:(e,t,n)=>{"use strict";n.r(t),n.d(t,{EditorWorkerHost:()=>r});class r{static{this.CHANNEL_NAME="editorWorkerHost"}static getChannel(e){return e.getChannel(r.CHANNEL_NAME)}static setChannel(e,t){e.setChannel(r.CHANNEL_NAME,t)}}},6691:(e,t,n)=>{"use strict";n.r(t),n.d(t,{findSectionHeaders:()=>s});const r=new RegExp("\\bMARK:\\s*(.*)$","d"),i=/^-+|-+$/g;function s(e,t){let n=[];if(t.findRegionSectionHeaders&&t.foldingRules?.markers){const r=function(e,t){const n=[],r=e.getLineCount();for(let i=1;i<=r;i++){const r=e.getLineContent(i),s=r.match(t.foldingRules.markers.start);if(s){const e={startLineNumber:i,startColumn:s[0].length+1,endLineNumber:i,endColumn:r.length+1};if(e.endColumn>e.startColumn){const t={range:e,...a(r.substring(s[0].length)),shouldBeInComments:!1};(t.text||t.hasSeparatorLine)&&n.push(t)}}}return n}(e,t);n=n.concat(r)}if(t.findMarkSectionHeaders){const t=function(e){const t=[],n=e.getLineCount();for(let r=1;r<=n;r++){o(e.getLineContent(r),r,t)}return t}(e);n=n.concat(t)}return n}function o(e,t,n){r.lastIndex=0;const i=r.exec(e);if(i){const e={startLineNumber:t,startColumn:i.indices[1][0]+1,endLineNumber:t,endColumn:i.indices[1][1]+1};if(e.endColumn>e.startColumn){const t={range:e,...a(i[1]),shouldBeInComments:!0};(t.text||t.hasSeparatorLine)&&n.push(t)}}}function a(e){const t=(e=e.trim()).startsWith("-");return{text:e=e.replace(i,""),hasSeparatorLine:t}}},5628:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getIconClasses:()=>d});var r,i=n(6456),s=n(9403),o=n(9400),a=n(3941);!function(e){e[e.FILE=0]="FILE",e[e.FOLDER=1]="FOLDER",e[e.ROOT_FOLDER=2]="ROOT_FOLDER"}(r||(r={}));var l,c,h=n(9493);!function(e){e.isThemeColor=function(e){return e&&"object"===typeof e&&"string"===typeof e.id}}(l||(l={})),function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9-]+",e.iconModifierExpression="~[A-Za-z]+",e.iconNameCharacter="[A-Za-z0-9~-]";const t=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function n(e){const r=t.exec(e.id);if(!r)return n(h.W.error);const[,i,s]=r,o=["codicon","codicon-"+i];return s&&o.push("codicon-modifier-"+s.substring(1)),o}e.asClassNameArray=n,e.asClassName=function(e){return n(e).join(" ")},e.asCSSSelector=function(e){return"."+n(e).join(".")},e.isThemeIcon=function(e){return e&&"object"===typeof e&&"string"===typeof e.id&&("undefined"===typeof e.color||l.isThemeColor(e.color))};const r=new RegExp(`^\\$\\((${e.iconNameExpression}(?:${e.iconModifierExpression})?)\\)$`);e.fromString=function(e){const t=r.exec(e);if(!t)return;const[,n]=t;return{id:n}},e.fromId=function(e){return{id:e}},e.modify=function(e,t){let n=e.id;const r=n.lastIndexOf("~");return-1!==r&&(n=n.substring(0,r)),t&&(n=`${n}~${t}`),{id:n}},e.getModifier=function(e){const t=e.id.lastIndexOf("~");if(-1!==t)return e.id.substring(t+1)},e.isEqual=function(e,t){return e.id===t.id&&e.color?.id===t.color?.id}}(c||(c={}));const u=/(?:\/|^)(?:([^\/]+)\/)?([^\/]+)$/;function d(e,t,n,l,h){if(c.isThemeIcon(h))return[`codicon-${h.id}`,"predefined-file-icon"];if(o.r.isUri(h))return[];const d=l===r.ROOT_FOLDER?["rootfolder-icon"]:l===r.FOLDER?["folder-icon"]:["file-icon"];if(n){let o;if(n.scheme===i.ny.data){o=s.B6.parseMetaData(n).get(s.B6.META_DATA_LABEL)}else{const e=n.path.match(u);e?(o=g(e[2].toLowerCase()),e[1]&&d.push(`${g(e[1].toLowerCase())}-name-dir-icon`)):o=g(n.authority.toLowerCase())}if(l===r.ROOT_FOLDER)d.push(`${o}-root-name-folder-icon`);else if(l===r.FOLDER)d.push(`${o}-name-folder-icon`);else{if(o){if(d.push(`${o}-name-file-icon`),d.push("name-file-icon"),o.length<=255){const e=o.split(".");for(let t=1;t<e.length;t++)d.push(`${e.slice(t).join(".")}-ext-file-icon`)}d.push("ext-file-icon")}const r=function(e,t,n){if(!n)return null;let r=null;if(n.scheme===i.ny.data){const e=s.B6.parseMetaData(n).get(s.B6.META_DATA_MIME);e&&(r=t.getLanguageIdByMimeType(e))}else{const t=e.getModel(n);t&&(r=t.getLanguageId())}if(r&&r!==a.vH)return r;return t.guessLanguageIdByFilepathOrFirstLine(n)}(e,t,n);r&&d.push(`${g(r)}-lang-file-icon`)}}return d}function g(e){return e.replace(/[\s]/g,"/")}},8709:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ILanguageFeatureDebounceService:()=>m,LanguageFeatureDebounceService:()=>k});var r=n(5600),i=n(4320);function s(e,t,n){return Math.min(Math.max(e,t),n)}class o{constructor(){this._n=1,this._val=0}update(e){return this._val=this._val+(e-this._val)/this._n,this._n+=1,this._val}get value(){return this._val}}class a{constructor(e){this._n=0,this._val=0,this._values=[],this._index=0,this._sum=0,this._values=new Array(e),this._values.fill(0,0,e)}update(e){const t=this._values[this._index];return this._values[this._index]=e,this._index=(this._index+1)%this._values.length,this._sum-=t,this._sum+=e,this._n<this._values.length&&(this._n+=1),this._val=this._sum/this._n,this._val}get value(){return this._val}}var l=n(3591);const c=(0,l.u1)("environmentService");var h=n(4621),u=n(3511),d=n(6456),g=function(e,t,n,r){var i,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,n,o):i(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},f=function(e,t){return function(n,r){t(n,r,e)}};const m=(0,l.u1)("ILanguageFeatureDebounceService");var p;!function(e){const t=new WeakMap;let n=0;e.of=function(e){let r=t.get(e);return void 0===r&&(r=++n,t.set(e,r)),r}}(p||(p={}));class b{constructor(e){this._default=e}get(e){return this._default}update(e,t){return this._default}default(){return this._default}}class _{constructor(e,t,n,r,s,o){this._logService=e,this._name=t,this._registry=n,this._default=r,this._min=s,this._max=o,this._cache=new i.qK(50,.7)}_key(e){return e.id+this._registry.all(e).reduce(((e,t)=>(0,r.sN)(p.of(t),e)),0)}get(e){const t=this._key(e),n=this._cache.get(t);return n?s(n.value,this._min,this._max):this.default()}update(e,t){const n=this._key(e);let r=this._cache.get(n);r||(r=new a(6),this._cache.set(n,r));const i=s(r.update(t),this._min,this._max);return(0,d.v$)(e.uri,"output")||this._logService.trace(`[DEBOUNCE: ${this._name}] for ${e.uri.toString()} is ${i}ms`),i}_overall(){const e=new o;for(const[,t]of this._cache)e.update(t.value);return e.value}default(){return s(0|this._overall()||this._default,this._min,this._max)}}let k=class{constructor(e,t){this._logService=e,this._data=new Map,this._isDev=t.isExtensionDevelopment||!t.isBuilt}for(e,t,n){const r=n?.min??50,i=n?.max??r**2,s=n?.key??void 0,o=`${p.of(e)},${r}${s?","+s:""}`;let a=this._data.get(o);return a||(this._isDev?(this._logService.debug(`[DEBOUNCE: ${t}] is disabled in developed mode`),a=new b(1.5*r)):a=new _(this._logService,t,e,0|this._overallAverage()||1.5*r,r,i),this._data.set(o,a)),a}_overallAverage(){const e=new o;for(const t of this._data.values())e.update(t.default());return e.value}};k=g([f(0,u.rr),f(1,c)],k),(0,h.v)(m,k,1)},6942:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ILanguageFeaturesService:()=>r});const r=(0,n(3591).u1)("ILanguageFeaturesService")},2661:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LanguageFeaturesService:()=>m});var r=n(1234),i=n(1484),s=n(6223),o=n(6958),a=n(8821);function l(e,t,n,r,i,s){if(Array.isArray(e)){let o=0;for(const a of e){const e=l(a,t,n,r,i,s);if(10===e)return e;e>o&&(o=e)}return o}if("string"===typeof e)return r?"*"===e?5:e===n?10:0:0;if(e){const{language:l,pattern:c,scheme:h,hasAccessToAllModels:u,notebookType:d}=e;if(!r&&!u)return 0;d&&i&&(t=i);let g=0;if(h)if(h===t.scheme)g=10;else{if("*"!==h)return 0;g=5}if(l)if(l===n)g=10;else{if("*"!==l)return 0;g=Math.max(g,5)}if(d)if(d===s)g=10;else{if("*"!==d||void 0===s)return 0;g=Math.max(g,5)}if(c){let e;if(e="string"===typeof c?c:{...c,base:(0,a.S8)(c.base)},e!==t.fsPath&&!(0,o.YW)(e,t.fsPath))return 0;g=10}return g}return 0}function c(e){return"string"!==typeof e&&(Array.isArray(e)?e.every(c):!!e.exclusive)}class h{constructor(e,t,n,r,i){this.uri=e,this.languageId=t,this.notebookUri=n,this.notebookType=r,this.recursive=i}equals(e){return this.notebookType===e.notebookType&&this.languageId===e.languageId&&this.uri.toString()===e.uri.toString()&&this.notebookUri?.toString()===e.notebookUri?.toString()&&this.recursive===e.recursive}}class u{constructor(e){this._notebookInfoResolver=e,this._clock=0,this._entries=[],this._onDidChange=new r.vl,this.onDidChange=this._onDidChange.event}register(e,t){let n={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(n),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),(0,i.s)((()=>{if(n){const e=this._entries.indexOf(n);e>=0&&(this._entries.splice(e,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),n=void 0)}}))}has(e){return this.all(e).length>0}all(e){if(!e)return[];this._updateScores(e,!1);const t=[];for(const n of this._entries)n._score>0&&t.push(n.provider);return t}ordered(e,t=!1){const n=[];return this._orderedForEach(e,t,(e=>n.push(e.provider))),n}orderedGroups(e){const t=[];let n,r;return this._orderedForEach(e,!1,(e=>{n&&r===e._score?n.push(e.provider):(r=e._score,n=[e.provider],t.push(n))})),t}_orderedForEach(e,t,n){this._updateScores(e,t);for(const r of this._entries)r._score>0&&n(r)}_updateScores(e,t){const n=this._notebookInfoResolver?.(e.uri),r=n?new h(e.uri,e.getLanguageId(),n.uri,n.type,t):new h(e.uri,e.getLanguageId(),void 0,void 0,t);if(!this._lastCandidate?.equals(r)){this._lastCandidate=r;for(const n of this._entries)if(n._score=l(n.selector,r.uri,r.languageId,(0,s.vd)(e),r.notebookUri,r.notebookType),c(n.selector)&&n._score>0){if(!t){for(const e of this._entries)e._score=0;n._score=1e3;break}n._score=0}this._entries.sort(u._compareByScoreAndTime)}}static _compareByScoreAndTime(e,t){return e._score<t._score?1:e._score>t._score?-1:d(e.selector)&&!d(t.selector)?1:!d(e.selector)&&d(t.selector)?-1:e._time<t._time?1:e._time>t._time?-1:0}}function d(e){return"string"!==typeof e&&(Array.isArray(e)?e.some(d):Boolean(e.isBuiltin))}var g=n(6942),f=n(4621);class m{constructor(){this.referenceProvider=new u(this._score.bind(this)),this.renameProvider=new u(this._score.bind(this)),this.newSymbolNamesProvider=new u(this._score.bind(this)),this.codeActionProvider=new u(this._score.bind(this)),this.definitionProvider=new u(this._score.bind(this)),this.typeDefinitionProvider=new u(this._score.bind(this)),this.declarationProvider=new u(this._score.bind(this)),this.implementationProvider=new u(this._score.bind(this)),this.documentSymbolProvider=new u(this._score.bind(this)),this.inlayHintsProvider=new u(this._score.bind(this)),this.colorProvider=new u(this._score.bind(this)),this.codeLensProvider=new u(this._score.bind(this)),this.documentFormattingEditProvider=new u(this._score.bind(this)),this.documentRangeFormattingEditProvider=new u(this._score.bind(this)),this.onTypeFormattingEditProvider=new u(this._score.bind(this)),this.signatureHelpProvider=new u(this._score.bind(this)),this.hoverProvider=new u(this._score.bind(this)),this.documentHighlightProvider=new u(this._score.bind(this)),this.multiDocumentHighlightProvider=new u(this._score.bind(this)),this.selectionRangeProvider=new u(this._score.bind(this)),this.foldingRangeProvider=new u(this._score.bind(this)),this.linkProvider=new u(this._score.bind(this)),this.inlineCompletionsProvider=new u(this._score.bind(this)),this.inlineEditProvider=new u(this._score.bind(this)),this.completionProvider=new u(this._score.bind(this)),this.linkedEditingRangeProvider=new u(this._score.bind(this)),this.documentRangeSemanticTokensProvider=new u(this._score.bind(this)),this.documentSemanticTokensProvider=new u(this._score.bind(this)),this.documentDropEditProvider=new u(this._score.bind(this)),this.documentPasteEditProvider=new u(this._score.bind(this))}_score(e){return this._notebookTypeResolver?.(e)}}(0,f.v)(g.ILanguageFeaturesService,m,1)},7596:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LanguageService:()=>O});var r=n(1234),i=n(1484),s=n(9259),o=n(9861),a=n(2083),l=n(3941);const c=(e,t)=>e===t;new WeakMap;class h{constructor(e,t,n){this.owner=e,this.debugNameSource=t,this.referenceFn=n}getDebugName(e){return function(e,t){const n=d.get(e);if(n)return n;const r=function(e,t){const n=d.get(e);if(n)return n;const r=t.owner?function(e){const t=f.get(e);if(t)return t;const n=function(e){const t=e.constructor;if(t)return t.name;return"Object"}(e);let r=g.get(n)??0;r++,g.set(n,r);const i=1===r?n:`${n}#${r}`;return f.set(e,i),i}(t.owner)+".":"";let i;const s=t.debugNameSource;if(void 0!==s){if("function"!==typeof s)return r+s;if(i=s(),void 0!==i)return r+i}const o=t.referenceFn;if(void 0!==o&&(i=m(o),void 0!==i))return r+i;if(void 0!==t.owner){const n=function(e,t){for(const n in e)if(e[n]===t)return n;return}(t.owner,e);if(void 0!==n)return r+n}return}(e,t);if(r){let t=u.get(r)??0;t++,u.set(r,t);const n=1===t?r:`${r}#${t}`;return d.set(e,n),n}return}(e,this)}}const u=new Map,d=new WeakMap;const g=new Map,f=new WeakMap;function m(e){const t=e.toString(),n=/\/\*\*\s*@description\s*([^*]*)\*\//.exec(t),r=n?n[1]:void 0;return r?.trim()}let p,b,_,k;function v(){return p}class C{get TChange(){return null}reportChanges(){this.get()}read(e){return e?e.readObservable(this):this.get()}map(e,t){const n=void 0===t?void 0:e,r=void 0===t?e:t;return k({owner:n,debugName:()=>{const e=m(r);if(void 0!==e)return e;const t=/^\s*\(?\s*([a-zA-Z_$][a-zA-Z_$0-9]*)\s*\)?\s*=>\s*\1(?:\??)\.([a-zA-Z_$][a-zA-Z_$0-9]*)\s*$/.exec(r.toString());return t?`${this.debugName}.${t[2]}`:n?void 0:`${this.debugName} (mapped)`},debugReferenceFn:r},(e=>r(this.read(e),e)))}flatten(){return k({owner:void 0,debugName:()=>`${this.debugName} (flattened)`},(e=>this.read(e).read(e)))}recomputeInitiallyAndOnChange(e,t){return e.add(b(this,t)),this}keepObserved(e){return e.add(_(this)),this}}class y extends C{constructor(){super(...arguments),this.observers=new Set}addObserver(e){const t=this.observers.size;this.observers.add(e),0===t&&this.onFirstObserverAdded()}removeObserver(e){this.observers.delete(e)&&0===this.observers.size&&this.onLastObserverRemoved()}onFirstObserverAdded(){}onLastObserverRemoved(){}}function L(e,t){const n=new w(e,t);try{e(n)}finally{n.finish()}}class w{constructor(e,t){this._fn=e,this._getDebugName=t,this.updatingObservers=[],v()?.handleBeginTransaction(this)}getDebugName(){return this._getDebugName?this._getDebugName():m(this._fn)}updateObserver(e,t){this.updatingObservers.push({observer:e,observable:t}),e.beginUpdate(t)}finish(){const e=this.updatingObservers;for(let t=0;t<e.length;t++){const{observer:n,observable:r}=e[t];n.endUpdate(r)}this.updatingObservers=null,v()?.handleEndTransaction()}}var S=n(6782);!function(e){k=e}((function(e,t){return new x(new h(e.owner,e.debugName,e.debugReferenceFn),t,void 0,void 0,e.onLastObserverRemoved,e.equalsFn??c)}));class x extends y{get debugName(){return this._debugNameData.getDebugName(this)??"(anonymous)"}constructor(e,t,n,r,i=void 0,s){super(),this._debugNameData=e,this._computeFn=t,this.createChangeSummary=n,this._handleChange=r,this._handleLastObserverRemoved=i,this._equalityComparator=s,this.state=0,this.value=void 0,this.updateCount=0,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=void 0,this.changeSummary=this.createChangeSummary?.(),v()?.handleDerivedCreated(this)}onLastObserverRemoved(){this.state=0,this.value=void 0;for(const e of this.dependencies)e.removeObserver(this);this.dependencies.clear(),this._handleLastObserverRemoved?.()}get(){if(0===this.observers.size){const e=this._computeFn(this,this.createChangeSummary?.());return this.onLastObserverRemoved(),e}do{if(1===this.state)for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break;1===this.state&&(this.state=3),this._recomputeIfNeeded()}while(3!==this.state);return this.value}_recomputeIfNeeded(){if(3===this.state)return;const e=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=e;const t=0!==this.state,n=this.value;this.state=3;const r=this.changeSummary;this.changeSummary=this.createChangeSummary?.();try{this.value=this._computeFn(this,r)}finally{for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}const i=t&&!this._equalityComparator(n,this.value);if(v()?.handleDerivedRecomputed(this,{oldValue:n,newValue:this.value,change:void 0,didChange:i,hadValue:t}),i)for(const s of this.observers)s.handleChange(this,void 0)}toString(){return`LazyDerived<${this.debugName}>`}beginUpdate(e){this.updateCount++;const t=1===this.updateCount;if(3===this.state&&(this.state=1,!t))for(const n of this.observers)n.handlePossibleChange(this);if(t)for(const n of this.observers)n.beginUpdate(this)}endUpdate(e){if(this.updateCount--,0===this.updateCount){const e=[...this.observers];for(const t of e)t.endUpdate(this)}(0,S.Ft)((()=>this.updateCount>=0))}handlePossibleChange(e){if(3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){this.state=1;for(const e of this.observers)e.handlePossibleChange(this)}}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){const n=!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary),r=3===this.state;if(n&&(1===this.state||r)&&(this.state=2,r))for(const e of this.observers)e.handlePossibleChange(this)}}readObservable(e){e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}addObserver(e){const t=!this.observers.has(e)&&this.updateCount>0;super.addObserver(e),t&&e.beginUpdate(this)}removeObserver(e){const t=this.observers.has(e)&&this.updateCount>0;super.removeObserver(e),t&&e.endUpdate(this)}}function E(e){return new N(new h(void 0,void 0,e),e,void 0,void 0)}class N{get debugName(){return this._debugNameData.getDebugName(this)??"(anonymous)"}constructor(e,t,n,r){this._debugNameData=e,this._runFn=t,this.createChangeSummary=n,this._handleChange=r,this.state=2,this.updateCount=0,this.disposed=!1,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=this.createChangeSummary?.(),v()?.handleAutorunCreated(this),this._runIfNeeded(),(0,i.Ay)(this)}dispose(){this.disposed=!0;for(const e of this.dependencies)e.removeObserver(this);this.dependencies.clear(),(0,i.VD)(this)}_runIfNeeded(){if(3===this.state)return;const e=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=e,this.state=3;const t=this.disposed;try{if(!t){v()?.handleAutorunTriggered(this);const e=this.changeSummary;this.changeSummary=this.createChangeSummary?.(),this._runFn(this,e)}}finally{t||v()?.handleAutorunFinished(this);for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}}toString(){return`Autorun<${this.debugName}>`}beginUpdate(){3===this.state&&(this.state=1),this.updateCount++}endUpdate(){if(1===this.updateCount)do{if(1===this.state){this.state=3;for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break}this._runIfNeeded()}while(3!==this.state);this.updateCount--,(0,S.Ft)((()=>this.updateCount>=0))}handlePossibleChange(e){3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)&&(this.state=1)}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){(!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary))&&(this.state=2)}}readObservable(e){if(this.disposed)return e.get();e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}}!function(e){e.Observer=N}(E||(E={}));function T(...e){let t,n,r;return 3===e.length?[t,n,r]=e:[n,r]=e,new A(new h(t,void 0,r),n,r,(()=>A.globalTransaction),c)}class A extends y{constructor(e,t,n,r,i){super(),this._debugNameData=e,this.event=t,this._getValue=n,this._getTransaction=r,this._equalityComparator=i,this.hasValue=!1,this.handleEvent=e=>{const t=this._getValue(e),n=this.value,r=!this.hasValue||!this._equalityComparator(n,t);let i=!1;r&&(this.value=t,this.hasValue&&(i=!0,function(e,t,n){e?t(e):L(t,n)}(this._getTransaction(),(e=>{v()?.handleFromEventObservableTriggered(this,{oldValue:n,newValue:t,change:void 0,didChange:r,hadValue:this.hasValue});for(const t of this.observers)e.updateObserver(t,this),t.handleChange(this,void 0)}),(()=>{const e=this.getDebugName();return"Event fired"+(e?`: ${e}`:"")}))),this.hasValue=!0),i||v()?.handleFromEventObservableTriggered(this,{oldValue:n,newValue:t,change:void 0,didChange:r,hadValue:this.hasValue})}}getDebugName(){return this._debugNameData.getDebugName(this)}get debugName(){const e=this.getDebugName();return"From Event"+(e?`: ${e}`:"")}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0,this.hasValue=!1,this.value=void 0}get(){if(this.subscription)return this.hasValue||this.handleEvent(void 0),this.value;return this._getValue(void 0)}}!function(e){e.Observer=A,e.batchEventsGlobally=function(e,t){let n=!1;void 0===A.globalTransaction&&(A.globalTransaction=e,n=!0);try{t()}finally{n&&(A.globalTransaction=void 0)}}}(T||(T={}));!function(e){_=e}((function(e){const t=new I(!1,void 0);return e.addObserver(t),(0,i.s)((()=>{e.removeObserver(t)}))})),function(e){b=e}((function(e,t){const n=new I(!0,t);return e.addObserver(n),t?t(e.get()):e.reportChanges(),(0,i.s)((()=>{e.removeObserver(n)}))}));class I{constructor(e,t){this._forceRecompute=e,this._handleValue=t,this._counter=0}beginUpdate(e){this._counter++}endUpdate(e){this._counter--,0===this._counter&&this._forceRecompute&&(this._handleValue?this._handleValue(e.get()):e.reportChanges())}handlePossibleChange(e){}handleChange(e,t){}}n(4383);class O extends i.jG{static{this.instanceCount=0}constructor(e=!1){super(),this._onDidRequestBasicLanguageFeatures=this._register(new r.vl),this.onDidRequestBasicLanguageFeatures=this._onDidRequestBasicLanguageFeatures.event,this._onDidRequestRichLanguageFeatures=this._register(new r.vl),this.onDidRequestRichLanguageFeatures=this._onDidRequestRichLanguageFeatures.event,this._onDidChange=this._register(new r.vl({leakWarningThreshold:200})),this.onDidChange=this._onDidChange.event,this._requestedBasicLanguages=new Set,this._requestedRichLanguages=new Set,O.instanceCount++,this._registry=this._register(new s.LanguagesRegistry(!0,e)),this.languageIdCodec=this._registry.languageIdCodec,this._register(this._registry.onDidChange((()=>this._onDidChange.fire())))}dispose(){O.instanceCount--,super.dispose()}isRegisteredLanguageId(e){return this._registry.isRegisteredLanguageId(e)}getLanguageIdByLanguageName(e){return this._registry.getLanguageIdByLanguageName(e)}getLanguageIdByMimeType(e){return this._registry.getLanguageIdByMimeType(e)}guessLanguageIdByFilepathOrFirstLine(e,t){const n=this._registry.guessLanguageIdByFilepathOrFirstLine(e,t);return(0,o.Fy)(n,null)}createById(e){return new M(this.onDidChange,(()=>this._createAndGetLanguageIdentifier(e)))}createByFilepathOrFirstLine(e,t){return new M(this.onDidChange,(()=>{const n=this.guessLanguageIdByFilepathOrFirstLine(e,t);return this._createAndGetLanguageIdentifier(n)}))}_createAndGetLanguageIdentifier(e){return e&&this.isRegisteredLanguageId(e)||(e=l.vH),e}requestBasicLanguageFeatures(e){this._requestedBasicLanguages.has(e)||(this._requestedBasicLanguages.add(e),this._onDidRequestBasicLanguageFeatures.fire(e))}requestRichLanguageFeatures(e){this._requestedRichLanguages.has(e)||(this._requestedRichLanguages.add(e),this.requestBasicLanguageFeatures(e),a.dG.getOrCreate(e),this._onDidRequestRichLanguageFeatures.fire(e))}}class M{constructor(e,t){this._value=T(this,e,(()=>t())),this.onDidChange=r.Jh.fromObservable(this._value)}get languageId(){return this._value.get()}}},9908:(e,t,n)=>{"use strict";n.r(t),n.d(t,{clearPlatformLanguageAssociations:()=>f,getLanguageIds:()=>m,registerPlatformLanguageAssociation:()=>g});var r=n(6958),i=n(1939),s=n(6456),o=n(8821),a=n(9403),l=n(1508),c=n(3941);let h=[],u=[],d=[];function g(e,t=!1){!function(e,t,n){const i=function(e,t){return{id:e.id,mime:e.mime,filename:e.filename,extension:e.extension,filepattern:e.filepattern,firstline:e.firstline,userConfigured:t,filenameLowercase:e.filename?e.filename.toLowerCase():void 0,extensionLowercase:e.extension?e.extension.toLowerCase():void 0,filepatternLowercase:e.filepattern?(0,r.qg)(e.filepattern.toLowerCase()):void 0,filepatternOnPath:!!e.filepattern&&e.filepattern.indexOf(o.SA.sep)>=0}}(e,t);h.push(i),i.userConfigured?d.push(i):u.push(i);n&&!i.userConfigured&&h.forEach((e=>{e.mime===i.mime||e.userConfigured||(i.extension&&e.extension===i.extension&&console.warn(`Overwriting extension <<${i.extension}>> to now point to mime <<${i.mime}>>`),i.filename&&e.filename===i.filename&&console.warn(`Overwriting filename <<${i.filename}>> to now point to mime <<${i.mime}>>`),i.filepattern&&e.filepattern===i.filepattern&&console.warn(`Overwriting filepattern <<${i.filepattern}>> to now point to mime <<${i.mime}>>`),i.firstline&&e.firstline===i.firstline&&console.warn(`Overwriting firstline <<${i.firstline}>> to now point to mime <<${i.mime}>>`))}))}(e,!1,t)}function f(){h=h.filter((e=>e.userConfigured)),u=[]}function m(e,t){return function(e,t){let n;if(e)switch(e.scheme){case s.ny.file:n=e.fsPath;break;case s.ny.data:n=a.B6.parseMetaData(e).get(a.B6.META_DATA_LABEL);break;case s.ny.vscodeNotebookCell:n=void 0;break;default:n=e.path}if(!n)return[{id:"unknown",mime:i.K.unknown}];n=n.toLowerCase();const r=(0,o.P8)(n),g=p(n,r,d);if(g)return[g,{id:c.vH,mime:i.K.text}];const f=p(n,r,u);if(f)return[f,{id:c.vH,mime:i.K.text}];if(t){const e=function(e){(0,l.LU)(e)&&(e=e.substr(1));if(e.length>0)for(let t=h.length-1;t>=0;t--){const n=h[t];if(!n.firstline)continue;const r=e.match(n.firstline);if(r&&r.length>0)return n}return}(t);if(e)return[e,{id:c.vH,mime:i.K.text}]}return[{id:"unknown",mime:i.K.unknown}]}(e,t).map((e=>e.id))}function p(e,t,n){let r,i,s;for(let o=n.length-1;o>=0;o--){const a=n[o];if(t===a.filenameLowercase){r=a;break}if(a.filepattern&&(!i||a.filepattern.length>i.filepattern.length)){const n=a.filepatternOnPath?e:t;a.filepatternLowercase?.(n)&&(i=a)}a.extension&&(!s||a.extension.length>s.extension.length)&&t.endsWith(a.extensionLowercase)&&(s=a)}return r||(i||(s||void 0))}},9259:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LanguageIdCodec:()=>d,LanguagesRegistry:()=>g});var r=n(1234),i=n(1484),s=n(1508),o=n(9908),a=n(3941),l=n(1646),c=n(6359);const h=Object.prototype.hasOwnProperty,u="vs.editor.nullLanguage";class d{constructor(){this._languageIdToLanguage=[],this._languageToLanguageId=new Map,this._register(u,0),this._register(a.vH,1),this._nextLanguageId=2}_register(e,t){this._languageIdToLanguage[t]=e,this._languageToLanguageId.set(e,t)}register(e){if(this._languageToLanguageId.has(e))return;const t=this._nextLanguageId++;this._register(e,t)}encodeLanguageId(e){return this._languageToLanguageId.get(e)||0}decodeLanguageId(e){return this._languageIdToLanguage[e]||u}}class g extends i.jG{static{this.instanceCount=0}constructor(e=!0,t=!1){super(),this._onDidChange=this._register(new r.vl),this.onDidChange=this._onDidChange.event,g.instanceCount++,this._warnOnOverwrite=t,this.languageIdCodec=new d,this._dynamicLanguages=[],this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},e&&(this._initializeFromRegistry(),this._register(a.W6.onDidChangeLanguages((e=>{this._initializeFromRegistry()}))))}dispose(){g.instanceCount--,super.dispose()}_initializeFromRegistry(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},(0,o.clearPlatformLanguageAssociations)();const e=[].concat(a.W6.getLanguages()).concat(this._dynamicLanguages);this._registerLanguages(e)}_registerLanguages(e){for(const t of e)this._registerLanguage(t);this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach((e=>{const t=this._languages[e];t.name&&(this._nameMap[t.name]=t.identifier),t.aliases.forEach((e=>{this._lowercaseNameMap[e.toLowerCase()]=t.identifier})),t.mimetypes.forEach((e=>{this._mimeTypesMap[e]=t.identifier}))})),c.O.as(l.Fd.Configuration).registerOverrideIdentifiers(this.getRegisteredLanguageIds()),this._onDidChange.fire()}_registerLanguage(e){const t=e.id;let n;h.call(this._languages,t)?n=this._languages[t]:(this.languageIdCodec.register(t),n={identifier:t,name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[],icons:[]},this._languages[t]=n),this._mergeLanguage(n,e)}_mergeLanguage(e,t){const n=t.id;let r=null;if(Array.isArray(t.mimetypes)&&t.mimetypes.length>0&&(e.mimetypes.push(...t.mimetypes),r=t.mimetypes[0]),r||(r=`text/x-${n}`,e.mimetypes.push(r)),Array.isArray(t.extensions)){t.configuration?e.extensions=t.extensions.concat(e.extensions):e.extensions=e.extensions.concat(t.extensions);for(const e of t.extensions)(0,o.registerPlatformLanguageAssociation)({id:n,mime:r,extension:e},this._warnOnOverwrite)}if(Array.isArray(t.filenames))for(const s of t.filenames)(0,o.registerPlatformLanguageAssociation)({id:n,mime:r,filename:s},this._warnOnOverwrite),e.filenames.push(s);if(Array.isArray(t.filenamePatterns))for(const s of t.filenamePatterns)(0,o.registerPlatformLanguageAssociation)({id:n,mime:r,filepattern:s},this._warnOnOverwrite);if("string"===typeof t.firstLine&&t.firstLine.length>0){let e=t.firstLine;"^"!==e.charAt(0)&&(e="^"+e);try{const t=new RegExp(e);(0,s.eY)(t)||(0,o.registerPlatformLanguageAssociation)({id:n,mime:r,firstline:t},this._warnOnOverwrite)}catch(l){console.warn(`[${t.id}]: Invalid regular expression \`${e}\`: `,l)}}e.aliases.push(n);let i=null;if("undefined"!==typeof t.aliases&&Array.isArray(t.aliases)&&(i=0===t.aliases.length?[null]:t.aliases),null!==i)for(const s of i)s&&0!==s.length&&e.aliases.push(s);const a=null!==i&&i.length>0;if(a&&null===i[0]);else{const t=(a?i[0]:null)||n;!a&&e.name||(e.name=t)}t.configuration&&e.configurationFiles.push(t.configuration),t.icon&&e.icons.push(t.icon)}isRegisteredLanguageId(e){return!!e&&h.call(this._languages,e)}getRegisteredLanguageIds(){return Object.keys(this._languages)}getLanguageIdByLanguageName(e){const t=e.toLowerCase();return h.call(this._lowercaseNameMap,t)?this._lowercaseNameMap[t]:null}getLanguageIdByMimeType(e){return e&&h.call(this._mimeTypesMap,e)?this._mimeTypesMap[e]:null}guessLanguageIdByFilepathOrFirstLine(e,t){return e||t?(0,o.getLanguageIds)(e,t):[]}}},7550:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IMarkerDecorationsService:()=>r});const r=(0,n(3591).u1)("markerDecorationsService")},448:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MarkerDecorationsService:()=>L});var r,i=n(1508);!function(e){e[e.Ignore=0]="Ignore",e[e.Info=1]="Info",e[e.Warning=2]="Warning",e[e.Error=3]="Error"}(r||(r={})),function(e){const t="error",n="warning",r="info";e.fromValue=function(s){return s?i.Q_(t,s)?e.Error:i.Q_(n,s)||i.Q_("warn",s)?e.Warning:i.Q_(r,s)?e.Info:e.Ignore:e.Ignore},e.toString=function(i){switch(i){case e.Error:return t;case e.Warning:return n;case e.Info:return r;default:return"ignore"}}}(r||(r={}));const s=r;var o,a,l=n(8209),c=n(3591);!function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(o||(o={})),function(e){e.compare=function(e,t){return t-e};const t=Object.create(null);t[e.Error]=(0,l.kg)("sev.error","Error"),t[e.Warning]=(0,l.kg)("sev.warning","Warning"),t[e.Info]=(0,l.kg)("sev.info","Info"),e.toString=function(e){return t[e]||""},e.fromSeverity=function(t){switch(t){case s.Error:return e.Error;case s.Warning:return e.Warning;case s.Info:return e.Info;case s.Ignore:return e.Hint}},e.toSeverity=function(t){switch(t){case e.Error:return s.Error;case e.Warning:return s.Warning;case e.Info:return s.Info;case e.Hint:return s.Ignore}}}(o||(o={})),function(e){const t="";function n(e,n){const r=[t];return e.source?r.push(e.source.replace("\xa6","\\\xa6")):r.push(t),e.code?"string"===typeof e.code?r.push(e.code.replace("\xa6","\\\xa6")):r.push(e.code.value.replace("\xa6","\\\xa6")):r.push(t),void 0!==e.severity&&null!==e.severity?r.push(o.toString(e.severity)):r.push(t),e.message&&n?r.push(e.message.replace("\xa6","\\\xa6")):r.push(t),void 0!==e.startLineNumber&&null!==e.startLineNumber?r.push(e.startLineNumber.toString()):r.push(t),void 0!==e.startColumn&&null!==e.startColumn?r.push(e.startColumn.toString()):r.push(t),void 0!==e.endLineNumber&&null!==e.endLineNumber?r.push(e.endLineNumber.toString()):r.push(t),void 0!==e.endColumn&&null!==e.endColumn?r.push(e.endColumn.toString()):r.push(t),r.push(t),r.join("\xa6")}e.makeKey=function(e){return n(e,!0)},e.makeKeyOptionalMessage=n}(a||(a={}));const h=(0,c.u1)("markerService");var u=n(1484),d=n(6223),g=n(5724),f=n(7119),m=n(3750),p=n(6677),b=n(6456),_=n(1234),k=n(5845),v=n(4320);var C=function(e,t,n,r){var i,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,n,o):i(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},y=function(e,t){return function(n,r){t(n,r,e)}};let L=class extends u.jG{constructor(e,t){super(),this._markerService=t,this._onDidChangeMarker=this._register(new _.vl),this._markerDecorations=new v.fT,e.getModels().forEach((e=>this._onModelAdded(e))),this._register(e.onModelAdded(this._onModelAdded,this)),this._register(e.onModelRemoved(this._onModelRemoved,this)),this._register(this._markerService.onMarkerChanged(this._handleMarkerChange,this))}dispose(){super.dispose(),this._markerDecorations.forEach((e=>e.dispose())),this._markerDecorations.clear()}getMarker(e,t){const n=this._markerDecorations.get(e);return n&&n.getMarker(t)||null}_handleMarkerChange(e){e.forEach((e=>{const t=this._markerDecorations.get(e);t&&this._updateDecorations(t)}))}_onModelAdded(e){const t=new w(e);this._markerDecorations.set(e.uri,t),this._updateDecorations(t)}_onModelRemoved(e){const t=this._markerDecorations.get(e.uri);t&&(t.dispose(),this._markerDecorations.delete(e.uri)),e.uri.scheme!==b.ny.inMemory&&e.uri.scheme!==b.ny.internal&&e.uri.scheme!==b.ny.vscode||this._markerService?.read({resource:e.uri}).map((e=>e.owner)).forEach((t=>this._markerService.remove(t,[e.uri])))}_updateDecorations(e){const t=this._markerService.read({resource:e.model.uri,take:500});e.update(t)&&this._onDidChangeMarker.fire(e.model)}};L=C([y(0,m.IModelService),y(1,h)],L);class w extends u.jG{constructor(e){super(),this.model=e,this._map=new v.cO,this._register((0,u.s)((()=>{this.model.deltaDecorations([...this._map.values()],[]),this._map.clear()})))}update(e){const{added:t,removed:n}=function(e,t){const n=[],r=[];for(const i of e)t.has(i)||n.push(i);for(const i of t)e.has(i)||r.push(i);return{removed:n,added:r}}(new Set(this._map.keys()),new Set(e));if(0===t.length&&0===n.length)return!1;const r=n.map((e=>this._map.get(e))),i=t.map((e=>({range:this._createDecorationRange(this.model,e),options:this._createDecorationOption(e)}))),s=this.model.deltaDecorations(r,i);for(const o of n)this._map.delete(o);for(let o=0;o<s.length;o++)this._map.set(t[o],s[o]);return!0}getMarker(e){return this._map.getKey(e.id)}_createDecorationRange(e,t){let n=p.Q.lift(t);if(t.severity!==o.Hint||this._hasMarkerTag(t,1)||this._hasMarkerTag(t,2)||(n=n.setEndPosition(n.startLineNumber,n.startColumn+2)),n=e.validateRange(n),n.isEmpty()){const t=e.getLineLastNonWhitespaceColumn(n.startLineNumber)||e.getLineMaxColumn(n.startLineNumber);if(1===t||n.endColumn>=t)return n;const r=e.getWordAtPosition(n.getStartPosition());r&&(n=new p.Q(n.startLineNumber,r.startColumn,n.endLineNumber,r.endColumn))}else if(t.endColumn===Number.MAX_VALUE&&1===t.startColumn&&n.startLineNumber===n.endLineNumber){const r=e.getLineFirstNonWhitespaceColumn(t.startLineNumber);r<n.endColumn&&(n=new p.Q(n.startLineNumber,r,n.endLineNumber,n.endColumn),t.startColumn=r)}return n}_createDecorationOption(e){let t,n,r,i,s;switch(e.severity){case o.Hint:t=this._hasMarkerTag(e,2)?void 0:this._hasMarkerTag(e,1)?"squiggly-unnecessary":"squiggly-hint",r=0;break;case o.Info:t="squiggly-info",n=(0,g.Yf)(f.AQ),r=10,s={color:(0,g.Yf)(k.KoI),position:1};break;case o.Warning:t="squiggly-warning",n=(0,g.Yf)(f.aZ),r=20,s={color:(0,g.Yf)(k.uMG),position:1};break;case o.Error:default:t="squiggly-error",n=(0,g.Yf)(f.yI),r=30,s={color:(0,g.Yf)(k.yLC),position:1}}return e.tags&&(-1!==e.tags.indexOf(1)&&(i="squiggly-inline-unnecessary"),-1!==e.tags.indexOf(2)&&(i="squiggly-inline-deprecated")),{description:"marker-decoration",stickiness:1,className:t,showIfCollapsed:!0,overviewRuler:{color:n,position:d.A5.Right},minimap:s,zIndex:r,inlineClassName:i}}_hasMarkerTag(e,t){return!!e.tags&&e.tags.indexOf(t)>=0}}},3750:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IModelService:()=>r});const r=(0,n(3591).u1)("modelService")},1773:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DefaultModelSHA1Computer:()=>yi,ModelService:()=>Ci});var r=n(1234),i=n(1484),s=n(8067),o=n(9861),a=n(7661),l=n(4383),c=n(1508),h=n(9400),u=n(4454);class d{static _nextVisibleColumn(e,t,n){return 9===e?d.nextRenderTabStop(t,n):c.ne(e)||c.Ss(e)?t+2:t+1}static visibleColumnFromColumn(e,t,n){const r=Math.min(t-1,e.length),i=e.substring(0,r),s=new c.km(i);let o=0;for(;!s.eol();){const e=c.Z5(i,r,s.offset);s.nextGraphemeLength(),o=this._nextVisibleColumn(e,o,n)}return o}static columnFromVisibleColumn(e,t,n){if(t<=0)return 1;const r=e.length,i=new c.km(e);let s=0,o=1;for(;!i.eol();){const a=c.Z5(e,r,i.offset);i.nextGraphemeLength();const l=this._nextVisibleColumn(a,s,n),h=i.offset+1;if(l>=t){return l-t<t-s?h:o}s=l,o=h}return r+1}static nextRenderTabStop(e,t){return e+t-e%t}static nextIndentTabStop(e,t){return e+t-e%t}static prevRenderTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}static prevIndentTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}}function g(e,t,n){let r=c.HG(e);return-1===r&&(r=e.length),function(e,t,n){let r=0;for(let s=0;s<e.length;s++)"\t"===e.charAt(s)?r=d.nextIndentTabStop(r,t):r++;let i="";if(!n){const e=Math.floor(r/t);r%=t;for(let t=0;t<e;t++)i+="\t"}for(let s=0;s<r;s++)i+=" ";return i}(e.substring(0,r),t,n)+e.substring(r)}var f=n(3069),m=n(6677),p=n(5326);const b={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}};var _,k=n(154),v=n(6486);!function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(_||(_={}));class C{constructor(e){if(this._neutralCharacter=null,this._neutralCharacterSearched=!1,this.open=e.open,this.close=e.close,this._inString=!0,this._inComment=!0,this._inRegEx=!0,Array.isArray(e.notIn))for(let t=0,n=e.notIn.length;t<n;t++){switch(e.notIn[t]){case"string":this._inString=!1;break;case"comment":this._inComment=!1;break;case"regex":this._inRegEx=!1}}}isOK(e){switch(e){case 0:return!0;case 1:return this._inComment;case 2:return this._inString;case 3:return this._inRegEx}}shouldAutoClose(e,t){if(0===e.getTokenCount())return!0;const n=e.findTokenIndexAtOffset(t-2),r=e.getStandardTokenType(n);return this.isOK(r)}_findNeutralCharacterInRange(e,t){for(let n=e;n<=t;n++){const e=String.fromCharCode(n);if(!this.open.includes(e)&&!this.close.includes(e))return e}return null}findNeutralCharacter(){return this._neutralCharacterSearched||(this._neutralCharacterSearched=!0,this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(48,57)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(97,122)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(65,90))),this._neutralCharacter}}class y{constructor(e){this.autoClosingPairsOpenByStart=new Map,this.autoClosingPairsOpenByEnd=new Map,this.autoClosingPairsCloseByStart=new Map,this.autoClosingPairsCloseByEnd=new Map,this.autoClosingPairsCloseSingleChar=new Map;for(const t of e)L(this.autoClosingPairsOpenByStart,t.open.charAt(0),t),L(this.autoClosingPairsOpenByEnd,t.open.charAt(t.open.length-1),t),L(this.autoClosingPairsCloseByStart,t.close.charAt(0),t),L(this.autoClosingPairsCloseByEnd,t.close.charAt(t.close.length-1),t),1===t.close.length&&1===t.open.length&&L(this.autoClosingPairsCloseSingleChar,t.close,t)}}function L(e,t,n){e.has(t)?e.get(t).push(n):e.set(t,[n])}class w{static{this.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES=";:.,=}])> \n\t"}static{this.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS="'\"`;:.,=}])> \n\t"}constructor(e){if(e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map((e=>new C(e))):e.brackets?this._autoClosingPairs=e.brackets.map((e=>new C({open:e[0],close:e[1]}))):this._autoClosingPairs=[],e.__electricCharacterSupport&&e.__electricCharacterSupport.docComment){const t=e.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new C({open:t.open,close:t.close||""}))}this._autoCloseBeforeForQuotes="string"===typeof e.autoCloseBefore?e.autoCloseBefore:w.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES,this._autoCloseBeforeForBrackets="string"===typeof e.autoCloseBefore?e.autoCloseBefore:w.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS,this._surroundingPairs=e.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(e){return e?this._autoCloseBeforeForQuotes:this._autoCloseBeforeForBrackets}getSurroundingPairs(){return this._surroundingPairs}}function S(e){return 0!==(3&e)}var x=n(1674);let E,N,T;function A(){return E||(E=new TextDecoder("UTF-16LE")),E}function I(){return T||(T=s.cm()?A():(N||(N=new TextDecoder("UTF-16BE")),N)),T}function O(e,t,n){const r=new Uint16Array(e.buffer,t,n);return n>0&&(65279===r[0]||65534===r[0])?function(e,t,n){const r=[];let i=0;for(let s=0;s<n;s++){const n=x.$l(e,t);t+=2,r[i++]=String.fromCharCode(n)}return r.join("")}(e,t,n):A().decode(r)}class M{constructor(e,t,n,r,i,s){this._richEditBracketBrand=void 0,this.languageId=e,this.index=t,this.open=n,this.close=r,this.forwardRegex=i,this.reversedRegex=s,this._openSet=M._toSet(this.open),this._closeSet=M._toSet(this.close)}isOpen(e){return this._openSet.has(e)}isClose(e){return this._closeSet.has(e)}static _toSet(e){const t=new Set;for(const n of e)t.add(n);return t}}class R{constructor(e,t){this._richEditBracketsBrand=void 0;const n=function(e){const t=e.length;e=e.map((e=>[e[0].toLowerCase(),e[1].toLowerCase()]));const n=[];for(let o=0;o<t;o++)n[o]=o;const r=(e,t)=>{const[n,r]=e,[i,s]=t;return n===i||n===s||r===i||r===s},i=(e,r)=>{const i=Math.min(e,r),s=Math.max(e,r);for(let o=0;o<t;o++)n[o]===s&&(n[o]=i)};for(let o=0;o<t;o++){const s=e[o];for(let a=o+1;a<t;a++)r(s,e[a])&&i(n[o],n[a])}const s=[];for(let o=0;o<t;o++){const r=[],i=[];for(let s=0;s<t;s++)if(n[s]===o){const[t,n]=e[s];r.push(t),i.push(n)}r.length>0&&s.push({open:r,close:i})}return s}(t);this.brackets=n.map(((t,r)=>new M(e,r,t.open,t.close,function(e,t,n,r){let i=[];i=i.concat(e),i=i.concat(t);for(let s=0,o=i.length;s<o;s++)D(i[s],n,r,i);return i=F(i),i.sort(B),i.reverse(),V(i)}(t.open,t.close,n,r),function(e,t,n,r){let i=[];i=i.concat(e),i=i.concat(t);for(let s=0,o=i.length;s<o;s++)D(i[s],n,r,i);return i=F(i),i.sort(B),i.reverse(),V(i.map(z))}(t.open,t.close,n,r)))),this.forwardRegex=function(e){let t=[];for(const n of e){for(const e of n.open)t.push(e);for(const e of n.close)t.push(e)}return t=F(t),V(t)}(this.brackets),this.reversedRegex=function(e){let t=[];for(const n of e){for(const e of n.open)t.push(e);for(const e of n.close)t.push(e)}return t=F(t),V(t.map(z))}(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(const r of this.brackets){for(const e of r.open)this.textIsBracket[e]=r,this.textIsOpenBracket[e]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,e.length);for(const e of r.close)this.textIsBracket[e]=r,this.textIsOpenBracket[e]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,e.length)}}}function D(e,t,n,r){for(let i=0,s=t.length;i<s;i++){if(i===n)continue;const s=t[i];for(const t of s.open)t.indexOf(e)>=0&&r.push(t);for(const t of s.close)t.indexOf(e)>=0&&r.push(t)}}function B(e,t){return e.length-t.length}function F(e){if(e.length<=1)return e;const t=[],n=new Set;for(const r of e)n.has(r)||(t.push(r),n.add(r));return t}function P(e){const t=/^[\w ]+$/.test(e);return e=c.bm(e),t?`\\b${e}\\b`:e}function V(e,t){const n=`(${e.map(P).join(")|(")})`;return c.OS(n,!0,t)}const z=function(){let e=null,t=null;return function(n){return e!==n&&(e=n,t=function(e){const t=new Uint16Array(e.length);let n=0;for(let r=e.length-1;r>=0;r--)t[n++]=e.charCodeAt(r);return I().decode(t)}(e)),t}}();class j{static _findPrevBracketInText(e,t,n,r){const i=n.match(e);if(!i)return null;const s=n.length-(i.index||0),o=i[0].length,a=r+s;return new m.Q(t,a-o+1,t,a+1)}static findPrevBracketInRange(e,t,n,r,i){const s=z(n).substring(n.length-i,n.length-r);return this._findPrevBracketInText(e,t,s,r)}static findNextBracketInText(e,t,n,r){const i=n.match(e);if(!i)return null;const s=i.index||0,o=i[0].length;if(0===o)return null;const a=r+s;return new m.Q(t,a+1,t,a+1+o)}static findNextBracketInRange(e,t,n,r,i){const s=n.substring(r,i);return this.findNextBracketInText(e,t,s,r)}}class q{constructor(e){this._richEditBrackets=e}getElectricCharacters(){const e=[];if(this._richEditBrackets)for(const t of this._richEditBrackets.brackets)for(const n of t.close){const t=n.charAt(n.length-1);e.push(t)}return(0,o.dM)(e)}onElectricCharacter(e,t,n){if(!this._richEditBrackets||0===this._richEditBrackets.brackets.length)return null;const r=t.findTokenIndexAtOffset(n-1);if(S(t.getStandardTokenType(r)))return null;const i=this._richEditBrackets.reversedRegex,s=t.getLineContent().substring(0,n-1)+e,o=j.findPrevBracketInRange(i,1,s,0,s.length);if(!o)return null;const a=s.substring(o.startColumn-1,o.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[a])return null;const l=t.getActualLineContentBefore(o.startColumn-1);return/^\s*$/.test(l)?{matchOpenBracket:a}:null}}function W(e){return e.global&&(e.lastIndex=0),!0}class U{constructor(e){this._indentationRules=e}shouldIncrease(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&W(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(e))}shouldDecrease(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&W(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(e))}shouldIndentNextLine(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&W(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(e))}shouldIgnore(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&W(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(e))}getIndentMetadata(e){let t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t}}class ${constructor(e){(e=e||{}).brackets=e.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],e.brackets.forEach((e=>{const t=$._createOpenBracketRegExp(e[0]),n=$._createCloseBracketRegExp(e[1]);t&&n&&this._brackets.push({open:e[0],openRegExp:t,close:e[1],closeRegExp:n})})),this._regExpRules=e.onEnterRules||[]}onEnter(e,t,n,r){if(e>=3)for(let i=0,s=this._regExpRules.length;i<s;i++){const e=this._regExpRules[i];if([{reg:e.beforeText,text:n},{reg:e.afterText,text:r},{reg:e.previousLineText,text:t}].every((e=>!e.reg||(e.reg.lastIndex=0,e.reg.test(e.text)))))return e.action}if(e>=2&&n.length>0&&r.length>0)for(let i=0,s=this._brackets.length;i<s;i++){const e=this._brackets[i];if(e.openRegExp.test(n)&&e.closeRegExp.test(r))return{indentAction:_.IndentOutdent}}if(e>=2&&n.length>0)for(let i=0,s=this._brackets.length;i<s;i++){if(this._brackets[i].openRegExp.test(n))return{indentAction:_.Indent}}return null}static _createOpenBracketRegExp(e){let t=c.bm(e);return/\B/.test(t.charAt(0))||(t="\\b"+t),t+="\\s*$",$._safeRegExp(t)}static _createCloseBracketRegExp(e){let t=c.bm(e);return/\B/.test(t.charAt(t.length-1))||(t+="\\b"),t="^\\s*"+t,$._safeRegExp(t)}static _safeRegExp(e){try{return new RegExp(e)}catch(t){return(0,l.dz)(t),null}}}var H=n(3591),K=n(4001),G=n(4621),Q=n(3941),J=n(1788);class X{constructor(e,t){this.languageId=e;const n=t.brackets?Y(t.brackets):[],r=new J.VV((e=>{const t=new Set;return{info:new ee(this,e,t),closing:t}})),i=new J.VV((e=>{const t=new Set,n=new Set;return{info:new te(this,e,t,n),opening:t,openingColorized:n}}));for(const[o,a]of n){const e=r.get(o),t=i.get(a);e.closing.add(t.info),t.opening.add(e.info)}const s=t.colorizedBracketPairs?Y(t.colorizedBracketPairs):n.filter((e=>!("<"===e[0]&&">"===e[1])));for(const[o,a]of s){const e=r.get(o),t=i.get(a);e.closing.add(t.info),t.openingColorized.add(e.info),t.opening.add(e.info)}this._openingBrackets=new Map([...r.cachedValues].map((([e,t])=>[e,t.info]))),this._closingBrackets=new Map([...i.cachedValues].map((([e,t])=>[e,t.info])))}get openingBrackets(){return[...this._openingBrackets.values()]}get closingBrackets(){return[...this._closingBrackets.values()]}getOpeningBracketInfo(e){return this._openingBrackets.get(e)}getClosingBracketInfo(e){return this._closingBrackets.get(e)}getBracketInfo(e){return this.getOpeningBracketInfo(e)||this.getClosingBracketInfo(e)}getBracketRegExp(e){return V(Array.from([...this._openingBrackets.keys(),...this._closingBrackets.keys()]),e)}}function Y(e){return e.filter((([e,t])=>""!==e&&""!==t))}class Z{constructor(e,t){this.config=e,this.bracketText=t}get languageId(){return this.config.languageId}}class ee extends Z{constructor(e,t,n){super(e,t),this.openedBrackets=n,this.isOpeningBracket=!0}}class te extends Z{constructor(e,t,n,r){super(e,t),this.openingBrackets=n,this.openingColorizedBrackets=r,this.isOpeningBracket=!1}closes(e){return e.config===this.config&&this.openingBrackets.has(e)}closesColorized(e){return e.config===this.config&&this.openingColorizedBrackets.has(e)}getOpeningBrackets(){return[...this.openingBrackets]}}var ne=function(e,t,n,r){var i,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,n,o):i(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},re=function(e,t){return function(n,r){t(n,r,e)}};class ie{constructor(e){this.languageId=e}affects(e){return!this.languageId||this.languageId===e}}const se=(0,H.u1)("languageConfigurationService");let oe=class extends i.jG{constructor(e,t){super(),this.configurationService=e,this.languageService=t,this._registry=this._register(new ge),this.onDidChangeEmitter=this._register(new r.vl),this.onDidChange=this.onDidChangeEmitter.event,this.configurations=new Map;const n=new Set(Object.values(ae));this._register(this.configurationService.onDidChangeConfiguration((e=>{const t=e.change.keys.some((e=>n.has(e))),r=e.change.overrides.filter((([e,t])=>t.some((e=>n.has(e))))).map((([e])=>e));if(t)this.configurations.clear(),this.onDidChangeEmitter.fire(new ie(void 0));else for(const n of r)this.languageService.isRegisteredLanguageId(n)&&(this.configurations.delete(n),this.onDidChangeEmitter.fire(new ie(n)))}))),this._register(this._registry.onDidChange((e=>{this.configurations.delete(e.languageId),this.onDidChangeEmitter.fire(new ie(e.languageId))})))}register(e,t,n){return this._registry.register(e,t,n)}getLanguageConfiguration(e){let t=this.configurations.get(e);return t||(t=function(e,t,n,r){let i=t.getLanguageConfiguration(e);if(!i){if(!r.isRegisteredLanguageId(e))return new fe(e,{});i=new fe(e,{})}const s=function(e,t){const n=t.getValue(ae.brackets,{overrideIdentifier:e}),r=t.getValue(ae.colorizedBracketPairs,{overrideIdentifier:e});return{brackets:le(n),colorizedBracketPairs:le(r)}}(i.languageId,n),o=he([i.underlyingConfig,s]);return new fe(i.languageId,o)}(e,this._registry,this.configurationService,this.languageService),this.configurations.set(e,t)),t}};oe=ne([re(0,K.pG),re(1,k.L)],oe);const ae={brackets:"editor.language.brackets",colorizedBracketPairs:"editor.language.colorizedBracketPairs"};function le(e){if(Array.isArray(e))return e.map((e=>{if(Array.isArray(e)&&2===e.length)return[e[0],e[1]]})).filter((e=>!!e))}class ce{constructor(e){this.languageId=e,this._resolved=null,this._entries=[],this._order=0,this._resolved=null}register(e,t){const n=new ue(e,t,++this._order);return this._entries.push(n),this._resolved=null,(0,i.s)((()=>{for(let e=0;e<this._entries.length;e++)if(this._entries[e]===n){this._entries.splice(e,1),this._resolved=null;break}}))}getResolvedConfiguration(){if(!this._resolved){const e=this._resolve();e&&(this._resolved=new fe(this.languageId,e))}return this._resolved}_resolve(){return 0===this._entries.length?null:(this._entries.sort(ue.cmp),he(this._entries.map((e=>e.configuration))))}}function he(e){let t={comments:void 0,brackets:void 0,wordPattern:void 0,indentationRules:void 0,onEnterRules:void 0,autoClosingPairs:void 0,surroundingPairs:void 0,autoCloseBefore:void 0,folding:void 0,colorizedBracketPairs:void 0,__electricCharacterSupport:void 0};for(const n of e)t={comments:n.comments||t.comments,brackets:n.brackets||t.brackets,wordPattern:n.wordPattern||t.wordPattern,indentationRules:n.indentationRules||t.indentationRules,onEnterRules:n.onEnterRules||t.onEnterRules,autoClosingPairs:n.autoClosingPairs||t.autoClosingPairs,surroundingPairs:n.surroundingPairs||t.surroundingPairs,autoCloseBefore:n.autoCloseBefore||t.autoCloseBefore,folding:n.folding||t.folding,colorizedBracketPairs:n.colorizedBracketPairs||t.colorizedBracketPairs,__electricCharacterSupport:n.__electricCharacterSupport||t.__electricCharacterSupport};return t}class ue{constructor(e,t,n){this.configuration=e,this.priority=t,this.order=n}static cmp(e,t){return e.priority===t.priority?e.order-t.order:e.priority-t.priority}}class de{constructor(e){this.languageId=e}}class ge extends i.jG{constructor(){super(),this._entries=new Map,this._onDidChange=this._register(new r.vl),this.onDidChange=this._onDidChange.event,this._register(this.register(Q.vH,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],colorizedBracketPairs:[],folding:{offSide:!0}},0))}register(e,t,n=0){let r=this._entries.get(e);r||(r=new ce(e),this._entries.set(e,r));const s=r.register(t,n);return this._onDidChange.fire(new de(e)),(0,i.s)((()=>{s.dispose(),this._onDidChange.fire(new de(e))}))}getLanguageConfiguration(e){const t=this._entries.get(e);return t?.getResolvedConfiguration()||null}}class fe{constructor(e,t){this.languageId=e,this.underlyingConfig=t,this._brackets=null,this._electricCharacter=null,this._onEnterSupport=this.underlyingConfig.brackets||this.underlyingConfig.indentationRules||this.underlyingConfig.onEnterRules?new $(this.underlyingConfig):null,this.comments=fe._handleComments(this.underlyingConfig),this.characterPair=new w(this.underlyingConfig),this.wordDefinition=this.underlyingConfig.wordPattern||v.Ld,this.indentationRules=this.underlyingConfig.indentationRules,this.underlyingConfig.indentationRules?this.indentRulesSupport=new U(this.underlyingConfig.indentationRules):this.indentRulesSupport=null,this.foldingRules=this.underlyingConfig.folding||{},this.bracketsNew=new X(e,this.underlyingConfig)}getWordDefinition(){return(0,v.Io)(this.wordDefinition)}get brackets(){return!this._brackets&&this.underlyingConfig.brackets&&(this._brackets=new R(this.languageId,this.underlyingConfig.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new q(this.brackets)),this._electricCharacter}onEnter(e,t,n,r){return this._onEnterSupport?this._onEnterSupport.onEnter(e,t,n,r):null}getAutoClosingPairs(){return new y(this.characterPair.getAutoClosingPairs())}getAutoCloseBeforeSet(e){return this.characterPair.getAutoCloseBeforeSet(e)}getSurroundingPairs(){return this.characterPair.getSurroundingPairs()}static _handleComments(e){const t=e.comments;if(!t)return null;const n={};if(t.lineComment&&(n.lineCommentToken=t.lineComment),t.blockComment){const[e,r]=t.blockComment;n.blockCommentStartToken=e,n.blockCommentEndToken=r}return n}}(0,G.v)(se,oe,1);var me=n(6223);class pe{constructor(e,t,n,r){this.range=e,this.nestingLevel=t,this.nestingLevelOfEqualBracketType=n,this.isInvalid=r}}class be{constructor(e,t,n,r,i,s){this.range=e,this.openingBracketRange=t,this.closingBracketRange=n,this.nestingLevel=r,this.nestingLevelOfEqualBracketType=i,this.bracketPairNode=s}get openingBracketInfo(){return this.bracketPairNode.openingBracket.bracketInfo}}class _e extends be{constructor(e,t,n,r,i,s,o){super(e,t,n,r,i,s),this.minVisibleColumnIndentation=o}}var ke=n(973);function ve(e){return 0===e}const Ce=2**26;function ye(e,t){return e*Ce+t}function Le(e){const t=e,n=Math.floor(t/Ce),r=t-n*Ce;return new ke.W(n,r)}function we(e,t){let n=e+t;return t>=Ce&&(n-=e%Ce),n}function Se(e,t){return e.reduce(((e,n)=>we(e,t(n))),0)}function xe(e,t){return e===t}function Ee(e,t){const n=e,r=t;if(r-n<=0)return 0;const i=Math.floor(n/Ce),s=Math.floor(r/Ce),o=r-s*Ce;if(i===s){return ye(0,o-(n-i*Ce))}return ye(s-i,o)}function Ne(e,t){return e<t}function Te(e,t){return e<=t}function Ae(e,t){return e>=t}function Ie(e){return ye(e.lineNumber-1,e.column-1)}function Oe(e,t){const n=e,r=Math.floor(n/Ce),i=n-r*Ce,s=t,o=Math.floor(s/Ce),a=s-o*Ce;return new m.Q(r+1,i+1,o+1,a+1)}class Me{static fromModelContentChanges(e){return e.map((e=>{const t=m.Q.lift(e.range);return new Me(Ie(t.getStartPosition()),Ie(t.getEndPosition()),function(e){const t=(0,c.uz)(e);return ye(t.length-1,t[t.length-1].length)}(e.text))})).reverse()}constructor(e,t,n){this.startOffset=e,this.endOffset=t,this.newLength=n}toString(){return`[${Le(this.startOffset)}...${Le(this.endOffset)}) -> ${Le(this.newLength)}`}}class Re{constructor(e){this.nextEditIdx=0,this.deltaOldToNewLineCount=0,this.deltaOldToNewColumnCount=0,this.deltaLineIdxInOld=-1,this.edits=e.map((e=>De.from(e)))}getOffsetBeforeChange(e){return this.adjustNextEdit(e),this.translateCurToOld(e)}getDistanceToNextChange(e){this.adjustNextEdit(e);const t=this.edits[this.nextEditIdx],n=t?this.translateOldToCur(t.offsetObj):null;return null===n?null:Ee(e,n)}translateOldToCur(e){return e.lineCount===this.deltaLineIdxInOld?ye(e.lineCount+this.deltaOldToNewLineCount,e.columnCount+this.deltaOldToNewColumnCount):ye(e.lineCount+this.deltaOldToNewLineCount,e.columnCount)}translateCurToOld(e){const t=Le(e);return t.lineCount-this.deltaOldToNewLineCount===this.deltaLineIdxInOld?ye(t.lineCount-this.deltaOldToNewLineCount,t.columnCount-this.deltaOldToNewColumnCount):ye(t.lineCount-this.deltaOldToNewLineCount,t.columnCount)}adjustNextEdit(e){for(;this.nextEditIdx<this.edits.length;){const t=this.edits[this.nextEditIdx],n=this.translateOldToCur(t.endOffsetAfterObj);if(!Te(n,e))break;{this.nextEditIdx++;const e=Le(n),r=Le(this.translateOldToCur(t.endOffsetBeforeObj)),i=e.lineCount-r.lineCount;this.deltaOldToNewLineCount+=i;const s=this.deltaLineIdxInOld===t.endOffsetBeforeObj.lineCount?this.deltaOldToNewColumnCount:0,o=e.columnCount-r.columnCount;this.deltaOldToNewColumnCount=s+o,this.deltaLineIdxInOld=t.endOffsetBeforeObj.lineCount}}}}class De{static from(e){return new De(e.startOffset,e.endOffset,e.newLength)}constructor(e,t,n){this.endOffsetBeforeObj=Le(t),this.endOffsetAfterObj=Le(we(e,n)),this.offsetObj=Le(e)}}const Be=[];class Fe{static{this.cache=new Array(129)}static create(e,t){if(e<=128&&0===t.length){let n=Fe.cache[e];return n||(n=new Fe(e,t),Fe.cache[e]=n),n}return new Fe(e,t)}static{this.empty=Fe.create(0,Be)}static getEmpty(){return this.empty}constructor(e,t){this.items=e,this.additionalItems=t}add(e,t){const n=t.getKey(e);let r=n>>5;if(0===r){const e=1<<n|this.items;return e===this.items?this:Fe.create(e,this.additionalItems)}r--;const i=this.additionalItems.slice(0);for(;i.length<r;)i.push(0);return i[r]|=1<<(31&n),Fe.create(this.items,i)}merge(e){const t=this.items|e.items;if(this.additionalItems===Be&&e.additionalItems===Be)return t===this.items?this:t===e.items?e:Fe.create(t,Be);const n=[];for(let r=0;r<Math.max(this.additionalItems.length,e.additionalItems.length);r++){const t=this.additionalItems[r]||0,i=e.additionalItems[r]||0;n.push(t|i)}return Fe.create(t,n)}intersects(e){if(0!==(this.items&e.items))return!0;for(let t=0;t<Math.min(this.additionalItems.length,e.additionalItems.length);t++)if(0!==(this.additionalItems[t]&e.additionalItems[t]))return!0;return!1}}const Pe={getKey:e=>e};class Ve{constructor(){this.items=new Map}getKey(e){let t=this.items.get(e);return void 0===t&&(t=this.items.size,this.items.set(e,t)),t}}class ze{get length(){return this._length}constructor(e){this._length=e}}class je extends ze{static create(e,t,n){let r=e.length;return t&&(r=we(r,t.length)),n&&(r=we(r,n.length)),new je(r,e,t,n,t?t.missingOpeningBracketIds:Fe.getEmpty())}get kind(){return 2}get listHeight(){return 0}get childrenLength(){return 3}getChild(e){switch(e){case 0:return this.openingBracket;case 1:return this.child;case 2:return this.closingBracket}throw new Error("Invalid child index")}get children(){const e=[];return e.push(this.openingBracket),this.child&&e.push(this.child),this.closingBracket&&e.push(this.closingBracket),e}constructor(e,t,n,r,i){super(e),this.openingBracket=t,this.child=n,this.closingBracket=r,this.missingOpeningBracketIds=i}canBeReused(e){return null!==this.closingBracket&&!e.intersects(this.missingOpeningBracketIds)}deepClone(){return new je(this.length,this.openingBracket.deepClone(),this.child&&this.child.deepClone(),this.closingBracket&&this.closingBracket.deepClone(),this.missingOpeningBracketIds)}computeMinIndentation(e,t){return this.child?this.child.computeMinIndentation(we(e,this.openingBracket.length),t):Number.MAX_SAFE_INTEGER}}class qe extends ze{static create23(e,t,n,r=!1){let i=e.length,s=e.missingOpeningBracketIds;if(e.listHeight!==t.listHeight)throw new Error("Invalid list heights");if(i=we(i,t.length),s=s.merge(t.missingOpeningBracketIds),n){if(e.listHeight!==n.listHeight)throw new Error("Invalid list heights");i=we(i,n.length),s=s.merge(n.missingOpeningBracketIds)}return r?new Ue(i,e.listHeight+1,e,t,n,s):new We(i,e.listHeight+1,e,t,n,s)}static getEmpty(){return new He(0,0,[],Fe.getEmpty())}get kind(){return 4}get missingOpeningBracketIds(){return this._missingOpeningBracketIds}constructor(e,t,n){super(e),this.listHeight=t,this._missingOpeningBracketIds=n,this.cachedMinIndentation=-1}throwIfImmutable(){}makeLastElementMutable(){this.throwIfImmutable();const e=this.childrenLength;if(0===e)return;const t=this.getChild(e-1),n=4===t.kind?t.toMutable():t;return t!==n&&this.setChild(e-1,n),n}makeFirstElementMutable(){this.throwIfImmutable();if(0===this.childrenLength)return;const e=this.getChild(0),t=4===e.kind?e.toMutable():e;return e!==t&&this.setChild(0,t),t}canBeReused(e){if(e.intersects(this.missingOpeningBracketIds))return!1;if(0===this.childrenLength)return!1;let t=this;for(;4===t.kind;){const e=t.childrenLength;if(0===e)throw new l.D7;t=t.getChild(e-1)}return t.canBeReused(e)}handleChildrenChanged(){this.throwIfImmutable();const e=this.childrenLength;let t=this.getChild(0).length,n=this.getChild(0).missingOpeningBracketIds;for(let r=1;r<e;r++){const e=this.getChild(r);t=we(t,e.length),n=n.merge(e.missingOpeningBracketIds)}this._length=t,this._missingOpeningBracketIds=n,this.cachedMinIndentation=-1}computeMinIndentation(e,t){if(-1!==this.cachedMinIndentation)return this.cachedMinIndentation;let n=Number.MAX_SAFE_INTEGER,r=e;for(let i=0;i<this.childrenLength;i++){const e=this.getChild(i);e&&(n=Math.min(n,e.computeMinIndentation(r,t)),r=we(r,e.length))}return this.cachedMinIndentation=n,n}}class We extends qe{get childrenLength(){return null!==this._item3?3:2}getChild(e){switch(e){case 0:return this._item1;case 1:return this._item2;case 2:return this._item3}throw new Error("Invalid child index")}setChild(e,t){switch(e){case 0:return void(this._item1=t);case 1:return void(this._item2=t);case 2:return void(this._item3=t)}throw new Error("Invalid child index")}get children(){return this._item3?[this._item1,this._item2,this._item3]:[this._item1,this._item2]}get item1(){return this._item1}get item2(){return this._item2}get item3(){return this._item3}constructor(e,t,n,r,i,s){super(e,t,s),this._item1=n,this._item2=r,this._item3=i}deepClone(){return new We(this.length,this.listHeight,this._item1.deepClone(),this._item2.deepClone(),this._item3?this._item3.deepClone():null,this.missingOpeningBracketIds)}appendChildOfSameHeight(e){if(this._item3)throw new Error("Cannot append to a full (2,3) tree node");this.throwIfImmutable(),this._item3=e,this.handleChildrenChanged()}unappendChild(){if(!this._item3)throw new Error("Cannot remove from a non-full (2,3) tree node");this.throwIfImmutable();const e=this._item3;return this._item3=null,this.handleChildrenChanged(),e}prependChildOfSameHeight(e){if(this._item3)throw new Error("Cannot prepend to a full (2,3) tree node");this.throwIfImmutable(),this._item3=this._item2,this._item2=this._item1,this._item1=e,this.handleChildrenChanged()}unprependChild(){if(!this._item3)throw new Error("Cannot remove from a non-full (2,3) tree node");this.throwIfImmutable();const e=this._item1;return this._item1=this._item2,this._item2=this._item3,this._item3=null,this.handleChildrenChanged(),e}toMutable(){return this}}class Ue extends We{toMutable(){return new We(this.length,this.listHeight,this.item1,this.item2,this.item3,this.missingOpeningBracketIds)}throwIfImmutable(){throw new Error("this instance is immutable")}}class $e extends qe{get childrenLength(){return this._children.length}getChild(e){return this._children[e]}setChild(e,t){this._children[e]=t}get children(){return this._children}constructor(e,t,n,r){super(e,t,r),this._children=n}deepClone(){const e=new Array(this._children.length);for(let t=0;t<this._children.length;t++)e[t]=this._children[t].deepClone();return new $e(this.length,this.listHeight,e,this.missingOpeningBracketIds)}appendChildOfSameHeight(e){this.throwIfImmutable(),this._children.push(e),this.handleChildrenChanged()}unappendChild(){this.throwIfImmutable();const e=this._children.pop();return this.handleChildrenChanged(),e}prependChildOfSameHeight(e){this.throwIfImmutable(),this._children.unshift(e),this.handleChildrenChanged()}unprependChild(){this.throwIfImmutable();const e=this._children.shift();return this.handleChildrenChanged(),e}toMutable(){return this}}class He extends $e{toMutable(){return new $e(this.length,this.listHeight,[...this.children],this.missingOpeningBracketIds)}throwIfImmutable(){throw new Error("this instance is immutable")}}const Ke=[];class Ge extends ze{get listHeight(){return 0}get childrenLength(){return 0}getChild(e){return null}get children(){return Ke}deepClone(){return this}}class Qe extends Ge{get kind(){return 0}get missingOpeningBracketIds(){return Fe.getEmpty()}canBeReused(e){return!0}computeMinIndentation(e,t){const n=Le(e),r=(0===n.columnCount?n.lineCount:n.lineCount+1)+1,i=(s=we(e,this.length),Math.floor(s/Ce)+1);var s;let o=Number.MAX_SAFE_INTEGER;for(let a=r;a<=i;a++){const e=t.getLineFirstNonWhitespaceColumn(a),n=t.getLineContent(a);if(0===e)continue;const r=d.visibleColumnFromColumn(n,e,t.getOptions().tabSize);o=Math.min(o,r)}return o}}class Je extends Ge{static create(e,t,n){return new Je(e,t,n)}get kind(){return 1}get missingOpeningBracketIds(){return Fe.getEmpty()}constructor(e,t,n){super(e),this.bracketInfo=t,this.bracketIds=n}get text(){return this.bracketInfo.bracketText}get languageId(){return this.bracketInfo.languageId}canBeReused(e){return!1}computeMinIndentation(e,t){return Number.MAX_SAFE_INTEGER}}class Xe extends Ge{get kind(){return 3}constructor(e,t){super(t),this.missingOpeningBracketIds=e}canBeReused(e){return!e.intersects(this.missingOpeningBracketIds)}computeMinIndentation(e,t){return Number.MAX_SAFE_INTEGER}}var Ye=n(5982);class Ze{constructor(e,t,n,r,i){this.length=e,this.kind=t,this.bracketId=n,this.bracketIds=r,this.astNode=i}}class et{constructor(e,t){this.textModel=e,this.bracketTokens=t,this.reader=new tt(this.textModel,this.bracketTokens),this._offset=0,this.didPeek=!1,this.peeked=null,this.textBufferLineCount=e.getLineCount(),this.textBufferLastLineLength=e.getLineLength(this.textBufferLineCount)}get offset(){return this._offset}get length(){return ye(this.textBufferLineCount-1,this.textBufferLastLineLength)}skip(e){this.didPeek=!1,this._offset=we(this._offset,e);const t=Le(this._offset);this.reader.setPosition(t.lineCount,t.columnCount)}read(){let e;return this.peeked?(this.didPeek=!1,e=this.peeked):e=this.reader.read(),e&&(this._offset=we(this._offset,e.length)),e}peek(){return this.didPeek||(this.peeked=this.reader.read(),this.didPeek=!0),this.peeked}}class tt{constructor(e,t){this.textModel=e,this.bracketTokens=t,this.lineIdx=0,this.line=null,this.lineCharOffset=0,this.lineTokens=null,this.lineTokenOffset=0,this.peekedToken=null,this.textBufferLineCount=e.getLineCount(),this.textBufferLastLineLength=e.getLineLength(this.textBufferLineCount)}setPosition(e,t){e===this.lineIdx?(this.lineCharOffset=t,null!==this.line&&(this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset))):(this.lineIdx=e,this.lineCharOffset=t,this.line=null),this.peekedToken=null}read(){if(this.peekedToken){const e=this.peekedToken;return this.peekedToken=null,this.lineCharOffset+=e.length,e}if(this.lineIdx>this.textBufferLineCount-1||this.lineIdx===this.textBufferLineCount-1&&this.lineCharOffset>=this.textBufferLastLineLength)return null;null===this.line&&(this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.line=this.lineTokens.getLineContent(),this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset));const e=this.lineIdx,t=this.lineCharOffset;let n=0;for(;;){const r=this.lineTokens,i=r.getCount();let s=null;if(this.lineTokenOffset<i){const o=r.getMetadata(this.lineTokenOffset);for(;this.lineTokenOffset+1<i&&o===r.getMetadata(this.lineTokenOffset+1);)this.lineTokenOffset++;const a=0===Ye.x.getTokenType(o),l=Ye.x.containsBalancedBrackets(o),c=r.getEndOffset(this.lineTokenOffset);if(l&&a&&this.lineCharOffset<c){const e=r.getLanguageId(this.lineTokenOffset),t=this.line.substring(this.lineCharOffset,c),n=this.bracketTokens.getSingleLanguageBracketTokens(e),i=n.regExpGlobal;if(i){i.lastIndex=0;const e=i.exec(t);e&&(s=n.getToken(e[0]),s&&(this.lineCharOffset+=e.index))}}if(n+=c-this.lineCharOffset,s){if(e!==this.lineIdx||t!==this.lineCharOffset){this.peekedToken=s;break}return this.lineCharOffset+=s.length,s}this.lineTokenOffset++,this.lineCharOffset=c}else{if(this.lineIdx===this.textBufferLineCount-1)break;if(this.lineIdx++,this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.lineTokenOffset=0,this.line=this.lineTokens.getLineContent(),this.lineCharOffset=0,n+=33,n>1e3)break}if(n>1500)break}const r=(i=e,s=t,o=this.lineIdx,a=this.lineCharOffset,i!==o?ye(o-i,a):ye(0,a-s));var i,s,o,a;return new Ze(r,0,-1,Fe.getEmpty(),new Qe(r))}}class nt{constructor(e,t){this.text=e,this._offset=0,this.idx=0;const n=t.getRegExpStr(),r=n?new RegExp(n+"|\n","gi"):null,i=[];let s,o=0,a=0,l=0,c=0;const h=[];for(let g=0;g<60;g++)h.push(new Ze(ye(0,g),0,-1,Fe.getEmpty(),new Qe(ye(0,g))));const u=[];for(let g=0;g<60;g++)u.push(new Ze(ye(1,g),0,-1,Fe.getEmpty(),new Qe(ye(1,g))));if(r)for(r.lastIndex=0;null!==(s=r.exec(e));){const e=s.index,n=s[0];if("\n"===n)o++,a=e+1;else{if(l!==e){let t;if(c===o){const n=e-l;if(n<h.length)t=h[n];else{const e=ye(0,n);t=new Ze(e,0,-1,Fe.getEmpty(),new Qe(e))}}else{const n=o-c,r=e-a;if(1===n&&r<u.length)t=u[r];else{const e=ye(n,r);t=new Ze(e,0,-1,Fe.getEmpty(),new Qe(e))}}i.push(t)}i.push(t.getToken(n)),l=e+n.length,c=o}}const d=e.length;if(l!==d){const e=c===o?ye(0,d-l):ye(o-c,d-a);i.push(new Ze(e,0,-1,Fe.getEmpty(),new Qe(e)))}this.length=ye(o,d-a),this.tokens=i}get offset(){return this._offset}read(){return this.tokens[this.idx++]||null}peek(){return this.tokens[this.idx]||null}skip(e){throw new l.EM}}class rt{static createFromLanguage(e,t){function n(e){return t.getKey(`${e.languageId}:::${e.bracketText}`)}const r=new Map;for(const i of e.bracketsNew.openingBrackets){const e=ye(0,i.bracketText.length),t=n(i),s=Fe.getEmpty().add(t,Pe);r.set(i.bracketText,new Ze(e,1,t,s,Je.create(e,i,s)))}for(const i of e.bracketsNew.closingBrackets){const e=ye(0,i.bracketText.length);let t=Fe.getEmpty();const s=i.getOpeningBrackets();for(const r of s)t=t.add(n(r),Pe);r.set(i.bracketText,new Ze(e,2,n(s[0]),t,Je.create(e,i,t)))}return new rt(r)}constructor(e){this.map=e,this.hasRegExp=!1,this._regExpGlobal=null}getRegExpStr(){if(this.isEmpty)return null;{const e=[...this.map.keys()];return e.sort(),e.reverse(),e.map((e=>function(e){let t=(0,c.bm)(e);/^[\w ]+/.test(e)&&(t=`\\b${t}`);/[\w ]+$/.test(e)&&(t=`${t}\\b`);return t}(e))).join("|")}}get regExpGlobal(){if(!this.hasRegExp){const e=this.getRegExpStr();this._regExpGlobal=e?new RegExp(e,"gi"):null,this.hasRegExp=!0}return this._regExpGlobal}getToken(e){return this.map.get(e.toLowerCase())}findClosingTokenText(e){for(const[t,n]of this.map)if(2===n.kind&&n.bracketIds.intersects(e))return t}get isEmpty(){return 0===this.map.size}}class it{constructor(e,t){this.denseKeyProvider=e,this.getLanguageConfiguration=t,this.languageIdToBracketTokens=new Map}didLanguageChange(e){return this.languageIdToBracketTokens.has(e)}getSingleLanguageBracketTokens(e){let t=this.languageIdToBracketTokens.get(e);return t||(t=rt.createFromLanguage(this.getLanguageConfiguration(e),this.denseKeyProvider),this.languageIdToBracketTokens.set(e,t)),t}}function st(e,t=!1){if(0===e.length)return null;if(1===e.length)return e[0];let n=e.length;for(;n>3;){const r=n>>1;for(let i=0;i<r;i++){const r=i<<1;e[i]=qe.create23(e[r],e[r+1],r+3===n?e[r+2]:null,t)}n=r}return qe.create23(e[0],e[1],n>=3?e[2]:null,t)}function ot(e,t){return Math.abs(e.listHeight-t.listHeight)}function at(e,t){return e.listHeight===t.listHeight?qe.create23(e,t,null,!1):e.listHeight>t.listHeight?function(e,t){let n=e=e.toMutable();const r=[];let i;for(;;){if(t.listHeight===n.listHeight){i=t;break}if(4!==n.kind)throw new Error("unexpected");r.push(n),n=n.makeLastElementMutable()}for(let s=r.length-1;s>=0;s--){const e=r[s];i?e.childrenLength>=3?i=qe.create23(e.unappendChild(),i,null,!1):(e.appendChildOfSameHeight(i),i=void 0):e.handleChildrenChanged()}return i?qe.create23(e,i,null,!1):e}(e,t):function(e,t){let n=e=e.toMutable();const r=[];for(;t.listHeight!==n.listHeight;){if(4!==n.kind)throw new Error("unexpected");r.push(n),n=n.makeFirstElementMutable()}let i=t;for(let s=r.length-1;s>=0;s--){const e=r[s];i?e.childrenLength>=3?i=qe.create23(i,e.unprependChild(),null,!1):(e.prependChildOfSameHeight(i),i=void 0):e.handleChildrenChanged()}return i?qe.create23(i,e,null,!1):e}(t,e)}class lt{constructor(e){this.lastOffset=0,this.nextNodes=[e],this.offsets=[0],this.idxs=[]}readLongestNodeAt(e,t){if(Ne(e,this.lastOffset))throw new Error("Invalid offset");for(this.lastOffset=e;;){const n=ht(this.nextNodes);if(!n)return;const r=ht(this.offsets);if(Ne(e,r))return;if(Ne(r,e))if(we(r,n.length)<=e)this.nextNodeAfterCurrent();else{const e=ct(n);-1!==e?(this.nextNodes.push(n.getChild(e)),this.offsets.push(r),this.idxs.push(e)):this.nextNodeAfterCurrent()}else{if(t(n))return this.nextNodeAfterCurrent(),n;{const e=ct(n);if(-1===e)return void this.nextNodeAfterCurrent();this.nextNodes.push(n.getChild(e)),this.offsets.push(r),this.idxs.push(e)}}}}nextNodeAfterCurrent(){for(;;){const e=ht(this.offsets),t=ht(this.nextNodes);if(this.nextNodes.pop(),this.offsets.pop(),0===this.idxs.length)break;const n=ht(this.nextNodes),r=ct(n,this.idxs[this.idxs.length-1]);if(-1!==r){this.nextNodes.push(n.getChild(r)),this.offsets.push(we(e,t.length)),this.idxs[this.idxs.length-1]=r;break}this.idxs.pop()}}}function ct(e,t=-1){for(;;){if(++t>=e.childrenLength)return-1;if(e.getChild(t))return t}}function ht(e){return e.length>0?e[e.length-1]:void 0}function ut(e,t,n,r){return new dt(e,t,n,r).parseDocument()}class dt{constructor(e,t,n,r){if(this.tokenizer=e,this.createImmutableLists=r,this._itemsConstructed=0,this._itemsFromCache=0,n&&r)throw new Error("Not supported");this.oldNodeReader=n?new lt(n):void 0,this.positionMapper=new Re(t)}parseDocument(){this._itemsConstructed=0,this._itemsFromCache=0;let e=this.parseList(Fe.getEmpty(),0);return e||(e=qe.getEmpty()),e}parseList(e,t){const n=[];for(;;){let r=this.tryReadChildFromCache(e);if(!r){const n=this.tokenizer.peek();if(!n||2===n.kind&&n.bracketIds.intersects(e))break;r=this.parseChild(e,t+1)}4===r.kind&&0===r.childrenLength||n.push(r)}const r=this.oldNodeReader?function(e){if(0===e.length)return null;if(1===e.length)return e[0];let t=0;function n(){if(t>=e.length)return null;const n=t,r=e[n].listHeight;for(t++;t<e.length&&e[t].listHeight===r;)t++;return t-n>=2?st(0===n&&t===e.length?e:e.slice(n,t),!1):e[n]}let r=n(),i=n();if(!i)return r;for(let s=n();s;s=n())ot(r,i)<=ot(i,s)?(r=at(r,i),i=s):i=at(i,s);return at(r,i)}(n):st(n,this.createImmutableLists);return r}tryReadChildFromCache(e){if(this.oldNodeReader){const t=this.positionMapper.getDistanceToNextChange(this.tokenizer.offset);if(null===t||!ve(t)){const n=this.oldNodeReader.readLongestNodeAt(this.positionMapper.getOffsetBeforeChange(this.tokenizer.offset),(n=>{if(null!==t&&!Ne(n.length,t))return!1;return n.canBeReused(e)}));if(n)return this._itemsFromCache++,this.tokenizer.skip(n.length),n}}}parseChild(e,t){this._itemsConstructed++;const n=this.tokenizer.read();switch(n.kind){case 2:return new Xe(n.bracketIds,n.length);case 0:return n.astNode;case 1:{if(t>300)return new Qe(n.length);const r=e.merge(n.bracketIds),i=this.parseList(r,t+1),s=this.tokenizer.peek();return s&&2===s.kind&&(s.bracketId===n.bracketId||s.bracketIds.intersects(n.bracketIds))?(this.tokenizer.read(),je.create(n.astNode,i,s.astNode)):je.create(n.astNode,i,null)}default:throw new Error("unexpected")}}}function gt(e,t){if(0===e.length)return t;if(0===t.length)return e;const n=new o.j3(mt(e)),r=mt(t);r.push({modified:!1,lengthBefore:void 0,lengthAfter:void 0});let i=n.dequeue();function s(e){if(void 0===e){const e=n.takeWhile((e=>!0))||[];return i&&e.unshift(i),e}const t=[];for(;i&&!ve(e);){const[r,s]=i.splitAt(e);t.push(r),e=Ee(r.lengthAfter,e),i=s??n.dequeue()}return ve(e)||t.push(new ft(!1,e,e)),t}const a=[];function l(e,t,n){if(a.length>0&&xe(a[a.length-1].endOffset,e)){const e=a[a.length-1];a[a.length-1]=new Me(e.startOffset,t,we(e.newLength,n))}else a.push({startOffset:e,endOffset:t,newLength:n})}let c=0;for(const o of r){const e=s(o.lengthBefore);if(o.modified){const t=we(c,Se(e,(e=>e.lengthBefore)));l(c,t,o.lengthAfter),c=t}else for(const t of e){const e=c;c=we(c,t.lengthBefore),t.modified&&l(e,c,t.lengthAfter)}}return a}class ft{constructor(e,t,n){this.modified=e,this.lengthBefore=t,this.lengthAfter=n}splitAt(e){const t=Ee(e,this.lengthAfter);return xe(t,0)?[this,void 0]:this.modified?[new ft(this.modified,this.lengthBefore,e),new ft(this.modified,0,t)]:[new ft(this.modified,e,e),new ft(this.modified,t,t)]}toString(){return`${this.modified?"M":"U"}:${Le(this.lengthBefore)} -> ${Le(this.lengthAfter)}`}}function mt(e){const t=[];let n=0;for(const r of e){const e=Ee(n,r.startOffset);ve(e)||t.push(new ft(!1,e,e));const i=Ee(r.startOffset,r.endOffset);t.push(new ft(!0,i,r.newLength)),n=r.endOffset}return t}class pt extends i.jG{didLanguageChange(e){return this.brackets.didLanguageChange(e)}constructor(e,t){if(super(),this.textModel=e,this.getLanguageConfiguration=t,this.didChangeEmitter=new r.vl,this.denseKeyProvider=new Ve,this.brackets=new it(this.denseKeyProvider,this.getLanguageConfiguration),this.onDidChange=this.didChangeEmitter.event,this.queuedTextEditsForInitialAstWithoutTokens=[],this.queuedTextEdits=[],e.tokenization.hasTokens)2===e.tokenization.backgroundTokenizationState?(this.initialAstWithoutTokens=void 0,this.astWithTokens=this.parseDocumentFromTextBuffer([],void 0,!1)):(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer([],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens);else{const e=this.brackets.getSingleLanguageBracketTokens(this.textModel.getLanguageId()),t=new nt(this.textModel.getValue(),e);this.initialAstWithoutTokens=ut(t,[],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens}}handleDidChangeBackgroundTokenizationState(){if(2===this.textModel.tokenization.backgroundTokenizationState){const e=void 0===this.initialAstWithoutTokens;this.initialAstWithoutTokens=void 0,e||this.didChangeEmitter.fire()}}handleDidChangeTokens({ranges:e}){const t=e.map((e=>new Me(ye(e.fromLineNumber-1,0),ye(e.toLineNumber,0),ye(e.toLineNumber-e.fromLineNumber+1,0))));this.handleEdits(t,!0),this.initialAstWithoutTokens||this.didChangeEmitter.fire()}handleContentChanged(e){const t=Me.fromModelContentChanges(e.changes);this.handleEdits(t,!1)}handleEdits(e,t){const n=gt(this.queuedTextEdits,e);this.queuedTextEdits=n,this.initialAstWithoutTokens&&!t&&(this.queuedTextEditsForInitialAstWithoutTokens=gt(this.queuedTextEditsForInitialAstWithoutTokens,e))}flushQueue(){this.queuedTextEdits.length>0&&(this.astWithTokens=this.parseDocumentFromTextBuffer(this.queuedTextEdits,this.astWithTokens,!1),this.queuedTextEdits=[]),this.queuedTextEditsForInitialAstWithoutTokens.length>0&&(this.initialAstWithoutTokens&&(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer(this.queuedTextEditsForInitialAstWithoutTokens,this.initialAstWithoutTokens,!1)),this.queuedTextEditsForInitialAstWithoutTokens=[])}parseDocumentFromTextBuffer(e,t,n){const r=t;return ut(new et(this.textModel,this.brackets),e,r,n)}getBracketsInRange(e,t){this.flushQueue();const n=ye(e.startLineNumber-1,e.startColumn-1),r=ye(e.endLineNumber-1,e.endColumn-1);return new o.c1((e=>{const i=this.initialAstWithoutTokens||this.astWithTokens;kt(i,0,i.length,n,r,e,0,0,new Map,t)}))}getBracketPairsInRange(e,t){this.flushQueue();const n=Ie(e.getStartPosition()),r=Ie(e.getEndPosition());return new o.c1((e=>{const i=this.initialAstWithoutTokens||this.astWithTokens,s=new vt(e,t,this.textModel);Ct(i,0,i.length,n,r,s,0,new Map)}))}getFirstBracketAfter(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return _t(t,0,t.length,Ie(e))}getFirstBracketBefore(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return bt(t,0,t.length,Ie(e))}}function bt(e,t,n,r){if(4===e.kind||2===e.kind){const i=[];for(const r of e.children)n=we(t,r.length),i.push({nodeOffsetStart:t,nodeOffsetEnd:n}),t=n;for(let t=i.length-1;t>=0;t--){const{nodeOffsetStart:n,nodeOffsetEnd:s}=i[t];if(Ne(n,r)){const i=bt(e.children[t],n,s,r);if(i)return i}}return null}if(3===e.kind)return null;if(1===e.kind){const r=Oe(t,n);return{bracketInfo:e.bracketInfo,range:r}}return null}function _t(e,t,n,r){if(4===e.kind||2===e.kind){for(const i of e.children){if(Ne(r,n=we(t,i.length))){const e=_t(i,t,n,r);if(e)return e}t=n}return null}if(3===e.kind)return null;if(1===e.kind){const r=Oe(t,n);return{bracketInfo:e.bracketInfo,range:r}}return null}function kt(e,t,n,r,i,s,o,a,l,c,h=!1){if(o>200)return!0;e:for(;;)switch(e.kind){case 4:{const a=e.childrenLength;for(let h=0;h<a;h++){const a=e.getChild(h);if(a){if(n=we(t,a.length),Te(t,i)&&Ae(n,r)){if(Ae(n,i)){e=a;continue e}if(!kt(a,t,n,r,i,s,o,0,l,c))return!1}t=n}}return!0}case 2:{const h=!c||!e.closingBracket||e.closingBracket.bracketInfo.closesColorized(e.openingBracket.bracketInfo);let u=0;if(l){let t=l.get(e.openingBracket.text);void 0===t&&(t=0),u=t,h&&(t++,l.set(e.openingBracket.text,t))}const d=e.childrenLength;for(let g=0;g<d;g++){const d=e.getChild(g);if(d){if(n=we(t,d.length),Te(t,i)&&Ae(n,r)){if(Ae(n,i)&&1!==d.kind){e=d,h?(o++,a=u+1):a=u;continue e}if(h||1!==d.kind||!e.closingBracket){if(!kt(d,t,n,r,i,s,h?o+1:o,h?u+1:u,l,c,!e.closingBracket))return!1}}t=n}}return l?.set(e.openingBracket.text,u),!0}case 3:{const e=Oe(t,n);return s(new pe(e,o-1,0,!0))}case 1:{const e=Oe(t,n);return s(new pe(e,o-1,a-1,h))}case 0:return!0}}class vt{constructor(e,t,n){this.push=e,this.includeMinIndentation=t,this.textModel=n}}function Ct(e,t,n,r,i,s,o,a){if(o>200)return!0;let l=!0;if(2===e.kind){let c=0;if(a){let t=a.get(e.openingBracket.text);void 0===t&&(t=0),c=t,t++,a.set(e.openingBracket.text,t)}const h=we(t,e.openingBracket.length);let u=-1;if(s.includeMinIndentation&&(u=e.computeMinIndentation(t,s.textModel)),l=s.push(new _e(Oe(t,n),Oe(t,h),e.closingBracket?Oe(we(h,e.child?.length||0),n):void 0,o,c,e,u)),t=h,l&&e.child){const c=e.child;if(n=we(t,c.length),Te(t,i)&&Ae(n,r)&&(l=Ct(c,t,n,r,i,s,o+1,a),!l))return!1}a?.set(e.openingBracket.text,c)}else{let n=t;for(const t of e.children){const e=n;if(n=we(n,t.length),Te(e,i)&&Te(r,n)&&(l=Ct(t,e,n,r,i,s,o,a),!l))return!1}}return l}class yt extends i.jG{get canBuildAST(){return this.textModel.getValueLength()<=5e6}constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t,this.bracketPairsTree=this._register(new i.HE),this.onDidChangeEmitter=new r.vl,this.onDidChange=this.onDidChangeEmitter.event,this.bracketsRequested=!1}handleLanguageConfigurationServiceChange(e){e.languageId&&!this.bracketPairsTree.value?.object.didLanguageChange(e.languageId)||(this.bracketPairsTree.clear(),this.updateBracketPairsTree())}handleDidChangeOptions(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeLanguage(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeContent(e){this.bracketPairsTree.value?.object.handleContentChanged(e)}handleDidChangeBackgroundTokenizationState(){this.bracketPairsTree.value?.object.handleDidChangeBackgroundTokenizationState()}handleDidChangeTokens(e){this.bracketPairsTree.value?.object.handleDidChangeTokens(e)}updateBracketPairsTree(){if(this.bracketsRequested&&this.canBuildAST){if(!this.bracketPairsTree.value){const n=new i.Cm;this.bracketPairsTree.value=(e=n.add(new pt(this.textModel,(e=>this.languageConfigurationService.getLanguageConfiguration(e)))),t=n,{object:e,dispose:()=>t?.dispose()}),n.add(this.bracketPairsTree.value.object.onDidChange((e=>this.onDidChangeEmitter.fire(e)))),this.onDidChangeEmitter.fire()}}else this.bracketPairsTree.value&&(this.bracketPairsTree.clear(),this.onDidChangeEmitter.fire());var e,t}getBracketPairsInRange(e){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketPairsInRange(e,!1)||o.c1.empty}getBracketPairsInRangeWithMinIndentation(e){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketPairsInRange(e,!0)||o.c1.empty}getBracketsInRange(e,t=!1){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketsInRange(e,t)||o.c1.empty}findMatchingBracketUp(e,t,n){const r=this.textModel.validatePosition(t),i=this.textModel.getLanguageIdAtPosition(r.lineNumber,r.column);if(this.canBuildAST){const n=this.languageConfigurationService.getLanguageConfiguration(i).bracketsNew.getClosingBracketInfo(e);if(!n)return null;const r=this.getBracketPairsInRange(m.Q.fromPositions(t,t)).findLast((e=>n.closes(e.openingBracketInfo)));return r?r.openingBracketRange:null}{const t=e.toLowerCase(),s=this.languageConfigurationService.getLanguageConfiguration(i).brackets;if(!s)return null;const o=s.textIsBracket[t];return o?St(this._findMatchingBracketUp(o,r,Lt(n))):null}}matchBracket(e,t){if(this.canBuildAST){const t=this.getBracketPairsInRange(m.Q.fromPositions(e,e)).filter((t=>void 0!==t.closingBracketRange&&(t.openingBracketRange.containsPosition(e)||t.closingBracketRange.containsPosition(e)))).findLastMaxBy((0,o.VE)((t=>t.openingBracketRange.containsPosition(e)?t.openingBracketRange:t.closingBracketRange),m.Q.compareRangesUsingStarts));return t?[t.openingBracketRange,t.closingBracketRange]:null}{const n=Lt(t);return this._matchBracket(this.textModel.validatePosition(e),n)}}_establishBracketSearchOffsets(e,t,n,r){const i=t.getCount(),s=t.getLanguageId(r);let o=Math.max(0,e.column-1-n.maxBracketLength);for(let l=r-1;l>=0;l--){const e=t.getEndOffset(l);if(e<=o)break;if(S(t.getStandardTokenType(l))||t.getLanguageId(l)!==s){o=e;break}}let a=Math.min(t.getLineContent().length,e.column-1+n.maxBracketLength);for(let l=r+1;l<i;l++){const e=t.getStartOffset(l);if(e>=a)break;if(S(t.getStandardTokenType(l))||t.getLanguageId(l)!==s){a=e;break}}return{searchStartOffset:o,searchEndOffset:a}}_matchBracket(e,t){const n=e.lineNumber,r=this.textModel.tokenization.getLineTokens(n),i=this.textModel.getLineContent(n),s=r.findTokenIndexAtOffset(e.column-1);if(s<0)return null;const o=this.languageConfigurationService.getLanguageConfiguration(r.getLanguageId(s)).brackets;if(o&&!S(r.getStandardTokenType(s))){let{searchStartOffset:a,searchEndOffset:l}=this._establishBracketSearchOffsets(e,r,o,s),c=null;for(;;){const r=j.findNextBracketInRange(o.forwardRegex,n,i,a,l);if(!r)break;if(r.startColumn<=e.column&&e.column<=r.endColumn){const e=i.substring(r.startColumn-1,r.endColumn-1).toLowerCase(),n=this._matchFoundBracket(r,o.textIsBracket[e],o.textIsOpenBracket[e],t);if(n){if(n instanceof wt)return null;c=n}}a=r.endColumn-1}if(c)return c}if(s>0&&r.getStartOffset(s)===e.column-1){const o=s-1,a=this.languageConfigurationService.getLanguageConfiguration(r.getLanguageId(o)).brackets;if(a&&!S(r.getStandardTokenType(o))){const{searchStartOffset:s,searchEndOffset:l}=this._establishBracketSearchOffsets(e,r,a,o),c=j.findPrevBracketInRange(a.reversedRegex,n,i,s,l);if(c&&c.startColumn<=e.column&&e.column<=c.endColumn){const e=i.substring(c.startColumn-1,c.endColumn-1).toLowerCase(),n=this._matchFoundBracket(c,a.textIsBracket[e],a.textIsOpenBracket[e],t);if(n)return n instanceof wt?null:n}}}return null}_matchFoundBracket(e,t,n,r){if(!t)return null;const i=n?this._findMatchingBracketDown(t,e.getEndPosition(),r):this._findMatchingBracketUp(t,e.getStartPosition(),r);return i?i instanceof wt?i:[e,i]:null}_findMatchingBracketUp(e,t,n){const r=e.languageId,i=e.reversedRegex;let s=-1,o=0;const a=(t,r,a,l)=>{for(;;){if(n&&++o%100===0&&!n())return wt.INSTANCE;const c=j.findPrevBracketInRange(i,t,r,a,l);if(!c)break;const h=r.substring(c.startColumn-1,c.endColumn-1).toLowerCase();if(e.isOpen(h)?s++:e.isClose(h)&&s--,0===s)return c;l=c.startColumn-1}return null};for(let l=t.lineNumber;l>=1;l--){const e=this.textModel.tokenization.getLineTokens(l),n=e.getCount(),i=this.textModel.getLineContent(l);let s=n-1,o=i.length,c=i.length;l===t.lineNumber&&(s=e.findTokenIndexAtOffset(t.column-1),o=t.column-1,c=t.column-1);let h=!0;for(;s>=0;s--){const t=e.getLanguageId(s)===r&&!S(e.getStandardTokenType(s));if(t)h?o=e.getStartOffset(s):(o=e.getStartOffset(s),c=e.getEndOffset(s));else if(h&&o!==c){const e=a(l,i,o,c);if(e)return e}h=t}if(h&&o!==c){const e=a(l,i,o,c);if(e)return e}}return null}_findMatchingBracketDown(e,t,n){const r=e.languageId,i=e.forwardRegex;let s=1,o=0;const a=(t,r,a,l)=>{for(;;){if(n&&++o%100===0&&!n())return wt.INSTANCE;const c=j.findNextBracketInRange(i,t,r,a,l);if(!c)break;const h=r.substring(c.startColumn-1,c.endColumn-1).toLowerCase();if(e.isOpen(h)?s++:e.isClose(h)&&s--,0===s)return c;a=c.endColumn-1}return null},l=this.textModel.getLineCount();for(let c=t.lineNumber;c<=l;c++){const e=this.textModel.tokenization.getLineTokens(c),n=e.getCount(),i=this.textModel.getLineContent(c);let s=0,o=0,l=0;c===t.lineNumber&&(s=e.findTokenIndexAtOffset(t.column-1),o=t.column-1,l=t.column-1);let h=!0;for(;s<n;s++){const t=e.getLanguageId(s)===r&&!S(e.getStandardTokenType(s));if(t)h||(o=e.getStartOffset(s)),l=e.getEndOffset(s);else if(h&&o!==l){const e=a(c,i,o,l);if(e)return e}h=t}if(h&&o!==l){const e=a(c,i,o,l);if(e)return e}}return null}findPrevBracket(e){const t=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getFirstBracketBefore(t)||null;let n=null,r=null,i=null;for(let s=t.lineNumber;s>=1;s--){const e=this.textModel.tokenization.getLineTokens(s),o=e.getCount(),a=this.textModel.getLineContent(s);let l=o-1,c=a.length,h=a.length;if(s===t.lineNumber){l=e.findTokenIndexAtOffset(t.column-1),c=t.column-1,h=t.column-1;const s=e.getLanguageId(l);n!==s&&(n=s,r=this.languageConfigurationService.getLanguageConfiguration(n).brackets,i=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew)}let u=!0;for(;l>=0;l--){const t=e.getLanguageId(l);if(n!==t){if(r&&i&&u&&c!==h){const e=j.findPrevBracketInRange(r.reversedRegex,s,a,c,h);if(e)return this._toFoundBracket(i,e);u=!1}n=t,r=this.languageConfigurationService.getLanguageConfiguration(n).brackets,i=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew}const o=!!r&&!S(e.getStandardTokenType(l));if(o)u?c=e.getStartOffset(l):(c=e.getStartOffset(l),h=e.getEndOffset(l));else if(i&&r&&u&&c!==h){const e=j.findPrevBracketInRange(r.reversedRegex,s,a,c,h);if(e)return this._toFoundBracket(i,e)}u=o}if(i&&r&&u&&c!==h){const e=j.findPrevBracketInRange(r.reversedRegex,s,a,c,h);if(e)return this._toFoundBracket(i,e)}}return null}findNextBracket(e){const t=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getFirstBracketAfter(t)||null;const n=this.textModel.getLineCount();let r=null,i=null,s=null;for(let o=t.lineNumber;o<=n;o++){const e=this.textModel.tokenization.getLineTokens(o),n=e.getCount(),a=this.textModel.getLineContent(o);let l=0,c=0,h=0;if(o===t.lineNumber){l=e.findTokenIndexAtOffset(t.column-1),c=t.column-1,h=t.column-1;const n=e.getLanguageId(l);r!==n&&(r=n,i=this.languageConfigurationService.getLanguageConfiguration(r).brackets,s=this.languageConfigurationService.getLanguageConfiguration(r).bracketsNew)}let u=!0;for(;l<n;l++){const t=e.getLanguageId(l);if(r!==t){if(s&&i&&u&&c!==h){const e=j.findNextBracketInRange(i.forwardRegex,o,a,c,h);if(e)return this._toFoundBracket(s,e);u=!1}r=t,i=this.languageConfigurationService.getLanguageConfiguration(r).brackets,s=this.languageConfigurationService.getLanguageConfiguration(r).bracketsNew}const n=!!i&&!S(e.getStandardTokenType(l));if(n)u||(c=e.getStartOffset(l)),h=e.getEndOffset(l);else if(s&&i&&u&&c!==h){const e=j.findNextBracketInRange(i.forwardRegex,o,a,c,h);if(e)return this._toFoundBracket(s,e)}u=n}if(s&&i&&u&&c!==h){const e=j.findNextBracketInRange(i.forwardRegex,o,a,c,h);if(e)return this._toFoundBracket(s,e)}}return null}findEnclosingBrackets(e,t){const n=this.textModel.validatePosition(e);if(this.canBuildAST){const e=m.Q.fromPositions(n),t=this.getBracketPairsInRange(m.Q.fromPositions(n,n)).findLast((t=>void 0!==t.closingBracketRange&&t.range.strictContainsRange(e)));return t?[t.openingBracketRange,t.closingBracketRange]:null}const r=Lt(t),i=this.textModel.getLineCount(),s=new Map;let o=[];const a=(e,t)=>{if(!s.has(e)){const n=[];for(let e=0,r=t?t.brackets.length:0;e<r;e++)n[e]=0;s.set(e,n)}o=s.get(e)};let l=0;const c=(e,t,n,i,s)=>{for(;;){if(r&&++l%100===0&&!r())return wt.INSTANCE;const a=j.findNextBracketInRange(e.forwardRegex,t,n,i,s);if(!a)break;const c=n.substring(a.startColumn-1,a.endColumn-1).toLowerCase(),h=e.textIsBracket[c];if(h&&(h.isOpen(c)?o[h.index]++:h.isClose(c)&&o[h.index]--,-1===o[h.index]))return this._matchFoundBracket(a,h,!1,r);i=a.endColumn-1}return null};let h=null,u=null;for(let d=n.lineNumber;d<=i;d++){const e=this.textModel.tokenization.getLineTokens(d),t=e.getCount(),r=this.textModel.getLineContent(d);let i=0,s=0,o=0;if(d===n.lineNumber){i=e.findTokenIndexAtOffset(n.column-1),s=n.column-1,o=n.column-1;const t=e.getLanguageId(i);h!==t&&(h=t,u=this.languageConfigurationService.getLanguageConfiguration(h).brackets,a(h,u))}let l=!0;for(;i<t;i++){const t=e.getLanguageId(i);if(h!==t){if(u&&l&&s!==o){const e=c(u,d,r,s,o);if(e)return St(e);l=!1}h=t,u=this.languageConfigurationService.getLanguageConfiguration(h).brackets,a(h,u)}const n=!!u&&!S(e.getStandardTokenType(i));if(n)l||(s=e.getStartOffset(i)),o=e.getEndOffset(i);else if(u&&l&&s!==o){const e=c(u,d,r,s,o);if(e)return St(e)}l=n}if(u&&l&&s!==o){const e=c(u,d,r,s,o);if(e)return St(e)}}return null}_toFoundBracket(e,t){if(!t)return null;let n=this.textModel.getValueInRange(t);n=n.toLowerCase();const r=e.getBracketInfo(n);return r?{range:t,bracketInfo:r}:null}}function Lt(e){if("undefined"===typeof e)return()=>!0;{const t=Date.now();return()=>Date.now()-t<=e}}class wt{static{this.INSTANCE=new wt}constructor(){this._searchCanceledBrand=void 0}}function St(e){return e instanceof wt?null:e}var xt=n(7119),Et=n(5724);class Nt extends i.jG{constructor(e){super(),this.textModel=e,this.colorProvider=new Tt,this.onDidChangeEmitter=new r.vl,this.onDidChange=this.onDidChangeEmitter.event,this.colorizationOptions=e.getOptions().bracketPairColorizationOptions,this._register(e.bracketPairs.onDidChange((e=>{this.onDidChangeEmitter.fire()})))}handleDidChangeOptions(e){this.colorizationOptions=this.textModel.getOptions().bracketPairColorizationOptions}getDecorationsInRange(e,t,n,r){if(r)return[];if(void 0===t)return[];if(!this.colorizationOptions.enabled)return[];return this.textModel.bracketPairs.getBracketsInRange(e,!0).map((e=>({id:`bracket${e.range.toString()}-${e.nestingLevel}`,options:{description:"BracketPairColorization",inlineClassName:this.colorProvider.getInlineClassName(e,this.colorizationOptions.independentColorPoolPerBracketType)},ownerId:0,range:e.range}))).toArray()}getAllDecorations(e,t){return void 0===e?[]:this.colorizationOptions.enabled?this.getDecorationsInRange(new m.Q(1,1,this.textModel.getLineCount(),1),e,t):[]}}class Tt{constructor(){this.unexpectedClosingBracketClassName="unexpected-closing-bracket"}getInlineClassName(e,t){return e.isInvalid?this.unexpectedClosingBracketClassName:this.getInlineClassNameOfLevel(t?e.nestingLevelOfEqualBracketType:e.nestingLevel)}getInlineClassNameOfLevel(e){return"bracket-highlighting-"+e%30}}(0,Et.zy)(((e,t)=>{const n=[xt.sN,xt.lQ,xt.ss,xt.l5,xt.sH,xt.zp],r=new Tt;t.addRule(`.monaco-editor .${r.unexpectedClosingBracketClassName} { color: ${e.getColor(xt.s7)}; }`);const i=n.map((t=>e.getColor(t))).filter((e=>!!e)).filter((e=>!e.isTransparent()));for(let s=0;s<30;s++){const e=i[s%i.length];t.addRule(`.monaco-editor .${r.getInlineClassNameOfLevel(s)} { color: ${e}; }`)}}));var At=n(8209);function It(e){return e.replace(/\n/g,"\\n").replace(/\r/g,"\\r")}class Ot{get oldLength(){return this.oldText.length}get oldEnd(){return this.oldPosition+this.oldText.length}get newLength(){return this.newText.length}get newEnd(){return this.newPosition+this.newText.length}constructor(e,t,n,r){this.oldPosition=e,this.oldText=t,this.newPosition=n,this.newText=r}toString(){return 0===this.oldText.length?`(insert@${this.oldPosition} "${It(this.newText)}")`:0===this.newText.length?`(delete@${this.oldPosition} "${It(this.oldText)}")`:`(replace@${this.oldPosition} "${It(this.oldText)}" with "${It(this.newText)}")`}static _writeStringSize(e){return 4+2*e.length}static _writeString(e,t,n){const r=t.length;x.Sw(e,r,n),n+=4;for(let i=0;i<r;i++)x.gN(e,t.charCodeAt(i),n),n+=2;return n}static _readString(e,t){const n=x.bb(e,t);return O(e,t+=4,n)}writeSize(){return 8+Ot._writeStringSize(this.oldText)+Ot._writeStringSize(this.newText)}write(e,t){return x.Sw(e,this.oldPosition,t),t+=4,x.Sw(e,this.newPosition,t),t+=4,t=Ot._writeString(e,this.oldText,t),t=Ot._writeString(e,this.newText,t)}static read(e,t,n){const r=x.bb(e,t);t+=4;const i=x.bb(e,t);t+=4;const s=Ot._readString(e,t);t+=Ot._writeStringSize(s);const o=Ot._readString(e,t);return t+=Ot._writeStringSize(o),n.push(new Ot(r,s,i,o)),t}}class Mt{constructor(e,t){this._prevEdits=e,this._currEdits=t,this._result=[],this._resultLen=0,this._prevLen=this._prevEdits.length,this._prevDeltaOffset=0,this._currLen=this._currEdits.length,this._currDeltaOffset=0}compress(){let e=0,t=0,n=this._getPrev(e),r=this._getCurr(t);for(;e<this._prevLen||t<this._currLen;){if(null===n){this._acceptCurr(r),r=this._getCurr(++t);continue}if(null===r){this._acceptPrev(n),n=this._getPrev(++e);continue}if(r.oldEnd<=n.newPosition){this._acceptCurr(r),r=this._getCurr(++t);continue}if(n.newEnd<=r.oldPosition){this._acceptPrev(n),n=this._getPrev(++e);continue}if(r.oldPosition<n.newPosition){const[e,t]=Mt._splitCurr(r,n.newPosition-r.oldPosition);this._acceptCurr(e),r=t;continue}if(n.newPosition<r.oldPosition){const[e,t]=Mt._splitPrev(n,r.oldPosition-n.newPosition);this._acceptPrev(e),n=t;continue}let i,s;if(r.oldEnd===n.newEnd)i=n,s=r,n=this._getPrev(++e),r=this._getCurr(++t);else if(r.oldEnd<n.newEnd){const[e,o]=Mt._splitPrev(n,r.oldLength);i=e,s=r,n=o,r=this._getCurr(++t)}else{const[t,o]=Mt._splitCurr(r,n.newLength);i=n,s=t,n=this._getPrev(++e),r=o}this._result[this._resultLen++]=new Ot(i.oldPosition,i.oldText,s.newPosition,s.newText),this._prevDeltaOffset+=i.newLength-i.oldLength,this._currDeltaOffset+=s.newLength-s.oldLength}const i=Mt._merge(this._result);return Mt._removeNoOps(i)}_acceptCurr(e){this._result[this._resultLen++]=Mt._rebaseCurr(this._prevDeltaOffset,e),this._currDeltaOffset+=e.newLength-e.oldLength}_getCurr(e){return e<this._currLen?this._currEdits[e]:null}_acceptPrev(e){this._result[this._resultLen++]=Mt._rebasePrev(this._currDeltaOffset,e),this._prevDeltaOffset+=e.newLength-e.oldLength}_getPrev(e){return e<this._prevLen?this._prevEdits[e]:null}static _rebaseCurr(e,t){return new Ot(t.oldPosition-e,t.oldText,t.newPosition,t.newText)}static _rebasePrev(e,t){return new Ot(t.oldPosition,t.oldText,t.newPosition+e,t.newText)}static _splitPrev(e,t){const n=e.newText.substr(0,t),r=e.newText.substr(t);return[new Ot(e.oldPosition,e.oldText,e.newPosition,n),new Ot(e.oldEnd,"",e.newPosition+t,r)]}static _splitCurr(e,t){const n=e.oldText.substr(0,t),r=e.oldText.substr(t);return[new Ot(e.oldPosition,n,e.newPosition,e.newText),new Ot(e.oldPosition+t,r,e.newEnd,"")]}static _merge(e){if(0===e.length)return e;const t=[];let n=0,r=e[0];for(let i=1;i<e.length;i++){const s=e[i];r.oldEnd===s.oldPosition?r=new Ot(r.oldPosition,r.oldText+s.oldText,r.newPosition,r.newText+s.newText):(t[n++]=r,r=s)}return t[n++]=r,t}static _removeNoOps(e){if(0===e.length)return e;const t=[];let n=0;for(let r=0;r<e.length;r++){const i=e[r];i.oldText!==i.newText&&(t[n++]=i)}return t}}var Rt=n(9403);function Dt(e){return e.toString()}class Bt{static create(e,t){const n=e.getAlternativeVersionId(),r=Vt(e);return new Bt(n,n,r,r,t,t,[])}constructor(e,t,n,r,i,s,o){this.beforeVersionId=e,this.afterVersionId=t,this.beforeEOL=n,this.afterEOL=r,this.beforeCursorState=i,this.afterCursorState=s,this.changes=o}append(e,t,n,r,i){var s,o;t.length>0&&(this.changes=(s=this.changes,o=t,null===s||0===s.length?o:new Mt(s,o).compress())),this.afterEOL=n,this.afterVersionId=r,this.afterCursorState=i}static _writeSelectionsSize(e){return 4+16*(e?e.length:0)}static _writeSelections(e,t,n){if(x.Sw(e,t?t.length:0,n),n+=4,t)for(const r of t)x.Sw(e,r.selectionStartLineNumber,n),n+=4,x.Sw(e,r.selectionStartColumn,n),n+=4,x.Sw(e,r.positionLineNumber,n),n+=4,x.Sw(e,r.positionColumn,n),n+=4;return n}static _readSelections(e,t,n){const r=x.bb(e,t);t+=4;for(let i=0;i<r;i++){const r=x.bb(e,t);t+=4;const i=x.bb(e,t);t+=4;const s=x.bb(e,t);t+=4;const o=x.bb(e,t);t+=4,n.push(new p.L(r,i,s,o))}return t}serialize(){let e=10+Bt._writeSelectionsSize(this.beforeCursorState)+Bt._writeSelectionsSize(this.afterCursorState)+4;for(const r of this.changes)e+=r.writeSize();const t=new Uint8Array(e);let n=0;x.Sw(t,this.beforeVersionId,n),n+=4,x.Sw(t,this.afterVersionId,n),n+=4,x.Gs(t,this.beforeEOL,n),n+=1,x.Gs(t,this.afterEOL,n),n+=1,n=Bt._writeSelections(t,this.beforeCursorState,n),n=Bt._writeSelections(t,this.afterCursorState,n),x.Sw(t,this.changes.length,n),n+=4;for(const r of this.changes)n=r.write(t,n);return t.buffer}static deserialize(e){const t=new Uint8Array(e);let n=0;const r=x.bb(t,n);n+=4;const i=x.bb(t,n);n+=4;const s=x.pJ(t,n);n+=1;const o=x.pJ(t,n);n+=1;const a=[];n=Bt._readSelections(t,n,a);const l=[];n=Bt._readSelections(t,n,l);const c=x.bb(t,n);n+=4;const h=[];for(let u=0;u<c;u++)n=Ot.read(t,n,h);return new Bt(r,i,s,o,a,l,h)}}class Ft{get type(){return 0}get resource(){return h.r.isUri(this.model)?this.model:this.model.uri}constructor(e,t,n,r){this.label=e,this.code=t,this.model=n,this._data=Bt.create(n,r)}toString(){return(this._data instanceof Bt?this._data:Bt.deserialize(this._data)).changes.map((e=>e.toString())).join(", ")}matchesResource(e){return(h.r.isUri(this.model)?this.model:this.model.uri).toString()===e.toString()}setModel(e){this.model=e}canAppend(e){return this.model===e&&this._data instanceof Bt}append(e,t,n,r,i){this._data instanceof Bt&&this._data.append(e,t,n,r,i)}close(){this._data instanceof Bt&&(this._data=this._data.serialize())}open(){this._data instanceof Bt||(this._data=Bt.deserialize(this._data))}undo(){if(h.r.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof Bt&&(this._data=this._data.serialize());const e=Bt.deserialize(this._data);this.model._applyUndo(e.changes,e.beforeEOL,e.beforeVersionId,e.beforeCursorState)}redo(){if(h.r.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof Bt&&(this._data=this._data.serialize());const e=Bt.deserialize(this._data);this.model._applyRedo(e.changes,e.afterEOL,e.afterVersionId,e.afterCursorState)}heapSize(){return this._data instanceof Bt&&(this._data=this._data.serialize()),this._data.byteLength+168}}class Pt{get resources(){return this._editStackElementsArr.map((e=>e.resource))}constructor(e,t,n){this.label=e,this.code=t,this.type=1,this._isOpen=!0,this._editStackElementsArr=n.slice(0),this._editStackElementsMap=new Map;for(const r of this._editStackElementsArr){const e=Dt(r.resource);this._editStackElementsMap.set(e,r)}this._delegate=null}prepareUndoRedo(){if(this._delegate)return this._delegate.prepareUndoRedo(this)}matchesResource(e){const t=Dt(e);return this._editStackElementsMap.has(t)}setModel(e){const t=Dt(h.r.isUri(e)?e:e.uri);this._editStackElementsMap.has(t)&&this._editStackElementsMap.get(t).setModel(e)}canAppend(e){if(!this._isOpen)return!1;const t=Dt(e.uri);if(this._editStackElementsMap.has(t)){return this._editStackElementsMap.get(t).canAppend(e)}return!1}append(e,t,n,r,i){const s=Dt(e.uri);this._editStackElementsMap.get(s).append(e,t,n,r,i)}close(){this._isOpen=!1}open(){}undo(){this._isOpen=!1;for(const e of this._editStackElementsArr)e.undo()}redo(){for(const e of this._editStackElementsArr)e.redo()}heapSize(e){const t=Dt(e);if(this._editStackElementsMap.has(t)){return this._editStackElementsMap.get(t).heapSize()}return 0}split(){return this._editStackElementsArr}toString(){const e=[];for(const t of this._editStackElementsArr)e.push(`${(0,Rt.P8)(t.resource)}: ${t}`);return`{${e.join(", ")}}`}}function Vt(e){return"\n"===e.getEOL()?0:1}function zt(e){return!!e&&(e instanceof Ft||e instanceof Pt)}class jt{constructor(e,t){this._model=e,this._undoRedoService=t}pushStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);zt(e)&&e.close()}popStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);zt(e)&&e.open()}clear(){this._undoRedoService.removeElements(this._model.uri)}_getOrCreateEditStackElement(e,t){const n=this._undoRedoService.getLastElement(this._model.uri);if(zt(n)&&n.canAppend(this._model))return n;const r=new Ft(At.kg("edit","Typing"),"undoredo.textBufferEdit",this._model,e);return this._undoRedoService.pushElement(r,t),r}pushEOL(e){const t=this._getOrCreateEditStackElement(null,void 0);this._model.setEOL(e),t.append(this._model,[],Vt(this._model),this._model.getAlternativeVersionId(),null)}pushEditOperation(e,t,n,r){const i=this._getOrCreateEditStackElement(e,r),s=this._model.applyEdits(t,!0),o=jt._computeCursorState(n,s),a=s.map(((e,t)=>({index:t,textChange:e.textChange})));return a.sort(((e,t)=>e.textChange.oldPosition===t.textChange.oldPosition?e.index-t.index:e.textChange.oldPosition-t.textChange.oldPosition)),i.append(this._model,a.map((e=>e.textChange)),Vt(this._model),this._model.getAlternativeVersionId(),o),o}static _computeCursorState(e,t){try{return e?e(t):null}catch(n){return(0,l.dz)(n),null}}}var qt,Wt=n(6041);class Ut extends i.jG{constructor(){super(...arguments),this._isDisposed=!1}dispose(){super.dispose(),this._isDisposed=!0}assertNotDisposed(){if(this._isDisposed)throw new Error("TextModelPart is disposed!")}}!function(e){e[e.Disabled=0]="Disabled",e[e.EnabledForActive=1]="EnabledForActive",e[e.Enabled=2]="Enabled"}(qt||(qt={}));class $t{constructor(e,t,n,r,i,s){if(this.visibleColumn=e,this.column=t,this.className=n,this.horizontalLine=r,this.forWrappedLinesAfterColumn=i,this.forWrappedLinesBeforeOrAtColumn=s,-1!==e===(-1!==t))throw new Error}}class Ht{constructor(e,t){this.top=e,this.endColumn=t}}class Kt extends Ut{constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t}getLanguageConfiguration(e){return this.languageConfigurationService.getLanguageConfiguration(e)}_computeIndentLevel(e){return function(e,t){let n=0,r=0;const i=e.length;for(;r<i;){const i=e.charCodeAt(r);if(32===i)n++;else{if(9!==i)break;n=n-n%t+t}r++}return r===i?-1:n}(this.textModel.getLineContent(e+1),this.textModel.getOptions().tabSize)}getActiveIndentGuide(e,t,n){this.assertNotDisposed();const r=this.textModel.getLineCount();if(e<1||e>r)throw new l.D7("Illegal value for lineNumber");const i=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,s=Boolean(i&&i.offSide);let o=-2,a=-1,c=-2,h=-1;const u=e=>{if(-1!==o&&(-2===o||o>e-1)){o=-1,a=-1;for(let t=e-2;t>=0;t--){const e=this._computeIndentLevel(t);if(e>=0){o=t,a=e;break}}}if(-2===c){c=-1,h=-1;for(let t=e;t<r;t++){const e=this._computeIndentLevel(t);if(e>=0){c=t,h=e;break}}}};let d=-2,g=-1,f=-2,m=-1;const p=e=>{if(-2===d){d=-1,g=-1;for(let t=e-2;t>=0;t--){const e=this._computeIndentLevel(t);if(e>=0){d=t,g=e;break}}}if(-1!==f&&(-2===f||f<e-1)){f=-1,m=-1;for(let t=e;t<r;t++){const e=this._computeIndentLevel(t);if(e>=0){f=t,m=e;break}}}};let b=0,_=!0,k=0,v=!0,C=0,y=0;for(let l=0;_||v;l++){const i=e-l,o=e+l;l>1&&(i<1||i<t)&&(_=!1),l>1&&(o>r||o>n)&&(v=!1),l>5e4&&(_=!1,v=!1);let f=-1;if(_&&i>=1){const e=this._computeIndentLevel(i-1);e>=0?(c=i-1,h=e,f=Math.ceil(e/this.textModel.getOptions().indentSize)):(u(i),f=this._getIndentLevelForWhitespaceLine(s,a,h))}let L=-1;if(v&&o<=r){const e=this._computeIndentLevel(o-1);e>=0?(d=o-1,g=e,L=Math.ceil(e/this.textModel.getOptions().indentSize)):(p(o),L=this._getIndentLevelForWhitespaceLine(s,g,m))}if(0!==l){if(1===l){if(o<=r&&L>=0&&y+1===L){_=!1,b=o,k=o,C=L;continue}if(i>=1&&f>=0&&f-1===y){v=!1,b=i,k=i,C=f;continue}if(b=e,k=e,C=y,0===C)return{startLineNumber:b,endLineNumber:k,indent:C}}_&&(f>=C?b=i:_=!1),v&&(L>=C?k=o:v=!1)}else y=f}return{startLineNumber:b,endLineNumber:k,indent:C}}getLinesBracketGuides(e,t,n,r){const i=[];for(let c=e;c<=t;c++)i.push([]);const s=!0,o=this.textModel.bracketPairs.getBracketPairsInRangeWithMinIndentation(new m.Q(e,1,t,this.textModel.getLineMaxColumn(t))).toArray();let a;if(n&&o.length>0){const r=(e<=n.lineNumber&&n.lineNumber<=t?o:this.textModel.bracketPairs.getBracketPairsInRange(m.Q.fromPositions(n)).toArray()).filter((e=>m.Q.strictContainsPosition(e.range,n)));a=(0,Wt.Uk)(r,(e=>s))?.range}const l=this.textModel.getOptions().bracketPairColorizationOptions.independentColorPoolPerBracketType,h=new Gt;for(const u of o){if(!u.closingBracketRange)continue;const n=a&&u.range.equalsRange(a);if(!n&&!r.includeInactive)continue;const s=h.getInlineClassName(u.nestingLevel,u.nestingLevelOfEqualBracketType,l)+(r.highlightActive&&n?" "+h.activeClassName:""),o=u.openingBracketRange.getStartPosition(),d=u.closingBracketRange.getStartPosition(),g=r.horizontalGuides===qt.Enabled||r.horizontalGuides===qt.EnabledForActive&&n;if(u.range.startLineNumber===u.range.endLineNumber){g&&i[u.range.startLineNumber-e].push(new $t(-1,u.openingBracketRange.getEndPosition().column,s,new Ht(!1,d.column),-1,-1));continue}const f=this.getVisibleColumnFromPosition(d),m=this.getVisibleColumnFromPosition(u.openingBracketRange.getStartPosition()),p=Math.min(m,f,u.minVisibleColumnIndentation+1);let b=!1;c.HG(this.textModel.getLineContent(u.closingBracketRange.startLineNumber))<u.closingBracketRange.startColumn-1&&(b=!0);const _=Math.max(o.lineNumber,e),k=Math.min(d.lineNumber,t),v=b?1:0;for(let t=_;t<k+v;t++)i[t-e].push(new $t(p,-1,s,null,t===o.lineNumber?o.column:-1,t===d.lineNumber?d.column:-1));g&&(o.lineNumber>=e&&m>p&&i[o.lineNumber-e].push(new $t(p,-1,s,new Ht(!1,o.column),-1,-1)),d.lineNumber<=t&&f>p&&i[d.lineNumber-e].push(new $t(p,-1,s,new Ht(!b,d.column),-1,-1)))}for(const c of i)c.sort(((e,t)=>e.visibleColumn-t.visibleColumn));return i}getVisibleColumnFromPosition(e){return d.visibleColumnFromColumn(this.textModel.getLineContent(e.lineNumber),e.column,this.textModel.getOptions().tabSize)+1}getLinesIndentGuides(e,t){this.assertNotDisposed();const n=this.textModel.getLineCount();if(e<1||e>n)throw new Error("Illegal value for startLineNumber");if(t<1||t>n)throw new Error("Illegal value for endLineNumber");const r=this.textModel.getOptions(),i=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,s=Boolean(i&&i.offSide),o=new Array(t-e+1);let a=-2,l=-1,c=-2,h=-1;for(let u=e;u<=t;u++){const t=u-e,i=this._computeIndentLevel(u-1);if(i>=0)a=u-1,l=i,o[t]=Math.ceil(i/r.indentSize);else{if(-2===a){a=-1,l=-1;for(let e=u-2;e>=0;e--){const t=this._computeIndentLevel(e);if(t>=0){a=e,l=t;break}}}if(-1!==c&&(-2===c||c<u-1)){c=-1,h=-1;for(let e=u;e<n;e++){const t=this._computeIndentLevel(e);if(t>=0){c=e,h=t;break}}}o[t]=this._getIndentLevelForWhitespaceLine(s,l,h)}}return o}_getIndentLevelForWhitespaceLine(e,t,n){const r=this.textModel.getOptions();return-1===t||-1===n?0:t<n?1+Math.floor(t/r.indentSize):t===n||e?Math.ceil(n/r.indentSize):1+Math.floor(n/r.indentSize)}}class Gt{constructor(){this.activeClassName="indent-active"}getInlineClassName(e,t,n){return this.getInlineClassNameOfLevel(n?t:e)}getInlineClassNameOfLevel(e){return"bracket-indent-guide lvl-"+e%30}}class Qt{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}}function Jt(e,t,n,r,i){let s;for(i.spacesDiff=0,i.looksLikeAlignment=!1,s=0;s<t&&s<r;s++){if(e.charCodeAt(s)!==n.charCodeAt(s))break}let o=0,a=0;for(let d=s;d<t;d++){32===e.charCodeAt(d)?o++:a++}let l=0,c=0;for(let d=s;d<r;d++){32===n.charCodeAt(d)?l++:c++}if(o>0&&a>0)return;if(l>0&&c>0)return;const h=Math.abs(a-c),u=Math.abs(o-l);if(0===h)return i.spacesDiff=u,void(u>0&&0<=l-1&&l-1<e.length&&l<n.length&&32!==n.charCodeAt(l)&&32===e.charCodeAt(l-1)&&44===e.charCodeAt(e.length-1)&&(i.looksLikeAlignment=!0));u%h!==0||(i.spacesDiff=u/h)}function Xt(e,t,n){const r=Math.min(e.getLineCount(),1e4);let i=0,s=0,o="",a=0;const l=[2,4,6,8,3,5,7],c=[0,0,0,0,0,0,0,0,0],h=new Qt;for(let g=1;g<=r;g++){const r=e.getLineLength(g),l=e.getLineContent(g),u=r<=65536;let d=!1,f=0,m=0,p=0;for(let t=0,n=r;t<n;t++){const n=u?l.charCodeAt(t):e.getLineCharCode(g,t);if(9===n)p++;else{if(32!==n){d=!0,f=t;break}m++}}if(!d)continue;if(p>0?i++:m>1&&s++,Jt(o,a,l,f,h),h.looksLikeAlignment&&(!n||t!==h.spacesDiff))continue;const b=h.spacesDiff;b<=8&&c[b]++,o=l,a=f}let u=n;i!==s&&(u=i<s);let d=t;if(u){let e=u?0:.1*r;l.forEach((t=>{const n=c[t];n>e&&(e=n,d=t)})),4===d&&c[4]>0&&c[2]>0&&c[2]>=c[4]/2&&(d=2)}return{insertSpaces:u,tabSize:d}}function Yt(e){return(1&e.metadata)>>>0}function Zt(e,t){e.metadata=254&e.metadata|t}function en(e){return(2&e.metadata)>>>1===1}function tn(e,t){e.metadata=253&e.metadata|(t?1:0)<<1}function nn(e){return(4&e.metadata)>>>2===1}function rn(e,t){e.metadata=251&e.metadata|(t?1:0)<<2}function sn(e){return(64&e.metadata)>>>6===1}function on(e,t){e.metadata=191&e.metadata|(t?1:0)<<6}function an(e,t){e.metadata=231&e.metadata|t<<3}function ln(e,t){e.metadata=223&e.metadata|(t?1:0)<<5}class cn{constructor(e,t,n){this.metadata=0,this.parent=this,this.left=this,this.right=this,Zt(this,1),this.start=t,this.end=n,this.delta=0,this.maxEnd=n,this.id=e,this.ownerId=0,this.options=null,rn(this,!1),on(this,!1),an(this,1),ln(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=null,tn(this,!1)}reset(e,t,n,r){this.start=t,this.end=n,this.maxEnd=n,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=r}setOptions(e){this.options=e;const t=this.options.className;rn(this,"squiggly-error"===t||"squiggly-warning"===t||"squiggly-info"===t),on(this,null!==this.options.glyphMarginClassName),an(this,this.options.stickiness),ln(this,this.options.collapseOnReplaceEdit)}setCachedOffsets(e,t,n){this.cachedVersionId!==n&&(this.range=null),this.cachedVersionId=n,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t}detach(){this.parent=null,this.left=null,this.right=null}}const hn=new cn(null,0,0);hn.parent=hn,hn.left=hn,hn.right=hn,Zt(hn,0);class un{constructor(){this.root=hn,this.requestNormalizeDelta=!1}intervalSearch(e,t,n,r,i,s){return this.root===hn?[]:function(e,t,n,r,i,s,o){let a=e.root,l=0,c=0,h=0,u=0;const d=[];let g=0;for(;a!==hn;)if(en(a))tn(a.left,!1),tn(a.right,!1),a===a.parent.right&&(l-=a.parent.delta),a=a.parent;else{if(!en(a.left)){if(c=l+a.maxEnd,c<t){tn(a,!0);continue}if(a.left!==hn){a=a.left;continue}}if(h=l+a.start,h>n)tn(a,!0);else{if(u=l+a.end,u>=t){a.setCachedOffsets(h,u,s);let e=!0;r&&a.ownerId&&a.ownerId!==r&&(e=!1),i&&nn(a)&&(e=!1),o&&!sn(a)&&(e=!1),e&&(d[g++]=a)}tn(a,!0),a.right===hn||en(a.right)||(l+=a.delta,a=a.right)}}return tn(e.root,!1),d}(this,e,t,n,r,i,s)}search(e,t,n,r){return this.root===hn?[]:function(e,t,n,r,i){let s=e.root,o=0,a=0,l=0;const c=[];let h=0;for(;s!==hn;){if(en(s)){tn(s.left,!1),tn(s.right,!1),s===s.parent.right&&(o-=s.parent.delta),s=s.parent;continue}if(s.left!==hn&&!en(s.left)){s=s.left;continue}a=o+s.start,l=o+s.end,s.setCachedOffsets(a,l,r);let e=!0;t&&s.ownerId&&s.ownerId!==t&&(e=!1),n&&nn(s)&&(e=!1),i&&!sn(s)&&(e=!1),e&&(c[h++]=s),tn(s,!0),s.right===hn||en(s.right)||(o+=s.delta,s=s.right)}return tn(e.root,!1),c}(this,e,t,n,r)}collectNodesFromOwner(e){return function(e,t){let n=e.root;const r=[];let i=0;for(;n!==hn;)en(n)?(tn(n.left,!1),tn(n.right,!1),n=n.parent):n.left===hn||en(n.left)?(n.ownerId===t&&(r[i++]=n),tn(n,!0),n.right===hn||en(n.right)||(n=n.right)):n=n.left;return tn(e.root,!1),r}(this,e)}collectNodesPostOrder(){return function(e){let t=e.root;const n=[];let r=0;for(;t!==hn;)en(t)?(tn(t.left,!1),tn(t.right,!1),t=t.parent):t.left===hn||en(t.left)?t.right===hn||en(t.right)?(n[r++]=t,tn(t,!0)):t=t.right:t=t.left;return tn(e.root,!1),n}(this)}insert(e){fn(this,e),this._normalizeDeltaIfNecessary()}delete(e){mn(this,e),this._normalizeDeltaIfNecessary()}resolveNode(e,t){const n=e;let r=0;for(;e!==this.root;)e===e.parent.right&&(r+=e.parent.delta),e=e.parent;const i=n.start+r,s=n.end+r;n.setCachedOffsets(i,s,t)}acceptReplace(e,t,n,r){const i=function(e,t,n){let r=e.root,i=0,s=0,o=0,a=0;const l=[];let c=0;for(;r!==hn;)if(en(r))tn(r.left,!1),tn(r.right,!1),r===r.parent.right&&(i-=r.parent.delta),r=r.parent;else{if(!en(r.left)){if(s=i+r.maxEnd,s<t){tn(r,!0);continue}if(r.left!==hn){r=r.left;continue}}o=i+r.start,o>n?tn(r,!0):(a=i+r.end,a>=t&&(r.setCachedOffsets(o,a,0),l[c++]=r),tn(r,!0),r.right===hn||en(r.right)||(i+=r.delta,r=r.right))}return tn(e.root,!1),l}(this,e,e+t);for(let s=0,o=i.length;s<o;s++){mn(this,i[s])}this._normalizeDeltaIfNecessary(),function(e,t,n,r){let i=e.root,s=0,o=0,a=0;const l=r-(n-t);for(;i!==hn;)if(en(i))tn(i.left,!1),tn(i.right,!1),i===i.parent.right&&(s-=i.parent.delta),vn(i),i=i.parent;else{if(!en(i.left)){if(o=s+i.maxEnd,o<t){tn(i,!0);continue}if(i.left!==hn){i=i.left;continue}}a=s+i.start,a>n?(i.start+=l,i.end+=l,i.delta+=l,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0),tn(i,!0)):(tn(i,!0),i.right===hn||en(i.right)||(s+=i.delta,i=i.right))}tn(e.root,!1)}(this,e,e+t,n),this._normalizeDeltaIfNecessary();for(let s=0,o=i.length;s<o;s++){const o=i[s];o.start=o.cachedAbsoluteStart,o.end=o.cachedAbsoluteEnd,gn(o,e,e+t,n,r),o.maxEnd=o.end,fn(this,o)}this._normalizeDeltaIfNecessary()}_normalizeDeltaIfNecessary(){this.requestNormalizeDelta&&(this.requestNormalizeDelta=!1,function(e){let t=e.root,n=0;for(;t!==hn;)t.left===hn||en(t.left)?t.right===hn||en(t.right)?(t.start=n+t.start,t.end=n+t.end,t.delta=0,vn(t),tn(t,!0),tn(t.left,!1),tn(t.right,!1),t===t.parent.right&&(n-=t.parent.delta),t=t.parent):(n+=t.delta,t=t.right):t=t.left;tn(e.root,!1)}(this))}}function dn(e,t,n,r){return e<n||!(e>n)&&(1!==r&&(2===r||t))}function gn(e,t,n,r,i){const s=function(e){return(24&e.metadata)>>>3}(e),o=0===s||2===s,a=1===s||2===s,l=n-t,c=r,h=Math.min(l,c),u=e.start;let d=!1;const g=e.end;let f=!1;t<=u&&g<=n&&function(e){return(32&e.metadata)>>>5===1}(e)&&(e.start=t,d=!0,e.end=t,f=!0);{const e=i?1:l>0?2:0;!d&&dn(u,o,t,e)&&(d=!0),!f&&dn(g,a,t,e)&&(f=!0)}if(h>0&&!i){const e=l>c?2:0;!d&&dn(u,o,t+h,e)&&(d=!0),!f&&dn(g,a,t+h,e)&&(f=!0)}{const r=i?1:0;!d&&dn(u,o,n,r)&&(e.start=t+c,d=!0),!f&&dn(g,a,n,r)&&(e.end=t+c,f=!0)}const m=c-l;d||(e.start=Math.max(0,u+m)),f||(e.end=Math.max(0,g+m)),e.start>e.end&&(e.end=e.start)}function fn(e,t){if(e.root===hn)return t.parent=hn,t.left=hn,t.right=hn,Zt(t,0),e.root=t,e.root;!function(e,t){let n=0,r=e.root;const i=t.start,s=t.end;for(;;){if(yn(i,s,r.start+n,r.end+n)<0){if(r.left===hn){t.start-=n,t.end-=n,t.maxEnd-=n,r.left=t;break}r=r.left}else{if(r.right===hn){t.start-=n+r.delta,t.end-=n+r.delta,t.maxEnd-=n+r.delta,r.right=t;break}n+=r.delta,r=r.right}}t.parent=r,t.left=hn,t.right=hn,Zt(t,1)}(e,t),Cn(t.parent);let n=t;for(;n!==e.root&&1===Yt(n.parent);)if(n.parent===n.parent.parent.left){const t=n.parent.parent.right;1===Yt(t)?(Zt(n.parent,0),Zt(t,0),Zt(n.parent.parent,1),n=n.parent.parent):(n===n.parent.right&&(n=n.parent,bn(e,n)),Zt(n.parent,0),Zt(n.parent.parent,1),_n(e,n.parent.parent))}else{const t=n.parent.parent.left;1===Yt(t)?(Zt(n.parent,0),Zt(t,0),Zt(n.parent.parent,1),n=n.parent.parent):(n===n.parent.left&&(n=n.parent,_n(e,n)),Zt(n.parent,0),Zt(n.parent.parent,1),bn(e,n.parent.parent))}return Zt(e.root,0),t}function mn(e,t){let n,r;if(t.left===hn?(n=t.right,r=t,n.delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta):t.right===hn?(n=t.left,r=t):(r=function(e){for(;e.left!==hn;)e=e.left;return e}(t.right),n=r.right,n.start+=r.delta,n.end+=r.delta,n.delta+=r.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),r.start+=t.delta,r.end+=t.delta,r.delta=t.delta,(r.delta<-1073741824||r.delta>1073741824)&&(e.requestNormalizeDelta=!0)),r===e.root)return e.root=n,Zt(n,0),t.detach(),pn(),vn(n),void(e.root.parent=hn);const i=1===Yt(r);if(r===r.parent.left?r.parent.left=n:r.parent.right=n,r===t?n.parent=r.parent:(r.parent===t?n.parent=r:n.parent=r.parent,r.left=t.left,r.right=t.right,r.parent=t.parent,Zt(r,Yt(t)),t===e.root?e.root=r:t===t.parent.left?t.parent.left=r:t.parent.right=r,r.left!==hn&&(r.left.parent=r),r.right!==hn&&(r.right.parent=r)),t.detach(),i)return Cn(n.parent),r!==t&&(Cn(r),Cn(r.parent)),void pn();let s;for(Cn(n),Cn(n.parent),r!==t&&(Cn(r),Cn(r.parent));n!==e.root&&0===Yt(n);)n===n.parent.left?(s=n.parent.right,1===Yt(s)&&(Zt(s,0),Zt(n.parent,1),bn(e,n.parent),s=n.parent.right),0===Yt(s.left)&&0===Yt(s.right)?(Zt(s,1),n=n.parent):(0===Yt(s.right)&&(Zt(s.left,0),Zt(s,1),_n(e,s),s=n.parent.right),Zt(s,Yt(n.parent)),Zt(n.parent,0),Zt(s.right,0),bn(e,n.parent),n=e.root)):(s=n.parent.left,1===Yt(s)&&(Zt(s,0),Zt(n.parent,1),_n(e,n.parent),s=n.parent.left),0===Yt(s.left)&&0===Yt(s.right)?(Zt(s,1),n=n.parent):(0===Yt(s.left)&&(Zt(s.right,0),Zt(s,1),bn(e,s),s=n.parent.left),Zt(s,Yt(n.parent)),Zt(n.parent,0),Zt(s.left,0),_n(e,n.parent),n=e.root));Zt(n,0),pn()}function pn(){hn.parent=hn,hn.delta=0,hn.start=0,hn.end=0}function bn(e,t){const n=t.right;n.delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta,t.right=n.left,n.left!==hn&&(n.left.parent=t),n.parent=t.parent,t.parent===hn?e.root=n:t===t.parent.left?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n,vn(t),vn(n)}function _n(e,t){const n=t.left;t.delta-=n.delta,(t.delta<-1073741824||t.delta>1073741824)&&(e.requestNormalizeDelta=!0),t.start-=n.delta,t.end-=n.delta,t.left=n.right,n.right!==hn&&(n.right.parent=t),n.parent=t.parent,t.parent===hn?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n,vn(t),vn(n)}function kn(e){let t=e.end;if(e.left!==hn){const n=e.left.maxEnd;n>t&&(t=n)}if(e.right!==hn){const n=e.right.maxEnd+e.delta;n>t&&(t=n)}return t}function vn(e){e.maxEnd=kn(e)}function Cn(e){for(;e!==hn;){const t=kn(e);if(e.maxEnd===t)return;e.maxEnd=t,e=e.parent}}function yn(e,t,n,r){return e===n?t-r:e-n}class Ln{constructor(e,t){this.piece=e,this.color=t,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}next(){if(this.right!==wn)return Sn(this.right);let e=this;for(;e.parent!==wn&&e.parent.left!==e;)e=e.parent;return e.parent===wn?wn:e.parent}prev(){if(this.left!==wn)return xn(this.left);let e=this;for(;e.parent!==wn&&e.parent.right!==e;)e=e.parent;return e.parent===wn?wn:e.parent}detach(){this.parent=null,this.left=null,this.right=null}}const wn=new Ln(null,0);function Sn(e){for(;e.left!==wn;)e=e.left;return e}function xn(e){for(;e.right!==wn;)e=e.right;return e}function En(e){return e===wn?0:e.size_left+e.piece.length+En(e.right)}function Nn(e){return e===wn?0:e.lf_left+e.piece.lineFeedCnt+Nn(e.right)}function Tn(){wn.parent=wn}function An(e,t){const n=t.right;n.size_left+=t.size_left+(t.piece?t.piece.length:0),n.lf_left+=t.lf_left+(t.piece?t.piece.lineFeedCnt:0),t.right=n.left,n.left!==wn&&(n.left.parent=t),n.parent=t.parent,t.parent===wn?e.root=n:t.parent.left===t?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n}function In(e,t){const n=t.left;t.left=n.right,n.right!==wn&&(n.right.parent=t),n.parent=t.parent,t.size_left-=n.size_left+(n.piece?n.piece.length:0),t.lf_left-=n.lf_left+(n.piece?n.piece.lineFeedCnt:0),t.parent===wn?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n}function On(e,t){let n,r;if(t.left===wn?(r=t,n=r.right):t.right===wn?(r=t,n=r.left):(r=Sn(t.right),n=r.right),r===e.root)return e.root=n,n.color=0,t.detach(),Tn(),void(e.root.parent=wn);const i=1===r.color;if(r===r.parent.left?r.parent.left=n:r.parent.right=n,r===t?(n.parent=r.parent,Dn(e,n)):(r.parent===t?n.parent=r:n.parent=r.parent,Dn(e,n),r.left=t.left,r.right=t.right,r.parent=t.parent,r.color=t.color,t===e.root?e.root=r:t===t.parent.left?t.parent.left=r:t.parent.right=r,r.left!==wn&&(r.left.parent=r),r.right!==wn&&(r.right.parent=r),r.size_left=t.size_left,r.lf_left=t.lf_left,Dn(e,r)),t.detach(),n.parent.left===n){const t=En(n),r=Nn(n);if(t!==n.parent.size_left||r!==n.parent.lf_left){const i=t-n.parent.size_left,s=r-n.parent.lf_left;n.parent.size_left=t,n.parent.lf_left=r,Rn(e,n.parent,i,s)}}if(Dn(e,n.parent),i)return void Tn();let s;for(;n!==e.root&&0===n.color;)n===n.parent.left?(s=n.parent.right,1===s.color&&(s.color=0,n.parent.color=1,An(e,n.parent),s=n.parent.right),0===s.left.color&&0===s.right.color?(s.color=1,n=n.parent):(0===s.right.color&&(s.left.color=0,s.color=1,In(e,s),s=n.parent.right),s.color=n.parent.color,n.parent.color=0,s.right.color=0,An(e,n.parent),n=e.root)):(s=n.parent.left,1===s.color&&(s.color=0,n.parent.color=1,In(e,n.parent),s=n.parent.left),0===s.left.color&&0===s.right.color?(s.color=1,n=n.parent):(0===s.left.color&&(s.right.color=0,s.color=1,An(e,s),s=n.parent.left),s.color=n.parent.color,n.parent.color=0,s.left.color=0,In(e,n.parent),n=e.root));n.color=0,Tn()}function Mn(e,t){for(Dn(e,t);t!==e.root&&1===t.parent.color;)if(t.parent===t.parent.parent.left){const n=t.parent.parent.right;1===n.color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.right&&An(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,In(e,t.parent.parent))}else{const n=t.parent.parent.left;1===n.color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.left&&In(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,An(e,t.parent.parent))}e.root.color=0}function Rn(e,t,n,r){for(;t!==e.root&&t!==wn;)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=r),t=t.parent}function Dn(e,t){let n=0,r=0;if(t!==e.root){for(;t!==e.root&&t===t.parent.right;)t=t.parent;if(t!==e.root)for(n=En((t=t.parent).left)-t.size_left,r=Nn(t.left)-t.lf_left,t.size_left+=n,t.lf_left+=r;t!==e.root&&(0!==n||0!==r);)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=r),t=t.parent}}wn.parent=wn,wn.left=wn,wn.right=wn,wn.color=0;var Bn=n(7729);const Fn=65535;function Pn(e){let t;return t=e[e.length-1]<65536?new Uint16Array(e.length):new Uint32Array(e.length),t.set(e,0),t}class Vn{constructor(e,t,n,r,i){this.lineStarts=e,this.cr=t,this.lf=n,this.crlf=r,this.isBasicASCII=i}}function zn(e,t=!0){const n=[0];let r=1;for(let i=0,s=e.length;i<s;i++){const t=e.charCodeAt(i);13===t?i+1<s&&10===e.charCodeAt(i+1)?(n[r++]=i+2,i++):n[r++]=i+1:10===t&&(n[r++]=i+1)}return t?Pn(n):n}class jn{constructor(e,t,n,r,i){this.bufferIndex=e,this.start=t,this.end=n,this.lineFeedCnt=r,this.length=i}}class qn{constructor(e,t){this.buffer=e,this.lineStarts=t}}class Wn{constructor(e,t){this._pieces=[],this._tree=e,this._BOM=t,this._index=0,e.root!==wn&&e.iterate(e.root,(e=>(e!==wn&&this._pieces.push(e.piece),!0)))}read(){return 0===this._pieces.length?0===this._index?(this._index++,this._BOM):null:this._index>this._pieces.length-1?null:0===this._index?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])}}class Un{constructor(e){this._limit=e,this._cache=[]}get(e){for(let t=this._cache.length-1;t>=0;t--){const n=this._cache[t];if(n.nodeStartOffset<=e&&n.nodeStartOffset+n.node.piece.length>=e)return n}return null}get2(e){for(let t=this._cache.length-1;t>=0;t--){const n=this._cache[t];if(n.nodeStartLineNumber&&n.nodeStartLineNumber<e&&n.nodeStartLineNumber+n.node.piece.lineFeedCnt>=e)return n}return null}set(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)}validate(e){let t=!1;const n=this._cache;for(let r=0;r<n.length;r++){const i=n[r];(null===i.node.parent||i.nodeStartOffset>=e)&&(n[r]=null,t=!0)}if(t){const e=[];for(const t of n)null!==t&&e.push(t);this._cache=e}}}class $n{constructor(e,t,n){this.create(e,t,n)}create(e,t,n){this._buffers=[new qn("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=wn,this._lineCnt=1,this._length=0,this._EOL=t,this._EOLLength=t.length,this._EOLNormalized=n;let r=null;for(let i=0,s=e.length;i<s;i++)if(e[i].buffer.length>0){e[i].lineStarts||(e[i].lineStarts=zn(e[i].buffer));const t=new jn(i+1,{line:0,column:0},{line:e[i].lineStarts.length-1,column:e[i].buffer.length-e[i].lineStarts[e[i].lineStarts.length-1]},e[i].lineStarts.length-1,e[i].buffer.length);this._buffers.push(e[i]),r=this.rbInsertRight(r,t)}this._searchCache=new Un(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()}normalizeEOL(e){const t=Fn,n=t-Math.floor(21845),r=2*n;let i="",s=0;const o=[];if(this.iterate(this.root,(t=>{const a=this.getNodeContent(t),l=a.length;if(s<=n||s+l<r)return i+=a,s+=l,!0;const c=i.replace(/\r\n|\r|\n/g,e);return o.push(new qn(c,zn(c))),i=a,s=l,!0})),s>0){const t=i.replace(/\r\n|\r|\n/g,e);o.push(new qn(t,zn(t)))}this.create(o,e,!0)}getEOL(){return this._EOL}setEOL(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)}createSnapshot(e){return new Wn(this,e)}getOffsetAt(e,t){let n=0,r=this.root;for(;r!==wn;)if(r.left!==wn&&r.lf_left+1>=e)r=r.left;else{if(r.lf_left+r.piece.lineFeedCnt+1>=e){n+=r.size_left;return n+(this.getAccumulatedValue(r,e-r.lf_left-2)+t-1)}e-=r.lf_left+r.piece.lineFeedCnt,n+=r.size_left+r.piece.length,r=r.right}return n}getPositionAt(e){e=Math.floor(e),e=Math.max(0,e);let t=this.root,n=0;const r=e;for(;t!==wn;)if(0!==t.size_left&&t.size_left>=e)t=t.left;else{if(t.size_left+t.piece.length>=e){const i=this.getIndexOf(t,e-t.size_left);if(n+=t.lf_left+i.index,0===i.index){const e=r-this.getOffsetAt(n+1,1);return new f.y(n+1,e+1)}return new f.y(n+1,i.remainder+1)}if(e-=t.size_left+t.piece.length,n+=t.lf_left+t.piece.lineFeedCnt,t.right===wn){const t=r-e-this.getOffsetAt(n+1,1);return new f.y(n+1,t+1)}t=t.right}return new f.y(1,1)}getValueInRange(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";const n=this.nodeAt2(e.startLineNumber,e.startColumn),r=this.nodeAt2(e.endLineNumber,e.endColumn),i=this.getValueInRange2(n,r);return t?t===this._EOL&&this._EOLNormalized&&t===this.getEOL()&&this._EOLNormalized?i:i.replace(/\r\n|\r|\n/g,t):i}getValueInRange2(e,t){if(e.node===t.node){const n=e.node,r=this._buffers[n.piece.bufferIndex].buffer,i=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return r.substring(i+e.remainder,i+t.remainder)}let n=e.node;const r=this._buffers[n.piece.bufferIndex].buffer,i=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);let s=r.substring(i+e.remainder,i+n.piece.length);for(n=n.next();n!==wn;){const e=this._buffers[n.piece.bufferIndex].buffer,r=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);if(n===t.node){s+=e.substring(r,r+t.remainder);break}s+=e.substr(r,n.piece.length),n=n.next()}return s}getLinesContent(){const e=[];let t=0,n="",r=!1;return this.iterate(this.root,(i=>{if(i===wn)return!0;const s=i.piece;let o=s.length;if(0===o)return!0;const a=this._buffers[s.bufferIndex].buffer,l=this._buffers[s.bufferIndex].lineStarts,c=s.start.line,h=s.end.line;let u=l[c]+s.start.column;if(r&&(10===a.charCodeAt(u)&&(u++,o--),e[t++]=n,n="",r=!1,0===o))return!0;if(c===h)return this._EOLNormalized||13!==a.charCodeAt(u+o-1)?n+=a.substr(u,o):(r=!0,n+=a.substr(u,o-1)),!0;n+=this._EOLNormalized?a.substring(u,Math.max(u,l[c+1]-this._EOLLength)):a.substring(u,l[c+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=n;for(let r=c+1;r<h;r++)n=this._EOLNormalized?a.substring(l[r],l[r+1]-this._EOLLength):a.substring(l[r],l[r+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=n;return this._EOLNormalized||13!==a.charCodeAt(l[h]+s.end.column-1)?n=a.substr(l[h],s.end.column):(r=!0,0===s.end.column?t--:n=a.substr(l[h],s.end.column-1)),!0})),r&&(e[t++]=n,n=""),e[t++]=n,e}getLength(){return this._length}getLineCount(){return this._lineCnt}getLineContent(e){return this._lastVisitedLine.lineNumber===e||(this._lastVisitedLine.lineNumber=e,e===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(e):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(e,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(e).replace(/(\r\n|\r|\n)$/,"")),this._lastVisitedLine.value}_getCharCode(e){if(e.remainder===e.node.piece.length){const t=e.node.next();if(!t)return 0;const n=this._buffers[t.piece.bufferIndex],r=this.offsetInBuffer(t.piece.bufferIndex,t.piece.start);return n.buffer.charCodeAt(r)}{const t=this._buffers[e.node.piece.bufferIndex],n=this.offsetInBuffer(e.node.piece.bufferIndex,e.node.piece.start)+e.remainder;return t.buffer.charCodeAt(n)}}getLineCharCode(e,t){const n=this.nodeAt2(e,t+1);return this._getCharCode(n)}getLineLength(e){if(e===this.getLineCount()){const t=this.getOffsetAt(e,1);return this.getLength()-t}return this.getOffsetAt(e+1,1)-this.getOffsetAt(e,1)-this._EOLLength}findMatchesInNode(e,t,n,r,i,s,o,a,l,c,h){const u=this._buffers[e.piece.bufferIndex],d=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start),g=this.offsetInBuffer(e.piece.bufferIndex,i),f=this.offsetInBuffer(e.piece.bufferIndex,s);let p;const b={line:0,column:0};let _,k;t._wordSeparators?(_=u.buffer.substring(g,f),k=e=>e+g,t.reset(0)):(_=u.buffer,k=e=>e,t.reset(g));do{if(p=t.next(_),p){if(k(p.index)>=f)return c;this.positionInBuffer(e,k(p.index)-d,b);const t=this.getLineFeedCnt(e.piece.bufferIndex,i,b),s=b.line===i.line?b.column-i.column+r:b.column+1,o=s+p[0].length;if(h[c++]=(0,Bn.dr)(new m.Q(n+t,s,n+t,o),p,a),k(p.index)+p[0].length>=f)return c;if(c>=l)return c}}while(p);return c}findMatchesLineByLine(e,t,n,r){const i=[];let s=0;const o=new Bn.W5(t.wordSeparators,t.regex);let a=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===a)return[];const l=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===l)return[];let c=this.positionInBuffer(a.node,a.remainder);const h=this.positionInBuffer(l.node,l.remainder);if(a.node===l.node)return this.findMatchesInNode(a.node,o,e.startLineNumber,e.startColumn,c,h,t,n,r,s,i),i;let u=e.startLineNumber,d=a.node;for(;d!==l.node;){const l=this.getLineFeedCnt(d.piece.bufferIndex,c,d.piece.end);if(l>=1){const a=this._buffers[d.piece.bufferIndex].lineStarts,h=this.offsetInBuffer(d.piece.bufferIndex,d.piece.start),g=a[c.line+l],f=u===e.startLineNumber?e.startColumn:1;if(s=this.findMatchesInNode(d,o,u,f,c,this.positionInBuffer(d,g-h),t,n,r,s,i),s>=r)return i;u+=l}const h=u===e.startLineNumber?e.startColumn-1:0;if(u===e.endLineNumber){const a=this.getLineContent(u).substring(h,e.endColumn-1);return s=this._findMatchesInLine(t,o,a,e.endLineNumber,h,s,i,n,r),i}if(s=this._findMatchesInLine(t,o,this.getLineContent(u).substr(h),u,h,s,i,n,r),s>=r)return i;u++,a=this.nodeAt2(u,1),d=a.node,c=this.positionInBuffer(a.node,a.remainder)}if(u===e.endLineNumber){const a=u===e.startLineNumber?e.startColumn-1:0,l=this.getLineContent(u).substring(a,e.endColumn-1);return s=this._findMatchesInLine(t,o,l,e.endLineNumber,a,s,i,n,r),i}const g=u===e.startLineNumber?e.startColumn:1;return s=this.findMatchesInNode(l.node,o,u,g,c,h,t,n,r,s,i),i}_findMatchesInLine(e,t,n,r,i,s,o,a,l){const c=e.wordSeparators;if(!a&&e.simpleSearch){const t=e.simpleSearch,a=t.length,h=n.length;let u=-a;for(;-1!==(u=n.indexOf(t,u+a));)if((!c||(0,Bn.wC)(c,n,h,u,a))&&(o[s++]=new me.Dg(new m.Q(r,u+1+i,r,u+1+a+i),null),s>=l))return s;return s}let h;t.reset(0);do{if(h=t.next(n),h&&(o[s++]=(0,Bn.dr)(new m.Q(r,h.index+1+i,r,h.index+1+h[0].length+i),h,a),s>=l))return s}while(h);return s}insert(e,t,n=!1){if(this._EOLNormalized=this._EOLNormalized&&n,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==wn){const{node:n,remainder:r,nodeStartOffset:i}=this.nodeAt(e),s=n.piece,o=s.bufferIndex,a=this.positionInBuffer(n,r);if(0===n.piece.bufferIndex&&s.end.line===this._lastChangeBufferPos.line&&s.end.column===this._lastChangeBufferPos.column&&i+s.length===e&&t.length<Fn)return this.appendToNode(n,t),void this.computeBufferMetadata();if(i===e)this.insertContentToNodeLeft(t,n),this._searchCache.validate(e);else if(i+n.piece.length>e){const e=[];let i=new jn(s.bufferIndex,a,s.end,this.getLineFeedCnt(s.bufferIndex,a,s.end),this.offsetInBuffer(o,s.end)-this.offsetInBuffer(o,a));if(this.shouldCheckCRLF()&&this.endWithCR(t)){if(10===this.nodeCharCodeAt(n,r)){const e={line:i.start.line+1,column:0};i=new jn(i.bufferIndex,e,i.end,this.getLineFeedCnt(i.bufferIndex,e,i.end),i.length-1),t+="\n"}}if(this.shouldCheckCRLF()&&this.startWithLF(t)){if(13===this.nodeCharCodeAt(n,r-1)){const i=this.positionInBuffer(n,r-1);this.deleteNodeTail(n,i),t="\r"+t,0===n.piece.length&&e.push(n)}else this.deleteNodeTail(n,a)}else this.deleteNodeTail(n,a);const l=this.createNewPieces(t);i.length>0&&this.rbInsertRight(n,i);let c=n;for(let t=0;t<l.length;t++)c=this.rbInsertRight(c,l[t]);this.deleteNodes(e)}else this.insertContentToNodeRight(t,n)}else{const e=this.createNewPieces(t);let n=this.rbInsertLeft(null,e[0]);for(let t=1;t<e.length;t++)n=this.rbInsertRight(n,e[t])}this.computeBufferMetadata()}delete(e,t){if(this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",t<=0||this.root===wn)return;const n=this.nodeAt(e),r=this.nodeAt(e+t),i=n.node,s=r.node;if(i===s){const s=this.positionInBuffer(i,n.remainder),o=this.positionInBuffer(i,r.remainder);if(n.nodeStartOffset===e){if(t===i.piece.length){const e=i.next();return On(this,i),this.validateCRLFWithPrevNode(e),void this.computeBufferMetadata()}return this.deleteNodeHead(i,o),this._searchCache.validate(e),this.validateCRLFWithPrevNode(i),void this.computeBufferMetadata()}return n.nodeStartOffset+i.piece.length===e+t?(this.deleteNodeTail(i,s),this.validateCRLFWithNextNode(i),void this.computeBufferMetadata()):(this.shrinkNode(i,s,o),void this.computeBufferMetadata())}const o=[],a=this.positionInBuffer(i,n.remainder);this.deleteNodeTail(i,a),this._searchCache.validate(e),0===i.piece.length&&o.push(i);const l=this.positionInBuffer(s,r.remainder);this.deleteNodeHead(s,l),0===s.piece.length&&o.push(s);for(let h=i.next();h!==wn&&h!==s;h=h.next())o.push(h);const c=0===i.piece.length?i.prev():i;this.deleteNodes(o),this.validateCRLFWithNextNode(c),this.computeBufferMetadata()}insertContentToNodeLeft(e,t){const n=[];if(this.shouldCheckCRLF()&&this.endWithCR(e)&&this.startWithLF(t)){const r=t.piece,i={line:r.start.line+1,column:0},s=new jn(r.bufferIndex,i,r.end,this.getLineFeedCnt(r.bufferIndex,i,r.end),r.length-1);t.piece=s,e+="\n",Rn(this,t,-1,-1),0===t.piece.length&&n.push(t)}const r=this.createNewPieces(e);let i=this.rbInsertLeft(t,r[r.length-1]);for(let s=r.length-2;s>=0;s--)i=this.rbInsertLeft(i,r[s]);this.validateCRLFWithPrevNode(i),this.deleteNodes(n)}insertContentToNodeRight(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+="\n");const n=this.createNewPieces(e),r=this.rbInsertRight(t,n[0]);let i=r;for(let s=1;s<n.length;s++)i=this.rbInsertRight(i,n[s]);this.validateCRLFWithPrevNode(r)}positionInBuffer(e,t,n){const r=e.piece,i=e.piece.bufferIndex,s=this._buffers[i].lineStarts,o=s[r.start.line]+r.start.column+t;let a=r.start.line,l=r.end.line,c=0,h=0,u=0;for(;a<=l&&(c=a+(l-a)/2|0,u=s[c],c!==l);)if(h=s[c+1],o<u)l=c-1;else{if(!(o>=h))break;a=c+1}return n?(n.line=c,n.column=o-u,null):{line:c,column:o-u}}getLineFeedCnt(e,t,n){if(0===n.column)return n.line-t.line;const r=this._buffers[e].lineStarts;if(n.line===r.length-1)return n.line-t.line;const i=r[n.line+1],s=r[n.line]+n.column;if(i>s+1)return n.line-t.line;const o=s-1;return 13===this._buffers[e].buffer.charCodeAt(o)?n.line-t.line+1:n.line-t.line}offsetInBuffer(e,t){return this._buffers[e].lineStarts[t.line]+t.column}deleteNodes(e){for(let t=0;t<e.length;t++)On(this,e[t])}createNewPieces(e){if(e.length>Fn){const t=[];for(;e.length>Fn;){const n=e.charCodeAt(65534);let r;13===n||n>=55296&&n<=56319?(r=e.substring(0,65534),e=e.substring(65534)):(r=e.substring(0,Fn),e=e.substring(Fn));const i=zn(r);t.push(new jn(this._buffers.length,{line:0,column:0},{line:i.length-1,column:r.length-i[i.length-1]},i.length-1,r.length)),this._buffers.push(new qn(r,i))}const n=zn(e);return t.push(new jn(this._buffers.length,{line:0,column:0},{line:n.length-1,column:e.length-n[n.length-1]},n.length-1,e.length)),this._buffers.push(new qn(e,n)),t}let t=this._buffers[0].buffer.length;const n=zn(e,!1);let r=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===t&&0!==t&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},r=this._lastChangeBufferPos;for(let e=0;e<n.length;e++)n[e]+=t+1;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(n.slice(1)),this._buffers[0].buffer+="_"+e,t+=1}else{if(0!==t)for(let e=0;e<n.length;e++)n[e]+=t;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(n.slice(1)),this._buffers[0].buffer+=e}const i=this._buffers[0].buffer.length,s=this._buffers[0].lineStarts.length-1,o={line:s,column:i-this._buffers[0].lineStarts[s]},a=new jn(0,r,o,this.getLineFeedCnt(0,r,o),i-t);return this._lastChangeBufferPos=o,[a]}getLineRawContent(e,t=0){let n=this.root,r="";const i=this._searchCache.get2(e);if(i){n=i.node;const s=this.getAccumulatedValue(n,e-i.nodeStartLineNumber-1),o=this._buffers[n.piece.bufferIndex].buffer,a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);if(i.nodeStartLineNumber+n.piece.lineFeedCnt!==e){const r=this.getAccumulatedValue(n,e-i.nodeStartLineNumber);return o.substring(a+s,a+r-t)}r=o.substring(a+s,a+n.piece.length)}else{let i=0;const s=e;for(;n!==wn;)if(n.left!==wn&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){const r=this.getAccumulatedValue(n,e-n.lf_left-2),o=this.getAccumulatedValue(n,e-n.lf_left-1),a=this._buffers[n.piece.bufferIndex].buffer,l=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return i+=n.size_left,this._searchCache.set({node:n,nodeStartOffset:i,nodeStartLineNumber:s-(e-1-n.lf_left)}),a.substring(l+r,l+o-t)}if(n.lf_left+n.piece.lineFeedCnt===e-1){const t=this.getAccumulatedValue(n,e-n.lf_left-2),i=this._buffers[n.piece.bufferIndex].buffer,s=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);r=i.substring(s+t,s+n.piece.length);break}e-=n.lf_left+n.piece.lineFeedCnt,i+=n.size_left+n.piece.length,n=n.right}}for(n=n.next();n!==wn;){const e=this._buffers[n.piece.bufferIndex].buffer;if(n.piece.lineFeedCnt>0){const i=this.getAccumulatedValue(n,0),s=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return r+=e.substring(s,s+i-t),r}{const t=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);r+=e.substr(t,n.piece.length)}n=n.next()}return r}computeBufferMetadata(){let e=this.root,t=1,n=0;for(;e!==wn;)t+=e.lf_left+e.piece.lineFeedCnt,n+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=n,this._searchCache.validate(this._length)}getIndexOf(e,t){const n=e.piece,r=this.positionInBuffer(e,t),i=r.line-n.start.line;if(this.offsetInBuffer(n.bufferIndex,n.end)-this.offsetInBuffer(n.bufferIndex,n.start)===t){const t=this.getLineFeedCnt(e.piece.bufferIndex,n.start,r);if(t!==i)return{index:t,remainder:0}}return{index:i,remainder:r.column}}getAccumulatedValue(e,t){if(t<0)return 0;const n=e.piece,r=this._buffers[n.bufferIndex].lineStarts,i=n.start.line+t+1;return i>n.end.line?r[n.end.line]+n.end.column-r[n.start.line]-n.start.column:r[i]-r[n.start.line]-n.start.column}deleteNodeTail(e,t){const n=e.piece,r=n.lineFeedCnt,i=this.offsetInBuffer(n.bufferIndex,n.end),s=t,o=this.offsetInBuffer(n.bufferIndex,s),a=this.getLineFeedCnt(n.bufferIndex,n.start,s),l=a-r,c=o-i,h=n.length+c;e.piece=new jn(n.bufferIndex,n.start,s,a,h),Rn(this,e,c,l)}deleteNodeHead(e,t){const n=e.piece,r=n.lineFeedCnt,i=this.offsetInBuffer(n.bufferIndex,n.start),s=t,o=this.getLineFeedCnt(n.bufferIndex,s,n.end),a=o-r,l=i-this.offsetInBuffer(n.bufferIndex,s),c=n.length+l;e.piece=new jn(n.bufferIndex,s,n.end,o,c),Rn(this,e,l,a)}shrinkNode(e,t,n){const r=e.piece,i=r.start,s=r.end,o=r.length,a=r.lineFeedCnt,l=t,c=this.getLineFeedCnt(r.bufferIndex,r.start,l),h=this.offsetInBuffer(r.bufferIndex,t)-this.offsetInBuffer(r.bufferIndex,i);e.piece=new jn(r.bufferIndex,r.start,l,c,h),Rn(this,e,h-o,c-a);const u=new jn(r.bufferIndex,n,s,this.getLineFeedCnt(r.bufferIndex,n,s),this.offsetInBuffer(r.bufferIndex,s)-this.offsetInBuffer(r.bufferIndex,n)),d=this.rbInsertRight(e,u);this.validateCRLFWithPrevNode(d)}appendToNode(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+="\n");const n=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),r=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;const i=zn(t,!1);for(let u=0;u<i.length;u++)i[u]+=r;if(n){const e=this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-2];this._buffers[0].lineStarts.pop(),this._lastChangeBufferPos={line:this._lastChangeBufferPos.line-1,column:r-e}}this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(i.slice(1));const s=this._buffers[0].lineStarts.length-1,o={line:s,column:this._buffers[0].buffer.length-this._buffers[0].lineStarts[s]},a=e.piece.length+t.length,l=e.piece.lineFeedCnt,c=this.getLineFeedCnt(0,e.piece.start,o),h=c-l;e.piece=new jn(e.piece.bufferIndex,e.piece.start,o,c,a),this._lastChangeBufferPos=o,Rn(this,e,t.length,h)}nodeAt(e){let t=this.root;const n=this._searchCache.get(e);if(n)return{node:n.node,nodeStartOffset:n.nodeStartOffset,remainder:e-n.nodeStartOffset};let r=0;for(;t!==wn;)if(t.size_left>e)t=t.left;else{if(t.size_left+t.piece.length>=e){r+=t.size_left;const n={node:t,remainder:e-t.size_left,nodeStartOffset:r};return this._searchCache.set(n),n}e-=t.size_left+t.piece.length,r+=t.size_left+t.piece.length,t=t.right}return null}nodeAt2(e,t){let n=this.root,r=0;for(;n!==wn;)if(n.left!==wn&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){const i=this.getAccumulatedValue(n,e-n.lf_left-2),s=this.getAccumulatedValue(n,e-n.lf_left-1);return r+=n.size_left,{node:n,remainder:Math.min(i+t-1,s),nodeStartOffset:r}}if(n.lf_left+n.piece.lineFeedCnt===e-1){const i=this.getAccumulatedValue(n,e-n.lf_left-2);if(i+t-1<=n.piece.length)return{node:n,remainder:i+t-1,nodeStartOffset:r};t-=n.piece.length-i;break}e-=n.lf_left+n.piece.lineFeedCnt,r+=n.size_left+n.piece.length,n=n.right}for(n=n.next();n!==wn;){if(n.piece.lineFeedCnt>0){const e=this.getAccumulatedValue(n,0),r=this.offsetOfNode(n);return{node:n,remainder:Math.min(t-1,e),nodeStartOffset:r}}if(n.piece.length>=t-1){return{node:n,remainder:t-1,nodeStartOffset:this.offsetOfNode(n)}}t-=n.piece.length,n=n.next()}return null}nodeCharCodeAt(e,t){if(e.piece.lineFeedCnt<1)return-1;const n=this._buffers[e.piece.bufferIndex],r=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return n.buffer.charCodeAt(r)}offsetOfNode(e){if(!e)return 0;let t=e.size_left;for(;e!==this.root;)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t}shouldCheckCRLF(){return!(this._EOLNormalized&&"\n"===this._EOL)}startWithLF(e){if("string"===typeof e)return 10===e.charCodeAt(0);if(e===wn||0===e.piece.lineFeedCnt)return!1;const t=e.piece,n=this._buffers[t.bufferIndex].lineStarts,r=t.start.line,i=n[r]+t.start.column;if(r===n.length-1)return!1;return!(n[r+1]>i+1)&&10===this._buffers[t.bufferIndex].buffer.charCodeAt(i)}endWithCR(e){return"string"===typeof e?13===e.charCodeAt(e.length-1):e!==wn&&0!==e.piece.lineFeedCnt&&13===this.nodeCharCodeAt(e,e.piece.length-1)}validateCRLFWithPrevNode(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){const t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}}validateCRLFWithNextNode(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}}fixCRLF(e,t){const n=[],r=this._buffers[e.piece.bufferIndex].lineStarts;let i;i=0===e.piece.end.column?{line:e.piece.end.line-1,column:r[e.piece.end.line]-r[e.piece.end.line-1]-1}:{line:e.piece.end.line,column:e.piece.end.column-1};const s=e.piece.length-1,o=e.piece.lineFeedCnt-1;e.piece=new jn(e.piece.bufferIndex,e.piece.start,i,o,s),Rn(this,e,-1,-1),0===e.piece.length&&n.push(e);const a={line:t.piece.start.line+1,column:0},l=t.piece.length-1,c=this.getLineFeedCnt(t.piece.bufferIndex,a,t.piece.end);t.piece=new jn(t.piece.bufferIndex,a,t.piece.end,c,l),Rn(this,t,-1,-1),0===t.piece.length&&n.push(t);const h=this.createNewPieces("\r\n");this.rbInsertRight(e,h[0]);for(let u=0;u<n.length;u++)On(this,n[u])}adjustCarriageReturnFromNext(e,t){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const n=t.next();if(this.startWithLF(n)){if(e+="\n",1===n.piece.length)On(this,n);else{const e=n.piece,t={line:e.start.line+1,column:0},r=e.length-1,i=this.getLineFeedCnt(e.bufferIndex,t,e.end);n.piece=new jn(e.bufferIndex,t,e.end,i,r),Rn(this,n,-1,-1)}return!0}}return!1}iterate(e,t){if(e===wn)return t(wn);const n=this.iterate(e.left,t);return n?t(e)&&this.iterate(e.right,t):n}getNodeContent(e){if(e===wn)return"";const t=this._buffers[e.piece.bufferIndex],n=e.piece,r=this.offsetInBuffer(n.bufferIndex,n.start),i=this.offsetInBuffer(n.bufferIndex,n.end);return t.buffer.substring(r,i)}getPieceContent(e){const t=this._buffers[e.bufferIndex],n=this.offsetInBuffer(e.bufferIndex,e.start),r=this.offsetInBuffer(e.bufferIndex,e.end);return t.buffer.substring(n,r)}rbInsertRight(e,t){const n=new Ln(t,1);n.left=wn,n.right=wn,n.parent=wn,n.size_left=0,n.lf_left=0;if(this.root===wn)this.root=n,n.color=0;else if(e.right===wn)e.right=n,n.parent=e;else{const t=Sn(e.right);t.left=n,n.parent=t}return Mn(this,n),n}rbInsertLeft(e,t){const n=new Ln(t,1);if(n.left=wn,n.right=wn,n.parent=wn,n.size_left=0,n.lf_left=0,this.root===wn)this.root=n,n.color=0;else if(e.left===wn)e.left=n,n.parent=e;else{const t=xn(e.left);t.right=n,n.parent=t}return Mn(this,n),n}}class Hn extends i.jG{constructor(e,t,n,i,s,o,a){super(),this._onDidChangeContent=this._register(new r.vl),this._BOM=t,this._mightContainNonBasicASCII=!o,this._mightContainRTL=i,this._mightContainUnusualLineTerminators=s,this._pieceTree=new $n(e,n,a)}mightContainRTL(){return this._mightContainRTL}mightContainUnusualLineTerminators(){return this._mightContainUnusualLineTerminators}resetMightContainUnusualLineTerminators(){this._mightContainUnusualLineTerminators=!1}mightContainNonBasicASCII(){return this._mightContainNonBasicASCII}getBOM(){return this._BOM}getEOL(){return this._pieceTree.getEOL()}createSnapshot(e){return this._pieceTree.createSnapshot(e?this._BOM:"")}getOffsetAt(e,t){return this._pieceTree.getOffsetAt(e,t)}getPositionAt(e){return this._pieceTree.getPositionAt(e)}getRangeAt(e,t){const n=e+t,r=this.getPositionAt(e),i=this.getPositionAt(n);return new m.Q(r.lineNumber,r.column,i.lineNumber,i.column)}getValueInRange(e,t=0){if(e.isEmpty())return"";const n=this._getEndOfLine(t);return this._pieceTree.getValueInRange(e,n)}getValueLengthInRange(e,t=0){if(e.isEmpty())return 0;if(e.startLineNumber===e.endLineNumber)return e.endColumn-e.startColumn;const n=this.getOffsetAt(e.startLineNumber,e.startColumn),r=this.getOffsetAt(e.endLineNumber,e.endColumn);let i=0;const s=this._getEndOfLine(t),o=this.getEOL();if(s.length!==o.length){i=(s.length-o.length)*(e.endLineNumber-e.startLineNumber)}return r-n+i}getCharacterCountInRange(e,t=0){if(this._mightContainNonBasicASCII){let n=0;const r=e.startLineNumber,i=e.endLineNumber;for(let t=r;t<=i;t++){const s=this.getLineContent(t),o=t===r?e.startColumn-1:0,a=t===i?e.endColumn-1:s.length;for(let e=o;e<a;e++)c.pc(s.charCodeAt(e))?(n+=1,e+=1):n+=1}return n+=this._getEndOfLine(t).length*(i-r),n}return this.getValueLengthInRange(e,t)}getLength(){return this._pieceTree.getLength()}getLineCount(){return this._pieceTree.getLineCount()}getLinesContent(){return this._pieceTree.getLinesContent()}getLineContent(e){return this._pieceTree.getLineContent(e)}getLineCharCode(e,t){return this._pieceTree.getLineCharCode(e,t)}getLineLength(e){return this._pieceTree.getLineLength(e)}getLineFirstNonWhitespaceColumn(e){const t=c.HG(this.getLineContent(e));return-1===t?0:t+1}getLineLastNonWhitespaceColumn(e){const t=c.lT(this.getLineContent(e));return-1===t?0:t+2}_getEndOfLine(e){switch(e){case 1:return"\n";case 2:return"\r\n";case 0:return this.getEOL();default:throw new Error("Unknown EOL preference")}}setEOL(e){this._pieceTree.setEOL(e)}applyEdits(e,t,n){let r=this._mightContainRTL,i=this._mightContainUnusualLineTerminators,s=this._mightContainNonBasicASCII,o=!0,a=[];for(let p=0;p<e.length;p++){const t=e[p];o&&t._isTracked&&(o=!1);const n=t.range;if(t.text){let e=!0;s||(e=!c.aC(t.text),s=e),!r&&e&&(r=c.E_(t.text)),!i&&e&&(i=c.$X(t.text))}let l="",h=0,d=0,g=0;if(t.text){let e;[h,d,g,e]=(0,u.W)(t.text);const n=this.getEOL();l=0===e||e===("\r\n"===n?2:1)?t.text:t.text.replace(/\r\n|\r|\n/g,n)}a[p]={sortIndex:p,identifier:t.identifier||null,range:n,rangeOffset:this.getOffsetAt(n.startLineNumber,n.startColumn),rangeLength:this.getValueLengthInRange(n),text:l,eolCount:h,firstLineLength:d,lastLineLength:g,forceMoveMarkers:Boolean(t.forceMoveMarkers),isAutoWhitespaceEdit:t.isAutoWhitespaceEdit||!1}}a.sort(Hn._sortOpsAscending);let l=!1;for(let c=0,u=a.length-1;c<u;c++){const e=a[c].range.getEndPosition(),t=a[c+1].range.getStartPosition();if(t.isBeforeOrEqual(e)){if(t.isBefore(e))throw new Error("Overlapping ranges are not allowed!");l=!0}}o&&(a=this._reduceOperations(a));const h=n||t?Hn._getInverseEditRanges(a):[],d=[];if(t)for(let u=0;u<a.length;u++){const e=a[u],t=h[u];if(e.isAutoWhitespaceEdit&&e.range.isEmpty())for(let n=t.startLineNumber;n<=t.endLineNumber;n++){let r="";n===t.startLineNumber&&(r=this.getLineContent(e.range.startLineNumber),-1!==c.HG(r))||d.push({lineNumber:n,oldContent:r})}}let g=null;if(n){let e=0;g=[];for(let t=0;t<a.length;t++){const n=a[t],r=h[t],i=this.getValueInRange(n.range),s=n.rangeOffset+e;e+=n.text.length-i.length,g[t]={sortIndex:n.sortIndex,identifier:n.identifier,range:r,text:i,textChange:new Ot(n.rangeOffset,i,s,n.text)}}l||g.sort(((e,t)=>e.sortIndex-t.sortIndex))}this._mightContainRTL=r,this._mightContainUnusualLineTerminators=i,this._mightContainNonBasicASCII=s;const f=this._doApplyEdits(a);let m=null;if(t&&d.length>0){d.sort(((e,t)=>t.lineNumber-e.lineNumber)),m=[];for(let e=0,t=d.length;e<t;e++){const t=d[e].lineNumber;if(e>0&&d[e-1].lineNumber===t)continue;const n=d[e].oldContent,r=this.getLineContent(t);0!==r.length&&r!==n&&-1===c.HG(r)&&m.push(t)}}return this._onDidChangeContent.fire(),new me.F4(g,f,m)}_reduceOperations(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]}_toSingleEditOperation(e){let t=!1;const n=e[0].range,r=e[e.length-1].range,i=new m.Q(n.startLineNumber,n.startColumn,r.endLineNumber,r.endColumn);let s=n.startLineNumber,o=n.startColumn;const a=[];for(let u=0,g=e.length;u<g;u++){const n=e[u],r=n.range;t=t||n.forceMoveMarkers,a.push(this.getValueInRange(new m.Q(s,o,r.startLineNumber,r.startColumn))),n.text.length>0&&a.push(n.text),s=r.endLineNumber,o=r.endColumn}const l=a.join(""),[c,h,d]=(0,u.W)(l);return{sortIndex:0,identifier:e[0].identifier,range:i,rangeOffset:this.getOffsetAt(i.startLineNumber,i.startColumn),rangeLength:this.getValueLengthInRange(i,0),text:l,eolCount:c,firstLineLength:h,lastLineLength:d,forceMoveMarkers:t,isAutoWhitespaceEdit:!1}}_doApplyEdits(e){e.sort(Hn._sortOpsDescending);const t=[];for(let n=0;n<e.length;n++){const r=e[n],i=r.range.startLineNumber,s=r.range.startColumn,o=r.range.endLineNumber,a=r.range.endColumn;if(i===o&&s===a&&0===r.text.length)continue;r.text?(this._pieceTree.delete(r.rangeOffset,r.rangeLength),this._pieceTree.insert(r.rangeOffset,r.text,!0)):this._pieceTree.delete(r.rangeOffset,r.rangeLength);const l=new m.Q(i,s,o,a);t.push({range:l,rangeLength:r.rangeLength,text:r.text,rangeOffset:r.rangeOffset,forceMoveMarkers:r.forceMoveMarkers})}return t}findMatchesLineByLine(e,t,n,r){return this._pieceTree.findMatchesLineByLine(e,t,n,r)}static _getInverseEditRanges(e){const t=[];let n=0,r=0,i=null;for(let s=0,o=e.length;s<o;s++){const o=e[s];let a,l,c;if(i?i.range.endLineNumber===o.range.startLineNumber?(a=n,l=r+(o.range.startColumn-i.range.endColumn)):(a=n+(o.range.startLineNumber-i.range.endLineNumber),l=o.range.startColumn):(a=o.range.startLineNumber,l=o.range.startColumn),o.text.length>0){const e=o.eolCount+1;c=1===e?new m.Q(a,l,a,l+o.firstLineLength):new m.Q(a,l,a+e-1,o.lastLineLength+1)}else c=new m.Q(a,l,a,l);n=c.endLineNumber,r=c.endColumn,t.push(c),i=o}return t}static _sortOpsAscending(e,t){const n=m.Q.compareRangesUsingEnds(e.range,t.range);return 0===n?e.sortIndex-t.sortIndex:n}static _sortOpsDescending(e,t){const n=m.Q.compareRangesUsingEnds(e.range,t.range);return 0===n?t.sortIndex-e.sortIndex:-n}}class Kn{constructor(e,t,n,r,i,s,o,a,l){this._chunks=e,this._bom=t,this._cr=n,this._lf=r,this._crlf=i,this._containsRTL=s,this._containsUnusualLineTerminators=o,this._isBasicASCII=a,this._normalizeEOL=l}_getEOL(e){const t=this._cr+this._lf+this._crlf,n=this._cr+this._crlf;return 0===t?1===e?"\n":"\r\n":n>t/2?"\r\n":"\n"}create(e){const t=this._getEOL(e),n=this._chunks;if(this._normalizeEOL&&("\r\n"===t&&(this._cr>0||this._lf>0)||"\n"===t&&(this._cr>0||this._crlf>0)))for(let i=0,s=n.length;i<s;i++){const e=n[i].buffer.replace(/\r\n|\r|\n/g,t),r=zn(e);n[i]=new qn(e,r)}const r=new Hn(n,this._bom,t,this._containsRTL,this._containsUnusualLineTerminators,this._isBasicASCII,this._normalizeEOL);return{textBuffer:r,disposable:r}}}class Gn{constructor(){this.chunks=[],this.BOM="",this._hasPreviousChar=!1,this._previousChar=0,this._tmpLineStarts=[],this.cr=0,this.lf=0,this.crlf=0,this.containsRTL=!1,this.containsUnusualLineTerminators=!1,this.isBasicASCII=!0}acceptChunk(e){if(0===e.length)return;0===this.chunks.length&&c.LU(e)&&(this.BOM=c.r_,e=e.substr(1));const t=e.charCodeAt(e.length-1);13===t||t>=55296&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0,this._previousChar=t):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1,this._previousChar=t)}_acceptChunk1(e,t){(t||0!==e.length)&&(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))}_acceptChunk2(e){const t=function(e,t){e.length=0,e[0]=0;let n=1,r=0,i=0,s=0,o=!0;for(let l=0,c=t.length;l<c;l++){const a=t.charCodeAt(l);13===a?l+1<c&&10===t.charCodeAt(l+1)?(s++,e[n++]=l+2,l++):(r++,e[n++]=l+1):10===a?(i++,e[n++]=l+1):o&&9!==a&&(a<32||a>126)&&(o=!1)}const a=new Vn(Pn(e),r,i,s,o);return e.length=0,a}(this._tmpLineStarts,e);this.chunks.push(new qn(e,t.lineStarts)),this.cr+=t.cr,this.lf+=t.lf,this.crlf+=t.crlf,t.isBasicASCII||(this.isBasicASCII=!1,this.containsRTL||(this.containsRTL=c.E_(e)),this.containsUnusualLineTerminators||(this.containsUnusualLineTerminators=c.$X(e)))}finish(e=!0){return this._finish(),new Kn(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,e)}_finish(){if(0===this.chunks.length&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;const e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);const t=zn(e.buffer);e.lineStarts=t,13===this._previousChar&&this.cr++}}}var Qn=n(6571),Jn=n(2083),Xn=n(1940),Yn=n(8381),Zn=n(4444);const er=new class{clone(){return this}equals(e){return this===e}};class tr{constructor(e){this._default=e,this._store=[]}get(e){return e<this._store.length?this._store[e]:this._default}set(e,t){for(;e>=this._store.length;)this._store[this._store.length]=this._default;this._store[e]=t}replace(e,t,n){if(e>=this._store.length)return;if(0===t)return void this.insert(e,n);if(0===n)return void this.delete(e,t);const r=this._store.slice(0,e),i=this._store.slice(e+t),s=function(e,t){const n=[];for(let r=0;r<e;r++)n[r]=t;return n}(n,this._default);this._store=r.concat(s,i)}delete(e,t){0===t||e>=this._store.length||this._store.splice(e,t)}insert(e,t){if(0===t||e>=this._store.length)return;const n=[];for(let r=0;r<t;r++)n[r]=this._default;this._store=(0,o.nK)(this._store,e,n)}}class nr{get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._startLineNumber+this._tokens.length-1}constructor(e,t){this._startLineNumber=e,this._tokens=t}getLineTokens(e){return this._tokens[e-this._startLineNumber]}appendLineTokens(e){this._tokens.push(e)}}class rr{constructor(){this._tokens=[]}add(e,t){if(this._tokens.length>0){const n=this._tokens[this._tokens.length-1];if(n.endLineNumber+1===e)return void n.appendLineTokens(t)}this._tokens.push(new nr(e,[t]))}finalize(){return this._tokens}}class ir{static{this.defaultTokenMetadata=33587200}static createEmpty(e,t){const n=ir.defaultTokenMetadata,r=new Uint32Array(2);return r[0]=e.length,r[1]=n,new ir(r,e,t)}static createFromTextAndMetadata(e,t){let n=0,r="";const i=new Array;for(const{text:s,metadata:o}of e)i.push(n+s.length,o),n+=s.length,r+=s;return new ir(new Uint32Array(i),r,t)}constructor(e,t,n){this._lineTokensBrand=void 0,this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t,this.languageIdCodec=n}equals(e){return e instanceof ir&&this.slicedEquals(e,0,this._tokensCount)}slicedEquals(e,t,n){if(this._text!==e._text)return!1;if(this._tokensCount!==e._tokensCount)return!1;const r=t<<1,i=r+(n<<1);for(let s=r;s<i;s++)if(this._tokens[s]!==e._tokens[s])return!1;return!0}getLineContent(){return this._text}getCount(){return this._tokensCount}getStartOffset(e){return e>0?this._tokens[e-1<<1]:0}getMetadata(e){return this._tokens[1+(e<<1)]}getLanguageId(e){const t=this._tokens[1+(e<<1)],n=Ye.x.getLanguageId(t);return this.languageIdCodec.decodeLanguageId(n)}getStandardTokenType(e){const t=this._tokens[1+(e<<1)];return Ye.x.getTokenType(t)}getForeground(e){const t=this._tokens[1+(e<<1)];return Ye.x.getForeground(t)}getClassName(e){const t=this._tokens[1+(e<<1)];return Ye.x.getClassNameFromMetadata(t)}getInlineStyle(e,t){const n=this._tokens[1+(e<<1)];return Ye.x.getInlineStyleFromMetadata(n,t)}getPresentation(e){const t=this._tokens[1+(e<<1)];return Ye.x.getPresentationFromMetadata(t)}getEndOffset(e){return this._tokens[e<<1]}findTokenIndexAtOffset(e){return ir.findIndexInTokensArray(this._tokens,e)}inflate(){return this}sliceAndInflate(e,t,n){return new sr(this,e,t,n)}static convertToEndOffset(e,t){const n=(e.length>>>1)-1;for(let r=0;r<n;r++)e[r<<1]=e[r+1<<1];e[n<<1]=t}static findIndexInTokensArray(e,t){if(e.length<=2)return 0;let n=0,r=(e.length>>>1)-1;for(;n<r;){const i=n+Math.floor((r-n)/2),s=e[i<<1];if(s===t)return i+1;s<t?n=i+1:s>t&&(r=i)}return n}withInserted(e){if(0===e.length)return this;let t=0,n=0,r="";const i=new Array;let s=0;for(;;){const o=t<this._tokensCount?this._tokens[t<<1]:-1,a=n<e.length?e[n]:null;if(-1!==o&&(null===a||o<=a.offset)){r+=this._text.substring(s,o);const e=this._tokens[1+(t<<1)];i.push(r.length,e),t++,s=o}else{if(!a)break;if(a.offset>s){r+=this._text.substring(s,a.offset);const e=this._tokens[1+(t<<1)];i.push(r.length,e),s=a.offset}r+=a.text,i.push(r.length,a.tokenMetadata),n++}}return new ir(new Uint32Array(i),r,this.languageIdCodec)}getTokenText(e){const t=this.getStartOffset(e),n=this.getEndOffset(e);return this._text.substring(t,n)}forEach(e){const t=this.getCount();for(let n=0;n<t;n++)e(n)}}class sr{constructor(e,t,n,r){this._source=e,this._startOffset=t,this._endOffset=n,this._deltaOffset=r,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this.languageIdCodec=e.languageIdCodec,this._tokensCount=0;for(let i=this._firstTokenIndex,s=e.getCount();i<s;i++){if(e.getStartOffset(i)>=n)break;this._tokensCount++}}getMetadata(e){return this._source.getMetadata(this._firstTokenIndex+e)}getLanguageId(e){return this._source.getLanguageId(this._firstTokenIndex+e)}getLineContent(){return this._source.getLineContent().substring(this._startOffset,this._endOffset)}equals(e){return e instanceof sr&&(this._startOffset===e._startOffset&&this._endOffset===e._endOffset&&this._deltaOffset===e._deltaOffset&&this._source.slicedEquals(e._source,this._firstTokenIndex,this._tokensCount))}getCount(){return this._tokensCount}getStandardTokenType(e){return this._source.getStandardTokenType(this._firstTokenIndex+e)}getForeground(e){return this._source.getForeground(this._firstTokenIndex+e)}getEndOffset(e){const t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset}getClassName(e){return this._source.getClassName(this._firstTokenIndex+e)}getInlineStyle(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)}getPresentation(e){return this._source.getPresentation(this._firstTokenIndex+e)}findTokenIndexAtOffset(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex}getTokenText(e){const t=this._firstTokenIndex+e,n=this._source.getStartOffset(t),r=this._source.getEndOffset(t);let i=this._source.getTokenText(t);return n<this._startOffset&&(i=i.substring(this._startOffset-n)),r>this._endOffset&&(i=i.substring(0,i.length-(r-this._endOffset))),i}forEach(e){for(let t=0;t<this.getCount();t++)e(t)}}class or{constructor(e,t){this.tokenizationSupport=t,this.initialState=this.tokenizationSupport.getInitialState(),this.store=new lr(e)}getStartState(e){return this.store.getStartState(e,this.initialState)}getFirstInvalidLine(){return this.store.getFirstInvalidLine(this.initialState)}}class ar extends or{constructor(e,t,n,r){super(e,t),this._textModel=n,this._languageIdCodec=r}updateTokensUntilLine(e,t){const n=this._textModel.getLanguageId();for(;;){const r=this.getFirstInvalidLine();if(!r||r.lineNumber>t)break;const i=this._textModel.getLineContent(r.lineNumber),s=ur(this._languageIdCodec,n,this.tokenizationSupport,i,!0,r.startState);e.add(r.lineNumber,s.tokens),this.store.setEndState(r.lineNumber,s.endState)}}getTokenTypeIfInsertingCharacter(e,t){const n=this.getStartState(e.lineNumber);if(!n)return 0;const r=this._textModel.getLanguageId(),i=this._textModel.getLineContent(e.lineNumber),s=i.substring(0,e.column-1)+t+i.substring(e.column-1),o=ur(this._languageIdCodec,r,this.tokenizationSupport,s,!0,n),a=new ir(o.tokens,s,this._languageIdCodec);if(0===a.getCount())return 0;const l=a.findTokenIndexAtOffset(e.column-1);return a.getStandardTokenType(l)}tokenizeLineWithEdit(e,t,n){const r=e.lineNumber,i=e.column,s=this.getStartState(r);if(!s)return null;const o=this._textModel.getLineContent(r),a=o.substring(0,i-1)+n+o.substring(i-1+t),l=this._textModel.getLanguageIdAtPosition(r,0),c=ur(this._languageIdCodec,l,this.tokenizationSupport,a,!0,s);return new ir(c.tokens,a,this._languageIdCodec)}hasAccurateTokensForLine(e){return e<this.store.getFirstInvalidEndStateLineNumberOrMax()}isCheapToTokenize(e){const t=this.store.getFirstInvalidEndStateLineNumberOrMax();return e<t||e===t&&this._textModel.getLineLength(e)<2048}tokenizeHeuristically(e,t,n){if(n<=this.store.getFirstInvalidEndStateLineNumberOrMax())return{heuristicTokens:!1};if(t<=this.store.getFirstInvalidEndStateLineNumberOrMax())return this.updateTokensUntilLine(e,n),{heuristicTokens:!1};let r=this.guessStartState(t);const i=this._textModel.getLanguageId();for(let s=t;s<=n;s++){const t=this._textModel.getLineContent(s),n=ur(this._languageIdCodec,i,this.tokenizationSupport,t,!0,r);e.add(s,n.tokens),r=n.endState}return{heuristicTokens:!0}}guessStartState(e){let t=this._textModel.getLineFirstNonWhitespaceColumn(e);const n=[];let r=null;for(let o=e-1;t>1&&o>=1;o--){const e=this._textModel.getLineFirstNonWhitespaceColumn(o);if(0!==e&&(e<t&&(n.push(this._textModel.getLineContent(o)),t=e,r=this.getStartState(o),r)))break}r||(r=this.tokenizationSupport.getInitialState()),n.reverse();const i=this._textModel.getLanguageId();let s=r;for(const o of n){s=ur(this._languageIdCodec,i,this.tokenizationSupport,o,!1,s).endState}return s}}class lr{constructor(e){this.lineCount=e,this._tokenizationStateStore=new cr,this._invalidEndStatesLineNumbers=new hr,this._invalidEndStatesLineNumbers.addRange(new Zn.L(1,e+1))}getEndState(e){return this._tokenizationStateStore.getEndState(e)}setEndState(e,t){if(!t)throw new l.D7("Cannot set null/undefined state");this._invalidEndStatesLineNumbers.delete(e);const n=this._tokenizationStateStore.setEndState(e,t);return n&&e<this.lineCount&&this._invalidEndStatesLineNumbers.addRange(new Zn.L(e+1,e+2)),n}acceptChange(e,t){this.lineCount+=t-e.length,this._tokenizationStateStore.acceptChange(e,t),this._invalidEndStatesLineNumbers.addRangeAndResize(new Zn.L(e.startLineNumber,e.endLineNumberExclusive),t)}acceptChanges(e){for(const t of e){const[e]=(0,u.W)(t.text);this.acceptChange(new Qn.M(t.range.startLineNumber,t.range.endLineNumber+1),e+1)}}invalidateEndStateRange(e){this._invalidEndStatesLineNumbers.addRange(new Zn.L(e.startLineNumber,e.endLineNumberExclusive))}getFirstInvalidEndStateLineNumber(){return this._invalidEndStatesLineNumbers.min}getFirstInvalidEndStateLineNumberOrMax(){return this.getFirstInvalidEndStateLineNumber()||Number.MAX_SAFE_INTEGER}allStatesValid(){return null===this._invalidEndStatesLineNumbers.min}getStartState(e,t){return 1===e?t:this.getEndState(e-1)}getFirstInvalidLine(e){const t=this.getFirstInvalidEndStateLineNumber();if(null===t)return null;const n=this.getStartState(t,e);if(!n)throw new l.D7("Start state must be defined");return{lineNumber:t,startState:n}}}class cr{constructor(){this._lineEndStates=new tr(null)}getEndState(e){return this._lineEndStates.get(e)}setEndState(e,t){const n=this._lineEndStates.get(e);return(!n||!n.equals(t))&&(this._lineEndStates.set(e,t),!0)}acceptChange(e,t){let n=e.length;t>0&&n>0&&(n--,t--),this._lineEndStates.replace(e.startLineNumber,n,t)}}class hr{constructor(){this._ranges=[]}get min(){return 0===this._ranges.length?null:this._ranges[0].start}delete(e){const t=this._ranges.findIndex((t=>t.contains(e)));if(-1!==t){const n=this._ranges[t];n.start===e?n.endExclusive===e+1?this._ranges.splice(t,1):this._ranges[t]=new Zn.L(e+1,n.endExclusive):n.endExclusive===e+1?this._ranges[t]=new Zn.L(n.start,e):this._ranges.splice(t,1,new Zn.L(n.start,e),new Zn.L(e+1,n.endExclusive))}}addRange(e){Zn.L.addRange(e,this._ranges)}addRangeAndResize(e,t){let n=0;for(;!(n>=this._ranges.length||e.start<=this._ranges[n].endExclusive);)n++;let r=n;for(;!(r>=this._ranges.length||e.endExclusive<this._ranges[r].start);)r++;const i=t-e.length;for(let s=r;s<this._ranges.length;s++)this._ranges[s]=this._ranges[s].delta(i);if(n===r){const r=new Zn.L(e.start,e.start+t);r.isEmpty||this._ranges.splice(n,0,r)}else{const t=Math.min(e.start,this._ranges[n].start),s=Math.max(e.endExclusive,this._ranges[r-1].endExclusive),o=new Zn.L(t,s+i);o.isEmpty?this._ranges.splice(n,r-n):this._ranges.splice(n,r-n,o)}}toString(){return this._ranges.map((e=>e.toString())).join(" + ")}}function ur(e,t,n,r,i,s){let o=null;if(n)try{o=n.tokenizeEncoded(r,i,s.clone())}catch(a){(0,l.dz)(a)}return o||(o=function(e,t){const n=new Uint32Array(2);return n[0]=0,n[1]=(32768|e|2<<24)>>>0,new Jn.rY(n,null===t?er:t)}(e.encodeLanguageId(t),s)),ir.convertToEndOffset(o.tokens,r.length),o}class dr{constructor(e,t){this._tokenizerWithStateStore=e,this._backgroundTokenStore=t,this._isDisposed=!1,this._isScheduled=!1}dispose(){this._isDisposed=!0}handleChanges(){this._beginBackgroundTokenization()}_beginBackgroundTokenization(){!this._isScheduled&&this._tokenizerWithStateStore._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&(this._isScheduled=!0,(0,Xn.$6)((e=>{this._isScheduled=!1,this._backgroundTokenizeWithDeadline(e)})))}_backgroundTokenizeWithDeadline(e){const t=Date.now()+e.timeRemaining(),n=()=>{!this._isDisposed&&this._tokenizerWithStateStore._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&(this._backgroundTokenizeForAtLeast1ms(),Date.now()<t?(0,s._p)(n):this._beginBackgroundTokenization())};n()}_backgroundTokenizeForAtLeast1ms(){const e=this._tokenizerWithStateStore._textModel.getLineCount(),t=new rr,n=Yn.W.create(!1);do{if(n.elapsed()>1)break;if(this._tokenizeOneInvalidLine(t)>=e)break}while(this._hasLinesToTokenize());this._backgroundTokenStore.setTokens(t.finalize()),this.checkFinished()}_hasLinesToTokenize(){return!!this._tokenizerWithStateStore&&!this._tokenizerWithStateStore.store.allStatesValid()}_tokenizeOneInvalidLine(e){const t=this._tokenizerWithStateStore?.getFirstInvalidLine();return t?(this._tokenizerWithStateStore.updateTokensUntilLine(e,t.lineNumber),t.lineNumber):this._tokenizerWithStateStore._textModel.getLineCount()+1}checkFinished(){this._isDisposed||this._tokenizerWithStateStore.store.allStatesValid()&&this._backgroundTokenStore.backgroundTokenizationFinished()}requestTokens(e,t){this._tokenizerWithStateStore.store.invalidateEndStateRange(new Qn.M(e,t))}}class gr{constructor(){this._onDidChangeVisibleRanges=new r.vl,this.onDidChangeVisibleRanges=this._onDidChangeVisibleRanges.event,this._views=new Set}attachView(){const e=new fr((t=>{this._onDidChangeVisibleRanges.fire({view:e,state:t})}));return this._views.add(e),e}detachView(e){this._views.delete(e),this._onDidChangeVisibleRanges.fire({view:e,state:void 0})}}class fr{constructor(e){this.handleStateChange=e}setVisibleLines(e,t){const n=e.map((e=>new Qn.M(e.startLineNumber,e.endLineNumber+1)));this.handleStateChange({visibleLineRanges:n,stabilized:t})}}class mr extends i.jG{get lineRanges(){return this._lineRanges}constructor(e){super(),this._refreshTokens=e,this.runner=this._register(new Xn.uC((()=>this.update()),50)),this._computedLineRanges=[],this._lineRanges=[]}update(){(0,o.aI)(this._computedLineRanges,this._lineRanges,((e,t)=>e.equals(t)))||(this._computedLineRanges=this._lineRanges,this._refreshTokens())}handleStateChange(e){this._lineRanges=e.visibleLineRanges,e.stabilized?(this.runner.cancel(),this.update()):this.runner.schedule()}}class pr extends i.jG{get backgroundTokenizationState(){return this._backgroundTokenizationState}constructor(e,t,n){super(),this._languageIdCodec=e,this._textModel=t,this.getLanguageId=n,this._backgroundTokenizationState=1,this._onDidChangeBackgroundTokenizationState=this._register(new r.vl),this.onDidChangeBackgroundTokenizationState=this._onDidChangeBackgroundTokenizationState.event,this._onDidChangeTokens=this._register(new r.vl),this.onDidChangeTokens=this._onDidChangeTokens.event}tokenizeIfCheap(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)}}class br extends pr{constructor(e,t,n,r){super(t,n,r),this._treeSitterService=e,this._tokenizationSupport=null,this._initialize()}_initialize(){const e=this.getLanguageId();this._tokenizationSupport&&this._lastLanguageId===e||(this._lastLanguageId=e,this._tokenizationSupport=Jn.OB.get(e))}getLineTokens(e){const t=this._textModel.getLineContent(e);if(this._tokenizationSupport){const n=this._tokenizationSupport.tokenizeEncoded(e,this._textModel);if(n)return new ir(n,t,this._languageIdCodec)}return ir.createEmpty(t,this._languageIdCodec)}resetTokenization(e=!0){e&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]}),this._initialize()}handleDidChangeAttached(){}handleDidChangeContent(e){e.isFlush&&this.resetTokenization(!1)}forceTokenization(e){}hasAccurateTokensForLine(e){return!0}isCheapToTokenize(e){return!0}getTokenTypeIfInsertingCharacter(e,t,n){return 0}tokenizeLineWithEdit(e,t,n){return null}get hasTokens(){return void 0!==this._treeSitterService.getParseResult(this._textModel)}}var _r=n(4432);const kr=new Uint32Array(0).buffer;class vr{static deleteBeginning(e,t){return null===e||e===kr?e:vr.delete(e,0,t)}static deleteEnding(e,t){if(null===e||e===kr)return e;const n=Cr(e),r=n[n.length-2];return vr.delete(e,t,r)}static delete(e,t,n){if(null===e||e===kr||t===n)return e;const r=Cr(e),i=r.length>>>1;if(0===t&&r[r.length-2]===n)return kr;const s=ir.findIndexInTokensArray(r,t),o=s>0?r[s-1<<1]:0;if(n<r[s<<1]){const o=n-t;for(let e=s;e<i;e++)r[e<<1]-=o;return e}let a,l;o!==t?(r[s<<1]=t,a=s+1<<1,l=t):(a=s<<1,l=o);const c=n-t;for(let u=s+1;u<i;u++){const e=r[u<<1]-c;e>l&&(r[a++]=e,r[a++]=r[1+(u<<1)],l=e)}if(a===r.length)return e;const h=new Uint32Array(a);return h.set(r.subarray(0,a),0),h.buffer}static append(e,t){if(t===kr)return e;if(e===kr)return t;if(null===e)return e;if(null===t)return null;const n=Cr(e),r=Cr(t),i=r.length>>>1,s=new Uint32Array(n.length+r.length);s.set(n,0);let o=n.length;const a=n[n.length-2];for(let l=0;l<i;l++)s[o++]=r[l<<1]+a,s[o++]=r[1+(l<<1)];return s.buffer}static insert(e,t,n){if(null===e||e===kr)return e;const r=Cr(e),i=r.length>>>1;let s=ir.findIndexInTokensArray(r,t);if(s>0){r[s-1<<1]===t&&s--}for(let o=s;o<i;o++)r[o<<1]+=n;return e}}function Cr(e){return e instanceof Uint32Array?e:new Uint32Array(e)}class yr{constructor(e){this._lineTokens=[],this._len=0,this._languageIdCodec=e}flush(){this._lineTokens=[],this._len=0}get hasTokens(){return this._lineTokens.length>0}getTokens(e,t,n){let r=null;if(t<this._len&&(r=this._lineTokens[t]),null!==r&&r!==kr)return new ir(Cr(r),n,this._languageIdCodec);const i=new Uint32Array(2);return i[0]=n.length,i[1]=Lr(this._languageIdCodec.encodeLanguageId(e)),new ir(i,n,this._languageIdCodec)}static _massageTokens(e,t,n){const r=n?Cr(n):null;if(0===t){let t=!1;if(r&&r.length>1&&(t=Ye.x.getLanguageId(r[1])!==e),!t)return kr}if(!r||0===r.length){const n=new Uint32Array(2);return n[0]=t,n[1]=Lr(e),n.buffer}return r[r.length-2]=t,0===r.byteOffset&&r.byteLength===r.buffer.byteLength?r.buffer:r}_ensureLine(e){for(;e>=this._len;)this._lineTokens[this._len]=null,this._len++}_deleteLines(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._lineTokens.splice(e,t),this._len-=t)}_insertLines(e,t){if(0===t)return;const n=[];for(let r=0;r<t;r++)n[r]=null;this._lineTokens=o.nK(this._lineTokens,e,n),this._len+=t}setTokens(e,t,n,r,i){const s=yr._massageTokens(this._languageIdCodec.encodeLanguageId(e),n,r);this._ensureLine(t);const o=this._lineTokens[t];return this._lineTokens[t]=s,!!i&&!yr._equals(o,s)}static _equals(e,t){if(!e||!t)return!e&&!t;const n=Cr(e),r=Cr(t);if(n.length!==r.length)return!1;for(let i=0,s=n.length;i<s;i++)if(n[i]!==r[i])return!1;return!0}acceptEdit(e,t,n){this._acceptDeleteRange(e),this._acceptInsertText(new f.y(e.startLineNumber,e.startColumn),t,n)}_acceptDeleteRange(e){const t=e.startLineNumber-1;if(t>=this._len)return;if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;return void(this._lineTokens[t]=vr.delete(this._lineTokens[t],e.startColumn-1,e.endColumn-1))}this._lineTokens[t]=vr.deleteEnding(this._lineTokens[t],e.startColumn-1);const n=e.endLineNumber-1;let r=null;n<this._len&&(r=vr.deleteBeginning(this._lineTokens[n],e.endColumn-1)),this._lineTokens[t]=vr.append(this._lineTokens[t],r),this._deleteLines(e.startLineNumber,e.endLineNumber-e.startLineNumber)}_acceptInsertText(e,t,n){if(0===t&&0===n)return;const r=e.lineNumber-1;r>=this._len||(0!==t?(this._lineTokens[r]=vr.deleteEnding(this._lineTokens[r],e.column-1),this._lineTokens[r]=vr.insert(this._lineTokens[r],e.column-1,n),this._insertLines(e.lineNumber,t)):this._lineTokens[r]=vr.insert(this._lineTokens[r],e.column-1,n))}setMultilineTokens(e,t){if(0===e.length)return{changes:[]};const n=[];for(let r=0,i=e.length;r<i;r++){const i=e[r];let s=0,o=0,a=!1;for(let e=i.startLineNumber;e<=i.endLineNumber;e++)if(a)this.setTokens(t.getLanguageId(),e-1,t.getLineLength(e),i.getLineTokens(e),!1),o=e;else{this.setTokens(t.getLanguageId(),e-1,t.getLineLength(e),i.getLineTokens(e),!0)&&(a=!0,s=e,o=e)}a&&n.push({fromLineNumber:s,toLineNumber:o})}return{changes:n}}}function Lr(e){return(32768|e|2<<24|1024)>>>0}class wr{constructor(e){this._pieces=[],this._isComplete=!1,this._languageIdCodec=e}flush(){this._pieces=[],this._isComplete=!1}isEmpty(){return 0===this._pieces.length}set(e,t){this._pieces=e||[],this._isComplete=t}setPartial(e,t){let n=e;if(t.length>0){const r=t[0].getRange(),i=t[t.length-1].getRange();if(!r||!i)return e;n=e.plusRange(r).plusRange(i)}let r=null;for(let i=0,s=this._pieces.length;i<s;i++){const e=this._pieces[i];if(e.endLineNumber<n.startLineNumber)continue;if(e.startLineNumber>n.endLineNumber){r=r||{index:i};break}if(e.removeTokens(n),e.isEmpty()){this._pieces.splice(i,1),i--,s--;continue}if(e.endLineNumber<n.startLineNumber)continue;if(e.startLineNumber>n.endLineNumber){r=r||{index:i};continue}const[t,o]=e.split(n);t.isEmpty()?r=r||{index:i}:o.isEmpty()||(this._pieces.splice(i,1,t,o),i++,s++,r=r||{index:i})}return r=r||{index:this._pieces.length},t.length>0&&(this._pieces=o.nK(this._pieces,r.index,t)),n}isComplete(){return this._isComplete}addSparseTokens(e,t){if(0===t.getLineContent().length)return t;const n=this._pieces;if(0===n.length)return t;const r=n[wr._findFirstPieceWithLine(n,e)].getLineTokens(e);if(!r)return t;const i=t.getCount(),s=r.getCount();let o=0;const a=[];let l=0,c=0;const h=(e,t)=>{e!==c&&(c=e,a[l++]=e,a[l++]=t)};for(let u=0;u<s;u++){const e=r.getStartCharacter(u),n=r.getEndCharacter(u),s=r.getMetadata(u),a=((1&s?2048:0)|(2&s?4096:0)|(4&s?8192:0)|(8&s?16384:0)|(16&s?16744448:0)|(32&s?4278190080:0))>>>0,l=~a>>>0;for(;o<i&&t.getEndOffset(o)<=e;)h(t.getEndOffset(o),t.getMetadata(o)),o++;for(o<i&&t.getStartOffset(o)<e&&h(e,t.getMetadata(o));o<i&&t.getEndOffset(o)<n;)h(t.getEndOffset(o),t.getMetadata(o)&l|s&a),o++;if(o<i)h(n,t.getMetadata(o)&l|s&a),t.getEndOffset(o)===n&&o++;else{const e=Math.min(Math.max(0,o-1),i-1);h(n,t.getMetadata(e)&l|s&a)}}for(;o<i;)h(t.getEndOffset(o),t.getMetadata(o)),o++;return new ir(new Uint32Array(a),t.getLineContent(),this._languageIdCodec)}static _findFirstPieceWithLine(e,t){let n=0,r=e.length-1;for(;n<r;){let i=n+Math.floor((r-n)/2);if(e[i].endLineNumber<t)n=i+1;else{if(!(e[i].startLineNumber>t)){for(;i>n&&e[i-1].startLineNumber<=t&&t<=e[i-1].endLineNumber;)i--;return i}r=i-1}}return n}acceptEdit(e,t,n,r,i){for(const s of this._pieces)s.acceptEdit(e,t,n,r,i)}}var Sr,xr=function(e,t,n,r){var i,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,n,o):i(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},Er=function(e,t){return function(n,r){t(n,r,e)}};let Nr=Sr=class extends Ut{constructor(e,t,n,s,o,a,l){super(),this._textModel=e,this._bracketPairsTextModelPart=t,this._languageId=n,this._attachedViews=s,this._languageService=o,this._languageConfigurationService=a,this._treeSitterService=l,this._semanticTokens=new wr(this._languageService.languageIdCodec),this._onDidChangeLanguage=this._register(new r.vl),this.onDidChangeLanguage=this._onDidChangeLanguage.event,this._onDidChangeLanguageConfiguration=this._register(new r.vl),this.onDidChangeLanguageConfiguration=this._onDidChangeLanguageConfiguration.event,this._onDidChangeTokens=this._register(new r.vl),this.onDidChangeTokens=this._onDidChangeTokens.event,this._tokensDisposables=this._register(new i.Cm),this._register(this._languageConfigurationService.onDidChange((e=>{e.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})}))),this._register(r.Jh.filter(Jn.OB.onDidChange,(e=>e.changedLanguages.includes(this._languageId)))((()=>{this.createPreferredTokenProvider()}))),this.createPreferredTokenProvider()}createGrammarTokens(){return this._register(new Tr(this._languageService.languageIdCodec,this._textModel,(()=>this._languageId),this._attachedViews))}createTreeSitterTokens(){return this._register(new br(this._treeSitterService,this._languageService.languageIdCodec,this._textModel,(()=>this._languageId)))}createTokens(e){const t=void 0!==this._tokens;this._tokens?.dispose(),this._tokens=e?this.createTreeSitterTokens():this.createGrammarTokens(),this._tokensDisposables.clear(),this._tokensDisposables.add(this._tokens.onDidChangeTokens((e=>{this._emitModelTokensChangedEvent(e)}))),this._tokensDisposables.add(this._tokens.onDidChangeBackgroundTokenizationState((e=>{this._bracketPairsTextModelPart.handleDidChangeBackgroundTokenizationState()}))),t&&this._tokens.resetTokenization()}createPreferredTokenProvider(){Jn.OB.get(this._languageId)?this._tokens instanceof br||this.createTokens(!0):this._tokens instanceof Tr||this.createTokens(!1)}handleLanguageConfigurationServiceChange(e){e.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})}handleDidChangeContent(e){if(e.isFlush)this._semanticTokens.flush();else if(!e.isEolChange)for(const t of e.changes){const[e,n,r]=(0,u.W)(t.text);this._semanticTokens.acceptEdit(t.range,e,n,r,t.text.length>0?t.text.charCodeAt(0):0)}this._tokens.handleDidChangeContent(e)}handleDidChangeAttached(){this._tokens.handleDidChangeAttached()}getLineTokens(e){this.validateLineNumber(e);const t=this._tokens.getLineTokens(e);return this._semanticTokens.addSparseTokens(e,t)}_emitModelTokensChangedEvent(e){this._textModel._isDisposing()||(this._bracketPairsTextModelPart.handleDidChangeTokens(e),this._onDidChangeTokens.fire(e))}validateLineNumber(e){if(e<1||e>this._textModel.getLineCount())throw new l.D7("Illegal value for lineNumber")}get hasTokens(){return this._tokens.hasTokens}resetTokenization(){this._tokens.resetTokenization()}get backgroundTokenizationState(){return this._tokens.backgroundTokenizationState}forceTokenization(e){this.validateLineNumber(e),this._tokens.forceTokenization(e)}hasAccurateTokensForLine(e){return this.validateLineNumber(e),this._tokens.hasAccurateTokensForLine(e)}isCheapToTokenize(e){return this.validateLineNumber(e),this._tokens.isCheapToTokenize(e)}tokenizeIfCheap(e){this.validateLineNumber(e),this._tokens.tokenizeIfCheap(e)}getTokenTypeIfInsertingCharacter(e,t,n){return this._tokens.getTokenTypeIfInsertingCharacter(e,t,n)}tokenizeLineWithEdit(e,t,n){return this._tokens.tokenizeLineWithEdit(e,t,n)}setSemanticTokens(e,t){this._semanticTokens.set(e,t),this._emitModelTokensChangedEvent({semanticTokensApplied:null!==e,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]})}hasCompleteSemanticTokens(){return this._semanticTokens.isComplete()}hasSomeSemanticTokens(){return!this._semanticTokens.isEmpty()}setPartialSemanticTokens(e,t){if(this.hasCompleteSemanticTokens())return;const n=this._textModel.validateRange(this._semanticTokens.setPartial(e,t));this._emitModelTokensChangedEvent({semanticTokensApplied:!0,ranges:[{fromLineNumber:n.startLineNumber,toLineNumber:n.endLineNumber}]})}getWordAtPosition(e){this.assertNotDisposed();const t=this._textModel.validatePosition(e),n=this._textModel.getLineContent(t.lineNumber),r=this.getLineTokens(t.lineNumber),i=r.findTokenIndexAtOffset(t.column-1),[s,o]=Sr._findLanguageBoundaries(r,i),a=(0,v.Th)(t.column,this.getLanguageConfiguration(r.getLanguageId(i)).getWordDefinition(),n.substring(s,o),s);if(a&&a.startColumn<=e.column&&e.column<=a.endColumn)return a;if(i>0&&s===t.column-1){const[s,o]=Sr._findLanguageBoundaries(r,i-1),a=(0,v.Th)(t.column,this.getLanguageConfiguration(r.getLanguageId(i-1)).getWordDefinition(),n.substring(s,o),s);if(a&&a.startColumn<=e.column&&e.column<=a.endColumn)return a}return null}getLanguageConfiguration(e){return this._languageConfigurationService.getLanguageConfiguration(e)}static _findLanguageBoundaries(e,t){const n=e.getLanguageId(t);let r=0;for(let s=t;s>=0&&e.getLanguageId(s)===n;s--)r=e.getStartOffset(s);let i=e.getLineContent().length;for(let s=t,o=e.getCount();s<o&&e.getLanguageId(s)===n;s++)i=e.getEndOffset(s);return[r,i]}getWordUntilPosition(e){const t=this.getWordAtPosition(e);return t?{word:t.word.substr(0,e.column-t.startColumn),startColumn:t.startColumn,endColumn:e.column}:{word:"",startColumn:e.column,endColumn:e.column}}getLanguageId(){return this._languageId}getLanguageIdAtPosition(e,t){const n=this._textModel.validatePosition(new f.y(e,t)),r=this.getLineTokens(n.lineNumber);return r.getLanguageId(r.findTokenIndexAtOffset(n.column-1))}setLanguageId(e,t="api"){if(this._languageId===e)return;const n={oldLanguage:this._languageId,newLanguage:e,source:t};this._languageId=e,this._bracketPairsTextModelPart.handleDidChangeLanguage(n),this._tokens.resetTokenization(),this.createPreferredTokenProvider(),this._onDidChangeLanguage.fire(n),this._onDidChangeLanguageConfiguration.fire({})}};Nr=Sr=xr([Er(4,k.L),Er(5,se),Er(6,_r.ITreeSitterParserService)],Nr);class Tr extends pr{constructor(e,t,n,r){super(e,t,n),this._tokenizer=null,this._defaultBackgroundTokenizer=null,this._backgroundTokenizer=this._register(new i.HE),this._tokens=new yr(this._languageIdCodec),this._debugBackgroundTokenizer=this._register(new i.HE),this._attachedViewStates=this._register(new i.$w),this._register(Jn.dG.onDidChange((e=>{const t=this.getLanguageId();-1!==e.changedLanguages.indexOf(t)&&this.resetTokenization()}))),this.resetTokenization(),this._register(r.onDidChangeVisibleRanges((({view:e,state:t})=>{if(t){let n=this._attachedViewStates.get(e);n||(n=new mr((()=>this.refreshRanges(n.lineRanges))),this._attachedViewStates.set(e,n)),n.handleStateChange(t)}else this._attachedViewStates.deleteAndDispose(e)})))}resetTokenization(e=!0){this._tokens.flush(),this._debugBackgroundTokens?.flush(),this._debugBackgroundStates&&(this._debugBackgroundStates=new lr(this._textModel.getLineCount())),e&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]});const[t,n]=(()=>{if(this._textModel.isTooLargeForTokenization())return[null,null];const e=Jn.dG.get(this.getLanguageId());if(!e)return[null,null];let t;try{t=e.getInitialState()}catch(n){return(0,l.dz)(n),[null,null]}return[e,t]})();if(this._tokenizer=t&&n?new ar(this._textModel.getLineCount(),t,this._textModel,this._languageIdCodec):null,this._backgroundTokenizer.clear(),this._defaultBackgroundTokenizer=null,this._tokenizer){const e={setTokens:e=>{this.setTokens(e)},backgroundTokenizationFinished:()=>{if(2===this._backgroundTokenizationState)return;this._backgroundTokenizationState=2,this._onDidChangeBackgroundTokenizationState.fire()},setEndState:(e,t)=>{if(!this._tokenizer)return;const n=this._tokenizer.store.getFirstInvalidEndStateLineNumber();null!==n&&e>=n&&this._tokenizer?.store.setEndState(e,t)}};t&&t.createBackgroundTokenizer&&!t.backgroundTokenizerShouldOnlyVerifyTokens&&(this._backgroundTokenizer.value=t.createBackgroundTokenizer(this._textModel,e)),this._backgroundTokenizer.value||this._textModel.isTooLargeForTokenization()||(this._backgroundTokenizer.value=this._defaultBackgroundTokenizer=new dr(this._tokenizer,e),this._defaultBackgroundTokenizer.handleChanges()),t?.backgroundTokenizerShouldOnlyVerifyTokens&&t.createBackgroundTokenizer?(this._debugBackgroundTokens=new yr(this._languageIdCodec),this._debugBackgroundStates=new lr(this._textModel.getLineCount()),this._debugBackgroundTokenizer.clear(),this._debugBackgroundTokenizer.value=t.createBackgroundTokenizer(this._textModel,{setTokens:e=>{this._debugBackgroundTokens?.setMultilineTokens(e,this._textModel)},backgroundTokenizationFinished(){},setEndState:(e,t)=>{this._debugBackgroundStates?.setEndState(e,t)}})):(this._debugBackgroundTokens=void 0,this._debugBackgroundStates=void 0,this._debugBackgroundTokenizer.value=void 0)}this.refreshAllVisibleLineTokens()}handleDidChangeAttached(){this._defaultBackgroundTokenizer?.handleChanges()}handleDidChangeContent(e){if(e.isFlush)this.resetTokenization(!1);else if(!e.isEolChange){for(const t of e.changes){const[e,n]=(0,u.W)(t.text);this._tokens.acceptEdit(t.range,e,n),this._debugBackgroundTokens?.acceptEdit(t.range,e,n)}this._debugBackgroundStates?.acceptChanges(e.changes),this._tokenizer&&this._tokenizer.store.acceptChanges(e.changes),this._defaultBackgroundTokenizer?.handleChanges()}}setTokens(e){const{changes:t}=this._tokens.setMultilineTokens(e,this._textModel);return t.length>0&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:t}),{changes:t}}refreshAllVisibleLineTokens(){const e=Qn.M.joinMany([...this._attachedViewStates].map((([e,t])=>t.lineRanges)));this.refreshRanges(e)}refreshRanges(e){for(const t of e)this.refreshRange(t.startLineNumber,t.endLineNumberExclusive-1)}refreshRange(e,t){if(!this._tokenizer)return;e=Math.max(1,Math.min(this._textModel.getLineCount(),e)),t=Math.min(this._textModel.getLineCount(),t);const n=new rr,{heuristicTokens:r}=this._tokenizer.tokenizeHeuristically(n,e,t),i=this.setTokens(n.finalize());if(r)for(const s of i.changes)this._backgroundTokenizer.value?.requestTokens(s.fromLineNumber,s.toLineNumber+1);this._defaultBackgroundTokenizer?.checkFinished()}forceTokenization(e){const t=new rr;this._tokenizer?.updateTokensUntilLine(t,e),this.setTokens(t.finalize()),this._defaultBackgroundTokenizer?.checkFinished()}hasAccurateTokensForLine(e){return!this._tokenizer||this._tokenizer.hasAccurateTokensForLine(e)}isCheapToTokenize(e){return!this._tokenizer||this._tokenizer.isCheapToTokenize(e)}getLineTokens(e){const t=this._textModel.getLineContent(e),n=this._tokens.getTokens(this._textModel.getLanguageId(),e-1,t);if(this._debugBackgroundTokens&&this._debugBackgroundStates&&this._tokenizer&&this._debugBackgroundStates.getFirstInvalidEndStateLineNumberOrMax()>e&&this._tokenizer.store.getFirstInvalidEndStateLineNumberOrMax()>e){const r=this._debugBackgroundTokens.getTokens(this._textModel.getLanguageId(),e-1,t);!n.equals(r)&&this._debugBackgroundTokenizer.value?.reportMismatchingTokens&&this._debugBackgroundTokenizer.value.reportMismatchingTokens(e)}return n}getTokenTypeIfInsertingCharacter(e,t,n){if(!this._tokenizer)return 0;const r=this._textModel.validatePosition(new f.y(e,t));return this.forceTokenization(r.lineNumber),this._tokenizer.getTokenTypeIfInsertingCharacter(r,n)}tokenizeLineWithEdit(e,t,n){if(!this._tokenizer)return null;const r=this._textModel.validatePosition(e);return this.forceTokenization(r.lineNumber),this._tokenizer.tokenizeLineWithEdit(r,t,n)}get hasTokens(){return this._tokens.hasTokens}}class Ar{constructor(){this.changeType=1}}class Ir{static applyInjectedText(e,t){if(!t||0===t.length)return e;let n="",r=0;for(const i of t)n+=e.substring(r,i.column-1),r=i.column-1,n+=i.options.content;return n+=e.substring(r),n}static fromDecorations(e){const t=[];for(const n of e)n.options.before&&n.options.before.content.length>0&&t.push(new Ir(n.ownerId,n.range.startLineNumber,n.range.startColumn,n.options.before,0)),n.options.after&&n.options.after.content.length>0&&t.push(new Ir(n.ownerId,n.range.endLineNumber,n.range.endColumn,n.options.after,1));return t.sort(((e,t)=>e.lineNumber===t.lineNumber?e.column===t.column?e.order-t.order:e.column-t.column:e.lineNumber-t.lineNumber)),t}constructor(e,t,n,r,i){this.ownerId=e,this.lineNumber=t,this.column=n,this.options=r,this.order=i}}class Or{constructor(e,t,n){this.changeType=2,this.lineNumber=e,this.detail=t,this.injectedText=n}}class Mr{constructor(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t}}class Rr{constructor(e,t,n,r){this.changeType=4,this.injectedTexts=r,this.fromLineNumber=e,this.toLineNumber=t,this.detail=n}}class Dr{constructor(){this.changeType=5}}class Br{constructor(e,t,n,r){this.changes=e,this.versionId=t,this.isUndoing=n,this.isRedoing=r,this.resultingSelection=null}containsEvent(e){for(let t=0,n=this.changes.length;t<n;t++){if(this.changes[t].changeType===e)return!0}return!1}static merge(e,t){const n=[].concat(e.changes).concat(t.changes),r=t.versionId,i=e.isUndoing||t.isUndoing,s=e.isRedoing||t.isRedoing;return new Br(n,r,i,s)}}class Fr{constructor(e){this.changes=e}}class Pr{constructor(e,t){this.rawContentChangedEvent=e,this.contentChangedEvent=t}merge(e){const t=Br.merge(this.rawContentChangedEvent,e.rawContentChangedEvent),n=Pr._mergeChangeEvents(this.contentChangedEvent,e.contentChangedEvent);return new Pr(t,n)}static _mergeChangeEvents(e,t){const n=[].concat(e.changes).concat(t.changes),r=t.eol,i=t.versionId,s=e.isUndoing||t.isUndoing,o=e.isRedoing||t.isRedoing,a=e.isFlush||t.isFlush;return{changes:n,eol:r,isEolChange:e.isEolChange&&t.isEolChange,versionId:i,isUndoing:s,isRedoing:o,isFlush:a}}}const Vr=(0,H.u1)("undoRedoService");class zr{static{this._ID=0}constructor(){this.id=zr._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}static{this.None=new zr}}class jr{static{this._ID=0}constructor(){this.id=jr._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}static{this.None=new jr}}var qr,Wr=function(e,t,n,r){var i,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,n,o):i(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},Ur=function(e,t){return function(n,r){t(n,r,e)}};function $r(e,t){let n;return n="string"===typeof e?function(e){const t=new Gn;return t.acceptChunk(e),t.finish()}(e):me.nk(e)?function(e){const t=new Gn;let n;for(;"string"===typeof(n=e.read());)t.acceptChunk(n);return t.finish()}(e):e,n.create(t)}let Hr=0;class Kr{constructor(e){this._source=e,this._eos=!1}read(){if(this._eos)return null;const e=[];let t=0,n=0;for(;;){const r=this._source.read();if(null===r)return this._eos=!0,0===t?null:e.join("");if(r.length>0&&(e[t++]=r,n+=r.length),n>=65536)return e.join("")}}}const Gr=()=>{throw new Error("Invalid change accessor")};let Qr=class extends i.jG{static{qr=this}static{this._MODEL_SYNC_LIMIT=52428800}static{this.LARGE_FILE_SIZE_THRESHOLD=20971520}static{this.LARGE_FILE_LINE_COUNT_THRESHOLD=3e5}static{this.LARGE_FILE_HEAP_OPERATION_THRESHOLD=268435456}static{this.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:b.tabSize,indentSize:b.indentSize,insertSpaces:b.insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:b.trimAutoWhitespace,largeFileOptimizations:b.largeFileOptimizations,bracketPairColorizationOptions:b.bracketPairColorizationOptions}}static resolveOptions(e,t){if(t.detectIndentation){const n=Xt(e,t.tabSize,t.insertSpaces);return new me.X2({tabSize:n.tabSize,indentSize:"tabSize",insertSpaces:n.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL,bracketPairColorizationOptions:t.bracketPairColorizationOptions})}return new me.X2(t)}get onDidChangeLanguage(){return this._tokenizationTextModelPart.onDidChangeLanguage}get onDidChangeLanguageConfiguration(){return this._tokenizationTextModelPart.onDidChangeLanguageConfiguration}get onDidChangeTokens(){return this._tokenizationTextModelPart.onDidChangeTokens}onDidChangeContent(e){return this._eventEmitter.slowEvent((t=>e(t.contentChangedEvent)))}onDidChangeContentOrInjectedText(e){return(0,i.qE)(this._eventEmitter.fastEvent((t=>e(t))),this._onDidChangeInjectedText.event((t=>e(t))))}_isDisposing(){return this.__isDisposing}get tokenization(){return this._tokenizationTextModelPart}get bracketPairs(){return this._bracketPairs}get guides(){return this._guidesTextModelPart}constructor(e,t,n,s=null,o,a,l,u){super(),this._undoRedoService=o,this._languageService=a,this._languageConfigurationService=l,this.instantiationService=u,this._onWillDispose=this._register(new r.vl),this.onWillDispose=this._onWillDispose.event,this._onDidChangeDecorations=this._register(new li((e=>this.handleBeforeFireDecorationsChangedEvent(e)))),this.onDidChangeDecorations=this._onDidChangeDecorations.event,this._onDidChangeOptions=this._register(new r.vl),this.onDidChangeOptions=this._onDidChangeOptions.event,this._onDidChangeAttached=this._register(new r.vl),this.onDidChangeAttached=this._onDidChangeAttached.event,this._onDidChangeInjectedText=this._register(new r.vl),this._eventEmitter=this._register(new ci),this._languageSelectionListener=this._register(new i.HE),this._deltaDecorationCallCnt=0,this._attachedViews=new gr,Hr++,this.id="$model"+Hr,this.isForSimpleWidget=n.isForSimpleWidget,this._associatedResource="undefined"===typeof s||null===s?h.r.parse("inmemory://model/"+Hr):s,this._attachedEditorCount=0;const{textBuffer:d,disposable:g}=$r(e,n.defaultEOL);this._buffer=d,this._bufferDisposable=g,this._options=qr.resolveOptions(this._buffer,n);const f="string"===typeof t?t:t.languageId;"string"!==typeof t&&(this._languageSelectionListener.value=t.onDidChange((()=>this._setLanguage(t.languageId)))),this._bracketPairs=this._register(new yt(this,this._languageConfigurationService)),this._guidesTextModelPart=this._register(new Kt(this,this._languageConfigurationService)),this._decorationProvider=this._register(new Nt(this)),this._tokenizationTextModelPart=this.instantiationService.createInstance(Nr,this,this._bracketPairs,f,this._attachedViews);const p=this._buffer.getLineCount(),b=this._buffer.getValueLengthInRange(new m.Q(1,1,p,this._buffer.getLineLength(p)+1),0);n.largeFileOptimizations?(this._isTooLargeForTokenization=b>qr.LARGE_FILE_SIZE_THRESHOLD||p>qr.LARGE_FILE_LINE_COUNT_THRESHOLD,this._isTooLargeForHeapOperation=b>qr.LARGE_FILE_HEAP_OPERATION_THRESHOLD):(this._isTooLargeForTokenization=!1,this._isTooLargeForHeapOperation=!1),this._isTooLargeForSyncing=b>qr._MODEL_SYNC_LIMIT,this._versionId=1,this._alternativeVersionId=1,this._initialUndoRedoSnapshot=null,this._isDisposed=!1,this.__isDisposing=!1,this._instanceId=c.tk(Hr),this._lastDecorationId=0,this._decorations=Object.create(null),this._decorationsTree=new Yr,this._commandManager=new jt(this,this._undoRedoService),this._isUndoing=!1,this._isRedoing=!1,this._trimAutoWhitespaceLines=null,this._register(this._decorationProvider.onDidChange((()=>{this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._onDidChangeDecorations.endDeferredEmit()}))),this._languageService.requestRichLanguageFeatures(f),this._register(this._languageConfigurationService.onDidChange((e=>{this._bracketPairs.handleLanguageConfigurationServiceChange(e),this._tokenizationTextModelPart.handleLanguageConfigurationServiceChange(e)})))}dispose(){this.__isDisposing=!0,this._onWillDispose.fire(),this._tokenizationTextModelPart.dispose(),this._isDisposed=!0,super.dispose(),this._bufferDisposable.dispose(),this.__isDisposing=!1;const e=new Hn([],"","\n",!1,!1,!0,!0);e.dispose(),this._buffer=e,this._bufferDisposable=i.jG.None}_assertNotDisposed(){if(this._isDisposed)throw new l.D7("Model is disposed!")}_emitContentChangedEvent(e,t){this.__isDisposing||(this._tokenizationTextModelPart.handleDidChangeContent(t),this._bracketPairs.handleDidChangeContent(t),this._eventEmitter.fire(new Pr(e,t)))}setValue(e){if(this._assertNotDisposed(),null===e||void 0===e)throw(0,l.Qg)();const{textBuffer:t,disposable:n}=$r(e,this._options.defaultEOL);this._setValueFromTextBuffer(t,n)}_createContentChanged2(e,t,n,r,i,s,o,a){return{changes:[{range:e,rangeOffset:t,rangeLength:n,text:r}],eol:this._buffer.getEOL(),isEolChange:a,versionId:this.getVersionId(),isUndoing:i,isRedoing:s,isFlush:o}}_setValueFromTextBuffer(e,t){this._assertNotDisposed();const n=this.getFullModelRange(),r=this.getValueLengthInRange(n),i=this.getLineCount(),s=this.getLineMaxColumn(i);this._buffer=e,this._bufferDisposable.dispose(),this._bufferDisposable=t,this._increaseVersionId(),this._decorations=Object.create(null),this._decorationsTree=new Yr,this._commandManager.clear(),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new Br([new Ar],this._versionId,!1,!1),this._createContentChanged2(new m.Q(1,1,i,s),0,r,this.getValue(),!1,!1,!0,!1))}setEOL(e){this._assertNotDisposed();const t=1===e?"\r\n":"\n";if(this._buffer.getEOL()===t)return;const n=this.getFullModelRange(),r=this.getValueLengthInRange(n),i=this.getLineCount(),s=this.getLineMaxColumn(i);this._onBeforeEOLChange(),this._buffer.setEOL(t),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new Br([new Dr],this._versionId,!1,!1),this._createContentChanged2(new m.Q(1,1,i,s),0,r,this.getValue(),!1,!1,!1,!0))}_onBeforeEOLChange(){this._decorationsTree.ensureAllNodesHaveRanges(this)}_onAfterEOLChange(){const e=this.getVersionId(),t=this._decorationsTree.collectNodesPostOrder();for(let n=0,r=t.length;n<r;n++){const r=t[n],i=r.range,s=r.cachedAbsoluteStart-r.start,o=this._buffer.getOffsetAt(i.startLineNumber,i.startColumn),a=this._buffer.getOffsetAt(i.endLineNumber,i.endColumn);r.cachedAbsoluteStart=o,r.cachedAbsoluteEnd=a,r.cachedVersionId=e,r.start=o-s,r.end=a-s,vn(r)}}onBeforeAttached(){return this._attachedEditorCount++,1===this._attachedEditorCount&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0)),this._attachedViews.attachView()}onBeforeDetached(e){this._attachedEditorCount--,0===this._attachedEditorCount&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0)),this._attachedViews.detachView(e)}isAttachedToEditor(){return this._attachedEditorCount>0}getAttachedEditorCount(){return this._attachedEditorCount}isTooLargeForSyncing(){return this._isTooLargeForSyncing}isTooLargeForTokenization(){return this._isTooLargeForTokenization}isTooLargeForHeapOperation(){return this._isTooLargeForHeapOperation}isDisposed(){return this._isDisposed}isDominatedByLongLines(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;let e=0,t=0;const n=this._buffer.getLineCount();for(let r=1;r<=n;r++){const n=this._buffer.getLineLength(r);n>=1e4?t+=n:e+=n}return t>e}get uri(){return this._associatedResource}getOptions(){return this._assertNotDisposed(),this._options}getFormattingOptions(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}}updateOptions(e){this._assertNotDisposed();const t="undefined"!==typeof e.tabSize?e.tabSize:this._options.tabSize,n="undefined"!==typeof e.indentSize?e.indentSize:this._options.originalIndentSize,r="undefined"!==typeof e.insertSpaces?e.insertSpaces:this._options.insertSpaces,i="undefined"!==typeof e.trimAutoWhitespace?e.trimAutoWhitespace:this._options.trimAutoWhitespace,s="undefined"!==typeof e.bracketColorizationOptions?e.bracketColorizationOptions:this._options.bracketPairColorizationOptions,o=new me.X2({tabSize:t,indentSize:n,insertSpaces:r,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:i,bracketPairColorizationOptions:s});if(this._options.equals(o))return;const a=this._options.createChangeEvent(o);this._options=o,this._bracketPairs.handleDidChangeOptions(a),this._decorationProvider.handleDidChangeOptions(a),this._onDidChangeOptions.fire(a)}detectIndentation(e,t){this._assertNotDisposed();const n=Xt(this._buffer,t,e);this.updateOptions({insertSpaces:n.insertSpaces,tabSize:n.tabSize,indentSize:n.tabSize})}normalizeIndentation(e){return this._assertNotDisposed(),g(e,this._options.indentSize,this._options.insertSpaces)}getVersionId(){return this._assertNotDisposed(),this._versionId}mightContainRTL(){return this._buffer.mightContainRTL()}mightContainUnusualLineTerminators(){return this._buffer.mightContainUnusualLineTerminators()}removeUnusualLineTerminators(e=null){const t=this.findMatches(c._J.source,!1,!0,!1,null,!1,1073741824);this._buffer.resetMightContainUnusualLineTerminators(),this.pushEditOperations(e,t.map((e=>({range:e.range,text:null}))),(()=>null))}mightContainNonBasicASCII(){return this._buffer.mightContainNonBasicASCII()}getAlternativeVersionId(){return this._assertNotDisposed(),this._alternativeVersionId}getInitialUndoRedoSnapshot(){return this._assertNotDisposed(),this._initialUndoRedoSnapshot}getOffsetAt(e){this._assertNotDisposed();const t=this._validatePosition(e.lineNumber,e.column,0);return this._buffer.getOffsetAt(t.lineNumber,t.column)}getPositionAt(e){this._assertNotDisposed();const t=Math.min(this._buffer.getLength(),Math.max(0,e));return this._buffer.getPositionAt(t)}_increaseVersionId(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId}_overwriteVersionId(e){this._versionId=e}_overwriteAlternativeVersionId(e){this._alternativeVersionId=e}_overwriteInitialUndoRedoSnapshot(e){this._initialUndoRedoSnapshot=e}getValue(e,t=!1){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new l.D7("Operation would exceed heap memory limits");const n=this.getFullModelRange(),r=this.getValueInRange(n,e);return t?this._buffer.getBOM()+r:r}createSnapshot(e=!1){return new Kr(this._buffer.createSnapshot(e))}getValueLength(e,t=!1){this._assertNotDisposed();const n=this.getFullModelRange(),r=this.getValueLengthInRange(n,e);return t?this._buffer.getBOM().length+r:r}getValueInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(e),t)}getValueLengthInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(e),t)}getCharacterCountInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(e),t)}getLineCount(){return this._assertNotDisposed(),this._buffer.getLineCount()}getLineContent(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineContent(e)}getLineLength(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineLength(e)}getLinesContent(){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new l.D7("Operation would exceed heap memory limits");return this._buffer.getLinesContent()}getEOL(){return this._assertNotDisposed(),this._buffer.getEOL()}getEndOfLineSequence(){return this._assertNotDisposed(),"\n"===this._buffer.getEOL()?0:1}getLineMinColumn(e){return this._assertNotDisposed(),1}getLineMaxColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineLength(e)+1}getLineFirstNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)}getLineLastNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)}_validateRangeRelaxedNoAllocations(e){const t=this._buffer.getLineCount(),n=e.startLineNumber,r=e.startColumn;let i=Math.floor("number"!==typeof n||isNaN(n)?1:n),s=Math.floor("number"!==typeof r||isNaN(r)?1:r);if(i<1)i=1,s=1;else if(i>t)i=t,s=this.getLineMaxColumn(i);else if(s<=1)s=1;else{const e=this.getLineMaxColumn(i);s>=e&&(s=e)}const o=e.endLineNumber,a=e.endColumn;let l=Math.floor("number"!==typeof o||isNaN(o)?1:o),c=Math.floor("number"!==typeof a||isNaN(a)?1:a);if(l<1)l=1,c=1;else if(l>t)l=t,c=this.getLineMaxColumn(l);else if(c<=1)c=1;else{const e=this.getLineMaxColumn(l);c>=e&&(c=e)}return n===i&&r===s&&o===l&&a===c&&e instanceof m.Q&&!(e instanceof p.L)?e:new m.Q(i,s,l,c)}_isValidPosition(e,t,n){if("number"!==typeof e||"number"!==typeof t)return!1;if(isNaN(e)||isNaN(t))return!1;if(e<1||t<1)return!1;if((0|e)!==e||(0|t)!==t)return!1;if(e>this._buffer.getLineCount())return!1;if(1===t)return!0;if(t>this.getLineMaxColumn(e))return!1;if(1===n){const n=this._buffer.getLineCharCode(e,t-2);if(c.pc(n))return!1}return!0}_validatePosition(e,t,n){const r=Math.floor("number"!==typeof e||isNaN(e)?1:e),i=Math.floor("number"!==typeof t||isNaN(t)?1:t),s=this._buffer.getLineCount();if(r<1)return new f.y(1,1);if(r>s)return new f.y(s,this.getLineMaxColumn(s));if(i<=1)return new f.y(r,1);const o=this.getLineMaxColumn(r);if(i>=o)return new f.y(r,o);if(1===n){const e=this._buffer.getLineCharCode(r,i-2);if(c.pc(e))return new f.y(r,i-1)}return new f.y(r,i)}validatePosition(e){return this._assertNotDisposed(),e instanceof f.y&&this._isValidPosition(e.lineNumber,e.column,1)?e:this._validatePosition(e.lineNumber,e.column,1)}_isValidRange(e,t){const n=e.startLineNumber,r=e.startColumn,i=e.endLineNumber,s=e.endColumn;if(!this._isValidPosition(n,r,0))return!1;if(!this._isValidPosition(i,s,0))return!1;if(1===t){const e=r>1?this._buffer.getLineCharCode(n,r-2):0,t=s>1&&s<=this._buffer.getLineLength(i)?this._buffer.getLineCharCode(i,s-2):0,o=c.pc(e),a=c.pc(t);return!o&&!a}return!0}validateRange(e){if(this._assertNotDisposed(),e instanceof m.Q&&!(e instanceof p.L)&&this._isValidRange(e,1))return e;const t=this._validatePosition(e.startLineNumber,e.startColumn,0),n=this._validatePosition(e.endLineNumber,e.endColumn,0),r=t.lineNumber,i=t.column,s=n.lineNumber,o=n.column;{const e=i>1?this._buffer.getLineCharCode(r,i-2):0,t=o>1&&o<=this._buffer.getLineLength(s)?this._buffer.getLineCharCode(s,o-2):0,n=c.pc(e),a=c.pc(t);return n||a?r===s&&i===o?new m.Q(r,i-1,s,o-1):n&&a?new m.Q(r,i-1,s,o+1):n?new m.Q(r,i-1,s,o):new m.Q(r,i,s,o+1):new m.Q(r,i,s,o)}}modifyPosition(e,t){this._assertNotDisposed();const n=this.getOffsetAt(e)+t;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,n)))}getFullModelRange(){this._assertNotDisposed();const e=this.getLineCount();return new m.Q(1,1,e,this.getLineMaxColumn(e))}findMatchesLineByLine(e,t,n,r){return this._buffer.findMatchesLineByLine(e,t,n,r)}findMatches(e,t,n,r,i,s,o=999){this._assertNotDisposed();let a=null;null!==t&&(Array.isArray(t)||(t=[t]),t.every((e=>m.Q.isIRange(e)))&&(a=t.map((e=>this.validateRange(e))))),null===a&&(a=[this.getFullModelRange()]),a=a.sort(((e,t)=>e.startLineNumber-t.startLineNumber||e.startColumn-t.startColumn));const l=[];let c;if(l.push(a.reduce(((e,t)=>m.Q.areIntersecting(e,t)?e.plusRange(t):(l.push(e),t)))),!n&&e.indexOf("\n")<0){const t=new Bn.lt(e,n,r,i).parseSearchRequest();if(!t)return[];c=e=>this.findMatchesLineByLine(e,t,s,o)}else c=t=>Bn.hB.findMatches(this,new Bn.lt(e,n,r,i),t,s,o);return l.map(c).reduce(((e,t)=>e.concat(t)),[])}findNextMatch(e,t,n,r,i,s){this._assertNotDisposed();const o=this.validatePosition(t);if(!n&&e.indexOf("\n")<0){const t=new Bn.lt(e,n,r,i).parseSearchRequest();if(!t)return null;const a=this.getLineCount();let l=new m.Q(o.lineNumber,o.column,a,this.getLineMaxColumn(a)),c=this.findMatchesLineByLine(l,t,s,1);return Bn.hB.findNextMatch(this,new Bn.lt(e,n,r,i),o,s),c.length>0?c[0]:(l=new m.Q(1,1,o.lineNumber,this.getLineMaxColumn(o.lineNumber)),c=this.findMatchesLineByLine(l,t,s,1),c.length>0?c[0]:null)}return Bn.hB.findNextMatch(this,new Bn.lt(e,n,r,i),o,s)}findPreviousMatch(e,t,n,r,i,s){this._assertNotDisposed();const o=this.validatePosition(t);return Bn.hB.findPreviousMatch(this,new Bn.lt(e,n,r,i),o,s)}pushStackElement(){this._commandManager.pushStackElement()}popStackElement(){this._commandManager.popStackElement()}pushEOL(e){if(("\n"===this.getEOL()?0:1)!==e)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEOL(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_validateEditOperation(e){return e instanceof me.Wo?e:new me.Wo(e.identifier||null,this.validateRange(e.range),e.text,e.forceMoveMarkers||!1,e.isAutoWhitespaceEdit||!1,e._isTracked||!1)}_validateEditOperations(e){const t=[];for(let n=0,r=e.length;n<r;n++)t[n]=this._validateEditOperation(e[n]);return t}pushEditOperations(e,t,n,r){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(e,this._validateEditOperations(t),n,r)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_pushEditOperations(e,t,n,r){if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){const n=t.map((e=>({range:this.validateRange(e.range),text:e.text})));let r=!0;if(e)for(let t=0,i=e.length;t<i;t++){const i=e[t];let s=!1;for(let e=0,t=n.length;e<t;e++){const t=n[e].range,r=t.startLineNumber>i.endLineNumber,o=i.startLineNumber>t.endLineNumber;if(!r&&!o){s=!0;break}}if(!s){r=!1;break}}if(r)for(let e=0,i=this._trimAutoWhitespaceLines.length;e<i;e++){const r=this._trimAutoWhitespaceLines[e],i=this.getLineMaxColumn(r);let s=!0;for(let e=0,t=n.length;e<t;e++){const t=n[e].range,o=n[e].text;if(!(r<t.startLineNumber||r>t.endLineNumber)&&(!(r===t.startLineNumber&&t.startColumn===i&&t.isEmpty()&&o&&o.length>0&&"\n"===o.charAt(0))&&!(r===t.startLineNumber&&1===t.startColumn&&t.isEmpty()&&o&&o.length>0&&"\n"===o.charAt(o.length-1)))){s=!1;break}}if(s){const e=new m.Q(r,1,r,i);t.push(new me.Wo(null,e,null,!1,!1,!1))}}this._trimAutoWhitespaceLines=null}return null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEditOperation(e,t,n,r)}_applyUndo(e,t,n,r){const i=e.map((e=>{const t=this.getPositionAt(e.newPosition),n=this.getPositionAt(e.newEnd);return{range:new m.Q(t.lineNumber,t.column,n.lineNumber,n.column),text:e.oldText}}));this._applyUndoRedoEdits(i,t,!0,!1,n,r)}_applyRedo(e,t,n,r){const i=e.map((e=>{const t=this.getPositionAt(e.oldPosition),n=this.getPositionAt(e.oldEnd);return{range:new m.Q(t.lineNumber,t.column,n.lineNumber,n.column),text:e.newText}}));this._applyUndoRedoEdits(i,t,!1,!0,n,r)}_applyUndoRedoEdits(e,t,n,r,i,s){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._isUndoing=n,this._isRedoing=r,this.applyEdits(e,!1),this.setEOL(t),this._overwriteAlternativeVersionId(i)}finally{this._isUndoing=!1,this._isRedoing=!1,this._eventEmitter.endDeferredEmit(s),this._onDidChangeDecorations.endDeferredEmit()}}applyEdits(e,t=!1){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit();const n=this._validateEditOperations(e);return this._doApplyEdits(n,t)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_doApplyEdits(e,t){const n=this._buffer.getLineCount(),r=this._buffer.applyEdits(e,this._options.trimAutoWhitespace,t),i=this._buffer.getLineCount(),s=r.changes;if(this._trimAutoWhitespaceLines=r.trimAutoWhitespaceLineNumbers,0!==s.length){for(let n=0,r=s.length;n<r;n++){const e=s[n];this._decorationsTree.acceptReplace(e.rangeOffset,e.rangeLength,e.text.length,e.forceMoveMarkers)}const e=[];this._increaseVersionId();let t=n;for(let n=0,r=s.length;n<r;n++){const r=s[n],[a]=(0,u.W)(r.text);this._onDidChangeDecorations.fire();const l=r.range.startLineNumber,c=r.range.endLineNumber,h=c-l,d=a,g=Math.min(h,d),m=d-h,p=i-t-m+l,b=p,_=p+d,k=this._decorationsTree.getInjectedTextInInterval(this,this.getOffsetAt(new f.y(b,1)),this.getOffsetAt(new f.y(_,this.getLineMaxColumn(_))),0),v=Ir.fromDecorations(k),C=new o.j3(v);for(let t=g;t>=0;t--){const n=l+t,r=p+t;C.takeFromEndWhile((e=>e.lineNumber>r));const i=C.takeFromEndWhile((e=>e.lineNumber===r));e.push(new Or(n,this.getLineContent(r),i))}if(g<h){const t=l+g;e.push(new Mr(t+1,c))}if(g<d){const n=new o.j3(v),r=l+g,s=d-g,a=i-t-s+r+1,c=[],h=[];for(let e=0;e<s;e++){const t=a+e;h[e]=this.getLineContent(t),n.takeWhile((e=>e.lineNumber<t)),c[e]=n.takeWhile((e=>e.lineNumber===t))}e.push(new Rr(r+1,l+d,h,c))}t+=m}this._emitContentChangedEvent(new Br(e,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:s,eol:this._buffer.getEOL(),isEolChange:!1,versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return null===r.reverseEdits?void 0:r.reverseEdits}undo(){return this._undoRedoService.undo(this.uri)}canUndo(){return this._undoRedoService.canUndo(this.uri)}redo(){return this._undoRedoService.redo(this.uri)}canRedo(){return this._undoRedoService.canRedo(this.uri)}handleBeforeFireDecorationsChangedEvent(e){if(null===e||0===e.size)return;const t=Array.from(e).map((e=>new Or(e,this.getLineContent(e),this._getInjectedTextInLine(e))));this._onDidChangeInjectedText.fire(new Fr(t))}changeDecorations(e,t=0){this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(t,e)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_changeDecorations(e,t){const n={addDecoration:(t,n)=>this._deltaDecorationsImpl(e,[],[{range:t,options:n}])[0],changeDecoration:(e,t)=>{this._changeDecorationImpl(e,t)},changeDecorationOptions:(e,t)=>{this._changeDecorationOptionsImpl(e,ai(t))},removeDecoration:t=>{this._deltaDecorationsImpl(e,[t],[])},deltaDecorations:(t,n)=>0===t.length&&0===n.length?[]:this._deltaDecorationsImpl(e,t,n)};let r=null;try{r=t(n)}catch(i){(0,l.dz)(i)}return n.addDecoration=Gr,n.changeDecoration=Gr,n.changeDecorationOptions=Gr,n.removeDecoration=Gr,n.deltaDecorations=Gr,r}deltaDecorations(e,t,n=0){if(this._assertNotDisposed(),e||(e=[]),0===e.length&&0===t.length)return[];try{return this._deltaDecorationCallCnt++,this._deltaDecorationCallCnt>1&&(console.warn("Invoking deltaDecorations recursively could lead to leaking decorations."),(0,l.dz)(new Error("Invoking deltaDecorations recursively could lead to leaking decorations."))),this._onDidChangeDecorations.beginDeferredEmit(),this._deltaDecorationsImpl(n,e,t)}finally{this._onDidChangeDecorations.endDeferredEmit(),this._deltaDecorationCallCnt--}}_getTrackedRange(e){return this.getDecorationRange(e)}_setTrackedRange(e,t,n){const r=e?this._decorations[e]:null;if(!r)return t?this._deltaDecorationsImpl(0,[],[{range:t,options:oi[n]}],!0)[0]:null;if(!t)return this._decorationsTree.delete(r),delete this._decorations[r.id],null;const i=this._validateRangeRelaxedNoAllocations(t),s=this._buffer.getOffsetAt(i.startLineNumber,i.startColumn),o=this._buffer.getOffsetAt(i.endLineNumber,i.endColumn);return this._decorationsTree.delete(r),r.reset(this.getVersionId(),s,o,i),r.setOptions(oi[n]),this._decorationsTree.insert(r),r.id}removeAllDecorationsWithOwnerId(e){if(this._isDisposed)return;const t=this._decorationsTree.collectNodesFromOwner(e);for(let n=0,r=t.length;n<r;n++){const e=t[n];this._decorationsTree.delete(e),delete this._decorations[e.id]}}getDecorationOptions(e){const t=this._decorations[e];return t?t.options:null}getDecorationRange(e){const t=this._decorations[e];return t?this._decorationsTree.getNodeRange(this,t):null}getLineDecorations(e,t=0,n=!1){return e<1||e>this.getLineCount()?[]:this.getLinesDecorations(e,e,t,n)}getLinesDecorations(e,t,n=0,r=!1,i=!1){const s=this.getLineCount(),a=Math.min(s,Math.max(1,e)),l=Math.min(s,Math.max(1,t)),c=this.getLineMaxColumn(l),h=new m.Q(a,1,l,c),u=this._getDecorationsInRange(h,n,r,i);return(0,o.E4)(u,this._decorationProvider.getDecorationsInRange(h,n,r)),u}getDecorationsInRange(e,t=0,n=!1,r=!1,i=!1){const s=this.validateRange(e),a=this._getDecorationsInRange(s,t,n,i);return(0,o.E4)(a,this._decorationProvider.getDecorationsInRange(s,t,n,r)),a}getOverviewRulerDecorations(e=0,t=!1){return this._decorationsTree.getAll(this,e,t,!0,!1)}getInjectedTextDecorations(e=0){return this._decorationsTree.getAllInjectedText(this,e)}_getInjectedTextInLine(e){const t=this._buffer.getOffsetAt(e,1),n=t+this._buffer.getLineLength(e),r=this._decorationsTree.getInjectedTextInInterval(this,t,n,0);return Ir.fromDecorations(r).filter((t=>t.lineNumber===e))}getAllDecorations(e=0,t=!1){let n=this._decorationsTree.getAll(this,e,t,!1,!1);return n=n.concat(this._decorationProvider.getAllDecorations(e,t)),n}getAllMarginDecorations(e=0){return this._decorationsTree.getAll(this,e,!1,!1,!0)}_getDecorationsInRange(e,t,n,r){const i=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),s=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn);return this._decorationsTree.getAllInInterval(this,i,s,t,n,r)}getRangeAt(e,t){return this._buffer.getRangeAt(e,t-e)}_changeDecorationImpl(e,t){const n=this._decorations[e];if(!n)return;if(n.options.after){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.endLineNumber)}if(n.options.before){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.startLineNumber)}const r=this._validateRangeRelaxedNoAllocations(t),i=this._buffer.getOffsetAt(r.startLineNumber,r.startColumn),s=this._buffer.getOffsetAt(r.endLineNumber,r.endColumn);this._decorationsTree.delete(n),n.reset(this.getVersionId(),i,s,r),this._decorationsTree.insert(n),this._onDidChangeDecorations.checkAffectedAndFire(n.options),n.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(r.endLineNumber),n.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(r.startLineNumber)}_changeDecorationOptionsImpl(e,t){const n=this._decorations[e];if(!n)return;const r=!(!n.options.overviewRuler||!n.options.overviewRuler.color),i=!(!t.overviewRuler||!t.overviewRuler.color);if(this._onDidChangeDecorations.checkAffectedAndFire(n.options),this._onDidChangeDecorations.checkAffectedAndFire(t),n.options.after||t.after){const e=this._decorationsTree.getNodeRange(this,n);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(n.options.before||t.before){const e=this._decorationsTree.getNodeRange(this,n);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}const s=r!==i,o=function(e){return!!e.after||!!e.before}(t)!==Xr(n);s||o?(this._decorationsTree.delete(n),n.setOptions(t),this._decorationsTree.insert(n)):n.setOptions(t)}_deltaDecorationsImpl(e,t,n,r=!1){const i=this.getVersionId(),s=t.length;let o=0;const a=n.length;let l=0;this._onDidChangeDecorations.beginDeferredEmit();try{const c=new Array(a);for(;o<s||l<a;){let h=null;if(o<s){do{h=this._decorations[t[o++]]}while(!h&&o<s);if(h){if(h.options.after){const e=this._decorationsTree.getNodeRange(this,h);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(h.options.before){const e=this._decorationsTree.getNodeRange(this,h);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}this._decorationsTree.delete(h),r||this._onDidChangeDecorations.checkAffectedAndFire(h.options)}}if(l<a){if(!h){const e=++this._lastDecorationId,t=`${this._instanceId};${e}`;h=new cn(t,0,0),this._decorations[t]=h}const t=n[l],s=this._validateRangeRelaxedNoAllocations(t.range),o=ai(t.options),a=this._buffer.getOffsetAt(s.startLineNumber,s.startColumn),u=this._buffer.getOffsetAt(s.endLineNumber,s.endColumn);h.ownerId=e,h.reset(i,a,u,s),h.setOptions(o),h.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(s.endLineNumber),h.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(s.startLineNumber),r||this._onDidChangeDecorations.checkAffectedAndFire(o),this._decorationsTree.insert(h),c[l]=h.id,l++}else h&&delete this._decorations[h.id]}return c}finally{this._onDidChangeDecorations.endDeferredEmit()}}getLanguageId(){return this.tokenization.getLanguageId()}setLanguage(e,t){"string"===typeof e?(this._languageSelectionListener.clear(),this._setLanguage(e,t)):(this._languageSelectionListener.value=e.onDidChange((()=>this._setLanguage(e.languageId,t))),this._setLanguage(e.languageId,t))}_setLanguage(e,t){this.tokenization.setLanguageId(e,t),this._languageService.requestRichLanguageFeatures(e)}getLanguageIdAtPosition(e,t){return this.tokenization.getLanguageIdAtPosition(e,t)}getWordAtPosition(e){return this._tokenizationTextModelPart.getWordAtPosition(e)}getWordUntilPosition(e){return this._tokenizationTextModelPart.getWordUntilPosition(e)}normalizePosition(e,t){return e}getLineIndentColumn(e){return function(e){let t=0;for(const n of e){if(" "!==n&&"\t"!==n)break;t++}return t}(this.getLineContent(e))+1}};function Jr(e){return!(!e.options.overviewRuler||!e.options.overviewRuler.color)}function Xr(e){return!!e.options.after||!!e.options.before}Qr=qr=Wr([Ur(4,Vr),Ur(5,k.L),Ur(6,se),Ur(7,H._Y)],Qr);class Yr{constructor(){this._decorationsTree0=new un,this._decorationsTree1=new un,this._injectedTextDecorationsTree=new un}ensureAllNodesHaveRanges(e){this.getAll(e,0,!1,!1,!1)}_ensureNodesHaveRanges(e,t){for(const n of t)null===n.range&&(n.range=e.getRangeAt(n.cachedAbsoluteStart,n.cachedAbsoluteEnd));return t}getAllInInterval(e,t,n,r,i,s){const o=e.getVersionId(),a=this._intervalSearch(t,n,r,i,o,s);return this._ensureNodesHaveRanges(e,a)}_intervalSearch(e,t,n,r,i,s){const o=this._decorationsTree0.intervalSearch(e,t,n,r,i,s),a=this._decorationsTree1.intervalSearch(e,t,n,r,i,s),l=this._injectedTextDecorationsTree.intervalSearch(e,t,n,r,i,s);return o.concat(a).concat(l)}getInjectedTextInInterval(e,t,n,r){const i=e.getVersionId(),s=this._injectedTextDecorationsTree.intervalSearch(t,n,r,!1,i,!1);return this._ensureNodesHaveRanges(e,s).filter((e=>e.options.showIfCollapsed||!e.range.isEmpty()))}getAllInjectedText(e,t){const n=e.getVersionId(),r=this._injectedTextDecorationsTree.search(t,!1,n,!1);return this._ensureNodesHaveRanges(e,r).filter((e=>e.options.showIfCollapsed||!e.range.isEmpty()))}getAll(e,t,n,r,i){const s=e.getVersionId(),o=this._search(t,n,r,s,i);return this._ensureNodesHaveRanges(e,o)}_search(e,t,n,r,i){if(n)return this._decorationsTree1.search(e,t,r,i);{const n=this._decorationsTree0.search(e,t,r,i),s=this._decorationsTree1.search(e,t,r,i),o=this._injectedTextDecorationsTree.search(e,t,r,i);return n.concat(s).concat(o)}}collectNodesFromOwner(e){const t=this._decorationsTree0.collectNodesFromOwner(e),n=this._decorationsTree1.collectNodesFromOwner(e),r=this._injectedTextDecorationsTree.collectNodesFromOwner(e);return t.concat(n).concat(r)}collectNodesPostOrder(){const e=this._decorationsTree0.collectNodesPostOrder(),t=this._decorationsTree1.collectNodesPostOrder(),n=this._injectedTextDecorationsTree.collectNodesPostOrder();return e.concat(t).concat(n)}insert(e){Xr(e)?this._injectedTextDecorationsTree.insert(e):Jr(e)?this._decorationsTree1.insert(e):this._decorationsTree0.insert(e)}delete(e){Xr(e)?this._injectedTextDecorationsTree.delete(e):Jr(e)?this._decorationsTree1.delete(e):this._decorationsTree0.delete(e)}getNodeRange(e,t){const n=e.getVersionId();return t.cachedVersionId!==n&&this._resolveNode(t,n),null===t.range&&(t.range=e.getRangeAt(t.cachedAbsoluteStart,t.cachedAbsoluteEnd)),t.range}_resolveNode(e,t){Xr(e)?this._injectedTextDecorationsTree.resolveNode(e,t):Jr(e)?this._decorationsTree1.resolveNode(e,t):this._decorationsTree0.resolveNode(e,t)}acceptReplace(e,t,n,r){this._decorationsTree0.acceptReplace(e,t,n,r),this._decorationsTree1.acceptReplace(e,t,n,r),this._injectedTextDecorationsTree.acceptReplace(e,t,n,r)}}function Zr(e){return e.replace(/[^a-z0-9\-_]/gi," ")}class ei{constructor(e){this.color=e.color||"",this.darkColor=e.darkColor||""}}class ti extends ei{constructor(e){super(e),this._resolvedColor=null,this.position="number"===typeof e.position?e.position:me.A5.Center}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=null}_resolveColor(e,t){if("string"===typeof e)return e;const n=e?t.getColor(e.id):null;return n?n.toString():""}}class ni{constructor(e){this.position=e?.position??me.ZS.Center,this.persistLane=e?.persistLane}}class ri extends ei{constructor(e){super(e),this.position=e.position,this.sectionHeaderStyle=e.sectionHeaderStyle??null,this.sectionHeaderText=e.sectionHeaderText??null}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=void 0}_resolveColor(e,t){return"string"===typeof e?a.Q1.fromHex(e):t.getColor(e.id)}}class ii{static from(e){return e instanceof ii?e:new ii(e)}constructor(e){this.content=e.content||"",this.inlineClassName=e.inlineClassName||null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.attachedData=e.attachedData||null,this.cursorStops=e.cursorStops||null}}class si{static register(e){return new si(e)}static createDynamic(e){return new si(e)}constructor(e){this.description=e.description,this.blockClassName=e.blockClassName?Zr(e.blockClassName):null,this.blockDoesNotCollapse=e.blockDoesNotCollapse??null,this.blockIsAfterEnd=e.blockIsAfterEnd??null,this.blockPadding=e.blockPadding??null,this.stickiness=e.stickiness||0,this.zIndex=e.zIndex||0,this.className=e.className?Zr(e.className):null,this.shouldFillLineOnLineBreak=e.shouldFillLineOnLineBreak??null,this.hoverMessage=e.hoverMessage||null,this.glyphMarginHoverMessage=e.glyphMarginHoverMessage||null,this.lineNumberHoverMessage=e.lineNumberHoverMessage||null,this.isWholeLine=e.isWholeLine||!1,this.showIfCollapsed=e.showIfCollapsed||!1,this.collapseOnReplaceEdit=e.collapseOnReplaceEdit||!1,this.overviewRuler=e.overviewRuler?new ti(e.overviewRuler):null,this.minimap=e.minimap?new ri(e.minimap):null,this.glyphMargin=e.glyphMarginClassName?new ni(e.glyphMargin):null,this.glyphMarginClassName=e.glyphMarginClassName?Zr(e.glyphMarginClassName):null,this.linesDecorationsClassName=e.linesDecorationsClassName?Zr(e.linesDecorationsClassName):null,this.lineNumberClassName=e.lineNumberClassName?Zr(e.lineNumberClassName):null,this.linesDecorationsTooltip=e.linesDecorationsTooltip?c.jy(e.linesDecorationsTooltip):null,this.firstLineDecorationClassName=e.firstLineDecorationClassName?Zr(e.firstLineDecorationClassName):null,this.marginClassName=e.marginClassName?Zr(e.marginClassName):null,this.inlineClassName=e.inlineClassName?Zr(e.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=e.beforeContentClassName?Zr(e.beforeContentClassName):null,this.afterContentClassName=e.afterContentClassName?Zr(e.afterContentClassName):null,this.after=e.after?ii.from(e.after):null,this.before=e.before?ii.from(e.before):null,this.hideInCommentTokens=e.hideInCommentTokens??!1,this.hideInStringTokens=e.hideInStringTokens??!1}}si.EMPTY=si.register({description:"empty"});const oi=[si.register({description:"tracked-range-always-grows-when-typing-at-edges",stickiness:0}),si.register({description:"tracked-range-never-grows-when-typing-at-edges",stickiness:1}),si.register({description:"tracked-range-grows-only-when-typing-before",stickiness:2}),si.register({description:"tracked-range-grows-only-when-typing-after",stickiness:3})];function ai(e){return e instanceof si?e:si.createDynamic(e)}class li extends i.jG{constructor(e){super(),this.handleBeforeFire=e,this._actual=this._register(new r.vl),this.event=this._actual.event,this._affectedInjectedTextLines=null,this._deferredCnt=0,this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._affectsLineNumber=!1}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(){this._deferredCnt--,0===this._deferredCnt&&(this._shouldFireDeferred&&this.doFire(),this._affectedInjectedTextLines?.clear(),this._affectedInjectedTextLines=null)}recordLineAffectedByInjectedText(e){this._affectedInjectedTextLines||(this._affectedInjectedTextLines=new Set),this._affectedInjectedTextLines.add(e)}checkAffectedAndFire(e){this._affectsMinimap||=!!e.minimap?.position,this._affectsOverviewRuler||=!!e.overviewRuler?.color,this._affectsGlyphMargin||=!!e.glyphMarginClassName,this._affectsLineNumber||=!!e.lineNumberClassName,this.tryFire()}fire(){this._affectsMinimap=!0,this._affectsOverviewRuler=!0,this._affectsGlyphMargin=!0,this.tryFire()}tryFire(){0===this._deferredCnt?this.doFire():this._shouldFireDeferred=!0}doFire(){this.handleBeforeFire(this._affectedInjectedTextLines);const e={affectsMinimap:this._affectsMinimap,affectsOverviewRuler:this._affectsOverviewRuler,affectsGlyphMargin:this._affectsGlyphMargin,affectsLineNumber:this._affectsLineNumber};this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._actual.fire(e)}}class ci extends i.jG{constructor(){super(),this._fastEmitter=this._register(new r.vl),this.fastEvent=this._fastEmitter.event,this._slowEmitter=this._register(new r.vl),this.slowEvent=this._slowEmitter.event,this._deferredCnt=0,this._deferredEvent=null}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(e=null){if(this._deferredCnt--,0===this._deferredCnt&&null!==this._deferredEvent){this._deferredEvent.rawContentChangedEvent.resultingSelection=e;const t=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(t),this._slowEmitter.fire(t)}}fire(e){this._deferredCnt>0?this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e:(this._fastEmitter.fire(e),this._slowEmitter.fire(e))}}var hi,ui=n(360),di=n(5600),gi=n(6456),fi=n(146),mi=function(e,t,n,r){var i,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,n,o):i(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},pi=function(e,t){return function(n,r){t(n,r,e)}};function bi(e){return e.toString()}class _i{constructor(e,t,n){this.model=e,this._modelEventListeners=new i.Cm,this.model=e,this._modelEventListeners.add(e.onWillDispose((()=>t(e)))),this._modelEventListeners.add(e.onDidChangeLanguage((t=>n(e,t))))}dispose(){this._modelEventListeners.dispose()}}const ki=s.j9||s.zx?1:2;class vi{constructor(e,t,n,r,i,s,o,a){this.uri=e,this.initialUndoRedoSnapshot=t,this.time=n,this.sharesUndoRedoStack=r,this.heapSize=i,this.sha1=s,this.versionId=o,this.alternativeVersionId=a}}let Ci=class extends i.jG{static{hi=this}static{this.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK=20971520}constructor(e,t,n,i){super(),this._configurationService=e,this._resourcePropertiesService=t,this._undoRedoService=n,this._instantiationService=i,this._onModelAdded=this._register(new r.vl),this.onModelAdded=this._onModelAdded.event,this._onModelRemoved=this._register(new r.vl),this.onModelRemoved=this._onModelRemoved.event,this._onModelModeChanged=this._register(new r.vl),this.onModelLanguageChanged=this._onModelModeChanged.event,this._modelCreationOptionsByLanguageAndResource=Object.create(null),this._models={},this._disposedModels=new Map,this._disposedModelsHeapSize=0,this._register(this._configurationService.onDidChangeConfiguration((e=>this._updateModelOptions(e)))),this._updateModelOptions(void 0)}static _readModelOptions(e,t){let n=b.tabSize;if(e.editor&&"undefined"!==typeof e.editor.tabSize){const t=parseInt(e.editor.tabSize,10);isNaN(t)||(n=t),n<1&&(n=1)}let r="tabSize";if(e.editor&&"undefined"!==typeof e.editor.indentSize&&"tabSize"!==e.editor.indentSize){const t=parseInt(e.editor.indentSize,10);isNaN(t)||(r=Math.max(t,1))}let i=b.insertSpaces;e.editor&&"undefined"!==typeof e.editor.insertSpaces&&(i="false"!==e.editor.insertSpaces&&Boolean(e.editor.insertSpaces));let s=ki;const o=e.eol;"\r\n"===o?s=2:"\n"===o&&(s=1);let a=b.trimAutoWhitespace;e.editor&&"undefined"!==typeof e.editor.trimAutoWhitespace&&(a="false"!==e.editor.trimAutoWhitespace&&Boolean(e.editor.trimAutoWhitespace));let l=b.detectIndentation;e.editor&&"undefined"!==typeof e.editor.detectIndentation&&(l="false"!==e.editor.detectIndentation&&Boolean(e.editor.detectIndentation));let c=b.largeFileOptimizations;e.editor&&"undefined"!==typeof e.editor.largeFileOptimizations&&(c="false"!==e.editor.largeFileOptimizations&&Boolean(e.editor.largeFileOptimizations));let h=b.bracketPairColorizationOptions;return e.editor?.bracketPairColorization&&"object"===typeof e.editor.bracketPairColorization&&(h={enabled:!!e.editor.bracketPairColorization.enabled,independentColorPoolPerBracketType:!!e.editor.bracketPairColorization.independentColorPoolPerBracketType}),{isForSimpleWidget:t,tabSize:n,indentSize:r,insertSpaces:i,detectIndentation:l,defaultEOL:s,trimAutoWhitespace:a,largeFileOptimizations:c,bracketPairColorizationOptions:h}}_getEOL(e,t){if(e)return this._resourcePropertiesService.getEOL(e,t);const n=this._configurationService.getValue("files.eol",{overrideIdentifier:t});return n&&"string"===typeof n&&"auto"!==n?n:3===s.OS||2===s.OS?"\n":"\r\n"}_shouldRestoreUndoStack(){const e=this._configurationService.getValue("files.restoreUndoStack");return"boolean"!==typeof e||e}getCreationOptions(e,t,n){const r="string"===typeof e?e:e.languageId;let i=this._modelCreationOptionsByLanguageAndResource[r+t];if(!i){const e=this._configurationService.getValue("editor",{overrideIdentifier:r,resource:t}),s=this._getEOL(t,r);i=hi._readModelOptions({editor:e,eol:s},n),this._modelCreationOptionsByLanguageAndResource[r+t]=i}return i}_updateModelOptions(e){const t=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);const n=Object.keys(this._models);for(let r=0,i=n.length;r<i;r++){const i=n[r],s=this._models[i],o=s.model.getLanguageId(),a=s.model.uri;if(e&&!e.affectsConfiguration("editor",{overrideIdentifier:o,resource:a})&&!e.affectsConfiguration("files.eol",{overrideIdentifier:o,resource:a}))continue;const l=t[o+a],c=this.getCreationOptions(o,a,s.model.isForSimpleWidget);hi._setModelOptionsForModel(s.model,c,l)}}static _setModelOptionsForModel(e,t,n){n&&n.defaultEOL!==t.defaultEOL&&1===e.getLineCount()&&e.setEOL(1===t.defaultEOL?0:1),n&&n.detectIndentation===t.detectIndentation&&n.insertSpaces===t.insertSpaces&&n.tabSize===t.tabSize&&n.indentSize===t.indentSize&&n.trimAutoWhitespace===t.trimAutoWhitespace&&(0,fi.aI)(n.bracketPairColorizationOptions,t.bracketPairColorizationOptions)||(t.detectIndentation?(e.detectIndentation(t.insertSpaces,t.tabSize),e.updateOptions({trimAutoWhitespace:t.trimAutoWhitespace,bracketColorizationOptions:t.bracketPairColorizationOptions})):e.updateOptions({insertSpaces:t.insertSpaces,tabSize:t.tabSize,indentSize:t.indentSize,trimAutoWhitespace:t.trimAutoWhitespace,bracketColorizationOptions:t.bracketPairColorizationOptions}))}_insertDisposedModel(e){this._disposedModels.set(bi(e.uri),e),this._disposedModelsHeapSize+=e.heapSize}_removeDisposedModel(e){const t=this._disposedModels.get(bi(e));return t&&(this._disposedModelsHeapSize-=t.heapSize),this._disposedModels.delete(bi(e)),t}_ensureDisposedModelsHeapSize(e){if(this._disposedModelsHeapSize>e){const t=[];for(this._disposedModels.forEach((e=>{e.sharesUndoRedoStack||t.push(e)})),t.sort(((e,t)=>e.time-t.time));t.length>0&&this._disposedModelsHeapSize>e;){const e=t.shift();this._removeDisposedModel(e.uri),null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}}}_createModelData(e,t,n,r){const i=this.getCreationOptions(t,n,r),s=this._instantiationService.createInstance(Qr,e,t,i,n);if(n&&this._disposedModels.has(bi(n))){const e=this._removeDisposedModel(n),t=this._undoRedoService.getElements(n),r=this._getSHA1Computer(),i=!!r.canComputeSHA1(s)&&r.computeSHA1(s)===e.sha1;if(i||e.sharesUndoRedoStack){for(const e of t.past)zt(e)&&e.matchesResource(n)&&e.setModel(s);for(const e of t.future)zt(e)&&e.matchesResource(n)&&e.setModel(s);this._undoRedoService.setElementsValidFlag(n,!0,(e=>zt(e)&&e.matchesResource(n))),i&&(s._overwriteVersionId(e.versionId),s._overwriteAlternativeVersionId(e.alternativeVersionId),s._overwriteInitialUndoRedoSnapshot(e.initialUndoRedoSnapshot))}else null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}const o=bi(s.uri);if(this._models[o])throw new Error("ModelService: Cannot add model because it already exists!");const a=new _i(s,(e=>this._onWillDispose(e)),((e,t)=>this._onDidChangeLanguage(e,t)));return this._models[o]=a,a}createModel(e,t,n,r=!1){let i;return i=t?this._createModelData(e,t,n,r):this._createModelData(e,Q.vH,n,r),this._onModelAdded.fire(i.model),i.model}getModels(){const e=[],t=Object.keys(this._models);for(let n=0,r=t.length;n<r;n++){const r=t[n];e.push(this._models[r].model)}return e}getModel(e){const t=bi(e),n=this._models[t];return n?n.model:null}_schemaShouldMaintainUndoRedoElements(e){return e.scheme===gi.ny.file||e.scheme===gi.ny.vscodeRemote||e.scheme===gi.ny.vscodeUserData||e.scheme===gi.ny.vscodeNotebookCell||"fake-fs"===e.scheme}_onWillDispose(e){const t=bi(e.uri),n=this._models[t],r=this._undoRedoService.getUriComparisonKey(e.uri)!==e.uri.toString();let i=!1,s=0;if(r||this._shouldRestoreUndoStack()&&this._schemaShouldMaintainUndoRedoElements(e.uri)){const t=this._undoRedoService.getElements(e.uri);if(t.past.length>0||t.future.length>0){for(const n of t.past)zt(n)&&n.matchesResource(e.uri)&&(i=!0,s+=n.heapSize(e.uri),n.setModel(e.uri));for(const n of t.future)zt(n)&&n.matchesResource(e.uri)&&(i=!0,s+=n.heapSize(e.uri),n.setModel(e.uri))}}const o=hi.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK,a=this._getSHA1Computer();if(i)if(r||!(s>o)&&a.canComputeSHA1(e))this._ensureDisposedModelsHeapSize(o-s),this._undoRedoService.setElementsValidFlag(e.uri,!1,(t=>zt(t)&&t.matchesResource(e.uri))),this._insertDisposedModel(new vi(e.uri,n.model.getInitialUndoRedoSnapshot(),Date.now(),r,s,a.computeSHA1(e),e.getVersionId(),e.getAlternativeVersionId()));else{const e=n.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}else if(!r){const e=n.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}delete this._models[t],n.dispose(),delete this._modelCreationOptionsByLanguageAndResource[e.getLanguageId()+e.uri],this._onModelRemoved.fire(e)}_onDidChangeLanguage(e,t){const n=t.oldLanguage,r=e.getLanguageId(),i=this.getCreationOptions(n,e.uri,e.isForSimpleWidget),s=this.getCreationOptions(r,e.uri,e.isForSimpleWidget);hi._setModelOptionsForModel(e,s,i),this._onModelModeChanged.fire({model:e,oldLanguageId:n})}_getSHA1Computer(){return new yi}};Ci=hi=mi([pi(0,K.pG),pi(1,ui.ITextResourcePropertiesService),pi(2,Vr),pi(3,H._Y)],Ci);class yi{static{this.MAX_MODEL_SIZE=10485760}canComputeSHA1(e){return e.getValueLength()<=yi.MAX_MODEL_SIZE}computeSHA1(e){const t=new di.v7,n=e.createSnapshot();let r;for(;r=n.read();)t.update(r);return t.digest()}}},8938:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITextModelService:()=>r});const r=(0,n(3591).u1)("textModelService")},8232:(e,t,n)=>{"use strict";n.r(t),n.d(t,{encodeSemanticTokensDto:()=>s});var r=n(1674),i=n(8067);function s(e){const t=new Uint32Array(function(e){let t=0;if(t+=2,"full"===e.type)t+=1+e.data.length;else{t+=1,t+=3*e.deltas.length;for(const n of e.deltas)n.data&&(t+=n.data.length)}return t}(e));let n=0;if(t[n++]=e.id,"full"===e.type)t[n++]=1,t[n++]=e.data.length,t.set(e.data,n),n+=e.data.length;else{t[n++]=2,t[n++]=e.deltas.length;for(const r of e.deltas)t[n++]=r.start,t[n++]=r.deleteCount,r.data?(t[n++]=r.data.length,t.set(r.data,n),n+=r.data.length):t[n++]=0}return function(e){const t=new Uint8Array(e.buffer,e.byteOffset,4*e.length);return i.cm()||function(e){for(let t=0,n=e.length;t<n;t+=4){const n=e[t+0],r=e[t+1],i=e[t+2],s=e[t+3];e[t+0]=s,e[t+1]=i,e[t+2]=r,e[t+3]=n}}(t),r.MB.wrap(t)}(t)}},5538:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SemanticTokensProviderStyling:()=>m,toMultilineTokens2:()=>p});n(5982);var r=n(5724),i=n(3511),s=n(3069),o=n(6677),a=n(4454);class l{static create(e,t){return new l(e,new c(t))}get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._endLineNumber}constructor(e,t){this._startLineNumber=e,this._tokens=t,this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}toString(){return this._tokens.toString(this._startLineNumber)}_updateEndLineNumber(){this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}isEmpty(){return this._tokens.isEmpty()}getLineTokens(e){return this._startLineNumber<=e&&e<=this._endLineNumber?this._tokens.getLineTokens(e-this._startLineNumber):null}getRange(){const e=this._tokens.getRange();return e?new o.Q(this._startLineNumber+e.startLineNumber,e.startColumn,this._startLineNumber+e.endLineNumber,e.endColumn):e}removeTokens(e){const t=e.startLineNumber-this._startLineNumber,n=e.endLineNumber-this._startLineNumber;this._startLineNumber+=this._tokens.removeTokens(t,e.startColumn-1,n,e.endColumn-1),this._updateEndLineNumber()}split(e){const t=e.startLineNumber-this._startLineNumber,n=e.endLineNumber-this._startLineNumber,[r,i,s]=this._tokens.split(t,e.startColumn-1,n,e.endColumn-1);return[new l(this._startLineNumber,r),new l(this._startLineNumber+s,i)]}applyEdit(e,t){const[n,r,i]=(0,a.W)(t);this.acceptEdit(e,n,r,i,t.length>0?t.charCodeAt(0):0)}acceptEdit(e,t,n,r,i){this._acceptDeleteRange(e),this._acceptInsertText(new s.y(e.startLineNumber,e.startColumn),t,n,r,i),this._updateEndLineNumber()}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return;const t=e.startLineNumber-this._startLineNumber,n=e.endLineNumber-this._startLineNumber;if(n<0){const e=n-t;return void(this._startLineNumber-=e)}const r=this._tokens.getMaxDeltaLine();if(!(t>=r+1)){if(t<0&&n>=r+1)return this._startLineNumber=0,void this._tokens.clear();if(t<0){const r=-t;this._startLineNumber-=r,this._tokens.acceptDeleteRange(e.startColumn-1,0,0,n,e.endColumn-1)}else this._tokens.acceptDeleteRange(0,t,e.startColumn-1,n,e.endColumn-1)}}_acceptInsertText(e,t,n,r,i){if(0===t&&0===n)return;const s=e.lineNumber-this._startLineNumber;if(s<0)return void(this._startLineNumber+=t);s>=this._tokens.getMaxDeltaLine()+1||this._tokens.acceptInsertText(s,e.column-1,t,n,r,i)}}class c{constructor(e){this._tokens=e,this._tokenCount=e.length/4}toString(e){const t=[];for(let n=0;n<this._tokenCount;n++)t.push(`(${this._getDeltaLine(n)+e},${this._getStartCharacter(n)}-${this._getEndCharacter(n)})`);return`[${t.join(",")}]`}getMaxDeltaLine(){const e=this._getTokenCount();return 0===e?-1:this._getDeltaLine(e-1)}getRange(){const e=this._getTokenCount();if(0===e)return null;const t=this._getStartCharacter(0),n=this._getDeltaLine(e-1),r=this._getEndCharacter(e-1);return new o.Q(0,t+1,n,r+1)}_getTokenCount(){return this._tokenCount}_getDeltaLine(e){return this._tokens[4*e]}_getStartCharacter(e){return this._tokens[4*e+1]}_getEndCharacter(e){return this._tokens[4*e+2]}isEmpty(){return 0===this._getTokenCount()}getLineTokens(e){let t=0,n=this._getTokenCount()-1;for(;t<n;){const r=t+Math.floor((n-t)/2),i=this._getDeltaLine(r);if(i<e)t=r+1;else{if(!(i>e)){let i=r;for(;i>t&&this._getDeltaLine(i-1)===e;)i--;let s=r;for(;s<n&&this._getDeltaLine(s+1)===e;)s++;return new h(this._tokens.subarray(4*i,4*s+4))}n=r-1}}return this._getDeltaLine(t)===e?new h(this._tokens.subarray(4*t,4*t+4)):null}clear(){this._tokenCount=0}removeTokens(e,t,n,r){const i=this._tokens,s=this._tokenCount;let o=0,a=!1,l=0;for(let c=0;c<s;c++){const s=4*c,h=i[s],u=i[s+1],d=i[s+2],g=i[s+3];if((h>e||h===e&&d>=t)&&(h<n||h===n&&u<=r))a=!0;else{if(0===o&&(l=h),a){const e=4*o;i[e]=h-l,i[e+1]=u,i[e+2]=d,i[e+3]=g}o++}}return this._tokenCount=o,l}split(e,t,n,r){const i=this._tokens,s=this._tokenCount,o=[],a=[];let l=o,h=0,u=0;for(let c=0;c<s;c++){const s=4*c,o=i[s],d=i[s+1],g=i[s+2],f=i[s+3];if(o>e||o===e&&g>=t){if(o<n||o===n&&d<=r)continue;l!==a&&(l=a,h=0,u=o)}l[h++]=o-u,l[h++]=d,l[h++]=g,l[h++]=f}return[new c(new Uint32Array(o)),new c(new Uint32Array(a)),u]}acceptDeleteRange(e,t,n,r,i){const s=this._tokens,o=this._tokenCount,a=r-t;let l=0,c=!1;for(let h=0;h<o;h++){const u=4*h;let d=s[u],g=s[u+1],f=s[u+2];const m=s[u+3];if(d<t||d===t&&f<=n){l++;continue}if(d===t&&g<n)d===r&&f>i?f-=i-n:f=n;else if(d===t&&g===n){if(!(d===r&&f>i)){c=!0;continue}f-=i-n}else if(d<r||d===r&&g<i){if(!(d===r&&f>i)){c=!0;continue}d=t,g=n,f=g+(f-i)}else if(d>r){if(0===a&&!c){l=o;break}d-=a}else{if(!(d===r&&g>=i))throw new Error("Not possible!");e&&0===d&&(g+=e,f+=e),d-=a,g-=i-n,f-=i-n}const p=4*l;s[p]=d,s[p+1]=g,s[p+2]=f,s[p+3]=m,l++}this._tokenCount=l}acceptInsertText(e,t,n,r,i,s){const o=0===n&&1===r&&(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122),a=this._tokens,l=this._tokenCount;for(let c=0;c<l;c++){const s=4*c;let l=a[s],h=a[s+1],u=a[s+2];if(!(l<e||l===e&&u<t)){if(l===e&&u===t){if(!o)continue;u+=1}else if(l===e&&h<t&&t<u)0===n?u+=r:u=t;else{if(l===e&&h===t&&o)continue;if(l===e)if(l+=n,0===n)h+=r,u+=r;else{const e=u-h;h=i+(h-t),u=h+e}else l+=n}a[s]=l,a[s+1]=h,a[s+2]=u}}}}class h{constructor(e){this._tokens=e}getCount(){return this._tokens.length/4}getStartCharacter(e){return this._tokens[4*e+1]}getEndCharacter(e){return this._tokens[4*e+2]}getMetadata(e){return this._tokens[4*e+3]}}var u=n(154),d=function(e,t,n,r){var i,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,n,o):i(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},g=function(e,t){return function(n,r){t(n,r,e)}};const f=!1;let m=class{constructor(e,t,n,r){this._legend=e,this._themeService=t,this._languageService=n,this._logService=r,this._hasWarnedOverlappingTokens=!1,this._hasWarnedInvalidLengthTokens=!1,this._hasWarnedInvalidEditStart=!1,this._hashTable=new _}getMetadata(e,t,n){const r=this._languageService.languageIdCodec.encodeLanguageId(n),i=this._hashTable.get(e,t,r);let s;if(i)s=i.metadata;else{let i=this._legend.tokenTypes[e];const o=[];if(i){let e=t;for(let t=0;e>0&&t<this._legend.tokenModifiers.length;t++)1&e&&o.push(this._legend.tokenModifiers[t]),e>>=1;f;const r=this._themeService.getColorTheme().getTokenStyleMetadata(i,o,n);if("undefined"===typeof r)s=2147483647;else{if(s=0,"undefined"!==typeof r.italic){s|=1|(r.italic?1:0)<<11}if("undefined"!==typeof r.bold){s|=2|(r.bold?2:0)<<11}if("undefined"!==typeof r.underline){s|=4|(r.underline?4:0)<<11}if("undefined"!==typeof r.strikethrough){s|=8|(r.strikethrough?8:0)<<11}if(r.foreground){s|=16|r.foreground<<15}0===s&&(s=2147483647)}}else s=2147483647,i="not-in-legend";this._hashTable.add(e,t,r,s)}return s}warnOverlappingSemanticTokens(e,t){this._hasWarnedOverlappingTokens||(this._hasWarnedOverlappingTokens=!0,this._logService.warn(`Overlapping semantic tokens detected at lineNumber ${e}, column ${t}`))}warnInvalidLengthSemanticTokens(e,t){this._hasWarnedInvalidLengthTokens||(this._hasWarnedInvalidLengthTokens=!0,this._logService.warn(`Semantic token with invalid length detected at lineNumber ${e}, column ${t}`))}warnInvalidEditStart(e,t,n,r,i){this._hasWarnedInvalidEditStart||(this._hasWarnedInvalidEditStart=!0,this._logService.warn(`Invalid semantic tokens edit detected (previousResultId: ${e}, resultId: ${t}) at edit #${n}: The provided start offset ${r} is outside the previous data (length ${i}).`))}};function p(e,t,n){const r=e.data,i=e.data.length/5|0,s=Math.max(Math.ceil(i/1024),400),o=[];let a=0,c=1,h=0;for(;a<i;){const e=a;let u=Math.min(e+s,i);if(u<i){let t=u;for(;t-1>e&&0===r[5*t];)t--;if(t-1===e){let e=u;for(;e+1<i&&0===r[5*e];)e++;u=e}else u=t}let d=new Uint32Array(4*(u-e)),g=0,f=0,m=0,p=0;for(;a<u;){const e=5*a,i=r[e],s=r[e+1],o=c+i|0,l=0===i?h+s|0:s,u=l+r[e+2]|0,b=r[e+3],_=r[e+4];if(u<=l)t.warnInvalidLengthSemanticTokens(o,l+1);else if(m===o&&p>l)t.warnOverlappingSemanticTokens(o,l+1);else{const e=t.getMetadata(b,_,n);2147483647!==e&&(0===f&&(f=o),d[g]=o-f,d[g+1]=l,d[g+2]=u,d[g+3]=e,g+=4,m=o,p=u)}c=o,h=l,a++}g!==d.length&&(d=d.subarray(0,g));const b=l.create(f,d);o.push(b)}return o}m=d([g(1,r.Gy),g(2,u.L),g(3,i.rr)],m);class b{constructor(e,t,n,r){this.tokenTypeIndex=e,this.tokenModifierSet=t,this.languageId=n,this.metadata=r,this.next=null}}class _{static{this._SIZES=[3,7,13,31,61,127,251,509,1021,2039,4093,8191,16381,32749,65521,131071,262139,524287,1048573,2097143]}constructor(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=_._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<_._SIZES.length?2/3*this._currentLength:0),this._elements=[],_._nullOutEntries(this._elements,this._currentLength)}static _nullOutEntries(e,t){for(let n=0;n<t;n++)e[n]=null}_hash2(e,t){return(e<<5)-e+t|0}_hashFunc(e,t,n){return this._hash2(this._hash2(e,t),n)%this._currentLength}get(e,t,n){const r=this._hashFunc(e,t,n);let i=this._elements[r];for(;i;){if(i.tokenTypeIndex===e&&i.tokenModifierSet===t&&i.languageId===n)return i;i=i.next}return null}add(e,t,n,r){if(this._elementsCount++,0!==this._growCount&&this._elementsCount>=this._growCount){const e=this._elements;this._currentLengthIndex++,this._currentLength=_._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<_._SIZES.length?2/3*this._currentLength:0),this._elements=[],_._nullOutEntries(this._elements,this._currentLength);for(const t of e){let e=t;for(;e;){const t=e.next;e.next=null,this._add(e),e=t}}}this._add(new b(e,t,n,r))}_add(e){const t=this._hashFunc(e.tokenTypeIndex,e.tokenModifierSet,e.languageId);e.next=this._elements[t],this._elements[t]=e}}},4243:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ISemanticTokensStylingService:()=>r});const r=(0,n(3591).u1)("semanticTokensStylingService")},7004:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SemanticTokensStylingService:()=>d});var r=n(1484),i=n(154),s=n(5724),o=n(3511),a=n(5538),l=n(4243),c=n(4621),h=function(e,t,n,r){var i,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,n,o):i(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},u=function(e,t){return function(n,r){t(n,r,e)}};let d=class extends r.jG{constructor(e,t,n){super(),this._themeService=e,this._logService=t,this._languageService=n,this._caches=new WeakMap,this._register(this._themeService.onDidColorThemeChange((()=>{this._caches=new WeakMap})))}getStyling(e){return this._caches.has(e)||this._caches.set(e,new a.SemanticTokensProviderStyling(e.getLegend(),this._themeService,this._languageService,this._logService)),this._caches.get(e)}};d=h([u(0,s.Gy),u(1,o.rr),u(2,i.L)],d),(0,c.v)(l.ISemanticTokensStylingService,d,1)},796:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MirrorModel:()=>b,STOP_SYNC_MODEL_DELTA_TIME_MS:()=>f,WorkerTextModelSyncClient:()=>m,WorkerTextModelSyncServer:()=>p});var r=n(1940),i=n(1484),s=n(9400),o=n(3069),a=n(6677),l=n(6486),c=n(1508),h=(n(9861),n(5152));class u{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=(0,h.j)(e);const n=this.values,r=this.prefixSum,i=t.length;return 0!==i&&(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=(0,h.j)(e),t=(0,h.j)(t),this.values[e]!==t&&(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,t){e=(0,h.j)(e),t=(0,h.j)(t);const n=this.values,r=this.prefixSum;if(e>=n.length)return!1;const i=n.length-e;return t>=i&&(t=i),0!==t&&(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 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=(0,h.j)(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;0===t&&(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,s=0;for(;t<=n;)if(r=t+(n-t)/2|0,i=this.prefixSum[r],s=i-this.values[r],e<s)n=r-1;else{if(!(e>=i))break;t=r+1}return new d(r,e-s)}}class d{constructor(e,t){this.index=e,this.remainder=t,this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=t}}class g{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 null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const t=e.changes;for(const n of t)this._acceptDeleteRange(n.range),this._acceptInsertText(new o.y(n.range.startLineNumber,n.range.startColumn),n.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const 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 u(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)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);else{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))}}_acceptInsertText(e,t){if(0===t.length)return;const n=(0,c.uz)(t);if(1===n.length)return void 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));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]);const r=new Uint32Array(n.length-1);for(let i=1;i<n.length;i++)this._lines.splice(e.lineNumber+i-1,0,n[i]),r[i-1]=n[i].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,r)}}const f=6e4;class m extends i.jG{constructor(e,t,n=!1){if(super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=e,this._modelService=t,!n){const e=new r.vb;e.cancelAndSet((()=>this._checkStopModelSync()),Math.round(f/2)),this._register(e)}}dispose(){for(const e in this._syncedModels)(0,i.AS)(this._syncedModels[e]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(e,t=!1){for(const n of e){const e=n.toString();this._syncedModels[e]||this._beginModelSync(n,t),this._syncedModels[e]&&(this._syncedModelsLastUsedTime[e]=(new Date).getTime())}}_checkStopModelSync(){const e=(new Date).getTime(),t=[];for(const n in this._syncedModelsLastUsedTime){e-this._syncedModelsLastUsedTime[n]>f&&t.push(n)}for(const n of t)this._stopModelSync(n)}_beginModelSync(e,t){const n=this._modelService.getModel(e);if(!n)return;if(!t&&n.isTooLargeForSyncing())return;const r=e.toString();this._proxy.$acceptNewModel({url:n.uri.toString(),lines:n.getLinesContent(),EOL:n.getEOL(),versionId:n.getVersionId()});const s=new i.Cm;s.add(n.onDidChangeContent((e=>{this._proxy.$acceptModelChanged(r.toString(),e)}))),s.add(n.onWillDispose((()=>{this._stopModelSync(r)}))),s.add((0,i.s)((()=>{this._proxy.$acceptRemovedModel(r)}))),this._syncedModels[r]=s}_stopModelSync(e){const t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],(0,i.AS)(t)}}class p{constructor(){this._models=Object.create(null)}getModel(e){return this._models[e]}getModels(){const e=[];return Object.keys(this._models).forEach((t=>e.push(this._models[t]))),e}$acceptNewModel(e){this._models[e.url]=new b(s.r.parse(e.url),e.lines,e.EOL,e.versionId)}$acceptModelChanged(e,t){if(!this._models[e])return;this._models[e].onEvents(t)}$acceptRemovedModel(e){this._models[e]&&delete this._models[e]}}class b extends g{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){const t=[];for(let n=0;n<this._lines.length;n++){const r=this._lines[n],i=this.offsetAt(new o.y(n+1,1)),s=r.matchAll(e);for(const e of s)(e.index||0===e.index)&&(e.index=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){const n=(0,l.Th)(e.column,(0,l.Io)(t),this._lines[e.lineNumber-1],0);return n?new a.Q(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null}words(e){const t=this._lines,n=this._wordenize.bind(this);let r=0,i="",s=0,o=[];return{*[Symbol.iterator](){for(;;)if(s<o.length){const e=i.substring(o[s].start,o[s].end);s+=1,yield e}else{if(!(r<t.length))break;i=t[r],o=n(i,e),s=0,r+=1}}}}getLineWords(e,t){const n=this._lines[e-1],r=this._wordenize(n,t),i=[];for(const s of r)i.push({word:n.substring(s.start,s.end),startColumn:s.start+1,endColumn:s.end+1});return i}_wordenize(e,t){const n=[];let r;for(t.lastIndex=0;(r=t.exec(e))&&0!==r[0].length;)n.push({start:r.index,end:r.index+r[0].length});return n}getValueInRange(e){if((e=this._validateRange(e)).startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);const t=this._eol,n=e.startLineNumber-1,r=e.endLineNumber-1,i=[];i.push(this._lines[n].substring(e.startColumn-1));for(let s=n+1;s<r;s++)i.push(this._lines[s]);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();const 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){const 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(!o.y.isIPosition(e))throw new 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{const 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}}},8868:(e,t,n)=>{"use strict";n.r(t)},360:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITextResourceConfigurationService:()=>i,ITextResourcePropertiesService:()=>s});var r=n(3591);const i=(0,r.u1)("textResourceConfigurationService"),s=(0,r.u1)("textResourcePropertiesService")},4432:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITreeSitterParserService:()=>r});const r=(0,n(3591).u1)("treeSitterParserService")},6723:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DraggedTreeItemsIdentifier:()=>i,TreeViewsDnDService:()=>r});class r{constructor(){this._dragOperations=new Map}removeDragOperationTransfer(e){if(e&&this._dragOperations.has(e)){const t=this._dragOperations.get(e);return this._dragOperations.delete(e),t}}}class i{constructor(e){this.identifier=e}}},9100:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITreeViewsDnDService:()=>o});var r=n(4621),i=n(3591),s=n(6723);const o=(0,i.u1)("treeViewsDndService");(0,r.v)(o,s.TreeViewsDnDService,1)},4855:(e,t,n)=>{"use strict";n.r(t),n.d(t,{UnicodeTextModelHighlighter:()=>l});var r=n(6677),i=n(7729),s=n(1508),o=n(6782),a=n(6486);class l{static computeUnicodeHighlights(e,t,n){const l=n?n.startLineNumber:1,h=n?n.endLineNumber:e.getLineCount(),u=new c(t),d=u.getCandidateCodePoints();let g;var f;g="allNonBasicAscii"===d?new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):new RegExp(""+(f=Array.from(d),`[${s.bm(f.map((e=>String.fromCodePoint(e))).join(""))}]`),"g");const m=new i.W5(null,g),p=[];let b,_=!1,k=0,v=0,C=0;e:for(let i=l,c=h;i<=c;i++){const t=e.getLineContent(i),n=t.length;m.reset(0);do{if(b=m.next(t),b){let e=b.index,l=b.index+b[0].length;if(e>0){const n=t.charCodeAt(e-1);s.pc(n)&&e--}if(l+1<n){const e=t.charCodeAt(l-1);s.pc(e)&&l++}const c=t.substring(e,l);let h=(0,a.Th)(e+1,a.Ld,t,0);h&&h.endColumn<=e+1&&(h=null);const d=u.shouldHighlightNonBasicASCII(c,h?h.word:null);if(0!==d){3===d?k++:2===d?v++:1===d?C++:(0,o.xb)(d);const t=1e3;if(p.length>=t){_=!0;break e}p.push(new r.Q(i,e+1,i,l+1))}}}while(b)}return{ranges:p,hasMore:_,ambiguousCharacterCount:k,invisibleCharacterCount:v,nonBasicAsciiCharacterCount:C}}static computeUnicodeHighlightReason(e,t){const n=new c(t);switch(n.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const r=e.codePointAt(0),i=n.ambiguousCharacters.getPrimaryConfusable(r),o=s.tl.getLocales().filter((e=>!s.tl.getInstance(new Set([...t.allowedLocales,e])).isAmbiguous(r)));return{kind:0,confusableWith:String.fromCodePoint(i),notAmbiguousInLocales:o}}case 1:return{kind:2}}}}class c{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=s.tl.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const t of s.y_.codePoints)h(String.fromCodePoint(t))||e.add(t);if(this.options.ambiguousCharacters)for(const t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(const t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e,t){const 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(const o of t){const e=o.codePointAt(0),t=s.aC(o);r=r||t,t||this.ambiguousCharacters.isAmbiguous(e)||s.y_.isInvisibleCharacter(e)||(i=!0)}return!r&&i?0:this.options.invisibleCharacters&&!h(e)&&s.y_.isInvisibleCharacter(n)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(n)?3:0}}function h(e){return" "===e||"\n"===e||"\t"===e}},8209:(e,t,n)=>{"use strict";function r(){return globalThis._VSCODE_NLS_LANGUAGE}n.d(t,{i8:()=>r,kg:()=>o});const i="pseudo"===r()||"undefined"!==typeof document&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function s(e,t){let n;return n=0===t.length?e:e.replace(/\{(\d+)\}/g,((e,n)=>{const r=n[0],i=t[r];let s=e;return"string"===typeof i?s=i:"number"!==typeof i&&"boolean"!==typeof i&&void 0!==i&&null!==i||(s=String(i)),s})),i&&(n="\uff3b"+n.replace(/[aouei]/g,"$&$&")+"\uff3d"),n}function o(e,t,...n){return s("number"===typeof e?a(e,t):t,n)}function a(e,t){const n=globalThis._VSCODE_NLS_MESSAGES?.[e];if("string"!==typeof n){if("string"===typeof t)return t;throw new Error(`!!! NLS MISSING: ${e} !!!`)}return n}},4001:(e,t,n)=>{"use strict";n.d(t,{Mo:()=>i,pG:()=>r});const r=(0,n(3591).u1)("configurationService");function i(e){return e.replace(/[\[\]]/g,"")}},1646:(e,t,n)=>{"use strict";n.d(t,{Fd:()=>h});var r=n(9861),i=n(1234),s=n(631),o=n(8209),a=n(4001),l=n(8748),c=n(6359);const h={Configuration:"base.contributions.configuration"},u={properties:{},patternProperties:{}},d={properties:{},patternProperties:{}},g={properties:{},patternProperties:{}},f={properties:{},patternProperties:{}},m={properties:{},patternProperties:{}},p={properties:{},patternProperties:{}},b="vscode://schemas/settings/resourceLanguage",_=c.O.as(l.F.JSONContribution);const k="\\[([^\\]]+)\\]",v=new RegExp(k,"g"),C=`^(${k})+$`,y=new RegExp(C);function L(e){const t=[];if(y.test(e)){let n=v.exec(e);for(;n?.length;){const r=n[1].trim();r&&t.push(r),n=v.exec(e)}}return(0,r.dM)(t)}const w=new class{constructor(){this.registeredConfigurationDefaults=[],this.overrideIdentifiers=new Set,this._onDidSchemaChange=new i.vl,this._onDidUpdateConfiguration=new i.vl,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:o.kg("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!0,allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.policyConfigurations=new Map,this.excludedConfigurationProperties={},_.registerSchema(b,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(e,t=!0){this.registerConfigurations([e],t)}registerConfigurations(e,t=!0){const n=new Set;this.doRegisterConfigurations(e,t,n),_.registerSchema(b,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:n})}registerDefaultConfigurations(e){const t=new Set;this.doRegisterDefaultConfigurations(e,t),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:t,defaultsOverrides:!0})}doRegisterDefaultConfigurations(e,t){this.registeredConfigurationDefaults.push(...e);const n=[];for(const{overrides:r,source:i}of e)for(const e in r){t.add(e);const s=this.configurationDefaultsOverrides.get(e)??this.configurationDefaultsOverrides.set(e,{configurationDefaultOverrides:[]}).get(e),o=r[e];if(s.configurationDefaultOverrides.push({value:o,source:i}),y.test(e)){const t=this.mergeDefaultConfigurationsForOverrideIdentifier(e,o,i,s.configurationDefaultOverrideValue);if(!t)continue;s.configurationDefaultOverrideValue=t,this.updateDefaultOverrideProperty(e,t,i),n.push(...L(e))}else{const t=this.mergeDefaultConfigurationsForConfigurationProperty(e,o,i,s.configurationDefaultOverrideValue);if(!t)continue;s.configurationDefaultOverrideValue=t;const n=this.configurationProperties[e];n&&(this.updatePropertyDefaultValue(e,n),this.updateSchema(e,n))}}this.doRegisterOverrideIdentifiers(n)}updateDefaultOverrideProperty(e,t,n){const r={type:"object",default:t.value,description:o.kg("defaultLanguageConfiguration.description","Configure settings to be overridden for the {0} language.",(0,a.Mo)(e)),$ref:b,defaultDefaultValue:t.value,source:n,defaultValueSource:n};this.configurationProperties[e]=r,this.defaultLanguageConfigurationOverridesNode.properties[e]=r}mergeDefaultConfigurationsForOverrideIdentifier(e,t,n,r){const i=r?.value||{},o=r?.source??new Map;if(o instanceof Map){for(const e of Object.keys(t)){const r=t[e];if(s.Gv(r)&&(s.b0(i[e])||s.Gv(i[e]))){if(i[e]={...i[e]??{},...r},n)for(const t in r)o.set(`${e}.${t}`,n)}else i[e]=r,n?o.set(e,n):o.delete(e)}return{value:i,source:o}}console.error("objectConfigurationSources is not a Map")}mergeDefaultConfigurationsForConfigurationProperty(e,t,n,r){const i=this.configurationProperties[e],o=r?.value??i?.defaultDefaultValue;let a=n;if(s.Gv(t)&&(void 0!==i&&"object"===i.type||void 0===i&&(s.b0(o)||s.Gv(o)))){if(a=r?.source??new Map,!(a instanceof Map))return void console.error("defaultValueSource is not a Map");for(const r in t)n&&a.set(`${e}.${r}`,n);t={...s.Gv(o)?o:{},...t}}return{value:t,source:a}}registerOverrideIdentifiers(e){this.doRegisterOverrideIdentifiers(e),this._onDidSchemaChange.fire()}doRegisterOverrideIdentifiers(e){for(const t of e)this.overrideIdentifiers.add(t);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(e,t,n){e.forEach((e=>{this.validateAndRegisterProperties(e,t,e.extensionInfo,e.restrictedProperties,void 0,n),this.configurationContributors.push(e),this.registerJSONConfiguration(e)}))}validateAndRegisterProperties(e,t=!0,n,r,i=3,o){i=s.z(e.scope)?i:e.scope;const a=e.properties;if(a)for(const c in a){const e=a[c];t&&S(c,e)?delete a[c]:(e.source=n,e.defaultDefaultValue=a[c].default,this.updatePropertyDefaultValue(c,e),y.test(c)?e.scope=void 0:(e.scope=s.z(e.scope)?i:e.scope,e.restricted=s.z(e.restricted)?!!r?.includes(c):e.restricted),!a[c].hasOwnProperty("included")||a[c].included?(this.configurationProperties[c]=a[c],a[c].policy?.name&&this.policyConfigurations.set(a[c].policy.name,c),!a[c].deprecationMessage&&a[c].markdownDeprecationMessage&&(a[c].deprecationMessage=a[c].markdownDeprecationMessage),o.add(c)):(this.excludedConfigurationProperties[c]=a[c],delete a[c]))}const l=e.allOf;if(l)for(const s of l)this.validateAndRegisterProperties(s,t,n,r,i,o)}getConfigurationProperties(){return this.configurationProperties}getPolicyConfigurations(){return this.policyConfigurations}registerJSONConfiguration(e){const t=e=>{const n=e.properties;if(n)for(const t in n)this.updateSchema(t,n[t]);const r=e.allOf;r?.forEach(t)};t(e)}updateSchema(e,t){switch(u.properties[e]=t,t.scope){case 1:d.properties[e]=t;break;case 2:g.properties[e]=t;break;case 6:f.properties[e]=t;break;case 3:m.properties[e]=t;break;case 4:p.properties[e]=t;break;case 5:p.properties[e]=t,this.resourceLanguageSettingsSchema.properties[e]=t}}updateOverridePropertyPatternKey(){for(const e of this.overrideIdentifiers.values()){const t=`[${e}]`,n={type:"object",description:o.kg("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:o.kg("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:b};this.updatePropertyDefaultValue(t,n),u.properties[t]=n,d.properties[t]=n,g.properties[t]=n,f.properties[t]=n,m.properties[t]=n,p.properties[t]=n}}registerOverridePropertyPatternKey(){const e={type:"object",description:o.kg("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:o.kg("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:b};u.patternProperties[C]=e,d.patternProperties[C]=e,g.patternProperties[C]=e,f.patternProperties[C]=e,m.patternProperties[C]=e,p.patternProperties[C]=e,this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,t){const n=this.configurationDefaultsOverrides.get(e)?.configurationDefaultOverrideValue;let r,i;!n||t.disallowConfigurationDefault&&n.source||(r=n.value,i=n.source),s.b0(r)&&(r=t.defaultDefaultValue,i=void 0),s.b0(r)&&(r=function(e){switch(Array.isArray(e)?e[0]:e){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}(t.type)),t.default=r,t.defaultValueSource=i}};function S(e,t){return e.trim()?y.test(e)?o.kg("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e):void 0!==w.getConfigurationProperties()[e]?o.kg("config.property.duplicate","Cannot register '{0}'. This property is already registered.",e):t.policy?.name&&void 0!==w.getPolicyConfigurations().get(t.policy?.name)?o.kg("config.policy.duplicate","Cannot register '{0}'. The associated policy {1} is already registered with {2}.",e,t.policy?.name,w.getPolicyConfigurations().get(t.policy?.name)):null:o.kg("config.property.empty","Cannot register an empty property")}c.O.add(h.Configuration,w)},4621:(e,t,n)=>{"use strict";n.d(t,{v:()=>s});class r{constructor(e,t=[],n=!1){this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=n}}const i=[];function s(e,t,n){t instanceof r||(t=new r(t,[],Boolean(n))),i.push([e,t])}},3591:(e,t,n)=>{"use strict";var r;n.d(t,{_Y:()=>i,u1:()=>s}),function(e){e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=function(t){return t[e.DI_DEPENDENCIES]||[]}}(r||(r={}));const i=s("instantiationService");function s(e){if(r.serviceIds.has(e))return r.serviceIds.get(e);const t=function(e,n,i){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");!function(e,t,n){t[r.DI_TARGET]===t?t[r.DI_DEPENDENCIES].push({id:e,index:n}):(t[r.DI_DEPENDENCIES]=[{id:e,index:n}],t[r.DI_TARGET]=t)}(t,e,i)};return t.toString=()=>e,r.serviceIds.set(e,t),t}},8748:(e,t,n)=>{"use strict";n.d(t,{F:()=>s});var r=n(1234),i=n(6359);const s={JSONContribution:"base.contributions.json"};const o=new class{constructor(){this._onDidChangeSchema=new r.vl,this.schemasById={}}registerSchema(e,t){var n;this.schemasById[(n=e,n.length>0&&"#"===n.charAt(n.length-1)?n.substring(0,n.length-1):n)]=t,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}};i.O.add(s.JSONContribution,o)},3511:(e,t,n)=>{"use strict";n.d(t,{rr:()=>Q,$b:()=>J});n(1234);var r=n(1484),i=n(8067),s=n(1508),o=n(4383),a=n(8209);function l(...e){switch(e.length){case 1:return(0,a.kg)("contextkey.scanner.hint.didYouMean1","Did you mean {0}?",e[0]);case 2:return(0,a.kg)("contextkey.scanner.hint.didYouMean2","Did you mean {0} or {1}?",e[0],e[1]);case 3:return(0,a.kg)("contextkey.scanner.hint.didYouMean3","Did you mean {0}, {1} or {2}?",e[0],e[1],e[2]);default:return}}const c=(0,a.kg)("contextkey.scanner.hint.didYouForgetToOpenOrCloseQuote","Did you forget to open or close the quote?"),h=(0,a.kg)("contextkey.scanner.hint.didYouForgetToEscapeSlash","Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'.");class u{constructor(){this._input="",this._start=0,this._current=0,this._tokens=[],this._errors=[],this.stringRe=/[a-zA-Z0-9_<>\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(e){switch(e.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return e.isTripleEq?"===":"==";case 4:return e.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:case 8:return">=";case 9:return"=~";case 10:case 17:case 18:case 19:return e.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 20:return"EOF";default:throw(0,o.iH)(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}static{this._regexFlags=new Set(["i","g","s","m","y","u"].map((e=>e.charCodeAt(0))))}static{this._keywords=new Map([["not",14],["in",13],["false",12],["true",11]])}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();){this._start=this._current;switch(this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){const e=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:e})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){const e=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:e})}else this._match(126)?this._addToken(9):this._error(l("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(l("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(l("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return!this._isAtEnd()&&(this._input.charCodeAt(this._current)===e&&(this._current++,!0))}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){const t=this._start,n=this._input.substring(this._start,this._current),r={type:19,offset:this._start,lexeme:n};this._errors.push({offset:t,lexeme:n,additionalInfo:e}),this._tokens.push(r)}_string(){this.stringRe.lastIndex=this._start;const e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;const t=this._input.substring(this._start,this._current),n=u._keywords.get(t);n?this._addToken(n):this._tokens.push({type:17,lexeme:t,offset:this._start})}}_quotedString(){for(;39!==this._peek()&&!this._isAtEnd();)this._advance();this._isAtEnd()?this._error(c):(this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1}))}_regex(){let e=this._current,t=!1,n=!1;for(;;){if(e>=this._input.length)return this._current=e,void this._error(h);const r=this._input.charCodeAt(e);if(t)t=!1;else{if(47===r&&!n){e++;break}91===r?n=!0:92===r?t=!0:93===r&&(n=!1)}e++}for(;e<this._input.length&&u._regexFlags.has(this._input.charCodeAt(e));)e++;this._current=e;const r=this._input.substring(this._start,this._current);this._tokens.push({type:10,lexeme:r,offset:this._start})}_isAtEnd(){return this._current>=this._input.length}}var d=n(3591);const g=new Map;g.set("false",!1),g.set("true",!0),g.set("isMac",i.zx),g.set("isLinux",i.j9),g.set("isWindows",i.uF),g.set("isWeb",i.HZ),g.set("isMacNative",i.zx&&!i.HZ),g.set("isEdge",i.UP),g.set("isFirefox",i.gm),g.set("isChrome",i.H8),g.set("isSafari",i.nr);const f=Object.prototype.hasOwnProperty,m={regexParsingWithErrorRecovery:!0},p=(0,a.kg)("contextkey.parser.error.emptyString","Empty context key expression"),b=(0,a.kg)("contextkey.parser.error.emptyString.hint","Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),_=(0,a.kg)("contextkey.parser.error.noInAfterNot","'in' after 'not'."),k=(0,a.kg)("contextkey.parser.error.closingParenthesis","closing parenthesis ')'"),v=(0,a.kg)("contextkey.parser.error.unexpectedToken","Unexpected token"),C=(0,a.kg)("contextkey.parser.error.unexpectedToken.hint","Did you forget to put && or || before the token?"),y=(0,a.kg)("contextkey.parser.error.unexpectedEOF","Unexpected end of expression"),L=(0,a.kg)("contextkey.parser.error.unexpectedEOF.hint","Did you forget to put a context key?");class w{static{this._parseError=new Error}constructor(e=m){this._config=e,this._scanner=new u,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(""!==e){this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{const e=this._expr();if(!this._isAtEnd()){const e=this._peek(),t=17===e.type?C:void 0;throw this._parsingErrors.push({message:v,offset:e.offset,lexeme:u.getLexeme(e),additionalInfo:t}),w._parseError}return e}catch(t){if(t!==w._parseError)throw t;return}}else this._parsingErrors.push({message:p,offset:0,lexeme:"",additionalInfo:b})}_expr(){return this._or()}_or(){const e=[this._and()];for(;this._matchOne(16);){const t=this._and();e.push(t)}return 1===e.length?e[0]:S.or(...e)}_and(){const e=[this._term()];for(;this._matchOne(15);){const t=this._term();e.push(t)}return 1===e.length?e[0]:S.and(...e)}_term(){if(this._matchOne(2)){const e=this._peek();switch(e.type){case 11:return this._advance(),E.INSTANCE;case 12:return this._advance(),N.INSTANCE;case 0:{this._advance();const e=this._expr();return this._consume(1,k),e?.negate()}case 17:return this._advance(),R.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){const e=this._peek();switch(e.type){case 11:return this._advance(),S.true();case 12:return this._advance(),S.false();case 0:{this._advance();const e=this._expr();return this._consume(1,k),e}case 17:{const r=e.lexeme;if(this._advance(),this._matchOne(9)){const e=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),10!==e.type)throw this._errExpectedButGot("REGEX",e);const n=e.lexeme,i=n.lastIndexOf("/"),s=i===n.length-1?void 0:this._removeFlagsGY(n.substring(i+1));let o;try{o=new RegExp(n.substring(1,i),s)}catch(t){throw this._errExpectedButGot("REGEX",e)}return z.create(r,o)}switch(e.type){case 10:case 19:{const n=[e.lexeme];this._advance();let i=this._peek(),s=0;for(let t=0;t<e.lexeme.length;t++)40===e.lexeme.charCodeAt(t)?s++:41===e.lexeme.charCodeAt(t)&&s--;for(;!this._isAtEnd()&&15!==i.type&&16!==i.type;){switch(i.type){case 0:s++;break;case 1:s--;break;case 10:case 18:for(let t=0;t<i.lexeme.length;t++)40===i.lexeme.charCodeAt(t)?s++:41===e.lexeme.charCodeAt(t)&&s--}if(s<0)break;n.push(u.getLexeme(i)),this._advance(),i=this._peek()}const o=n.join(""),a=o.lastIndexOf("/"),l=a===o.length-1?void 0:this._removeFlagsGY(o.substring(a+1));let c;try{c=new RegExp(o.substring(1,a),l)}catch(t){throw this._errExpectedButGot("REGEX",e)}return S.regex(r,c)}case 18:{const t=e.lexeme;this._advance();let i=null;if(!(0,s.AV)(t)){const r=t.indexOf("/"),s=t.lastIndexOf("/");if(r!==s&&r>=0){const o=t.slice(r+1,s),a="i"===t[s+1]?"i":"";try{i=new RegExp(o,a)}catch(n){throw this._errExpectedButGot("REGEX",e)}}}if(null===i)throw this._errExpectedButGot("REGEX",e);return z.create(r,i)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,_);const e=this._value();return S.notIn(r,e)}switch(this._peek().type){case 3:{this._advance();const e=this._value();if(18===this._previous().type)return S.equals(r,e);switch(e){case"true":return S.has(r);case"false":return S.not(r);default:return S.equals(r,e)}}case 4:{this._advance();const e=this._value();if(18===this._previous().type)return S.notEquals(r,e);switch(e){case"true":return S.not(r);case"false":return S.has(r);default:return S.notEquals(r,e)}}case 5:return this._advance(),P.create(r,this._value());case 6:return this._advance(),V.create(r,this._value());case 7:return this._advance(),B.create(r,this._value());case 8:return this._advance(),F.create(r,this._value());case 13:return this._advance(),S.in(r,this._value());default:return S.has(r)}}case 20:throw this._parsingErrors.push({message:y,offset:e.offset,lexeme:"",additionalInfo:L}),w._parseError;default:throw this._errExpectedButGot("true | false | KEY \n\t| KEY '=~' REGEX \n\t| KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value",this._peek())}}_value(){const e=this._peek();switch(e.type){case 17:case 18:return this._advance(),e.lexeme;case 11:return this._advance(),"true";case 12:return this._advance(),"false";case 13:return this._advance(),"in";default:return""}}_removeFlagsGY(e){return e.replaceAll(this._flagsGYRe,"")}_previous(){return this._tokens[this._current-1]}_matchOne(e){return!!this._check(e)&&(this._advance(),!0)}_advance(){return this._isAtEnd()||this._current++,this._previous()}_consume(e,t){if(this._check(e))return this._advance();throw this._errExpectedButGot(t,this._peek())}_errExpectedButGot(e,t,n){const r=(0,a.kg)("contextkey.parser.error.expectedButGot","Expected: {0}\nReceived: '{1}'.",e,u.getLexeme(t)),i=t.offset,s=u.getLexeme(t);return this._parsingErrors.push({message:r,offset:i,lexeme:s,additionalInfo:n}),w._parseError}_check(e){return this._peek().type===e}_peek(){return this._tokens[this._current]}_isAtEnd(){return 20===this._peek().type}}class S{static false(){return E.INSTANCE}static true(){return N.INSTANCE}static has(e){return T.create(e)}static equals(e,t){return A.create(e,t)}static notEquals(e,t){return M.create(e,t)}static regex(e,t){return z.create(e,t)}static in(e,t){return I.create(e,t)}static notIn(e,t){return O.create(e,t)}static not(e){return R.create(e)}static and(...e){return W.create(e,null,!0)}static or(...e){return U.create(e,null,!0)}static{this._parser=new w({regexParsingWithErrorRecovery:!1})}static deserialize(e){if(void 0===e||null===e)return;return this._parser.parse(e)}}function x(e,t){return e.cmp(t)}class E{static{this.INSTANCE=new E}constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!1}serialize(){return"false"}keys(){return[]}negate(){return N.INSTANCE}}class N{static{this.INSTANCE=new N}constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!0}serialize(){return"true"}keys(){return[]}negate(){return E.INSTANCE}}class T{static create(e,t=null){const n=g.get(e);return"boolean"===typeof n?n?N.INSTANCE:E.INSTANCE:new T(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=2}cmp(e){return e.type!==this.type?this.type-e.type:H(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=g.get(this.key);return"boolean"===typeof e?e?N.INSTANCE:E.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=R.create(this.key,this)),this.negated}}class A{static create(e,t,n=null){if("boolean"===typeof t)return t?T.create(e,n):R.create(e,n);const r=g.get(e);if("boolean"===typeof r){return t===(r?"true":"false")?N.INSTANCE:E.INSTANCE}return new A(e,t,n)}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=4}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=g.get(this.key);if("boolean"===typeof e){const t=e?"true":"false";return this.value===t?N.INSTANCE:E.INSTANCE}return this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=M.create(this.key,this.value,this)),this.negated}}class I{static create(e,t){return new I(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=10,this.negated=null}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type&&(this.key===e.key&&this.valueKey===e.valueKey)}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.valueKey),n=e.getValue(this.key);return Array.isArray(t)?t.includes(n):"string"===typeof n&&"object"===typeof t&&null!==t&&f.call(t,n)}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=O.create(this.key,this.valueKey)),this.negated}}class O{static create(e,t){return new O(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=11,this._negated=I.create(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:this._negated.cmp(e._negated)}equals(e){return e.type===this.type&&this._negated.equals(e._negated)}substituteConstants(){return this}evaluate(e){return!this._negated.evaluate(e)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}negate(){return this._negated}}class M{static create(e,t,n=null){if("boolean"===typeof t)return t?R.create(e,n):T.create(e,n);const r=g.get(e);if("boolean"===typeof r){return t===(r?"true":"false")?E.INSTANCE:N.INSTANCE}return new M(e,t,n)}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=5}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=g.get(this.key);if("boolean"===typeof e){const t=e?"true":"false";return this.value===t?E.INSTANCE:N.INSTANCE}return this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=A.create(this.key,this.value,this)),this.negated}}class R{static create(e,t=null){const n=g.get(e);return"boolean"===typeof n?n?E.INSTANCE:N.INSTANCE:new R(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=3}cmp(e){return e.type!==this.type?this.type-e.type:H(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=g.get(this.key);return"boolean"===typeof e?e?E.INSTANCE:N.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=T.create(this.key,this)),this.negated}}function D(e,t){if("string"===typeof e){const t=parseFloat(e);isNaN(t)||(e=t)}return"string"===typeof e||"number"===typeof e?t(e):E.INSTANCE}class B{static create(e,t,n=null){return D(t,(t=>new B(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=12}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=V.create(this.key,this.value,this)),this.negated}}class F{static create(e,t,n=null){return D(t,(t=>new F(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=13}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=P.create(this.key,this.value,this)),this.negated}}class P{static create(e,t,n=null){return D(t,(t=>new P(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=14}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=F.create(this.key,this.value,this)),this.negated}}class V{static create(e,t,n=null){return D(t,(t=>new V(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=15}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=B.create(this.key,this.value,this)),this.negated}}class z{static create(e,t){return new z(e,t)}constructor(e,t){this.key=e,this.regexp=t,this.type=7,this.negated=null}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.key<e.key)return-1;if(this.key>e.key)return 1;const t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return t<n?-1:t>n?1:0}equals(e){if(e.type===this.type){const t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return this.key===e.key&&t===n}return!1}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.key);return!!this.regexp&&this.regexp.test(t)}serialize(){const e=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=j.create(this)),this.negated}}class j{static create(e){return new j(e)}constructor(e){this._actual=e,this.type=8}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type&&this._actual.equals(e._actual)}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){return`!(${this._actual.serialize()})`}keys(){return this._actual.keys()}negate(){return this._actual}}function q(e){let t=null;for(let n=0,r=e.length;n<r;n++){const r=e[n].substituteConstants();if(e[n]!==r&&null===t){t=[];for(let r=0;r<n;r++)t[r]=e[r]}null!==t&&(t[n]=r)}return null===t?e:t}class W{static create(e,t,n){return W._normalizeArr(e,t,n)}constructor(e,t){this.expr=e,this.negated=t,this.type=6}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,n=this.expr.length;t<n;t++){const n=x(this.expr[t],e.expr[t]);if(0!==n)return n}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){const e=q(this.expr);return e===this.expr?this:W.create(e,this.negated,!1)}evaluate(e){for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].evaluate(e))return!1;return!0}static _normalizeArr(e,t,n){const r=[];let i=!1;for(const s of e)if(s)if(1!==s.type){if(0===s.type)return E.INSTANCE;6!==s.type?r.push(s):r.push(...s.expr)}else i=!0;if(0===r.length&&i)return N.INSTANCE;if(0!==r.length){if(1===r.length)return r[0];r.sort(x);for(let e=1;e<r.length;e++)r[e-1].equals(r[e])&&(r.splice(e,1),e--);if(1===r.length)return r[0];for(;r.length>1;){const e=r[r.length-1];if(9!==e.type)break;r.pop();const t=r.pop(),i=0===r.length,s=U.create(e.expr.map((e=>W.create([e,t],null,n))),null,i);s&&(r.push(s),r.sort(x))}if(1===r.length)return r[0];if(n){for(let e=0;e<r.length;e++)for(let t=e+1;t<r.length;t++)if(r[e].negate().equals(r[t]))return E.INSTANCE;if(1===r.length)return r[0]}return new W(r,t)}}serialize(){return this.expr.map((e=>e.serialize())).join(" && ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());this.negated=U.create(e,this,!0)}return this.negated}}class U{static create(e,t,n){return U._normalizeArr(e,t,n)}constructor(e,t){this.expr=e,this.negated=t,this.type=9}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,n=this.expr.length;t<n;t++){const n=x(this.expr[t],e.expr[t]);if(0!==n)return n}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){const e=q(this.expr);return e===this.expr?this:U.create(e,this.negated,!1)}evaluate(e){for(let t=0,n=this.expr.length;t<n;t++)if(this.expr[t].evaluate(e))return!0;return!1}static _normalizeArr(e,t,n){let r=[],i=!1;if(e){for(let t=0,n=e.length;t<n;t++){const n=e[t];if(n)if(0!==n.type){if(1===n.type)return N.INSTANCE;9!==n.type?r.push(n):r=r.concat(n.expr)}else i=!0}if(0===r.length&&i)return E.INSTANCE;r.sort(x)}if(0!==r.length){if(1===r.length)return r[0];for(let e=1;e<r.length;e++)r[e-1].equals(r[e])&&(r.splice(e,1),e--);if(1===r.length)return r[0];if(n){for(let e=0;e<r.length;e++)for(let t=e+1;t<r.length;t++)if(r[e].negate().equals(r[t]))return N.INSTANCE;if(1===r.length)return r[0]}return new U(r,t)}}serialize(){return this.expr.map((e=>e.serialize())).join(" || ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());for(;e.length>1;){const t=e.shift(),n=e.shift(),r=[];for(const e of G(t))for(const t of G(n))r.push(W.create([e,t],null,!1));e.unshift(U.create(r,null,!1))}this.negated=U.create(e,this,!0)}return this.negated}}class $ extends T{static{this._info=[]}static all(){return $._info.values()}constructor(e,t,n){super(e,null),this._defaultValue=t,"object"===typeof n?$._info.push({...n,key:e}):!0!==n&&$._info.push({key:e,description:n,type:null!==t&&void 0!==t?typeof t:void 0})}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return A.create(this.key,e)}}(0,d.u1)("contextKeyService");function H(e,t){return e<t?-1:e>t?1:0}function K(e,t,n,r){return e<n?-1:e>n?1:t<r?-1:t>r?1:0}function G(e){return 9===e.type?e.expr:[e]}const Q=(0,d.u1)("logService");var J;!function(e){e[e.Off=0]="Off",e[e.Trace=1]="Trace",e[e.Debug=2]="Debug",e[e.Info=3]="Info",e[e.Warning=4]="Warning",e[e.Error=5]="Error"}(J||(J={}));J.Info;r.jG;new $("logLevel",function(e){switch(e){case J.Trace:return"trace";case J.Debug:return"debug";case J.Info:return"info";case J.Warning:return"warn";case J.Error:return"error";case J.Off:return"off"}}(J.Info))},6359:(e,t,n)=>{"use strict";n.d(t,{O:()=>s});var r=n(6782),i=n(631);const s=new class{constructor(){this.data=new Map}add(e,t){r.ok(i.Kg(e)),r.ok(i.Gv(t)),r.ok(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)}as(e){return this.data.get(e)||null}}},5845:(e,t,n)=>{"use strict";n.d(t,{buw:()=>S,b1q:()=>w,YtV:()=>I,Ubg:()=>q,IIb:()=>z,pOz:()=>V,whs:()=>B,Stt:()=>P,Hng:()=>F,yLC:()=>le,KoI:()=>oe,uMG:()=>ae,x1A:()=>u});var r=n(6782),i=n(1940),s=n(7661),o=n(1234),a=n(8748),l=n(6359),c=n(8209);const h=new class{constructor(){this._onDidChangeSchema=new o.vl,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}registerColor(e,t,n,r=!1,i){const s={id:e,description:n,defaults:t,needsTransparency:r,deprecationMessage:i};this.colorsById[e]=s;const o={type:"string",format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return i&&(o.deprecationMessage=i),r&&(o.pattern="^#(?:(?<rgba>[0-9a-fA-f]{3}[0-9a-eA-E])|(?:[0-9a-fA-F]{6}(?:(?![fF]{2})(?:[0-9a-fA-F]{2}))))?$",o.patternErrorMessage=c.kg("transparecyRequired","This color must be transparent or it will obscure content")),this.colorSchema.properties[e]={description:n,oneOf:[o,{type:"string",const:"default",description:c.kg("useDefault","Use the default color.")}]},this.colorReferenceSchema.enum.push(e),this.colorReferenceSchema.enumDescriptions.push(n),this._onDidChangeSchema.fire(),e}getColors(){return Object.keys(this.colorsById).map((e=>this.colorsById[e]))}resolveDefaultColor(e,t){const n=this.colorsById[e];if(n?.defaults){return b(null!==(r=n.defaults)&&"object"===typeof r&&"light"in r&&"dark"in r?n.defaults[t.type]:n.defaults,t)}var r}getColorSchema(){return this.colorSchema}toString(){return Object.keys(this.colorsById).sort(((e,t)=>{const n=-1===e.indexOf(".")?0:1,r=-1===t.indexOf(".")?0:1;return n!==r?n-r:e.localeCompare(t)})).map((e=>`- \`${e}\`: ${this.colorsById[e].description}`)).join("\n")}};function u(e,t,n,r,i){return h.registerColor(e,t,n,r,i)}function d(e,t){return{op:0,value:e,factor:t}}function g(e,t){return{op:1,value:e,factor:t}}function f(e,t){return{op:2,value:e,factor:t}}function m(...e){return{op:4,values:e}}function p(e,t,n,r){return{op:5,value:e,background:t,factor:n,transparency:r}}function b(e,t){if(null!==e)return"string"===typeof e?"#"===e[0]?s.Q1.fromHex(e):t.getColor(e):e instanceof s.Q1?e:"object"===typeof e?function(e,t){switch(e.op){case 0:return b(e.value,t)?.darken(e.factor);case 1:return b(e.value,t)?.lighten(e.factor);case 2:return b(e.value,t)?.transparent(e.factor);case 3:{const n=b(e.background,t);return n?b(e.value,t)?.makeOpaque(n):b(e.value,t)}case 4:for(const n of e.values){const e=b(n,t);if(e)return e}return;case 6:return b(t.defines(e.if)?e.then:e.else,t);case 5:{const n=b(e.value,t);if(!n)return;const r=b(e.background,t);return r?n.isDarkerThan(r)?s.Q1.getLighterColor(n,r,e.factor).transparent(e.transparency):s.Q1.getDarkerColor(n,r,e.factor).transparent(e.transparency):n.transparent(e.factor*e.transparency)}default:throw(0,r.xb)(e)}}(e,t):void 0}l.O.add("base.contributions.colors",h);const _="vscode://schemas/workbench-colors",k=l.O.as(a.F.JSONContribution);k.registerSchema(_,h.getColorSchema());const v=new i.uC((()=>k.notifySchemaChanged(_)),200);h.onDidChangeSchema((()=>{v.isScheduled()||v.schedule()}));const C=u("foreground",{dark:"#CCCCCC",light:"#616161",hcDark:"#FFFFFF",hcLight:"#292929"},c.kg("foreground","Overall foreground color. This color is only used if not overridden by a component.")),y=(u("disabledForeground",{dark:"#CCCCCC80",light:"#61616180",hcDark:"#A5A5A5",hcLight:"#7F7F7F"},c.kg("disabledForeground","Overall foreground for disabled elements. This color is only used if not overridden by a component.")),u("errorForeground",{dark:"#F48771",light:"#A1260D",hcDark:"#F48771",hcLight:"#B5200D"},c.kg("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),u("descriptionForeground",{light:"#717171",dark:f(C,.7),hcDark:f(C,.7),hcLight:f(C,.7)},c.kg("descriptionForeground","Foreground color for description text providing additional information, for example for a label.")),u("icon.foreground",{dark:"#C5C5C5",light:"#424242",hcDark:"#FFFFFF",hcLight:"#292929"},c.kg("iconForeground","The default color for icons in the workbench."))),L=u("focusBorder",{dark:"#007FD4",light:"#0090F1",hcDark:"#F38518",hcLight:"#006BBD"},c.kg("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),w=u("contrastBorder",{light:null,dark:null,hcDark:"#6FC3DF",hcLight:"#0F4A85"},c.kg("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),S=u("contrastActiveBorder",{light:null,dark:null,hcDark:L,hcLight:L},c.kg("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),x=(u("selection.background",null,c.kg("selectionBackground","The background color of text selections in the workbench (e.g. for input fields or text areas). Note that this does not apply to selections within the editor.")),u("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},c.kg("textLinkForeground","Foreground color for links in text.")),u("textLink.activeForeground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},c.kg("textLinkActiveForeground","Foreground color for links in text when clicked on and on mouse hover.")),u("textSeparator.foreground",{light:"#0000002e",dark:"#ffffff2e",hcDark:s.Q1.black,hcLight:"#292929"},c.kg("textSeparatorForeground","Color for text separators.")),u("textPreformat.foreground",{light:"#A31515",dark:"#D7BA7D",hcDark:"#000000",hcLight:"#FFFFFF"},c.kg("textPreformatForeground","Foreground color for preformatted text segments.")),u("textPreformat.background",{light:"#0000001A",dark:"#FFFFFF1A",hcDark:"#FFFFFF",hcLight:"#09345f"},c.kg("textPreformatBackground","Background color for preformatted text segments.")),u("textBlockQuote.background",{light:"#f2f2f2",dark:"#222222",hcDark:null,hcLight:"#F2F2F2"},c.kg("textBlockQuoteBackground","Background color for block quotes in text.")),u("textBlockQuote.border",{light:"#007acc80",dark:"#007acc80",hcDark:s.Q1.white,hcLight:"#292929"},c.kg("textBlockQuoteBorder","Border color for block quotes in text.")),u("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hcDark:s.Q1.black,hcLight:"#F2F2F2"},c.kg("textCodeBlockBackground","Background color for code blocks in text.")),u("sash.hoverBorder",L,c.kg("sashActiveBorder","Border color of active sashes.")),u("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hcDark:s.Q1.black,hcLight:"#0F4A85"},c.kg("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count."))),E=(u("badge.foreground",{dark:s.Q1.white,light:"#333",hcDark:s.Q1.white,hcLight:s.Q1.white},c.kg("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),u("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hcDark:null,hcLight:null},c.kg("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled."))),N=u("scrollbarSlider.background",{dark:s.Q1.fromHex("#797979").transparent(.4),light:s.Q1.fromHex("#646464").transparent(.4),hcDark:f(w,.6),hcLight:f(w,.4)},c.kg("scrollbarSliderBackground","Scrollbar slider background color.")),T=u("scrollbarSlider.hoverBackground",{dark:s.Q1.fromHex("#646464").transparent(.7),light:s.Q1.fromHex("#646464").transparent(.7),hcDark:f(w,.8),hcLight:f(w,.8)},c.kg("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),A=u("scrollbarSlider.activeBackground",{dark:s.Q1.fromHex("#BFBFBF").transparent(.4),light:s.Q1.fromHex("#000000").transparent(.6),hcDark:w,hcLight:w},c.kg("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),I=(u("progressBar.background",{dark:s.Q1.fromHex("#0E70C0"),light:s.Q1.fromHex("#0E70C0"),hcDark:w,hcLight:w},c.kg("progressBarBackground","Background color of the progress bar that can show for long running operations.")),u("editor.background",{light:"#ffffff",dark:"#1E1E1E",hcDark:s.Q1.black,hcLight:s.Q1.white},c.kg("editorBackground","Editor background color."))),O=(u("editor.foreground",{light:"#333333",dark:"#BBBBBB",hcDark:s.Q1.white,hcLight:C},c.kg("editorForeground","Editor default foreground color.")),u("editorStickyScroll.background",I,c.kg("editorStickyScrollBackground","Background color of sticky scroll in the editor")),u("editorStickyScrollHover.background",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:null,hcLight:s.Q1.fromHex("#0F4A85").transparent(.1)},c.kg("editorStickyScrollHoverBackground","Background color of sticky scroll on hover in the editor")),u("editorStickyScroll.border",{dark:null,light:null,hcDark:w,hcLight:w},c.kg("editorStickyScrollBorder","Border color of sticky scroll in the editor")),u("editorStickyScroll.shadow",E,c.kg("editorStickyScrollShadow"," Shadow color of sticky scroll in the editor")),u("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hcDark:"#0C141F",hcLight:s.Q1.white},c.kg("editorWidgetBackground","Background color of editor widgets, such as find/replace."))),M=u("editorWidget.foreground",C,c.kg("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),R=u("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hcDark:w,hcLight:w},c.kg("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),D=(u("editorWidget.resizeBorder",null,c.kg("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),u("editorError.background",null,c.kg("editorError.background","Background color of error text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),u("editorError.foreground",{dark:"#F14C4C",light:"#E51400",hcDark:"#F48771",hcLight:"#B5200D"},c.kg("editorError.foreground","Foreground color of error squigglies in the editor."))),B=(u("editorError.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#E47777").transparent(.8),hcLight:"#B5200D"},c.kg("errorBorder","If set, color of double underlines for errors in the editor.")),u("editorWarning.background",null,c.kg("editorWarning.background","Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0)),F=u("editorWarning.foreground",{dark:"#CCA700",light:"#BF8803",hcDark:"#FFD370",hcLight:"#895503"},c.kg("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),P=u("editorWarning.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#FFCC00").transparent(.8),hcLight:s.Q1.fromHex("#FFCC00").transparent(.8)},c.kg("warningBorder","If set, color of double underlines for warnings in the editor.")),V=(u("editorInfo.background",null,c.kg("editorInfo.background","Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),u("editorInfo.foreground",{dark:"#3794FF",light:"#1a85ff",hcDark:"#3794FF",hcLight:"#1a85ff"},c.kg("editorInfo.foreground","Foreground color of info squigglies in the editor."))),z=u("editorInfo.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#3794FF").transparent(.8),hcLight:"#292929"},c.kg("infoBorder","If set, color of double underlines for infos in the editor.")),j=(u("editorHint.foreground",{dark:s.Q1.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hcDark:null,hcLight:null},c.kg("editorHint.foreground","Foreground color of hint squigglies in the editor.")),u("editorHint.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#eeeeee").transparent(.8),hcLight:"#292929"},c.kg("hintBorder","If set, color of double underlines for hints in the editor.")),u("editorLink.activeForeground",{dark:"#4E94CE",light:s.Q1.blue,hcDark:s.Q1.cyan,hcLight:"#292929"},c.kg("activeLinkForeground","Color of active links.")),u("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hcDark:"#f3f518",hcLight:"#0F4A85"},c.kg("editorSelectionBackground","Color of the editor selection."))),q=(u("editor.selectionForeground",{light:null,dark:null,hcDark:"#000000",hcLight:s.Q1.white},c.kg("editorSelectionForeground","Color of the selected text for high contrast.")),u("editor.inactiveSelectionBackground",{light:f(j,.5),dark:f(j,.5),hcDark:f(j,.7),hcLight:f(j,.5)},c.kg("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),u("editor.selectionHighlightBackground",{light:p(j,I,.3,.6),dark:p(j,I,.3,.6),hcDark:null,hcLight:null},c.kg("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),u("editor.selectionHighlightBorder",{light:null,dark:null,hcDark:S,hcLight:S},c.kg("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),u("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hcDark:null,hcLight:null},c.kg("editorFindMatch","Color of the current search match.")),u("editor.findMatchForeground",null,c.kg("editorFindMatchForeground","Text color of the current search match.")),u("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hcDark:null,hcLight:null},c.kg("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0)),W=(u("editor.findMatchHighlightForeground",null,c.kg("findMatchHighlightForeground","Foreground color of the other search matches."),!0),u("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hcDark:null,hcLight:null},c.kg("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),u("editor.findMatchBorder",{light:null,dark:null,hcDark:S,hcLight:S},c.kg("editorFindMatchBorder","Border color of the current search match.")),u("editor.findMatchHighlightBorder",{light:null,dark:null,hcDark:S,hcLight:S},c.kg("findMatchHighlightBorder","Border color of the other search matches."))),U=(u("editor.findRangeHighlightBorder",{dark:null,light:null,hcDark:f(S,.4),hcLight:f(S,.4)},c.kg("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),u("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hcDark:"#ADD6FF26",hcLight:null},c.kg("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),u("editorHoverWidget.background",O,c.kg("hoverBackground","Background color of the editor hover."))),$=(u("editorHoverWidget.foreground",M,c.kg("hoverForeground","Foreground color of the editor hover.")),u("editorHoverWidget.border",R,c.kg("hoverBorder","Border color of the editor hover.")),u("editorHoverWidget.statusBarBackground",{dark:g(U,.2),light:d(U,.05),hcDark:O,hcLight:O},c.kg("statusBarBackground","Background color of the editor hover status bar.")),u("editorInlayHint.foreground",{dark:"#969696",light:"#969696",hcDark:s.Q1.white,hcLight:s.Q1.black},c.kg("editorInlayHintForeground","Foreground color of inline hints"))),H=u("editorInlayHint.background",{dark:f(x,.1),light:f(x,.1),hcDark:f(s.Q1.white,.1),hcLight:f(x,.1)},c.kg("editorInlayHintBackground","Background color of inline hints")),K=(u("editorInlayHint.typeForeground",$,c.kg("editorInlayHintForegroundTypes","Foreground color of inline hints for types")),u("editorInlayHint.typeBackground",H,c.kg("editorInlayHintBackgroundTypes","Background color of inline hints for types")),u("editorInlayHint.parameterForeground",$,c.kg("editorInlayHintForegroundParameter","Foreground color of inline hints for parameters")),u("editorInlayHint.parameterBackground",H,c.kg("editorInlayHintBackgroundParameter","Background color of inline hints for parameters")),u("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hcDark:"#FFCC00",hcLight:"#007ACC"},c.kg("editorLightBulbForeground","The color used for the lightbulb actions icon."))),G=(u("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},c.kg("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),u("editorLightBulbAi.foreground",K,c.kg("editorLightBulbAiForeground","The color used for the lightbulb AI icon.")),u("editor.snippetTabstopHighlightBackground",{dark:new s.Q1(new s.bU(124,124,124,.3)),light:new s.Q1(new s.bU(10,50,100,.2)),hcDark:new s.Q1(new s.bU(124,124,124,.3)),hcLight:new s.Q1(new s.bU(10,50,100,.2))},c.kg("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),u("editor.snippetTabstopHighlightBorder",null,c.kg("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),u("editor.snippetFinalTabstopHighlightBackground",null,c.kg("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),u("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new s.Q1(new s.bU(10,50,100,.5)),hcDark:"#525252",hcLight:"#292929"},c.kg("snippetFinalTabstopHighlightBorder","Highlight border color of the final tabstop of a snippet.")),new s.Q1(new s.bU(155,185,85,.2))),Q=new s.Q1(new s.bU(255,0,0,.2)),J=(u("diffEditor.insertedTextBackground",{dark:"#9ccc2c33",light:"#9ccc2c40",hcDark:null,hcLight:null},c.kg("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),u("diffEditor.removedTextBackground",{dark:"#ff000033",light:"#ff000033",hcDark:null,hcLight:null},c.kg("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),u("diffEditor.insertedLineBackground",{dark:G,light:G,hcDark:null,hcLight:null},c.kg("diffEditorInsertedLines","Background color for lines that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),u("diffEditor.removedLineBackground",{dark:Q,light:Q,hcDark:null,hcLight:null},c.kg("diffEditorRemovedLines","Background color for lines that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),u("diffEditorGutter.insertedLineBackground",null,c.kg("diffEditorInsertedLineGutter","Background color for the margin where lines got inserted.")),u("diffEditorGutter.removedLineBackground",null,c.kg("diffEditorRemovedLineGutter","Background color for the margin where lines got removed.")),u("diffEditorOverview.insertedForeground",null,c.kg("diffEditorOverviewInserted","Diff overview ruler foreground for inserted content.")),u("diffEditorOverview.removedForeground",null,c.kg("diffEditorOverviewRemoved","Diff overview ruler foreground for removed content.")),u("diffEditor.insertedTextBorder",{dark:null,light:null,hcDark:"#33ff2eff",hcLight:"#374E06"},c.kg("diffEditorInsertedOutline","Outline color for the text that got inserted.")),u("diffEditor.removedTextBorder",{dark:null,light:null,hcDark:"#FF008F",hcLight:"#AD0707"},c.kg("diffEditorRemovedOutline","Outline color for text that got removed.")),u("diffEditor.border",{dark:null,light:null,hcDark:w,hcLight:w},c.kg("diffEditorBorder","Border color between the two text editors.")),u("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hcDark:null,hcLight:null},c.kg("diffDiagonalFill","Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.")),u("diffEditor.unchangedRegionBackground","sideBar.background",c.kg("diffEditor.unchangedRegionBackground","The background color of unchanged blocks in the diff editor.")),u("diffEditor.unchangedRegionForeground","foreground",c.kg("diffEditor.unchangedRegionForeground","The foreground color of unchanged blocks in the diff editor.")),u("diffEditor.unchangedCodeBackground",{dark:"#74747429",light:"#b8b8b829",hcDark:null,hcLight:null},c.kg("diffEditor.unchangedCodeBackground","The background color of unchanged code in the diff editor.")),u("widget.shadow",{dark:f(s.Q1.black,.36),light:f(s.Q1.black,.16),hcDark:null,hcLight:null},c.kg("widgetShadow","Shadow color of widgets such as find/replace inside the editor."))),X=(u("widget.border",{dark:null,light:null,hcDark:w,hcLight:w},c.kg("widgetBorder","Border color of widgets such as find/replace inside the editor.")),u("toolbar.hoverBackground",{dark:"#5a5d5e50",light:"#b8b8b850",hcDark:null,hcLight:null},c.kg("toolbarHoverBackground","Toolbar background when hovering over actions using the mouse"))),Y=(u("toolbar.hoverOutline",{dark:null,light:null,hcDark:S,hcLight:S},c.kg("toolbarHoverOutline","Toolbar outline when hovering over actions using the mouse")),u("toolbar.activeBackground",{dark:g(X,.1),light:d(X,.1),hcDark:null,hcLight:null},c.kg("toolbarActiveBackground","Toolbar background when holding the mouse over actions")),u("breadcrumb.foreground",f(C,.8),c.kg("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),u("breadcrumb.background",I,c.kg("breadcrumbsBackground","Background color of breadcrumb items.")),u("breadcrumb.focusForeground",{light:d(C,.2),dark:g(C,.1),hcDark:g(C,.1),hcLight:g(C,.1)},c.kg("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),u("breadcrumb.activeSelectionForeground",{light:d(C,.2),dark:g(C,.1),hcDark:g(C,.1),hcLight:g(C,.1)},c.kg("breadcrumbsSelectedForeground","Color of selected breadcrumb items.")),u("breadcrumbPicker.background",O,c.kg("breadcrumbsSelectedBackground","Background color of breadcrumb item picker.")),s.Q1.fromHex("#40C8AE").transparent(.5)),Z=s.Q1.fromHex("#40A6FF").transparent(.5),ee=s.Q1.fromHex("#606060").transparent(.4),te=u("merge.currentHeaderBackground",{dark:Y,light:Y,hcDark:null,hcLight:null},c.kg("mergeCurrentHeaderBackground","Current header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),ne=(u("merge.currentContentBackground",f(te,.4),c.kg("mergeCurrentContentBackground","Current content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),u("merge.incomingHeaderBackground",{dark:Z,light:Z,hcDark:null,hcLight:null},c.kg("mergeIncomingHeaderBackground","Incoming header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0)),re=(u("merge.incomingContentBackground",f(ne,.4),c.kg("mergeIncomingContentBackground","Incoming content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),u("merge.commonHeaderBackground",{dark:ee,light:ee,hcDark:null,hcLight:null},c.kg("mergeCommonHeaderBackground","Common ancestor header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0)),ie=(u("merge.commonContentBackground",f(re,.4),c.kg("mergeCommonContentBackground","Common ancestor content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),u("merge.border",{dark:null,light:null,hcDark:"#C3DF6F",hcLight:"#007ACC"},c.kg("mergeBorder","Border color on headers and the splitter in inline merge-conflicts."))),se=(u("editorOverviewRuler.currentContentForeground",{dark:f(te,1),light:f(te,1),hcDark:ie,hcLight:ie},c.kg("overviewRulerCurrentContentForeground","Current overview ruler foreground for inline merge-conflicts.")),u("editorOverviewRuler.incomingContentForeground",{dark:f(ne,1),light:f(ne,1),hcDark:ie,hcLight:ie},c.kg("overviewRulerIncomingContentForeground","Incoming overview ruler foreground for inline merge-conflicts.")),u("editorOverviewRuler.commonContentForeground",{dark:f(re,1),light:f(re,1),hcDark:ie,hcLight:ie},c.kg("overviewRulerCommonContentForeground","Common ancestor overview ruler foreground for inline merge-conflicts.")),u("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hcDark:"#AB5A00",hcLight:"#AB5A00"},c.kg("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0),u("editorOverviewRuler.selectionHighlightForeground","#A0A0A0CC",c.kg("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),u("problemsErrorIcon.foreground",D,c.kg("problemsErrorIconForeground","The color used for the problems error icon.")),u("problemsWarningIcon.foreground",F,c.kg("problemsWarningIconForeground","The color used for the problems warning icon.")),u("problemsInfoIcon.foreground",V,c.kg("problemsInfoIconForeground","The color used for the problems info icon.")),u("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hcDark:"#AB5A00",hcLight:"#0F4A85"},c.kg("minimapFindMatchHighlight","Minimap marker color for find matches."),!0)),oe=(u("minimap.selectionOccurrenceHighlight",{light:"#c9c9c9",dark:"#676767",hcDark:"#ffffff",hcLight:"#0F4A85"},c.kg("minimapSelectionOccurrenceHighlight","Minimap marker color for repeating editor selections."),!0),u("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hcDark:"#ffffff",hcLight:"#0F4A85"},c.kg("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),u("minimap.infoHighlight",{dark:V,light:V,hcDark:z,hcLight:z},c.kg("minimapInfo","Minimap marker color for infos."))),ae=u("minimap.warningHighlight",{dark:F,light:F,hcDark:P,hcLight:P},c.kg("overviewRuleWarning","Minimap marker color for warnings.")),le=u("minimap.errorHighlight",{dark:new s.Q1(new s.bU(255,18,18,.7)),light:new s.Q1(new s.bU(255,18,18,.7)),hcDark:new s.Q1(new s.bU(255,50,50,1)),hcLight:"#B5200D"},c.kg("minimapError","Minimap marker color for errors.")),ce=(u("minimap.background",null,c.kg("minimapBackground","Minimap background color.")),u("minimap.foregroundOpacity",s.Q1.fromHex("#000f"),c.kg("minimapForegroundOpacity",'Opacity of foreground elements rendered in the minimap. For example, "#000000c0" will render the elements with 75% opacity.')),u("minimapSlider.background",f(N,.5),c.kg("minimapSliderBackground","Minimap slider background color.")),u("minimapSlider.hoverBackground",f(T,.5),c.kg("minimapSliderHoverBackground","Minimap slider background color when hovering.")),u("minimapSlider.activeBackground",f(A,.5),c.kg("minimapSliderActiveBackground","Minimap slider background color when clicked on.")),u("charts.foreground",C,c.kg("chartsForeground","The foreground color used in charts.")),u("charts.lines",f(C,.5),c.kg("chartsLines","The color used for horizontal lines in charts.")),u("charts.red",D,c.kg("chartsRed","The red color used in chart visualizations.")),u("charts.blue",V,c.kg("chartsBlue","The blue color used in chart visualizations.")),u("charts.yellow",F,c.kg("chartsYellow","The yellow color used in chart visualizations.")),u("charts.orange",se,c.kg("chartsOrange","The orange color used in chart visualizations.")),u("charts.green",{dark:"#89D185",light:"#388A34",hcDark:"#89D185",hcLight:"#374e06"},c.kg("chartsGreen","The green color used in chart visualizations.")),u("charts.purple",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},c.kg("chartsPurple","The purple color used in chart visualizations.")),u("input.background",{dark:"#3C3C3C",light:s.Q1.white,hcDark:s.Q1.black,hcLight:s.Q1.white},c.kg("inputBoxBackground","Input box background.")),u("input.foreground",C,c.kg("inputBoxForeground","Input box foreground.")),u("input.border",{dark:null,light:null,hcDark:w,hcLight:w},c.kg("inputBoxBorder","Input box border.")),u("inputOption.activeBorder",{dark:"#007ACC",light:"#007ACC",hcDark:w,hcLight:w},c.kg("inputBoxActiveOptionBorder","Border color of activated options in input fields."))),he=u("inputOption.hoverBackground",{dark:"#5a5d5e80",light:"#b8b8b850",hcDark:null,hcLight:null},c.kg("inputOption.hoverBackground","Background color of activated options in input fields.")),ue=u("inputOption.activeBackground",{dark:f(L,.4),light:f(L,.2),hcDark:s.Q1.transparent,hcLight:s.Q1.transparent},c.kg("inputOption.activeBackground","Background hover color of options in input fields.")),de=u("inputOption.activeForeground",{dark:s.Q1.white,light:s.Q1.black,hcDark:C,hcLight:C},c.kg("inputOption.activeForeground","Foreground color of activated options in input fields.")),ge=(u("input.placeholderForeground",{light:f(C,.5),dark:f(C,.5),hcDark:f(C,.7),hcLight:f(C,.7)},c.kg("inputPlaceholderForeground","Input box foreground color for placeholder text.")),u("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hcDark:s.Q1.black,hcLight:s.Q1.white},c.kg("inputValidationInfoBackground","Input validation background color for information severity.")),u("inputValidation.infoForeground",{dark:null,light:null,hcDark:null,hcLight:C},c.kg("inputValidationInfoForeground","Input validation foreground color for information severity.")),u("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hcDark:w,hcLight:w},c.kg("inputValidationInfoBorder","Input validation border color for information severity.")),u("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hcDark:s.Q1.black,hcLight:s.Q1.white},c.kg("inputValidationWarningBackground","Input validation background color for warning severity.")),u("inputValidation.warningForeground",{dark:null,light:null,hcDark:null,hcLight:C},c.kg("inputValidationWarningForeground","Input validation foreground color for warning severity.")),u("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hcDark:w,hcLight:w},c.kg("inputValidationWarningBorder","Input validation border color for warning severity.")),u("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hcDark:s.Q1.black,hcLight:s.Q1.white},c.kg("inputValidationErrorBackground","Input validation background color for error severity.")),u("inputValidation.errorForeground",{dark:null,light:null,hcDark:null,hcLight:C},c.kg("inputValidationErrorForeground","Input validation foreground color for error severity.")),u("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hcDark:w,hcLight:w},c.kg("inputValidationErrorBorder","Input validation border color for error severity.")),u("dropdown.background",{dark:"#3C3C3C",light:s.Q1.white,hcDark:s.Q1.black,hcLight:s.Q1.white},c.kg("dropdownBackground","Dropdown background."))),fe=(u("dropdown.listBackground",{dark:null,light:null,hcDark:s.Q1.black,hcLight:s.Q1.white},c.kg("dropdownListBackground","Dropdown list background.")),u("dropdown.foreground",{dark:"#F0F0F0",light:C,hcDark:s.Q1.white,hcLight:C},c.kg("dropdownForeground","Dropdown foreground."))),me=u("dropdown.border",{dark:ge,light:"#CECECE",hcDark:w,hcLight:w},c.kg("dropdownBorder","Dropdown border.")),pe=u("button.foreground",s.Q1.white,c.kg("buttonForeground","Button foreground color.")),be=(u("button.separator",f(pe,.4),c.kg("buttonSeparator","Button separator color.")),u("button.background",{dark:"#0E639C",light:"#007ACC",hcDark:null,hcLight:"#0F4A85"},c.kg("buttonBackground","Button background color."))),_e=(u("button.hoverBackground",{dark:g(be,.2),light:d(be,.2),hcDark:be,hcLight:be},c.kg("buttonHoverBackground","Button background color when hovering.")),u("button.border",w,c.kg("buttonBorder","Button border color.")),u("button.secondaryForeground",{dark:s.Q1.white,light:s.Q1.white,hcDark:s.Q1.white,hcLight:C},c.kg("buttonSecondaryForeground","Secondary button foreground color.")),u("button.secondaryBackground",{dark:"#3A3D41",light:"#5F6A79",hcDark:null,hcLight:s.Q1.white},c.kg("buttonSecondaryBackground","Secondary button background color."))),ke=(u("button.secondaryHoverBackground",{dark:g(_e,.2),light:d(_e,.2),hcDark:null,hcLight:null},c.kg("buttonSecondaryHoverBackground","Secondary button background color when hovering.")),u("radio.activeForeground",de,c.kg("radioActiveForeground","Foreground color of active radio option."))),ve=(u("radio.activeBackground",ue,c.kg("radioBackground","Background color of active radio option.")),u("radio.activeBorder",ce,c.kg("radioActiveBorder","Border color of the active radio option.")),u("radio.inactiveForeground",null,c.kg("radioInactiveForeground","Foreground color of inactive radio option.")),u("radio.inactiveBackground",null,c.kg("radioInactiveBackground","Background color of inactive radio option.")),u("radio.inactiveBorder",{light:f(ke,.2),dark:f(ke,.2),hcDark:f(ke,.4),hcLight:f(ke,.2)},c.kg("radioInactiveBorder","Border color of the inactive radio option.")),u("radio.inactiveHoverBackground",he,c.kg("radioHoverBackground","Background color of inactive active radio option when hovering.")),u("checkbox.background",ge,c.kg("checkbox.background","Background color of checkbox widget.")),u("checkbox.selectBackground",O,c.kg("checkbox.select.background","Background color of checkbox widget when the element it's in is selected.")),u("checkbox.foreground",fe,c.kg("checkbox.foreground","Foreground color of checkbox widget.")),u("checkbox.border",me,c.kg("checkbox.border","Border color of checkbox widget.")),u("checkbox.selectBorder",y,c.kg("checkbox.select.border","Border color of checkbox widget when the element it's in is selected.")),u("keybindingLabel.background",{dark:new s.Q1(new s.bU(128,128,128,.17)),light:new s.Q1(new s.bU(221,221,221,.4)),hcDark:s.Q1.transparent,hcLight:s.Q1.transparent},c.kg("keybindingLabelBackground","Keybinding label background color. The keybinding label is used to represent a keyboard shortcut.")),u("keybindingLabel.foreground",{dark:s.Q1.fromHex("#CCCCCC"),light:s.Q1.fromHex("#555555"),hcDark:s.Q1.white,hcLight:C},c.kg("keybindingLabelForeground","Keybinding label foreground color. The keybinding label is used to represent a keyboard shortcut.")),u("keybindingLabel.border",{dark:new s.Q1(new s.bU(51,51,51,.6)),light:new s.Q1(new s.bU(204,204,204,.4)),hcDark:new s.Q1(new s.bU(111,195,223)),hcLight:w},c.kg("keybindingLabelBorder","Keybinding label border color. The keybinding label is used to represent a keyboard shortcut.")),u("keybindingLabel.bottomBorder",{dark:new s.Q1(new s.bU(68,68,68,.6)),light:new s.Q1(new s.bU(187,187,187,.4)),hcDark:new s.Q1(new s.bU(111,195,223)),hcLight:C},c.kg("keybindingLabelBottomBorder","Keybinding label border bottom color. The keybinding label is used to represent a keyboard shortcut.")),u("list.focusBackground",null,c.kg("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),u("list.focusForeground",null,c.kg("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),u("list.focusOutline",{dark:L,light:L,hcDark:S,hcLight:S},c.kg("listFocusOutline","List/Tree outline color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),u("list.focusAndSelectionOutline",null,c.kg("listFocusAndSelectionOutline","List/Tree outline color for the focused item when the list/tree is active and selected. An active list/tree has keyboard focus, an inactive does not.")),u("list.activeSelectionBackground",{dark:"#04395E",light:"#0060C0",hcDark:null,hcLight:s.Q1.fromHex("#0F4A85").transparent(.1)},c.kg("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not."))),Ce=u("list.activeSelectionForeground",{dark:s.Q1.white,light:s.Q1.white,hcDark:null,hcLight:null},c.kg("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),ye=u("list.activeSelectionIconForeground",null,c.kg("listActiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Le=(u("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hcDark:null,hcLight:s.Q1.fromHex("#0F4A85").transparent(.1)},c.kg("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),u("list.inactiveSelectionForeground",null,c.kg("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),u("list.inactiveSelectionIconForeground",null,c.kg("listInactiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),u("list.inactiveFocusBackground",null,c.kg("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),u("list.inactiveFocusOutline",null,c.kg("listInactiveFocusOutline","List/Tree outline color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),u("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:s.Q1.white.transparent(.1),hcLight:s.Q1.fromHex("#0F4A85").transparent(.1)},c.kg("listHoverBackground","List/Tree background when hovering over items using the mouse.")),u("list.hoverForeground",null,c.kg("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),u("list.dropBackground",{dark:"#062F4A",light:"#D6EBFF",hcDark:null,hcLight:null},c.kg("listDropBackground","List/Tree drag and drop background when moving items over other items when using the mouse.")),u("list.dropBetweenBackground",{dark:y,light:y,hcDark:null,hcLight:null},c.kg("listDropBetweenBackground","List/Tree drag and drop border color when moving items between items when using the mouse.")),u("list.highlightForeground",{dark:"#2AAAFF",light:"#0066BF",hcDark:L,hcLight:L},c.kg("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")));u("list.focusHighlightForeground",{dark:Le,light:(we=ve,Se=Le,xe="#BBE7FF",{op:6,if:we,then:Se,else:xe}),hcDark:Le,hcLight:Le},c.kg("listFocusHighlightForeground","List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree."));var we,Se,xe;u("list.invalidItemForeground",{dark:"#B89500",light:"#B89500",hcDark:"#B89500",hcLight:"#B5200D"},c.kg("invalidItemForeground","List/Tree foreground color for invalid items, for example an unresolved root in explorer.")),u("list.errorForeground",{dark:"#F88070",light:"#B01011",hcDark:null,hcLight:null},c.kg("listErrorForeground","Foreground color of list items containing errors.")),u("list.warningForeground",{dark:"#CCA700",light:"#855F00",hcDark:null,hcLight:null},c.kg("listWarningForeground","Foreground color of list items containing warnings.")),u("listFilterWidget.background",{light:d(O,0),dark:g(O,0),hcDark:O,hcLight:O},c.kg("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),u("listFilterWidget.outline",{dark:s.Q1.transparent,light:s.Q1.transparent,hcDark:"#f38518",hcLight:"#007ACC"},c.kg("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),u("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hcDark:w,hcLight:w},c.kg("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),u("listFilterWidget.shadow",J,c.kg("listFilterWidgetShadow","Shadow color of the type filter widget in lists and trees.")),u("list.filterMatchBackground",{dark:q,light:q,hcDark:null,hcLight:null},c.kg("listFilterMatchHighlight","Background color of the filtered match.")),u("list.filterMatchBorder",{dark:W,light:W,hcDark:w,hcLight:S},c.kg("listFilterMatchHighlightBorder","Border color of the filtered match.")),u("list.deemphasizedForeground",{dark:"#8C8C8C",light:"#8E8E90",hcDark:"#A7A8A9",hcLight:"#666666"},c.kg("listDeemphasizedForeground","List/Tree foreground color for items that are deemphasized."));const Ee=u("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hcDark:"#a9a9a9",hcLight:"#a5a5a5"},c.kg("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),Ne=(u("tree.inactiveIndentGuidesStroke",f(Ee,.4),c.kg("treeInactiveIndentGuidesStroke","Tree stroke color for the indentation guides that are not active.")),u("tree.tableColumnsBorder",{dark:"#CCCCCC20",light:"#61616120",hcDark:null,hcLight:null},c.kg("tableColumnsBorder","Table border color between columns.")),u("tree.tableOddRowsBackground",{dark:f(C,.04),light:f(C,.04),hcDark:null,hcLight:null},c.kg("tableOddRowsBackgroundColor","Background color for odd table rows.")),u("editorActionList.background",O,c.kg("editorActionListBackground","Action List background color.")),u("editorActionList.foreground",M,c.kg("editorActionListForeground","Action List foreground color.")),u("editorActionList.focusForeground",Ce,c.kg("editorActionListFocusForeground","Action List foreground color for the focused item.")),u("editorActionList.focusBackground",ve,c.kg("editorActionListFocusBackground","Action List background color for the focused item.")),u("menu.border",{dark:null,light:null,hcDark:w,hcLight:w},c.kg("menuBorder","Border color of menus.")),u("menu.foreground",fe,c.kg("menuForeground","Foreground color of menu items.")),u("menu.background",ge,c.kg("menuBackground","Background color of menu items.")),u("menu.selectionForeground",Ce,c.kg("menuSelectionForeground","Foreground color of the selected menu item in menus.")),u("menu.selectionBackground",ve,c.kg("menuSelectionBackground","Background color of the selected menu item in menus.")),u("menu.selectionBorder",{dark:null,light:null,hcDark:S,hcLight:S},c.kg("menuSelectionBorder","Border color of the selected menu item in menus.")),u("menu.separatorBackground",{dark:"#606060",light:"#D4D4D4",hcDark:w,hcLight:w},c.kg("menuSeparatorBackground","Color of a separator menu item in menus.")),u("quickInput.background",O,c.kg("pickerBackground","Quick picker background color. The quick picker widget is the container for pickers like the command palette.")),u("quickInput.foreground",M,c.kg("pickerForeground","Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")),u("quickInputTitle.background",{dark:new s.Q1(new s.bU(255,255,255,.105)),light:new s.Q1(new s.bU(0,0,0,.06)),hcDark:"#000000",hcLight:s.Q1.white},c.kg("pickerTitleBackground","Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")),u("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hcDark:s.Q1.white,hcLight:"#0F4A85"},c.kg("pickerGroupForeground","Quick picker color for grouping labels.")),u("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hcDark:s.Q1.white,hcLight:"#0F4A85"},c.kg("pickerGroupBorder","Quick picker color for grouping borders.")),u("quickInput.list.focusBackground",null,"",void 0,c.kg("quickInput.list.focusBackground deprecation","Please use quickInputList.focusBackground instead")));u("quickInputList.focusForeground",Ce,c.kg("quickInput.listFocusForeground","Quick picker foreground color for the focused item.")),u("quickInputList.focusIconForeground",ye,c.kg("quickInput.listFocusIconForeground","Quick picker icon foreground color for the focused item.")),u("quickInputList.focusBackground",{dark:m(Ne,ve),light:m(Ne,ve),hcDark:null,hcLight:null},c.kg("quickInput.listFocusBackground","Quick picker background color for the focused item.")),u("search.resultsInfoForeground",{light:C,dark:f(C,.65),hcDark:C,hcLight:C},c.kg("search.resultsInfoForeground","Color of the text in the search viewlet's completion message.")),u("searchEditor.findMatchBackground",{light:f(q,.66),dark:f(q,.66),hcDark:q,hcLight:q},c.kg("searchEditor.queryMatch","Color of the Search Editor query matches.")),u("searchEditor.findMatchBorder",{light:f(W,.66),dark:f(W,.66),hcDark:W,hcLight:W},c.kg("searchEditor.editorFindMatchBorder","Border color of the Search Editor query matches."))},5724:(e,t,n)=>{"use strict";n.d(t,{Gy:()=>l,zy:()=>u,Yf:()=>c});var r,i=n(1234),s=n(1484),o=n(3591),a=n(6359);!function(e){e.DARK="dark",e.LIGHT="light",e.HIGH_CONTRAST_DARK="hcDark",e.HIGH_CONTRAST_LIGHT="hcLight"}(r||(r={}));const l=(0,o.u1)("themeService");function c(e){return{id:e}}const h=new class{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new i.vl}onColorThemeChange(e){return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),(0,s.s)((()=>{const t=this.themingParticipants.indexOf(e);this.themingParticipants.splice(t,1)}))}getThemingParticipants(){return this.themingParticipants}};function u(e){return h.onColorThemeChange(e)}a.O.add("base.contributions.theming",h);s.jG},5890:(e,t,n)=>{var r={"./simpleWorker":1929,"./simpleWorker.js":1929,"monaco-editor/esm/vs/base/common/worker/simpleWorker":1929,"monaco-editor/esm/vs/base/common/worker/simpleWorker.js":1929};function i(e){return Promise.resolve().then((()=>{if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n(r[e])}))}i.keys=()=>Object.keys(r),i.id=5890,e.exports=i},9204:(e,t,n)=>{var r={"./editorBaseApi":[4272],"./editorBaseApi.js":[4272],"./editorSimpleWorker":[5196],"./editorSimpleWorker.js":[5196],"./editorWorker":[920,792],"./editorWorker.js":[920,792],"./editorWorkerHost":[718],"./editorWorkerHost.js":[718],"./findSectionHeaders":[6691],"./findSectionHeaders.js":[6691],"./getIconClasses":[5628,792],"./getIconClasses.js":[5628,792],"./languageFeatureDebounce":[8709,792],"./languageFeatureDebounce.js":[8709,792],"./languageFeatures":[6942,792],"./languageFeatures.js":[6942,792],"./languageFeaturesService":[2661,792],"./languageFeaturesService.js":[2661,792],"./languageService":[7596,792],"./languageService.js":[7596,792],"./languagesAssociations":[9908,792],"./languagesAssociations.js":[9908,792],"./languagesRegistry":[9259,792],"./languagesRegistry.js":[9259,792],"./markerDecorations":[7550,792],"./markerDecorations.js":[7550,792],"./markerDecorationsService":[448,792],"./markerDecorationsService.js":[448,792],"./model":[3750,792],"./model.js":[3750,792],"./modelService":[1773,792],"./modelService.js":[1773,792],"./resolverService":[8938,792],"./resolverService.js":[8938,792],"./semanticTokensDto":[8232,792],"./semanticTokensDto.js":[8232,792],"./semanticTokensProviderStyling":[5538,792],"./semanticTokensProviderStyling.js":[5538,792],"./semanticTokensStyling":[4243,792],"./semanticTokensStyling.js":[4243,792],"./semanticTokensStylingService":[7004,792],"./semanticTokensStylingService.js":[7004,792],"./textModelSync/textModelSync.impl":[796],"./textModelSync/textModelSync.impl.js":[796],"./textModelSync/textModelSync.protocol":[8868,792],"./textModelSync/textModelSync.protocol.js":[8868,792],"./textResourceConfiguration":[360,792],"./textResourceConfiguration.js":[360,792],"./treeSitterParserService":[4432,792],"./treeSitterParserService.js":[4432,792],"./treeViewsDnd":[6723,792],"./treeViewsDnd.js":[6723,792],"./treeViewsDndService":[9100,792],"./treeViewsDndService.js":[9100,792],"./unicodeTextModelHighlighter":[4855],"./unicodeTextModelHighlighter.js":[4855],"monaco-editor/esm/vs/editor/common/services/editorBaseApi":[4272],"monaco-editor/esm/vs/editor/common/services/editorBaseApi.js":[4272],"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker":[5196],"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker.js":[5196],"monaco-editor/esm/vs/editor/common/services/editorWorker":[920,792],"monaco-editor/esm/vs/editor/common/services/editorWorker.js":[920,792],"monaco-editor/esm/vs/editor/common/services/editorWorkerHost":[718],"monaco-editor/esm/vs/editor/common/services/editorWorkerHost.js":[718],"monaco-editor/esm/vs/editor/common/services/findSectionHeaders":[6691],"monaco-editor/esm/vs/editor/common/services/findSectionHeaders.js":[6691],"monaco-editor/esm/vs/editor/common/services/getIconClasses":[5628,792],"monaco-editor/esm/vs/editor/common/services/getIconClasses.js":[5628,792],"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce":[8709,792],"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce.js":[8709,792],"monaco-editor/esm/vs/editor/common/services/languageFeatures":[6942,792],"monaco-editor/esm/vs/editor/common/services/languageFeatures.js":[6942,792],"monaco-editor/esm/vs/editor/common/services/languageFeaturesService":[2661,792],"monaco-editor/esm/vs/editor/common/services/languageFeaturesService.js":[2661,792],"monaco-editor/esm/vs/editor/common/services/languageService":[7596,792],"monaco-editor/esm/vs/editor/common/services/languageService.js":[7596,792],"monaco-editor/esm/vs/editor/common/services/languagesAssociations":[9908,792],"monaco-editor/esm/vs/editor/common/services/languagesAssociations.js":[9908,792],"monaco-editor/esm/vs/editor/common/services/languagesRegistry":[9259,792],"monaco-editor/esm/vs/editor/common/services/languagesRegistry.js":[9259,792],"monaco-editor/esm/vs/editor/common/services/markerDecorations":[7550,792],"monaco-editor/esm/vs/editor/common/services/markerDecorations.js":[7550,792],"monaco-editor/esm/vs/editor/common/services/markerDecorationsService":[448,792],"monaco-editor/esm/vs/editor/common/services/markerDecorationsService.js":[448,792],"monaco-editor/esm/vs/editor/common/services/model":[3750,792],"monaco-editor/esm/vs/editor/common/services/model.js":[3750,792],"monaco-editor/esm/vs/editor/common/services/modelService":[1773,792],"monaco-editor/esm/vs/editor/common/services/modelService.js":[1773,792],"monaco-editor/esm/vs/editor/common/services/resolverService":[8938,792],"monaco-editor/esm/vs/editor/common/services/resolverService.js":[8938,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensDto":[8232,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensDto.js":[8232,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling":[5538,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling.js":[5538,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling":[4243,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling.js":[4243,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService":[7004,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService.js":[7004,792],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl":[796],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl.js":[796],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol":[8868,792],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol.js":[8868,792],"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration":[360,792],"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration.js":[360,792],"monaco-editor/esm/vs/editor/common/services/treeSitterParserService":[4432,792],"monaco-editor/esm/vs/editor/common/services/treeSitterParserService.js":[4432,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDnd":[6723,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDnd.js":[6723,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDndService":[9100,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDndService.js":[9100,792],"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter":[4855],"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter.js":[4855]};function i(e){if(!n.o(r,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],i=t[0];return Promise.all(t.slice(1).map(n.e)).then((()=>n(i)))}i.keys=()=>Object.keys(r),i.id=9204,e.exports=i},7614:(e,t,n)=>{var r={"./editorBaseApi":4272,"./editorBaseApi.js":4272,"./editorSimpleWorker":5196,"./editorSimpleWorker.js":5196,"./editorWorker":920,"./editorWorker.js":920,"./editorWorkerHost":718,"./editorWorkerHost.js":718,"./findSectionHeaders":6691,"./findSectionHeaders.js":6691,"./getIconClasses":5628,"./getIconClasses.js":5628,"./languageFeatureDebounce":8709,"./languageFeatureDebounce.js":8709,"./languageFeatures":6942,"./languageFeatures.js":6942,"./languageFeaturesService":2661,"./languageFeaturesService.js":2661,"./languageService":7596,"./languageService.js":7596,"./languagesAssociations":9908,"./languagesAssociations.js":9908,"./languagesRegistry":9259,"./languagesRegistry.js":9259,"./markerDecorations":7550,"./markerDecorations.js":7550,"./markerDecorationsService":448,"./markerDecorationsService.js":448,"./model":3750,"./model.js":3750,"./modelService":1773,"./modelService.js":1773,"./resolverService":8938,"./resolverService.js":8938,"./semanticTokensDto":8232,"./semanticTokensDto.js":8232,"./semanticTokensProviderStyling":5538,"./semanticTokensProviderStyling.js":5538,"./semanticTokensStyling":4243,"./semanticTokensStyling.js":4243,"./semanticTokensStylingService":7004,"./semanticTokensStylingService.js":7004,"./textModelSync/textModelSync.impl":796,"./textModelSync/textModelSync.impl.js":796,"./textModelSync/textModelSync.protocol":8868,"./textModelSync/textModelSync.protocol.js":8868,"./textResourceConfiguration":360,"./textResourceConfiguration.js":360,"./treeSitterParserService":4432,"./treeSitterParserService.js":4432,"./treeViewsDnd":6723,"./treeViewsDnd.js":6723,"./treeViewsDndService":9100,"./treeViewsDndService.js":9100,"./unicodeTextModelHighlighter":4855,"./unicodeTextModelHighlighter.js":4855,"monaco-editor/esm/vs/editor/common/services/editorBaseApi":4272,"monaco-editor/esm/vs/editor/common/services/editorBaseApi.js":4272,"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker":5196,"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker.js":5196,"monaco-editor/esm/vs/editor/common/services/editorWorker":920,"monaco-editor/esm/vs/editor/common/services/editorWorker.js":920,"monaco-editor/esm/vs/editor/common/services/editorWorkerHost":718,"monaco-editor/esm/vs/editor/common/services/editorWorkerHost.js":718,"monaco-editor/esm/vs/editor/common/services/findSectionHeaders":6691,"monaco-editor/esm/vs/editor/common/services/findSectionHeaders.js":6691,"monaco-editor/esm/vs/editor/common/services/getIconClasses":5628,"monaco-editor/esm/vs/editor/common/services/getIconClasses.js":5628,"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce":8709,"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce.js":8709,"monaco-editor/esm/vs/editor/common/services/languageFeatures":6942,"monaco-editor/esm/vs/editor/common/services/languageFeatures.js":6942,"monaco-editor/esm/vs/editor/common/services/languageFeaturesService":2661,"monaco-editor/esm/vs/editor/common/services/languageFeaturesService.js":2661,"monaco-editor/esm/vs/editor/common/services/languageService":7596,"monaco-editor/esm/vs/editor/common/services/languageService.js":7596,"monaco-editor/esm/vs/editor/common/services/languagesAssociations":9908,"monaco-editor/esm/vs/editor/common/services/languagesAssociations.js":9908,"monaco-editor/esm/vs/editor/common/services/languagesRegistry":9259,"monaco-editor/esm/vs/editor/common/services/languagesRegistry.js":9259,"monaco-editor/esm/vs/editor/common/services/markerDecorations":7550,"monaco-editor/esm/vs/editor/common/services/markerDecorations.js":7550,"monaco-editor/esm/vs/editor/common/services/markerDecorationsService":448,"monaco-editor/esm/vs/editor/common/services/markerDecorationsService.js":448,"monaco-editor/esm/vs/editor/common/services/model":3750,"monaco-editor/esm/vs/editor/common/services/model.js":3750,"monaco-editor/esm/vs/editor/common/services/modelService":1773,"monaco-editor/esm/vs/editor/common/services/modelService.js":1773,"monaco-editor/esm/vs/editor/common/services/resolverService":8938,"monaco-editor/esm/vs/editor/common/services/resolverService.js":8938,"monaco-editor/esm/vs/editor/common/services/semanticTokensDto":8232,"monaco-editor/esm/vs/editor/common/services/semanticTokensDto.js":8232,"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling":5538,"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling.js":5538,"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling":4243,"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling.js":4243,"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService":7004,"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService.js":7004,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl":796,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl.js":796,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol":8868,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol.js":8868,"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration":360,"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration.js":360,"monaco-editor/esm/vs/editor/common/services/treeSitterParserService":4432,"monaco-editor/esm/vs/editor/common/services/treeSitterParserService.js":4432,"monaco-editor/esm/vs/editor/common/services/treeViewsDnd":6723,"monaco-editor/esm/vs/editor/common/services/treeViewsDnd.js":6723,"monaco-editor/esm/vs/editor/common/services/treeViewsDndService":9100,"monaco-editor/esm/vs/editor/common/services/treeViewsDndService.js":9100,"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter":4855,"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter.js":4855};function i(e){var t=s(e);return n(t)}function s(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=s,e.exports=i,i.id=7614}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var s=t[r]={exports:{}};return e[r](s,s.exports,n),s.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.e=()=>Promise.resolve(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=n(1929),t=n(5196),r=n(718);let i=!1;function s(n){if(i)return;i=!0;const s=new e.SimpleWorkerServer((e=>{globalThis.postMessage(e)}),(e=>new t.EditorSimpleWorker(r.EditorWorkerHost.getChannel(e),n)));globalThis.onmessage=e=>{s.onmessage(e.data)}}function o(e,t=!1){const n=e.length;let r=0,i="",s=0,o=16,h=0,u=0,d=0,g=0,f=0;function m(t,n){let i=0,s=0;for(;i<t||!n;){let t=e.charCodeAt(r);if(t>=48&&t<=57)s=16*s+t-48;else if(t>=65&&t<=70)s=16*s+t-65+10;else{if(!(t>=97&&t<=102))break;s=16*s+t-97+10}r++,i++}return i<t&&(s=-1),s}function p(){if(i="",f=0,s=r,u=h,g=d,r>=n)return s=n,o=17;let t=e.charCodeAt(r);if(a(t)){do{r++,i+=String.fromCharCode(t),t=e.charCodeAt(r)}while(a(t));return o=15}if(l(t))return r++,i+=String.fromCharCode(t),13===t&&10===e.charCodeAt(r)&&(r++,i+="\n"),h++,d=r,o=14;switch(t){case 123:return r++,o=1;case 125:return r++,o=2;case 91:return r++,o=3;case 93:return r++,o=4;case 58:return r++,o=6;case 44:return r++,o=5;case 34:return r++,i=function(){let t="",i=r;for(;;){if(r>=n){t+=e.substring(i,r),f=2;break}const s=e.charCodeAt(r);if(34===s){t+=e.substring(i,r),r++;break}if(92!==s){if(s>=0&&s<=31){if(l(s)){t+=e.substring(i,r),f=2;break}f=6}r++}else{if(t+=e.substring(i,r),r++,r>=n){f=2;break}switch(e.charCodeAt(r++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:const e=m(4,!0);e>=0?t+=String.fromCharCode(e):f=4;break;default:f=5}i=r}}return t}(),o=10;case 47:const a=r-1;if(47===e.charCodeAt(r+1)){for(r+=2;r<n&&!l(e.charCodeAt(r));)r++;return i=e.substring(a,r),o=12}if(42===e.charCodeAt(r+1)){r+=2;const t=n-1;let s=!1;for(;r<t;){const t=e.charCodeAt(r);if(42===t&&47===e.charCodeAt(r+1)){r+=2,s=!0;break}r++,l(t)&&(13===t&&10===e.charCodeAt(r)&&r++,h++,d=r)}return s||(r++,f=1),i=e.substring(a,r),o=13}return i+=String.fromCharCode(t),r++,o=16;case 45:if(i+=String.fromCharCode(t),r++,r===n||!c(e.charCodeAt(r)))return o=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return i+=function(){let t=r;if(48===e.charCodeAt(r))r++;else for(r++;r<e.length&&c(e.charCodeAt(r));)r++;if(r<e.length&&46===e.charCodeAt(r)){if(r++,!(r<e.length&&c(e.charCodeAt(r))))return f=3,e.substring(t,r);for(r++;r<e.length&&c(e.charCodeAt(r));)r++}let n=r;if(r<e.length&&(69===e.charCodeAt(r)||101===e.charCodeAt(r)))if(r++,(r<e.length&&43===e.charCodeAt(r)||45===e.charCodeAt(r))&&r++,r<e.length&&c(e.charCodeAt(r))){for(r++;r<e.length&&c(e.charCodeAt(r));)r++;n=r}else f=3;return e.substring(t,n)}(),o=11;default:for(;r<n&&b(t);)r++,t=e.charCodeAt(r);if(s!==r){switch(i=e.substring(s,r),i){case"true":return o=8;case"false":return o=9;case"null":return o=7}return o=16}return i+=String.fromCharCode(t),r++,o=16}}function b(e){if(a(e)||l(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){r=e,i="",s=0,o=16,f=0},getPosition:()=>r,scan:t?function(){let e;do{e=p()}while(e>=12&&e<=15);return e}:p,getToken:()=>o,getTokenValue:()=>i,getTokenOffset:()=>s,getTokenLength:()=>r-s,getTokenStartLine:()=>u,getTokenStartCharacter:()=>s-g,getTokenError:()=>f}}function a(e){return 32===e||9===e}function l(e){return 10===e||13===e}function c(e){return e>=48&&e<=57}var h,u;globalThis.onmessage=e=>{i||s(null)},(u=h||(h={}))[u.lineFeed=10]="lineFeed",u[u.carriageReturn=13]="carriageReturn",u[u.space=32]="space",u[u._0=48]="_0",u[u._1=49]="_1",u[u._2=50]="_2",u[u._3=51]="_3",u[u._4=52]="_4",u[u._5=53]="_5",u[u._6=54]="_6",u[u._7=55]="_7",u[u._8=56]="_8",u[u._9=57]="_9",u[u.a=97]="a",u[u.b=98]="b",u[u.c=99]="c",u[u.d=100]="d",u[u.e=101]="e",u[u.f=102]="f",u[u.g=103]="g",u[u.h=104]="h",u[u.i=105]="i",u[u.j=106]="j",u[u.k=107]="k",u[u.l=108]="l",u[u.m=109]="m",u[u.n=110]="n",u[u.o=111]="o",u[u.p=112]="p",u[u.q=113]="q",u[u.r=114]="r",u[u.s=115]="s",u[u.t=116]="t",u[u.u=117]="u",u[u.v=118]="v",u[u.w=119]="w",u[u.x=120]="x",u[u.y=121]="y",u[u.z=122]="z",u[u.A=65]="A",u[u.B=66]="B",u[u.C=67]="C",u[u.D=68]="D",u[u.E=69]="E",u[u.F=70]="F",u[u.G=71]="G",u[u.H=72]="H",u[u.I=73]="I",u[u.J=74]="J",u[u.K=75]="K",u[u.L=76]="L",u[u.M=77]="M",u[u.N=78]="N",u[u.O=79]="O",u[u.P=80]="P",u[u.Q=81]="Q",u[u.R=82]="R",u[u.S=83]="S",u[u.T=84]="T",u[u.U=85]="U",u[u.V=86]="V",u[u.W=87]="W",u[u.X=88]="X",u[u.Y=89]="Y",u[u.Z=90]="Z",u[u.asterisk=42]="asterisk",u[u.backslash=92]="backslash",u[u.closeBrace=125]="closeBrace",u[u.closeBracket=93]="closeBracket",u[u.colon=58]="colon",u[u.comma=44]="comma",u[u.dot=46]="dot",u[u.doubleQuote=34]="doubleQuote",u[u.minus=45]="minus",u[u.openBrace=123]="openBrace",u[u.openBracket=91]="openBracket",u[u.plus=43]="plus",u[u.slash=47]="slash",u[u.formFeed=12]="formFeed",u[u.tab=9]="tab";var d,g=new Array(20).fill(0).map(((e,t)=>" ".repeat(t))),f=200,m={" ":{"\n":new Array(f).fill(0).map(((e,t)=>"\n"+" ".repeat(t))),"\r":new Array(f).fill(0).map(((e,t)=>"\r"+" ".repeat(t))),"\r\n":new Array(f).fill(0).map(((e,t)=>"\r\n"+" ".repeat(t)))},"\t":{"\n":new Array(f).fill(0).map(((e,t)=>"\n"+"\t".repeat(t))),"\r":new Array(f).fill(0).map(((e,t)=>"\r"+"\t".repeat(t))),"\r\n":new Array(f).fill(0).map(((e,t)=>"\r\n"+"\t".repeat(t)))}},p=["\n","\r","\r\n"];function b(e,t,n){let r,i,s,a,l;if(t){for(a=t.offset,l=a+t.length,s=a;s>0&&!k(e,s-1);)s--;let o=l;for(;o<e.length&&!k(e,o);)o++;i=e.substring(s,o),r=function(e,t){let n=0,r=0;const i=t.tabSize||4;for(;n<e.length;){let t=e.charAt(n);if(t===g[1])r++;else{if("\t"!==t)break;r+=i}n++}return Math.floor(r/i)}(i,n)}else i=e,r=0,s=0,a=0,l=e.length;const c=function(e,t){for(let n=0;n<t.length;n++){const e=t.charAt(n);if("\r"===e)return n+1<t.length&&"\n"===t.charAt(n+1)?"\r\n":"\r";if("\n"===e)return"\n"}return e&&e.eol||"\n"}(n,e),h=p.includes(c);let u,d=0,f=0;u=n.insertSpaces?g[n.tabSize||4]??_(g[1],n.tabSize||4):"\t";const b="\t"===u?"\t":" ";let v=o(i,!1),C=!1;function y(){if(d>1)return _(c,d)+_(u,r+f);const e=u.length*(r+f);return!h||e>m[b][c].length?c+_(u,r+f):e<=0?c:m[b][c][e]}function L(){let e=v.scan();for(d=0;15===e||14===e;)14===e&&n.keepLines?d+=1:14===e&&(d=1),e=v.scan();return C=16===e||0!==v.getTokenError(),e}const w=[];function S(n,r,i){C||t&&!(r<l&&i>a)||e.substring(r,i)===n||w.push({offset:r,length:i-r,content:n})}let x=L();if(n.keepLines&&d>0&&S(_(c,d),0,0),17!==x){let e=v.getTokenOffset()+s;S(u.length*r<20&&n.insertSpaces?g[u.length*r]:_(u,r),s,e)}for(;17!==x;){let e=v.getTokenOffset()+v.getTokenLength()+s,t=L(),r="",i=!1;for(;0===d&&(12===t||13===t);){let n=v.getTokenOffset()+s;S(g[1],e,n),e=v.getTokenOffset()+v.getTokenLength()+s,i=12===t,r=i?y():"",t=L()}if(2===t)1!==x&&f--,n.keepLines&&d>0||!n.keepLines&&1!==x?r=y():n.keepLines&&(r=g[1]);else if(4===t)3!==x&&f--,n.keepLines&&d>0||!n.keepLines&&3!==x?r=y():n.keepLines&&(r=g[1]);else{switch(x){case 3:case 1:f++,r=n.keepLines&&d>0||!n.keepLines?y():g[1];break;case 5:r=n.keepLines&&d>0||!n.keepLines?y():g[1];break;case 12:r=y();break;case 13:d>0?r=y():i||(r=g[1]);break;case 6:n.keepLines&&d>0?r=y():i||(r=g[1]);break;case 10:n.keepLines&&d>0?r=y():6!==t||i||(r="");break;case 7:case 8:case 9:case 11:case 2:case 4:n.keepLines&&d>0?r=y():12!==t&&13!==t||i?5!==t&&17!==t&&(C=!0):r=g[1];break;case 16:C=!0}d>0&&(12===t||13===t)&&(r=y())}17===t&&(r=n.keepLines&&d>0?y():n.insertFinalNewline?c:"");S(r,e,v.getTokenOffset()+s),x=t}return w}function _(e,t){let n="";for(let r=0;r<t;r++)n+=e;return n}function k(e,t){return-1!=="\r\n".indexOf(e.charAt(t))}(d||(d={})).DEFAULT={allowTrailingComma:!1};var v,C,y,L,w=o;(C=v||(v={}))[C.None=0]="None",C[C.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",C[C.UnexpectedEndOfString=2]="UnexpectedEndOfString",C[C.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",C[C.InvalidUnicode=4]="InvalidUnicode",C[C.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",C[C.InvalidCharacter=6]="InvalidCharacter",(L=y||(y={}))[L.OpenBraceToken=1]="OpenBraceToken",L[L.CloseBraceToken=2]="CloseBraceToken",L[L.OpenBracketToken=3]="OpenBracketToken",L[L.CloseBracketToken=4]="CloseBracketToken",L[L.CommaToken=5]="CommaToken",L[L.ColonToken=6]="ColonToken",L[L.NullKeyword=7]="NullKeyword",L[L.TrueKeyword=8]="TrueKeyword",L[L.FalseKeyword=9]="FalseKeyword",L[L.StringLiteral=10]="StringLiteral",L[L.NumericLiteral=11]="NumericLiteral",L[L.LineCommentTrivia=12]="LineCommentTrivia",L[L.BlockCommentTrivia=13]="BlockCommentTrivia",L[L.LineBreakTrivia=14]="LineBreakTrivia",L[L.Trivia=15]="Trivia",L[L.Unknown=16]="Unknown",L[L.EOF=17]="EOF";var S,x,E,N,T,A,I,O,M,R,D,B,F,P,V,z,j,q,W,U,$,H,K,G,Q,J,X,Y,Z,ee,te,ne,re,ie,se,oe,ae,le,ce,he,ue,de,ge,fe,me,pe,be,_e,ke,ve,Ce,ye,Le,we,Se,xe,Ee,Ne,Te,Ae,Ie,Oe,Me,Re,De,Be,Fe,Pe,Ve,ze,je,qe,We,Ue,$e,He,Ke,Ge,Qe,Je,Xe,Ye,Ze,et,tt,nt,rt,it,st,ot,at,lt,ct,ht,ut,dt,gt,ft,mt,pt,bt,_t,kt,vt,Ct,yt,Lt,wt,St,xt,Et,Nt,Tt,At,It,Ot,Mt,Rt,Dt,Bt,Ft,Pt,Vt,zt,jt,qt,Wt,Ut,$t,Ht,Kt,Gt,Qt,Jt,Xt,Yt=function(e,t=[],n=d.DEFAULT){let r=null,i=[];const s=[];function a(e){Array.isArray(i)?i.push(e):null!==r&&(i[r]=e)}return function(e,t,n=d.DEFAULT){const r=o(e,!1),i=[];function s(e){return e?()=>e(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function a(e){return e?()=>e(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),(()=>i.slice())):()=>!0}function l(e){return e?t=>e(t,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function c(e){return e?t=>e(t,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),(()=>i.slice())):()=>!0}const h=a(t.onObjectBegin),u=c(t.onObjectProperty),g=s(t.onObjectEnd),f=a(t.onArrayBegin),m=s(t.onArrayEnd),p=c(t.onLiteralValue),b=l(t.onSeparator),_=s(t.onComment),k=l(t.onError),v=n&&n.disallowComments,C=n&&n.allowTrailingComma;function y(){for(;;){const e=r.scan();switch(r.getTokenError()){case 4:L(14);break;case 5:L(15);break;case 3:L(13);break;case 1:v||L(11);break;case 2:L(12);break;case 6:L(16)}switch(e){case 12:case 13:v?L(10):_();break;case 16:L(1);break;case 15:case 14:break;default:return e}}}function L(e,t=[],n=[]){if(k(e),t.length+n.length>0){let e=r.getToken();for(;17!==e;){if(-1!==t.indexOf(e)){y();break}if(-1!==n.indexOf(e))break;e=y()}}}function w(e){const t=r.getTokenValue();return e?p(t):(u(t),i.push(t)),y(),!0}function S(){switch(r.getToken()){case 11:const e=r.getTokenValue();let t=Number(e);isNaN(t)&&(L(2),t=0),p(t);break;case 7:p(null);break;case 8:p(!0);break;case 9:p(!1);break;default:return!1}return y(),!0}function x(){return 10!==r.getToken()?(L(3,[],[2,5]),!1):(w(!1),6===r.getToken()?(b(":"),y(),T()||L(4,[],[2,5])):L(5,[],[2,5]),i.pop(),!0)}function E(){h(),y();let e=!1;for(;2!==r.getToken()&&17!==r.getToken();){if(5===r.getToken()){if(e||L(4,[],[]),b(","),y(),2===r.getToken()&&C)break}else e&&L(6,[],[]);x()||L(4,[],[2,5]),e=!0}return g(),2!==r.getToken()?L(7,[2],[]):y(),!0}function N(){f(),y();let e=!0,t=!1;for(;4!==r.getToken()&&17!==r.getToken();){if(5===r.getToken()){if(t||L(4,[],[]),b(","),y(),4===r.getToken()&&C)break}else t&&L(6,[],[]);e?(i.push(0),e=!1):i[i.length-1]++,T()||L(4,[],[4,5]),t=!0}return m(),e||i.pop(),4!==r.getToken()?L(8,[4],[]):y(),!0}function T(){switch(r.getToken()){case 3:return N();case 1:return E();case 10:return w(!0);default:return S()}}if(y(),17===r.getToken())return!!n.allowEmptyContent||(L(4,[],[]),!1);if(!T())return L(4,[],[]),!1;17!==r.getToken()&&L(9,[],[])}(e,{onObjectBegin:()=>{const e={};a(e),s.push(i),i=e,r=null},onObjectProperty:e=>{r=e},onObjectEnd:()=>{i=s.pop()},onArrayBegin:()=>{const e=[];a(e),s.push(i),i=e,r=null},onArrayEnd:()=>{i=s.pop()},onLiteralValue:a,onError:(e,n,r)=>{t.push({error:e,offset:n,length:r})}},n),i[0]},Zt=function e(t,n,r=!1){if(function(e,t,n=!1){return t>=e.offset&&t<e.offset+e.length||n&&t===e.offset+e.length}(t,n,r)){const i=t.children;if(Array.isArray(i))for(let t=0;t<i.length&&i[t].offset<=n;t++){const s=e(i[t],n,r);if(s)return s}return t}},en=function e(t){if(!t.parent||!t.parent.children)return[];const n=e(t.parent);if("property"===t.parent.type){const e=t.parent.children[0].value;n.push(e)}else if("array"===t.parent.type){const e=t.parent.children.indexOf(t);-1!==e&&n.push(e)}return n},tn=function e(t){switch(t.type){case"array":return t.children.map(e);case"object":const n=Object.create(null);for(let r of t.children){const t=r.children[1];t&&(n[r.children[0].value]=e(t))}return n;case"null":case"string":case"number":case"boolean":return t.value;default:return}};function nn(e,t){if(e===t)return!0;if(null===e||void 0===e||null===t||void 0===t)return!1;if(typeof e!==typeof t)return!1;if("object"!==typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;let n,r;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!nn(e[n],t[n]))return!1}else{const i=[];for(r in e)i.push(r);i.sort();const s=[];for(r in t)s.push(r);if(s.sort(),!nn(i,s))return!1;for(n=0;n<i.length;n++)if(!nn(e[i[n]],t[i[n]]))return!1}return!0}function rn(e){return"number"===typeof e}function sn(e){return"undefined"!==typeof e}function on(e){return"boolean"===typeof e}function an(e){return"string"===typeof e}function ln(e){return"object"===typeof e&&null!==e&&!Array.isArray(e)}function cn(e,t){const n=e.length-t.length;return n>0?e.lastIndexOf(t)===n:0===n&&e===t}function hn(e){let t="";(function(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})(e,"(?i)")&&(e=e.substring(4),t="i");try{return new RegExp(e,t+"u")}catch(n){try{return new RegExp(e,t)}catch(r){return}}}function un(e){let t=0;for(let n=0;n<e.length;n++){t++;const r=e.charCodeAt(n);55296<=r&&r<=56319&&n++}return t}(x=S||(S={}))[x.InvalidSymbol=1]="InvalidSymbol",x[x.InvalidNumberFormat=2]="InvalidNumberFormat",x[x.PropertyNameExpected=3]="PropertyNameExpected",x[x.ValueExpected=4]="ValueExpected",x[x.ColonExpected=5]="ColonExpected",x[x.CommaExpected=6]="CommaExpected",x[x.CloseBraceExpected=7]="CloseBraceExpected",x[x.CloseBracketExpected=8]="CloseBracketExpected",x[x.EndOfFileExpected=9]="EndOfFileExpected",x[x.InvalidCommentToken=10]="InvalidCommentToken",x[x.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",x[x.UnexpectedEndOfString=12]="UnexpectedEndOfString",x[x.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",x[x.InvalidUnicode=14]="InvalidUnicode",x[x.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",x[x.InvalidCharacter=16]="InvalidCharacter",(E||(E={})).is=function(e){return"string"===typeof e},(N||(N={})).is=function(e){return"string"===typeof e},(A=T||(T={})).MIN_VALUE=-2147483648,A.MAX_VALUE=2147483647,A.is=function(e){return"number"===typeof e&&A.MIN_VALUE<=e&&e<=A.MAX_VALUE},(O=I||(I={})).MIN_VALUE=0,O.MAX_VALUE=2147483647,O.is=function(e){return"number"===typeof e&&O.MIN_VALUE<=e&&e<=O.MAX_VALUE},(R=M||(M={})).create=function(e,t){return e===Number.MAX_VALUE&&(e=I.MAX_VALUE),t===Number.MAX_VALUE&&(t=I.MAX_VALUE),{line:e,character:t}},R.is=function(e){let t=e;return dn.objectLiteral(t)&&dn.uinteger(t.line)&&dn.uinteger(t.character)},(B=D||(D={})).create=function(e,t,n,r){if(dn.uinteger(e)&&dn.uinteger(t)&&dn.uinteger(n)&&dn.uinteger(r))return{start:M.create(e,t),end:M.create(n,r)};if(M.is(e)&&M.is(t))return{start:e,end:t};throw new Error(`Range#create called with invalid arguments[${e}, ${t}, ${n}, ${r}]`)},B.is=function(e){let t=e;return dn.objectLiteral(t)&&M.is(t.start)&&M.is(t.end)},(P=F||(F={})).create=function(e,t){return{uri:e,range:t}},P.is=function(e){let t=e;return dn.objectLiteral(t)&&D.is(t.range)&&(dn.string(t.uri)||dn.undefined(t.uri))},(z=V||(V={})).create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},z.is=function(e){let t=e;return dn.objectLiteral(t)&&D.is(t.targetRange)&&dn.string(t.targetUri)&&D.is(t.targetSelectionRange)&&(D.is(t.originSelectionRange)||dn.undefined(t.originSelectionRange))},(q=j||(j={})).create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},q.is=function(e){const t=e;return dn.objectLiteral(t)&&dn.numberRange(t.red,0,1)&&dn.numberRange(t.green,0,1)&&dn.numberRange(t.blue,0,1)&&dn.numberRange(t.alpha,0,1)},(U=W||(W={})).create=function(e,t){return{range:e,color:t}},U.is=function(e){const t=e;return dn.objectLiteral(t)&&D.is(t.range)&&j.is(t.color)},(H=$||($={})).create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},H.is=function(e){const t=e;return dn.objectLiteral(t)&&dn.string(t.label)&&(dn.undefined(t.textEdit)||le.is(t))&&(dn.undefined(t.additionalTextEdits)||dn.typedArray(t.additionalTextEdits,le.is))},(G=K||(K={})).Comment="comment",G.Imports="imports",G.Region="region",(J=Q||(Q={})).create=function(e,t,n,r,i,s){const o={startLine:e,endLine:t};return dn.defined(n)&&(o.startCharacter=n),dn.defined(r)&&(o.endCharacter=r),dn.defined(i)&&(o.kind=i),dn.defined(s)&&(o.collapsedText=s),o},J.is=function(e){const t=e;return dn.objectLiteral(t)&&dn.uinteger(t.startLine)&&dn.uinteger(t.startLine)&&(dn.undefined(t.startCharacter)||dn.uinteger(t.startCharacter))&&(dn.undefined(t.endCharacter)||dn.uinteger(t.endCharacter))&&(dn.undefined(t.kind)||dn.string(t.kind))},(Y=X||(X={})).create=function(e,t){return{location:e,message:t}},Y.is=function(e){let t=e;return dn.defined(t)&&F.is(t.location)&&dn.string(t.message)},(ee=Z||(Z={})).Error=1,ee.Warning=2,ee.Information=3,ee.Hint=4,(ne=te||(te={})).Unnecessary=1,ne.Deprecated=2,(re||(re={})).is=function(e){const t=e;return dn.objectLiteral(t)&&dn.string(t.href)},(se=ie||(ie={})).create=function(e,t,n,r,i,s){let o={range:e,message:t};return dn.defined(n)&&(o.severity=n),dn.defined(r)&&(o.code=r),dn.defined(i)&&(o.source=i),dn.defined(s)&&(o.relatedInformation=s),o},se.is=function(e){var t;let n=e;return dn.defined(n)&&D.is(n.range)&&dn.string(n.message)&&(dn.number(n.severity)||dn.undefined(n.severity))&&(dn.integer(n.code)||dn.string(n.code)||dn.undefined(n.code))&&(dn.undefined(n.codeDescription)||dn.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(dn.string(n.source)||dn.undefined(n.source))&&(dn.undefined(n.relatedInformation)||dn.typedArray(n.relatedInformation,X.is))},(ae=oe||(oe={})).create=function(e,t,...n){let r={title:e,command:t};return dn.defined(n)&&n.length>0&&(r.arguments=n),r},ae.is=function(e){let t=e;return dn.defined(t)&&dn.string(t.title)&&dn.string(t.command)},(ce=le||(le={})).replace=function(e,t){return{range:e,newText:t}},ce.insert=function(e,t){return{range:{start:e,end:e},newText:t}},ce.del=function(e){return{range:e,newText:""}},ce.is=function(e){const t=e;return dn.objectLiteral(t)&&dn.string(t.newText)&&D.is(t.range)},(ue=he||(he={})).create=function(e,t,n){const r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},ue.is=function(e){const t=e;return dn.objectLiteral(t)&&dn.string(t.label)&&(dn.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(dn.string(t.description)||void 0===t.description)},(de||(de={})).is=function(e){const t=e;return dn.string(t)},(fe=ge||(ge={})).replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},fe.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},fe.del=function(e,t){return{range:e,newText:"",annotationId:t}},fe.is=function(e){const t=e;return le.is(t)&&(he.is(t.annotationId)||de.is(t.annotationId))},(pe=me||(me={})).create=function(e,t){return{textDocument:e,edits:t}},pe.is=function(e){let t=e;return dn.defined(t)&&Ne.is(t.textDocument)&&Array.isArray(t.edits)},(_e=be||(be={})).create=function(e,t,n){let r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},_e.is=function(e){let t=e;return t&&"create"===t.kind&&dn.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||dn.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||dn.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||de.is(t.annotationId))},(ve=ke||(ke={})).create=function(e,t,n,r){let i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==r&&(i.annotationId=r),i},ve.is=function(e){let t=e;return t&&"rename"===t.kind&&dn.string(t.oldUri)&&dn.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||dn.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||dn.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||de.is(t.annotationId))},(ye=Ce||(Ce={})).create=function(e,t,n){let r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},ye.is=function(e){let t=e;return t&&"delete"===t.kind&&dn.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||dn.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||dn.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||de.is(t.annotationId))},(Le||(Le={})).is=function(e){let t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((e=>dn.string(e.kind)?be.is(e)||ke.is(e)||Ce.is(e):me.is(e))))},(Se=we||(we={})).create=function(e){return{uri:e}},Se.is=function(e){let t=e;return dn.defined(t)&&dn.string(t.uri)},(Ee=xe||(xe={})).create=function(e,t){return{uri:e,version:t}},Ee.is=function(e){let t=e;return dn.defined(t)&&dn.string(t.uri)&&dn.integer(t.version)},(Te=Ne||(Ne={})).create=function(e,t){return{uri:e,version:t}},Te.is=function(e){let t=e;return dn.defined(t)&&dn.string(t.uri)&&(null===t.version||dn.integer(t.version))},(Ie=Ae||(Ae={})).create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},Ie.is=function(e){let t=e;return dn.defined(t)&&dn.string(t.uri)&&dn.string(t.languageId)&&dn.integer(t.version)&&dn.string(t.text)},(Me=Oe||(Oe={})).PlainText="plaintext",Me.Markdown="markdown",Me.is=function(e){const t=e;return t===Me.PlainText||t===Me.Markdown},(Re||(Re={})).is=function(e){const t=e;return dn.objectLiteral(e)&&Oe.is(t.kind)&&dn.string(t.value)},(Be=De||(De={})).Text=1,Be.Method=2,Be.Function=3,Be.Constructor=4,Be.Field=5,Be.Variable=6,Be.Class=7,Be.Interface=8,Be.Module=9,Be.Property=10,Be.Unit=11,Be.Value=12,Be.Enum=13,Be.Keyword=14,Be.Snippet=15,Be.Color=16,Be.File=17,Be.Reference=18,Be.Folder=19,Be.EnumMember=20,Be.Constant=21,Be.Struct=22,Be.Event=23,Be.Operator=24,Be.TypeParameter=25,(Pe=Fe||(Fe={})).PlainText=1,Pe.Snippet=2,(Ve||(Ve={})).Deprecated=1,(je=ze||(ze={})).create=function(e,t,n){return{newText:e,insert:t,replace:n}},je.is=function(e){const t=e;return t&&dn.string(t.newText)&&D.is(t.insert)&&D.is(t.replace)},(We=qe||(qe={})).asIs=1,We.adjustIndentation=2,(Ue||(Ue={})).is=function(e){const t=e;return t&&(dn.string(t.detail)||void 0===t.detail)&&(dn.string(t.description)||void 0===t.description)},($e||($e={})).create=function(e){return{label:e}},(He||(He={})).create=function(e,t){return{items:e||[],isIncomplete:!!t}},(Ge=Ke||(Ke={})).fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},Ge.is=function(e){const t=e;return dn.string(t)||dn.objectLiteral(t)&&dn.string(t.language)&&dn.string(t.value)},(Qe||(Qe={})).is=function(e){let t=e;return!!t&&dn.objectLiteral(t)&&(Re.is(t.contents)||Ke.is(t.contents)||dn.typedArray(t.contents,Ke.is))&&(void 0===e.range||D.is(e.range))},(Je||(Je={})).create=function(e,t){return t?{label:e,documentation:t}:{label:e}},(Xe||(Xe={})).create=function(e,t,...n){let r={label:e};return dn.defined(t)&&(r.documentation=t),dn.defined(n)?r.parameters=n:r.parameters=[],r},(Ze=Ye||(Ye={})).Text=1,Ze.Read=2,Ze.Write=3,(et||(et={})).create=function(e,t){let n={range:e};return dn.number(t)&&(n.kind=t),n},(nt=tt||(tt={})).File=1,nt.Module=2,nt.Namespace=3,nt.Package=4,nt.Class=5,nt.Method=6,nt.Property=7,nt.Field=8,nt.Constructor=9,nt.Enum=10,nt.Interface=11,nt.Function=12,nt.Variable=13,nt.Constant=14,nt.String=15,nt.Number=16,nt.Boolean=17,nt.Array=18,nt.Object=19,nt.Key=20,nt.Null=21,nt.EnumMember=22,nt.Struct=23,nt.Event=24,nt.Operator=25,nt.TypeParameter=26,(rt||(rt={})).Deprecated=1,(it||(it={})).create=function(e,t,n,r,i){let s={name:e,kind:t,location:{uri:r,range:n}};return i&&(s.containerName=i),s},(st||(st={})).create=function(e,t,n,r){return void 0!==r?{name:e,kind:t,location:{uri:n,range:r}}:{name:e,kind:t,location:{uri:n}}},(at=ot||(ot={})).create=function(e,t,n,r,i,s){let o={name:e,detail:t,kind:n,range:r,selectionRange:i};return void 0!==s&&(o.children=s),o},at.is=function(e){let t=e;return t&&dn.string(t.name)&&dn.number(t.kind)&&D.is(t.range)&&D.is(t.selectionRange)&&(void 0===t.detail||dn.string(t.detail))&&(void 0===t.deprecated||dn.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))},(ct=lt||(lt={})).Empty="",ct.QuickFix="quickfix",ct.Refactor="refactor",ct.RefactorExtract="refactor.extract",ct.RefactorInline="refactor.inline",ct.RefactorRewrite="refactor.rewrite",ct.Source="source",ct.SourceOrganizeImports="source.organizeImports",ct.SourceFixAll="source.fixAll",(ut=ht||(ht={})).Invoked=1,ut.Automatic=2,(gt=dt||(dt={})).create=function(e,t,n){let r={diagnostics:e};return void 0!==t&&null!==t&&(r.only=t),void 0!==n&&null!==n&&(r.triggerKind=n),r},gt.is=function(e){let t=e;return dn.defined(t)&&dn.typedArray(t.diagnostics,ie.is)&&(void 0===t.only||dn.typedArray(t.only,dn.string))&&(void 0===t.triggerKind||t.triggerKind===ht.Invoked||t.triggerKind===ht.Automatic)},(mt=ft||(ft={})).create=function(e,t,n){let r={title:e},i=!0;return"string"===typeof t?(i=!1,r.kind=t):oe.is(t)?r.command=t:r.edit=t,i&&void 0!==n&&(r.kind=n),r},mt.is=function(e){let t=e;return t&&dn.string(t.title)&&(void 0===t.diagnostics||dn.typedArray(t.diagnostics,ie.is))&&(void 0===t.kind||dn.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||oe.is(t.command))&&(void 0===t.isPreferred||dn.boolean(t.isPreferred))&&(void 0===t.edit||Le.is(t.edit))},(bt=pt||(pt={})).create=function(e,t){let n={range:e};return dn.defined(t)&&(n.data=t),n},bt.is=function(e){let t=e;return dn.defined(t)&&D.is(t.range)&&(dn.undefined(t.command)||oe.is(t.command))},(kt=_t||(_t={})).create=function(e,t){return{tabSize:e,insertSpaces:t}},kt.is=function(e){let t=e;return dn.defined(t)&&dn.uinteger(t.tabSize)&&dn.boolean(t.insertSpaces)},(Ct=vt||(vt={})).create=function(e,t,n){return{range:e,target:t,data:n}},Ct.is=function(e){let t=e;return dn.defined(t)&&D.is(t.range)&&(dn.undefined(t.target)||dn.string(t.target))},(Lt=yt||(yt={})).create=function(e,t){return{range:e,parent:t}},Lt.is=function(e){let t=e;return dn.objectLiteral(t)&&D.is(t.range)&&(void 0===t.parent||Lt.is(t.parent))},(St=wt||(wt={})).namespace="namespace",St.type="type",St.class="class",St.enum="enum",St.interface="interface",St.struct="struct",St.typeParameter="typeParameter",St.parameter="parameter",St.variable="variable",St.property="property",St.enumMember="enumMember",St.event="event",St.function="function",St.method="method",St.macro="macro",St.keyword="keyword",St.modifier="modifier",St.comment="comment",St.string="string",St.number="number",St.regexp="regexp",St.operator="operator",St.decorator="decorator",(Et=xt||(xt={})).declaration="declaration",Et.definition="definition",Et.readonly="readonly",Et.static="static",Et.deprecated="deprecated",Et.abstract="abstract",Et.async="async",Et.modification="modification",Et.documentation="documentation",Et.defaultLibrary="defaultLibrary",(Nt||(Nt={})).is=function(e){const t=e;return dn.objectLiteral(t)&&(void 0===t.resultId||"string"===typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"===typeof t.data[0])},(At=Tt||(Tt={})).create=function(e,t){return{range:e,text:t}},At.is=function(e){const t=e;return void 0!==t&&null!==t&&D.is(t.range)&&dn.string(t.text)},(Ot=It||(It={})).create=function(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}},Ot.is=function(e){const t=e;return void 0!==t&&null!==t&&D.is(t.range)&&dn.boolean(t.caseSensitiveLookup)&&(dn.string(t.variableName)||void 0===t.variableName)},(Rt=Mt||(Mt={})).create=function(e,t){return{range:e,expression:t}},Rt.is=function(e){const t=e;return void 0!==t&&null!==t&&D.is(t.range)&&(dn.string(t.expression)||void 0===t.expression)},(Bt=Dt||(Dt={})).create=function(e,t){return{frameId:e,stoppedLocation:t}},Bt.is=function(e){const t=e;return dn.defined(t)&&D.is(e.stoppedLocation)},(Pt=Ft||(Ft={})).Type=1,Pt.Parameter=2,Pt.is=function(e){return 1===e||2===e},(zt=Vt||(Vt={})).create=function(e){return{value:e}},zt.is=function(e){const t=e;return dn.objectLiteral(t)&&(void 0===t.tooltip||dn.string(t.tooltip)||Re.is(t.tooltip))&&(void 0===t.location||F.is(t.location))&&(void 0===t.command||oe.is(t.command))},(qt=jt||(jt={})).create=function(e,t,n){const r={position:e,label:t};return void 0!==n&&(r.kind=n),r},qt.is=function(e){const t=e;return dn.objectLiteral(t)&&M.is(t.position)&&(dn.string(t.label)||dn.typedArray(t.label,Vt.is))&&(void 0===t.kind||Ft.is(t.kind))&&void 0===t.textEdits||dn.typedArray(t.textEdits,le.is)&&(void 0===t.tooltip||dn.string(t.tooltip)||Re.is(t.tooltip))&&(void 0===t.paddingLeft||dn.boolean(t.paddingLeft))&&(void 0===t.paddingRight||dn.boolean(t.paddingRight))},(Wt||(Wt={})).createSnippet=function(e){return{kind:"snippet",value:e}},(Ut||(Ut={})).create=function(e,t,n,r){return{insertText:e,filterText:t,range:n,command:r}},($t||($t={})).create=function(e){return{items:e}},(Kt=Ht||(Ht={})).Invoked=0,Kt.Automatic=1,(Gt||(Gt={})).create=function(e,t){return{range:e,text:t}},(Qt||(Qt={})).create=function(e,t){return{triggerKind:e,selectedCompletionInfo:t}},(Jt||(Jt={})).is=function(e){const t=e;return dn.objectLiteral(t)&&N.is(t.uri)&&dn.string(t.name)},function(e){function t(e,n){if(e.length<=1)return e;const r=e.length/2|0,i=e.slice(0,r),s=e.slice(r);t(i,n),t(s,n);let o=0,a=0,l=0;for(;o<i.length&&a<s.length;){let t=n(i[o],s[a]);e[l++]=t<=0?i[o++]:s[a++]}for(;o<i.length;)e[l++]=i[o++];for(;a<s.length;)e[l++]=s[a++];return e}e.create=function(e,t,n,r){return new gn(e,t,n,r)},e.is=function(e){let t=e;return!!(dn.defined(t)&&dn.string(t.uri)&&(dn.undefined(t.languageId)||dn.string(t.languageId))&&dn.uinteger(t.lineCount)&&dn.func(t.getText)&&dn.func(t.positionAt)&&dn.func(t.offsetAt))},e.applyEdits=function(e,n){let r=e.getText(),i=t(n,((e,t)=>{let n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),s=r.length;for(let t=i.length-1;t>=0;t--){let n=i[t],o=e.offsetAt(n.range.start),a=e.offsetAt(n.range.end);if(!(a<=s))throw new Error("Overlapping edit");r=r.substring(0,o)+n.newText+r.substring(a,r.length),s=o}return r}}(Xt||(Xt={}));var dn,gn=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(void 0===this._lineOffsets){let e=[],t=this._content,n=!0;for(let r=0;r<t.length;r++){n&&(e.push(r),n=!1);let i=t.charAt(r);n="\r"===i||"\n"===i,"\r"===i&&r+1<t.length&&"\n"===t.charAt(r+1)&&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(0===r)return M.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 M.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}};!function(e){const t=Object.prototype.toString;e.defined=function(e){return"undefined"!==typeof e},e.undefined=function(e){return"undefined"===typeof e},e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===t.call(e)},e.number=function(e){return"[object Number]"===t.call(e)},e.numberRange=function(e,n,r){return"[object Number]"===t.call(e)&&n<=e&&e<=r},e.integer=function(e){return"[object Number]"===t.call(e)&&-2147483648<=e&&e<=2147483647},e.uinteger=function(e){return"[object Number]"===t.call(e)&&0<=e&&e<=2147483647},e.func=function(e){return"[object Function]"===t.call(e)},e.objectLiteral=function(e){return null!==e&&"object"===typeof e},e.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)}}(dn||(dn={}));var fn,mn,pn,bn,_n,kn,vn,Cn=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){const t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(t,n){for(let r of t)if(e.isIncremental(r)){const e=wn(r.range),t=this.offsetAt(e.start),n=this.offsetAt(e.end);this._content=this._content.substring(0,t)+r.text+this._content.substring(n,this._content.length);const i=Math.max(e.start.line,0),s=Math.max(e.end.line,0);let o=this._lineOffsets;const a=Ln(r.text,!1,t);if(s-i===a.length)for(let r=0,c=a.length;r<c;r++)o[r+i+1]=a[r];else a.length<1e4?o.splice(i+1,s-i,...a):this._lineOffsets=o=o.slice(0,i+1).concat(a,o.slice(s+1));const l=r.text.length-(n-t);if(0!==l)for(let r=i+1+a.length,c=o.length;r<c;r++)o[r]=o[r]+l}else{if(!e.isFull(r))throw new Error("Unknown change event received");this._content=r.text,this._lineOffsets=void 0}this._version=n}getLineOffsets(){return void 0===this._lineOffsets&&(this._lineOffsets=Ln(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(0===r)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 void 0!==t&&null!==t&&"string"===typeof t.text&&void 0!==t.range&&(void 0===t.rangeLength||"number"===typeof t.rangeLength)}static isFull(e){let t=e;return void 0!==t&&null!==t&&"string"===typeof t.text&&void 0===t.range&&void 0===t.rangeLength}};function yn(e,t){if(e.length<=1)return e;const n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);yn(r,t),yn(i,t);let s=0,o=0,a=0;for(;s<r.length&&o<i.length;){let n=t(r[s],i[o]);e[a++]=n<=0?r[s++]:i[o++]}for(;s<r.length;)e[a++]=r[s++];for(;o<i.length;)e[a++]=i[o++];return e}function Ln(e,t,n=0){const r=t?[n]:[];for(let i=0;i<e.length;i++){let t=e.charCodeAt(i);13!==t&&10!==t||(13===t&&i+1<e.length&&10===e.charCodeAt(i+1)&&i++,r.push(n+i+1))}return r}function wn(e){const 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 Sn(e){const t=wn(e.range);return t!==e.range?{newText:e.newText,range:t}:e}function xn(...e){const t=e[0];let n,r,i;if("string"===typeof t)n=t,r=t,e.splice(0,1),i=e&&"object"===typeof e[0]?e[0]:e;else{if(t instanceof Array){const n=e.slice(1);if(t.length!==n.length+1)throw new 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 xn(r,...n)}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 Nn(r,i)}(mn=fn||(fn={})).create=function(e,t,n,r){return new Cn(e,t,n,r)},mn.update=function(e,t,n){if(e instanceof Cn)return e.update(t,n),e;throw new Error("TextDocument.update: document must be created by TextDocument.create")},mn.applyEdits=function(e,t){let n=e.getText(),r=yn(t.map(Sn),((e,t)=>{let n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),i=0;const s=[];for(const o of r){let t=e.offsetAt(o.range.start);if(t<i)throw new Error("Overlapping edit");t>i&&s.push(n.substring(i,t)),o.newText.length&&s.push(o.newText),i=e.offsetAt(o.range.end)}return s.push(n.substr(i)),s.join("")},(bn=pn||(pn={}))[bn.Undefined=0]="Undefined",bn[bn.EnumValueMismatch=1]="EnumValueMismatch",bn[bn.Deprecated=2]="Deprecated",bn[bn.UnexpectedEndOfComment=257]="UnexpectedEndOfComment",bn[bn.UnexpectedEndOfString=258]="UnexpectedEndOfString",bn[bn.UnexpectedEndOfNumber=259]="UnexpectedEndOfNumber",bn[bn.InvalidUnicode=260]="InvalidUnicode",bn[bn.InvalidEscapeCharacter=261]="InvalidEscapeCharacter",bn[bn.InvalidCharacter=262]="InvalidCharacter",bn[bn.PropertyExpected=513]="PropertyExpected",bn[bn.CommaExpected=514]="CommaExpected",bn[bn.ColonExpected=515]="ColonExpected",bn[bn.ValueExpected=516]="ValueExpected",bn[bn.CommaOrCloseBacketExpected=517]="CommaOrCloseBacketExpected",bn[bn.CommaOrCloseBraceExpected=518]="CommaOrCloseBraceExpected",bn[bn.TrailingComma=519]="TrailingComma",bn[bn.DuplicateKey=520]="DuplicateKey",bn[bn.CommentNotPermitted=521]="CommentNotPermitted",bn[bn.PropertyKeysMustBeDoublequoted=528]="PropertyKeysMustBeDoublequoted",bn[bn.SchemaResolveError=768]="SchemaResolveError",bn[bn.SchemaUnsupportedFeature=769]="SchemaUnsupportedFeature",(kn=_n||(_n={}))[kn.v3=3]="v3",kn[kn.v4=4]="v4",kn[kn.v6=6]="v6",kn[kn.v7=7]="v7",kn[kn.v2019_09=19]="v2019_09",kn[kn.v2020_12=20]="v2020_12",(vn||(vn={})).LATEST={textDocument:{completion:{completionItem:{documentationFormat:[Oe.Markdown,Oe.PlainText],commitCharactersSupport:!0,labelDetailsSupport:!0}}}};var En=/{([^}]+)}/g;function Nn(e,t){return 0===Object.keys(t).length?e:e.replace(En,((e,n)=>t[n]??e))}var Tn,An,In={"color-hex":{errorMessage:xn("Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA."),pattern:/^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/},"date-time":{errorMessage:xn("String is not a RFC3339 date-time."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},date:{errorMessage:xn("String is not a RFC3339 date."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i},time:{errorMessage:xn("String is not a RFC3339 time."),pattern:/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},email:{errorMessage:xn("String is not an e-mail address."),pattern:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}))$/},hostname:{errorMessage:xn("String is not a hostname."),pattern:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i},ipv4:{errorMessage:xn("String is not an IPv4 address."),pattern:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/},ipv6:{errorMessage:xn("String is not an IPv6 address."),pattern:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i}},On=class{constructor(e,t,n=0){this.offset=t,this.length=n,this.parent=e}get children(){return[]}toString(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")}},Mn=class extends On{constructor(e,t){super(e,t),this.type="null",this.value=null}},Rn=class extends On{constructor(e,t,n){super(e,n),this.type="boolean",this.value=t}},Dn=class extends On{constructor(e,t){super(e,t),this.type="array",this.items=[]}get children(){return this.items}},Bn=class extends On{constructor(e,t){super(e,t),this.type="number",this.isInteger=!0,this.value=Number.NaN}},Fn=class extends On{constructor(e,t,n){super(e,t,n),this.type="string",this.value=""}},Pn=class extends On{constructor(e,t,n){super(e,t),this.type="property",this.colonOffset=-1,this.keyNode=n}get children(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]}},Vn=class extends On{constructor(e,t){super(e,t),this.type="object",this.properties=[]}get children(){return this.properties}};function zn(e){return on(e)?e?{}:{not:{}}:e}(An=Tn||(Tn={}))[An.Key=0]="Key",An[An.Enum=1]="Enum";var jn={"http://json-schema.org/draft-03/schema#":_n.v3,"http://json-schema.org/draft-04/schema#":_n.v4,"http://json-schema.org/draft-06/schema#":_n.v6,"http://json-schema.org/draft-07/schema#":_n.v7,"https://json-schema.org/draft/2019-09/schema":_n.v2019_09,"https://json-schema.org/draft/2020-12/schema":_n.v2020_12},qn=class{constructor(e){this.schemaDraft=e}},Wn=class e{constructor(e=-1,t){this.focusOffset=e,this.exclude=t,this.schemas=[]}add(e){this.schemas.push(e)}merge(e){Array.prototype.push.apply(this.schemas,e.schemas)}include(e){return(-1===this.focusOffset||Gn(e,this.focusOffset))&&e!==this.exclude}newSub(){return new e(-1,this.exclude)}},Un=class{constructor(){}get schemas(){return[]}add(e){}merge(e){}include(e){return!0}newSub(){return this}};Un.instance=new Un;var $n=class{constructor(){this.problems=[],this.propertiesMatches=0,this.processedProperties=new Set,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=void 0}hasProblems(){return!!this.problems.length}merge(e){this.problems=this.problems.concat(e.problems),this.propertiesMatches+=e.propertiesMatches,this.propertiesValueMatches+=e.propertiesValueMatches,this.mergeProcessedProperties(e)}mergeEnumValues(e){if(!this.enumValueMatch&&!e.enumValueMatch&&this.enumValues&&e.enumValues){this.enumValues=this.enumValues.concat(e.enumValues);for(const e of this.problems)e.code===pn.EnumValueMismatch&&(e.message=xn("Value is not accepted. Valid values: {0}.",this.enumValues.map((e=>JSON.stringify(e))).join(", ")))}}mergePropertyMatch(e){this.problems=this.problems.concat(e.problems),this.propertiesMatches++,(e.enumValueMatch||!e.hasProblems()&&e.propertiesMatches)&&this.propertiesValueMatches++,e.enumValueMatch&&e.enumValues&&1===e.enumValues.length&&this.primaryValueMatches++}mergeProcessedProperties(e){e.processedProperties.forEach((e=>this.processedProperties.add(e)))}compare(e){const t=this.hasProblems();return t!==e.hasProblems()?t?-1:1:this.enumValueMatch!==e.enumValueMatch?e.enumValueMatch?-1:1:this.primaryValueMatches!==e.primaryValueMatches?this.primaryValueMatches-e.primaryValueMatches:this.propertiesValueMatches!==e.propertiesValueMatches?this.propertiesValueMatches-e.propertiesValueMatches:this.propertiesMatches-e.propertiesMatches}};function Hn(e){return tn(e)}function Kn(e){return en(e)}function Gn(e,t,n=!1){return t>=e.offset&&t<e.offset+e.length||n&&t===e.offset+e.length}var Qn=class{constructor(e,t=[],n=[]){this.root=e,this.syntaxErrors=t,this.comments=n}getNodeFromOffset(e,t=!1){if(this.root)return Zt(this.root,e,t)}visit(e){if(this.root){const t=n=>{let r=e(n);const i=n.children;if(Array.isArray(i))for(let e=0;e<i.length&&r;e++)r=t(i[e]);return r};t(this.root)}}validate(e,t,n=Z.Warning,r){if(this.root&&t){const i=new $n;return Xn(this.root,t,i,Un.instance,new qn(r??Jn(t))),i.problems.map((t=>{const r=D.create(e.positionAt(t.location.offset),e.positionAt(t.location.offset+t.location.length));return ie.create(r,t.message,t.severity??n,t.code)}))}}getMatchingSchemas(e,t=-1,n){if(this.root&&e){const r=new Wn(t,n),i=Jn(e),s=new qn(i);return Xn(this.root,e,new $n,r,s),r.schemas}return[]}};function Jn(e,t=_n.v2020_12){let n=e.$schema;return n?jn[n]??t:t}function Xn(e,t,n,r,i){if(!e||!r.include(e))return;if("property"===e.type)return Xn(e.valueNode,t,n,r,i);const s=e;switch(function(){function e(e){return s.type===e||"integer"===e&&"number"===s.type&&s.isInteger}Array.isArray(t.type)?t.type.some(e)||n.problems.push({location:{offset:s.offset,length:s.length},message:t.errorMessage||xn("Incorrect type. Expected one of {0}.",t.type.join(", "))}):t.type&&(e(t.type)||n.problems.push({location:{offset:s.offset,length:s.length},message:t.errorMessage||xn('Incorrect type. Expected "{0}".',t.type)}));if(Array.isArray(t.allOf))for(const u of t.allOf){const e=new $n,t=r.newSub();Xn(s,zn(u),e,t,i),n.merge(e),r.merge(t)}const o=zn(t.not);if(o){const e=new $n,a=r.newSub();Xn(s,o,e,a,i),e.hasProblems()||n.problems.push({location:{offset:s.offset,length:s.length},message:t.errorMessage||xn("Matches a schema that is not allowed.")});for(const t of a.schemas)t.inverted=!t.inverted,r.add(t)}const a=(e,t)=>{const o=[];let a;for(const n of e){const e=zn(n),l=new $n,c=r.newSub();if(Xn(s,e,l,c,i),l.hasProblems()||o.push(e),a)if(t||l.hasProblems()||a.validationResult.hasProblems()){const t=l.compare(a.validationResult);t>0?a={schema:e,validationResult:l,matchingSchemas:c}:0===t&&(a.matchingSchemas.merge(c),a.validationResult.mergeEnumValues(l))}else a.matchingSchemas.merge(c),a.validationResult.propertiesMatches+=l.propertiesMatches,a.validationResult.propertiesValueMatches+=l.propertiesValueMatches,a.validationResult.mergeProcessedProperties(l);else a={schema:e,validationResult:l,matchingSchemas:c}}return o.length>1&&t&&n.problems.push({location:{offset:s.offset,length:1},message:xn("Matches multiple schemas when only one must validate.")}),a&&(n.merge(a.validationResult),r.merge(a.matchingSchemas)),o.length};Array.isArray(t.anyOf)&&a(t.anyOf,!1);Array.isArray(t.oneOf)&&a(t.oneOf,!0);const l=e=>{const t=new $n,o=r.newSub();Xn(s,zn(e),t,o,i),n.merge(t),r.merge(o)},c=zn(t.if);c&&((e,t,o)=>{const a=zn(e),c=new $n,h=r.newSub();Xn(s,a,c,h,i),r.merge(h),n.mergeProcessedProperties(c),c.hasProblems()?o&&l(o):t&&l(t)})(c,zn(t.then),zn(t.else));if(Array.isArray(t.enum)){const e=Hn(s);let r=!1;for(const n of t.enum)if(nn(e,n)){r=!0;break}n.enumValues=t.enum,n.enumValueMatch=r,r||n.problems.push({location:{offset:s.offset,length:s.length},code:pn.EnumValueMismatch,message:t.errorMessage||xn("Value is not accepted. Valid values: {0}.",t.enum.map((e=>JSON.stringify(e))).join(", "))})}if(sn(t.const)){nn(Hn(s),t.const)?n.enumValueMatch=!0:(n.problems.push({location:{offset:s.offset,length:s.length},code:pn.EnumValueMismatch,message:t.errorMessage||xn("Value must be {0}.",JSON.stringify(t.const))}),n.enumValueMatch=!1),n.enumValues=[t.const]}let h=t.deprecationMessage;if(h||t.deprecated){h=h||xn("Value is deprecated");let e="property"===s.parent?.type?s.parent:s;n.problems.push({location:{offset:e.offset,length:e.length},severity:Z.Warning,message:h,code:pn.Deprecated})}}(),s.type){case"object":!function(e){const s=Object.create(null),o=new Set;for(const t of e.properties){const e=t.keyNode.value;s[e]=t.valueNode,o.add(e)}if(Array.isArray(t.required))for(const r of t.required)if(!s[r]){const t=e.parent&&"property"===e.parent.type&&e.parent.keyNode,i=t?{offset:t.offset,length:t.length}:{offset:e.offset,length:1};n.problems.push({location:i,message:xn('Missing property "{0}".',r)})}const a=e=>{o.delete(e),n.processedProperties.add(e)};if(t.properties)for(const d of Object.keys(t.properties)){a(d);const e=t.properties[d],o=s[d];if(o)if(on(e))if(e)n.propertiesMatches++,n.propertiesValueMatches++;else{const e=o.parent;n.problems.push({location:{offset:e.keyNode.offset,length:e.keyNode.length},message:t.errorMessage||xn("Property {0} is not allowed.",d)})}else{const t=new $n;Xn(o,e,t,r,i),n.mergePropertyMatch(t)}}if(t.patternProperties)for(const d of Object.keys(t.patternProperties)){const e=hn(d);if(e){const l=[];for(const a of o)if(e.test(a)){l.push(a);const e=s[a];if(e){const s=t.patternProperties[d];if(on(s))if(s)n.propertiesMatches++,n.propertiesValueMatches++;else{const r=e.parent;n.problems.push({location:{offset:r.keyNode.offset,length:r.keyNode.length},message:t.errorMessage||xn("Property {0} is not allowed.",a)})}else{const t=new $n;Xn(e,s,t,r,i),n.mergePropertyMatch(t)}}}l.forEach(a)}}const l=t.additionalProperties;if(void 0!==l)for(const d of o){a(d);const e=s[d];if(e)if(!1===l){const r=e.parent;n.problems.push({location:{offset:r.keyNode.offset,length:r.keyNode.length},message:t.errorMessage||xn("Property {0} is not allowed.",d)})}else if(!0!==l){const t=new $n;Xn(e,l,t,r,i),n.mergePropertyMatch(t)}}const c=t.unevaluatedProperties;if(void 0!==c){const e=[];for(const a of o)if(!n.processedProperties.has(a)){e.push(a);const o=s[a];if(o)if(!1===c){const e=o.parent;n.problems.push({location:{offset:e.keyNode.offset,length:e.keyNode.length},message:t.errorMessage||xn("Property {0} is not allowed.",a)})}else if(!0!==c){const e=new $n;Xn(o,c,e,r,i),n.mergePropertyMatch(e)}}e.forEach(a)}rn(t.maxProperties)&&e.properties.length>t.maxProperties&&n.problems.push({location:{offset:e.offset,length:e.length},message:xn("Object has more properties than limit of {0}.",t.maxProperties)});rn(t.minProperties)&&e.properties.length<t.minProperties&&n.problems.push({location:{offset:e.offset,length:e.length},message:xn("Object has fewer properties than the required number of {0}",t.minProperties)});if(t.dependentRequired)for(const n in t.dependentRequired){const e=s[n],r=t.dependentRequired[n];e&&Array.isArray(r)&&u(n,r)}if(t.dependentSchemas)for(const n in t.dependentSchemas){const e=s[n],r=t.dependentSchemas[n];e&&ln(r)&&u(n,r)}if(t.dependencies)for(const n in t.dependencies){s[n]&&u(n,t.dependencies[n])}const h=zn(t.propertyNames);if(h)for(const t of e.properties){const e=t.keyNode;e&&Xn(e,h,n,Un.instance,i)}function u(t,o){if(Array.isArray(o))for(const r of o)s[r]?n.propertiesValueMatches++:n.problems.push({location:{offset:e.offset,length:e.length},message:xn("Object is missing property {0} required by property {1}.",r,t)});else{const t=zn(o);if(t){const s=new $n;Xn(e,t,s,r,i),n.mergePropertyMatch(s)}}}}(s);break;case"array":!function(e){let s,o;i.schemaDraft>=_n.v2020_12?(s=t.prefixItems,o=Array.isArray(t.items)?void 0:t.items):(s=Array.isArray(t.items)?t.items:void 0,o=Array.isArray(t.items)?t.additionalItems:t.items);let a=0;if(void 0!==s){const t=Math.min(s.length,e.items.length);for(;a<t;a++){const t=zn(s[a]),o=new $n,l=e.items[a];l&&(Xn(l,t,o,r,i),n.mergePropertyMatch(o)),n.processedProperties.add(String(a))}}if(void 0!==o&&a<e.items.length)if("boolean"===typeof o)for(!1===o&&n.problems.push({location:{offset:e.offset,length:e.length},message:xn("Array has too many items according to schema. Expected {0} or fewer.",a)});a<e.items.length;a++)n.processedProperties.add(String(a)),n.propertiesValueMatches++;else for(;a<e.items.length;a++){const t=new $n;Xn(e.items[a],o,t,r,i),n.mergePropertyMatch(t),n.processedProperties.add(String(a))}const l=zn(t.contains);if(l){let r=0;for(let t=0;t<e.items.length;t++){const s=e.items[t],o=new $n;Xn(s,l,o,Un.instance,i),o.hasProblems()||(r++,i.schemaDraft>=_n.v2020_12&&n.processedProperties.add(String(t)))}0!==r||rn(t.minContains)||n.problems.push({location:{offset:e.offset,length:e.length},message:t.errorMessage||xn("Array does not contain required item.")}),rn(t.minContains)&&r<t.minContains&&n.problems.push({location:{offset:e.offset,length:e.length},message:t.errorMessage||xn("Array has too few items that match the contains contraint. Expected {0} or more.",t.minContains)}),rn(t.maxContains)&&r>t.maxContains&&n.problems.push({location:{offset:e.offset,length:e.length},message:t.errorMessage||xn("Array has too many items that match the contains contraint. Expected {0} or less.",t.maxContains)})}const c=t.unevaluatedItems;if(void 0!==c)for(let h=0;h<e.items.length;h++){if(!n.processedProperties.has(String(h)))if(!1===c)n.problems.push({location:{offset:e.offset,length:e.length},message:xn("Item does not match any validation rule from the array.")});else{const s=new $n;Xn(e.items[h],t.unevaluatedItems,s,r,i),n.mergePropertyMatch(s)}n.processedProperties.add(String(h)),n.propertiesValueMatches++}rn(t.minItems)&&e.items.length<t.minItems&&n.problems.push({location:{offset:e.offset,length:e.length},message:xn("Array has too few items. Expected {0} or more.",t.minItems)});rn(t.maxItems)&&e.items.length>t.maxItems&&n.problems.push({location:{offset:e.offset,length:e.length},message:xn("Array has too many items. Expected {0} or fewer.",t.maxItems)});if(!0===t.uniqueItems){let t=function(){for(let e=0;e<r.length-1;e++){const t=r[e];for(let n=e+1;n<r.length;n++)if(nn(t,r[n]))return!0}return!1};const r=Hn(e);t()&&n.problems.push({location:{offset:e.offset,length:e.length},message:xn("Array has duplicate items.")})}}(s);break;case"string":!function(e){rn(t.minLength)&&un(e.value)<t.minLength&&n.problems.push({location:{offset:e.offset,length:e.length},message:xn("String is shorter than the minimum length of {0}.",t.minLength)});rn(t.maxLength)&&un(e.value)>t.maxLength&&n.problems.push({location:{offset:e.offset,length:e.length},message:xn("String is longer than the maximum length of {0}.",t.maxLength)});if(an(t.pattern)){const r=hn(t.pattern);r?.test(e.value)||n.problems.push({location:{offset:e.offset,length:e.length},message:t.patternErrorMessage||t.errorMessage||xn('String does not match the pattern of "{0}".',t.pattern)})}if(t.format)switch(t.format){case"uri":case"uri-reference":{let r;if(e.value){const n=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(e.value);n?n[2]||"uri"!==t.format||(r=xn("URI with a scheme is expected.")):r=xn("URI is expected.")}else r=xn("URI expected.");r&&n.problems.push({location:{offset:e.offset,length:e.length},message:t.patternErrorMessage||t.errorMessage||xn("String is not a URI: {0}",r)})}break;case"color-hex":case"date-time":case"date":case"time":case"email":case"hostname":case"ipv4":case"ipv6":const r=In[t.format];e.value&&r.pattern.exec(e.value)||n.problems.push({location:{offset:e.offset,length:e.length},message:t.patternErrorMessage||t.errorMessage||r.errorMessage})}}(s);break;case"number":!function(e){const r=e.value;function i(e){const t=/^(-?\d+)(?:\.(\d+))?(?:e([-+]\d+))?$/.exec(e.toString());return t&&{value:Number(t[1]+(t[2]||"")),multiplier:(t[2]?.length||0)-(parseInt(t[3])||0)}}if(rn(t.multipleOf)){let s=-1;if(Number.isInteger(t.multipleOf))s=r%t.multipleOf;else{let e=i(t.multipleOf),n=i(r);if(e&&n){const t=10**Math.abs(n.multiplier-e.multiplier);n.multiplier<e.multiplier?n.value*=t:e.value*=t,s=n.value%e.value}}0!==s&&n.problems.push({location:{offset:e.offset,length:e.length},message:xn("Value is not divisible by {0}.",t.multipleOf)})}function s(e,t){return rn(t)?t:on(t)&&t?e:void 0}function o(e,t){if(!on(t)||!t)return e}const a=s(t.minimum,t.exclusiveMinimum);rn(a)&&r<=a&&n.problems.push({location:{offset:e.offset,length:e.length},message:xn("Value is below the exclusive minimum of {0}.",a)});const l=s(t.maximum,t.exclusiveMaximum);rn(l)&&r>=l&&n.problems.push({location:{offset:e.offset,length:e.length},message:xn("Value is above the exclusive maximum of {0}.",l)});const c=o(t.minimum,t.exclusiveMinimum);rn(c)&&r<c&&n.problems.push({location:{offset:e.offset,length:e.length},message:xn("Value is below the minimum of {0}.",c)});const h=o(t.maximum,t.exclusiveMaximum);rn(h)&&r>h&&n.problems.push({location:{offset:e.offset,length:e.length},message:xn("Value is above the maximum of {0}.",h)})}(s)}r.add({node:s,schema:t})}function Yn(e,t){const n=[];let r=-1;const i=e.getText(),s=w(i,!1),o=t&&t.collectComments?[]:void 0;function a(){for(;;){const t=s.scan();switch(h(),t){case 12:case 13:Array.isArray(o)&&o.push(D.create(e.positionAt(s.getTokenOffset()),e.positionAt(s.getTokenOffset()+s.getTokenLength())));break;case 15:case 14:break;default:return t}}}function l(t,i,s,o,a=Z.Error){if(0===n.length||s!==r){const l=D.create(e.positionAt(s),e.positionAt(o));n.push(ie.create(l,t,a,i,e.languageId)),r=s}}function c(e,t,n=void 0,r=[],o=[]){let c=s.getTokenOffset(),h=s.getTokenOffset()+s.getTokenLength();if(c===h&&c>0){for(c--;c>0&&/\s/.test(i.charAt(c));)c--;h=c+1}if(l(e,t,c,h),n&&u(n,!1),r.length+o.length>0){let e=s.getToken();for(;17!==e;){if(-1!==r.indexOf(e)){a();break}if(-1!==o.indexOf(e))break;e=a()}}return n}function h(){switch(s.getTokenError()){case 4:return c(xn("Invalid unicode sequence in string."),pn.InvalidUnicode),!0;case 5:return c(xn("Invalid escape character in string."),pn.InvalidEscapeCharacter),!0;case 3:return c(xn("Unexpected end of number."),pn.UnexpectedEndOfNumber),!0;case 1:return c(xn("Unexpected end of comment."),pn.UnexpectedEndOfComment),!0;case 2:return c(xn("Unexpected end of string."),pn.UnexpectedEndOfString),!0;case 6:return c(xn("Invalid characters in string. Control characters must be escaped."),pn.InvalidCharacter),!0}return!1}function u(e,t){return e.length=s.getTokenOffset()+s.getTokenLength()-e.offset,t&&a(),e}const d=new Fn(void 0,0,0);function g(t,n){const r=new Pn(t,s.getTokenOffset(),d);let i=f(r);if(!i){if(16!==s.getToken())return;{c(xn("Property keys must be doublequoted"),pn.PropertyKeysMustBeDoublequoted);const e=new Fn(r,s.getTokenOffset(),s.getTokenLength());e.value=s.getTokenValue(),i=e,a()}}if(r.keyNode=i,"//"!==i.value){const e=n[i.value];e?(l(xn("Duplicate object key"),pn.DuplicateKey,r.keyNode.offset,r.keyNode.offset+r.keyNode.length,Z.Warning),ln(e)&&l(xn("Duplicate object key"),pn.DuplicateKey,e.keyNode.offset,e.keyNode.offset+e.keyNode.length,Z.Warning),n[i.value]=!0):n[i.value]=r}if(6===s.getToken())r.colonOffset=s.getTokenOffset(),a();else if(c(xn("Colon expected"),pn.ColonExpected),10===s.getToken()&&e.positionAt(i.offset+i.length).line<e.positionAt(s.getTokenOffset()).line)return r.length=i.length,r;const o=m(r);return o?(r.valueNode=o,r.length=o.offset+o.length-r.offset,r):c(xn("Value expected"),pn.ValueExpected,r,[],[2,5])}function f(e){if(10!==s.getToken())return;const t=new Fn(e,s.getTokenOffset());return t.value=s.getTokenValue(),u(t,!0)}function m(e){return function(e){if(3!==s.getToken())return;const t=new Dn(e,s.getTokenOffset());a();let n=!1;for(;4!==s.getToken()&&17!==s.getToken();){if(5===s.getToken()){n||c(xn("Value expected"),pn.ValueExpected);const e=s.getTokenOffset();if(a(),4===s.getToken()){n&&l(xn("Trailing comma"),pn.TrailingComma,e,e+1);continue}}else n&&c(xn("Expected comma"),pn.CommaExpected);const e=m(t);e?t.items.push(e):c(xn("Value expected"),pn.ValueExpected,void 0,[],[4,5]),n=!0}return 4!==s.getToken()?c(xn("Expected comma or closing bracket"),pn.CommaOrCloseBacketExpected,t):u(t,!0)}(e)||function(e){if(1!==s.getToken())return;const t=new Vn(e,s.getTokenOffset()),n=Object.create(null);a();let r=!1;for(;2!==s.getToken()&&17!==s.getToken();){if(5===s.getToken()){r||c(xn("Property expected"),pn.PropertyExpected);const e=s.getTokenOffset();if(a(),2===s.getToken()){r&&l(xn("Trailing comma"),pn.TrailingComma,e,e+1);continue}}else r&&c(xn("Expected comma"),pn.CommaExpected);const e=g(t,n);e?t.properties.push(e):c(xn("Property expected"),pn.PropertyExpected,void 0,[],[2,5]),r=!0}return 2!==s.getToken()?c(xn("Expected comma or closing brace"),pn.CommaOrCloseBraceExpected,t):u(t,!0)}(e)||f(e)||function(e){if(11!==s.getToken())return;const t=new Bn(e,s.getTokenOffset());if(0===s.getTokenError()){const e=s.getTokenValue();try{const n=JSON.parse(e);if(!rn(n))return c(xn("Invalid number format."),pn.Undefined,t);t.value=n}catch(n){return c(xn("Invalid number format."),pn.Undefined,t)}t.isInteger=-1===e.indexOf(".")}return u(t,!0)}(e)||function(e){switch(s.getToken()){case 7:return u(new Mn(e,s.getTokenOffset()),!0);case 8:return u(new Rn(e,!0,s.getTokenOffset()),!0);case 9:return u(new Rn(e,!1,s.getTokenOffset()),!0);default:return}}(e)}let p;return 17!==a()&&(p=m(p),p?17!==s.getToken()&&c(xn("End of file expected."),pn.Undefined):c(xn("Expected a JSON object, array or literal."),pn.Undefined)),new Qn(p,n,o)}function Zn(e,t,n){if(null!==e&&"object"===typeof e){const r=t+"\t";if(Array.isArray(e)){if(0===e.length)return"[]";let i="[\n";for(let t=0;t<e.length;t++)i+=r+Zn(e[t],r,n),t<e.length-1&&(i+=","),i+="\n";return i+=t+"]",i}{const i=Object.keys(e);if(0===i.length)return"{}";let s="{\n";for(let t=0;t<i.length;t++){const o=i[t];s+=r+JSON.stringify(o)+": "+Zn(e[o],r,n),t<i.length-1&&(s+=","),s+="\n"}return s+=t+"}",s}}return n(e)}var er=class{constructor(e,t=[],n=Promise,r={}){this.schemaService=e,this.contributions=t,this.promiseConstructor=n,this.clientCapabilities=r}doResolve(e){for(let t=this.contributions.length-1;t>=0;t--){const n=this.contributions[t].resolveCompletion;if(n){const t=n(e);if(t)return t}}return this.promiseConstructor.resolve(e)}doComplete(e,t,n){const r={items:[],isIncomplete:!1},i=e.getText(),s=e.offsetAt(t);let o=n.getNodeFromOffset(s,!0);if(this.isInComment(e,o?o.offset:0,s))return Promise.resolve(r);if(o&&s===o.offset+o.length&&s>0){const e=i[s-1];("object"===o.type&&"}"===e||"array"===o.type&&"]"===e)&&(o=o.parent)}const a=this.getCurrentWord(e,s);let l;if(!o||"string"!==o.type&&"number"!==o.type&&"boolean"!==o.type&&"null"!==o.type){let n=s-a.length;n>0&&'"'===i[n-1]&&n--,l=D.create(e.positionAt(n),t)}else l=D.create(e.positionAt(o.offset),e.positionAt(o.offset+o.length));const c=new Map,h={add:e=>{let t=e.label;const n=c.get(t);if(n)n.documentation||(n.documentation=e.documentation),n.detail||(n.detail=e.detail),n.labelDetails||(n.labelDetails=e.labelDetails);else{if(t=t.replace(/[\n]/g,"\u21b5"),t.length>60){const e=t.substr(0,57).trim()+"...";c.has(e)||(t=e)}e.textEdit=le.replace(l,e.insertText),e.label=t,c.set(t,e),r.items.push(e)}},setAsIncomplete:()=>{r.isIncomplete=!0},error:e=>{console.error(e)},getNumberOfProposals:()=>r.items.length};return this.schemaService.getSchemaForResource(e.uri,n).then((t=>{const u=[];let d,g=!0,f="";if(o&&"string"===o.type){const e=o.parent;e&&"property"===e.type&&e.keyNode===o&&(g=!e.valueNode,d=e,f=i.substr(o.offset+1,o.length-2),e&&(o=e.parent))}if(o&&"object"===o.type){if(o.offset===s)return r;o.properties.forEach((e=>{d&&d===e||c.set(e.keyNode.value,$e.create("__"))}));let m="";g&&(m=this.evaluateSeparatorAfter(e,e.offsetAt(l.end))),t?this.getPropertyCompletions(t,n,o,g,m,h):this.getSchemaLessPropertyCompletions(n,o,f,h);const p=Kn(o);this.contributions.forEach((t=>{const n=t.collectPropertyCompletions(e.uri,p,a,g,""===m,h);n&&u.push(n)})),!t&&a.length>0&&'"'!==i.charAt(s-a.length-1)&&(h.add({kind:De.Property,label:this.getLabelForValue(a),insertText:this.getInsertTextForProperty(a,void 0,!1,m),insertTextFormat:Fe.Snippet,documentation:""}),h.setAsIncomplete())}const m={};return t?this.getValueCompletions(t,n,o,s,e,h,m):this.getSchemaLessValueCompletions(n,o,s,e,h),this.contributions.length>0&&this.getContributedValueCompletions(n,o,s,e,h,u),this.promiseConstructor.all(u).then((()=>{if(0===h.getNumberOfProposals()){let t=s;!o||"string"!==o.type&&"number"!==o.type&&"boolean"!==o.type&&"null"!==o.type||(t=o.offset+o.length);const n=this.evaluateSeparatorAfter(e,t);this.addFillerValueCompletions(m,n,h)}return r}))}))}getPropertyCompletions(e,t,n,r,i,s){t.getMatchingSchemas(e.schema,n.offset).forEach((e=>{if(e.node===n&&!e.inverted){const t=e.schema.properties;t&&Object.keys(t).forEach((e=>{const n=t[e];if("object"===typeof n&&!n.deprecationMessage&&!n.doNotSuggest){const t={kind:De.Property,label:e,insertText:this.getInsertTextForProperty(e,n,r,i),insertTextFormat:Fe.Snippet,filterText:this.getFilterTextForValue(e),documentation:this.fromMarkup(n.markdownDescription)||n.description||""};void 0!==n.suggestSortText&&(t.sortText=n.suggestSortText),t.insertText&&cn(t.insertText,`$1${i}`)&&(t.command={title:"Suggest",command:"editor.action.triggerSuggest"}),s.add(t)}}));const n=e.schema.propertyNames;if("object"===typeof n&&!n.deprecationMessage&&!n.doNotSuggest){const e=(e,t=void 0)=>{const o={kind:De.Property,label:e,insertText:this.getInsertTextForProperty(e,void 0,r,i),insertTextFormat:Fe.Snippet,filterText:this.getFilterTextForValue(e),documentation:t||this.fromMarkup(n.markdownDescription)||n.description||""};void 0!==n.suggestSortText&&(o.sortText=n.suggestSortText),o.insertText&&cn(o.insertText,`$1${i}`)&&(o.command={title:"Suggest",command:"editor.action.triggerSuggest"}),s.add(o)};if(n.enum)for(let t=0;t<n.enum.length;t++){let r;n.markdownEnumDescriptions&&t<n.markdownEnumDescriptions.length?r=this.fromMarkup(n.markdownEnumDescriptions[t]):n.enumDescriptions&&t<n.enumDescriptions.length&&(r=n.enumDescriptions[t]),e(n.enum[t],r)}n.const&&e(n.const)}}}))}getSchemaLessPropertyCompletions(e,t,n,r){const i=e=>{e.properties.forEach((e=>{const t=e.keyNode.value;r.add({kind:De.Property,label:t,insertText:this.getInsertTextForValue(t,""),insertTextFormat:Fe.Snippet,filterText:this.getFilterTextForValue(t),documentation:""})}))};if(t.parent)if("property"===t.parent.type){const n=t.parent.keyNode.value;e.visit((e=>("property"===e.type&&e!==t.parent&&e.keyNode.value===n&&e.valueNode&&"object"===e.valueNode.type&&i(e.valueNode),!0)))}else"array"===t.parent.type&&t.parent.items.forEach((e=>{"object"===e.type&&e!==t&&i(e)}));else"object"===t.type&&r.add({kind:De.Property,label:"$schema",insertText:this.getInsertTextForProperty("$schema",void 0,!0,""),insertTextFormat:Fe.Snippet,documentation:"",filterText:this.getFilterTextForValue("$schema")})}getSchemaLessValueCompletions(e,t,n,r,i){let s=n;if(!t||"string"!==t.type&&"number"!==t.type&&"boolean"!==t.type&&"null"!==t.type||(s=t.offset+t.length,t=t.parent),!t)return i.add({kind:this.getSuggestionKind("object"),label:"Empty object",insertText:this.getInsertTextForValue({},""),insertTextFormat:Fe.Snippet,documentation:""}),void i.add({kind:this.getSuggestionKind("array"),label:"Empty array",insertText:this.getInsertTextForValue([],""),insertTextFormat:Fe.Snippet,documentation:""});const o=this.evaluateSeparatorAfter(r,s),a=e=>{e.parent&&!Gn(e.parent,n,!0)&&i.add({kind:this.getSuggestionKind(e.type),label:this.getLabelTextForMatchingNode(e,r),insertText:this.getInsertTextForMatchingNode(e,r,o),insertTextFormat:Fe.Snippet,documentation:""}),"boolean"===e.type&&this.addBooleanValueCompletion(!e.value,o,i)};if("property"===t.type&&n>(t.colonOffset||0)){const r=t.valueNode;if(r&&(n>r.offset+r.length||"object"===r.type||"array"===r.type))return;const s=t.keyNode.value;e.visit((e=>("property"===e.type&&e.keyNode.value===s&&e.valueNode&&a(e.valueNode),!0))),"$schema"===s&&t.parent&&!t.parent.parent&&this.addDollarSchemaCompletions(o,i)}if("array"===t.type)if(t.parent&&"property"===t.parent.type){const n=t.parent.keyNode.value;e.visit((e=>("property"===e.type&&e.keyNode.value===n&&e.valueNode&&"array"===e.valueNode.type&&e.valueNode.items.forEach(a),!0)))}else t.items.forEach(a)}getValueCompletions(e,t,n,r,i,s,o){let a,l,c=r;if(!n||"string"!==n.type&&"number"!==n.type&&"boolean"!==n.type&&"null"!==n.type||(c=n.offset+n.length,l=n,n=n.parent),n){if("property"===n.type&&r>(n.colonOffset||0)){const e=n.valueNode;if(e&&r>e.offset+e.length)return;a=n.keyNode.value,n=n.parent}if(n&&(void 0!==a||"array"===n.type)){const h=this.evaluateSeparatorAfter(i,c),u=t.getMatchingSchemas(e.schema,n.offset,l);for(const e of u)if(e.node===n&&!e.inverted&&e.schema){if("array"===n.type&&e.schema.items){let t=s;if(e.schema.uniqueItems){const e=new Set;n.children.forEach((t=>{"array"!==t.type&&"object"!==t.type&&e.add(this.getLabelForValue(Hn(t)))})),t={...s,add(t){e.has(t.label)||s.add(t)}}}if(Array.isArray(e.schema.items)){const s=this.findItemAtOffset(n,i,r);s<e.schema.items.length&&this.addSchemaValueCompletions(e.schema.items[s],h,t,o)}else this.addSchemaValueCompletions(e.schema.items,h,t,o)}if(void 0!==a){let t=!1;if(e.schema.properties){const n=e.schema.properties[a];n&&(t=!0,this.addSchemaValueCompletions(n,h,s,o))}if(e.schema.patternProperties&&!t)for(const n of Object.keys(e.schema.patternProperties)){const r=hn(n);if(r?.test(a)){t=!0;const r=e.schema.patternProperties[n];this.addSchemaValueCompletions(r,h,s,o)}}if(e.schema.additionalProperties&&!t){const t=e.schema.additionalProperties;this.addSchemaValueCompletions(t,h,s,o)}}}"$schema"!==a||n.parent||this.addDollarSchemaCompletions(h,s),o.boolean&&(this.addBooleanValueCompletion(!0,h,s),this.addBooleanValueCompletion(!1,h,s)),o.null&&this.addNullValueCompletion(h,s)}}else this.addSchemaValueCompletions(e.schema,"",s,o)}getContributedValueCompletions(e,t,n,r,i,s){if(t){if("string"!==t.type&&"number"!==t.type&&"boolean"!==t.type&&"null"!==t.type||(t=t.parent),t&&"property"===t.type&&n>(t.colonOffset||0)){const e=t.keyNode.value,o=t.valueNode;if((!o||n<=o.offset+o.length)&&t.parent){const n=Kn(t.parent);this.contributions.forEach((t=>{const o=t.collectValueCompletions(r.uri,n,e,i);o&&s.push(o)}))}}}else this.contributions.forEach((e=>{const t=e.collectDefaultCompletions(r.uri,i);t&&s.push(t)}))}addSchemaValueCompletions(e,t,n,r){"object"===typeof e&&(this.addEnumValueCompletions(e,t,n),this.addDefaultValueCompletions(e,t,n),this.collectTypes(e,r),Array.isArray(e.allOf)&&e.allOf.forEach((e=>this.addSchemaValueCompletions(e,t,n,r))),Array.isArray(e.anyOf)&&e.anyOf.forEach((e=>this.addSchemaValueCompletions(e,t,n,r))),Array.isArray(e.oneOf)&&e.oneOf.forEach((e=>this.addSchemaValueCompletions(e,t,n,r))))}addDefaultValueCompletions(e,t,n,r=0){let i=!1;if(sn(e.default)){let s=e.type,o=e.default;for(let e=r;e>0;e--)o=[o],s="array";const a={kind:this.getSuggestionKind(s),label:this.getLabelForValue(o),insertText:this.getInsertTextForValue(o,t),insertTextFormat:Fe.Snippet};this.doesSupportsLabelDetails()?a.labelDetails={description:xn("Default value")}:a.detail=xn("Default value"),n.add(a),i=!0}Array.isArray(e.examples)&&e.examples.forEach((s=>{let o=e.type,a=s;for(let e=r;e>0;e--)a=[a],o="array";n.add({kind:this.getSuggestionKind(o),label:this.getLabelForValue(a),insertText:this.getInsertTextForValue(a,t),insertTextFormat:Fe.Snippet}),i=!0})),Array.isArray(e.defaultSnippets)&&e.defaultSnippets.forEach((s=>{let o,a,l=e.type,c=s.body,h=s.label;if(sn(c)){let n=e.type;for(let e=r;e>0;e--)c=[c],n="array";o=this.getInsertTextForSnippetValue(c,t),a=this.getFilterTextForSnippetValue(c),h=h||this.getLabelForSnippetValue(c)}else{if("string"!==typeof s.bodyText)return;{let e="",n="",i="";for(let t=r;t>0;t--)e=e+i+"[\n",n=n+"\n"+i+"]",i+="\t",l="array";o=e+i+s.bodyText.split("\n").join("\n"+i)+n+t,h=h||o,a=o.replace(/[\n]/g,"")}}n.add({kind:this.getSuggestionKind(l),label:h,documentation:this.fromMarkup(s.markdownDescription)||s.description,insertText:o,insertTextFormat:Fe.Snippet,filterText:a}),i=!0})),!i&&"object"===typeof e.items&&!Array.isArray(e.items)&&r<5&&this.addDefaultValueCompletions(e.items,t,n,r+1)}addEnumValueCompletions(e,t,n){if(sn(e.const)&&n.add({kind:this.getSuggestionKind(e.type),label:this.getLabelForValue(e.const),insertText:this.getInsertTextForValue(e.const,t),insertTextFormat:Fe.Snippet,documentation:this.fromMarkup(e.markdownDescription)||e.description}),Array.isArray(e.enum))for(let r=0,i=e.enum.length;r<i;r++){const i=e.enum[r];let s=this.fromMarkup(e.markdownDescription)||e.description;e.markdownEnumDescriptions&&r<e.markdownEnumDescriptions.length&&this.doesSupportMarkdown()?s=this.fromMarkup(e.markdownEnumDescriptions[r]):e.enumDescriptions&&r<e.enumDescriptions.length&&(s=e.enumDescriptions[r]),n.add({kind:this.getSuggestionKind(e.type),label:this.getLabelForValue(i),insertText:this.getInsertTextForValue(i,t),insertTextFormat:Fe.Snippet,documentation:s})}}collectTypes(e,t){if(Array.isArray(e.enum)||sn(e.const))return;const n=e.type;Array.isArray(n)?n.forEach((e=>t[e]=!0)):n&&(t[n]=!0)}addFillerValueCompletions(e,t,n){e.object&&n.add({kind:this.getSuggestionKind("object"),label:"{}",insertText:this.getInsertTextForGuessedValue({},t),insertTextFormat:Fe.Snippet,detail:xn("New object"),documentation:""}),e.array&&n.add({kind:this.getSuggestionKind("array"),label:"[]",insertText:this.getInsertTextForGuessedValue([],t),insertTextFormat:Fe.Snippet,detail:xn("New array"),documentation:""})}addBooleanValueCompletion(e,t,n){n.add({kind:this.getSuggestionKind("boolean"),label:e?"true":"false",insertText:this.getInsertTextForValue(e,t),insertTextFormat:Fe.Snippet,documentation:""})}addNullValueCompletion(e,t){t.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+e,insertTextFormat:Fe.Snippet,documentation:""})}addDollarSchemaCompletions(e,t){this.schemaService.getRegisteredSchemaIds((e=>"http"===e||"https"===e)).forEach((n=>{n.startsWith("http://json-schema.org/draft-")&&(n+="#"),t.add({kind:De.Module,label:this.getLabelForValue(n),filterText:this.getFilterTextForValue(n),insertText:this.getInsertTextForValue(n,e),insertTextFormat:Fe.Snippet,documentation:""})}))}getLabelForValue(e){return JSON.stringify(e)}getValueFromLabel(e){return JSON.parse(e)}getFilterTextForValue(e){return JSON.stringify(e)}getFilterTextForSnippetValue(e){return JSON.stringify(e).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")}getLabelForSnippetValue(e){return JSON.stringify(e).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")}getInsertTextForPlainText(e){return e.replace(/[\\\$\}]/g,"\\$&")}getInsertTextForValue(e,t){const n=JSON.stringify(e,null,"\t");return"{}"===n?"{$1}"+t:"[]"===n?"[$1]"+t:this.getInsertTextForPlainText(n+t)}getInsertTextForSnippetValue(e,t){return Zn(e,"",(e=>"string"===typeof e&&"^"===e[0]?e.substr(1):JSON.stringify(e)))+t}getInsertTextForGuessedValue(e,t){switch(typeof e){case"object":return null===e?"${1:null}"+t:this.getInsertTextForValue(e,t);case"string":let n=JSON.stringify(e);return n=n.substr(1,n.length-2),n=this.getInsertTextForPlainText(n),'"${1:'+n+'}"'+t;case"number":case"boolean":return"${1:"+JSON.stringify(e)+"}"+t}return this.getInsertTextForValue(e,t)}getSuggestionKind(e){if(Array.isArray(e)){const t=e;e=t.length>0?t[0]:void 0}if(!e)return De.Value;switch(e){case"string":default:return De.Value;case"object":return De.Module;case"property":return De.Property}}getLabelTextForMatchingNode(e,t){switch(e.type){case"array":return"[]";case"object":return"{}";default:return t.getText().substr(e.offset,e.length)}}getInsertTextForMatchingNode(e,t,n){switch(e.type){case"array":return this.getInsertTextForValue([],n);case"object":return this.getInsertTextForValue({},n);default:const r=t.getText().substr(e.offset,e.length)+n;return this.getInsertTextForPlainText(r)}}getInsertTextForProperty(e,t,n,r){const i=this.getInsertTextForValue(e,"");if(!n)return i;const s=i+": ";let o,a=0;if(t){if(Array.isArray(t.defaultSnippets)){if(1===t.defaultSnippets.length){const e=t.defaultSnippets[0].body;sn(e)&&(o=this.getInsertTextForSnippetValue(e,""))}a+=t.defaultSnippets.length}if(t.enum&&(o||1!==t.enum.length||(o=this.getInsertTextForGuessedValue(t.enum[0],"")),a+=t.enum.length),sn(t.const)&&(o||(o=this.getInsertTextForGuessedValue(t.const,"")),a++),sn(t.default)&&(o||(o=this.getInsertTextForGuessedValue(t.default,"")),a++),Array.isArray(t.examples)&&t.examples.length&&(o||(o=this.getInsertTextForGuessedValue(t.examples[0],"")),a+=t.examples.length),0===a){let e=Array.isArray(t.type)?t.type[0]:t.type;switch(e||(t.properties?e="object":t.items&&(e="array")),e){case"boolean":o="$1";break;case"string":o='"$1"';break;case"object":o="{$1}";break;case"array":o="[$1]";break;case"number":case"integer":o="${1:0}";break;case"null":o="${1:null}";break;default:return i}}}return(!o||a>1)&&(o="$1"),s+o+r}getCurrentWord(e,t){let n=t-1;const r=e.getText();for(;n>=0&&-1===' \t\n\r\v":{[,]}'.indexOf(r.charAt(n));)n--;return r.substring(n+1,t)}evaluateSeparatorAfter(e,t){const n=w(e.getText(),!0);n.setPosition(t);switch(n.scan()){case 5:case 2:case 4:case 17:return"";default:return","}}findItemAtOffset(e,t,n){const r=w(t.getText(),!0),i=e.items;for(let s=i.length-1;s>=0;s--){const e=i[s];if(n>e.offset+e.length){r.setPosition(e.offset+e.length);return 5===r.scan()&&n>=r.getTokenOffset()+r.getTokenLength()?s+1:s}if(n>=e.offset)return s}return 0}isInComment(e,t,n){const r=w(e.getText(),!1);r.setPosition(t);let i=r.scan();for(;17!==i&&r.getTokenOffset()+r.getTokenLength()<n;)i=r.scan();return(12===i||13===i)&&r.getTokenOffset()<=n}fromMarkup(e){if(e&&this.doesSupportMarkdown())return{kind:Oe.Markdown,value:e}}doesSupportMarkdown(){if(!sn(this.supportsMarkdown)){const e=this.clientCapabilities.textDocument?.completion?.completionItem?.documentationFormat;this.supportsMarkdown=Array.isArray(e)&&-1!==e.indexOf(Oe.Markdown)}return this.supportsMarkdown}doesSupportsCommitCharacters(){return sn(this.supportsCommitCharacters)||(this.labelDetailsSupport=this.clientCapabilities.textDocument?.completion?.completionItem?.commitCharactersSupport),this.supportsCommitCharacters}doesSupportsLabelDetails(){return sn(this.labelDetailsSupport)||(this.labelDetailsSupport=this.clientCapabilities.textDocument?.completion?.completionItem?.labelDetailsSupport),this.labelDetailsSupport}},tr=class{constructor(e,t=[],n){this.schemaService=e,this.contributions=t,this.promise=n||Promise}doHover(e,t,n){const r=e.offsetAt(t);let i=n.getNodeFromOffset(r);if(!i||("object"===i.type||"array"===i.type)&&r>i.offset+1&&r<i.offset+i.length-1)return this.promise.resolve(null);const s=i;if("string"===i.type){const e=i.parent;if(e&&"property"===e.type&&e.keyNode===i&&(i=e.valueNode,!i))return this.promise.resolve(null)}const o=D.create(e.positionAt(s.offset),e.positionAt(s.offset+s.length)),a=e=>({contents:e,range:o}),l=Kn(i);for(let c=this.contributions.length-1;c>=0;c--){const t=this.contributions[c].getInfoContribution(e.uri,l);if(t)return t.then((e=>a(e)))}return this.schemaService.getSchemaForResource(e.uri,n).then((e=>{if(e&&i){let t,r,s,o;n.getMatchingSchemas(e.schema,i.offset).every((e=>{if(e.node===i&&!e.inverted&&e.schema&&(t=t||e.schema.title,r=r||e.schema.markdownDescription||nr(e.schema.description),e.schema.enum)){const t=e.schema.enum.indexOf(Hn(i));e.schema.markdownEnumDescriptions?s=e.schema.markdownEnumDescriptions[t]:e.schema.enumDescriptions&&(s=nr(e.schema.enumDescriptions[t])),s&&(o=e.schema.enum[t],"string"!==typeof o&&(o=JSON.stringify(o)))}return!0}));let l="";return t&&(l=nr(t)),r&&(l.length>0&&(l+="\n\n"),l+=r),s&&(l.length>0&&(l+="\n\n"),l+=`\`${function(e){if(-1!==e.indexOf("`"))return"`` "+e+" ``";return e}(o)}\`: ${s}`),a([l])}return null}))}};function nr(e){if(e){return e.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,"$1\n\n$3").replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}var rr=class{constructor(e,t){this.jsonSchemaService=e,this.promise=t,this.validationEnabled=!0}configure(e){e&&(this.validationEnabled=!1!==e.validate,this.commentSeverity=e.allowComments?void 0:Z.Error)}doValidation(e,t,n,r){if(!this.validationEnabled)return this.promise.resolve([]);const i=[],s={},o=e=>{const t=e.range.start.line+" "+e.range.start.character+" "+e.message;s[t]||(s[t]=!0,i.push(e))},a=r=>{let s=n?.trailingCommas?ar(n.trailingCommas):Z.Error,a=n?.comments?ar(n.comments):this.commentSeverity,l=n?.schemaValidation?ar(n.schemaValidation):Z.Warning,c=n?.schemaRequest?ar(n.schemaRequest):Z.Warning;if(r){const i=(n,r)=>{if(t.root&&c){const i=t.root,s="object"===i.type?i.properties[0]:void 0;if(s&&"$schema"===s.keyNode.value){const t=s.valueNode||s,i=D.create(e.positionAt(t.offset),e.positionAt(t.offset+t.length));o(ie.create(i,n,c,r))}else{const t=D.create(e.positionAt(i.offset),e.positionAt(i.offset+1));o(ie.create(t,n,c,r))}}};if(r.errors.length)i(r.errors[0],pn.SchemaResolveError);else if(l){for(const e of r.warnings)i(e,pn.SchemaUnsupportedFeature);const s=t.validate(e,r.schema,l,n?.schemaDraft);s&&s.forEach(o)}sr(r.schema)&&(a=void 0),or(r.schema)&&(s=void 0)}for(const e of t.syntaxErrors){if(e.code===pn.TrailingComma){if("number"!==typeof s)continue;e.severity=s}o(e)}if("number"===typeof a){const e=xn("Comments are not permitted in JSON.");t.comments.forEach((t=>{o(ie.create(t,e,a,pn.CommentNotPermitted))}))}return i};if(r){const e=r.id||"schemaservice://untitled/"+ir++;return this.jsonSchemaService.registerExternalSchema({uri:e,schema:r}).getResolvedSchema().then((e=>a(e)))}return this.jsonSchemaService.getSchemaForResource(e.uri,t).then((e=>a(e)))}getLanguageStatus(e,t){return{schemas:this.jsonSchemaService.getSchemaURIsForResource(e.uri,t)}}},ir=0;function sr(e){if(e&&"object"===typeof e){if(on(e.allowComments))return e.allowComments;if(e.allOf)for(const t of e.allOf){const e=sr(t);if(on(e))return e}}}function or(e){if(e&&"object"===typeof e){if(on(e.allowTrailingCommas))return e.allowTrailingCommas;const t=e;if(on(t.allowsTrailingCommas))return t.allowsTrailingCommas;if(e.allOf)for(const n of e.allOf){const e=or(n);if(on(e))return e}}}function ar(e){switch(e){case"error":return Z.Error;case"warning":return Z.Warning;case"ignore":return}}function lr(e){return e<48?0:e<=57?e-48:(e<97&&(e+=32),e>=97&&e<=102?e-97+10:0)}function cr(e){if("#"===e[0])switch(e.length){case 4:return{red:17*lr(e.charCodeAt(1))/255,green:17*lr(e.charCodeAt(2))/255,blue:17*lr(e.charCodeAt(3))/255,alpha:1};case 5:return{red:17*lr(e.charCodeAt(1))/255,green:17*lr(e.charCodeAt(2))/255,blue:17*lr(e.charCodeAt(3))/255,alpha:17*lr(e.charCodeAt(4))/255};case 7:return{red:(16*lr(e.charCodeAt(1))+lr(e.charCodeAt(2)))/255,green:(16*lr(e.charCodeAt(3))+lr(e.charCodeAt(4)))/255,blue:(16*lr(e.charCodeAt(5))+lr(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(16*lr(e.charCodeAt(1))+lr(e.charCodeAt(2)))/255,green:(16*lr(e.charCodeAt(3))+lr(e.charCodeAt(4)))/255,blue:(16*lr(e.charCodeAt(5))+lr(e.charCodeAt(6)))/255,alpha:(16*lr(e.charCodeAt(7))+lr(e.charCodeAt(8)))/255}}}var hr=class{constructor(e){this.schemaService=e}findDocumentSymbols(e,t,n={resultLimit:Number.MAX_VALUE}){const r=t.root;if(!r)return[];let i=n.resultLimit||Number.MAX_VALUE;const s=e.uri;if(("vscode://defaultsettings/keybindings.json"===s||cn(s.toLowerCase(),"/user/keybindings.json"))&&"array"===r.type){const t=[];for(const o of r.items)if("object"===o.type)for(const r of o.properties)if("key"===r.keyNode.value&&r.valueNode){const a=F.create(e.uri,ur(e,o));if(t.push({name:dr(r.valueNode),kind:tt.Function,location:a}),i--,i<=0)return n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(s),t}return t}const o=[{node:r,containerName:""}];let a=0,l=!1;const c=[],h=(t,n)=>{"array"===t.type?t.items.forEach((e=>{e&&o.push({node:e,containerName:n})})):"object"===t.type&&t.properties.forEach((t=>{const r=t.valueNode;if(r)if(i>0){i--;const s=F.create(e.uri,ur(e,t)),a=n?n+"."+t.keyNode.value:t.keyNode.value;c.push({name:this.getKeyLabel(t),kind:this.getSymbolKind(r.type),location:s,containerName:n}),o.push({node:r,containerName:a})}else l=!0}))};for(;a<o.length;){const e=o[a++];h(e.node,e.containerName)}return l&&n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(s),c}findDocumentSymbols2(e,t,n={resultLimit:Number.MAX_VALUE}){const r=t.root;if(!r)return[];let i=n.resultLimit||Number.MAX_VALUE;const s=e.uri;if(("vscode://defaultsettings/keybindings.json"===s||cn(s.toLowerCase(),"/user/keybindings.json"))&&"array"===r.type){const t=[];for(const o of r.items)if("object"===o.type)for(const r of o.properties)if("key"===r.keyNode.value&&r.valueNode){const a=ur(e,o),l=ur(e,r.keyNode);if(t.push({name:dr(r.valueNode),kind:tt.Function,range:a,selectionRange:l}),i--,i<=0)return n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(s),t}return t}const o=[],a=[{node:r,result:o}];let l=0,c=!1;const h=(t,n)=>{"array"===t.type?t.items.forEach(((t,r)=>{if(t)if(i>0){i--;const s=ur(e,t),o=s,l={name:String(r),kind:this.getSymbolKind(t.type),range:s,selectionRange:o,children:[]};n.push(l),a.push({result:l.children,node:t})}else c=!0})):"object"===t.type&&t.properties.forEach((t=>{const r=t.valueNode;if(r)if(i>0){i--;const s=ur(e,t),o=ur(e,t.keyNode),l=[],c={name:this.getKeyLabel(t),kind:this.getSymbolKind(r.type),range:s,selectionRange:o,children:l,detail:this.getDetail(r)};n.push(c),a.push({result:l,node:r})}else c=!0}))};for(;l<a.length;){const e=a[l++];h(e.node,e.result)}return c&&n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(s),o}getSymbolKind(e){switch(e){case"object":return tt.Module;case"string":return tt.String;case"number":return tt.Number;case"array":return tt.Array;case"boolean":return tt.Boolean;default:return tt.Variable}}getKeyLabel(e){let t=e.keyNode.value;return t&&(t=t.replace(/[\n]/g,"\u21b5")),t&&t.trim()?t:`"${t}"`}getDetail(e){if(e)return"boolean"===e.type||"number"===e.type||"null"===e.type||"string"===e.type?String(e.value):"array"===e.type?e.children.length?void 0:"[]":"object"===e.type?e.children.length?void 0:"{}":void 0}findDocumentColors(e,t,n){return this.schemaService.getSchemaForResource(e.uri,t).then((r=>{const i=[];if(r){let s=n&&"number"===typeof n.resultLimit?n.resultLimit:Number.MAX_VALUE;const o=t.getMatchingSchemas(r.schema),a={};for(const t of o)if(!t.inverted&&t.schema&&("color"===t.schema.format||"color-hex"===t.schema.format)&&t.node&&"string"===t.node.type){const r=String(t.node.offset);if(!a[r]){const o=cr(Hn(t.node));if(o){const n=ur(e,t.node);i.push({color:o,range:n})}if(a[r]=!0,s--,s<=0)return n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(e.uri),i}}}return i}))}getColorPresentations(e,t,n,r){const i=[],s=Math.round(255*n.red),o=Math.round(255*n.green),a=Math.round(255*n.blue);function l(e){const t=e.toString(16);return 2!==t.length?"0"+t:t}let c;return c=1===n.alpha?`#${l(s)}${l(o)}${l(a)}`:`#${l(s)}${l(o)}${l(a)}${l(Math.round(255*n.alpha))}`,i.push({label:c,textEdit:le.replace(r,JSON.stringify(c))}),i}};function ur(e,t){return D.create(e.positionAt(t.offset),e.positionAt(t.offset+t.length))}function dr(e){return Hn(e)||xn("<empty>")}var gr,fr={schemaAssociations:[],schemas:{"http://json-schema.org/draft-04/schema#":{$schema:"http://json-schema.org/draft-04/schema#",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{type:"string",enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},type:"object",properties:{id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minLength:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minItems:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},uniqueItems:{type:"boolean",default:!1},maxProperties:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minProperties:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},required:{allOf:[{$ref:"#/definitions/stringArray"}]},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{anyOf:[{type:"string",enum:["date-time","uri","email","hostname","ipv4","ipv6","regex"]},{type:"string"}]},allOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},anyOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},oneOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},not:{allOf:[{$ref:"#"}]}},dependencies:{exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},default:{}},"http://json-schema.org/draft-07/schema#":{definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}}},mr={id:xn("A unique identifier for the schema."),$schema:xn("The schema to verify this document against."),title:xn("A descriptive title of the element."),description:xn("A long description of the element. Used in hover menus and suggestions."),default:xn("A default value. Used by suggestions."),multipleOf:xn("A number that should cleanly divide the current value (i.e. have no remainder)."),maximum:xn("The maximum numerical value, inclusive by default."),exclusiveMaximum:xn("Makes the maximum property exclusive."),minimum:xn("The minimum numerical value, inclusive by default."),exclusiveMinimum:xn("Makes the minimum property exclusive."),maxLength:xn("The maximum length of a string."),minLength:xn("The minimum length of a string."),pattern:xn("A regular expression to match the string against. It is not implicitly anchored."),additionalItems:xn("For arrays, only when items is set as an array. If it is a schema, then this schema validates items after the ones specified by the items array. If it is false, then additional items will cause validation to fail."),items:xn("For arrays. Can either be a schema to validate every element against or an array of schemas to validate each item against in order (the first schema will validate the first element, the second schema will validate the second element, and so on."),maxItems:xn("The maximum number of items that can be inside an array. Inclusive."),minItems:xn("The minimum number of items that can be inside an array. Inclusive."),uniqueItems:xn("If all of the items in the array must be unique. Defaults to false."),maxProperties:xn("The maximum number of properties an object can have. Inclusive."),minProperties:xn("The minimum number of properties an object can have. Inclusive."),required:xn("An array of strings that lists the names of all properties required on this object."),additionalProperties:xn("Either a schema or a boolean. If a schema, then used to validate all properties not matched by 'properties' or 'patternProperties'. If false, then any properties not matched by either will cause this schema to fail."),definitions:xn("Not used for validation. Place subschemas here that you wish to reference inline with $ref."),properties:xn("A map of property names to schemas for each property."),patternProperties:xn("A map of regular expressions on property names to schemas for matching properties."),dependencies:xn("A map of property names to either an array of property names or a schema. An array of property names means the property named in the key depends on the properties in the array being present in the object in order to be valid. If the value is a schema, then the schema is only applied to the object if the property in the key exists on the object."),enum:xn("The set of literal values that are valid."),type:xn("Either a string of one of the basic schema types (number, integer, null, array, object, boolean, string) or an array of strings specifying a subset of those types."),format:xn("Describes the format expected for the value."),allOf:xn("An array of schemas, all of which must match."),anyOf:xn("An array of schemas, where at least one must match."),oneOf:xn("An array of schemas, exactly one of which must match."),not:xn("A schema which must not match."),$id:xn("A unique identifier for the schema."),$ref:xn("Reference a definition hosted on any location."),$comment:xn("Comments from schema authors to readers or maintainers of the schema."),readOnly:xn("Indicates that the value of the instance is managed exclusively by the owning authority."),examples:xn("Sample JSON values associated with a particular schema, for the purpose of illustrating usage."),contains:xn('An array instance is valid against "contains" if at least one of its elements is valid against the given schema.'),propertyNames:xn("If the instance is an object, this keyword validates if every property name in the instance validates against the provided schema."),const:xn("An instance validates successfully against this keyword if its value is equal to the value of the keyword."),contentMediaType:xn("Describes the media type of a string property."),contentEncoding:xn("Describes the content encoding of a string property."),if:xn('The validation outcome of the "if" subschema controls which of the "then" or "else" keywords are evaluated.'),then:xn('The "if" subschema is used for validation when the "if" subschema succeeds.'),else:xn('The "else" subschema is used for validation when the "if" subschema fails.')};for(const n in fr.schemas){const e=fr.schemas[n];for(const t in e.properties){let n=e.properties[t];"boolean"===typeof n&&(n=e.properties[t]={});const r=mr[t];r&&(n.description=r)}}(()=>{var e={470:e=>{function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",i=0,s=-1,o=0,a=0;a<=e.length;++a){if(a<e.length)n=e.charCodeAt(a);else{if(47===n)break;n=47}if(47===n){if(s===a-1||1===o);else if(s!==a-1&&2===o){if(r.length<2||2!==i||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(r.length>2){var l=r.lastIndexOf("/");if(l!==r.length-1){-1===l?(r="",i=0):i=(r=r.slice(0,l)).length-1-r.lastIndexOf("/"),s=a,o=0;continue}}else if(2===r.length||1===r.length){r="",i=0,s=a,o=0;continue}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(s+1,a):r=e.slice(s+1,a),i=a-s-1;s=a,o=0}else 46===n&&-1!==o?++o:o=-1}return r}var r={resolve:function(){for(var e,r="",i=!1,s=arguments.length-1;s>=-1&&!i;s--){var o;s>=0?o=arguments[s]:(void 0===e&&(e=process.cwd()),o=e),t(o),0!==o.length&&(r=o+"/"+r,i=47===o.charCodeAt(0))}return r=n(r,!i),i?r.length>0?"/"+r:"/":r.length>0?r:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!r)).length||r||(e="."),e.length>0&&i&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n<arguments.length;++n){var i=arguments[n];t(i),i.length>0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n)return"";if((e=r.resolve(e))===(n=r.resolve(n)))return"";for(var i=1;i<e.length&&47===e.charCodeAt(i);++i);for(var s=e.length,o=s-i,a=1;a<n.length&&47===n.charCodeAt(a);++a);for(var l=n.length-a,c=o<l?o:l,h=-1,u=0;u<=c;++u){if(u===c){if(l>c){if(47===n.charCodeAt(a+u))return n.slice(a+u+1);if(0===u)return n.slice(a+u)}else o>c&&(47===e.charCodeAt(i+u)?h=u:0===u&&(h=0));break}var d=e.charCodeAt(i+u);if(d!==n.charCodeAt(a+u))break;47===d&&(h=u)}var g="";for(u=i+h+1;u<=s;++u)u!==s&&47!==e.charCodeAt(u)||(0===g.length?g+="..":g+="/..");return g.length>0?g+n.slice(a+h):(a+=h,47===n.charCodeAt(a)&&++a,n.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,i=-1,s=!0,o=e.length-1;o>=1;--o)if(47===(n=e.charCodeAt(o))){if(!s){i=o;break}}else s=!1;return-1===i?r?"/":".":r&&1===i?"//":e.slice(0,i)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');t(e);var r,i=0,s=-1,o=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var a=n.length-1,l=-1;for(r=e.length-1;r>=0;--r){var c=e.charCodeAt(r);if(47===c){if(!o){i=r+1;break}}else-1===l&&(o=!1,l=r+1),a>=0&&(c===n.charCodeAt(a)?-1==--a&&(s=r):(a=-1,s=l))}return i===s?s=l:-1===s&&(s=e.length),e.slice(i,s)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!o){i=r+1;break}}else-1===s&&(o=!1,s=r+1);return-1===s?"":e.slice(i,s)},extname:function(e){t(e);for(var n=-1,r=0,i=-1,s=!0,o=0,a=e.length-1;a>=0;--a){var l=e.charCodeAt(a);if(47!==l)-1===i&&(s=!1,i=a+1),46===l?-1===n?n=a:1!==o&&(o=1):-1!==n&&(o=-1);else if(!s){r=a+1;break}}return-1===n||-1===i||0===o||1===o&&n===i-1&&n===r+1?"":e.slice(n,i)},format:function(e){if(null===e||"object"!=typeof e)throw new 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(0===e.length)return n;var r,i=e.charCodeAt(0),s=47===i;s?(n.root="/",r=1):r=0;for(var o=-1,a=0,l=-1,c=!0,h=e.length-1,u=0;h>=r;--h)if(47!==(i=e.charCodeAt(h)))-1===l&&(c=!1,l=h+1),46===i?-1===o?o=h:1!==u&&(u=1):-1!==o&&(u=-1);else if(!c){a=h+1;break}return-1===o||-1===l||0===u||1===u&&o===l-1&&o===a+1?-1!==l&&(n.base=n.name=0===a&&s?e.slice(1,l):e.slice(a,l)):(0===a&&s?(n.name=e.slice(1,o),n.base=e.slice(1,l)):(n.name=e.slice(a,o),n.base=e.slice(a,l)),n.ext=e.slice(o,l)),a>0?n.dir=e.slice(0,a-1):s&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,e.exports=r}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var s=t[r]={exports:{}};return e[r](s,s.exports,n),s.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=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{let e;if(n.r(r),n.d(r,{URI:()=>h,Utils:()=>w}),"object"==typeof process)e="win32"===process.platform;else if("object"==typeof navigator){let t=navigator.userAgent;e=t.indexOf("Windows")>=0}const t=/^\w[\w\d+.-]*$/,i=/^\//,s=/^\/\//;function o(e,n){if(!e.scheme&&n)throw new 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 new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!i.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(s.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}const a="",l="/",c=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class h{static isUri(e){return e instanceof h||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString}scheme;authority;path;query;fragment;constructor(e,t,n,r,i,s=!1){"object"==typeof e?(this.scheme=e.scheme||a,this.authority=e.authority||a,this.path=e.path||a,this.query=e.query||a,this.fragment=e.fragment||a):(this.scheme=function(e,t){return e||t?e:"file"}(e,s),this.authority=t||a,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==l&&(t=l+t):t=l}return t}(this.scheme,n||a),this.query=r||a,this.fragment=i||a,o(this,s))}get fsPath(){return p(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:i,fragment:s}=e;return void 0===t?t=this.scheme:null===t&&(t=a),void 0===n?n=this.authority:null===n&&(n=a),void 0===r?r=this.path:null===r&&(r=a),void 0===i?i=this.query:null===i&&(i=a),void 0===s?s=this.fragment:null===s&&(s=a),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&s===this.fragment?this:new d(t,n,r,i,s)}static parse(e,t=!1){const n=c.exec(e);return n?new d(n[2]||a,v(n[4]||a),v(n[5]||a),v(n[7]||a),v(n[9]||a),t):new d(a,a,a,a,a)}static file(t){let n=a;if(e&&(t=t.replace(/\\/g,l)),t[0]===l&&t[1]===l){const e=t.indexOf(l,2);-1===e?(n=t.substring(2),t=l):(n=t.substring(2,e),t=t.substring(e)||l)}return new d("file",n,t,a,a)}static from(e){const t=new d(e.scheme,e.authority,e.path,e.query,e.fragment);return o(t,!0),t}toString(e=!1){return b(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof h)return e;{const t=new d(e);return t._formatted=e.external,t._fsPath=e._sep===u?e.fsPath:null,t}}return e}}const u=e?1:void 0;class d extends h{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=p(this,!1)),this._fsPath}toString(e=!1){return e?b(this,!0):(this._formatted||(this._formatted=b(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=u),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}}const g={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 s=0;s<e.length;s++){const o=e.charCodeAt(s);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o||n&&91===o||n&&93===o||n&&58===o)-1!==i&&(r+=encodeURIComponent(e.substring(i,s)),i=-1),void 0!==r&&(r+=e.charAt(s));else{void 0===r&&(r=e.substr(0,s));const t=g[o];void 0!==t?(-1!==i&&(r+=encodeURIComponent(e.substring(i,s)),i=-1),r+=t):-1===i&&(i=s)}}return-1!==i&&(r+=encodeURIComponent(e.substring(i))),void 0!==r?r:e}function m(e){let t;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);35===r||63===r?(void 0===t&&(t=e.substr(0,n)),t+=g[r]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function p(t,n){let r;return r=t.authority&&t.path.length>1&&"file"===t.scheme?`//${t.authority}${t.path}`:47===t.path.charCodeAt(0)&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&58===t.path.charCodeAt(2)?n?t.path.substr(1):t.path[1].toLowerCase()+t.path.substr(2):t.path,e&&(r=r.replace(/\//g,"\\")),r}function b(e,t){const n=t?m:f;let r="",{scheme:i,authority:s,path:o,query:a,fragment:c}=e;if(i&&(r+=i,r+=":"),(s||"file"===i)&&(r+=l,r+=l),s){let e=s.indexOf("@");if(-1!==e){const t=s.substr(0,e);s=s.substr(e+1),e=t.lastIndexOf(":"),-1===e?r+=n(t,!1,!1):(r+=n(t.substr(0,e),!1,!1),r+=":",r+=n(t.substr(e+1),!1,!0)),r+="@"}s=s.toLowerCase(),e=s.lastIndexOf(":"),-1===e?r+=n(s,!1,!0):(r+=n(s.substr(0,e),!1,!0),r+=s.substr(e))}if(o){if(o.length>=3&&47===o.charCodeAt(0)&&58===o.charCodeAt(2)){const e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&58===o.charCodeAt(1)){const e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}r+=n(o,!0,!1)}return a&&(r+="?",r+=n(a,!1,!1)),c&&(r+="#",r+=t?c:f(c,!1,!1)),r}function _(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+_(e.substr(3)):e}}const k=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function v(e){return e.match(k)?e.replace(k,(e=>_(e))):e}var C=n(470);const y=C.posix||C,L="/";var w,S;(S=w||(w={})).joinPath=function(e,...t){return e.with({path:y.join(e.path,...t)})},S.resolvePath=function(e,...t){let n=e.path,r=!1;n[0]!==L&&(n=L+n,r=!0);let i=y.resolve(n,...t);return r&&i[0]===L&&!e.authority&&(i=i.substring(1)),e.with({path:i})},S.dirname=function(e){if(0===e.path.length||e.path===L)return e;let t=y.dirname(e.path);return 1===t.length&&46===t.charCodeAt(0)&&(t=""),e.with({path:t})},S.basename=function(e){return y.basename(e.path)},S.extname=function(e){return y.extname(e.path)}})(),gr=r})();var{URI:pr,Utils:br}=gr;function _r(e,t){if("string"!==typeof e)throw new TypeError("Expected a string");const n=String(e);let r="";const i=!!t&&!!t.extended,s=!!t&&!!t.globstar;let o=!1;const a=t&&"string"===typeof t.flags?t.flags:"";let l;for(let c=0,h=n.length;c<h;c++)switch(l=n[c],l){case"/":case"$":case"^":case"+":case".":case"(":case")":case"=":case"!":case"|":r+="\\"+l;break;case"?":if(i){r+=".";break}case"[":case"]":if(i){r+=l;break}case"{":if(i){o=!0,r+="(";break}case"}":if(i){o=!1,r+=")";break}case",":if(o){r+="|";break}r+="\\"+l;break;case"*":const e=n[c-1];let t=1;for(;"*"===n[c+1];)t++,c++;const a=n[c+1];if(s){t>1&&("/"===e||void 0===e||"{"===e||","===e)&&("/"===a||void 0===a||","===a||"}"===a)?("/"===a?c++:"/"===e&&r.endsWith("\\/")&&(r=r.substr(0,r.length-2)),r+="((?:[^/]*(?:/|$))*)"):r+="([^/]*)"}else r+=".*";break;default:r+=l}return a&&~a.indexOf("g")||(r="^"+r+"$"),new RegExp(r,a)}var kr,vr,Cr=class{constructor(e,t,n){this.folderUri=t,this.uris=n,this.globWrappers=[];try{for(let t of e){const e="!"!==t[0];e||(t=t.substring(1)),t.length>0&&("/"===t[0]&&(t=t.substring(1)),this.globWrappers.push({regexp:_r("**/"+t,{extended:!0,globstar:!0}),include:e}))}t&&((t=Nr(t)).endsWith("/")||(t+="/"),this.folderUri=t)}catch(r){this.globWrappers.length=0,this.uris=[]}}matchesPattern(e){if(this.folderUri&&!e.startsWith(this.folderUri))return!1;let t=!1;for(const{regexp:n,include:r}of this.globWrappers)n.test(e)&&(t=r);return t}getURIs(){return this.uris}},yr=class{constructor(e,t,n){this.service=e,this.uri=t,this.dependencies=new Set,this.anchors=void 0,n&&(this.unresolvedSchema=this.service.promise.resolve(new Lr(n)))}getUnresolvedSchema(){return this.unresolvedSchema||(this.unresolvedSchema=this.service.loadSchema(this.uri)),this.unresolvedSchema}getResolvedSchema(){return this.resolvedSchema||(this.resolvedSchema=this.getUnresolvedSchema().then((e=>this.service.resolveSchemaContent(e,this)))),this.resolvedSchema}clearSchema(){const e=!!this.unresolvedSchema;return this.resolvedSchema=void 0,this.unresolvedSchema=void 0,this.dependencies.clear(),this.anchors=void 0,e}},Lr=class{constructor(e,t=[]){this.schema=e,this.errors=t}},wr=class{constructor(e,t=[],n=[],r){this.schema=e,this.errors=t,this.warnings=n,this.schemaDraft=r}getSection(e){const t=this.getSectionRecursive(e,this.schema);if(t)return zn(t)}getSectionRecursive(e,t){if(!t||"boolean"===typeof t||0===e.length)return t;const n=e.shift();if(t.properties&&(t.properties[n],1))return this.getSectionRecursive(e,t.properties[n]);if(t.patternProperties)for(const r of Object.keys(t.patternProperties)){const i=hn(r);if(i?.test(n))return this.getSectionRecursive(e,t.patternProperties[r])}else{if("object"===typeof t.additionalProperties)return this.getSectionRecursive(e,t.additionalProperties);if(n.match("[0-9]+"))if(Array.isArray(t.items)){const r=parseInt(n,10);if(!isNaN(r)&&t.items[r])return this.getSectionRecursive(e,t.items[r])}else if(t.items)return this.getSectionRecursive(e,t.items)}}},Sr=class{constructor(e,t,n){this.contextService=t,this.requestService=e,this.promiseConstructor=n||Promise,this.callOnDispose=[],this.contributionSchemas={},this.contributionAssociations=[],this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={}}getRegisteredSchemaIds(e){return Object.keys(this.registeredSchemasIds).filter((t=>{const n=pr.parse(t).scheme;return"schemaservice"!==n&&(!e||e(n))}))}get promise(){return this.promiseConstructor}dispose(){for(;this.callOnDispose.length>0;)this.callOnDispose.pop()()}onResourceChange(e){this.cachedSchemaForResource=void 0;let t=!1;const n=[e=Er(e)],r=Object.keys(this.schemasById).map((e=>this.schemasById[e]));for(;n.length;){const e=n.pop();for(let i=0;i<r.length;i++){const s=r[i];s&&(s.uri===e||s.dependencies.has(e))&&(s.uri!==e&&n.push(s.uri),s.clearSchema()&&(t=!0),r[i]=void 0)}}return t}setSchemaContributions(e){if(e.schemas){const t=e.schemas;for(const e in t){const n=Er(e);this.contributionSchemas[n]=this.addSchemaHandle(n,t[e])}}if(Array.isArray(e.schemaAssociations)){const t=e.schemaAssociations;for(let e of t){const t=e.uris.map(Er),n=this.addFilePatternAssociation(e.pattern,e.folderUri,t);this.contributionAssociations.push(n)}}}addSchemaHandle(e,t){const n=new yr(this,e,t);return this.schemasById[e]=n,n}getOrAddSchemaHandle(e,t){return this.schemasById[e]||this.addSchemaHandle(e,t)}addFilePatternAssociation(e,t,n){const r=new Cr(e,t,n);return this.filePatternAssociations.push(r),r}registerExternalSchema(e){const t=Er(e.uri);return this.registeredSchemasIds[t]=!0,this.cachedSchemaForResource=void 0,e.fileMatch&&e.fileMatch.length&&this.addFilePatternAssociation(e.fileMatch,e.folderUri,[t]),e.schema?this.addSchemaHandle(t,e.schema):this.getOrAddSchemaHandle(t)}clearExternalSchemas(){this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={},this.cachedSchemaForResource=void 0;for(const e in this.contributionSchemas)this.schemasById[e]=this.contributionSchemas[e],this.registeredSchemasIds[e]=!0;for(const e of this.contributionAssociations)this.filePatternAssociations.push(e)}getResolvedSchema(e){const t=Er(e),n=this.schemasById[t];return n?n.getResolvedSchema():this.promise.resolve(void 0)}loadSchema(e){if(!this.requestService){const t=xn("Unable to load schema from '{0}'. No schema request service available",Tr(e));return this.promise.resolve(new Lr({},[t]))}return e.startsWith("http://json-schema.org/")&&(e="https"+e.substring(4)),this.requestService(e).then((t=>{if(!t){const t=xn("Unable to load schema from '{0}': No content.",Tr(e));return new Lr({},[t])}const n=[];65279===t.charCodeAt(0)&&(n.push(xn("Problem reading content from '{0}': UTF-8 with BOM detected, only UTF 8 is allowed.",Tr(e))),t=t.trimStart());let r={};const i=[];return r=Yt(t,i),i.length&&n.push(xn("Unable to parse content from '{0}': Parse error at offset {1}.",Tr(e),i[0].offset)),new Lr(r,n)}),(t=>{let n=t.toString();const r=t.toString().split("Error: ");return r.length>1&&(n=r[1]),cn(n,".")&&(n=n.substr(0,n.length-1)),new Lr({},[xn("Unable to load schema from '{0}': {1}.",Tr(e),n)])}))}resolveSchemaContent(e,t){const n=e.errors.slice(0),r=e.schema;let i=r.$schema?Er(r.$schema):void 0;if("http://json-schema.org/draft-03/schema"===i)return this.promise.resolve(new wr({},[xn("Draft-03 schemas are not supported.")],[],i));let s=new Set;const o=this.contextService,a=(e,t,r,i)=>{let s;var o,a,l;void 0===i||0===i.length?s=t:"/"===i.charAt(0)?s=((e,t)=>{t=decodeURIComponent(t);let n=e;return"/"===t[0]&&(t=t.substring(1)),t.split("/").some((e=>(e=e.replace(/~1/g,"/").replace(/~0/g,"~"),n=n[e],!n))),n})(t,i):(o=t,l=i,(a=r).anchors||(a.anchors=h(o)),s=a.anchors.get(l)),s?((e,t)=>{for(const n in t)t.hasOwnProperty(n)&&"id"!==n&&"$id"!==n&&(e[n]=t[n])})(e,s):n.push(xn("$ref '{0}' in '{1}' can not be resolved.",i||"",r.uri))},l=(e,t,r,i)=>{o&&!/^[A-Za-z][A-Za-z0-9+\-.+]*:\/\/.*/.test(t)&&(t=o.resolveRelativePath(t,i.uri)),t=Er(t);const s=this.getOrAddSchemaHandle(t);return s.getUnresolvedSchema().then((o=>{if(i.dependencies.add(t),o.errors.length){const e=r?t+"#"+r:t;n.push(xn("Problems loading reference '{0}': {1}",e,o.errors[0]))}return a(e,o.schema,s,r),c(e,o.schema,s)}))},c=(e,t,n)=>{const r=[];return this.traverseNodes(e,(e=>{const i=new Set;for(;e.$ref;){const s=e.$ref,o=s.split("#",2);if(delete e.$ref,o[0].length>0)return void r.push(l(e,o[0],o[1],n));if(!i.has(s)){const r=o[1];a(e,t,n,r),i.add(s)}}e.$recursiveRef&&s.add("$recursiveRef"),e.$dynamicRef&&s.add("$dynamicRef")})),this.promise.all(r)},h=e=>{const t=new Map;return this.traverseNodes(e,(e=>{const r=e.$id||e.id,i=an(r)&&"#"===r.charAt(0)?r.substring(1):e.$anchor;i&&(t.has(i)?n.push(xn("Duplicate anchor declaration: '{0}'",i)):t.set(i,e)),e.$recursiveAnchor&&s.add("$recursiveAnchor"),e.$dynamicAnchor&&s.add("$dynamicAnchor")})),t};return c(r,r,t).then((e=>{let t=[];return s.size&&t.push(xn("The schema uses meta-schema features ({0}) that are not yet supported by the validator.",Array.from(s.keys()).join(", "))),new wr(r,n,t,i)}))}traverseNodes(e,t){if(!e||"object"!==typeof e)return Promise.resolve(null);const n=new Set,r=(...e)=>{for(const t of e)ln(t)&&a.push(t)},i=(...e)=>{for(const t of e)if(ln(t))for(const e in t){const n=t[e];ln(n)&&a.push(n)}},s=(...e)=>{for(const t of e)if(Array.isArray(t))for(const e of t)ln(e)&&a.push(e)},o=e=>{if(Array.isArray(e))for(const t of e)ln(t)&&a.push(t);else ln(e)&&a.push(e)},a=[e];let l=a.pop();for(;l;)n.has(l)||(n.add(l),t(l),r(l.additionalItems,l.additionalProperties,l.not,l.contains,l.propertyNames,l.if,l.then,l.else,l.unevaluatedItems,l.unevaluatedProperties),i(l.definitions,l.$defs,l.properties,l.patternProperties,l.dependencies,l.dependentSchemas),s(l.anyOf,l.allOf,l.oneOf,l.prefixItems),o(l.items)),l=a.pop()}getSchemaFromProperty(e,t){if("object"===t.root?.type)for(const n of t.root.properties)if("$schema"===n.keyNode.value&&"string"===n.valueNode?.type){let t=n.valueNode.value;return this.contextService&&!/^\w[\w\d+.-]*:/.test(t)&&(t=this.contextService.resolveRelativePath(t,e)),t}}getAssociatedSchemas(e){const t=Object.create(null),n=[],r=Nr(e);for(const i of this.filePatternAssociations)if(i.matchesPattern(r))for(const e of i.getURIs())t[e]||(n.push(e),t[e]=!0);return n}getSchemaURIsForResource(e,t){let n=t&&this.getSchemaFromProperty(e,t);return n?[n]:this.getAssociatedSchemas(e)}getSchemaForResource(e,t){if(t){let n=this.getSchemaFromProperty(e,t);if(n){const e=Er(n);return this.getOrAddSchemaHandle(e).getResolvedSchema()}}if(this.cachedSchemaForResource&&this.cachedSchemaForResource.resource===e)return this.cachedSchemaForResource.resolvedSchema;const n=this.getAssociatedSchemas(e),r=n.length>0?this.createCombinedSchema(e,n).getResolvedSchema():this.promise.resolve(void 0);return this.cachedSchemaForResource={resource:e,resolvedSchema:r},r}createCombinedSchema(e,t){if(1===t.length)return this.getOrAddSchemaHandle(t[0]);{const n="schemaservice://combinedSchema/"+encodeURIComponent(e),r={allOf:t.map((e=>({$ref:e})))};return this.addSchemaHandle(n,r)}}getMatchingSchemas(e,t,n){if(n){const e=n.id||"schemaservice://untitled/matchingSchemas/"+xr++;return this.addSchemaHandle(e,n).getResolvedSchema().then((e=>t.getMatchingSchemas(e.schema).filter((e=>!e.inverted))))}return this.getSchemaForResource(e.uri,t).then((e=>e?t.getMatchingSchemas(e.schema).filter((e=>!e.inverted)):[]))}},xr=0;function Er(e){try{return pr.parse(e).toString(!0)}catch(t){return e}}function Nr(e){try{return pr.parse(e).with({fragment:null,query:null}).toString(!0)}catch(t){return e}}function Tr(e){try{const t=pr.parse(e);if("file"===t.scheme)return t.fsPath}catch(t){}return e}function Ar(e,t){const n=[],r=[],i=[];let s=-1;const o=w(e.getText(),!1);let a=o.scan();function l(e){n.push(e),r.push(i.length)}for(;17!==a;){switch(a){case 1:case 3:{const t=e.positionAt(o.getTokenOffset()).line,n={startLine:t,endLine:t,kind:1===a?"object":"array"};i.push(n);break}case 2:case 4:{const t=2===a?"object":"array";if(i.length>0&&i[i.length-1].kind===t){const t=i.pop(),n=e.positionAt(o.getTokenOffset()).line;t&&n>t.startLine+1&&s!==t.startLine&&(t.endLine=n-1,l(t),s=t.startLine)}break}case 13:{const t=e.positionAt(o.getTokenOffset()).line,n=e.positionAt(o.getTokenOffset()+o.getTokenLength()).line;1===o.getTokenError()&&t+1<e.lineCount?o.setPosition(e.offsetAt(M.create(t+1,0))):t<n&&(l({startLine:t,endLine:n,kind:K.Comment}),s=t);break}case 12:{const t=e.getText().substr(o.getTokenOffset(),o.getTokenLength()).match(/^\/\/\s*#(region\b)|(endregion\b)/);if(t){const n=e.positionAt(o.getTokenOffset()).line;if(t[1]){const e={startLine:n,endLine:n,kind:K.Region};i.push(e)}else{let e=i.length-1;for(;e>=0&&i[e].kind!==K.Region;)e--;if(e>=0){const t=i[e];i.length=e,n>t.startLine&&s!==t.startLine&&(t.endLine=n,l(t),s=t.startLine)}}}break}}a=o.scan()}const c=t&&t.rangeLimit;if("number"!==typeof c||n.length<=c)return n;t&&t.onRangeLimitExceeded&&t.onRangeLimitExceeded(e.uri);const h=[];for(let f of r)f<30&&(h[f]=(h[f]||0)+1);let u=0,d=0;for(let f=0;f<h.length;f++){const e=h[f];if(e){if(e+u>c){d=f;break}u+=e}}const g=[];for(let f=0;f<n.length;f++){const e=r[f];"number"===typeof e&&(e<d||e===d&&u++<c)&&g.push(n[f])}return g}function Ir(e,t,n){function r(t,n){return D.create(e.positionAt(t),e.positionAt(n))}const i=w(e.getText(),!0);function s(e,t){return i.setPosition(e),i.scan()===t?i.getTokenOffset()+i.getTokenLength():-1}return t.map((function(t){let i=e.offsetAt(t),o=n.getNodeFromOffset(i,!0);const a=[];for(;o;){switch(o.type){case"string":case"object":case"array":const e=o.offset+1,t=o.offset+o.length-1;e<t&&i>=e&&i<=t&&a.push(r(e,t)),a.push(r(o.offset,o.offset+o.length));break;case"number":case"boolean":case"null":case"property":a.push(r(o.offset,o.offset+o.length))}if("property"===o.type||o.parent&&"array"===o.parent.type){const e=s(o.offset+o.length,5);-1!==e&&a.push(r(o.offset,e))}o=o.parent}let l;for(let e=a.length-1;e>=0;e--)l=yt.create(a[e],l);return l||(l=yt.create(D.create(t,t))),l}))}function Or(e,t,n){let r;if(n){const t=e.offsetAt(n.start);r={offset:t,length:e.offsetAt(n.end)-t}}const i={tabSize:t?t.tabSize:4,insertSpaces:!0===t?.insertSpaces,insertFinalNewline:!0===t?.insertFinalNewline,eol:"\n",keepLines:!0===t?.keepLines};return function(e,t,n){return b(e,t,n)}(e.getText(),r,i).map((t=>le.replace(D.create(e.positionAt(t.offset),e.positionAt(t.offset+t.length)),t.content)))}(vr=kr||(kr={}))[vr.Object=0]="Object",vr[vr.Array=1]="Array";var Mr=class{constructor(e,t){this.propertyName=e??"",this.beginningLineNumber=t,this.childrenProperties=[],this.lastProperty=!1,this.noKeyName=!1}addChildProperty(e){if(e.parent=this,this.childrenProperties.length>0){let t=0;t=e.noKeyName?this.childrenProperties.length:function(e,t,n){const r=t.propertyName.toLowerCase(),i=e[0].propertyName.toLowerCase(),s=e[e.length-1].propertyName.toLowerCase();if(r<i)return 0;if(r>s)return e.length;let o=0,a=e.length-1;for(;o<=a;){let r=a+o>>1,i=n(t,e[r]);if(i>0)o=r+1;else{if(!(i<0))return r;a=r-1}}return-o-1}(this.childrenProperties,e,Rr),t<0&&(t=-1*t-1),this.childrenProperties.splice(t,0,e)}else this.childrenProperties.push(e);return e}};function Rr(e,t){const n=e.propertyName.toLowerCase(),r=t.propertyName.toLowerCase();return n<r?-1:n>r?1:0}function Dr(e,t){const n={...t,keepLines:!1},r=fn.applyEdits(e,Or(e,n,void 0)),i=fn.create("test://test.json","json",0,r),s=function(e,t){if(0===t.childrenProperties.length)return e;const n=fn.create("test://test.json","json",0,e.getText()),r=[];Br(r,t,t.beginningLineNumber);for(;r.length>0;){const t=r.shift(),i=t.propertyTreeArray;let s=t.beginningLineNumber;for(let o=0;o<i.length;o++){const t=i[o],a=D.create(M.create(t.beginningLineNumber,0),M.create(t.endLineNumber+1,0)),l=e.getText(a),c=fn.create("test://test.json","json",0,l);if(!0===t.lastProperty&&o!==i.length-1){const e=t.lineWhereToAddComma-t.beginningLineNumber,n=t.indexWhereToAddComa,r={range:D.create(M.create(e,n),M.create(e,n)),text:","};fn.update(c,[r],1)}else if(!1===t.lastProperty&&o===i.length-1){const e=t.commaIndex,n=t.commaLine-t.beginningLineNumber,r={range:D.create(M.create(n,e),M.create(n,e+1)),text:""};fn.update(c,[r],1)}const h=t.endLineNumber-t.beginningLineNumber+1,u={range:D.create(M.create(s,0),M.create(s+h,0)),text:c.getText()};fn.update(n,[u],1),Br(r,t,s),s+=h}}return n}(i,function(e){const t=e.getText(),n=w(t,!1);let r,i,s,o=new Mr,a=o,l=o,c=o,h=0,u=0,d=-1,g=-1,f=0,m=0,p=[],b=!1,_=!1;for(;17!==(r=n.scan());){if(!0===b&&14!==r&&15!==r&&12!==r&&13!==r&&void 0===l.endLineNumber){let e=n.getTokenStartLine();2===s||4===s?c.endLineNumber=e-1:l.endLineNumber=e-1,f=e,b=!1}if(!0===_&&14!==r&&15!==r&&12!==r&&13!==r&&(f=n.getTokenStartLine(),_=!1),n.getTokenStartLine()!==h){for(let t=h;t<n.getTokenStartLine();t++){u+=e.getText(D.create(M.create(t,0),M.create(t+1,0))).length}h=n.getTokenStartLine()}switch(r){case 10:if(void 0===i||1===i||5===i&&p[p.length-1]===kr.Object){const e=new Mr(n.getTokenValue(),f);c=l,l=a.addChildProperty(e)}break;case 3:if(void 0===o.beginningLineNumber&&(o.beginningLineNumber=n.getTokenStartLine()),p[p.length-1]===kr.Object)a=l;else if(p[p.length-1]===kr.Array){const e=new Mr(n.getTokenValue(),f);e.noKeyName=!0,c=l,l=a.addChildProperty(e),a=l}p.push(kr.Array),l.type=kr.Array,f=n.getTokenStartLine(),f++;break;case 1:if(void 0===o.beginningLineNumber)o.beginningLineNumber=n.getTokenStartLine();else if(p[p.length-1]===kr.Array){const e=new Mr(n.getTokenValue(),f);e.noKeyName=!0,c=l,l=a.addChildProperty(e)}l.type=kr.Object,p.push(kr.Object),a=l,f=n.getTokenStartLine(),f++;break;case 4:m=n.getTokenStartLine(),p.pop(),void 0!==l.endLineNumber||2!==i&&4!==i||(l.endLineNumber=m-1,l.lastProperty=!0,l.lineWhereToAddComma=d,l.indexWhereToAddComa=g,c=l,l=l?l.parent:void 0,a=l),o.endLineNumber=m,f=m+1;break;case 2:m=n.getTokenStartLine(),p.pop(),1!==i&&(void 0===l.endLineNumber&&(l.endLineNumber=m-1,l.lastProperty=!0,l.lineWhereToAddComma=d,l.indexWhereToAddComa=g),c=l,l=l?l.parent:void 0,a=l),o.endLineNumber=n.getTokenStartLine(),f=m+1;break;case 5:m=n.getTokenStartLine(),void 0!==l.endLineNumber||p[p.length-1]!==kr.Object&&(p[p.length-1]!==kr.Array||2!==i&&4!==i)||(l.endLineNumber=m,l.commaIndex=n.getTokenOffset()-u,l.commaLine=m),2!==i&&4!==i||(c=l,l=l?l.parent:void 0,a=l),f=m+1;break;case 13:5!==i||d!==n.getTokenStartLine()||(p[p.length-1]!==kr.Array||2!==s&&4!==s)&&p[p.length-1]!==kr.Object||(p[p.length-1]!==kr.Array||2!==s&&4!==s)&&p[p.length-1]!==kr.Object||(l.endLineNumber=void 0,b=!0),1!==i&&3!==i||d!==n.getTokenStartLine()||(_=!0)}14!==r&&13!==r&&12!==r&&15!==r&&(s=i,i=r,d=n.getTokenStartLine(),g=n.getTokenOffset()+n.getTokenLength()-u)}return o}(i)),o=Or(s,n,void 0),a=fn.applyEdits(s,o);return[le.replace(D.create(M.create(0,0),e.positionAt(e.getText().length)),a)]}function Br(e,t,n){if(0!==t.childrenProperties.length)if(t.type===kr.Object){let r=1/0;for(const e of t.childrenProperties)e.beginningLineNumber<r&&(r=e.beginningLineNumber);n+=r-t.beginningLineNumber,e.push(new Vr(n,t.childrenProperties))}else t.type===kr.Array&&Fr(e,t,n)}function Fr(e,t,n){for(const r of t.childrenProperties){if(r.type===kr.Object){let i=1/0;for(const e of r.childrenProperties)e.beginningLineNumber<i&&(i=e.beginningLineNumber);const s=i-r.beginningLineNumber;e.push(new Vr(n+r.beginningLineNumber-t.beginningLineNumber+s,r.childrenProperties))}r.type===kr.Array&&Fr(e,r,n+r.beginningLineNumber-t.beginningLineNumber)}}var Pr,Vr=class{constructor(e,t){this.beginningLineNumber=e,this.propertyTreeArray=t}};function zr(e,t){const n=[];return t.visit((r=>{if("property"===r.type&&"$ref"===r.keyNode.value&&"string"===r.valueNode?.type){const i=r.valueNode.value,s=function(e,t){const n=function(e){if("#"===e)return[];if("#"!==e[0]||"/"!==e[1])return null;return e.substring(2).split(/\//).map(Wr)}(t);if(!n)return null;return qr(n,e.root)}(t,i);if(s){const t=e.positionAt(s.offset);n.push({target:`${e.uri}#${t.line+1},${t.character+1}`,range:jr(e,r.valueNode)})}}return!0})),Promise.resolve(n)}function jr(e,t){return D.create(e.positionAt(t.offset+1),e.positionAt(t.offset+t.length-1))}function qr(e,t){if(!t)return null;if(0===e.length)return t;const n=e.shift();if(t&&"object"===t.type){const r=t.properties.find((e=>e.keyNode.value===n));return r?qr(e,r.valueNode):null}if(t&&"array"===t.type&&n.match(/^(0|[1-9][0-9]*)$/)){const r=Number.parseInt(n),i=t.items[r];return i?qr(e,i):null}return null}function Wr(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Ur(e){const t=e.promiseConstructor||Promise,n=new Sr(e.schemaRequestService,e.workspaceContext,t);n.setSchemaContributions(fr);const r=new er(n,e.contributions,t,e.clientCapabilities),i=new tr(n,e.contributions,t),s=new hr(n),o=new rr(n,t);return{configure:e=>{n.clearExternalSchemas(),e.schemas?.forEach(n.registerExternalSchema.bind(n)),o.configure(e)},resetSchema:e=>n.onResourceChange(e),doValidation:o.doValidation.bind(o),getLanguageStatus:o.getLanguageStatus.bind(o),parseJSONDocument:e=>Yn(e,{collectComments:!0}),newJSONDocument:(e,t)=>function(e,t=[]){return new Qn(e,t,[])}(e,t),getMatchingSchemas:n.getMatchingSchemas.bind(n),doResolve:r.doResolve.bind(r),doComplete:r.doComplete.bind(r),findDocumentSymbols:s.findDocumentSymbols.bind(s),findDocumentSymbols2:s.findDocumentSymbols2.bind(s),findDocumentColors:s.findDocumentColors.bind(s),getColorPresentations:s.getColorPresentations.bind(s),doHover:i.doHover.bind(i),getFoldingRanges:Ar,getSelectionRanges:Ir,findDefinition:()=>Promise.resolve([]),findLinks:zr,format:(e,t,n)=>Or(e,n,t),sort:(e,t)=>Dr(e,t)}}"undefined"!==typeof fetch&&(Pr=function(e){return fetch(e).then((e=>e.text()))});var $r=class{constructor(e,t){this._ctx=e,this._languageSettings=t.languageSettings,this._languageId=t.languageId,this._languageService=Ur({workspaceContext:{resolveRelativePath:(e,t)=>function(e,t){if(function(e){return e.charCodeAt(0)===Hr}(t)){const n=pr.parse(e),r=t.split("/");return n.with({path:Gr(r)}).toString()}return function(e,...t){const n=pr.parse(e),r=n.path.split("/");for(let i of t)r.push(...i.split("/"));return n.with({path:Gr(r)}).toString()}(e,t)}(t.substr(0,t.lastIndexOf("/")+1),e)},schemaRequestService:t.enableSchemaRequest?Pr:void 0,clientCapabilities:vn.LATEST}),this._languageService.configure(this._languageSettings)}async doValidation(e){let t=this._getTextDocument(e);if(t){let e=this._languageService.parseJSONDocument(t);return this._languageService.doValidation(t,e,this._languageSettings)}return Promise.resolve([])}async doComplete(e,t){let n=this._getTextDocument(e);if(!n)return null;let r=this._languageService.parseJSONDocument(n);return this._languageService.doComplete(n,t,r)}async doResolve(e){return this._languageService.doResolve(e)}async doHover(e,t){let n=this._getTextDocument(e);if(!n)return null;let r=this._languageService.parseJSONDocument(n);return this._languageService.doHover(n,t,r)}async format(e,t,n){let r=this._getTextDocument(e);if(!r)return[];let i=this._languageService.format(r,t,n);return Promise.resolve(i)}async resetSchema(e){return Promise.resolve(this._languageService.resetSchema(e))}async findDocumentSymbols(e){let t=this._getTextDocument(e);if(!t)return[];let n=this._languageService.parseJSONDocument(t),r=this._languageService.findDocumentSymbols2(t,n);return Promise.resolve(r)}async findDocumentColors(e){let t=this._getTextDocument(e);if(!t)return[];let n=this._languageService.parseJSONDocument(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.parseJSONDocument(r),s=this._languageService.getColorPresentations(r,i,t,n);return Promise.resolve(s)}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.parseJSONDocument(n),i=this._languageService.getSelectionRanges(n,t,r);return Promise.resolve(i)}async parseJSONDocument(e){let t=this._getTextDocument(e);if(!t)return null;let n=this._languageService.parseJSONDocument(t);return Promise.resolve(n)}async getMatchingSchemas(e){let t=this._getTextDocument(e);if(!t)return[];let n=this._languageService.parseJSONDocument(t);return Promise.resolve(this._languageService.getMatchingSchemas(t,n))}_getTextDocument(e){let t=this._ctx.getMirrorModels();for(let n of t)if(n.uri.toString()===e)return fn.create(e,this._languageId,n.version,n.getValue());return null}},Hr="/".charCodeAt(0),Kr=".".charCodeAt(0);function Gr(e){const t=[];for(const r of e)0===r.length||1===r.length&&r.charCodeAt(0)===Kr||(2===r.length&&r.charCodeAt(0)===Kr&&r.charCodeAt(1)===Kr?t.pop():t.push(r));e.length>1&&0===e[e.length-1].length&&t.push("");let n=t.join("/");return 0===e[0].length&&(n="/"+n),n}self.onmessage=()=>{s(((e,t)=>new $r(e,t)))}})()})();
\ No newline at end of file +(()=>{var e={146:(e,t,n)=>{"use strict";n.d(t,{V0:()=>i,aI:()=>r,kT:()=>s});Object.prototype.hasOwnProperty;function r(e,t){if(e===t)return!0;if(null===e||void 0===e||null===t||void 0===t)return!1;if(typeof e!==typeof t)return!1;if("object"!==typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;let n,i;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else{const s=[];for(i in e)s.push(i);s.sort();const o=[];for(i in t)o.push(i);if(o.sort(),!r(s,o))return!1;for(n=0;n<s.length;n++)if(!r(e[s[n]],t[s[n]]))return!1}return!0}function i(e){const t=[];for(const n of function(e){let t=[];for(;Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}(e))"function"===typeof e[n]&&t.push(n);return t}function s(e,t){const n=e=>function(){const n=Array.prototype.slice.call(arguments,0);return t(e,n)},r={};for(const i of e)r[i]=n(i);return r}},154:(e,t,n)=>{"use strict";n.d(t,{L:()=>r});const r=(0,n(3591).u1)("languageService")},360:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITextResourceConfigurationService:()=>i,ITextResourcePropertiesService:()=>s});var r=n(3591);const i=(0,r.u1)("textResourceConfigurationService"),s=(0,r.u1)("textResourcePropertiesService")},448:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MarkerDecorationsService:()=>L});var r,i=n(1508);!function(e){e[e.Ignore=0]="Ignore",e[e.Info=1]="Info",e[e.Warning=2]="Warning",e[e.Error=3]="Error"}(r||(r={})),function(e){const t="error",n="warning",r="info";e.fromValue=function(s){return s?i.Q_(t,s)?e.Error:i.Q_(n,s)||i.Q_("warn",s)?e.Warning:i.Q_(r,s)?e.Info:e.Ignore:e.Ignore},e.toString=function(i){switch(i){case e.Error:return t;case e.Warning:return n;case e.Info:return r;default:return"ignore"}}}(r||(r={}));const s=r;var o,a,l=n(8209),c=n(3591);!function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(o||(o={})),function(e){e.compare=function(e,t){return t-e};const t=Object.create(null);t[e.Error]=(0,l.kg)("sev.error","Error"),t[e.Warning]=(0,l.kg)("sev.warning","Warning"),t[e.Info]=(0,l.kg)("sev.info","Info"),e.toString=function(e){return t[e]||""},e.fromSeverity=function(t){switch(t){case s.Error:return e.Error;case s.Warning:return e.Warning;case s.Info:return e.Info;case s.Ignore:return e.Hint}},e.toSeverity=function(t){switch(t){case e.Error:return s.Error;case e.Warning:return s.Warning;case e.Info:return s.Info;case e.Hint:return s.Ignore}}}(o||(o={})),function(e){const t="";function n(e,n){const r=[t];return e.source?r.push(e.source.replace("\xa6","\\\xa6")):r.push(t),e.code?"string"===typeof e.code?r.push(e.code.replace("\xa6","\\\xa6")):r.push(e.code.value.replace("\xa6","\\\xa6")):r.push(t),void 0!==e.severity&&null!==e.severity?r.push(o.toString(e.severity)):r.push(t),e.message&&n?r.push(e.message.replace("\xa6","\\\xa6")):r.push(t),void 0!==e.startLineNumber&&null!==e.startLineNumber?r.push(e.startLineNumber.toString()):r.push(t),void 0!==e.startColumn&&null!==e.startColumn?r.push(e.startColumn.toString()):r.push(t),void 0!==e.endLineNumber&&null!==e.endLineNumber?r.push(e.endLineNumber.toString()):r.push(t),void 0!==e.endColumn&&null!==e.endColumn?r.push(e.endColumn.toString()):r.push(t),r.push(t),r.join("\xa6")}e.makeKey=function(e){return n(e,!0)},e.makeKeyOptionalMessage=n}(a||(a={}));const h=(0,c.u1)("markerService");var u=n(1484),d=n(6223),g=n(5724),f=n(7119),m=n(3750),p=n(6677),b=n(6456),_=n(1234),k=n(5845),v=n(4320);var C=function(e,t,n,r){var i,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,n,o):i(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},y=function(e,t){return function(n,r){t(n,r,e)}};let L=class extends u.jG{constructor(e,t){super(),this._markerService=t,this._onDidChangeMarker=this._register(new _.vl),this._markerDecorations=new v.fT,e.getModels().forEach((e=>this._onModelAdded(e))),this._register(e.onModelAdded(this._onModelAdded,this)),this._register(e.onModelRemoved(this._onModelRemoved,this)),this._register(this._markerService.onMarkerChanged(this._handleMarkerChange,this))}dispose(){super.dispose(),this._markerDecorations.forEach((e=>e.dispose())),this._markerDecorations.clear()}getMarker(e,t){const n=this._markerDecorations.get(e);return n&&n.getMarker(t)||null}_handleMarkerChange(e){e.forEach((e=>{const t=this._markerDecorations.get(e);t&&this._updateDecorations(t)}))}_onModelAdded(e){const t=new w(e);this._markerDecorations.set(e.uri,t),this._updateDecorations(t)}_onModelRemoved(e){const t=this._markerDecorations.get(e.uri);t&&(t.dispose(),this._markerDecorations.delete(e.uri)),e.uri.scheme!==b.ny.inMemory&&e.uri.scheme!==b.ny.internal&&e.uri.scheme!==b.ny.vscode||this._markerService?.read({resource:e.uri}).map((e=>e.owner)).forEach((t=>this._markerService.remove(t,[e.uri])))}_updateDecorations(e){const t=this._markerService.read({resource:e.model.uri,take:500});e.update(t)&&this._onDidChangeMarker.fire(e.model)}};L=C([y(0,m.IModelService),y(1,h)],L);class w extends u.jG{constructor(e){super(),this.model=e,this._map=new v.cO,this._register((0,u.s)((()=>{this.model.deltaDecorations([...this._map.values()],[]),this._map.clear()})))}update(e){const{added:t,removed:n}=function(e,t){const n=[],r=[];for(const i of e)t.has(i)||n.push(i);for(const i of t)e.has(i)||r.push(i);return{removed:n,added:r}}(new Set(this._map.keys()),new Set(e));if(0===t.length&&0===n.length)return!1;const r=n.map((e=>this._map.get(e))),i=t.map((e=>({range:this._createDecorationRange(this.model,e),options:this._createDecorationOption(e)}))),s=this.model.deltaDecorations(r,i);for(const o of n)this._map.delete(o);for(let o=0;o<s.length;o++)this._map.set(t[o],s[o]);return!0}getMarker(e){return this._map.getKey(e.id)}_createDecorationRange(e,t){let n=p.Q.lift(t);if(t.severity!==o.Hint||this._hasMarkerTag(t,1)||this._hasMarkerTag(t,2)||(n=n.setEndPosition(n.startLineNumber,n.startColumn+2)),n=e.validateRange(n),n.isEmpty()){const t=e.getLineLastNonWhitespaceColumn(n.startLineNumber)||e.getLineMaxColumn(n.startLineNumber);if(1===t||n.endColumn>=t)return n;const r=e.getWordAtPosition(n.getStartPosition());r&&(n=new p.Q(n.startLineNumber,r.startColumn,n.endLineNumber,r.endColumn))}else if(t.endColumn===Number.MAX_VALUE&&1===t.startColumn&&n.startLineNumber===n.endLineNumber){const r=e.getLineFirstNonWhitespaceColumn(t.startLineNumber);r<n.endColumn&&(n=new p.Q(n.startLineNumber,r,n.endLineNumber,n.endColumn),t.startColumn=r)}return n}_createDecorationOption(e){let t,n,r,i,s;switch(e.severity){case o.Hint:t=this._hasMarkerTag(e,2)?void 0:this._hasMarkerTag(e,1)?"squiggly-unnecessary":"squiggly-hint",r=0;break;case o.Info:t="squiggly-info",n=(0,g.Yf)(f.AQ),r=10,s={color:(0,g.Yf)(k.KoI),position:1};break;case o.Warning:t="squiggly-warning",n=(0,g.Yf)(f.aZ),r=20,s={color:(0,g.Yf)(k.uMG),position:1};break;case o.Error:default:t="squiggly-error",n=(0,g.Yf)(f.yI),r=30,s={color:(0,g.Yf)(k.yLC),position:1}}return e.tags&&(-1!==e.tags.indexOf(1)&&(i="squiggly-inline-unnecessary"),-1!==e.tags.indexOf(2)&&(i="squiggly-inline-deprecated")),{description:"marker-decoration",stickiness:1,className:t,showIfCollapsed:!0,overviewRuler:{color:n,position:d.A5.Right},minimap:s,zIndex:r,inlineClassName:i}}_hasMarkerTag(e,t){return!!e.tags&&e.tags.indexOf(t)>=0}}},534:(e,t,n)=>{"use strict";n.d(t,{V:()=>i});var r=n(5152);class i{constructor(e){const t=(0,r.W)(e);this._defaultValue=t,this._asciiMap=i._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){const t=new Uint8Array(256);return t.fill(e),t}set(e,t){const n=(0,r.W)(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()}}},631:(e,t,n)=>{"use strict";function r(e){return"string"===typeof e}function i(e){return"object"===typeof e&&null!==e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function s(e){return"undefined"===typeof e}function o(e){return s(e)||null===e}n.d(t,{Gv:()=>i,Kg:()=>r,b0:()=>s,z:()=>o})},718:(e,t,n)=>{"use strict";n.r(t),n.d(t,{EditorWorkerHost:()=>r});class r{static{this.CHANNEL_NAME="editorWorkerHost"}static getChannel(e){return e.getChannel(r.CHANNEL_NAME)}static setChannel(e,t){e.setChannel(r.CHANNEL_NAME,t)}}},796:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MirrorModel:()=>b,STOP_SYNC_MODEL_DELTA_TIME_MS:()=>f,WorkerTextModelSyncClient:()=>m,WorkerTextModelSyncServer:()=>p});var r=n(1940),i=n(1484),s=n(9400),o=n(3069),a=n(6677),l=n(6486),c=n(1508),h=(n(9861),n(5152));class u{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=(0,h.j)(e);const n=this.values,r=this.prefixSum,i=t.length;return 0!==i&&(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=(0,h.j)(e),t=(0,h.j)(t),this.values[e]!==t&&(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,t){e=(0,h.j)(e),t=(0,h.j)(t);const n=this.values,r=this.prefixSum;if(e>=n.length)return!1;const i=n.length-e;return t>=i&&(t=i),0!==t&&(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 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=(0,h.j)(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;0===t&&(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,s=0;for(;t<=n;)if(r=t+(n-t)/2|0,i=this.prefixSum[r],s=i-this.values[r],e<s)n=r-1;else{if(!(e>=i))break;t=r+1}return new d(r,e-s)}}class d{constructor(e,t){this.index=e,this.remainder=t,this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=t}}class g{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 null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const t=e.changes;for(const n of t)this._acceptDeleteRange(n.range),this._acceptInsertText(new o.y(n.range.startLineNumber,n.range.startColumn),n.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const 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 u(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)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);else{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))}}_acceptInsertText(e,t){if(0===t.length)return;const n=(0,c.uz)(t);if(1===n.length)return void 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));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]);const r=new Uint32Array(n.length-1);for(let i=1;i<n.length;i++)this._lines.splice(e.lineNumber+i-1,0,n[i]),r[i-1]=n[i].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,r)}}const f=6e4;class m extends i.jG{constructor(e,t,n=!1){if(super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=e,this._modelService=t,!n){const e=new r.vb;e.cancelAndSet((()=>this._checkStopModelSync()),Math.round(f/2)),this._register(e)}}dispose(){for(const e in this._syncedModels)(0,i.AS)(this._syncedModels[e]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(e,t=!1){for(const n of e){const e=n.toString();this._syncedModels[e]||this._beginModelSync(n,t),this._syncedModels[e]&&(this._syncedModelsLastUsedTime[e]=(new Date).getTime())}}_checkStopModelSync(){const e=(new Date).getTime(),t=[];for(const n in this._syncedModelsLastUsedTime){e-this._syncedModelsLastUsedTime[n]>f&&t.push(n)}for(const n of t)this._stopModelSync(n)}_beginModelSync(e,t){const n=this._modelService.getModel(e);if(!n)return;if(!t&&n.isTooLargeForSyncing())return;const r=e.toString();this._proxy.$acceptNewModel({url:n.uri.toString(),lines:n.getLinesContent(),EOL:n.getEOL(),versionId:n.getVersionId()});const s=new i.Cm;s.add(n.onDidChangeContent((e=>{this._proxy.$acceptModelChanged(r.toString(),e)}))),s.add(n.onWillDispose((()=>{this._stopModelSync(r)}))),s.add((0,i.s)((()=>{this._proxy.$acceptRemovedModel(r)}))),this._syncedModels[r]=s}_stopModelSync(e){const t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],(0,i.AS)(t)}}class p{constructor(){this._models=Object.create(null)}getModel(e){return this._models[e]}getModels(){const e=[];return Object.keys(this._models).forEach((t=>e.push(this._models[t]))),e}$acceptNewModel(e){this._models[e.url]=new b(s.r.parse(e.url),e.lines,e.EOL,e.versionId)}$acceptModelChanged(e,t){if(!this._models[e])return;this._models[e].onEvents(t)}$acceptRemovedModel(e){this._models[e]&&delete this._models[e]}}class b extends g{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){const t=[];for(let n=0;n<this._lines.length;n++){const r=this._lines[n],i=this.offsetAt(new o.y(n+1,1)),s=r.matchAll(e);for(const e of s)(e.index||0===e.index)&&(e.index=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){const n=(0,l.Th)(e.column,(0,l.Io)(t),this._lines[e.lineNumber-1],0);return n?new a.Q(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null}words(e){const t=this._lines,n=this._wordenize.bind(this);let r=0,i="",s=0,o=[];return{*[Symbol.iterator](){for(;;)if(s<o.length){const e=i.substring(o[s].start,o[s].end);s+=1,yield e}else{if(!(r<t.length))break;i=t[r],o=n(i,e),s=0,r+=1}}}}getLineWords(e,t){const n=this._lines[e-1],r=this._wordenize(n,t),i=[];for(const s of r)i.push({word:n.substring(s.start,s.end),startColumn:s.start+1,endColumn:s.end+1});return i}_wordenize(e,t){const n=[];let r;for(t.lastIndex=0;(r=t.exec(e))&&0!==r[0].length;)n.push({start:r.index,end:r.index+r[0].length});return n}getValueInRange(e){if((e=this._validateRange(e)).startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);const t=this._eol,n=e.startLineNumber-1,r=e.endLineNumber-1,i=[];i.push(this._lines[n].substring(e.startColumn-1));for(let s=n+1;s<r;s++)i.push(this._lines[s]);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();const 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){const 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(!o.y.isIPosition(e))throw new 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{const 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}}},920:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IEditorWorkerService:()=>r});const r=(0,n(3591).u1)("editorWorkerService")},973:(e,t,n)=>{"use strict";n.d(t,{W:()=>s});var r=n(3069),i=n(6677);class s{static{this.zero=new s(0,0)}static betweenPositions(e,t){return e.lineNumber===t.lineNumber?new s(0,t.column-e.column):new s(t.lineNumber-e.lineNumber,t.column-1)}static ofRange(e){return s.betweenPositions(e.getStartPosition(),e.getEndPosition())}static ofText(e){let t=0,n=0;for(const r of e)"\n"===r?(t++,n=0):n++;return new s(t,n)}constructor(e,t){this.lineCount=e,this.columnCount=t}isGreaterThanOrEqualTo(e){return this.lineCount!==e.lineCount?this.lineCount>e.lineCount:this.columnCount>=e.columnCount}createRange(e){return 0===this.lineCount?new i.Q(e.lineNumber,e.column,e.lineNumber,e.column+this.columnCount):new i.Q(e.lineNumber,e.column,e.lineNumber+this.lineCount,this.columnCount+1)}addToPosition(e){return 0===this.lineCount?new r.y(e.lineNumber,e.column+this.columnCount):new r.y(e.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}}},1090:(e,t,n)=>{"use strict";n.d(t,{d:()=>r});class r{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}},1234:(e,t,n)=>{"use strict";n.d(t,{Jh:()=>o,vl:()=>f});var r=n(4383),i=n(1484),s=(n(8925),n(8381));var o;!function(e){function t(e){false}function n(e){return(t,n=null,r)=>{let i,s=!1;return i=e((e=>{if(!s)return i?i.dispose():s=!0,t.call(n,e)}),null,r),s&&i.dispose(),i}}function r(e,t,n){return o(((n,r=null,i)=>e((e=>n.call(r,t(e))),null,i)),n)}function s(e,t,n){return o(((n,r=null,i)=>e((e=>t(e)&&n.call(r,e)),null,i)),n)}function o(e,n){let r;const i={onWillAddFirstListener(){r=e(s.fire,s)},onDidRemoveLastListener(){r?.dispose()}};n||t();const s=new f(i);return n?.add(s),s.event}function a(e,n,r=100,i=!1,s=!1,o,a){let l,c,h,u,d=0;const g={leakWarningThreshold:o,onWillAddFirstListener(){l=e((e=>{d++,c=n(c,e),i&&!h&&(m.fire(c),c=void 0),u=()=>{const e=c;c=void 0,h=void 0,(!i||d>1)&&m.fire(e),d=0},"number"===typeof r?(clearTimeout(h),h=setTimeout(u,r)):void 0===h&&(h=0,queueMicrotask(u))}))},onWillRemoveListener(){s&&d>0&&u?.()},onDidRemoveLastListener(){u=void 0,l.dispose()}};a||t();const m=new f(g);return a?.add(m),m.event}e.None=()=>i.jG.None,e.defer=function(e,t){return a(e,(()=>{}),0,void 0,!0,void 0,t)},e.once=n,e.onceIf=function(t,n){return e.once(e.filter(t,n))},e.map=r,e.forEach=function(e,t,n){return o(((n,r=null,i)=>e((e=>{t(e),n.call(r,e)}),null,i)),n)},e.filter=s,e.signal=function(e){return e},e.any=function(...e){return(t,n=null,r)=>function(e,t){t instanceof Array?t.push(e):t&&t.add(e);return e}((0,i.qE)(...e.map((e=>e((e=>t.call(n,e)))))),r)},e.reduce=function(e,t,n,i){let s=n;return r(e,(e=>(s=t(s,e),s)),i)},e.debounce=a,e.accumulate=function(t,n=0,r){return e.debounce(t,((e,t)=>e?(e.push(t),e):[t]),n,void 0,!0,void 0,r)},e.latch=function(e,t=(e,t)=>e===t,n){let r,i=!0;return s(e,(e=>{const n=i||!t(e,r);return i=!1,r=e,n}),n)},e.split=function(t,n,r){return[e.filter(t,n,r),e.filter(t,(e=>!n(e)),r)]},e.buffer=function(e,t=!1,n=[],r){let i=n.slice(),s=e((e=>{i?i.push(e):a.fire(e)}));r&&r.add(s);const o=()=>{i?.forEach((e=>a.fire(e))),i=null},a=new f({onWillAddFirstListener(){s||(s=e((e=>a.fire(e))),r&&r.add(s))},onDidAddFirstListener(){i&&(t?setTimeout(o):o())},onDidRemoveLastListener(){s&&s.dispose(),s=null}});return r&&r.add(a),a.event},e.chain=function(e,t){return(n,r,i)=>{const s=t(new c);return e((function(e){const t=s.evaluate(e);t!==l&&n.call(r,t)}),void 0,i)}};const l=Symbol("HaltChainable");class c{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:l)),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,n=!0;return this.steps.push((r=>{const i=n||!e(r,t);return n=!1,t=r,i?r:l})),this}evaluate(e){for(const t of this.steps)if((e=t(e))===l)break;return e}}e.fromNodeEventEmitter=function(e,t,n=e=>e){const r=(...e)=>i.fire(n(...e)),i=new f({onWillAddFirstListener:()=>e.on(t,r),onDidRemoveLastListener:()=>e.removeListener(t,r)});return i.event},e.fromDOMEventEmitter=function(e,t,n=e=>e){const r=(...e)=>i.fire(n(...e)),i=new f({onWillAddFirstListener:()=>e.addEventListener(t,r),onDidRemoveLastListener:()=>e.removeEventListener(t,r)});return i.event},e.toPromise=function(e){return new Promise((t=>n(e)(t)))},e.fromPromise=function(e){const t=new f;return e.then((e=>{t.fire(e)}),(()=>{t.fire(void 0)})).finally((()=>{t.dispose()})),t.event},e.forward=function(e,t){return e((e=>t.fire(e)))},e.runAndSubscribe=function(e,t,n){return t(n),e((e=>t(e)))};class h{constructor(e,n){this._observable=e,this._counter=0,this._hasChanged=!1;const r={onWillAddFirstListener:()=>{e.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{e.removeObserver(this)}};n||t(),this.emitter=new f(r),n&&n.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,0===this._counter&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}e.fromObservable=function(e,t){return new h(e,t).emitter.event},e.fromObservableLight=function(e){return(t,n,r)=>{let s=0,o=!1;const a={beginUpdate(){s++},endUpdate(){s--,0===s&&(e.reportChanges(),o&&(o=!1,t.call(n)))},handlePossibleChange(){},handleChange(){o=!0}};e.addObserver(a),e.reportChanges();const l={dispose(){e.removeObserver(a)}};return r instanceof i.Cm?r.add(l):Array.isArray(r)&&r.push(l),l}}}(o||(o={}));class a{static{this.all=new Set}static{this._idPool=0}constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${a._idPool++}`,a.all.add(this)}start(e){this._stopWatch=new s.W,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}class l{static{this._idPool=1}constructor(e,t,n=(l._idPool++).toString(16).padStart(3,"0")){this._errorHandler=e,this.threshold=t,this.name=n,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(e,t){const n=this.threshold;if(n<=0||t<n)return;this._stacks||(this._stacks=new Map);const r=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,r+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=.5*n;const[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);const s=new h(i,e);this._errorHandler(s)}return()=>{const t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}getMostFrequentStack(){if(!this._stacks)return;let e,t=0;for(const[n,r]of this._stacks)(!e||t<r)&&(e=[n,r],t=r);return e}}class c{static create(){const e=new Error;return new c(e.stack??"")}constructor(e){this.value=e}print(){console.warn(this.value.split("\n").slice(2).join("\n"))}}class h extends Error{constructor(e,t){super(e),this.name="ListenerLeakError",this.stack=t}}class u extends Error{constructor(e,t){super(e),this.name="ListenerRefusalError",this.stack=t}}class d{constructor(e){this.value=e}}let g;class f{constructor(e){this._size=0,this._options=e,this._leakageMon=this._options?.leakWarningThreshold?new l(e?.onListenerError??r.dz,this._options?.leakWarningThreshold??-1):void 0,this._perfMon=this._options?._profName?new a(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,t,n)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const 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);const t=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],n=new u(`${e}. HINT: Stack shows most frequent listener (${t[1]}-times)`,t[0]);return(this._options?.onListenerError||r.dz)(n),i.jG.None}if(this._disposed)return i.jG.None;t&&(e=e.bind(t));const s=new d(e);let o;this._leakageMon&&this._size>=Math.ceil(.2*this._leakageMon.threshold)&&(s.stack=c.create(),o=this._leakageMon.check(s.stack,this._size+1)),this._listeners?this._listeners instanceof d?(this._deliveryQueue??=new m,this._listeners=[this._listeners,s]):this._listeners.push(s):(this._options?.onWillAddFirstListener?.(this),this._listeners=s,this._options?.onDidAddFirstListener?.(this)),this._size++;const a=(0,i.s)((()=>{g?.unregister(a),o?.(),this._removeListener(s)}));if(n instanceof i.Cm?n.add(a):Array.isArray(n)&&n.push(a),g){const e=(new Error).stack.split("\n").slice(2,3).join("\n").trim(),t=/(file:|vscode-file:\/\/vscode-app)?(\/[^:]*:\d+:\d+)/.exec(e);g.register(a,t?.[2]??e,a)}return a},this._event}_removeListener(e){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(1===this._size)return this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),void(this._size=0);const t=this._listeners,n=t.indexOf(e);if(-1===n)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,t[n]=void 0;const r=this._deliveryQueue.current===this;if(2*this._size<=t.length){let e=0;for(let n=0;n<t.length;n++)t[n]?t[e++]=t[n]:r&&(this._deliveryQueue.end--,e<this._deliveryQueue.i&&this._deliveryQueue.i--);t.length=e}}_deliver(e,t){if(!e)return;const n=this._options?.onListenerError||r.dz;if(n)try{e.value(t)}catch(i){n(i)}else e.value(t)}_deliverQueue(e){const 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 d)this._deliver(this._listeners,e);else{const t=this._deliveryQueue;t.enqueue(this,e,this._listeners.length),this._deliverQueue(t)}else;this._perfMon?.stop()}hasListeners(){return this._size>0}}class m{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}}},1484:(e,t,n)=>{"use strict";function r(e,t){const n=this;let r,i=!1;return function(){if(i)return r;if(i=!0,t)try{r=e.apply(n,arguments)}finally{t()}else r=e.apply(n,arguments);return r}}n.d(t,{jG:()=>g,$w:()=>m,Cm:()=>d,HE:()=>f,qE:()=>h,AS:()=>c,VD:()=>a,s:()=>u,Ay:()=>o});var i=n(2522);let s=null;function o(e){return s?.trackDisposable(e),e}function a(e){s?.markAsDisposed(e)}function l(e,t){s?.setParent(e,t)}function c(e){if(i.f.is(e)){const n=[];for(const r of e)if(r)try{r.dispose()}catch(t){n.push(t)}if(1===n.length)throw n[0];if(n.length>1)throw new AggregateError(n,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function h(...e){const t=u((()=>c(e)));return function(e,t){if(s)for(const n of e)s.setParent(n,t)}(e,t),t}function u(e){const t=o({dispose:r((()=>{a(t),e()}))});return t}class d{static{this.DISABLE_DISPOSED_WARNING=!1}constructor(){this._toDispose=new Set,this._isDisposed=!1,o(this)}dispose(){this._isDisposed||(a(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(0!==this._toDispose.size)try{c(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return l(e,this),this._isDisposed?d.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}deleteAndLeak(e){e&&this._toDispose.has(e)&&(this._toDispose.delete(e),l(e,null))}}class g{static{this.None=Object.freeze({dispose(){}})}constructor(){this._store=new d,o(this),l(this._store,this)}dispose(){a(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}class f{constructor(){this._isDisposed=!1,o(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){this._isDisposed||e===this._value||(this._value?.dispose(),e&&l(e,this),this._value=e)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,a(this),this._value?.dispose(),this._value=void 0}}class m{constructor(){this._store=new Map,this._isDisposed=!1,o(this)}dispose(){a(this),this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{c(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,t,n=!1){this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),n||this._store.get(e)?.dispose(),this._store.set(e,t)}deleteAndDispose(e){this._store.get(e)?.dispose(),this._store.delete(e)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}},1508:(e,t,n)=>{"use strict";n.d(t,{$X:()=>O,AV:()=>s,E_:()=>N,HG:()=>d,LJ:()=>y,LU:()=>B,NB:()=>l,OS:()=>c,Q_:()=>k,Ss:()=>R,UD:()=>f,Wv:()=>_,Z5:()=>w,_J:()=>I,aC:()=>A,bm:()=>a,eY:()=>h,jy:()=>o,km:()=>x,lT:()=>g,ne:()=>M,ns:()=>v,pc:()=>C,r_:()=>D,tk:()=>F,tl:()=>z,uz:()=>u,y_:()=>j,z_:()=>L});var r=n(1788),i=n(1090);function s(e){return!e||"string"!==typeof e||0===e.trim().length}function o(e){return e.replace(/[<>"'&]/g,(e=>{switch(e){case"<":return"<";case">":return">";case'"':return""";case"'":return"'";case"&":return"&"}return e}))}function a(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function l(e,t){if(!e||!t)return e;const n=t.length;if(0===n||0===e.length)return e;let r=0;for(;e.indexOf(t,r)===r;)r+=n;return e.substring(r)}function c(e,t,n={}){if(!e)throw new Error("Cannot create regex from empty string");t||(e=a(e)),n.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));let r="";return n.global&&(r+="g"),n.matchCase||(r+="i"),n.multiline&&(r+="m"),n.unicode&&(r+="u"),new RegExp(e,r)}function h(e){if("^"===e.source||"^$"===e.source||"$"===e.source||"^\\s*$"===e.source)return!1;return!(!e.exec("")||0!==e.lastIndex)}function u(e){return e.split(/\r\n|\r|\n/)}function d(e){for(let t=0,n=e.length;t<n;t++){const n=e.charCodeAt(t);if(32!==n&&9!==n)return t}return-1}function g(e,t=e.length-1){for(let n=t;n>=0;n--){const t=e.charCodeAt(n);if(32!==t&&9!==t)return n}return-1}function f(e,t){return e<t?-1:e>t?1:0}function m(e,t,n=0,r=e.length,i=0,s=t.length){for(;n<r&&i<s;n++,i++){const r=e.charCodeAt(n),s=t.charCodeAt(i);if(r<s)return-1;if(r>s)return 1}const o=r-n,a=s-i;return o<a?-1:o>a?1:0}function p(e,t,n=0,r=e.length,i=0,s=t.length){for(;n<r&&i<s;n++,i++){let o=e.charCodeAt(n),a=t.charCodeAt(i);if(o===a)continue;if(o>=128||a>=128)return m(e.toLowerCase(),t.toLowerCase(),n,r,i,s);b(o)&&(o-=32),b(a)&&(a-=32);const l=o-a;if(0!==l)return l}const o=r-n,a=s-i;return o<a?-1:o>a?1:0}function b(e){return e>=97&&e<=122}function _(e){return e>=65&&e<=90}function k(e,t){return e.length===t.length&&0===p(e,t)}function v(e,t){const n=t.length;return!(t.length>e.length)&&0===p(e,t,0,n)}function C(e){return 55296<=e&&e<=56319}function y(e){return 56320<=e&&e<=57343}function L(e,t){return t-56320+(e-55296<<10)+65536}function w(e,t,n){const r=e.charCodeAt(n);if(C(r)&&n+1<t){const t=e.charCodeAt(n+1);if(y(t))return L(r,t)}return r}class S{get offset(){return this._offset}constructor(e,t=0){this._str=e,this._len=e.length,this._offset=t}setOffset(e){this._offset=e}prevCodePoint(){const e=function(e,t){const n=e.charCodeAt(t-1);if(y(n)&&t>1){const r=e.charCodeAt(t-2);if(C(r))return L(r,n)}return n}(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){const e=w(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class x{get offset(){return this._iterator.offset}constructor(e,t=0){this._iterator=new S(e,t)}nextGraphemeLength(){const e=V.getInstance(),t=this._iterator,n=t.offset;let r=e.getGraphemeBreakType(t.nextCodePoint());for(;!t.eol();){const n=t.offset,i=e.getGraphemeBreakType(t.nextCodePoint());if(P(r,i)){t.setOffset(n);break}r=i}return t.offset-n}prevGraphemeLength(){const e=V.getInstance(),t=this._iterator,n=t.offset;let r=e.getGraphemeBreakType(t.prevCodePoint());for(;t.offset>0;){const n=t.offset,i=e.getGraphemeBreakType(t.prevCodePoint());if(P(i,r)){t.setOffset(n);break}r=i}return n-t.offset}eol(){return this._iterator.eol()}}let E;function N(e){return E||(E=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/),E.test(e)}const T=/^[\t\n\r\x20-\x7E]*$/;function A(e){return T.test(e)}const I=/[\u2028\u2029]/;function O(e){return I.test(e)}function M(e){return e>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function R(e){return e>=127462&&e<=127487||8986===e||8987===e||9200===e||9203===e||e>=9728&&e<=10175||11088===e||11093===e||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129008||e>=129280&&e<=129535||e>=129648&&e<=129782}const D=String.fromCharCode(65279);function B(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}function F(e){return(e%=52)<26?String.fromCharCode(97+e):String.fromCharCode(65+e-26)}function P(e,t){return 0===e?5!==t&&7!==t:(2!==e||3!==t)&&(4===e||2===e||3===e||(4===t||2===t||3===t||(8!==e||8!==t&&9!==t&&11!==t&&12!==t)&&((11!==e&&9!==e||9!==t&&10!==t)&&((12!==e&&10!==e||10!==t)&&(5!==t&&13!==t&&(7!==t&&(1!==e&&((13!==e||14!==t)&&(6!==e||6!==t)))))))))}class V{static{this._INSTANCE=null}static getInstance(){return V._INSTANCE||(V._INSTANCE=new V),V._INSTANCE}constructor(){this._data=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]")}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;const t=this._data,n=t.length/3;let r=1;for(;r<=n;)if(e<t[3*r])r*=2;else{if(!(e>t[3*r+1]))return t[3*r+2];r=2*r+1}return 0}}class z{static{this.ambiguousCharacterData=new i.d((()=>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,8218,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,8242,96,1370,96,1523,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,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,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,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,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,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,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,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,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,71922,67,71913,67,65315,67,8557,67,8450,67,8493,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,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,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,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,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,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,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,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,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,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,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,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,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,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,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,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,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,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,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,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,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,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,71919,87,71910,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,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,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,66293,90,71909,90,65338,90,8484,90,8488,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,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,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,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,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,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,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,65283,35,65292,44,65307,59],"ko":[8211,45,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,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,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,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[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,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,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,65283,35,65307,59]}')))}static{this.cache=new r.o5({getCacheKey:JSON.stringify},(e=>{function t(e){const t=new Map;for(let n=0;n<e.length;n+=2)t.set(e[n],e[n+1]);return t}function n(e,t){if(!e)return t;const n=new Map;for(const[r,i]of e)t.has(r)&&n.set(r,i);return n}const r=this.ambiguousCharacterData.value;let i,s=e.filter((e=>!e.startsWith("_")&&e in r));0===s.length&&(s=["_default"]);for(const a of s){i=n(i,t(r[a]))}const o=function(e,t){const n=new Map(e);for(const[r,i]of t)n.set(r,i);return n}(t(r._common),i);return new z(o)}))}static getInstance(e){return z.cache.get(Array.from(e))}static{this._locales=new i.d((()=>Object.keys(z.ambiguousCharacterData.value).filter((e=>!e.startsWith("_")))))}static getLocales(){return z._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())}}class j{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,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,12288,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]")}static{this._data=void 0}static getData(){return this._data||(this._data=new Set(j.getRawData())),this._data}static isInvisibleCharacter(e){return j.getData().has(e)}static get codePoints(){return j.getData()}}},1646:(e,t,n)=>{"use strict";n.d(t,{Fd:()=>h});var r=n(9861),i=n(1234),s=n(631),o=n(8209),a=n(4001),l=n(8748),c=n(6359);const h={Configuration:"base.contributions.configuration"},u={properties:{},patternProperties:{}},d={properties:{},patternProperties:{}},g={properties:{},patternProperties:{}},f={properties:{},patternProperties:{}},m={properties:{},patternProperties:{}},p={properties:{},patternProperties:{}},b="vscode://schemas/settings/resourceLanguage",_=c.O.as(l.F.JSONContribution);const k="\\[([^\\]]+)\\]",v=new RegExp(k,"g"),C=`^(${k})+$`,y=new RegExp(C);function L(e){const t=[];if(y.test(e)){let n=v.exec(e);for(;n?.length;){const r=n[1].trim();r&&t.push(r),n=v.exec(e)}}return(0,r.dM)(t)}const w=new class{constructor(){this.registeredConfigurationDefaults=[],this.overrideIdentifiers=new Set,this._onDidSchemaChange=new i.vl,this._onDidUpdateConfiguration=new i.vl,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:o.kg("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!0,allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.policyConfigurations=new Map,this.excludedConfigurationProperties={},_.registerSchema(b,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(e,t=!0){this.registerConfigurations([e],t)}registerConfigurations(e,t=!0){const n=new Set;this.doRegisterConfigurations(e,t,n),_.registerSchema(b,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:n})}registerDefaultConfigurations(e){const t=new Set;this.doRegisterDefaultConfigurations(e,t),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:t,defaultsOverrides:!0})}doRegisterDefaultConfigurations(e,t){this.registeredConfigurationDefaults.push(...e);const n=[];for(const{overrides:r,source:i}of e)for(const e in r){t.add(e);const s=this.configurationDefaultsOverrides.get(e)??this.configurationDefaultsOverrides.set(e,{configurationDefaultOverrides:[]}).get(e),o=r[e];if(s.configurationDefaultOverrides.push({value:o,source:i}),y.test(e)){const t=this.mergeDefaultConfigurationsForOverrideIdentifier(e,o,i,s.configurationDefaultOverrideValue);if(!t)continue;s.configurationDefaultOverrideValue=t,this.updateDefaultOverrideProperty(e,t,i),n.push(...L(e))}else{const t=this.mergeDefaultConfigurationsForConfigurationProperty(e,o,i,s.configurationDefaultOverrideValue);if(!t)continue;s.configurationDefaultOverrideValue=t;const n=this.configurationProperties[e];n&&(this.updatePropertyDefaultValue(e,n),this.updateSchema(e,n))}}this.doRegisterOverrideIdentifiers(n)}updateDefaultOverrideProperty(e,t,n){const r={type:"object",default:t.value,description:o.kg("defaultLanguageConfiguration.description","Configure settings to be overridden for the {0} language.",(0,a.Mo)(e)),$ref:b,defaultDefaultValue:t.value,source:n,defaultValueSource:n};this.configurationProperties[e]=r,this.defaultLanguageConfigurationOverridesNode.properties[e]=r}mergeDefaultConfigurationsForOverrideIdentifier(e,t,n,r){const i=r?.value||{},o=r?.source??new Map;if(o instanceof Map){for(const e of Object.keys(t)){const r=t[e];if(s.Gv(r)&&(s.b0(i[e])||s.Gv(i[e]))){if(i[e]={...i[e]??{},...r},n)for(const t in r)o.set(`${e}.${t}`,n)}else i[e]=r,n?o.set(e,n):o.delete(e)}return{value:i,source:o}}console.error("objectConfigurationSources is not a Map")}mergeDefaultConfigurationsForConfigurationProperty(e,t,n,r){const i=this.configurationProperties[e],o=r?.value??i?.defaultDefaultValue;let a=n;if(s.Gv(t)&&(void 0!==i&&"object"===i.type||void 0===i&&(s.b0(o)||s.Gv(o)))){if(a=r?.source??new Map,!(a instanceof Map))return void console.error("defaultValueSource is not a Map");for(const r in t)n&&a.set(`${e}.${r}`,n);t={...s.Gv(o)?o:{},...t}}return{value:t,source:a}}registerOverrideIdentifiers(e){this.doRegisterOverrideIdentifiers(e),this._onDidSchemaChange.fire()}doRegisterOverrideIdentifiers(e){for(const t of e)this.overrideIdentifiers.add(t);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(e,t,n){e.forEach((e=>{this.validateAndRegisterProperties(e,t,e.extensionInfo,e.restrictedProperties,void 0,n),this.configurationContributors.push(e),this.registerJSONConfiguration(e)}))}validateAndRegisterProperties(e,t=!0,n,r,i=3,o){i=s.z(e.scope)?i:e.scope;const a=e.properties;if(a)for(const c in a){const e=a[c];t&&S(c,e)?delete a[c]:(e.source=n,e.defaultDefaultValue=a[c].default,this.updatePropertyDefaultValue(c,e),y.test(c)?e.scope=void 0:(e.scope=s.z(e.scope)?i:e.scope,e.restricted=s.z(e.restricted)?!!r?.includes(c):e.restricted),!a[c].hasOwnProperty("included")||a[c].included?(this.configurationProperties[c]=a[c],a[c].policy?.name&&this.policyConfigurations.set(a[c].policy.name,c),!a[c].deprecationMessage&&a[c].markdownDeprecationMessage&&(a[c].deprecationMessage=a[c].markdownDeprecationMessage),o.add(c)):(this.excludedConfigurationProperties[c]=a[c],delete a[c]))}const l=e.allOf;if(l)for(const s of l)this.validateAndRegisterProperties(s,t,n,r,i,o)}getConfigurationProperties(){return this.configurationProperties}getPolicyConfigurations(){return this.policyConfigurations}registerJSONConfiguration(e){const t=e=>{const n=e.properties;if(n)for(const t in n)this.updateSchema(t,n[t]);const r=e.allOf;r?.forEach(t)};t(e)}updateSchema(e,t){switch(u.properties[e]=t,t.scope){case 1:d.properties[e]=t;break;case 2:g.properties[e]=t;break;case 6:f.properties[e]=t;break;case 3:m.properties[e]=t;break;case 4:p.properties[e]=t;break;case 5:p.properties[e]=t,this.resourceLanguageSettingsSchema.properties[e]=t}}updateOverridePropertyPatternKey(){for(const e of this.overrideIdentifiers.values()){const t=`[${e}]`,n={type:"object",description:o.kg("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:o.kg("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:b};this.updatePropertyDefaultValue(t,n),u.properties[t]=n,d.properties[t]=n,g.properties[t]=n,f.properties[t]=n,m.properties[t]=n,p.properties[t]=n}}registerOverridePropertyPatternKey(){const e={type:"object",description:o.kg("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:o.kg("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:b};u.patternProperties[C]=e,d.patternProperties[C]=e,g.patternProperties[C]=e,f.patternProperties[C]=e,m.patternProperties[C]=e,p.patternProperties[C]=e,this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,t){const n=this.configurationDefaultsOverrides.get(e)?.configurationDefaultOverrideValue;let r,i;!n||t.disallowConfigurationDefault&&n.source||(r=n.value,i=n.source),s.b0(r)&&(r=t.defaultDefaultValue,i=void 0),s.b0(r)&&(r=function(e){switch(Array.isArray(e)?e[0]:e){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}(t.type)),t.default=r,t.defaultValueSource=i}};function S(e,t){return e.trim()?y.test(e)?o.kg("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e):void 0!==w.getConfigurationProperties()[e]?o.kg("config.property.duplicate","Cannot register '{0}'. This property is already registered.",e):t.policy?.name&&void 0!==w.getPolicyConfigurations().get(t.policy?.name)?o.kg("config.policy.duplicate","Cannot register '{0}'. The associated policy {1} is already registered with {2}.",e,t.policy?.name,w.getPolicyConfigurations().get(t.policy?.name)):null:o.kg("config.property.empty","Cannot register an empty property")}c.O.add(h.Configuration,w)},1674:(e,t,n)=>{"use strict";n.d(t,{$l:()=>a,Gs:()=>d,MB:()=>o,Sw:()=>h,bb:()=>c,gN:()=>l,pJ:()=>u});var r=n(1090);const i="undefined"!==typeof Buffer;new r.d((()=>new Uint8Array(256)));let s;class o{static wrap(e){return i&&!Buffer.isBuffer(e)&&(e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),new o(e)}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}toString(){return i?this.buffer.toString():(s||(s=new TextDecoder),s.decode(this.buffer))}}function a(e,t){return(e[t+0]|0)>>>0|e[t+1]<<8>>>0}function l(e,t,n){e[n+0]=255&t,t>>>=8,e[n+1]=255&t}function c(e,t){return e[t]*2**24+65536*e[t+1]+256*e[t+2]+e[t+3]}function h(e,t,n){e[n+3]=t,t>>>=8,e[n+2]=t,t>>>=8,e[n+1]=t,t>>>=8,e[n]=t}function u(e,t){return e[t]}function d(e,t,n){e[n]=t}},1773:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DefaultModelSHA1Computer:()=>yi,ModelService:()=>Ci});var r=n(1234),i=n(1484),s=n(8067),o=n(9861),a=n(7661),l=n(4383),c=n(1508),h=n(9400),u=n(4454);class d{static _nextVisibleColumn(e,t,n){return 9===e?d.nextRenderTabStop(t,n):c.ne(e)||c.Ss(e)?t+2:t+1}static visibleColumnFromColumn(e,t,n){const r=Math.min(t-1,e.length),i=e.substring(0,r),s=new c.km(i);let o=0;for(;!s.eol();){const e=c.Z5(i,r,s.offset);s.nextGraphemeLength(),o=this._nextVisibleColumn(e,o,n)}return o}static columnFromVisibleColumn(e,t,n){if(t<=0)return 1;const r=e.length,i=new c.km(e);let s=0,o=1;for(;!i.eol();){const a=c.Z5(e,r,i.offset);i.nextGraphemeLength();const l=this._nextVisibleColumn(a,s,n),h=i.offset+1;if(l>=t){return l-t<t-s?h:o}s=l,o=h}return r+1}static nextRenderTabStop(e,t){return e+t-e%t}static nextIndentTabStop(e,t){return e+t-e%t}static prevRenderTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}static prevIndentTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}}function g(e,t,n){let r=c.HG(e);return-1===r&&(r=e.length),function(e,t,n){let r=0;for(let s=0;s<e.length;s++)"\t"===e.charAt(s)?r=d.nextIndentTabStop(r,t):r++;let i="";if(!n){const e=Math.floor(r/t);r%=t;for(let t=0;t<e;t++)i+="\t"}for(let s=0;s<r;s++)i+=" ";return i}(e.substring(0,r),t,n)+e.substring(r)}var f=n(3069),m=n(6677),p=n(5326);const b={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}};var _,k=n(154),v=n(6486);!function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(_||(_={}));class C{constructor(e){if(this._neutralCharacter=null,this._neutralCharacterSearched=!1,this.open=e.open,this.close=e.close,this._inString=!0,this._inComment=!0,this._inRegEx=!0,Array.isArray(e.notIn))for(let t=0,n=e.notIn.length;t<n;t++){switch(e.notIn[t]){case"string":this._inString=!1;break;case"comment":this._inComment=!1;break;case"regex":this._inRegEx=!1}}}isOK(e){switch(e){case 0:return!0;case 1:return this._inComment;case 2:return this._inString;case 3:return this._inRegEx}}shouldAutoClose(e,t){if(0===e.getTokenCount())return!0;const n=e.findTokenIndexAtOffset(t-2),r=e.getStandardTokenType(n);return this.isOK(r)}_findNeutralCharacterInRange(e,t){for(let n=e;n<=t;n++){const e=String.fromCharCode(n);if(!this.open.includes(e)&&!this.close.includes(e))return e}return null}findNeutralCharacter(){return this._neutralCharacterSearched||(this._neutralCharacterSearched=!0,this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(48,57)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(97,122)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(65,90))),this._neutralCharacter}}class y{constructor(e){this.autoClosingPairsOpenByStart=new Map,this.autoClosingPairsOpenByEnd=new Map,this.autoClosingPairsCloseByStart=new Map,this.autoClosingPairsCloseByEnd=new Map,this.autoClosingPairsCloseSingleChar=new Map;for(const t of e)L(this.autoClosingPairsOpenByStart,t.open.charAt(0),t),L(this.autoClosingPairsOpenByEnd,t.open.charAt(t.open.length-1),t),L(this.autoClosingPairsCloseByStart,t.close.charAt(0),t),L(this.autoClosingPairsCloseByEnd,t.close.charAt(t.close.length-1),t),1===t.close.length&&1===t.open.length&&L(this.autoClosingPairsCloseSingleChar,t.close,t)}}function L(e,t,n){e.has(t)?e.get(t).push(n):e.set(t,[n])}class w{static{this.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES=";:.,=}])> \n\t"}static{this.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS="'\"`;:.,=}])> \n\t"}constructor(e){if(e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map((e=>new C(e))):e.brackets?this._autoClosingPairs=e.brackets.map((e=>new C({open:e[0],close:e[1]}))):this._autoClosingPairs=[],e.__electricCharacterSupport&&e.__electricCharacterSupport.docComment){const t=e.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new C({open:t.open,close:t.close||""}))}this._autoCloseBeforeForQuotes="string"===typeof e.autoCloseBefore?e.autoCloseBefore:w.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES,this._autoCloseBeforeForBrackets="string"===typeof e.autoCloseBefore?e.autoCloseBefore:w.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS,this._surroundingPairs=e.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(e){return e?this._autoCloseBeforeForQuotes:this._autoCloseBeforeForBrackets}getSurroundingPairs(){return this._surroundingPairs}}function S(e){return 0!==(3&e)}var x=n(1674);let E,N,T;function A(){return E||(E=new TextDecoder("UTF-16LE")),E}function I(){return T||(T=s.cm()?A():(N||(N=new TextDecoder("UTF-16BE")),N)),T}function O(e,t,n){const r=new Uint16Array(e.buffer,t,n);return n>0&&(65279===r[0]||65534===r[0])?function(e,t,n){const r=[];let i=0;for(let s=0;s<n;s++){const n=x.$l(e,t);t+=2,r[i++]=String.fromCharCode(n)}return r.join("")}(e,t,n):A().decode(r)}class M{constructor(e,t,n,r,i,s){this._richEditBracketBrand=void 0,this.languageId=e,this.index=t,this.open=n,this.close=r,this.forwardRegex=i,this.reversedRegex=s,this._openSet=M._toSet(this.open),this._closeSet=M._toSet(this.close)}isOpen(e){return this._openSet.has(e)}isClose(e){return this._closeSet.has(e)}static _toSet(e){const t=new Set;for(const n of e)t.add(n);return t}}class R{constructor(e,t){this._richEditBracketsBrand=void 0;const n=function(e){const t=e.length;e=e.map((e=>[e[0].toLowerCase(),e[1].toLowerCase()]));const n=[];for(let o=0;o<t;o++)n[o]=o;const r=(e,t)=>{const[n,r]=e,[i,s]=t;return n===i||n===s||r===i||r===s},i=(e,r)=>{const i=Math.min(e,r),s=Math.max(e,r);for(let o=0;o<t;o++)n[o]===s&&(n[o]=i)};for(let o=0;o<t;o++){const s=e[o];for(let a=o+1;a<t;a++)r(s,e[a])&&i(n[o],n[a])}const s=[];for(let o=0;o<t;o++){const r=[],i=[];for(let s=0;s<t;s++)if(n[s]===o){const[t,n]=e[s];r.push(t),i.push(n)}r.length>0&&s.push({open:r,close:i})}return s}(t);this.brackets=n.map(((t,r)=>new M(e,r,t.open,t.close,function(e,t,n,r){let i=[];i=i.concat(e),i=i.concat(t);for(let s=0,o=i.length;s<o;s++)D(i[s],n,r,i);return i=F(i),i.sort(B),i.reverse(),V(i)}(t.open,t.close,n,r),function(e,t,n,r){let i=[];i=i.concat(e),i=i.concat(t);for(let s=0,o=i.length;s<o;s++)D(i[s],n,r,i);return i=F(i),i.sort(B),i.reverse(),V(i.map(z))}(t.open,t.close,n,r)))),this.forwardRegex=function(e){let t=[];for(const n of e){for(const e of n.open)t.push(e);for(const e of n.close)t.push(e)}return t=F(t),V(t)}(this.brackets),this.reversedRegex=function(e){let t=[];for(const n of e){for(const e of n.open)t.push(e);for(const e of n.close)t.push(e)}return t=F(t),V(t.map(z))}(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(const r of this.brackets){for(const e of r.open)this.textIsBracket[e]=r,this.textIsOpenBracket[e]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,e.length);for(const e of r.close)this.textIsBracket[e]=r,this.textIsOpenBracket[e]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,e.length)}}}function D(e,t,n,r){for(let i=0,s=t.length;i<s;i++){if(i===n)continue;const s=t[i];for(const t of s.open)t.indexOf(e)>=0&&r.push(t);for(const t of s.close)t.indexOf(e)>=0&&r.push(t)}}function B(e,t){return e.length-t.length}function F(e){if(e.length<=1)return e;const t=[],n=new Set;for(const r of e)n.has(r)||(t.push(r),n.add(r));return t}function P(e){const t=/^[\w ]+$/.test(e);return e=c.bm(e),t?`\\b${e}\\b`:e}function V(e,t){const n=`(${e.map(P).join(")|(")})`;return c.OS(n,!0,t)}const z=function(){let e=null,t=null;return function(n){return e!==n&&(e=n,t=function(e){const t=new Uint16Array(e.length);let n=0;for(let r=e.length-1;r>=0;r--)t[n++]=e.charCodeAt(r);return I().decode(t)}(e)),t}}();class j{static _findPrevBracketInText(e,t,n,r){const i=n.match(e);if(!i)return null;const s=n.length-(i.index||0),o=i[0].length,a=r+s;return new m.Q(t,a-o+1,t,a+1)}static findPrevBracketInRange(e,t,n,r,i){const s=z(n).substring(n.length-i,n.length-r);return this._findPrevBracketInText(e,t,s,r)}static findNextBracketInText(e,t,n,r){const i=n.match(e);if(!i)return null;const s=i.index||0,o=i[0].length;if(0===o)return null;const a=r+s;return new m.Q(t,a+1,t,a+1+o)}static findNextBracketInRange(e,t,n,r,i){const s=n.substring(r,i);return this.findNextBracketInText(e,t,s,r)}}class q{constructor(e){this._richEditBrackets=e}getElectricCharacters(){const e=[];if(this._richEditBrackets)for(const t of this._richEditBrackets.brackets)for(const n of t.close){const t=n.charAt(n.length-1);e.push(t)}return(0,o.dM)(e)}onElectricCharacter(e,t,n){if(!this._richEditBrackets||0===this._richEditBrackets.brackets.length)return null;const r=t.findTokenIndexAtOffset(n-1);if(S(t.getStandardTokenType(r)))return null;const i=this._richEditBrackets.reversedRegex,s=t.getLineContent().substring(0,n-1)+e,o=j.findPrevBracketInRange(i,1,s,0,s.length);if(!o)return null;const a=s.substring(o.startColumn-1,o.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[a])return null;const l=t.getActualLineContentBefore(o.startColumn-1);return/^\s*$/.test(l)?{matchOpenBracket:a}:null}}function W(e){return e.global&&(e.lastIndex=0),!0}class U{constructor(e){this._indentationRules=e}shouldIncrease(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&W(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(e))}shouldDecrease(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&W(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(e))}shouldIndentNextLine(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&W(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(e))}shouldIgnore(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&W(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(e))}getIndentMetadata(e){let t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t}}class ${constructor(e){(e=e||{}).brackets=e.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],e.brackets.forEach((e=>{const t=$._createOpenBracketRegExp(e[0]),n=$._createCloseBracketRegExp(e[1]);t&&n&&this._brackets.push({open:e[0],openRegExp:t,close:e[1],closeRegExp:n})})),this._regExpRules=e.onEnterRules||[]}onEnter(e,t,n,r){if(e>=3)for(let i=0,s=this._regExpRules.length;i<s;i++){const e=this._regExpRules[i];if([{reg:e.beforeText,text:n},{reg:e.afterText,text:r},{reg:e.previousLineText,text:t}].every((e=>!e.reg||(e.reg.lastIndex=0,e.reg.test(e.text)))))return e.action}if(e>=2&&n.length>0&&r.length>0)for(let i=0,s=this._brackets.length;i<s;i++){const e=this._brackets[i];if(e.openRegExp.test(n)&&e.closeRegExp.test(r))return{indentAction:_.IndentOutdent}}if(e>=2&&n.length>0)for(let i=0,s=this._brackets.length;i<s;i++){if(this._brackets[i].openRegExp.test(n))return{indentAction:_.Indent}}return null}static _createOpenBracketRegExp(e){let t=c.bm(e);return/\B/.test(t.charAt(0))||(t="\\b"+t),t+="\\s*$",$._safeRegExp(t)}static _createCloseBracketRegExp(e){let t=c.bm(e);return/\B/.test(t.charAt(t.length-1))||(t+="\\b"),t="^\\s*"+t,$._safeRegExp(t)}static _safeRegExp(e){try{return new RegExp(e)}catch(t){return(0,l.dz)(t),null}}}var H=n(3591),K=n(4001),G=n(4621),Q=n(3941),J=n(1788);class X{constructor(e,t){this.languageId=e;const n=t.brackets?Y(t.brackets):[],r=new J.VV((e=>{const t=new Set;return{info:new ee(this,e,t),closing:t}})),i=new J.VV((e=>{const t=new Set,n=new Set;return{info:new te(this,e,t,n),opening:t,openingColorized:n}}));for(const[o,a]of n){const e=r.get(o),t=i.get(a);e.closing.add(t.info),t.opening.add(e.info)}const s=t.colorizedBracketPairs?Y(t.colorizedBracketPairs):n.filter((e=>!("<"===e[0]&&">"===e[1])));for(const[o,a]of s){const e=r.get(o),t=i.get(a);e.closing.add(t.info),t.openingColorized.add(e.info),t.opening.add(e.info)}this._openingBrackets=new Map([...r.cachedValues].map((([e,t])=>[e,t.info]))),this._closingBrackets=new Map([...i.cachedValues].map((([e,t])=>[e,t.info])))}get openingBrackets(){return[...this._openingBrackets.values()]}get closingBrackets(){return[...this._closingBrackets.values()]}getOpeningBracketInfo(e){return this._openingBrackets.get(e)}getClosingBracketInfo(e){return this._closingBrackets.get(e)}getBracketInfo(e){return this.getOpeningBracketInfo(e)||this.getClosingBracketInfo(e)}getBracketRegExp(e){return V(Array.from([...this._openingBrackets.keys(),...this._closingBrackets.keys()]),e)}}function Y(e){return e.filter((([e,t])=>""!==e&&""!==t))}class Z{constructor(e,t){this.config=e,this.bracketText=t}get languageId(){return this.config.languageId}}class ee extends Z{constructor(e,t,n){super(e,t),this.openedBrackets=n,this.isOpeningBracket=!0}}class te extends Z{constructor(e,t,n,r){super(e,t),this.openingBrackets=n,this.openingColorizedBrackets=r,this.isOpeningBracket=!1}closes(e){return e.config===this.config&&this.openingBrackets.has(e)}closesColorized(e){return e.config===this.config&&this.openingColorizedBrackets.has(e)}getOpeningBrackets(){return[...this.openingBrackets]}}var ne=function(e,t,n,r){var i,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,n,o):i(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},re=function(e,t){return function(n,r){t(n,r,e)}};class ie{constructor(e){this.languageId=e}affects(e){return!this.languageId||this.languageId===e}}const se=(0,H.u1)("languageConfigurationService");let oe=class extends i.jG{constructor(e,t){super(),this.configurationService=e,this.languageService=t,this._registry=this._register(new ge),this.onDidChangeEmitter=this._register(new r.vl),this.onDidChange=this.onDidChangeEmitter.event,this.configurations=new Map;const n=new Set(Object.values(ae));this._register(this.configurationService.onDidChangeConfiguration((e=>{const t=e.change.keys.some((e=>n.has(e))),r=e.change.overrides.filter((([e,t])=>t.some((e=>n.has(e))))).map((([e])=>e));if(t)this.configurations.clear(),this.onDidChangeEmitter.fire(new ie(void 0));else for(const n of r)this.languageService.isRegisteredLanguageId(n)&&(this.configurations.delete(n),this.onDidChangeEmitter.fire(new ie(n)))}))),this._register(this._registry.onDidChange((e=>{this.configurations.delete(e.languageId),this.onDidChangeEmitter.fire(new ie(e.languageId))})))}register(e,t,n){return this._registry.register(e,t,n)}getLanguageConfiguration(e){let t=this.configurations.get(e);return t||(t=function(e,t,n,r){let i=t.getLanguageConfiguration(e);if(!i){if(!r.isRegisteredLanguageId(e))return new fe(e,{});i=new fe(e,{})}const s=function(e,t){const n=t.getValue(ae.brackets,{overrideIdentifier:e}),r=t.getValue(ae.colorizedBracketPairs,{overrideIdentifier:e});return{brackets:le(n),colorizedBracketPairs:le(r)}}(i.languageId,n),o=he([i.underlyingConfig,s]);return new fe(i.languageId,o)}(e,this._registry,this.configurationService,this.languageService),this.configurations.set(e,t)),t}};oe=ne([re(0,K.pG),re(1,k.L)],oe);const ae={brackets:"editor.language.brackets",colorizedBracketPairs:"editor.language.colorizedBracketPairs"};function le(e){if(Array.isArray(e))return e.map((e=>{if(Array.isArray(e)&&2===e.length)return[e[0],e[1]]})).filter((e=>!!e))}class ce{constructor(e){this.languageId=e,this._resolved=null,this._entries=[],this._order=0,this._resolved=null}register(e,t){const n=new ue(e,t,++this._order);return this._entries.push(n),this._resolved=null,(0,i.s)((()=>{for(let e=0;e<this._entries.length;e++)if(this._entries[e]===n){this._entries.splice(e,1),this._resolved=null;break}}))}getResolvedConfiguration(){if(!this._resolved){const e=this._resolve();e&&(this._resolved=new fe(this.languageId,e))}return this._resolved}_resolve(){return 0===this._entries.length?null:(this._entries.sort(ue.cmp),he(this._entries.map((e=>e.configuration))))}}function he(e){let t={comments:void 0,brackets:void 0,wordPattern:void 0,indentationRules:void 0,onEnterRules:void 0,autoClosingPairs:void 0,surroundingPairs:void 0,autoCloseBefore:void 0,folding:void 0,colorizedBracketPairs:void 0,__electricCharacterSupport:void 0};for(const n of e)t={comments:n.comments||t.comments,brackets:n.brackets||t.brackets,wordPattern:n.wordPattern||t.wordPattern,indentationRules:n.indentationRules||t.indentationRules,onEnterRules:n.onEnterRules||t.onEnterRules,autoClosingPairs:n.autoClosingPairs||t.autoClosingPairs,surroundingPairs:n.surroundingPairs||t.surroundingPairs,autoCloseBefore:n.autoCloseBefore||t.autoCloseBefore,folding:n.folding||t.folding,colorizedBracketPairs:n.colorizedBracketPairs||t.colorizedBracketPairs,__electricCharacterSupport:n.__electricCharacterSupport||t.__electricCharacterSupport};return t}class ue{constructor(e,t,n){this.configuration=e,this.priority=t,this.order=n}static cmp(e,t){return e.priority===t.priority?e.order-t.order:e.priority-t.priority}}class de{constructor(e){this.languageId=e}}class ge extends i.jG{constructor(){super(),this._entries=new Map,this._onDidChange=this._register(new r.vl),this.onDidChange=this._onDidChange.event,this._register(this.register(Q.vH,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],colorizedBracketPairs:[],folding:{offSide:!0}},0))}register(e,t,n=0){let r=this._entries.get(e);r||(r=new ce(e),this._entries.set(e,r));const s=r.register(t,n);return this._onDidChange.fire(new de(e)),(0,i.s)((()=>{s.dispose(),this._onDidChange.fire(new de(e))}))}getLanguageConfiguration(e){const t=this._entries.get(e);return t?.getResolvedConfiguration()||null}}class fe{constructor(e,t){this.languageId=e,this.underlyingConfig=t,this._brackets=null,this._electricCharacter=null,this._onEnterSupport=this.underlyingConfig.brackets||this.underlyingConfig.indentationRules||this.underlyingConfig.onEnterRules?new $(this.underlyingConfig):null,this.comments=fe._handleComments(this.underlyingConfig),this.characterPair=new w(this.underlyingConfig),this.wordDefinition=this.underlyingConfig.wordPattern||v.Ld,this.indentationRules=this.underlyingConfig.indentationRules,this.underlyingConfig.indentationRules?this.indentRulesSupport=new U(this.underlyingConfig.indentationRules):this.indentRulesSupport=null,this.foldingRules=this.underlyingConfig.folding||{},this.bracketsNew=new X(e,this.underlyingConfig)}getWordDefinition(){return(0,v.Io)(this.wordDefinition)}get brackets(){return!this._brackets&&this.underlyingConfig.brackets&&(this._brackets=new R(this.languageId,this.underlyingConfig.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new q(this.brackets)),this._electricCharacter}onEnter(e,t,n,r){return this._onEnterSupport?this._onEnterSupport.onEnter(e,t,n,r):null}getAutoClosingPairs(){return new y(this.characterPair.getAutoClosingPairs())}getAutoCloseBeforeSet(e){return this.characterPair.getAutoCloseBeforeSet(e)}getSurroundingPairs(){return this.characterPair.getSurroundingPairs()}static _handleComments(e){const t=e.comments;if(!t)return null;const n={};if(t.lineComment&&(n.lineCommentToken=t.lineComment),t.blockComment){const[e,r]=t.blockComment;n.blockCommentStartToken=e,n.blockCommentEndToken=r}return n}}(0,G.v)(se,oe,1);var me=n(6223);class pe{constructor(e,t,n,r){this.range=e,this.nestingLevel=t,this.nestingLevelOfEqualBracketType=n,this.isInvalid=r}}class be{constructor(e,t,n,r,i,s){this.range=e,this.openingBracketRange=t,this.closingBracketRange=n,this.nestingLevel=r,this.nestingLevelOfEqualBracketType=i,this.bracketPairNode=s}get openingBracketInfo(){return this.bracketPairNode.openingBracket.bracketInfo}}class _e extends be{constructor(e,t,n,r,i,s,o){super(e,t,n,r,i,s),this.minVisibleColumnIndentation=o}}var ke=n(973);function ve(e){return 0===e}const Ce=2**26;function ye(e,t){return e*Ce+t}function Le(e){const t=e,n=Math.floor(t/Ce),r=t-n*Ce;return new ke.W(n,r)}function we(e,t){let n=e+t;return t>=Ce&&(n-=e%Ce),n}function Se(e,t){return e.reduce(((e,n)=>we(e,t(n))),0)}function xe(e,t){return e===t}function Ee(e,t){const n=e,r=t;if(r-n<=0)return 0;const i=Math.floor(n/Ce),s=Math.floor(r/Ce),o=r-s*Ce;if(i===s){return ye(0,o-(n-i*Ce))}return ye(s-i,o)}function Ne(e,t){return e<t}function Te(e,t){return e<=t}function Ae(e,t){return e>=t}function Ie(e){return ye(e.lineNumber-1,e.column-1)}function Oe(e,t){const n=e,r=Math.floor(n/Ce),i=n-r*Ce,s=t,o=Math.floor(s/Ce),a=s-o*Ce;return new m.Q(r+1,i+1,o+1,a+1)}class Me{static fromModelContentChanges(e){return e.map((e=>{const t=m.Q.lift(e.range);return new Me(Ie(t.getStartPosition()),Ie(t.getEndPosition()),function(e){const t=(0,c.uz)(e);return ye(t.length-1,t[t.length-1].length)}(e.text))})).reverse()}constructor(e,t,n){this.startOffset=e,this.endOffset=t,this.newLength=n}toString(){return`[${Le(this.startOffset)}...${Le(this.endOffset)}) -> ${Le(this.newLength)}`}}class Re{constructor(e){this.nextEditIdx=0,this.deltaOldToNewLineCount=0,this.deltaOldToNewColumnCount=0,this.deltaLineIdxInOld=-1,this.edits=e.map((e=>De.from(e)))}getOffsetBeforeChange(e){return this.adjustNextEdit(e),this.translateCurToOld(e)}getDistanceToNextChange(e){this.adjustNextEdit(e);const t=this.edits[this.nextEditIdx],n=t?this.translateOldToCur(t.offsetObj):null;return null===n?null:Ee(e,n)}translateOldToCur(e){return e.lineCount===this.deltaLineIdxInOld?ye(e.lineCount+this.deltaOldToNewLineCount,e.columnCount+this.deltaOldToNewColumnCount):ye(e.lineCount+this.deltaOldToNewLineCount,e.columnCount)}translateCurToOld(e){const t=Le(e);return t.lineCount-this.deltaOldToNewLineCount===this.deltaLineIdxInOld?ye(t.lineCount-this.deltaOldToNewLineCount,t.columnCount-this.deltaOldToNewColumnCount):ye(t.lineCount-this.deltaOldToNewLineCount,t.columnCount)}adjustNextEdit(e){for(;this.nextEditIdx<this.edits.length;){const t=this.edits[this.nextEditIdx],n=this.translateOldToCur(t.endOffsetAfterObj);if(!Te(n,e))break;{this.nextEditIdx++;const e=Le(n),r=Le(this.translateOldToCur(t.endOffsetBeforeObj)),i=e.lineCount-r.lineCount;this.deltaOldToNewLineCount+=i;const s=this.deltaLineIdxInOld===t.endOffsetBeforeObj.lineCount?this.deltaOldToNewColumnCount:0,o=e.columnCount-r.columnCount;this.deltaOldToNewColumnCount=s+o,this.deltaLineIdxInOld=t.endOffsetBeforeObj.lineCount}}}}class De{static from(e){return new De(e.startOffset,e.endOffset,e.newLength)}constructor(e,t,n){this.endOffsetBeforeObj=Le(t),this.endOffsetAfterObj=Le(we(e,n)),this.offsetObj=Le(e)}}const Be=[];class Fe{static{this.cache=new Array(129)}static create(e,t){if(e<=128&&0===t.length){let n=Fe.cache[e];return n||(n=new Fe(e,t),Fe.cache[e]=n),n}return new Fe(e,t)}static{this.empty=Fe.create(0,Be)}static getEmpty(){return this.empty}constructor(e,t){this.items=e,this.additionalItems=t}add(e,t){const n=t.getKey(e);let r=n>>5;if(0===r){const e=1<<n|this.items;return e===this.items?this:Fe.create(e,this.additionalItems)}r--;const i=this.additionalItems.slice(0);for(;i.length<r;)i.push(0);return i[r]|=1<<(31&n),Fe.create(this.items,i)}merge(e){const t=this.items|e.items;if(this.additionalItems===Be&&e.additionalItems===Be)return t===this.items?this:t===e.items?e:Fe.create(t,Be);const n=[];for(let r=0;r<Math.max(this.additionalItems.length,e.additionalItems.length);r++){const t=this.additionalItems[r]||0,i=e.additionalItems[r]||0;n.push(t|i)}return Fe.create(t,n)}intersects(e){if(0!==(this.items&e.items))return!0;for(let t=0;t<Math.min(this.additionalItems.length,e.additionalItems.length);t++)if(0!==(this.additionalItems[t]&e.additionalItems[t]))return!0;return!1}}const Pe={getKey:e=>e};class Ve{constructor(){this.items=new Map}getKey(e){let t=this.items.get(e);return void 0===t&&(t=this.items.size,this.items.set(e,t)),t}}class ze{get length(){return this._length}constructor(e){this._length=e}}class je extends ze{static create(e,t,n){let r=e.length;return t&&(r=we(r,t.length)),n&&(r=we(r,n.length)),new je(r,e,t,n,t?t.missingOpeningBracketIds:Fe.getEmpty())}get kind(){return 2}get listHeight(){return 0}get childrenLength(){return 3}getChild(e){switch(e){case 0:return this.openingBracket;case 1:return this.child;case 2:return this.closingBracket}throw new Error("Invalid child index")}get children(){const e=[];return e.push(this.openingBracket),this.child&&e.push(this.child),this.closingBracket&&e.push(this.closingBracket),e}constructor(e,t,n,r,i){super(e),this.openingBracket=t,this.child=n,this.closingBracket=r,this.missingOpeningBracketIds=i}canBeReused(e){return null!==this.closingBracket&&!e.intersects(this.missingOpeningBracketIds)}deepClone(){return new je(this.length,this.openingBracket.deepClone(),this.child&&this.child.deepClone(),this.closingBracket&&this.closingBracket.deepClone(),this.missingOpeningBracketIds)}computeMinIndentation(e,t){return this.child?this.child.computeMinIndentation(we(e,this.openingBracket.length),t):Number.MAX_SAFE_INTEGER}}class qe extends ze{static create23(e,t,n,r=!1){let i=e.length,s=e.missingOpeningBracketIds;if(e.listHeight!==t.listHeight)throw new Error("Invalid list heights");if(i=we(i,t.length),s=s.merge(t.missingOpeningBracketIds),n){if(e.listHeight!==n.listHeight)throw new Error("Invalid list heights");i=we(i,n.length),s=s.merge(n.missingOpeningBracketIds)}return r?new Ue(i,e.listHeight+1,e,t,n,s):new We(i,e.listHeight+1,e,t,n,s)}static getEmpty(){return new He(0,0,[],Fe.getEmpty())}get kind(){return 4}get missingOpeningBracketIds(){return this._missingOpeningBracketIds}constructor(e,t,n){super(e),this.listHeight=t,this._missingOpeningBracketIds=n,this.cachedMinIndentation=-1}throwIfImmutable(){}makeLastElementMutable(){this.throwIfImmutable();const e=this.childrenLength;if(0===e)return;const t=this.getChild(e-1),n=4===t.kind?t.toMutable():t;return t!==n&&this.setChild(e-1,n),n}makeFirstElementMutable(){this.throwIfImmutable();if(0===this.childrenLength)return;const e=this.getChild(0),t=4===e.kind?e.toMutable():e;return e!==t&&this.setChild(0,t),t}canBeReused(e){if(e.intersects(this.missingOpeningBracketIds))return!1;if(0===this.childrenLength)return!1;let t=this;for(;4===t.kind;){const e=t.childrenLength;if(0===e)throw new l.D7;t=t.getChild(e-1)}return t.canBeReused(e)}handleChildrenChanged(){this.throwIfImmutable();const e=this.childrenLength;let t=this.getChild(0).length,n=this.getChild(0).missingOpeningBracketIds;for(let r=1;r<e;r++){const e=this.getChild(r);t=we(t,e.length),n=n.merge(e.missingOpeningBracketIds)}this._length=t,this._missingOpeningBracketIds=n,this.cachedMinIndentation=-1}computeMinIndentation(e,t){if(-1!==this.cachedMinIndentation)return this.cachedMinIndentation;let n=Number.MAX_SAFE_INTEGER,r=e;for(let i=0;i<this.childrenLength;i++){const e=this.getChild(i);e&&(n=Math.min(n,e.computeMinIndentation(r,t)),r=we(r,e.length))}return this.cachedMinIndentation=n,n}}class We extends qe{get childrenLength(){return null!==this._item3?3:2}getChild(e){switch(e){case 0:return this._item1;case 1:return this._item2;case 2:return this._item3}throw new Error("Invalid child index")}setChild(e,t){switch(e){case 0:return void(this._item1=t);case 1:return void(this._item2=t);case 2:return void(this._item3=t)}throw new Error("Invalid child index")}get children(){return this._item3?[this._item1,this._item2,this._item3]:[this._item1,this._item2]}get item1(){return this._item1}get item2(){return this._item2}get item3(){return this._item3}constructor(e,t,n,r,i,s){super(e,t,s),this._item1=n,this._item2=r,this._item3=i}deepClone(){return new We(this.length,this.listHeight,this._item1.deepClone(),this._item2.deepClone(),this._item3?this._item3.deepClone():null,this.missingOpeningBracketIds)}appendChildOfSameHeight(e){if(this._item3)throw new Error("Cannot append to a full (2,3) tree node");this.throwIfImmutable(),this._item3=e,this.handleChildrenChanged()}unappendChild(){if(!this._item3)throw new Error("Cannot remove from a non-full (2,3) tree node");this.throwIfImmutable();const e=this._item3;return this._item3=null,this.handleChildrenChanged(),e}prependChildOfSameHeight(e){if(this._item3)throw new Error("Cannot prepend to a full (2,3) tree node");this.throwIfImmutable(),this._item3=this._item2,this._item2=this._item1,this._item1=e,this.handleChildrenChanged()}unprependChild(){if(!this._item3)throw new Error("Cannot remove from a non-full (2,3) tree node");this.throwIfImmutable();const e=this._item1;return this._item1=this._item2,this._item2=this._item3,this._item3=null,this.handleChildrenChanged(),e}toMutable(){return this}}class Ue extends We{toMutable(){return new We(this.length,this.listHeight,this.item1,this.item2,this.item3,this.missingOpeningBracketIds)}throwIfImmutable(){throw new Error("this instance is immutable")}}class $e extends qe{get childrenLength(){return this._children.length}getChild(e){return this._children[e]}setChild(e,t){this._children[e]=t}get children(){return this._children}constructor(e,t,n,r){super(e,t,r),this._children=n}deepClone(){const e=new Array(this._children.length);for(let t=0;t<this._children.length;t++)e[t]=this._children[t].deepClone();return new $e(this.length,this.listHeight,e,this.missingOpeningBracketIds)}appendChildOfSameHeight(e){this.throwIfImmutable(),this._children.push(e),this.handleChildrenChanged()}unappendChild(){this.throwIfImmutable();const e=this._children.pop();return this.handleChildrenChanged(),e}prependChildOfSameHeight(e){this.throwIfImmutable(),this._children.unshift(e),this.handleChildrenChanged()}unprependChild(){this.throwIfImmutable();const e=this._children.shift();return this.handleChildrenChanged(),e}toMutable(){return this}}class He extends $e{toMutable(){return new $e(this.length,this.listHeight,[...this.children],this.missingOpeningBracketIds)}throwIfImmutable(){throw new Error("this instance is immutable")}}const Ke=[];class Ge extends ze{get listHeight(){return 0}get childrenLength(){return 0}getChild(e){return null}get children(){return Ke}deepClone(){return this}}class Qe extends Ge{get kind(){return 0}get missingOpeningBracketIds(){return Fe.getEmpty()}canBeReused(e){return!0}computeMinIndentation(e,t){const n=Le(e),r=(0===n.columnCount?n.lineCount:n.lineCount+1)+1,i=(s=we(e,this.length),Math.floor(s/Ce)+1);var s;let o=Number.MAX_SAFE_INTEGER;for(let a=r;a<=i;a++){const e=t.getLineFirstNonWhitespaceColumn(a),n=t.getLineContent(a);if(0===e)continue;const r=d.visibleColumnFromColumn(n,e,t.getOptions().tabSize);o=Math.min(o,r)}return o}}class Je extends Ge{static create(e,t,n){return new Je(e,t,n)}get kind(){return 1}get missingOpeningBracketIds(){return Fe.getEmpty()}constructor(e,t,n){super(e),this.bracketInfo=t,this.bracketIds=n}get text(){return this.bracketInfo.bracketText}get languageId(){return this.bracketInfo.languageId}canBeReused(e){return!1}computeMinIndentation(e,t){return Number.MAX_SAFE_INTEGER}}class Xe extends Ge{get kind(){return 3}constructor(e,t){super(t),this.missingOpeningBracketIds=e}canBeReused(e){return!e.intersects(this.missingOpeningBracketIds)}computeMinIndentation(e,t){return Number.MAX_SAFE_INTEGER}}var Ye=n(5982);class Ze{constructor(e,t,n,r,i){this.length=e,this.kind=t,this.bracketId=n,this.bracketIds=r,this.astNode=i}}class et{constructor(e,t){this.textModel=e,this.bracketTokens=t,this.reader=new tt(this.textModel,this.bracketTokens),this._offset=0,this.didPeek=!1,this.peeked=null,this.textBufferLineCount=e.getLineCount(),this.textBufferLastLineLength=e.getLineLength(this.textBufferLineCount)}get offset(){return this._offset}get length(){return ye(this.textBufferLineCount-1,this.textBufferLastLineLength)}skip(e){this.didPeek=!1,this._offset=we(this._offset,e);const t=Le(this._offset);this.reader.setPosition(t.lineCount,t.columnCount)}read(){let e;return this.peeked?(this.didPeek=!1,e=this.peeked):e=this.reader.read(),e&&(this._offset=we(this._offset,e.length)),e}peek(){return this.didPeek||(this.peeked=this.reader.read(),this.didPeek=!0),this.peeked}}class tt{constructor(e,t){this.textModel=e,this.bracketTokens=t,this.lineIdx=0,this.line=null,this.lineCharOffset=0,this.lineTokens=null,this.lineTokenOffset=0,this.peekedToken=null,this.textBufferLineCount=e.getLineCount(),this.textBufferLastLineLength=e.getLineLength(this.textBufferLineCount)}setPosition(e,t){e===this.lineIdx?(this.lineCharOffset=t,null!==this.line&&(this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset))):(this.lineIdx=e,this.lineCharOffset=t,this.line=null),this.peekedToken=null}read(){if(this.peekedToken){const e=this.peekedToken;return this.peekedToken=null,this.lineCharOffset+=e.length,e}if(this.lineIdx>this.textBufferLineCount-1||this.lineIdx===this.textBufferLineCount-1&&this.lineCharOffset>=this.textBufferLastLineLength)return null;null===this.line&&(this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.line=this.lineTokens.getLineContent(),this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset));const e=this.lineIdx,t=this.lineCharOffset;let n=0;for(;;){const r=this.lineTokens,i=r.getCount();let s=null;if(this.lineTokenOffset<i){const o=r.getMetadata(this.lineTokenOffset);for(;this.lineTokenOffset+1<i&&o===r.getMetadata(this.lineTokenOffset+1);)this.lineTokenOffset++;const a=0===Ye.x.getTokenType(o),l=Ye.x.containsBalancedBrackets(o),c=r.getEndOffset(this.lineTokenOffset);if(l&&a&&this.lineCharOffset<c){const e=r.getLanguageId(this.lineTokenOffset),t=this.line.substring(this.lineCharOffset,c),n=this.bracketTokens.getSingleLanguageBracketTokens(e),i=n.regExpGlobal;if(i){i.lastIndex=0;const e=i.exec(t);e&&(s=n.getToken(e[0]),s&&(this.lineCharOffset+=e.index))}}if(n+=c-this.lineCharOffset,s){if(e!==this.lineIdx||t!==this.lineCharOffset){this.peekedToken=s;break}return this.lineCharOffset+=s.length,s}this.lineTokenOffset++,this.lineCharOffset=c}else{if(this.lineIdx===this.textBufferLineCount-1)break;if(this.lineIdx++,this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.lineTokenOffset=0,this.line=this.lineTokens.getLineContent(),this.lineCharOffset=0,n+=33,n>1e3)break}if(n>1500)break}const r=(i=e,s=t,o=this.lineIdx,a=this.lineCharOffset,i!==o?ye(o-i,a):ye(0,a-s));var i,s,o,a;return new Ze(r,0,-1,Fe.getEmpty(),new Qe(r))}}class nt{constructor(e,t){this.text=e,this._offset=0,this.idx=0;const n=t.getRegExpStr(),r=n?new RegExp(n+"|\n","gi"):null,i=[];let s,o=0,a=0,l=0,c=0;const h=[];for(let g=0;g<60;g++)h.push(new Ze(ye(0,g),0,-1,Fe.getEmpty(),new Qe(ye(0,g))));const u=[];for(let g=0;g<60;g++)u.push(new Ze(ye(1,g),0,-1,Fe.getEmpty(),new Qe(ye(1,g))));if(r)for(r.lastIndex=0;null!==(s=r.exec(e));){const e=s.index,n=s[0];if("\n"===n)o++,a=e+1;else{if(l!==e){let t;if(c===o){const n=e-l;if(n<h.length)t=h[n];else{const e=ye(0,n);t=new Ze(e,0,-1,Fe.getEmpty(),new Qe(e))}}else{const n=o-c,r=e-a;if(1===n&&r<u.length)t=u[r];else{const e=ye(n,r);t=new Ze(e,0,-1,Fe.getEmpty(),new Qe(e))}}i.push(t)}i.push(t.getToken(n)),l=e+n.length,c=o}}const d=e.length;if(l!==d){const e=c===o?ye(0,d-l):ye(o-c,d-a);i.push(new Ze(e,0,-1,Fe.getEmpty(),new Qe(e)))}this.length=ye(o,d-a),this.tokens=i}get offset(){return this._offset}read(){return this.tokens[this.idx++]||null}peek(){return this.tokens[this.idx]||null}skip(e){throw new l.EM}}class rt{static createFromLanguage(e,t){function n(e){return t.getKey(`${e.languageId}:::${e.bracketText}`)}const r=new Map;for(const i of e.bracketsNew.openingBrackets){const e=ye(0,i.bracketText.length),t=n(i),s=Fe.getEmpty().add(t,Pe);r.set(i.bracketText,new Ze(e,1,t,s,Je.create(e,i,s)))}for(const i of e.bracketsNew.closingBrackets){const e=ye(0,i.bracketText.length);let t=Fe.getEmpty();const s=i.getOpeningBrackets();for(const r of s)t=t.add(n(r),Pe);r.set(i.bracketText,new Ze(e,2,n(s[0]),t,Je.create(e,i,t)))}return new rt(r)}constructor(e){this.map=e,this.hasRegExp=!1,this._regExpGlobal=null}getRegExpStr(){if(this.isEmpty)return null;{const e=[...this.map.keys()];return e.sort(),e.reverse(),e.map((e=>function(e){let t=(0,c.bm)(e);/^[\w ]+/.test(e)&&(t=`\\b${t}`);/[\w ]+$/.test(e)&&(t=`${t}\\b`);return t}(e))).join("|")}}get regExpGlobal(){if(!this.hasRegExp){const e=this.getRegExpStr();this._regExpGlobal=e?new RegExp(e,"gi"):null,this.hasRegExp=!0}return this._regExpGlobal}getToken(e){return this.map.get(e.toLowerCase())}findClosingTokenText(e){for(const[t,n]of this.map)if(2===n.kind&&n.bracketIds.intersects(e))return t}get isEmpty(){return 0===this.map.size}}class it{constructor(e,t){this.denseKeyProvider=e,this.getLanguageConfiguration=t,this.languageIdToBracketTokens=new Map}didLanguageChange(e){return this.languageIdToBracketTokens.has(e)}getSingleLanguageBracketTokens(e){let t=this.languageIdToBracketTokens.get(e);return t||(t=rt.createFromLanguage(this.getLanguageConfiguration(e),this.denseKeyProvider),this.languageIdToBracketTokens.set(e,t)),t}}function st(e,t=!1){if(0===e.length)return null;if(1===e.length)return e[0];let n=e.length;for(;n>3;){const r=n>>1;for(let i=0;i<r;i++){const r=i<<1;e[i]=qe.create23(e[r],e[r+1],r+3===n?e[r+2]:null,t)}n=r}return qe.create23(e[0],e[1],n>=3?e[2]:null,t)}function ot(e,t){return Math.abs(e.listHeight-t.listHeight)}function at(e,t){return e.listHeight===t.listHeight?qe.create23(e,t,null,!1):e.listHeight>t.listHeight?function(e,t){let n=e=e.toMutable();const r=[];let i;for(;;){if(t.listHeight===n.listHeight){i=t;break}if(4!==n.kind)throw new Error("unexpected");r.push(n),n=n.makeLastElementMutable()}for(let s=r.length-1;s>=0;s--){const e=r[s];i?e.childrenLength>=3?i=qe.create23(e.unappendChild(),i,null,!1):(e.appendChildOfSameHeight(i),i=void 0):e.handleChildrenChanged()}return i?qe.create23(e,i,null,!1):e}(e,t):function(e,t){let n=e=e.toMutable();const r=[];for(;t.listHeight!==n.listHeight;){if(4!==n.kind)throw new Error("unexpected");r.push(n),n=n.makeFirstElementMutable()}let i=t;for(let s=r.length-1;s>=0;s--){const e=r[s];i?e.childrenLength>=3?i=qe.create23(i,e.unprependChild(),null,!1):(e.prependChildOfSameHeight(i),i=void 0):e.handleChildrenChanged()}return i?qe.create23(i,e,null,!1):e}(t,e)}class lt{constructor(e){this.lastOffset=0,this.nextNodes=[e],this.offsets=[0],this.idxs=[]}readLongestNodeAt(e,t){if(Ne(e,this.lastOffset))throw new Error("Invalid offset");for(this.lastOffset=e;;){const n=ht(this.nextNodes);if(!n)return;const r=ht(this.offsets);if(Ne(e,r))return;if(Ne(r,e))if(we(r,n.length)<=e)this.nextNodeAfterCurrent();else{const e=ct(n);-1!==e?(this.nextNodes.push(n.getChild(e)),this.offsets.push(r),this.idxs.push(e)):this.nextNodeAfterCurrent()}else{if(t(n))return this.nextNodeAfterCurrent(),n;{const e=ct(n);if(-1===e)return void this.nextNodeAfterCurrent();this.nextNodes.push(n.getChild(e)),this.offsets.push(r),this.idxs.push(e)}}}}nextNodeAfterCurrent(){for(;;){const e=ht(this.offsets),t=ht(this.nextNodes);if(this.nextNodes.pop(),this.offsets.pop(),0===this.idxs.length)break;const n=ht(this.nextNodes),r=ct(n,this.idxs[this.idxs.length-1]);if(-1!==r){this.nextNodes.push(n.getChild(r)),this.offsets.push(we(e,t.length)),this.idxs[this.idxs.length-1]=r;break}this.idxs.pop()}}}function ct(e,t=-1){for(;;){if(++t>=e.childrenLength)return-1;if(e.getChild(t))return t}}function ht(e){return e.length>0?e[e.length-1]:void 0}function ut(e,t,n,r){return new dt(e,t,n,r).parseDocument()}class dt{constructor(e,t,n,r){if(this.tokenizer=e,this.createImmutableLists=r,this._itemsConstructed=0,this._itemsFromCache=0,n&&r)throw new Error("Not supported");this.oldNodeReader=n?new lt(n):void 0,this.positionMapper=new Re(t)}parseDocument(){this._itemsConstructed=0,this._itemsFromCache=0;let e=this.parseList(Fe.getEmpty(),0);return e||(e=qe.getEmpty()),e}parseList(e,t){const n=[];for(;;){let r=this.tryReadChildFromCache(e);if(!r){const n=this.tokenizer.peek();if(!n||2===n.kind&&n.bracketIds.intersects(e))break;r=this.parseChild(e,t+1)}4===r.kind&&0===r.childrenLength||n.push(r)}const r=this.oldNodeReader?function(e){if(0===e.length)return null;if(1===e.length)return e[0];let t=0;function n(){if(t>=e.length)return null;const n=t,r=e[n].listHeight;for(t++;t<e.length&&e[t].listHeight===r;)t++;return t-n>=2?st(0===n&&t===e.length?e:e.slice(n,t),!1):e[n]}let r=n(),i=n();if(!i)return r;for(let s=n();s;s=n())ot(r,i)<=ot(i,s)?(r=at(r,i),i=s):i=at(i,s);return at(r,i)}(n):st(n,this.createImmutableLists);return r}tryReadChildFromCache(e){if(this.oldNodeReader){const t=this.positionMapper.getDistanceToNextChange(this.tokenizer.offset);if(null===t||!ve(t)){const n=this.oldNodeReader.readLongestNodeAt(this.positionMapper.getOffsetBeforeChange(this.tokenizer.offset),(n=>{if(null!==t&&!Ne(n.length,t))return!1;return n.canBeReused(e)}));if(n)return this._itemsFromCache++,this.tokenizer.skip(n.length),n}}}parseChild(e,t){this._itemsConstructed++;const n=this.tokenizer.read();switch(n.kind){case 2:return new Xe(n.bracketIds,n.length);case 0:return n.astNode;case 1:{if(t>300)return new Qe(n.length);const r=e.merge(n.bracketIds),i=this.parseList(r,t+1),s=this.tokenizer.peek();return s&&2===s.kind&&(s.bracketId===n.bracketId||s.bracketIds.intersects(n.bracketIds))?(this.tokenizer.read(),je.create(n.astNode,i,s.astNode)):je.create(n.astNode,i,null)}default:throw new Error("unexpected")}}}function gt(e,t){if(0===e.length)return t;if(0===t.length)return e;const n=new o.j3(mt(e)),r=mt(t);r.push({modified:!1,lengthBefore:void 0,lengthAfter:void 0});let i=n.dequeue();function s(e){if(void 0===e){const e=n.takeWhile((e=>!0))||[];return i&&e.unshift(i),e}const t=[];for(;i&&!ve(e);){const[r,s]=i.splitAt(e);t.push(r),e=Ee(r.lengthAfter,e),i=s??n.dequeue()}return ve(e)||t.push(new ft(!1,e,e)),t}const a=[];function l(e,t,n){if(a.length>0&&xe(a[a.length-1].endOffset,e)){const e=a[a.length-1];a[a.length-1]=new Me(e.startOffset,t,we(e.newLength,n))}else a.push({startOffset:e,endOffset:t,newLength:n})}let c=0;for(const o of r){const e=s(o.lengthBefore);if(o.modified){const t=we(c,Se(e,(e=>e.lengthBefore)));l(c,t,o.lengthAfter),c=t}else for(const t of e){const e=c;c=we(c,t.lengthBefore),t.modified&&l(e,c,t.lengthAfter)}}return a}class ft{constructor(e,t,n){this.modified=e,this.lengthBefore=t,this.lengthAfter=n}splitAt(e){const t=Ee(e,this.lengthAfter);return xe(t,0)?[this,void 0]:this.modified?[new ft(this.modified,this.lengthBefore,e),new ft(this.modified,0,t)]:[new ft(this.modified,e,e),new ft(this.modified,t,t)]}toString(){return`${this.modified?"M":"U"}:${Le(this.lengthBefore)} -> ${Le(this.lengthAfter)}`}}function mt(e){const t=[];let n=0;for(const r of e){const e=Ee(n,r.startOffset);ve(e)||t.push(new ft(!1,e,e));const i=Ee(r.startOffset,r.endOffset);t.push(new ft(!0,i,r.newLength)),n=r.endOffset}return t}class pt extends i.jG{didLanguageChange(e){return this.brackets.didLanguageChange(e)}constructor(e,t){if(super(),this.textModel=e,this.getLanguageConfiguration=t,this.didChangeEmitter=new r.vl,this.denseKeyProvider=new Ve,this.brackets=new it(this.denseKeyProvider,this.getLanguageConfiguration),this.onDidChange=this.didChangeEmitter.event,this.queuedTextEditsForInitialAstWithoutTokens=[],this.queuedTextEdits=[],e.tokenization.hasTokens)2===e.tokenization.backgroundTokenizationState?(this.initialAstWithoutTokens=void 0,this.astWithTokens=this.parseDocumentFromTextBuffer([],void 0,!1)):(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer([],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens);else{const e=this.brackets.getSingleLanguageBracketTokens(this.textModel.getLanguageId()),t=new nt(this.textModel.getValue(),e);this.initialAstWithoutTokens=ut(t,[],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens}}handleDidChangeBackgroundTokenizationState(){if(2===this.textModel.tokenization.backgroundTokenizationState){const e=void 0===this.initialAstWithoutTokens;this.initialAstWithoutTokens=void 0,e||this.didChangeEmitter.fire()}}handleDidChangeTokens({ranges:e}){const t=e.map((e=>new Me(ye(e.fromLineNumber-1,0),ye(e.toLineNumber,0),ye(e.toLineNumber-e.fromLineNumber+1,0))));this.handleEdits(t,!0),this.initialAstWithoutTokens||this.didChangeEmitter.fire()}handleContentChanged(e){const t=Me.fromModelContentChanges(e.changes);this.handleEdits(t,!1)}handleEdits(e,t){const n=gt(this.queuedTextEdits,e);this.queuedTextEdits=n,this.initialAstWithoutTokens&&!t&&(this.queuedTextEditsForInitialAstWithoutTokens=gt(this.queuedTextEditsForInitialAstWithoutTokens,e))}flushQueue(){this.queuedTextEdits.length>0&&(this.astWithTokens=this.parseDocumentFromTextBuffer(this.queuedTextEdits,this.astWithTokens,!1),this.queuedTextEdits=[]),this.queuedTextEditsForInitialAstWithoutTokens.length>0&&(this.initialAstWithoutTokens&&(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer(this.queuedTextEditsForInitialAstWithoutTokens,this.initialAstWithoutTokens,!1)),this.queuedTextEditsForInitialAstWithoutTokens=[])}parseDocumentFromTextBuffer(e,t,n){const r=t;return ut(new et(this.textModel,this.brackets),e,r,n)}getBracketsInRange(e,t){this.flushQueue();const n=ye(e.startLineNumber-1,e.startColumn-1),r=ye(e.endLineNumber-1,e.endColumn-1);return new o.c1((e=>{const i=this.initialAstWithoutTokens||this.astWithTokens;kt(i,0,i.length,n,r,e,0,0,new Map,t)}))}getBracketPairsInRange(e,t){this.flushQueue();const n=Ie(e.getStartPosition()),r=Ie(e.getEndPosition());return new o.c1((e=>{const i=this.initialAstWithoutTokens||this.astWithTokens,s=new vt(e,t,this.textModel);Ct(i,0,i.length,n,r,s,0,new Map)}))}getFirstBracketAfter(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return _t(t,0,t.length,Ie(e))}getFirstBracketBefore(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return bt(t,0,t.length,Ie(e))}}function bt(e,t,n,r){if(4===e.kind||2===e.kind){const i=[];for(const r of e.children)n=we(t,r.length),i.push({nodeOffsetStart:t,nodeOffsetEnd:n}),t=n;for(let t=i.length-1;t>=0;t--){const{nodeOffsetStart:n,nodeOffsetEnd:s}=i[t];if(Ne(n,r)){const i=bt(e.children[t],n,s,r);if(i)return i}}return null}if(3===e.kind)return null;if(1===e.kind){const r=Oe(t,n);return{bracketInfo:e.bracketInfo,range:r}}return null}function _t(e,t,n,r){if(4===e.kind||2===e.kind){for(const i of e.children){if(Ne(r,n=we(t,i.length))){const e=_t(i,t,n,r);if(e)return e}t=n}return null}if(3===e.kind)return null;if(1===e.kind){const r=Oe(t,n);return{bracketInfo:e.bracketInfo,range:r}}return null}function kt(e,t,n,r,i,s,o,a,l,c,h=!1){if(o>200)return!0;e:for(;;)switch(e.kind){case 4:{const a=e.childrenLength;for(let h=0;h<a;h++){const a=e.getChild(h);if(a){if(n=we(t,a.length),Te(t,i)&&Ae(n,r)){if(Ae(n,i)){e=a;continue e}if(!kt(a,t,n,r,i,s,o,0,l,c))return!1}t=n}}return!0}case 2:{const h=!c||!e.closingBracket||e.closingBracket.bracketInfo.closesColorized(e.openingBracket.bracketInfo);let u=0;if(l){let t=l.get(e.openingBracket.text);void 0===t&&(t=0),u=t,h&&(t++,l.set(e.openingBracket.text,t))}const d=e.childrenLength;for(let g=0;g<d;g++){const d=e.getChild(g);if(d){if(n=we(t,d.length),Te(t,i)&&Ae(n,r)){if(Ae(n,i)&&1!==d.kind){e=d,h?(o++,a=u+1):a=u;continue e}if(h||1!==d.kind||!e.closingBracket){if(!kt(d,t,n,r,i,s,h?o+1:o,h?u+1:u,l,c,!e.closingBracket))return!1}}t=n}}return l?.set(e.openingBracket.text,u),!0}case 3:{const e=Oe(t,n);return s(new pe(e,o-1,0,!0))}case 1:{const e=Oe(t,n);return s(new pe(e,o-1,a-1,h))}case 0:return!0}}class vt{constructor(e,t,n){this.push=e,this.includeMinIndentation=t,this.textModel=n}}function Ct(e,t,n,r,i,s,o,a){if(o>200)return!0;let l=!0;if(2===e.kind){let c=0;if(a){let t=a.get(e.openingBracket.text);void 0===t&&(t=0),c=t,t++,a.set(e.openingBracket.text,t)}const h=we(t,e.openingBracket.length);let u=-1;if(s.includeMinIndentation&&(u=e.computeMinIndentation(t,s.textModel)),l=s.push(new _e(Oe(t,n),Oe(t,h),e.closingBracket?Oe(we(h,e.child?.length||0),n):void 0,o,c,e,u)),t=h,l&&e.child){const c=e.child;if(n=we(t,c.length),Te(t,i)&&Ae(n,r)&&(l=Ct(c,t,n,r,i,s,o+1,a),!l))return!1}a?.set(e.openingBracket.text,c)}else{let n=t;for(const t of e.children){const e=n;if(n=we(n,t.length),Te(e,i)&&Te(r,n)&&(l=Ct(t,e,n,r,i,s,o,a),!l))return!1}}return l}class yt extends i.jG{get canBuildAST(){return this.textModel.getValueLength()<=5e6}constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t,this.bracketPairsTree=this._register(new i.HE),this.onDidChangeEmitter=new r.vl,this.onDidChange=this.onDidChangeEmitter.event,this.bracketsRequested=!1}handleLanguageConfigurationServiceChange(e){e.languageId&&!this.bracketPairsTree.value?.object.didLanguageChange(e.languageId)||(this.bracketPairsTree.clear(),this.updateBracketPairsTree())}handleDidChangeOptions(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeLanguage(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeContent(e){this.bracketPairsTree.value?.object.handleContentChanged(e)}handleDidChangeBackgroundTokenizationState(){this.bracketPairsTree.value?.object.handleDidChangeBackgroundTokenizationState()}handleDidChangeTokens(e){this.bracketPairsTree.value?.object.handleDidChangeTokens(e)}updateBracketPairsTree(){if(this.bracketsRequested&&this.canBuildAST){if(!this.bracketPairsTree.value){const n=new i.Cm;this.bracketPairsTree.value=(e=n.add(new pt(this.textModel,(e=>this.languageConfigurationService.getLanguageConfiguration(e)))),t=n,{object:e,dispose:()=>t?.dispose()}),n.add(this.bracketPairsTree.value.object.onDidChange((e=>this.onDidChangeEmitter.fire(e)))),this.onDidChangeEmitter.fire()}}else this.bracketPairsTree.value&&(this.bracketPairsTree.clear(),this.onDidChangeEmitter.fire());var e,t}getBracketPairsInRange(e){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketPairsInRange(e,!1)||o.c1.empty}getBracketPairsInRangeWithMinIndentation(e){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketPairsInRange(e,!0)||o.c1.empty}getBracketsInRange(e,t=!1){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketsInRange(e,t)||o.c1.empty}findMatchingBracketUp(e,t,n){const r=this.textModel.validatePosition(t),i=this.textModel.getLanguageIdAtPosition(r.lineNumber,r.column);if(this.canBuildAST){const n=this.languageConfigurationService.getLanguageConfiguration(i).bracketsNew.getClosingBracketInfo(e);if(!n)return null;const r=this.getBracketPairsInRange(m.Q.fromPositions(t,t)).findLast((e=>n.closes(e.openingBracketInfo)));return r?r.openingBracketRange:null}{const t=e.toLowerCase(),s=this.languageConfigurationService.getLanguageConfiguration(i).brackets;if(!s)return null;const o=s.textIsBracket[t];return o?St(this._findMatchingBracketUp(o,r,Lt(n))):null}}matchBracket(e,t){if(this.canBuildAST){const t=this.getBracketPairsInRange(m.Q.fromPositions(e,e)).filter((t=>void 0!==t.closingBracketRange&&(t.openingBracketRange.containsPosition(e)||t.closingBracketRange.containsPosition(e)))).findLastMaxBy((0,o.VE)((t=>t.openingBracketRange.containsPosition(e)?t.openingBracketRange:t.closingBracketRange),m.Q.compareRangesUsingStarts));return t?[t.openingBracketRange,t.closingBracketRange]:null}{const n=Lt(t);return this._matchBracket(this.textModel.validatePosition(e),n)}}_establishBracketSearchOffsets(e,t,n,r){const i=t.getCount(),s=t.getLanguageId(r);let o=Math.max(0,e.column-1-n.maxBracketLength);for(let l=r-1;l>=0;l--){const e=t.getEndOffset(l);if(e<=o)break;if(S(t.getStandardTokenType(l))||t.getLanguageId(l)!==s){o=e;break}}let a=Math.min(t.getLineContent().length,e.column-1+n.maxBracketLength);for(let l=r+1;l<i;l++){const e=t.getStartOffset(l);if(e>=a)break;if(S(t.getStandardTokenType(l))||t.getLanguageId(l)!==s){a=e;break}}return{searchStartOffset:o,searchEndOffset:a}}_matchBracket(e,t){const n=e.lineNumber,r=this.textModel.tokenization.getLineTokens(n),i=this.textModel.getLineContent(n),s=r.findTokenIndexAtOffset(e.column-1);if(s<0)return null;const o=this.languageConfigurationService.getLanguageConfiguration(r.getLanguageId(s)).brackets;if(o&&!S(r.getStandardTokenType(s))){let{searchStartOffset:a,searchEndOffset:l}=this._establishBracketSearchOffsets(e,r,o,s),c=null;for(;;){const r=j.findNextBracketInRange(o.forwardRegex,n,i,a,l);if(!r)break;if(r.startColumn<=e.column&&e.column<=r.endColumn){const e=i.substring(r.startColumn-1,r.endColumn-1).toLowerCase(),n=this._matchFoundBracket(r,o.textIsBracket[e],o.textIsOpenBracket[e],t);if(n){if(n instanceof wt)return null;c=n}}a=r.endColumn-1}if(c)return c}if(s>0&&r.getStartOffset(s)===e.column-1){const o=s-1,a=this.languageConfigurationService.getLanguageConfiguration(r.getLanguageId(o)).brackets;if(a&&!S(r.getStandardTokenType(o))){const{searchStartOffset:s,searchEndOffset:l}=this._establishBracketSearchOffsets(e,r,a,o),c=j.findPrevBracketInRange(a.reversedRegex,n,i,s,l);if(c&&c.startColumn<=e.column&&e.column<=c.endColumn){const e=i.substring(c.startColumn-1,c.endColumn-1).toLowerCase(),n=this._matchFoundBracket(c,a.textIsBracket[e],a.textIsOpenBracket[e],t);if(n)return n instanceof wt?null:n}}}return null}_matchFoundBracket(e,t,n,r){if(!t)return null;const i=n?this._findMatchingBracketDown(t,e.getEndPosition(),r):this._findMatchingBracketUp(t,e.getStartPosition(),r);return i?i instanceof wt?i:[e,i]:null}_findMatchingBracketUp(e,t,n){const r=e.languageId,i=e.reversedRegex;let s=-1,o=0;const a=(t,r,a,l)=>{for(;;){if(n&&++o%100===0&&!n())return wt.INSTANCE;const c=j.findPrevBracketInRange(i,t,r,a,l);if(!c)break;const h=r.substring(c.startColumn-1,c.endColumn-1).toLowerCase();if(e.isOpen(h)?s++:e.isClose(h)&&s--,0===s)return c;l=c.startColumn-1}return null};for(let l=t.lineNumber;l>=1;l--){const e=this.textModel.tokenization.getLineTokens(l),n=e.getCount(),i=this.textModel.getLineContent(l);let s=n-1,o=i.length,c=i.length;l===t.lineNumber&&(s=e.findTokenIndexAtOffset(t.column-1),o=t.column-1,c=t.column-1);let h=!0;for(;s>=0;s--){const t=e.getLanguageId(s)===r&&!S(e.getStandardTokenType(s));if(t)h?o=e.getStartOffset(s):(o=e.getStartOffset(s),c=e.getEndOffset(s));else if(h&&o!==c){const e=a(l,i,o,c);if(e)return e}h=t}if(h&&o!==c){const e=a(l,i,o,c);if(e)return e}}return null}_findMatchingBracketDown(e,t,n){const r=e.languageId,i=e.forwardRegex;let s=1,o=0;const a=(t,r,a,l)=>{for(;;){if(n&&++o%100===0&&!n())return wt.INSTANCE;const c=j.findNextBracketInRange(i,t,r,a,l);if(!c)break;const h=r.substring(c.startColumn-1,c.endColumn-1).toLowerCase();if(e.isOpen(h)?s++:e.isClose(h)&&s--,0===s)return c;a=c.endColumn-1}return null},l=this.textModel.getLineCount();for(let c=t.lineNumber;c<=l;c++){const e=this.textModel.tokenization.getLineTokens(c),n=e.getCount(),i=this.textModel.getLineContent(c);let s=0,o=0,l=0;c===t.lineNumber&&(s=e.findTokenIndexAtOffset(t.column-1),o=t.column-1,l=t.column-1);let h=!0;for(;s<n;s++){const t=e.getLanguageId(s)===r&&!S(e.getStandardTokenType(s));if(t)h||(o=e.getStartOffset(s)),l=e.getEndOffset(s);else if(h&&o!==l){const e=a(c,i,o,l);if(e)return e}h=t}if(h&&o!==l){const e=a(c,i,o,l);if(e)return e}}return null}findPrevBracket(e){const t=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getFirstBracketBefore(t)||null;let n=null,r=null,i=null;for(let s=t.lineNumber;s>=1;s--){const e=this.textModel.tokenization.getLineTokens(s),o=e.getCount(),a=this.textModel.getLineContent(s);let l=o-1,c=a.length,h=a.length;if(s===t.lineNumber){l=e.findTokenIndexAtOffset(t.column-1),c=t.column-1,h=t.column-1;const s=e.getLanguageId(l);n!==s&&(n=s,r=this.languageConfigurationService.getLanguageConfiguration(n).brackets,i=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew)}let u=!0;for(;l>=0;l--){const t=e.getLanguageId(l);if(n!==t){if(r&&i&&u&&c!==h){const e=j.findPrevBracketInRange(r.reversedRegex,s,a,c,h);if(e)return this._toFoundBracket(i,e);u=!1}n=t,r=this.languageConfigurationService.getLanguageConfiguration(n).brackets,i=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew}const o=!!r&&!S(e.getStandardTokenType(l));if(o)u?c=e.getStartOffset(l):(c=e.getStartOffset(l),h=e.getEndOffset(l));else if(i&&r&&u&&c!==h){const e=j.findPrevBracketInRange(r.reversedRegex,s,a,c,h);if(e)return this._toFoundBracket(i,e)}u=o}if(i&&r&&u&&c!==h){const e=j.findPrevBracketInRange(r.reversedRegex,s,a,c,h);if(e)return this._toFoundBracket(i,e)}}return null}findNextBracket(e){const t=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getFirstBracketAfter(t)||null;const n=this.textModel.getLineCount();let r=null,i=null,s=null;for(let o=t.lineNumber;o<=n;o++){const e=this.textModel.tokenization.getLineTokens(o),n=e.getCount(),a=this.textModel.getLineContent(o);let l=0,c=0,h=0;if(o===t.lineNumber){l=e.findTokenIndexAtOffset(t.column-1),c=t.column-1,h=t.column-1;const n=e.getLanguageId(l);r!==n&&(r=n,i=this.languageConfigurationService.getLanguageConfiguration(r).brackets,s=this.languageConfigurationService.getLanguageConfiguration(r).bracketsNew)}let u=!0;for(;l<n;l++){const t=e.getLanguageId(l);if(r!==t){if(s&&i&&u&&c!==h){const e=j.findNextBracketInRange(i.forwardRegex,o,a,c,h);if(e)return this._toFoundBracket(s,e);u=!1}r=t,i=this.languageConfigurationService.getLanguageConfiguration(r).brackets,s=this.languageConfigurationService.getLanguageConfiguration(r).bracketsNew}const n=!!i&&!S(e.getStandardTokenType(l));if(n)u||(c=e.getStartOffset(l)),h=e.getEndOffset(l);else if(s&&i&&u&&c!==h){const e=j.findNextBracketInRange(i.forwardRegex,o,a,c,h);if(e)return this._toFoundBracket(s,e)}u=n}if(s&&i&&u&&c!==h){const e=j.findNextBracketInRange(i.forwardRegex,o,a,c,h);if(e)return this._toFoundBracket(s,e)}}return null}findEnclosingBrackets(e,t){const n=this.textModel.validatePosition(e);if(this.canBuildAST){const e=m.Q.fromPositions(n),t=this.getBracketPairsInRange(m.Q.fromPositions(n,n)).findLast((t=>void 0!==t.closingBracketRange&&t.range.strictContainsRange(e)));return t?[t.openingBracketRange,t.closingBracketRange]:null}const r=Lt(t),i=this.textModel.getLineCount(),s=new Map;let o=[];const a=(e,t)=>{if(!s.has(e)){const n=[];for(let e=0,r=t?t.brackets.length:0;e<r;e++)n[e]=0;s.set(e,n)}o=s.get(e)};let l=0;const c=(e,t,n,i,s)=>{for(;;){if(r&&++l%100===0&&!r())return wt.INSTANCE;const a=j.findNextBracketInRange(e.forwardRegex,t,n,i,s);if(!a)break;const c=n.substring(a.startColumn-1,a.endColumn-1).toLowerCase(),h=e.textIsBracket[c];if(h&&(h.isOpen(c)?o[h.index]++:h.isClose(c)&&o[h.index]--,-1===o[h.index]))return this._matchFoundBracket(a,h,!1,r);i=a.endColumn-1}return null};let h=null,u=null;for(let d=n.lineNumber;d<=i;d++){const e=this.textModel.tokenization.getLineTokens(d),t=e.getCount(),r=this.textModel.getLineContent(d);let i=0,s=0,o=0;if(d===n.lineNumber){i=e.findTokenIndexAtOffset(n.column-1),s=n.column-1,o=n.column-1;const t=e.getLanguageId(i);h!==t&&(h=t,u=this.languageConfigurationService.getLanguageConfiguration(h).brackets,a(h,u))}let l=!0;for(;i<t;i++){const t=e.getLanguageId(i);if(h!==t){if(u&&l&&s!==o){const e=c(u,d,r,s,o);if(e)return St(e);l=!1}h=t,u=this.languageConfigurationService.getLanguageConfiguration(h).brackets,a(h,u)}const n=!!u&&!S(e.getStandardTokenType(i));if(n)l||(s=e.getStartOffset(i)),o=e.getEndOffset(i);else if(u&&l&&s!==o){const e=c(u,d,r,s,o);if(e)return St(e)}l=n}if(u&&l&&s!==o){const e=c(u,d,r,s,o);if(e)return St(e)}}return null}_toFoundBracket(e,t){if(!t)return null;let n=this.textModel.getValueInRange(t);n=n.toLowerCase();const r=e.getBracketInfo(n);return r?{range:t,bracketInfo:r}:null}}function Lt(e){if("undefined"===typeof e)return()=>!0;{const t=Date.now();return()=>Date.now()-t<=e}}class wt{static{this.INSTANCE=new wt}constructor(){this._searchCanceledBrand=void 0}}function St(e){return e instanceof wt?null:e}var xt=n(7119),Et=n(5724);class Nt extends i.jG{constructor(e){super(),this.textModel=e,this.colorProvider=new Tt,this.onDidChangeEmitter=new r.vl,this.onDidChange=this.onDidChangeEmitter.event,this.colorizationOptions=e.getOptions().bracketPairColorizationOptions,this._register(e.bracketPairs.onDidChange((e=>{this.onDidChangeEmitter.fire()})))}handleDidChangeOptions(e){this.colorizationOptions=this.textModel.getOptions().bracketPairColorizationOptions}getDecorationsInRange(e,t,n,r){if(r)return[];if(void 0===t)return[];if(!this.colorizationOptions.enabled)return[];return this.textModel.bracketPairs.getBracketsInRange(e,!0).map((e=>({id:`bracket${e.range.toString()}-${e.nestingLevel}`,options:{description:"BracketPairColorization",inlineClassName:this.colorProvider.getInlineClassName(e,this.colorizationOptions.independentColorPoolPerBracketType)},ownerId:0,range:e.range}))).toArray()}getAllDecorations(e,t){return void 0===e?[]:this.colorizationOptions.enabled?this.getDecorationsInRange(new m.Q(1,1,this.textModel.getLineCount(),1),e,t):[]}}class Tt{constructor(){this.unexpectedClosingBracketClassName="unexpected-closing-bracket"}getInlineClassName(e,t){return e.isInvalid?this.unexpectedClosingBracketClassName:this.getInlineClassNameOfLevel(t?e.nestingLevelOfEqualBracketType:e.nestingLevel)}getInlineClassNameOfLevel(e){return"bracket-highlighting-"+e%30}}(0,Et.zy)(((e,t)=>{const n=[xt.sN,xt.lQ,xt.ss,xt.l5,xt.sH,xt.zp],r=new Tt;t.addRule(`.monaco-editor .${r.unexpectedClosingBracketClassName} { color: ${e.getColor(xt.s7)}; }`);const i=n.map((t=>e.getColor(t))).filter((e=>!!e)).filter((e=>!e.isTransparent()));for(let s=0;s<30;s++){const e=i[s%i.length];t.addRule(`.monaco-editor .${r.getInlineClassNameOfLevel(s)} { color: ${e}; }`)}}));var At=n(8209);function It(e){return e.replace(/\n/g,"\\n").replace(/\r/g,"\\r")}class Ot{get oldLength(){return this.oldText.length}get oldEnd(){return this.oldPosition+this.oldText.length}get newLength(){return this.newText.length}get newEnd(){return this.newPosition+this.newText.length}constructor(e,t,n,r){this.oldPosition=e,this.oldText=t,this.newPosition=n,this.newText=r}toString(){return 0===this.oldText.length?`(insert@${this.oldPosition} "${It(this.newText)}")`:0===this.newText.length?`(delete@${this.oldPosition} "${It(this.oldText)}")`:`(replace@${this.oldPosition} "${It(this.oldText)}" with "${It(this.newText)}")`}static _writeStringSize(e){return 4+2*e.length}static _writeString(e,t,n){const r=t.length;x.Sw(e,r,n),n+=4;for(let i=0;i<r;i++)x.gN(e,t.charCodeAt(i),n),n+=2;return n}static _readString(e,t){const n=x.bb(e,t);return O(e,t+=4,n)}writeSize(){return 8+Ot._writeStringSize(this.oldText)+Ot._writeStringSize(this.newText)}write(e,t){return x.Sw(e,this.oldPosition,t),t+=4,x.Sw(e,this.newPosition,t),t+=4,t=Ot._writeString(e,this.oldText,t),t=Ot._writeString(e,this.newText,t)}static read(e,t,n){const r=x.bb(e,t);t+=4;const i=x.bb(e,t);t+=4;const s=Ot._readString(e,t);t+=Ot._writeStringSize(s);const o=Ot._readString(e,t);return t+=Ot._writeStringSize(o),n.push(new Ot(r,s,i,o)),t}}class Mt{constructor(e,t){this._prevEdits=e,this._currEdits=t,this._result=[],this._resultLen=0,this._prevLen=this._prevEdits.length,this._prevDeltaOffset=0,this._currLen=this._currEdits.length,this._currDeltaOffset=0}compress(){let e=0,t=0,n=this._getPrev(e),r=this._getCurr(t);for(;e<this._prevLen||t<this._currLen;){if(null===n){this._acceptCurr(r),r=this._getCurr(++t);continue}if(null===r){this._acceptPrev(n),n=this._getPrev(++e);continue}if(r.oldEnd<=n.newPosition){this._acceptCurr(r),r=this._getCurr(++t);continue}if(n.newEnd<=r.oldPosition){this._acceptPrev(n),n=this._getPrev(++e);continue}if(r.oldPosition<n.newPosition){const[e,t]=Mt._splitCurr(r,n.newPosition-r.oldPosition);this._acceptCurr(e),r=t;continue}if(n.newPosition<r.oldPosition){const[e,t]=Mt._splitPrev(n,r.oldPosition-n.newPosition);this._acceptPrev(e),n=t;continue}let i,s;if(r.oldEnd===n.newEnd)i=n,s=r,n=this._getPrev(++e),r=this._getCurr(++t);else if(r.oldEnd<n.newEnd){const[e,o]=Mt._splitPrev(n,r.oldLength);i=e,s=r,n=o,r=this._getCurr(++t)}else{const[t,o]=Mt._splitCurr(r,n.newLength);i=n,s=t,n=this._getPrev(++e),r=o}this._result[this._resultLen++]=new Ot(i.oldPosition,i.oldText,s.newPosition,s.newText),this._prevDeltaOffset+=i.newLength-i.oldLength,this._currDeltaOffset+=s.newLength-s.oldLength}const i=Mt._merge(this._result);return Mt._removeNoOps(i)}_acceptCurr(e){this._result[this._resultLen++]=Mt._rebaseCurr(this._prevDeltaOffset,e),this._currDeltaOffset+=e.newLength-e.oldLength}_getCurr(e){return e<this._currLen?this._currEdits[e]:null}_acceptPrev(e){this._result[this._resultLen++]=Mt._rebasePrev(this._currDeltaOffset,e),this._prevDeltaOffset+=e.newLength-e.oldLength}_getPrev(e){return e<this._prevLen?this._prevEdits[e]:null}static _rebaseCurr(e,t){return new Ot(t.oldPosition-e,t.oldText,t.newPosition,t.newText)}static _rebasePrev(e,t){return new Ot(t.oldPosition,t.oldText,t.newPosition+e,t.newText)}static _splitPrev(e,t){const n=e.newText.substr(0,t),r=e.newText.substr(t);return[new Ot(e.oldPosition,e.oldText,e.newPosition,n),new Ot(e.oldEnd,"",e.newPosition+t,r)]}static _splitCurr(e,t){const n=e.oldText.substr(0,t),r=e.oldText.substr(t);return[new Ot(e.oldPosition,n,e.newPosition,e.newText),new Ot(e.oldPosition+t,r,e.newEnd,"")]}static _merge(e){if(0===e.length)return e;const t=[];let n=0,r=e[0];for(let i=1;i<e.length;i++){const s=e[i];r.oldEnd===s.oldPosition?r=new Ot(r.oldPosition,r.oldText+s.oldText,r.newPosition,r.newText+s.newText):(t[n++]=r,r=s)}return t[n++]=r,t}static _removeNoOps(e){if(0===e.length)return e;const t=[];let n=0;for(let r=0;r<e.length;r++){const i=e[r];i.oldText!==i.newText&&(t[n++]=i)}return t}}var Rt=n(9403);function Dt(e){return e.toString()}class Bt{static create(e,t){const n=e.getAlternativeVersionId(),r=Vt(e);return new Bt(n,n,r,r,t,t,[])}constructor(e,t,n,r,i,s,o){this.beforeVersionId=e,this.afterVersionId=t,this.beforeEOL=n,this.afterEOL=r,this.beforeCursorState=i,this.afterCursorState=s,this.changes=o}append(e,t,n,r,i){var s,o;t.length>0&&(this.changes=(s=this.changes,o=t,null===s||0===s.length?o:new Mt(s,o).compress())),this.afterEOL=n,this.afterVersionId=r,this.afterCursorState=i}static _writeSelectionsSize(e){return 4+16*(e?e.length:0)}static _writeSelections(e,t,n){if(x.Sw(e,t?t.length:0,n),n+=4,t)for(const r of t)x.Sw(e,r.selectionStartLineNumber,n),n+=4,x.Sw(e,r.selectionStartColumn,n),n+=4,x.Sw(e,r.positionLineNumber,n),n+=4,x.Sw(e,r.positionColumn,n),n+=4;return n}static _readSelections(e,t,n){const r=x.bb(e,t);t+=4;for(let i=0;i<r;i++){const r=x.bb(e,t);t+=4;const i=x.bb(e,t);t+=4;const s=x.bb(e,t);t+=4;const o=x.bb(e,t);t+=4,n.push(new p.L(r,i,s,o))}return t}serialize(){let e=10+Bt._writeSelectionsSize(this.beforeCursorState)+Bt._writeSelectionsSize(this.afterCursorState)+4;for(const r of this.changes)e+=r.writeSize();const t=new Uint8Array(e);let n=0;x.Sw(t,this.beforeVersionId,n),n+=4,x.Sw(t,this.afterVersionId,n),n+=4,x.Gs(t,this.beforeEOL,n),n+=1,x.Gs(t,this.afterEOL,n),n+=1,n=Bt._writeSelections(t,this.beforeCursorState,n),n=Bt._writeSelections(t,this.afterCursorState,n),x.Sw(t,this.changes.length,n),n+=4;for(const r of this.changes)n=r.write(t,n);return t.buffer}static deserialize(e){const t=new Uint8Array(e);let n=0;const r=x.bb(t,n);n+=4;const i=x.bb(t,n);n+=4;const s=x.pJ(t,n);n+=1;const o=x.pJ(t,n);n+=1;const a=[];n=Bt._readSelections(t,n,a);const l=[];n=Bt._readSelections(t,n,l);const c=x.bb(t,n);n+=4;const h=[];for(let u=0;u<c;u++)n=Ot.read(t,n,h);return new Bt(r,i,s,o,a,l,h)}}class Ft{get type(){return 0}get resource(){return h.r.isUri(this.model)?this.model:this.model.uri}constructor(e,t,n,r){this.label=e,this.code=t,this.model=n,this._data=Bt.create(n,r)}toString(){return(this._data instanceof Bt?this._data:Bt.deserialize(this._data)).changes.map((e=>e.toString())).join(", ")}matchesResource(e){return(h.r.isUri(this.model)?this.model:this.model.uri).toString()===e.toString()}setModel(e){this.model=e}canAppend(e){return this.model===e&&this._data instanceof Bt}append(e,t,n,r,i){this._data instanceof Bt&&this._data.append(e,t,n,r,i)}close(){this._data instanceof Bt&&(this._data=this._data.serialize())}open(){this._data instanceof Bt||(this._data=Bt.deserialize(this._data))}undo(){if(h.r.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof Bt&&(this._data=this._data.serialize());const e=Bt.deserialize(this._data);this.model._applyUndo(e.changes,e.beforeEOL,e.beforeVersionId,e.beforeCursorState)}redo(){if(h.r.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof Bt&&(this._data=this._data.serialize());const e=Bt.deserialize(this._data);this.model._applyRedo(e.changes,e.afterEOL,e.afterVersionId,e.afterCursorState)}heapSize(){return this._data instanceof Bt&&(this._data=this._data.serialize()),this._data.byteLength+168}}class Pt{get resources(){return this._editStackElementsArr.map((e=>e.resource))}constructor(e,t,n){this.label=e,this.code=t,this.type=1,this._isOpen=!0,this._editStackElementsArr=n.slice(0),this._editStackElementsMap=new Map;for(const r of this._editStackElementsArr){const e=Dt(r.resource);this._editStackElementsMap.set(e,r)}this._delegate=null}prepareUndoRedo(){if(this._delegate)return this._delegate.prepareUndoRedo(this)}matchesResource(e){const t=Dt(e);return this._editStackElementsMap.has(t)}setModel(e){const t=Dt(h.r.isUri(e)?e:e.uri);this._editStackElementsMap.has(t)&&this._editStackElementsMap.get(t).setModel(e)}canAppend(e){if(!this._isOpen)return!1;const t=Dt(e.uri);if(this._editStackElementsMap.has(t)){return this._editStackElementsMap.get(t).canAppend(e)}return!1}append(e,t,n,r,i){const s=Dt(e.uri);this._editStackElementsMap.get(s).append(e,t,n,r,i)}close(){this._isOpen=!1}open(){}undo(){this._isOpen=!1;for(const e of this._editStackElementsArr)e.undo()}redo(){for(const e of this._editStackElementsArr)e.redo()}heapSize(e){const t=Dt(e);if(this._editStackElementsMap.has(t)){return this._editStackElementsMap.get(t).heapSize()}return 0}split(){return this._editStackElementsArr}toString(){const e=[];for(const t of this._editStackElementsArr)e.push(`${(0,Rt.P8)(t.resource)}: ${t}`);return`{${e.join(", ")}}`}}function Vt(e){return"\n"===e.getEOL()?0:1}function zt(e){return!!e&&(e instanceof Ft||e instanceof Pt)}class jt{constructor(e,t){this._model=e,this._undoRedoService=t}pushStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);zt(e)&&e.close()}popStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);zt(e)&&e.open()}clear(){this._undoRedoService.removeElements(this._model.uri)}_getOrCreateEditStackElement(e,t){const n=this._undoRedoService.getLastElement(this._model.uri);if(zt(n)&&n.canAppend(this._model))return n;const r=new Ft(At.kg("edit","Typing"),"undoredo.textBufferEdit",this._model,e);return this._undoRedoService.pushElement(r,t),r}pushEOL(e){const t=this._getOrCreateEditStackElement(null,void 0);this._model.setEOL(e),t.append(this._model,[],Vt(this._model),this._model.getAlternativeVersionId(),null)}pushEditOperation(e,t,n,r){const i=this._getOrCreateEditStackElement(e,r),s=this._model.applyEdits(t,!0),o=jt._computeCursorState(n,s),a=s.map(((e,t)=>({index:t,textChange:e.textChange})));return a.sort(((e,t)=>e.textChange.oldPosition===t.textChange.oldPosition?e.index-t.index:e.textChange.oldPosition-t.textChange.oldPosition)),i.append(this._model,a.map((e=>e.textChange)),Vt(this._model),this._model.getAlternativeVersionId(),o),o}static _computeCursorState(e,t){try{return e?e(t):null}catch(n){return(0,l.dz)(n),null}}}var qt,Wt=n(6041);class Ut extends i.jG{constructor(){super(...arguments),this._isDisposed=!1}dispose(){super.dispose(),this._isDisposed=!0}assertNotDisposed(){if(this._isDisposed)throw new Error("TextModelPart is disposed!")}}!function(e){e[e.Disabled=0]="Disabled",e[e.EnabledForActive=1]="EnabledForActive",e[e.Enabled=2]="Enabled"}(qt||(qt={}));class $t{constructor(e,t,n,r,i,s){if(this.visibleColumn=e,this.column=t,this.className=n,this.horizontalLine=r,this.forWrappedLinesAfterColumn=i,this.forWrappedLinesBeforeOrAtColumn=s,-1!==e===(-1!==t))throw new Error}}class Ht{constructor(e,t){this.top=e,this.endColumn=t}}class Kt extends Ut{constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t}getLanguageConfiguration(e){return this.languageConfigurationService.getLanguageConfiguration(e)}_computeIndentLevel(e){return function(e,t){let n=0,r=0;const i=e.length;for(;r<i;){const i=e.charCodeAt(r);if(32===i)n++;else{if(9!==i)break;n=n-n%t+t}r++}return r===i?-1:n}(this.textModel.getLineContent(e+1),this.textModel.getOptions().tabSize)}getActiveIndentGuide(e,t,n){this.assertNotDisposed();const r=this.textModel.getLineCount();if(e<1||e>r)throw new l.D7("Illegal value for lineNumber");const i=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,s=Boolean(i&&i.offSide);let o=-2,a=-1,c=-2,h=-1;const u=e=>{if(-1!==o&&(-2===o||o>e-1)){o=-1,a=-1;for(let t=e-2;t>=0;t--){const e=this._computeIndentLevel(t);if(e>=0){o=t,a=e;break}}}if(-2===c){c=-1,h=-1;for(let t=e;t<r;t++){const e=this._computeIndentLevel(t);if(e>=0){c=t,h=e;break}}}};let d=-2,g=-1,f=-2,m=-1;const p=e=>{if(-2===d){d=-1,g=-1;for(let t=e-2;t>=0;t--){const e=this._computeIndentLevel(t);if(e>=0){d=t,g=e;break}}}if(-1!==f&&(-2===f||f<e-1)){f=-1,m=-1;for(let t=e;t<r;t++){const e=this._computeIndentLevel(t);if(e>=0){f=t,m=e;break}}}};let b=0,_=!0,k=0,v=!0,C=0,y=0;for(let l=0;_||v;l++){const i=e-l,o=e+l;l>1&&(i<1||i<t)&&(_=!1),l>1&&(o>r||o>n)&&(v=!1),l>5e4&&(_=!1,v=!1);let f=-1;if(_&&i>=1){const e=this._computeIndentLevel(i-1);e>=0?(c=i-1,h=e,f=Math.ceil(e/this.textModel.getOptions().indentSize)):(u(i),f=this._getIndentLevelForWhitespaceLine(s,a,h))}let L=-1;if(v&&o<=r){const e=this._computeIndentLevel(o-1);e>=0?(d=o-1,g=e,L=Math.ceil(e/this.textModel.getOptions().indentSize)):(p(o),L=this._getIndentLevelForWhitespaceLine(s,g,m))}if(0!==l){if(1===l){if(o<=r&&L>=0&&y+1===L){_=!1,b=o,k=o,C=L;continue}if(i>=1&&f>=0&&f-1===y){v=!1,b=i,k=i,C=f;continue}if(b=e,k=e,C=y,0===C)return{startLineNumber:b,endLineNumber:k,indent:C}}_&&(f>=C?b=i:_=!1),v&&(L>=C?k=o:v=!1)}else y=f}return{startLineNumber:b,endLineNumber:k,indent:C}}getLinesBracketGuides(e,t,n,r){const i=[];for(let c=e;c<=t;c++)i.push([]);const s=!0,o=this.textModel.bracketPairs.getBracketPairsInRangeWithMinIndentation(new m.Q(e,1,t,this.textModel.getLineMaxColumn(t))).toArray();let a;if(n&&o.length>0){const r=(e<=n.lineNumber&&n.lineNumber<=t?o:this.textModel.bracketPairs.getBracketPairsInRange(m.Q.fromPositions(n)).toArray()).filter((e=>m.Q.strictContainsPosition(e.range,n)));a=(0,Wt.Uk)(r,(e=>s))?.range}const l=this.textModel.getOptions().bracketPairColorizationOptions.independentColorPoolPerBracketType,h=new Gt;for(const u of o){if(!u.closingBracketRange)continue;const n=a&&u.range.equalsRange(a);if(!n&&!r.includeInactive)continue;const s=h.getInlineClassName(u.nestingLevel,u.nestingLevelOfEqualBracketType,l)+(r.highlightActive&&n?" "+h.activeClassName:""),o=u.openingBracketRange.getStartPosition(),d=u.closingBracketRange.getStartPosition(),g=r.horizontalGuides===qt.Enabled||r.horizontalGuides===qt.EnabledForActive&&n;if(u.range.startLineNumber===u.range.endLineNumber){g&&i[u.range.startLineNumber-e].push(new $t(-1,u.openingBracketRange.getEndPosition().column,s,new Ht(!1,d.column),-1,-1));continue}const f=this.getVisibleColumnFromPosition(d),m=this.getVisibleColumnFromPosition(u.openingBracketRange.getStartPosition()),p=Math.min(m,f,u.minVisibleColumnIndentation+1);let b=!1;c.HG(this.textModel.getLineContent(u.closingBracketRange.startLineNumber))<u.closingBracketRange.startColumn-1&&(b=!0);const _=Math.max(o.lineNumber,e),k=Math.min(d.lineNumber,t),v=b?1:0;for(let t=_;t<k+v;t++)i[t-e].push(new $t(p,-1,s,null,t===o.lineNumber?o.column:-1,t===d.lineNumber?d.column:-1));g&&(o.lineNumber>=e&&m>p&&i[o.lineNumber-e].push(new $t(p,-1,s,new Ht(!1,o.column),-1,-1)),d.lineNumber<=t&&f>p&&i[d.lineNumber-e].push(new $t(p,-1,s,new Ht(!b,d.column),-1,-1)))}for(const c of i)c.sort(((e,t)=>e.visibleColumn-t.visibleColumn));return i}getVisibleColumnFromPosition(e){return d.visibleColumnFromColumn(this.textModel.getLineContent(e.lineNumber),e.column,this.textModel.getOptions().tabSize)+1}getLinesIndentGuides(e,t){this.assertNotDisposed();const n=this.textModel.getLineCount();if(e<1||e>n)throw new Error("Illegal value for startLineNumber");if(t<1||t>n)throw new Error("Illegal value for endLineNumber");const r=this.textModel.getOptions(),i=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,s=Boolean(i&&i.offSide),o=new Array(t-e+1);let a=-2,l=-1,c=-2,h=-1;for(let u=e;u<=t;u++){const t=u-e,i=this._computeIndentLevel(u-1);if(i>=0)a=u-1,l=i,o[t]=Math.ceil(i/r.indentSize);else{if(-2===a){a=-1,l=-1;for(let e=u-2;e>=0;e--){const t=this._computeIndentLevel(e);if(t>=0){a=e,l=t;break}}}if(-1!==c&&(-2===c||c<u-1)){c=-1,h=-1;for(let e=u;e<n;e++){const t=this._computeIndentLevel(e);if(t>=0){c=e,h=t;break}}}o[t]=this._getIndentLevelForWhitespaceLine(s,l,h)}}return o}_getIndentLevelForWhitespaceLine(e,t,n){const r=this.textModel.getOptions();return-1===t||-1===n?0:t<n?1+Math.floor(t/r.indentSize):t===n||e?Math.ceil(n/r.indentSize):1+Math.floor(n/r.indentSize)}}class Gt{constructor(){this.activeClassName="indent-active"}getInlineClassName(e,t,n){return this.getInlineClassNameOfLevel(n?t:e)}getInlineClassNameOfLevel(e){return"bracket-indent-guide lvl-"+e%30}}class Qt{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}}function Jt(e,t,n,r,i){let s;for(i.spacesDiff=0,i.looksLikeAlignment=!1,s=0;s<t&&s<r;s++){if(e.charCodeAt(s)!==n.charCodeAt(s))break}let o=0,a=0;for(let d=s;d<t;d++){32===e.charCodeAt(d)?o++:a++}let l=0,c=0;for(let d=s;d<r;d++){32===n.charCodeAt(d)?l++:c++}if(o>0&&a>0)return;if(l>0&&c>0)return;const h=Math.abs(a-c),u=Math.abs(o-l);if(0===h)return i.spacesDiff=u,void(u>0&&0<=l-1&&l-1<e.length&&l<n.length&&32!==n.charCodeAt(l)&&32===e.charCodeAt(l-1)&&44===e.charCodeAt(e.length-1)&&(i.looksLikeAlignment=!0));u%h!==0||(i.spacesDiff=u/h)}function Xt(e,t,n){const r=Math.min(e.getLineCount(),1e4);let i=0,s=0,o="",a=0;const l=[2,4,6,8,3,5,7],c=[0,0,0,0,0,0,0,0,0],h=new Qt;for(let g=1;g<=r;g++){const r=e.getLineLength(g),l=e.getLineContent(g),u=r<=65536;let d=!1,f=0,m=0,p=0;for(let t=0,n=r;t<n;t++){const n=u?l.charCodeAt(t):e.getLineCharCode(g,t);if(9===n)p++;else{if(32!==n){d=!0,f=t;break}m++}}if(!d)continue;if(p>0?i++:m>1&&s++,Jt(o,a,l,f,h),h.looksLikeAlignment&&(!n||t!==h.spacesDiff))continue;const b=h.spacesDiff;b<=8&&c[b]++,o=l,a=f}let u=n;i!==s&&(u=i<s);let d=t;if(u){let e=u?0:.1*r;l.forEach((t=>{const n=c[t];n>e&&(e=n,d=t)})),4===d&&c[4]>0&&c[2]>0&&c[2]>=c[4]/2&&(d=2)}return{insertSpaces:u,tabSize:d}}function Yt(e){return(1&e.metadata)>>>0}function Zt(e,t){e.metadata=254&e.metadata|t}function en(e){return(2&e.metadata)>>>1===1}function tn(e,t){e.metadata=253&e.metadata|(t?1:0)<<1}function nn(e){return(4&e.metadata)>>>2===1}function rn(e,t){e.metadata=251&e.metadata|(t?1:0)<<2}function sn(e){return(64&e.metadata)>>>6===1}function on(e,t){e.metadata=191&e.metadata|(t?1:0)<<6}function an(e,t){e.metadata=231&e.metadata|t<<3}function ln(e,t){e.metadata=223&e.metadata|(t?1:0)<<5}class cn{constructor(e,t,n){this.metadata=0,this.parent=this,this.left=this,this.right=this,Zt(this,1),this.start=t,this.end=n,this.delta=0,this.maxEnd=n,this.id=e,this.ownerId=0,this.options=null,rn(this,!1),on(this,!1),an(this,1),ln(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=null,tn(this,!1)}reset(e,t,n,r){this.start=t,this.end=n,this.maxEnd=n,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=r}setOptions(e){this.options=e;const t=this.options.className;rn(this,"squiggly-error"===t||"squiggly-warning"===t||"squiggly-info"===t),on(this,null!==this.options.glyphMarginClassName),an(this,this.options.stickiness),ln(this,this.options.collapseOnReplaceEdit)}setCachedOffsets(e,t,n){this.cachedVersionId!==n&&(this.range=null),this.cachedVersionId=n,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t}detach(){this.parent=null,this.left=null,this.right=null}}const hn=new cn(null,0,0);hn.parent=hn,hn.left=hn,hn.right=hn,Zt(hn,0);class un{constructor(){this.root=hn,this.requestNormalizeDelta=!1}intervalSearch(e,t,n,r,i,s){return this.root===hn?[]:function(e,t,n,r,i,s,o){let a=e.root,l=0,c=0,h=0,u=0;const d=[];let g=0;for(;a!==hn;)if(en(a))tn(a.left,!1),tn(a.right,!1),a===a.parent.right&&(l-=a.parent.delta),a=a.parent;else{if(!en(a.left)){if(c=l+a.maxEnd,c<t){tn(a,!0);continue}if(a.left!==hn){a=a.left;continue}}if(h=l+a.start,h>n)tn(a,!0);else{if(u=l+a.end,u>=t){a.setCachedOffsets(h,u,s);let e=!0;r&&a.ownerId&&a.ownerId!==r&&(e=!1),i&&nn(a)&&(e=!1),o&&!sn(a)&&(e=!1),e&&(d[g++]=a)}tn(a,!0),a.right===hn||en(a.right)||(l+=a.delta,a=a.right)}}return tn(e.root,!1),d}(this,e,t,n,r,i,s)}search(e,t,n,r){return this.root===hn?[]:function(e,t,n,r,i){let s=e.root,o=0,a=0,l=0;const c=[];let h=0;for(;s!==hn;){if(en(s)){tn(s.left,!1),tn(s.right,!1),s===s.parent.right&&(o-=s.parent.delta),s=s.parent;continue}if(s.left!==hn&&!en(s.left)){s=s.left;continue}a=o+s.start,l=o+s.end,s.setCachedOffsets(a,l,r);let e=!0;t&&s.ownerId&&s.ownerId!==t&&(e=!1),n&&nn(s)&&(e=!1),i&&!sn(s)&&(e=!1),e&&(c[h++]=s),tn(s,!0),s.right===hn||en(s.right)||(o+=s.delta,s=s.right)}return tn(e.root,!1),c}(this,e,t,n,r)}collectNodesFromOwner(e){return function(e,t){let n=e.root;const r=[];let i=0;for(;n!==hn;)en(n)?(tn(n.left,!1),tn(n.right,!1),n=n.parent):n.left===hn||en(n.left)?(n.ownerId===t&&(r[i++]=n),tn(n,!0),n.right===hn||en(n.right)||(n=n.right)):n=n.left;return tn(e.root,!1),r}(this,e)}collectNodesPostOrder(){return function(e){let t=e.root;const n=[];let r=0;for(;t!==hn;)en(t)?(tn(t.left,!1),tn(t.right,!1),t=t.parent):t.left===hn||en(t.left)?t.right===hn||en(t.right)?(n[r++]=t,tn(t,!0)):t=t.right:t=t.left;return tn(e.root,!1),n}(this)}insert(e){fn(this,e),this._normalizeDeltaIfNecessary()}delete(e){mn(this,e),this._normalizeDeltaIfNecessary()}resolveNode(e,t){const n=e;let r=0;for(;e!==this.root;)e===e.parent.right&&(r+=e.parent.delta),e=e.parent;const i=n.start+r,s=n.end+r;n.setCachedOffsets(i,s,t)}acceptReplace(e,t,n,r){const i=function(e,t,n){let r=e.root,i=0,s=0,o=0,a=0;const l=[];let c=0;for(;r!==hn;)if(en(r))tn(r.left,!1),tn(r.right,!1),r===r.parent.right&&(i-=r.parent.delta),r=r.parent;else{if(!en(r.left)){if(s=i+r.maxEnd,s<t){tn(r,!0);continue}if(r.left!==hn){r=r.left;continue}}o=i+r.start,o>n?tn(r,!0):(a=i+r.end,a>=t&&(r.setCachedOffsets(o,a,0),l[c++]=r),tn(r,!0),r.right===hn||en(r.right)||(i+=r.delta,r=r.right))}return tn(e.root,!1),l}(this,e,e+t);for(let s=0,o=i.length;s<o;s++){mn(this,i[s])}this._normalizeDeltaIfNecessary(),function(e,t,n,r){let i=e.root,s=0,o=0,a=0;const l=r-(n-t);for(;i!==hn;)if(en(i))tn(i.left,!1),tn(i.right,!1),i===i.parent.right&&(s-=i.parent.delta),vn(i),i=i.parent;else{if(!en(i.left)){if(o=s+i.maxEnd,o<t){tn(i,!0);continue}if(i.left!==hn){i=i.left;continue}}a=s+i.start,a>n?(i.start+=l,i.end+=l,i.delta+=l,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0),tn(i,!0)):(tn(i,!0),i.right===hn||en(i.right)||(s+=i.delta,i=i.right))}tn(e.root,!1)}(this,e,e+t,n),this._normalizeDeltaIfNecessary();for(let s=0,o=i.length;s<o;s++){const o=i[s];o.start=o.cachedAbsoluteStart,o.end=o.cachedAbsoluteEnd,gn(o,e,e+t,n,r),o.maxEnd=o.end,fn(this,o)}this._normalizeDeltaIfNecessary()}_normalizeDeltaIfNecessary(){this.requestNormalizeDelta&&(this.requestNormalizeDelta=!1,function(e){let t=e.root,n=0;for(;t!==hn;)t.left===hn||en(t.left)?t.right===hn||en(t.right)?(t.start=n+t.start,t.end=n+t.end,t.delta=0,vn(t),tn(t,!0),tn(t.left,!1),tn(t.right,!1),t===t.parent.right&&(n-=t.parent.delta),t=t.parent):(n+=t.delta,t=t.right):t=t.left;tn(e.root,!1)}(this))}}function dn(e,t,n,r){return e<n||!(e>n)&&(1!==r&&(2===r||t))}function gn(e,t,n,r,i){const s=function(e){return(24&e.metadata)>>>3}(e),o=0===s||2===s,a=1===s||2===s,l=n-t,c=r,h=Math.min(l,c),u=e.start;let d=!1;const g=e.end;let f=!1;t<=u&&g<=n&&function(e){return(32&e.metadata)>>>5===1}(e)&&(e.start=t,d=!0,e.end=t,f=!0);{const e=i?1:l>0?2:0;!d&&dn(u,o,t,e)&&(d=!0),!f&&dn(g,a,t,e)&&(f=!0)}if(h>0&&!i){const e=l>c?2:0;!d&&dn(u,o,t+h,e)&&(d=!0),!f&&dn(g,a,t+h,e)&&(f=!0)}{const r=i?1:0;!d&&dn(u,o,n,r)&&(e.start=t+c,d=!0),!f&&dn(g,a,n,r)&&(e.end=t+c,f=!0)}const m=c-l;d||(e.start=Math.max(0,u+m)),f||(e.end=Math.max(0,g+m)),e.start>e.end&&(e.end=e.start)}function fn(e,t){if(e.root===hn)return t.parent=hn,t.left=hn,t.right=hn,Zt(t,0),e.root=t,e.root;!function(e,t){let n=0,r=e.root;const i=t.start,s=t.end;for(;;){if(yn(i,s,r.start+n,r.end+n)<0){if(r.left===hn){t.start-=n,t.end-=n,t.maxEnd-=n,r.left=t;break}r=r.left}else{if(r.right===hn){t.start-=n+r.delta,t.end-=n+r.delta,t.maxEnd-=n+r.delta,r.right=t;break}n+=r.delta,r=r.right}}t.parent=r,t.left=hn,t.right=hn,Zt(t,1)}(e,t),Cn(t.parent);let n=t;for(;n!==e.root&&1===Yt(n.parent);)if(n.parent===n.parent.parent.left){const t=n.parent.parent.right;1===Yt(t)?(Zt(n.parent,0),Zt(t,0),Zt(n.parent.parent,1),n=n.parent.parent):(n===n.parent.right&&(n=n.parent,bn(e,n)),Zt(n.parent,0),Zt(n.parent.parent,1),_n(e,n.parent.parent))}else{const t=n.parent.parent.left;1===Yt(t)?(Zt(n.parent,0),Zt(t,0),Zt(n.parent.parent,1),n=n.parent.parent):(n===n.parent.left&&(n=n.parent,_n(e,n)),Zt(n.parent,0),Zt(n.parent.parent,1),bn(e,n.parent.parent))}return Zt(e.root,0),t}function mn(e,t){let n,r;if(t.left===hn?(n=t.right,r=t,n.delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta):t.right===hn?(n=t.left,r=t):(r=function(e){for(;e.left!==hn;)e=e.left;return e}(t.right),n=r.right,n.start+=r.delta,n.end+=r.delta,n.delta+=r.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),r.start+=t.delta,r.end+=t.delta,r.delta=t.delta,(r.delta<-1073741824||r.delta>1073741824)&&(e.requestNormalizeDelta=!0)),r===e.root)return e.root=n,Zt(n,0),t.detach(),pn(),vn(n),void(e.root.parent=hn);const i=1===Yt(r);if(r===r.parent.left?r.parent.left=n:r.parent.right=n,r===t?n.parent=r.parent:(r.parent===t?n.parent=r:n.parent=r.parent,r.left=t.left,r.right=t.right,r.parent=t.parent,Zt(r,Yt(t)),t===e.root?e.root=r:t===t.parent.left?t.parent.left=r:t.parent.right=r,r.left!==hn&&(r.left.parent=r),r.right!==hn&&(r.right.parent=r)),t.detach(),i)return Cn(n.parent),r!==t&&(Cn(r),Cn(r.parent)),void pn();let s;for(Cn(n),Cn(n.parent),r!==t&&(Cn(r),Cn(r.parent));n!==e.root&&0===Yt(n);)n===n.parent.left?(s=n.parent.right,1===Yt(s)&&(Zt(s,0),Zt(n.parent,1),bn(e,n.parent),s=n.parent.right),0===Yt(s.left)&&0===Yt(s.right)?(Zt(s,1),n=n.parent):(0===Yt(s.right)&&(Zt(s.left,0),Zt(s,1),_n(e,s),s=n.parent.right),Zt(s,Yt(n.parent)),Zt(n.parent,0),Zt(s.right,0),bn(e,n.parent),n=e.root)):(s=n.parent.left,1===Yt(s)&&(Zt(s,0),Zt(n.parent,1),_n(e,n.parent),s=n.parent.left),0===Yt(s.left)&&0===Yt(s.right)?(Zt(s,1),n=n.parent):(0===Yt(s.left)&&(Zt(s.right,0),Zt(s,1),bn(e,s),s=n.parent.left),Zt(s,Yt(n.parent)),Zt(n.parent,0),Zt(s.left,0),_n(e,n.parent),n=e.root));Zt(n,0),pn()}function pn(){hn.parent=hn,hn.delta=0,hn.start=0,hn.end=0}function bn(e,t){const n=t.right;n.delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta,t.right=n.left,n.left!==hn&&(n.left.parent=t),n.parent=t.parent,t.parent===hn?e.root=n:t===t.parent.left?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n,vn(t),vn(n)}function _n(e,t){const n=t.left;t.delta-=n.delta,(t.delta<-1073741824||t.delta>1073741824)&&(e.requestNormalizeDelta=!0),t.start-=n.delta,t.end-=n.delta,t.left=n.right,n.right!==hn&&(n.right.parent=t),n.parent=t.parent,t.parent===hn?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n,vn(t),vn(n)}function kn(e){let t=e.end;if(e.left!==hn){const n=e.left.maxEnd;n>t&&(t=n)}if(e.right!==hn){const n=e.right.maxEnd+e.delta;n>t&&(t=n)}return t}function vn(e){e.maxEnd=kn(e)}function Cn(e){for(;e!==hn;){const t=kn(e);if(e.maxEnd===t)return;e.maxEnd=t,e=e.parent}}function yn(e,t,n,r){return e===n?t-r:e-n}class Ln{constructor(e,t){this.piece=e,this.color=t,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}next(){if(this.right!==wn)return Sn(this.right);let e=this;for(;e.parent!==wn&&e.parent.left!==e;)e=e.parent;return e.parent===wn?wn:e.parent}prev(){if(this.left!==wn)return xn(this.left);let e=this;for(;e.parent!==wn&&e.parent.right!==e;)e=e.parent;return e.parent===wn?wn:e.parent}detach(){this.parent=null,this.left=null,this.right=null}}const wn=new Ln(null,0);function Sn(e){for(;e.left!==wn;)e=e.left;return e}function xn(e){for(;e.right!==wn;)e=e.right;return e}function En(e){return e===wn?0:e.size_left+e.piece.length+En(e.right)}function Nn(e){return e===wn?0:e.lf_left+e.piece.lineFeedCnt+Nn(e.right)}function Tn(){wn.parent=wn}function An(e,t){const n=t.right;n.size_left+=t.size_left+(t.piece?t.piece.length:0),n.lf_left+=t.lf_left+(t.piece?t.piece.lineFeedCnt:0),t.right=n.left,n.left!==wn&&(n.left.parent=t),n.parent=t.parent,t.parent===wn?e.root=n:t.parent.left===t?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n}function In(e,t){const n=t.left;t.left=n.right,n.right!==wn&&(n.right.parent=t),n.parent=t.parent,t.size_left-=n.size_left+(n.piece?n.piece.length:0),t.lf_left-=n.lf_left+(n.piece?n.piece.lineFeedCnt:0),t.parent===wn?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n}function On(e,t){let n,r;if(t.left===wn?(r=t,n=r.right):t.right===wn?(r=t,n=r.left):(r=Sn(t.right),n=r.right),r===e.root)return e.root=n,n.color=0,t.detach(),Tn(),void(e.root.parent=wn);const i=1===r.color;if(r===r.parent.left?r.parent.left=n:r.parent.right=n,r===t?(n.parent=r.parent,Dn(e,n)):(r.parent===t?n.parent=r:n.parent=r.parent,Dn(e,n),r.left=t.left,r.right=t.right,r.parent=t.parent,r.color=t.color,t===e.root?e.root=r:t===t.parent.left?t.parent.left=r:t.parent.right=r,r.left!==wn&&(r.left.parent=r),r.right!==wn&&(r.right.parent=r),r.size_left=t.size_left,r.lf_left=t.lf_left,Dn(e,r)),t.detach(),n.parent.left===n){const t=En(n),r=Nn(n);if(t!==n.parent.size_left||r!==n.parent.lf_left){const i=t-n.parent.size_left,s=r-n.parent.lf_left;n.parent.size_left=t,n.parent.lf_left=r,Rn(e,n.parent,i,s)}}if(Dn(e,n.parent),i)return void Tn();let s;for(;n!==e.root&&0===n.color;)n===n.parent.left?(s=n.parent.right,1===s.color&&(s.color=0,n.parent.color=1,An(e,n.parent),s=n.parent.right),0===s.left.color&&0===s.right.color?(s.color=1,n=n.parent):(0===s.right.color&&(s.left.color=0,s.color=1,In(e,s),s=n.parent.right),s.color=n.parent.color,n.parent.color=0,s.right.color=0,An(e,n.parent),n=e.root)):(s=n.parent.left,1===s.color&&(s.color=0,n.parent.color=1,In(e,n.parent),s=n.parent.left),0===s.left.color&&0===s.right.color?(s.color=1,n=n.parent):(0===s.left.color&&(s.right.color=0,s.color=1,An(e,s),s=n.parent.left),s.color=n.parent.color,n.parent.color=0,s.left.color=0,In(e,n.parent),n=e.root));n.color=0,Tn()}function Mn(e,t){for(Dn(e,t);t!==e.root&&1===t.parent.color;)if(t.parent===t.parent.parent.left){const n=t.parent.parent.right;1===n.color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.right&&An(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,In(e,t.parent.parent))}else{const n=t.parent.parent.left;1===n.color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.left&&In(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,An(e,t.parent.parent))}e.root.color=0}function Rn(e,t,n,r){for(;t!==e.root&&t!==wn;)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=r),t=t.parent}function Dn(e,t){let n=0,r=0;if(t!==e.root){for(;t!==e.root&&t===t.parent.right;)t=t.parent;if(t!==e.root)for(n=En((t=t.parent).left)-t.size_left,r=Nn(t.left)-t.lf_left,t.size_left+=n,t.lf_left+=r;t!==e.root&&(0!==n||0!==r);)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=r),t=t.parent}}wn.parent=wn,wn.left=wn,wn.right=wn,wn.color=0;var Bn=n(7729);const Fn=65535;function Pn(e){let t;return t=e[e.length-1]<65536?new Uint16Array(e.length):new Uint32Array(e.length),t.set(e,0),t}class Vn{constructor(e,t,n,r,i){this.lineStarts=e,this.cr=t,this.lf=n,this.crlf=r,this.isBasicASCII=i}}function zn(e,t=!0){const n=[0];let r=1;for(let i=0,s=e.length;i<s;i++){const t=e.charCodeAt(i);13===t?i+1<s&&10===e.charCodeAt(i+1)?(n[r++]=i+2,i++):n[r++]=i+1:10===t&&(n[r++]=i+1)}return t?Pn(n):n}class jn{constructor(e,t,n,r,i){this.bufferIndex=e,this.start=t,this.end=n,this.lineFeedCnt=r,this.length=i}}class qn{constructor(e,t){this.buffer=e,this.lineStarts=t}}class Wn{constructor(e,t){this._pieces=[],this._tree=e,this._BOM=t,this._index=0,e.root!==wn&&e.iterate(e.root,(e=>(e!==wn&&this._pieces.push(e.piece),!0)))}read(){return 0===this._pieces.length?0===this._index?(this._index++,this._BOM):null:this._index>this._pieces.length-1?null:0===this._index?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])}}class Un{constructor(e){this._limit=e,this._cache=[]}get(e){for(let t=this._cache.length-1;t>=0;t--){const n=this._cache[t];if(n.nodeStartOffset<=e&&n.nodeStartOffset+n.node.piece.length>=e)return n}return null}get2(e){for(let t=this._cache.length-1;t>=0;t--){const n=this._cache[t];if(n.nodeStartLineNumber&&n.nodeStartLineNumber<e&&n.nodeStartLineNumber+n.node.piece.lineFeedCnt>=e)return n}return null}set(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)}validate(e){let t=!1;const n=this._cache;for(let r=0;r<n.length;r++){const i=n[r];(null===i.node.parent||i.nodeStartOffset>=e)&&(n[r]=null,t=!0)}if(t){const e=[];for(const t of n)null!==t&&e.push(t);this._cache=e}}}class $n{constructor(e,t,n){this.create(e,t,n)}create(e,t,n){this._buffers=[new qn("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=wn,this._lineCnt=1,this._length=0,this._EOL=t,this._EOLLength=t.length,this._EOLNormalized=n;let r=null;for(let i=0,s=e.length;i<s;i++)if(e[i].buffer.length>0){e[i].lineStarts||(e[i].lineStarts=zn(e[i].buffer));const t=new jn(i+1,{line:0,column:0},{line:e[i].lineStarts.length-1,column:e[i].buffer.length-e[i].lineStarts[e[i].lineStarts.length-1]},e[i].lineStarts.length-1,e[i].buffer.length);this._buffers.push(e[i]),r=this.rbInsertRight(r,t)}this._searchCache=new Un(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()}normalizeEOL(e){const t=Fn,n=t-Math.floor(21845),r=2*n;let i="",s=0;const o=[];if(this.iterate(this.root,(t=>{const a=this.getNodeContent(t),l=a.length;if(s<=n||s+l<r)return i+=a,s+=l,!0;const c=i.replace(/\r\n|\r|\n/g,e);return o.push(new qn(c,zn(c))),i=a,s=l,!0})),s>0){const t=i.replace(/\r\n|\r|\n/g,e);o.push(new qn(t,zn(t)))}this.create(o,e,!0)}getEOL(){return this._EOL}setEOL(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)}createSnapshot(e){return new Wn(this,e)}getOffsetAt(e,t){let n=0,r=this.root;for(;r!==wn;)if(r.left!==wn&&r.lf_left+1>=e)r=r.left;else{if(r.lf_left+r.piece.lineFeedCnt+1>=e){n+=r.size_left;return n+(this.getAccumulatedValue(r,e-r.lf_left-2)+t-1)}e-=r.lf_left+r.piece.lineFeedCnt,n+=r.size_left+r.piece.length,r=r.right}return n}getPositionAt(e){e=Math.floor(e),e=Math.max(0,e);let t=this.root,n=0;const r=e;for(;t!==wn;)if(0!==t.size_left&&t.size_left>=e)t=t.left;else{if(t.size_left+t.piece.length>=e){const i=this.getIndexOf(t,e-t.size_left);if(n+=t.lf_left+i.index,0===i.index){const e=r-this.getOffsetAt(n+1,1);return new f.y(n+1,e+1)}return new f.y(n+1,i.remainder+1)}if(e-=t.size_left+t.piece.length,n+=t.lf_left+t.piece.lineFeedCnt,t.right===wn){const t=r-e-this.getOffsetAt(n+1,1);return new f.y(n+1,t+1)}t=t.right}return new f.y(1,1)}getValueInRange(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";const n=this.nodeAt2(e.startLineNumber,e.startColumn),r=this.nodeAt2(e.endLineNumber,e.endColumn),i=this.getValueInRange2(n,r);return t?t===this._EOL&&this._EOLNormalized&&t===this.getEOL()&&this._EOLNormalized?i:i.replace(/\r\n|\r|\n/g,t):i}getValueInRange2(e,t){if(e.node===t.node){const n=e.node,r=this._buffers[n.piece.bufferIndex].buffer,i=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return r.substring(i+e.remainder,i+t.remainder)}let n=e.node;const r=this._buffers[n.piece.bufferIndex].buffer,i=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);let s=r.substring(i+e.remainder,i+n.piece.length);for(n=n.next();n!==wn;){const e=this._buffers[n.piece.bufferIndex].buffer,r=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);if(n===t.node){s+=e.substring(r,r+t.remainder);break}s+=e.substr(r,n.piece.length),n=n.next()}return s}getLinesContent(){const e=[];let t=0,n="",r=!1;return this.iterate(this.root,(i=>{if(i===wn)return!0;const s=i.piece;let o=s.length;if(0===o)return!0;const a=this._buffers[s.bufferIndex].buffer,l=this._buffers[s.bufferIndex].lineStarts,c=s.start.line,h=s.end.line;let u=l[c]+s.start.column;if(r&&(10===a.charCodeAt(u)&&(u++,o--),e[t++]=n,n="",r=!1,0===o))return!0;if(c===h)return this._EOLNormalized||13!==a.charCodeAt(u+o-1)?n+=a.substr(u,o):(r=!0,n+=a.substr(u,o-1)),!0;n+=this._EOLNormalized?a.substring(u,Math.max(u,l[c+1]-this._EOLLength)):a.substring(u,l[c+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=n;for(let r=c+1;r<h;r++)n=this._EOLNormalized?a.substring(l[r],l[r+1]-this._EOLLength):a.substring(l[r],l[r+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=n;return this._EOLNormalized||13!==a.charCodeAt(l[h]+s.end.column-1)?n=a.substr(l[h],s.end.column):(r=!0,0===s.end.column?t--:n=a.substr(l[h],s.end.column-1)),!0})),r&&(e[t++]=n,n=""),e[t++]=n,e}getLength(){return this._length}getLineCount(){return this._lineCnt}getLineContent(e){return this._lastVisitedLine.lineNumber===e||(this._lastVisitedLine.lineNumber=e,e===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(e):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(e,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(e).replace(/(\r\n|\r|\n)$/,"")),this._lastVisitedLine.value}_getCharCode(e){if(e.remainder===e.node.piece.length){const t=e.node.next();if(!t)return 0;const n=this._buffers[t.piece.bufferIndex],r=this.offsetInBuffer(t.piece.bufferIndex,t.piece.start);return n.buffer.charCodeAt(r)}{const t=this._buffers[e.node.piece.bufferIndex],n=this.offsetInBuffer(e.node.piece.bufferIndex,e.node.piece.start)+e.remainder;return t.buffer.charCodeAt(n)}}getLineCharCode(e,t){const n=this.nodeAt2(e,t+1);return this._getCharCode(n)}getLineLength(e){if(e===this.getLineCount()){const t=this.getOffsetAt(e,1);return this.getLength()-t}return this.getOffsetAt(e+1,1)-this.getOffsetAt(e,1)-this._EOLLength}findMatchesInNode(e,t,n,r,i,s,o,a,l,c,h){const u=this._buffers[e.piece.bufferIndex],d=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start),g=this.offsetInBuffer(e.piece.bufferIndex,i),f=this.offsetInBuffer(e.piece.bufferIndex,s);let p;const b={line:0,column:0};let _,k;t._wordSeparators?(_=u.buffer.substring(g,f),k=e=>e+g,t.reset(0)):(_=u.buffer,k=e=>e,t.reset(g));do{if(p=t.next(_),p){if(k(p.index)>=f)return c;this.positionInBuffer(e,k(p.index)-d,b);const t=this.getLineFeedCnt(e.piece.bufferIndex,i,b),s=b.line===i.line?b.column-i.column+r:b.column+1,o=s+p[0].length;if(h[c++]=(0,Bn.dr)(new m.Q(n+t,s,n+t,o),p,a),k(p.index)+p[0].length>=f)return c;if(c>=l)return c}}while(p);return c}findMatchesLineByLine(e,t,n,r){const i=[];let s=0;const o=new Bn.W5(t.wordSeparators,t.regex);let a=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===a)return[];const l=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===l)return[];let c=this.positionInBuffer(a.node,a.remainder);const h=this.positionInBuffer(l.node,l.remainder);if(a.node===l.node)return this.findMatchesInNode(a.node,o,e.startLineNumber,e.startColumn,c,h,t,n,r,s,i),i;let u=e.startLineNumber,d=a.node;for(;d!==l.node;){const l=this.getLineFeedCnt(d.piece.bufferIndex,c,d.piece.end);if(l>=1){const a=this._buffers[d.piece.bufferIndex].lineStarts,h=this.offsetInBuffer(d.piece.bufferIndex,d.piece.start),g=a[c.line+l],f=u===e.startLineNumber?e.startColumn:1;if(s=this.findMatchesInNode(d,o,u,f,c,this.positionInBuffer(d,g-h),t,n,r,s,i),s>=r)return i;u+=l}const h=u===e.startLineNumber?e.startColumn-1:0;if(u===e.endLineNumber){const a=this.getLineContent(u).substring(h,e.endColumn-1);return s=this._findMatchesInLine(t,o,a,e.endLineNumber,h,s,i,n,r),i}if(s=this._findMatchesInLine(t,o,this.getLineContent(u).substr(h),u,h,s,i,n,r),s>=r)return i;u++,a=this.nodeAt2(u,1),d=a.node,c=this.positionInBuffer(a.node,a.remainder)}if(u===e.endLineNumber){const a=u===e.startLineNumber?e.startColumn-1:0,l=this.getLineContent(u).substring(a,e.endColumn-1);return s=this._findMatchesInLine(t,o,l,e.endLineNumber,a,s,i,n,r),i}const g=u===e.startLineNumber?e.startColumn:1;return s=this.findMatchesInNode(l.node,o,u,g,c,h,t,n,r,s,i),i}_findMatchesInLine(e,t,n,r,i,s,o,a,l){const c=e.wordSeparators;if(!a&&e.simpleSearch){const t=e.simpleSearch,a=t.length,h=n.length;let u=-a;for(;-1!==(u=n.indexOf(t,u+a));)if((!c||(0,Bn.wC)(c,n,h,u,a))&&(o[s++]=new me.Dg(new m.Q(r,u+1+i,r,u+1+a+i),null),s>=l))return s;return s}let h;t.reset(0);do{if(h=t.next(n),h&&(o[s++]=(0,Bn.dr)(new m.Q(r,h.index+1+i,r,h.index+1+h[0].length+i),h,a),s>=l))return s}while(h);return s}insert(e,t,n=!1){if(this._EOLNormalized=this._EOLNormalized&&n,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==wn){const{node:n,remainder:r,nodeStartOffset:i}=this.nodeAt(e),s=n.piece,o=s.bufferIndex,a=this.positionInBuffer(n,r);if(0===n.piece.bufferIndex&&s.end.line===this._lastChangeBufferPos.line&&s.end.column===this._lastChangeBufferPos.column&&i+s.length===e&&t.length<Fn)return this.appendToNode(n,t),void this.computeBufferMetadata();if(i===e)this.insertContentToNodeLeft(t,n),this._searchCache.validate(e);else if(i+n.piece.length>e){const e=[];let i=new jn(s.bufferIndex,a,s.end,this.getLineFeedCnt(s.bufferIndex,a,s.end),this.offsetInBuffer(o,s.end)-this.offsetInBuffer(o,a));if(this.shouldCheckCRLF()&&this.endWithCR(t)){if(10===this.nodeCharCodeAt(n,r)){const e={line:i.start.line+1,column:0};i=new jn(i.bufferIndex,e,i.end,this.getLineFeedCnt(i.bufferIndex,e,i.end),i.length-1),t+="\n"}}if(this.shouldCheckCRLF()&&this.startWithLF(t)){if(13===this.nodeCharCodeAt(n,r-1)){const i=this.positionInBuffer(n,r-1);this.deleteNodeTail(n,i),t="\r"+t,0===n.piece.length&&e.push(n)}else this.deleteNodeTail(n,a)}else this.deleteNodeTail(n,a);const l=this.createNewPieces(t);i.length>0&&this.rbInsertRight(n,i);let c=n;for(let t=0;t<l.length;t++)c=this.rbInsertRight(c,l[t]);this.deleteNodes(e)}else this.insertContentToNodeRight(t,n)}else{const e=this.createNewPieces(t);let n=this.rbInsertLeft(null,e[0]);for(let t=1;t<e.length;t++)n=this.rbInsertRight(n,e[t])}this.computeBufferMetadata()}delete(e,t){if(this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",t<=0||this.root===wn)return;const n=this.nodeAt(e),r=this.nodeAt(e+t),i=n.node,s=r.node;if(i===s){const s=this.positionInBuffer(i,n.remainder),o=this.positionInBuffer(i,r.remainder);if(n.nodeStartOffset===e){if(t===i.piece.length){const e=i.next();return On(this,i),this.validateCRLFWithPrevNode(e),void this.computeBufferMetadata()}return this.deleteNodeHead(i,o),this._searchCache.validate(e),this.validateCRLFWithPrevNode(i),void this.computeBufferMetadata()}return n.nodeStartOffset+i.piece.length===e+t?(this.deleteNodeTail(i,s),this.validateCRLFWithNextNode(i),void this.computeBufferMetadata()):(this.shrinkNode(i,s,o),void this.computeBufferMetadata())}const o=[],a=this.positionInBuffer(i,n.remainder);this.deleteNodeTail(i,a),this._searchCache.validate(e),0===i.piece.length&&o.push(i);const l=this.positionInBuffer(s,r.remainder);this.deleteNodeHead(s,l),0===s.piece.length&&o.push(s);for(let h=i.next();h!==wn&&h!==s;h=h.next())o.push(h);const c=0===i.piece.length?i.prev():i;this.deleteNodes(o),this.validateCRLFWithNextNode(c),this.computeBufferMetadata()}insertContentToNodeLeft(e,t){const n=[];if(this.shouldCheckCRLF()&&this.endWithCR(e)&&this.startWithLF(t)){const r=t.piece,i={line:r.start.line+1,column:0},s=new jn(r.bufferIndex,i,r.end,this.getLineFeedCnt(r.bufferIndex,i,r.end),r.length-1);t.piece=s,e+="\n",Rn(this,t,-1,-1),0===t.piece.length&&n.push(t)}const r=this.createNewPieces(e);let i=this.rbInsertLeft(t,r[r.length-1]);for(let s=r.length-2;s>=0;s--)i=this.rbInsertLeft(i,r[s]);this.validateCRLFWithPrevNode(i),this.deleteNodes(n)}insertContentToNodeRight(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+="\n");const n=this.createNewPieces(e),r=this.rbInsertRight(t,n[0]);let i=r;for(let s=1;s<n.length;s++)i=this.rbInsertRight(i,n[s]);this.validateCRLFWithPrevNode(r)}positionInBuffer(e,t,n){const r=e.piece,i=e.piece.bufferIndex,s=this._buffers[i].lineStarts,o=s[r.start.line]+r.start.column+t;let a=r.start.line,l=r.end.line,c=0,h=0,u=0;for(;a<=l&&(c=a+(l-a)/2|0,u=s[c],c!==l);)if(h=s[c+1],o<u)l=c-1;else{if(!(o>=h))break;a=c+1}return n?(n.line=c,n.column=o-u,null):{line:c,column:o-u}}getLineFeedCnt(e,t,n){if(0===n.column)return n.line-t.line;const r=this._buffers[e].lineStarts;if(n.line===r.length-1)return n.line-t.line;const i=r[n.line+1],s=r[n.line]+n.column;if(i>s+1)return n.line-t.line;const o=s-1;return 13===this._buffers[e].buffer.charCodeAt(o)?n.line-t.line+1:n.line-t.line}offsetInBuffer(e,t){return this._buffers[e].lineStarts[t.line]+t.column}deleteNodes(e){for(let t=0;t<e.length;t++)On(this,e[t])}createNewPieces(e){if(e.length>Fn){const t=[];for(;e.length>Fn;){const n=e.charCodeAt(65534);let r;13===n||n>=55296&&n<=56319?(r=e.substring(0,65534),e=e.substring(65534)):(r=e.substring(0,Fn),e=e.substring(Fn));const i=zn(r);t.push(new jn(this._buffers.length,{line:0,column:0},{line:i.length-1,column:r.length-i[i.length-1]},i.length-1,r.length)),this._buffers.push(new qn(r,i))}const n=zn(e);return t.push(new jn(this._buffers.length,{line:0,column:0},{line:n.length-1,column:e.length-n[n.length-1]},n.length-1,e.length)),this._buffers.push(new qn(e,n)),t}let t=this._buffers[0].buffer.length;const n=zn(e,!1);let r=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===t&&0!==t&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},r=this._lastChangeBufferPos;for(let e=0;e<n.length;e++)n[e]+=t+1;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(n.slice(1)),this._buffers[0].buffer+="_"+e,t+=1}else{if(0!==t)for(let e=0;e<n.length;e++)n[e]+=t;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(n.slice(1)),this._buffers[0].buffer+=e}const i=this._buffers[0].buffer.length,s=this._buffers[0].lineStarts.length-1,o={line:s,column:i-this._buffers[0].lineStarts[s]},a=new jn(0,r,o,this.getLineFeedCnt(0,r,o),i-t);return this._lastChangeBufferPos=o,[a]}getLineRawContent(e,t=0){let n=this.root,r="";const i=this._searchCache.get2(e);if(i){n=i.node;const s=this.getAccumulatedValue(n,e-i.nodeStartLineNumber-1),o=this._buffers[n.piece.bufferIndex].buffer,a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);if(i.nodeStartLineNumber+n.piece.lineFeedCnt!==e){const r=this.getAccumulatedValue(n,e-i.nodeStartLineNumber);return o.substring(a+s,a+r-t)}r=o.substring(a+s,a+n.piece.length)}else{let i=0;const s=e;for(;n!==wn;)if(n.left!==wn&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){const r=this.getAccumulatedValue(n,e-n.lf_left-2),o=this.getAccumulatedValue(n,e-n.lf_left-1),a=this._buffers[n.piece.bufferIndex].buffer,l=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return i+=n.size_left,this._searchCache.set({node:n,nodeStartOffset:i,nodeStartLineNumber:s-(e-1-n.lf_left)}),a.substring(l+r,l+o-t)}if(n.lf_left+n.piece.lineFeedCnt===e-1){const t=this.getAccumulatedValue(n,e-n.lf_left-2),i=this._buffers[n.piece.bufferIndex].buffer,s=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);r=i.substring(s+t,s+n.piece.length);break}e-=n.lf_left+n.piece.lineFeedCnt,i+=n.size_left+n.piece.length,n=n.right}}for(n=n.next();n!==wn;){const e=this._buffers[n.piece.bufferIndex].buffer;if(n.piece.lineFeedCnt>0){const i=this.getAccumulatedValue(n,0),s=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return r+=e.substring(s,s+i-t),r}{const t=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);r+=e.substr(t,n.piece.length)}n=n.next()}return r}computeBufferMetadata(){let e=this.root,t=1,n=0;for(;e!==wn;)t+=e.lf_left+e.piece.lineFeedCnt,n+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=n,this._searchCache.validate(this._length)}getIndexOf(e,t){const n=e.piece,r=this.positionInBuffer(e,t),i=r.line-n.start.line;if(this.offsetInBuffer(n.bufferIndex,n.end)-this.offsetInBuffer(n.bufferIndex,n.start)===t){const t=this.getLineFeedCnt(e.piece.bufferIndex,n.start,r);if(t!==i)return{index:t,remainder:0}}return{index:i,remainder:r.column}}getAccumulatedValue(e,t){if(t<0)return 0;const n=e.piece,r=this._buffers[n.bufferIndex].lineStarts,i=n.start.line+t+1;return i>n.end.line?r[n.end.line]+n.end.column-r[n.start.line]-n.start.column:r[i]-r[n.start.line]-n.start.column}deleteNodeTail(e,t){const n=e.piece,r=n.lineFeedCnt,i=this.offsetInBuffer(n.bufferIndex,n.end),s=t,o=this.offsetInBuffer(n.bufferIndex,s),a=this.getLineFeedCnt(n.bufferIndex,n.start,s),l=a-r,c=o-i,h=n.length+c;e.piece=new jn(n.bufferIndex,n.start,s,a,h),Rn(this,e,c,l)}deleteNodeHead(e,t){const n=e.piece,r=n.lineFeedCnt,i=this.offsetInBuffer(n.bufferIndex,n.start),s=t,o=this.getLineFeedCnt(n.bufferIndex,s,n.end),a=o-r,l=i-this.offsetInBuffer(n.bufferIndex,s),c=n.length+l;e.piece=new jn(n.bufferIndex,s,n.end,o,c),Rn(this,e,l,a)}shrinkNode(e,t,n){const r=e.piece,i=r.start,s=r.end,o=r.length,a=r.lineFeedCnt,l=t,c=this.getLineFeedCnt(r.bufferIndex,r.start,l),h=this.offsetInBuffer(r.bufferIndex,t)-this.offsetInBuffer(r.bufferIndex,i);e.piece=new jn(r.bufferIndex,r.start,l,c,h),Rn(this,e,h-o,c-a);const u=new jn(r.bufferIndex,n,s,this.getLineFeedCnt(r.bufferIndex,n,s),this.offsetInBuffer(r.bufferIndex,s)-this.offsetInBuffer(r.bufferIndex,n)),d=this.rbInsertRight(e,u);this.validateCRLFWithPrevNode(d)}appendToNode(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+="\n");const n=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),r=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;const i=zn(t,!1);for(let u=0;u<i.length;u++)i[u]+=r;if(n){const e=this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-2];this._buffers[0].lineStarts.pop(),this._lastChangeBufferPos={line:this._lastChangeBufferPos.line-1,column:r-e}}this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(i.slice(1));const s=this._buffers[0].lineStarts.length-1,o={line:s,column:this._buffers[0].buffer.length-this._buffers[0].lineStarts[s]},a=e.piece.length+t.length,l=e.piece.lineFeedCnt,c=this.getLineFeedCnt(0,e.piece.start,o),h=c-l;e.piece=new jn(e.piece.bufferIndex,e.piece.start,o,c,a),this._lastChangeBufferPos=o,Rn(this,e,t.length,h)}nodeAt(e){let t=this.root;const n=this._searchCache.get(e);if(n)return{node:n.node,nodeStartOffset:n.nodeStartOffset,remainder:e-n.nodeStartOffset};let r=0;for(;t!==wn;)if(t.size_left>e)t=t.left;else{if(t.size_left+t.piece.length>=e){r+=t.size_left;const n={node:t,remainder:e-t.size_left,nodeStartOffset:r};return this._searchCache.set(n),n}e-=t.size_left+t.piece.length,r+=t.size_left+t.piece.length,t=t.right}return null}nodeAt2(e,t){let n=this.root,r=0;for(;n!==wn;)if(n.left!==wn&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){const i=this.getAccumulatedValue(n,e-n.lf_left-2),s=this.getAccumulatedValue(n,e-n.lf_left-1);return r+=n.size_left,{node:n,remainder:Math.min(i+t-1,s),nodeStartOffset:r}}if(n.lf_left+n.piece.lineFeedCnt===e-1){const i=this.getAccumulatedValue(n,e-n.lf_left-2);if(i+t-1<=n.piece.length)return{node:n,remainder:i+t-1,nodeStartOffset:r};t-=n.piece.length-i;break}e-=n.lf_left+n.piece.lineFeedCnt,r+=n.size_left+n.piece.length,n=n.right}for(n=n.next();n!==wn;){if(n.piece.lineFeedCnt>0){const e=this.getAccumulatedValue(n,0),r=this.offsetOfNode(n);return{node:n,remainder:Math.min(t-1,e),nodeStartOffset:r}}if(n.piece.length>=t-1){return{node:n,remainder:t-1,nodeStartOffset:this.offsetOfNode(n)}}t-=n.piece.length,n=n.next()}return null}nodeCharCodeAt(e,t){if(e.piece.lineFeedCnt<1)return-1;const n=this._buffers[e.piece.bufferIndex],r=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return n.buffer.charCodeAt(r)}offsetOfNode(e){if(!e)return 0;let t=e.size_left;for(;e!==this.root;)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t}shouldCheckCRLF(){return!(this._EOLNormalized&&"\n"===this._EOL)}startWithLF(e){if("string"===typeof e)return 10===e.charCodeAt(0);if(e===wn||0===e.piece.lineFeedCnt)return!1;const t=e.piece,n=this._buffers[t.bufferIndex].lineStarts,r=t.start.line,i=n[r]+t.start.column;if(r===n.length-1)return!1;return!(n[r+1]>i+1)&&10===this._buffers[t.bufferIndex].buffer.charCodeAt(i)}endWithCR(e){return"string"===typeof e?13===e.charCodeAt(e.length-1):e!==wn&&0!==e.piece.lineFeedCnt&&13===this.nodeCharCodeAt(e,e.piece.length-1)}validateCRLFWithPrevNode(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){const t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}}validateCRLFWithNextNode(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}}fixCRLF(e,t){const n=[],r=this._buffers[e.piece.bufferIndex].lineStarts;let i;i=0===e.piece.end.column?{line:e.piece.end.line-1,column:r[e.piece.end.line]-r[e.piece.end.line-1]-1}:{line:e.piece.end.line,column:e.piece.end.column-1};const s=e.piece.length-1,o=e.piece.lineFeedCnt-1;e.piece=new jn(e.piece.bufferIndex,e.piece.start,i,o,s),Rn(this,e,-1,-1),0===e.piece.length&&n.push(e);const a={line:t.piece.start.line+1,column:0},l=t.piece.length-1,c=this.getLineFeedCnt(t.piece.bufferIndex,a,t.piece.end);t.piece=new jn(t.piece.bufferIndex,a,t.piece.end,c,l),Rn(this,t,-1,-1),0===t.piece.length&&n.push(t);const h=this.createNewPieces("\r\n");this.rbInsertRight(e,h[0]);for(let u=0;u<n.length;u++)On(this,n[u])}adjustCarriageReturnFromNext(e,t){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const n=t.next();if(this.startWithLF(n)){if(e+="\n",1===n.piece.length)On(this,n);else{const e=n.piece,t={line:e.start.line+1,column:0},r=e.length-1,i=this.getLineFeedCnt(e.bufferIndex,t,e.end);n.piece=new jn(e.bufferIndex,t,e.end,i,r),Rn(this,n,-1,-1)}return!0}}return!1}iterate(e,t){if(e===wn)return t(wn);const n=this.iterate(e.left,t);return n?t(e)&&this.iterate(e.right,t):n}getNodeContent(e){if(e===wn)return"";const t=this._buffers[e.piece.bufferIndex],n=e.piece,r=this.offsetInBuffer(n.bufferIndex,n.start),i=this.offsetInBuffer(n.bufferIndex,n.end);return t.buffer.substring(r,i)}getPieceContent(e){const t=this._buffers[e.bufferIndex],n=this.offsetInBuffer(e.bufferIndex,e.start),r=this.offsetInBuffer(e.bufferIndex,e.end);return t.buffer.substring(n,r)}rbInsertRight(e,t){const n=new Ln(t,1);n.left=wn,n.right=wn,n.parent=wn,n.size_left=0,n.lf_left=0;if(this.root===wn)this.root=n,n.color=0;else if(e.right===wn)e.right=n,n.parent=e;else{const t=Sn(e.right);t.left=n,n.parent=t}return Mn(this,n),n}rbInsertLeft(e,t){const n=new Ln(t,1);if(n.left=wn,n.right=wn,n.parent=wn,n.size_left=0,n.lf_left=0,this.root===wn)this.root=n,n.color=0;else if(e.left===wn)e.left=n,n.parent=e;else{const t=xn(e.left);t.right=n,n.parent=t}return Mn(this,n),n}}class Hn extends i.jG{constructor(e,t,n,i,s,o,a){super(),this._onDidChangeContent=this._register(new r.vl),this._BOM=t,this._mightContainNonBasicASCII=!o,this._mightContainRTL=i,this._mightContainUnusualLineTerminators=s,this._pieceTree=new $n(e,n,a)}mightContainRTL(){return this._mightContainRTL}mightContainUnusualLineTerminators(){return this._mightContainUnusualLineTerminators}resetMightContainUnusualLineTerminators(){this._mightContainUnusualLineTerminators=!1}mightContainNonBasicASCII(){return this._mightContainNonBasicASCII}getBOM(){return this._BOM}getEOL(){return this._pieceTree.getEOL()}createSnapshot(e){return this._pieceTree.createSnapshot(e?this._BOM:"")}getOffsetAt(e,t){return this._pieceTree.getOffsetAt(e,t)}getPositionAt(e){return this._pieceTree.getPositionAt(e)}getRangeAt(e,t){const n=e+t,r=this.getPositionAt(e),i=this.getPositionAt(n);return new m.Q(r.lineNumber,r.column,i.lineNumber,i.column)}getValueInRange(e,t=0){if(e.isEmpty())return"";const n=this._getEndOfLine(t);return this._pieceTree.getValueInRange(e,n)}getValueLengthInRange(e,t=0){if(e.isEmpty())return 0;if(e.startLineNumber===e.endLineNumber)return e.endColumn-e.startColumn;const n=this.getOffsetAt(e.startLineNumber,e.startColumn),r=this.getOffsetAt(e.endLineNumber,e.endColumn);let i=0;const s=this._getEndOfLine(t),o=this.getEOL();if(s.length!==o.length){i=(s.length-o.length)*(e.endLineNumber-e.startLineNumber)}return r-n+i}getCharacterCountInRange(e,t=0){if(this._mightContainNonBasicASCII){let n=0;const r=e.startLineNumber,i=e.endLineNumber;for(let t=r;t<=i;t++){const s=this.getLineContent(t),o=t===r?e.startColumn-1:0,a=t===i?e.endColumn-1:s.length;for(let e=o;e<a;e++)c.pc(s.charCodeAt(e))?(n+=1,e+=1):n+=1}return n+=this._getEndOfLine(t).length*(i-r),n}return this.getValueLengthInRange(e,t)}getLength(){return this._pieceTree.getLength()}getLineCount(){return this._pieceTree.getLineCount()}getLinesContent(){return this._pieceTree.getLinesContent()}getLineContent(e){return this._pieceTree.getLineContent(e)}getLineCharCode(e,t){return this._pieceTree.getLineCharCode(e,t)}getLineLength(e){return this._pieceTree.getLineLength(e)}getLineFirstNonWhitespaceColumn(e){const t=c.HG(this.getLineContent(e));return-1===t?0:t+1}getLineLastNonWhitespaceColumn(e){const t=c.lT(this.getLineContent(e));return-1===t?0:t+2}_getEndOfLine(e){switch(e){case 1:return"\n";case 2:return"\r\n";case 0:return this.getEOL();default:throw new Error("Unknown EOL preference")}}setEOL(e){this._pieceTree.setEOL(e)}applyEdits(e,t,n){let r=this._mightContainRTL,i=this._mightContainUnusualLineTerminators,s=this._mightContainNonBasicASCII,o=!0,a=[];for(let p=0;p<e.length;p++){const t=e[p];o&&t._isTracked&&(o=!1);const n=t.range;if(t.text){let e=!0;s||(e=!c.aC(t.text),s=e),!r&&e&&(r=c.E_(t.text)),!i&&e&&(i=c.$X(t.text))}let l="",h=0,d=0,g=0;if(t.text){let e;[h,d,g,e]=(0,u.W)(t.text);const n=this.getEOL();l=0===e||e===("\r\n"===n?2:1)?t.text:t.text.replace(/\r\n|\r|\n/g,n)}a[p]={sortIndex:p,identifier:t.identifier||null,range:n,rangeOffset:this.getOffsetAt(n.startLineNumber,n.startColumn),rangeLength:this.getValueLengthInRange(n),text:l,eolCount:h,firstLineLength:d,lastLineLength:g,forceMoveMarkers:Boolean(t.forceMoveMarkers),isAutoWhitespaceEdit:t.isAutoWhitespaceEdit||!1}}a.sort(Hn._sortOpsAscending);let l=!1;for(let c=0,u=a.length-1;c<u;c++){const e=a[c].range.getEndPosition(),t=a[c+1].range.getStartPosition();if(t.isBeforeOrEqual(e)){if(t.isBefore(e))throw new Error("Overlapping ranges are not allowed!");l=!0}}o&&(a=this._reduceOperations(a));const h=n||t?Hn._getInverseEditRanges(a):[],d=[];if(t)for(let u=0;u<a.length;u++){const e=a[u],t=h[u];if(e.isAutoWhitespaceEdit&&e.range.isEmpty())for(let n=t.startLineNumber;n<=t.endLineNumber;n++){let r="";n===t.startLineNumber&&(r=this.getLineContent(e.range.startLineNumber),-1!==c.HG(r))||d.push({lineNumber:n,oldContent:r})}}let g=null;if(n){let e=0;g=[];for(let t=0;t<a.length;t++){const n=a[t],r=h[t],i=this.getValueInRange(n.range),s=n.rangeOffset+e;e+=n.text.length-i.length,g[t]={sortIndex:n.sortIndex,identifier:n.identifier,range:r,text:i,textChange:new Ot(n.rangeOffset,i,s,n.text)}}l||g.sort(((e,t)=>e.sortIndex-t.sortIndex))}this._mightContainRTL=r,this._mightContainUnusualLineTerminators=i,this._mightContainNonBasicASCII=s;const f=this._doApplyEdits(a);let m=null;if(t&&d.length>0){d.sort(((e,t)=>t.lineNumber-e.lineNumber)),m=[];for(let e=0,t=d.length;e<t;e++){const t=d[e].lineNumber;if(e>0&&d[e-1].lineNumber===t)continue;const n=d[e].oldContent,r=this.getLineContent(t);0!==r.length&&r!==n&&-1===c.HG(r)&&m.push(t)}}return this._onDidChangeContent.fire(),new me.F4(g,f,m)}_reduceOperations(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]}_toSingleEditOperation(e){let t=!1;const n=e[0].range,r=e[e.length-1].range,i=new m.Q(n.startLineNumber,n.startColumn,r.endLineNumber,r.endColumn);let s=n.startLineNumber,o=n.startColumn;const a=[];for(let u=0,g=e.length;u<g;u++){const n=e[u],r=n.range;t=t||n.forceMoveMarkers,a.push(this.getValueInRange(new m.Q(s,o,r.startLineNumber,r.startColumn))),n.text.length>0&&a.push(n.text),s=r.endLineNumber,o=r.endColumn}const l=a.join(""),[c,h,d]=(0,u.W)(l);return{sortIndex:0,identifier:e[0].identifier,range:i,rangeOffset:this.getOffsetAt(i.startLineNumber,i.startColumn),rangeLength:this.getValueLengthInRange(i,0),text:l,eolCount:c,firstLineLength:h,lastLineLength:d,forceMoveMarkers:t,isAutoWhitespaceEdit:!1}}_doApplyEdits(e){e.sort(Hn._sortOpsDescending);const t=[];for(let n=0;n<e.length;n++){const r=e[n],i=r.range.startLineNumber,s=r.range.startColumn,o=r.range.endLineNumber,a=r.range.endColumn;if(i===o&&s===a&&0===r.text.length)continue;r.text?(this._pieceTree.delete(r.rangeOffset,r.rangeLength),this._pieceTree.insert(r.rangeOffset,r.text,!0)):this._pieceTree.delete(r.rangeOffset,r.rangeLength);const l=new m.Q(i,s,o,a);t.push({range:l,rangeLength:r.rangeLength,text:r.text,rangeOffset:r.rangeOffset,forceMoveMarkers:r.forceMoveMarkers})}return t}findMatchesLineByLine(e,t,n,r){return this._pieceTree.findMatchesLineByLine(e,t,n,r)}static _getInverseEditRanges(e){const t=[];let n=0,r=0,i=null;for(let s=0,o=e.length;s<o;s++){const o=e[s];let a,l,c;if(i?i.range.endLineNumber===o.range.startLineNumber?(a=n,l=r+(o.range.startColumn-i.range.endColumn)):(a=n+(o.range.startLineNumber-i.range.endLineNumber),l=o.range.startColumn):(a=o.range.startLineNumber,l=o.range.startColumn),o.text.length>0){const e=o.eolCount+1;c=1===e?new m.Q(a,l,a,l+o.firstLineLength):new m.Q(a,l,a+e-1,o.lastLineLength+1)}else c=new m.Q(a,l,a,l);n=c.endLineNumber,r=c.endColumn,t.push(c),i=o}return t}static _sortOpsAscending(e,t){const n=m.Q.compareRangesUsingEnds(e.range,t.range);return 0===n?e.sortIndex-t.sortIndex:n}static _sortOpsDescending(e,t){const n=m.Q.compareRangesUsingEnds(e.range,t.range);return 0===n?t.sortIndex-e.sortIndex:-n}}class Kn{constructor(e,t,n,r,i,s,o,a,l){this._chunks=e,this._bom=t,this._cr=n,this._lf=r,this._crlf=i,this._containsRTL=s,this._containsUnusualLineTerminators=o,this._isBasicASCII=a,this._normalizeEOL=l}_getEOL(e){const t=this._cr+this._lf+this._crlf,n=this._cr+this._crlf;return 0===t?1===e?"\n":"\r\n":n>t/2?"\r\n":"\n"}create(e){const t=this._getEOL(e),n=this._chunks;if(this._normalizeEOL&&("\r\n"===t&&(this._cr>0||this._lf>0)||"\n"===t&&(this._cr>0||this._crlf>0)))for(let i=0,s=n.length;i<s;i++){const e=n[i].buffer.replace(/\r\n|\r|\n/g,t),r=zn(e);n[i]=new qn(e,r)}const r=new Hn(n,this._bom,t,this._containsRTL,this._containsUnusualLineTerminators,this._isBasicASCII,this._normalizeEOL);return{textBuffer:r,disposable:r}}}class Gn{constructor(){this.chunks=[],this.BOM="",this._hasPreviousChar=!1,this._previousChar=0,this._tmpLineStarts=[],this.cr=0,this.lf=0,this.crlf=0,this.containsRTL=!1,this.containsUnusualLineTerminators=!1,this.isBasicASCII=!0}acceptChunk(e){if(0===e.length)return;0===this.chunks.length&&c.LU(e)&&(this.BOM=c.r_,e=e.substr(1));const t=e.charCodeAt(e.length-1);13===t||t>=55296&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0,this._previousChar=t):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1,this._previousChar=t)}_acceptChunk1(e,t){(t||0!==e.length)&&(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))}_acceptChunk2(e){const t=function(e,t){e.length=0,e[0]=0;let n=1,r=0,i=0,s=0,o=!0;for(let l=0,c=t.length;l<c;l++){const a=t.charCodeAt(l);13===a?l+1<c&&10===t.charCodeAt(l+1)?(s++,e[n++]=l+2,l++):(r++,e[n++]=l+1):10===a?(i++,e[n++]=l+1):o&&9!==a&&(a<32||a>126)&&(o=!1)}const a=new Vn(Pn(e),r,i,s,o);return e.length=0,a}(this._tmpLineStarts,e);this.chunks.push(new qn(e,t.lineStarts)),this.cr+=t.cr,this.lf+=t.lf,this.crlf+=t.crlf,t.isBasicASCII||(this.isBasicASCII=!1,this.containsRTL||(this.containsRTL=c.E_(e)),this.containsUnusualLineTerminators||(this.containsUnusualLineTerminators=c.$X(e)))}finish(e=!0){return this._finish(),new Kn(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,e)}_finish(){if(0===this.chunks.length&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;const e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);const t=zn(e.buffer);e.lineStarts=t,13===this._previousChar&&this.cr++}}}var Qn=n(6571),Jn=n(2083),Xn=n(1940),Yn=n(8381),Zn=n(4444);const er=new class{clone(){return this}equals(e){return this===e}};class tr{constructor(e){this._default=e,this._store=[]}get(e){return e<this._store.length?this._store[e]:this._default}set(e,t){for(;e>=this._store.length;)this._store[this._store.length]=this._default;this._store[e]=t}replace(e,t,n){if(e>=this._store.length)return;if(0===t)return void this.insert(e,n);if(0===n)return void this.delete(e,t);const r=this._store.slice(0,e),i=this._store.slice(e+t),s=function(e,t){const n=[];for(let r=0;r<e;r++)n[r]=t;return n}(n,this._default);this._store=r.concat(s,i)}delete(e,t){0===t||e>=this._store.length||this._store.splice(e,t)}insert(e,t){if(0===t||e>=this._store.length)return;const n=[];for(let r=0;r<t;r++)n[r]=this._default;this._store=(0,o.nK)(this._store,e,n)}}class nr{get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._startLineNumber+this._tokens.length-1}constructor(e,t){this._startLineNumber=e,this._tokens=t}getLineTokens(e){return this._tokens[e-this._startLineNumber]}appendLineTokens(e){this._tokens.push(e)}}class rr{constructor(){this._tokens=[]}add(e,t){if(this._tokens.length>0){const n=this._tokens[this._tokens.length-1];if(n.endLineNumber+1===e)return void n.appendLineTokens(t)}this._tokens.push(new nr(e,[t]))}finalize(){return this._tokens}}class ir{static{this.defaultTokenMetadata=33587200}static createEmpty(e,t){const n=ir.defaultTokenMetadata,r=new Uint32Array(2);return r[0]=e.length,r[1]=n,new ir(r,e,t)}static createFromTextAndMetadata(e,t){let n=0,r="";const i=new Array;for(const{text:s,metadata:o}of e)i.push(n+s.length,o),n+=s.length,r+=s;return new ir(new Uint32Array(i),r,t)}constructor(e,t,n){this._lineTokensBrand=void 0,this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t,this.languageIdCodec=n}equals(e){return e instanceof ir&&this.slicedEquals(e,0,this._tokensCount)}slicedEquals(e,t,n){if(this._text!==e._text)return!1;if(this._tokensCount!==e._tokensCount)return!1;const r=t<<1,i=r+(n<<1);for(let s=r;s<i;s++)if(this._tokens[s]!==e._tokens[s])return!1;return!0}getLineContent(){return this._text}getCount(){return this._tokensCount}getStartOffset(e){return e>0?this._tokens[e-1<<1]:0}getMetadata(e){return this._tokens[1+(e<<1)]}getLanguageId(e){const t=this._tokens[1+(e<<1)],n=Ye.x.getLanguageId(t);return this.languageIdCodec.decodeLanguageId(n)}getStandardTokenType(e){const t=this._tokens[1+(e<<1)];return Ye.x.getTokenType(t)}getForeground(e){const t=this._tokens[1+(e<<1)];return Ye.x.getForeground(t)}getClassName(e){const t=this._tokens[1+(e<<1)];return Ye.x.getClassNameFromMetadata(t)}getInlineStyle(e,t){const n=this._tokens[1+(e<<1)];return Ye.x.getInlineStyleFromMetadata(n,t)}getPresentation(e){const t=this._tokens[1+(e<<1)];return Ye.x.getPresentationFromMetadata(t)}getEndOffset(e){return this._tokens[e<<1]}findTokenIndexAtOffset(e){return ir.findIndexInTokensArray(this._tokens,e)}inflate(){return this}sliceAndInflate(e,t,n){return new sr(this,e,t,n)}static convertToEndOffset(e,t){const n=(e.length>>>1)-1;for(let r=0;r<n;r++)e[r<<1]=e[r+1<<1];e[n<<1]=t}static findIndexInTokensArray(e,t){if(e.length<=2)return 0;let n=0,r=(e.length>>>1)-1;for(;n<r;){const i=n+Math.floor((r-n)/2),s=e[i<<1];if(s===t)return i+1;s<t?n=i+1:s>t&&(r=i)}return n}withInserted(e){if(0===e.length)return this;let t=0,n=0,r="";const i=new Array;let s=0;for(;;){const o=t<this._tokensCount?this._tokens[t<<1]:-1,a=n<e.length?e[n]:null;if(-1!==o&&(null===a||o<=a.offset)){r+=this._text.substring(s,o);const e=this._tokens[1+(t<<1)];i.push(r.length,e),t++,s=o}else{if(!a)break;if(a.offset>s){r+=this._text.substring(s,a.offset);const e=this._tokens[1+(t<<1)];i.push(r.length,e),s=a.offset}r+=a.text,i.push(r.length,a.tokenMetadata),n++}}return new ir(new Uint32Array(i),r,this.languageIdCodec)}getTokenText(e){const t=this.getStartOffset(e),n=this.getEndOffset(e);return this._text.substring(t,n)}forEach(e){const t=this.getCount();for(let n=0;n<t;n++)e(n)}}class sr{constructor(e,t,n,r){this._source=e,this._startOffset=t,this._endOffset=n,this._deltaOffset=r,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this.languageIdCodec=e.languageIdCodec,this._tokensCount=0;for(let i=this._firstTokenIndex,s=e.getCount();i<s;i++){if(e.getStartOffset(i)>=n)break;this._tokensCount++}}getMetadata(e){return this._source.getMetadata(this._firstTokenIndex+e)}getLanguageId(e){return this._source.getLanguageId(this._firstTokenIndex+e)}getLineContent(){return this._source.getLineContent().substring(this._startOffset,this._endOffset)}equals(e){return e instanceof sr&&(this._startOffset===e._startOffset&&this._endOffset===e._endOffset&&this._deltaOffset===e._deltaOffset&&this._source.slicedEquals(e._source,this._firstTokenIndex,this._tokensCount))}getCount(){return this._tokensCount}getStandardTokenType(e){return this._source.getStandardTokenType(this._firstTokenIndex+e)}getForeground(e){return this._source.getForeground(this._firstTokenIndex+e)}getEndOffset(e){const t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset}getClassName(e){return this._source.getClassName(this._firstTokenIndex+e)}getInlineStyle(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)}getPresentation(e){return this._source.getPresentation(this._firstTokenIndex+e)}findTokenIndexAtOffset(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex}getTokenText(e){const t=this._firstTokenIndex+e,n=this._source.getStartOffset(t),r=this._source.getEndOffset(t);let i=this._source.getTokenText(t);return n<this._startOffset&&(i=i.substring(this._startOffset-n)),r>this._endOffset&&(i=i.substring(0,i.length-(r-this._endOffset))),i}forEach(e){for(let t=0;t<this.getCount();t++)e(t)}}class or{constructor(e,t){this.tokenizationSupport=t,this.initialState=this.tokenizationSupport.getInitialState(),this.store=new lr(e)}getStartState(e){return this.store.getStartState(e,this.initialState)}getFirstInvalidLine(){return this.store.getFirstInvalidLine(this.initialState)}}class ar extends or{constructor(e,t,n,r){super(e,t),this._textModel=n,this._languageIdCodec=r}updateTokensUntilLine(e,t){const n=this._textModel.getLanguageId();for(;;){const r=this.getFirstInvalidLine();if(!r||r.lineNumber>t)break;const i=this._textModel.getLineContent(r.lineNumber),s=ur(this._languageIdCodec,n,this.tokenizationSupport,i,!0,r.startState);e.add(r.lineNumber,s.tokens),this.store.setEndState(r.lineNumber,s.endState)}}getTokenTypeIfInsertingCharacter(e,t){const n=this.getStartState(e.lineNumber);if(!n)return 0;const r=this._textModel.getLanguageId(),i=this._textModel.getLineContent(e.lineNumber),s=i.substring(0,e.column-1)+t+i.substring(e.column-1),o=ur(this._languageIdCodec,r,this.tokenizationSupport,s,!0,n),a=new ir(o.tokens,s,this._languageIdCodec);if(0===a.getCount())return 0;const l=a.findTokenIndexAtOffset(e.column-1);return a.getStandardTokenType(l)}tokenizeLineWithEdit(e,t,n){const r=e.lineNumber,i=e.column,s=this.getStartState(r);if(!s)return null;const o=this._textModel.getLineContent(r),a=o.substring(0,i-1)+n+o.substring(i-1+t),l=this._textModel.getLanguageIdAtPosition(r,0),c=ur(this._languageIdCodec,l,this.tokenizationSupport,a,!0,s);return new ir(c.tokens,a,this._languageIdCodec)}hasAccurateTokensForLine(e){return e<this.store.getFirstInvalidEndStateLineNumberOrMax()}isCheapToTokenize(e){const t=this.store.getFirstInvalidEndStateLineNumberOrMax();return e<t||e===t&&this._textModel.getLineLength(e)<2048}tokenizeHeuristically(e,t,n){if(n<=this.store.getFirstInvalidEndStateLineNumberOrMax())return{heuristicTokens:!1};if(t<=this.store.getFirstInvalidEndStateLineNumberOrMax())return this.updateTokensUntilLine(e,n),{heuristicTokens:!1};let r=this.guessStartState(t);const i=this._textModel.getLanguageId();for(let s=t;s<=n;s++){const t=this._textModel.getLineContent(s),n=ur(this._languageIdCodec,i,this.tokenizationSupport,t,!0,r);e.add(s,n.tokens),r=n.endState}return{heuristicTokens:!0}}guessStartState(e){let t=this._textModel.getLineFirstNonWhitespaceColumn(e);const n=[];let r=null;for(let o=e-1;t>1&&o>=1;o--){const e=this._textModel.getLineFirstNonWhitespaceColumn(o);if(0!==e&&(e<t&&(n.push(this._textModel.getLineContent(o)),t=e,r=this.getStartState(o),r)))break}r||(r=this.tokenizationSupport.getInitialState()),n.reverse();const i=this._textModel.getLanguageId();let s=r;for(const o of n){s=ur(this._languageIdCodec,i,this.tokenizationSupport,o,!1,s).endState}return s}}class lr{constructor(e){this.lineCount=e,this._tokenizationStateStore=new cr,this._invalidEndStatesLineNumbers=new hr,this._invalidEndStatesLineNumbers.addRange(new Zn.L(1,e+1))}getEndState(e){return this._tokenizationStateStore.getEndState(e)}setEndState(e,t){if(!t)throw new l.D7("Cannot set null/undefined state");this._invalidEndStatesLineNumbers.delete(e);const n=this._tokenizationStateStore.setEndState(e,t);return n&&e<this.lineCount&&this._invalidEndStatesLineNumbers.addRange(new Zn.L(e+1,e+2)),n}acceptChange(e,t){this.lineCount+=t-e.length,this._tokenizationStateStore.acceptChange(e,t),this._invalidEndStatesLineNumbers.addRangeAndResize(new Zn.L(e.startLineNumber,e.endLineNumberExclusive),t)}acceptChanges(e){for(const t of e){const[e]=(0,u.W)(t.text);this.acceptChange(new Qn.M(t.range.startLineNumber,t.range.endLineNumber+1),e+1)}}invalidateEndStateRange(e){this._invalidEndStatesLineNumbers.addRange(new Zn.L(e.startLineNumber,e.endLineNumberExclusive))}getFirstInvalidEndStateLineNumber(){return this._invalidEndStatesLineNumbers.min}getFirstInvalidEndStateLineNumberOrMax(){return this.getFirstInvalidEndStateLineNumber()||Number.MAX_SAFE_INTEGER}allStatesValid(){return null===this._invalidEndStatesLineNumbers.min}getStartState(e,t){return 1===e?t:this.getEndState(e-1)}getFirstInvalidLine(e){const t=this.getFirstInvalidEndStateLineNumber();if(null===t)return null;const n=this.getStartState(t,e);if(!n)throw new l.D7("Start state must be defined");return{lineNumber:t,startState:n}}}class cr{constructor(){this._lineEndStates=new tr(null)}getEndState(e){return this._lineEndStates.get(e)}setEndState(e,t){const n=this._lineEndStates.get(e);return(!n||!n.equals(t))&&(this._lineEndStates.set(e,t),!0)}acceptChange(e,t){let n=e.length;t>0&&n>0&&(n--,t--),this._lineEndStates.replace(e.startLineNumber,n,t)}}class hr{constructor(){this._ranges=[]}get min(){return 0===this._ranges.length?null:this._ranges[0].start}delete(e){const t=this._ranges.findIndex((t=>t.contains(e)));if(-1!==t){const n=this._ranges[t];n.start===e?n.endExclusive===e+1?this._ranges.splice(t,1):this._ranges[t]=new Zn.L(e+1,n.endExclusive):n.endExclusive===e+1?this._ranges[t]=new Zn.L(n.start,e):this._ranges.splice(t,1,new Zn.L(n.start,e),new Zn.L(e+1,n.endExclusive))}}addRange(e){Zn.L.addRange(e,this._ranges)}addRangeAndResize(e,t){let n=0;for(;!(n>=this._ranges.length||e.start<=this._ranges[n].endExclusive);)n++;let r=n;for(;!(r>=this._ranges.length||e.endExclusive<this._ranges[r].start);)r++;const i=t-e.length;for(let s=r;s<this._ranges.length;s++)this._ranges[s]=this._ranges[s].delta(i);if(n===r){const r=new Zn.L(e.start,e.start+t);r.isEmpty||this._ranges.splice(n,0,r)}else{const t=Math.min(e.start,this._ranges[n].start),s=Math.max(e.endExclusive,this._ranges[r-1].endExclusive),o=new Zn.L(t,s+i);o.isEmpty?this._ranges.splice(n,r-n):this._ranges.splice(n,r-n,o)}}toString(){return this._ranges.map((e=>e.toString())).join(" + ")}}function ur(e,t,n,r,i,s){let o=null;if(n)try{o=n.tokenizeEncoded(r,i,s.clone())}catch(a){(0,l.dz)(a)}return o||(o=function(e,t){const n=new Uint32Array(2);return n[0]=0,n[1]=(32768|e|2<<24)>>>0,new Jn.rY(n,null===t?er:t)}(e.encodeLanguageId(t),s)),ir.convertToEndOffset(o.tokens,r.length),o}class dr{constructor(e,t){this._tokenizerWithStateStore=e,this._backgroundTokenStore=t,this._isDisposed=!1,this._isScheduled=!1}dispose(){this._isDisposed=!0}handleChanges(){this._beginBackgroundTokenization()}_beginBackgroundTokenization(){!this._isScheduled&&this._tokenizerWithStateStore._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&(this._isScheduled=!0,(0,Xn.$6)((e=>{this._isScheduled=!1,this._backgroundTokenizeWithDeadline(e)})))}_backgroundTokenizeWithDeadline(e){const t=Date.now()+e.timeRemaining(),n=()=>{!this._isDisposed&&this._tokenizerWithStateStore._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&(this._backgroundTokenizeForAtLeast1ms(),Date.now()<t?(0,s._p)(n):this._beginBackgroundTokenization())};n()}_backgroundTokenizeForAtLeast1ms(){const e=this._tokenizerWithStateStore._textModel.getLineCount(),t=new rr,n=Yn.W.create(!1);do{if(n.elapsed()>1)break;if(this._tokenizeOneInvalidLine(t)>=e)break}while(this._hasLinesToTokenize());this._backgroundTokenStore.setTokens(t.finalize()),this.checkFinished()}_hasLinesToTokenize(){return!!this._tokenizerWithStateStore&&!this._tokenizerWithStateStore.store.allStatesValid()}_tokenizeOneInvalidLine(e){const t=this._tokenizerWithStateStore?.getFirstInvalidLine();return t?(this._tokenizerWithStateStore.updateTokensUntilLine(e,t.lineNumber),t.lineNumber):this._tokenizerWithStateStore._textModel.getLineCount()+1}checkFinished(){this._isDisposed||this._tokenizerWithStateStore.store.allStatesValid()&&this._backgroundTokenStore.backgroundTokenizationFinished()}requestTokens(e,t){this._tokenizerWithStateStore.store.invalidateEndStateRange(new Qn.M(e,t))}}class gr{constructor(){this._onDidChangeVisibleRanges=new r.vl,this.onDidChangeVisibleRanges=this._onDidChangeVisibleRanges.event,this._views=new Set}attachView(){const e=new fr((t=>{this._onDidChangeVisibleRanges.fire({view:e,state:t})}));return this._views.add(e),e}detachView(e){this._views.delete(e),this._onDidChangeVisibleRanges.fire({view:e,state:void 0})}}class fr{constructor(e){this.handleStateChange=e}setVisibleLines(e,t){const n=e.map((e=>new Qn.M(e.startLineNumber,e.endLineNumber+1)));this.handleStateChange({visibleLineRanges:n,stabilized:t})}}class mr extends i.jG{get lineRanges(){return this._lineRanges}constructor(e){super(),this._refreshTokens=e,this.runner=this._register(new Xn.uC((()=>this.update()),50)),this._computedLineRanges=[],this._lineRanges=[]}update(){(0,o.aI)(this._computedLineRanges,this._lineRanges,((e,t)=>e.equals(t)))||(this._computedLineRanges=this._lineRanges,this._refreshTokens())}handleStateChange(e){this._lineRanges=e.visibleLineRanges,e.stabilized?(this.runner.cancel(),this.update()):this.runner.schedule()}}class pr extends i.jG{get backgroundTokenizationState(){return this._backgroundTokenizationState}constructor(e,t,n){super(),this._languageIdCodec=e,this._textModel=t,this.getLanguageId=n,this._backgroundTokenizationState=1,this._onDidChangeBackgroundTokenizationState=this._register(new r.vl),this.onDidChangeBackgroundTokenizationState=this._onDidChangeBackgroundTokenizationState.event,this._onDidChangeTokens=this._register(new r.vl),this.onDidChangeTokens=this._onDidChangeTokens.event}tokenizeIfCheap(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)}}class br extends pr{constructor(e,t,n,r){super(t,n,r),this._treeSitterService=e,this._tokenizationSupport=null,this._initialize()}_initialize(){const e=this.getLanguageId();this._tokenizationSupport&&this._lastLanguageId===e||(this._lastLanguageId=e,this._tokenizationSupport=Jn.OB.get(e))}getLineTokens(e){const t=this._textModel.getLineContent(e);if(this._tokenizationSupport){const n=this._tokenizationSupport.tokenizeEncoded(e,this._textModel);if(n)return new ir(n,t,this._languageIdCodec)}return ir.createEmpty(t,this._languageIdCodec)}resetTokenization(e=!0){e&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]}),this._initialize()}handleDidChangeAttached(){}handleDidChangeContent(e){e.isFlush&&this.resetTokenization(!1)}forceTokenization(e){}hasAccurateTokensForLine(e){return!0}isCheapToTokenize(e){return!0}getTokenTypeIfInsertingCharacter(e,t,n){return 0}tokenizeLineWithEdit(e,t,n){return null}get hasTokens(){return void 0!==this._treeSitterService.getParseResult(this._textModel)}}var _r=n(4432);const kr=new Uint32Array(0).buffer;class vr{static deleteBeginning(e,t){return null===e||e===kr?e:vr.delete(e,0,t)}static deleteEnding(e,t){if(null===e||e===kr)return e;const n=Cr(e),r=n[n.length-2];return vr.delete(e,t,r)}static delete(e,t,n){if(null===e||e===kr||t===n)return e;const r=Cr(e),i=r.length>>>1;if(0===t&&r[r.length-2]===n)return kr;const s=ir.findIndexInTokensArray(r,t),o=s>0?r[s-1<<1]:0;if(n<r[s<<1]){const o=n-t;for(let e=s;e<i;e++)r[e<<1]-=o;return e}let a,l;o!==t?(r[s<<1]=t,a=s+1<<1,l=t):(a=s<<1,l=o);const c=n-t;for(let u=s+1;u<i;u++){const e=r[u<<1]-c;e>l&&(r[a++]=e,r[a++]=r[1+(u<<1)],l=e)}if(a===r.length)return e;const h=new Uint32Array(a);return h.set(r.subarray(0,a),0),h.buffer}static append(e,t){if(t===kr)return e;if(e===kr)return t;if(null===e)return e;if(null===t)return null;const n=Cr(e),r=Cr(t),i=r.length>>>1,s=new Uint32Array(n.length+r.length);s.set(n,0);let o=n.length;const a=n[n.length-2];for(let l=0;l<i;l++)s[o++]=r[l<<1]+a,s[o++]=r[1+(l<<1)];return s.buffer}static insert(e,t,n){if(null===e||e===kr)return e;const r=Cr(e),i=r.length>>>1;let s=ir.findIndexInTokensArray(r,t);if(s>0){r[s-1<<1]===t&&s--}for(let o=s;o<i;o++)r[o<<1]+=n;return e}}function Cr(e){return e instanceof Uint32Array?e:new Uint32Array(e)}class yr{constructor(e){this._lineTokens=[],this._len=0,this._languageIdCodec=e}flush(){this._lineTokens=[],this._len=0}get hasTokens(){return this._lineTokens.length>0}getTokens(e,t,n){let r=null;if(t<this._len&&(r=this._lineTokens[t]),null!==r&&r!==kr)return new ir(Cr(r),n,this._languageIdCodec);const i=new Uint32Array(2);return i[0]=n.length,i[1]=Lr(this._languageIdCodec.encodeLanguageId(e)),new ir(i,n,this._languageIdCodec)}static _massageTokens(e,t,n){const r=n?Cr(n):null;if(0===t){let t=!1;if(r&&r.length>1&&(t=Ye.x.getLanguageId(r[1])!==e),!t)return kr}if(!r||0===r.length){const n=new Uint32Array(2);return n[0]=t,n[1]=Lr(e),n.buffer}return r[r.length-2]=t,0===r.byteOffset&&r.byteLength===r.buffer.byteLength?r.buffer:r}_ensureLine(e){for(;e>=this._len;)this._lineTokens[this._len]=null,this._len++}_deleteLines(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._lineTokens.splice(e,t),this._len-=t)}_insertLines(e,t){if(0===t)return;const n=[];for(let r=0;r<t;r++)n[r]=null;this._lineTokens=o.nK(this._lineTokens,e,n),this._len+=t}setTokens(e,t,n,r,i){const s=yr._massageTokens(this._languageIdCodec.encodeLanguageId(e),n,r);this._ensureLine(t);const o=this._lineTokens[t];return this._lineTokens[t]=s,!!i&&!yr._equals(o,s)}static _equals(e,t){if(!e||!t)return!e&&!t;const n=Cr(e),r=Cr(t);if(n.length!==r.length)return!1;for(let i=0,s=n.length;i<s;i++)if(n[i]!==r[i])return!1;return!0}acceptEdit(e,t,n){this._acceptDeleteRange(e),this._acceptInsertText(new f.y(e.startLineNumber,e.startColumn),t,n)}_acceptDeleteRange(e){const t=e.startLineNumber-1;if(t>=this._len)return;if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;return void(this._lineTokens[t]=vr.delete(this._lineTokens[t],e.startColumn-1,e.endColumn-1))}this._lineTokens[t]=vr.deleteEnding(this._lineTokens[t],e.startColumn-1);const n=e.endLineNumber-1;let r=null;n<this._len&&(r=vr.deleteBeginning(this._lineTokens[n],e.endColumn-1)),this._lineTokens[t]=vr.append(this._lineTokens[t],r),this._deleteLines(e.startLineNumber,e.endLineNumber-e.startLineNumber)}_acceptInsertText(e,t,n){if(0===t&&0===n)return;const r=e.lineNumber-1;r>=this._len||(0!==t?(this._lineTokens[r]=vr.deleteEnding(this._lineTokens[r],e.column-1),this._lineTokens[r]=vr.insert(this._lineTokens[r],e.column-1,n),this._insertLines(e.lineNumber,t)):this._lineTokens[r]=vr.insert(this._lineTokens[r],e.column-1,n))}setMultilineTokens(e,t){if(0===e.length)return{changes:[]};const n=[];for(let r=0,i=e.length;r<i;r++){const i=e[r];let s=0,o=0,a=!1;for(let e=i.startLineNumber;e<=i.endLineNumber;e++)if(a)this.setTokens(t.getLanguageId(),e-1,t.getLineLength(e),i.getLineTokens(e),!1),o=e;else{this.setTokens(t.getLanguageId(),e-1,t.getLineLength(e),i.getLineTokens(e),!0)&&(a=!0,s=e,o=e)}a&&n.push({fromLineNumber:s,toLineNumber:o})}return{changes:n}}}function Lr(e){return(32768|e|2<<24|1024)>>>0}class wr{constructor(e){this._pieces=[],this._isComplete=!1,this._languageIdCodec=e}flush(){this._pieces=[],this._isComplete=!1}isEmpty(){return 0===this._pieces.length}set(e,t){this._pieces=e||[],this._isComplete=t}setPartial(e,t){let n=e;if(t.length>0){const r=t[0].getRange(),i=t[t.length-1].getRange();if(!r||!i)return e;n=e.plusRange(r).plusRange(i)}let r=null;for(let i=0,s=this._pieces.length;i<s;i++){const e=this._pieces[i];if(e.endLineNumber<n.startLineNumber)continue;if(e.startLineNumber>n.endLineNumber){r=r||{index:i};break}if(e.removeTokens(n),e.isEmpty()){this._pieces.splice(i,1),i--,s--;continue}if(e.endLineNumber<n.startLineNumber)continue;if(e.startLineNumber>n.endLineNumber){r=r||{index:i};continue}const[t,o]=e.split(n);t.isEmpty()?r=r||{index:i}:o.isEmpty()||(this._pieces.splice(i,1,t,o),i++,s++,r=r||{index:i})}return r=r||{index:this._pieces.length},t.length>0&&(this._pieces=o.nK(this._pieces,r.index,t)),n}isComplete(){return this._isComplete}addSparseTokens(e,t){if(0===t.getLineContent().length)return t;const n=this._pieces;if(0===n.length)return t;const r=n[wr._findFirstPieceWithLine(n,e)].getLineTokens(e);if(!r)return t;const i=t.getCount(),s=r.getCount();let o=0;const a=[];let l=0,c=0;const h=(e,t)=>{e!==c&&(c=e,a[l++]=e,a[l++]=t)};for(let u=0;u<s;u++){const e=r.getStartCharacter(u),n=r.getEndCharacter(u),s=r.getMetadata(u),a=((1&s?2048:0)|(2&s?4096:0)|(4&s?8192:0)|(8&s?16384:0)|(16&s?16744448:0)|(32&s?4278190080:0))>>>0,l=~a>>>0;for(;o<i&&t.getEndOffset(o)<=e;)h(t.getEndOffset(o),t.getMetadata(o)),o++;for(o<i&&t.getStartOffset(o)<e&&h(e,t.getMetadata(o));o<i&&t.getEndOffset(o)<n;)h(t.getEndOffset(o),t.getMetadata(o)&l|s&a),o++;if(o<i)h(n,t.getMetadata(o)&l|s&a),t.getEndOffset(o)===n&&o++;else{const e=Math.min(Math.max(0,o-1),i-1);h(n,t.getMetadata(e)&l|s&a)}}for(;o<i;)h(t.getEndOffset(o),t.getMetadata(o)),o++;return new ir(new Uint32Array(a),t.getLineContent(),this._languageIdCodec)}static _findFirstPieceWithLine(e,t){let n=0,r=e.length-1;for(;n<r;){let i=n+Math.floor((r-n)/2);if(e[i].endLineNumber<t)n=i+1;else{if(!(e[i].startLineNumber>t)){for(;i>n&&e[i-1].startLineNumber<=t&&t<=e[i-1].endLineNumber;)i--;return i}r=i-1}}return n}acceptEdit(e,t,n,r,i){for(const s of this._pieces)s.acceptEdit(e,t,n,r,i)}}var Sr,xr=function(e,t,n,r){var i,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,n,o):i(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},Er=function(e,t){return function(n,r){t(n,r,e)}};let Nr=Sr=class extends Ut{constructor(e,t,n,s,o,a,l){super(),this._textModel=e,this._bracketPairsTextModelPart=t,this._languageId=n,this._attachedViews=s,this._languageService=o,this._languageConfigurationService=a,this._treeSitterService=l,this._semanticTokens=new wr(this._languageService.languageIdCodec),this._onDidChangeLanguage=this._register(new r.vl),this.onDidChangeLanguage=this._onDidChangeLanguage.event,this._onDidChangeLanguageConfiguration=this._register(new r.vl),this.onDidChangeLanguageConfiguration=this._onDidChangeLanguageConfiguration.event,this._onDidChangeTokens=this._register(new r.vl),this.onDidChangeTokens=this._onDidChangeTokens.event,this._tokensDisposables=this._register(new i.Cm),this._register(this._languageConfigurationService.onDidChange((e=>{e.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})}))),this._register(r.Jh.filter(Jn.OB.onDidChange,(e=>e.changedLanguages.includes(this._languageId)))((()=>{this.createPreferredTokenProvider()}))),this.createPreferredTokenProvider()}createGrammarTokens(){return this._register(new Tr(this._languageService.languageIdCodec,this._textModel,(()=>this._languageId),this._attachedViews))}createTreeSitterTokens(){return this._register(new br(this._treeSitterService,this._languageService.languageIdCodec,this._textModel,(()=>this._languageId)))}createTokens(e){const t=void 0!==this._tokens;this._tokens?.dispose(),this._tokens=e?this.createTreeSitterTokens():this.createGrammarTokens(),this._tokensDisposables.clear(),this._tokensDisposables.add(this._tokens.onDidChangeTokens((e=>{this._emitModelTokensChangedEvent(e)}))),this._tokensDisposables.add(this._tokens.onDidChangeBackgroundTokenizationState((e=>{this._bracketPairsTextModelPart.handleDidChangeBackgroundTokenizationState()}))),t&&this._tokens.resetTokenization()}createPreferredTokenProvider(){Jn.OB.get(this._languageId)?this._tokens instanceof br||this.createTokens(!0):this._tokens instanceof Tr||this.createTokens(!1)}handleLanguageConfigurationServiceChange(e){e.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})}handleDidChangeContent(e){if(e.isFlush)this._semanticTokens.flush();else if(!e.isEolChange)for(const t of e.changes){const[e,n,r]=(0,u.W)(t.text);this._semanticTokens.acceptEdit(t.range,e,n,r,t.text.length>0?t.text.charCodeAt(0):0)}this._tokens.handleDidChangeContent(e)}handleDidChangeAttached(){this._tokens.handleDidChangeAttached()}getLineTokens(e){this.validateLineNumber(e);const t=this._tokens.getLineTokens(e);return this._semanticTokens.addSparseTokens(e,t)}_emitModelTokensChangedEvent(e){this._textModel._isDisposing()||(this._bracketPairsTextModelPart.handleDidChangeTokens(e),this._onDidChangeTokens.fire(e))}validateLineNumber(e){if(e<1||e>this._textModel.getLineCount())throw new l.D7("Illegal value for lineNumber")}get hasTokens(){return this._tokens.hasTokens}resetTokenization(){this._tokens.resetTokenization()}get backgroundTokenizationState(){return this._tokens.backgroundTokenizationState}forceTokenization(e){this.validateLineNumber(e),this._tokens.forceTokenization(e)}hasAccurateTokensForLine(e){return this.validateLineNumber(e),this._tokens.hasAccurateTokensForLine(e)}isCheapToTokenize(e){return this.validateLineNumber(e),this._tokens.isCheapToTokenize(e)}tokenizeIfCheap(e){this.validateLineNumber(e),this._tokens.tokenizeIfCheap(e)}getTokenTypeIfInsertingCharacter(e,t,n){return this._tokens.getTokenTypeIfInsertingCharacter(e,t,n)}tokenizeLineWithEdit(e,t,n){return this._tokens.tokenizeLineWithEdit(e,t,n)}setSemanticTokens(e,t){this._semanticTokens.set(e,t),this._emitModelTokensChangedEvent({semanticTokensApplied:null!==e,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]})}hasCompleteSemanticTokens(){return this._semanticTokens.isComplete()}hasSomeSemanticTokens(){return!this._semanticTokens.isEmpty()}setPartialSemanticTokens(e,t){if(this.hasCompleteSemanticTokens())return;const n=this._textModel.validateRange(this._semanticTokens.setPartial(e,t));this._emitModelTokensChangedEvent({semanticTokensApplied:!0,ranges:[{fromLineNumber:n.startLineNumber,toLineNumber:n.endLineNumber}]})}getWordAtPosition(e){this.assertNotDisposed();const t=this._textModel.validatePosition(e),n=this._textModel.getLineContent(t.lineNumber),r=this.getLineTokens(t.lineNumber),i=r.findTokenIndexAtOffset(t.column-1),[s,o]=Sr._findLanguageBoundaries(r,i),a=(0,v.Th)(t.column,this.getLanguageConfiguration(r.getLanguageId(i)).getWordDefinition(),n.substring(s,o),s);if(a&&a.startColumn<=e.column&&e.column<=a.endColumn)return a;if(i>0&&s===t.column-1){const[s,o]=Sr._findLanguageBoundaries(r,i-1),a=(0,v.Th)(t.column,this.getLanguageConfiguration(r.getLanguageId(i-1)).getWordDefinition(),n.substring(s,o),s);if(a&&a.startColumn<=e.column&&e.column<=a.endColumn)return a}return null}getLanguageConfiguration(e){return this._languageConfigurationService.getLanguageConfiguration(e)}static _findLanguageBoundaries(e,t){const n=e.getLanguageId(t);let r=0;for(let s=t;s>=0&&e.getLanguageId(s)===n;s--)r=e.getStartOffset(s);let i=e.getLineContent().length;for(let s=t,o=e.getCount();s<o&&e.getLanguageId(s)===n;s++)i=e.getEndOffset(s);return[r,i]}getWordUntilPosition(e){const t=this.getWordAtPosition(e);return t?{word:t.word.substr(0,e.column-t.startColumn),startColumn:t.startColumn,endColumn:e.column}:{word:"",startColumn:e.column,endColumn:e.column}}getLanguageId(){return this._languageId}getLanguageIdAtPosition(e,t){const n=this._textModel.validatePosition(new f.y(e,t)),r=this.getLineTokens(n.lineNumber);return r.getLanguageId(r.findTokenIndexAtOffset(n.column-1))}setLanguageId(e,t="api"){if(this._languageId===e)return;const n={oldLanguage:this._languageId,newLanguage:e,source:t};this._languageId=e,this._bracketPairsTextModelPart.handleDidChangeLanguage(n),this._tokens.resetTokenization(),this.createPreferredTokenProvider(),this._onDidChangeLanguage.fire(n),this._onDidChangeLanguageConfiguration.fire({})}};Nr=Sr=xr([Er(4,k.L),Er(5,se),Er(6,_r.ITreeSitterParserService)],Nr);class Tr extends pr{constructor(e,t,n,r){super(e,t,n),this._tokenizer=null,this._defaultBackgroundTokenizer=null,this._backgroundTokenizer=this._register(new i.HE),this._tokens=new yr(this._languageIdCodec),this._debugBackgroundTokenizer=this._register(new i.HE),this._attachedViewStates=this._register(new i.$w),this._register(Jn.dG.onDidChange((e=>{const t=this.getLanguageId();-1!==e.changedLanguages.indexOf(t)&&this.resetTokenization()}))),this.resetTokenization(),this._register(r.onDidChangeVisibleRanges((({view:e,state:t})=>{if(t){let n=this._attachedViewStates.get(e);n||(n=new mr((()=>this.refreshRanges(n.lineRanges))),this._attachedViewStates.set(e,n)),n.handleStateChange(t)}else this._attachedViewStates.deleteAndDispose(e)})))}resetTokenization(e=!0){this._tokens.flush(),this._debugBackgroundTokens?.flush(),this._debugBackgroundStates&&(this._debugBackgroundStates=new lr(this._textModel.getLineCount())),e&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]});const[t,n]=(()=>{if(this._textModel.isTooLargeForTokenization())return[null,null];const e=Jn.dG.get(this.getLanguageId());if(!e)return[null,null];let t;try{t=e.getInitialState()}catch(n){return(0,l.dz)(n),[null,null]}return[e,t]})();if(this._tokenizer=t&&n?new ar(this._textModel.getLineCount(),t,this._textModel,this._languageIdCodec):null,this._backgroundTokenizer.clear(),this._defaultBackgroundTokenizer=null,this._tokenizer){const e={setTokens:e=>{this.setTokens(e)},backgroundTokenizationFinished:()=>{if(2===this._backgroundTokenizationState)return;this._backgroundTokenizationState=2,this._onDidChangeBackgroundTokenizationState.fire()},setEndState:(e,t)=>{if(!this._tokenizer)return;const n=this._tokenizer.store.getFirstInvalidEndStateLineNumber();null!==n&&e>=n&&this._tokenizer?.store.setEndState(e,t)}};t&&t.createBackgroundTokenizer&&!t.backgroundTokenizerShouldOnlyVerifyTokens&&(this._backgroundTokenizer.value=t.createBackgroundTokenizer(this._textModel,e)),this._backgroundTokenizer.value||this._textModel.isTooLargeForTokenization()||(this._backgroundTokenizer.value=this._defaultBackgroundTokenizer=new dr(this._tokenizer,e),this._defaultBackgroundTokenizer.handleChanges()),t?.backgroundTokenizerShouldOnlyVerifyTokens&&t.createBackgroundTokenizer?(this._debugBackgroundTokens=new yr(this._languageIdCodec),this._debugBackgroundStates=new lr(this._textModel.getLineCount()),this._debugBackgroundTokenizer.clear(),this._debugBackgroundTokenizer.value=t.createBackgroundTokenizer(this._textModel,{setTokens:e=>{this._debugBackgroundTokens?.setMultilineTokens(e,this._textModel)},backgroundTokenizationFinished(){},setEndState:(e,t)=>{this._debugBackgroundStates?.setEndState(e,t)}})):(this._debugBackgroundTokens=void 0,this._debugBackgroundStates=void 0,this._debugBackgroundTokenizer.value=void 0)}this.refreshAllVisibleLineTokens()}handleDidChangeAttached(){this._defaultBackgroundTokenizer?.handleChanges()}handleDidChangeContent(e){if(e.isFlush)this.resetTokenization(!1);else if(!e.isEolChange){for(const t of e.changes){const[e,n]=(0,u.W)(t.text);this._tokens.acceptEdit(t.range,e,n),this._debugBackgroundTokens?.acceptEdit(t.range,e,n)}this._debugBackgroundStates?.acceptChanges(e.changes),this._tokenizer&&this._tokenizer.store.acceptChanges(e.changes),this._defaultBackgroundTokenizer?.handleChanges()}}setTokens(e){const{changes:t}=this._tokens.setMultilineTokens(e,this._textModel);return t.length>0&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:t}),{changes:t}}refreshAllVisibleLineTokens(){const e=Qn.M.joinMany([...this._attachedViewStates].map((([e,t])=>t.lineRanges)));this.refreshRanges(e)}refreshRanges(e){for(const t of e)this.refreshRange(t.startLineNumber,t.endLineNumberExclusive-1)}refreshRange(e,t){if(!this._tokenizer)return;e=Math.max(1,Math.min(this._textModel.getLineCount(),e)),t=Math.min(this._textModel.getLineCount(),t);const n=new rr,{heuristicTokens:r}=this._tokenizer.tokenizeHeuristically(n,e,t),i=this.setTokens(n.finalize());if(r)for(const s of i.changes)this._backgroundTokenizer.value?.requestTokens(s.fromLineNumber,s.toLineNumber+1);this._defaultBackgroundTokenizer?.checkFinished()}forceTokenization(e){const t=new rr;this._tokenizer?.updateTokensUntilLine(t,e),this.setTokens(t.finalize()),this._defaultBackgroundTokenizer?.checkFinished()}hasAccurateTokensForLine(e){return!this._tokenizer||this._tokenizer.hasAccurateTokensForLine(e)}isCheapToTokenize(e){return!this._tokenizer||this._tokenizer.isCheapToTokenize(e)}getLineTokens(e){const t=this._textModel.getLineContent(e),n=this._tokens.getTokens(this._textModel.getLanguageId(),e-1,t);if(this._debugBackgroundTokens&&this._debugBackgroundStates&&this._tokenizer&&this._debugBackgroundStates.getFirstInvalidEndStateLineNumberOrMax()>e&&this._tokenizer.store.getFirstInvalidEndStateLineNumberOrMax()>e){const r=this._debugBackgroundTokens.getTokens(this._textModel.getLanguageId(),e-1,t);!n.equals(r)&&this._debugBackgroundTokenizer.value?.reportMismatchingTokens&&this._debugBackgroundTokenizer.value.reportMismatchingTokens(e)}return n}getTokenTypeIfInsertingCharacter(e,t,n){if(!this._tokenizer)return 0;const r=this._textModel.validatePosition(new f.y(e,t));return this.forceTokenization(r.lineNumber),this._tokenizer.getTokenTypeIfInsertingCharacter(r,n)}tokenizeLineWithEdit(e,t,n){if(!this._tokenizer)return null;const r=this._textModel.validatePosition(e);return this.forceTokenization(r.lineNumber),this._tokenizer.tokenizeLineWithEdit(r,t,n)}get hasTokens(){return this._tokens.hasTokens}}class Ar{constructor(){this.changeType=1}}class Ir{static applyInjectedText(e,t){if(!t||0===t.length)return e;let n="",r=0;for(const i of t)n+=e.substring(r,i.column-1),r=i.column-1,n+=i.options.content;return n+=e.substring(r),n}static fromDecorations(e){const t=[];for(const n of e)n.options.before&&n.options.before.content.length>0&&t.push(new Ir(n.ownerId,n.range.startLineNumber,n.range.startColumn,n.options.before,0)),n.options.after&&n.options.after.content.length>0&&t.push(new Ir(n.ownerId,n.range.endLineNumber,n.range.endColumn,n.options.after,1));return t.sort(((e,t)=>e.lineNumber===t.lineNumber?e.column===t.column?e.order-t.order:e.column-t.column:e.lineNumber-t.lineNumber)),t}constructor(e,t,n,r,i){this.ownerId=e,this.lineNumber=t,this.column=n,this.options=r,this.order=i}}class Or{constructor(e,t,n){this.changeType=2,this.lineNumber=e,this.detail=t,this.injectedText=n}}class Mr{constructor(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t}}class Rr{constructor(e,t,n,r){this.changeType=4,this.injectedTexts=r,this.fromLineNumber=e,this.toLineNumber=t,this.detail=n}}class Dr{constructor(){this.changeType=5}}class Br{constructor(e,t,n,r){this.changes=e,this.versionId=t,this.isUndoing=n,this.isRedoing=r,this.resultingSelection=null}containsEvent(e){for(let t=0,n=this.changes.length;t<n;t++){if(this.changes[t].changeType===e)return!0}return!1}static merge(e,t){const n=[].concat(e.changes).concat(t.changes),r=t.versionId,i=e.isUndoing||t.isUndoing,s=e.isRedoing||t.isRedoing;return new Br(n,r,i,s)}}class Fr{constructor(e){this.changes=e}}class Pr{constructor(e,t){this.rawContentChangedEvent=e,this.contentChangedEvent=t}merge(e){const t=Br.merge(this.rawContentChangedEvent,e.rawContentChangedEvent),n=Pr._mergeChangeEvents(this.contentChangedEvent,e.contentChangedEvent);return new Pr(t,n)}static _mergeChangeEvents(e,t){const n=[].concat(e.changes).concat(t.changes),r=t.eol,i=t.versionId,s=e.isUndoing||t.isUndoing,o=e.isRedoing||t.isRedoing,a=e.isFlush||t.isFlush;return{changes:n,eol:r,isEolChange:e.isEolChange&&t.isEolChange,versionId:i,isUndoing:s,isRedoing:o,isFlush:a}}}const Vr=(0,H.u1)("undoRedoService");class zr{static{this._ID=0}constructor(){this.id=zr._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}static{this.None=new zr}}class jr{static{this._ID=0}constructor(){this.id=jr._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}static{this.None=new jr}}var qr,Wr=function(e,t,n,r){var i,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,n,o):i(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},Ur=function(e,t){return function(n,r){t(n,r,e)}};function $r(e,t){let n;return n="string"===typeof e?function(e){const t=new Gn;return t.acceptChunk(e),t.finish()}(e):me.nk(e)?function(e){const t=new Gn;let n;for(;"string"===typeof(n=e.read());)t.acceptChunk(n);return t.finish()}(e):e,n.create(t)}let Hr=0;class Kr{constructor(e){this._source=e,this._eos=!1}read(){if(this._eos)return null;const e=[];let t=0,n=0;for(;;){const r=this._source.read();if(null===r)return this._eos=!0,0===t?null:e.join("");if(r.length>0&&(e[t++]=r,n+=r.length),n>=65536)return e.join("")}}}const Gr=()=>{throw new Error("Invalid change accessor")};let Qr=class extends i.jG{static{qr=this}static{this._MODEL_SYNC_LIMIT=52428800}static{this.LARGE_FILE_SIZE_THRESHOLD=20971520}static{this.LARGE_FILE_LINE_COUNT_THRESHOLD=3e5}static{this.LARGE_FILE_HEAP_OPERATION_THRESHOLD=268435456}static{this.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:b.tabSize,indentSize:b.indentSize,insertSpaces:b.insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:b.trimAutoWhitespace,largeFileOptimizations:b.largeFileOptimizations,bracketPairColorizationOptions:b.bracketPairColorizationOptions}}static resolveOptions(e,t){if(t.detectIndentation){const n=Xt(e,t.tabSize,t.insertSpaces);return new me.X2({tabSize:n.tabSize,indentSize:"tabSize",insertSpaces:n.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL,bracketPairColorizationOptions:t.bracketPairColorizationOptions})}return new me.X2(t)}get onDidChangeLanguage(){return this._tokenizationTextModelPart.onDidChangeLanguage}get onDidChangeLanguageConfiguration(){return this._tokenizationTextModelPart.onDidChangeLanguageConfiguration}get onDidChangeTokens(){return this._tokenizationTextModelPart.onDidChangeTokens}onDidChangeContent(e){return this._eventEmitter.slowEvent((t=>e(t.contentChangedEvent)))}onDidChangeContentOrInjectedText(e){return(0,i.qE)(this._eventEmitter.fastEvent((t=>e(t))),this._onDidChangeInjectedText.event((t=>e(t))))}_isDisposing(){return this.__isDisposing}get tokenization(){return this._tokenizationTextModelPart}get bracketPairs(){return this._bracketPairs}get guides(){return this._guidesTextModelPart}constructor(e,t,n,s=null,o,a,l,u){super(),this._undoRedoService=o,this._languageService=a,this._languageConfigurationService=l,this.instantiationService=u,this._onWillDispose=this._register(new r.vl),this.onWillDispose=this._onWillDispose.event,this._onDidChangeDecorations=this._register(new li((e=>this.handleBeforeFireDecorationsChangedEvent(e)))),this.onDidChangeDecorations=this._onDidChangeDecorations.event,this._onDidChangeOptions=this._register(new r.vl),this.onDidChangeOptions=this._onDidChangeOptions.event,this._onDidChangeAttached=this._register(new r.vl),this.onDidChangeAttached=this._onDidChangeAttached.event,this._onDidChangeInjectedText=this._register(new r.vl),this._eventEmitter=this._register(new ci),this._languageSelectionListener=this._register(new i.HE),this._deltaDecorationCallCnt=0,this._attachedViews=new gr,Hr++,this.id="$model"+Hr,this.isForSimpleWidget=n.isForSimpleWidget,this._associatedResource="undefined"===typeof s||null===s?h.r.parse("inmemory://model/"+Hr):s,this._attachedEditorCount=0;const{textBuffer:d,disposable:g}=$r(e,n.defaultEOL);this._buffer=d,this._bufferDisposable=g,this._options=qr.resolveOptions(this._buffer,n);const f="string"===typeof t?t:t.languageId;"string"!==typeof t&&(this._languageSelectionListener.value=t.onDidChange((()=>this._setLanguage(t.languageId)))),this._bracketPairs=this._register(new yt(this,this._languageConfigurationService)),this._guidesTextModelPart=this._register(new Kt(this,this._languageConfigurationService)),this._decorationProvider=this._register(new Nt(this)),this._tokenizationTextModelPart=this.instantiationService.createInstance(Nr,this,this._bracketPairs,f,this._attachedViews);const p=this._buffer.getLineCount(),b=this._buffer.getValueLengthInRange(new m.Q(1,1,p,this._buffer.getLineLength(p)+1),0);n.largeFileOptimizations?(this._isTooLargeForTokenization=b>qr.LARGE_FILE_SIZE_THRESHOLD||p>qr.LARGE_FILE_LINE_COUNT_THRESHOLD,this._isTooLargeForHeapOperation=b>qr.LARGE_FILE_HEAP_OPERATION_THRESHOLD):(this._isTooLargeForTokenization=!1,this._isTooLargeForHeapOperation=!1),this._isTooLargeForSyncing=b>qr._MODEL_SYNC_LIMIT,this._versionId=1,this._alternativeVersionId=1,this._initialUndoRedoSnapshot=null,this._isDisposed=!1,this.__isDisposing=!1,this._instanceId=c.tk(Hr),this._lastDecorationId=0,this._decorations=Object.create(null),this._decorationsTree=new Yr,this._commandManager=new jt(this,this._undoRedoService),this._isUndoing=!1,this._isRedoing=!1,this._trimAutoWhitespaceLines=null,this._register(this._decorationProvider.onDidChange((()=>{this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._onDidChangeDecorations.endDeferredEmit()}))),this._languageService.requestRichLanguageFeatures(f),this._register(this._languageConfigurationService.onDidChange((e=>{this._bracketPairs.handleLanguageConfigurationServiceChange(e),this._tokenizationTextModelPart.handleLanguageConfigurationServiceChange(e)})))}dispose(){this.__isDisposing=!0,this._onWillDispose.fire(),this._tokenizationTextModelPart.dispose(),this._isDisposed=!0,super.dispose(),this._bufferDisposable.dispose(),this.__isDisposing=!1;const e=new Hn([],"","\n",!1,!1,!0,!0);e.dispose(),this._buffer=e,this._bufferDisposable=i.jG.None}_assertNotDisposed(){if(this._isDisposed)throw new l.D7("Model is disposed!")}_emitContentChangedEvent(e,t){this.__isDisposing||(this._tokenizationTextModelPart.handleDidChangeContent(t),this._bracketPairs.handleDidChangeContent(t),this._eventEmitter.fire(new Pr(e,t)))}setValue(e){if(this._assertNotDisposed(),null===e||void 0===e)throw(0,l.Qg)();const{textBuffer:t,disposable:n}=$r(e,this._options.defaultEOL);this._setValueFromTextBuffer(t,n)}_createContentChanged2(e,t,n,r,i,s,o,a){return{changes:[{range:e,rangeOffset:t,rangeLength:n,text:r}],eol:this._buffer.getEOL(),isEolChange:a,versionId:this.getVersionId(),isUndoing:i,isRedoing:s,isFlush:o}}_setValueFromTextBuffer(e,t){this._assertNotDisposed();const n=this.getFullModelRange(),r=this.getValueLengthInRange(n),i=this.getLineCount(),s=this.getLineMaxColumn(i);this._buffer=e,this._bufferDisposable.dispose(),this._bufferDisposable=t,this._increaseVersionId(),this._decorations=Object.create(null),this._decorationsTree=new Yr,this._commandManager.clear(),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new Br([new Ar],this._versionId,!1,!1),this._createContentChanged2(new m.Q(1,1,i,s),0,r,this.getValue(),!1,!1,!0,!1))}setEOL(e){this._assertNotDisposed();const t=1===e?"\r\n":"\n";if(this._buffer.getEOL()===t)return;const n=this.getFullModelRange(),r=this.getValueLengthInRange(n),i=this.getLineCount(),s=this.getLineMaxColumn(i);this._onBeforeEOLChange(),this._buffer.setEOL(t),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new Br([new Dr],this._versionId,!1,!1),this._createContentChanged2(new m.Q(1,1,i,s),0,r,this.getValue(),!1,!1,!1,!0))}_onBeforeEOLChange(){this._decorationsTree.ensureAllNodesHaveRanges(this)}_onAfterEOLChange(){const e=this.getVersionId(),t=this._decorationsTree.collectNodesPostOrder();for(let n=0,r=t.length;n<r;n++){const r=t[n],i=r.range,s=r.cachedAbsoluteStart-r.start,o=this._buffer.getOffsetAt(i.startLineNumber,i.startColumn),a=this._buffer.getOffsetAt(i.endLineNumber,i.endColumn);r.cachedAbsoluteStart=o,r.cachedAbsoluteEnd=a,r.cachedVersionId=e,r.start=o-s,r.end=a-s,vn(r)}}onBeforeAttached(){return this._attachedEditorCount++,1===this._attachedEditorCount&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0)),this._attachedViews.attachView()}onBeforeDetached(e){this._attachedEditorCount--,0===this._attachedEditorCount&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0)),this._attachedViews.detachView(e)}isAttachedToEditor(){return this._attachedEditorCount>0}getAttachedEditorCount(){return this._attachedEditorCount}isTooLargeForSyncing(){return this._isTooLargeForSyncing}isTooLargeForTokenization(){return this._isTooLargeForTokenization}isTooLargeForHeapOperation(){return this._isTooLargeForHeapOperation}isDisposed(){return this._isDisposed}isDominatedByLongLines(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;let e=0,t=0;const n=this._buffer.getLineCount();for(let r=1;r<=n;r++){const n=this._buffer.getLineLength(r);n>=1e4?t+=n:e+=n}return t>e}get uri(){return this._associatedResource}getOptions(){return this._assertNotDisposed(),this._options}getFormattingOptions(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}}updateOptions(e){this._assertNotDisposed();const t="undefined"!==typeof e.tabSize?e.tabSize:this._options.tabSize,n="undefined"!==typeof e.indentSize?e.indentSize:this._options.originalIndentSize,r="undefined"!==typeof e.insertSpaces?e.insertSpaces:this._options.insertSpaces,i="undefined"!==typeof e.trimAutoWhitespace?e.trimAutoWhitespace:this._options.trimAutoWhitespace,s="undefined"!==typeof e.bracketColorizationOptions?e.bracketColorizationOptions:this._options.bracketPairColorizationOptions,o=new me.X2({tabSize:t,indentSize:n,insertSpaces:r,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:i,bracketPairColorizationOptions:s});if(this._options.equals(o))return;const a=this._options.createChangeEvent(o);this._options=o,this._bracketPairs.handleDidChangeOptions(a),this._decorationProvider.handleDidChangeOptions(a),this._onDidChangeOptions.fire(a)}detectIndentation(e,t){this._assertNotDisposed();const n=Xt(this._buffer,t,e);this.updateOptions({insertSpaces:n.insertSpaces,tabSize:n.tabSize,indentSize:n.tabSize})}normalizeIndentation(e){return this._assertNotDisposed(),g(e,this._options.indentSize,this._options.insertSpaces)}getVersionId(){return this._assertNotDisposed(),this._versionId}mightContainRTL(){return this._buffer.mightContainRTL()}mightContainUnusualLineTerminators(){return this._buffer.mightContainUnusualLineTerminators()}removeUnusualLineTerminators(e=null){const t=this.findMatches(c._J.source,!1,!0,!1,null,!1,1073741824);this._buffer.resetMightContainUnusualLineTerminators(),this.pushEditOperations(e,t.map((e=>({range:e.range,text:null}))),(()=>null))}mightContainNonBasicASCII(){return this._buffer.mightContainNonBasicASCII()}getAlternativeVersionId(){return this._assertNotDisposed(),this._alternativeVersionId}getInitialUndoRedoSnapshot(){return this._assertNotDisposed(),this._initialUndoRedoSnapshot}getOffsetAt(e){this._assertNotDisposed();const t=this._validatePosition(e.lineNumber,e.column,0);return this._buffer.getOffsetAt(t.lineNumber,t.column)}getPositionAt(e){this._assertNotDisposed();const t=Math.min(this._buffer.getLength(),Math.max(0,e));return this._buffer.getPositionAt(t)}_increaseVersionId(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId}_overwriteVersionId(e){this._versionId=e}_overwriteAlternativeVersionId(e){this._alternativeVersionId=e}_overwriteInitialUndoRedoSnapshot(e){this._initialUndoRedoSnapshot=e}getValue(e,t=!1){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new l.D7("Operation would exceed heap memory limits");const n=this.getFullModelRange(),r=this.getValueInRange(n,e);return t?this._buffer.getBOM()+r:r}createSnapshot(e=!1){return new Kr(this._buffer.createSnapshot(e))}getValueLength(e,t=!1){this._assertNotDisposed();const n=this.getFullModelRange(),r=this.getValueLengthInRange(n,e);return t?this._buffer.getBOM().length+r:r}getValueInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(e),t)}getValueLengthInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(e),t)}getCharacterCountInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(e),t)}getLineCount(){return this._assertNotDisposed(),this._buffer.getLineCount()}getLineContent(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineContent(e)}getLineLength(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineLength(e)}getLinesContent(){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new l.D7("Operation would exceed heap memory limits");return this._buffer.getLinesContent()}getEOL(){return this._assertNotDisposed(),this._buffer.getEOL()}getEndOfLineSequence(){return this._assertNotDisposed(),"\n"===this._buffer.getEOL()?0:1}getLineMinColumn(e){return this._assertNotDisposed(),1}getLineMaxColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineLength(e)+1}getLineFirstNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)}getLineLastNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)}_validateRangeRelaxedNoAllocations(e){const t=this._buffer.getLineCount(),n=e.startLineNumber,r=e.startColumn;let i=Math.floor("number"!==typeof n||isNaN(n)?1:n),s=Math.floor("number"!==typeof r||isNaN(r)?1:r);if(i<1)i=1,s=1;else if(i>t)i=t,s=this.getLineMaxColumn(i);else if(s<=1)s=1;else{const e=this.getLineMaxColumn(i);s>=e&&(s=e)}const o=e.endLineNumber,a=e.endColumn;let l=Math.floor("number"!==typeof o||isNaN(o)?1:o),c=Math.floor("number"!==typeof a||isNaN(a)?1:a);if(l<1)l=1,c=1;else if(l>t)l=t,c=this.getLineMaxColumn(l);else if(c<=1)c=1;else{const e=this.getLineMaxColumn(l);c>=e&&(c=e)}return n===i&&r===s&&o===l&&a===c&&e instanceof m.Q&&!(e instanceof p.L)?e:new m.Q(i,s,l,c)}_isValidPosition(e,t,n){if("number"!==typeof e||"number"!==typeof t)return!1;if(isNaN(e)||isNaN(t))return!1;if(e<1||t<1)return!1;if((0|e)!==e||(0|t)!==t)return!1;if(e>this._buffer.getLineCount())return!1;if(1===t)return!0;if(t>this.getLineMaxColumn(e))return!1;if(1===n){const n=this._buffer.getLineCharCode(e,t-2);if(c.pc(n))return!1}return!0}_validatePosition(e,t,n){const r=Math.floor("number"!==typeof e||isNaN(e)?1:e),i=Math.floor("number"!==typeof t||isNaN(t)?1:t),s=this._buffer.getLineCount();if(r<1)return new f.y(1,1);if(r>s)return new f.y(s,this.getLineMaxColumn(s));if(i<=1)return new f.y(r,1);const o=this.getLineMaxColumn(r);if(i>=o)return new f.y(r,o);if(1===n){const e=this._buffer.getLineCharCode(r,i-2);if(c.pc(e))return new f.y(r,i-1)}return new f.y(r,i)}validatePosition(e){return this._assertNotDisposed(),e instanceof f.y&&this._isValidPosition(e.lineNumber,e.column,1)?e:this._validatePosition(e.lineNumber,e.column,1)}_isValidRange(e,t){const n=e.startLineNumber,r=e.startColumn,i=e.endLineNumber,s=e.endColumn;if(!this._isValidPosition(n,r,0))return!1;if(!this._isValidPosition(i,s,0))return!1;if(1===t){const e=r>1?this._buffer.getLineCharCode(n,r-2):0,t=s>1&&s<=this._buffer.getLineLength(i)?this._buffer.getLineCharCode(i,s-2):0,o=c.pc(e),a=c.pc(t);return!o&&!a}return!0}validateRange(e){if(this._assertNotDisposed(),e instanceof m.Q&&!(e instanceof p.L)&&this._isValidRange(e,1))return e;const t=this._validatePosition(e.startLineNumber,e.startColumn,0),n=this._validatePosition(e.endLineNumber,e.endColumn,0),r=t.lineNumber,i=t.column,s=n.lineNumber,o=n.column;{const e=i>1?this._buffer.getLineCharCode(r,i-2):0,t=o>1&&o<=this._buffer.getLineLength(s)?this._buffer.getLineCharCode(s,o-2):0,n=c.pc(e),a=c.pc(t);return n||a?r===s&&i===o?new m.Q(r,i-1,s,o-1):n&&a?new m.Q(r,i-1,s,o+1):n?new m.Q(r,i-1,s,o):new m.Q(r,i,s,o+1):new m.Q(r,i,s,o)}}modifyPosition(e,t){this._assertNotDisposed();const n=this.getOffsetAt(e)+t;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,n)))}getFullModelRange(){this._assertNotDisposed();const e=this.getLineCount();return new m.Q(1,1,e,this.getLineMaxColumn(e))}findMatchesLineByLine(e,t,n,r){return this._buffer.findMatchesLineByLine(e,t,n,r)}findMatches(e,t,n,r,i,s,o=999){this._assertNotDisposed();let a=null;null!==t&&(Array.isArray(t)||(t=[t]),t.every((e=>m.Q.isIRange(e)))&&(a=t.map((e=>this.validateRange(e))))),null===a&&(a=[this.getFullModelRange()]),a=a.sort(((e,t)=>e.startLineNumber-t.startLineNumber||e.startColumn-t.startColumn));const l=[];let c;if(l.push(a.reduce(((e,t)=>m.Q.areIntersecting(e,t)?e.plusRange(t):(l.push(e),t)))),!n&&e.indexOf("\n")<0){const t=new Bn.lt(e,n,r,i).parseSearchRequest();if(!t)return[];c=e=>this.findMatchesLineByLine(e,t,s,o)}else c=t=>Bn.hB.findMatches(this,new Bn.lt(e,n,r,i),t,s,o);return l.map(c).reduce(((e,t)=>e.concat(t)),[])}findNextMatch(e,t,n,r,i,s){this._assertNotDisposed();const o=this.validatePosition(t);if(!n&&e.indexOf("\n")<0){const t=new Bn.lt(e,n,r,i).parseSearchRequest();if(!t)return null;const a=this.getLineCount();let l=new m.Q(o.lineNumber,o.column,a,this.getLineMaxColumn(a)),c=this.findMatchesLineByLine(l,t,s,1);return Bn.hB.findNextMatch(this,new Bn.lt(e,n,r,i),o,s),c.length>0?c[0]:(l=new m.Q(1,1,o.lineNumber,this.getLineMaxColumn(o.lineNumber)),c=this.findMatchesLineByLine(l,t,s,1),c.length>0?c[0]:null)}return Bn.hB.findNextMatch(this,new Bn.lt(e,n,r,i),o,s)}findPreviousMatch(e,t,n,r,i,s){this._assertNotDisposed();const o=this.validatePosition(t);return Bn.hB.findPreviousMatch(this,new Bn.lt(e,n,r,i),o,s)}pushStackElement(){this._commandManager.pushStackElement()}popStackElement(){this._commandManager.popStackElement()}pushEOL(e){if(("\n"===this.getEOL()?0:1)!==e)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEOL(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_validateEditOperation(e){return e instanceof me.Wo?e:new me.Wo(e.identifier||null,this.validateRange(e.range),e.text,e.forceMoveMarkers||!1,e.isAutoWhitespaceEdit||!1,e._isTracked||!1)}_validateEditOperations(e){const t=[];for(let n=0,r=e.length;n<r;n++)t[n]=this._validateEditOperation(e[n]);return t}pushEditOperations(e,t,n,r){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(e,this._validateEditOperations(t),n,r)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_pushEditOperations(e,t,n,r){if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){const n=t.map((e=>({range:this.validateRange(e.range),text:e.text})));let r=!0;if(e)for(let t=0,i=e.length;t<i;t++){const i=e[t];let s=!1;for(let e=0,t=n.length;e<t;e++){const t=n[e].range,r=t.startLineNumber>i.endLineNumber,o=i.startLineNumber>t.endLineNumber;if(!r&&!o){s=!0;break}}if(!s){r=!1;break}}if(r)for(let e=0,i=this._trimAutoWhitespaceLines.length;e<i;e++){const r=this._trimAutoWhitespaceLines[e],i=this.getLineMaxColumn(r);let s=!0;for(let e=0,t=n.length;e<t;e++){const t=n[e].range,o=n[e].text;if(!(r<t.startLineNumber||r>t.endLineNumber)&&(!(r===t.startLineNumber&&t.startColumn===i&&t.isEmpty()&&o&&o.length>0&&"\n"===o.charAt(0))&&!(r===t.startLineNumber&&1===t.startColumn&&t.isEmpty()&&o&&o.length>0&&"\n"===o.charAt(o.length-1)))){s=!1;break}}if(s){const e=new m.Q(r,1,r,i);t.push(new me.Wo(null,e,null,!1,!1,!1))}}this._trimAutoWhitespaceLines=null}return null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEditOperation(e,t,n,r)}_applyUndo(e,t,n,r){const i=e.map((e=>{const t=this.getPositionAt(e.newPosition),n=this.getPositionAt(e.newEnd);return{range:new m.Q(t.lineNumber,t.column,n.lineNumber,n.column),text:e.oldText}}));this._applyUndoRedoEdits(i,t,!0,!1,n,r)}_applyRedo(e,t,n,r){const i=e.map((e=>{const t=this.getPositionAt(e.oldPosition),n=this.getPositionAt(e.oldEnd);return{range:new m.Q(t.lineNumber,t.column,n.lineNumber,n.column),text:e.newText}}));this._applyUndoRedoEdits(i,t,!1,!0,n,r)}_applyUndoRedoEdits(e,t,n,r,i,s){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._isUndoing=n,this._isRedoing=r,this.applyEdits(e,!1),this.setEOL(t),this._overwriteAlternativeVersionId(i)}finally{this._isUndoing=!1,this._isRedoing=!1,this._eventEmitter.endDeferredEmit(s),this._onDidChangeDecorations.endDeferredEmit()}}applyEdits(e,t=!1){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit();const n=this._validateEditOperations(e);return this._doApplyEdits(n,t)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_doApplyEdits(e,t){const n=this._buffer.getLineCount(),r=this._buffer.applyEdits(e,this._options.trimAutoWhitespace,t),i=this._buffer.getLineCount(),s=r.changes;if(this._trimAutoWhitespaceLines=r.trimAutoWhitespaceLineNumbers,0!==s.length){for(let n=0,r=s.length;n<r;n++){const e=s[n];this._decorationsTree.acceptReplace(e.rangeOffset,e.rangeLength,e.text.length,e.forceMoveMarkers)}const e=[];this._increaseVersionId();let t=n;for(let n=0,r=s.length;n<r;n++){const r=s[n],[a]=(0,u.W)(r.text);this._onDidChangeDecorations.fire();const l=r.range.startLineNumber,c=r.range.endLineNumber,h=c-l,d=a,g=Math.min(h,d),m=d-h,p=i-t-m+l,b=p,_=p+d,k=this._decorationsTree.getInjectedTextInInterval(this,this.getOffsetAt(new f.y(b,1)),this.getOffsetAt(new f.y(_,this.getLineMaxColumn(_))),0),v=Ir.fromDecorations(k),C=new o.j3(v);for(let t=g;t>=0;t--){const n=l+t,r=p+t;C.takeFromEndWhile((e=>e.lineNumber>r));const i=C.takeFromEndWhile((e=>e.lineNumber===r));e.push(new Or(n,this.getLineContent(r),i))}if(g<h){const t=l+g;e.push(new Mr(t+1,c))}if(g<d){const n=new o.j3(v),r=l+g,s=d-g,a=i-t-s+r+1,c=[],h=[];for(let e=0;e<s;e++){const t=a+e;h[e]=this.getLineContent(t),n.takeWhile((e=>e.lineNumber<t)),c[e]=n.takeWhile((e=>e.lineNumber===t))}e.push(new Rr(r+1,l+d,h,c))}t+=m}this._emitContentChangedEvent(new Br(e,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:s,eol:this._buffer.getEOL(),isEolChange:!1,versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return null===r.reverseEdits?void 0:r.reverseEdits}undo(){return this._undoRedoService.undo(this.uri)}canUndo(){return this._undoRedoService.canUndo(this.uri)}redo(){return this._undoRedoService.redo(this.uri)}canRedo(){return this._undoRedoService.canRedo(this.uri)}handleBeforeFireDecorationsChangedEvent(e){if(null===e||0===e.size)return;const t=Array.from(e).map((e=>new Or(e,this.getLineContent(e),this._getInjectedTextInLine(e))));this._onDidChangeInjectedText.fire(new Fr(t))}changeDecorations(e,t=0){this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(t,e)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_changeDecorations(e,t){const n={addDecoration:(t,n)=>this._deltaDecorationsImpl(e,[],[{range:t,options:n}])[0],changeDecoration:(e,t)=>{this._changeDecorationImpl(e,t)},changeDecorationOptions:(e,t)=>{this._changeDecorationOptionsImpl(e,ai(t))},removeDecoration:t=>{this._deltaDecorationsImpl(e,[t],[])},deltaDecorations:(t,n)=>0===t.length&&0===n.length?[]:this._deltaDecorationsImpl(e,t,n)};let r=null;try{r=t(n)}catch(i){(0,l.dz)(i)}return n.addDecoration=Gr,n.changeDecoration=Gr,n.changeDecorationOptions=Gr,n.removeDecoration=Gr,n.deltaDecorations=Gr,r}deltaDecorations(e,t,n=0){if(this._assertNotDisposed(),e||(e=[]),0===e.length&&0===t.length)return[];try{return this._deltaDecorationCallCnt++,this._deltaDecorationCallCnt>1&&(console.warn("Invoking deltaDecorations recursively could lead to leaking decorations."),(0,l.dz)(new Error("Invoking deltaDecorations recursively could lead to leaking decorations."))),this._onDidChangeDecorations.beginDeferredEmit(),this._deltaDecorationsImpl(n,e,t)}finally{this._onDidChangeDecorations.endDeferredEmit(),this._deltaDecorationCallCnt--}}_getTrackedRange(e){return this.getDecorationRange(e)}_setTrackedRange(e,t,n){const r=e?this._decorations[e]:null;if(!r)return t?this._deltaDecorationsImpl(0,[],[{range:t,options:oi[n]}],!0)[0]:null;if(!t)return this._decorationsTree.delete(r),delete this._decorations[r.id],null;const i=this._validateRangeRelaxedNoAllocations(t),s=this._buffer.getOffsetAt(i.startLineNumber,i.startColumn),o=this._buffer.getOffsetAt(i.endLineNumber,i.endColumn);return this._decorationsTree.delete(r),r.reset(this.getVersionId(),s,o,i),r.setOptions(oi[n]),this._decorationsTree.insert(r),r.id}removeAllDecorationsWithOwnerId(e){if(this._isDisposed)return;const t=this._decorationsTree.collectNodesFromOwner(e);for(let n=0,r=t.length;n<r;n++){const e=t[n];this._decorationsTree.delete(e),delete this._decorations[e.id]}}getDecorationOptions(e){const t=this._decorations[e];return t?t.options:null}getDecorationRange(e){const t=this._decorations[e];return t?this._decorationsTree.getNodeRange(this,t):null}getLineDecorations(e,t=0,n=!1){return e<1||e>this.getLineCount()?[]:this.getLinesDecorations(e,e,t,n)}getLinesDecorations(e,t,n=0,r=!1,i=!1){const s=this.getLineCount(),a=Math.min(s,Math.max(1,e)),l=Math.min(s,Math.max(1,t)),c=this.getLineMaxColumn(l),h=new m.Q(a,1,l,c),u=this._getDecorationsInRange(h,n,r,i);return(0,o.E4)(u,this._decorationProvider.getDecorationsInRange(h,n,r)),u}getDecorationsInRange(e,t=0,n=!1,r=!1,i=!1){const s=this.validateRange(e),a=this._getDecorationsInRange(s,t,n,i);return(0,o.E4)(a,this._decorationProvider.getDecorationsInRange(s,t,n,r)),a}getOverviewRulerDecorations(e=0,t=!1){return this._decorationsTree.getAll(this,e,t,!0,!1)}getInjectedTextDecorations(e=0){return this._decorationsTree.getAllInjectedText(this,e)}_getInjectedTextInLine(e){const t=this._buffer.getOffsetAt(e,1),n=t+this._buffer.getLineLength(e),r=this._decorationsTree.getInjectedTextInInterval(this,t,n,0);return Ir.fromDecorations(r).filter((t=>t.lineNumber===e))}getAllDecorations(e=0,t=!1){let n=this._decorationsTree.getAll(this,e,t,!1,!1);return n=n.concat(this._decorationProvider.getAllDecorations(e,t)),n}getAllMarginDecorations(e=0){return this._decorationsTree.getAll(this,e,!1,!1,!0)}_getDecorationsInRange(e,t,n,r){const i=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),s=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn);return this._decorationsTree.getAllInInterval(this,i,s,t,n,r)}getRangeAt(e,t){return this._buffer.getRangeAt(e,t-e)}_changeDecorationImpl(e,t){const n=this._decorations[e];if(!n)return;if(n.options.after){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.endLineNumber)}if(n.options.before){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.startLineNumber)}const r=this._validateRangeRelaxedNoAllocations(t),i=this._buffer.getOffsetAt(r.startLineNumber,r.startColumn),s=this._buffer.getOffsetAt(r.endLineNumber,r.endColumn);this._decorationsTree.delete(n),n.reset(this.getVersionId(),i,s,r),this._decorationsTree.insert(n),this._onDidChangeDecorations.checkAffectedAndFire(n.options),n.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(r.endLineNumber),n.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(r.startLineNumber)}_changeDecorationOptionsImpl(e,t){const n=this._decorations[e];if(!n)return;const r=!(!n.options.overviewRuler||!n.options.overviewRuler.color),i=!(!t.overviewRuler||!t.overviewRuler.color);if(this._onDidChangeDecorations.checkAffectedAndFire(n.options),this._onDidChangeDecorations.checkAffectedAndFire(t),n.options.after||t.after){const e=this._decorationsTree.getNodeRange(this,n);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(n.options.before||t.before){const e=this._decorationsTree.getNodeRange(this,n);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}const s=r!==i,o=function(e){return!!e.after||!!e.before}(t)!==Xr(n);s||o?(this._decorationsTree.delete(n),n.setOptions(t),this._decorationsTree.insert(n)):n.setOptions(t)}_deltaDecorationsImpl(e,t,n,r=!1){const i=this.getVersionId(),s=t.length;let o=0;const a=n.length;let l=0;this._onDidChangeDecorations.beginDeferredEmit();try{const c=new Array(a);for(;o<s||l<a;){let h=null;if(o<s){do{h=this._decorations[t[o++]]}while(!h&&o<s);if(h){if(h.options.after){const e=this._decorationsTree.getNodeRange(this,h);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(h.options.before){const e=this._decorationsTree.getNodeRange(this,h);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}this._decorationsTree.delete(h),r||this._onDidChangeDecorations.checkAffectedAndFire(h.options)}}if(l<a){if(!h){const e=++this._lastDecorationId,t=`${this._instanceId};${e}`;h=new cn(t,0,0),this._decorations[t]=h}const t=n[l],s=this._validateRangeRelaxedNoAllocations(t.range),o=ai(t.options),a=this._buffer.getOffsetAt(s.startLineNumber,s.startColumn),u=this._buffer.getOffsetAt(s.endLineNumber,s.endColumn);h.ownerId=e,h.reset(i,a,u,s),h.setOptions(o),h.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(s.endLineNumber),h.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(s.startLineNumber),r||this._onDidChangeDecorations.checkAffectedAndFire(o),this._decorationsTree.insert(h),c[l]=h.id,l++}else h&&delete this._decorations[h.id]}return c}finally{this._onDidChangeDecorations.endDeferredEmit()}}getLanguageId(){return this.tokenization.getLanguageId()}setLanguage(e,t){"string"===typeof e?(this._languageSelectionListener.clear(),this._setLanguage(e,t)):(this._languageSelectionListener.value=e.onDidChange((()=>this._setLanguage(e.languageId,t))),this._setLanguage(e.languageId,t))}_setLanguage(e,t){this.tokenization.setLanguageId(e,t),this._languageService.requestRichLanguageFeatures(e)}getLanguageIdAtPosition(e,t){return this.tokenization.getLanguageIdAtPosition(e,t)}getWordAtPosition(e){return this._tokenizationTextModelPart.getWordAtPosition(e)}getWordUntilPosition(e){return this._tokenizationTextModelPart.getWordUntilPosition(e)}normalizePosition(e,t){return e}getLineIndentColumn(e){return function(e){let t=0;for(const n of e){if(" "!==n&&"\t"!==n)break;t++}return t}(this.getLineContent(e))+1}};function Jr(e){return!(!e.options.overviewRuler||!e.options.overviewRuler.color)}function Xr(e){return!!e.options.after||!!e.options.before}Qr=qr=Wr([Ur(4,Vr),Ur(5,k.L),Ur(6,se),Ur(7,H._Y)],Qr);class Yr{constructor(){this._decorationsTree0=new un,this._decorationsTree1=new un,this._injectedTextDecorationsTree=new un}ensureAllNodesHaveRanges(e){this.getAll(e,0,!1,!1,!1)}_ensureNodesHaveRanges(e,t){for(const n of t)null===n.range&&(n.range=e.getRangeAt(n.cachedAbsoluteStart,n.cachedAbsoluteEnd));return t}getAllInInterval(e,t,n,r,i,s){const o=e.getVersionId(),a=this._intervalSearch(t,n,r,i,o,s);return this._ensureNodesHaveRanges(e,a)}_intervalSearch(e,t,n,r,i,s){const o=this._decorationsTree0.intervalSearch(e,t,n,r,i,s),a=this._decorationsTree1.intervalSearch(e,t,n,r,i,s),l=this._injectedTextDecorationsTree.intervalSearch(e,t,n,r,i,s);return o.concat(a).concat(l)}getInjectedTextInInterval(e,t,n,r){const i=e.getVersionId(),s=this._injectedTextDecorationsTree.intervalSearch(t,n,r,!1,i,!1);return this._ensureNodesHaveRanges(e,s).filter((e=>e.options.showIfCollapsed||!e.range.isEmpty()))}getAllInjectedText(e,t){const n=e.getVersionId(),r=this._injectedTextDecorationsTree.search(t,!1,n,!1);return this._ensureNodesHaveRanges(e,r).filter((e=>e.options.showIfCollapsed||!e.range.isEmpty()))}getAll(e,t,n,r,i){const s=e.getVersionId(),o=this._search(t,n,r,s,i);return this._ensureNodesHaveRanges(e,o)}_search(e,t,n,r,i){if(n)return this._decorationsTree1.search(e,t,r,i);{const n=this._decorationsTree0.search(e,t,r,i),s=this._decorationsTree1.search(e,t,r,i),o=this._injectedTextDecorationsTree.search(e,t,r,i);return n.concat(s).concat(o)}}collectNodesFromOwner(e){const t=this._decorationsTree0.collectNodesFromOwner(e),n=this._decorationsTree1.collectNodesFromOwner(e),r=this._injectedTextDecorationsTree.collectNodesFromOwner(e);return t.concat(n).concat(r)}collectNodesPostOrder(){const e=this._decorationsTree0.collectNodesPostOrder(),t=this._decorationsTree1.collectNodesPostOrder(),n=this._injectedTextDecorationsTree.collectNodesPostOrder();return e.concat(t).concat(n)}insert(e){Xr(e)?this._injectedTextDecorationsTree.insert(e):Jr(e)?this._decorationsTree1.insert(e):this._decorationsTree0.insert(e)}delete(e){Xr(e)?this._injectedTextDecorationsTree.delete(e):Jr(e)?this._decorationsTree1.delete(e):this._decorationsTree0.delete(e)}getNodeRange(e,t){const n=e.getVersionId();return t.cachedVersionId!==n&&this._resolveNode(t,n),null===t.range&&(t.range=e.getRangeAt(t.cachedAbsoluteStart,t.cachedAbsoluteEnd)),t.range}_resolveNode(e,t){Xr(e)?this._injectedTextDecorationsTree.resolveNode(e,t):Jr(e)?this._decorationsTree1.resolveNode(e,t):this._decorationsTree0.resolveNode(e,t)}acceptReplace(e,t,n,r){this._decorationsTree0.acceptReplace(e,t,n,r),this._decorationsTree1.acceptReplace(e,t,n,r),this._injectedTextDecorationsTree.acceptReplace(e,t,n,r)}}function Zr(e){return e.replace(/[^a-z0-9\-_]/gi," ")}class ei{constructor(e){this.color=e.color||"",this.darkColor=e.darkColor||""}}class ti extends ei{constructor(e){super(e),this._resolvedColor=null,this.position="number"===typeof e.position?e.position:me.A5.Center}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=null}_resolveColor(e,t){if("string"===typeof e)return e;const n=e?t.getColor(e.id):null;return n?n.toString():""}}class ni{constructor(e){this.position=e?.position??me.ZS.Center,this.persistLane=e?.persistLane}}class ri extends ei{constructor(e){super(e),this.position=e.position,this.sectionHeaderStyle=e.sectionHeaderStyle??null,this.sectionHeaderText=e.sectionHeaderText??null}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=void 0}_resolveColor(e,t){return"string"===typeof e?a.Q1.fromHex(e):t.getColor(e.id)}}class ii{static from(e){return e instanceof ii?e:new ii(e)}constructor(e){this.content=e.content||"",this.inlineClassName=e.inlineClassName||null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.attachedData=e.attachedData||null,this.cursorStops=e.cursorStops||null}}class si{static register(e){return new si(e)}static createDynamic(e){return new si(e)}constructor(e){this.description=e.description,this.blockClassName=e.blockClassName?Zr(e.blockClassName):null,this.blockDoesNotCollapse=e.blockDoesNotCollapse??null,this.blockIsAfterEnd=e.blockIsAfterEnd??null,this.blockPadding=e.blockPadding??null,this.stickiness=e.stickiness||0,this.zIndex=e.zIndex||0,this.className=e.className?Zr(e.className):null,this.shouldFillLineOnLineBreak=e.shouldFillLineOnLineBreak??null,this.hoverMessage=e.hoverMessage||null,this.glyphMarginHoverMessage=e.glyphMarginHoverMessage||null,this.lineNumberHoverMessage=e.lineNumberHoverMessage||null,this.isWholeLine=e.isWholeLine||!1,this.showIfCollapsed=e.showIfCollapsed||!1,this.collapseOnReplaceEdit=e.collapseOnReplaceEdit||!1,this.overviewRuler=e.overviewRuler?new ti(e.overviewRuler):null,this.minimap=e.minimap?new ri(e.minimap):null,this.glyphMargin=e.glyphMarginClassName?new ni(e.glyphMargin):null,this.glyphMarginClassName=e.glyphMarginClassName?Zr(e.glyphMarginClassName):null,this.linesDecorationsClassName=e.linesDecorationsClassName?Zr(e.linesDecorationsClassName):null,this.lineNumberClassName=e.lineNumberClassName?Zr(e.lineNumberClassName):null,this.linesDecorationsTooltip=e.linesDecorationsTooltip?c.jy(e.linesDecorationsTooltip):null,this.firstLineDecorationClassName=e.firstLineDecorationClassName?Zr(e.firstLineDecorationClassName):null,this.marginClassName=e.marginClassName?Zr(e.marginClassName):null,this.inlineClassName=e.inlineClassName?Zr(e.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=e.beforeContentClassName?Zr(e.beforeContentClassName):null,this.afterContentClassName=e.afterContentClassName?Zr(e.afterContentClassName):null,this.after=e.after?ii.from(e.after):null,this.before=e.before?ii.from(e.before):null,this.hideInCommentTokens=e.hideInCommentTokens??!1,this.hideInStringTokens=e.hideInStringTokens??!1}}si.EMPTY=si.register({description:"empty"});const oi=[si.register({description:"tracked-range-always-grows-when-typing-at-edges",stickiness:0}),si.register({description:"tracked-range-never-grows-when-typing-at-edges",stickiness:1}),si.register({description:"tracked-range-grows-only-when-typing-before",stickiness:2}),si.register({description:"tracked-range-grows-only-when-typing-after",stickiness:3})];function ai(e){return e instanceof si?e:si.createDynamic(e)}class li extends i.jG{constructor(e){super(),this.handleBeforeFire=e,this._actual=this._register(new r.vl),this.event=this._actual.event,this._affectedInjectedTextLines=null,this._deferredCnt=0,this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._affectsLineNumber=!1}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(){this._deferredCnt--,0===this._deferredCnt&&(this._shouldFireDeferred&&this.doFire(),this._affectedInjectedTextLines?.clear(),this._affectedInjectedTextLines=null)}recordLineAffectedByInjectedText(e){this._affectedInjectedTextLines||(this._affectedInjectedTextLines=new Set),this._affectedInjectedTextLines.add(e)}checkAffectedAndFire(e){this._affectsMinimap||=!!e.minimap?.position,this._affectsOverviewRuler||=!!e.overviewRuler?.color,this._affectsGlyphMargin||=!!e.glyphMarginClassName,this._affectsLineNumber||=!!e.lineNumberClassName,this.tryFire()}fire(){this._affectsMinimap=!0,this._affectsOverviewRuler=!0,this._affectsGlyphMargin=!0,this.tryFire()}tryFire(){0===this._deferredCnt?this.doFire():this._shouldFireDeferred=!0}doFire(){this.handleBeforeFire(this._affectedInjectedTextLines);const e={affectsMinimap:this._affectsMinimap,affectsOverviewRuler:this._affectsOverviewRuler,affectsGlyphMargin:this._affectsGlyphMargin,affectsLineNumber:this._affectsLineNumber};this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._actual.fire(e)}}class ci extends i.jG{constructor(){super(),this._fastEmitter=this._register(new r.vl),this.fastEvent=this._fastEmitter.event,this._slowEmitter=this._register(new r.vl),this.slowEvent=this._slowEmitter.event,this._deferredCnt=0,this._deferredEvent=null}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(e=null){if(this._deferredCnt--,0===this._deferredCnt&&null!==this._deferredEvent){this._deferredEvent.rawContentChangedEvent.resultingSelection=e;const t=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(t),this._slowEmitter.fire(t)}}fire(e){this._deferredCnt>0?this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e:(this._fastEmitter.fire(e),this._slowEmitter.fire(e))}}var hi,ui=n(360),di=n(5600),gi=n(6456),fi=n(146),mi=function(e,t,n,r){var i,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,n,o):i(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},pi=function(e,t){return function(n,r){t(n,r,e)}};function bi(e){return e.toString()}class _i{constructor(e,t,n){this.model=e,this._modelEventListeners=new i.Cm,this.model=e,this._modelEventListeners.add(e.onWillDispose((()=>t(e)))),this._modelEventListeners.add(e.onDidChangeLanguage((t=>n(e,t))))}dispose(){this._modelEventListeners.dispose()}}const ki=s.j9||s.zx?1:2;class vi{constructor(e,t,n,r,i,s,o,a){this.uri=e,this.initialUndoRedoSnapshot=t,this.time=n,this.sharesUndoRedoStack=r,this.heapSize=i,this.sha1=s,this.versionId=o,this.alternativeVersionId=a}}let Ci=class extends i.jG{static{hi=this}static{this.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK=20971520}constructor(e,t,n,i){super(),this._configurationService=e,this._resourcePropertiesService=t,this._undoRedoService=n,this._instantiationService=i,this._onModelAdded=this._register(new r.vl),this.onModelAdded=this._onModelAdded.event,this._onModelRemoved=this._register(new r.vl),this.onModelRemoved=this._onModelRemoved.event,this._onModelModeChanged=this._register(new r.vl),this.onModelLanguageChanged=this._onModelModeChanged.event,this._modelCreationOptionsByLanguageAndResource=Object.create(null),this._models={},this._disposedModels=new Map,this._disposedModelsHeapSize=0,this._register(this._configurationService.onDidChangeConfiguration((e=>this._updateModelOptions(e)))),this._updateModelOptions(void 0)}static _readModelOptions(e,t){let n=b.tabSize;if(e.editor&&"undefined"!==typeof e.editor.tabSize){const t=parseInt(e.editor.tabSize,10);isNaN(t)||(n=t),n<1&&(n=1)}let r="tabSize";if(e.editor&&"undefined"!==typeof e.editor.indentSize&&"tabSize"!==e.editor.indentSize){const t=parseInt(e.editor.indentSize,10);isNaN(t)||(r=Math.max(t,1))}let i=b.insertSpaces;e.editor&&"undefined"!==typeof e.editor.insertSpaces&&(i="false"!==e.editor.insertSpaces&&Boolean(e.editor.insertSpaces));let s=ki;const o=e.eol;"\r\n"===o?s=2:"\n"===o&&(s=1);let a=b.trimAutoWhitespace;e.editor&&"undefined"!==typeof e.editor.trimAutoWhitespace&&(a="false"!==e.editor.trimAutoWhitespace&&Boolean(e.editor.trimAutoWhitespace));let l=b.detectIndentation;e.editor&&"undefined"!==typeof e.editor.detectIndentation&&(l="false"!==e.editor.detectIndentation&&Boolean(e.editor.detectIndentation));let c=b.largeFileOptimizations;e.editor&&"undefined"!==typeof e.editor.largeFileOptimizations&&(c="false"!==e.editor.largeFileOptimizations&&Boolean(e.editor.largeFileOptimizations));let h=b.bracketPairColorizationOptions;return e.editor?.bracketPairColorization&&"object"===typeof e.editor.bracketPairColorization&&(h={enabled:!!e.editor.bracketPairColorization.enabled,independentColorPoolPerBracketType:!!e.editor.bracketPairColorization.independentColorPoolPerBracketType}),{isForSimpleWidget:t,tabSize:n,indentSize:r,insertSpaces:i,detectIndentation:l,defaultEOL:s,trimAutoWhitespace:a,largeFileOptimizations:c,bracketPairColorizationOptions:h}}_getEOL(e,t){if(e)return this._resourcePropertiesService.getEOL(e,t);const n=this._configurationService.getValue("files.eol",{overrideIdentifier:t});return n&&"string"===typeof n&&"auto"!==n?n:3===s.OS||2===s.OS?"\n":"\r\n"}_shouldRestoreUndoStack(){const e=this._configurationService.getValue("files.restoreUndoStack");return"boolean"!==typeof e||e}getCreationOptions(e,t,n){const r="string"===typeof e?e:e.languageId;let i=this._modelCreationOptionsByLanguageAndResource[r+t];if(!i){const e=this._configurationService.getValue("editor",{overrideIdentifier:r,resource:t}),s=this._getEOL(t,r);i=hi._readModelOptions({editor:e,eol:s},n),this._modelCreationOptionsByLanguageAndResource[r+t]=i}return i}_updateModelOptions(e){const t=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);const n=Object.keys(this._models);for(let r=0,i=n.length;r<i;r++){const i=n[r],s=this._models[i],o=s.model.getLanguageId(),a=s.model.uri;if(e&&!e.affectsConfiguration("editor",{overrideIdentifier:o,resource:a})&&!e.affectsConfiguration("files.eol",{overrideIdentifier:o,resource:a}))continue;const l=t[o+a],c=this.getCreationOptions(o,a,s.model.isForSimpleWidget);hi._setModelOptionsForModel(s.model,c,l)}}static _setModelOptionsForModel(e,t,n){n&&n.defaultEOL!==t.defaultEOL&&1===e.getLineCount()&&e.setEOL(1===t.defaultEOL?0:1),n&&n.detectIndentation===t.detectIndentation&&n.insertSpaces===t.insertSpaces&&n.tabSize===t.tabSize&&n.indentSize===t.indentSize&&n.trimAutoWhitespace===t.trimAutoWhitespace&&(0,fi.aI)(n.bracketPairColorizationOptions,t.bracketPairColorizationOptions)||(t.detectIndentation?(e.detectIndentation(t.insertSpaces,t.tabSize),e.updateOptions({trimAutoWhitespace:t.trimAutoWhitespace,bracketColorizationOptions:t.bracketPairColorizationOptions})):e.updateOptions({insertSpaces:t.insertSpaces,tabSize:t.tabSize,indentSize:t.indentSize,trimAutoWhitespace:t.trimAutoWhitespace,bracketColorizationOptions:t.bracketPairColorizationOptions}))}_insertDisposedModel(e){this._disposedModels.set(bi(e.uri),e),this._disposedModelsHeapSize+=e.heapSize}_removeDisposedModel(e){const t=this._disposedModels.get(bi(e));return t&&(this._disposedModelsHeapSize-=t.heapSize),this._disposedModels.delete(bi(e)),t}_ensureDisposedModelsHeapSize(e){if(this._disposedModelsHeapSize>e){const t=[];for(this._disposedModels.forEach((e=>{e.sharesUndoRedoStack||t.push(e)})),t.sort(((e,t)=>e.time-t.time));t.length>0&&this._disposedModelsHeapSize>e;){const e=t.shift();this._removeDisposedModel(e.uri),null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}}}_createModelData(e,t,n,r){const i=this.getCreationOptions(t,n,r),s=this._instantiationService.createInstance(Qr,e,t,i,n);if(n&&this._disposedModels.has(bi(n))){const e=this._removeDisposedModel(n),t=this._undoRedoService.getElements(n),r=this._getSHA1Computer(),i=!!r.canComputeSHA1(s)&&r.computeSHA1(s)===e.sha1;if(i||e.sharesUndoRedoStack){for(const e of t.past)zt(e)&&e.matchesResource(n)&&e.setModel(s);for(const e of t.future)zt(e)&&e.matchesResource(n)&&e.setModel(s);this._undoRedoService.setElementsValidFlag(n,!0,(e=>zt(e)&&e.matchesResource(n))),i&&(s._overwriteVersionId(e.versionId),s._overwriteAlternativeVersionId(e.alternativeVersionId),s._overwriteInitialUndoRedoSnapshot(e.initialUndoRedoSnapshot))}else null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}const o=bi(s.uri);if(this._models[o])throw new Error("ModelService: Cannot add model because it already exists!");const a=new _i(s,(e=>this._onWillDispose(e)),((e,t)=>this._onDidChangeLanguage(e,t)));return this._models[o]=a,a}createModel(e,t,n,r=!1){let i;return i=t?this._createModelData(e,t,n,r):this._createModelData(e,Q.vH,n,r),this._onModelAdded.fire(i.model),i.model}getModels(){const e=[],t=Object.keys(this._models);for(let n=0,r=t.length;n<r;n++){const r=t[n];e.push(this._models[r].model)}return e}getModel(e){const t=bi(e),n=this._models[t];return n?n.model:null}_schemaShouldMaintainUndoRedoElements(e){return e.scheme===gi.ny.file||e.scheme===gi.ny.vscodeRemote||e.scheme===gi.ny.vscodeUserData||e.scheme===gi.ny.vscodeNotebookCell||"fake-fs"===e.scheme}_onWillDispose(e){const t=bi(e.uri),n=this._models[t],r=this._undoRedoService.getUriComparisonKey(e.uri)!==e.uri.toString();let i=!1,s=0;if(r||this._shouldRestoreUndoStack()&&this._schemaShouldMaintainUndoRedoElements(e.uri)){const t=this._undoRedoService.getElements(e.uri);if(t.past.length>0||t.future.length>0){for(const n of t.past)zt(n)&&n.matchesResource(e.uri)&&(i=!0,s+=n.heapSize(e.uri),n.setModel(e.uri));for(const n of t.future)zt(n)&&n.matchesResource(e.uri)&&(i=!0,s+=n.heapSize(e.uri),n.setModel(e.uri))}}const o=hi.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK,a=this._getSHA1Computer();if(i)if(r||!(s>o)&&a.canComputeSHA1(e))this._ensureDisposedModelsHeapSize(o-s),this._undoRedoService.setElementsValidFlag(e.uri,!1,(t=>zt(t)&&t.matchesResource(e.uri))),this._insertDisposedModel(new vi(e.uri,n.model.getInitialUndoRedoSnapshot(),Date.now(),r,s,a.computeSHA1(e),e.getVersionId(),e.getAlternativeVersionId()));else{const e=n.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}else if(!r){const e=n.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}delete this._models[t],n.dispose(),delete this._modelCreationOptionsByLanguageAndResource[e.getLanguageId()+e.uri],this._onModelRemoved.fire(e)}_onDidChangeLanguage(e,t){const n=t.oldLanguage,r=e.getLanguageId(),i=this.getCreationOptions(n,e.uri,e.isForSimpleWidget),s=this.getCreationOptions(r,e.uri,e.isForSimpleWidget);hi._setModelOptionsForModel(e,s,i),this._onModelModeChanged.fire({model:e,oldLanguageId:n})}_getSHA1Computer(){return new yi}};Ci=hi=mi([pi(0,K.pG),pi(1,ui.ITextResourcePropertiesService),pi(2,Vr),pi(3,H._Y)],Ci);class yi{static{this.MAX_MODEL_SIZE=10485760}canComputeSHA1(e){return e.getValueLength()<=yi.MAX_MODEL_SIZE}computeSHA1(e){const t=new di.v7,n=e.createSnapshot();let r;for(;r=n.read();)t.update(r);return t.digest()}}},1788:(e,t,n)=>{"use strict";function r(e){return e}n.d(t,{VV:()=>s,o5:()=>i});class i{constructor(e,t){this.lastCache=void 0,this.lastArgKey=void 0,"function"===typeof e?(this._fn=e,this._computeKey=r):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this._fn(e)),this.lastCache}}class s{get cachedValues(){return this._map}constructor(e,t){this._map=new Map,this._map2=new Map,"function"===typeof e?(this._fn=e,this._computeKey=r):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);if(this._map2.has(t))return this._map2.get(t);const n=this._fn(e);return this._map.set(e,n),this._map2.set(t,n),n}}},1929:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SimpleWorkerClient:()=>k,SimpleWorkerServer:()=>y,create:()=>L,logOnceWebWorkerWarning:()=>d});var r=n(4383),i=n(1234),s=n(1484),o=n(6456),a=n(8067),l=n(1508);const c="default",h="$initialize";let u=!1;function d(e){a.HZ&&(u||(u=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(e.message))}class g{constructor(e,t,n,r,i){this.vsWorker=e,this.req=t,this.channel=n,this.method=r,this.args=i,this.type=0}}class f{constructor(e,t,n,r){this.vsWorker=e,this.seq=t,this.res=n,this.err=r,this.type=1}}class m{constructor(e,t,n,r,i){this.vsWorker=e,this.req=t,this.channel=n,this.eventName=r,this.arg=i,this.type=2}}class p{constructor(e,t,n){this.vsWorker=e,this.req=t,this.event=n,this.type=3}}class b{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class _{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,t,n){const r=String(++this._lastSentReq);return new Promise(((i,s)=>{this._pendingReplies[r]={resolve:i,reject:s},this._send(new g(this._workerId,r,e,t,n))}))}listen(e,t,n){let r=null;const s=new i.vl({onWillAddFirstListener:()=>{r=String(++this._lastSentReq),this._pendingEmitters.set(r,s),this._send(new m(this._workerId,r,e,t,n))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(r),this._send(new b(this._workerId,r)),r=null}});return s.event}handleMessage(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))}createProxyToRemoteChannel(e,t){const n={get:(n,r)=>("string"!==typeof r||n[r]||(C(r)?n[r]=t=>this.listen(e,r,t):v(r)?n[r]=this.listen(e,r,void 0):36===r.charCodeAt(0)&&(n[r]=async(...n)=>(await(t?.()),this.sendMessage(e,r,n)))),n[r])};return new Proxy(Object.create(null),n)}_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])return void console.warn("Got reply to unknown seq");const t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let n=e.err;return e.err.$isError&&(n=new Error,n.name=e.err.name,n.message=e.err.message,n.stack=e.err.stack),void t.reject(n)}t.resolve(e.res)}_handleRequestMessage(e){const t=e.req;this._handler.handleMessage(e.channel,e.method,e.args).then((e=>{this._send(new f(this._workerId,t,e,void 0))}),(e=>{e.detail instanceof Error&&(e.detail=(0,r.cU)(e.detail)),this._send(new f(this._workerId,t,void 0,(0,r.cU)(e)))}))}_handleSubscribeEventMessage(e){const t=e.req,n=this._handler.handleEvent(e.channel,e.eventName,e.arg)((e=>{this._send(new p(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){const t=[];if(0===e.type)for(let n=0;n<e.args.length;n++)e.args[n]instanceof ArrayBuffer&&t.push(e.args[n]);else 1===e.type&&e.res instanceof ArrayBuffer&&t.push(e.res);this._handler.sendMessage(e,t)}}class k extends s.jG{constructor(e,t){super(),this._localChannels=new Map,this._worker=this._register(e.create({amdModuleId:"vs/base/common/worker/simpleWorker",esmModuleLocation:t.esmModuleLocation,label:t.label},(e=>{this._protocol.handleMessage(e)}),(e=>{(0,r.dz)(e)}))),this._protocol=new _({sendMessage:(e,t)=>{this._worker.postMessage(e,t)},handleMessage:(e,t,n)=>this._handleMessage(e,t,n),handleEvent:(e,t,n)=>this._handleEvent(e,t,n)}),this._protocol.setWorkerId(this._worker.getId());let n=null;const i=globalThis.require;"undefined"!==typeof i&&"function"===typeof i.getConfig?n=i.getConfig():"undefined"!==typeof globalThis.requirejs&&(n=globalThis.requirejs.s.contexts._.config),this._onModuleLoaded=this._protocol.sendMessage(c,h,[this._worker.getId(),JSON.parse(JSON.stringify(n)),t.amdModuleId]),this.proxy=this._protocol.createProxyToRemoteChannel(c,(async()=>{await this._onModuleLoaded})),this._onModuleLoaded.catch((e=>{this._onError("Worker failed to load "+t.amdModuleId,e)}))}_handleMessage(e,t,n){const r=this._localChannels.get(e);if(!r)return Promise.reject(new Error(`Missing channel ${e} on main thread`));if("function"!==typeof r[t])return Promise.reject(new Error(`Missing method ${t} on main thread channel ${e}`));try{return Promise.resolve(r[t].apply(r,n))}catch(i){return Promise.reject(i)}}_handleEvent(e,t,n){const r=this._localChannels.get(e);if(!r)throw new Error(`Missing channel ${e} on main thread`);if(C(t)){const i=r[t].call(r,n);if("function"!==typeof i)throw new Error(`Missing dynamic event ${t} on main thread channel ${e}.`);return i}if(v(t)){const n=r[t];if("function"!==typeof n)throw new Error(`Missing event ${t} on main thread channel ${e}.`);return n}throw new Error(`Malformed event name ${t}`)}setChannel(e,t){this._localChannels.set(e,t)}_onError(e,t){console.error(e),console.info(t)}}function v(e){return"o"===e[0]&&"n"===e[1]&&l.Wv(e.charCodeAt(2))}function C(e){return/^onDynamic/.test(e)&&l.Wv(e.charCodeAt(9))}class y{constructor(e,t){this._localChannels=new Map,this._remoteChannels=new Map,this._requestHandlerFactory=t,this._requestHandler=null,this._protocol=new _({sendMessage:(t,n)=>{e(t,n)},handleMessage:(e,t,n)=>this._handleMessage(e,t,n),handleEvent:(e,t,n)=>this._handleEvent(e,t,n)})}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,t,n){if(e===c&&t===h)return this.initialize(n[0],n[1],n[2]);const r=e===c?this._requestHandler:this._localChannels.get(e);if(!r)return Promise.reject(new Error(`Missing channel ${e} on worker thread`));if("function"!==typeof r[t])return Promise.reject(new Error(`Missing method ${t} on worker thread channel ${e}`));try{return Promise.resolve(r[t].apply(r,n))}catch(i){return Promise.reject(i)}}_handleEvent(e,t,n){const r=e===c?this._requestHandler:this._localChannels.get(e);if(!r)throw new Error(`Missing channel ${e} on worker thread`);if(C(t)){const e=r[t].call(r,n);if("function"!==typeof e)throw new Error(`Missing dynamic event ${t} on request handler.`);return e}if(v(t)){const e=r[t];if("function"!==typeof e)throw new Error(`Missing event ${t} on request handler.`);return e}throw new Error(`Malformed event name ${t}`)}getChannel(e){if(!this._remoteChannels.has(e)){const t=this._protocol.createProxyToRemoteChannel(e);this._remoteChannels.set(e,t)}return this._remoteChannels.get(e)}async initialize(e,t,r){if(this._protocol.setWorkerId(e),!this._requestHandlerFactory){t&&("undefined"!==typeof t.baseUrl&&delete t.baseUrl,"undefined"!==typeof t.paths&&"undefined"!==typeof t.paths.vs&&delete t.paths.vs,"undefined"!==typeof t.trustedTypesPolicy&&delete t.trustedTypesPolicy,t.catchError=!0,globalThis.require.config(t));{const e=o.zl.asBrowserUri(`${r}.js`).toString(!0);return n(5890)(`${e}`).then((e=>{if(this._requestHandler=e.create(this),!this._requestHandler)throw new Error("No RequestHandler!")}))}}this._requestHandler=this._requestHandlerFactory(this)}}function L(e){return new y(e,null)}},1939:(e,t,n)=>{"use strict";n.d(t,{K:()=>r});const r=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"})},1940:(e,t,n)=>{"use strict";n.d(t,{vb:()=>l,uC:()=>c,Qg:()=>a,$6:()=>h});n(8447);var r=n(4383),i=n(1234),s=n(1484),o=n(8067);Symbol("MicrotaskDelay");function a(e){return!!e&&"function"===typeof e.then}class l{constructor(){this.disposable=void 0,this.isDisposed=!1}cancel(){this.disposable?.dispose(),this.disposable=void 0}cancelAndSet(e,t,n=globalThis){if(this.isDisposed)throw new r.D7("Calling 'cancelAndSet' on a disposed IntervalTimer");this.cancel();const i=n.setInterval((()=>{e()}),t);this.disposable=(0,s.s)((()=>{n.clearInterval(i),this.disposable=void 0}))}dispose(){this.cancel(),this.isDisposed=!0}}class c{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return-1!==this.timeoutToken}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner?.()}}let h,u;u="function"!==typeof globalThis.requestIdleCallback||"function"!==typeof globalThis.cancelIdleCallback?(e,t)=>{(0,o._p)((()=>{if(n)return;const e=Date.now()+15,r={didTimeout:!0,timeRemaining:()=>Math.max(0,e-Date.now())};t(Object.freeze(r))}));let n=!1;return{dispose(){n||(n=!0)}}}:(e,t,n)=>{const r=e.requestIdleCallback(t,"number"===typeof n?{timeout:n}:void 0);let i=!1;return{dispose(){i||(i=!0,e.cancelIdleCallback(r))}}},h=e=>u(globalThis,e);var d;!function(e){e.settled=async function(e){let t;const n=await Promise.all(e.map((e=>e.then((e=>e),(e=>{t||(t=e)})))));if("undefined"!==typeof t)throw t;return n},e.withAsyncBody=function(e){return new Promise((async(t,n)=>{try{await e(t,n)}catch(r){n(r)}}))}}(d||(d={}));class g{static fromArray(e){return new g((t=>{t.emitMany(e)}))}static fromPromise(e){return new g((async t=>{t.emitMany(await e)}))}static fromPromises(e){return new g((async t=>{await Promise.all(e.map((async e=>t.emitOne(await e))))}))}static merge(e){return new g((async t=>{await Promise.all(e.map((async e=>{for await(const n of e)t.emitOne(n)})))}))}static{this.EMPTY=g.fromArray([])}constructor(e,t){this._state=0,this._results=[],this._error=null,this._onReturn=t,this._onStateChanged=new i.vl,queueMicrotask((async()=>{const t={emitOne:e=>this.emitOne(e),emitMany:e=>this.emitMany(e),reject:e=>this.reject(e)};try{await Promise.resolve(e(t)),this.resolve()}catch(n){this.reject(n)}finally{t.emitOne=void 0,t.emitMany=void 0,t.reject=void 0}}))}[Symbol.asyncIterator](){let e=0;return{next:async()=>{for(;;){if(2===this._state)throw this._error;if(e<this._results.length)return{done:!1,value:this._results[e++]};if(1===this._state)return{done:!0,value:void 0};await i.Jh.toPromise(this._onStateChanged.event)}},return:async()=>(this._onReturn?.(),{done:!0,value:void 0})}}static map(e,t){return new g((async n=>{for await(const r of e)n.emitOne(t(r))}))}map(e){return g.map(this,e)}static filter(e,t){return new g((async n=>{for await(const r of e)t(r)&&n.emitOne(r)}))}filter(e){return g.filter(this,e)}static coalesce(e){return g.filter(e,(e=>!!e))}coalesce(){return g.coalesce(this)}static async toPromise(e){const t=[];for await(const n of e)t.push(n);return t}toPromise(){return g.toPromise(this)}emitOne(e){0===this._state&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){0===this._state&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){0===this._state&&(this._state=1,this._onStateChanged.fire())}reject(e){0===this._state&&(this._state=2,this._error=e,this._onStateChanged.fire())}}},2083:(e,t,n)=>{"use strict";n.d(t,{rY:()=>p,ou:()=>m,dG:()=>L,OB:()=>w});var r=n(9493),i=(n(9400),n(1234)),s=n(1484);class o{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new i.vl,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]),(0,s.s)((()=>{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();const n=new a(this,e,t);return this._factories.set(e,n),(0,s.s)((()=>{const t=this._factories.get(e);t&&t===n&&(this._factories.delete(e),t.dispose())}))}async getOrCreate(e){const t=this.get(e);if(t)return t;const n=this._factories.get(e);return!n||n.isResolved?null:(await n.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;const 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}}class a extends s.jG{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._resolvePromise=this._create()),this._resolvePromise}async _create(){const e=await this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}}var l,c,h,u,d,g,f=n(8209);class m{constructor(e,t,n){this.offset=e,this.type=t,this.language=n,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}class p{constructor(e,t){this.tokens=e,this.endState=t,this._encodedTokenizationResultBrand=void 0}}!function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(l||(l={})),function(e){const t=new Map;t.set(0,r.W.symbolMethod),t.set(1,r.W.symbolFunction),t.set(2,r.W.symbolConstructor),t.set(3,r.W.symbolField),t.set(4,r.W.symbolVariable),t.set(5,r.W.symbolClass),t.set(6,r.W.symbolStruct),t.set(7,r.W.symbolInterface),t.set(8,r.W.symbolModule),t.set(9,r.W.symbolProperty),t.set(10,r.W.symbolEvent),t.set(11,r.W.symbolOperator),t.set(12,r.W.symbolUnit),t.set(13,r.W.symbolValue),t.set(15,r.W.symbolEnum),t.set(14,r.W.symbolConstant),t.set(15,r.W.symbolEnum),t.set(16,r.W.symbolEnumMember),t.set(17,r.W.symbolKeyword),t.set(27,r.W.symbolSnippet),t.set(18,r.W.symbolText),t.set(19,r.W.symbolColor),t.set(20,r.W.symbolFile),t.set(21,r.W.symbolReference),t.set(22,r.W.symbolCustomColor),t.set(23,r.W.symbolFolder),t.set(24,r.W.symbolTypeParameter),t.set(25,r.W.account),t.set(26,r.W.issues),e.toIcon=function(e){let n=t.get(e);return n||(console.info("No codicon found for CompletionItemKind "+e),n=r.W.symbolProperty),n};const n=new Map;n.set("method",0),n.set("function",1),n.set("constructor",2),n.set("field",3),n.set("variable",4),n.set("class",5),n.set("struct",6),n.set("interface",7),n.set("module",8),n.set("property",9),n.set("event",10),n.set("operator",11),n.set("unit",12),n.set("value",13),n.set("constant",14),n.set("enum",15),n.set("enum-member",16),n.set("enumMember",16),n.set("keyword",17),n.set("snippet",27),n.set("text",18),n.set("color",19),n.set("file",20),n.set("reference",21),n.set("customcolor",22),n.set("folder",23),n.set("type-parameter",24),n.set("typeParameter",24),n.set("account",25),n.set("issue",26),e.fromString=function(e,t){let r=n.get(e);return"undefined"!==typeof r||t||(r=9),r}}(c||(c={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(h||(h={}));!function(e){e[e.Automatic=0]="Automatic",e[e.PasteAs=1]="PasteAs"}(u||(u={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(d||(d={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(g||(g={}));(0,f.kg)("Array","array"),(0,f.kg)("Boolean","boolean"),(0,f.kg)("Class","class"),(0,f.kg)("Constant","constant"),(0,f.kg)("Constructor","constructor"),(0,f.kg)("Enum","enumeration"),(0,f.kg)("EnumMember","enumeration member"),(0,f.kg)("Event","event"),(0,f.kg)("Field","field"),(0,f.kg)("File","file"),(0,f.kg)("Function","function"),(0,f.kg)("Interface","interface"),(0,f.kg)("Key","key"),(0,f.kg)("Method","method"),(0,f.kg)("Module","module"),(0,f.kg)("Namespace","namespace"),(0,f.kg)("Null","null"),(0,f.kg)("Number","number"),(0,f.kg)("Object","object"),(0,f.kg)("Operator","operator"),(0,f.kg)("Package","package"),(0,f.kg)("Property","property"),(0,f.kg)("String","string"),(0,f.kg)("Struct","struct"),(0,f.kg)("TypeParameter","type parameter"),(0,f.kg)("Variable","variable");var b,_,k,v,C;!function(e){const t=new Map;t.set(0,r.W.symbolFile),t.set(1,r.W.symbolModule),t.set(2,r.W.symbolNamespace),t.set(3,r.W.symbolPackage),t.set(4,r.W.symbolClass),t.set(5,r.W.symbolMethod),t.set(6,r.W.symbolProperty),t.set(7,r.W.symbolField),t.set(8,r.W.symbolConstructor),t.set(9,r.W.symbolEnum),t.set(10,r.W.symbolInterface),t.set(11,r.W.symbolFunction),t.set(12,r.W.symbolVariable),t.set(13,r.W.symbolConstant),t.set(14,r.W.symbolString),t.set(15,r.W.symbolNumber),t.set(16,r.W.symbolBoolean),t.set(17,r.W.symbolArray),t.set(18,r.W.symbolObject),t.set(19,r.W.symbolKey),t.set(20,r.W.symbolNull),t.set(21,r.W.symbolEnumMember),t.set(22,r.W.symbolStruct),t.set(23,r.W.symbolEvent),t.set(24,r.W.symbolOperator),t.set(25,r.W.symbolTypeParameter),e.toIcon=function(e){let n=t.get(e);return n||(console.info("No codicon found for SymbolKind "+e),n=r.W.symbolProperty),n}}(b||(b={}));class y{static{this.Comment=new y("comment")}static{this.Imports=new y("imports")}static{this.Region=new y("region")}static fromValue(e){switch(e){case"comment":return y.Comment;case"imports":return y.Imports;case"region":return y.Region}return new y(e)}constructor(e){this.value=e}}!function(e){e[e.AIGenerated=1]="AIGenerated"}(_||(_={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(k||(k={})),function(e){e.is=function(e){return!(!e||"object"!==typeof e)&&("string"===typeof e.id&&"string"===typeof e.title)}}(v||(v={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(C||(C={}));const L=new o,w=new o;var S;!function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(S||(S={}))},2522:(e,t,n)=>{"use strict";var r;n.d(t,{f:()=>r}),function(e){function t(e){return e&&"object"===typeof e&&"function"===typeof e[Symbol.iterator]}e.is=t;const n=Object.freeze([]);function*r(e){yield e}e.empty=function(){return n},e.single=r,e.wrap=function(e){return t(e)?e:r(e)},e.from=function(e){return e||n},e.reverse=function*(e){for(let t=e.length-1;t>=0;t--)yield e[t]},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){let n=0;for(const r of e)if(t(r,n++))return!0;return!1},e.find=function(e,t){for(const n of e)if(t(n))return n},e.filter=function*(e,t){for(const n of e)t(n)&&(yield n)},e.map=function*(e,t){let n=0;for(const r of e)yield t(r,n++)},e.flatMap=function*(e,t){let n=0;for(const r of e)yield*t(r,n++)},e.concat=function*(...e){for(const t of e)yield*t},e.reduce=function(e,t,n){let r=n;for(const i of e)r=t(r,i);return r},e.slice=function*(e,t,n=e.length){for(t<0&&(t+=e.length),n<0?n+=e.length:n>e.length&&(n=e.length);t<n;t++)yield e[t]},e.consume=function(t,n=Number.POSITIVE_INFINITY){const r=[];if(0===n)return[r,t];const i=t[Symbol.iterator]();for(let s=0;s<n;s++){const t=i.next();if(t.done)return[r,e.empty()];r.push(t.value)}return[r,{[Symbol.iterator]:()=>i}]},e.asyncToArray=async function(e){const t=[];for await(const n of e)t.push(n);return Promise.resolve(t)}}(r||(r={}))},2661:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LanguageFeaturesService:()=>m});var r=n(1234),i=n(1484),s=n(6223),o=n(6958),a=n(8821);function l(e,t,n,r,i,s){if(Array.isArray(e)){let o=0;for(const a of e){const e=l(a,t,n,r,i,s);if(10===e)return e;e>o&&(o=e)}return o}if("string"===typeof e)return r?"*"===e?5:e===n?10:0:0;if(e){const{language:l,pattern:c,scheme:h,hasAccessToAllModels:u,notebookType:d}=e;if(!r&&!u)return 0;d&&i&&(t=i);let g=0;if(h)if(h===t.scheme)g=10;else{if("*"!==h)return 0;g=5}if(l)if(l===n)g=10;else{if("*"!==l)return 0;g=Math.max(g,5)}if(d)if(d===s)g=10;else{if("*"!==d||void 0===s)return 0;g=Math.max(g,5)}if(c){let e;if(e="string"===typeof c?c:{...c,base:(0,a.S8)(c.base)},e!==t.fsPath&&!(0,o.YW)(e,t.fsPath))return 0;g=10}return g}return 0}function c(e){return"string"!==typeof e&&(Array.isArray(e)?e.every(c):!!e.exclusive)}class h{constructor(e,t,n,r,i){this.uri=e,this.languageId=t,this.notebookUri=n,this.notebookType=r,this.recursive=i}equals(e){return this.notebookType===e.notebookType&&this.languageId===e.languageId&&this.uri.toString()===e.uri.toString()&&this.notebookUri?.toString()===e.notebookUri?.toString()&&this.recursive===e.recursive}}class u{constructor(e){this._notebookInfoResolver=e,this._clock=0,this._entries=[],this._onDidChange=new r.vl,this.onDidChange=this._onDidChange.event}register(e,t){let n={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(n),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),(0,i.s)((()=>{if(n){const e=this._entries.indexOf(n);e>=0&&(this._entries.splice(e,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),n=void 0)}}))}has(e){return this.all(e).length>0}all(e){if(!e)return[];this._updateScores(e,!1);const t=[];for(const n of this._entries)n._score>0&&t.push(n.provider);return t}ordered(e,t=!1){const n=[];return this._orderedForEach(e,t,(e=>n.push(e.provider))),n}orderedGroups(e){const t=[];let n,r;return this._orderedForEach(e,!1,(e=>{n&&r===e._score?n.push(e.provider):(r=e._score,n=[e.provider],t.push(n))})),t}_orderedForEach(e,t,n){this._updateScores(e,t);for(const r of this._entries)r._score>0&&n(r)}_updateScores(e,t){const n=this._notebookInfoResolver?.(e.uri),r=n?new h(e.uri,e.getLanguageId(),n.uri,n.type,t):new h(e.uri,e.getLanguageId(),void 0,void 0,t);if(!this._lastCandidate?.equals(r)){this._lastCandidate=r;for(const n of this._entries)if(n._score=l(n.selector,r.uri,r.languageId,(0,s.vd)(e),r.notebookUri,r.notebookType),c(n.selector)&&n._score>0){if(!t){for(const e of this._entries)e._score=0;n._score=1e3;break}n._score=0}this._entries.sort(u._compareByScoreAndTime)}}static _compareByScoreAndTime(e,t){return e._score<t._score?1:e._score>t._score?-1:d(e.selector)&&!d(t.selector)?1:!d(e.selector)&&d(t.selector)?-1:e._time<t._time?1:e._time>t._time?-1:0}}function d(e){return"string"!==typeof e&&(Array.isArray(e)?e.some(d):Boolean(e.isBuiltin))}var g=n(6942),f=n(4621);class m{constructor(){this.referenceProvider=new u(this._score.bind(this)),this.renameProvider=new u(this._score.bind(this)),this.newSymbolNamesProvider=new u(this._score.bind(this)),this.codeActionProvider=new u(this._score.bind(this)),this.definitionProvider=new u(this._score.bind(this)),this.typeDefinitionProvider=new u(this._score.bind(this)),this.declarationProvider=new u(this._score.bind(this)),this.implementationProvider=new u(this._score.bind(this)),this.documentSymbolProvider=new u(this._score.bind(this)),this.inlayHintsProvider=new u(this._score.bind(this)),this.colorProvider=new u(this._score.bind(this)),this.codeLensProvider=new u(this._score.bind(this)),this.documentFormattingEditProvider=new u(this._score.bind(this)),this.documentRangeFormattingEditProvider=new u(this._score.bind(this)),this.onTypeFormattingEditProvider=new u(this._score.bind(this)),this.signatureHelpProvider=new u(this._score.bind(this)),this.hoverProvider=new u(this._score.bind(this)),this.documentHighlightProvider=new u(this._score.bind(this)),this.multiDocumentHighlightProvider=new u(this._score.bind(this)),this.selectionRangeProvider=new u(this._score.bind(this)),this.foldingRangeProvider=new u(this._score.bind(this)),this.linkProvider=new u(this._score.bind(this)),this.inlineCompletionsProvider=new u(this._score.bind(this)),this.inlineEditProvider=new u(this._score.bind(this)),this.completionProvider=new u(this._score.bind(this)),this.linkedEditingRangeProvider=new u(this._score.bind(this)),this.documentRangeSemanticTokensProvider=new u(this._score.bind(this)),this.documentSemanticTokensProvider=new u(this._score.bind(this)),this.documentDropEditProvider=new u(this._score.bind(this)),this.documentPasteEditProvider=new u(this._score.bind(this))}_score(e){return this._notebookTypeResolver?.(e)}}(0,f.v)(g.ILanguageFeaturesService,m,1)},3069:(e,t,n)=>{"use strict";n.d(t,{y:()=>r});class r{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new r(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return r.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return r.isBefore(this,e)}static isBefore(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column}isBeforeOrEqual(e){return r.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<=t.column}static compare(e,t){const n=0|e.lineNumber,r=0|t.lineNumber;if(n===r){return(0|e.column)-(0|t.column)}return n-r}clone(){return new r(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new r(e.lineNumber,e.column)}static isIPosition(e){return e&&"number"===typeof e.lineNumber&&"number"===typeof e.column}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}}},3511:(e,t,n)=>{"use strict";n.d(t,{rr:()=>Q,$b:()=>J});n(1234);var r=n(1484),i=n(8067),s=n(1508),o=n(4383),a=n(8209);function l(...e){switch(e.length){case 1:return(0,a.kg)("contextkey.scanner.hint.didYouMean1","Did you mean {0}?",e[0]);case 2:return(0,a.kg)("contextkey.scanner.hint.didYouMean2","Did you mean {0} or {1}?",e[0],e[1]);case 3:return(0,a.kg)("contextkey.scanner.hint.didYouMean3","Did you mean {0}, {1} or {2}?",e[0],e[1],e[2]);default:return}}const c=(0,a.kg)("contextkey.scanner.hint.didYouForgetToOpenOrCloseQuote","Did you forget to open or close the quote?"),h=(0,a.kg)("contextkey.scanner.hint.didYouForgetToEscapeSlash","Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'.");class u{constructor(){this._input="",this._start=0,this._current=0,this._tokens=[],this._errors=[],this.stringRe=/[a-zA-Z0-9_<>\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(e){switch(e.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return e.isTripleEq?"===":"==";case 4:return e.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:case 8:return">=";case 9:return"=~";case 10:case 17:case 18:case 19:return e.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 20:return"EOF";default:throw(0,o.iH)(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}static{this._regexFlags=new Set(["i","g","s","m","y","u"].map((e=>e.charCodeAt(0))))}static{this._keywords=new Map([["not",14],["in",13],["false",12],["true",11]])}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();){this._start=this._current;switch(this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){const e=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:e})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){const e=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:e})}else this._match(126)?this._addToken(9):this._error(l("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(l("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(l("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return!this._isAtEnd()&&(this._input.charCodeAt(this._current)===e&&(this._current++,!0))}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){const t=this._start,n=this._input.substring(this._start,this._current),r={type:19,offset:this._start,lexeme:n};this._errors.push({offset:t,lexeme:n,additionalInfo:e}),this._tokens.push(r)}_string(){this.stringRe.lastIndex=this._start;const e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;const t=this._input.substring(this._start,this._current),n=u._keywords.get(t);n?this._addToken(n):this._tokens.push({type:17,lexeme:t,offset:this._start})}}_quotedString(){for(;39!==this._peek()&&!this._isAtEnd();)this._advance();this._isAtEnd()?this._error(c):(this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1}))}_regex(){let e=this._current,t=!1,n=!1;for(;;){if(e>=this._input.length)return this._current=e,void this._error(h);const r=this._input.charCodeAt(e);if(t)t=!1;else{if(47===r&&!n){e++;break}91===r?n=!0:92===r?t=!0:93===r&&(n=!1)}e++}for(;e<this._input.length&&u._regexFlags.has(this._input.charCodeAt(e));)e++;this._current=e;const r=this._input.substring(this._start,this._current);this._tokens.push({type:10,lexeme:r,offset:this._start})}_isAtEnd(){return this._current>=this._input.length}}var d=n(3591);const g=new Map;g.set("false",!1),g.set("true",!0),g.set("isMac",i.zx),g.set("isLinux",i.j9),g.set("isWindows",i.uF),g.set("isWeb",i.HZ),g.set("isMacNative",i.zx&&!i.HZ),g.set("isEdge",i.UP),g.set("isFirefox",i.gm),g.set("isChrome",i.H8),g.set("isSafari",i.nr);const f=Object.prototype.hasOwnProperty,m={regexParsingWithErrorRecovery:!0},p=(0,a.kg)("contextkey.parser.error.emptyString","Empty context key expression"),b=(0,a.kg)("contextkey.parser.error.emptyString.hint","Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),_=(0,a.kg)("contextkey.parser.error.noInAfterNot","'in' after 'not'."),k=(0,a.kg)("contextkey.parser.error.closingParenthesis","closing parenthesis ')'"),v=(0,a.kg)("contextkey.parser.error.unexpectedToken","Unexpected token"),C=(0,a.kg)("contextkey.parser.error.unexpectedToken.hint","Did you forget to put && or || before the token?"),y=(0,a.kg)("contextkey.parser.error.unexpectedEOF","Unexpected end of expression"),L=(0,a.kg)("contextkey.parser.error.unexpectedEOF.hint","Did you forget to put a context key?");class w{static{this._parseError=new Error}constructor(e=m){this._config=e,this._scanner=new u,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(""!==e){this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{const e=this._expr();if(!this._isAtEnd()){const e=this._peek(),t=17===e.type?C:void 0;throw this._parsingErrors.push({message:v,offset:e.offset,lexeme:u.getLexeme(e),additionalInfo:t}),w._parseError}return e}catch(t){if(t!==w._parseError)throw t;return}}else this._parsingErrors.push({message:p,offset:0,lexeme:"",additionalInfo:b})}_expr(){return this._or()}_or(){const e=[this._and()];for(;this._matchOne(16);){const t=this._and();e.push(t)}return 1===e.length?e[0]:S.or(...e)}_and(){const e=[this._term()];for(;this._matchOne(15);){const t=this._term();e.push(t)}return 1===e.length?e[0]:S.and(...e)}_term(){if(this._matchOne(2)){const e=this._peek();switch(e.type){case 11:return this._advance(),E.INSTANCE;case 12:return this._advance(),N.INSTANCE;case 0:{this._advance();const e=this._expr();return this._consume(1,k),e?.negate()}case 17:return this._advance(),R.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){const e=this._peek();switch(e.type){case 11:return this._advance(),S.true();case 12:return this._advance(),S.false();case 0:{this._advance();const e=this._expr();return this._consume(1,k),e}case 17:{const r=e.lexeme;if(this._advance(),this._matchOne(9)){const e=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),10!==e.type)throw this._errExpectedButGot("REGEX",e);const n=e.lexeme,i=n.lastIndexOf("/"),s=i===n.length-1?void 0:this._removeFlagsGY(n.substring(i+1));let o;try{o=new RegExp(n.substring(1,i),s)}catch(t){throw this._errExpectedButGot("REGEX",e)}return z.create(r,o)}switch(e.type){case 10:case 19:{const n=[e.lexeme];this._advance();let i=this._peek(),s=0;for(let t=0;t<e.lexeme.length;t++)40===e.lexeme.charCodeAt(t)?s++:41===e.lexeme.charCodeAt(t)&&s--;for(;!this._isAtEnd()&&15!==i.type&&16!==i.type;){switch(i.type){case 0:s++;break;case 1:s--;break;case 10:case 18:for(let t=0;t<i.lexeme.length;t++)40===i.lexeme.charCodeAt(t)?s++:41===e.lexeme.charCodeAt(t)&&s--}if(s<0)break;n.push(u.getLexeme(i)),this._advance(),i=this._peek()}const o=n.join(""),a=o.lastIndexOf("/"),l=a===o.length-1?void 0:this._removeFlagsGY(o.substring(a+1));let c;try{c=new RegExp(o.substring(1,a),l)}catch(t){throw this._errExpectedButGot("REGEX",e)}return S.regex(r,c)}case 18:{const t=e.lexeme;this._advance();let i=null;if(!(0,s.AV)(t)){const r=t.indexOf("/"),s=t.lastIndexOf("/");if(r!==s&&r>=0){const o=t.slice(r+1,s),a="i"===t[s+1]?"i":"";try{i=new RegExp(o,a)}catch(n){throw this._errExpectedButGot("REGEX",e)}}}if(null===i)throw this._errExpectedButGot("REGEX",e);return z.create(r,i)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,_);const e=this._value();return S.notIn(r,e)}switch(this._peek().type){case 3:{this._advance();const e=this._value();if(18===this._previous().type)return S.equals(r,e);switch(e){case"true":return S.has(r);case"false":return S.not(r);default:return S.equals(r,e)}}case 4:{this._advance();const e=this._value();if(18===this._previous().type)return S.notEquals(r,e);switch(e){case"true":return S.not(r);case"false":return S.has(r);default:return S.notEquals(r,e)}}case 5:return this._advance(),P.create(r,this._value());case 6:return this._advance(),V.create(r,this._value());case 7:return this._advance(),B.create(r,this._value());case 8:return this._advance(),F.create(r,this._value());case 13:return this._advance(),S.in(r,this._value());default:return S.has(r)}}case 20:throw this._parsingErrors.push({message:y,offset:e.offset,lexeme:"",additionalInfo:L}),w._parseError;default:throw this._errExpectedButGot("true | false | KEY \n\t| KEY '=~' REGEX \n\t| KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value",this._peek())}}_value(){const e=this._peek();switch(e.type){case 17:case 18:return this._advance(),e.lexeme;case 11:return this._advance(),"true";case 12:return this._advance(),"false";case 13:return this._advance(),"in";default:return""}}_removeFlagsGY(e){return e.replaceAll(this._flagsGYRe,"")}_previous(){return this._tokens[this._current-1]}_matchOne(e){return!!this._check(e)&&(this._advance(),!0)}_advance(){return this._isAtEnd()||this._current++,this._previous()}_consume(e,t){if(this._check(e))return this._advance();throw this._errExpectedButGot(t,this._peek())}_errExpectedButGot(e,t,n){const r=(0,a.kg)("contextkey.parser.error.expectedButGot","Expected: {0}\nReceived: '{1}'.",e,u.getLexeme(t)),i=t.offset,s=u.getLexeme(t);return this._parsingErrors.push({message:r,offset:i,lexeme:s,additionalInfo:n}),w._parseError}_check(e){return this._peek().type===e}_peek(){return this._tokens[this._current]}_isAtEnd(){return 20===this._peek().type}}class S{static false(){return E.INSTANCE}static true(){return N.INSTANCE}static has(e){return T.create(e)}static equals(e,t){return A.create(e,t)}static notEquals(e,t){return M.create(e,t)}static regex(e,t){return z.create(e,t)}static in(e,t){return I.create(e,t)}static notIn(e,t){return O.create(e,t)}static not(e){return R.create(e)}static and(...e){return W.create(e,null,!0)}static or(...e){return U.create(e,null,!0)}static{this._parser=new w({regexParsingWithErrorRecovery:!1})}static deserialize(e){if(void 0===e||null===e)return;return this._parser.parse(e)}}function x(e,t){return e.cmp(t)}class E{static{this.INSTANCE=new E}constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!1}serialize(){return"false"}keys(){return[]}negate(){return N.INSTANCE}}class N{static{this.INSTANCE=new N}constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!0}serialize(){return"true"}keys(){return[]}negate(){return E.INSTANCE}}class T{static create(e,t=null){const n=g.get(e);return"boolean"===typeof n?n?N.INSTANCE:E.INSTANCE:new T(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=2}cmp(e){return e.type!==this.type?this.type-e.type:H(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=g.get(this.key);return"boolean"===typeof e?e?N.INSTANCE:E.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=R.create(this.key,this)),this.negated}}class A{static create(e,t,n=null){if("boolean"===typeof t)return t?T.create(e,n):R.create(e,n);const r=g.get(e);if("boolean"===typeof r){return t===(r?"true":"false")?N.INSTANCE:E.INSTANCE}return new A(e,t,n)}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=4}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=g.get(this.key);if("boolean"===typeof e){const t=e?"true":"false";return this.value===t?N.INSTANCE:E.INSTANCE}return this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=M.create(this.key,this.value,this)),this.negated}}class I{static create(e,t){return new I(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=10,this.negated=null}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type&&(this.key===e.key&&this.valueKey===e.valueKey)}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.valueKey),n=e.getValue(this.key);return Array.isArray(t)?t.includes(n):"string"===typeof n&&"object"===typeof t&&null!==t&&f.call(t,n)}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=O.create(this.key,this.valueKey)),this.negated}}class O{static create(e,t){return new O(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=11,this._negated=I.create(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:this._negated.cmp(e._negated)}equals(e){return e.type===this.type&&this._negated.equals(e._negated)}substituteConstants(){return this}evaluate(e){return!this._negated.evaluate(e)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}negate(){return this._negated}}class M{static create(e,t,n=null){if("boolean"===typeof t)return t?R.create(e,n):T.create(e,n);const r=g.get(e);if("boolean"===typeof r){return t===(r?"true":"false")?E.INSTANCE:N.INSTANCE}return new M(e,t,n)}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=5}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=g.get(this.key);if("boolean"===typeof e){const t=e?"true":"false";return this.value===t?E.INSTANCE:N.INSTANCE}return this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=A.create(this.key,this.value,this)),this.negated}}class R{static create(e,t=null){const n=g.get(e);return"boolean"===typeof n?n?E.INSTANCE:N.INSTANCE:new R(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=3}cmp(e){return e.type!==this.type?this.type-e.type:H(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=g.get(this.key);return"boolean"===typeof e?e?E.INSTANCE:N.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=T.create(this.key,this)),this.negated}}function D(e,t){if("string"===typeof e){const t=parseFloat(e);isNaN(t)||(e=t)}return"string"===typeof e||"number"===typeof e?t(e):E.INSTANCE}class B{static create(e,t,n=null){return D(t,(t=>new B(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=12}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=V.create(this.key,this.value,this)),this.negated}}class F{static create(e,t,n=null){return D(t,(t=>new F(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=13}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=P.create(this.key,this.value,this)),this.negated}}class P{static create(e,t,n=null){return D(t,(t=>new P(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=14}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=F.create(this.key,this.value,this)),this.negated}}class V{static create(e,t,n=null){return D(t,(t=>new V(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=15}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=B.create(this.key,this.value,this)),this.negated}}class z{static create(e,t){return new z(e,t)}constructor(e,t){this.key=e,this.regexp=t,this.type=7,this.negated=null}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.key<e.key)return-1;if(this.key>e.key)return 1;const t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return t<n?-1:t>n?1:0}equals(e){if(e.type===this.type){const t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return this.key===e.key&&t===n}return!1}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.key);return!!this.regexp&&this.regexp.test(t)}serialize(){const e=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=j.create(this)),this.negated}}class j{static create(e){return new j(e)}constructor(e){this._actual=e,this.type=8}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type&&this._actual.equals(e._actual)}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){return`!(${this._actual.serialize()})`}keys(){return this._actual.keys()}negate(){return this._actual}}function q(e){let t=null;for(let n=0,r=e.length;n<r;n++){const r=e[n].substituteConstants();if(e[n]!==r&&null===t){t=[];for(let r=0;r<n;r++)t[r]=e[r]}null!==t&&(t[n]=r)}return null===t?e:t}class W{static create(e,t,n){return W._normalizeArr(e,t,n)}constructor(e,t){this.expr=e,this.negated=t,this.type=6}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,n=this.expr.length;t<n;t++){const n=x(this.expr[t],e.expr[t]);if(0!==n)return n}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){const e=q(this.expr);return e===this.expr?this:W.create(e,this.negated,!1)}evaluate(e){for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].evaluate(e))return!1;return!0}static _normalizeArr(e,t,n){const r=[];let i=!1;for(const s of e)if(s)if(1!==s.type){if(0===s.type)return E.INSTANCE;6!==s.type?r.push(s):r.push(...s.expr)}else i=!0;if(0===r.length&&i)return N.INSTANCE;if(0!==r.length){if(1===r.length)return r[0];r.sort(x);for(let e=1;e<r.length;e++)r[e-1].equals(r[e])&&(r.splice(e,1),e--);if(1===r.length)return r[0];for(;r.length>1;){const e=r[r.length-1];if(9!==e.type)break;r.pop();const t=r.pop(),i=0===r.length,s=U.create(e.expr.map((e=>W.create([e,t],null,n))),null,i);s&&(r.push(s),r.sort(x))}if(1===r.length)return r[0];if(n){for(let e=0;e<r.length;e++)for(let t=e+1;t<r.length;t++)if(r[e].negate().equals(r[t]))return E.INSTANCE;if(1===r.length)return r[0]}return new W(r,t)}}serialize(){return this.expr.map((e=>e.serialize())).join(" && ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());this.negated=U.create(e,this,!0)}return this.negated}}class U{static create(e,t,n){return U._normalizeArr(e,t,n)}constructor(e,t){this.expr=e,this.negated=t,this.type=9}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,n=this.expr.length;t<n;t++){const n=x(this.expr[t],e.expr[t]);if(0!==n)return n}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){const e=q(this.expr);return e===this.expr?this:U.create(e,this.negated,!1)}evaluate(e){for(let t=0,n=this.expr.length;t<n;t++)if(this.expr[t].evaluate(e))return!0;return!1}static _normalizeArr(e,t,n){let r=[],i=!1;if(e){for(let t=0,n=e.length;t<n;t++){const n=e[t];if(n)if(0!==n.type){if(1===n.type)return N.INSTANCE;9!==n.type?r.push(n):r=r.concat(n.expr)}else i=!0}if(0===r.length&&i)return E.INSTANCE;r.sort(x)}if(0!==r.length){if(1===r.length)return r[0];for(let e=1;e<r.length;e++)r[e-1].equals(r[e])&&(r.splice(e,1),e--);if(1===r.length)return r[0];if(n){for(let e=0;e<r.length;e++)for(let t=e+1;t<r.length;t++)if(r[e].negate().equals(r[t]))return N.INSTANCE;if(1===r.length)return r[0]}return new U(r,t)}}serialize(){return this.expr.map((e=>e.serialize())).join(" || ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());for(;e.length>1;){const t=e.shift(),n=e.shift(),r=[];for(const e of G(t))for(const t of G(n))r.push(W.create([e,t],null,!1));e.unshift(U.create(r,null,!1))}this.negated=U.create(e,this,!0)}return this.negated}}class $ extends T{static{this._info=[]}static all(){return $._info.values()}constructor(e,t,n){super(e,null),this._defaultValue=t,"object"===typeof n?$._info.push({...n,key:e}):!0!==n&&$._info.push({key:e,description:n,type:null!==t&&void 0!==t?typeof t:void 0})}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return A.create(this.key,e)}}(0,d.u1)("contextKeyService");function H(e,t){return e<t?-1:e>t?1:0}function K(e,t,n,r){return e<n?-1:e>n?1:t<r?-1:t>r?1:0}function G(e){return 9===e.type?e.expr:[e]}const Q=(0,d.u1)("logService");var J;!function(e){e[e.Off=0]="Off",e[e.Trace=1]="Trace",e[e.Debug=2]="Debug",e[e.Info=3]="Info",e[e.Warning=4]="Warning",e[e.Error=5]="Error"}(J||(J={}));J.Info;r.jG;new $("logLevel",function(e){switch(e){case J.Trace:return"trace";case J.Debug:return"debug";case J.Info:return"info";case J.Warning:return"warn";case J.Error:return"error";case J.Off:return"off"}}(J.Info))},3591:(e,t,n)=>{"use strict";var r;n.d(t,{_Y:()=>i,u1:()=>s}),function(e){e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=function(t){return t[e.DI_DEPENDENCIES]||[]}}(r||(r={}));const i=s("instantiationService");function s(e){if(r.serviceIds.has(e))return r.serviceIds.get(e);const t=function(e,n,i){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");!function(e,t,n){t[r.DI_TARGET]===t?t[r.DI_DEPENDENCIES].push({id:e,index:n}):(t[r.DI_DEPENDENCIES]=[{id:e,index:n}],t[r.DI_TARGET]=t)}(t,e,i)};return t.toString=()=>e,r.serviceIds.set(e,t),t}},3750:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IModelService:()=>r});const r=(0,n(3591).u1)("modelService")},3941:(e,t,n)=>{"use strict";n.d(t,{W6:()=>l,vH:()=>c});var r=n(8209),i=n(1234),s=n(6359),o=n(1939),a=n(1646);const l=new class{constructor(){this._onDidChangeLanguages=new i.vl,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[]}registerLanguage(e){return this._languages.push(e),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let t=0,n=this._languages.length;t<n;t++)if(this._languages[t]===e)return void this._languages.splice(t,1)}}}getLanguages(){return this._languages}};s.O.add("editor.modesRegistry",l);const c="plaintext";l.registerLanguage({id:c,extensions:[".txt"],aliases:[r.kg("plainText.alias","Plain Text"),"text"],mimetypes:[o.K.text]}),s.O.as(a.Fd.Configuration).registerDefaultConfigurations([{overrides:{"[plaintext]":{"editor.unicodeHighlight.ambiguousCharacters":!1,"editor.unicodeHighlight.invisibleCharacters":!1}}}])},4001:(e,t,n)=>{"use strict";n.d(t,{Mo:()=>i,pG:()=>r});const r=(0,n(3591).u1)("configurationService");function i(e){return e.replace(/[\[\]]/g,"")}},4243:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ISemanticTokensStylingService:()=>r});const r=(0,n(3591).u1)("semanticTokensStylingService")},4272:(e,t,n)=>{"use strict";n.r(t),n.d(t,{KeyMod:()=>fe,createMonacoBaseAPI:()=>me});var r=n(8447),i=n(1234);class s{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}}const o=new s,a=new s,l=new s,c=new Array(230),h={},u=[],d=Object.create(null),g=Object.create(null),f=[],m=[];for(let pe=0;pe<=193;pe++)f[pe]=-1;for(let pe=0;pe<=132;pe++)m[pe]=-1;var p;!function(){const e="",t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[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,e,0,e,e,e],[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",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],n=[],r=[];for(const i of t){const[e,t,s,p,b,_,k,v,C]=i;if(r[t]||(r[t]=!0,u[t]=s,d[s]=t,g[s.toLowerCase()]=t,e&&(f[t]=p,0!==p&&3!==p&&5!==p&&4!==p&&6!==p&&57!==p&&(m[p]=t))),!n[p]){if(n[p]=!0,!b)throw new Error(`String representation missing for key code ${p} around scan code ${s}`);o.define(p,b),a.define(p,v||b),l.define(p,C||v||b)}_&&(c[_]=p),k&&(h[k]=p)}m[3]=46}(),function(e){e.toString=function(e){return o.keyCodeToStr(e)},e.fromString=function(e){return o.strToKeyCode(e)},e.toUserSettingsUS=function(e){return a.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return l.keyCodeToStr(e)},e.fromUserSettings=function(e){return a.strToKeyCode(e)||l.strToKeyCode(e)},e.toElectronAccelerator=function(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 o.keyCodeToStr(e)}}(p||(p={}));var b,_,k,v,C,y,L,w,S,x,E,N,T,A,I,O,M,R,D,B,F,P,V,z,j,q,W,U,$,H,K,G,Q,J,X,Y,Z,ee,te,ne,re,ie,se,oe,ae,le,ce=n(9400),he=n(3069),ue=n(6677),de=n(5326),ge=n(2083);!function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"}(b||(b={})),function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"}(_||(_={})),function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(k||(k={})),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.Snippet=27]="Snippet"}(v||(v={})),function(e){e[e.Deprecated=1]="Deprecated"}(C||(C={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(y||(y={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(L||(L={})),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"}(w||(w={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(S||(S={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(x||(x={})),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"}(E||(E={})),function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.ariaRequired=5]="ariaRequired",e[e.autoClosingBrackets=6]="autoClosingBrackets",e[e.autoClosingComments=7]="autoClosingComments",e[e.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=9]="autoClosingDelete",e[e.autoClosingOvertype=10]="autoClosingOvertype",e[e.autoClosingQuotes=11]="autoClosingQuotes",e[e.autoIndent=12]="autoIndent",e[e.automaticLayout=13]="automaticLayout",e[e.autoSurround=14]="autoSurround",e[e.bracketPairColorization=15]="bracketPairColorization",e[e.guides=16]="guides",e[e.codeLens=17]="codeLens",e[e.codeLensFontFamily=18]="codeLensFontFamily",e[e.codeLensFontSize=19]="codeLensFontSize",e[e.colorDecorators=20]="colorDecorators",e[e.colorDecoratorsLimit=21]="colorDecoratorsLimit",e[e.columnSelection=22]="columnSelection",e[e.comments=23]="comments",e[e.contextmenu=24]="contextmenu",e[e.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",e[e.cursorBlinking=26]="cursorBlinking",e[e.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",e[e.cursorStyle=28]="cursorStyle",e[e.cursorSurroundingLines=29]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",e[e.cursorWidth=31]="cursorWidth",e[e.disableLayerHinting=32]="disableLayerHinting",e[e.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",e[e.domReadOnly=34]="domReadOnly",e[e.dragAndDrop=35]="dragAndDrop",e[e.dropIntoEditor=36]="dropIntoEditor",e[e.emptySelectionClipboard=37]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",e[e.extraEditorClassName=39]="extraEditorClassName",e[e.fastScrollSensitivity=40]="fastScrollSensitivity",e[e.find=41]="find",e[e.fixedOverflowWidgets=42]="fixedOverflowWidgets",e[e.folding=43]="folding",e[e.foldingStrategy=44]="foldingStrategy",e[e.foldingHighlight=45]="foldingHighlight",e[e.foldingImportsByDefault=46]="foldingImportsByDefault",e[e.foldingMaximumRegions=47]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=49]="fontFamily",e[e.fontInfo=50]="fontInfo",e[e.fontLigatures=51]="fontLigatures",e[e.fontSize=52]="fontSize",e[e.fontWeight=53]="fontWeight",e[e.fontVariations=54]="fontVariations",e[e.formatOnPaste=55]="formatOnPaste",e[e.formatOnType=56]="formatOnType",e[e.glyphMargin=57]="glyphMargin",e[e.gotoLocation=58]="gotoLocation",e[e.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",e[e.hover=60]="hover",e[e.inDiffEditor=61]="inDiffEditor",e[e.inlineSuggest=62]="inlineSuggest",e[e.inlineEdit=63]="inlineEdit",e[e.letterSpacing=64]="letterSpacing",e[e.lightbulb=65]="lightbulb",e[e.lineDecorationsWidth=66]="lineDecorationsWidth",e[e.lineHeight=67]="lineHeight",e[e.lineNumbers=68]="lineNumbers",e[e.lineNumbersMinChars=69]="lineNumbersMinChars",e[e.linkedEditing=70]="linkedEditing",e[e.links=71]="links",e[e.matchBrackets=72]="matchBrackets",e[e.minimap=73]="minimap",e[e.mouseStyle=74]="mouseStyle",e[e.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=76]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",e[e.multiCursorModifier=78]="multiCursorModifier",e[e.multiCursorPaste=79]="multiCursorPaste",e[e.multiCursorLimit=80]="multiCursorLimit",e[e.occurrencesHighlight=81]="occurrencesHighlight",e[e.overviewRulerBorder=82]="overviewRulerBorder",e[e.overviewRulerLanes=83]="overviewRulerLanes",e[e.padding=84]="padding",e[e.pasteAs=85]="pasteAs",e[e.parameterHints=86]="parameterHints",e[e.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",e[e.placeholder=88]="placeholder",e[e.definitionLinkOpensInPeek=89]="definitionLinkOpensInPeek",e[e.quickSuggestions=90]="quickSuggestions",e[e.quickSuggestionsDelay=91]="quickSuggestionsDelay",e[e.readOnly=92]="readOnly",e[e.readOnlyMessage=93]="readOnlyMessage",e[e.renameOnType=94]="renameOnType",e[e.renderControlCharacters=95]="renderControlCharacters",e[e.renderFinalNewline=96]="renderFinalNewline",e[e.renderLineHighlight=97]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=98]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=99]="renderValidationDecorations",e[e.renderWhitespace=100]="renderWhitespace",e[e.revealHorizontalRightPadding=101]="revealHorizontalRightPadding",e[e.roundedSelection=102]="roundedSelection",e[e.rulers=103]="rulers",e[e.scrollbar=104]="scrollbar",e[e.scrollBeyondLastColumn=105]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=106]="scrollBeyondLastLine",e[e.scrollPredominantAxis=107]="scrollPredominantAxis",e[e.selectionClipboard=108]="selectionClipboard",e[e.selectionHighlight=109]="selectionHighlight",e[e.selectOnLineNumbers=110]="selectOnLineNumbers",e[e.showFoldingControls=111]="showFoldingControls",e[e.showUnused=112]="showUnused",e[e.snippetSuggestions=113]="snippetSuggestions",e[e.smartSelect=114]="smartSelect",e[e.smoothScrolling=115]="smoothScrolling",e[e.stickyScroll=116]="stickyScroll",e[e.stickyTabStops=117]="stickyTabStops",e[e.stopRenderingLineAfter=118]="stopRenderingLineAfter",e[e.suggest=119]="suggest",e[e.suggestFontSize=120]="suggestFontSize",e[e.suggestLineHeight=121]="suggestLineHeight",e[e.suggestOnTriggerCharacters=122]="suggestOnTriggerCharacters",e[e.suggestSelection=123]="suggestSelection",e[e.tabCompletion=124]="tabCompletion",e[e.tabIndex=125]="tabIndex",e[e.unicodeHighlighting=126]="unicodeHighlighting",e[e.unusualLineTerminators=127]="unusualLineTerminators",e[e.useShadowDOM=128]="useShadowDOM",e[e.useTabStops=129]="useTabStops",e[e.wordBreak=130]="wordBreak",e[e.wordSegmenterLocales=131]="wordSegmenterLocales",e[e.wordSeparators=132]="wordSeparators",e[e.wordWrap=133]="wordWrap",e[e.wordWrapBreakAfterCharacters=134]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=135]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=136]="wordWrapColumn",e[e.wordWrapOverride1=137]="wordWrapOverride1",e[e.wordWrapOverride2=138]="wordWrapOverride2",e[e.wrappingIndent=139]="wrappingIndent",e[e.wrappingStrategy=140]="wrappingStrategy",e[e.showDeprecated=141]="showDeprecated",e[e.inlayHints=142]="inlayHints",e[e.editorClassName=143]="editorClassName",e[e.pixelRatio=144]="pixelRatio",e[e.tabFocusMode=145]="tabFocusMode",e[e.layoutInfo=146]="layoutInfo",e[e.wrappingInfo=147]="wrappingInfo",e[e.defaultColorDecorators=148]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=149]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=150]="inlineCompletionsAccessibilityVerbose"}(N||(N={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(T||(T={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}(A||(A={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(I||(I={})),function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(O||(O={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(M||(M={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(R||(R={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(D||(D={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(B||(B={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(F||(F={})),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"}(P||(P={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(V||(V={})),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(z||(z={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(j||(j={})),function(e){e[e.Normal=1]="Normal",e[e.Underlined=2]="Underlined"}(q||(q={})),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"}(W||(W={})),function(e){e[e.AIGenerated=1]="AIGenerated"}(U||(U={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}($||($={})),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"}(H||(H={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(K||(K={})),function(e){e[e.Word=0]="Word",e[e.Line=1]="Line",e[e.Suggest=2]="Suggest"}(G||(G={})),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"}(Q||(Q={})),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"}(J||(J={})),function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"}(X||(X={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"}(Y||(Y={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(Z||(Z={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(ee||(ee={})),function(e){e.Off="off",e.OnCode="onCode",e.On="on"}(te||(te={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(ne||(ne={})),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"}(re||(re={})),function(e){e[e.Deprecated=1]="Deprecated"}(ie||(ie={})),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"}(se||(se={})),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"}(oe||(oe={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(ae||(ae={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(le||(le={}));class fe{static{this.CtrlCmd=2048}static{this.Shift=1024}static{this.Alt=512}static{this.WinCtrl=256}static chord(e,t){return function(e,t){return(e|(65535&t)<<16>>>0)>>>0}(e,t)}}function me(){return{editor:void 0,languages:void 0,CancellationTokenSource:r.Qi,Emitter:i.vl,KeyCode:P,KeyMod:fe,Position:he.y,Range:ue.Q,Selection:de.L,SelectionDirection:ee,MarkerSeverity:V,MarkerTag:z,Uri:ce.r,Token:ge.ou}}},4320:(e,t,n)=>{"use strict";var r,i;n.d(t,{cO:()=>h,db:()=>u,fT:()=>o,qK:()=>c});class s{constructor(e,t){this.uri=e,this.value=t}}class o{static{this.defaultToKey=e=>e.toString()}constructor(e,t){if(this[r]="ResourceMap",e instanceof o)this.map=new Map(e.map),this.toKey=t??o.defaultToKey;else if(function(e){return Array.isArray(e)}(e)){this.map=new Map,this.toKey=t??o.defaultToKey;for(const[t,n]of e)this.set(t,n)}else this.map=new Map,this.toKey=e??o.defaultToKey}set(e,t){return this.map.set(this.toKey(e),new s(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){"undefined"!==typeof t&&(e=e.bind(t));for(const[n,r]of this.map)e(r.value,r.uri,this)}*values(){for(const e of this.map.values())yield e.value}*keys(){for(const e of this.map.values())yield e.uri}*entries(){for(const e of this.map.values())yield[e.uri,e.value]}*[(r=Symbol.toStringTag,Symbol.iterator)](){for(const[,e]of this.map)yield[e.uri,e.value]}}class a{constructor(){this[i]="LinkedMap",this._map=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){const n=this._map.get(e);if(n)return 0!==t&&this.touch(n,t),n.value}set(e,t,n=0){let r=this._map.get(e);if(r)r.value=t,0!==n&&this.touch(r,n);else{switch(r={key:e,value:t,next:void 0,previous:void 0},n){case 0:case 2:default:this.addItemLast(r);break;case 1:this.addItemFirst(r)}this._map.set(e,r),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const 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 new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const n=this._state;let 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 new Error("LinkedMap got modified during iteration.");r=r.next}}keys(){const e=this,t=this._state;let n=this._head;const r={[Symbol.iterator]:()=>r,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.key,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return r}values(){const e=this,t=this._state;let n=this._head;const r={[Symbol.iterator]:()=>r,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.value,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return r}entries(){const e=this,t=this._state;let n=this._head;const r={[Symbol.iterator]:()=>r,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:[n.key,n.value],done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return r}[(i=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();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(0===e)return void this.clear();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){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;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 new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,n=e.previous;if(!t||!n)throw new 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 new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;const 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(2===t){if(e===this._tail)return;const 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(){const e=[];return this.forEach(((t,n)=>{e.push([n,t])})),e}fromJSON(e){this.clear();for(const[t,n]of e)this.set(t,n)}}class l extends a{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))}}class c extends l{constructor(e,t=1){super(e,t)}trim(e){this.trimOld(e)}set(e,t){return super.set(e,t),this.checkTrim(),this}}class h{constructor(e){if(this._m1=new Map,this._m2=new Map,e)for(const[t,n]of e)this.set(t,n)}clear(){this._m1.clear(),this._m2.clear()}set(e,t){this._m1.set(e,t),this._m2.set(t,e)}get(e){return this._m1.get(e)}getKey(e){return this._m2.get(e)}delete(e){const t=this._m1.get(e);return void 0!==t&&(this._m1.delete(e),this._m2.delete(t),!0)}keys(){return this._m1.keys()}values(){return this._m1.values()}}class u{constructor(){this.map=new Map}add(e,t){let n=this.map.get(e);n||(n=new Set,this.map.set(e,n)),n.add(t)}delete(e,t){const n=this.map.get(e);n&&(n.delete(t),0===n.size&&this.map.delete(e))}forEach(e,t){const n=this.map.get(e);n&&n.forEach(t)}get(e){const t=this.map.get(e);return t||new Set}}},4383:(e,t,n)=>{"use strict";n.d(t,{D7:()=>g,EM:()=>u,Qg:()=>c,cU:()=>s,dz:()=>i,iH:()=>h});const r=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((()=>{if(e.stack){if(d.isErrorNoTelemetry(e))throw new d(e.message+"\n\n"+e.stack);throw new Error(e.message+"\n\n"+e.stack)}throw e}),0)}}emit(e){this.listeners.forEach((t=>{t(e)}))}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function i(e){a(e)||r.onUnexpectedError(e)}function s(e){if(e instanceof Error){const{name:t,message:n}=e;return{$isError:!0,name:t,message:n,stack:e.stacktrace||e.stack,noTelemetry:d.isErrorNoTelemetry(e)}}return e}const o="Canceled";function a(e){return e instanceof l||e instanceof Error&&e.name===o&&e.message===o}class l extends Error{constructor(){super(o),this.name=this.message}}function c(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")}function h(e){return e?new Error(`Illegal state: ${e}`):new Error("Illegal state")}class u extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class d extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof d)return e;const t=new d;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return"CodeExpectedError"===e.name}}class g extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,g.prototype)}}},4432:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITreeSitterParserService:()=>r});const r=(0,n(3591).u1)("treeSitterParserService")},4444:(e,t,n)=>{"use strict";n.d(t,{L:()=>i});var r=n(4383);class i{static addRange(e,t){let n=0;for(;n<t.length&&t[n].endExclusive<e.start;)n++;let r=n;for(;r<t.length&&t[r].start<=e.endExclusive;)r++;if(n===r)t.splice(n,0,e);else{const s=Math.min(e.start,t[n].start),o=Math.max(e.endExclusive,t[r-1].endExclusive);t.splice(n,r-n,new i(s,o))}}static tryCreate(e,t){if(!(e>t))return new i(e,t)}static ofLength(e){return new i(0,e)}static ofStartAndLength(e,t){return new i(e,e+t)}constructor(e,t){if(this.start=e,this.endExclusive=t,e>t)throw new r.D7(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new i(this.start+e,this.endExclusive+e)}deltaStart(e){return new i(this.start+e,this.endExclusive)}deltaEnd(e){return new i(this.start,this.endExclusive+e)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}contains(e){return this.start<=e&&e<this.endExclusive}join(e){return new i(Math.min(this.start,e.start),Math.max(this.endExclusive,e.endExclusive))}intersect(e){const t=Math.max(this.start,e.start),n=Math.min(this.endExclusive,e.endExclusive);if(t<=n)return new i(t,n)}intersects(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 r.D7(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,e))}clipCyclic(e){if(this.isEmpty)throw new r.D7(`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)}}},4454:(e,t,n)=>{"use strict";function r(e){let t=0,n=0,r=0,i=0;for(let s=0,o=e.length;s<o;s++){const a=e.charCodeAt(s);13===a?(0===t&&(n=s),t++,s+1<o&&10===e.charCodeAt(s+1)?(i|=2,s++):i|=3,r=s+1):10===a&&(i|=1,0===t&&(n=s),t++,r=s+1)}return 0===t&&(n=e.length),[t,n,e.length-r,i]}n.d(t,{W:()=>r})},4621:(e,t,n)=>{"use strict";n.d(t,{v:()=>s});class r{constructor(e,t=[],n=!1){this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=n}}const i=[];function s(e,t,n){t instanceof r||(t=new r(t,[],Boolean(n))),i.push([e,t])}},4855:(e,t,n)=>{"use strict";n.r(t),n.d(t,{UnicodeTextModelHighlighter:()=>l});var r=n(6677),i=n(7729),s=n(1508),o=n(6782),a=n(6486);class l{static computeUnicodeHighlights(e,t,n){const l=n?n.startLineNumber:1,h=n?n.endLineNumber:e.getLineCount(),u=new c(t),d=u.getCandidateCodePoints();let g;var f;g="allNonBasicAscii"===d?new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):new RegExp(""+(f=Array.from(d),`[${s.bm(f.map((e=>String.fromCodePoint(e))).join(""))}]`),"g");const m=new i.W5(null,g),p=[];let b,_=!1,k=0,v=0,C=0;e:for(let i=l,c=h;i<=c;i++){const t=e.getLineContent(i),n=t.length;m.reset(0);do{if(b=m.next(t),b){let e=b.index,l=b.index+b[0].length;if(e>0){const n=t.charCodeAt(e-1);s.pc(n)&&e--}if(l+1<n){const e=t.charCodeAt(l-1);s.pc(e)&&l++}const c=t.substring(e,l);let h=(0,a.Th)(e+1,a.Ld,t,0);h&&h.endColumn<=e+1&&(h=null);const d=u.shouldHighlightNonBasicASCII(c,h?h.word:null);if(0!==d){3===d?k++:2===d?v++:1===d?C++:(0,o.xb)(d);const t=1e3;if(p.length>=t){_=!0;break e}p.push(new r.Q(i,e+1,i,l+1))}}}while(b)}return{ranges:p,hasMore:_,ambiguousCharacterCount:k,invisibleCharacterCount:v,nonBasicAsciiCharacterCount:C}}static computeUnicodeHighlightReason(e,t){const n=new c(t);switch(n.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const r=e.codePointAt(0),i=n.ambiguousCharacters.getPrimaryConfusable(r),o=s.tl.getLocales().filter((e=>!s.tl.getInstance(new Set([...t.allowedLocales,e])).isAmbiguous(r)));return{kind:0,confusableWith:String.fromCodePoint(i),notAmbiguousInLocales:o}}case 1:return{kind:2}}}}class c{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=s.tl.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const t of s.y_.codePoints)h(String.fromCodePoint(t))||e.add(t);if(this.options.ambiguousCharacters)for(const t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(const t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e,t){const 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(const o of t){const e=o.codePointAt(0),t=s.aC(o);r=r||t,t||this.ambiguousCharacters.isAmbiguous(e)||s.y_.isInvisibleCharacter(e)||(i=!0)}return!r&&i?0:this.options.invisibleCharacters&&!h(e)&&s.y_.isInvisibleCharacter(n)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(n)?3:0}}function h(e){return" "===e||"\n"===e||"\t"===e}},5152:(e,t,n)=>{"use strict";function r(e){return e<0?0:e>255?255:0|e}function i(e){return e<0?0:e>4294967295?4294967295:0|e}n.d(t,{W:()=>r,j:()=>i})},5196:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BaseEditorSimpleWorker:()=>Pe,EditorSimpleWorker:()=>Ve,create:()=>ze});class r{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}}var i=n(5600);class s{constructor(e){this.source=e}getElements(){const 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 o(e,t,n){return new h(new s(e),new s(t)).ComputeDiff(n).changes}class a{static Assert(e,t){if(!e)throw new Error(t)}}class l{static Copy(e,t,n,r,i){for(let s=0;s<i;s++)n[r+s]=e[t+s]}static Copy2(e,t,n,r,i){for(let s=0;s<i;s++)n[r+s]=e[t+s]}}class c{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 r(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}}class h{constructor(e,t,n=null){this.ContinueProcessingPredicate=n,this._originalSequence=e,this._modifiedSequence=t;const[r,i,s]=h._getElements(e),[o,a,l]=h._getElements(t);this._hasStrings=s&&l,this._originalStringElements=r,this._originalElementsOrHash=i,this._modifiedStringElements=o,this._modifiedElementsOrHash=a,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"===typeof e[0]}static _getElements(e){const t=e.getElements();if(h._isStringArray(t)){const e=new Int32Array(t.length);for(let n=0,r=t.length;n<r;n++)e[n]=(0,i.e2)(t[n],0);return[t,e,!0]}return t instanceof Int32Array?[[],t,!1]:[[],new Int32Array(t),!1]}ElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._modifiedStringElements[t])}ElementsAreStrictEqual(e,t){if(!this.ElementsAreEqual(e,t))return!1;return h._getStrictElement(this._originalSequence,e)===h._getStrictElement(this._modifiedSequence,t)}static _getStrictElement(e,t){return"function"===typeof e.getStrictElement?e.getStrictElement(t):null}OriginalElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._originalElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._originalStringElements[t])}ModifiedElementsAreEqual(e,t){return this._modifiedElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._modifiedStringElements[e]===this._modifiedStringElements[t])}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,t,n,r,i){const s=[!1];let o=this.ComputeDiffRecursive(e,t,n,r,s);return i&&(o=this.PrettifyChanges(o)),{quitEarly:s[0],changes:o}}ComputeDiffRecursive(e,t,n,i,s){for(s[0]=!1;e<=t&&n<=i&&this.ElementsAreEqual(e,n);)e++,n++;for(;t>=e&&i>=n&&this.ElementsAreEqual(t,i);)t--,i--;if(e>t||n>i){let s;return n<=i?(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),s=[new r(e,0,n,i-n+1)]):e<=t?(a.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),s=[new r(e,t-e+1,n,0)]):(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),a.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),s=[]),s}const o=[0],l=[0],c=this.ComputeRecursionPoint(e,t,n,i,o,l,s),h=o[0],u=l[0];if(null!==c)return c;if(!s[0]){const o=this.ComputeDiffRecursive(e,h,n,u,s);let a=[];return a=s[0]?[new r(h+1,t-(h+1)+1,u+1,i-(u+1)+1)]:this.ComputeDiffRecursive(h+1,t,u+1,i,s),this.ConcatenateChanges(o,a)}return[new r(e,t-e+1,n,i-n+1)]}WALKTRACE(e,t,n,i,s,o,a,l,h,u,d,g,f,m,p,b,_,k){let v=null,C=null,y=new c,L=t,w=n,S=f[0]-b[0]-i,x=-1073741824,E=this.m_forwardHistory.length-1;do{const t=S+e;t===L||t<w&&h[t-1]<h[t+1]?(m=(d=h[t+1])-S-i,d<x&&y.MarkNextChange(),x=d,y.AddModifiedElement(d+1,m),S=t+1-e):(m=(d=h[t-1]+1)-S-i,d<x&&y.MarkNextChange(),x=d-1,y.AddOriginalElement(d,m+1),S=t-1-e),E>=0&&(e=(h=this.m_forwardHistory[E])[0],L=1,w=h.length-1)}while(--E>=-1);if(v=y.getReverseChanges(),k[0]){let e=f[0]+1,t=b[0]+1;if(null!==v&&v.length>0){const n=v[v.length-1];e=Math.max(e,n.getOriginalEnd()),t=Math.max(t,n.getModifiedEnd())}C=[new r(e,g-e+1,t,p-t+1)]}else{y=new c,L=o,w=a,S=f[0]-b[0]-l,x=1073741824,E=_?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=S+s;e===L||e<w&&u[e-1]>=u[e+1]?(m=(d=u[e+1]-1)-S-l,d>x&&y.MarkNextChange(),x=d+1,y.AddOriginalElement(d+1,m+1),S=e+1-s):(m=(d=u[e-1])-S-l,d>x&&y.MarkNextChange(),x=d,y.AddModifiedElement(d+1,m+1),S=e-1-s),E>=0&&(s=(u=this.m_reverseHistory[E])[0],L=1,w=u.length-1)}while(--E>=-1);C=y.getChanges()}return this.ConcatenateChanges(v,C)}ComputeRecursionPoint(e,t,n,i,s,o,a){let c=0,h=0,u=0,d=0,g=0,f=0;e--,n--,s[0]=0,o[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const m=t-e+(i-n),p=m+1,b=new Int32Array(p),_=new Int32Array(p),k=i-n,v=t-e,C=e-n,y=t-i,L=(v-k)%2===0;b[k]=e,_[v]=t,a[0]=!1;for(let w=1;w<=m/2+1;w++){let m=0,S=0;u=this.ClipDiagonalBound(k-w,w,k,p),d=this.ClipDiagonalBound(k+w,w,k,p);for(let e=u;e<=d;e+=2){c=e===u||e<d&&b[e-1]<b[e+1]?b[e+1]:b[e-1]+1,h=c-(e-k)-C;const n=c;for(;c<t&&h<i&&this.ElementsAreEqual(c+1,h+1);)c++,h++;if(b[e]=c,c+h>m+S&&(m=c,S=h),!L&&Math.abs(e-v)<=w-1&&c>=_[e])return s[0]=c,o[0]=h,n<=_[e]&&w<=1448?this.WALKTRACE(k,u,d,C,v,g,f,y,b,_,c,t,s,h,i,o,L,a):null}const x=(m-e+(S-n)-w)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(m,x))return a[0]=!0,s[0]=m,o[0]=S,x>0&&w<=1448?this.WALKTRACE(k,u,d,C,v,g,f,y,b,_,c,t,s,h,i,o,L,a):(e++,n++,[new r(e,t-e+1,n,i-n+1)]);g=this.ClipDiagonalBound(v-w,w,v,p),f=this.ClipDiagonalBound(v+w,w,v,p);for(let r=g;r<=f;r+=2){c=r===g||r<f&&_[r-1]>=_[r+1]?_[r+1]-1:_[r-1],h=c-(r-v)-y;const l=c;for(;c>e&&h>n&&this.ElementsAreEqual(c,h);)c--,h--;if(_[r]=c,L&&Math.abs(r-k)<=w&&c<=b[r])return s[0]=c,o[0]=h,l>=b[r]&&w<=1448?this.WALKTRACE(k,u,d,C,v,g,f,y,b,_,c,t,s,h,i,o,L,a):null}if(w<=1447){let e=new Int32Array(d-u+2);e[0]=k-u+1,l.Copy2(b,u,e,1,d-u+1),this.m_forwardHistory.push(e),e=new Int32Array(f-g+2),e[0]=v-g+1,l.Copy2(_,g,e,1,f-g+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(k,u,d,C,v,g,f,y,b,_,c,t,s,h,i,o,L,a)}PrettifyChanges(e){for(let t=0;t<e.length;t++){const 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,s=n.originalLength>0,o=n.modifiedLength>0;for(;n.originalStart+n.originalLength<r&&n.modifiedStart+n.modifiedLength<i&&(!s||this.OriginalElementsAreEqual(n.originalStart,n.originalStart+n.originalLength))&&(!o||this.ModifiedElementsAreEqual(n.modifiedStart,n.modifiedStart+n.modifiedLength));){const e=this.ElementsAreStrictEqual(n.originalStart,n.modifiedStart);if(this.ElementsAreStrictEqual(n.originalStart+n.originalLength,n.modifiedStart+n.modifiedLength)&&!e)break;n.originalStart++,n.modifiedStart++}const a=[null];t<e.length-1&&this.ChangesOverlap(e[t],e[t+1],a)&&(e[t]=a[0],e.splice(t+1,1),t--)}for(let t=e.length-1;t>=0;t--){const n=e[t];let r=0,i=0;if(t>0){const n=e[t-1];r=n.originalStart+n.originalLength,i=n.modifiedStart+n.modifiedLength}const s=n.originalLength>0,o=n.modifiedLength>0;let a=0,l=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let e=1;;e++){const t=n.originalStart-e,c=n.modifiedStart-e;if(t<r||c<i)break;if(s&&!this.OriginalElementsAreEqual(t,t+n.originalLength))break;if(o&&!this.ModifiedElementsAreEqual(c,c+n.modifiedLength))break;const h=(t===r&&c===i?5:0)+this._boundaryScore(t,n.originalLength,c,n.modifiedLength);h>l&&(l=h,a=e)}n.originalStart-=a,n.modifiedStart-=a;const c=[null];t>0&&this.ChangesOverlap(e[t-1],e[t],c)&&(e[t-1]=c[0],e.splice(t,1),t++)}if(this._hasStrings)for(let t=1,n=e.length;t<n;t++){const n=e[t-1],r=e[t],i=r.originalStart-n.originalStart-n.originalLength,s=n.originalStart,o=r.originalStart+r.originalLength,a=o-s,l=n.modifiedStart,c=r.modifiedStart+r.modifiedLength,h=c-l;if(i<5&&a<20&&h<20){const e=this._findBetterContiguousSequence(s,a,l,h,i);if(e){const[t,s]=e;t===n.originalStart+n.originalLength&&s===n.modifiedStart+n.modifiedLength||(n.originalLength=t-n.originalStart,n.modifiedLength=s-n.modifiedStart,r.originalStart=t+i,r.modifiedStart=s+i,r.originalLength=o-r.originalStart,r.modifiedLength=c-r.modifiedStart)}}}return e}_findBetterContiguousSequence(e,t,n,r,i){if(t<i||r<i)return null;const s=e+t-i+1,o=n+r-i+1;let a=0,l=0,c=0;for(let h=e;h<s;h++)for(let e=n;e<o;e++){const t=this._contiguousSequenceScore(h,e,i);t>0&&t>a&&(a=t,l=h,c=e)}return a>0?[l,c]: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){const 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){const 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)?1:0)+(this._ModifiedRegionIsBoundary(n,r)?1:0)}ConcatenateChanges(e,t){const n=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){const r=new Array(e.length+t.length-1);return l.Copy(e,0,r,0,e.length-1),r[e.length-1]=n[0],l.Copy(t,1,r,e.length,t.length-1),r}{const n=new Array(e.length+t.length);return l.Copy(e,0,n,0,e.length),l.Copy(t,0,n,e.length,t.length),n}}ChangesOverlap(e,t,n){if(a.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),a.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){const i=e.originalStart;let s=e.originalLength;const o=e.modifiedStart;let a=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(s=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(a=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new r(i,s,o,a),!0}return n[0]=null,!1}ClipDiagonalBound(e,t,n,r){if(e>=0&&e<r)return e;const i=t%2===0;if(e<0){return i===(n%2===0)?0:1}return i===((r-n-1)%2===0)?r-1:r-2}}var u=n(6677),d=n(534);class g{constructor(e,t,n){const r=new Uint8Array(e*t);for(let i=0,s=e*t;i<s;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}}class f{constructor(e){let t=0,n=0;for(let i=0,s=e.length;i<s;i++){const[r,s,o]=e[i];s>t&&(t=s),r>n&&(n=r),o>n&&(n=o)}t++,n++;const r=new g(n,t,0);for(let i=0,s=e.length;i<s;i++){const[t,n,s]=e[i];r.set(t,n,s)}this._states=r,this._maxCharCode=t}nextState(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)}}let m=null;let p=null;class b{static _createLink(e,t,n,r,i){let s=i-1;do{const n=t.charCodeAt(s);if(2!==e.get(n))break;s--}while(s>r);if(r>0){const e=t.charCodeAt(r-1),n=t.charCodeAt(s);(40===e&&41===n||91===e&&93===n||123===e&&125===n)&&s--}return{range:{startLineNumber:n,startColumn:r+1,endLineNumber:n,endColumn:s+2},url:t.substring(r,s+1)}}static computeLinks(e,t=function(){return null===m&&(m=new f([[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]])),m}()){const n=function(){if(null===p){p=new d.V(0);const e=" \t<>'\"\u3001\u3002\uff61\uff64\uff0c\uff0e\uff1a\uff1b\u2018\u3008\u300c\u300e\u3014\uff08\uff3b\uff5b\uff62\uff63\uff5d\uff3d\uff09\u3015\u300f\u300d\u3009\u2019\uff40\uff5e\u2026";for(let n=0;n<e.length;n++)p.set(e.charCodeAt(n),1);const t=".,;:";for(let n=0;n<t.length;n++)p.set(t.charCodeAt(n),2)}return p}(),r=[];for(let i=1,s=e.getLineCount();i<=s;i++){const s=e.getLineContent(i),o=s.length;let a=0,l=0,c=0,h=1,u=!1,d=!1,g=!1,f=!1;for(;a<o;){let e=!1;const o=s.charCodeAt(a);if(13===h){let t;switch(o){case 40:u=!0,t=0;break;case 41:t=u?0:1;break;case 91:g=!0,d=!0,t=0;break;case 93:g=!1,t=d?0:1;break;case 123:f=!0,t=0;break;case 125:t=f?0:1;break;case 39:case 34:case 96:t=c===o?1:39===c||34===c||96===c?0:1;break;case 42:t=42===c?1:0;break;case 124:t=124===c?1:0;break;case 32:t=g?0:1;break;default:t=n.get(o)}1===t&&(r.push(b._createLink(n,s,i,l,a)),e=!0)}else if(12===h){let t;91===o?(d=!0,t=0):t=n.get(o),1===t?e=!0:h=13}else h=t.nextState(h,o),0===h&&(e=!0);e&&(h=1,u=!1,d=!1,f=!1,l=a+1,c=o),a++}13===h&&r.push(b._createLink(n,s,i,l,o))}return r}}class _{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}static{this.INSTANCE=new _}navigateValueSet(e,t,n,r,i){if(e&&t){const n=this.doNavigateValueSet(t,i);if(n)return{range:e,value:n}}if(n&&r){const e=this.doNavigateValueSet(r,i);if(e)return{range:n,value:e}}return null}doNavigateValueSet(e,t){const n=this.numberReplace(e,t);return null!==n?n:this.textReplace(e,t)}numberReplace(e,t){const n=Math.pow(10,e.length-(e.lastIndexOf(".")+1));let r=Number(e);const i=parseFloat(e);return isNaN(r)||isNaN(i)||r!==i?null:0!==r||t?(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,s=e.length;null===r&&i<s;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}}var k=n(4272),v=n(718),C=n(8381),y=n(4855);class L{constructor(e,t,n){this.changes=e,this.moves=t,this.hitTimeout=n}}class w{constructor(e,t){this.lineRangeMapping=e,this.changes=t}}var S=n(4383),x=n(6571),E=n(3069),N=n(6782),T=n(4444);n(973);class A{constructor(e,t){this.range=e,this.text=t}toSingleEditOperation(){return{range:this.range,text:this.text}}}class I{static inverse(e,t,n){const r=[];let i=1,s=1;for(const a of e){const e=new I(new x.M(i,a.original.startLineNumber),new x.M(s,a.modified.startLineNumber));e.modified.isEmpty||r.push(e),i=a.original.endLineNumberExclusive,s=a.modified.endLineNumberExclusive}const o=new I(new x.M(i,t+1),new x.M(s,n+1));return o.modified.isEmpty||r.push(o),r}static clip(e,t,n){const r=[];for(const i of e){const e=i.original.intersect(t),s=i.modified.intersect(n);e&&!e.isEmpty&&s&&!s.isEmpty&&r.push(new I(e,s))}return r}constructor(e,t){this.original=e,this.modified=t}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new I(this.modified,this.original)}join(e){return new I(this.original.join(e.original),this.modified.join(e.modified))}toRangeMapping(){const e=this.original.toInclusiveRange(),t=this.modified.toInclusiveRange();if(e&&t)return new D(e,t);if(1===this.original.startLineNumber||1===this.modified.startLineNumber){if(1!==this.modified.startLineNumber||1!==this.original.startLineNumber)throw new S.D7("not a valid diff");return new D(new u.Q(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new u.Q(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}return new D(new u.Q(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new u.Q(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}toRangeMapping2(e,t){if(M(this.original.endLineNumberExclusive,e)&&M(this.modified.endLineNumberExclusive,t))return new D(new u.Q(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new u.Q(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1));if(!this.original.isEmpty&&!this.modified.isEmpty)return new D(u.Q.fromPositions(new E.y(this.original.startLineNumber,1),O(new E.y(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),u.Q.fromPositions(new E.y(this.modified.startLineNumber,1),O(new E.y(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)));if(this.original.startLineNumber>1&&this.modified.startLineNumber>1)return new D(u.Q.fromPositions(O(new E.y(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER),e),O(new E.y(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),u.Q.fromPositions(O(new E.y(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER),t),O(new E.y(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)));throw new S.D7}}function O(e,t){if(e.lineNumber<1)return new E.y(1,1);if(e.lineNumber>t.length)return new E.y(t.length,t[t.length-1].length+1);const n=t[e.lineNumber-1];return e.column>n.length+1?new E.y(e.lineNumber,n.length+1):e}function M(e,t){return e>=1&&e<=t.length}class R extends I{static fromRangeMappings(e){const t=x.M.join(e.map((e=>x.M.fromRangeInclusive(e.originalRange)))),n=x.M.join(e.map((e=>x.M.fromRangeInclusive(e.modifiedRange))));return new R(t,n,e)}constructor(e,t,n){super(e,t),this.innerChanges=n}flip(){return new R(this.modified,this.original,this.innerChanges?.map((e=>e.flip())))}withInnerChangesFromLineRanges(){return new R(this.original,this.modified,[this.toRangeMapping()])}}class D{static assertSorted(e){for(let t=1;t<e.length;t++){const n=e[t-1],r=e[t];if(!n.originalRange.getEndPosition().isBeforeOrEqual(r.originalRange.getStartPosition())||!n.modifiedRange.getEndPosition().isBeforeOrEqual(r.modifiedRange.getStartPosition()))throw new S.D7("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 D(this.modifiedRange,this.originalRange)}toTextEdit(e){const t=e.getValueOfRange(this.modifiedRange);return new A(this.originalRange,t)}}var B=n(1508);class F{computeDiff(e,t,n){const r=new W(e,t,{maxComputationTime:n.maxComputationTimeMs,shouldIgnoreTrimWhitespace:n.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),i=[];let s=null;for(const o of r.changes){let e,t;e=0===o.originalEndLineNumber?new x.M(o.originalStartLineNumber+1,o.originalStartLineNumber+1):new x.M(o.originalStartLineNumber,o.originalEndLineNumber+1),t=0===o.modifiedEndLineNumber?new x.M(o.modifiedStartLineNumber+1,o.modifiedStartLineNumber+1):new x.M(o.modifiedStartLineNumber,o.modifiedEndLineNumber+1);let n=new R(e,t,o.charChanges?.map((e=>new D(new u.Q(e.originalStartLineNumber,e.originalStartColumn,e.originalEndLineNumber,e.originalEndColumn),new u.Q(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)))));s&&(s.modified.endLineNumberExclusive!==n.modified.startLineNumber&&s.original.endLineNumberExclusive!==n.original.startLineNumber||(n=new R(s.original.join(n.original),s.modified.join(n.modified),s.innerChanges&&n.innerChanges?s.innerChanges.concat(n.innerChanges):void 0),i.pop())),i.push(n),s=n}return(0,N.Ft)((()=>(0,N.Xo)(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 L(i,[],r.quitEarly)}}function P(e,t,n,r){return new h(e,t,n).ComputeDiff(r)}class V{constructor(e){const t=[],n=[];for(let r=0,i=e.length;r<i;r++)t[r]=U(e[r],1),n[r]=$(e[r],1);this.lines=e,this._startColumns=t,this._endColumns=n}getElements(){const 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){const r=[],i=[],s=[];let o=0;for(let a=t;a<=n;a++){const t=this.lines[a],l=e?this._startColumns[a]:1,c=e?this._endColumns[a]:t.length+1;for(let e=l;e<c;e++)r[o]=t.charCodeAt(e-1),i[o]=a+1,s[o]=e,o++;!e&&a<n&&(r[o]=10,i[o]=a+1,s[o]=t.length+1,o++)}return new z(r,i,s)}}class z{constructor(e,t,n){this._charCodes=e,this._lineNumbers=t,this._columns=n}toString(){return"["+this._charCodes.map(((e,t)=>(10===e?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[t]},${this._columns[t]})`)).join(", ")+"]"}_assertIndex(e,t){if(e<0||e>=t.length)throw new 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-1===e?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),10===this._charCodes[e]?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-1===e?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),10===this._charCodes[e]?1:this._columns[e]+1)}}class j{constructor(e,t,n,r,i,s,o,a){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=n,this.originalEndColumn=r,this.modifiedStartLineNumber=i,this.modifiedStartColumn=s,this.modifiedEndLineNumber=o,this.modifiedEndColumn=a}static createFromDiffChange(e,t,n){const r=t.getStartLineNumber(e.originalStart),i=t.getStartColumn(e.originalStart),s=t.getEndLineNumber(e.originalStart+e.originalLength-1),o=t.getEndColumn(e.originalStart+e.originalLength-1),a=n.getStartLineNumber(e.modifiedStart),l=n.getStartColumn(e.modifiedStart),c=n.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),h=n.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new j(r,i,s,o,a,l,c,h)}}class q{constructor(e,t,n,r,i){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=n,this.modifiedEndLineNumber=r,this.charChanges=i}static createFromDiffResult(e,t,n,r,i,s,o){let a,l,c,h,u;if(0===t.originalLength?(a=n.getStartLineNumber(t.originalStart)-1,l=0):(a=n.getStartLineNumber(t.originalStart),l=n.getEndLineNumber(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(c=r.getStartLineNumber(t.modifiedStart)-1,h=0):(c=r.getStartLineNumber(t.modifiedStart),h=r.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),s&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&i()){const s=n.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),a=r.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);if(s.getElements().length>0&&a.getElements().length>0){let e=P(s,a,i,!0).changes;o&&(e=function(e){if(e.length<=1)return e;const t=[e[0]];let n=t[0];for(let r=1,i=e.length;r<i;r++){const i=e[r],s=i.originalStart-(n.originalStart+n.originalLength),o=i.modifiedStart-(n.modifiedStart+n.modifiedLength);Math.min(s,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}(e)),u=[];for(let t=0,n=e.length;t<n;t++)u.push(j.createFromDiffChange(e[t],s,a))}}return new q(a,l,c,h,u)}}class W{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 V(e),this.modified=new V(t),this.continueLineDiff=H(n.maxComputationTime),this.continueCharDiff=H(0===n.maxComputationTime?0:Math.min(n.maxComputationTime,5e3))}computeDiff(){if(1===this.original.lines.length&&0===this.original.lines[0].length)return 1===this.modified.lines.length&&0===this.modified.lines[0].length?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(1===this.modified.lines.length&&0===this.modified.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const e=P(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=e.changes,n=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){const e=[];for(let n=0,r=t.length;n<r;n++)e.push(q.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[n],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:n,changes:e}}const r=[];let i=0,s=0;for(let o=-1,a=t.length;o<a;o++){const e=o+1<a?t[o+1]:null,n=e?e.originalStart:this.originalLines.length,l=e?e.modifiedStart:this.modifiedLines.length;for(;i<n&&s<l;){const e=this.originalLines[i],t=this.modifiedLines[s];if(e!==t){{let n=U(e,1),o=U(t,1);for(;n>1&&o>1;){if(e.charCodeAt(n-2)!==t.charCodeAt(o-2))break;n--,o--}(n>1||o>1)&&this._pushTrimWhitespaceCharChange(r,i+1,1,n,s+1,1,o)}{let n=$(e,1),o=$(t,1);const a=e.length+1,l=t.length+1;for(;n<a&&o<l;){if(e.charCodeAt(n-1)!==e.charCodeAt(o-1))break;n++,o++}(n<a||o<l)&&this._pushTrimWhitespaceCharChange(r,i+1,n,a,s+1,o,l)}}i++,s++}e&&(r.push(q.createFromDiffResult(this.shouldIgnoreTrimWhitespace,e,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),i+=e.originalLength,s+=e.modifiedLength)}return{quitEarly:n,changes:r}}_pushTrimWhitespaceCharChange(e,t,n,r,i,s,o){if(this._mergeTrimWhitespaceCharChange(e,t,n,r,i,s,o))return;let a;this.shouldComputeCharChanges&&(a=[new j(t,n,t,r,i,s,i,o)]),e.push(new q(t,t,i,i,a))}_mergeTrimWhitespaceCharChange(e,t,n,r,i,s,o){const a=e.length;if(0===a)return!1;const l=e[a-1];return 0!==l.originalEndLineNumber&&0!==l.modifiedEndLineNumber&&(l.originalEndLineNumber===t&&l.modifiedEndLineNumber===i?(this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new j(t,n,t,r,i,s,i,o)),!0):l.originalEndLineNumber+1===t&&l.modifiedEndLineNumber+1===i&&(l.originalEndLineNumber=t,l.modifiedEndLineNumber=i,this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new j(t,n,t,r,i,s,i,o)),!0))}}function U(e,t){const n=B.HG(e);return-1===n?t:n+1}function $(e,t){const n=B.lT(e);return-1===n?t:n+2}function H(e){if(0===e)return()=>!0;const t=Date.now();return()=>Date.now()-t<e}var K=n(9861);class G{static trivial(e,t){return new G([new Q(T.L.ofLength(e.length),T.L.ofLength(t.length))],!1)}static trivialTimedOut(e,t){return new G([new Q(T.L.ofLength(e.length),T.L.ofLength(t.length))],!0)}constructor(e,t){this.diffs=e,this.hitTimeout=t}}class Q{static invert(e,t){const n=[];return(0,K.pN)(e,((e,r)=>{n.push(Q.fromOffsetPairs(e?e.getEndExclusives():J.zero,r?r.getStarts():new J(t,(e?e.seq2Range.endExclusive-e.seq1Range.endExclusive:0)+t)))})),n}static fromOffsetPairs(e,t){return new Q(new T.L(e.offset1,t.offset1),new T.L(e.offset2,t.offset2))}static assertSorted(e){let t;for(const n of e){if(t&&!(t.seq1Range.endExclusive<=n.seq1Range.start&&t.seq2Range.endExclusive<=n.seq2Range.start))throw new S.D7("Sequence diffs must be sorted");t=n}}constructor(e,t){this.seq1Range=e,this.seq2Range=t}swap(){return new Q(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(e){return new Q(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}delta(e){return 0===e?this:new Q(this.seq1Range.delta(e),this.seq2Range.delta(e))}deltaStart(e){return 0===e?this:new Q(this.seq1Range.deltaStart(e),this.seq2Range.deltaStart(e))}deltaEnd(e){return 0===e?this:new Q(this.seq1Range.deltaEnd(e),this.seq2Range.deltaEnd(e))}intersect(e){const t=this.seq1Range.intersect(e.seq1Range),n=this.seq2Range.intersect(e.seq2Range);if(t&&n)return new Q(t,n)}getStarts(){return new J(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new J(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}class J{static{this.zero=new J(0,0)}static{this.max=new J(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER)}constructor(e,t){this.offset1=e,this.offset2=t}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(e){return 0===e?this:new J(this.offset1+e,this.offset2+e)}equals(e){return this.offset1===e.offset1&&this.offset2===e.offset2}}class X{static{this.instance=new X}isValid(){return!0}}class Y{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new S.D7("timeout must be positive")}isValid(){return!(Date.now()-this.startTime<this.timeout)&&this.valid&&(this.valid=!1),this.valid}}class Z{constructor(e,t){this.width=e,this.height=t,this.array=[],this.array=new 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 ee(e){return 32===e||9===e}class te{static{this.chrKeys=new Map}static getKey(e){let t=this.chrKeys.get(e);return void 0===t&&(t=this.chrKeys.size,this.chrKeys.set(e,t)),t}constructor(e,t,n){this.range=e,this.lines=t,this.source=n,this.histogram=[];let r=0;for(let i=e.startLineNumber-1;i<e.endLineNumberExclusive-1;i++){const e=t[i];for(let t=0;t<e.length;t++){r++;const n=e[t],i=te.getKey(n);this.histogram[i]=(this.histogram[i]||0)+1}r++;const n=te.getKey("\n");this.histogram[n]=(this.histogram[n]||0)+1}this.totalCount=r}computeSimilarity(e){let t=0;const 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)}}class ne{compute(e,t,n=X.instance,r){if(0===e.length||0===t.length)return G.trivial(e,t);const i=new Z(e.length,t.length),s=new Z(e.length,t.length),o=new Z(e.length,t.length);for(let g=0;g<e.length;g++)for(let a=0;a<t.length;a++){if(!n.isValid())return G.trivialTimedOut(e,t);const l=0===g?0:i.get(g-1,a),c=0===a?0:i.get(g,a-1);let h;e.getElement(g)===t.getElement(a)?(h=0===g||0===a?0:i.get(g-1,a-1),g>0&&a>0&&3===s.get(g-1,a-1)&&(h+=o.get(g-1,a-1)),h+=r?r(g,a):1):h=-1;const u=Math.max(l,c,h);if(u===h){const e=g>0&&a>0?o.get(g-1,a-1):0;o.set(g,a,e+1),s.set(g,a,3)}else u===l?(o.set(g,a,0),s.set(g,a,1)):u===c&&(o.set(g,a,0),s.set(g,a,2));i.set(g,a,u)}const a=[];let l=e.length,c=t.length;function h(e,t){e+1===l&&t+1===c||a.push(new Q(new T.L(e+1,l),new T.L(t+1,c))),l=e,c=t}let u=e.length-1,d=t.length-1;for(;u>=0&&d>=0;)3===s.get(u,d)?(h(u,d),u--,d--):1===s.get(u,d)?u--:d--;return h(-1,-1),a.reverse(),new G(a,!1)}}class re{compute(e,t,n=X.instance){if(0===e.length||0===t.length)return G.trivial(e,t);const r=e,i=t;function s(e,t){for(;e<r.length&&t<i.length&&r.getElement(e)===i.getElement(t);)e++,t++;return e}let o=0;const a=new se;a.set(0,s(0,0));const l=new oe;l.set(0,0===a.get(0)?null:new ie(null,0,0,a.get(0)));let c=0;e:for(;;){if(o++,!n.isValid())return G.trivialTimedOut(r,i);const e=-Math.min(o,i.length+o%2),t=Math.min(o,r.length+o%2);for(c=e;c<=t;c+=2){let n=0;const o=c===t?-1:a.get(c+1),h=c===e?-1:a.get(c-1)+1;n++;const u=Math.min(Math.max(o,h),r.length),d=u-c;if(n++,u>r.length||d>i.length)continue;const g=s(u,d);a.set(c,g);const f=u===o?l.get(c+1):l.get(c-1);if(l.set(c,g!==u?new ie(f,u,d,g-u):f),a.get(c)===r.length&&a.get(c)-c===i.length)break e}}let h=l.get(c);const u=[];let d=r.length,g=i.length;for(;;){const e=h?h.x+h.length:0,t=h?h.y+h.length:0;if(e===d&&t===g||u.push(new Q(new T.L(e,d),new T.L(t,g))),!h)break;d=h.x,g=h.y,h=h.prev}return u.reverse(),new G(u,!1)}}class ie{constructor(e,t,n,r){this.prev=e,this.x=t,this.y=n,this.length=r}}class se{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=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)>=this.negativeArr.length){const e=this.negativeArr;this.negativeArr=new Int32Array(2*e.length),this.negativeArr.set(e)}this.negativeArr[e]=t}else{if(e>=this.positiveArr.length){const e=this.positiveArr;this.positiveArr=new Int32Array(2*e.length),this.positiveArr.set(e)}this.positiveArr[e]=t}}}class oe{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}}var ae=n(6041),le=n(4320);class ce{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 r=this.range.startLineNumber;r<=this.range.endLineNumber;r++){let t=e[r-1],i=0;r===this.range.startLineNumber&&this.range.startColumn>1&&(i=this.range.startColumn-1,t=t.substring(i)),this.lineStartOffsets.push(i);let s=0;if(!n){const e=t.trimStart();s=t.length-e.length,t=e.trimEnd()}this.trimmedWsLengthsByLineIdx.push(s);const o=r===this.range.endLineNumber?Math.min(this.range.endColumn-1-i-s,t.length):t.length;for(let e=0;e<o;e++)this.elements.push(t.charCodeAt(e));r<this.range.endLineNumber&&(this.elements.push("\n".charCodeAt(0)),this.firstElementOffsetByLineIdx.push(this.elements.length))}}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new T.L(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){const t=ge(e>0?this.elements[e-1]:-1),n=ge(e<this.elements.length?this.elements[e]:-1);if(7===t&&8===n)return 0;if(8===t)return 150;let r=0;return t!==n&&(r+=10,0===t&&1===n&&(r+=1)),r+=de(t),r+=de(n),r}translateOffset(e,t="right"){const n=(0,ae.iM)(this.firstElementOffsetByLineIdx,(t=>t<=e)),r=e-this.firstElementOffsetByLineIdx[n];return new E.y(this.range.startLineNumber+n,1+this.lineStartOffsets[n]+r+(0===r&&"left"===t?0:this.trimmedWsLengthsByLineIdx[n]))}translateRange(e){const t=this.translateOffset(e.start,"right"),n=this.translateOffset(e.endExclusive,"left");return n.isBefore(t)?u.Q.fromPositions(n,n):u.Q.fromPositions(t,n)}findWordContaining(e){if(e<0||e>=this.elements.length)return;if(!he(this.elements[e]))return;let t=e;for(;t>0&&he(this.elements[t-1]);)t--;let n=e;for(;n<this.elements.length&&he(this.elements[n]);)n++;return new T.L(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){const t=(0,ae.lx)(this.firstElementOffsetByLineIdx,(t=>t<=e.start))??0,n=(0,ae.XP)(this.firstElementOffsetByLineIdx,(t=>e.endExclusive<=t))??this.elements.length;return new T.L(t,n)}}function he(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}const ue={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function de(e){return ue[e]}function ge(e){return 10===e?8:13===e?7:ee(e)?6:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:-1===e?3:44===e||59===e?5:4}function fe(e,t,n,r,i,s){let{moves:o,excludedChanges:a}=function(e,t,n,r){const i=[],s=e.filter((e=>e.modified.isEmpty&&e.original.length>=3)).map((e=>new te(e.original,t,e))),o=new Set(e.filter((e=>e.original.isEmpty&&e.modified.length>=3)).map((e=>new te(e.modified,n,e)))),a=new Set;for(const l of s){let e,t=-1;for(const n of o){const r=l.computeSimilarity(n);r>t&&(t=r,e=n)}if(t>.9&&e&&(o.delete(e),i.push(new I(l.range,e.range)),a.add(l.source),a.add(e.source)),!r.isValid())return{moves:i,excludedChanges:a}}return{moves:i,excludedChanges:a}}(e,t,n,s);if(!s.isValid())return[];const l=function(e,t,n,r,i,s){const o=[],a=new le.db;for(const d of e)for(let e=d.original.startLineNumber;e<d.original.endLineNumberExclusive-2;e++){const n=`${t[e-1]}:${t[e+1-1]}:${t[e+2-1]}`;a.add(n,{range:new x.M(e,e+3)})}const l=[];e.sort((0,K.VE)((e=>e.modified.startLineNumber),K.U9));for(const d of e){let e=[];for(let t=d.modified.startLineNumber;t<d.modified.endLineNumberExclusive-2;t++){const r=`${n[t-1]}:${n[t+1-1]}:${n[t+2-1]}`,i=new x.M(t,t+3),s=[];a.forEach(r,(({range:t})=>{for(const r of e)if(r.originalLineRange.endLineNumberExclusive+1===t.endLineNumberExclusive&&r.modifiedLineRange.endLineNumberExclusive+1===i.endLineNumberExclusive)return r.originalLineRange=new x.M(r.originalLineRange.startLineNumber,t.endLineNumberExclusive),r.modifiedLineRange=new x.M(r.modifiedLineRange.startLineNumber,i.endLineNumberExclusive),void s.push(r);const n={modifiedLineRange:i,originalLineRange:t};l.push(n),s.push(n)})),e=s}if(!s.isValid())return[]}l.sort((0,K.Hw)((0,K.VE)((e=>e.modifiedLineRange.length),K.U9)));const c=new x.S,h=new x.S;for(const d of l){const e=d.modifiedLineRange.startLineNumber-d.originalLineRange.startLineNumber,t=c.subtractFrom(d.modifiedLineRange),n=h.subtractFrom(d.originalLineRange).getWithDelta(e),r=t.getIntersection(n);for(const i of r.ranges){if(i.length<3)continue;const t=i,n=i.delta(-e);o.push(new I(n,t)),c.addRange(t),h.addRange(n)}}o.sort((0,K.VE)((e=>e.original.startLineNumber),K.U9));const u=new ae.vJ(e);for(let d=0;d<o.length;d++){const t=o[d],n=u.findLastMonotonous((e=>e.original.startLineNumber<=t.original.startLineNumber)),a=(0,ae.lx)(e,(e=>e.modified.startLineNumber<=t.modified.startLineNumber)),l=Math.max(t.original.startLineNumber-n.original.startLineNumber,t.modified.startLineNumber-a.modified.startLineNumber),g=u.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive)),f=(0,ae.lx)(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)),m=Math.max(g.original.endLineNumberExclusive-t.original.endLineNumberExclusive,f.modified.endLineNumberExclusive-t.modified.endLineNumberExclusive);let p,b;for(p=0;p<l;p++){const e=t.original.startLineNumber-p-1,n=t.modified.startLineNumber-p-1;if(e>r.length||n>i.length)break;if(c.contains(n)||h.contains(e))break;if(!me(r[e-1],i[n-1],s))break}for(p>0&&(h.addRange(new x.M(t.original.startLineNumber-p,t.original.startLineNumber)),c.addRange(new x.M(t.modified.startLineNumber-p,t.modified.startLineNumber))),b=0;b<m;b++){const e=t.original.endLineNumberExclusive+b,n=t.modified.endLineNumberExclusive+b;if(e>r.length||n>i.length)break;if(c.contains(n)||h.contains(e))break;if(!me(r[e-1],i[n-1],s))break}b>0&&(h.addRange(new x.M(t.original.endLineNumberExclusive,t.original.endLineNumberExclusive+b)),c.addRange(new x.M(t.modified.endLineNumberExclusive,t.modified.endLineNumberExclusive+b))),(p>0||b>0)&&(o[d]=new I(new x.M(t.original.startLineNumber-p,t.original.endLineNumberExclusive+b),new x.M(t.modified.startLineNumber-p,t.modified.endLineNumberExclusive+b)))}return o}(e.filter((e=>!a.has(e))),r,i,t,n,s);return(0,K.E4)(o,l),o=function(e){if(0===e.length)return e;e.sort((0,K.VE)((e=>e.original.startLineNumber),K.U9));const t=[e[0]];for(let n=1;n<e.length;n++){const r=t[t.length-1],i=e[n],s=i.original.startLineNumber-r.original.endLineNumberExclusive,o=i.modified.startLineNumber-r.modified.endLineNumberExclusive;s>=0&&o>=0&&s+o<=2?t[t.length-1]=r.join(i):t.push(i)}return t}(o),o=o.filter((e=>{const n=e.original.toOffsetRange().slice(t).map((e=>e.trim()));return n.join("\n").length>=15&&function(e,t){let n=0;for(const r of e)t(r)&&n++;return n}(n,(e=>e.length>=2))>=2})),o=function(e,t){const n=new ae.vJ(e);return t=t.filter((t=>(n.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive))||new I(new x.M(1,1),new x.M(1,1)))!==(0,ae.lx)(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)))),t}(e,o),o}function me(e,t,n){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;const r=(new re).compute(new ce([e],new u.Q(1,1,1,e.length),!1),new ce([t],new u.Q(1,1,1,t.length),!1),n);let i=0;const s=Q.invert(r.diffs,e.length);for(const a of s)a.seq1Range.forEach((t=>{ee(e.charCodeAt(t))||i++}));const o=function(t){let n=0;for(let r=0;r<e.length;r++)ee(t.charCodeAt(r))||n++;return n}(e.length>t.length?e:t);return i/o>.6&&o>10}function pe(e,t,n){let r=n;return r=be(e,t,r),r=be(e,t,r),r=function(e,t,n){if(!e.getBoundaryScore||!t.getBoundaryScore)return n;for(let r=0;r<n.length;r++){const i=r>0?n[r-1]:void 0,s=n[r],o=r+1<n.length?n[r+1]:void 0,a=new T.L(i?i.seq1Range.endExclusive+1:0,o?o.seq1Range.start-1:e.length),l=new T.L(i?i.seq2Range.endExclusive+1:0,o?o.seq2Range.start-1:t.length);s.seq1Range.isEmpty?n[r]=_e(s,e,t,a,l):s.seq2Range.isEmpty&&(n[r]=_e(s.swap(),t,e,l,a).swap())}return n}(e,t,r),r}function be(e,t,n){if(0===n.length)return n;const r=[];r.push(n[0]);for(let s=1;s<n.length;s++){const i=r[r.length-1];let o=n[s];if(o.seq1Range.isEmpty||o.seq2Range.isEmpty){const n=o.seq1Range.start-i.seq1Range.endExclusive;let s;for(s=1;s<=n&&(e.getElement(o.seq1Range.start-s)===e.getElement(o.seq1Range.endExclusive-s)&&t.getElement(o.seq2Range.start-s)===t.getElement(o.seq2Range.endExclusive-s));s++);if(s--,s===n){r[r.length-1]=new Q(new T.L(i.seq1Range.start,o.seq1Range.endExclusive-n),new T.L(i.seq2Range.start,o.seq2Range.endExclusive-n));continue}o=o.delta(-s)}r.push(o)}const i=[];for(let s=0;s<r.length-1;s++){const n=r[s+1];let o=r[s];if(o.seq1Range.isEmpty||o.seq2Range.isEmpty){const i=n.seq1Range.start-o.seq1Range.endExclusive;let a;for(a=0;a<i&&(e.isStronglyEqual(o.seq1Range.start+a,o.seq1Range.endExclusive+a)&&t.isStronglyEqual(o.seq2Range.start+a,o.seq2Range.endExclusive+a));a++);if(a===i){r[s+1]=new Q(new T.L(o.seq1Range.start+i,n.seq1Range.endExclusive),new T.L(o.seq2Range.start+i,n.seq2Range.endExclusive));continue}a>0&&(o=o.delta(a))}i.push(o)}return r.length>0&&i.push(r[r.length-1]),i}function _e(e,t,n,r,i){let s=1;for(;e.seq1Range.start-s>=r.start&&e.seq2Range.start-s>=i.start&&n.isStronglyEqual(e.seq2Range.start-s,e.seq2Range.endExclusive-s)&&s<100;)s++;s--;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(0===s&&0===o)return e;let a=0,l=-1;for(let c=-s;c<=o;c++){const r=e.seq2Range.start+c,i=e.seq2Range.endExclusive+c,s=e.seq1Range.start+c,o=t.getBoundaryScore(s)+n.getBoundaryScore(r)+n.getBoundaryScore(i);o>l&&(l=o,a=c)}return e.delta(a)}class ke{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-((0===e?0:ve(this.lines[e-1]))+(e===this.lines.length?0:ve(this.lines[e])))}getText(e){return this.lines.slice(e.start,e.endExclusive).join("\n")}isStronglyEqual(e,t){return this.lines[e]===this.lines[t]}}function ve(e){let t=0;for(;t<e.length&&(32===e.charCodeAt(t)||9===e.charCodeAt(t));)t++;return t}class Ce{constructor(){this.dynamicProgrammingDiffing=new ne,this.myersDiffingAlgorithm=new re}computeDiff(e,t,n){if(e.length<=1&&(0,K.aI)(e,t,((e,t)=>e===t)))return new L([],[],!1);if(1===e.length&&0===e[0].length||1===t.length&&0===t[0].length)return new L([new R(new x.M(1,e.length+1),new x.M(1,t.length+1),[new D(new u.Q(1,1,e.length,e[e.length-1].length+1),new u.Q(1,1,t.length,t[t.length-1].length+1))])],[],!1);const r=0===n.maxComputationTimeMs?X.instance:new Y(n.maxComputationTimeMs),i=!n.ignoreTrimWhitespace,s=new Map;function o(e){let t=s.get(e);return void 0===t&&(t=s.size,s.set(e,t)),t}const a=e.map((e=>o(e.trim()))),l=t.map((e=>o(e.trim()))),c=new ke(a,e),h=new ke(l,t),d=(()=>c.length+h.length<1700?this.dynamicProgrammingDiffing.compute(c,h,r,((n,r)=>e[n]===t[r]?0===t[r].length?.1:1+Math.log(1+t[r].length):.99)):this.myersDiffingAlgorithm.compute(c,h,r))();let g=d.diffs,f=d.hitTimeout;g=pe(c,h,g),g=function(e,t,n){let r=n;if(0===r.length)return r;let i,s=0;do{i=!1;const o=[r[0]];for(let a=1;a<r.length;a++){const l=r[a],c=o[o.length-1];function h(t,n){const r=new T.L(c.seq1Range.endExclusive,l.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)}h(c,l)?(i=!0,o[o.length-1]=o[o.length-1].join(l)):o.push(l)}r=o}while(s++<10&&i);return r}(c,0,g);const m=[],p=n=>{if(i)for(let s=0;s<n;s++){const n=b+s,o=_+s;if(e[n]!==t[o]){const s=this.refineDiff(e,t,new Q(new T.L(n,n+1),new T.L(o,o+1)),r,i);for(const e of s.mappings)m.push(e);s.hitTimeout&&(f=!0)}}};let b=0,_=0;for(const u of g){(0,N.Ft)((()=>u.seq1Range.start-b===u.seq2Range.start-_));p(u.seq1Range.start-b),b=u.seq1Range.endExclusive,_=u.seq2Range.endExclusive;const n=this.refineDiff(e,t,u,r,i);n.hitTimeout&&(f=!0);for(const e of n.mappings)m.push(e)}p(e.length-b);const k=ye(m,e,t);let v=[];return n.computeMoves&&(v=this.computeMoves(k,e,t,a,l,r,i)),(0,N.Ft)((()=>{function n(e,t){if(e.lineNumber<1||e.lineNumber>t.length)return!1;const 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(const i of k){if(!i.innerChanges)return!1;for(const 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 L(k,v,f)}computeMoves(e,t,n,r,i,s,o){return fe(e,t,n,r,i,s).map((e=>{const r=ye(this.refineDiff(t,n,new Q(e.original.toOffsetRange(),e.modified.toOffsetRange()),s,o).mappings,t,n,!0);return new w(e,r)}))}refineDiff(e,t,n,r,i){var s;const o=(s=n,new I(new x.M(s.seq1Range.start+1,s.seq1Range.endExclusive+1),new x.M(s.seq2Range.start+1,s.seq2Range.endExclusive+1))).toRangeMapping2(e,t),a=new ce(e,o.originalRange,i),l=new ce(t,o.modifiedRange,i),c=a.length+l.length<500?this.dynamicProgrammingDiffing.compute(a,l,r):this.myersDiffingAlgorithm.compute(a,l,r),h=!1;let u=c.diffs;u=pe(a,l,u),u=function(e,t,n){const r=Q.invert(n,e.length),i=[];let s=new J(0,0);function o(n,o){if(n.offset1<s.offset1||n.offset2<s.offset2)return;const a=e.findWordContaining(n.offset1),l=t.findWordContaining(n.offset2);if(!a||!l)return;let c=new Q(a,l);const h=c.intersect(o);let u=h.seq1Range.length,d=h.seq2Range.length;for(;r.length>0;){const n=r[0];if(!n.seq1Range.intersects(c.seq1Range)&&!n.seq2Range.intersects(c.seq2Range))break;const i=e.findWordContaining(n.seq1Range.start),s=t.findWordContaining(n.seq2Range.start),o=new Q(i,s),a=o.intersect(n);if(u+=a.seq1Range.length,d+=a.seq2Range.length,c=c.join(o),!(c.seq1Range.endExclusive>=n.seq1Range.endExclusive))break;r.shift()}u+d<2*(c.seq1Range.length+c.seq2Range.length)/3&&i.push(c),s=c.getEndExclusives()}for(;r.length>0;){const e=r.shift();e.seq1Range.isEmpty||(o(e.getStarts(),e),o(e.getEndExclusives().delta(-1),e))}return function(e,t){const n=[];for(;e.length>0||t.length>0;){const r=e[0],i=t[0];let s;s=r&&(!i||r.seq1Range.start<i.seq1Range.start)?e.shift():t.shift(),n.length>0&&n[n.length-1].seq1Range.endExclusive>=s.seq1Range.start?n[n.length-1]=n[n.length-1].join(s):n.push(s)}return n}(n,i)}(a,l,u),u=function(e,t,n){const r=[];for(const i of n){const e=r[r.length-1];e&&(i.seq1Range.start-e.seq1Range.endExclusive<=2||i.seq2Range.start-e.seq2Range.endExclusive<=2)?r[r.length-1]=new Q(e.seq1Range.join(i.seq1Range),e.seq2Range.join(i.seq2Range)):r.push(i)}return r}(0,0,u),u=function(e,t,n){let r=n;if(0===r.length)return r;let i,s=0;do{i=!1;const a=[r[0]];for(let l=1;l<r.length;l++){const c=r[l],h=a[a.length-1];function u(n,r){const i=new T.L(h.seq1Range.endExclusive,c.seq1Range.start);if(e.countLinesIn(i)>5||i.length>500)return!1;const s=e.getText(i).trim();if(s.length>20||s.split(/\r\n|\r|\n/).length>1)return!1;const o=e.countLinesIn(n.seq1Range),a=n.seq1Range.length,l=t.countLinesIn(n.seq2Range),u=n.seq2Range.length,d=e.countLinesIn(r.seq1Range),g=r.seq1Range.length,f=t.countLinesIn(r.seq2Range),m=r.seq2Range.length;function p(e){return Math.min(e,130)}return Math.pow(Math.pow(p(40*o+a),1.5)+Math.pow(p(40*l+u),1.5),1.5)+Math.pow(Math.pow(p(40*d+g),1.5)+Math.pow(p(40*f+m),1.5),1.5)>74184.96480721243}u(h,c)?(i=!0,a[a.length-1]=a[a.length-1].join(c)):a.push(c)}r=a}while(s++<10&&i);const o=[];return(0,K.kj)(r,((t,n,r)=>{let i=n;function s(e){return e.length>0&&e.trim().length<=3&&n.seq1Range.length+n.seq2Range.length>100}const a=e.extendToFullLines(n.seq1Range),l=e.getText(new T.L(a.start,n.seq1Range.start));s(l)&&(i=i.deltaStart(-l.length));const c=e.getText(new T.L(n.seq1Range.endExclusive,a.endExclusive));s(c)&&(i=i.deltaEnd(c.length));const h=Q.fromOffsetPairs(t?t.getEndExclusives():J.zero,r?r.getStarts():J.max),u=i.intersect(h);o.length>0&&u.getStarts().equals(o[o.length-1].getEndExclusives())?o[o.length-1]=o[o.length-1].join(u):o.push(u)})),o}(a,l,u);const d=u.map((e=>new D(a.translateRange(e.seq1Range),l.translateRange(e.seq2Range))));return{mappings:d,hitTimeout:c.hitTimeout}}}function ye(e,t,n,r=!1){const i=[];for(const s of(0,K.n)(e.map((e=>function(e,t,n){let r=0,i=0;1===e.modifiedRange.endColumn&&1===e.originalRange.endColumn&&e.originalRange.startLineNumber+r<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+r<=e.modifiedRange.endLineNumber&&(i=-1);e.modifiedRange.startColumn-1>=n[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+i&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+i&&(r=1);const s=new x.M(e.originalRange.startLineNumber+r,e.originalRange.endLineNumber+1+i),o=new x.M(e.modifiedRange.startLineNumber+r,e.modifiedRange.endLineNumber+1+i);return new R(s,o,[e])}(e,t,n))),((e,t)=>e.original.overlapOrTouch(t.original)||e.modified.overlapOrTouch(t.modified)))){const e=s[0],t=s[s.length-1];i.push(new R(e.original.join(t.original),e.modified.join(t.modified),s.map((e=>e.innerChanges[0]))))}return(0,N.Ft)((()=>{if(!r&&i.length>0){if(i[0].modified.startLineNumber!==i[0].original.startLineNumber)return!1;if(n.length-i[i.length-1].modified.endLineNumberExclusive!==t.length-i[i.length-1].original.endLineNumberExclusive)return!1}return(0,N.Xo)(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}const Le=()=>new F,we=()=>new Ce;var Se=n(146),xe=n(6456),Ee=n(7661);function Ne(e){const t=[];for(const n of e){const e=Number(n);(e||0===e&&""!==n.replace(/\s/g,""))&&t.push(e)}return t}function Te(e,t,n,r){return{red:e/255,blue:n/255,green:t/255,alpha:r}}function Ae(e,t){const n=t.index,r=t[0].length;if(!n)return;const i=e.positionAt(n);return{startLineNumber:i.lineNumber,startColumn:i.column,endLineNumber:i.lineNumber,endColumn:i.column+r}}function Ie(e,t){if(!e)return;const n=Ee.Q1.Format.CSS.parseHex(t);return n?{range:e,color:Te(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}:void 0}function Oe(e,t,n){if(!e||1!==t.length)return;const r=Ne(t[0].values());return{range:e,color:Te(r[0],r[1],r[2],n?r[3]:1)}}function Me(e,t,n){if(!e||1!==t.length)return;const r=Ne(t[0].values()),i=new Ee.Q1(new Ee.hB(r[0],r[1]/100,r[2]/100,n?r[3]:1));return{range:e,color:Te(i.rgba.r,i.rgba.g,i.rgba.b,i.rgba.a)}}function Re(e,t){return"string"===typeof e?[...e.matchAll(t)]:e.findMatches(t)}function De(e){return e&&"function"===typeof e.getValue&&"function"===typeof e.positionAt?function(e){const t=[],n=Re(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/gm);if(n.length>0)for(const r of n){const n=r.filter((e=>void 0!==e)),i=n[1],s=n[2];if(!s)continue;let o;if("rgb"===i){const t=/^\(\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;o=Oe(Ae(e,r),Re(s,t),!1)}else if("rgba"===i){const t=/^\(\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;o=Oe(Ae(e,r),Re(s,t),!0)}else if("hsl"===i){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;o=Me(Ae(e,r),Re(s,t),!1)}else if("hsla"===i){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;o=Me(Ae(e,r),Re(s,t),!0)}else"#"===i&&(o=Ie(Ae(e,r),i+s));o&&t.push(o)}return t}(e):[]}var Be=n(6691),Fe=n(796);class Pe{constructor(){this._workerTextModelSyncServer=new Fe.WorkerTextModelSyncServer}dispose(){}_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){const r=this._getModel(e);return r?y.UnicodeTextModelHighlighter.computeUnicodeHighlights(r,t,n):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async $findSectionHeaders(e,t){const n=this._getModel(e);return n?(0,Be.findSectionHeaders)(n,t):[]}async $computeDiff(e,t,n,r){const i=this._getModel(e),s=this._getModel(t);if(!i||!s)return null;return Ve.computeDiff(i,s,n,r)}static computeDiff(e,t,n,r){const i="advanced"===r?we():Le(),s=e.getLinesContent(),o=t.getLinesContent(),a=i.computeDiff(s,o,n);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:!(a.changes.length>0)&&this._modelsAreIdentical(e,t),quitEarly:a.hitTimeout,changes:l(a.changes),moves:a.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){const 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(e,t,n){const r=this._getModel(e);if(!r)return t;const i=[];let s;t=t.slice(0).sort(((e,t)=>{if(e.range&&t.range)return u.Q.compareRangesUsingStarts(e.range,t.range);return(e.range?0:1)-(t.range?0:1)}));let a=0;for(let o=1;o<t.length;o++)u.Q.getEndPosition(t[a].range).equals(u.Q.getStartPosition(t[o].range))?(t[a].range=u.Q.fromPositions(u.Q.getStartPosition(t[a].range),u.Q.getEndPosition(t[o].range)),t[a].text+=t[o].text):(a++,t[a]=t[o]);t.length=a+1;for(let{range:l,text:c,eol:h}of t){if("number"===typeof h&&(s=h),u.Q.isEmpty(l)&&!c)continue;const e=r.getValueInRange(l);if(c=c.replace(/\r\n|\n|\r/g,r.eol),e===c)continue;if(Math.max(c.length,e.length)>Ve._diffLimit){i.push({range:l,text:c});continue}const t=o(e,c,n),a=r.offsetAt(u.Q.lift(l).getStartPosition());for(const n of t){const e=r.positionAt(a+n.originalStart),t=r.positionAt(a+n.originalStart+n.originalLength),s={text:c.substr(n.modifiedStart,n.modifiedLength),range:{startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:t.lineNumber,endColumn:t.column}};r.getValueInRange(s.range)!==s.text&&i.push(s)}}return"number"===typeof s&&i.push({eol:s,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),i}async $computeLinks(e){const t=this._getModel(e);return t?function(e){return e&&"function"===typeof e.getLineCount&&"function"===typeof e.getLineContent?b.computeLinks(e):[]}(t):null}async $computeDefaultDocumentColors(e){const t=this._getModel(e);return t?De(t):null}static{this._suggestionsLimit=1e4}async $textualSuggest(e,t,n,r){const i=new C.W,s=new RegExp(n,r),o=new Set;e:for(const a of e){const e=this._getModel(a);if(e)for(const n of e.words(s))if(n!==t&&isNaN(Number(n))&&(o.add(n),o.size>Ve._suggestionsLimit))break e}return{words:Array.from(o),duration:i.elapsed()}}async $computeWordRanges(e,t,n,r){const i=this._getModel(e);if(!i)return Object.create(null);const s=new RegExp(n,r),o=Object.create(null);for(let a=t.startLineNumber;a<t.endLineNumber;a++){const e=i.getLineWords(a,s);for(const t of e){if(!isNaN(Number(t.word)))continue;let e=o[t.word];e||(e=[],o[t.word]=e),e.push({startLineNumber:a,startColumn:t.startColumn,endLineNumber:a,endColumn:t.endColumn})}}return o}async $navigateValueSet(e,t,n,r,i){const s=this._getModel(e);if(!s)return null;const o=new RegExp(r,i);t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1});const a=s.getValueInRange(t),l=s.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},o);if(!l)return null;const c=s.getValueInRange(l);return _.INSTANCE.navigateValueSet(t,a,l,c,n)}}class Ve extends Pe{constructor(e,t){super(),this._host=e,this._foreignModuleFactory=t,this._foreignModule=null}async $ping(){return"pong"}$loadForeignModule(e,t,r){const i={host:(0,Se.kT)(r,((e,t)=>this._host.$fhr(e,t))),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(i,t),Promise.resolve((0,Se.V0)(this._foreignModule))):new Promise(((r,s)=>{const o=e=>{this._foreignModule=e.create(i,t),r((0,Se.V0)(this._foreignModule))};{const t=xe.zl.asBrowserUri(`${e}.js`).toString(!0);n(9204)(`${t}`).then(o).catch(s)}}))}$fmr(e,t){if(!this._foreignModule||"function"!==typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(n){return Promise.reject(n)}}}function ze(e){return new Ve(v.EditorWorkerHost.getChannel(e),null)}"function"===typeof importScripts&&(globalThis.monaco=(0,k.createMonacoBaseAPI)())},5326:(e,t,n)=>{"use strict";n.d(t,{L:()=>s});var r=n(3069),i=n(6677);class s extends i.Q{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(e){return s.selectionsEqual(this,e)}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(e,t){return 0===this.getDirection()?new s(this.startLineNumber,this.startColumn,e,t):new s(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new r.y(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new r.y(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return 0===this.getDirection()?new s(e,t,this.endLineNumber,this.endColumn):new s(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new s(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return 0===t?new s(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new s(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new s(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.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&&"number"===typeof e.selectionStartLineNumber&&"number"===typeof e.selectionStartColumn&&"number"===typeof e.positionLineNumber&&"number"===typeof e.positionColumn}static createWithDirection(e,t,n,r,i){return 0===i?new s(e,t,n,r):new s(n,r,e,t)}}},5538:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SemanticTokensProviderStyling:()=>m,toMultilineTokens2:()=>p});n(5982);var r=n(5724),i=n(3511),s=n(3069),o=n(6677),a=n(4454);class l{static create(e,t){return new l(e,new c(t))}get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._endLineNumber}constructor(e,t){this._startLineNumber=e,this._tokens=t,this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}toString(){return this._tokens.toString(this._startLineNumber)}_updateEndLineNumber(){this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}isEmpty(){return this._tokens.isEmpty()}getLineTokens(e){return this._startLineNumber<=e&&e<=this._endLineNumber?this._tokens.getLineTokens(e-this._startLineNumber):null}getRange(){const e=this._tokens.getRange();return e?new o.Q(this._startLineNumber+e.startLineNumber,e.startColumn,this._startLineNumber+e.endLineNumber,e.endColumn):e}removeTokens(e){const t=e.startLineNumber-this._startLineNumber,n=e.endLineNumber-this._startLineNumber;this._startLineNumber+=this._tokens.removeTokens(t,e.startColumn-1,n,e.endColumn-1),this._updateEndLineNumber()}split(e){const t=e.startLineNumber-this._startLineNumber,n=e.endLineNumber-this._startLineNumber,[r,i,s]=this._tokens.split(t,e.startColumn-1,n,e.endColumn-1);return[new l(this._startLineNumber,r),new l(this._startLineNumber+s,i)]}applyEdit(e,t){const[n,r,i]=(0,a.W)(t);this.acceptEdit(e,n,r,i,t.length>0?t.charCodeAt(0):0)}acceptEdit(e,t,n,r,i){this._acceptDeleteRange(e),this._acceptInsertText(new s.y(e.startLineNumber,e.startColumn),t,n,r,i),this._updateEndLineNumber()}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return;const t=e.startLineNumber-this._startLineNumber,n=e.endLineNumber-this._startLineNumber;if(n<0){const e=n-t;return void(this._startLineNumber-=e)}const r=this._tokens.getMaxDeltaLine();if(!(t>=r+1)){if(t<0&&n>=r+1)return this._startLineNumber=0,void this._tokens.clear();if(t<0){const r=-t;this._startLineNumber-=r,this._tokens.acceptDeleteRange(e.startColumn-1,0,0,n,e.endColumn-1)}else this._tokens.acceptDeleteRange(0,t,e.startColumn-1,n,e.endColumn-1)}}_acceptInsertText(e,t,n,r,i){if(0===t&&0===n)return;const s=e.lineNumber-this._startLineNumber;if(s<0)return void(this._startLineNumber+=t);s>=this._tokens.getMaxDeltaLine()+1||this._tokens.acceptInsertText(s,e.column-1,t,n,r,i)}}class c{constructor(e){this._tokens=e,this._tokenCount=e.length/4}toString(e){const t=[];for(let n=0;n<this._tokenCount;n++)t.push(`(${this._getDeltaLine(n)+e},${this._getStartCharacter(n)}-${this._getEndCharacter(n)})`);return`[${t.join(",")}]`}getMaxDeltaLine(){const e=this._getTokenCount();return 0===e?-1:this._getDeltaLine(e-1)}getRange(){const e=this._getTokenCount();if(0===e)return null;const t=this._getStartCharacter(0),n=this._getDeltaLine(e-1),r=this._getEndCharacter(e-1);return new o.Q(0,t+1,n,r+1)}_getTokenCount(){return this._tokenCount}_getDeltaLine(e){return this._tokens[4*e]}_getStartCharacter(e){return this._tokens[4*e+1]}_getEndCharacter(e){return this._tokens[4*e+2]}isEmpty(){return 0===this._getTokenCount()}getLineTokens(e){let t=0,n=this._getTokenCount()-1;for(;t<n;){const r=t+Math.floor((n-t)/2),i=this._getDeltaLine(r);if(i<e)t=r+1;else{if(!(i>e)){let i=r;for(;i>t&&this._getDeltaLine(i-1)===e;)i--;let s=r;for(;s<n&&this._getDeltaLine(s+1)===e;)s++;return new h(this._tokens.subarray(4*i,4*s+4))}n=r-1}}return this._getDeltaLine(t)===e?new h(this._tokens.subarray(4*t,4*t+4)):null}clear(){this._tokenCount=0}removeTokens(e,t,n,r){const i=this._tokens,s=this._tokenCount;let o=0,a=!1,l=0;for(let c=0;c<s;c++){const s=4*c,h=i[s],u=i[s+1],d=i[s+2],g=i[s+3];if((h>e||h===e&&d>=t)&&(h<n||h===n&&u<=r))a=!0;else{if(0===o&&(l=h),a){const e=4*o;i[e]=h-l,i[e+1]=u,i[e+2]=d,i[e+3]=g}o++}}return this._tokenCount=o,l}split(e,t,n,r){const i=this._tokens,s=this._tokenCount,o=[],a=[];let l=o,h=0,u=0;for(let c=0;c<s;c++){const s=4*c,o=i[s],d=i[s+1],g=i[s+2],f=i[s+3];if(o>e||o===e&&g>=t){if(o<n||o===n&&d<=r)continue;l!==a&&(l=a,h=0,u=o)}l[h++]=o-u,l[h++]=d,l[h++]=g,l[h++]=f}return[new c(new Uint32Array(o)),new c(new Uint32Array(a)),u]}acceptDeleteRange(e,t,n,r,i){const s=this._tokens,o=this._tokenCount,a=r-t;let l=0,c=!1;for(let h=0;h<o;h++){const u=4*h;let d=s[u],g=s[u+1],f=s[u+2];const m=s[u+3];if(d<t||d===t&&f<=n){l++;continue}if(d===t&&g<n)d===r&&f>i?f-=i-n:f=n;else if(d===t&&g===n){if(!(d===r&&f>i)){c=!0;continue}f-=i-n}else if(d<r||d===r&&g<i){if(!(d===r&&f>i)){c=!0;continue}d=t,g=n,f=g+(f-i)}else if(d>r){if(0===a&&!c){l=o;break}d-=a}else{if(!(d===r&&g>=i))throw new Error("Not possible!");e&&0===d&&(g+=e,f+=e),d-=a,g-=i-n,f-=i-n}const p=4*l;s[p]=d,s[p+1]=g,s[p+2]=f,s[p+3]=m,l++}this._tokenCount=l}acceptInsertText(e,t,n,r,i,s){const o=0===n&&1===r&&(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122),a=this._tokens,l=this._tokenCount;for(let c=0;c<l;c++){const s=4*c;let l=a[s],h=a[s+1],u=a[s+2];if(!(l<e||l===e&&u<t)){if(l===e&&u===t){if(!o)continue;u+=1}else if(l===e&&h<t&&t<u)0===n?u+=r:u=t;else{if(l===e&&h===t&&o)continue;if(l===e)if(l+=n,0===n)h+=r,u+=r;else{const e=u-h;h=i+(h-t),u=h+e}else l+=n}a[s]=l,a[s+1]=h,a[s+2]=u}}}}class h{constructor(e){this._tokens=e}getCount(){return this._tokens.length/4}getStartCharacter(e){return this._tokens[4*e+1]}getEndCharacter(e){return this._tokens[4*e+2]}getMetadata(e){return this._tokens[4*e+3]}}var u=n(154),d=function(e,t,n,r){var i,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,n,o):i(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},g=function(e,t){return function(n,r){t(n,r,e)}};const f=!1;let m=class{constructor(e,t,n,r){this._legend=e,this._themeService=t,this._languageService=n,this._logService=r,this._hasWarnedOverlappingTokens=!1,this._hasWarnedInvalidLengthTokens=!1,this._hasWarnedInvalidEditStart=!1,this._hashTable=new _}getMetadata(e,t,n){const r=this._languageService.languageIdCodec.encodeLanguageId(n),i=this._hashTable.get(e,t,r);let s;if(i)s=i.metadata;else{let i=this._legend.tokenTypes[e];const o=[];if(i){let e=t;for(let t=0;e>0&&t<this._legend.tokenModifiers.length;t++)1&e&&o.push(this._legend.tokenModifiers[t]),e>>=1;f;const r=this._themeService.getColorTheme().getTokenStyleMetadata(i,o,n);if("undefined"===typeof r)s=2147483647;else{if(s=0,"undefined"!==typeof r.italic){s|=1|(r.italic?1:0)<<11}if("undefined"!==typeof r.bold){s|=2|(r.bold?2:0)<<11}if("undefined"!==typeof r.underline){s|=4|(r.underline?4:0)<<11}if("undefined"!==typeof r.strikethrough){s|=8|(r.strikethrough?8:0)<<11}if(r.foreground){s|=16|r.foreground<<15}0===s&&(s=2147483647)}}else s=2147483647,i="not-in-legend";this._hashTable.add(e,t,r,s)}return s}warnOverlappingSemanticTokens(e,t){this._hasWarnedOverlappingTokens||(this._hasWarnedOverlappingTokens=!0,this._logService.warn(`Overlapping semantic tokens detected at lineNumber ${e}, column ${t}`))}warnInvalidLengthSemanticTokens(e,t){this._hasWarnedInvalidLengthTokens||(this._hasWarnedInvalidLengthTokens=!0,this._logService.warn(`Semantic token with invalid length detected at lineNumber ${e}, column ${t}`))}warnInvalidEditStart(e,t,n,r,i){this._hasWarnedInvalidEditStart||(this._hasWarnedInvalidEditStart=!0,this._logService.warn(`Invalid semantic tokens edit detected (previousResultId: ${e}, resultId: ${t}) at edit #${n}: The provided start offset ${r} is outside the previous data (length ${i}).`))}};function p(e,t,n){const r=e.data,i=e.data.length/5|0,s=Math.max(Math.ceil(i/1024),400),o=[];let a=0,c=1,h=0;for(;a<i;){const e=a;let u=Math.min(e+s,i);if(u<i){let t=u;for(;t-1>e&&0===r[5*t];)t--;if(t-1===e){let e=u;for(;e+1<i&&0===r[5*e];)e++;u=e}else u=t}let d=new Uint32Array(4*(u-e)),g=0,f=0,m=0,p=0;for(;a<u;){const e=5*a,i=r[e],s=r[e+1],o=c+i|0,l=0===i?h+s|0:s,u=l+r[e+2]|0,b=r[e+3],_=r[e+4];if(u<=l)t.warnInvalidLengthSemanticTokens(o,l+1);else if(m===o&&p>l)t.warnOverlappingSemanticTokens(o,l+1);else{const e=t.getMetadata(b,_,n);2147483647!==e&&(0===f&&(f=o),d[g]=o-f,d[g+1]=l,d[g+2]=u,d[g+3]=e,g+=4,m=o,p=u)}c=o,h=l,a++}g!==d.length&&(d=d.subarray(0,g));const b=l.create(f,d);o.push(b)}return o}m=d([g(1,r.Gy),g(2,u.L),g(3,i.rr)],m);class b{constructor(e,t,n,r){this.tokenTypeIndex=e,this.tokenModifierSet=t,this.languageId=n,this.metadata=r,this.next=null}}class _{static{this._SIZES=[3,7,13,31,61,127,251,509,1021,2039,4093,8191,16381,32749,65521,131071,262139,524287,1048573,2097143]}constructor(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=_._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<_._SIZES.length?2/3*this._currentLength:0),this._elements=[],_._nullOutEntries(this._elements,this._currentLength)}static _nullOutEntries(e,t){for(let n=0;n<t;n++)e[n]=null}_hash2(e,t){return(e<<5)-e+t|0}_hashFunc(e,t,n){return this._hash2(this._hash2(e,t),n)%this._currentLength}get(e,t,n){const r=this._hashFunc(e,t,n);let i=this._elements[r];for(;i;){if(i.tokenTypeIndex===e&&i.tokenModifierSet===t&&i.languageId===n)return i;i=i.next}return null}add(e,t,n,r){if(this._elementsCount++,0!==this._growCount&&this._elementsCount>=this._growCount){const e=this._elements;this._currentLengthIndex++,this._currentLength=_._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<_._SIZES.length?2/3*this._currentLength:0),this._elements=[],_._nullOutEntries(this._elements,this._currentLength);for(const t of e){let e=t;for(;e;){const t=e.next;e.next=null,this._add(e),e=t}}}this._add(new b(e,t,n,r))}_add(e){const t=this._hashFunc(e.tokenTypeIndex,e.tokenModifierSet,e.languageId);e.next=this._elements[t],this._elements[t]=e}}},5600:(e,t,n)=>{"use strict";n.d(t,{e2:()=>o,sN:()=>i,v7:()=>h});var r=n(1508);function i(e,t){switch(typeof e){case"object":return null===e?s(349,t):Array.isArray(e)?(n=e,r=s(104579,r=t),n.reduce(((e,t)=>i(t,e)),r)):function(e,t){return t=s(181387,t),Object.keys(e).sort().reduce(((t,n)=>(t=o(n,t),i(e[n],t))),t)}(e,t);case"string":return o(e,t);case"boolean":return function(e,t){return s(e?433:863,t)}(e,t);case"number":return s(e,t);case"undefined":return s(937,t);default:return s(617,t)}var n,r}function s(e,t){return(t<<5)-t+e|0}function o(e,t){t=s(149417,t);for(let n=0,r=e.length;n<r;n++)t=s(e.charCodeAt(n),t);return t}function a(e,t,n=32){const r=n-t;return(e<<t|(~((1<<r)-1)&e)>>>r)>>>0}function l(e,t=0,n=e.byteLength,r=0){for(let i=0;i<n;i++)e[t+i]=r}function c(e,t=32){return e instanceof ArrayBuffer?Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join(""):function(e,t,n="0"){for(;e.length<t;)e=n+e;return e}((e>>>0).toString(16),t/4)}class h{static{this._bigBlock32=new DataView(new ArrayBuffer(320))}constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(0===t)return;const n=this._buff;let i,s,o=this._buffLen,a=this._leftoverHighSurrogate;for(0!==a?(i=a,s=-1,a=0):(i=e.charCodeAt(0),s=0);;){let l=i;if(r.pc(i)){if(!(s+1<t)){a=i;break}{const t=e.charCodeAt(s+1);r.LJ(t)?(s++,l=r.z_(i,t)):l=65533}}else r.LJ(i)&&(l=65533);if(o=this._push(n,o,l),s++,!(s<t))break;i=e.charCodeAt(s)}this._buffLen=o,this._leftoverHighSurrogate=a}_push(e,t,n){return n<128?e[t++]=n:n<2048?(e[t++]=192|(1984&n)>>>6,e[t++]=128|(63&n)>>>0):n<65536?(e[t++]=224|(61440&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0):(e[t++]=240|(1835008&n)>>>18,e[t++]=128|(258048&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>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()),c(this._h0)+c(this._h1)+c(this._h2)+c(this._h3)+c(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,l(this._buff,this._buffLen),this._buffLen>56&&(this._step(),l(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=h._bigBlock32,t=this._buffDV;for(let a=0;a<64;a+=4)e.setUint32(a,t.getUint32(a,!1),!1);for(let h=64;h<320;h+=4)e.setUint32(h,a(e.getUint32(h-12,!1)^e.getUint32(h-32,!1)^e.getUint32(h-56,!1)^e.getUint32(h-64,!1),1),!1);let n,r,i,s=this._h0,o=this._h1,l=this._h2,c=this._h3,u=this._h4;for(let h=0;h<80;h++)h<20?(n=o&l|~o&c,r=1518500249):h<40?(n=o^l^c,r=1859775393):h<60?(n=o&l|o&c|l&c,r=2400959708):(n=o^l^c,r=3395469782),i=a(s,5)+n+u+r+e.getUint32(4*h,!1)&4294967295,u=c,c=l,l=a(o,30),o=s,s=i;this._h0=this._h0+s&4294967295,this._h1=this._h1+o&4294967295,this._h2=this._h2+l&4294967295,this._h3=this._h3+c&4294967295,this._h4=this._h4+u&4294967295}}},5628:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getIconClasses:()=>d});var r,i=n(6456),s=n(9403),o=n(9400),a=n(3941);!function(e){e[e.FILE=0]="FILE",e[e.FOLDER=1]="FOLDER",e[e.ROOT_FOLDER=2]="ROOT_FOLDER"}(r||(r={}));var l,c,h=n(9493);!function(e){e.isThemeColor=function(e){return e&&"object"===typeof e&&"string"===typeof e.id}}(l||(l={})),function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9-]+",e.iconModifierExpression="~[A-Za-z]+",e.iconNameCharacter="[A-Za-z0-9~-]";const t=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function n(e){const r=t.exec(e.id);if(!r)return n(h.W.error);const[,i,s]=r,o=["codicon","codicon-"+i];return s&&o.push("codicon-modifier-"+s.substring(1)),o}e.asClassNameArray=n,e.asClassName=function(e){return n(e).join(" ")},e.asCSSSelector=function(e){return"."+n(e).join(".")},e.isThemeIcon=function(e){return e&&"object"===typeof e&&"string"===typeof e.id&&("undefined"===typeof e.color||l.isThemeColor(e.color))};const r=new RegExp(`^\\$\\((${e.iconNameExpression}(?:${e.iconModifierExpression})?)\\)$`);e.fromString=function(e){const t=r.exec(e);if(!t)return;const[,n]=t;return{id:n}},e.fromId=function(e){return{id:e}},e.modify=function(e,t){let n=e.id;const r=n.lastIndexOf("~");return-1!==r&&(n=n.substring(0,r)),t&&(n=`${n}~${t}`),{id:n}},e.getModifier=function(e){const t=e.id.lastIndexOf("~");if(-1!==t)return e.id.substring(t+1)},e.isEqual=function(e,t){return e.id===t.id&&e.color?.id===t.color?.id}}(c||(c={}));const u=/(?:\/|^)(?:([^\/]+)\/)?([^\/]+)$/;function d(e,t,n,l,h){if(c.isThemeIcon(h))return[`codicon-${h.id}`,"predefined-file-icon"];if(o.r.isUri(h))return[];const d=l===r.ROOT_FOLDER?["rootfolder-icon"]:l===r.FOLDER?["folder-icon"]:["file-icon"];if(n){let o;if(n.scheme===i.ny.data){o=s.B6.parseMetaData(n).get(s.B6.META_DATA_LABEL)}else{const e=n.path.match(u);e?(o=g(e[2].toLowerCase()),e[1]&&d.push(`${g(e[1].toLowerCase())}-name-dir-icon`)):o=g(n.authority.toLowerCase())}if(l===r.ROOT_FOLDER)d.push(`${o}-root-name-folder-icon`);else if(l===r.FOLDER)d.push(`${o}-name-folder-icon`);else{if(o){if(d.push(`${o}-name-file-icon`),d.push("name-file-icon"),o.length<=255){const e=o.split(".");for(let t=1;t<e.length;t++)d.push(`${e.slice(t).join(".")}-ext-file-icon`)}d.push("ext-file-icon")}const r=function(e,t,n){if(!n)return null;let r=null;if(n.scheme===i.ny.data){const e=s.B6.parseMetaData(n).get(s.B6.META_DATA_MIME);e&&(r=t.getLanguageIdByMimeType(e))}else{const t=e.getModel(n);t&&(r=t.getLanguageId())}if(r&&r!==a.vH)return r;return t.guessLanguageIdByFilepathOrFirstLine(n)}(e,t,n);r&&d.push(`${g(r)}-lang-file-icon`)}}return d}function g(e){return e.replace(/[\s]/g,"/")}},5724:(e,t,n)=>{"use strict";n.d(t,{Gy:()=>l,zy:()=>u,Yf:()=>c});var r,i=n(1234),s=n(1484),o=n(3591),a=n(6359);!function(e){e.DARK="dark",e.LIGHT="light",e.HIGH_CONTRAST_DARK="hcDark",e.HIGH_CONTRAST_LIGHT="hcLight"}(r||(r={}));const l=(0,o.u1)("themeService");function c(e){return{id:e}}const h=new class{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new i.vl}onColorThemeChange(e){return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),(0,s.s)((()=>{const t=this.themingParticipants.indexOf(e);this.themingParticipants.splice(t,1)}))}getThemingParticipants(){return this.themingParticipants}};function u(e){return h.onColorThemeChange(e)}a.O.add("base.contributions.theming",h);s.jG},5845:(e,t,n)=>{"use strict";n.d(t,{buw:()=>S,b1q:()=>w,YtV:()=>I,Ubg:()=>q,IIb:()=>z,pOz:()=>V,whs:()=>B,Stt:()=>P,Hng:()=>F,yLC:()=>le,KoI:()=>oe,uMG:()=>ae,x1A:()=>u});var r=n(6782),i=n(1940),s=n(7661),o=n(1234),a=n(8748),l=n(6359),c=n(8209);const h=new class{constructor(){this._onDidChangeSchema=new o.vl,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}registerColor(e,t,n,r=!1,i){const s={id:e,description:n,defaults:t,needsTransparency:r,deprecationMessage:i};this.colorsById[e]=s;const o={type:"string",format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return i&&(o.deprecationMessage=i),r&&(o.pattern="^#(?:(?<rgba>[0-9a-fA-f]{3}[0-9a-eA-E])|(?:[0-9a-fA-F]{6}(?:(?![fF]{2})(?:[0-9a-fA-F]{2}))))?$",o.patternErrorMessage=c.kg("transparecyRequired","This color must be transparent or it will obscure content")),this.colorSchema.properties[e]={description:n,oneOf:[o,{type:"string",const:"default",description:c.kg("useDefault","Use the default color.")}]},this.colorReferenceSchema.enum.push(e),this.colorReferenceSchema.enumDescriptions.push(n),this._onDidChangeSchema.fire(),e}getColors(){return Object.keys(this.colorsById).map((e=>this.colorsById[e]))}resolveDefaultColor(e,t){const n=this.colorsById[e];if(n?.defaults){return b(null!==(r=n.defaults)&&"object"===typeof r&&"light"in r&&"dark"in r?n.defaults[t.type]:n.defaults,t)}var r}getColorSchema(){return this.colorSchema}toString(){return Object.keys(this.colorsById).sort(((e,t)=>{const n=-1===e.indexOf(".")?0:1,r=-1===t.indexOf(".")?0:1;return n!==r?n-r:e.localeCompare(t)})).map((e=>`- \`${e}\`: ${this.colorsById[e].description}`)).join("\n")}};function u(e,t,n,r,i){return h.registerColor(e,t,n,r,i)}function d(e,t){return{op:0,value:e,factor:t}}function g(e,t){return{op:1,value:e,factor:t}}function f(e,t){return{op:2,value:e,factor:t}}function m(...e){return{op:4,values:e}}function p(e,t,n,r){return{op:5,value:e,background:t,factor:n,transparency:r}}function b(e,t){if(null!==e)return"string"===typeof e?"#"===e[0]?s.Q1.fromHex(e):t.getColor(e):e instanceof s.Q1?e:"object"===typeof e?function(e,t){switch(e.op){case 0:return b(e.value,t)?.darken(e.factor);case 1:return b(e.value,t)?.lighten(e.factor);case 2:return b(e.value,t)?.transparent(e.factor);case 3:{const n=b(e.background,t);return n?b(e.value,t)?.makeOpaque(n):b(e.value,t)}case 4:for(const n of e.values){const e=b(n,t);if(e)return e}return;case 6:return b(t.defines(e.if)?e.then:e.else,t);case 5:{const n=b(e.value,t);if(!n)return;const r=b(e.background,t);return r?n.isDarkerThan(r)?s.Q1.getLighterColor(n,r,e.factor).transparent(e.transparency):s.Q1.getDarkerColor(n,r,e.factor).transparent(e.transparency):n.transparent(e.factor*e.transparency)}default:throw(0,r.xb)(e)}}(e,t):void 0}l.O.add("base.contributions.colors",h);const _="vscode://schemas/workbench-colors",k=l.O.as(a.F.JSONContribution);k.registerSchema(_,h.getColorSchema());const v=new i.uC((()=>k.notifySchemaChanged(_)),200);h.onDidChangeSchema((()=>{v.isScheduled()||v.schedule()}));const C=u("foreground",{dark:"#CCCCCC",light:"#616161",hcDark:"#FFFFFF",hcLight:"#292929"},c.kg("foreground","Overall foreground color. This color is only used if not overridden by a component.")),y=(u("disabledForeground",{dark:"#CCCCCC80",light:"#61616180",hcDark:"#A5A5A5",hcLight:"#7F7F7F"},c.kg("disabledForeground","Overall foreground for disabled elements. This color is only used if not overridden by a component.")),u("errorForeground",{dark:"#F48771",light:"#A1260D",hcDark:"#F48771",hcLight:"#B5200D"},c.kg("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),u("descriptionForeground",{light:"#717171",dark:f(C,.7),hcDark:f(C,.7),hcLight:f(C,.7)},c.kg("descriptionForeground","Foreground color for description text providing additional information, for example for a label.")),u("icon.foreground",{dark:"#C5C5C5",light:"#424242",hcDark:"#FFFFFF",hcLight:"#292929"},c.kg("iconForeground","The default color for icons in the workbench."))),L=u("focusBorder",{dark:"#007FD4",light:"#0090F1",hcDark:"#F38518",hcLight:"#006BBD"},c.kg("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),w=u("contrastBorder",{light:null,dark:null,hcDark:"#6FC3DF",hcLight:"#0F4A85"},c.kg("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),S=u("contrastActiveBorder",{light:null,dark:null,hcDark:L,hcLight:L},c.kg("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),x=(u("selection.background",null,c.kg("selectionBackground","The background color of text selections in the workbench (e.g. for input fields or text areas). Note that this does not apply to selections within the editor.")),u("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},c.kg("textLinkForeground","Foreground color for links in text.")),u("textLink.activeForeground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},c.kg("textLinkActiveForeground","Foreground color for links in text when clicked on and on mouse hover.")),u("textSeparator.foreground",{light:"#0000002e",dark:"#ffffff2e",hcDark:s.Q1.black,hcLight:"#292929"},c.kg("textSeparatorForeground","Color for text separators.")),u("textPreformat.foreground",{light:"#A31515",dark:"#D7BA7D",hcDark:"#000000",hcLight:"#FFFFFF"},c.kg("textPreformatForeground","Foreground color for preformatted text segments.")),u("textPreformat.background",{light:"#0000001A",dark:"#FFFFFF1A",hcDark:"#FFFFFF",hcLight:"#09345f"},c.kg("textPreformatBackground","Background color for preformatted text segments.")),u("textBlockQuote.background",{light:"#f2f2f2",dark:"#222222",hcDark:null,hcLight:"#F2F2F2"},c.kg("textBlockQuoteBackground","Background color for block quotes in text.")),u("textBlockQuote.border",{light:"#007acc80",dark:"#007acc80",hcDark:s.Q1.white,hcLight:"#292929"},c.kg("textBlockQuoteBorder","Border color for block quotes in text.")),u("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hcDark:s.Q1.black,hcLight:"#F2F2F2"},c.kg("textCodeBlockBackground","Background color for code blocks in text.")),u("sash.hoverBorder",L,c.kg("sashActiveBorder","Border color of active sashes.")),u("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hcDark:s.Q1.black,hcLight:"#0F4A85"},c.kg("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count."))),E=(u("badge.foreground",{dark:s.Q1.white,light:"#333",hcDark:s.Q1.white,hcLight:s.Q1.white},c.kg("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),u("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hcDark:null,hcLight:null},c.kg("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled."))),N=u("scrollbarSlider.background",{dark:s.Q1.fromHex("#797979").transparent(.4),light:s.Q1.fromHex("#646464").transparent(.4),hcDark:f(w,.6),hcLight:f(w,.4)},c.kg("scrollbarSliderBackground","Scrollbar slider background color.")),T=u("scrollbarSlider.hoverBackground",{dark:s.Q1.fromHex("#646464").transparent(.7),light:s.Q1.fromHex("#646464").transparent(.7),hcDark:f(w,.8),hcLight:f(w,.8)},c.kg("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),A=u("scrollbarSlider.activeBackground",{dark:s.Q1.fromHex("#BFBFBF").transparent(.4),light:s.Q1.fromHex("#000000").transparent(.6),hcDark:w,hcLight:w},c.kg("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),I=(u("progressBar.background",{dark:s.Q1.fromHex("#0E70C0"),light:s.Q1.fromHex("#0E70C0"),hcDark:w,hcLight:w},c.kg("progressBarBackground","Background color of the progress bar that can show for long running operations.")),u("editor.background",{light:"#ffffff",dark:"#1E1E1E",hcDark:s.Q1.black,hcLight:s.Q1.white},c.kg("editorBackground","Editor background color."))),O=(u("editor.foreground",{light:"#333333",dark:"#BBBBBB",hcDark:s.Q1.white,hcLight:C},c.kg("editorForeground","Editor default foreground color.")),u("editorStickyScroll.background",I,c.kg("editorStickyScrollBackground","Background color of sticky scroll in the editor")),u("editorStickyScrollHover.background",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:null,hcLight:s.Q1.fromHex("#0F4A85").transparent(.1)},c.kg("editorStickyScrollHoverBackground","Background color of sticky scroll on hover in the editor")),u("editorStickyScroll.border",{dark:null,light:null,hcDark:w,hcLight:w},c.kg("editorStickyScrollBorder","Border color of sticky scroll in the editor")),u("editorStickyScroll.shadow",E,c.kg("editorStickyScrollShadow"," Shadow color of sticky scroll in the editor")),u("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hcDark:"#0C141F",hcLight:s.Q1.white},c.kg("editorWidgetBackground","Background color of editor widgets, such as find/replace."))),M=u("editorWidget.foreground",C,c.kg("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),R=u("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hcDark:w,hcLight:w},c.kg("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),D=(u("editorWidget.resizeBorder",null,c.kg("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),u("editorError.background",null,c.kg("editorError.background","Background color of error text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),u("editorError.foreground",{dark:"#F14C4C",light:"#E51400",hcDark:"#F48771",hcLight:"#B5200D"},c.kg("editorError.foreground","Foreground color of error squigglies in the editor."))),B=(u("editorError.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#E47777").transparent(.8),hcLight:"#B5200D"},c.kg("errorBorder","If set, color of double underlines for errors in the editor.")),u("editorWarning.background",null,c.kg("editorWarning.background","Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0)),F=u("editorWarning.foreground",{dark:"#CCA700",light:"#BF8803",hcDark:"#FFD370",hcLight:"#895503"},c.kg("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),P=u("editorWarning.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#FFCC00").transparent(.8),hcLight:s.Q1.fromHex("#FFCC00").transparent(.8)},c.kg("warningBorder","If set, color of double underlines for warnings in the editor.")),V=(u("editorInfo.background",null,c.kg("editorInfo.background","Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),u("editorInfo.foreground",{dark:"#3794FF",light:"#1a85ff",hcDark:"#3794FF",hcLight:"#1a85ff"},c.kg("editorInfo.foreground","Foreground color of info squigglies in the editor."))),z=u("editorInfo.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#3794FF").transparent(.8),hcLight:"#292929"},c.kg("infoBorder","If set, color of double underlines for infos in the editor.")),j=(u("editorHint.foreground",{dark:s.Q1.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hcDark:null,hcLight:null},c.kg("editorHint.foreground","Foreground color of hint squigglies in the editor.")),u("editorHint.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#eeeeee").transparent(.8),hcLight:"#292929"},c.kg("hintBorder","If set, color of double underlines for hints in the editor.")),u("editorLink.activeForeground",{dark:"#4E94CE",light:s.Q1.blue,hcDark:s.Q1.cyan,hcLight:"#292929"},c.kg("activeLinkForeground","Color of active links.")),u("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hcDark:"#f3f518",hcLight:"#0F4A85"},c.kg("editorSelectionBackground","Color of the editor selection."))),q=(u("editor.selectionForeground",{light:null,dark:null,hcDark:"#000000",hcLight:s.Q1.white},c.kg("editorSelectionForeground","Color of the selected text for high contrast.")),u("editor.inactiveSelectionBackground",{light:f(j,.5),dark:f(j,.5),hcDark:f(j,.7),hcLight:f(j,.5)},c.kg("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),u("editor.selectionHighlightBackground",{light:p(j,I,.3,.6),dark:p(j,I,.3,.6),hcDark:null,hcLight:null},c.kg("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),u("editor.selectionHighlightBorder",{light:null,dark:null,hcDark:S,hcLight:S},c.kg("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),u("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hcDark:null,hcLight:null},c.kg("editorFindMatch","Color of the current search match.")),u("editor.findMatchForeground",null,c.kg("editorFindMatchForeground","Text color of the current search match.")),u("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hcDark:null,hcLight:null},c.kg("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0)),W=(u("editor.findMatchHighlightForeground",null,c.kg("findMatchHighlightForeground","Foreground color of the other search matches."),!0),u("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hcDark:null,hcLight:null},c.kg("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),u("editor.findMatchBorder",{light:null,dark:null,hcDark:S,hcLight:S},c.kg("editorFindMatchBorder","Border color of the current search match.")),u("editor.findMatchHighlightBorder",{light:null,dark:null,hcDark:S,hcLight:S},c.kg("findMatchHighlightBorder","Border color of the other search matches."))),U=(u("editor.findRangeHighlightBorder",{dark:null,light:null,hcDark:f(S,.4),hcLight:f(S,.4)},c.kg("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),u("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hcDark:"#ADD6FF26",hcLight:null},c.kg("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),u("editorHoverWidget.background",O,c.kg("hoverBackground","Background color of the editor hover."))),$=(u("editorHoverWidget.foreground",M,c.kg("hoverForeground","Foreground color of the editor hover.")),u("editorHoverWidget.border",R,c.kg("hoverBorder","Border color of the editor hover.")),u("editorHoverWidget.statusBarBackground",{dark:g(U,.2),light:d(U,.05),hcDark:O,hcLight:O},c.kg("statusBarBackground","Background color of the editor hover status bar.")),u("editorInlayHint.foreground",{dark:"#969696",light:"#969696",hcDark:s.Q1.white,hcLight:s.Q1.black},c.kg("editorInlayHintForeground","Foreground color of inline hints"))),H=u("editorInlayHint.background",{dark:f(x,.1),light:f(x,.1),hcDark:f(s.Q1.white,.1),hcLight:f(x,.1)},c.kg("editorInlayHintBackground","Background color of inline hints")),K=(u("editorInlayHint.typeForeground",$,c.kg("editorInlayHintForegroundTypes","Foreground color of inline hints for types")),u("editorInlayHint.typeBackground",H,c.kg("editorInlayHintBackgroundTypes","Background color of inline hints for types")),u("editorInlayHint.parameterForeground",$,c.kg("editorInlayHintForegroundParameter","Foreground color of inline hints for parameters")),u("editorInlayHint.parameterBackground",H,c.kg("editorInlayHintBackgroundParameter","Background color of inline hints for parameters")),u("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hcDark:"#FFCC00",hcLight:"#007ACC"},c.kg("editorLightBulbForeground","The color used for the lightbulb actions icon."))),G=(u("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},c.kg("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),u("editorLightBulbAi.foreground",K,c.kg("editorLightBulbAiForeground","The color used for the lightbulb AI icon.")),u("editor.snippetTabstopHighlightBackground",{dark:new s.Q1(new s.bU(124,124,124,.3)),light:new s.Q1(new s.bU(10,50,100,.2)),hcDark:new s.Q1(new s.bU(124,124,124,.3)),hcLight:new s.Q1(new s.bU(10,50,100,.2))},c.kg("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),u("editor.snippetTabstopHighlightBorder",null,c.kg("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),u("editor.snippetFinalTabstopHighlightBackground",null,c.kg("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),u("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new s.Q1(new s.bU(10,50,100,.5)),hcDark:"#525252",hcLight:"#292929"},c.kg("snippetFinalTabstopHighlightBorder","Highlight border color of the final tabstop of a snippet.")),new s.Q1(new s.bU(155,185,85,.2))),Q=new s.Q1(new s.bU(255,0,0,.2)),J=(u("diffEditor.insertedTextBackground",{dark:"#9ccc2c33",light:"#9ccc2c40",hcDark:null,hcLight:null},c.kg("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),u("diffEditor.removedTextBackground",{dark:"#ff000033",light:"#ff000033",hcDark:null,hcLight:null},c.kg("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),u("diffEditor.insertedLineBackground",{dark:G,light:G,hcDark:null,hcLight:null},c.kg("diffEditorInsertedLines","Background color for lines that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),u("diffEditor.removedLineBackground",{dark:Q,light:Q,hcDark:null,hcLight:null},c.kg("diffEditorRemovedLines","Background color for lines that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),u("diffEditorGutter.insertedLineBackground",null,c.kg("diffEditorInsertedLineGutter","Background color for the margin where lines got inserted.")),u("diffEditorGutter.removedLineBackground",null,c.kg("diffEditorRemovedLineGutter","Background color for the margin where lines got removed.")),u("diffEditorOverview.insertedForeground",null,c.kg("diffEditorOverviewInserted","Diff overview ruler foreground for inserted content.")),u("diffEditorOverview.removedForeground",null,c.kg("diffEditorOverviewRemoved","Diff overview ruler foreground for removed content.")),u("diffEditor.insertedTextBorder",{dark:null,light:null,hcDark:"#33ff2eff",hcLight:"#374E06"},c.kg("diffEditorInsertedOutline","Outline color for the text that got inserted.")),u("diffEditor.removedTextBorder",{dark:null,light:null,hcDark:"#FF008F",hcLight:"#AD0707"},c.kg("diffEditorRemovedOutline","Outline color for text that got removed.")),u("diffEditor.border",{dark:null,light:null,hcDark:w,hcLight:w},c.kg("diffEditorBorder","Border color between the two text editors.")),u("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hcDark:null,hcLight:null},c.kg("diffDiagonalFill","Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.")),u("diffEditor.unchangedRegionBackground","sideBar.background",c.kg("diffEditor.unchangedRegionBackground","The background color of unchanged blocks in the diff editor.")),u("diffEditor.unchangedRegionForeground","foreground",c.kg("diffEditor.unchangedRegionForeground","The foreground color of unchanged blocks in the diff editor.")),u("diffEditor.unchangedCodeBackground",{dark:"#74747429",light:"#b8b8b829",hcDark:null,hcLight:null},c.kg("diffEditor.unchangedCodeBackground","The background color of unchanged code in the diff editor.")),u("widget.shadow",{dark:f(s.Q1.black,.36),light:f(s.Q1.black,.16),hcDark:null,hcLight:null},c.kg("widgetShadow","Shadow color of widgets such as find/replace inside the editor."))),X=(u("widget.border",{dark:null,light:null,hcDark:w,hcLight:w},c.kg("widgetBorder","Border color of widgets such as find/replace inside the editor.")),u("toolbar.hoverBackground",{dark:"#5a5d5e50",light:"#b8b8b850",hcDark:null,hcLight:null},c.kg("toolbarHoverBackground","Toolbar background when hovering over actions using the mouse"))),Y=(u("toolbar.hoverOutline",{dark:null,light:null,hcDark:S,hcLight:S},c.kg("toolbarHoverOutline","Toolbar outline when hovering over actions using the mouse")),u("toolbar.activeBackground",{dark:g(X,.1),light:d(X,.1),hcDark:null,hcLight:null},c.kg("toolbarActiveBackground","Toolbar background when holding the mouse over actions")),u("breadcrumb.foreground",f(C,.8),c.kg("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),u("breadcrumb.background",I,c.kg("breadcrumbsBackground","Background color of breadcrumb items.")),u("breadcrumb.focusForeground",{light:d(C,.2),dark:g(C,.1),hcDark:g(C,.1),hcLight:g(C,.1)},c.kg("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),u("breadcrumb.activeSelectionForeground",{light:d(C,.2),dark:g(C,.1),hcDark:g(C,.1),hcLight:g(C,.1)},c.kg("breadcrumbsSelectedForeground","Color of selected breadcrumb items.")),u("breadcrumbPicker.background",O,c.kg("breadcrumbsSelectedBackground","Background color of breadcrumb item picker.")),s.Q1.fromHex("#40C8AE").transparent(.5)),Z=s.Q1.fromHex("#40A6FF").transparent(.5),ee=s.Q1.fromHex("#606060").transparent(.4),te=u("merge.currentHeaderBackground",{dark:Y,light:Y,hcDark:null,hcLight:null},c.kg("mergeCurrentHeaderBackground","Current header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),ne=(u("merge.currentContentBackground",f(te,.4),c.kg("mergeCurrentContentBackground","Current content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),u("merge.incomingHeaderBackground",{dark:Z,light:Z,hcDark:null,hcLight:null},c.kg("mergeIncomingHeaderBackground","Incoming header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0)),re=(u("merge.incomingContentBackground",f(ne,.4),c.kg("mergeIncomingContentBackground","Incoming content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),u("merge.commonHeaderBackground",{dark:ee,light:ee,hcDark:null,hcLight:null},c.kg("mergeCommonHeaderBackground","Common ancestor header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0)),ie=(u("merge.commonContentBackground",f(re,.4),c.kg("mergeCommonContentBackground","Common ancestor content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),u("merge.border",{dark:null,light:null,hcDark:"#C3DF6F",hcLight:"#007ACC"},c.kg("mergeBorder","Border color on headers and the splitter in inline merge-conflicts."))),se=(u("editorOverviewRuler.currentContentForeground",{dark:f(te,1),light:f(te,1),hcDark:ie,hcLight:ie},c.kg("overviewRulerCurrentContentForeground","Current overview ruler foreground for inline merge-conflicts.")),u("editorOverviewRuler.incomingContentForeground",{dark:f(ne,1),light:f(ne,1),hcDark:ie,hcLight:ie},c.kg("overviewRulerIncomingContentForeground","Incoming overview ruler foreground for inline merge-conflicts.")),u("editorOverviewRuler.commonContentForeground",{dark:f(re,1),light:f(re,1),hcDark:ie,hcLight:ie},c.kg("overviewRulerCommonContentForeground","Common ancestor overview ruler foreground for inline merge-conflicts.")),u("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hcDark:"#AB5A00",hcLight:"#AB5A00"},c.kg("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0),u("editorOverviewRuler.selectionHighlightForeground","#A0A0A0CC",c.kg("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),u("problemsErrorIcon.foreground",D,c.kg("problemsErrorIconForeground","The color used for the problems error icon.")),u("problemsWarningIcon.foreground",F,c.kg("problemsWarningIconForeground","The color used for the problems warning icon.")),u("problemsInfoIcon.foreground",V,c.kg("problemsInfoIconForeground","The color used for the problems info icon.")),u("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hcDark:"#AB5A00",hcLight:"#0F4A85"},c.kg("minimapFindMatchHighlight","Minimap marker color for find matches."),!0)),oe=(u("minimap.selectionOccurrenceHighlight",{light:"#c9c9c9",dark:"#676767",hcDark:"#ffffff",hcLight:"#0F4A85"},c.kg("minimapSelectionOccurrenceHighlight","Minimap marker color for repeating editor selections."),!0),u("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hcDark:"#ffffff",hcLight:"#0F4A85"},c.kg("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),u("minimap.infoHighlight",{dark:V,light:V,hcDark:z,hcLight:z},c.kg("minimapInfo","Minimap marker color for infos."))),ae=u("minimap.warningHighlight",{dark:F,light:F,hcDark:P,hcLight:P},c.kg("overviewRuleWarning","Minimap marker color for warnings.")),le=u("minimap.errorHighlight",{dark:new s.Q1(new s.bU(255,18,18,.7)),light:new s.Q1(new s.bU(255,18,18,.7)),hcDark:new s.Q1(new s.bU(255,50,50,1)),hcLight:"#B5200D"},c.kg("minimapError","Minimap marker color for errors.")),ce=(u("minimap.background",null,c.kg("minimapBackground","Minimap background color.")),u("minimap.foregroundOpacity",s.Q1.fromHex("#000f"),c.kg("minimapForegroundOpacity",'Opacity of foreground elements rendered in the minimap. For example, "#000000c0" will render the elements with 75% opacity.')),u("minimapSlider.background",f(N,.5),c.kg("minimapSliderBackground","Minimap slider background color.")),u("minimapSlider.hoverBackground",f(T,.5),c.kg("minimapSliderHoverBackground","Minimap slider background color when hovering.")),u("minimapSlider.activeBackground",f(A,.5),c.kg("minimapSliderActiveBackground","Minimap slider background color when clicked on.")),u("charts.foreground",C,c.kg("chartsForeground","The foreground color used in charts.")),u("charts.lines",f(C,.5),c.kg("chartsLines","The color used for horizontal lines in charts.")),u("charts.red",D,c.kg("chartsRed","The red color used in chart visualizations.")),u("charts.blue",V,c.kg("chartsBlue","The blue color used in chart visualizations.")),u("charts.yellow",F,c.kg("chartsYellow","The yellow color used in chart visualizations.")),u("charts.orange",se,c.kg("chartsOrange","The orange color used in chart visualizations.")),u("charts.green",{dark:"#89D185",light:"#388A34",hcDark:"#89D185",hcLight:"#374e06"},c.kg("chartsGreen","The green color used in chart visualizations.")),u("charts.purple",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},c.kg("chartsPurple","The purple color used in chart visualizations.")),u("input.background",{dark:"#3C3C3C",light:s.Q1.white,hcDark:s.Q1.black,hcLight:s.Q1.white},c.kg("inputBoxBackground","Input box background.")),u("input.foreground",C,c.kg("inputBoxForeground","Input box foreground.")),u("input.border",{dark:null,light:null,hcDark:w,hcLight:w},c.kg("inputBoxBorder","Input box border.")),u("inputOption.activeBorder",{dark:"#007ACC",light:"#007ACC",hcDark:w,hcLight:w},c.kg("inputBoxActiveOptionBorder","Border color of activated options in input fields."))),he=u("inputOption.hoverBackground",{dark:"#5a5d5e80",light:"#b8b8b850",hcDark:null,hcLight:null},c.kg("inputOption.hoverBackground","Background color of activated options in input fields.")),ue=u("inputOption.activeBackground",{dark:f(L,.4),light:f(L,.2),hcDark:s.Q1.transparent,hcLight:s.Q1.transparent},c.kg("inputOption.activeBackground","Background hover color of options in input fields.")),de=u("inputOption.activeForeground",{dark:s.Q1.white,light:s.Q1.black,hcDark:C,hcLight:C},c.kg("inputOption.activeForeground","Foreground color of activated options in input fields.")),ge=(u("input.placeholderForeground",{light:f(C,.5),dark:f(C,.5),hcDark:f(C,.7),hcLight:f(C,.7)},c.kg("inputPlaceholderForeground","Input box foreground color for placeholder text.")),u("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hcDark:s.Q1.black,hcLight:s.Q1.white},c.kg("inputValidationInfoBackground","Input validation background color for information severity.")),u("inputValidation.infoForeground",{dark:null,light:null,hcDark:null,hcLight:C},c.kg("inputValidationInfoForeground","Input validation foreground color for information severity.")),u("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hcDark:w,hcLight:w},c.kg("inputValidationInfoBorder","Input validation border color for information severity.")),u("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hcDark:s.Q1.black,hcLight:s.Q1.white},c.kg("inputValidationWarningBackground","Input validation background color for warning severity.")),u("inputValidation.warningForeground",{dark:null,light:null,hcDark:null,hcLight:C},c.kg("inputValidationWarningForeground","Input validation foreground color for warning severity.")),u("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hcDark:w,hcLight:w},c.kg("inputValidationWarningBorder","Input validation border color for warning severity.")),u("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hcDark:s.Q1.black,hcLight:s.Q1.white},c.kg("inputValidationErrorBackground","Input validation background color for error severity.")),u("inputValidation.errorForeground",{dark:null,light:null,hcDark:null,hcLight:C},c.kg("inputValidationErrorForeground","Input validation foreground color for error severity.")),u("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hcDark:w,hcLight:w},c.kg("inputValidationErrorBorder","Input validation border color for error severity.")),u("dropdown.background",{dark:"#3C3C3C",light:s.Q1.white,hcDark:s.Q1.black,hcLight:s.Q1.white},c.kg("dropdownBackground","Dropdown background."))),fe=(u("dropdown.listBackground",{dark:null,light:null,hcDark:s.Q1.black,hcLight:s.Q1.white},c.kg("dropdownListBackground","Dropdown list background.")),u("dropdown.foreground",{dark:"#F0F0F0",light:C,hcDark:s.Q1.white,hcLight:C},c.kg("dropdownForeground","Dropdown foreground."))),me=u("dropdown.border",{dark:ge,light:"#CECECE",hcDark:w,hcLight:w},c.kg("dropdownBorder","Dropdown border.")),pe=u("button.foreground",s.Q1.white,c.kg("buttonForeground","Button foreground color.")),be=(u("button.separator",f(pe,.4),c.kg("buttonSeparator","Button separator color.")),u("button.background",{dark:"#0E639C",light:"#007ACC",hcDark:null,hcLight:"#0F4A85"},c.kg("buttonBackground","Button background color."))),_e=(u("button.hoverBackground",{dark:g(be,.2),light:d(be,.2),hcDark:be,hcLight:be},c.kg("buttonHoverBackground","Button background color when hovering.")),u("button.border",w,c.kg("buttonBorder","Button border color.")),u("button.secondaryForeground",{dark:s.Q1.white,light:s.Q1.white,hcDark:s.Q1.white,hcLight:C},c.kg("buttonSecondaryForeground","Secondary button foreground color.")),u("button.secondaryBackground",{dark:"#3A3D41",light:"#5F6A79",hcDark:null,hcLight:s.Q1.white},c.kg("buttonSecondaryBackground","Secondary button background color."))),ke=(u("button.secondaryHoverBackground",{dark:g(_e,.2),light:d(_e,.2),hcDark:null,hcLight:null},c.kg("buttonSecondaryHoverBackground","Secondary button background color when hovering.")),u("radio.activeForeground",de,c.kg("radioActiveForeground","Foreground color of active radio option."))),ve=(u("radio.activeBackground",ue,c.kg("radioBackground","Background color of active radio option.")),u("radio.activeBorder",ce,c.kg("radioActiveBorder","Border color of the active radio option.")),u("radio.inactiveForeground",null,c.kg("radioInactiveForeground","Foreground color of inactive radio option.")),u("radio.inactiveBackground",null,c.kg("radioInactiveBackground","Background color of inactive radio option.")),u("radio.inactiveBorder",{light:f(ke,.2),dark:f(ke,.2),hcDark:f(ke,.4),hcLight:f(ke,.2)},c.kg("radioInactiveBorder","Border color of the inactive radio option.")),u("radio.inactiveHoverBackground",he,c.kg("radioHoverBackground","Background color of inactive active radio option when hovering.")),u("checkbox.background",ge,c.kg("checkbox.background","Background color of checkbox widget.")),u("checkbox.selectBackground",O,c.kg("checkbox.select.background","Background color of checkbox widget when the element it's in is selected.")),u("checkbox.foreground",fe,c.kg("checkbox.foreground","Foreground color of checkbox widget.")),u("checkbox.border",me,c.kg("checkbox.border","Border color of checkbox widget.")),u("checkbox.selectBorder",y,c.kg("checkbox.select.border","Border color of checkbox widget when the element it's in is selected.")),u("keybindingLabel.background",{dark:new s.Q1(new s.bU(128,128,128,.17)),light:new s.Q1(new s.bU(221,221,221,.4)),hcDark:s.Q1.transparent,hcLight:s.Q1.transparent},c.kg("keybindingLabelBackground","Keybinding label background color. The keybinding label is used to represent a keyboard shortcut.")),u("keybindingLabel.foreground",{dark:s.Q1.fromHex("#CCCCCC"),light:s.Q1.fromHex("#555555"),hcDark:s.Q1.white,hcLight:C},c.kg("keybindingLabelForeground","Keybinding label foreground color. The keybinding label is used to represent a keyboard shortcut.")),u("keybindingLabel.border",{dark:new s.Q1(new s.bU(51,51,51,.6)),light:new s.Q1(new s.bU(204,204,204,.4)),hcDark:new s.Q1(new s.bU(111,195,223)),hcLight:w},c.kg("keybindingLabelBorder","Keybinding label border color. The keybinding label is used to represent a keyboard shortcut.")),u("keybindingLabel.bottomBorder",{dark:new s.Q1(new s.bU(68,68,68,.6)),light:new s.Q1(new s.bU(187,187,187,.4)),hcDark:new s.Q1(new s.bU(111,195,223)),hcLight:C},c.kg("keybindingLabelBottomBorder","Keybinding label border bottom color. The keybinding label is used to represent a keyboard shortcut.")),u("list.focusBackground",null,c.kg("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),u("list.focusForeground",null,c.kg("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),u("list.focusOutline",{dark:L,light:L,hcDark:S,hcLight:S},c.kg("listFocusOutline","List/Tree outline color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),u("list.focusAndSelectionOutline",null,c.kg("listFocusAndSelectionOutline","List/Tree outline color for the focused item when the list/tree is active and selected. An active list/tree has keyboard focus, an inactive does not.")),u("list.activeSelectionBackground",{dark:"#04395E",light:"#0060C0",hcDark:null,hcLight:s.Q1.fromHex("#0F4A85").transparent(.1)},c.kg("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not."))),Ce=u("list.activeSelectionForeground",{dark:s.Q1.white,light:s.Q1.white,hcDark:null,hcLight:null},c.kg("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),ye=u("list.activeSelectionIconForeground",null,c.kg("listActiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Le=(u("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hcDark:null,hcLight:s.Q1.fromHex("#0F4A85").transparent(.1)},c.kg("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),u("list.inactiveSelectionForeground",null,c.kg("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),u("list.inactiveSelectionIconForeground",null,c.kg("listInactiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),u("list.inactiveFocusBackground",null,c.kg("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),u("list.inactiveFocusOutline",null,c.kg("listInactiveFocusOutline","List/Tree outline color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),u("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:s.Q1.white.transparent(.1),hcLight:s.Q1.fromHex("#0F4A85").transparent(.1)},c.kg("listHoverBackground","List/Tree background when hovering over items using the mouse.")),u("list.hoverForeground",null,c.kg("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),u("list.dropBackground",{dark:"#062F4A",light:"#D6EBFF",hcDark:null,hcLight:null},c.kg("listDropBackground","List/Tree drag and drop background when moving items over other items when using the mouse.")),u("list.dropBetweenBackground",{dark:y,light:y,hcDark:null,hcLight:null},c.kg("listDropBetweenBackground","List/Tree drag and drop border color when moving items between items when using the mouse.")),u("list.highlightForeground",{dark:"#2AAAFF",light:"#0066BF",hcDark:L,hcLight:L},c.kg("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")));u("list.focusHighlightForeground",{dark:Le,light:(we=ve,Se=Le,xe="#BBE7FF",{op:6,if:we,then:Se,else:xe}),hcDark:Le,hcLight:Le},c.kg("listFocusHighlightForeground","List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree."));var we,Se,xe;u("list.invalidItemForeground",{dark:"#B89500",light:"#B89500",hcDark:"#B89500",hcLight:"#B5200D"},c.kg("invalidItemForeground","List/Tree foreground color for invalid items, for example an unresolved root in explorer.")),u("list.errorForeground",{dark:"#F88070",light:"#B01011",hcDark:null,hcLight:null},c.kg("listErrorForeground","Foreground color of list items containing errors.")),u("list.warningForeground",{dark:"#CCA700",light:"#855F00",hcDark:null,hcLight:null},c.kg("listWarningForeground","Foreground color of list items containing warnings.")),u("listFilterWidget.background",{light:d(O,0),dark:g(O,0),hcDark:O,hcLight:O},c.kg("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),u("listFilterWidget.outline",{dark:s.Q1.transparent,light:s.Q1.transparent,hcDark:"#f38518",hcLight:"#007ACC"},c.kg("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),u("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hcDark:w,hcLight:w},c.kg("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),u("listFilterWidget.shadow",J,c.kg("listFilterWidgetShadow","Shadow color of the type filter widget in lists and trees.")),u("list.filterMatchBackground",{dark:q,light:q,hcDark:null,hcLight:null},c.kg("listFilterMatchHighlight","Background color of the filtered match.")),u("list.filterMatchBorder",{dark:W,light:W,hcDark:w,hcLight:S},c.kg("listFilterMatchHighlightBorder","Border color of the filtered match.")),u("list.deemphasizedForeground",{dark:"#8C8C8C",light:"#8E8E90",hcDark:"#A7A8A9",hcLight:"#666666"},c.kg("listDeemphasizedForeground","List/Tree foreground color for items that are deemphasized."));const Ee=u("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hcDark:"#a9a9a9",hcLight:"#a5a5a5"},c.kg("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),Ne=(u("tree.inactiveIndentGuidesStroke",f(Ee,.4),c.kg("treeInactiveIndentGuidesStroke","Tree stroke color for the indentation guides that are not active.")),u("tree.tableColumnsBorder",{dark:"#CCCCCC20",light:"#61616120",hcDark:null,hcLight:null},c.kg("tableColumnsBorder","Table border color between columns.")),u("tree.tableOddRowsBackground",{dark:f(C,.04),light:f(C,.04),hcDark:null,hcLight:null},c.kg("tableOddRowsBackgroundColor","Background color for odd table rows.")),u("editorActionList.background",O,c.kg("editorActionListBackground","Action List background color.")),u("editorActionList.foreground",M,c.kg("editorActionListForeground","Action List foreground color.")),u("editorActionList.focusForeground",Ce,c.kg("editorActionListFocusForeground","Action List foreground color for the focused item.")),u("editorActionList.focusBackground",ve,c.kg("editorActionListFocusBackground","Action List background color for the focused item.")),u("menu.border",{dark:null,light:null,hcDark:w,hcLight:w},c.kg("menuBorder","Border color of menus.")),u("menu.foreground",fe,c.kg("menuForeground","Foreground color of menu items.")),u("menu.background",ge,c.kg("menuBackground","Background color of menu items.")),u("menu.selectionForeground",Ce,c.kg("menuSelectionForeground","Foreground color of the selected menu item in menus.")),u("menu.selectionBackground",ve,c.kg("menuSelectionBackground","Background color of the selected menu item in menus.")),u("menu.selectionBorder",{dark:null,light:null,hcDark:S,hcLight:S},c.kg("menuSelectionBorder","Border color of the selected menu item in menus.")),u("menu.separatorBackground",{dark:"#606060",light:"#D4D4D4",hcDark:w,hcLight:w},c.kg("menuSeparatorBackground","Color of a separator menu item in menus.")),u("quickInput.background",O,c.kg("pickerBackground","Quick picker background color. The quick picker widget is the container for pickers like the command palette.")),u("quickInput.foreground",M,c.kg("pickerForeground","Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")),u("quickInputTitle.background",{dark:new s.Q1(new s.bU(255,255,255,.105)),light:new s.Q1(new s.bU(0,0,0,.06)),hcDark:"#000000",hcLight:s.Q1.white},c.kg("pickerTitleBackground","Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")),u("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hcDark:s.Q1.white,hcLight:"#0F4A85"},c.kg("pickerGroupForeground","Quick picker color for grouping labels.")),u("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hcDark:s.Q1.white,hcLight:"#0F4A85"},c.kg("pickerGroupBorder","Quick picker color for grouping borders.")),u("quickInput.list.focusBackground",null,"",void 0,c.kg("quickInput.list.focusBackground deprecation","Please use quickInputList.focusBackground instead")));u("quickInputList.focusForeground",Ce,c.kg("quickInput.listFocusForeground","Quick picker foreground color for the focused item.")),u("quickInputList.focusIconForeground",ye,c.kg("quickInput.listFocusIconForeground","Quick picker icon foreground color for the focused item.")),u("quickInputList.focusBackground",{dark:m(Ne,ve),light:m(Ne,ve),hcDark:null,hcLight:null},c.kg("quickInput.listFocusBackground","Quick picker background color for the focused item.")),u("search.resultsInfoForeground",{light:C,dark:f(C,.65),hcDark:C,hcLight:C},c.kg("search.resultsInfoForeground","Color of the text in the search viewlet's completion message.")),u("searchEditor.findMatchBackground",{light:f(q,.66),dark:f(q,.66),hcDark:q,hcLight:q},c.kg("searchEditor.queryMatch","Color of the Search Editor query matches.")),u("searchEditor.findMatchBorder",{light:f(W,.66),dark:f(W,.66),hcDark:W,hcLight:W},c.kg("searchEditor.editorFindMatchBorder","Border color of the Search Editor query matches."))},5890:(e,t,n)=>{var r={"./simpleWorker":1929,"./simpleWorker.js":1929,"monaco-editor/esm/vs/base/common/worker/simpleWorker":1929,"monaco-editor/esm/vs/base/common/worker/simpleWorker.js":1929};function i(e){return Promise.resolve().then((()=>{if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n(r[e])}))}i.keys=()=>Object.keys(r),i.id=5890,e.exports=i},5982:(e,t,n)=>{"use strict";n.d(t,{x:()=>r});class r{static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return 0!==(1024&e)}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(16744448&e)>>>15}static getBackground(e){return(4278190080&e)>>>24}static getClassNameFromMetadata(e){let t="mtk"+this.getForeground(e);const n=this.getFontStyle(e);return 1&n&&(t+=" mtki"),2&n&&(t+=" mtkb"),4&n&&(t+=" mtku"),8&n&&(t+=" mtks"),t}static getInlineStyleFromMetadata(e,t){const n=this.getForeground(e),r=this.getFontStyle(e);let i=`color: ${t[n]};`;1&r&&(i+="font-style: italic;"),2&r&&(i+="font-weight: bold;");let s="";return 4&r&&(s+=" underline"),8&r&&(s+=" line-through"),s&&(i+=`text-decoration:${s};`),i}static getPresentationFromMetadata(e){const t=this.getForeground(e),n=this.getFontStyle(e);return{foreground:t,italic:Boolean(1&n),bold:Boolean(2&n),underline:Boolean(4&n),strikethrough:Boolean(8&n)}}}},6041:(e,t,n)=>{"use strict";function r(e,t){const n=function(e,t,n=e.length-1){for(let r=n;r>=0;r--){if(t(e[r]))return r}return-1}(e,t);if(-1!==n)return e[n]}function i(e,t){const n=s(e,t);return-1===n?void 0:e[n]}function s(e,t,n=0,r=e.length){let i=n,s=r;for(;i<s;){const n=Math.floor((i+s)/2);t(e[n])?i=n+1:s=n}return i-1}function o(e,t){const n=a(e,t);return n===e.length?void 0:e[n]}function a(e,t,n=0,r=e.length){let i=n,s=r;for(;i<s;){const n=Math.floor((i+s)/2);t(e[n])?s=n:i=n+1}return i}n.d(t,{Uk:()=>r,XP:()=>o,hw:()=>a,iM:()=>s,lx:()=>i,vJ:()=>l});class l{static{this.assertInvariants=!1}constructor(e){this._array=e,this._findLastMonotonousLastIdx=0}findLastMonotonous(e){if(l.assertInvariants){if(this._prevFindLastPredicate)for(const t of this._array)if(this._prevFindLastPredicate(t)&&!e(t))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.");this._prevFindLastPredicate=e}const t=s(this._array,e,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=t+1,-1===t?void 0:this._array[t]}}},6223:(e,t,n)=>{"use strict";n.d(t,{A5:()=>r,Dg:()=>l,F4:()=>d,L5:()=>u,Wo:()=>h,X2:()=>a,ZS:()=>i,nk:()=>c,vd:()=>g});var r,i,s,o=n(146);!function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(r||(r={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(i||(i={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(s||(s={}));class a{get originalIndentSize(){return this._indentSizeIsTabSize?"tabSize":this.indentSize}constructor(e){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,0|e.tabSize),"tabSize"===e.indentSize?(this.indentSize=this.tabSize,this._indentSizeIsTabSize=!0):(this.indentSize=Math.max(1,0|e.indentSize),this._indentSizeIsTabSize=!1),this.insertSpaces=Boolean(e.insertSpaces),this.defaultEOL=0|e.defaultEOL,this.trimAutoWhitespace=Boolean(e.trimAutoWhitespace),this.bracketPairColorizationOptions=e.bracketPairColorizationOptions}equals(e){return this.tabSize===e.tabSize&&this._indentSizeIsTabSize===e._indentSizeIsTabSize&&this.indentSize===e.indentSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace&&(0,o.aI)(this.bracketPairColorizationOptions,e.bracketPairColorizationOptions)}createChangeEvent(e){return{tabSize:this.tabSize!==e.tabSize,indentSize:this.indentSize!==e.indentSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}}}class l{constructor(e,t){this._findMatchBrand=void 0,this.range=e,this.matches=t}}function c(e){return e&&"function"===typeof e.read}class h{constructor(e,t,n,r,i,s){this.identifier=e,this.range=t,this.text=n,this.forceMoveMarkers=r,this.isAutoWhitespaceEdit=i,this._isTracked=s}}class u{constructor(e,t,n){this.regex=e,this.wordSeparators=t,this.simpleSearch=n}}class d{constructor(e,t,n){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=n}}function g(e){return!e.isTooLargeForSyncing()&&!e.isForSimpleWidget}},6359:(e,t,n)=>{"use strict";n.d(t,{O:()=>s});var r=n(6782),i=n(631);const s=new class{constructor(){this.data=new Map}add(e,t){r.ok(i.Kg(e)),r.ok(i.Gv(t)),r.ok(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)}as(e){return this.data.get(e)||null}}},6456:(e,t,n)=>{"use strict";n.d(t,{ny:()=>r,v$:()=>c,zl:()=>d});var r,i=n(4383),s=n(8067),o=n(1508),a=n(9400),l=n(8821);function c(e,t){return a.r.isUri(e)?(0,o.Q_)(e.scheme,t):(0,o.ns)(e,t+":")}!function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command",e.vscodeRemote="vscode-remote",e.vscodeRemoteResource="vscode-remote-resource",e.vscodeManagedRemoteResource="vscode-managed-remote-resource",e.vscodeUserData="vscode-userdata",e.vscodeCustomEditor="vscode-custom-editor",e.vscodeNotebookCell="vscode-notebook-cell",e.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",e.vscodeNotebookCellMetadataDiff="vscode-notebook-cell-metadata-diff",e.vscodeNotebookCellOutput="vscode-notebook-cell-output",e.vscodeNotebookCellOutputDiff="vscode-notebook-cell-output-diff",e.vscodeNotebookMetadata="vscode-notebook-metadata",e.vscodeInteractiveInput="vscode-interactive-input",e.vscodeSettings="vscode-settings",e.vscodeWorkspaceTrust="vscode-workspace-trust",e.vscodeTerminal="vscode-terminal",e.vscodeChatCodeBlock="vscode-chat-code-block",e.vscodeChatCodeCompareBlock="vscode-chat-code-compare-block",e.vscodeChatSesssion="vscode-chat-editor",e.webviewPanel="webview-panel",e.vscodeWebview="vscode-webview",e.extension="extension",e.vscodeFileResource="vscode-file",e.tmp="tmp",e.vsls="vsls",e.vscodeSourceControl="vscode-scm",e.commentsInput="comment",e.codeSetting="code-setting",e.outputChannel="output"}(r||(r={}));const h=new class{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(e){this._preferredWebSchema=e}get _remoteResourcesPath(){return l.SA.join(this._serverRootPath,r.vscodeRemoteResource)}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(h){return i.dz(h),e}const t=e.authority;let n=this._hosts[t];n&&-1!==n.indexOf(":")&&-1===n.indexOf("[")&&(n=`[${n}]`);const o=this._ports[t],l=this._connectionTokens[t];let c=`path=${encodeURIComponent(e.path)}`;return"string"===typeof l&&(c+=`&tkn=${encodeURIComponent(l)}`),a.r.from({scheme:s.HZ?this._preferredWebSchema:r.vscodeRemoteResource,authority:`${n}:${o}`,path:this._remoteResourcesPath,query:c})}};class u{static{this.FALLBACK_AUTHORITY="vscode-app"}asBrowserUri(e){const t=this.toUri(e);return this.uriToBrowserUri(t)}uriToBrowserUri(e){return e.scheme===r.vscodeRemote?h.rewrite(e):e.scheme!==r.file||!s.ib&&s.lg!==`${r.vscodeFileResource}://${u.FALLBACK_AUTHORITY}`?e:e.with({scheme:r.vscodeFileResource,authority:e.authority||u.FALLBACK_AUTHORITY,query:null,fragment:null})}toUri(e,t){if(a.r.isUri(e))return e;if(globalThis._VSCODE_FILE_ROOT){const t=globalThis._VSCODE_FILE_ROOT;if(/^\w[\w\d+.-]*:\/\//.test(t))return a.r.joinPath(a.r.parse(t,!0),e);const n=l.fj(t,e);return a.r.file(n)}return a.r.parse(t.toUrl(e))}}const d=new u;var g;!function(e){const t=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);e.CoopAndCoep=Object.freeze(t.get("3"));const n="vscode-coi";e.getHeadersFromQuery=function(e){let r;"string"===typeof e?r=new URL(e).searchParams:e instanceof URL?r=e.searchParams:a.r.isUri(e)&&(r=new URL(e.toString(!0)).searchParams);const i=r?.get(n);if(i)return t.get(i)},e.addSearchParam=function(e,t,r){if(!globalThis.crossOriginIsolated)return;const i=t&&r?"3":r?"2":"1";e instanceof URLSearchParams?e.set(n,i):e[n]=i}}(g||(g={}))},6486:(e,t,n)=>{"use strict";n.d(t,{Io:()=>o,Ld:()=>s,Th:()=>l});var r=n(2522),i=n(8925);const s=function(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const n of"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?")e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}();function o(e){let t=s;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}const a=new i.w;function l(e,t,n,i,s){if(t=o(t),s||(s=r.f.first(a)),n.length>s.maxLen){let r=e-s.maxLen/2;return r<0?r=0:i+=r,l(e,t,n=n.substring(r,e+s.maxLen/2),i,s)}const h=Date.now(),u=e-1-i;let d=-1,g=null;for(let r=1;!(Date.now()-h>=s.timeBudget);r++){const e=u-s.windowSize*r;t.lastIndex=Math.max(0,e);const i=c(t,n,u,d);if(!i&&g)break;if(g=i,e<=0)break;d=e}if(g){const e={word:g[0],startColumn:i+1+g.index,endColumn:i+1+g.index+g[0].length};return t.lastIndex=0,e}return null}function c(e,t,n,r){let i;for(;i=e.exec(t);){const t=i.index||0;if(t<=n&&e.lastIndex>=n)return i;if(r>0&&t>r)return null}return null}a.unshift({maxLen:1e3,windowSize:15,timeBudget:150})},6571:(e,t,n)=>{"use strict";n.d(t,{M:()=>a,S:()=>l});var r=n(4383),i=n(4444),s=n(6677),o=n(6041);class a{static fromRangeInclusive(e){return new a(e.startLineNumber,e.endLineNumber+1)}static joinMany(e){if(0===e.length)return[];let t=new l(e[0].slice());for(let n=1;n<e.length;n++)t=t.getUnion(new l(e[n].slice()));return t.ranges}static join(e){if(0===e.length)throw new r.D7("lineRanges cannot be empty");let t=e[0].startLineNumber,n=e[0].endLineNumberExclusive;for(let r=1;r<e.length;r++)t=Math.min(t,e[r].startLineNumber),n=Math.max(n,e[r].endLineNumberExclusive);return new a(t,n)}static ofLength(e,t){return new a(e,e+t)}static deserialize(e){return new a(e[0],e[1])}constructor(e,t){if(e>t)throw new r.D7(`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(e){return new a(this.startLineNumber+e,this.endLineNumberExclusive+e)}deltaLength(e){return new a(this.startLineNumber,this.endLineNumberExclusive+e)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(e){return new a(Math.min(this.startLineNumber,e.startLineNumber),Math.max(this.endLineNumberExclusive,e.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(e){const t=Math.max(this.startLineNumber,e.startLineNumber),n=Math.min(this.endLineNumberExclusive,e.endLineNumberExclusive);if(t<=n)return new a(t,n)}intersectsStrict(e){return this.startLineNumber<e.endLineNumberExclusive&&e.startLineNumber<this.endLineNumberExclusive}overlapOrTouch(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 s.Q(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new s.Q(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(e){const 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]}includes(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}toOffsetRange(){return new i.L(this.startLineNumber-1,this.endLineNumberExclusive-1)}}class l{constructor(e=[]){this._normalizedRanges=e}get ranges(){return this._normalizedRanges}addRange(e){if(0===e.length)return;const t=(0,o.hw)(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),n=(0,o.iM)(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===n)this._normalizedRanges.splice(t,0,e);else if(t===n-1){const n=this._normalizedRanges[t];this._normalizedRanges[t]=n.join(e)}else{const r=this._normalizedRanges[t].join(this._normalizedRanges[n-1]).join(e);this._normalizedRanges.splice(t,n-t,r)}}contains(e){const t=(0,o.lx)(this._normalizedRanges,(t=>t.startLineNumber<=e));return!!t&&t.endLineNumberExclusive>e}intersects(e){const t=(0,o.lx)(this._normalizedRanges,(t=>t.startLineNumber<e.endLineNumberExclusive));return!!t&&t.endLineNumberExclusive>e.startLineNumber}getUnion(e){if(0===this._normalizedRanges.length)return e;if(0===e._normalizedRanges.length)return this;const t=[];let n=0,r=0,i=null;for(;n<this._normalizedRanges.length||r<e._normalizedRanges.length;){let s=null;if(n<this._normalizedRanges.length&&r<e._normalizedRanges.length){const t=this._normalizedRanges[n],i=e._normalizedRanges[r];t.startLineNumber<i.startLineNumber?(s=t,n++):(s=i,r++)}else n<this._normalizedRanges.length?(s=this._normalizedRanges[n],n++):(s=e._normalizedRanges[r],r++);null===i?i=s:i.endLineNumberExclusive>=s.startLineNumber?i=new a(i.startLineNumber,Math.max(i.endLineNumberExclusive,s.endLineNumberExclusive)):(t.push(i),i=s)}return null!==i&&t.push(i),new l(t)}subtractFrom(e){const t=(0,o.hw)(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),n=(0,o.iM)(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===n)return new l([e]);const r=[];let i=e.startLineNumber;for(let s=t;s<n;s++){const e=this._normalizedRanges[s];e.startLineNumber>i&&r.push(new a(i,e.startLineNumber)),i=e.endLineNumberExclusive}return i<e.endLineNumberExclusive&&r.push(new a(i,e.endLineNumberExclusive)),new l(r)}toString(){return this._normalizedRanges.map((e=>e.toString())).join(", ")}getIntersection(e){const t=[];let n=0,r=0;for(;n<this._normalizedRanges.length&&r<e._normalizedRanges.length;){const i=this._normalizedRanges[n],s=e._normalizedRanges[r],o=i.intersect(s);o&&!o.isEmpty&&t.push(o),i.endLineNumberExclusive<s.endLineNumberExclusive?n++:r++}return new l(t)}getWithDelta(e){return new l(this._normalizedRanges.map((t=>t.delta(e))))}}},6677:(e,t,n)=>{"use strict";n.d(t,{Q:()=>i});var r=n(3069);class i{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 i.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return i.containsPosition(this,e)}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(e){return i.containsRange(this,e)}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(e){return i.strictContainsRange(this,e)}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(e){return i.plusRange(this,e)}static plusRange(e,t){let n,r,s,o;return t.startLineNumber<e.startLineNumber?(n=t.startLineNumber,r=t.startColumn):t.startLineNumber===e.startLineNumber?(n=t.startLineNumber,r=Math.min(t.startColumn,e.startColumn)):(n=e.startLineNumber,r=e.startColumn),t.endLineNumber>e.endLineNumber?(s=t.endLineNumber,o=t.endColumn):t.endLineNumber===e.endLineNumber?(s=t.endLineNumber,o=Math.max(t.endColumn,e.endColumn)):(s=e.endLineNumber,o=e.endColumn),new i(n,r,s,o)}intersectRanges(e){return i.intersectRanges(this,e)}static intersectRanges(e,t){let n=e.startLineNumber,r=e.startColumn,s=e.endLineNumber,o=e.endColumn;const a=t.startLineNumber,l=t.startColumn,c=t.endLineNumber,h=t.endColumn;return n<a?(n=a,r=l):n===a&&(r=Math.max(r,l)),s>c?(s=c,o=h):s===c&&(o=Math.min(o,h)),n>s||n===s&&r>o?null:new i(n,r,s,o)}equalsRange(e){return i.equalsRange(this,e)}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 i.getEndPosition(this)}static getEndPosition(e){return new r.y(e.endLineNumber,e.endColumn)}getStartPosition(){return i.getStartPosition(this)}static getStartPosition(e){return new r.y(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new i(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new i(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return i.collapseToStart(this)}static collapseToStart(e){return new i(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return i.collapseToEnd(this)}static collapseToEnd(e){return new i(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new i(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,t=e){return new i(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new i(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"===typeof e.startLineNumber&&"number"===typeof e.startColumn&&"number"===typeof e.endLineNumber&&"number"===typeof e.endColumn}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 compareRangesUsingStarts(e,t){if(e&&t){const n=0|e.startLineNumber,r=0|t.startLineNumber;if(n===r){const n=0|e.startColumn,r=0|t.startColumn;if(n===r){const n=0|e.endLineNumber,r=0|t.endLineNumber;if(n===r){return(0|e.endColumn)-(0|t.endColumn)}return n-r}return n-r}return n-r}return(e?1:0)-(t?1:0)}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}}},6691:(e,t,n)=>{"use strict";n.r(t),n.d(t,{findSectionHeaders:()=>s});const r=new RegExp("\\bMARK:\\s*(.*)$","d"),i=/^-+|-+$/g;function s(e,t){let n=[];if(t.findRegionSectionHeaders&&t.foldingRules?.markers){const r=function(e,t){const n=[],r=e.getLineCount();for(let i=1;i<=r;i++){const r=e.getLineContent(i),s=r.match(t.foldingRules.markers.start);if(s){const e={startLineNumber:i,startColumn:s[0].length+1,endLineNumber:i,endColumn:r.length+1};if(e.endColumn>e.startColumn){const t={range:e,...a(r.substring(s[0].length)),shouldBeInComments:!1};(t.text||t.hasSeparatorLine)&&n.push(t)}}}return n}(e,t);n=n.concat(r)}if(t.findMarkSectionHeaders){const t=function(e){const t=[],n=e.getLineCount();for(let r=1;r<=n;r++){o(e.getLineContent(r),r,t)}return t}(e);n=n.concat(t)}return n}function o(e,t,n){r.lastIndex=0;const i=r.exec(e);if(i){const e={startLineNumber:t,startColumn:i.indices[1][0]+1,endLineNumber:t,endColumn:i.indices[1][1]+1};if(e.endColumn>e.startColumn){const t={range:e,...a(i[1]),shouldBeInComments:!0};(t.text||t.hasSeparatorLine)&&n.push(t)}}}function a(e){const t=(e=e.trim()).startsWith("-");return{text:e=e.replace(i,""),hasSeparatorLine:t}}},6723:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DraggedTreeItemsIdentifier:()=>i,TreeViewsDnDService:()=>r});class r{constructor(){this._dragOperations=new Map}removeDragOperationTransfer(e){if(e&&this._dragOperations.has(e)){const t=this._dragOperations.get(e);return this._dragOperations.delete(e),t}}}class i{constructor(e){this.identifier=e}}},6782:(e,t,n)=>{"use strict";n.d(t,{Ft:()=>o,Xo:()=>a,ok:()=>i,xb:()=>s});var r=n(4383);function i(e,t){if(!e)throw new Error(t?`Assertion failed (${t})`:"Assertion Failed")}function s(e,t="Unreachable"){throw new Error(t)}function o(e){e()||(e(),(0,r.dz)(new r.D7("Assertion Failed")))}function a(e,t){let n=0;for(;n<e.length-1;){if(!t(e[n],e[n+1]))return!1;n++}return!0}},6942:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ILanguageFeaturesService:()=>r});const r=(0,n(3591).u1)("ILanguageFeaturesService")},6958:(e,t,n)=>{"use strict";n.d(t,{YW:()=>A,qg:()=>I});var r=n(1940),i=n(9326),s=n(4320),o=n(8821),a=n(8067),l=n(1508);const c="**",h="/",u="[/\\\\]",d="[^/\\\\]",g=/\//g;function f(e,t){switch(e){case 0:return"";case 1:return`${d}*?`;default:return`(?:${u}|${d}+${u}${t?`|${u}${d}+`:""})*?`}}function m(e,t){if(!e)return[];const n=[];let r=!1,i=!1,s="";for(const o of e){switch(o){case t:if(!r&&!i){n.push(s),s="";continue}break;case"{":r=!0;break;case"}":r=!1;break;case"[":i=!0;break;case"]":i=!1}s+=o}return s&&n.push(s),n}function p(e){if(!e)return"";let t="";const n=m(e,h);if(n.every((e=>e===c)))t=".*";else{let e=!1;n.forEach(((r,i)=>{if(r===c){if(e)return;t+=f(2,i===n.length-1)}else{let e=!1,s="",o=!1,a="";for(const n of r)if("}"!==n&&e)s+=n;else if(!o||"]"===n&&a)switch(n){case"{":e=!0;continue;case"[":o=!0;continue;case"}":{const n=`(?:${m(s,",").map((e=>p(e))).join("|")})`;t+=n,e=!1,s="";break}case"]":t+="["+a+"]",o=!1,a="";break;case"?":t+=d;continue;case"*":t+=f(1);continue;default:t+=(0,l.bm)(n)}else{let e;e="-"===n?n:"^"!==n&&"!"!==n||a?n===h?"":(0,l.bm)(n):"^",a+=e}i<n.length-1&&(n[i+1]!==c||i+2<n.length)&&(t+=u)}e=r===c}))}return t}const b=/^\*\*\/\*\.[\w\.-]+$/,_=/^\*\*\/([\w\.-]+)\/?$/,k=/^{\*\*\/\*?[\w\.-]+\/?(,\*\*\/\*?[\w\.-]+\/?)*}$/,v=/^{\*\*\/\*?[\w\.-]+(\/(\*\*)?)?(,\*\*\/\*?[\w\.-]+(\/(\*\*)?)?)*}$/,C=/^\*\*((\/[\w\.-]+)+)\/?$/,y=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,L=new s.qK(1e4),w=function(){return!1},S=function(){return null};function x(e,t){if(!e)return S;let n;n="string"!==typeof e?e.pattern:e,n=n.trim();const r=`${n}_${!!t.trimForExclusions}`;let i,s=L.get(r);return s||(s=b.test(n)?function(e,t){return function(n,r){return"string"===typeof n&&n.endsWith(e)?t:null}}(n.substr(4),n):(i=_.exec(N(n,t)))?function(e,t){const n=`/${e}`,r=`\\${e}`,i=function(i,s){return"string"!==typeof i?null:s?s===e?t:null:i===e||i.endsWith(n)||i.endsWith(r)?t:null},s=[e];return i.basenames=s,i.patterns=[t],i.allBasenames=s,i}(i[1],n):(t.trimForExclusions?v:k).test(n)?function(e,t){const n=O(e.slice(1,-1).split(",").map((e=>x(e,t))).filter((e=>e!==S)),e),r=n.length;if(!r)return S;if(1===r)return n[0];const i=function(t,r){for(let i=0,s=n.length;i<s;i++)if(n[i](t,r))return e;return null},s=n.find((e=>!!e.allBasenames));s&&(i.allBasenames=s.allBasenames);const o=n.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);o.length&&(i.allPaths=o);return i}(n,t):(i=C.exec(N(n,t)))?T(i[1].substr(1),n,!0):(i=y.exec(N(n,t)))?T(i[1],n,!1):function(e){try{const t=new RegExp(`^${p(e)}$`);return function(n){return t.lastIndex=0,"string"===typeof n&&t.test(n)?e:null}}catch(t){return S}}(n),L.set(r,s)),E(s,e)}function E(e,t){if("string"===typeof t)return e;const n=function(n,r){return(0,i._1)(n,t.base,!a.j9)?e((0,l.NB)(n.substr(t.base.length),o.Vn),r):null};return n.allBasenames=e.allBasenames,n.allPaths=e.allPaths,n.basenames=e.basenames,n.patterns=e.patterns,n}function N(e,t){return t.trimForExclusions&&e.endsWith("/**")?e.substr(0,e.length-2):e}function T(e,t,n){const r=o.Vn===o.SA.sep,i=r?e:e.replace(g,o.Vn),s=o.Vn+i,a=o.SA.sep+e;let l;return l=n?function(n,o){return"string"!==typeof n||n!==i&&!n.endsWith(s)&&(r||n!==e&&!n.endsWith(a))?null:t}:function(n,s){return"string"!==typeof n||n!==i&&(r||n!==e)?null:t},l.allPaths=[(n?"*/":"./")+e],l}function A(e,t,n){return!(!e||"string"!==typeof t)&&I(e)(t,void 0,n)}function I(e,t={}){if(!e)return w;if("string"===typeof e||function(e){const t=e;if(!t)return!1;return"string"===typeof t.base&&"string"===typeof t.pattern}(e)){const n=x(e,t);if(n===S)return w;const r=function(e,t){return!!n(e,t)};return n.allBasenames&&(r.allBasenames=n.allBasenames),n.allPaths&&(r.allPaths=n.allPaths),r}return function(e,t){const n=O(Object.getOwnPropertyNames(e).map((n=>function(e,t,n){if(!1===t)return S;const i=x(e,n);if(i===S)return S;if("boolean"===typeof t)return i;if(t){const n=t.when;if("string"===typeof n){const t=(t,s,o,a)=>{if(!a||!i(t,s))return null;const l=a(n.replace("$(basename)",(()=>o)));return(0,r.Qg)(l)?l.then((t=>t?e:null)):l?e:null};return t.requiresSiblings=!0,t}}return i}(n,e[n],t))).filter((e=>e!==S))),i=n.length;if(!i)return S;if(!n.some((e=>!!e.requiresSiblings))){if(1===i)return n[0];const e=function(e,t){let i;for(let s=0,o=n.length;s<o;s++){const o=n[s](e,t);if("string"===typeof o)return o;(0,r.Qg)(o)&&(i||(i=[]),i.push(o))}return i?(async()=>{for(const e of i){const t=await e;if("string"===typeof t)return t}return null})():null},t=n.find((e=>!!e.allBasenames));t&&(e.allBasenames=t.allBasenames);const s=n.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);return s.length&&(e.allPaths=s),e}const s=function(e,t,i){let s,a;for(let l=0,c=n.length;l<c;l++){const c=n[l];c.requiresSiblings&&i&&(t||(t=(0,o.P8)(e)),s||(s=t.substr(0,t.length-(0,o.LC)(e).length)));const h=c(e,t,s,i);if("string"===typeof h)return h;(0,r.Qg)(h)&&(a||(a=[]),a.push(h))}return a?(async()=>{for(const e of a){const t=await e;if("string"===typeof t)return t}return null})():null},a=n.find((e=>!!e.allBasenames));a&&(s.allBasenames=a.allBasenames);const l=n.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);l.length&&(s.allPaths=l);return s}(e,t)}function O(e,t){const n=e.filter((e=>!!e.basenames));if(n.length<2)return e;const r=n.reduce(((e,t)=>{const n=t.basenames;return n?e.concat(n):e}),[]);let i;if(t){i=[];for(let e=0,n=r.length;e<n;e++)i.push(t)}else i=n.reduce(((e,t)=>{const n=t.patterns;return n?e.concat(n):e}),[]);const s=function(e,t){if("string"!==typeof e)return null;if(!t){let n;for(n=e.length;n>0;n--){const t=e.charCodeAt(n-1);if(47===t||92===t)break}t=e.substr(n)}const n=r.indexOf(t);return-1!==n?i[n]:null};s.basenames=r,s.patterns=i,s.allBasenames=r;const o=e.filter((e=>!e.basenames));return o.push(s),o}},7004:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SemanticTokensStylingService:()=>d});var r=n(1484),i=n(154),s=n(5724),o=n(3511),a=n(5538),l=n(4243),c=n(4621),h=function(e,t,n,r){var i,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,n,o):i(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},u=function(e,t){return function(n,r){t(n,r,e)}};let d=class extends r.jG{constructor(e,t,n){super(),this._themeService=e,this._logService=t,this._languageService=n,this._caches=new WeakMap,this._register(this._themeService.onDidColorThemeChange((()=>{this._caches=new WeakMap})))}getStyling(e){return this._caches.has(e)||this._caches.set(e,new a.SemanticTokensProviderStyling(e.getLegend(),this._themeService,this._languageService,this._logService)),this._caches.get(e)}};d=h([u(0,s.Gy),u(1,o.rr),u(2,i.L)],d),(0,c.v)(l.ISemanticTokensStylingService,d,1)},7119:(e,t,n)=>{"use strict";n.d(t,{AQ:()=>b,aZ:()=>p,l5:()=>C,lQ:()=>k,s7:()=>w,sH:()=>y,sN:()=>_,ss:()=>v,yI:()=>m,zp:()=>L});var r=n(8209),i=n(7661),s=n(5845),o=n(5724);const a=(0,s.x1A)("editor.lineHighlightBackground",null,r.kg("lineHighlight","Background color for the highlight of line at the cursor position.")),l=((0,s.x1A)("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hcDark:"#f38518",hcLight:s.b1q},r.kg("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),(0,s.x1A)("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hcDark:null,hcLight:null},r.kg("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1A)("editor.rangeHighlightBorder",{dark:null,light:null,hcDark:s.buw,hcLight:s.buw},r.kg("rangeHighlightBorder","Background color of the border around highlighted ranges.")),(0,s.x1A)("editor.symbolHighlightBackground",{dark:s.Ubg,light:s.Ubg,hcDark:null,hcLight:null},r.kg("symbolHighlight","Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1A)("editor.symbolHighlightBorder",{dark:null,light:null,hcDark:s.buw,hcLight:s.buw},r.kg("symbolHighlightBorder","Background color of the border around highlighted symbols.")),(0,s.x1A)("editorCursor.foreground",{dark:"#AEAFAD",light:i.Q1.black,hcDark:i.Q1.white,hcLight:"#0F4A85"},r.kg("caret","Color of the editor cursor."))),c=(0,s.x1A)("editorCursor.background",null,r.kg("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),h=((0,s.x1A)("editorMultiCursor.primary.foreground",l,r.kg("editorMultiCursorPrimaryForeground","Color of the primary editor cursor when multiple cursors are present.")),(0,s.x1A)("editorMultiCursor.primary.background",c,r.kg("editorMultiCursorPrimaryBackground","The background color of the primary editor cursor when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),(0,s.x1A)("editorMultiCursor.secondary.foreground",l,r.kg("editorMultiCursorSecondaryForeground","Color of secondary editor cursors when multiple cursors are present.")),(0,s.x1A)("editorMultiCursor.secondary.background",c,r.kg("editorMultiCursorSecondaryBackground","The background color of secondary editor cursors when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),(0,s.x1A)("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hcDark:"#e3e4e229",hcLight:"#CCCCCC"},r.kg("editorWhitespaces","Color of whitespace characters in the editor."))),u=((0,s.x1A)("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hcDark:i.Q1.white,hcLight:"#292929"},r.kg("editorLineNumbers","Color of editor line numbers.")),(0,s.x1A)("editorIndentGuide.background",h,r.kg("editorIndentGuides","Color of the editor indentation guides."),!1,r.kg("deprecatedEditorIndentGuides","'editorIndentGuide.background' is deprecated. Use 'editorIndentGuide.background1' instead."))),d=(0,s.x1A)("editorIndentGuide.activeBackground",h,r.kg("editorActiveIndentGuide","Color of the active editor indentation guides."),!1,r.kg("deprecatedEditorActiveIndentGuide","'editorIndentGuide.activeBackground' is deprecated. Use 'editorIndentGuide.activeBackground1' instead.")),g=((0,s.x1A)("editorIndentGuide.background1",u,r.kg("editorIndentGuides1","Color of the editor indentation guides (1).")),(0,s.x1A)("editorIndentGuide.background2","#00000000",r.kg("editorIndentGuides2","Color of the editor indentation guides (2).")),(0,s.x1A)("editorIndentGuide.background3","#00000000",r.kg("editorIndentGuides3","Color of the editor indentation guides (3).")),(0,s.x1A)("editorIndentGuide.background4","#00000000",r.kg("editorIndentGuides4","Color of the editor indentation guides (4).")),(0,s.x1A)("editorIndentGuide.background5","#00000000",r.kg("editorIndentGuides5","Color of the editor indentation guides (5).")),(0,s.x1A)("editorIndentGuide.background6","#00000000",r.kg("editorIndentGuides6","Color of the editor indentation guides (6).")),(0,s.x1A)("editorIndentGuide.activeBackground1",d,r.kg("editorActiveIndentGuide1","Color of the active editor indentation guides (1).")),(0,s.x1A)("editorIndentGuide.activeBackground2","#00000000",r.kg("editorActiveIndentGuide2","Color of the active editor indentation guides (2).")),(0,s.x1A)("editorIndentGuide.activeBackground3","#00000000",r.kg("editorActiveIndentGuide3","Color of the active editor indentation guides (3).")),(0,s.x1A)("editorIndentGuide.activeBackground4","#00000000",r.kg("editorActiveIndentGuide4","Color of the active editor indentation guides (4).")),(0,s.x1A)("editorIndentGuide.activeBackground5","#00000000",r.kg("editorActiveIndentGuide5","Color of the active editor indentation guides (5).")),(0,s.x1A)("editorIndentGuide.activeBackground6","#00000000",r.kg("editorActiveIndentGuide6","Color of the active editor indentation guides (6).")),(0,s.x1A)("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hcDark:s.buw,hcLight:s.buw},r.kg("editorActiveLineNumber","Color of editor active line number"),!1,r.kg("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead."))),f=((0,s.x1A)("editorLineNumber.activeForeground",g,r.kg("editorActiveLineNumber","Color of editor active line number")),(0,s.x1A)("editorLineNumber.dimmedForeground",null,r.kg("editorDimmedLineNumber","Color of the final editor line when editor.renderFinalNewline is set to dimmed.")),(0,s.x1A)("editorRuler.foreground",{dark:"#5A5A5A",light:i.Q1.lightgrey,hcDark:i.Q1.white,hcLight:"#292929"},r.kg("editorRuler","Color of the editor rulers.")),(0,s.x1A)("editorCodeLens.foreground",{dark:"#999999",light:"#919191",hcDark:"#999999",hcLight:"#292929"},r.kg("editorCodeLensForeground","Foreground color of editor CodeLens")),(0,s.x1A)("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hcDark:"#0064001a",hcLight:"#0000"},r.kg("editorBracketMatchBackground","Background color behind matching brackets")),(0,s.x1A)("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hcDark:s.b1q,hcLight:s.b1q},r.kg("editorBracketMatchBorder","Color for matching brackets boxes")),(0,s.x1A)("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hcDark:"#7f7f7f4d",hcLight:"#666666"},r.kg("editorOverviewRulerBorder","Color of the overview ruler border.")),(0,s.x1A)("editorOverviewRuler.background",null,r.kg("editorOverviewRulerBackground","Background color of the editor overview ruler.")),(0,s.x1A)("editorGutter.background",s.YtV,r.kg("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),(0,s.x1A)("editorUnnecessaryCode.border",{dark:null,light:null,hcDark:i.Q1.fromHex("#fff").transparent(.8),hcLight:s.b1q},r.kg("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),(0,s.x1A)("editorUnnecessaryCode.opacity",{dark:i.Q1.fromHex("#000a"),light:i.Q1.fromHex("#0007"),hcDark:null,hcLight:null},r.kg("unnecessaryCodeOpacity","Opacity of unnecessary (unused) source code in the editor. For example, \"#000000c0\" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out.")),(0,s.x1A)("editorGhostText.border",{dark:null,light:null,hcDark:i.Q1.fromHex("#fff").transparent(.8),hcLight:i.Q1.fromHex("#292929").transparent(.8)},r.kg("editorGhostTextBorder","Border color of ghost text in the editor.")),(0,s.x1A)("editorGhostText.foreground",{dark:i.Q1.fromHex("#ffffff56"),light:i.Q1.fromHex("#0007"),hcDark:null,hcLight:null},r.kg("editorGhostTextForeground","Foreground color of the ghost text in the editor.")),(0,s.x1A)("editorGhostText.background",null,r.kg("editorGhostTextBackground","Background color of the ghost text in the editor.")),new i.Q1(new i.bU(0,122,204,.6))),m=((0,s.x1A)("editorOverviewRuler.rangeHighlightForeground",f,r.kg("overviewRulerRangeHighlight","Overview ruler marker color for range highlights. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1A)("editorOverviewRuler.errorForeground",{dark:new i.Q1(new i.bU(255,18,18,.7)),light:new i.Q1(new i.bU(255,18,18,.7)),hcDark:new i.Q1(new i.bU(255,50,50,1)),hcLight:"#B5200D"},r.kg("overviewRuleError","Overview ruler marker color for errors."))),p=(0,s.x1A)("editorOverviewRuler.warningForeground",{dark:s.Hng,light:s.Hng,hcDark:s.Stt,hcLight:s.Stt},r.kg("overviewRuleWarning","Overview ruler marker color for warnings.")),b=(0,s.x1A)("editorOverviewRuler.infoForeground",{dark:s.pOz,light:s.pOz,hcDark:s.IIb,hcLight:s.IIb},r.kg("overviewRuleInfo","Overview ruler marker color for infos.")),_=(0,s.x1A)("editorBracketHighlight.foreground1",{dark:"#FFD700",light:"#0431FAFF",hcDark:"#FFD700",hcLight:"#0431FAFF"},r.kg("editorBracketHighlightForeground1","Foreground color of brackets (1). Requires enabling bracket pair colorization.")),k=(0,s.x1A)("editorBracketHighlight.foreground2",{dark:"#DA70D6",light:"#319331FF",hcDark:"#DA70D6",hcLight:"#319331FF"},r.kg("editorBracketHighlightForeground2","Foreground color of brackets (2). Requires enabling bracket pair colorization.")),v=(0,s.x1A)("editorBracketHighlight.foreground3",{dark:"#179FFF",light:"#7B3814FF",hcDark:"#87CEFA",hcLight:"#7B3814FF"},r.kg("editorBracketHighlightForeground3","Foreground color of brackets (3). Requires enabling bracket pair colorization.")),C=(0,s.x1A)("editorBracketHighlight.foreground4","#00000000",r.kg("editorBracketHighlightForeground4","Foreground color of brackets (4). Requires enabling bracket pair colorization.")),y=(0,s.x1A)("editorBracketHighlight.foreground5","#00000000",r.kg("editorBracketHighlightForeground5","Foreground color of brackets (5). Requires enabling bracket pair colorization.")),L=(0,s.x1A)("editorBracketHighlight.foreground6","#00000000",r.kg("editorBracketHighlightForeground6","Foreground color of brackets (6). Requires enabling bracket pair colorization.")),w=(0,s.x1A)("editorBracketHighlight.unexpectedBracket.foreground",{dark:new i.Q1(new i.bU(255,18,18,.8)),light:new i.Q1(new i.bU(255,18,18,.8)),hcDark:"new Color(new RGBA(255, 50, 50, 1))",hcLight:"#B5200D"},r.kg("editorBracketHighlightUnexpectedBracketForeground","Foreground color of unexpected brackets."));(0,s.x1A)("editorBracketPairGuide.background1","#00000000",r.kg("editorBracketPairGuide.background1","Background color of inactive bracket pair guides (1). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background2","#00000000",r.kg("editorBracketPairGuide.background2","Background color of inactive bracket pair guides (2). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background3","#00000000",r.kg("editorBracketPairGuide.background3","Background color of inactive bracket pair guides (3). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background4","#00000000",r.kg("editorBracketPairGuide.background4","Background color of inactive bracket pair guides (4). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background5","#00000000",r.kg("editorBracketPairGuide.background5","Background color of inactive bracket pair guides (5). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background6","#00000000",r.kg("editorBracketPairGuide.background6","Background color of inactive bracket pair guides (6). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground1","#00000000",r.kg("editorBracketPairGuide.activeBackground1","Background color of active bracket pair guides (1). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground2","#00000000",r.kg("editorBracketPairGuide.activeBackground2","Background color of active bracket pair guides (2). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground3","#00000000",r.kg("editorBracketPairGuide.activeBackground3","Background color of active bracket pair guides (3). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground4","#00000000",r.kg("editorBracketPairGuide.activeBackground4","Background color of active bracket pair guides (4). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground5","#00000000",r.kg("editorBracketPairGuide.activeBackground5","Background color of active bracket pair guides (5). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground6","#00000000",r.kg("editorBracketPairGuide.activeBackground6","Background color of active bracket pair guides (6). Requires enabling bracket pair guides.")),(0,s.x1A)("editorUnicodeHighlight.border",s.Hng,r.kg("editorUnicodeHighlight.border","Border color used to highlight unicode characters.")),(0,s.x1A)("editorUnicodeHighlight.background",s.whs,r.kg("editorUnicodeHighlight.background","Background color used to highlight unicode characters."));(0,o.zy)(((e,t)=>{const n=e.getColor(s.YtV),r=e.getColor(a),i=r&&!r.isTransparent()?r:n;i&&t.addRule(`.monaco-editor .inputarea.ime-input { background-color: ${i}; }`)}))},7550:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IMarkerDecorationsService:()=>r});const r=(0,n(3591).u1)("markerDecorationsService")},7596:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LanguageService:()=>O});var r=n(1234),i=n(1484),s=n(9259),o=n(9861),a=n(2083),l=n(3941);const c=(e,t)=>e===t;new WeakMap;class h{constructor(e,t,n){this.owner=e,this.debugNameSource=t,this.referenceFn=n}getDebugName(e){return function(e,t){const n=d.get(e);if(n)return n;const r=function(e,t){const n=d.get(e);if(n)return n;const r=t.owner?function(e){const t=f.get(e);if(t)return t;const n=function(e){const t=e.constructor;if(t)return t.name;return"Object"}(e);let r=g.get(n)??0;r++,g.set(n,r);const i=1===r?n:`${n}#${r}`;return f.set(e,i),i}(t.owner)+".":"";let i;const s=t.debugNameSource;if(void 0!==s){if("function"!==typeof s)return r+s;if(i=s(),void 0!==i)return r+i}const o=t.referenceFn;if(void 0!==o&&(i=m(o),void 0!==i))return r+i;if(void 0!==t.owner){const n=function(e,t){for(const n in e)if(e[n]===t)return n;return}(t.owner,e);if(void 0!==n)return r+n}return}(e,t);if(r){let t=u.get(r)??0;t++,u.set(r,t);const n=1===t?r:`${r}#${t}`;return d.set(e,n),n}return}(e,this)}}const u=new Map,d=new WeakMap;const g=new Map,f=new WeakMap;function m(e){const t=e.toString(),n=/\/\*\*\s*@description\s*([^*]*)\*\//.exec(t),r=n?n[1]:void 0;return r?.trim()}let p,b,_,k;function v(){return p}class C{get TChange(){return null}reportChanges(){this.get()}read(e){return e?e.readObservable(this):this.get()}map(e,t){const n=void 0===t?void 0:e,r=void 0===t?e:t;return k({owner:n,debugName:()=>{const e=m(r);if(void 0!==e)return e;const t=/^\s*\(?\s*([a-zA-Z_$][a-zA-Z_$0-9]*)\s*\)?\s*=>\s*\1(?:\??)\.([a-zA-Z_$][a-zA-Z_$0-9]*)\s*$/.exec(r.toString());return t?`${this.debugName}.${t[2]}`:n?void 0:`${this.debugName} (mapped)`},debugReferenceFn:r},(e=>r(this.read(e),e)))}flatten(){return k({owner:void 0,debugName:()=>`${this.debugName} (flattened)`},(e=>this.read(e).read(e)))}recomputeInitiallyAndOnChange(e,t){return e.add(b(this,t)),this}keepObserved(e){return e.add(_(this)),this}}class y extends C{constructor(){super(...arguments),this.observers=new Set}addObserver(e){const t=this.observers.size;this.observers.add(e),0===t&&this.onFirstObserverAdded()}removeObserver(e){this.observers.delete(e)&&0===this.observers.size&&this.onLastObserverRemoved()}onFirstObserverAdded(){}onLastObserverRemoved(){}}function L(e,t){const n=new w(e,t);try{e(n)}finally{n.finish()}}class w{constructor(e,t){this._fn=e,this._getDebugName=t,this.updatingObservers=[],v()?.handleBeginTransaction(this)}getDebugName(){return this._getDebugName?this._getDebugName():m(this._fn)}updateObserver(e,t){this.updatingObservers.push({observer:e,observable:t}),e.beginUpdate(t)}finish(){const e=this.updatingObservers;for(let t=0;t<e.length;t++){const{observer:n,observable:r}=e[t];n.endUpdate(r)}this.updatingObservers=null,v()?.handleEndTransaction()}}var S=n(6782);!function(e){k=e}((function(e,t){return new x(new h(e.owner,e.debugName,e.debugReferenceFn),t,void 0,void 0,e.onLastObserverRemoved,e.equalsFn??c)}));class x extends y{get debugName(){return this._debugNameData.getDebugName(this)??"(anonymous)"}constructor(e,t,n,r,i=void 0,s){super(),this._debugNameData=e,this._computeFn=t,this.createChangeSummary=n,this._handleChange=r,this._handleLastObserverRemoved=i,this._equalityComparator=s,this.state=0,this.value=void 0,this.updateCount=0,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=void 0,this.changeSummary=this.createChangeSummary?.(),v()?.handleDerivedCreated(this)}onLastObserverRemoved(){this.state=0,this.value=void 0;for(const e of this.dependencies)e.removeObserver(this);this.dependencies.clear(),this._handleLastObserverRemoved?.()}get(){if(0===this.observers.size){const e=this._computeFn(this,this.createChangeSummary?.());return this.onLastObserverRemoved(),e}do{if(1===this.state)for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break;1===this.state&&(this.state=3),this._recomputeIfNeeded()}while(3!==this.state);return this.value}_recomputeIfNeeded(){if(3===this.state)return;const e=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=e;const t=0!==this.state,n=this.value;this.state=3;const r=this.changeSummary;this.changeSummary=this.createChangeSummary?.();try{this.value=this._computeFn(this,r)}finally{for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}const i=t&&!this._equalityComparator(n,this.value);if(v()?.handleDerivedRecomputed(this,{oldValue:n,newValue:this.value,change:void 0,didChange:i,hadValue:t}),i)for(const s of this.observers)s.handleChange(this,void 0)}toString(){return`LazyDerived<${this.debugName}>`}beginUpdate(e){this.updateCount++;const t=1===this.updateCount;if(3===this.state&&(this.state=1,!t))for(const n of this.observers)n.handlePossibleChange(this);if(t)for(const n of this.observers)n.beginUpdate(this)}endUpdate(e){if(this.updateCount--,0===this.updateCount){const e=[...this.observers];for(const t of e)t.endUpdate(this)}(0,S.Ft)((()=>this.updateCount>=0))}handlePossibleChange(e){if(3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){this.state=1;for(const e of this.observers)e.handlePossibleChange(this)}}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){const n=!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary),r=3===this.state;if(n&&(1===this.state||r)&&(this.state=2,r))for(const e of this.observers)e.handlePossibleChange(this)}}readObservable(e){e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}addObserver(e){const t=!this.observers.has(e)&&this.updateCount>0;super.addObserver(e),t&&e.beginUpdate(this)}removeObserver(e){const t=this.observers.has(e)&&this.updateCount>0;super.removeObserver(e),t&&e.endUpdate(this)}}function E(e){return new N(new h(void 0,void 0,e),e,void 0,void 0)}class N{get debugName(){return this._debugNameData.getDebugName(this)??"(anonymous)"}constructor(e,t,n,r){this._debugNameData=e,this._runFn=t,this.createChangeSummary=n,this._handleChange=r,this.state=2,this.updateCount=0,this.disposed=!1,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=this.createChangeSummary?.(),v()?.handleAutorunCreated(this),this._runIfNeeded(),(0,i.Ay)(this)}dispose(){this.disposed=!0;for(const e of this.dependencies)e.removeObserver(this);this.dependencies.clear(),(0,i.VD)(this)}_runIfNeeded(){if(3===this.state)return;const e=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=e,this.state=3;const t=this.disposed;try{if(!t){v()?.handleAutorunTriggered(this);const e=this.changeSummary;this.changeSummary=this.createChangeSummary?.(),this._runFn(this,e)}}finally{t||v()?.handleAutorunFinished(this);for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}}toString(){return`Autorun<${this.debugName}>`}beginUpdate(){3===this.state&&(this.state=1),this.updateCount++}endUpdate(){if(1===this.updateCount)do{if(1===this.state){this.state=3;for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break}this._runIfNeeded()}while(3!==this.state);this.updateCount--,(0,S.Ft)((()=>this.updateCount>=0))}handlePossibleChange(e){3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)&&(this.state=1)}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){(!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary))&&(this.state=2)}}readObservable(e){if(this.disposed)return e.get();e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}}!function(e){e.Observer=N}(E||(E={}));function T(...e){let t,n,r;return 3===e.length?[t,n,r]=e:[n,r]=e,new A(new h(t,void 0,r),n,r,(()=>A.globalTransaction),c)}class A extends y{constructor(e,t,n,r,i){super(),this._debugNameData=e,this.event=t,this._getValue=n,this._getTransaction=r,this._equalityComparator=i,this.hasValue=!1,this.handleEvent=e=>{const t=this._getValue(e),n=this.value,r=!this.hasValue||!this._equalityComparator(n,t);let i=!1;r&&(this.value=t,this.hasValue&&(i=!0,function(e,t,n){e?t(e):L(t,n)}(this._getTransaction(),(e=>{v()?.handleFromEventObservableTriggered(this,{oldValue:n,newValue:t,change:void 0,didChange:r,hadValue:this.hasValue});for(const t of this.observers)e.updateObserver(t,this),t.handleChange(this,void 0)}),(()=>{const e=this.getDebugName();return"Event fired"+(e?`: ${e}`:"")}))),this.hasValue=!0),i||v()?.handleFromEventObservableTriggered(this,{oldValue:n,newValue:t,change:void 0,didChange:r,hadValue:this.hasValue})}}getDebugName(){return this._debugNameData.getDebugName(this)}get debugName(){const e=this.getDebugName();return"From Event"+(e?`: ${e}`:"")}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0,this.hasValue=!1,this.value=void 0}get(){if(this.subscription)return this.hasValue||this.handleEvent(void 0),this.value;return this._getValue(void 0)}}!function(e){e.Observer=A,e.batchEventsGlobally=function(e,t){let n=!1;void 0===A.globalTransaction&&(A.globalTransaction=e,n=!0);try{t()}finally{n&&(A.globalTransaction=void 0)}}}(T||(T={}));!function(e){_=e}((function(e){const t=new I(!1,void 0);return e.addObserver(t),(0,i.s)((()=>{e.removeObserver(t)}))})),function(e){b=e}((function(e,t){const n=new I(!0,t);return e.addObserver(n),t?t(e.get()):e.reportChanges(),(0,i.s)((()=>{e.removeObserver(n)}))}));class I{constructor(e,t){this._forceRecompute=e,this._handleValue=t,this._counter=0}beginUpdate(e){this._counter++}endUpdate(e){this._counter--,0===this._counter&&this._forceRecompute&&(this._handleValue?this._handleValue(e.get()):e.reportChanges())}handlePossibleChange(e){}handleChange(e,t){}}n(4383);class O extends i.jG{static{this.instanceCount=0}constructor(e=!1){super(),this._onDidRequestBasicLanguageFeatures=this._register(new r.vl),this.onDidRequestBasicLanguageFeatures=this._onDidRequestBasicLanguageFeatures.event,this._onDidRequestRichLanguageFeatures=this._register(new r.vl),this.onDidRequestRichLanguageFeatures=this._onDidRequestRichLanguageFeatures.event,this._onDidChange=this._register(new r.vl({leakWarningThreshold:200})),this.onDidChange=this._onDidChange.event,this._requestedBasicLanguages=new Set,this._requestedRichLanguages=new Set,O.instanceCount++,this._registry=this._register(new s.LanguagesRegistry(!0,e)),this.languageIdCodec=this._registry.languageIdCodec,this._register(this._registry.onDidChange((()=>this._onDidChange.fire())))}dispose(){O.instanceCount--,super.dispose()}isRegisteredLanguageId(e){return this._registry.isRegisteredLanguageId(e)}getLanguageIdByLanguageName(e){return this._registry.getLanguageIdByLanguageName(e)}getLanguageIdByMimeType(e){return this._registry.getLanguageIdByMimeType(e)}guessLanguageIdByFilepathOrFirstLine(e,t){const n=this._registry.guessLanguageIdByFilepathOrFirstLine(e,t);return(0,o.Fy)(n,null)}createById(e){return new M(this.onDidChange,(()=>this._createAndGetLanguageIdentifier(e)))}createByFilepathOrFirstLine(e,t){return new M(this.onDidChange,(()=>{const n=this.guessLanguageIdByFilepathOrFirstLine(e,t);return this._createAndGetLanguageIdentifier(n)}))}_createAndGetLanguageIdentifier(e){return e&&this.isRegisteredLanguageId(e)||(e=l.vH),e}requestBasicLanguageFeatures(e){this._requestedBasicLanguages.has(e)||(this._requestedBasicLanguages.add(e),this._onDidRequestBasicLanguageFeatures.fire(e))}requestRichLanguageFeatures(e){this._requestedRichLanguages.has(e)||(this._requestedRichLanguages.add(e),this.requestBasicLanguageFeatures(e),a.dG.getOrCreate(e),this._onDidRequestRichLanguageFeatures.fire(e))}}class M{constructor(e,t){this._value=T(this,e,(()=>t())),this.onDidChange=r.Jh.fromObservable(this._value)}get languageId(){return this._value.get()}}},7614:(e,t,n)=>{var r={"./editorBaseApi":4272,"./editorBaseApi.js":4272,"./editorSimpleWorker":5196,"./editorSimpleWorker.js":5196,"./editorWorker":920,"./editorWorker.js":920,"./editorWorkerHost":718,"./editorWorkerHost.js":718,"./findSectionHeaders":6691,"./findSectionHeaders.js":6691,"./getIconClasses":5628,"./getIconClasses.js":5628,"./languageFeatureDebounce":8709,"./languageFeatureDebounce.js":8709,"./languageFeatures":6942,"./languageFeatures.js":6942,"./languageFeaturesService":2661,"./languageFeaturesService.js":2661,"./languageService":7596,"./languageService.js":7596,"./languagesAssociations":9908,"./languagesAssociations.js":9908,"./languagesRegistry":9259,"./languagesRegistry.js":9259,"./markerDecorations":7550,"./markerDecorations.js":7550,"./markerDecorationsService":448,"./markerDecorationsService.js":448,"./model":3750,"./model.js":3750,"./modelService":1773,"./modelService.js":1773,"./resolverService":8938,"./resolverService.js":8938,"./semanticTokensDto":8232,"./semanticTokensDto.js":8232,"./semanticTokensProviderStyling":5538,"./semanticTokensProviderStyling.js":5538,"./semanticTokensStyling":4243,"./semanticTokensStyling.js":4243,"./semanticTokensStylingService":7004,"./semanticTokensStylingService.js":7004,"./textModelSync/textModelSync.impl":796,"./textModelSync/textModelSync.impl.js":796,"./textModelSync/textModelSync.protocol":8868,"./textModelSync/textModelSync.protocol.js":8868,"./textResourceConfiguration":360,"./textResourceConfiguration.js":360,"./treeSitterParserService":4432,"./treeSitterParserService.js":4432,"./treeViewsDnd":6723,"./treeViewsDnd.js":6723,"./treeViewsDndService":9100,"./treeViewsDndService.js":9100,"./unicodeTextModelHighlighter":4855,"./unicodeTextModelHighlighter.js":4855,"monaco-editor/esm/vs/editor/common/services/editorBaseApi":4272,"monaco-editor/esm/vs/editor/common/services/editorBaseApi.js":4272,"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker":5196,"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker.js":5196,"monaco-editor/esm/vs/editor/common/services/editorWorker":920,"monaco-editor/esm/vs/editor/common/services/editorWorker.js":920,"monaco-editor/esm/vs/editor/common/services/editorWorkerHost":718,"monaco-editor/esm/vs/editor/common/services/editorWorkerHost.js":718,"monaco-editor/esm/vs/editor/common/services/findSectionHeaders":6691,"monaco-editor/esm/vs/editor/common/services/findSectionHeaders.js":6691,"monaco-editor/esm/vs/editor/common/services/getIconClasses":5628,"monaco-editor/esm/vs/editor/common/services/getIconClasses.js":5628,"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce":8709,"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce.js":8709,"monaco-editor/esm/vs/editor/common/services/languageFeatures":6942,"monaco-editor/esm/vs/editor/common/services/languageFeatures.js":6942,"monaco-editor/esm/vs/editor/common/services/languageFeaturesService":2661,"monaco-editor/esm/vs/editor/common/services/languageFeaturesService.js":2661,"monaco-editor/esm/vs/editor/common/services/languageService":7596,"monaco-editor/esm/vs/editor/common/services/languageService.js":7596,"monaco-editor/esm/vs/editor/common/services/languagesAssociations":9908,"monaco-editor/esm/vs/editor/common/services/languagesAssociations.js":9908,"monaco-editor/esm/vs/editor/common/services/languagesRegistry":9259,"monaco-editor/esm/vs/editor/common/services/languagesRegistry.js":9259,"monaco-editor/esm/vs/editor/common/services/markerDecorations":7550,"monaco-editor/esm/vs/editor/common/services/markerDecorations.js":7550,"monaco-editor/esm/vs/editor/common/services/markerDecorationsService":448,"monaco-editor/esm/vs/editor/common/services/markerDecorationsService.js":448,"monaco-editor/esm/vs/editor/common/services/model":3750,"monaco-editor/esm/vs/editor/common/services/model.js":3750,"monaco-editor/esm/vs/editor/common/services/modelService":1773,"monaco-editor/esm/vs/editor/common/services/modelService.js":1773,"monaco-editor/esm/vs/editor/common/services/resolverService":8938,"monaco-editor/esm/vs/editor/common/services/resolverService.js":8938,"monaco-editor/esm/vs/editor/common/services/semanticTokensDto":8232,"monaco-editor/esm/vs/editor/common/services/semanticTokensDto.js":8232,"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling":5538,"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling.js":5538,"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling":4243,"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling.js":4243,"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService":7004,"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService.js":7004,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl":796,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl.js":796,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol":8868,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol.js":8868,"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration":360,"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration.js":360,"monaco-editor/esm/vs/editor/common/services/treeSitterParserService":4432,"monaco-editor/esm/vs/editor/common/services/treeSitterParserService.js":4432,"monaco-editor/esm/vs/editor/common/services/treeViewsDnd":6723,"monaco-editor/esm/vs/editor/common/services/treeViewsDnd.js":6723,"monaco-editor/esm/vs/editor/common/services/treeViewsDndService":9100,"monaco-editor/esm/vs/editor/common/services/treeViewsDndService.js":9100,"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter":4855,"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter.js":4855};function i(e){var t=s(e);return n(t)}function s(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=s,e.exports=i,i.id=7614},7661:(e,t,n)=>{"use strict";function r(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}n.d(t,{Q1:()=>a,bU:()=>i,hB:()=>s});class i{constructor(e,t,n,i=1){this._rgbaBrand=void 0,this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,t)),this.b=0|Math.min(255,Math.max(0,n)),this.a=r(Math.max(Math.min(1,i),0),3)}static equals(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}}class s{constructor(e,t,n,i){this._hslaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=r(Math.max(Math.min(1,t),0),3),this.l=r(Math.max(Math.min(1,n),0),3),this.a=r(Math.max(Math.min(1,i),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(e){const t=e.r/255,n=e.g/255,r=e.b/255,i=e.a,o=Math.max(t,n,r),a=Math.min(t,n,r);let l=0,c=0;const h=(a+o)/2,u=o-a;if(u>0){switch(c=Math.min(h<=.5?u/(2*h):u/(2-2*h),1),o){case t:l=(n-r)/u+(n<r?6:0);break;case n:l=(r-t)/u+2;break;case r:l=(t-n)/u+4}l*=60,l=Math.round(l)}return new s(l,c,h,i)}static _hue2rgb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}static toRGBA(e){const t=e.h/360,{s:n,l:r,a:o}=e;let a,l,c;if(0===n)a=l=c=r;else{const e=r<.5?r*(1+n):r+n-r*n,i=2*r-e;a=s._hue2rgb(i,e,t+1/3),l=s._hue2rgb(i,e,t),c=s._hue2rgb(i,e,t-1/3)}return new i(Math.round(255*a),Math.round(255*l),Math.round(255*c),o)}}class o{constructor(e,t,n,i){this._hsvaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=r(Math.max(Math.min(1,t),0),3),this.v=r(Math.max(Math.min(1,n),0),3),this.a=r(Math.max(Math.min(1,i),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(e){const t=e.r/255,n=e.g/255,r=e.b/255,i=Math.max(t,n,r),s=i-Math.min(t,n,r),a=0===i?0:s/i;let l;return l=0===s?0:i===t?((n-r)/s%6+6)%6:i===n?(r-t)/s+2:(t-n)/s+4,new o(Math.round(60*l),a,i,e.a)}static toRGBA(e){const{h:t,s:n,v:r,a:s}=e,o=r*n,a=o*(1-Math.abs(t/60%2-1)),l=r-o;let[c,h,u]=[0,0,0];return t<60?(c=o,h=a):t<120?(c=a,h=o):t<180?(h=o,u=a):t<240?(h=a,u=o):t<300?(c=a,u=o):t<=360&&(c=o,u=a),c=Math.round(255*(c+l)),h=Math.round(255*(h+l)),u=Math.round(255*(u+l)),new i(c,h,u,s)}}class a{static fromHex(e){return a.Format.CSS.parseHex(e)||a.red}static equals(e,t){return!e&&!t||!(!e||!t)&&e.equals(t)}get hsla(){return this._hsla?this._hsla:s.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:o.fromRGBA(this.rgba)}constructor(e){if(!e)throw new Error("Color needs a value");if(e instanceof i)this.rgba=e;else if(e instanceof s)this._hsla=e,this.rgba=s.toRGBA(e);else{if(!(e instanceof o))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=o.toRGBA(e)}}equals(e){return!!e&&i.equals(this.rgba,e.rgba)&&s.equals(this.hsla,e.hsla)&&o.equals(this.hsva,e.hsva)}getRelativeLuminance(){return r(.2126*a._relativeLuminanceForComponent(this.rgba.r)+.7152*a._relativeLuminanceForComponent(this.rgba.g)+.0722*a._relativeLuminanceForComponent(this.rgba.b),4)}static _relativeLuminanceForComponent(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}isLighter(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128}isLighterThan(e){return this.getRelativeLuminance()>e.getRelativeLuminance()}isDarkerThan(e){return this.getRelativeLuminance()<e.getRelativeLuminance()}lighten(e){return new a(new s(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*e,this.hsla.a))}darken(e){return new a(new s(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*e,this.hsla.a))}transparent(e){const{r:t,g:n,b:r,a:s}=this.rgba;return new a(new i(t,n,r,s*e))}isTransparent(){return 0===this.rgba.a}isOpaque(){return 1===this.rgba.a}opposite(){return new a(new i(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(e){if(this.isOpaque()||1!==e.rgba.a)return this;const{r:t,g:n,b:r,a:s}=this.rgba;return new a(new i(e.rgba.r-s*(e.rgba.r-t),e.rgba.g-s*(e.rgba.g-n),e.rgba.b-s*(e.rgba.b-r),1))}toString(){return this._toString||(this._toString=a.Format.CSS.format(this)),this._toString}static getLighterColor(e,t,n){if(e.isLighterThan(t))return e;n=n||.5;const 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=n||.5;const r=e.getRelativeLuminance();return n=n*(r-t.getRelativeLuminance())/r,e.darken(n)}static{this.white=new a(new i(255,255,255,1))}static{this.black=new a(new i(0,0,0,1))}static{this.red=new a(new i(255,0,0,1))}static{this.blue=new a(new i(0,0,255,1))}static{this.green=new a(new i(0,255,0,1))}static{this.cyan=new a(new i(0,255,255,1))}static{this.lightgrey=new a(new i(211,211,211,1))}static{this.transparent=new a(new i(0,0,0,0))}}!function(e){let t;!function(t){let n;!function(t){function n(e){const t=e.toString(16);return 2!==t.length?"0"+t:t}function r(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:case 65:return 10;case 98:case 66:return 11;case 99:case 67:return 12;case 100:case 68:return 13;case 101:case 69:return 14;case 102:case 70:return 15}return 0}t.formatRGB=function(t){return 1===t.rgba.a?`rgb(${t.rgba.r}, ${t.rgba.g}, ${t.rgba.b})`:e.Format.CSS.formatRGBA(t)},t.formatRGBA=function(e){return`rgba(${e.rgba.r}, ${e.rgba.g}, ${e.rgba.b}, ${+e.rgba.a.toFixed(2)})`},t.formatHSL=function(t){return 1===t.hsla.a?`hsl(${t.hsla.h}, ${(100*t.hsla.s).toFixed(2)}%, ${(100*t.hsla.l).toFixed(2)}%)`:e.Format.CSS.formatHSLA(t)},t.formatHSLA=function(e){return`hsla(${e.hsla.h}, ${(100*e.hsla.s).toFixed(2)}%, ${(100*e.hsla.l).toFixed(2)}%, ${e.hsla.a.toFixed(2)})`},t.formatHex=function(e){return`#${n(e.rgba.r)}${n(e.rgba.g)}${n(e.rgba.b)}`},t.formatHexA=function(t,r=!1){return r&&1===t.rgba.a?e.Format.CSS.formatHex(t):`#${n(t.rgba.r)}${n(t.rgba.g)}${n(t.rgba.b)}${n(Math.round(255*t.rgba.a))}`},t.format=function(t){return t.isOpaque()?e.Format.CSS.formatHex(t):e.Format.CSS.formatRGBA(t)},t.parseHex=function(t){const n=t.length;if(0===n)return null;if(35!==t.charCodeAt(0))return null;if(7===n){const n=16*r(t.charCodeAt(1))+r(t.charCodeAt(2)),s=16*r(t.charCodeAt(3))+r(t.charCodeAt(4)),o=16*r(t.charCodeAt(5))+r(t.charCodeAt(6));return new e(new i(n,s,o,1))}if(9===n){const n=16*r(t.charCodeAt(1))+r(t.charCodeAt(2)),s=16*r(t.charCodeAt(3))+r(t.charCodeAt(4)),o=16*r(t.charCodeAt(5))+r(t.charCodeAt(6)),a=16*r(t.charCodeAt(7))+r(t.charCodeAt(8));return new e(new i(n,s,o,a/255))}if(4===n){const n=r(t.charCodeAt(1)),s=r(t.charCodeAt(2)),o=r(t.charCodeAt(3));return new e(new i(16*n+n,16*s+s,16*o+o))}if(5===n){const n=r(t.charCodeAt(1)),s=r(t.charCodeAt(2)),o=r(t.charCodeAt(3)),a=r(t.charCodeAt(4));return new e(new i(16*n+n,16*s+s,16*o+o,(16*a+a)/255))}return null}}(n=t.CSS||(t.CSS={}))}(t=e.Format||(e.Format={}))}(a||(a={}))},7729:(e,t,n)=>{"use strict";n.d(t,{lt:()=>u,W5:()=>p,hB:()=>f,dr:()=>d,wC:()=>m});var r=n(1508),i=n(4320),s=n(534);class o extends s.V{constructor(e,t){super(0),this._segmenter=null,this._cachedLine=null,this._cachedSegments=[],this.intlSegmenterLocales=t,this.intlSegmenterLocales.length>0?this._segmenter=new Intl.Segmenter(this.intlSegmenterLocales,{granularity:"word"}):this._segmenter=null;for(let n=0,r=e.length;n<r;n++)this.set(e.charCodeAt(n),2);this.set(32,1),this.set(9,1)}findPrevIntlWordBeforeOrAtOffset(e,t){let n=null;for(const r of this._getIntlSegmenterWordsOnLine(e)){if(r.index>t)break;n=r}return n}findNextIntlWordAtOrAfterOffset(e,t){for(const n of this._getIntlSegmenterWordsOnLine(e))if(!(n.index<t))return n;return null}_getIntlSegmenterWordsOnLine(e){return this._segmenter?(this._cachedLine===e||(this._cachedLine=e,this._cachedSegments=this._filterWordSegments(this._segmenter.segment(e))),this._cachedSegments):[]}_filterWordSegments(e){const t=[];for(const n of e)this._isWordLike(n)&&t.push(n);return t}_isWordLike(e){return!!e.isWordLike}}const a=new i.qK(10);var l=n(3069),c=n(6677),h=n(6223);class u{constructor(e,t,n,r){this.searchString=e,this.isRegex=t,this.matchCase=n,this.wordSeparators=r}parseSearchRequest(){if(""===this.searchString)return null;let e;e=this.isRegex?function(e){if(!e||0===e.length)return!1;for(let t=0,n=e.length;t<n;t++){const r=e.charCodeAt(t);if(10===r)return!0;if(92===r){if(t++,t>=n)break;const r=e.charCodeAt(t);if(110===r||114===r||87===r)return!0}}return!1}(this.searchString):this.searchString.indexOf("\n")>=0;let t=null;try{t=r.OS(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0,unicode:!0})}catch(i){return null}if(!t)return null;let n=!this.isRegex&&!e;return n&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(n=this.matchCase),new h.L5(t,this.wordSeparators?function(e,t){const n=`${e}/${t.join(",")}`;let r=a.get(n);return r||(r=new o(e,t),a.set(n,r)),r}(this.wordSeparators,[]):null,n?this.searchString:null)}}function d(e,t,n){if(!n)return new h.Dg(e,null);const r=[];for(let i=0,s=t.length;i<s;i++)r[i]=t[i];return new h.Dg(e,r)}class g{constructor(e){const t=[];let n=0;for(let r=0,i=e.length;r<i;r++)10===e.charCodeAt(r)&&(t[n++]=r);this._lineFeedsOffsets=t}findLineFeedCountBeforeOffset(e){const t=this._lineFeedsOffsets;let n=0,r=t.length-1;if(-1===r)return 0;if(e<=t[0])return 0;for(;n<r;){const i=n+((r-n)/2|0);t[i]>=e?r=i-1:t[i+1]>=e?(n=i,r=i):n=i+1}return n+1}}class f{static findMatches(e,t,n,r,i){const s=t.parseSearchRequest();return s?s.regex.multiline?this._doFindMatchesMultiline(e,n,new p(s.wordSeparators,s.regex),r,i):this._doFindMatchesLineByLine(e,n,s,r,i):[]}static _getMultilineMatchRange(e,t,n,r,i,s){let o,a,l=0;if(r?(l=r.findLineFeedCountBeforeOffset(i),o=t+i+l):o=t+i,r){const e=r.findLineFeedCountBeforeOffset(i+s.length)-l;a=o+s.length+e}else a=o+s.length;const h=e.getPositionAt(o),u=e.getPositionAt(a);return new c.Q(h.lineNumber,h.column,u.lineNumber,u.column)}static _doFindMatchesMultiline(e,t,n,r,i){const s=e.getOffsetAt(t.getStartPosition()),o=e.getValueInRange(t,1),a="\r\n"===e.getEOL()?new g(o):null,l=[];let c,h=0;for(n.reset(0);c=n.next(o);)if(l[h++]=d(this._getMultilineMatchRange(e,s,o,a,c.index,c[0]),c,r),h>=i)return l;return l}static _doFindMatchesLineByLine(e,t,n,r,i){const s=[];let o=0;if(t.startLineNumber===t.endLineNumber){const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return o=this._findMatchesInLine(n,a,t.startLineNumber,t.startColumn-1,o,s,r,i),s}const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);o=this._findMatchesInLine(n,a,t.startLineNumber,t.startColumn-1,o,s,r,i);for(let l=t.startLineNumber+1;l<t.endLineNumber&&o<i;l++)o=this._findMatchesInLine(n,e.getLineContent(l),l,0,o,s,r,i);if(o<i){const a=e.getLineContent(t.endLineNumber).substring(0,t.endColumn-1);o=this._findMatchesInLine(n,a,t.endLineNumber,0,o,s,r,i)}return s}static _findMatchesInLine(e,t,n,r,i,s,o,a){const l=e.wordSeparators;if(!o&&e.simpleSearch){const o=e.simpleSearch,u=o.length,d=t.length;let g=-u;for(;-1!==(g=t.indexOf(o,g+u));)if((!l||m(l,t,d,g,u))&&(s[i++]=new h.Dg(new c.Q(n,g+1+r,n,g+1+u+r),null),i>=a))return i;return i}const u=new p(e.wordSeparators,e.regex);let g;u.reset(0);do{if(g=u.next(t),g&&(s[i++]=d(new c.Q(n,g.index+1+r,n,g.index+1+g[0].length+r),g,o),i>=a))return i}while(g);return i}static findNextMatch(e,t,n,r){const i=t.parseSearchRequest();if(!i)return null;const s=new p(i.wordSeparators,i.regex);return i.regex.multiline?this._doFindNextMatchMultiline(e,n,s,r):this._doFindNextMatchLineByLine(e,n,s,r)}static _doFindNextMatchMultiline(e,t,n,r){const i=new l.y(t.lineNumber,1),s=e.getOffsetAt(i),o=e.getLineCount(),a=e.getValueInRange(new c.Q(i.lineNumber,i.column,o,e.getLineMaxColumn(o)),1),h="\r\n"===e.getEOL()?new g(a):null;n.reset(t.column-1);const u=n.next(a);return u?d(this._getMultilineMatchRange(e,s,a,h,u.index,u[0]),u,r):1!==t.lineNumber||1!==t.column?this._doFindNextMatchMultiline(e,new l.y(1,1),n,r):null}static _doFindNextMatchLineByLine(e,t,n,r){const i=e.getLineCount(),s=t.lineNumber,o=e.getLineContent(s),a=this._findFirstMatchInLine(n,o,s,t.column,r);if(a)return a;for(let l=1;l<=i;l++){const t=(s+l-1)%i,o=e.getLineContent(t+1),a=this._findFirstMatchInLine(n,o,t+1,1,r);if(a)return a}return null}static _findFirstMatchInLine(e,t,n,r,i){e.reset(r-1);const s=e.next(t);return s?d(new c.Q(n,s.index+1,n,s.index+1+s[0].length),s,i):null}static findPreviousMatch(e,t,n,r){const i=t.parseSearchRequest();if(!i)return null;const s=new p(i.wordSeparators,i.regex);return i.regex.multiline?this._doFindPreviousMatchMultiline(e,n,s,r):this._doFindPreviousMatchLineByLine(e,n,s,r)}static _doFindPreviousMatchMultiline(e,t,n,r){const i=this._doFindMatchesMultiline(e,new c.Q(1,1,t.lineNumber,t.column),n,r,9990);if(i.length>0)return i[i.length-1];const s=e.getLineCount();return t.lineNumber!==s||t.column!==e.getLineMaxColumn(s)?this._doFindPreviousMatchMultiline(e,new l.y(s,e.getLineMaxColumn(s)),n,r):null}static _doFindPreviousMatchLineByLine(e,t,n,r){const i=e.getLineCount(),s=t.lineNumber,o=e.getLineContent(s).substring(0,t.column-1),a=this._findLastMatchInLine(n,o,s,r);if(a)return a;for(let l=1;l<=i;l++){const t=(i+s-l-1)%i,o=e.getLineContent(t+1),a=this._findLastMatchInLine(n,o,t+1,r);if(a)return a}return null}static _findLastMatchInLine(e,t,n,r){let i,s=null;for(e.reset(0);i=e.next(t);)s=d(new c.Q(n,i.index+1,n,i.index+1+i[0].length),i,r);return s}}function m(e,t,n,r,i){return function(e,t,n,r,i){if(0===r)return!0;const s=t.charCodeAt(r-1);if(0!==e.get(s))return!0;if(13===s||10===s)return!0;if(i>0){const n=t.charCodeAt(r);if(0!==e.get(n))return!0}return!1}(e,t,0,r,i)&&function(e,t,n,r,i){if(r+i===n)return!0;const s=t.charCodeAt(r+i);if(0!==e.get(s))return!0;if(13===s||10===s)return!0;if(i>0){const n=t.charCodeAt(r+i-1);if(0!==e.get(n))return!0}return!1}(e,t,n,r,i)}class p{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){const t=e.length;let n;do{if(this._prevMatchStartIndex+this._prevMatchLength===t)return null;if(n=this._searchRegex.exec(e),!n)return null;const i=n.index,s=n[0].length;if(i===this._prevMatchStartIndex&&s===this._prevMatchLength){if(0===s){r.Z5(e,t,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=i,this._prevMatchLength=s,!this._wordSeparators||m(this._wordSeparators,e,t,i,s))return n}while(n);return null}}},8067:(e,t,n)=>{"use strict";n.d(t,{H8:()=>P,HZ:()=>T,OS:()=>R,UP:()=>j,_p:()=>M,cm:()=>F,gm:()=>V,ib:()=>N,j9:()=>E,lg:()=>A,nr:()=>z,uF:()=>S,zx:()=>x});var r=n(8209);const i="en";let s,o,a=!1,l=!1,c=!1,h=!1,u=!1,d=!1,g=!1,f=!1,m=!1,p=!1,b=null,_=null,k=null;const v=globalThis;let C;"undefined"!==typeof v.vscode&&"undefined"!==typeof v.vscode.process?C=v.vscode.process:"undefined"!==typeof process&&"string"===typeof process?.versions?.node&&(C=process);const y="string"===typeof C?.versions?.electron,L=y&&"renderer"===C?.type;if("object"===typeof C){a="win32"===C.platform,l="darwin"===C.platform,c="linux"===C.platform,h=c&&!!C.env.SNAP&&!!C.env.SNAP_REVISION,g=y,m=!!C.env.CI||!!C.env.BUILD_ARTIFACTSTAGINGDIRECTORY,s=i,b=i;const e=C.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e);s=t.userLocale,_=t.osLocale,b=t.resolvedLanguage||i,k=t.languagePack?.translationsConfigFile}catch(q){}u=!0}else"object"!==typeof navigator||L?console.error("Unable to resolve platform."):(o=navigator.userAgent,a=o.indexOf("Windows")>=0,l=o.indexOf("Macintosh")>=0,f=(o.indexOf("Macintosh")>=0||o.indexOf("iPad")>=0||o.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,c=o.indexOf("Linux")>=0,p=o?.indexOf("Mobi")>=0,d=!0,b=r.i8()||i,s=navigator.language.toLowerCase(),_=s);let w=0;l?w=1:a?w=3:c&&(w=2);const S=a,x=l,E=c,N=u,T=d,A=d&&"function"===typeof v.importScripts?v.origin:void 0,I=o,O="function"===typeof v.postMessage&&!v.importScripts,M=(()=>{if(O){const e=[];v.addEventListener("message",(t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let n=0,r=e.length;n<r;n++){const r=e[n];if(r.id===t.data.vscodeScheduleAsyncWork)return e.splice(n,1),void r.callback()}}));let t=0;return n=>{const r=++t;e.push({id:r,callback:n}),v.postMessage({vscodeScheduleAsyncWork:r},"*")}}return e=>setTimeout(e)})(),R=l||f?2:a?1:3;let D=!0,B=!1;function F(){if(!B){B=!0;const e=new Uint8Array(2);e[0]=1,e[1]=2;const t=new Uint16Array(e.buffer);D=513===t[0]}return D}const P=!!(I&&I.indexOf("Chrome")>=0),V=!!(I&&I.indexOf("Firefox")>=0),z=!!(!P&&I&&I.indexOf("Safari")>=0),j=!!(I&&I.indexOf("Edg/")>=0);I&&I.indexOf("Android")},8209:(e,t,n)=>{"use strict";function r(){return globalThis._VSCODE_NLS_LANGUAGE}n.d(t,{i8:()=>r,kg:()=>o});const i="pseudo"===r()||"undefined"!==typeof document&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function s(e,t){let n;return n=0===t.length?e:e.replace(/\{(\d+)\}/g,((e,n)=>{const r=n[0],i=t[r];let s=e;return"string"===typeof i?s=i:"number"!==typeof i&&"boolean"!==typeof i&&void 0!==i&&null!==i||(s=String(i)),s})),i&&(n="\uff3b"+n.replace(/[aouei]/g,"$&$&")+"\uff3d"),n}function o(e,t,...n){return s("number"===typeof e?a(e,t):t,n)}function a(e,t){const n=globalThis._VSCODE_NLS_MESSAGES?.[e];if("string"!==typeof n){if("string"===typeof t)return t;throw new Error(`!!! NLS MISSING: ${e} !!!`)}return n}},8232:(e,t,n)=>{"use strict";n.r(t),n.d(t,{encodeSemanticTokensDto:()=>s});var r=n(1674),i=n(8067);function s(e){const t=new Uint32Array(function(e){let t=0;if(t+=2,"full"===e.type)t+=1+e.data.length;else{t+=1,t+=3*e.deltas.length;for(const n of e.deltas)n.data&&(t+=n.data.length)}return t}(e));let n=0;if(t[n++]=e.id,"full"===e.type)t[n++]=1,t[n++]=e.data.length,t.set(e.data,n),n+=e.data.length;else{t[n++]=2,t[n++]=e.deltas.length;for(const r of e.deltas)t[n++]=r.start,t[n++]=r.deleteCount,r.data?(t[n++]=r.data.length,t.set(r.data,n),n+=r.data.length):t[n++]=0}return function(e){const t=new Uint8Array(e.buffer,e.byteOffset,4*e.length);return i.cm()||function(e){for(let t=0,n=e.length;t<n;t+=4){const n=e[t+0],r=e[t+1],i=e[t+2],s=e[t+3];e[t+0]=s,e[t+1]=i,e[t+2]=r,e[t+3]=n}}(t),r.MB.wrap(t)}(t)}},8381:(e,t,n)=>{"use strict";n.d(t,{W:()=>i});const r=globalThis.performance&&"function"===typeof globalThis.performance.now;class i{static create(e){return new i(e)}constructor(e){this._now=r&&!1===e?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}}},8447:(e,t,n)=>{"use strict";n.d(t,{Qi:()=>a});var r=n(1234);const i=Object.freeze((function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}}));var s;!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||(t instanceof o||!(!t||"object"!==typeof t)&&("boolean"===typeof t.isCancellationRequested&&"function"===typeof t.onCancellationRequested))},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:r.Jh.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:i})}(s||(s={}));class o{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?i:(this._emitter||(this._emitter=new r.vl),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class a{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new o),this._token}cancel(){this._token?this._token instanceof o&&this._token.cancel():this._token=s.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof o&&this._token.dispose():this._token=s.None}}},8709:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ILanguageFeatureDebounceService:()=>m,LanguageFeatureDebounceService:()=>k});var r=n(5600),i=n(4320);function s(e,t,n){return Math.min(Math.max(e,t),n)}class o{constructor(){this._n=1,this._val=0}update(e){return this._val=this._val+(e-this._val)/this._n,this._n+=1,this._val}get value(){return this._val}}class a{constructor(e){this._n=0,this._val=0,this._values=[],this._index=0,this._sum=0,this._values=new Array(e),this._values.fill(0,0,e)}update(e){const t=this._values[this._index];return this._values[this._index]=e,this._index=(this._index+1)%this._values.length,this._sum-=t,this._sum+=e,this._n<this._values.length&&(this._n+=1),this._val=this._sum/this._n,this._val}get value(){return this._val}}var l=n(3591);const c=(0,l.u1)("environmentService");var h=n(4621),u=n(3511),d=n(6456),g=function(e,t,n,r){var i,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,n,o):i(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},f=function(e,t){return function(n,r){t(n,r,e)}};const m=(0,l.u1)("ILanguageFeatureDebounceService");var p;!function(e){const t=new WeakMap;let n=0;e.of=function(e){let r=t.get(e);return void 0===r&&(r=++n,t.set(e,r)),r}}(p||(p={}));class b{constructor(e){this._default=e}get(e){return this._default}update(e,t){return this._default}default(){return this._default}}class _{constructor(e,t,n,r,s,o){this._logService=e,this._name=t,this._registry=n,this._default=r,this._min=s,this._max=o,this._cache=new i.qK(50,.7)}_key(e){return e.id+this._registry.all(e).reduce(((e,t)=>(0,r.sN)(p.of(t),e)),0)}get(e){const t=this._key(e),n=this._cache.get(t);return n?s(n.value,this._min,this._max):this.default()}update(e,t){const n=this._key(e);let r=this._cache.get(n);r||(r=new a(6),this._cache.set(n,r));const i=s(r.update(t),this._min,this._max);return(0,d.v$)(e.uri,"output")||this._logService.trace(`[DEBOUNCE: ${this._name}] for ${e.uri.toString()} is ${i}ms`),i}_overall(){const e=new o;for(const[,t]of this._cache)e.update(t.value);return e.value}default(){return s(0|this._overall()||this._default,this._min,this._max)}}let k=class{constructor(e,t){this._logService=e,this._data=new Map,this._isDev=t.isExtensionDevelopment||!t.isBuilt}for(e,t,n){const r=n?.min??50,i=n?.max??r**2,s=n?.key??void 0,o=`${p.of(e)},${r}${s?","+s:""}`;let a=this._data.get(o);return a||(this._isDev?(this._logService.debug(`[DEBOUNCE: ${t}] is disabled in developed mode`),a=new b(1.5*r)):a=new _(this._logService,t,e,0|this._overallAverage()||1.5*r,r,i),this._data.set(o,a)),a}_overallAverage(){const e=new o;for(const t of this._data.values())e.update(t.default());return e.value}};k=g([f(0,u.rr),f(1,c)],k),(0,h.v)(m,k,1)},8748:(e,t,n)=>{"use strict";n.d(t,{F:()=>s});var r=n(1234),i=n(6359);const s={JSONContribution:"base.contributions.json"};const o=new class{constructor(){this._onDidChangeSchema=new r.vl,this.schemasById={}}registerSchema(e,t){var n;this.schemasById[(n=e,n.length>0&&"#"===n.charAt(n.length-1)?n.substring(0,n.length-1):n)]=t,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}};i.O.add(s.JSONContribution,o)},8821:(e,t,n)=>{"use strict";n.d(t,{P8:()=>N,pD:()=>E,LC:()=>T,fj:()=>w,S8:()=>L,SA:()=>y,V8:()=>x,hd:()=>S,Vn:()=>A,IN:()=>v});var r=n(8067);let i;const s=globalThis.vscode;if("undefined"!==typeof s&&"undefined"!==typeof s.process){const e=s.process;i={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd:()=>e.cwd()}}else i="undefined"!==typeof process&&"string"===typeof process?.versions?.node?{get platform(){return process.platform},get arch(){return process.arch},get env(){return{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}},cwd:()=>({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}.VSCODE_CWD||process.cwd())}:{get platform(){return r.uF?"win32":r.zx?"darwin":"linux"},get arch(){},get env(){return{}},cwd:()=>"/"};const o=i.cwd,a=(i.env,i.platform),l=46,c=47,h=92,u=58;class d extends Error{constructor(e,t,n){let r;"string"===typeof t&&0===t.indexOf("not ")?(r="must not be",t=t.replace(/^not /,"")):r="must be";const i=-1!==e.indexOf(".")?"property":"argument";let s=`The "${e}" ${i} ${r} of type ${t}`;s+=". Received type "+typeof n,super(s),this.code="ERR_INVALID_ARG_TYPE"}}function g(e,t){if("string"!==typeof e)throw new d(t,"string",e)}const f="win32"===a;function m(e){return e===c||e===h}function p(e){return e===c}function b(e){return e>=65&&e<=90||e>=97&&e<=122}function _(e,t,n,r){let i="",s=0,o=-1,a=0,h=0;for(let u=0;u<=e.length;++u){if(u<e.length)h=e.charCodeAt(u);else{if(r(h))break;h=c}if(r(h)){if(o===u-1||1===a);else if(2===a){if(i.length<2||2!==s||i.charCodeAt(i.length-1)!==l||i.charCodeAt(i.length-2)!==l){if(i.length>2){const e=i.lastIndexOf(n);-1===e?(i="",s=0):(i=i.slice(0,e),s=i.length-1-i.lastIndexOf(n)),o=u,a=0;continue}if(0!==i.length){i="",s=0,o=u,a=0;continue}}t&&(i+=i.length>0?`${n}..`:"..",s=2)}else i.length>0?i+=`${n}${e.slice(o+1,u)}`:i=e.slice(o+1,u),s=u-o-1;o=u,a=0}else h===l&&-1!==a?++a:a=-1}return i}function k(e,t){!function(e,t){if(null===e||"object"!==typeof e)throw new d(t,"Object",e)}(t,"pathObject");const n=t.dir||t.root,r=t.base||`${t.name||""}${i=t.ext,i?`${"."===i[0]?"":"."}${i}`:""}`;var i;return n?n===t.root?`${n}${r}`:`${n}${e}${r}`:r}const v={resolve(...e){let t="",n="",r=!1;for(let i=e.length-1;i>=-1;i--){let s;if(i>=0){if(s=e[i],g(s,`paths[${i}]`),0===s.length)continue}else 0===t.length?s=o():(s={NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}[`=${t}`]||o(),(void 0===s||s.slice(0,2).toLowerCase()!==t.toLowerCase()&&s.charCodeAt(2)===h)&&(s=`${t}\\`));const a=s.length;let l=0,c="",d=!1;const f=s.charCodeAt(0);if(1===a)m(f)&&(l=1,d=!0);else if(m(f))if(d=!0,m(s.charCodeAt(1))){let e=2,t=e;for(;e<a&&!m(s.charCodeAt(e));)e++;if(e<a&&e!==t){const n=s.slice(t,e);for(t=e;e<a&&m(s.charCodeAt(e));)e++;if(e<a&&e!==t){for(t=e;e<a&&!m(s.charCodeAt(e));)e++;e!==a&&e===t||(c=`\\\\${n}\\${s.slice(t,e)}`,l=e)}}}else l=1;else b(f)&&s.charCodeAt(1)===u&&(c=s.slice(0,2),l=2,a>2&&m(s.charCodeAt(2))&&(d=!0,l=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=`${s.slice(l)}\\${n}`,r=d,d&&t.length>0)break}return n=_(n,!r,"\\",m),r?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){g(e,"path");const t=e.length;if(0===t)return".";let n,r=0,i=!1;const s=e.charCodeAt(0);if(1===t)return p(s)?"\\":e;if(m(s))if(i=!0,m(e.charCodeAt(1))){let i=2,s=i;for(;i<t&&!m(e.charCodeAt(i));)i++;if(i<t&&i!==s){const o=e.slice(s,i);for(s=i;i<t&&m(e.charCodeAt(i));)i++;if(i<t&&i!==s){for(s=i;i<t&&!m(e.charCodeAt(i));)i++;if(i===t)return`\\\\${o}\\${e.slice(s)}\\`;i!==s&&(n=`\\\\${o}\\${e.slice(s,i)}`,r=i)}}}else r=1;else b(s)&&e.charCodeAt(1)===u&&(n=e.slice(0,2),r=2,t>2&&m(e.charCodeAt(2))&&(i=!0,r=3));let o=r<t?_(e.slice(r),!i,"\\",m):"";return 0!==o.length||i||(o="."),o.length>0&&m(e.charCodeAt(t-1))&&(o+="\\"),void 0===n?i?`\\${o}`:o:i?`${n}\\${o}`:`${n}${o}`},isAbsolute(e){g(e,"path");const t=e.length;if(0===t)return!1;const n=e.charCodeAt(0);return m(n)||t>2&&b(n)&&e.charCodeAt(1)===u&&m(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let t,n;for(let s=0;s<e.length;++s){const r=e[s];g(r,"path"),r.length>0&&(void 0===t?t=n=r:t+=`\\${r}`)}if(void 0===t)return".";let r=!0,i=0;if("string"===typeof n&&m(n.charCodeAt(0))){++i;const e=n.length;e>1&&m(n.charCodeAt(1))&&(++i,e>2&&(m(n.charCodeAt(2))?++i:r=!1))}if(r){for(;i<t.length&&m(t.charCodeAt(i));)i++;i>=2&&(t=`\\${t.slice(i)}`)}return v.normalize(t)},relative(e,t){if(g(e,"from"),g(t,"to"),e===t)return"";const n=v.resolve(e),r=v.resolve(t);if(n===r)return"";if((e=n.toLowerCase())===(t=r.toLowerCase()))return"";let i=0;for(;i<e.length&&e.charCodeAt(i)===h;)i++;let s=e.length;for(;s-1>i&&e.charCodeAt(s-1)===h;)s--;const o=s-i;let a=0;for(;a<t.length&&t.charCodeAt(a)===h;)a++;let l=t.length;for(;l-1>a&&t.charCodeAt(l-1)===h;)l--;const c=l-a,u=o<c?o:c;let d=-1,f=0;for(;f<u;f++){const n=e.charCodeAt(i+f);if(n!==t.charCodeAt(a+f))break;n===h&&(d=f)}if(f!==u){if(-1===d)return r}else{if(c>u){if(t.charCodeAt(a+f)===h)return r.slice(a+f+1);if(2===f)return r.slice(a+f)}o>u&&(e.charCodeAt(i+f)===h?d=f:2===f&&(d=3)),-1===d&&(d=0)}let m="";for(f=i+d+1;f<=s;++f)f!==s&&e.charCodeAt(f)!==h||(m+=0===m.length?"..":"\\..");return a+=d,m.length>0?`${m}${r.slice(a,l)}`:(r.charCodeAt(a)===h&&++a,r.slice(a,l))},toNamespacedPath(e){if("string"!==typeof e||0===e.length)return e;const t=v.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===h){if(t.charCodeAt(1)===h){const e=t.charCodeAt(2);if(63!==e&&e!==l)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(b(t.charCodeAt(0))&&t.charCodeAt(1)===u&&t.charCodeAt(2)===h)return`\\\\?\\${t}`;return e},dirname(e){g(e,"path");const t=e.length;if(0===t)return".";let n=-1,r=0;const i=e.charCodeAt(0);if(1===t)return m(i)?e:".";if(m(i)){if(n=r=1,m(e.charCodeAt(1))){let i=2,s=i;for(;i<t&&!m(e.charCodeAt(i));)i++;if(i<t&&i!==s){for(s=i;i<t&&m(e.charCodeAt(i));)i++;if(i<t&&i!==s){for(s=i;i<t&&!m(e.charCodeAt(i));)i++;if(i===t)return e;i!==s&&(n=r=i+1)}}}}else b(i)&&e.charCodeAt(1)===u&&(n=t>2&&m(e.charCodeAt(2))?3:2,r=n);let s=-1,o=!0;for(let a=t-1;a>=r;--a)if(m(e.charCodeAt(a))){if(!o){s=a;break}}else o=!1;if(-1===s){if(-1===n)return".";s=n}return e.slice(0,s)},basename(e,t){void 0!==t&&g(t,"suffix"),g(e,"path");let n,r=0,i=-1,s=!0;if(e.length>=2&&b(e.charCodeAt(0))&&e.charCodeAt(1)===u&&(r=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(n=e.length-1;n>=r;--n){const l=e.charCodeAt(n);if(m(l)){if(!s){r=n+1;break}}else-1===a&&(s=!1,a=n+1),o>=0&&(l===t.charCodeAt(o)?-1===--o&&(i=n):(o=-1,i=a))}return r===i?i=a:-1===i&&(i=e.length),e.slice(r,i)}for(n=e.length-1;n>=r;--n)if(m(e.charCodeAt(n))){if(!s){r=n+1;break}}else-1===i&&(s=!1,i=n+1);return-1===i?"":e.slice(r,i)},extname(e){g(e,"path");let t=0,n=-1,r=0,i=-1,s=!0,o=0;e.length>=2&&e.charCodeAt(1)===u&&b(e.charCodeAt(0))&&(t=r=2);for(let a=e.length-1;a>=t;--a){const t=e.charCodeAt(a);if(m(t)){if(!s){r=a+1;break}}else-1===i&&(s=!1,i=a+1),t===l?-1===n?n=a:1!==o&&(o=1):-1!==n&&(o=-1)}return-1===n||-1===i||0===o||1===o&&n===i-1&&n===r+1?"":e.slice(n,i)},format:k.bind(null,"\\"),parse(e){g(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.length;let r=0,i=e.charCodeAt(0);if(1===n)return m(i)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(m(i)){if(r=1,m(e.charCodeAt(1))){let t=2,i=t;for(;t<n&&!m(e.charCodeAt(t));)t++;if(t<n&&t!==i){for(i=t;t<n&&m(e.charCodeAt(t));)t++;if(t<n&&t!==i){for(i=t;t<n&&!m(e.charCodeAt(t));)t++;t===n?r=t:t!==i&&(r=t+1)}}}}else if(b(i)&&e.charCodeAt(1)===u){if(n<=2)return t.root=t.dir=e,t;if(r=2,m(e.charCodeAt(2))){if(3===n)return t.root=t.dir=e,t;r=3}}r>0&&(t.root=e.slice(0,r));let s=-1,o=r,a=-1,c=!0,h=e.length-1,d=0;for(;h>=r;--h)if(i=e.charCodeAt(h),m(i)){if(!c){o=h+1;break}}else-1===a&&(c=!1,a=h+1),i===l?-1===s?s=h:1!==d&&(d=1):-1!==s&&(d=-1);return-1!==a&&(-1===s||0===d||1===d&&s===a-1&&s===o+1?t.base=t.name=e.slice(o,a):(t.name=e.slice(o,s),t.base=e.slice(o,a),t.ext=e.slice(s,a))),t.dir=o>0&&o!==r?e.slice(0,o-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},C=(()=>{if(f){const e=/\\/g;return()=>{const t=o().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>o()})(),y={resolve(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const i=r>=0?e[r]:C();g(i,`paths[${r}]`),0!==i.length&&(t=`${i}/${t}`,n=i.charCodeAt(0)===c)}return t=_(t,!n,"/",p),n?`/${t}`:t.length>0?t:"."},normalize(e){if(g(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===c,n=e.charCodeAt(e.length-1)===c;return 0===(e=_(e,!t,"/",p)).length?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute:e=>(g(e,"path"),e.length>0&&e.charCodeAt(0)===c),join(...e){if(0===e.length)return".";let t;for(let n=0;n<e.length;++n){const r=e[n];g(r,"path"),r.length>0&&(void 0===t?t=r:t+=`/${r}`)}return void 0===t?".":y.normalize(t)},relative(e,t){if(g(e,"from"),g(t,"to"),e===t)return"";if((e=y.resolve(e))===(t=y.resolve(t)))return"";const n=e.length,r=n-1,i=t.length-1,s=r<i?r:i;let o=-1,a=0;for(;a<s;a++){const n=e.charCodeAt(1+a);if(n!==t.charCodeAt(1+a))break;n===c&&(o=a)}if(a===s)if(i>s){if(t.charCodeAt(1+a)===c)return t.slice(1+a+1);if(0===a)return t.slice(1+a)}else r>s&&(e.charCodeAt(1+a)===c?o=a:0===a&&(o=0));let l="";for(a=1+o+1;a<=n;++a)a!==n&&e.charCodeAt(a)!==c||(l+=0===l.length?"..":"/..");return`${l}${t.slice(1+o)}`},toNamespacedPath:e=>e,dirname(e){if(g(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===c;let n=-1,r=!0;for(let i=e.length-1;i>=1;--i)if(e.charCodeAt(i)===c){if(!r){n=i;break}}else r=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename(e,t){void 0!==t&&g(t,"ext"),g(e,"path");let n,r=0,i=-1,s=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(n=e.length-1;n>=0;--n){const l=e.charCodeAt(n);if(l===c){if(!s){r=n+1;break}}else-1===a&&(s=!1,a=n+1),o>=0&&(l===t.charCodeAt(o)?-1===--o&&(i=n):(o=-1,i=a))}return r===i?i=a:-1===i&&(i=e.length),e.slice(r,i)}for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===c){if(!s){r=n+1;break}}else-1===i&&(s=!1,i=n+1);return-1===i?"":e.slice(r,i)},extname(e){g(e,"path");let t=-1,n=0,r=-1,i=!0,s=0;for(let o=e.length-1;o>=0;--o){const a=e.charCodeAt(o);if(a!==c)-1===r&&(i=!1,r=o+1),a===l?-1===t?t=o:1!==s&&(s=1):-1!==t&&(s=-1);else if(!i){n=o+1;break}}return-1===t||-1===r||0===s||1===s&&t===r-1&&t===n+1?"":e.slice(t,r)},format:k.bind(null,"/"),parse(e){g(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.charCodeAt(0)===c;let r;n?(t.root="/",r=1):r=0;let i=-1,s=0,o=-1,a=!0,h=e.length-1,u=0;for(;h>=r;--h){const t=e.charCodeAt(h);if(t!==c)-1===o&&(a=!1,o=h+1),t===l?-1===i?i=h:1!==u&&(u=1):-1!==i&&(u=-1);else if(!a){s=h+1;break}}if(-1!==o){const r=0===s&&n?1:s;-1===i||0===u||1===u&&i===o-1&&i===s+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 s>0?t.dir=e.slice(0,s-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};y.win32=v.win32=v,y.posix=v.posix=y;const L=f?v.normalize:y.normalize,w=f?v.join:y.join,S=f?v.resolve:y.resolve,x=f?v.relative:y.relative,E=f?v.dirname:y.dirname,N=f?v.basename:y.basename,T=f?v.extname:y.extname,A=f?v.sep:y.sep},8868:(e,t,n)=>{"use strict";n.r(t)},8925:(e,t,n)=>{"use strict";n.d(t,{w:()=>i});class r{static{this.Undefined=new r(void 0)}constructor(e){this.element=e,this.next=r.Undefined,this.prev=r.Undefined}}class i{constructor(){this._first=r.Undefined,this._last=r.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===r.Undefined}clear(){let e=this._first;for(;e!==r.Undefined;){const t=e.next;e.prev=r.Undefined,e.next=r.Undefined,e=t}this._first=r.Undefined,this._last=r.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new r(e);if(this._first===r.Undefined)this._first=n,this._last=n;else if(t){const e=this._last;this._last=n,n.prev=e,e.next=n}else{const e=this._first;this._first=n,n.next=e,e.prev=n}this._size+=1;let i=!1;return()=>{i||(i=!0,this._remove(n))}}shift(){if(this._first!==r.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==r.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==r.Undefined&&e.next!==r.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===r.Undefined&&e.next===r.Undefined?(this._first=r.Undefined,this._last=r.Undefined):e.next===r.Undefined?(this._last=this._last.prev,this._last.next=r.Undefined):e.prev===r.Undefined&&(this._first=this._first.next,this._first.prev=r.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==r.Undefined;)yield e.element,e=e.next}}},8938:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITextModelService:()=>r});const r=(0,n(3591).u1)("textModelService")},9100:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITreeViewsDnDService:()=>o});var r=n(4621),i=n(3591),s=n(6723);const o=(0,i.u1)("treeViewsDndService");(0,r.v)(o,s.TreeViewsDnDService,1)},9204:(e,t,n)=>{var r={"./editorBaseApi":[4272],"./editorBaseApi.js":[4272],"./editorSimpleWorker":[5196],"./editorSimpleWorker.js":[5196],"./editorWorker":[920,792],"./editorWorker.js":[920,792],"./editorWorkerHost":[718],"./editorWorkerHost.js":[718],"./findSectionHeaders":[6691],"./findSectionHeaders.js":[6691],"./getIconClasses":[5628,792],"./getIconClasses.js":[5628,792],"./languageFeatureDebounce":[8709,792],"./languageFeatureDebounce.js":[8709,792],"./languageFeatures":[6942,792],"./languageFeatures.js":[6942,792],"./languageFeaturesService":[2661,792],"./languageFeaturesService.js":[2661,792],"./languageService":[7596,792],"./languageService.js":[7596,792],"./languagesAssociations":[9908,792],"./languagesAssociations.js":[9908,792],"./languagesRegistry":[9259,792],"./languagesRegistry.js":[9259,792],"./markerDecorations":[7550,792],"./markerDecorations.js":[7550,792],"./markerDecorationsService":[448,792],"./markerDecorationsService.js":[448,792],"./model":[3750,792],"./model.js":[3750,792],"./modelService":[1773,792],"./modelService.js":[1773,792],"./resolverService":[8938,792],"./resolverService.js":[8938,792],"./semanticTokensDto":[8232,792],"./semanticTokensDto.js":[8232,792],"./semanticTokensProviderStyling":[5538,792],"./semanticTokensProviderStyling.js":[5538,792],"./semanticTokensStyling":[4243,792],"./semanticTokensStyling.js":[4243,792],"./semanticTokensStylingService":[7004,792],"./semanticTokensStylingService.js":[7004,792],"./textModelSync/textModelSync.impl":[796],"./textModelSync/textModelSync.impl.js":[796],"./textModelSync/textModelSync.protocol":[8868,792],"./textModelSync/textModelSync.protocol.js":[8868,792],"./textResourceConfiguration":[360,792],"./textResourceConfiguration.js":[360,792],"./treeSitterParserService":[4432,792],"./treeSitterParserService.js":[4432,792],"./treeViewsDnd":[6723,792],"./treeViewsDnd.js":[6723,792],"./treeViewsDndService":[9100,792],"./treeViewsDndService.js":[9100,792],"./unicodeTextModelHighlighter":[4855],"./unicodeTextModelHighlighter.js":[4855],"monaco-editor/esm/vs/editor/common/services/editorBaseApi":[4272],"monaco-editor/esm/vs/editor/common/services/editorBaseApi.js":[4272],"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker":[5196],"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker.js":[5196],"monaco-editor/esm/vs/editor/common/services/editorWorker":[920,792],"monaco-editor/esm/vs/editor/common/services/editorWorker.js":[920,792],"monaco-editor/esm/vs/editor/common/services/editorWorkerHost":[718],"monaco-editor/esm/vs/editor/common/services/editorWorkerHost.js":[718],"monaco-editor/esm/vs/editor/common/services/findSectionHeaders":[6691],"monaco-editor/esm/vs/editor/common/services/findSectionHeaders.js":[6691],"monaco-editor/esm/vs/editor/common/services/getIconClasses":[5628,792],"monaco-editor/esm/vs/editor/common/services/getIconClasses.js":[5628,792],"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce":[8709,792],"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce.js":[8709,792],"monaco-editor/esm/vs/editor/common/services/languageFeatures":[6942,792],"monaco-editor/esm/vs/editor/common/services/languageFeatures.js":[6942,792],"monaco-editor/esm/vs/editor/common/services/languageFeaturesService":[2661,792],"monaco-editor/esm/vs/editor/common/services/languageFeaturesService.js":[2661,792],"monaco-editor/esm/vs/editor/common/services/languageService":[7596,792],"monaco-editor/esm/vs/editor/common/services/languageService.js":[7596,792],"monaco-editor/esm/vs/editor/common/services/languagesAssociations":[9908,792],"monaco-editor/esm/vs/editor/common/services/languagesAssociations.js":[9908,792],"monaco-editor/esm/vs/editor/common/services/languagesRegistry":[9259,792],"monaco-editor/esm/vs/editor/common/services/languagesRegistry.js":[9259,792],"monaco-editor/esm/vs/editor/common/services/markerDecorations":[7550,792],"monaco-editor/esm/vs/editor/common/services/markerDecorations.js":[7550,792],"monaco-editor/esm/vs/editor/common/services/markerDecorationsService":[448,792],"monaco-editor/esm/vs/editor/common/services/markerDecorationsService.js":[448,792],"monaco-editor/esm/vs/editor/common/services/model":[3750,792],"monaco-editor/esm/vs/editor/common/services/model.js":[3750,792],"monaco-editor/esm/vs/editor/common/services/modelService":[1773,792],"monaco-editor/esm/vs/editor/common/services/modelService.js":[1773,792],"monaco-editor/esm/vs/editor/common/services/resolverService":[8938,792],"monaco-editor/esm/vs/editor/common/services/resolverService.js":[8938,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensDto":[8232,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensDto.js":[8232,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling":[5538,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling.js":[5538,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling":[4243,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling.js":[4243,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService":[7004,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService.js":[7004,792],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl":[796],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl.js":[796],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol":[8868,792],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol.js":[8868,792],"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration":[360,792],"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration.js":[360,792],"monaco-editor/esm/vs/editor/common/services/treeSitterParserService":[4432,792],"monaco-editor/esm/vs/editor/common/services/treeSitterParserService.js":[4432,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDnd":[6723,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDnd.js":[6723,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDndService":[9100,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDndService.js":[9100,792],"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter":[4855],"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter.js":[4855]};function i(e){if(!n.o(r,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],i=t[0];return Promise.all(t.slice(1).map(n.e)).then((()=>n(i)))}i.keys=()=>Object.keys(r),i.id=9204,e.exports=i},9259:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LanguageIdCodec:()=>d,LanguagesRegistry:()=>g});var r=n(1234),i=n(1484),s=n(1508),o=n(9908),a=n(3941),l=n(1646),c=n(6359);const h=Object.prototype.hasOwnProperty,u="vs.editor.nullLanguage";class d{constructor(){this._languageIdToLanguage=[],this._languageToLanguageId=new Map,this._register(u,0),this._register(a.vH,1),this._nextLanguageId=2}_register(e,t){this._languageIdToLanguage[t]=e,this._languageToLanguageId.set(e,t)}register(e){if(this._languageToLanguageId.has(e))return;const t=this._nextLanguageId++;this._register(e,t)}encodeLanguageId(e){return this._languageToLanguageId.get(e)||0}decodeLanguageId(e){return this._languageIdToLanguage[e]||u}}class g extends i.jG{static{this.instanceCount=0}constructor(e=!0,t=!1){super(),this._onDidChange=this._register(new r.vl),this.onDidChange=this._onDidChange.event,g.instanceCount++,this._warnOnOverwrite=t,this.languageIdCodec=new d,this._dynamicLanguages=[],this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},e&&(this._initializeFromRegistry(),this._register(a.W6.onDidChangeLanguages((e=>{this._initializeFromRegistry()}))))}dispose(){g.instanceCount--,super.dispose()}_initializeFromRegistry(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},(0,o.clearPlatformLanguageAssociations)();const e=[].concat(a.W6.getLanguages()).concat(this._dynamicLanguages);this._registerLanguages(e)}_registerLanguages(e){for(const t of e)this._registerLanguage(t);this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach((e=>{const t=this._languages[e];t.name&&(this._nameMap[t.name]=t.identifier),t.aliases.forEach((e=>{this._lowercaseNameMap[e.toLowerCase()]=t.identifier})),t.mimetypes.forEach((e=>{this._mimeTypesMap[e]=t.identifier}))})),c.O.as(l.Fd.Configuration).registerOverrideIdentifiers(this.getRegisteredLanguageIds()),this._onDidChange.fire()}_registerLanguage(e){const t=e.id;let n;h.call(this._languages,t)?n=this._languages[t]:(this.languageIdCodec.register(t),n={identifier:t,name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[],icons:[]},this._languages[t]=n),this._mergeLanguage(n,e)}_mergeLanguage(e,t){const n=t.id;let r=null;if(Array.isArray(t.mimetypes)&&t.mimetypes.length>0&&(e.mimetypes.push(...t.mimetypes),r=t.mimetypes[0]),r||(r=`text/x-${n}`,e.mimetypes.push(r)),Array.isArray(t.extensions)){t.configuration?e.extensions=t.extensions.concat(e.extensions):e.extensions=e.extensions.concat(t.extensions);for(const e of t.extensions)(0,o.registerPlatformLanguageAssociation)({id:n,mime:r,extension:e},this._warnOnOverwrite)}if(Array.isArray(t.filenames))for(const s of t.filenames)(0,o.registerPlatformLanguageAssociation)({id:n,mime:r,filename:s},this._warnOnOverwrite),e.filenames.push(s);if(Array.isArray(t.filenamePatterns))for(const s of t.filenamePatterns)(0,o.registerPlatformLanguageAssociation)({id:n,mime:r,filepattern:s},this._warnOnOverwrite);if("string"===typeof t.firstLine&&t.firstLine.length>0){let e=t.firstLine;"^"!==e.charAt(0)&&(e="^"+e);try{const t=new RegExp(e);(0,s.eY)(t)||(0,o.registerPlatformLanguageAssociation)({id:n,mime:r,firstline:t},this._warnOnOverwrite)}catch(l){console.warn(`[${t.id}]: Invalid regular expression \`${e}\`: `,l)}}e.aliases.push(n);let i=null;if("undefined"!==typeof t.aliases&&Array.isArray(t.aliases)&&(i=0===t.aliases.length?[null]:t.aliases),null!==i)for(const s of i)s&&0!==s.length&&e.aliases.push(s);const a=null!==i&&i.length>0;if(a&&null===i[0]);else{const t=(a?i[0]:null)||n;!a&&e.name||(e.name=t)}t.configuration&&e.configurationFiles.push(t.configuration),t.icon&&e.icons.push(t.icon)}isRegisteredLanguageId(e){return!!e&&h.call(this._languages,e)}getRegisteredLanguageIds(){return Object.keys(this._languages)}getLanguageIdByLanguageName(e){const t=e.toLowerCase();return h.call(this._lowercaseNameMap,t)?this._lowercaseNameMap[t]:null}getLanguageIdByMimeType(e){return e&&h.call(this._mimeTypesMap,e)?this._mimeTypesMap[e]:null}guessLanguageIdByFilepathOrFirstLine(e,t){return e||t?(0,o.getLanguageIds)(e,t):[]}}},9326:(e,t,n)=>{"use strict";n.d(t,{TH:()=>o,Zn:()=>l,_1:()=>c,kb:()=>a});var r=n(8821),i=(n(8067),n(1508));function s(e){return 47===e||92===e}function o(e){return e.replace(/[\\/]/g,r.SA.sep)}function a(e){return-1===e.indexOf("/")&&(e=o(e)),/^[a-zA-Z]:(\/|$)/.test(e)&&(e="/"+e),e}function l(e,t=r.SA.sep){if(!e)return"";const n=e.length,i=e.charCodeAt(0);if(s(i)){if(s(e.charCodeAt(1))&&!s(e.charCodeAt(2))){let r=3;const i=r;for(;r<n&&!s(e.charCodeAt(r));r++);if(i!==r&&!s(e.charCodeAt(r+1)))for(r+=1;r<n;r++)if(s(e.charCodeAt(r)))return e.slice(0,r+1).replace(/[\\/]/g,t)}return t}if(h(i)&&58===e.charCodeAt(1))return s(e.charCodeAt(2))?e.slice(0,2)+t:e.slice(0,2);let o=e.indexOf("://");if(-1!==o)for(o+=3;o<n;o++)if(s(e.charCodeAt(o)))return e.slice(0,o+1);return""}function c(e,t,n,s=r.Vn){if(e===t)return!0;if(!e||!t)return!1;if(t.length>e.length)return!1;if(n){if(!(0,i.ns)(e,t))return!1;if(t.length===e.length)return!0;let n=t.length;return t.charAt(t.length-1)===s&&n--,e.charAt(n)===s}return t.charAt(t.length-1)!==s&&(t+=s),0===e.indexOf(t)}function h(e){return e>=65&&e<=90||e>=97&&e<=122}},9400:(e,t,n)=>{"use strict";n.d(t,{I:()=>b,r:()=>u});var r=n(8821),i=n(8067);const s=/^\w[\w\d+.-]*$/,o=/^\//,a=/^\/\//;const l="",c="/",h=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class u{static isUri(e){return e instanceof u||!!e&&("string"===typeof e.authority&&"string"===typeof e.fragment&&"string"===typeof e.path&&"string"===typeof e.query&&"string"===typeof e.scheme&&"string"===typeof e.fsPath&&"function"===typeof e.with&&"function"===typeof e.toString)}constructor(e,t,n,r,i,h=!1){"object"===typeof e?(this.scheme=e.scheme||l,this.authority=e.authority||l,this.path=e.path||l,this.query=e.query||l,this.fragment=e.fragment||l):(this.scheme=function(e,t){return e||t?e:"file"}(e,h),this.authority=t||l,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==c&&(t=c+t):t=c}return t}(this.scheme,n||l),this.query=r||l,this.fragment=i||l,function(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!s.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!o.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(a.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,h))}get fsPath(){return b(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:i,fragment:s}=e;return void 0===t?t=this.scheme:null===t&&(t=l),void 0===n?n=this.authority:null===n&&(n=l),void 0===r?r=this.path:null===r&&(r=l),void 0===i?i=this.query:null===i&&(i=l),void 0===s?s=this.fragment:null===s&&(s=l),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&s===this.fragment?this:new g(t,n,r,i,s)}static parse(e,t=!1){const n=h.exec(e);return n?new g(n[2]||l,C(n[4]||l),C(n[5]||l),C(n[7]||l),C(n[9]||l),t):new g(l,l,l,l,l)}static file(e){let t=l;if(i.uF&&(e=e.replace(/\\/g,c)),e[0]===c&&e[1]===c){const n=e.indexOf(c,2);-1===n?(t=e.substring(2),e=c):(t=e.substring(2,n),e=e.substring(n)||c)}return new g("file",t,e,l,l)}static from(e,t){return new g(e.scheme,e.authority,e.path,e.query,e.fragment,t)}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let n;return n=i.uF&&"file"===e.scheme?u.file(r.IN.join(b(e,!0),...t)).path:r.SA.join(e.path,...t),e.with({path:n})}toString(e=!1){return _(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof u)return e;{const t=new g(e);return t._formatted=e.external??null,t._fsPath=e._sep===d?e.fsPath??null:null,t}}return e}}const d=i.uF?1:void 0;class g extends u{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=b(this,!1)),this._fsPath}toString(e=!1){return e?_(this,!0):(this._formatted||(this._formatted=_(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=d),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}}const f={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 m(e,t,n){let r,i=-1;for(let s=0;s<e.length;s++){const o=e.charCodeAt(s);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o||n&&91===o||n&&93===o||n&&58===o)-1!==i&&(r+=encodeURIComponent(e.substring(i,s)),i=-1),void 0!==r&&(r+=e.charAt(s));else{void 0===r&&(r=e.substr(0,s));const t=f[o];void 0!==t?(-1!==i&&(r+=encodeURIComponent(e.substring(i,s)),i=-1),r+=t):-1===i&&(i=s)}}return-1!==i&&(r+=encodeURIComponent(e.substring(i))),void 0!==r?r:e}function p(e){let t;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);35===r||63===r?(void 0===t&&(t=e.substr(0,n)),t+=f[r]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function b(e,t){let n;return n=e.authority&&e.path.length>1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,i.uF&&(n=n.replace(/\//g,"\\")),n}function _(e,t){const n=t?p:m;let r="",{scheme:i,authority:s,path:o,query:a,fragment:l}=e;if(i&&(r+=i,r+=":"),(s||"file"===i)&&(r+=c,r+=c),s){let e=s.indexOf("@");if(-1!==e){const t=s.substr(0,e);s=s.substr(e+1),e=t.lastIndexOf(":"),-1===e?r+=n(t,!1,!1):(r+=n(t.substr(0,e),!1,!1),r+=":",r+=n(t.substr(e+1),!1,!0)),r+="@"}s=s.toLowerCase(),e=s.lastIndexOf(":"),-1===e?r+=n(s,!1,!0):(r+=n(s.substr(0,e),!1,!0),r+=s.substr(e))}if(o){if(o.length>=3&&47===o.charCodeAt(0)&&58===o.charCodeAt(2)){const e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&58===o.charCodeAt(1)){const e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}r+=n(o,!0,!1)}return a&&(r+="?",r+=n(a,!1,!1)),l&&(r+="#",r+=t?l:m(l,!1,!1)),r}function k(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+k(e.substr(3)):e}}const v=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function C(e){return e.match(v)?e.replace(v,(e=>k(e))):e}},9403:(e,t,n)=>{"use strict";n.d(t,{B6:()=>m,P8:()=>d});var r=n(9326),i=n(6456),s=n(8821),o=n(8067),a=n(1508),l=n(9400);function c(e){return(0,l.I)(e,!0)}class h{constructor(e){this._ignorePathCasing=e}compare(e,t,n=!1){return e===t?0:(0,a.UD)(this.getComparisonKey(e,n),this.getComparisonKey(t,n))}isEqual(e,t,n=!1){return e===t||!(!e||!t)&&this.getComparisonKey(e,n)===this.getComparisonKey(t,n)}getComparisonKey(e,t=!1){return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:t?null:void 0}).toString()}isEqualOrParent(e,t,n=!1){if(e.scheme===t.scheme){if(e.scheme===i.ny.file)return r._1(c(e),c(t),this._ignorePathCasing(e))&&e.query===t.query&&(n||e.fragment===t.fragment);if(g(e.authority,t.authority))return r._1(e.path,t.path,this._ignorePathCasing(e),"/")&&e.query===t.query&&(n||e.fragment===t.fragment)}return!1}joinPath(e,...t){return l.r.joinPath(e,...t)}basenameOrAuthority(e){return d(e)||e.authority}basename(e){return s.SA.basename(e.path)}extname(e){return s.SA.extname(e.path)}dirname(e){if(0===e.path.length)return e;let t;return e.scheme===i.ny.file?t=l.r.file(s.pD(c(e))).path:(t=s.SA.dirname(e.path),e.authority&&t.length&&47!==t.charCodeAt(0)&&(console.error(`dirname("${e.toString})) resulted in a relative path`),t="/")),e.with({path:t})}normalizePath(e){if(!e.path.length)return e;let t;return t=e.scheme===i.ny.file?l.r.file(s.S8(c(e))).path:s.SA.normalize(e.path),e.with({path:t})}relativePath(e,t){if(e.scheme!==t.scheme||!g(e.authority,t.authority))return;if(e.scheme===i.ny.file){const n=s.V8(c(e),c(t));return o.uF?r.TH(n):n}let n=e.path||"/";const a=t.path||"/";if(this._ignorePathCasing(e)){let e=0;for(const t=Math.min(n.length,a.length);e<t&&(n.charCodeAt(e)===a.charCodeAt(e)||n.charAt(e).toLowerCase()===a.charAt(e).toLowerCase());e++);n=a.substr(0,e)+n.substr(e)}return s.SA.relative(n,a)}resolvePath(e,t){if(e.scheme===i.ny.file){const n=l.r.file(s.hd(c(e),t));return e.with({authority:n.authority,path:n.path})}return t=r.kb(t),e.with({path:s.SA.resolve(e.path,t)})}isAbsolutePath(e){return!!e.path&&"/"===e.path[0]}isEqualAuthority(e,t){return e===t||void 0!==e&&void 0!==t&&(0,a.Q_)(e,t)}hasTrailingPathSeparator(e,t=s.Vn){if(e.scheme===i.ny.file){const n=c(e);return n.length>r.Zn(n).length&&n[n.length-1]===t}{const t=e.path;return t.length>1&&47===t.charCodeAt(t.length-1)&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}}removeTrailingPathSeparator(e,t=s.Vn){return f(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e,t=s.Vn){let n=!1;if(e.scheme===i.ny.file){const i=c(e);n=void 0!==i&&i.length===r.Zn(i).length&&i[i.length-1]===t}else{t="/";const r=e.path;n=1===r.length&&47===r.charCodeAt(r.length-1)}return n||f(e,t)?e:e.with({path:e.path+"/"})}}const u=new h((()=>!1)),d=(new h((e=>e.scheme!==i.ny.file||!o.j9)),new h((e=>!0)),u.isEqual.bind(u),u.isEqualOrParent.bind(u),u.getComparisonKey.bind(u),u.basenameOrAuthority.bind(u),u.basename.bind(u)),g=(u.extname.bind(u),u.dirname.bind(u),u.joinPath.bind(u),u.normalizePath.bind(u),u.relativePath.bind(u),u.resolvePath.bind(u),u.isAbsolutePath.bind(u),u.isEqualAuthority.bind(u)),f=u.hasTrailingPathSeparator.bind(u);u.removeTrailingPathSeparator.bind(u),u.addTrailingPathSeparator.bind(u);var m;!function(e){e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=function(t){const n=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach((e=>{const[t,r]=e.split(":");t&&r&&n.set(t,r)}));const r=t.path.substring(0,t.path.indexOf(";"));return r&&n.set(e.META_DATA_MIME,r),n}}(m||(m={}))},9493:(e,t,n)=>{"use strict";n.d(t,{W:()=>o});var r=n(631);const i=Object.create(null);function s(e,t){if((0,r.Kg)(t)){const n=i[t];if(void 0===n)throw new Error(`${e} references an unknown codicon: ${t}`);t=n}return i[e]=t,{id:e}}const o={...{add:s("add",6e4),plus:s("plus",6e4),gistNew:s("gist-new",6e4),repoCreate:s("repo-create",6e4),lightbulb:s("lightbulb",60001),lightBulb:s("light-bulb",60001),repo:s("repo",60002),repoDelete:s("repo-delete",60002),gistFork:s("gist-fork",60003),repoForked:s("repo-forked",60003),gitPullRequest:s("git-pull-request",60004),gitPullRequestAbandoned:s("git-pull-request-abandoned",60004),recordKeys:s("record-keys",60005),keyboard:s("keyboard",60005),tag:s("tag",60006),gitPullRequestLabel:s("git-pull-request-label",60006),tagAdd:s("tag-add",60006),tagRemove:s("tag-remove",60006),person:s("person",60007),personFollow:s("person-follow",60007),personOutline:s("person-outline",60007),personFilled:s("person-filled",60007),gitBranch:s("git-branch",60008),gitBranchCreate:s("git-branch-create",60008),gitBranchDelete:s("git-branch-delete",60008),sourceControl:s("source-control",60008),mirror:s("mirror",60009),mirrorPublic:s("mirror-public",60009),star:s("star",60010),starAdd:s("star-add",60010),starDelete:s("star-delete",60010),starEmpty:s("star-empty",60010),comment:s("comment",60011),commentAdd:s("comment-add",60011),alert:s("alert",60012),warning:s("warning",60012),search:s("search",60013),searchSave:s("search-save",60013),logOut:s("log-out",60014),signOut:s("sign-out",60014),logIn:s("log-in",60015),signIn:s("sign-in",60015),eye:s("eye",60016),eyeUnwatch:s("eye-unwatch",60016),eyeWatch:s("eye-watch",60016),circleFilled:s("circle-filled",60017),primitiveDot:s("primitive-dot",60017),closeDirty:s("close-dirty",60017),debugBreakpoint:s("debug-breakpoint",60017),debugBreakpointDisabled:s("debug-breakpoint-disabled",60017),debugHint:s("debug-hint",60017),terminalDecorationSuccess:s("terminal-decoration-success",60017),primitiveSquare:s("primitive-square",60018),edit:s("edit",60019),pencil:s("pencil",60019),info:s("info",60020),issueOpened:s("issue-opened",60020),gistPrivate:s("gist-private",60021),gitForkPrivate:s("git-fork-private",60021),lock:s("lock",60021),mirrorPrivate:s("mirror-private",60021),close:s("close",60022),removeClose:s("remove-close",60022),x:s("x",60022),repoSync:s("repo-sync",60023),sync:s("sync",60023),clone:s("clone",60024),desktopDownload:s("desktop-download",60024),beaker:s("beaker",60025),microscope:s("microscope",60025),vm:s("vm",60026),deviceDesktop:s("device-desktop",60026),file:s("file",60027),fileText:s("file-text",60027),more:s("more",60028),ellipsis:s("ellipsis",60028),kebabHorizontal:s("kebab-horizontal",60028),mailReply:s("mail-reply",60029),reply:s("reply",60029),organization:s("organization",60030),organizationFilled:s("organization-filled",60030),organizationOutline:s("organization-outline",60030),newFile:s("new-file",60031),fileAdd:s("file-add",60031),newFolder:s("new-folder",60032),fileDirectoryCreate:s("file-directory-create",60032),trash:s("trash",60033),trashcan:s("trashcan",60033),history:s("history",60034),clock:s("clock",60034),folder:s("folder",60035),fileDirectory:s("file-directory",60035),symbolFolder:s("symbol-folder",60035),logoGithub:s("logo-github",60036),markGithub:s("mark-github",60036),github:s("github",60036),terminal:s("terminal",60037),console:s("console",60037),repl:s("repl",60037),zap:s("zap",60038),symbolEvent:s("symbol-event",60038),error:s("error",60039),stop:s("stop",60039),variable:s("variable",60040),symbolVariable:s("symbol-variable",60040),array:s("array",60042),symbolArray:s("symbol-array",60042),symbolModule:s("symbol-module",60043),symbolPackage:s("symbol-package",60043),symbolNamespace:s("symbol-namespace",60043),symbolObject:s("symbol-object",60043),symbolMethod:s("symbol-method",60044),symbolFunction:s("symbol-function",60044),symbolConstructor:s("symbol-constructor",60044),symbolBoolean:s("symbol-boolean",60047),symbolNull:s("symbol-null",60047),symbolNumeric:s("symbol-numeric",60048),symbolNumber:s("symbol-number",60048),symbolStructure:s("symbol-structure",60049),symbolStruct:s("symbol-struct",60049),symbolParameter:s("symbol-parameter",60050),symbolTypeParameter:s("symbol-type-parameter",60050),symbolKey:s("symbol-key",60051),symbolText:s("symbol-text",60051),symbolReference:s("symbol-reference",60052),goToFile:s("go-to-file",60052),symbolEnum:s("symbol-enum",60053),symbolValue:s("symbol-value",60053),symbolRuler:s("symbol-ruler",60054),symbolUnit:s("symbol-unit",60054),activateBreakpoints:s("activate-breakpoints",60055),archive:s("archive",60056),arrowBoth:s("arrow-both",60057),arrowDown:s("arrow-down",60058),arrowLeft:s("arrow-left",60059),arrowRight:s("arrow-right",60060),arrowSmallDown:s("arrow-small-down",60061),arrowSmallLeft:s("arrow-small-left",60062),arrowSmallRight:s("arrow-small-right",60063),arrowSmallUp:s("arrow-small-up",60064),arrowUp:s("arrow-up",60065),bell:s("bell",60066),bold:s("bold",60067),book:s("book",60068),bookmark:s("bookmark",60069),debugBreakpointConditionalUnverified:s("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:s("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:s("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:s("debug-breakpoint-data-unverified",60072),debugBreakpointData:s("debug-breakpoint-data",60073),debugBreakpointDataDisabled:s("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:s("debug-breakpoint-log-unverified",60074),debugBreakpointLog:s("debug-breakpoint-log",60075),debugBreakpointLogDisabled:s("debug-breakpoint-log-disabled",60075),briefcase:s("briefcase",60076),broadcast:s("broadcast",60077),browser:s("browser",60078),bug:s("bug",60079),calendar:s("calendar",60080),caseSensitive:s("case-sensitive",60081),check:s("check",60082),checklist:s("checklist",60083),chevronDown:s("chevron-down",60084),chevronLeft:s("chevron-left",60085),chevronRight:s("chevron-right",60086),chevronUp:s("chevron-up",60087),chromeClose:s("chrome-close",60088),chromeMaximize:s("chrome-maximize",60089),chromeMinimize:s("chrome-minimize",60090),chromeRestore:s("chrome-restore",60091),circleOutline:s("circle-outline",60092),circle:s("circle",60092),debugBreakpointUnverified:s("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:s("terminal-decoration-incomplete",60092),circleSlash:s("circle-slash",60093),circuitBoard:s("circuit-board",60094),clearAll:s("clear-all",60095),clippy:s("clippy",60096),closeAll:s("close-all",60097),cloudDownload:s("cloud-download",60098),cloudUpload:s("cloud-upload",60099),code:s("code",60100),collapseAll:s("collapse-all",60101),colorMode:s("color-mode",60102),commentDiscussion:s("comment-discussion",60103),creditCard:s("credit-card",60105),dash:s("dash",60108),dashboard:s("dashboard",60109),database:s("database",60110),debugContinue:s("debug-continue",60111),debugDisconnect:s("debug-disconnect",60112),debugPause:s("debug-pause",60113),debugRestart:s("debug-restart",60114),debugStart:s("debug-start",60115),debugStepInto:s("debug-step-into",60116),debugStepOut:s("debug-step-out",60117),debugStepOver:s("debug-step-over",60118),debugStop:s("debug-stop",60119),debug:s("debug",60120),deviceCameraVideo:s("device-camera-video",60121),deviceCamera:s("device-camera",60122),deviceMobile:s("device-mobile",60123),diffAdded:s("diff-added",60124),diffIgnored:s("diff-ignored",60125),diffModified:s("diff-modified",60126),diffRemoved:s("diff-removed",60127),diffRenamed:s("diff-renamed",60128),diff:s("diff",60129),diffSidebyside:s("diff-sidebyside",60129),discard:s("discard",60130),editorLayout:s("editor-layout",60131),emptyWindow:s("empty-window",60132),exclude:s("exclude",60133),extensions:s("extensions",60134),eyeClosed:s("eye-closed",60135),fileBinary:s("file-binary",60136),fileCode:s("file-code",60137),fileMedia:s("file-media",60138),filePdf:s("file-pdf",60139),fileSubmodule:s("file-submodule",60140),fileSymlinkDirectory:s("file-symlink-directory",60141),fileSymlinkFile:s("file-symlink-file",60142),fileZip:s("file-zip",60143),files:s("files",60144),filter:s("filter",60145),flame:s("flame",60146),foldDown:s("fold-down",60147),foldUp:s("fold-up",60148),fold:s("fold",60149),folderActive:s("folder-active",60150),folderOpened:s("folder-opened",60151),gear:s("gear",60152),gift:s("gift",60153),gistSecret:s("gist-secret",60154),gist:s("gist",60155),gitCommit:s("git-commit",60156),gitCompare:s("git-compare",60157),compareChanges:s("compare-changes",60157),gitMerge:s("git-merge",60158),githubAction:s("github-action",60159),githubAlt:s("github-alt",60160),globe:s("globe",60161),grabber:s("grabber",60162),graph:s("graph",60163),gripper:s("gripper",60164),heart:s("heart",60165),home:s("home",60166),horizontalRule:s("horizontal-rule",60167),hubot:s("hubot",60168),inbox:s("inbox",60169),issueReopened:s("issue-reopened",60171),issues:s("issues",60172),italic:s("italic",60173),jersey:s("jersey",60174),json:s("json",60175),kebabVertical:s("kebab-vertical",60176),key:s("key",60177),law:s("law",60178),lightbulbAutofix:s("lightbulb-autofix",60179),linkExternal:s("link-external",60180),link:s("link",60181),listOrdered:s("list-ordered",60182),listUnordered:s("list-unordered",60183),liveShare:s("live-share",60184),loading:s("loading",60185),location:s("location",60186),mailRead:s("mail-read",60187),mail:s("mail",60188),markdown:s("markdown",60189),megaphone:s("megaphone",60190),mention:s("mention",60191),milestone:s("milestone",60192),gitPullRequestMilestone:s("git-pull-request-milestone",60192),mortarBoard:s("mortar-board",60193),move:s("move",60194),multipleWindows:s("multiple-windows",60195),mute:s("mute",60196),noNewline:s("no-newline",60197),note:s("note",60198),octoface:s("octoface",60199),openPreview:s("open-preview",60200),package:s("package",60201),paintcan:s("paintcan",60202),pin:s("pin",60203),play:s("play",60204),run:s("run",60204),plug:s("plug",60205),preserveCase:s("preserve-case",60206),preview:s("preview",60207),project:s("project",60208),pulse:s("pulse",60209),question:s("question",60210),quote:s("quote",60211),radioTower:s("radio-tower",60212),reactions:s("reactions",60213),references:s("references",60214),refresh:s("refresh",60215),regex:s("regex",60216),remoteExplorer:s("remote-explorer",60217),remote:s("remote",60218),remove:s("remove",60219),replaceAll:s("replace-all",60220),replace:s("replace",60221),repoClone:s("repo-clone",60222),repoForcePush:s("repo-force-push",60223),repoPull:s("repo-pull",60224),repoPush:s("repo-push",60225),report:s("report",60226),requestChanges:s("request-changes",60227),rocket:s("rocket",60228),rootFolderOpened:s("root-folder-opened",60229),rootFolder:s("root-folder",60230),rss:s("rss",60231),ruby:s("ruby",60232),saveAll:s("save-all",60233),saveAs:s("save-as",60234),save:s("save",60235),screenFull:s("screen-full",60236),screenNormal:s("screen-normal",60237),searchStop:s("search-stop",60238),server:s("server",60240),settingsGear:s("settings-gear",60241),settings:s("settings",60242),shield:s("shield",60243),smiley:s("smiley",60244),sortPrecedence:s("sort-precedence",60245),splitHorizontal:s("split-horizontal",60246),splitVertical:s("split-vertical",60247),squirrel:s("squirrel",60248),starFull:s("star-full",60249),starHalf:s("star-half",60250),symbolClass:s("symbol-class",60251),symbolColor:s("symbol-color",60252),symbolConstant:s("symbol-constant",60253),symbolEnumMember:s("symbol-enum-member",60254),symbolField:s("symbol-field",60255),symbolFile:s("symbol-file",60256),symbolInterface:s("symbol-interface",60257),symbolKeyword:s("symbol-keyword",60258),symbolMisc:s("symbol-misc",60259),symbolOperator:s("symbol-operator",60260),symbolProperty:s("symbol-property",60261),wrench:s("wrench",60261),wrenchSubaction:s("wrench-subaction",60261),symbolSnippet:s("symbol-snippet",60262),tasklist:s("tasklist",60263),telescope:s("telescope",60264),textSize:s("text-size",60265),threeBars:s("three-bars",60266),thumbsdown:s("thumbsdown",60267),thumbsup:s("thumbsup",60268),tools:s("tools",60269),triangleDown:s("triangle-down",60270),triangleLeft:s("triangle-left",60271),triangleRight:s("triangle-right",60272),triangleUp:s("triangle-up",60273),twitter:s("twitter",60274),unfold:s("unfold",60275),unlock:s("unlock",60276),unmute:s("unmute",60277),unverified:s("unverified",60278),verified:s("verified",60279),versions:s("versions",60280),vmActive:s("vm-active",60281),vmOutline:s("vm-outline",60282),vmRunning:s("vm-running",60283),watch:s("watch",60284),whitespace:s("whitespace",60285),wholeWord:s("whole-word",60286),window:s("window",60287),wordWrap:s("word-wrap",60288),zoomIn:s("zoom-in",60289),zoomOut:s("zoom-out",60290),listFilter:s("list-filter",60291),listFlat:s("list-flat",60292),listSelection:s("list-selection",60293),selection:s("selection",60293),listTree:s("list-tree",60294),debugBreakpointFunctionUnverified:s("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:s("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:s("debug-breakpoint-function-disabled",60296),debugStackframeActive:s("debug-stackframe-active",60297),circleSmallFilled:s("circle-small-filled",60298),debugStackframeDot:s("debug-stackframe-dot",60298),terminalDecorationMark:s("terminal-decoration-mark",60298),debugStackframe:s("debug-stackframe",60299),debugStackframeFocused:s("debug-stackframe-focused",60299),debugBreakpointUnsupported:s("debug-breakpoint-unsupported",60300),symbolString:s("symbol-string",60301),debugReverseContinue:s("debug-reverse-continue",60302),debugStepBack:s("debug-step-back",60303),debugRestartFrame:s("debug-restart-frame",60304),debugAlt:s("debug-alt",60305),callIncoming:s("call-incoming",60306),callOutgoing:s("call-outgoing",60307),menu:s("menu",60308),expandAll:s("expand-all",60309),feedback:s("feedback",60310),gitPullRequestReviewer:s("git-pull-request-reviewer",60310),groupByRefType:s("group-by-ref-type",60311),ungroupByRefType:s("ungroup-by-ref-type",60312),account:s("account",60313),gitPullRequestAssignee:s("git-pull-request-assignee",60313),bellDot:s("bell-dot",60314),debugConsole:s("debug-console",60315),library:s("library",60316),output:s("output",60317),runAll:s("run-all",60318),syncIgnored:s("sync-ignored",60319),pinned:s("pinned",60320),githubInverted:s("github-inverted",60321),serverProcess:s("server-process",60322),serverEnvironment:s("server-environment",60323),pass:s("pass",60324),issueClosed:s("issue-closed",60324),stopCircle:s("stop-circle",60325),playCircle:s("play-circle",60326),record:s("record",60327),debugAltSmall:s("debug-alt-small",60328),vmConnect:s("vm-connect",60329),cloud:s("cloud",60330),merge:s("merge",60331),export:s("export",60332),graphLeft:s("graph-left",60333),magnet:s("magnet",60334),notebook:s("notebook",60335),redo:s("redo",60336),checkAll:s("check-all",60337),pinnedDirty:s("pinned-dirty",60338),passFilled:s("pass-filled",60339),circleLargeFilled:s("circle-large-filled",60340),circleLarge:s("circle-large",60341),circleLargeOutline:s("circle-large-outline",60341),combine:s("combine",60342),gather:s("gather",60342),table:s("table",60343),variableGroup:s("variable-group",60344),typeHierarchy:s("type-hierarchy",60345),typeHierarchySub:s("type-hierarchy-sub",60346),typeHierarchySuper:s("type-hierarchy-super",60347),gitPullRequestCreate:s("git-pull-request-create",60348),runAbove:s("run-above",60349),runBelow:s("run-below",60350),notebookTemplate:s("notebook-template",60351),debugRerun:s("debug-rerun",60352),workspaceTrusted:s("workspace-trusted",60353),workspaceUntrusted:s("workspace-untrusted",60354),workspaceUnknown:s("workspace-unknown",60355),terminalCmd:s("terminal-cmd",60356),terminalDebian:s("terminal-debian",60357),terminalLinux:s("terminal-linux",60358),terminalPowershell:s("terminal-powershell",60359),terminalTmux:s("terminal-tmux",60360),terminalUbuntu:s("terminal-ubuntu",60361),terminalBash:s("terminal-bash",60362),arrowSwap:s("arrow-swap",60363),copy:s("copy",60364),personAdd:s("person-add",60365),filterFilled:s("filter-filled",60366),wand:s("wand",60367),debugLineByLine:s("debug-line-by-line",60368),inspect:s("inspect",60369),layers:s("layers",60370),layersDot:s("layers-dot",60371),layersActive:s("layers-active",60372),compass:s("compass",60373),compassDot:s("compass-dot",60374),compassActive:s("compass-active",60375),azure:s("azure",60376),issueDraft:s("issue-draft",60377),gitPullRequestClosed:s("git-pull-request-closed",60378),gitPullRequestDraft:s("git-pull-request-draft",60379),debugAll:s("debug-all",60380),debugCoverage:s("debug-coverage",60381),runErrors:s("run-errors",60382),folderLibrary:s("folder-library",60383),debugContinueSmall:s("debug-continue-small",60384),beakerStop:s("beaker-stop",60385),graphLine:s("graph-line",60386),graphScatter:s("graph-scatter",60387),pieChart:s("pie-chart",60388),bracket:s("bracket",60175),bracketDot:s("bracket-dot",60389),bracketError:s("bracket-error",60390),lockSmall:s("lock-small",60391),azureDevops:s("azure-devops",60392),verifiedFilled:s("verified-filled",60393),newline:s("newline",60394),layout:s("layout",60395),layoutActivitybarLeft:s("layout-activitybar-left",60396),layoutActivitybarRight:s("layout-activitybar-right",60397),layoutPanelLeft:s("layout-panel-left",60398),layoutPanelCenter:s("layout-panel-center",60399),layoutPanelJustify:s("layout-panel-justify",60400),layoutPanelRight:s("layout-panel-right",60401),layoutPanel:s("layout-panel",60402),layoutSidebarLeft:s("layout-sidebar-left",60403),layoutSidebarRight:s("layout-sidebar-right",60404),layoutStatusbar:s("layout-statusbar",60405),layoutMenubar:s("layout-menubar",60406),layoutCentered:s("layout-centered",60407),target:s("target",60408),indent:s("indent",60409),recordSmall:s("record-small",60410),errorSmall:s("error-small",60411),terminalDecorationError:s("terminal-decoration-error",60411),arrowCircleDown:s("arrow-circle-down",60412),arrowCircleLeft:s("arrow-circle-left",60413),arrowCircleRight:s("arrow-circle-right",60414),arrowCircleUp:s("arrow-circle-up",60415),layoutSidebarRightOff:s("layout-sidebar-right-off",60416),layoutPanelOff:s("layout-panel-off",60417),layoutSidebarLeftOff:s("layout-sidebar-left-off",60418),blank:s("blank",60419),heartFilled:s("heart-filled",60420),map:s("map",60421),mapHorizontal:s("map-horizontal",60421),foldHorizontal:s("fold-horizontal",60421),mapFilled:s("map-filled",60422),mapHorizontalFilled:s("map-horizontal-filled",60422),foldHorizontalFilled:s("fold-horizontal-filled",60422),circleSmall:s("circle-small",60423),bellSlash:s("bell-slash",60424),bellSlashDot:s("bell-slash-dot",60425),commentUnresolved:s("comment-unresolved",60426),gitPullRequestGoToChanges:s("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:s("git-pull-request-new-changes",60428),searchFuzzy:s("search-fuzzy",60429),commentDraft:s("comment-draft",60430),send:s("send",60431),sparkle:s("sparkle",60432),insert:s("insert",60433),mic:s("mic",60434),thumbsdownFilled:s("thumbsdown-filled",60435),thumbsupFilled:s("thumbsup-filled",60436),coffee:s("coffee",60437),snake:s("snake",60438),game:s("game",60439),vr:s("vr",60440),chip:s("chip",60441),piano:s("piano",60442),music:s("music",60443),micFilled:s("mic-filled",60444),repoFetch:s("repo-fetch",60445),copilot:s("copilot",60446),lightbulbSparkle:s("lightbulb-sparkle",60447),robot:s("robot",60448),sparkleFilled:s("sparkle-filled",60449),diffSingle:s("diff-single",60450),diffMultiple:s("diff-multiple",60451),surroundWith:s("surround-with",60452),share:s("share",60453),gitStash:s("git-stash",60454),gitStashApply:s("git-stash-apply",60455),gitStashPop:s("git-stash-pop",60456),vscode:s("vscode",60457),vscodeInsiders:s("vscode-insiders",60458),codeOss:s("code-oss",60459),runCoverage:s("run-coverage",60460),runAllCoverage:s("run-all-coverage",60461),coverage:s("coverage",60462),githubProject:s("github-project",60463),mapVertical:s("map-vertical",60464),foldVertical:s("fold-vertical",60464),mapVerticalFilled:s("map-vertical-filled",60465),foldVerticalFilled:s("fold-vertical-filled",60465),goToSearch:s("go-to-search",60466),percentage:s("percentage",60467),sortPercentage:s("sort-percentage",60467),attach:s("attach",60468)},...{dialogError:s("dialog-error","error"),dialogWarning:s("dialog-warning","warning"),dialogInfo:s("dialog-info","info"),dialogClose:s("dialog-close","close"),treeItemExpanded:s("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:s("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:s("tree-filter-on-type-off","list-selection"),treeFilterClear:s("tree-filter-clear","close"),treeItemLoading:s("tree-item-loading","loading"),menuSelection:s("menu-selection","check"),menuSubmenu:s("menu-submenu","chevron-right"),menuBarMore:s("menubar-more","more"),scrollbarButtonLeft:s("scrollbar-button-left","triangle-left"),scrollbarButtonRight:s("scrollbar-button-right","triangle-right"),scrollbarButtonUp:s("scrollbar-button-up","triangle-up"),scrollbarButtonDown:s("scrollbar-button-down","triangle-down"),toolBarMore:s("toolbar-more","more"),quickInputBack:s("quick-input-back","arrow-left"),dropDownButton:s("drop-down-button",60084),symbolCustomColor:s("symbol-customcolor",60252),exportIcon:s("export",60332),workspaceUnspecified:s("workspace-unspecified",60355),newLine:s("newline",60394),thumbsDownFilled:s("thumbsdown-filled",60435),thumbsUpFilled:s("thumbsup-filled",60436),gitFetch:s("git-fetch",60445),lightbulbSparkleAutofix:s("lightbulb-sparkle-autofix",60447),debugBreakpointPending:s("debug-breakpoint-pending",60377)}}},9861:(e,t,n)=>{"use strict";function r(e,t,n=(e,t)=>e===t){if(e===t)return!0;if(!e||!t)return!1;if(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*i(e,t){let n,r;for(const i of e)void 0!==r&&t(r,i)?n.push(i):(n&&(yield n),n=[i]),r=i;n&&(yield n)}function s(e,t){for(let n=0;n<=e.length;n++)t(0===n?void 0:e[n-1],n===e.length?void 0:e[n])}function o(e,t){for(let n=0;n<e.length;n++)t(0===n?void 0:e[n-1],e[n],n+1===e.length?void 0:e[n+1])}function a(e,t=e=>e){const n=new Set;return e.filter((e=>{const r=t(e);return!n.has(r)&&(n.add(r),!0)}))}function l(e,t){return e.length>0?e[0]:t}function c(e,t,n){const r=e.slice(0,t),i=e.slice(t);return r.concat(n,i)}function h(e,t){for(const n of t)e.push(n)}var u;function d(e,t){return(n,r)=>t(e(n),e(r))}n.d(t,{E4:()=>h,Fy:()=>l,Hw:()=>f,U9:()=>g,VE:()=>d,aI:()=>r,c1:()=>p,dM:()=>a,j3:()=>m,kj:()=>o,n:()=>i,nK:()=>c,pN:()=>s}),function(e){e.isLessThan=function(e){return e<0},e.isLessThanOrEqual=function(e){return e<=0},e.isGreaterThan=function(e){return e>0},e.isNeitherLessOrGreaterThan=function(e){return 0===e},e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0}(u||(u={}));const g=(e,t)=>e-t;function f(e){return(t,n)=>-e(t,n)}class m{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t<this.items.length&&e(this.items[t]);)t++;const n=t===this.firstIdx?null:this.items.slice(this.firstIdx,t);return this.firstIdx=t,n}takeFromEndWhile(e){let t=this.lastIdx;for(;t>=0&&e(this.items[t]);)t--;const n=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,n}peek(){if(0!==this.length)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class p{static{this.empty=new p((e=>{}))}constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate((t=>(e.push(t),!0))),e}filter(e){return new p((t=>this.iterate((n=>!e(n)||t(n)))))}map(e){return new p((t=>this.iterate((n=>t(e(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||u.isGreaterThan(e(r,t)))&&(n=!1,t=r),!0))),t}}},9908:(e,t,n)=>{"use strict";n.r(t),n.d(t,{clearPlatformLanguageAssociations:()=>f,getLanguageIds:()=>m,registerPlatformLanguageAssociation:()=>g});var r=n(6958),i=n(1939),s=n(6456),o=n(8821),a=n(9403),l=n(1508),c=n(3941);let h=[],u=[],d=[];function g(e,t=!1){!function(e,t,n){const i=function(e,t){return{id:e.id,mime:e.mime,filename:e.filename,extension:e.extension,filepattern:e.filepattern,firstline:e.firstline,userConfigured:t,filenameLowercase:e.filename?e.filename.toLowerCase():void 0,extensionLowercase:e.extension?e.extension.toLowerCase():void 0,filepatternLowercase:e.filepattern?(0,r.qg)(e.filepattern.toLowerCase()):void 0,filepatternOnPath:!!e.filepattern&&e.filepattern.indexOf(o.SA.sep)>=0}}(e,t);h.push(i),i.userConfigured?d.push(i):u.push(i);n&&!i.userConfigured&&h.forEach((e=>{e.mime===i.mime||e.userConfigured||(i.extension&&e.extension===i.extension&&console.warn(`Overwriting extension <<${i.extension}>> to now point to mime <<${i.mime}>>`),i.filename&&e.filename===i.filename&&console.warn(`Overwriting filename <<${i.filename}>> to now point to mime <<${i.mime}>>`),i.filepattern&&e.filepattern===i.filepattern&&console.warn(`Overwriting filepattern <<${i.filepattern}>> to now point to mime <<${i.mime}>>`),i.firstline&&e.firstline===i.firstline&&console.warn(`Overwriting firstline <<${i.firstline}>> to now point to mime <<${i.mime}>>`))}))}(e,!1,t)}function f(){h=h.filter((e=>e.userConfigured)),u=[]}function m(e,t){return function(e,t){let n;if(e)switch(e.scheme){case s.ny.file:n=e.fsPath;break;case s.ny.data:n=a.B6.parseMetaData(e).get(a.B6.META_DATA_LABEL);break;case s.ny.vscodeNotebookCell:n=void 0;break;default:n=e.path}if(!n)return[{id:"unknown",mime:i.K.unknown}];n=n.toLowerCase();const r=(0,o.P8)(n),g=p(n,r,d);if(g)return[g,{id:c.vH,mime:i.K.text}];const f=p(n,r,u);if(f)return[f,{id:c.vH,mime:i.K.text}];if(t){const e=function(e){(0,l.LU)(e)&&(e=e.substr(1));if(e.length>0)for(let t=h.length-1;t>=0;t--){const n=h[t];if(!n.firstline)continue;const r=e.match(n.firstline);if(r&&r.length>0)return n}return}(t);if(e)return[e,{id:c.vH,mime:i.K.text}]}return[{id:"unknown",mime:i.K.unknown}]}(e,t).map((e=>e.id))}function p(e,t,n){let r,i,s;for(let o=n.length-1;o>=0;o--){const a=n[o];if(t===a.filenameLowercase){r=a;break}if(a.filepattern&&(!i||a.filepattern.length>i.filepattern.length)){const n=a.filepatternOnPath?e:t;a.filepatternLowercase?.(n)&&(i=a)}a.extension&&(!s||a.extension.length>s.extension.length)&&t.endsWith(a.extensionLowercase)&&(s=a)}return r||(i||(s||void 0))}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var s=t[r]={exports:{}};return e[r](s,s.exports,n),s.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.e=()=>Promise.resolve(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=n(1929),t=n(5196),r=n(718);let i=!1;function s(n){if(i)return;i=!0;const s=new e.SimpleWorkerServer((e=>{globalThis.postMessage(e)}),(e=>new t.EditorSimpleWorker(r.EditorWorkerHost.getChannel(e),n)));globalThis.onmessage=e=>{s.onmessage(e.data)}}function o(e,t=!1){const n=e.length;let r=0,i="",s=0,o=16,h=0,u=0,d=0,g=0,f=0;function m(t,n){let i=0,s=0;for(;i<t||!n;){let t=e.charCodeAt(r);if(t>=48&&t<=57)s=16*s+t-48;else if(t>=65&&t<=70)s=16*s+t-65+10;else{if(!(t>=97&&t<=102))break;s=16*s+t-97+10}r++,i++}return i<t&&(s=-1),s}function p(){if(i="",f=0,s=r,u=h,g=d,r>=n)return s=n,o=17;let t=e.charCodeAt(r);if(a(t)){do{r++,i+=String.fromCharCode(t),t=e.charCodeAt(r)}while(a(t));return o=15}if(l(t))return r++,i+=String.fromCharCode(t),13===t&&10===e.charCodeAt(r)&&(r++,i+="\n"),h++,d=r,o=14;switch(t){case 123:return r++,o=1;case 125:return r++,o=2;case 91:return r++,o=3;case 93:return r++,o=4;case 58:return r++,o=6;case 44:return r++,o=5;case 34:return r++,i=function(){let t="",i=r;for(;;){if(r>=n){t+=e.substring(i,r),f=2;break}const s=e.charCodeAt(r);if(34===s){t+=e.substring(i,r),r++;break}if(92!==s){if(s>=0&&s<=31){if(l(s)){t+=e.substring(i,r),f=2;break}f=6}r++}else{if(t+=e.substring(i,r),r++,r>=n){f=2;break}switch(e.charCodeAt(r++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:const e=m(4,!0);e>=0?t+=String.fromCharCode(e):f=4;break;default:f=5}i=r}}return t}(),o=10;case 47:const a=r-1;if(47===e.charCodeAt(r+1)){for(r+=2;r<n&&!l(e.charCodeAt(r));)r++;return i=e.substring(a,r),o=12}if(42===e.charCodeAt(r+1)){r+=2;const t=n-1;let s=!1;for(;r<t;){const t=e.charCodeAt(r);if(42===t&&47===e.charCodeAt(r+1)){r+=2,s=!0;break}r++,l(t)&&(13===t&&10===e.charCodeAt(r)&&r++,h++,d=r)}return s||(r++,f=1),i=e.substring(a,r),o=13}return i+=String.fromCharCode(t),r++,o=16;case 45:if(i+=String.fromCharCode(t),r++,r===n||!c(e.charCodeAt(r)))return o=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return i+=function(){let t=r;if(48===e.charCodeAt(r))r++;else for(r++;r<e.length&&c(e.charCodeAt(r));)r++;if(r<e.length&&46===e.charCodeAt(r)){if(r++,!(r<e.length&&c(e.charCodeAt(r))))return f=3,e.substring(t,r);for(r++;r<e.length&&c(e.charCodeAt(r));)r++}let n=r;if(r<e.length&&(69===e.charCodeAt(r)||101===e.charCodeAt(r)))if(r++,(r<e.length&&43===e.charCodeAt(r)||45===e.charCodeAt(r))&&r++,r<e.length&&c(e.charCodeAt(r))){for(r++;r<e.length&&c(e.charCodeAt(r));)r++;n=r}else f=3;return e.substring(t,n)}(),o=11;default:for(;r<n&&b(t);)r++,t=e.charCodeAt(r);if(s!==r){switch(i=e.substring(s,r),i){case"true":return o=8;case"false":return o=9;case"null":return o=7}return o=16}return i+=String.fromCharCode(t),r++,o=16}}function b(e){if(a(e)||l(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){r=e,i="",s=0,o=16,f=0},getPosition:()=>r,scan:t?function(){let e;do{e=p()}while(e>=12&&e<=15);return e}:p,getToken:()=>o,getTokenValue:()=>i,getTokenOffset:()=>s,getTokenLength:()=>r-s,getTokenStartLine:()=>u,getTokenStartCharacter:()=>s-g,getTokenError:()=>f}}function a(e){return 32===e||9===e}function l(e){return 10===e||13===e}function c(e){return e>=48&&e<=57}var h,u;globalThis.onmessage=e=>{i||s(null)},(u=h||(h={}))[u.lineFeed=10]="lineFeed",u[u.carriageReturn=13]="carriageReturn",u[u.space=32]="space",u[u._0=48]="_0",u[u._1=49]="_1",u[u._2=50]="_2",u[u._3=51]="_3",u[u._4=52]="_4",u[u._5=53]="_5",u[u._6=54]="_6",u[u._7=55]="_7",u[u._8=56]="_8",u[u._9=57]="_9",u[u.a=97]="a",u[u.b=98]="b",u[u.c=99]="c",u[u.d=100]="d",u[u.e=101]="e",u[u.f=102]="f",u[u.g=103]="g",u[u.h=104]="h",u[u.i=105]="i",u[u.j=106]="j",u[u.k=107]="k",u[u.l=108]="l",u[u.m=109]="m",u[u.n=110]="n",u[u.o=111]="o",u[u.p=112]="p",u[u.q=113]="q",u[u.r=114]="r",u[u.s=115]="s",u[u.t=116]="t",u[u.u=117]="u",u[u.v=118]="v",u[u.w=119]="w",u[u.x=120]="x",u[u.y=121]="y",u[u.z=122]="z",u[u.A=65]="A",u[u.B=66]="B",u[u.C=67]="C",u[u.D=68]="D",u[u.E=69]="E",u[u.F=70]="F",u[u.G=71]="G",u[u.H=72]="H",u[u.I=73]="I",u[u.J=74]="J",u[u.K=75]="K",u[u.L=76]="L",u[u.M=77]="M",u[u.N=78]="N",u[u.O=79]="O",u[u.P=80]="P",u[u.Q=81]="Q",u[u.R=82]="R",u[u.S=83]="S",u[u.T=84]="T",u[u.U=85]="U",u[u.V=86]="V",u[u.W=87]="W",u[u.X=88]="X",u[u.Y=89]="Y",u[u.Z=90]="Z",u[u.asterisk=42]="asterisk",u[u.backslash=92]="backslash",u[u.closeBrace=125]="closeBrace",u[u.closeBracket=93]="closeBracket",u[u.colon=58]="colon",u[u.comma=44]="comma",u[u.dot=46]="dot",u[u.doubleQuote=34]="doubleQuote",u[u.minus=45]="minus",u[u.openBrace=123]="openBrace",u[u.openBracket=91]="openBracket",u[u.plus=43]="plus",u[u.slash=47]="slash",u[u.formFeed=12]="formFeed",u[u.tab=9]="tab";var d,g=new Array(20).fill(0).map(((e,t)=>" ".repeat(t))),f=200,m={" ":{"\n":new Array(f).fill(0).map(((e,t)=>"\n"+" ".repeat(t))),"\r":new Array(f).fill(0).map(((e,t)=>"\r"+" ".repeat(t))),"\r\n":new Array(f).fill(0).map(((e,t)=>"\r\n"+" ".repeat(t)))},"\t":{"\n":new Array(f).fill(0).map(((e,t)=>"\n"+"\t".repeat(t))),"\r":new Array(f).fill(0).map(((e,t)=>"\r"+"\t".repeat(t))),"\r\n":new Array(f).fill(0).map(((e,t)=>"\r\n"+"\t".repeat(t)))}},p=["\n","\r","\r\n"];function b(e,t,n){let r,i,s,a,l;if(t){for(a=t.offset,l=a+t.length,s=a;s>0&&!k(e,s-1);)s--;let o=l;for(;o<e.length&&!k(e,o);)o++;i=e.substring(s,o),r=function(e,t){let n=0,r=0;const i=t.tabSize||4;for(;n<e.length;){let t=e.charAt(n);if(t===g[1])r++;else{if("\t"!==t)break;r+=i}n++}return Math.floor(r/i)}(i,n)}else i=e,r=0,s=0,a=0,l=e.length;const c=function(e,t){for(let n=0;n<t.length;n++){const e=t.charAt(n);if("\r"===e)return n+1<t.length&&"\n"===t.charAt(n+1)?"\r\n":"\r";if("\n"===e)return"\n"}return e&&e.eol||"\n"}(n,e),h=p.includes(c);let u,d=0,f=0;u=n.insertSpaces?g[n.tabSize||4]??_(g[1],n.tabSize||4):"\t";const b="\t"===u?"\t":" ";let v=o(i,!1),C=!1;function y(){if(d>1)return _(c,d)+_(u,r+f);const e=u.length*(r+f);return!h||e>m[b][c].length?c+_(u,r+f):e<=0?c:m[b][c][e]}function L(){let e=v.scan();for(d=0;15===e||14===e;)14===e&&n.keepLines?d+=1:14===e&&(d=1),e=v.scan();return C=16===e||0!==v.getTokenError(),e}const w=[];function S(n,r,i){C||t&&!(r<l&&i>a)||e.substring(r,i)===n||w.push({offset:r,length:i-r,content:n})}let x=L();if(n.keepLines&&d>0&&S(_(c,d),0,0),17!==x){let e=v.getTokenOffset()+s;S(u.length*r<20&&n.insertSpaces?g[u.length*r]:_(u,r),s,e)}for(;17!==x;){let e=v.getTokenOffset()+v.getTokenLength()+s,t=L(),r="",i=!1;for(;0===d&&(12===t||13===t);){let n=v.getTokenOffset()+s;S(g[1],e,n),e=v.getTokenOffset()+v.getTokenLength()+s,i=12===t,r=i?y():"",t=L()}if(2===t)1!==x&&f--,n.keepLines&&d>0||!n.keepLines&&1!==x?r=y():n.keepLines&&(r=g[1]);else if(4===t)3!==x&&f--,n.keepLines&&d>0||!n.keepLines&&3!==x?r=y():n.keepLines&&(r=g[1]);else{switch(x){case 3:case 1:f++,r=n.keepLines&&d>0||!n.keepLines?y():g[1];break;case 5:r=n.keepLines&&d>0||!n.keepLines?y():g[1];break;case 12:r=y();break;case 13:d>0?r=y():i||(r=g[1]);break;case 6:n.keepLines&&d>0?r=y():i||(r=g[1]);break;case 10:n.keepLines&&d>0?r=y():6!==t||i||(r="");break;case 7:case 8:case 9:case 11:case 2:case 4:n.keepLines&&d>0?r=y():12!==t&&13!==t||i?5!==t&&17!==t&&(C=!0):r=g[1];break;case 16:C=!0}d>0&&(12===t||13===t)&&(r=y())}17===t&&(r=n.keepLines&&d>0?y():n.insertFinalNewline?c:"");S(r,e,v.getTokenOffset()+s),x=t}return w}function _(e,t){let n="";for(let r=0;r<t;r++)n+=e;return n}function k(e,t){return-1!=="\r\n".indexOf(e.charAt(t))}(d||(d={})).DEFAULT={allowTrailingComma:!1};var v,C,y,L,w=o;(C=v||(v={}))[C.None=0]="None",C[C.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",C[C.UnexpectedEndOfString=2]="UnexpectedEndOfString",C[C.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",C[C.InvalidUnicode=4]="InvalidUnicode",C[C.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",C[C.InvalidCharacter=6]="InvalidCharacter",(L=y||(y={}))[L.OpenBraceToken=1]="OpenBraceToken",L[L.CloseBraceToken=2]="CloseBraceToken",L[L.OpenBracketToken=3]="OpenBracketToken",L[L.CloseBracketToken=4]="CloseBracketToken",L[L.CommaToken=5]="CommaToken",L[L.ColonToken=6]="ColonToken",L[L.NullKeyword=7]="NullKeyword",L[L.TrueKeyword=8]="TrueKeyword",L[L.FalseKeyword=9]="FalseKeyword",L[L.StringLiteral=10]="StringLiteral",L[L.NumericLiteral=11]="NumericLiteral",L[L.LineCommentTrivia=12]="LineCommentTrivia",L[L.BlockCommentTrivia=13]="BlockCommentTrivia",L[L.LineBreakTrivia=14]="LineBreakTrivia",L[L.Trivia=15]="Trivia",L[L.Unknown=16]="Unknown",L[L.EOF=17]="EOF";var S,x,E,N,T,A,I,O,M,R,D,B,F,P,V,z,j,q,W,U,$,H,K,G,Q,J,X,Y,Z,ee,te,ne,re,ie,se,oe,ae,le,ce,he,ue,de,ge,fe,me,pe,be,_e,ke,ve,Ce,ye,Le,we,Se,xe,Ee,Ne,Te,Ae,Ie,Oe,Me,Re,De,Be,Fe,Pe,Ve,ze,je,qe,We,Ue,$e,He,Ke,Ge,Qe,Je,Xe,Ye,Ze,et,tt,nt,rt,it,st,ot,at,lt,ct,ht,ut,dt,gt,ft,mt,pt,bt,_t,kt,vt,Ct,yt,Lt,wt,St,xt,Et,Nt,Tt,At,It,Ot,Mt,Rt,Dt,Bt,Ft,Pt,Vt,zt,jt,qt,Wt,Ut,$t,Ht,Kt,Gt,Qt,Jt,Xt,Yt=function(e,t=[],n=d.DEFAULT){let r=null,i=[];const s=[];function a(e){Array.isArray(i)?i.push(e):null!==r&&(i[r]=e)}return function(e,t,n=d.DEFAULT){const r=o(e,!1),i=[];function s(e){return e?()=>e(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function a(e){return e?()=>e(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),(()=>i.slice())):()=>!0}function l(e){return e?t=>e(t,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function c(e){return e?t=>e(t,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),(()=>i.slice())):()=>!0}const h=a(t.onObjectBegin),u=c(t.onObjectProperty),g=s(t.onObjectEnd),f=a(t.onArrayBegin),m=s(t.onArrayEnd),p=c(t.onLiteralValue),b=l(t.onSeparator),_=s(t.onComment),k=l(t.onError),v=n&&n.disallowComments,C=n&&n.allowTrailingComma;function y(){for(;;){const e=r.scan();switch(r.getTokenError()){case 4:L(14);break;case 5:L(15);break;case 3:L(13);break;case 1:v||L(11);break;case 2:L(12);break;case 6:L(16)}switch(e){case 12:case 13:v?L(10):_();break;case 16:L(1);break;case 15:case 14:break;default:return e}}}function L(e,t=[],n=[]){if(k(e),t.length+n.length>0){let e=r.getToken();for(;17!==e;){if(-1!==t.indexOf(e)){y();break}if(-1!==n.indexOf(e))break;e=y()}}}function w(e){const t=r.getTokenValue();return e?p(t):(u(t),i.push(t)),y(),!0}function S(){switch(r.getToken()){case 11:const e=r.getTokenValue();let t=Number(e);isNaN(t)&&(L(2),t=0),p(t);break;case 7:p(null);break;case 8:p(!0);break;case 9:p(!1);break;default:return!1}return y(),!0}function x(){return 10!==r.getToken()?(L(3,[],[2,5]),!1):(w(!1),6===r.getToken()?(b(":"),y(),T()||L(4,[],[2,5])):L(5,[],[2,5]),i.pop(),!0)}function E(){h(),y();let e=!1;for(;2!==r.getToken()&&17!==r.getToken();){if(5===r.getToken()){if(e||L(4,[],[]),b(","),y(),2===r.getToken()&&C)break}else e&&L(6,[],[]);x()||L(4,[],[2,5]),e=!0}return g(),2!==r.getToken()?L(7,[2],[]):y(),!0}function N(){f(),y();let e=!0,t=!1;for(;4!==r.getToken()&&17!==r.getToken();){if(5===r.getToken()){if(t||L(4,[],[]),b(","),y(),4===r.getToken()&&C)break}else t&&L(6,[],[]);e?(i.push(0),e=!1):i[i.length-1]++,T()||L(4,[],[4,5]),t=!0}return m(),e||i.pop(),4!==r.getToken()?L(8,[4],[]):y(),!0}function T(){switch(r.getToken()){case 3:return N();case 1:return E();case 10:return w(!0);default:return S()}}if(y(),17===r.getToken())return!!n.allowEmptyContent||(L(4,[],[]),!1);if(!T())return L(4,[],[]),!1;17!==r.getToken()&&L(9,[],[])}(e,{onObjectBegin:()=>{const e={};a(e),s.push(i),i=e,r=null},onObjectProperty:e=>{r=e},onObjectEnd:()=>{i=s.pop()},onArrayBegin:()=>{const e=[];a(e),s.push(i),i=e,r=null},onArrayEnd:()=>{i=s.pop()},onLiteralValue:a,onError:(e,n,r)=>{t.push({error:e,offset:n,length:r})}},n),i[0]},Zt=function e(t,n,r=!1){if(function(e,t,n=!1){return t>=e.offset&&t<e.offset+e.length||n&&t===e.offset+e.length}(t,n,r)){const i=t.children;if(Array.isArray(i))for(let t=0;t<i.length&&i[t].offset<=n;t++){const s=e(i[t],n,r);if(s)return s}return t}},en=function e(t){if(!t.parent||!t.parent.children)return[];const n=e(t.parent);if("property"===t.parent.type){const e=t.parent.children[0].value;n.push(e)}else if("array"===t.parent.type){const e=t.parent.children.indexOf(t);-1!==e&&n.push(e)}return n},tn=function e(t){switch(t.type){case"array":return t.children.map(e);case"object":const n=Object.create(null);for(let r of t.children){const t=r.children[1];t&&(n[r.children[0].value]=e(t))}return n;case"null":case"string":case"number":case"boolean":return t.value;default:return}};function nn(e,t){if(e===t)return!0;if(null===e||void 0===e||null===t||void 0===t)return!1;if(typeof e!==typeof t)return!1;if("object"!==typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;let n,r;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!nn(e[n],t[n]))return!1}else{const i=[];for(r in e)i.push(r);i.sort();const s=[];for(r in t)s.push(r);if(s.sort(),!nn(i,s))return!1;for(n=0;n<i.length;n++)if(!nn(e[i[n]],t[i[n]]))return!1}return!0}function rn(e){return"number"===typeof e}function sn(e){return"undefined"!==typeof e}function on(e){return"boolean"===typeof e}function an(e){return"string"===typeof e}function ln(e){return"object"===typeof e&&null!==e&&!Array.isArray(e)}function cn(e,t){const n=e.length-t.length;return n>0?e.lastIndexOf(t)===n:0===n&&e===t}function hn(e){let t="";(function(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})(e,"(?i)")&&(e=e.substring(4),t="i");try{return new RegExp(e,t+"u")}catch(n){try{return new RegExp(e,t)}catch(r){return}}}function un(e){let t=0;for(let n=0;n<e.length;n++){t++;const r=e.charCodeAt(n);55296<=r&&r<=56319&&n++}return t}(x=S||(S={}))[x.InvalidSymbol=1]="InvalidSymbol",x[x.InvalidNumberFormat=2]="InvalidNumberFormat",x[x.PropertyNameExpected=3]="PropertyNameExpected",x[x.ValueExpected=4]="ValueExpected",x[x.ColonExpected=5]="ColonExpected",x[x.CommaExpected=6]="CommaExpected",x[x.CloseBraceExpected=7]="CloseBraceExpected",x[x.CloseBracketExpected=8]="CloseBracketExpected",x[x.EndOfFileExpected=9]="EndOfFileExpected",x[x.InvalidCommentToken=10]="InvalidCommentToken",x[x.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",x[x.UnexpectedEndOfString=12]="UnexpectedEndOfString",x[x.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",x[x.InvalidUnicode=14]="InvalidUnicode",x[x.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",x[x.InvalidCharacter=16]="InvalidCharacter",(E||(E={})).is=function(e){return"string"===typeof e},(N||(N={})).is=function(e){return"string"===typeof e},(A=T||(T={})).MIN_VALUE=-2147483648,A.MAX_VALUE=2147483647,A.is=function(e){return"number"===typeof e&&A.MIN_VALUE<=e&&e<=A.MAX_VALUE},(O=I||(I={})).MIN_VALUE=0,O.MAX_VALUE=2147483647,O.is=function(e){return"number"===typeof e&&O.MIN_VALUE<=e&&e<=O.MAX_VALUE},(R=M||(M={})).create=function(e,t){return e===Number.MAX_VALUE&&(e=I.MAX_VALUE),t===Number.MAX_VALUE&&(t=I.MAX_VALUE),{line:e,character:t}},R.is=function(e){let t=e;return dn.objectLiteral(t)&&dn.uinteger(t.line)&&dn.uinteger(t.character)},(B=D||(D={})).create=function(e,t,n,r){if(dn.uinteger(e)&&dn.uinteger(t)&&dn.uinteger(n)&&dn.uinteger(r))return{start:M.create(e,t),end:M.create(n,r)};if(M.is(e)&&M.is(t))return{start:e,end:t};throw new Error(`Range#create called with invalid arguments[${e}, ${t}, ${n}, ${r}]`)},B.is=function(e){let t=e;return dn.objectLiteral(t)&&M.is(t.start)&&M.is(t.end)},(P=F||(F={})).create=function(e,t){return{uri:e,range:t}},P.is=function(e){let t=e;return dn.objectLiteral(t)&&D.is(t.range)&&(dn.string(t.uri)||dn.undefined(t.uri))},(z=V||(V={})).create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},z.is=function(e){let t=e;return dn.objectLiteral(t)&&D.is(t.targetRange)&&dn.string(t.targetUri)&&D.is(t.targetSelectionRange)&&(D.is(t.originSelectionRange)||dn.undefined(t.originSelectionRange))},(q=j||(j={})).create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},q.is=function(e){const t=e;return dn.objectLiteral(t)&&dn.numberRange(t.red,0,1)&&dn.numberRange(t.green,0,1)&&dn.numberRange(t.blue,0,1)&&dn.numberRange(t.alpha,0,1)},(U=W||(W={})).create=function(e,t){return{range:e,color:t}},U.is=function(e){const t=e;return dn.objectLiteral(t)&&D.is(t.range)&&j.is(t.color)},(H=$||($={})).create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},H.is=function(e){const t=e;return dn.objectLiteral(t)&&dn.string(t.label)&&(dn.undefined(t.textEdit)||le.is(t))&&(dn.undefined(t.additionalTextEdits)||dn.typedArray(t.additionalTextEdits,le.is))},(G=K||(K={})).Comment="comment",G.Imports="imports",G.Region="region",(J=Q||(Q={})).create=function(e,t,n,r,i,s){const o={startLine:e,endLine:t};return dn.defined(n)&&(o.startCharacter=n),dn.defined(r)&&(o.endCharacter=r),dn.defined(i)&&(o.kind=i),dn.defined(s)&&(o.collapsedText=s),o},J.is=function(e){const t=e;return dn.objectLiteral(t)&&dn.uinteger(t.startLine)&&dn.uinteger(t.startLine)&&(dn.undefined(t.startCharacter)||dn.uinteger(t.startCharacter))&&(dn.undefined(t.endCharacter)||dn.uinteger(t.endCharacter))&&(dn.undefined(t.kind)||dn.string(t.kind))},(Y=X||(X={})).create=function(e,t){return{location:e,message:t}},Y.is=function(e){let t=e;return dn.defined(t)&&F.is(t.location)&&dn.string(t.message)},(ee=Z||(Z={})).Error=1,ee.Warning=2,ee.Information=3,ee.Hint=4,(ne=te||(te={})).Unnecessary=1,ne.Deprecated=2,(re||(re={})).is=function(e){const t=e;return dn.objectLiteral(t)&&dn.string(t.href)},(se=ie||(ie={})).create=function(e,t,n,r,i,s){let o={range:e,message:t};return dn.defined(n)&&(o.severity=n),dn.defined(r)&&(o.code=r),dn.defined(i)&&(o.source=i),dn.defined(s)&&(o.relatedInformation=s),o},se.is=function(e){var t;let n=e;return dn.defined(n)&&D.is(n.range)&&dn.string(n.message)&&(dn.number(n.severity)||dn.undefined(n.severity))&&(dn.integer(n.code)||dn.string(n.code)||dn.undefined(n.code))&&(dn.undefined(n.codeDescription)||dn.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(dn.string(n.source)||dn.undefined(n.source))&&(dn.undefined(n.relatedInformation)||dn.typedArray(n.relatedInformation,X.is))},(ae=oe||(oe={})).create=function(e,t,...n){let r={title:e,command:t};return dn.defined(n)&&n.length>0&&(r.arguments=n),r},ae.is=function(e){let t=e;return dn.defined(t)&&dn.string(t.title)&&dn.string(t.command)},(ce=le||(le={})).replace=function(e,t){return{range:e,newText:t}},ce.insert=function(e,t){return{range:{start:e,end:e},newText:t}},ce.del=function(e){return{range:e,newText:""}},ce.is=function(e){const t=e;return dn.objectLiteral(t)&&dn.string(t.newText)&&D.is(t.range)},(ue=he||(he={})).create=function(e,t,n){const r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},ue.is=function(e){const t=e;return dn.objectLiteral(t)&&dn.string(t.label)&&(dn.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(dn.string(t.description)||void 0===t.description)},(de||(de={})).is=function(e){const t=e;return dn.string(t)},(fe=ge||(ge={})).replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},fe.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},fe.del=function(e,t){return{range:e,newText:"",annotationId:t}},fe.is=function(e){const t=e;return le.is(t)&&(he.is(t.annotationId)||de.is(t.annotationId))},(pe=me||(me={})).create=function(e,t){return{textDocument:e,edits:t}},pe.is=function(e){let t=e;return dn.defined(t)&&Ne.is(t.textDocument)&&Array.isArray(t.edits)},(_e=be||(be={})).create=function(e,t,n){let r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},_e.is=function(e){let t=e;return t&&"create"===t.kind&&dn.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||dn.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||dn.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||de.is(t.annotationId))},(ve=ke||(ke={})).create=function(e,t,n,r){let i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==r&&(i.annotationId=r),i},ve.is=function(e){let t=e;return t&&"rename"===t.kind&&dn.string(t.oldUri)&&dn.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||dn.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||dn.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||de.is(t.annotationId))},(ye=Ce||(Ce={})).create=function(e,t,n){let r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},ye.is=function(e){let t=e;return t&&"delete"===t.kind&&dn.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||dn.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||dn.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||de.is(t.annotationId))},(Le||(Le={})).is=function(e){let t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((e=>dn.string(e.kind)?be.is(e)||ke.is(e)||Ce.is(e):me.is(e))))},(Se=we||(we={})).create=function(e){return{uri:e}},Se.is=function(e){let t=e;return dn.defined(t)&&dn.string(t.uri)},(Ee=xe||(xe={})).create=function(e,t){return{uri:e,version:t}},Ee.is=function(e){let t=e;return dn.defined(t)&&dn.string(t.uri)&&dn.integer(t.version)},(Te=Ne||(Ne={})).create=function(e,t){return{uri:e,version:t}},Te.is=function(e){let t=e;return dn.defined(t)&&dn.string(t.uri)&&(null===t.version||dn.integer(t.version))},(Ie=Ae||(Ae={})).create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},Ie.is=function(e){let t=e;return dn.defined(t)&&dn.string(t.uri)&&dn.string(t.languageId)&&dn.integer(t.version)&&dn.string(t.text)},(Me=Oe||(Oe={})).PlainText="plaintext",Me.Markdown="markdown",Me.is=function(e){const t=e;return t===Me.PlainText||t===Me.Markdown},(Re||(Re={})).is=function(e){const t=e;return dn.objectLiteral(e)&&Oe.is(t.kind)&&dn.string(t.value)},(Be=De||(De={})).Text=1,Be.Method=2,Be.Function=3,Be.Constructor=4,Be.Field=5,Be.Variable=6,Be.Class=7,Be.Interface=8,Be.Module=9,Be.Property=10,Be.Unit=11,Be.Value=12,Be.Enum=13,Be.Keyword=14,Be.Snippet=15,Be.Color=16,Be.File=17,Be.Reference=18,Be.Folder=19,Be.EnumMember=20,Be.Constant=21,Be.Struct=22,Be.Event=23,Be.Operator=24,Be.TypeParameter=25,(Pe=Fe||(Fe={})).PlainText=1,Pe.Snippet=2,(Ve||(Ve={})).Deprecated=1,(je=ze||(ze={})).create=function(e,t,n){return{newText:e,insert:t,replace:n}},je.is=function(e){const t=e;return t&&dn.string(t.newText)&&D.is(t.insert)&&D.is(t.replace)},(We=qe||(qe={})).asIs=1,We.adjustIndentation=2,(Ue||(Ue={})).is=function(e){const t=e;return t&&(dn.string(t.detail)||void 0===t.detail)&&(dn.string(t.description)||void 0===t.description)},($e||($e={})).create=function(e){return{label:e}},(He||(He={})).create=function(e,t){return{items:e||[],isIncomplete:!!t}},(Ge=Ke||(Ke={})).fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},Ge.is=function(e){const t=e;return dn.string(t)||dn.objectLiteral(t)&&dn.string(t.language)&&dn.string(t.value)},(Qe||(Qe={})).is=function(e){let t=e;return!!t&&dn.objectLiteral(t)&&(Re.is(t.contents)||Ke.is(t.contents)||dn.typedArray(t.contents,Ke.is))&&(void 0===e.range||D.is(e.range))},(Je||(Je={})).create=function(e,t){return t?{label:e,documentation:t}:{label:e}},(Xe||(Xe={})).create=function(e,t,...n){let r={label:e};return dn.defined(t)&&(r.documentation=t),dn.defined(n)?r.parameters=n:r.parameters=[],r},(Ze=Ye||(Ye={})).Text=1,Ze.Read=2,Ze.Write=3,(et||(et={})).create=function(e,t){let n={range:e};return dn.number(t)&&(n.kind=t),n},(nt=tt||(tt={})).File=1,nt.Module=2,nt.Namespace=3,nt.Package=4,nt.Class=5,nt.Method=6,nt.Property=7,nt.Field=8,nt.Constructor=9,nt.Enum=10,nt.Interface=11,nt.Function=12,nt.Variable=13,nt.Constant=14,nt.String=15,nt.Number=16,nt.Boolean=17,nt.Array=18,nt.Object=19,nt.Key=20,nt.Null=21,nt.EnumMember=22,nt.Struct=23,nt.Event=24,nt.Operator=25,nt.TypeParameter=26,(rt||(rt={})).Deprecated=1,(it||(it={})).create=function(e,t,n,r,i){let s={name:e,kind:t,location:{uri:r,range:n}};return i&&(s.containerName=i),s},(st||(st={})).create=function(e,t,n,r){return void 0!==r?{name:e,kind:t,location:{uri:n,range:r}}:{name:e,kind:t,location:{uri:n}}},(at=ot||(ot={})).create=function(e,t,n,r,i,s){let o={name:e,detail:t,kind:n,range:r,selectionRange:i};return void 0!==s&&(o.children=s),o},at.is=function(e){let t=e;return t&&dn.string(t.name)&&dn.number(t.kind)&&D.is(t.range)&&D.is(t.selectionRange)&&(void 0===t.detail||dn.string(t.detail))&&(void 0===t.deprecated||dn.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))},(ct=lt||(lt={})).Empty="",ct.QuickFix="quickfix",ct.Refactor="refactor",ct.RefactorExtract="refactor.extract",ct.RefactorInline="refactor.inline",ct.RefactorRewrite="refactor.rewrite",ct.Source="source",ct.SourceOrganizeImports="source.organizeImports",ct.SourceFixAll="source.fixAll",(ut=ht||(ht={})).Invoked=1,ut.Automatic=2,(gt=dt||(dt={})).create=function(e,t,n){let r={diagnostics:e};return void 0!==t&&null!==t&&(r.only=t),void 0!==n&&null!==n&&(r.triggerKind=n),r},gt.is=function(e){let t=e;return dn.defined(t)&&dn.typedArray(t.diagnostics,ie.is)&&(void 0===t.only||dn.typedArray(t.only,dn.string))&&(void 0===t.triggerKind||t.triggerKind===ht.Invoked||t.triggerKind===ht.Automatic)},(mt=ft||(ft={})).create=function(e,t,n){let r={title:e},i=!0;return"string"===typeof t?(i=!1,r.kind=t):oe.is(t)?r.command=t:r.edit=t,i&&void 0!==n&&(r.kind=n),r},mt.is=function(e){let t=e;return t&&dn.string(t.title)&&(void 0===t.diagnostics||dn.typedArray(t.diagnostics,ie.is))&&(void 0===t.kind||dn.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||oe.is(t.command))&&(void 0===t.isPreferred||dn.boolean(t.isPreferred))&&(void 0===t.edit||Le.is(t.edit))},(bt=pt||(pt={})).create=function(e,t){let n={range:e};return dn.defined(t)&&(n.data=t),n},bt.is=function(e){let t=e;return dn.defined(t)&&D.is(t.range)&&(dn.undefined(t.command)||oe.is(t.command))},(kt=_t||(_t={})).create=function(e,t){return{tabSize:e,insertSpaces:t}},kt.is=function(e){let t=e;return dn.defined(t)&&dn.uinteger(t.tabSize)&&dn.boolean(t.insertSpaces)},(Ct=vt||(vt={})).create=function(e,t,n){return{range:e,target:t,data:n}},Ct.is=function(e){let t=e;return dn.defined(t)&&D.is(t.range)&&(dn.undefined(t.target)||dn.string(t.target))},(Lt=yt||(yt={})).create=function(e,t){return{range:e,parent:t}},Lt.is=function(e){let t=e;return dn.objectLiteral(t)&&D.is(t.range)&&(void 0===t.parent||Lt.is(t.parent))},(St=wt||(wt={})).namespace="namespace",St.type="type",St.class="class",St.enum="enum",St.interface="interface",St.struct="struct",St.typeParameter="typeParameter",St.parameter="parameter",St.variable="variable",St.property="property",St.enumMember="enumMember",St.event="event",St.function="function",St.method="method",St.macro="macro",St.keyword="keyword",St.modifier="modifier",St.comment="comment",St.string="string",St.number="number",St.regexp="regexp",St.operator="operator",St.decorator="decorator",(Et=xt||(xt={})).declaration="declaration",Et.definition="definition",Et.readonly="readonly",Et.static="static",Et.deprecated="deprecated",Et.abstract="abstract",Et.async="async",Et.modification="modification",Et.documentation="documentation",Et.defaultLibrary="defaultLibrary",(Nt||(Nt={})).is=function(e){const t=e;return dn.objectLiteral(t)&&(void 0===t.resultId||"string"===typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"===typeof t.data[0])},(At=Tt||(Tt={})).create=function(e,t){return{range:e,text:t}},At.is=function(e){const t=e;return void 0!==t&&null!==t&&D.is(t.range)&&dn.string(t.text)},(Ot=It||(It={})).create=function(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}},Ot.is=function(e){const t=e;return void 0!==t&&null!==t&&D.is(t.range)&&dn.boolean(t.caseSensitiveLookup)&&(dn.string(t.variableName)||void 0===t.variableName)},(Rt=Mt||(Mt={})).create=function(e,t){return{range:e,expression:t}},Rt.is=function(e){const t=e;return void 0!==t&&null!==t&&D.is(t.range)&&(dn.string(t.expression)||void 0===t.expression)},(Bt=Dt||(Dt={})).create=function(e,t){return{frameId:e,stoppedLocation:t}},Bt.is=function(e){const t=e;return dn.defined(t)&&D.is(e.stoppedLocation)},(Pt=Ft||(Ft={})).Type=1,Pt.Parameter=2,Pt.is=function(e){return 1===e||2===e},(zt=Vt||(Vt={})).create=function(e){return{value:e}},zt.is=function(e){const t=e;return dn.objectLiteral(t)&&(void 0===t.tooltip||dn.string(t.tooltip)||Re.is(t.tooltip))&&(void 0===t.location||F.is(t.location))&&(void 0===t.command||oe.is(t.command))},(qt=jt||(jt={})).create=function(e,t,n){const r={position:e,label:t};return void 0!==n&&(r.kind=n),r},qt.is=function(e){const t=e;return dn.objectLiteral(t)&&M.is(t.position)&&(dn.string(t.label)||dn.typedArray(t.label,Vt.is))&&(void 0===t.kind||Ft.is(t.kind))&&void 0===t.textEdits||dn.typedArray(t.textEdits,le.is)&&(void 0===t.tooltip||dn.string(t.tooltip)||Re.is(t.tooltip))&&(void 0===t.paddingLeft||dn.boolean(t.paddingLeft))&&(void 0===t.paddingRight||dn.boolean(t.paddingRight))},(Wt||(Wt={})).createSnippet=function(e){return{kind:"snippet",value:e}},(Ut||(Ut={})).create=function(e,t,n,r){return{insertText:e,filterText:t,range:n,command:r}},($t||($t={})).create=function(e){return{items:e}},(Kt=Ht||(Ht={})).Invoked=0,Kt.Automatic=1,(Gt||(Gt={})).create=function(e,t){return{range:e,text:t}},(Qt||(Qt={})).create=function(e,t){return{triggerKind:e,selectedCompletionInfo:t}},(Jt||(Jt={})).is=function(e){const t=e;return dn.objectLiteral(t)&&N.is(t.uri)&&dn.string(t.name)},function(e){function t(e,n){if(e.length<=1)return e;const r=e.length/2|0,i=e.slice(0,r),s=e.slice(r);t(i,n),t(s,n);let o=0,a=0,l=0;for(;o<i.length&&a<s.length;){let t=n(i[o],s[a]);e[l++]=t<=0?i[o++]:s[a++]}for(;o<i.length;)e[l++]=i[o++];for(;a<s.length;)e[l++]=s[a++];return e}e.create=function(e,t,n,r){return new gn(e,t,n,r)},e.is=function(e){let t=e;return!!(dn.defined(t)&&dn.string(t.uri)&&(dn.undefined(t.languageId)||dn.string(t.languageId))&&dn.uinteger(t.lineCount)&&dn.func(t.getText)&&dn.func(t.positionAt)&&dn.func(t.offsetAt))},e.applyEdits=function(e,n){let r=e.getText(),i=t(n,((e,t)=>{let n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),s=r.length;for(let t=i.length-1;t>=0;t--){let n=i[t],o=e.offsetAt(n.range.start),a=e.offsetAt(n.range.end);if(!(a<=s))throw new Error("Overlapping edit");r=r.substring(0,o)+n.newText+r.substring(a,r.length),s=o}return r}}(Xt||(Xt={}));var dn,gn=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(void 0===this._lineOffsets){let e=[],t=this._content,n=!0;for(let r=0;r<t.length;r++){n&&(e.push(r),n=!1);let i=t.charAt(r);n="\r"===i||"\n"===i,"\r"===i&&r+1<t.length&&"\n"===t.charAt(r+1)&&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(0===r)return M.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 M.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}};!function(e){const t=Object.prototype.toString;e.defined=function(e){return"undefined"!==typeof e},e.undefined=function(e){return"undefined"===typeof e},e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===t.call(e)},e.number=function(e){return"[object Number]"===t.call(e)},e.numberRange=function(e,n,r){return"[object Number]"===t.call(e)&&n<=e&&e<=r},e.integer=function(e){return"[object Number]"===t.call(e)&&-2147483648<=e&&e<=2147483647},e.uinteger=function(e){return"[object Number]"===t.call(e)&&0<=e&&e<=2147483647},e.func=function(e){return"[object Function]"===t.call(e)},e.objectLiteral=function(e){return null!==e&&"object"===typeof e},e.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)}}(dn||(dn={}));var fn,mn,pn,bn,_n,kn,vn,Cn=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){const t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(t,n){for(let r of t)if(e.isIncremental(r)){const e=wn(r.range),t=this.offsetAt(e.start),n=this.offsetAt(e.end);this._content=this._content.substring(0,t)+r.text+this._content.substring(n,this._content.length);const i=Math.max(e.start.line,0),s=Math.max(e.end.line,0);let o=this._lineOffsets;const a=Ln(r.text,!1,t);if(s-i===a.length)for(let r=0,c=a.length;r<c;r++)o[r+i+1]=a[r];else a.length<1e4?o.splice(i+1,s-i,...a):this._lineOffsets=o=o.slice(0,i+1).concat(a,o.slice(s+1));const l=r.text.length-(n-t);if(0!==l)for(let r=i+1+a.length,c=o.length;r<c;r++)o[r]=o[r]+l}else{if(!e.isFull(r))throw new Error("Unknown change event received");this._content=r.text,this._lineOffsets=void 0}this._version=n}getLineOffsets(){return void 0===this._lineOffsets&&(this._lineOffsets=Ln(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(0===r)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 void 0!==t&&null!==t&&"string"===typeof t.text&&void 0!==t.range&&(void 0===t.rangeLength||"number"===typeof t.rangeLength)}static isFull(e){let t=e;return void 0!==t&&null!==t&&"string"===typeof t.text&&void 0===t.range&&void 0===t.rangeLength}};function yn(e,t){if(e.length<=1)return e;const n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);yn(r,t),yn(i,t);let s=0,o=0,a=0;for(;s<r.length&&o<i.length;){let n=t(r[s],i[o]);e[a++]=n<=0?r[s++]:i[o++]}for(;s<r.length;)e[a++]=r[s++];for(;o<i.length;)e[a++]=i[o++];return e}function Ln(e,t,n=0){const r=t?[n]:[];for(let i=0;i<e.length;i++){let t=e.charCodeAt(i);13!==t&&10!==t||(13===t&&i+1<e.length&&10===e.charCodeAt(i+1)&&i++,r.push(n+i+1))}return r}function wn(e){const 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 Sn(e){const t=wn(e.range);return t!==e.range?{newText:e.newText,range:t}:e}function xn(...e){const t=e[0];let n,r,i;if("string"===typeof t)n=t,r=t,e.splice(0,1),i=e&&"object"===typeof e[0]?e[0]:e;else{if(t instanceof Array){const n=e.slice(1);if(t.length!==n.length+1)throw new 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 xn(r,...n)}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 Nn(r,i)}(mn=fn||(fn={})).create=function(e,t,n,r){return new Cn(e,t,n,r)},mn.update=function(e,t,n){if(e instanceof Cn)return e.update(t,n),e;throw new Error("TextDocument.update: document must be created by TextDocument.create")},mn.applyEdits=function(e,t){let n=e.getText(),r=yn(t.map(Sn),((e,t)=>{let n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),i=0;const s=[];for(const o of r){let t=e.offsetAt(o.range.start);if(t<i)throw new Error("Overlapping edit");t>i&&s.push(n.substring(i,t)),o.newText.length&&s.push(o.newText),i=e.offsetAt(o.range.end)}return s.push(n.substr(i)),s.join("")},(bn=pn||(pn={}))[bn.Undefined=0]="Undefined",bn[bn.EnumValueMismatch=1]="EnumValueMismatch",bn[bn.Deprecated=2]="Deprecated",bn[bn.UnexpectedEndOfComment=257]="UnexpectedEndOfComment",bn[bn.UnexpectedEndOfString=258]="UnexpectedEndOfString",bn[bn.UnexpectedEndOfNumber=259]="UnexpectedEndOfNumber",bn[bn.InvalidUnicode=260]="InvalidUnicode",bn[bn.InvalidEscapeCharacter=261]="InvalidEscapeCharacter",bn[bn.InvalidCharacter=262]="InvalidCharacter",bn[bn.PropertyExpected=513]="PropertyExpected",bn[bn.CommaExpected=514]="CommaExpected",bn[bn.ColonExpected=515]="ColonExpected",bn[bn.ValueExpected=516]="ValueExpected",bn[bn.CommaOrCloseBacketExpected=517]="CommaOrCloseBacketExpected",bn[bn.CommaOrCloseBraceExpected=518]="CommaOrCloseBraceExpected",bn[bn.TrailingComma=519]="TrailingComma",bn[bn.DuplicateKey=520]="DuplicateKey",bn[bn.CommentNotPermitted=521]="CommentNotPermitted",bn[bn.PropertyKeysMustBeDoublequoted=528]="PropertyKeysMustBeDoublequoted",bn[bn.SchemaResolveError=768]="SchemaResolveError",bn[bn.SchemaUnsupportedFeature=769]="SchemaUnsupportedFeature",(kn=_n||(_n={}))[kn.v3=3]="v3",kn[kn.v4=4]="v4",kn[kn.v6=6]="v6",kn[kn.v7=7]="v7",kn[kn.v2019_09=19]="v2019_09",kn[kn.v2020_12=20]="v2020_12",(vn||(vn={})).LATEST={textDocument:{completion:{completionItem:{documentationFormat:[Oe.Markdown,Oe.PlainText],commitCharactersSupport:!0,labelDetailsSupport:!0}}}};var En=/{([^}]+)}/g;function Nn(e,t){return 0===Object.keys(t).length?e:e.replace(En,((e,n)=>t[n]??e))}var Tn,An,In={"color-hex":{errorMessage:xn("Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA."),pattern:/^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/},"date-time":{errorMessage:xn("String is not a RFC3339 date-time."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},date:{errorMessage:xn("String is not a RFC3339 date."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i},time:{errorMessage:xn("String is not a RFC3339 time."),pattern:/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},email:{errorMessage:xn("String is not an e-mail address."),pattern:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}))$/},hostname:{errorMessage:xn("String is not a hostname."),pattern:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i},ipv4:{errorMessage:xn("String is not an IPv4 address."),pattern:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/},ipv6:{errorMessage:xn("String is not an IPv6 address."),pattern:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i}},On=class{constructor(e,t,n=0){this.offset=t,this.length=n,this.parent=e}get children(){return[]}toString(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")}},Mn=class extends On{constructor(e,t){super(e,t),this.type="null",this.value=null}},Rn=class extends On{constructor(e,t,n){super(e,n),this.type="boolean",this.value=t}},Dn=class extends On{constructor(e,t){super(e,t),this.type="array",this.items=[]}get children(){return this.items}},Bn=class extends On{constructor(e,t){super(e,t),this.type="number",this.isInteger=!0,this.value=Number.NaN}},Fn=class extends On{constructor(e,t,n){super(e,t,n),this.type="string",this.value=""}},Pn=class extends On{constructor(e,t,n){super(e,t),this.type="property",this.colonOffset=-1,this.keyNode=n}get children(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]}},Vn=class extends On{constructor(e,t){super(e,t),this.type="object",this.properties=[]}get children(){return this.properties}};function zn(e){return on(e)?e?{}:{not:{}}:e}(An=Tn||(Tn={}))[An.Key=0]="Key",An[An.Enum=1]="Enum";var jn={"http://json-schema.org/draft-03/schema#":_n.v3,"http://json-schema.org/draft-04/schema#":_n.v4,"http://json-schema.org/draft-06/schema#":_n.v6,"http://json-schema.org/draft-07/schema#":_n.v7,"https://json-schema.org/draft/2019-09/schema":_n.v2019_09,"https://json-schema.org/draft/2020-12/schema":_n.v2020_12},qn=class{constructor(e){this.schemaDraft=e}},Wn=class e{constructor(e=-1,t){this.focusOffset=e,this.exclude=t,this.schemas=[]}add(e){this.schemas.push(e)}merge(e){Array.prototype.push.apply(this.schemas,e.schemas)}include(e){return(-1===this.focusOffset||Gn(e,this.focusOffset))&&e!==this.exclude}newSub(){return new e(-1,this.exclude)}},Un=class{constructor(){}get schemas(){return[]}add(e){}merge(e){}include(e){return!0}newSub(){return this}};Un.instance=new Un;var $n=class{constructor(){this.problems=[],this.propertiesMatches=0,this.processedProperties=new Set,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=void 0}hasProblems(){return!!this.problems.length}merge(e){this.problems=this.problems.concat(e.problems),this.propertiesMatches+=e.propertiesMatches,this.propertiesValueMatches+=e.propertiesValueMatches,this.mergeProcessedProperties(e)}mergeEnumValues(e){if(!this.enumValueMatch&&!e.enumValueMatch&&this.enumValues&&e.enumValues){this.enumValues=this.enumValues.concat(e.enumValues);for(const e of this.problems)e.code===pn.EnumValueMismatch&&(e.message=xn("Value is not accepted. Valid values: {0}.",this.enumValues.map((e=>JSON.stringify(e))).join(", ")))}}mergePropertyMatch(e){this.problems=this.problems.concat(e.problems),this.propertiesMatches++,(e.enumValueMatch||!e.hasProblems()&&e.propertiesMatches)&&this.propertiesValueMatches++,e.enumValueMatch&&e.enumValues&&1===e.enumValues.length&&this.primaryValueMatches++}mergeProcessedProperties(e){e.processedProperties.forEach((e=>this.processedProperties.add(e)))}compare(e){const t=this.hasProblems();return t!==e.hasProblems()?t?-1:1:this.enumValueMatch!==e.enumValueMatch?e.enumValueMatch?-1:1:this.primaryValueMatches!==e.primaryValueMatches?this.primaryValueMatches-e.primaryValueMatches:this.propertiesValueMatches!==e.propertiesValueMatches?this.propertiesValueMatches-e.propertiesValueMatches:this.propertiesMatches-e.propertiesMatches}};function Hn(e){return tn(e)}function Kn(e){return en(e)}function Gn(e,t,n=!1){return t>=e.offset&&t<e.offset+e.length||n&&t===e.offset+e.length}var Qn=class{constructor(e,t=[],n=[]){this.root=e,this.syntaxErrors=t,this.comments=n}getNodeFromOffset(e,t=!1){if(this.root)return Zt(this.root,e,t)}visit(e){if(this.root){const t=n=>{let r=e(n);const i=n.children;if(Array.isArray(i))for(let e=0;e<i.length&&r;e++)r=t(i[e]);return r};t(this.root)}}validate(e,t,n=Z.Warning,r){if(this.root&&t){const i=new $n;return Xn(this.root,t,i,Un.instance,new qn(r??Jn(t))),i.problems.map((t=>{const r=D.create(e.positionAt(t.location.offset),e.positionAt(t.location.offset+t.location.length));return ie.create(r,t.message,t.severity??n,t.code)}))}}getMatchingSchemas(e,t=-1,n){if(this.root&&e){const r=new Wn(t,n),i=Jn(e),s=new qn(i);return Xn(this.root,e,new $n,r,s),r.schemas}return[]}};function Jn(e,t=_n.v2020_12){let n=e.$schema;return n?jn[n]??t:t}function Xn(e,t,n,r,i){if(!e||!r.include(e))return;if("property"===e.type)return Xn(e.valueNode,t,n,r,i);const s=e;switch(function(){function e(e){return s.type===e||"integer"===e&&"number"===s.type&&s.isInteger}Array.isArray(t.type)?t.type.some(e)||n.problems.push({location:{offset:s.offset,length:s.length},message:t.errorMessage||xn("Incorrect type. Expected one of {0}.",t.type.join(", "))}):t.type&&(e(t.type)||n.problems.push({location:{offset:s.offset,length:s.length},message:t.errorMessage||xn('Incorrect type. Expected "{0}".',t.type)}));if(Array.isArray(t.allOf))for(const u of t.allOf){const e=new $n,t=r.newSub();Xn(s,zn(u),e,t,i),n.merge(e),r.merge(t)}const o=zn(t.not);if(o){const e=new $n,a=r.newSub();Xn(s,o,e,a,i),e.hasProblems()||n.problems.push({location:{offset:s.offset,length:s.length},message:t.errorMessage||xn("Matches a schema that is not allowed.")});for(const t of a.schemas)t.inverted=!t.inverted,r.add(t)}const a=(e,t)=>{const o=[];let a;for(const n of e){const e=zn(n),l=new $n,c=r.newSub();if(Xn(s,e,l,c,i),l.hasProblems()||o.push(e),a)if(t||l.hasProblems()||a.validationResult.hasProblems()){const t=l.compare(a.validationResult);t>0?a={schema:e,validationResult:l,matchingSchemas:c}:0===t&&(a.matchingSchemas.merge(c),a.validationResult.mergeEnumValues(l))}else a.matchingSchemas.merge(c),a.validationResult.propertiesMatches+=l.propertiesMatches,a.validationResult.propertiesValueMatches+=l.propertiesValueMatches,a.validationResult.mergeProcessedProperties(l);else a={schema:e,validationResult:l,matchingSchemas:c}}return o.length>1&&t&&n.problems.push({location:{offset:s.offset,length:1},message:xn("Matches multiple schemas when only one must validate.")}),a&&(n.merge(a.validationResult),r.merge(a.matchingSchemas)),o.length};Array.isArray(t.anyOf)&&a(t.anyOf,!1);Array.isArray(t.oneOf)&&a(t.oneOf,!0);const l=e=>{const t=new $n,o=r.newSub();Xn(s,zn(e),t,o,i),n.merge(t),r.merge(o)},c=zn(t.if);c&&((e,t,o)=>{const a=zn(e),c=new $n,h=r.newSub();Xn(s,a,c,h,i),r.merge(h),n.mergeProcessedProperties(c),c.hasProblems()?o&&l(o):t&&l(t)})(c,zn(t.then),zn(t.else));if(Array.isArray(t.enum)){const e=Hn(s);let r=!1;for(const n of t.enum)if(nn(e,n)){r=!0;break}n.enumValues=t.enum,n.enumValueMatch=r,r||n.problems.push({location:{offset:s.offset,length:s.length},code:pn.EnumValueMismatch,message:t.errorMessage||xn("Value is not accepted. Valid values: {0}.",t.enum.map((e=>JSON.stringify(e))).join(", "))})}if(sn(t.const)){nn(Hn(s),t.const)?n.enumValueMatch=!0:(n.problems.push({location:{offset:s.offset,length:s.length},code:pn.EnumValueMismatch,message:t.errorMessage||xn("Value must be {0}.",JSON.stringify(t.const))}),n.enumValueMatch=!1),n.enumValues=[t.const]}let h=t.deprecationMessage;if(h||t.deprecated){h=h||xn("Value is deprecated");let e="property"===s.parent?.type?s.parent:s;n.problems.push({location:{offset:e.offset,length:e.length},severity:Z.Warning,message:h,code:pn.Deprecated})}}(),s.type){case"object":!function(e){const s=Object.create(null),o=new Set;for(const t of e.properties){const e=t.keyNode.value;s[e]=t.valueNode,o.add(e)}if(Array.isArray(t.required))for(const r of t.required)if(!s[r]){const t=e.parent&&"property"===e.parent.type&&e.parent.keyNode,i=t?{offset:t.offset,length:t.length}:{offset:e.offset,length:1};n.problems.push({location:i,message:xn('Missing property "{0}".',r)})}const a=e=>{o.delete(e),n.processedProperties.add(e)};if(t.properties)for(const d of Object.keys(t.properties)){a(d);const e=t.properties[d],o=s[d];if(o)if(on(e))if(e)n.propertiesMatches++,n.propertiesValueMatches++;else{const e=o.parent;n.problems.push({location:{offset:e.keyNode.offset,length:e.keyNode.length},message:t.errorMessage||xn("Property {0} is not allowed.",d)})}else{const t=new $n;Xn(o,e,t,r,i),n.mergePropertyMatch(t)}}if(t.patternProperties)for(const d of Object.keys(t.patternProperties)){const e=hn(d);if(e){const l=[];for(const a of o)if(e.test(a)){l.push(a);const e=s[a];if(e){const s=t.patternProperties[d];if(on(s))if(s)n.propertiesMatches++,n.propertiesValueMatches++;else{const r=e.parent;n.problems.push({location:{offset:r.keyNode.offset,length:r.keyNode.length},message:t.errorMessage||xn("Property {0} is not allowed.",a)})}else{const t=new $n;Xn(e,s,t,r,i),n.mergePropertyMatch(t)}}}l.forEach(a)}}const l=t.additionalProperties;if(void 0!==l)for(const d of o){a(d);const e=s[d];if(e)if(!1===l){const r=e.parent;n.problems.push({location:{offset:r.keyNode.offset,length:r.keyNode.length},message:t.errorMessage||xn("Property {0} is not allowed.",d)})}else if(!0!==l){const t=new $n;Xn(e,l,t,r,i),n.mergePropertyMatch(t)}}const c=t.unevaluatedProperties;if(void 0!==c){const e=[];for(const a of o)if(!n.processedProperties.has(a)){e.push(a);const o=s[a];if(o)if(!1===c){const e=o.parent;n.problems.push({location:{offset:e.keyNode.offset,length:e.keyNode.length},message:t.errorMessage||xn("Property {0} is not allowed.",a)})}else if(!0!==c){const e=new $n;Xn(o,c,e,r,i),n.mergePropertyMatch(e)}}e.forEach(a)}rn(t.maxProperties)&&e.properties.length>t.maxProperties&&n.problems.push({location:{offset:e.offset,length:e.length},message:xn("Object has more properties than limit of {0}.",t.maxProperties)});rn(t.minProperties)&&e.properties.length<t.minProperties&&n.problems.push({location:{offset:e.offset,length:e.length},message:xn("Object has fewer properties than the required number of {0}",t.minProperties)});if(t.dependentRequired)for(const n in t.dependentRequired){const e=s[n],r=t.dependentRequired[n];e&&Array.isArray(r)&&u(n,r)}if(t.dependentSchemas)for(const n in t.dependentSchemas){const e=s[n],r=t.dependentSchemas[n];e&&ln(r)&&u(n,r)}if(t.dependencies)for(const n in t.dependencies){s[n]&&u(n,t.dependencies[n])}const h=zn(t.propertyNames);if(h)for(const t of e.properties){const e=t.keyNode;e&&Xn(e,h,n,Un.instance,i)}function u(t,o){if(Array.isArray(o))for(const r of o)s[r]?n.propertiesValueMatches++:n.problems.push({location:{offset:e.offset,length:e.length},message:xn("Object is missing property {0} required by property {1}.",r,t)});else{const t=zn(o);if(t){const s=new $n;Xn(e,t,s,r,i),n.mergePropertyMatch(s)}}}}(s);break;case"array":!function(e){let s,o;i.schemaDraft>=_n.v2020_12?(s=t.prefixItems,o=Array.isArray(t.items)?void 0:t.items):(s=Array.isArray(t.items)?t.items:void 0,o=Array.isArray(t.items)?t.additionalItems:t.items);let a=0;if(void 0!==s){const t=Math.min(s.length,e.items.length);for(;a<t;a++){const t=zn(s[a]),o=new $n,l=e.items[a];l&&(Xn(l,t,o,r,i),n.mergePropertyMatch(o)),n.processedProperties.add(String(a))}}if(void 0!==o&&a<e.items.length)if("boolean"===typeof o)for(!1===o&&n.problems.push({location:{offset:e.offset,length:e.length},message:xn("Array has too many items according to schema. Expected {0} or fewer.",a)});a<e.items.length;a++)n.processedProperties.add(String(a)),n.propertiesValueMatches++;else for(;a<e.items.length;a++){const t=new $n;Xn(e.items[a],o,t,r,i),n.mergePropertyMatch(t),n.processedProperties.add(String(a))}const l=zn(t.contains);if(l){let r=0;for(let t=0;t<e.items.length;t++){const s=e.items[t],o=new $n;Xn(s,l,o,Un.instance,i),o.hasProblems()||(r++,i.schemaDraft>=_n.v2020_12&&n.processedProperties.add(String(t)))}0!==r||rn(t.minContains)||n.problems.push({location:{offset:e.offset,length:e.length},message:t.errorMessage||xn("Array does not contain required item.")}),rn(t.minContains)&&r<t.minContains&&n.problems.push({location:{offset:e.offset,length:e.length},message:t.errorMessage||xn("Array has too few items that match the contains contraint. Expected {0} or more.",t.minContains)}),rn(t.maxContains)&&r>t.maxContains&&n.problems.push({location:{offset:e.offset,length:e.length},message:t.errorMessage||xn("Array has too many items that match the contains contraint. Expected {0} or less.",t.maxContains)})}const c=t.unevaluatedItems;if(void 0!==c)for(let h=0;h<e.items.length;h++){if(!n.processedProperties.has(String(h)))if(!1===c)n.problems.push({location:{offset:e.offset,length:e.length},message:xn("Item does not match any validation rule from the array.")});else{const s=new $n;Xn(e.items[h],t.unevaluatedItems,s,r,i),n.mergePropertyMatch(s)}n.processedProperties.add(String(h)),n.propertiesValueMatches++}rn(t.minItems)&&e.items.length<t.minItems&&n.problems.push({location:{offset:e.offset,length:e.length},message:xn("Array has too few items. Expected {0} or more.",t.minItems)});rn(t.maxItems)&&e.items.length>t.maxItems&&n.problems.push({location:{offset:e.offset,length:e.length},message:xn("Array has too many items. Expected {0} or fewer.",t.maxItems)});if(!0===t.uniqueItems){let t=function(){for(let e=0;e<r.length-1;e++){const t=r[e];for(let n=e+1;n<r.length;n++)if(nn(t,r[n]))return!0}return!1};const r=Hn(e);t()&&n.problems.push({location:{offset:e.offset,length:e.length},message:xn("Array has duplicate items.")})}}(s);break;case"string":!function(e){rn(t.minLength)&&un(e.value)<t.minLength&&n.problems.push({location:{offset:e.offset,length:e.length},message:xn("String is shorter than the minimum length of {0}.",t.minLength)});rn(t.maxLength)&&un(e.value)>t.maxLength&&n.problems.push({location:{offset:e.offset,length:e.length},message:xn("String is longer than the maximum length of {0}.",t.maxLength)});if(an(t.pattern)){const r=hn(t.pattern);r?.test(e.value)||n.problems.push({location:{offset:e.offset,length:e.length},message:t.patternErrorMessage||t.errorMessage||xn('String does not match the pattern of "{0}".',t.pattern)})}if(t.format)switch(t.format){case"uri":case"uri-reference":{let r;if(e.value){const n=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(e.value);n?n[2]||"uri"!==t.format||(r=xn("URI with a scheme is expected.")):r=xn("URI is expected.")}else r=xn("URI expected.");r&&n.problems.push({location:{offset:e.offset,length:e.length},message:t.patternErrorMessage||t.errorMessage||xn("String is not a URI: {0}",r)})}break;case"color-hex":case"date-time":case"date":case"time":case"email":case"hostname":case"ipv4":case"ipv6":const r=In[t.format];e.value&&r.pattern.exec(e.value)||n.problems.push({location:{offset:e.offset,length:e.length},message:t.patternErrorMessage||t.errorMessage||r.errorMessage})}}(s);break;case"number":!function(e){const r=e.value;function i(e){const t=/^(-?\d+)(?:\.(\d+))?(?:e([-+]\d+))?$/.exec(e.toString());return t&&{value:Number(t[1]+(t[2]||"")),multiplier:(t[2]?.length||0)-(parseInt(t[3])||0)}}if(rn(t.multipleOf)){let s=-1;if(Number.isInteger(t.multipleOf))s=r%t.multipleOf;else{let e=i(t.multipleOf),n=i(r);if(e&&n){const t=10**Math.abs(n.multiplier-e.multiplier);n.multiplier<e.multiplier?n.value*=t:e.value*=t,s=n.value%e.value}}0!==s&&n.problems.push({location:{offset:e.offset,length:e.length},message:xn("Value is not divisible by {0}.",t.multipleOf)})}function s(e,t){return rn(t)?t:on(t)&&t?e:void 0}function o(e,t){if(!on(t)||!t)return e}const a=s(t.minimum,t.exclusiveMinimum);rn(a)&&r<=a&&n.problems.push({location:{offset:e.offset,length:e.length},message:xn("Value is below the exclusive minimum of {0}.",a)});const l=s(t.maximum,t.exclusiveMaximum);rn(l)&&r>=l&&n.problems.push({location:{offset:e.offset,length:e.length},message:xn("Value is above the exclusive maximum of {0}.",l)});const c=o(t.minimum,t.exclusiveMinimum);rn(c)&&r<c&&n.problems.push({location:{offset:e.offset,length:e.length},message:xn("Value is below the minimum of {0}.",c)});const h=o(t.maximum,t.exclusiveMaximum);rn(h)&&r>h&&n.problems.push({location:{offset:e.offset,length:e.length},message:xn("Value is above the maximum of {0}.",h)})}(s)}r.add({node:s,schema:t})}function Yn(e,t){const n=[];let r=-1;const i=e.getText(),s=w(i,!1),o=t&&t.collectComments?[]:void 0;function a(){for(;;){const t=s.scan();switch(h(),t){case 12:case 13:Array.isArray(o)&&o.push(D.create(e.positionAt(s.getTokenOffset()),e.positionAt(s.getTokenOffset()+s.getTokenLength())));break;case 15:case 14:break;default:return t}}}function l(t,i,s,o,a=Z.Error){if(0===n.length||s!==r){const l=D.create(e.positionAt(s),e.positionAt(o));n.push(ie.create(l,t,a,i,e.languageId)),r=s}}function c(e,t,n=void 0,r=[],o=[]){let c=s.getTokenOffset(),h=s.getTokenOffset()+s.getTokenLength();if(c===h&&c>0){for(c--;c>0&&/\s/.test(i.charAt(c));)c--;h=c+1}if(l(e,t,c,h),n&&u(n,!1),r.length+o.length>0){let e=s.getToken();for(;17!==e;){if(-1!==r.indexOf(e)){a();break}if(-1!==o.indexOf(e))break;e=a()}}return n}function h(){switch(s.getTokenError()){case 4:return c(xn("Invalid unicode sequence in string."),pn.InvalidUnicode),!0;case 5:return c(xn("Invalid escape character in string."),pn.InvalidEscapeCharacter),!0;case 3:return c(xn("Unexpected end of number."),pn.UnexpectedEndOfNumber),!0;case 1:return c(xn("Unexpected end of comment."),pn.UnexpectedEndOfComment),!0;case 2:return c(xn("Unexpected end of string."),pn.UnexpectedEndOfString),!0;case 6:return c(xn("Invalid characters in string. Control characters must be escaped."),pn.InvalidCharacter),!0}return!1}function u(e,t){return e.length=s.getTokenOffset()+s.getTokenLength()-e.offset,t&&a(),e}const d=new Fn(void 0,0,0);function g(t,n){const r=new Pn(t,s.getTokenOffset(),d);let i=f(r);if(!i){if(16!==s.getToken())return;{c(xn("Property keys must be doublequoted"),pn.PropertyKeysMustBeDoublequoted);const e=new Fn(r,s.getTokenOffset(),s.getTokenLength());e.value=s.getTokenValue(),i=e,a()}}if(r.keyNode=i,"//"!==i.value){const e=n[i.value];e?(l(xn("Duplicate object key"),pn.DuplicateKey,r.keyNode.offset,r.keyNode.offset+r.keyNode.length,Z.Warning),ln(e)&&l(xn("Duplicate object key"),pn.DuplicateKey,e.keyNode.offset,e.keyNode.offset+e.keyNode.length,Z.Warning),n[i.value]=!0):n[i.value]=r}if(6===s.getToken())r.colonOffset=s.getTokenOffset(),a();else if(c(xn("Colon expected"),pn.ColonExpected),10===s.getToken()&&e.positionAt(i.offset+i.length).line<e.positionAt(s.getTokenOffset()).line)return r.length=i.length,r;const o=m(r);return o?(r.valueNode=o,r.length=o.offset+o.length-r.offset,r):c(xn("Value expected"),pn.ValueExpected,r,[],[2,5])}function f(e){if(10!==s.getToken())return;const t=new Fn(e,s.getTokenOffset());return t.value=s.getTokenValue(),u(t,!0)}function m(e){return function(e){if(3!==s.getToken())return;const t=new Dn(e,s.getTokenOffset());a();let n=!1;for(;4!==s.getToken()&&17!==s.getToken();){if(5===s.getToken()){n||c(xn("Value expected"),pn.ValueExpected);const e=s.getTokenOffset();if(a(),4===s.getToken()){n&&l(xn("Trailing comma"),pn.TrailingComma,e,e+1);continue}}else n&&c(xn("Expected comma"),pn.CommaExpected);const e=m(t);e?t.items.push(e):c(xn("Value expected"),pn.ValueExpected,void 0,[],[4,5]),n=!0}return 4!==s.getToken()?c(xn("Expected comma or closing bracket"),pn.CommaOrCloseBacketExpected,t):u(t,!0)}(e)||function(e){if(1!==s.getToken())return;const t=new Vn(e,s.getTokenOffset()),n=Object.create(null);a();let r=!1;for(;2!==s.getToken()&&17!==s.getToken();){if(5===s.getToken()){r||c(xn("Property expected"),pn.PropertyExpected);const e=s.getTokenOffset();if(a(),2===s.getToken()){r&&l(xn("Trailing comma"),pn.TrailingComma,e,e+1);continue}}else r&&c(xn("Expected comma"),pn.CommaExpected);const e=g(t,n);e?t.properties.push(e):c(xn("Property expected"),pn.PropertyExpected,void 0,[],[2,5]),r=!0}return 2!==s.getToken()?c(xn("Expected comma or closing brace"),pn.CommaOrCloseBraceExpected,t):u(t,!0)}(e)||f(e)||function(e){if(11!==s.getToken())return;const t=new Bn(e,s.getTokenOffset());if(0===s.getTokenError()){const e=s.getTokenValue();try{const n=JSON.parse(e);if(!rn(n))return c(xn("Invalid number format."),pn.Undefined,t);t.value=n}catch(n){return c(xn("Invalid number format."),pn.Undefined,t)}t.isInteger=-1===e.indexOf(".")}return u(t,!0)}(e)||function(e){switch(s.getToken()){case 7:return u(new Mn(e,s.getTokenOffset()),!0);case 8:return u(new Rn(e,!0,s.getTokenOffset()),!0);case 9:return u(new Rn(e,!1,s.getTokenOffset()),!0);default:return}}(e)}let p;return 17!==a()&&(p=m(p),p?17!==s.getToken()&&c(xn("End of file expected."),pn.Undefined):c(xn("Expected a JSON object, array or literal."),pn.Undefined)),new Qn(p,n,o)}function Zn(e,t,n){if(null!==e&&"object"===typeof e){const r=t+"\t";if(Array.isArray(e)){if(0===e.length)return"[]";let i="[\n";for(let t=0;t<e.length;t++)i+=r+Zn(e[t],r,n),t<e.length-1&&(i+=","),i+="\n";return i+=t+"]",i}{const i=Object.keys(e);if(0===i.length)return"{}";let s="{\n";for(let t=0;t<i.length;t++){const o=i[t];s+=r+JSON.stringify(o)+": "+Zn(e[o],r,n),t<i.length-1&&(s+=","),s+="\n"}return s+=t+"}",s}}return n(e)}var er=class{constructor(e,t=[],n=Promise,r={}){this.schemaService=e,this.contributions=t,this.promiseConstructor=n,this.clientCapabilities=r}doResolve(e){for(let t=this.contributions.length-1;t>=0;t--){const n=this.contributions[t].resolveCompletion;if(n){const t=n(e);if(t)return t}}return this.promiseConstructor.resolve(e)}doComplete(e,t,n){const r={items:[],isIncomplete:!1},i=e.getText(),s=e.offsetAt(t);let o=n.getNodeFromOffset(s,!0);if(this.isInComment(e,o?o.offset:0,s))return Promise.resolve(r);if(o&&s===o.offset+o.length&&s>0){const e=i[s-1];("object"===o.type&&"}"===e||"array"===o.type&&"]"===e)&&(o=o.parent)}const a=this.getCurrentWord(e,s);let l;if(!o||"string"!==o.type&&"number"!==o.type&&"boolean"!==o.type&&"null"!==o.type){let n=s-a.length;n>0&&'"'===i[n-1]&&n--,l=D.create(e.positionAt(n),t)}else l=D.create(e.positionAt(o.offset),e.positionAt(o.offset+o.length));const c=new Map,h={add:e=>{let t=e.label;const n=c.get(t);if(n)n.documentation||(n.documentation=e.documentation),n.detail||(n.detail=e.detail),n.labelDetails||(n.labelDetails=e.labelDetails);else{if(t=t.replace(/[\n]/g,"\u21b5"),t.length>60){const e=t.substr(0,57).trim()+"...";c.has(e)||(t=e)}e.textEdit=le.replace(l,e.insertText),e.label=t,c.set(t,e),r.items.push(e)}},setAsIncomplete:()=>{r.isIncomplete=!0},error:e=>{console.error(e)},getNumberOfProposals:()=>r.items.length};return this.schemaService.getSchemaForResource(e.uri,n).then((t=>{const u=[];let d,g=!0,f="";if(o&&"string"===o.type){const e=o.parent;e&&"property"===e.type&&e.keyNode===o&&(g=!e.valueNode,d=e,f=i.substr(o.offset+1,o.length-2),e&&(o=e.parent))}if(o&&"object"===o.type){if(o.offset===s)return r;o.properties.forEach((e=>{d&&d===e||c.set(e.keyNode.value,$e.create("__"))}));let m="";g&&(m=this.evaluateSeparatorAfter(e,e.offsetAt(l.end))),t?this.getPropertyCompletions(t,n,o,g,m,h):this.getSchemaLessPropertyCompletions(n,o,f,h);const p=Kn(o);this.contributions.forEach((t=>{const n=t.collectPropertyCompletions(e.uri,p,a,g,""===m,h);n&&u.push(n)})),!t&&a.length>0&&'"'!==i.charAt(s-a.length-1)&&(h.add({kind:De.Property,label:this.getLabelForValue(a),insertText:this.getInsertTextForProperty(a,void 0,!1,m),insertTextFormat:Fe.Snippet,documentation:""}),h.setAsIncomplete())}const m={};return t?this.getValueCompletions(t,n,o,s,e,h,m):this.getSchemaLessValueCompletions(n,o,s,e,h),this.contributions.length>0&&this.getContributedValueCompletions(n,o,s,e,h,u),this.promiseConstructor.all(u).then((()=>{if(0===h.getNumberOfProposals()){let t=s;!o||"string"!==o.type&&"number"!==o.type&&"boolean"!==o.type&&"null"!==o.type||(t=o.offset+o.length);const n=this.evaluateSeparatorAfter(e,t);this.addFillerValueCompletions(m,n,h)}return r}))}))}getPropertyCompletions(e,t,n,r,i,s){t.getMatchingSchemas(e.schema,n.offset).forEach((e=>{if(e.node===n&&!e.inverted){const t=e.schema.properties;t&&Object.keys(t).forEach((e=>{const n=t[e];if("object"===typeof n&&!n.deprecationMessage&&!n.doNotSuggest){const t={kind:De.Property,label:e,insertText:this.getInsertTextForProperty(e,n,r,i),insertTextFormat:Fe.Snippet,filterText:this.getFilterTextForValue(e),documentation:this.fromMarkup(n.markdownDescription)||n.description||""};void 0!==n.suggestSortText&&(t.sortText=n.suggestSortText),t.insertText&&cn(t.insertText,`$1${i}`)&&(t.command={title:"Suggest",command:"editor.action.triggerSuggest"}),s.add(t)}}));const n=e.schema.propertyNames;if("object"===typeof n&&!n.deprecationMessage&&!n.doNotSuggest){const e=(e,t=void 0)=>{const o={kind:De.Property,label:e,insertText:this.getInsertTextForProperty(e,void 0,r,i),insertTextFormat:Fe.Snippet,filterText:this.getFilterTextForValue(e),documentation:t||this.fromMarkup(n.markdownDescription)||n.description||""};void 0!==n.suggestSortText&&(o.sortText=n.suggestSortText),o.insertText&&cn(o.insertText,`$1${i}`)&&(o.command={title:"Suggest",command:"editor.action.triggerSuggest"}),s.add(o)};if(n.enum)for(let t=0;t<n.enum.length;t++){let r;n.markdownEnumDescriptions&&t<n.markdownEnumDescriptions.length?r=this.fromMarkup(n.markdownEnumDescriptions[t]):n.enumDescriptions&&t<n.enumDescriptions.length&&(r=n.enumDescriptions[t]),e(n.enum[t],r)}n.const&&e(n.const)}}}))}getSchemaLessPropertyCompletions(e,t,n,r){const i=e=>{e.properties.forEach((e=>{const t=e.keyNode.value;r.add({kind:De.Property,label:t,insertText:this.getInsertTextForValue(t,""),insertTextFormat:Fe.Snippet,filterText:this.getFilterTextForValue(t),documentation:""})}))};if(t.parent)if("property"===t.parent.type){const n=t.parent.keyNode.value;e.visit((e=>("property"===e.type&&e!==t.parent&&e.keyNode.value===n&&e.valueNode&&"object"===e.valueNode.type&&i(e.valueNode),!0)))}else"array"===t.parent.type&&t.parent.items.forEach((e=>{"object"===e.type&&e!==t&&i(e)}));else"object"===t.type&&r.add({kind:De.Property,label:"$schema",insertText:this.getInsertTextForProperty("$schema",void 0,!0,""),insertTextFormat:Fe.Snippet,documentation:"",filterText:this.getFilterTextForValue("$schema")})}getSchemaLessValueCompletions(e,t,n,r,i){let s=n;if(!t||"string"!==t.type&&"number"!==t.type&&"boolean"!==t.type&&"null"!==t.type||(s=t.offset+t.length,t=t.parent),!t)return i.add({kind:this.getSuggestionKind("object"),label:"Empty object",insertText:this.getInsertTextForValue({},""),insertTextFormat:Fe.Snippet,documentation:""}),void i.add({kind:this.getSuggestionKind("array"),label:"Empty array",insertText:this.getInsertTextForValue([],""),insertTextFormat:Fe.Snippet,documentation:""});const o=this.evaluateSeparatorAfter(r,s),a=e=>{e.parent&&!Gn(e.parent,n,!0)&&i.add({kind:this.getSuggestionKind(e.type),label:this.getLabelTextForMatchingNode(e,r),insertText:this.getInsertTextForMatchingNode(e,r,o),insertTextFormat:Fe.Snippet,documentation:""}),"boolean"===e.type&&this.addBooleanValueCompletion(!e.value,o,i)};if("property"===t.type&&n>(t.colonOffset||0)){const r=t.valueNode;if(r&&(n>r.offset+r.length||"object"===r.type||"array"===r.type))return;const s=t.keyNode.value;e.visit((e=>("property"===e.type&&e.keyNode.value===s&&e.valueNode&&a(e.valueNode),!0))),"$schema"===s&&t.parent&&!t.parent.parent&&this.addDollarSchemaCompletions(o,i)}if("array"===t.type)if(t.parent&&"property"===t.parent.type){const n=t.parent.keyNode.value;e.visit((e=>("property"===e.type&&e.keyNode.value===n&&e.valueNode&&"array"===e.valueNode.type&&e.valueNode.items.forEach(a),!0)))}else t.items.forEach(a)}getValueCompletions(e,t,n,r,i,s,o){let a,l,c=r;if(!n||"string"!==n.type&&"number"!==n.type&&"boolean"!==n.type&&"null"!==n.type||(c=n.offset+n.length,l=n,n=n.parent),n){if("property"===n.type&&r>(n.colonOffset||0)){const e=n.valueNode;if(e&&r>e.offset+e.length)return;a=n.keyNode.value,n=n.parent}if(n&&(void 0!==a||"array"===n.type)){const h=this.evaluateSeparatorAfter(i,c),u=t.getMatchingSchemas(e.schema,n.offset,l);for(const e of u)if(e.node===n&&!e.inverted&&e.schema){if("array"===n.type&&e.schema.items){let t=s;if(e.schema.uniqueItems){const e=new Set;n.children.forEach((t=>{"array"!==t.type&&"object"!==t.type&&e.add(this.getLabelForValue(Hn(t)))})),t={...s,add(t){e.has(t.label)||s.add(t)}}}if(Array.isArray(e.schema.items)){const s=this.findItemAtOffset(n,i,r);s<e.schema.items.length&&this.addSchemaValueCompletions(e.schema.items[s],h,t,o)}else this.addSchemaValueCompletions(e.schema.items,h,t,o)}if(void 0!==a){let t=!1;if(e.schema.properties){const n=e.schema.properties[a];n&&(t=!0,this.addSchemaValueCompletions(n,h,s,o))}if(e.schema.patternProperties&&!t)for(const n of Object.keys(e.schema.patternProperties)){const r=hn(n);if(r?.test(a)){t=!0;const r=e.schema.patternProperties[n];this.addSchemaValueCompletions(r,h,s,o)}}if(e.schema.additionalProperties&&!t){const t=e.schema.additionalProperties;this.addSchemaValueCompletions(t,h,s,o)}}}"$schema"!==a||n.parent||this.addDollarSchemaCompletions(h,s),o.boolean&&(this.addBooleanValueCompletion(!0,h,s),this.addBooleanValueCompletion(!1,h,s)),o.null&&this.addNullValueCompletion(h,s)}}else this.addSchemaValueCompletions(e.schema,"",s,o)}getContributedValueCompletions(e,t,n,r,i,s){if(t){if("string"!==t.type&&"number"!==t.type&&"boolean"!==t.type&&"null"!==t.type||(t=t.parent),t&&"property"===t.type&&n>(t.colonOffset||0)){const e=t.keyNode.value,o=t.valueNode;if((!o||n<=o.offset+o.length)&&t.parent){const n=Kn(t.parent);this.contributions.forEach((t=>{const o=t.collectValueCompletions(r.uri,n,e,i);o&&s.push(o)}))}}}else this.contributions.forEach((e=>{const t=e.collectDefaultCompletions(r.uri,i);t&&s.push(t)}))}addSchemaValueCompletions(e,t,n,r){"object"===typeof e&&(this.addEnumValueCompletions(e,t,n),this.addDefaultValueCompletions(e,t,n),this.collectTypes(e,r),Array.isArray(e.allOf)&&e.allOf.forEach((e=>this.addSchemaValueCompletions(e,t,n,r))),Array.isArray(e.anyOf)&&e.anyOf.forEach((e=>this.addSchemaValueCompletions(e,t,n,r))),Array.isArray(e.oneOf)&&e.oneOf.forEach((e=>this.addSchemaValueCompletions(e,t,n,r))))}addDefaultValueCompletions(e,t,n,r=0){let i=!1;if(sn(e.default)){let s=e.type,o=e.default;for(let e=r;e>0;e--)o=[o],s="array";const a={kind:this.getSuggestionKind(s),label:this.getLabelForValue(o),insertText:this.getInsertTextForValue(o,t),insertTextFormat:Fe.Snippet};this.doesSupportsLabelDetails()?a.labelDetails={description:xn("Default value")}:a.detail=xn("Default value"),n.add(a),i=!0}Array.isArray(e.examples)&&e.examples.forEach((s=>{let o=e.type,a=s;for(let e=r;e>0;e--)a=[a],o="array";n.add({kind:this.getSuggestionKind(o),label:this.getLabelForValue(a),insertText:this.getInsertTextForValue(a,t),insertTextFormat:Fe.Snippet}),i=!0})),Array.isArray(e.defaultSnippets)&&e.defaultSnippets.forEach((s=>{let o,a,l=e.type,c=s.body,h=s.label;if(sn(c)){let n=e.type;for(let e=r;e>0;e--)c=[c],n="array";o=this.getInsertTextForSnippetValue(c,t),a=this.getFilterTextForSnippetValue(c),h=h||this.getLabelForSnippetValue(c)}else{if("string"!==typeof s.bodyText)return;{let e="",n="",i="";for(let t=r;t>0;t--)e=e+i+"[\n",n=n+"\n"+i+"]",i+="\t",l="array";o=e+i+s.bodyText.split("\n").join("\n"+i)+n+t,h=h||o,a=o.replace(/[\n]/g,"")}}n.add({kind:this.getSuggestionKind(l),label:h,documentation:this.fromMarkup(s.markdownDescription)||s.description,insertText:o,insertTextFormat:Fe.Snippet,filterText:a}),i=!0})),!i&&"object"===typeof e.items&&!Array.isArray(e.items)&&r<5&&this.addDefaultValueCompletions(e.items,t,n,r+1)}addEnumValueCompletions(e,t,n){if(sn(e.const)&&n.add({kind:this.getSuggestionKind(e.type),label:this.getLabelForValue(e.const),insertText:this.getInsertTextForValue(e.const,t),insertTextFormat:Fe.Snippet,documentation:this.fromMarkup(e.markdownDescription)||e.description}),Array.isArray(e.enum))for(let r=0,i=e.enum.length;r<i;r++){const i=e.enum[r];let s=this.fromMarkup(e.markdownDescription)||e.description;e.markdownEnumDescriptions&&r<e.markdownEnumDescriptions.length&&this.doesSupportMarkdown()?s=this.fromMarkup(e.markdownEnumDescriptions[r]):e.enumDescriptions&&r<e.enumDescriptions.length&&(s=e.enumDescriptions[r]),n.add({kind:this.getSuggestionKind(e.type),label:this.getLabelForValue(i),insertText:this.getInsertTextForValue(i,t),insertTextFormat:Fe.Snippet,documentation:s})}}collectTypes(e,t){if(Array.isArray(e.enum)||sn(e.const))return;const n=e.type;Array.isArray(n)?n.forEach((e=>t[e]=!0)):n&&(t[n]=!0)}addFillerValueCompletions(e,t,n){e.object&&n.add({kind:this.getSuggestionKind("object"),label:"{}",insertText:this.getInsertTextForGuessedValue({},t),insertTextFormat:Fe.Snippet,detail:xn("New object"),documentation:""}),e.array&&n.add({kind:this.getSuggestionKind("array"),label:"[]",insertText:this.getInsertTextForGuessedValue([],t),insertTextFormat:Fe.Snippet,detail:xn("New array"),documentation:""})}addBooleanValueCompletion(e,t,n){n.add({kind:this.getSuggestionKind("boolean"),label:e?"true":"false",insertText:this.getInsertTextForValue(e,t),insertTextFormat:Fe.Snippet,documentation:""})}addNullValueCompletion(e,t){t.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+e,insertTextFormat:Fe.Snippet,documentation:""})}addDollarSchemaCompletions(e,t){this.schemaService.getRegisteredSchemaIds((e=>"http"===e||"https"===e)).forEach((n=>{n.startsWith("http://json-schema.org/draft-")&&(n+="#"),t.add({kind:De.Module,label:this.getLabelForValue(n),filterText:this.getFilterTextForValue(n),insertText:this.getInsertTextForValue(n,e),insertTextFormat:Fe.Snippet,documentation:""})}))}getLabelForValue(e){return JSON.stringify(e)}getValueFromLabel(e){return JSON.parse(e)}getFilterTextForValue(e){return JSON.stringify(e)}getFilterTextForSnippetValue(e){return JSON.stringify(e).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")}getLabelForSnippetValue(e){return JSON.stringify(e).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")}getInsertTextForPlainText(e){return e.replace(/[\\\$\}]/g,"\\$&")}getInsertTextForValue(e,t){const n=JSON.stringify(e,null,"\t");return"{}"===n?"{$1}"+t:"[]"===n?"[$1]"+t:this.getInsertTextForPlainText(n+t)}getInsertTextForSnippetValue(e,t){return Zn(e,"",(e=>"string"===typeof e&&"^"===e[0]?e.substr(1):JSON.stringify(e)))+t}getInsertTextForGuessedValue(e,t){switch(typeof e){case"object":return null===e?"${1:null}"+t:this.getInsertTextForValue(e,t);case"string":let n=JSON.stringify(e);return n=n.substr(1,n.length-2),n=this.getInsertTextForPlainText(n),'"${1:'+n+'}"'+t;case"number":case"boolean":return"${1:"+JSON.stringify(e)+"}"+t}return this.getInsertTextForValue(e,t)}getSuggestionKind(e){if(Array.isArray(e)){const t=e;e=t.length>0?t[0]:void 0}if(!e)return De.Value;switch(e){case"string":default:return De.Value;case"object":return De.Module;case"property":return De.Property}}getLabelTextForMatchingNode(e,t){switch(e.type){case"array":return"[]";case"object":return"{}";default:return t.getText().substr(e.offset,e.length)}}getInsertTextForMatchingNode(e,t,n){switch(e.type){case"array":return this.getInsertTextForValue([],n);case"object":return this.getInsertTextForValue({},n);default:const r=t.getText().substr(e.offset,e.length)+n;return this.getInsertTextForPlainText(r)}}getInsertTextForProperty(e,t,n,r){const i=this.getInsertTextForValue(e,"");if(!n)return i;const s=i+": ";let o,a=0;if(t){if(Array.isArray(t.defaultSnippets)){if(1===t.defaultSnippets.length){const e=t.defaultSnippets[0].body;sn(e)&&(o=this.getInsertTextForSnippetValue(e,""))}a+=t.defaultSnippets.length}if(t.enum&&(o||1!==t.enum.length||(o=this.getInsertTextForGuessedValue(t.enum[0],"")),a+=t.enum.length),sn(t.const)&&(o||(o=this.getInsertTextForGuessedValue(t.const,"")),a++),sn(t.default)&&(o||(o=this.getInsertTextForGuessedValue(t.default,"")),a++),Array.isArray(t.examples)&&t.examples.length&&(o||(o=this.getInsertTextForGuessedValue(t.examples[0],"")),a+=t.examples.length),0===a){let e=Array.isArray(t.type)?t.type[0]:t.type;switch(e||(t.properties?e="object":t.items&&(e="array")),e){case"boolean":o="$1";break;case"string":o='"$1"';break;case"object":o="{$1}";break;case"array":o="[$1]";break;case"number":case"integer":o="${1:0}";break;case"null":o="${1:null}";break;default:return i}}}return(!o||a>1)&&(o="$1"),s+o+r}getCurrentWord(e,t){let n=t-1;const r=e.getText();for(;n>=0&&-1===' \t\n\r\v":{[,]}'.indexOf(r.charAt(n));)n--;return r.substring(n+1,t)}evaluateSeparatorAfter(e,t){const n=w(e.getText(),!0);n.setPosition(t);switch(n.scan()){case 5:case 2:case 4:case 17:return"";default:return","}}findItemAtOffset(e,t,n){const r=w(t.getText(),!0),i=e.items;for(let s=i.length-1;s>=0;s--){const e=i[s];if(n>e.offset+e.length){r.setPosition(e.offset+e.length);return 5===r.scan()&&n>=r.getTokenOffset()+r.getTokenLength()?s+1:s}if(n>=e.offset)return s}return 0}isInComment(e,t,n){const r=w(e.getText(),!1);r.setPosition(t);let i=r.scan();for(;17!==i&&r.getTokenOffset()+r.getTokenLength()<n;)i=r.scan();return(12===i||13===i)&&r.getTokenOffset()<=n}fromMarkup(e){if(e&&this.doesSupportMarkdown())return{kind:Oe.Markdown,value:e}}doesSupportMarkdown(){if(!sn(this.supportsMarkdown)){const e=this.clientCapabilities.textDocument?.completion?.completionItem?.documentationFormat;this.supportsMarkdown=Array.isArray(e)&&-1!==e.indexOf(Oe.Markdown)}return this.supportsMarkdown}doesSupportsCommitCharacters(){return sn(this.supportsCommitCharacters)||(this.labelDetailsSupport=this.clientCapabilities.textDocument?.completion?.completionItem?.commitCharactersSupport),this.supportsCommitCharacters}doesSupportsLabelDetails(){return sn(this.labelDetailsSupport)||(this.labelDetailsSupport=this.clientCapabilities.textDocument?.completion?.completionItem?.labelDetailsSupport),this.labelDetailsSupport}},tr=class{constructor(e,t=[],n){this.schemaService=e,this.contributions=t,this.promise=n||Promise}doHover(e,t,n){const r=e.offsetAt(t);let i=n.getNodeFromOffset(r);if(!i||("object"===i.type||"array"===i.type)&&r>i.offset+1&&r<i.offset+i.length-1)return this.promise.resolve(null);const s=i;if("string"===i.type){const e=i.parent;if(e&&"property"===e.type&&e.keyNode===i&&(i=e.valueNode,!i))return this.promise.resolve(null)}const o=D.create(e.positionAt(s.offset),e.positionAt(s.offset+s.length)),a=e=>({contents:e,range:o}),l=Kn(i);for(let c=this.contributions.length-1;c>=0;c--){const t=this.contributions[c].getInfoContribution(e.uri,l);if(t)return t.then((e=>a(e)))}return this.schemaService.getSchemaForResource(e.uri,n).then((e=>{if(e&&i){let t,r,s,o;n.getMatchingSchemas(e.schema,i.offset).every((e=>{if(e.node===i&&!e.inverted&&e.schema&&(t=t||e.schema.title,r=r||e.schema.markdownDescription||nr(e.schema.description),e.schema.enum)){const t=e.schema.enum.indexOf(Hn(i));e.schema.markdownEnumDescriptions?s=e.schema.markdownEnumDescriptions[t]:e.schema.enumDescriptions&&(s=nr(e.schema.enumDescriptions[t])),s&&(o=e.schema.enum[t],"string"!==typeof o&&(o=JSON.stringify(o)))}return!0}));let l="";return t&&(l=nr(t)),r&&(l.length>0&&(l+="\n\n"),l+=r),s&&(l.length>0&&(l+="\n\n"),l+=`\`${function(e){if(-1!==e.indexOf("`"))return"`` "+e+" ``";return e}(o)}\`: ${s}`),a([l])}return null}))}};function nr(e){if(e){return e.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,"$1\n\n$3").replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}var rr=class{constructor(e,t){this.jsonSchemaService=e,this.promise=t,this.validationEnabled=!0}configure(e){e&&(this.validationEnabled=!1!==e.validate,this.commentSeverity=e.allowComments?void 0:Z.Error)}doValidation(e,t,n,r){if(!this.validationEnabled)return this.promise.resolve([]);const i=[],s={},o=e=>{const t=e.range.start.line+" "+e.range.start.character+" "+e.message;s[t]||(s[t]=!0,i.push(e))},a=r=>{let s=n?.trailingCommas?ar(n.trailingCommas):Z.Error,a=n?.comments?ar(n.comments):this.commentSeverity,l=n?.schemaValidation?ar(n.schemaValidation):Z.Warning,c=n?.schemaRequest?ar(n.schemaRequest):Z.Warning;if(r){const i=(n,r)=>{if(t.root&&c){const i=t.root,s="object"===i.type?i.properties[0]:void 0;if(s&&"$schema"===s.keyNode.value){const t=s.valueNode||s,i=D.create(e.positionAt(t.offset),e.positionAt(t.offset+t.length));o(ie.create(i,n,c,r))}else{const t=D.create(e.positionAt(i.offset),e.positionAt(i.offset+1));o(ie.create(t,n,c,r))}}};if(r.errors.length)i(r.errors[0],pn.SchemaResolveError);else if(l){for(const e of r.warnings)i(e,pn.SchemaUnsupportedFeature);const s=t.validate(e,r.schema,l,n?.schemaDraft);s&&s.forEach(o)}sr(r.schema)&&(a=void 0),or(r.schema)&&(s=void 0)}for(const e of t.syntaxErrors){if(e.code===pn.TrailingComma){if("number"!==typeof s)continue;e.severity=s}o(e)}if("number"===typeof a){const e=xn("Comments are not permitted in JSON.");t.comments.forEach((t=>{o(ie.create(t,e,a,pn.CommentNotPermitted))}))}return i};if(r){const e=r.id||"schemaservice://untitled/"+ir++;return this.jsonSchemaService.registerExternalSchema({uri:e,schema:r}).getResolvedSchema().then((e=>a(e)))}return this.jsonSchemaService.getSchemaForResource(e.uri,t).then((e=>a(e)))}getLanguageStatus(e,t){return{schemas:this.jsonSchemaService.getSchemaURIsForResource(e.uri,t)}}},ir=0;function sr(e){if(e&&"object"===typeof e){if(on(e.allowComments))return e.allowComments;if(e.allOf)for(const t of e.allOf){const e=sr(t);if(on(e))return e}}}function or(e){if(e&&"object"===typeof e){if(on(e.allowTrailingCommas))return e.allowTrailingCommas;const t=e;if(on(t.allowsTrailingCommas))return t.allowsTrailingCommas;if(e.allOf)for(const n of e.allOf){const e=or(n);if(on(e))return e}}}function ar(e){switch(e){case"error":return Z.Error;case"warning":return Z.Warning;case"ignore":return}}function lr(e){return e<48?0:e<=57?e-48:(e<97&&(e+=32),e>=97&&e<=102?e-97+10:0)}function cr(e){if("#"===e[0])switch(e.length){case 4:return{red:17*lr(e.charCodeAt(1))/255,green:17*lr(e.charCodeAt(2))/255,blue:17*lr(e.charCodeAt(3))/255,alpha:1};case 5:return{red:17*lr(e.charCodeAt(1))/255,green:17*lr(e.charCodeAt(2))/255,blue:17*lr(e.charCodeAt(3))/255,alpha:17*lr(e.charCodeAt(4))/255};case 7:return{red:(16*lr(e.charCodeAt(1))+lr(e.charCodeAt(2)))/255,green:(16*lr(e.charCodeAt(3))+lr(e.charCodeAt(4)))/255,blue:(16*lr(e.charCodeAt(5))+lr(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(16*lr(e.charCodeAt(1))+lr(e.charCodeAt(2)))/255,green:(16*lr(e.charCodeAt(3))+lr(e.charCodeAt(4)))/255,blue:(16*lr(e.charCodeAt(5))+lr(e.charCodeAt(6)))/255,alpha:(16*lr(e.charCodeAt(7))+lr(e.charCodeAt(8)))/255}}}var hr=class{constructor(e){this.schemaService=e}findDocumentSymbols(e,t,n={resultLimit:Number.MAX_VALUE}){const r=t.root;if(!r)return[];let i=n.resultLimit||Number.MAX_VALUE;const s=e.uri;if(("vscode://defaultsettings/keybindings.json"===s||cn(s.toLowerCase(),"/user/keybindings.json"))&&"array"===r.type){const t=[];for(const o of r.items)if("object"===o.type)for(const r of o.properties)if("key"===r.keyNode.value&&r.valueNode){const a=F.create(e.uri,ur(e,o));if(t.push({name:dr(r.valueNode),kind:tt.Function,location:a}),i--,i<=0)return n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(s),t}return t}const o=[{node:r,containerName:""}];let a=0,l=!1;const c=[],h=(t,n)=>{"array"===t.type?t.items.forEach((e=>{e&&o.push({node:e,containerName:n})})):"object"===t.type&&t.properties.forEach((t=>{const r=t.valueNode;if(r)if(i>0){i--;const s=F.create(e.uri,ur(e,t)),a=n?n+"."+t.keyNode.value:t.keyNode.value;c.push({name:this.getKeyLabel(t),kind:this.getSymbolKind(r.type),location:s,containerName:n}),o.push({node:r,containerName:a})}else l=!0}))};for(;a<o.length;){const e=o[a++];h(e.node,e.containerName)}return l&&n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(s),c}findDocumentSymbols2(e,t,n={resultLimit:Number.MAX_VALUE}){const r=t.root;if(!r)return[];let i=n.resultLimit||Number.MAX_VALUE;const s=e.uri;if(("vscode://defaultsettings/keybindings.json"===s||cn(s.toLowerCase(),"/user/keybindings.json"))&&"array"===r.type){const t=[];for(const o of r.items)if("object"===o.type)for(const r of o.properties)if("key"===r.keyNode.value&&r.valueNode){const a=ur(e,o),l=ur(e,r.keyNode);if(t.push({name:dr(r.valueNode),kind:tt.Function,range:a,selectionRange:l}),i--,i<=0)return n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(s),t}return t}const o=[],a=[{node:r,result:o}];let l=0,c=!1;const h=(t,n)=>{"array"===t.type?t.items.forEach(((t,r)=>{if(t)if(i>0){i--;const s=ur(e,t),o=s,l={name:String(r),kind:this.getSymbolKind(t.type),range:s,selectionRange:o,children:[]};n.push(l),a.push({result:l.children,node:t})}else c=!0})):"object"===t.type&&t.properties.forEach((t=>{const r=t.valueNode;if(r)if(i>0){i--;const s=ur(e,t),o=ur(e,t.keyNode),l=[],c={name:this.getKeyLabel(t),kind:this.getSymbolKind(r.type),range:s,selectionRange:o,children:l,detail:this.getDetail(r)};n.push(c),a.push({result:l,node:r})}else c=!0}))};for(;l<a.length;){const e=a[l++];h(e.node,e.result)}return c&&n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(s),o}getSymbolKind(e){switch(e){case"object":return tt.Module;case"string":return tt.String;case"number":return tt.Number;case"array":return tt.Array;case"boolean":return tt.Boolean;default:return tt.Variable}}getKeyLabel(e){let t=e.keyNode.value;return t&&(t=t.replace(/[\n]/g,"\u21b5")),t&&t.trim()?t:`"${t}"`}getDetail(e){if(e)return"boolean"===e.type||"number"===e.type||"null"===e.type||"string"===e.type?String(e.value):"array"===e.type?e.children.length?void 0:"[]":"object"===e.type?e.children.length?void 0:"{}":void 0}findDocumentColors(e,t,n){return this.schemaService.getSchemaForResource(e.uri,t).then((r=>{const i=[];if(r){let s=n&&"number"===typeof n.resultLimit?n.resultLimit:Number.MAX_VALUE;const o=t.getMatchingSchemas(r.schema),a={};for(const t of o)if(!t.inverted&&t.schema&&("color"===t.schema.format||"color-hex"===t.schema.format)&&t.node&&"string"===t.node.type){const r=String(t.node.offset);if(!a[r]){const o=cr(Hn(t.node));if(o){const n=ur(e,t.node);i.push({color:o,range:n})}if(a[r]=!0,s--,s<=0)return n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(e.uri),i}}}return i}))}getColorPresentations(e,t,n,r){const i=[],s=Math.round(255*n.red),o=Math.round(255*n.green),a=Math.round(255*n.blue);function l(e){const t=e.toString(16);return 2!==t.length?"0"+t:t}let c;return c=1===n.alpha?`#${l(s)}${l(o)}${l(a)}`:`#${l(s)}${l(o)}${l(a)}${l(Math.round(255*n.alpha))}`,i.push({label:c,textEdit:le.replace(r,JSON.stringify(c))}),i}};function ur(e,t){return D.create(e.positionAt(t.offset),e.positionAt(t.offset+t.length))}function dr(e){return Hn(e)||xn("<empty>")}var gr,fr={schemaAssociations:[],schemas:{"http://json-schema.org/draft-04/schema#":{$schema:"http://json-schema.org/draft-04/schema#",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{type:"string",enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},type:"object",properties:{id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minLength:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minItems:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},uniqueItems:{type:"boolean",default:!1},maxProperties:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minProperties:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},required:{allOf:[{$ref:"#/definitions/stringArray"}]},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{anyOf:[{type:"string",enum:["date-time","uri","email","hostname","ipv4","ipv6","regex"]},{type:"string"}]},allOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},anyOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},oneOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},not:{allOf:[{$ref:"#"}]}},dependencies:{exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},default:{}},"http://json-schema.org/draft-07/schema#":{definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}}},mr={id:xn("A unique identifier for the schema."),$schema:xn("The schema to verify this document against."),title:xn("A descriptive title of the element."),description:xn("A long description of the element. Used in hover menus and suggestions."),default:xn("A default value. Used by suggestions."),multipleOf:xn("A number that should cleanly divide the current value (i.e. have no remainder)."),maximum:xn("The maximum numerical value, inclusive by default."),exclusiveMaximum:xn("Makes the maximum property exclusive."),minimum:xn("The minimum numerical value, inclusive by default."),exclusiveMinimum:xn("Makes the minimum property exclusive."),maxLength:xn("The maximum length of a string."),minLength:xn("The minimum length of a string."),pattern:xn("A regular expression to match the string against. It is not implicitly anchored."),additionalItems:xn("For arrays, only when items is set as an array. If it is a schema, then this schema validates items after the ones specified by the items array. If it is false, then additional items will cause validation to fail."),items:xn("For arrays. Can either be a schema to validate every element against or an array of schemas to validate each item against in order (the first schema will validate the first element, the second schema will validate the second element, and so on."),maxItems:xn("The maximum number of items that can be inside an array. Inclusive."),minItems:xn("The minimum number of items that can be inside an array. Inclusive."),uniqueItems:xn("If all of the items in the array must be unique. Defaults to false."),maxProperties:xn("The maximum number of properties an object can have. Inclusive."),minProperties:xn("The minimum number of properties an object can have. Inclusive."),required:xn("An array of strings that lists the names of all properties required on this object."),additionalProperties:xn("Either a schema or a boolean. If a schema, then used to validate all properties not matched by 'properties' or 'patternProperties'. If false, then any properties not matched by either will cause this schema to fail."),definitions:xn("Not used for validation. Place subschemas here that you wish to reference inline with $ref."),properties:xn("A map of property names to schemas for each property."),patternProperties:xn("A map of regular expressions on property names to schemas for matching properties."),dependencies:xn("A map of property names to either an array of property names or a schema. An array of property names means the property named in the key depends on the properties in the array being present in the object in order to be valid. If the value is a schema, then the schema is only applied to the object if the property in the key exists on the object."),enum:xn("The set of literal values that are valid."),type:xn("Either a string of one of the basic schema types (number, integer, null, array, object, boolean, string) or an array of strings specifying a subset of those types."),format:xn("Describes the format expected for the value."),allOf:xn("An array of schemas, all of which must match."),anyOf:xn("An array of schemas, where at least one must match."),oneOf:xn("An array of schemas, exactly one of which must match."),not:xn("A schema which must not match."),$id:xn("A unique identifier for the schema."),$ref:xn("Reference a definition hosted on any location."),$comment:xn("Comments from schema authors to readers or maintainers of the schema."),readOnly:xn("Indicates that the value of the instance is managed exclusively by the owning authority."),examples:xn("Sample JSON values associated with a particular schema, for the purpose of illustrating usage."),contains:xn('An array instance is valid against "contains" if at least one of its elements is valid against the given schema.'),propertyNames:xn("If the instance is an object, this keyword validates if every property name in the instance validates against the provided schema."),const:xn("An instance validates successfully against this keyword if its value is equal to the value of the keyword."),contentMediaType:xn("Describes the media type of a string property."),contentEncoding:xn("Describes the content encoding of a string property."),if:xn('The validation outcome of the "if" subschema controls which of the "then" or "else" keywords are evaluated.'),then:xn('The "if" subschema is used for validation when the "if" subschema succeeds.'),else:xn('The "else" subschema is used for validation when the "if" subschema fails.')};for(const n in fr.schemas){const e=fr.schemas[n];for(const t in e.properties){let n=e.properties[t];"boolean"===typeof n&&(n=e.properties[t]={});const r=mr[t];r&&(n.description=r)}}(()=>{var e={470:e=>{function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",i=0,s=-1,o=0,a=0;a<=e.length;++a){if(a<e.length)n=e.charCodeAt(a);else{if(47===n)break;n=47}if(47===n){if(s===a-1||1===o);else if(s!==a-1&&2===o){if(r.length<2||2!==i||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(r.length>2){var l=r.lastIndexOf("/");if(l!==r.length-1){-1===l?(r="",i=0):i=(r=r.slice(0,l)).length-1-r.lastIndexOf("/"),s=a,o=0;continue}}else if(2===r.length||1===r.length){r="",i=0,s=a,o=0;continue}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(s+1,a):r=e.slice(s+1,a),i=a-s-1;s=a,o=0}else 46===n&&-1!==o?++o:o=-1}return r}var r={resolve:function(){for(var e,r="",i=!1,s=arguments.length-1;s>=-1&&!i;s--){var o;s>=0?o=arguments[s]:(void 0===e&&(e=process.cwd()),o=e),t(o),0!==o.length&&(r=o+"/"+r,i=47===o.charCodeAt(0))}return r=n(r,!i),i?r.length>0?"/"+r:"/":r.length>0?r:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!r)).length||r||(e="."),e.length>0&&i&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n<arguments.length;++n){var i=arguments[n];t(i),i.length>0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n)return"";if((e=r.resolve(e))===(n=r.resolve(n)))return"";for(var i=1;i<e.length&&47===e.charCodeAt(i);++i);for(var s=e.length,o=s-i,a=1;a<n.length&&47===n.charCodeAt(a);++a);for(var l=n.length-a,c=o<l?o:l,h=-1,u=0;u<=c;++u){if(u===c){if(l>c){if(47===n.charCodeAt(a+u))return n.slice(a+u+1);if(0===u)return n.slice(a+u)}else o>c&&(47===e.charCodeAt(i+u)?h=u:0===u&&(h=0));break}var d=e.charCodeAt(i+u);if(d!==n.charCodeAt(a+u))break;47===d&&(h=u)}var g="";for(u=i+h+1;u<=s;++u)u!==s&&47!==e.charCodeAt(u)||(0===g.length?g+="..":g+="/..");return g.length>0?g+n.slice(a+h):(a+=h,47===n.charCodeAt(a)&&++a,n.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,i=-1,s=!0,o=e.length-1;o>=1;--o)if(47===(n=e.charCodeAt(o))){if(!s){i=o;break}}else s=!1;return-1===i?r?"/":".":r&&1===i?"//":e.slice(0,i)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');t(e);var r,i=0,s=-1,o=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var a=n.length-1,l=-1;for(r=e.length-1;r>=0;--r){var c=e.charCodeAt(r);if(47===c){if(!o){i=r+1;break}}else-1===l&&(o=!1,l=r+1),a>=0&&(c===n.charCodeAt(a)?-1==--a&&(s=r):(a=-1,s=l))}return i===s?s=l:-1===s&&(s=e.length),e.slice(i,s)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!o){i=r+1;break}}else-1===s&&(o=!1,s=r+1);return-1===s?"":e.slice(i,s)},extname:function(e){t(e);for(var n=-1,r=0,i=-1,s=!0,o=0,a=e.length-1;a>=0;--a){var l=e.charCodeAt(a);if(47!==l)-1===i&&(s=!1,i=a+1),46===l?-1===n?n=a:1!==o&&(o=1):-1!==n&&(o=-1);else if(!s){r=a+1;break}}return-1===n||-1===i||0===o||1===o&&n===i-1&&n===r+1?"":e.slice(n,i)},format:function(e){if(null===e||"object"!=typeof e)throw new 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(0===e.length)return n;var r,i=e.charCodeAt(0),s=47===i;s?(n.root="/",r=1):r=0;for(var o=-1,a=0,l=-1,c=!0,h=e.length-1,u=0;h>=r;--h)if(47!==(i=e.charCodeAt(h)))-1===l&&(c=!1,l=h+1),46===i?-1===o?o=h:1!==u&&(u=1):-1!==o&&(u=-1);else if(!c){a=h+1;break}return-1===o||-1===l||0===u||1===u&&o===l-1&&o===a+1?-1!==l&&(n.base=n.name=0===a&&s?e.slice(1,l):e.slice(a,l)):(0===a&&s?(n.name=e.slice(1,o),n.base=e.slice(1,l)):(n.name=e.slice(a,o),n.base=e.slice(a,l)),n.ext=e.slice(o,l)),a>0?n.dir=e.slice(0,a-1):s&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,e.exports=r}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var s=t[r]={exports:{}};return e[r](s,s.exports,n),s.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=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{let e;if(n.r(r),n.d(r,{URI:()=>h,Utils:()=>w}),"object"==typeof process)e="win32"===process.platform;else if("object"==typeof navigator){let t=navigator.userAgent;e=t.indexOf("Windows")>=0}const t=/^\w[\w\d+.-]*$/,i=/^\//,s=/^\/\//;function o(e,n){if(!e.scheme&&n)throw new 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 new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!i.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(s.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}const a="",l="/",c=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class h{static isUri(e){return e instanceof h||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString}scheme;authority;path;query;fragment;constructor(e,t,n,r,i,s=!1){"object"==typeof e?(this.scheme=e.scheme||a,this.authority=e.authority||a,this.path=e.path||a,this.query=e.query||a,this.fragment=e.fragment||a):(this.scheme=function(e,t){return e||t?e:"file"}(e,s),this.authority=t||a,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==l&&(t=l+t):t=l}return t}(this.scheme,n||a),this.query=r||a,this.fragment=i||a,o(this,s))}get fsPath(){return p(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:i,fragment:s}=e;return void 0===t?t=this.scheme:null===t&&(t=a),void 0===n?n=this.authority:null===n&&(n=a),void 0===r?r=this.path:null===r&&(r=a),void 0===i?i=this.query:null===i&&(i=a),void 0===s?s=this.fragment:null===s&&(s=a),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&s===this.fragment?this:new d(t,n,r,i,s)}static parse(e,t=!1){const n=c.exec(e);return n?new d(n[2]||a,v(n[4]||a),v(n[5]||a),v(n[7]||a),v(n[9]||a),t):new d(a,a,a,a,a)}static file(t){let n=a;if(e&&(t=t.replace(/\\/g,l)),t[0]===l&&t[1]===l){const e=t.indexOf(l,2);-1===e?(n=t.substring(2),t=l):(n=t.substring(2,e),t=t.substring(e)||l)}return new d("file",n,t,a,a)}static from(e){const t=new d(e.scheme,e.authority,e.path,e.query,e.fragment);return o(t,!0),t}toString(e=!1){return b(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof h)return e;{const t=new d(e);return t._formatted=e.external,t._fsPath=e._sep===u?e.fsPath:null,t}}return e}}const u=e?1:void 0;class d extends h{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=p(this,!1)),this._fsPath}toString(e=!1){return e?b(this,!0):(this._formatted||(this._formatted=b(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=u),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}}const g={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 s=0;s<e.length;s++){const o=e.charCodeAt(s);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o||n&&91===o||n&&93===o||n&&58===o)-1!==i&&(r+=encodeURIComponent(e.substring(i,s)),i=-1),void 0!==r&&(r+=e.charAt(s));else{void 0===r&&(r=e.substr(0,s));const t=g[o];void 0!==t?(-1!==i&&(r+=encodeURIComponent(e.substring(i,s)),i=-1),r+=t):-1===i&&(i=s)}}return-1!==i&&(r+=encodeURIComponent(e.substring(i))),void 0!==r?r:e}function m(e){let t;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);35===r||63===r?(void 0===t&&(t=e.substr(0,n)),t+=g[r]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function p(t,n){let r;return r=t.authority&&t.path.length>1&&"file"===t.scheme?`//${t.authority}${t.path}`:47===t.path.charCodeAt(0)&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&58===t.path.charCodeAt(2)?n?t.path.substr(1):t.path[1].toLowerCase()+t.path.substr(2):t.path,e&&(r=r.replace(/\//g,"\\")),r}function b(e,t){const n=t?m:f;let r="",{scheme:i,authority:s,path:o,query:a,fragment:c}=e;if(i&&(r+=i,r+=":"),(s||"file"===i)&&(r+=l,r+=l),s){let e=s.indexOf("@");if(-1!==e){const t=s.substr(0,e);s=s.substr(e+1),e=t.lastIndexOf(":"),-1===e?r+=n(t,!1,!1):(r+=n(t.substr(0,e),!1,!1),r+=":",r+=n(t.substr(e+1),!1,!0)),r+="@"}s=s.toLowerCase(),e=s.lastIndexOf(":"),-1===e?r+=n(s,!1,!0):(r+=n(s.substr(0,e),!1,!0),r+=s.substr(e))}if(o){if(o.length>=3&&47===o.charCodeAt(0)&&58===o.charCodeAt(2)){const e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&58===o.charCodeAt(1)){const e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}r+=n(o,!0,!1)}return a&&(r+="?",r+=n(a,!1,!1)),c&&(r+="#",r+=t?c:f(c,!1,!1)),r}function _(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+_(e.substr(3)):e}}const k=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function v(e){return e.match(k)?e.replace(k,(e=>_(e))):e}var C=n(470);const y=C.posix||C,L="/";var w,S;(S=w||(w={})).joinPath=function(e,...t){return e.with({path:y.join(e.path,...t)})},S.resolvePath=function(e,...t){let n=e.path,r=!1;n[0]!==L&&(n=L+n,r=!0);let i=y.resolve(n,...t);return r&&i[0]===L&&!e.authority&&(i=i.substring(1)),e.with({path:i})},S.dirname=function(e){if(0===e.path.length||e.path===L)return e;let t=y.dirname(e.path);return 1===t.length&&46===t.charCodeAt(0)&&(t=""),e.with({path:t})},S.basename=function(e){return y.basename(e.path)},S.extname=function(e){return y.extname(e.path)}})(),gr=r})();var{URI:pr,Utils:br}=gr;function _r(e,t){if("string"!==typeof e)throw new TypeError("Expected a string");const n=String(e);let r="";const i=!!t&&!!t.extended,s=!!t&&!!t.globstar;let o=!1;const a=t&&"string"===typeof t.flags?t.flags:"";let l;for(let c=0,h=n.length;c<h;c++)switch(l=n[c],l){case"/":case"$":case"^":case"+":case".":case"(":case")":case"=":case"!":case"|":r+="\\"+l;break;case"?":if(i){r+=".";break}case"[":case"]":if(i){r+=l;break}case"{":if(i){o=!0,r+="(";break}case"}":if(i){o=!1,r+=")";break}case",":if(o){r+="|";break}r+="\\"+l;break;case"*":const e=n[c-1];let t=1;for(;"*"===n[c+1];)t++,c++;const a=n[c+1];if(s){t>1&&("/"===e||void 0===e||"{"===e||","===e)&&("/"===a||void 0===a||","===a||"}"===a)?("/"===a?c++:"/"===e&&r.endsWith("\\/")&&(r=r.substr(0,r.length-2)),r+="((?:[^/]*(?:/|$))*)"):r+="([^/]*)"}else r+=".*";break;default:r+=l}return a&&~a.indexOf("g")||(r="^"+r+"$"),new RegExp(r,a)}var kr,vr,Cr=class{constructor(e,t,n){this.folderUri=t,this.uris=n,this.globWrappers=[];try{for(let t of e){const e="!"!==t[0];e||(t=t.substring(1)),t.length>0&&("/"===t[0]&&(t=t.substring(1)),this.globWrappers.push({regexp:_r("**/"+t,{extended:!0,globstar:!0}),include:e}))}t&&((t=Nr(t)).endsWith("/")||(t+="/"),this.folderUri=t)}catch(r){this.globWrappers.length=0,this.uris=[]}}matchesPattern(e){if(this.folderUri&&!e.startsWith(this.folderUri))return!1;let t=!1;for(const{regexp:n,include:r}of this.globWrappers)n.test(e)&&(t=r);return t}getURIs(){return this.uris}},yr=class{constructor(e,t,n){this.service=e,this.uri=t,this.dependencies=new Set,this.anchors=void 0,n&&(this.unresolvedSchema=this.service.promise.resolve(new Lr(n)))}getUnresolvedSchema(){return this.unresolvedSchema||(this.unresolvedSchema=this.service.loadSchema(this.uri)),this.unresolvedSchema}getResolvedSchema(){return this.resolvedSchema||(this.resolvedSchema=this.getUnresolvedSchema().then((e=>this.service.resolveSchemaContent(e,this)))),this.resolvedSchema}clearSchema(){const e=!!this.unresolvedSchema;return this.resolvedSchema=void 0,this.unresolvedSchema=void 0,this.dependencies.clear(),this.anchors=void 0,e}},Lr=class{constructor(e,t=[]){this.schema=e,this.errors=t}},wr=class{constructor(e,t=[],n=[],r){this.schema=e,this.errors=t,this.warnings=n,this.schemaDraft=r}getSection(e){const t=this.getSectionRecursive(e,this.schema);if(t)return zn(t)}getSectionRecursive(e,t){if(!t||"boolean"===typeof t||0===e.length)return t;const n=e.shift();if(t.properties&&(t.properties[n],1))return this.getSectionRecursive(e,t.properties[n]);if(t.patternProperties)for(const r of Object.keys(t.patternProperties)){const i=hn(r);if(i?.test(n))return this.getSectionRecursive(e,t.patternProperties[r])}else{if("object"===typeof t.additionalProperties)return this.getSectionRecursive(e,t.additionalProperties);if(n.match("[0-9]+"))if(Array.isArray(t.items)){const r=parseInt(n,10);if(!isNaN(r)&&t.items[r])return this.getSectionRecursive(e,t.items[r])}else if(t.items)return this.getSectionRecursive(e,t.items)}}},Sr=class{constructor(e,t,n){this.contextService=t,this.requestService=e,this.promiseConstructor=n||Promise,this.callOnDispose=[],this.contributionSchemas={},this.contributionAssociations=[],this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={}}getRegisteredSchemaIds(e){return Object.keys(this.registeredSchemasIds).filter((t=>{const n=pr.parse(t).scheme;return"schemaservice"!==n&&(!e||e(n))}))}get promise(){return this.promiseConstructor}dispose(){for(;this.callOnDispose.length>0;)this.callOnDispose.pop()()}onResourceChange(e){this.cachedSchemaForResource=void 0;let t=!1;const n=[e=Er(e)],r=Object.keys(this.schemasById).map((e=>this.schemasById[e]));for(;n.length;){const e=n.pop();for(let i=0;i<r.length;i++){const s=r[i];s&&(s.uri===e||s.dependencies.has(e))&&(s.uri!==e&&n.push(s.uri),s.clearSchema()&&(t=!0),r[i]=void 0)}}return t}setSchemaContributions(e){if(e.schemas){const t=e.schemas;for(const e in t){const n=Er(e);this.contributionSchemas[n]=this.addSchemaHandle(n,t[e])}}if(Array.isArray(e.schemaAssociations)){const t=e.schemaAssociations;for(let e of t){const t=e.uris.map(Er),n=this.addFilePatternAssociation(e.pattern,e.folderUri,t);this.contributionAssociations.push(n)}}}addSchemaHandle(e,t){const n=new yr(this,e,t);return this.schemasById[e]=n,n}getOrAddSchemaHandle(e,t){return this.schemasById[e]||this.addSchemaHandle(e,t)}addFilePatternAssociation(e,t,n){const r=new Cr(e,t,n);return this.filePatternAssociations.push(r),r}registerExternalSchema(e){const t=Er(e.uri);return this.registeredSchemasIds[t]=!0,this.cachedSchemaForResource=void 0,e.fileMatch&&e.fileMatch.length&&this.addFilePatternAssociation(e.fileMatch,e.folderUri,[t]),e.schema?this.addSchemaHandle(t,e.schema):this.getOrAddSchemaHandle(t)}clearExternalSchemas(){this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={},this.cachedSchemaForResource=void 0;for(const e in this.contributionSchemas)this.schemasById[e]=this.contributionSchemas[e],this.registeredSchemasIds[e]=!0;for(const e of this.contributionAssociations)this.filePatternAssociations.push(e)}getResolvedSchema(e){const t=Er(e),n=this.schemasById[t];return n?n.getResolvedSchema():this.promise.resolve(void 0)}loadSchema(e){if(!this.requestService){const t=xn("Unable to load schema from '{0}'. No schema request service available",Tr(e));return this.promise.resolve(new Lr({},[t]))}return e.startsWith("http://json-schema.org/")&&(e="https"+e.substring(4)),this.requestService(e).then((t=>{if(!t){const t=xn("Unable to load schema from '{0}': No content.",Tr(e));return new Lr({},[t])}const n=[];65279===t.charCodeAt(0)&&(n.push(xn("Problem reading content from '{0}': UTF-8 with BOM detected, only UTF 8 is allowed.",Tr(e))),t=t.trimStart());let r={};const i=[];return r=Yt(t,i),i.length&&n.push(xn("Unable to parse content from '{0}': Parse error at offset {1}.",Tr(e),i[0].offset)),new Lr(r,n)}),(t=>{let n=t.toString();const r=t.toString().split("Error: ");return r.length>1&&(n=r[1]),cn(n,".")&&(n=n.substr(0,n.length-1)),new Lr({},[xn("Unable to load schema from '{0}': {1}.",Tr(e),n)])}))}resolveSchemaContent(e,t){const n=e.errors.slice(0),r=e.schema;let i=r.$schema?Er(r.$schema):void 0;if("http://json-schema.org/draft-03/schema"===i)return this.promise.resolve(new wr({},[xn("Draft-03 schemas are not supported.")],[],i));let s=new Set;const o=this.contextService,a=(e,t,r,i)=>{let s;var o,a,l;void 0===i||0===i.length?s=t:"/"===i.charAt(0)?s=((e,t)=>{t=decodeURIComponent(t);let n=e;return"/"===t[0]&&(t=t.substring(1)),t.split("/").some((e=>(e=e.replace(/~1/g,"/").replace(/~0/g,"~"),n=n[e],!n))),n})(t,i):(o=t,l=i,(a=r).anchors||(a.anchors=h(o)),s=a.anchors.get(l)),s?((e,t)=>{for(const n in t)t.hasOwnProperty(n)&&"id"!==n&&"$id"!==n&&(e[n]=t[n])})(e,s):n.push(xn("$ref '{0}' in '{1}' can not be resolved.",i||"",r.uri))},l=(e,t,r,i)=>{o&&!/^[A-Za-z][A-Za-z0-9+\-.+]*:\/\/.*/.test(t)&&(t=o.resolveRelativePath(t,i.uri)),t=Er(t);const s=this.getOrAddSchemaHandle(t);return s.getUnresolvedSchema().then((o=>{if(i.dependencies.add(t),o.errors.length){const e=r?t+"#"+r:t;n.push(xn("Problems loading reference '{0}': {1}",e,o.errors[0]))}return a(e,o.schema,s,r),c(e,o.schema,s)}))},c=(e,t,n)=>{const r=[];return this.traverseNodes(e,(e=>{const i=new Set;for(;e.$ref;){const s=e.$ref,o=s.split("#",2);if(delete e.$ref,o[0].length>0)return void r.push(l(e,o[0],o[1],n));if(!i.has(s)){const r=o[1];a(e,t,n,r),i.add(s)}}e.$recursiveRef&&s.add("$recursiveRef"),e.$dynamicRef&&s.add("$dynamicRef")})),this.promise.all(r)},h=e=>{const t=new Map;return this.traverseNodes(e,(e=>{const r=e.$id||e.id,i=an(r)&&"#"===r.charAt(0)?r.substring(1):e.$anchor;i&&(t.has(i)?n.push(xn("Duplicate anchor declaration: '{0}'",i)):t.set(i,e)),e.$recursiveAnchor&&s.add("$recursiveAnchor"),e.$dynamicAnchor&&s.add("$dynamicAnchor")})),t};return c(r,r,t).then((e=>{let t=[];return s.size&&t.push(xn("The schema uses meta-schema features ({0}) that are not yet supported by the validator.",Array.from(s.keys()).join(", "))),new wr(r,n,t,i)}))}traverseNodes(e,t){if(!e||"object"!==typeof e)return Promise.resolve(null);const n=new Set,r=(...e)=>{for(const t of e)ln(t)&&a.push(t)},i=(...e)=>{for(const t of e)if(ln(t))for(const e in t){const n=t[e];ln(n)&&a.push(n)}},s=(...e)=>{for(const t of e)if(Array.isArray(t))for(const e of t)ln(e)&&a.push(e)},o=e=>{if(Array.isArray(e))for(const t of e)ln(t)&&a.push(t);else ln(e)&&a.push(e)},a=[e];let l=a.pop();for(;l;)n.has(l)||(n.add(l),t(l),r(l.additionalItems,l.additionalProperties,l.not,l.contains,l.propertyNames,l.if,l.then,l.else,l.unevaluatedItems,l.unevaluatedProperties),i(l.definitions,l.$defs,l.properties,l.patternProperties,l.dependencies,l.dependentSchemas),s(l.anyOf,l.allOf,l.oneOf,l.prefixItems),o(l.items)),l=a.pop()}getSchemaFromProperty(e,t){if("object"===t.root?.type)for(const n of t.root.properties)if("$schema"===n.keyNode.value&&"string"===n.valueNode?.type){let t=n.valueNode.value;return this.contextService&&!/^\w[\w\d+.-]*:/.test(t)&&(t=this.contextService.resolveRelativePath(t,e)),t}}getAssociatedSchemas(e){const t=Object.create(null),n=[],r=Nr(e);for(const i of this.filePatternAssociations)if(i.matchesPattern(r))for(const e of i.getURIs())t[e]||(n.push(e),t[e]=!0);return n}getSchemaURIsForResource(e,t){let n=t&&this.getSchemaFromProperty(e,t);return n?[n]:this.getAssociatedSchemas(e)}getSchemaForResource(e,t){if(t){let n=this.getSchemaFromProperty(e,t);if(n){const e=Er(n);return this.getOrAddSchemaHandle(e).getResolvedSchema()}}if(this.cachedSchemaForResource&&this.cachedSchemaForResource.resource===e)return this.cachedSchemaForResource.resolvedSchema;const n=this.getAssociatedSchemas(e),r=n.length>0?this.createCombinedSchema(e,n).getResolvedSchema():this.promise.resolve(void 0);return this.cachedSchemaForResource={resource:e,resolvedSchema:r},r}createCombinedSchema(e,t){if(1===t.length)return this.getOrAddSchemaHandle(t[0]);{const n="schemaservice://combinedSchema/"+encodeURIComponent(e),r={allOf:t.map((e=>({$ref:e})))};return this.addSchemaHandle(n,r)}}getMatchingSchemas(e,t,n){if(n){const e=n.id||"schemaservice://untitled/matchingSchemas/"+xr++;return this.addSchemaHandle(e,n).getResolvedSchema().then((e=>t.getMatchingSchemas(e.schema).filter((e=>!e.inverted))))}return this.getSchemaForResource(e.uri,t).then((e=>e?t.getMatchingSchemas(e.schema).filter((e=>!e.inverted)):[]))}},xr=0;function Er(e){try{return pr.parse(e).toString(!0)}catch(t){return e}}function Nr(e){try{return pr.parse(e).with({fragment:null,query:null}).toString(!0)}catch(t){return e}}function Tr(e){try{const t=pr.parse(e);if("file"===t.scheme)return t.fsPath}catch(t){}return e}function Ar(e,t){const n=[],r=[],i=[];let s=-1;const o=w(e.getText(),!1);let a=o.scan();function l(e){n.push(e),r.push(i.length)}for(;17!==a;){switch(a){case 1:case 3:{const t=e.positionAt(o.getTokenOffset()).line,n={startLine:t,endLine:t,kind:1===a?"object":"array"};i.push(n);break}case 2:case 4:{const t=2===a?"object":"array";if(i.length>0&&i[i.length-1].kind===t){const t=i.pop(),n=e.positionAt(o.getTokenOffset()).line;t&&n>t.startLine+1&&s!==t.startLine&&(t.endLine=n-1,l(t),s=t.startLine)}break}case 13:{const t=e.positionAt(o.getTokenOffset()).line,n=e.positionAt(o.getTokenOffset()+o.getTokenLength()).line;1===o.getTokenError()&&t+1<e.lineCount?o.setPosition(e.offsetAt(M.create(t+1,0))):t<n&&(l({startLine:t,endLine:n,kind:K.Comment}),s=t);break}case 12:{const t=e.getText().substr(o.getTokenOffset(),o.getTokenLength()).match(/^\/\/\s*#(region\b)|(endregion\b)/);if(t){const n=e.positionAt(o.getTokenOffset()).line;if(t[1]){const e={startLine:n,endLine:n,kind:K.Region};i.push(e)}else{let e=i.length-1;for(;e>=0&&i[e].kind!==K.Region;)e--;if(e>=0){const t=i[e];i.length=e,n>t.startLine&&s!==t.startLine&&(t.endLine=n,l(t),s=t.startLine)}}}break}}a=o.scan()}const c=t&&t.rangeLimit;if("number"!==typeof c||n.length<=c)return n;t&&t.onRangeLimitExceeded&&t.onRangeLimitExceeded(e.uri);const h=[];for(let f of r)f<30&&(h[f]=(h[f]||0)+1);let u=0,d=0;for(let f=0;f<h.length;f++){const e=h[f];if(e){if(e+u>c){d=f;break}u+=e}}const g=[];for(let f=0;f<n.length;f++){const e=r[f];"number"===typeof e&&(e<d||e===d&&u++<c)&&g.push(n[f])}return g}function Ir(e,t,n){function r(t,n){return D.create(e.positionAt(t),e.positionAt(n))}const i=w(e.getText(),!0);function s(e,t){return i.setPosition(e),i.scan()===t?i.getTokenOffset()+i.getTokenLength():-1}return t.map((function(t){let i=e.offsetAt(t),o=n.getNodeFromOffset(i,!0);const a=[];for(;o;){switch(o.type){case"string":case"object":case"array":const e=o.offset+1,t=o.offset+o.length-1;e<t&&i>=e&&i<=t&&a.push(r(e,t)),a.push(r(o.offset,o.offset+o.length));break;case"number":case"boolean":case"null":case"property":a.push(r(o.offset,o.offset+o.length))}if("property"===o.type||o.parent&&"array"===o.parent.type){const e=s(o.offset+o.length,5);-1!==e&&a.push(r(o.offset,e))}o=o.parent}let l;for(let e=a.length-1;e>=0;e--)l=yt.create(a[e],l);return l||(l=yt.create(D.create(t,t))),l}))}function Or(e,t,n){let r;if(n){const t=e.offsetAt(n.start);r={offset:t,length:e.offsetAt(n.end)-t}}const i={tabSize:t?t.tabSize:4,insertSpaces:!0===t?.insertSpaces,insertFinalNewline:!0===t?.insertFinalNewline,eol:"\n",keepLines:!0===t?.keepLines};return function(e,t,n){return b(e,t,n)}(e.getText(),r,i).map((t=>le.replace(D.create(e.positionAt(t.offset),e.positionAt(t.offset+t.length)),t.content)))}(vr=kr||(kr={}))[vr.Object=0]="Object",vr[vr.Array=1]="Array";var Mr=class{constructor(e,t){this.propertyName=e??"",this.beginningLineNumber=t,this.childrenProperties=[],this.lastProperty=!1,this.noKeyName=!1}addChildProperty(e){if(e.parent=this,this.childrenProperties.length>0){let t=0;t=e.noKeyName?this.childrenProperties.length:function(e,t,n){const r=t.propertyName.toLowerCase(),i=e[0].propertyName.toLowerCase(),s=e[e.length-1].propertyName.toLowerCase();if(r<i)return 0;if(r>s)return e.length;let o=0,a=e.length-1;for(;o<=a;){let r=a+o>>1,i=n(t,e[r]);if(i>0)o=r+1;else{if(!(i<0))return r;a=r-1}}return-o-1}(this.childrenProperties,e,Rr),t<0&&(t=-1*t-1),this.childrenProperties.splice(t,0,e)}else this.childrenProperties.push(e);return e}};function Rr(e,t){const n=e.propertyName.toLowerCase(),r=t.propertyName.toLowerCase();return n<r?-1:n>r?1:0}function Dr(e,t){const n={...t,keepLines:!1},r=fn.applyEdits(e,Or(e,n,void 0)),i=fn.create("test://test.json","json",0,r),s=function(e,t){if(0===t.childrenProperties.length)return e;const n=fn.create("test://test.json","json",0,e.getText()),r=[];Br(r,t,t.beginningLineNumber);for(;r.length>0;){const t=r.shift(),i=t.propertyTreeArray;let s=t.beginningLineNumber;for(let o=0;o<i.length;o++){const t=i[o],a=D.create(M.create(t.beginningLineNumber,0),M.create(t.endLineNumber+1,0)),l=e.getText(a),c=fn.create("test://test.json","json",0,l);if(!0===t.lastProperty&&o!==i.length-1){const e=t.lineWhereToAddComma-t.beginningLineNumber,n=t.indexWhereToAddComa,r={range:D.create(M.create(e,n),M.create(e,n)),text:","};fn.update(c,[r],1)}else if(!1===t.lastProperty&&o===i.length-1){const e=t.commaIndex,n=t.commaLine-t.beginningLineNumber,r={range:D.create(M.create(n,e),M.create(n,e+1)),text:""};fn.update(c,[r],1)}const h=t.endLineNumber-t.beginningLineNumber+1,u={range:D.create(M.create(s,0),M.create(s+h,0)),text:c.getText()};fn.update(n,[u],1),Br(r,t,s),s+=h}}return n}(i,function(e){const t=e.getText(),n=w(t,!1);let r,i,s,o=new Mr,a=o,l=o,c=o,h=0,u=0,d=-1,g=-1,f=0,m=0,p=[],b=!1,_=!1;for(;17!==(r=n.scan());){if(!0===b&&14!==r&&15!==r&&12!==r&&13!==r&&void 0===l.endLineNumber){let e=n.getTokenStartLine();2===s||4===s?c.endLineNumber=e-1:l.endLineNumber=e-1,f=e,b=!1}if(!0===_&&14!==r&&15!==r&&12!==r&&13!==r&&(f=n.getTokenStartLine(),_=!1),n.getTokenStartLine()!==h){for(let t=h;t<n.getTokenStartLine();t++){u+=e.getText(D.create(M.create(t,0),M.create(t+1,0))).length}h=n.getTokenStartLine()}switch(r){case 10:if(void 0===i||1===i||5===i&&p[p.length-1]===kr.Object){const e=new Mr(n.getTokenValue(),f);c=l,l=a.addChildProperty(e)}break;case 3:if(void 0===o.beginningLineNumber&&(o.beginningLineNumber=n.getTokenStartLine()),p[p.length-1]===kr.Object)a=l;else if(p[p.length-1]===kr.Array){const e=new Mr(n.getTokenValue(),f);e.noKeyName=!0,c=l,l=a.addChildProperty(e),a=l}p.push(kr.Array),l.type=kr.Array,f=n.getTokenStartLine(),f++;break;case 1:if(void 0===o.beginningLineNumber)o.beginningLineNumber=n.getTokenStartLine();else if(p[p.length-1]===kr.Array){const e=new Mr(n.getTokenValue(),f);e.noKeyName=!0,c=l,l=a.addChildProperty(e)}l.type=kr.Object,p.push(kr.Object),a=l,f=n.getTokenStartLine(),f++;break;case 4:m=n.getTokenStartLine(),p.pop(),void 0!==l.endLineNumber||2!==i&&4!==i||(l.endLineNumber=m-1,l.lastProperty=!0,l.lineWhereToAddComma=d,l.indexWhereToAddComa=g,c=l,l=l?l.parent:void 0,a=l),o.endLineNumber=m,f=m+1;break;case 2:m=n.getTokenStartLine(),p.pop(),1!==i&&(void 0===l.endLineNumber&&(l.endLineNumber=m-1,l.lastProperty=!0,l.lineWhereToAddComma=d,l.indexWhereToAddComa=g),c=l,l=l?l.parent:void 0,a=l),o.endLineNumber=n.getTokenStartLine(),f=m+1;break;case 5:m=n.getTokenStartLine(),void 0!==l.endLineNumber||p[p.length-1]!==kr.Object&&(p[p.length-1]!==kr.Array||2!==i&&4!==i)||(l.endLineNumber=m,l.commaIndex=n.getTokenOffset()-u,l.commaLine=m),2!==i&&4!==i||(c=l,l=l?l.parent:void 0,a=l),f=m+1;break;case 13:5!==i||d!==n.getTokenStartLine()||(p[p.length-1]!==kr.Array||2!==s&&4!==s)&&p[p.length-1]!==kr.Object||(p[p.length-1]!==kr.Array||2!==s&&4!==s)&&p[p.length-1]!==kr.Object||(l.endLineNumber=void 0,b=!0),1!==i&&3!==i||d!==n.getTokenStartLine()||(_=!0)}14!==r&&13!==r&&12!==r&&15!==r&&(s=i,i=r,d=n.getTokenStartLine(),g=n.getTokenOffset()+n.getTokenLength()-u)}return o}(i)),o=Or(s,n,void 0),a=fn.applyEdits(s,o);return[le.replace(D.create(M.create(0,0),e.positionAt(e.getText().length)),a)]}function Br(e,t,n){if(0!==t.childrenProperties.length)if(t.type===kr.Object){let r=1/0;for(const e of t.childrenProperties)e.beginningLineNumber<r&&(r=e.beginningLineNumber);n+=r-t.beginningLineNumber,e.push(new Vr(n,t.childrenProperties))}else t.type===kr.Array&&Fr(e,t,n)}function Fr(e,t,n){for(const r of t.childrenProperties){if(r.type===kr.Object){let i=1/0;for(const e of r.childrenProperties)e.beginningLineNumber<i&&(i=e.beginningLineNumber);const s=i-r.beginningLineNumber;e.push(new Vr(n+r.beginningLineNumber-t.beginningLineNumber+s,r.childrenProperties))}r.type===kr.Array&&Fr(e,r,n+r.beginningLineNumber-t.beginningLineNumber)}}var Pr,Vr=class{constructor(e,t){this.beginningLineNumber=e,this.propertyTreeArray=t}};function zr(e,t){const n=[];return t.visit((r=>{if("property"===r.type&&"$ref"===r.keyNode.value&&"string"===r.valueNode?.type){const i=r.valueNode.value,s=function(e,t){const n=function(e){if("#"===e)return[];if("#"!==e[0]||"/"!==e[1])return null;return e.substring(2).split(/\//).map(Wr)}(t);if(!n)return null;return qr(n,e.root)}(t,i);if(s){const t=e.positionAt(s.offset);n.push({target:`${e.uri}#${t.line+1},${t.character+1}`,range:jr(e,r.valueNode)})}}return!0})),Promise.resolve(n)}function jr(e,t){return D.create(e.positionAt(t.offset+1),e.positionAt(t.offset+t.length-1))}function qr(e,t){if(!t)return null;if(0===e.length)return t;const n=e.shift();if(t&&"object"===t.type){const r=t.properties.find((e=>e.keyNode.value===n));return r?qr(e,r.valueNode):null}if(t&&"array"===t.type&&n.match(/^(0|[1-9][0-9]*)$/)){const r=Number.parseInt(n),i=t.items[r];return i?qr(e,i):null}return null}function Wr(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Ur(e){const t=e.promiseConstructor||Promise,n=new Sr(e.schemaRequestService,e.workspaceContext,t);n.setSchemaContributions(fr);const r=new er(n,e.contributions,t,e.clientCapabilities),i=new tr(n,e.contributions,t),s=new hr(n),o=new rr(n,t);return{configure:e=>{n.clearExternalSchemas(),e.schemas?.forEach(n.registerExternalSchema.bind(n)),o.configure(e)},resetSchema:e=>n.onResourceChange(e),doValidation:o.doValidation.bind(o),getLanguageStatus:o.getLanguageStatus.bind(o),parseJSONDocument:e=>Yn(e,{collectComments:!0}),newJSONDocument:(e,t)=>function(e,t=[]){return new Qn(e,t,[])}(e,t),getMatchingSchemas:n.getMatchingSchemas.bind(n),doResolve:r.doResolve.bind(r),doComplete:r.doComplete.bind(r),findDocumentSymbols:s.findDocumentSymbols.bind(s),findDocumentSymbols2:s.findDocumentSymbols2.bind(s),findDocumentColors:s.findDocumentColors.bind(s),getColorPresentations:s.getColorPresentations.bind(s),doHover:i.doHover.bind(i),getFoldingRanges:Ar,getSelectionRanges:Ir,findDefinition:()=>Promise.resolve([]),findLinks:zr,format:(e,t,n)=>Or(e,n,t),sort:(e,t)=>Dr(e,t)}}"undefined"!==typeof fetch&&(Pr=function(e){return fetch(e).then((e=>e.text()))});var $r=class{constructor(e,t){this._ctx=e,this._languageSettings=t.languageSettings,this._languageId=t.languageId,this._languageService=Ur({workspaceContext:{resolveRelativePath:(e,t)=>function(e,t){if(function(e){return e.charCodeAt(0)===Hr}(t)){const n=pr.parse(e),r=t.split("/");return n.with({path:Gr(r)}).toString()}return function(e,...t){const n=pr.parse(e),r=n.path.split("/");for(let i of t)r.push(...i.split("/"));return n.with({path:Gr(r)}).toString()}(e,t)}(t.substr(0,t.lastIndexOf("/")+1),e)},schemaRequestService:t.enableSchemaRequest?Pr:void 0,clientCapabilities:vn.LATEST}),this._languageService.configure(this._languageSettings)}async doValidation(e){let t=this._getTextDocument(e);if(t){let e=this._languageService.parseJSONDocument(t);return this._languageService.doValidation(t,e,this._languageSettings)}return Promise.resolve([])}async doComplete(e,t){let n=this._getTextDocument(e);if(!n)return null;let r=this._languageService.parseJSONDocument(n);return this._languageService.doComplete(n,t,r)}async doResolve(e){return this._languageService.doResolve(e)}async doHover(e,t){let n=this._getTextDocument(e);if(!n)return null;let r=this._languageService.parseJSONDocument(n);return this._languageService.doHover(n,t,r)}async format(e,t,n){let r=this._getTextDocument(e);if(!r)return[];let i=this._languageService.format(r,t,n);return Promise.resolve(i)}async resetSchema(e){return Promise.resolve(this._languageService.resetSchema(e))}async findDocumentSymbols(e){let t=this._getTextDocument(e);if(!t)return[];let n=this._languageService.parseJSONDocument(t),r=this._languageService.findDocumentSymbols2(t,n);return Promise.resolve(r)}async findDocumentColors(e){let t=this._getTextDocument(e);if(!t)return[];let n=this._languageService.parseJSONDocument(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.parseJSONDocument(r),s=this._languageService.getColorPresentations(r,i,t,n);return Promise.resolve(s)}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.parseJSONDocument(n),i=this._languageService.getSelectionRanges(n,t,r);return Promise.resolve(i)}async parseJSONDocument(e){let t=this._getTextDocument(e);if(!t)return null;let n=this._languageService.parseJSONDocument(t);return Promise.resolve(n)}async getMatchingSchemas(e){let t=this._getTextDocument(e);if(!t)return[];let n=this._languageService.parseJSONDocument(t);return Promise.resolve(this._languageService.getMatchingSchemas(t,n))}_getTextDocument(e){let t=this._ctx.getMirrorModels();for(let n of t)if(n.uri.toString()===e)return fn.create(e,this._languageId,n.version,n.getValue());return null}},Hr="/".charCodeAt(0),Kr=".".charCodeAt(0);function Gr(e){const t=[];for(const r of e)0===r.length||1===r.length&&r.charCodeAt(0)===Kr||(2===r.length&&r.charCodeAt(0)===Kr&&r.charCodeAt(1)===Kr?t.pop():t.push(r));e.length>1&&0===e[e.length-1].length&&t.push("");let n=t.join("/");return 0===e[0].length&&(n="/"+n),n}self.onmessage=()=>{s(((e,t)=>new $r(e,t)))}})()})();
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/114.1e565ac5.chunk.css b/ydb/core/viewer/monitoring/static/css/2031.1e565ac5.chunk.css index fc2cf1d3d8..fc2cf1d3d8 100644 --- a/ydb/core/viewer/monitoring/static/css/114.1e565ac5.chunk.css +++ b/ydb/core/viewer/monitoring/static/css/2031.1e565ac5.chunk.css diff --git a/ydb/core/viewer/monitoring/static/css/3456.a5760e03.chunk.css b/ydb/core/viewer/monitoring/static/css/431.3826ea2f.chunk.css index 76ca558883..66b142d435 100644 --- a/ydb/core/viewer/monitoring/static/css/3456.a5760e03.chunk.css +++ b/ydb/core/viewer/monitoring/static/css/431.3826ea2f.chunk.css @@ -1 +1 @@ -.kv-split{display:flex;height:100%;outline:none;-webkit-user-select:text;user-select:text;z-index:0}.kv-split.horizontal{flex-direction:row}.kv-split.vertical{flex-direction:column;min-height:100%;width:100%}.kv-split .gutter{background:var(--g-color-base-background);position:relative;z-index:10}.kv-split .gutter:after{background-color:var(--g-color-base-generic-ultralight);content:"";inset:0;position:absolute}.kv-split .gutter.active:after,.kv-split .gutter:hover:after{background-color:var(--g-color-line-generic-hover);transition:background-color 1s ease}.kv-split .gutter.disabled{display:none}.kv-split .gutter.gutter-vertical{cursor:row-resize;height:8px;width:100%}.kv-split .gutter.gutter-vertical:before{border-color:var(--g-color-base-generic-hover);border-style:solid;border-width:1px 0;content:"";height:4px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:16px}.kv-split .gutter.gutter-horizontal{cursor:col-resize;height:100%;width:8px}.kv-split .gutter.gutter-horizontal:before{border-color:var(--g-color-base-generic-hover);border-style:solid;border-width:0 1px;content:"";height:16px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:4px}.histogram{display:flex;flex:1 1 auto}.histogram__chart{align-items:baseline;border-bottom:1px solid var(--g-color-base-generic);border-left:1px solid var(--g-color-base-generic);display:flex;height:300px;margin-left:50px;margin-top:30px;position:relative;width:800px}.histogram__x-min{left:-3px}.histogram__x-max,.histogram__x-min{bottom:-25px;color:var(--g-color-text-secondary);position:absolute}.histogram__x-max{right:0}.histogram__y-min{bottom:-7px;left:-30px;width:20px}.histogram__y-max,.histogram__y-min{color:var(--g-color-text-secondary);position:absolute;text-align:right}.histogram__y-max{left:-60px;top:-5px;width:50px}.histogram__item{cursor:pointer;margin-right:.5%;width:1.5%}.heatmap{display:flex;flex:1 1 auto;flex-direction:column;height:100%;overflow:auto}.heatmap__limits{align-items:center;display:flex;margin-left:20px}.heatmap__limits-block{display:flex;margin-right:10px}.heatmap__limits-title{color:var(--g-color-text-secondary);margin-right:5px}.heatmap__row{align-items:center}.heatmap__row_overall{margin:15px 20px}.heatmap__row_overall .g-progress{margin:0;width:300px}.heatmap__label{font-size:var(--g-text-body-2-font-size);font-weight:500;line-height:var(--g-text-body-2-line-height);margin-right:16px;text-transform:uppercase}.heatmap__label_overall{margin-right:15px}.heatmap__items{overflow:auto}.heatmap__canvas-container{cursor:pointer;overflow:auto}.heatmap__filters{align-items:center;display:flex;margin:0 0 10px}.heatmap__filter-control{margin-right:10px;max-width:200px;min-width:100px}.heatmap__filter-control:last-child{margin-right:0}.heatmap__histogram-checkbox,.heatmap__sort-checkbox{margin-left:10px}.heatmap__row{display:flex}.heatmap .tablet,.heatmap__row{margin-bottom:2px}.ydb-nodes__search{width:238px}.ydb-nodes__show-all-wrapper{left:0;margin-bottom:15px;position:sticky}.ydb-nodes__node_unavailable{opacity:.6}.ydb-nodes__groups-wrapper{padding-right:20px}.ydb-resizeable-data-table{display:flex;padding-right:20px;width:max-content}.operations__search{width:220px}.kv-shorty-string__toggle{font-size:.85em;margin-left:2em}.kv-result-issues{padding:0 10px}.kv-result-issues__error-message{align-items:center;background-color:var(--g-color-base-background);display:flex;left:0;padding:10px 0;position:sticky;top:0;z-index:2}.kv-result-issues__error-message-text{margin:0 10px}.kv-issues{position:relative}.kv-issue_leaf{margin-left:31px}.kv-issue__issues{padding-left:24px}.kv-issue__line{align-items:flex-start;display:flex;margin:0 0 10px;padding:0 10px 0 0}.kv-issue__place-text{color:var(--g-color-text-secondary);display:inline-block;padding-right:10px;text-align:left}.kv-issue__message{display:flex;font-family:var(--g-font-family-monospace);font-size:var(--g-text-code-2-font-size);line-height:var(--g-text-header-2-line-height);margin-left:10px;margin-right:auto}.kv-issue__message-text{flex:1 1 auto;min-width:240px;white-space:pre-wrap;word-break:break-word}.kv-issue__code{color:var(--g-color-text-complementary);flex:0 0 auto;font-size:12px;margin-left:1.5em;padding:3px 0}.kv-issue__arrow-toggle{margin-right:5px}.yql-issue-severity{align-items:center;display:flex;line-height:28px;white-space:nowrap}.yql-issue-severity_severity_error .yql-issue-severity__icon,.yql-issue-severity_severity_fatal .yql-issue-severity__icon{color:var(--g-color-text-danger)}.yql-issue-severity_severity_warning .yql-issue-severity__icon{color:var(--g-color-text-warning)}.yql-issue-severity_severity_info .yql-issue-severity__icon{color:var(--g-color-text-info)}.yql-issue-severity__title{color:var(--g-color-text-complementary);margin-left:4px;text-transform:capitalize}.ydb-critical-dialog{padding-top:var(--g-spacing-3)}.ydb-critical-dialog__warning-icon{color:var(--ydb-color-status-yellow);margin-right:16px}.ydb-critical-dialog__error-icon{color:var(--ydb-color-status-red);height:24px;margin-right:16px}.ydb-critical-dialog__body{display:flex;flex-direction:column;gap:var(--g-spacing-6)}.ydb-critical-dialog__body-message{align-items:center;display:flex}.ydb-critical-dialog__body-message_error,.ydb-critical-dialog__body-message_warning{border:1px solid;border-radius:var(--g-modal-border-radius,5px);padding:var(--g-spacing-4) var(--g-spacing-5)}.ydb-critical-dialog__body-message_warning{border-color:var(--ydb-color-status-yellow)}.ydb-critical-dialog__body-message_error{border-color:var(--ydb-color-status-red)}.schema-viewer__keys{display:inline-block;padding-bottom:var(--g-spacing-4);padding-left:10px}.schema-viewer__keys-values{color:var(--g-color-text-complementary);display:inline;font-size:var(--g-text-body-1-font-size);line-height:var(--g-text-body-1-line-height)}.schema-viewer__keys-header{color:var(--g-color-text-primary);display:inline;font-size:var(--g-text-subheader-1-font-size);font-weight:700;line-height:var(--g-text-subheader-1-line-height);white-space:nowrap}.schema-viewer__keys-label{cursor:pointer}.schema-viewer__keys-wrapper{left:0;position:sticky;width:100%;z-index:1}.schema-viewer__keys+.schema-viewer__keys{margin-left:var(--g-spacing-8)}.schema-viewer__keys_summary+.schema-viewer__keys_summary{margin-left:0}.schema-viewer__popup-content{padding:var(--g-spacing-2) var(--g-spacing-4)}.schema-viewer__popup-item{padding-bottom:var(--g-spacing-2)}.schema-viewer__popup-item:last-child{padding-bottom:0}.schema-viewer__more-badge{margin-left:var(--g-spacing-1)}.schema-viewer__key-icon{margin-left:var(--g-spacing-half);position:absolute;top:3.5px;vertical-align:initial}.schema-viewer__id-wrapper{display:inline-block;padding-right:var(--g-spacing-1);position:relative}.ydb-diagnostics-configs__icon-touched{color:var(--g-color-text-secondary);cursor:default!important;line-height:1}.speed-multimeter{display:flex;width:100%}.speed-multimeter__content{display:flex;flex-direction:row;flex-grow:1;justify-content:flex-end;line-height:22px}.speed-multimeter__displayed-value{display:flex;flex-direction:row;justify-content:flex-end;margin-right:10px}.speed-multimeter__bars{align-items:flex-start;display:flex;flex-direction:column;margin-right:5px;overflow:hidden;width:32px}.speed-multimeter__bar-container{height:6px;width:100%}.speed-multimeter__bar-container_highlighted{background:var(--g-color-line-generic)}.speed-multimeter__bar{height:100%;min-width:2px}.speed-multimeter__bar_color_light{background:var(--g-color-base-info-medium)}.speed-multimeter__bar_color_dark{background:var(--g-color-base-info-heavy)}.speed-multimeter__bar-container+.speed-multimeter__bar-container{margin-top:2px}.speed-multimeter__popover-container{align-items:center;display:flex;justify-content:center}.speed-multimeter__popover-content{padding:10px}.speed-multimeter__popover-header{display:block;font-size:18px;line-height:24px;margin-bottom:7px}.speed-multimeter__popover-row{display:block;font-size:13px;line-height:18px}.speed-multimeter__popover-row_color_primary{color:var(--g-color-text-primary)}.speed-multimeter__popover-row_color_secondary{color:var(--g-color-text-secondary)}.ydb-diagnostics-consumers-topic-stats{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.ydb-diagnostics-consumers-topic-stats__wrapper{border-left:1px solid var(--g-color-line-generic);display:flex;flex-direction:row;padding-left:16px}.ydb-diagnostics-consumers-topic-stats__item{display:flex;flex-direction:column;margin-right:20px}.ydb-diagnostics-consumers-topic-stats__label{color:var(--g-color-text-secondary);margin-bottom:4px}.ydb-diagnostics-consumers-topic-stats__value{align-items:center;display:flex;height:30px;justify-content:flex-start}.ydb-lag-popover-content__text{margin-bottom:10px}.ydb-lag-popover-content_type_read{max-width:280px}.ydb-lag-popover-content_type_write{max-width:220px}.ydb-diagnostics-consumers-columns-header__lags{white-space:nowrap}.ydb-diagnostics-consumers-columns__lags-header{text-align:center}.ydb-diagnostics-consumers{display:flex;flex-grow:1;flex:1 1 auto;flex-direction:column;height:100%;overflow:auto}.ydb-diagnostics-consumers__controls{align-items:center;display:flex;gap:12px;padding:16px 0 18px}.ydb-diagnostics-consumers__search{width:238px}.ydb-diagnostics-consumers__table-wrapper{display:flex;flex:1 1 auto;flex-direction:column;overflow:auto}.ydb-diagnostics-consumers__table-content{height:100%;overflow:auto}.ydb-diagnostics-consumers__table .data-table__head-row:first-child .data-table__th:first-child,.ydb-diagnostics-consumers__table .data-table__td:first-child{background-color:var(--g-color-base-background);border-right:1px solid var(--g-color-line-generic);left:0;position:sticky;z-index:2000}.ydb-diagnostics-consumers__table .data-table__row:hover .data-table__td:first-child{background-color:var(--ydb-data-table-color-hover)!important}.ydb-diagnostics-consumers__table .data-table__head-row:first-child .data-table__th:nth-child(0),.ydb-diagnostics-consumers__table .data-table__td:nth-child(0){border-right:unset;box-shadow:unset}.ydb-diagnostics-consumers__table .data-table__head-row:first-child .data-table__th:first-child,.ydb-diagnostics-consumers__table .data-table__td:first-child{box-shadow:unset}.ydb-json-viewer{--data-table-row-height:20px;--toolbar-background-color:var(--g-color-base-background)}.ydb-json-viewer__toolbar{background-color:var(--toolbar-background-color);left:0;padding-bottom:var(--g-spacing-2);position:sticky;top:0;z-index:2}.ydb-json-viewer__content{font-family:var(--g-font-family-monospace)}.ydb-json-viewer__row{height:1em}.ydb-json-viewer__cell{position:relative}.ydb-json-viewer__cell,.ydb-json-viewer__cell *{white-space:nowrap!important}.ydb-json-viewer__collapsed{margin-left:-3ex;margin-top:-2px;position:absolute}.ydb-json-viewer__match-counter{text-wrap:nowrap;align-content:center;color:var(--g-color-text-secondary)}.ydb-json-viewer__key{color:var(--g-color-text-misc)}.ydb-json-viewer__value_type_string{color:var(--color-unipika-string)}.ydb-json-viewer__value_type_boolean{color:var(--color-unipika-bool)}.ydb-json-viewer__value_type_null{color:var(--color-unipika-null)}.ydb-json-viewer__value_type_int64{color:var(--color-unipika-int)}.ydb-json-viewer__value_type_double{color:var(--color-unipika-float)}.ydb-json-viewer__filter{width:300px}.ydb-json-viewer__filtered_highlighted{background-color:var(--g-color-base-generic-medium)}.ydb-json-viewer__filtered_clickable{color:var(--g-color-text-info);cursor:pointer}.ydb-json-viewer__match-btn{margin-left:-1px}.ydb-json-viewer__full-value{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);margin:var(--g-spacing-3) 0;max-height:90vh;max-width:90vw;overflow:hidden auto;word-break:break-all}.ydb-json-viewer__extra-tools{margin-left:1ex}.ydb-json-viewer .data-table__head{display:none}.ydb-json-viewer .data-table__td{overflow:visible;padding:0}.ydb-describe__message-container{padding:15px 0}.ydb-describe__result{display:flex;flex:0 0 auto;padding:0 20px 20px 0;position:relative}.ydb-external-data-source-info__location,.ydb-external-table-info__location{max-width:var(--tenant-object-info-max-value-width)}.ydb-definition-list{display:flex;flex:1 1 auto;flex-direction:column}.ydb-definition-list__title{font-size:var(--g-text-body-2-font-size);font-weight:600;line-height:var(--g-text-body-2-line-height);margin:15px 0 10px}.ydb-definition-list__properties-list{max-width:calc(100% - 40px)}.ydb-async-replication-paths__title,.ydb-overview-topic-stats__title{font-size:var(--g-text-body-2-font-size);font-weight:600;line-height:var(--g-text-body-2-line-height);margin:15px 0 10px}.ydb-overview-topic-stats .ydb-loader{margin-top:50px}.ydb-overview-topic-stats .info-viewer__row{align-items:flex-start}.ydb-overview-topic-stats .speed-multimeter{margin-top:-5px}.ydb-overview-topic-stats .speed-multimeter__content{justify-content:flex-start}.ydb-overview-topic-stats__info .info-viewer__label-text_multiline{max-width:150px}.ydb-overview-topic-stats__bytes-written{margin-top:7px;padding-left:20px}.ydb-overview-topic-stats__bytes-written .info-viewer__label{min-width:180px}.ydb-diagnostics-table-info__title{font-size:var(--g-text-body-2-font-size);font-weight:600;line-height:var(--g-text-body-2-line-height);margin:15px 0 10px}.ydb-diagnostics-table-info__row{align-items:flex-start;display:flex;flex-wrap:wrap;justify-content:flex-start}.ydb-diagnostics-table-info__col{align-items:flex-start;display:flex;flex-direction:column;justify-content:flex-start}.ydb-diagnostics-table-info__col:not(:last-child){margin-right:50px}.ydb-diagnostics-table-info__info-block{margin-bottom:20px}.ydb-diagnostics-table-info__info-block .info-viewer__items{grid-template-columns:minmax(max-content,280px)}.ydb-metric-chart{border:1px solid var(--g-color-line-generic);border-radius:8px;display:flex;flex-direction:column;padding:16px 16px 8px}.ydb-metric-chart__title{margin-bottom:10px}.ydb-metric-chart__chart{display:flex;height:100%;overflow:hidden;position:relative;width:100%}.ydb-metric-chart__error{left:50%;position:absolute;text-align:center;top:10%;transform:translateX(-50%);z-index:1}.ydb-timeframe-selector{display:flex;gap:2px}.ydb-tenant-dashboard{margin-bottom:var(--diagnostics-section-margin);width:var(--diagnostics-section-table-width)}.ydb-tenant-dashboard__controls{margin-bottom:10px}.ydb-tenant-dashboard__charts{display:flex;flex-flow:row wrap;gap:16px}.issue-tree-item{align-items:center;cursor:pointer;display:flex;height:40px;justify-content:space-between}.issue-tree-item__field{display:flex;overflow:hidden}.issue-tree-item__field_status{display:flex;white-space:nowrap}.issue-tree-item__field_additional{color:var(--g-color-text-link);cursor:pointer;width:max-content}.issue-tree-item__field_additional:hover{color:var(--g-color-text-link-hover)}.issue-tree-item__field_message{flex-shrink:0;overflow:hidden;white-space:normal;width:300px}.issue-tree-item__field-tooltip.issue-tree-item__field-tooltip{max-width:500px;min-width:500px}.issue-tree-item__field-label{color:var(--g-color-text-secondary)}.issue-tree{display:flex}.issue-tree__block{width:100%}.issue-tree__checkbox{margin:5px 0 10px}.issue-tree__info-panel{background:var(--g-color-base-generic);border-radius:4px;height:100%;margin:11px 0;padding:8px 20px;position:sticky}.issue-tree__info-panel .ydb-json-viewer{--toolbar-background-color:var(--g-color-base-simple-hover-solid)}.issue-tree .ydb-tree-view__item{height:40px}.issue-tree .ydb-tree-view .tree-view_arrow{height:40px;width:40px}.issue-tree .ydb-tree-view .ydb-tree-view__item{margin-left:calc(24px*var(--ydb-tree-view-level))!important;padding-left:0!important}.issue-tree .ydb-tree-view .issue-tree__info-panel{margin-left:calc(24px*var(--ydb-tree-view-level))}.healthcheck__details{width:872px}.healthcheck__details-content-wrapper{overflow-x:hidden}.healthcheck__preview{display:flex;flex-direction:column;height:100%}.healthcheck__preview-title{color:var(--g-color-text-link);font-size:var(--g-text-subheader-3-font-size);font-weight:600;line-height:var(--g-text-subheader-3-line-height)}.healthcheck__preview-content{line-height:24px;margin:auto}.healthcheck__preview-status-icon{height:64px;width:64px}.healthcheck__preview-title-wrapper{align-items:center;display:flex;gap:8px;margin-bottom:4px}.healthcheck__preview-issue{align-items:center;display:flex;flex-direction:column;gap:4px;position:relative;top:-8px}.healthcheck__preview-issue_good{color:var(--g-color-text-positive)}.healthcheck__preview-issue_good .healthcheck__self-check-status-indicator{background-color:var(--g-color-base-positive-light)}.healthcheck__preview-issue_degraded{color:var(--g-color-text-info)}.healthcheck__preview-issue_degraded .healthcheck__self-check-status-indicator{background-color:var(--g-color-base-info-light)}.healthcheck__preview-issue_emergency{color:var(--g-color-text-danger)}.healthcheck__preview-issue_emergency .healthcheck__self-check-status-indicator{background-color:var(--g-color-base-danger-light)}.healthcheck__preview-issue_unspecified{color:var(--g-color-text-misc)}.healthcheck__preview-issue_unspecified .healthcheck__self-check-status-indicator{background-color:var(--g-color-base-misc-light)}.healthcheck__preview-issue_maintenance_required{color:var(--g-color-text-warning-heavy)}.healthcheck__preview-issue_maintenance_required .healthcheck__self-check-status-indicator{background-color:var(--g-color-base-warning-light)}.healthcheck__self-check-status-indicator{text-wrap:nowrap;border-radius:4px;display:inline-block;font-size:13px;line-height:24px;padding:0 8px}.healthcheck__icon-warn{color:var(--g-color-text-warning)}.healthcheck__icon-wrapper{display:flex}.ydb-diagnostic-card{background-color:#0000;border:1px solid var(--g-color-line-generic);border-radius:8px;flex-shrink:0;padding:16px 16px 28px}.ydb-diagnostic-card_active{background-color:var(--g-color-base-selection);border-color:var(--g-color-base-info-medium)}.ydb-diagnostic-card_interactive:hover{box-shadow:0 1px 5px var(--g-color-sfx-shadow);cursor:pointer}.ydb-diagnostic-card_size_m{min-width:206px;width:206px}.ydb-diagnostic-card_size_l{min-width:289px;width:289px}.ydb-diagnostic-card_size_s{min-width:134px;width:134px}.ydb-metrics-card{min-height:252px}.ydb-metrics-card__header{align-items:center;display:flex;gap:8px;justify-content:space-between;margin-bottom:10px}.ydb-metrics-card__label{color:var(--g-color-text-link);font-size:var(--g-text-subheader-3-font-size);font-weight:600;line-height:var(--g-text-subheader-3-line-height)}.ydb-metrics-card__content{color:var(--g-color-text-secondary);display:flex;flex-direction:column;gap:10px}.ydb-metrics-card__metric-title{height:var(--g-text-body-2-line-height)}.ydb-metrics-card_active .ydb-metrics-card__content{color:var(--g-color-text-complementary)}.metrics-cards{display:flex;gap:16px;margin-bottom:32px}.metrics-cards__tab{color:inherit;text-decoration:none}.confirmation-dialog__caption,.confirmation-dialog__message{white-space:pre-wrap}.ydb-save-query__dialog-row{align-items:flex-start;display:flex}.ydb-save-query__dialog-row+.ydb-save-query__dialog-row{margin-top:var(--g-text-body-1-line-height)}.ydb-save-query__field-title{font-weight:500;line-height:28px;margin-right:12px;white-space:nowrap}.ydb-save-query__field-title.required:after{color:var(--g-color-text-danger);content:"*"}.ydb-save-query__control-wrapper{display:flex;flex-grow:1;min-height:48px}.kv-truncated-query{max-width:100%;vertical-align:top;white-space:pre;word-break:break-word}.kv-truncated-query__message{white-space:pre-wrap}.kv-truncated-query__message_color_secondary{color:var(--g-color-text-secondary)}.kv-top-queries{display:flex;flex-direction:column;height:100%}.kv-top-queries .data-table__box .data-table__table-wrapper{padding-bottom:20px}.kv-top-queries .data-table__th{box-shadow:inset 0 -1px 0 0 var(--g-tabs-color-divider)}.kv-top-queries__search{width:238px}.kv-top-queries__row{cursor:pointer}.kv-top-queries__query{overflow:hidden;text-overflow:ellipsis;vertical-align:top;white-space:pre-wrap;word-break:break-word}.kv-top-queries__user-sid{max-width:200px;overflow:hidden;text-overflow:ellipsis}.tenant-overview{height:100%;overflow:auto;padding-bottom:20px}.tenant-overview__loader{display:flex;justify-content:center}.tenant-overview__tenant-name-wrapper{align-items:center;display:flex;overflow:hidden}.tenant-overview__top{align-items:center;display:flex;gap:4px;line-height:24px;margin-bottom:10px}.tenant-overview__top-label{font-weight:600;gap:10px;line-height:24px;margin-bottom:var(--diagnostics-section-title-margin)}.tenant-overview__info{left:0;position:sticky;width:max-content}.tenant-overview__title{font-size:var(--g-text-body-2-font-size);font-weight:700;line-height:var(--g-text-body-2-line-height);margin-bottom:10px}.tenant-overview__table:not(:last-child){margin-bottom:var(--diagnostics-section-margin)}.tenant-overview__top-queries-row{cursor:pointer}.tenant-overview__storage-info{margin-bottom:36px}.tenant-overview__memory-info{margin-bottom:36px;width:300px}.kv-detailed-overview{display:flex;flex-direction:column;gap:20px;height:100%;width:100%}.kv-detailed-overview__section{display:flex;flex-basis:calc(50% - 10px);flex-direction:column;flex-grow:1;flex-shrink:0;min-width:300px}.kv-detailed-overview__modal .g-modal__content{position:relative}.kv-detailed-overview__close-modal-button{position:absolute;right:13px;top:23px}.ydb-hot-keys__primary-key-column{align-items:center;display:flex;gap:5px}.ydb-hot-keys__help-card{left:0;margin-bottom:20px;padding:20px 40px 20px 20px;position:sticky}.ydb-hot-keys__help-card__close-button{position:absolute;right:5px;top:5px}.node-network{border:1px solid #0000;border-radius:4px;box-sizing:border-box;color:var(--g-color-text-complementary);cursor:pointer;display:inline-block;font-size:12px;height:14px;line-height:14px;margin-bottom:5px;margin-right:5px;padding:0 5px;text-align:center;text-transform:uppercase;width:14px}.node-network_id{height:14px;width:42px}.node-network_blur{opacity:.25}.node-network_grey{background:var(--ydb-color-status-grey)}.node-network_black{background-color:var(--ydb-color-status-black);color:var(--g-color-text-light-primary)}.node-network_green{background-color:var(--ydb-color-status-green)}.node-network_yellow{background-color:var(--ydb-color-status-yellow)}.node-network_red{background-color:var(--ydb-color-status-red)}.node-network:hover{border:1px solid var(--g-color-text-primary)}.network{flex-direction:column;font-size:var(--g-text-body-2-font-size);justify-content:space-between;line-height:var(--g-text-body-2-line-height);max-width:1305px}.network,.network__nodes-row{display:flex;flex-grow:1;height:100%;overflow:auto}.network__nodes-row{align-items:flex-start;flex-direction:row}.network__inner{display:flex;flex:1 1 auto;flex-direction:column;overflow:auto}.network__right{height:100%;padding-left:20px;width:100%}.network__left{border-right:1px solid var(--g-color-base-generic-accent);height:100%}.network__placeholder{align-items:center;display:flex;flex-direction:column;flex-grow:1;height:100%;justify-content:center;width:100%}.network__placeholder-text{margin-top:15px}.network__placeholder-img{color:#0000}.network__nodes{display:flex;flex-wrap:wrap}.network__nodes-container{min-width:325px}.network__nodes-container_right{margin-right:60px}.network__nodes-title{border-bottom:1px solid var(--g-color-base-generic-accent);color:var(--g-color-text-secondary);font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);margin:0 0 15px}.network__link{color:var(--g-color-base-brand);text-decoration:none}.network__title{font-size:var(--g-text-body-1-font-size);font-weight:500;line-height:var(--g-text-body-1-line-height);margin:20px 0}.network__checkbox-wrapper{align-items:center;display:flex}.network__checkbox-wrapper label{white-space:nowrap}.network__label{margin-bottom:16px}.network__controls{display:flex;gap:12px;margin:0 16px 16px 0}.network__controls-wrapper{display:flex;flex:1 1 auto;flex-direction:row;flex-direction:column}.network__select{margin:0 15px;max-width:115px}.network__rack-column{align-items:center;background-color:#00000012;border-radius:4px;display:flex;flex-direction:column;margin-bottom:5px;margin-right:5px;padding:2px}.network__rack-column .node-network{margin-right:0}.ydb-diagnostics-partitions-columns-header__multiline{white-space:normal}.ydb-diagnostics-partitions-columns-header__read-session{white-space:normal;width:80px}.ydb-diagnostics-partitions-columns-header__lags{white-space:nowrap}.ydb-diagnostics-partitions-columns-header__messages{white-space:normal;width:90px}.ydb-diagnostics-partitions-columns-header__messages-popover-content{max-width:200px}.ydb-diagnostics-partitions-columns__lags-header{text-align:center}.ydb-diagnostics-partitions{display:flex;flex-grow:1;flex:1 1 auto;flex-direction:column;height:100%;overflow:auto}.ydb-diagnostics-partitions__controls{align-items:center;display:flex;gap:12px;padding:16px 0 18px}.ydb-diagnostics-partitions__consumer-select{width:220px}.ydb-diagnostics-partitions__select-option_empty{color:var(--g-color-text-hint)}.ydb-diagnostics-partitions__search{width:238px}.ydb-diagnostics-partitions__search_partition{width:100px}.ydb-diagnostics-partitions__search_general{width:280px}.ydb-diagnostics-partitions__table-wrapper{display:flex;flex:1 1 auto;flex-direction:column;overflow:auto}.ydb-diagnostics-partitions__table-content{height:100%;overflow:auto}.ydb-diagnostics-partitions__table .data-table__head-row:first-child .data-table__th:first-child,.ydb-diagnostics-partitions__table .data-table__td:first-child{background-color:var(--g-color-base-background);border-right:1px solid var(--g-color-line-generic);left:0;position:sticky;z-index:2000}.ydb-diagnostics-partitions__table .data-table__row:hover .data-table__td:first-child{background-color:var(--ydb-data-table-color-hover)!important}.ydb-diagnostics-partitions__table .data-table__head-row:first-child .data-table__th:nth-child(0),.ydb-diagnostics-partitions__table .data-table__td:nth-child(0){border-right:unset;box-shadow:unset}.ydb-diagnostics-partitions__table .data-table__head-row:first-child .data-table__th:first-child,.ydb-diagnostics-partitions__table .data-table__td:first-child{box-shadow:unset}.date-range__range-input_s{width:200px}.date-range__range-input_m{width:300px}.date-range__range-input_l{width:350px}.date-range__range-input input{cursor:pointer}.top-shards__hint{left:0;position:sticky;width:max-content}.kv-tenant-diagnostics{display:flex;flex-direction:column;height:100%;overflow:hidden}.kv-tenant-diagnostics__header-wrapper{background-color:var(--g-color-base-background);padding:0 20px 16px}.kv-tenant-diagnostics__tabs{--g-tabs-border-width:0;align-items:center;box-shadow:inset 0 -1px 0 0 var(--g-color-line-generic);display:flex;justify-content:space-between}.kv-tenant-diagnostics__tabs .g-tabs_direction_horizontal{box-shadow:unset}.kv-tenant-diagnostics__tab{margin-right:40px;text-decoration:none}.kv-tenant-diagnostics__tab:first-letter{text-transform:uppercase}.kv-tenant-diagnostics__page-wrapper{flex-grow:1;overflow:auto;padding:0 20px;width:100%}.kv-tenant-diagnostics__page-wrapper .ydb-table-with-controls-layout__controls{height:46px;padding-top:0}.kv-tenant-diagnostics__page-wrapper .ydb-table-with-controls-layout .data-table__sticky_moving,.kv-tenant-diagnostics__page-wrapper .ydb-table-with-controls-layout .ydb-paginated-table__head{top:46px!important}.ydb-queries-history{display:flex;flex:1 1 auto;flex-direction:column;height:100%;overflow:auto;padding:0 20px}.ydb-queries-history .ydb-table-with-controls-layout__controls{height:46px;padding-top:0}.ydb-queries-history.ydb-table-with-controls-layout .data-table__sticky_moving{top:46px!important}.ydb-queries-history__search{width:238px}.ydb-queries-history__table-row{cursor:pointer}.ydb-queries-history__query{flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:pre}.kv-pane-visibility-button_hidden{display:none}.kv-pane-visibility-button_bottom{transform:rotate(180deg)}.kv-pane-visibility-button_bottom.rotate{transform:rotate(0)}.kv-pane-visibility-button_left{transform:rotate(-90deg)}.kv-pane-visibility-button_left.rotate{transform:rotate(90deg)}.kv-pane-visibility-button_top.rotate{transform:rotate(180deg)}.ydb-fullscreen{flex-grow:1;overflow:hidden}.ydb-fullscreen_fullscreen{background-color:var(--g-color-base-background);inset:0;position:absolute;z-index:10}.ydb-fullscreen__close-button{display:none;position:fixed;right:20px;top:8px;z-index:11}.ydb-fullscreen_fullscreen .ydb-fullscreen__close-button{display:block}.ydb-fullscreen__content{display:flex;height:100%;overflow:auto;width:100%}.ydb-query-result-table__cell{cursor:pointer;display:inline-block;max-width:600px;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;white-space:nowrap;width:100%}.ydb-query-result-table__message{padding:15px 10px}.ydb-query-result-table__table-wrapper{height:0}.kv-preview{display:flex;flex:1 1 auto;flex-direction:column;height:100%}.kv-preview .data-table__box .data-table__table-wrapper{padding-bottom:20px}.kv-preview .data-table__th{box-shadow:inset 0 -1px 0 0 var(--g-tabs-color-divider)}.kv-preview__header{align-items:center;background-color:var(--g-color-base-background);border-bottom:1px solid var(--g-color-line-generic);display:flex;flex-shrink:0;height:53px;justify-content:space-between;padding:0 20px;position:sticky;top:0}.kv-preview__title{display:flex;gap:var(--g-spacing-1)}.kv-preview__table-name{color:var(--g-color-text-complementary);margin-left:var(--g-spacing-1)}.kv-preview__controls-left{display:flex;gap:var(--g-spacing-1)}.kv-preview__message-container{padding:15px 20px}.kv-preview__loader-container{align-items:center;display:flex;height:100%;justify-content:center}.kv-preview__result{overflow:auto;padding-left:10px;width:100%}.ydb-query-settings-description__message{display:flex;flex-wrap:wrap;white-space:pre}.ydb-query-editor-controls{align-items:flex-end;display:flex;flex:0 0 40px;gap:24px;justify-content:space-between;min-height:40px;padding:5px 0}.ydb-query-editor-controls__left,.ydb-query-editor-controls__right{display:flex;gap:12px}.ydb-query-editor-controls__mode-selector__button{margin-left:2px;width:241px}.ydb-query-editor-controls__mode-selector__button-content{align-items:center;display:flex;justify-content:space-between;width:215px}.ydb-query-editor-controls__mode-selector__popup{width:241px}.ydb-query-editor-controls__item-with-popover{align-items:center;display:flex;height:24px;line-height:normal}.ydb-query-editor-controls__popover{max-width:420px;white-space:pre-wrap}.kv-divider{background-color:var(--g-color-line-generic);height:100%;margin:0 4px;width:1px}.kv-query-execution-status{align-items:center;color:var(--g-color-text-complementary);display:flex;gap:4px}.kv-query-execution-status__result-status-icon{color:var(--g-color-text-positive)}.kv-query-execution-status__result-status-icon_error{color:var(--g-color-text-danger)}.kv-query-execution-status__query-settings-icon{color:var(--g-color-text-hint)}.cancel-query-button__stop-button_error{animation:errorAnimation .5s linear}@keyframes errorAnimation{41%,8%{transform:translateX(-2px)}25%,58%{transform:translateX(2px)}75%{transform:translateX(-1px)}92%{transform:translateX(1px)}0%,to{transform:translateX(0)}}.ydb-query-duration{align-items:center;color:var(--g-color-text-complementary);display:flex;margin-left:10px}.ydb-query-duration__item-with-popover{display:flex;white-space:nowrap}.ydb-query-duration__popover{align-items:center;display:flex}.ydb-query-duration__popover-content{max-width:300px}.ydb-query-duration__popover-button{display:flex}.ydb-query-settings-banner{margin:var(--g-spacing-1) var(--g-spacing-5)}.ydb-query-ast{height:100%;overflow:hidden;white-space:pre-wrap;width:100%}.ydb-query-result-stub-message{padding:15px 20px}.ydb-query-explain-graph__canvas-container{height:100%;overflow-y:auto;width:100%}.query-info-dropdown__menu-item{align-items:start}.query-info-dropdown__menu-item-content{display:flex;flex-direction:column;padding:var(--g-spacing-1) 0}.query-info-dropdown__icon{margin-right:var(--g-spacing-2);margin-top:var(--g-spacing-2)}.ydb-query-json-viewer{height:100%;padding:15px 0;width:100%}.ydb-query-json-viewer__tree{height:100%;overflow-y:auto;padding:0 10px;width:100%}.ydb-query-result-error__message{padding:15px 10px}.ydb-query-result-sets-viewer__tabs{padding-left:10px}.ydb-query-result-sets-viewer__head{margin-top:var(--g-spacing-4)}.ydb-query-result-sets-viewer__row-count{margin-left:var(--g-spacing-1)}.ydb-query-result-sets-viewer__result-wrapper{display:flex;flex-direction:column;width:100%}.ydb-query-result-sets-viewer__result{display:flex;flex-direction:column;flex-grow:1;overflow:auto;padding-left:10px}.ydb-query-result-sets-viewer__result .data-table__box .data-table__table-wrapper{padding-bottom:20px}.ydb-query-result-sets-viewer__result .data-table__th{box-shadow:inset 0 -1px 0 0 var(--g-tabs-color-divider)}.ydb-query-result-sets-viewer__result .data-table__table-wrapper{padding-bottom:0}.ydb-table{--ydb-table-cell-height:40px}.ydb-table__table-header-content{align-items:center;border-bottom:1px solid var(--g-color-line-generic);display:inline-flex;height:100%;padding:var(--g-spacing-1) var(--g-spacing-2);width:100%}.ydb-table__table{border-collapse:collapse;border-spacing:0;table-layout:fixed}.ydb-table__table tr:hover{background-color:var(--g-color-base-simple-hover)!important}.ydb-table__table tr:nth-of-type(odd){background-color:var(--g-color-base-generic-ultralight)}.ydb-table__table_width_max{width:100%}.ydb-table__table-header-cell{background-color:var(--g-color-base-background);font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-2-font-size);font-weight:var(--g-text-subheader-font-weight);height:var(--ydb-table-cell-height)!important;line-height:var(--g-text-subheader-2-line-height);padding:0;text-align:left;vertical-align:middle}:is(.ydb-table__table-header-cell_align_right) .ydb-table__table-header-content{justify-content:flex-end;text-align:right}.ydb-table__table-cell{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);height:var(--ydb-table-cell-height)!important;line-height:var(--g-text-body-2-line-height);padding:0}.ydb-table__table-cell_align_right{text-align:right!important}.ydb-table__table-cell_vertical-align_top{vertical-align:top!important}.ydb-query-simplified-plan{height:100%;overflow:auto;padding:0 15px 15px;width:100%}.ydb-query-simplified-plan__name{align-items:center;display:flex;gap:var(--g-spacing-1);max-width:100%}.ydb-query-simplified-plan__metrics-cell{padding:var(--g-spacing-1) var(--g-spacing-2)}.ydb-query-simplified-plan__operation-params{color:var(--g-color-text-secondary)}.ydb-query-simplified-plan__operation-name{font-weight:500;height:100%;max-width:100%;position:relative}.ydb-query-simplified-plan__divider{bottom:0;box-shadow:1px 0 0 0 var(--g-color-line-generic) inset;height:100%;position:absolute;width:12px}.ydb-query-simplified-plan__divider_last{border-radius:0 0 0 1px;bottom:unset;box-shadow:1px -1px 0 0 var(--g-color-line-generic) inset;height:14px;top:0;width:12px}.ydb-query-simplified-plan__divider_horizontal{bottom:unset;box-shadow:0 -1px 0 0 var(--g-color-line-generic) inset;height:14px;top:0;width:12px}.ydb-query-simplified-plan__divider_first{height:calc(100% - 30px)}.ydb-query-simplified-plan__operation-content{height:100%;max-width:100%;padding:var(--g-spacing-1) 0;word-break:break-word}.ydb-query-simplified-plan__operation-name-content{display:flex;flex-grow:1}.ydb-query-result__controls{align-items:center;background-color:var(--g-color-base-background);border-bottom:1px solid var(--g-color-line-generic);display:flex;height:53px;justify-content:space-between;padding:12px 20px;position:sticky;top:0;z-index:2}.ydb-query-result__controls-left{align-items:center;display:flex;gap:12px;height:100%}.ydb-query-result__controls-right{display:flex;gap:4px}.ydb-query-result__elapsed-label{margin-left:var(--g-spacing-3)}.ydb-query-settings-select__selector{width:100%}.ydb-query-settings-select__popup{max-width:320px}.ydb-query-settings-select__item-description{color:var(--g-color-text-secondary);white-space:pre-wrap}.ydb-query-settings-select__item{padding:var(--g-spacing-1) 0}.ydb-query-settings-dialog__dialog-row+.ydb-query-settings-dialog__dialog-row{margin-top:var(--g-text-body-1-line-height)}.ydb-query-settings-dialog__field-title{flex:4 1;font-weight:500;line-height:var(--g-text-header-2-line-height);margin-right:var(--g-spacing-3);white-space:nowrap}.ydb-query-settings-dialog .g-dialog-footer__bts-wrapper{width:100%}.ydb-query-settings-dialog__dialog-body{padding-top:var(--g-spacing-6)}.ydb-query-settings-dialog__control-wrapper{display:flex;flex:6 1}.ydb-query-settings-dialog__limit-rows,.ydb-query-settings-dialog__timeout{margin-right:var(--g-spacing-2);width:33.3%}.ydb-query-settings-dialog__documentation-link,.ydb-query-settings-dialog__timeout-suffix{align-items:center;color:var(--g-color-text-secondary);display:flex}.ydb-query-settings-dialog__documentation-link{margin-left:var(--g-spacing-4)}.ydb-query-settings-dialog__buttons-container{display:flex;justify-content:space-between;width:100%}.ydb-query-settings-dialog__main-buttons{display:flex;gap:10px}.query-editor{display:flex;flex:1 1 auto;flex-direction:column;height:100%;position:relative}.query-editor .data-table__box .data-table__table-wrapper{padding-bottom:20px}.query-editor .data-table__th{box-shadow:inset 0 -1px 0 0 var(--g-tabs-color-divider)}.query-editor .data-table__box .data-table__table-wrapper{padding-bottom:0}.query-editor__monaco{border:1px solid var(--g-color-line-generic);display:flex;height:100%;position:relative;width:100%}.query-editor__monaco-wrapper{height:calc(100% - 49px);min-height:0;width:100%}.query-editor__pane-wrapper{background-color:var(--g-color-base-background);display:flex;flex-direction:column;z-index:2}.query-editor__pane-wrapper_top{border-bottom:1px solid var(--g-color-line-generic);padding:0 16px}.ydb-saved-queries{display:flex;flex:1 1 auto;flex-direction:column;height:100%;overflow:auto;padding:0 20px}.ydb-saved-queries .ydb-table-with-controls-layout__controls{height:46px;padding-top:0}.ydb-saved-queries.ydb-table-with-controls-layout .data-table__sticky_moving{top:46px!important}.ydb-saved-queries__search{width:238px}.ydb-saved-queries__row{cursor:pointer}.ydb-saved-queries__row :hover .ydb-saved-queries__controls{display:flex}.ydb-saved-queries__query-name{overflow:hidden;text-overflow:ellipsis;white-space:pre-wrap}.ydb-saved-queries__query{align-items:center;display:flex;flex-direction:row;justify-content:space-between}.ydb-saved-queries__query-body{flex-grow:1;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:pre}.ydb-saved-queries__controls{display:none}.ydb-saved-queries__dialog-query-name{font-weight:500}.ydb-query{display:flex;flex:1 1 auto;flex-direction:column;max-height:calc(100% - 56px)}.ydb-query__tabs{padding:0 20px 16px}.ydb-query__content{height:100%;overflow:hidden}.ydb-tenant-navigation{padding:12px 16px 8px}.ydb-tenant-navigation__item{align-items:center;display:flex;gap:5px}.ydb-tenant-navigation__icon{flex-shrink:0}.ydb-tenant-navigation__text{overflow:hidden;text-overflow:ellipsis}.object-general{display:flex;flex-direction:column;flex-grow:1;height:100%;max-height:100%;width:100%}.object-general__loader{display:flex}.ydb-acl{width:100%}.ydb-acl__result{padding-bottom:var(--g-spacing-4);padding-left:var(--g-spacing-2)}.ydb-acl__result_no-title{margin-top:var(--g-spacing-3)}.ydb-acl__definition-content{align-items:flex-end;display:flex;flex-direction:column}.ydb-acl__list-title{font-weight:600;margin:var(--g-spacing-3) 0 var(--g-spacing-5)}.ydb-acl__group-label,.ydb-acl__list-title{font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-2-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-2-line-height)}.ydb-schema-create-directory-dialog__label{display:flex;flex-direction:column;margin-bottom:8px}.ydb-schema-create-directory-dialog__description{color:var(--g-color-text-secondary)}.ydb-schema-create-directory-dialog__input-wrapper{min-height:48px}.ydb-object-summary{height:100%;max-height:100%;overflow:hidden;width:100%}.ydb-object-summary,.ydb-object-summary__overview-wrapper{display:flex;flex-direction:column;flex-grow:1;position:relative}.ydb-object-summary__overview-wrapper{overflow:auto;padding:0 12px 16px}.ydb-object-summary_hidden{visibility:hidden}.ydb-object-summary__actions{background-color:var(--g-color-base-background);position:absolute;right:5px;top:19px}.ydb-object-summary__button_hidden{display:none}.ydb-object-summary__tree-wrapper{display:flex;flex-direction:column}.ydb-object-summary__tree{flex:1 1 auto;height:100%;overflow-y:scroll;padding:0 12px 12px 16px}.ydb-object-summary__tree-header{padding:23px 12px 17px 20px}.ydb-object-summary__sticky-top{background-color:var(--g-color-base-background);left:0;position:sticky;top:0;z-index:5}.ydb-object-summary__tabs{padding:8px 12px 16px}.ydb-object-summary__tabs-inner{--g-tabs-border-width:0;box-shadow:inset 0 -1px 0 0 var(--g-color-line-generic)}.ydb-object-summary__tab{text-decoration:none}.ydb-object-summary__info{display:flex;flex-direction:column;overflow:hidden}.ydb-object-summary__info-controls{display:flex;gap:4px}.ydb-object-summary__info-action-button{background-color:var(--g-color-base-background)}.ydb-object-summary__info-action-button_hidden{display:none}.ydb-object-summary__rotated90{transform:rotate(-90deg)}.ydb-object-summary__rotated180{transform:rotate(180deg)}.ydb-object-summary__rotated270{transform:rotate(90deg)}.ydb-object-summary__info-header{align-items:center;border-bottom:1px solid var(--g-color-line-generic);display:flex;justify-content:space-between;padding:12px 12px 10px}.ydb-object-summary__info-title{align-items:center;display:flex;font-weight:600;overflow:hidden}.ydb-object-summary__path-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ydb-object-summary__entity-type{background-color:var(--g-color-base-generic);border-radius:3px;display:inline-block;font-weight:400;margin-right:5px;padding:3px 8px;text-transform:lowercase}.ydb-object-summary__entity-type_error{background-color:#0000;padding:3px 0}.ydb-object-summary__overview-title{font-size:var(--g-text-body-2-font-size);font-weight:600;line-height:var(--g-text-body-2-line-height);margin:15px 0 10px}.ydb-object-summary__overview-item-content{text-align:end;white-space:nowrap}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.tenant-page{display:flex;flex:1 1 auto;flex-direction:column;font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);overflow:hidden}.tenant-page__main{flex-grow:1}
\ No newline at end of file +.kv-split{display:flex;height:100%;outline:none;-webkit-user-select:text;user-select:text;z-index:0}.kv-split.horizontal{flex-direction:row}.kv-split.vertical{flex-direction:column;min-height:100%;width:100%}.kv-split .gutter{background:var(--g-color-base-background);position:relative;z-index:10}.kv-split .gutter:after{background-color:var(--g-color-base-generic-ultralight);content:"";inset:0;position:absolute}.kv-split .gutter.active:after,.kv-split .gutter:hover:after{background-color:var(--g-color-line-generic-hover);transition:background-color 1s ease}.kv-split .gutter.disabled{display:none}.kv-split .gutter.gutter-vertical{cursor:row-resize;height:8px;width:100%}.kv-split .gutter.gutter-vertical:before{border-color:var(--g-color-base-generic-hover);border-style:solid;border-width:1px 0;content:"";height:4px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:16px}.kv-split .gutter.gutter-horizontal{cursor:col-resize;height:100%;width:8px}.kv-split .gutter.gutter-horizontal:before{border-color:var(--g-color-base-generic-hover);border-style:solid;border-width:0 1px;content:"";height:16px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:4px}.histogram{display:flex;flex:1 1 auto}.histogram__chart{align-items:baseline;border-bottom:1px solid var(--g-color-base-generic);border-left:1px solid var(--g-color-base-generic);display:flex;height:300px;margin-left:50px;margin-top:30px;position:relative;width:800px}.histogram__x-min{left:-3px}.histogram__x-max,.histogram__x-min{bottom:-25px;color:var(--g-color-text-secondary);position:absolute}.histogram__x-max{right:0}.histogram__y-min{bottom:-7px;left:-30px;width:20px}.histogram__y-max,.histogram__y-min{color:var(--g-color-text-secondary);position:absolute;text-align:right}.histogram__y-max{left:-60px;top:-5px;width:50px}.histogram__item{cursor:pointer;margin-right:.5%;width:1.5%}.heatmap{display:flex;flex:1 1 auto;flex-direction:column;height:100%;overflow:auto}.heatmap__limits{align-items:center;display:flex;margin-left:20px}.heatmap__limits-block{display:flex;margin-right:10px}.heatmap__limits-title{color:var(--g-color-text-secondary);margin-right:5px}.heatmap__row{align-items:center}.heatmap__row_overall{margin:15px 20px}.heatmap__row_overall .g-progress{margin:0;width:300px}.heatmap__label{font-size:var(--g-text-body-2-font-size);font-weight:500;line-height:var(--g-text-body-2-line-height);margin-right:16px;text-transform:uppercase}.heatmap__label_overall{margin-right:15px}.heatmap__items{overflow:auto}.heatmap__canvas-container{cursor:pointer;overflow:auto}.heatmap__filters{align-items:center;display:flex;margin:0 0 10px}.heatmap__filter-control{margin-right:10px;max-width:200px;min-width:100px}.heatmap__filter-control:last-child{margin-right:0}.heatmap__histogram-checkbox,.heatmap__sort-checkbox{margin-left:10px}.heatmap__row{display:flex}.heatmap .tablet,.heatmap__row{margin-bottom:2px}.ydb-nodes__search{width:238px}.ydb-nodes__show-all-wrapper{left:0;margin-bottom:15px;position:sticky}.ydb-nodes__node_unavailable{opacity:.6}.ydb-nodes__groups-wrapper{padding-right:20px}.ydb-resizeable-data-table{display:flex;padding-right:20px;width:max-content}.operations__search{width:220px}.kv-shorty-string__toggle{font-size:.85em;margin-left:2em}.kv-result-issues{padding:0 10px}.kv-result-issues__error-message{align-items:center;background-color:var(--g-color-base-background);display:flex;left:0;padding:10px 0;position:sticky;top:0;z-index:2}.kv-result-issues__error-message-text{margin:0 10px}.kv-issues{position:relative}.kv-issue_leaf{margin-left:31px}.kv-issue__issues{padding-left:24px}.kv-issue__line{align-items:flex-start;display:flex;margin:0 0 10px;padding:0 10px 0 0}.kv-issue__place-text{color:var(--g-color-text-secondary);display:inline-block;padding-right:10px;text-align:left}.kv-issue__message{display:flex;font-family:var(--g-font-family-monospace);font-size:var(--g-text-code-2-font-size);line-height:var(--g-text-header-2-line-height);margin-left:10px;margin-right:auto}.kv-issue__message-text{flex:1 1 auto;min-width:240px;white-space:pre-wrap;word-break:break-word}.kv-issue__code{color:var(--g-color-text-complementary);flex:0 0 auto;font-size:12px;margin-left:1.5em;padding:3px 0}.kv-issue__arrow-toggle{margin-right:5px}.yql-issue-severity{align-items:center;display:flex;line-height:28px;white-space:nowrap}.yql-issue-severity_severity_error .yql-issue-severity__icon,.yql-issue-severity_severity_fatal .yql-issue-severity__icon{color:var(--g-color-text-danger)}.yql-issue-severity_severity_warning .yql-issue-severity__icon{color:var(--g-color-text-warning)}.yql-issue-severity_severity_info .yql-issue-severity__icon{color:var(--g-color-text-info)}.yql-issue-severity__title{color:var(--g-color-text-complementary);margin-left:4px;text-transform:capitalize}.ydb-critical-dialog{padding-top:var(--g-spacing-3)}.ydb-critical-dialog__warning-icon{color:var(--ydb-color-status-yellow);margin-right:16px}.ydb-critical-dialog__error-icon{color:var(--ydb-color-status-red);height:24px;margin-right:16px}.ydb-critical-dialog__body{display:flex;flex-direction:column;gap:var(--g-spacing-6)}.ydb-critical-dialog__body-message{align-items:center;display:flex}.ydb-critical-dialog__body-message_error,.ydb-critical-dialog__body-message_warning{border:1px solid;border-radius:var(--g-modal-border-radius,5px);padding:var(--g-spacing-4) var(--g-spacing-5)}.ydb-critical-dialog__body-message_warning{border-color:var(--ydb-color-status-yellow)}.ydb-critical-dialog__body-message_error{border-color:var(--ydb-color-status-red)}.schema-viewer__keys{display:inline-block;padding-bottom:var(--g-spacing-4);padding-left:10px}.schema-viewer__keys-values{color:var(--g-color-text-complementary);display:inline;font-size:var(--g-text-body-1-font-size);line-height:var(--g-text-body-1-line-height)}.schema-viewer__keys-header{color:var(--g-color-text-primary);display:inline;font-size:var(--g-text-subheader-1-font-size);font-weight:700;line-height:var(--g-text-subheader-1-line-height);white-space:nowrap}.schema-viewer__keys-label{cursor:pointer}.schema-viewer__keys-wrapper{left:0;position:sticky;width:100%;z-index:1}.schema-viewer__keys+.schema-viewer__keys{margin-left:var(--g-spacing-8)}.schema-viewer__keys_summary+.schema-viewer__keys_summary{margin-left:0}.schema-viewer__popup-content{padding:var(--g-spacing-2) var(--g-spacing-4)}.schema-viewer__popup-item{padding-bottom:var(--g-spacing-2)}.schema-viewer__popup-item:last-child{padding-bottom:0}.schema-viewer__more-badge{margin-left:var(--g-spacing-1)}.schema-viewer__key-icon{margin-left:var(--g-spacing-half);position:absolute;top:3.5px;vertical-align:initial}.schema-viewer__id-wrapper{display:inline-block;padding-right:var(--g-spacing-1);position:relative}.ydb-diagnostics-configs__icon-touched{color:var(--g-color-text-secondary);cursor:default!important;line-height:1}.speed-multimeter{display:flex;width:100%}.speed-multimeter__content{display:flex;flex-direction:row;flex-grow:1;justify-content:flex-end;line-height:22px}.speed-multimeter__displayed-value{display:flex;flex-direction:row;justify-content:flex-end;margin-right:10px}.speed-multimeter__bars{align-items:flex-start;display:flex;flex-direction:column;margin-right:5px;overflow:hidden;width:32px}.speed-multimeter__bar-container{height:6px;width:100%}.speed-multimeter__bar-container_highlighted{background:var(--g-color-line-generic)}.speed-multimeter__bar{height:100%;min-width:2px}.speed-multimeter__bar_color_light{background:var(--g-color-base-info-medium)}.speed-multimeter__bar_color_dark{background:var(--g-color-base-info-heavy)}.speed-multimeter__bar-container+.speed-multimeter__bar-container{margin-top:2px}.speed-multimeter__popover-container{align-items:center;display:flex;justify-content:center}.speed-multimeter__popover-content{padding:10px}.speed-multimeter__popover-header{display:block;font-size:18px;line-height:24px;margin-bottom:7px}.speed-multimeter__popover-row{display:block;font-size:13px;line-height:18px}.speed-multimeter__popover-row_color_primary{color:var(--g-color-text-primary)}.speed-multimeter__popover-row_color_secondary{color:var(--g-color-text-secondary)}.ydb-diagnostics-consumers-topic-stats{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.ydb-diagnostics-consumers-topic-stats__wrapper{border-left:1px solid var(--g-color-line-generic);display:flex;flex-direction:row;padding-left:16px}.ydb-diagnostics-consumers-topic-stats__item{display:flex;flex-direction:column;margin-right:20px}.ydb-diagnostics-consumers-topic-stats__label{color:var(--g-color-text-secondary);margin-bottom:4px}.ydb-diagnostics-consumers-topic-stats__value{align-items:center;display:flex;height:30px;justify-content:flex-start}.ydb-lag-popover-content__text{margin-bottom:10px}.ydb-lag-popover-content_type_read{max-width:280px}.ydb-lag-popover-content_type_write{max-width:220px}.ydb-diagnostics-consumers-columns-header__lags{white-space:nowrap}.ydb-diagnostics-consumers-columns__lags-header{text-align:center}.ydb-diagnostics-consumers{display:flex;flex-grow:1;flex:1 1 auto;flex-direction:column;height:100%;overflow:auto}.ydb-diagnostics-consumers__controls{align-items:center;display:flex;gap:12px;padding:16px 0 18px}.ydb-diagnostics-consumers__search{width:238px}.ydb-diagnostics-consumers__table-wrapper{display:flex;flex:1 1 auto;flex-direction:column;overflow:auto}.ydb-diagnostics-consumers__table-content{height:100%;overflow:auto}.ydb-diagnostics-consumers__table .data-table__head-row:first-child .data-table__th:first-child,.ydb-diagnostics-consumers__table .data-table__td:first-child{background-color:var(--g-color-base-background);border-right:1px solid var(--g-color-line-generic);left:0;position:sticky;z-index:2000}.ydb-diagnostics-consumers__table .data-table__row:hover .data-table__td:first-child{background-color:var(--ydb-data-table-color-hover)!important}.ydb-diagnostics-consumers__table .data-table__head-row:first-child .data-table__th:nth-child(0),.ydb-diagnostics-consumers__table .data-table__td:nth-child(0){border-right:unset;box-shadow:unset}.ydb-diagnostics-consumers__table .data-table__head-row:first-child .data-table__th:first-child,.ydb-diagnostics-consumers__table .data-table__td:first-child{box-shadow:unset}.ydb-json-viewer{--data-table-row-height:20px;--toolbar-background-color:var(--g-color-base-background)}.ydb-json-viewer__toolbar{background-color:var(--toolbar-background-color);left:0;padding-bottom:var(--g-spacing-2);position:sticky;top:0;z-index:2}.ydb-json-viewer__content{font-family:var(--g-font-family-monospace)}.ydb-json-viewer__row{height:1em}.ydb-json-viewer__cell{position:relative}.ydb-json-viewer__cell,.ydb-json-viewer__cell *{white-space:nowrap!important}.ydb-json-viewer__collapsed{margin-left:-3ex;margin-top:-2px;position:absolute}.ydb-json-viewer__match-counter{text-wrap:nowrap;align-content:center;color:var(--g-color-text-secondary)}.ydb-json-viewer__key{color:var(--g-color-text-misc)}.ydb-json-viewer__value_type_string{color:var(--color-unipika-string)}.ydb-json-viewer__value_type_boolean{color:var(--color-unipika-bool)}.ydb-json-viewer__value_type_null{color:var(--color-unipika-null)}.ydb-json-viewer__value_type_int64{color:var(--color-unipika-int)}.ydb-json-viewer__value_type_double{color:var(--color-unipika-float)}.ydb-json-viewer__filter{width:300px}.ydb-json-viewer__filtered_highlighted{background-color:var(--g-color-base-generic-medium)}.ydb-json-viewer__filtered_clickable{color:var(--g-color-text-info);cursor:pointer}.ydb-json-viewer__match-btn{margin-left:-1px}.ydb-json-viewer__full-value{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);margin:var(--g-spacing-3) 0;max-height:90vh;max-width:90vw;overflow:hidden auto;word-break:break-all}.ydb-json-viewer__extra-tools{margin-left:1ex}.ydb-json-viewer .data-table__head{display:none}.ydb-json-viewer .data-table__td{overflow:visible;padding:0}.ydb-describe__message-container{padding:15px 0}.ydb-describe__result{display:flex;flex:0 0 auto;padding:0 20px 20px 0;position:relative}.ydb-external-data-source-info__location,.ydb-external-table-info__location{max-width:var(--tenant-object-info-max-value-width)}.ydb-definition-list{display:flex;flex:1 1 auto;flex-direction:column}.ydb-definition-list__title{font-size:var(--g-text-body-2-font-size);font-weight:600;line-height:var(--g-text-body-2-line-height);margin:15px 0 10px}.ydb-definition-list__properties-list{max-width:calc(100% - 40px)}.ydb-async-replication-paths__title,.ydb-overview-topic-stats__title{font-size:var(--g-text-body-2-font-size);font-weight:600;line-height:var(--g-text-body-2-line-height);margin:15px 0 10px}.ydb-overview-topic-stats .ydb-loader{margin-top:50px}.ydb-overview-topic-stats .info-viewer__row{align-items:flex-start}.ydb-overview-topic-stats .speed-multimeter{margin-top:-5px}.ydb-overview-topic-stats .speed-multimeter__content{justify-content:flex-start}.ydb-overview-topic-stats__info .info-viewer__label-text_multiline{max-width:150px}.ydb-overview-topic-stats__bytes-written{margin-top:7px;padding-left:20px}.ydb-overview-topic-stats__bytes-written .info-viewer__label{min-width:180px}.ydb-diagnostics-table-info__title{font-size:var(--g-text-body-2-font-size);font-weight:600;line-height:var(--g-text-body-2-line-height);margin:15px 0 10px}.ydb-diagnostics-table-info__row{align-items:flex-start;display:flex;flex-wrap:wrap;justify-content:flex-start}.ydb-diagnostics-table-info__col{align-items:flex-start;display:flex;flex-direction:column;justify-content:flex-start}.ydb-diagnostics-table-info__col:not(:last-child){margin-right:50px}.ydb-diagnostics-table-info__info-block{margin-bottom:20px}.ydb-diagnostics-table-info__info-block .info-viewer__items{grid-template-columns:minmax(max-content,280px)}.ydb-metric-chart{border:1px solid var(--g-color-line-generic);border-radius:8px;display:flex;flex-direction:column;padding:16px 16px 8px}.ydb-metric-chart__title{margin-bottom:10px}.ydb-metric-chart__chart{display:flex;height:100%;overflow:hidden;position:relative;width:100%}.ydb-metric-chart__error{left:50%;position:absolute;text-align:center;top:10%;transform:translateX(-50%);z-index:1}.ydb-timeframe-selector{display:flex;gap:2px}.ydb-tenant-dashboard{margin-bottom:var(--diagnostics-section-margin);width:var(--diagnostics-section-table-width)}.ydb-tenant-dashboard__controls{margin-bottom:10px}.ydb-tenant-dashboard__charts{display:flex;flex-flow:row wrap;gap:16px}.issue-tree-item{align-items:center;cursor:pointer;display:flex;height:40px;justify-content:space-between}.issue-tree-item__field{display:flex;overflow:hidden}.issue-tree-item__field_status{display:flex;white-space:nowrap}.issue-tree-item__field_additional{color:var(--g-color-text-link);cursor:pointer;width:max-content}.issue-tree-item__field_additional:hover{color:var(--g-color-text-link-hover)}.issue-tree-item__field_message{flex-shrink:0;overflow:hidden;white-space:normal;width:300px}.issue-tree-item__field-tooltip.issue-tree-item__field-tooltip{max-width:500px;min-width:500px}.issue-tree-item__field-label{color:var(--g-color-text-secondary)}.issue-tree{display:flex}.issue-tree__block{width:100%}.issue-tree__checkbox{margin:5px 0 10px}.issue-tree__info-panel{background:var(--g-color-base-generic);border-radius:4px;height:100%;margin:11px 0;padding:8px 20px;position:sticky}.issue-tree__info-panel .ydb-json-viewer{--toolbar-background-color:var(--g-color-base-simple-hover-solid)}.issue-tree .ydb-tree-view__item{height:40px}.issue-tree .ydb-tree-view .tree-view_arrow{height:40px;width:40px}.issue-tree .ydb-tree-view .ydb-tree-view__item{margin-left:calc(24px*var(--ydb-tree-view-level))!important;padding-left:0!important}.issue-tree .ydb-tree-view .issue-tree__info-panel{margin-left:calc(24px*var(--ydb-tree-view-level))}.healthcheck__details{width:872px}.healthcheck__details-content-wrapper{overflow-x:hidden}.healthcheck__preview{display:flex;flex-direction:column;height:100%}.healthcheck__preview-title{color:var(--g-color-text-link);font-size:var(--g-text-subheader-3-font-size);font-weight:600;line-height:var(--g-text-subheader-3-line-height)}.healthcheck__preview-content{line-height:24px;margin:auto}.healthcheck__preview-status-icon{height:64px;width:64px}.healthcheck__preview-title-wrapper{align-items:center;display:flex;gap:8px;margin-bottom:4px}.healthcheck__preview-issue{align-items:center;display:flex;flex-direction:column;gap:4px;position:relative;top:-8px}.healthcheck__preview-issue_good{color:var(--g-color-text-positive)}.healthcheck__preview-issue_good .healthcheck__self-check-status-indicator{background-color:var(--g-color-base-positive-light)}.healthcheck__preview-issue_degraded{color:var(--g-color-text-info)}.healthcheck__preview-issue_degraded .healthcheck__self-check-status-indicator{background-color:var(--g-color-base-info-light)}.healthcheck__preview-issue_emergency{color:var(--g-color-text-danger)}.healthcheck__preview-issue_emergency .healthcheck__self-check-status-indicator{background-color:var(--g-color-base-danger-light)}.healthcheck__preview-issue_unspecified{color:var(--g-color-text-misc)}.healthcheck__preview-issue_unspecified .healthcheck__self-check-status-indicator{background-color:var(--g-color-base-misc-light)}.healthcheck__preview-issue_maintenance_required{color:var(--g-color-text-warning-heavy)}.healthcheck__preview-issue_maintenance_required .healthcheck__self-check-status-indicator{background-color:var(--g-color-base-warning-light)}.healthcheck__self-check-status-indicator{text-wrap:nowrap;border-radius:4px;display:inline-block;font-size:13px;line-height:24px;padding:0 8px}.healthcheck__icon-warn{color:var(--g-color-text-warning)}.healthcheck__icon-wrapper{display:flex}.ydb-diagnostic-card{background-color:#0000;border:1px solid var(--g-color-line-generic);border-radius:8px;flex-shrink:0;padding:16px 16px 28px}.ydb-diagnostic-card_active{background-color:var(--g-color-base-selection);border-color:var(--g-color-base-info-medium)}.ydb-diagnostic-card_interactive:hover{box-shadow:0 1px 5px var(--g-color-sfx-shadow);cursor:pointer}.ydb-diagnostic-card_size_m{min-width:206px;width:206px}.ydb-diagnostic-card_size_l{min-width:289px;width:289px}.ydb-diagnostic-card_size_s{min-width:134px;width:134px}.ydb-metrics-card{min-height:252px}.ydb-metrics-card__header{align-items:center;display:flex;gap:8px;justify-content:space-between;margin-bottom:10px}.ydb-metrics-card__label{color:var(--g-color-text-link);font-size:var(--g-text-subheader-3-font-size);font-weight:600;line-height:var(--g-text-subheader-3-line-height)}.ydb-metrics-card__content{color:var(--g-color-text-secondary);display:flex;flex-direction:column;gap:10px}.ydb-metrics-card__metric-title{height:var(--g-text-body-2-line-height)}.ydb-metrics-card_active .ydb-metrics-card__content{color:var(--g-color-text-complementary)}.metrics-cards{display:flex;gap:16px;margin-bottom:32px}.metrics-cards__tab{color:inherit;text-decoration:none}.confirmation-dialog__caption,.confirmation-dialog__message{white-space:pre-wrap}.ydb-save-query__dialog-row{align-items:flex-start;display:flex}.ydb-save-query__dialog-row+.ydb-save-query__dialog-row{margin-top:var(--g-text-body-1-line-height)}.ydb-save-query__field-title{font-weight:500;line-height:28px;margin-right:12px;white-space:nowrap}.ydb-save-query__field-title.required:after{color:var(--g-color-text-danger);content:"*"}.ydb-save-query__control-wrapper{display:flex;flex-grow:1;min-height:48px}.kv-truncated-query{max-width:100%;vertical-align:top;white-space:pre;word-break:break-word}.kv-truncated-query__message{white-space:pre-wrap}.kv-truncated-query__message_color_secondary{color:var(--g-color-text-secondary)}.kv-top-queries{display:flex;flex-direction:column;height:100%}.kv-top-queries .data-table__box .data-table__table-wrapper{padding-bottom:20px}.kv-top-queries .data-table__th{box-shadow:inset 0 -1px 0 0 var(--g-tabs-color-divider)}.kv-top-queries__search{width:238px}.kv-top-queries__row{cursor:pointer}.kv-top-queries__query{overflow:hidden;text-overflow:ellipsis;vertical-align:top;white-space:pre-wrap;word-break:break-word}.kv-top-queries__user-sid{max-width:200px;overflow:hidden;text-overflow:ellipsis}.tenant-overview{height:100%;overflow:auto;padding-bottom:20px}.tenant-overview__loader{display:flex;justify-content:center}.tenant-overview__tenant-name-wrapper{align-items:center;display:flex;overflow:hidden}.tenant-overview__top{align-items:center;display:flex;gap:4px;line-height:24px;margin-bottom:10px}.tenant-overview__top-label{font-weight:600;gap:10px;line-height:24px;margin-bottom:var(--diagnostics-section-title-margin)}.tenant-overview__info{left:0;position:sticky;width:max-content}.tenant-overview__title{font-size:var(--g-text-body-2-font-size);font-weight:700;line-height:var(--g-text-body-2-line-height);margin-bottom:10px}.tenant-overview__table:not(:last-child){margin-bottom:var(--diagnostics-section-margin)}.tenant-overview__top-queries-row{cursor:pointer}.tenant-overview__storage-info{margin-bottom:36px}.tenant-overview__memory-info{margin-bottom:36px;width:300px}.kv-detailed-overview{display:flex;flex-direction:column;gap:20px;height:100%;width:100%}.kv-detailed-overview__section{display:flex;flex-basis:calc(50% - 10px);flex-direction:column;flex-grow:1;flex-shrink:0;min-width:300px}.kv-detailed-overview__modal .g-modal__content{position:relative}.kv-detailed-overview__close-modal-button{position:absolute;right:13px;top:23px}.ydb-hot-keys__primary-key-column{align-items:center;display:flex;gap:5px}.ydb-hot-keys__help-card{left:0;margin-bottom:20px;padding:20px 40px 20px 20px;position:sticky}.ydb-hot-keys__help-card__close-button{position:absolute;right:5px;top:5px}.node-network{border:1px solid #0000;border-radius:4px;box-sizing:border-box;color:var(--g-color-text-complementary);cursor:pointer;display:inline-block;font-size:12px;height:14px;line-height:14px;margin-bottom:5px;margin-right:5px;padding:0 5px;text-align:center;text-transform:uppercase;width:14px}.node-network_id{height:14px;width:42px}.node-network_blur{opacity:.25}.node-network_grey{background:var(--ydb-color-status-grey)}.node-network_black{background-color:var(--ydb-color-status-black);color:var(--g-color-text-light-primary)}.node-network_green{background-color:var(--ydb-color-status-green)}.node-network_yellow{background-color:var(--ydb-color-status-yellow)}.node-network_red{background-color:var(--ydb-color-status-red)}.node-network:hover{border:1px solid var(--g-color-text-primary)}.network{flex-direction:column;font-size:var(--g-text-body-2-font-size);justify-content:space-between;line-height:var(--g-text-body-2-line-height);max-width:1305px}.network,.network__nodes-row{display:flex;flex-grow:1;height:100%;overflow:auto}.network__nodes-row{align-items:flex-start;flex-direction:row}.network__inner{display:flex;flex:1 1 auto;flex-direction:column;overflow:auto}.network__right{height:100%;padding-left:20px;width:100%}.network__left{border-right:1px solid var(--g-color-base-generic-accent);height:100%}.network__placeholder{align-items:center;display:flex;flex-direction:column;flex-grow:1;height:100%;justify-content:center;width:100%}.network__placeholder-text{margin-top:15px}.network__placeholder-img{color:#0000}.network__nodes{display:flex;flex-wrap:wrap}.network__nodes-container{min-width:325px}.network__nodes-container_right{margin-right:60px}.network__nodes-title{border-bottom:1px solid var(--g-color-base-generic-accent);color:var(--g-color-text-secondary);font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);margin:0 0 15px}.network__link{color:var(--g-color-base-brand);text-decoration:none}.network__title{font-size:var(--g-text-body-1-font-size);font-weight:500;line-height:var(--g-text-body-1-line-height);margin:20px 0}.network__checkbox-wrapper{align-items:center;display:flex}.network__checkbox-wrapper label{white-space:nowrap}.network__label{margin-bottom:16px}.network__controls{display:flex;gap:12px;margin:0 16px 16px 0}.network__controls-wrapper{display:flex;flex:1 1 auto;flex-direction:row;flex-direction:column}.network__select{margin:0 15px;max-width:115px}.network__rack-column{align-items:center;background-color:#00000012;border-radius:4px;display:flex;flex-direction:column;margin-bottom:5px;margin-right:5px;padding:2px}.network__rack-column .node-network{margin-right:0}.ydb-diagnostics-partitions-columns-header__multiline{white-space:normal}.ydb-diagnostics-partitions-columns-header__read-session{white-space:normal;width:80px}.ydb-diagnostics-partitions-columns-header__lags{white-space:nowrap}.ydb-diagnostics-partitions-columns-header__messages{white-space:normal;width:90px}.ydb-diagnostics-partitions-columns-header__messages-popover-content{max-width:200px}.ydb-diagnostics-partitions-columns__lags-header{text-align:center}.ydb-diagnostics-partitions{display:flex;flex-grow:1;flex:1 1 auto;flex-direction:column;height:100%;overflow:auto}.ydb-diagnostics-partitions__controls{align-items:center;display:flex;gap:12px;padding:16px 0 18px}.ydb-diagnostics-partitions__consumer-select{width:220px}.ydb-diagnostics-partitions__select-option_empty{color:var(--g-color-text-hint)}.ydb-diagnostics-partitions__search{width:238px}.ydb-diagnostics-partitions__search_partition{width:100px}.ydb-diagnostics-partitions__search_general{width:280px}.ydb-diagnostics-partitions__table-wrapper{display:flex;flex:1 1 auto;flex-direction:column;overflow:auto}.ydb-diagnostics-partitions__table-content{height:100%;overflow:auto}.ydb-diagnostics-partitions__table .data-table__head-row:first-child .data-table__th:first-child,.ydb-diagnostics-partitions__table .data-table__td:first-child{background-color:var(--g-color-base-background);border-right:1px solid var(--g-color-line-generic);left:0;position:sticky;z-index:2000}.ydb-diagnostics-partitions__table .data-table__row:hover .data-table__td:first-child{background-color:var(--ydb-data-table-color-hover)!important}.ydb-diagnostics-partitions__table .data-table__head-row:first-child .data-table__th:nth-child(0),.ydb-diagnostics-partitions__table .data-table__td:nth-child(0){border-right:unset;box-shadow:unset}.ydb-diagnostics-partitions__table .data-table__head-row:first-child .data-table__th:first-child,.ydb-diagnostics-partitions__table .data-table__td:first-child{box-shadow:unset}.date-range__range-input_s{width:200px}.date-range__range-input_m{width:300px}.date-range__range-input_l{width:350px}.date-range__range-input input{cursor:pointer}.top-shards__hint{left:0;position:sticky;width:max-content}.kv-tenant-diagnostics{display:flex;flex-direction:column;height:100%;overflow:hidden}.kv-tenant-diagnostics__header-wrapper{background-color:var(--g-color-base-background);padding:0 20px 16px}.kv-tenant-diagnostics__tabs{--g-tabs-border-width:0;align-items:center;box-shadow:inset 0 -1px 0 0 var(--g-color-line-generic);display:flex;justify-content:space-between}.kv-tenant-diagnostics__tabs .g-tabs_direction_horizontal{box-shadow:unset}.kv-tenant-diagnostics__tab{margin-right:40px;text-decoration:none}.kv-tenant-diagnostics__tab:first-letter{text-transform:uppercase}.kv-tenant-diagnostics__page-wrapper{flex-grow:1;overflow:auto;padding:0 20px;width:100%}.kv-tenant-diagnostics__page-wrapper .ydb-table-with-controls-layout__controls{height:46px;padding-top:0}.kv-tenant-diagnostics__page-wrapper .ydb-table-with-controls-layout .data-table__sticky_moving,.kv-tenant-diagnostics__page-wrapper .ydb-table-with-controls-layout .ydb-paginated-table__head{top:46px!important}.ydb-queries-history{display:flex;flex:1 1 auto;flex-direction:column;height:100%;overflow:auto;padding:0 20px}.ydb-queries-history .ydb-table-with-controls-layout__controls{height:46px;padding-top:0}.ydb-queries-history.ydb-table-with-controls-layout .data-table__sticky_moving{top:46px!important}.ydb-queries-history__search{width:238px}.ydb-queries-history__table-row{cursor:pointer}.ydb-queries-history__query{flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:pre}.kv-pane-visibility-button_hidden{display:none}.kv-pane-visibility-button_bottom{transform:rotate(180deg)}.kv-pane-visibility-button_bottom.rotate{transform:rotate(0)}.kv-pane-visibility-button_left{transform:rotate(-90deg)}.kv-pane-visibility-button_left.rotate{transform:rotate(90deg)}.kv-pane-visibility-button_top.rotate{transform:rotate(180deg)}.ydb-fullscreen{flex-grow:1;overflow:hidden}.ydb-fullscreen_fullscreen{background-color:var(--g-color-base-background);inset:0;position:absolute;z-index:10}.ydb-fullscreen__close-button{display:none;position:fixed;right:20px;top:8px;z-index:11}.ydb-fullscreen_fullscreen .ydb-fullscreen__close-button{display:block}.ydb-fullscreen__content{display:flex;height:100%;overflow:auto;width:100%}.ydb-query-result-table__cell{cursor:pointer;display:inline-block;max-width:600px;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;white-space:nowrap;width:100%}.ydb-query-result-table__message{padding:15px 10px}.ydb-query-result-table__table-wrapper{height:0}.kv-preview{display:flex;flex:1 1 auto;flex-direction:column;height:100%}.kv-preview .data-table__box .data-table__table-wrapper{padding-bottom:20px}.kv-preview .data-table__th{box-shadow:inset 0 -1px 0 0 var(--g-tabs-color-divider)}.kv-preview__header{align-items:center;background-color:var(--g-color-base-background);border-bottom:1px solid var(--g-color-line-generic);display:flex;flex-shrink:0;height:53px;justify-content:space-between;padding:0 20px;position:sticky;top:0}.kv-preview__title{display:flex;gap:var(--g-spacing-1)}.kv-preview__table-name{color:var(--g-color-text-complementary);margin-left:var(--g-spacing-1)}.kv-preview__controls-left{display:flex;gap:var(--g-spacing-1)}.kv-preview__message-container{padding:15px 20px}.kv-preview__loader-container{align-items:center;display:flex;height:100%;justify-content:center}.kv-preview__result{overflow:auto;padding-left:10px;width:100%}.ydb-query-settings-description__message{display:flex;flex-wrap:wrap;white-space:pre}.ydb-query-editor-button__explain-button,.ydb-query-editor-button__run-button,.ydb-query-editor-button__stop-button{width:92px}.ydb-query-editor-button__stop-button_error{animation:errorAnimation .5s linear}@keyframes errorAnimation{41%,8%{transform:translateX(-2px)}25%,58%{transform:translateX(2px)}75%{transform:translateX(-1px)}92%{transform:translateX(1px)}0%,to{transform:translateX(0)}}.ydb-query-editor-controls{align-items:center;display:flex;flex:0 0 60px;gap:24px;justify-content:space-between;min-height:60px}.ydb-query-editor-controls__left,.ydb-query-editor-controls__right{display:flex;gap:12px}.ydb-query-editor-controls__mode-selector__button{margin-left:2px;width:241px}.ydb-query-editor-controls__mode-selector__button-content{align-items:center;display:flex;justify-content:space-between;width:215px}.ydb-query-editor-controls__mode-selector__popup{width:241px}.ydb-query-editor-controls__item-with-popover{align-items:center;display:flex;height:24px;line-height:normal}.ydb-query-editor-controls__popover{max-width:420px;white-space:pre-wrap}.kv-query-execution-status{align-items:center;display:flex;gap:4px}.ydb-query-settings-banner,.ydb-query-stopped-banner{margin-left:var(--g-spacing-4);margin-right:var(--g-spacing-4);margin-top:var(--g-spacing-4)}.ydb-query-ast{height:100%;overflow:hidden;white-space:pre-wrap;width:100%}.ydb-query-result-stub-message{padding:15px 20px}.ydb-query-explain-graph__canvas-container{height:100%;overflow-y:auto;width:100%}.query-info-dropdown__menu-item{align-items:start}.query-info-dropdown__menu-item-content{display:flex;flex-direction:column;padding:var(--g-spacing-1) 0}.query-info-dropdown__icon{margin-right:var(--g-spacing-2);margin-top:var(--g-spacing-2)}.ydb-query-json-viewer{height:100%;padding:15px 0;width:100%}.ydb-query-json-viewer__tree{height:100%;overflow-y:auto;padding:0 10px;width:100%}.ydb-query-result-error__message{padding-left:var(--g-spacing-4);padding-top:var(--g-spacing-4)}.ydb-query-result-sets-viewer__tabs{margin-bottom:var(--g-spacing-1);padding-left:var(--g-spacing-4);padding-top:var(--g-spacing-1)}.ydb-query-result-sets-viewer__title{padding-bottom:var(--g-spacing-4);padding-left:var(--g-spacing-4);padding-top:var(--g-spacing-4)}.ydb-query-result-sets-viewer__result-wrapper{display:flex;flex-direction:column;width:100%}.ydb-query-result-sets-viewer__result{display:flex;flex-direction:column;flex-grow:1;overflow:auto;padding-left:10px}.ydb-query-result-sets-viewer__result .data-table__box .data-table__table-wrapper{padding-bottom:20px}.ydb-query-result-sets-viewer__result .data-table__th{box-shadow:inset 0 -1px 0 0 var(--g-tabs-color-divider)}.ydb-query-result-sets-viewer__result .data-table__table-wrapper{padding-bottom:0}.ydb-table{--ydb-table-cell-height:40px}.ydb-table__table-header-content{align-items:center;border-bottom:1px solid var(--g-color-line-generic);display:inline-flex;height:100%;padding:var(--g-spacing-1) var(--g-spacing-2);width:100%}.ydb-table__table{border-collapse:collapse;border-spacing:0;table-layout:fixed}.ydb-table__table tr:hover{background-color:var(--g-color-base-simple-hover)!important}.ydb-table__table tr:nth-of-type(odd){background-color:var(--g-color-base-generic-ultralight)}.ydb-table__table_width_max{width:100%}.ydb-table__table-header-cell{background-color:var(--g-color-base-background);font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-2-font-size);font-weight:var(--g-text-subheader-font-weight);height:var(--ydb-table-cell-height)!important;line-height:var(--g-text-subheader-2-line-height);padding:0;text-align:left;vertical-align:middle}:is(.ydb-table__table-header-cell_align_right) .ydb-table__table-header-content{justify-content:flex-end;text-align:right}.ydb-table__table-cell{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);height:var(--ydb-table-cell-height)!important;line-height:var(--g-text-body-2-line-height);padding:0}.ydb-table__table-cell_align_right{text-align:right!important}.ydb-table__table-cell_vertical-align_top{vertical-align:top!important}.ydb-query-simplified-plan{height:100%;overflow:auto;padding:0 15px 15px;width:100%}.ydb-query-simplified-plan__name{align-items:center;display:flex;gap:var(--g-spacing-1);max-width:100%}.ydb-query-simplified-plan__metrics-cell{padding:var(--g-spacing-1) var(--g-spacing-2)}.ydb-query-simplified-plan__operation-params{color:var(--g-color-text-secondary)}.ydb-query-simplified-plan__operation-name{font-weight:500;height:100%;max-width:100%;position:relative}.ydb-query-simplified-plan__divider{bottom:0;box-shadow:1px 0 0 0 var(--g-color-line-generic) inset;height:100%;position:absolute;width:12px}.ydb-query-simplified-plan__divider_last{border-radius:0 0 0 1px;bottom:unset;box-shadow:1px -1px 0 0 var(--g-color-line-generic) inset;height:14px;top:0;width:12px}.ydb-query-simplified-plan__divider_horizontal{bottom:unset;box-shadow:0 -1px 0 0 var(--g-color-line-generic) inset;height:14px;top:0;width:12px}.ydb-query-simplified-plan__divider_first{height:calc(100% - 30px)}.ydb-query-simplified-plan__operation-content{height:100%;max-width:100%;padding:var(--g-spacing-1) 0;word-break:break-word}.ydb-query-simplified-plan__operation-name-content{display:flex;flex-grow:1}.ydb-query-result__controls{align-items:center;background-color:var(--g-color-base-background);border-bottom:1px solid var(--g-color-line-generic);display:flex;height:53px;justify-content:space-between;padding:var(--g-spacing-3) var(--g-spacing-4);position:sticky;top:0;z-index:2}.ydb-query-result__controls-left{align-items:center;display:flex;gap:12px;height:100%}.ydb-query-result__controls-right{display:flex;gap:4px}.ydb-query-result__elapsed-label{margin-left:var(--g-spacing-3)}.ydb-query-settings-select__selector{width:100%}.ydb-query-settings-select__popup{max-width:320px}.ydb-query-settings-select__item-description{color:var(--g-color-text-secondary);white-space:pre-wrap}.ydb-query-settings-select__item{padding:var(--g-spacing-1) 0}.ydb-query-settings-dialog__dialog-row+.ydb-query-settings-dialog__dialog-row{margin-top:var(--g-text-body-1-line-height)}.ydb-query-settings-dialog__field-title{flex:4 1;font-weight:500;line-height:var(--g-text-header-2-line-height);margin-right:var(--g-spacing-3);white-space:nowrap}.ydb-query-settings-dialog .g-dialog-footer__bts-wrapper{width:100%}.ydb-query-settings-dialog__dialog-body{padding-top:var(--g-spacing-6)}.ydb-query-settings-dialog__control-wrapper{display:flex;flex:6 1}.ydb-query-settings-dialog__limit-rows,.ydb-query-settings-dialog__timeout{margin-right:var(--g-spacing-2);width:33.3%}.ydb-query-settings-dialog__documentation-link,.ydb-query-settings-dialog__timeout-suffix{align-items:center;color:var(--g-color-text-secondary);display:flex}.ydb-query-settings-dialog__documentation-link{margin-left:var(--g-spacing-4)}.ydb-query-settings-dialog__buttons-container{display:flex;justify-content:space-between;width:100%}.ydb-query-settings-dialog__main-buttons{display:flex;gap:10px}.query-editor{display:flex;flex:1 1 auto;flex-direction:column;height:100%;position:relative}.query-editor .data-table__box .data-table__table-wrapper{padding-bottom:20px}.query-editor .data-table__th{box-shadow:inset 0 -1px 0 0 var(--g-tabs-color-divider)}.query-editor .data-table__box .data-table__table-wrapper{padding-bottom:0}.query-editor__monaco{border:1px solid var(--g-color-line-generic);display:flex;height:100%;position:relative;width:100%}.query-editor__monaco-wrapper{height:calc(100% - 49px);min-height:0;width:100%}.query-editor__pane-wrapper{background-color:var(--g-color-base-background);display:flex;flex-direction:column;z-index:2}.query-editor__pane-wrapper_top{border-bottom:1px solid var(--g-color-line-generic);padding:0 16px}.ydb-saved-queries{display:flex;flex:1 1 auto;flex-direction:column;height:100%;overflow:auto;padding:0 20px}.ydb-saved-queries .ydb-table-with-controls-layout__controls{height:46px;padding-top:0}.ydb-saved-queries.ydb-table-with-controls-layout .data-table__sticky_moving{top:46px!important}.ydb-saved-queries__search{width:238px}.ydb-saved-queries__row{cursor:pointer}.ydb-saved-queries__row :hover .ydb-saved-queries__controls{display:flex}.ydb-saved-queries__query-name{overflow:hidden;text-overflow:ellipsis;white-space:pre-wrap}.ydb-saved-queries__query{align-items:center;display:flex;flex-direction:row;justify-content:space-between}.ydb-saved-queries__query-body{flex-grow:1;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:pre}.ydb-saved-queries__controls{display:none}.ydb-saved-queries__dialog-query-name{font-weight:500}.ydb-query{display:flex;flex:1 1 auto;flex-direction:column;max-height:calc(100% - 56px)}.ydb-query__tabs{padding:0 20px 16px}.ydb-query__content{height:100%;overflow:hidden}.ydb-tenant-navigation{padding:12px 16px 8px}.ydb-tenant-navigation__item{align-items:center;display:flex;gap:5px}.ydb-tenant-navigation__icon{flex-shrink:0}.ydb-tenant-navigation__text{overflow:hidden;text-overflow:ellipsis}.object-general{display:flex;flex-direction:column;flex-grow:1;height:100%;max-height:100%;width:100%}.object-general__loader{display:flex}.ydb-acl{width:100%}.ydb-acl__result{padding-bottom:var(--g-spacing-4);padding-left:var(--g-spacing-2)}.ydb-acl__result_no-title{margin-top:var(--g-spacing-3)}.ydb-acl__definition-content{align-items:flex-end;display:flex;flex-direction:column}.ydb-acl__list-title{font-weight:600;margin:var(--g-spacing-3) 0 var(--g-spacing-5)}.ydb-acl__group-label,.ydb-acl__list-title{font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-2-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-2-line-height)}.ydb-schema-create-directory-dialog__label{display:flex;flex-direction:column;margin-bottom:8px}.ydb-schema-create-directory-dialog__description{color:var(--g-color-text-secondary)}.ydb-schema-create-directory-dialog__input-wrapper{min-height:48px}.ydb-object-summary{height:100%;max-height:100%;overflow:hidden;width:100%}.ydb-object-summary,.ydb-object-summary__overview-wrapper{display:flex;flex-direction:column;flex-grow:1;position:relative}.ydb-object-summary__overview-wrapper{overflow:auto;padding:0 12px 16px}.ydb-object-summary_hidden{visibility:hidden}.ydb-object-summary__actions{background-color:var(--g-color-base-background);position:absolute;right:5px;top:19px}.ydb-object-summary__button_hidden{display:none}.ydb-object-summary__tree-wrapper{display:flex;flex-direction:column}.ydb-object-summary__tree{flex:1 1 auto;height:100%;overflow-y:scroll;padding:0 12px 12px 16px}.ydb-object-summary__tree-header{padding:23px 12px 17px 20px}.ydb-object-summary__sticky-top{background-color:var(--g-color-base-background);left:0;position:sticky;top:0;z-index:5}.ydb-object-summary__tabs{padding:8px 12px 16px}.ydb-object-summary__tabs-inner{--g-tabs-border-width:0;box-shadow:inset 0 -1px 0 0 var(--g-color-line-generic)}.ydb-object-summary__tab{text-decoration:none}.ydb-object-summary__info{display:flex;flex-direction:column;overflow:hidden}.ydb-object-summary__info-controls{display:flex;gap:4px}.ydb-object-summary__info-action-button{background-color:var(--g-color-base-background)}.ydb-object-summary__info-action-button_hidden{display:none}.ydb-object-summary__rotated90{transform:rotate(-90deg)}.ydb-object-summary__rotated180{transform:rotate(180deg)}.ydb-object-summary__rotated270{transform:rotate(90deg)}.ydb-object-summary__info-header{align-items:center;border-bottom:1px solid var(--g-color-line-generic);display:flex;justify-content:space-between;padding:12px 12px 10px}.ydb-object-summary__info-title{align-items:center;display:flex;font-weight:600;overflow:hidden}.ydb-object-summary__path-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ydb-object-summary__entity-type{background-color:var(--g-color-base-generic);border-radius:3px;display:inline-block;font-weight:400;margin-right:5px;padding:3px 8px;text-transform:lowercase}.ydb-object-summary__entity-type_error{background-color:#0000;padding:3px 0}.ydb-object-summary__overview-title{font-size:var(--g-text-body-2-font-size);font-weight:600;line-height:var(--g-text-body-2-line-height);margin:15px 0 10px}.ydb-object-summary__overview-item-content{text-align:end;white-space:nowrap}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.tenant-page{display:flex;flex:1 1 auto;flex-direction:column;font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);overflow:hidden}.tenant-page__main{flex-grow:1}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/7145.90fbb646.chunk.css b/ydb/core/viewer/monitoring/static/css/6030.05f92b81.chunk.css index 24b6299ee0..dae69cb8eb 100644 --- a/ydb/core/viewer/monitoring/static/css/7145.90fbb646.chunk.css +++ b/ydb/core/viewer/monitoring/static/css/6030.05f92b81.chunk.css @@ -1 +1 @@ -@charset "UTF-8";.kv-shorty-string__toggle{font-size:.85em;margin-left:2em}.kv-result-issues{padding:0 10px}.kv-result-issues__error-message{align-items:center;background-color:var(--g-color-base-background);display:flex;left:0;padding:10px 0;position:sticky;top:0;z-index:2}.kv-result-issues__error-message-text{margin:0 10px}.kv-issues{position:relative}.kv-issue_leaf{margin-left:31px}.kv-issue__issues{padding-left:24px}.kv-issue__line{align-items:flex-start;display:flex;margin:0 0 10px;padding:0 10px 0 0}.kv-issue__place-text{color:var(--g-color-text-secondary);display:inline-block;padding-right:10px;text-align:left}.kv-issue__message{display:flex;font-family:var(--g-font-family-monospace);font-size:var(--g-text-code-2-font-size);line-height:var(--g-text-header-2-line-height);margin-left:10px;margin-right:auto}.kv-issue__message-text{flex:1 1 auto;min-width:240px;white-space:pre-wrap;word-break:break-word}.kv-issue__code{color:var(--g-color-text-complementary);flex:0 0 auto;font-size:12px;margin-left:1.5em;padding:3px 0}.kv-issue__arrow-toggle{margin-right:5px}.yql-issue-severity{align-items:center;display:flex;line-height:28px;white-space:nowrap}.yql-issue-severity_severity_error .yql-issue-severity__icon,.yql-issue-severity_severity_fatal .yql-issue-severity__icon{color:var(--g-color-text-danger)}.yql-issue-severity_severity_warning .yql-issue-severity__icon{color:var(--g-color-text-warning)}.yql-issue-severity_severity_info .yql-issue-severity__icon{color:var(--g-color-text-info)}.yql-issue-severity__title{color:var(--g-color-text-complementary);margin-left:4px;text-transform:capitalize}.ydb-critical-dialog{padding-top:var(--g-spacing-3)}.ydb-critical-dialog__warning-icon{color:var(--ydb-color-status-yellow);margin-right:16px}.ydb-critical-dialog__error-icon{color:var(--ydb-color-status-red);height:24px;margin-right:16px}.ydb-critical-dialog__body{display:flex;flex-direction:column;gap:var(--g-spacing-6)}.ydb-critical-dialog__body-message{align-items:center;display:flex}.ydb-critical-dialog__body-message_error,.ydb-critical-dialog__body-message_warning{border:1px solid;border-radius:var(--g-modal-border-radius,5px);padding:var(--g-spacing-4) var(--g-spacing-5)}.ydb-critical-dialog__body-message_warning{border-color:var(--ydb-color-status-yellow)}.ydb-critical-dialog__body-message_error{border-color:var(--ydb-color-status-red)}.g-checkbox__indicator{cursor:inherit;display:inline-block;position:relative}.g-checkbox__indicator:before{background-color:initial;border:1px solid var(--g-color-line-generic-accent);border-radius:4px;content:"";inset:0;position:absolute;transition:background .1s linear}.g-checkbox__indicator:after{content:"Â ";visibility:hidden}.g-checkbox__icon{align-items:center;color:#0000;display:flex;inset:0;justify-content:center;pointer-events:none;position:absolute;transform:translateY(-5px);transition:color .1s,transform .2s;visibility:hidden}.g-checkbox__control{border:none;cursor:inherit;margin:0;opacity:0;outline:none;padding:0}.g-checkbox__control,.g-checkbox__outline{background:none;height:100%;inset-block-start:0;inset-inline-start:0;position:absolute;width:100%}.g-checkbox__outline{border-radius:4px;pointer-events:none}.g-checkbox__control:focus-visible+.g-checkbox__outline{outline:2px solid var(--g-color-line-focus)}.g-checkbox_size_m .g-checkbox__icon-svg_type_tick{height:10px;width:8px}.g-checkbox_size_m .g-checkbox__icon-svg_type_dash{height:12px;width:12px}.g-checkbox_size_m .g-checkbox__indicator{height:14px;width:14px}.g-checkbox_size_l .g-checkbox__icon-svg_type_tick{height:9px;width:11px}.g-checkbox_size_l .g-checkbox__icon-svg_type_dash{height:15px;width:15px}.g-checkbox_size_l .g-checkbox__indicator{height:17px;width:17px}.g-checkbox:hover .g-checkbox__indicator:before{border-color:var(--g-color-line-generic-accent-hover)}.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);border:#0000}.g-checkbox_checked .g-checkbox__icon,.g-checkbox_indeterminate .g-checkbox__icon{color:var(--g-color-text-brand-contrast);transform:translateX(0);visibility:visible}.g-checkbox_disabled .g-checkbox__indicator:before{background-color:var(--g-color-base-generic-accent-disabled);border:#0000}.g-checkbox_disabled.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_disabled.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);opacity:.5}.ydb-entity-page-title{text-wrap:nowrap;align-items:baseline;display:flex;flex-flow:row nowrap;font-size:var(--g-text-header-2-font-size);line-height:var(--g-text-header-2-line-height)}.ydb-entity-page-title__prefix{color:var(--g-color-text-secondary);margin-right:6px}.ydb-entity-page-title__icon{margin-right:8px}.ydb-info-viewer-skeleton{display:flex;flex-direction:column;gap:16px}.ydb-info-viewer-skeleton__row{align-items:flex-start;display:flex}.ydb-info-viewer-skeleton__row,.ydb-info-viewer-skeleton__row .g-skeleton{min-height:var(--g-text-body-2-font-size)}.ydb-info-viewer-skeleton__label{align-items:baseline;display:flex;flex:0 1 auto;width:200px}.ydb-info-viewer-skeleton__label__text{width:100px}.ydb-info-viewer-skeleton__label__dots{border-bottom:1px dotted var(--g-color-text-secondary);margin:0 2px;width:100px}.ydb-info-viewer-skeleton__value{max-width:20%;min-width:200px}.g-skeleton{--_--animation-from:calc(-100%*var(--g-flow-direction));--_--animation-to:calc(100%*var(--g-flow-direction));--_--gradient-deg:calc(90deg*var(--g-flow-direction));background-color:var(--g-color-base-generic);border-radius:5px;display:inline-block;overflow:hidden;position:relative;width:100%;z-index:0}.g-skeleton:after{animation:g-skeleton 1.2s ease-out infinite;background-image:linear-gradient(var(--_--gradient-deg),#0000,var(--g-color-base-generic));content:"";inset:0;position:absolute}@keyframes g-skeleton{0%{transform:translateX(var(--_--animation-from))}to{transform:translateX(var(--_--animation-to))}}.ydb-pdisk-info__links{display:flex;flex-flow:row wrap;gap:var(--g-spacing-2)}.ydb-page-meta__info{text-wrap:nowrap;color:var(--g-color-text-primary);display:flex;flex-flow:row nowrap;flex-grow:1;font-size:var(--g-text-body-2-font-size);height:var(--g-text-body-2-line-height);line-height:var(--g-text-body-2-line-height)}.ydb-page-meta__skeleton{height:80%;width:80%}.g-tree-select{display:inline-block;max-width:100%}.g-tree-select_width_max{width:100%}.g-tree-select__popup{overflow:hidden;padding:4px 0}.g-tree-select__popup_size_s{border-radius:var(--g-list-container-border-radius,5px)}.g-tree-select__popup_size_m{border-radius:var(--g-list-container-border-radius,6px)}.g-tree-select__popup_size_l{border-radius:var(--g-list-container-border-radius,8px)}.g-tree-select__popup_size_xl{border-radius:var(--g-list-container-border-radius,10px)}.g-tree-select__list{padding:0 4px}.g-list-item-expand-icon{flex-shrink:0}.g-list-item-view{align-items:center;display:flex;flex-grow:1;flex-shrink:0}.g-list-item-view__content{height:100%;width:100%}.g-list-item-view__main-content{display:grid;gap:var(--g-spacing-half,2px);width:100%}.g-list-item-view:hover.g-list-item-view_activeOnHover,.g-list-item-view_active{background:var(--g-color-base-simple-hover)}.g-list-item-view_clickable{cursor:pointer}.g-list-item-view_selected,.g-list-item-view_selected.g-list-item-view_active,.g-list-item-view_selected:hover.g-list-item-view_activeOnHover{background:var(--g-color-base-selection)}.g-list-item-view_dragging,.g-list-item-view_dragging.g-list-item-view_active,.g-list-item-view_dragging.g-list-item-view_selected{background:var(--g-color-base-simple-hover-solid);z-index:100001!important}.g-list-item-view_radius_s{border-radius:var(--g-list-item-border-radius,3px)}.g-list-item-view_radius_m{border-radius:var(--g-list-item-border-radius,5px)}.g-list-item-view_radius_l{border-radius:var(--g-list-item-border-radius,6px)}.g-list-item-view_radius_xl{border-radius:var(--g-list-item-border-radius,8px)}.g-list-item-view__slot{flex-shrink:0}.g-list-recursive-renderer{margin:0;padding:0}.g-list-container-view{box-sizing:border-box;outline:none;width:100%}.g-list-container-view_fixed-height{height:var(--g-list-container-height,300px)}.g-list-container-view:not(.g-list-container-view_fixed-height){overflow:auto}.g-inner-table-column-setup{display:inline-block}.g-inner-table-column-setup__controls{margin:var(--g-spacing-1) var(--g-spacing-1) 0}.g-inner-table-column-setup__filter-input{border-block-end:1px solid var(--g-color-line-generic);box-sizing:border-box;padding:0 var(--g-spacing-2) var(--g-spacing-1)}.g-inner-table-column-setup__empty-placeholder{padding:var(--g-spacing-2)}.g-table-column-setup__status{color:var(--g-color-text-secondary);margin-inline-start:5px}.ydb-pdisk-decommission-button__button,.ydb-pdisk-decommission-button__popup{width:160px}.ydb-vdisk-info__links{display:flex;flex-flow:row wrap;gap:var(--g-spacing-2)}.ydb-vdisk-info__title{display:flex;flex-direction:row;gap:var(--g-spacing-2)}.ydb-pdisk-space-distribution .storage-disk-progress-bar{height:100%}.ydb-pdisk-space-distribution__pdisk-bar{display:flex;flex-direction:column;flex-grow:1;gap:var(--g-spacing-2);max-width:800px;min-width:500px;padding:var(--g-spacing-2)}.ydb-pdisk-space-distribution__slot-wrapper{background-color:var(--g-color-base-background);z-index:1}.ydb-pdisk-space-distribution__slot{display:flex;width:100%}.ydb-pdisk-space-distribution__slot-content{align-items:center;display:flex;flex-direction:row;flex-grow:1;justify-content:space-between;line-height:15px;padding:0 var(--g-spacing-2);z-index:1}.ydb-pdisk-space-distribution__slot-id{font-weight:600;margin-right:var(--g-spacing-3)}.ydb-pdisk-space-distribution__vdisk-popup{padding:var(--g-spacing-half) var(--g-spacing-2) var(--g-spacing-2)}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.ydb-pdisk-page{height:100%;overflow:auto;padding:0 20px;position:relative}.ydb-pdisk-page__controls,.ydb-pdisk-page__info,.ydb-pdisk-page__meta,.ydb-pdisk-page__tabs,.ydb-pdisk-page__title{left:0;margin-bottom:20px;position:sticky}.ydb-pdisk-page__meta{margin-top:20px}.ydb-pdisk-page__tabs{margin-bottom:0}.ydb-pdisk-page__disk-distribution{padding:20px 0}.ydb-pdisk-page__title{flex-direction:row}.ydb-pdisk-page__controls,.ydb-pdisk-page__title{align-items:center;display:flex;gap:var(--g-spacing-2)}.ydb-pdisk-page__tabs{--g-tabs-border-width:0;box-shadow:inset 0 -1px 0 0 var(--g-color-line-generic)}
\ No newline at end of file +@charset "UTF-8";.kv-shorty-string__toggle{font-size:.85em;margin-left:2em}.kv-result-issues{padding:0 10px}.kv-result-issues__error-message{align-items:center;background-color:var(--g-color-base-background);display:flex;left:0;padding:10px 0;position:sticky;top:0;z-index:2}.kv-result-issues__error-message-text{margin:0 10px}.kv-issues{position:relative}.kv-issue_leaf{margin-left:31px}.kv-issue__issues{padding-left:24px}.kv-issue__line{align-items:flex-start;display:flex;margin:0 0 10px;padding:0 10px 0 0}.kv-issue__place-text{color:var(--g-color-text-secondary);display:inline-block;padding-right:10px;text-align:left}.kv-issue__message{display:flex;font-family:var(--g-font-family-monospace);font-size:var(--g-text-code-2-font-size);line-height:var(--g-text-header-2-line-height);margin-left:10px;margin-right:auto}.kv-issue__message-text{flex:1 1 auto;min-width:240px;white-space:pre-wrap;word-break:break-word}.kv-issue__code{color:var(--g-color-text-complementary);flex:0 0 auto;font-size:12px;margin-left:1.5em;padding:3px 0}.kv-issue__arrow-toggle{margin-right:5px}.yql-issue-severity{align-items:center;display:flex;line-height:28px;white-space:nowrap}.yql-issue-severity_severity_error .yql-issue-severity__icon,.yql-issue-severity_severity_fatal .yql-issue-severity__icon{color:var(--g-color-text-danger)}.yql-issue-severity_severity_warning .yql-issue-severity__icon{color:var(--g-color-text-warning)}.yql-issue-severity_severity_info .yql-issue-severity__icon{color:var(--g-color-text-info)}.yql-issue-severity__title{color:var(--g-color-text-complementary);margin-left:4px;text-transform:capitalize}.ydb-critical-dialog{padding-top:var(--g-spacing-3)}.ydb-critical-dialog__warning-icon{color:var(--ydb-color-status-yellow);margin-right:16px}.ydb-critical-dialog__error-icon{color:var(--ydb-color-status-red);height:24px;margin-right:16px}.ydb-critical-dialog__body{display:flex;flex-direction:column;gap:var(--g-spacing-6)}.ydb-critical-dialog__body-message{align-items:center;display:flex}.ydb-critical-dialog__body-message_error,.ydb-critical-dialog__body-message_warning{border:1px solid;border-radius:var(--g-modal-border-radius,5px);padding:var(--g-spacing-4) var(--g-spacing-5)}.ydb-critical-dialog__body-message_warning{border-color:var(--ydb-color-status-yellow)}.ydb-critical-dialog__body-message_error{border-color:var(--ydb-color-status-red)}.g-checkbox__indicator{cursor:inherit;display:inline-block;position:relative}.g-checkbox__indicator:before{background-color:initial;border:1px solid var(--g-color-line-generic-accent);border-radius:4px;content:"";inset:0;position:absolute;transition:background .1s linear}.g-checkbox__indicator:after{content:"Â ";visibility:hidden}.g-checkbox__icon{align-items:center;color:#0000;display:flex;inset:0;justify-content:center;pointer-events:none;position:absolute;transform:translateY(-5px);transition:color .1s,transform .2s;visibility:hidden}.g-checkbox__control{border:none;cursor:inherit;margin:0;opacity:0;outline:none;padding:0}.g-checkbox__control,.g-checkbox__outline{background:none;height:100%;inset-block-start:0;inset-inline-start:0;position:absolute;width:100%}.g-checkbox__outline{border-radius:4px;pointer-events:none}.g-checkbox__control:focus-visible+.g-checkbox__outline{outline:2px solid var(--g-color-line-focus)}.g-checkbox_size_m .g-checkbox__icon-svg_type_tick{height:10px;width:8px}.g-checkbox_size_m .g-checkbox__icon-svg_type_dash{height:12px;width:12px}.g-checkbox_size_m .g-checkbox__indicator{height:14px;width:14px}.g-checkbox_size_l .g-checkbox__icon-svg_type_tick{height:9px;width:11px}.g-checkbox_size_l .g-checkbox__icon-svg_type_dash{height:15px;width:15px}.g-checkbox_size_l .g-checkbox__indicator{height:17px;width:17px}.g-checkbox:hover .g-checkbox__indicator:before{border-color:var(--g-color-line-generic-accent-hover)}.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);border:#0000}.g-checkbox_checked .g-checkbox__icon,.g-checkbox_indeterminate .g-checkbox__icon{color:var(--g-color-text-brand-contrast);transform:translateX(0);visibility:visible}.g-checkbox_disabled .g-checkbox__indicator:before{background-color:var(--g-color-base-generic-accent-disabled);border:#0000}.g-checkbox_disabled.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_disabled.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);opacity:.5}.ydb-entity-page-title{text-wrap:nowrap;align-items:baseline;display:flex;flex-flow:row nowrap;font-size:var(--g-text-header-2-font-size);line-height:var(--g-text-header-2-line-height)}.ydb-entity-page-title__prefix{color:var(--g-color-text-secondary);margin-right:6px}.ydb-entity-page-title__icon{margin-right:8px}.ydb-info-viewer-skeleton{display:flex;flex-direction:column;gap:16px}.ydb-info-viewer-skeleton__row{align-items:flex-start;display:flex}.ydb-info-viewer-skeleton__row,.ydb-info-viewer-skeleton__row .g-skeleton{min-height:var(--g-text-body-2-font-size)}.ydb-info-viewer-skeleton__label{align-items:baseline;display:flex;flex:0 1 auto;width:200px}.ydb-info-viewer-skeleton__label__text{width:100px}.ydb-info-viewer-skeleton__label__dots{border-bottom:1px dotted var(--g-color-text-secondary);margin:0 2px;width:100px}.ydb-info-viewer-skeleton__value{max-width:20%;min-width:200px}.g-skeleton{--_--animation-from:calc(-100%*var(--g-flow-direction));--_--animation-to:calc(100%*var(--g-flow-direction));--_--gradient-deg:calc(90deg*var(--g-flow-direction));background-color:var(--g-color-base-generic);border-radius:5px;display:inline-block;overflow:hidden;position:relative;width:100%;z-index:0}.g-skeleton:after{animation:g-skeleton 1.2s ease-out infinite;background-image:linear-gradient(var(--_--gradient-deg),#0000,var(--g-color-base-generic));content:"";inset:0;position:absolute}@keyframes g-skeleton{0%{transform:translateX(var(--_--animation-from))}to{transform:translateX(var(--_--animation-to))}}.ydb-page-meta__info{text-wrap:nowrap;color:var(--g-color-text-primary);display:flex;flex-flow:row nowrap;flex-grow:1;font-size:var(--g-text-body-2-font-size);height:var(--g-text-body-2-line-height);line-height:var(--g-text-body-2-line-height)}.ydb-page-meta__skeleton{height:80%;width:80%}.ydb-vdisk-info__title{display:flex;flex-direction:row;gap:var(--g-spacing-2)}.g-tree-select{display:inline-block;max-width:100%}.g-tree-select_width_max{width:100%}.g-tree-select__popup{overflow:hidden;padding:4px 0}.g-tree-select__popup_size_s{border-radius:var(--g-list-container-border-radius,5px)}.g-tree-select__popup_size_m{border-radius:var(--g-list-container-border-radius,6px)}.g-tree-select__popup_size_l{border-radius:var(--g-list-container-border-radius,8px)}.g-tree-select__popup_size_xl{border-radius:var(--g-list-container-border-radius,10px)}.g-tree-select__list{padding:0 4px}.g-list-item-expand-icon{flex-shrink:0}.g-list-item-view{align-items:center;display:flex;flex-grow:1;flex-shrink:0}.g-list-item-view__content{height:100%;width:100%}.g-list-item-view__main-content{display:grid;gap:var(--g-spacing-half,2px);width:100%}.g-list-item-view:hover.g-list-item-view_activeOnHover,.g-list-item-view_active{background:var(--g-color-base-simple-hover)}.g-list-item-view_clickable{cursor:pointer}.g-list-item-view_selected,.g-list-item-view_selected.g-list-item-view_active,.g-list-item-view_selected:hover.g-list-item-view_activeOnHover{background:var(--g-color-base-selection)}.g-list-item-view_dragging,.g-list-item-view_dragging.g-list-item-view_active,.g-list-item-view_dragging.g-list-item-view_selected{background:var(--g-color-base-simple-hover-solid);z-index:100001!important}.g-list-item-view_radius_s{border-radius:var(--g-list-item-border-radius,3px)}.g-list-item-view_radius_m{border-radius:var(--g-list-item-border-radius,5px)}.g-list-item-view_radius_l{border-radius:var(--g-list-item-border-radius,6px)}.g-list-item-view_radius_xl{border-radius:var(--g-list-item-border-radius,8px)}.g-list-item-view__slot{flex-shrink:0}.g-list-recursive-renderer{margin:0;padding:0}.g-list-container-view{box-sizing:border-box;outline:none;width:100%}.g-list-container-view_fixed-height{height:var(--g-list-container-height,300px)}.g-list-container-view:not(.g-list-container-view_fixed-height){overflow:auto}.g-inner-table-column-setup{display:inline-block}.g-inner-table-column-setup__controls{margin:var(--g-spacing-1) var(--g-spacing-1) 0}.g-inner-table-column-setup__filter-input{border-block-end:1px solid var(--g-color-line-generic);box-sizing:border-box;padding:0 var(--g-spacing-2) var(--g-spacing-1)}.g-inner-table-column-setup__empty-placeholder{padding:var(--g-spacing-2)}.g-table-column-setup__status{color:var(--g-color-text-secondary);margin-inline-start:5px}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.ydb-vdisk-page{height:100%;overflow:auto;padding:0 20px;position:relative}.ydb-vdisk-page__controls,.ydb-vdisk-page__info,.ydb-vdisk-page__meta,.ydb-vdisk-page__storage-title,.ydb-vdisk-page__title{left:0;margin-bottom:20px;position:sticky}.ydb-vdisk-page__meta{margin-top:20px}.ydb-vdisk-page__controls{align-items:center;display:flex;gap:var(--g-spacing-2)}.ydb-vdisk-page__storage-title{font-size:var(--g-text-header-1-font-size);line-height:var(--g-text-header-1-line-height);margin-bottom:0}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/8155.fd13e90a.chunk.css b/ydb/core/viewer/monitoring/static/css/684.a4d29f42.chunk.css index f18dd07902..1bde6a4e48 100644 --- a/ydb/core/viewer/monitoring/static/css/8155.fd13e90a.chunk.css +++ b/ydb/core/viewer/monitoring/static/css/684.a4d29f42.chunk.css @@ -1 +1 @@ -@charset "UTF-8";.kv-shorty-string__toggle{font-size:.85em;margin-left:2em}.kv-result-issues{padding:0 10px}.kv-result-issues__error-message{align-items:center;background-color:var(--g-color-base-background);display:flex;left:0;padding:10px 0;position:sticky;top:0;z-index:2}.kv-result-issues__error-message-text{margin:0 10px}.kv-issues{position:relative}.kv-issue_leaf{margin-left:31px}.kv-issue__issues{padding-left:24px}.kv-issue__line{align-items:flex-start;display:flex;margin:0 0 10px;padding:0 10px 0 0}.kv-issue__place-text{color:var(--g-color-text-secondary);display:inline-block;padding-right:10px;text-align:left}.kv-issue__message{display:flex;font-family:var(--g-font-family-monospace);font-size:var(--g-text-code-2-font-size);line-height:var(--g-text-header-2-line-height);margin-left:10px;margin-right:auto}.kv-issue__message-text{flex:1 1 auto;min-width:240px;white-space:pre-wrap;word-break:break-word}.kv-issue__code{color:var(--g-color-text-complementary);flex:0 0 auto;font-size:12px;margin-left:1.5em;padding:3px 0}.kv-issue__arrow-toggle{margin-right:5px}.yql-issue-severity{align-items:center;display:flex;line-height:28px;white-space:nowrap}.yql-issue-severity_severity_error .yql-issue-severity__icon,.yql-issue-severity_severity_fatal .yql-issue-severity__icon{color:var(--g-color-text-danger)}.yql-issue-severity_severity_warning .yql-issue-severity__icon{color:var(--g-color-text-warning)}.yql-issue-severity_severity_info .yql-issue-severity__icon{color:var(--g-color-text-info)}.yql-issue-severity__title{color:var(--g-color-text-complementary);margin-left:4px;text-transform:capitalize}.ydb-critical-dialog{padding-top:var(--g-spacing-3)}.ydb-critical-dialog__warning-icon{color:var(--ydb-color-status-yellow);margin-right:16px}.ydb-critical-dialog__error-icon{color:var(--ydb-color-status-red);height:24px;margin-right:16px}.ydb-critical-dialog__body{display:flex;flex-direction:column;gap:var(--g-spacing-6)}.ydb-critical-dialog__body-message{align-items:center;display:flex}.ydb-critical-dialog__body-message_error,.ydb-critical-dialog__body-message_warning{border:1px solid;border-radius:var(--g-modal-border-radius,5px);padding:var(--g-spacing-4) var(--g-spacing-5)}.ydb-critical-dialog__body-message_warning{border-color:var(--ydb-color-status-yellow)}.ydb-critical-dialog__body-message_error{border-color:var(--ydb-color-status-red)}.g-checkbox__indicator{cursor:inherit;display:inline-block;position:relative}.g-checkbox__indicator:before{background-color:initial;border:1px solid var(--g-color-line-generic-accent);border-radius:4px;content:"";inset:0;position:absolute;transition:background .1s linear}.g-checkbox__indicator:after{content:"Â ";visibility:hidden}.g-checkbox__icon{align-items:center;color:#0000;display:flex;inset:0;justify-content:center;pointer-events:none;position:absolute;transform:translateY(-5px);transition:color .1s,transform .2s;visibility:hidden}.g-checkbox__control{border:none;cursor:inherit;margin:0;opacity:0;outline:none;padding:0}.g-checkbox__control,.g-checkbox__outline{background:none;height:100%;inset-block-start:0;inset-inline-start:0;position:absolute;width:100%}.g-checkbox__outline{border-radius:4px;pointer-events:none}.g-checkbox__control:focus-visible+.g-checkbox__outline{outline:2px solid var(--g-color-line-focus)}.g-checkbox_size_m .g-checkbox__icon-svg_type_tick{height:10px;width:8px}.g-checkbox_size_m .g-checkbox__icon-svg_type_dash{height:12px;width:12px}.g-checkbox_size_m .g-checkbox__indicator{height:14px;width:14px}.g-checkbox_size_l .g-checkbox__icon-svg_type_tick{height:9px;width:11px}.g-checkbox_size_l .g-checkbox__icon-svg_type_dash{height:15px;width:15px}.g-checkbox_size_l .g-checkbox__indicator{height:17px;width:17px}.g-checkbox:hover .g-checkbox__indicator:before{border-color:var(--g-color-line-generic-accent-hover)}.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);border:#0000}.g-checkbox_checked .g-checkbox__icon,.g-checkbox_indeterminate .g-checkbox__icon{color:var(--g-color-text-brand-contrast);transform:translateX(0);visibility:visible}.g-checkbox_disabled .g-checkbox__indicator:before{background-color:var(--g-color-base-generic-accent-disabled);border:#0000}.g-checkbox_disabled.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_disabled.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);opacity:.5}.ydb-entity-page-title{text-wrap:nowrap;align-items:baseline;display:flex;flex-flow:row nowrap;font-size:var(--g-text-header-2-font-size);line-height:var(--g-text-header-2-line-height)}.ydb-entity-page-title__prefix{color:var(--g-color-text-secondary);margin-right:6px}.ydb-entity-page-title__icon{margin-right:8px}.ydb-info-viewer-skeleton{display:flex;flex-direction:column;gap:16px}.ydb-info-viewer-skeleton__row{align-items:flex-start;display:flex}.ydb-info-viewer-skeleton__row,.ydb-info-viewer-skeleton__row .g-skeleton{min-height:var(--g-text-body-2-font-size)}.ydb-info-viewer-skeleton__label{align-items:baseline;display:flex;flex:0 1 auto;width:200px}.ydb-info-viewer-skeleton__label__text{width:100px}.ydb-info-viewer-skeleton__label__dots{border-bottom:1px dotted var(--g-color-text-secondary);margin:0 2px;width:100px}.ydb-info-viewer-skeleton__value{max-width:20%;min-width:200px}.g-skeleton{--_--animation-from:calc(-100%*var(--g-flow-direction));--_--animation-to:calc(100%*var(--g-flow-direction));--_--gradient-deg:calc(90deg*var(--g-flow-direction));background-color:var(--g-color-base-generic);border-radius:5px;display:inline-block;overflow:hidden;position:relative;width:100%;z-index:0}.g-skeleton:after{animation:g-skeleton 1.2s ease-out infinite;background-image:linear-gradient(var(--_--gradient-deg),#0000,var(--g-color-base-generic));content:"";inset:0;position:absolute}@keyframes g-skeleton{0%{transform:translateX(var(--_--animation-from))}to{transform:translateX(var(--_--animation-to))}}.ydb-page-meta__info{text-wrap:nowrap;color:var(--g-color-text-primary);display:flex;flex-flow:row nowrap;flex-grow:1;font-size:var(--g-text-body-2-font-size);height:var(--g-text-body-2-line-height);line-height:var(--g-text-body-2-line-height)}.ydb-page-meta__skeleton{height:80%;width:80%}.ydb-vdisk-info__links{display:flex;flex-flow:row wrap;gap:var(--g-spacing-2)}.ydb-vdisk-info__title{display:flex;flex-direction:row;gap:var(--g-spacing-2)}.g-tree-select{display:inline-block;max-width:100%}.g-tree-select_width_max{width:100%}.g-tree-select__popup{overflow:hidden;padding:4px 0}.g-tree-select__popup_size_s{border-radius:var(--g-list-container-border-radius,5px)}.g-tree-select__popup_size_m{border-radius:var(--g-list-container-border-radius,6px)}.g-tree-select__popup_size_l{border-radius:var(--g-list-container-border-radius,8px)}.g-tree-select__popup_size_xl{border-radius:var(--g-list-container-border-radius,10px)}.g-tree-select__list{padding:0 4px}.g-list-item-expand-icon{flex-shrink:0}.g-list-item-view{align-items:center;display:flex;flex-grow:1;flex-shrink:0}.g-list-item-view__content{height:100%;width:100%}.g-list-item-view__main-content{display:grid;gap:var(--g-spacing-half,2px);width:100%}.g-list-item-view:hover.g-list-item-view_activeOnHover,.g-list-item-view_active{background:var(--g-color-base-simple-hover)}.g-list-item-view_clickable{cursor:pointer}.g-list-item-view_selected,.g-list-item-view_selected.g-list-item-view_active,.g-list-item-view_selected:hover.g-list-item-view_activeOnHover{background:var(--g-color-base-selection)}.g-list-item-view_dragging,.g-list-item-view_dragging.g-list-item-view_active,.g-list-item-view_dragging.g-list-item-view_selected{background:var(--g-color-base-simple-hover-solid);z-index:100001!important}.g-list-item-view_radius_s{border-radius:var(--g-list-item-border-radius,3px)}.g-list-item-view_radius_m{border-radius:var(--g-list-item-border-radius,5px)}.g-list-item-view_radius_l{border-radius:var(--g-list-item-border-radius,6px)}.g-list-item-view_radius_xl{border-radius:var(--g-list-item-border-radius,8px)}.g-list-item-view__slot{flex-shrink:0}.g-list-recursive-renderer{margin:0;padding:0}.g-list-container-view{box-sizing:border-box;outline:none;width:100%}.g-list-container-view_fixed-height{height:var(--g-list-container-height,300px)}.g-list-container-view:not(.g-list-container-view_fixed-height){overflow:auto}.g-inner-table-column-setup{display:inline-block}.g-inner-table-column-setup__controls{margin:var(--g-spacing-1) var(--g-spacing-1) 0}.g-inner-table-column-setup__filter-input{border-block-end:1px solid var(--g-color-line-generic);box-sizing:border-box;padding:0 var(--g-spacing-2) var(--g-spacing-1)}.g-inner-table-column-setup__empty-placeholder{padding:var(--g-spacing-2)}.g-table-column-setup__status{color:var(--g-color-text-secondary);margin-inline-start:5px}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.ydb-vdisk-page{height:100%;overflow:auto;padding:0 20px;position:relative}.ydb-vdisk-page__controls,.ydb-vdisk-page__info,.ydb-vdisk-page__meta,.ydb-vdisk-page__storage-title,.ydb-vdisk-page__title{left:0;margin-bottom:20px;position:sticky}.ydb-vdisk-page__meta{margin-top:20px}.ydb-vdisk-page__controls{align-items:center;display:flex;gap:var(--g-spacing-2)}.ydb-vdisk-page__storage-title{font-size:var(--g-text-header-1-font-size);line-height:var(--g-text-header-1-line-height);margin-bottom:0}
\ No newline at end of file +@charset "UTF-8";.kv-shorty-string__toggle{font-size:.85em;margin-left:2em}.kv-result-issues{padding:0 10px}.kv-result-issues__error-message{align-items:center;background-color:var(--g-color-base-background);display:flex;left:0;padding:10px 0;position:sticky;top:0;z-index:2}.kv-result-issues__error-message-text{margin:0 10px}.kv-issues{position:relative}.kv-issue_leaf{margin-left:31px}.kv-issue__issues{padding-left:24px}.kv-issue__line{align-items:flex-start;display:flex;margin:0 0 10px;padding:0 10px 0 0}.kv-issue__place-text{color:var(--g-color-text-secondary);display:inline-block;padding-right:10px;text-align:left}.kv-issue__message{display:flex;font-family:var(--g-font-family-monospace);font-size:var(--g-text-code-2-font-size);line-height:var(--g-text-header-2-line-height);margin-left:10px;margin-right:auto}.kv-issue__message-text{flex:1 1 auto;min-width:240px;white-space:pre-wrap;word-break:break-word}.kv-issue__code{color:var(--g-color-text-complementary);flex:0 0 auto;font-size:12px;margin-left:1.5em;padding:3px 0}.kv-issue__arrow-toggle{margin-right:5px}.yql-issue-severity{align-items:center;display:flex;line-height:28px;white-space:nowrap}.yql-issue-severity_severity_error .yql-issue-severity__icon,.yql-issue-severity_severity_fatal .yql-issue-severity__icon{color:var(--g-color-text-danger)}.yql-issue-severity_severity_warning .yql-issue-severity__icon{color:var(--g-color-text-warning)}.yql-issue-severity_severity_info .yql-issue-severity__icon{color:var(--g-color-text-info)}.yql-issue-severity__title{color:var(--g-color-text-complementary);margin-left:4px;text-transform:capitalize}.ydb-critical-dialog{padding-top:var(--g-spacing-3)}.ydb-critical-dialog__warning-icon{color:var(--ydb-color-status-yellow);margin-right:16px}.ydb-critical-dialog__error-icon{color:var(--ydb-color-status-red);height:24px;margin-right:16px}.ydb-critical-dialog__body{display:flex;flex-direction:column;gap:var(--g-spacing-6)}.ydb-critical-dialog__body-message{align-items:center;display:flex}.ydb-critical-dialog__body-message_error,.ydb-critical-dialog__body-message_warning{border:1px solid;border-radius:var(--g-modal-border-radius,5px);padding:var(--g-spacing-4) var(--g-spacing-5)}.ydb-critical-dialog__body-message_warning{border-color:var(--ydb-color-status-yellow)}.ydb-critical-dialog__body-message_error{border-color:var(--ydb-color-status-red)}.g-checkbox__indicator{cursor:inherit;display:inline-block;position:relative}.g-checkbox__indicator:before{background-color:initial;border:1px solid var(--g-color-line-generic-accent);border-radius:4px;content:"";inset:0;position:absolute;transition:background .1s linear}.g-checkbox__indicator:after{content:"Â ";visibility:hidden}.g-checkbox__icon{align-items:center;color:#0000;display:flex;inset:0;justify-content:center;pointer-events:none;position:absolute;transform:translateY(-5px);transition:color .1s,transform .2s;visibility:hidden}.g-checkbox__control{border:none;cursor:inherit;margin:0;opacity:0;outline:none;padding:0}.g-checkbox__control,.g-checkbox__outline{background:none;height:100%;inset-block-start:0;inset-inline-start:0;position:absolute;width:100%}.g-checkbox__outline{border-radius:4px;pointer-events:none}.g-checkbox__control:focus-visible+.g-checkbox__outline{outline:2px solid var(--g-color-line-focus)}.g-checkbox_size_m .g-checkbox__icon-svg_type_tick{height:10px;width:8px}.g-checkbox_size_m .g-checkbox__icon-svg_type_dash{height:12px;width:12px}.g-checkbox_size_m .g-checkbox__indicator{height:14px;width:14px}.g-checkbox_size_l .g-checkbox__icon-svg_type_tick{height:9px;width:11px}.g-checkbox_size_l .g-checkbox__icon-svg_type_dash{height:15px;width:15px}.g-checkbox_size_l .g-checkbox__indicator{height:17px;width:17px}.g-checkbox:hover .g-checkbox__indicator:before{border-color:var(--g-color-line-generic-accent-hover)}.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);border:#0000}.g-checkbox_checked .g-checkbox__icon,.g-checkbox_indeterminate .g-checkbox__icon{color:var(--g-color-text-brand-contrast);transform:translateX(0);visibility:visible}.g-checkbox_disabled .g-checkbox__indicator:before{background-color:var(--g-color-base-generic-accent-disabled);border:#0000}.g-checkbox_disabled.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_disabled.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);opacity:.5}.ydb-entity-page-title{text-wrap:nowrap;align-items:baseline;display:flex;flex-flow:row nowrap;font-size:var(--g-text-header-2-font-size);line-height:var(--g-text-header-2-line-height)}.ydb-entity-page-title__prefix{color:var(--g-color-text-secondary);margin-right:6px}.ydb-entity-page-title__icon{margin-right:8px}.ydb-info-viewer-skeleton{display:flex;flex-direction:column;gap:16px}.ydb-info-viewer-skeleton__row{align-items:flex-start;display:flex}.ydb-info-viewer-skeleton__row,.ydb-info-viewer-skeleton__row .g-skeleton{min-height:var(--g-text-body-2-font-size)}.ydb-info-viewer-skeleton__label{align-items:baseline;display:flex;flex:0 1 auto;width:200px}.ydb-info-viewer-skeleton__label__text{width:100px}.ydb-info-viewer-skeleton__label__dots{border-bottom:1px dotted var(--g-color-text-secondary);margin:0 2px;width:100px}.ydb-info-viewer-skeleton__value{max-width:20%;min-width:200px}.g-skeleton{--_--animation-from:calc(-100%*var(--g-flow-direction));--_--animation-to:calc(100%*var(--g-flow-direction));--_--gradient-deg:calc(90deg*var(--g-flow-direction));background-color:var(--g-color-base-generic);border-radius:5px;display:inline-block;overflow:hidden;position:relative;width:100%;z-index:0}.g-skeleton:after{animation:g-skeleton 1.2s ease-out infinite;background-image:linear-gradient(var(--_--gradient-deg),#0000,var(--g-color-base-generic));content:"";inset:0;position:absolute}@keyframes g-skeleton{0%{transform:translateX(var(--_--animation-from))}to{transform:translateX(var(--_--animation-to))}}.ydb-page-meta__info{text-wrap:nowrap;color:var(--g-color-text-primary);display:flex;flex-flow:row nowrap;flex-grow:1;font-size:var(--g-text-body-2-font-size);height:var(--g-text-body-2-line-height);line-height:var(--g-text-body-2-line-height)}.ydb-page-meta__skeleton{height:80%;width:80%}.g-tree-select{display:inline-block;max-width:100%}.g-tree-select_width_max{width:100%}.g-tree-select__popup{overflow:hidden;padding:4px 0}.g-tree-select__popup_size_s{border-radius:var(--g-list-container-border-radius,5px)}.g-tree-select__popup_size_m{border-radius:var(--g-list-container-border-radius,6px)}.g-tree-select__popup_size_l{border-radius:var(--g-list-container-border-radius,8px)}.g-tree-select__popup_size_xl{border-radius:var(--g-list-container-border-radius,10px)}.g-tree-select__list{padding:0 4px}.g-list-item-expand-icon{flex-shrink:0}.g-list-item-view{align-items:center;display:flex;flex-grow:1;flex-shrink:0}.g-list-item-view__content{height:100%;width:100%}.g-list-item-view__main-content{display:grid;gap:var(--g-spacing-half,2px);width:100%}.g-list-item-view:hover.g-list-item-view_activeOnHover,.g-list-item-view_active{background:var(--g-color-base-simple-hover)}.g-list-item-view_clickable{cursor:pointer}.g-list-item-view_selected,.g-list-item-view_selected.g-list-item-view_active,.g-list-item-view_selected:hover.g-list-item-view_activeOnHover{background:var(--g-color-base-selection)}.g-list-item-view_dragging,.g-list-item-view_dragging.g-list-item-view_active,.g-list-item-view_dragging.g-list-item-view_selected{background:var(--g-color-base-simple-hover-solid);z-index:100001!important}.g-list-item-view_radius_s{border-radius:var(--g-list-item-border-radius,3px)}.g-list-item-view_radius_m{border-radius:var(--g-list-item-border-radius,5px)}.g-list-item-view_radius_l{border-radius:var(--g-list-item-border-radius,6px)}.g-list-item-view_radius_xl{border-radius:var(--g-list-item-border-radius,8px)}.g-list-item-view__slot{flex-shrink:0}.g-list-recursive-renderer{margin:0;padding:0}.g-list-container-view{box-sizing:border-box;outline:none;width:100%}.g-list-container-view_fixed-height{height:var(--g-list-container-height,300px)}.g-list-container-view:not(.g-list-container-view_fixed-height){overflow:auto}.g-inner-table-column-setup{display:inline-block}.g-inner-table-column-setup__controls{margin:var(--g-spacing-1) var(--g-spacing-1) 0}.g-inner-table-column-setup__filter-input{border-block-end:1px solid var(--g-color-line-generic);box-sizing:border-box;padding:0 var(--g-spacing-2) var(--g-spacing-1)}.g-inner-table-column-setup__empty-placeholder{padding:var(--g-spacing-2)}.g-table-column-setup__status{color:var(--g-color-text-secondary);margin-inline-start:5px}.ydb-pdisk-decommission-button__button,.ydb-pdisk-decommission-button__popup{width:160px}.ydb-vdisk-info__title{display:flex;flex-direction:row;gap:var(--g-spacing-2)}.ydb-pdisk-space-distribution .storage-disk-progress-bar{height:100%}.ydb-pdisk-space-distribution__pdisk-bar{display:flex;flex-direction:column;flex-grow:1;gap:var(--g-spacing-2);max-width:800px;min-width:500px;padding:var(--g-spacing-2)}.ydb-pdisk-space-distribution__slot-wrapper{background-color:var(--g-color-base-background);z-index:1}.ydb-pdisk-space-distribution__slot{display:flex;width:100%}.ydb-pdisk-space-distribution__slot-content{align-items:center;display:flex;flex-direction:row;flex-grow:1;justify-content:space-between;line-height:15px;padding:0 var(--g-spacing-2);z-index:1}.ydb-pdisk-space-distribution__slot-id{font-weight:600;margin-right:var(--g-spacing-3)}.ydb-pdisk-space-distribution__vdisk-popup{padding:var(--g-spacing-half) var(--g-spacing-2) var(--g-spacing-2)}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.ydb-pdisk-page{height:100%;overflow:auto;padding:0 20px;position:relative}.ydb-pdisk-page__controls,.ydb-pdisk-page__info,.ydb-pdisk-page__meta,.ydb-pdisk-page__tabs,.ydb-pdisk-page__title{left:0;margin-bottom:20px;position:sticky}.ydb-pdisk-page__meta{margin-top:20px}.ydb-pdisk-page__tabs{margin-bottom:0}.ydb-pdisk-page__disk-distribution{padding:20px 0}.ydb-pdisk-page__title{flex-direction:row}.ydb-pdisk-page__controls,.ydb-pdisk-page__title{align-items:center;display:flex;gap:var(--g-spacing-2)}.ydb-pdisk-page__tabs{--g-tabs-border-width:0;box-shadow:inset 0 -1px 0 0 var(--g-color-line-generic)}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/4905.028ad14b.chunk.css b/ydb/core/viewer/monitoring/static/css/8393.09a78946.chunk.css index ed93855066..203ba769f4 100644 --- a/ydb/core/viewer/monitoring/static/css/4905.028ad14b.chunk.css +++ b/ydb/core/viewer/monitoring/static/css/8393.09a78946.chunk.css @@ -1 +1 @@ -@charset "UTF-8";.ydb-entity-page-title{text-wrap:nowrap;align-items:baseline;display:flex;flex-flow:row nowrap;font-size:var(--g-text-header-2-font-size);line-height:var(--g-text-header-2-line-height)}.ydb-entity-page-title__prefix{color:var(--g-color-text-secondary);margin-right:6px}.ydb-entity-page-title__icon{margin-right:8px}.ydb-pool-usage{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.ydb-pool-usage__info{align-items:center;display:flex;justify-content:space-between}.ydb-pool-usage__pool-name{color:var(--g-color-text-primary)}.ydb-pool-usage__value{align-items:center;display:flex}.ydb-pool-usage__threads{color:var(--g-color-text-hint);font-size:var(--g-text-body-1-font-size)}.ydb-pool-usage__percents{color:var(--g-color-text-primary);font-size:var(--g-text-body-1-font-size);margin-right:2px}.ydb-pool-usage__visual{align-items:center;background-color:var(--g-color-base-generic-accent);border-radius:4px;display:flex;font-size:var(--g-text-body-2-font-size);height:6px;justify-content:center;overflow:hidden;position:relative}.ydb-pool-usage__usage-line{height:100%;left:0;position:absolute;top:0}.ydb-pool-usage__usage-line_type_green{background-color:var(--ydb-color-status-green)}.ydb-pool-usage__usage-line_type_blue{background-color:var(--ydb-color-status-blue)}.ydb-pool-usage__usage-line_type_yellow{background-color:var(--ydb-color-status-yellow)}.ydb-pool-usage__usage-line_type_red{background-color:var(--ydb-color-status-red)}.full-node-viewer{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.full-node-viewer__section{display:flex;flex-direction:column;max-width:500px;min-width:300px;width:max-content}.full-node-viewer__section_pools{grid-gap:7px 20px;display:grid;grid-template-columns:110px 110px}.full-node-viewer .info-viewer__label{min-width:100px}.full-node-viewer__section-title{font-size:var(--g-text-body-2-font-size);font-weight:600;line-height:var(--g-text-body-2-line-height);margin:15px 0 10px}.full-node-viewer__role{color:var(--g-color-text-secondary)}.ydb-info-viewer-skeleton{display:flex;flex-direction:column;gap:16px}.ydb-info-viewer-skeleton__row{align-items:flex-start;display:flex}.ydb-info-viewer-skeleton__row,.ydb-info-viewer-skeleton__row .g-skeleton{min-height:var(--g-text-body-2-font-size)}.ydb-info-viewer-skeleton__label{align-items:baseline;display:flex;flex:0 1 auto;width:200px}.ydb-info-viewer-skeleton__label__text{width:100px}.ydb-info-viewer-skeleton__label__dots{border-bottom:1px dotted var(--g-color-text-secondary);margin:0 2px;width:100px}.ydb-info-viewer-skeleton__value{max-width:20%;min-width:200px}.g-skeleton{--_--animation-from:calc(-100%*var(--g-flow-direction));--_--animation-to:calc(100%*var(--g-flow-direction));--_--gradient-deg:calc(90deg*var(--g-flow-direction));background-color:var(--g-color-base-generic);border-radius:5px;display:inline-block;overflow:hidden;position:relative;width:100%;z-index:0}.g-skeleton:after{animation:g-skeleton 1.2s ease-out infinite;background-image:linear-gradient(var(--_--gradient-deg),#0000,var(--g-color-base-generic));content:"";inset:0;position:absolute}@keyframes g-skeleton{0%{transform:translateX(var(--_--animation-from))}to{transform:translateX(var(--_--animation-to))}}.ydb-page-meta__info{text-wrap:nowrap;color:var(--g-color-text-primary);display:flex;flex-flow:row nowrap;flex-grow:1;font-size:var(--g-text-body-2-font-size);height:var(--g-text-body-2-line-height);line-height:var(--g-text-body-2-line-height)}.ydb-page-meta__skeleton{height:80%;width:80%}.g-tree-select{display:inline-block;max-width:100%}.g-tree-select_width_max{width:100%}.g-tree-select__popup{overflow:hidden;padding:4px 0}.g-tree-select__popup_size_s{border-radius:var(--g-list-container-border-radius,5px)}.g-tree-select__popup_size_m{border-radius:var(--g-list-container-border-radius,6px)}.g-tree-select__popup_size_l{border-radius:var(--g-list-container-border-radius,8px)}.g-tree-select__popup_size_xl{border-radius:var(--g-list-container-border-radius,10px)}.g-tree-select__list{padding:0 4px}.g-list-item-expand-icon{flex-shrink:0}.g-list-item-view{align-items:center;display:flex;flex-grow:1;flex-shrink:0}.g-list-item-view__content{height:100%;width:100%}.g-list-item-view__main-content{display:grid;gap:var(--g-spacing-half,2px);width:100%}.g-list-item-view:hover.g-list-item-view_activeOnHover,.g-list-item-view_active{background:var(--g-color-base-simple-hover)}.g-list-item-view_clickable{cursor:pointer}.g-list-item-view_selected,.g-list-item-view_selected.g-list-item-view_active,.g-list-item-view_selected:hover.g-list-item-view_activeOnHover{background:var(--g-color-base-selection)}.g-list-item-view_dragging,.g-list-item-view_dragging.g-list-item-view_active,.g-list-item-view_dragging.g-list-item-view_selected{background:var(--g-color-base-simple-hover-solid);z-index:100001!important}.g-list-item-view_radius_s{border-radius:var(--g-list-item-border-radius,3px)}.g-list-item-view_radius_m{border-radius:var(--g-list-item-border-radius,5px)}.g-list-item-view_radius_l{border-radius:var(--g-list-item-border-radius,6px)}.g-list-item-view_radius_xl{border-radius:var(--g-list-item-border-radius,8px)}.g-list-item-view__slot{flex-shrink:0}.g-list-recursive-renderer{margin:0;padding:0}.g-list-container-view{box-sizing:border-box;outline:none;width:100%}.g-list-container-view_fixed-height{height:var(--g-list-container-height,300px)}.g-list-container-view:not(.g-list-container-view_fixed-height){overflow:auto}.g-inner-table-column-setup{display:inline-block}.g-inner-table-column-setup__controls{margin:var(--g-spacing-1) var(--g-spacing-1) 0}.g-inner-table-column-setup__filter-input{border-block-end:1px solid var(--g-color-line-generic);box-sizing:border-box;padding:0 var(--g-spacing-2) var(--g-spacing-1)}.g-inner-table-column-setup__empty-placeholder{padding:var(--g-spacing-2)}.g-table-column-setup__status{color:var(--g-color-text-secondary);margin-inline-start:5px}.kv-shorty-string__toggle{font-size:.85em;margin-left:2em}.kv-result-issues{padding:0 10px}.kv-result-issues__error-message{align-items:center;background-color:var(--g-color-base-background);display:flex;left:0;padding:10px 0;position:sticky;top:0;z-index:2}.kv-result-issues__error-message-text{margin:0 10px}.kv-issues{position:relative}.kv-issue_leaf{margin-left:31px}.kv-issue__issues{padding-left:24px}.kv-issue__line{align-items:flex-start;display:flex;margin:0 0 10px;padding:0 10px 0 0}.kv-issue__place-text{color:var(--g-color-text-secondary);display:inline-block;padding-right:10px;text-align:left}.kv-issue__message{display:flex;font-family:var(--g-font-family-monospace);font-size:var(--g-text-code-2-font-size);line-height:var(--g-text-header-2-line-height);margin-left:10px;margin-right:auto}.kv-issue__message-text{flex:1 1 auto;min-width:240px;white-space:pre-wrap;word-break:break-word}.kv-issue__code{color:var(--g-color-text-complementary);flex:0 0 auto;font-size:12px;margin-left:1.5em;padding:3px 0}.kv-issue__arrow-toggle{margin-right:5px}.yql-issue-severity{align-items:center;display:flex;line-height:28px;white-space:nowrap}.yql-issue-severity_severity_error .yql-issue-severity__icon,.yql-issue-severity_severity_fatal .yql-issue-severity__icon{color:var(--g-color-text-danger)}.yql-issue-severity_severity_warning .yql-issue-severity__icon{color:var(--g-color-text-warning)}.yql-issue-severity_severity_info .yql-issue-severity__icon{color:var(--g-color-text-info)}.yql-issue-severity__title{color:var(--g-color-text-complementary);margin-left:4px;text-transform:capitalize}.ydb-critical-dialog{padding-top:var(--g-spacing-3)}.ydb-critical-dialog__warning-icon{color:var(--ydb-color-status-yellow);margin-right:16px}.ydb-critical-dialog__error-icon{color:var(--ydb-color-status-red);height:24px;margin-right:16px}.ydb-critical-dialog__body{display:flex;flex-direction:column;gap:var(--g-spacing-6)}.ydb-critical-dialog__body-message{align-items:center;display:flex}.ydb-critical-dialog__body-message_error,.ydb-critical-dialog__body-message_warning{border:1px solid;border-radius:var(--g-modal-border-radius,5px);padding:var(--g-spacing-4) var(--g-spacing-5)}.ydb-critical-dialog__body-message_warning{border-color:var(--ydb-color-status-yellow)}.ydb-critical-dialog__body-message_error{border-color:var(--ydb-color-status-red)}.g-checkbox__indicator{cursor:inherit;display:inline-block;position:relative}.g-checkbox__indicator:before{background-color:initial;border:1px solid var(--g-color-line-generic-accent);border-radius:4px;content:"";inset:0;position:absolute;transition:background .1s linear}.g-checkbox__indicator:after{content:"Â ";visibility:hidden}.g-checkbox__icon{align-items:center;color:#0000;display:flex;inset:0;justify-content:center;pointer-events:none;position:absolute;transform:translateY(-5px);transition:color .1s,transform .2s;visibility:hidden}.g-checkbox__control{border:none;cursor:inherit;margin:0;opacity:0;outline:none;padding:0}.g-checkbox__control,.g-checkbox__outline{background:none;height:100%;inset-block-start:0;inset-inline-start:0;position:absolute;width:100%}.g-checkbox__outline{border-radius:4px;pointer-events:none}.g-checkbox__control:focus-visible+.g-checkbox__outline{outline:2px solid var(--g-color-line-focus)}.g-checkbox_size_m .g-checkbox__icon-svg_type_tick{height:10px;width:8px}.g-checkbox_size_m .g-checkbox__icon-svg_type_dash{height:12px;width:12px}.g-checkbox_size_m .g-checkbox__indicator{height:14px;width:14px}.g-checkbox_size_l .g-checkbox__icon-svg_type_tick{height:9px;width:11px}.g-checkbox_size_l .g-checkbox__icon-svg_type_dash{height:15px;width:15px}.g-checkbox_size_l .g-checkbox__indicator{height:17px;width:17px}.g-checkbox:hover .g-checkbox__indicator:before{border-color:var(--g-color-line-generic-accent-hover)}.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);border:#0000}.g-checkbox_checked .g-checkbox__icon,.g-checkbox_indeterminate .g-checkbox__icon{color:var(--g-color-text-brand-contrast);transform:translateX(0);visibility:visible}.g-checkbox_disabled .g-checkbox__indicator:before{background-color:var(--g-color-base-generic-accent-disabled);border:#0000}.g-checkbox_disabled.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_disabled.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);opacity:.5}.ydb-resizeable-data-table{display:flex;padding-right:20px;width:max-content}.ydb-pdisk-info__links,.ydb-vdisk-info__links{display:flex;flex-flow:row wrap;gap:var(--g-spacing-2)}.ydb-vdisk-info__title{display:flex;flex-direction:row;gap:var(--g-spacing-2)}.kv-node-structure{display:flex;flex-shrink:0;flex:1 1 auto;flex-direction:column;font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);overflow:auto;position:relative}.kv-node-structure__error{padding:20px 20px 0}.kv-node-structure__pdisk{border:1px solid var(--g-color-line-generic);border-radius:5px;display:flex;flex-direction:column;margin-bottom:8px;padding:0 10px 0 20px;width:573px}.kv-node-structure__pdisk-id{align-items:flex-end;display:flex}.kv-node-structure__pdisk-header{align-items:center;display:flex;height:48px;justify-content:space-between}.kv-node-structure__pdisk-title-wrapper{align-items:center;display:flex;font-weight:600;gap:16px}.kv-node-structure__pdisk-title-wrapper .entity-status__status-icon{margin-right:0}.kv-node-structure__pdisk-title-item{display:flex;gap:4px}.kv-node-structure__pdisk-title-item-label{color:var(--g-color-text-secondary);font-weight:400}.kv-node-structure__pdisk-title-id{min-width:110px}.kv-node-structure__pdisk-title-type{justify-content:flex-end;min-width:50px}.kv-node-structure__pdisk-title-size{min-width:150px}.kv-node-structure__pdisk-details{margin-bottom:20px}.kv-node-structure__link{color:var(--g-color-base-brand);text-decoration:none}.kv-node-structure__vdisks-header{font-weight:600}.kv-node-structure__vdisks-container{margin-bottom:42px}.kv-node-structure__vdisk-details{max-height:90vh;max-width:unset;min-width:200px;overflow:auto}.kv-node-structure__vdisk-details .vdisk-pdisk-node__column{margin-bottom:0}.kv-node-structure__vdisk-details .vdisk-pdisk-node__section{padding-bottom:0}.kv-node-structure__vdisk-id{align-items:center;display:flex}.kv-node-structure__vdisk-details-button_selected,.kv-node-structure__vdisk-id_selected{color:var(--g-color-text-info)}.kv-node-structure__external-button{align-items:center;display:inline-flex;margin-left:4px;transform:translateY(-1px)}.kv-node-structure__external-button_hidden{visibility:hidden}.kv-node-structure .data-table__row:hover .kv-node-structure__external-button_hidden{visibility:visible}.kv-node-structure__selected-vdisk{animation:onSelectedVdiskAnimation 4s}@keyframes onSelectedVdiskAnimation{0%{background-color:var(--g-color-base-info-light-hover)}}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.node{height:100%;overflow:auto;padding:0 20px;position:relative}.node__error,.node__info,.node__meta,.node__tabs,.node__title{left:0;margin-bottom:20px;position:sticky}.node__meta{margin-top:20px}.node__error,.node__tabs{margin-bottom:0}.node__tabs{--g-tabs-border-width:0;box-shadow:inset 0 -1px 0 0 var(--g-color-line-generic)}
\ No newline at end of file +@charset "UTF-8";.ydb-entity-page-title{text-wrap:nowrap;align-items:baseline;display:flex;flex-flow:row nowrap;font-size:var(--g-text-header-2-font-size);line-height:var(--g-text-header-2-line-height)}.ydb-entity-page-title__prefix{color:var(--g-color-text-secondary);margin-right:6px}.ydb-entity-page-title__icon{margin-right:8px}.ydb-pool-usage{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.ydb-pool-usage__info{align-items:center;display:flex;justify-content:space-between}.ydb-pool-usage__pool-name{color:var(--g-color-text-primary)}.ydb-pool-usage__value{align-items:center;display:flex}.ydb-pool-usage__threads{color:var(--g-color-text-hint);font-size:var(--g-text-body-1-font-size)}.ydb-pool-usage__percents{color:var(--g-color-text-primary);font-size:var(--g-text-body-1-font-size);margin-right:2px}.ydb-pool-usage__visual{align-items:center;background-color:var(--g-color-base-generic-accent);border-radius:4px;display:flex;font-size:var(--g-text-body-2-font-size);height:6px;justify-content:center;overflow:hidden;position:relative}.ydb-pool-usage__usage-line{height:100%;left:0;position:absolute;top:0}.ydb-pool-usage__usage-line_type_green{background-color:var(--ydb-color-status-green)}.ydb-pool-usage__usage-line_type_blue{background-color:var(--ydb-color-status-blue)}.ydb-pool-usage__usage-line_type_yellow{background-color:var(--ydb-color-status-yellow)}.ydb-pool-usage__usage-line_type_red{background-color:var(--ydb-color-status-red)}.full-node-viewer{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.full-node-viewer__section{display:flex;flex-direction:column;max-width:500px;min-width:300px;width:max-content}.full-node-viewer__section_pools{grid-gap:7px 20px;display:grid;grid-template-columns:110px 110px}.full-node-viewer .info-viewer__label{min-width:100px}.full-node-viewer__section-title{font-size:var(--g-text-body-2-font-size);font-weight:600;line-height:var(--g-text-body-2-line-height);margin:15px 0 10px}.full-node-viewer__role{color:var(--g-color-text-secondary)}.ydb-info-viewer-skeleton{display:flex;flex-direction:column;gap:16px}.ydb-info-viewer-skeleton__row{align-items:flex-start;display:flex}.ydb-info-viewer-skeleton__row,.ydb-info-viewer-skeleton__row .g-skeleton{min-height:var(--g-text-body-2-font-size)}.ydb-info-viewer-skeleton__label{align-items:baseline;display:flex;flex:0 1 auto;width:200px}.ydb-info-viewer-skeleton__label__text{width:100px}.ydb-info-viewer-skeleton__label__dots{border-bottom:1px dotted var(--g-color-text-secondary);margin:0 2px;width:100px}.ydb-info-viewer-skeleton__value{max-width:20%;min-width:200px}.g-skeleton{--_--animation-from:calc(-100%*var(--g-flow-direction));--_--animation-to:calc(100%*var(--g-flow-direction));--_--gradient-deg:calc(90deg*var(--g-flow-direction));background-color:var(--g-color-base-generic);border-radius:5px;display:inline-block;overflow:hidden;position:relative;width:100%;z-index:0}.g-skeleton:after{animation:g-skeleton 1.2s ease-out infinite;background-image:linear-gradient(var(--_--gradient-deg),#0000,var(--g-color-base-generic));content:"";inset:0;position:absolute}@keyframes g-skeleton{0%{transform:translateX(var(--_--animation-from))}to{transform:translateX(var(--_--animation-to))}}.ydb-page-meta__info{text-wrap:nowrap;color:var(--g-color-text-primary);display:flex;flex-flow:row nowrap;flex-grow:1;font-size:var(--g-text-body-2-font-size);height:var(--g-text-body-2-line-height);line-height:var(--g-text-body-2-line-height)}.ydb-page-meta__skeleton{height:80%;width:80%}.g-tree-select{display:inline-block;max-width:100%}.g-tree-select_width_max{width:100%}.g-tree-select__popup{overflow:hidden;padding:4px 0}.g-tree-select__popup_size_s{border-radius:var(--g-list-container-border-radius,5px)}.g-tree-select__popup_size_m{border-radius:var(--g-list-container-border-radius,6px)}.g-tree-select__popup_size_l{border-radius:var(--g-list-container-border-radius,8px)}.g-tree-select__popup_size_xl{border-radius:var(--g-list-container-border-radius,10px)}.g-tree-select__list{padding:0 4px}.g-list-item-expand-icon{flex-shrink:0}.g-list-item-view{align-items:center;display:flex;flex-grow:1;flex-shrink:0}.g-list-item-view__content{height:100%;width:100%}.g-list-item-view__main-content{display:grid;gap:var(--g-spacing-half,2px);width:100%}.g-list-item-view:hover.g-list-item-view_activeOnHover,.g-list-item-view_active{background:var(--g-color-base-simple-hover)}.g-list-item-view_clickable{cursor:pointer}.g-list-item-view_selected,.g-list-item-view_selected.g-list-item-view_active,.g-list-item-view_selected:hover.g-list-item-view_activeOnHover{background:var(--g-color-base-selection)}.g-list-item-view_dragging,.g-list-item-view_dragging.g-list-item-view_active,.g-list-item-view_dragging.g-list-item-view_selected{background:var(--g-color-base-simple-hover-solid);z-index:100001!important}.g-list-item-view_radius_s{border-radius:var(--g-list-item-border-radius,3px)}.g-list-item-view_radius_m{border-radius:var(--g-list-item-border-radius,5px)}.g-list-item-view_radius_l{border-radius:var(--g-list-item-border-radius,6px)}.g-list-item-view_radius_xl{border-radius:var(--g-list-item-border-radius,8px)}.g-list-item-view__slot{flex-shrink:0}.g-list-recursive-renderer{margin:0;padding:0}.g-list-container-view{box-sizing:border-box;outline:none;width:100%}.g-list-container-view_fixed-height{height:var(--g-list-container-height,300px)}.g-list-container-view:not(.g-list-container-view_fixed-height){overflow:auto}.g-inner-table-column-setup{display:inline-block}.g-inner-table-column-setup__controls{margin:var(--g-spacing-1) var(--g-spacing-1) 0}.g-inner-table-column-setup__filter-input{border-block-end:1px solid var(--g-color-line-generic);box-sizing:border-box;padding:0 var(--g-spacing-2) var(--g-spacing-1)}.g-inner-table-column-setup__empty-placeholder{padding:var(--g-spacing-2)}.g-table-column-setup__status{color:var(--g-color-text-secondary);margin-inline-start:5px}.kv-shorty-string__toggle{font-size:.85em;margin-left:2em}.kv-result-issues{padding:0 10px}.kv-result-issues__error-message{align-items:center;background-color:var(--g-color-base-background);display:flex;left:0;padding:10px 0;position:sticky;top:0;z-index:2}.kv-result-issues__error-message-text{margin:0 10px}.kv-issues{position:relative}.kv-issue_leaf{margin-left:31px}.kv-issue__issues{padding-left:24px}.kv-issue__line{align-items:flex-start;display:flex;margin:0 0 10px;padding:0 10px 0 0}.kv-issue__place-text{color:var(--g-color-text-secondary);display:inline-block;padding-right:10px;text-align:left}.kv-issue__message{display:flex;font-family:var(--g-font-family-monospace);font-size:var(--g-text-code-2-font-size);line-height:var(--g-text-header-2-line-height);margin-left:10px;margin-right:auto}.kv-issue__message-text{flex:1 1 auto;min-width:240px;white-space:pre-wrap;word-break:break-word}.kv-issue__code{color:var(--g-color-text-complementary);flex:0 0 auto;font-size:12px;margin-left:1.5em;padding:3px 0}.kv-issue__arrow-toggle{margin-right:5px}.yql-issue-severity{align-items:center;display:flex;line-height:28px;white-space:nowrap}.yql-issue-severity_severity_error .yql-issue-severity__icon,.yql-issue-severity_severity_fatal .yql-issue-severity__icon{color:var(--g-color-text-danger)}.yql-issue-severity_severity_warning .yql-issue-severity__icon{color:var(--g-color-text-warning)}.yql-issue-severity_severity_info .yql-issue-severity__icon{color:var(--g-color-text-info)}.yql-issue-severity__title{color:var(--g-color-text-complementary);margin-left:4px;text-transform:capitalize}.ydb-critical-dialog{padding-top:var(--g-spacing-3)}.ydb-critical-dialog__warning-icon{color:var(--ydb-color-status-yellow);margin-right:16px}.ydb-critical-dialog__error-icon{color:var(--ydb-color-status-red);height:24px;margin-right:16px}.ydb-critical-dialog__body{display:flex;flex-direction:column;gap:var(--g-spacing-6)}.ydb-critical-dialog__body-message{align-items:center;display:flex}.ydb-critical-dialog__body-message_error,.ydb-critical-dialog__body-message_warning{border:1px solid;border-radius:var(--g-modal-border-radius,5px);padding:var(--g-spacing-4) var(--g-spacing-5)}.ydb-critical-dialog__body-message_warning{border-color:var(--ydb-color-status-yellow)}.ydb-critical-dialog__body-message_error{border-color:var(--ydb-color-status-red)}.g-checkbox__indicator{cursor:inherit;display:inline-block;position:relative}.g-checkbox__indicator:before{background-color:initial;border:1px solid var(--g-color-line-generic-accent);border-radius:4px;content:"";inset:0;position:absolute;transition:background .1s linear}.g-checkbox__indicator:after{content:"Â ";visibility:hidden}.g-checkbox__icon{align-items:center;color:#0000;display:flex;inset:0;justify-content:center;pointer-events:none;position:absolute;transform:translateY(-5px);transition:color .1s,transform .2s;visibility:hidden}.g-checkbox__control{border:none;cursor:inherit;margin:0;opacity:0;outline:none;padding:0}.g-checkbox__control,.g-checkbox__outline{background:none;height:100%;inset-block-start:0;inset-inline-start:0;position:absolute;width:100%}.g-checkbox__outline{border-radius:4px;pointer-events:none}.g-checkbox__control:focus-visible+.g-checkbox__outline{outline:2px solid var(--g-color-line-focus)}.g-checkbox_size_m .g-checkbox__icon-svg_type_tick{height:10px;width:8px}.g-checkbox_size_m .g-checkbox__icon-svg_type_dash{height:12px;width:12px}.g-checkbox_size_m .g-checkbox__indicator{height:14px;width:14px}.g-checkbox_size_l .g-checkbox__icon-svg_type_tick{height:9px;width:11px}.g-checkbox_size_l .g-checkbox__icon-svg_type_dash{height:15px;width:15px}.g-checkbox_size_l .g-checkbox__indicator{height:17px;width:17px}.g-checkbox:hover .g-checkbox__indicator:before{border-color:var(--g-color-line-generic-accent-hover)}.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);border:#0000}.g-checkbox_checked .g-checkbox__icon,.g-checkbox_indeterminate .g-checkbox__icon{color:var(--g-color-text-brand-contrast);transform:translateX(0);visibility:visible}.g-checkbox_disabled .g-checkbox__indicator:before{background-color:var(--g-color-base-generic-accent-disabled);border:#0000}.g-checkbox_disabled.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_disabled.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);opacity:.5}.ydb-resizeable-data-table{display:flex;padding-right:20px;width:max-content}.ydb-vdisk-info__title{display:flex;flex-direction:row;gap:var(--g-spacing-2)}.kv-node-structure{display:flex;flex-shrink:0;flex:1 1 auto;flex-direction:column;font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);overflow:auto;position:relative}.kv-node-structure__error{padding:20px 20px 0}.kv-node-structure__pdisk{border:1px solid var(--g-color-line-generic);border-radius:5px;display:flex;flex-direction:column;margin-bottom:8px;padding:0 10px 0 20px;width:573px}.kv-node-structure__pdisk-id{align-items:flex-end;display:flex}.kv-node-structure__pdisk-header{align-items:center;display:flex;height:48px;justify-content:space-between}.kv-node-structure__pdisk-title-wrapper{align-items:center;display:flex;font-weight:600;gap:16px}.kv-node-structure__pdisk-title-wrapper .entity-status__status-icon{margin-right:0}.kv-node-structure__pdisk-title-item{display:flex;gap:4px}.kv-node-structure__pdisk-title-item-label{color:var(--g-color-text-secondary);font-weight:400}.kv-node-structure__pdisk-title-id{min-width:110px}.kv-node-structure__pdisk-title-type{justify-content:flex-end;min-width:50px}.kv-node-structure__pdisk-title-size{min-width:150px}.kv-node-structure__pdisk-details{margin-bottom:20px}.kv-node-structure__link{color:var(--g-color-base-brand);text-decoration:none}.kv-node-structure__vdisks-header{font-weight:600}.kv-node-structure__vdisks-container{margin-bottom:42px}.kv-node-structure__vdisk-details{max-height:90vh;max-width:unset;min-width:200px;overflow:auto}.kv-node-structure__vdisk-details .vdisk-pdisk-node__column{margin-bottom:0}.kv-node-structure__vdisk-details .vdisk-pdisk-node__section{padding-bottom:0}.kv-node-structure__vdisk-id{align-items:center;display:flex}.kv-node-structure__vdisk-details-button_selected,.kv-node-structure__vdisk-id_selected{color:var(--g-color-text-info)}.kv-node-structure__external-button{align-items:center;display:inline-flex;margin-left:4px;transform:translateY(-1px)}.kv-node-structure__external-button_hidden{visibility:hidden}.kv-node-structure .data-table__row:hover .kv-node-structure__external-button_hidden{visibility:visible}.kv-node-structure__selected-vdisk{animation:onSelectedVdiskAnimation 4s}@keyframes onSelectedVdiskAnimation{0%{background-color:var(--g-color-base-info-light-hover)}}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.node{height:100%;overflow:auto;padding:0 20px;position:relative}.node__error,.node__info,.node__meta,.node__tabs,.node__title{left:0;margin-bottom:20px;position:sticky}.node__meta{margin-top:20px}.node__error,.node__tabs{margin-bottom:0}.node__tabs{--g-tabs-border-width:0;box-shadow:inset 0 -1px 0 0 var(--g-color-line-generic)}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/535.c6fb8cd9.chunk.css b/ydb/core/viewer/monitoring/static/css/9393.c6fb8cd9.chunk.css index d028999af5..d028999af5 100644 --- a/ydb/core/viewer/monitoring/static/css/535.c6fb8cd9.chunk.css +++ b/ydb/core/viewer/monitoring/static/css/9393.c6fb8cd9.chunk.css diff --git a/ydb/core/viewer/monitoring/static/css/3940.0971684f.chunk.css b/ydb/core/viewer/monitoring/static/css/9802.d30d0ff3.chunk.css index 720052b0ff..d1aef8129f 100644 --- a/ydb/core/viewer/monitoring/static/css/3940.0971684f.chunk.css +++ b/ydb/core/viewer/monitoring/static/css/9802.d30d0ff3.chunk.css @@ -1 +1 @@ -.g-select{display:inline-block;max-width:100%}.g-select_width_max{width:100%}.g-select-filter{--g-text-input-border-color:var(--g-color-line-generic-active)}.g-select-list{display:flex;margin:4px 0;overflow:hidden}.g-popup .g-select-list:first-child,.g-popup .g-select-list:last-child{border-radius:0}.g-select-list:not(.g-select-list_virtualized){overflow:auto;position:relative}.g-select-list_mobile{max-height:100%}.g-select-list__group-label,.g-select-list__group-label-custom{box-sizing:border-box;height:auto;padding:0;position:relative;width:100%}.g-select-list__group-label{font-size:var(--g-text-body-1-font-size)}.g-select-list_size_s .g-select-list__group-label:not(.g-select-list__group-label_empty){height:24px;padding:8px 8px 4px}.g-select-list_size_m .g-select-list__group-label:not(.g-select-list__group-label_empty){height:28px;padding:8px 8px 4px}.g-select-list_size_l .g-select-list__group-label:not(.g-select-list__group-label_empty){height:36px;padding:10px 12px 6px}.g-select-list_size_xl .g-select-list__group-label:not(.g-select-list__group-label_empty){font-size:var(--g-text-body-2-font-size);height:44px;padding:12px 12px 8px}.g-select-list_mobile .g-select-list__group-label:not(.g-select-list__group-label_empty){font-size:var(--g-text-body-2-font-size);height:36px;padding:12px 12px 8px}.g-select-list__item:not(:first-child) .g-select-list__group-label{margin-block-start:5px}.g-select-list__item:not(:first-child) .g-select-list__group-label:before{background-color:var(--g-color-line-generic);content:"";height:1px;inset-block-start:-3px;inset-inline-start:0;position:absolute;width:100%}.g-select-list__group-label-content{font-weight:var(--g-text-accent-font-weight);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.g-select-list__item.g-list__item_selected{background:none}.g-select-list__item.g-list__item_active,.g-select-list__item.g-list__item_selected:hover{background:var(--g-color-base-simple-hover)}.g-select-list__option{align-items:center;box-sizing:border-box;cursor:pointer;display:flex;height:100%;width:100%}.g-select-list_size_s .g-select-list__option{--_--select-tick-icon-padding-right:4px;padding:0 8px}.g-select-list_size_s .g-select-list__option .g-select-list__option-default-label{height:24px;line-height:24px}.g-select-list_size_m .g-select-list__option{--_--select-tick-icon-padding-right:4px;padding:0 8px}.g-select-list_size_m .g-select-list__option .g-select-list__option-default-label{height:28px;line-height:28px}.g-select-list_size_l .g-select-list__option{--_--select-tick-icon-padding-right:6px;padding:0 12px}.g-select-list_size_l .g-select-list__option .g-select-list__option-default-label{height:36px;line-height:36px}.g-select-list_size_xl .g-select-list__option{--_--select-tick-icon-padding-right:6px;padding:0 12px}.g-select-list_size_xl .g-select-list__option .g-select-list__option-default-label{font-size:var(--g-text-body-2-font-size);height:44px;line-height:44px}.g-select-list_mobile .g-select-list__option{padding:0 12px}.g-select-list_mobile .g-select-list__option .g-select-list__option-default-label{font-size:var(--g-text-body-2-font-size);height:36px;line-height:36px}.g-select-list_mobile .g-select-list__option .g-select-list__tick-icon{padding-inline-end:6px}.g-select-list__option_colored{background-color:var(--g-color-base-selection)}.g-select-list__option_disabled{cursor:default}.g-select-list__option-default-label{font-size:var(--g-text-body-1-font-size);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.g-select-list__option-default-label_disabled{color:var(--g-color-text-secondary)}.g-select-list__tick-icon{box-sizing:initial;color:var(--g-color-text-brand);flex:0 0 16px;padding-inline-end:var(--_--select-tick-icon-padding-right);visibility:hidden}.g-select-list__tick-icon_shown{visibility:visible}.g-select-list__loading-indicator{align-items:center;display:flex;justify-content:center;width:100%}.g-select-empty-placeholder{color:var(--g-color-text-hint);margin:4px}.g-select-empty-placeholder_empty{margin-block-start:0}.g-select-counter{align-items:center;background-color:var(--g-color-base-generic);display:flex;justify-content:center;margin-inline:4px}.g-select-counter__text{flex-grow:1;margin-inline:4px;text-align:center}.g-select-counter_size_xl .g-select-counter__text{margin-inline:6px}.g-select-counter_size_s{border-radius:var(--g-border-radius-xs);height:20px;min-width:20px}.g-select-counter_size_m{border-radius:var(--g-border-radius-s);height:24px;min-width:24px}.g-select-counter_size_l{border-radius:var(--g-border-radius-m);height:28px;min-width:28px}.g-select-counter_size_xl{border-radius:var(--g-border-radius-l);height:36px;margin-inline:4px;min-width:36px}.g-select-clear{align-items:center;background:none;border:none;color:inherit;cursor:pointer;display:inline-flex;flex-shrink:0;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);justify-content:center;margin-inline-start:auto;outline:none;padding:0;z-index:1}.g-select-clear:focus-visible{border:1px solid var(--g-color-line-generic-active)}.g-select-clear_size_s{border-radius:var(--g-border-radius-s);height:24px;width:24px}.g-select-clear_size_m{border-radius:var(--g-border-radius-m);height:28px;width:28px}.g-select-clear_size_l{border-radius:var(--g-border-radius-l);height:36px;width:36px}.g-select-clear_size_xl{border-radius:var(--g-border-radius-xl);height:44px;width:44px}.g-select-clear__clear{color:var(--g-color-text-secondary)}.g-select-clear:hover .g-select-clear__clear{color:var(--g-color-text-primary)}.g-select-control{--_--focus-outline-color:var(--g-select-focus-outline-color);align-items:center;background:none;border:none;box-sizing:border-box;color:inherit;cursor:pointer;display:inline-flex;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);outline:none;padding:0;position:relative;transition:transform .1s ease-out;width:100%;z-index:0}.g-select-control_disabled{cursor:default}.g-select-control_size_s{--_--text-right-padding:8px;--_--border-radius:var(--g-border-radius-s);height:24px;padding:4px calc(var(--_--text-right-padding) + 1px)}.g-select-control_size_m{--_--text-right-padding:8px;--_--border-radius:var(--g-border-radius-m);height:28px;padding:6px calc(var(--_--text-right-padding) + 1px)}.g-select-control_size_l{--_--text-right-padding:12px;--_--border-radius:var(--g-border-radius-l);height:36px;padding:10px calc(var(--_--text-right-padding) + 1px)}.g-select-control_size_xl{--_--text-right-padding:12px;--_--border-radius:var(--g-border-radius-xl);height:44px;padding:12px calc(var(--_--text-right-padding) + 1px)}.g-select-control__button{align-items:center;background:none;border:none;color:inherit;cursor:pointer;display:inline-grid;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);grid-template-columns:auto auto;height:100%;justify-content:flex-start;outline:none;overflow:hidden;padding:0;transition:color .15s linear,background-color .15s linear;width:100%}.g-select-control__button.g-select-control__button_pin_round-round:before{border-radius:var(--_--border-radius)}.g-select-control__button.g-select-control__button_pin_brick-brick:before{border-radius:0}.g-select-control__button.g-select-control__button_pin_clear-clear:before{border-inline:0;border-radius:0}.g-select-control__button.g-select-control__button_pin_circle-circle:before{border-radius:100px}.g-select-control__button.g-select-control__button_pin_round-brick:before{border-end-end-radius:0;border-end-start-radius:var(--_--border-radius);border-start-end-radius:0;border-start-start-radius:var(--_--border-radius)}.g-select-control__button.g-select-control__button_pin_brick-round:before{border-end-end-radius:var(--_--border-radius);border-end-start-radius:0;border-start-end-radius:var(--_--border-radius);border-start-start-radius:0}.g-select-control__button.g-select-control__button_pin_round-clear:before{border-end-end-radius:0;border-end-start-radius:var(--_--border-radius);border-inline-end:0;border-start-end-radius:0;border-start-start-radius:var(--_--border-radius)}.g-select-control__button.g-select-control__button_pin_clear-round:before{border-end-end-radius:var(--_--border-radius);border-end-start-radius:0;border-inline-start:0;border-start-end-radius:var(--_--border-radius);border-start-start-radius:0}.g-select-control__button.g-select-control__button_pin_brick-clear:before{border-inline-end:0;border-radius:0}.g-select-control__button.g-select-control__button_pin_clear-brick:before{border-inline-start:0;border-radius:0}.g-select-control__button.g-select-control__button_pin_circle-brick:before{border-end-end-radius:0;border-end-start-radius:100px;border-start-end-radius:0;border-start-start-radius:100px}.g-select-control__button.g-select-control__button_pin_brick-circle:before{border-end-end-radius:100px;border-end-start-radius:0;border-start-end-radius:100px;border-start-start-radius:0}.g-select-control__button.g-select-control__button_pin_circle-clear:before{border-end-end-radius:0;border-end-start-radius:100px;border-inline-end:0;border-start-end-radius:0;border-start-start-radius:100px}.g-select-control__button.g-select-control__button_pin_clear-circle:before{border-end-end-radius:100px;border-end-start-radius:0;border-inline-start:0;border-start-end-radius:100px;border-start-start-radius:0}.g-select-control__button.g-select-control__button_pin_round-round:after{border-radius:var(--_--border-radius)}.g-select-control__button.g-select-control__button_pin_brick-brick:after{border-radius:0}.g-select-control__button.g-select-control__button_pin_clear-clear:after{border-inline:0;border-radius:0}.g-select-control__button.g-select-control__button_pin_circle-circle:after{border-radius:100px}.g-select-control__button.g-select-control__button_pin_round-brick:after{border-end-end-radius:0;border-end-start-radius:var(--_--border-radius);border-start-end-radius:0;border-start-start-radius:var(--_--border-radius)}.g-select-control__button.g-select-control__button_pin_brick-round:after{border-end-end-radius:var(--_--border-radius);border-end-start-radius:0;border-start-end-radius:var(--_--border-radius);border-start-start-radius:0}.g-select-control__button.g-select-control__button_pin_round-clear:after{border-end-end-radius:0;border-end-start-radius:var(--_--border-radius);border-inline-end:0;border-start-end-radius:0;border-start-start-radius:var(--_--border-radius)}.g-select-control__button.g-select-control__button_pin_clear-round:after{border-end-end-radius:var(--_--border-radius);border-end-start-radius:0;border-inline-start:0;border-start-end-radius:var(--_--border-radius);border-start-start-radius:0}.g-select-control__button.g-select-control__button_pin_brick-clear:after{border-inline-end:0;border-radius:0}.g-select-control__button.g-select-control__button_pin_clear-brick:after{border-inline-start:0;border-radius:0}.g-select-control__button.g-select-control__button_pin_circle-brick:after{border-end-end-radius:0;border-end-start-radius:100px;border-start-end-radius:0;border-start-start-radius:100px}.g-select-control__button.g-select-control__button_pin_brick-circle:after{border-end-end-radius:100px;border-end-start-radius:0;border-start-end-radius:100px;border-start-start-radius:0}.g-select-control__button.g-select-control__button_pin_circle-clear:after{border-end-end-radius:0;border-end-start-radius:100px;border-inline-end:0;border-start-end-radius:0;border-start-start-radius:100px}.g-select-control__button.g-select-control__button_pin_clear-circle:after{border-end-end-radius:100px;border-end-start-radius:0;border-inline-start:0;border-start-end-radius:100px;border-start-start-radius:0}.g-select-control__button:before{border:1px solid var(--g-color-line-generic);border-radius:var(--_--border-radius);content:"";inset:0;position:absolute}.g-select-control__button:after{content:"";inset:0;position:absolute;z-index:-1}.g-select-control__button_view_clear,.g-select-control__button_view_clear:after,.g-select-control__button_view_clear:before{border-color:#0000}.g-select-control__button_size_l,.g-select-control__button_size_m,.g-select-control__button_size_s{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-short-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-short-line-height)}.g-select-control__button_size_xl{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-2-line-height)}.g-select-control__button_error:before{--_--focus-outline-color:var(--g-color-line-danger);border-color:var(--g-color-line-danger)}.g-select-control__button:hover:after{background-color:var(--g-color-base-simple-hover)}.g-select-control__button_disabled{color:var(--g-color-text-hint);pointer-events:none}.g-select-control__button_disabled:after{background-color:var(--g-color-base-generic-accent-disabled)}.g-select-control__button_disabled:before{border-color:#0000}.g-select-control__button:not(.g-select-control__button_error):not(.g-select-control__button_disabled):not(.g-select-control__button_view_clear):hover:before{border-color:var(--g-color-line-generic-hover)}.g-select-control__button:not(.g-select-control__button_error):not(.g-select-control__button_view_clear):focus-visible:before,.g-select-control__button_open:not(.g-select-control__button_error):not(.g-select-control__button_view_clear):before{border-color:var(--g-color-line-generic-active)}.g-select-control__button:focus-visible:before{outline:2px solid var(--g-select-focus-outline-color,var(--_--focus-outline-color));outline-offset:-1px}.g-select-control:not(.g-select-control_disabled):not(.g-select-control_no-active):active{transform:scale(.96)}.g-select-control__label{font-weight:var(--g-text-accent-font-weight);margin-inline-end:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.g-select-control__option-text,.g-select-control__placeholder{overflow:hidden;padding-inline-end:var(--_--text-right-padding);text-overflow:ellipsis;white-space:nowrap}.g-select-control_has-clear.g-select-control_size_s .g-select-control__button_disabled .g-select-control__option-text{padding-inline-end:calc(24px + var(--_--text-right-padding))}.g-select-control_has-clear.g-select-control_size_m .g-select-control__button_disabled .g-select-control__option-text{padding-inline-end:calc(28px + var(--_--text-right-padding))}.g-select-control_has-clear.g-select-control_size_l .g-select-control__button_disabled .g-select-control__option-text{padding-inline-end:calc(36px + var(--_--text-right-padding))}.g-select-control_has-clear.g-select-control_size_xl .g-select-control__button_disabled .g-select-control__option-text{padding-inline-end:calc(44px + var(--_--text-right-padding))}.g-select-control__placeholder{color:var(--g-color-text-hint)}.g-select-control__chevron-icon{color:var(--g-color-text-secondary);flex:0 0 16px;margin-inline-start:auto}.g-select-control__chevron-icon_disabled{color:var(--g-color-text-hint)}.g-select-clear+.g-select-control__chevron-icon{margin-inline-start:0}.g-select-control__error-icon{background:none;border:none;border-radius:var(--g-focus-border-radius);box-sizing:initial;color:inherit;color:var(--g-color-text-danger);cursor:pointer;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);outline:none;padding:0;padding:var(--_--text-input-error-icon-padding)}.g-select-control__error-icon:focus{outline:2px solid var(--g-color-line-focus)}.g-select-control__error-icon:focus:not(:focus-visible){outline:0}.g-select-popup{display:flex;flex-direction:column;max-height:90vh}.g-sheet{position:fixed;z-index:100000}.g-sheet,.g-sheet__veil{height:100%;inset-block-start:0;inset-inline-start:0;width:100%}.g-sheet__veil{background-color:var(--g-color-sfx-veil);opacity:0;position:absolute;will-change:opacity}.g-sheet__veil_with-transition{transition:opacity .3s ease}.g-sheet__sheet{inset-block-start:100%;inset-inline-start:0;max-height:90%;position:absolute;width:100%;will-change:transform}.g-sheet__sheet_with-transition{transition:transform .3s ease}.g-sheet__sheet-swipe-area{height:40px;inset-block-start:-20px;inset-inline-start:0;position:absolute;width:100%;z-index:1}.g-sheet__sheet-top{background-color:var(--g-color-base-float);border-start-end-radius:20px;border-start-start-radius:20px;height:20px;position:relative}.g-sheet__sheet-top-resizer{--_--translate-x:calc(-50%*var(--g-flow-direction));background-color:var(--g-color-line-generic);border-radius:4px;height:4px;inset-block-start:50%;inset-inline-start:50%;position:absolute;transform:translateX(var(--_--translate-x)) translateY(-50%);width:40px}.g-sheet__sheet-scroll-container{background-color:var(--g-color-base-float);box-sizing:border-box;max-height:calc(90% - 20px);overflow:hidden auto;overscroll-behavior-y:contain;transition:height .3s ease}.g-sheet__sheet-scroll-container_without-scroll{overflow:hidden}.g-sheet__sheet-content-box{border:1px solid #0000}.g-sheet__sheet-content-box-border-compensation{margin:-1px}.g-sheet__sheet-content{box-sizing:border-box;padding:var(--g-sheet-content-padding,0 10px);width:100%}.g-sheet__sheet-content-title{font-size:var(--g-text-body-2-font-size);line-height:28px;overflow:hidden;padding-block-end:8px;text-align:center;text-overflow:ellipsis;white-space:nowrap}
\ No newline at end of file +.g-select{display:inline-block;max-width:100%}.g-select_width_max{width:100%}.g-select-filter{--g-text-input-border-color:var(--g-color-line-generic-active)}.g-select-list{display:flex;margin:4px 0;overflow:hidden}.g-popup .g-select-list:first-child,.g-popup .g-select-list:last-child{border-radius:0}.g-select-list:not(.g-select-list_virtualized){overflow:auto;position:relative}.g-select-list_mobile{max-height:100%}.g-select-list__group-label,.g-select-list__group-label-custom{box-sizing:border-box;height:auto;padding:0;position:relative;width:100%}.g-select-list__group-label{font-size:var(--g-text-body-1-font-size)}.g-select-list_size_s .g-select-list__group-label:not(.g-select-list__group-label_empty){height:24px;padding:8px 8px 4px}.g-select-list_size_m .g-select-list__group-label:not(.g-select-list__group-label_empty){height:28px;padding:8px 8px 4px}.g-select-list_size_l .g-select-list__group-label:not(.g-select-list__group-label_empty){height:36px;padding:10px 12px 6px}.g-select-list_size_xl .g-select-list__group-label:not(.g-select-list__group-label_empty){font-size:var(--g-text-body-2-font-size);height:44px;padding:12px 12px 8px}.g-select-list_mobile .g-select-list__group-label:not(.g-select-list__group-label_empty){font-size:var(--g-text-body-2-font-size);height:36px;padding:12px 12px 8px}.g-select-list__item:not(:first-child) .g-select-list__group-label{margin-block-start:5px}.g-select-list__item:not(:first-child) .g-select-list__group-label:before{background-color:var(--g-color-line-generic);content:"";height:1px;inset-block-start:-3px;inset-inline-start:0;position:absolute;width:100%}.g-select-list__group-label-content{font-weight:var(--g-text-accent-font-weight);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.g-select-list__item.g-list__item_selected{background:none}.g-select-list__item.g-list__item_active,.g-select-list__item.g-list__item_selected:hover{background:var(--g-color-base-simple-hover)}.g-select-list__option{align-items:center;box-sizing:border-box;cursor:pointer;display:flex;height:100%;width:100%}.g-select-list_size_s .g-select-list__option{--_--select-tick-icon-padding-right:4px;padding:0 8px}.g-select-list_size_s .g-select-list__option .g-select-list__option-default-label{height:24px;line-height:24px}.g-select-list_size_m .g-select-list__option{--_--select-tick-icon-padding-right:4px;padding:0 8px}.g-select-list_size_m .g-select-list__option .g-select-list__option-default-label{height:28px;line-height:28px}.g-select-list_size_l .g-select-list__option{--_--select-tick-icon-padding-right:6px;padding:0 12px}.g-select-list_size_l .g-select-list__option .g-select-list__option-default-label{height:36px;line-height:36px}.g-select-list_size_xl .g-select-list__option{--_--select-tick-icon-padding-right:6px;padding:0 12px}.g-select-list_size_xl .g-select-list__option .g-select-list__option-default-label{font-size:var(--g-text-body-2-font-size);height:44px;line-height:44px}.g-select-list_mobile .g-select-list__option{padding:0 12px}.g-select-list_mobile .g-select-list__option .g-select-list__option-default-label{font-size:var(--g-text-body-2-font-size);height:36px;line-height:36px}.g-select-list_mobile .g-select-list__option .g-select-list__tick-icon{padding-inline-end:6px}.g-select-list__option_colored{background-color:var(--g-color-base-selection)}.g-select-list__option_disabled{cursor:default}.g-select-list__option-default-label{font-size:var(--g-text-body-1-font-size);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.g-select-list__option-default-label_disabled{color:var(--g-color-text-secondary)}.g-select-list__tick-icon{box-sizing:initial;color:var(--g-color-text-brand);flex:0 0 16px;padding-inline-end:var(--_--select-tick-icon-padding-right);visibility:hidden}.g-select-list__tick-icon_shown{visibility:visible}.g-select-list__loading-indicator{align-items:center;display:flex;justify-content:center;width:100%}.g-select-empty-placeholder{color:var(--g-color-text-hint);margin:4px}.g-select-empty-placeholder_empty{margin-block-start:0}.g-select-counter{align-items:center;background-color:var(--g-color-base-generic);display:flex;justify-content:center;margin-inline:4px}.g-select-counter__text{flex-grow:1;margin-inline:4px;text-align:center}.g-select-counter_size_xl .g-select-counter__text{margin-inline:6px}.g-select-counter_size_s{border-radius:var(--g-border-radius-xs);height:20px;min-width:20px}.g-select-counter_size_m{border-radius:var(--g-border-radius-s);height:24px;min-width:24px}.g-select-counter_size_l{border-radius:var(--g-border-radius-m);height:28px;min-width:28px}.g-select-counter_size_xl{border-radius:var(--g-border-radius-l);height:36px;margin-inline:4px;min-width:36px}.g-select-clear{align-items:center;background:none;border:none;color:inherit;cursor:pointer;display:inline-flex;flex-shrink:0;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);justify-content:center;margin-inline-start:auto;outline:none;padding:0;z-index:1}.g-select-clear:focus-visible{border:1px solid var(--g-color-line-generic-active)}.g-select-clear_size_s{border-radius:var(--g-border-radius-s);height:24px;width:24px}.g-select-clear_size_m{border-radius:var(--g-border-radius-m);height:28px;width:28px}.g-select-clear_size_l{border-radius:var(--g-border-radius-l);height:36px;width:36px}.g-select-clear_size_xl{border-radius:var(--g-border-radius-xl);height:44px;width:44px}.g-select-clear__clear{color:var(--g-color-text-secondary)}.g-select-clear:hover .g-select-clear__clear{color:var(--g-color-text-primary)}.g-select-control{--_--focus-outline-color:var(--g-select-focus-outline-color);align-items:center;background:none;border:none;box-sizing:border-box;color:inherit;cursor:pointer;display:inline-flex;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);outline:none;padding:0;position:relative;transition:transform .1s ease-out;width:100%;z-index:0}.g-select-control_disabled{cursor:default}.g-select-control_size_s{--_--text-right-padding:8px;--_--border-radius:var(--g-border-radius-s);height:24px;padding:4px calc(var(--_--text-right-padding) + 1px)}.g-select-control_size_m{--_--text-right-padding:8px;--_--border-radius:var(--g-border-radius-m);height:28px;padding:6px calc(var(--_--text-right-padding) + 1px)}.g-select-control_size_l{--_--text-right-padding:12px;--_--border-radius:var(--g-border-radius-l);height:36px;padding:10px calc(var(--_--text-right-padding) + 1px)}.g-select-control_size_xl{--_--text-right-padding:12px;--_--border-radius:var(--g-border-radius-xl);height:44px;padding:12px calc(var(--_--text-right-padding) + 1px)}.g-select-control__button{align-items:center;background:none;border:none;color:inherit;cursor:pointer;display:inline-grid;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);grid-template-columns:auto auto;height:100%;justify-content:flex-start;outline:none;overflow:hidden;padding:0;transition:color .15s linear,background-color .15s linear;width:100%}.g-select-control__button.g-select-control__button_pin_round-round:before{border-radius:var(--_--border-radius)}.g-select-control__button.g-select-control__button_pin_brick-brick:before{border-radius:0}.g-select-control__button.g-select-control__button_pin_clear-clear:before{border-inline:0;border-radius:0}.g-select-control__button.g-select-control__button_pin_circle-circle:before{border-radius:100px}.g-select-control__button.g-select-control__button_pin_round-brick:before{border-end-end-radius:0;border-end-start-radius:var(--_--border-radius);border-start-end-radius:0;border-start-start-radius:var(--_--border-radius)}.g-select-control__button.g-select-control__button_pin_brick-round:before{border-end-end-radius:var(--_--border-radius);border-end-start-radius:0;border-start-end-radius:var(--_--border-radius);border-start-start-radius:0}.g-select-control__button.g-select-control__button_pin_round-clear:before{border-end-end-radius:0;border-end-start-radius:var(--_--border-radius);border-inline-end:0;border-start-end-radius:0;border-start-start-radius:var(--_--border-radius)}.g-select-control__button.g-select-control__button_pin_clear-round:before{border-end-end-radius:var(--_--border-radius);border-end-start-radius:0;border-inline-start:0;border-start-end-radius:var(--_--border-radius);border-start-start-radius:0}.g-select-control__button.g-select-control__button_pin_brick-clear:before{border-inline-end:0;border-radius:0}.g-select-control__button.g-select-control__button_pin_clear-brick:before{border-inline-start:0;border-radius:0}.g-select-control__button.g-select-control__button_pin_circle-brick:before{border-end-end-radius:0;border-end-start-radius:100px;border-start-end-radius:0;border-start-start-radius:100px}.g-select-control__button.g-select-control__button_pin_brick-circle:before{border-end-end-radius:100px;border-end-start-radius:0;border-start-end-radius:100px;border-start-start-radius:0}.g-select-control__button.g-select-control__button_pin_circle-clear:before{border-end-end-radius:0;border-end-start-radius:100px;border-inline-end:0;border-start-end-radius:0;border-start-start-radius:100px}.g-select-control__button.g-select-control__button_pin_clear-circle:before{border-end-end-radius:100px;border-end-start-radius:0;border-inline-start:0;border-start-end-radius:100px;border-start-start-radius:0}.g-select-control__button.g-select-control__button_pin_round-round:after{border-radius:var(--_--border-radius)}.g-select-control__button.g-select-control__button_pin_brick-brick:after{border-radius:0}.g-select-control__button.g-select-control__button_pin_clear-clear:after{border-inline:0;border-radius:0}.g-select-control__button.g-select-control__button_pin_circle-circle:after{border-radius:100px}.g-select-control__button.g-select-control__button_pin_round-brick:after{border-end-end-radius:0;border-end-start-radius:var(--_--border-radius);border-start-end-radius:0;border-start-start-radius:var(--_--border-radius)}.g-select-control__button.g-select-control__button_pin_brick-round:after{border-end-end-radius:var(--_--border-radius);border-end-start-radius:0;border-start-end-radius:var(--_--border-radius);border-start-start-radius:0}.g-select-control__button.g-select-control__button_pin_round-clear:after{border-end-end-radius:0;border-end-start-radius:var(--_--border-radius);border-inline-end:0;border-start-end-radius:0;border-start-start-radius:var(--_--border-radius)}.g-select-control__button.g-select-control__button_pin_clear-round:after{border-end-end-radius:var(--_--border-radius);border-end-start-radius:0;border-inline-start:0;border-start-end-radius:var(--_--border-radius);border-start-start-radius:0}.g-select-control__button.g-select-control__button_pin_brick-clear:after{border-inline-end:0;border-radius:0}.g-select-control__button.g-select-control__button_pin_clear-brick:after{border-inline-start:0;border-radius:0}.g-select-control__button.g-select-control__button_pin_circle-brick:after{border-end-end-radius:0;border-end-start-radius:100px;border-start-end-radius:0;border-start-start-radius:100px}.g-select-control__button.g-select-control__button_pin_brick-circle:after{border-end-end-radius:100px;border-end-start-radius:0;border-start-end-radius:100px;border-start-start-radius:0}.g-select-control__button.g-select-control__button_pin_circle-clear:after{border-end-end-radius:0;border-end-start-radius:100px;border-inline-end:0;border-start-end-radius:0;border-start-start-radius:100px}.g-select-control__button.g-select-control__button_pin_clear-circle:after{border-end-end-radius:100px;border-end-start-radius:0;border-inline-start:0;border-start-end-radius:100px;border-start-start-radius:0}.g-select-control__button:before{border:1px solid var(--g-color-line-generic);border-radius:var(--_--border-radius);content:"";inset:0;position:absolute}.g-select-control__button:after{content:"";inset:0;position:absolute;z-index:-1}.g-select-control__button_view_clear,.g-select-control__button_view_clear:after,.g-select-control__button_view_clear:before{border-color:#0000}.g-select-control__button_size_l,.g-select-control__button_size_m,.g-select-control__button_size_s{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-short-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-short-line-height)}.g-select-control__button_size_xl{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-2-line-height)}.g-select-control__button_error:before{--_--focus-outline-color:var(--g-color-line-danger);border-color:var(--g-color-line-danger)}.g-select-control__button:hover:after{background-color:var(--g-color-base-simple-hover)}.g-select-control__button_disabled{color:var(--g-color-text-hint);pointer-events:none}.g-select-control__button_disabled:after{background-color:var(--g-color-base-generic-accent-disabled)}.g-select-control__button_disabled:before{border-color:#0000}.g-select-control__button:not(.g-select-control__button_error):not(.g-select-control__button_disabled):not(.g-select-control__button_view_clear):hover:before{border-color:var(--g-color-line-generic-hover)}.g-select-control__button:not(.g-select-control__button_error):not(.g-select-control__button_view_clear):focus-visible:before,.g-select-control__button_open:not(.g-select-control__button_error):not(.g-select-control__button_view_clear):before{border-color:var(--g-color-line-generic-active)}.g-select-control__button:focus-visible:before{outline:2px solid var(--g-select-focus-outline-color,var(--_--focus-outline-color));outline-offset:-1px}.g-select-control:not(.g-select-control_disabled):not(.g-select-control_no-active):active{transform:scale(.96)}.g-select-control__label{font-weight:var(--g-text-accent-font-weight);margin-inline-end:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.g-select-control__option-text,.g-select-control__placeholder{overflow:hidden;padding-inline-end:var(--_--text-right-padding);text-overflow:ellipsis;white-space:nowrap}.g-select-control_has-clear.g-select-control_size_s .g-select-control__button_disabled .g-select-control__option-text{padding-inline-end:calc(24px + var(--_--text-right-padding))}.g-select-control_has-clear.g-select-control_size_m .g-select-control__button_disabled .g-select-control__option-text{padding-inline-end:calc(28px + var(--_--text-right-padding))}.g-select-control_has-clear.g-select-control_size_l .g-select-control__button_disabled .g-select-control__option-text{padding-inline-end:calc(36px + var(--_--text-right-padding))}.g-select-control_has-clear.g-select-control_size_xl .g-select-control__button_disabled .g-select-control__option-text{padding-inline-end:calc(44px + var(--_--text-right-padding))}.g-select-control__placeholder{color:var(--g-color-text-hint)}.g-select-control__chevron-icon{color:var(--g-color-text-secondary);flex:0 0 16px;margin-inline-start:auto}.g-select-control__chevron-icon_disabled{color:var(--g-color-text-hint)}.g-select-clear+.g-select-control__chevron-icon{margin-inline-start:0}.g-select-control__error-icon{background:none;border:none;border-radius:var(--g-focus-border-radius);box-sizing:initial;color:inherit;color:var(--g-color-text-danger);cursor:pointer;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);outline:none;padding:0;padding:var(--_--text-input-error-icon-padding)}.g-select-control__error-icon:focus{outline:2px solid var(--g-color-line-focus)}.g-select-control__error-icon:focus:not(:focus-visible){outline:0}.g-select-popup{display:flex;flex-direction:column;max-height:90vh}.g-sheet{position:fixed;z-index:100000}.g-sheet,.g-sheet__veil{height:100%;inset-block-start:0;inset-inline-start:0;width:100%}.g-sheet__veil{background-color:var(--g-color-sfx-veil);opacity:0;position:absolute;will-change:opacity}.g-sheet__veil_with-transition{transition:opacity .3s ease}.g-sheet__sheet{inset-block-start:100%;inset-inline-start:0;max-height:90%;position:absolute;width:100%;will-change:transform}.g-sheet__sheet_with-transition{transition:transform .3s ease}.g-sheet__sheet-swipe-area{height:40px;inset-block-start:-20px;inset-inline-start:0;position:absolute;width:100%;z-index:1}.g-sheet__sheet-top{background-color:var(--g-color-base-float);border-start-end-radius:20px;border-start-start-radius:20px;height:20px;position:relative}.g-sheet__sheet-top-resizer{--_--translate-x:calc(-50%*var(--g-flow-direction));background-color:var(--g-color-line-generic);border-radius:4px;height:4px;inset-block-start:50%;inset-inline-start:50%;position:absolute;transform:translateX(var(--_--translate-x)) translateY(-50%);width:40px}.g-sheet__sheet-scroll-container{background-color:var(--g-color-base-float);box-sizing:border-box;max-height:calc(90% - 20px);overflow:hidden auto;overscroll-behavior-y:contain;transition:height .3s ease}.g-sheet__sheet-scroll-container_without-scroll{overflow:hidden}.g-sheet__sheet-content-box{border:1px solid #0000}.g-sheet__sheet-content-box-border-compensation{margin:-1px}.g-sheet__sheet-content{box-sizing:border-box;padding:var(--g-sheet-content-padding,0 10px);width:100%}.g-sheet__sheet-content-title{font-size:var(--g-text-body-2-font-size);line-height:28px;overflow:hidden;padding-block-end:8px;text-align:center;text-overflow:ellipsis;white-space:nowrap}.g-arrow-toggle{display:inline-block;transition:transform .1s ease-out;vertical-align:middle}.g-arrow-toggle_direction_bottom{transform:matrix(1,0,0,1,0,0)}.g-arrow-toggle_direction_left{transform:matrix(0,1,-1,0,0,0)}.g-arrow-toggle_direction_top{transform:matrix(-1,0,0,-1,0,0)}.g-arrow-toggle_direction_right{transform:matrix(0,-1,1,0,0,0)}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/main.8f03af14.css b/ydb/core/viewer/monitoring/static/css/main.8f03af14.css new file mode 100644 index 0000000000..5d7b4c15d2 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/css/main.8f03af14.css @@ -0,0 +1,9 @@ +@charset "UTF-8";@import url(https://fonts.googleapis.com/css2?family=Rubik&display=swap);:root{--data-table-header-vertical-padding:5px;--data-table-cell-vertical-padding:5px;--data-table-cell-horizontal-padding:10px;--data-table-cell-border-padding:var(--data-table-cell-horizontal-padding);--data-table-cell-align:top;--data-table-head-align:top;--data-table-row-height:30px;--data-table-sort-icon-space:18px;--data-table-sort-icon-opacity-inactive:0.15;--data-table-sort-icon-color:inherit}.data-table{box-sizing:border-box;position:relative}.data-table__box{box-sizing:border-box;height:100%;width:100%}.data-table__box_sticky-head_moving{overflow:visible;position:relative;z-index:0}.data-table__box_sticky-head_moving .data-table__th{border-bottom:0;border-top:0;padding-bottom:0;padding-top:0}.data-table__box_sticky-head_moving .data-table__head-cell{display:block;height:0;overflow:hidden}.data-table__box_sticky-head_moving .data-table__row_header-data{visibility:hidden}.data-table__box_sticky-footer_fixed,.data-table__box_sticky-head_fixed{overflow:auto}.data-table__table{border-collapse:collapse;table-layout:fixed}.data-table__table_sticky{background:var(--data-table-color-base);width:100%}.data-table__row{height:var(--data-table-row-height)}.data-table__th{border:1px solid var(--data-table-border-color);box-sizing:border-box;cursor:default;font-weight:500;padding:var(--data-table-header-vertical-padding) var(--data-table-cell-horizontal-padding);position:relative;text-align:left;vertical-align:var(--data-table-head-align)}.data-table__th_sortable{cursor:pointer}.data-table__th_sortable .data-table__head-cell{padding-right:var(--data-table-sort-icon-space)}.data-table__th_sortable.data-table__th_align_right .data-table__head-cell{padding-left:var(--data-table-sort-icon-space);padding-right:0}.data-table__th_sortable.data-table__th_align_right .data-table__sort-icon{left:0;right:auto;transform:translateY(-50%) scaleX(-1)}.data-table__td{border:1px solid var(--data-table-border-color);box-sizing:border-box;overflow:hidden;padding:var(--data-table-cell-vertical-padding) var(--data-table-cell-horizontal-padding);text-overflow:ellipsis;vertical-align:var(--data-table-cell-align);white-space:nowrap}.data-table__td_index,.data-table__th_index{text-align:right}.data-table__td_align_left,.data-table__th_align_left{text-align:left}.data-table__td_align_center,.data-table__th_align_center{text-align:center}.data-table__td_align_right,.data-table__th_align_right{text-align:right}.data-table__td:first-child,.data-table__th:first-child{padding-left:var(--data-table-cell-border-padding)}.data-table__td:last-child,.data-table__th:last-child{padding-right:var(--data-table-cell-border-padding)}.data-table__index{text-align:right}.data-table__head-cell{box-sizing:border-box;display:inline-block;max-width:100%;overflow:hidden;position:relative;text-overflow:ellipsis;vertical-align:top;white-space:nowrap}.data-table__error{padding:20px;white-space:pre-wrap}.data-table__sort-icon{color:var(--data-table-sort-icon-color);display:inline-flex;position:absolute;right:0;top:50%;transform:translateY(-50%)}.data-table__sort-icon:after{content:attr(data-index);font-size:8px;left:100%;position:absolute;top:-5px}.data-table__sort-icon_shadow{opacity:var(--data-table-sort-icon-opacity-inactive)}.data-table__sort-icon_shadow:after{content:none}.data-table__icon{vertical-align:top}.data-table__no-data{background:var(--data-table-color-stripe)}.data-table__sticky_fixed{left:0;overflow:hidden;position:absolute;right:0;z-index:1}.data-table__sticky_fixed.data-table__sticky_head{top:0}.data-table__sticky_fixed.data-table__sticky_footer{bottom:0}.data-table__sticky_moving{margin-bottom:-1px;position:sticky;z-index:1}.data-table_striped-rows .data-table__row_odd{background:var(--data-table-color-stripe)}.data-table_highlight-rows .data-table__row:hover{background:var(--data-table-color-hover-area)}.data-table_header_multiline .data-table__head-cell{white-space:normal}.data-table_header_pre .data-table__head-cell{white-space:pre}.data-table__foot{background:var(--data-table-color-footer-area)}.data-table__foot_has-sticky-footer_moving{visibility:hidden}.data-table_theme_yandex-cloud{--data-table-color-base:var(--g-color-base-background,var(--yc-color-base-background));--data-table-color-stripe:var( --g-color-base-generic-ultralight,var(--yc-color-base-generic-ultralight) );--data-table-border-color:var( --g-color-base-generic-hover,var(--yc-color-base-generic-hover) );--data-table-color-hover-area:var( --g-color-base-simple-hover,var(--yc-color-base-simple-hover) );--data-table-color-footer-area:var(--data-table-color-base)}.data-table_theme_legacy{--data-table-color-base:#fff;--data-table-color-stripe:#00000008;--data-table-border-color:#ddd;--data-table-color-hover-area:#ffeba0;--data-table-color-footer-area:var(--data-table-color-base)}.data-table__resize-handler{background-color:var(--g-color-base-generic);cursor:col-resize;height:100%;position:absolute;right:0;top:0;visibility:hidden;width:6px}.data-table__resize-handler_resizing,.data-table__th:hover>.data-table__resize-handler{visibility:visible}.ydb-error-boundary{--g-definition-list-item-gap:var(--g-spacing-1);padding:var(--g-spacing-8)}.ydb-error-boundary__error-stack-wrapper{background-color:var(--code-background-color);border-radius:var(--g-border-radius-xs);height:430px;overflow:auto;scrollbar-color:var(--g-color-scroll-handle) #0000;width:800px}.ydb-error-boundary__error-stack-title{border-bottom:1px solid var(--g-color-line-generic);left:0;padding:var(--g-spacing-2) var(--g-spacing-3);position:sticky}.ydb-error-boundary__error-stack-code{padding:var(--g-spacing-3) var(--g-spacing-3) var(--g-spacing-2);white-space:pre-wrap}.ydb-error-boundary__qr-help-text{text-align:right}.g-s__m_0{margin:var(--g-spacing-0)}.g-s__mr_0{margin-inline-end:var(--g-spacing-0)}.g-s__ml_0{margin-inline-start:var(--g-spacing-0)}.g-s__mt_0{margin-block-start:var(--g-spacing-0)}.g-s__mb_0{margin-block-end:var(--g-spacing-0)}.g-s__mx_0{margin-inline:var(--g-spacing-0)}.g-s__my_0{margin-block:var(--g-spacing-0)}.g-s__p_0{padding:var(--g-spacing-0)}.g-s__pl_0{padding-inline-start:var(--g-spacing-0)}.g-s__pr_0{padding-inline-end:var(--g-spacing-0)}.g-s__pb_0{padding-block-end:var(--g-spacing-0)}.g-s__pt_0{padding-block-start:var(--g-spacing-0)}.g-s__py_0{padding-block:var(--g-spacing-0)}.g-s__px_0{padding-inline:var(--g-spacing-0)}.g-s__m_half{margin:var(--g-spacing-half)}.g-s__mr_half{margin-inline-end:var(--g-spacing-half)}.g-s__ml_half{margin-inline-start:var(--g-spacing-half)}.g-s__mt_half{margin-block-start:var(--g-spacing-half)}.g-s__mb_half{margin-block-end:var(--g-spacing-half)}.g-s__mx_half{margin-inline:var(--g-spacing-half)}.g-s__my_half{margin-block:var(--g-spacing-half)}.g-s__p_half{padding:var(--g-spacing-half)}.g-s__pl_half{padding-inline-start:var(--g-spacing-half)}.g-s__pr_half{padding-inline-end:var(--g-spacing-half)}.g-s__pb_half{padding-block-end:var(--g-spacing-half)}.g-s__pt_half{padding-block-start:var(--g-spacing-half)}.g-s__py_half{padding-block:var(--g-spacing-half)}.g-s__px_half{padding-inline:var(--g-spacing-half)}.g-s__m_1{margin:var(--g-spacing-1)}.g-s__mr_1{margin-inline-end:var(--g-spacing-1)}.g-s__ml_1{margin-inline-start:var(--g-spacing-1)}.g-s__mt_1{margin-block-start:var(--g-spacing-1)}.g-s__mb_1{margin-block-end:var(--g-spacing-1)}.g-s__mx_1{margin-inline:var(--g-spacing-1)}.g-s__my_1{margin-block:var(--g-spacing-1)}.g-s__p_1{padding:var(--g-spacing-1)}.g-s__pl_1{padding-inline-start:var(--g-spacing-1)}.g-s__pr_1{padding-inline-end:var(--g-spacing-1)}.g-s__pb_1{padding-block-end:var(--g-spacing-1)}.g-s__pt_1{padding-block-start:var(--g-spacing-1)}.g-s__py_1{padding-block:var(--g-spacing-1)}.g-s__px_1{padding-inline:var(--g-spacing-1)}.g-s__m_2{margin:var(--g-spacing-2)}.g-s__mr_2{margin-inline-end:var(--g-spacing-2)}.g-s__ml_2{margin-inline-start:var(--g-spacing-2)}.g-s__mt_2{margin-block-start:var(--g-spacing-2)}.g-s__mb_2{margin-block-end:var(--g-spacing-2)}.g-s__mx_2{margin-inline:var(--g-spacing-2)}.g-s__my_2{margin-block:var(--g-spacing-2)}.g-s__p_2{padding:var(--g-spacing-2)}.g-s__pl_2{padding-inline-start:var(--g-spacing-2)}.g-s__pr_2{padding-inline-end:var(--g-spacing-2)}.g-s__pb_2{padding-block-end:var(--g-spacing-2)}.g-s__pt_2{padding-block-start:var(--g-spacing-2)}.g-s__py_2{padding-block:var(--g-spacing-2)}.g-s__px_2{padding-inline:var(--g-spacing-2)}.g-s__m_3{margin:var(--g-spacing-3)}.g-s__mr_3{margin-inline-end:var(--g-spacing-3)}.g-s__ml_3{margin-inline-start:var(--g-spacing-3)}.g-s__mt_3{margin-block-start:var(--g-spacing-3)}.g-s__mb_3{margin-block-end:var(--g-spacing-3)}.g-s__mx_3{margin-inline:var(--g-spacing-3)}.g-s__my_3{margin-block:var(--g-spacing-3)}.g-s__p_3{padding:var(--g-spacing-3)}.g-s__pl_3{padding-inline-start:var(--g-spacing-3)}.g-s__pr_3{padding-inline-end:var(--g-spacing-3)}.g-s__pb_3{padding-block-end:var(--g-spacing-3)}.g-s__pt_3{padding-block-start:var(--g-spacing-3)}.g-s__py_3{padding-block:var(--g-spacing-3)}.g-s__px_3{padding-inline:var(--g-spacing-3)}.g-s__m_4{margin:var(--g-spacing-4)}.g-s__mr_4{margin-inline-end:var(--g-spacing-4)}.g-s__ml_4{margin-inline-start:var(--g-spacing-4)}.g-s__mt_4{margin-block-start:var(--g-spacing-4)}.g-s__mb_4{margin-block-end:var(--g-spacing-4)}.g-s__mx_4{margin-inline:var(--g-spacing-4)}.g-s__my_4{margin-block:var(--g-spacing-4)}.g-s__p_4{padding:var(--g-spacing-4)}.g-s__pl_4{padding-inline-start:var(--g-spacing-4)}.g-s__pr_4{padding-inline-end:var(--g-spacing-4)}.g-s__pb_4{padding-block-end:var(--g-spacing-4)}.g-s__pt_4{padding-block-start:var(--g-spacing-4)}.g-s__py_4{padding-block:var(--g-spacing-4)}.g-s__px_4{padding-inline:var(--g-spacing-4)}.g-s__m_5{margin:var(--g-spacing-5)}.g-s__mr_5{margin-inline-end:var(--g-spacing-5)}.g-s__ml_5{margin-inline-start:var(--g-spacing-5)}.g-s__mt_5{margin-block-start:var(--g-spacing-5)}.g-s__mb_5{margin-block-end:var(--g-spacing-5)}.g-s__mx_5{margin-inline:var(--g-spacing-5)}.g-s__my_5{margin-block:var(--g-spacing-5)}.g-s__p_5{padding:var(--g-spacing-5)}.g-s__pl_5{padding-inline-start:var(--g-spacing-5)}.g-s__pr_5{padding-inline-end:var(--g-spacing-5)}.g-s__pb_5{padding-block-end:var(--g-spacing-5)}.g-s__pt_5{padding-block-start:var(--g-spacing-5)}.g-s__py_5{padding-block:var(--g-spacing-5)}.g-s__px_5{padding-inline:var(--g-spacing-5)}.g-s__m_6{margin:var(--g-spacing-6)}.g-s__mr_6{margin-inline-end:var(--g-spacing-6)}.g-s__ml_6{margin-inline-start:var(--g-spacing-6)}.g-s__mt_6{margin-block-start:var(--g-spacing-6)}.g-s__mb_6{margin-block-end:var(--g-spacing-6)}.g-s__mx_6{margin-inline:var(--g-spacing-6)}.g-s__my_6{margin-block:var(--g-spacing-6)}.g-s__p_6{padding:var(--g-spacing-6)}.g-s__pl_6{padding-inline-start:var(--g-spacing-6)}.g-s__pr_6{padding-inline-end:var(--g-spacing-6)}.g-s__pb_6{padding-block-end:var(--g-spacing-6)}.g-s__pt_6{padding-block-start:var(--g-spacing-6)}.g-s__py_6{padding-block:var(--g-spacing-6)}.g-s__px_6{padding-inline:var(--g-spacing-6)}.g-s__m_7{margin:var(--g-spacing-7)}.g-s__mr_7{margin-inline-end:var(--g-spacing-7)}.g-s__ml_7{margin-inline-start:var(--g-spacing-7)}.g-s__mt_7{margin-block-start:var(--g-spacing-7)}.g-s__mb_7{margin-block-end:var(--g-spacing-7)}.g-s__mx_7{margin-inline:var(--g-spacing-7)}.g-s__my_7{margin-block:var(--g-spacing-7)}.g-s__p_7{padding:var(--g-spacing-7)}.g-s__pl_7{padding-inline-start:var(--g-spacing-7)}.g-s__pr_7{padding-inline-end:var(--g-spacing-7)}.g-s__pb_7{padding-block-end:var(--g-spacing-7)}.g-s__pt_7{padding-block-start:var(--g-spacing-7)}.g-s__py_7{padding-block:var(--g-spacing-7)}.g-s__px_7{padding-inline:var(--g-spacing-7)}.g-s__m_8{margin:var(--g-spacing-8)}.g-s__mr_8{margin-inline-end:var(--g-spacing-8)}.g-s__ml_8{margin-inline-start:var(--g-spacing-8)}.g-s__mt_8{margin-block-start:var(--g-spacing-8)}.g-s__mb_8{margin-block-end:var(--g-spacing-8)}.g-s__mx_8{margin-inline:var(--g-spacing-8)}.g-s__my_8{margin-block:var(--g-spacing-8)}.g-s__p_8{padding:var(--g-spacing-8)}.g-s__pl_8{padding-inline-start:var(--g-spacing-8)}.g-s__pr_8{padding-inline-end:var(--g-spacing-8)}.g-s__pb_8{padding-block-end:var(--g-spacing-8)}.g-s__pt_8{padding-block-start:var(--g-spacing-8)}.g-s__py_8{padding-block:var(--g-spacing-8)}.g-s__px_8{padding-inline:var(--g-spacing-8)}.g-s__m_9{margin:var(--g-spacing-9)}.g-s__mr_9{margin-inline-end:var(--g-spacing-9)}.g-s__ml_9{margin-inline-start:var(--g-spacing-9)}.g-s__mt_9{margin-block-start:var(--g-spacing-9)}.g-s__mb_9{margin-block-end:var(--g-spacing-9)}.g-s__mx_9{margin-inline:var(--g-spacing-9)}.g-s__my_9{margin-block:var(--g-spacing-9)}.g-s__p_9{padding:var(--g-spacing-9)}.g-s__pl_9{padding-inline-start:var(--g-spacing-9)}.g-s__pr_9{padding-inline-end:var(--g-spacing-9)}.g-s__pb_9{padding-block-end:var(--g-spacing-9)}.g-s__pt_9{padding-block-start:var(--g-spacing-9)}.g-s__py_9{padding-block:var(--g-spacing-9)}.g-s__px_9{padding-inline:var(--g-spacing-9)}.g-s__m_10{margin:var(--g-spacing-10)}.g-s__mr_10{margin-inline-end:var(--g-spacing-10)}.g-s__ml_10{margin-inline-start:var(--g-spacing-10)}.g-s__mt_10{margin-block-start:var(--g-spacing-10)}.g-s__mb_10{margin-block-end:var(--g-spacing-10)}.g-s__mx_10{margin-inline:var(--g-spacing-10)}.g-s__my_10{margin-block:var(--g-spacing-10)}.g-s__p_10{padding:var(--g-spacing-10)}.g-s__pl_10{padding-inline-start:var(--g-spacing-10)}.g-s__pr_10{padding-inline-end:var(--g-spacing-10)}.g-s__pb_10{padding-block-end:var(--g-spacing-10)}.g-s__pt_10{padding-block-start:var(--g-spacing-10)}.g-s__py_10{padding-block:var(--g-spacing-10)}.g-s__px_10{padding-inline:var(--g-spacing-10)}.g-box{box-sizing:border-box}.g-box_overflow_hidden{overflow:hidden}.g-box_overflow_auto{overflow:auto}.g-box_overflow_x{overflow:hidden auto}.g-box_overflow_y{overflow:auto hidden}.g-flex{display:flex}.g-flex_inline{display:inline-flex}.g-flex_center-content{align-items:center;justify-content:center}.g-flex_s_0{margin-block-start:calc(var(--g-spacing-0)*-1)!important;margin-inline-start:calc(var(--g-spacing-0)*-1)!important}.g-flex_s_0>*{padding-block-start:var(--g-spacing-0)!important;padding-inline-start:var(--g-spacing-0)!important}.g-flex_s_half{margin-block-start:calc(var(--g-spacing-half)*-1)!important;margin-inline-start:calc(var(--g-spacing-half)*-1)!important}.g-flex_s_half>*{padding-block-start:var(--g-spacing-half)!important;padding-inline-start:var(--g-spacing-half)!important}.g-flex_s_1{margin-block-start:calc(var(--g-spacing-1)*-1)!important;margin-inline-start:calc(var(--g-spacing-1)*-1)!important}.g-flex_s_1>*{padding-block-start:var(--g-spacing-1)!important;padding-inline-start:var(--g-spacing-1)!important}.g-flex_s_2{margin-block-start:calc(var(--g-spacing-2)*-1)!important;margin-inline-start:calc(var(--g-spacing-2)*-1)!important}.g-flex_s_2>*{padding-block-start:var(--g-spacing-2)!important;padding-inline-start:var(--g-spacing-2)!important}.g-flex_s_3{margin-block-start:calc(var(--g-spacing-3)*-1)!important;margin-inline-start:calc(var(--g-spacing-3)*-1)!important}.g-flex_s_3>*{padding-block-start:var(--g-spacing-3)!important;padding-inline-start:var(--g-spacing-3)!important}.g-flex_s_4{margin-block-start:calc(var(--g-spacing-4)*-1)!important;margin-inline-start:calc(var(--g-spacing-4)*-1)!important}.g-flex_s_4>*{padding-block-start:var(--g-spacing-4)!important;padding-inline-start:var(--g-spacing-4)!important}.g-flex_s_5{margin-block-start:calc(var(--g-spacing-5)*-1)!important;margin-inline-start:calc(var(--g-spacing-5)*-1)!important}.g-flex_s_5>*{padding-block-start:var(--g-spacing-5)!important;padding-inline-start:var(--g-spacing-5)!important}.g-flex_s_6{margin-block-start:calc(var(--g-spacing-6)*-1)!important;margin-inline-start:calc(var(--g-spacing-6)*-1)!important}.g-flex_s_6>*{padding-block-start:var(--g-spacing-6)!important;padding-inline-start:var(--g-spacing-6)!important}.g-flex_s_7{margin-block-start:calc(var(--g-spacing-7)*-1)!important;margin-inline-start:calc(var(--g-spacing-7)*-1)!important}.g-flex_s_7>*{padding-block-start:var(--g-spacing-7)!important;padding-inline-start:var(--g-spacing-7)!important}.g-flex_s_8{margin-block-start:calc(var(--g-spacing-8)*-1)!important;margin-inline-start:calc(var(--g-spacing-8)*-1)!important}.g-flex_s_8>*{padding-block-start:var(--g-spacing-8)!important;padding-inline-start:var(--g-spacing-8)!important}.g-flex_s_9{margin-block-start:calc(var(--g-spacing-9)*-1)!important;margin-inline-start:calc(var(--g-spacing-9)*-1)!important}.g-flex_s_9>*{padding-block-start:var(--g-spacing-9)!important;padding-inline-start:var(--g-spacing-9)!important}.g-flex_s_10{margin-block-start:calc(var(--g-spacing-10)*-1)!important;margin-inline-start:calc(var(--g-spacing-10)*-1)!important}.g-flex_s_10>*{padding-block-start:var(--g-spacing-10)!important;padding-inline-start:var(--g-spacing-10)!important}.g-color-text_color_primary{color:var(--g-color-text-primary)}.g-color-text_color_complementary{color:var(--g-color-text-complementary)}.g-color-text_color_secondary{color:var(--g-color-text-secondary)}.g-color-text_color_hint{color:var(--g-color-text-hint)}.g-color-text_color_info{color:var(--g-color-text-info)}.g-color-text_color_info-heavy{color:var(--g-color-text-info-heavy)}.g-color-text_color_positive{color:var(--g-color-text-positive)}.g-color-text_color_positive-heavy{color:var(--g-color-text-positive-heavy)}.g-color-text_color_warning{color:var(--g-color-text-warning)}.g-color-text_color_warning-heavy{color:var(--g-color-text-warning-heavy)}.g-color-text_color_danger{color:var(--g-color-text-danger)}.g-color-text_color_danger-heavy{color:var(--g-color-text-danger-heavy)}.g-color-text_color_utility{color:var(--g-color-text-utility)}.g-color-text_color_utility-heavy{color:var(--g-color-text-utility-heavy)}.g-color-text_color_misc{color:var(--g-color-text-misc)}.g-color-text_color_misc-heavy{color:var(--g-color-text-misc-heavy)}.g-color-text_color_brand{color:var(--g-color-text-brand)}.g-color-text_color_link{color:var(--g-color-text-link)}.g-color-text_color_link-hover{color:var(--g-color-text-link-hover)}.g-color-text_color_link-visited{color:var(--g-color-text-link-visited)}.g-color-text_color_link-visited-hover{color:var(--g-color-text-link-visited-hover)}.g-color-text_color_dark-primary{color:var(--g-color-text-dark-primary)}.g-color-text_color_dark-complementary{color:var(--g-color-text-dark-complementary)}.g-color-text_color_dark-secondary{color:var(--g-color-text-dark-secondary)}.g-color-text_color_light-primary{color:var(--g-color-text-light-primary)}.g-color-text_color_light-complementary{color:var(--g-color-text-light-complementary)}.g-color-text_color_light-secondary{color:var(--g-color-text-light-secondary)}.g-color-text_color_light-hint{color:var(--g-color-text-light-hint)}.g-color-text_color_inverted-primary{color:var(--g-color-text-inverted-primary)}.g-color-text_color_inverted-complementary{color:var(--g-color-text-inverted-complementary)}.g-color-text_color_inverted-secondary{color:var(--g-color-text-inverted-secondary)}.g-color-text_color_inverted-hint{color:var(--g-color-text-inverted-hint)}.g-text_variant_display-1{font-size:var(--g-text-display-1-font-size);line-height:var(--g-text-display-1-line-height)}.g-text_variant_display-1,.g-text_variant_display-2{font-family:var(--g-text-display-font-family);font-weight:var(--g-text-display-font-weight)}.g-text_variant_display-2{font-size:var(--g-text-display-2-font-size);line-height:var(--g-text-display-2-line-height)}.g-text_variant_display-3{font-size:var(--g-text-display-3-font-size);line-height:var(--g-text-display-3-line-height)}.g-text_variant_display-3,.g-text_variant_display-4{font-family:var(--g-text-display-font-family);font-weight:var(--g-text-display-font-weight)}.g-text_variant_display-4{font-size:var(--g-text-display-4-font-size);line-height:var(--g-text-display-4-line-height)}.g-text_variant_code-1{font-size:var(--g-text-code-1-font-size);line-height:var(--g-text-code-1-line-height)}.g-text_variant_code-1,.g-text_variant_code-2{font-family:var(--g-text-code-font-family);font-weight:var(--g-text-code-font-weight)}.g-text_variant_code-2{font-size:var(--g-text-code-2-font-size);line-height:var(--g-text-code-2-line-height)}.g-text_variant_code-3{font-size:var(--g-text-code-3-font-size);line-height:var(--g-text-code-3-line-height)}.g-text_variant_code-3,.g-text_variant_code-inline-1{font-family:var(--g-text-code-font-family);font-weight:var(--g-text-code-font-weight)}.g-text_variant_code-inline-1{font-size:var(--g-text-code-inline-1-font-size);line-height:var(--g-text-code-inline-1-line-height)}.g-text_variant_code-inline-2{font-size:var(--g-text-code-inline-2-font-size);line-height:var(--g-text-code-inline-2-line-height)}.g-text_variant_code-inline-2,.g-text_variant_code-inline-3{font-family:var(--g-text-code-font-family);font-weight:var(--g-text-code-font-weight)}.g-text_variant_code-inline-3{font-size:var(--g-text-code-inline-3-font-size);line-height:var(--g-text-code-inline-3-line-height)}.g-text_variant_body-1{font-size:var(--g-text-body-1-font-size);line-height:var(--g-text-body-1-line-height)}.g-text_variant_body-1,.g-text_variant_body-2{font-family:var(--g-text-body-font-family);font-weight:var(--g-text-body-font-weight)}.g-text_variant_body-2{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.g-text_variant_body-3{font-size:var(--g-text-body-3-font-size);line-height:var(--g-text-body-3-line-height)}.g-text_variant_body-3,.g-text_variant_body-short{font-family:var(--g-text-body-font-family);font-weight:var(--g-text-body-font-weight)}.g-text_variant_body-short{font-size:var(--g-text-body-short-font-size);line-height:var(--g-text-body-short-line-height)}.g-text_variant_caption-1{font-size:var(--g-text-caption-1-font-size);line-height:var(--g-text-caption-1-line-height)}.g-text_variant_caption-1,.g-text_variant_caption-2{font-family:var(--g-text-caption-font-family);font-weight:var(--g-text-caption-font-weight)}.g-text_variant_caption-2{font-size:var(--g-text-caption-2-font-size);line-height:var(--g-text-caption-2-line-height)}.g-text_variant_header-1{font-size:var(--g-text-header-1-font-size);line-height:var(--g-text-header-1-line-height)}.g-text_variant_header-1,.g-text_variant_header-2{font-family:var(--g-text-header-font-family);font-weight:var(--g-text-header-font-weight)}.g-text_variant_header-2{font-size:var(--g-text-header-2-font-size);line-height:var(--g-text-header-2-line-height)}.g-text_variant_subheader-1{font-size:var(--g-text-subheader-1-font-size);line-height:var(--g-text-subheader-1-line-height)}.g-text_variant_subheader-1,.g-text_variant_subheader-2{font-family:var(--g-text-subheader-font-family);font-weight:var(--g-text-subheader-font-weight)}.g-text_variant_subheader-2{font-size:var(--g-text-subheader-2-font-size);line-height:var(--g-text-subheader-2-line-height)}.g-text_variant_subheader-3{font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-3-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-3-line-height)}.g-text_ellipsis{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.g-text_ellipsis-lines{-webkit-box-orient:vertical;-webkit-line-clamp:2;align-self:center;display:-webkit-box;overflow:hidden;white-space:normal}.g-text_ws_nowrap{white-space:nowrap}.g-text_ws_break-spaces{white-space:break-spaces}.g-text_wb_break-all{word-break:break-all}.g-text_wb_break-word{word-break:break-word}.g-clipboard-button__icon{pointer-events:none}.g-icon{line-height:0;vertical-align:top}.g-button{--_--text-color:var(--g-color-text-primary);--_--text-color-hover:var(--_--text-color);--_--background-color:#0000;--_--background-color-hover:var(--g-color-base-simple-hover);--_--border-width:0;--_--border-color:currentColor;--_--focus-outline-color:var(--g-color-line-focus);--_--focus-outline-offset:0;--_--font-size:var(--g-text-body-1-font-size);-webkit-tap-highlight-color:rgba(0,0,0,0);background:none;background:#0000;border:none;box-sizing:border-box;color:inherit;color:var(--g-button-text-color,var(--_--text-color));cursor:pointer;display:inline-flex;font-family:var(--g-text-body-font-family);font-size:inherit;font-size:var(--g-button-font-size,var(--_--font-size));font-weight:var(--g-text-body-font-weight);gap:var(--g-button-icon-offset,var(--_--icon-offset));height:var(--g-button-height,var(--_--height));justify-content:center;line-height:var(--g-button-height,var(--_--height));outline:none;overflow:visible;padding:0;padding:0 var(--g-button-padding,var(--_--padding));position:relative;text-align:center;text-decoration:none;touch-action:manipulation;transform:scale(1);transition:transform .1s ease-out,color .15s linear;-webkit-user-select:none;user-select:none;white-space:nowrap}.g-button:before{background-color:var(--g-button-background-color,var(--_--background-color));border:var(--g-button-border-width,var(--_--border-width)) var(--g-button-border-style,solid) var(--g-button-border-color,var(--_--border-color));content:"";inset:0;position:absolute;transition:background-color .15s linear;z-index:-1}.g-button:hover{color:var(--g-button-text-color-hover,var(--_--text-color-hover))}.g-button:hover:before{background-color:var(--g-button-background-color-hover,var(--_--background-color-hover))}.g-button:focus-visible:before{outline:var(--g-button-focus-outline-color,var(--_--focus-outline-color)) var(--g-button-focus-outline-style,solid) var(--g-button-focus-outline-width,2px);outline-offset:var(--g-button-focus-outline-offset,var(--_--focus-outline-offset))}.g-button:after{content:"";inset:0;position:absolute;transform:scale(1);transition:none;z-index:-1}.g-button:active{transform:scale(.96);transition:none}.g-button:active:after{transform:scale(1.042)}.g-button_size_xs{--_--height:20px;--_--border-radius:var(--g-border-radius-xs);--_--padding:6px;--_--icon-size:12px;--_--icon-offset:4px}.g-button_size_s{--_--height:24px;--_--border-radius:var(--g-border-radius-s);--_--padding:8px;--_--icon-size:16px;--_--icon-offset:4px}.g-button_size_m{--_--height:28px;--_--border-radius:var(--g-border-radius-m);--_--padding:12px;--_--icon-size:16px;--_--icon-offset:8px}.g-button_size_l{--_--height:36px;--_--border-radius:var(--g-border-radius-l);--_--padding:16px;--_--icon-size:16px;--_--icon-offset:8px}.g-button_size_xl{--_--height:44px;--_--border-radius:var(--g-border-radius-xl);--_--padding:24px;--_--icon-size:20px;--_--icon-offset:12px;--_--font-size:var(--g-text-body-2-font-size)}.g-button_view_normal{--_--background-color:var(--g-color-base-generic);--_--background-color-hover:var(--g-color-base-generic-hover)}.g-button_view_action{--_--text-color:var(--g-color-text-brand-contrast);--_--background-color:var(--g-color-base-brand);--_--background-color-hover:var(--g-color-base-brand-hover);--_--focus-outline-color:var(--g-color-base-brand);--_--focus-outline-offset:1px}.g-button_view_outlined{--_--border-width:1px;--_--border-color:var(--g-color-line-generic)}.g-button_view_outlined-info{--_--text-color:var(--g-color-text-info);--_--border-width:1px;--_--border-color:var(--g-color-line-info)}.g-button_view_outlined-success{--_--text-color:var(--g-color-text-positive);--_--border-width:1px;--_--border-color:var(--g-color-line-positive)}.g-button_view_outlined-warning{--_--text-color:var(--g-color-text-warning);--_--border-width:1px;--_--border-color:var(--g-color-line-warning)}.g-button_view_outlined-danger{--_--text-color:var(--g-color-text-danger);--_--border-width:1px;--_--border-color:var(--g-color-line-danger)}.g-button_view_outlined-utility{--_--text-color:var(--g-color-text-utility);--_--border-width:1px;--_--border-color:var(--g-color-line-utility)}.g-button_view_outlined-action{--_--text-color:var(--g-color-text-brand);--_--border-width:1px;--_--border-color:var(--g-color-line-brand)}.g-button_view_raised{--_--background-color-hover:var(--g-color-base-float-hover);background:var(--g-color-base-float)}.g-button_view_raised:before{box-shadow:0 3px 5px var(--g-color-sfx-shadow)}.g-button_view_raised:active:before{box-shadow:0 1px 2px var(--g-color-sfx-shadow)}.g-button_view_flat-secondary{--_--text-color:var(--g-color-text-secondary);--_--text-color-hover:var(--g-color-text-primary)}.g-button_view_flat-info{--_--text-color:var(--g-color-text-info)}.g-button_view_flat-success{--_--text-color:var(--g-color-text-positive)}.g-button_view_flat-warning{--_--text-color:var(--g-color-text-warning)}.g-button_view_flat-danger{--_--text-color:var(--g-color-text-danger)}.g-button_view_flat-utility{--_--text-color:var(--g-color-text-utility)}.g-button_view_flat-action{--_--text-color:var(--g-color-text-brand)}.g-button_view_normal-contrast{--_--text-color:var(--g-color-text-dark-primary);--_--background-color:var(--g-color-base-light);--_--background-color-hover:var(--g-color-base-light-hover);--_--focus-outline-color:var(--g-color-line-light)}.g-button_view_normal-contrast.g-button_loading{--_--background-color-hover:var(--g-color-base-simple-hover)}.g-button_view_outlined-contrast{--_--text-color:var(--g-color-text-light-primary);--_--background-color-hover:var(--g-color-base-light-simple-hover);--_--border-width:1px;--_--border-color:var(--g-color-line-light);--_--focus-outline-color:var(--g-color-line-light)}.g-button_view_flat-contrast{--_--text-color:var(--g-color-text-light-primary);--_--background-color-hover:var(--g-color-base-light-simple-hover);--_--focus-outline-color:var(--g-color-line-light)}.g-button.g-button_pin_round-round.g-button{border-radius:var(--g-button-border-radius,var(--_--border-radius))}.g-button.g-button_pin_brick-brick.g-button{border-radius:0}.g-button.g-button_pin_clear-clear.g-button{border-inline:0;border-radius:0}.g-button.g-button_pin_circle-circle.g-button{border-radius:100px}.g-button.g-button_pin_round-brick.g-button{border-end-end-radius:0;border-end-start-radius:var(--g-button-border-radius,var(--_--border-radius));border-start-end-radius:0;border-start-start-radius:var(--g-button-border-radius,var(--_--border-radius))}.g-button.g-button_pin_brick-round.g-button{border-end-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-end-start-radius:0;border-start-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-start-start-radius:0}.g-button.g-button_pin_round-clear.g-button{border-end-end-radius:0;border-end-start-radius:var(--g-button-border-radius,var(--_--border-radius));border-inline-end:0;border-start-end-radius:0;border-start-start-radius:var(--g-button-border-radius,var(--_--border-radius))}.g-button.g-button_pin_clear-round.g-button{border-end-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-end-start-radius:0;border-inline-start:0;border-start-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-start-start-radius:0}.g-button.g-button_pin_brick-clear.g-button{border-inline-end:0;border-radius:0}.g-button.g-button_pin_clear-brick.g-button{border-inline-start:0;border-radius:0}.g-button.g-button_pin_circle-brick.g-button{border-end-end-radius:0;border-end-start-radius:100px;border-start-end-radius:0;border-start-start-radius:100px}.g-button.g-button_pin_brick-circle.g-button{border-end-end-radius:100px;border-end-start-radius:0;border-start-end-radius:100px;border-start-start-radius:0}.g-button.g-button_pin_circle-clear.g-button{border-end-end-radius:0;border-end-start-radius:100px;border-inline-end:0;border-start-end-radius:0;border-start-start-radius:100px}.g-button.g-button_pin_clear-circle.g-button{border-end-end-radius:100px;border-end-start-radius:0;border-inline-start:0;border-start-end-radius:100px;border-start-start-radius:0}.g-button.g-button_pin_round-round:before{border-radius:var(--g-button-border-radius,var(--_--border-radius))}.g-button.g-button_pin_brick-brick:before{border-radius:0}.g-button.g-button_pin_clear-clear:before{border-inline:0;border-radius:0}.g-button.g-button_pin_circle-circle:before{border-radius:100px}.g-button.g-button_pin_round-brick:before{border-end-end-radius:0;border-end-start-radius:var(--g-button-border-radius,var(--_--border-radius));border-start-end-radius:0;border-start-start-radius:var(--g-button-border-radius,var(--_--border-radius))}.g-button.g-button_pin_brick-round:before{border-end-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-end-start-radius:0;border-start-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-start-start-radius:0}.g-button.g-button_pin_round-clear:before{border-end-end-radius:0;border-end-start-radius:var(--g-button-border-radius,var(--_--border-radius));border-inline-end:0;border-start-end-radius:0;border-start-start-radius:var(--g-button-border-radius,var(--_--border-radius))}.g-button.g-button_pin_clear-round:before{border-end-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-end-start-radius:0;border-inline-start:0;border-start-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-start-start-radius:0}.g-button.g-button_pin_brick-clear:before{border-inline-end:0;border-radius:0}.g-button.g-button_pin_clear-brick:before{border-inline-start:0;border-radius:0}.g-button.g-button_pin_circle-brick:before{border-end-end-radius:0;border-end-start-radius:100px;border-start-end-radius:0;border-start-start-radius:100px}.g-button.g-button_pin_brick-circle:before{border-end-end-radius:100px;border-end-start-radius:0;border-start-end-radius:100px;border-start-start-radius:0}.g-button.g-button_pin_circle-clear:before{border-end-end-radius:0;border-end-start-radius:100px;border-inline-end:0;border-start-end-radius:0;border-start-start-radius:100px}.g-button.g-button_pin_clear-circle:before{border-end-end-radius:100px;border-end-start-radius:0;border-inline-start:0;border-start-end-radius:100px;border-start-start-radius:0}.g-button.g-button_pin_round-round:after{border-radius:var(--g-button-border-radius,var(--_--border-radius))}.g-button.g-button_pin_brick-brick:after{border-radius:0}.g-button.g-button_pin_clear-clear:after{border-inline:0;border-radius:0}.g-button.g-button_pin_circle-circle:after{border-radius:100px}.g-button.g-button_pin_round-brick:after{border-end-end-radius:0;border-end-start-radius:var(--g-button-border-radius,var(--_--border-radius));border-start-end-radius:0;border-start-start-radius:var(--g-button-border-radius,var(--_--border-radius))}.g-button.g-button_pin_brick-round:after{border-end-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-end-start-radius:0;border-start-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-start-start-radius:0}.g-button.g-button_pin_round-clear:after{border-end-end-radius:0;border-end-start-radius:var(--g-button-border-radius,var(--_--border-radius));border-inline-end:0;border-start-end-radius:0;border-start-start-radius:var(--g-button-border-radius,var(--_--border-radius))}.g-button.g-button_pin_clear-round:after{border-end-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-end-start-radius:0;border-inline-start:0;border-start-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-start-start-radius:0}.g-button.g-button_pin_brick-clear:after{border-inline-end:0;border-radius:0}.g-button.g-button_pin_clear-brick:after{border-inline-start:0;border-radius:0}.g-button.g-button_pin_circle-brick:after{border-end-end-radius:0;border-end-start-radius:100px;border-start-end-radius:0;border-start-start-radius:100px}.g-button.g-button_pin_brick-circle:after{border-end-end-radius:100px;border-end-start-radius:0;border-start-end-radius:100px;border-start-start-radius:0}.g-button.g-button_pin_circle-clear:after{border-end-end-radius:0;border-end-start-radius:100px;border-inline-end:0;border-start-end-radius:0;border-start-start-radius:100px}.g-button.g-button_pin_clear-circle:after{border-end-end-radius:100px;border-end-start-radius:0;border-inline-start:0;border-start-end-radius:100px;border-start-start-radius:0}.g-button__text{display:inline-block;white-space:nowrap}.g-button__icon{display:inline-block;height:var(--g-button-height,var(--_--height));margin:0 calc((var(--g-button-height, var(--_--height)) - var(--g-button-icon-size, var(--_--icon-size)))/2*-1);position:relative;width:var(--g-button-height,var(--_--height))}.g-button__icon:after{content:"Â ";visibility:hidden}.g-button__icon-inner{align-items:center;display:flex;inset:0;justify-content:center;position:absolute}.g-button__icon_side_start{order:-1}.g-button__icon_side_end{order:1}.g-button__icon:only-child{margin:0}.g-button:has(.g-button__icon:only-child){--_--padding:0}.g-button:has(.g-button__icon:only-child):not(.g-button_width_max){width:var(--g-button-height,var(--_--height))}.g-button_selected:not(.g-button_view_outlined-contrast){--_--border-width:0}.g-button_selected:not(.g-button_view_normal-contrast,.g-button_view_flat-contrast,.g-button_view_outlined-contrast){--_--text-color:var(--g-color-text-brand-heavy);--_--background-color:var(--g-color-base-selection);--_--background-color-hover:var(--g-color-base-selection-hover)}.g-button_selected.g-button_view_flat-info,.g-button_selected.g-button_view_outlined-info{--_--text-color:var(--g-color-text-info-heavy);--_--background-color:var(--g-color-base-info-light);--_--background-color-hover:var(--g-color-base-info-light-hover)}.g-button_selected.g-button_view_flat-success,.g-button_selected.g-button_view_outlined-success{--_--text-color:var(--g-color-text-positive-heavy);--_--background-color:var(--g-color-base-positive-light);--_--background-color-hover:var(--g-color-base-positive-light-hover)}.g-button_selected.g-button_view_flat-warning,.g-button_selected.g-button_view_outlined-warning{--_--text-color:var(--g-color-text-warning-heavy);--_--background-color:var(--g-color-base-warning-light);--_--background-color-hover:var(--g-color-base-warning-light-hover)}.g-button_selected.g-button_view_flat-danger,.g-button_selected.g-button_view_outlined-danger{--_--text-color:var(--g-color-text-danger-heavy);--_--background-color:var(--g-color-base-danger-light);--_--background-color-hover:var(--g-color-base-danger-light-hover)}.g-button_selected.g-button_view_flat-utility,.g-button_selected.g-button_view_outlined-utility{--_--text-color:var(--g-color-text-utility-heavy);--_--background-color:var(--g-color-base-utility-light);--_--background-color-hover:var(--g-color-base-utility-light-hover)}.g-button_disabled{cursor:default;pointer-events:none}.g-button_disabled:not(.g-button_loading){--_--text-color:var(--g-color-text-hint);--_--background-color:var(--g-color-base-generic-accent-disabled);--_--background-color-hover:var(--g-color-base-generic-accent-disabled);--_--border-width:0}.g-button_disabled:not(.g-button_loading):is(.g-button_view_normal-contrast,.g-button_view_outlined-contrast){--_--text-color:var(--g-color-text-light-secondary);--_--background-color:var(--g-color-base-light-disabled);--_--background-color-hover:var(--g-color-base-light-disabled)}.g-button_disabled:not(.g-button_loading):is(.g-button_view_flat,.g-button_view_flat-secondary,.g-button_view_flat-info,.g-button_view_flat-success,.g-button_view_flat-warning,.g-button_view_flat-danger,.g-button_view_flat-utility,.g-button_view_flat-action,.g-button_view_flat-contrast){--_--text-color:var(--g-color-text-hint);--_--background-color:#0000;--_--background-color-hover:#0000}.g-button_disabled:not(.g-button_loading).g-button_view_flat-contrast{--_--text-color:var(--g-color-text-light-hint)}.g-button_disabled:active{transform:scale(1)}.g-button_loading:before{animation:g-loading-animation .5s linear infinite;background-clip:padding-box;background-image:repeating-linear-gradient(-45deg,var(--g-button-background-color,var(--_--background-color)),var(--g-button-background-color,var(--_--background-color)) 4px,var(--g-button-background-color-hover,var(--_--background-color-hover)) 4px,var(--g-button-background-color-hover,var(--_--background-color-hover)) 8px);background-size:150%}.g-button_width_auto{max-width:100%}.g-button_width_max{width:100%}.g-button_width_auto .g-button__text,.g-button_width_max .g-button__text{display:block;overflow:hidden;text-overflow:ellipsis}.g-action-tooltip{--g-popup-border-width:0;--g-popup-background-color:var(--g-color-base-float-heavy)}.g-action-tooltip__content{box-sizing:border-box;color:var(--g-color-text-light-primary);max-width:300px;padding:6px 12px}.g-action-tooltip__heading{align-items:baseline;display:flex;justify-content:space-between}.g-action-tooltip__title{color:var(--g-color-text-light-primary)}.g-action-tooltip__hotkey{margin-inline-start:8px}.g-action-tooltip__description{color:var(--g-color-text-light-secondary);margin-block-start:4px}.g-popup{--_--background-color:var(--g-popup-background-color,var(--g-color-base-float));--_--border-color:var(--g-popup-border-color,var(--g-color-line-generic-solid));--_--border-width:var(--g-popup-border-width,1px);visibility:hidden;z-index:1000}.g-popup_exit_active,.g-popup_open{visibility:visible}.g-popup_exit_active[data-popper-placement*=bottom] .g-popup__content{animation-name:g-popup-bottom}.g-popup_exit_active[data-popper-placement*=top] .g-popup__content{animation-name:g-popup-top}.g-popup_exit_active[data-popper-placement*=left] .g-popup__content{animation-name:g-popup-left}.g-popup_exit_active[data-popper-placement*=right] .g-popup__content{animation-name:g-popup-right}.g-popup_appear_active[data-popper-placement*=bottom] .g-popup__content,.g-popup_enter_active[data-popper-placement*=bottom] .g-popup__content{animation-name:g-popup-bottom-open}.g-popup_appear_active[data-popper-placement*=top] .g-popup__content,.g-popup_enter_active[data-popper-placement*=top] .g-popup__content{animation-name:g-popup-top-open}.g-popup_appear_active[data-popper-placement*=left] .g-popup__content,.g-popup_enter_active[data-popper-placement*=left] .g-popup__content{animation-name:g-popup-left-open}.g-popup_appear_active[data-popper-placement*=right] .g-popup__content,.g-popup_enter_active[data-popper-placement*=right] .g-popup__content{animation-name:g-popup-right-open}.g-popup[data-popper-placement*=bottom] .g-popup__arrow{inset-block-start:-9px}.g-popup[data-popper-placement*=top] .g-popup__arrow{inset-block-end:-9px}.g-popup[data-popper-placement*=top] .g-popup__arrow-content{transform:rotate(180deg)}.g-popup[data-popper-placement*=left] .g-popup__arrow{right:-9px}.g-popup[data-popper-placement*=left] .g-popup__arrow-content{transform:rotate(90deg)}.g-popup[data-popper-placement*=right] .g-popup__arrow{left:-9px}.g-popup[data-popper-placement*=right] .g-popup__arrow-content{transform:rotate(-90deg)}.g-popup__content{animation-duration:.1s;animation-fill-mode:forwards;animation-timing-function:ease-out;background-color:var(--_--background-color);border-radius:4px;box-shadow:0 0 0 var(--_--border-width) var(--_--border-color),0 8px 20px var(--_--border-width) var(--g-color-sfx-shadow);outline:none;position:relative}.g-popup__content>.g-popup__arrow+*,.g-popup__content>:first-child:not(.g-popup__arrow){border-start-end-radius:inherit;border-start-start-radius:inherit}.g-popup__content>:last-child{border-end-end-radius:inherit;border-end-start-radius:inherit}.g-popup__arrow-content{display:flex;height:18px;overflow:hidden;position:relative;width:18px}.g-popup__arrow-circle-wrapper{background-color:initial;height:9px;overflow:hidden;position:relative;width:9px}.g-popup__arrow-circle{border-radius:50%;box-shadow:inset 0 0 0 calc(5px - var(--_--border-width)) var(--_--background-color),inset 0 0 0 5px var(--_--border-color);box-sizing:border-box;height:30px;position:absolute;width:28px}.g-popup__arrow-circle_left{inset-block-end:-4px;inset-inline-end:-5px}.g-popup__arrow-circle_right{inset-block-end:-4px;inset-inline-start:-5px}@keyframes g-popup-bottom{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(10px)}}@keyframes g-popup-bottom-open{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes g-popup-top{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-10px)}}@keyframes g-popup-top-open{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@keyframes g-popup-left{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(-10px)}}@keyframes g-popup-left-open{0%{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:translateX(0)}}@keyframes g-popup-right{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(10px)}}@keyframes g-popup-right-open{0%{opacity:0;transform:translateX(10px)}to{opacity:1;transform:translateX(0)}}.g-portal__theme-wrapper{display:contents}.g-hotkey{border-radius:4px;padding:1px 5px}.g-hotkey,.g-hotkey kbd{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height)}.g-hotkey_view_light{background-color:var(--g-color-base-generic)}.g-hotkey_view_light .g-hotkey__plus{color:var(--g-color-text-hint)}.g-hotkey_view_dark{background-color:var(--g-color-base-light-simple-hover);color:var(--g-color-text-light-complementary)}.g-hotkey_view_dark .g-hotkey__plus{color:var(--g-color-text-light-hint)}.g-help-mark__button{background:none;border:none;color:inherit;color:var(--g-color-text-hint);cursor:pointer;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);outline:none;padding:0}.g-help-mark__button:focus-visible{border-radius:50%;outline:2px solid var(--g-color-line-focus)}.g-link{-webkit-tap-highlight-color:rgba(0,0,0,0);border-radius:var(--g-focus-border-radius);cursor:pointer;text-decoration:none;touch-action:manipulation}.g-link:focus-visible{outline:2px solid var(--g-color-line-focus)}.g-link_view_normal{color:var(--g-color-text-link)}.g-link_view_primary{color:var(--g-color-text-primary)}.g-link_view_secondary{color:var(--g-color-text-secondary)}.g-link_view_normal:hover,.g-link_view_primary:hover,.g-link_view_secondary:hover{color:var(--g-color-text-link-hover)}.g-link_visitable:visited{color:var(--g-color-text-link-visited)}.g-link_visitable:visited:hover{color:var(--g-color-text-link-visited-hover)}.g-link_underline{text-decoration:underline}.g-popover{display:inline-block;position:relative}.g-popover:not(.g-popover_disabled){cursor:pointer}.g-popover__handler{display:inline-block}.g-popover__tooltip{--_--padding:16px;--_--close-offset:8px;--_--close-size:24px}.g-popover__tooltip-popup-content{box-sizing:border-box;cursor:default;max-width:var(--g-popover-max-width,300px);min-height:40px;padding:var(--g-popover-padding,var(--_--padding))}.g-popover__tooltip-title{display:inline-flex;font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-3-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-3-line-height);margin:0 0 12px}.g-popover__tooltip-buttons{display:flex;flex-wrap:wrap;gap:5px;margin-block-start:20px}.g-popover__tooltip-button{flex:1 1}.g-popover__tooltip-close{inset-block-start:var(--_--close-offset);inset-inline-end:var(--_--close-offset);position:absolute}.g-popover__tooltip-content{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height);overflow-wrap:break-word}.g-popover__tooltip-content_secondary{opacity:.7}.g-popover__tooltip-links>*{margin-block-start:8px}.g-popover__tooltip-links>:first-child{margin-block-start:0}.g-popover__tooltip-content+.g-popover__tooltip-links>:first-child{margin-block-start:12px}.g-popover__tooltip-link{display:inline-block;font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height)}.g-popover__tooltip_theme_announcement .g-popover__tooltip_theme_announcement,.g-popover__tooltip_theme_announcement.g-popover__tooltip_theme_info,.g-popover__tooltip_theme_info .g-popover__tooltip_theme_announcement,.g-popover__tooltip_theme_info.g-popover__tooltip_theme_info{color:var(--g-color-text-primary)}.g-popover__tooltip_force-links-appearance.g-popover__tooltip_theme_info .g-popover__tooltip-content a:not(.g-button),.g-popover__tooltip_theme_announcement .g-popover__tooltip-content a:not(.g-button){color:var(--g-color-text-link);text-decoration:none}.g-popover__tooltip_force-links-appearance.g-popover__tooltip_theme_info .g-popover__tooltip-content a:not(.g-button):hover,.g-popover__tooltip_theme_announcement .g-popover__tooltip-content a:not(.g-button):hover{color:var(--g-color-text-link-hover)}.g-popover__tooltip_theme_announcement{--g-popup-background-color:var(--g-color-base-simple-hover-solid);--g-popup-border-color:var(--g-color-base-simple-hover-solid)}.g-popover__tooltip_theme_special{--g-popup-background-color:var(--g-color-base-brand);--g-popup-border-color:var(--g-color-base-brand);color:var(--g-color-text-light-primary)}.g-popover__tooltip_theme_special .g-popover__tooltip-content a:not(.g-button){color:var(--g-color-text-light-primary);font-weight:var(--g-text-accent-font-weight)}.g-popover__tooltip_theme_special .g-popover__tooltip-content a:not(.g-button):hover{color:var(--g-color-text-light-secondary)}.g-popover__tooltip_theme_special .g-link{color:var(--g-color-text-light-primary)}.g-popover__tooltip_theme_special .g-link:hover{color:var(--g-color-text-light-secondary)}.g-popover__tooltip_size_l{--_--padding:24px}.g-popover__tooltip_size_l .g-popover__tooltip-title{font-family:var(--g-text-header-font-family);font-size:var(--g-text-header-1-font-size);font-weight:var(--g-text-header-font-weight);line-height:var(--g-text-header-1-line-height)}.g-popover__tooltip_size_l .g-popover__tooltip-content{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-2-line-height)}.g-popover__tooltip_with-close .g-popover__tooltip-content,.g-popover__tooltip_with-close .g-popover__tooltip-title{padding-inline-end:calc(var(--_--close-offset) + var(--_--close-size) - var(--_--padding))}.g-definition-list{--_--item-block-start:var(--g-spacing-4);--_--term-width:300px;margin:0}.g-definition-list__item{align-items:baseline;display:flex;gap:var(--g-spacing-1)}.g-definition-list__item+.g-definition-list__item{margin-block-start:var(--g-definition-list-item-gap,var(--_--item-block-start))}.g-definition-list__term-container{align-items:baseline;display:flex;flex:0 0 auto;max-width:var(--_--term-width);overflow:hidden;position:relative;width:var(--_--term-width)}.g-definition-list__term-wrapper{color:var(--g-color-text-secondary)}.g-definition-list__dots{border-block-end:1px dotted var(--g-color-line-generic-active);box-sizing:border-box;flex:1 0 auto;margin:0 2px;min-width:25px}.g-definition-list__definition{flex:0 1 auto;margin:0}.g-definition-list_responsive .g-definition-list__term-container{--_--term-width:auto;flex:1 0 min-content}.g-definition-list_vertical{--_--item-block-start:var(--g-spacing-3);--_--term-width:auto}.g-definition-list_vertical .g-definition-list__term-container{flex:1 0 auto}.g-definition-list_vertical .g-definition-list__item{flex-direction:column;gap:var(--g-spacing-half)}.g-definition-list__copy-container{align-items:center;display:inline-flex;margin-inline-end:calc(var(--g-spacing-7)*-1);padding-inline-end:var(--g-spacing-7);position:relative}.g-definition-list__copy-container:hover .g-definition-list__copy-button{opacity:1}.g-definition-list__copy-button{display:inline-block;inset-inline-end:0;margin-inline-start:10px;opacity:0;position:absolute}.g-definition-list__copy-button:focus-visible{opacity:1}.g-switch{position:relative}.g-switch__control{cursor:pointer;opacity:0}.g-switch__indicator{display:inline-block;position:relative}.g-switch__indicator:before{background-color:var(--g-color-base-generic-medium);content:"";inset:0;position:absolute;transition:background .1s linear}.g-switch__indicator:after{content:"Â ";visibility:hidden}.g-switch__slider{background-color:var(--g-color-base-background);border-radius:50%;content:"";position:absolute;transition:transform .15s ease-out}.g-switch__outline{background:none;height:100%;inset-block-start:0;inset-inline-start:0;pointer-events:none;position:absolute;width:100%}.g-switch__control:focus-visible+.g-switch__outline{outline:2px solid var(--g-color-line-focus)}.g-switch_size_m .g-switch__indicator,.g-switch_size_m .g-switch__indicator:before,.g-switch_size_m .g-switch__outline{border-radius:10px;height:20px;width:36px}.g-switch_size_m .g-switch__slider{height:16px;inset-block-start:2px;inset-inline-start:2px;width:16px}.g-switch_size_m .g-switch__text{margin-block-start:3px}.g-switch_size_l .g-switch__indicator,.g-switch_size_l .g-switch__indicator:before,.g-switch_size_l .g-switch__outline{border-radius:12px;height:24px;width:42px}.g-switch_size_l .g-switch__slider{height:18px;inset-block-start:3px;inset-inline-start:3px;width:18px}.g-switch_size_l .g-switch__text{margin-block-start:4px}.g-switch:hover .g-switch__indicator:before{background-color:var(--g-color-base-generic-medium-hover)}.g-switch_checked .g-switch__slider{--_--translate-x:calc(100%*var(--g-flow-direction));transform:translateX(var(--_--translate-x))}.g-switch_checked .g-switch__indicator:before,.g-switch_checked:hover .g-switch__indicator:before{background-color:var(--g-color-base-brand)}.g-switch_disabled .g-switch__indicator:before{background-color:var(--g-color-base-generic-accent-disabled)}.g-switch_disabled.g-switch_checked .g-switch__indicator:before{background-color:var(--g-color-base-brand);opacity:.5}.g-control-label{-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--g-color-text-primary);cursor:pointer;display:inline-flex;font-family:var(--g-text-body-font-family);font-weight:var(--g-text-body-font-weight);touch-action:manipulation;-webkit-user-select:none;user-select:none}.g-control-label_disabled{cursor:default;pointer-events:none}.g-control-label_size_m{font-size:var(--g-text-body-1-font-size);line-height:15px}.g-control-label_size_l{font-size:var(--g-text-body-2-font-size);line-height:18px}.g-control-label__indicator{flex-shrink:0}.g-control-label__text{flex-grow:1;white-space:normal}.g-control-label_disabled .g-control-label__text{opacity:.6}.g-control-label_size_m .g-control-label__text{margin-inline-start:5px}.g-control-label_size_l .g-control-label__text{margin-inline-start:7px}.g-radio-button{--_--border-radius-inner:calc(var(--_--border-radius) - 3px);background-color:var(--g-color-base-generic);border-radius:var(--_--border-radius);box-sizing:border-box;display:inline-flex;flex-direction:row;font-family:var(--g-text-body-font-family);font-weight:var(--g-text-body-font-weight);position:relative}.g-radio-button__plate{inset-block:0;position:absolute;transition:left .2s,width .2s}.g-radio-button__plate[hidden]{display:none}.g-radio-button__option{border-radius:var(--_--border-radius-inner);cursor:pointer;flex:1 1 auto;font-size:var(--g-text-body-1-font-size);text-align:center;transform:scale(1);transition:color .15s linear;-webkit-user-select:none;user-select:none}.g-radio-button__option-outline{border-radius:var(--_--border-radius-inner);content:"";inset:3px;position:absolute;z-index:-1}.g-radio-button__option-control{border:none;cursor:inherit;height:100%;inset-block-start:0;inset-inline-start:0;margin:0;opacity:0;outline:none;padding:0;position:absolute;width:100%}.g-radio-button__option-control:focus-visible+.g-radio-button__option-outline{outline:2px solid var(--g-color-line-focus)}.g-radio-button__option-text{color:var(--g-color-text-complementary);display:inline-block;white-space:nowrap}.g-radio-button__option-text_icon{align-items:center;display:flex;height:100%}.g-radio-button__option:hover .g-radio-button__option-text,.g-radio-button__option_checked .g-radio-button__option-text{color:var(--g-color-text-primary)}.g-radio-button__option_checked{cursor:default}.g-radio-button__option_disabled{cursor:default;pointer-events:none}.g-radio-button__option_disabled .g-radio-button__option-text{color:var(--g-color-text-hint)}.g-radio-button__option:before,.g-radio-button__plate:before{border-radius:var(--_--border-radius-inner);inset:3px;position:absolute}.g-radio-button__option:before{z-index:-1}.g-radio-button__plate:before,.g-radio-button__plate[hidden]~.g-radio-button__option_checked:before{background-color:var(--g-color-base-background);content:""}.g-radio-button_size_s{--_--border-radius:var(--g-border-radius-s)}.g-radio-button_size_s .g-radio-button__option{height:24px;line-height:24px}.g-radio-button_size_s .g-radio-button__option-text{margin:0 10px}.g-radio-button_size_m{--_--border-radius:var(--g-border-radius-m)}.g-radio-button_size_m .g-radio-button__option{height:28px;line-height:28px}.g-radio-button_size_m .g-radio-button__option-text{margin:0 13px}.g-radio-button_size_l{--_--border-radius:var(--g-border-radius-l)}.g-radio-button_size_l .g-radio-button__option{height:36px;line-height:36px}.g-radio-button_size_l .g-radio-button__option-text{margin:0 18px}.g-radio-button_size_xl{--_--border-radius:var(--g-border-radius-xl)}.g-radio-button_size_xl .g-radio-button__option{font-size:var(--g-text-body-2-font-size);height:44px;line-height:44px}.g-radio-button_size_xl .g-radio-button__option-text{margin:0 25px}.g-radio-button_width_auto{max-width:100%}.g-radio-button_width_max{width:100%}.g-radio-button_width_auto .g-radio-button__option,.g-radio-button_width_max .g-radio-button__option{overflow:hidden}.g-radio-button_width_auto .g-radio-button__option-text,.g-radio-button_width_max .g-radio-button__option-text{display:block;overflow:hidden;text-overflow:ellipsis}.g-label{--_--bg-color:none;--_--bg-color-hover:none;--_--text-color:none;align-items:center;background-color:var(--_--bg-color);border-radius:var(--_--border-radius);box-sizing:border-box;color:var(--_--text-color);display:inline-flex;height:var(--_--height);isolation:isolate;position:relative;transition-duration:.15s;transition-property:opacity,color,background-color;transition-timing-function:ease-in-out}.g-label__text{align-items:baseline;display:flex;font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height);line-height:var(--_--height);margin:0 var(--_--margin-inline);overflow:hidden;text-align:center;white-space:nowrap;width:100%}.g-label__content,.g-label__key{overflow:hidden;text-overflow:ellipsis}.g-label__value{display:flex;opacity:.7;overflow:hidden}.g-label__separator{margin:0 4px}.g-label__main-button{background:none;border:none;border-radius:inherit;color:inherit;cursor:pointer;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);outline:none;padding:0;z-index:1}.g-label__main-button:empty{inset:0;position:absolute}.g-label__addon{align-items:center;border-radius:var(--_--border-radius);display:flex;height:var(--_--height);justify-content:center;width:var(--_--height)}.g-label__addon_side_end,.g-label__addon_side_start{inset-block-start:0;position:absolute}.g-label__addon_side_start{border-end-end-radius:0;border-start-end-radius:0;inset-inline-start:2px}.g-label__addon_side_end{border-end-start-radius:0;border-start-start-radius:0;inset-inline-end:0}.g-label__addon_type_button{background:none;background-color:initial;border:none;color:inherit;color:var(--_--text-color);cursor:pointer;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);outline:none;padding:0;transition:color .15s ease-in-out,background-color .15s ease-in-out,transform .1s ease-out;z-index:2}.g-label__addon_type_button:active{transform:scale(.96)}.g-label_size_xs{--_--height:20px;--_--border-radius:var(--g-border-radius-xs);--_--margin-inline:8px;--_--margin-addon-start:24px;--_--margin-addon-end:22px}.g-label_size_s{--_--height:24px;--_--border-radius:var(--g-border-radius-s);--_--margin-inline:10px;--_--margin-addon-start:28px;--_--margin-addon-end:26px}.g-label_size_m{--_--height:28px;--_--border-radius:var(--g-border-radius-m);--_--margin-inline:12px;--_--margin-addon-start:32px;--_--margin-addon-end:32px}.g-label_disabled{opacity:.7;pointer-events:none}.g-label_interactive{cursor:pointer}.g-label_theme_normal{--_--bg-color:var(--g-color-base-misc-light);--_--bg-color-hover:var(--g-color-base-misc-light-hover);--_--text-color:var(--g-color-text-misc-heavy)}.g-label_theme_success{--_--bg-color:var(--g-color-base-positive-light);--_--bg-color-hover:var(--g-color-base-positive-light-hover);--_--text-color:var(--g-color-text-positive-heavy)}.g-label_theme_info{--_--bg-color:var(--g-color-base-info-light);--_--bg-color-hover:var(--g-color-base-info-light-hover);--_--text-color:var(--g-color-text-info-heavy)}.g-label_theme_warning{--_--bg-color:var(--g-color-base-warning-light);--_--bg-color-hover:var(--g-color-base-warning-light-hover);--_--text-color:var(--g-color-text-warning-heavy)}.g-label_theme_danger{--_--bg-color:var(--g-color-base-danger-light);--_--bg-color-hover:var(--g-color-base-danger-light-hover);--_--text-color:var(--g-color-text-danger-heavy)}.g-label_theme_utility{--_--bg-color:var(--g-color-base-utility-light);--_--bg-color-hover:var(--g-color-base-utility-light-hover);--_--text-color:var(--g-color-text-utility-heavy)}.g-label_theme_unknown{--_--bg-color:var(--g-color-base-neutral-light);--_--bg-color-hover:var(--g-color-base-neutral-light-hover);--_--text-color:var(--g-color-text-complementary)}.g-label_theme_clear{--_--bg-color:#0000;--_--bg-color-hover:var(--g-color-base-simple-hover);--_--text-color:var(--g-color-text-complementary);box-shadow:inset 0 0 0 1px var(--g-color-line-generic)}.g-label:has(.g-label__addon_side_start) .g-label__text{margin-inline-start:var(--_--margin-addon-start)}.g-label:has(.g-label__addon_side_end) .g-label__text{margin-inline-end:var(--_--margin-addon-end)}.g-label__addon_type_button:hover,.g-label_interactive:hover:not(:has(.g-label__addon_type_button:hover)){background-color:var(--_--bg-color-hover)}.g-label__addon_type_button:focus-visible,.g-label__main-button:focus-visible{outline:2px solid var(--g-color-line-focus)}.g-tabs{--_--vertical-item-padding:var(--g-tabs-vertical-item-padding,6px 20px);--_--vertical-item-height:var(--g-tabs-vertical-item-height,18px)}.g-tabs_size_m{--_--item-height:36px;--_--item-gap:24px;--_--item-border-width:2px}.g-tabs_size_m .g-tabs__item-counter,.g-tabs_size_m .g-tabs__item-title{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height)}.g-tabs_size_l{--_--item-height:40px;--_--item-gap:28px;--_--item-border-width:2px}.g-tabs_size_l .g-tabs__item-counter,.g-tabs_size_l .g-tabs__item-title{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-2-line-height)}.g-tabs_size_xl{--_--item-height:44px;--_--item-gap:32px;--_--item-border-width:3px}.g-tabs_size_xl .g-tabs__item-counter,.g-tabs_size_xl .g-tabs__item-title{font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-3-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-3-line-height)}.g-tabs__item{cursor:pointer;outline:none;-webkit-user-select:none;user-select:none}.g-tabs__item-content{align-items:center;border-radius:var(--g-focus-border-radius);display:flex}.g-tabs__item_overflow .g-tabs__item-content{min-width:0}.g-tabs__item-icon{margin-inline-end:8px}.g-tabs__item-title{white-space:nowrap}.g-tabs__item_overflow .g-tabs__item-title{overflow:hidden;text-overflow:ellipsis}.g-tabs__item-counter,.g-tabs__item-label{margin-inline-start:8px}.g-tabs__item-icon>svg{display:block}.g-tabs_direction_horizontal{align-items:flex-end;box-shadow:inset 0 calc(var(--g-tabs-border-width, 1px)*-1) 0 0 var(--g-color-line-generic);display:flex;flex-wrap:wrap;overflow:hidden}.g-tabs_direction_horizontal .g-tabs__item{align-items:center;border-block-end:var(--g-tabs-item-border-width,var(--_--item-border-width)) solid #0000;box-sizing:border-box;display:flex;height:var(--g-tabs-item-height,var(--_--item-height));padding-block-start:var(--_--item-border-width)}.g-tabs_direction_horizontal .g-tabs__item:focus-visible .g-tabs__item-content{outline:2px solid var(--g-color-line-focus);outline-offset:-2px}.g-tabs_direction_horizontal .g-tabs__item-meta{display:none}.g-tabs_direction_horizontal .g-tabs__item-title{color:var(--g-color-text-secondary)}.g-tabs_direction_horizontal .g-tabs__item-counter,.g-tabs_direction_horizontal .g-tabs__item-icon{color:var(--g-color-text-hint)}.g-tabs_direction_horizontal .g-tabs__item:focus-visible .g-tabs__item-title,.g-tabs_direction_horizontal .g-tabs__item:hover .g-tabs__item-title,.g-tabs_direction_horizontal .g-tabs__item_active .g-tabs__item-title{color:var(--g-color-text-primary)}.g-tabs_direction_horizontal .g-tabs__item:focus-visible .g-tabs__item-counter,.g-tabs_direction_horizontal .g-tabs__item:focus-visible .g-tabs__item-icon,.g-tabs_direction_horizontal .g-tabs__item:hover .g-tabs__item-counter,.g-tabs_direction_horizontal .g-tabs__item:hover .g-tabs__item-icon,.g-tabs_direction_horizontal .g-tabs__item_active .g-tabs__item-counter,.g-tabs_direction_horizontal .g-tabs__item_active .g-tabs__item-icon{color:var(--g-color-text-secondary)}.g-tabs_direction_horizontal .g-tabs__item_active,.g-tabs_direction_horizontal .g-tabs__item_active:focus-visible,.g-tabs_direction_horizontal .g-tabs__item_active:hover{border-color:var(--g-color-line-brand)}.g-tabs_direction_horizontal .g-tabs__item_disabled{pointer-events:none}.g-tabs_direction_horizontal .g-tabs__item_disabled .g-tabs__item-title{color:var(--g-color-text-hint)}.g-tabs_direction_horizontal>:not(:last-child){margin-inline-end:var(--g-tabs-item-gap,var(--_--item-gap))}.g-tabs_direction_vertical{display:flex;flex-direction:column}.g-tabs_direction_vertical .g-tabs__item{padding:var(--_--vertical-item-padding)}.g-tabs_direction_vertical .g-tabs__item-title{color:var(--g-color-text-primary);line-height:var(--_--vertical-item-height)}.g-tabs_direction_vertical .g-tabs__item-meta{color:var(--g-color-text-secondary);line-height:var(--_--vertical-item-height)}.g-tabs_direction_vertical .g-tabs__item-counter,.g-tabs_direction_vertical .g-tabs__item-icon{color:var(--g-color-text-secondary)}.g-tabs_direction_vertical .g-tabs__item:focus-visible,.g-tabs_direction_vertical .g-tabs__item:hover{background-color:var(--g-color-base-generic-hover)}.g-tabs_direction_vertical .g-tabs__item_active{background-color:var(--g-color-base-selection)}.g-tabs_direction_vertical .g-tabs__item_active:focus-visible,.g-tabs_direction_vertical .g-tabs__item_active:hover{background-color:var(--g-color-base-selection-hover)}.g-tabs_direction_vertical .g-tabs__item_disabled{pointer-events:none}.g-tabs_direction_vertical .g-tabs__item_disabled .g-tabs__item-title{color:var(--g-color-text-secondary)}.g-outer-additional-content{display:flex;justify-content:space-between;vertical-align:top}.g-outer-additional-content__error,.g-outer-additional-content__note{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height);margin-block-start:2px}.g-outer-additional-content__error{color:var(--g-color-text-danger)}.g-outer-additional-content__error:not(:last-child){margin-inline-end:var(--g-spacing-2)}.g-outer-additional-content__note{margin-inline-start:auto}.g-text-input{--_--text-color:var(--g-color-text-primary);--_--label-color:inherit;--_--placeholder-color:var(--g-color-text-hint);--_--background-color:#0000;--_--border-width:1px;--_--focus-outline-color:var(--g-text-input-focus-outline-color);display:inline-block;position:relative;width:100%}.g-text-input__content{background-color:var(--g-text-input-background-color,var(--_--background-color));border-color:var(--g-text-input-border-color,var(--_--border-color));border-style:solid;border-width:var(--g-text-input-border-width,var(--_--border-width));box-sizing:border-box;color:var(--g-text-input-text-color,var(--_--text-color));display:flex;overflow:hidden;width:100%}.g-text-input__content:hover{border-color:var(--g-text-input-border-color-hover,var(--_--border-color-hover))}.g-text-input__content:focus-within{border-color:var(--g-text-input-border-color-active,var(--_--border-color-active));outline:2px solid var(--g-text-input-focus-outline-color,var(--_--focus-outline-color));outline-offset:-1px}.g-text-input__control{background-color:initial;border:none;box-sizing:border-box;color:inherit;display:inline-block;flex-grow:1;font-family:var(--g-text-body-font-family);font-weight:var(--g-text-body-font-weight);height:var(--g-text-input-height);margin:0;padding:0;position:relative;vertical-align:top;width:100%}.g-text-input__control::placeholder{color:var(--g-text-input-placeholder-color,var(--_--placeholder-color));overflow:hidden;white-space:nowrap}.g-text-input__control:focus{outline:none}.g-text-input__control[type=number]{appearance:textfield}.g-text-input__label{box-sizing:border-box;color:var(--g-text-input-label-color,var(--_--label-color));overflow:hidden;position:absolute;text-overflow:ellipsis;white-space:nowrap;z-index:1}.g-text-input__clear{flex-shrink:0;margin:auto 0}.g-text-input__clear_size_m,.g-text-input__clear_size_s{margin-inline-end:1px}.g-text-input__clear_size_l,.g-text-input__clear_size_xl{margin-inline-end:2px}.g-text-input__error-icon{box-sizing:initial;color:var(--g-color-text-danger);padding-block:var(--_--error-icon-padding-block);padding-inline:var(--_--error-icon-padding-inline)}.g-text-input__additional-content{align-items:center;display:flex}.g-text-input_size_s{--_--error-icon-padding-block:5px;--_--error-icon-padding-inline:0 5px;--_--border-radius:var(--g-border-radius-s)}.g-text-input_size_s .g-text-input__control{--_--input-control-border-width:var( + --g-text-input-border-width,var(--g-text-area-border-width,1px) + );height:calc(24px - var(--_--input-control-border-width)*2);padding:3px 8px}.g-text-input_size_s .g-text-input__control,.g-text-input_size_s .g-text-input__label{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-short-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-short-line-height)}.g-text-input_size_s .g-text-input__label{font-weight:var(--g-text-accent-font-weight);padding-block:3px;padding-inline:8px 4px}.g-text-input_size_s.g-text-input_has-start-content .g-text-input__label{padding-inline-start:2px}.g-text-input_size_s .g-text-input__additional-content{height:22px}.g-text-input_size_s .g-text-input__additional-content_placement_start{padding-inline-start:1px}.g-text-input_size_s .g-text-input__additional-content_placement_end{padding-inline-end:1px}.g-text-input_size_m{--_--error-icon-padding-block:5px;--_--error-icon-padding-inline:0 5px;--_--border-radius:var(--g-border-radius-m)}.g-text-input_size_m .g-text-input__control{--_--input-control-border-width:var( + --g-text-input-border-width,var(--g-text-area-border-width,1px) + );height:calc(28px - var(--_--input-control-border-width)*2);padding:5px 8px}.g-text-input_size_m .g-text-input__control,.g-text-input_size_m .g-text-input__label{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-short-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-short-line-height)}.g-text-input_size_m .g-text-input__label{font-weight:var(--g-text-accent-font-weight);padding-block:5px;padding-inline:8px 4px}.g-text-input_size_m.g-text-input_has-start-content .g-text-input__label{padding-inline-start:2px}.g-text-input_size_m .g-text-input__additional-content{height:26px}.g-text-input_size_m .g-text-input__additional-content_placement_start{padding-inline-start:1px}.g-text-input_size_m .g-text-input__additional-content_placement_end{padding-inline-end:1px}.g-text-input_size_l{--_--error-icon-padding-block:9px;--_--error-icon-padding-inline:0 9px;--_--border-radius:var(--g-border-radius-l)}.g-text-input_size_l .g-text-input__control{--_--input-control-border-width:var( + --g-text-input-border-width,var(--g-text-area-border-width,1px) + );height:calc(36px - var(--_--input-control-border-width)*2);padding:9px 12px}.g-text-input_size_l .g-text-input__control,.g-text-input_size_l .g-text-input__label{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-short-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-short-line-height)}.g-text-input_size_l .g-text-input__label{font-weight:var(--g-text-accent-font-weight);padding-block:9px;padding-inline:12px 4px}.g-text-input_size_l.g-text-input_has-start-content .g-text-input__label{padding-inline-start:3px}.g-text-input_size_l .g-text-input__additional-content{height:34px}.g-text-input_size_l .g-text-input__additional-content_placement_start{padding-inline-start:3px}.g-text-input_size_l .g-text-input__additional-content_placement_end{padding-inline-end:3px}.g-text-input_size_xl{--_--error-icon-padding-block:13px;--_--error-icon-padding-inline:0 13px;--_--border-radius:var(--g-border-radius-xl)}.g-text-input_size_xl .g-text-input__control{--_--input-control-border-width:var( + --g-text-input-border-width,var(--g-text-area-border-width,1px) + );height:calc(44px - var(--_--input-control-border-width)*2);padding:11px 12px}.g-text-input_size_xl .g-text-input__control,.g-text-input_size_xl .g-text-input__label{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-2-line-height)}.g-text-input_size_xl .g-text-input__label{font-weight:var(--g-text-accent-font-weight);padding-block:11px;padding-inline:12px 4px}.g-text-input_size_xl.g-text-input_has-start-content .g-text-input__label{padding-inline-start:3px}.g-text-input_size_xl .g-text-input__additional-content{height:42px}.g-text-input_size_xl .g-text-input__additional-content_placement_start{padding-inline-start:3px}.g-text-input_size_xl .g-text-input__additional-content_placement_end{padding-inline-end:3px}.g-text-input_view_normal{--_--border-color:var(--g-color-line-generic);--_--border-color-hover:var(--g-color-line-generic-hover);--_--border-color-active:var(--g-color-line-generic-active)}.g-text-input_view_clear{--_--border-color:#0000;--_--border-color-hover:#0000;--_--border-color-active:#0000;--_--border-radius:0}.g-text-input_view_clear .g-text-input__content{border-inline:0}.g-text-input_view_clear .g-text-input__control{padding-inline:0}.g-text-input.g-text-input_pin_round-round .g-text-input__content{border-radius:var(--g-text-input-border-radius,var(--_--border-radius))}.g-text-input.g-text-input_pin_brick-brick .g-text-input__content{border-radius:0}.g-text-input.g-text-input_pin_clear-clear .g-text-input__content{border-inline:0;border-radius:0}.g-text-input.g-text-input_pin_circle-circle .g-text-input__content{border-radius:100px}.g-text-input.g-text-input_pin_round-brick .g-text-input__content{border-end-end-radius:0;border-end-start-radius:var(--g-text-input-border-radius,var(--_--border-radius));border-start-end-radius:0;border-start-start-radius:var(--g-text-input-border-radius,var(--_--border-radius))}.g-text-input.g-text-input_pin_brick-round .g-text-input__content{border-end-end-radius:var(--g-text-input-border-radius,var(--_--border-radius));border-end-start-radius:0;border-start-end-radius:var(--g-text-input-border-radius,var(--_--border-radius));border-start-start-radius:0}.g-text-input.g-text-input_pin_round-clear .g-text-input__content{border-end-end-radius:0;border-end-start-radius:var(--g-text-input-border-radius,var(--_--border-radius));border-inline-end:0;border-start-end-radius:0;border-start-start-radius:var(--g-text-input-border-radius,var(--_--border-radius))}.g-text-input.g-text-input_pin_clear-round .g-text-input__content{border-end-end-radius:var(--g-text-input-border-radius,var(--_--border-radius));border-end-start-radius:0;border-inline-start:0;border-start-end-radius:var(--g-text-input-border-radius,var(--_--border-radius));border-start-start-radius:0}.g-text-input.g-text-input_pin_brick-clear .g-text-input__content{border-inline-end:0;border-radius:0}.g-text-input.g-text-input_pin_clear-brick .g-text-input__content{border-inline-start:0;border-radius:0}.g-text-input.g-text-input_pin_circle-brick .g-text-input__content{border-end-end-radius:0;border-end-start-radius:100px;border-start-end-radius:0;border-start-start-radius:100px}.g-text-input.g-text-input_pin_brick-circle .g-text-input__content{border-end-end-radius:100px;border-end-start-radius:0;border-start-end-radius:100px;border-start-start-radius:0}.g-text-input.g-text-input_pin_circle-clear .g-text-input__content{border-end-end-radius:0;border-end-start-radius:100px;border-inline-end:0;border-start-end-radius:0;border-start-start-radius:100px}.g-text-input.g-text-input_pin_clear-circle .g-text-input__content{border-end-end-radius:100px;border-end-start-radius:0;border-inline-start:0;border-start-end-radius:100px;border-start-start-radius:0}.g-text-input_disabled{--_--text-color:var(--g-color-text-hint);--_--background-color:var(--g-color-base-generic-accent-disabled);--_--border-color:#0000;--_--border-color-hover:#0000;--_--border-color-active:#0000}.g-text-input_has-scrollbar .g-text-input__clear{inset-inline-end:var(--g-scrollbar-width)}.g-text-input_has-start-content .g-text-input__control{padding-inline-start:2px}.g-text-input_has-end-content .g-text-input__control{padding-inline-end:2px}.g-text-input_has-unstable-end-content{--_--error-icon-padding-inline:0}.g-text-input_state_error.g-text-input_view_normal .g-text-input__content,.g-text-input_state_error.g-text-input_view_normal .g-text-input__content:focus-within,.g-text-input_state_error.g-text-input_view_normal .g-text-input__content:hover{border-color:var(--g-color-line-danger)}.g-text-input_state_error.g-text-input_view_normal .g-text-input__content:focus-within{--_--focus-outline-color:var(--g-color-line-danger)}.g-text-input_state_error.g-text-input_view_clear .g-text-input__content,.g-text-input_state_error.g-text-input_view_clear .g-text-input__content:focus-within,.g-text-input_state_error.g-text-input_view_clear .g-text-input__content:hover{border-block-end:1px solid var(--g-color-line-danger)}.g-text-input_state_error.g-text-input_view_clear .g-text-input__content:focus-within{--_--focus-outline-color:var(--g-color-line-danger)}.g-clear-button{--g-button-text-color:var(--g-color-text-hint);--g-button-text-color-hover:var(--g-color-text-primary);--g-button-background-color:#0000;--g-button-background-color-hover:#0000}@keyframes g-pulse{50%{opacity:15%}}.g-loader{align-items:center;display:inline-flex}.g-loader__center,.g-loader__left,.g-loader__right{animation:g-pulse .8s ease infinite;background:var(--g-color-base-brand)}.g-loader__left{animation-delay:.2s}.g-loader__center{animation-delay:.4s}.g-loader__right{animation-delay:.6s}.g-loader_size_s .g-loader__left{height:13.33333px;width:5px}.g-loader_size_s .g-loader__center{height:20px;margin-inline-start:5px;width:5px}.g-loader_size_s .g-loader__right{height:13.33333px;margin-inline-start:5px;width:5px}.g-loader_size_m .g-loader__left{height:18.66667px;width:7px}.g-loader_size_m .g-loader__center{height:28px;margin-inline-start:7px;width:7px}.g-loader_size_m .g-loader__right{height:18.66667px;margin-inline-start:7px;width:7px}.g-loader_size_l .g-loader__left{height:24px;width:9px}.g-loader_size_l .g-loader__center{height:36px;margin-inline-start:9px;width:9px}.g-loader_size_l .g-loader__right{height:24px;margin-inline-start:9px;width:9px}.kv-ydb-internal-user{align-items:center;display:flex;flex-grow:1;justify-content:space-between;line-height:var(--g-text-body-2-line-height);margin-left:16px}.kv-ydb-internal-user__user-info-wrapper{display:flex;flex-direction:column}.kv-ydb-internal-user__ydb-internal-user-title{font-weight:500}.kv-ydb-internal-user__ydb-user-wrapper{padding:10px;width:300px}.ydb-link-with-icon{align-items:center;display:inline-flex;flex-wrap:nowrap;white-space:nowrap}.ydb-node-endpoints-tooltip-content .info-viewer__value{min-width:70px}.ydb-node-endpoints-tooltip-content__list-container{padding-right:20px}.ydb-node-endpoints-tooltip-content__definition{text-align:right;word-break:break-word}.info-viewer{--ydb-info-viewer-font-size:var(--g-text-body-2-font-size);--ydb-info-viewer-line-height:var(--g-text-body-2-line-height);--ydb-info-viewer-title-font-weight:600;--ydb-info-viewer-title-margin:15px 0 10px;--ydb-info-viewer-items-gap:7px;font-size:var(--ydb-info-viewer-font-size);line-height:var(--ydb-info-viewer-line-height)}.info-viewer__title{font-weight:var(--ydb-info-viewer-title-font-weight);margin:var(--ydb-info-viewer-title-margin)}.info-viewer__items{display:flex;flex-direction:column;gap:var(--ydb-info-viewer-items-gap);max-width:100%}.info-viewer__row{align-items:baseline;display:flex;max-width:100%;padding-top:4px}.info-viewer__label{align-items:baseline;color:var(--g-color-text-secondary);display:flex;flex:0 1 auto;min-width:200px;white-space:nowrap}.info-viewer__label-text_multiline{max-width:180px;overflow:visible;white-space:normal}.info-viewer__dots{border-bottom:1px dotted var(--g-color-text-secondary);display:flex;flex:1 1 auto;margin:0 2px}.info-viewer__value{display:flex;min-width:130px;word-break:break-all}.info-viewer_size_s{--ydb-info-viewer-font-size:var(--g-text-body-1-font-size);--ydb-info-viewer-line-height:var(--g-text-body-1-line-height);--ydb-info-viewer-title-font-weight:500;--ydb-info-viewer-title-margin:0 0 4px;--ydb-info-viewer-items-gap:4px}.info-viewer_size_s .info-viewer__row{height:auto}.info-viewer_size_s .info-viewer__label{min-width:85px}.ydb-cell-with-popover{display:inline-flex;max-width:100%}.ydb-cell-with-popover_full-width{display:flex}.ydb-cell-with-popover__popover{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;white-space:nowrap}.ydb-cell-with-popover__popover .g-popover__handler{display:inline}.ydb-cell-with-popover__popover_full-width{width:100%}.popup2{animation:none!important;max-width:300px}.histogram-tooltip,.node-tootltip{padding:10px}.histogram-tooltip__label,.node-tootltip__label{color:var(--g-color-text-secondary);padding-right:15px}.cell-tooltip{padding:10px;word-break:break-word}.empty-state{padding:20px}.empty-state_size_m{height:400px}.empty-state__wrapper{display:grid;grid-template-areas:"image title" "image description" "image actions"}.empty-state__wrapper_size_s{height:120px;width:460px}.empty-state__wrapper_size_m{height:240px;width:800px}.empty-state__wrapper_position_center{margin:0 auto;position:relative}.empty-state__image{color:var(--g-color-base-info-light-hover);grid-area:image;justify-self:end;margin-right:60px}.g-root_theme_dark .empty-state__image{color:var(--g-color-base-generic)}.empty-state__title{align-self:center;font-weight:500;grid-area:title}.empty-state__title_size_s{font-size:var(--g-text-subheader-3-font-size);line-height:var(--g-text-subheader-3-line-height)}.empty-state__title_size_m{font-size:var(--g-text-header-2-font-size);line-height:var(--g-text-header-2-line-height)}.empty-state__description{font-size:var(--g-text-body-2-font-size);grid-area:description;line-height:var(--g-text-body-2-line-height)}.empty-state__actions{grid-area:actions}.empty-state__actions>*{margin-right:8px}.ydb-loader{flex:1 1 auto}.authentication,.ydb-loader{align-items:center;display:flex;height:100%;justify-content:center}.authentication{background-blend-mode:normal;background-color:#b8d4fd1a;background-image:radial-gradient(at 0 100%,#0066ff26 20%,#f7f7f700 40%),radial-gradient(at 55% 0,#0066ff26 20%,#f7f7f700 40%),radial-gradient(at 110% 100%,#0066ff26 20%,#f7f7f700 40%)}.authentication .g-text-input{display:flex}.authentication__header{align-items:center;display:flex;font-size:var(--g-text-body-1-font-size);justify-content:space-between;line-height:var(--g-text-header-1-line-height);width:100%}.authentication__logo{align-items:center;display:flex;font-size:16px;font-weight:600;gap:8px}.authentication__title{font-size:var(--g-text-header-2-font-size);font-weight:600;line-height:var(--g-text-header-2-line-height);margin:34px 0 16px}.authentication__form-wrapper{align-items:center;background-color:var(--g-color-base-background);border-radius:16px;display:flex;flex-direction:column;flex-shrink:0;justify-content:center;min-width:320px;padding:40px;width:400px}.authentication__field-wrapper{align-items:flex-start;display:flex;justify-content:space-between;margin-bottom:16px;width:320px}.authentication__field-wrapper .g-text-input_state_error{flex-direction:column}.authentication__button-sign-in{display:inline-flex;justify-content:center}.authentication__show-password-button{margin-left:4px}.authentication__close{position:absolute;right:40px;top:40px}.ydb-connect-to-db__dialog-tabs,.ydb-connect-to-db__docs{margin-top:var(--g-spacing-4)}.ydb-connect-to-db__snippet-container{height:270px}.g-dialog-btn-close{inset-block-start:14px;inset-inline-end:14px;position:absolute;z-index:1}.g-dialog-body{flex:1 1 auto;overflow-y:auto;padding:10px var(--_--side-padding)}.g-dialog-body_has-borders{border-block-end:1px solid var(--g-color-line-generic)}.g-dialog-body_has-borders,.g-dialog-divider{border-block-start:1px solid var(--g-color-line-generic)}.g-dialog-divider{margin:0 calc(var(--_--side-padding)*-1)}.g-dialog-footer{align-items:center;display:flex;padding:28px var(--_--side-padding)}.g-dialog-footer__bts-wrapper{display:flex;gap:10px}.g-dialog-footer__children{align-items:center;display:flex;flex-grow:1;height:100%}.g-dialog-footer__button{min-width:128px;position:relative}.g-dialog-footer__error{color:var(--g-color-text-danger);padding:10px}.g-dialog-header{align-items:center;color:var(--g-color-text-primary);display:flex;justify-content:flex-start;line-height:24px;padding-block:20px 10px;padding-inline:var(--_--side-padding) calc(var(--_--side-padding) + var(--_--close-button-space)*var(--g-flow-is-ltr) + var(--_--close-button-space)*var(--g-flow-is-rtl))}.g-dialog-header__caption{font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-3-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-3-line-height)}.g-dialog{--_--side-padding:32px;--_--close-button-space:0px;display:flex;flex-direction:column;position:relative;width:var(--g-dialog-width,var(--_--width))}.g-dialog_has-scroll{max-height:calc(100vh - var(--g-modal-margin, 20px)*2);overflow-y:auto}.g-dialog_size_s{--_--width:480px}.g-dialog_size_m{--_--width:720px}.g-dialog_size_l{--_--width:900px}.g-dialog_has-close{--_--close-button-space:24px}.g-modal{-webkit-overflow-scrolling:touch;-webkit-tap-highlight-color:rgba(0,0,0,0);background-color:var(--g-color-sfx-veil);display:none;inset:0;margin:-9999px 0 0 -9999px;overflow:auto;position:fixed;visibility:hidden;z-index:1000}.g-modal__content-aligner{align-items:center;display:inline-flex;justify-content:center;min-height:100%;min-width:100%}.g-modal__content-wrapper{margin:var(--g-modal-margin,20px);overflow-x:hidden}.g-modal__content,.g-modal__content-wrapper{border-radius:var(--g-modal-border-radius,5px)}.g-modal__content{background-color:var(--g-color-base-modal)}.g-modal__content_has-scroll{max-height:calc(100vh - var(--g-modal-margin, 20px)*2);overflow-y:auto}.g-modal,.g-modal__content{animation-fill-mode:forwards;animation-timing-function:ease-out;outline:none}.g-modal_exit_active,.g-modal_open{display:block;margin:0;visibility:visible}.g-modal_appear_active,.g-modal_enter_active{animation-duration:.15s;animation-name:g-modal-open}.g-modal_appear_active .g-modal__content,.g-modal_enter_active .g-modal__content{animation-duration:.15s;animation-name:g-modal-content-open}.g-modal_exit_active{animation-duration:.2s;animation-name:g-modal}@keyframes g-modal{0%{opacity:1}to{opacity:0}}@keyframes g-modal-open{0%{opacity:0}to{opacity:1}}@keyframes g-modal-content-open{0%{transform:scale(.75)}to{transform:scale(1)}}.tablet-icon{border:1px solid;border-radius:4px;display:flex;font-size:10px;height:16px;justify-content:center;text-transform:uppercase;width:23px}.tablet-icon__type{line-height:14px}.header{align-items:center;border-bottom:1px solid var(--g-color-line-generic);display:flex;flex:0 0 40px;justify-content:space-between;padding:0 20px 0 12px}.header__breadcrumbs-item{color:var(--g-color-text-secondary);display:flex;gap:3px}.header__breadcrumbs-item_link:hover{color:var(--g-color-text-complementary)}.header__breadcrumbs-item_active{color:var(--g-color-text-primary)}.header__breadcrumbs-icon{align-items:center;display:flex}.g-divider{--_--content-gap:8px;--_--size:1px}.g-divider:not(:empty){align-items:center;border:none;display:flex}.g-divider:not(:empty):after,.g-divider:not(:empty):before{content:""}.g-divider:after,.g-divider:before{background:var(--g-divider-color,var(--g-color-line-generic));flex-grow:1}.g-divider_orientation_vertical{border-inline-start:1px solid var(--g-divider-color,var(--g-color-line-generic));flex-direction:column}.g-divider_orientation_vertical:after,.g-divider_orientation_vertical:before{width:var(--_--size)}.g-divider_orientation_vertical:before{margin-block-end:var(--_--content-gap)}.g-divider_orientation_vertical:after{margin-block-start:var(--_--content-gap)}.g-divider_orientation_horizontal{border-block-start:1px solid var(--g-divider-color,var(--g-color-line-generic))}.g-divider_orientation_horizontal:after,.g-divider_orientation_horizontal:before{height:var(--_--size)}.g-divider_orientation_horizontal:before{margin-inline-end:var(--_--content-gap)}.g-divider_orientation_horizontal:after{margin-inline-start:var(--_--content-gap)}.g-divider_align_end:after,.g-divider_align_start:before{display:none}.g-menu{background-color:var(--g-color-base-float);box-sizing:border-box;color:var(--g-color-text-primary);display:block;font-size:var(--g-text-body-1-font-size);list-style:none;margin:0;outline:none;overflow:hidden auto;padding:0;-webkit-user-select:none;user-select:none}.g-menu__list-group-item+.g-menu__list-group-item,.g-menu__list-group-item+.g-menu__list-item,.g-menu__list-item+.g-menu__list-group-item{border-block-start:1px solid var(--g-color-line-generic)}.g-menu__item{-webkit-tap-highlight-color:rgba(0,0,0,0);align-items:center;color:var(--g-color-text-primary);display:flex;outline:none;text-decoration:none;touch-action:manipulation}.g-menu__item-icon{display:flex}.g-menu__item-icon-end{display:flex;margin-inline-end:0}.g-menu__item-content{flex-grow:1;min-width:0}.g-menu__item_interactive{cursor:pointer}.g-menu__item_interactive:focus-visible,.g-menu__item_interactive:hover,.g-menu__item_selected{background-color:var(--g-color-base-simple-hover)}.g-menu__item_disabled{color:var(--g-color-text-secondary);cursor:default;pointer-events:none}.g-menu__item_disabled:hover{background-color:initial}.g-menu__item_active{background-color:var(--g-color-base-selection);cursor:default}.g-menu__item_active:focus-visible,.g-menu__item_active:hover{background-color:var(--g-color-base-selection-hover)}.g-menu__item_theme_danger:not(.g-menu__item_disabled){color:var(--g-color-text-danger)}.g-menu__group-label{color:var(--g-color-text-hint);font-weight:var(--g-text-accent-font-weight)}.g-menu__group-list{list-style:none;margin:0;padding:0}.g-menu_size_s{line-height:24px;padding:3px 0}.g-menu_size_s .g-menu__group-label,.g-menu_size_s .g-menu__item{padding:0 10px}.g-menu_size_s .g-menu__item-icon{margin-inline-end:3px}.g-menu_size_s .g-menu__item-icon-end{margin-inline-start:3px}.g-menu_size_s .g-menu__list-group-item+.g-menu__list-group-item,.g-menu_size_s .g-menu__list-group-item+.g-menu__list-item,.g-menu_size_s .g-menu__list-item+.g-menu__list-group-item{margin-block-start:3px;padding-block-start:3px}.g-menu_size_m{line-height:24px;padding:4px 0}.g-menu_size_m .g-menu__group-label,.g-menu_size_m .g-menu__item{padding:0 13px}.g-menu_size_m .g-menu__item-icon{margin-inline-end:4px}.g-menu_size_m .g-menu__item-icon-end{margin-inline-start:4px}.g-menu_size_m .g-menu__list-group-item+.g-menu__list-group-item,.g-menu_size_m .g-menu__list-group-item+.g-menu__list-item,.g-menu_size_m .g-menu__list-item+.g-menu__list-group-item{margin-block-start:4px;padding-block-start:4px}.g-menu_size_l{line-height:28px;padding:5px 0}.g-menu_size_l .g-menu__group-label,.g-menu_size_l .g-menu__item{padding:0 15px}.g-menu_size_l .g-menu__item-icon{margin-inline-end:5px}.g-menu_size_l .g-menu__item-icon-end{margin-inline-start:5px}.g-menu_size_l .g-menu__list-group-item+.g-menu__list-group-item,.g-menu_size_l .g-menu__list-group-item+.g-menu__list-item,.g-menu_size_l .g-menu__list-item+.g-menu__list-group-item{margin-block-start:5px;padding-block-start:5px}.g-menu_size_xl{font-size:var(--g-text-body-2-font-size);line-height:36px;padding:6px 0}.g-menu_size_xl .g-menu__group-label,.g-menu_size_xl .g-menu__item{padding:0 15px}.g-menu_size_xl .g-menu__item-icon{margin-inline-end:6px}.g-menu_size_xl .g-menu__item-icon-end{margin-inline-start:6px}.g-menu_size_xl .g-menu__list-group-item:not(:first-child){margin-block-start:6px;padding-block-start:6px}.g-menu_size_xl .g-menu__list-group-item:not(:last-child){margin-block-end:6px;padding-block-end:6px}.g-dropdown-menu__switcher-wrapper{display:inline-block}.g-dropdown-menu__switcher-button{display:flex}.g-dropdown-menu__menu-item_separator{border-block-start:1px solid var(--g-color-line-generic-solid);margin:.5em 0;pointer-events:none}.g-dropdown-menu__sub-menu-arrow{inset-inline-end:-4px;position:relative}.g-dropdown-menu__sub-menu{position:relative}.g-dropdown-menu__sub-menu .g-dropdown-menu__menu:after,.g-dropdown-menu__sub-menu .g-dropdown-menu__menu:before{content:"";height:100%;inset-block-start:0;position:absolute;width:10px}.g-dropdown-menu__sub-menu .g-dropdown-menu__menu:before{inset-inline-start:-10px}.g-dropdown-menu__sub-menu .g-dropdown-menu__menu:after{inset-inline-end:-10px}.g-breadcrumbs__inner{align-items:center;display:inline-flex;gap:4px;min-height:24px;overflow:hidden;width:100%}.g-breadcrumbs__switcher{background:none;border:none;color:inherit;color:var(--g-color-text-secondary);cursor:pointer;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);outline:none;padding:0}.g-breadcrumbs__switcher:focus-visible{outline:2px solid var(--g-color-line-focus)}.g-breadcrumbs__item,.g-breadcrumbs__switcher{display:inline-block;flex-shrink:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.g-breadcrumbs__item:focus-visible,.g-breadcrumbs__switcher:focus-visible{border-radius:var(--g-focus-border-radius);outline:2px solid var(--g-color-line-focus)}.g-breadcrumbs_calculated_no .g-breadcrumbs__item{overflow:visible}.g-breadcrumbs__divider{align-items:center;color:var(--g-color-text-secondary);display:flex}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item .g-menu__item{padding-inline-start:80px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(0) .g-menu__item{padding-inline-start:0!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:first-child .g-menu__item{padding-inline-start:8px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(2) .g-menu__item{padding-inline-start:16px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(3) .g-menu__item{padding-inline-start:24px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(4) .g-menu__item{padding-inline-start:32px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(5) .g-menu__item{padding-inline-start:40px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(6) .g-menu__item{padding-inline-start:48px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(7) .g-menu__item{padding-inline-start:56px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(8) .g-menu__item{padding-inline-start:64px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(9) .g-menu__item{padding-inline-start:72px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(10) .g-menu__item{padding-inline-start:80px!important}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}*{font-feature-settings:"tnum";box-sizing:border-box;font-variant-numeric:tabular-nums}.g-select-popup__tick-icon{box-sizing:initial}#root,body,html{box-sizing:border-box;height:100%;margin:0;overflow:auto;padding:0}:root{--g-color-base-yellow-light:#ffc70026;--g-color-base-yellow-medium:#ffdb4d66;--tenant-object-info-max-value-width:300px;--diagnostics-section-title-margin:20px;--diagnostics-section-margin:30px;--diagnostics-section-table-width:872px}.g-root{--ydb-data-table-color-hover:var(--g-color-base-simple-hover-solid);--ydb-color-status-grey:var(--g-color-base-neutral-heavy);--ydb-color-status-green:var(--g-color-base-positive-heavy);--ydb-color-status-yellow:var(--g-color-base-warning-heavy);--ydb-color-status-orange:var(--g-color-private-orange-500-solid);--ydb-color-status-red:var(--g-color-base-danger-heavy);--ydb-color-status-blue:var(--g-color-base-info-heavy);--ydb-color-status-black:var(--g-color-base-misc-heavy);--g-popover-max-width:500px}.g-root_theme_light,.g-root_theme_light-hc{--code-background-color:var(--g-color-base-simple-hover)}.g-root_theme_dark,.g-root_theme_dark-hc{--code-background-color:#1e1e1e}:is(#tab,.g-tabs-item_active .g-tabs-item__title){color:var(--g-color-text-primary)!important}:is(#tab,.g-tabs-item__title){color:var(--g-color-text-secondary)}.gn-aside-header__pane-container{height:100%}.gn-aside-header__content{display:flex;flex-direction:column;height:100%;overflow:auto;position:relative}.loader{align-items:center;display:flex;justify-content:center;left:50%;position:fixed;top:50%;z-index:99999999}.app{--data-table-row-height:40px;--data-table-cell-align:middle;--data-table-head-align:middle;display:flex;flex:1 1 auto;flex-direction:column;height:100%}.app .data-table{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.app .data-table__td,.app .data-table__th{border-left:unset;border-right:unset;border-top:unset;height:var(--data-table-row-height)}.app .data-table__th{font-weight:700}.app .data-table__table{border-collapse:initial;border-spacing:0}.app .data-table__box_sticky-head_moving .data-table__th{height:unset}.app__main{display:flex;flex:1 1 auto;flex-direction:column;overflow:auto}.error{color:var(--g-color-text-danger)}.g-root .data-table_highlight-rows .data-table__row:hover{background:var(--ydb-data-table-color-hover)}.g-table-column-setup__item{cursor:pointer!important;padding:0 8px 0 32px!important}.app_embedded{font-family:Rubik,sans-serif}.kv-navigation__internal-user{align-items:center;display:flex;justify-content:space-between;line-height:var(--g-text-body-2-line-height);margin-left:16px}.kv-navigation__user-info-wrapper{display:flex;flex-direction:column}.kv-navigation__ydb-internal-user-title{font-weight:500}.kv-navigation__ydb-user-wrapper{padding:10px;width:300px}.g-list{--_--item-padding:var(--g-list-item-padding,0);display:flex;flex:1 1 auto;flex-direction:column;outline:none;width:100%}.g-list__filter{flex:0 0 auto;margin-block-end:8px;padding:var(--_--item-padding)}.g-list__items{flex:1 1 auto}.g-list__empty-placeholder,.g-list__item{align-items:center;box-sizing:border-box;display:flex;overflow:hidden;padding:var(--_--item-padding);-webkit-user-select:none;user-select:none}.g-list__item_active{background:var(--g-color-base-simple-hover)}.g-list__item_selected{background:var(--g-color-base-selection)}.g-list__item_selected:hover{background:var(--g-color-base-selection-hover)}.g-list__item_sort-handle-align_right{flex-direction:row-reverse}.g-list__item_sort-handle-align_right .g-list__item-sort-icon{margin-inline:10px 0}.g-list__item_sortable[data-rbd-drag-handle-context-id]:active{cursor:grabbing}.g-list__item_dragging{background:var(--g-color-base-simple-hover-solid);z-index:100001}.g-list__empty-placeholder{box-sizing:border-box;color:var(--g-color-text-hint);min-height:36px;padding-block:8px}.g-list__item-content{align-items:center;display:flex;flex:1 1 auto;height:100%;overflow:hidden;text-overflow:ellipsis}.g-list__item-sort-icon{align-items:center;color:var(--g-color-text-hint);display:flex;flex:0 0 auto;margin-inline-end:4px;width:12px}.g-list__loading-indicator{align-items:center;display:flex;justify-content:center;width:100%}.extended-cluster{display:flex;height:100%}.extended-cluster__balancer{align-items:center;display:flex;flex-direction:row}.extended-cluster__clipboard-button{margin-left:5px}.g-toast{--_--item-gap:10px;--_--item-padding:16px;--_--background-color:var(--g-color-base-background);background-color:var(--_--background-color);border-radius:8px;box-shadow:0 0 15px var(--g-color-sfx-shadow);box-sizing:border-box;display:flex;font-size:var(--g-text-body-2-font-size);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));overflow:hidden;padding:var(--g-toaster-item-padding,var(--_--item-padding));position:relative;width:inherit;z-index:0}.g-toast_mobile{width:100%}.g-toast_theme_normal{--_--background-color:var(--g-color-base-float)}.g-toast_theme_info{--_--container-background-color:var(--g-color-base-info-light);--_--icon-color:var(--g-color-text-info-heavy)}.g-toast_theme_success{--_--container-background-color:var(--g-color-base-positive-light);--_--icon-color:var(--g-color-text-positive-heavy)}.g-toast_theme_warning{--_--container-background-color:var(--g-color-base-warning-light);--_--icon-color:var(--g-color-text-warning-heavy)}.g-toast_theme_danger{--_--container-background-color:var(--g-color-base-danger-light);--_--icon-color:var(--g-color-text-danger-heavy)}.g-toast_theme_utility{--_--container-background-color:var(--g-color-base-utility-light);--_--icon-color:var(--g-color-text-utility-heavy)}.g-toast__container{display:flex;flex:1 1 auto;flex-flow:column nowrap;min-height:var(--g-text-body-2-line-height);min-width:0}.g-toast__container:before{background-color:var(--_--container-background-color);content:"";height:100%;inset-block-start:0;inset-inline-start:0;pointer-events:none;position:absolute;width:100%;z-index:-1}.g-toast__icon-container{color:var(--_--icon-color);flex:0 0 auto;min-width:0;padding-block-start:2px;padding-inline-end:8px}.g-toast__title{font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-3-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-3-line-height);margin:0;padding-inline-end:32px}.g-toast__content{margin-block-start:var(--g-spacing-2)}.g-toast__content_without-title{margin-block-start:0;padding-inline-end:32px}.g-toast__actions{margin-block-start:var(--g-spacing-3)}.g-toast__action{margin-inline-end:8px}.g-toast .g-toast__btn-close{inset-block-start:16px;inset-inline-end:16px;position:absolute}.g-toast-animation-mobile_enter{opacity:0;position:absolute}.g-toast-animation-mobile_enter_active{animation:g-toast-enter-mobile .6s ease-out forwards;position:relative}.g-toast-animation-mobile_exit_active{animation:g-toast-exit-mobile .6s ease-in forwards}@keyframes g-toast-enter-mobile{0%{height:0;margin-block-end:0;opacity:0;padding:0;transform:translateY(10px)}50%{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:0;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateY(10px)}to{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:1;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateX(0)}}@keyframes g-toast-exit-mobile{0%{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:1;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateX(0)}50%{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:0;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateY(10px)}to{height:0;margin-block-end:0;opacity:0;padding:0;transform:translateY(10px)}}.g-toast-animation-desktop_enter{opacity:0;position:absolute}.g-toast-animation-desktop_enter_active{animation:g-toast-enter-desktop .6s ease-out forwards;position:relative}.g-toast-animation-desktop_exit_active{animation:g-toast-exit-desktop .6s ease-in forwards}@keyframes g-toast-enter-desktop{0%{height:0;margin-block-end:0;opacity:0;padding:0;transform:translateX(calc(var(--g-flow-direction)*10px))}50%{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:0;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateX(calc(var(--g-flow-direction)*10px))}to{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:1;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateX(0)}}@keyframes g-toast-exit-desktop{0%{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:1;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateX(0)}50%{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:0;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateX(calc(var(--g-flow-direction)*10px))}to{height:0;margin-block-end:0;opacity:0;padding:0;transform:translateX(calc(var(--g-flow-direction)*10px))}}.g-toaster{--_--width:312px;align-items:flex-end;display:flex;flex-direction:column;inset-block-end:0;inset-inline-end:10px;position:fixed;width:var(--g-toaster-width,var(--_--width));z-index:100000}.g-toaster_mobile{--_--width:calc(100% - 20px);inset-inline-start:50%;transform:translate(-50%)}.g-root{--g-font-family-sans:"Inter","Helvetica Neue","Helvetica","Arial",sans-serif;--g-font-family-monospace:"Menlo","Monaco","Consolas","Ubuntu Mono","Liberation Mono","DejaVu Sans Mono","Courier New","Courier",monospace;--g-text-body-font-family:var(--g-font-family-sans);--g-text-caption-font-family:var(--g-font-family-sans);--g-text-header-font-family:var(--g-font-family-sans);--g-text-subheader-font-family:var(--g-font-family-sans);--g-text-display-font-family:var(--g-font-family-sans);--g-text-code-font-family:var(--g-font-family-monospace);--g-text-body-font-weight:400;--g-text-caption-font-weight:400;--g-text-header-font-weight:600;--g-text-display-font-weight:600;--g-text-code-font-weight:400;--g-text-accent-font-weight:600;--g-text-body-1-font-size:13px;--g-text-body-1-line-height:18px;--g-text-body-2-font-size:15px;--g-text-body-2-line-height:20px;--g-text-body-3-font-size:17px;--g-text-body-3-line-height:24px;--g-text-body-short-font-size:13px;--g-text-body-short-line-height:16px;--g-text-caption-1-font-size:9px;--g-text-caption-1-line-height:12px;--g-text-caption-2-font-size:11px;--g-text-caption-2-line-height:16px;--g-text-header-1-font-size:20px;--g-text-header-1-line-height:24px;--g-text-header-2-font-size:24px;--g-text-header-2-line-height:28px;--g-text-subheader-1-font-size:13px;--g-text-subheader-1-line-height:18px;--g-text-subheader-2-font-size:15px;--g-text-subheader-2-line-height:20px;--g-text-subheader-3-font-size:17px;--g-text-subheader-3-line-height:24px;--g-text-display-1-font-size:28px;--g-text-display-1-line-height:36px;--g-text-display-2-font-size:32px;--g-text-display-2-line-height:40px;--g-text-display-3-font-size:40px;--g-text-display-3-line-height:48px;--g-text-display-4-font-size:48px;--g-text-display-4-line-height:52px;--g-text-code-1-font-size:12px;--g-text-code-1-line-height:18px;--g-text-code-2-font-size:14px;--g-text-code-2-line-height:20px;--g-text-code-3-font-size:16px;--g-text-code-3-line-height:24px;--g-text-code-inline-1-font-size:12px;--g-text-code-inline-1-line-height:14px;--g-text-code-inline-2-font-size:14px;--g-text-code-inline-2-line-height:16px;--g-text-code-inline-3-font-size:16px;--g-text-code-inline-3-line-height:20px;--g-spacing-base:4px;--g-spacing-0:calc(var(--g-spacing-base)*0);--g-spacing-half:calc(var(--g-spacing-base)*0.5);--g-spacing-1:var(--g-spacing-base);--g-spacing-2:calc(var(--g-spacing-base)*2);--g-spacing-3:calc(var(--g-spacing-base)*3);--g-spacing-4:calc(var(--g-spacing-base)*4);--g-spacing-5:calc(var(--g-spacing-base)*5);--g-spacing-6:calc(var(--g-spacing-base)*6);--g-spacing-7:calc(var(--g-spacing-base)*7);--g-spacing-8:calc(var(--g-spacing-base)*8);--g-spacing-9:calc(var(--g-spacing-base)*9);--g-spacing-10:calc(var(--g-spacing-base)*10);--g-scrollbar-width:12px;--g-border-radius-xs:3px;--g-border-radius-s:5px;--g-border-radius-m:6px;--g-border-radius-l:8px;--g-border-radius-xl:10px;--g-focus-border-radius:2px;background:var(--g-color-base-background);color:var(--g-color-text-primary);font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height)}.g-root[dir=ltr],body.g-root{--g-flow-direction:1;--g-flow-is-ltr:1;--g-flow-is-rtl:0}.g-root[dir=rtl]{--g-flow-direction:-1;--g-flow-is-ltr:0;--g-flow-is-rtl:1}.g-root_theme_light{--g-color-private-blue-50:#3697f11a;--g-color-private-blue-100:#3697f126;--g-color-private-blue-150:#3697f133;--g-color-private-blue-200:#3697f14d;--g-color-private-blue-250:#3697f166;--g-color-private-blue-300:#3697f180;--g-color-private-blue-350:#3697f199;--g-color-private-blue-400:#3697f1b3;--g-color-private-blue-450:#3697f1cc;--g-color-private-blue-500:#3697f1e6;--g-color-private-blue-50-solid:#ebf5fe;--g-color-private-blue-100-solid:#e1effd;--g-color-private-blue-150-solid:#d7eafc;--g-color-private-blue-200-solid:#c3e0fb;--g-color-private-blue-250-solid:#afd5f9;--g-color-private-blue-300-solid:#9bcbf8;--g-color-private-blue-350-solid:#86c1f7;--g-color-private-blue-400-solid:#72b6f5;--g-color-private-blue-450-solid:#5eacf4;--g-color-private-blue-500-solid:#4aa1f2;--g-color-private-blue-550-solid:#3697f1;--g-color-private-blue-600-solid:#348bdc;--g-color-private-blue-650-solid:#327fc8;--g-color-private-blue-700-solid:#3072b3;--g-color-private-blue-750-solid:#2e669e;--g-color-private-blue-800-solid:#2c5a8a;--g-color-private-blue-850-solid:#2a4e75;--g-color-private-blue-900-solid:#284260;--g-color-private-blue-950-solid:#26354b;--g-color-private-blue-1000-solid:#252f41;--g-color-private-green-50:#32ba761a;--g-color-private-green-100:#32ba7626;--g-color-private-green-150:#32ba7633;--g-color-private-green-200:#32ba764d;--g-color-private-green-250:#32ba7666;--g-color-private-green-300:#32ba7680;--g-color-private-green-350:#32ba7699;--g-color-private-green-400:#32ba76b3;--g-color-private-green-450:#32ba76cc;--g-color-private-green-500:#32ba76e6;--g-color-private-green-50-solid:#ebf8f1;--g-color-private-green-100-solid:#e0f5ea;--g-color-private-green-150-solid:#d6f1e4;--g-color-private-green-200-solid:#c2ead6;--g-color-private-green-250-solid:#ade3c8;--g-color-private-green-300-solid:#9db;--g-color-private-green-350-solid:#84d6ad;--g-color-private-green-400-solid:#70cf9f;--g-color-private-green-450-solid:#5bc891;--g-color-private-green-500-solid:#47c184;--g-color-private-green-550-solid:#32ba76;--g-color-private-green-600-solid:#30aa6e;--g-color-private-green-650-solid:#2f9b65;--g-color-private-green-700-solid:#2d8b5d;--g-color-private-green-750-solid:#2c7b54;--g-color-private-green-800-solid:#2a6c4c;--g-color-private-green-850-solid:#285c44;--g-color-private-green-900-solid:#274c3b;--g-color-private-green-950-solid:#253c33;--g-color-private-green-1000-solid:#24352f;--g-color-private-yellow-50:#ffbe5c1a;--g-color-private-yellow-100:#ffbe5c26;--g-color-private-yellow-150:#ffbe5c33;--g-color-private-yellow-200:#ffbe5c4d;--g-color-private-yellow-250:#ffbe5c66;--g-color-private-yellow-300:#ffbe5c80;--g-color-private-yellow-350:#ffbe5c99;--g-color-private-yellow-400:#ffbe5cb3;--g-color-private-yellow-450:#ffbe5ccc;--g-color-private-yellow-500:#ffbe5ce6;--g-color-private-yellow-50-solid:#fff9ef;--g-color-private-yellow-100-solid:#fff5e7;--g-color-private-yellow-150-solid:#fff2de;--g-color-private-yellow-200-solid:#ffecce;--g-color-private-yellow-250-solid:#ffe5be;--g-color-private-yellow-300-solid:#ffdfae;--g-color-private-yellow-350-solid:#ffd89d;--g-color-private-yellow-400-solid:#ffd28d;--g-color-private-yellow-450-solid:#ffcb7d;--g-color-private-yellow-500-solid:#ffc56c;--g-color-private-yellow-550-solid:#ffbe5c;--g-color-private-yellow-600-solid:#e9ae56;--g-color-private-yellow-650-solid:#d39e50;--g-color-private-yellow-700-solid:#bd8e4b;--g-color-private-yellow-750-solid:#a77e45;--g-color-private-yellow-800-solid:#916e3f;--g-color-private-yellow-850-solid:#7a5d39;--g-color-private-yellow-900-solid:#644d33;--g-color-private-yellow-950-solid:#4e3d2e;--g-color-private-yellow-1000-solid:#43352b;--g-color-private-orange-400-solid:#ffa04d;--g-color-private-orange-500-solid:#ff8519;--g-color-private-orange-600-solid:#e96e03;--g-color-private-orange-650-solid:#d36507;--g-color-private-orange-700-solid:#bd5c0a;--g-color-private-orange-750-solid:#a7530e;--g-color-private-orange-800-solid:#914a11;--g-color-private-orange-850-solid:#7a4114;--g-color-private-orange-900-solid:#643818;--g-color-private-orange-950-solid:#4e2f1b;--g-color-private-orange-1000-solid:#432b1d;--g-color-private-red-50:#ff003d1a;--g-color-private-red-100:#ff003d26;--g-color-private-red-150:#ff003d33;--g-color-private-red-200:#ff003d4d;--g-color-private-red-250:#ff003d66;--g-color-private-red-300:#ff003d80;--g-color-private-red-350:#ff003d99;--g-color-private-red-400:#ff003db3;--g-color-private-red-450:#ff003dcc;--g-color-private-red-500:#ff003de6;--g-color-private-red-50-solid:#ffe6ec;--g-color-private-red-100-solid:#ffd9e2;--g-color-private-red-150-solid:#ffccd8;--g-color-private-red-200-solid:#ffb3c5;--g-color-private-red-250-solid:#ff99b1;--g-color-private-red-300-solid:#ff809e;--g-color-private-red-350-solid:#ff668b;--g-color-private-red-400-solid:#ff4d77;--g-color-private-red-450-solid:#ff3364;--g-color-private-red-500-solid:#ff1950;--g-color-private-red-550-solid:#ff003d;--g-color-private-red-600-solid:#e9033a;--g-color-private-red-650-solid:#d30638;--g-color-private-red-700-solid:#bd0935;--g-color-private-red-750-solid:#a70c32;--g-color-private-red-800-solid:#910f30;--g-color-private-red-850-solid:#7a112d;--g-color-private-red-900-solid:#64142a;--g-color-private-red-950-solid:#4e1727;--g-color-private-red-1000-solid:#431926;--g-color-private-purple-600-solid:#844dbb;--g-color-private-purple-650-solid:#7947aa;--g-color-private-purple-700-solid:#6e4299;--g-color-private-purple-750-solid:#633d88;--g-color-private-purple-800-solid:#593877;--g-color-private-purple-850-solid:#4e3266;--g-color-private-purple-900-solid:#432d55;--g-color-private-purple-950-solid:#382844;--g-color-private-purple-1000-solid:#32253c;--g-color-private-cool-grey-300-solid:#b5c2cc;--g-color-private-cool-grey-600-solid:#647a8d;--g-color-private-cool-grey-650-solid:#5c6f81;--g-color-private-cool-grey-700-solid:#556575;--g-color-private-cool-grey-750-solid:#4e5b69;--g-color-private-cool-grey-800-solid:#47515e;--g-color-private-cool-grey-850-solid:#3f4652;--g-color-private-cool-grey-900-solid:#383c46;--g-color-private-cool-grey-950-solid:#31323a;--g-color-private-cool-grey-1000-solid:#2d2c34;--g-color-text-primary:var(--g-color-text-dark-primary);--g-color-text-complementary:var(--g-color-text-dark-complementary);--g-color-text-secondary:var(--g-color-text-dark-secondary);--g-color-text-hint:var(--g-color-text-dark-hint);--g-color-text-info:var(--g-color-private-blue-600-solid);--g-color-text-positive:var(--g-color-private-green-600-solid);--g-color-text-warning:var(--g-color-private-yellow-700-solid);--g-color-text-danger:var(--g-color-private-red-600-solid);--g-color-text-utility:var(--g-color-private-purple-600-solid);--g-color-text-misc:var(--g-color-private-cool-grey-600-solid);--g-color-text-info-heavy:var(--g-color-private-blue-700-solid);--g-color-text-positive-heavy:var(--g-color-private-green-700-solid);--g-color-text-warning-heavy:var(--g-color-private-orange-700-solid);--g-color-text-danger-heavy:var(--g-color-private-red-700-solid);--g-color-text-utility-heavy:var(--g-color-private-purple-700-solid);--g-color-text-misc-heavy:var(--g-color-private-cool-grey-700-solid);--g-color-text-brand:var(--g-color-private-yellow-700-solid);--g-color-text-brand-heavy:var(--g-color-private-orange-700-solid);--g-color-text-brand-contrast:var(--g-color-text-dark-primary);--g-color-text-link:var(--g-color-private-yellow-650-solid);--g-color-text-link-hover:var(--g-color-private-orange-650-solid);--g-color-text-link-visited:var(--g-color-private-purple-550-solid);--g-color-text-link-visited-hover:var(--g-color-private-purple-800-solid);--g-color-text-dark-primary:var(--g-color-private-black-850);--g-color-text-dark-complementary:var(--g-color-private-black-700);--g-color-text-dark-secondary:var(--g-color-private-black-500);--g-color-text-dark-hint:var(--g-color-private-black-300);--g-color-text-light-primary:var(--g-color-private-white-1000-solid);--g-color-text-light-complementary:var(--g-color-private-white-850);--g-color-text-light-secondary:var(--g-color-private-white-700);--g-color-text-light-hint:var(--g-color-private-white-500);--g-color-text-inverted-primary:var(--g-color-text-light-primary);--g-color-text-inverted-complementary:var(--g-color-text-light-complementary);--g-color-text-inverted-secondary:var(--g-color-text-light-secondary);--g-color-text-inverted-hint:var(--g-color-text-light-hint);--g-color-base-background:var(--g-color-private-white-1000-solid);--g-color-base-generic:var(--g-color-private-black-50);--g-color-base-generic-hover:var(--g-color-private-black-150);--g-color-base-generic-medium:var(--g-color-private-black-150);--g-color-base-generic-medium-hover:var(--g-color-private-black-250);--g-color-base-generic-accent:var(--g-color-private-black-150);--g-color-base-generic-accent-disabled:var(--g-color-private-black-70);--g-color-base-generic-ultralight:var(--g-color-private-black-20-solid);--g-color-base-simple-hover:var(--g-color-private-black-50);--g-color-base-simple-hover-solid:var(--g-color-private-black-50-solid);--g-color-base-brand:var(--g-color-private-yellow-550-solid);--g-color-base-brand-hover:var(--g-color-private-yellow-600-solid);--g-color-base-selection:var(--g-color-private-yellow-200);--g-color-base-selection-hover:var(--g-color-private-yellow-300);--g-color-base-info-light:var(--g-color-private-blue-100);--g-color-base-info-light-hover:var(--g-color-private-blue-200);--g-color-base-info-medium:var(--g-color-private-blue-200);--g-color-base-info-medium-hover:var(--g-color-private-blue-300);--g-color-base-info-heavy:var(--g-color-private-blue-600-solid);--g-color-base-info-heavy-hover:var(--g-color-private-blue-700-solid);--g-color-base-positive-light:var(--g-color-private-green-100);--g-color-base-positive-light-hover:var(--g-color-private-green-200);--g-color-base-positive-medium:var(--g-color-private-green-200);--g-color-base-positive-medium-hover:var(--g-color-private-green-300);--g-color-base-positive-heavy:var(--g-color-private-green-600-solid);--g-color-base-positive-heavy-hover:var(--g-color-private-green-700-solid);--g-color-base-warning-light:var(--g-color-private-yellow-200);--g-color-base-warning-light-hover:var(--g-color-private-yellow-300);--g-color-base-warning-medium:var(--g-color-private-yellow-400);--g-color-base-warning-medium-hover:var(--g-color-private-yellow-500);--g-color-base-warning-heavy:var(--g-color-private-yellow-550-solid);--g-color-base-warning-heavy-hover:var(--g-color-private-yellow-650-solid);--g-color-base-danger-light:var(--g-color-private-red-100);--g-color-base-danger-light-hover:var(--g-color-private-red-200);--g-color-base-danger-medium:var(--g-color-private-red-200);--g-color-base-danger-medium-hover:var(--g-color-private-red-300);--g-color-base-danger-heavy:var(--g-color-private-red-600-solid);--g-color-base-danger-heavy-hover:var(--g-color-private-red-700-solid);--g-color-base-utility-light:var(--g-color-private-purple-100);--g-color-base-utility-light-hover:var(--g-color-private-purple-200);--g-color-base-utility-medium:var(--g-color-private-purple-200);--g-color-base-utility-medium-hover:var(--g-color-private-purple-300);--g-color-base-utility-heavy:var(--g-color-private-purple-600-solid);--g-color-base-utility-heavy-hover:var(--g-color-private-purple-700-solid);--g-color-base-neutral-light:var(--g-color-private-black-50);--g-color-base-neutral-light-hover:var(--g-color-private-black-100);--g-color-base-neutral-medium:var(--g-color-private-black-200);--g-color-base-neutral-medium-hover:var(--g-color-private-black-250);--g-color-base-neutral-heavy:var(--g-color-private-black-450);--g-color-base-neutral-heavy-hover:var(--g-color-private-black-550);--g-color-base-misc-light:var(--g-color-private-cool-grey-100);--g-color-base-misc-light-hover:var(--g-color-private-cool-grey-200);--g-color-base-misc-medium:var(--g-color-private-cool-grey-200);--g-color-base-misc-medium-hover:var(--g-color-private-cool-grey-300);--g-color-base-misc-heavy:var(--g-color-private-cool-grey-600-solid);--g-color-base-misc-heavy-hover:var(--g-color-private-cool-grey-700-solid);--g-color-base-light:var(--g-color-private-white-1000-solid);--g-color-base-light-hover:var(--g-color-private-white-850);--g-color-base-light-simple-hover:var(--g-color-private-white-150);--g-color-base-light-disabled:var(--g-color-private-white-150);--g-color-base-light-accent-disabled:var(--g-color-private-white-300);--g-color-base-float:var(--g-color-private-white-1000-solid);--g-color-base-float-hover:var(--g-color-private-black-50-solid);--g-color-base-float-medium:var(--g-color-private-black-550-solid);--g-color-base-float-heavy:var(--g-color-private-black-700-solid);--g-color-base-float-accent:var(--g-color-private-white-1000-solid);--g-color-base-float-accent-hover:var(--g-color-private-white-850);--g-color-base-float-announcement:var(--g-color-private-cool-grey-50-solid);--g-color-base-modal:var(--g-color-base-background);--g-color-line-generic:var(--g-color-private-black-100);--g-color-line-generic-hover:var(--g-color-private-black-150);--g-color-line-generic-active:var(--g-color-private-black-300);--g-color-line-generic-accent:var(--g-color-private-black-150);--g-color-line-generic-accent-hover:var(--g-color-private-black-300);--g-color-line-generic-solid:var(--g-color-private-black-100-solid);--g-color-line-brand:var(--g-color-private-yellow-600-solid);--g-color-line-focus:var(--g-color-private-cool-grey-450);--g-color-line-light:var(--g-color-private-white-500);--g-color-line-info:var(--g-color-private-blue-450);--g-color-line-positive:var(--g-color-private-green-450);--g-color-line-warning:var(--g-color-private-yellow-600-solid);--g-color-line-danger:var(--g-color-private-red-450);--g-color-line-utility:var(--g-color-private-purple-450);--g-color-line-misc:var(--g-color-private-cool-grey-450);--g-color-sfx-veil:var(--g-color-private-black-250);--g-color-sfx-shadow:var(--g-color-private-black-150);--g-color-sfx-shadow-heavy:var(--g-color-private-black-500);--g-color-sfx-shadow-light:var(--g-color-private-black-50);--g-color-sfx-fade:var(--g-color-private-white-300);--g-color-scroll-track:var(--g-color-base-background);--g-color-scroll-handle:var(--g-color-private-black-100);--g-color-scroll-handle-hover:var(--g-color-private-black-150);--g-color-scroll-corner:var(--g-color-private-black-100);--g-color-infographics-axis:var(--g-color-private-black-150-solid);--g-color-infographics-tooltip-bg:var(--g-color-private-white-950)}.g-root_theme_dark{--g-color-private-white-20-solid:#262226;--g-color-private-white-50-solid:#2d282d;--g-color-private-white-70-solid:#312d31;--g-color-private-white-100-solid:#383438;--g-color-private-white-150-solid:#433f43;--g-color-private-white-200-solid:#4e4a4e;--g-color-private-white-250-solid:#595559;--g-color-private-white-300-solid:#646164;--g-color-private-white-350-solid:#6f6c6f;--g-color-private-white-400-solid:#7a777a;--g-color-private-white-450-solid:#858385;--g-color-private-white-500-solid:#908e90;--g-color-private-white-550-solid:#9c999c;--g-color-private-white-600-solid:#a7a5a7;--g-color-private-white-650-solid:#b2b0b2;--g-color-private-white-700-solid:#bdbbbd;--g-color-private-white-750-solid:#c8c6c8;--g-color-private-white-800-solid:#d3d2d3;--g-color-private-white-850-solid:#deddde;--g-color-private-white-900-solid:#e9e8e9;--g-color-private-white-950-solid:#f4f4f4;--g-color-private-blue-50:#3697f11a;--g-color-private-blue-100:#3697f126;--g-color-private-blue-150:#3697f133;--g-color-private-blue-200:#3697f14d;--g-color-private-blue-250:#3697f166;--g-color-private-blue-300:#3697f180;--g-color-private-blue-350:#3697f199;--g-color-private-blue-400:#3697f1b3;--g-color-private-blue-450:#3697f1cc;--g-color-private-blue-500:#3697f1e6;--g-color-private-blue-50-solid:#242937;--g-color-private-blue-100-solid:#252f41;--g-color-private-blue-150-solid:#26354b;--g-color-private-blue-200-solid:#284260;--g-color-private-blue-250-solid:#2a4e75;--g-color-private-blue-300-solid:#2c5a8a;--g-color-private-blue-350-solid:#2e669e;--g-color-private-blue-400-solid:#3072b3;--g-color-private-blue-450-solid:#327fc8;--g-color-private-blue-500-solid:#348bdc;--g-color-private-blue-550-solid:#3697f1;--g-color-private-blue-600-solid:#4aa1f2;--g-color-private-blue-650-solid:#5eacf4;--g-color-private-blue-700-solid:#72b6f5;--g-color-private-blue-750-solid:#86c1f7;--g-color-private-blue-800-solid:#9bcbf8;--g-color-private-blue-850-solid:#afd5f9;--g-color-private-blue-900-solid:#c3e0fb;--g-color-private-blue-950-solid:#d7eafc;--g-color-private-blue-1000-solid:#e1effd;--g-color-private-green-50:#4db09b1a;--g-color-private-green-100:#4db09b26;--g-color-private-green-150:#4db09b33;--g-color-private-green-200:#4db09b4d;--g-color-private-green-250:#4db09b66;--g-color-private-green-300:#4db09b80;--g-color-private-green-350:#4db09b99;--g-color-private-green-400:#4db09bb3;--g-color-private-green-450:#4db09bcc;--g-color-private-green-500:#4db09be6;--g-color-private-green-50-solid:#262c2e;--g-color-private-green-100-solid:#283334;--g-color-private-green-150-solid:#2b3a3a;--g-color-private-green-200-solid:#2f4946;--g-color-private-green-250-solid:#335852;--g-color-private-green-300-solid:#38675f;--g-color-private-green-350-solid:#3c756b;--g-color-private-green-400-solid:#408477;--g-color-private-green-450-solid:#449383;--g-color-private-green-500-solid:#49a18f;--g-color-private-green-550-solid:#4db09b;--g-color-private-green-600-solid:#5fb8a5;--g-color-private-green-650-solid:#71c0af;--g-color-private-green-700-solid:#82c8b9;--g-color-private-green-750-solid:#94d0c3;--g-color-private-green-800-solid:#a6d8cd;--g-color-private-green-850-solid:#b8dfd7;--g-color-private-green-900-solid:#cae7e1;--g-color-private-green-950-solid:#dbefeb;--g-color-private-green-1000-solid:#e4f3f0;--g-color-private-yellow-50:#ffbe5c1a;--g-color-private-yellow-100:#ffbe5c26;--g-color-private-yellow-150:#ffbe5c33;--g-color-private-yellow-200:#ffbe5c4d;--g-color-private-yellow-250:#ffbe5c66;--g-color-private-yellow-300:#ffbe5c80;--g-color-private-yellow-350:#ffbe5c99;--g-color-private-yellow-400:#ffbe5cb3;--g-color-private-yellow-450:#ffbe5ccc;--g-color-private-yellow-500:#ffbe5ce6;--g-color-private-yellow-50-solid:#382d28;--g-color-private-yellow-100-solid:#43352b;--g-color-private-yellow-150-solid:#4e3d2e;--g-color-private-yellow-200-solid:#644d33;--g-color-private-yellow-250-solid:#7a5d39;--g-color-private-yellow-300-solid:#916e3f;--g-color-private-yellow-350-solid:#a77e45;--g-color-private-yellow-400-solid:#bd8e4b;--g-color-private-yellow-450-solid:#d39e50;--g-color-private-yellow-500-solid:#e9ae56;--g-color-private-yellow-550-solid:#ffbe5c;--g-color-private-yellow-600-solid:#ffc56c;--g-color-private-yellow-650-solid:#ffcb7d;--g-color-private-yellow-700-solid:#ffd28d;--g-color-private-yellow-750-solid:#ffd89d;--g-color-private-yellow-800-solid:#ffdfae;--g-color-private-yellow-850-solid:#ffe5be;--g-color-private-yellow-900-solid:#ffecce;--g-color-private-yellow-950-solid:#fff2de;--g-color-private-yellow-1000-solid:#fff5e7;--g-color-private-orange-50-solid:#332420;--g-color-private-orange-100-solid:#3b281f;--g-color-private-orange-150-solid:#432b1e;--g-color-private-orange-200-solid:#54321b;--g-color-private-orange-250-solid:#643919;--g-color-private-orange-300-solid:#754017;--g-color-private-orange-350-solid:#864715;--g-color-private-orange-400-solid:#964e13;--g-color-private-orange-450-solid:#a75510;--g-color-private-orange-500-solid:#b75c0e;--g-color-private-orange-700-solid:#d99255;--g-color-private-orange-800-solid:#e4b186;--g-color-private-red-50:#e5325d1a;--g-color-private-red-100:#e5325d26;--g-color-private-red-150:#e5325d33;--g-color-private-red-200:#e5325d4d;--g-color-private-red-250:#e5325d66;--g-color-private-red-300:#e5325d80;--g-color-private-red-350:#e5325d99;--g-color-private-red-400:#e5325db3;--g-color-private-red-450:#e5325dcc;--g-color-private-red-500:#e5325de6;--g-color-private-red-50-solid:#361f28;--g-color-private-red-100-solid:#3f202b;--g-color-private-red-150-solid:#49212e;--g-color-private-red-200-solid:#5d2334;--g-color-private-red-250-solid:#70253a;--g-color-private-red-300-solid:#842840;--g-color-private-red-350-solid:#972a45;--g-color-private-red-400-solid:#ab2c4b;--g-color-private-red-450-solid:#be2e51;--g-color-private-red-500-solid:#d23057;--g-color-private-red-550-solid:#e5325d;--g-color-private-red-600-solid:#e8476d;--g-color-private-red-650-solid:#ea5b7d;--g-color-private-red-700-solid:#ed708e;--g-color-private-red-750-solid:#ef849e;--g-color-private-red-800-solid:#f299ae;--g-color-private-red-850-solid:#f5adbe;--g-color-private-red-900-solid:#f7c2ce;--g-color-private-red-950-solid:#fad6df;--g-color-private-red-1000-solid:#fbe0e7;--g-color-private-purple-50-solid:#2d2233;--g-color-private-purple-100-solid:#32253c;--g-color-private-purple-150-solid:#382844;--g-color-private-purple-200-solid:#432d55;--g-color-private-purple-250-solid:#4e3266;--g-color-private-purple-300-solid:#593877;--g-color-private-purple-350-solid:#633d88;--g-color-private-purple-400-solid:#6e4299;--g-color-private-purple-450-solid:#7947aa;--g-color-private-purple-500-solid:#844dbb;--g-color-private-cool-grey-50-solid:#28272e;--g-color-private-cool-grey-100-solid:#2b2c34;--g-color-private-cool-grey-150-solid:#2e313a;--g-color-private-cool-grey-200-solid:#353b47;--g-color-private-cool-grey-250-solid:#3b4553;--g-color-private-cool-grey-300-solid:#414f5f;--g-color-private-cool-grey-350-solid:#47586b;--g-color-private-cool-grey-400-solid:#4d6277;--g-color-private-cool-grey-450-solid:#546c84;--g-color-private-cool-grey-500-solid:#5a7690;--g-color-private-cool-grey-750-solid:#a0b3c4;--g-color-private-cool-grey-800-solid:#b0c0ce;--g-color-text-primary:var(--g-color-text-light-primary);--g-color-text-complementary:var(--g-color-text-light-complementary);--g-color-text-secondary:var(--g-color-text-light-secondary);--g-color-text-hint:var(--g-color-text-light-hint);--g-color-text-info:var(--g-color-private-blue-550-solid);--g-color-text-positive:var(--g-color-private-green-550-solid);--g-color-text-warning:var(--g-color-private-yellow-550-solid);--g-color-text-danger:var(--g-color-private-red-550-solid);--g-color-text-utility:var(--g-color-private-purple-600-solid);--g-color-text-misc:var(--g-color-private-cool-grey-600-solid);--g-color-text-info-heavy:var(--g-color-private-blue-600-solid);--g-color-text-positive-heavy:var(--g-color-private-green-600-solid);--g-color-text-warning-heavy:var(--g-color-private-yellow-600-solid);--g-color-text-danger-heavy:var(--g-color-private-red-600-solid);--g-color-text-utility-heavy:var(--g-color-private-purple-650-solid);--g-color-text-misc-heavy:var(--g-color-private-cool-grey-650-solid);--g-color-text-brand:var(--g-color-private-yellow-600-solid);--g-color-text-brand-heavy:var(--g-color-private-yellow-700-solid);--g-color-text-brand-contrast:var(--g-color-text-dark-primary);--g-color-text-link:var(--g-color-private-yellow-550-solid);--g-color-text-link-hover:var(--g-color-private-orange-550-solid);--g-color-text-link-visited:var(--g-color-private-purple-600-solid);--g-color-text-link-visited-hover:var(--g-color-private-purple-750-solid);--g-color-text-dark-primary:var(--g-color-private-black-900);--g-color-text-dark-complementary:var(--g-color-private-black-700);--g-color-text-dark-secondary:var(--g-color-private-black-500);--g-color-text-dark-hint:var(--g-color-private-black-300);--g-color-text-light-primary:var(--g-color-private-white-850);--g-color-text-light-complementary:var(--g-color-private-white-700);--g-color-text-light-secondary:var(--g-color-private-white-500);--g-color-text-light-hint:var(--g-color-private-white-300);--g-color-text-inverted-primary:var(--g-color-text-dark-primary);--g-color-text-inverted-complementary:var(--g-color-text-dark-complementary);--g-color-text-inverted-secondary:var(--g-color-text-dark-secondary);--g-color-text-inverted-hint:var(--g-color-text-dark-hint);--g-color-base-background:#221d22;--g-color-base-generic:var(--g-color-private-white-100);--g-color-base-generic-hover:var(--g-color-private-white-150);--g-color-base-generic-medium:var(--g-color-private-white-250);--g-color-base-generic-medium-hover:var(--g-color-private-white-300);--g-color-base-generic-accent:var(--g-color-private-white-150);--g-color-base-generic-accent-disabled:var(--g-color-private-white-70);--g-color-base-generic-ultralight:var(--g-color-private-white-20-solid);--g-color-base-simple-hover:var(--g-color-private-white-100);--g-color-base-simple-hover-solid:var(--g-color-private-white-100-solid);--g-color-base-brand:var(--g-color-private-yellow-550-solid);--g-color-base-brand-hover:var(--g-color-private-yellow-650-solid);--g-color-base-selection:var(--g-color-private-yellow-150);--g-color-base-selection-hover:var(--g-color-private-yellow-200);--g-color-base-info-light:var(--g-color-private-blue-150);--g-color-base-info-light-hover:var(--g-color-private-blue-200);--g-color-base-info-medium:var(--g-color-private-blue-300);--g-color-base-info-medium-hover:var(--g-color-private-blue-400);--g-color-base-info-heavy:var(--g-color-private-blue-600-solid);--g-color-base-info-heavy-hover:var(--g-color-private-blue-700-solid);--g-color-base-positive-light:var(--g-color-private-green-150);--g-color-base-positive-light-hover:var(--g-color-private-green-200);--g-color-base-positive-medium:var(--g-color-private-green-300);--g-color-base-positive-medium-hover:var(--g-color-private-green-400);--g-color-base-positive-heavy:var(--g-color-private-green-600-solid);--g-color-base-positive-heavy-hover:var(--g-color-private-green-700-solid);--g-color-base-warning-light:var(--g-color-private-yellow-150);--g-color-base-warning-light-hover:var(--g-color-private-yellow-200);--g-color-base-warning-medium:var(--g-color-private-yellow-300);--g-color-base-warning-medium-hover:var(--g-color-private-yellow-400);--g-color-base-warning-heavy:var(--g-color-private-yellow-600-solid);--g-color-base-warning-heavy-hover:var(--g-color-private-yellow-700-solid);--g-color-base-danger-light:var(--g-color-private-red-150);--g-color-base-danger-light-hover:var(--g-color-private-red-200);--g-color-base-danger-medium:var(--g-color-private-red-300);--g-color-base-danger-medium-hover:var(--g-color-private-red-400);--g-color-base-danger-heavy:var(--g-color-private-red-600-solid);--g-color-base-danger-heavy-hover:var(--g-color-private-red-700-solid);--g-color-base-utility-light:var(--g-color-private-purple-150);--g-color-base-utility-light-hover:var(--g-color-private-purple-250);--g-color-base-utility-medium:var(--g-color-private-purple-300);--g-color-base-utility-medium-hover:var(--g-color-private-purple-400);--g-color-base-utility-heavy:var(--g-color-private-purple-600-solid);--g-color-base-utility-heavy-hover:var(--g-color-private-purple-700-solid);--g-color-base-neutral-light:var(--g-color-private-white-100);--g-color-base-neutral-light-hover:var(--g-color-private-white-150);--g-color-base-neutral-medium:var(--g-color-private-white-250);--g-color-base-neutral-medium-hover:var(--g-color-private-white-350);--g-color-base-neutral-heavy:var(--g-color-private-white-550);--g-color-base-neutral-heavy-hover:var(--g-color-private-white-650);--g-color-base-misc-light:var(--g-color-private-cool-grey-150);--g-color-base-misc-light-hover:var(--g-color-private-cool-grey-200);--g-color-base-misc-medium:var(--g-color-private-cool-grey-300);--g-color-base-misc-medium-hover:var(--g-color-private-cool-grey-400);--g-color-base-misc-heavy:var(--g-color-private-cool-grey-600-solid);--g-color-base-misc-heavy-hover:var(--g-color-private-cool-grey-700-solid);--g-color-base-light:var(--g-color-private-white-850);--g-color-base-light-hover:var(--g-color-private-white-700);--g-color-base-light-simple-hover:var(--g-color-private-white-150);--g-color-base-light-disabled:var(--g-color-private-white-150);--g-color-base-light-accent-disabled:var(--g-color-private-white-300);--g-color-base-float:var(--g-color-private-white-100-solid);--g-color-base-float-hover:var(--g-color-private-white-150-solid);--g-color-base-float-medium:var(--g-color-private-white-150-solid);--g-color-base-float-heavy:var(--g-color-private-white-250-solid);--g-color-base-float-accent:var(--g-color-private-white-150-solid);--g-color-base-float-accent-hover:var(--g-color-private-white-200-solid);--g-color-base-float-announcement:var(--g-color-private-white-150-solid);--g-color-base-modal:var(--g-color-base-background);--g-color-line-generic:var(--g-color-private-white-150);--g-color-line-generic-hover:var(--g-color-private-white-250);--g-color-line-generic-active:var(--g-color-private-white-300);--g-color-line-generic-accent:var(--g-color-private-white-150);--g-color-line-generic-accent-hover:var(--g-color-private-white-300);--g-color-line-generic-solid:var(--g-color-private-white-150-solid);--g-color-line-brand:var(--g-color-private-yellow-600-solid);--g-color-line-focus:var(--g-color-private-cool-grey-450);--g-color-line-light:var(--g-color-private-white-500);--g-color-line-info:var(--g-color-private-blue-450);--g-color-line-positive:var(--g-color-private-green-450);--g-color-line-warning:var(--g-color-private-yellow-450);--g-color-line-danger:var(--g-color-private-red-450);--g-color-line-utility:var(--g-color-private-purple-450);--g-color-line-misc:var(--g-color-private-cool-grey-450);--g-color-sfx-veil:var(--g-color-private-black-600);--g-color-sfx-shadow:var(--g-color-private-black-200);--g-color-sfx-shadow-heavy:var(--g-color-private-black-500);--g-color-sfx-shadow-light:var(--g-color-private-black-200);--g-color-sfx-fade:var(--g-color-private-white-250);--g-color-scroll-track:var(--g-color-base-background);--g-color-scroll-handle:var(--g-color-private-white-150);--g-color-scroll-handle-hover:var(--g-color-private-white-250);--g-color-scroll-corner:var(--g-color-private-white-150);--g-color-infographics-axis:var(--g-color-private-white-150-solid);--g-color-infographics-tooltip-bg:var(--g-color-private-white-opaque-150)}.g-root_theme_light-hc{--g-color-private-blue-50:#3697f11a;--g-color-private-blue-100:#3697f126;--g-color-private-blue-150:#3697f133;--g-color-private-blue-200:#3697f14d;--g-color-private-blue-250:#3697f166;--g-color-private-blue-300:#3697f180;--g-color-private-blue-350:#3697f199;--g-color-private-blue-400:#3697f1b3;--g-color-private-blue-450:#3697f1cc;--g-color-private-blue-500:#3697f1e6;--g-color-private-blue-50-solid:#ebf5fe;--g-color-private-blue-100-solid:#e1effd;--g-color-private-blue-150-solid:#d7eafc;--g-color-private-blue-200-solid:#c3e0fb;--g-color-private-blue-250-solid:#afd5f9;--g-color-private-blue-300-solid:#9bcbf8;--g-color-private-blue-350-solid:#86c1f7;--g-color-private-blue-400-solid:#72b6f5;--g-color-private-blue-450-solid:#5eacf4;--g-color-private-blue-500-solid:#4aa1f2;--g-color-private-blue-550-solid:#3697f1;--g-color-private-blue-600-solid:#328adb;--g-color-private-blue-650-solid:#2f7cc4;--g-color-private-blue-700-solid:#2b6fae;--g-color-private-blue-750-solid:#286198;--g-color-private-blue-800-solid:#245482;--g-color-private-blue-850-solid:#20476b;--g-color-private-blue-900-solid:#1d3955;--g-color-private-blue-950-solid:#192c3f;--g-color-private-blue-1000-solid:#172533;--g-color-private-green-50:#32ba761a;--g-color-private-green-100:#32ba7626;--g-color-private-green-150:#32ba7633;--g-color-private-green-200:#32ba764d;--g-color-private-green-250:#32ba7666;--g-color-private-green-300:#32ba7680;--g-color-private-green-350:#32ba7699;--g-color-private-green-400:#32ba76b3;--g-color-private-green-450:#32ba76cc;--g-color-private-green-500:#32ba76e6;--g-color-private-green-50-solid:#ebf8f1;--g-color-private-green-100-solid:#e0f5ea;--g-color-private-green-150-solid:#d6f1e4;--g-color-private-green-200-solid:#c2ead6;--g-color-private-green-250-solid:#ade3c8;--g-color-private-green-300-solid:#9db;--g-color-private-green-350-solid:#84d6ad;--g-color-private-green-400-solid:#70cf9f;--g-color-private-green-450-solid:#5bc891;--g-color-private-green-500-solid:#47c184;--g-color-private-green-550-solid:#32ba76;--g-color-private-green-600-solid:#2fa96c;--g-color-private-green-650-solid:#2c9862;--g-color-private-green-700-solid:#288758;--g-color-private-green-750-solid:#25764e;--g-color-private-green-800-solid:#264;--g-color-private-green-850-solid:#1f553a;--g-color-private-green-900-solid:#1c4430;--g-color-private-green-950-solid:#183326;--g-color-private-green-1000-solid:#172a21;--g-color-private-yellow-50:#ffbe5c1a;--g-color-private-yellow-100:#ffbe5c26;--g-color-private-yellow-150:#ffbe5c33;--g-color-private-yellow-200:#ffbe5c4d;--g-color-private-yellow-250:#ffbe5c66;--g-color-private-yellow-300:#ffbe5c80;--g-color-private-yellow-350:#ffbe5c99;--g-color-private-yellow-400:#ffbe5cb3;--g-color-private-yellow-450:#ffbe5ccc;--g-color-private-yellow-500:#ffbe5ce6;--g-color-private-yellow-50-solid:#fff9ef;--g-color-private-yellow-100-solid:#fff5e7;--g-color-private-yellow-150-solid:#fff2de;--g-color-private-yellow-200-solid:#ffecce;--g-color-private-yellow-250-solid:#ffe5be;--g-color-private-yellow-300-solid:#ffdfae;--g-color-private-yellow-350-solid:#ffd89d;--g-color-private-yellow-400-solid:#ffd28d;--g-color-private-yellow-450-solid:#ffcb7d;--g-color-private-yellow-500-solid:#ffc56c;--g-color-private-yellow-550-solid:#ffbe5c;--g-color-private-yellow-600-solid:#e7ad55;--g-color-private-yellow-650-solid:#d09b4d;--g-color-private-yellow-700-solid:#b88a46;--g-color-private-yellow-750-solid:#a0793e;--g-color-private-yellow-800-solid:#896837;--g-color-private-yellow-850-solid:#715630;--g-color-private-yellow-900-solid:#594528;--g-color-private-yellow-950-solid:#413421;--g-color-private-yellow-1000-solid:#362b1d;--g-color-private-orange-400-solid:#ffa04d;--g-color-private-orange-500-solid:#ff8519;--g-color-private-orange-600-solid:#e76d02;--g-color-private-orange-650-solid:#d06304;--g-color-private-orange-700-solid:#b85805;--g-color-private-orange-750-solid:#a04e07;--g-color-private-orange-800-solid:#894409;--g-color-private-orange-850-solid:#713a0b;--g-color-private-orange-900-solid:#59300d;--g-color-private-orange-950-solid:#41250e;--g-color-private-orange-1000-solid:#36200f;--g-color-private-red-50:#ff003d1a;--g-color-private-red-100:#ff003d26;--g-color-private-red-150:#ff003d33;--g-color-private-red-200:#ff003d4d;--g-color-private-red-250:#ff003d66;--g-color-private-red-300:#ff003d80;--g-color-private-red-350:#ff003d99;--g-color-private-red-400:#ff003db3;--g-color-private-red-450:#ff003dcc;--g-color-private-red-500:#ff003de6;--g-color-private-red-50-solid:#ffe6ec;--g-color-private-red-100-solid:#ffd9e2;--g-color-private-red-150-solid:#ffccd8;--g-color-private-red-200-solid:#ffb3c5;--g-color-private-red-250-solid:#ff99b1;--g-color-private-red-300-solid:#ff809e;--g-color-private-red-350-solid:#ff668b;--g-color-private-red-400-solid:#ff4d77;--g-color-private-red-450-solid:#ff3364;--g-color-private-red-500-solid:#ff1950;--g-color-private-red-550-solid:#ff003d;--g-color-private-red-600-solid:#e70239;--g-color-private-red-650-solid:#d00334;--g-color-private-red-700-solid:#b80530;--g-color-private-red-750-solid:#a0072c;--g-color-private-red-800-solid:#890928;--g-color-private-red-850-solid:#710a23;--g-color-private-red-900-solid:#590c1f;--g-color-private-red-950-solid:#410e1b;--g-color-private-red-1000-solid:#360e18;--g-color-private-purple-600-solid:#834cb9;--g-color-private-purple-650-solid:#7645a7;--g-color-private-purple-700-solid:#6a3f94;--g-color-private-purple-750-solid:#5d3882;--g-color-private-purple-800-solid:#51326f;--g-color-private-purple-850-solid:#442b5c;--g-color-private-purple-900-solid:#38254a;--g-color-private-purple-950-solid:#2b1e37;--g-color-private-purple-1000-solid:#251b2e;--g-color-private-cool-grey-300-solid:#b5c2cc;--g-color-private-cool-grey-600-solid:#62798c;--g-color-private-cool-grey-650-solid:#596d7e;--g-color-private-cool-grey-700-solid:#506271;--g-color-private-cool-grey-750-solid:#475663;--g-color-private-cool-grey-800-solid:#3f4b56;--g-color-private-cool-grey-850-solid:#363f48;--g-color-private-cool-grey-900-solid:#2d343b;--g-color-private-cool-grey-950-solid:#24282d;--g-color-private-cool-grey-1000-solid:#1f2226;--g-color-text-primary:var(--g-color-text-dark-primary);--g-color-text-complementary:var(--g-color-text-dark-complementary);--g-color-text-secondary:var(--g-color-text-dark-secondary);--g-color-text-hint:var(--g-color-text-dark-hint);--g-color-text-info:var(--g-color-private-blue-650-solid);--g-color-text-positive:var(--g-color-private-green-650-solid);--g-color-text-warning:var(--g-color-private-yellow-700-solid);--g-color-text-danger:var(--g-color-private-red-650-solid);--g-color-text-utility:var(--g-color-private-purple-650-solid);--g-color-text-misc:var(--g-color-private-cool-grey-650-solid);--g-color-text-info-heavy:var(--g-color-private-blue-900-solid);--g-color-text-positive-heavy:var(--g-color-private-green-900-solid);--g-color-text-warning-heavy:var(--g-color-private-orange-900-solid);--g-color-text-danger-heavy:var(--g-color-private-red-900-solid);--g-color-text-utility-heavy:var(--g-color-private-purple-900-solid);--g-color-text-misc-heavy:var(--g-color-private-cool-grey-900-solid);--g-color-text-brand:var(--g-color-private-yellow-700-solid);--g-color-text-brand-heavy:var(--g-color-private-orange-900-solid);--g-color-text-brand-contrast:var(--g-color-text-dark-primary);--g-color-text-link:var(--g-color-private-yellow-700-solid);--g-color-text-link-hover:var(--g-color-private-orange-700-solid);--g-color-text-link-visited:var(--g-color-private-purple-600-solid);--g-color-text-link-visited-hover:var(--g-color-private-purple-850-solid);--g-color-text-dark-primary:var(--g-color-private-black-1000-solid);--g-color-text-dark-complementary:var(--g-color-private-black-850);--g-color-text-dark-secondary:var(--g-color-private-black-700);--g-color-text-dark-hint:var(--g-color-private-black-500);--g-color-text-light-primary:var(--g-color-private-white-1000-solid);--g-color-text-light-complementary:var(--g-color-private-white-850);--g-color-text-light-secondary:var(--g-color-private-white-700);--g-color-text-light-hint:var(--g-color-private-white-500);--g-color-text-inverted-primary:var(--g-color-text-light-primary);--g-color-text-inverted-complementary:var(--g-color-text-light-complementary);--g-color-text-inverted-secondary:var(--g-color-text-light-secondary);--g-color-text-inverted-hint:var(--g-color-text-light-hint);--g-color-base-background:var(--g-color-private-white-1000-solid);--g-color-base-generic:var(--g-color-private-black-150);--g-color-base-generic-hover:var(--g-color-private-black-300);--g-color-base-generic-medium:var(--g-color-private-black-250);--g-color-base-generic-medium-hover:var(--g-color-private-black-350);--g-color-base-generic-accent:var(--g-color-private-black-250);--g-color-base-generic-accent-disabled:var(--g-color-private-black-150);--g-color-base-generic-ultralight:var(--g-color-private-black-50-solid);--g-color-base-simple-hover:var(--g-color-private-black-150);--g-color-base-simple-hover-solid:var(--g-color-private-black-150-solid);--g-color-base-brand:var(--g-color-private-yellow-550-solid);--g-color-base-brand-hover:var(--g-color-private-yellow-650-solid);--g-color-base-selection:var(--g-color-private-yellow-300);--g-color-base-selection-hover:var(--g-color-private-yellow-400);--g-color-base-info-light:var(--g-color-private-blue-250);--g-color-base-info-light-hover:var(--g-color-private-blue-350);--g-color-base-info-medium:var(--g-color-private-blue-400);--g-color-base-info-medium-hover:var(--g-color-private-blue-500);--g-color-base-info-heavy:var(--g-color-private-blue-700-solid);--g-color-base-info-heavy-hover:var(--g-color-private-blue-850-solid);--g-color-base-positive-light:var(--g-color-private-green-250);--g-color-base-positive-light-hover:var(--g-color-private-green-350);--g-color-base-positive-medium:var(--g-color-private-green-400);--g-color-base-positive-medium-hover:var(--g-color-private-green-500);--g-color-base-positive-heavy:var(--g-color-private-green-700-solid);--g-color-base-positive-heavy-hover:var(--g-color-private-green-800-solid);--g-color-base-warning-light:var(--g-color-private-yellow-300);--g-color-base-warning-light-hover:var(--g-color-private-yellow-400);--g-color-base-warning-medium:var(--g-color-private-yellow-400);--g-color-base-warning-medium-hover:var(--g-color-private-yellow-550-solid);--g-color-base-warning-heavy:var(--g-color-private-yellow-600-solid);--g-color-base-warning-heavy-hover:var(--g-color-private-yellow-700-solid);--g-color-base-danger-light:var(--g-color-private-red-250);--g-color-base-danger-light-hover:var(--g-color-private-red-350);--g-color-base-danger-medium:var(--g-color-private-red-400);--g-color-base-danger-medium-hover:var(--g-color-private-red-500);--g-color-base-danger-heavy:var(--g-color-private-red-700-solid);--g-color-base-danger-heavy-hover:var(--g-color-private-red-800-solid);--g-color-base-utility-light:var(--g-color-private-purple-250);--g-color-base-utility-light-hover:var(--g-color-private-purple-350);--g-color-base-utility-medium:var(--g-color-private-purple-400);--g-color-base-utility-medium-hover:var(--g-color-private-purple-500);--g-color-base-utility-heavy:var(--g-color-private-purple-700-solid);--g-color-base-utility-heavy-hover:var(--g-color-private-purple-800-solid);--g-color-base-neutral-light:var(--g-color-private-black-150);--g-color-base-neutral-light-hover:var(--g-color-private-black-250);--g-color-base-neutral-medium:var(--g-color-private-black-300);--g-color-base-neutral-medium-hover:var(--g-color-private-black-400);--g-color-base-neutral-heavy:var(--g-color-private-black-550);--g-color-base-neutral-heavy-hover:var(--g-color-private-black-650);--g-color-base-misc-light:var(--g-color-private-cool-grey-250);--g-color-base-misc-light-hover:var(--g-color-private-cool-grey-350);--g-color-base-misc-medium:var(--g-color-private-cool-grey-400);--g-color-base-misc-medium-hover:var(--g-color-private-cool-grey-500);--g-color-base-misc-heavy:var(--g-color-private-cool-grey-700-solid);--g-color-base-misc-heavy-hover:var(--g-color-private-cool-grey-800-solid);--g-color-base-light:var(--g-color-private-white-1000-solid);--g-color-base-light-hover:var(--g-color-private-white-850);--g-color-base-light-simple-hover:var(--g-color-private-white-300);--g-color-base-light-disabled:var(--g-color-private-white-150);--g-color-base-light-accent-disabled:var(--g-color-private-white-300);--g-color-base-float:var(--g-color-private-white-1000-solid);--g-color-base-float-hover:var(--g-color-private-black-150-solid);--g-color-base-float-medium:var(--g-color-private-black-550-solid);--g-color-base-float-heavy:var(--g-color-private-black-700-solid);--g-color-base-float-accent:var(--g-color-private-white-1000-solid);--g-color-base-float-accent-hover:var(--g-color-private-white-850);--g-color-base-float-announcement:var(--g-color-private-cool-grey-150-solid);--g-color-base-modal:var(--g-color-base-background);--g-color-line-generic:var(--g-color-private-black-200);--g-color-line-generic-hover:var(--g-color-private-black-400);--g-color-line-generic-active:var(--g-color-private-black-700);--g-color-line-generic-accent:var(--g-color-private-black-300);--g-color-line-generic-accent-hover:var(--g-color-private-black-700);--g-color-line-generic-solid:var(--g-color-private-black-200-solid);--g-color-line-brand:var(--g-color-private-yellow-600-solid);--g-color-line-focus:var(--g-color-private-cool-grey-450);--g-color-line-light:var(--g-color-private-white-500);--g-color-line-info:var(--g-color-private-blue-450);--g-color-line-positive:var(--g-color-private-green-450);--g-color-line-warning:var(--g-color-private-yellow-600-solid);--g-color-line-danger:var(--g-color-private-red-450);--g-color-line-utility:var(--g-color-private-purple-450);--g-color-line-misc:var(--g-color-private-cool-grey-450);--g-color-sfx-veil:var(--g-color-private-black-450);--g-color-sfx-shadow:var(--g-color-private-black-300);--g-color-sfx-shadow-heavy:var(--g-color-private-black-600);--g-color-sfx-shadow-light:var(--g-color-private-black-100);--g-color-sfx-fade:var(--g-color-private-white-300);--g-color-scroll-track:var(--g-color-base-background);--g-color-scroll-handle:var(--g-color-private-black-100);--g-color-scroll-handle-hover:var(--g-color-private-black-150);--g-color-scroll-corner:var(--g-color-private-black-100);--g-color-infographics-axis:var(--g-color-private-black-150-solid);--g-color-infographics-tooltip-bg:var(--g-color-private-white-950)}.g-root_theme_dark-hc{--g-color-private-white-50-solid:#1e1d1e;--g-color-private-white-70-solid:#232223;--g-color-private-white-100-solid:#2a292a;--g-color-private-white-150-solid:#363536;--g-color-private-white-200-solid:#414141;--g-color-private-white-250-solid:#4d4d4d;--g-color-private-white-300-solid:#595859;--g-color-private-white-350-solid:#656465;--g-color-private-white-400-solid:#717071;--g-color-private-white-450-solid:#7d7c7d;--g-color-private-white-500-solid:#888;--g-color-private-white-550-solid:#949494;--g-color-private-white-600-solid:#a0a0a0;--g-color-private-white-650-solid:#acacac;--g-color-private-white-700-solid:#b8b8b8;--g-color-private-white-750-solid:#c4c3c4;--g-color-private-white-800-solid:#d0cfd0;--g-color-private-white-850-solid:#d0cfd0;--g-color-private-white-900-solid:#e7e7e7;--g-color-private-white-950-solid:#f3f3f3;--g-color-private-blue-50:#3697f11a;--g-color-private-blue-100:#3697f126;--g-color-private-blue-150:#3697f133;--g-color-private-blue-200:#3697f14d;--g-color-private-blue-250:#3697f166;--g-color-private-blue-300:#3697f180;--g-color-private-blue-350:#3697f199;--g-color-private-blue-400:#3697f1b3;--g-color-private-blue-450:#3697f1cc;--g-color-private-blue-500:#3697f1e6;--g-color-private-blue-50-solid:#161e28;--g-color-private-blue-100-solid:#172533;--g-color-private-blue-150-solid:#192c3f;--g-color-private-blue-200-solid:#1d3955;--g-color-private-blue-250-solid:#20476b;--g-color-private-blue-300-solid:#245482;--g-color-private-blue-350-solid:#286198;--g-color-private-blue-400-solid:#2b6fae;--g-color-private-blue-450-solid:#2f7cc4;--g-color-private-blue-500-solid:#328adb;--g-color-private-blue-550-solid:#3697f1;--g-color-private-blue-600-solid:#4aa1f2;--g-color-private-blue-650-solid:#5eacf4;--g-color-private-blue-700-solid:#72b6f5;--g-color-private-blue-750-solid:#86c1f7;--g-color-private-blue-800-solid:#9bcbf8;--g-color-private-blue-850-solid:#afd5f9;--g-color-private-blue-900-solid:#c3e0fb;--g-color-private-blue-950-solid:#d7eafc;--g-color-private-blue-1000-solid:#e1effd;--g-color-private-green-50:#4db09b1a;--g-color-private-green-100:#4db09b26;--g-color-private-green-150:#4db09b33;--g-color-private-green-200:#4db09b4d;--g-color-private-green-250:#4db09b66;--g-color-private-green-300:#4db09b80;--g-color-private-green-350:#4db09b99;--g-color-private-green-400:#4db09bb3;--g-color-private-green-450:#4db09bcc;--g-color-private-green-500:#4db09be6;--g-color-private-green-50-solid:#182120;--g-color-private-green-100-solid:#1b2927;--g-color-private-green-150-solid:#1e312d;--g-color-private-green-200-solid:#24413b;--g-color-private-green-250-solid:#2a5149;--g-color-private-green-300-solid:#306157;--g-color-private-green-350-solid:#357064;--g-color-private-green-400-solid:#3b8072;--g-color-private-green-450-solid:#419080;--g-color-private-green-500-solid:#47a08d;--g-color-private-green-550-solid:#4db09b;--g-color-private-green-600-solid:#5fb8a5;--g-color-private-green-650-solid:#71c0af;--g-color-private-green-700-solid:#82c8b9;--g-color-private-green-750-solid:#94d0c3;--g-color-private-green-800-solid:#a6d8cd;--g-color-private-green-850-solid:#b8dfd7;--g-color-private-green-900-solid:#cae7e1;--g-color-private-green-950-solid:#dbefeb;--g-color-private-green-1000-solid:#e4f3f0;--g-color-private-yellow-50:#ffbe5c1a;--g-color-private-yellow-100:#ffbe5c26;--g-color-private-yellow-150:#ffbe5c33;--g-color-private-yellow-200:#ffbe5c4d;--g-color-private-yellow-250:#ffbe5c66;--g-color-private-yellow-300:#ffbe5c80;--g-color-private-yellow-350:#ffbe5c99;--g-color-private-yellow-400:#ffbe5cb3;--g-color-private-yellow-450:#ffbe5ccc;--g-color-private-yellow-500:#ffbe5ce6;--g-color-private-yellow-50-solid:#2a2219;--g-color-private-yellow-100-solid:#362b1d;--g-color-private-yellow-150-solid:#413421;--g-color-private-yellow-200-solid:#594528;--g-color-private-yellow-250-solid:#715630;--g-color-private-yellow-300-solid:#896837;--g-color-private-yellow-350-solid:#a0793e;--g-color-private-yellow-400-solid:#b88a46;--g-color-private-yellow-450-solid:#d09b4d;--g-color-private-yellow-500-solid:#e7ad55;--g-color-private-yellow-550-solid:#ffbe5c;--g-color-private-yellow-600-solid:#ffc56c;--g-color-private-yellow-650-solid:#ffcb7d;--g-color-private-yellow-700-solid:#ffd28d;--g-color-private-yellow-750-solid:#ffd89d;--g-color-private-yellow-800-solid:#ffdfae;--g-color-private-yellow-850-solid:#ffe5be;--g-color-private-yellow-900-solid:#ffecce;--g-color-private-yellow-950-solid:#fff2de;--g-color-private-yellow-1000-solid:#fff5e7;--g-color-private-orange-50-solid:#241911;--g-color-private-orange-100-solid:#2d1d11;--g-color-private-orange-150-solid:#362111;--g-color-private-orange-200-solid:#492a10;--g-color-private-orange-250-solid:#5b3210;--g-color-private-orange-300-solid:#6d3a0f;--g-color-private-orange-350-solid:#7f420e;--g-color-private-orange-400-solid:#914a0e;--g-color-private-orange-450-solid:#a4530d;--g-color-private-orange-500-solid:#b65b0d;--g-color-private-orange-700-solid:#d99255;--g-color-private-orange-800-solid:#e4b186;--g-color-private-red-50:#e5325d1a;--g-color-private-red-100:#e5325d26;--g-color-private-red-150:#e5325d33;--g-color-private-red-200:#e5325d4d;--g-color-private-red-250:#e5325d66;--g-color-private-red-300:#e5325d80;--g-color-private-red-350:#e5325d99;--g-color-private-red-400:#e5325db3;--g-color-private-red-450:#e5325dcc;--g-color-private-red-500:#e5325de6;--g-color-private-red-50-solid:#27141a;--g-color-private-red-100-solid:#32161d;--g-color-private-red-150-solid:#3c1821;--g-color-private-red-200-solid:#511b29;--g-color-private-red-250-solid:#661e30;--g-color-private-red-300-solid:#7c2238;--g-color-private-red-350-solid:#91253f;--g-color-private-red-400-solid:#a62847;--g-color-private-red-450-solid:#bb2b4e;--g-color-private-red-500-solid:#d02f56;--g-color-private-red-550-solid:#e5325d;--g-color-private-red-600-solid:#e8476d;--g-color-private-red-650-solid:#ea5b7d;--g-color-private-red-700-solid:#ed708e;--g-color-private-red-750-solid:#ef849e;--g-color-private-red-800-solid:#f299ae;--g-color-private-red-850-solid:#f5adbe;--g-color-private-red-900-solid:#f7c2ce;--g-color-private-red-950-solid:#fad6df;--g-color-private-red-1000-solid:#fbe0e7;--g-color-private-purple-50-solid:#1f1825;--g-color-private-purple-100-solid:#251b2e;--g-color-private-purple-150-solid:#2b1e37;--g-color-private-purple-200-solid:#38254a;--g-color-private-purple-250-solid:#442b5c;--g-color-private-purple-300-solid:#51326f;--g-color-private-purple-350-solid:#5d3882;--g-color-private-purple-400-solid:#6a3f94;--g-color-private-purple-450-solid:#7645a7;--g-color-private-purple-500-solid:#834cb9;--g-color-private-cool-grey-50-solid:#1a1c20;--g-color-private-cool-grey-100-solid:#1e2227;--g-color-private-cool-grey-150-solid:#22272e;--g-color-private-cool-grey-200-solid:#29323b;--g-color-private-cool-grey-250-solid:#313d49;--g-color-private-cool-grey-300-solid:#394957;--g-color-private-cool-grey-350-solid:#415465;--g-color-private-cool-grey-400-solid:#495f73;--g-color-private-cool-grey-450-solid:#506a80;--g-color-private-cool-grey-500-solid:#58758e;--g-color-private-cool-grey-750-solid:#a0b3c4;--g-color-private-cool-grey-800-solid:#b0c0ce;--g-color-text-primary:var(--g-color-text-light-primary);--g-color-text-complementary:var(--g-color-text-light-complementary);--g-color-text-secondary:var(--g-color-text-light-secondary);--g-color-text-hint:var(--g-color-text-light-hint);--g-color-text-info:var(--g-color-private-blue-650-solid);--g-color-text-positive:var(--g-color-private-green-650-solid);--g-color-text-warning:var(--g-color-private-yellow-650-solid);--g-color-text-danger:var(--g-color-private-red-650-solid);--g-color-text-utility:var(--g-color-private-purple-650-solid);--g-color-text-misc:var(--g-color-private-cool-grey-650-solid);--g-color-text-info-heavy:var(--g-color-private-blue-850-solid);--g-color-text-positive-heavy:var(--g-color-private-green-850-solid);--g-color-text-warning-heavy:var(--g-color-private-yellow-850-solid);--g-color-text-danger-heavy:var(--g-color-private-red-850-solid);--g-color-text-utility-heavy:var(--g-color-private-purple-850-solid);--g-color-text-misc-heavy:var(--g-color-private-cool-grey-850-solid);--g-color-text-brand:var(--g-color-private-yellow-600-solid);--g-color-text-brand-heavy:var(--g-color-private-yellow-700-solid);--g-color-text-brand-contrast:var(--g-color-text-dark-primary);--g-color-text-link:var(--g-color-private-yellow-550-solid);--g-color-text-link-hover:var(--g-color-private-orange-550-solid);--g-color-text-link-visited:var(--g-color-private-purple-650-solid);--g-color-text-link-visited-hover:var(--g-color-private-purple-800-solid);--g-color-text-dark-primary:var(--g-color-private-black-1000-solid);--g-color-text-dark-complementary:var(--g-color-private-black-800);--g-color-text-dark-secondary:var(--g-color-private-black-600);--g-color-text-dark-hint:var(--g-color-private-black-400);--g-color-text-light-primary:var(--g-color-private-white-1000-solid);--g-color-text-light-complementary:var(--g-color-private-white-800);--g-color-text-light-secondary:var(--g-color-private-white-600);--g-color-text-light-hint:var(--g-color-private-white-400);--g-color-text-inverted-primary:var(--g-color-text-dark-primary);--g-color-text-inverted-complementary:var(--g-color-text-dark-complementary);--g-color-text-inverted-secondary:var(--g-color-text-dark-secondary);--g-color-text-inverted-hint:var(--g-color-text-dark-hint);--g-color-base-background:#121112;--g-color-base-generic:var(--g-color-private-white-100);--g-color-base-generic-hover:var(--g-color-private-white-250);--g-color-base-generic-medium:var(--g-color-private-white-250);--g-color-base-generic-medium-hover:var(--g-color-private-white-400);--g-color-base-generic-accent:var(--g-color-private-white-200);--g-color-base-generic-accent-disabled:var(--g-color-private-white-150);--g-color-base-generic-ultralight:var(--g-color-private-white-50);--g-color-base-simple-hover:var(--g-color-private-white-250);--g-color-base-simple-hover-solid:var(--g-color-private-white-250-solid);--g-color-base-brand:var(--g-color-private-yellow-550-solid);--g-color-base-brand-hover:var(--g-color-private-yellow-700-solid);--g-color-base-selection:var(--g-color-private-yellow-250);--g-color-base-selection-hover:var(--g-color-private-yellow-400);--g-color-base-info-light:var(--g-color-private-blue-250);--g-color-base-info-light-hover:var(--g-color-private-blue-400);--g-color-base-info-medium:var(--g-color-private-blue-450);--g-color-base-info-medium-hover:var(--g-color-private-blue-600-solid);--g-color-base-info-heavy:var(--g-color-private-blue-700-solid);--g-color-base-info-heavy-hover:var(--g-color-private-blue-850-solid);--g-color-base-positive-light:var(--g-color-private-green-250);--g-color-base-positive-light-hover:var(--g-color-private-green-400);--g-color-base-positive-medium:var(--g-color-private-green-450);--g-color-base-positive-medium-hover:var(--g-color-private-green-600-solid);--g-color-base-positive-heavy:var(--g-color-private-green-700-solid);--g-color-base-positive-heavy-hover:var(--g-color-private-green-850-solid);--g-color-base-warning-light:var(--g-color-private-yellow-250);--g-color-base-warning-light-hover:var(--g-color-private-yellow-400);--g-color-base-warning-medium:var(--g-color-private-yellow-450);--g-color-base-warning-medium-hover:var(--g-color-private-yellow-600-solid);--g-color-base-warning-heavy:var(--g-color-private-yellow-700-solid);--g-color-base-warning-heavy-hover:var(--g-color-private-yellow-850-solid);--g-color-base-danger-light:var(--g-color-private-red-250);--g-color-base-danger-light-hover:var(--g-color-private-red-400);--g-color-base-danger-medium:var(--g-color-private-red-450);--g-color-base-danger-medium-hover:var(--g-color-private-red-600-solid);--g-color-base-danger-heavy:var(--g-color-private-red-700-solid);--g-color-base-danger-heavy-hover:var(--g-color-private-red-850-solid);--g-color-base-utility-light:var(--g-color-private-purple-250);--g-color-base-utility-light-hover:var(--g-color-private-purple-400);--g-color-base-utility-medium:var(--g-color-private-purple-450);--g-color-base-utility-medium-hover:var(--g-color-private-purple-600-solid);--g-color-base-utility-heavy:var(--g-color-private-purple-700-solid);--g-color-base-utility-heavy-hover:var(--g-color-private-purple-850-solid);--g-color-base-neutral-light:var(--g-color-private-white-200);--g-color-base-neutral-light-hover:var(--g-color-private-white-350);--g-color-base-neutral-medium:var(--g-color-private-white-400);--g-color-base-neutral-medium-hover:var(--g-color-private-white-550);--g-color-base-neutral-heavy:var(--g-color-private-white-650);--g-color-base-neutral-heavy-hover:var(--g-color-private-white-750);--g-color-base-misc-light:var(--g-color-private-cool-grey-250);--g-color-base-misc-light-hover:var(--g-color-private-cool-grey-400);--g-color-base-misc-medium:var(--g-color-private-cool-grey-450);--g-color-base-misc-medium-hover:var(--g-color-private-cool-grey-600-solid);--g-color-base-misc-heavy:var(--g-color-private-cool-grey-700-solid);--g-color-base-misc-heavy-hover:var(--g-color-private-cool-grey-850-solid);--g-color-base-light:var(--g-color-private-white-850);--g-color-base-light-hover:var(--g-color-private-white-700);--g-color-base-light-simple-hover:var(--g-color-private-white-150);--g-color-base-light-disabled:var(--g-color-private-white-150);--g-color-base-light-accent-disabled:var(--g-color-private-white-300);--g-color-base-float:var(--g-color-private-white-100-solid);--g-color-base-float-hover:var(--g-color-private-white-200-solid);--g-color-base-float-medium:var(--g-color-private-white-200-solid);--g-color-base-float-heavy:var(--g-color-private-white-300-solid);--g-color-base-float-accent:var(--g-color-private-white-300-solid);--g-color-base-float-accent-hover:var(--g-color-private-white-400-solid);--g-color-base-float-announcement:var(--g-color-private-white-200-solid);--g-color-base-modal:var(--g-color-base-background);--g-color-line-generic:var(--g-color-private-white-150);--g-color-line-generic-hover:var(--g-color-private-white-250);--g-color-line-generic-active:var(--g-color-private-white-600);--g-color-line-generic-accent:var(--g-color-private-white-350);--g-color-line-generic-accent-hover:var(--g-color-private-white-800);--g-color-line-generic-solid:var(--g-color-private-white-150-solid);--g-color-line-brand:var(--g-color-private-yellow-600-solid);--g-color-line-focus:var(--g-color-private-cool-grey-550-solid);--g-color-line-light:var(--g-color-private-white-500);--g-color-line-info:var(--g-color-private-blue-550-solid);--g-color-line-positive:var(--g-color-private-green-550-solid);--g-color-line-warning:var(--g-color-private-yellow-550-solid);--g-color-line-danger:var(--g-color-private-red-550-solid);--g-color-line-utility:var(--g-color-private-purple-550-solid);--g-color-line-misc:var(--g-color-private-cool-grey-550-solid);--g-color-sfx-veil:var(--g-color-private-black-700);--g-color-sfx-shadow:var(--g-color-private-black-200);--g-color-sfx-shadow-heavy:var(--g-color-private-black-400);--g-color-sfx-shadow-light:var(--g-color-private-black-200);--g-color-sfx-fade:var(--g-color-private-white-250);--g-color-scroll-track:var(--g-color-base-background);--g-color-scroll-handle:var(--g-color-private-white-150);--g-color-scroll-handle-hover:var(--g-color-private-white-250);--g-color-scroll-corner:var(--g-color-private-white-150);--g-color-infographics-axis:var(--g-color-private-white-150-solid);--g-color-infographics-tooltip-bg:var(--g-color-private-white-opaque-150)}.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar){scrollbar-color:var(--g-color-scroll-handle) var(--g-color-scroll-track);scrollbar-width:var(--g-scrollbar-width)}.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar) ::-webkit-scrollbar,.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar)::-webkit-scrollbar{background:var(--g-color-scroll-track);height:var(--g-scrollbar-width);width:var(--g-scrollbar-width)}.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar) ::-webkit-scrollbar-track,.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar)::-webkit-scrollbar-track{background:var(--g-color-scroll-track)}.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar) ::-webkit-scrollbar-corner,.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar)::-webkit-scrollbar-corner{background:var(--g-color-scroll-corner)}.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar) ::-webkit-scrollbar-thumb,.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar)::-webkit-scrollbar-thumb{background:var(--g-color-scroll-handle)}.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar) ::-webkit-scrollbar-thumb:hover,.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar)::-webkit-scrollbar-thumb:hover{background:var(--g-color-scroll-handle-hover)}@keyframes g-loading-animation{0%{background-position:-12px 0}to{background-position:0 0}}:root:has(body.g-root_theme_light),:root:has(body.g-root_theme_light-hc){color-scheme:light}:root:has(body.g-root_theme_dark),:root:has(body.g-root_theme_dark-hc){color-scheme:dark}@media(prefers-reduced-motion:reduce){*,:after,:before{animation-duration:.001ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.001ms!important}}.g-root{--g-text-header-font-weight:500;--g-text-subheader-font-weight:600;--g-text-display-font-weight:500;--g-text-accent-font-weight:500}.g-root_theme_light{--g-color-base-background:#fff;--g-color-base-brand:var(--g-color-private-blue-550-solid);--g-color-base-brand-hover:var(--g-color-private-blue-600-solid);--g-color-base-selection:var(--g-color-private-blue-100);--g-color-base-selection-hover:var(--g-color-private-blue-200);--g-color-line-brand:var(--g-color-private-blue-550-solid);--g-color-text-brand:var(--g-color-private-blue-600-solid);--g-color-text-brand-heavy:var(--g-color-private-blue-700-solid);--g-color-text-brand-contrast:var(--g-color-text-light-primary);--g-color-text-link:var(--g-color-private-blue-600-solid);--g-color-text-link-hover:var(--g-color-private-blue-800-solid);--g-color-private-white-50:#ffffff0d;--g-color-private-white-70:#ffffff12;--g-color-private-white-100:#ffffff1a;--g-color-private-white-150:#ffffff26;--g-color-private-white-200:#fff3;--g-color-private-white-250:#ffffff40;--g-color-private-white-300:#ffffff4d;--g-color-private-white-350:#ffffff59;--g-color-private-white-400:#fff6;--g-color-private-white-450:#ffffff73;--g-color-private-white-500:#ffffff80;--g-color-private-white-550:#ffffff8c;--g-color-private-white-600:#fff9;--g-color-private-white-650:#ffffffa6;--g-color-private-white-700:#ffffffb3;--g-color-private-white-750:#ffffffbf;--g-color-private-white-800:#fffc;--g-color-private-white-850:#ffffffd9;--g-color-private-white-900:#ffffffe6;--g-color-private-white-950:#fffffff2;--g-color-private-white-1000-solid:#fff;--g-color-private-black-50:#0000000d;--g-color-private-black-70:#00000012;--g-color-private-black-100:#0000001a;--g-color-private-black-150:#00000026;--g-color-private-black-200:#0003;--g-color-private-black-250:#00000040;--g-color-private-black-300:#0000004d;--g-color-private-black-350:#00000059;--g-color-private-black-400:#0006;--g-color-private-black-450:#00000073;--g-color-private-black-500:#00000080;--g-color-private-black-550:#0000008c;--g-color-private-black-600:#0009;--g-color-private-black-650:#000000a6;--g-color-private-black-700:#000000b3;--g-color-private-black-750:#000000bf;--g-color-private-black-800:#000c;--g-color-private-black-850:#000000d9;--g-color-private-black-900:#000000e6;--g-color-private-black-950:#000000f2;--g-color-private-black-20-solid:#fafafa;--g-color-private-black-50-solid:#f2f2f2;--g-color-private-black-100-solid:#e5e5e5;--g-color-private-black-150-solid:#d9d9d9;--g-color-private-black-200-solid:#ccc;--g-color-private-black-250-solid:#bfbfbf;--g-color-private-black-300-solid:#b3b3b3;--g-color-private-black-350-solid:#a6a6a6;--g-color-private-black-400-solid:#999;--g-color-private-black-450-solid:#8c8c8c;--g-color-private-black-500-solid:grey;--g-color-private-black-550-solid:#737373;--g-color-private-black-600-solid:#666;--g-color-private-black-650-solid:#595959;--g-color-private-black-700-solid:#4c4c4c;--g-color-private-black-750-solid:#404040;--g-color-private-black-800-solid:#333;--g-color-private-black-850-solid:#262626;--g-color-private-black-900-solid:#1a1a1a;--g-color-private-black-950-solid:#0d0d0d;--g-color-private-black-1000-solid:#000;--g-color-private-blue-50:#5282ff1a;--g-color-private-blue-100:#5282ff26;--g-color-private-blue-150:#5282ff33;--g-color-private-blue-200:#5282ff4d;--g-color-private-blue-250:#5282ff66;--g-color-private-blue-300:#5282ff80;--g-color-private-blue-350:#5282ff99;--g-color-private-blue-400:#5282ffb3;--g-color-private-blue-450:#5282ffcc;--g-color-private-blue-500:#5282ffe6;--g-color-private-blue-50-solid:#eef3ff;--g-color-private-blue-100-solid:#e5ecff;--g-color-private-blue-150-solid:#dce6ff;--g-color-private-blue-200-solid:#cbdaff;--g-color-private-blue-250-solid:#bacdff;--g-color-private-blue-300-solid:#a8c1ff;--g-color-private-blue-350-solid:#97b4ff;--g-color-private-blue-400-solid:#86a8ff;--g-color-private-blue-450-solid:#749bff;--g-color-private-blue-500-solid:#638fff;--g-color-private-blue-550-solid:#5282ff;--g-color-private-blue-600-solid:#4e79eb;--g-color-private-blue-650-solid:#4a71d6;--g-color-private-blue-700-solid:#4768c2;--g-color-private-blue-750-solid:#4360ad;--g-color-private-blue-800-solid:#3f5799;--g-color-private-blue-850-solid:#3c4f85;--g-color-private-blue-900-solid:#384670;--g-color-private-blue-950-solid:#343d5c;--g-color-private-blue-1000-solid:#333952;--g-color-private-green-50:#3bc9351a;--g-color-private-green-100:#3bc93526;--g-color-private-green-150:#3bc93533;--g-color-private-green-200:#3bc9354d;--g-color-private-green-250:#3bc93566;--g-color-private-green-300:#3bc93580;--g-color-private-green-350:#3bc93599;--g-color-private-green-400:#3bc935b3;--g-color-private-green-450:#3bc935cc;--g-color-private-green-500:#3bc935e6;--g-color-private-green-50-solid:#ebfaeb;--g-color-private-green-100-solid:#e2f7e1;--g-color-private-green-150-solid:#d8f4d7;--g-color-private-green-200-solid:#c4efc2;--g-color-private-green-250-solid:#b1e9ae;--g-color-private-green-300-solid:#9de49a;--g-color-private-green-350-solid:#89df86;--g-color-private-green-400-solid:#76d972;--g-color-private-green-450-solid:#62d45d;--g-color-private-green-500-solid:#4fce49;--g-color-private-green-550-solid:#3bc935;--g-color-private-green-600-solid:#3ab935;--g-color-private-green-650-solid:#38aa35;--g-color-private-green-700-solid:#379a34;--g-color-private-green-750-solid:#358a34;--g-color-private-green-800-solid:#347b34;--g-color-private-green-850-solid:#336b34;--g-color-private-green-900-solid:#315b34;--g-color-private-green-950-solid:#304b33;--g-color-private-green-1000-solid:#2f4433;--g-color-private-yellow-50:#ffdb4d1a;--g-color-private-yellow-100:#ffdb4d26;--g-color-private-yellow-150:#ffdb4d33;--g-color-private-yellow-200:#ffdb4d4d;--g-color-private-yellow-250:#ffdb4d66;--g-color-private-yellow-300:#ffdb4d80;--g-color-private-yellow-350:#ffdb4d99;--g-color-private-yellow-400:#ffdb4db3;--g-color-private-yellow-450:#ffdb4dcc;--g-color-private-yellow-500:#ffdb4de6;--g-color-private-yellow-50-solid:#fffbed;--g-color-private-yellow-100-solid:#fffae4;--g-color-private-yellow-150-solid:#fff8db;--g-color-private-yellow-200-solid:#fff4ca;--g-color-private-yellow-250-solid:#fff1b8;--g-color-private-yellow-300-solid:#ffeda6;--g-color-private-yellow-350-solid:#ffe994;--g-color-private-yellow-400-solid:#ffe682;--g-color-private-yellow-450-solid:#ffe271;--g-color-private-yellow-500-solid:#ffdf5f;--g-color-private-yellow-550-solid:#ffdb4d;--g-color-private-yellow-600-solid:#eac94a;--g-color-private-yellow-650-solid:#d5b848;--g-color-private-yellow-700-solid:#c0a645;--g-color-private-yellow-750-solid:#ab9543;--g-color-private-yellow-800-solid:#968340;--g-color-private-yellow-850-solid:#81723d;--g-color-private-yellow-900-solid:#6c603b;--g-color-private-yellow-950-solid:#574f38;--g-color-private-yellow-1000-solid:#4d4637;--g-color-private-orange-50:#ff77001a;--g-color-private-orange-100:#ff770026;--g-color-private-orange-150:#f703;--g-color-private-orange-200:#ff77004d;--g-color-private-orange-250:#f706;--g-color-private-orange-300:#ff770080;--g-color-private-orange-350:#f709;--g-color-private-orange-400:#ff7700b3;--g-color-private-orange-450:#f70c;--g-color-private-orange-500:#ff7700e6;--g-color-private-orange-50-solid:#fff1e6;--g-color-private-orange-100-solid:#ffebd9;--g-color-private-orange-150-solid:#ffe4cc;--g-color-private-orange-200-solid:#ffd6b3;--g-color-private-orange-250-solid:#ffc999;--g-color-private-orange-300-solid:#ffbb80;--g-color-private-orange-350-solid:#ffad66;--g-color-private-orange-400-solid:#ffa04c;--g-color-private-orange-450-solid:#ff9233;--g-color-private-orange-500-solid:#ff851a;--g-color-private-orange-550-solid:#f70;--g-color-private-orange-600-solid:#ea7005;--g-color-private-orange-650-solid:#d5680a;--g-color-private-orange-700-solid:#c0600f;--g-color-private-orange-750-solid:#ab5914;--g-color-private-orange-800-solid:#965119;--g-color-private-orange-850-solid:#814a1f;--g-color-private-orange-900-solid:#6c4324;--g-color-private-orange-950-solid:#573b29;--g-color-private-orange-1000-solid:#4d372b;--g-color-private-red-50:#ff04001a;--g-color-private-red-100:#ff040026;--g-color-private-red-150:#ff040033;--g-color-private-red-200:#ff04004d;--g-color-private-red-250:#ff040066;--g-color-private-red-300:#ff040080;--g-color-private-red-350:#ff040099;--g-color-private-red-400:#ff0400b3;--g-color-private-red-450:#ff0400cc;--g-color-private-red-500:#ff0400e6;--g-color-private-red-50-solid:#ffe6e6;--g-color-private-red-100-solid:#ffd9d9;--g-color-private-red-150-solid:#ffcdcc;--g-color-private-red-200-solid:#ffb4b3;--g-color-private-red-250-solid:#ff9b99;--g-color-private-red-300-solid:#ff8280;--g-color-private-red-350-solid:#ff6966;--g-color-private-red-400-solid:#ff504c;--g-color-private-red-450-solid:#ff3733;--g-color-private-red-500-solid:#ff1e1a;--g-color-private-red-550-solid:#ff0400;--g-color-private-red-600-solid:#ea0805;--g-color-private-red-650-solid:#d50c0a;--g-color-private-red-700-solid:#c0100f;--g-color-private-red-750-solid:#ab1414;--g-color-private-red-800-solid:#961819;--g-color-private-red-850-solid:#811c1f;--g-color-private-red-900-solid:#6c2024;--g-color-private-red-950-solid:#572429;--g-color-private-red-1000-solid:#4d262b;--g-color-private-purple-50:#8f52cc1a;--g-color-private-purple-100:#8f52cc26;--g-color-private-purple-150:#8f52cc33;--g-color-private-purple-200:#8f52cc4d;--g-color-private-purple-250:#8f52cc66;--g-color-private-purple-300:#8f52cc80;--g-color-private-purple-350:#8f52cc99;--g-color-private-purple-400:#8f52ccb3;--g-color-private-purple-450:#8f52cccc;--g-color-private-purple-500:#8f52cce6;--g-color-private-purple-50-solid:#f4eefa;--g-color-private-purple-100-solid:#eee5f7;--g-color-private-purple-150-solid:#e9dcf5;--g-color-private-purple-200-solid:#ddcbf0;--g-color-private-purple-250-solid:#d2baeb;--g-color-private-purple-300-solid:#c7a9e6;--g-color-private-purple-350-solid:#bc97e0;--g-color-private-purple-400-solid:#b186db;--g-color-private-purple-450-solid:#a575d6;--g-color-private-purple-500-solid:#9a63d1;--g-color-private-purple-550-solid:#8f52cc;--g-color-private-purple-600-solid:#854ebd;--g-color-private-purple-650-solid:#7b4aad;--g-color-private-purple-700-solid:#72479e;--g-color-private-purple-750-solid:#68438f;--g-color-private-purple-800-solid:#5e3f80;--g-color-private-purple-850-solid:#543b70;--g-color-private-purple-900-solid:#4a3761;--g-color-private-purple-950-solid:#413452;--g-color-private-purple-1000-solid:#3c324a;--g-color-private-cool-grey-50:#6b84991a;--g-color-private-cool-grey-100:#6b849926;--g-color-private-cool-grey-150:#6b849933;--g-color-private-cool-grey-200:#6b84994d;--g-color-private-cool-grey-250:#6b849966;--g-color-private-cool-grey-300:#6b849980;--g-color-private-cool-grey-350:#6b849999;--g-color-private-cool-grey-400:#6b8499b3;--g-color-private-cool-grey-450:#6b8499cc;--g-color-private-cool-grey-500:#6b8499e6;--g-color-private-cool-grey-50-solid:#f0f3f5;--g-color-private-cool-grey-100-solid:#e9edf0;--g-color-private-cool-grey-150-solid:#e1e6eb;--g-color-private-cool-grey-200-solid:#d3dae0;--g-color-private-cool-grey-250-solid:#c4ced6;--g-color-private-cool-grey-300-solid:#b5c1cc;--g-color-private-cool-grey-350-solid:#a6b5c2;--g-color-private-cool-grey-400-solid:#97a9b8;--g-color-private-cool-grey-450-solid:#899dad;--g-color-private-cool-grey-500-solid:#7a90a3;--g-color-private-cool-grey-550-solid:#6b8499;--g-color-private-cool-grey-600-solid:#657b8f;--g-color-private-cool-grey-650-solid:#5f7285;--g-color-private-cool-grey-700-solid:#586a7a;--g-color-private-cool-grey-750-solid:#526170;--g-color-private-cool-grey-800-solid:#4c5866;--g-color-private-cool-grey-850-solid:#464f5c;--g-color-private-cool-grey-900-solid:#404652;--g-color-private-cool-grey-950-solid:#393e47;--g-color-private-cool-grey-1000-solid:#363942}.g-root_theme_light-hc{--g-color-base-background:#fff;--g-color-base-brand:var(--g-color-private-blue-600-solid);--g-color-base-brand-hover:var(--g-color-private-blue-800-solid);--g-color-base-selection:var(--g-color-private-blue-250);--g-color-base-selection-hover:var(--g-color-private-blue-350);--g-color-line-brand:var(--g-color-private-blue-600-solid);--g-color-text-brand:var(--g-color-private-blue-650-solid);--g-color-text-brand-heavy:var(--g-color-private-blue-900-solid);--g-color-text-brand-contrast:var(--g-color-text-light-primary);--g-color-text-link:var(--g-color-private-blue-650-solid);--g-color-text-link-hover:var(--g-color-private-blue-850-solid);--g-color-private-white-50:#ffffff0d;--g-color-private-white-70:#ffffff12;--g-color-private-white-100:#ffffff1a;--g-color-private-white-150:#ffffff26;--g-color-private-white-200:#fff3;--g-color-private-white-250:#ffffff40;--g-color-private-white-300:#ffffff4d;--g-color-private-white-350:#ffffff59;--g-color-private-white-400:#fff6;--g-color-private-white-450:#ffffff73;--g-color-private-white-500:#ffffff80;--g-color-private-white-550:#ffffff8c;--g-color-private-white-600:#fff9;--g-color-private-white-650:#ffffffa6;--g-color-private-white-700:#ffffffb3;--g-color-private-white-750:#ffffffbf;--g-color-private-white-800:#fffc;--g-color-private-white-850:#ffffffd9;--g-color-private-white-900:#ffffffe6;--g-color-private-white-950:#fffffff2;--g-color-private-white-1000-solid:#fff;--g-color-private-black-50:#0000000d;--g-color-private-black-100:#0000001a;--g-color-private-black-150:#00000026;--g-color-private-black-200:#0003;--g-color-private-black-250:#00000040;--g-color-private-black-300:#0000004d;--g-color-private-black-350:#00000059;--g-color-private-black-400:#0006;--g-color-private-black-450:#00000073;--g-color-private-black-500:#00000080;--g-color-private-black-550:#0000008c;--g-color-private-black-600:#0009;--g-color-private-black-650:#000000a6;--g-color-private-black-700:#000000b3;--g-color-private-black-750:#000000bf;--g-color-private-black-800:#000c;--g-color-private-black-850:#000000d9;--g-color-private-black-900:#000000e6;--g-color-private-black-950:#000000f2;--g-color-private-black-50-solid:#f2f2f2;--g-color-private-black-100-solid:#e5e5e5;--g-color-private-black-150-solid:#d9d9d9;--g-color-private-black-200-solid:#ccc;--g-color-private-black-250-solid:#bfbfbf;--g-color-private-black-300-solid:#b3b3b3;--g-color-private-black-350-solid:#a6a6a6;--g-color-private-black-400-solid:#999;--g-color-private-black-450-solid:#8c8c8c;--g-color-private-black-500-solid:grey;--g-color-private-black-550-solid:#737373;--g-color-private-black-600-solid:#666;--g-color-private-black-650-solid:#595959;--g-color-private-black-700-solid:#4c4c4c;--g-color-private-black-750-solid:#404040;--g-color-private-black-800-solid:#333;--g-color-private-black-850-solid:#262626;--g-color-private-black-900-solid:#1a1a1a;--g-color-private-black-950-solid:#0d0d0d;--g-color-private-black-1000-solid:#000;--g-color-private-blue-50:#5282ff1a;--g-color-private-blue-100:#5282ff26;--g-color-private-blue-150:#5282ff33;--g-color-private-blue-200:#5282ff4d;--g-color-private-blue-250:#5282ff66;--g-color-private-blue-300:#5282ff80;--g-color-private-blue-350:#5282ff99;--g-color-private-blue-400:#5282ffb3;--g-color-private-blue-450:#5282ffcc;--g-color-private-blue-500:#5282ffe6;--g-color-private-blue-50-solid:#eef3ff;--g-color-private-blue-100-solid:#e5ecff;--g-color-private-blue-150-solid:#dce6ff;--g-color-private-blue-200-solid:#cbdaff;--g-color-private-blue-250-solid:#bacdff;--g-color-private-blue-300-solid:#a8c1ff;--g-color-private-blue-350-solid:#97b4ff;--g-color-private-blue-400-solid:#86a8ff;--g-color-private-blue-450-solid:#749bff;--g-color-private-blue-500-solid:#638fff;--g-color-private-blue-550-solid:#5282ff;--g-color-private-blue-600-solid:#4d79e9;--g-color-private-blue-650-solid:#486fd4;--g-color-private-blue-700-solid:#4366be;--g-color-private-blue-750-solid:#3f5ca8;--g-color-private-blue-800-solid:#3a5393;--g-color-private-blue-850-solid:#35497d;--g-color-private-blue-900-solid:#304067;--g-color-private-blue-950-solid:#2c3651;--g-color-private-blue-1000-solid:#293147;--g-color-private-green-50:#3bc9351a;--g-color-private-green-100:#3bc93526;--g-color-private-green-150:#3bc93533;--g-color-private-green-200:#3bc9354d;--g-color-private-green-250:#3bc93566;--g-color-private-green-300:#3bc93580;--g-color-private-green-350:#3bc93599;--g-color-private-green-400:#3bc935b3;--g-color-private-green-450:#3bc935cc;--g-color-private-green-500:#3bc935e6;--g-color-private-green-50-solid:#ebfaeb;--g-color-private-green-100-solid:#e2f7e1;--g-color-private-green-150-solid:#d8f4d7;--g-color-private-green-200-solid:#c4efc2;--g-color-private-green-250-solid:#b1e9ae;--g-color-private-green-300-solid:#9de49a;--g-color-private-green-350-solid:#89df86;--g-color-private-green-400-solid:#76d972;--g-color-private-green-450-solid:#62d45d;--g-color-private-green-500-solid:#4fce49;--g-color-private-green-550-solid:#3bc935;--g-color-private-green-600-solid:#38b833;--g-color-private-green-650-solid:#36a832;--g-color-private-green-700-solid:#339730;--g-color-private-green-750-solid:#31872f;--g-color-private-green-800-solid:#2f762e;--g-color-private-green-850-solid:#2c652c;--g-color-private-green-900-solid:#29552b;--g-color-private-green-950-solid:#274429;--g-color-private-green-1000-solid:#263c28;--g-color-private-yellow-50:#ffdb4d1a;--g-color-private-yellow-100:#ffdb4d26;--g-color-private-yellow-150:#ffdb4d33;--g-color-private-yellow-200:#ffdb4d4d;--g-color-private-yellow-250:#ffdb4d66;--g-color-private-yellow-300:#ffdb4d80;--g-color-private-yellow-350:#ffdb4d99;--g-color-private-yellow-400:#ffdb4db3;--g-color-private-yellow-450:#ffdb4dcc;--g-color-private-yellow-500:#ffdb4de6;--g-color-private-yellow-50-solid:#fffbed;--g-color-private-yellow-100-solid:#fffae4;--g-color-private-yellow-150-solid:#fff8db;--g-color-private-yellow-200-solid:#fff4ca;--g-color-private-yellow-250-solid:#fff1b8;--g-color-private-yellow-300-solid:#ffeda6;--g-color-private-yellow-350-solid:#ffe994;--g-color-private-yellow-400-solid:#ffe682;--g-color-private-yellow-450-solid:#ffe271;--g-color-private-yellow-500-solid:#ffdf5f;--g-color-private-yellow-550-solid:#ffdb4d;--g-color-private-yellow-600-solid:#e9c949;--g-color-private-yellow-650-solid:#d3b645;--g-color-private-yellow-700-solid:#bda441;--g-color-private-yellow-750-solid:#a7913d;--g-color-private-yellow-800-solid:#907f3a;--g-color-private-yellow-850-solid:#7a6d36;--g-color-private-yellow-900-solid:#645a32;--g-color-private-yellow-950-solid:#4e482e;--g-color-private-yellow-1000-solid:#433f2c;--g-color-private-orange-50:#ff77001a;--g-color-private-orange-100:#ff770026;--g-color-private-orange-150:#f703;--g-color-private-orange-200:#ff77004d;--g-color-private-orange-250:#f706;--g-color-private-orange-300:#ff770080;--g-color-private-orange-350:#f709;--g-color-private-orange-400:#ff7700b3;--g-color-private-orange-450:#f70c;--g-color-private-orange-500:#ff7700e6;--g-color-private-orange-50-solid:#fff1e6;--g-color-private-orange-100-solid:#ffebd9;--g-color-private-orange-150-solid:#ffe4cc;--g-color-private-orange-200-solid:#ffd6b3;--g-color-private-orange-250-solid:#ffc999;--g-color-private-orange-300-solid:#ffbb80;--g-color-private-orange-350-solid:#ffad66;--g-color-private-orange-400-solid:#ffa04c;--g-color-private-orange-450-solid:#ff9233;--g-color-private-orange-500-solid:#ff851a;--g-color-private-orange-550-solid:#f70;--g-color-private-orange-600-solid:#e96f04;--g-color-private-orange-650-solid:#d36608;--g-color-private-orange-700-solid:#bd5e0b;--g-color-private-orange-750-solid:#a7550f;--g-color-private-orange-800-solid:#904d13;--g-color-private-orange-850-solid:#7a4517;--g-color-private-orange-900-solid:#643c1b;--g-color-private-orange-950-solid:#4e341e;--g-color-private-orange-1000-solid:#433020;--g-color-private-red-50:#ff04001a;--g-color-private-red-100:#ff040026;--g-color-private-red-150:#ff040033;--g-color-private-red-200:#ff04004d;--g-color-private-red-250:#ff040066;--g-color-private-red-300:#ff040080;--g-color-private-red-350:#ff040099;--g-color-private-red-400:#ff0400b3;--g-color-private-red-450:#ff0400cc;--g-color-private-red-500:#ff0400e6;--g-color-private-red-50-solid:#ffe6e6;--g-color-private-red-100-solid:#ffd9d9;--g-color-private-red-150-solid:#ffcdcc;--g-color-private-red-200-solid:#ffb4b3;--g-color-private-red-250-solid:#ff9b99;--g-color-private-red-300-solid:#ff8280;--g-color-private-red-350-solid:#ff6966;--g-color-private-red-400-solid:#ff504c;--g-color-private-red-450-solid:#ff3733;--g-color-private-red-500-solid:#ff1e1a;--g-color-private-red-550-solid:#ff0400;--g-color-private-red-600-solid:#e90804;--g-color-private-red-650-solid:#d30b08;--g-color-private-red-700-solid:#bd0e0b;--g-color-private-red-750-solid:#a6110f;--g-color-private-red-800-solid:#901413;--g-color-private-red-850-solid:#7a1717;--g-color-private-red-900-solid:#641a1b;--g-color-private-red-950-solid:#4e1d1e;--g-color-private-red-1000-solid:#431e20;--g-color-private-purple-50:#8f52cc1a;--g-color-private-purple-100:#8f52cc26;--g-color-private-purple-150:#8f52cc33;--g-color-private-purple-200:#8f52cc4d;--g-color-private-purple-250:#8f52cc66;--g-color-private-purple-300:#8f52cc80;--g-color-private-purple-350:#8f52cc99;--g-color-private-purple-400:#8f52ccb3;--g-color-private-purple-450:#8f52cccc;--g-color-private-purple-500:#8f52cce6;--g-color-private-purple-50-solid:#f4eefa;--g-color-private-purple-100-solid:#eee5f7;--g-color-private-purple-150-solid:#e9dcf5;--g-color-private-purple-200-solid:#ddcbf0;--g-color-private-purple-250-solid:#d2baeb;--g-color-private-purple-300-solid:#c7a9e6;--g-color-private-purple-350-solid:#bc97e0;--g-color-private-purple-400-solid:#b186db;--g-color-private-purple-450-solid:#a575d6;--g-color-private-purple-500-solid:#9a63d1;--g-color-private-purple-550-solid:#8f52cc;--g-color-private-purple-600-solid:#844dbb;--g-color-private-purple-650-solid:#7949ab;--g-color-private-purple-700-solid:#6e449a;--g-color-private-purple-750-solid:#633f8a;--g-color-private-purple-800-solid:#593b79;--g-color-private-purple-850-solid:#4e3668;--g-color-private-purple-900-solid:#433158;--g-color-private-purple-950-solid:#382c47;--g-color-private-purple-1000-solid:#322a3f;--g-color-private-cool-grey-50:#6b84991a;--g-color-private-cool-grey-100:#6b849926;--g-color-private-cool-grey-150:#6b849933;--g-color-private-cool-grey-200:#6b84994d;--g-color-private-cool-grey-250:#6b849966;--g-color-private-cool-grey-300:#6b849980;--g-color-private-cool-grey-350:#6b849999;--g-color-private-cool-grey-400:#6b8499b3;--g-color-private-cool-grey-450:#6b8499cc;--g-color-private-cool-grey-500:#6b8499e6;--g-color-private-cool-grey-50-solid:#f0f3f5;--g-color-private-cool-grey-100-solid:#e9edf0;--g-color-private-cool-grey-150-solid:#e1e6eb;--g-color-private-cool-grey-200-solid:#d3dae0;--g-color-private-cool-grey-250-solid:#c4ced6;--g-color-private-cool-grey-300-solid:#b5c1cc;--g-color-private-cool-grey-350-solid:#a6b5c2;--g-color-private-cool-grey-400-solid:#97a9b8;--g-color-private-cool-grey-450-solid:#899dad;--g-color-private-cool-grey-500-solid:#7a90a3;--g-color-private-cool-grey-550-solid:#6b8499;--g-color-private-cool-grey-600-solid:#647a8e;--g-color-private-cool-grey-650-solid:#5c7182;--g-color-private-cool-grey-700-solid:#556776;--g-color-private-cool-grey-750-solid:#4e5d6b;--g-color-private-cool-grey-800-solid:#465360;--g-color-private-cool-grey-850-solid:#3f4a54;--g-color-private-cool-grey-900-solid:#384049;--g-color-private-cool-grey-950-solid:#31363d;--g-color-private-cool-grey-1000-solid:#2d3237}.g-root_theme_dark{--g-color-base-background:#2d2c33;--g-color-base-brand:var(--g-color-private-blue-450-solid);--g-color-base-brand-hover:var(--g-color-private-blue-600-solid);--g-color-base-selection:var(--g-color-private-blue-150);--g-color-base-selection-hover:var(--g-color-private-blue-200);--g-color-line-brand:var(--g-color-private-blue-550-solid);--g-color-text-brand:var(--g-color-private-blue-550-solid);--g-color-text-brand-heavy:var(--g-color-private-blue-600-solid);--g-color-text-brand-contrast:var(--g-color-text-light-primary);--g-color-text-link:var(--g-color-private-blue-550-solid);--g-color-text-link-hover:var(--g-color-private-blue-700-solid);--g-color-private-white-20:#ffffff05;--g-color-private-white-50:#ffffff0d;--g-color-private-white-70:#ffffff12;--g-color-private-white-100:#ffffff1a;--g-color-private-white-150:#ffffff26;--g-color-private-white-200:#fff3;--g-color-private-white-250:#ffffff40;--g-color-private-white-300:#ffffff4d;--g-color-private-white-350:#ffffff59;--g-color-private-white-400:#fff6;--g-color-private-white-450:#ffffff73;--g-color-private-white-500:#ffffff80;--g-color-private-white-550:#ffffff8c;--g-color-private-white-600:#fff9;--g-color-private-white-650:#ffffffa6;--g-color-private-white-700:#ffffffb3;--g-color-private-white-750:#ffffffbf;--g-color-private-white-800:#fffc;--g-color-private-white-850:#ffffffd9;--g-color-private-white-900:#ffffffe6;--g-color-private-white-950:#fffffff2;--g-color-private-white-20-solid:#313037;--g-color-private-white-50-solid:#38373d;--g-color-private-white-70-solid:#3c3b41;--g-color-private-white-100-solid:#424147;--g-color-private-white-150-solid:#4d4c52;--g-color-private-white-200-solid:#57565c;--g-color-private-white-250-solid:#616166;--g-color-private-white-300-solid:#6c6b70;--g-color-private-white-350-solid:#77767a;--g-color-private-white-400-solid:#818085;--g-color-private-white-450-solid:#8b8b8f;--g-color-private-white-500-solid:#969699;--g-color-private-white-550-solid:#a0a0a3;--g-color-private-white-600-solid:#ababad;--g-color-private-white-650-solid:#b6b5b8;--g-color-private-white-700-solid:#c0c0c2;--g-color-private-white-750-solid:#cacacc;--g-color-private-white-800-solid:#d5d5d6;--g-color-private-white-850-solid:#dfdfe0;--g-color-private-white-900-solid:#eaeaeb;--g-color-private-white-950-solid:#f5f5f5;--g-color-private-white-1000-solid:#fff;--g-color-private-white-opaque-150:#4c4b51f2;--g-color-private-black-20:#00000005;--g-color-private-black-50:#0000000d;--g-color-private-black-100:#0000001a;--g-color-private-black-150:#00000026;--g-color-private-black-200:#0003;--g-color-private-black-250:#00000040;--g-color-private-black-300:#0000004d;--g-color-private-black-350:#00000059;--g-color-private-black-400:#0006;--g-color-private-black-450:#00000073;--g-color-private-black-500:#00000080;--g-color-private-black-550:#0000008c;--g-color-private-black-600:#0009;--g-color-private-black-650:#000000a6;--g-color-private-black-700:#000000b3;--g-color-private-black-750:#000000bf;--g-color-private-black-800:#000c;--g-color-private-black-850:#000000d9;--g-color-private-black-900:#000000e6;--g-color-private-black-950:#000000f2;--g-color-private-black-1000-solid:#000;--g-color-private-black-rock-850:#2d2c33;--g-color-private-blue-50:#5282ff1a;--g-color-private-blue-100:#5282ff26;--g-color-private-blue-150:#5282ff33;--g-color-private-blue-200:#5282ff4d;--g-color-private-blue-250:#5282ff66;--g-color-private-blue-300:#5282ff80;--g-color-private-blue-350:#5282ff99;--g-color-private-blue-400:#5282ffb3;--g-color-private-blue-450:#5282ffcc;--g-color-private-blue-500:#5282ffe6;--g-color-private-blue-50-solid:#313547;--g-color-private-blue-100-solid:#333952;--g-color-private-blue-150-solid:#343d5c;--g-color-private-blue-200-solid:#384670;--g-color-private-blue-250-solid:#3c4e85;--g-color-private-blue-300-solid:#405799;--g-color-private-blue-350-solid:#4360ad;--g-color-private-blue-400-solid:#4768c2;--g-color-private-blue-450-solid:#4b71d6;--g-color-private-blue-500-solid:#4e79eb;--g-color-private-blue-550-solid:#5282ff;--g-color-private-blue-600-solid:#638fff;--g-color-private-blue-650-solid:#759bff;--g-color-private-blue-700-solid:#86a8ff;--g-color-private-blue-750-solid:#97b4ff;--g-color-private-blue-800-solid:#a9c1ff;--g-color-private-blue-850-solid:#bacdff;--g-color-private-blue-900-solid:#cbdaff;--g-color-private-blue-950-solid:#dce6ff;--g-color-private-blue-1000-solid:#e5ecff;--g-color-private-green-50:#5bb5571a;--g-color-private-green-100:#5bb55726;--g-color-private-green-150:#5bb55733;--g-color-private-green-200:#5bb5574d;--g-color-private-green-250:#5bb55766;--g-color-private-green-300:#5bb55780;--g-color-private-green-350:#5bb55799;--g-color-private-green-400:#5bb557b3;--g-color-private-green-450:#5bb557cc;--g-color-private-green-500:#5bb557e6;--g-color-private-green-50-solid:#323a37;--g-color-private-green-100-solid:#344138;--g-color-private-green-150-solid:#36473a;--g-color-private-green-200-solid:#3b553e;--g-color-private-green-250-solid:#3f6341;--g-color-private-green-300-solid:#447145;--g-color-private-green-350-solid:#497e49;--g-color-private-green-400-solid:#4d8c4c;--g-color-private-green-450-solid:#529a50;--g-color-private-green-500-solid:#56a753;--g-color-private-green-550-solid:#5bb557;--g-color-private-green-600-solid:#6bbc68;--g-color-private-green-650-solid:#7cc479;--g-color-private-green-700-solid:#8ccb89;--g-color-private-green-750-solid:#9dd39a;--g-color-private-green-800-solid:#addaab;--g-color-private-green-850-solid:#bde1bc;--g-color-private-green-900-solid:#cee9cd;--g-color-private-green-950-solid:#def0dd;--g-color-private-green-1000-solid:#e6f4e6;--g-color-private-yellow-50:#ffcb001a;--g-color-private-yellow-100:#ffcb0026;--g-color-private-yellow-150:#ffcb0033;--g-color-private-yellow-200:#ffcb004d;--g-color-private-yellow-250:#ffcb0066;--g-color-private-yellow-300:#ffcb0080;--g-color-private-yellow-350:#ffcb0099;--g-color-private-yellow-400:#ffcb00b3;--g-color-private-yellow-450:#ffcb00cc;--g-color-private-yellow-500:#ffcb00e6;--g-color-private-yellow-50-solid:#423c2e;--g-color-private-yellow-100-solid:#4d442b;--g-color-private-yellow-150-solid:#574c29;--g-color-private-yellow-200-solid:#6c5c24;--g-color-private-yellow-250-solid:#816c1f;--g-color-private-yellow-300-solid:#967c19;--g-color-private-yellow-350-solid:#ab8c14;--g-color-private-yellow-400-solid:#c09b0f;--g-color-private-yellow-450-solid:#d5ab0a;--g-color-private-yellow-500-solid:#e9ba04;--g-color-private-yellow-550-solid:#ffcb00;--g-color-private-yellow-600-solid:#ffd01a;--g-color-private-yellow-650-solid:#ffd533;--g-color-private-yellow-700-solid:#ffdb4c;--g-color-private-yellow-750-solid:#ffe066;--g-color-private-yellow-800-solid:#ffe580;--g-color-private-yellow-850-solid:#ffea99;--g-color-private-yellow-900-solid:#ffefb3;--g-color-private-yellow-950-solid:#fff5cc;--g-color-private-yellow-1000-solid:#fff7d9;--g-color-private-orange-50:#c8630c1a;--g-color-private-orange-100:#c8630c26;--g-color-private-orange-150:#c8630c33;--g-color-private-orange-200:#c8630c4d;--g-color-private-orange-250:#c8630c66;--g-color-private-orange-300:#c8630c80;--g-color-private-orange-350:#c8630c99;--g-color-private-orange-400:#c8630cb3;--g-color-private-orange-450:#c8630ccc;--g-color-private-orange-500:#c8630ce6;--g-color-private-orange-50-solid:#3d322f;--g-color-private-orange-100-solid:#44342d;--g-color-private-orange-150-solid:#4c372b;--g-color-private-orange-200-solid:#5c3d27;--g-color-private-orange-250-solid:#6b4223;--g-color-private-orange-300-solid:#7b4720;--g-color-private-orange-350-solid:#8a4d1c;--g-color-private-orange-400-solid:#995218;--g-color-private-orange-450-solid:#a95814;--g-color-private-orange-500-solid:#b95e10;--g-color-private-orange-550-solid:#c8630c;--g-color-private-orange-600-solid:#ce7324;--g-color-private-orange-650-solid:#d3823d;--g-color-private-orange-700-solid:#d89255;--g-color-private-orange-750-solid:#dea16d;--g-color-private-orange-800-solid:#e3b185;--g-color-private-orange-850-solid:#e9c19e;--g-color-private-orange-900-solid:#efd0b6;--g-color-private-orange-950-solid:#f4e0ce;--g-color-private-orange-1000-solid:#f7e8db;--g-color-private-red-50:#e849451a;--g-color-private-red-100:#e8494526;--g-color-private-red-150:#e8494533;--g-color-private-red-200:#e849454d;--g-color-private-red-250:#e8494566;--g-color-private-red-300:#e8494580;--g-color-private-red-350:#e8494599;--g-color-private-red-400:#e84945b3;--g-color-private-red-450:#e84945cc;--g-color-private-red-500:#e84945e6;--g-color-private-red-50-solid:#402f35;--g-color-private-red-100-solid:#493036;--g-color-private-red-150-solid:#523237;--g-color-private-red-200-solid:#653539;--g-color-private-red-250-solid:#78383a;--g-color-private-red-300-solid:#8a3a3c;--g-color-private-red-350-solid:#9d3d3e;--g-color-private-red-400-solid:#b04040;--g-color-private-red-450-solid:#c34341;--g-color-private-red-500-solid:#d54644;--g-color-private-red-550-solid:#e84945;--g-color-private-red-600-solid:#ea5b58;--g-color-private-red-650-solid:#ec6d6b;--g-color-private-red-700-solid:#ef7f7d;--g-color-private-red-750-solid:#f19290;--g-color-private-red-800-solid:#f3a4a2;--g-color-private-red-850-solid:#f6b6b5;--g-color-private-red-900-solid:#f8c8c7;--g-color-private-red-950-solid:#fadbda;--g-color-private-red-1000-solid:#fce4e3;--g-color-private-purple-50:#8f52cc1a;--g-color-private-purple-100:#8f52cc26;--g-color-private-purple-150:#8f52cc33;--g-color-private-purple-200:#8f52cc4d;--g-color-private-purple-250:#8f52cc66;--g-color-private-purple-300:#8f52cc80;--g-color-private-purple-350:#8f52cc99;--g-color-private-purple-400:#8f52ccb3;--g-color-private-purple-450:#8f52cccc;--g-color-private-purple-500:#8f52cce6;--g-color-private-purple-50-solid:#373042;--g-color-private-purple-100-solid:#3c324a;--g-color-private-purple-150-solid:#413452;--g-color-private-purple-200-solid:#4a3761;--g-color-private-purple-250-solid:#543b70;--g-color-private-purple-300-solid:#5e3f80;--g-color-private-purple-350-solid:#68438f;--g-color-private-purple-400-solid:#72479e;--g-color-private-purple-450-solid:#7b4aad;--g-color-private-purple-500-solid:#854ebd;--g-color-private-purple-550-solid:#8f52cc;--g-color-private-purple-600-solid:#9a63d1;--g-color-private-purple-650-solid:#a575d6;--g-color-private-purple-700-solid:#b186db;--g-color-private-purple-750-solid:#bc97e0;--g-color-private-purple-800-solid:#c7a9e6;--g-color-private-purple-850-solid:#d2baeb;--g-color-private-purple-900-solid:#ddcbf0;--g-color-private-purple-950-solid:#e9dcf5;--g-color-private-purple-1000-solid:#eee5f7;--g-color-private-cool-grey-50:#60809c1a;--g-color-private-cool-grey-100:#60809c26;--g-color-private-cool-grey-150:#60809c33;--g-color-private-cool-grey-200:#60809c4d;--g-color-private-cool-grey-250:#60809c66;--g-color-private-cool-grey-300:#60809c80;--g-color-private-cool-grey-350:#60809c99;--g-color-private-cool-grey-400:#60809cb3;--g-color-private-cool-grey-450:#60809ccc;--g-color-private-cool-grey-500:#60809ce6;--g-color-private-cool-grey-50-solid:#32343e;--g-color-private-cool-grey-100-solid:#353943;--g-color-private-cool-grey-150-solid:#373d48;--g-color-private-cool-grey-200-solid:#3c4552;--g-color-private-cool-grey-250-solid:#414e5d;--g-color-private-cool-grey-300-solid:#465667;--g-color-private-cool-grey-350-solid:#4c5e72;--g-color-private-cool-grey-400-solid:#51677d;--g-color-private-cool-grey-450-solid:#566f87;--g-color-private-cool-grey-500-solid:#5b7892;--g-color-private-cool-grey-550-solid:#60809c;--g-color-private-cool-grey-600-solid:#708da6;--g-color-private-cool-grey-650-solid:#8099b0;--g-color-private-cool-grey-700-solid:#90a6ba;--g-color-private-cool-grey-750-solid:#a0b3c3;--g-color-private-cool-grey-800-solid:#b0bfcd;--g-color-private-cool-grey-850-solid:#bfccd7;--g-color-private-cool-grey-900-solid:#cfd9e1;--g-color-private-cool-grey-950-solid:#dfe6eb;--g-color-private-cool-grey-1000-solid:#e7ecf0}.g-root_theme_dark-hc{--g-color-base-background:#222326;--g-color-base-brand:var(--g-color-private-blue-450-solid);--g-color-base-brand-hover:var(--g-color-private-blue-650-solid);--g-color-base-selection:var(--g-color-private-blue-250);--g-color-base-selection-hover:var(--g-color-private-blue-400);--g-color-line-brand:var(--g-color-private-blue-550-solid);--g-color-text-brand:var(--g-color-private-blue-650-solid);--g-color-text-brand-heavy:var(--g-color-private-blue-850-solid);--g-color-text-brand-contrast:var(--g-color-text-light-primary);--g-color-text-link:var(--g-color-private-blue-650-solid);--g-color-text-link-hover:var(--g-color-private-blue-800-solid);--g-color-private-white-50:#ffffff0d;--g-color-private-white-70:#ffffff12;--g-color-private-white-100:#ffffff1a;--g-color-private-white-150:#ffffff26;--g-color-private-white-200:#fff3;--g-color-private-white-250:#ffffff40;--g-color-private-white-300:#ffffff4d;--g-color-private-white-350:#ffffff59;--g-color-private-white-400:#fff6;--g-color-private-white-450:#ffffff73;--g-color-private-white-500:#ffffff80;--g-color-private-white-550:#ffffff8c;--g-color-private-white-600:#fff9;--g-color-private-white-650:#ffffffa6;--g-color-private-white-700:#ffffffb3;--g-color-private-white-750:#ffffffbf;--g-color-private-white-800:#fffc;--g-color-private-white-850:#ffffffd9;--g-color-private-white-900:#ffffffe6;--g-color-private-white-950:#fffffff2;--g-color-private-white-50-solid:#2d2e31;--g-color-private-white-100-solid:#38393c;--g-color-private-white-150-solid:#434447;--g-color-private-white-200-solid:#4e4f51;--g-color-private-white-250-solid:#595a5c;--g-color-private-white-300-solid:#646567;--g-color-private-white-350-solid:#6f7072;--g-color-private-white-400-solid:#7a7b7d;--g-color-private-white-450-solid:#858688;--g-color-private-white-500-solid:#909193;--g-color-private-white-550-solid:#9c9c9d;--g-color-private-white-600-solid:#a7a7a8;--g-color-private-white-650-solid:#b2b2b3;--g-color-private-white-700-solid:#bdbdbe;--g-color-private-white-750-solid:#c8c8c9;--g-color-private-white-800-solid:#d3d3d4;--g-color-private-white-850-solid:#dededf;--g-color-private-white-900-solid:#e9e9e9;--g-color-private-white-950-solid:#f4f4f4;--g-color-private-white-1000-solid:#fff;--g-color-private-white-opaque-150:#38393cf7;--g-color-private-black-20:#00000005;--g-color-private-black-50:#0000000d;--g-color-private-black-100:#0000001a;--g-color-private-black-150:#00000026;--g-color-private-black-200:#0003;--g-color-private-black-250:#00000040;--g-color-private-black-300:#0000004d;--g-color-private-black-350:#00000059;--g-color-private-black-400:#0006;--g-color-private-black-450:#00000073;--g-color-private-black-500:#00000080;--g-color-private-black-550:#0000008c;--g-color-private-black-600:#0009;--g-color-private-black-650:#000000a6;--g-color-private-black-700:#000000b3;--g-color-private-black-750:#000000bf;--g-color-private-black-800:#000c;--g-color-private-black-850:#000000d9;--g-color-private-black-900:#000000e6;--g-color-private-black-950:#000000f2;--g-color-private-black-1000-solid:#000;--g-color-private-black-rock-850:#2d2c33;--g-color-private-black-rock-950:#222326;--g-color-private-blue-50:#5282ff1a;--g-color-private-blue-100:#5282ff26;--g-color-private-blue-150:#5282ff33;--g-color-private-blue-200:#5282ff4d;--g-color-private-blue-250:#5282ff66;--g-color-private-blue-300:#5282ff80;--g-color-private-blue-350:#5282ff99;--g-color-private-blue-400:#5282ffb3;--g-color-private-blue-450:#5282ffcc;--g-color-private-blue-500:#5282ffe6;--g-color-private-blue-50-solid:#272d3c;--g-color-private-blue-100-solid:#293147;--g-color-private-blue-150-solid:#2c3651;--g-color-private-blue-200-solid:#304067;--g-color-private-blue-250-solid:#35497d;--g-color-private-blue-300-solid:#3a5393;--g-color-private-blue-350-solid:#3f5ca8;--g-color-private-blue-400-solid:#4466be;--g-color-private-blue-450-solid:#486fd4;--g-color-private-blue-500-solid:#4d79e9;--g-color-private-blue-550-solid:#5282ff;--g-color-private-blue-600-solid:#638fff;--g-color-private-blue-650-solid:#759bff;--g-color-private-blue-700-solid:#86a8ff;--g-color-private-blue-750-solid:#97b4ff;--g-color-private-blue-800-solid:#a9c1ff;--g-color-private-blue-850-solid:#bacdff;--g-color-private-blue-900-solid:#cbdaff;--g-color-private-blue-950-solid:#dce6ff;--g-color-private-blue-1000-solid:#e5ecff;--g-color-private-green-50:#5bb5571a;--g-color-private-green-100:#5bb55726;--g-color-private-green-150:#000;--g-color-private-green-200:#5bb5574d;--g-color-private-green-250:#5bb55766;--g-color-private-green-300:#5bb55780;--g-color-private-green-350:#5bb55799;--g-color-private-green-400:#5bb557b3;--g-color-private-green-450:#5bb557cc;--g-color-private-green-500:#5bb557e6;--g-color-private-green-50-solid:#28322b;--g-color-private-green-100-solid:#2b392d;--g-color-private-green-150-solid:#2d4030;--g-color-private-green-200-solid:#334f35;--g-color-private-green-250-solid:#395d3a;--g-color-private-green-300-solid:#3f6c3f;--g-color-private-green-350-solid:#447b43;--g-color-private-green-400-solid:#4a8948;--g-color-private-green-450-solid:#50984d;--g-color-private-green-500-solid:#55a652;--g-color-private-green-550-solid:#5bb557;--g-color-private-green-600-solid:#6bbc68;--g-color-private-green-650-solid:#7cc479;--g-color-private-green-700-solid:#8ccb89;--g-color-private-green-750-solid:#9dd39a;--g-color-private-green-800-solid:#addaab;--g-color-private-green-850-solid:#bde1bc;--g-color-private-green-900-solid:#cee9cd;--g-color-private-green-950-solid:#def0dd;--g-color-private-green-1000-solid:#e6f4e6;--g-color-private-yellow-50:#ffcb001a;--g-color-private-yellow-100:#ffcb0026;--g-color-private-yellow-150:#ffcb0033;--g-color-private-yellow-200:#ffcb004d;--g-color-private-yellow-250:#ffcb0066;--g-color-private-yellow-300:#ffcb0080;--g-color-private-yellow-350:#ffcb0099;--g-color-private-yellow-400:#ffcb00b3;--g-color-private-yellow-450:#ffcb00cc;--g-color-private-yellow-500:#ffcb00e6;--g-color-private-yellow-50-solid:#383422;--g-color-private-yellow-100-solid:#433c20;--g-color-private-yellow-150-solid:#4e451e;--g-color-private-yellow-200-solid:#64551b;--g-color-private-yellow-250-solid:#7a6617;--g-color-private-yellow-300-solid:#907713;--g-color-private-yellow-350-solid:#a7880f;--g-color-private-yellow-400-solid:#bd990b;--g-color-private-yellow-450-solid:#d3a908;--g-color-private-yellow-500-solid:#e9ba04;--g-color-private-yellow-550-solid:#ffcb00;--g-color-private-yellow-600-solid:#ffd01a;--g-color-private-yellow-650-solid:#ffd533;--g-color-private-yellow-700-solid:#ffdb4c;--g-color-private-yellow-750-solid:#ffe066;--g-color-private-yellow-800-solid:#ffe580;--g-color-private-yellow-850-solid:#ffea99;--g-color-private-yellow-900-solid:#ffefb3;--g-color-private-yellow-950-solid:#fff5cc;--g-color-private-yellow-1000-solid:#fff7d9;--g-color-private-orange-50:#c8630c1a;--g-color-private-orange-100:#c8630c26;--g-color-private-orange-150:#c8630c33;--g-color-private-orange-200:#c8630c4d;--g-color-private-orange-250:#c8630c66;--g-color-private-orange-300:#c8630c80;--g-color-private-orange-350:#c8630c99;--g-color-private-orange-400:#c8630cb3;--g-color-private-orange-450:#c8630ccc;--g-color-private-orange-500:#c8630ce6;--g-color-private-orange-50-solid:#332923;--g-color-private-orange-100-solid:#3b2d22;--g-color-private-orange-150-solid:#433021;--g-color-private-orange-200-solid:#54361e;--g-color-private-orange-250-solid:#643d1c;--g-color-private-orange-300-solid:#754319;--g-color-private-orange-350-solid:#864916;--g-color-private-orange-400-solid:#965014;--g-color-private-orange-450-solid:#a75611;--g-color-private-orange-500-solid:#b75d0f;--g-color-private-orange-550-solid:#c8630c;--g-color-private-orange-600-solid:#ce7324;--g-color-private-orange-650-solid:#d3823d;--g-color-private-orange-700-solid:#d89255;--g-color-private-orange-750-solid:#dea16d;--g-color-private-orange-800-solid:#e3b185;--g-color-private-orange-850-solid:#e9c19e;--g-color-private-orange-900-solid:#efd0b6;--g-color-private-orange-950-solid:#f4e0ce;--g-color-private-orange-1000-solid:#f7e8db;--g-color-private-red-50:#e849451a;--g-color-private-red-100:#e8494526;--g-color-private-red-150:#e8494533;--g-color-private-red-200:#e849454d;--g-color-private-red-250:#e8494566;--g-color-private-red-300:#e8494580;--g-color-private-red-350:#e8494599;--g-color-private-red-400:#e84945b3;--g-color-private-red-450:#e84945cc;--g-color-private-red-500:#e84945e6;--g-color-private-red-50-solid:#362729;--g-color-private-red-100-solid:#40292b;--g-color-private-red-150-solid:#4a2b2c;--g-color-private-red-200-solid:#5d2e2f;--g-color-private-red-250-solid:#713233;--g-color-private-red-300-solid:#853636;--g-color-private-red-350-solid:#993a39;--g-color-private-red-400-solid:#ac3d3c;--g-color-private-red-450-solid:#c0413f;--g-color-private-red-500-solid:#d44542;--g-color-private-red-550-solid:#e84945;--g-color-private-red-600-solid:#ea5b58;--g-color-private-red-650-solid:#ec6d6b;--g-color-private-red-700-solid:#ef7f7d;--g-color-private-red-750-solid:#f19290;--g-color-private-red-800-solid:#f3a4a2;--g-color-private-red-850-solid:#f6b6b5;--g-color-private-red-900-solid:#f8c8c7;--g-color-private-red-950-solid:#fadbda;--g-color-private-red-1000-solid:#fce4e3;--g-color-private-purple-50:#8f52cc1a;--g-color-private-purple-100:#8f52cc26;--g-color-private-purple-150:#8f52cc33;--g-color-private-purple-200:#8f52cc4d;--g-color-private-purple-250:#8f52cc66;--g-color-private-purple-300:#8f52cc80;--g-color-private-purple-350:#8f52cc99;--g-color-private-purple-400:#8f52ccb3;--g-color-private-purple-450:#8f52cccc;--g-color-private-purple-500:#8f52cce6;--g-color-private-purple-50-solid:#2d2837;--g-color-private-purple-100-solid:#322a3f;--g-color-private-purple-150-solid:#382c47;--g-color-private-purple-200-solid:#433158;--g-color-private-purple-250-solid:#4e3668;--g-color-private-purple-300-solid:#593b79;--g-color-private-purple-350-solid:#633f8a;--g-color-private-purple-400-solid:#6e449a;--g-color-private-purple-450-solid:#7949ab;--g-color-private-purple-500-solid:#844dbb;--g-color-private-purple-550-solid:#8f52cc;--g-color-private-purple-600-solid:#9a63d1;--g-color-private-purple-650-solid:#a575d6;--g-color-private-purple-700-solid:#b186db;--g-color-private-purple-750-solid:#bc97e0;--g-color-private-purple-800-solid:#c7a9e6;--g-color-private-purple-850-solid:#d2baeb;--g-color-private-purple-900-solid:#ddcbf0;--g-color-private-purple-950-solid:#e9dcf5;--g-color-private-purple-1000-solid:#eee5f7;--g-color-private-cool-grey-50:#60809c1a;--g-color-private-cool-grey-100:#60809c26;--g-color-private-cool-grey-150:#60809c33;--g-color-private-cool-grey-200:#60809c4d;--g-color-private-cool-grey-250:#60809c66;--g-color-private-cool-grey-300:#60809c80;--g-color-private-cool-grey-350:#60809c99;--g-color-private-cool-grey-400:#60809cb3;--g-color-private-cool-grey-450:#60809ccc;--g-color-private-cool-grey-500:#60809ce6;--g-color-private-cool-grey-50-solid:#282c32;--g-color-private-cool-grey-100-solid:#2b3138;--g-color-private-cool-grey-150-solid:#2e363e;--g-color-private-cool-grey-200-solid:#353f49;--g-color-private-cool-grey-250-solid:#3b4855;--g-color-private-cool-grey-300-solid:#415161;--g-color-private-cool-grey-350-solid:#475b6d;--g-color-private-cool-grey-400-solid:#4d6479;--g-color-private-cool-grey-450-solid:#546d84;--g-color-private-cool-grey-500-solid:#5a7790;--g-color-private-cool-grey-550-solid:#60809c;--g-color-private-cool-grey-600-solid:#708da6;--g-color-private-cool-grey-650-solid:#8099b0;--g-color-private-cool-grey-700-solid:#90a6ba;--g-color-private-cool-grey-750-solid:#a0b3c3;--g-color-private-cool-grey-800-solid:#b0bfcd;--g-color-private-cool-grey-850-solid:#bfccd7;--g-color-private-cool-grey-900-solid:#cfd9e1;--g-color-private-cool-grey-950-solid:#dfe6eb;--g-color-private-cool-grey-1000-solid:#e7ecf0}.unipika{--color-unipika-default:#a9a9a9;--color-unipika-string:#594c4c;--color-unipika-key:#d36b6b;--color-unipika-null:#594c4c;--color-unipika-int:#0095ff;--color-unipika-uint:#c200ff;--color-unipika-float:#ff00b9;--color-unipika-bool:#00ba0a;--color-unipika-date:#693;--color-unipika-interval:#399;--color-unipika-escape-text:#c7254e;--color-unipika-escape-back:#ffeff3;--color-unipika-binary-back:#fcf8e3;--color-unipika-binary-after:#888;--color-unipika-uuid:#c63;--color-unipika-tag-url:#04b;--color-unipika-tag-url-hover:#c00;color:var(--color-unipika-default);overflow-wrap:break-word;white-space:pre-wrap;word-break:normal}.unipika .pg_category_e,.unipika .pg_category_i,.unipika .pg_category_s,.unipika .string,.unipika .yql_string,.unipika .yql_utf8{color:var(--color-unipika-string)}.unipika .key,.unipika .special-key{color:var(--color-unipika-key)}.unipika .special-key{font-style:italic}.unipika .null,.unipika .yql_null{color:var(--color-unipika-null)}.unipika .null{font-style:italic}.unipika .yql_null{text-transform:uppercase}.unipika .int64,.unipika .number,.unipika .pg_category_n,.unipika .yql_int16,.unipika .yql_int32,.unipika .yql_int64,.unipika .yql_int8{color:var(--color-unipika-int)}.unipika .pg_category_a,.unipika .uint64,.unipika .yql_uint16,.unipika .yql_uint32,.unipika .yql_uint64,.unipika .yql_uint8{color:var(--color-unipika-uint)}.unipika .double,.unipika .pg_category_c,.unipika .yql_decimal,.unipika .yql_double,.unipika .yql_float{color:var(--color-unipika-float)}.unipika .boolean,.unipika .pg_category_b,.unipika .yql_bool,.unipika .yql_enum{color:var(--color-unipika-bool)}.unipika .pg_category_d,.unipika .yql_date,.unipika .yql_date32,.unipika .yql_datetime,.unipika .yql_datetime64,.unipika .yql_timestamp,.unipika .yql_timestamp64,.unipika .yql_tzdate,.unipika .yql_tzdate32,.unipika .yql_tzdatetime,.unipika .yql_tzdatetime64,.unipika .yql_tztimestamp,.unipika .yql_tztimestamp64{color:var(--color-unipika-date)}.unipika .pg_category_t,.unipika .yql_interval,.unipika .yql_interval64{color:var(--color-unipika-interval)}.unipika .yql_tagged.tag_image{vertical-align:top}.unipika .escape{background-color:var(--color-unipika-escape-back);color:var(--color-unipika-escape-text)}.unipika .quote{color:var(--color-unipika-default)}.unipika .binary,.unipika .incomplete,.unipika .pg_category_v{background-color:var(--color-unipika-binary-back)}.unipika .binary:after,.unipika .incomplete:after{color:var(--color-unipika-binary-after);padding-inline-start:.8em}.unipika .incomplete:after{content:"[truncated]";white-space:nowrap}.unipika .binary:after{content:"[binary]";white-space:nowrap}.unipika .incomplete.binary:after{content:"[truncated][binary]";white-space:nowrap}.unipika .pg_category_g,.unipika .yql_uuid{color:var(--color-unipika-uuid)}.unipika .pg_category_g.binary,.unipika .pg_category_g.incomplete,.unipika .yql_uuid.binary,.unipika .yql_uuid.incomplete{background:none}.unipika .pg_category_g.binary:after,.unipika .pg_category_g.incomplete:after,.unipika .yql_uuid.binary:after,.unipika .yql_uuid.incomplete:after{content:"";display:none}.unipika .tag_url{color:var(--color-unipika-tag-url);text-decoration:none}.unipika .tag_url:hover{color:var(--color-unipika-tag-url-hover)}.unipika-wrapper_inline_yes .unipika{display:inline-block}.g-root .unipika{font-family:var(--g-font-family-monospace)}.g-root .unipika-wrapper .g-root .unipika{border:0;margin:0;padding:0}.g-root_theme_dark .unipika,.g-root_theme_dark-hc .unipika{--color-unipika-default:#707070;--color-unipika-string:#9a8e8e;--color-unipika-key:#d36b6b;--color-unipika-null:#9a8e8e;--color-unipika-int:#0095ff;--color-unipika-uint:#c200ff;--color-unipika-float:#ff00b9;--color-unipika-bool:#00ba0a;--color-unipika-date:#693;--color-unipika-interval:#399;--color-unipika-escape-text:#c7254e;--color-unipika-escape-back:#292e1f;--color-unipika-binary-back:#292e1f;--color-unipika-binary-after:#666;--color-unipika-uuid:#c63;--color-unipika-tag-url:#47b;--color-unipika-tag-url-hover:#6af}.g-root_theme_light,.g-root_theme_light-hc{--gil-color-object-base:var(--g-color-private-yellow-550-solid);--gil-color-object-accent-heavy:var(--g-color-private-orange-650-solid);--gil-color-object-hightlight:var(--g-color-private-yellow-350-solid);--gil-color-shadow-over-object:var(--g-color-private-yellow-650-solid);--gil-color-background-lines:var(--g-color-private-black-450-solid);--gil-color-background-shapes:var(--g-color-private-black-50-solid);--gil-color-object-accent-light:var(--g-color-private-white-1000-solid);--gil-color-object-danger:var(--g-color-private-red-550-solid)}.g-root_theme_dark,.g-root_theme_dark-hc{--gil-color-object-base:var(--g-color-private-yellow-550-solid);--gil-color-object-accent-heavy:var(--g-color-private-orange-650-solid);--gil-color-object-hightlight:var(--g-color-private-yellow-700-solid);--gil-color-shadow-over-object:var(--g-color-private-yellow-500-solid);--gil-color-background-lines:var(--g-color-private-white-550-solid);--gil-color-background-shapes:var(--g-color-private-white-200-solid);--gil-color-object-accent-light:var(--g-color-private-white-1000-solid);--gil-color-object-danger:var(--g-color-private-red-550-solid)}.g-root_theme_dark,.g-root_theme_dark-hc,.g-root_theme_light,.g-root_theme_light-hc{--gil-color-object-base:var(--g-color-private-blue-450-solid);--gil-color-object-accent-heavy:var(--g-color-private-blue-850-solid);--gil-color-object-hightlight:var(--g-color-private-blue-350-solid);--gil-color-shadow-over-object:var(--g-color-private-blue-650-solid)}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;margin:0}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/main.bc1b7571.css b/ydb/core/viewer/monitoring/static/css/main.bc1b7571.css deleted file mode 100644 index fa48fab8bc..0000000000 --- a/ydb/core/viewer/monitoring/static/css/main.bc1b7571.css +++ /dev/null @@ -1,9 +0,0 @@ -@charset "UTF-8";@import url(https://fonts.googleapis.com/css2?family=Rubik&display=swap);:root{--data-table-header-vertical-padding:5px;--data-table-cell-vertical-padding:5px;--data-table-cell-horizontal-padding:10px;--data-table-cell-border-padding:var(--data-table-cell-horizontal-padding);--data-table-cell-align:top;--data-table-head-align:top;--data-table-row-height:30px;--data-table-sort-icon-space:18px;--data-table-sort-icon-opacity-inactive:0.15;--data-table-sort-icon-color:inherit}.data-table{box-sizing:border-box;position:relative}.data-table__box{box-sizing:border-box;height:100%;width:100%}.data-table__box_sticky-head_moving{overflow:visible;position:relative;z-index:0}.data-table__box_sticky-head_moving .data-table__th{border-bottom:0;border-top:0;padding-bottom:0;padding-top:0}.data-table__box_sticky-head_moving .data-table__head-cell{display:block;height:0;overflow:hidden}.data-table__box_sticky-head_moving .data-table__row_header-data{visibility:hidden}.data-table__box_sticky-footer_fixed,.data-table__box_sticky-head_fixed{overflow:auto}.data-table__table{border-collapse:collapse;table-layout:fixed}.data-table__table_sticky{background:var(--data-table-color-base);width:100%}.data-table__row{height:var(--data-table-row-height)}.data-table__th{border:1px solid var(--data-table-border-color);box-sizing:border-box;cursor:default;font-weight:500;padding:var(--data-table-header-vertical-padding) var(--data-table-cell-horizontal-padding);position:relative;text-align:left;vertical-align:var(--data-table-head-align)}.data-table__th_sortable{cursor:pointer}.data-table__th_sortable .data-table__head-cell{padding-right:var(--data-table-sort-icon-space)}.data-table__th_sortable.data-table__th_align_right .data-table__head-cell{padding-left:var(--data-table-sort-icon-space);padding-right:0}.data-table__th_sortable.data-table__th_align_right .data-table__sort-icon{left:0;right:auto;transform:translateY(-50%) scaleX(-1)}.data-table__td{border:1px solid var(--data-table-border-color);box-sizing:border-box;overflow:hidden;padding:var(--data-table-cell-vertical-padding) var(--data-table-cell-horizontal-padding);text-overflow:ellipsis;vertical-align:var(--data-table-cell-align);white-space:nowrap}.data-table__td_index,.data-table__th_index{text-align:right}.data-table__td_align_left,.data-table__th_align_left{text-align:left}.data-table__td_align_center,.data-table__th_align_center{text-align:center}.data-table__td_align_right,.data-table__th_align_right{text-align:right}.data-table__td:first-child,.data-table__th:first-child{padding-left:var(--data-table-cell-border-padding)}.data-table__td:last-child,.data-table__th:last-child{padding-right:var(--data-table-cell-border-padding)}.data-table__index{text-align:right}.data-table__head-cell{box-sizing:border-box;display:inline-block;max-width:100%;overflow:hidden;position:relative;text-overflow:ellipsis;vertical-align:top;white-space:nowrap}.data-table__error{padding:20px;white-space:pre-wrap}.data-table__sort-icon{color:var(--data-table-sort-icon-color);display:inline-flex;position:absolute;right:0;top:50%;transform:translateY(-50%)}.data-table__sort-icon:after{content:attr(data-index);font-size:8px;left:100%;position:absolute;top:-5px}.data-table__sort-icon_shadow{opacity:var(--data-table-sort-icon-opacity-inactive)}.data-table__sort-icon_shadow:after{content:none}.data-table__icon{vertical-align:top}.data-table__no-data{background:var(--data-table-color-stripe)}.data-table__sticky_fixed{left:0;overflow:hidden;position:absolute;right:0;z-index:1}.data-table__sticky_fixed.data-table__sticky_head{top:0}.data-table__sticky_fixed.data-table__sticky_footer{bottom:0}.data-table__sticky_moving{margin-bottom:-1px;position:sticky;z-index:1}.data-table_striped-rows .data-table__row_odd{background:var(--data-table-color-stripe)}.data-table_highlight-rows .data-table__row:hover{background:var(--data-table-color-hover-area)}.data-table_header_multiline .data-table__head-cell{white-space:normal}.data-table_header_pre .data-table__head-cell{white-space:pre}.data-table__foot{background:var(--data-table-color-footer-area)}.data-table__foot_has-sticky-footer_moving{visibility:hidden}.data-table_theme_yandex-cloud{--data-table-color-base:var(--g-color-base-background,var(--yc-color-base-background));--data-table-color-stripe:var( --g-color-base-generic-ultralight,var(--yc-color-base-generic-ultralight) );--data-table-border-color:var( --g-color-base-generic-hover,var(--yc-color-base-generic-hover) );--data-table-color-hover-area:var( --g-color-base-simple-hover,var(--yc-color-base-simple-hover) );--data-table-color-footer-area:var(--data-table-color-base)}.data-table_theme_legacy{--data-table-color-base:#fff;--data-table-color-stripe:#00000008;--data-table-border-color:#ddd;--data-table-color-hover-area:#ffeba0;--data-table-color-footer-area:var(--data-table-color-base)}.data-table__resize-handler{background-color:var(--g-color-base-generic);cursor:col-resize;height:100%;position:absolute;right:0;top:0;visibility:hidden;width:6px}.data-table__resize-handler_resizing,.data-table__th:hover>.data-table__resize-handler{visibility:visible}.ydb-error-boundary{align-items:flex-start;display:flex;flex-direction:row;font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);padding:20px}.ydb-error-boundary__illustration{height:230px;margin-right:20px;width:230px}.ydb-error-boundary__error-title{font-size:var(--g-text-subheader-3-font-size);line-height:var(--g-text-subheader-3-line-height);margin-top:44px}.ydb-error-boundary__error-description{margin-top:12px}.ydb-error-boundary__show-details{margin-top:8px}.ydb-error-boundary__error-details{background-color:var(--g-color-base-generic-ultralight);border:1px solid var(--g-color-line-generic);padding:13px 18px;white-space:pre-wrap}.ydb-error-boundary__actions{display:flex;flex-direction:row;gap:10px;margin-top:20px}.g-icon{line-height:0;vertical-align:top}.g-arrow-toggle{display:inline-block;transition:transform .1s ease-out;vertical-align:middle}.g-arrow-toggle_direction_bottom{transform:matrix(1,0,0,1,0,0)}.g-arrow-toggle_direction_left{transform:matrix(0,1,-1,0,0,0)}.g-arrow-toggle_direction_top{transform:matrix(-1,0,0,-1,0,0)}.g-arrow-toggle_direction_right{transform:matrix(0,-1,1,0,0,0)}.g-disclosure_size_m .g-disclosure__trigger{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height)}.g-disclosure_size_l .g-disclosure__trigger{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-2-line-height)}.g-disclosure_size_xl .g-disclosure__trigger{font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-3-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-3-line-height)}.g-disclosure__trigger{align-items:center;background:none;border:none;border-radius:var(--g-focus-border-radius);color:inherit;cursor:pointer;display:flex;flex-flow:row nowrap;flex-shrink:0;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);font-weight:inherit;gap:8px;line-height:inherit;outline:none;padding:0}.g-disclosure__trigger:focus-visible{outline:2px solid var(--g-color-line-focus)}.g-disclosure__trigger_arrow_end{flex-direction:row-reverse}.g-disclosure__trigger_disabled{color:var(--g-color-text-secondary);cursor:auto}.g-disclosure__content{display:none}.g-disclosure__content_visible{display:block}.g-disclosure__content.g-disclosure_exit_active{animation-duration:.1s;animation-name:g-disclosure-collapsed;display:block;opacity:0}.g-disclosure__content.g-disclosure_enter_active{animation-duration:.2s;animation-name:g-disclosure-expanded}@keyframes g-disclosure-expanded{0%{opacity:.4}to{opacity:1}}@keyframes g-disclosure-collapsed{0%{opacity:1}to{opacity:0}}.g-button{--_--text-color:var(--g-color-text-primary);--_--text-color-hover:var(--_--text-color);--_--background-color:#0000;--_--background-color-hover:var(--g-color-base-simple-hover);--_--border-width:0;--_--border-color:currentColor;--_--focus-outline-color:var(--g-color-line-focus);--_--focus-outline-offset:0;--_--font-size:var(--g-text-body-1-font-size);-webkit-tap-highlight-color:rgba(0,0,0,0);background:none;background:#0000;border:none;box-sizing:border-box;color:inherit;color:var(--g-button-text-color,var(--_--text-color));cursor:pointer;display:inline-flex;font-family:var(--g-text-body-font-family);font-size:inherit;font-size:var(--g-button-font-size,var(--_--font-size));font-weight:var(--g-text-body-font-weight);gap:var(--g-button-icon-offset,var(--_--icon-offset));height:var(--g-button-height,var(--_--height));justify-content:center;line-height:var(--g-button-height,var(--_--height));outline:none;overflow:visible;padding:0;padding:0 var(--g-button-padding,var(--_--padding));position:relative;text-align:center;text-decoration:none;touch-action:manipulation;transform:scale(1);transition:transform .1s ease-out,color .15s linear;-webkit-user-select:none;user-select:none;white-space:nowrap}.g-button:before{background-color:var(--g-button-background-color,var(--_--background-color));border:var(--g-button-border-width,var(--_--border-width)) var(--g-button-border-style,solid) var(--g-button-border-color,var(--_--border-color));content:"";inset:0;position:absolute;transition:background-color .15s linear;z-index:-1}.g-button:hover{color:var(--g-button-text-color-hover,var(--_--text-color-hover))}.g-button:hover:before{background-color:var(--g-button-background-color-hover,var(--_--background-color-hover))}.g-button:focus-visible:before{outline:var(--g-button-focus-outline-color,var(--_--focus-outline-color)) var(--g-button-focus-outline-style,solid) var(--g-button-focus-outline-width,2px);outline-offset:var(--g-button-focus-outline-offset,var(--_--focus-outline-offset))}.g-button:after{content:"";inset:0;position:absolute;transform:scale(1);transition:none;z-index:-1}.g-button:active{transform:scale(.96);transition:none}.g-button:active:after{transform:scale(1.042)}.g-button_size_xs{--_--height:20px;--_--border-radius:var(--g-border-radius-xs);--_--padding:6px;--_--icon-size:12px;--_--icon-offset:4px}.g-button_size_s{--_--height:24px;--_--border-radius:var(--g-border-radius-s);--_--padding:8px;--_--icon-size:16px;--_--icon-offset:4px}.g-button_size_m{--_--height:28px;--_--border-radius:var(--g-border-radius-m);--_--padding:12px;--_--icon-size:16px;--_--icon-offset:8px}.g-button_size_l{--_--height:36px;--_--border-radius:var(--g-border-radius-l);--_--padding:16px;--_--icon-size:16px;--_--icon-offset:8px}.g-button_size_xl{--_--height:44px;--_--border-radius:var(--g-border-radius-xl);--_--padding:24px;--_--icon-size:20px;--_--icon-offset:12px;--_--font-size:var(--g-text-body-2-font-size)}.g-button_view_normal{--_--background-color:var(--g-color-base-generic);--_--background-color-hover:var(--g-color-base-generic-hover)}.g-button_view_action{--_--text-color:var(--g-color-text-brand-contrast);--_--background-color:var(--g-color-base-brand);--_--background-color-hover:var(--g-color-base-brand-hover);--_--focus-outline-color:var(--g-color-base-brand);--_--focus-outline-offset:1px}.g-button_view_outlined{--_--border-width:1px;--_--border-color:var(--g-color-line-generic)}.g-button_view_outlined-info{--_--text-color:var(--g-color-text-info);--_--border-width:1px;--_--border-color:var(--g-color-line-info)}.g-button_view_outlined-success{--_--text-color:var(--g-color-text-positive);--_--border-width:1px;--_--border-color:var(--g-color-line-positive)}.g-button_view_outlined-warning{--_--text-color:var(--g-color-text-warning);--_--border-width:1px;--_--border-color:var(--g-color-line-warning)}.g-button_view_outlined-danger{--_--text-color:var(--g-color-text-danger);--_--border-width:1px;--_--border-color:var(--g-color-line-danger)}.g-button_view_outlined-utility{--_--text-color:var(--g-color-text-utility);--_--border-width:1px;--_--border-color:var(--g-color-line-utility)}.g-button_view_outlined-action{--_--text-color:var(--g-color-text-brand);--_--border-width:1px;--_--border-color:var(--g-color-line-brand)}.g-button_view_raised{--_--background-color-hover:var(--g-color-base-float-hover);background:var(--g-color-base-float)}.g-button_view_raised:before{box-shadow:0 3px 5px var(--g-color-sfx-shadow)}.g-button_view_raised:active:before{box-shadow:0 1px 2px var(--g-color-sfx-shadow)}.g-button_view_flat-secondary{--_--text-color:var(--g-color-text-secondary);--_--text-color-hover:var(--g-color-text-primary)}.g-button_view_flat-info{--_--text-color:var(--g-color-text-info)}.g-button_view_flat-success{--_--text-color:var(--g-color-text-positive)}.g-button_view_flat-warning{--_--text-color:var(--g-color-text-warning)}.g-button_view_flat-danger{--_--text-color:var(--g-color-text-danger)}.g-button_view_flat-utility{--_--text-color:var(--g-color-text-utility)}.g-button_view_flat-action{--_--text-color:var(--g-color-text-brand)}.g-button_view_normal-contrast{--_--text-color:var(--g-color-text-dark-primary);--_--background-color:var(--g-color-base-light);--_--background-color-hover:var(--g-color-base-light-hover);--_--focus-outline-color:var(--g-color-line-light)}.g-button_view_normal-contrast.g-button_loading{--_--background-color-hover:var(--g-color-base-simple-hover)}.g-button_view_outlined-contrast{--_--text-color:var(--g-color-text-light-primary);--_--background-color-hover:var(--g-color-base-light-simple-hover);--_--border-width:1px;--_--border-color:var(--g-color-line-light);--_--focus-outline-color:var(--g-color-line-light)}.g-button_view_flat-contrast{--_--text-color:var(--g-color-text-light-primary);--_--background-color-hover:var(--g-color-base-light-simple-hover);--_--focus-outline-color:var(--g-color-line-light)}.g-button.g-button_pin_round-round.g-button{border-radius:var(--g-button-border-radius,var(--_--border-radius))}.g-button.g-button_pin_brick-brick.g-button{border-radius:0}.g-button.g-button_pin_clear-clear.g-button{border-inline:0;border-radius:0}.g-button.g-button_pin_circle-circle.g-button{border-radius:100px}.g-button.g-button_pin_round-brick.g-button{border-end-end-radius:0;border-end-start-radius:var(--g-button-border-radius,var(--_--border-radius));border-start-end-radius:0;border-start-start-radius:var(--g-button-border-radius,var(--_--border-radius))}.g-button.g-button_pin_brick-round.g-button{border-end-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-end-start-radius:0;border-start-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-start-start-radius:0}.g-button.g-button_pin_round-clear.g-button{border-end-end-radius:0;border-end-start-radius:var(--g-button-border-radius,var(--_--border-radius));border-inline-end:0;border-start-end-radius:0;border-start-start-radius:var(--g-button-border-radius,var(--_--border-radius))}.g-button.g-button_pin_clear-round.g-button{border-end-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-end-start-radius:0;border-inline-start:0;border-start-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-start-start-radius:0}.g-button.g-button_pin_brick-clear.g-button{border-inline-end:0;border-radius:0}.g-button.g-button_pin_clear-brick.g-button{border-inline-start:0;border-radius:0}.g-button.g-button_pin_circle-brick.g-button{border-end-end-radius:0;border-end-start-radius:100px;border-start-end-radius:0;border-start-start-radius:100px}.g-button.g-button_pin_brick-circle.g-button{border-end-end-radius:100px;border-end-start-radius:0;border-start-end-radius:100px;border-start-start-radius:0}.g-button.g-button_pin_circle-clear.g-button{border-end-end-radius:0;border-end-start-radius:100px;border-inline-end:0;border-start-end-radius:0;border-start-start-radius:100px}.g-button.g-button_pin_clear-circle.g-button{border-end-end-radius:100px;border-end-start-radius:0;border-inline-start:0;border-start-end-radius:100px;border-start-start-radius:0}.g-button.g-button_pin_round-round:before{border-radius:var(--g-button-border-radius,var(--_--border-radius))}.g-button.g-button_pin_brick-brick:before{border-radius:0}.g-button.g-button_pin_clear-clear:before{border-inline:0;border-radius:0}.g-button.g-button_pin_circle-circle:before{border-radius:100px}.g-button.g-button_pin_round-brick:before{border-end-end-radius:0;border-end-start-radius:var(--g-button-border-radius,var(--_--border-radius));border-start-end-radius:0;border-start-start-radius:var(--g-button-border-radius,var(--_--border-radius))}.g-button.g-button_pin_brick-round:before{border-end-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-end-start-radius:0;border-start-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-start-start-radius:0}.g-button.g-button_pin_round-clear:before{border-end-end-radius:0;border-end-start-radius:var(--g-button-border-radius,var(--_--border-radius));border-inline-end:0;border-start-end-radius:0;border-start-start-radius:var(--g-button-border-radius,var(--_--border-radius))}.g-button.g-button_pin_clear-round:before{border-end-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-end-start-radius:0;border-inline-start:0;border-start-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-start-start-radius:0}.g-button.g-button_pin_brick-clear:before{border-inline-end:0;border-radius:0}.g-button.g-button_pin_clear-brick:before{border-inline-start:0;border-radius:0}.g-button.g-button_pin_circle-brick:before{border-end-end-radius:0;border-end-start-radius:100px;border-start-end-radius:0;border-start-start-radius:100px}.g-button.g-button_pin_brick-circle:before{border-end-end-radius:100px;border-end-start-radius:0;border-start-end-radius:100px;border-start-start-radius:0}.g-button.g-button_pin_circle-clear:before{border-end-end-radius:0;border-end-start-radius:100px;border-inline-end:0;border-start-end-radius:0;border-start-start-radius:100px}.g-button.g-button_pin_clear-circle:before{border-end-end-radius:100px;border-end-start-radius:0;border-inline-start:0;border-start-end-radius:100px;border-start-start-radius:0}.g-button.g-button_pin_round-round:after{border-radius:var(--g-button-border-radius,var(--_--border-radius))}.g-button.g-button_pin_brick-brick:after{border-radius:0}.g-button.g-button_pin_clear-clear:after{border-inline:0;border-radius:0}.g-button.g-button_pin_circle-circle:after{border-radius:100px}.g-button.g-button_pin_round-brick:after{border-end-end-radius:0;border-end-start-radius:var(--g-button-border-radius,var(--_--border-radius));border-start-end-radius:0;border-start-start-radius:var(--g-button-border-radius,var(--_--border-radius))}.g-button.g-button_pin_brick-round:after{border-end-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-end-start-radius:0;border-start-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-start-start-radius:0}.g-button.g-button_pin_round-clear:after{border-end-end-radius:0;border-end-start-radius:var(--g-button-border-radius,var(--_--border-radius));border-inline-end:0;border-start-end-radius:0;border-start-start-radius:var(--g-button-border-radius,var(--_--border-radius))}.g-button.g-button_pin_clear-round:after{border-end-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-end-start-radius:0;border-inline-start:0;border-start-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-start-start-radius:0}.g-button.g-button_pin_brick-clear:after{border-inline-end:0;border-radius:0}.g-button.g-button_pin_clear-brick:after{border-inline-start:0;border-radius:0}.g-button.g-button_pin_circle-brick:after{border-end-end-radius:0;border-end-start-radius:100px;border-start-end-radius:0;border-start-start-radius:100px}.g-button.g-button_pin_brick-circle:after{border-end-end-radius:100px;border-end-start-radius:0;border-start-end-radius:100px;border-start-start-radius:0}.g-button.g-button_pin_circle-clear:after{border-end-end-radius:0;border-end-start-radius:100px;border-inline-end:0;border-start-end-radius:0;border-start-start-radius:100px}.g-button.g-button_pin_clear-circle:after{border-end-end-radius:100px;border-end-start-radius:0;border-inline-start:0;border-start-end-radius:100px;border-start-start-radius:0}.g-button__text{display:inline-block;white-space:nowrap}.g-button__icon{display:inline-block;height:var(--g-button-height,var(--_--height));margin:0 calc((var(--g-button-height, var(--_--height)) - var(--g-button-icon-size, var(--_--icon-size)))/2*-1);position:relative;width:var(--g-button-height,var(--_--height))}.g-button__icon:after{content:"Â ";visibility:hidden}.g-button__icon-inner{align-items:center;display:flex;inset:0;justify-content:center;position:absolute}.g-button__icon_side_start{order:-1}.g-button__icon_side_end{order:1}.g-button__icon:only-child{margin:0}.g-button:has(.g-button__icon:only-child){--_--padding:0}.g-button:has(.g-button__icon:only-child):not(.g-button_width_max){width:var(--g-button-height,var(--_--height))}.g-button_selected:not(.g-button_view_outlined-contrast){--_--border-width:0}.g-button_selected:not(.g-button_view_normal-contrast,.g-button_view_flat-contrast,.g-button_view_outlined-contrast){--_--text-color:var(--g-color-text-brand-heavy);--_--background-color:var(--g-color-base-selection);--_--background-color-hover:var(--g-color-base-selection-hover)}.g-button_selected.g-button_view_flat-info,.g-button_selected.g-button_view_outlined-info{--_--text-color:var(--g-color-text-info-heavy);--_--background-color:var(--g-color-base-info-light);--_--background-color-hover:var(--g-color-base-info-light-hover)}.g-button_selected.g-button_view_flat-success,.g-button_selected.g-button_view_outlined-success{--_--text-color:var(--g-color-text-positive-heavy);--_--background-color:var(--g-color-base-positive-light);--_--background-color-hover:var(--g-color-base-positive-light-hover)}.g-button_selected.g-button_view_flat-warning,.g-button_selected.g-button_view_outlined-warning{--_--text-color:var(--g-color-text-warning-heavy);--_--background-color:var(--g-color-base-warning-light);--_--background-color-hover:var(--g-color-base-warning-light-hover)}.g-button_selected.g-button_view_flat-danger,.g-button_selected.g-button_view_outlined-danger{--_--text-color:var(--g-color-text-danger-heavy);--_--background-color:var(--g-color-base-danger-light);--_--background-color-hover:var(--g-color-base-danger-light-hover)}.g-button_selected.g-button_view_flat-utility,.g-button_selected.g-button_view_outlined-utility{--_--text-color:var(--g-color-text-utility-heavy);--_--background-color:var(--g-color-base-utility-light);--_--background-color-hover:var(--g-color-base-utility-light-hover)}.g-button_disabled{cursor:default;pointer-events:none}.g-button_disabled:not(.g-button_loading){--_--text-color:var(--g-color-text-hint);--_--background-color:var(--g-color-base-generic-accent-disabled);--_--background-color-hover:var(--g-color-base-generic-accent-disabled);--_--border-width:0}.g-button_disabled:not(.g-button_loading):is(.g-button_view_normal-contrast,.g-button_view_outlined-contrast){--_--text-color:var(--g-color-text-light-secondary);--_--background-color:var(--g-color-base-light-disabled);--_--background-color-hover:var(--g-color-base-light-disabled)}.g-button_disabled:not(.g-button_loading):is(.g-button_view_flat,.g-button_view_flat-secondary,.g-button_view_flat-info,.g-button_view_flat-success,.g-button_view_flat-warning,.g-button_view_flat-danger,.g-button_view_flat-utility,.g-button_view_flat-action,.g-button_view_flat-contrast){--_--text-color:var(--g-color-text-hint);--_--background-color:#0000;--_--background-color-hover:#0000}.g-button_disabled:not(.g-button_loading).g-button_view_flat-contrast{--_--text-color:var(--g-color-text-light-hint)}.g-button_disabled:active{transform:scale(1)}.g-button_loading:before{animation:g-loading-animation .5s linear infinite;background-clip:padding-box;background-image:repeating-linear-gradient(-45deg,var(--g-button-background-color,var(--_--background-color)),var(--g-button-background-color,var(--_--background-color)) 4px,var(--g-button-background-color-hover,var(--_--background-color-hover)) 4px,var(--g-button-background-color-hover,var(--_--background-color-hover)) 8px);background-size:150%}.g-button_width_auto{max-width:100%}.g-button_width_max{width:100%}.g-button_width_auto .g-button__text,.g-button_width_max .g-button__text{display:block;overflow:hidden;text-overflow:ellipsis}.g-switch{position:relative}.g-switch__control{cursor:pointer;opacity:0}.g-switch__indicator{display:inline-block;position:relative}.g-switch__indicator:before{background-color:var(--g-color-base-generic-medium);content:"";inset:0;position:absolute;transition:background .1s linear}.g-switch__indicator:after{content:"Â ";visibility:hidden}.g-switch__slider{background-color:var(--g-color-base-background);border-radius:50%;content:"";position:absolute;transition:transform .15s ease-out}.g-switch__outline{background:none;height:100%;inset-block-start:0;inset-inline-start:0;pointer-events:none;position:absolute;width:100%}.g-switch__control:focus-visible+.g-switch__outline{outline:2px solid var(--g-color-line-focus)}.g-switch_size_m .g-switch__indicator,.g-switch_size_m .g-switch__indicator:before,.g-switch_size_m .g-switch__outline{border-radius:10px;height:20px;width:36px}.g-switch_size_m .g-switch__slider{height:16px;inset-block-start:2px;inset-inline-start:2px;width:16px}.g-switch_size_m .g-switch__text{margin-block-start:3px}.g-switch_size_l .g-switch__indicator,.g-switch_size_l .g-switch__indicator:before,.g-switch_size_l .g-switch__outline{border-radius:12px;height:24px;width:42px}.g-switch_size_l .g-switch__slider{height:18px;inset-block-start:3px;inset-inline-start:3px;width:18px}.g-switch_size_l .g-switch__text{margin-block-start:4px}.g-switch:hover .g-switch__indicator:before{background-color:var(--g-color-base-generic-medium-hover)}.g-switch_checked .g-switch__slider{--_--translate-x:calc(100%*var(--g-flow-direction));transform:translateX(var(--_--translate-x))}.g-switch_checked .g-switch__indicator:before,.g-switch_checked:hover .g-switch__indicator:before{background-color:var(--g-color-base-brand)}.g-switch_disabled .g-switch__indicator:before{background-color:var(--g-color-base-generic-accent-disabled)}.g-switch_disabled.g-switch_checked .g-switch__indicator:before{background-color:var(--g-color-base-brand);opacity:.5}.g-control-label{-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--g-color-text-primary);cursor:pointer;display:inline-flex;font-family:var(--g-text-body-font-family);font-weight:var(--g-text-body-font-weight);touch-action:manipulation;-webkit-user-select:none;user-select:none}.g-control-label_disabled{cursor:default;pointer-events:none}.g-control-label_size_m{font-size:var(--g-text-body-1-font-size);line-height:15px}.g-control-label_size_l{font-size:var(--g-text-body-2-font-size);line-height:18px}.g-control-label__indicator{flex-shrink:0}.g-control-label__text{flex-grow:1;white-space:normal}.g-control-label_disabled .g-control-label__text{opacity:.6}.g-control-label_size_m .g-control-label__text{margin-inline-start:5px}.g-control-label_size_l .g-control-label__text{margin-inline-start:7px}.g-radio-button{--_--border-radius-inner:calc(var(--_--border-radius) - 3px);background-color:var(--g-color-base-generic);border-radius:var(--_--border-radius);box-sizing:border-box;display:inline-flex;flex-direction:row;font-family:var(--g-text-body-font-family);font-weight:var(--g-text-body-font-weight);position:relative}.g-radio-button__plate{inset-block:0;position:absolute;transition:left .2s,width .2s}.g-radio-button__plate[hidden]{display:none}.g-radio-button__option{border-radius:var(--_--border-radius-inner);cursor:pointer;flex:1 1 auto;font-size:var(--g-text-body-1-font-size);text-align:center;transform:scale(1);transition:color .15s linear;-webkit-user-select:none;user-select:none}.g-radio-button__option-outline{border-radius:var(--_--border-radius-inner);content:"";inset:3px;position:absolute;z-index:-1}.g-radio-button__option-control{border:none;cursor:inherit;height:100%;inset-block-start:0;inset-inline-start:0;margin:0;opacity:0;outline:none;padding:0;position:absolute;width:100%}.g-radio-button__option-control:focus-visible+.g-radio-button__option-outline{outline:2px solid var(--g-color-line-focus)}.g-radio-button__option-text{color:var(--g-color-text-complementary);display:inline-block;white-space:nowrap}.g-radio-button__option-text_icon{align-items:center;display:flex;height:100%}.g-radio-button__option:hover .g-radio-button__option-text,.g-radio-button__option_checked .g-radio-button__option-text{color:var(--g-color-text-primary)}.g-radio-button__option_checked{cursor:default}.g-radio-button__option_disabled{cursor:default;pointer-events:none}.g-radio-button__option_disabled .g-radio-button__option-text{color:var(--g-color-text-hint)}.g-radio-button__option:before,.g-radio-button__plate:before{border-radius:var(--_--border-radius-inner);inset:3px;position:absolute}.g-radio-button__option:before{z-index:-1}.g-radio-button__plate:before,.g-radio-button__plate[hidden]~.g-radio-button__option_checked:before{background-color:var(--g-color-base-background);content:""}.g-radio-button_size_s{--_--border-radius:var(--g-border-radius-s)}.g-radio-button_size_s .g-radio-button__option{height:24px;line-height:24px}.g-radio-button_size_s .g-radio-button__option-text{margin:0 10px}.g-radio-button_size_m{--_--border-radius:var(--g-border-radius-m)}.g-radio-button_size_m .g-radio-button__option{height:28px;line-height:28px}.g-radio-button_size_m .g-radio-button__option-text{margin:0 13px}.g-radio-button_size_l{--_--border-radius:var(--g-border-radius-l)}.g-radio-button_size_l .g-radio-button__option{height:36px;line-height:36px}.g-radio-button_size_l .g-radio-button__option-text{margin:0 18px}.g-radio-button_size_xl{--_--border-radius:var(--g-border-radius-xl)}.g-radio-button_size_xl .g-radio-button__option{font-size:var(--g-text-body-2-font-size);height:44px;line-height:44px}.g-radio-button_size_xl .g-radio-button__option-text{margin:0 25px}.g-radio-button_width_auto{max-width:100%}.g-radio-button_width_max{width:100%}.g-radio-button_width_auto .g-radio-button__option,.g-radio-button_width_max .g-radio-button__option{overflow:hidden}.g-radio-button_width_auto .g-radio-button__option-text,.g-radio-button_width_max .g-radio-button__option-text{display:block;overflow:hidden;text-overflow:ellipsis}.g-color-text_color_primary{color:var(--g-color-text-primary)}.g-color-text_color_complementary{color:var(--g-color-text-complementary)}.g-color-text_color_secondary{color:var(--g-color-text-secondary)}.g-color-text_color_hint{color:var(--g-color-text-hint)}.g-color-text_color_info{color:var(--g-color-text-info)}.g-color-text_color_info-heavy{color:var(--g-color-text-info-heavy)}.g-color-text_color_positive{color:var(--g-color-text-positive)}.g-color-text_color_positive-heavy{color:var(--g-color-text-positive-heavy)}.g-color-text_color_warning{color:var(--g-color-text-warning)}.g-color-text_color_warning-heavy{color:var(--g-color-text-warning-heavy)}.g-color-text_color_danger{color:var(--g-color-text-danger)}.g-color-text_color_danger-heavy{color:var(--g-color-text-danger-heavy)}.g-color-text_color_utility{color:var(--g-color-text-utility)}.g-color-text_color_utility-heavy{color:var(--g-color-text-utility-heavy)}.g-color-text_color_misc{color:var(--g-color-text-misc)}.g-color-text_color_misc-heavy{color:var(--g-color-text-misc-heavy)}.g-color-text_color_brand{color:var(--g-color-text-brand)}.g-color-text_color_link{color:var(--g-color-text-link)}.g-color-text_color_link-hover{color:var(--g-color-text-link-hover)}.g-color-text_color_link-visited{color:var(--g-color-text-link-visited)}.g-color-text_color_link-visited-hover{color:var(--g-color-text-link-visited-hover)}.g-color-text_color_dark-primary{color:var(--g-color-text-dark-primary)}.g-color-text_color_dark-complementary{color:var(--g-color-text-dark-complementary)}.g-color-text_color_dark-secondary{color:var(--g-color-text-dark-secondary)}.g-color-text_color_light-primary{color:var(--g-color-text-light-primary)}.g-color-text_color_light-complementary{color:var(--g-color-text-light-complementary)}.g-color-text_color_light-secondary{color:var(--g-color-text-light-secondary)}.g-color-text_color_light-hint{color:var(--g-color-text-light-hint)}.g-color-text_color_inverted-primary{color:var(--g-color-text-inverted-primary)}.g-color-text_color_inverted-complementary{color:var(--g-color-text-inverted-complementary)}.g-color-text_color_inverted-secondary{color:var(--g-color-text-inverted-secondary)}.g-color-text_color_inverted-hint{color:var(--g-color-text-inverted-hint)}.g-text_variant_display-1{font-size:var(--g-text-display-1-font-size);line-height:var(--g-text-display-1-line-height)}.g-text_variant_display-1,.g-text_variant_display-2{font-family:var(--g-text-display-font-family);font-weight:var(--g-text-display-font-weight)}.g-text_variant_display-2{font-size:var(--g-text-display-2-font-size);line-height:var(--g-text-display-2-line-height)}.g-text_variant_display-3{font-size:var(--g-text-display-3-font-size);line-height:var(--g-text-display-3-line-height)}.g-text_variant_display-3,.g-text_variant_display-4{font-family:var(--g-text-display-font-family);font-weight:var(--g-text-display-font-weight)}.g-text_variant_display-4{font-size:var(--g-text-display-4-font-size);line-height:var(--g-text-display-4-line-height)}.g-text_variant_code-1{font-size:var(--g-text-code-1-font-size);line-height:var(--g-text-code-1-line-height)}.g-text_variant_code-1,.g-text_variant_code-2{font-family:var(--g-text-code-font-family);font-weight:var(--g-text-code-font-weight)}.g-text_variant_code-2{font-size:var(--g-text-code-2-font-size);line-height:var(--g-text-code-2-line-height)}.g-text_variant_code-3{font-size:var(--g-text-code-3-font-size);line-height:var(--g-text-code-3-line-height)}.g-text_variant_code-3,.g-text_variant_code-inline-1{font-family:var(--g-text-code-font-family);font-weight:var(--g-text-code-font-weight)}.g-text_variant_code-inline-1{font-size:var(--g-text-code-inline-1-font-size);line-height:var(--g-text-code-inline-1-line-height)}.g-text_variant_code-inline-2{font-size:var(--g-text-code-inline-2-font-size);line-height:var(--g-text-code-inline-2-line-height)}.g-text_variant_code-inline-2,.g-text_variant_code-inline-3{font-family:var(--g-text-code-font-family);font-weight:var(--g-text-code-font-weight)}.g-text_variant_code-inline-3{font-size:var(--g-text-code-inline-3-font-size);line-height:var(--g-text-code-inline-3-line-height)}.g-text_variant_body-1{font-size:var(--g-text-body-1-font-size);line-height:var(--g-text-body-1-line-height)}.g-text_variant_body-1,.g-text_variant_body-2{font-family:var(--g-text-body-font-family);font-weight:var(--g-text-body-font-weight)}.g-text_variant_body-2{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.g-text_variant_body-3{font-size:var(--g-text-body-3-font-size);line-height:var(--g-text-body-3-line-height)}.g-text_variant_body-3,.g-text_variant_body-short{font-family:var(--g-text-body-font-family);font-weight:var(--g-text-body-font-weight)}.g-text_variant_body-short{font-size:var(--g-text-body-short-font-size);line-height:var(--g-text-body-short-line-height)}.g-text_variant_caption-1{font-size:var(--g-text-caption-1-font-size);line-height:var(--g-text-caption-1-line-height)}.g-text_variant_caption-1,.g-text_variant_caption-2{font-family:var(--g-text-caption-font-family);font-weight:var(--g-text-caption-font-weight)}.g-text_variant_caption-2{font-size:var(--g-text-caption-2-font-size);line-height:var(--g-text-caption-2-line-height)}.g-text_variant_header-1{font-size:var(--g-text-header-1-font-size);line-height:var(--g-text-header-1-line-height)}.g-text_variant_header-1,.g-text_variant_header-2{font-family:var(--g-text-header-font-family);font-weight:var(--g-text-header-font-weight)}.g-text_variant_header-2{font-size:var(--g-text-header-2-font-size);line-height:var(--g-text-header-2-line-height)}.g-text_variant_subheader-1{font-size:var(--g-text-subheader-1-font-size);line-height:var(--g-text-subheader-1-line-height)}.g-text_variant_subheader-1,.g-text_variant_subheader-2{font-family:var(--g-text-subheader-font-family);font-weight:var(--g-text-subheader-font-weight)}.g-text_variant_subheader-2{font-size:var(--g-text-subheader-2-font-size);line-height:var(--g-text-subheader-2-line-height)}.g-text_variant_subheader-3{font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-3-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-3-line-height)}.g-text_ellipsis{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.g-text_ellipsis-lines{-webkit-box-orient:vertical;-webkit-line-clamp:2;align-self:center;display:-webkit-box;overflow:hidden;white-space:normal}.g-text_ws_nowrap{white-space:nowrap}.g-text_ws_break-spaces{white-space:break-spaces}.g-text_wb_break-all{word-break:break-all}.g-text_wb_break-word{word-break:break-word}.g-label{--_--bg-color:none;--_--bg-color-hover:none;--_--text-color:none;align-items:center;background-color:var(--_--bg-color);border-radius:var(--_--border-radius);box-sizing:border-box;color:var(--_--text-color);display:inline-flex;height:var(--_--height);isolation:isolate;position:relative;transition-duration:.15s;transition-property:opacity,color,background-color;transition-timing-function:ease-in-out}.g-label__text{align-items:baseline;display:flex;font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height);line-height:var(--_--height);margin:0 var(--_--margin-inline);overflow:hidden;text-align:center;white-space:nowrap;width:100%}.g-label__content,.g-label__key{overflow:hidden;text-overflow:ellipsis}.g-label__value{display:flex;opacity:.7;overflow:hidden}.g-label__separator{margin:0 4px}.g-label__main-button{background:none;border:none;border-radius:inherit;color:inherit;cursor:pointer;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);outline:none;padding:0;z-index:1}.g-label__main-button:empty{inset:0;position:absolute}.g-label__addon{align-items:center;border-radius:var(--_--border-radius);display:flex;height:var(--_--height);justify-content:center;width:var(--_--height)}.g-label__addon_side_end,.g-label__addon_side_start{inset-block-start:0;position:absolute}.g-label__addon_side_start{border-end-end-radius:0;border-start-end-radius:0;inset-inline-start:2px}.g-label__addon_side_end{border-end-start-radius:0;border-start-start-radius:0;inset-inline-end:0}.g-label__addon_type_button{background:none;background-color:initial;border:none;color:inherit;color:var(--_--text-color);cursor:pointer;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);outline:none;padding:0;transition:color .15s ease-in-out,background-color .15s ease-in-out,transform .1s ease-out;z-index:2}.g-label__addon_type_button:active{transform:scale(.96)}.g-label_size_xs{--_--height:20px;--_--border-radius:var(--g-border-radius-xs);--_--margin-inline:8px;--_--margin-addon-start:24px;--_--margin-addon-end:22px}.g-label_size_s{--_--height:24px;--_--border-radius:var(--g-border-radius-s);--_--margin-inline:10px;--_--margin-addon-start:28px;--_--margin-addon-end:26px}.g-label_size_m{--_--height:28px;--_--border-radius:var(--g-border-radius-m);--_--margin-inline:12px;--_--margin-addon-start:32px;--_--margin-addon-end:32px}.g-label_disabled{opacity:.7;pointer-events:none}.g-label_interactive{cursor:pointer}.g-label_theme_normal{--_--bg-color:var(--g-color-base-misc-light);--_--bg-color-hover:var(--g-color-base-misc-light-hover);--_--text-color:var(--g-color-text-misc-heavy)}.g-label_theme_success{--_--bg-color:var(--g-color-base-positive-light);--_--bg-color-hover:var(--g-color-base-positive-light-hover);--_--text-color:var(--g-color-text-positive-heavy)}.g-label_theme_info{--_--bg-color:var(--g-color-base-info-light);--_--bg-color-hover:var(--g-color-base-info-light-hover);--_--text-color:var(--g-color-text-info-heavy)}.g-label_theme_warning{--_--bg-color:var(--g-color-base-warning-light);--_--bg-color-hover:var(--g-color-base-warning-light-hover);--_--text-color:var(--g-color-text-warning-heavy)}.g-label_theme_danger{--_--bg-color:var(--g-color-base-danger-light);--_--bg-color-hover:var(--g-color-base-danger-light-hover);--_--text-color:var(--g-color-text-danger-heavy)}.g-label_theme_utility{--_--bg-color:var(--g-color-base-utility-light);--_--bg-color-hover:var(--g-color-base-utility-light-hover);--_--text-color:var(--g-color-text-utility-heavy)}.g-label_theme_unknown{--_--bg-color:var(--g-color-base-neutral-light);--_--bg-color-hover:var(--g-color-base-neutral-light-hover);--_--text-color:var(--g-color-text-complementary)}.g-label_theme_clear{--_--bg-color:#0000;--_--bg-color-hover:var(--g-color-base-simple-hover);--_--text-color:var(--g-color-text-complementary);box-shadow:inset 0 0 0 1px var(--g-color-line-generic)}.g-label:has(.g-label__addon_side_start) .g-label__text{margin-inline-start:var(--_--margin-addon-start)}.g-label:has(.g-label__addon_side_end) .g-label__text{margin-inline-end:var(--_--margin-addon-end)}.g-label__addon_type_button:hover,.g-label_interactive:hover:not(:has(.g-label__addon_type_button:hover)){background-color:var(--_--bg-color-hover)}.g-label__addon_type_button:focus-visible,.g-label__main-button:focus-visible{outline:2px solid var(--g-color-line-focus)}.g-tabs{--_--vertical-item-padding:var(--g-tabs-vertical-item-padding,6px 20px);--_--vertical-item-height:var(--g-tabs-vertical-item-height,18px)}.g-tabs_size_m{--_--item-height:36px;--_--item-gap:24px;--_--item-border-width:2px}.g-tabs_size_m .g-tabs__item-counter,.g-tabs_size_m .g-tabs__item-title{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height)}.g-tabs_size_l{--_--item-height:40px;--_--item-gap:28px;--_--item-border-width:2px}.g-tabs_size_l .g-tabs__item-counter,.g-tabs_size_l .g-tabs__item-title{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-2-line-height)}.g-tabs_size_xl{--_--item-height:44px;--_--item-gap:32px;--_--item-border-width:3px}.g-tabs_size_xl .g-tabs__item-counter,.g-tabs_size_xl .g-tabs__item-title{font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-3-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-3-line-height)}.g-tabs__item{cursor:pointer;outline:none;-webkit-user-select:none;user-select:none}.g-tabs__item-content{align-items:center;border-radius:var(--g-focus-border-radius);display:flex}.g-tabs__item_overflow .g-tabs__item-content{min-width:0}.g-tabs__item-icon{margin-inline-end:8px}.g-tabs__item-title{white-space:nowrap}.g-tabs__item_overflow .g-tabs__item-title{overflow:hidden;text-overflow:ellipsis}.g-tabs__item-counter,.g-tabs__item-label{margin-inline-start:8px}.g-tabs__item-icon>svg{display:block}.g-tabs_direction_horizontal{align-items:flex-end;box-shadow:inset 0 calc(var(--g-tabs-border-width, 1px)*-1) 0 0 var(--g-color-line-generic);display:flex;flex-wrap:wrap;overflow:hidden}.g-tabs_direction_horizontal .g-tabs__item{align-items:center;border-block-end:var(--g-tabs-item-border-width,var(--_--item-border-width)) solid #0000;box-sizing:border-box;display:flex;height:var(--g-tabs-item-height,var(--_--item-height));padding-block-start:var(--_--item-border-width)}.g-tabs_direction_horizontal .g-tabs__item:focus-visible .g-tabs__item-content{outline:2px solid var(--g-color-line-focus);outline-offset:-2px}.g-tabs_direction_horizontal .g-tabs__item-meta{display:none}.g-tabs_direction_horizontal .g-tabs__item-title{color:var(--g-color-text-secondary)}.g-tabs_direction_horizontal .g-tabs__item-counter,.g-tabs_direction_horizontal .g-tabs__item-icon{color:var(--g-color-text-hint)}.g-tabs_direction_horizontal .g-tabs__item:focus-visible .g-tabs__item-title,.g-tabs_direction_horizontal .g-tabs__item:hover .g-tabs__item-title,.g-tabs_direction_horizontal .g-tabs__item_active .g-tabs__item-title{color:var(--g-color-text-primary)}.g-tabs_direction_horizontal .g-tabs__item:focus-visible .g-tabs__item-counter,.g-tabs_direction_horizontal .g-tabs__item:focus-visible .g-tabs__item-icon,.g-tabs_direction_horizontal .g-tabs__item:hover .g-tabs__item-counter,.g-tabs_direction_horizontal .g-tabs__item:hover .g-tabs__item-icon,.g-tabs_direction_horizontal .g-tabs__item_active .g-tabs__item-counter,.g-tabs_direction_horizontal .g-tabs__item_active .g-tabs__item-icon{color:var(--g-color-text-secondary)}.g-tabs_direction_horizontal .g-tabs__item_active,.g-tabs_direction_horizontal .g-tabs__item_active:focus-visible,.g-tabs_direction_horizontal .g-tabs__item_active:hover{border-color:var(--g-color-line-brand)}.g-tabs_direction_horizontal .g-tabs__item_disabled{pointer-events:none}.g-tabs_direction_horizontal .g-tabs__item_disabled .g-tabs__item-title{color:var(--g-color-text-hint)}.g-tabs_direction_horizontal>:not(:last-child){margin-inline-end:var(--g-tabs-item-gap,var(--_--item-gap))}.g-tabs_direction_vertical{display:flex;flex-direction:column}.g-tabs_direction_vertical .g-tabs__item{padding:var(--_--vertical-item-padding)}.g-tabs_direction_vertical .g-tabs__item-title{color:var(--g-color-text-primary);line-height:var(--_--vertical-item-height)}.g-tabs_direction_vertical .g-tabs__item-meta{color:var(--g-color-text-secondary);line-height:var(--_--vertical-item-height)}.g-tabs_direction_vertical .g-tabs__item-counter,.g-tabs_direction_vertical .g-tabs__item-icon{color:var(--g-color-text-secondary)}.g-tabs_direction_vertical .g-tabs__item:focus-visible,.g-tabs_direction_vertical .g-tabs__item:hover{background-color:var(--g-color-base-generic-hover)}.g-tabs_direction_vertical .g-tabs__item_active{background-color:var(--g-color-base-selection)}.g-tabs_direction_vertical .g-tabs__item_active:focus-visible,.g-tabs_direction_vertical .g-tabs__item_active:hover{background-color:var(--g-color-base-selection-hover)}.g-tabs_direction_vertical .g-tabs__item_disabled{pointer-events:none}.g-tabs_direction_vertical .g-tabs__item_disabled .g-tabs__item-title{color:var(--g-color-text-secondary)}.g-outer-additional-content{display:flex;justify-content:space-between;vertical-align:top}.g-outer-additional-content__error,.g-outer-additional-content__note{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height);margin-block-start:2px}.g-outer-additional-content__error{color:var(--g-color-text-danger)}.g-outer-additional-content__error:not(:last-child){margin-inline-end:var(--g-spacing-2)}.g-outer-additional-content__note{margin-inline-start:auto}.g-text-input{--_--text-color:var(--g-color-text-primary);--_--label-color:inherit;--_--placeholder-color:var(--g-color-text-hint);--_--background-color:#0000;--_--border-width:1px;--_--focus-outline-color:var(--g-text-input-focus-outline-color);display:inline-block;position:relative;width:100%}.g-text-input__content{background-color:var(--g-text-input-background-color,var(--_--background-color));border-color:var(--g-text-input-border-color,var(--_--border-color));border-style:solid;border-width:var(--g-text-input-border-width,var(--_--border-width));box-sizing:border-box;color:var(--g-text-input-text-color,var(--_--text-color));display:flex;overflow:hidden;width:100%}.g-text-input__content:hover{border-color:var(--g-text-input-border-color-hover,var(--_--border-color-hover))}.g-text-input__content:focus-within{border-color:var(--g-text-input-border-color-active,var(--_--border-color-active));outline:2px solid var(--g-text-input-focus-outline-color,var(--_--focus-outline-color));outline-offset:-1px}.g-text-input__control{background-color:initial;border:none;box-sizing:border-box;color:inherit;display:inline-block;flex-grow:1;font-family:var(--g-text-body-font-family);font-weight:var(--g-text-body-font-weight);height:var(--g-text-input-height);margin:0;padding:0;position:relative;vertical-align:top;width:100%}.g-text-input__control::placeholder{color:var(--g-text-input-placeholder-color,var(--_--placeholder-color));overflow:hidden;white-space:nowrap}.g-text-input__control:focus{outline:none}.g-text-input__control[type=number]{appearance:textfield}.g-text-input__label{box-sizing:border-box;color:var(--g-text-input-label-color,var(--_--label-color));overflow:hidden;position:absolute;text-overflow:ellipsis;white-space:nowrap;z-index:1}.g-text-input__clear{flex-shrink:0;margin:auto 0}.g-text-input__clear_size_m,.g-text-input__clear_size_s{margin-inline-end:1px}.g-text-input__clear_size_l,.g-text-input__clear_size_xl{margin-inline-end:2px}.g-text-input__error-icon{box-sizing:initial;color:var(--g-color-text-danger);padding-block:var(--_--error-icon-padding-block);padding-inline:var(--_--error-icon-padding-inline)}.g-text-input__additional-content{align-items:center;display:flex}.g-text-input_size_s{--_--error-icon-padding-block:5px;--_--error-icon-padding-inline:0 5px;--_--border-radius:var(--g-border-radius-s)}.g-text-input_size_s .g-text-input__control{--_--input-control-border-width:var( - --g-text-input-border-width,var(--g-text-area-border-width,1px) - );height:calc(24px - var(--_--input-control-border-width)*2);padding:3px 8px}.g-text-input_size_s .g-text-input__control,.g-text-input_size_s .g-text-input__label{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-short-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-short-line-height)}.g-text-input_size_s .g-text-input__label{font-weight:var(--g-text-accent-font-weight);padding-block:3px;padding-inline:8px 4px}.g-text-input_size_s.g-text-input_has-start-content .g-text-input__label{padding-inline-start:2px}.g-text-input_size_s .g-text-input__additional-content{height:22px}.g-text-input_size_s .g-text-input__additional-content_placement_start{padding-inline-start:1px}.g-text-input_size_s .g-text-input__additional-content_placement_end{padding-inline-end:1px}.g-text-input_size_m{--_--error-icon-padding-block:5px;--_--error-icon-padding-inline:0 5px;--_--border-radius:var(--g-border-radius-m)}.g-text-input_size_m .g-text-input__control{--_--input-control-border-width:var( - --g-text-input-border-width,var(--g-text-area-border-width,1px) - );height:calc(28px - var(--_--input-control-border-width)*2);padding:5px 8px}.g-text-input_size_m .g-text-input__control,.g-text-input_size_m .g-text-input__label{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-short-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-short-line-height)}.g-text-input_size_m .g-text-input__label{font-weight:var(--g-text-accent-font-weight);padding-block:5px;padding-inline:8px 4px}.g-text-input_size_m.g-text-input_has-start-content .g-text-input__label{padding-inline-start:2px}.g-text-input_size_m .g-text-input__additional-content{height:26px}.g-text-input_size_m .g-text-input__additional-content_placement_start{padding-inline-start:1px}.g-text-input_size_m .g-text-input__additional-content_placement_end{padding-inline-end:1px}.g-text-input_size_l{--_--error-icon-padding-block:9px;--_--error-icon-padding-inline:0 9px;--_--border-radius:var(--g-border-radius-l)}.g-text-input_size_l .g-text-input__control{--_--input-control-border-width:var( - --g-text-input-border-width,var(--g-text-area-border-width,1px) - );height:calc(36px - var(--_--input-control-border-width)*2);padding:9px 12px}.g-text-input_size_l .g-text-input__control,.g-text-input_size_l .g-text-input__label{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-short-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-short-line-height)}.g-text-input_size_l .g-text-input__label{font-weight:var(--g-text-accent-font-weight);padding-block:9px;padding-inline:12px 4px}.g-text-input_size_l.g-text-input_has-start-content .g-text-input__label{padding-inline-start:3px}.g-text-input_size_l .g-text-input__additional-content{height:34px}.g-text-input_size_l .g-text-input__additional-content_placement_start{padding-inline-start:3px}.g-text-input_size_l .g-text-input__additional-content_placement_end{padding-inline-end:3px}.g-text-input_size_xl{--_--error-icon-padding-block:13px;--_--error-icon-padding-inline:0 13px;--_--border-radius:var(--g-border-radius-xl)}.g-text-input_size_xl .g-text-input__control{--_--input-control-border-width:var( - --g-text-input-border-width,var(--g-text-area-border-width,1px) - );height:calc(44px - var(--_--input-control-border-width)*2);padding:11px 12px}.g-text-input_size_xl .g-text-input__control,.g-text-input_size_xl .g-text-input__label{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-2-line-height)}.g-text-input_size_xl .g-text-input__label{font-weight:var(--g-text-accent-font-weight);padding-block:11px;padding-inline:12px 4px}.g-text-input_size_xl.g-text-input_has-start-content .g-text-input__label{padding-inline-start:3px}.g-text-input_size_xl .g-text-input__additional-content{height:42px}.g-text-input_size_xl .g-text-input__additional-content_placement_start{padding-inline-start:3px}.g-text-input_size_xl .g-text-input__additional-content_placement_end{padding-inline-end:3px}.g-text-input_view_normal{--_--border-color:var(--g-color-line-generic);--_--border-color-hover:var(--g-color-line-generic-hover);--_--border-color-active:var(--g-color-line-generic-active)}.g-text-input_view_clear{--_--border-color:#0000;--_--border-color-hover:#0000;--_--border-color-active:#0000;--_--border-radius:0}.g-text-input_view_clear .g-text-input__content{border-inline:0}.g-text-input_view_clear .g-text-input__control{padding-inline:0}.g-text-input.g-text-input_pin_round-round .g-text-input__content{border-radius:var(--g-text-input-border-radius,var(--_--border-radius))}.g-text-input.g-text-input_pin_brick-brick .g-text-input__content{border-radius:0}.g-text-input.g-text-input_pin_clear-clear .g-text-input__content{border-inline:0;border-radius:0}.g-text-input.g-text-input_pin_circle-circle .g-text-input__content{border-radius:100px}.g-text-input.g-text-input_pin_round-brick .g-text-input__content{border-end-end-radius:0;border-end-start-radius:var(--g-text-input-border-radius,var(--_--border-radius));border-start-end-radius:0;border-start-start-radius:var(--g-text-input-border-radius,var(--_--border-radius))}.g-text-input.g-text-input_pin_brick-round .g-text-input__content{border-end-end-radius:var(--g-text-input-border-radius,var(--_--border-radius));border-end-start-radius:0;border-start-end-radius:var(--g-text-input-border-radius,var(--_--border-radius));border-start-start-radius:0}.g-text-input.g-text-input_pin_round-clear .g-text-input__content{border-end-end-radius:0;border-end-start-radius:var(--g-text-input-border-radius,var(--_--border-radius));border-inline-end:0;border-start-end-radius:0;border-start-start-radius:var(--g-text-input-border-radius,var(--_--border-radius))}.g-text-input.g-text-input_pin_clear-round .g-text-input__content{border-end-end-radius:var(--g-text-input-border-radius,var(--_--border-radius));border-end-start-radius:0;border-inline-start:0;border-start-end-radius:var(--g-text-input-border-radius,var(--_--border-radius));border-start-start-radius:0}.g-text-input.g-text-input_pin_brick-clear .g-text-input__content{border-inline-end:0;border-radius:0}.g-text-input.g-text-input_pin_clear-brick .g-text-input__content{border-inline-start:0;border-radius:0}.g-text-input.g-text-input_pin_circle-brick .g-text-input__content{border-end-end-radius:0;border-end-start-radius:100px;border-start-end-radius:0;border-start-start-radius:100px}.g-text-input.g-text-input_pin_brick-circle .g-text-input__content{border-end-end-radius:100px;border-end-start-radius:0;border-start-end-radius:100px;border-start-start-radius:0}.g-text-input.g-text-input_pin_circle-clear .g-text-input__content{border-end-end-radius:0;border-end-start-radius:100px;border-inline-end:0;border-start-end-radius:0;border-start-start-radius:100px}.g-text-input.g-text-input_pin_clear-circle .g-text-input__content{border-end-end-radius:100px;border-end-start-radius:0;border-inline-start:0;border-start-end-radius:100px;border-start-start-radius:0}.g-text-input_disabled{--_--text-color:var(--g-color-text-hint);--_--background-color:var(--g-color-base-generic-accent-disabled);--_--border-color:#0000;--_--border-color-hover:#0000;--_--border-color-active:#0000}.g-text-input_has-scrollbar .g-text-input__clear{inset-inline-end:var(--g-scrollbar-width)}.g-text-input_has-start-content .g-text-input__control{padding-inline-start:2px}.g-text-input_has-end-content .g-text-input__control{padding-inline-end:2px}.g-text-input_has-unstable-end-content{--_--error-icon-padding-inline:0}.g-text-input_state_error.g-text-input_view_normal .g-text-input__content,.g-text-input_state_error.g-text-input_view_normal .g-text-input__content:focus-within,.g-text-input_state_error.g-text-input_view_normal .g-text-input__content:hover{border-color:var(--g-color-line-danger)}.g-text-input_state_error.g-text-input_view_normal .g-text-input__content:focus-within{--_--focus-outline-color:var(--g-color-line-danger)}.g-text-input_state_error.g-text-input_view_clear .g-text-input__content,.g-text-input_state_error.g-text-input_view_clear .g-text-input__content:focus-within,.g-text-input_state_error.g-text-input_view_clear .g-text-input__content:hover{border-block-end:1px solid var(--g-color-line-danger)}.g-text-input_state_error.g-text-input_view_clear .g-text-input__content:focus-within{--_--focus-outline-color:var(--g-color-line-danger)}.g-clear-button{--g-button-text-color:var(--g-color-text-hint);--g-button-text-color-hover:var(--g-color-text-primary);--g-button-background-color:#0000;--g-button-background-color-hover:#0000}.g-link{-webkit-tap-highlight-color:rgba(0,0,0,0);border-radius:var(--g-focus-border-radius);cursor:pointer;text-decoration:none;touch-action:manipulation}.g-link:focus-visible{outline:2px solid var(--g-color-line-focus)}.g-link_view_normal{color:var(--g-color-text-link)}.g-link_view_primary{color:var(--g-color-text-primary)}.g-link_view_secondary{color:var(--g-color-text-secondary)}.g-link_view_normal:hover,.g-link_view_primary:hover,.g-link_view_secondary:hover{color:var(--g-color-text-link-hover)}.g-link_visitable:visited{color:var(--g-color-text-link-visited)}.g-link_visitable:visited:hover{color:var(--g-color-text-link-visited-hover)}.g-link_underline{text-decoration:underline}.g-popover{display:inline-block;position:relative}.g-popover:not(.g-popover_disabled){cursor:pointer}.g-popover__handler{display:inline-block}.g-popover__tooltip{--_--padding:16px;--_--close-offset:8px;--_--close-size:24px}.g-popover__tooltip-popup-content{box-sizing:border-box;cursor:default;max-width:var(--g-popover-max-width,300px);min-height:40px;padding:var(--g-popover-padding,var(--_--padding))}.g-popover__tooltip-title{display:inline-flex;font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-3-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-3-line-height);margin:0 0 12px}.g-popover__tooltip-buttons{display:flex;flex-wrap:wrap;gap:5px;margin-block-start:20px}.g-popover__tooltip-button{flex:1 1}.g-popover__tooltip-close{inset-block-start:var(--_--close-offset);inset-inline-end:var(--_--close-offset);position:absolute}.g-popover__tooltip-content{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height);overflow-wrap:break-word}.g-popover__tooltip-content_secondary{opacity:.7}.g-popover__tooltip-links>*{margin-block-start:8px}.g-popover__tooltip-links>:first-child{margin-block-start:0}.g-popover__tooltip-content+.g-popover__tooltip-links>:first-child{margin-block-start:12px}.g-popover__tooltip-link{display:inline-block;font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height)}.g-popover__tooltip_theme_announcement .g-popover__tooltip_theme_announcement,.g-popover__tooltip_theme_announcement.g-popover__tooltip_theme_info,.g-popover__tooltip_theme_info .g-popover__tooltip_theme_announcement,.g-popover__tooltip_theme_info.g-popover__tooltip_theme_info{color:var(--g-color-text-primary)}.g-popover__tooltip_force-links-appearance.g-popover__tooltip_theme_info .g-popover__tooltip-content a:not(.g-button),.g-popover__tooltip_theme_announcement .g-popover__tooltip-content a:not(.g-button){color:var(--g-color-text-link);text-decoration:none}.g-popover__tooltip_force-links-appearance.g-popover__tooltip_theme_info .g-popover__tooltip-content a:not(.g-button):hover,.g-popover__tooltip_theme_announcement .g-popover__tooltip-content a:not(.g-button):hover{color:var(--g-color-text-link-hover)}.g-popover__tooltip_theme_announcement{--g-popup-background-color:var(--g-color-base-simple-hover-solid);--g-popup-border-color:var(--g-color-base-simple-hover-solid)}.g-popover__tooltip_theme_special{--g-popup-background-color:var(--g-color-base-brand);--g-popup-border-color:var(--g-color-base-brand);color:var(--g-color-text-light-primary)}.g-popover__tooltip_theme_special .g-popover__tooltip-content a:not(.g-button){color:var(--g-color-text-light-primary);font-weight:var(--g-text-accent-font-weight)}.g-popover__tooltip_theme_special .g-popover__tooltip-content a:not(.g-button):hover{color:var(--g-color-text-light-secondary)}.g-popover__tooltip_theme_special .g-link{color:var(--g-color-text-light-primary)}.g-popover__tooltip_theme_special .g-link:hover{color:var(--g-color-text-light-secondary)}.g-popover__tooltip_size_l{--_--padding:24px}.g-popover__tooltip_size_l .g-popover__tooltip-title{font-family:var(--g-text-header-font-family);font-size:var(--g-text-header-1-font-size);font-weight:var(--g-text-header-font-weight);line-height:var(--g-text-header-1-line-height)}.g-popover__tooltip_size_l .g-popover__tooltip-content{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-2-line-height)}.g-popover__tooltip_with-close .g-popover__tooltip-content,.g-popover__tooltip_with-close .g-popover__tooltip-title{padding-inline-end:calc(var(--_--close-offset) + var(--_--close-size) - var(--_--padding))}.g-popup{--_--background-color:var(--g-popup-background-color,var(--g-color-base-float));--_--border-color:var(--g-popup-border-color,var(--g-color-line-generic-solid));--_--border-width:var(--g-popup-border-width,1px);visibility:hidden;z-index:1000}.g-popup_exit_active,.g-popup_open{visibility:visible}.g-popup_exit_active[data-popper-placement*=bottom] .g-popup__content{animation-name:g-popup-bottom}.g-popup_exit_active[data-popper-placement*=top] .g-popup__content{animation-name:g-popup-top}.g-popup_exit_active[data-popper-placement*=left] .g-popup__content{animation-name:g-popup-left}.g-popup_exit_active[data-popper-placement*=right] .g-popup__content{animation-name:g-popup-right}.g-popup_appear_active[data-popper-placement*=bottom] .g-popup__content,.g-popup_enter_active[data-popper-placement*=bottom] .g-popup__content{animation-name:g-popup-bottom-open}.g-popup_appear_active[data-popper-placement*=top] .g-popup__content,.g-popup_enter_active[data-popper-placement*=top] .g-popup__content{animation-name:g-popup-top-open}.g-popup_appear_active[data-popper-placement*=left] .g-popup__content,.g-popup_enter_active[data-popper-placement*=left] .g-popup__content{animation-name:g-popup-left-open}.g-popup_appear_active[data-popper-placement*=right] .g-popup__content,.g-popup_enter_active[data-popper-placement*=right] .g-popup__content{animation-name:g-popup-right-open}.g-popup[data-popper-placement*=bottom] .g-popup__arrow{inset-block-start:-9px}.g-popup[data-popper-placement*=top] .g-popup__arrow{inset-block-end:-9px}.g-popup[data-popper-placement*=top] .g-popup__arrow-content{transform:rotate(180deg)}.g-popup[data-popper-placement*=left] .g-popup__arrow{right:-9px}.g-popup[data-popper-placement*=left] .g-popup__arrow-content{transform:rotate(90deg)}.g-popup[data-popper-placement*=right] .g-popup__arrow{left:-9px}.g-popup[data-popper-placement*=right] .g-popup__arrow-content{transform:rotate(-90deg)}.g-popup__content{animation-duration:.1s;animation-fill-mode:forwards;animation-timing-function:ease-out;background-color:var(--_--background-color);border-radius:4px;box-shadow:0 0 0 var(--_--border-width) var(--_--border-color),0 8px 20px var(--_--border-width) var(--g-color-sfx-shadow);outline:none;position:relative}.g-popup__content>.g-popup__arrow+*,.g-popup__content>:first-child:not(.g-popup__arrow){border-start-end-radius:inherit;border-start-start-radius:inherit}.g-popup__content>:last-child{border-end-end-radius:inherit;border-end-start-radius:inherit}.g-popup__arrow-content{display:flex;height:18px;overflow:hidden;position:relative;width:18px}.g-popup__arrow-circle-wrapper{background-color:initial;height:9px;overflow:hidden;position:relative;width:9px}.g-popup__arrow-circle{border-radius:50%;box-shadow:inset 0 0 0 calc(5px - var(--_--border-width)) var(--_--background-color),inset 0 0 0 5px var(--_--border-color);box-sizing:border-box;height:30px;position:absolute;width:28px}.g-popup__arrow-circle_left{inset-block-end:-4px;inset-inline-end:-5px}.g-popup__arrow-circle_right{inset-block-end:-4px;inset-inline-start:-5px}@keyframes g-popup-bottom{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(10px)}}@keyframes g-popup-bottom-open{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes g-popup-top{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-10px)}}@keyframes g-popup-top-open{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@keyframes g-popup-left{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(-10px)}}@keyframes g-popup-left-open{0%{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:translateX(0)}}@keyframes g-popup-right{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(10px)}}@keyframes g-popup-right-open{0%{opacity:0;transform:translateX(10px)}to{opacity:1;transform:translateX(0)}}.g-portal__theme-wrapper{display:contents}@keyframes g-pulse{50%{opacity:15%}}.g-loader{align-items:center;display:inline-flex}.g-loader__center,.g-loader__left,.g-loader__right{animation:g-pulse .8s ease infinite;background:var(--g-color-base-brand)}.g-loader__left{animation-delay:.2s}.g-loader__center{animation-delay:.4s}.g-loader__right{animation-delay:.6s}.g-loader_size_s .g-loader__left{height:13.33333px;width:5px}.g-loader_size_s .g-loader__center{height:20px;margin-inline-start:5px;width:5px}.g-loader_size_s .g-loader__right{height:13.33333px;margin-inline-start:5px;width:5px}.g-loader_size_m .g-loader__left{height:18.66667px;width:7px}.g-loader_size_m .g-loader__center{height:28px;margin-inline-start:7px;width:7px}.g-loader_size_m .g-loader__right{height:18.66667px;margin-inline-start:7px;width:7px}.g-loader_size_l .g-loader__left{height:24px;width:9px}.g-loader_size_l .g-loader__center{height:36px;margin-inline-start:9px;width:9px}.g-loader_size_l .g-loader__right{height:24px;margin-inline-start:9px;width:9px}.g-s__m_0{margin:var(--g-spacing-0)}.g-s__mr_0{margin-inline-end:var(--g-spacing-0)}.g-s__ml_0{margin-inline-start:var(--g-spacing-0)}.g-s__mt_0{margin-block-start:var(--g-spacing-0)}.g-s__mb_0{margin-block-end:var(--g-spacing-0)}.g-s__mx_0{margin-inline:var(--g-spacing-0)}.g-s__my_0{margin-block:var(--g-spacing-0)}.g-s__p_0{padding:var(--g-spacing-0)}.g-s__pl_0{padding-inline-start:var(--g-spacing-0)}.g-s__pr_0{padding-inline-end:var(--g-spacing-0)}.g-s__pb_0{padding-block-end:var(--g-spacing-0)}.g-s__pt_0{padding-block-start:var(--g-spacing-0)}.g-s__py_0{padding-block:var(--g-spacing-0)}.g-s__px_0{padding-inline:var(--g-spacing-0)}.g-s__m_half{margin:var(--g-spacing-half)}.g-s__mr_half{margin-inline-end:var(--g-spacing-half)}.g-s__ml_half{margin-inline-start:var(--g-spacing-half)}.g-s__mt_half{margin-block-start:var(--g-spacing-half)}.g-s__mb_half{margin-block-end:var(--g-spacing-half)}.g-s__mx_half{margin-inline:var(--g-spacing-half)}.g-s__my_half{margin-block:var(--g-spacing-half)}.g-s__p_half{padding:var(--g-spacing-half)}.g-s__pl_half{padding-inline-start:var(--g-spacing-half)}.g-s__pr_half{padding-inline-end:var(--g-spacing-half)}.g-s__pb_half{padding-block-end:var(--g-spacing-half)}.g-s__pt_half{padding-block-start:var(--g-spacing-half)}.g-s__py_half{padding-block:var(--g-spacing-half)}.g-s__px_half{padding-inline:var(--g-spacing-half)}.g-s__m_1{margin:var(--g-spacing-1)}.g-s__mr_1{margin-inline-end:var(--g-spacing-1)}.g-s__ml_1{margin-inline-start:var(--g-spacing-1)}.g-s__mt_1{margin-block-start:var(--g-spacing-1)}.g-s__mb_1{margin-block-end:var(--g-spacing-1)}.g-s__mx_1{margin-inline:var(--g-spacing-1)}.g-s__my_1{margin-block:var(--g-spacing-1)}.g-s__p_1{padding:var(--g-spacing-1)}.g-s__pl_1{padding-inline-start:var(--g-spacing-1)}.g-s__pr_1{padding-inline-end:var(--g-spacing-1)}.g-s__pb_1{padding-block-end:var(--g-spacing-1)}.g-s__pt_1{padding-block-start:var(--g-spacing-1)}.g-s__py_1{padding-block:var(--g-spacing-1)}.g-s__px_1{padding-inline:var(--g-spacing-1)}.g-s__m_2{margin:var(--g-spacing-2)}.g-s__mr_2{margin-inline-end:var(--g-spacing-2)}.g-s__ml_2{margin-inline-start:var(--g-spacing-2)}.g-s__mt_2{margin-block-start:var(--g-spacing-2)}.g-s__mb_2{margin-block-end:var(--g-spacing-2)}.g-s__mx_2{margin-inline:var(--g-spacing-2)}.g-s__my_2{margin-block:var(--g-spacing-2)}.g-s__p_2{padding:var(--g-spacing-2)}.g-s__pl_2{padding-inline-start:var(--g-spacing-2)}.g-s__pr_2{padding-inline-end:var(--g-spacing-2)}.g-s__pb_2{padding-block-end:var(--g-spacing-2)}.g-s__pt_2{padding-block-start:var(--g-spacing-2)}.g-s__py_2{padding-block:var(--g-spacing-2)}.g-s__px_2{padding-inline:var(--g-spacing-2)}.g-s__m_3{margin:var(--g-spacing-3)}.g-s__mr_3{margin-inline-end:var(--g-spacing-3)}.g-s__ml_3{margin-inline-start:var(--g-spacing-3)}.g-s__mt_3{margin-block-start:var(--g-spacing-3)}.g-s__mb_3{margin-block-end:var(--g-spacing-3)}.g-s__mx_3{margin-inline:var(--g-spacing-3)}.g-s__my_3{margin-block:var(--g-spacing-3)}.g-s__p_3{padding:var(--g-spacing-3)}.g-s__pl_3{padding-inline-start:var(--g-spacing-3)}.g-s__pr_3{padding-inline-end:var(--g-spacing-3)}.g-s__pb_3{padding-block-end:var(--g-spacing-3)}.g-s__pt_3{padding-block-start:var(--g-spacing-3)}.g-s__py_3{padding-block:var(--g-spacing-3)}.g-s__px_3{padding-inline:var(--g-spacing-3)}.g-s__m_4{margin:var(--g-spacing-4)}.g-s__mr_4{margin-inline-end:var(--g-spacing-4)}.g-s__ml_4{margin-inline-start:var(--g-spacing-4)}.g-s__mt_4{margin-block-start:var(--g-spacing-4)}.g-s__mb_4{margin-block-end:var(--g-spacing-4)}.g-s__mx_4{margin-inline:var(--g-spacing-4)}.g-s__my_4{margin-block:var(--g-spacing-4)}.g-s__p_4{padding:var(--g-spacing-4)}.g-s__pl_4{padding-inline-start:var(--g-spacing-4)}.g-s__pr_4{padding-inline-end:var(--g-spacing-4)}.g-s__pb_4{padding-block-end:var(--g-spacing-4)}.g-s__pt_4{padding-block-start:var(--g-spacing-4)}.g-s__py_4{padding-block:var(--g-spacing-4)}.g-s__px_4{padding-inline:var(--g-spacing-4)}.g-s__m_5{margin:var(--g-spacing-5)}.g-s__mr_5{margin-inline-end:var(--g-spacing-5)}.g-s__ml_5{margin-inline-start:var(--g-spacing-5)}.g-s__mt_5{margin-block-start:var(--g-spacing-5)}.g-s__mb_5{margin-block-end:var(--g-spacing-5)}.g-s__mx_5{margin-inline:var(--g-spacing-5)}.g-s__my_5{margin-block:var(--g-spacing-5)}.g-s__p_5{padding:var(--g-spacing-5)}.g-s__pl_5{padding-inline-start:var(--g-spacing-5)}.g-s__pr_5{padding-inline-end:var(--g-spacing-5)}.g-s__pb_5{padding-block-end:var(--g-spacing-5)}.g-s__pt_5{padding-block-start:var(--g-spacing-5)}.g-s__py_5{padding-block:var(--g-spacing-5)}.g-s__px_5{padding-inline:var(--g-spacing-5)}.g-s__m_6{margin:var(--g-spacing-6)}.g-s__mr_6{margin-inline-end:var(--g-spacing-6)}.g-s__ml_6{margin-inline-start:var(--g-spacing-6)}.g-s__mt_6{margin-block-start:var(--g-spacing-6)}.g-s__mb_6{margin-block-end:var(--g-spacing-6)}.g-s__mx_6{margin-inline:var(--g-spacing-6)}.g-s__my_6{margin-block:var(--g-spacing-6)}.g-s__p_6{padding:var(--g-spacing-6)}.g-s__pl_6{padding-inline-start:var(--g-spacing-6)}.g-s__pr_6{padding-inline-end:var(--g-spacing-6)}.g-s__pb_6{padding-block-end:var(--g-spacing-6)}.g-s__pt_6{padding-block-start:var(--g-spacing-6)}.g-s__py_6{padding-block:var(--g-spacing-6)}.g-s__px_6{padding-inline:var(--g-spacing-6)}.g-s__m_7{margin:var(--g-spacing-7)}.g-s__mr_7{margin-inline-end:var(--g-spacing-7)}.g-s__ml_7{margin-inline-start:var(--g-spacing-7)}.g-s__mt_7{margin-block-start:var(--g-spacing-7)}.g-s__mb_7{margin-block-end:var(--g-spacing-7)}.g-s__mx_7{margin-inline:var(--g-spacing-7)}.g-s__my_7{margin-block:var(--g-spacing-7)}.g-s__p_7{padding:var(--g-spacing-7)}.g-s__pl_7{padding-inline-start:var(--g-spacing-7)}.g-s__pr_7{padding-inline-end:var(--g-spacing-7)}.g-s__pb_7{padding-block-end:var(--g-spacing-7)}.g-s__pt_7{padding-block-start:var(--g-spacing-7)}.g-s__py_7{padding-block:var(--g-spacing-7)}.g-s__px_7{padding-inline:var(--g-spacing-7)}.g-s__m_8{margin:var(--g-spacing-8)}.g-s__mr_8{margin-inline-end:var(--g-spacing-8)}.g-s__ml_8{margin-inline-start:var(--g-spacing-8)}.g-s__mt_8{margin-block-start:var(--g-spacing-8)}.g-s__mb_8{margin-block-end:var(--g-spacing-8)}.g-s__mx_8{margin-inline:var(--g-spacing-8)}.g-s__my_8{margin-block:var(--g-spacing-8)}.g-s__p_8{padding:var(--g-spacing-8)}.g-s__pl_8{padding-inline-start:var(--g-spacing-8)}.g-s__pr_8{padding-inline-end:var(--g-spacing-8)}.g-s__pb_8{padding-block-end:var(--g-spacing-8)}.g-s__pt_8{padding-block-start:var(--g-spacing-8)}.g-s__py_8{padding-block:var(--g-spacing-8)}.g-s__px_8{padding-inline:var(--g-spacing-8)}.g-s__m_9{margin:var(--g-spacing-9)}.g-s__mr_9{margin-inline-end:var(--g-spacing-9)}.g-s__ml_9{margin-inline-start:var(--g-spacing-9)}.g-s__mt_9{margin-block-start:var(--g-spacing-9)}.g-s__mb_9{margin-block-end:var(--g-spacing-9)}.g-s__mx_9{margin-inline:var(--g-spacing-9)}.g-s__my_9{margin-block:var(--g-spacing-9)}.g-s__p_9{padding:var(--g-spacing-9)}.g-s__pl_9{padding-inline-start:var(--g-spacing-9)}.g-s__pr_9{padding-inline-end:var(--g-spacing-9)}.g-s__pb_9{padding-block-end:var(--g-spacing-9)}.g-s__pt_9{padding-block-start:var(--g-spacing-9)}.g-s__py_9{padding-block:var(--g-spacing-9)}.g-s__px_9{padding-inline:var(--g-spacing-9)}.g-s__m_10{margin:var(--g-spacing-10)}.g-s__mr_10{margin-inline-end:var(--g-spacing-10)}.g-s__ml_10{margin-inline-start:var(--g-spacing-10)}.g-s__mt_10{margin-block-start:var(--g-spacing-10)}.g-s__mb_10{margin-block-end:var(--g-spacing-10)}.g-s__mx_10{margin-inline:var(--g-spacing-10)}.g-s__my_10{margin-block:var(--g-spacing-10)}.g-s__p_10{padding:var(--g-spacing-10)}.g-s__pl_10{padding-inline-start:var(--g-spacing-10)}.g-s__pr_10{padding-inline-end:var(--g-spacing-10)}.g-s__pb_10{padding-block-end:var(--g-spacing-10)}.g-s__pt_10{padding-block-start:var(--g-spacing-10)}.g-s__py_10{padding-block:var(--g-spacing-10)}.g-s__px_10{padding-inline:var(--g-spacing-10)}.g-box{box-sizing:border-box}.g-box_overflow_hidden{overflow:hidden}.g-box_overflow_auto{overflow:auto}.g-box_overflow_x{overflow:hidden auto}.g-box_overflow_y{overflow:auto hidden}.g-flex{display:flex}.g-flex_inline{display:inline-flex}.g-flex_center-content{align-items:center;justify-content:center}.g-flex_s_0{margin-block-start:calc(var(--g-spacing-0)*-1)!important;margin-inline-start:calc(var(--g-spacing-0)*-1)!important}.g-flex_s_0>*{padding-block-start:var(--g-spacing-0)!important;padding-inline-start:var(--g-spacing-0)!important}.g-flex_s_half{margin-block-start:calc(var(--g-spacing-half)*-1)!important;margin-inline-start:calc(var(--g-spacing-half)*-1)!important}.g-flex_s_half>*{padding-block-start:var(--g-spacing-half)!important;padding-inline-start:var(--g-spacing-half)!important}.g-flex_s_1{margin-block-start:calc(var(--g-spacing-1)*-1)!important;margin-inline-start:calc(var(--g-spacing-1)*-1)!important}.g-flex_s_1>*{padding-block-start:var(--g-spacing-1)!important;padding-inline-start:var(--g-spacing-1)!important}.g-flex_s_2{margin-block-start:calc(var(--g-spacing-2)*-1)!important;margin-inline-start:calc(var(--g-spacing-2)*-1)!important}.g-flex_s_2>*{padding-block-start:var(--g-spacing-2)!important;padding-inline-start:var(--g-spacing-2)!important}.g-flex_s_3{margin-block-start:calc(var(--g-spacing-3)*-1)!important;margin-inline-start:calc(var(--g-spacing-3)*-1)!important}.g-flex_s_3>*{padding-block-start:var(--g-spacing-3)!important;padding-inline-start:var(--g-spacing-3)!important}.g-flex_s_4{margin-block-start:calc(var(--g-spacing-4)*-1)!important;margin-inline-start:calc(var(--g-spacing-4)*-1)!important}.g-flex_s_4>*{padding-block-start:var(--g-spacing-4)!important;padding-inline-start:var(--g-spacing-4)!important}.g-flex_s_5{margin-block-start:calc(var(--g-spacing-5)*-1)!important;margin-inline-start:calc(var(--g-spacing-5)*-1)!important}.g-flex_s_5>*{padding-block-start:var(--g-spacing-5)!important;padding-inline-start:var(--g-spacing-5)!important}.g-flex_s_6{margin-block-start:calc(var(--g-spacing-6)*-1)!important;margin-inline-start:calc(var(--g-spacing-6)*-1)!important}.g-flex_s_6>*{padding-block-start:var(--g-spacing-6)!important;padding-inline-start:var(--g-spacing-6)!important}.g-flex_s_7{margin-block-start:calc(var(--g-spacing-7)*-1)!important;margin-inline-start:calc(var(--g-spacing-7)*-1)!important}.g-flex_s_7>*{padding-block-start:var(--g-spacing-7)!important;padding-inline-start:var(--g-spacing-7)!important}.g-flex_s_8{margin-block-start:calc(var(--g-spacing-8)*-1)!important;margin-inline-start:calc(var(--g-spacing-8)*-1)!important}.g-flex_s_8>*{padding-block-start:var(--g-spacing-8)!important;padding-inline-start:var(--g-spacing-8)!important}.g-flex_s_9{margin-block-start:calc(var(--g-spacing-9)*-1)!important;margin-inline-start:calc(var(--g-spacing-9)*-1)!important}.g-flex_s_9>*{padding-block-start:var(--g-spacing-9)!important;padding-inline-start:var(--g-spacing-9)!important}.g-flex_s_10{margin-block-start:calc(var(--g-spacing-10)*-1)!important;margin-inline-start:calc(var(--g-spacing-10)*-1)!important}.g-flex_s_10>*{padding-block-start:var(--g-spacing-10)!important;padding-inline-start:var(--g-spacing-10)!important}.kv-ydb-internal-user{align-items:center;display:flex;flex-grow:1;justify-content:space-between;line-height:var(--g-text-body-2-line-height);margin-left:16px}.kv-ydb-internal-user__user-info-wrapper{display:flex;flex-direction:column}.kv-ydb-internal-user__ydb-internal-user-title{font-weight:500}.kv-ydb-internal-user__ydb-user-wrapper{padding:10px;width:300px}.ydb-link-with-icon{align-items:center;display:flex;flex-wrap:nowrap;white-space:nowrap}.ydb-node-endpoints-tooltip-content .info-viewer__value{min-width:70px}.ydb-node-endpoints-tooltip-content__list-container{padding-right:20px}.ydb-node-endpoints-tooltip-content__definition{text-align:right;word-break:break-word}.g-clipboard-button__icon{pointer-events:none}.g-action-tooltip{--g-popup-border-width:0;--g-popup-background-color:var(--g-color-base-float-heavy)}.g-action-tooltip__content{box-sizing:border-box;color:var(--g-color-text-light-primary);max-width:300px;padding:6px 12px}.g-action-tooltip__heading{align-items:baseline;display:flex;justify-content:space-between}.g-action-tooltip__title{color:var(--g-color-text-light-primary)}.g-action-tooltip__hotkey{margin-inline-start:8px}.g-action-tooltip__description{color:var(--g-color-text-light-secondary);margin-block-start:4px}.g-hotkey{border-radius:4px;padding:1px 5px}.g-hotkey,.g-hotkey kbd{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height)}.g-hotkey_view_light{background-color:var(--g-color-base-generic)}.g-hotkey_view_light .g-hotkey__plus{color:var(--g-color-text-hint)}.g-hotkey_view_dark{background-color:var(--g-color-base-light-simple-hover);color:var(--g-color-text-light-complementary)}.g-hotkey_view_dark .g-hotkey__plus{color:var(--g-color-text-light-hint)}.g-help-mark__button{background:none;border:none;color:inherit;color:var(--g-color-text-hint);cursor:pointer;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);outline:none;padding:0}.g-help-mark__button:focus-visible{border-radius:50%;outline:2px solid var(--g-color-line-focus)}.g-definition-list{--_--item-block-start:var(--g-spacing-4);--_--term-width:300px;margin:0}.g-definition-list__item{align-items:baseline;display:flex;gap:var(--g-spacing-1)}.g-definition-list__item+.g-definition-list__item{margin-block-start:var(--g-definition-list-item-gap,var(--_--item-block-start))}.g-definition-list__term-container{align-items:baseline;display:flex;flex:0 0 auto;max-width:var(--_--term-width);overflow:hidden;position:relative;width:var(--_--term-width)}.g-definition-list__term-wrapper{color:var(--g-color-text-secondary)}.g-definition-list__dots{border-block-end:1px dotted var(--g-color-line-generic-active);box-sizing:border-box;flex:1 0 auto;margin:0 2px;min-width:25px}.g-definition-list__definition{flex:0 1 auto;margin:0}.g-definition-list_responsive .g-definition-list__term-container{--_--term-width:auto;flex:1 0 min-content}.g-definition-list_vertical{--_--item-block-start:var(--g-spacing-3);--_--term-width:auto}.g-definition-list_vertical .g-definition-list__term-container{flex:1 0 auto}.g-definition-list_vertical .g-definition-list__item{flex-direction:column;gap:var(--g-spacing-half)}.g-definition-list__copy-container{align-items:center;display:inline-flex;margin-inline-end:calc(var(--g-spacing-7)*-1);padding-inline-end:var(--g-spacing-7);position:relative}.g-definition-list__copy-container:hover .g-definition-list__copy-button{opacity:1}.g-definition-list__copy-button{display:inline-block;inset-inline-end:0;margin-inline-start:10px;opacity:0;position:absolute}.g-definition-list__copy-button:focus-visible{opacity:1}.info-viewer{--ydb-info-viewer-font-size:var(--g-text-body-2-font-size);--ydb-info-viewer-line-height:var(--g-text-body-2-line-height);--ydb-info-viewer-title-font-weight:600;--ydb-info-viewer-title-margin:15px 0 10px;--ydb-info-viewer-items-gap:7px;font-size:var(--ydb-info-viewer-font-size);line-height:var(--ydb-info-viewer-line-height)}.info-viewer__title{font-weight:var(--ydb-info-viewer-title-font-weight);margin:var(--ydb-info-viewer-title-margin)}.info-viewer__items{display:flex;flex-direction:column;gap:var(--ydb-info-viewer-items-gap);max-width:100%}.info-viewer__row{align-items:baseline;display:flex;max-width:100%;padding-top:4px}.info-viewer__label{align-items:baseline;color:var(--g-color-text-secondary);display:flex;flex:0 1 auto;min-width:200px;white-space:nowrap}.info-viewer__label-text_multiline{max-width:180px;overflow:visible;white-space:normal}.info-viewer__dots{border-bottom:1px dotted var(--g-color-text-secondary);display:flex;flex:1 1 auto;margin:0 2px}.info-viewer__value{display:flex;min-width:130px;word-break:break-all}.info-viewer_size_s{--ydb-info-viewer-font-size:var(--g-text-body-1-font-size);--ydb-info-viewer-line-height:var(--g-text-body-1-line-height);--ydb-info-viewer-title-font-weight:500;--ydb-info-viewer-title-margin:0 0 4px;--ydb-info-viewer-items-gap:4px}.info-viewer_size_s .info-viewer__row{height:auto}.info-viewer_size_s .info-viewer__label{min-width:85px}.ydb-cell-with-popover{display:inline-flex;max-width:100%}.ydb-cell-with-popover_full-width{display:flex}.ydb-cell-with-popover__popover{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;white-space:nowrap}.ydb-cell-with-popover__popover .g-popover__handler{display:inline}.ydb-cell-with-popover__popover_full-width{width:100%}.popup2{animation:none!important;max-width:300px}.histogram-tooltip,.node-tootltip{padding:10px}.histogram-tooltip__label,.node-tootltip__label{color:var(--g-color-text-secondary);padding-right:15px}.cell-tooltip{padding:10px;word-break:break-word}.empty-state{padding:20px}.empty-state_size_m{height:400px}.empty-state__wrapper{display:grid;grid-template-areas:"image title" "image description" "image actions"}.empty-state__wrapper_size_s{height:120px;width:460px}.empty-state__wrapper_size_m{height:240px;width:800px}.empty-state__wrapper_position_center{margin:0 auto;position:relative}.empty-state__image{color:var(--g-color-base-info-light-hover);grid-area:image;justify-self:end;margin-right:60px}.g-root_theme_dark .empty-state__image{color:var(--g-color-base-generic)}.empty-state__title{align-self:center;font-weight:500;grid-area:title}.empty-state__title_size_s{font-size:var(--g-text-subheader-3-font-size);line-height:var(--g-text-subheader-3-line-height)}.empty-state__title_size_m{font-size:var(--g-text-header-2-font-size);line-height:var(--g-text-header-2-line-height)}.empty-state__description{font-size:var(--g-text-body-2-font-size);grid-area:description;line-height:var(--g-text-body-2-line-height)}.empty-state__actions{grid-area:actions}.empty-state__actions>*{margin-right:8px}.ydb-loader{flex:1 1 auto}.authentication,.ydb-loader{align-items:center;display:flex;height:100%;justify-content:center}.authentication{background-blend-mode:normal;background-color:#b8d4fd1a;background-image:radial-gradient(at 0 100%,#0066ff26 20%,#f7f7f700 40%),radial-gradient(at 55% 0,#0066ff26 20%,#f7f7f700 40%),radial-gradient(at 110% 100%,#0066ff26 20%,#f7f7f700 40%)}.authentication .g-text-input{display:flex}.authentication__header{align-items:center;display:flex;font-size:var(--g-text-body-1-font-size);justify-content:space-between;line-height:var(--g-text-header-1-line-height);width:100%}.authentication__logo{align-items:center;display:flex;font-size:16px;font-weight:600;gap:8px}.authentication__title{font-size:var(--g-text-header-2-font-size);font-weight:600;line-height:var(--g-text-header-2-line-height);margin:34px 0 16px}.authentication__form-wrapper{align-items:center;background-color:var(--g-color-base-background);border-radius:16px;display:flex;flex-direction:column;flex-shrink:0;justify-content:center;min-width:320px;padding:40px;width:400px}.authentication__field-wrapper{align-items:flex-start;display:flex;justify-content:space-between;margin-bottom:16px;width:320px}.authentication__field-wrapper .g-text-input_state_error{flex-direction:column}.authentication__button-sign-in{display:inline-flex;justify-content:center}.authentication__show-password-button{margin-left:4px}.authentication__close{position:absolute;right:40px;top:40px}.ydb-connect-to-db__dialog-tabs,.ydb-connect-to-db__docs{margin-top:var(--g-spacing-4)}.ydb-connect-to-db__snippet-container{height:270px}.g-dialog-btn-close{inset-block-start:14px;inset-inline-end:14px;position:absolute;z-index:1}.g-dialog-body{flex:1 1 auto;overflow-y:auto;padding:10px var(--_--side-padding)}.g-dialog-body_has-borders{border-block-end:1px solid var(--g-color-line-generic)}.g-dialog-body_has-borders,.g-dialog-divider{border-block-start:1px solid var(--g-color-line-generic)}.g-dialog-divider{margin:0 calc(var(--_--side-padding)*-1)}.g-dialog-footer{align-items:center;display:flex;padding:28px var(--_--side-padding)}.g-dialog-footer__bts-wrapper{display:flex;gap:10px}.g-dialog-footer__children{align-items:center;display:flex;flex-grow:1;height:100%}.g-dialog-footer__button{min-width:128px;position:relative}.g-dialog-footer__error{color:var(--g-color-text-danger);padding:10px}.g-dialog-header{align-items:center;color:var(--g-color-text-primary);display:flex;justify-content:flex-start;line-height:24px;padding-block:20px 10px;padding-inline:var(--_--side-padding) calc(var(--_--side-padding) + var(--_--close-button-space)*var(--g-flow-is-ltr) + var(--_--close-button-space)*var(--g-flow-is-rtl))}.g-dialog-header__caption{font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-3-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-3-line-height)}.g-dialog{--_--side-padding:32px;--_--close-button-space:0px;display:flex;flex-direction:column;position:relative;width:var(--g-dialog-width,var(--_--width))}.g-dialog_has-scroll{max-height:calc(100vh - var(--g-modal-margin, 20px)*2);overflow-y:auto}.g-dialog_size_s{--_--width:480px}.g-dialog_size_m{--_--width:720px}.g-dialog_size_l{--_--width:900px}.g-dialog_has-close{--_--close-button-space:24px}.g-modal{-webkit-overflow-scrolling:touch;-webkit-tap-highlight-color:rgba(0,0,0,0);background-color:var(--g-color-sfx-veil);display:none;inset:0;margin:-9999px 0 0 -9999px;overflow:auto;position:fixed;visibility:hidden;z-index:1000}.g-modal__content-aligner{align-items:center;display:inline-flex;justify-content:center;min-height:100%;min-width:100%}.g-modal__content-wrapper{margin:var(--g-modal-margin,20px);overflow-x:hidden}.g-modal__content,.g-modal__content-wrapper{border-radius:var(--g-modal-border-radius,5px)}.g-modal__content{background-color:var(--g-color-base-modal)}.g-modal__content_has-scroll{max-height:calc(100vh - var(--g-modal-margin, 20px)*2);overflow-y:auto}.g-modal,.g-modal__content{animation-fill-mode:forwards;animation-timing-function:ease-out;outline:none}.g-modal_exit_active,.g-modal_open{display:block;margin:0;visibility:visible}.g-modal_appear_active,.g-modal_enter_active{animation-duration:.15s;animation-name:g-modal-open}.g-modal_appear_active .g-modal__content,.g-modal_enter_active .g-modal__content{animation-duration:.15s;animation-name:g-modal-content-open}.g-modal_exit_active{animation-duration:.2s;animation-name:g-modal}@keyframes g-modal{0%{opacity:1}to{opacity:0}}@keyframes g-modal-open{0%{opacity:0}to{opacity:1}}@keyframes g-modal-content-open{0%{transform:scale(.75)}to{transform:scale(1)}}.tablet-icon{border:1px solid;border-radius:4px;display:flex;font-size:10px;height:16px;justify-content:center;text-transform:uppercase;width:23px}.tablet-icon__type{line-height:14px}.header{align-items:center;border-bottom:1px solid var(--g-color-line-generic);display:flex;flex:0 0 40px;justify-content:space-between;padding:0 20px 0 12px}.header__breadcrumbs-item{color:var(--g-color-text-secondary);display:flex;gap:3px}.header__breadcrumbs-item_link:hover{color:var(--g-color-text-complementary)}.header__breadcrumbs-item_active{color:var(--g-color-text-primary)}.header__breadcrumbs-icon{align-items:center;display:flex}.g-divider{--_--content-gap:8px;--_--size:1px}.g-divider:not(:empty){align-items:center;border:none;display:flex}.g-divider:not(:empty):after,.g-divider:not(:empty):before{content:""}.g-divider:after,.g-divider:before{background:var(--g-divider-color,var(--g-color-line-generic));flex-grow:1}.g-divider_orientation_vertical{border-inline-start:1px solid var(--g-divider-color,var(--g-color-line-generic));flex-direction:column}.g-divider_orientation_vertical:after,.g-divider_orientation_vertical:before{width:var(--_--size)}.g-divider_orientation_vertical:before{margin-block-end:var(--_--content-gap)}.g-divider_orientation_vertical:after{margin-block-start:var(--_--content-gap)}.g-divider_orientation_horizontal{border-block-start:1px solid var(--g-divider-color,var(--g-color-line-generic))}.g-divider_orientation_horizontal:after,.g-divider_orientation_horizontal:before{height:var(--_--size)}.g-divider_orientation_horizontal:before{margin-inline-end:var(--_--content-gap)}.g-divider_orientation_horizontal:after{margin-inline-start:var(--_--content-gap)}.g-divider_align_end:after,.g-divider_align_start:before{display:none}.g-menu{background-color:var(--g-color-base-float);box-sizing:border-box;color:var(--g-color-text-primary);display:block;font-size:var(--g-text-body-1-font-size);list-style:none;margin:0;outline:none;overflow:hidden auto;padding:0;-webkit-user-select:none;user-select:none}.g-menu__list-group-item+.g-menu__list-group-item,.g-menu__list-group-item+.g-menu__list-item,.g-menu__list-item+.g-menu__list-group-item{border-block-start:1px solid var(--g-color-line-generic)}.g-menu__item{-webkit-tap-highlight-color:rgba(0,0,0,0);align-items:center;color:var(--g-color-text-primary);display:flex;outline:none;text-decoration:none;touch-action:manipulation}.g-menu__item-icon{display:flex}.g-menu__item-icon-end{display:flex;margin-inline-end:0}.g-menu__item-content{flex-grow:1;min-width:0}.g-menu__item_interactive{cursor:pointer}.g-menu__item_interactive:focus-visible,.g-menu__item_interactive:hover,.g-menu__item_selected{background-color:var(--g-color-base-simple-hover)}.g-menu__item_disabled{color:var(--g-color-text-secondary);cursor:default;pointer-events:none}.g-menu__item_disabled:hover{background-color:initial}.g-menu__item_active{background-color:var(--g-color-base-selection);cursor:default}.g-menu__item_active:focus-visible,.g-menu__item_active:hover{background-color:var(--g-color-base-selection-hover)}.g-menu__item_theme_danger:not(.g-menu__item_disabled){color:var(--g-color-text-danger)}.g-menu__group-label{color:var(--g-color-text-hint);font-weight:var(--g-text-accent-font-weight)}.g-menu__group-list{list-style:none;margin:0;padding:0}.g-menu_size_s{line-height:24px;padding:3px 0}.g-menu_size_s .g-menu__group-label,.g-menu_size_s .g-menu__item{padding:0 10px}.g-menu_size_s .g-menu__item-icon{margin-inline-end:3px}.g-menu_size_s .g-menu__item-icon-end{margin-inline-start:3px}.g-menu_size_s .g-menu__list-group-item+.g-menu__list-group-item,.g-menu_size_s .g-menu__list-group-item+.g-menu__list-item,.g-menu_size_s .g-menu__list-item+.g-menu__list-group-item{margin-block-start:3px;padding-block-start:3px}.g-menu_size_m{line-height:24px;padding:4px 0}.g-menu_size_m .g-menu__group-label,.g-menu_size_m .g-menu__item{padding:0 13px}.g-menu_size_m .g-menu__item-icon{margin-inline-end:4px}.g-menu_size_m .g-menu__item-icon-end{margin-inline-start:4px}.g-menu_size_m .g-menu__list-group-item+.g-menu__list-group-item,.g-menu_size_m .g-menu__list-group-item+.g-menu__list-item,.g-menu_size_m .g-menu__list-item+.g-menu__list-group-item{margin-block-start:4px;padding-block-start:4px}.g-menu_size_l{line-height:28px;padding:5px 0}.g-menu_size_l .g-menu__group-label,.g-menu_size_l .g-menu__item{padding:0 15px}.g-menu_size_l .g-menu__item-icon{margin-inline-end:5px}.g-menu_size_l .g-menu__item-icon-end{margin-inline-start:5px}.g-menu_size_l .g-menu__list-group-item+.g-menu__list-group-item,.g-menu_size_l .g-menu__list-group-item+.g-menu__list-item,.g-menu_size_l .g-menu__list-item+.g-menu__list-group-item{margin-block-start:5px;padding-block-start:5px}.g-menu_size_xl{font-size:var(--g-text-body-2-font-size);line-height:36px;padding:6px 0}.g-menu_size_xl .g-menu__group-label,.g-menu_size_xl .g-menu__item{padding:0 15px}.g-menu_size_xl .g-menu__item-icon{margin-inline-end:6px}.g-menu_size_xl .g-menu__item-icon-end{margin-inline-start:6px}.g-menu_size_xl .g-menu__list-group-item:not(:first-child){margin-block-start:6px;padding-block-start:6px}.g-menu_size_xl .g-menu__list-group-item:not(:last-child){margin-block-end:6px;padding-block-end:6px}.g-dropdown-menu__switcher-wrapper{display:inline-block}.g-dropdown-menu__switcher-button{display:flex}.g-dropdown-menu__menu-item_separator{border-block-start:1px solid var(--g-color-line-generic-solid);margin:.5em 0;pointer-events:none}.g-dropdown-menu__sub-menu-arrow{inset-inline-end:-4px;position:relative}.g-dropdown-menu__sub-menu{position:relative}.g-dropdown-menu__sub-menu .g-dropdown-menu__menu:after,.g-dropdown-menu__sub-menu .g-dropdown-menu__menu:before{content:"";height:100%;inset-block-start:0;position:absolute;width:10px}.g-dropdown-menu__sub-menu .g-dropdown-menu__menu:before{inset-inline-start:-10px}.g-dropdown-menu__sub-menu .g-dropdown-menu__menu:after{inset-inline-end:-10px}.g-breadcrumbs__inner{align-items:center;display:inline-flex;gap:4px;min-height:24px;overflow:hidden;width:100%}.g-breadcrumbs__switcher{background:none;border:none;color:inherit;color:var(--g-color-text-secondary);cursor:pointer;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);outline:none;padding:0}.g-breadcrumbs__switcher:focus-visible{outline:2px solid var(--g-color-line-focus)}.g-breadcrumbs__item,.g-breadcrumbs__switcher{display:inline-block;flex-shrink:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.g-breadcrumbs__item:focus-visible,.g-breadcrumbs__switcher:focus-visible{border-radius:var(--g-focus-border-radius);outline:2px solid var(--g-color-line-focus)}.g-breadcrumbs_calculated_no .g-breadcrumbs__item{overflow:visible}.g-breadcrumbs__divider{align-items:center;color:var(--g-color-text-secondary);display:flex}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item .g-menu__item{padding-inline-start:80px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(0) .g-menu__item{padding-inline-start:0!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:first-child .g-menu__item{padding-inline-start:8px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(2) .g-menu__item{padding-inline-start:16px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(3) .g-menu__item{padding-inline-start:24px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(4) .g-menu__item{padding-inline-start:32px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(5) .g-menu__item{padding-inline-start:40px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(6) .g-menu__item{padding-inline-start:48px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(7) .g-menu__item{padding-inline-start:56px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(8) .g-menu__item{padding-inline-start:64px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(9) .g-menu__item{padding-inline-start:72px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(10) .g-menu__item{padding-inline-start:80px!important}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}*{font-feature-settings:"tnum";box-sizing:border-box;font-variant-numeric:tabular-nums}.g-select-popup__tick-icon{box-sizing:initial}#root,body,html{box-sizing:border-box;height:100%;margin:0;overflow:auto;padding:0}:root{--g-color-base-yellow-light:#ffc70026;--g-color-base-yellow-medium:#ffdb4d66;--tenant-object-info-max-value-width:300px;--diagnostics-section-title-margin:20px;--diagnostics-section-margin:30px;--diagnostics-section-table-width:872px}.g-root{--ydb-data-table-color-hover:var(--g-color-base-simple-hover-solid);--ydb-color-status-grey:var(--g-color-base-neutral-heavy);--ydb-color-status-green:var(--g-color-base-positive-heavy);--ydb-color-status-yellow:var(--g-color-base-warning-heavy);--ydb-color-status-orange:var(--g-color-private-orange-500-solid);--ydb-color-status-red:var(--g-color-base-danger-heavy);--ydb-color-status-blue:var(--g-color-base-info-heavy);--ydb-color-status-black:var(--g-color-base-misc-heavy);--g-popover-max-width:500px}:is(#tab,.g-tabs-item_active .g-tabs-item__title){color:var(--g-color-text-primary)!important}:is(#tab,.g-tabs-item__title){color:var(--g-color-text-secondary)}.gn-aside-header__pane-container{height:100%}.gn-aside-header__content{display:flex;flex-direction:column;height:100%;overflow:auto;position:relative}.loader{align-items:center;display:flex;justify-content:center;left:50%;position:fixed;top:50%;z-index:99999999}.app{--data-table-row-height:40px;--data-table-cell-align:middle;--data-table-head-align:middle;display:flex;flex:1 1 auto;flex-direction:column;height:100%}.app .data-table{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.app .data-table__td,.app .data-table__th{border-left:unset;border-right:unset;border-top:unset;height:var(--data-table-row-height)}.app .data-table__th{font-weight:700}.app .data-table__table{border-collapse:initial;border-spacing:0}.app .data-table__box_sticky-head_moving .data-table__th{height:unset}.app__main{display:flex;flex:1 1 auto;flex-direction:column;overflow:auto}.error{color:var(--g-color-text-danger)}.g-root .data-table_highlight-rows .data-table__row:hover{background:var(--ydb-data-table-color-hover)}.g-table-column-setup__item{cursor:pointer!important;padding:0 8px 0 32px!important}.app_embedded{font-family:Rubik,sans-serif}.kv-navigation__internal-user{align-items:center;display:flex;justify-content:space-between;line-height:var(--g-text-body-2-line-height);margin-left:16px}.kv-navigation__user-info-wrapper{display:flex;flex-direction:column}.kv-navigation__ydb-internal-user-title{font-weight:500}.kv-navigation__ydb-user-wrapper{padding:10px;width:300px}.g-list{--_--item-padding:var(--g-list-item-padding,0);display:flex;flex:1 1 auto;flex-direction:column;outline:none;width:100%}.g-list__filter{flex:0 0 auto;margin-block-end:8px;padding:var(--_--item-padding)}.g-list__items{flex:1 1 auto}.g-list__empty-placeholder,.g-list__item{align-items:center;box-sizing:border-box;display:flex;overflow:hidden;padding:var(--_--item-padding);-webkit-user-select:none;user-select:none}.g-list__item_active{background:var(--g-color-base-simple-hover)}.g-list__item_selected{background:var(--g-color-base-selection)}.g-list__item_selected:hover{background:var(--g-color-base-selection-hover)}.g-list__item_sort-handle-align_right{flex-direction:row-reverse}.g-list__item_sort-handle-align_right .g-list__item-sort-icon{margin-inline:10px 0}.g-list__item_sortable[data-rbd-drag-handle-context-id]:active{cursor:grabbing}.g-list__item_dragging{background:var(--g-color-base-simple-hover-solid);z-index:100001}.g-list__empty-placeholder{box-sizing:border-box;color:var(--g-color-text-hint);min-height:36px;padding-block:8px}.g-list__item-content{align-items:center;display:flex;flex:1 1 auto;height:100%;overflow:hidden;text-overflow:ellipsis}.g-list__item-sort-icon{align-items:center;color:var(--g-color-text-hint);display:flex;flex:0 0 auto;margin-inline-end:4px;width:12px}.g-list__loading-indicator{align-items:center;display:flex;justify-content:center;width:100%}.extended-cluster{display:flex;height:100%}.extended-cluster__balancer{align-items:center;display:flex;flex-direction:row}.extended-cluster__clipboard-button{margin-left:5px}.g-toast{--_--item-gap:10px;--_--item-padding:16px;--_--background-color:var(--g-color-base-background);background-color:var(--_--background-color);border-radius:8px;box-shadow:0 0 15px var(--g-color-sfx-shadow);box-sizing:border-box;display:flex;font-size:var(--g-text-body-2-font-size);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));overflow:hidden;padding:var(--g-toaster-item-padding,var(--_--item-padding));position:relative;width:inherit;z-index:0}.g-toast_mobile{width:100%}.g-toast_theme_normal{--_--background-color:var(--g-color-base-float)}.g-toast_theme_info{--_--container-background-color:var(--g-color-base-info-light);--_--icon-color:var(--g-color-text-info-heavy)}.g-toast_theme_success{--_--container-background-color:var(--g-color-base-positive-light);--_--icon-color:var(--g-color-text-positive-heavy)}.g-toast_theme_warning{--_--container-background-color:var(--g-color-base-warning-light);--_--icon-color:var(--g-color-text-warning-heavy)}.g-toast_theme_danger{--_--container-background-color:var(--g-color-base-danger-light);--_--icon-color:var(--g-color-text-danger-heavy)}.g-toast_theme_utility{--_--container-background-color:var(--g-color-base-utility-light);--_--icon-color:var(--g-color-text-utility-heavy)}.g-toast__container{display:flex;flex:1 1 auto;flex-flow:column nowrap;min-height:var(--g-text-body-2-line-height);min-width:0}.g-toast__container:before{background-color:var(--_--container-background-color);content:"";height:100%;inset-block-start:0;inset-inline-start:0;pointer-events:none;position:absolute;width:100%;z-index:-1}.g-toast__icon-container{color:var(--_--icon-color);flex:0 0 auto;min-width:0;padding-block-start:2px;padding-inline-end:8px}.g-toast__title{font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-3-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-3-line-height);margin:0;padding-inline-end:32px}.g-toast__content{margin-block-start:var(--g-spacing-2)}.g-toast__content_without-title{margin-block-start:0;padding-inline-end:32px}.g-toast__actions{margin-block-start:var(--g-spacing-3)}.g-toast__action{margin-inline-end:8px}.g-toast .g-toast__btn-close{inset-block-start:16px;inset-inline-end:16px;position:absolute}.g-toast-animation-mobile_enter{opacity:0;position:absolute}.g-toast-animation-mobile_enter_active{animation:g-toast-enter-mobile .6s ease-out forwards;position:relative}.g-toast-animation-mobile_exit_active{animation:g-toast-exit-mobile .6s ease-in forwards}@keyframes g-toast-enter-mobile{0%{height:0;margin-block-end:0;opacity:0;padding:0;transform:translateY(10px)}50%{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:0;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateY(10px)}to{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:1;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateX(0)}}@keyframes g-toast-exit-mobile{0%{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:1;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateX(0)}50%{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:0;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateY(10px)}to{height:0;margin-block-end:0;opacity:0;padding:0;transform:translateY(10px)}}.g-toast-animation-desktop_enter{opacity:0;position:absolute}.g-toast-animation-desktop_enter_active{animation:g-toast-enter-desktop .6s ease-out forwards;position:relative}.g-toast-animation-desktop_exit_active{animation:g-toast-exit-desktop .6s ease-in forwards}@keyframes g-toast-enter-desktop{0%{height:0;margin-block-end:0;opacity:0;padding:0;transform:translateX(calc(var(--g-flow-direction)*10px))}50%{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:0;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateX(calc(var(--g-flow-direction)*10px))}to{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:1;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateX(0)}}@keyframes g-toast-exit-desktop{0%{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:1;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateX(0)}50%{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:0;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateX(calc(var(--g-flow-direction)*10px))}to{height:0;margin-block-end:0;opacity:0;padding:0;transform:translateX(calc(var(--g-flow-direction)*10px))}}.g-toaster{--_--width:312px;align-items:flex-end;display:flex;flex-direction:column;inset-block-end:0;inset-inline-end:10px;position:fixed;width:var(--g-toaster-width,var(--_--width));z-index:100000}.g-toaster_mobile{--_--width:calc(100% - 20px);inset-inline-start:50%;transform:translate(-50%)}.g-root{--g-font-family-sans:"Inter","Helvetica Neue","Helvetica","Arial",sans-serif;--g-font-family-monospace:"Menlo","Monaco","Consolas","Ubuntu Mono","Liberation Mono","DejaVu Sans Mono","Courier New","Courier",monospace;--g-text-body-font-family:var(--g-font-family-sans);--g-text-caption-font-family:var(--g-font-family-sans);--g-text-header-font-family:var(--g-font-family-sans);--g-text-subheader-font-family:var(--g-font-family-sans);--g-text-display-font-family:var(--g-font-family-sans);--g-text-code-font-family:var(--g-font-family-monospace);--g-text-body-font-weight:400;--g-text-caption-font-weight:400;--g-text-header-font-weight:600;--g-text-display-font-weight:600;--g-text-code-font-weight:400;--g-text-accent-font-weight:600;--g-text-body-1-font-size:13px;--g-text-body-1-line-height:18px;--g-text-body-2-font-size:15px;--g-text-body-2-line-height:20px;--g-text-body-3-font-size:17px;--g-text-body-3-line-height:24px;--g-text-body-short-font-size:13px;--g-text-body-short-line-height:16px;--g-text-caption-1-font-size:9px;--g-text-caption-1-line-height:12px;--g-text-caption-2-font-size:11px;--g-text-caption-2-line-height:16px;--g-text-header-1-font-size:20px;--g-text-header-1-line-height:24px;--g-text-header-2-font-size:24px;--g-text-header-2-line-height:28px;--g-text-subheader-1-font-size:13px;--g-text-subheader-1-line-height:18px;--g-text-subheader-2-font-size:15px;--g-text-subheader-2-line-height:20px;--g-text-subheader-3-font-size:17px;--g-text-subheader-3-line-height:24px;--g-text-display-1-font-size:28px;--g-text-display-1-line-height:36px;--g-text-display-2-font-size:32px;--g-text-display-2-line-height:40px;--g-text-display-3-font-size:40px;--g-text-display-3-line-height:48px;--g-text-display-4-font-size:48px;--g-text-display-4-line-height:52px;--g-text-code-1-font-size:12px;--g-text-code-1-line-height:18px;--g-text-code-2-font-size:14px;--g-text-code-2-line-height:20px;--g-text-code-3-font-size:16px;--g-text-code-3-line-height:24px;--g-text-code-inline-1-font-size:12px;--g-text-code-inline-1-line-height:14px;--g-text-code-inline-2-font-size:14px;--g-text-code-inline-2-line-height:16px;--g-text-code-inline-3-font-size:16px;--g-text-code-inline-3-line-height:20px;--g-spacing-base:4px;--g-spacing-0:calc(var(--g-spacing-base)*0);--g-spacing-half:calc(var(--g-spacing-base)*0.5);--g-spacing-1:var(--g-spacing-base);--g-spacing-2:calc(var(--g-spacing-base)*2);--g-spacing-3:calc(var(--g-spacing-base)*3);--g-spacing-4:calc(var(--g-spacing-base)*4);--g-spacing-5:calc(var(--g-spacing-base)*5);--g-spacing-6:calc(var(--g-spacing-base)*6);--g-spacing-7:calc(var(--g-spacing-base)*7);--g-spacing-8:calc(var(--g-spacing-base)*8);--g-spacing-9:calc(var(--g-spacing-base)*9);--g-spacing-10:calc(var(--g-spacing-base)*10);--g-scrollbar-width:12px;--g-border-radius-xs:3px;--g-border-radius-s:5px;--g-border-radius-m:6px;--g-border-radius-l:8px;--g-border-radius-xl:10px;--g-focus-border-radius:2px;background:var(--g-color-base-background);color:var(--g-color-text-primary);font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height)}.g-root[dir=ltr],body.g-root{--g-flow-direction:1;--g-flow-is-ltr:1;--g-flow-is-rtl:0}.g-root[dir=rtl]{--g-flow-direction:-1;--g-flow-is-ltr:0;--g-flow-is-rtl:1}.g-root_theme_light{--g-color-private-blue-50:#3697f11a;--g-color-private-blue-100:#3697f126;--g-color-private-blue-150:#3697f133;--g-color-private-blue-200:#3697f14d;--g-color-private-blue-250:#3697f166;--g-color-private-blue-300:#3697f180;--g-color-private-blue-350:#3697f199;--g-color-private-blue-400:#3697f1b3;--g-color-private-blue-450:#3697f1cc;--g-color-private-blue-500:#3697f1e6;--g-color-private-blue-50-solid:#ebf5fe;--g-color-private-blue-100-solid:#e1effd;--g-color-private-blue-150-solid:#d7eafc;--g-color-private-blue-200-solid:#c3e0fb;--g-color-private-blue-250-solid:#afd5f9;--g-color-private-blue-300-solid:#9bcbf8;--g-color-private-blue-350-solid:#86c1f7;--g-color-private-blue-400-solid:#72b6f5;--g-color-private-blue-450-solid:#5eacf4;--g-color-private-blue-500-solid:#4aa1f2;--g-color-private-blue-550-solid:#3697f1;--g-color-private-blue-600-solid:#348bdc;--g-color-private-blue-650-solid:#327fc8;--g-color-private-blue-700-solid:#3072b3;--g-color-private-blue-750-solid:#2e669e;--g-color-private-blue-800-solid:#2c5a8a;--g-color-private-blue-850-solid:#2a4e75;--g-color-private-blue-900-solid:#284260;--g-color-private-blue-950-solid:#26354b;--g-color-private-blue-1000-solid:#252f41;--g-color-private-green-50:#32ba761a;--g-color-private-green-100:#32ba7626;--g-color-private-green-150:#32ba7633;--g-color-private-green-200:#32ba764d;--g-color-private-green-250:#32ba7666;--g-color-private-green-300:#32ba7680;--g-color-private-green-350:#32ba7699;--g-color-private-green-400:#32ba76b3;--g-color-private-green-450:#32ba76cc;--g-color-private-green-500:#32ba76e6;--g-color-private-green-50-solid:#ebf8f1;--g-color-private-green-100-solid:#e0f5ea;--g-color-private-green-150-solid:#d6f1e4;--g-color-private-green-200-solid:#c2ead6;--g-color-private-green-250-solid:#ade3c8;--g-color-private-green-300-solid:#9db;--g-color-private-green-350-solid:#84d6ad;--g-color-private-green-400-solid:#70cf9f;--g-color-private-green-450-solid:#5bc891;--g-color-private-green-500-solid:#47c184;--g-color-private-green-550-solid:#32ba76;--g-color-private-green-600-solid:#30aa6e;--g-color-private-green-650-solid:#2f9b65;--g-color-private-green-700-solid:#2d8b5d;--g-color-private-green-750-solid:#2c7b54;--g-color-private-green-800-solid:#2a6c4c;--g-color-private-green-850-solid:#285c44;--g-color-private-green-900-solid:#274c3b;--g-color-private-green-950-solid:#253c33;--g-color-private-green-1000-solid:#24352f;--g-color-private-yellow-50:#ffbe5c1a;--g-color-private-yellow-100:#ffbe5c26;--g-color-private-yellow-150:#ffbe5c33;--g-color-private-yellow-200:#ffbe5c4d;--g-color-private-yellow-250:#ffbe5c66;--g-color-private-yellow-300:#ffbe5c80;--g-color-private-yellow-350:#ffbe5c99;--g-color-private-yellow-400:#ffbe5cb3;--g-color-private-yellow-450:#ffbe5ccc;--g-color-private-yellow-500:#ffbe5ce6;--g-color-private-yellow-50-solid:#fff9ef;--g-color-private-yellow-100-solid:#fff5e7;--g-color-private-yellow-150-solid:#fff2de;--g-color-private-yellow-200-solid:#ffecce;--g-color-private-yellow-250-solid:#ffe5be;--g-color-private-yellow-300-solid:#ffdfae;--g-color-private-yellow-350-solid:#ffd89d;--g-color-private-yellow-400-solid:#ffd28d;--g-color-private-yellow-450-solid:#ffcb7d;--g-color-private-yellow-500-solid:#ffc56c;--g-color-private-yellow-550-solid:#ffbe5c;--g-color-private-yellow-600-solid:#e9ae56;--g-color-private-yellow-650-solid:#d39e50;--g-color-private-yellow-700-solid:#bd8e4b;--g-color-private-yellow-750-solid:#a77e45;--g-color-private-yellow-800-solid:#916e3f;--g-color-private-yellow-850-solid:#7a5d39;--g-color-private-yellow-900-solid:#644d33;--g-color-private-yellow-950-solid:#4e3d2e;--g-color-private-yellow-1000-solid:#43352b;--g-color-private-orange-400-solid:#ffa04d;--g-color-private-orange-500-solid:#ff8519;--g-color-private-orange-600-solid:#e96e03;--g-color-private-orange-650-solid:#d36507;--g-color-private-orange-700-solid:#bd5c0a;--g-color-private-orange-750-solid:#a7530e;--g-color-private-orange-800-solid:#914a11;--g-color-private-orange-850-solid:#7a4114;--g-color-private-orange-900-solid:#643818;--g-color-private-orange-950-solid:#4e2f1b;--g-color-private-orange-1000-solid:#432b1d;--g-color-private-red-50:#ff003d1a;--g-color-private-red-100:#ff003d26;--g-color-private-red-150:#ff003d33;--g-color-private-red-200:#ff003d4d;--g-color-private-red-250:#ff003d66;--g-color-private-red-300:#ff003d80;--g-color-private-red-350:#ff003d99;--g-color-private-red-400:#ff003db3;--g-color-private-red-450:#ff003dcc;--g-color-private-red-500:#ff003de6;--g-color-private-red-50-solid:#ffe6ec;--g-color-private-red-100-solid:#ffd9e2;--g-color-private-red-150-solid:#ffccd8;--g-color-private-red-200-solid:#ffb3c5;--g-color-private-red-250-solid:#ff99b1;--g-color-private-red-300-solid:#ff809e;--g-color-private-red-350-solid:#ff668b;--g-color-private-red-400-solid:#ff4d77;--g-color-private-red-450-solid:#ff3364;--g-color-private-red-500-solid:#ff1950;--g-color-private-red-550-solid:#ff003d;--g-color-private-red-600-solid:#e9033a;--g-color-private-red-650-solid:#d30638;--g-color-private-red-700-solid:#bd0935;--g-color-private-red-750-solid:#a70c32;--g-color-private-red-800-solid:#910f30;--g-color-private-red-850-solid:#7a112d;--g-color-private-red-900-solid:#64142a;--g-color-private-red-950-solid:#4e1727;--g-color-private-red-1000-solid:#431926;--g-color-private-purple-600-solid:#844dbb;--g-color-private-purple-650-solid:#7947aa;--g-color-private-purple-700-solid:#6e4299;--g-color-private-purple-750-solid:#633d88;--g-color-private-purple-800-solid:#593877;--g-color-private-purple-850-solid:#4e3266;--g-color-private-purple-900-solid:#432d55;--g-color-private-purple-950-solid:#382844;--g-color-private-purple-1000-solid:#32253c;--g-color-private-cool-grey-300-solid:#b5c2cc;--g-color-private-cool-grey-600-solid:#647a8d;--g-color-private-cool-grey-650-solid:#5c6f81;--g-color-private-cool-grey-700-solid:#556575;--g-color-private-cool-grey-750-solid:#4e5b69;--g-color-private-cool-grey-800-solid:#47515e;--g-color-private-cool-grey-850-solid:#3f4652;--g-color-private-cool-grey-900-solid:#383c46;--g-color-private-cool-grey-950-solid:#31323a;--g-color-private-cool-grey-1000-solid:#2d2c34;--g-color-text-primary:var(--g-color-text-dark-primary);--g-color-text-complementary:var(--g-color-text-dark-complementary);--g-color-text-secondary:var(--g-color-text-dark-secondary);--g-color-text-hint:var(--g-color-text-dark-hint);--g-color-text-info:var(--g-color-private-blue-600-solid);--g-color-text-positive:var(--g-color-private-green-600-solid);--g-color-text-warning:var(--g-color-private-yellow-700-solid);--g-color-text-danger:var(--g-color-private-red-600-solid);--g-color-text-utility:var(--g-color-private-purple-600-solid);--g-color-text-misc:var(--g-color-private-cool-grey-600-solid);--g-color-text-info-heavy:var(--g-color-private-blue-700-solid);--g-color-text-positive-heavy:var(--g-color-private-green-700-solid);--g-color-text-warning-heavy:var(--g-color-private-orange-700-solid);--g-color-text-danger-heavy:var(--g-color-private-red-700-solid);--g-color-text-utility-heavy:var(--g-color-private-purple-700-solid);--g-color-text-misc-heavy:var(--g-color-private-cool-grey-700-solid);--g-color-text-brand:var(--g-color-private-yellow-700-solid);--g-color-text-brand-heavy:var(--g-color-private-orange-700-solid);--g-color-text-brand-contrast:var(--g-color-text-dark-primary);--g-color-text-link:var(--g-color-private-yellow-650-solid);--g-color-text-link-hover:var(--g-color-private-orange-650-solid);--g-color-text-link-visited:var(--g-color-private-purple-550-solid);--g-color-text-link-visited-hover:var(--g-color-private-purple-800-solid);--g-color-text-dark-primary:var(--g-color-private-black-850);--g-color-text-dark-complementary:var(--g-color-private-black-700);--g-color-text-dark-secondary:var(--g-color-private-black-500);--g-color-text-dark-hint:var(--g-color-private-black-300);--g-color-text-light-primary:var(--g-color-private-white-1000-solid);--g-color-text-light-complementary:var(--g-color-private-white-850);--g-color-text-light-secondary:var(--g-color-private-white-700);--g-color-text-light-hint:var(--g-color-private-white-500);--g-color-text-inverted-primary:var(--g-color-text-light-primary);--g-color-text-inverted-complementary:var(--g-color-text-light-complementary);--g-color-text-inverted-secondary:var(--g-color-text-light-secondary);--g-color-text-inverted-hint:var(--g-color-text-light-hint);--g-color-base-background:var(--g-color-private-white-1000-solid);--g-color-base-generic:var(--g-color-private-black-50);--g-color-base-generic-hover:var(--g-color-private-black-150);--g-color-base-generic-medium:var(--g-color-private-black-150);--g-color-base-generic-medium-hover:var(--g-color-private-black-250);--g-color-base-generic-accent:var(--g-color-private-black-150);--g-color-base-generic-accent-disabled:var(--g-color-private-black-70);--g-color-base-generic-ultralight:var(--g-color-private-black-20-solid);--g-color-base-simple-hover:var(--g-color-private-black-50);--g-color-base-simple-hover-solid:var(--g-color-private-black-50-solid);--g-color-base-brand:var(--g-color-private-yellow-550-solid);--g-color-base-brand-hover:var(--g-color-private-yellow-600-solid);--g-color-base-selection:var(--g-color-private-yellow-200);--g-color-base-selection-hover:var(--g-color-private-yellow-300);--g-color-base-info-light:var(--g-color-private-blue-100);--g-color-base-info-light-hover:var(--g-color-private-blue-200);--g-color-base-info-medium:var(--g-color-private-blue-200);--g-color-base-info-medium-hover:var(--g-color-private-blue-300);--g-color-base-info-heavy:var(--g-color-private-blue-600-solid);--g-color-base-info-heavy-hover:var(--g-color-private-blue-700-solid);--g-color-base-positive-light:var(--g-color-private-green-100);--g-color-base-positive-light-hover:var(--g-color-private-green-200);--g-color-base-positive-medium:var(--g-color-private-green-200);--g-color-base-positive-medium-hover:var(--g-color-private-green-300);--g-color-base-positive-heavy:var(--g-color-private-green-600-solid);--g-color-base-positive-heavy-hover:var(--g-color-private-green-700-solid);--g-color-base-warning-light:var(--g-color-private-yellow-200);--g-color-base-warning-light-hover:var(--g-color-private-yellow-300);--g-color-base-warning-medium:var(--g-color-private-yellow-400);--g-color-base-warning-medium-hover:var(--g-color-private-yellow-500);--g-color-base-warning-heavy:var(--g-color-private-yellow-550-solid);--g-color-base-warning-heavy-hover:var(--g-color-private-yellow-650-solid);--g-color-base-danger-light:var(--g-color-private-red-100);--g-color-base-danger-light-hover:var(--g-color-private-red-200);--g-color-base-danger-medium:var(--g-color-private-red-200);--g-color-base-danger-medium-hover:var(--g-color-private-red-300);--g-color-base-danger-heavy:var(--g-color-private-red-600-solid);--g-color-base-danger-heavy-hover:var(--g-color-private-red-700-solid);--g-color-base-utility-light:var(--g-color-private-purple-100);--g-color-base-utility-light-hover:var(--g-color-private-purple-200);--g-color-base-utility-medium:var(--g-color-private-purple-200);--g-color-base-utility-medium-hover:var(--g-color-private-purple-300);--g-color-base-utility-heavy:var(--g-color-private-purple-600-solid);--g-color-base-utility-heavy-hover:var(--g-color-private-purple-700-solid);--g-color-base-neutral-light:var(--g-color-private-black-50);--g-color-base-neutral-light-hover:var(--g-color-private-black-100);--g-color-base-neutral-medium:var(--g-color-private-black-200);--g-color-base-neutral-medium-hover:var(--g-color-private-black-250);--g-color-base-neutral-heavy:var(--g-color-private-black-450);--g-color-base-neutral-heavy-hover:var(--g-color-private-black-550);--g-color-base-misc-light:var(--g-color-private-cool-grey-100);--g-color-base-misc-light-hover:var(--g-color-private-cool-grey-200);--g-color-base-misc-medium:var(--g-color-private-cool-grey-200);--g-color-base-misc-medium-hover:var(--g-color-private-cool-grey-300);--g-color-base-misc-heavy:var(--g-color-private-cool-grey-600-solid);--g-color-base-misc-heavy-hover:var(--g-color-private-cool-grey-700-solid);--g-color-base-light:var(--g-color-private-white-1000-solid);--g-color-base-light-hover:var(--g-color-private-white-850);--g-color-base-light-simple-hover:var(--g-color-private-white-150);--g-color-base-light-disabled:var(--g-color-private-white-150);--g-color-base-light-accent-disabled:var(--g-color-private-white-300);--g-color-base-float:var(--g-color-private-white-1000-solid);--g-color-base-float-hover:var(--g-color-private-black-50-solid);--g-color-base-float-medium:var(--g-color-private-black-550-solid);--g-color-base-float-heavy:var(--g-color-private-black-700-solid);--g-color-base-float-accent:var(--g-color-private-white-1000-solid);--g-color-base-float-accent-hover:var(--g-color-private-white-850);--g-color-base-float-announcement:var(--g-color-private-cool-grey-50-solid);--g-color-base-modal:var(--g-color-base-background);--g-color-line-generic:var(--g-color-private-black-100);--g-color-line-generic-hover:var(--g-color-private-black-150);--g-color-line-generic-active:var(--g-color-private-black-300);--g-color-line-generic-accent:var(--g-color-private-black-150);--g-color-line-generic-accent-hover:var(--g-color-private-black-300);--g-color-line-generic-solid:var(--g-color-private-black-100-solid);--g-color-line-brand:var(--g-color-private-yellow-600-solid);--g-color-line-focus:var(--g-color-private-cool-grey-450);--g-color-line-light:var(--g-color-private-white-500);--g-color-line-info:var(--g-color-private-blue-450);--g-color-line-positive:var(--g-color-private-green-450);--g-color-line-warning:var(--g-color-private-yellow-600-solid);--g-color-line-danger:var(--g-color-private-red-450);--g-color-line-utility:var(--g-color-private-purple-450);--g-color-line-misc:var(--g-color-private-cool-grey-450);--g-color-sfx-veil:var(--g-color-private-black-250);--g-color-sfx-shadow:var(--g-color-private-black-150);--g-color-sfx-shadow-heavy:var(--g-color-private-black-500);--g-color-sfx-shadow-light:var(--g-color-private-black-50);--g-color-sfx-fade:var(--g-color-private-white-300);--g-color-scroll-track:var(--g-color-base-background);--g-color-scroll-handle:var(--g-color-private-black-100);--g-color-scroll-handle-hover:var(--g-color-private-black-150);--g-color-scroll-corner:var(--g-color-private-black-100);--g-color-infographics-axis:var(--g-color-private-black-150-solid);--g-color-infographics-tooltip-bg:var(--g-color-private-white-950)}.g-root_theme_dark{--g-color-private-white-20-solid:#262226;--g-color-private-white-50-solid:#2d282d;--g-color-private-white-70-solid:#312d31;--g-color-private-white-100-solid:#383438;--g-color-private-white-150-solid:#433f43;--g-color-private-white-200-solid:#4e4a4e;--g-color-private-white-250-solid:#595559;--g-color-private-white-300-solid:#646164;--g-color-private-white-350-solid:#6f6c6f;--g-color-private-white-400-solid:#7a777a;--g-color-private-white-450-solid:#858385;--g-color-private-white-500-solid:#908e90;--g-color-private-white-550-solid:#9c999c;--g-color-private-white-600-solid:#a7a5a7;--g-color-private-white-650-solid:#b2b0b2;--g-color-private-white-700-solid:#bdbbbd;--g-color-private-white-750-solid:#c8c6c8;--g-color-private-white-800-solid:#d3d2d3;--g-color-private-white-850-solid:#deddde;--g-color-private-white-900-solid:#e9e8e9;--g-color-private-white-950-solid:#f4f4f4;--g-color-private-blue-50:#3697f11a;--g-color-private-blue-100:#3697f126;--g-color-private-blue-150:#3697f133;--g-color-private-blue-200:#3697f14d;--g-color-private-blue-250:#3697f166;--g-color-private-blue-300:#3697f180;--g-color-private-blue-350:#3697f199;--g-color-private-blue-400:#3697f1b3;--g-color-private-blue-450:#3697f1cc;--g-color-private-blue-500:#3697f1e6;--g-color-private-blue-50-solid:#242937;--g-color-private-blue-100-solid:#252f41;--g-color-private-blue-150-solid:#26354b;--g-color-private-blue-200-solid:#284260;--g-color-private-blue-250-solid:#2a4e75;--g-color-private-blue-300-solid:#2c5a8a;--g-color-private-blue-350-solid:#2e669e;--g-color-private-blue-400-solid:#3072b3;--g-color-private-blue-450-solid:#327fc8;--g-color-private-blue-500-solid:#348bdc;--g-color-private-blue-550-solid:#3697f1;--g-color-private-blue-600-solid:#4aa1f2;--g-color-private-blue-650-solid:#5eacf4;--g-color-private-blue-700-solid:#72b6f5;--g-color-private-blue-750-solid:#86c1f7;--g-color-private-blue-800-solid:#9bcbf8;--g-color-private-blue-850-solid:#afd5f9;--g-color-private-blue-900-solid:#c3e0fb;--g-color-private-blue-950-solid:#d7eafc;--g-color-private-blue-1000-solid:#e1effd;--g-color-private-green-50:#4db09b1a;--g-color-private-green-100:#4db09b26;--g-color-private-green-150:#4db09b33;--g-color-private-green-200:#4db09b4d;--g-color-private-green-250:#4db09b66;--g-color-private-green-300:#4db09b80;--g-color-private-green-350:#4db09b99;--g-color-private-green-400:#4db09bb3;--g-color-private-green-450:#4db09bcc;--g-color-private-green-500:#4db09be6;--g-color-private-green-50-solid:#262c2e;--g-color-private-green-100-solid:#283334;--g-color-private-green-150-solid:#2b3a3a;--g-color-private-green-200-solid:#2f4946;--g-color-private-green-250-solid:#335852;--g-color-private-green-300-solid:#38675f;--g-color-private-green-350-solid:#3c756b;--g-color-private-green-400-solid:#408477;--g-color-private-green-450-solid:#449383;--g-color-private-green-500-solid:#49a18f;--g-color-private-green-550-solid:#4db09b;--g-color-private-green-600-solid:#5fb8a5;--g-color-private-green-650-solid:#71c0af;--g-color-private-green-700-solid:#82c8b9;--g-color-private-green-750-solid:#94d0c3;--g-color-private-green-800-solid:#a6d8cd;--g-color-private-green-850-solid:#b8dfd7;--g-color-private-green-900-solid:#cae7e1;--g-color-private-green-950-solid:#dbefeb;--g-color-private-green-1000-solid:#e4f3f0;--g-color-private-yellow-50:#ffbe5c1a;--g-color-private-yellow-100:#ffbe5c26;--g-color-private-yellow-150:#ffbe5c33;--g-color-private-yellow-200:#ffbe5c4d;--g-color-private-yellow-250:#ffbe5c66;--g-color-private-yellow-300:#ffbe5c80;--g-color-private-yellow-350:#ffbe5c99;--g-color-private-yellow-400:#ffbe5cb3;--g-color-private-yellow-450:#ffbe5ccc;--g-color-private-yellow-500:#ffbe5ce6;--g-color-private-yellow-50-solid:#382d28;--g-color-private-yellow-100-solid:#43352b;--g-color-private-yellow-150-solid:#4e3d2e;--g-color-private-yellow-200-solid:#644d33;--g-color-private-yellow-250-solid:#7a5d39;--g-color-private-yellow-300-solid:#916e3f;--g-color-private-yellow-350-solid:#a77e45;--g-color-private-yellow-400-solid:#bd8e4b;--g-color-private-yellow-450-solid:#d39e50;--g-color-private-yellow-500-solid:#e9ae56;--g-color-private-yellow-550-solid:#ffbe5c;--g-color-private-yellow-600-solid:#ffc56c;--g-color-private-yellow-650-solid:#ffcb7d;--g-color-private-yellow-700-solid:#ffd28d;--g-color-private-yellow-750-solid:#ffd89d;--g-color-private-yellow-800-solid:#ffdfae;--g-color-private-yellow-850-solid:#ffe5be;--g-color-private-yellow-900-solid:#ffecce;--g-color-private-yellow-950-solid:#fff2de;--g-color-private-yellow-1000-solid:#fff5e7;--g-color-private-orange-50-solid:#332420;--g-color-private-orange-100-solid:#3b281f;--g-color-private-orange-150-solid:#432b1e;--g-color-private-orange-200-solid:#54321b;--g-color-private-orange-250-solid:#643919;--g-color-private-orange-300-solid:#754017;--g-color-private-orange-350-solid:#864715;--g-color-private-orange-400-solid:#964e13;--g-color-private-orange-450-solid:#a75510;--g-color-private-orange-500-solid:#b75c0e;--g-color-private-orange-700-solid:#d99255;--g-color-private-orange-800-solid:#e4b186;--g-color-private-red-50:#e5325d1a;--g-color-private-red-100:#e5325d26;--g-color-private-red-150:#e5325d33;--g-color-private-red-200:#e5325d4d;--g-color-private-red-250:#e5325d66;--g-color-private-red-300:#e5325d80;--g-color-private-red-350:#e5325d99;--g-color-private-red-400:#e5325db3;--g-color-private-red-450:#e5325dcc;--g-color-private-red-500:#e5325de6;--g-color-private-red-50-solid:#361f28;--g-color-private-red-100-solid:#3f202b;--g-color-private-red-150-solid:#49212e;--g-color-private-red-200-solid:#5d2334;--g-color-private-red-250-solid:#70253a;--g-color-private-red-300-solid:#842840;--g-color-private-red-350-solid:#972a45;--g-color-private-red-400-solid:#ab2c4b;--g-color-private-red-450-solid:#be2e51;--g-color-private-red-500-solid:#d23057;--g-color-private-red-550-solid:#e5325d;--g-color-private-red-600-solid:#e8476d;--g-color-private-red-650-solid:#ea5b7d;--g-color-private-red-700-solid:#ed708e;--g-color-private-red-750-solid:#ef849e;--g-color-private-red-800-solid:#f299ae;--g-color-private-red-850-solid:#f5adbe;--g-color-private-red-900-solid:#f7c2ce;--g-color-private-red-950-solid:#fad6df;--g-color-private-red-1000-solid:#fbe0e7;--g-color-private-purple-50-solid:#2d2233;--g-color-private-purple-100-solid:#32253c;--g-color-private-purple-150-solid:#382844;--g-color-private-purple-200-solid:#432d55;--g-color-private-purple-250-solid:#4e3266;--g-color-private-purple-300-solid:#593877;--g-color-private-purple-350-solid:#633d88;--g-color-private-purple-400-solid:#6e4299;--g-color-private-purple-450-solid:#7947aa;--g-color-private-purple-500-solid:#844dbb;--g-color-private-cool-grey-50-solid:#28272e;--g-color-private-cool-grey-100-solid:#2b2c34;--g-color-private-cool-grey-150-solid:#2e313a;--g-color-private-cool-grey-200-solid:#353b47;--g-color-private-cool-grey-250-solid:#3b4553;--g-color-private-cool-grey-300-solid:#414f5f;--g-color-private-cool-grey-350-solid:#47586b;--g-color-private-cool-grey-400-solid:#4d6277;--g-color-private-cool-grey-450-solid:#546c84;--g-color-private-cool-grey-500-solid:#5a7690;--g-color-private-cool-grey-750-solid:#a0b3c4;--g-color-private-cool-grey-800-solid:#b0c0ce;--g-color-text-primary:var(--g-color-text-light-primary);--g-color-text-complementary:var(--g-color-text-light-complementary);--g-color-text-secondary:var(--g-color-text-light-secondary);--g-color-text-hint:var(--g-color-text-light-hint);--g-color-text-info:var(--g-color-private-blue-550-solid);--g-color-text-positive:var(--g-color-private-green-550-solid);--g-color-text-warning:var(--g-color-private-yellow-550-solid);--g-color-text-danger:var(--g-color-private-red-550-solid);--g-color-text-utility:var(--g-color-private-purple-600-solid);--g-color-text-misc:var(--g-color-private-cool-grey-600-solid);--g-color-text-info-heavy:var(--g-color-private-blue-600-solid);--g-color-text-positive-heavy:var(--g-color-private-green-600-solid);--g-color-text-warning-heavy:var(--g-color-private-yellow-600-solid);--g-color-text-danger-heavy:var(--g-color-private-red-600-solid);--g-color-text-utility-heavy:var(--g-color-private-purple-650-solid);--g-color-text-misc-heavy:var(--g-color-private-cool-grey-650-solid);--g-color-text-brand:var(--g-color-private-yellow-600-solid);--g-color-text-brand-heavy:var(--g-color-private-yellow-700-solid);--g-color-text-brand-contrast:var(--g-color-text-dark-primary);--g-color-text-link:var(--g-color-private-yellow-550-solid);--g-color-text-link-hover:var(--g-color-private-orange-550-solid);--g-color-text-link-visited:var(--g-color-private-purple-600-solid);--g-color-text-link-visited-hover:var(--g-color-private-purple-750-solid);--g-color-text-dark-primary:var(--g-color-private-black-900);--g-color-text-dark-complementary:var(--g-color-private-black-700);--g-color-text-dark-secondary:var(--g-color-private-black-500);--g-color-text-dark-hint:var(--g-color-private-black-300);--g-color-text-light-primary:var(--g-color-private-white-850);--g-color-text-light-complementary:var(--g-color-private-white-700);--g-color-text-light-secondary:var(--g-color-private-white-500);--g-color-text-light-hint:var(--g-color-private-white-300);--g-color-text-inverted-primary:var(--g-color-text-dark-primary);--g-color-text-inverted-complementary:var(--g-color-text-dark-complementary);--g-color-text-inverted-secondary:var(--g-color-text-dark-secondary);--g-color-text-inverted-hint:var(--g-color-text-dark-hint);--g-color-base-background:#221d22;--g-color-base-generic:var(--g-color-private-white-100);--g-color-base-generic-hover:var(--g-color-private-white-150);--g-color-base-generic-medium:var(--g-color-private-white-250);--g-color-base-generic-medium-hover:var(--g-color-private-white-300);--g-color-base-generic-accent:var(--g-color-private-white-150);--g-color-base-generic-accent-disabled:var(--g-color-private-white-70);--g-color-base-generic-ultralight:var(--g-color-private-white-20-solid);--g-color-base-simple-hover:var(--g-color-private-white-100);--g-color-base-simple-hover-solid:var(--g-color-private-white-100-solid);--g-color-base-brand:var(--g-color-private-yellow-550-solid);--g-color-base-brand-hover:var(--g-color-private-yellow-650-solid);--g-color-base-selection:var(--g-color-private-yellow-150);--g-color-base-selection-hover:var(--g-color-private-yellow-200);--g-color-base-info-light:var(--g-color-private-blue-150);--g-color-base-info-light-hover:var(--g-color-private-blue-200);--g-color-base-info-medium:var(--g-color-private-blue-300);--g-color-base-info-medium-hover:var(--g-color-private-blue-400);--g-color-base-info-heavy:var(--g-color-private-blue-600-solid);--g-color-base-info-heavy-hover:var(--g-color-private-blue-700-solid);--g-color-base-positive-light:var(--g-color-private-green-150);--g-color-base-positive-light-hover:var(--g-color-private-green-200);--g-color-base-positive-medium:var(--g-color-private-green-300);--g-color-base-positive-medium-hover:var(--g-color-private-green-400);--g-color-base-positive-heavy:var(--g-color-private-green-600-solid);--g-color-base-positive-heavy-hover:var(--g-color-private-green-700-solid);--g-color-base-warning-light:var(--g-color-private-yellow-150);--g-color-base-warning-light-hover:var(--g-color-private-yellow-200);--g-color-base-warning-medium:var(--g-color-private-yellow-300);--g-color-base-warning-medium-hover:var(--g-color-private-yellow-400);--g-color-base-warning-heavy:var(--g-color-private-yellow-600-solid);--g-color-base-warning-heavy-hover:var(--g-color-private-yellow-700-solid);--g-color-base-danger-light:var(--g-color-private-red-150);--g-color-base-danger-light-hover:var(--g-color-private-red-200);--g-color-base-danger-medium:var(--g-color-private-red-300);--g-color-base-danger-medium-hover:var(--g-color-private-red-400);--g-color-base-danger-heavy:var(--g-color-private-red-600-solid);--g-color-base-danger-heavy-hover:var(--g-color-private-red-700-solid);--g-color-base-utility-light:var(--g-color-private-purple-150);--g-color-base-utility-light-hover:var(--g-color-private-purple-250);--g-color-base-utility-medium:var(--g-color-private-purple-300);--g-color-base-utility-medium-hover:var(--g-color-private-purple-400);--g-color-base-utility-heavy:var(--g-color-private-purple-600-solid);--g-color-base-utility-heavy-hover:var(--g-color-private-purple-700-solid);--g-color-base-neutral-light:var(--g-color-private-white-100);--g-color-base-neutral-light-hover:var(--g-color-private-white-150);--g-color-base-neutral-medium:var(--g-color-private-white-250);--g-color-base-neutral-medium-hover:var(--g-color-private-white-350);--g-color-base-neutral-heavy:var(--g-color-private-white-550);--g-color-base-neutral-heavy-hover:var(--g-color-private-white-650);--g-color-base-misc-light:var(--g-color-private-cool-grey-150);--g-color-base-misc-light-hover:var(--g-color-private-cool-grey-200);--g-color-base-misc-medium:var(--g-color-private-cool-grey-300);--g-color-base-misc-medium-hover:var(--g-color-private-cool-grey-400);--g-color-base-misc-heavy:var(--g-color-private-cool-grey-600-solid);--g-color-base-misc-heavy-hover:var(--g-color-private-cool-grey-700-solid);--g-color-base-light:var(--g-color-private-white-850);--g-color-base-light-hover:var(--g-color-private-white-700);--g-color-base-light-simple-hover:var(--g-color-private-white-150);--g-color-base-light-disabled:var(--g-color-private-white-150);--g-color-base-light-accent-disabled:var(--g-color-private-white-300);--g-color-base-float:var(--g-color-private-white-100-solid);--g-color-base-float-hover:var(--g-color-private-white-150-solid);--g-color-base-float-medium:var(--g-color-private-white-150-solid);--g-color-base-float-heavy:var(--g-color-private-white-250-solid);--g-color-base-float-accent:var(--g-color-private-white-150-solid);--g-color-base-float-accent-hover:var(--g-color-private-white-200-solid);--g-color-base-float-announcement:var(--g-color-private-white-150-solid);--g-color-base-modal:var(--g-color-base-background);--g-color-line-generic:var(--g-color-private-white-150);--g-color-line-generic-hover:var(--g-color-private-white-250);--g-color-line-generic-active:var(--g-color-private-white-300);--g-color-line-generic-accent:var(--g-color-private-white-150);--g-color-line-generic-accent-hover:var(--g-color-private-white-300);--g-color-line-generic-solid:var(--g-color-private-white-150-solid);--g-color-line-brand:var(--g-color-private-yellow-600-solid);--g-color-line-focus:var(--g-color-private-cool-grey-450);--g-color-line-light:var(--g-color-private-white-500);--g-color-line-info:var(--g-color-private-blue-450);--g-color-line-positive:var(--g-color-private-green-450);--g-color-line-warning:var(--g-color-private-yellow-450);--g-color-line-danger:var(--g-color-private-red-450);--g-color-line-utility:var(--g-color-private-purple-450);--g-color-line-misc:var(--g-color-private-cool-grey-450);--g-color-sfx-veil:var(--g-color-private-black-600);--g-color-sfx-shadow:var(--g-color-private-black-200);--g-color-sfx-shadow-heavy:var(--g-color-private-black-500);--g-color-sfx-shadow-light:var(--g-color-private-black-200);--g-color-sfx-fade:var(--g-color-private-white-250);--g-color-scroll-track:var(--g-color-base-background);--g-color-scroll-handle:var(--g-color-private-white-150);--g-color-scroll-handle-hover:var(--g-color-private-white-250);--g-color-scroll-corner:var(--g-color-private-white-150);--g-color-infographics-axis:var(--g-color-private-white-150-solid);--g-color-infographics-tooltip-bg:var(--g-color-private-white-opaque-150)}.g-root_theme_light-hc{--g-color-private-blue-50:#3697f11a;--g-color-private-blue-100:#3697f126;--g-color-private-blue-150:#3697f133;--g-color-private-blue-200:#3697f14d;--g-color-private-blue-250:#3697f166;--g-color-private-blue-300:#3697f180;--g-color-private-blue-350:#3697f199;--g-color-private-blue-400:#3697f1b3;--g-color-private-blue-450:#3697f1cc;--g-color-private-blue-500:#3697f1e6;--g-color-private-blue-50-solid:#ebf5fe;--g-color-private-blue-100-solid:#e1effd;--g-color-private-blue-150-solid:#d7eafc;--g-color-private-blue-200-solid:#c3e0fb;--g-color-private-blue-250-solid:#afd5f9;--g-color-private-blue-300-solid:#9bcbf8;--g-color-private-blue-350-solid:#86c1f7;--g-color-private-blue-400-solid:#72b6f5;--g-color-private-blue-450-solid:#5eacf4;--g-color-private-blue-500-solid:#4aa1f2;--g-color-private-blue-550-solid:#3697f1;--g-color-private-blue-600-solid:#328adb;--g-color-private-blue-650-solid:#2f7cc4;--g-color-private-blue-700-solid:#2b6fae;--g-color-private-blue-750-solid:#286198;--g-color-private-blue-800-solid:#245482;--g-color-private-blue-850-solid:#20476b;--g-color-private-blue-900-solid:#1d3955;--g-color-private-blue-950-solid:#192c3f;--g-color-private-blue-1000-solid:#172533;--g-color-private-green-50:#32ba761a;--g-color-private-green-100:#32ba7626;--g-color-private-green-150:#32ba7633;--g-color-private-green-200:#32ba764d;--g-color-private-green-250:#32ba7666;--g-color-private-green-300:#32ba7680;--g-color-private-green-350:#32ba7699;--g-color-private-green-400:#32ba76b3;--g-color-private-green-450:#32ba76cc;--g-color-private-green-500:#32ba76e6;--g-color-private-green-50-solid:#ebf8f1;--g-color-private-green-100-solid:#e0f5ea;--g-color-private-green-150-solid:#d6f1e4;--g-color-private-green-200-solid:#c2ead6;--g-color-private-green-250-solid:#ade3c8;--g-color-private-green-300-solid:#9db;--g-color-private-green-350-solid:#84d6ad;--g-color-private-green-400-solid:#70cf9f;--g-color-private-green-450-solid:#5bc891;--g-color-private-green-500-solid:#47c184;--g-color-private-green-550-solid:#32ba76;--g-color-private-green-600-solid:#2fa96c;--g-color-private-green-650-solid:#2c9862;--g-color-private-green-700-solid:#288758;--g-color-private-green-750-solid:#25764e;--g-color-private-green-800-solid:#264;--g-color-private-green-850-solid:#1f553a;--g-color-private-green-900-solid:#1c4430;--g-color-private-green-950-solid:#183326;--g-color-private-green-1000-solid:#172a21;--g-color-private-yellow-50:#ffbe5c1a;--g-color-private-yellow-100:#ffbe5c26;--g-color-private-yellow-150:#ffbe5c33;--g-color-private-yellow-200:#ffbe5c4d;--g-color-private-yellow-250:#ffbe5c66;--g-color-private-yellow-300:#ffbe5c80;--g-color-private-yellow-350:#ffbe5c99;--g-color-private-yellow-400:#ffbe5cb3;--g-color-private-yellow-450:#ffbe5ccc;--g-color-private-yellow-500:#ffbe5ce6;--g-color-private-yellow-50-solid:#fff9ef;--g-color-private-yellow-100-solid:#fff5e7;--g-color-private-yellow-150-solid:#fff2de;--g-color-private-yellow-200-solid:#ffecce;--g-color-private-yellow-250-solid:#ffe5be;--g-color-private-yellow-300-solid:#ffdfae;--g-color-private-yellow-350-solid:#ffd89d;--g-color-private-yellow-400-solid:#ffd28d;--g-color-private-yellow-450-solid:#ffcb7d;--g-color-private-yellow-500-solid:#ffc56c;--g-color-private-yellow-550-solid:#ffbe5c;--g-color-private-yellow-600-solid:#e7ad55;--g-color-private-yellow-650-solid:#d09b4d;--g-color-private-yellow-700-solid:#b88a46;--g-color-private-yellow-750-solid:#a0793e;--g-color-private-yellow-800-solid:#896837;--g-color-private-yellow-850-solid:#715630;--g-color-private-yellow-900-solid:#594528;--g-color-private-yellow-950-solid:#413421;--g-color-private-yellow-1000-solid:#362b1d;--g-color-private-orange-400-solid:#ffa04d;--g-color-private-orange-500-solid:#ff8519;--g-color-private-orange-600-solid:#e76d02;--g-color-private-orange-650-solid:#d06304;--g-color-private-orange-700-solid:#b85805;--g-color-private-orange-750-solid:#a04e07;--g-color-private-orange-800-solid:#894409;--g-color-private-orange-850-solid:#713a0b;--g-color-private-orange-900-solid:#59300d;--g-color-private-orange-950-solid:#41250e;--g-color-private-orange-1000-solid:#36200f;--g-color-private-red-50:#ff003d1a;--g-color-private-red-100:#ff003d26;--g-color-private-red-150:#ff003d33;--g-color-private-red-200:#ff003d4d;--g-color-private-red-250:#ff003d66;--g-color-private-red-300:#ff003d80;--g-color-private-red-350:#ff003d99;--g-color-private-red-400:#ff003db3;--g-color-private-red-450:#ff003dcc;--g-color-private-red-500:#ff003de6;--g-color-private-red-50-solid:#ffe6ec;--g-color-private-red-100-solid:#ffd9e2;--g-color-private-red-150-solid:#ffccd8;--g-color-private-red-200-solid:#ffb3c5;--g-color-private-red-250-solid:#ff99b1;--g-color-private-red-300-solid:#ff809e;--g-color-private-red-350-solid:#ff668b;--g-color-private-red-400-solid:#ff4d77;--g-color-private-red-450-solid:#ff3364;--g-color-private-red-500-solid:#ff1950;--g-color-private-red-550-solid:#ff003d;--g-color-private-red-600-solid:#e70239;--g-color-private-red-650-solid:#d00334;--g-color-private-red-700-solid:#b80530;--g-color-private-red-750-solid:#a0072c;--g-color-private-red-800-solid:#890928;--g-color-private-red-850-solid:#710a23;--g-color-private-red-900-solid:#590c1f;--g-color-private-red-950-solid:#410e1b;--g-color-private-red-1000-solid:#360e18;--g-color-private-purple-600-solid:#834cb9;--g-color-private-purple-650-solid:#7645a7;--g-color-private-purple-700-solid:#6a3f94;--g-color-private-purple-750-solid:#5d3882;--g-color-private-purple-800-solid:#51326f;--g-color-private-purple-850-solid:#442b5c;--g-color-private-purple-900-solid:#38254a;--g-color-private-purple-950-solid:#2b1e37;--g-color-private-purple-1000-solid:#251b2e;--g-color-private-cool-grey-300-solid:#b5c2cc;--g-color-private-cool-grey-600-solid:#62798c;--g-color-private-cool-grey-650-solid:#596d7e;--g-color-private-cool-grey-700-solid:#506271;--g-color-private-cool-grey-750-solid:#475663;--g-color-private-cool-grey-800-solid:#3f4b56;--g-color-private-cool-grey-850-solid:#363f48;--g-color-private-cool-grey-900-solid:#2d343b;--g-color-private-cool-grey-950-solid:#24282d;--g-color-private-cool-grey-1000-solid:#1f2226;--g-color-text-primary:var(--g-color-text-dark-primary);--g-color-text-complementary:var(--g-color-text-dark-complementary);--g-color-text-secondary:var(--g-color-text-dark-secondary);--g-color-text-hint:var(--g-color-text-dark-hint);--g-color-text-info:var(--g-color-private-blue-650-solid);--g-color-text-positive:var(--g-color-private-green-650-solid);--g-color-text-warning:var(--g-color-private-yellow-700-solid);--g-color-text-danger:var(--g-color-private-red-650-solid);--g-color-text-utility:var(--g-color-private-purple-650-solid);--g-color-text-misc:var(--g-color-private-cool-grey-650-solid);--g-color-text-info-heavy:var(--g-color-private-blue-900-solid);--g-color-text-positive-heavy:var(--g-color-private-green-900-solid);--g-color-text-warning-heavy:var(--g-color-private-orange-900-solid);--g-color-text-danger-heavy:var(--g-color-private-red-900-solid);--g-color-text-utility-heavy:var(--g-color-private-purple-900-solid);--g-color-text-misc-heavy:var(--g-color-private-cool-grey-900-solid);--g-color-text-brand:var(--g-color-private-yellow-700-solid);--g-color-text-brand-heavy:var(--g-color-private-orange-900-solid);--g-color-text-brand-contrast:var(--g-color-text-dark-primary);--g-color-text-link:var(--g-color-private-yellow-700-solid);--g-color-text-link-hover:var(--g-color-private-orange-700-solid);--g-color-text-link-visited:var(--g-color-private-purple-600-solid);--g-color-text-link-visited-hover:var(--g-color-private-purple-850-solid);--g-color-text-dark-primary:var(--g-color-private-black-1000-solid);--g-color-text-dark-complementary:var(--g-color-private-black-850);--g-color-text-dark-secondary:var(--g-color-private-black-700);--g-color-text-dark-hint:var(--g-color-private-black-500);--g-color-text-light-primary:var(--g-color-private-white-1000-solid);--g-color-text-light-complementary:var(--g-color-private-white-850);--g-color-text-light-secondary:var(--g-color-private-white-700);--g-color-text-light-hint:var(--g-color-private-white-500);--g-color-text-inverted-primary:var(--g-color-text-light-primary);--g-color-text-inverted-complementary:var(--g-color-text-light-complementary);--g-color-text-inverted-secondary:var(--g-color-text-light-secondary);--g-color-text-inverted-hint:var(--g-color-text-light-hint);--g-color-base-background:var(--g-color-private-white-1000-solid);--g-color-base-generic:var(--g-color-private-black-150);--g-color-base-generic-hover:var(--g-color-private-black-300);--g-color-base-generic-medium:var(--g-color-private-black-250);--g-color-base-generic-medium-hover:var(--g-color-private-black-350);--g-color-base-generic-accent:var(--g-color-private-black-250);--g-color-base-generic-accent-disabled:var(--g-color-private-black-150);--g-color-base-generic-ultralight:var(--g-color-private-black-50-solid);--g-color-base-simple-hover:var(--g-color-private-black-150);--g-color-base-simple-hover-solid:var(--g-color-private-black-150-solid);--g-color-base-brand:var(--g-color-private-yellow-550-solid);--g-color-base-brand-hover:var(--g-color-private-yellow-650-solid);--g-color-base-selection:var(--g-color-private-yellow-300);--g-color-base-selection-hover:var(--g-color-private-yellow-400);--g-color-base-info-light:var(--g-color-private-blue-250);--g-color-base-info-light-hover:var(--g-color-private-blue-350);--g-color-base-info-medium:var(--g-color-private-blue-400);--g-color-base-info-medium-hover:var(--g-color-private-blue-500);--g-color-base-info-heavy:var(--g-color-private-blue-700-solid);--g-color-base-info-heavy-hover:var(--g-color-private-blue-850-solid);--g-color-base-positive-light:var(--g-color-private-green-250);--g-color-base-positive-light-hover:var(--g-color-private-green-350);--g-color-base-positive-medium:var(--g-color-private-green-400);--g-color-base-positive-medium-hover:var(--g-color-private-green-500);--g-color-base-positive-heavy:var(--g-color-private-green-700-solid);--g-color-base-positive-heavy-hover:var(--g-color-private-green-800-solid);--g-color-base-warning-light:var(--g-color-private-yellow-300);--g-color-base-warning-light-hover:var(--g-color-private-yellow-400);--g-color-base-warning-medium:var(--g-color-private-yellow-400);--g-color-base-warning-medium-hover:var(--g-color-private-yellow-550-solid);--g-color-base-warning-heavy:var(--g-color-private-yellow-600-solid);--g-color-base-warning-heavy-hover:var(--g-color-private-yellow-700-solid);--g-color-base-danger-light:var(--g-color-private-red-250);--g-color-base-danger-light-hover:var(--g-color-private-red-350);--g-color-base-danger-medium:var(--g-color-private-red-400);--g-color-base-danger-medium-hover:var(--g-color-private-red-500);--g-color-base-danger-heavy:var(--g-color-private-red-700-solid);--g-color-base-danger-heavy-hover:var(--g-color-private-red-800-solid);--g-color-base-utility-light:var(--g-color-private-purple-250);--g-color-base-utility-light-hover:var(--g-color-private-purple-350);--g-color-base-utility-medium:var(--g-color-private-purple-400);--g-color-base-utility-medium-hover:var(--g-color-private-purple-500);--g-color-base-utility-heavy:var(--g-color-private-purple-700-solid);--g-color-base-utility-heavy-hover:var(--g-color-private-purple-800-solid);--g-color-base-neutral-light:var(--g-color-private-black-150);--g-color-base-neutral-light-hover:var(--g-color-private-black-250);--g-color-base-neutral-medium:var(--g-color-private-black-300);--g-color-base-neutral-medium-hover:var(--g-color-private-black-400);--g-color-base-neutral-heavy:var(--g-color-private-black-550);--g-color-base-neutral-heavy-hover:var(--g-color-private-black-650);--g-color-base-misc-light:var(--g-color-private-cool-grey-250);--g-color-base-misc-light-hover:var(--g-color-private-cool-grey-350);--g-color-base-misc-medium:var(--g-color-private-cool-grey-400);--g-color-base-misc-medium-hover:var(--g-color-private-cool-grey-500);--g-color-base-misc-heavy:var(--g-color-private-cool-grey-700-solid);--g-color-base-misc-heavy-hover:var(--g-color-private-cool-grey-800-solid);--g-color-base-light:var(--g-color-private-white-1000-solid);--g-color-base-light-hover:var(--g-color-private-white-850);--g-color-base-light-simple-hover:var(--g-color-private-white-300);--g-color-base-light-disabled:var(--g-color-private-white-150);--g-color-base-light-accent-disabled:var(--g-color-private-white-300);--g-color-base-float:var(--g-color-private-white-1000-solid);--g-color-base-float-hover:var(--g-color-private-black-150-solid);--g-color-base-float-medium:var(--g-color-private-black-550-solid);--g-color-base-float-heavy:var(--g-color-private-black-700-solid);--g-color-base-float-accent:var(--g-color-private-white-1000-solid);--g-color-base-float-accent-hover:var(--g-color-private-white-850);--g-color-base-float-announcement:var(--g-color-private-cool-grey-150-solid);--g-color-base-modal:var(--g-color-base-background);--g-color-line-generic:var(--g-color-private-black-200);--g-color-line-generic-hover:var(--g-color-private-black-400);--g-color-line-generic-active:var(--g-color-private-black-700);--g-color-line-generic-accent:var(--g-color-private-black-300);--g-color-line-generic-accent-hover:var(--g-color-private-black-700);--g-color-line-generic-solid:var(--g-color-private-black-200-solid);--g-color-line-brand:var(--g-color-private-yellow-600-solid);--g-color-line-focus:var(--g-color-private-cool-grey-450);--g-color-line-light:var(--g-color-private-white-500);--g-color-line-info:var(--g-color-private-blue-450);--g-color-line-positive:var(--g-color-private-green-450);--g-color-line-warning:var(--g-color-private-yellow-600-solid);--g-color-line-danger:var(--g-color-private-red-450);--g-color-line-utility:var(--g-color-private-purple-450);--g-color-line-misc:var(--g-color-private-cool-grey-450);--g-color-sfx-veil:var(--g-color-private-black-450);--g-color-sfx-shadow:var(--g-color-private-black-300);--g-color-sfx-shadow-heavy:var(--g-color-private-black-600);--g-color-sfx-shadow-light:var(--g-color-private-black-100);--g-color-sfx-fade:var(--g-color-private-white-300);--g-color-scroll-track:var(--g-color-base-background);--g-color-scroll-handle:var(--g-color-private-black-100);--g-color-scroll-handle-hover:var(--g-color-private-black-150);--g-color-scroll-corner:var(--g-color-private-black-100);--g-color-infographics-axis:var(--g-color-private-black-150-solid);--g-color-infographics-tooltip-bg:var(--g-color-private-white-950)}.g-root_theme_dark-hc{--g-color-private-white-50-solid:#1e1d1e;--g-color-private-white-70-solid:#232223;--g-color-private-white-100-solid:#2a292a;--g-color-private-white-150-solid:#363536;--g-color-private-white-200-solid:#414141;--g-color-private-white-250-solid:#4d4d4d;--g-color-private-white-300-solid:#595859;--g-color-private-white-350-solid:#656465;--g-color-private-white-400-solid:#717071;--g-color-private-white-450-solid:#7d7c7d;--g-color-private-white-500-solid:#888;--g-color-private-white-550-solid:#949494;--g-color-private-white-600-solid:#a0a0a0;--g-color-private-white-650-solid:#acacac;--g-color-private-white-700-solid:#b8b8b8;--g-color-private-white-750-solid:#c4c3c4;--g-color-private-white-800-solid:#d0cfd0;--g-color-private-white-850-solid:#d0cfd0;--g-color-private-white-900-solid:#e7e7e7;--g-color-private-white-950-solid:#f3f3f3;--g-color-private-blue-50:#3697f11a;--g-color-private-blue-100:#3697f126;--g-color-private-blue-150:#3697f133;--g-color-private-blue-200:#3697f14d;--g-color-private-blue-250:#3697f166;--g-color-private-blue-300:#3697f180;--g-color-private-blue-350:#3697f199;--g-color-private-blue-400:#3697f1b3;--g-color-private-blue-450:#3697f1cc;--g-color-private-blue-500:#3697f1e6;--g-color-private-blue-50-solid:#161e28;--g-color-private-blue-100-solid:#172533;--g-color-private-blue-150-solid:#192c3f;--g-color-private-blue-200-solid:#1d3955;--g-color-private-blue-250-solid:#20476b;--g-color-private-blue-300-solid:#245482;--g-color-private-blue-350-solid:#286198;--g-color-private-blue-400-solid:#2b6fae;--g-color-private-blue-450-solid:#2f7cc4;--g-color-private-blue-500-solid:#328adb;--g-color-private-blue-550-solid:#3697f1;--g-color-private-blue-600-solid:#4aa1f2;--g-color-private-blue-650-solid:#5eacf4;--g-color-private-blue-700-solid:#72b6f5;--g-color-private-blue-750-solid:#86c1f7;--g-color-private-blue-800-solid:#9bcbf8;--g-color-private-blue-850-solid:#afd5f9;--g-color-private-blue-900-solid:#c3e0fb;--g-color-private-blue-950-solid:#d7eafc;--g-color-private-blue-1000-solid:#e1effd;--g-color-private-green-50:#4db09b1a;--g-color-private-green-100:#4db09b26;--g-color-private-green-150:#4db09b33;--g-color-private-green-200:#4db09b4d;--g-color-private-green-250:#4db09b66;--g-color-private-green-300:#4db09b80;--g-color-private-green-350:#4db09b99;--g-color-private-green-400:#4db09bb3;--g-color-private-green-450:#4db09bcc;--g-color-private-green-500:#4db09be6;--g-color-private-green-50-solid:#182120;--g-color-private-green-100-solid:#1b2927;--g-color-private-green-150-solid:#1e312d;--g-color-private-green-200-solid:#24413b;--g-color-private-green-250-solid:#2a5149;--g-color-private-green-300-solid:#306157;--g-color-private-green-350-solid:#357064;--g-color-private-green-400-solid:#3b8072;--g-color-private-green-450-solid:#419080;--g-color-private-green-500-solid:#47a08d;--g-color-private-green-550-solid:#4db09b;--g-color-private-green-600-solid:#5fb8a5;--g-color-private-green-650-solid:#71c0af;--g-color-private-green-700-solid:#82c8b9;--g-color-private-green-750-solid:#94d0c3;--g-color-private-green-800-solid:#a6d8cd;--g-color-private-green-850-solid:#b8dfd7;--g-color-private-green-900-solid:#cae7e1;--g-color-private-green-950-solid:#dbefeb;--g-color-private-green-1000-solid:#e4f3f0;--g-color-private-yellow-50:#ffbe5c1a;--g-color-private-yellow-100:#ffbe5c26;--g-color-private-yellow-150:#ffbe5c33;--g-color-private-yellow-200:#ffbe5c4d;--g-color-private-yellow-250:#ffbe5c66;--g-color-private-yellow-300:#ffbe5c80;--g-color-private-yellow-350:#ffbe5c99;--g-color-private-yellow-400:#ffbe5cb3;--g-color-private-yellow-450:#ffbe5ccc;--g-color-private-yellow-500:#ffbe5ce6;--g-color-private-yellow-50-solid:#2a2219;--g-color-private-yellow-100-solid:#362b1d;--g-color-private-yellow-150-solid:#413421;--g-color-private-yellow-200-solid:#594528;--g-color-private-yellow-250-solid:#715630;--g-color-private-yellow-300-solid:#896837;--g-color-private-yellow-350-solid:#a0793e;--g-color-private-yellow-400-solid:#b88a46;--g-color-private-yellow-450-solid:#d09b4d;--g-color-private-yellow-500-solid:#e7ad55;--g-color-private-yellow-550-solid:#ffbe5c;--g-color-private-yellow-600-solid:#ffc56c;--g-color-private-yellow-650-solid:#ffcb7d;--g-color-private-yellow-700-solid:#ffd28d;--g-color-private-yellow-750-solid:#ffd89d;--g-color-private-yellow-800-solid:#ffdfae;--g-color-private-yellow-850-solid:#ffe5be;--g-color-private-yellow-900-solid:#ffecce;--g-color-private-yellow-950-solid:#fff2de;--g-color-private-yellow-1000-solid:#fff5e7;--g-color-private-orange-50-solid:#241911;--g-color-private-orange-100-solid:#2d1d11;--g-color-private-orange-150-solid:#362111;--g-color-private-orange-200-solid:#492a10;--g-color-private-orange-250-solid:#5b3210;--g-color-private-orange-300-solid:#6d3a0f;--g-color-private-orange-350-solid:#7f420e;--g-color-private-orange-400-solid:#914a0e;--g-color-private-orange-450-solid:#a4530d;--g-color-private-orange-500-solid:#b65b0d;--g-color-private-orange-700-solid:#d99255;--g-color-private-orange-800-solid:#e4b186;--g-color-private-red-50:#e5325d1a;--g-color-private-red-100:#e5325d26;--g-color-private-red-150:#e5325d33;--g-color-private-red-200:#e5325d4d;--g-color-private-red-250:#e5325d66;--g-color-private-red-300:#e5325d80;--g-color-private-red-350:#e5325d99;--g-color-private-red-400:#e5325db3;--g-color-private-red-450:#e5325dcc;--g-color-private-red-500:#e5325de6;--g-color-private-red-50-solid:#27141a;--g-color-private-red-100-solid:#32161d;--g-color-private-red-150-solid:#3c1821;--g-color-private-red-200-solid:#511b29;--g-color-private-red-250-solid:#661e30;--g-color-private-red-300-solid:#7c2238;--g-color-private-red-350-solid:#91253f;--g-color-private-red-400-solid:#a62847;--g-color-private-red-450-solid:#bb2b4e;--g-color-private-red-500-solid:#d02f56;--g-color-private-red-550-solid:#e5325d;--g-color-private-red-600-solid:#e8476d;--g-color-private-red-650-solid:#ea5b7d;--g-color-private-red-700-solid:#ed708e;--g-color-private-red-750-solid:#ef849e;--g-color-private-red-800-solid:#f299ae;--g-color-private-red-850-solid:#f5adbe;--g-color-private-red-900-solid:#f7c2ce;--g-color-private-red-950-solid:#fad6df;--g-color-private-red-1000-solid:#fbe0e7;--g-color-private-purple-50-solid:#1f1825;--g-color-private-purple-100-solid:#251b2e;--g-color-private-purple-150-solid:#2b1e37;--g-color-private-purple-200-solid:#38254a;--g-color-private-purple-250-solid:#442b5c;--g-color-private-purple-300-solid:#51326f;--g-color-private-purple-350-solid:#5d3882;--g-color-private-purple-400-solid:#6a3f94;--g-color-private-purple-450-solid:#7645a7;--g-color-private-purple-500-solid:#834cb9;--g-color-private-cool-grey-50-solid:#1a1c20;--g-color-private-cool-grey-100-solid:#1e2227;--g-color-private-cool-grey-150-solid:#22272e;--g-color-private-cool-grey-200-solid:#29323b;--g-color-private-cool-grey-250-solid:#313d49;--g-color-private-cool-grey-300-solid:#394957;--g-color-private-cool-grey-350-solid:#415465;--g-color-private-cool-grey-400-solid:#495f73;--g-color-private-cool-grey-450-solid:#506a80;--g-color-private-cool-grey-500-solid:#58758e;--g-color-private-cool-grey-750-solid:#a0b3c4;--g-color-private-cool-grey-800-solid:#b0c0ce;--g-color-text-primary:var(--g-color-text-light-primary);--g-color-text-complementary:var(--g-color-text-light-complementary);--g-color-text-secondary:var(--g-color-text-light-secondary);--g-color-text-hint:var(--g-color-text-light-hint);--g-color-text-info:var(--g-color-private-blue-650-solid);--g-color-text-positive:var(--g-color-private-green-650-solid);--g-color-text-warning:var(--g-color-private-yellow-650-solid);--g-color-text-danger:var(--g-color-private-red-650-solid);--g-color-text-utility:var(--g-color-private-purple-650-solid);--g-color-text-misc:var(--g-color-private-cool-grey-650-solid);--g-color-text-info-heavy:var(--g-color-private-blue-850-solid);--g-color-text-positive-heavy:var(--g-color-private-green-850-solid);--g-color-text-warning-heavy:var(--g-color-private-yellow-850-solid);--g-color-text-danger-heavy:var(--g-color-private-red-850-solid);--g-color-text-utility-heavy:var(--g-color-private-purple-850-solid);--g-color-text-misc-heavy:var(--g-color-private-cool-grey-850-solid);--g-color-text-brand:var(--g-color-private-yellow-600-solid);--g-color-text-brand-heavy:var(--g-color-private-yellow-700-solid);--g-color-text-brand-contrast:var(--g-color-text-dark-primary);--g-color-text-link:var(--g-color-private-yellow-550-solid);--g-color-text-link-hover:var(--g-color-private-orange-550-solid);--g-color-text-link-visited:var(--g-color-private-purple-650-solid);--g-color-text-link-visited-hover:var(--g-color-private-purple-800-solid);--g-color-text-dark-primary:var(--g-color-private-black-1000-solid);--g-color-text-dark-complementary:var(--g-color-private-black-800);--g-color-text-dark-secondary:var(--g-color-private-black-600);--g-color-text-dark-hint:var(--g-color-private-black-400);--g-color-text-light-primary:var(--g-color-private-white-1000-solid);--g-color-text-light-complementary:var(--g-color-private-white-800);--g-color-text-light-secondary:var(--g-color-private-white-600);--g-color-text-light-hint:var(--g-color-private-white-400);--g-color-text-inverted-primary:var(--g-color-text-dark-primary);--g-color-text-inverted-complementary:var(--g-color-text-dark-complementary);--g-color-text-inverted-secondary:var(--g-color-text-dark-secondary);--g-color-text-inverted-hint:var(--g-color-text-dark-hint);--g-color-base-background:#121112;--g-color-base-generic:var(--g-color-private-white-100);--g-color-base-generic-hover:var(--g-color-private-white-250);--g-color-base-generic-medium:var(--g-color-private-white-250);--g-color-base-generic-medium-hover:var(--g-color-private-white-400);--g-color-base-generic-accent:var(--g-color-private-white-200);--g-color-base-generic-accent-disabled:var(--g-color-private-white-150);--g-color-base-generic-ultralight:var(--g-color-private-white-50);--g-color-base-simple-hover:var(--g-color-private-white-250);--g-color-base-simple-hover-solid:var(--g-color-private-white-250-solid);--g-color-base-brand:var(--g-color-private-yellow-550-solid);--g-color-base-brand-hover:var(--g-color-private-yellow-700-solid);--g-color-base-selection:var(--g-color-private-yellow-250);--g-color-base-selection-hover:var(--g-color-private-yellow-400);--g-color-base-info-light:var(--g-color-private-blue-250);--g-color-base-info-light-hover:var(--g-color-private-blue-400);--g-color-base-info-medium:var(--g-color-private-blue-450);--g-color-base-info-medium-hover:var(--g-color-private-blue-600-solid);--g-color-base-info-heavy:var(--g-color-private-blue-700-solid);--g-color-base-info-heavy-hover:var(--g-color-private-blue-850-solid);--g-color-base-positive-light:var(--g-color-private-green-250);--g-color-base-positive-light-hover:var(--g-color-private-green-400);--g-color-base-positive-medium:var(--g-color-private-green-450);--g-color-base-positive-medium-hover:var(--g-color-private-green-600-solid);--g-color-base-positive-heavy:var(--g-color-private-green-700-solid);--g-color-base-positive-heavy-hover:var(--g-color-private-green-850-solid);--g-color-base-warning-light:var(--g-color-private-yellow-250);--g-color-base-warning-light-hover:var(--g-color-private-yellow-400);--g-color-base-warning-medium:var(--g-color-private-yellow-450);--g-color-base-warning-medium-hover:var(--g-color-private-yellow-600-solid);--g-color-base-warning-heavy:var(--g-color-private-yellow-700-solid);--g-color-base-warning-heavy-hover:var(--g-color-private-yellow-850-solid);--g-color-base-danger-light:var(--g-color-private-red-250);--g-color-base-danger-light-hover:var(--g-color-private-red-400);--g-color-base-danger-medium:var(--g-color-private-red-450);--g-color-base-danger-medium-hover:var(--g-color-private-red-600-solid);--g-color-base-danger-heavy:var(--g-color-private-red-700-solid);--g-color-base-danger-heavy-hover:var(--g-color-private-red-850-solid);--g-color-base-utility-light:var(--g-color-private-purple-250);--g-color-base-utility-light-hover:var(--g-color-private-purple-400);--g-color-base-utility-medium:var(--g-color-private-purple-450);--g-color-base-utility-medium-hover:var(--g-color-private-purple-600-solid);--g-color-base-utility-heavy:var(--g-color-private-purple-700-solid);--g-color-base-utility-heavy-hover:var(--g-color-private-purple-850-solid);--g-color-base-neutral-light:var(--g-color-private-white-200);--g-color-base-neutral-light-hover:var(--g-color-private-white-350);--g-color-base-neutral-medium:var(--g-color-private-white-400);--g-color-base-neutral-medium-hover:var(--g-color-private-white-550);--g-color-base-neutral-heavy:var(--g-color-private-white-650);--g-color-base-neutral-heavy-hover:var(--g-color-private-white-750);--g-color-base-misc-light:var(--g-color-private-cool-grey-250);--g-color-base-misc-light-hover:var(--g-color-private-cool-grey-400);--g-color-base-misc-medium:var(--g-color-private-cool-grey-450);--g-color-base-misc-medium-hover:var(--g-color-private-cool-grey-600-solid);--g-color-base-misc-heavy:var(--g-color-private-cool-grey-700-solid);--g-color-base-misc-heavy-hover:var(--g-color-private-cool-grey-850-solid);--g-color-base-light:var(--g-color-private-white-850);--g-color-base-light-hover:var(--g-color-private-white-700);--g-color-base-light-simple-hover:var(--g-color-private-white-150);--g-color-base-light-disabled:var(--g-color-private-white-150);--g-color-base-light-accent-disabled:var(--g-color-private-white-300);--g-color-base-float:var(--g-color-private-white-100-solid);--g-color-base-float-hover:var(--g-color-private-white-200-solid);--g-color-base-float-medium:var(--g-color-private-white-200-solid);--g-color-base-float-heavy:var(--g-color-private-white-300-solid);--g-color-base-float-accent:var(--g-color-private-white-300-solid);--g-color-base-float-accent-hover:var(--g-color-private-white-400-solid);--g-color-base-float-announcement:var(--g-color-private-white-200-solid);--g-color-base-modal:var(--g-color-base-background);--g-color-line-generic:var(--g-color-private-white-150);--g-color-line-generic-hover:var(--g-color-private-white-250);--g-color-line-generic-active:var(--g-color-private-white-600);--g-color-line-generic-accent:var(--g-color-private-white-350);--g-color-line-generic-accent-hover:var(--g-color-private-white-800);--g-color-line-generic-solid:var(--g-color-private-white-150-solid);--g-color-line-brand:var(--g-color-private-yellow-600-solid);--g-color-line-focus:var(--g-color-private-cool-grey-550-solid);--g-color-line-light:var(--g-color-private-white-500);--g-color-line-info:var(--g-color-private-blue-550-solid);--g-color-line-positive:var(--g-color-private-green-550-solid);--g-color-line-warning:var(--g-color-private-yellow-550-solid);--g-color-line-danger:var(--g-color-private-red-550-solid);--g-color-line-utility:var(--g-color-private-purple-550-solid);--g-color-line-misc:var(--g-color-private-cool-grey-550-solid);--g-color-sfx-veil:var(--g-color-private-black-700);--g-color-sfx-shadow:var(--g-color-private-black-200);--g-color-sfx-shadow-heavy:var(--g-color-private-black-400);--g-color-sfx-shadow-light:var(--g-color-private-black-200);--g-color-sfx-fade:var(--g-color-private-white-250);--g-color-scroll-track:var(--g-color-base-background);--g-color-scroll-handle:var(--g-color-private-white-150);--g-color-scroll-handle-hover:var(--g-color-private-white-250);--g-color-scroll-corner:var(--g-color-private-white-150);--g-color-infographics-axis:var(--g-color-private-white-150-solid);--g-color-infographics-tooltip-bg:var(--g-color-private-white-opaque-150)}.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar){scrollbar-color:var(--g-color-scroll-handle) var(--g-color-scroll-track);scrollbar-width:var(--g-scrollbar-width)}.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar) ::-webkit-scrollbar,.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar)::-webkit-scrollbar{background:var(--g-color-scroll-track);height:var(--g-scrollbar-width);width:var(--g-scrollbar-width)}.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar) ::-webkit-scrollbar-track,.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar)::-webkit-scrollbar-track{background:var(--g-color-scroll-track)}.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar) ::-webkit-scrollbar-corner,.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar)::-webkit-scrollbar-corner{background:var(--g-color-scroll-corner)}.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar) ::-webkit-scrollbar-thumb,.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar)::-webkit-scrollbar-thumb{background:var(--g-color-scroll-handle)}.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar) ::-webkit-scrollbar-thumb:hover,.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar)::-webkit-scrollbar-thumb:hover{background:var(--g-color-scroll-handle-hover)}@keyframes g-loading-animation{0%{background-position:-12px 0}to{background-position:0 0}}:root:has(body.g-root_theme_light),:root:has(body.g-root_theme_light-hc){color-scheme:light}:root:has(body.g-root_theme_dark),:root:has(body.g-root_theme_dark-hc){color-scheme:dark}@media(prefers-reduced-motion:reduce){*,:after,:before{animation-duration:.001ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.001ms!important}}.g-root{--g-text-header-font-weight:500;--g-text-subheader-font-weight:600;--g-text-display-font-weight:500;--g-text-accent-font-weight:500}.g-root_theme_light{--g-color-base-background:#fff;--g-color-base-brand:var(--g-color-private-blue-550-solid);--g-color-base-brand-hover:var(--g-color-private-blue-600-solid);--g-color-base-selection:var(--g-color-private-blue-100);--g-color-base-selection-hover:var(--g-color-private-blue-200);--g-color-line-brand:var(--g-color-private-blue-550-solid);--g-color-text-brand:var(--g-color-private-blue-600-solid);--g-color-text-brand-heavy:var(--g-color-private-blue-700-solid);--g-color-text-brand-contrast:var(--g-color-text-light-primary);--g-color-text-link:var(--g-color-private-blue-600-solid);--g-color-text-link-hover:var(--g-color-private-blue-800-solid);--g-color-private-white-50:#ffffff0d;--g-color-private-white-70:#ffffff12;--g-color-private-white-100:#ffffff1a;--g-color-private-white-150:#ffffff26;--g-color-private-white-200:#fff3;--g-color-private-white-250:#ffffff40;--g-color-private-white-300:#ffffff4d;--g-color-private-white-350:#ffffff59;--g-color-private-white-400:#fff6;--g-color-private-white-450:#ffffff73;--g-color-private-white-500:#ffffff80;--g-color-private-white-550:#ffffff8c;--g-color-private-white-600:#fff9;--g-color-private-white-650:#ffffffa6;--g-color-private-white-700:#ffffffb3;--g-color-private-white-750:#ffffffbf;--g-color-private-white-800:#fffc;--g-color-private-white-850:#ffffffd9;--g-color-private-white-900:#ffffffe6;--g-color-private-white-950:#fffffff2;--g-color-private-white-1000-solid:#fff;--g-color-private-black-50:#0000000d;--g-color-private-black-70:#00000012;--g-color-private-black-100:#0000001a;--g-color-private-black-150:#00000026;--g-color-private-black-200:#0003;--g-color-private-black-250:#00000040;--g-color-private-black-300:#0000004d;--g-color-private-black-350:#00000059;--g-color-private-black-400:#0006;--g-color-private-black-450:#00000073;--g-color-private-black-500:#00000080;--g-color-private-black-550:#0000008c;--g-color-private-black-600:#0009;--g-color-private-black-650:#000000a6;--g-color-private-black-700:#000000b3;--g-color-private-black-750:#000000bf;--g-color-private-black-800:#000c;--g-color-private-black-850:#000000d9;--g-color-private-black-900:#000000e6;--g-color-private-black-950:#000000f2;--g-color-private-black-20-solid:#fafafa;--g-color-private-black-50-solid:#f2f2f2;--g-color-private-black-100-solid:#e5e5e5;--g-color-private-black-150-solid:#d9d9d9;--g-color-private-black-200-solid:#ccc;--g-color-private-black-250-solid:#bfbfbf;--g-color-private-black-300-solid:#b3b3b3;--g-color-private-black-350-solid:#a6a6a6;--g-color-private-black-400-solid:#999;--g-color-private-black-450-solid:#8c8c8c;--g-color-private-black-500-solid:grey;--g-color-private-black-550-solid:#737373;--g-color-private-black-600-solid:#666;--g-color-private-black-650-solid:#595959;--g-color-private-black-700-solid:#4c4c4c;--g-color-private-black-750-solid:#404040;--g-color-private-black-800-solid:#333;--g-color-private-black-850-solid:#262626;--g-color-private-black-900-solid:#1a1a1a;--g-color-private-black-950-solid:#0d0d0d;--g-color-private-black-1000-solid:#000;--g-color-private-blue-50:#5282ff1a;--g-color-private-blue-100:#5282ff26;--g-color-private-blue-150:#5282ff33;--g-color-private-blue-200:#5282ff4d;--g-color-private-blue-250:#5282ff66;--g-color-private-blue-300:#5282ff80;--g-color-private-blue-350:#5282ff99;--g-color-private-blue-400:#5282ffb3;--g-color-private-blue-450:#5282ffcc;--g-color-private-blue-500:#5282ffe6;--g-color-private-blue-50-solid:#eef3ff;--g-color-private-blue-100-solid:#e5ecff;--g-color-private-blue-150-solid:#dce6ff;--g-color-private-blue-200-solid:#cbdaff;--g-color-private-blue-250-solid:#bacdff;--g-color-private-blue-300-solid:#a8c1ff;--g-color-private-blue-350-solid:#97b4ff;--g-color-private-blue-400-solid:#86a8ff;--g-color-private-blue-450-solid:#749bff;--g-color-private-blue-500-solid:#638fff;--g-color-private-blue-550-solid:#5282ff;--g-color-private-blue-600-solid:#4e79eb;--g-color-private-blue-650-solid:#4a71d6;--g-color-private-blue-700-solid:#4768c2;--g-color-private-blue-750-solid:#4360ad;--g-color-private-blue-800-solid:#3f5799;--g-color-private-blue-850-solid:#3c4f85;--g-color-private-blue-900-solid:#384670;--g-color-private-blue-950-solid:#343d5c;--g-color-private-blue-1000-solid:#333952;--g-color-private-green-50:#3bc9351a;--g-color-private-green-100:#3bc93526;--g-color-private-green-150:#3bc93533;--g-color-private-green-200:#3bc9354d;--g-color-private-green-250:#3bc93566;--g-color-private-green-300:#3bc93580;--g-color-private-green-350:#3bc93599;--g-color-private-green-400:#3bc935b3;--g-color-private-green-450:#3bc935cc;--g-color-private-green-500:#3bc935e6;--g-color-private-green-50-solid:#ebfaeb;--g-color-private-green-100-solid:#e2f7e1;--g-color-private-green-150-solid:#d8f4d7;--g-color-private-green-200-solid:#c4efc2;--g-color-private-green-250-solid:#b1e9ae;--g-color-private-green-300-solid:#9de49a;--g-color-private-green-350-solid:#89df86;--g-color-private-green-400-solid:#76d972;--g-color-private-green-450-solid:#62d45d;--g-color-private-green-500-solid:#4fce49;--g-color-private-green-550-solid:#3bc935;--g-color-private-green-600-solid:#3ab935;--g-color-private-green-650-solid:#38aa35;--g-color-private-green-700-solid:#379a34;--g-color-private-green-750-solid:#358a34;--g-color-private-green-800-solid:#347b34;--g-color-private-green-850-solid:#336b34;--g-color-private-green-900-solid:#315b34;--g-color-private-green-950-solid:#304b33;--g-color-private-green-1000-solid:#2f4433;--g-color-private-yellow-50:#ffdb4d1a;--g-color-private-yellow-100:#ffdb4d26;--g-color-private-yellow-150:#ffdb4d33;--g-color-private-yellow-200:#ffdb4d4d;--g-color-private-yellow-250:#ffdb4d66;--g-color-private-yellow-300:#ffdb4d80;--g-color-private-yellow-350:#ffdb4d99;--g-color-private-yellow-400:#ffdb4db3;--g-color-private-yellow-450:#ffdb4dcc;--g-color-private-yellow-500:#ffdb4de6;--g-color-private-yellow-50-solid:#fffbed;--g-color-private-yellow-100-solid:#fffae4;--g-color-private-yellow-150-solid:#fff8db;--g-color-private-yellow-200-solid:#fff4ca;--g-color-private-yellow-250-solid:#fff1b8;--g-color-private-yellow-300-solid:#ffeda6;--g-color-private-yellow-350-solid:#ffe994;--g-color-private-yellow-400-solid:#ffe682;--g-color-private-yellow-450-solid:#ffe271;--g-color-private-yellow-500-solid:#ffdf5f;--g-color-private-yellow-550-solid:#ffdb4d;--g-color-private-yellow-600-solid:#eac94a;--g-color-private-yellow-650-solid:#d5b848;--g-color-private-yellow-700-solid:#c0a645;--g-color-private-yellow-750-solid:#ab9543;--g-color-private-yellow-800-solid:#968340;--g-color-private-yellow-850-solid:#81723d;--g-color-private-yellow-900-solid:#6c603b;--g-color-private-yellow-950-solid:#574f38;--g-color-private-yellow-1000-solid:#4d4637;--g-color-private-orange-50:#ff77001a;--g-color-private-orange-100:#ff770026;--g-color-private-orange-150:#f703;--g-color-private-orange-200:#ff77004d;--g-color-private-orange-250:#f706;--g-color-private-orange-300:#ff770080;--g-color-private-orange-350:#f709;--g-color-private-orange-400:#ff7700b3;--g-color-private-orange-450:#f70c;--g-color-private-orange-500:#ff7700e6;--g-color-private-orange-50-solid:#fff1e6;--g-color-private-orange-100-solid:#ffebd9;--g-color-private-orange-150-solid:#ffe4cc;--g-color-private-orange-200-solid:#ffd6b3;--g-color-private-orange-250-solid:#ffc999;--g-color-private-orange-300-solid:#ffbb80;--g-color-private-orange-350-solid:#ffad66;--g-color-private-orange-400-solid:#ffa04c;--g-color-private-orange-450-solid:#ff9233;--g-color-private-orange-500-solid:#ff851a;--g-color-private-orange-550-solid:#f70;--g-color-private-orange-600-solid:#ea7005;--g-color-private-orange-650-solid:#d5680a;--g-color-private-orange-700-solid:#c0600f;--g-color-private-orange-750-solid:#ab5914;--g-color-private-orange-800-solid:#965119;--g-color-private-orange-850-solid:#814a1f;--g-color-private-orange-900-solid:#6c4324;--g-color-private-orange-950-solid:#573b29;--g-color-private-orange-1000-solid:#4d372b;--g-color-private-red-50:#ff04001a;--g-color-private-red-100:#ff040026;--g-color-private-red-150:#ff040033;--g-color-private-red-200:#ff04004d;--g-color-private-red-250:#ff040066;--g-color-private-red-300:#ff040080;--g-color-private-red-350:#ff040099;--g-color-private-red-400:#ff0400b3;--g-color-private-red-450:#ff0400cc;--g-color-private-red-500:#ff0400e6;--g-color-private-red-50-solid:#ffe6e6;--g-color-private-red-100-solid:#ffd9d9;--g-color-private-red-150-solid:#ffcdcc;--g-color-private-red-200-solid:#ffb4b3;--g-color-private-red-250-solid:#ff9b99;--g-color-private-red-300-solid:#ff8280;--g-color-private-red-350-solid:#ff6966;--g-color-private-red-400-solid:#ff504c;--g-color-private-red-450-solid:#ff3733;--g-color-private-red-500-solid:#ff1e1a;--g-color-private-red-550-solid:#ff0400;--g-color-private-red-600-solid:#ea0805;--g-color-private-red-650-solid:#d50c0a;--g-color-private-red-700-solid:#c0100f;--g-color-private-red-750-solid:#ab1414;--g-color-private-red-800-solid:#961819;--g-color-private-red-850-solid:#811c1f;--g-color-private-red-900-solid:#6c2024;--g-color-private-red-950-solid:#572429;--g-color-private-red-1000-solid:#4d262b;--g-color-private-purple-50:#8f52cc1a;--g-color-private-purple-100:#8f52cc26;--g-color-private-purple-150:#8f52cc33;--g-color-private-purple-200:#8f52cc4d;--g-color-private-purple-250:#8f52cc66;--g-color-private-purple-300:#8f52cc80;--g-color-private-purple-350:#8f52cc99;--g-color-private-purple-400:#8f52ccb3;--g-color-private-purple-450:#8f52cccc;--g-color-private-purple-500:#8f52cce6;--g-color-private-purple-50-solid:#f4eefa;--g-color-private-purple-100-solid:#eee5f7;--g-color-private-purple-150-solid:#e9dcf5;--g-color-private-purple-200-solid:#ddcbf0;--g-color-private-purple-250-solid:#d2baeb;--g-color-private-purple-300-solid:#c7a9e6;--g-color-private-purple-350-solid:#bc97e0;--g-color-private-purple-400-solid:#b186db;--g-color-private-purple-450-solid:#a575d6;--g-color-private-purple-500-solid:#9a63d1;--g-color-private-purple-550-solid:#8f52cc;--g-color-private-purple-600-solid:#854ebd;--g-color-private-purple-650-solid:#7b4aad;--g-color-private-purple-700-solid:#72479e;--g-color-private-purple-750-solid:#68438f;--g-color-private-purple-800-solid:#5e3f80;--g-color-private-purple-850-solid:#543b70;--g-color-private-purple-900-solid:#4a3761;--g-color-private-purple-950-solid:#413452;--g-color-private-purple-1000-solid:#3c324a;--g-color-private-cool-grey-50:#6b84991a;--g-color-private-cool-grey-100:#6b849926;--g-color-private-cool-grey-150:#6b849933;--g-color-private-cool-grey-200:#6b84994d;--g-color-private-cool-grey-250:#6b849966;--g-color-private-cool-grey-300:#6b849980;--g-color-private-cool-grey-350:#6b849999;--g-color-private-cool-grey-400:#6b8499b3;--g-color-private-cool-grey-450:#6b8499cc;--g-color-private-cool-grey-500:#6b8499e6;--g-color-private-cool-grey-50-solid:#f0f3f5;--g-color-private-cool-grey-100-solid:#e9edf0;--g-color-private-cool-grey-150-solid:#e1e6eb;--g-color-private-cool-grey-200-solid:#d3dae0;--g-color-private-cool-grey-250-solid:#c4ced6;--g-color-private-cool-grey-300-solid:#b5c1cc;--g-color-private-cool-grey-350-solid:#a6b5c2;--g-color-private-cool-grey-400-solid:#97a9b8;--g-color-private-cool-grey-450-solid:#899dad;--g-color-private-cool-grey-500-solid:#7a90a3;--g-color-private-cool-grey-550-solid:#6b8499;--g-color-private-cool-grey-600-solid:#657b8f;--g-color-private-cool-grey-650-solid:#5f7285;--g-color-private-cool-grey-700-solid:#586a7a;--g-color-private-cool-grey-750-solid:#526170;--g-color-private-cool-grey-800-solid:#4c5866;--g-color-private-cool-grey-850-solid:#464f5c;--g-color-private-cool-grey-900-solid:#404652;--g-color-private-cool-grey-950-solid:#393e47;--g-color-private-cool-grey-1000-solid:#363942}.g-root_theme_light-hc{--g-color-base-background:#fff;--g-color-base-brand:var(--g-color-private-blue-600-solid);--g-color-base-brand-hover:var(--g-color-private-blue-800-solid);--g-color-base-selection:var(--g-color-private-blue-250);--g-color-base-selection-hover:var(--g-color-private-blue-350);--g-color-line-brand:var(--g-color-private-blue-600-solid);--g-color-text-brand:var(--g-color-private-blue-650-solid);--g-color-text-brand-heavy:var(--g-color-private-blue-900-solid);--g-color-text-brand-contrast:var(--g-color-text-light-primary);--g-color-text-link:var(--g-color-private-blue-650-solid);--g-color-text-link-hover:var(--g-color-private-blue-850-solid);--g-color-private-white-50:#ffffff0d;--g-color-private-white-70:#ffffff12;--g-color-private-white-100:#ffffff1a;--g-color-private-white-150:#ffffff26;--g-color-private-white-200:#fff3;--g-color-private-white-250:#ffffff40;--g-color-private-white-300:#ffffff4d;--g-color-private-white-350:#ffffff59;--g-color-private-white-400:#fff6;--g-color-private-white-450:#ffffff73;--g-color-private-white-500:#ffffff80;--g-color-private-white-550:#ffffff8c;--g-color-private-white-600:#fff9;--g-color-private-white-650:#ffffffa6;--g-color-private-white-700:#ffffffb3;--g-color-private-white-750:#ffffffbf;--g-color-private-white-800:#fffc;--g-color-private-white-850:#ffffffd9;--g-color-private-white-900:#ffffffe6;--g-color-private-white-950:#fffffff2;--g-color-private-white-1000-solid:#fff;--g-color-private-black-50:#0000000d;--g-color-private-black-100:#0000001a;--g-color-private-black-150:#00000026;--g-color-private-black-200:#0003;--g-color-private-black-250:#00000040;--g-color-private-black-300:#0000004d;--g-color-private-black-350:#00000059;--g-color-private-black-400:#0006;--g-color-private-black-450:#00000073;--g-color-private-black-500:#00000080;--g-color-private-black-550:#0000008c;--g-color-private-black-600:#0009;--g-color-private-black-650:#000000a6;--g-color-private-black-700:#000000b3;--g-color-private-black-750:#000000bf;--g-color-private-black-800:#000c;--g-color-private-black-850:#000000d9;--g-color-private-black-900:#000000e6;--g-color-private-black-950:#000000f2;--g-color-private-black-50-solid:#f2f2f2;--g-color-private-black-100-solid:#e5e5e5;--g-color-private-black-150-solid:#d9d9d9;--g-color-private-black-200-solid:#ccc;--g-color-private-black-250-solid:#bfbfbf;--g-color-private-black-300-solid:#b3b3b3;--g-color-private-black-350-solid:#a6a6a6;--g-color-private-black-400-solid:#999;--g-color-private-black-450-solid:#8c8c8c;--g-color-private-black-500-solid:grey;--g-color-private-black-550-solid:#737373;--g-color-private-black-600-solid:#666;--g-color-private-black-650-solid:#595959;--g-color-private-black-700-solid:#4c4c4c;--g-color-private-black-750-solid:#404040;--g-color-private-black-800-solid:#333;--g-color-private-black-850-solid:#262626;--g-color-private-black-900-solid:#1a1a1a;--g-color-private-black-950-solid:#0d0d0d;--g-color-private-black-1000-solid:#000;--g-color-private-blue-50:#5282ff1a;--g-color-private-blue-100:#5282ff26;--g-color-private-blue-150:#5282ff33;--g-color-private-blue-200:#5282ff4d;--g-color-private-blue-250:#5282ff66;--g-color-private-blue-300:#5282ff80;--g-color-private-blue-350:#5282ff99;--g-color-private-blue-400:#5282ffb3;--g-color-private-blue-450:#5282ffcc;--g-color-private-blue-500:#5282ffe6;--g-color-private-blue-50-solid:#eef3ff;--g-color-private-blue-100-solid:#e5ecff;--g-color-private-blue-150-solid:#dce6ff;--g-color-private-blue-200-solid:#cbdaff;--g-color-private-blue-250-solid:#bacdff;--g-color-private-blue-300-solid:#a8c1ff;--g-color-private-blue-350-solid:#97b4ff;--g-color-private-blue-400-solid:#86a8ff;--g-color-private-blue-450-solid:#749bff;--g-color-private-blue-500-solid:#638fff;--g-color-private-blue-550-solid:#5282ff;--g-color-private-blue-600-solid:#4d79e9;--g-color-private-blue-650-solid:#486fd4;--g-color-private-blue-700-solid:#4366be;--g-color-private-blue-750-solid:#3f5ca8;--g-color-private-blue-800-solid:#3a5393;--g-color-private-blue-850-solid:#35497d;--g-color-private-blue-900-solid:#304067;--g-color-private-blue-950-solid:#2c3651;--g-color-private-blue-1000-solid:#293147;--g-color-private-green-50:#3bc9351a;--g-color-private-green-100:#3bc93526;--g-color-private-green-150:#3bc93533;--g-color-private-green-200:#3bc9354d;--g-color-private-green-250:#3bc93566;--g-color-private-green-300:#3bc93580;--g-color-private-green-350:#3bc93599;--g-color-private-green-400:#3bc935b3;--g-color-private-green-450:#3bc935cc;--g-color-private-green-500:#3bc935e6;--g-color-private-green-50-solid:#ebfaeb;--g-color-private-green-100-solid:#e2f7e1;--g-color-private-green-150-solid:#d8f4d7;--g-color-private-green-200-solid:#c4efc2;--g-color-private-green-250-solid:#b1e9ae;--g-color-private-green-300-solid:#9de49a;--g-color-private-green-350-solid:#89df86;--g-color-private-green-400-solid:#76d972;--g-color-private-green-450-solid:#62d45d;--g-color-private-green-500-solid:#4fce49;--g-color-private-green-550-solid:#3bc935;--g-color-private-green-600-solid:#38b833;--g-color-private-green-650-solid:#36a832;--g-color-private-green-700-solid:#339730;--g-color-private-green-750-solid:#31872f;--g-color-private-green-800-solid:#2f762e;--g-color-private-green-850-solid:#2c652c;--g-color-private-green-900-solid:#29552b;--g-color-private-green-950-solid:#274429;--g-color-private-green-1000-solid:#263c28;--g-color-private-yellow-50:#ffdb4d1a;--g-color-private-yellow-100:#ffdb4d26;--g-color-private-yellow-150:#ffdb4d33;--g-color-private-yellow-200:#ffdb4d4d;--g-color-private-yellow-250:#ffdb4d66;--g-color-private-yellow-300:#ffdb4d80;--g-color-private-yellow-350:#ffdb4d99;--g-color-private-yellow-400:#ffdb4db3;--g-color-private-yellow-450:#ffdb4dcc;--g-color-private-yellow-500:#ffdb4de6;--g-color-private-yellow-50-solid:#fffbed;--g-color-private-yellow-100-solid:#fffae4;--g-color-private-yellow-150-solid:#fff8db;--g-color-private-yellow-200-solid:#fff4ca;--g-color-private-yellow-250-solid:#fff1b8;--g-color-private-yellow-300-solid:#ffeda6;--g-color-private-yellow-350-solid:#ffe994;--g-color-private-yellow-400-solid:#ffe682;--g-color-private-yellow-450-solid:#ffe271;--g-color-private-yellow-500-solid:#ffdf5f;--g-color-private-yellow-550-solid:#ffdb4d;--g-color-private-yellow-600-solid:#e9c949;--g-color-private-yellow-650-solid:#d3b645;--g-color-private-yellow-700-solid:#bda441;--g-color-private-yellow-750-solid:#a7913d;--g-color-private-yellow-800-solid:#907f3a;--g-color-private-yellow-850-solid:#7a6d36;--g-color-private-yellow-900-solid:#645a32;--g-color-private-yellow-950-solid:#4e482e;--g-color-private-yellow-1000-solid:#433f2c;--g-color-private-orange-50:#ff77001a;--g-color-private-orange-100:#ff770026;--g-color-private-orange-150:#f703;--g-color-private-orange-200:#ff77004d;--g-color-private-orange-250:#f706;--g-color-private-orange-300:#ff770080;--g-color-private-orange-350:#f709;--g-color-private-orange-400:#ff7700b3;--g-color-private-orange-450:#f70c;--g-color-private-orange-500:#ff7700e6;--g-color-private-orange-50-solid:#fff1e6;--g-color-private-orange-100-solid:#ffebd9;--g-color-private-orange-150-solid:#ffe4cc;--g-color-private-orange-200-solid:#ffd6b3;--g-color-private-orange-250-solid:#ffc999;--g-color-private-orange-300-solid:#ffbb80;--g-color-private-orange-350-solid:#ffad66;--g-color-private-orange-400-solid:#ffa04c;--g-color-private-orange-450-solid:#ff9233;--g-color-private-orange-500-solid:#ff851a;--g-color-private-orange-550-solid:#f70;--g-color-private-orange-600-solid:#e96f04;--g-color-private-orange-650-solid:#d36608;--g-color-private-orange-700-solid:#bd5e0b;--g-color-private-orange-750-solid:#a7550f;--g-color-private-orange-800-solid:#904d13;--g-color-private-orange-850-solid:#7a4517;--g-color-private-orange-900-solid:#643c1b;--g-color-private-orange-950-solid:#4e341e;--g-color-private-orange-1000-solid:#433020;--g-color-private-red-50:#ff04001a;--g-color-private-red-100:#ff040026;--g-color-private-red-150:#ff040033;--g-color-private-red-200:#ff04004d;--g-color-private-red-250:#ff040066;--g-color-private-red-300:#ff040080;--g-color-private-red-350:#ff040099;--g-color-private-red-400:#ff0400b3;--g-color-private-red-450:#ff0400cc;--g-color-private-red-500:#ff0400e6;--g-color-private-red-50-solid:#ffe6e6;--g-color-private-red-100-solid:#ffd9d9;--g-color-private-red-150-solid:#ffcdcc;--g-color-private-red-200-solid:#ffb4b3;--g-color-private-red-250-solid:#ff9b99;--g-color-private-red-300-solid:#ff8280;--g-color-private-red-350-solid:#ff6966;--g-color-private-red-400-solid:#ff504c;--g-color-private-red-450-solid:#ff3733;--g-color-private-red-500-solid:#ff1e1a;--g-color-private-red-550-solid:#ff0400;--g-color-private-red-600-solid:#e90804;--g-color-private-red-650-solid:#d30b08;--g-color-private-red-700-solid:#bd0e0b;--g-color-private-red-750-solid:#a6110f;--g-color-private-red-800-solid:#901413;--g-color-private-red-850-solid:#7a1717;--g-color-private-red-900-solid:#641a1b;--g-color-private-red-950-solid:#4e1d1e;--g-color-private-red-1000-solid:#431e20;--g-color-private-purple-50:#8f52cc1a;--g-color-private-purple-100:#8f52cc26;--g-color-private-purple-150:#8f52cc33;--g-color-private-purple-200:#8f52cc4d;--g-color-private-purple-250:#8f52cc66;--g-color-private-purple-300:#8f52cc80;--g-color-private-purple-350:#8f52cc99;--g-color-private-purple-400:#8f52ccb3;--g-color-private-purple-450:#8f52cccc;--g-color-private-purple-500:#8f52cce6;--g-color-private-purple-50-solid:#f4eefa;--g-color-private-purple-100-solid:#eee5f7;--g-color-private-purple-150-solid:#e9dcf5;--g-color-private-purple-200-solid:#ddcbf0;--g-color-private-purple-250-solid:#d2baeb;--g-color-private-purple-300-solid:#c7a9e6;--g-color-private-purple-350-solid:#bc97e0;--g-color-private-purple-400-solid:#b186db;--g-color-private-purple-450-solid:#a575d6;--g-color-private-purple-500-solid:#9a63d1;--g-color-private-purple-550-solid:#8f52cc;--g-color-private-purple-600-solid:#844dbb;--g-color-private-purple-650-solid:#7949ab;--g-color-private-purple-700-solid:#6e449a;--g-color-private-purple-750-solid:#633f8a;--g-color-private-purple-800-solid:#593b79;--g-color-private-purple-850-solid:#4e3668;--g-color-private-purple-900-solid:#433158;--g-color-private-purple-950-solid:#382c47;--g-color-private-purple-1000-solid:#322a3f;--g-color-private-cool-grey-50:#6b84991a;--g-color-private-cool-grey-100:#6b849926;--g-color-private-cool-grey-150:#6b849933;--g-color-private-cool-grey-200:#6b84994d;--g-color-private-cool-grey-250:#6b849966;--g-color-private-cool-grey-300:#6b849980;--g-color-private-cool-grey-350:#6b849999;--g-color-private-cool-grey-400:#6b8499b3;--g-color-private-cool-grey-450:#6b8499cc;--g-color-private-cool-grey-500:#6b8499e6;--g-color-private-cool-grey-50-solid:#f0f3f5;--g-color-private-cool-grey-100-solid:#e9edf0;--g-color-private-cool-grey-150-solid:#e1e6eb;--g-color-private-cool-grey-200-solid:#d3dae0;--g-color-private-cool-grey-250-solid:#c4ced6;--g-color-private-cool-grey-300-solid:#b5c1cc;--g-color-private-cool-grey-350-solid:#a6b5c2;--g-color-private-cool-grey-400-solid:#97a9b8;--g-color-private-cool-grey-450-solid:#899dad;--g-color-private-cool-grey-500-solid:#7a90a3;--g-color-private-cool-grey-550-solid:#6b8499;--g-color-private-cool-grey-600-solid:#647a8e;--g-color-private-cool-grey-650-solid:#5c7182;--g-color-private-cool-grey-700-solid:#556776;--g-color-private-cool-grey-750-solid:#4e5d6b;--g-color-private-cool-grey-800-solid:#465360;--g-color-private-cool-grey-850-solid:#3f4a54;--g-color-private-cool-grey-900-solid:#384049;--g-color-private-cool-grey-950-solid:#31363d;--g-color-private-cool-grey-1000-solid:#2d3237}.g-root_theme_dark{--g-color-base-background:#2d2c33;--g-color-base-brand:var(--g-color-private-blue-450-solid);--g-color-base-brand-hover:var(--g-color-private-blue-600-solid);--g-color-base-selection:var(--g-color-private-blue-150);--g-color-base-selection-hover:var(--g-color-private-blue-200);--g-color-line-brand:var(--g-color-private-blue-550-solid);--g-color-text-brand:var(--g-color-private-blue-550-solid);--g-color-text-brand-heavy:var(--g-color-private-blue-600-solid);--g-color-text-brand-contrast:var(--g-color-text-light-primary);--g-color-text-link:var(--g-color-private-blue-550-solid);--g-color-text-link-hover:var(--g-color-private-blue-700-solid);--g-color-private-white-20:#ffffff05;--g-color-private-white-50:#ffffff0d;--g-color-private-white-70:#ffffff12;--g-color-private-white-100:#ffffff1a;--g-color-private-white-150:#ffffff26;--g-color-private-white-200:#fff3;--g-color-private-white-250:#ffffff40;--g-color-private-white-300:#ffffff4d;--g-color-private-white-350:#ffffff59;--g-color-private-white-400:#fff6;--g-color-private-white-450:#ffffff73;--g-color-private-white-500:#ffffff80;--g-color-private-white-550:#ffffff8c;--g-color-private-white-600:#fff9;--g-color-private-white-650:#ffffffa6;--g-color-private-white-700:#ffffffb3;--g-color-private-white-750:#ffffffbf;--g-color-private-white-800:#fffc;--g-color-private-white-850:#ffffffd9;--g-color-private-white-900:#ffffffe6;--g-color-private-white-950:#fffffff2;--g-color-private-white-20-solid:#313037;--g-color-private-white-50-solid:#38373d;--g-color-private-white-70-solid:#3c3b41;--g-color-private-white-100-solid:#424147;--g-color-private-white-150-solid:#4d4c52;--g-color-private-white-200-solid:#57565c;--g-color-private-white-250-solid:#616166;--g-color-private-white-300-solid:#6c6b70;--g-color-private-white-350-solid:#77767a;--g-color-private-white-400-solid:#818085;--g-color-private-white-450-solid:#8b8b8f;--g-color-private-white-500-solid:#969699;--g-color-private-white-550-solid:#a0a0a3;--g-color-private-white-600-solid:#ababad;--g-color-private-white-650-solid:#b6b5b8;--g-color-private-white-700-solid:#c0c0c2;--g-color-private-white-750-solid:#cacacc;--g-color-private-white-800-solid:#d5d5d6;--g-color-private-white-850-solid:#dfdfe0;--g-color-private-white-900-solid:#eaeaeb;--g-color-private-white-950-solid:#f5f5f5;--g-color-private-white-1000-solid:#fff;--g-color-private-white-opaque-150:#4c4b51f2;--g-color-private-black-20:#00000005;--g-color-private-black-50:#0000000d;--g-color-private-black-100:#0000001a;--g-color-private-black-150:#00000026;--g-color-private-black-200:#0003;--g-color-private-black-250:#00000040;--g-color-private-black-300:#0000004d;--g-color-private-black-350:#00000059;--g-color-private-black-400:#0006;--g-color-private-black-450:#00000073;--g-color-private-black-500:#00000080;--g-color-private-black-550:#0000008c;--g-color-private-black-600:#0009;--g-color-private-black-650:#000000a6;--g-color-private-black-700:#000000b3;--g-color-private-black-750:#000000bf;--g-color-private-black-800:#000c;--g-color-private-black-850:#000000d9;--g-color-private-black-900:#000000e6;--g-color-private-black-950:#000000f2;--g-color-private-black-1000-solid:#000;--g-color-private-black-rock-850:#2d2c33;--g-color-private-blue-50:#5282ff1a;--g-color-private-blue-100:#5282ff26;--g-color-private-blue-150:#5282ff33;--g-color-private-blue-200:#5282ff4d;--g-color-private-blue-250:#5282ff66;--g-color-private-blue-300:#5282ff80;--g-color-private-blue-350:#5282ff99;--g-color-private-blue-400:#5282ffb3;--g-color-private-blue-450:#5282ffcc;--g-color-private-blue-500:#5282ffe6;--g-color-private-blue-50-solid:#313547;--g-color-private-blue-100-solid:#333952;--g-color-private-blue-150-solid:#343d5c;--g-color-private-blue-200-solid:#384670;--g-color-private-blue-250-solid:#3c4e85;--g-color-private-blue-300-solid:#405799;--g-color-private-blue-350-solid:#4360ad;--g-color-private-blue-400-solid:#4768c2;--g-color-private-blue-450-solid:#4b71d6;--g-color-private-blue-500-solid:#4e79eb;--g-color-private-blue-550-solid:#5282ff;--g-color-private-blue-600-solid:#638fff;--g-color-private-blue-650-solid:#759bff;--g-color-private-blue-700-solid:#86a8ff;--g-color-private-blue-750-solid:#97b4ff;--g-color-private-blue-800-solid:#a9c1ff;--g-color-private-blue-850-solid:#bacdff;--g-color-private-blue-900-solid:#cbdaff;--g-color-private-blue-950-solid:#dce6ff;--g-color-private-blue-1000-solid:#e5ecff;--g-color-private-green-50:#5bb5571a;--g-color-private-green-100:#5bb55726;--g-color-private-green-150:#5bb55733;--g-color-private-green-200:#5bb5574d;--g-color-private-green-250:#5bb55766;--g-color-private-green-300:#5bb55780;--g-color-private-green-350:#5bb55799;--g-color-private-green-400:#5bb557b3;--g-color-private-green-450:#5bb557cc;--g-color-private-green-500:#5bb557e6;--g-color-private-green-50-solid:#323a37;--g-color-private-green-100-solid:#344138;--g-color-private-green-150-solid:#36473a;--g-color-private-green-200-solid:#3b553e;--g-color-private-green-250-solid:#3f6341;--g-color-private-green-300-solid:#447145;--g-color-private-green-350-solid:#497e49;--g-color-private-green-400-solid:#4d8c4c;--g-color-private-green-450-solid:#529a50;--g-color-private-green-500-solid:#56a753;--g-color-private-green-550-solid:#5bb557;--g-color-private-green-600-solid:#6bbc68;--g-color-private-green-650-solid:#7cc479;--g-color-private-green-700-solid:#8ccb89;--g-color-private-green-750-solid:#9dd39a;--g-color-private-green-800-solid:#addaab;--g-color-private-green-850-solid:#bde1bc;--g-color-private-green-900-solid:#cee9cd;--g-color-private-green-950-solid:#def0dd;--g-color-private-green-1000-solid:#e6f4e6;--g-color-private-yellow-50:#ffcb001a;--g-color-private-yellow-100:#ffcb0026;--g-color-private-yellow-150:#ffcb0033;--g-color-private-yellow-200:#ffcb004d;--g-color-private-yellow-250:#ffcb0066;--g-color-private-yellow-300:#ffcb0080;--g-color-private-yellow-350:#ffcb0099;--g-color-private-yellow-400:#ffcb00b3;--g-color-private-yellow-450:#ffcb00cc;--g-color-private-yellow-500:#ffcb00e6;--g-color-private-yellow-50-solid:#423c2e;--g-color-private-yellow-100-solid:#4d442b;--g-color-private-yellow-150-solid:#574c29;--g-color-private-yellow-200-solid:#6c5c24;--g-color-private-yellow-250-solid:#816c1f;--g-color-private-yellow-300-solid:#967c19;--g-color-private-yellow-350-solid:#ab8c14;--g-color-private-yellow-400-solid:#c09b0f;--g-color-private-yellow-450-solid:#d5ab0a;--g-color-private-yellow-500-solid:#e9ba04;--g-color-private-yellow-550-solid:#ffcb00;--g-color-private-yellow-600-solid:#ffd01a;--g-color-private-yellow-650-solid:#ffd533;--g-color-private-yellow-700-solid:#ffdb4c;--g-color-private-yellow-750-solid:#ffe066;--g-color-private-yellow-800-solid:#ffe580;--g-color-private-yellow-850-solid:#ffea99;--g-color-private-yellow-900-solid:#ffefb3;--g-color-private-yellow-950-solid:#fff5cc;--g-color-private-yellow-1000-solid:#fff7d9;--g-color-private-orange-50:#c8630c1a;--g-color-private-orange-100:#c8630c26;--g-color-private-orange-150:#c8630c33;--g-color-private-orange-200:#c8630c4d;--g-color-private-orange-250:#c8630c66;--g-color-private-orange-300:#c8630c80;--g-color-private-orange-350:#c8630c99;--g-color-private-orange-400:#c8630cb3;--g-color-private-orange-450:#c8630ccc;--g-color-private-orange-500:#c8630ce6;--g-color-private-orange-50-solid:#3d322f;--g-color-private-orange-100-solid:#44342d;--g-color-private-orange-150-solid:#4c372b;--g-color-private-orange-200-solid:#5c3d27;--g-color-private-orange-250-solid:#6b4223;--g-color-private-orange-300-solid:#7b4720;--g-color-private-orange-350-solid:#8a4d1c;--g-color-private-orange-400-solid:#995218;--g-color-private-orange-450-solid:#a95814;--g-color-private-orange-500-solid:#b95e10;--g-color-private-orange-550-solid:#c8630c;--g-color-private-orange-600-solid:#ce7324;--g-color-private-orange-650-solid:#d3823d;--g-color-private-orange-700-solid:#d89255;--g-color-private-orange-750-solid:#dea16d;--g-color-private-orange-800-solid:#e3b185;--g-color-private-orange-850-solid:#e9c19e;--g-color-private-orange-900-solid:#efd0b6;--g-color-private-orange-950-solid:#f4e0ce;--g-color-private-orange-1000-solid:#f7e8db;--g-color-private-red-50:#e849451a;--g-color-private-red-100:#e8494526;--g-color-private-red-150:#e8494533;--g-color-private-red-200:#e849454d;--g-color-private-red-250:#e8494566;--g-color-private-red-300:#e8494580;--g-color-private-red-350:#e8494599;--g-color-private-red-400:#e84945b3;--g-color-private-red-450:#e84945cc;--g-color-private-red-500:#e84945e6;--g-color-private-red-50-solid:#402f35;--g-color-private-red-100-solid:#493036;--g-color-private-red-150-solid:#523237;--g-color-private-red-200-solid:#653539;--g-color-private-red-250-solid:#78383a;--g-color-private-red-300-solid:#8a3a3c;--g-color-private-red-350-solid:#9d3d3e;--g-color-private-red-400-solid:#b04040;--g-color-private-red-450-solid:#c34341;--g-color-private-red-500-solid:#d54644;--g-color-private-red-550-solid:#e84945;--g-color-private-red-600-solid:#ea5b58;--g-color-private-red-650-solid:#ec6d6b;--g-color-private-red-700-solid:#ef7f7d;--g-color-private-red-750-solid:#f19290;--g-color-private-red-800-solid:#f3a4a2;--g-color-private-red-850-solid:#f6b6b5;--g-color-private-red-900-solid:#f8c8c7;--g-color-private-red-950-solid:#fadbda;--g-color-private-red-1000-solid:#fce4e3;--g-color-private-purple-50:#8f52cc1a;--g-color-private-purple-100:#8f52cc26;--g-color-private-purple-150:#8f52cc33;--g-color-private-purple-200:#8f52cc4d;--g-color-private-purple-250:#8f52cc66;--g-color-private-purple-300:#8f52cc80;--g-color-private-purple-350:#8f52cc99;--g-color-private-purple-400:#8f52ccb3;--g-color-private-purple-450:#8f52cccc;--g-color-private-purple-500:#8f52cce6;--g-color-private-purple-50-solid:#373042;--g-color-private-purple-100-solid:#3c324a;--g-color-private-purple-150-solid:#413452;--g-color-private-purple-200-solid:#4a3761;--g-color-private-purple-250-solid:#543b70;--g-color-private-purple-300-solid:#5e3f80;--g-color-private-purple-350-solid:#68438f;--g-color-private-purple-400-solid:#72479e;--g-color-private-purple-450-solid:#7b4aad;--g-color-private-purple-500-solid:#854ebd;--g-color-private-purple-550-solid:#8f52cc;--g-color-private-purple-600-solid:#9a63d1;--g-color-private-purple-650-solid:#a575d6;--g-color-private-purple-700-solid:#b186db;--g-color-private-purple-750-solid:#bc97e0;--g-color-private-purple-800-solid:#c7a9e6;--g-color-private-purple-850-solid:#d2baeb;--g-color-private-purple-900-solid:#ddcbf0;--g-color-private-purple-950-solid:#e9dcf5;--g-color-private-purple-1000-solid:#eee5f7;--g-color-private-cool-grey-50:#60809c1a;--g-color-private-cool-grey-100:#60809c26;--g-color-private-cool-grey-150:#60809c33;--g-color-private-cool-grey-200:#60809c4d;--g-color-private-cool-grey-250:#60809c66;--g-color-private-cool-grey-300:#60809c80;--g-color-private-cool-grey-350:#60809c99;--g-color-private-cool-grey-400:#60809cb3;--g-color-private-cool-grey-450:#60809ccc;--g-color-private-cool-grey-500:#60809ce6;--g-color-private-cool-grey-50-solid:#32343e;--g-color-private-cool-grey-100-solid:#353943;--g-color-private-cool-grey-150-solid:#373d48;--g-color-private-cool-grey-200-solid:#3c4552;--g-color-private-cool-grey-250-solid:#414e5d;--g-color-private-cool-grey-300-solid:#465667;--g-color-private-cool-grey-350-solid:#4c5e72;--g-color-private-cool-grey-400-solid:#51677d;--g-color-private-cool-grey-450-solid:#566f87;--g-color-private-cool-grey-500-solid:#5b7892;--g-color-private-cool-grey-550-solid:#60809c;--g-color-private-cool-grey-600-solid:#708da6;--g-color-private-cool-grey-650-solid:#8099b0;--g-color-private-cool-grey-700-solid:#90a6ba;--g-color-private-cool-grey-750-solid:#a0b3c3;--g-color-private-cool-grey-800-solid:#b0bfcd;--g-color-private-cool-grey-850-solid:#bfccd7;--g-color-private-cool-grey-900-solid:#cfd9e1;--g-color-private-cool-grey-950-solid:#dfe6eb;--g-color-private-cool-grey-1000-solid:#e7ecf0}.g-root_theme_dark-hc{--g-color-base-background:#222326;--g-color-base-brand:var(--g-color-private-blue-450-solid);--g-color-base-brand-hover:var(--g-color-private-blue-650-solid);--g-color-base-selection:var(--g-color-private-blue-250);--g-color-base-selection-hover:var(--g-color-private-blue-400);--g-color-line-brand:var(--g-color-private-blue-550-solid);--g-color-text-brand:var(--g-color-private-blue-650-solid);--g-color-text-brand-heavy:var(--g-color-private-blue-850-solid);--g-color-text-brand-contrast:var(--g-color-text-light-primary);--g-color-text-link:var(--g-color-private-blue-650-solid);--g-color-text-link-hover:var(--g-color-private-blue-800-solid);--g-color-private-white-50:#ffffff0d;--g-color-private-white-70:#ffffff12;--g-color-private-white-100:#ffffff1a;--g-color-private-white-150:#ffffff26;--g-color-private-white-200:#fff3;--g-color-private-white-250:#ffffff40;--g-color-private-white-300:#ffffff4d;--g-color-private-white-350:#ffffff59;--g-color-private-white-400:#fff6;--g-color-private-white-450:#ffffff73;--g-color-private-white-500:#ffffff80;--g-color-private-white-550:#ffffff8c;--g-color-private-white-600:#fff9;--g-color-private-white-650:#ffffffa6;--g-color-private-white-700:#ffffffb3;--g-color-private-white-750:#ffffffbf;--g-color-private-white-800:#fffc;--g-color-private-white-850:#ffffffd9;--g-color-private-white-900:#ffffffe6;--g-color-private-white-950:#fffffff2;--g-color-private-white-50-solid:#2d2e31;--g-color-private-white-100-solid:#38393c;--g-color-private-white-150-solid:#434447;--g-color-private-white-200-solid:#4e4f51;--g-color-private-white-250-solid:#595a5c;--g-color-private-white-300-solid:#646567;--g-color-private-white-350-solid:#6f7072;--g-color-private-white-400-solid:#7a7b7d;--g-color-private-white-450-solid:#858688;--g-color-private-white-500-solid:#909193;--g-color-private-white-550-solid:#9c9c9d;--g-color-private-white-600-solid:#a7a7a8;--g-color-private-white-650-solid:#b2b2b3;--g-color-private-white-700-solid:#bdbdbe;--g-color-private-white-750-solid:#c8c8c9;--g-color-private-white-800-solid:#d3d3d4;--g-color-private-white-850-solid:#dededf;--g-color-private-white-900-solid:#e9e9e9;--g-color-private-white-950-solid:#f4f4f4;--g-color-private-white-1000-solid:#fff;--g-color-private-white-opaque-150:#38393cf7;--g-color-private-black-20:#00000005;--g-color-private-black-50:#0000000d;--g-color-private-black-100:#0000001a;--g-color-private-black-150:#00000026;--g-color-private-black-200:#0003;--g-color-private-black-250:#00000040;--g-color-private-black-300:#0000004d;--g-color-private-black-350:#00000059;--g-color-private-black-400:#0006;--g-color-private-black-450:#00000073;--g-color-private-black-500:#00000080;--g-color-private-black-550:#0000008c;--g-color-private-black-600:#0009;--g-color-private-black-650:#000000a6;--g-color-private-black-700:#000000b3;--g-color-private-black-750:#000000bf;--g-color-private-black-800:#000c;--g-color-private-black-850:#000000d9;--g-color-private-black-900:#000000e6;--g-color-private-black-950:#000000f2;--g-color-private-black-1000-solid:#000;--g-color-private-black-rock-850:#2d2c33;--g-color-private-black-rock-950:#222326;--g-color-private-blue-50:#5282ff1a;--g-color-private-blue-100:#5282ff26;--g-color-private-blue-150:#5282ff33;--g-color-private-blue-200:#5282ff4d;--g-color-private-blue-250:#5282ff66;--g-color-private-blue-300:#5282ff80;--g-color-private-blue-350:#5282ff99;--g-color-private-blue-400:#5282ffb3;--g-color-private-blue-450:#5282ffcc;--g-color-private-blue-500:#5282ffe6;--g-color-private-blue-50-solid:#272d3c;--g-color-private-blue-100-solid:#293147;--g-color-private-blue-150-solid:#2c3651;--g-color-private-blue-200-solid:#304067;--g-color-private-blue-250-solid:#35497d;--g-color-private-blue-300-solid:#3a5393;--g-color-private-blue-350-solid:#3f5ca8;--g-color-private-blue-400-solid:#4466be;--g-color-private-blue-450-solid:#486fd4;--g-color-private-blue-500-solid:#4d79e9;--g-color-private-blue-550-solid:#5282ff;--g-color-private-blue-600-solid:#638fff;--g-color-private-blue-650-solid:#759bff;--g-color-private-blue-700-solid:#86a8ff;--g-color-private-blue-750-solid:#97b4ff;--g-color-private-blue-800-solid:#a9c1ff;--g-color-private-blue-850-solid:#bacdff;--g-color-private-blue-900-solid:#cbdaff;--g-color-private-blue-950-solid:#dce6ff;--g-color-private-blue-1000-solid:#e5ecff;--g-color-private-green-50:#5bb5571a;--g-color-private-green-100:#5bb55726;--g-color-private-green-150:#000;--g-color-private-green-200:#5bb5574d;--g-color-private-green-250:#5bb55766;--g-color-private-green-300:#5bb55780;--g-color-private-green-350:#5bb55799;--g-color-private-green-400:#5bb557b3;--g-color-private-green-450:#5bb557cc;--g-color-private-green-500:#5bb557e6;--g-color-private-green-50-solid:#28322b;--g-color-private-green-100-solid:#2b392d;--g-color-private-green-150-solid:#2d4030;--g-color-private-green-200-solid:#334f35;--g-color-private-green-250-solid:#395d3a;--g-color-private-green-300-solid:#3f6c3f;--g-color-private-green-350-solid:#447b43;--g-color-private-green-400-solid:#4a8948;--g-color-private-green-450-solid:#50984d;--g-color-private-green-500-solid:#55a652;--g-color-private-green-550-solid:#5bb557;--g-color-private-green-600-solid:#6bbc68;--g-color-private-green-650-solid:#7cc479;--g-color-private-green-700-solid:#8ccb89;--g-color-private-green-750-solid:#9dd39a;--g-color-private-green-800-solid:#addaab;--g-color-private-green-850-solid:#bde1bc;--g-color-private-green-900-solid:#cee9cd;--g-color-private-green-950-solid:#def0dd;--g-color-private-green-1000-solid:#e6f4e6;--g-color-private-yellow-50:#ffcb001a;--g-color-private-yellow-100:#ffcb0026;--g-color-private-yellow-150:#ffcb0033;--g-color-private-yellow-200:#ffcb004d;--g-color-private-yellow-250:#ffcb0066;--g-color-private-yellow-300:#ffcb0080;--g-color-private-yellow-350:#ffcb0099;--g-color-private-yellow-400:#ffcb00b3;--g-color-private-yellow-450:#ffcb00cc;--g-color-private-yellow-500:#ffcb00e6;--g-color-private-yellow-50-solid:#383422;--g-color-private-yellow-100-solid:#433c20;--g-color-private-yellow-150-solid:#4e451e;--g-color-private-yellow-200-solid:#64551b;--g-color-private-yellow-250-solid:#7a6617;--g-color-private-yellow-300-solid:#907713;--g-color-private-yellow-350-solid:#a7880f;--g-color-private-yellow-400-solid:#bd990b;--g-color-private-yellow-450-solid:#d3a908;--g-color-private-yellow-500-solid:#e9ba04;--g-color-private-yellow-550-solid:#ffcb00;--g-color-private-yellow-600-solid:#ffd01a;--g-color-private-yellow-650-solid:#ffd533;--g-color-private-yellow-700-solid:#ffdb4c;--g-color-private-yellow-750-solid:#ffe066;--g-color-private-yellow-800-solid:#ffe580;--g-color-private-yellow-850-solid:#ffea99;--g-color-private-yellow-900-solid:#ffefb3;--g-color-private-yellow-950-solid:#fff5cc;--g-color-private-yellow-1000-solid:#fff7d9;--g-color-private-orange-50:#c8630c1a;--g-color-private-orange-100:#c8630c26;--g-color-private-orange-150:#c8630c33;--g-color-private-orange-200:#c8630c4d;--g-color-private-orange-250:#c8630c66;--g-color-private-orange-300:#c8630c80;--g-color-private-orange-350:#c8630c99;--g-color-private-orange-400:#c8630cb3;--g-color-private-orange-450:#c8630ccc;--g-color-private-orange-500:#c8630ce6;--g-color-private-orange-50-solid:#332923;--g-color-private-orange-100-solid:#3b2d22;--g-color-private-orange-150-solid:#433021;--g-color-private-orange-200-solid:#54361e;--g-color-private-orange-250-solid:#643d1c;--g-color-private-orange-300-solid:#754319;--g-color-private-orange-350-solid:#864916;--g-color-private-orange-400-solid:#965014;--g-color-private-orange-450-solid:#a75611;--g-color-private-orange-500-solid:#b75d0f;--g-color-private-orange-550-solid:#c8630c;--g-color-private-orange-600-solid:#ce7324;--g-color-private-orange-650-solid:#d3823d;--g-color-private-orange-700-solid:#d89255;--g-color-private-orange-750-solid:#dea16d;--g-color-private-orange-800-solid:#e3b185;--g-color-private-orange-850-solid:#e9c19e;--g-color-private-orange-900-solid:#efd0b6;--g-color-private-orange-950-solid:#f4e0ce;--g-color-private-orange-1000-solid:#f7e8db;--g-color-private-red-50:#e849451a;--g-color-private-red-100:#e8494526;--g-color-private-red-150:#e8494533;--g-color-private-red-200:#e849454d;--g-color-private-red-250:#e8494566;--g-color-private-red-300:#e8494580;--g-color-private-red-350:#e8494599;--g-color-private-red-400:#e84945b3;--g-color-private-red-450:#e84945cc;--g-color-private-red-500:#e84945e6;--g-color-private-red-50-solid:#362729;--g-color-private-red-100-solid:#40292b;--g-color-private-red-150-solid:#4a2b2c;--g-color-private-red-200-solid:#5d2e2f;--g-color-private-red-250-solid:#713233;--g-color-private-red-300-solid:#853636;--g-color-private-red-350-solid:#993a39;--g-color-private-red-400-solid:#ac3d3c;--g-color-private-red-450-solid:#c0413f;--g-color-private-red-500-solid:#d44542;--g-color-private-red-550-solid:#e84945;--g-color-private-red-600-solid:#ea5b58;--g-color-private-red-650-solid:#ec6d6b;--g-color-private-red-700-solid:#ef7f7d;--g-color-private-red-750-solid:#f19290;--g-color-private-red-800-solid:#f3a4a2;--g-color-private-red-850-solid:#f6b6b5;--g-color-private-red-900-solid:#f8c8c7;--g-color-private-red-950-solid:#fadbda;--g-color-private-red-1000-solid:#fce4e3;--g-color-private-purple-50:#8f52cc1a;--g-color-private-purple-100:#8f52cc26;--g-color-private-purple-150:#8f52cc33;--g-color-private-purple-200:#8f52cc4d;--g-color-private-purple-250:#8f52cc66;--g-color-private-purple-300:#8f52cc80;--g-color-private-purple-350:#8f52cc99;--g-color-private-purple-400:#8f52ccb3;--g-color-private-purple-450:#8f52cccc;--g-color-private-purple-500:#8f52cce6;--g-color-private-purple-50-solid:#2d2837;--g-color-private-purple-100-solid:#322a3f;--g-color-private-purple-150-solid:#382c47;--g-color-private-purple-200-solid:#433158;--g-color-private-purple-250-solid:#4e3668;--g-color-private-purple-300-solid:#593b79;--g-color-private-purple-350-solid:#633f8a;--g-color-private-purple-400-solid:#6e449a;--g-color-private-purple-450-solid:#7949ab;--g-color-private-purple-500-solid:#844dbb;--g-color-private-purple-550-solid:#8f52cc;--g-color-private-purple-600-solid:#9a63d1;--g-color-private-purple-650-solid:#a575d6;--g-color-private-purple-700-solid:#b186db;--g-color-private-purple-750-solid:#bc97e0;--g-color-private-purple-800-solid:#c7a9e6;--g-color-private-purple-850-solid:#d2baeb;--g-color-private-purple-900-solid:#ddcbf0;--g-color-private-purple-950-solid:#e9dcf5;--g-color-private-purple-1000-solid:#eee5f7;--g-color-private-cool-grey-50:#60809c1a;--g-color-private-cool-grey-100:#60809c26;--g-color-private-cool-grey-150:#60809c33;--g-color-private-cool-grey-200:#60809c4d;--g-color-private-cool-grey-250:#60809c66;--g-color-private-cool-grey-300:#60809c80;--g-color-private-cool-grey-350:#60809c99;--g-color-private-cool-grey-400:#60809cb3;--g-color-private-cool-grey-450:#60809ccc;--g-color-private-cool-grey-500:#60809ce6;--g-color-private-cool-grey-50-solid:#282c32;--g-color-private-cool-grey-100-solid:#2b3138;--g-color-private-cool-grey-150-solid:#2e363e;--g-color-private-cool-grey-200-solid:#353f49;--g-color-private-cool-grey-250-solid:#3b4855;--g-color-private-cool-grey-300-solid:#415161;--g-color-private-cool-grey-350-solid:#475b6d;--g-color-private-cool-grey-400-solid:#4d6479;--g-color-private-cool-grey-450-solid:#546d84;--g-color-private-cool-grey-500-solid:#5a7790;--g-color-private-cool-grey-550-solid:#60809c;--g-color-private-cool-grey-600-solid:#708da6;--g-color-private-cool-grey-650-solid:#8099b0;--g-color-private-cool-grey-700-solid:#90a6ba;--g-color-private-cool-grey-750-solid:#a0b3c3;--g-color-private-cool-grey-800-solid:#b0bfcd;--g-color-private-cool-grey-850-solid:#bfccd7;--g-color-private-cool-grey-900-solid:#cfd9e1;--g-color-private-cool-grey-950-solid:#dfe6eb;--g-color-private-cool-grey-1000-solid:#e7ecf0}.unipika{--color-unipika-default:#a9a9a9;--color-unipika-string:#594c4c;--color-unipika-key:#d36b6b;--color-unipika-null:#594c4c;--color-unipika-int:#0095ff;--color-unipika-uint:#c200ff;--color-unipika-float:#ff00b9;--color-unipika-bool:#00ba0a;--color-unipika-date:#693;--color-unipika-interval:#399;--color-unipika-escape-text:#c7254e;--color-unipika-escape-back:#ffeff3;--color-unipika-binary-back:#fcf8e3;--color-unipika-binary-after:#888;--color-unipika-uuid:#c63;--color-unipika-tag-url:#04b;--color-unipika-tag-url-hover:#c00;color:var(--color-unipika-default);overflow-wrap:break-word;white-space:pre-wrap;word-break:normal}.unipika .pg_category_e,.unipika .pg_category_i,.unipika .pg_category_s,.unipika .string,.unipika .yql_string,.unipika .yql_utf8{color:var(--color-unipika-string)}.unipika .key,.unipika .special-key{color:var(--color-unipika-key)}.unipika .special-key{font-style:italic}.unipika .null,.unipika .yql_null{color:var(--color-unipika-null)}.unipika .null{font-style:italic}.unipika .yql_null{text-transform:uppercase}.unipika .int64,.unipika .number,.unipika .pg_category_n,.unipika .yql_int16,.unipika .yql_int32,.unipika .yql_int64,.unipika .yql_int8{color:var(--color-unipika-int)}.unipika .pg_category_a,.unipika .uint64,.unipika .yql_uint16,.unipika .yql_uint32,.unipika .yql_uint64,.unipika .yql_uint8{color:var(--color-unipika-uint)}.unipika .double,.unipika .pg_category_c,.unipika .yql_decimal,.unipika .yql_double,.unipika .yql_float{color:var(--color-unipika-float)}.unipika .boolean,.unipika .pg_category_b,.unipika .yql_bool,.unipika .yql_enum{color:var(--color-unipika-bool)}.unipika .pg_category_d,.unipika .yql_date,.unipika .yql_date32,.unipika .yql_datetime,.unipika .yql_datetime64,.unipika .yql_timestamp,.unipika .yql_timestamp64,.unipika .yql_tzdate,.unipika .yql_tzdate32,.unipika .yql_tzdatetime,.unipika .yql_tzdatetime64,.unipika .yql_tztimestamp,.unipika .yql_tztimestamp64{color:var(--color-unipika-date)}.unipika .pg_category_t,.unipika .yql_interval,.unipika .yql_interval64{color:var(--color-unipika-interval)}.unipika .yql_tagged.tag_image{vertical-align:top}.unipika .escape{background-color:var(--color-unipika-escape-back);color:var(--color-unipika-escape-text)}.unipika .quote{color:var(--color-unipika-default)}.unipika .binary,.unipika .incomplete,.unipika .pg_category_v{background-color:var(--color-unipika-binary-back)}.unipika .binary:after,.unipika .incomplete:after{color:var(--color-unipika-binary-after);padding-inline-start:.8em}.unipika .incomplete:after{content:"[truncated]";white-space:nowrap}.unipika .binary:after{content:"[binary]";white-space:nowrap}.unipika .incomplete.binary:after{content:"[truncated][binary]";white-space:nowrap}.unipika .pg_category_g,.unipika .yql_uuid{color:var(--color-unipika-uuid)}.unipika .pg_category_g.binary,.unipika .pg_category_g.incomplete,.unipika .yql_uuid.binary,.unipika .yql_uuid.incomplete{background:none}.unipika .pg_category_g.binary:after,.unipika .pg_category_g.incomplete:after,.unipika .yql_uuid.binary:after,.unipika .yql_uuid.incomplete:after{content:"";display:none}.unipika .tag_url{color:var(--color-unipika-tag-url);text-decoration:none}.unipika .tag_url:hover{color:var(--color-unipika-tag-url-hover)}.unipika-wrapper_inline_yes .unipika{display:inline-block}.g-root .unipika{font-family:var(--g-font-family-monospace)}.g-root .unipika-wrapper .g-root .unipika{border:0;margin:0;padding:0}.g-root_theme_dark .unipika,.g-root_theme_dark-hc .unipika{--color-unipika-default:#707070;--color-unipika-string:#9a8e8e;--color-unipika-key:#d36b6b;--color-unipika-null:#9a8e8e;--color-unipika-int:#0095ff;--color-unipika-uint:#c200ff;--color-unipika-float:#ff00b9;--color-unipika-bool:#00ba0a;--color-unipika-date:#693;--color-unipika-interval:#399;--color-unipika-escape-text:#c7254e;--color-unipika-escape-back:#292e1f;--color-unipika-binary-back:#292e1f;--color-unipika-binary-after:#666;--color-unipika-uuid:#c63;--color-unipika-tag-url:#47b;--color-unipika-tag-url-hover:#6af}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;margin:0}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/114.7d7ab57f.chunk.js b/ydb/core/viewer/monitoring/static/js/114.7d7ab57f.chunk.js deleted file mode 100644 index ae9dcb78bb..0000000000 --- a/ydb/core/viewer/monitoring/static/js/114.7d7ab57f.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 114.7d7ab57f.chunk.js.LICENSE.txt */ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[114],{85283:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var s,n=i(59284);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},r.apply(null,arguments)}const o=function(e){return n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),s||(s=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.53 11.78a.75.75 0 01-1.06 0l-2.5-2.5a.75.75 0 011.06-1.06l1.22 1.22V1.75a.75.75 0 011.5 0v7.69l1.22-1.22a.75.75 0 111.06 1.06zM1.75 13.5a.75.75 0 000 1.5h12.5a.75.75 0 000-1.5z",clipRule:"evenodd"})))}},16963:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var s,n=i(59284);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},r.apply(null,arguments)}const o=function(e){return n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),s||(s=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.78 7.47a.75.75 0 010 1.06l-2.5 2.5a.75.75 0 11-1.06-1.06l1.22-1.22H4.75a.75.75 0 010-1.5h7.69l-1.22-1.22a.75.75 0 011.06-1.06zM9.5 4.25a.75.75 0 01-1.5 0V4a1.5 1.5 0 00-1.5-1.5H4A1.5 1.5 0 002.5 4v8A1.5 1.5 0 004 13.5h2.5A1.5 1.5 0 008 12v-.25a.75.75 0 011.5 0V12a3 3 0 01-3 3H4a3 3 0 01-3-3V4a3 3 0 013-3h2.5a3 3 0 013 3z",clipRule:"evenodd"})))}},24853:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var s,n=i(59284);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},r.apply(null,arguments)}const o=function(e){return n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),s||(s=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.47 1.22a.75.75 0 011.06 0l2.5 2.5a.75.75 0 11-1.06 1.06L8.75 3.56v7.69a.75.75 0 01-1.5 0V3.56L6.03 4.78a.75.75 0 01-1.06-1.06zM1.75 13.5a.75.75 0 000 1.5h12.5a.75.75 0 000-1.5z",clipRule:"evenodd"})))}},70983:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var s,n=i(59284);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},r.apply(null,arguments)}const o=function(e){return n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),s||(s=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10 1.5A.75.75 0 0010 3h1.94L6.97 7.97a.75.75 0 001.06 1.06L13 4.06V6a.75.75 0 001.5 0V2.25a.75.75 0 00-.75-.75zM7.5 3.25a.75.75 0 00-.75-.75H4.5a3 3 0 00-3 3v6a3 3 0 003 3h6a3 3 0 003-3V9.25a.75.75 0 00-1.5 0v2.25a1.5 1.5 0 01-1.5 1.5h-6A1.5 1.5 0 013 11.5v-6A1.5 1.5 0 014.5 4h2.25a.75.75 0 00.75-.75",clipRule:"evenodd"})))}},59136:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var s,n=i(59284);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},r.apply(null,arguments)}const o=function(e){return n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),s||(s=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.97 5.47a.75.75 0 011.06 0L8 9.44l3.97-3.97a.75.75 0 111.06 1.06l-4.5 4.5a.75.75 0 01-1.06 0l-4.5-4.5a.75.75 0 010-1.06",clipRule:"evenodd"})))}},26195:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var s,n=i(59284);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},r.apply(null,arguments)}const o=function(e){return n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),s||(s=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.03 10.53a.75.75 0 01-1.06 0L8 6.56l-3.97 3.97a.75.75 0 11-1.06-1.06l4.5-4.5a.75.75 0 011.06 0l4.5 4.5a.75.75 0 010 1.06",clipRule:"evenodd"})))}},52358:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var s,n=i(59284);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},r.apply(null,arguments)}const o=function(e){return n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),s||(s=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 13.5a5.5 5.5 0 100-11 5.5 5.5 0 000 11M8 15A7 7 0 108 1a7 7 0 000 14m1-4.5a1 1 0 11-2 0 1 1 0 012 0M8.75 5a.75.75 0 00-1.5 0v2.5a.75.75 0 001.5 0z",clipRule:"evenodd"})))}},87285:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var s,n=i(59284);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},r.apply(null,arguments)}const o=function(e){return n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),s||(s=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.87 8.515L1.641 8l.229-.515a6.708 6.708 0 0112.26 0l.228.515-.229.515a6.708 6.708 0 01-12.259 0M.5 6.876l-.26.585a1.33 1.33 0 000 1.079l.26.584a8.208 8.208 0 0015 0l.26-.584a1.33 1.33 0 000-1.08l-.26-.584a8.208 8.208 0 00-15 0M9.5 8a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0M11 8a3 3 0 11-6 0 3 3 0 016 0",clipRule:"evenodd"})))}},94630:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});var s,n,r=i(59284);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},o.apply(null,arguments)}const a=function(e){return r.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),s||(s=r.createElement("g",{clipPath:"url(#font-case_svg__a)"},r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.75 2.25c-.618 0-1.169.39-1.373.974L.042 12.752a.75.75 0 001.416.496L2.595 10h4.31l1.137 3.248a.75.75 0 001.416-.496L6.123 3.224A1.455 1.455 0 004.75 2.25M6.38 8.5L4.75 3.842 3.12 8.5zm5.135 2.996c0-.223.28-.746 1.152-.746H14.4c-.294 1.024-1.178 1.5-1.9 1.5-.45 0-.677-.134-.792-.249a.7.7 0 01-.193-.505m2.985.754V13a.75.75 0 101.5 0v-3c0-1.117-.28-2.065-.873-2.744-.606-.692-1.453-1.006-2.377-1.006-.53 0-.946.07-1.306.195-.338.117-.6.274-.804.396l-.025.015a.75.75 0 10.77 1.288c.22-.132.365-.217.55-.281.178-.062.423-.113.815-.113.576 0 .978.186 1.248.494.191.218.354.543.44 1.006h-1.771c-1.462 0-2.658.977-2.652 2.254.003.542.191 1.116.632 1.557.447.448 1.085.689 1.853.689 1 0 1.75-.75 1.75-1.5z",clipRule:"evenodd"}))),n||(n=r.createElement("defs",null,r.createElement("clipPath",{id:"font-case_svg__a"},r.createElement("path",{fill:"currentColor",d:"M0 0h16v16H0z"})))))}},34671:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var s,n=i(59284);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},r.apply(null,arguments)}const o=function(e){return n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),s||(s=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.313 7.488L9 7.653v5.37a.5.5 0 01-.353.478l-1.62.498-.006.001h-.008l-.007-.006-.005-.007v-.003L7 13.979V7.653l-1.313-.165a1.5 1.5 0 01-1.271-1.144l-.588-2.5A1.5 1.5 0 015.288 2h5.424a1.5 1.5 0 011.46 1.844l-.588 2.5a1.5 1.5 0 01-1.271 1.144m2.731-.8A3 3 0 0110.5 8.976v4.046a2 2 0 01-1.412 1.911l-1.62.499A1.52 1.52 0 015.5 13.979V8.977a3 3 0 01-2.544-2.29l-.588-2.5A3 3 0 015.288.5h5.424a3 3 0 012.92 3.687zM6.75 3.5a.75.75 0 000 1.5h2.5a.75.75 0 000-1.5z",clipRule:"evenodd"})))}},8964:(e,t,i)=>{"use strict";i.d(t,{R:()=>a,J:()=>o});var s=i(1448);const n=JSON.parse('{"common":{"tooltip-sum":"Sum","tooltip-rest":"Rest"},"chartkit":{"error":"Error","legend-series-hide":"Hide all lines","legend-series-show":"Show all lines","tooltip-point-format-size":"Size","tooltip-sum":"Sum","tooltip-rest":"Rest","error-incorrect-key-value-intro":"Incorrect notation of an object passed to","error-incorrect-key":", object keys must be convertible to integer","error-incorrect-value":", object values must be a string or a function which returns a string"},"chartkit-table":{"message-no-data":"No data","paginator-rows":"Rows"},"chartkit-ymap-legend":{"label-more":"Show more {{count}}","label-hide":"Hide","label-heatmap":"Heatmap"},"error":{"label_no-data":"No data","label_unknown-plugin":"Unknown plugin type \\"{{type}}\\"","label_unknown-error":"Unknown error","label_invalid-axis-category-data-point":"It seems you are trying to use inappropriate data type for \\"{{key}}\\" value in series \\"{{seriesName}}\\" for axis with type \\"category\\". Strings and numbers are allowed.","label_invalid-axis-datetime-data-point":"It seems you are trying to use inappropriate data type for \\"{{key}}\\" value in series \\"{{seriesName}}\\" for axis with type \\"datetime\\". Only numbers are allowed.","label_invalid-axis-linear-data-point":"It seems you are trying to use inappropriate data type for \\"{{key}}\\" value in series \\"{{seriesName}}\\" for axis with type \\"linear\\". Numbers and nulls are allowed.","label_invalid-pie-data-value":"It seems you are trying to use inappropriate data type for \\"value\\" value. Only numbers are allowed.","label_invalid-series-type":"It seems you haven\'t defined \\"series.type\\" property, or defined it incorrectly. Available values: [{{types}}].","label_invalid-series-property":"It seems you are trying to use inappropriate value for \\"{{key}}\\", or defined it incorrectly. Available values: [{{values}}].","label_invalid-treemap-redundant-value":"It seems you are trying to set \\"value\\" for container node. Check node with this properties: { id: \\"{{id}}\\", name: \\"{{name}}\\" }","label_invalid-treemap-missing-value":"It seems you are trying to use node without \\"value\\". Check node with this properties: { id: \\"{{id}}\\", name: \\"{{name}}\\" }","label_invalid-y-axis-index":"It seems you are trying to use inappropriate index for Y axis: \\"{{index}}\\""},"highcharts":{"reset-zoom-title":"Reset zoom","decimal-point":".","thousands-sep":" ","Mon":"Mon","Tue":"Tue","Wed":"Wed","Thu":"Thu","Fri":"Fri","Sat":"Sat","Sun":"Sun","Jan":"Jan","January":"January","Feb":"Feb","February":"February","Mar":"Mar","March":"March","Apr":"Apr","April":"April","May":"May","Jun":"Jun","June":"June","Jul":"Jul","July":"July","Aug":"Aug","August":"August","Sep":"Sep","September":"September","Oct":"Oct","October":"October","Nov":"Nov","November":"November","Dec":"Dec","December":"December"}}'),r=JSON.parse('{"common":{"tooltip-sum":"\u0421\u0443\u043c\u043c\u0430","tooltip-rest":"\u041e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435"},"chartkit":{"error":"\u041e\u0448\u0438\u0431\u043a\u0430","legend-series-hide":"\u0421\u043a\u0440\u044b\u0442\u044c \u0432\u0441\u0435 \u043b\u0438\u043d\u0438\u0438","legend-series-show":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u0435 \u043b\u0438\u043d\u0438\u0438","loading":"\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430","tooltip-point-format-size":"\u0420\u0430\u0437\u043c\u0435\u0440","tooltip-sum":"\u0421\u0443\u043c\u043c\u0430","tooltip-rest":"\u041e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435","error-incorrect-key-value-intro":"\u041d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043a\u0430\u043a \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432","error-incorrect-key":", \u043a\u043b\u044e\u0447\u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u043c\u044b \u0432 \u0446\u0435\u043b\u043e\u0435 \u0447\u0438\u0441\u043b\u043e","error-incorrect-value":", \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043b\u0438\u0431\u043e \u0441\u0442\u0440\u043e\u043a\u0430, \u043b\u0438\u0431\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e\u0449\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0443"},"chartkit-table":{"message-no-data":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445","paginator-rows":"\u0421\u0442\u0440\u043e\u043a\u0438"},"chartkit-ymap-legend":{"label-more":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0435\u0449\u0451 {{count}}","label-hide":"\u0421\u0432\u0435\u0440\u043d\u0443\u0442\u044c","label-heatmap":"\u0422\u0435\u043f\u043b\u043e\u0432\u0430\u044f \u043a\u0430\u0440\u0442\u0430"},"error":{"label_no-data":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445","label_unknown-plugin":"\u041d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0439 \u0442\u0438\u043f \u043f\u043b\u0430\u0433\u0438\u043d\u0430 \\"{{type}}\\"","label_unknown-error":"\u041d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430","label_invalid-axis-category-data-point":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0439 \u0442\u0438\u043f \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \\"{{key}}\\" \u0432 \u0441\u0435\u0440\u0438\u0438 \\"{{seriesName}}\\" \u0434\u043b\u044f \u043e\u0441\u0438 \u0441 \u0442\u0438\u043f\u043e\u043c \\"category\\". \u0414\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u043a \u0438 \u0447\u0438\u0441\u0435\u043b.","label_invalid-axis-datetime-data-point":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0439 \u0442\u0438\u043f \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \\"{{key}}\\" \u0432 \u0441\u0435\u0440\u0438\u0438 \\"{{seriesName}}\\" \u0434\u043b\u044f \u043e\u0441\u0438 \u0441 \u0442\u0438\u043f\u043e\u043c \\"datetime\\". \u0414\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0447\u0438\u0441\u0435\u043b.","label_invalid-axis-linear-data-point":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0439 \u0442\u0438\u043f \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \\"{{key}}\\" \u0432 \u0441\u0435\u0440\u0438\u0438 \\"{{seriesName}}\\" \u0434\u043b\u044f \u043e\u0441\u0438 \u0441 \u0442\u0438\u043f\u043e\u043c \\"linear\\". \u0414\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0447\u0438\u0441\u0435\u043b \u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 null.","label_invalid-pie-data-value":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0439 \u0442\u0438\u043f \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \\"value\\". \u0414\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0447\u0438\u0441\u0435\u043b.","label_invalid-series-type":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043d\u0435 \u0443\u043a\u0430\u0437\u0430\u043b\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \\"series.type\\" \u0438\u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u043b\u0438 \u0435\u0433\u043e \u043d\u0435\u0432\u0435\u0440\u043d\u043e. \u0414\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f: [{{types}}].","label_invalid-series-property":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \\"{{key}}\\", \u0438\u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u043b\u0438 \u0435\u0433\u043e \u043d\u0435\u0432\u0435\u0440\u043d\u043e. \u0414\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f: [{{values}}].","label_invalid-treemap-redundant-value":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \\"value\\" \u0434\u043b\u044f \u0443\u0437\u043b\u0430, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u0433\u043e \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430. \u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0443\u0437\u0435\u043b \u0441 \u044d\u0442\u0438\u043c\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438: { id: \\"{{id}}\\", name: \\"{{name}}\\" }","label_invalid-treemap-missing-value":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0443\u0437\u0435\u043b \u0431\u0435\u0437 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \\"value\\". \u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0443\u0437\u0435\u043b \u0441 \u044d\u0442\u0438\u043c\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438: { id: \\"{{id}}\\", name: \\"{{name}}\\" }","label_invalid-y-axis-index":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u0439 \u0438\u043d\u0434\u0435\u043a\u0441 \u0434\u043b\u044f \u043e\u0441\u0438 Y: \\"{{index}}\\""},"highcharts":{"reset-zoom-title":"\u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435","decimal-point":",","thousands-sep":" ","Mon":"\u041f\u043d","Tue":"\u0412\u0442","Wed":"\u0421\u0440","Thu":"\u0427\u0442","Fri":"\u041f\u0442","Sat":"\u0421\u0431","Sun":"\u0412\u0441","Jan":"\u042f\u043d\u0432","January":"\u042f\u043d\u0432\u0430\u0440\u044c","Feb":"\u0424\u0435\u0432","February":"\u0424\u0435\u0432\u0440\u0430\u043b\u044c","Mar":"\u041c\u0430\u0440","March":"\u041c\u0430\u0440\u0442","Apr":"\u0410\u043f\u0440","April":"\u0410\u043f\u0440\u0435\u043b\u044c","May":"\u041c\u0430\u0439","Jun":"\u0418\u044e\u043d","June":"\u0418\u044e\u043d\u044c","Jul":"\u0418\u044e\u043b","July":"\u0418\u044e\u043b\u044c","Aug":"\u0410\u0432\u0433","August":"\u0410\u0432\u0433\u0443\u0441\u0442","Sep":"\u0421\u0435\u043d","September":"\u0421\u0435\u043d\u0442\u044f\u0431\u0440\u044c","Oct":"\u041e\u043a\u0442","October":"\u041e\u043a\u0442\u044f\u0431\u0440\u044c","Nov":"\u041d\u043e\u044f","November":"\u041d\u043e\u044f\u0431\u0440\u044c","Dec":"\u0414\u0435\u043a","December":"\u0414\u0435\u043a\u0430\u0431\u0440\u044c"}}'),o=new s.TH;o.registerKeysets("en",n),o.registerKeysets("ru",r);const a=o.i18n.bind(o)},40014:(e,t,i)=>{"use strict";i.d(t,{Ay:()=>C});var s=i(27145),n=i(59284),r=i(8964),o=i(66643),a=i(42392);const c=()=>`ck.${((e,t)=>{let i="";for(let s=e;s>0;--s)i+=t[Math.floor(Math.random()*t.length)];return i})(10,"0123456789abcdefghijklmnopqrstuvwxyz")}`,l=n.memo;var h=i(82435);const d=(0,h.withNaming)({e:"__",m:"_"}),u=(0,h.withNaming)({n:"chartkit-",e:"__",m:"_"});class g extends n.Component{constructor(){super(...arguments),this.state={error:void 0},this.resetError=()=>{this.state.error&&this.setState({error:void 0})}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(){var e,t;const{error:i}=this.state;i&&(null===(t=(e=this.props).onError)||void 0===t||t.call(e,{error:i}))}componentDidUpdate(e){if(e.data!==this.props.data){const{error:e}=this.state;e&&"code"in e&&e.code===a.iY.NO_DATA&&this.resetError()}}render(){const{error:e}=this.state;if(e){const t=function(e){const t="code"in e&&e.code;return(e.message||t||(0,r.R)("error","label_unknown-error")).toString()}(e);return this.props.renderError?this.props.renderError({error:e,message:t,resetError:this.resetError}):n.createElement("div",null,t)}return this.props.children}}var p=i(74417);const m=u("loader"),f=e=>{var{renderPluginLoader:t}=e,i=(0,s.Tt)(e,["renderPluginLoader"]);const r=null===t||void 0===t?void 0:t();return"undefined"!==typeof r?r:n.createElement("div",{className:m()},n.createElement(p.a,Object.assign({},i)))},_=d("chartkit"),v=e=>{const t=n.useRef(),{instanceRef:i,id:l,type:h,isMobile:d,renderPluginLoader:u}=e,g=(0,s.Tt)(e,["instanceRef","id","type","isMobile","renderPluginLoader"]),p=n.useMemo((()=>c()),[]),m=l||p,v=o.W.get("lang"),C=o.W.get("plugins").find((e=>e.type===h));if(!C)throw new a.R({code:a.iY.UNKNOWN_PLUGIN,message:(0,r.R)("error","label_unknown-plugin",{type:h})});const E=C.renderer;return n.useImperativeHandle(i,(()=>({reflow(e){var i;(null===(i=t.current)||void 0===i?void 0:i.reflow)&&t.current.reflow(e)}})),[]),n.createElement(n.Suspense,{fallback:n.createElement(f,{renderPluginLoader:u})},n.createElement("div",{className:_({mobile:d},"chartkit-theme_common")},n.createElement(E,Object.assign({ref:t,id:m,lang:v},g))))},C=l(n.forwardRef((function(e,t){return n.createElement(g,{onError:e.onError,data:e.data,renderError:e.renderError},n.createElement(v,Object.assign({instanceRef:t},e)))})))},42392:(e,t,i)=>{"use strict";i.d(t,{R:()=>n,iY:()=>s});const s={NO_DATA:"ERR.CK.NO_DATA",INVALID_DATA:"ERR.CK.INVALID_DATA",UNKNOWN:"ERR.CK.UNKNOWN_ERROR",UNKNOWN_PLUGIN:"ERR.CK.UNKNOWN_PLUGIN",TOO_MANY_LINES:"ERR.CK.TOO_MANY_LINES"};class n extends Error{constructor({originalError:e,message:t,code:i=s.UNKNOWN}={}){super(t),this.isCustomError=!0,this.code=i,e&&(this.name=e.name,this.stack=e.stack)}}},66643:(e,t,i)=>{"use strict";i.d(t,{W:()=>p});var s=i(3357),n=i(87924),r=i.n(n),o=i(52708),a=i.n(o),c=i(8964);var l=i(38469),h=i.n(l);function d(e,t,i){if("plugins"===i){const i=[...e],s=[...t];let n=i.map((e=>{const t=s.findIndex((({type:t})=>t===e.type));if(-1!==t){const i=s[t];return s.splice(t,1),{type:e.type,renderer:i.renderer}}return e}));return s.length>0&&(n=[...n,...s]),n}return h()(e)?a()(e,t,d):t}const u=new class{constructor(){this.events={}}on(e,t){this.events[e]?this.events[e].push(t):this.events[e]=[t]}off(e,t){this.events[e]&&(this.events[e]=this.events[e].filter((({id:e})=>e!==t)))}dispatch(e,t){this.events[e]&&this.events[e].forEach((({action:e})=>{e(t)}))}},g=e=>{(0,s.jK)({lang:e}),c.J.setLang(e)};const p=new class{constructor(){this.settings={plugins:[],lang:"en"},g(this.get("lang"))}get(e){return r()(this.settings,e)}set(e){const t=(i=e,Object.entries(i).reduce(((e,[t,i])=>("undefined"!==typeof i&&(e[t]=i),e)),{}));var i;if(this.settings=a()(this.settings,t,d),t.lang){const e=t.lang||this.get("lang");g(e),u.dispatch("change-lang",e)}}}},25533:(e,t,i)=>{"use strict";i.d(t,{YagrPlugin:()=>s});const s={type:"yagr",renderer:i(59284).lazy((()=>Promise.all([i.e(1836),i.e(8593)]).then(i.bind(i,81836))))}},57439:(e,t,i)=>{"use strict";i.d(t,{u:()=>w});var s=i(59284),n=i(96873),r=i(98192);const o=(0,r.om)("definition-list");const a=e=>"label"in e&&!("name"in e),c=e=>!e.some((e=>a(e)));function l(e,t){return e||("string"===typeof t||"number"===typeof t?String(t):void 0)}function h({copyText:e,content:t,copyPosition:i}){const r="inside"===i,a=null!==t&&void 0!==t?t:"\u2014";return e?s.createElement("div",{className:o("copy-container",{"icon-inside":r})},s.createElement("span",null,a),s.createElement(n.b,{size:"s",text:e,className:o("copy-button"),view:r?"raised":"flat-secondary"})):a}var d=i(98089);function u({label:e}){return s.createElement("div",{className:o("group-title")},s.createElement(d.E,{variant:"subheader-1",color:"complementary"},e))}var g=i(6170),p=i(72837);const m=JSON.parse('{"label_note":"Note"}'),f=JSON.parse('{"label_note":"\u0421\u043f\u0440\u0430\u0432\u043a\u0430"}'),_=(0,p.N)({en:m,ru:f},`${r.CU}definition-list`);var v=function(e,t){var i={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(i[s]=e[s]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var n=0;for(s=Object.getOwnPropertySymbols(e);n<s.length;n++)t.indexOf(s[n])<0&&Object.prototype.propertyIsEnumerable.call(e,s[n])&&(i[s[n]]=e[s[n]])}return i};function C({note:e}){if(!e)return null;const t=o("item-note-tooltip");if("string"===typeof e)return s.createElement(g.B,{className:t,content:e,placement:["bottom","top"],buttonProps:{"aria-label":_("label_note")}});if("object"===typeof e){const{buttonProps:i}=e,n=v(e,["buttonProps"]);return s.createElement(g.B,Object.assign({className:t,placement:["bottom","top"],buttonProps:Object.assign({"aria-label":_("label_note")},i)},n))}return null}function E({note:e,name:t,nameTitle:i,multilineName:n,direction:r}){const a=s.createElement(s.Fragment,null,"\xa0",s.createElement(C,{note:e}));return s.createElement(s.Fragment,null,s.createElement("div",{className:o("term-wrapper")},s.createElement("span",{title:l(i,t)},t),n&&a),!n&&a,"horizontal"===r&&s.createElement("div",{className:o("dots",{"with-note":Boolean(e)})}))}var b=function(e,t){var i={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(i[s]=e[s]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var n=0;for(s=Object.getOwnPropertySymbols(e);n<s.length;n++)t.indexOf(s[n])<0&&Object.prototype.propertyIsEnumerable.call(e,s[n])&&(i[s[n]]=e[s[n]])}return i};function S({items:e,responsive:t,direction:i="horizontal",nameMaxWidth:n,contentMaxWidth:r="auto",className:a,itemClassName:c,copyPosition:d="outside",qa:u}){const g=n?{maxWidth:n,width:n}:{},p="number"===typeof r?{width:r,maxWidth:r}:{},m=s.useMemo((()=>e.map(((e,t)=>Object.assign(Object.assign({},e),{key:t})))),[e]);return s.createElement("div",{className:o({responsive:t,vertical:"vertical"===i},a),"data-qa":u},s.createElement("dl",{className:o("list")},m.map((e=>{const{name:t,key:n,content:r,contentTitle:a,nameTitle:u,copyText:m,note:f,multilineName:_}=e;return s.createElement("div",{key:n,className:o("item",c)},s.createElement("dt",{className:o("term-container",{multiline:_}),style:g},s.createElement(E,{direction:i,name:t,nameTitle:u,note:f,multilineName:_})),s.createElement("dd",{className:o("definition"),title:l(a,r),style:Object.assign(Object.assign({},p),{lineBreak:"string"===typeof r&&(v=20,function(e){return e.split(/\s+/).some((e=>e.length>v))})(r)?"anywhere":void 0})},s.createElement(h,{copyPosition:d,copyText:m,content:r})));var v}))))}function y(e){var{items:t,className:i,itemClassName:n}=e,r=b(e,["items","className","itemClassName"]);const a=s.useMemo((()=>t.map(((e,t)=>Object.assign(Object.assign({},e),{key:t})))),[t]);return s.createElement("div",{className:o({vertical:"vertical"===r.direction},i)},a.map((e=>{const{key:t,label:i}=e;return s.createElement(s.Fragment,{key:t},i&&s.createElement(u,{label:i}),e.items&&s.createElement(S,Object.assign({},r,{className:o({margin:!i}),items:e.items,itemClassName:o("item",{grouped:Boolean(i)},n)})))})))}function w(e){var{items:t}=e,i=b(e,["items"]);if(c(t))return s.createElement(S,Object.assign({},i,{items:t}));const n=function(e){const t=[];let i=[];for(const s of e)a(s)?(i.length&&(t.push({items:i,label:null}),i=[]),t.push(s)):i.push(s);return i.length&&(t.push({items:i,label:null}),i=[]),t}(t);return s.createElement(y,Object.assign({},i,{items:n}))}},6170:(e,t,i)=>{"use strict";i.d(t,{B:()=>l});var s=i(59284),n=i(73633),r=i(84375),o=i(99991);const a=(0,i(98192).om)("help-popover"),c=16;function l(e){var t;return s.createElement(r.A,Object.assign({},e,{className:a(null,e.className)}),s.createElement("button",Object.assign({ref:e.buttonRef,type:"button"},e.buttonProps,{className:a("button",null===(t=e.buttonProps)||void 0===t?void 0:t.className)}),s.createElement(o.I,{data:n.A,size:c})))}},98192:(e,t,i)=>{"use strict";i.d(t,{CU:()=>n,om:()=>r});var s=i(82435);const n="gc-",r=((0,s.withNaming)({e:"__",m:"_",v:"_"}),(0,s.withNaming)({n:n,e:"__",m:"_",v:"_"}))},23812:(e,t,i)=>{"use strict";i.d(t,{k:()=>ai});var s=i(60712),n=i(59284),r=i(46819),o=i(85736),a=i(51301);const c="g-date-",l=(0,i(82435).withNaming)({n:c,e:"__",m:"_"});function h({name:e,value:t,onReset:i,form:r,disabled:o,toStringValue:a}){const c=function({initialValue:e,onReset:t}){const[i,s]=n.useState(null),r=n.useRef(e);n.useEffect((()=>{if(!i||!t)return;const e=()=>{t(r.current)};return i.addEventListener("reset",e),()=>{i.removeEventListener("reset",e)}}),[i,t]);const o=n.useCallback((e=>{var t;s(null!==(t=null===e||void 0===e?void 0:e.form)&&void 0!==t?t:null)}),[]);return o}({initialValue:t,onReset:i});if(!e)return null;const l=a?a(t):`${null!==t&&void 0!==t?t:""}`;return(0,s.jsx)("input",{ref:c,type:"hidden",name:e,value:l,disabled:o,form:r})}const d=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.25 5.497a.75.75 0 0 1-.75-.75V4A1.5 1.5 0 0 0 3 5.5v1h10v-1A1.5 1.5 0 0 0 11.5 4v.75a.75.75 0 0 1-1.5 0V4H6v.747a.75.75 0 0 1-.75.75M10 2.5H6v-.752a.75.75 0 1 0-1.5 0V2.5a3 3 0 0 0-3 3v6a3 3 0 0 0 3 3h7a3 3 0 0 0 3-3v-6a3 3 0 0 0-3-3v-.75a.75.75 0 0 0-1.5 0zM3 8v3.5A1.5 1.5 0 0 0 4.5 13h7a1.5 1.5 0 0 0 1.5-1.5V8z",clipRule:"evenodd"}));var u=i(28664),g=i(84476),p=i(99991);function m(e){switch(e){case"xl":return"l";case"l":return"m";case"s":return"xs";default:return"s"}}var f=i(14750),_=i(72837);const v=JSON.parse('{"Last 5 minutes":"Last 5 minutes","Last 15 minutes":"Last 15 minutes","Last 30 minutes":"Last 30 minutes","Last hour":"Last hour","Last 3 hours":"Last 3 hours","Last 6 hours":"Last 6 hours","Last 12 hours":"Last 12 hours","Last day":"Last day","Last 3 days":"Last 3 days","Last week":"Last week","Last month":"Last month","Last 3 months":"Last 3 months","Last 6 months":"Last 6 months","Last year":"Last year","Last 3 years":"Last 3 years","Today":"Today","Yesterday":"Yesterday","Day before yesterday":"Day before yesterday","This week":"This week","This month":"This month","This year":"This year","From start of day":"From start of day","From start of week":"From start of week","From start of month":"From start of month","From start of year":"From start of year","Previous month":"Previous month","Last second":"Last second","Last minute":"Last minute","Last {count} second":["Last {{count}} second","Last {{count}} seconds","Last {{count}} seconds"],"Last {count} minute":["Last {{count}} minute","Last {{count}} minutes","Last {{count}} minutes"],"Last {count} hour":["Last {{count}} hour","Last {{count}} hours","Last {{count}} hours"],"Last {count} day":["Last {{count}} day","Last {{count}} days","Last {{count}} days"],"Last {count} week":["Last {{count}} week","Last {{count}} weeks","Last {{count}} weeks"],"Last {count} month":["Last {{count}} month","Last {{count}} months","Last {{count}} months"],"Last {count} year":["Last {{count}} year","Last {{count}} years","Last {{count}} years"],"Main":"Main","Other":"Other","Range":"Range","From":"From","To":"To"}'),C=JSON.parse('{"Last 5 minutes":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 5 \u043c\u0438\u043d\u0443\u0442","Last 15 minutes":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 15 \u043c\u0438\u043d\u0443\u0442","Last 30 minutes":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 30 \u043c\u0438\u043d\u0443\u0442","Last hour":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0447\u0430\u0441","Last 3 hours":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 3 \u0447\u0430\u0441\u0430","Last 6 hours":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 6 \u0447\u0430\u0441\u043e\u0432","Last 12 hours":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 12 \u0447\u0430\u0441\u043e\u0432","Last day":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0434\u0435\u043d\u044c","Last 3 days":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 3 \u0434\u043d\u044f","Last week":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u043d\u0435\u0434\u0435\u043b\u044f","Last month":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u043c\u0435\u0441\u044f\u0446","Last 3 months":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 3 \u043c\u0435\u0441\u044f\u0446\u0430","Last 6 months":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 6 \u043c\u0435\u0441\u044f\u0446\u0435\u0432","Last year":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0433\u043e\u0434","Last 3 years":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 3 \u0433\u043e\u0434\u0430","Today":"\u0421\u0435\u0433\u043e\u0434\u043d\u044f","Yesterday":"\u0412\u0447\u0435\u0440\u0430","Day before yesterday":"\u041f\u043e\u0437\u0430\u0432\u0447\u0435\u0440\u0430","This week":"\u042d\u0442\u0430 \u043d\u0435\u0434\u0435\u043b\u044f","This month":"\u042d\u0442\u043e\u0442 \u043c\u0435\u0441\u044f\u0446","This year":"\u042d\u0442\u043e\u0442 \u0433\u043e\u0434","From start of day":"\u0421 \u043d\u0430\u0447\u0430\u043b\u0430 \u0434\u043d\u044f","From start of week":"\u0421 \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0435\u0434\u0435\u043b\u0438","From start of month":"\u0421 \u043d\u0430\u0447\u0430\u043b\u0430 \u043c\u0435\u0441\u044f\u0446\u0430","From start of year":"\u0421 \u043d\u0430\u0447\u0430\u043b\u0430 \u0433\u043e\u0434\u0430","Previous month":"\u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u043c\u0435\u0441\u044f\u0446","Last second":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u0441\u0435\u043a\u0443\u043d\u0434\u0430","Last minute":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u043c\u0438\u043d\u0443\u0442\u0430","Last {count} second":["\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0430","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u044b","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434"],"Last {count} minute":["\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f {{count}} \u043c\u0438\u043d\u0443\u0442\u0430","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u043c\u0438\u043d\u0443\u0442\u044b","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u043c\u0438\u043d\u0443\u0442"],"Last {count} hour":["\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 {{count}} \u0447\u0430\u0441","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u0447\u0430\u0441\u0430","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u0447\u0430\u0441\u043e\u0432"],"Last {count} day":["\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 {{count}} \u0434\u0435\u043d\u044c","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u0434\u043d\u044f","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u0434\u043d\u0435\u0439"],"Last {count} week":["\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f {{count}} \u043d\u0435\u0434\u0435\u043b\u044f","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u043d\u0435\u0434\u0435\u043b\u0438","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u043d\u0435\u0434\u0435\u043b\u044c"],"Last {count} month":["\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 {{count}} \u043c\u0435\u0441\u044f\u0446","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u043c\u0435\u0441\u044f\u0446\u0430","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u043c\u0435\u0441\u044f\u0446\u0435\u0432"],"Last {count} year":["\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 {{count}} \u0433\u043e\u0434","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u0433\u043e\u0434\u0430","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u043b\u0435\u0442"],"Main":"\u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435","Other":"\u0414\u0440\u0443\u0433\u0438\u0435","Range":"\u041f\u0435\u0440\u0438\u043e\u0434","From":"\u041e\u0442","To":"\u0414\u043e"}'),E=(0,_.N)({en:v,ru:C},`${c}relative-range-date-picker-presets`),b=[{from:"now-1d",to:"now",get title(){return E("Last day")}},{from:"now-3d",to:"now",get title(){return E("Last 3 days")}},{from:"now-1w",to:"now",get title(){return E("Last week")}},{from:"now-1M",to:"now",get title(){return E("Last month")}},{from:"now-3M",to:"now",get title(){return E("Last 3 months")}},{from:"now-6M",to:"now",get title(){return E("Last 6 months")}},{from:"now-1y",to:"now",get title(){return E("Last year")}},{from:"now-3y",to:"now",get title(){return E("Last 3 years")}}],S=[{from:"now-5m",to:"now",get title(){return E("Last 5 minutes")}},{from:"now-15m",to:"now",get title(){return E("Last 15 minutes")}},{from:"now-30m",to:"now",get title(){return E("Last 30 minutes")}},{from:"now-1h",to:"now",get title(){return E("Last hour")}},{from:"now-3h",to:"now",get title(){return E("Last 3 hours")}},{from:"now-6h",to:"now",get title(){return E("Last 6 hours")}},{from:"now-12h",to:"now",get title(){return E("Last 12 hours")}}],y=[{from:"now/d",to:"now/d",get title(){return E("Today")}},{from:"now-1d/d",to:"now-1d/d",get title(){return E("Yesterday")}},{from:"now-2d/d",to:"now-2d/d",get title(){return E("Day before yesterday")}},{from:"now/w",to:"now/w",get title(){return E("This week")}},{from:"now/M",to:"now/M",get title(){return E("This month")}},{from:"now/y",to:"now/y",get title(){return E("This year")}},{from:"now/d",to:"now",get title(){return E("From start of day")}},{from:"now/w",to:"now",get title(){return E("From start of week")}},{from:"now/M",to:"now",get title(){return E("From start of month")}},{from:"now/y",to:"now",get title(){return E("From start of year")}}],w=S.concat(b,y),R=/^now-(\d+)([smhdwMy])$/,L={s:"Last second",m:"Last minute",h:"Last hour",d:"Last day",w:"Last week",M:"Last month",y:"Last year"},T={s:"Last {count} second",m:"Last {count} minute",h:"Last {count} hour",d:"Last {count} day",w:"Last {count} week",M:"Last {count} month",y:"Last {count} year"};function x(e,t){return e.filter((e=>{const i=(0,f.bQ)(e.from),s=(0,f.bQ)(e.to,{roundUp:!0});return!(!i||!s)&&(!s.isBefore(i)&&(!t||!i.isBefore(t)))}))}function k(e){const t=e.toLowerCase();return"default"===t||"system"===t?t:function(e){return"default"===e||"system"===e?(0,f.KQ)({timeZone:e}).timeZone():e}(e)}function A(e){return`UTC ${(0,f.KQ)({timeZone:e}).format("Z")}`}function N({value:e,timeZone:t,alwaysShowAsAbsolute:i,format:s="L",presets:n}){var r,o,a,c,l,h;if(!e)return"";const d="default"===t?"":` (${A(t)})`;let u="";e.start&&(u="relative"!==e.start.type||i?null!==(o=null===(r=(0,f.bQ)(e.start.value,{timeZone:t}))||void 0===r?void 0:r.format(s))&&void 0!==o?o:"":e.start.value);let g="";if(e.end&&(g="relative"!==e.end.type||i?null!==(c=null===(a=(0,f.bQ)(e.end.value,{timeZone:t,roundUp:!0}))||void 0===a?void 0:a.format(s))&&void 0!==c?c:"":e.end.value),!i&&"relative"===(null===(l=e.start)||void 0===l?void 0:l.type)&&"relative"===(null===(h=e.end)||void 0===h?void 0:h.type))return`${function(e,t,i=w){const s=e.replace(/\s+/g,""),n=t.replace(/\s+/g,"");for(const r of i)if(r.from===s&&r.to===n)return r.title;if("now"===t){const e=R.exec(s);if(e){const[,t,i]=e;if(["s","m","h","d","w","M","y"].includes(i)){const e=1===Number(t)?L[i]:T[i];return E(e,{count:t})}}}return s+" \u2014 "+n}(e.start.value,e.end.value,n)}`;return`${u} \u2014 ${g}${d}`}const I=JSON.parse('{"Range date picker":"Range date picker"}'),O=JSON.parse('{"Range date picker":"\u0412\u044b\u0431\u043e\u0440 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0430 \u0434\u0430\u0442"}'),D=(0,_.N)({en:I,ru:O},`${c}relative-range-date-picker-control`),M=l("relative-range-date-picker-control"),P=n.forwardRef((({props:e,state:t,open:i,isMobile:r,onClick:o,onKeyDown:a,onFocus:c,onClickCalendar:l,onUpdate:h},f)=>{var _;const{alwaysShowAsAbsolute:v,presetTabs:C,getRangeTitle:E}=e,b=e.format||"L",S=n.useMemo((()=>"function"===typeof E?E(t.value,t.timeZone):N({value:t.value,timeZone:t.timeZone,alwaysShowAsAbsolute:v,format:b,presets:null===C||void 0===C?void 0:C.flatMap((({presets:e})=>e))})),[v,b,E,C,t.timeZone,t.value]),y=e.validationState||(t.isInvalid?"invalid":void 0),w=null!==(_=e.errorMessage)&&void 0!==_?_:t.errors.join("\n"),R={id:e.id,role:"combobox","aria-haspopup":"dialog","aria-expanded":i,"aria-label":e["aria-label"],"aria-labelledby":e["aria-labelledby"],"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"],disabled:e.disabled,readOnly:e.readOnly,onClick:l,onKeyDown:a};return e.renderControl?e.renderControl({ref:f,value:t.value,title:S,validationState:y,errorMessage:w,open:i,triggerProps:R}):(0,s.jsxs)(n.Fragment,{children:[(0,s.jsx)(u.k,{id:e.id,autoFocus:e.autoFocus,controlRef:f,value:S,placeholder:e.placeholder,onUpdate:h,controlProps:Object.assign(Object.assign({className:M("input",{mobile:r})},R),{disabled:r,onClick:o}),onKeyDown:a,onFocus:c,validationState:y,errorMessage:w,errorPlacement:e.errorPlacement,pin:e.pin,size:e.size,label:e.label,hasClear:e.hasClear,disabled:e.disabled,endContent:(0,s.jsx)(g.$,{view:"flat-secondary",size:m(e.size),disabled:e.disabled,extraProps:{"aria-haspopup":"dialog","aria-expanded":i,"aria-label":D("Range date picker")},onClick:l,children:(0,s.jsx)(p.I,{data:d})})}),r?(0,s.jsx)("button",{className:M("mobile-trigger",{"has-clear":Boolean(e.hasClear&&t.value),"has-errors":t.isInvalid&&"inside"===e.errorPlacement,size:e.size}),onClick:o}):null]})}));P.displayName="Control";var F=i(12640),U=i(39238);const H=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("g",{clipPath:"url(#a)"},n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.312 4.29a.764.764 0 0 1 1.103-.62.75.75 0 1 0 .67-1.34 2.264 2.264 0 0 0-3.268 1.836L2.706 5.5H1.75a.75.75 0 0 0 0 1.5h.83l-.392 4.71a.764.764 0 0 1-1.103.62.75.75 0 0 0-.67 1.34 2.264 2.264 0 0 0 3.268-1.836L4.086 7H5.25a.75.75 0 1 0 0-1.5H4.21zm6.014 2.23a.75.75 0 0 0-1.152.96l.85 1.02-.85 1.02a.75.75 0 0 0 1.152.96L11 9.672l.674.808a.75.75 0 0 0 1.152-.96l-.85-1.02.85-1.02a.75.75 0 0 0-1.152-.96L11 7.328zM8.02 4.55a.75.75 0 0 1 .43.969l-.145.378a7.25 7.25 0 0 0 0 5.205l.145.378a.75.75 0 0 1-1.4.539l-.145-.378a8.75 8.75 0 0 1 0-6.282l.145-.378a.75.75 0 0 1 .97-.431m5.961 0a.75.75 0 0 1 .97.43l.145.379a8.75 8.75 0 0 1 0 6.282l-.146.378a.75.75 0 1 1-1.4-.538l.146-.379a7.25 7.25 0 0 0 0-5.205l-.146-.378a.75.75 0 0 1 .431-.97",clipRule:"evenodd"})),n.createElement("defs",null,n.createElement("clipPath",{id:"a"},n.createElement("path",{fill:"currentColor",d:"M0 0h16v16H0z"})))),B=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.5 8a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0M8.75 4.5a.75.75 0 0 0-1.5 0V8a.75.75 0 0 0 .3.6l2 1.5a.75.75 0 1 0 .9-1.2l-1.7-1.275z",clipRule:"evenodd"}));var W=i(32084),V=i(9187),z=i(38602),G=i(33705);function j({placeholderValue:e,timeZone:t}){return null!==e&&void 0!==e?e:(0,f.KQ)({timeZone:t}).set("hour",0).set("minute",0).set("second",0)}function K(e,t,i){return t&&e.isBefore(t)?t:i&&i.isBefore(e)?i:e}function Y(e,t){return e.set("hours",t.hour()).set("minutes",t.minute()).set("seconds",t.second())}function q(e,t,i){return(0,f.KQ)({input:e,timeZone:i}).format(t)}function $(e,t){const i=n.useRef(null),s=t.isCellFocused(e);n.useEffect((()=>{var e;s&&(null===(e=i.current)||void 0===e||e.focus({preventScroll:!0}))}),[s]);const r=t.focusedDate.isSame(e,t.mode)?0:-1,o=t.isCellDisabled(e),a=t.isSelected(e),c="highlightedRange"in t&&t.highlightedRange,l=Boolean(c&&a),h=a&&c&&e.isSame(c.start,t.mode),d=a&&c&&e.isSame(c.end,t.mode),u="days"===t.mode&&!t.focusedDate.isSame(e,"month"),g=t.isCellUnavailable(e),p=!o&&!g,m=t.isCurrent(e),f=t.isWeekend(e),_=function(e,t){switch(t.mode){case"days":return`${q(e,"dddd",t.timeZone)}, ${q(e,"LL",t.timeZone)}`;case"months":return`${q(e,"MMMM YYYY",t.timeZone)}`;case"quarters":return`${q(e,"[Q]Q YYYY",t.timeZone)}`;case"years":return`${q(e,"YYYY",t.timeZone)}`;default:return""}}(e,t),v={role:"gridcell","aria-selected":a?"true":void 0,"aria-disabled":o?"true":void 0},C={ref:i,role:"button",tabIndex:o?void 0:r,"aria-disabled":p?void 0:"true","aria-label":_,onClick:p?()=>{t.setFocusedDate(e),t.selectDate(e)}:void 0,onPointerEnter(){if("highlightDate"in t&&p)if(u){const i=e.isBefore(t.focusedDate)?t.focusedDate.startOf("month"):t.focusedDate.endOf("month").startOf("date");t.highlightDate(i)}else t.highlightDate(e)}};let E=q(e,"D",t.timeZone);return"months"===t.mode?E=q(e,"MMM",t.timeZone):"quarters"===t.mode?E=q(e,"[Q]Q",t.timeZone):"years"===t.mode&&(E=q(e,"YYYY",t.timeZone)),{cellProps:v,buttonProps:C,formattedDate:E,isDisabled:o,isSelected:a,isRangeSelection:l,isSelectionStart:h,isSelectionEnd:d,isOutsideCurrentRange:u,isUnavailable:g,isCurrent:m,isWeekend:f}}const Q=JSON.parse('{"Previous":"Previous","Next":"Next","Switch to months view":"Switch to months view","Switch to quarters view":"Switch to quarters view","Switch to years view":"Switch to years view"}'),X=JSON.parse('{"Previous":"\u041d\u0430\u0437\u0430\u0434","Next":"\u0412\u043f\u0435\u0440\u0451\u0434","Switch to months view":"\u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u043f\u043e \u043c\u0435\u0441\u044f\u0446\u0430\u043c","Switch to quarters view":"\u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u043f\u043e \u043a\u0432\u0430\u0440\u0442\u0430\u043b\u0430\u043c","Switch to years view":"\u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u043f\u043e \u0433\u043e\u0434\u0430\u043c"}'),Z=(0,_.N)({en:Q,ru:X},`${c}calendar`),J="yc-button_disabled g-button_disabled";function ee(e,t){const i=t.indexOf(e)+1;if(i===t.length)return;return{days:"",months:Z("Switch to months view"),quarters:Z("Switch to quarters view"),years:Z("Switch to years view")}[t[i]]}const te=["days","months","quarters","years"],ie=l("calendar"),se=n.forwardRef((function(e,t){const{state:i}=e,{calendarProps:r,modeButtonProps:o,nextButtonProps:c,previousButtonProps:l}=function(e,t){const i="years"===t.mode||"quarters"===t.mode?`${t.startDate.year()} \u2014 ${t.endDate.year()}`:q(t.focusedDate,"days"===t.mode?"MMMM YYYY":"YYYY",t.timeZone),{focusWithinProps:s}=(0,a.R)({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur}),r=Object.assign({role:"group",id:e.id,"aria-label":[e["aria-label"],i].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]||void 0,"aria-describedby":e["aria-describedby"]||void 0,"aria-details":e["aria-details"]||void 0,"aria-disabled":t.disabled||void 0},s),o=t.availableModes.indexOf(t.mode),c=o+1===t.availableModes.length,l=o+2===t.availableModes.length,h=t.disabled||c,d={disabled:t.disabled,className:h?J:void 0,onClick:h?void 0:()=>{t.zoomOut(),l&&t.setFocused(!0)},extraProps:{"aria-disabled":h?"true":void 0,"aria-description":ee(t.mode,t.availableModes),"aria-live":"polite"},children:i},u=n.useRef(!1),g=t.disabled||t.isPreviousPageInvalid();n.useLayoutEffect((()=>{g&&u.current&&(u.current=!1,t.setFocused(!0))}));const p={disabled:t.disabled,className:g?J:void 0,onClick:g?void 0:()=>{t.focusPreviousPage()},onFocus:g?void 0:()=>{u.current=!0},onBlur:g?void 0:()=>{u.current=!1},extraProps:{"aria-label":Z("Previous"),"aria-disabled":g?"true":void 0}},m=n.useRef(!1),f=t.disabled||t.isNextPageInvalid();return n.useLayoutEffect((()=>{f&&m.current&&(m.current=!1,t.setFocused(!0))})),{calendarProps:r,modeButtonProps:d,nextButtonProps:{disabled:t.disabled,className:f?J:void 0,onClick:f?void 0:()=>{t.focusNextPage()},onFocus:f?void 0:()=>{m.current=!0},onBlur:f?void 0:()=>{m.current=!1},extraProps:{"aria-label":Z("Next"),"aria-disabled":g?"true":void 0}},previousButtonProps:p}}(e,i);return n.useImperativeHandle(t,(()=>({focus(){i.setFocused(!0)}}))),(0,s.jsxs)("div",Object.assign({},r,{className:ie({size:e.size}),children:[(0,s.jsxs)("div",{className:ie("header"),children:[(0,s.jsx)(g.$,Object.assign({},o,{view:"flat",size:e.size,children:i.availableModes.indexOf(i.mode)+1===i.availableModes.length?(0,s.jsx)("span",{className:ie("mode-label",ie("years-label")),children:o.children},"label"):[(0,s.jsx)("span",{className:ie("mode-label"),children:o.children},"label"),(0,s.jsx)(g.$.Icon,{children:(0,s.jsx)(G.I,{direction:"bottom"})},"icon")]})),(0,s.jsxs)("div",{className:ie("controls"),children:[(0,s.jsx)(g.$,Object.assign({},l,{view:"flat",size:e.size,children:(0,s.jsx)(g.$.Icon,{children:(0,s.jsx)(V.A,{className:ie("control-icon")})})})),(0,s.jsx)(g.$,Object.assign({},c,{view:"flat",size:e.size,children:(0,s.jsx)(g.$.Icon,{children:(0,s.jsx)(z.A,{className:ie("control-icon")})})}))]})]}),(0,s.jsx)(ne,{state:i})]}))}));function ne({state:e}){const[t,i]=n.useState((()=>Object.assign(Object.assign({},e),{isFocused:!1}))),r=e.mode!==t.mode,o=!e.startDate.isSame(t.startDate,"days");let c;r?c=te.indexOf(t.mode)>te.indexOf(e.mode)?"zoom-out":"zoom-in":o&&(c=e.startDate.isBefore(t.startDate)?"forward":"backward");const{gridProps:l}=function(e){const{focusWithinProps:t}=(0,a.R)({onFocusWithinChange:t=>{e.setFocused(t)}});return{gridProps:Object.assign(Object.assign({role:"grid","aria-label":"years"===e.mode||"quarters"===e.mode?`${e.startDate.year()} \u2014 ${e.endDate.year()}`:q(e.focusedDate,"days"===e.mode?"MMMM YYYY":"YYYY",e.timeZone),"aria-disabled":e.disabled?"true":void 0,"aria-readonly":e.readOnly?"true":void 0},t),{onKeyDown:t=>{"ArrowRight"===t.key?(t.preventDefault(),e.focusNextCell()):"ArrowLeft"===t.key?(t.preventDefault(),e.focusPreviousCell()):"ArrowDown"===t.key?(t.preventDefault(),e.focusNextRow()):"ArrowUp"===t.key?(t.preventDefault(),e.focusPreviousRow()):"PageDown"===t.key?(t.preventDefault(),e.focusNextPage(t.shiftKey)):"PageUp"===t.key?(t.preventDefault(),e.focusPreviousPage(t.shiftKey)):"End"===t.key?(t.preventDefault(),e.focusSectionEnd()):"Home"===t.key?(t.preventDefault(),e.focusSectionStart()):"Minus"===t.code?(t.preventDefault(),e.zoomOut()):"Equal"===t.code?(t.preventDefault(),e.zoomIn()):"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),e.selectDate(e.focusedDate))}})}}(e);return(0,s.jsxs)("div",Object.assign({className:ie("grid")},l,{children:[c&&(0,s.jsx)(re,{className:ie("previous-state"),state:t,animation:c}),(0,s.jsx)(re,{className:ie("current-state"),state:e,animation:c,onAnimationEnd:()=>{i(Object.assign(Object.assign({},e),{isFocused:!1}))}},"current")]}))}function re({className:e,state:t,animation:i,onAnimationEnd:n}){return(0,s.jsxs)("div",{className:ie("content",{animation:i},e),onAnimationEnd:n,role:"presentation",children:["days"===t.mode&&(0,s.jsx)(oe,{state:t}),(0,s.jsx)(ae,{state:t})]})}function oe({state:e}){const t=function(e){const t=[],i=(0,f.KQ)({timeZone:e.timeZone}).startOf("week");for(let s=0;s<7;s++){const e=i.add({days:s});t.push(e)}return t}(e);return(0,s.jsx)("div",{className:ie("grid-row"),role:"row",children:t.map((t=>(0,s.jsx)("div",{className:ie("weekday",{weekend:e.isWeekend(t)}),role:"columnheader","aria-label":q(t,"dddd",e.timeZone),children:q(t,"dd",e.timeZone)},t.day())))})}function ae({state:e}){const t="days"===e.mode?6:4,i="days"===e.mode?7:3+("quarters"===e.mode?1:0),n=function(e){const t=[],i=(0,f.KQ)({input:e.startDate,timeZone:e.timeZone});if("days"===e.mode){const e=i.startOf("week");for(let i=0;i<42;i++)t.push(e.add({days:i}))}else if("quarters"===e.mode)for(let s=0;s<16;s++)t.push(i.add(s,"quarters"));else for(let s=0;s<12;s++)t.push(i.add({[e.mode]:s}));return t}(e);return(0,s.jsx)("div",{className:ie("grid-rowgroup",{mode:e.mode}),role:"rowgroup",children:[...new Array(t).keys()].map((t=>(0,s.jsxs)("div",{className:ie("grid-row"),role:"row",children:["quarters"===e.mode?(0,s.jsx)("span",{role:"rowheader",className:ie("grid-rowgroup-header"),children:q(n[t*i],"YYYY",e.timeZone)}):null,n.slice(t*i,(t+1)*i).map((t=>(0,s.jsx)(ce,{date:t,state:e},t.unix())))]},t)))})}function ce({date:e,state:t}){const{cellProps:i,buttonProps:n,formattedDate:r,isDisabled:o,isSelected:a,isRangeSelection:c,isSelectionStart:l,isSelectionEnd:h,isOutsideCurrentRange:d,isUnavailable:u,isCurrent:g,isWeekend:p}=$(e,t);return(0,s.jsx)("div",Object.assign({},i,{children:(0,s.jsx)("div",Object.assign({},n,{className:ie("button",{disabled:o,selected:a,"range-selection":c,"selection-start":l,"selection-end":h,"out-of-boundary":d,unavailable:u,current:g,weekend:p}),children:r}))}))}function le(e){const t=e?e.timeZone():"default",[i,s]=n.useState(t);e&&t!==i&&s(t);return e?t:i}const he={days:!0,months:!0,quarters:!1,years:!0};function de(e,t){if("days"===t)return e.startOf("month");if("months"===t)return e.startOf("year");if("quarters"===t){const t=4*Math.floor(e.year()/4);return e.startOf("year").set("year",t)}const i=12*Math.floor(e.year()/12);return e.startOf("year").set("year",i)}function ue(e,t){if("days"===t)return e.endOf("month").startOf("day");if("months"===t)return e.endOf("year").startOf("month");const i=de(e,t);return"quarters"===t?i.add(15,"quarters"):i.add({[t]:11})}function ge(e,t,i,s="days"){return!K(e,t,i).isSame(e,s)}const pe=n.forwardRef((function(e,t){const i=function(e){var t,i,s;const{disabled:r,readOnly:a,modes:c=he}=e,[l,h]=(0,o.P)(e.value,null!==(t=e.defaultValue)&&void 0!==t?t:null,e.onUpdate),d=te.filter((e=>c[e])),u=d[0]||"days",[g,p]=(0,o.P)(e.mode,null!==(i=e.defaultMode)&&void 0!==i?i:u,e.onUpdateMode),m=g&&d.includes(g)?g:u,_=le(e.value||e.defaultValue||e.focusedValue||e.defaultFocusedValue),v=e.timeZone||_,C=n.useMemo((()=>e.minValue?e.minValue.timeZone(v):void 0),[v,e.minValue]),E=n.useMemo((()=>e.maxValue?e.maxValue.timeZone(v):void 0),[v,e.maxValue]),b=n.useMemo((()=>e.focusedValue?K(e.focusedValue.timeZone(v),C,E):e.focusedValue),[e.focusedValue,C,E,v]),S=n.useMemo((()=>{var t;return K((null===(t=e.defaultFocusedValue?e.defaultFocusedValue:l)||void 0===t?void 0:t.timeZone(v))||j({timeZone:v}).startOf(u),C,E)}),[E,C,e.defaultFocusedValue,v,l,u]),[y,w]=(0,o.P)(b,S,(t=>{var i;null===(i=e.onFocusUpdate)||void 0===i||i.call(e,t.timeZone(_))})),R=null!==(s=null===y||void 0===y?void 0:y.timeZone(v))&&void 0!==s?s:K(j({timeZone:v}),C,E);function L(e){w(K(e.startOf(m),C,E))}ge(R,C,E)&&w(K(R,C,E));const[T,x]=n.useState(e.autoFocus||!1),k=de(R,m),A=ue(R,m);return{disabled:r,readOnly:a,value:l,setValue(e){if(!r&&!a){let t=K(e,C,E);if(this.isCellUnavailable(t))return;l&&(t=Y(t,l.timeZone(v))),h(t.timeZone(_))}},timeZone:v,selectDate(e,t=!1){r||(a||!t&&this.mode!==u?this.zoomIn():(this.setValue(e.startOf(u)),t&&m!==u&&p(u)))},minValue:C,maxValue:E,focusedDate:R,startDate:k,endDate:A,setFocusedDate(e){L(e),x(!0)},focusNextCell(){L(R.add(1,this.mode))},focusPreviousCell(){L(R.subtract(1,this.mode))},focusNextRow(){"days"===this.mode?L(R.add(1,"week")):"quarters"===this.mode?L(R.add(1,"years")):L(R.add(3,this.mode))},focusPreviousRow(){"days"===this.mode?L(R.subtract(1,"week")):"quarters"===this.mode?L(R.subtract(1,"years")):L(R.subtract(3,this.mode))},focusNextPage(e){"days"===this.mode?L(R.add({months:e?12:1})):"quarters"===this.mode?L(R.add(4,"years")):L(R.add(12,this.mode))},focusPreviousPage(e){"days"===this.mode?L(R.subtract({months:e?12:1})):"quarters"===this.mode?L(R.subtract(4,"years")):L(R.subtract(12,this.mode))},focusSectionStart(){L(de(R,this.mode))},focusSectionEnd(){L(ue(R,this.mode))},zoomIn(){const e=d[d.indexOf(this.mode)-1];e&&this.setMode(e)},zoomOut(){const e=d[d.indexOf(this.mode)+1];e&&this.setMode(e)},selectFocusedDate(){this.selectDate(R,!0)},isFocused:T,setFocused:x,isInvalid(e){return ge(e,this.minValue,this.maxValue,this.mode)},isPreviousPageInvalid(){const e=this.startDate.subtract(1,"day");return this.isInvalid(e)},isNextPageInvalid(){const e=this.endDate.endOf(this.mode).add(1,"day");return this.isInvalid(e)},isSelected(e){return Boolean(l&&e.isSame(l.timeZone(v),m)&&!this.isCellDisabled(e))},isCellUnavailable(t){return this.mode===u&&Boolean(e.isDateUnavailable&&e.isDateUnavailable(t))},isCellFocused(e){return this.isFocused&&R&&e.isSame(R,m)},isCellDisabled(e){return this.disabled||this.isInvalid(e)},isWeekend(t){return"days"===this.mode&&("function"===typeof e.isWeekend?e.isWeekend(t):function(e){return[0,6].includes(e.day())}(t))},isCurrent(e){return(0,f.KQ)({timeZone:v}).isSame(e,this.mode)},mode:m,setMode:p,availableModes:d}}(e);return(0,s.jsx)(se,Object.assign({ref:t},e,{state:i}))}));var me=i(27145);const fe=JSON.parse('{"year_placeholder":"Y","month_placeholder":"M","weekday_placeholder":"E","day_placeholder":"D","hour_placeholder":"h","minute_placeholder":"m","second_placeholder":"s","dayPeriod_placeholder":"aa"}'),_e=JSON.parse('{"year_placeholder":"\u0413","month_placeholder":"\u041c","weekday_placeholder":"\u0414\u041d","day_placeholder":"\u0414","hour_placeholder":"\u0447","minute_placeholder":"\u043c","second_placeholder":"\u0441","dayPeriod_placeholder":"(\u0434|\u043f)\u043f"}'),ve=(0,_.N)({en:fe,ru:_e},`${c}date-field`),Ce={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,weekday:!0},Ee={start:"[",end:"]"},be={YY:"year",YYYY:"year",M:"month",MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:"day",DD:"day",Do:"day",d:"weekday",dd:{sectionType:"weekday",contentType:"letter"},ddd:{sectionType:"weekday",contentType:"letter"},dddd:{sectionType:"weekday",contentType:"letter"},A:{sectionType:"dayPeriod",contentType:"letter"},a:{sectionType:"dayPeriod",contentType:"letter"},H:"hour",HH:"hour",h:"hour",hh:"hour",m:"minute",mm:"minute",s:"second",ss:"second",z:{sectionType:"timeZoneName",contentType:"letter"},zzz:{sectionType:"timeZoneName",contentType:"letter"},Z:{sectionType:"timeZoneName",contentType:"letter"},ZZ:{sectionType:"timeZoneName",contentType:"letter"}};function Se(e){return 4===(0,f.KQ)().format(e).length}function ye(e,t){const{type:i,format:s}=e;switch(i){case"year":{const e=Se(s);return{minValue:e?1:0,maxValue:e?9999:99}}case"month":return{minValue:0,maxValue:11};case"weekday":return{minValue:0,maxValue:6};case"day":return{minValue:1,maxValue:t?t.daysInMonth():31};case"hour":if(function(e){return"15"!==(0,f.KQ)().set("hour",15).format(e)}(s)){const e=t.hour()>=12;return{minValue:e?12:0,maxValue:e?23:11}}return{minValue:0,maxValue:23};case"minute":case"second":return{minValue:0,maxValue:59}}return{}}function we(e,t){const i=e.type;switch(i){case"year":return Se(e.format)?t.year():Number(t.format(e.format));case"month":case"hour":case"minute":case"second":return t[i]();case"day":return t.date();case"weekday":return t.day();case"dayPeriod":return t.hour()>=12?12:0}}const Re={weekday:"day",day:"date",dayPeriod:"hour"};function Le(e){if("literal"===e||"timeZoneName"===e||"unknown"===e)throw new Error(`${e} section does not have duration unit.`);return e in Re?Re[e]:e}function Te(e,t){switch(e.type){case"year":return ve("year_placeholder").repeat((0,f.KQ)().format(t).length);case"month":return ve("month_placeholder").repeat("letter"===e.contentType?4:2);case"day":return ve("day_placeholder").repeat(2);case"weekday":return ve("weekday_placeholder").repeat("letter"===e.contentType?4:2);case"hour":return ve("hour_placeholder").repeat(2);case"minute":return ve("minute_placeholder").repeat(2);case"second":return ve("second_placeholder").repeat(2);case"dayPeriod":return ve("dayPeriod_placeholder");default:return t}}function xe(e){const t=[],i=(0,f.cS)(e);let s="",n=!1,r=!1;for(let o=0;o<i.length;o++){const e=i[o]||"";if(r){if(e===Ee.end){r=!1;continue}s+=e}else e.match(/[a-zA-Z]/)?(n&&(Ae(t,s),s=""),n=!1,s+=e):(n||(ke(t,s),s=""),n=!0,e===Ee.start?r=!0:s+=e)}return s&&(n?Ae(t,s):ke(t,s)),t}function ke(e,t){if(!t)return;const i=function(e){const t=be[e];return t?"string"===typeof t?{type:t,contentType:"digit"}:{type:t.sectionType,contentType:t.contentType}:(console.error([`The token "${e}" is not supported by the Date field.`,"Please try using another token."].join("\n")),{type:"literal",contentType:"letter"})}(t),s=function(e,t,i){if("digit"!==e)return!1;switch(t){case"year":return Se(i)?"0001"===(0,f.KQ)().set("year",1).format(i):"01"===(0,f.KQ)().set("year",2001).format(i);case"month":return(0,f.KQ)().startOf("year").format(i).length>1;case"day":return(0,f.KQ)().startOf("month").format(i).length>1;case"weekday":return(0,f.KQ)().startOf("week").format(i).length>1;case"hour":return(0,f.KQ)().set("hour",1).format(i).length>1;case"minute":return(0,f.KQ)().set("minute",1).format(i).length>1;case"second":return(0,f.KQ)().set("second",1).format(i).length>1;default:throw new Error("Invalid section type")}}(i.contentType,i.type,t);e.push(Object.assign(Object.assign({},i),{format:t,placeholder:Te(i,t),options:Ne(i,t),hasLeadingZeros:s}))}function Ae(e,t){t&&e.push({type:"literal",contentType:"letter",format:t,placeholder:t,hasLeadingZeros:!1})}function Ne(e,t){switch(e.type){case"month":{const i="letter"===e.contentType?t:"MMMM";let s=(0,f.KQ)().startOf("year");const n=[];for(let e=0;e<12;e++)n.push(s.format(i).toLocaleUpperCase()),s=s.add(1,"months");return n}case"dayPeriod":{const e=(0,f.KQ)().hour(0),i=e.hour(12);return[e.format(t).toLocaleUpperCase(),i.format(t).toLocaleUpperCase()]}case"weekday":{const i="letter"===e.contentType?t:"dddd";let s=(0,f.KQ)().day(0);const n=[];for(let e=0;e<7;e++)n.push(s.format(i).toLocaleUpperCase()),s=s.add(1,"day");return n}}}function Ie(e,t,i){let s=1;const n=[];let r=-1;for(let o=0;o<e.length;o++){const a=e[o];if(!a)continue;const c=De(a,t,i,s,r);if(n.push(c),Oe(a)){for(let e=Math.max(0,r);e<=o;e++){const t=n[e];t&&(t.nextEditableSection=o,-1===t.previousEditableSection&&(t.previousEditableSection=o))}r=o}s+=c.textValue.length}return n}function Oe(e){var t;return null!==(t=Ce[e.type])&&void 0!==t&&t}function De(e,t,i,s,n){const r=Oe(e);let o=e.placeholder;(r&&i[e.type]||"timeZoneName"===e.type)&&(o=t.format(e.format),"digit"===e.contentType&&o.length<e.placeholder.length&&(o=o.padStart(e.placeholder.length,"0"))),o="\u2068"+o+"\u2069";const a=o.length;return Object.assign(Object.assign(Object.assign({},e),{value:we(e,t),textValue:o,start:s,end:s+a,modified:!1,previousEditableSection:n,nextEditableSection:n}),ye(e,t))}function Me(e,t){const i="all"===t||-1===t?0:t,s=e[i];return s&&!Ce[s.type]?s.nextEditableSection:s?i:-1}function Pe(e){let t=(0,f.KQ)(e);return t.isValid()||(t=(0,f.KQ)(Object.assign(Object.assign({},e),{format:void 0}))),t}function Fe(e,t){return Object.keys(e).every((e=>t[e]))}function Ue(e,t){const i=n.useRef(null),[,s]=n.useState({});function r(t){e.setSelectedSections(t),s({})}function o(){var t,n;e.focusSectionInPosition(null!==(n=null===(t=i.current)||void 0===t?void 0:t.selectionStart)&&void 0!==n?n:0),s({})}n.useLayoutEffect((()=>{const t=i.current;if(!t)return;if(null===e.selectedSectionIndexes)return void(t.scrollLeft&&(t.scrollLeft=0));const s=e.sections[e.selectedSectionIndexes.startIndex],n=e.sections[e.selectedSectionIndexes.endIndex];if(s&&n){const e=s.start,i=n.end;e===t.selectionStart&&i===t.selectionEnd||t.setSelectionRange(e,i)}}));const a=n.useMemo((()=>{if(!e.selectedSectionIndexes)return"text";const t=e.sections[e.selectedSectionIndexes.startIndex];return t&&"letter"!==t.contentType?"tel":"text"}),[e.selectedSectionIndexes,e.sections]);return{inputProps:{value:e.text,view:t.view,size:t.size,disabled:e.disabled,hasClear:!e.readOnly&&!e.isEmpty&&t.hasClear,placeholder:t.placeholder,id:t.id,label:t.label,startContent:t.startContent,endContent:t.endContent,pin:t.pin,autoFocus:t.autoFocus,controlRef:i,autoComplete:"off",type:"text",validationState:e.validationState,errorMessage:t.errorMessage,errorPlacement:t.errorPlacement,onUpdate(t){t||e.clearAll()},onFocus(s){var n;if(null===(n=t.onFocus)||void 0===n||n.call(t,s),null!==e.selectedSectionIndexes)return;const a=s.target,c=!i.current;setTimeout((()=>{a&&a===i.current&&(c?e.focusSectionInPosition(0):a.value.length&&Number(a.selectionEnd)-Number(a.selectionStart)===a.value.length?r("all"):o())}))},onBlur(e){var i;null===(i=t.onBlur)||void 0===i||i.call(t,e),r(-1)},onKeyDown(i){var s;null===(s=t.onKeyDown)||void 0===s||s.call(t,i),"ArrowLeft"===i.key?(i.preventDefault(),e.focusPreviousSection()):"ArrowRight"===i.key?(i.preventDefault(),e.focusNextSection()):"Home"===i.key?(i.preventDefault(),e.decrementToMin()):"End"===i.key?(i.preventDefault(),e.incrementToMax()):"ArrowUp"!==i.key||i.altKey?"ArrowDown"!==i.key||i.altKey?"PageUp"===i.key?(i.preventDefault(),e.incrementPage()):"PageDown"===i.key?(i.preventDefault(),e.decrementPage()):"Backspace"===i.key||"Delete"===i.key?(i.preventDefault(),e.clearSection()):"a"===i.key&&(i.ctrlKey||i.metaKey)&&(i.preventDefault(),r("all")):(i.preventDefault(),e.decrement()):(i.preventDefault(),e.increment())},onKeyUp:t.onKeyUp,controlProps:{"aria-label":t["aria-label"]||void 0,"aria-labelledby":t["aria-labelledby"]||void 0,"aria-describedby":t["aria-describedby"]||void 0,"aria-details":t["aria-details"]||void 0,"aria-disabled":e.disabled||void 0,readOnly:e.readOnly,inputMode:a,onClick(){o()},onMouseUp(e){e.preventDefault()},onBeforeInput(t){t.preventDefault();const i=t.data;void 0!==i&&null!==i&&e.onInput(i)},onPaste(t){if(t.preventDefault(),e.readOnly)return;const i=t.clipboardData.getData("text").replace(/[\u2066\u2067\u2068\u2069]/g,"");if(e.selectedSectionIndexes&&e.selectedSectionIndexes.startIndex===e.selectedSectionIndexes.endIndex){const t=e.sections[e.selectedSectionIndexes.startIndex],s=/^\d+$/.test(i),n=/^[a-zA-Z]+$/.test(i);if(Boolean(t&&("digit"===t.contentType&&s||"letter"===t.contentType&&n)))return void e.onInput(i);if(s||n)return}e.setValueFromString(i)}}}}}const He={year:5,month:2,weekday:3,day:7,hour:2,minute:15,second:15};function Be(e){var t,i;const[s,r]=(0,o.P)(e.value,null!==(t=e.defaultValue)&&void 0!==t?t:null,e.onUpdate),a=le(e.value||e.defaultValue||e.placeholderValue),c=e.timeZone||a,l=e=>{r(e?e.timeZone(a):e)},[h,d]=n.useState((()=>j({placeholderValue:e.placeholderValue,timeZone:c}))),u=e.format||"L",g=function(e){const t=e,[i,s]=n.useState((()=>xe(t))),[r,o]=n.useState(t);return t!==r&&(o(t),s(xe(t))),i}(u),p=n.useMemo((()=>g.filter((e=>Ce[e.type])).reduce(((e,t)=>Object.assign(Object.assign({},e),{[t.type]:!0})),{})),[g]),m=n.useState((()=>s?Object.assign({},p):{}));let _=m[0];const v=m[1];s&&!Fe(p,_)&&v(Object.assign({},p)),!s&&Object.keys(p).length>0&&Fe(p,_)&&Object.keys(_).length===Object.keys(p).length&&(_={},v(_),d(j({placeholderValue:e.placeholderValue,timeZone:c})));const C=s&&s.isValid()&&Fe(p,_)?s.timeZone(c):h.timeZone(c),E=function(e,t,i){const[s,r]=n.useState((()=>({value:t,sections:e,validSegments:i,editableSections:Ie(e,t,i)})));e===s.sections&&i===s.validSegments&&t.isSame(s.value)&&t.timeZone()===s.value.timeZone()||r({value:t,sections:e,validSegments:i,editableSections:Ie(e,t,i)});return s}(g,C,_),[b,S]=n.useState(-1),y=n.useMemo((()=>{if(-1===b)return null;if("all"===b)return{startIndex:0,endIndex:E.editableSections.length-1};if("number"===typeof b)return{startIndex:b,endIndex:b};if("string"===typeof b){const e=E.editableSections.findIndex((e=>e.type===b));return{startIndex:e,endIndex:e}}return b}),[b,E.editableSections]);function w(t){e.disabled||e.readOnly||(Fe(p,_)?s&&t.isSame(s)||l(t):(s&&l(null),d(t)))}function R(e){_[e]=!0,_.day&&_.month&&_.year&&p.weekday&&(_.weekday=!0),_.hour&&p.dayPeriod&&(_.dayPeriod=!0),v(Object.assign({},_))}const L=e.validationState||(function(e,t,i){return!!e&&(!(!t||!e.isBefore(t))||!(!i||!i.isBefore(e)))}(s,e.minValue,e.maxValue)?"invalid":void 0)||(s&&(null===(i=e.isDateUnavailable)||void 0===i?void 0:i.call(e,s))?"invalid":void 0);return function(e){const{value:t,validationState:i,displayValue:s,editableSections:r,selectedSectionIndexes:o,selectedSections:a,isEmpty:c,flushAllValidSections:l,flushValidSection:h,setSelectedSections:d,setValue:u,setDate:g,adjustSection:p,setSection:m,getSectionValue:f,setSectionValue:_,createPlaceholder:v,setValueFromString:C}=e,E=n.useRef(""),{hasDate:b,hasTime:S}=n.useMemo((()=>{let e=!1,t=!1;for(const i of r)t||(t=["hour","minute","second"].includes(i.type)),e||(e=["day","month","year"].includes(i.type));return{hasTime:t,hasDate:e}}),[r]);return{value:t,isEmpty:c,displayValue:s,setValue:u,setDate:g,text:(y=r,"\u2066"+y.map((e=>e.textValue)).join("")+"\u2069"),readOnly:e.readOnly,disabled:e.disabled,sections:r,hasDate:b,hasTime:S,selectedSectionIndexes:o,validationState:i,setSelectedSections(e){E.current="",d(e)},focusSectionInPosition(e){const t=this.sections.findIndex((t=>t.end>=e)),i=-1===t?0:t,s=this.sections[i];s&&this.setSelectedSections(Ce[s.type]?i:s.nextEditableSection)},focusNextSection(){var e,t;const i="all"===a?0:a,s=null!==(t=null===(e=this.sections[i])||void 0===e?void 0:e.nextEditableSection)&&void 0!==t?t:-1;-1!==s&&this.setSelectedSections(s)},focusPreviousSection(){var e,t;const i="all"===a?0:a,s=null!==(t=null===(e=this.sections[i])||void 0===e?void 0:e.previousEditableSection)&&void 0!==t?t:-1;-1!==s&&this.setSelectedSections(s)},focusFirstSection(){var e,t;const i=null!==(t=null===(e=this.sections[0])||void 0===e?void 0:e.previousEditableSection)&&void 0!==t?t:-1;-1!==i&&d(i)},focusLastSection(){var e,t;const i=null!==(t=null===(e=this.sections[this.sections.length-1])||void 0===e?void 0:e.nextEditableSection)&&void 0!==t?t:-1;-1!==i&&this.setSelectedSections(i)},increment(){if(this.readOnly||this.disabled)return;E.current="";const e=Me(this.sections,a);-1!==e&&p(e,1)},decrement(){if(this.readOnly||this.disabled)return;E.current="";const e=Me(this.sections,a);-1!==e&&p(e,-1)},incrementPage(){if(this.readOnly||this.disabled)return;E.current="";const e=Me(this.sections,a);-1!==e&&p(e,He[this.sections[e].type]||1)},decrementPage(){if(this.readOnly||this.disabled)return;E.current="";const e=Me(this.sections,a);-1!==e&&p(e,-(He[this.sections[e].type]||1))},incrementToMax(){if(this.readOnly||this.disabled)return;E.current="";const e=Me(this.sections,a);if(-1!==e){const t=this.sections[e];"number"===typeof t.maxValue&&m(e,t.maxValue)}},decrementToMin(){if(this.readOnly||this.disabled)return;E.current="";const e=Me(this.sections,a);if(-1!==e){const t=this.sections[e];"number"===typeof t.minValue&&m(e,t.minValue)}},clearSection(){if(this.readOnly||this.disabled)return;if(E.current="","all"===a)return void this.clearAll();const t=Me(this.sections,a);if(-1===t)return;h(t);const i=this.sections[t],s=j({placeholderValue:e.placeholderValue,timeZone:e.timeZone}).timeZone(e.timeZone),n=f(t);let r=n;if("dayPeriod"===i.type){const e=n.hour()>=12,t=s.hour()>=12;e&&!t?r=n.set("hour",n.hour()-12):!e&&t&&(r=n.set("hour",n.hour()+12))}else{const e=Le(i.type);r=n.set(e,s[e]())}_(t,r)},clearAll(){if(this.readOnly||this.disabled)return;E.current="",l(),null!==t&&g(null);const e=v();u(e)},onInput(e){if(this.readOnly||this.disabled)return;const t=Me(this.sections,a);if(-1===t)return;const i=this.sections[t];let s=E.current+e;const n=n=>{var r,o,a;let c="month"===i.type?n-1:n;const l=0===i.minValue;if("hour"!==i.type||12!==i.minValue&&11!==i.maxValue){if(c>(null!==(r=i.maxValue)&&void 0!==r?r:0)&&(c=Number(e)-("month"===i.type?1:0),s=e,c>(null!==(o=i.maxValue)&&void 0!==o?o:0)))return void(E.current="")}else n>12&&(c=Number(e)),12===i.minValue&&c>1&&(c+=12);const h=c>0||0===c&&l;h&&m(t,c),Number(n+"0")>(null!==(a=i.maxValue)&&void 0!==a?a:0)||s.length>=String(i.maxValue).length?(E.current="",h&&this.focusNextSection()):E.current=s},r=n=>{var r;const o=null!==(r=i.options)&&void 0!==r?r:[];let a=n.toLocaleUpperCase(),c=o.filter((e=>e.startsWith(a)));if(0===c.length&&(n!==e&&(a=e.toLocaleUpperCase(),c=o.filter((e=>e.startsWith(a)))),0===c.length))return void(E.current="");const l=c[0],h=o.indexOf(l);"dayPeriod"===i.type?m(t,1===h?12:0):m(t,h),c.length>1?E.current=s:(E.current="",this.focusNextSection())};switch(i.type){case"day":case"hour":case"minute":case"second":case"year":if(!Number.isInteger(Number(s)))return;n(Number(s));break;case"dayPeriod":r(s);break;case"weekday":case"month":Number.isInteger(Number(s))?n(Number(s)):r(s)}},setValueFromString:e=>(E.current="",C(e))};var y}({value:s,displayValue:C,placeholderValue:e.placeholderValue,timeZone:c,validationState:L,editableSections:E.editableSections,readOnly:e.readOnly,disabled:e.disabled,selectedSectionIndexes:y,selectedSections:b,isEmpty:0===Object.keys(_).length,flushAllValidSections:function(){_={},v({})},flushValidSection:function(e){const t=E.editableSections[e];t&&delete _[t.type],v(Object.assign({},_))},setSelectedSections:S,setValue:w,setDate:l,adjustSection:function(e,t){const i=E.editableSections[e];i&&(_[i.type]?w(function(e,t,i){var s;let n=null!==(s=e.value)&&void 0!==s?s:0;if("dayPeriod"===e.type)n=t.hour()+(t.hour()>=12?-12:12);else{n+=i;const t=e.minValue,s=e.maxValue;if("number"===typeof t&&"number"===typeof s){const e=s-t+1;n=(n-t+e)%e+t}}"year"!==e.type||Se(e.format)||(n=(0,f.KQ)({input:`${n}`.padStart(2,"0"),format:e.format}).year());const r=Le(e.type);return t.set(r,n)}(i,C,t)):(R(i.type),Object.keys(_).length>=Object.keys(p).length&&w(C)))},setSection:function(e,t){const i=E.editableSections[e];i&&(R(i.type),w(function(e,t,i){const s=e.type;switch(s){case"year":return t.set("year",Se(e.format)?i:(0,f.KQ)({input:`${i}`.padStart(2,"0"),format:e.format}).year());case"day":case"weekday":case"month":return t.set(Le(s),i);case"dayPeriod":{const e=t.hour(),s=e>=12;return i>=12===s?t:t.set("hour",s?e-12:e+12)}case"hour":{let s=i;if(12===e.minValue||11===e.maxValue){const e=t.hour()>=12;e||12!==s||(s=0),e&&s<12&&(s+=12)}return t.set("hour",s)}case"minute":case"second":return t.set(s,i)}return t}(i,C,t)))},getSectionValue:function(e){return C},setSectionValue:function(e,t){w(t)},createPlaceholder:function(){return j({placeholderValue:e.placeholderValue,timeZone:c}).timeZone(c)},setValueFromString:function(e){const t=function(e,t,i){let s=Pe({input:e,format:t,timeZone:i});s.isValid()&&i&&!function(e){return/z$/i.test(e)||/[+-]\d\d:\d\d$/.test(e)}(e)&&(s=Y(s,Pe({input:e,format:t})));return s}(e,u,c);return!!t.isValid()&&(l(t),!0)}})}const We=l("date-field");function Ve(e){var{className:t}=e,i=(0,me.Tt)(e,["className"]);const r=Be(i),{inputProps:o}=Ue(r,i),[c,l]=n.useState(!1),{focusWithinProps:d}=(0,a.R)({onFocusWithinChange(e){l(e)}});return(0,s.jsxs)("div",Object.assign({className:We(null,t),style:i.style},d,{children:[(0,s.jsx)(u.k,Object.assign({},o,{value:r.isEmpty&&!c&&i.placeholder?"":o.value})),(0,s.jsx)(h,{name:i.name,value:r.value,toStringValue:e=>{var t;return null!==(t=null===e||void 0===e?void 0:e.toISOString())&&void 0!==t?t:""},onReset:e=>{r.setDate(e)},disabled:r.disabled,form:i.form})]}))}const ze=l("mobile-calendar");function Ge({props:e,state:t}){var i,n;let r="date";return t.hasTime&&t.hasDate?r="datetime-local":t.hasTime&&(r="time"),(0,s.jsx)("input",{className:ze(),disabled:e.disabled,type:r,value:Ke(t.dateFieldState.value,r),id:e.id,min:Ke(null===(i=e.minValue)||void 0===i?void 0:i.timeZone(t.timeZone),r),max:Ke(null===(n=e.maxValue)||void 0===n?void 0:n.timeZone(t.timeZone),r),tabIndex:-1,onChange:i=>{var s,n;if(e.readOnly)return;const o=i.target.value;if(o){const i=(0,f.KQ)({input:o,format:je(r),timeZone:"system"}).timeZone(t.timeZone,!0);let a=t.hasDate?i:j({placeholderValue:null===(s=e.placeholderValue)||void 0===s?void 0:s.timeZone(t.timeZone),timeZone:t.timeZone});a=t.hasTime?Y(a,i):t.value?Y(a,t.value.timeZone(t.timeZone)):Y(a,j({placeholderValue:null===(n=e.placeholderValue)||void 0===n?void 0:n.timeZone(t.timeZone),timeZone:t.timeZone})),t.setValue(a)}else t.setValue(null)}})}function je(e){switch(e){case"time":return"HH:mm";case"datetime-local":return"YYYY-MM-DDTHH:mm";default:return"YYYY-MM-DD"}}function Ke(e,t){if(!e)return"";const i=je(t);return e.format(i)}const Ye=l("stub-button");function qe({size:e,icon:t}){return(0,s.jsx)("span",{className:Ye({size:e}),children:(0,s.jsx)("span",{className:Ye("icon"),children:(0,s.jsx)(p.I,{data:t})})})}function $e(...e){const t=Object.assign({},e[0]);for(let i=1;i<e.length;i++){const s=e[i];if(s)for(const e of Object.keys(s)){const i=t[e],n=s[e];"function"===typeof i&&"function"===typeof n&&e.startsWith("on")&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=Qe(i,n):t[e]="className"===e&&"string"===typeof i&&"string"===typeof n?i+" "+n:"controlProps"===e&&"object"===typeof i&&"object"===typeof n?$e(i,n):void 0===n?i:n}}return t}function Qe(...e){return(...t)=>{for(const i of e)"function"===typeof i&&i(...t)}}const Xe=JSON.parse('{"Calendar":"Calendar","Formula input mode":"Formula input mode"}'),Ze=JSON.parse('{"Calendar":"\u041a\u0430\u043b\u0435\u043d\u0434\u0430\u0440\u044c","Formula input mode":"\u0420\u0435\u0436\u0438\u043c \u0432\u0432\u043e\u0434\u0430 \u0444\u043e\u0440\u043c\u0443\u043b\u044b"}'),Je=(0,_.N)({en:Xe,ru:Ze},`${c}relative-date-picker`);function et(e,t){var{onFocus:i,onBlur:s}=t,r=(0,me.Tt)(t,["onFocus","onBlur"]);const{mode:c,setMode:l,datePickerState:h,relativeDateState:d}=e,[u,g]=n.useState("relative"===c?d.lastCorrectDate:h.dateFieldState.displayValue),[p,f]=n.useState(d.lastCorrectDate);p!==d.lastCorrectDate&&(f(d.lastCorrectDate),g(d.lastCorrectDate));const[_,v]=n.useState(h.dateFieldState.displayValue);h.dateFieldState.displayValue.isSame(_,"day")||(v(h.dateFieldState.displayValue),g(h.dateFieldState.displayValue));const{focusWithinProps:C}=(0,a.R)({onFocusWithin:i,onBlurWithin:s,onFocusWithinChange(t){t||e.setActive(!1)}}),[E,b]=(0,o.P)(void 0,!1,r.onOpenChange);!e.isActive&&E&&b(!1);const S={onFocus:()=>{e.isActive||(e.setActive(!0),b(!0))},errorMessage:r.errorMessage,errorPlacement:r.errorPlacement,controlProps:{onClick:()=>{e.disabled||E||(e.setActive(!0),b(!0))},role:"combobox","aria-expanded":E}},{inputProps:y}=Ue(h.dateFieldState,Object.assign(Object.assign({},r),{value:void 0,defaultValue:void 0,onUpdate:void 0})),{inputProps:w}=function(e,t){const[i,s]=n.useState(e.lastCorrectDate),[r,o]=n.useState(e.lastCorrectDate);return i!==e.lastCorrectDate&&(s(e.lastCorrectDate),o(e.lastCorrectDate)),{inputProps:{size:t.size,autoFocus:t.autoFocus,value:e.text,onUpdate:e.setText,disabled:e.disabled,hasClear:t.hasClear,validationState:e.validationState,errorMessage:t.errorMessage,errorPlacement:t.errorPlacement,label:t.label,id:t.id,startContent:t.startContent,endContent:t.endContent,pin:t.pin,view:t.view,placeholder:t.placeholder,onKeyDown:t.onKeyDown,onKeyUp:t.onKeyUp,onBlur:t.onBlur,onFocus:t.onFocus,controlProps:{"aria-label":t["aria-label"]||void 0,"aria-labelledby":t["aria-labelledby"]||void 0,"aria-describedby":t["aria-describedby"]||void 0,"aria-details":t["aria-details"]||void 0,"aria-disabled":e.disabled||void 0,readOnly:e.readOnly}},calendarProps:{size:"s"===t.size?"m":t.size,readOnly:!0,value:e.parsedDate,focusedValue:r,onFocusUpdate:o},timeInputProps:{size:t.size,readOnly:!0,value:e.lastCorrectDate,format:"LTS"}}}(d,Object.assign(Object.assign({},r),{value:void 0,defaultValue:void 0,onUpdate:void 0}));let R=r.validationState;R||(R="relative"===c?d.validationState:h.dateFieldState.validationState);const L=n.useRef(null),T=(0,W.N)(L,"relative"===c?w.controlRef:y.controlRef),x=n.useRef(null);function k(){setTimeout((()=>{var e;null===(e=x.current)||void 0===e||e.focus()}))}function A(){setTimeout((()=>{var e;null===(e=L.current)||void 0===e||e.focus({preventScroll:!0})}))}const N=n.useRef(null);return{groupProps:Object.assign(Object.assign({ref:N,tabIndex:-1,role:"group"},C),{onKeyDown:e=>{!e.altKey||"ArrowDown"!==e.key&&"ArrowUp"!==e.key||(e.preventDefault(),e.stopPropagation(),b(!0),k())}}),fieldProps:$e(S,"relative"===c?w:y,"absolute"===c&&h.dateFieldState.isEmpty&&!e.isActive&&r.placeholder?{value:""}:void 0,{controlRef:T,validationState:R}),modeSwitcherProps:{size:m(r.size),disabled:e.readOnly||e.disabled,view:"flat-secondary",style:{zIndex:2,marginInlineEnd:2},selected:"relative"===c,extraProps:{"aria-label":Je("Formula input mode")},onClick:()=>{if(l("relative"===c?"absolute":"relative"),"relative"===c){const e=h.value;e&&g(e)}else d.parsedDate&&g(d.parsedDate);A()}},calendarButtonProps:{size:m(r.size),disabled:e.disabled,extraProps:{"aria-label":Je("Calendar"),"aria-haspopup":"dialog","aria-expanded":E},view:"flat-secondary",onClick:()=>{e.setActive(!0),b(!E),E||k()}},popupProps:{open:E,onEscapeKeyDown:()=>{b(!1),A()},onOutsideClick:e=>{var t;e.target&&!(null===(t=N.current)||void 0===t?void 0:t.contains(e.target))&&b(!1)},onTransitionExited:()=>{g("relative"===c?d.lastCorrectDate:h.dateFieldState.displayValue)}},calendarProps:{ref:x,size:"s"===r.size?"m":r.size,readOnly:r.readOnly,value:e.selectedDate,onUpdate:t=>{h.setDateValue(t),e.datePickerState.hasTime||(b(!1),A())},focusedValue:u,onFocusUpdate:g,minValue:r.minValue,maxValue:r.maxValue},timeInputProps:{value:h.timeValue,onUpdate:h.setTimeValue,format:h.timeFormat,readOnly:e.readOnly,disabled:e.disabled,timeZone:r.timeZone,hasClear:r.hasClear,size:r.size}}}const tt=function({getPlaceholderTime:e,mergeDateTime:t,setTimezone:i,getDateTime:s,useDateFieldState:r}){return function(a){var c,l;const{disabled:h,readOnly:d}=a,[u,g]=(0,o.P)(a.open,null!==(c=a.defaultOpen)&&void 0!==c&&c,a.onOpenChange),p=g,[m,f]=(0,o.P)(a.value,null!==(l=a.defaultValue)&&void 0!==l?l:null,a.onUpdate),[_,v]=n.useState(null),[C,E]=n.useState(null),b=le(s(a.value)||s(a.defaultValue)||a.placeholderValue),S=a.timeZone||b;let y=_,w=C;const R=a.format||"L",L=(e,s)=>{h||d||(f(i(t(e,s),b)),v(null),E(null))},T=r(Object.assign(Object.assign({},a),{value:m,onUpdate(e){e?L(e,e):f(null)},disabled:h,readOnly:d,validationState:a.validationState,minValue:a.minValue,maxValue:a.maxValue,isDateUnavailable:a.isDateUnavailable,format:R,placeholderValue:a.placeholderValue,timeZone:S})),x=n.useMemo((()=>{if(!T.hasTime)return;const e=[],t=T.sections.find((e=>"hour"===e.type));t&&e.push(t.format);const i=T.sections.find((e=>"minute"===e.type));i&&e.push(i.format);const s=T.sections.find((e=>"second"===e.type));s&&e.push(s.format);const n=T.sections.find((e=>"dayPeriod"===e.type));return e.join(":")+(n?` ${n.format}`:"")}),[T.hasTime,T.sections]);m&&(y=i(m,S),T.hasTime&&(w=i(m,S)));return T.hasTime&&!w&&(w=T.displayValue),{value:m,setValue(e){a.readOnly||a.disabled||f(e?i(e,b):null)},dateValue:y,timeValue:w,setDateValue:e=>{if(h||d)return;const t=!T.hasTime;T.hasTime?w||t?L(e,w||e):v(e):L(e,e),t&&p(!1,"ValueSelected")},setTimeValue:t=>{if(h||d)return;const i=null!==t&&void 0!==t?t:e(a.placeholderValue,S);y?L(y,i):E(i)},disabled:h,readOnly:d,format:R,hasDate:T.hasDate,hasTime:T.hasTime,timeFormat:x,timeZone:S,isOpen:u,setOpen(t,i){!t&&!m&&y&&T.hasTime&&L(y,w||e(a.placeholderValue,a.timeZone)),p(t,i)},dateFieldState:T}}}({getPlaceholderTime:function(e,t){return j({placeholderValue:e,timeZone:t})},mergeDateTime:Y,setTimezone:(e,t)=>e.timeZone(t),getDateTime:function(e){if(e)return"start"in e&&"end"in e?e.start:e},useDateFieldState:Be});function it(e){var t;const[i,s]=(0,o.P)(e.value,null!==(t=e.defaultValue)&&void 0!==t?t:null,e.onUpdate),[r,a]=n.useState("relative"===(null===i||void 0===i?void 0:i.type)?"relative":"absolute"),[c,l]=n.useState(i);i!==c&&(l(i),i&&i.type!==r&&a(i.type));const[h,d]=n.useState("absolute"===(null===i||void 0===i?void 0:i.type)?i.value:null);"absolute"===(null===i||void 0===i?void 0:i.type)&&i.value!==h&&d(i.value);const u=tt({value:h,onUpdate:e=>{d(e),"absolute"===(null===i||void 0===i?void 0:i.type)&&(null===e||void 0===e?void 0:e.isSame(i.value))||s(e?{type:"absolute",value:e}:null)},format:e.format,placeholderValue:e.placeholderValue,timeZone:e.timeZone,disabled:e.disabled,readOnly:e.readOnly,minValue:e.minValue,maxValue:e.maxValue}),[g,p]=n.useState("relative"===(null===i||void 0===i?void 0:i.type)?i.value:null);"relative"===(null===i||void 0===i?void 0:i.type)&&i.value!==g&&p(i.value);const m=function(e){var t;const[i,s]=(0,o.P)(e.value,null!==(t=e.defaultValue)&&void 0!==t?t:null,e.onUpdate),[r,a]=n.useState(null!==i&&void 0!==i?i:"");i&&i!==r&&a(i);const c=n.useMemo((()=>{var t;return i&&null!==(t=(0,f.bQ)(i,{timeZone:e.timeZone,roundUp:e.roundUp}))&&void 0!==t?t:null}),[i,e.timeZone,e.roundUp]),[l,h]=n.useState(c);c&&c!==l&&h(c);const d=e.validationState||r&&!c?"invalid":void 0;return{value:i,setValue(t){e.disabled||e.readOnly||s(t)},text:r,setText:t=>{if(!e.disabled&&!e.readOnly)if(a(t),(0,f.eP)(t)){const e=(0,f.bQ)(t);e&&e.isValid()?s(t):s(null)}else s(null)},parsedDate:c,lastCorrectDate:l,validationState:d,disabled:e.disabled,readOnly:e.readOnly}}({value:g,onUpdate:e=>{p(e),"relative"===(null===i||void 0===i?void 0:i.type)&&e===i.value||s(e?{type:"relative",value:e}:null)},disabled:e.disabled,readOnly:e.readOnly,timeZone:u.timeZone,roundUp:e.roundUp});i||("absolute"===r&&h?d(null):"relative"===r&&g&&p(null));const _="relative"===r?m.parsedDate:u.dateFieldState.displayValue,[v,C]=n.useState(!1);return{value:i,setValue(t){e.readOnly||e.disabled||s(t)},disabled:e.disabled,readOnly:e.readOnly,mode:r,setMode(t){e.readOnly||e.disabled||t===r||(a(t),"relative"===t?(!i&&g||i)&&s(g?{type:"relative",value:g}:null):(!i&&h||i)&&s(h?{type:"absolute",value:h}:null))},datePickerState:u,relativeDateState:m,selectedDate:_,isActive:v,setActive:C}}const st=l("relative-date-picker");function nt(e){var t;const i=it(e),{groupProps:o,fieldProps:a,modeSwitcherProps:c,calendarButtonProps:l,popupProps:m,calendarProps:f,timeInputProps:_}=et(i,e),v=n.useRef(null),C=(0,W.N)(v,o.ref),E=(0,r.I)(),b=i.datePickerState.hasTime&&!i.datePickerState.hasDate;return(0,s.jsxs)("div",Object.assign({},o,{ref:C,className:st(null,e.className),children:[E&&"absolute"===i.mode&&(0,s.jsx)(Ge,{state:i.datePickerState,props:{id:e.id,disabled:e.disabled,readOnly:e.readOnly,placeholderValue:e.placeholderValue,timeZone:e.timeZone}}),(0,s.jsx)(u.k,Object.assign({},a,{controlProps:Object.assign(Object.assign({},a.controlProps),{disabled:E&&"absolute"===i.mode,className:st("input",{mobile:E&&"absolute"===i.mode})}),hasClear:e.hasClear&&!(E&&"absolute"===i.mode),startContent:(0,s.jsx)(g.$,Object.assign({},c,{children:(0,s.jsx)(p.I,{data:H})})),endContent:(0,s.jsxs)(n.Fragment,{children:[!E&&!b&&(0,s.jsx)(g.$,Object.assign({},l,{children:(0,s.jsx)(p.I,{data:d})})),!E&&b&&(0,s.jsx)(qe,{size:l.size,icon:B}),E&&"absolute"===i.mode&&(0,s.jsx)(qe,{size:l.size,icon:b?B:d})]})})),(0,s.jsx)(h,{name:e.name,value:null===(t=i.value)||void 0===t?void 0:t.type,disabled:i.disabled,form:e.form}),(0,s.jsx)(h,{name:e.name,value:i.value,toStringValue:e=>function(e){if(!e)return"";if("relative"===e.type)return e.value;return e.value.toISOString()}(e),onReset:e=>{i.setValue(e)},disabled:i.disabled,form:e.form}),!E&&!b&&(0,s.jsx)(U.z,Object.assign({},m,{anchorRef:v,children:(0,s.jsxs)("div",{className:st("popup-content"),children:["function"===typeof e.children?e.children(f):(0,s.jsx)(pe,Object.assign({},f)),i.datePickerState.hasTime&&(0,s.jsx)("div",{className:st("time-field-wrapper"),children:(0,s.jsx)(Ve,Object.assign({},_))})]})}))]}))}var rt=i(23871),ot=i(40091),at=i(73633),ct=i(87924),lt=i.n(ct),ht=i(81824),dt=i.n(ht),ut=i(61199),gt=i.n(ut),pt=i(69220),mt=i(27629);const ft=JSON.parse('{"label_empty":"No data","label-actions":"Actions","label-row-select":"Select"}'),_t=JSON.parse('{"label_empty":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445","label-actions":"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044f","label-row-select":"\u0412\u044b\u0431\u0440\u0430\u0442\u044c"}'),vt=(0,_.N)({en:ft,ru:_t},"Table");function Ct(e){(0,mt.m)(`[Table] Physical values (left, right) of "${e}" property are deprecated. Use logical values (start, end) instead.`)}function Et(e,t){return"left"===e?(Ct(t),"start"):"right"===e?(Ct(t),"end"):e}const bt=(0,pt.om)("table");class St extends n.Component{constructor(){super(...arguments),this.state={activeScrollElement:"scrollContainer",columnsStyles:Array.from(this.props.columns,(()=>({}))),columnHeaderRefs:Array.from(this.props.columns,(()=>n.createRef()))},this.tableRef=n.createRef(),this.scrollContainerRef=n.createRef(),this.horizontalScrollBarRef=n.createRef(),this.horizontalScrollBarInnerRef=n.createRef(),this.renderRow=(e,t)=>{const{columns:i,isRowDisabled:s,onRowClick:r,onRowMouseEnter:o,onRowMouseLeave:a,onRowMouseDown:c,getRowClassNames:l,verticalAlign:h,edgePadding:d,wordWrap:u,getRowDescriptor:g}=this.props,{columnsStyles:p}=this.state,m=null===g||void 0===g?void 0:g(e,t),f=(null===m||void 0===m?void 0:m.disabled)||(null===s||void 0===s?void 0:s(e,t))||!1,_=(null===m||void 0===m?void 0:m.classNames)||(null===l||void 0===l?void 0:l(e,t))||[],v=Boolean(!f&&r);return n.createElement("tr",{key:St.getRowId(this.props,e,t),onClick:!f&&r?r.bind(null,e,t):void 0,onMouseEnter:!f&&o?o.bind(null,e,t):void 0,onMouseLeave:!f&&a?a.bind(null,e,t):void 0,onMouseDown:!f&&c?c.bind(null,e,t):void 0,className:bt("row",{disabled:f,interactive:v,"vertical-align":h},_.join(" "))},i.map(((i,s)=>{const{id:r,align:o,primary:a,className:c,sticky:l}=i,h=St.getBodyCellContent(i,e,t),g=Et(o,"column.align"),m=Et(l,"column.sticky");return n.createElement("td",{key:r,style:p[s],className:bt("cell",{align:g,primary:a,sticky:m,"edge-padding":d,"word-wrap":u},c)},h)})))},this.handleScrollContainerMouseenter=()=>{this.setState({activeScrollElement:"scrollContainer"})},this.handleScrollContainerScroll=()=>{"scrollContainer"===this.state.activeScrollElement&&this.horizontalScrollBarRef.current&&this.scrollContainerRef.current&&(this.horizontalScrollBarRef.current.scrollLeft=this.scrollContainerRef.current.scrollLeft)},this.handleHorizontalScrollBarMouseenter=()=>{this.setState({activeScrollElement:"scrollBar"})},this.handleHorizontalScrollBarScroll=()=>{"scrollBar"===this.state.activeScrollElement&&this.horizontalScrollBarRef.current&&this.scrollContainerRef.current&&(this.scrollContainerRef.current.scrollLeft=this.horizontalScrollBarRef.current.scrollLeft)}}static getRowId(e,t,i){const{data:s,getRowId:n,getRowDescriptor:r}=e,o=null!==i&&void 0!==i?i:s.indexOf(t),a=null===r||void 0===r?void 0:r(t,o);return void 0!==(null===a||void 0===a?void 0:a.id)?a.id:"function"===typeof n?n(t,o):String(n&&n in t?t[n]:o)}static getHeadCellContent(e){const{id:t,name:i}=e;let s;return s="function"===typeof i?i():"string"===typeof i?i:t,s}static getBodyCellContent(e,t,i){const{id:s,template:n,placeholder:r}=e;let o,a;return o="function"===typeof r?r(t,i):null!==r&&void 0!==r?r:"\u2014","function"===typeof n?a=n(t,i):"string"===typeof n?a=lt()(t,n):dt()(t,s)&&(a=lt()(t,s)),[void 0,null,""].includes(a)&&o?o:a}static getDerivedStateFromProps(e,t){return e.columns.length===t.columnHeaderRefs.length?null:{columnHeaderRefs:Array.from(e.columns,(()=>n.createRef()))}}componentDidMount(){this.props.stickyHorizontalScroll&&(this.tableResizeObserver=new ResizeObserver((e=>{var t;const{contentRect:i}=e[0];null===(t=this.horizontalScrollBarInnerRef.current)||void 0===t||t.style.setProperty("width",`${i.width}px`)})),this.tableRef.current&&this.tableResizeObserver.observe(this.tableRef.current),this.scrollContainerRef.current&&(this.scrollContainerRef.current.addEventListener("scroll",this.handleScrollContainerScroll),this.scrollContainerRef.current.addEventListener("mouseenter",this.handleScrollContainerMouseenter)),this.horizontalScrollBarRef.current&&(this.horizontalScrollBarRef.current.addEventListener("scroll",this.handleHorizontalScrollBarScroll),this.horizontalScrollBarRef.current.addEventListener("mouseenter",this.handleHorizontalScrollBarMouseenter))),this.columnsResizeObserver=new ResizeObserver((e=>{window.requestAnimationFrame((()=>{Array.isArray(e)&&e.length&&this.updateColumnStyles()}))})),this.tableRef.current&&this.columnsResizeObserver.observe(this.tableRef.current),this.updateColumnStyles()}componentDidUpdate(e){this.props.columns!==e.columns&&this.updateColumnStyles()}componentWillUnmount(){this.props.stickyHorizontalScroll&&(this.tableResizeObserver&&this.tableResizeObserver.disconnect(),this.scrollContainerRef.current&&(this.scrollContainerRef.current.removeEventListener("scroll",this.handleScrollContainerScroll),this.scrollContainerRef.current.removeEventListener("mouseenter",this.handleScrollContainerMouseenter)),this.horizontalScrollBarRef.current&&(this.horizontalScrollBarRef.current.removeEventListener("scroll",this.handleHorizontalScrollBarScroll),this.horizontalScrollBarRef.current.removeEventListener("mouseenter",this.handleHorizontalScrollBarMouseenter))),this.columnsResizeObserver&&this.columnsResizeObserver.disconnect()}render(){const{columns:e,stickyHorizontalScroll:t,className:i,qa:s}=this.props,r=e.some((({primary:e})=>e));return n.createElement("div",{className:bt({"with-primary":r,"with-sticky-scroll":t},i),"data-qa":s},t?n.createElement(n.Fragment,null,n.createElement("div",{ref:this.scrollContainerRef,className:bt("scroll-container")},this.renderTable()),this.renderHorizontalScrollBar()):this.renderTable())}renderHead(){const{columns:e,edgePadding:t,wordWrap:i}=this.props,{columnsStyles:s}=this.state;return n.createElement("thead",{className:bt("head")},n.createElement("tr",{className:bt("row")},e.map(((e,r)=>{const{id:o,align:a,primary:c,sticky:l,className:h}=e,d=Et(a,"column.align"),u=Et(l,"column.sticky"),g=St.getHeadCellContent(e);return n.createElement("th",{key:o,ref:this.state.columnHeaderRefs[r],style:s[r],className:bt("cell",{align:d,primary:c,sticky:u,"edge-padding":t,"word-wrap":i},h)},g)}))))}renderBody(){const{data:e}=this.props;return n.createElement("tbody",{className:bt("body")},e.length>0?e.map(this.renderRow):this.renderEmptyRow())}renderTable(){const{width:e="auto"}=this.props;return n.createElement("table",{ref:this.tableRef,className:bt("table",{width:e})},this.renderHead(),this.renderBody())}renderEmptyRow(){const{columns:e,emptyMessage:t}=this.props;return n.createElement("tr",{className:bt("row",{empty:!0})},n.createElement("td",{className:bt("cell"),colSpan:e.length},t||vt("label_empty")))}renderHorizontalScrollBar(){const{stickyHorizontalScroll:e,stickyHorizontalScrollBreakpoint:t=0}=this.props;return n.createElement("div",{ref:this.horizontalScrollBarRef,className:bt("horizontal-scroll-bar",{"sticky-horizontal-scroll":e}),style:{bottom:`${t}px`},"data-qa":"sticky-horizontal-scroll-breakpoint-qa"},n.createElement("div",{ref:this.horizontalScrollBarInnerRef,className:bt("horizontal-scroll-bar-inner")}))}updateColumnStyles(){this.setState((e=>{const t=e.columnHeaderRefs.map((e=>null===e.current?void 0:e.current.getBoundingClientRect().width));return{columnsStyles:this.props.columns.map(((e,i)=>this.getColumnStyles(i,t)))}}))}getColumnStyles(e,t){const{columns:i}=this.props,s=i[e],n={};if("string"===typeof s.width)return{maxWidth:0,width:s.width};if("undefined"!==typeof s.width&&(n.width=s.width),!s.sticky)return n;const r="left"===s.sticky||"start"===s.sticky?t.slice(0,e):t.slice(e+1);return n["left"===s.sticky||"start"===s.sticky?"insetInlineStart":"insetInlineEnd"]=r.reduce(((e,t)=>gt()(t)?e+t:e),0),n}}St.defaultProps={edgePadding:!0};var yt=i(84375);const wt=l("relative-range-date-picker-presets-doc"),Rt=[{id:"title",name:()=>E("Range")},{id:"from",name:()=>E("From")},{id:"to",name:()=>E("To")}],Lt=[{get title(){return E("Last 5 minutes")},from:"now - 5m",to:"now"},{get title(){return E("From start of day")},from:"now/d",to:"now"},{get title(){return E("This week")},from:"now/w",to:"now/w"},{get title(){return E("From start of week")},from:"now/w",to:"now"},{get title(){return E("Previous month")},from:"now - 1M/M",to:"now - 1M/M"}];function Tt({size:e,docs:t}){return(0,s.jsx)(St,{columns:Rt,data:t,className:wt("table",{size:e})})}function xt({className:e,size:t,docs:i}){return(0,s.jsx)(yt.A,{className:wt(null,e),tooltipContentClassName:wt("content"),hasArrow:!1,content:(0,s.jsx)(Tt,{size:t,docs:i}),children:(0,s.jsx)(g.$,{className:wt("button"),view:"flat-secondary",size:m(t),children:(0,s.jsx)(p.I,{data:at.A})})})}function kt({className:e,size:t,docs:i}){const[r,o]=n.useState(!1);return(0,s.jsxs)("div",{className:wt(null,e),children:[(0,s.jsx)(g.$,{className:wt("button"),view:"flat-secondary",size:"l",onClick:()=>{o(!0)},children:(0,s.jsx)(p.I,{data:at.A})}),(0,s.jsx)(F.c,{visible:r,onClose:()=>o(!1),children:(0,s.jsx)(Tt,{size:t,docs:i})})]})}function At({className:e,size:t,docs:i=Lt}){const n=(0,r.I)();return Array.isArray(i)&&0!==i.length?n?(0,s.jsx)(kt,{className:e,size:t,docs:i}):(0,s.jsx)(xt,{className:e,size:t,docs:i}):null}const Nt=l("relative-range-date-picker-presets");function It({className:e,size:t="m",minValue:i,withTime:r,onChoosePreset:o,presetTabs:a,docs:c}){var l,h;const d=n.useMemo((()=>function(e,{minValue:t}={}){return e.reduce(((e,i)=>{const s=x(i.presets,t);return s.length&&e.push(Object.assign(Object.assign({},i),{presets:s})),e}),[])}(null!==a&&void 0!==a?a:function({withTime:e,minValue:t}){const i=[],s={id:"main",title:E("Main"),presets:[]},n=b;e&&n.unshift(...S),s.presets=x(n,t),s.presets.length>0&&i.push(s);const r={id:"other",title:E("Other"),presets:x(y,t)};return r.presets.length>0&&i.push(r),i}({withTime:r}),{minValue:i})),[r,i,a]),[u,g]=n.useState(null===(l=d[0])||void 0===l?void 0:l.id);if(0===d.length)return null;const p=null!==(h=d.find((e=>e.id===u)))&&void 0!==h?h:d[0];return p?(p.id!==u&&g(p.id),(0,s.jsxs)("div",{className:Nt({size:t},e),children:[(0,s.jsxs)("div",{className:Nt("tabs"),children:[(0,s.jsx)(rt.t,{activeTab:u,onSelectTab:g,items:d,size:"s"===t?"m":t}),(0,s.jsx)(At,{className:Nt("doc"),size:t,docs:c})]}),(0,s.jsx)("div",{className:Nt("content"),children:(0,s.jsx)(Dt,{presets:p.presets,onChoosePreset:o,size:t})})]})):null}const Ot={s:28,m:28,l:32,xl:36};function Dt({presets:e,onChoosePreset:t,size:i="m"}){const r=n.useRef(null);return n.useEffect((()=>{var e,t;const i=r.current,s=null===(t=null===(e=r.current)||void 0===e?void 0:e.refContainer.current)||void 0===t?void 0:t.node;if(i&&s)try{s.setAttribute("tabindex","0"),s.setAttribute("class",Nt("list-container"));const e=()=>{null===i.getActiveItem()&&i.activateItem(0,!0)};return s.addEventListener("focus",e),()=>{s.removeEventListener("focus",e)}}catch(n){}}),[]),(0,s.jsx)(ot.B,{ref:r,className:Nt("list"),itemClassName:Nt("item"),items:e,filterable:!1,virtualized:!1,renderItem:e=>e.title,itemHeight:Ot[i],onItemClick:e=>{t(e.from,e.to)}})}var Mt=i(24555),Pt=i(98089);const Ft=JSON.parse('{"default":"Default","system":"Browser time"}'),Ut=JSON.parse('{"default":"\u0414\u0435\u0444\u043e\u043b\u0442\u043d\u0430\u044f","system":"\u0411\u0440\u0430\u0443\u0437\u0435\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f"}'),Ht=(0,_.N)({en:Ft,ru:Ut},`${c}relative-range-date-picker-zones`),Bt={},Wt=(0,f.Pn)().reduce(((e,t)=>{const[i]=t.split("/");if(i){let s=Bt[i];s||(s={label:i,options:[]},Bt[i]=s,e.push(s)),s.options.push({value:t})}return e}),[]);Wt.unshift({value:"UTC"}),Wt.unshift({value:"system",get content(){return Ht("system")}}),Wt.unshift({value:"default",get content(){return Ht("default")}});const Vt=l("relative-range-date-picker-zones");function zt(e){const t=k(e.value),i=e.isMobile?"xl":e.size;return(0,s.jsx)(Mt.l,{disabled:e.disabled,value:[t],options:Wt,size:i,onUpdate:t=>{const i=t[0];i&&e.onUpdate(i)},width:"max",renderControl:n=>{const r="system"===t||"default"===t?Ht(t):t;return(0,s.jsxs)(g.$,{onClick:n.onClick,ref:n.ref,view:"flat-secondary",width:"max",pin:"clear-clear",size:i,disabled:e.disabled,extraProps:{"aria-haspopup":"listbox","aria-expanded":n.open,onKeyDown:n.onKeyDown},className:Vt("control"),children:[`${r} (${A(t)})`,(0,s.jsx)(p.I,{className:Vt("control-icon"),data:z.A,size:e.isMobile?20:16})]})},renderOption:({value:e,content:t})=>{const i=null!==t&&void 0!==t?t:e;return(0,s.jsxs)("span",{className:Vt("item"),children:[(0,s.jsxs)("span",{className:Vt("item-title"),title:e,children:[i,"\xa0"]}),(0,s.jsx)(Pt.E,{color:"secondary",children:A(e)})]})},filterable:!0})}const Gt=JSON.parse('{"Value is incorrect.":"Value is incorrect.","Value is required.":"Value is required.","\\"From\\" can\'t be after \\"To\\".":"\\"From\\" can\'t be after \\"To\\".","From":"From","To":"To","Apply":"Apply"}'),jt=JSON.parse('{"Value is incorrect.":"\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e.","Value is required.":"Value is required.","\\"From\\" can\'t be after \\"To\\".":"\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \xab\u041e\u0442\xbb \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u0437\u0436\u0435 \u0447\u0435\u043c \xab\u0414\u043e\xbb.","From":"\u041e\u0442","To":"\u0414o","Apply":"\u041f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c"}'),Kt=(0,_.N)({en:Gt,ru:jt},`${c}relative-range-date-picker-dialog`),Yt=JSON.parse('{"Value must be {minValue} or later.":"{{value}} must be {{minValue}} or later.","Value must be {maxValue} or earlier.":"{{value}} must be {{maxValue}} or earlier.","Selected date unavailable.":"Selected date unavailable.","Value is required.":"{{value}} is required."}'),qt=JSON.parse('{"Value must be {minValue} or later.":"{value} \u0434\u043e\u043b\u0436\u043d\u043e \u0440\u043e\u0432\u043d\u044f\u0442\u044c\u0441\u044f {minValue} \u0438\u043b\u0438 \u0431\u044b\u0442\u044c \u043f\u043e\u0437\u0436\u0435.","Value must be {maxValue} or earlier.":"{value} \u0434\u043e\u043b\u0436\u043d\u043e \u0440\u043e\u0432\u043d\u044f\u0442\u044c\u0441\u044f {maxValue} \u0438\u043b\u0438 \u0431\u044b\u0442\u044c \u0440\u0430\u043d\u044c\u0448\u0435.","Selected date unavailable.":"\u0412\u044b\u0431\u0440\u0430\u043d\u043d\u0430\u044f \u0434\u0430\u0442\u0430 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430.","Value is required.":"{value} \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e."}'),$t=(0,_.N)({en:Yt,ru:qt},`${c}validation`);function Qt(e,t,i,s,n,r="Value"){const o=e&&i&&i.isBefore(e),a=e&&t&&e.isBefore(t),c=e&&(null===s||void 0===s?void 0:s(e))||!1,l=o||a||c,h=[];return l&&(a&&t&&h.push($t("Value must be {minValue} or later.",{minValue:t.timeZone(n).format(),value:r})),o&&i&&h.push($t("Value must be {maxValue} or earlier.",{maxValue:i.timeZone(n).format(),value:r})),c&&h.push($t("Selected date unavailable."))),{isInvalid:l,errors:h}}function Xt(e,t,i={}){var s;if(!e&&!t)return null;const{isInvalid:n}=Zt(e,t,i.allowNullableValues,i.minValue,i.maxValue,i.isDateUnavailable,null!==(s=i.timeZone)&&void 0!==s?s:"default");return n?null:{start:e,end:t}}function Zt(e,t,i,s,n,r,o){if(!e&&!t)return{isInvalid:!1};const a=e?(0,f.bQ)(e.value,{timeZone:o}):null,c=t?(0,f.bQ)(t.value,{timeZone:o,roundUp:!0}):null,l=Qt(a,s,n,r,o);a||i||(l.isInvalid=!0,l.errors.push(Kt("Value is required.")));const h=Qt(c,s,n,r,o);return c||i||(h.isInvalid=!0,h.errors.push(Kt("Value is required."))),a&&c&&c.isBefore(a)&&(l.isInvalid=!0,l.errors.push(Kt('"From" can\'t be after "To".'))),{isInvalid:l.isInvalid||h.isInvalid,startValidationResult:l,endValidationResult:h}}const Jt=l("relative-range-date-picker-dialog");function ei({props:e,state:t,open:i,onClose:n,focusInput:r,isMobile:o,anchorRef:a,className:c}){return o?(0,s.jsx)(F.c,{visible:i,onClose:n,contentClassName:Jt("content",{mobile:!0,size:"xl"},c),children:(0,s.jsx)(ti,Object.assign({},e,{size:"xl",state:t,onApply:n}))}):(0,s.jsx)(U.z,{open:i,onEscapeKeyDown:()=>{n(),r()},onClose:n,role:"dialog",anchorRef:a,contentClassName:Jt("content",{size:e.size},c),autoFocus:!0,focusTrap:!0,children:(0,s.jsx)(ti,Object.assign({},e,{state:t,onApply:n}))})}function ti(e){var t,i,r,o,a,c,l;const h=function(e,t){var i,s,r,o;const{withApplyButton:a,allowNullableValues:c}=t,[l,h]=n.useState(null!==(s=null===(i=e.value)||void 0===i?void 0:i.start)&&void 0!==s?s:null),[d,u]=n.useState(null!==(o=null===(r=e.value)||void 0===r?void 0:r.end)&&void 0!==o?o:null),[g,p]=n.useState(e.timeZone),m=a?g:e.timeZone,f=n.useMemo((()=>Zt(l,d,c,t.minValue,t.maxValue,t.isDateUnavailable,m)),[c,d,t.isDateUnavailable,t.maxValue,t.minValue,l,m]);return{start:l,end:d,timeZone:m,setStart:function(i){h(i),a||e.setValue(Xt(i,d,Object.assign(Object.assign({},t),{timeZone:m})),m)},setEnd:function(i){u(i),a||e.setValue(Xt(l,i,Object.assign(Object.assign({},t),{timeZone:m})),m)},setRange:function(i,s){h(i),u(s),a||e.setValue(Xt(i,s,Object.assign(Object.assign({},t),{timeZone:m})),m)},setTimeZone:function(i){p(i),a||e.setValue(Xt(l,d,Object.assign(Object.assign({},t),{timeZone:i})),i)},applyValue:function(){e.setValue(Xt(l,d,Object.assign(Object.assign({},t),{timeZone:m})),m)},isInvalid:f.isInvalid,startValidation:f.startValidationResult,endValidation:f.endValidationResult}}(e.state,e),d=(null===(t=e.placeholderValue)||void 0===t?void 0:t.timeZone(e.state.timeZone))||(0,f.KQ)({timeZone:e.state.timeZone}),u={timeZone:e.state.timeZone,format:e.format,minValue:e.minValue,maxValue:e.maxValue,hasClear:e.allowNullableValues,readOnly:e.readOnly,size:e.size,errorPlacement:"inside"};return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:Jt("pickers"),children:[(0,s.jsx)(nt,Object.assign({},u,{validationState:(null===(i=h.startValidation)||void 0===i?void 0:i.isInvalid)?"invalid":void 0,errorMessage:(null===(o=null===(r=h.startValidation)||void 0===r?void 0:r.errors)||void 0===o?void 0:o.join("\n"))||Kt("Value is incorrect."),placeholderValue:d.startOf("day"),label:Kt("From"),value:h.start,onUpdate:h.setStart})),(0,s.jsx)(nt,Object.assign({},u,{validationState:(null===(a=h.endValidation)||void 0===a?void 0:a.isInvalid)?"invalid":void 0,errorMessage:(null===(l=null===(c=h.endValidation)||void 0===c?void 0:c.errors)||void 0===l?void 0:l.join("\n"))||Kt("Value is incorrect."),placeholderValue:d.endOf("day"),label:Kt("To"),value:h.end,onUpdate:h.setEnd,roundUp:!0}))]}),e.withApplyButton&&!e.readOnly?(0,s.jsx)(g.$,{disabled:h.isInvalid,size:e.size,onClick:()=>{h.applyValue(),e.onApply()},className:Jt("apply"),width:"max",children:Kt("Apply")}):null,e.withPresets&&!e.readOnly?(0,s.jsx)(It,{size:e.size,presetTabs:e.presetTabs,onChoosePreset:(t,i)=>{h.setRange({type:"relative",value:t},{type:"relative",value:i}),e.withApplyButton||e.onApply()},minValue:e.minValue,docs:e.docs,className:Jt("presets")}):null,e.withZonesList?(0,s.jsx)("div",{className:Jt("zone"),children:(0,s.jsx)(zt,{value:h.timeZone,onUpdate:h.setTimeZone,disabled:e.readOnly,size:e.size})}):null]})}const ii=JSON.parse('{"\\"From\\"":"\\"From\\"","\\"From\\" is required.":"\\"From\\" is required.","\\"To\\"":"\\"To\\"","\\"To\\" is required.":"\\"To\\" is required.","\\"From\\" can\'t be after \\"To\\".":"\\"From\\" can\'t be after \\"To\\".","to":"to"}'),si=JSON.parse('{"\\"From\\"":"\xab\u041e\u0442\xbb","\\"From\\" is required.":"\xab\u041e\u0442\xbb \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e.","\\"To\\"":"\xab\u0414\u043e\xbb","\\"To\\" is required.":"\xab\u0414\u043e\xbb \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e.","\\"From\\" can\'t be after \\"To\\".":"\xab\u041e\u0442\xbb \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u0437\u0436\u0435 \u0447\u0435\u043c \xab\u0414\u043e\xbb.","to":"\u0434\u043e"}'),ni=(0,_.N)({en:ii,ru:si},`${c}relative-range-date-picker`);function ri(e){var t,i;const[s,r]=(0,o.P)(e.value,null!==(t=e.defaultValue)&&void 0!==t?t:null),[a,c]=(0,o.P)(e.timeZone,null!==(i=e.defaultTimeZone)&&void 0!==i?i:"default",e.onUpdateTimeZone),l=n.useMemo((()=>function(e,t,i,s,n,r){if(!e)return{isInvalid:!1,errors:[]};const o=e.start?(0,f.bQ)(e.start.value,{timeZone:r}):null,a=e.end?(0,f.bQ)(e.end.value,{timeZone:r,roundUp:!0}):null,c=Qt(o,i,s,n,r,ni('"From"'));o||t||(c.isInvalid=!0,c.errors.push(ni('"From" is required.')));const l=Qt(a,i,s,n,r,ni('"To"'));a||t||(l.isInvalid=!0,l.errors.push(ni('"To" is required.')));o&&a&&a.isBefore(o)&&(c.isInvalid=!0,c.errors.push(ni('"From" can\'t be after "To".')));return{isInvalid:c.isInvalid||l.isInvalid,errors:c.errors.concat(l.errors)}}(s,e.allowNullableValues,e.minValue,e.maxValue,e.isDateUnavailable,a)),[s,e.allowNullableValues,e.isDateUnavailable,e.maxValue,e.minValue,a]);return Object.assign({value:s,timeZone:a,setValue(t,i){var n;r(t),c(i),(s!==t||s&&a!==i)&&(null===(n=e.onUpdate)||void 0===n||n.call(e,t,i))}},l)}const oi=l("relative-range-date-picker");function ai(e){const t=ri(e),i=(0,r.I)(),c=n.useRef(null),l=n.useRef(null),[d,u]=n.useState(!1),[g,p]=(0,o.P)(void 0,!1,e.onOpenChange),{focusWithinProps:m}=(0,a.R)({isDisabled:e.disabled,onFocusWithin:t=>{var i;d||null===(i=e.onFocus)||void 0===i||i.call(e,t)},onBlurWithin:t=>{var i;g||(u(!1),null===(i=e.onBlur)||void 0===i||i.call(e,t))}});return(0,s.jsxs)("div",Object.assign({ref:c},m,{className:oi(null,e.className),style:e.style,children:[(0,s.jsx)(P,{props:e,state:t,open:g,isMobile:i,ref:l,onClick:()=>{e.disabled||g||(u(!0),p(!0))},onKeyDown:t=>{e.disabled||!t.altKey||"ArrowDown"!==t.key&&"ArrowUp"!==t.key||(t.preventDefault(),p(!0))},onClickCalendar:()=>{u(!0),p(!g)},onFocus:()=>{d||(u(!0),p(!0))},onUpdate:i=>{e.readOnly||i||t.setValue(null,"default")}}),(0,s.jsx)(h,{name:e.name,form:e.form,value:t.value,toStringValue:e=>{var t,i;return null!==(i=null===(t=null===e||void 0===e?void 0:e.start)||void 0===t?void 0:t.type)&&void 0!==i?i:""},disabled:e.disabled}),(0,s.jsx)(h,{name:e.name,form:e.form,value:t.value,toStringValue:e=>{var t;return ci(null!==(t=null===e||void 0===e?void 0:e.start)&&void 0!==t?t:null)},disabled:e.disabled}),(0,s.jsx)(h,{name:e.name,form:e.form,value:t.value,toStringValue:e=>{var t,i;return null!==(i=null===(t=null===e||void 0===e?void 0:e.end)||void 0===t?void 0:t.type)&&void 0!==i?i:""},disabled:e.disabled}),(0,s.jsx)(h,{name:e.name,form:e.form,value:t.value,toStringValue:e=>{var t;return ci(null!==(t=null===e||void 0===e?void 0:e.end)&&void 0!==t?t:null)},disabled:e.disabled}),(0,s.jsx)(h,{name:e.name,form:e.form,onReset:e=>{t.setValue(e.value,e.timeZone)},value:{value:t.value,timeZone:t.timeZone},toStringValue:e=>e.timeZone,disabled:e.disabled}),(0,s.jsx)(ei,{state:t,props:e,open:g,onClose:()=>{p(!1)},focusInput:()=>{setTimeout((()=>{var e;null===(e=l.current)||void 0===e||e.focus({preventScroll:!0})}))},anchorRef:c,isMobile:i,className:e.popupClassName})]}))}function ci(e){return e?"relative"===e.type?e.value:e.value.toISOString():""}},92159:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.53 11.78a.75.75 0 0 1-1.06 0l-2.5-2.5a.75.75 0 0 1 1.06-1.06l1.22 1.22V1.75a.75.75 0 0 1 1.5 0v7.69l1.22-1.22a.75.75 0 1 1 1.06 1.06zM1.75 13.5a.75.75 0 0 0 0 1.5h12.5a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"}))},58272:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.323 12.383a5.5 5.5 0 0 1-7.706-7.706zm1.06-1.06L4.677 3.617a5.5 5.5 0 0 1 7.706 7.706M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0",clipRule:"evenodd"}))},53472:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.97 12.53a.75.75 0 1 0 1.06-1.06l-3.5-3.5a.75.75 0 0 0-1.06 0l-3.5 3.5a.75.75 0 1 0 1.06 1.06L8 9.56zm0-5a.75.75 0 1 0 1.06-1.06l-3.5-3.5a.75.75 0 0 0-1.06 0l-3.5 3.5a.75.75 0 0 0 1.06 1.06L8 4.56z",clipRule:"evenodd"}))},64280:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14M6.44 4.54c.43-.354.994-.565 1.56-.565 1.217 0 2.34.82 2.34 2.14 0 .377-.079.745-.298 1.1-.208.339-.513.614-.875.867-.217.153-.326.257-.379.328-.038.052-.038.07-.038.089a.75.75 0 0 1-1.5 0c0-.794.544-1.286 1.056-1.645.28-.196.402-.332.46-.425a.54.54 0 0 0 .073-.313c0-.3-.243-.641-.839-.641a1 1 0 0 0-.608.224c-.167.137-.231.286-.231.417a.75.75 0 0 1-1.5 0c0-.673.345-1.22.78-1.577M9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0",clipRule:"evenodd"}))},45345:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.5 8a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0M5.25 6.25a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1v3.5a1 1 0 0 1-1 1h-3.5a1 1 0 0 1-1-1z",clipRule:"evenodd"}))},10800:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.5 8a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0M6.53 5.47a.75.75 0 0 0-1.06 1.06L6.94 8 5.47 9.47a.75.75 0 1 0 1.06 1.06L8 9.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L9.06 8l1.47-1.47a.75.75 0 1 0-1.06-1.06L8 6.94z",clipRule:"evenodd"}))},65872:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.423 1A3.577 3.577 0 0 1 15 4.577c0 .27-.108.53-.3.722l-.528.529-1.971 1.971-5.059 5.059a3 3 0 0 1-1.533.82l-2.638.528a1 1 0 0 1-1.177-1.177l.528-2.638a3 3 0 0 1 .82-1.533l5.059-5.059 2.5-2.5c.191-.191.451-.299.722-.299m-2.31 4.009-4.91 4.91a1.5 1.5 0 0 0-.41.766l-.38 1.903 1.902-.38a1.5 1.5 0 0 0 .767-.41l4.91-4.91a2.08 2.08 0 0 0-1.88-1.88m3.098.658a3.6 3.6 0 0 0-1.878-1.879l1.28-1.28c.995.09 1.788.884 1.878 1.88z",clipRule:"evenodd"}))},96589:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 6.5a2 2 0 1 0 0-4 2 2 0 0 0 0 4M8 8a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7m1 1.225a.71.71 0 0 0-.679-.72A11 11 0 0 0 8 8.5c-3.85 0-7 2-7 4A2.5 2.5 0 0 0 3.5 15h2.25a.75.75 0 0 0 0-1.5H3.5a1 1 0 0 1-1-1c0-.204.22-.809 1.32-1.459C4.838 10.44 6.32 10 8 10q.088 0 .175.002c.442.008.825-.335.825-.777m3.59.307c.434.102.776.444.879.878l-2.823 2.822a1.5 1.5 0 0 1-.848.425l-.53.075.075-.53a1.5 1.5 0 0 1 .425-.848zm-.883 4.76 3.068-3.067a.77.77 0 0 0 .225-.543A2.683 2.683 0 0 0 12.318 8a.77.77 0 0 0-.543.224l-3.068 3.069a3 3 0 0 0-.848 1.697l-.17 1.19a1 1 0 0 0 1.13 1.131l1.191-.17a3 3 0 0 0 1.697-.848",clipRule:"evenodd"}))},594:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("g",{clipPath:"url(#a)"},s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.756 10.164c1.665-.962 1.665-3.366 0-4.329L6.251.918C4.585-.045 2.5 1.158 2.5 3.083v9.834c0 1.925 2.085 3.128 3.751 2.164z",clipRule:"evenodd"})),s.createElement("defs",null,s.createElement("clipPath",{id:"a"},s.createElement("path",{fill:"currentColor",d:"M0 0h16v16H0z"}))))},93844:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("g",{clipPath:"url(#a)"},s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.235 1a.75.75 0 0 1 .74.56l2.034 7.726 1.09-1.908A.75.75 0 0 1 13.75 7h1.5a.75.75 0 0 1 0 1.5h-1.065l-1.784 3.122a.75.75 0 0 1-1.376-.181l-1.71-6.496-2.083 9.466a.75.75 0 0 1-1.446.07L3.544 7.55l-.65 1.085A.75.75 0 0 1 2.25 9H.75a.75.75 0 1 1 0-1.5h1.075l1.282-2.136a.75.75 0 0 1 1.357.155l1.898 5.868 2.156-9.798A.75.75 0 0 1 9.235 1",clipRule:"evenodd"})),s.createElement("defs",null,s.createElement("clipPath",{id:"a"},s.createElement("path",{fill:"currentColor",d:"M0 0h16v16H0z"}))))},1956:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.5 3h7A1.5 1.5 0 0 1 13 4.5v7a1.5 1.5 0 0 1-1.5 1.5h-7A1.5 1.5 0 0 1 3 11.5v-7A1.5 1.5 0 0 1 4.5 3m-3 1.5a3 3 0 0 1 3-3h7a3 3 0 0 1 3 3v7a3 3 0 0 1-3 3h-7a3 3 0 0 1-3-3zm10.092 1.46a.75.75 0 0 0-1.184-.92L7.43 8.869l-1.4-1.4A.75.75 0 0 0 4.97 8.53l2 2a.75.75 0 0 0 1.122-.07z",clipRule:"evenodd"}))},31819:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.5 3A1.5 1.5 0 0 0 3 4.5v1.75a.75.75 0 0 1-1.5 0V4.5a3 3 0 0 1 3-3h1.75a.75.75 0 0 1 0 1.5zM9 2.25a.75.75 0 0 1 .75-.75h1.75a3 3 0 0 1 3 3v1.75a.75.75 0 0 1-1.5 0V4.5A1.5 1.5 0 0 0 11.5 3H9.75A.75.75 0 0 1 9 2.25M2.25 9a.75.75 0 0 1 .75.75v1.75A1.5 1.5 0 0 0 4.5 13h1.75a.75.75 0 0 1 0 1.5H4.5a3 3 0 0 1-3-3V9.75A.75.75 0 0 1 2.25 9m11.5 0a.75.75 0 0 1 .75.75v1.75a3 3 0 0 1-3 3H9.75a.75.75 0 0 1 0-1.5h1.75a1.5 1.5 0 0 0 1.5-1.5V9.75a.75.75 0 0 1 .75-.75",clipRule:"evenodd"}))},46649:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 3.5H4A1.5 1.5 0 0 0 2.5 5v6A1.5 1.5 0 0 0 4 12.5h8a1.5 1.5 0 0 0 1.5-1.5V5A1.5 1.5 0 0 0 12 3.5M4 2a3 3 0 0 0-3 3v6a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V5a3 3 0 0 0-3-3zm.47 8.53a.75.75 0 0 1 0-1.06L5.94 8 4.47 6.53a.75.75 0 0 1 1.06-1.06l2 2a.75.75 0 0 1 0 1.06l-2 2a.75.75 0 0 1-1.06 0M8.75 9.5a.75.75 0 0 0 0 1.5h2.5a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"}))},64470:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M9 2H7a.5.5 0 0 0-.5.5V3h3v-.5A.5.5 0 0 0 9 2m2 1v-.5a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2V3H2.251a.75.75 0 0 0 0 1.5h.312l.317 7.625A3 3 0 0 0 5.878 15h4.245a3 3 0 0 0 2.997-2.875l.318-7.625h.312a.75.75 0 0 0 0-1.5zm.936 1.5H4.064l.315 7.562A1.5 1.5 0 0 0 5.878 13.5h4.245a1.5 1.5 0 0 0 1.498-1.438zm-6.186 2v5a.75.75 0 0 0 1.5 0v-5a.75.75 0 0 0-1.5 0m3.75-.75a.75.75 0 0 1 .75.75v5a.75.75 0 0 1-1.5 0v-5a.75.75 0 0 1 .75-.75",clipRule:"evenodd"}))},73253:(e,t,i)=>{"use strict";i.d(t,{og:()=>L,SO:()=>me});var s=i(7252);function n(e,t){const i=document.createElement("button");return i.innerText=e,i.className=`paranoid-button paranoid-button_${t}`,i}const r="ParanoidC";function o(e,t){const i=document.getElementById(e);if(!i)throw new Error(`Not found element with id ${e}`);i.style.position="relative";const o=n("+","plus"),a=n("-","minus"),c=n("1:1","normal"),l=function(e,t){const i=document.createElement("canvas");i.setAttribute("id",r),i.setAttribute("width",String(e.offsetWidth)),i.setAttribute("height",String(e.offsetHeight)),e.appendChild(i);const n=t.colors||{};return new s.fabric.Canvas(r,{selection:!1,backgroundColor:n.fill,defaultCursor:"grab"})}(i,t),h=function(e,t,i,s){const n=document.createElement("div");n.className="paranoid-controls";const r=document.createElement("style");return r.innerText=function(e){return`\n .paranoid-controls {\n position: absolute;\n top: 10px;\n right: 10px;\n }\n .paranoid-button {\n margin-left: 12px;\n border-radius: 4px;\n height: 36px;\n width: 36px;\n line-height: 13px;\n font-family: Arial, sans-serif;\n font-size: 13px;\n text-align: center;\n padding: 0;\n box-shadow: 0px 5px 6px ${e.nodeShadow};\n border: 1px solid ${e.buttonBorderColor};\n background-color: ${e.nodeFill};\n color: ${e.textColor};\n cursor: pointer;\n }\n .paranoid-button:focus {\n outline: none;\n }\n .paranoid-button:active {\n border: 1px solid ${e.buttonBorderColor};\n }\n .paranoid-button_plus {\n margin-left: 0;\n border-left: none;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n .paranoid-button_minus {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n`}(s),n.appendChild(r),n.appendChild(t),n.appendChild(e),n.appendChild(i),n}(o,a,c,t.colors);return i.appendChild(h),function(e,t,i,s,n){const r=n.minZoom||.2,o=n.zoomStep||.2,a=n.maxZoom||2,c=n.startZoom||1;e.setZoom(c),i.addEventListener("click",(t=>{t.preventDefault(),t.stopPropagation();let i=e.getZoom();i-=o,i<r&&(i=r),e.setZoom(i)})),t.addEventListener("click",(t=>{t.preventDefault(),t.stopPropagation();let i=e.getZoom();i+=o,i>a&&(i=a),e.setZoom(i)})),s.addEventListener("click",(t=>{t.preventDefault(),t.stopPropagation(),e.setZoom(1)}))}(l,o,a,c,t),function(e){let t=!1,i=0,s=0;e.on("mouse:down",(n=>{n.target||(e.setCursor("grabbing"),t=!0,i=n.pointer.x,s=n.pointer.y)})),e.on("mouse:move",(n=>{t&&(e.viewportTransform[4]+=n.pointer.x-i,e.viewportTransform[5]+=n.pointer.y-s,e.setCursor("grabbing"),e.getObjects().forEach((e=>e.setCoords())),e.requestRenderAll(),i=n.pointer.x,s=n.pointer.y)})),e.on("mouse:up",(()=>{t&&(e.setCursor("grab"),t=!1)}))}(l),l}const a={success:"rgba(59, 201, 53, 0.75)",error:"#ff0400",warning:"#ff7700",errorBackground:"rgba(235,50,38,0.08)",warningBackground:"rgba(255,219,77,0.3)",mute:"rgba(0,0,0,0.15)",stroke:"rgba(0,0,0,0.3)",fill:"#fafafa",nodeFill:"#ffffff",nodeShadow:"rgba(0,0,0,0.15)",titleColor:"#000000",textColor:"rgba(0,0,0,0.7)",buttonBorderColor:"rgba(0,0,0,0.07)",groupBorderColor:"rgba(2, 123, 243, 0.14)",groupFill:"rgba(2, 123, 243, 0.08)",titleHoverColor:"#004080",nodeHover:"#f3f3f3",specialHover:"rgba(2,123,243,1)"},c={hasControls:!1,hasRotatingPoint:!1,lockMovementX:!0,lockMovementY:!0,selectable:!1,hoverCursor:"default",subTargetCheck:!0},l="Arial, sans-serif",h=13,d=1.38;var u;!function(e){e.Group="GROUP"}(u||(u={}));i(32133);class g{constructor(e,t){this.children=[],this.members=[],this.data=e,this.canvasNode=t}add(e,t){const i=new g(e,t);i.addParent(this),this.children.push(i)}addNode(e){e.addParent(this),this.children.push(e)}addNodes(e){e.forEach((e=>{e.addParent(this)})),this.children=this.children.concat(e)}addCanvasNode(e){this.canvasNode=e}addShapeInstance(e){this.shapeInstance=e}hasChildren(){return this.children.length>0}addParent(e){this.parent=e}getLeftSibling(){if(!this.parent)return;const e=this.parent.children.findIndex((e=>e===this));return this.parent.children[e-1]}getRightSibling(){if(!this.parent)return;const e=this.parent.children.findIndex((e=>e===this));return this.parent.children[e+1]}}class p{constructor(e){this.nodesWithChildren=[],this.root=e}traverseBF(e){const t=[this.root];for(;t.length>0;){const i=t.shift();i&&(t.push(...i.children),e(i))}}traverseDF(e){const t=[this.root];for(;t.length;){const i=t.shift();let s=!1;i&&(i.children.length>0?t.unshift(...i.children):s=!0,e(i,s))}}traverseByLevels(e){let t=0,i=this.root.children;for(e([this.root],0);i.length>0;)t++,e(i,t),i=i.reduce(((e,t)=>e.concat(t.children)),[])}getTreeDepth(){let e=0;return this.traverseByLevels(((t,i)=>{e=i})),e}setCanvas(e){this.canvas=e}setNodesWithChildren(e){this.nodesWithChildren=e}}class m{constructor(e,t){this.nodes=new Map,this.data=e,this.opts=t}parseData(){const e=this.data,t=this.getGroups(e),i=[...e.nodes];t.forEach(((e,t)=>{i.push({name:t,children:e,type:u.Group})}));const s=this.findSources(i,e.links);let n=[],r={},o=new Map;return s.forEach((t=>{const s=this.mapNodesToTree(t,i,e.links);r=Object.assign(Object.assign({},s.groups),r),o=new Map([...o,...s.notGroupMemebersChildren]),n.push(s.tree)})),o.forEach(((e,t)=>{r[t]&&r[t].addNodes(e)})),n=n.reduce(((e,t)=>{const i=t.root.data.group;return i?r[i].members.push(t):e.push(t),e}),[]),n}getGroups({nodes:e}){const t=new Map;return e.forEach((e=>{if(e.group){const i=t.get(e.group);i?i.push(e.name):t.set(e.group,[e.name])}})),t}findSources(e,t){const i=t.map((({to:e})=>e));return e.reduce(((e,t)=>(i.includes(t.name)||e.push(t),e)),[])}mapNodesToTree(e,t,i){var s;const n=this.createNode(e),r={};this.appendGoup(r,n);const o=t.map((e=>{const t=i.reduce(((t,i)=>(i.from===e.name&&t.push(i.to),t)),[]);return Object.assign(Object.assign({},e),{children:t})})),a=this.getAppender(o,r)(n,(null===(s=o.find((t=>t.name===e.name)))||void 0===s?void 0:s.children)||[]);return{tree:new p(n),groups:r,notGroupMemebersChildren:a}}appendGoup(e,t){const i=t.data;t.data.type===u.Group&&(e[i.name]=t)}getAppender(e,t){const i=new Map,s=(n,r)=>{const o=r.map((i=>{const n=e.find((({name:e})=>e===i)),r=this.createNode(n);return this.appendGoup(t,r),n.children.length>0&&s(r,n.children),r})),a=n.data.group,c=Boolean(a),l=[],h=[];if(o.forEach((e=>{const t=e.data.group;c?a===t?l.push(e):h.push(e):l.push(e)})),n.addNodes(l),a&&h.length>0){const e=i.get(a);e?e.push(...h):i.set(a,h)}return i};return s}createNode(e){const t=new g(e);return this.nodes.set(e.name,t),t}}class f extends CustomEvent{}class _ extends EventTarget{dispatch(e,t){this.dispatchEvent(new f(e,{detail:t}))}}function v(e){switch(e){case 0:return 0;case 1:return 16;default:return 24}}function C(e,t,i,s,n,r){const o=function(e,t,i,s,n,r,o){const a=new Map,c=new Map,l=new Map,h=[];return s.traverseBF((s=>{const{object:n,width:r,height:c}=function(e,t,i,s,n,r,o){var a,c;const l=null!==(a=t.shapeInstance)&&void 0!==a?a:r.node(e,{top:i,left:s},t,n,o),h=null!==(c=t.canvasNode)&&void 0!==c?c:l.getShape();return t.addShapeInstance(l),t.addCanvasNode(h),{object:h,top:i,left:s,width:h.getScaledWidth(),height:h.getScaledHeight()}}(e,s,0,0,t,i,o);a.set(s,{width:r,height:c}),h.push(n)})),function e(t){const{width:i}=a.get(t);let s=i,n=0;if(t.parent&&1===t.parent.children.length&&c.has(t.parent)){const e=c.get(t.parent);s<e&&(s=e)}return c.set(t,s),t.children.length>0&&(n=16*(t.children.length-1)+t.children.reduce(((t,i)=>t+e(i)),0),l.set(t,n)),s=Math.max(s,n),c.set(t,s),s}(s.root),function e(t,i,s){let n=s,r=s;for(const o of t){const{width:t,height:s}=a.get(o),h=c.get(o),d=i,u=n+Math.floor(h/2)-Math.floor(t/2);if(o.canvasNode.set({top:d,left:u}),o.canvasNode.setCoords(),n=n+h+16,o.children.length){let t=0;const n=l.get(o);n<h&&(t=Math.floor((h-n)/2));const a=i+s+v(o.children.length),c=r+t;e(o.children,a,c)}r=n}}([s.root],n,r),h}(e.canvas,s,n,e,t,i,r);let a=0,c=0;return o.forEach((e=>{a=Math.max(a,(e.left||0)+e.getScaledWidth()),c=Math.max(c,(e.top||0)+e.getScaledHeight())})),{nodes:o,bottom:c,right:a}}function E(e){const t=e.canvasNode;if(t){const e=t.left||0,i=(t.top||0)+t.getScaledHeight();return{x:e+t.getScaledWidth()/2,y:i}}return{x:0,y:0}}function b(e){const t=e.canvasNode;if(t){const e=t.left||0,i=t.top||0;return{x:e+t.getScaledWidth()/2,y:i}}return{x:0,y:0}}class S{constructor(e,t,i,s){this.canvas=o(e,t),this.parser=new m(i,t),this.opts=t,this.shapes=s,this.em=new _,this.trees=[],this.nodes=[],this.links=[],this.listenNodeResize()}render(){requestAnimationFrame((()=>{this.trees=this.parser.parseData(),this.renderIntoCanvas(),this.opts.initialZoomFitsCanvas&&this.zoomObjectsToFitCanvas()}))}destroy(){const e=document.getElementById(r);e&&(this.canvas.dispose(),e.remove())}getEventEmmiter(){return this.em}getGraphNode(e){return this.parser.nodes.get(e)}getOpts(){return this.opts}getColors(){return this.opts.colors}getCanvas(){return this.canvas}renderIntoCanvas(){this.nodes.forEach((e=>{this.canvas.remove(e)})),this.nodes=[],this.links.forEach((e=>{this.canvas.remove(e)})),this.links=[];const e=this.canvas.getHeight()||0,t=this.canvas.getWidth()||0;let i=e,n=t;const r=this.opts.initialTop;let o=this.opts.initialLeft;this.trees.forEach((e=>{e.setCanvas(this.canvas);const{nodes:t,bottom:s,right:a}=C(e,r,o,this.opts,this.shapes,this.em);o=a+15,i=Math.max(s,i),n=Math.max(a,n),this.nodes.push(...t),this.canvas.add(...t)}));const a=function(e,t){const i=t.colors,n=[];return e.data.links.reduce(((t,{from:r})=>{const o=e.nodes.get(r);if(o&&1===o.children.length&&!n.includes(r)){const{x:e,y:a}=E(o),l=new s.fabric.Path(`M ${e} ${a}\n V ${a+16}`,{fill:"",stroke:i.stroke,strokeWidth:1});t.push(new s.fabric.Group([l],Object.assign({},c))),n.push(r)}if(o&&o.children.length>1&&!n.includes(r)){const{x:e,y:a}=E(o),l=12,h=6,d=[new s.fabric.Path(`M ${e} ${a}\n V ${a+l}`,{fill:"",stroke:i.stroke,strokeWidth:1})],{x:u,y:g}=b(o.children[0]),{x:p,y:m}=b(o.children[o.children.length-1]),f=new s.fabric.Path(`M ${u} ${g}\n V ${g-l+h}\n Q ${u} ${g-l} ${u+h} ${g-l}\n H ${p-h}\n Q ${p} ${m-l} ${p} ${m+h-l}\n V ${m}\n `,{fill:"",stroke:i.stroke,strokeWidth:1});d.push(f),o.children.forEach(((e,t)=>{if(0===t||t===o.children.length-1)return;const{x:n,y:r}=b(e),a=new s.fabric.Path(`M ${n} ${r}\n V ${r-l}\n `,{fill:"",stroke:i.stroke,strokeWidth:1});d.push(a)})),t.push(new s.fabric.Group(d,Object.assign({},c))),n.push(r)}return t}),[])}(this.parser,this.opts);this.links.push(...a),this.canvas.add(...a),this.bringNodesToFront()}bringNodesToFront(){var e;const t=null===(e=this.parser)||void 0===e?void 0:e.nodes;t&&t.forEach((e=>{e.canvasNode&&e.canvasNode.bringToFront()}))}listenNodeResize(){this.em.addEventListener("node:resize",(()=>{this.renderIntoCanvas()}))}zoomObjectsToFitCanvas(){let e=0,t=0;this.canvas.getObjects().forEach((i=>{const{top:s,left:n,height:r,width:o}=i.getBoundingRect(),a=n+o,c=s+r;a>e&&(e=a),c>t&&(t=c)})),e+=this.opts.initialLeft,t+=this.opts.initialTop;const i=this.canvas.getWidth()/e,n=this.canvas.getHeight()/t,r=Math.min(i,n);if(r<1){this.canvas.setZoom(r);const e=this.opts.initialTop*r,t=this.opts.initialLeft*r,i=this.opts.initialTop-e,n=this.opts.initialLeft-t;this.canvas.relativePan(new s.fabric.Point(n,i))}}}function y(){const e={success:"--g-color-text-positive",error:"--g-color-text-danger",warning:"--g-color-text-warning",errorBackground:"--g-color-base-danger-light",warningBackground:"--g-color-base-warning-light",mute:"--g-color-line-generic",stroke:"--g-color-text-hint",fill:"--g-color-base-generic-ultralight",nodeFill:"--g-color-base-float",nodeShadow:"--g-color-sfx-shadow",titleColor:"--g-color-text-primary",textColor:"--g-color-text-complementary",buttonBorderColor:"--g-color-line-generic",groupBorderColor:"--g-color-base-info-light-hover",groupFill:"--g-color-base-info-light",titleHoverColor:"--g-color-text-link-hover",nodeHover:"--g-color-base-float-hover",specialHover:"--g-color-line-brand"},t=getComputedStyle(document.body),i=Object.keys(e).reduce(((i,s)=>{const n=t.getPropertyValue(e[s]).replace(/ /g,"");return n&&(i[s]=n),i}),{});return Object.assign(Object.assign(Object.assign({},a),i),{getCommonColor:e=>t.getPropertyValue(`--g-color-${e}`).replace(/ /g,"")})}const w={linkType:"arrow"};function R(e=w){const t=e.colors||{};return Object.assign(Object.assign({initialTop:10,initialLeft:10},e),{colors:Object.assign(Object.assign(Object.assign({},a),y()),t)})}function L(e,t,i,s){const n=R(i);return new S(e,n,t,s)}var T=i(59284),x=(i(43781),i(62060),function(){if("undefined"!==typeof Map)return Map;function e(e,t){var i=-1;return e.some((function(e,s){return e[0]===t&&(i=s,!0)})),i}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var i=e(this.__entries__,t),s=this.__entries__[i];return s&&s[1]},t.prototype.set=function(t,i){var s=e(this.__entries__,t);~s?this.__entries__[s][1]=i:this.__entries__.push([t,i])},t.prototype.delete=function(t){var i=this.__entries__,s=e(i,t);~s&&i.splice(s,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var i=0,s=this.__entries__;i<s.length;i++){var n=s[i];e.call(t,n[1],n[0])}},t}()}()),k="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,A="undefined"!==typeof i.g&&i.g.Math===Math?i.g:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")(),N="function"===typeof requestAnimationFrame?requestAnimationFrame.bind(A):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var I=["top","right","bottom","left","width","height","size","weight"],O="undefined"!==typeof MutationObserver,D=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var i=!1,s=!1,n=0;function r(){i&&(i=!1,e()),s&&a()}function o(){N(r)}function a(){var e=Date.now();if(i){if(e-n<2)return;s=!0}else i=!0,s=!1,setTimeout(o,t);n=e}return a}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,i=t.indexOf(e);~i&&t.splice(i,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){k&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),O?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){k&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,i=void 0===t?"":t;I.some((function(e){return!!~i.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),M=function(e,t){for(var i=0,s=Object.keys(t);i<s.length;i++){var n=s[i];Object.defineProperty(e,n,{value:t[n],enumerable:!1,writable:!1,configurable:!0})}return e},P=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||A},F=z(0,0,0,0);function U(e){return parseFloat(e)||0}function H(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];return t.reduce((function(t,i){return t+U(e["border-"+i+"-width"])}),0)}function B(e){var t=e.clientWidth,i=e.clientHeight;if(!t&&!i)return F;var s=P(e).getComputedStyle(e),n=function(e){for(var t={},i=0,s=["top","right","bottom","left"];i<s.length;i++){var n=s[i],r=e["padding-"+n];t[n]=U(r)}return t}(s),r=n.left+n.right,o=n.top+n.bottom,a=U(s.width),c=U(s.height);if("border-box"===s.boxSizing&&(Math.round(a+r)!==t&&(a-=H(s,"left","right")+r),Math.round(c+o)!==i&&(c-=H(s,"top","bottom")+o)),!function(e){return e===P(e).document.documentElement}(e)){var l=Math.round(a+r)-t,h=Math.round(c+o)-i;1!==Math.abs(l)&&(a-=l),1!==Math.abs(h)&&(c-=h)}return z(n.left,n.top,a,c)}var W="undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof P(e).SVGGraphicsElement}:function(e){return e instanceof P(e).SVGElement&&"function"===typeof e.getBBox};function V(e){return k?W(e)?function(e){var t=e.getBBox();return z(0,0,t.width,t.height)}(e):B(e):F}function z(e,t,i,s){return{x:e,y:t,width:i,height:s}}var G=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=z(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=V(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),j=function(e,t){var i=function(e){var t=e.x,i=e.y,s=e.width,n=e.height,r="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,o=Object.create(r.prototype);return M(o,{x:t,y:i,width:s,height:n,top:i,right:t+s,bottom:n+i,left:t}),o}(t);M(this,{target:e,contentRect:i})},K=function(){function e(e,t,i){if(this.activeObservations_=[],this.observations_=new x,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=i}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof P(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new G(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof P(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new j(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Y="undefined"!==typeof WeakMap?new WeakMap:new x,q=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var i=D.getInstance(),s=new K(t,i,this);Y.set(this,s)};["observe","unobserve","disconnect"].forEach((function(e){q.prototype[e]=function(){var t;return(t=Y.get(this))[e].apply(t,arguments)}}));"undefined"!==typeof A.ResizeObserver&&A.ResizeObserver;T.Component;T.Component;var $=i(87924),Q=i.n($);const X={width:280,expandedWidth:360,borderRadius:4,titleFontSize:h,titleLineHeight:d,textFontSize:h,textLineHeight:d,padding:12,timeMaxWidth:25,percentageMaxWidth:25,textOffset:8,tagLeftOffset:4,tagTopOffset:5,statsOffset:24};class Z{constructor(e,t,i,s){this.top=0,this.left=0,this.canvas=e,this.stats=t,this.coords=i,this.colors=s,this.textProps={fontSize:X.textFontSize,lineHeight:X.textLineHeight,fontFamily:l,fill:null===s||void 0===s?void 0:s.titleColor},this.selectedGroup=t[0].group;const n=this.createTitles(),r=n.map((e=>e.getScaledHeight())),o=Math.max.apply(null,r);this.lineTop=this.top+o+X.textOffset;const a=this.createLine();this.content=this.createContent(n),this.group=this.createGroup(n,a,this.content),this.initListeners()}getCanvasObject(){return this.group}createTitles(){let e=this.left;return this.stats.map((({group:e})=>e)).map((t=>{var i,n;const r=new s.fabric.Text(t,Object.assign(Object.assign({left:e,top:this.top},this.textProps),{fill:t===this.selectedGroup?null===(i=this.colors)||void 0===i?void 0:i.titleColor:null===(n=this.colors)||void 0===n?void 0:n.textColor}));return e+=r.getScaledWidth()+X.statsOffset,r}))}createLine(){return new s.fabric.Path(`M ${this.left} ${this.lineTop}\n H ${X.expandedWidth-2*X.padding}`,{fill:"",stroke:this.colors.stroke,strokeWidth:1})}createContent(e){return this.stats.map((({group:t,stats:i},n)=>{const r=this.getContentItems(i,this.lineTop),o=e[n],a=o.left||0,c=a+o.getScaledWidth();return{group:t,items:new s.fabric.Group(r,{opacity:this.selectedGroup===t?1:0}),title:o,hoverLine:this.createHoverLine(a,c,t)}}))}getContentItems(e,t){let i=t+2*X.textOffset;const n=[],r=e=>{e.forEach((({name:e,value:t})=>{var r;const o=new s.fabric.Text(e,Object.assign({left:this.left,top:i},this.textProps)),a=X.expandedWidth/2-X.padding,c=X.expandedWidth-2*X.padding,l=new s.fabric.Textbox(String(t),Object.assign(Object.assign({left:a,top:i},this.textProps),{fill:null===(r=this.colors)||void 0===r?void 0:r.textColor,splitByGrapheme:!0,width:c-a}));n.push(o,l),i+=Math.max(o.getScaledHeight(),l.getScaledHeight())+X.textOffset}))};return!function(e){var t;return Boolean(null===(t=e[0])||void 0===t?void 0:t.items)}(e)?r(e):e.forEach((({name:t,items:o},a)=>{const c=new s.fabric.Text(t,Object.assign(Object.assign({left:this.left,top:i},this.textProps),{fontWeight:"bold"}));if(n.push(c),i+=c.getScaledHeight()+X.textOffset,r(o),a!==e.length-1){const e=new s.fabric.Path(`M ${this.left} ${i}\n H ${X.expandedWidth-2*X.padding}`,{fill:"",stroke:this.colors.stroke,strokeWidth:1,strokeDashArray:[6,4]});n.push(e),i+=e.getScaledHeight()+X.textOffset}})),n}createGroup(e,t,i){const n=i.map((({items:e})=>e)),r=i.map((({hoverLine:e})=>e));return new s.fabric.Group([...e,t,...n,...r],Object.assign({left:this.coords.left,top:this.coords.top},c))}createHoverLine(e,t,i){return new s.fabric.Path(`M ${e} ${this.lineTop-1}\n H ${t}`,{fill:"",stroke:this.colors.specialHover,strokeWidth:2,opacity:this.selectedGroup===i?1:0})}initListeners(){this.content.forEach((({group:e,title:t,items:i,hoverLine:s})=>{t.on("mousedown",(()=>{const n=this.selectedGroup,r=this.content.find((e=>e.group===n));r&&(r.title.set({fill:this.colors.textColor}),r.items.set({opacity:0}),r.hoverLine.set({opacity:0}),t.set({fill:this.colors.titleColor}),i.set({opacity:1}),s.set({opacity:1}),this.selectedGroup=e,this.canvas.requestRenderAll())}))}))}}function J(e,t,i,s,n){return new Z(e,t,{top:i,left:s},n).getCanvasObject()}function ee(e,t,i){return new s.fabric.Textbox(e?`#${e}`:"",{fontSize:12,lineHeight:14,textAlign:"right",fontFamily:l,fill:i.getCommonColor("text-secondary"),hoverCursor:t?"pointer":"default"})}const te={width:112,expandedWidth:360,borderRadius:6,titleFontSize:h,titleLineHeight:d,textFontSize:h,textLineHeight:d,padding:16,textOffset:8},ie={scaleX:16/512,scaleY:16/512,originY:"center"};function se(e,t,i){const n=new s.fabric.Text(e,{fontSize:te.textFontSize,lineHeight:te.textFontSize,fontFamily:l,fill:i.getCommonColor("text-misc"),originY:"center"}),r=[n];let o;switch(e){case"Merge":o=new s.fabric.Path("M232.5 5.171C247.4-1.718 264.6-1.718 279.5 5.171L498.1 106.2C506.6 110.1 512 118.6 512 127.1C512 137.3 506.6 145.8 498.1 149.8L279.5 250.8C264.6 257.7 247.4 257.7 232.5 250.8L13.93 149.8C5.438 145.8 0 137.3 0 127.1C0 118.6 5.437 110.1 13.93 106.2L232.5 5.171zM498.1 234.2C506.6 238.1 512 246.6 512 255.1C512 265.3 506.6 273.8 498.1 277.8L279.5 378.8C264.6 385.7 247.4 385.7 232.5 378.8L13.93 277.8C5.438 273.8 0 265.3 0 255.1C0 246.6 5.437 238.1 13.93 234.2L67.13 209.6L219.1 279.8C242.5 290.7 269.5 290.7 292.9 279.8L444.9 209.6L498.1 234.2zM292.9 407.8L444.9 337.6L498.1 362.2C506.6 366.1 512 374.6 512 383.1C512 393.3 506.6 401.8 498.1 405.8L279.5 506.8C264.6 513.7 247.4 513.7 232.5 506.8L13.93 405.8C5.438 401.8 0 393.3 0 383.1C0 374.6 5.437 366.1 13.93 362.2L67.13 337.6L219.1 407.8C242.5 418.7 269.5 418.7 292.9 407.8V407.8z",ie);break;case"UnionAll":o=new s.fabric.Path("M200 288H88c-21.4 0-32.1 25.8-17 41l32.9 31-99.2 99.3c-6.2 6.2-6.2 16.4 0 22.6l25.4 25.4c6.2 6.2 16.4 6.2 22.6 0L152 408l31.1 33c15.1 15.1 40.9 4.4 40.9-17V312c0-13.3-10.7-24-24-24zm112-64h112c21.4 0 32.1-25.9 17-41l-33-31 99.3-99.3c6.2-6.2 6.2-16.4 0-22.6L481.9 4.7c-6.2-6.2-16.4-6.2-22.6 0L360 104l-31.1-33C313.8 55.9 288 66.6 288 88v112c0 13.3 10.7 24 24 24zm96 136l33-31.1c15.1-15.1 4.4-40.9-17-40.9H312c-13.3 0-24 10.7-24 24v112c0 21.4 25.9 32.1 41 17l31-32.9 99.3 99.3c6.2 6.2 16.4 6.2 22.6 0l25.4-25.4c6.2-6.2 6.2-16.4 0-22.6L408 360zM183 71.1L152 104 52.7 4.7c-6.2-6.2-16.4-6.2-22.6 0L4.7 30.1c-6.2 6.2-6.2 16.4 0 22.6L104 152l-33 31.1C55.9 198.2 66.6 224 88 224h112c13.3 0 24-10.7 24-24V88c0-21.3-25.9-32-41-16.9z",ie);break;case"HashShuffle":o=new s.fabric.Path("M504.971 359.029c9.373 9.373 9.373 24.569 0 33.941l-80 79.984c-15.01 15.01-40.971 4.49-40.971-16.971V416h-58.785a12.004 12.004 0 0 1-8.773-3.812l-70.556-75.596 53.333-57.143L352 336h32v-39.981c0-21.438 25.943-31.998 40.971-16.971l80 79.981zM12 176h84l52.781 56.551 53.333-57.143-70.556-75.596A11.999 11.999 0 0 0 122.785 96H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12zm372 0v39.984c0 21.46 25.961 31.98 40.971 16.971l80-79.984c9.373-9.373 9.373-24.569 0-33.941l-80-79.981C409.943 24.021 384 34.582 384 56.019V96h-58.785a12.004 12.004 0 0 0-8.773 3.812L96 336H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12h110.785c3.326 0 6.503-1.381 8.773-3.812L352 176h32z",ie);break;case"Map":o=new s.fabric.Path("M256 8c137 0 248 111 248 248S393 504 256 504 8 393 8 256 119 8 256 8zm-28.9 143.6l75.5 72.4H120c-13.3 0-24 10.7-24 24v16c0 13.3 10.7 24 24 24h182.6l-75.5 72.4c-9.7 9.3-9.9 24.8-.4 34.3l11 10.9c9.4 9.4 24.6 9.4 33.9 0L404.3 273c9.4-9.4 9.4-24.6 0-33.9L271.6 106.3c-9.4-9.4-24.6-9.4-33.9 0l-11 10.9c-9.5 9.6-9.3 25.1.4 34.4z",ie);break;case"Broadcast":o=new s.fabric.Path("M377.941 169.941V216H134.059v-46.059c0-21.382-25.851-32.09-40.971-16.971L7.029 239.029c-9.373 9.373-9.373 24.568 0 33.941l86.059 86.059c15.119 15.119 40.971 4.411 40.971-16.971V296h243.882v46.059c0 21.382 25.851 32.09 40.971 16.971l86.059-86.059c9.373-9.373 9.373-24.568 0-33.941l-86.059-86.059c-15.119-15.12-40.971-4.412-40.971 16.97z",ie)}return o&&(o.set({fill:i.getCommonColor("text-misc"),top:0,left:0,originY:"center"}),n.set({left:22}),r.push(o)),new s.fabric.Group(r,Object.assign(Object.assign({},c),{hoverCursor:t?"pointer":"default"}))}class ne{constructor(e,t,i,s,n){this.expanded=!1,this.expandedNodeHeight=0,this.nodeHeight=0,this.canvas=e,this.coords=t,this.treeNode=i,this.opts=s,this.em=n,this.data=Q()(i,["data","data"]),this.objects=this.prepareShapeObjects(),this.setShapeObjectsCoords(),this.body=this.prepareNodeBody(),this.group=this.createGroup(),this.initListeners()}getShape(){return this.group}getFillColor(){return this.opts.colors.getCommonColor("base-misc-light")}getHoverFillColor(){return this.opts.colors.getCommonColor("base-misc-light-hover")}getShadow(){}getHoverShadow(){}toggleHighlight(e){this.isExpandable()&&!this.expanded&&this.body.set({fill:e?this.getHoverFillColor():this.getFillColor()}),this.canvas.requestRenderAll()}prepareNodeBody(){const e=this.opts.colors,t=this.objects[this.objects.length-1];return this.nodeHeight=(t.top||0)+t.getScaledHeight()+te.padding,new s.fabric.Rect({width:te.width,height:this.nodeHeight,fill:this.getFillColor(),shadow:this.getShadow(),stroke:e.getCommonColor("line-misc"),rx:te.borderRadius,ry:te.borderRadius,hoverCursor:this.isExpandable()?"pointer":"default"})}prepareShapeObjects(){return[ee(this.data.id,this.isExpandable(),this.opts.colors),se(this.data.name||"",this.isExpandable(),this.opts.colors)]}setShapeObjectsCoords(){const[e,t]=this.objects,i=te.padding,s=this.expanded?te.expandedWidth:te.width,n=t.getScaledWidth();e.set({left:0,top:4,width:s-4}),t.set({left:s/2-n/2,top:i})}createGroup(){const{top:e,left:t}=this.coords;return new s.fabric.Group([this.body,...this.objects],Object.assign({top:e,left:t},c))}initListeners(){this.initHover(),this.isExpandable()&&this.initExpand()}initHover(){this.group.on("mouseover",(()=>{this.em.dispatch("node:mouseover",this.treeNode),this.toggleHighlight(!0)})),this.group.on("mouseout",(()=>{this.em.dispatch("node:mouseout",this.treeNode),this.toggleHighlight(!1)}))}initExpand(){this.group.on("mousedown",(e=>{var t;this.stats&&(null===(t=e.subTargets)||void 0===t?void 0:t.includes(this.stats))||(this.expanded=!this.expanded,this.updateDimensions(),this.em.dispatch("node:resize",this.treeNode))}))}updateDimensions(){const e=this.opts.colors,[t,i]=this.objects,s=i.getScaledWidth();let n,r;this.expanded?(this.stats=J(this.canvas,this.data.stats,(this.group.top||0)+this.body.getScaledHeight()+te.padding,(this.group.left||0)+te.padding,e),this.expandedNodeHeight=this.nodeHeight+this.stats.getScaledHeight()+2*te.padding,n=te.expandedWidth,r=this.expandedNodeHeight,this.group.addWithUpdate(this.stats)):(n=te.width,r=this.nodeHeight,this.group.removeWithUpdate(this.stats),this.stats=void 0);const o=function(e,t){const i=[];return t.forEachObject((s=>{i.push(s),t.removeWithUpdate(s),e.add(s)})),()=>{i.forEach((i=>{e.remove(i),t.addWithUpdate(i)}))}}(this.canvas,this.group);this.body.set({width:n,height:r,fill:this.getFillColor(),shadow:this.getShadow()}),t.set({width:n-4}),i.set({left:(this.body.left||0)+(this.body.width||0)/2-s/2}),o()}isExpandable(){return Boolean(this.data.stats&&this.data.stats.length>0)}}const re={width:190,bevelSize:10,titleFontSize:h,titleLineHeight:d,padding:12};class oe{constructor(e,t,i,n,r){this.nodeHeight=0,this.coords=t,this.opts=n,this.data=Q()(i,["data","data"]),this.shadow=new s.fabric.Shadow({color:n.colors.nodeShadow,offsetY:1,blur:5}),this.hoverShadow=new s.fabric.Shadow({color:n.colors.nodeShadow,offsetY:3,blur:8}),this.objects=this.prepareShapeObjects(),this.setShapeObjectsCoords(),this.body=this.prepareNodeBody(),this.group=this.createGroup()}getShape(){return this.group}getFillColor(){return this.opts.colors.nodeFill}getHoverFillColor(){return this.opts.colors.nodeHover}getShadow(){return this.shadow}getHoverShadow(){return this.hoverShadow}toggleHighlight(){}prepareNodeBody(){const e=this.opts.colors,t=this.objects[this.objects.length-1];return this.nodeHeight=(t.top||0)+t.getScaledHeight()+re.padding,new s.fabric.Polygon([{x:re.bevelSize,y:0},{x:re.width-re.bevelSize,y:0},{x:re.width,y:re.bevelSize},{x:re.width,y:this.nodeHeight-re.bevelSize},{x:re.width-re.bevelSize,y:this.nodeHeight},{x:re.bevelSize,y:this.nodeHeight},{x:0,y:this.nodeHeight-re.bevelSize},{x:0,y:re.bevelSize}],{fill:this.getFillColor(),stroke:null===e||void 0===e?void 0:e.nodeShadow,shadow:this.getShadow(),hoverCursor:"default"})}prepareShapeObjects(){var e,t;return[(e=[this.data.name||""],t=this.opts.colors,new s.fabric.Text(e.join("\n"),{fontSize:re.titleFontSize,lineHeight:re.titleLineHeight,left:0,top:26,fontFamily:l,fontStyle:"italic",fill:t.getCommonColor("text-primary")}))]}setShapeObjectsCoords(){const[e]=this.objects,t=re.padding,i=e.getScaledWidth();e.set({left:re.width/2-i/2,top:t})}createGroup(){const{top:e,left:t}=this.coords;return new s.fabric.Group([this.body,...this.objects],Object.assign({top:e,left:t},c))}}const ae=40,ce=40,le=20;class he{constructor(e,t,i,n,r){this.coords=t,this.opts=n,this.shadow=new s.fabric.Shadow({color:n.colors.nodeShadow,offsetY:1,blur:5}),this.hoverShadow=new s.fabric.Shadow({color:n.colors.nodeShadow,offsetY:3,blur:8}),this.body=this.prepareNodeBody(),this.group=this.createGroup()}getShape(){return this.group}getFillColor(){return this.opts.colors.nodeFill}getHoverFillColor(){return this.opts.colors.nodeHover}getShadow(){return this.shadow}getHoverShadow(){return this.hoverShadow}toggleHighlight(){}prepareNodeBody(){const e=this.opts.colors;return new s.fabric.Rect({width:ae,height:ce,fill:this.getFillColor(),stroke:null===e||void 0===e?void 0:e.nodeShadow,rx:le,ry:le,shadow:this.getShadow(),hoverCursor:"default"})}createGroup(){const{top:e,left:t}=this.coords;return new s.fabric.Group([this.body],Object.assign({top:e,left:t},c))}}const de={width:112,borderRadius:6,titleFontSize:h,titleLineHeight:d,textFontSize:h,textLineHeight:d,padding:12,textOffset:8};class ue{constructor(e,t,i,n,r){this.nodeHeight=0,this.coords=t,this.opts=n,this.data=Q()(i,["data","data"]),this.shadow=new s.fabric.Shadow({color:n.colors.nodeShadow,offsetY:1,blur:5}),this.hoverShadow=new s.fabric.Shadow({color:n.colors.nodeShadow,offsetY:3,blur:8}),this.objects=this.prepareShapeObjects(),this.setShapeObjectsCoords(),this.body=this.prepareNodeBody(),this.group=this.createGroup()}getShape(){return this.group}getFillColor(){return this.opts.colors.nodeFill}getHoverFillColor(){return this.opts.colors.nodeHover}getShadow(){return this.shadow}getHoverShadow(){return this.hoverShadow}toggleHighlight(){}prepareNodeBody(){const e=this.opts.colors,t=this.objects[this.objects.length-1];return this.nodeHeight=(t.top||0)+t.getScaledHeight()+de.padding,new s.fabric.Rect({width:de.width,height:this.nodeHeight,fill:this.getFillColor(),stroke:null===e||void 0===e?void 0:e.nodeShadow,shadow:this.getShadow(),hoverCursor:"default"})}prepareShapeObjects(){var e,t;return[(e=[this.data.name||""],t=this.opts.colors,new s.fabric.Text(e.join("\n"),{fontSize:de.textFontSize,lineHeight:de.textLineHeight,left:0,top:26,fontFamily:l,fill:t.getCommonColor("text-primary")}))]}setShapeObjectsCoords(){const[e]=this.objects,t=de.padding,i=e.getScaledWidth();e.set({left:de.width/2-i/2,top:t})}createGroup(){const{top:e,left:t}=this.coords;return new s.fabric.Group([this.body,...this.objects],Object.assign({top:e,left:t},c))}}const ge={width:248,expandedWidth:360,borderRadius:6,titleFontSize:h,titleLineHeight:d,textFontSize:h,textLineHeight:d,padding:12,textOffset:8};class pe{constructor(e,t,i,n,r){this.expanded=!1,this.expandedNodeHeight=0,this.nodeHeight=0,this.canvas=e,this.coords=t,this.treeNode=i,this.opts=n,this.em=r,this.data=Q()(i,["data","data"]),this.shadow=new s.fabric.Shadow({color:n.colors.nodeShadow,offsetY:1,blur:5}),this.hoverShadow=new s.fabric.Shadow({color:n.colors.nodeShadow,offsetY:3,blur:8}),this.objects=this.prepareShapeObjects(),this.setShapeObjectsCoords(),this.body=this.prepareNodeBody(),this.group=this.createGroup(),this.initListeners()}getShape(){return this.group}getFillColor(){return this.opts.colors.nodeFill}getHoverFillColor(){return this.opts.colors.nodeHover}getShadow(){return this.shadow}getHoverShadow(){return this.hoverShadow}toggleHighlight(e){this.isExpandable()&&!this.expanded&&this.body.set({fill:e?this.getHoverFillColor():this.getFillColor(),shadow:e?this.getHoverShadow():this.getShadow()}),this.canvas.requestRenderAll()}prepareNodeBody(){const e=this.opts.colors,t=this.objects[this.objects.length-1];return this.nodeHeight=(t.top||0)+t.getScaledHeight()+ge.padding,new s.fabric.Rect({width:ge.width,height:this.nodeHeight,fill:this.getFillColor(),stroke:null===e||void 0===e?void 0:e.nodeShadow,rx:ge.borderRadius,ry:ge.borderRadius,shadow:this.getShadow(),hoverCursor:this.isExpandable()?"pointer":"default"})}prepareShapeObjects(){const e=ee(this.data.id,this.isExpandable(),this.opts.colors),t=(i=this.data.operators||[this.data.name||""],n=this.isExpandable(),r=this.opts.colors,new s.fabric.Text(i.join("\n"),{fontSize:ge.textFontSize,lineHeight:ge.textLineHeight,fontFamily:l,fill:r.getCommonColor("text-primary"),hoverCursor:n?"pointer":"default"}));var i,n,r;const o=function(e,t){if(0===e.length)return new s.fabric.Group([],Object.assign({top:0,left:0},c));const i=new s.fabric.Text("Tables:",{fontSize:ge.textFontSize,lineHeight:ge.textLineHeight,fontFamily:l,fill:t.getCommonColor("text-secondary"),hoverCursor:"pointer"}),n=i.getScaledWidth()+2,r=ge.width-2*ge.padding-n,o=new s.fabric.Textbox(e.join("\n"),{left:n,width:r,fontSize:ge.textFontSize,lineHeight:ge.textLineHeight,fontFamily:l,fill:t.getCommonColor("text-primary"),splitByGrapheme:!0,hoverCursor:"pointer"});return new s.fabric.Group([i,o],Object.assign({top:0,left:0},c))}(this.data.tables||[],this.opts.colors),a=function(e,t){if(!e)return new s.fabric.Group([],Object.assign({top:0,left:0},c));const i=new s.fabric.Text("CTE:",{fontSize:ge.textFontSize,lineHeight:ge.textLineHeight,fontFamily:l,fill:t.getCommonColor("text-secondary"),hoverCursor:"pointer"}),n=i.getScaledWidth()+2,r=ge.width-2*ge.padding-n,o=new s.fabric.Textbox(e,{left:n,width:r,fontSize:ge.textFontSize,lineHeight:ge.textLineHeight,fontFamily:l,fill:t.getCommonColor("text-primary"),splitByGrapheme:!0,hoverCursor:"pointer"});return new s.fabric.Group([i,o],Object.assign({top:0,left:0},c))}(this.data.cte||"",this.opts.colors);return[e,t,o,a]}setShapeObjectsCoords(){const[e,t,i,s]=this.objects;let n=ge.padding;const r=ge.padding;e.set({left:0,top:4,width:(this.expanded?ge.expandedWidth:ge.width)-4}),t.set({left:r,top:n}),n+=t.getScaledHeight(),i.set({left:r,top:n+(0===i.size()?0:ge.textOffset)}),n+=i.getScaledHeight(),s.set({left:r,top:n+(0===s.size()?0:ge.textOffset)})}createGroup(){const{top:e,left:t}=this.coords;return new s.fabric.Group([this.body,...this.objects],Object.assign({top:e,left:t},c))}initListeners(){this.initHover(),this.isExpandable()&&this.initExpand()}initHover(){this.group.on("mouseover",(()=>{this.em.dispatch("node:mouseover",this.treeNode),this.toggleHighlight(!0)})),this.group.on("mouseout",(()=>{this.em.dispatch("node:mouseout",this.treeNode),this.toggleHighlight(!1)}))}initExpand(){this.group.on("mousedown",(e=>{var t;this.stats&&(null===(t=e.subTargets)||void 0===t?void 0:t.includes(this.stats))||(this.updateDimensions(),this.expanded=!this.expanded,this.em.dispatch("node:resize",this.treeNode))}))}updateDimensions(){const e=this.opts.colors;if(this.expanded){const e=ge.width,t=this.nodeHeight;this.body.set({width:e,height:t,fill:this.getFillColor(),shadow:this.getShadow()}).setCoords(),this.objects[0].set({width:e-4}).setCoords(),this.group.removeWithUpdate(this.stats),this.stats=void 0}else{this.stats=J(this.canvas,this.data.stats,(this.group.top||0)+this.body.getScaledHeight()+ge.padding,(this.group.left||0)+ge.padding,e),this.expandedNodeHeight=this.nodeHeight+this.stats.getScaledHeight()+2*ge.padding;const t=ge.expandedWidth,i=this.expandedNodeHeight;this.body.set({width:t,height:i,fill:this.getFillColor(),shadow:this.getShadow()}).setCoords(),this.objects[0].set({width:t-4}).setCoords(),this.group.addWithUpdate(this.stats)}}isExpandable(){return Boolean(this.data.stats&&this.data.stats.length>0)}}function me(e,t,i,s,n){return function(e){const t=Q()(e,["data","data"]);return"connection"===(null===t||void 0===t?void 0:t.type)}(i)?new ne(e,t,i,s,n):function(e){const t=Q()(e,["data","data"]);return"result"===(null===t||void 0===t?void 0:t.type)}(i)?new ue(e,t,i,s,n):function(e){const t=Q()(e,["data","data"]);return"query"===(null===t||void 0===t?void 0:t.type)}(i)?new he(e,t,i,s,n):function(e){const t=Q()(e,["data","data"]);return"materialize"===(null===t||void 0===t?void 0:t.type)}(i)?new oe(e,t,i,s,n):new pe(e,t,i,s,n)}},55299:(e,t,i)=>{"use strict";i.d(t,{F:()=>O});var s=i(59284),n=i(81240),r=i(84476),o=i(80604),a=i(99991),c=i(63365),l=i(46423),h=i(87184);const d=s.createContext(null),u=()=>{const e=s.useContext(d);if(!e)throw new Error('Alert: `useAlertContext` hook is used out of "AlertContext"');return e},g=e=>{const{view:t}=u();return s.createElement(r.$,Object.assign({view:"filled"===t?"normal-contrast":void 0},e))};var p=i(69220);const m=(0,p.om)("alert"),f=({layout:e,view:t,children:i})=>s.createElement(d.Provider,{value:{layout:e,view:t}},i);var _=i(18677),v=i(10800),C=i(45720),E=i(43937);const b=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m3.1-8.55a.75.75 0 1 0-1.2-.9L7.419 8.858 6.03 7.47a.75.75 0 0 0-1.06 1.06l2 2a.75.75 0 0 0 1.13-.08z",clipRule:"evenodd"}));var S=i(70825),y=i(71153),w=i(94420);const R=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",d:"m14.61 6.914-7.632 8.08a1.614 1.614 0 0 1-2.69-1.66L5.5 10H2.677A1.677 1.677 0 0 1 1.12 7.7l2.323-5.807A2.22 2.22 0 0 1 5.5.5h4c.968 0 1.637.967 1.298 1.873L10 4.5h3.569a1.431 1.431 0 0 1 1.04 2.414"}));var L=i(27612);const T={danger:{filled:_.A,outlined:v.A},info:{filled:C.A,outlined:E.A},success:{filled:b,outlined:S.A},warning:{filled:y.A,outlined:w.A},utility:{filled:R,outlined:L.A},normal:null};var x=i(98089);var k=i(72837);const A=JSON.parse('{"label_close":"Close"}'),N=JSON.parse('{"label_close":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"}'),I=(0,k.N)({en:A,ru:N},"Alert"),O=e=>{const{theme:t="normal",view:i="filled",layout:d="vertical",message:u,className:g,corners:p,style:_,onClose:v,align:C,qa:E}=e;return s.createElement(f,{layout:d,view:i},s.createElement(o.Z,{style:_,className:m({corners:p},(0,l.Y)({py:4,px:5},g)),theme:t,view:i,qa:E},s.createElement(h.s,{gap:"3",alignItems:C},"undefined"===typeof e.icon?s.createElement(O.Icon,{theme:t,view:i}):e.icon,s.createElement(h.s,{direction:"vertical"===d?"column":"row",gap:"5",grow:!0},s.createElement(h.s,{gap:"2",grow:!0,className:m("text-content")},s.createElement(h.s,{direction:"column",gap:"1",grow:!0,justifyContent:C},"string"===typeof e.title?s.createElement(O.Title,{text:e.title}):e.title,u)),Array.isArray(e.actions)?s.createElement(O.Actions,{items:e.actions}):e.actions),v&&s.createElement(r.$,{view:"flat",className:m("close-btn"),onClick:v,extraProps:{"aria-label":I("label_close")}},s.createElement(a.I,{data:n.A,size:18,className:(0,c.$)({color:"secondary"})})))))};O.Icon=({className:e,theme:t,view:i="filled",size:n=18})=>{const r=T[t];if(!r)return null;let o;return"success"===t?o="positive":"normal"!==t&&(o=t),s.createElement("div",{className:m("icon",(0,c.$)({color:o},e))},s.createElement(a.I,{data:r[i],size:n}))},O.Title=({text:e,className:t})=>s.createElement(x.E,{variant:"subheader-2",className:m("title",t)},e),O.Actions=({items:e,children:t,className:i})=>{const{layout:n}=u();return s.createElement(h.s,{className:m("actions",{minContent:"horizontal"===n},i),direction:"row",gap:"3",wrap:!0,alignItems:"horizontal"===n?"center":"flex-start"},(null===e||void 0===e?void 0:e.map((({handler:e,text:t},i)=>s.createElement(g,{key:i,onClick:e},t))))||t)},O.Action=g},80604:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var s=i(27145),n=i(59284),r=i(46734),o=i(9296);const a=(0,i(69220).om)("card"),c=n.forwardRef((function(e,t){const{type:i="container",theme:c,view:l,size:h="m",children:d,className:u,onClick:g,disabled:p,selected:m}=e,f=(0,s.Tt)(e,["type","theme","view","size","children","className","onClick","disabled","selected"]),_="selection"===i,v="container"===i,C=("action"===i||_)&&Boolean(g)&&!p,E=v?"normal":void 0,b=v||_?"outlined":void 0,S=C?g:void 0,{onKeyDown:y}=(0,r.N)(g);return n.createElement(o.a,Object.assign({ref:t,role:C?"button":void 0,className:a({theme:c||E,view:l||b,type:i,selected:m,size:h,disabled:p,clickable:C},u),onClick:S,onKeyDown:C?y:void 0,tabIndex:C?0:void 0},f),d)}))},80953:(e,t,i)=>{"use strict";i.d(t,{t:()=>r});var s=i(59284);const n=(0,i(69220).om)("spin"),r=s.forwardRef((function(e,t){const{size:i="m",style:r,className:o,qa:a}=e;return s.createElement("div",{ref:t,style:r,className:n({size:i},o),"data-qa":a},s.createElement("div",{className:n("inner")}))}))},1155:(e,t,i)=>{"use strict";i.d(t,{m:()=>u});var s=i(59284),n=i(32084),r=i(81517),o=i(39238),a=i(98089),c=i(69220),l=i(7412);const h=(0,c.om)("tooltip"),d=["bottom","top"],u=e=>{const{children:t,content:i,disabled:c,placement:u=d,qa:g,id:p,className:m,style:f,disablePortal:_,contentClassName:v,openDelay:C=1e3,closeDelay:E}=e,[b,S]=s.useState(null),y=(0,r.d)(b,{openDelay:C,closeDelay:E,preventTriggerOnFocus:!0}),w=s.Children.only(t),R=(0,l.Q)(w),L=(0,n.N)(S,R);return s.createElement(s.Fragment,null,s.cloneElement(w,{ref:L}),b?s.createElement(o.z,{id:p,role:"tooltip",className:h(null,m),style:f,open:y&&!c,placement:u,anchorRef:{current:b},disablePortal:_,disableEscapeKeyDown:!0,disableOutsideClick:!0,disableLayer:!0,qa:g},s.createElement("div",{className:h("content",v)},s.createElement(a.E,{variant:"body-short",color:"complementary"},i))):null)}},34420:(e,t,i)=>{!function(){"use strict";const t=i(85858),s="$value",n={string:null,number:null,boolean:null,null:null,object:null,array:null};function r(e){switch(e){case"array":return"list";case"object":return"map";default:return e}}function o(e){const i=t(e);if(!Object.prototype.hasOwnProperty.call(n,i))throw new Error('unipika: invalid input - node type "'+i+'" is not supported.');return{$type:r(i),$value:e}}function a(e,t){return e[s]=function(e,t){return Object.keys(e).map((function(i){const s=o(i);return"$attributes"===i||"$value"===i||"$incomplete"===i||"$type"===i?s.$special_key=!0:s.$key=!0,[s,c(e[i],t)]}))}(e[s],t),e}const c=function(e,t){let i;return(e=o(e))&&(i=e.$type,"map"===i?e=a(e,t):"list"===i&&(e=function(e,t){return e[s]=e[s].map((function(e){return c(e,t)})),e}(e,t))),e};e.exports=c}()},34132:e=>{!function(){function t(e){return"yql."+e}function i(e,i){const s=t(i.toLowerCase());switch(i){case"String":case"Uuid":if(Array.isArray(e))return{$binary:!0,$type:s,$value:e[0]}}return{$type:s,$value:e}}function s(e,t){let s;return s="StructType"===t[0]?i(t[1][e][0],"String"):i(e,"Int32"),s.$key=!0,s}function n(e){const i={};return e.$value.forEach((function(e){const s=e[0],n=e[1];if(s.$type!==t("string"))throw new Error("unipika: try to convert struct with no-string keys to object");i[s.$value]=n.$value})),i}function r(e={}){return Object.prototype.hasOwnProperty.call(e,"src")&&"string"===typeof e.src?e.src:"string"===typeof e.$value?e.$value:void 0}function o(e,o,a){function c(e){return o.maxListSize>0&&Array.isArray(e)&&e.length>o.maxListSize?e.slice(0,o.maxListSize):e}function l(e,t){return t&&(e.$incomplete=!0),e}function h(e){if(o.maxStringSize>0&&e.$value){if(!e.$binary&&!e.$tag&&e.$value.length>o.maxStringSize)return e.$original_value=e.$value,e.$value=e.$value.substr(0,o.maxStringSize),l(e,!0);if(e.$binary&&!e.$tag&&.75*e.$value.length>o.maxStringSize)return e.$original_value=e.$value,e.$value=function(e,t){const i=Math.min(Math.floor(t/3),Math.ceil(e.length/4)),s=4*i,n=Math.min(t-3*i,e.length-s),r=e.substr(0,s);return 1==n?r+e.substr(s,2)+"==":2==n?r+e.substr(s,3)+"=":r}(e.$value,o.maxStringSize),l(e,!0)}return e}return function e(d,u){const g=u[0],p=u[1];let m,f,_;switch(o.treatValAsData&&d&&Object.hasOwnProperty.call(d,"val")&&(m=d.inc,f=d.b64,d=d.val),m?_=d:(_=c(d),m=_!==d),a.incomplete=a.incomplete||m,g){case"OptionalType":{const t=Array.isArray(d)&&d.length,i=t?e(d[0],p):e(null,["VoidType"]);return t&&(i.$optional=(i.$optional||0)+1),i}case"TaggedType":return function(e,i,s,o,a){let c,l=o(s,i);switch(e){case"url":if("StructType"===i[0]){if(c=n(l),!Object.prototype.hasOwnProperty.call(c,"href")||"string"!==typeof c.href)return l;l={$type:"tag_value",$value:c}}break;case"videourl":case"audiourl":case"imageurl":{if("StructType"===i[0]){c=n(l);const e=r(c);if(!e||!a(e))return l;l={$type:"tag_value",$value:c}}const e=r(l);if(e&&!a(e))return l;break}case"image/svg":case"image/svg+xml":case"image/jpeg":case"image/png":case"image/gif":case"image/webp":case"video/mp4":case"video/webm":if("StructType"===i[0]){if(c=n(l),!r(c))return l;l={$type:"tag_value",$value:c}}}return{$type:t("tagged"),$tag:e,$value:l}}(u[1],u[2],d,e,o.validateSrcUrl);case"ListType":return l({$type:t("list"),$value:_.map((function(t){return e(t,u[1])}))},m);case"StreamType":return l({$type:t("stream"),$value:_.map((function(t){return e(t,u[1])}))},m);case"TupleType":return l({$type:t("tuple"),$value:_.map((function(t,i){return e(t,p[i])}))},m);case"DictType":return"VoidType"===u[2][0]?l({$type:t("set"),$value:_.map((function(t){return e(t[0],u[1])}))},m):l({$type:t("dict"),$value:_.map((function(t){return[e(t[0],u[1]),e(t[1],u[2])]}))},m);case"StructType":{const s=d.map((function(t,s){const n=p[s],r=e(t,n[1]);if(o.omitStructNull&&null===r.$value)return null;const a=i(n[0],"String");return a.$key=!0,[a,r]})).filter(Boolean);return _=c(s),l({$type:t("struct"),$value:_},_!==s)}case"VariantType":{const i=function(e){const t=e[0];return e[1].map((function(e){return"StructType"===t?e[1]:e}))}(p);return function(e){return e.every((function(e){return"VoidType"===e[0]}))}(i)?{$type:t("enum"),$value:s(d[0],p).$value}:{$type:t("variant"),$value:[[s(d[0],p),e(d[1],i[d[0]])]]}}case"VoidType":case"NullType":return{$type:t("null"),$value:null};case"EmptyListType":return{$type:t("list"),$value:[]};case"EmptyDictType":return{$type:t("dict"),$value:[]};case"DataType":switch(p){case"String":case"Utf8":{const e=i(d,p);return f&&(e.$binary=!0),m?l(e,!0):h(e)}case"JsonDocument":return{$type:"yql.json",$value:d};case"Yson":{const e=i(d,p);return m?l(e,!0):e}default:return i(d,p)}case"PgType":{const e=u[2];return function(e,t,i){return{$type:"yql.pg."+t.toLowerCase(),$value:e,$category:i}}(d,p,e)}}}(...e)}e.exports=function(e,t,i){const s=function(e){const t=e||{},i=e&&e.validateSrcUrl?e.validateSrcUrl:()=>!1;return t.validateSrcUrl=i,t}(t);return o(e,s,i||{})}}()},1019:(e,t,i)=>{!function(){"use strict";const t=i(94297),s=i(85858),n=i(76531),r=i(1449).decode,o="$value",a="$type",c="$attributes",l="$incomplete",h={string:null,number:null,boolean:null,null:null,object:null,array:null};const d="_type_tag";function u(e){if(Object.prototype.hasOwnProperty.call(e,"$attributes")&&!Object.prototype.hasOwnProperty.call(e,"$incomplete")){const t=e.$attributes[d];if("undefined"!==typeof t){const i=n.value(t),s=function(e,t){if("url"===e)return function(e){const t=e.$value,i=e.$type;if("string"===i)return{$type:"tag_value",$value:{href:t}};if("map"===i&&Object.prototype.hasOwnProperty.call(t,"href"))return{$type:"tag_value",$value:{href:n.value(t.href),text:n.value(t.text),title:n.value(t.title)}}}(t);return function(e){return{$type:e.$type,$value:e.$value}}(t)}(i,e);s&&(e.$type="tagged",e.$tag=i,e.$value=s,delete e.$attributes[d])}}}function g(e){const t={};return function(e,t){e[o]=n.hasSpecialProperty(t,o)?t[o]:t;const i=s(e[o]);if(!Object.prototype.hasOwnProperty.call(h,i))throw new Error('unipika: invalid input - $value type "'+i+'" is not supported.');if(n.hasSpecialProperty(t,a)){const i=s(t[a]);if("undefined"!==i&&"string"!==i)throw new Error('unipika: invalid input - $type must be a string instead got "'+i+'".');e[a]=t[a]}else e[a]=function(e){switch(e){case"array":return"list";case"object":return"map";default:return e}}(i)}(t,e),function(e,t){if(n.hasSpecialProperty(t,c)){const i=s(t[c]);if("object"!==i)throw new Error('unipika: invalid input - $attributes must be an object instead got "'+i+'".');e[c]=Object.assign({},t[c])}}(t,e),function(e,t){if(n.hasSpecialProperty(t,l)){const i=s(t[l]);if("boolean"!==i)throw new Error('unipika: invalid input - $attributes must be an object instead got "'+i+'".');e[l]=t[l]}}(t,e),u(t),t}function p(e,t){return Object.keys(e).map((function(i){const s=m(g(i),t);return s.$key=!0,[s,m(e[i],t)]}))}const m=function(e,i){let s;return(i=i||{}).decodeUTF8=t.parseSetting(i,"decodeUTF8",!0),(e=g(e))&&(n.hasSpecialProperty(e,c)&&(e=function(e,t){return e[c]=p(e[c],t),e}(e)),s=e[a],"map"===s?e=function(e,t){return e[o]=p(e[o],t),e}(e,i):"list"===s?e=function(e,t){return e[o]=e[o].map((function(e){return m(e,t)})),e}(e,i):"string"===s&&(e=function(e,t){try{e.$decoded_value=t.decodeUTF8?r(e[o],{allowTruncatedEnd:e[l]}):e[o]}catch(i){e.$binary=!0}return e}(e,i))),e};e.exports=m}()},37403:(e,t,i)=>{!function(){"use strict";const t=i(94297),s=i(1019),n=i(34132),r=i(34420),o="json";function a(e){return String(e.$value)}const c={};function l(e,i,s){const n=e.$type?.startsWith("yql.pg")?"yql.pg":e.$type,r=Object.prototype.hasOwnProperty.call(c,n)?c[n]:a,o=r(e,i,s),l=r.isScalar?t.wrapScalar(e,i,o):t.wrapComplex(e,i,o);return t.wrapOptional(e,i,l)}function h(e,t,i){return l({$type:"string",$special_key:!0,$value:e,$decoded_value:e},t,i)}function d(e,i,s){let n="";const r=e.$attributes,a=r.length;return t.drawFullView(a,i)?(n+=t.getAttributesStart(i)+t.getIndent(i,s),n+=p(r,i,s),n+=t.getIndent(i,s-1)+t.getAttributesEnd(i)+t.getIndent(i,s-1)):t.drawCompactView(a,i)?(n+=t.getAttributesStart(i),n+=p(r,i,s-1),n+=t.getAttributesEnd(i)+(i.format===o?t.getIndent(i,s-1):"")):n+=t.getAttributesStart(i)+t.getAttributesEnd(i),n}function u(e){return Object.prototype.hasOwnProperty.call(e,"$attributes")&&e.$attributes.length>0}const g=function(e,i,s){s=s||1;let n="";return i.format===o?u(e)?(n+=t.OBJECT_START+t.getIndent(i,s),n+=h("$attributes",i,s)+t.getKeyValueSeparator(i),n+=d(e,i,s+1),n+=h("$value",i,s)+t.getKeyValueSeparator(i),n+=l(e,i,s+1),n+=t.getIndent(i,s-1)+t.OBJECT_END):n+=l(e,i,s):"yson"===i.format&&(u(e)&&(n+=d(e,i,s)),n+=l(e,i,s)),n},p=i(83823)(g);function m(e,i,s){return"undefined"===typeof e?t.EMPTY_STRING:(s=s||function(e){return e},(i=i||{}).format=t.parseSetting(i,"format",o),i.decodeUTF8=t.parseSetting(i,"decodeUTF8",!0),i.showDecoded=t.parseSetting(i,"showDecoded",!0),i.asHTML=t.parseSetting(i,"asHTML",!0),i.indent=t.parseSetting(i,"indent",4),i.break=t.parseSetting(i,"break",!0),i.compact=t.parseSetting(i,"compact",!1),i.binaryAsHex=t.parseSetting(i,"binaryAsHex",!0),i.escapeWhitespace=t.parseSetting(i,"escapeWhitespace",!0),i.highlightControlCharacter=t.parseSetting(i,"highlightControlCharacter",!1),i.escapeYQLStrings=t.parseSetting(i,"escapeYQLStrings",!0),i.nonBreakingIndent=t.parseSetting(i,"nonBreakingIndent",!0),i.treatValAsData=t.parseSetting(i,"treatValAsData",!1),i.validateSrcUrl=t.parseSetting(i,"validateSrcUrl",(()=>!1)),i.normalizeUrl=t.parseSetting(i,"normalizeUrl",(e=>encodeURI(e))),g(s(e,i),i))}c.list=i(34529)(g),c.map=i(8603)(g),c.string=i(88608)(g),c.number=i(94484)(g),c.int64=i(64066)(g),c.uint64=i(2539)(g),c.double=i(66668)(g),c.boolean=i(50629)(g),c.null=i(17184)(g),c.tagged=i(57233)(g),c["yql.list"]=i(56976)(g),c["yql.stream"]=i(89896)(g),c["yql.tuple"]=i(21152)(g),c["yql.struct"]=i(23157)(g),c["yql.dict"]=i(9208)(g),c["yql.string"]=i(96409)(g),c["yql.utf8"]=i(37035)(g),c["yql.int64"]=i(38785)(g),c["yql.int8"]=c["yql.int64"],c["yql.int16"]=c["yql.int64"],c["yql.int32"]=c["yql.int64"],c["yql.uint64"]=i(10602)(g),c["yql.uint8"]=c["yql.uint64"],c["yql.uint16"]=c["yql.uint64"],c["yql.uint32"]=c["yql.uint64"],c["yql.double"]=i(21377)(g),c["yql.float"]=c["yql.double"],c["yql.decimal"]=i(46133)(g),c["yql.bool"]=i(43932)(g),c["yql.date"]=i(84316)(g),c["yql.date32"]=c["yql.date"],c["yql.datetime"]=i(20897)(g),c["yql.datetime64"]=c["yql.datetime"],c["yql.timestamp"]=i(75162)(g),c["yql.timestamp64"]=c["yql.timestamp"],c["yql.tzdate"]=i(29818)(g),c["yql.tzdate32"]=i(29818)(g),c["yql.tzdatetime"]=i(93599)(g),c["yql.tzdatetime64"]=i(93599)(g),c["yql.tztimestamp"]=i(79928)(g),c["yql.tztimestamp64"]=i(79928)(g),c["yql.interval"]=i(37301)(g),c["yql.interval64"]=c["yql.interval"],c["yql.uuid"]=i(25783)(g),c["yql.null"]=i(80449)(g),c["yql.variant"]=i(10411)(g),c["yql.enum"]=i(36317)(g),c["yql.set"]=i(35762)(g),c["yql.json"]=i(92778)(g),c["yql.yson"]=i(41893)(g),c["yql.tagged"]=i(74688)(g),c["yql.pg"]=i(14853)(g),e.exports={format:m,formatFromYSON:function(e,t){return m(e,t,s)},formatFromYQL:function(e,t){return m(e,t,n)},formatRaw:function(e,t){return(t=t||{}).format="json",t.showDecoded=!1,t.compact=!1,t.escapeWhitespace=!0,m(e,t,r)},formatAttributes:d,formatKey:h,formatValue:l}}()},61674:(e,t,i)=>{e.exports=function(e){const t=i(37403),s={say:i(27769),format:t.format,formatFromYSON:t.formatFromYSON,formatFromYQL:t.formatFromYQL,formatRaw:t.formatRaw,formatAttributes:t.formatAttributes,formatKey:t.formatKey,formatValue:t.formatValue,converters:{yson:i(1019),yql:i(34132),raw:i(34420)},utils:{format:i(94297),yson:i(76531),utf8:i(1449),type:i(85858)}};if((e=e||{}).exportBrowserModule){if("undefined"===typeof window)return s;let e;const t="function"===typeof window.define&&window.define.amd,i="object"===typeof window.modules,n=function(e){return e},r=function(e){return t?e.bind(null,n):i?e:e.bind(null,n)};e=t?window.define:i?window.modules.define.bind(window.modules):function(e,t){window[e]=t()},e("unipika",r((function(e){"use strict";return e(s)})))}return s}},50629:e=>{e.exports=function(){function e(e,t){return"yson"===t.format?"%"+e.$value:e.$value}return e.isScalar=!0,e}},66668:(e,t,i)=>{e.exports=i(64066)},64066:e=>{e.exports=function(){function e(e,t){let i=e.$value;return"function"===typeof t.customNumberFormatter&&(i=t.customNumberFormatter(e.$value,e.$type)),i}return e.isScalar=!0,e}},34529:(e,t,i)=>{e.exports=function(e){const t=i(94297),s=i(76319)(e);return function(e,i,n){let r="";const o=e.$value,a=o.length;return t.drawFullView(a,i)?(r+=t.ARRAY_START+t.getIndent(i,n),r+=s(o,i,n),r+=t.getIndent(i,n-1)+t.ARRAY_END):t.drawCompactView(a,i)?(r+=t.ARRAY_START,r+=s(o,i,n-1),r+=t.ARRAY_END):r+=t.ARRAY_START+t.ARRAY_END,r}}},8603:(e,t,i)=>{e.exports=function(e){const t=i(94297),s=i(83823)(e);return function(e,i,n){let r="";const o=e.$value,a=o.length;return t.drawFullView(a,i)?(r+=t.OBJECT_START+t.getIndent(i,n),r+=s(o,i,n),r+=t.getIndent(i,n-1)+t.OBJECT_END):t.drawCompactView(a,i)?(r+=t.OBJECT_START,r+=s(o,i,n-1),r+=t.OBJECT_END):r+=t.OBJECT_START+t.OBJECT_END,r}}},17184:e=>{e.exports=function(){function e(e,t){return"yson"===t.format?"#":e.$value}return e.isScalar=!0,e}},94484:(e,t,i)=>{e.exports=i(64066)},88608:(e,t,i)=>{e.exports=function(){const e=i(94297);function t(t,i){return"json"===t.format?e.escapeJSONString(t,i):e.escapeYSONString(t,i)}function s(i,s){let n,r;return i.$key&&"yson"===s.format?(n=e.unescapeKeyValue(i.$value),r=e.unescapeKeyValue(i.$decoded_value)):(n=i.$value,r=i.$decoded_value),i.$binary?s.binaryAsHex?e.escapeYSONBinaryString(s,n):t(s,n):s.showDecoded?e.escapeJSONString(s,r):t(s,n)}return s.isScalar=!0,s}},57233:(e,t,i)=>{e.exports=function(e){const t=i(94297);function s(e){return"yql_tagged"+t.WHITESPACE+"tagged"+t.WHITESPACE+"tag_"+e}function n(e,i,s){return"url"===e?t.normalizeUrl(i,s):"data:"+t.escape(e)+";base64,"+t.escape(i)}function r(e){return function(i,r){return function(e,i,r={}){const{asHTML:o}=r;function a(e,t){return'<img class="'+s("image")+'" src="'+e+'"'+(t?'" style="'+t+'"':"")+"/>"}return"tag_value"===e.$type?function(){const s=n(i,e.$value.src,r);if(!o)return s;const c={width:e.$value.width,height:e.$value.height,"max-width":e.$value.maxWidth,"max-height":e.$value.maxHeight},l=["width","height","max-width","max-height"].map((function(e){const t=c[e];return t?e+":"+(isNaN(t)?t:t+"px"):""})).filter(Boolean).join(";");return a(s,t.escape(l))}():function(){const t=n(i,e.$value,r);return o?a(t):t}()}(i,e,r)}}function o(e){return function(i,r){return function(e,i,r){const{asHTML:o}=r;function a(e,t){return'<video class="'+s("video")+'" controls src="'+e+'"'+(t?' style="'+t+'"':"")+"></video>"}return"tag_value"===e.$type?function(){const s=n(i,e.$value.src,r);if(!o)return s;const c={width:e.$value.width,height:e.$value.height,"max-width":e.$value.maxWidth,"max-height":e.$value.maxHeight},l=["width","height","max-width","max-height"].map((function(e){const t=c[e];return t?e+":"+(isNaN(t)?t:t+"px"):""})).filter(Boolean).join(";");return a(s,t.escape(l))}():function(){const t=n(i,e.$value,r);return o?a(t):t}()}(i,e,r)}}function a(e){return function(i,r){return function(e,i,r){const{asHTML:o}=r,a=s("audio"),c=n(i,e,r);return o?'<audio class="'+a+'" controls src="'+c+'"></audio>':t.escape(e)}(i.$value,e,r)}}const c={"image/svg":r("image/svg+xml"),"image/svg+xml":r("image/svg+xml"),"image/jpeg":r("image/jpeg"),"image/png":r("image/png"),"image/gif":r("image/gif"),"image/webp":r("image/webp"),imageurl:r("url"),"video/mp4":o("video/mp4"),"video/webm":o("video/webm"),videourl:o("url"),"audio/mpeg":a("audio/mpeg"),"audio/webm":a("audio/webm"),"audio/wav":a("audio/wav"),audiourl:a("url"),url:function(i,n,r){function o(e,i,n){return'<a class="'+s("url")+'" target="_blank" href="'+e+'"'+(n?' title="'+t.escape(n)+'"':"")+">"+i+"</a>"}if(n.asHTML){if("tag_value"===i.$type)return function(){const e=t.escape(i.$value.text||i.$value.href);return o(t.normalizeUrl(i.$value.href||"",n),e,i.$value.title)}();if("string"===typeof i.$value)return function(){const e=t.escape(i.$value);return o(t.normalizeUrl(i.$value,n),e,"")}()}return e(i,n,r)}};return function(t,i,s){return(c[t.$tag]||e)(t.$value,i,s)}}},2539:e=>{e.exports=function(){function e(e,t){const i=e.$value;return"function"===typeof t.customNumberFormatter?t.customNumberFormatter(e.$value,e.$type):"yson"===t.format?i+"u":i}return e.isScalar=!0,e}},43932:(e,t,i)=>{e.exports=i(50629)},84316:e=>{e.exports=function(){function e(e){const t=864e5*Number(e.$value),i=new Date(t),s=i.getFullYear();return s<=0&&i.setFullYear(s-1),isNaN(i.valueOf())?"Invalid date":i.toISOString().split("T")[0]}return e.isScalar=!0,e}},20897:e=>{e.exports=function(){function e(e){const t=1e3*Number(e.$value),i=new Date(t),s=i.getFullYear();return s<=0&&i.setFullYear(s-1),isNaN(i.valueOf())?"Invalid datetime":i.toISOString().replace(/\.\d{3}Z$/,"Z")}return e.isScalar=!0,e}},46133:(e,t,i)=>{e.exports=i(64066)},9208:(e,t,i)=>{e.exports=i(8603)},21377:(e,t,i)=>{e.exports=i(64066)},36317:e=>{e.exports=function(){function e(e){return e.$value}return e.isScalar=!0,e}},38785:(e,t,i)=>{e.exports=i(64066)},37301:(e,t,i)=>{e.exports=function(){const e=i(94297),t=[{name:"microsecond",divisor:1e6},{name:"second",divisor:60},{name:"minute",divisor:60},{name:"hour",divisor:24},{name:"day"}];function s(i){const s=Number(i.$value)<0?"-":"";let n=Math.abs(i.$value);if(0===n)return"0";return s+t.map((function(e){let t=n;return e.divisor?(t=n%e.divisor,n=Math.floor(n/e.divisor)):(t=n,n=0),[t,e.name]})).reverse().filter((function(e){return e[0]>0})).map((function(t){const i=t[0],s=i>1?"s":"";return i+e.NON_BREAKING_WHITESPACE+t[1]+s})).join(e.WHITESPACE)}return s.isScalar=!0,s}},92778:(e,t,i)=>{e.exports=function(e){const t=i(94297),s=i(34420);return function(i,n,r){n=Object.assign({},n,{format:t.JSON,showDecoded:!1,compact:!1,escapeWhitespace:!0});let o=i.$value;try{o=JSON.parse(i.$value)}catch(a){console.error("Invalid JSON string",i.$value)}return e(s(o,n),n,r)}}},56976:(e,t,i)=>{e.exports=i(34529)},80449:(e,t,i)=>{e.exports=i(17184)},14853:e=>{e.exports=function(){function e(e){return String(e.$value)}return e.isScalar=!0,e}},35762:(e,t,i)=>{e.exports=function(e){const t=i(94297),s=i(76319)(e);function n(e,i,n){let r="";const o=e.$value,a=o.length;return t.drawFullView(a,i)?(r+="{"+t.getIndent(i,n),r+=s(o,i,n),r+=t.getIndent(i,n-1)+"}"):t.drawCompactView(a,i)?(r+="{",r+=s(o,i,n),r+="}"):r+="{}",r}return n.isScalar=!0,n}},89896:(e,t,i)=>{e.exports=i(34529)},96409:(e,t,i)=>{e.exports=function(){const e=i(94297);function t(t,i){return t.$binary?i.binaryAsHex?e.escapeYQLBinaryString(i,t.$value):atob(t.$value):i.escapeYQLStrings?e.escapeJSONString(i,t.$value):e.escapeHTMLString(i,t.$value)}return t.isScalar=!0,t}},23157:(e,t,i)=>{e.exports=function(e){const t=i(94297),s=i(83823)(e);return function(e,i,n){let r="";const o=e.$value,a=o.length;return t.drawFullView(a,i)?(r+="("+t.getIndent(i,n),r+=s(o,i,n),r+=t.getIndent(i,n-1)+")"):t.drawCompactView(a,i)?(r+="(",r+=s(o,i,n-1),r+=")"):r+="()",r}}},74688:(e,t,i)=>{e.exports=i(57233)},75162:(e,t,i)=>{e.exports=function(){const e=i(94297);function t(t){try{const i=BigInt(t.$value),s=BigInt(1e3),n=i%s,r=new Date(Number(i/s)),o=r.getFullYear();return o<=0&&r.setFullYear(o-1),r.toISOString().replace("Z","")+function(t){const i=String(t);return e.repeatChar("0",3-i.length)+i}(n)+"Z"}catch(i){return"Invalid timestamp"}}return t.isScalar=!0,t}},21152:(e,t,i)=>{e.exports=function(e){const t=i(94297),s=i(76319)(e);return function(e,i,n){let r="";const o=e.$value,a=o.length;return t.drawFullView(a,i)?(r+="("+t.getIndent(i,n),r+=s(o,i,n),r+=t.getIndent(i,n-1)+")"):t.drawCompactView(a,i)?(r+="(",r+=s(o,i,n),r+=")"):r+="()",r}}},29818:e=>{e.exports=function(){function e(e){return e.$value}return e.isScalar=!0,e}},93599:e=>{e.exports=function(){function e(e){return e.$value}return e.isScalar=!0,e}},79928:e=>{e.exports=function(){function e(e){return e.$value}return e.isScalar=!0,e}},10602:(e,t,i)=>{e.exports=i(2539)},37035:(e,t,i)=>{e.exports=i(96409)},25783:(e,t,i)=>{e.exports=function(){const e=i(94297),t=[{length:4,reverse:!0},{length:2,reverse:!0},{length:2,reverse:!0},{length:2,reverse:!1},{length:6,reverse:!1}];function s(i){let s=0;const n=[],r=i.$binary?atob(i.$value):i.$value;return t.forEach((function(t){const i=r.substr(s,t.length).split(e.EMPTY_STRING).map((function(t){return e.toPaddedHex(t.charCodeAt(0),2)}));s+=t.length,t.reverse&&i.reverse(),n.push(i.join(e.EMPTY_STRING))})),n.join("-")}return s.isScalar=!0,s}},10411:(e,t,i)=>{e.exports=function(e){const t=i(83823)(e);return function(e,i,s){const n=e.$value;return t(n,i,s-1)}}},41893:(e,t,i)=>{e.exports=function(e){const t=i(94297),s=i(1019);return function(i,n,r){return(n=JSON.parse(JSON.stringify(n))).format=t.YSON,e(s(i.$value,n),n,r)}}},27769:e=>{e.exports=function(){return"Unipika Pika!"}},94297:e=>{!function(){"use strict";function t(e,t){let i="";for(let s=0;s<t;s++)i+=e;return i}function i(e,i){return(t("0",i)+e.toString(16)).substr(-i)}function s(e,i){return(t("0",i)+e.toString(8)).substr(-i)}function n(e,t,i){return!(i<t-1&&(s=e[i+1],s>="0"&&s<="7"));var s}function r(e,t,i){return!(i<t-1&&(s=e[i+1],s>="0"&&s<="9"||s>="a"&&s<="f"||s>="A"&&s<="F"));var s}const o="json",a="yson",c=" ",l="\xa0",h=function(e){const t=function(t){return e[t]},i="(?:"+Object.keys(e).join("|")+")",s=RegExp(i),n=RegExp(i,"g");return function(e){return e=null===e?"":String(e),s.test(e)?e.replace(n,t):e}},d=h({"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"}),u=h({"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"});function g(e,t,i){return 0===i||i===t-1||(" "===e[i-1]||" "===e[i+1])}function p(e,t,i){return t&&(e=d(e),i||(e='<span class="escape">'+e)),e}function m(e,t,i){return t&&(e=d(e),i&&(e="</span>"+e)),e}function f(e,t){let i='"';return e&&(i='<span class="quote">'+d(i)+"</span>",t&&(i="</span>"+i)),i}function _(e,t){return t.split("").map((function(e){const t=e.charCodeAt(0);if(t>255)throw new Error("unipika: input string is not binary.");return i(t,2)})).join(e.nonBreakingIndent?l:c)}function v(e){return e.format===a?";":","}const C=new Set(["A","B","C","D","E","G","I","N","P","R","S","T","U","V","X","Z"]);e.exports={parseSetting:function(e,t,i){return e&&"undefined"!==typeof e[t]?e[t]:i},repeatChar:t,escapeJSONString:function(e,t){const s=t,n=t.length,r=e.asHTML;let o,a,c,l="",h=!1;l+=f(r,h);for(let u=0;u<n;u++)o=s.charAt(u),a=s.charCodeAt(u),'"'===o||"\\"===o?(c="\\"+o,l+=m(c,r,h),h=!1):"\n"===o||"\t"===o?e.escapeWhitespace?(c={"\n":"\\n","\t":"\\t"}[o],l+=p(c,r,h),h=!0):(l+=m(o,r,h),h=!1):"\b"===o||"\f"===o||"\r"===o?(c={"\b":"\\b","\f":"\\f","\r":"\\r"}[o],l+=p(c,r,h),h=!0):(d=a)<32&&d>=0||d>=127&&d<=159?(c="\\u"+i(a,4),e.highlightControlCharacter?(l+=p(c,r,h),h=!0):(l+=m(c,r,h),h=!1)):" "===o&&e.escapeWhitespace&&g(s,n,u)?(c=" ",l+=p(c,r,h),h=!0):(l+=m(o,r,h),h=!1);var d;return l+=f(r,h),l},escapeYSONString:function(e,t){const o=t,a=t.length,c=e.asHTML;let l,h,d,u="",_=!1;u+=f(c,_);for(let f=0;f<a;f++)l=o.charAt(f),h=o.charCodeAt(f),'"'===l||"\\"===l?(d="\\"+l,u+=m(d,c,_),_=!1):"\r"===l?(d={"\r":"\\r"}[l],u+=p(d,c,_),_=!0):"\n"===l||"\t"===l?e.escapeWhitespace?(d={"\n":"\\n","\t":"\\t"}[l],u+=p(d,c,_),_=!0):(u+=m(l,c,_),_=!1):h<=126&&h>=32?" "===l&&e.escapeWhitespace&&g(o,a,f)?(d=" ",u+=p(d,c,_),_=!0):(u+=m(l,c,_),_=!1):h<8&&h>=0&&n(o,a,f)?(d="\\"+s(h,1),u+=m(d,c,_),_=!1):r(o,a,f)?(d="\\x"+i(h,2),u+=m(d,c,_),_=!1):(d="\\"+s(h,3),u+=m(d,c,_),_=!1);return u+=f(c,_),u},escapeHTMLString:function(e,t){const i=t,s=t.length,n=e.asHTML;let r,o="";o+=f(n,!1);for(let a=0;a<s;a++)r=i.charAt(a),o+=m(r,n,!1);return o+=f(n,!1),o},escapeYSONBinaryString:function(e,t){return _(e,t)},escapeYQLBinaryString:function(e,t){return _(e,atob(t))},unescapeKeyValue:function(e){return"string"===typeof e?e.replace(/^\$\$/,"$"):e},returnAsIs:function(e,t){return t},escape:d,unescape:u,normalizeUrl:function(e,t){try{return t.normalizeUrl?t.normalizeUrl(e):encodeURI(e)}catch(i){return console.error("unipika: An error occured during normalizeUrl call",{url:e},i),""}},getAttributesEnd:function(e){return e.format===o?"}"+v(e):e.format===a?">":void 0},getAttributesStart:function(e){return e.format===o?"{":e.format===a?"<":void 0},getKeyValueSeparator:function(e){const t=e.nonBreakingIndent?l:c;return e.format===a?t+"="+t:":"+t},getExpressionTerminator:v,getIndent:function(e,i){const s=e.nonBreakingIndent?l:c;return(e.break?"\n":"")+t(s,e.indent*i)},OBJECT_START:"{",OBJECT_END:"}",ARRAY_START:"[",ARRAY_END:"]",YSON_ATTRIBUTES_START:"<",YSON_ATTRIBUTES_END:">",JSON_EXPRESSION_TERMINATOR:",",JSON_KEY_VALUE_SEPARATOR:": ",EMPTY_STRING:"",WHITESPACE:c,NON_BREAKING_WHITESPACE:l,LINE_FEED:"\n",JSON:o,YSON:a,drawFullView:function(e,t){return e>1||1===e&&!t.compact},drawCompactView:function(e,t){return 1===e&&t.compact},wrapScalar:function(e,t,i){let s=e.$type.replaceAll(".","_"),n="";var r;return(r=e.$category)&&C.has(r.toUpperCase())&&(s+=" pg_category_"+e.$category.toLowerCase()),e.$incomplete&&(s+=" incomplete"),e.$binary&&(s+=" binary"),e.$key&&(s+=" key"),e.$special_key&&(s+=" special-key"),e.$incomplete&&e.$original_value&&(n=e.$original_value),t.asHTML?"<span"+(n?' title="'+d(n)+'"':"")+' class="'+s+'">'+i+"</span>":i},wrapComplex:function(e,t,i){let s="",n="";return e.$incomplete&&(s+=" incomplete"),e.$incomplete&&e.$original_value&&(n=e.$original_value),"yql.yson"===e.$type&&e.$incomplete?t.asHTML&&s?'<span class="'+s+'"></span>':i:t.asHTML&&s?"<span"+(n?' title="'+d(n)+'"':"")+' class="'+s+'">'+i+"</span>":i},wrapOptional:function(e,t,i){if(e.$optional>0&&null===e.$value){const s=new Array(e.$optional).fill("[").join(""),n=new Array(e.$optional).fill("]").join("");return t.asHTML?'<span class="optional">'+s+"</span>"+i+'<span class="optional">'+n+"</span>":s+i+n}return i},toPaddedHex:i,toPaddedOctal:s,binaryToHex:_}}()},76319:(e,t,i)=>{e.exports=function(e){const t=i(94297);return function(i,s,n){const r=s.limitListLength>0&&i.length>s.limitListLength;return(r?i.slice(0,s.limitListLength-1):i).map((function(t){return e(t,s,n+1)})).concat(r?["... "+(i.length-s.limitListLength+1)+" hidden items"]:[]).join(t.getExpressionTerminator(s)+t.getIndent(s,n))}}},83823:(e,t,i)=>{e.exports=function(e){const t=i(94297),s={string:null,"yql.string":null};function n(e,t){const i=e[0],n=t[0];return(Object.prototype.hasOwnProperty.call(s,i.$type)&&Object.prototype.hasOwnProperty.call(s,n.$type)&&i.$value)>n.$value?1:-1}return function(i,s,r){let o=i.slice().sort(n);const a=s.limitMapLength>0&&i.length>s.limitMapLength;return a&&(o=o.slice(0,s.limitMapLength-1)),o.map((function(i){let n="";return n+=e(i[0],s,r+1),n+=t.getKeyValueSeparator(s),n+=e(i[1],s,r+1),n})).concat(a?["... "+(i.length-s.limitMapLength+1)+" hidden keys"]:[]).join(t.getExpressionTerminator(s)+t.getIndent(s,r))}}},85858:e=>{!function(){"use strict";const t=function(e){if(void 0===e)return"undefined";if(null===e)return"null";if(e&&(1===e.nodeType||9===e.nodeType))return"element";const t=Object.prototype.toString.call(e),i=t.substring(8,t.length-1).toLowerCase();if("number"===i){if(isNaN(e))return"nan";if(!isFinite(e))return"infinity"}return i},i=["Null","Undefined","Object","Array","String","Number","Boolean","Function","RegExp","Element","NaN","Infinite","Symbol"],s=function(e){t["is"+e]=function(i){return t(i)===e.toLowerCase()}};for(let e=0;e<i.length;e++)s(i[e]);e.exports=t}()},1449:(e,t,i)=>{!function(){"use strict";const t=i(59170);e.exports={encode:t.encode,decode:t.decode}}()},76531:(e,t,i)=>{!function(){"use strict";const t=i(85858),s="$type",n="$value",r="$attributes";function o(e,t){return e&&Object.prototype.hasOwnProperty.call(e,t)&&"undefined"!==typeof e[t]}function a(e){return o(e,n)?e[n]:e}e.exports={hasSpecialProperty:o,attributes:function(e){return o(e,r)?e[r]:{}},value:a,type:function(e){return o(e,s)?e[s]:t(a(e))},ATTRIBUTES_KEY:r,VALUE_KEY:n,TYPE_KEY:s,INCOMPLETE_KEY:"$incomplete",BINARY_KEY:"$binary"}}()},59170:function(e,t,i){var s;e=i.nmd(e),function(){var n=t,r=(e&&e.exports,"object"==typeof i.g&&i.g);r.global!==r&&r.window;var o,a,c,l,h=String.fromCharCode;function d(e){for(var t,i,s=[],n=0,r=e.length;n<r;)(t=e.charCodeAt(n++))>=55296&&t<=56319&&n<r?56320==(64512&(i=e.charCodeAt(n++)))?s.push(((1023&t)<<10)+(1023&i)+65536):(s.push(t),n--):s.push(t);return s}function u(e){if(e>=55296&&e<=57343)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value")}function g(e,t){return h(e>>t&63|128)}function p(e){if(0==(4294967168&e))return h(e);var t="";return 0==(4294965248&e)?t=h(e>>6&31|192):0==(4294901760&e)?(u(e),t=h(e>>12&15|224),t+=g(e,6)):0==(4292870144&e)&&(t=h(e>>18&7|240),t+=g(e,12),t+=g(e,6)),t+=h(63&e|128)}function m(){if(c>=a){if(l)return!1;throw Error("Invalid byte index")}var e=255&o[c];if(c++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function f(){var e,t,i,s,n;if(c>a)throw Error("Invalid byte index");if(c==a)return!1;if(e=255&o[c],c++,0==(128&e))return e;if(192==(224&e)){if(!1===(t=m()))return!1;if((n=(31&e)<<6|t)>=128)return n;throw Error("Invalid continuation byte")}if(224==(240&e)){if(t=m(),!1===(i=m()))return!1;if((n=(15&e)<<12|t<<6|i)>=2048)return u(n),n;throw Error("Invalid continuation byte")}if(240==(248&e)){if(t=m(),i=m(),!1===(s=m()))return!1;if((n=(7&e)<<18|t<<12|i<<6|s)>=65536&&n<=1114111)return n}throw Error("Invalid UTF-8 detected")}var _={version:"2.1.2",encode:function(e){for(var t=d(e),i=t.length,s=-1,n="";++s<i;)n+=p(t[s]);return n},decode:function(e,t){l="undefined"!=typeof t&&t.allowTruncatedEnd,o=d(e),a=o.length,c=0;for(var i,s=[];!1!==(i=f());)s.push(i);return function(e){for(var t,i=e.length,s=-1,n="";++s<i;)(t=e[s])>65535&&(n+=h((t-=65536)>>>10&1023|55296),t=56320|1023&t),n+=h(t);return n}(s)}};void 0===(s=function(){return _}.call(t,i,t,e))||(e.exports=s)}()},70206:(e,t)=>{var i;i=function(e){e.version="1.2.2";var t=function(){for(var e=0,t=new Array(256),i=0;256!=i;++i)e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=i)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1,t[i]=e;return"undefined"!==typeof Int32Array?new Int32Array(t):t}(),i=function(e){var t=0,i=0,s=0,n="undefined"!==typeof Int32Array?new Int32Array(4096):new Array(4096);for(s=0;256!=s;++s)n[s]=e[s];for(s=0;256!=s;++s)for(i=e[s],t=256+s;t<4096;t+=256)i=n[t]=i>>>8^e[255&i];var r=[];for(s=1;16!=s;++s)r[s-1]="undefined"!==typeof Int32Array?n.subarray(256*s,256*s+256):n.slice(256*s,256*s+256);return r}(t),s=i[0],n=i[1],r=i[2],o=i[3],a=i[4],c=i[5],l=i[6],h=i[7],d=i[8],u=i[9],g=i[10],p=i[11],m=i[12],f=i[13],_=i[14];e.table=t,e.bstr=function(e,i){for(var s=~i,n=0,r=e.length;n<r;)s=s>>>8^t[255&(s^e.charCodeAt(n++))];return~s},e.buf=function(e,i){for(var v=~i,C=e.length-15,E=0;E<C;)v=_[e[E++]^255&v]^f[e[E++]^v>>8&255]^m[e[E++]^v>>16&255]^p[e[E++]^v>>>24]^g[e[E++]]^u[e[E++]]^d[e[E++]]^h[e[E++]]^l[e[E++]]^c[e[E++]]^a[e[E++]]^o[e[E++]]^r[e[E++]]^n[e[E++]]^s[e[E++]]^t[e[E++]];for(C+=15;E<C;)v=v>>>8^t[255&(v^e[E++])];return~v},e.str=function(e,i){for(var s=~i,n=0,r=e.length,o=0,a=0;n<r;)(o=e.charCodeAt(n++))<128?s=s>>>8^t[255&(s^o)]:o<2048?s=(s=s>>>8^t[255&(s^(192|o>>6&31))])>>>8^t[255&(s^(128|63&o))]:o>=55296&&o<57344?(o=64+(1023&o),a=1023&e.charCodeAt(n++),s=(s=(s=(s=s>>>8^t[255&(s^(240|o>>8&7))])>>>8^t[255&(s^(128|o>>2&63))])>>>8^t[255&(s^(128|a>>6&15|(3&o)<<4))])>>>8^t[255&(s^(128|63&a))]):s=(s=(s=s>>>8^t[255&(s^(224|o>>12&15))])>>>8^t[255&(s^(128|o>>6&63))])>>>8^t[255&(s^(128|63&o))];return~s}},"undefined"===typeof DO_NOT_EXPORT_CRC?i(t):i({})},7252:(e,t,i)=>{var s,n=n||{version:"5.4.2"};if(t.fabric=n,"undefined"!==typeof document&&"undefined"!==typeof window)document instanceof("undefined"!==typeof HTMLDocument?HTMLDocument:Document)?n.document=document:n.document=document.implementation.createHTMLDocument(""),n.window=window;else{var r=new(i(66574).JSDOM)(decodeURIComponent("%3C!DOCTYPE%20html%3E%3Chtml%3E%3Chead%3E%3C%2Fhead%3E%3Cbody%3E%3C%2Fbody%3E%3C%2Fhtml%3E"),{features:{FetchExternalResources:["img"]},resources:"usable"}).window;n.document=r.document,n.jsdomImplForWrapper=i(2748).implForWrapper,n.nodeCanvas=i(52246).Canvas,n.window=r,DOMParser=n.window.DOMParser}function o(e,t){var i=e.canvas,s=t.targetCanvas,n=s.getContext("2d");n.translate(0,s.height),n.scale(1,-1);var r=i.height-s.height;n.drawImage(i,0,r,s.width,s.height,0,0,s.width,s.height)}function a(e,t){var i=t.targetCanvas.getContext("2d"),s=t.destinationWidth,n=t.destinationHeight,r=s*n*4,o=new Uint8Array(this.imageBuffer,0,r),a=new Uint8ClampedArray(this.imageBuffer,0,r);e.readPixels(0,0,s,n,e.RGBA,e.UNSIGNED_BYTE,o);var c=new ImageData(a,s,n);i.putImageData(c,0,0)}n.isTouchSupported="ontouchstart"in n.window||"ontouchstart"in n.document||n.window&&n.window.navigator&&n.window.navigator.maxTouchPoints>0,n.isLikelyNode="undefined"!==typeof Buffer&&"undefined"===typeof window,n.SHARED_ATTRIBUTES=["display","transform","fill","fill-opacity","fill-rule","opacity","stroke","stroke-dasharray","stroke-linecap","stroke-dashoffset","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","id","paint-order","vector-effect","instantiated_by_use","clip-path"],n.DPI=96,n.reNum="(?:[-+]?(?:\\d+|\\d*\\.\\d+)(?:[eE][-+]?\\d+)?)",n.commaWsp="(?:\\s+,?\\s*|,\\s*)",n.rePathCommand=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:[eE][-+]?\d+)?)/gi,n.reNonWord=/[ \n\.,;!\?\-]/,n.fontPaths={},n.iMatrix=[1,0,0,1,0,0],n.svgNS="http://www.w3.org/2000/svg",n.perfLimitSizeTotal=2097152,n.maxCacheSideLimit=4096,n.minCacheSideLimit=256,n.charWidthsCache={},n.textureSize=2048,n.disableStyleCopyPaste=!1,n.enableGLFiltering=!0,n.devicePixelRatio=n.window.devicePixelRatio||n.window.webkitDevicePixelRatio||n.window.mozDevicePixelRatio||1,n.browserShadowBlurConstant=1,n.arcToSegmentsCache={},n.boundsOfCurveCache={},n.cachesBoundsOfCurve=!0,n.forceGLPutImageData=!1,n.initFilterBackend=function(){return n.enableGLFiltering&&n.isWebglSupported&&n.isWebglSupported(n.textureSize)?(console.log("max texture size: "+n.maxTextureSize),new n.WebglFilterBackend({tileSize:n.textureSize})):n.Canvas2dFilterBackend?new n.Canvas2dFilterBackend:void 0},"undefined"!==typeof document&&"undefined"!==typeof window&&(window.fabric=n),function(){function e(e,t){if(this.__eventListeners[e]){var i=this.__eventListeners[e];t?i[i.indexOf(t)]=!1:n.util.array.fill(i,!1)}}function t(e,t){var i=function(){t.apply(this,arguments),this.off(e,i)}.bind(this);this.on(e,i)}n.Observable={fire:function(e,t){if(!this.__eventListeners)return this;var i=this.__eventListeners[e];if(!i)return this;for(var s=0,n=i.length;s<n;s++)i[s]&&i[s].call(this,t||{});return this.__eventListeners[e]=i.filter((function(e){return!1!==e})),this},on:function(e,t){if(this.__eventListeners||(this.__eventListeners={}),1===arguments.length)for(var i in e)this.on(i,e[i]);else this.__eventListeners[e]||(this.__eventListeners[e]=[]),this.__eventListeners[e].push(t);return this},once:function(e,i){if(1===arguments.length)for(var s in e)t.call(this,s,e[s]);else t.call(this,e,i);return this},off:function(t,i){if(!this.__eventListeners)return this;if(0===arguments.length)for(t in this.__eventListeners)e.call(this,t);else if(1===arguments.length&&"object"===typeof arguments[0])for(var s in t)e.call(this,s,t[s]);else e.call(this,t,i);return this}}}(),n.Collection={_objects:[],add:function(){if(this._objects.push.apply(this._objects,arguments),this._onObjectAdded)for(var e=0,t=arguments.length;e<t;e++)this._onObjectAdded(arguments[e]);return this.renderOnAddRemove&&this.requestRenderAll(),this},insertAt:function(e,t,i){var s=this._objects;return i?s[t]=e:s.splice(t,0,e),this._onObjectAdded&&this._onObjectAdded(e),this.renderOnAddRemove&&this.requestRenderAll(),this},remove:function(){for(var e,t=this._objects,i=!1,s=0,n=arguments.length;s<n;s++)-1!==(e=t.indexOf(arguments[s]))&&(i=!0,t.splice(e,1),this._onObjectRemoved&&this._onObjectRemoved(arguments[s]));return this.renderOnAddRemove&&i&&this.requestRenderAll(),this},forEachObject:function(e,t){for(var i=this.getObjects(),s=0,n=i.length;s<n;s++)e.call(t,i[s],s,i);return this},getObjects:function(e){return"undefined"===typeof e?this._objects.concat():this._objects.filter((function(t){return t.type===e}))},item:function(e){return this._objects[e]},isEmpty:function(){return 0===this._objects.length},size:function(){return this._objects.length},contains:function(e,t){return this._objects.indexOf(e)>-1||!!t&&this._objects.some((function(t){return"function"===typeof t.contains&&t.contains(e,!0)}))},complexity:function(){return this._objects.reduce((function(e,t){return e+=t.complexity?t.complexity():0}),0)}},n.CommonMethods={_setOptions:function(e){for(var t in e)this.set(t,e[t])},_initGradient:function(e,t){!e||!e.colorStops||e instanceof n.Gradient||this.set(t,new n.Gradient(e))},_initPattern:function(e,t,i){!e||!e.source||e instanceof n.Pattern?i&&i():this.set(t,new n.Pattern(e,i))},_setObject:function(e){for(var t in e)this._set(t,e[t])},set:function(e,t){return"object"===typeof e?this._setObject(e):this._set(e,t),this},_set:function(e,t){this[e]=t},toggle:function(e){var t=this.get(e);return"boolean"===typeof t&&this.set(e,!t),this},get:function(e){return this[e]}},function(e){var t=Math.sqrt,i=Math.atan2,s=Math.pow,r=Math.PI/180,o=Math.PI/2;n.util={cos:function(e){if(0===e)return 1;switch(e<0&&(e=-e),e/o){case 1:case 3:return 0;case 2:return-1}return Math.cos(e)},sin:function(e){if(0===e)return 0;var t=1;switch(e<0&&(t=-1),e/o){case 1:return t;case 2:return 0;case 3:return-t}return Math.sin(e)},removeFromArray:function(e,t){var i=e.indexOf(t);return-1!==i&&e.splice(i,1),e},getRandomInt:function(e,t){return Math.floor(Math.random()*(t-e+1))+e},degreesToRadians:function(e){return e*r},radiansToDegrees:function(e){return e/r},rotatePoint:function(e,t,i){var s=new n.Point(e.x-t.x,e.y-t.y),r=n.util.rotateVector(s,i);return new n.Point(r.x,r.y).addEquals(t)},rotateVector:function(e,t){var i=n.util.sin(t),s=n.util.cos(t);return{x:e.x*s-e.y*i,y:e.x*i+e.y*s}},createVector:function(e,t){return new n.Point(t.x-e.x,t.y-e.y)},calcAngleBetweenVectors:function(e,t){return Math.acos((e.x*t.x+e.y*t.y)/(Math.hypot(e.x,e.y)*Math.hypot(t.x,t.y)))},getHatVector:function(e){return new n.Point(e.x,e.y).multiply(1/Math.hypot(e.x,e.y))},getBisector:function(e,t,i){var s=n.util.createVector(e,t),r=n.util.createVector(e,i),o=n.util.calcAngleBetweenVectors(s,r),a=o*(0===n.util.calcAngleBetweenVectors(n.util.rotateVector(s,o),r)?1:-1)/2;return{vector:n.util.getHatVector(n.util.rotateVector(s,a)),angle:o}},projectStrokeOnPoints:function(e,t,i){var s=[],r=t.strokeWidth/2,o=t.strokeUniform?new n.Point(1/t.scaleX,1/t.scaleY):new n.Point(1,1),a=function(e){var t=r/Math.hypot(e.x,e.y);return new n.Point(e.x*t*o.x,e.y*t*o.y)};return e.length<=1||e.forEach((function(c,l){var h,d,u=new n.Point(c.x,c.y);0===l?(d=e[l+1],h=i?a(n.util.createVector(d,u)).addEquals(u):e[e.length-1]):l===e.length-1?(h=e[l-1],d=i?a(n.util.createVector(h,u)).addEquals(u):e[0]):(h=e[l-1],d=e[l+1]);var g,p,m=n.util.getBisector(u,h,d),f=m.vector,_=m.angle;if("miter"===t.strokeLineJoin&&(g=-r/Math.sin(_/2),p=new n.Point(f.x*g*o.x,f.y*g*o.y),Math.hypot(p.x,p.y)/r<=t.strokeMiterLimit))return s.push(u.add(p)),void s.push(u.subtract(p));g=-r*Math.SQRT2,p=new n.Point(f.x*g*o.x,f.y*g*o.y),s.push(u.add(p)),s.push(u.subtract(p))})),s},transformPoint:function(e,t,i){return i?new n.Point(t[0]*e.x+t[2]*e.y,t[1]*e.x+t[3]*e.y):new n.Point(t[0]*e.x+t[2]*e.y+t[4],t[1]*e.x+t[3]*e.y+t[5])},makeBoundingBoxFromPoints:function(e,t){if(t)for(var i=0;i<e.length;i++)e[i]=n.util.transformPoint(e[i],t);var s=[e[0].x,e[1].x,e[2].x,e[3].x],r=n.util.array.min(s),o=n.util.array.max(s)-r,a=[e[0].y,e[1].y,e[2].y,e[3].y],c=n.util.array.min(a);return{left:r,top:c,width:o,height:n.util.array.max(a)-c}},invertTransform:function(e){var t=1/(e[0]*e[3]-e[1]*e[2]),i=[t*e[3],-t*e[1],-t*e[2],t*e[0]],s=n.util.transformPoint({x:e[4],y:e[5]},i,!0);return i[4]=-s.x,i[5]=-s.y,i},toFixed:function(e,t){return parseFloat(Number(e).toFixed(t))},parseUnit:function(e,t){var i=/\D{0,2}$/.exec(e),s=parseFloat(e);switch(t||(t=n.Text.DEFAULT_SVG_FONT_SIZE),i[0]){case"mm":return s*n.DPI/25.4;case"cm":return s*n.DPI/2.54;case"in":return s*n.DPI;case"pt":return s*n.DPI/72;case"pc":return s*n.DPI/72*12;case"em":return s*t;default:return s}},falseFunction:function(){return!1},getKlass:function(e,t){return e=n.util.string.camelize(e.charAt(0).toUpperCase()+e.slice(1)),n.util.resolveNamespace(t)[e]},getSvgAttributes:function(e){var t=["instantiated_by_use","style","id","class"];switch(e){case"linearGradient":t=t.concat(["x1","y1","x2","y2","gradientUnits","gradientTransform"]);break;case"radialGradient":t=t.concat(["gradientUnits","gradientTransform","cx","cy","r","fx","fy","fr"]);break;case"stop":t=t.concat(["offset","stop-color","stop-opacity"])}return t},resolveNamespace:function(t){if(!t)return n;var i,s=t.split("."),r=s.length,o=e||n.window;for(i=0;i<r;++i)o=o[s[i]];return o},loadImage:function(e,t,i,s){if(e){var r=n.util.createImage(),o=function(){t&&t.call(i,r,!1),r=r.onload=r.onerror=null};r.onload=o,r.onerror=function(){n.log("Error loading "+r.src),t&&t.call(i,null,!0),r=r.onload=r.onerror=null},0!==e.indexOf("data")&&void 0!==s&&null!==s&&(r.crossOrigin=s),"data:image/svg"===e.substring(0,14)&&(r.onload=null,n.util.loadImageInDom(r,o)),r.src=e}else t&&t.call(i,e)},loadImageInDom:function(e,t){var i=n.document.createElement("div");i.style.width=i.style.height="1px",i.style.left=i.style.top="-100%",i.style.position="absolute",i.appendChild(e),n.document.querySelector("body").appendChild(i),e.onload=function(){t(),i.parentNode.removeChild(i),i=null}},enlivenObjects:function(e,t,i,s){var r=[],o=0,a=(e=e||[]).length;function c(){++o===a&&t&&t(r.filter((function(e){return e})))}a?e.forEach((function(e,t){e&&e.type?n.util.getKlass(e.type,i).fromObject(e,(function(i,n){n||(r[t]=i),s&&s(e,i,n),c()})):c()})):t&&t(r)},enlivenObjectEnlivables:function(e,t,i){var s=n.Object.ENLIVEN_PROPS.filter((function(t){return!!e[t]}));n.util.enlivenObjects(s.map((function(t){return e[t]})),(function(e){var n={};s.forEach((function(i,s){n[i]=e[s],t&&(t[i]=e[s])})),i&&i(n)}))},enlivenPatterns:function(e,t){function i(){++r===o&&t&&t(s)}var s=[],r=0,o=(e=e||[]).length;o?e.forEach((function(e,t){e&&e.source?new n.Pattern(e,(function(e){s[t]=e,i()})):(s[t]=e,i())})):t&&t(s)},groupSVGElements:function(e,t,i){var s;return e&&1===e.length?("undefined"!==typeof i&&(e[0].sourcePath=i),e[0]):(t&&(t.width&&t.height?t.centerPoint={x:t.width/2,y:t.height/2}:(delete t.width,delete t.height)),s=new n.Group(e,t),"undefined"!==typeof i&&(s.sourcePath=i),s)},populateWithProperties:function(e,t,i){if(i&&Array.isArray(i))for(var s=0,n=i.length;s<n;s++)i[s]in e&&(t[i[s]]=e[i[s]])},createCanvasElement:function(){return n.document.createElement("canvas")},copyCanvasElement:function(e){var t=n.util.createCanvasElement();return t.width=e.width,t.height=e.height,t.getContext("2d").drawImage(e,0,0),t},toDataURL:function(e,t,i){return e.toDataURL("image/"+t,i)},createImage:function(){return n.document.createElement("img")},multiplyTransformMatrices:function(e,t,i){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],i?0:e[0]*t[4]+e[2]*t[5]+e[4],i?0:e[1]*t[4]+e[3]*t[5]+e[5]]},qrDecompose:function(e){var n=i(e[1],e[0]),o=s(e[0],2)+s(e[1],2),a=t(o),c=(e[0]*e[3]-e[2]*e[1])/a,l=i(e[0]*e[2]+e[1]*e[3],o);return{angle:n/r,scaleX:a,scaleY:c,skewX:l/r,skewY:0,translateX:e[4],translateY:e[5]}},calcRotateMatrix:function(e){if(!e.angle)return n.iMatrix.concat();var t=n.util.degreesToRadians(e.angle),i=n.util.cos(t),s=n.util.sin(t);return[i,s,-s,i,0,0]},calcDimensionsMatrix:function(e){var t="undefined"===typeof e.scaleX?1:e.scaleX,i="undefined"===typeof e.scaleY?1:e.scaleY,s=[e.flipX?-t:t,0,0,e.flipY?-i:i,0,0],r=n.util.multiplyTransformMatrices,o=n.util.degreesToRadians;return e.skewX&&(s=r(s,[1,0,Math.tan(o(e.skewX)),1],!0)),e.skewY&&(s=r(s,[1,Math.tan(o(e.skewY)),0,1],!0)),s},composeMatrix:function(e){var t=[1,0,0,1,e.translateX||0,e.translateY||0],i=n.util.multiplyTransformMatrices;return e.angle&&(t=i(t,n.util.calcRotateMatrix(e))),(1!==e.scaleX||1!==e.scaleY||e.skewX||e.skewY||e.flipX||e.flipY)&&(t=i(t,n.util.calcDimensionsMatrix(e))),t},resetObjectTransform:function(e){e.scaleX=1,e.scaleY=1,e.skewX=0,e.skewY=0,e.flipX=!1,e.flipY=!1,e.rotate(0)},saveObjectTransform:function(e){return{scaleX:e.scaleX,scaleY:e.scaleY,skewX:e.skewX,skewY:e.skewY,angle:e.angle,left:e.left,flipX:e.flipX,flipY:e.flipY,top:e.top}},isTransparent:function(e,t,i,s){s>0&&(t>s?t-=s:t=0,i>s?i-=s:i=0);var n,r=!0,o=e.getImageData(t,i,2*s||1,2*s||1),a=o.data.length;for(n=3;n<a&&!1!==(r=o.data[n]<=0);n+=4);return o=null,r},parsePreserveAspectRatioAttribute:function(e){var t,i="meet",s=e.split(" ");return s&&s.length&&("meet"!==(i=s.pop())&&"slice"!==i?(t=i,i="meet"):s.length&&(t=s.pop())),{meetOrSlice:i,alignX:"none"!==t?t.slice(1,4):"none",alignY:"none"!==t?t.slice(5,8):"none"}},clearFabricFontCache:function(e){(e=(e||"").toLowerCase())?n.charWidthsCache[e]&&delete n.charWidthsCache[e]:n.charWidthsCache={}},limitDimsByArea:function(e,t){var i=Math.sqrt(t*e),s=Math.floor(t/i);return{x:Math.floor(i),y:s}},capValue:function(e,t,i){return Math.max(e,Math.min(t,i))},findScaleToFit:function(e,t){return Math.min(t.width/e.width,t.height/e.height)},findScaleToCover:function(e,t){return Math.max(t.width/e.width,t.height/e.height)},matrixToSVG:function(e){return"matrix("+e.map((function(e){return n.util.toFixed(e,n.Object.NUM_FRACTION_DIGITS)})).join(" ")+")"},removeTransformFromObject:function(e,t){var i=n.util.invertTransform(t),s=n.util.multiplyTransformMatrices(i,e.calcOwnMatrix());n.util.applyTransformToObject(e,s)},addTransformToObject:function(e,t){n.util.applyTransformToObject(e,n.util.multiplyTransformMatrices(t,e.calcOwnMatrix()))},applyTransformToObject:function(e,t){var i=n.util.qrDecompose(t),s=new n.Point(i.translateX,i.translateY);e.flipX=!1,e.flipY=!1,e.set("scaleX",i.scaleX),e.set("scaleY",i.scaleY),e.skewX=i.skewX,e.skewY=i.skewY,e.angle=i.angle,e.setPositionByOrigin(s,"center","center")},sizeAfterTransform:function(e,t,i){var s=e/2,r=t/2,o=[{x:-s,y:-r},{x:s,y:-r},{x:-s,y:r},{x:s,y:r}],a=n.util.calcDimensionsMatrix(i),c=n.util.makeBoundingBoxFromPoints(o,a);return{x:c.width,y:c.height}},mergeClipPaths:function(e,t){var i=e,s=t;i.inverted&&!s.inverted&&(i=t,s=e),n.util.applyTransformToObject(s,n.util.multiplyTransformMatrices(n.util.invertTransform(i.calcTransformMatrix()),s.calcTransformMatrix()));var r=i.inverted&&s.inverted;return r&&(i.inverted=s.inverted=!1),new n.Group([i],{clipPath:s,inverted:r})},hasStyleChanged:function(e,t,i){return i=i||!1,e.fill!==t.fill||e.stroke!==t.stroke||e.strokeWidth!==t.strokeWidth||e.fontSize!==t.fontSize||e.fontFamily!==t.fontFamily||e.fontWeight!==t.fontWeight||e.fontStyle!==t.fontStyle||e.textBackgroundColor!==t.textBackgroundColor||e.deltaY!==t.deltaY||i&&(e.overline!==t.overline||e.underline!==t.underline||e.linethrough!==t.linethrough)},stylesToArray:function(e,t){e=n.util.object.clone(e,!0);for(var i=t.split("\n"),s=-1,r={},o=[],a=0;a<i.length;a++)if(e[a])for(var c=0;c<i[a].length;c++){s++;var l=e[a][c];if(l&&Object.keys(l).length>0)n.util.hasStyleChanged(r,l,!0)?o.push({start:s,end:s+1,style:l}):o[o.length-1].end++;r=l||{}}else s+=i[a].length;return o},stylesFromArray:function(e,t){if(!Array.isArray(e))return e;for(var i=t.split("\n"),s=-1,n=0,r={},o=0;o<i.length;o++)for(var a=0;a<i[o].length;a++)s++,e[n]&&e[n].start<=s&&s<e[n].end&&(r[o]=r[o]||{},r[o][a]=Object.assign({},e[n].style),s===e[n].end-1&&n++);return r}}}(t),function(){var e=Array.prototype.join,t={m:2,l:2,h:1,v:1,c:6,s:4,q:4,t:2,a:7},i={m:"l",M:"L"};function s(e,t,i,s,r,o,a,c,l,h,d){var u=n.util.cos(e),g=n.util.sin(e),p=n.util.cos(t),m=n.util.sin(t),f=i*r*p-s*o*m+a,_=s*r*p+i*o*m+c;return["C",h+l*(-i*r*g-s*o*u),d+l*(-s*r*g+i*o*u),f+l*(i*r*m+s*o*p),_+l*(s*r*m-i*o*p),f,_]}function r(e,t,i,s){var n=Math.atan2(t,e),r=Math.atan2(s,i);return r>=n?r-n:2*Math.PI-(n-r)}function o(e,t,i){for(var o=i[1],a=i[2],c=i[3],l=i[4],h=i[5],d=function(e,t,i,o,a,c,l){var h=Math.PI,d=l*h/180,u=n.util.sin(d),g=n.util.cos(d),p=0,m=0,f=-g*e*.5-u*t*.5,_=-g*t*.5+u*e*.5,v=(i=Math.abs(i))*i,C=(o=Math.abs(o))*o,E=_*_,b=f*f,S=v*C-v*E-C*b,y=0;if(S<0){var w=Math.sqrt(1-S/(v*C));i*=w,o*=w}else y=(a===c?-1:1)*Math.sqrt(S/(v*E+C*b));var R=y*i*_/o,L=-y*o*f/i,T=g*R-u*L+.5*e,x=u*R+g*L+.5*t,k=r(1,0,(f-R)/i,(_-L)/o),A=r((f-R)/i,(_-L)/o,(-f-R)/i,(-_-L)/o);0===c&&A>0?A-=2*h:1===c&&A<0&&(A+=2*h);for(var N=Math.ceil(Math.abs(A/h*2)),I=[],O=A/N,D=8/3*Math.sin(O/4)*Math.sin(O/4)/Math.sin(O/2),M=k+O,P=0;P<N;P++)I[P]=s(k,M,g,u,i,o,T,x,D,p,m),p=I[P][5],m=I[P][6],k=M,M+=O;return I}(i[6]-e,i[7]-t,o,a,l,h,c),u=0,g=d.length;u<g;u++)d[u][1]+=e,d[u][2]+=t,d[u][3]+=e,d[u][4]+=t,d[u][5]+=e,d[u][6]+=t;return d}function a(e,t,i,s){return Math.sqrt((i-e)*(i-e)+(s-t)*(s-t))}function c(e,t,i,s,n,r,o,a){return function(c){var l,h=(l=c)*l*l,d=function(e){return 3*e*e*(1-e)}(c),u=function(e){return 3*e*(1-e)*(1-e)}(c),g=function(e){return(1-e)*(1-e)*(1-e)}(c);return{x:o*h+n*d+i*u+e*g,y:a*h+r*d+s*u+t*g}}}function l(e,t,i,s,n,r,o,a){return function(c){var l=1-c,h=3*l*l*(i-e)+6*l*c*(n-i)+3*c*c*(o-n),d=3*l*l*(s-t)+6*l*c*(r-s)+3*c*c*(a-r);return Math.atan2(d,h)}}function h(e,t,i,s,n,r){return function(o){var a,c=(a=o)*a,l=function(e){return 2*e*(1-e)}(o),h=function(e){return(1-e)*(1-e)}(o);return{x:n*c+i*l+e*h,y:r*c+s*l+t*h}}}function d(e,t,i,s,n,r){return function(o){var a=1-o,c=2*a*(i-e)+2*o*(n-i),l=2*a*(s-t)+2*o*(r-s);return Math.atan2(l,c)}}function u(e,t,i){var s,n,r={x:t,y:i},o=0;for(n=1;n<=100;n+=1)s=e(n/100),o+=a(r.x,r.y,s.x,s.y),r=s;return o}function g(e,t){for(var i,s,n,r=0,o=0,c=e.iterator,l={x:e.x,y:e.y},h=.01,d=e.angleFinder;o<t&&h>1e-4;)i=c(r),n=r,(s=a(l.x,l.y,i.x,i.y))+o>t?(r-=h,h/=2):(l=i,r+=h,o+=s);return i.angle=d(n),i}function p(e){for(var t,i,s,n,r=0,o=e.length,g=0,p=0,m=0,f=0,_=[],v=0;v<o;v++){switch(s={x:g,y:p,command:(t=e[v])[0]},t[0]){case"M":s.length=0,m=g=t[1],f=p=t[2];break;case"L":s.length=a(g,p,t[1],t[2]),g=t[1],p=t[2];break;case"C":i=c(g,p,t[1],t[2],t[3],t[4],t[5],t[6]),n=l(g,p,t[1],t[2],t[3],t[4],t[5],t[6]),s.iterator=i,s.angleFinder=n,s.length=u(i,g,p),g=t[5],p=t[6];break;case"Q":i=h(g,p,t[1],t[2],t[3],t[4]),n=d(g,p,t[1],t[2],t[3],t[4]),s.iterator=i,s.angleFinder=n,s.length=u(i,g,p),g=t[3],p=t[4];break;case"Z":case"z":s.destX=m,s.destY=f,s.length=a(g,p,m,f),g=m,p=f}r+=s.length,_.push(s)}return _.push({length:r,x:g,y:p}),_}n.util.joinPath=function(e){return e.map((function(e){return e.join(" ")})).join(" ")},n.util.parsePath=function(e){var s,r,o,a,c,l=[],h=[],d=n.rePathCommand,u="[-+]?(?:\\d*\\.\\d+|\\d+\\.?)(?:[eE][-+]?\\d+)?\\s*",g="("+u+")"+n.commaWsp,p="([01])"+n.commaWsp+"?",m=new RegExp(g+"?"+g+"?"+g+p+p+g+"?("+u+")","g");if(!e||!e.match)return l;for(var f,_=0,v=(c=e.match(/[mzlhvcsqta][^mzlhvcsqta]*/gi)).length;_<v;_++){a=(s=c[_]).slice(1).trim(),h.length=0;var C=s.charAt(0);if(f=[C],"a"===C.toLowerCase())for(var E;E=m.exec(a);)for(var b=1;b<E.length;b++)h.push(E[b]);else for(;o=d.exec(a);)h.push(o[0]);b=0;for(var S=h.length;b<S;b++)r=parseFloat(h[b]),isNaN(r)||f.push(r);var y=t[C.toLowerCase()],w=i[C]||C;if(f.length-1>y)for(var R=1,L=f.length;R<L;R+=y)l.push([C].concat(f.slice(R,R+y))),C=w;else l.push(f)}return l},n.util.makePathSimpler=function(e){var t,i,s,n,r,a,c=0,l=0,h=e.length,d=0,u=0,g=[];for(i=0;i<h;++i){switch(s=!1,(t=e[i].slice(0))[0]){case"l":t[0]="L",t[1]+=c,t[2]+=l;case"L":c=t[1],l=t[2];break;case"h":t[1]+=c;case"H":t[0]="L",t[2]=l,c=t[1];break;case"v":t[1]+=l;case"V":t[0]="L",l=t[1],t[1]=c,t[2]=l;break;case"m":t[0]="M",t[1]+=c,t[2]+=l;case"M":c=t[1],l=t[2],d=t[1],u=t[2];break;case"c":t[0]="C",t[1]+=c,t[2]+=l,t[3]+=c,t[4]+=l,t[5]+=c,t[6]+=l;case"C":r=t[3],a=t[4],c=t[5],l=t[6];break;case"s":t[0]="S",t[1]+=c,t[2]+=l,t[3]+=c,t[4]+=l;case"S":"C"===n?(r=2*c-r,a=2*l-a):(r=c,a=l),c=t[3],l=t[4],t[0]="C",t[5]=t[3],t[6]=t[4],t[3]=t[1],t[4]=t[2],t[1]=r,t[2]=a,r=t[3],a=t[4];break;case"q":t[0]="Q",t[1]+=c,t[2]+=l,t[3]+=c,t[4]+=l;case"Q":r=t[1],a=t[2],c=t[3],l=t[4];break;case"t":t[0]="T",t[1]+=c,t[2]+=l;case"T":"Q"===n?(r=2*c-r,a=2*l-a):(r=c,a=l),t[0]="Q",c=t[1],l=t[2],t[1]=r,t[2]=a,t[3]=c,t[4]=l;break;case"a":t[0]="A",t[6]+=c,t[7]+=l;case"A":s=!0,g=g.concat(o(c,l,t)),c=t[6],l=t[7];break;case"z":case"Z":c=d,l=u}s||g.push(t),n=t[0]}return g},n.util.getSmoothPathFromPoints=function(e,t){var i,s=[],r=new n.Point(e[0].x,e[0].y),o=new n.Point(e[1].x,e[1].y),a=e.length,c=1,l=0,h=a>2;for(t=t||0,h&&(c=e[2].x<o.x?-1:e[2].x===o.x?0:1,l=e[2].y<o.y?-1:e[2].y===o.y?0:1),s.push(["M",r.x-c*t,r.y-l*t]),i=1;i<a;i++){if(!r.eq(o)){var d=r.midPointFrom(o);s.push(["Q",r.x,r.y,d.x,d.y])}r=e[i],i+1<e.length&&(o=e[i+1])}return h&&(c=r.x>e[i-2].x?1:r.x===e[i-2].x?0:-1,l=r.y>e[i-2].y?1:r.y===e[i-2].y?0:-1),s.push(["L",r.x+c*t,r.y+l*t]),s},n.util.getPathSegmentsInfo=p,n.util.getBoundsOfCurve=function(t,i,s,r,o,a,c,l){var h;if(n.cachesBoundsOfCurve&&(h=e.call(arguments),n.boundsOfCurveCache[h]))return n.boundsOfCurveCache[h];var d,u,g,p,m,f,_,v,C=Math.sqrt,E=Math.min,b=Math.max,S=Math.abs,y=[],w=[[],[]];u=6*t-12*s+6*o,d=-3*t+9*s-9*o+3*c,g=3*s-3*t;for(var R=0;R<2;++R)if(R>0&&(u=6*i-12*r+6*a,d=-3*i+9*r-9*a+3*l,g=3*r-3*i),S(d)<1e-12){if(S(u)<1e-12)continue;0<(p=-g/u)&&p<1&&y.push(p)}else(_=u*u-4*g*d)<0||(0<(m=(-u+(v=C(_)))/(2*d))&&m<1&&y.push(m),0<(f=(-u-v)/(2*d))&&f<1&&y.push(f));for(var L,T,x,k=y.length,A=k;k--;)L=(x=1-(p=y[k]))*x*x*t+3*x*x*p*s+3*x*p*p*o+p*p*p*c,w[0][k]=L,T=x*x*x*i+3*x*x*p*r+3*x*p*p*a+p*p*p*l,w[1][k]=T;w[0][A]=t,w[1][A]=i,w[0][A+1]=c,w[1][A+1]=l;var N=[{x:E.apply(null,w[0]),y:E.apply(null,w[1])},{x:b.apply(null,w[0]),y:b.apply(null,w[1])}];return n.cachesBoundsOfCurve&&(n.boundsOfCurveCache[h]=N),N},n.util.getPointOnPath=function(e,t,i){i||(i=p(e));for(var s=0;t-i[s].length>0&&s<i.length-2;)t-=i[s].length,s++;var r,o=i[s],a=t/o.length,c=o.command,l=e[s];switch(c){case"M":return{x:o.x,y:o.y,angle:0};case"Z":case"z":return(r=new n.Point(o.x,o.y).lerp(new n.Point(o.destX,o.destY),a)).angle=Math.atan2(o.destY-o.y,o.destX-o.x),r;case"L":return(r=new n.Point(o.x,o.y).lerp(new n.Point(l[1],l[2]),a)).angle=Math.atan2(l[2]-o.y,l[1]-o.x),r;case"C":case"Q":return g(o,t)}},n.util.transformPath=function(e,t,i){return i&&(t=n.util.multiplyTransformMatrices(t,[1,0,0,1,-i.x,-i.y])),e.map((function(e){for(var i=e.slice(0),s={},r=1;r<e.length-1;r+=2)s.x=e[r],s.y=e[r+1],s=n.util.transformPoint(s,t),i[r]=s.x,i[r+1]=s.y;return i}))}}(),function(){var e=Array.prototype.slice;function t(e,t,i){if(e&&0!==e.length){var s=e.length-1,n=t?e[s][t]:e[s];if(t)for(;s--;)i(e[s][t],n)&&(n=e[s][t]);else for(;s--;)i(e[s],n)&&(n=e[s]);return n}}n.util.array={fill:function(e,t){for(var i=e.length;i--;)e[i]=t;return e},invoke:function(t,i){for(var s=e.call(arguments,2),n=[],r=0,o=t.length;r<o;r++)n[r]=s.length?t[r][i].apply(t[r],s):t[r][i].call(t[r]);return n},min:function(e,i){return t(e,i,(function(e,t){return e<t}))},max:function(e,i){return t(e,i,(function(e,t){return e>=t}))}}}(),function(){function e(t,i,s){if(s)if(!n.isLikelyNode&&i instanceof Element)t=i;else if(i instanceof Array){t=[];for(var r=0,o=i.length;r<o;r++)t[r]=e({},i[r],s)}else if(i&&"object"===typeof i)for(var a in i)"canvas"===a||"group"===a?t[a]=null:i.hasOwnProperty(a)&&(t[a]=e({},i[a],s));else t=i;else for(var a in i)t[a]=i[a];return t}n.util.object={extend:e,clone:function(t,i){return e({},t,i)}},n.util.object.extend(n.util,n.Observable)}(),function(){function e(e,t){var i=e.charCodeAt(t);if(isNaN(i))return"";if(i<55296||i>57343)return e.charAt(t);if(55296<=i&&i<=56319){if(e.length<=t+1)throw"High surrogate without following low surrogate";var s=e.charCodeAt(t+1);if(56320>s||s>57343)throw"High surrogate without following low surrogate";return e.charAt(t)+e.charAt(t+1)}if(0===t)throw"Low surrogate without preceding high surrogate";var n=e.charCodeAt(t-1);if(55296>n||n>56319)throw"Low surrogate without preceding high surrogate";return!1}n.util.string={camelize:function(e){return e.replace(/-+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))},capitalize:function(e,t){return e.charAt(0).toUpperCase()+(t?e.slice(1):e.slice(1).toLowerCase())},escapeXml:function(e){return e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")},graphemeSplit:function(t){var i,s=0,n=[];for(s=0;s<t.length;s++)!1!==(i=e(t,s))&&n.push(i);return n}}}(),function(){var e=Array.prototype.slice,t=function(){},i=function(){for(var e in{toString:1})if("toString"===e)return!1;return!0}(),s=function(e,t,s){for(var n in t)n in e.prototype&&"function"===typeof e.prototype[n]&&(t[n]+"").indexOf("callSuper")>-1?e.prototype[n]=function(e){return function(){var i=this.constructor.superclass;this.constructor.superclass=s;var n=t[e].apply(this,arguments);if(this.constructor.superclass=i,"initialize"!==e)return n}}(n):e.prototype[n]=t[n],i&&(t.toString!==Object.prototype.toString&&(e.prototype.toString=t.toString),t.valueOf!==Object.prototype.valueOf&&(e.prototype.valueOf=t.valueOf))};function r(){}function o(t){for(var i=null,s=this;s.constructor.superclass;){var n=s.constructor.superclass.prototype[t];if(s[t]!==n){i=n;break}s=s.constructor.superclass.prototype}return i?arguments.length>1?i.apply(this,e.call(arguments,1)):i.call(this):console.log("tried to callSuper "+t+", method not found in prototype chain",this)}n.util.createClass=function(){var i=null,n=e.call(arguments,0);function a(){this.initialize.apply(this,arguments)}"function"===typeof n[0]&&(i=n.shift()),a.superclass=i,a.subclasses=[],i&&(r.prototype=i.prototype,a.prototype=new r,i.subclasses.push(a));for(var c=0,l=n.length;c<l;c++)s(a,n[c],i);return a.prototype.initialize||(a.prototype.initialize=t),a.prototype.constructor=a,a.prototype.callSuper=o,a}}(),function(){var e=!!n.document.createElement("div").attachEvent,t=["touchstart","touchmove","touchend"];n.util.addListener=function(t,i,s,n){t&&t.addEventListener(i,s,!e&&n)},n.util.removeListener=function(t,i,s,n){t&&t.removeEventListener(i,s,!e&&n)},n.util.getPointer=function(e){var t=e.target,i=n.util.getScrollLeftTop(t),s=function(e){var t=e.changedTouches;return t&&t[0]?t[0]:e}(e);return{x:s.clientX+i.left,y:s.clientY+i.top}},n.util.isTouchEvent=function(e){return t.indexOf(e.type)>-1||"touch"===e.pointerType}}(),function(){var e=n.document.createElement("div"),t="string"===typeof e.style.opacity,i="string"===typeof e.style.filter,s=/alpha\s*\(\s*opacity\s*=\s*([^\)]+)\)/,r=function(e){return e};t?r=function(e,t){return e.style.opacity=t,e}:i&&(r=function(e,t){var i=e.style;return e.currentStyle&&!e.currentStyle.hasLayout&&(i.zoom=1),s.test(i.filter)?(t=t>=.9999?"":"alpha(opacity="+100*t+")",i.filter=i.filter.replace(s,t)):i.filter+=" alpha(opacity="+100*t+")",e}),n.util.setStyle=function(e,t){var i=e.style;if(!i)return e;if("string"===typeof t)return e.style.cssText+=";"+t,t.indexOf("opacity")>-1?r(e,t.match(/opacity:\s*(\d?\.?\d*)/)[1]):e;for(var s in t)if("opacity"===s)r(e,t[s]);else{var n="float"===s||"cssFloat"===s?"undefined"===typeof i.styleFloat?"cssFloat":"styleFloat":s;i.setProperty(n,t[s])}return e}}(),function(){var e=Array.prototype.slice;var t,i,s=function(t){return e.call(t,0)};try{t=s(n.document.childNodes)instanceof Array}catch(a){}function r(e,t){var i=n.document.createElement(e);for(var s in t)"class"===s?i.className=t[s]:"for"===s?i.htmlFor=t[s]:i.setAttribute(s,t[s]);return i}function o(e){for(var t=0,i=0,s=n.document.documentElement,r=n.document.body||{scrollLeft:0,scrollTop:0};e&&(e.parentNode||e.host)&&((e=e.parentNode||e.host)===n.document?(t=r.scrollLeft||s.scrollLeft||0,i=r.scrollTop||s.scrollTop||0):(t+=e.scrollLeft||0,i+=e.scrollTop||0),1!==e.nodeType||"fixed"!==e.style.position););return{left:t,top:i}}t||(s=function(e){for(var t=new Array(e.length),i=e.length;i--;)t[i]=e[i];return t}),i=n.document.defaultView&&n.document.defaultView.getComputedStyle?function(e,t){var i=n.document.defaultView.getComputedStyle(e,null);return i?i[t]:void 0}:function(e,t){var i=e.style[t];return!i&&e.currentStyle&&(i=e.currentStyle[t]),i},function(){var e=n.document.documentElement.style,t="userSelect"in e?"userSelect":"MozUserSelect"in e?"MozUserSelect":"WebkitUserSelect"in e?"WebkitUserSelect":"KhtmlUserSelect"in e?"KhtmlUserSelect":"";n.util.makeElementUnselectable=function(e){return"undefined"!==typeof e.onselectstart&&(e.onselectstart=n.util.falseFunction),t?e.style[t]="none":"string"===typeof e.unselectable&&(e.unselectable="on"),e},n.util.makeElementSelectable=function(e){return"undefined"!==typeof e.onselectstart&&(e.onselectstart=null),t?e.style[t]="":"string"===typeof e.unselectable&&(e.unselectable=""),e}}(),n.util.setImageSmoothing=function(e,t){e.imageSmoothingEnabled=e.imageSmoothingEnabled||e.webkitImageSmoothingEnabled||e.mozImageSmoothingEnabled||e.msImageSmoothingEnabled||e.oImageSmoothingEnabled,e.imageSmoothingEnabled=t},n.util.getById=function(e){return"string"===typeof e?n.document.getElementById(e):e},n.util.toArray=s,n.util.addClass=function(e,t){e&&-1===(" "+e.className+" ").indexOf(" "+t+" ")&&(e.className+=(e.className?" ":"")+t)},n.util.makeElement=r,n.util.wrapElement=function(e,t,i){return"string"===typeof t&&(t=r(t,i)),e.parentNode&&e.parentNode.replaceChild(t,e),t.appendChild(e),t},n.util.getScrollLeftTop=o,n.util.getElementOffset=function(e){var t,s,n=e&&e.ownerDocument,r={left:0,top:0},a={left:0,top:0},c={borderLeftWidth:"left",borderTopWidth:"top",paddingLeft:"left",paddingTop:"top"};if(!n)return a;for(var l in c)a[c[l]]+=parseInt(i(e,l),10)||0;return t=n.documentElement,"undefined"!==typeof e.getBoundingClientRect&&(r=e.getBoundingClientRect()),s=o(e),{left:r.left+s.left-(t.clientLeft||0)+a.left,top:r.top+s.top-(t.clientTop||0)+a.top}},n.util.getNodeCanvas=function(e){var t=n.jsdomImplForWrapper(e);return t._canvas||t._image},n.util.cleanUpJsdomNode=function(e){if(n.isLikelyNode){var t=n.jsdomImplForWrapper(e);t&&(t._image=null,t._canvas=null,t._currentSrc=null,t._attributes=null,t._classList=null)}}}(),function(){function e(){}n.util.request=function(t,i){i||(i={});var s=i.method?i.method.toUpperCase():"GET",r=i.onComplete||function(){},o=new n.window.XMLHttpRequest,a=i.body||i.parameters;return o.onreadystatechange=function(){4===o.readyState&&(r(o),o.onreadystatechange=e)},"GET"===s&&(a=null,"string"===typeof i.parameters&&(t=function(e,t){return e+(/\?/.test(e)?"&":"?")+t}(t,i.parameters))),o.open(s,t,!0),"POST"!==s&&"PUT"!==s||o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.send(a),o}}(),n.log=console.log,n.warn=console.warn,function(){var e=n.util.object.extend,t=n.util.object.clone,i=[];function s(){return!1}function r(e,t,i,s){return-i*Math.cos(e/s*(Math.PI/2))+i+t}n.util.object.extend(i,{cancelAll:function(){var e=this.splice(0);return e.forEach((function(e){e.cancel()})),e},cancelByCanvas:function(e){if(!e)return[];var t=this.filter((function(t){return"object"===typeof t.target&&t.target.canvas===e}));return t.forEach((function(e){e.cancel()})),t},cancelByTarget:function(e){var t=this.findAnimationsByTarget(e);return t.forEach((function(e){e.cancel()})),t},findAnimationIndex:function(e){return this.indexOf(this.findAnimation(e))},findAnimation:function(e){return this.find((function(t){return t.cancel===e}))},findAnimationsByTarget:function(e){return e?this.filter((function(t){return t.target===e})):[]}});var o=n.window.requestAnimationFrame||n.window.webkitRequestAnimationFrame||n.window.mozRequestAnimationFrame||n.window.oRequestAnimationFrame||n.window.msRequestAnimationFrame||function(e){return n.window.setTimeout(e,1e3/60)},a=n.window.cancelAnimationFrame||n.window.clearTimeout;function c(){return o.apply(n.window,arguments)}n.util.animate=function(i){i||(i={});var o,a=!1,l=function(){var e=n.runningAnimations.indexOf(o);return e>-1&&n.runningAnimations.splice(e,1)[0]};return o=e(t(i),{cancel:function(){return a=!0,l()},currentValue:"startValue"in i?i.startValue:0,completionRate:0,durationRate:0}),n.runningAnimations.push(o),c((function(e){var t,n=e||+new Date,h=i.duration||500,d=n+h,u=i.onChange||s,g=i.abort||s,p=i.onComplete||s,m=i.easing||r,f="startValue"in i&&i.startValue.length>0,_="startValue"in i?i.startValue:0,v="endValue"in i?i.endValue:100,C=i.byValue||(f?_.map((function(e,t){return v[t]-_[t]})):v-_);i.onStart&&i.onStart(),function e(i){var s=(t=i||+new Date)>d?h:t-n,r=s/h,E=f?_.map((function(e,t){return m(s,_[t],C[t],h)})):m(s,_,C,h),b=f?Math.abs((E[0]-_[0])/C[0]):Math.abs((E-_)/C);if(o.currentValue=f?E.slice():E,o.completionRate=b,o.durationRate=r,!a){if(!g(E,b,r))return t>d?(o.currentValue=f?v.slice():v,o.completionRate=1,o.durationRate=1,u(f?v.slice():v,1,1),p(v,1,1),void l()):(u(E,b,r),void c(e));l()}}(n)})),o.cancel},n.util.requestAnimFrame=c,n.util.cancelAnimFrame=function(){return a.apply(n.window,arguments)},n.runningAnimations=i}(),function(){function e(e,t,i){var s="rgba("+parseInt(e[0]+i*(t[0]-e[0]),10)+","+parseInt(e[1]+i*(t[1]-e[1]),10)+","+parseInt(e[2]+i*(t[2]-e[2]),10);return s+=","+(e&&t?parseFloat(e[3]+i*(t[3]-e[3])):1),s+=")"}n.util.animateColor=function(t,i,s,r){var o=new n.Color(t).getSource(),a=new n.Color(i).getSource(),c=r.onComplete,l=r.onChange;return r=r||{},n.util.animate(n.util.object.extend(r,{duration:s||500,startValue:o,endValue:a,byValue:a,easing:function(t,i,s,n){return e(i,s,r.colorEasing?r.colorEasing(t,n):1-Math.cos(t/n*(Math.PI/2)))},onComplete:function(t,i,s){if(c)return c(e(a,a,0),i,s)},onChange:function(t,i,s){if(l){if(Array.isArray(t))return l(e(t,t,0),i,s);l(t,i,s)}}}))}}(),function(){function e(e,t,i,s){return e<Math.abs(t)?(e=t,s=i/4):s=0===t&&0===e?i/(2*Math.PI)*Math.asin(1):i/(2*Math.PI)*Math.asin(t/e),{a:e,c:t,p:i,s:s}}function t(e,t,i){return e.a*Math.pow(2,10*(t-=1))*Math.sin((t*i-e.s)*(2*Math.PI)/e.p)}function i(e,t,i,n){return i-s(n-e,0,i,n)+t}function s(e,t,i,s){return(e/=s)<1/2.75?i*(7.5625*e*e)+t:e<2/2.75?i*(7.5625*(e-=1.5/2.75)*e+.75)+t:e<2.5/2.75?i*(7.5625*(e-=2.25/2.75)*e+.9375)+t:i*(7.5625*(e-=2.625/2.75)*e+.984375)+t}n.util.ease={easeInQuad:function(e,t,i,s){return i*(e/=s)*e+t},easeOutQuad:function(e,t,i,s){return-i*(e/=s)*(e-2)+t},easeInOutQuad:function(e,t,i,s){return(e/=s/2)<1?i/2*e*e+t:-i/2*(--e*(e-2)-1)+t},easeInCubic:function(e,t,i,s){return i*(e/=s)*e*e+t},easeOutCubic:function(e,t,i,s){return i*((e=e/s-1)*e*e+1)+t},easeInOutCubic:function(e,t,i,s){return(e/=s/2)<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t},easeInQuart:function(e,t,i,s){return i*(e/=s)*e*e*e+t},easeOutQuart:function(e,t,i,s){return-i*((e=e/s-1)*e*e*e-1)+t},easeInOutQuart:function(e,t,i,s){return(e/=s/2)<1?i/2*e*e*e*e+t:-i/2*((e-=2)*e*e*e-2)+t},easeInQuint:function(e,t,i,s){return i*(e/=s)*e*e*e*e+t},easeOutQuint:function(e,t,i,s){return i*((e=e/s-1)*e*e*e*e+1)+t},easeInOutQuint:function(e,t,i,s){return(e/=s/2)<1?i/2*e*e*e*e*e+t:i/2*((e-=2)*e*e*e*e+2)+t},easeInSine:function(e,t,i,s){return-i*Math.cos(e/s*(Math.PI/2))+i+t},easeOutSine:function(e,t,i,s){return i*Math.sin(e/s*(Math.PI/2))+t},easeInOutSine:function(e,t,i,s){return-i/2*(Math.cos(Math.PI*e/s)-1)+t},easeInExpo:function(e,t,i,s){return 0===e?t:i*Math.pow(2,10*(e/s-1))+t},easeOutExpo:function(e,t,i,s){return e===s?t+i:i*(1-Math.pow(2,-10*e/s))+t},easeInOutExpo:function(e,t,i,s){return 0===e?t:e===s?t+i:(e/=s/2)<1?i/2*Math.pow(2,10*(e-1))+t:i/2*(2-Math.pow(2,-10*--e))+t},easeInCirc:function(e,t,i,s){return-i*(Math.sqrt(1-(e/=s)*e)-1)+t},easeOutCirc:function(e,t,i,s){return i*Math.sqrt(1-(e=e/s-1)*e)+t},easeInOutCirc:function(e,t,i,s){return(e/=s/2)<1?-i/2*(Math.sqrt(1-e*e)-1)+t:i/2*(Math.sqrt(1-(e-=2)*e)+1)+t},easeInElastic:function(i,s,n,r){var o=0;return 0===i?s:1===(i/=r)?s+n:(o||(o=.3*r),-t(e(n,n,o,1.70158),i,r)+s)},easeOutElastic:function(t,i,s,n){var r=0;if(0===t)return i;if(1===(t/=n))return i+s;r||(r=.3*n);var o=e(s,s,r,1.70158);return o.a*Math.pow(2,-10*t)*Math.sin((t*n-o.s)*(2*Math.PI)/o.p)+o.c+i},easeInOutElastic:function(i,s,n,r){var o=0;if(0===i)return s;if(2===(i/=r/2))return s+n;o||(o=r*(.3*1.5));var a=e(n,n,o,1.70158);return i<1?-.5*t(a,i,r)+s:a.a*Math.pow(2,-10*(i-=1))*Math.sin((i*r-a.s)*(2*Math.PI)/a.p)*.5+a.c+s},easeInBack:function(e,t,i,s,n){return void 0===n&&(n=1.70158),i*(e/=s)*e*((n+1)*e-n)+t},easeOutBack:function(e,t,i,s,n){return void 0===n&&(n=1.70158),i*((e=e/s-1)*e*((n+1)*e+n)+1)+t},easeInOutBack:function(e,t,i,s,n){return void 0===n&&(n=1.70158),(e/=s/2)<1?i/2*(e*e*((1+(n*=1.525))*e-n))+t:i/2*((e-=2)*e*((1+(n*=1.525))*e+n)+2)+t},easeInBounce:i,easeOutBounce:s,easeInOutBounce:function(e,t,n,r){return e<r/2?.5*i(2*e,0,n,r)+t:.5*s(2*e-r,0,n,r)+.5*n+t}}}(),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,s=t.util.object.clone,n=t.util.toFixed,r=t.util.parseUnit,o=t.util.multiplyTransformMatrices,a={cx:"left",x:"left",r:"radius",cy:"top",y:"top",display:"visible",visibility:"visible",transform:"transformMatrix","fill-opacity":"fillOpacity","fill-rule":"fillRule","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","letter-spacing":"charSpacing","paint-order":"paintFirst","stroke-dasharray":"strokeDashArray","stroke-dashoffset":"strokeDashOffset","stroke-linecap":"strokeLineCap","stroke-linejoin":"strokeLineJoin","stroke-miterlimit":"strokeMiterLimit","stroke-opacity":"strokeOpacity","stroke-width":"strokeWidth","text-decoration":"textDecoration","text-anchor":"textAnchor",opacity:"opacity","clip-path":"clipPath","clip-rule":"clipRule","vector-effect":"strokeUniform","image-rendering":"imageSmoothing"},c={stroke:"strokeOpacity",fill:"fillOpacity"},l="font-size",h="clip-path";function d(e){return e in a?a[e]:e}function u(e,i,s,n){var a,c=Array.isArray(i);if("fill"!==e&&"stroke"!==e||"none"!==i){if("strokeUniform"===e)return"non-scaling-stroke"===i;if("strokeDashArray"===e)i="none"===i?null:i.replace(/,/g," ").split(/\s+/).map(parseFloat);else if("transformMatrix"===e)i=s&&s.transformMatrix?o(s.transformMatrix,t.parseTransformAttribute(i)):t.parseTransformAttribute(i);else if("visible"===e)i="none"!==i&&"hidden"!==i,s&&!1===s.visible&&(i=!1);else if("opacity"===e)i=parseFloat(i),s&&"undefined"!==typeof s.opacity&&(i*=s.opacity);else if("textAnchor"===e)i="start"===i?"left":"end"===i?"right":"center";else if("charSpacing"===e)a=r(i,n)/n*1e3;else if("paintFirst"===e){var l=i.indexOf("fill"),h=i.indexOf("stroke");i="fill";(l>-1&&h>-1&&h<l||-1===l&&h>-1)&&(i="stroke")}else{if("href"===e||"xlink:href"===e||"font"===e)return i;if("imageSmoothing"===e)return"optimizeQuality"===i;a=c?i.map(r):r(i,n)}}else i="";return!c&&isNaN(a)?i:a}function g(e){return new RegExp("^("+e.join("|")+")\\b","i")}function p(e,t){var i,s,n,r,o=[];for(n=0,r=t.length;n<r;n++)i=t[n],s=e.getElementsByTagName(i),o=o.concat(Array.prototype.slice.call(s));return o}function m(e,t){var i,s=!0;return(i=f(e,t.pop()))&&t.length&&(s=function(e,t){var i,s=!0;for(;e.parentNode&&1===e.parentNode.nodeType&&t.length;)s&&(i=t.pop()),s=f(e=e.parentNode,i);return 0===t.length}(e,t)),i&&s&&0===t.length}function f(e,t){var i,s,n=e.nodeName,r=e.getAttribute("class"),o=e.getAttribute("id");if(i=new RegExp("^"+n,"i"),t=t.replace(i,""),o&&t.length&&(i=new RegExp("#"+o+"(?![a-zA-Z\\-]+)","i"),t=t.replace(i,"")),r&&t.length)for(s=(r=r.split(" ")).length;s--;)i=new RegExp("\\."+r[s]+"(?![a-zA-Z\\-]+)","i"),t=t.replace(i,"");return 0===t.length}function _(e,t){var i;if(e.getElementById&&(i=e.getElementById(t)),i)return i;var s,n,r,o=e.getElementsByTagName("*");for(n=0,r=o.length;n<r;n++)if(t===(s=o[n]).getAttribute("id"))return s}t.svgValidTagNamesRegEx=g(["path","circle","polygon","polyline","ellipse","rect","line","image","text"]),t.svgViewBoxElementsRegEx=g(["symbol","image","marker","pattern","view","svg"]),t.svgInvalidAncestorsRegEx=g(["pattern","defs","symbol","metadata","clipPath","mask","desc"]),t.svgValidParentsRegEx=g(["symbol","g","a","svg","clipPath","defs"]),t.cssRules={},t.gradientDefs={},t.clipPaths={},t.parseTransformAttribute=function(){function e(e,i,s){e[s]=Math.tan(t.util.degreesToRadians(i[0]))}var i=t.iMatrix,s=t.reNum,n=t.commaWsp,r="(?:"+("(?:(matrix)\\s*\\(\\s*("+s+")"+n+"("+s+")"+n+"("+s+")"+n+"("+s+")"+n+"("+s+")"+n+"("+s+")\\s*\\))")+"|"+("(?:(translate)\\s*\\(\\s*("+s+")(?:"+n+"("+s+"))?\\s*\\))")+"|"+("(?:(scale)\\s*\\(\\s*("+s+")(?:"+n+"("+s+"))?\\s*\\))")+"|"+("(?:(rotate)\\s*\\(\\s*("+s+")(?:"+n+"("+s+")"+n+"("+s+"))?\\s*\\))")+"|"+("(?:(skewX)\\s*\\(\\s*("+s+")\\s*\\))")+"|"+("(?:(skewY)\\s*\\(\\s*("+s+")\\s*\\))")+")",o=new RegExp("^\\s*(?:"+("(?:"+r+"(?:"+n+"*"+r+")*)")+"?)\\s*$"),a=new RegExp(r,"g");return function(s){var n=i.concat(),c=[];if(!s||s&&!o.test(s))return n;s.replace(a,(function(s){var o=new RegExp(r).exec(s).filter((function(e){return!!e})),a=o[1],l=o.slice(2).map(parseFloat);switch(a){case"translate":!function(e,t){e[4]=t[0],2===t.length&&(e[5]=t[1])}(n,l);break;case"rotate":l[0]=t.util.degreesToRadians(l[0]),function(e,i){var s=t.util.cos(i[0]),n=t.util.sin(i[0]),r=0,o=0;3===i.length&&(r=i[1],o=i[2]),e[0]=s,e[1]=n,e[2]=-n,e[3]=s,e[4]=r-(s*r-n*o),e[5]=o-(n*r+s*o)}(n,l);break;case"scale":!function(e,t){var i=t[0],s=2===t.length?t[1]:t[0];e[0]=i,e[3]=s}(n,l);break;case"skewX":e(n,l,2);break;case"skewY":e(n,l,1);break;case"matrix":n=l}c.push(n.concat()),n=i.concat()}));for(var l=c[0];c.length>1;)c.shift(),l=t.util.multiplyTransformMatrices(l,c[0]);return l}}();var v=new RegExp("^\\s*("+t.reNum+"+)\\s*,?\\s*("+t.reNum+"+)\\s*,?\\s*("+t.reNum+"+)\\s*,?\\s*("+t.reNum+"+)\\s*$");function C(e){if(!t.svgViewBoxElementsRegEx.test(e.nodeName))return{};var i,s,n,o,a,c,l=e.getAttribute("viewBox"),h=1,d=1,u=e.getAttribute("width"),g=e.getAttribute("height"),p=e.getAttribute("x")||0,m=e.getAttribute("y")||0,f=e.getAttribute("preserveAspectRatio")||"",_=!l||!(l=l.match(v)),C=!u||!g||"100%"===u||"100%"===g,E=_&&C,b={},S="",y=0,w=0;if(b.width=0,b.height=0,b.toBeParsed=E,_&&(p||m)&&e.parentNode&&"#document"!==e.parentNode.nodeName&&(S=" translate("+r(p)+" "+r(m)+") ",a=(e.getAttribute("transform")||"")+S,e.setAttribute("transform",a),e.removeAttribute("x"),e.removeAttribute("y")),E)return b;if(_)return b.width=r(u),b.height=r(g),b;if(i=-parseFloat(l[1]),s=-parseFloat(l[2]),n=parseFloat(l[3]),o=parseFloat(l[4]),b.minX=i,b.minY=s,b.viewBoxWidth=n,b.viewBoxHeight=o,C?(b.width=n,b.height=o):(b.width=r(u),b.height=r(g),h=b.width/n,d=b.height/o),"none"!==(f=t.util.parsePreserveAspectRatioAttribute(f)).alignX&&("meet"===f.meetOrSlice&&(d=h=h>d?d:h),"slice"===f.meetOrSlice&&(d=h=h>d?h:d),y=b.width-n*h,w=b.height-o*h,"Mid"===f.alignX&&(y/=2),"Mid"===f.alignY&&(w/=2),"Min"===f.alignX&&(y=0),"Min"===f.alignY&&(w=0)),1===h&&1===d&&0===i&&0===s&&0===p&&0===m)return b;if((p||m)&&"#document"!==e.parentNode.nodeName&&(S=" translate("+r(p)+" "+r(m)+") "),a=S+" matrix("+h+" 0 0 "+d+" "+(i*h+y)+" "+(s*d+w)+") ","svg"===e.nodeName){for(c=e.ownerDocument.createElementNS(t.svgNS,"g");e.firstChild;)c.appendChild(e.firstChild);e.appendChild(c)}else(c=e).removeAttribute("x"),c.removeAttribute("y"),a=c.getAttribute("transform")+a;return c.setAttribute("transform",a),b}function E(e,t){var i="xlink:href",s=_(e,t.getAttribute(i).slice(1));if(s&&s.getAttribute(i)&&E(e,s),["gradientTransform","x1","x2","y1","y2","gradientUnits","cx","cy","r","fx","fy"].forEach((function(e){s&&!t.hasAttribute(e)&&s.hasAttribute(e)&&t.setAttribute(e,s.getAttribute(e))})),!t.children.length)for(var n=s.cloneNode(!0);n.firstChild;)t.appendChild(n.firstChild);t.removeAttribute(i)}t.parseSVGDocument=function(e,i,n,r){if(e){!function(e){for(var i=p(e,["use","svg:use"]),s=0;i.length&&s<i.length;){var n=i[s],r=n.getAttribute("xlink:href")||n.getAttribute("href");if(null===r)return;var o,a,c,l,h=r.slice(1),d=n.getAttribute("x")||0,u=n.getAttribute("y")||0,g=_(e,h).cloneNode(!0),m=(g.getAttribute("transform")||"")+" translate("+d+", "+u+")",f=i.length,v=t.svgNS;if(C(g),/^svg$/i.test(g.nodeName)){var E=g.ownerDocument.createElementNS(v,"g");for(a=0,l=(c=g.attributes).length;a<l;a++)o=c.item(a),E.setAttributeNS(v,o.nodeName,o.nodeValue);for(;g.firstChild;)E.appendChild(g.firstChild);g=E}for(a=0,l=(c=n.attributes).length;a<l;a++)"x"!==(o=c.item(a)).nodeName&&"y"!==o.nodeName&&"xlink:href"!==o.nodeName&&"href"!==o.nodeName&&("transform"===o.nodeName?m=o.nodeValue+" "+m:g.setAttribute(o.nodeName,o.nodeValue));g.setAttribute("transform",m),g.setAttribute("instantiated_by_use","1"),g.removeAttribute("id"),n.parentNode.replaceChild(g,n),i.length===f&&s++}}(e);var o,a,c=t.Object.__uid++,l=C(e),h=t.util.toArray(e.getElementsByTagName("*"));if(l.crossOrigin=r&&r.crossOrigin,l.svgUid=c,0===h.length&&t.isLikelyNode){var d=[];for(o=0,a=(h=e.selectNodes('//*[name(.)!="svg"]')).length;o<a;o++)d[o]=h[o];h=d}var u=h.filter((function(e){return C(e),t.svgValidTagNamesRegEx.test(e.nodeName.replace("svg:",""))&&!function(e,t){for(;e&&(e=e.parentNode);)if(e.nodeName&&t.test(e.nodeName.replace("svg:",""))&&!e.getAttribute("instantiated_by_use"))return!0;return!1}(e,t.svgInvalidAncestorsRegEx)}));if(!u||u&&!u.length)i&&i([],{});else{var g={};h.filter((function(e){return"clipPath"===e.nodeName.replace("svg:","")})).forEach((function(e){var i=e.getAttribute("id");g[i]=t.util.toArray(e.getElementsByTagName("*")).filter((function(e){return t.svgValidTagNamesRegEx.test(e.nodeName.replace("svg:",""))}))})),t.gradientDefs[c]=t.getGradientDefs(e),t.cssRules[c]=t.getCSSRules(e),t.clipPaths[c]=g,t.parseElements(u,(function(e,s){i&&(i(e,l,s,h),delete t.gradientDefs[c],delete t.cssRules[c],delete t.clipPaths[c])}),s(l),n,r)}}};var b=new RegExp("(normal|italic)?\\s*(normal|small-caps)?\\s*(normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900)?\\s*("+t.reNum+"(?:px|cm|mm|em|pt|pc|in)*)(?:\\/(normal|"+t.reNum+"))?\\s+(.*)");i(t,{parseFontDeclaration:function(e,t){var i=e.match(b);if(i){var s=i[1],n=i[3],o=i[4],a=i[5],c=i[6];s&&(t.fontStyle=s),n&&(t.fontWeight=isNaN(parseFloat(n))?n:parseFloat(n)),o&&(t.fontSize=r(o)),c&&(t.fontFamily=c),a&&(t.lineHeight="normal"===a?1:a)}},getGradientDefs:function(e){var t,i=p(e,["linearGradient","radialGradient","svg:linearGradient","svg:radialGradient"]),s=0,n={};for(s=i.length;s--;)(t=i[s]).getAttribute("xlink:href")&&E(e,t),n[t.getAttribute("id")]=t;return n},parseAttributes:function(e,s,o){if(e){var a,g,p,f={};"undefined"===typeof o&&(o=e.getAttribute("svgUid")),e.parentNode&&t.svgValidParentsRegEx.test(e.parentNode.nodeName)&&(f=t.parseAttributes(e.parentNode,s,o));var _=s.reduce((function(t,i){return(a=e.getAttribute(i))&&(t[i]=a),t}),{}),v=i(function(e,i){var s={};for(var n in t.cssRules[i])if(m(e,n.split(" ")))for(var r in t.cssRules[i][n])s[r]=t.cssRules[i][n][r];return s}(e,o),t.parseStyleAttribute(e));_=i(_,v),v[h]&&e.setAttribute(h,v[h]),g=p=f.fontSize||t.Text.DEFAULT_SVG_FONT_SIZE,_[l]&&(_[l]=g=r(_[l],p));var C,E,b={};for(var S in _)E=u(C=d(S),_[S],f,g),b[C]=E;b&&b.font&&t.parseFontDeclaration(b.font,b);var y=i(f,b);return t.svgValidParentsRegEx.test(e.nodeName)?y:function(e){for(var i in c)if("undefined"!==typeof e[c[i]]&&""!==e[i]){if("undefined"===typeof e[i]){if(!t.Object.prototype[i])continue;e[i]=t.Object.prototype[i]}if(0!==e[i].indexOf("url(")){var s=new t.Color(e[i]);e[i]=s.setAlpha(n(s.getAlpha()*e[c[i]],2)).toRgba()}}return e}(y)}},parseElements:function(e,i,s,n,r){new t.ElementsParser(e,i,s,n,r).parse()},parseStyleAttribute:function(e){var t={},i=e.getAttribute("style");return i?("string"===typeof i?function(e,t){var i,s;e.replace(/;\s*$/,"").split(";").forEach((function(e){var n=e.split(":");i=n[0].trim().toLowerCase(),s=n[1].trim(),t[i]=s}))}(i,t):function(e,t){var i,s;for(var n in e)"undefined"!==typeof e[n]&&(i=n.toLowerCase(),s=e[n],t[i]=s)}(i,t),t):t},parsePointsAttribute:function(e){if(!e)return null;var t,i,s=[];for(t=0,i=(e=(e=e.replace(/,/g," ").trim()).split(/\s+/)).length;t<i;t+=2)s.push({x:parseFloat(e[t]),y:parseFloat(e[t+1])});return s},getCSSRules:function(e){var i,s,n=e.getElementsByTagName("style"),r={};for(i=0,s=n.length;i<s;i++){var o=n[i].textContent;""!==(o=o.replace(/\/\*[\s\S]*?\*\//g,"")).trim()&&o.split("}").filter((function(e){return e.trim()})).forEach((function(e){var n=e.split("{"),o={},a=n[1].trim().split(";").filter((function(e){return e.trim()}));for(i=0,s=a.length;i<s;i++){var c=a[i].split(":"),l=c[0].trim(),h=c[1].trim();o[l]=h}(e=n[0].trim()).split(",").forEach((function(e){""!==(e=e.replace(/^svg/i,"").trim())&&(r[e]?t.util.object.extend(r[e],o):r[e]=t.util.object.clone(o))}))}))}return r},loadSVGFromURL:function(e,i,s,n){e=e.replace(/^\n\s*/,"").trim(),new t.util.request(e,{method:"get",onComplete:function(e){var r=e.responseXML;if(!r||!r.documentElement)return i&&i(null),!1;t.parseSVGDocument(r.documentElement,(function(e,t,s,n){i&&i(e,t,s,n)}),s,n)}})},loadSVGFromString:function(e,i,s,n){var r=(new t.window.DOMParser).parseFromString(e.trim(),"text/xml");t.parseSVGDocument(r.documentElement,(function(e,t,s,n){i(e,t,s,n)}),s,n)}})}(t),n.ElementsParser=function(e,t,i,s,n,r){this.elements=e,this.callback=t,this.options=i,this.reviver=s,this.svgUid=i&&i.svgUid||0,this.parsingOptions=n,this.regexUrl=/^url\(['"]?#([^'"]+)['"]?\)/g,this.doc=r},(s=n.ElementsParser.prototype).parse=function(){this.instances=new Array(this.elements.length),this.numElements=this.elements.length,this.createObjects()},s.createObjects=function(){var e=this;this.elements.forEach((function(t,i){t.setAttribute("svgUid",e.svgUid),e.createObject(t,i)}))},s.findTag=function(e){return n[n.util.string.capitalize(e.tagName.replace("svg:",""))]},s.createObject=function(e,t){var i=this.findTag(e);if(i&&i.fromElement)try{i.fromElement(e,this.createCallback(t,e),this.options)}catch(s){n.log(s)}else this.checkIfDone()},s.createCallback=function(e,t){var i=this;return function(s){var r;i.resolveGradient(s,t,"fill"),i.resolveGradient(s,t,"stroke"),s instanceof n.Image&&s._originalElement&&(r=s.parsePreserveAspectRatioAttribute(t)),s._removeTransformMatrix(r),i.resolveClipPath(s,t),i.reviver&&i.reviver(t,s),i.instances[e]=s,i.checkIfDone()}},s.extractPropertyDefinition=function(e,t,i){var s=e[t],r=this.regexUrl;if(r.test(s)){r.lastIndex=0;var o=r.exec(s)[1];return r.lastIndex=0,n[i][this.svgUid][o]}},s.resolveGradient=function(e,t,i){var s=this.extractPropertyDefinition(e,i,"gradientDefs");if(s){var r=t.getAttribute(i+"-opacity"),o=n.Gradient.fromElement(s,e,r,this.options);e.set(i,o)}},s.createClipPathCallback=function(e,t){return function(e){e._removeTransformMatrix(),e.fillRule=e.clipRule,t.push(e)}},s.resolveClipPath=function(e,t){var i,s,r,o,a=this.extractPropertyDefinition(e,"clipPath","clipPaths");if(a){r=[],s=n.util.invertTransform(e.calcTransformMatrix());for(var c=a[0].parentNode,l=t;l.parentNode&&l.getAttribute("clip-path")!==e.clipPath;)l=l.parentNode;l.parentNode.appendChild(c);for(var h=0;h<a.length;h++)i=a[h],this.findTag(i).fromElement(i,this.createClipPathCallback(e,r),this.options);a=1===r.length?r[0]:new n.Group(r),o=n.util.multiplyTransformMatrices(s,a.calcTransformMatrix()),a.clipPath&&this.resolveClipPath(a,l);var d=n.util.qrDecompose(o);a.flipX=!1,a.flipY=!1,a.set("scaleX",d.scaleX),a.set("scaleY",d.scaleY),a.angle=d.angle,a.skewX=d.skewX,a.skewY=0,a.setPositionByOrigin({x:d.translateX,y:d.translateY},"center","center"),e.clipPath=a}else delete e.clipPath},s.checkIfDone=function(){0===--this.numElements&&(this.instances=this.instances.filter((function(e){return null!=e})),this.callback(this.instances,this.elements))},function(e){"use strict";var t=e.fabric||(e.fabric={});function i(e,t){this.x=e,this.y=t}t.Point?t.warn("fabric.Point is already defined"):(t.Point=i,i.prototype={type:"point",constructor:i,add:function(e){return new i(this.x+e.x,this.y+e.y)},addEquals:function(e){return this.x+=e.x,this.y+=e.y,this},scalarAdd:function(e){return new i(this.x+e,this.y+e)},scalarAddEquals:function(e){return this.x+=e,this.y+=e,this},subtract:function(e){return new i(this.x-e.x,this.y-e.y)},subtractEquals:function(e){return this.x-=e.x,this.y-=e.y,this},scalarSubtract:function(e){return new i(this.x-e,this.y-e)},scalarSubtractEquals:function(e){return this.x-=e,this.y-=e,this},multiply:function(e){return new i(this.x*e,this.y*e)},multiplyEquals:function(e){return this.x*=e,this.y*=e,this},divide:function(e){return new i(this.x/e,this.y/e)},divideEquals:function(e){return this.x/=e,this.y/=e,this},eq:function(e){return this.x===e.x&&this.y===e.y},lt:function(e){return this.x<e.x&&this.y<e.y},lte:function(e){return this.x<=e.x&&this.y<=e.y},gt:function(e){return this.x>e.x&&this.y>e.y},gte:function(e){return this.x>=e.x&&this.y>=e.y},lerp:function(e,t){return"undefined"===typeof t&&(t=.5),t=Math.max(Math.min(1,t),0),new i(this.x+(e.x-this.x)*t,this.y+(e.y-this.y)*t)},distanceFrom:function(e){var t=this.x-e.x,i=this.y-e.y;return Math.sqrt(t*t+i*i)},midPointFrom:function(e){return this.lerp(e)},min:function(e){return new i(Math.min(this.x,e.x),Math.min(this.y,e.y))},max:function(e){return new i(Math.max(this.x,e.x),Math.max(this.y,e.y))},toString:function(){return this.x+","+this.y},setXY:function(e,t){return this.x=e,this.y=t,this},setX:function(e){return this.x=e,this},setY:function(e){return this.y=e,this},setFromPoint:function(e){return this.x=e.x,this.y=e.y,this},swap:function(e){var t=this.x,i=this.y;this.x=e.x,this.y=e.y,e.x=t,e.y=i},clone:function(){return new i(this.x,this.y)}})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={});function i(e){this.status=e,this.points=[]}t.Intersection?t.warn("fabric.Intersection is already defined"):(t.Intersection=i,t.Intersection.prototype={constructor:i,appendPoint:function(e){return this.points.push(e),this},appendPoints:function(e){return this.points=this.points.concat(e),this}},t.Intersection.intersectLineLine=function(e,s,n,r){var o,a=(r.x-n.x)*(e.y-n.y)-(r.y-n.y)*(e.x-n.x),c=(s.x-e.x)*(e.y-n.y)-(s.y-e.y)*(e.x-n.x),l=(r.y-n.y)*(s.x-e.x)-(r.x-n.x)*(s.y-e.y);if(0!==l){var h=a/l,d=c/l;0<=h&&h<=1&&0<=d&&d<=1?(o=new i("Intersection")).appendPoint(new t.Point(e.x+h*(s.x-e.x),e.y+h*(s.y-e.y))):o=new i}else o=new i(0===a||0===c?"Coincident":"Parallel");return o},t.Intersection.intersectLinePolygon=function(e,t,s){var n,r,o,a,c=new i,l=s.length;for(a=0;a<l;a++)n=s[a],r=s[(a+1)%l],o=i.intersectLineLine(e,t,n,r),c.appendPoints(o.points);return c.points.length>0&&(c.status="Intersection"),c},t.Intersection.intersectPolygonPolygon=function(e,t){var s,n=new i,r=e.length;for(s=0;s<r;s++){var o=e[s],a=e[(s+1)%r],c=i.intersectLinePolygon(o,a,t);n.appendPoints(c.points)}return n.points.length>0&&(n.status="Intersection"),n},t.Intersection.intersectPolygonRectangle=function(e,s,n){var r=s.min(n),o=s.max(n),a=new t.Point(o.x,r.y),c=new t.Point(r.x,o.y),l=i.intersectLinePolygon(r,a,e),h=i.intersectLinePolygon(a,o,e),d=i.intersectLinePolygon(o,c,e),u=i.intersectLinePolygon(c,r,e),g=new i;return g.appendPoints(l.points),g.appendPoints(h.points),g.appendPoints(d.points),g.appendPoints(u.points),g.points.length>0&&(g.status="Intersection"),g})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={});function i(e){e?this._tryParsingColor(e):this.setSource([0,0,0,1])}function s(e,t,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}t.Color?t.warn("fabric.Color is already defined."):(t.Color=i,t.Color.prototype={_tryParsingColor:function(e){var t;e in i.colorNameMap&&(e=i.colorNameMap[e]),"transparent"===e&&(t=[255,255,255,0]),t||(t=i.sourceFromHex(e)),t||(t=i.sourceFromRgb(e)),t||(t=i.sourceFromHsl(e)),t||(t=[0,0,0,1]),t&&this.setSource(t)},_rgbToHsl:function(e,i,s){e/=255,i/=255,s/=255;var n,r,o,a=t.util.array.max([e,i,s]),c=t.util.array.min([e,i,s]);if(o=(a+c)/2,a===c)n=r=0;else{var l=a-c;switch(r=o>.5?l/(2-a-c):l/(a+c),a){case e:n=(i-s)/l+(i<s?6:0);break;case i:n=(s-e)/l+2;break;case s:n=(e-i)/l+4}n/=6}return[Math.round(360*n),Math.round(100*r),Math.round(100*o)]},getSource:function(){return this._source},setSource:function(e){this._source=e},toRgb:function(){var e=this.getSource();return"rgb("+e[0]+","+e[1]+","+e[2]+")"},toRgba:function(){var e=this.getSource();return"rgba("+e[0]+","+e[1]+","+e[2]+","+e[3]+")"},toHsl:function(){var e=this.getSource(),t=this._rgbToHsl(e[0],e[1],e[2]);return"hsl("+t[0]+","+t[1]+"%,"+t[2]+"%)"},toHsla:function(){var e=this.getSource(),t=this._rgbToHsl(e[0],e[1],e[2]);return"hsla("+t[0]+","+t[1]+"%,"+t[2]+"%,"+e[3]+")"},toHex:function(){var e,t,i,s=this.getSource();return e=1===(e=s[0].toString(16)).length?"0"+e:e,t=1===(t=s[1].toString(16)).length?"0"+t:t,i=1===(i=s[2].toString(16)).length?"0"+i:i,e.toUpperCase()+t.toUpperCase()+i.toUpperCase()},toHexa:function(){var e,t=this.getSource();return e=1===(e=(e=Math.round(255*t[3])).toString(16)).length?"0"+e:e,this.toHex()+e.toUpperCase()},getAlpha:function(){return this.getSource()[3]},setAlpha:function(e){var t=this.getSource();return t[3]=e,this.setSource(t),this},toGrayscale:function(){var e=this.getSource(),t=parseInt((.3*e[0]+.59*e[1]+.11*e[2]).toFixed(0),10),i=e[3];return this.setSource([t,t,t,i]),this},toBlackWhite:function(e){var t=this.getSource(),i=(.3*t[0]+.59*t[1]+.11*t[2]).toFixed(0),s=t[3];return e=e||127,i=Number(i)<Number(e)?0:255,this.setSource([i,i,i,s]),this},overlayWith:function(e){e instanceof i||(e=new i(e));var t,s=[],n=this.getAlpha(),r=this.getSource(),o=e.getSource();for(t=0;t<3;t++)s.push(Math.round(.5*r[t]+.5*o[t]));return s[3]=n,this.setSource(s),this}},t.Color.reRGBa=/^rgba?\(\s*(\d{1,3}(?:\.\d+)?\%?)\s*,\s*(\d{1,3}(?:\.\d+)?\%?)\s*,\s*(\d{1,3}(?:\.\d+)?\%?)\s*(?:\s*,\s*((?:\d*\.?\d+)?)\s*)?\)$/i,t.Color.reHSLa=/^hsla?\(\s*(\d{1,3})\s*,\s*(\d{1,3}\%)\s*,\s*(\d{1,3}\%)\s*(?:\s*,\s*(\d+(?:\.\d+)?)\s*)?\)$/i,t.Color.reHex=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,t.Color.colorNameMap={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:"#9370DB",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:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",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"},t.Color.fromRgb=function(e){return i.fromSource(i.sourceFromRgb(e))},t.Color.sourceFromRgb=function(e){var t=e.match(i.reRGBa);if(t){var s=parseInt(t[1],10)/(/%$/.test(t[1])?100:1)*(/%$/.test(t[1])?255:1),n=parseInt(t[2],10)/(/%$/.test(t[2])?100:1)*(/%$/.test(t[2])?255:1),r=parseInt(t[3],10)/(/%$/.test(t[3])?100:1)*(/%$/.test(t[3])?255:1);return[parseInt(s,10),parseInt(n,10),parseInt(r,10),t[4]?parseFloat(t[4]):1]}},t.Color.fromRgba=i.fromRgb,t.Color.fromHsl=function(e){return i.fromSource(i.sourceFromHsl(e))},t.Color.sourceFromHsl=function(e){var t=e.match(i.reHSLa);if(t){var n,r,o,a=(parseFloat(t[1])%360+360)%360/360,c=parseFloat(t[2])/(/%$/.test(t[2])?100:1),l=parseFloat(t[3])/(/%$/.test(t[3])?100:1);if(0===c)n=r=o=l;else{var h=l<=.5?l*(c+1):l+c-l*c,d=2*l-h;n=s(d,h,a+1/3),r=s(d,h,a),o=s(d,h,a-1/3)}return[Math.round(255*n),Math.round(255*r),Math.round(255*o),t[4]?parseFloat(t[4]):1]}},t.Color.fromHsla=i.fromHsl,t.Color.fromHex=function(e){return i.fromSource(i.sourceFromHex(e))},t.Color.sourceFromHex=function(e){if(e.match(i.reHex)){var t=e.slice(e.indexOf("#")+1),s=3===t.length||4===t.length,n=8===t.length||4===t.length,r=s?t.charAt(0)+t.charAt(0):t.substring(0,2),o=s?t.charAt(1)+t.charAt(1):t.substring(2,4),a=s?t.charAt(2)+t.charAt(2):t.substring(4,6),c=n?s?t.charAt(3)+t.charAt(3):t.substring(6,8):"FF";return[parseInt(r,16),parseInt(o,16),parseInt(a,16),parseFloat((parseInt(c,16)/255).toFixed(2))]}},t.Color.fromSource=function(e){var t=new i;return t.setSource(e),t})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=["e","se","s","sw","w","nw","n","ne","e"],s=["ns","nesw","ew","nwse"],n={},r="left",o="top",a="right",c="bottom",l="center",h={top:c,bottom:o,left:a,right:r,center:l},d=t.util.radiansToDegrees,u=Math.sign||function(e){return(e>0)-(e<0)||+e};function g(e,t){var i=e.angle+d(Math.atan2(t.y,t.x))+360;return Math.round(i%360/45)}function p(e,i){var s=i.transform.target,n=s.canvas,r=t.util.object.clone(i);r.target=s,n&&n.fire("object:"+e,r),s.fire(e,i)}function m(e,t){var i=t.canvas,s=e[i.uniScaleKey];return i.uniformScaling&&!s||!i.uniformScaling&&s}function f(e){return e.originX===l&&e.originY===l}function _(e,t,i){var s=e.lockScalingX,n=e.lockScalingY;return!(!s||!n)||(!(t||!s&&!n||!i)||(!(!s||"x"!==t)||!(!n||"y"!==t)))}function v(e,t,i,s){return{e:e,transform:t,pointer:{x:i,y:s}}}function C(e){return function(t,i,s,n){var r=i.target,o=r.getCenterPoint(),a=r.translateToOriginPoint(o,i.originX,i.originY),c=e(t,i,s,n);return r.setPositionByOrigin(a,i.originX,i.originY),c}}function E(e,t){return function(i,s,n,r){var o=t(i,s,n,r);return o&&p(e,v(i,s,n,r)),o}}function b(e,i,s,n,r){var o=e.target,a=o.controls[e.corner],c=o.canvas.getZoom(),l=o.padding/c,h=o.toLocalPoint(new t.Point(n,r),i,s);return h.x>=l&&(h.x-=l),h.x<=-l&&(h.x+=l),h.y>=l&&(h.y-=l),h.y<=l&&(h.y+=l),h.x-=a.offsetX,h.y-=a.offsetY,h}function S(e){return e.flipX!==e.flipY}function y(e,t,i,s,n){if(0!==e[t]){var r=n/e._getTransformedDimensions()[s]*e[i];e.set(i,r)}}function w(e,t,i,s){var n,l=t.target,h=l._getTransformedDimensions(0,l.skewY),u=b(t,t.originX,t.originY,i,s),g=Math.abs(2*u.x)-h.x,p=l.skewX;g<2?n=0:(n=d(Math.atan2(g/l.scaleX,h.y/l.scaleY)),t.originX===r&&t.originY===c&&(n=-n),t.originX===a&&t.originY===o&&(n=-n),S(l)&&(n=-n));var m=p!==n;if(m){var f=l._getTransformedDimensions().y;l.set("skewX",n),y(l,"skewY","scaleY","y",f)}return m}function R(e,t,i,s){var n,l=t.target,h=l._getTransformedDimensions(l.skewX,0),u=b(t,t.originX,t.originY,i,s),g=Math.abs(2*u.y)-h.y,p=l.skewY;g<2?n=0:(n=d(Math.atan2(g/l.scaleY,h.x/l.scaleX)),t.originX===r&&t.originY===c&&(n=-n),t.originX===a&&t.originY===o&&(n=-n),S(l)&&(n=-n));var m=p!==n;if(m){var f=l._getTransformedDimensions().x;l.set("skewY",n),y(l,"skewX","scaleX","x",f)}return m}function L(e,t,i,s,n){n=n||{};var r,o,a,c,l,d,g=t.target,p=g.lockScalingX,v=g.lockScalingY,C=n.by,E=m(e,g),S=_(g,C,E),y=t.gestureScale;if(S)return!1;if(y)o=t.scaleX*y,a=t.scaleY*y;else{if(r=b(t,t.originX,t.originY,i,s),l="y"!==C?u(r.x):1,d="x"!==C?u(r.y):1,t.signX||(t.signX=l),t.signY||(t.signY=d),g.lockScalingFlip&&(t.signX!==l||t.signY!==d))return!1;if(c=g._getTransformedDimensions(),E&&!C){var w=Math.abs(r.x)+Math.abs(r.y),R=t.original,L=w/(Math.abs(c.x*R.scaleX/g.scaleX)+Math.abs(c.y*R.scaleY/g.scaleY));o=R.scaleX*L,a=R.scaleY*L}else o=Math.abs(r.x*g.scaleX/c.x),a=Math.abs(r.y*g.scaleY/c.y);f(t)&&(o*=2,a*=2),t.signX!==l&&"y"!==C&&(t.originX=h[t.originX],o*=-1,t.signX=l),t.signY!==d&&"x"!==C&&(t.originY=h[t.originY],a*=-1,t.signY=d)}var T=g.scaleX,x=g.scaleY;return C?("x"===C&&g.set("scaleX",o),"y"===C&&g.set("scaleY",a)):(!p&&g.set("scaleX",o),!v&&g.set("scaleY",a)),T!==g.scaleX||x!==g.scaleY}n.scaleCursorStyleHandler=function(e,t,s){var n=m(e,s),r="";if(0!==t.x&&0===t.y?r="x":0===t.x&&0!==t.y&&(r="y"),_(s,r,n))return"not-allowed";var o=g(s,t);return i[o]+"-resize"},n.skewCursorStyleHandler=function(e,t,i){var n="not-allowed";if(0!==t.x&&i.lockSkewingY)return n;if(0!==t.y&&i.lockSkewingX)return n;var r=g(i,t)%4;return s[r]+"-resize"},n.scaleSkewCursorStyleHandler=function(e,t,i){return e[i.canvas.altActionKey]?n.skewCursorStyleHandler(e,t,i):n.scaleCursorStyleHandler(e,t,i)},n.rotationWithSnapping=E("rotating",C((function(e,t,i,s){var n=t,r=n.target,o=r.translateToOriginPoint(r.getCenterPoint(),n.originX,n.originY);if(r.lockRotation)return!1;var a,c=Math.atan2(n.ey-o.y,n.ex-o.x),l=Math.atan2(s-o.y,i-o.x),h=d(l-c+n.theta);if(r.snapAngle>0){var u=r.snapAngle,g=r.snapThreshold||u,p=Math.ceil(h/u)*u,m=Math.floor(h/u)*u;Math.abs(h-m)<g?h=m:Math.abs(h-p)<g&&(h=p)}return h<0&&(h=360+h),h%=360,a=r.angle!==h,r.angle=h,a}))),n.scalingEqually=E("scaling",C((function(e,t,i,s){return L(e,t,i,s)}))),n.scalingX=E("scaling",C((function(e,t,i,s){return L(e,t,i,s,{by:"x"})}))),n.scalingY=E("scaling",C((function(e,t,i,s){return L(e,t,i,s,{by:"y"})}))),n.scalingYOrSkewingX=function(e,t,i,s){return e[t.target.canvas.altActionKey]?n.skewHandlerX(e,t,i,s):n.scalingY(e,t,i,s)},n.scalingXOrSkewingY=function(e,t,i,s){return e[t.target.canvas.altActionKey]?n.skewHandlerY(e,t,i,s):n.scalingX(e,t,i,s)},n.changeWidth=E("resizing",C((function(e,t,i,s){var n=t.target,r=b(t,t.originX,t.originY,i,s),o=n.strokeWidth/(n.strokeUniform?n.scaleX:1),a=f(t)?2:1,c=n.width,l=Math.abs(r.x*a/n.scaleX)-o;return n.set("width",Math.max(l,0)),c!==l}))),n.skewHandlerX=function(e,t,i,s){var n,c=t.target,h=c.skewX,d=t.originY;return!c.lockSkewingX&&(0===h?n=b(t,l,l,i,s).x>0?r:a:(h>0&&(n=d===o?r:a),h<0&&(n=d===o?a:r),S(c)&&(n=n===r?a:r)),t.originX=n,E("skewing",C(w))(e,t,i,s))},n.skewHandlerY=function(e,t,i,s){var n,a=t.target,h=a.skewY,d=t.originX;return!a.lockSkewingY&&(0===h?n=b(t,l,l,i,s).y>0?o:c:(h>0&&(n=d===r?o:c),h<0&&(n=d===r?c:o),S(a)&&(n=n===o?c:o)),t.originY=n,E("skewing",C(R))(e,t,i,s))},n.dragHandler=function(e,t,i,s){var n=t.target,r=i-t.offsetX,o=s-t.offsetY,a=!n.get("lockMovementX")&&n.left!==r,c=!n.get("lockMovementY")&&n.top!==o;return a&&n.set("left",r),c&&n.set("top",o),(a||c)&&p("moving",v(e,t,i,s)),a||c},n.scaleOrSkewActionName=function(e,t,i){var s=e[i.canvas.altActionKey];return 0===t.x?s?"skewX":"scaleY":0===t.y?s?"skewY":"scaleX":void 0},n.rotationStyleHandler=function(e,t,i){return i.lockRotation?"not-allowed":t.cursorStyle},n.fireEvent=p,n.wrapWithFixedAnchor=C,n.wrapWithFireEvent=E,n.getLocalPoint=b,t.controlsUtils=n}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.degreesToRadians,s=t.controlsUtils;s.renderCircleControl=function(e,t,i,s,n){s=s||{};var r,o=this.sizeX||s.cornerSize||n.cornerSize,a=this.sizeY||s.cornerSize||n.cornerSize,c="undefined"!==typeof s.transparentCorners?s.transparentCorners:n.transparentCorners,l=c?"stroke":"fill",h=!c&&(s.cornerStrokeColor||n.cornerStrokeColor),d=t,u=i;e.save(),e.fillStyle=s.cornerColor||n.cornerColor,e.strokeStyle=s.cornerStrokeColor||n.cornerStrokeColor,o>a?(r=o,e.scale(1,a/o),u=i*o/a):a>o?(r=a,e.scale(o/a,1),d=t*a/o):r=o,e.lineWidth=1,e.beginPath(),e.arc(d,u,r/2,0,2*Math.PI,!1),e[l](),h&&e.stroke(),e.restore()},s.renderSquareControl=function(e,t,s,n,r){n=n||{};var o=this.sizeX||n.cornerSize||r.cornerSize,a=this.sizeY||n.cornerSize||r.cornerSize,c="undefined"!==typeof n.transparentCorners?n.transparentCorners:r.transparentCorners,l=c?"stroke":"fill",h=!c&&(n.cornerStrokeColor||r.cornerStrokeColor),d=o/2,u=a/2;e.save(),e.fillStyle=n.cornerColor||r.cornerColor,e.strokeStyle=n.cornerStrokeColor||r.cornerStrokeColor,e.lineWidth=1,e.translate(t,s),e.rotate(i(r.angle)),e[l+"Rect"](-d,-u,o,a),h&&e.strokeRect(-d,-u,o,a),e.restore()}}(t),function(e){"use strict";var t=e.fabric||(e.fabric={});t.Control=function(e){for(var t in e)this[t]=e[t]},t.Control.prototype={visible:!0,actionName:"scale",angle:0,x:0,y:0,offsetX:0,offsetY:0,sizeX:null,sizeY:null,touchSizeX:null,touchSizeY:null,cursorStyle:"crosshair",withConnection:!1,actionHandler:function(){},mouseDownHandler:function(){},mouseUpHandler:function(){},getActionHandler:function(){return this.actionHandler},getMouseDownHandler:function(){return this.mouseDownHandler},getMouseUpHandler:function(){return this.mouseUpHandler},cursorStyleHandler:function(e,t){return t.cursorStyle},getActionName:function(e,t){return t.actionName},getVisibility:function(e,t){var i=e._controlsVisibility;return i&&"undefined"!==typeof i[t]?i[t]:this.visible},setVisibility:function(e){this.visible=e},positionHandler:function(e,i){return t.util.transformPoint({x:this.x*e.x+this.offsetX,y:this.y*e.y+this.offsetY},i)},calcCornerCoords:function(e,i,s,n,r){var o,a,c,l,h=r?this.touchSizeX:this.sizeX,d=r?this.touchSizeY:this.sizeY;if(h&&d&&h!==d){var u=Math.atan2(d,h),g=Math.sqrt(h*h+d*d)/2,p=u-t.util.degreesToRadians(e),m=Math.PI/2-u-t.util.degreesToRadians(e);o=g*t.util.cos(p),a=g*t.util.sin(p),c=g*t.util.cos(m),l=g*t.util.sin(m)}else{g=.7071067812*(h&&d?h:i);p=t.util.degreesToRadians(45-e);o=c=g*t.util.cos(p),a=l=g*t.util.sin(p)}return{tl:{x:s-l,y:n-c},tr:{x:s+o,y:n-a},bl:{x:s-o,y:n+a},br:{x:s+l,y:n+c}}},render:function(e,i,s,n,r){if("circle"===((n=n||{}).cornerStyle||r.cornerStyle))t.controlsUtils.renderCircleControl.call(this,e,i,s,n,r);else t.controlsUtils.renderSquareControl.call(this,e,i,s,n,r)}}}(t),function(){function e(e,t){var i,s,r,o,a=e.getAttribute("style"),c=e.getAttribute("offset")||0;if(c=(c=parseFloat(c)/(/%$/.test(c)?100:1))<0?0:c>1?1:c,a){var l=a.split(/\s*;\s*/);for(""===l[l.length-1]&&l.pop(),o=l.length;o--;){var h=l[o].split(/\s*:\s*/),d=h[0].trim(),u=h[1].trim();"stop-color"===d?i=u:"stop-opacity"===d&&(r=u)}}return i||(i=e.getAttribute("stop-color")||"rgb(0,0,0)"),r||(r=e.getAttribute("stop-opacity")),s=(i=new n.Color(i)).getAlpha(),r=isNaN(parseFloat(r))?1:parseFloat(r),r*=s*t,{offset:c,color:i.toRgb(),opacity:r}}var t=n.util.object.clone;n.Gradient=n.util.createClass({offsetX:0,offsetY:0,gradientTransform:null,gradientUnits:"pixels",type:"linear",initialize:function(e){e||(e={}),e.coords||(e.coords={});var t,i=this;Object.keys(e).forEach((function(t){i[t]=e[t]})),this.id?this.id+="_"+n.Object.__uid++:this.id=n.Object.__uid++,t={x1:e.coords.x1||0,y1:e.coords.y1||0,x2:e.coords.x2||0,y2:e.coords.y2||0},"radial"===this.type&&(t.r1=e.coords.r1||0,t.r2=e.coords.r2||0),this.coords=t,this.colorStops=e.colorStops.slice()},addColorStop:function(e){for(var t in e){var i=new n.Color(e[t]);this.colorStops.push({offset:parseFloat(t),color:i.toRgb(),opacity:i.getAlpha()})}return this},toObject:function(e){var t={type:this.type,coords:this.coords,colorStops:this.colorStops,offsetX:this.offsetX,offsetY:this.offsetY,gradientUnits:this.gradientUnits,gradientTransform:this.gradientTransform?this.gradientTransform.concat():this.gradientTransform};return n.util.populateWithProperties(this,t,e),t},toSVG:function(e,i){var s,r,o,a,c=t(this.coords,!0),l=(i=i||{},t(this.colorStops,!0)),h=c.r1>c.r2,d=this.gradientTransform?this.gradientTransform.concat():n.iMatrix.concat(),u=-this.offsetX,g=-this.offsetY,p=!!i.additionalTransform,m="pixels"===this.gradientUnits?"userSpaceOnUse":"objectBoundingBox";if(l.sort((function(e,t){return e.offset-t.offset})),"objectBoundingBox"===m?(u/=e.width,g/=e.height):(u+=e.width/2,g+=e.height/2),"path"===e.type&&"percentage"!==this.gradientUnits&&(u-=e.pathOffset.x,g-=e.pathOffset.y),d[4]-=u,d[5]-=g,a='id="SVGID_'+this.id+'" gradientUnits="'+m+'"',a+=' gradientTransform="'+(p?i.additionalTransform+" ":"")+n.util.matrixToSVG(d)+'" ',"linear"===this.type?o=["<linearGradient ",a,' x1="',c.x1,'" y1="',c.y1,'" x2="',c.x2,'" y2="',c.y2,'">\n']:"radial"===this.type&&(o=["<radialGradient ",a,' cx="',h?c.x1:c.x2,'" cy="',h?c.y1:c.y2,'" r="',h?c.r1:c.r2,'" fx="',h?c.x2:c.x1,'" fy="',h?c.y2:c.y1,'">\n']),"radial"===this.type){if(h)for((l=l.concat()).reverse(),s=0,r=l.length;s<r;s++)l[s].offset=1-l[s].offset;var f=Math.min(c.r1,c.r2);if(f>0){var _=f/Math.max(c.r1,c.r2);for(s=0,r=l.length;s<r;s++)l[s].offset+=_*(1-l[s].offset)}}for(s=0,r=l.length;s<r;s++){var v=l[s];o.push("<stop ",'offset="',100*v.offset+"%",'" style="stop-color:',v.color,"undefined"!==typeof v.opacity?";stop-opacity: "+v.opacity:";",'"/>\n')}return o.push("linear"===this.type?"</linearGradient>\n":"</radialGradient>\n"),o.join("")},toLive:function(e){var t,i,s,r=n.util.object.clone(this.coords);if(this.type){for("linear"===this.type?t=e.createLinearGradient(r.x1,r.y1,r.x2,r.y2):"radial"===this.type&&(t=e.createRadialGradient(r.x1,r.y1,r.r1,r.x2,r.y2,r.r2)),i=0,s=this.colorStops.length;i<s;i++){var o=this.colorStops[i].color,a=this.colorStops[i].opacity,c=this.colorStops[i].offset;"undefined"!==typeof a&&(o=new n.Color(o).setAlpha(a).toRgba()),t.addColorStop(c,o)}return t}}}),n.util.object.extend(n.Gradient,{fromElement:function(t,i,s,r){var o=parseFloat(s)/(/%$/.test(s)?100:1);o=o<0?0:o>1?1:o,isNaN(o)&&(o=1);var a,c,l,h,d=t.getElementsByTagName("stop"),u="userSpaceOnUse"===t.getAttribute("gradientUnits")?"pixels":"percentage",g=t.getAttribute("gradientTransform")||"",p=[],m=0,f=0;for("linearGradient"===t.nodeName||"LINEARGRADIENT"===t.nodeName?(a="linear",c=function(e){return{x1:e.getAttribute("x1")||0,y1:e.getAttribute("y1")||0,x2:e.getAttribute("x2")||"100%",y2:e.getAttribute("y2")||0}}(t)):(a="radial",c=function(e){return{x1:e.getAttribute("fx")||e.getAttribute("cx")||"50%",y1:e.getAttribute("fy")||e.getAttribute("cy")||"50%",r1:0,x2:e.getAttribute("cx")||"50%",y2:e.getAttribute("cy")||"50%",r2:e.getAttribute("r")||"50%"}}(t)),l=d.length;l--;)p.push(e(d[l],o));return h=n.parseTransformAttribute(g),function(e,t,i,s){var n,r;Object.keys(t).forEach((function(e){"Infinity"===(n=t[e])?r=1:"-Infinity"===n?r=0:(r=parseFloat(t[e],10),"string"===typeof n&&/^(\d+\.\d+)%|(\d+)%$/.test(n)&&(r*=.01,"pixels"===s&&("x1"!==e&&"x2"!==e&&"r2"!==e||(r*=i.viewBoxWidth||i.width),"y1"!==e&&"y2"!==e||(r*=i.viewBoxHeight||i.height)))),t[e]=r}))}(0,c,r,u),"pixels"===u&&(m=-i.left,f=-i.top),new n.Gradient({id:t.getAttribute("id"),type:a,coords:c,colorStops:p,gradientUnits:u,gradientTransform:h,offsetX:m,offsetY:f})}})}(),function(){"use strict";var e=n.util.toFixed;n.Pattern=n.util.createClass({repeat:"repeat",offsetX:0,offsetY:0,crossOrigin:"",patternTransform:null,initialize:function(e,t){if(e||(e={}),this.id=n.Object.__uid++,this.setOptions(e),!e.source||e.source&&"string"!==typeof e.source)t&&t(this);else{var i=this;this.source=n.util.createImage(),n.util.loadImage(e.source,(function(e,s){i.source=e,t&&t(i,s)}),null,this.crossOrigin)}},toObject:function(t){var i,s,r=n.Object.NUM_FRACTION_DIGITS;return"string"===typeof this.source.src?i=this.source.src:"object"===typeof this.source&&this.source.toDataURL&&(i=this.source.toDataURL()),s={type:"pattern",source:i,repeat:this.repeat,crossOrigin:this.crossOrigin,offsetX:e(this.offsetX,r),offsetY:e(this.offsetY,r),patternTransform:this.patternTransform?this.patternTransform.concat():null},n.util.populateWithProperties(this,s,t),s},toSVG:function(e){var t="function"===typeof this.source?this.source():this.source,i=t.width/e.width,s=t.height/e.height,n=this.offsetX/e.width,r=this.offsetY/e.height,o="";return"repeat-x"!==this.repeat&&"no-repeat"!==this.repeat||(s=1,r&&(s+=Math.abs(r))),"repeat-y"!==this.repeat&&"no-repeat"!==this.repeat||(i=1,n&&(i+=Math.abs(n))),t.src?o=t.src:t.toDataURL&&(o=t.toDataURL()),'<pattern id="SVGID_'+this.id+'" x="'+n+'" y="'+r+'" width="'+i+'" height="'+s+'">\n<image x="0" y="0" width="'+t.width+'" height="'+t.height+'" xlink:href="'+o+'"></image>\n</pattern>\n'},setOptions:function(e){for(var t in e)this[t]=e[t]},toLive:function(e){var t=this.source;if(!t)return"";if("undefined"!==typeof t.src){if(!t.complete)return"";if(0===t.naturalWidth||0===t.naturalHeight)return""}return e.createPattern(t,this.repeat)}})}(),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.toFixed;t.Shadow?t.warn("fabric.Shadow is already defined."):(t.Shadow=t.util.createClass({color:"rgb(0,0,0)",blur:0,offsetX:0,offsetY:0,affectStroke:!1,includeDefaultValues:!0,nonScaling:!1,initialize:function(e){for(var i in"string"===typeof e&&(e=this._parseShadow(e)),e)this[i]=e[i];this.id=t.Object.__uid++},_parseShadow:function(e){var i=e.trim(),s=t.Shadow.reOffsetsAndBlur.exec(i)||[];return{color:(i.replace(t.Shadow.reOffsetsAndBlur,"")||"rgb(0,0,0)").trim(),offsetX:parseFloat(s[1],10)||0,offsetY:parseFloat(s[2],10)||0,blur:parseFloat(s[3],10)||0}},toString:function(){return[this.offsetX,this.offsetY,this.blur,this.color].join("px ")},toSVG:function(e){var s=40,n=40,r=t.Object.NUM_FRACTION_DIGITS,o=t.util.rotateVector({x:this.offsetX,y:this.offsetY},t.util.degreesToRadians(-e.angle)),a=new t.Color(this.color);return e.width&&e.height&&(s=100*i((Math.abs(o.x)+this.blur)/e.width,r)+20,n=100*i((Math.abs(o.y)+this.blur)/e.height,r)+20),e.flipX&&(o.x*=-1),e.flipY&&(o.y*=-1),'<filter id="SVGID_'+this.id+'" y="-'+n+'%" height="'+(100+2*n)+'%" x="-'+s+'%" width="'+(100+2*s)+'%" >\n\t<feGaussianBlur in="SourceAlpha" stdDeviation="'+i(this.blur?this.blur/2:0,r)+'"></feGaussianBlur>\n\t<feOffset dx="'+i(o.x,r)+'" dy="'+i(o.y,r)+'" result="oBlur" ></feOffset>\n\t<feFlood flood-color="'+a.toRgb()+'" flood-opacity="'+a.getAlpha()+'"/>\n\t<feComposite in2="oBlur" operator="in" />\n\t<feMerge>\n\t\t<feMergeNode></feMergeNode>\n\t\t<feMergeNode in="SourceGraphic"></feMergeNode>\n\t</feMerge>\n</filter>\n'},toObject:function(){if(this.includeDefaultValues)return{color:this.color,blur:this.blur,offsetX:this.offsetX,offsetY:this.offsetY,affectStroke:this.affectStroke,nonScaling:this.nonScaling};var e={},i=t.Shadow.prototype;return["color","blur","offsetX","offsetY","affectStroke","nonScaling"].forEach((function(t){this[t]!==i[t]&&(e[t]=this[t])}),this),e}}),t.Shadow.reOffsetsAndBlur=/(?:\s|^)(-?\d+(?:\.\d*)?(?:px)?(?:\s?|$))?(-?\d+(?:\.\d*)?(?:px)?(?:\s?|$))?(\d+(?:\.\d*)?(?:px)?)?(?:\s?|$)(?:$|\s)/)}(t),function(){"use strict";if(n.StaticCanvas)n.warn("fabric.StaticCanvas is already defined.");else{var e=n.util.object.extend,t=n.util.getElementOffset,i=n.util.removeFromArray,s=n.util.toFixed,r=n.util.transformPoint,o=n.util.invertTransform,a=n.util.getNodeCanvas,c=n.util.createCanvasElement,l=new Error("Could not initialize `canvas` element");n.StaticCanvas=n.util.createClass(n.CommonMethods,{initialize:function(e,t){t||(t={}),this.renderAndResetBound=this.renderAndReset.bind(this),this.requestRenderAllBound=this.requestRenderAll.bind(this),this._initStatic(e,t)},backgroundColor:"",backgroundImage:null,overlayColor:"",overlayImage:null,includeDefaultValues:!0,stateful:!1,renderOnAddRemove:!0,controlsAboveOverlay:!1,allowTouchScrolling:!1,imageSmoothingEnabled:!0,viewportTransform:n.iMatrix.concat(),backgroundVpt:!0,overlayVpt:!0,enableRetinaScaling:!0,vptCoords:{},skipOffscreen:!0,clipPath:void 0,_initStatic:function(e,t){var i=this.requestRenderAllBound;this._objects=[],this._createLowerCanvas(e),this._initOptions(t),this.interactive||this._initRetinaScaling(),t.overlayImage&&this.setOverlayImage(t.overlayImage,i),t.backgroundImage&&this.setBackgroundImage(t.backgroundImage,i),t.backgroundColor&&this.setBackgroundColor(t.backgroundColor,i),t.overlayColor&&this.setOverlayColor(t.overlayColor,i),this.calcOffset()},_isRetinaScaling:function(){return n.devicePixelRatio>1&&this.enableRetinaScaling},getRetinaScaling:function(){return this._isRetinaScaling()?Math.max(1,n.devicePixelRatio):1},_initRetinaScaling:function(){if(this._isRetinaScaling()){var e=n.devicePixelRatio;this.__initRetinaScaling(e,this.lowerCanvasEl,this.contextContainer),this.upperCanvasEl&&this.__initRetinaScaling(e,this.upperCanvasEl,this.contextTop)}},__initRetinaScaling:function(e,t,i){t.setAttribute("width",this.width*e),t.setAttribute("height",this.height*e),i.scale(e,e)},calcOffset:function(){return this._offset=t(this.lowerCanvasEl),this},setOverlayImage:function(e,t,i){return this.__setBgOverlayImage("overlayImage",e,t,i)},setBackgroundImage:function(e,t,i){return this.__setBgOverlayImage("backgroundImage",e,t,i)},setOverlayColor:function(e,t){return this.__setBgOverlayColor("overlayColor",e,t)},setBackgroundColor:function(e,t){return this.__setBgOverlayColor("backgroundColor",e,t)},__setBgOverlayImage:function(e,t,i,s){return"string"===typeof t?n.util.loadImage(t,(function(t,r){if(t){var o=new n.Image(t,s);this[e]=o,o.canvas=this}i&&i(t,r)}),this,s&&s.crossOrigin):(s&&t.setOptions(s),this[e]=t,t&&(t.canvas=this),i&&i(t,!1)),this},__setBgOverlayColor:function(e,t,i){return this[e]=t,this._initGradient(t,e),this._initPattern(t,e,i),this},_createCanvasElement:function(){var e=c();if(!e)throw l;if(e.style||(e.style={}),"undefined"===typeof e.getContext)throw l;return e},_initOptions:function(e){var t=this.lowerCanvasEl;this._setOptions(e),this.width=this.width||parseInt(t.width,10)||0,this.height=this.height||parseInt(t.height,10)||0,this.lowerCanvasEl.style&&(t.width=this.width,t.height=this.height,t.style.width=this.width+"px",t.style.height=this.height+"px",this.viewportTransform=this.viewportTransform.slice())},_createLowerCanvas:function(e){e&&e.getContext?this.lowerCanvasEl=e:this.lowerCanvasEl=n.util.getById(e)||this._createCanvasElement(),n.util.addClass(this.lowerCanvasEl,"lower-canvas"),this._originalCanvasStyle=this.lowerCanvasEl.style,this.interactive&&this._applyCanvasStyle(this.lowerCanvasEl),this.contextContainer=this.lowerCanvasEl.getContext("2d")},getWidth:function(){return this.width},getHeight:function(){return this.height},setWidth:function(e,t){return this.setDimensions({width:e},t)},setHeight:function(e,t){return this.setDimensions({height:e},t)},setDimensions:function(e,t){var i;for(var s in t=t||{},e)i=e[s],t.cssOnly||(this._setBackstoreDimension(s,e[s]),i+="px",this.hasLostContext=!0),t.backstoreOnly||this._setCssDimension(s,i);return this._isCurrentlyDrawing&&this.freeDrawingBrush&&this.freeDrawingBrush._setBrushStyles(this.contextTop),this._initRetinaScaling(),this.calcOffset(),t.cssOnly||this.requestRenderAll(),this},_setBackstoreDimension:function(e,t){return this.lowerCanvasEl[e]=t,this.upperCanvasEl&&(this.upperCanvasEl[e]=t),this.cacheCanvasEl&&(this.cacheCanvasEl[e]=t),this[e]=t,this},_setCssDimension:function(e,t){return this.lowerCanvasEl.style[e]=t,this.upperCanvasEl&&(this.upperCanvasEl.style[e]=t),this.wrapperEl&&(this.wrapperEl.style[e]=t),this},getZoom:function(){return this.viewportTransform[0]},setViewportTransform:function(e){var t,i,s,n=this._activeObject,r=this.backgroundImage,o=this.overlayImage;for(this.viewportTransform=e,i=0,s=this._objects.length;i<s;i++)(t=this._objects[i]).group||t.setCoords(!0);return n&&n.setCoords(),r&&r.setCoords(!0),o&&o.setCoords(!0),this.calcViewportBoundaries(),this.renderOnAddRemove&&this.requestRenderAll(),this},zoomToPoint:function(e,t){var i=e,s=this.viewportTransform.slice(0);e=r(e,o(this.viewportTransform)),s[0]=t,s[3]=t;var n=r(e,s);return s[4]+=i.x-n.x,s[5]+=i.y-n.y,this.setViewportTransform(s)},setZoom:function(e){return this.zoomToPoint(new n.Point(0,0),e),this},absolutePan:function(e){var t=this.viewportTransform.slice(0);return t[4]=-e.x,t[5]=-e.y,this.setViewportTransform(t)},relativePan:function(e){return this.absolutePan(new n.Point(-e.x-this.viewportTransform[4],-e.y-this.viewportTransform[5]))},getElement:function(){return this.lowerCanvasEl},_onObjectAdded:function(e){this.stateful&&e.setupState(),e._set("canvas",this),e.setCoords(),this.fire("object:added",{target:e}),e.fire("added")},_onObjectRemoved:function(e){this.fire("object:removed",{target:e}),e.fire("removed"),delete e.canvas},clearContext:function(e){return e.clearRect(0,0,this.width,this.height),this},getContext:function(){return this.contextContainer},clear:function(){return this.remove.apply(this,this.getObjects()),this.backgroundImage=null,this.overlayImage=null,this.backgroundColor="",this.overlayColor="",this._hasITextHandlers&&(this.off("mouse:up",this._mouseUpITextHandler),this._iTextInstances=null,this._hasITextHandlers=!1),this.clearContext(this.contextContainer),this.fire("canvas:cleared"),this.renderOnAddRemove&&this.requestRenderAll(),this},renderAll:function(){var e=this.contextContainer;return this.renderCanvas(e,this._objects),this},renderAndReset:function(){this.isRendering=0,this.renderAll()},requestRenderAll:function(){return this.isRendering||(this.isRendering=n.util.requestAnimFrame(this.renderAndResetBound)),this},calcViewportBoundaries:function(){var e={},t=this.width,i=this.height,s=o(this.viewportTransform);return e.tl=r({x:0,y:0},s),e.br=r({x:t,y:i},s),e.tr=new n.Point(e.br.x,e.tl.y),e.bl=new n.Point(e.tl.x,e.br.y),this.vptCoords=e,e},cancelRequestedRender:function(){this.isRendering&&(n.util.cancelAnimFrame(this.isRendering),this.isRendering=0)},renderCanvas:function(e,t){var i=this.viewportTransform,s=this.clipPath;this.cancelRequestedRender(),this.calcViewportBoundaries(),this.clearContext(e),n.util.setImageSmoothing(e,this.imageSmoothingEnabled),this.fire("before:render",{ctx:e}),this._renderBackground(e),e.save(),e.transform(i[0],i[1],i[2],i[3],i[4],i[5]),this._renderObjects(e,t),e.restore(),!this.controlsAboveOverlay&&this.interactive&&this.drawControls(e),s&&(s.canvas=this,s.shouldCache(),s._transformDone=!0,s.renderCache({forClipping:!0}),this.drawClipPathOnCanvas(e)),this._renderOverlay(e),this.controlsAboveOverlay&&this.interactive&&this.drawControls(e),this.fire("after:render",{ctx:e})},drawClipPathOnCanvas:function(e){var t=this.viewportTransform,i=this.clipPath;e.save(),e.transform(t[0],t[1],t[2],t[3],t[4],t[5]),e.globalCompositeOperation="destination-in",i.transform(e),e.scale(1/i.zoomX,1/i.zoomY),e.drawImage(i._cacheCanvas,-i.cacheTranslationX,-i.cacheTranslationY),e.restore()},_renderObjects:function(e,t){var i,s;for(i=0,s=t.length;i<s;++i)t[i]&&t[i].render(e)},_renderBackgroundOrOverlay:function(e,t){var i=this[t+"Color"],s=this[t+"Image"],n=this.viewportTransform,r=this[t+"Vpt"];if(i||s){if(i){e.save(),e.beginPath(),e.moveTo(0,0),e.lineTo(this.width,0),e.lineTo(this.width,this.height),e.lineTo(0,this.height),e.closePath(),e.fillStyle=i.toLive?i.toLive(e,this):i,r&&e.transform(n[0],n[1],n[2],n[3],n[4],n[5]),e.transform(1,0,0,1,i.offsetX||0,i.offsetY||0);var o=i.gradientTransform||i.patternTransform;o&&e.transform(o[0],o[1],o[2],o[3],o[4],o[5]),e.fill(),e.restore()}if(s){e.save();var a=this.skipOffscreen;this.skipOffscreen=r,r&&e.transform(n[0],n[1],n[2],n[3],n[4],n[5]),s.render(e),this.skipOffscreen=a,e.restore()}}},_renderBackground:function(e){this._renderBackgroundOrOverlay(e,"background")},_renderOverlay:function(e){this._renderBackgroundOrOverlay(e,"overlay")},getCenter:function(){return{top:this.height/2,left:this.width/2}},getCenterPoint:function(){return new n.Point(this.width/2,this.height/2)},centerObjectH:function(e){return this._centerObject(e,new n.Point(this.getCenterPoint().x,e.getCenterPoint().y))},centerObjectV:function(e){return this._centerObject(e,new n.Point(e.getCenterPoint().x,this.getCenterPoint().y))},centerObject:function(e){var t=this.getCenterPoint();return this._centerObject(e,t)},viewportCenterObject:function(e){var t=this.getVpCenter();return this._centerObject(e,t)},viewportCenterObjectH:function(e){var t=this.getVpCenter();return this._centerObject(e,new n.Point(t.x,e.getCenterPoint().y)),this},viewportCenterObjectV:function(e){var t=this.getVpCenter();return this._centerObject(e,new n.Point(e.getCenterPoint().x,t.y))},getVpCenter:function(){var e=this.getCenterPoint(),t=o(this.viewportTransform);return r(e,t)},_centerObject:function(e,t){return e.setPositionByOrigin(t,"center","center"),e.setCoords(),this.renderOnAddRemove&&this.requestRenderAll(),this},toDatalessJSON:function(e){return this.toDatalessObject(e)},toObject:function(e){return this._toObjectMethod("toObject",e)},toDatalessObject:function(e){return this._toObjectMethod("toDatalessObject",e)},_toObjectMethod:function(t,i){var s=this.clipPath,r={version:n.version,objects:this._toObjects(t,i)};return s&&!s.excludeFromExport&&(r.clipPath=this._toObject(this.clipPath,t,i)),e(r,this.__serializeBgOverlay(t,i)),n.util.populateWithProperties(this,r,i),r},_toObjects:function(e,t){return this._objects.filter((function(e){return!e.excludeFromExport})).map((function(i){return this._toObject(i,e,t)}),this)},_toObject:function(e,t,i){var s;this.includeDefaultValues||(s=e.includeDefaultValues,e.includeDefaultValues=!1);var n=e[t](i);return this.includeDefaultValues||(e.includeDefaultValues=s),n},__serializeBgOverlay:function(e,t){var i={},s=this.backgroundImage,n=this.overlayImage,r=this.backgroundColor,o=this.overlayColor;return r&&r.toObject?r.excludeFromExport||(i.background=r.toObject(t)):r&&(i.background=r),o&&o.toObject?o.excludeFromExport||(i.overlay=o.toObject(t)):o&&(i.overlay=o),s&&!s.excludeFromExport&&(i.backgroundImage=this._toObject(s,e,t)),n&&!n.excludeFromExport&&(i.overlayImage=this._toObject(n,e,t)),i},svgViewportTransformation:!0,toSVG:function(e,t){e||(e={}),e.reviver=t;var i=[];return this._setSVGPreamble(i,e),this._setSVGHeader(i,e),this.clipPath&&i.push('<g clip-path="url(#'+this.clipPath.clipPathId+')" >\n'),this._setSVGBgOverlayColor(i,"background"),this._setSVGBgOverlayImage(i,"backgroundImage",t),this._setSVGObjects(i,t),this.clipPath&&i.push("</g>\n"),this._setSVGBgOverlayColor(i,"overlay"),this._setSVGBgOverlayImage(i,"overlayImage",t),i.push("</svg>"),i.join("")},_setSVGPreamble:function(e,t){t.suppressPreamble||e.push('<?xml version="1.0" encoding="',t.encoding||"UTF-8",'" standalone="no" ?>\n','<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" ','"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n')},_setSVGHeader:function(e,t){var i,r=t.width||this.width,o=t.height||this.height,a='viewBox="0 0 '+this.width+" "+this.height+'" ',c=n.Object.NUM_FRACTION_DIGITS;t.viewBox?a='viewBox="'+t.viewBox.x+" "+t.viewBox.y+" "+t.viewBox.width+" "+t.viewBox.height+'" ':this.svgViewportTransformation&&(i=this.viewportTransform,a='viewBox="'+s(-i[4]/i[0],c)+" "+s(-i[5]/i[3],c)+" "+s(this.width/i[0],c)+" "+s(this.height/i[3],c)+'" '),e.push("<svg ",'xmlns="http://www.w3.org/2000/svg" ','xmlns:xlink="http://www.w3.org/1999/xlink" ','version="1.1" ','width="',r,'" ','height="',o,'" ',a,'xml:space="preserve">\n',"<desc>Created with Fabric.js ",n.version,"</desc>\n","<defs>\n",this.createSVGFontFacesMarkup(),this.createSVGRefElementsMarkup(),this.createSVGClipPathMarkup(t),"</defs>\n")},createSVGClipPathMarkup:function(e){var t=this.clipPath;return t?(t.clipPathId="CLIPPATH_"+n.Object.__uid++,'<clipPath id="'+t.clipPathId+'" >\n'+this.clipPath.toClipPathSVG(e.reviver)+"</clipPath>\n"):""},createSVGRefElementsMarkup:function(){var e=this;return["background","overlay"].map((function(t){var i=e[t+"Color"];if(i&&i.toLive){var s=e[t+"Vpt"],r=e.viewportTransform,o={width:e.width/(s?r[0]:1),height:e.height/(s?r[3]:1)};return i.toSVG(o,{additionalTransform:s?n.util.matrixToSVG(r):""})}})).join("")},createSVGFontFacesMarkup:function(){var e,t,i,s,r,o,a,c,l="",h={},d=n.fontPaths,u=[];for(this._objects.forEach((function e(t){u.push(t),t._objects&&t._objects.forEach(e)})),a=0,c=u.length;a<c;a++)if(t=(e=u[a]).fontFamily,-1!==e.type.indexOf("text")&&!h[t]&&d[t]&&(h[t]=!0,e.styles))for(r in i=e.styles)for(o in s=i[r])!h[t=s[o].fontFamily]&&d[t]&&(h[t]=!0);for(var g in h)l+=["\t\t@font-face {\n","\t\t\tfont-family: '",g,"';\n","\t\t\tsrc: url('",d[g],"');\n","\t\t}\n"].join("");return l&&(l=['\t<style type="text/css">',"<![CDATA[\n",l,"]]>","</style>\n"].join("")),l},_setSVGObjects:function(e,t){var i,s,n,r=this._objects;for(s=0,n=r.length;s<n;s++)(i=r[s]).excludeFromExport||this._setSVGObject(e,i,t)},_setSVGObject:function(e,t,i){e.push(t.toSVG(i))},_setSVGBgOverlayImage:function(e,t,i){this[t]&&!this[t].excludeFromExport&&this[t].toSVG&&e.push(this[t].toSVG(i))},_setSVGBgOverlayColor:function(e,t){var i=this[t+"Color"],s=this.viewportTransform,r=this.width,o=this.height;if(i)if(i.toLive){var a=i.repeat,c=n.util.invertTransform(s),l=this[t+"Vpt"]?n.util.matrixToSVG(c):"";e.push('<rect transform="'+l+" translate(",r/2,",",o/2,')"',' x="',i.offsetX-r/2,'" y="',i.offsetY-o/2,'" ','width="',"repeat-y"===a||"no-repeat"===a?i.source.width:r,'" height="',"repeat-x"===a||"no-repeat"===a?i.source.height:o,'" fill="url(#SVGID_'+i.id+')"',"></rect>\n")}else e.push('<rect x="0" y="0" width="100%" height="100%" ','fill="',i,'"',"></rect>\n")},sendToBack:function(e){if(!e)return this;var t,s,n,r=this._activeObject;if(e===r&&"activeSelection"===e.type)for(t=(n=r._objects).length;t--;)s=n[t],i(this._objects,s),this._objects.unshift(s);else i(this._objects,e),this._objects.unshift(e);return this.renderOnAddRemove&&this.requestRenderAll(),this},bringToFront:function(e){if(!e)return this;var t,s,n,r=this._activeObject;if(e===r&&"activeSelection"===e.type)for(n=r._objects,t=0;t<n.length;t++)s=n[t],i(this._objects,s),this._objects.push(s);else i(this._objects,e),this._objects.push(e);return this.renderOnAddRemove&&this.requestRenderAll(),this},sendBackwards:function(e,t){if(!e)return this;var s,n,r,o,a,c=this._activeObject,l=0;if(e===c&&"activeSelection"===e.type)for(a=c._objects,s=0;s<a.length;s++)n=a[s],(r=this._objects.indexOf(n))>0+l&&(o=r-1,i(this._objects,n),this._objects.splice(o,0,n)),l++;else 0!==(r=this._objects.indexOf(e))&&(o=this._findNewLowerIndex(e,r,t),i(this._objects,e),this._objects.splice(o,0,e));return this.renderOnAddRemove&&this.requestRenderAll(),this},_findNewLowerIndex:function(e,t,i){var s,n;if(i)for(s=t,n=t-1;n>=0;--n){if(e.intersectsWithObject(this._objects[n])||e.isContainedWithinObject(this._objects[n])||this._objects[n].isContainedWithinObject(e)){s=n;break}}else s=t-1;return s},bringForward:function(e,t){if(!e)return this;var s,n,r,o,a,c=this._activeObject,l=0;if(e===c&&"activeSelection"===e.type)for(s=(a=c._objects).length;s--;)n=a[s],(r=this._objects.indexOf(n))<this._objects.length-1-l&&(o=r+1,i(this._objects,n),this._objects.splice(o,0,n)),l++;else(r=this._objects.indexOf(e))!==this._objects.length-1&&(o=this._findNewUpperIndex(e,r,t),i(this._objects,e),this._objects.splice(o,0,e));return this.renderOnAddRemove&&this.requestRenderAll(),this},_findNewUpperIndex:function(e,t,i){var s,n,r;if(i)for(s=t,n=t+1,r=this._objects.length;n<r;++n){if(e.intersectsWithObject(this._objects[n])||e.isContainedWithinObject(this._objects[n])||this._objects[n].isContainedWithinObject(e)){s=n;break}}else s=t+1;return s},moveTo:function(e,t){return i(this._objects,e),this._objects.splice(t,0,e),this.renderOnAddRemove&&this.requestRenderAll()},dispose:function(){return this.isRendering&&(n.util.cancelAnimFrame(this.isRendering),this.isRendering=0),this.forEachObject((function(e){e.dispose&&e.dispose()})),this._objects=[],this.backgroundImage&&this.backgroundImage.dispose&&this.backgroundImage.dispose(),this.backgroundImage=null,this.overlayImage&&this.overlayImage.dispose&&this.overlayImage.dispose(),this.overlayImage=null,this._iTextInstances=null,this.contextContainer=null,this.lowerCanvasEl.classList.remove("lower-canvas"),n.util.setStyle(this.lowerCanvasEl,this._originalCanvasStyle),delete this._originalCanvasStyle,this.lowerCanvasEl.setAttribute("width",this.width),this.lowerCanvasEl.setAttribute("height",this.height),n.util.cleanUpJsdomNode(this.lowerCanvasEl),this.lowerCanvasEl=void 0,this},toString:function(){return"#<fabric.Canvas ("+this.complexity()+"): { objects: "+this._objects.length+" }>"}}),e(n.StaticCanvas.prototype,n.Observable),e(n.StaticCanvas.prototype,n.Collection),e(n.StaticCanvas.prototype,n.DataURLExporter),e(n.StaticCanvas,{EMPTY_JSON:'{"objects": [], "background": "white"}',supports:function(e){var t=c();if(!t||!t.getContext)return null;var i=t.getContext("2d");return i&&"setLineDash"===e?"undefined"!==typeof i.setLineDash:null}}),n.StaticCanvas.prototype.toJSON=n.StaticCanvas.prototype.toObject,n.isLikelyNode&&(n.StaticCanvas.prototype.createPNGStream=function(){var e=a(this.lowerCanvasEl);return e&&e.createPNGStream()},n.StaticCanvas.prototype.createJPEGStream=function(e){var t=a(this.lowerCanvasEl);return t&&t.createJPEGStream(e)})}}(),n.BaseBrush=n.util.createClass({color:"rgb(0, 0, 0)",width:1,shadow:null,strokeLineCap:"round",strokeLineJoin:"round",strokeMiterLimit:10,strokeDashArray:null,limitedToCanvasSize:!1,_setBrushStyles:function(e){e.strokeStyle=this.color,e.lineWidth=this.width,e.lineCap=this.strokeLineCap,e.miterLimit=this.strokeMiterLimit,e.lineJoin=this.strokeLineJoin,e.setLineDash(this.strokeDashArray||[])},_saveAndTransform:function(e){var t=this.canvas.viewportTransform;e.save(),e.transform(t[0],t[1],t[2],t[3],t[4],t[5])},_setShadow:function(){if(this.shadow){var e=this.canvas,t=this.shadow,i=e.contextTop,s=e.getZoom();e&&e._isRetinaScaling()&&(s*=n.devicePixelRatio),i.shadowColor=t.color,i.shadowBlur=t.blur*s,i.shadowOffsetX=t.offsetX*s,i.shadowOffsetY=t.offsetY*s}},needsFullRender:function(){return new n.Color(this.color).getAlpha()<1||!!this.shadow},_resetShadow:function(){var e=this.canvas.contextTop;e.shadowColor="",e.shadowBlur=e.shadowOffsetX=e.shadowOffsetY=0},_isOutSideCanvas:function(e){return e.x<0||e.x>this.canvas.getWidth()||e.y<0||e.y>this.canvas.getHeight()}}),n.PencilBrush=n.util.createClass(n.BaseBrush,{decimate:.4,drawStraightLine:!1,straightLineKey:"shiftKey",initialize:function(e){this.canvas=e,this._points=[]},needsFullRender:function(){return this.callSuper("needsFullRender")||this._hasStraightLine},_drawSegment:function(e,t,i){var s=t.midPointFrom(i);return e.quadraticCurveTo(t.x,t.y,s.x,s.y),s},onMouseDown:function(e,t){this.canvas._isMainEvent(t.e)&&(this.drawStraightLine=t.e[this.straightLineKey],this._prepareForDrawing(e),this._captureDrawingPath(e),this._render())},onMouseMove:function(e,t){if(this.canvas._isMainEvent(t.e)&&(this.drawStraightLine=t.e[this.straightLineKey],(!0!==this.limitedToCanvasSize||!this._isOutSideCanvas(e))&&this._captureDrawingPath(e)&&this._points.length>1))if(this.needsFullRender())this.canvas.clearContext(this.canvas.contextTop),this._render();else{var i=this._points,s=i.length,n=this.canvas.contextTop;this._saveAndTransform(n),this.oldEnd&&(n.beginPath(),n.moveTo(this.oldEnd.x,this.oldEnd.y)),this.oldEnd=this._drawSegment(n,i[s-2],i[s-1],!0),n.stroke(),n.restore()}},onMouseUp:function(e){return!this.canvas._isMainEvent(e.e)||(this.drawStraightLine=!1,this.oldEnd=void 0,this._finalizeAndAddPath(),!1)},_prepareForDrawing:function(e){var t=new n.Point(e.x,e.y);this._reset(),this._addPoint(t),this.canvas.contextTop.moveTo(t.x,t.y)},_addPoint:function(e){return!(this._points.length>1&&e.eq(this._points[this._points.length-1]))&&(this.drawStraightLine&&this._points.length>1&&(this._hasStraightLine=!0,this._points.pop()),this._points.push(e),!0)},_reset:function(){this._points=[],this._setBrushStyles(this.canvas.contextTop),this._setShadow(),this._hasStraightLine=!1},_captureDrawingPath:function(e){var t=new n.Point(e.x,e.y);return this._addPoint(t)},_render:function(e){var t,i,s=this._points[0],r=this._points[1];if(e=e||this.canvas.contextTop,this._saveAndTransform(e),e.beginPath(),2===this._points.length&&s.x===r.x&&s.y===r.y){var o=this.width/1e3;s=new n.Point(s.x,s.y),r=new n.Point(r.x,r.y),s.x-=o,r.x+=o}for(e.moveTo(s.x,s.y),t=1,i=this._points.length;t<i;t++)this._drawSegment(e,s,r),s=this._points[t],r=this._points[t+1];e.lineTo(s.x,s.y),e.stroke(),e.restore()},convertPointsToSVGPath:function(e){var t=this.width/1e3;return n.util.getSmoothPathFromPoints(e,t)},_isEmptySVGPath:function(e){return"M 0 0 Q 0 0 0 0 L 0 0"===n.util.joinPath(e)},createPath:function(e){var t=new n.Path(e,{fill:null,stroke:this.color,strokeWidth:this.width,strokeLineCap:this.strokeLineCap,strokeMiterLimit:this.strokeMiterLimit,strokeLineJoin:this.strokeLineJoin,strokeDashArray:this.strokeDashArray});return this.shadow&&(this.shadow.affectStroke=!0,t.shadow=new n.Shadow(this.shadow)),t},decimatePoints:function(e,t){if(e.length<=2)return e;var i,s=this.canvas.getZoom(),n=Math.pow(t/s,2),r=e.length-1,o=e[0],a=[o];for(i=1;i<r-1;i++)Math.pow(o.x-e[i].x,2)+Math.pow(o.y-e[i].y,2)>=n&&(o=e[i],a.push(o));return a.push(e[r]),a},_finalizeAndAddPath:function(){this.canvas.contextTop.closePath(),this.decimate&&(this._points=this.decimatePoints(this._points,this.decimate));var e=this.convertPointsToSVGPath(this._points);if(this._isEmptySVGPath(e))this.canvas.requestRenderAll();else{var t=this.createPath(e);this.canvas.clearContext(this.canvas.contextTop),this.canvas.fire("before:path:created",{path:t}),this.canvas.add(t),this.canvas.requestRenderAll(),t.setCoords(),this._resetShadow(),this.canvas.fire("path:created",{path:t})}}}),n.CircleBrush=n.util.createClass(n.BaseBrush,{width:10,initialize:function(e){this.canvas=e,this.points=[]},drawDot:function(e){var t=this.addPoint(e),i=this.canvas.contextTop;this._saveAndTransform(i),this.dot(i,t),i.restore()},dot:function(e,t){e.fillStyle=t.fill,e.beginPath(),e.arc(t.x,t.y,t.radius,0,2*Math.PI,!1),e.closePath(),e.fill()},onMouseDown:function(e){this.points.length=0,this.canvas.clearContext(this.canvas.contextTop),this._setShadow(),this.drawDot(e)},_render:function(){var e,t,i=this.canvas.contextTop,s=this.points;for(this._saveAndTransform(i),e=0,t=s.length;e<t;e++)this.dot(i,s[e]);i.restore()},onMouseMove:function(e){!0===this.limitedToCanvasSize&&this._isOutSideCanvas(e)||(this.needsFullRender()?(this.canvas.clearContext(this.canvas.contextTop),this.addPoint(e),this._render()):this.drawDot(e))},onMouseUp:function(){var e,t,i=this.canvas.renderOnAddRemove;this.canvas.renderOnAddRemove=!1;var s=[];for(e=0,t=this.points.length;e<t;e++){var r=this.points[e],o=new n.Circle({radius:r.radius,left:r.x,top:r.y,originX:"center",originY:"center",fill:r.fill});this.shadow&&(o.shadow=new n.Shadow(this.shadow)),s.push(o)}var a=new n.Group(s);a.canvas=this.canvas,this.canvas.fire("before:path:created",{path:a}),this.canvas.add(a),this.canvas.fire("path:created",{path:a}),this.canvas.clearContext(this.canvas.contextTop),this._resetShadow(),this.canvas.renderOnAddRemove=i,this.canvas.requestRenderAll()},addPoint:function(e){var t=new n.Point(e.x,e.y),i=n.util.getRandomInt(Math.max(0,this.width-20),this.width+20)/2,s=new n.Color(this.color).setAlpha(n.util.getRandomInt(0,100)/100).toRgba();return t.radius=i,t.fill=s,this.points.push(t),t}}),n.SprayBrush=n.util.createClass(n.BaseBrush,{width:10,density:20,dotWidth:1,dotWidthVariance:1,randomOpacity:!1,optimizeOverlapping:!0,initialize:function(e){this.canvas=e,this.sprayChunks=[]},onMouseDown:function(e){this.sprayChunks.length=0,this.canvas.clearContext(this.canvas.contextTop),this._setShadow(),this.addSprayChunk(e),this.render(this.sprayChunkPoints)},onMouseMove:function(e){!0===this.limitedToCanvasSize&&this._isOutSideCanvas(e)||(this.addSprayChunk(e),this.render(this.sprayChunkPoints))},onMouseUp:function(){var e=this.canvas.renderOnAddRemove;this.canvas.renderOnAddRemove=!1;for(var t=[],i=0,s=this.sprayChunks.length;i<s;i++)for(var r=this.sprayChunks[i],o=0,a=r.length;o<a;o++){var c=new n.Rect({width:r[o].width,height:r[o].width,left:r[o].x+1,top:r[o].y+1,originX:"center",originY:"center",fill:this.color});t.push(c)}this.optimizeOverlapping&&(t=this._getOptimizedRects(t));var l=new n.Group(t);this.shadow&&l.set("shadow",new n.Shadow(this.shadow)),this.canvas.fire("before:path:created",{path:l}),this.canvas.add(l),this.canvas.fire("path:created",{path:l}),this.canvas.clearContext(this.canvas.contextTop),this._resetShadow(),this.canvas.renderOnAddRemove=e,this.canvas.requestRenderAll()},_getOptimizedRects:function(e){var t,i,s,n={};for(i=0,s=e.length;i<s;i++)n[t=e[i].left+""+e[i].top]||(n[t]=e[i]);var r=[];for(t in n)r.push(n[t]);return r},render:function(e){var t,i,s=this.canvas.contextTop;for(s.fillStyle=this.color,this._saveAndTransform(s),t=0,i=e.length;t<i;t++){var n=e[t];"undefined"!==typeof n.opacity&&(s.globalAlpha=n.opacity),s.fillRect(n.x,n.y,n.width,n.width)}s.restore()},_render:function(){var e,t,i=this.canvas.contextTop;for(i.fillStyle=this.color,this._saveAndTransform(i),e=0,t=this.sprayChunks.length;e<t;e++)this.render(this.sprayChunks[e]);i.restore()},addSprayChunk:function(e){this.sprayChunkPoints=[];var t,i,s,r,o=this.width/2;for(r=0;r<this.density;r++){t=n.util.getRandomInt(e.x-o,e.x+o),i=n.util.getRandomInt(e.y-o,e.y+o),s=this.dotWidthVariance?n.util.getRandomInt(Math.max(1,this.dotWidth-this.dotWidthVariance),this.dotWidth+this.dotWidthVariance):this.dotWidth;var a=new n.Point(t,i);a.width=s,this.randomOpacity&&(a.opacity=n.util.getRandomInt(0,100)/100),this.sprayChunkPoints.push(a)}this.sprayChunks.push(this.sprayChunkPoints)}}),n.PatternBrush=n.util.createClass(n.PencilBrush,{getPatternSrc:function(){var e=n.util.createCanvasElement(),t=e.getContext("2d");return e.width=e.height=25,t.fillStyle=this.color,t.beginPath(),t.arc(10,10,10,0,2*Math.PI,!1),t.closePath(),t.fill(),e},getPatternSrcFunction:function(){return String(this.getPatternSrc).replace("this.color",'"'+this.color+'"')},getPattern:function(e){return e.createPattern(this.source||this.getPatternSrc(),"repeat")},_setBrushStyles:function(e){this.callSuper("_setBrushStyles",e),e.strokeStyle=this.getPattern(e)},createPath:function(e){var t=this.callSuper("createPath",e),i=t._getLeftTopCoords().scalarAdd(t.strokeWidth/2);return t.stroke=new n.Pattern({source:this.source||this.getPatternSrcFunction(),offsetX:-i.x,offsetY:-i.y}),t}}),function(){var e=n.util.getPointer,t=n.util.degreesToRadians,i=n.util.isTouchEvent;for(var s in n.Canvas=n.util.createClass(n.StaticCanvas,{initialize:function(e,t){t||(t={}),this.renderAndResetBound=this.renderAndReset.bind(this),this.requestRenderAllBound=this.requestRenderAll.bind(this),this._initStatic(e,t),this._initInteractive(),this._createCacheCanvas()},uniformScaling:!0,uniScaleKey:"shiftKey",centeredScaling:!1,centeredRotation:!1,centeredKey:"altKey",altActionKey:"shiftKey",interactive:!0,selection:!0,selectionKey:"shiftKey",altSelectionKey:null,selectionColor:"rgba(100, 100, 255, 0.3)",selectionDashArray:[],selectionBorderColor:"rgba(255, 255, 255, 0.3)",selectionLineWidth:1,selectionFullyContained:!1,hoverCursor:"move",moveCursor:"move",defaultCursor:"default",freeDrawingCursor:"crosshair",notAllowedCursor:"not-allowed",containerClass:"canvas-container",perPixelTargetFind:!1,targetFindTolerance:0,skipTargetFind:!1,isDrawingMode:!1,preserveObjectStacking:!1,snapAngle:0,snapThreshold:null,stopContextMenu:!1,fireRightClick:!1,fireMiddleClick:!1,targets:[],enablePointerEvents:!1,_hoveredTarget:null,_hoveredTargets:[],_initInteractive:function(){this._currentTransform=null,this._groupSelector=null,this._initWrapperElement(),this._createUpperCanvas(),this._initEventListeners(),this._initRetinaScaling(),this.freeDrawingBrush=n.PencilBrush&&new n.PencilBrush(this),this.calcOffset()},_chooseObjectsToRender:function(){var e,t,i,s=this.getActiveObjects();if(s.length>0&&!this.preserveObjectStacking){t=[],i=[];for(var n=0,r=this._objects.length;n<r;n++)e=this._objects[n],-1===s.indexOf(e)?t.push(e):i.push(e);s.length>1&&(this._activeObject._objects=i),t.push.apply(t,i)}else t=this._objects;return t},renderAll:function(){!this.contextTopDirty||this._groupSelector||this.isDrawingMode||(this.clearContext(this.contextTop),this.contextTopDirty=!1),this.hasLostContext&&(this.renderTopLayer(this.contextTop),this.hasLostContext=!1);var e=this.contextContainer;return this.renderCanvas(e,this._chooseObjectsToRender()),this},renderTopLayer:function(e){e.save(),this.isDrawingMode&&this._isCurrentlyDrawing&&(this.freeDrawingBrush&&this.freeDrawingBrush._render(),this.contextTopDirty=!0),this.selection&&this._groupSelector&&(this._drawSelection(e),this.contextTopDirty=!0),e.restore()},renderTop:function(){var e=this.contextTop;return this.clearContext(e),this.renderTopLayer(e),this.fire("after:render"),this},_normalizePointer:function(e,t){var i=e.calcTransformMatrix(),s=n.util.invertTransform(i),r=this.restorePointerVpt(t);return n.util.transformPoint(r,s)},isTargetTransparent:function(e,t,i){if(e.shouldCache()&&e._cacheCanvas&&e!==this._activeObject){var s=this._normalizePointer(e,{x:t,y:i}),r=Math.max(e.cacheTranslationX+s.x*e.zoomX,0),o=Math.max(e.cacheTranslationY+s.y*e.zoomY,0);return n.util.isTransparent(e._cacheContext,Math.round(r),Math.round(o),this.targetFindTolerance)}var a=this.contextCache,c=e.selectionBackgroundColor,l=this.viewportTransform;return e.selectionBackgroundColor="",this.clearContext(a),a.save(),a.transform(l[0],l[1],l[2],l[3],l[4],l[5]),e.render(a),a.restore(),e.selectionBackgroundColor=c,n.util.isTransparent(a,t,i,this.targetFindTolerance)},_isSelectionKeyPressed:function(e){return Array.isArray(this.selectionKey)?!!this.selectionKey.find((function(t){return!0===e[t]})):e[this.selectionKey]},_shouldClearSelection:function(e,t){var i=this.getActiveObjects(),s=this._activeObject;return!t||t&&s&&i.length>1&&-1===i.indexOf(t)&&s!==t&&!this._isSelectionKeyPressed(e)||t&&!t.evented||t&&!t.selectable&&s&&s!==t},_shouldCenterTransform:function(e,t,i){var s;if(e)return"scale"===t||"scaleX"===t||"scaleY"===t||"resizing"===t?s=this.centeredScaling||e.centeredScaling:"rotate"===t&&(s=this.centeredRotation||e.centeredRotation),s?!i:i},_getOriginFromCorner:function(e,t){var i={x:e.originX,y:e.originY};return"ml"===t||"tl"===t||"bl"===t?i.x="right":"mr"!==t&&"tr"!==t&&"br"!==t||(i.x="left"),"tl"===t||"mt"===t||"tr"===t?i.y="bottom":"bl"!==t&&"mb"!==t&&"br"!==t||(i.y="top"),i},_getActionFromCorner:function(e,t,i,s){if(!t||!e)return"drag";var n=s.controls[t];return n.getActionName(i,n,s)},_setupCurrentTransform:function(e,i,s){if(i){var r=this.getPointer(e),o=i.__corner,a=i.controls[o],c=s&&o?a.getActionHandler(e,i,a):n.controlsUtils.dragHandler,l=this._getActionFromCorner(s,o,e,i),h=this._getOriginFromCorner(i,o),d=e[this.centeredKey],u={target:i,action:l,actionHandler:c,corner:o,scaleX:i.scaleX,scaleY:i.scaleY,skewX:i.skewX,skewY:i.skewY,offsetX:r.x-i.left,offsetY:r.y-i.top,originX:h.x,originY:h.y,ex:r.x,ey:r.y,lastX:r.x,lastY:r.y,theta:t(i.angle),width:i.width*i.scaleX,shiftKey:e.shiftKey,altKey:d,original:n.util.saveObjectTransform(i)};this._shouldCenterTransform(i,l,d)&&(u.originX="center",u.originY="center"),u.original.originX=h.x,u.original.originY=h.y,this._currentTransform=u,this._beforeTransform(e)}},setCursor:function(e){this.upperCanvasEl.style.cursor=e},_drawSelection:function(e){var t=this._groupSelector,i=new n.Point(t.ex,t.ey),s=n.util.transformPoint(i,this.viewportTransform),r=new n.Point(t.ex+t.left,t.ey+t.top),o=n.util.transformPoint(r,this.viewportTransform),a=Math.min(s.x,o.x),c=Math.min(s.y,o.y),l=Math.max(s.x,o.x),h=Math.max(s.y,o.y),d=this.selectionLineWidth/2;this.selectionColor&&(e.fillStyle=this.selectionColor,e.fillRect(a,c,l-a,h-c)),this.selectionLineWidth&&this.selectionBorderColor&&(e.lineWidth=this.selectionLineWidth,e.strokeStyle=this.selectionBorderColor,a+=d,c+=d,l-=d,h-=d,n.Object.prototype._setLineDash.call(this,e,this.selectionDashArray),e.strokeRect(a,c,l-a,h-c))},findTarget:function(e,t){if(!this.skipTargetFind){var s,n,r=this.getPointer(e,!0),o=this._activeObject,a=this.getActiveObjects(),c=i(e),l=a.length>1&&!t||1===a.length;if(this.targets=[],l&&o._findTargetCorner(r,c))return o;if(a.length>1&&!t&&o===this._searchPossibleTargets([o],r))return o;if(1===a.length&&o===this._searchPossibleTargets([o],r)){if(!this.preserveObjectStacking)return o;s=o,n=this.targets,this.targets=[]}var h=this._searchPossibleTargets(this._objects,r);return e[this.altSelectionKey]&&h&&s&&h!==s&&(h=s,this.targets=n),h}},_checkTarget:function(e,t,i){if(t&&t.visible&&t.evented&&t.containsPoint(e)){if(!this.perPixelTargetFind&&!t.perPixelTargetFind||t.isEditing)return!0;if(!this.isTargetTransparent(t,i.x,i.y))return!0}},_searchPossibleTargets:function(e,t){for(var i,s,r=e.length;r--;){var o=e[r],a=o.group?this._normalizePointer(o.group,t):t;if(this._checkTarget(a,o,t)){(i=e[r]).subTargetCheck&&i instanceof n.Group&&(s=this._searchPossibleTargets(i._objects,t))&&this.targets.push(s);break}}return i},restorePointerVpt:function(e){return n.util.transformPoint(e,n.util.invertTransform(this.viewportTransform))},getPointer:function(t,i){if(this._absolutePointer&&!i)return this._absolutePointer;if(this._pointer&&i)return this._pointer;var s,n=e(t),r=this.upperCanvasEl,o=r.getBoundingClientRect(),a=o.width||0,c=o.height||0;a&&c||("top"in o&&"bottom"in o&&(c=Math.abs(o.top-o.bottom)),"right"in o&&"left"in o&&(a=Math.abs(o.right-o.left))),this.calcOffset(),n.x=n.x-this._offset.left,n.y=n.y-this._offset.top,i||(n=this.restorePointerVpt(n));var l=this.getRetinaScaling();return 1!==l&&(n.x/=l,n.y/=l),s=0===a||0===c?{width:1,height:1}:{width:r.width/a,height:r.height/c},{x:n.x*s.width,y:n.y*s.height}},_createUpperCanvas:function(){var e=this.lowerCanvasEl.className.replace(/\s*lower-canvas\s*/,""),t=this.lowerCanvasEl,i=this.upperCanvasEl;i?i.className="":(i=this._createCanvasElement(),this.upperCanvasEl=i),n.util.addClass(i,"upper-canvas "+e),this.wrapperEl.appendChild(i),this._copyCanvasStyle(t,i),this._applyCanvasStyle(i),this.contextTop=i.getContext("2d")},getTopContext:function(){return this.contextTop},_createCacheCanvas:function(){this.cacheCanvasEl=this._createCanvasElement(),this.cacheCanvasEl.setAttribute("width",this.width),this.cacheCanvasEl.setAttribute("height",this.height),this.contextCache=this.cacheCanvasEl.getContext("2d")},_initWrapperElement:function(){this.wrapperEl=n.util.wrapElement(this.lowerCanvasEl,"div",{class:this.containerClass}),n.util.setStyle(this.wrapperEl,{width:this.width+"px",height:this.height+"px",position:"relative"}),n.util.makeElementUnselectable(this.wrapperEl)},_applyCanvasStyle:function(e){var t=this.width||e.width,i=this.height||e.height;n.util.setStyle(e,{position:"absolute",width:t+"px",height:i+"px",left:0,top:0,"touch-action":this.allowTouchScrolling?"manipulation":"none","-ms-touch-action":this.allowTouchScrolling?"manipulation":"none"}),e.width=t,e.height=i,n.util.makeElementUnselectable(e)},_copyCanvasStyle:function(e,t){t.style.cssText=e.style.cssText},getSelectionContext:function(){return this.contextTop},getSelectionElement:function(){return this.upperCanvasEl},getActiveObject:function(){return this._activeObject},getActiveObjects:function(){var e=this._activeObject;return e?"activeSelection"===e.type&&e._objects?e._objects.slice(0):[e]:[]},_onObjectRemoved:function(e){e===this._activeObject&&(this.fire("before:selection:cleared",{target:e}),this._discardActiveObject(),this.fire("selection:cleared",{target:e}),e.fire("deselected")),e===this._hoveredTarget&&(this._hoveredTarget=null,this._hoveredTargets=[]),this.callSuper("_onObjectRemoved",e)},_fireSelectionEvents:function(e,t){var i=!1,s=this.getActiveObjects(),n=[],r=[];e.forEach((function(e){-1===s.indexOf(e)&&(i=!0,e.fire("deselected",{e:t,target:e}),r.push(e))})),s.forEach((function(s){-1===e.indexOf(s)&&(i=!0,s.fire("selected",{e:t,target:s}),n.push(s))})),e.length>0&&s.length>0?i&&this.fire("selection:updated",{e:t,selected:n,deselected:r}):s.length>0?this.fire("selection:created",{e:t,selected:n}):e.length>0&&this.fire("selection:cleared",{e:t,deselected:r})},setActiveObject:function(e,t){var i=this.getActiveObjects();return this._setActiveObject(e,t),this._fireSelectionEvents(i,t),this},_setActiveObject:function(e,t){return this._activeObject!==e&&(!!this._discardActiveObject(t,e)&&(!e.onSelect({e:t})&&(this._activeObject=e,!0)))},_discardActiveObject:function(e,t){var i=this._activeObject;if(i){if(i.onDeselect({e:e,object:t}))return!1;this._activeObject=null}return!0},discardActiveObject:function(e){var t=this.getActiveObjects(),i=this.getActiveObject();return t.length&&this.fire("before:selection:cleared",{target:i,e:e}),this._discardActiveObject(e),this._fireSelectionEvents(t,e),this},dispose:function(){var e=this.wrapperEl;return this.removeListeners(),e.removeChild(this.upperCanvasEl),e.removeChild(this.lowerCanvasEl),this.contextCache=null,this.contextTop=null,["upperCanvasEl","cacheCanvasEl"].forEach(function(e){n.util.cleanUpJsdomNode(this[e]),this[e]=void 0}.bind(this)),e.parentNode&&e.parentNode.replaceChild(this.lowerCanvasEl,this.wrapperEl),delete this.wrapperEl,n.StaticCanvas.prototype.dispose.call(this),this},clear:function(){return this.discardActiveObject(),this.clearContext(this.contextTop),this.callSuper("clear")},drawControls:function(e){var t=this._activeObject;t&&t._renderControls(e)},_toObject:function(e,t,i){var s=this._realizeGroupTransformOnObject(e),n=this.callSuper("_toObject",e,t,i);return this._unwindGroupTransformOnObject(e,s),n},_realizeGroupTransformOnObject:function(e){if(e.group&&"activeSelection"===e.group.type&&this._activeObject===e.group){var t={};return["angle","flipX","flipY","left","scaleX","scaleY","skewX","skewY","top"].forEach((function(i){t[i]=e[i]})),n.util.addTransformToObject(e,this._activeObject.calcOwnMatrix()),t}return null},_unwindGroupTransformOnObject:function(e,t){t&&e.set(t)},_setSVGObject:function(e,t,i){var s=this._realizeGroupTransformOnObject(t);this.callSuper("_setSVGObject",e,t,i),this._unwindGroupTransformOnObject(t,s)},setViewportTransform:function(e){this.renderOnAddRemove&&this._activeObject&&this._activeObject.isEditing&&this._activeObject.clearContextTop(),n.StaticCanvas.prototype.setViewportTransform.call(this,e)}}),n.StaticCanvas)"prototype"!==s&&(n.Canvas[s]=n.StaticCanvas[s])}(),function(){var e=n.util.addListener,t=n.util.removeListener,i={passive:!1};function s(e,t){return e.button&&e.button===t-1}n.util.object.extend(n.Canvas.prototype,{mainTouchId:null,_initEventListeners:function(){this.removeListeners(),this._bindEvents(),this.addOrRemove(e,"add")},_getEventPrefix:function(){return this.enablePointerEvents?"pointer":"mouse"},addOrRemove:function(e,t){var s=this.upperCanvasEl,r=this._getEventPrefix();e(n.window,"resize",this._onResize),e(s,r+"down",this._onMouseDown),e(s,r+"move",this._onMouseMove,i),e(s,r+"out",this._onMouseOut),e(s,r+"enter",this._onMouseEnter),e(s,"wheel",this._onMouseWheel),e(s,"contextmenu",this._onContextMenu),e(s,"dblclick",this._onDoubleClick),e(s,"dragover",this._onDragOver),e(s,"dragenter",this._onDragEnter),e(s,"dragleave",this._onDragLeave),e(s,"drop",this._onDrop),this.enablePointerEvents||e(s,"touchstart",this._onTouchStart,i),"undefined"!==typeof eventjs&&t in eventjs&&(eventjs[t](s,"gesture",this._onGesture),eventjs[t](s,"drag",this._onDrag),eventjs[t](s,"orientation",this._onOrientationChange),eventjs[t](s,"shake",this._onShake),eventjs[t](s,"longpress",this._onLongPress))},removeListeners:function(){this.addOrRemove(t,"remove");var e=this._getEventPrefix();t(n.document,e+"up",this._onMouseUp),t(n.document,"touchend",this._onTouchEnd,i),t(n.document,e+"move",this._onMouseMove,i),t(n.document,"touchmove",this._onMouseMove,i)},_bindEvents:function(){this.eventsBound||(this._onMouseDown=this._onMouseDown.bind(this),this._onTouchStart=this._onTouchStart.bind(this),this._onMouseMove=this._onMouseMove.bind(this),this._onMouseUp=this._onMouseUp.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onResize=this._onResize.bind(this),this._onGesture=this._onGesture.bind(this),this._onDrag=this._onDrag.bind(this),this._onShake=this._onShake.bind(this),this._onLongPress=this._onLongPress.bind(this),this._onOrientationChange=this._onOrientationChange.bind(this),this._onMouseWheel=this._onMouseWheel.bind(this),this._onMouseOut=this._onMouseOut.bind(this),this._onMouseEnter=this._onMouseEnter.bind(this),this._onContextMenu=this._onContextMenu.bind(this),this._onDoubleClick=this._onDoubleClick.bind(this),this._onDragOver=this._onDragOver.bind(this),this._onDragEnter=this._simpleEventHandler.bind(this,"dragenter"),this._onDragLeave=this._simpleEventHandler.bind(this,"dragleave"),this._onDrop=this._onDrop.bind(this),this.eventsBound=!0)},_onGesture:function(e,t){this.__onTransformGesture&&this.__onTransformGesture(e,t)},_onDrag:function(e,t){this.__onDrag&&this.__onDrag(e,t)},_onMouseWheel:function(e){this.__onMouseWheel(e)},_onMouseOut:function(e){var t=this._hoveredTarget;this.fire("mouse:out",{target:t,e:e}),this._hoveredTarget=null,t&&t.fire("mouseout",{e:e});var i=this;this._hoveredTargets.forEach((function(t){i.fire("mouse:out",{target:t,e:e}),t&&t.fire("mouseout",{e:e})})),this._hoveredTargets=[]},_onMouseEnter:function(e){this._currentTransform||this.findTarget(e)||(this.fire("mouse:over",{target:null,e:e}),this._hoveredTarget=null,this._hoveredTargets=[])},_onOrientationChange:function(e,t){this.__onOrientationChange&&this.__onOrientationChange(e,t)},_onShake:function(e,t){this.__onShake&&this.__onShake(e,t)},_onLongPress:function(e,t){this.__onLongPress&&this.__onLongPress(e,t)},_onDragOver:function(e){e.preventDefault();var t=this._simpleEventHandler("dragover",e);this._fireEnterLeaveEvents(t,e)},_onDrop:function(e){return this._simpleEventHandler("drop:before",e),this._simpleEventHandler("drop",e)},_onContextMenu:function(e){return this.stopContextMenu&&(e.stopPropagation(),e.preventDefault()),!1},_onDoubleClick:function(e){this._cacheTransformEventData(e),this._handleEvent(e,"dblclick"),this._resetTransformEventData(e)},getPointerId:function(e){var t=e.changedTouches;return t?t[0]&&t[0].identifier:this.enablePointerEvents?e.pointerId:-1},_isMainEvent:function(e){return!0===e.isPrimary||!1!==e.isPrimary&&("touchend"===e.type&&0===e.touches.length||(!e.changedTouches||e.changedTouches[0].identifier===this.mainTouchId))},_onTouchStart:function(s){s.preventDefault(),null===this.mainTouchId&&(this.mainTouchId=this.getPointerId(s)),this.__onMouseDown(s),this._resetTransformEventData();var r=this.upperCanvasEl,o=this._getEventPrefix();e(n.document,"touchend",this._onTouchEnd,i),e(n.document,"touchmove",this._onMouseMove,i),t(r,o+"down",this._onMouseDown)},_onMouseDown:function(s){this.__onMouseDown(s),this._resetTransformEventData();var r=this.upperCanvasEl,o=this._getEventPrefix();t(r,o+"move",this._onMouseMove,i),e(n.document,o+"up",this._onMouseUp),e(n.document,o+"move",this._onMouseMove,i)},_onTouchEnd:function(s){if(!(s.touches.length>0)){this.__onMouseUp(s),this._resetTransformEventData(),this.mainTouchId=null;var r=this._getEventPrefix();t(n.document,"touchend",this._onTouchEnd,i),t(n.document,"touchmove",this._onMouseMove,i);var o=this;this._willAddMouseDown&&clearTimeout(this._willAddMouseDown),this._willAddMouseDown=setTimeout((function(){e(o.upperCanvasEl,r+"down",o._onMouseDown),o._willAddMouseDown=0}),400)}},_onMouseUp:function(s){this.__onMouseUp(s),this._resetTransformEventData();var r=this.upperCanvasEl,o=this._getEventPrefix();this._isMainEvent(s)&&(t(n.document,o+"up",this._onMouseUp),t(n.document,o+"move",this._onMouseMove,i),e(r,o+"move",this._onMouseMove,i))},_onMouseMove:function(e){!this.allowTouchScrolling&&e.preventDefault&&e.preventDefault(),this.__onMouseMove(e)},_onResize:function(){this.calcOffset()},_shouldRender:function(e){var t=this._activeObject;return!!(!!t!==!!e||t&&e&&t!==e)||(t&&t.isEditing,!1)},__onMouseUp:function(e){var t,i=this._currentTransform,r=this._groupSelector,o=!1,a=!r||0===r.left&&0===r.top;if(this._cacheTransformEventData(e),t=this._target,this._handleEvent(e,"up:before"),s(e,3))this.fireRightClick&&this._handleEvent(e,"up",3,a);else{if(s(e,2))return this.fireMiddleClick&&this._handleEvent(e,"up",2,a),void this._resetTransformEventData();if(this.isDrawingMode&&this._isCurrentlyDrawing)this._onMouseUpInDrawingMode(e);else if(this._isMainEvent(e)){if(i&&(this._finalizeCurrentTransform(e),o=i.actionPerformed),!a){var c=t===this._activeObject;this._maybeGroupObjects(e),o||(o=this._shouldRender(t)||!c&&t===this._activeObject)}var l,h;if(t){if(l=t._findTargetCorner(this.getPointer(e,!0),n.util.isTouchEvent(e)),t.selectable&&t!==this._activeObject&&"up"===t.activeOn)this.setActiveObject(t,e),o=!0;else{var d=t.controls[l],u=d&&d.getMouseUpHandler(e,t,d);u&&u(e,i,(h=this.getPointer(e)).x,h.y)}t.isMoving=!1}if(i&&(i.target!==t||i.corner!==l)){var g=i.target&&i.target.controls[i.corner],p=g&&g.getMouseUpHandler(e,t,d);h=h||this.getPointer(e),p&&p(e,i,h.x,h.y)}this._setCursorFromEvent(e,t),this._handleEvent(e,"up",1,a),this._groupSelector=null,this._currentTransform=null,t&&(t.__corner=0),o?this.requestRenderAll():a||this.renderTop()}}},_simpleEventHandler:function(e,t){var i=this.findTarget(t),s=this.targets,n={e:t,target:i,subTargets:s};if(this.fire(e,n),i&&i.fire(e,n),!s)return i;for(var r=0;r<s.length;r++)s[r].fire(e,n);return i},_handleEvent:function(e,t,i,s){var n=this._target,r=this.targets||[],o={e:e,target:n,subTargets:r,button:i||1,isClick:s||!1,pointer:this._pointer,absolutePointer:this._absolutePointer,transform:this._currentTransform};"up"===t&&(o.currentTarget=this.findTarget(e),o.currentSubTargets=this.targets),this.fire("mouse:"+t,o),n&&n.fire("mouse"+t,o);for(var a=0;a<r.length;a++)r[a].fire("mouse"+t,o)},_finalizeCurrentTransform:function(e){var t=this._currentTransform,i=t.target,s={e:e,target:i,transform:t,action:t.action};i._scaling&&(i._scaling=!1),i.setCoords(),(t.actionPerformed||this.stateful&&i.hasStateChanged())&&this._fire("modified",s)},_onMouseDownInDrawingMode:function(e){this._isCurrentlyDrawing=!0,this.getActiveObject()&&this.discardActiveObject(e).requestRenderAll();var t=this.getPointer(e);this.freeDrawingBrush.onMouseDown(t,{e:e,pointer:t}),this._handleEvent(e,"down")},_onMouseMoveInDrawingMode:function(e){if(this._isCurrentlyDrawing){var t=this.getPointer(e);this.freeDrawingBrush.onMouseMove(t,{e:e,pointer:t})}this.setCursor(this.freeDrawingCursor),this._handleEvent(e,"move")},_onMouseUpInDrawingMode:function(e){var t=this.getPointer(e);this._isCurrentlyDrawing=this.freeDrawingBrush.onMouseUp({e:e,pointer:t}),this._handleEvent(e,"up")},__onMouseDown:function(e){this._cacheTransformEventData(e),this._handleEvent(e,"down:before");var t=this._target;if(s(e,3))this.fireRightClick&&this._handleEvent(e,"down",3);else if(s(e,2))this.fireMiddleClick&&this._handleEvent(e,"down",2);else if(this.isDrawingMode)this._onMouseDownInDrawingMode(e);else if(this._isMainEvent(e)&&!this._currentTransform){var i=this._pointer;this._previousPointer=i;var r=this._shouldRender(t),o=this._shouldGroup(e,t);if(this._shouldClearSelection(e,t)?this.discardActiveObject(e):o&&(this._handleGrouping(e,t),t=this._activeObject),!this.selection||t&&(t.selectable||t.isEditing||t===this._activeObject)||(this._groupSelector={ex:this._absolutePointer.x,ey:this._absolutePointer.y,top:0,left:0}),t){var a=t===this._activeObject;t.selectable&&"down"===t.activeOn&&this.setActiveObject(t,e);var c=t._findTargetCorner(this.getPointer(e,!0),n.util.isTouchEvent(e));if(t.__corner=c,t===this._activeObject&&(c||!o)){this._setupCurrentTransform(e,t,a);var l=t.controls[c],h=(i=this.getPointer(e),l&&l.getMouseDownHandler(e,t,l));h&&h(e,this._currentTransform,i.x,i.y)}}this._handleEvent(e,"down"),(r||o)&&this.requestRenderAll()}},_resetTransformEventData:function(){this._target=null,this._pointer=null,this._absolutePointer=null},_cacheTransformEventData:function(e){this._resetTransformEventData(),this._pointer=this.getPointer(e,!0),this._absolutePointer=this.restorePointerVpt(this._pointer),this._target=this._currentTransform?this._currentTransform.target:this.findTarget(e)||null},_beforeTransform:function(e){var t=this._currentTransform;this.stateful&&t.target.saveState(),this.fire("before:transform",{e:e,transform:t})},__onMouseMove:function(e){var t,i;if(this._handleEvent(e,"move:before"),this._cacheTransformEventData(e),this.isDrawingMode)this._onMouseMoveInDrawingMode(e);else if(this._isMainEvent(e)){var s=this._groupSelector;s?(i=this._absolutePointer,s.left=i.x-s.ex,s.top=i.y-s.ey,this.renderTop()):this._currentTransform?this._transformObject(e):(t=this.findTarget(e)||null,this._setCursorFromEvent(e,t),this._fireOverOutEvents(t,e)),this._handleEvent(e,"move"),this._resetTransformEventData()}},_fireOverOutEvents:function(e,t){var i=this._hoveredTarget,s=this._hoveredTargets,n=this.targets,r=Math.max(s.length,n.length);this.fireSyntheticInOutEvents(e,t,{oldTarget:i,evtOut:"mouseout",canvasEvtOut:"mouse:out",evtIn:"mouseover",canvasEvtIn:"mouse:over"});for(var o=0;o<r;o++)this.fireSyntheticInOutEvents(n[o],t,{oldTarget:s[o],evtOut:"mouseout",evtIn:"mouseover"});this._hoveredTarget=e,this._hoveredTargets=this.targets.concat()},_fireEnterLeaveEvents:function(e,t){var i=this._draggedoverTarget,s=this._hoveredTargets,n=this.targets,r=Math.max(s.length,n.length);this.fireSyntheticInOutEvents(e,t,{oldTarget:i,evtOut:"dragleave",evtIn:"dragenter"});for(var o=0;o<r;o++)this.fireSyntheticInOutEvents(n[o],t,{oldTarget:s[o],evtOut:"dragleave",evtIn:"dragenter"});this._draggedoverTarget=e},fireSyntheticInOutEvents:function(e,t,i){var s,n,r,o=i.oldTarget,a=o!==e,c=i.canvasEvtIn,l=i.canvasEvtOut;a&&(s={e:t,target:e,previousTarget:o},n={e:t,target:o,nextTarget:e}),r=e&&a,o&&a&&(l&&this.fire(l,n),o.fire(i.evtOut,n)),r&&(c&&this.fire(c,s),e.fire(i.evtIn,s))},__onMouseWheel:function(e){this._cacheTransformEventData(e),this._handleEvent(e,"wheel"),this._resetTransformEventData()},_transformObject:function(e){var t=this.getPointer(e),i=this._currentTransform;i.reset=!1,i.shiftKey=e.shiftKey,i.altKey=e[this.centeredKey],this._performTransformAction(e,i,t),i.actionPerformed&&this.requestRenderAll()},_performTransformAction:function(e,t,i){var s=i.x,n=i.y,r=t.action,o=!1,a=t.actionHandler;a&&(o=a(e,t,s,n)),"drag"===r&&o&&(t.target.isMoving=!0,this.setCursor(t.target.moveCursor||this.moveCursor)),t.actionPerformed=t.actionPerformed||o},_fire:n.controlsUtils.fireEvent,_setCursorFromEvent:function(e,t){if(!t)return this.setCursor(this.defaultCursor),!1;var i=t.hoverCursor||this.hoverCursor,s=this._activeObject&&"activeSelection"===this._activeObject.type?this._activeObject:null,n=(!s||!s.contains(t))&&t._findTargetCorner(this.getPointer(e,!0));n?this.setCursor(this.getCornerCursor(n,t,e)):(t.subTargetCheck&&this.targets.concat().reverse().map((function(e){i=e.hoverCursor||i})),this.setCursor(i))},getCornerCursor:function(e,t,i){var s=t.controls[e];return s.cursorStyleHandler(i,s,t)}})}(),function(){var e=Math.min,t=Math.max;n.util.object.extend(n.Canvas.prototype,{_shouldGroup:function(e,t){var i=this._activeObject;return i&&this._isSelectionKeyPressed(e)&&t&&t.selectable&&this.selection&&(i!==t||"activeSelection"===i.type)&&!t.onSelect({e:e})},_handleGrouping:function(e,t){var i=this._activeObject;i.__corner||(t!==i||(t=this.findTarget(e,!0))&&t.selectable)&&(i&&"activeSelection"===i.type?this._updateActiveSelection(t,e):this._createActiveSelection(t,e))},_updateActiveSelection:function(e,t){var i=this._activeObject,s=i._objects.slice(0);i.contains(e)?(i.removeWithUpdate(e),this._hoveredTarget=e,this._hoveredTargets=this.targets.concat(),1===i.size()&&this._setActiveObject(i.item(0),t)):(i.addWithUpdate(e),this._hoveredTarget=i,this._hoveredTargets=this.targets.concat()),this._fireSelectionEvents(s,t)},_createActiveSelection:function(e,t){var i=this.getActiveObjects(),s=this._createGroup(e);this._hoveredTarget=s,this._setActiveObject(s,t),this._fireSelectionEvents(i,t)},_createGroup:function(e){var t=this._objects,i=t.indexOf(this._activeObject)<t.indexOf(e)?[this._activeObject,e]:[e,this._activeObject];return this._activeObject.isEditing&&this._activeObject.exitEditing(),new n.ActiveSelection(i,{canvas:this})},_groupSelectedObjects:function(e){var t,i=this._collectObjects(e);1===i.length?this.setActiveObject(i[0],e):i.length>1&&(t=new n.ActiveSelection(i.reverse(),{canvas:this}),this.setActiveObject(t,e))},_collectObjects:function(i){for(var s,r=[],o=this._groupSelector.ex,a=this._groupSelector.ey,c=o+this._groupSelector.left,l=a+this._groupSelector.top,h=new n.Point(e(o,c),e(a,l)),d=new n.Point(t(o,c),t(a,l)),u=!this.selectionFullyContained,g=o===c&&a===l,p=this._objects.length;p--&&!((s=this._objects[p])&&s.selectable&&s.visible&&(u&&s.intersectsWithRect(h,d,!0)||s.isContainedWithinRect(h,d,!0)||u&&s.containsPoint(h,null,!0)||u&&s.containsPoint(d,null,!0))&&(r.push(s),g)););return r.length>1&&(r=r.filter((function(e){return!e.onSelect({e:i})}))),r},_maybeGroupObjects:function(e){this.selection&&this._groupSelector&&this._groupSelectedObjects(e),this.setCursor(this.defaultCursor),this._groupSelector=null}})}(),n.util.object.extend(n.StaticCanvas.prototype,{toDataURL:function(e){e||(e={});var t=e.format||"png",i=e.quality||1,s=(e.multiplier||1)*(e.enableRetinaScaling?this.getRetinaScaling():1),r=this.toCanvasElement(s,e);return n.util.toDataURL(r,t,i)},toCanvasElement:function(e,t){e=e||1;var i=((t=t||{}).width||this.width)*e,s=(t.height||this.height)*e,r=this.getZoom(),o=this.width,a=this.height,c=r*e,l=this.viewportTransform,h=(l[4]-(t.left||0))*e,d=(l[5]-(t.top||0))*e,u=this.interactive,g=[c,0,0,c,h,d],p=this.enableRetinaScaling,m=n.util.createCanvasElement(),f=this.contextTop;return m.width=i,m.height=s,this.contextTop=null,this.enableRetinaScaling=!1,this.interactive=!1,this.viewportTransform=g,this.width=i,this.height=s,this.calcViewportBoundaries(),this.renderCanvas(m.getContext("2d"),this._objects),this.viewportTransform=l,this.width=o,this.height=a,this.calcViewportBoundaries(),this.interactive=u,this.enableRetinaScaling=p,this.contextTop=f,m}}),n.util.object.extend(n.StaticCanvas.prototype,{loadFromJSON:function(e,t,i){if(e){var s="string"===typeof e?JSON.parse(e):n.util.object.clone(e),r=this,o=s.clipPath,a=this.renderOnAddRemove;return this.renderOnAddRemove=!1,delete s.clipPath,this._enlivenObjects(s.objects,(function(e){r.clear(),r._setBgOverlay(s,(function(){o?r._enlivenObjects([o],(function(i){r.clipPath=i[0],r.__setupCanvas.call(r,s,e,a,t)})):r.__setupCanvas.call(r,s,e,a,t)}))}),i),this}},__setupCanvas:function(e,t,i,s){var n=this;t.forEach((function(e,t){n.insertAt(e,t)})),this.renderOnAddRemove=i,delete e.objects,delete e.backgroundImage,delete e.overlayImage,delete e.background,delete e.overlay,this._setOptions(e),this.renderAll(),s&&s()},_setBgOverlay:function(e,t){var i={backgroundColor:!1,overlayColor:!1,backgroundImage:!1,overlayImage:!1};if(e.backgroundImage||e.overlayImage||e.background||e.overlay){var s=function(){i.backgroundImage&&i.overlayImage&&i.backgroundColor&&i.overlayColor&&t&&t()};this.__setBgOverlay("backgroundImage",e.backgroundImage,i,s),this.__setBgOverlay("overlayImage",e.overlayImage,i,s),this.__setBgOverlay("backgroundColor",e.background,i,s),this.__setBgOverlay("overlayColor",e.overlay,i,s)}else t&&t()},__setBgOverlay:function(e,t,i,s){var r=this;if(!t)return i[e]=!0,void(s&&s());"backgroundImage"===e||"overlayImage"===e?n.util.enlivenObjects([t],(function(t){r[e]=t[0],i[e]=!0,s&&s()})):this["set"+n.util.string.capitalize(e,!0)](t,(function(){i[e]=!0,s&&s()}))},_enlivenObjects:function(e,t,i){e&&0!==e.length?n.util.enlivenObjects(e,(function(e){t&&t(e)}),null,i):t&&t([])},_toDataURL:function(e,t){this.clone((function(i){t(i.toDataURL(e))}))},_toDataURLWithMultiplier:function(e,t,i){this.clone((function(s){i(s.toDataURLWithMultiplier(e,t))}))},clone:function(e,t){var i=JSON.stringify(this.toJSON(t));this.cloneWithoutData((function(t){t.loadFromJSON(i,(function(){e&&e(t)}))}))},cloneWithoutData:function(e){var t=n.util.createCanvasElement();t.width=this.width,t.height=this.height;var i=new n.Canvas(t);this.backgroundImage?(i.setBackgroundImage(this.backgroundImage.src,(function(){i.renderAll(),e&&e(i)})),i.backgroundImageOpacity=this.backgroundImageOpacity,i.backgroundImageStretch=this.backgroundImageStretch):e&&e(i)}}),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,s=t.util.object.clone,n=t.util.toFixed,r=t.util.string.capitalize,o=t.util.degreesToRadians,a=!t.isLikelyNode;t.Object||(t.Object=t.util.createClass(t.CommonMethods,{type:"object",originX:"left",originY:"top",top:0,left:0,width:0,height:0,scaleX:1,scaleY:1,flipX:!1,flipY:!1,opacity:1,angle:0,skewX:0,skewY:0,cornerSize:13,touchCornerSize:24,transparentCorners:!0,hoverCursor:null,moveCursor:null,padding:0,borderColor:"rgb(178,204,255)",borderDashArray:null,cornerColor:"rgb(178,204,255)",cornerStrokeColor:null,cornerStyle:"rect",cornerDashArray:null,centeredScaling:!1,centeredRotation:!0,fill:"rgb(0,0,0)",fillRule:"nonzero",globalCompositeOperation:"source-over",backgroundColor:"",selectionBackgroundColor:"",stroke:null,strokeWidth:1,strokeDashArray:null,strokeDashOffset:0,strokeLineCap:"butt",strokeLineJoin:"miter",strokeMiterLimit:4,shadow:null,borderOpacityWhenMoving:.4,borderScaleFactor:1,minScaleLimit:0,selectable:!0,evented:!0,visible:!0,hasControls:!0,hasBorders:!0,perPixelTargetFind:!1,includeDefaultValues:!0,lockMovementX:!1,lockMovementY:!1,lockRotation:!1,lockScalingX:!1,lockScalingY:!1,lockSkewingX:!1,lockSkewingY:!1,lockScalingFlip:!1,excludeFromExport:!1,objectCaching:a,statefullCache:!1,noScaleCache:!0,strokeUniform:!1,dirty:!0,__corner:0,paintFirst:"fill",activeOn:"down",stateProperties:"top left width height scaleX scaleY flipX flipY originX originY transformMatrix stroke strokeWidth strokeDashArray strokeLineCap strokeDashOffset strokeLineJoin strokeMiterLimit angle opacity fill globalCompositeOperation shadow visible backgroundColor skewX skewY fillRule paintFirst clipPath strokeUniform".split(" "),cacheProperties:"fill stroke strokeWidth strokeDashArray width height paintFirst strokeUniform strokeLineCap strokeDashOffset strokeLineJoin strokeMiterLimit backgroundColor clipPath".split(" "),colorProperties:"fill stroke backgroundColor".split(" "),clipPath:void 0,inverted:!1,absolutePositioned:!1,initialize:function(e){e&&this.setOptions(e)},_createCacheCanvas:function(){this._cacheProperties={},this._cacheCanvas=t.util.createCanvasElement(),this._cacheContext=this._cacheCanvas.getContext("2d"),this._updateCacheCanvas(),this.dirty=!0},_limitCacheSize:function(e){var i=t.perfLimitSizeTotal,s=e.width,n=e.height,r=t.maxCacheSideLimit,o=t.minCacheSideLimit;if(s<=r&&n<=r&&s*n<=i)return s<o&&(e.width=o),n<o&&(e.height=o),e;var a=s/n,c=t.util.limitDimsByArea(a,i),l=t.util.capValue,h=l(o,c.x,r),d=l(o,c.y,r);return s>h&&(e.zoomX/=s/h,e.width=h,e.capped=!0),n>d&&(e.zoomY/=n/d,e.height=d,e.capped=!0),e},_getCacheCanvasDimensions:function(){var e=this.getTotalObjectScaling(),t=this._getTransformedDimensions(0,0),i=t.x*e.scaleX/this.scaleX,s=t.y*e.scaleY/this.scaleY;return{width:Math.ceil(i+2),height:Math.ceil(s+2),zoomX:e.scaleX,zoomY:e.scaleY,x:i,y:s}},_updateCacheCanvas:function(){var e=this.canvas;if(this.noScaleCache&&e&&e._currentTransform){var t=e._currentTransform.target,i=e._currentTransform.action;if(this===t&&i.slice&&"scale"===i.slice(0,5))return!1}var s,n,r=this._cacheCanvas,o=this._limitCacheSize(this._getCacheCanvasDimensions()),a=o.width,c=o.height,l=o.zoomX,h=o.zoomY,d=a!==this.cacheWidth||c!==this.cacheHeight,u=this.zoomX!==l||this.zoomY!==h;return!(!d&&!u)&&(d?(r.width=a,r.height=c):(this._cacheContext.setTransform(1,0,0,1,0,0),this._cacheContext.clearRect(0,0,r.width,r.height)),s=o.x/2,n=o.y/2,this.cacheTranslationX=Math.round(r.width/2-s)+s,this.cacheTranslationY=Math.round(r.height/2-n)+n,this.cacheWidth=a,this.cacheHeight=c,this._cacheContext.translate(this.cacheTranslationX,this.cacheTranslationY),this._cacheContext.scale(l,h),this.zoomX=l,this.zoomY=h,!0)},setOptions:function(e){this._setOptions(e),this._initGradient(e.fill,"fill"),this._initGradient(e.stroke,"stroke"),this._initPattern(e.fill,"fill"),this._initPattern(e.stroke,"stroke")},transform:function(e){var t=this.group&&!this.group._transformDone||this.group&&this.canvas&&e===this.canvas.contextTop,i=this.calcTransformMatrix(!t);e.transform(i[0],i[1],i[2],i[3],i[4],i[5])},toObject:function(e){var i=t.Object.NUM_FRACTION_DIGITS,s={type:this.type,version:t.version,originX:this.originX,originY:this.originY,left:n(this.left,i),top:n(this.top,i),width:n(this.width,i),height:n(this.height,i),fill:this.fill&&this.fill.toObject?this.fill.toObject():this.fill,stroke:this.stroke&&this.stroke.toObject?this.stroke.toObject():this.stroke,strokeWidth:n(this.strokeWidth,i),strokeDashArray:this.strokeDashArray?this.strokeDashArray.concat():this.strokeDashArray,strokeLineCap:this.strokeLineCap,strokeDashOffset:this.strokeDashOffset,strokeLineJoin:this.strokeLineJoin,strokeUniform:this.strokeUniform,strokeMiterLimit:n(this.strokeMiterLimit,i),scaleX:n(this.scaleX,i),scaleY:n(this.scaleY,i),angle:n(this.angle,i),flipX:this.flipX,flipY:this.flipY,opacity:n(this.opacity,i),shadow:this.shadow&&this.shadow.toObject?this.shadow.toObject():this.shadow,visible:this.visible,backgroundColor:this.backgroundColor,fillRule:this.fillRule,paintFirst:this.paintFirst,globalCompositeOperation:this.globalCompositeOperation,skewX:n(this.skewX,i),skewY:n(this.skewY,i)};return this.clipPath&&!this.clipPath.excludeFromExport&&(s.clipPath=this.clipPath.toObject(e),s.clipPath.inverted=this.clipPath.inverted,s.clipPath.absolutePositioned=this.clipPath.absolutePositioned),t.util.populateWithProperties(this,s,e),this.includeDefaultValues||(s=this._removeDefaultValues(s)),s},toDatalessObject:function(e){return this.toObject(e)},_removeDefaultValues:function(e){var i=t.util.getKlass(e.type).prototype;return i.stateProperties.forEach((function(t){"left"!==t&&"top"!==t&&(e[t]===i[t]&&delete e[t],Array.isArray(e[t])&&Array.isArray(i[t])&&0===e[t].length&&0===i[t].length&&delete e[t])})),e},toString:function(){return"#<fabric."+r(this.type)+">"},getObjectScaling:function(){if(!this.group)return{scaleX:this.scaleX,scaleY:this.scaleY};var e=t.util.qrDecompose(this.calcTransformMatrix());return{scaleX:Math.abs(e.scaleX),scaleY:Math.abs(e.scaleY)}},getTotalObjectScaling:function(){var e=this.getObjectScaling(),t=e.scaleX,i=e.scaleY;if(this.canvas){var s=this.canvas.getZoom(),n=this.canvas.getRetinaScaling();t*=s*n,i*=s*n}return{scaleX:t,scaleY:i}},getObjectOpacity:function(){var e=this.opacity;return this.group&&(e*=this.group.getObjectOpacity()),e},_set:function(e,i){var s="scaleX"===e||"scaleY"===e,n=this[e]!==i,r=!1;return s&&(i=this._constrainScale(i)),"scaleX"===e&&i<0?(this.flipX=!this.flipX,i*=-1):"scaleY"===e&&i<0?(this.flipY=!this.flipY,i*=-1):"shadow"!==e||!i||i instanceof t.Shadow?"dirty"===e&&this.group&&this.group.set("dirty",i):i=new t.Shadow(i),this[e]=i,n&&(r=this.group&&this.group.isOnACache(),this.cacheProperties.indexOf(e)>-1?(this.dirty=!0,r&&this.group.set("dirty",!0)):r&&this.stateProperties.indexOf(e)>-1&&this.group.set("dirty",!0)),this},setOnGroup:function(){},getViewportTransform:function(){return this.canvas&&this.canvas.viewportTransform?this.canvas.viewportTransform:t.iMatrix.concat()},isNotVisible:function(){return 0===this.opacity||!this.width&&!this.height&&0===this.strokeWidth||!this.visible},render:function(e){this.isNotVisible()||this.canvas&&this.canvas.skipOffscreen&&!this.group&&!this.isOnScreen()||(e.save(),this._setupCompositeOperation(e),this.drawSelectionBackground(e),this.transform(e),this._setOpacity(e),this._setShadow(e,this),this.shouldCache()?(this.renderCache(),this.drawCacheOnCanvas(e)):(this._removeCacheCanvas(),this.dirty=!1,this.drawObject(e),this.objectCaching&&this.statefullCache&&this.saveState({propertySet:"cacheProperties"})),e.restore())},renderCache:function(e){e=e||{},this._cacheCanvas&&this._cacheContext||this._createCacheCanvas(),this.isCacheDirty()&&(this.statefullCache&&this.saveState({propertySet:"cacheProperties"}),this.drawObject(this._cacheContext,e.forClipping),this.dirty=!1)},_removeCacheCanvas:function(){this._cacheCanvas=null,this._cacheContext=null,this.cacheWidth=0,this.cacheHeight=0},hasStroke:function(){return this.stroke&&"transparent"!==this.stroke&&0!==this.strokeWidth},hasFill:function(){return this.fill&&"transparent"!==this.fill},needsItsOwnCache:function(){return!("stroke"!==this.paintFirst||!this.hasFill()||!this.hasStroke()||"object"!==typeof this.shadow)||!!this.clipPath},shouldCache:function(){return this.ownCaching=this.needsItsOwnCache()||this.objectCaching&&(!this.group||!this.group.isOnACache()),this.ownCaching},willDrawShadow:function(){return!!this.shadow&&(0!==this.shadow.offsetX||0!==this.shadow.offsetY)},drawClipPathOnCache:function(e,i){if(e.save(),i.inverted?e.globalCompositeOperation="destination-out":e.globalCompositeOperation="destination-in",i.absolutePositioned){var s=t.util.invertTransform(this.calcTransformMatrix());e.transform(s[0],s[1],s[2],s[3],s[4],s[5])}i.transform(e),e.scale(1/i.zoomX,1/i.zoomY),e.drawImage(i._cacheCanvas,-i.cacheTranslationX,-i.cacheTranslationY),e.restore()},drawObject:function(e,t){var i=this.fill,s=this.stroke;t?(this.fill="black",this.stroke="",this._setClippingProperties(e)):this._renderBackground(e),this._render(e),this._drawClipPath(e,this.clipPath),this.fill=i,this.stroke=s},_drawClipPath:function(e,t){t&&(t.canvas=this.canvas,t.shouldCache(),t._transformDone=!0,t.renderCache({forClipping:!0}),this.drawClipPathOnCache(e,t))},drawCacheOnCanvas:function(e){e.scale(1/this.zoomX,1/this.zoomY),e.drawImage(this._cacheCanvas,-this.cacheTranslationX,-this.cacheTranslationY)},isCacheDirty:function(e){if(this.isNotVisible())return!1;if(this._cacheCanvas&&this._cacheContext&&!e&&this._updateCacheCanvas())return!0;if(this.dirty||this.clipPath&&this.clipPath.absolutePositioned||this.statefullCache&&this.hasStateChanged("cacheProperties")){if(this._cacheCanvas&&this._cacheContext&&!e){var t=this.cacheWidth/this.zoomX,i=this.cacheHeight/this.zoomY;this._cacheContext.clearRect(-t/2,-i/2,t,i)}return!0}return!1},_renderBackground:function(e){if(this.backgroundColor){var t=this._getNonTransformedDimensions();e.fillStyle=this.backgroundColor,e.fillRect(-t.x/2,-t.y/2,t.x,t.y),this._removeShadow(e)}},_setOpacity:function(e){this.group&&!this.group._transformDone?e.globalAlpha=this.getObjectOpacity():e.globalAlpha*=this.opacity},_setStrokeStyles:function(e,t){var i=t.stroke;i&&(e.lineWidth=t.strokeWidth,e.lineCap=t.strokeLineCap,e.lineDashOffset=t.strokeDashOffset,e.lineJoin=t.strokeLineJoin,e.miterLimit=t.strokeMiterLimit,i.toLive?"percentage"===i.gradientUnits||i.gradientTransform||i.patternTransform?this._applyPatternForTransformedGradient(e,i):(e.strokeStyle=i.toLive(e,this),this._applyPatternGradientTransform(e,i)):e.strokeStyle=t.stroke)},_setFillStyles:function(e,t){var i=t.fill;i&&(i.toLive?(e.fillStyle=i.toLive(e,this),this._applyPatternGradientTransform(e,t.fill)):e.fillStyle=i)},_setClippingProperties:function(e){e.globalAlpha=1,e.strokeStyle="transparent",e.fillStyle="#000000"},_setLineDash:function(e,t){t&&0!==t.length&&(1&t.length&&t.push.apply(t,t),e.setLineDash(t))},_renderControls:function(e,i){var s,n,r,a=this.getViewportTransform(),c=this.calcTransformMatrix();n="undefined"!==typeof(i=i||{}).hasBorders?i.hasBorders:this.hasBorders,r="undefined"!==typeof i.hasControls?i.hasControls:this.hasControls,c=t.util.multiplyTransformMatrices(a,c),s=t.util.qrDecompose(c),e.save(),e.translate(s.translateX,s.translateY),e.lineWidth=1*this.borderScaleFactor,this.group||(e.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1),this.flipX&&(s.angle-=180),e.rotate(o(this.group?s.angle:this.angle)),i.forActiveSelection||this.group?n&&this.drawBordersInGroup(e,s,i):n&&this.drawBorders(e,i),r&&this.drawControls(e,i),e.restore()},_setShadow:function(e){if(this.shadow){var i,s=this.shadow,n=this.canvas,r=n&&n.viewportTransform[0]||1,o=n&&n.viewportTransform[3]||1;i=s.nonScaling?{scaleX:1,scaleY:1}:this.getObjectScaling(),n&&n._isRetinaScaling()&&(r*=t.devicePixelRatio,o*=t.devicePixelRatio),e.shadowColor=s.color,e.shadowBlur=s.blur*t.browserShadowBlurConstant*(r+o)*(i.scaleX+i.scaleY)/4,e.shadowOffsetX=s.offsetX*r*i.scaleX,e.shadowOffsetY=s.offsetY*o*i.scaleY}},_removeShadow:function(e){this.shadow&&(e.shadowColor="",e.shadowBlur=e.shadowOffsetX=e.shadowOffsetY=0)},_applyPatternGradientTransform:function(e,t){if(!t||!t.toLive)return{offsetX:0,offsetY:0};var i=t.gradientTransform||t.patternTransform,s=-this.width/2+t.offsetX||0,n=-this.height/2+t.offsetY||0;return"percentage"===t.gradientUnits?e.transform(this.width,0,0,this.height,s,n):e.transform(1,0,0,1,s,n),i&&e.transform(i[0],i[1],i[2],i[3],i[4],i[5]),{offsetX:s,offsetY:n}},_renderPaintInOrder:function(e){"stroke"===this.paintFirst?(this._renderStroke(e),this._renderFill(e)):(this._renderFill(e),this._renderStroke(e))},_render:function(){},_renderFill:function(e){this.fill&&(e.save(),this._setFillStyles(e,this),"evenodd"===this.fillRule?e.fill("evenodd"):e.fill(),e.restore())},_renderStroke:function(e){if(this.stroke&&0!==this.strokeWidth){if(this.shadow&&!this.shadow.affectStroke&&this._removeShadow(e),e.save(),this.strokeUniform&&this.group){var t=this.getObjectScaling();e.scale(1/t.scaleX,1/t.scaleY)}else this.strokeUniform&&e.scale(1/this.scaleX,1/this.scaleY);this._setLineDash(e,this.strokeDashArray),this._setStrokeStyles(e,this),e.stroke(),e.restore()}},_applyPatternForTransformedGradient:function(e,i){var s,n=this._limitCacheSize(this._getCacheCanvasDimensions()),r=t.util.createCanvasElement(),o=this.canvas.getRetinaScaling(),a=n.x/this.scaleX/o,c=n.y/this.scaleY/o;r.width=Math.ceil(a),r.height=Math.ceil(c),(s=r.getContext("2d")).beginPath(),s.moveTo(0,0),s.lineTo(a,0),s.lineTo(a,c),s.lineTo(0,c),s.closePath(),s.translate(a/2,c/2),s.scale(n.zoomX/this.scaleX/o,n.zoomY/this.scaleY/o),this._applyPatternGradientTransform(s,i),s.fillStyle=i.toLive(e),s.fill(),e.translate(-this.width/2-this.strokeWidth/2,-this.height/2-this.strokeWidth/2),e.scale(o*this.scaleX/n.zoomX,o*this.scaleY/n.zoomY),e.strokeStyle=s.createPattern(r,"no-repeat")},_findCenterFromElement:function(){return{x:this.left+this.width/2,y:this.top+this.height/2}},_assignTransformMatrixProps:function(){if(this.transformMatrix){var e=t.util.qrDecompose(this.transformMatrix);this.flipX=!1,this.flipY=!1,this.set("scaleX",e.scaleX),this.set("scaleY",e.scaleY),this.angle=e.angle,this.skewX=e.skewX,this.skewY=0}},_removeTransformMatrix:function(e){var i=this._findCenterFromElement();this.transformMatrix&&(this._assignTransformMatrixProps(),i=t.util.transformPoint(i,this.transformMatrix)),this.transformMatrix=null,e&&(this.scaleX*=e.scaleX,this.scaleY*=e.scaleY,this.cropX=e.cropX,this.cropY=e.cropY,i.x+=e.offsetLeft,i.y+=e.offsetTop,this.width=e.width,this.height=e.height),this.setPositionByOrigin(i,"center","center")},clone:function(e,i){var s=this.toObject(i);this.constructor.fromObject?this.constructor.fromObject(s,e):t.Object._fromObject("Object",s,e)},cloneAsImage:function(e,i){var s=this.toCanvasElement(i);return e&&e(new t.Image(s)),this},toCanvasElement:function(e){e||(e={});var i=t.util,s=i.saveObjectTransform(this),n=this.group,r=this.shadow,o=Math.abs,a=(e.multiplier||1)*(e.enableRetinaScaling?t.devicePixelRatio:1);delete this.group,e.withoutTransform&&i.resetObjectTransform(this),e.withoutShadow&&(this.shadow=null);var c,l,h,d,u=t.util.createCanvasElement(),g=this.getBoundingRect(!0,!0),p=this.shadow,m={x:0,y:0};p&&(l=p.blur,c=p.nonScaling?{scaleX:1,scaleY:1}:this.getObjectScaling(),m.x=2*Math.round(o(p.offsetX)+l)*o(c.scaleX),m.y=2*Math.round(o(p.offsetY)+l)*o(c.scaleY)),h=g.width+m.x,d=g.height+m.y,u.width=Math.ceil(h),u.height=Math.ceil(d);var f=new t.StaticCanvas(u,{enableRetinaScaling:!1,renderOnAddRemove:!1,skipOffscreen:!1});"jpeg"===e.format&&(f.backgroundColor="#fff"),this.setPositionByOrigin(new t.Point(f.width/2,f.height/2),"center","center");var _=this.canvas;f.add(this);var v=f.toCanvasElement(a||1,e);return this.shadow=r,this.set("canvas",_),n&&(this.group=n),this.set(s).setCoords(),f._objects=[],f.dispose(),f=null,v},toDataURL:function(e){return e||(e={}),t.util.toDataURL(this.toCanvasElement(e),e.format||"png",e.quality||1)},isType:function(e){return arguments.length>1?Array.from(arguments).includes(this.type):this.type===e},complexity:function(){return 1},toJSON:function(e){return this.toObject(e)},rotate:function(e){var t=("center"!==this.originX||"center"!==this.originY)&&this.centeredRotation;return t&&this._setOriginToCenter(),this.set("angle",e),t&&this._resetOrigin(),this},centerH:function(){return this.canvas&&this.canvas.centerObjectH(this),this},viewportCenterH:function(){return this.canvas&&this.canvas.viewportCenterObjectH(this),this},centerV:function(){return this.canvas&&this.canvas.centerObjectV(this),this},viewportCenterV:function(){return this.canvas&&this.canvas.viewportCenterObjectV(this),this},center:function(){return this.canvas&&this.canvas.centerObject(this),this},viewportCenter:function(){return this.canvas&&this.canvas.viewportCenterObject(this),this},getLocalPointer:function(e,i){i=i||this.canvas.getPointer(e);var s=new t.Point(i.x,i.y),n=this._getLeftTopCoords();return this.angle&&(s=t.util.rotatePoint(s,n,o(-this.angle))),{x:s.x-n.x,y:s.y-n.y}},_setupCompositeOperation:function(e){this.globalCompositeOperation&&(e.globalCompositeOperation=this.globalCompositeOperation)},dispose:function(){t.runningAnimations&&t.runningAnimations.cancelByTarget(this)}}),t.util.createAccessors&&t.util.createAccessors(t.Object),i(t.Object.prototype,t.Observable),t.Object.NUM_FRACTION_DIGITS=2,t.Object.ENLIVEN_PROPS=["clipPath"],t.Object._fromObject=function(e,i,n,r){var o=t[e];i=s(i,!0),t.util.enlivenPatterns([i.fill,i.stroke],(function(e){"undefined"!==typeof e[0]&&(i.fill=e[0]),"undefined"!==typeof e[1]&&(i.stroke=e[1]),t.util.enlivenObjectEnlivables(i,i,(function(){var e=r?new o(i[r],i):new o(i);n&&n(e)}))}))},t.Object.__uid=0)}(t),function(){var e=n.util.degreesToRadians,t={left:-.5,center:0,right:.5},i={top:-.5,center:0,bottom:.5};n.util.object.extend(n.Object.prototype,{translateToGivenOrigin:function(e,s,r,o,a){var c,l,h,d=e.x,u=e.y;return"string"===typeof s?s=t[s]:s-=.5,"string"===typeof o?o=t[o]:o-=.5,"string"===typeof r?r=i[r]:r-=.5,"string"===typeof a?a=i[a]:a-=.5,l=a-r,((c=o-s)||l)&&(h=this._getTransformedDimensions(),d=e.x+c*h.x,u=e.y+l*h.y),new n.Point(d,u)},translateToCenterPoint:function(t,i,s){var r=this.translateToGivenOrigin(t,i,s,"center","center");return this.angle?n.util.rotatePoint(r,t,e(this.angle)):r},translateToOriginPoint:function(t,i,s){var r=this.translateToGivenOrigin(t,"center","center",i,s);return this.angle?n.util.rotatePoint(r,t,e(this.angle)):r},getCenterPoint:function(){var e=new n.Point(this.left,this.top);return this.translateToCenterPoint(e,this.originX,this.originY)},getPointByOrigin:function(e,t){var i=this.getCenterPoint();return this.translateToOriginPoint(i,e,t)},toLocalPoint:function(t,i,s){var r,o,a=this.getCenterPoint();return r="undefined"!==typeof i&&"undefined"!==typeof s?this.translateToGivenOrigin(a,"center","center",i,s):new n.Point(this.left,this.top),o=new n.Point(t.x,t.y),this.angle&&(o=n.util.rotatePoint(o,a,-e(this.angle))),o.subtractEquals(r)},setPositionByOrigin:function(e,t,i){var s=this.translateToCenterPoint(e,t,i),n=this.translateToOriginPoint(s,this.originX,this.originY);this.set("left",n.x),this.set("top",n.y)},adjustPosition:function(i){var s,r,o=e(this.angle),a=this.getScaledWidth(),c=n.util.cos(o)*a,l=n.util.sin(o)*a;s="string"===typeof this.originX?t[this.originX]:this.originX-.5,r="string"===typeof i?t[i]:i-.5,this.left+=c*(r-s),this.top+=l*(r-s),this.setCoords(),this.originX=i},_setOriginToCenter:function(){this._originalOriginX=this.originX,this._originalOriginY=this.originY;var e=this.getCenterPoint();this.originX="center",this.originY="center",this.left=e.x,this.top=e.y},_resetOrigin:function(){var e=this.translateToOriginPoint(this.getCenterPoint(),this._originalOriginX,this._originalOriginY);this.originX=this._originalOriginX,this.originY=this._originalOriginY,this.left=e.x,this.top=e.y,this._originalOriginX=null,this._originalOriginY=null},_getLeftTopCoords:function(){return this.translateToOriginPoint(this.getCenterPoint(),"left","top")}})}(),function(){var e=n.util,t=e.degreesToRadians,i=e.multiplyTransformMatrices,s=e.transformPoint;e.object.extend(n.Object.prototype,{oCoords:null,aCoords:null,lineCoords:null,ownMatrixCache:null,matrixCache:null,controls:{},_getCoords:function(e,t){return t?e?this.calcACoords():this.calcLineCoords():(this.aCoords&&this.lineCoords||this.setCoords(!0),e?this.aCoords:this.lineCoords)},getCoords:function(e,t){return i=this._getCoords(e,t),[new n.Point(i.tl.x,i.tl.y),new n.Point(i.tr.x,i.tr.y),new n.Point(i.br.x,i.br.y),new n.Point(i.bl.x,i.bl.y)];var i},intersectsWithRect:function(e,t,i,s){var r=this.getCoords(i,s);return"Intersection"===n.Intersection.intersectPolygonRectangle(r,e,t).status},intersectsWithObject:function(e,t,i){return"Intersection"===n.Intersection.intersectPolygonPolygon(this.getCoords(t,i),e.getCoords(t,i)).status||e.isContainedWithinObject(this,t,i)||this.isContainedWithinObject(e,t,i)},isContainedWithinObject:function(e,t,i){for(var s=this.getCoords(t,i),n=t?e.aCoords:e.lineCoords,r=0,o=e._getImageLines(n);r<4;r++)if(!e.containsPoint(s[r],o))return!1;return!0},isContainedWithinRect:function(e,t,i,s){var n=this.getBoundingRect(i,s);return n.left>=e.x&&n.left+n.width<=t.x&&n.top>=e.y&&n.top+n.height<=t.y},containsPoint:function(e,t,i,s){var n=this._getCoords(i,s),r=(t=t||this._getImageLines(n),this._findCrossPoints(e,t));return 0!==r&&r%2===1},isOnScreen:function(e){if(!this.canvas)return!1;var t=this.canvas.vptCoords.tl,i=this.canvas.vptCoords.br;return!!this.getCoords(!0,e).some((function(e){return e.x<=i.x&&e.x>=t.x&&e.y<=i.y&&e.y>=t.y}))||(!!this.intersectsWithRect(t,i,!0,e)||this._containsCenterOfCanvas(t,i,e))},_containsCenterOfCanvas:function(e,t,i){var s={x:(e.x+t.x)/2,y:(e.y+t.y)/2};return!!this.containsPoint(s,null,!0,i)},isPartiallyOnScreen:function(e){if(!this.canvas)return!1;var t=this.canvas.vptCoords.tl,i=this.canvas.vptCoords.br;return!!this.intersectsWithRect(t,i,!0,e)||this.getCoords(!0,e).every((function(e){return(e.x>=i.x||e.x<=t.x)&&(e.y>=i.y||e.y<=t.y)}))&&this._containsCenterOfCanvas(t,i,e)},_getImageLines:function(e){return{topline:{o:e.tl,d:e.tr},rightline:{o:e.tr,d:e.br},bottomline:{o:e.br,d:e.bl},leftline:{o:e.bl,d:e.tl}}},_findCrossPoints:function(e,t){var i,s,n,r=0;for(var o in t)if(!((n=t[o]).o.y<e.y&&n.d.y<e.y)&&!(n.o.y>=e.y&&n.d.y>=e.y)&&(n.o.x===n.d.x&&n.o.x>=e.x?s=n.o.x:(i=(n.d.y-n.o.y)/(n.d.x-n.o.x),s=-(e.y-0*e.x-(n.o.y-i*n.o.x))/(0-i)),s>=e.x&&(r+=1),2===r))break;return r},getBoundingRect:function(t,i){var s=this.getCoords(t,i);return e.makeBoundingBoxFromPoints(s)},getScaledWidth:function(){return this._getTransformedDimensions().x},getScaledHeight:function(){return this._getTransformedDimensions().y},_constrainScale:function(e){return Math.abs(e)<this.minScaleLimit?e<0?-this.minScaleLimit:this.minScaleLimit:0===e?1e-4:e},scale:function(e){return this._set("scaleX",e),this._set("scaleY",e),this.setCoords()},scaleToWidth:function(e,t){var i=this.getBoundingRect(t).width/this.getScaledWidth();return this.scale(e/this.width/i)},scaleToHeight:function(e,t){var i=this.getBoundingRect(t).height/this.getScaledHeight();return this.scale(e/this.height/i)},calcLineCoords:function(){var i=this.getViewportTransform(),n=this.padding,r=t(this.angle),o=e.cos(r)*n,a=e.sin(r)*n,c=o+a,l=o-a,h=this.calcACoords(),d={tl:s(h.tl,i),tr:s(h.tr,i),bl:s(h.bl,i),br:s(h.br,i)};return n&&(d.tl.x-=l,d.tl.y-=c,d.tr.x+=c,d.tr.y-=l,d.bl.x-=c,d.bl.y+=l,d.br.x+=l,d.br.y+=c),d},calcOCoords:function(){var e=this._calcRotateMatrix(),t=this._calcTranslateMatrix(),s=this.getViewportTransform(),n=i(s,t),r=i(n,e),o=(r=i(r,[1/s[0],0,0,1/s[3],0,0]),this._calculateCurrentDimensions()),a={};return this.forEachControl((function(e,t,i){a[t]=e.positionHandler(o,r,i)})),a},calcACoords:function(){var e=this._calcRotateMatrix(),t=this._calcTranslateMatrix(),n=i(t,e),r=this._getTransformedDimensions(),o=r.x/2,a=r.y/2;return{tl:s({x:-o,y:-a},n),tr:s({x:o,y:-a},n),bl:s({x:-o,y:a},n),br:s({x:o,y:a},n)}},setCoords:function(e){return this.aCoords=this.calcACoords(),this.lineCoords=this.group?this.aCoords:this.calcLineCoords(),e||(this.oCoords=this.calcOCoords(),this._setCornerCoords&&this._setCornerCoords()),this},_calcRotateMatrix:function(){return e.calcRotateMatrix(this)},_calcTranslateMatrix:function(){var e=this.getCenterPoint();return[1,0,0,1,e.x,e.y]},transformMatrixKey:function(e){var t="_",i="";return!e&&this.group&&(i=this.group.transformMatrixKey(e)+t),i+this.top+t+this.left+t+this.scaleX+t+this.scaleY+t+this.skewX+t+this.skewY+t+this.angle+t+this.originX+t+this.originY+t+this.width+t+this.height+t+this.strokeWidth+this.flipX+this.flipY},calcTransformMatrix:function(e){var t=this.calcOwnMatrix();if(e||!this.group)return t;var s=this.transformMatrixKey(e),n=this.matrixCache||(this.matrixCache={});return n.key===s?n.value:(this.group&&(t=i(this.group.calcTransformMatrix(!1),t)),n.key=s,n.value=t,t)},calcOwnMatrix:function(){var t=this.transformMatrixKey(!0),i=this.ownMatrixCache||(this.ownMatrixCache={});if(i.key===t)return i.value;var s=this._calcTranslateMatrix(),n={angle:this.angle,translateX:s[4],translateY:s[5],scaleX:this.scaleX,scaleY:this.scaleY,skewX:this.skewX,skewY:this.skewY,flipX:this.flipX,flipY:this.flipY};return i.key=t,i.value=e.composeMatrix(n),i.value},_getNonTransformedDimensions:function(){var e=this.strokeWidth;return{x:this.width+e,y:this.height+e}},_getTransformedDimensions:function(t,i){"undefined"===typeof t&&(t=this.skewX),"undefined"===typeof i&&(i=this.skewY);var s,n,r,o=0===t&&0===i;if(this.strokeUniform?(n=this.width,r=this.height):(n=(s=this._getNonTransformedDimensions()).x,r=s.y),o)return this._finalizeDimensions(n*this.scaleX,r*this.scaleY);var a=e.sizeAfterTransform(n,r,{scaleX:this.scaleX,scaleY:this.scaleY,skewX:t,skewY:i});return this._finalizeDimensions(a.x,a.y)},_finalizeDimensions:function(e,t){return this.strokeUniform?{x:e+this.strokeWidth,y:t+this.strokeWidth}:{x:e,y:t}},_calculateCurrentDimensions:function(){var e=this.getViewportTransform(),t=this._getTransformedDimensions();return s(t,e,!0).scalarAdd(2*this.padding)}})}(),n.util.object.extend(n.Object.prototype,{sendToBack:function(){return this.group?n.StaticCanvas.prototype.sendToBack.call(this.group,this):this.canvas&&this.canvas.sendToBack(this),this},bringToFront:function(){return this.group?n.StaticCanvas.prototype.bringToFront.call(this.group,this):this.canvas&&this.canvas.bringToFront(this),this},sendBackwards:function(e){return this.group?n.StaticCanvas.prototype.sendBackwards.call(this.group,this,e):this.canvas&&this.canvas.sendBackwards(this,e),this},bringForward:function(e){return this.group?n.StaticCanvas.prototype.bringForward.call(this.group,this,e):this.canvas&&this.canvas.bringForward(this,e),this},moveTo:function(e){return this.group&&"activeSelection"!==this.group.type?n.StaticCanvas.prototype.moveTo.call(this.group,this,e):this.canvas&&this.canvas.moveTo(this,e),this}}),function(){function e(e,t){if(t){if(t.toLive)return e+": url(#SVGID_"+t.id+"); ";var i=new n.Color(t),s=e+": "+i.toRgb()+"; ",r=i.getAlpha();return 1!==r&&(s+=e+"-opacity: "+r.toString()+"; "),s}return e+": none; "}var t=n.util.toFixed;n.util.object.extend(n.Object.prototype,{getSvgStyles:function(t){var i=this.fillRule?this.fillRule:"nonzero",s=this.strokeWidth?this.strokeWidth:"0",n=this.strokeDashArray?this.strokeDashArray.join(" "):"none",r=this.strokeDashOffset?this.strokeDashOffset:"0",o=this.strokeLineCap?this.strokeLineCap:"butt",a=this.strokeLineJoin?this.strokeLineJoin:"miter",c=this.strokeMiterLimit?this.strokeMiterLimit:"4",l="undefined"!==typeof this.opacity?this.opacity:"1",h=this.visible?"":" visibility: hidden;",d=t?"":this.getSvgFilter(),u=e("fill",this.fill);return[e("stroke",this.stroke),"stroke-width: ",s,"; ","stroke-dasharray: ",n,"; ","stroke-linecap: ",o,"; ","stroke-dashoffset: ",r,"; ","stroke-linejoin: ",a,"; ","stroke-miterlimit: ",c,"; ",u,"fill-rule: ",i,"; ","opacity: ",l,";",d,h].join("")},getSvgSpanStyles:function(t,i){var s="; ",n=t.fontFamily?"font-family: "+(-1===t.fontFamily.indexOf("'")&&-1===t.fontFamily.indexOf('"')?"'"+t.fontFamily+"'":t.fontFamily)+s:"",r=t.strokeWidth?"stroke-width: "+t.strokeWidth+s:"",o=(n=n,t.fontSize?"font-size: "+t.fontSize+"px"+s:""),a=t.fontStyle?"font-style: "+t.fontStyle+s:"",c=t.fontWeight?"font-weight: "+t.fontWeight+s:"",l=t.fill?e("fill",t.fill):"",h=t.stroke?e("stroke",t.stroke):"",d=this.getSvgTextDecoration(t);return d&&(d="text-decoration: "+d+s),[h,r,n,o,a,c,d,l,t.deltaY?"baseline-shift: "+-t.deltaY+"; ":"",i?"white-space: pre; ":""].join("")},getSvgTextDecoration:function(e){return["overline","underline","line-through"].filter((function(t){return e[t.replace("-","")]})).join(" ")},getSvgFilter:function(){return this.shadow?"filter: url(#SVGID_"+this.shadow.id+");":""},getSvgCommons:function(){return[this.id?'id="'+this.id+'" ':"",this.clipPath?'clip-path="url(#'+this.clipPath.clipPathId+')" ':""].join("")},getSvgTransform:function(e,t){var i=e?this.calcTransformMatrix():this.calcOwnMatrix();return'transform="'+n.util.matrixToSVG(i)+(t||"")+'" '},_setSVGBg:function(e){if(this.backgroundColor){var i=n.Object.NUM_FRACTION_DIGITS;e.push("\t\t<rect ",this._getFillAttributes(this.backgroundColor),' x="',t(-this.width/2,i),'" y="',t(-this.height/2,i),'" width="',t(this.width,i),'" height="',t(this.height,i),'"></rect>\n')}},toSVG:function(e){return this._createBaseSVGMarkup(this._toSVG(e),{reviver:e})},toClipPathSVG:function(e){return"\t"+this._createBaseClipPathSVGMarkup(this._toSVG(e),{reviver:e})},_createBaseClipPathSVGMarkup:function(e,t){var i=(t=t||{}).reviver,s=t.additionalTransform||"",n=[this.getSvgTransform(!0,s),this.getSvgCommons()].join(""),r=e.indexOf("COMMON_PARTS");return e[r]=n,i?i(e.join("")):e.join("")},_createBaseSVGMarkup:function(e,t){var i,s,r=(t=t||{}).noStyle,o=t.reviver,a=r?"":'style="'+this.getSvgStyles()+'" ',c=t.withShadow?'style="'+this.getSvgFilter()+'" ':"",l=this.clipPath,h=this.strokeUniform?'vector-effect="non-scaling-stroke" ':"",d=l&&l.absolutePositioned,u=this.stroke,g=this.fill,p=this.shadow,m=[],f=e.indexOf("COMMON_PARTS"),_=t.additionalTransform;return l&&(l.clipPathId="CLIPPATH_"+n.Object.__uid++,s='<clipPath id="'+l.clipPathId+'" >\n'+l.toClipPathSVG(o)+"</clipPath>\n"),d&&m.push("<g ",c,this.getSvgCommons()," >\n"),m.push("<g ",this.getSvgTransform(!1),d?"":c+this.getSvgCommons()," >\n"),i=[a,h,r?"":this.addPaintOrder()," ",_?'transform="'+_+'" ':""].join(""),e[f]=i,g&&g.toLive&&m.push(g.toSVG(this)),u&&u.toLive&&m.push(u.toSVG(this)),p&&m.push(p.toSVG(this)),l&&m.push(s),m.push(e.join("")),m.push("</g>\n"),d&&m.push("</g>\n"),o?o(m.join("")):m.join("")},addPaintOrder:function(){return"fill"!==this.paintFirst?' paint-order="'+this.paintFirst+'" ':""}})}(),function(){var e=n.util.object.extend,t="stateProperties";function i(t,i,s){var n={};s.forEach((function(e){n[e]=t[e]})),e(t[i],n,!0)}function s(e,t,i){if(e===t)return!0;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(var n=0,r=e.length;n<r;n++)if(!s(e[n],t[n]))return!1;return!0}if(e&&"object"===typeof e){var o,a=Object.keys(e);if(!t||"object"!==typeof t||!i&&a.length!==Object.keys(t).length)return!1;for(n=0,r=a.length;n<r;n++)if("canvas"!==(o=a[n])&&"group"!==o&&!s(e[o],t[o]))return!1;return!0}}n.util.object.extend(n.Object.prototype,{hasStateChanged:function(e){var i="_"+(e=e||t);return Object.keys(this[i]).length<this[e].length||!s(this[i],this,!0)},saveState:function(e){var s=e&&e.propertySet||t,n="_"+s;return this[n]?(i(this,n,this[s]),e&&e.stateProperties&&i(this,n,e.stateProperties),this):this.setupState(e)},setupState:function(e){var i=(e=e||{}).propertySet||t;return e.propertySet=i,this["_"+i]={},this.saveState(e),this}})}(),function(){var e=n.util.degreesToRadians;n.util.object.extend(n.Object.prototype,{_findTargetCorner:function(e,t){if(!this.hasControls||this.group||!this.canvas||this.canvas._activeObject!==this)return!1;var i,s,n,r=e.x,o=e.y,a=Object.keys(this.oCoords),c=a.length-1;for(this.__corner=0;c>=0;c--)if(n=a[c],this.isControlVisible(n)&&(s=this._getImageLines(t?this.oCoords[n].touchCorner:this.oCoords[n].corner),0!==(i=this._findCrossPoints({x:r,y:o},s))&&i%2===1))return this.__corner=n,n;return!1},forEachControl:function(e){for(var t in this.controls)e(this.controls[t],t,this)},_setCornerCoords:function(){var e=this.oCoords;for(var t in e){var i=this.controls[t];e[t].corner=i.calcCornerCoords(this.angle,this.cornerSize,e[t].x,e[t].y,!1),e[t].touchCorner=i.calcCornerCoords(this.angle,this.touchCornerSize,e[t].x,e[t].y,!0)}},drawSelectionBackground:function(t){if(!this.selectionBackgroundColor||this.canvas&&!this.canvas.interactive||this.canvas&&this.canvas._activeObject!==this)return this;t.save();var i=this.getCenterPoint(),s=this._calculateCurrentDimensions(),n=this.canvas.viewportTransform;return t.translate(i.x,i.y),t.scale(1/n[0],1/n[3]),t.rotate(e(this.angle)),t.fillStyle=this.selectionBackgroundColor,t.fillRect(-s.x/2,-s.y/2,s.x,s.y),t.restore(),this},drawBorders:function(e,t){t=t||{};var i=this._calculateCurrentDimensions(),s=this.borderScaleFactor,n=i.x+s,r=i.y+s,o="undefined"!==typeof t.hasControls?t.hasControls:this.hasControls,a=!1;return e.save(),e.strokeStyle=t.borderColor||this.borderColor,this._setLineDash(e,t.borderDashArray||this.borderDashArray),e.strokeRect(-n/2,-r/2,n,r),o&&(e.beginPath(),this.forEachControl((function(t,i,s){t.withConnection&&t.getVisibility(s,i)&&(a=!0,e.moveTo(t.x*n,t.y*r),e.lineTo(t.x*n+t.offsetX,t.y*r+t.offsetY))})),a&&e.stroke()),e.restore(),this},drawBordersInGroup:function(e,t,i){i=i||{};var s=n.util.sizeAfterTransform(this.width,this.height,t),r=this.strokeWidth,o=this.strokeUniform,a=this.borderScaleFactor,c=s.x+r*(o?this.canvas.getZoom():t.scaleX)+a,l=s.y+r*(o?this.canvas.getZoom():t.scaleY)+a;return e.save(),this._setLineDash(e,i.borderDashArray||this.borderDashArray),e.strokeStyle=i.borderColor||this.borderColor,e.strokeRect(-c/2,-l/2,c,l),e.restore(),this},drawControls:function(e,t){t=t||{},e.save();var i,s,r=1;return this.canvas&&(r=this.canvas.getRetinaScaling()),e.setTransform(r,0,0,r,0,0),e.strokeStyle=e.fillStyle=t.cornerColor||this.cornerColor,this.transparentCorners||(e.strokeStyle=t.cornerStrokeColor||this.cornerStrokeColor),this._setLineDash(e,t.cornerDashArray||this.cornerDashArray),this.setCoords(),this.group&&(i=this.group.calcTransformMatrix()),this.forEachControl((function(r,o,a){s=a.oCoords[o],r.getVisibility(a,o)&&(i&&(s=n.util.transformPoint(s,i)),r.render(e,s.x,s.y,t,a))})),e.restore(),this},isControlVisible:function(e){return this.controls[e]&&this.controls[e].getVisibility(this,e)},setControlVisible:function(e,t){return this._controlsVisibility||(this._controlsVisibility={}),this._controlsVisibility[e]=t,this},setControlsVisibility:function(e){for(var t in e||(e={}),e)this.setControlVisible(t,e[t]);return this},onDeselect:function(){},onSelect:function(){}})}(),n.util.object.extend(n.StaticCanvas.prototype,{FX_DURATION:500,fxCenterObjectH:function(e,t){var i=function(){},s=(t=t||{}).onComplete||i,r=t.onChange||i,o=this;return n.util.animate({target:this,startValue:e.left,endValue:this.getCenterPoint().x,duration:this.FX_DURATION,onChange:function(t){e.set("left",t),o.requestRenderAll(),r()},onComplete:function(){e.setCoords(),s()}})},fxCenterObjectV:function(e,t){var i=function(){},s=(t=t||{}).onComplete||i,r=t.onChange||i,o=this;return n.util.animate({target:this,startValue:e.top,endValue:this.getCenterPoint().y,duration:this.FX_DURATION,onChange:function(t){e.set("top",t),o.requestRenderAll(),r()},onComplete:function(){e.setCoords(),s()}})},fxRemove:function(e,t){var i=function(){},s=(t=t||{}).onComplete||i,r=t.onChange||i,o=this;return n.util.animate({target:this,startValue:e.opacity,endValue:0,duration:this.FX_DURATION,onChange:function(t){e.set("opacity",t),o.requestRenderAll(),r()},onComplete:function(){o.remove(e),s()}})}}),n.util.object.extend(n.Object.prototype,{animate:function(){if(arguments[0]&&"object"===typeof arguments[0]){var e,t,i=[],s=[];for(e in arguments[0])i.push(e);for(var n=0,r=i.length;n<r;n++)e=i[n],t=n!==r-1,s.push(this._animate(e,arguments[0][e],arguments[1],t));return s}return this._animate.apply(this,arguments)},_animate:function(e,t,i,s){var r,o=this;t=t.toString(),i=i?n.util.object.clone(i):{},~e.indexOf(".")&&(r=e.split("."));var a=o.colorProperties.indexOf(e)>-1||r&&o.colorProperties.indexOf(r[1])>-1,c=r?this.get(r[0])[r[1]]:this.get(e);"from"in i||(i.from=c),a||(t=~t.indexOf("=")?c+parseFloat(t.replace("=","")):parseFloat(t));var l={target:this,startValue:i.from,endValue:t,byValue:i.by,easing:i.easing,duration:i.duration,abort:i.abort&&function(e,t,s){return i.abort.call(o,e,t,s)},onChange:function(t,n,a){r?o[r[0]][r[1]]=t:o.set(e,t),s||i.onChange&&i.onChange(t,n,a)},onComplete:function(e,t,n){s||(o.setCoords(),i.onComplete&&i.onComplete(e,t,n))}};return a?n.util.animateColor(l.startValue,l.endValue,l.duration,l):n.util.animate(l)}}),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,s=t.util.object.clone,n={x1:1,x2:1,y1:1,y2:1};function r(e,t){var i=e.origin,s=e.axis1,n=e.axis2,r=e.dimension,o=t.nearest,a=t.center,c=t.farthest;return function(){switch(this.get(i)){case o:return Math.min(this.get(s),this.get(n));case a:return Math.min(this.get(s),this.get(n))+.5*this.get(r);case c:return Math.max(this.get(s),this.get(n))}}}t.Line?t.warn("fabric.Line is already defined"):(t.Line=t.util.createClass(t.Object,{type:"line",x1:0,y1:0,x2:0,y2:0,cacheProperties:t.Object.prototype.cacheProperties.concat("x1","x2","y1","y2"),initialize:function(e,t){e||(e=[0,0,0,0]),this.callSuper("initialize",t),this.set("x1",e[0]),this.set("y1",e[1]),this.set("x2",e[2]),this.set("y2",e[3]),this._setWidthHeight(t)},_setWidthHeight:function(e){e||(e={}),this.width=Math.abs(this.x2-this.x1),this.height=Math.abs(this.y2-this.y1),this.left="left"in e?e.left:this._getLeftToOriginX(),this.top="top"in e?e.top:this._getTopToOriginY()},_set:function(e,t){return this.callSuper("_set",e,t),"undefined"!==typeof n[e]&&this._setWidthHeight(),this},_getLeftToOriginX:r({origin:"originX",axis1:"x1",axis2:"x2",dimension:"width"},{nearest:"left",center:"center",farthest:"right"}),_getTopToOriginY:r({origin:"originY",axis1:"y1",axis2:"y2",dimension:"height"},{nearest:"top",center:"center",farthest:"bottom"}),_render:function(e){e.beginPath();var t=this.calcLinePoints();e.moveTo(t.x1,t.y1),e.lineTo(t.x2,t.y2),e.lineWidth=this.strokeWidth;var i=e.strokeStyle;e.strokeStyle=this.stroke||e.fillStyle,this.stroke&&this._renderStroke(e),e.strokeStyle=i},_findCenterFromElement:function(){return{x:(this.x1+this.x2)/2,y:(this.y1+this.y2)/2}},toObject:function(e){return i(this.callSuper("toObject",e),this.calcLinePoints())},_getNonTransformedDimensions:function(){var e=this.callSuper("_getNonTransformedDimensions");return"butt"===this.strokeLineCap&&(0===this.width&&(e.y-=this.strokeWidth),0===this.height&&(e.x-=this.strokeWidth)),e},calcLinePoints:function(){var e=this.x1<=this.x2?-1:1,t=this.y1<=this.y2?-1:1,i=e*this.width*.5,s=t*this.height*.5;return{x1:i,x2:e*this.width*-.5,y1:s,y2:t*this.height*-.5}},_toSVG:function(){var e=this.calcLinePoints();return["<line ","COMMON_PARTS",'x1="',e.x1,'" y1="',e.y1,'" x2="',e.x2,'" y2="',e.y2,'" />\n']}}),t.Line.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("x1 y1 x2 y2".split(" ")),t.Line.fromElement=function(e,s,n){n=n||{};var r=t.parseAttributes(e,t.Line.ATTRIBUTE_NAMES),o=[r.x1||0,r.y1||0,r.x2||0,r.y2||0];s(new t.Line(o,i(r,n)))},t.Line.fromObject=function(e,i){var n=s(e,!0);n.points=[e.x1,e.y1,e.x2,e.y2],t.Object._fromObject("Line",n,(function(e){delete e.points,i&&i(e)}),"points")})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.degreesToRadians;t.Circle?t.warn("fabric.Circle is already defined."):(t.Circle=t.util.createClass(t.Object,{type:"circle",radius:0,startAngle:0,endAngle:360,cacheProperties:t.Object.prototype.cacheProperties.concat("radius","startAngle","endAngle"),_set:function(e,t){return this.callSuper("_set",e,t),"radius"===e&&this.setRadius(t),this},toObject:function(e){return this.callSuper("toObject",["radius","startAngle","endAngle"].concat(e))},_toSVG:function(){var e,s=(this.endAngle-this.startAngle)%360;if(0===s)e=["<circle ","COMMON_PARTS",'cx="0" cy="0" ','r="',this.radius,'" />\n'];else{var n=i(this.startAngle),r=i(this.endAngle),o=this.radius;e=['<path d="M '+t.util.cos(n)*o+" "+t.util.sin(n)*o," A "+o+" "+o," 0 ",+(s>180?"1":"0")+" 1"," "+t.util.cos(r)*o+" "+t.util.sin(r)*o,'" ',"COMMON_PARTS"," />\n"]}return e},_render:function(e){e.beginPath(),e.arc(0,0,this.radius,i(this.startAngle),i(this.endAngle),!1),this._renderPaintInOrder(e)},getRadiusX:function(){return this.get("radius")*this.get("scaleX")},getRadiusY:function(){return this.get("radius")*this.get("scaleY")},setRadius:function(e){return this.radius=e,this.set("width",2*e).set("height",2*e)}}),t.Circle.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("cx cy r".split(" ")),t.Circle.fromElement=function(e,i){var s,n=t.parseAttributes(e,t.Circle.ATTRIBUTE_NAMES);if(!("radius"in(s=n)&&s.radius>=0))throw new Error("value of `r` attribute is required and can not be negative");n.left=(n.left||0)-n.radius,n.top=(n.top||0)-n.radius,i(new t.Circle(n))},t.Circle.fromObject=function(e,i){t.Object._fromObject("Circle",e,i)})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={});t.Triangle?t.warn("fabric.Triangle is already defined"):(t.Triangle=t.util.createClass(t.Object,{type:"triangle",width:100,height:100,_render:function(e){var t=this.width/2,i=this.height/2;e.beginPath(),e.moveTo(-t,i),e.lineTo(0,-i),e.lineTo(t,i),e.closePath(),this._renderPaintInOrder(e)},_toSVG:function(){var e=this.width/2,t=this.height/2;return["<polygon ","COMMON_PARTS",'points="',[-e+" "+t,"0 "+-t,e+" "+t].join(","),'" />']}}),t.Triangle.fromObject=function(e,i){return t.Object._fromObject("Triangle",e,i)})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=2*Math.PI;t.Ellipse?t.warn("fabric.Ellipse is already defined."):(t.Ellipse=t.util.createClass(t.Object,{type:"ellipse",rx:0,ry:0,cacheProperties:t.Object.prototype.cacheProperties.concat("rx","ry"),initialize:function(e){this.callSuper("initialize",e),this.set("rx",e&&e.rx||0),this.set("ry",e&&e.ry||0)},_set:function(e,t){switch(this.callSuper("_set",e,t),e){case"rx":this.rx=t,this.set("width",2*t);break;case"ry":this.ry=t,this.set("height",2*t)}return this},getRx:function(){return this.get("rx")*this.get("scaleX")},getRy:function(){return this.get("ry")*this.get("scaleY")},toObject:function(e){return this.callSuper("toObject",["rx","ry"].concat(e))},_toSVG:function(){return["<ellipse ","COMMON_PARTS",'cx="0" cy="0" ','rx="',this.rx,'" ry="',this.ry,'" />\n']},_render:function(e){e.beginPath(),e.save(),e.transform(1,0,0,this.ry/this.rx,0,0),e.arc(0,0,this.rx,0,i,!1),e.restore(),this._renderPaintInOrder(e)}}),t.Ellipse.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("cx cy rx ry".split(" ")),t.Ellipse.fromElement=function(e,i){var s=t.parseAttributes(e,t.Ellipse.ATTRIBUTE_NAMES);s.left=(s.left||0)-s.rx,s.top=(s.top||0)-s.ry,i(new t.Ellipse(s))},t.Ellipse.fromObject=function(e,i){t.Object._fromObject("Ellipse",e,i)})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend;t.Rect?t.warn("fabric.Rect is already defined"):(t.Rect=t.util.createClass(t.Object,{stateProperties:t.Object.prototype.stateProperties.concat("rx","ry"),type:"rect",rx:0,ry:0,cacheProperties:t.Object.prototype.cacheProperties.concat("rx","ry"),initialize:function(e){this.callSuper("initialize",e),this._initRxRy()},_initRxRy:function(){this.rx&&!this.ry?this.ry=this.rx:this.ry&&!this.rx&&(this.rx=this.ry)},_render:function(e){var t=this.rx?Math.min(this.rx,this.width/2):0,i=this.ry?Math.min(this.ry,this.height/2):0,s=this.width,n=this.height,r=-this.width/2,o=-this.height/2,a=0!==t||0!==i,c=.4477152502;e.beginPath(),e.moveTo(r+t,o),e.lineTo(r+s-t,o),a&&e.bezierCurveTo(r+s-c*t,o,r+s,o+c*i,r+s,o+i),e.lineTo(r+s,o+n-i),a&&e.bezierCurveTo(r+s,o+n-c*i,r+s-c*t,o+n,r+s-t,o+n),e.lineTo(r+t,o+n),a&&e.bezierCurveTo(r+c*t,o+n,r,o+n-c*i,r,o+n-i),e.lineTo(r,o+i),a&&e.bezierCurveTo(r,o+c*i,r+c*t,o,r+t,o),e.closePath(),this._renderPaintInOrder(e)},toObject:function(e){return this.callSuper("toObject",["rx","ry"].concat(e))},_toSVG:function(){return["<rect ","COMMON_PARTS",'x="',-this.width/2,'" y="',-this.height/2,'" rx="',this.rx,'" ry="',this.ry,'" width="',this.width,'" height="',this.height,'" />\n']}}),t.Rect.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("x y rx ry width height".split(" ")),t.Rect.fromElement=function(e,s,n){if(!e)return s(null);n=n||{};var r=t.parseAttributes(e,t.Rect.ATTRIBUTE_NAMES);r.left=r.left||0,r.top=r.top||0,r.height=r.height||0,r.width=r.width||0;var o=new t.Rect(i(n?t.util.object.clone(n):{},r));o.visible=o.visible&&o.width>0&&o.height>0,s(o)},t.Rect.fromObject=function(e,i){return t.Object._fromObject("Rect",e,i)})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,s=t.util.array.min,n=t.util.array.max,r=t.util.toFixed,o=t.util.projectStrokeOnPoints;t.Polyline?t.warn("fabric.Polyline is already defined"):(t.Polyline=t.util.createClass(t.Object,{type:"polyline",points:null,exactBoundingBox:!1,cacheProperties:t.Object.prototype.cacheProperties.concat("points"),initialize:function(e,t){t=t||{},this.points=e||[],this.callSuper("initialize",t),this._setPositionDimensions(t)},_projectStrokeOnPoints:function(){return o(this.points,this,!0)},_setPositionDimensions:function(e){var t,i=this._calcDimensions(e),s=this.exactBoundingBox?this.strokeWidth:0;this.width=i.width-s,this.height=i.height-s,e.fromSVG||(t=this.translateToGivenOrigin({x:i.left-this.strokeWidth/2+s/2,y:i.top-this.strokeWidth/2+s/2},"left","top",this.originX,this.originY)),"undefined"===typeof e.left&&(this.left=e.fromSVG?i.left:t.x),"undefined"===typeof e.top&&(this.top=e.fromSVG?i.top:t.y),this.pathOffset={x:i.left+this.width/2+s/2,y:i.top+this.height/2+s/2}},_calcDimensions:function(){var e=this.exactBoundingBox?this._projectStrokeOnPoints():this.points,t=s(e,"x")||0,i=s(e,"y")||0;return{left:t,top:i,width:(n(e,"x")||0)-t,height:(n(e,"y")||0)-i}},toObject:function(e){return i(this.callSuper("toObject",e),{points:this.points.concat()})},_toSVG:function(){for(var e=[],i=this.pathOffset.x,s=this.pathOffset.y,n=t.Object.NUM_FRACTION_DIGITS,o=0,a=this.points.length;o<a;o++)e.push(r(this.points[o].x-i,n),",",r(this.points[o].y-s,n)," ");return["<"+this.type+" ","COMMON_PARTS",'points="',e.join(""),'" />\n']},commonRender:function(e){var t,i=this.points.length,s=this.pathOffset.x,n=this.pathOffset.y;if(!i||isNaN(this.points[i-1].y))return!1;e.beginPath(),e.moveTo(this.points[0].x-s,this.points[0].y-n);for(var r=0;r<i;r++)t=this.points[r],e.lineTo(t.x-s,t.y-n);return!0},_render:function(e){this.commonRender(e)&&this._renderPaintInOrder(e)},complexity:function(){return this.get("points").length}}),t.Polyline.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat(),t.Polyline.fromElementGenerator=function(e){return function(s,n,r){if(!s)return n(null);r||(r={});var o=t.parsePointsAttribute(s.getAttribute("points")),a=t.parseAttributes(s,t[e].ATTRIBUTE_NAMES);a.fromSVG=!0,n(new t[e](o,i(a,r)))}},t.Polyline.fromElement=t.Polyline.fromElementGenerator("Polyline"),t.Polyline.fromObject=function(e,i){return t.Object._fromObject("Polyline",e,i,"points")})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.projectStrokeOnPoints;t.Polygon?t.warn("fabric.Polygon is already defined"):(t.Polygon=t.util.createClass(t.Polyline,{type:"polygon",_projectStrokeOnPoints:function(){return i(this.points,this)},_render:function(e){this.commonRender(e)&&(e.closePath(),this._renderPaintInOrder(e))}}),t.Polygon.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat(),t.Polygon.fromElement=t.Polyline.fromElementGenerator("Polygon"),t.Polygon.fromObject=function(e,i){t.Object._fromObject("Polygon",e,i,"points")})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.array.min,s=t.util.array.max,n=t.util.object.extend,r=t.util.object.clone,o=t.util.toFixed;t.Path?t.warn("fabric.Path is already defined"):(t.Path=t.util.createClass(t.Object,{type:"path",path:null,cacheProperties:t.Object.prototype.cacheProperties.concat("path","fillRule"),stateProperties:t.Object.prototype.stateProperties.concat("path"),initialize:function(e,t){delete(t=r(t||{})).path,this.callSuper("initialize",t),this._setPath(e||[],t)},_setPath:function(e,i){this.path=t.util.makePathSimpler(Array.isArray(e)?e:t.util.parsePath(e)),t.Polyline.prototype._setPositionDimensions.call(this,i||{})},_renderPathCommands:function(e){var t,i=0,s=0,n=0,r=0,o=0,a=0,c=-this.pathOffset.x,l=-this.pathOffset.y;e.beginPath();for(var h=0,d=this.path.length;h<d;++h)switch((t=this.path[h])[0]){case"L":n=t[1],r=t[2],e.lineTo(n+c,r+l);break;case"M":i=n=t[1],s=r=t[2],e.moveTo(n+c,r+l);break;case"C":n=t[5],r=t[6],o=t[3],a=t[4],e.bezierCurveTo(t[1]+c,t[2]+l,o+c,a+l,n+c,r+l);break;case"Q":e.quadraticCurveTo(t[1]+c,t[2]+l,t[3]+c,t[4]+l),n=t[3],r=t[4],o=t[1],a=t[2];break;case"z":case"Z":n=i,r=s,e.closePath()}},_render:function(e){this._renderPathCommands(e),this._renderPaintInOrder(e)},toString:function(){return"#<fabric.Path ("+this.complexity()+'): { "top": '+this.top+', "left": '+this.left+" }>"},toObject:function(e){return n(this.callSuper("toObject",e),{path:this.path.map((function(e){return e.slice()}))})},toDatalessObject:function(e){var t=this.toObject(["sourcePath"].concat(e));return t.sourcePath&&delete t.path,t},_toSVG:function(){return["<path ","COMMON_PARTS",'d="',t.util.joinPath(this.path),'" stroke-linecap="round" ',"/>\n"]},_getOffsetTransform:function(){var e=t.Object.NUM_FRACTION_DIGITS;return" translate("+o(-this.pathOffset.x,e)+", "+o(-this.pathOffset.y,e)+")"},toClipPathSVG:function(e){var t=this._getOffsetTransform();return"\t"+this._createBaseClipPathSVGMarkup(this._toSVG(),{reviver:e,additionalTransform:t})},toSVG:function(e){var t=this._getOffsetTransform();return this._createBaseSVGMarkup(this._toSVG(),{reviver:e,additionalTransform:t})},complexity:function(){return this.path.length},_calcDimensions:function(){for(var e,n,r=[],o=[],a=0,c=0,l=0,h=0,d=0,u=this.path.length;d<u;++d){switch((e=this.path[d])[0]){case"L":l=e[1],h=e[2],n=[];break;case"M":a=l=e[1],c=h=e[2],n=[];break;case"C":n=t.util.getBoundsOfCurve(l,h,e[1],e[2],e[3],e[4],e[5],e[6]),l=e[5],h=e[6];break;case"Q":n=t.util.getBoundsOfCurve(l,h,e[1],e[2],e[1],e[2],e[3],e[4]),l=e[3],h=e[4];break;case"z":case"Z":l=a,h=c}n.forEach((function(e){r.push(e.x),o.push(e.y)})),r.push(l),o.push(h)}var g=i(r)||0,p=i(o)||0;return{left:g,top:p,width:(s(r)||0)-g,height:(s(o)||0)-p}}}),t.Path.fromObject=function(e,i){if("string"===typeof e.sourcePath){var s=e.sourcePath;t.loadSVGFromURL(s,(function(s){var n=s[0];n.setOptions(e),e.clipPath?t.util.enlivenObjects([e.clipPath],(function(e){n.clipPath=e[0],i&&i(n)})):i&&i(n)}))}else t.Object._fromObject("Path",e,i,"path")},t.Path.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat(["d"]),t.Path.fromElement=function(e,i,s){var r=t.parseAttributes(e,t.Path.ATTRIBUTE_NAMES);r.fromSVG=!0,i(new t.Path(r.d,n(r,s)))})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.array.min,s=t.util.array.max;t.Group||(t.Group=t.util.createClass(t.Object,t.Collection,{type:"group",strokeWidth:0,subTargetCheck:!1,cacheProperties:[],useSetOnGroup:!1,initialize:function(e,t,i){t=t||{},this._objects=[],i&&this.callSuper("initialize",t),this._objects=e||[];for(var s=this._objects.length;s--;)this._objects[s].group=this;if(i)this._updateObjectsACoords();else{var n=t&&t.centerPoint;void 0!==t.originX&&(this.originX=t.originX),void 0!==t.originY&&(this.originY=t.originY),n||this._calcBounds(),this._updateObjectsCoords(n),delete t.centerPoint,this.callSuper("initialize",t)}this.setCoords()},_updateObjectsACoords:function(){for(var e=this._objects.length;e--;)this._objects[e].setCoords(true)},_updateObjectsCoords:function(e){e=e||this.getCenterPoint();for(var t=this._objects.length;t--;)this._updateObjectCoords(this._objects[t],e)},_updateObjectCoords:function(e,t){var i=e.left,s=e.top;e.set({left:i-t.x,top:s-t.y}),e.group=this,e.setCoords(!0)},toString:function(){return"#<fabric.Group: ("+this.complexity()+")>"},addWithUpdate:function(e){var i=!!this.group;return this._restoreObjectsState(),t.util.resetObjectTransform(this),e&&(i&&t.util.removeTransformFromObject(e,this.group.calcTransformMatrix()),this._objects.push(e),e.group=this,e._set("canvas",this.canvas)),this._calcBounds(),this._updateObjectsCoords(),this.dirty=!0,i?this.group.addWithUpdate():this.setCoords(),this},removeWithUpdate:function(e){return this._restoreObjectsState(),t.util.resetObjectTransform(this),this.remove(e),this._calcBounds(),this._updateObjectsCoords(),this.setCoords(),this.dirty=!0,this},_onObjectAdded:function(e){this.dirty=!0,e.group=this,e._set("canvas",this.canvas)},_onObjectRemoved:function(e){this.dirty=!0,delete e.group},_set:function(e,i){var s=this._objects.length;if(this.useSetOnGroup)for(;s--;)this._objects[s].setOnGroup(e,i);if("canvas"===e)for(;s--;)this._objects[s]._set(e,i);t.Object.prototype._set.call(this,e,i)},toObject:function(e){var i=this.includeDefaultValues,s=this._objects.filter((function(e){return!e.excludeFromExport})).map((function(t){var s=t.includeDefaultValues;t.includeDefaultValues=i;var n=t.toObject(e);return t.includeDefaultValues=s,n})),n=t.Object.prototype.toObject.call(this,e);return n.objects=s,n},toDatalessObject:function(e){var i,s=this.sourcePath;if(s)i=s;else{var n=this.includeDefaultValues;i=this._objects.map((function(t){var i=t.includeDefaultValues;t.includeDefaultValues=n;var s=t.toDatalessObject(e);return t.includeDefaultValues=i,s}))}var r=t.Object.prototype.toDatalessObject.call(this,e);return r.objects=i,r},render:function(e){this._transformDone=!0,this.callSuper("render",e),this._transformDone=!1},shouldCache:function(){var e=t.Object.prototype.shouldCache.call(this);if(e)for(var i=0,s=this._objects.length;i<s;i++)if(this._objects[i].willDrawShadow())return this.ownCaching=!1,!1;return e},willDrawShadow:function(){if(t.Object.prototype.willDrawShadow.call(this))return!0;for(var e=0,i=this._objects.length;e<i;e++)if(this._objects[e].willDrawShadow())return!0;return!1},isOnACache:function(){return this.ownCaching||this.group&&this.group.isOnACache()},drawObject:function(e){for(var t=0,i=this._objects.length;t<i;t++)this._objects[t].render(e);this._drawClipPath(e,this.clipPath)},isCacheDirty:function(e){if(this.callSuper("isCacheDirty",e))return!0;if(!this.statefullCache)return!1;for(var t=0,i=this._objects.length;t<i;t++)if(this._objects[t].isCacheDirty(!0)){if(this._cacheCanvas){var s=this.cacheWidth/this.zoomX,n=this.cacheHeight/this.zoomY;this._cacheContext.clearRect(-s/2,-n/2,s,n)}return!0}return!1},_restoreObjectsState:function(){var e=this.calcOwnMatrix();return this._objects.forEach((function(i){t.util.addTransformToObject(i,e),delete i.group,i.setCoords()})),this},destroy:function(){return this._objects.forEach((function(e){e.set("dirty",!0)})),this._restoreObjectsState()},dispose:function(){this.callSuper("dispose"),this.forEachObject((function(e){e.dispose&&e.dispose()})),this._objects=[]},toActiveSelection:function(){if(this.canvas){var e=this._objects,i=this.canvas;this._objects=[];var s=this.toObject();delete s.objects;var n=new t.ActiveSelection([]);return n.set(s),n.type="activeSelection",i.remove(this),e.forEach((function(e){e.group=n,e.dirty=!0,i.add(e)})),n.canvas=i,n._objects=e,i._activeObject=n,n.setCoords(),n}},ungroupOnCanvas:function(){return this._restoreObjectsState()},setObjectsCoords:function(){return this.forEachObject((function(e){e.setCoords(true)})),this},_calcBounds:function(e){for(var t,i,s,n,r=[],o=[],a=["tr","br","bl","tl"],c=0,l=this._objects.length,h=a.length;c<l;++c){for(s=(t=this._objects[c]).calcACoords(),n=0;n<h;n++)i=a[n],r.push(s[i].x),o.push(s[i].y);t.aCoords=s}this._getBounds(r,o,e)},_getBounds:function(e,n,r){var o=new t.Point(i(e),i(n)),a=new t.Point(s(e),s(n)),c=o.y||0,l=o.x||0,h=a.x-o.x||0,d=a.y-o.y||0;this.width=h,this.height=d,r||this.setPositionByOrigin({x:l,y:c},"left","top")},_toSVG:function(e){for(var t=["<g ","COMMON_PARTS"," >\n"],i=0,s=this._objects.length;i<s;i++)t.push("\t\t",this._objects[i].toSVG(e));return t.push("</g>\n"),t},getSvgStyles:function(){var e="undefined"!==typeof this.opacity&&1!==this.opacity?"opacity: "+this.opacity+";":"",t=this.visible?"":" visibility: hidden;";return[e,this.getSvgFilter(),t].join("")},toClipPathSVG:function(e){for(var t=[],i=0,s=this._objects.length;i<s;i++)t.push("\t",this._objects[i].toClipPathSVG(e));return this._createBaseClipPathSVGMarkup(t,{reviver:e})}}),t.Group.fromObject=function(e,i){var s=e.objects,n=t.util.object.clone(e,!0);delete n.objects,"string"!==typeof s?t.util.enlivenObjects(s,(function(s){t.util.enlivenObjectEnlivables(e,n,(function(){i&&i(new t.Group(s,n,!0))}))})):t.loadSVGFromURL(s,(function(r){var o=t.util.groupSVGElements(r,e,s),a=n.clipPath;delete n.clipPath,o.set(n),a?t.util.enlivenObjects([a],(function(e){o.clipPath=e[0],i&&i(o)})):i&&i(o)}))})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={});t.ActiveSelection||(t.ActiveSelection=t.util.createClass(t.Group,{type:"activeSelection",initialize:function(e,i){i=i||{},this._objects=e||[];for(var s=this._objects.length;s--;)this._objects[s].group=this;i.originX&&(this.originX=i.originX),i.originY&&(this.originY=i.originY),this._calcBounds(),this._updateObjectsCoords(),t.Object.prototype.initialize.call(this,i),this.setCoords()},toGroup:function(){var e=this._objects.concat();this._objects=[];var i=t.Object.prototype.toObject.call(this),s=new t.Group([]);if(delete i.type,s.set(i),e.forEach((function(e){e.canvas.remove(e),e.group=s})),s._objects=e,!this.canvas)return s;var n=this.canvas;return n.add(s),n._activeObject=s,s.setCoords(),s},onDeselect:function(){return this.destroy(),!1},toString:function(){return"#<fabric.ActiveSelection: ("+this.complexity()+")>"},shouldCache:function(){return!1},isOnACache:function(){return!1},_renderControls:function(e,t,i){e.save(),e.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1,"undefined"===typeof(i=i||{}).hasControls&&(i.hasControls=!1),i.forActiveSelection=!0;for(var s=0,n=this._objects.length;s<n;s++)this._objects[s]._renderControls(e,i);this.callSuper("_renderControls",e,t),e.restore()}}),t.ActiveSelection.fromObject=function(e,i){t.util.enlivenObjects(e.objects,(function(s){delete e.objects,i&&i(new t.ActiveSelection(s,e,!0))}))})}(t),function(e){"use strict";var t=n.util.object.extend;e.fabric||(e.fabric={}),e.fabric.Image?n.warn("fabric.Image is already defined."):(n.Image=n.util.createClass(n.Object,{type:"image",strokeWidth:0,srcFromAttribute:!1,_lastScaleX:1,_lastScaleY:1,_filterScalingX:1,_filterScalingY:1,minimumScaleTrigger:.5,stateProperties:n.Object.prototype.stateProperties.concat("cropX","cropY"),cacheProperties:n.Object.prototype.cacheProperties.concat("cropX","cropY"),cacheKey:"",cropX:0,cropY:0,imageSmoothing:!0,initialize:function(e,t){t||(t={}),this.filters=[],this.cacheKey="texture"+n.Object.__uid++,this.callSuper("initialize",t),this._initElement(e,t)},getElement:function(){return this._element||{}},setElement:function(e,t){return this.removeTexture(this.cacheKey),this.removeTexture(this.cacheKey+"_filtered"),this._element=e,this._originalElement=e,this._initConfig(t),0!==this.filters.length&&this.applyFilters(),this.resizeFilter&&this.applyResizeFilters(),this},removeTexture:function(e){var t=n.filterBackend;t&&t.evictCachesForKey&&t.evictCachesForKey(e)},dispose:function(){this.callSuper("dispose"),this.removeTexture(this.cacheKey),this.removeTexture(this.cacheKey+"_filtered"),this._cacheContext=void 0,["_originalElement","_element","_filteredEl","_cacheCanvas"].forEach(function(e){n.util.cleanUpJsdomNode(this[e]),this[e]=void 0}.bind(this))},getCrossOrigin:function(){return this._originalElement&&(this._originalElement.crossOrigin||null)},getOriginalSize:function(){var e=this.getElement();return{width:e.naturalWidth||e.width,height:e.naturalHeight||e.height}},_stroke:function(e){if(this.stroke&&0!==this.strokeWidth){var t=this.width/2,i=this.height/2;e.beginPath(),e.moveTo(-t,-i),e.lineTo(t,-i),e.lineTo(t,i),e.lineTo(-t,i),e.lineTo(-t,-i),e.closePath()}},toObject:function(e){var i=[];this.filters.forEach((function(e){e&&i.push(e.toObject())}));var s=t(this.callSuper("toObject",["cropX","cropY"].concat(e)),{src:this.getSrc(),crossOrigin:this.getCrossOrigin(),filters:i});return this.resizeFilter&&(s.resizeFilter=this.resizeFilter.toObject()),s},hasCrop:function(){return this.cropX||this.cropY||this.width<this._element.width||this.height<this._element.height},_toSVG:function(){var e,t=[],i=[],s=this._element,r=-this.width/2,o=-this.height/2,a="",c="";if(!s)return[];if(this.hasCrop()){var l=n.Object.__uid++;t.push('<clipPath id="imageCrop_'+l+'">\n','\t<rect x="'+r+'" y="'+o+'" width="'+this.width+'" height="'+this.height+'" />\n',"</clipPath>\n"),a=' clip-path="url(#imageCrop_'+l+')" '}if(this.imageSmoothing||(c='" image-rendering="optimizeSpeed'),i.push("\t<image ","COMMON_PARTS",'xlink:href="',this.getSvgSrc(!0),'" x="',r-this.cropX,'" y="',o-this.cropY,'" width="',s.width||s.naturalWidth,'" height="',s.height||s.height,c,'"',a,"></image>\n"),this.stroke||this.strokeDashArray){var h=this.fill;this.fill=null,e=["\t<rect ",'x="',r,'" y="',o,'" width="',this.width,'" height="',this.height,'" style="',this.getSvgStyles(),'"/>\n'],this.fill=h}return t="fill"!==this.paintFirst?t.concat(e,i):t.concat(i,e)},getSrc:function(e){var t=e?this._element:this._originalElement;return t?t.toDataURL?t.toDataURL():this.srcFromAttribute?t.getAttribute("src"):t.src:this.src||""},setSrc:function(e,t,i){return n.util.loadImage(e,(function(e,s){this.setElement(e,i),this._setWidthHeight(),t&&t(this,s)}),this,i&&i.crossOrigin),this},toString:function(){return'#<fabric.Image: { src: "'+this.getSrc()+'" }>'},applyResizeFilters:function(){var e=this.resizeFilter,t=this.minimumScaleTrigger,i=this.getTotalObjectScaling(),s=i.scaleX,r=i.scaleY,o=this._filteredEl||this._originalElement;if(this.group&&this.set("dirty",!0),!e||s>t&&r>t)return this._element=o,this._filterScalingX=1,this._filterScalingY=1,this._lastScaleX=s,void(this._lastScaleY=r);n.filterBackend||(n.filterBackend=n.initFilterBackend());var a=n.util.createCanvasElement(),c=this._filteredEl?this.cacheKey+"_filtered":this.cacheKey,l=o.width,h=o.height;a.width=l,a.height=h,this._element=a,this._lastScaleX=e.scaleX=s,this._lastScaleY=e.scaleY=r,n.filterBackend.applyFilters([e],o,l,h,this._element,c),this._filterScalingX=a.width/this._originalElement.width,this._filterScalingY=a.height/this._originalElement.height},applyFilters:function(e){if(e=(e=e||this.filters||[]).filter((function(e){return e&&!e.isNeutralState()})),this.set("dirty",!0),this.removeTexture(this.cacheKey+"_filtered"),0===e.length)return this._element=this._originalElement,this._filteredEl=null,this._filterScalingX=1,this._filterScalingY=1,this;var t=this._originalElement,i=t.naturalWidth||t.width,s=t.naturalHeight||t.height;if(this._element===this._originalElement){var r=n.util.createCanvasElement();r.width=i,r.height=s,this._element=r,this._filteredEl=r}else this._element=this._filteredEl,this._filteredEl.getContext("2d").clearRect(0,0,i,s),this._lastScaleX=1,this._lastScaleY=1;return n.filterBackend||(n.filterBackend=n.initFilterBackend()),n.filterBackend.applyFilters(e,this._originalElement,i,s,this._element,this.cacheKey),this._originalElement.width===this._element.width&&this._originalElement.height===this._element.height||(this._filterScalingX=this._element.width/this._originalElement.width,this._filterScalingY=this._element.height/this._originalElement.height),this},_render:function(e){n.util.setImageSmoothing(e,this.imageSmoothing),!0!==this.isMoving&&this.resizeFilter&&this._needsResize()&&this.applyResizeFilters(),this._stroke(e),this._renderPaintInOrder(e)},drawCacheOnCanvas:function(e){n.util.setImageSmoothing(e,this.imageSmoothing),n.Object.prototype.drawCacheOnCanvas.call(this,e)},shouldCache:function(){return this.needsItsOwnCache()},_renderFill:function(e){var t=this._element;if(t){var i=this._filterScalingX,s=this._filterScalingY,n=this.width,r=this.height,o=Math.min,a=Math.max,c=a(this.cropX,0),l=a(this.cropY,0),h=t.naturalWidth||t.width,d=t.naturalHeight||t.height,u=c*i,g=l*s,p=o(n*i,h-u),m=o(r*s,d-g),f=-n/2,_=-r/2,v=o(n,h/i-c),C=o(r,d/s-l);t&&e.drawImage(t,u,g,p,m,f,_,v,C)}},_needsResize:function(){var e=this.getTotalObjectScaling();return e.scaleX!==this._lastScaleX||e.scaleY!==this._lastScaleY},_resetWidthHeight:function(){this.set(this.getOriginalSize())},_initElement:function(e,t){this.setElement(n.util.getById(e),t),n.util.addClass(this.getElement(),n.Image.CSS_CANVAS)},_initConfig:function(e){e||(e={}),this.setOptions(e),this._setWidthHeight(e)},_initFilters:function(e,t){e&&e.length?n.util.enlivenObjects(e,(function(e){t&&t(e)}),"fabric.Image.filters"):t&&t()},_setWidthHeight:function(e){e||(e={});var t=this.getElement();this.width=e.width||t.naturalWidth||t.width||0,this.height=e.height||t.naturalHeight||t.height||0},parsePreserveAspectRatioAttribute:function(){var e,t=n.util.parsePreserveAspectRatioAttribute(this.preserveAspectRatio||""),i=this._element.width,s=this._element.height,r=1,o=1,a=0,c=0,l=0,h=0,d=this.width,u=this.height,g={width:d,height:u};return!t||"none"===t.alignX&&"none"===t.alignY?(r=d/i,o=u/s):("meet"===t.meetOrSlice&&(e=(d-i*(r=o=n.util.findScaleToFit(this._element,g)))/2,"Min"===t.alignX&&(a=-e),"Max"===t.alignX&&(a=e),e=(u-s*o)/2,"Min"===t.alignY&&(c=-e),"Max"===t.alignY&&(c=e)),"slice"===t.meetOrSlice&&(e=i-d/(r=o=n.util.findScaleToCover(this._element,g)),"Mid"===t.alignX&&(l=e/2),"Max"===t.alignX&&(l=e),e=s-u/o,"Mid"===t.alignY&&(h=e/2),"Max"===t.alignY&&(h=e),i=d/r,s=u/o)),{width:i,height:s,scaleX:r,scaleY:o,offsetLeft:a,offsetTop:c,cropX:l,cropY:h}}}),n.Image.CSS_CANVAS="canvas-img",n.Image.prototype.getSvgSrc=n.Image.prototype.getSrc,n.Image.fromObject=function(e,t){var i=n.util.object.clone(e);n.util.loadImage(i.src,(function(e,s){s?t&&t(null,!0):n.Image.prototype._initFilters.call(i,i.filters,(function(s){i.filters=s||[],n.Image.prototype._initFilters.call(i,[i.resizeFilter],(function(s){i.resizeFilter=s[0],n.util.enlivenObjectEnlivables(i,i,(function(){var s=new n.Image(e,i);t(s,!1)}))}))}))}),null,i.crossOrigin)},n.Image.fromURL=function(e,t,i){n.util.loadImage(e,(function(e,s){t&&t(new n.Image(e,i),s)}),null,i&&i.crossOrigin)},n.Image.ATTRIBUTE_NAMES=n.SHARED_ATTRIBUTES.concat("x y width height preserveAspectRatio xlink:href crossOrigin image-rendering".split(" ")),n.Image.fromElement=function(e,i,s){var r=n.parseAttributes(e,n.Image.ATTRIBUTE_NAMES);n.Image.fromURL(r["xlink:href"],i,t(s?n.util.object.clone(s):{},r))})}(t),n.util.object.extend(n.Object.prototype,{_getAngleValueForStraighten:function(){var e=this.angle%360;return e>0?90*Math.round((e-1)/90):90*Math.round(e/90)},straighten:function(){return this.rotate(this._getAngleValueForStraighten())},fxStraighten:function(e){var t=function(){},i=(e=e||{}).onComplete||t,s=e.onChange||t,r=this;return n.util.animate({target:this,startValue:this.get("angle"),endValue:this._getAngleValueForStraighten(),duration:this.FX_DURATION,onChange:function(e){r.rotate(e),s()},onComplete:function(){r.setCoords(),i()}})}}),n.util.object.extend(n.StaticCanvas.prototype,{straightenObject:function(e){return e.straighten(),this.requestRenderAll(),this},fxStraightenObject:function(e){return e.fxStraighten({onChange:this.requestRenderAllBound})}}),function(){"use strict";function e(e,t){var i="precision "+t+" float;\nvoid main(){}",s=e.createShader(e.FRAGMENT_SHADER);return e.shaderSource(s,i),e.compileShader(s),!!e.getShaderParameter(s,e.COMPILE_STATUS)}function t(e){e&&e.tileSize&&(this.tileSize=e.tileSize),this.setupGLContext(this.tileSize,this.tileSize),this.captureGPUInfo()}n.isWebglSupported=function(t){if(n.isLikelyNode)return!1;t=t||n.WebglFilterBackend.prototype.tileSize;var i=document.createElement("canvas"),s=i.getContext("webgl")||i.getContext("experimental-webgl"),r=!1;if(s){n.maxTextureSize=s.getParameter(s.MAX_TEXTURE_SIZE),r=n.maxTextureSize>=t;for(var o=["highp","mediump","lowp"],a=0;a<3;a++)if(e(s,o[a])){n.webGlPrecision=o[a];break}}return this.isSupported=r,r},n.WebglFilterBackend=t,t.prototype={tileSize:2048,resources:{},setupGLContext:function(e,t){this.dispose(),this.createWebGLCanvas(e,t),this.aPosition=new Float32Array([0,0,0,1,1,0,1,1]),this.chooseFastestCopyGLTo2DMethod(e,t)},chooseFastestCopyGLTo2DMethod:function(e,t){var i,s="undefined"!==typeof window.performance;try{new ImageData(1,1),i=!0}catch(p){i=!1}var r="undefined"!==typeof ArrayBuffer,c="undefined"!==typeof Uint8ClampedArray;if(s&&i&&r&&c){var l=n.util.createCanvasElement(),h=new ArrayBuffer(e*t*4);if(n.forceGLPutImageData)return this.imageBuffer=h,void(this.copyGLTo2D=a);var d,u,g={imageBuffer:h,destinationWidth:e,destinationHeight:t,targetCanvas:l};l.width=e,l.height=t,d=window.performance.now(),o.call(g,this.gl,g),u=window.performance.now()-d,d=window.performance.now(),a.call(g,this.gl,g),u>window.performance.now()-d?(this.imageBuffer=h,this.copyGLTo2D=a):this.copyGLTo2D=o}},createWebGLCanvas:function(e,t){var i=n.util.createCanvasElement();i.width=e,i.height=t;var s={alpha:!0,premultipliedAlpha:!1,depth:!1,stencil:!1,antialias:!1},r=i.getContext("webgl",s);r||(r=i.getContext("experimental-webgl",s)),r&&(r.clearColor(0,0,0,0),this.canvas=i,this.gl=r)},applyFilters:function(e,t,i,s,n,r){var o,a=this.gl;r&&(o=this.getCachedTexture(r,t));var c={originalWidth:t.width||t.originalWidth,originalHeight:t.height||t.originalHeight,sourceWidth:i,sourceHeight:s,destinationWidth:i,destinationHeight:s,context:a,sourceTexture:this.createTexture(a,i,s,!o&&t),targetTexture:this.createTexture(a,i,s),originalTexture:o||this.createTexture(a,i,s,!o&&t),passes:e.length,webgl:!0,aPosition:this.aPosition,programCache:this.programCache,pass:0,filterBackend:this,targetCanvas:n},l=a.createFramebuffer();return a.bindFramebuffer(a.FRAMEBUFFER,l),e.forEach((function(e){e&&e.applyTo(c)})),function(e){var t=e.targetCanvas,i=t.width,s=t.height,n=e.destinationWidth,r=e.destinationHeight;i===n&&s===r||(t.width=n,t.height=r)}(c),this.copyGLTo2D(a,c),a.bindTexture(a.TEXTURE_2D,null),a.deleteTexture(c.sourceTexture),a.deleteTexture(c.targetTexture),a.deleteFramebuffer(l),n.getContext("2d").setTransform(1,0,0,1,0,0),c},dispose:function(){this.canvas&&(this.canvas=null,this.gl=null),this.clearWebGLCaches()},clearWebGLCaches:function(){this.programCache={},this.textureCache={}},createTexture:function(e,t,i,s,n){var r=e.createTexture();return e.bindTexture(e.TEXTURE_2D,r),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,n||e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,n||e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),s?e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,s):e.texImage2D(e.TEXTURE_2D,0,e.RGBA,t,i,0,e.RGBA,e.UNSIGNED_BYTE,null),r},getCachedTexture:function(e,t){if(this.textureCache[e])return this.textureCache[e];var i=this.createTexture(this.gl,t.width,t.height,t);return this.textureCache[e]=i,i},evictCachesForKey:function(e){this.textureCache[e]&&(this.gl.deleteTexture(this.textureCache[e]),delete this.textureCache[e])},copyGLTo2D:o,captureGPUInfo:function(){if(this.gpuInfo)return this.gpuInfo;var e=this.gl,t={renderer:"",vendor:""};if(!e)return t;var i=e.getExtension("WEBGL_debug_renderer_info");if(i){var s=e.getParameter(i.UNMASKED_RENDERER_WEBGL),n=e.getParameter(i.UNMASKED_VENDOR_WEBGL);s&&(t.renderer=s.toLowerCase()),n&&(t.vendor=n.toLowerCase())}return this.gpuInfo=t,t}}}(),function(){"use strict";var e=function(){};function t(){}n.Canvas2dFilterBackend=t,t.prototype={evictCachesForKey:e,dispose:e,clearWebGLCaches:e,resources:{},applyFilters:function(e,t,i,s,n){var r=n.getContext("2d");r.drawImage(t,0,0,i,s);var o={sourceWidth:i,sourceHeight:s,imageData:r.getImageData(0,0,i,s),originalEl:t,originalImageData:r.getImageData(0,0,i,s),canvasEl:n,ctx:r,filterBackend:this};return e.forEach((function(e){e.applyTo(o)})),o.imageData.width===i&&o.imageData.height===s||(n.width=o.imageData.width,n.height=o.imageData.height),r.putImageData(o.imageData,0,0),o}}}(),n.Image=n.Image||{},n.Image.filters=n.Image.filters||{},n.Image.filters.BaseFilter=n.util.createClass({type:"BaseFilter",vertexSource:"attribute vec2 aPosition;\nvarying vec2 vTexCoord;\nvoid main() {\nvTexCoord = aPosition;\ngl_Position = vec4(aPosition * 2.0 - 1.0, 0.0, 1.0);\n}",fragmentSource:"precision highp float;\nvarying vec2 vTexCoord;\nuniform sampler2D uTexture;\nvoid main() {\ngl_FragColor = texture2D(uTexture, vTexCoord);\n}",initialize:function(e){e&&this.setOptions(e)},setOptions:function(e){for(var t in e)this[t]=e[t]},createProgram:function(e,t,i){t=t||this.fragmentSource,i=i||this.vertexSource,"highp"!==n.webGlPrecision&&(t=t.replace(/precision highp float/g,"precision "+n.webGlPrecision+" float"));var s=e.createShader(e.VERTEX_SHADER);if(e.shaderSource(s,i),e.compileShader(s),!e.getShaderParameter(s,e.COMPILE_STATUS))throw new Error("Vertex shader compile error for "+this.type+": "+e.getShaderInfoLog(s));var r=e.createShader(e.FRAGMENT_SHADER);if(e.shaderSource(r,t),e.compileShader(r),!e.getShaderParameter(r,e.COMPILE_STATUS))throw new Error("Fragment shader compile error for "+this.type+": "+e.getShaderInfoLog(r));var o=e.createProgram();if(e.attachShader(o,s),e.attachShader(o,r),e.linkProgram(o),!e.getProgramParameter(o,e.LINK_STATUS))throw new Error('Shader link error for "${this.type}" '+e.getProgramInfoLog(o));var a=this.getAttributeLocations(e,o),c=this.getUniformLocations(e,o)||{};return c.uStepW=e.getUniformLocation(o,"uStepW"),c.uStepH=e.getUniformLocation(o,"uStepH"),{program:o,attributeLocations:a,uniformLocations:c}},getAttributeLocations:function(e,t){return{aPosition:e.getAttribLocation(t,"aPosition")}},getUniformLocations:function(){return{}},sendAttributeData:function(e,t,i){var s=t.aPosition,n=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,n),e.enableVertexAttribArray(s),e.vertexAttribPointer(s,2,e.FLOAT,!1,0,0),e.bufferData(e.ARRAY_BUFFER,i,e.STATIC_DRAW)},_setupFrameBuffer:function(e){var t,i,s=e.context;e.passes>1?(t=e.destinationWidth,i=e.destinationHeight,e.sourceWidth===t&&e.sourceHeight===i||(s.deleteTexture(e.targetTexture),e.targetTexture=e.filterBackend.createTexture(s,t,i)),s.framebufferTexture2D(s.FRAMEBUFFER,s.COLOR_ATTACHMENT0,s.TEXTURE_2D,e.targetTexture,0)):(s.bindFramebuffer(s.FRAMEBUFFER,null),s.finish())},_swapTextures:function(e){e.passes--,e.pass++;var t=e.targetTexture;e.targetTexture=e.sourceTexture,e.sourceTexture=t},isNeutralState:function(){var e=this.mainParameter,t=n.Image.filters[this.type].prototype;if(e){if(Array.isArray(t[e])){for(var i=t[e].length;i--;)if(this[e][i]!==t[e][i])return!1;return!0}return t[e]===this[e]}return!1},applyTo:function(e){e.webgl?(this._setupFrameBuffer(e),this.applyToWebGL(e),this._swapTextures(e)):this.applyTo2d(e)},retrieveShader:function(e){return e.programCache.hasOwnProperty(this.type)||(e.programCache[this.type]=this.createProgram(e.context)),e.programCache[this.type]},applyToWebGL:function(e){var t=e.context,i=this.retrieveShader(e);0===e.pass&&e.originalTexture?t.bindTexture(t.TEXTURE_2D,e.originalTexture):t.bindTexture(t.TEXTURE_2D,e.sourceTexture),t.useProgram(i.program),this.sendAttributeData(t,i.attributeLocations,e.aPosition),t.uniform1f(i.uniformLocations.uStepW,1/e.sourceWidth),t.uniform1f(i.uniformLocations.uStepH,1/e.sourceHeight),this.sendUniformData(t,i.uniformLocations),t.viewport(0,0,e.destinationWidth,e.destinationHeight),t.drawArrays(t.TRIANGLE_STRIP,0,4)},bindAdditionalTexture:function(e,t,i){e.activeTexture(i),e.bindTexture(e.TEXTURE_2D,t),e.activeTexture(e.TEXTURE0)},unbindAdditionalTexture:function(e,t){e.activeTexture(t),e.bindTexture(e.TEXTURE_2D,null),e.activeTexture(e.TEXTURE0)},getMainParameter:function(){return this[this.mainParameter]},setMainParameter:function(e){this[this.mainParameter]=e},sendUniformData:function(){},createHelpLayer:function(e){if(!e.helpLayer){var t=document.createElement("canvas");t.width=e.sourceWidth,t.height=e.sourceHeight,e.helpLayer=t}},toObject:function(){var e={type:this.type},t=this.mainParameter;return t&&(e[t]=this[t]),e},toJSON:function(){return this.toObject()}}),n.Image.filters.BaseFilter.fromObject=function(e,t){var i=new n.Image.filters[e.type](e);return t&&t(i),i},function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.ColorMatrix=s(i.BaseFilter,{type:"ColorMatrix",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nvarying vec2 vTexCoord;\nuniform mat4 uColorMatrix;\nuniform vec4 uConstants;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\ncolor *= uColorMatrix;\ncolor += uConstants;\ngl_FragColor = color;\n}",matrix:[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],mainParameter:"matrix",colorsOnly:!0,initialize:function(e){this.callSuper("initialize",e),this.matrix=this.matrix.slice(0)},applyTo2d:function(e){var t,i,s,n,r,o=e.imageData.data,a=o.length,c=this.matrix,l=this.colorsOnly;for(r=0;r<a;r+=4)t=o[r],i=o[r+1],s=o[r+2],l?(o[r]=t*c[0]+i*c[1]+s*c[2]+255*c[4],o[r+1]=t*c[5]+i*c[6]+s*c[7]+255*c[9],o[r+2]=t*c[10]+i*c[11]+s*c[12]+255*c[14]):(n=o[r+3],o[r]=t*c[0]+i*c[1]+s*c[2]+n*c[3]+255*c[4],o[r+1]=t*c[5]+i*c[6]+s*c[7]+n*c[8]+255*c[9],o[r+2]=t*c[10]+i*c[11]+s*c[12]+n*c[13]+255*c[14],o[r+3]=t*c[15]+i*c[16]+s*c[17]+n*c[18]+255*c[19])},getUniformLocations:function(e,t){return{uColorMatrix:e.getUniformLocation(t,"uColorMatrix"),uConstants:e.getUniformLocation(t,"uConstants")}},sendUniformData:function(e,t){var i=this.matrix,s=[i[0],i[1],i[2],i[3],i[5],i[6],i[7],i[8],i[10],i[11],i[12],i[13],i[15],i[16],i[17],i[18]],n=[i[4],i[9],i[14],i[19]];e.uniformMatrix4fv(t.uColorMatrix,!1,s),e.uniform4fv(t.uConstants,n)}}),t.Image.filters.ColorMatrix.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.Brightness=s(i.BaseFilter,{type:"Brightness",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uBrightness;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\ncolor.rgb += uBrightness;\ngl_FragColor = color;\n}",brightness:0,mainParameter:"brightness",applyTo2d:function(e){if(0!==this.brightness){var t,i=e.imageData.data,s=i.length,n=Math.round(255*this.brightness);for(t=0;t<s;t+=4)i[t]=i[t]+n,i[t+1]=i[t+1]+n,i[t+2]=i[t+2]+n}},getUniformLocations:function(e,t){return{uBrightness:e.getUniformLocation(t,"uBrightness")}},sendUniformData:function(e,t){e.uniform1f(t.uBrightness,this.brightness)}}),t.Image.filters.Brightness.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,s=t.Image.filters,n=t.util.createClass;s.Convolute=n(s.BaseFilter,{type:"Convolute",opaque:!1,matrix:[0,0,0,0,1,0,0,0,0],fragmentSource:{Convolute_3_1:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[9];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 0);\nfor (float h = 0.0; h < 3.0; h+=1.0) {\nfor (float w = 0.0; w < 3.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 1), uStepH * (h - 1));\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 3.0 + w)];\n}\n}\ngl_FragColor = color;\n}",Convolute_3_0:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[9];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 1);\nfor (float h = 0.0; h < 3.0; h+=1.0) {\nfor (float w = 0.0; w < 3.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 1.0), uStepH * (h - 1.0));\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 3.0 + w)];\n}\n}\nfloat alpha = texture2D(uTexture, vTexCoord).a;\ngl_FragColor = color;\ngl_FragColor.a = alpha;\n}",Convolute_5_1:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[25];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 0);\nfor (float h = 0.0; h < 5.0; h+=1.0) {\nfor (float w = 0.0; w < 5.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 2.0), uStepH * (h - 2.0));\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 5.0 + w)];\n}\n}\ngl_FragColor = color;\n}",Convolute_5_0:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[25];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 1);\nfor (float h = 0.0; h < 5.0; h+=1.0) {\nfor (float w = 0.0; w < 5.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 2.0), uStepH * (h - 2.0));\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 5.0 + w)];\n}\n}\nfloat alpha = texture2D(uTexture, vTexCoord).a;\ngl_FragColor = color;\ngl_FragColor.a = alpha;\n}",Convolute_7_1:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[49];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 0);\nfor (float h = 0.0; h < 7.0; h+=1.0) {\nfor (float w = 0.0; w < 7.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 3.0), uStepH * (h - 3.0));\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 7.0 + w)];\n}\n}\ngl_FragColor = color;\n}",Convolute_7_0:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[49];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 1);\nfor (float h = 0.0; h < 7.0; h+=1.0) {\nfor (float w = 0.0; w < 7.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 3.0), uStepH * (h - 3.0));\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 7.0 + w)];\n}\n}\nfloat alpha = texture2D(uTexture, vTexCoord).a;\ngl_FragColor = color;\ngl_FragColor.a = alpha;\n}",Convolute_9_1:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[81];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 0);\nfor (float h = 0.0; h < 9.0; h+=1.0) {\nfor (float w = 0.0; w < 9.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 4.0), uStepH * (h - 4.0));\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 9.0 + w)];\n}\n}\ngl_FragColor = color;\n}",Convolute_9_0:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[81];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 1);\nfor (float h = 0.0; h < 9.0; h+=1.0) {\nfor (float w = 0.0; w < 9.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 4.0), uStepH * (h - 4.0));\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 9.0 + w)];\n}\n}\nfloat alpha = texture2D(uTexture, vTexCoord).a;\ngl_FragColor = color;\ngl_FragColor.a = alpha;\n}"},retrieveShader:function(e){var t=Math.sqrt(this.matrix.length),i=this.type+"_"+t+"_"+(this.opaque?1:0),s=this.fragmentSource[i];return e.programCache.hasOwnProperty(i)||(e.programCache[i]=this.createProgram(e.context,s)),e.programCache[i]},applyTo2d:function(e){var t,i,s,n,r,o,a,c,l,h,d,u,g,p=e.imageData,m=p.data,f=this.matrix,_=Math.round(Math.sqrt(f.length)),v=Math.floor(_/2),C=p.width,E=p.height,b=e.ctx.createImageData(C,E),S=b.data,y=this.opaque?1:0;for(d=0;d<E;d++)for(h=0;h<C;h++){for(r=4*(d*C+h),t=0,i=0,s=0,n=0,g=0;g<_;g++)for(u=0;u<_;u++)o=h+u-v,(a=d+g-v)<0||a>=E||o<0||o>=C||(c=4*(a*C+o),l=f[g*_+u],t+=m[c]*l,i+=m[c+1]*l,s+=m[c+2]*l,y||(n+=m[c+3]*l));S[r]=t,S[r+1]=i,S[r+2]=s,S[r+3]=y?m[r+3]:n}e.imageData=b},getUniformLocations:function(e,t){return{uMatrix:e.getUniformLocation(t,"uMatrix"),uOpaque:e.getUniformLocation(t,"uOpaque"),uHalfSize:e.getUniformLocation(t,"uHalfSize"),uSize:e.getUniformLocation(t,"uSize")}},sendUniformData:function(e,t){e.uniform1fv(t.uMatrix,this.matrix)},toObject:function(){return i(this.callSuper("toObject"),{opaque:this.opaque,matrix:this.matrix})}}),t.Image.filters.Convolute.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.Grayscale=s(i.BaseFilter,{type:"Grayscale",fragmentSource:{average:"precision highp float;\nuniform sampler2D uTexture;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nfloat average = (color.r + color.b + color.g) / 3.0;\ngl_FragColor = vec4(average, average, average, color.a);\n}",lightness:"precision highp float;\nuniform sampler2D uTexture;\nuniform int uMode;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 col = texture2D(uTexture, vTexCoord);\nfloat average = (max(max(col.r, col.g),col.b) + min(min(col.r, col.g),col.b)) / 2.0;\ngl_FragColor = vec4(average, average, average, col.a);\n}",luminosity:"precision highp float;\nuniform sampler2D uTexture;\nuniform int uMode;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 col = texture2D(uTexture, vTexCoord);\nfloat average = 0.21 * col.r + 0.72 * col.g + 0.07 * col.b;\ngl_FragColor = vec4(average, average, average, col.a);\n}"},mode:"average",mainParameter:"mode",applyTo2d:function(e){var t,i,s=e.imageData.data,n=s.length,r=this.mode;for(t=0;t<n;t+=4)"average"===r?i=(s[t]+s[t+1]+s[t+2])/3:"lightness"===r?i=(Math.min(s[t],s[t+1],s[t+2])+Math.max(s[t],s[t+1],s[t+2]))/2:"luminosity"===r&&(i=.21*s[t]+.72*s[t+1]+.07*s[t+2]),s[t]=i,s[t+1]=i,s[t+2]=i},retrieveShader:function(e){var t=this.type+"_"+this.mode;if(!e.programCache.hasOwnProperty(t)){var i=this.fragmentSource[this.mode];e.programCache[t]=this.createProgram(e.context,i)}return e.programCache[t]},getUniformLocations:function(e,t){return{uMode:e.getUniformLocation(t,"uMode")}},sendUniformData:function(e,t){e.uniform1i(t.uMode,1)},isNeutralState:function(){return!1}}),t.Image.filters.Grayscale.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.Invert=s(i.BaseFilter,{type:"Invert",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform int uInvert;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nif (uInvert == 1) {\ngl_FragColor = vec4(1.0 - color.r,1.0 -color.g,1.0 -color.b,color.a);\n} else {\ngl_FragColor = color;\n}\n}",invert:!0,mainParameter:"invert",applyTo2d:function(e){var t,i=e.imageData.data,s=i.length;for(t=0;t<s;t+=4)i[t]=255-i[t],i[t+1]=255-i[t+1],i[t+2]=255-i[t+2]},isNeutralState:function(){return!this.invert},getUniformLocations:function(e,t){return{uInvert:e.getUniformLocation(t,"uInvert")}},sendUniformData:function(e,t){e.uniform1i(t.uInvert,this.invert)}}),t.Image.filters.Invert.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,s=t.Image.filters,n=t.util.createClass;s.Noise=n(s.BaseFilter,{type:"Noise",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uStepH;\nuniform float uNoise;\nuniform float uSeed;\nvarying vec2 vTexCoord;\nfloat rand(vec2 co, float seed, float vScale) {\nreturn fract(sin(dot(co.xy * vScale ,vec2(12.9898 , 78.233))) * 43758.5453 * (seed + 0.01) / 2.0);\n}\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\ncolor.rgb += (0.5 - rand(vTexCoord, uSeed, 0.1 / uStepH)) * uNoise;\ngl_FragColor = color;\n}",mainParameter:"noise",noise:0,applyTo2d:function(e){if(0!==this.noise){var t,i,s=e.imageData.data,n=s.length,r=this.noise;for(t=0,n=s.length;t<n;t+=4)i=(.5-Math.random())*r,s[t]+=i,s[t+1]+=i,s[t+2]+=i}},getUniformLocations:function(e,t){return{uNoise:e.getUniformLocation(t,"uNoise"),uSeed:e.getUniformLocation(t,"uSeed")}},sendUniformData:function(e,t){e.uniform1f(t.uNoise,this.noise/255),e.uniform1f(t.uSeed,Math.random())},toObject:function(){return i(this.callSuper("toObject"),{noise:this.noise})}}),t.Image.filters.Noise.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.Pixelate=s(i.BaseFilter,{type:"Pixelate",blocksize:4,mainParameter:"blocksize",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uBlocksize;\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nfloat blockW = uBlocksize * uStepW;\nfloat blockH = uBlocksize * uStepW;\nint posX = int(vTexCoord.x / blockW);\nint posY = int(vTexCoord.y / blockH);\nfloat fposX = float(posX);\nfloat fposY = float(posY);\nvec2 squareCoords = vec2(fposX * blockW, fposY * blockH);\nvec4 color = texture2D(uTexture, squareCoords);\ngl_FragColor = color;\n}",applyTo2d:function(e){var t,i,s,n,r,o,a,c,l,h,d,u=e.imageData,g=u.data,p=u.height,m=u.width;for(i=0;i<p;i+=this.blocksize)for(s=0;s<m;s+=this.blocksize)for(n=g[t=4*i*m+4*s],r=g[t+1],o=g[t+2],a=g[t+3],h=Math.min(i+this.blocksize,p),d=Math.min(s+this.blocksize,m),c=i;c<h;c++)for(l=s;l<d;l++)g[t=4*c*m+4*l]=n,g[t+1]=r,g[t+2]=o,g[t+3]=a},isNeutralState:function(){return 1===this.blocksize},getUniformLocations:function(e,t){return{uBlocksize:e.getUniformLocation(t,"uBlocksize"),uStepW:e.getUniformLocation(t,"uStepW"),uStepH:e.getUniformLocation(t,"uStepH")}},sendUniformData:function(e,t){e.uniform1f(t.uBlocksize,this.blocksize)}}),t.Image.filters.Pixelate.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,s=t.Image.filters,n=t.util.createClass;s.RemoveColor=n(s.BaseFilter,{type:"RemoveColor",color:"#FFFFFF",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform vec4 uLow;\nuniform vec4 uHigh;\nvarying vec2 vTexCoord;\nvoid main() {\ngl_FragColor = texture2D(uTexture, vTexCoord);\nif(all(greaterThan(gl_FragColor.rgb,uLow.rgb)) && all(greaterThan(uHigh.rgb,gl_FragColor.rgb))) {\ngl_FragColor.a = 0.0;\n}\n}",distance:.02,useAlpha:!1,applyTo2d:function(e){var i,s,n,r,o=e.imageData.data,a=255*this.distance,c=new t.Color(this.color).getSource(),l=[c[0]-a,c[1]-a,c[2]-a],h=[c[0]+a,c[1]+a,c[2]+a];for(i=0;i<o.length;i+=4)s=o[i],n=o[i+1],r=o[i+2],s>l[0]&&n>l[1]&&r>l[2]&&s<h[0]&&n<h[1]&&r<h[2]&&(o[i+3]=0)},getUniformLocations:function(e,t){return{uLow:e.getUniformLocation(t,"uLow"),uHigh:e.getUniformLocation(t,"uHigh")}},sendUniformData:function(e,i){var s=new t.Color(this.color).getSource(),n=parseFloat(this.distance),r=[0+s[0]/255-n,0+s[1]/255-n,0+s[2]/255-n,1],o=[s[0]/255+n,s[1]/255+n,s[2]/255+n,1];e.uniform4fv(i.uLow,r),e.uniform4fv(i.uHigh,o)},toObject:function(){return i(this.callSuper("toObject"),{color:this.color,distance:this.distance})}}),t.Image.filters.RemoveColor.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass,n={Brownie:[.5997,.34553,-.27082,0,.186,-.0377,.86095,.15059,0,-.1449,.24113,-.07441,.44972,0,-.02965,0,0,0,1,0],Vintage:[.62793,.32021,-.03965,0,.03784,.02578,.64411,.03259,0,.02926,.0466,-.08512,.52416,0,.02023,0,0,0,1,0],Kodachrome:[1.12855,-.39673,-.03992,0,.24991,-.16404,1.08352,-.05498,0,.09698,-.16786,-.56034,1.60148,0,.13972,0,0,0,1,0],Technicolor:[1.91252,-.85453,-.09155,0,.04624,-.30878,1.76589,-.10601,0,-.27589,-.2311,-.75018,1.84759,0,.12137,0,0,0,1,0],Polaroid:[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0],Sepia:[.393,.769,.189,0,0,.349,.686,.168,0,0,.272,.534,.131,0,0,0,0,0,1,0],BlackWhite:[1.5,1.5,1.5,0,-1,1.5,1.5,1.5,0,-1,1.5,1.5,1.5,0,-1,0,0,0,1,0]};for(var r in n)i[r]=s(i.ColorMatrix,{type:r,matrix:n[r],mainParameter:!1,colorsOnly:!0}),t.Image.filters[r].fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric,i=t.Image.filters,s=t.util.createClass;i.BlendColor=s(i.BaseFilter,{type:"BlendColor",color:"#F95C63",mode:"multiply",alpha:1,fragmentSource:{multiply:"gl_FragColor.rgb *= uColor.rgb;\n",screen:"gl_FragColor.rgb = 1.0 - (1.0 - gl_FragColor.rgb) * (1.0 - uColor.rgb);\n",add:"gl_FragColor.rgb += uColor.rgb;\n",diff:"gl_FragColor.rgb = abs(gl_FragColor.rgb - uColor.rgb);\n",subtract:"gl_FragColor.rgb -= uColor.rgb;\n",lighten:"gl_FragColor.rgb = max(gl_FragColor.rgb, uColor.rgb);\n",darken:"gl_FragColor.rgb = min(gl_FragColor.rgb, uColor.rgb);\n",exclusion:"gl_FragColor.rgb += uColor.rgb - 2.0 * (uColor.rgb * gl_FragColor.rgb);\n",overlay:"if (uColor.r < 0.5) {\ngl_FragColor.r *= 2.0 * uColor.r;\n} else {\ngl_FragColor.r = 1.0 - 2.0 * (1.0 - gl_FragColor.r) * (1.0 - uColor.r);\n}\nif (uColor.g < 0.5) {\ngl_FragColor.g *= 2.0 * uColor.g;\n} else {\ngl_FragColor.g = 1.0 - 2.0 * (1.0 - gl_FragColor.g) * (1.0 - uColor.g);\n}\nif (uColor.b < 0.5) {\ngl_FragColor.b *= 2.0 * uColor.b;\n} else {\ngl_FragColor.b = 1.0 - 2.0 * (1.0 - gl_FragColor.b) * (1.0 - uColor.b);\n}\n",tint:"gl_FragColor.rgb *= (1.0 - uColor.a);\ngl_FragColor.rgb += uColor.rgb;\n"},buildSource:function(e){return"precision highp float;\nuniform sampler2D uTexture;\nuniform vec4 uColor;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\ngl_FragColor = color;\nif (color.a > 0.0) {\n"+this.fragmentSource[e]+"}\n}"},retrieveShader:function(e){var t,i=this.type+"_"+this.mode;return e.programCache.hasOwnProperty(i)||(t=this.buildSource(this.mode),e.programCache[i]=this.createProgram(e.context,t)),e.programCache[i]},applyTo2d:function(e){var i,s,n,r,o,a,c,l=e.imageData.data,h=l.length,d=1-this.alpha;i=(c=new t.Color(this.color).getSource())[0]*this.alpha,s=c[1]*this.alpha,n=c[2]*this.alpha;for(var u=0;u<h;u+=4)switch(r=l[u],o=l[u+1],a=l[u+2],this.mode){case"multiply":l[u]=r*i/255,l[u+1]=o*s/255,l[u+2]=a*n/255;break;case"screen":l[u]=255-(255-r)*(255-i)/255,l[u+1]=255-(255-o)*(255-s)/255,l[u+2]=255-(255-a)*(255-n)/255;break;case"add":l[u]=r+i,l[u+1]=o+s,l[u+2]=a+n;break;case"diff":case"difference":l[u]=Math.abs(r-i),l[u+1]=Math.abs(o-s),l[u+2]=Math.abs(a-n);break;case"subtract":l[u]=r-i,l[u+1]=o-s,l[u+2]=a-n;break;case"darken":l[u]=Math.min(r,i),l[u+1]=Math.min(o,s),l[u+2]=Math.min(a,n);break;case"lighten":l[u]=Math.max(r,i),l[u+1]=Math.max(o,s),l[u+2]=Math.max(a,n);break;case"overlay":l[u]=i<128?2*r*i/255:255-2*(255-r)*(255-i)/255,l[u+1]=s<128?2*o*s/255:255-2*(255-o)*(255-s)/255,l[u+2]=n<128?2*a*n/255:255-2*(255-a)*(255-n)/255;break;case"exclusion":l[u]=i+r-2*i*r/255,l[u+1]=s+o-2*s*o/255,l[u+2]=n+a-2*n*a/255;break;case"tint":l[u]=i+r*d,l[u+1]=s+o*d,l[u+2]=n+a*d}},getUniformLocations:function(e,t){return{uColor:e.getUniformLocation(t,"uColor")}},sendUniformData:function(e,i){var s=new t.Color(this.color).getSource();s[0]=this.alpha*s[0]/255,s[1]=this.alpha*s[1]/255,s[2]=this.alpha*s[2]/255,s[3]=this.alpha,e.uniform4fv(i.uColor,s)},toObject:function(){return{type:this.type,color:this.color,mode:this.mode,alpha:this.alpha}}}),t.Image.filters.BlendColor.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric,i=t.Image.filters,s=t.util.createClass;i.BlendImage=s(i.BaseFilter,{type:"BlendImage",image:null,mode:"multiply",alpha:1,vertexSource:"attribute vec2 aPosition;\nvarying vec2 vTexCoord;\nvarying vec2 vTexCoord2;\nuniform mat3 uTransformMatrix;\nvoid main() {\nvTexCoord = aPosition;\nvTexCoord2 = (uTransformMatrix * vec3(aPosition, 1.0)).xy;\ngl_Position = vec4(aPosition * 2.0 - 1.0, 0.0, 1.0);\n}",fragmentSource:{multiply:"precision highp float;\nuniform sampler2D uTexture;\nuniform sampler2D uImage;\nuniform vec4 uColor;\nvarying vec2 vTexCoord;\nvarying vec2 vTexCoord2;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nvec4 color2 = texture2D(uImage, vTexCoord2);\ncolor.rgba *= color2.rgba;\ngl_FragColor = color;\n}",mask:"precision highp float;\nuniform sampler2D uTexture;\nuniform sampler2D uImage;\nuniform vec4 uColor;\nvarying vec2 vTexCoord;\nvarying vec2 vTexCoord2;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nvec4 color2 = texture2D(uImage, vTexCoord2);\ncolor.a = color2.a;\ngl_FragColor = color;\n}"},retrieveShader:function(e){var t=this.type+"_"+this.mode,i=this.fragmentSource[this.mode];return e.programCache.hasOwnProperty(t)||(e.programCache[t]=this.createProgram(e.context,i)),e.programCache[t]},applyToWebGL:function(e){var t=e.context,i=this.createTexture(e.filterBackend,this.image);this.bindAdditionalTexture(t,i,t.TEXTURE1),this.callSuper("applyToWebGL",e),this.unbindAdditionalTexture(t,t.TEXTURE1)},createTexture:function(e,t){return e.getCachedTexture(t.cacheKey,t._element)},calculateMatrix:function(){var e=this.image,t=e._element.width,i=e._element.height;return[1/e.scaleX,0,0,0,1/e.scaleY,0,-e.left/t,-e.top/i,1]},applyTo2d:function(e){var i,s,n,r,o,a,c,l,h,d,u,g=e.imageData,p=e.filterBackend.resources,m=g.data,f=m.length,_=g.width,v=g.height,C=this.image;p.blendImage||(p.blendImage=t.util.createCanvasElement()),d=(h=p.blendImage).getContext("2d"),h.width!==_||h.height!==v?(h.width=_,h.height=v):d.clearRect(0,0,_,v),d.setTransform(C.scaleX,0,0,C.scaleY,C.left,C.top),d.drawImage(C._element,0,0,_,v),u=d.getImageData(0,0,_,v).data;for(var E=0;E<f;E+=4)switch(o=m[E],a=m[E+1],c=m[E+2],l=m[E+3],i=u[E],s=u[E+1],n=u[E+2],r=u[E+3],this.mode){case"multiply":m[E]=o*i/255,m[E+1]=a*s/255,m[E+2]=c*n/255,m[E+3]=l*r/255;break;case"mask":m[E+3]=r}},getUniformLocations:function(e,t){return{uTransformMatrix:e.getUniformLocation(t,"uTransformMatrix"),uImage:e.getUniformLocation(t,"uImage")}},sendUniformData:function(e,t){var i=this.calculateMatrix();e.uniform1i(t.uImage,1),e.uniformMatrix3fv(t.uTransformMatrix,!1,i)},toObject:function(){return{type:this.type,image:this.image&&this.image.toObject(),mode:this.mode,alpha:this.alpha}}}),t.Image.filters.BlendImage.fromObject=function(e,i){t.Image.fromObject(e.image,(function(s){var n=t.util.object.clone(e);n.image=s,i(new t.Image.filters.BlendImage(n))}))}}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=Math.pow,s=Math.floor,n=Math.sqrt,r=Math.abs,o=Math.round,a=Math.sin,c=Math.ceil,l=t.Image.filters,h=t.util.createClass;l.Resize=h(l.BaseFilter,{type:"Resize",resizeType:"hermite",scaleX:1,scaleY:1,lanczosLobes:3,getUniformLocations:function(e,t){return{uDelta:e.getUniformLocation(t,"uDelta"),uTaps:e.getUniformLocation(t,"uTaps")}},sendUniformData:function(e,t){e.uniform2fv(t.uDelta,this.horizontal?[1/this.width,0]:[0,1/this.height]),e.uniform1fv(t.uTaps,this.taps)},retrieveShader:function(e){var t=this.getFilterWindow(),i=this.type+"_"+t;if(!e.programCache.hasOwnProperty(i)){var s=this.generateShader(t);e.programCache[i]=this.createProgram(e.context,s)}return e.programCache[i]},getFilterWindow:function(){var e=this.tempScale;return Math.ceil(this.lanczosLobes/e)},getTaps:function(){for(var e=this.lanczosCreate(this.lanczosLobes),t=this.tempScale,i=this.getFilterWindow(),s=new Array(i),n=1;n<=i;n++)s[n-1]=e(n*t);return s},generateShader:function(e){for(var t=new Array(e),i=this.fragmentSourceTOP,s=1;s<=e;s++)t[s-1]=s+".0 * uDelta";return i+="uniform float uTaps["+e+"];\n",i+="void main() {\n",i+=" vec4 color = texture2D(uTexture, vTexCoord);\n",i+=" float sum = 1.0;\n",t.forEach((function(e,t){i+=" color += texture2D(uTexture, vTexCoord + "+e+") * uTaps["+t+"];\n",i+=" color += texture2D(uTexture, vTexCoord - "+e+") * uTaps["+t+"];\n",i+=" sum += 2.0 * uTaps["+t+"];\n"})),i+=" gl_FragColor = color / sum;\n",i+="}"},fragmentSourceTOP:"precision highp float;\nuniform sampler2D uTexture;\nuniform vec2 uDelta;\nvarying vec2 vTexCoord;\n",applyTo:function(e){e.webgl?(e.passes++,this.width=e.sourceWidth,this.horizontal=!0,this.dW=Math.round(this.width*this.scaleX),this.dH=e.sourceHeight,this.tempScale=this.dW/this.width,this.taps=this.getTaps(),e.destinationWidth=this.dW,this._setupFrameBuffer(e),this.applyToWebGL(e),this._swapTextures(e),e.sourceWidth=e.destinationWidth,this.height=e.sourceHeight,this.horizontal=!1,this.dH=Math.round(this.height*this.scaleY),this.tempScale=this.dH/this.height,this.taps=this.getTaps(),e.destinationHeight=this.dH,this._setupFrameBuffer(e),this.applyToWebGL(e),this._swapTextures(e),e.sourceHeight=e.destinationHeight):this.applyTo2d(e)},isNeutralState:function(){return 1===this.scaleX&&1===this.scaleY},lanczosCreate:function(e){return function(t){if(t>=e||t<=-e)return 0;if(t<1.1920929e-7&&t>-1.1920929e-7)return 1;var i=(t*=Math.PI)/e;return a(t)/t*a(i)/i}},applyTo2d:function(e){var t=e.imageData,i=this.scaleX,s=this.scaleY;this.rcpScaleX=1/i,this.rcpScaleY=1/s;var n,r=t.width,a=t.height,c=o(r*i),l=o(a*s);"sliceHack"===this.resizeType?n=this.sliceByTwo(e,r,a,c,l):"hermite"===this.resizeType?n=this.hermiteFastResize(e,r,a,c,l):"bilinear"===this.resizeType?n=this.bilinearFiltering(e,r,a,c,l):"lanczos"===this.resizeType&&(n=this.lanczosResize(e,r,a,c,l)),e.imageData=n},sliceByTwo:function(e,i,n,r,o){var a,c,l=e.imageData,h=.5,d=!1,u=!1,g=i*h,p=n*h,m=t.filterBackend.resources,f=0,_=0,v=i,C=0;for(m.sliceByTwo||(m.sliceByTwo=document.createElement("canvas")),((a=m.sliceByTwo).width<1.5*i||a.height<n)&&(a.width=1.5*i,a.height=n),(c=a.getContext("2d")).clearRect(0,0,1.5*i,n),c.putImageData(l,0,0),r=s(r),o=s(o);!d||!u;)i=g,n=p,r<s(g*h)?g=s(g*h):(g=r,d=!0),o<s(p*h)?p=s(p*h):(p=o,u=!0),c.drawImage(a,f,_,i,n,v,C,g,p),f=v,_=C,C+=p;return c.getImageData(f,_,r,o)},lanczosResize:function(e,t,o,a,l){var h=e.imageData.data,d=e.ctx.createImageData(a,l),u=d.data,g=this.lanczosCreate(this.lanczosLobes),p=this.rcpScaleX,m=this.rcpScaleY,f=2/this.rcpScaleX,_=2/this.rcpScaleY,v=c(p*this.lanczosLobes/2),C=c(m*this.lanczosLobes/2),E={},b={},S={};return function e(c){var y,w,R,L,T,x,k,A,N,I,O;for(b.x=(c+.5)*p,S.x=s(b.x),y=0;y<l;y++){for(b.y=(y+.5)*m,S.y=s(b.y),T=0,x=0,k=0,A=0,N=0,w=S.x-v;w<=S.x+v;w++)if(!(w<0||w>=t)){I=s(1e3*r(w-b.x)),E[I]||(E[I]={});for(var D=S.y-C;D<=S.y+C;D++)D<0||D>=o||(O=s(1e3*r(D-b.y)),E[I][O]||(E[I][O]=g(n(i(I*f,2)+i(O*_,2))/1e3)),(R=E[I][O])>0&&(T+=R,x+=R*h[L=4*(D*t+w)],k+=R*h[L+1],A+=R*h[L+2],N+=R*h[L+3]))}u[L=4*(y*a+c)]=x/T,u[L+1]=k/T,u[L+2]=A/T,u[L+3]=N/T}return++c<a?e(c):d}(0)},bilinearFiltering:function(e,t,i,n,r){var o,a,c,l,h,d,u,g,p,m=0,f=this.rcpScaleX,_=this.rcpScaleY,v=4*(t-1),C=e.imageData.data,E=e.ctx.createImageData(n,r),b=E.data;for(c=0;c<r;c++)for(l=0;l<n;l++)for(h=f*l-(o=s(f*l)),d=_*c-(a=s(_*c)),p=4*(a*t+o),u=0;u<4;u++)g=C[p+u]*(1-h)*(1-d)+C[p+4+u]*h*(1-d)+C[p+v+u]*d*(1-h)+C[p+v+4+u]*h*d,b[m++]=g;return E},hermiteFastResize:function(e,t,i,o,a){for(var l=this.rcpScaleX,h=this.rcpScaleY,d=c(l/2),u=c(h/2),g=e.imageData.data,p=e.ctx.createImageData(o,a),m=p.data,f=0;f<a;f++)for(var _=0;_<o;_++){for(var v=4*(_+f*o),C=0,E=0,b=0,S=0,y=0,w=0,R=0,L=(f+.5)*h,T=s(f*h);T<(f+1)*h;T++)for(var x=r(L-(T+.5))/u,k=(_+.5)*l,A=x*x,N=s(_*l);N<(_+1)*l;N++){var I=r(k-(N+.5))/d,O=n(A+I*I);O>1&&O<-1||(C=2*O*O*O-3*O*O+1)>0&&(R+=C*g[(I=4*(N+T*t))+3],b+=C,g[I+3]<255&&(C=C*g[I+3]/250),S+=C*g[I],y+=C*g[I+1],w+=C*g[I+2],E+=C)}m[v]=S/E,m[v+1]=y/E,m[v+2]=w/E,m[v+3]=R/b}return p},toObject:function(){return{type:this.type,scaleX:this.scaleX,scaleY:this.scaleY,resizeType:this.resizeType,lanczosLobes:this.lanczosLobes}}}),t.Image.filters.Resize.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.Contrast=s(i.BaseFilter,{type:"Contrast",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uContrast;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nfloat contrastF = 1.015 * (uContrast + 1.0) / (1.0 * (1.015 - uContrast));\ncolor.rgb = contrastF * (color.rgb - 0.5) + 0.5;\ngl_FragColor = color;\n}",contrast:0,mainParameter:"contrast",applyTo2d:function(e){if(0!==this.contrast){var t,i=e.imageData.data,s=i.length,n=Math.floor(255*this.contrast),r=259*(n+255)/(255*(259-n));for(t=0;t<s;t+=4)i[t]=r*(i[t]-128)+128,i[t+1]=r*(i[t+1]-128)+128,i[t+2]=r*(i[t+2]-128)+128}},getUniformLocations:function(e,t){return{uContrast:e.getUniformLocation(t,"uContrast")}},sendUniformData:function(e,t){e.uniform1f(t.uContrast,this.contrast)}}),t.Image.filters.Contrast.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.Saturation=s(i.BaseFilter,{type:"Saturation",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uSaturation;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nfloat rgMax = max(color.r, color.g);\nfloat rgbMax = max(rgMax, color.b);\ncolor.r += rgbMax != color.r ? (rgbMax - color.r) * uSaturation : 0.00;\ncolor.g += rgbMax != color.g ? (rgbMax - color.g) * uSaturation : 0.00;\ncolor.b += rgbMax != color.b ? (rgbMax - color.b) * uSaturation : 0.00;\ngl_FragColor = color;\n}",saturation:0,mainParameter:"saturation",applyTo2d:function(e){if(0!==this.saturation){var t,i,s=e.imageData.data,n=s.length,r=-this.saturation;for(t=0;t<n;t+=4)i=Math.max(s[t],s[t+1],s[t+2]),s[t]+=i!==s[t]?(i-s[t])*r:0,s[t+1]+=i!==s[t+1]?(i-s[t+1])*r:0,s[t+2]+=i!==s[t+2]?(i-s[t+2])*r:0}},getUniformLocations:function(e,t){return{uSaturation:e.getUniformLocation(t,"uSaturation")}},sendUniformData:function(e,t){e.uniform1f(t.uSaturation,-this.saturation)}}),t.Image.filters.Saturation.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.Vibrance=s(i.BaseFilter,{type:"Vibrance",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uVibrance;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nfloat max = max(color.r, max(color.g, color.b));\nfloat avg = (color.r + color.g + color.b) / 3.0;\nfloat amt = (abs(max - avg) * 2.0) * uVibrance;\ncolor.r += max != color.r ? (max - color.r) * amt : 0.00;\ncolor.g += max != color.g ? (max - color.g) * amt : 0.00;\ncolor.b += max != color.b ? (max - color.b) * amt : 0.00;\ngl_FragColor = color;\n}",vibrance:0,mainParameter:"vibrance",applyTo2d:function(e){if(0!==this.vibrance){var t,i,s,n,r=e.imageData.data,o=r.length,a=-this.vibrance;for(t=0;t<o;t+=4)i=Math.max(r[t],r[t+1],r[t+2]),s=(r[t]+r[t+1]+r[t+2])/3,n=2*Math.abs(i-s)/255*a,r[t]+=i!==r[t]?(i-r[t])*n:0,r[t+1]+=i!==r[t+1]?(i-r[t+1])*n:0,r[t+2]+=i!==r[t+2]?(i-r[t+2])*n:0}},getUniformLocations:function(e,t){return{uVibrance:e.getUniformLocation(t,"uVibrance")}},sendUniformData:function(e,t){e.uniform1f(t.uVibrance,-this.vibrance)}}),t.Image.filters.Vibrance.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.Blur=s(i.BaseFilter,{type:"Blur",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform vec2 uDelta;\nvarying vec2 vTexCoord;\nconst float nSamples = 15.0;\nvec3 v3offset = vec3(12.9898, 78.233, 151.7182);\nfloat random(vec3 scale) {\nreturn fract(sin(dot(gl_FragCoord.xyz, scale)) * 43758.5453);\n}\nvoid main() {\nvec4 color = vec4(0.0);\nfloat total = 0.0;\nfloat offset = random(v3offset);\nfor (float t = -nSamples; t <= nSamples; t++) {\nfloat percent = (t + offset - 0.5) / nSamples;\nfloat weight = 1.0 - abs(percent);\ncolor += texture2D(uTexture, vTexCoord + uDelta * percent) * weight;\ntotal += weight;\n}\ngl_FragColor = color / total;\n}",blur:0,mainParameter:"blur",applyTo:function(e){e.webgl?(this.aspectRatio=e.sourceWidth/e.sourceHeight,e.passes++,this._setupFrameBuffer(e),this.horizontal=!0,this.applyToWebGL(e),this._swapTextures(e),this._setupFrameBuffer(e),this.horizontal=!1,this.applyToWebGL(e),this._swapTextures(e)):this.applyTo2d(e)},applyTo2d:function(e){e.imageData=this.simpleBlur(e)},simpleBlur:function(e){var i,s,n=e.filterBackend.resources,r=e.imageData.width,o=e.imageData.height;n.blurLayer1||(n.blurLayer1=t.util.createCanvasElement(),n.blurLayer2=t.util.createCanvasElement()),i=n.blurLayer1,s=n.blurLayer2,i.width===r&&i.height===o||(s.width=i.width=r,s.height=i.height=o);var a,c,l,h,d=i.getContext("2d"),u=s.getContext("2d"),g=15,p=.06*this.blur*.5;for(d.putImageData(e.imageData,0,0),u.clearRect(0,0,r,o),h=-15;h<=g;h++)l=p*(c=h/g)*r+(a=(Math.random()-.5)/4),u.globalAlpha=1-Math.abs(c),u.drawImage(i,l,a),d.drawImage(s,0,0),u.globalAlpha=1,u.clearRect(0,0,s.width,s.height);for(h=-15;h<=g;h++)l=p*(c=h/g)*o+(a=(Math.random()-.5)/4),u.globalAlpha=1-Math.abs(c),u.drawImage(i,a,l),d.drawImage(s,0,0),u.globalAlpha=1,u.clearRect(0,0,s.width,s.height);e.ctx.drawImage(i,0,0);var m=e.ctx.getImageData(0,0,i.width,i.height);return d.globalAlpha=1,d.clearRect(0,0,i.width,i.height),m},getUniformLocations:function(e,t){return{delta:e.getUniformLocation(t,"uDelta")}},sendUniformData:function(e,t){var i=this.chooseRightDelta();e.uniform2fv(t.delta,i)},chooseRightDelta:function(){var e,t=1,i=[0,0];return this.horizontal?this.aspectRatio>1&&(t=1/this.aspectRatio):this.aspectRatio<1&&(t=this.aspectRatio),e=t*this.blur*.12,this.horizontal?i[0]=e:i[1]=e,i}}),i.Blur.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.Gamma=s(i.BaseFilter,{type:"Gamma",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform vec3 uGamma;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nvec3 correction = (1.0 / uGamma);\ncolor.r = pow(color.r, correction.r);\ncolor.g = pow(color.g, correction.g);\ncolor.b = pow(color.b, correction.b);\ngl_FragColor = color;\ngl_FragColor.rgb *= color.a;\n}",gamma:[1,1,1],mainParameter:"gamma",initialize:function(e){this.gamma=[1,1,1],i.BaseFilter.prototype.initialize.call(this,e)},applyTo2d:function(e){var t,i=e.imageData.data,s=this.gamma,n=i.length,r=1/s[0],o=1/s[1],a=1/s[2];for(this.rVals||(this.rVals=new Uint8Array(256),this.gVals=new Uint8Array(256),this.bVals=new Uint8Array(256)),t=0,n=256;t<n;t++)this.rVals[t]=255*Math.pow(t/255,r),this.gVals[t]=255*Math.pow(t/255,o),this.bVals[t]=255*Math.pow(t/255,a);for(t=0,n=i.length;t<n;t+=4)i[t]=this.rVals[i[t]],i[t+1]=this.gVals[i[t+1]],i[t+2]=this.bVals[i[t+2]]},getUniformLocations:function(e,t){return{uGamma:e.getUniformLocation(t,"uGamma")}},sendUniformData:function(e,t){e.uniform3fv(t.uGamma,this.gamma)}}),t.Image.filters.Gamma.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.Composed=s(i.BaseFilter,{type:"Composed",subFilters:[],initialize:function(e){this.callSuper("initialize",e),this.subFilters=this.subFilters.slice(0)},applyTo:function(e){e.passes+=this.subFilters.length-1,this.subFilters.forEach((function(t){t.applyTo(e)}))},toObject:function(){return t.util.object.extend(this.callSuper("toObject"),{subFilters:this.subFilters.map((function(e){return e.toObject()}))})},isNeutralState:function(){return!this.subFilters.some((function(e){return!e.isNeutralState()}))}}),t.Image.filters.Composed.fromObject=function(e,i){var s=(e.subFilters||[]).map((function(e){return new t.Image.filters[e.type](e)})),n=new t.Image.filters.Composed({subFilters:s});return i&&i(n),n}}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.HueRotation=s(i.ColorMatrix,{type:"HueRotation",rotation:0,mainParameter:"rotation",calculateMatrix:function(){var e=this.rotation*Math.PI,i=t.util.cos(e),s=t.util.sin(e),n=1/3,r=Math.sqrt(n)*s,o=1-i;this.matrix=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],this.matrix[0]=i+o/3,this.matrix[1]=n*o-r,this.matrix[2]=n*o+r,this.matrix[5]=n*o+r,this.matrix[6]=i+n*o,this.matrix[7]=n*o-r,this.matrix[10]=n*o-r,this.matrix[11]=n*o+r,this.matrix[12]=i+n*o},isNeutralState:function(e){return this.calculateMatrix(),i.BaseFilter.prototype.isNeutralState.call(this,e)},applyTo:function(e){this.calculateMatrix(),i.BaseFilter.prototype.applyTo.call(this,e)}}),t.Image.filters.HueRotation.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.clone;if(t.Text)t.warn("fabric.Text is already defined");else{var s="fontFamily fontWeight fontSize text underline overline linethrough textAlign fontStyle lineHeight textBackgroundColor charSpacing styles direction path pathStartOffset pathSide pathAlign".split(" ");t.Text=t.util.createClass(t.Object,{_dimensionAffectingProps:["fontSize","fontWeight","fontFamily","fontStyle","lineHeight","text","charSpacing","textAlign","styles","path","pathStartOffset","pathSide","pathAlign"],_reNewline:/\r?\n/,_reSpacesAndTabs:/[ \t\r]/g,_reSpaceAndTab:/[ \t\r]/,_reWords:/\S+/g,type:"text",fontSize:40,fontWeight:"normal",fontFamily:"Times New Roman",underline:!1,overline:!1,linethrough:!1,textAlign:"left",fontStyle:"normal",lineHeight:1.16,superscript:{size:.6,baseline:-.35},subscript:{size:.6,baseline:.11},textBackgroundColor:"",stateProperties:t.Object.prototype.stateProperties.concat(s),cacheProperties:t.Object.prototype.cacheProperties.concat(s),stroke:null,shadow:null,path:null,pathStartOffset:0,pathSide:"left",pathAlign:"baseline",_fontSizeFraction:.222,offsets:{underline:.1,linethrough:-.315,overline:-.88},_fontSizeMult:1.13,charSpacing:0,styles:null,_measuringContext:null,deltaY:0,direction:"ltr",_styleProperties:["stroke","strokeWidth","fill","fontFamily","fontSize","fontWeight","fontStyle","underline","overline","linethrough","deltaY","textBackgroundColor"],__charBounds:[],CACHE_FONT_SIZE:400,MIN_TEXT_WIDTH:2,initialize:function(e,t){this.styles=t&&t.styles||{},this.text=e,this.__skipDimension=!0,this.callSuper("initialize",t),this.path&&this.setPathInfo(),this.__skipDimension=!1,this.initDimensions(),this.setCoords(),this.setupState({propertySet:"_dimensionAffectingProps"})},setPathInfo:function(){var e=this.path;e&&(e.segmentsInfo=t.util.getPathSegmentsInfo(e.path))},getMeasuringContext:function(){return t._measuringContext||(t._measuringContext=this.canvas&&this.canvas.contextCache||t.util.createCanvasElement().getContext("2d")),t._measuringContext},_splitText:function(){var e=this._splitTextIntoLines(this.text);return this.textLines=e.lines,this._textLines=e.graphemeLines,this._unwrappedTextLines=e._unwrappedLines,this._text=e.graphemeText,e},initDimensions:function(){if(!this.__skipDimension){if(this._splitText(),this._clearCache(),this.path){var e=1.1*this.getHeightOfLine(0);this.width=this.path.width+e,this.height=this.path.height+e}else this.width=this.calcTextWidth()||this.cursorWidth||this.MIN_TEXT_WIDTH,this.height=this.calcTextHeight();-1!==this.textAlign.indexOf("justify")&&this.enlargeSpaces(),this.saveState({propertySet:"_dimensionAffectingProps"})}},enlargeSpaces:function(){for(var e,t,i,s,n,r,o,a=0,c=this._textLines.length;a<c;a++)if(("justify"===this.textAlign||a!==c-1&&!this.isEndOfWrapping(a))&&(s=0,n=this._textLines[a],(t=this.getLineWidth(a))<this.width&&(o=this.textLines[a].match(this._reSpacesAndTabs)))){i=o.length,e=(this.width-t)/i;for(var l=0,h=n.length;l<=h;l++)r=this.__charBounds[a][l],this._reSpaceAndTab.test(n[l])?(r.width+=e,r.kernedWidth+=e,r.left+=s,s+=e):r.left+=s}},isEndOfWrapping:function(e){return e===this._textLines.length-1},missingNewlineOffset:function(){return 1},toString:function(){return"#<fabric.Text ("+this.complexity()+'): { "text": "'+this.text+'", "fontFamily": "'+this.fontFamily+'" }>'},_getCacheCanvasDimensions:function(){var e=this.callSuper("_getCacheCanvasDimensions"),t=this.fontSize;return e.width+=t*e.zoomX,e.height+=t*e.zoomY,e},_render:function(e){var t=this.path;t&&!t.isNotVisible()&&t._render(e),this._setTextStyles(e),this._renderTextLinesBackground(e),this._renderTextDecoration(e,"underline"),this._renderText(e),this._renderTextDecoration(e,"overline"),this._renderTextDecoration(e,"linethrough")},_renderText:function(e){"stroke"===this.paintFirst?(this._renderTextStroke(e),this._renderTextFill(e)):(this._renderTextFill(e),this._renderTextStroke(e))},_setTextStyles:function(e,t,i){if(e.textBaseline="alphabetical",this.path)switch(this.pathAlign){case"center":e.textBaseline="middle";break;case"ascender":e.textBaseline="top";break;case"descender":e.textBaseline="bottom"}e.font=this._getFontDeclaration(t,i)},calcTextWidth:function(){for(var e=this.getLineWidth(0),t=1,i=this._textLines.length;t<i;t++){var s=this.getLineWidth(t);s>e&&(e=s)}return e},_renderTextLine:function(e,t,i,s,n,r){this._renderChars(e,t,i,s,n,r)},_renderTextLinesBackground:function(e){if(this.textBackgroundColor||this.styleHas("textBackgroundColor")){for(var t,i,s,n,r,o,a,c=e.fillStyle,l=this._getLeftOffset(),h=this._getTopOffset(),d=0,u=0,g=this.path,p=0,m=this._textLines.length;p<m;p++)if(t=this.getHeightOfLine(p),this.textBackgroundColor||this.styleHas("textBackgroundColor",p)){s=this._textLines[p],i=this._getLineLeftOffset(p),u=0,d=0,n=this.getValueOfPropertyAt(p,0,"textBackgroundColor");for(var f=0,_=s.length;f<_;f++)r=this.__charBounds[p][f],o=this.getValueOfPropertyAt(p,f,"textBackgroundColor"),g?(e.save(),e.translate(r.renderLeft,r.renderTop),e.rotate(r.angle),e.fillStyle=o,o&&e.fillRect(-r.width/2,-t/this.lineHeight*(1-this._fontSizeFraction),r.width,t/this.lineHeight),e.restore()):o!==n?(a=l+i+d,"rtl"===this.direction&&(a=this.width-a-u),e.fillStyle=n,n&&e.fillRect(a,h,u,t/this.lineHeight),d=r.left,u=r.width,n=o):u+=r.kernedWidth;o&&!g&&(a=l+i+d,"rtl"===this.direction&&(a=this.width-a-u),e.fillStyle=o,e.fillRect(a,h,u,t/this.lineHeight)),h+=t}else h+=t;e.fillStyle=c,this._removeShadow(e)}},getFontCache:function(e){var i=e.fontFamily.toLowerCase();t.charWidthsCache[i]||(t.charWidthsCache[i]={});var s=t.charWidthsCache[i],n=e.fontStyle.toLowerCase()+"_"+(e.fontWeight+"").toLowerCase();return s[n]||(s[n]={}),s[n]},_measureChar:function(e,t,i,s){var n,r,o,a,c=this.getFontCache(t),l=i+e,h=this._getFontDeclaration(t)===this._getFontDeclaration(s),d=t.fontSize/this.CACHE_FONT_SIZE;if(i&&void 0!==c[i]&&(o=c[i]),void 0!==c[e]&&(a=n=c[e]),h&&void 0!==c[l]&&(a=(r=c[l])-o),void 0===n||void 0===o||void 0===r){var u=this.getMeasuringContext();this._setTextStyles(u,t,!0)}return void 0===n&&(a=n=u.measureText(e).width,c[e]=n),void 0===o&&h&&i&&(o=u.measureText(i).width,c[i]=o),h&&void 0===r&&(r=u.measureText(l).width,c[l]=r,a=r-o),{width:n*d,kernedWidth:a*d}},getHeightOfChar:function(e,t){return this.getValueOfPropertyAt(e,t,"fontSize")},measureLine:function(e){var t=this._measureLine(e);return 0!==this.charSpacing&&(t.width-=this._getWidthOfCharSpacing()),t.width<0&&(t.width=0),t},_measureLine:function(e){var i,s,n,r,o,a,c=0,l=this._textLines[e],h=new Array(l.length),d=0,u=this.path,g="right"===this.pathSide;for(this.__charBounds[e]=h,i=0;i<l.length;i++)s=l[i],r=this._getGraphemeBox(s,e,i,n),h[i]=r,c+=r.kernedWidth,n=s;if(h[i]={left:r?r.left+r.width:0,width:0,kernedWidth:0,height:this.fontSize},u){switch(a=u.segmentsInfo[u.segmentsInfo.length-1].length,(o=t.util.getPointOnPath(u.path,0,u.segmentsInfo)).x+=u.pathOffset.x,o.y+=u.pathOffset.y,this.textAlign){case"left":d=g?a-c:0;break;case"center":d=(a-c)/2;break;case"right":d=g?0:a-c}for(d+=this.pathStartOffset*(g?-1:1),i=g?l.length-1:0;g?i>=0:i<l.length;g?i--:i++)r=h[i],d>a?d%=a:d<0&&(d+=a),this._setGraphemeOnPath(d,r,o),d+=r.kernedWidth}return{width:c,numOfSpaces:0}},_setGraphemeOnPath:function(e,i,s){var n=e+i.kernedWidth/2,r=this.path,o=t.util.getPointOnPath(r.path,n,r.segmentsInfo);i.renderLeft=o.x-s.x,i.renderTop=o.y-s.y,i.angle=o.angle+("right"===this.pathSide?Math.PI:0)},_getGraphemeBox:function(e,t,i,s,n){var r,o=this.getCompleteStyleDeclaration(t,i),a=s?this.getCompleteStyleDeclaration(t,i-1):{},c=this._measureChar(e,o,s,a),l=c.kernedWidth,h=c.width;0!==this.charSpacing&&(h+=r=this._getWidthOfCharSpacing(),l+=r);var d={width:h,left:0,height:o.fontSize,kernedWidth:l,deltaY:o.deltaY};if(i>0&&!n){var u=this.__charBounds[t][i-1];d.left=u.left+u.width+c.kernedWidth-c.width}return d},getHeightOfLine:function(e){if(this.__lineHeights[e])return this.__lineHeights[e];for(var t=this._textLines[e],i=this.getHeightOfChar(e,0),s=1,n=t.length;s<n;s++)i=Math.max(this.getHeightOfChar(e,s),i);return this.__lineHeights[e]=i*this.lineHeight*this._fontSizeMult},calcTextHeight:function(){for(var e,t=0,i=0,s=this._textLines.length;i<s;i++)e=this.getHeightOfLine(i),t+=i===s-1?e/this.lineHeight:e;return t},_getLeftOffset:function(){return"ltr"===this.direction?-this.width/2:this.width/2},_getTopOffset:function(){return-this.height/2},_renderTextCommon:function(e,t){e.save();for(var i=0,s=this._getLeftOffset(),n=this._getTopOffset(),r=0,o=this._textLines.length;r<o;r++){var a=this.getHeightOfLine(r),c=a/this.lineHeight,l=this._getLineLeftOffset(r);this._renderTextLine(t,e,this._textLines[r],s+l,n+i+c,r),i+=a}e.restore()},_renderTextFill:function(e){(this.fill||this.styleHas("fill"))&&this._renderTextCommon(e,"fillText")},_renderTextStroke:function(e){(this.stroke&&0!==this.strokeWidth||!this.isEmptyStyles())&&(this.shadow&&!this.shadow.affectStroke&&this._removeShadow(e),e.save(),this._setLineDash(e,this.strokeDashArray),e.beginPath(),this._renderTextCommon(e,"strokeText"),e.closePath(),e.restore())},_renderChars:function(e,i,s,n,r,o){var a,c,l,h,d,u=this.getHeightOfLine(o),g=-1!==this.textAlign.indexOf("justify"),p="",m=0,f=this.path,_=!g&&0===this.charSpacing&&this.isEmptyStyles(o)&&!f,v="ltr"===this.direction,C="ltr"===this.direction?1:-1,E=i.canvas.getAttribute("dir");if(i.save(),E!==this.direction&&(i.canvas.setAttribute("dir",v?"ltr":"rtl"),i.direction=v?"ltr":"rtl",i.textAlign=v?"left":"right"),r-=u*this._fontSizeFraction/this.lineHeight,_)return this._renderChar(e,i,o,0,s.join(""),n,r,u),void i.restore();for(var b=0,S=s.length-1;b<=S;b++)h=b===S||this.charSpacing||f,p+=s[b],l=this.__charBounds[o][b],0===m?(n+=C*(l.kernedWidth-l.width),m+=l.width):m+=l.kernedWidth,g&&!h&&this._reSpaceAndTab.test(s[b])&&(h=!0),h||(a=a||this.getCompleteStyleDeclaration(o,b),c=this.getCompleteStyleDeclaration(o,b+1),h=t.util.hasStyleChanged(a,c,!1)),h&&(f?(i.save(),i.translate(l.renderLeft,l.renderTop),i.rotate(l.angle),this._renderChar(e,i,o,b,p,-m/2,0,u),i.restore()):(d=n,this._renderChar(e,i,o,b,p,d,r,u)),p="",a=c,n+=C*m,m=0);i.restore()},_applyPatternGradientTransformText:function(e){var i,s=t.util.createCanvasElement(),n=this.width+this.strokeWidth,r=this.height+this.strokeWidth;return s.width=n,s.height=r,(i=s.getContext("2d")).beginPath(),i.moveTo(0,0),i.lineTo(n,0),i.lineTo(n,r),i.lineTo(0,r),i.closePath(),i.translate(n/2,r/2),i.fillStyle=e.toLive(i),this._applyPatternGradientTransform(i,e),i.fill(),i.createPattern(s,"no-repeat")},handleFiller:function(e,t,i){var s,n;return i.toLive?"percentage"===i.gradientUnits||i.gradientTransform||i.patternTransform?(s=-this.width/2,n=-this.height/2,e.translate(s,n),e[t]=this._applyPatternGradientTransformText(i),{offsetX:s,offsetY:n}):(e[t]=i.toLive(e,this),this._applyPatternGradientTransform(e,i)):(e[t]=i,{offsetX:0,offsetY:0})},_setStrokeStyles:function(e,t){return e.lineWidth=t.strokeWidth,e.lineCap=this.strokeLineCap,e.lineDashOffset=this.strokeDashOffset,e.lineJoin=this.strokeLineJoin,e.miterLimit=this.strokeMiterLimit,this.handleFiller(e,"strokeStyle",t.stroke)},_setFillStyles:function(e,t){return this.handleFiller(e,"fillStyle",t.fill)},_renderChar:function(e,t,i,s,n,r,o){var a,c,l=this._getStyleDeclaration(i,s),h=this.getCompleteStyleDeclaration(i,s),d="fillText"===e&&h.fill,u="strokeText"===e&&h.stroke&&h.strokeWidth;(u||d)&&(t.save(),d&&(a=this._setFillStyles(t,h)),u&&(c=this._setStrokeStyles(t,h)),t.font=this._getFontDeclaration(h),l&&l.textBackgroundColor&&this._removeShadow(t),l&&l.deltaY&&(o+=l.deltaY),d&&t.fillText(n,r-a.offsetX,o-a.offsetY),u&&t.strokeText(n,r-c.offsetX,o-c.offsetY),t.restore())},setSuperscript:function(e,t){return this._setScript(e,t,this.superscript)},setSubscript:function(e,t){return this._setScript(e,t,this.subscript)},_setScript:function(e,t,i){var s=this.get2DCursorLocation(e,!0),n=this.getValueOfPropertyAt(s.lineIndex,s.charIndex,"fontSize"),r=this.getValueOfPropertyAt(s.lineIndex,s.charIndex,"deltaY"),o={fontSize:n*i.size,deltaY:r+n*i.baseline};return this.setSelectionStyles(o,e,t),this},_getLineLeftOffset:function(e){var t=this.getLineWidth(e),i=this.width-t,s=this.textAlign,n=this.direction,r=0,o=this.isEndOfWrapping(e);return"justify"===s||"justify-center"===s&&!o||"justify-right"===s&&!o||"justify-left"===s&&!o?0:("center"===s&&(r=i/2),"right"===s&&(r=i),"justify-center"===s&&(r=i/2),"justify-right"===s&&(r=i),"rtl"===n&&(r-=i),r)},_clearCache:function(){this.__lineWidths=[],this.__lineHeights=[],this.__charBounds=[]},_shouldClearDimensionCache:function(){var e=this._forceClearCache;return e||(e=this.hasStateChanged("_dimensionAffectingProps")),e&&(this.dirty=!0,this._forceClearCache=!1),e},getLineWidth:function(e){if(void 0!==this.__lineWidths[e])return this.__lineWidths[e];var t=this.measureLine(e).width;return this.__lineWidths[e]=t,t},_getWidthOfCharSpacing:function(){return 0!==this.charSpacing?this.fontSize*this.charSpacing/1e3:0},getValueOfPropertyAt:function(e,t,i){var s=this._getStyleDeclaration(e,t);return s&&"undefined"!==typeof s[i]?s[i]:this[i]},_renderTextDecoration:function(e,t){if(this[t]||this.styleHas(t)){e.save(),"overline"!==t&&"linethrough"!==t||this._removeShadow(e);for(var i,s,n,r,o,a,c,l,h,d,u,g,p,m,f,_,v=this._getLeftOffset(),C=this._getTopOffset(),E=this.path,b=this._getWidthOfCharSpacing(),S=this.offsets[t],y=0,w=this._textLines.length;y<w;y++)if(i=this.getHeightOfLine(y),this[t]||this.styleHas(t,y)){c=this._textLines[y],m=i/this.lineHeight,r=this._getLineLeftOffset(y),d=0,u=0,l=this.getValueOfPropertyAt(y,0,t),_=this.getValueOfPropertyAt(y,0,"fill"),h=C+m*(1-this._fontSizeFraction),s=this.getHeightOfChar(y,0),o=this.getValueOfPropertyAt(y,0,"deltaY");for(var R=0,L=c.length;R<L;R++)if(g=this.__charBounds[y][R],p=this.getValueOfPropertyAt(y,R,t),f=this.getValueOfPropertyAt(y,R,"fill"),n=this.getHeightOfChar(y,R),a=this.getValueOfPropertyAt(y,R,"deltaY"),E&&p&&f)e.save(),e.fillStyle=_,e.translate(g.renderLeft,g.renderTop),e.rotate(g.angle),e.fillRect(-g.kernedWidth/2,S*n+a,g.kernedWidth,this.fontSize/15),e.restore();else if((p!==l||f!==_||n!==s||a!==o)&&u>0){var T=v+r+d;"rtl"===this.direction&&(T=this.width-T-u),l&&_&&(e.fillStyle=_,e.fillRect(T,h+S*s+o,u,this.fontSize/15)),d=g.left,u=g.width,l=p,_=f,s=n,o=a}else u+=g.kernedWidth;T=v+r+d;"rtl"===this.direction&&(T=this.width-T-u),e.fillStyle=f,p&&f&&e.fillRect(T,h+S*s+o,u-b,this.fontSize/15),C+=i}else C+=i;e.restore()}},_getFontDeclaration:function(e,i){var s=e||this,n=this.fontFamily,r=t.Text.genericFonts.indexOf(n.toLowerCase())>-1,o=void 0===n||n.indexOf("'")>-1||n.indexOf(",")>-1||n.indexOf('"')>-1||r?s.fontFamily:'"'+s.fontFamily+'"';return[t.isLikelyNode?s.fontWeight:s.fontStyle,t.isLikelyNode?s.fontStyle:s.fontWeight,i?this.CACHE_FONT_SIZE+"px":s.fontSize+"px",o].join(" ")},render:function(e){this.visible&&(this.canvas&&this.canvas.skipOffscreen&&!this.group&&!this.isOnScreen()||(this._shouldClearDimensionCache()&&this.initDimensions(),this.callSuper("render",e)))},_splitTextIntoLines:function(e){for(var i=e.split(this._reNewline),s=new Array(i.length),n=["\n"],r=[],o=0;o<i.length;o++)s[o]=t.util.string.graphemeSplit(i[o]),r=r.concat(s[o],n);return r.pop(),{_unwrappedLines:s,lines:i,graphemeText:r,graphemeLines:s}},toObject:function(e){var i=s.concat(e),n=this.callSuper("toObject",i);return n.styles=t.util.stylesToArray(this.styles,this.text),n.path&&(n.path=this.path.toObject()),n},set:function(e,t){this.callSuper("set",e,t);var i=!1,s=!1;if("object"===typeof e)for(var n in e)"path"===n&&this.setPathInfo(),i=i||-1!==this._dimensionAffectingProps.indexOf(n),s=s||"path"===n;else i=-1!==this._dimensionAffectingProps.indexOf(e),s="path"===e;return s&&this.setPathInfo(),i&&(this.initDimensions(),this.setCoords()),this},complexity:function(){return 1}}),t.Text.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("x y dx dy font-family font-style font-weight font-size letter-spacing text-decoration text-anchor".split(" ")),t.Text.DEFAULT_SVG_FONT_SIZE=16,t.Text.fromElement=function(e,s,n){if(!e)return s(null);var r=t.parseAttributes(e,t.Text.ATTRIBUTE_NAMES),o=r.textAnchor||"left";if((n=t.util.object.extend(n?i(n):{},r)).top=n.top||0,n.left=n.left||0,r.textDecoration){var a=r.textDecoration;-1!==a.indexOf("underline")&&(n.underline=!0),-1!==a.indexOf("overline")&&(n.overline=!0),-1!==a.indexOf("line-through")&&(n.linethrough=!0),delete n.textDecoration}"dx"in r&&(n.left+=r.dx),"dy"in r&&(n.top+=r.dy),"fontSize"in n||(n.fontSize=t.Text.DEFAULT_SVG_FONT_SIZE);var c="";"textContent"in e?c=e.textContent:"firstChild"in e&&null!==e.firstChild&&"data"in e.firstChild&&null!==e.firstChild.data&&(c=e.firstChild.data),c=c.replace(/^\s+|\s+$|\n+/g,"").replace(/\s+/g," ");var l=n.strokeWidth;n.strokeWidth=0;var h=new t.Text(c,n),d=h.getScaledHeight()/h.height,u=((h.height+h.strokeWidth)*h.lineHeight-h.height)*d,g=h.getScaledHeight()+u,p=0;"center"===o&&(p=h.getScaledWidth()/2),"right"===o&&(p=h.getScaledWidth()),h.set({left:h.left-p,top:h.top-(g-h.fontSize*(.07+h._fontSizeFraction))/h.lineHeight,strokeWidth:"undefined"!==typeof l?l:1}),s(h)},t.Text.fromObject=function(e,s){var n=i(e),r=e.path;return delete n.path,t.Object._fromObject("Text",n,(function(i){i.styles=t.util.stylesFromArray(e.styles,e.text),r?t.Object._fromObject("Path",r,(function(e){i.set("path",e),s(i)}),"path"):s(i)}),"text")},t.Text.genericFonts=["sans-serif","serif","cursive","fantasy","monospace"],t.util.createAccessors&&t.util.createAccessors(t.Text)}}(t),n.util.object.extend(n.Text.prototype,{isEmptyStyles:function(e){if(!this.styles)return!0;if("undefined"!==typeof e&&!this.styles[e])return!0;var t="undefined"===typeof e?this.styles:{line:this.styles[e]};for(var i in t)for(var s in t[i])for(var n in t[i][s])return!1;return!0},styleHas:function(e,t){if(!this.styles||!e||""===e)return!1;if("undefined"!==typeof t&&!this.styles[t])return!1;var i="undefined"===typeof t?this.styles:{0:this.styles[t]};for(var s in i)for(var n in i[s])if("undefined"!==typeof i[s][n][e])return!0;return!1},cleanStyle:function(e){if(!this.styles||!e||""===e)return!1;var t,i,s=this.styles,n=0,r=!0,o=0;for(var a in s){for(var c in t=0,s[a]){var l;n++,(l=s[a][c]).hasOwnProperty(e)?(i?l[e]!==i&&(r=!1):i=l[e],l[e]===this[e]&&delete l[e]):r=!1,0!==Object.keys(l).length?t++:delete s[a][c]}0===t&&delete s[a]}for(var h=0;h<this._textLines.length;h++)o+=this._textLines[h].length;r&&n===o&&(this[e]=i,this.removeStyle(e))},removeStyle:function(e){if(this.styles&&e&&""!==e){var t,i,s,n=this.styles;for(i in n){for(s in t=n[i])delete t[s][e],0===Object.keys(t[s]).length&&delete t[s];0===Object.keys(t).length&&delete n[i]}}},_extendStyles:function(e,t){var i=this.get2DCursorLocation(e);this._getLineStyle(i.lineIndex)||this._setLineStyle(i.lineIndex),this._getStyleDeclaration(i.lineIndex,i.charIndex)||this._setStyleDeclaration(i.lineIndex,i.charIndex,{}),n.util.object.extend(this._getStyleDeclaration(i.lineIndex,i.charIndex),t)},get2DCursorLocation:function(e,t){"undefined"===typeof e&&(e=this.selectionStart);for(var i=t?this._unwrappedTextLines:this._textLines,s=i.length,n=0;n<s;n++){if(e<=i[n].length)return{lineIndex:n,charIndex:e};e-=i[n].length+this.missingNewlineOffset(n,t)}return{lineIndex:n-1,charIndex:i[n-1].length<e?i[n-1].length:e}},getSelectionStyles:function(e,t,i){"undefined"===typeof e&&(e=this.selectionStart||0),"undefined"===typeof t&&(t=this.selectionEnd||e);for(var s=[],n=e;n<t;n++)s.push(this.getStyleAtPosition(n,i));return s},getStyleAtPosition:function(e,t){var i=this.get2DCursorLocation(e);return(t?this.getCompleteStyleDeclaration(i.lineIndex,i.charIndex):this._getStyleDeclaration(i.lineIndex,i.charIndex))||{}},setSelectionStyles:function(e,t,i){"undefined"===typeof t&&(t=this.selectionStart||0),"undefined"===typeof i&&(i=this.selectionEnd||t);for(var s=t;s<i;s++)this._extendStyles(s,e);return this._forceClearCache=!0,this},_getStyleDeclaration:function(e,t){var i=this.styles&&this.styles[e];return i?i[t]:null},getCompleteStyleDeclaration:function(e,t){for(var i,s=this._getStyleDeclaration(e,t)||{},n={},r=0;r<this._styleProperties.length;r++)n[i=this._styleProperties[r]]="undefined"===typeof s[i]?this[i]:s[i];return n},_setStyleDeclaration:function(e,t,i){this.styles[e][t]=i},_deleteStyleDeclaration:function(e,t){delete this.styles[e][t]},_getLineStyle:function(e){return!!this.styles[e]},_setLineStyle:function(e){this.styles[e]={}},_deleteLineStyle:function(e){delete this.styles[e]}}),function(){function e(e){e.textDecoration&&(e.textDecoration.indexOf("underline")>-1&&(e.underline=!0),e.textDecoration.indexOf("line-through")>-1&&(e.linethrough=!0),e.textDecoration.indexOf("overline")>-1&&(e.overline=!0),delete e.textDecoration)}n.IText=n.util.createClass(n.Text,n.Observable,{type:"i-text",selectionStart:0,selectionEnd:0,selectionColor:"rgba(17,119,255,0.3)",isEditing:!1,editable:!0,editingBorderColor:"rgba(102,153,255,0.25)",cursorWidth:2,cursorColor:"",cursorDelay:1e3,cursorDuration:600,caching:!0,hiddenTextareaContainer:null,_reSpace:/\s|\n/,_currentCursorOpacity:0,_selectionDirection:null,_abortCursorAnimation:!1,__widthOfSpace:[],inCompositionMode:!1,initialize:function(e,t){this.callSuper("initialize",e,t),this.initBehavior()},setSelectionStart:function(e){e=Math.max(e,0),this._updateAndFire("selectionStart",e)},setSelectionEnd:function(e){e=Math.min(e,this.text.length),this._updateAndFire("selectionEnd",e)},_updateAndFire:function(e,t){this[e]!==t&&(this._fireSelectionChanged(),this[e]=t),this._updateTextarea()},_fireSelectionChanged:function(){this.fire("selection:changed"),this.canvas&&this.canvas.fire("text:selection:changed",{target:this})},initDimensions:function(){this.isEditing&&this.initDelayedCursor(),this.clearContextTop(),this.callSuper("initDimensions")},render:function(e){this.clearContextTop(),this.callSuper("render",e),this.cursorOffsetCache={},this.renderCursorOrSelection()},_render:function(e){this.callSuper("_render",e)},clearContextTop:function(e){if(this.isEditing&&this.canvas&&this.canvas.contextTop){var t=this.canvas.contextTop,i=this.canvas.viewportTransform;t.save(),t.transform(i[0],i[1],i[2],i[3],i[4],i[5]),this.transform(t),this._clearTextArea(t),e||t.restore()}},renderCursorOrSelection:function(){if(this.isEditing&&this.canvas&&this.canvas.contextTop){var e=this._getCursorBoundaries(),t=this.canvas.contextTop;this.clearContextTop(!0),this.selectionStart===this.selectionEnd?this.renderCursor(e,t):this.renderSelection(e,t),t.restore()}},_clearTextArea:function(e){var t=this.width+4,i=this.height+4;e.clearRect(-t/2,-i/2,t,i)},_getCursorBoundaries:function(e){"undefined"===typeof e&&(e=this.selectionStart);var t=this._getLeftOffset(),i=this._getTopOffset(),s=this._getCursorBoundariesOffsets(e);return{left:t,top:i,leftOffset:s.left,topOffset:s.top}},_getCursorBoundariesOffsets:function(e){if(this.cursorOffsetCache&&"top"in this.cursorOffsetCache)return this.cursorOffsetCache;var t,i,s,n,r=0,o=0,a=this.get2DCursorLocation(e);s=a.charIndex,i=a.lineIndex;for(var c=0;c<i;c++)r+=this.getHeightOfLine(c);t=this._getLineLeftOffset(i);var l=this.__charBounds[i][s];return l&&(o=l.left),0!==this.charSpacing&&s===this._textLines[i].length&&(o-=this._getWidthOfCharSpacing()),n={top:r,left:t+(o>0?o:0)},"rtl"===this.direction&&(n.left*=-1),this.cursorOffsetCache=n,this.cursorOffsetCache},renderCursor:function(e,t){var i=this.get2DCursorLocation(),s=i.lineIndex,n=i.charIndex>0?i.charIndex-1:0,r=this.getValueOfPropertyAt(s,n,"fontSize"),o=this.scaleX*this.canvas.getZoom(),a=this.cursorWidth/o,c=e.topOffset,l=this.getValueOfPropertyAt(s,n,"deltaY");c+=(1-this._fontSizeFraction)*this.getHeightOfLine(s)/this.lineHeight-r*(1-this._fontSizeFraction),this.inCompositionMode&&this.renderSelection(e,t),t.fillStyle=this.cursorColor||this.getValueOfPropertyAt(s,n,"fill"),t.globalAlpha=this.__isMousedown?1:this._currentCursorOpacity,t.fillRect(e.left+e.leftOffset-a/2,c+e.top+l,a,r)},renderSelection:function(e,t){for(var i=this.inCompositionMode?this.hiddenTextarea.selectionStart:this.selectionStart,s=this.inCompositionMode?this.hiddenTextarea.selectionEnd:this.selectionEnd,n=-1!==this.textAlign.indexOf("justify"),r=this.get2DCursorLocation(i),o=this.get2DCursorLocation(s),a=r.lineIndex,c=o.lineIndex,l=r.charIndex<0?0:r.charIndex,h=o.charIndex<0?0:o.charIndex,d=a;d<=c;d++){var u,g=this._getLineLeftOffset(d)||0,p=this.getHeightOfLine(d),m=0,f=0;if(d===a&&(m=this.__charBounds[a][l].left),d>=a&&d<c)f=n&&!this.isEndOfWrapping(d)?this.width:this.getLineWidth(d)||5;else if(d===c)if(0===h)f=this.__charBounds[c][h].left;else{var _=this._getWidthOfCharSpacing();f=this.__charBounds[c][h-1].left+this.__charBounds[c][h-1].width-_}u=p,(this.lineHeight<1||d===c&&this.lineHeight>1)&&(p/=this.lineHeight);var v=e.left+g+m,C=f-m,E=p,b=0;this.inCompositionMode?(t.fillStyle=this.compositionColor||"black",E=1,b=p):t.fillStyle=this.selectionColor,"rtl"===this.direction&&(v=this.width-v-C),t.fillRect(v,e.top+e.topOffset+b,C,E),e.topOffset+=u}},getCurrentCharFontSize:function(){var e=this._getCurrentCharIndex();return this.getValueOfPropertyAt(e.l,e.c,"fontSize")},getCurrentCharColor:function(){var e=this._getCurrentCharIndex();return this.getValueOfPropertyAt(e.l,e.c,"fill")},_getCurrentCharIndex:function(){var e=this.get2DCursorLocation(this.selectionStart,!0),t=e.charIndex>0?e.charIndex-1:0;return{l:e.lineIndex,c:t}}}),n.IText.fromObject=function(t,i){var s=n.util.stylesFromArray(t.styles,t.text),r=Object.assign({},t,{styles:s});if(delete r.path,e(r),r.styles)for(var o in r.styles)for(var a in r.styles[o])e(r.styles[o][a]);n.Object._fromObject("IText",r,(function(e){t.path?n.Object._fromObject("Path",t.path,(function(t){e.set("path",t),i(e)}),"path"):i(e)}),"text")}}(),function(){var e=n.util.object.clone;n.util.object.extend(n.IText.prototype,{initBehavior:function(){this.initAddedHandler(),this.initRemovedHandler(),this.initCursorSelectionHandlers(),this.initDoubleClickSimulation(),this.mouseMoveHandler=this.mouseMoveHandler.bind(this)},onDeselect:function(){this.isEditing&&this.exitEditing(),this.selected=!1},initAddedHandler:function(){var e=this;this.on("added",(function(){var t=e.canvas;t&&(t._hasITextHandlers||(t._hasITextHandlers=!0,e._initCanvasHandlers(t)),t._iTextInstances=t._iTextInstances||[],t._iTextInstances.push(e))}))},initRemovedHandler:function(){var e=this;this.on("removed",(function(){var t=e.canvas;t&&(t._iTextInstances=t._iTextInstances||[],n.util.removeFromArray(t._iTextInstances,e),0===t._iTextInstances.length&&(t._hasITextHandlers=!1,e._removeCanvasHandlers(t)))}))},_initCanvasHandlers:function(e){e._mouseUpITextHandler=function(){e._iTextInstances&&e._iTextInstances.forEach((function(e){e.__isMousedown=!1}))},e.on("mouse:up",e._mouseUpITextHandler)},_removeCanvasHandlers:function(e){e.off("mouse:up",e._mouseUpITextHandler)},_tick:function(){this._currentTickState=this._animateCursor(this,1,this.cursorDuration,"_onTickComplete")},_animateCursor:function(e,t,i,s){var n;return n={isAborted:!1,abort:function(){this.isAborted=!0}},e.animate("_currentCursorOpacity",t,{duration:i,onComplete:function(){n.isAborted||e[s]()},onChange:function(){e.canvas&&e.selectionStart===e.selectionEnd&&e.renderCursorOrSelection()},abort:function(){return n.isAborted}}),n},_onTickComplete:function(){var e=this;this._cursorTimeout1&&clearTimeout(this._cursorTimeout1),this._cursorTimeout1=setTimeout((function(){e._currentTickCompleteState=e._animateCursor(e,0,this.cursorDuration/2,"_tick")}),100)},initDelayedCursor:function(e){var t=this,i=e?0:this.cursorDelay;this.abortCursorAnimation(),this._currentCursorOpacity=1,this._cursorTimeout2=setTimeout((function(){t._tick()}),i)},abortCursorAnimation:function(){var e=this._currentTickState||this._currentTickCompleteState,t=this.canvas;this._currentTickState&&this._currentTickState.abort(),this._currentTickCompleteState&&this._currentTickCompleteState.abort(),clearTimeout(this._cursorTimeout1),clearTimeout(this._cursorTimeout2),this._currentCursorOpacity=0,e&&t&&t.clearContext(t.contextTop||t.contextContainer)},selectAll:function(){return this.selectionStart=0,this.selectionEnd=this._text.length,this._fireSelectionChanged(),this._updateTextarea(),this},getSelectedText:function(){return this._text.slice(this.selectionStart,this.selectionEnd).join("")},findWordBoundaryLeft:function(e){var t=0,i=e-1;if(this._reSpace.test(this._text[i]))for(;this._reSpace.test(this._text[i]);)t++,i--;for(;/\S/.test(this._text[i])&&i>-1;)t++,i--;return e-t},findWordBoundaryRight:function(e){var t=0,i=e;if(this._reSpace.test(this._text[i]))for(;this._reSpace.test(this._text[i]);)t++,i++;for(;/\S/.test(this._text[i])&&i<this._text.length;)t++,i++;return e+t},findLineBoundaryLeft:function(e){for(var t=0,i=e-1;!/\n/.test(this._text[i])&&i>-1;)t++,i--;return e-t},findLineBoundaryRight:function(e){for(var t=0,i=e;!/\n/.test(this._text[i])&&i<this._text.length;)t++,i++;return e+t},searchWordBoundary:function(e,t){for(var i=this._text,s=this._reSpace.test(i[e])?e-1:e,r=i[s],o=n.reNonWord;!o.test(r)&&s>0&&s<i.length;)r=i[s+=t];return o.test(r)&&(s+=1===t?0:1),s},selectWord:function(e){e=e||this.selectionStart;var t=this.searchWordBoundary(e,-1),i=this.searchWordBoundary(e,1);this.selectionStart=t,this.selectionEnd=i,this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()},selectLine:function(e){e=e||this.selectionStart;var t=this.findLineBoundaryLeft(e),i=this.findLineBoundaryRight(e);return this.selectionStart=t,this.selectionEnd=i,this._fireSelectionChanged(),this._updateTextarea(),this},enterEditing:function(e){if(!this.isEditing&&this.editable)return this.canvas&&(this.canvas.calcOffset(),this.exitEditingOnOthers(this.canvas)),this.isEditing=!0,this.initHiddenTextarea(e),this.hiddenTextarea.focus(),this.hiddenTextarea.value=this.text,this._updateTextarea(),this._saveEditingProps(),this._setEditingProps(),this._textBeforeEdit=this.text,this._tick(),this.fire("editing:entered"),this._fireSelectionChanged(),this.canvas?(this.canvas.fire("text:editing:entered",{target:this}),this.initMouseMoveHandler(),this.canvas.requestRenderAll(),this):this},exitEditingOnOthers:function(e){e._iTextInstances&&e._iTextInstances.forEach((function(e){e.selected=!1,e.isEditing&&e.exitEditing()}))},initMouseMoveHandler:function(){this.canvas.on("mouse:move",this.mouseMoveHandler)},mouseMoveHandler:function(e){if(this.__isMousedown&&this.isEditing){document.activeElement!==this.hiddenTextarea&&this.hiddenTextarea.focus();var t=this.getSelectionStartFromPointer(e.e),i=this.selectionStart,s=this.selectionEnd;(t===this.__selectionStartOnMouseDown&&i!==s||i!==t&&s!==t)&&(t>this.__selectionStartOnMouseDown?(this.selectionStart=this.__selectionStartOnMouseDown,this.selectionEnd=t):(this.selectionStart=t,this.selectionEnd=this.__selectionStartOnMouseDown),this.selectionStart===i&&this.selectionEnd===s||(this.restartCursorIfNeeded(),this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()))}},_setEditingProps:function(){this.hoverCursor="text",this.canvas&&(this.canvas.defaultCursor=this.canvas.moveCursor="text"),this.borderColor=this.editingBorderColor,this.hasControls=this.selectable=!1,this.lockMovementX=this.lockMovementY=!0},fromStringToGraphemeSelection:function(e,t,i){var s=i.slice(0,e),r=n.util.string.graphemeSplit(s).length;if(e===t)return{selectionStart:r,selectionEnd:r};var o=i.slice(e,t);return{selectionStart:r,selectionEnd:r+n.util.string.graphemeSplit(o).length}},fromGraphemeToStringSelection:function(e,t,i){var s=i.slice(0,e).join("").length;return e===t?{selectionStart:s,selectionEnd:s}:{selectionStart:s,selectionEnd:s+i.slice(e,t).join("").length}},_updateTextarea:function(){if(this.cursorOffsetCache={},this.hiddenTextarea){if(!this.inCompositionMode){var e=this.fromGraphemeToStringSelection(this.selectionStart,this.selectionEnd,this._text);this.hiddenTextarea.selectionStart=e.selectionStart,this.hiddenTextarea.selectionEnd=e.selectionEnd}this.updateTextareaPosition()}},updateFromTextArea:function(){if(this.hiddenTextarea){this.cursorOffsetCache={},this.text=this.hiddenTextarea.value,this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords());var e=this.fromStringToGraphemeSelection(this.hiddenTextarea.selectionStart,this.hiddenTextarea.selectionEnd,this.hiddenTextarea.value);this.selectionEnd=this.selectionStart=e.selectionEnd,this.inCompositionMode||(this.selectionStart=e.selectionStart),this.updateTextareaPosition()}},updateTextareaPosition:function(){if(this.selectionStart===this.selectionEnd){var e=this._calcTextareaPosition();this.hiddenTextarea.style.left=e.left,this.hiddenTextarea.style.top=e.top}},_calcTextareaPosition:function(){if(!this.canvas)return{x:1,y:1};var e=this.inCompositionMode?this.compositionStart:this.selectionStart,t=this._getCursorBoundaries(e),i=this.get2DCursorLocation(e),s=i.lineIndex,r=i.charIndex,o=this.getValueOfPropertyAt(s,r,"fontSize")*this.lineHeight,a=t.leftOffset,c=this.calcTransformMatrix(),l={x:t.left+a,y:t.top+t.topOffset+o},h=this.canvas.getRetinaScaling(),d=this.canvas.upperCanvasEl,u=d.width/h,g=d.height/h,p=u-o,m=g-o,f=d.clientWidth/u,_=d.clientHeight/g;return l=n.util.transformPoint(l,c),(l=n.util.transformPoint(l,this.canvas.viewportTransform)).x*=f,l.y*=_,l.x<0&&(l.x=0),l.x>p&&(l.x=p),l.y<0&&(l.y=0),l.y>m&&(l.y=m),l.x+=this.canvas._offset.left,l.y+=this.canvas._offset.top,{left:l.x+"px",top:l.y+"px",fontSize:o+"px",charHeight:o}},_saveEditingProps:function(){this._savedProps={hasControls:this.hasControls,borderColor:this.borderColor,lockMovementX:this.lockMovementX,lockMovementY:this.lockMovementY,hoverCursor:this.hoverCursor,selectable:this.selectable,defaultCursor:this.canvas&&this.canvas.defaultCursor,moveCursor:this.canvas&&this.canvas.moveCursor}},_restoreEditingProps:function(){this._savedProps&&(this.hoverCursor=this._savedProps.hoverCursor,this.hasControls=this._savedProps.hasControls,this.borderColor=this._savedProps.borderColor,this.selectable=this._savedProps.selectable,this.lockMovementX=this._savedProps.lockMovementX,this.lockMovementY=this._savedProps.lockMovementY,this.canvas&&(this.canvas.defaultCursor=this._savedProps.defaultCursor,this.canvas.moveCursor=this._savedProps.moveCursor))},exitEditing:function(){var e=this._textBeforeEdit!==this.text,t=this.hiddenTextarea;return this.selected=!1,this.isEditing=!1,this.selectionEnd=this.selectionStart,t&&(t.blur&&t.blur(),t.parentNode&&t.parentNode.removeChild(t)),this.hiddenTextarea=null,this.abortCursorAnimation(),this._restoreEditingProps(),this._currentCursorOpacity=0,this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this.fire("editing:exited"),e&&this.fire("modified"),this.canvas&&(this.canvas.off("mouse:move",this.mouseMoveHandler),this.canvas.fire("text:editing:exited",{target:this}),e&&this.canvas.fire("object:modified",{target:this})),this},_removeExtraneousStyles:function(){for(var e in this.styles)this._textLines[e]||delete this.styles[e]},removeStyleFromTo:function(e,t){var i,s,n=this.get2DCursorLocation(e,!0),r=this.get2DCursorLocation(t,!0),o=n.lineIndex,a=n.charIndex,c=r.lineIndex,l=r.charIndex;if(o!==c){if(this.styles[o])for(i=a;i<this._unwrappedTextLines[o].length;i++)delete this.styles[o][i];if(this.styles[c])for(i=l;i<this._unwrappedTextLines[c].length;i++)(s=this.styles[c][i])&&(this.styles[o]||(this.styles[o]={}),this.styles[o][a+i-l]=s);for(i=o+1;i<=c;i++)delete this.styles[i];this.shiftLineStyles(c,o-c)}else if(this.styles[o]){s=this.styles[o];var h,d,u=l-a;for(i=a;i<l;i++)delete s[i];for(d in this.styles[o])(h=parseInt(d,10))>=l&&(s[h-u]=s[d],delete s[d])}},shiftLineStyles:function(t,i){var s=e(this.styles);for(var n in this.styles){var r=parseInt(n,10);r>t&&(this.styles[r+i]=s[r],s[r-i]||delete this.styles[r])}},restartCursorIfNeeded:function(){this._currentTickState&&!this._currentTickState.isAborted&&this._currentTickCompleteState&&!this._currentTickCompleteState.isAborted||this.initDelayedCursor()},insertNewlineStyleObject:function(t,i,s,n){var r,o={},a=!1,c=this._unwrappedTextLines[t].length,l=c===i;for(var h in s||(s=1),this.shiftLineStyles(t,s),this.styles[t]&&(r=this.styles[t][0===i?i:i-1]),this.styles[t]){var d=parseInt(h,10);d>=i&&(a=!0,o[d-i]=this.styles[t][h],l&&0===i||delete this.styles[t][h])}var u=!1;for(a&&!l&&(this.styles[t+s]=o,u=!0),(u||c>i)&&s--;s>0;)n&&n[s-1]?this.styles[t+s]={0:e(n[s-1])}:r?this.styles[t+s]={0:e(r)}:delete this.styles[t+s],s--;this._forceClearCache=!0},insertCharStyleObject:function(t,i,s,n){this.styles||(this.styles={});var r=this.styles[t],o=r?e(r):{};for(var a in s||(s=1),o){var c=parseInt(a,10);c>=i&&(r[c+s]=o[c],o[c-s]||delete r[c])}if(this._forceClearCache=!0,n)for(;s--;)Object.keys(n[s]).length&&(this.styles[t]||(this.styles[t]={}),this.styles[t][i+s]=e(n[s]));else if(r)for(var l=r[i?i-1:1];l&&s--;)this.styles[t][i+s]=e(l)},insertNewStyleBlock:function(e,t,i){for(var s=this.get2DCursorLocation(t,!0),n=[0],r=0,o=0;o<e.length;o++)"\n"===e[o]?n[++r]=0:n[r]++;n[0]>0&&(this.insertCharStyleObject(s.lineIndex,s.charIndex,n[0],i),i=i&&i.slice(n[0]+1)),r&&this.insertNewlineStyleObject(s.lineIndex,s.charIndex+n[0],r);for(o=1;o<r;o++)n[o]>0?this.insertCharStyleObject(s.lineIndex+o,0,n[o],i):i&&this.styles[s.lineIndex+o]&&i[0]&&(this.styles[s.lineIndex+o][0]=i[0]),i=i&&i.slice(n[o]+1);n[o]>0&&this.insertCharStyleObject(s.lineIndex+o,0,n[o],i)},setSelectionStartEndWithShift:function(e,t,i){i<=e?(t===e?this._selectionDirection="left":"right"===this._selectionDirection&&(this._selectionDirection="left",this.selectionEnd=e),this.selectionStart=i):i>e&&i<t?"right"===this._selectionDirection?this.selectionEnd=i:this.selectionStart=i:(t===e?this._selectionDirection="right":"left"===this._selectionDirection&&(this._selectionDirection="right",this.selectionStart=t),this.selectionEnd=i)},setSelectionInBoundaries:function(){var e=this.text.length;this.selectionStart>e?this.selectionStart=e:this.selectionStart<0&&(this.selectionStart=0),this.selectionEnd>e?this.selectionEnd=e:this.selectionEnd<0&&(this.selectionEnd=0)}})}(),n.util.object.extend(n.IText.prototype,{initDoubleClickSimulation:function(){this.__lastClickTime=+new Date,this.__lastLastClickTime=+new Date,this.__lastPointer={},this.on("mousedown",this.onMouseDown)},onMouseDown:function(e){if(this.canvas){this.__newClickTime=+new Date;var t=e.pointer;this.isTripleClick(t)&&(this.fire("tripleclick",e),this._stopEvent(e.e)),this.__lastLastClickTime=this.__lastClickTime,this.__lastClickTime=this.__newClickTime,this.__lastPointer=t,this.__lastIsEditing=this.isEditing,this.__lastSelected=this.selected}},isTripleClick:function(e){return this.__newClickTime-this.__lastClickTime<500&&this.__lastClickTime-this.__lastLastClickTime<500&&this.__lastPointer.x===e.x&&this.__lastPointer.y===e.y},_stopEvent:function(e){e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation()},initCursorSelectionHandlers:function(){this.initMousedownHandler(),this.initMouseupHandler(),this.initClicks()},doubleClickHandler:function(e){this.isEditing&&this.selectWord(this.getSelectionStartFromPointer(e.e))},tripleClickHandler:function(e){this.isEditing&&this.selectLine(this.getSelectionStartFromPointer(e.e))},initClicks:function(){this.on("mousedblclick",this.doubleClickHandler),this.on("tripleclick",this.tripleClickHandler)},_mouseDownHandler:function(e){!this.canvas||!this.editable||e.e.button&&1!==e.e.button||(this.__isMousedown=!0,this.selected&&(this.inCompositionMode=!1,this.setCursorByClick(e.e)),this.isEditing&&(this.__selectionStartOnMouseDown=this.selectionStart,this.selectionStart===this.selectionEnd&&this.abortCursorAnimation(),this.renderCursorOrSelection()))},_mouseDownHandlerBefore:function(e){!this.canvas||!this.editable||e.e.button&&1!==e.e.button||(this.selected=this===this.canvas._activeObject)},initMousedownHandler:function(){this.on("mousedown",this._mouseDownHandler),this.on("mousedown:before",this._mouseDownHandlerBefore)},initMouseupHandler:function(){this.on("mouseup",this.mouseUpHandler)},mouseUpHandler:function(e){if(this.__isMousedown=!1,!(!this.editable||this.group||e.transform&&e.transform.actionPerformed||e.e.button&&1!==e.e.button)){if(this.canvas){var t=this.canvas._activeObject;if(t&&t!==this)return}this.__lastSelected&&!this.__corner?(this.selected=!1,this.__lastSelected=!1,this.enterEditing(e.e),this.selectionStart===this.selectionEnd?this.initDelayedCursor(!0):this.renderCursorOrSelection()):this.selected=!0}},setCursorByClick:function(e){var t=this.getSelectionStartFromPointer(e),i=this.selectionStart,s=this.selectionEnd;e.shiftKey?this.setSelectionStartEndWithShift(i,s,t):(this.selectionStart=t,this.selectionEnd=t),this.isEditing&&(this._fireSelectionChanged(),this._updateTextarea())},getSelectionStartFromPointer:function(e){for(var t,i=this.getLocalPointer(e),s=0,n=0,r=0,o=0,a=0,c=0,l=this._textLines.length;c<l&&r<=i.y;c++)r+=this.getHeightOfLine(c)*this.scaleY,a=c,c>0&&(o+=this._textLines[c-1].length+this.missingNewlineOffset(c-1));n=this._getLineLeftOffset(a)*this.scaleX,t=this._textLines[a],"rtl"===this.direction&&(i.x=this.width*this.scaleX-i.x+n);for(var h=0,d=t.length;h<d&&(s=n,(n+=this.__charBounds[a][h].kernedWidth*this.scaleX)<=i.x);h++)o++;return this._getNewSelectionStartFromOffset(i,s,n,o,d)},_getNewSelectionStartFromOffset:function(e,t,i,s,n){var r=e.x-t,o=i-e.x,a=s+(o>r||o<0?0:1);return this.flipX&&(a=n-a),a>this._text.length&&(a=this._text.length),a}}),n.util.object.extend(n.IText.prototype,{initHiddenTextarea:function(){this.hiddenTextarea=n.document.createElement("textarea"),this.hiddenTextarea.setAttribute("autocapitalize","off"),this.hiddenTextarea.setAttribute("autocorrect","off"),this.hiddenTextarea.setAttribute("autocomplete","off"),this.hiddenTextarea.setAttribute("spellcheck","false"),this.hiddenTextarea.setAttribute("data-fabric-hiddentextarea",""),this.hiddenTextarea.setAttribute("wrap","off");var e=this._calcTextareaPosition();this.hiddenTextarea.style.cssText="position: absolute; top: "+e.top+"; left: "+e.left+"; z-index: -999; opacity: 0; width: 1px; height: 1px; font-size: 1px; padding-top: "+e.fontSize+";",this.hiddenTextareaContainer?this.hiddenTextareaContainer.appendChild(this.hiddenTextarea):n.document.body.appendChild(this.hiddenTextarea),n.util.addListener(this.hiddenTextarea,"keydown",this.onKeyDown.bind(this)),n.util.addListener(this.hiddenTextarea,"keyup",this.onKeyUp.bind(this)),n.util.addListener(this.hiddenTextarea,"input",this.onInput.bind(this)),n.util.addListener(this.hiddenTextarea,"copy",this.copy.bind(this)),n.util.addListener(this.hiddenTextarea,"cut",this.copy.bind(this)),n.util.addListener(this.hiddenTextarea,"paste",this.paste.bind(this)),n.util.addListener(this.hiddenTextarea,"compositionstart",this.onCompositionStart.bind(this)),n.util.addListener(this.hiddenTextarea,"compositionupdate",this.onCompositionUpdate.bind(this)),n.util.addListener(this.hiddenTextarea,"compositionend",this.onCompositionEnd.bind(this)),!this._clickHandlerInitialized&&this.canvas&&(n.util.addListener(this.canvas.upperCanvasEl,"click",this.onClick.bind(this)),this._clickHandlerInitialized=!0)},keysMap:{9:"exitEditing",27:"exitEditing",33:"moveCursorUp",34:"moveCursorDown",35:"moveCursorRight",36:"moveCursorLeft",37:"moveCursorLeft",38:"moveCursorUp",39:"moveCursorRight",40:"moveCursorDown"},keysMapRtl:{9:"exitEditing",27:"exitEditing",33:"moveCursorUp",34:"moveCursorDown",35:"moveCursorLeft",36:"moveCursorRight",37:"moveCursorRight",38:"moveCursorUp",39:"moveCursorLeft",40:"moveCursorDown"},ctrlKeysMapUp:{67:"copy",88:"cut"},ctrlKeysMapDown:{65:"selectAll"},onClick:function(){this.hiddenTextarea&&this.hiddenTextarea.focus()},onKeyDown:function(e){if(this.isEditing){var t="rtl"===this.direction?this.keysMapRtl:this.keysMap;if(e.keyCode in t)this[t[e.keyCode]](e);else{if(!(e.keyCode in this.ctrlKeysMapDown)||!e.ctrlKey&&!e.metaKey)return;this[this.ctrlKeysMapDown[e.keyCode]](e)}e.stopImmediatePropagation(),e.preventDefault(),e.keyCode>=33&&e.keyCode<=40?(this.inCompositionMode=!1,this.clearContextTop(),this.renderCursorOrSelection()):this.canvas&&this.canvas.requestRenderAll()}},onKeyUp:function(e){!this.isEditing||this._copyDone||this.inCompositionMode?this._copyDone=!1:e.keyCode in this.ctrlKeysMapUp&&(e.ctrlKey||e.metaKey)&&(this[this.ctrlKeysMapUp[e.keyCode]](e),e.stopImmediatePropagation(),e.preventDefault(),this.canvas&&this.canvas.requestRenderAll())},onInput:function(e){var t=this.fromPaste;if(this.fromPaste=!1,e&&e.stopPropagation(),this.isEditing){var i,s,r,o,a,c=this._splitTextIntoLines(this.hiddenTextarea.value).graphemeText,l=this._text.length,h=c.length,d=h-l,u=this.selectionStart,g=this.selectionEnd,p=u!==g;if(""===this.hiddenTextarea.value)return this.styles={},this.updateFromTextArea(),this.fire("changed"),void(this.canvas&&(this.canvas.fire("text:changed",{target:this}),this.canvas.requestRenderAll()));var m=this.fromStringToGraphemeSelection(this.hiddenTextarea.selectionStart,this.hiddenTextarea.selectionEnd,this.hiddenTextarea.value),f=u>m.selectionStart;p?(i=this._text.slice(u,g),d+=g-u):h<l&&(i=f?this._text.slice(g+d,g):this._text.slice(u,u-d)),s=c.slice(m.selectionEnd-d,m.selectionEnd),i&&i.length&&(s.length&&(r=this.getSelectionStyles(u,u+1,!1),r=s.map((function(){return r[0]}))),p?(o=u,a=g):f?(o=g-i.length,a=g):(o=g,a=g+i.length),this.removeStyleFromTo(o,a)),s.length&&(t&&s.join("")===n.copiedText&&!n.disableStyleCopyPaste&&(r=n.copiedTextStyle),this.insertNewStyleBlock(s,u,r)),this.updateFromTextArea(),this.fire("changed"),this.canvas&&(this.canvas.fire("text:changed",{target:this}),this.canvas.requestRenderAll())}},onCompositionStart:function(){this.inCompositionMode=!0},onCompositionEnd:function(){this.inCompositionMode=!1},onCompositionUpdate:function(e){this.compositionStart=e.target.selectionStart,this.compositionEnd=e.target.selectionEnd,this.updateTextareaPosition()},copy:function(){this.selectionStart!==this.selectionEnd&&(n.copiedText=this.getSelectedText(),n.disableStyleCopyPaste?n.copiedTextStyle=null:n.copiedTextStyle=this.getSelectionStyles(this.selectionStart,this.selectionEnd,!0),this._copyDone=!0)},paste:function(){this.fromPaste=!0},_getClipboardData:function(e){return e&&e.clipboardData||n.window.clipboardData},_getWidthBeforeCursor:function(e,t){var i,s=this._getLineLeftOffset(e);return t>0&&(s+=(i=this.__charBounds[e][t-1]).left+i.width),s},getDownCursorOffset:function(e,t){var i=this._getSelectionForOffset(e,t),s=this.get2DCursorLocation(i),n=s.lineIndex;if(n===this._textLines.length-1||e.metaKey||34===e.keyCode)return this._text.length-i;var r=s.charIndex,o=this._getWidthBeforeCursor(n,r),a=this._getIndexOnLine(n+1,o);return this._textLines[n].slice(r).length+a+1+this.missingNewlineOffset(n)},_getSelectionForOffset:function(e,t){return e.shiftKey&&this.selectionStart!==this.selectionEnd&&t?this.selectionEnd:this.selectionStart},getUpCursorOffset:function(e,t){var i=this._getSelectionForOffset(e,t),s=this.get2DCursorLocation(i),n=s.lineIndex;if(0===n||e.metaKey||33===e.keyCode)return-i;var r=s.charIndex,o=this._getWidthBeforeCursor(n,r),a=this._getIndexOnLine(n-1,o),c=this._textLines[n].slice(0,r),l=this.missingNewlineOffset(n-1);return-this._textLines[n-1].length+a-c.length+(1-l)},_getIndexOnLine:function(e,t){for(var i,s,n=this._textLines[e],r=this._getLineLeftOffset(e),o=0,a=0,c=n.length;a<c;a++)if((r+=i=this.__charBounds[e][a].width)>t){s=!0;var l=r-i,h=r,d=Math.abs(l-t);o=Math.abs(h-t)<d?a:a-1;break}return s||(o=n.length-1),o},moveCursorDown:function(e){this.selectionStart>=this._text.length&&this.selectionEnd>=this._text.length||this._moveCursorUpOrDown("Down",e)},moveCursorUp:function(e){0===this.selectionStart&&0===this.selectionEnd||this._moveCursorUpOrDown("Up",e)},_moveCursorUpOrDown:function(e,t){var i=this["get"+e+"CursorOffset"](t,"right"===this._selectionDirection);t.shiftKey?this.moveCursorWithShift(i):this.moveCursorWithoutShift(i),0!==i&&(this.setSelectionInBoundaries(),this.abortCursorAnimation(),this._currentCursorOpacity=1,this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())},moveCursorWithShift:function(e){var t="left"===this._selectionDirection?this.selectionStart+e:this.selectionEnd+e;return this.setSelectionStartEndWithShift(this.selectionStart,this.selectionEnd,t),0!==e},moveCursorWithoutShift:function(e){return e<0?(this.selectionStart+=e,this.selectionEnd=this.selectionStart):(this.selectionEnd+=e,this.selectionStart=this.selectionEnd),0!==e},moveCursorLeft:function(e){0===this.selectionStart&&0===this.selectionEnd||this._moveCursorLeftOrRight("Left",e)},_move:function(e,t,i){var s;if(e.altKey)s=this["findWordBoundary"+i](this[t]);else{if(!e.metaKey&&35!==e.keyCode&&36!==e.keyCode)return this[t]+="Left"===i?-1:1,!0;s=this["findLineBoundary"+i](this[t])}if("undefined"!==typeof s&&this[t]!==s)return this[t]=s,!0},_moveLeft:function(e,t){return this._move(e,t,"Left")},_moveRight:function(e,t){return this._move(e,t,"Right")},moveCursorLeftWithoutShift:function(e){var t=!0;return this._selectionDirection="left",this.selectionEnd===this.selectionStart&&0!==this.selectionStart&&(t=this._moveLeft(e,"selectionStart")),this.selectionEnd=this.selectionStart,t},moveCursorLeftWithShift:function(e){return"right"===this._selectionDirection&&this.selectionStart!==this.selectionEnd?this._moveLeft(e,"selectionEnd"):0!==this.selectionStart?(this._selectionDirection="left",this._moveLeft(e,"selectionStart")):void 0},moveCursorRight:function(e){this.selectionStart>=this._text.length&&this.selectionEnd>=this._text.length||this._moveCursorLeftOrRight("Right",e)},_moveCursorLeftOrRight:function(e,t){var i="moveCursor"+e+"With";this._currentCursorOpacity=1,t.shiftKey?i+="Shift":i+="outShift",this[i](t)&&(this.abortCursorAnimation(),this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())},moveCursorRightWithShift:function(e){return"left"===this._selectionDirection&&this.selectionStart!==this.selectionEnd?this._moveRight(e,"selectionStart"):this.selectionEnd!==this._text.length?(this._selectionDirection="right",this._moveRight(e,"selectionEnd")):void 0},moveCursorRightWithoutShift:function(e){var t=!0;return this._selectionDirection="right",this.selectionStart===this.selectionEnd?(t=this._moveRight(e,"selectionStart"),this.selectionEnd=this.selectionStart):this.selectionStart=this.selectionEnd,t},removeChars:function(e,t){"undefined"===typeof t&&(t=e+1),this.removeStyleFromTo(e,t),this._text.splice(e,t-e),this.text=this._text.join(""),this.set("dirty",!0),this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this._removeExtraneousStyles()},insertChars:function(e,t,i,s){"undefined"===typeof s&&(s=i),s>i&&this.removeStyleFromTo(i,s);var r=n.util.string.graphemeSplit(e);this.insertNewStyleBlock(r,i,t),this._text=[].concat(this._text.slice(0,i),r,this._text.slice(s)),this.text=this._text.join(""),this.set("dirty",!0),this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this._removeExtraneousStyles()}}),function(){var e=n.util.toFixed,t=n.util.radiansToDegrees,i=n.util.calcRotateMatrix,s=n.util.transformPoint,r=/ +/g;n.util.object.extend(n.Text.prototype,{_toSVG:function(){var e=this._getSVGLeftTopOffsets(),t=this._getSVGTextAndBg(e.textTop,e.textLeft);return this._wrapSVGTextAndBg(t)},toSVG:function(e){var t=this._createBaseSVGMarkup(this._toSVG(),{reviver:e,noStyle:!0,withShadow:!0}),i=this.path;return i?t+i._createBaseSVGMarkup(i._toSVG(),{reviver:e,withShadow:!0}):t},_getSVGLeftTopOffsets:function(){return{textLeft:-this.width/2,textTop:-this.height/2,lineTop:this.getHeightOfLine(0)}},_wrapSVGTextAndBg:function(e){var t=this.getSvgTextDecoration(this);return[e.textBgRects.join(""),'\t\t<text xml:space="preserve" ',this.fontFamily?'font-family="'+this.fontFamily.replace(/"/g,"'")+'" ':"",this.fontSize?'font-size="'+this.fontSize+'" ':"",this.fontStyle?'font-style="'+this.fontStyle+'" ':"",this.fontWeight?'font-weight="'+this.fontWeight+'" ':"",t?'text-decoration="'+t+'" ':"",'style="',this.getSvgStyles(!0),'"',this.addPaintOrder()," >",e.textSpans.join(""),"</text>\n"]},_getSVGTextAndBg:function(e,t){var i,s=[],n=[],r=e;this._setSVGBg(n);for(var o=0,a=this._textLines.length;o<a;o++)i=this._getLineLeftOffset(o),(this.textBackgroundColor||this.styleHas("textBackgroundColor",o))&&this._setSVGTextLineBg(n,o,t+i,r),this._setSVGTextLineText(s,o,t+i,r),r+=this.getHeightOfLine(o);return{textSpans:s,textBgRects:n}},_createTextCharSpan:function(o,a,c,l,h){var d=o!==o.trim()||o.match(r),u=this.getSvgSpanStyles(a,d),g=u?'style="'+u+'"':"",p=a.deltaY,m="",f=n.Object.NUM_FRACTION_DIGITS,_="";if(p&&(m=' dy="'+e(p,f)+'" '),void 0!==h.renderLeft){var v=h.angle;_=' rotate="'+e(t(v),n.Object.NUM_FRACTION_DIGITS)+'" ';var C=h.width/2,E=i({angle:t(v)});E[4]=h.renderLeft,E[5]=h.renderTop;var b=s({x:-C,y:0},E);c=b.x,l=b.y}return['<tspan x="',e(c,f),'" y="',e(l,f),'" ',m,g,_,">",n.util.string.escapeXml(o),"</tspan>"].join("")},_setSVGTextLineText:function(e,t,i,s){var r,o,a,c,l,h=this.getHeightOfLine(t),d=-1!==this.textAlign.indexOf("justify"),u="",g=0,p=this._textLines[t];s+=h*(1-this._fontSizeFraction)/this.lineHeight;for(var m=0,f=p.length-1;m<=f;m++)l=m===f||this.charSpacing||this.path,u+=p[m],a=this.__charBounds[t][m],0===g?(i+=a.kernedWidth-a.width,g+=a.width):g+=a.kernedWidth,d&&!l&&this._reSpaceAndTab.test(p[m])&&(l=!0),l||(r=r||this.getCompleteStyleDeclaration(t,m),o=this.getCompleteStyleDeclaration(t,m+1),l=n.util.hasStyleChanged(r,o,!0)),l&&(c=this._getStyleDeclaration(t,m)||{},e.push(this._createTextCharSpan(u,c,i,s,a)),u="",r=o,i+=g,g=0)},_pushTextBgRect:function(t,i,s,r,o,a){var c=n.Object.NUM_FRACTION_DIGITS;t.push("\t\t<rect ",this._getFillAttributes(i),' x="',e(s,c),'" y="',e(r,c),'" width="',e(o,c),'" height="',e(a,c),'"></rect>\n')},_setSVGTextLineBg:function(e,t,i,s){for(var n,r,o=this._textLines[t],a=this.getHeightOfLine(t)/this.lineHeight,c=0,l=0,h=this.getValueOfPropertyAt(t,0,"textBackgroundColor"),d=0,u=o.length;d<u;d++)n=this.__charBounds[t][d],(r=this.getValueOfPropertyAt(t,d,"textBackgroundColor"))!==h?(h&&this._pushTextBgRect(e,h,i+l,s,c,a),l=n.left,c=n.width,h=r):c+=n.kernedWidth;r&&this._pushTextBgRect(e,r,i+l,s,c,a)},_getFillAttributes:function(e){var t=e&&"string"===typeof e?new n.Color(e):"";return t&&t.getSource()&&1!==t.getAlpha()?'opacity="'+t.getAlpha()+'" fill="'+t.setAlpha(1).toRgb()+'"':'fill="'+e+'"'},_getSVGLineTopOffset:function(e){for(var t,i=0,s=0;s<e;s++)i+=this.getHeightOfLine(s);return t=this.getHeightOfLine(s),{lineTop:i,offset:(this._fontSizeMult-this._fontSizeFraction)*t/(this.lineHeight*this._fontSizeMult)}},getSvgStyles:function(e){return n.Object.prototype.getSvgStyles.call(this,e)+" white-space: pre;"}})}(),function(e){"use strict";var t=e.fabric||(e.fabric={});t.Textbox=t.util.createClass(t.IText,t.Observable,{type:"textbox",minWidth:20,dynamicMinWidth:2,__cachedLines:null,lockScalingFlip:!0,noScaleCache:!1,_dimensionAffectingProps:t.Text.prototype._dimensionAffectingProps.concat("width"),_wordJoiners:/[ \t\r]/,splitByGrapheme:!1,initDimensions:function(){this.__skipDimension||(this.isEditing&&this.initDelayedCursor(),this.clearContextTop(),this._clearCache(),this.dynamicMinWidth=0,this._styleMap=this._generateStyleMap(this._splitText()),this.dynamicMinWidth>this.width&&this._set("width",this.dynamicMinWidth),-1!==this.textAlign.indexOf("justify")&&this.enlargeSpaces(),this.height=this.calcTextHeight(),this.saveState({propertySet:"_dimensionAffectingProps"}))},_generateStyleMap:function(e){for(var t=0,i=0,s=0,n={},r=0;r<e.graphemeLines.length;r++)"\n"===e.graphemeText[s]&&r>0?(i=0,s++,t++):!this.splitByGrapheme&&this._reSpaceAndTab.test(e.graphemeText[s])&&r>0&&(i++,s++),n[r]={line:t,offset:i},s+=e.graphemeLines[r].length,i+=e.graphemeLines[r].length;return n},styleHas:function(e,i){if(this._styleMap&&!this.isWrapping){var s=this._styleMap[i];s&&(i=s.line)}return t.Text.prototype.styleHas.call(this,e,i)},isEmptyStyles:function(e){if(!this.styles)return!0;var t,i,s=0,n=!1,r=this._styleMap[e],o=this._styleMap[e+1];for(var a in r&&(e=r.line,s=r.offset),o&&(n=o.line===e,t=o.offset),i="undefined"===typeof e?this.styles:{line:this.styles[e]})for(var c in i[a])if(c>=s&&(!n||c<t))for(var l in i[a][c])return!1;return!0},_getStyleDeclaration:function(e,t){if(this._styleMap&&!this.isWrapping){var i=this._styleMap[e];if(!i)return null;e=i.line,t=i.offset+t}return this.callSuper("_getStyleDeclaration",e,t)},_setStyleDeclaration:function(e,t,i){var s=this._styleMap[e];e=s.line,t=s.offset+t,this.styles[e][t]=i},_deleteStyleDeclaration:function(e,t){var i=this._styleMap[e];e=i.line,t=i.offset+t,delete this.styles[e][t]},_getLineStyle:function(e){var t=this._styleMap[e];return!!this.styles[t.line]},_setLineStyle:function(e){var t=this._styleMap[e];this.styles[t.line]={}},_wrapText:function(e,t){var i,s=[];for(this.isWrapping=!0,i=0;i<e.length;i++)s=s.concat(this._wrapLine(e[i],i,t));return this.isWrapping=!1,s},_measureWord:function(e,t,i){var s,n=0;i=i||0;for(var r=0,o=e.length;r<o;r++){n+=this._getGraphemeBox(e[r],t,r+i,s,true).kernedWidth,s=e[r]}return n},_wrapLine:function(e,i,s,n){var r=0,o=this.splitByGrapheme,a=[],c=[],l=o?t.util.string.graphemeSplit(e):e.split(this._wordJoiners),h="",d=0,u=o?"":" ",g=0,p=0,m=0,f=!0,_=this._getWidthOfCharSpacing();n=n||0;0===l.length&&l.push([]),s-=n;for(var v=0;v<l.length;v++)h=o?l[v]:t.util.string.graphemeSplit(l[v]),g=this._measureWord(h,i,d),d+=h.length,(r+=p+g-_)>s&&!f?(a.push(c),c=[],r=g,f=!0):r+=_,f||o||c.push(u),c=c.concat(h),p=o?0:this._measureWord([u],i,d),d++,f=!1,g>m&&(m=g);return v&&a.push(c),m+n>this.dynamicMinWidth&&(this.dynamicMinWidth=m-_+n),a},isEndOfWrapping:function(e){return!this._styleMap[e+1]||this._styleMap[e+1].line!==this._styleMap[e].line},missingNewlineOffset:function(e,t){return this.splitByGrapheme&&!t?this.isEndOfWrapping(e)?1:0:1},_splitTextIntoLines:function(e){for(var i=t.Text.prototype._splitTextIntoLines.call(this,e),s=this._wrapText(i.lines,this.width),n=new Array(s.length),r=0;r<s.length;r++)n[r]=s[r].join("");return i.lines=n,i.graphemeLines=s,i},getMinWidth:function(){return Math.max(this.minWidth,this.dynamicMinWidth)},_removeExtraneousStyles:function(){var e={};for(var t in this._styleMap)this._textLines[t]&&(e[this._styleMap[t].line]=1);for(var t in this.styles)e[t]||delete this.styles[t]},toObject:function(e){return this.callSuper("toObject",["minWidth","splitByGrapheme"].concat(e))}}),t.Textbox.fromObject=function(e,i){var s=t.util.stylesFromArray(e.styles,e.text),n=Object.assign({},e,{styles:s});return delete n.path,t.Object._fromObject("Textbox",n,(function(s){e.path?t.Object._fromObject("Path",e.path,(function(e){s.set("path",e),i(s)}),"path"):i(s)}),"text")}}(t),function(){var e=n.controlsUtils,t=e.scaleSkewCursorStyleHandler,i=e.scaleCursorStyleHandler,s=e.scalingEqually,r=e.scalingYOrSkewingX,o=e.scalingXOrSkewingY,a=e.scaleOrSkewActionName,c=n.Object.prototype.controls;if(c.ml=new n.Control({x:-.5,y:0,cursorStyleHandler:t,actionHandler:o,getActionName:a}),c.mr=new n.Control({x:.5,y:0,cursorStyleHandler:t,actionHandler:o,getActionName:a}),c.mb=new n.Control({x:0,y:.5,cursorStyleHandler:t,actionHandler:r,getActionName:a}),c.mt=new n.Control({x:0,y:-.5,cursorStyleHandler:t,actionHandler:r,getActionName:a}),c.tl=new n.Control({x:-.5,y:-.5,cursorStyleHandler:i,actionHandler:s}),c.tr=new n.Control({x:.5,y:-.5,cursorStyleHandler:i,actionHandler:s}),c.bl=new n.Control({x:-.5,y:.5,cursorStyleHandler:i,actionHandler:s}),c.br=new n.Control({x:.5,y:.5,cursorStyleHandler:i,actionHandler:s}),c.mtr=new n.Control({x:0,y:-.5,actionHandler:e.rotationWithSnapping,cursorStyleHandler:e.rotationStyleHandler,offsetY:-40,withConnection:!0,actionName:"rotate"}),n.Textbox){var l=n.Textbox.prototype.controls={};l.mtr=c.mtr,l.tr=c.tr,l.br=c.br,l.tl=c.tl,l.bl=c.bl,l.mt=c.mt,l.mb=c.mb,l.mr=new n.Control({x:.5,y:0,actionHandler:e.changeWidth,cursorStyleHandler:t,actionName:"resizing"}),l.ml=new n.Control({x:-.5,y:0,actionHandler:e.changeWidth,cursorStyleHandler:t,actionName:"resizing"})}}()},26437:e=>{e.exports=function(e,t,i){return e===e&&(void 0!==i&&(e=e<=i?e:i),void 0!==t&&(e=e>=t?e:t)),e}},33157:(e,t,i)=>{var s=i(33609),n=i(89807);e.exports=function(e,t,i,r){var o=e.length;for((i=s(i))<0&&(i=-i>o?0:o+i),(r=void 0===r||r>o?o:s(r))<0&&(r+=o),r=i>r?0:n(r);i<r;)e[i++]=t;return e}},79064:(e,t,i)=>{var s=i(59368),n=i(63819);e.exports=function e(t,i,r,o,a){var c=-1,l=t.length;for(r||(r=n),a||(a=[]);++c<l;){var h=t[c];i>0&&r(h)?i>1?e(h,i-1,r,o,a):s(a,h):o||(a[a.length]=h)}return a}},63010:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e,i){return null!=e&&t.call(e,i)}},80531:(e,t,i)=>{var s=i(68097),n=i(88834),r=i(12529),o=i(92061);e.exports=function(e,t){return t=s(t,e),null==(e=r(e,t))||delete e[o(n(t))]}},24410:(e,t,i)=>{var s=i(20011);e.exports=function(e){return s(e)?void 0:e}},34408:(e,t,i)=>{var s=i(73917),n=i(39069),r=i(72633);e.exports=function(e){return r(n(e,void 0,s),e+"")}},63819:(e,t,i)=>{var s=i(537),n=i(52964),r=i(19305),o=s?s.isConcatSpreadable:void 0;e.exports=function(e){return r(e)||n(e)||!!(o&&e&&e[o])}},12529:(e,t,i)=>{var s=i(43238),n=i(32112);e.exports=function(e,t){return t.length<2?e:s(e,n(t,0,-1))}},39439:(e,t,i)=>{var s=i(33157),n=i(90552);e.exports=function(e,t,i,r){var o=null==e?0:e.length;return o?(i&&"number"!=typeof i&&n(e,t,i)&&(i=0,r=o),s(e,t,i,r)):[]}},73917:(e,t,i)=>{var s=i(79064);e.exports=function(e){return(null==e?0:e.length)?s(e,1):[]}},81824:(e,t,i)=>{var s=i(63010),n=i(78326);e.exports=function(e,t){return null!=e&&n(e,t,s)}},61199:(e,t,i)=>{var s=i(16320),n=i(59698);e.exports=function(e){return"number"==typeof e||n(e)&&"[object Number]"==s(e)}},88834:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},52708:(e,t,i)=>{var s=i(634),n=i(35647)((function(e,t,i,n){s(e,t,i,n)}));e.exports=n},62091:(e,t,i)=>{var s=i(54380),n=i(35367),r=i(80531),o=i(68097),a=i(62871),c=i(24410),l=i(34408),h=i(35725),d=l((function(e,t){var i={};if(null==e)return i;var l=!1;t=s(t,(function(t){return t=o(t,e),l||(l=t.length>1),t})),a(e,h(e),i),l&&(i=n(i,7,c));for(var d=t.length;d--;)r(i,t[d]);return i}));e.exports=d},89807:(e,t,i)=>{var s=i(26437),n=i(33609);e.exports=function(e){return e?s(n(e),0,4294967295):0}},80781:(e,t,i)=>{"use strict";i.r(t),i.d(t,{CancellationTokenSource:()=>Pc,Emitter:()=>Fc,KeyCode:()=>Uc,KeyMod:()=>Hc,MarkerSeverity:()=>Gc,MarkerTag:()=>jc,Position:()=>Bc,Range:()=>Wc,Selection:()=>Vc,SelectionDirection:()=>zc,Token:()=>Yc,Uri:()=>Kc,default:()=>Zc,editor:()=>qc,languages:()=>$c});var s={};i.r(s),i.d(s,{CancellationTokenSource:()=>Pc,Emitter:()=>Fc,KeyCode:()=>Uc,KeyMod:()=>Hc,MarkerSeverity:()=>Gc,MarkerTag:()=>jc,Position:()=>Bc,Range:()=>Wc,Selection:()=>Vc,SelectionDirection:()=>zc,Token:()=>Yc,Uri:()=>Kc,editor:()=>qc,languages:()=>$c});i(44915),i(88952),i(36999),i(58590),i(6438),i(94908),i(4836);var n=i(52555),r=(i(64215),i(31659),i(99822),i(40142),i(18864),i(32516),i(20961),i(40800),i(2183),i(58568),i(63867),i(61731),i(34175),i(44588),i(70552),i(48279),i(65877),i(81091),i(99312),i(62427),i(58466),i(56800),i(28449),i(57244),i(76440),i(80409),i(58145),i(40677),i(9948),i(84325),i(15040),i(75639),i(85117),i(14614),i(95200),i(50352),i(4519),i(85646),i(77047),i(6429),i(28211),i(59731),i(57377),i(50071),i(18278),i(98745),i(44798),i(10617),i(30936),i(57197),i(90870),i(10846),i(22890),i(98472),i(50166),i(68887),i(47210),i(79907),i(38728),i(46606),i(87908)),o=i(73848),a=i(25893),c=i(5662),l=i(91508),h=i(79400),d=i(28433),u=i(31450),g=i(80301),p=i(10146),m=i(90766),f=i(51929),_=i(80789),v=i(64383),C=i(36456),E=i(25890),b=i(78209);let S;function y(e,t){const i=globalThis.MonacoEnvironment;if(i){if("function"===typeof i.getWorker)return i.getWorker("workerMain.js",t);if("function"===typeof i.getWorkerUrl){const e=i.getWorkerUrl("workerMain.js",t);return new Worker(S?S.createScriptURL(e):e,{name:t,type:"module"})}}if(e){const i=function(e,t,i){const s=/^((http:)|(https:)|(file:)|(vscode-file:))/.test(t);if(s&&t.substring(0,globalThis.origin.length)!==globalThis.origin);else{const i=t.lastIndexOf("?"),s=t.lastIndexOf("#",i),n=i>0?new URLSearchParams(t.substring(i+1,~s?s:void 0)):new URLSearchParams;C.SJ.addSearchParam(n,!0,!0);t=n.toString()?`${t}?${n.toString()}#${e}`:`${t}#${e}`}0;const n=new Blob([(0,E.Yc)([`/*${e}*/`,i?`globalThis.MonacoEnvironment = { baseUrl: '${i}' };`:void 0,`globalThis._VSCODE_NLS_MESSAGES = ${JSON.stringify((0,b.Ec)())};`,`globalThis._VSCODE_NLS_LANGUAGE = ${JSON.stringify((0,b.i8)())};`,`globalThis._VSCODE_FILE_ROOT = '${globalThis._VSCODE_FILE_ROOT}';`,"const ttPolicy = globalThis.trustedTypes?.createPolicy('defaultWorkerFactory', { createScriptURL: value => value });","globalThis.workerttPolicy = ttPolicy;",`await import(ttPolicy?.createScriptURL('${t}') ?? '${t}');`,"globalThis.postMessage({ type: 'vscode-worker-ready' });",`/*${e}*/`]).join("")],{type:"application/javascript"});return URL.createObjectURL(n)}(t,e.toString(!0)),s=new Worker(S?S.createScriptURL(i):i,{name:t,type:"module"});return function(e){return new Promise(((t,i)=>{e.onmessage=function(i){"vscode-worker-ready"===i.data.type&&(e.onmessage=null,t(e))},e.onerror=i}))}(s)}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}S="object"===typeof self&&self.constructor&&"DedicatedWorkerGlobalScope"===self.constructor.name&&void 0!==globalThis.workerttPolicy?globalThis.workerttPolicy:(0,_.H)("defaultWorkerFactory",{createScriptURL:e=>e});class w extends c.jG{constructor(e,t,i,s,n,r){super(),this.id=i,this.label=s;const o=y(e,s);"function"===typeof o.then?this.worker=o:this.worker=Promise.resolve(o),this.postMessage(t,[]),this.worker.then((e=>{e.onmessage=function(e){n(e.data)},e.onmessageerror=r,"function"===typeof e.addEventListener&&e.addEventListener("error",r)})),this._register((0,c.s)((()=>{this.worker?.then((e=>{e.onmessage=null,e.onmessageerror=null,e.removeEventListener("error",r),e.terminate()})),this.worker=null})))}getId(){return this.id}postMessage(e,t){this.worker?.then((i=>{try{i.postMessage(e,t)}catch(s){(0,v.dz)(s),(0,v.dz)(new Error(`FAILED to post message to '${this.label}'-worker`,{cause:s}))}}))}}class R{constructor(e,t){this.amdModuleId=e,this.label=t,this.esmModuleLocation=C.zl.asBrowserUri(`${e}.esm.js`)}}class L{static{this.LAST_WORKER_ID=0}constructor(){this._webWorkerFailedBeforeError=!1}create(e,t,i){const s=++L.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new w(e.esmModuleLocation,e.amdModuleId,s,e.label||"anonymous"+s,t,(e=>{(0,f.logOnceWebWorkerWarning)(e),this._webWorkerFailedBeforeError=e,i(e)}))}}var T=i(36677),x=i(17469),k=i(16545),A=i(23750),N=i(90360),I=i(18801),O=i(78381),D=i(56942),M=i(41845),P=i(87723),F=i(86571),U=i(8597),H=i(47443),B=i(80718),W=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},V=function(e,t){return function(i,s){t(i,s,e)}};const z=3e5;function G(e,t){const i=e.getModel(t);return!!i&&!i.isTooLargeForSyncing()}let j=class extends c.jG{constructor(e,t,i,s,n,r){super(),this._languageConfigurationService=n,this._modelService=t,this._workerManager=this._register(new Y(e,this._modelService)),this._logService=s,this._register(r.linkProvider.register({language:"*",hasAccessToAllModels:!0},{provideLinks:async(e,t)=>{if(!G(this._modelService,e.uri))return Promise.resolve({links:[]});const i=await this._workerWithResources([e.uri]),s=await i.$computeLinks(e.uri.toString());return s&&{links:s}}})),this._register(r.completionProvider.register("*",new K(this._workerManager,i,this._modelService,this._languageConfigurationService)))}dispose(){super.dispose()}canComputeUnicodeHighlights(e){return G(this._modelService,e)}async computedUnicodeHighlights(e,t,i){return(await this._workerWithResources([e])).$computeUnicodeHighlights(e.toString(),t,i)}async computeDiff(e,t,i,s){const n=await this._workerWithResources([e,t],!0),r=await n.$computeDiff(e.toString(),t.toString(),i,s);if(!r)return null;return{identical:r.identical,quitEarly:r.quitEarly,changes:o(r.changes),moves:r.moves.map((e=>new M.t(new P.WL(new F.M(e[0],e[1]),new F.M(e[2],e[3])),o(e[4]))))};function o(e){return e.map((e=>new P.wm(new F.M(e[0],e[1]),new F.M(e[2],e[3]),e[4]?.map((e=>new P.q6(new T.Q(e[0],e[1],e[2],e[3]),new T.Q(e[4],e[5],e[6],e[7])))))))}}async computeMoreMinimalEdits(e,t,i=!1){if((0,E.EI)(t)){if(!G(this._modelService,e))return Promise.resolve(t);const s=O.W.create(),n=this._workerWithResources([e]).then((s=>s.$computeMoreMinimalEdits(e.toString(),t,i)));return n.finally((()=>this._logService.trace("FORMAT#computeMoreMinimalEdits",e.toString(!0),s.elapsed()))),Promise.race([n,(0,m.wR)(1e3).then((()=>t))])}return Promise.resolve(void 0)}canNavigateValueSet(e){return G(this._modelService,e)}async navigateValueSet(e,t,i){const s=this._modelService.getModel(e);if(!s)return null;const n=this._languageConfigurationService.getLanguageConfiguration(s.getLanguageId()).getWordDefinition(),r=n.source,o=n.flags;return(await this._workerWithResources([e])).$navigateValueSet(e.toString(),t,i,r,o)}canComputeWordRanges(e){return G(this._modelService,e)}async computeWordRanges(e,t){const i=this._modelService.getModel(e);if(!i)return Promise.resolve(null);const s=this._languageConfigurationService.getLanguageConfiguration(i.getLanguageId()).getWordDefinition(),n=s.source,r=s.flags;return(await this._workerWithResources([e])).$computeWordRanges(e.toString(),t,n,r)}async findSectionHeaders(e,t){return(await this._workerWithResources([e])).$findSectionHeaders(e.toString(),t)}async computeDefaultDocumentColors(e){return(await this._workerWithResources([e])).$computeDefaultDocumentColors(e.toString())}async _workerWithResources(e,t=!1){const i=await this._workerManager.withWorker();return await i.workerWithSyncedResources(e,t)}};j=W([V(1,A.IModelService),V(2,N.ITextResourceConfigurationService),V(3,I.rr),V(4,x.JZ),V(5,D.ILanguageFeaturesService)],j);class K{constructor(e,t,i,s){this.languageConfigurationService=s,this._debugDisplayName="wordbasedCompletions",this._workerManager=e,this._configurationService=t,this._modelService=i}async provideCompletionItems(e,t){const i=this._configurationService.getValue(e.uri,t,"editor");if("off"===i.wordBasedSuggestions)return;const s=[];if("currentDocument"===i.wordBasedSuggestions)G(this._modelService,e.uri)&&s.push(e.uri);else for(const h of this._modelService.getModels())G(this._modelService,h.uri)&&(h===e?s.unshift(h.uri):"allDocuments"!==i.wordBasedSuggestions&&h.getLanguageId()!==e.getLanguageId()||s.push(h.uri));if(0===s.length)return;const n=this.languageConfigurationService.getLanguageConfiguration(e.getLanguageId()).getWordDefinition(),r=e.getWordAtPosition(t),o=r?new T.Q(t.lineNumber,r.startColumn,t.lineNumber,r.endColumn):T.Q.fromPositions(t),a=o.setEndPosition(t.lineNumber,t.column),c=await this._workerManager.withWorker(),l=await c.textualSuggest(s,r?.word,n);return l?{duration:l.duration,suggestions:l.words.map((e=>({kind:18,label:e,insertText:e,range:{insert:a,replace:o}})))}:void 0}}let Y=class extends c.jG{constructor(e,t){super(),this._workerDescriptor=e,this._modelService=t,this._editorWorkerClient=null,this._lastWorkerUsedTime=(new Date).getTime();this._register(new U.Be).cancelAndSet((()=>this._checkStopIdleWorker()),Math.round(15e4),a.G),this._register(this._modelService.onModelRemoved((e=>this._checkStopEmptyWorker())))}dispose(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),super.dispose()}_checkStopEmptyWorker(){if(!this._editorWorkerClient)return;0===this._modelService.getModels().length&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}_checkStopIdleWorker(){if(!this._editorWorkerClient)return;(new Date).getTime()-this._lastWorkerUsedTime>z&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}withWorker(){return this._lastWorkerUsedTime=(new Date).getTime(),this._editorWorkerClient||(this._editorWorkerClient=new $(this._workerDescriptor,!1,this._modelService)),Promise.resolve(this._editorWorkerClient)}};Y=W([V(1,A.IModelService)],Y);class q{constructor(e){this._instance=e,this.proxy=this._instance}dispose(){this._instance.dispose()}setChannel(e,t){throw new Error("Not supported")}}let $=class extends c.jG{constructor(e,t,i){super(),this._workerDescriptor=e,this._disposed=!1,this._modelService=i,this._keepIdleModels=t,this._worker=null,this._modelManager=null}fhr(e,t){throw new Error("Not implemented!")}_getOrCreateWorker(){if(!this._worker)try{this._worker=this._register(function(e,t){const i="string"===typeof e?new R(e,t):e;return new f.SimpleWorkerClient(new L,i)}(this._workerDescriptor)),B.EditorWorkerHost.setChannel(this._worker,this._createEditorWorkerHost())}catch(e){(0,f.logOnceWebWorkerWarning)(e),this._worker=this._createFallbackLocalWorker()}return this._worker}async _getProxy(){try{const e=this._getOrCreateWorker().proxy;return await e.$ping(),e}catch(e){return(0,f.logOnceWebWorkerWarning)(e),this._worker=this._createFallbackLocalWorker(),this._worker.proxy}}_createFallbackLocalWorker(){return new q(new k.EditorSimpleWorker(this._createEditorWorkerHost(),null))}_createEditorWorkerHost(){return{$fhr:(e,t)=>this.fhr(e,t)}}_getOrCreateModelManager(e){return this._modelManager||(this._modelManager=this._register(new H.WorkerTextModelSyncClient(e,this._modelService,this._keepIdleModels))),this._modelManager}async workerWithSyncedResources(e,t=!1){if(this._disposed)return Promise.reject((0,v.aD)());const i=await this._getProxy();return this._getOrCreateModelManager(i).ensureSyncedResources(e,t),i}async textualSuggest(e,t,i){const s=await this.workerWithSyncedResources(e),n=i.source,r=i.flags;return s.$textualSuggest(e.map((e=>e.toString())),t,n,r)}dispose(){super.dispose(),this._disposed=!0}};$=W([V(2,A.IModelService)],$);var Q=i(41234),X=i(58925),Z=i(47612),J=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},ee=function(e,t){return function(i,s){t(i,s,e)}};let te=class extends c.jG{constructor(e){super(),this._themeService=e,this._onWillCreateCodeEditor=this._register(new Q.vl),this._onCodeEditorAdd=this._register(new Q.vl),this.onCodeEditorAdd=this._onCodeEditorAdd.event,this._onCodeEditorRemove=this._register(new Q.vl),this.onCodeEditorRemove=this._onCodeEditorRemove.event,this._onWillCreateDiffEditor=this._register(new Q.vl),this._onDiffEditorAdd=this._register(new Q.vl),this.onDiffEditorAdd=this._onDiffEditorAdd.event,this._onDiffEditorRemove=this._register(new Q.vl),this.onDiffEditorRemove=this._onDiffEditorRemove.event,this._decorationOptionProviders=new Map,this._codeEditorOpenHandlers=new X.w,this._modelProperties=new Map,this._codeEditors=Object.create(null),this._diffEditors=Object.create(null),this._globalStyleSheet=null}willCreateCodeEditor(){this._onWillCreateCodeEditor.fire()}addCodeEditor(e){this._codeEditors[e.getId()]=e,this._onCodeEditorAdd.fire(e)}removeCodeEditor(e){delete this._codeEditors[e.getId()]&&this._onCodeEditorRemove.fire(e)}listCodeEditors(){return Object.keys(this._codeEditors).map((e=>this._codeEditors[e]))}willCreateDiffEditor(){this._onWillCreateDiffEditor.fire()}addDiffEditor(e){this._diffEditors[e.getId()]=e,this._onDiffEditorAdd.fire(e)}listDiffEditors(){return Object.keys(this._diffEditors).map((e=>this._diffEditors[e]))}getFocusedCodeEditor(){let e=null;const t=this.listCodeEditors();for(const i of t){if(i.hasTextFocus())return i;i.hasWidgetFocus()&&(e=i)}return e}removeDecorationType(e){const t=this._decorationOptionProviders.get(e);t&&(t.refCount--,t.refCount<=0&&(this._decorationOptionProviders.delete(e),t.dispose(),this.listCodeEditors().forEach((t=>t.removeDecorationsByType(e)))))}setModelProperty(e,t,i){const s=e.toString();let n;this._modelProperties.has(s)?n=this._modelProperties.get(s):(n=new Map,this._modelProperties.set(s,n)),n.set(t,i)}getModelProperty(e,t){const i=e.toString();if(this._modelProperties.has(i)){return this._modelProperties.get(i).get(t)}}async openCodeEditor(e,t,i){for(const s of this._codeEditorOpenHandlers){const n=await s(e,t,i);if(null!==n)return n}return null}registerCodeEditorOpenHandler(e){const t=this._codeEditorOpenHandlers.unshift(e);return(0,c.s)(t)}};te=J([ee(0,Z.Gy)],te);var ie=i(32848),se=i(14718),ne=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},re=function(e,t){return function(i,s){t(i,s,e)}};let oe=class extends te{constructor(e,t){super(t),this._register(this.onCodeEditorAdd((()=>this._checkContextKey()))),this._register(this.onCodeEditorRemove((()=>this._checkContextKey()))),this._editorIsOpen=e.createKey("editorIsOpen",!1),this._activeCodeEditor=null,this._register(this.registerCodeEditorOpenHandler((async(e,t,i)=>t?this.doOpenEditor(t,e):null)))}_checkContextKey(){let e=!1;for(const t of this.listCodeEditors())if(!t.isSimpleWidget){e=!0;break}this._editorIsOpen.set(e)}setActiveCodeEditor(e){this._activeCodeEditor=e}getActiveCodeEditor(){return this._activeCodeEditor}doOpenEditor(e,t){if(!this.findModel(e,t.resource)){if(t.resource){const i=t.resource.scheme;if(i===C.ny.http||i===C.ny.https)return(0,U.CE)(t.resource.toString()),e}return null}const i=t.options?t.options.selection:null;if(i)if("number"===typeof i.endLineNumber&&"number"===typeof i.endColumn)e.setSelection(i),e.revealRangeInCenter(i,1);else{const t={lineNumber:i.startLineNumber,column:i.startColumn};e.setPosition(t),e.revealPositionInCenter(t,1)}return e}findModel(e,t){const i=e.getModel();return i&&i.uri.toString()!==t.toString()?null:i}};oe=ne([re(0,ie.fN),re(1,Z.Gy)],oe),(0,se.v)(g.T,oe,0);var ae=i(63591);const ce=(0,ae.u1)("layoutService");var le=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},he=function(e,t){return function(i,s){t(i,s,e)}};let de=class{get mainContainer(){return(0,E.Fy)(this._codeEditorService.listCodeEditors())?.getContainerDomNode()??a.G.document.body}get activeContainer(){const e=this._codeEditorService.getFocusedCodeEditor()??this._codeEditorService.getActiveCodeEditor();return e?.getContainerDomNode()??this.mainContainer}get mainContainerDimension(){return U.tG(this.mainContainer)}get activeContainerDimension(){return U.tG(this.activeContainer)}get containers(){return(0,E.Yc)(this._codeEditorService.listCodeEditors().map((e=>e.getContainerDomNode())))}getContainer(){return this.activeContainer}whenContainerStylesLoaded(){}focus(){this._codeEditorService.getFocusedCodeEditor()?.focus()}constructor(e){this._codeEditorService=e,this.onDidLayoutMainContainer=Q.Jh.None,this.onDidLayoutActiveContainer=Q.Jh.None,this.onDidLayoutContainer=Q.Jh.None,this.onDidChangeActiveContainer=Q.Jh.None,this.onDidAddContainer=Q.Jh.None,this.mainContainerOffset={top:0,quickPickTop:0},this.activeContainerOffset={top:0,quickPickTop:0}}};de=le([he(0,g.T)],de);let ue=class extends de{get mainContainer(){return this._container}constructor(e,t){super(t),this._container=e}};ue=le([he(1,g.T)],ue),(0,se.v)(ce,de,1);var ge=i(42291),pe=i(59599),me=i(58591),fe=i(47579),_e=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},ve=function(e,t){return function(i,s){t(i,s,e)}};const Ce=!1;function Ee(e){return e.scheme===C.ny.file?e.fsPath:e.path}let be=0;class Se{constructor(e,t,i,s,n,r,o){this.id=++be,this.type=0,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabel=t,this.strResource=i,this.resourceLabels=[this.resourceLabel],this.strResources=[this.strResource],this.groupId=s,this.groupOrder=n,this.sourceId=r,this.sourceOrder=o,this.isValid=!0}setValid(e){this.isValid=e}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.isValid?" VALID":"INVALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class ye{constructor(e,t){this.resourceLabel=e,this.reason=t}}class we{constructor(){this.elements=new Map}createMessage(){const e=[],t=[];for(const[,s]of this.elements){(0===s.reason?e:t).push(s.resourceLabel)}const i=[];return e.length>0&&i.push(b.kg({key:"externalRemoval",comment:["{0} is a list of filenames"]},"The following files have been closed and modified on disk: {0}.",e.join(", "))),t.length>0&&i.push(b.kg({key:"noParallelUniverses",comment:["{0} is a list of filenames"]},"The following files have been modified in an incompatible way: {0}.",t.join(", "))),i.join("\n")}get size(){return this.elements.size}has(e){return this.elements.has(e)}set(e,t){this.elements.set(e,t)}delete(e){return this.elements.delete(e)}}class Re{constructor(e,t,i,s,n,r,o){this.id=++be,this.type=1,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabels=t,this.strResources=i,this.groupId=s,this.groupOrder=n,this.sourceId=r,this.sourceOrder=o,this.removedResources=null,this.invalidatedResources=null}canSplit(){return"function"===typeof this.actual.split}removeResource(e,t,i){this.removedResources||(this.removedResources=new we),this.removedResources.has(t)||this.removedResources.set(t,new ye(e,i))}setValid(e,t,i){i?this.invalidatedResources&&(this.invalidatedResources.delete(t),0===this.invalidatedResources.size&&(this.invalidatedResources=null)):(this.invalidatedResources||(this.invalidatedResources=new we),this.invalidatedResources.has(t)||this.invalidatedResources.set(t,new ye(e,0)))}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.invalidatedResources?"INVALID":" VALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class Le{constructor(e,t){this.resourceLabel=e,this.strResource=t,this._past=[],this._future=[],this.locked=!1,this.versionId=1}dispose(){for(const e of this._past)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,0);for(const e of this._future)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,0);this.versionId++}toString(){const e=[];e.push(`* ${this.strResource}:`);for(let t=0;t<this._past.length;t++)e.push(` * [UNDO] ${this._past[t]}`);for(let t=this._future.length-1;t>=0;t--)e.push(` * [REDO] ${this._future[t]}`);return e.join("\n")}flushAllElements(){this._past=[],this._future=[],this.versionId++}_setElementValidFlag(e,t){1===e.type?e.setValid(this.resourceLabel,this.strResource,t):e.setValid(t)}setElementsValidFlag(e,t){for(const i of this._past)t(i.actual)&&this._setElementValidFlag(i,e);for(const i of this._future)t(i.actual)&&this._setElementValidFlag(i,e)}pushElement(e){for(const t of this._future)1===t.type&&t.removeResource(this.resourceLabel,this.strResource,1);this._future=[],this._past.push(e),this.versionId++}createSnapshot(e){const t=[];for(let i=0,s=this._past.length;i<s;i++)t.push(this._past[i].id);for(let i=this._future.length-1;i>=0;i--)t.push(this._future[i].id);return new fe.To(e,t)}restoreSnapshot(e){const t=e.elements.length;let i=!0,s=0,n=-1;for(let o=0,a=this._past.length;o<a;o++,s++){const r=this._past[o];i&&(s>=t||r.id!==e.elements[s])&&(i=!1,n=0),i||1!==r.type||r.removeResource(this.resourceLabel,this.strResource,0)}let r=-1;for(let o=this._future.length-1;o>=0;o--,s++){const n=this._future[o];i&&(s>=t||n.id!==e.elements[s])&&(i=!1,r=o),i||1!==n.type||n.removeResource(this.resourceLabel,this.strResource,0)}-1!==n&&(this._past=this._past.slice(0,n)),-1!==r&&(this._future=this._future.slice(r+1)),this.versionId++}getElements(){const e=[],t=[];for(const i of this._past)e.push(i.actual);for(const i of this._future)t.push(i.actual);return{past:e,future:t}}getClosestPastElement(){return 0===this._past.length?null:this._past[this._past.length-1]}getSecondClosestPastElement(){return this._past.length<2?null:this._past[this._past.length-2]}getClosestFutureElement(){return 0===this._future.length?null:this._future[this._future.length-1]}hasPastElements(){return this._past.length>0}hasFutureElements(){return this._future.length>0}splitPastWorkspaceElement(e,t){for(let i=this._past.length-1;i>=0;i--)if(this._past[i]===e){t.has(this.strResource)?this._past[i]=t.get(this.strResource):this._past.splice(i,1);break}this.versionId++}splitFutureWorkspaceElement(e,t){for(let i=this._future.length-1;i>=0;i--)if(this._future[i]===e){t.has(this.strResource)?this._future[i]=t.get(this.strResource):this._future.splice(i,1);break}this.versionId++}moveBackward(e){this._past.pop(),this._future.push(e),this.versionId++}moveForward(e){this._future.pop(),this._past.push(e),this.versionId++}}class Te{constructor(e){this.editStacks=e,this._versionIds=[];for(let t=0,i=this.editStacks.length;t<i;t++)this._versionIds[t]=this.editStacks[t].versionId}isValid(){for(let e=0,t=this.editStacks.length;e<t;e++)if(this._versionIds[e]!==this.editStacks[e].versionId)return!1;return!0}}const xe=new Le("","");xe.locked=!0;let ke=class{constructor(e,t){this._dialogService=e,this._notificationService=t,this._editStacks=new Map,this._uriComparisonKeyComputers=[]}getUriComparisonKey(e){for(const t of this._uriComparisonKeyComputers)if(t[0]===e.scheme)return t[1].getComparisonKey(e);return e.toString()}_print(e){console.log("------------------------------------"),console.log(`AFTER ${e}: `);const t=[];for(const i of this._editStacks)t.push(i[1].toString());console.log(t.join("\n"))}pushElement(e,t=fe.I_.None,i=fe.Ym.None){if(0===e.type){const s=Ee(e.resource),n=this.getUriComparisonKey(e.resource);this._pushElement(new Se(e,s,n,t.id,t.nextOrder(),i.id,i.nextOrder()))}else{const s=new Set,n=[],r=[];for(const t of e.resources){const e=Ee(t),i=this.getUriComparisonKey(t);s.has(i)||(s.add(i),n.push(e),r.push(i))}1===n.length?this._pushElement(new Se(e,n[0],r[0],t.id,t.nextOrder(),i.id,i.nextOrder())):this._pushElement(new Re(e,n,r,t.id,t.nextOrder(),i.id,i.nextOrder()))}}_pushElement(e){for(let t=0,i=e.strResources.length;t<i;t++){const i=e.resourceLabels[t],s=e.strResources[t];let n;this._editStacks.has(s)?n=this._editStacks.get(s):(n=new Le(i,s),this._editStacks.set(s,n)),n.pushElement(e)}}getLastElement(e){const t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){const e=this._editStacks.get(t);if(e.hasFutureElements())return null;const i=e.getClosestPastElement();return i?i.actual:null}return null}_splitPastWorkspaceElement(e,t){const i=e.actual.split(),s=new Map;for(const n of i){const e=Ee(n.resource),t=this.getUriComparisonKey(n.resource),i=new Se(n,e,t,0,0,0,0);s.set(i.strResource,i)}for(const n of e.strResources){if(t&&t.has(n))continue;this._editStacks.get(n).splitPastWorkspaceElement(e,s)}}_splitFutureWorkspaceElement(e,t){const i=e.actual.split(),s=new Map;for(const n of i){const e=Ee(n.resource),t=this.getUriComparisonKey(n.resource),i=new Se(n,e,t,0,0,0,0);s.set(i.strResource,i)}for(const n of e.strResources){if(t&&t.has(n))continue;this._editStacks.get(n).splitFutureWorkspaceElement(e,s)}}removeElements(e){const t="string"===typeof e?e:this.getUriComparisonKey(e);if(this._editStacks.has(t)){this._editStacks.get(t).dispose(),this._editStacks.delete(t)}}setElementsValidFlag(e,t,i){const s=this.getUriComparisonKey(e);if(this._editStacks.has(s)){this._editStacks.get(s).setElementsValidFlag(t,i)}}createSnapshot(e){const t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){return this._editStacks.get(t).createSnapshot(e)}return new fe.To(e,[])}restoreSnapshot(e){const t=this.getUriComparisonKey(e.resource);if(this._editStacks.has(t)){const i=this._editStacks.get(t);i.restoreSnapshot(e),i.hasPastElements()||i.hasFutureElements()||(i.dispose(),this._editStacks.delete(t))}}getElements(e){const t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){return this._editStacks.get(t).getElements()}return{past:[],future:[]}}_findClosestUndoElementWithSource(e){if(!e)return[null,null];let t=null,i=null;for(const[s,n]of this._editStacks){const r=n.getClosestPastElement();r&&(r.sourceId===e&&(!t||r.sourceOrder>t.sourceOrder)&&(t=r,i=s))}return[t,i]}canUndo(e){if(e instanceof fe.Ym){const[,t]=this._findClosestUndoElementWithSource(e.id);return!!t}const t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){return this._editStacks.get(t).hasPastElements()}return!1}_onError(e,t){(0,v.dz)(e);for(const i of t.strResources)this.removeElements(i);this._notificationService.error(e)}_acquireLocks(e){for(const t of e.editStacks)if(t.locked)throw new Error("Cannot acquire edit stack lock");for(const t of e.editStacks)t.locked=!0;return()=>{for(const t of e.editStacks)t.locked=!1}}_safeInvokeWithLocks(e,t,i,s,n){const r=this._acquireLocks(i);let o;try{o=t()}catch(a){return r(),s.dispose(),this._onError(a,e)}return o?o.then((()=>(r(),s.dispose(),n())),(t=>(r(),s.dispose(),this._onError(t,e)))):(r(),s.dispose(),n())}async _invokeWorkspacePrepare(e){if("undefined"===typeof e.actual.prepareUndoRedo)return c.jG.None;const t=e.actual.prepareUndoRedo();return"undefined"===typeof t?c.jG.None:t}_invokeResourcePrepare(e,t){if(1!==e.actual.type||"undefined"===typeof e.actual.prepareUndoRedo)return t(c.jG.None);const i=e.actual.prepareUndoRedo();return i?(0,c.Xm)(i)?t(i):i.then((e=>t(e))):t(c.jG.None)}_getAffectedEditStacks(e){const t=[];for(const i of e.strResources)t.push(this._editStacks.get(i)||xe);return new Te(t)}_tryToSplitAndUndo(e,t,i,s){if(t.canSplit())return this._splitPastWorkspaceElement(t,i),this._notificationService.warn(s),new Ae(this._undo(e,0,!0));for(const n of t.strResources)this.removeElements(n);return this._notificationService.warn(s),new Ae}_checkWorkspaceUndo(e,t,i,s){if(t.removedResources)return this._tryToSplitAndUndo(e,t,t.removedResources,b.kg({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",t.label,t.removedResources.createMessage()));if(s&&t.invalidatedResources)return this._tryToSplitAndUndo(e,t,t.invalidatedResources,b.kg({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",t.label,t.invalidatedResources.createMessage()));const n=[];for(const o of i.editStacks)o.getClosestPastElement()!==t&&n.push(o.resourceLabel);if(n.length>0)return this._tryToSplitAndUndo(e,t,null,b.kg({key:"cannotWorkspaceUndoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because changes were made to {1}",t.label,n.join(", ")));const r=[];for(const o of i.editStacks)o.locked&&r.push(o.resourceLabel);return r.length>0?this._tryToSplitAndUndo(e,t,null,b.kg({key:"cannotWorkspaceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,r.join(", "))):i.isValid()?null:this._tryToSplitAndUndo(e,t,null,b.kg({key:"cannotWorkspaceUndoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceUndo(e,t,i){const s=this._getAffectedEditStacks(t),n=this._checkWorkspaceUndo(e,t,s,!1);return n?n.returnValue:this._confirmAndExecuteWorkspaceUndo(e,t,s,i)}_isPartOfUndoGroup(e){if(!e.groupId)return!1;for(const[,t]of this._editStacks){const i=t.getClosestPastElement();if(i){if(i===e){const i=t.getSecondClosestPastElement();if(i&&i.groupId===e.groupId)return!0}if(i.groupId===e.groupId)return!0}}return!1}async _confirmAndExecuteWorkspaceUndo(e,t,i,s){if(t.canSplit()&&!this._isPartOfUndoGroup(t)){let n;!function(e){e[e.All=0]="All",e[e.This=1]="This",e[e.Cancel=2]="Cancel"}(n||(n={}));const{result:r}=await this._dialogService.prompt({type:ge.A.Info,message:b.kg("confirmWorkspace","Would you like to undo '{0}' across all files?",t.label),buttons:[{label:b.kg({key:"ok",comment:["{0} denotes a number that is > 1, && denotes a mnemonic"]},"&&Undo in {0} Files",i.editStacks.length),run:()=>n.All},{label:b.kg({key:"nok",comment:["&& denotes a mnemonic"]},"Undo this &&File"),run:()=>n.This}],cancelButton:{run:()=>n.Cancel}});if(r===n.Cancel)return;if(r===n.This)return this._splitPastWorkspaceElement(t,null),this._undo(e,0,!0);const o=this._checkWorkspaceUndo(e,t,i,!1);if(o)return o.returnValue;s=!0}let n;try{n=await this._invokeWorkspacePrepare(t)}catch(o){return this._onError(o,t)}const r=this._checkWorkspaceUndo(e,t,i,!0);if(r)return n.dispose(),r.returnValue;for(const a of i.editStacks)a.moveBackward(t);return this._safeInvokeWithLocks(t,(()=>t.actual.undo()),i,n,(()=>this._continueUndoInGroup(t.groupId,s)))}_resourceUndo(e,t,i){if(t.isValid){if(!e.locked)return this._invokeResourcePrepare(t,(s=>(e.moveBackward(t),this._safeInvokeWithLocks(t,(()=>t.actual.undo()),new Te([e]),s,(()=>this._continueUndoInGroup(t.groupId,i))))));{const e=b.kg({key:"cannotResourceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not undo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(e)}}else e.flushAllElements()}_findClosestUndoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(const[s,n]of this._editStacks){const r=n.getClosestPastElement();r&&(r.groupId===e&&(!t||r.groupOrder>t.groupOrder)&&(t=r,i=s))}return[t,i]}_continueUndoInGroup(e,t){if(!e)return;const[,i]=this._findClosestUndoElementInGroup(e);return i?this._undo(i,0,t):void 0}undo(e){if(e instanceof fe.Ym){const[,t]=this._findClosestUndoElementWithSource(e.id);return t?this._undo(t,e.id,!1):void 0}return"string"===typeof e?this._undo(e,0,!1):this._undo(this.getUriComparisonKey(e),0,!1)}_undo(e,t=0,i){if(!this._editStacks.has(e))return;const s=this._editStacks.get(e),n=s.getClosestPastElement();if(!n)return;if(n.groupId){const[e,s]=this._findClosestUndoElementInGroup(n.groupId);if(n!==e&&s)return this._undo(s,t,i)}if((n.sourceId!==t||n.confirmBeforeUndo)&&!i)return this._confirmAndContinueUndo(e,t,n);try{return 1===n.type?this._workspaceUndo(e,n,i):this._resourceUndo(s,n,i)}finally{Ce}}async _confirmAndContinueUndo(e,t,i){if((await this._dialogService.confirm({message:b.kg("confirmDifferentSource","Would you like to undo '{0}'?",i.label),primaryButton:b.kg({key:"confirmDifferentSource.yes",comment:["&& denotes a mnemonic"]},"&&Yes"),cancelButton:b.kg("confirmDifferentSource.no","No")})).confirmed)return this._undo(e,t,!0)}_findClosestRedoElementWithSource(e){if(!e)return[null,null];let t=null,i=null;for(const[s,n]of this._editStacks){const r=n.getClosestFutureElement();r&&(r.sourceId===e&&(!t||r.sourceOrder<t.sourceOrder)&&(t=r,i=s))}return[t,i]}canRedo(e){if(e instanceof fe.Ym){const[,t]=this._findClosestRedoElementWithSource(e.id);return!!t}const t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){return this._editStacks.get(t).hasFutureElements()}return!1}_tryToSplitAndRedo(e,t,i,s){if(t.canSplit())return this._splitFutureWorkspaceElement(t,i),this._notificationService.warn(s),new Ae(this._redo(e));for(const n of t.strResources)this.removeElements(n);return this._notificationService.warn(s),new Ae}_checkWorkspaceRedo(e,t,i,s){if(t.removedResources)return this._tryToSplitAndRedo(e,t,t.removedResources,b.kg({key:"cannotWorkspaceRedo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not redo '{0}' across all files. {1}",t.label,t.removedResources.createMessage()));if(s&&t.invalidatedResources)return this._tryToSplitAndRedo(e,t,t.invalidatedResources,b.kg({key:"cannotWorkspaceRedo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not redo '{0}' across all files. {1}",t.label,t.invalidatedResources.createMessage()));const n=[];for(const o of i.editStacks)o.getClosestFutureElement()!==t&&n.push(o.resourceLabel);if(n.length>0)return this._tryToSplitAndRedo(e,t,null,b.kg({key:"cannotWorkspaceRedoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because changes were made to {1}",t.label,n.join(", ")));const r=[];for(const o of i.editStacks)o.locked&&r.push(o.resourceLabel);return r.length>0?this._tryToSplitAndRedo(e,t,null,b.kg({key:"cannotWorkspaceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,r.join(", "))):i.isValid()?null:this._tryToSplitAndRedo(e,t,null,b.kg({key:"cannotWorkspaceRedoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceRedo(e,t){const i=this._getAffectedEditStacks(t),s=this._checkWorkspaceRedo(e,t,i,!1);return s?s.returnValue:this._executeWorkspaceRedo(e,t,i)}async _executeWorkspaceRedo(e,t,i){let s;try{s=await this._invokeWorkspacePrepare(t)}catch(r){return this._onError(r,t)}const n=this._checkWorkspaceRedo(e,t,i,!0);if(n)return s.dispose(),n.returnValue;for(const o of i.editStacks)o.moveForward(t);return this._safeInvokeWithLocks(t,(()=>t.actual.redo()),i,s,(()=>this._continueRedoInGroup(t.groupId)))}_resourceRedo(e,t){if(t.isValid){if(!e.locked)return this._invokeResourcePrepare(t,(i=>(e.moveForward(t),this._safeInvokeWithLocks(t,(()=>t.actual.redo()),new Te([e]),i,(()=>this._continueRedoInGroup(t.groupId))))));{const e=b.kg({key:"cannotResourceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not redo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(e)}}else e.flushAllElements()}_findClosestRedoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(const[s,n]of this._editStacks){const r=n.getClosestFutureElement();r&&(r.groupId===e&&(!t||r.groupOrder<t.groupOrder)&&(t=r,i=s))}return[t,i]}_continueRedoInGroup(e){if(!e)return;const[,t]=this._findClosestRedoElementInGroup(e);return t?this._redo(t):void 0}redo(e){if(e instanceof fe.Ym){const[,t]=this._findClosestRedoElementWithSource(e.id);return t?this._redo(t):void 0}return"string"===typeof e?this._redo(e):this._redo(this.getUriComparisonKey(e))}_redo(e){if(!this._editStacks.has(e))return;const t=this._editStacks.get(e),i=t.getClosestFutureElement();if(i){if(i.groupId){const[e,t]=this._findClosestRedoElementInGroup(i.groupId);if(i!==e&&t)return this._redo(t)}try{return 1===i.type?this._workspaceRedo(e,i):this._resourceRedo(t,i)}finally{Ce}}}};ke=_e([ve(0,pe.X),ve(1,me.Ot)],ke);class Ae{constructor(e){this.returnValue=e}}(0,se.v)(fe.$D,ke,1);i(32500),i(27004),i(76007);var Ne=i(66261),Ie=i(67220),Oe=i(47508),De=i(98031),Me=i(84001),Pe=i(52776),Fe=i(17390),Ue=i(49099),He=i(20492),Be=i(16980),We=i(98067),Ve=i(253),ze=i(11007),Ge=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},je=function(e,t){return function(i,s){t(i,s,e)}};const Ke=U.$;let Ye=class extends Fe.x{get _targetWindow(){return U.zk(this._target.targetElements[0])}get _targetDocumentElement(){return U.zk(this._target.targetElements[0]).document.documentElement}get isDisposed(){return this._isDisposed}get isMouseIn(){return this._lockMouseTracker.isMouseIn}get domNode(){return this._hover.containerDomNode}get onDispose(){return this._onDispose.event}get onRequestLayout(){return this._onRequestLayout.event}get anchor(){return 2===this._hoverPosition?0:1}get x(){return this._x}get y(){return this._y}get isLocked(){return this._isLocked}set isLocked(e){this._isLocked!==e&&(this._isLocked=e,this._hoverContainer.classList.toggle("locked",this._isLocked))}constructor(e,t,i,s,n,o){super(),this._keybindingService=t,this._configurationService=i,this._openerService=s,this._instantiationService=n,this._accessibilityService=o,this._messageListeners=new c.Cm,this._isDisposed=!1,this._forcePosition=!1,this._x=0,this._y=0,this._isLocked=!1,this._enableFocusTraps=!1,this._addedFocusTrap=!1,this._onDispose=this._register(new Q.vl),this._onRequestLayout=this._register(new Q.vl),this._linkHandler=e.linkHandler||(t=>(0,He.i)(this._openerService,t,(0,Be.VS)(e.content)?e.content.isTrusted:void 0)),this._target="targetElements"in e.target?e.target:new $e(e.target),this._hoverPointer=e.appearance?.showPointer?Ke("div.workbench-hover-pointer"):void 0,this._hover=this._register(new Pe.N4),this._hover.containerDomNode.classList.add("workbench-hover","fadeIn"),e.appearance?.compact&&this._hover.containerDomNode.classList.add("workbench-hover","compact"),e.appearance?.skipFadeInAnimation&&this._hover.containerDomNode.classList.add("skip-fade-in"),e.additionalClasses&&this._hover.containerDomNode.classList.add(...e.additionalClasses),e.position?.forcePosition&&(this._forcePosition=!0),e.trapFocus&&(this._enableFocusTraps=!0),this._hoverPosition=e.position?.hoverPosition??3,this.onmousedown(this._hover.containerDomNode,(e=>e.stopPropagation())),this.onkeydown(this._hover.containerDomNode,(e=>{e.equals(9)&&this.dispose()})),this._register(U.ko(this._targetWindow,"blur",(()=>this.dispose())));const a=Ke("div.hover-row.markdown-hover"),l=Ke("div.hover-contents");if("string"===typeof e.content)l.textContent=e.content,l.style.whiteSpace="pre-wrap";else if(U.sb(e.content))l.appendChild(e.content),l.classList.add("html-hover-contents");else{const t=e.content,i=this._instantiationService.createInstance(He.T,{codeBlockFontFamily:this._configurationService.getValue("editor").fontFamily||r.jU.fontFamily}),{element:s}=i.render(t,{actionHandler:{callback:e=>this._linkHandler(e),disposables:this._messageListeners},asyncRenderCallback:()=>{l.classList.add("code-hover-contents"),this.layout(),this._onRequestLayout.fire()}});l.appendChild(s)}if(a.appendChild(l),this._hover.contentsDomNode.appendChild(a),e.actions&&e.actions.length>0){const t=Ke("div.hover-row.status-bar"),i=Ke("div.actions");e.actions.forEach((e=>{const t=this._keybindingService.lookupKeybinding(e.commandId),s=t?t.getLabel():null;Pe.jQ.render(i,{label:e.label,commandId:e.commandId,run:t=>{e.run(t),this.dispose()},iconClass:e.iconClass},s)})),t.appendChild(i),this._hover.containerDomNode.appendChild(t)}let h;if(this._hoverContainer=Ke("div.workbench-hover-container"),this._hoverPointer&&this._hoverContainer.appendChild(this._hoverPointer),this._hoverContainer.appendChild(this._hover.containerDomNode),h=!(e.actions&&e.actions.length>0)&&(void 0===e.persistence?.hideOnHover?"string"===typeof e.content||(0,Be.VS)(e.content)&&!e.content.value.includes("](")&&!e.content.value.includes("</a>"):e.persistence.hideOnHover),e.appearance?.showHoverHint){const e=Ke("div.hover-row.status-bar"),t=Ke("div.info");t.textContent=(0,b.kg)("hoverhint","Hold {0} key to mouse over",We.zx?"Option":"Alt"),e.appendChild(t),this._hover.containerDomNode.appendChild(e)}const d=[...this._target.targetElements];h||d.push(this._hoverContainer);const u=this._register(new qe(d));if(this._register(u.onMouseOut((()=>{this._isLocked||this.dispose()}))),h){const e=[...this._target.targetElements,this._hoverContainer];this._lockMouseTracker=this._register(new qe(e)),this._register(this._lockMouseTracker.onMouseOut((()=>{this._isLocked||this.dispose()})))}else this._lockMouseTracker=u}addFocusTrap(){if(!this._enableFocusTraps||this._addedFocusTrap)return;this._addedFocusTrap=!0;const e=this._hover.containerDomNode,t=this.findLastFocusableChild(this._hover.containerDomNode);if(t){const i=U.Hs(this._hoverContainer,Ke("div")),s=U.BC(this._hoverContainer,Ke("div"));i.tabIndex=0,s.tabIndex=0,this._register(U.ko(s,"focus",(t=>{e.focus(),t.preventDefault()}))),this._register(U.ko(i,"focus",(e=>{t.focus(),e.preventDefault()})))}}findLastFocusableChild(e){if(e.hasChildNodes())for(let t=0;t<e.childNodes.length;t++){const i=e.childNodes.item(e.childNodes.length-t-1);if(i.nodeType===i.ELEMENT_NODE){const e=i;if("number"===typeof e.tabIndex&&e.tabIndex>=0)return e}const s=this.findLastFocusableChild(i);if(s)return s}}render(e){e.appendChild(this._hoverContainer);const t=this._hoverContainer.contains(this._hoverContainer.ownerDocument.activeElement)&&(0,Pe.vr)(!0===this._configurationService.getValue("accessibility.verbosity.hover")&&this._accessibilityService.isScreenReaderOptimized(),this._keybindingService.lookupKeybinding("editor.action.accessibleView")?.getAriaLabel());t&&(0,ze.h5)(t),this.layout(),this.addFocusTrap()}layout(){this._hover.containerDomNode.classList.remove("right-aligned"),this._hover.contentsDomNode.style.maxHeight="";const e=this._target.targetElements.map((e=>(e=>{const t=U.mU(e),i=e.getBoundingClientRect();return{top:i.top*t,bottom:i.bottom*t,right:i.right*t,left:i.left*t}})(e))),{top:t,right:i,bottom:s,left:n}=e[0],r=i-n,o=s-t,a={top:t,right:i,bottom:s,left:n,width:r,height:o,center:{x:n+r/2,y:t+o/2}};if(this.adjustHorizontalHoverPosition(a),this.adjustVerticalHoverPosition(a),this.adjustHoverMaxHeight(a),this._hoverContainer.style.padding="",this._hoverContainer.style.margin="",this._hoverPointer){switch(this._hoverPosition){case 1:a.left+=3,a.right+=3,this._hoverContainer.style.paddingLeft="3px",this._hoverContainer.style.marginLeft="-3px";break;case 0:a.left-=3,a.right-=3,this._hoverContainer.style.paddingRight="3px",this._hoverContainer.style.marginRight="-3px";break;case 2:a.top+=3,a.bottom+=3,this._hoverContainer.style.paddingTop="3px",this._hoverContainer.style.marginTop="-3px";break;case 3:a.top-=3,a.bottom-=3,this._hoverContainer.style.paddingBottom="3px",this._hoverContainer.style.marginBottom="-3px"}a.center.x=a.left+r/2,a.center.y=a.top+o/2}this.computeXCordinate(a),this.computeYCordinate(a),this._hoverPointer&&(this._hoverPointer.classList.remove("top"),this._hoverPointer.classList.remove("left"),this._hoverPointer.classList.remove("right"),this._hoverPointer.classList.remove("bottom"),this.setHoverPointerPosition(a)),this._hover.onContentsChanged()}computeXCordinate(e){const t=this._hover.containerDomNode.clientWidth+2;void 0!==this._target.x?this._x=this._target.x:1===this._hoverPosition?this._x=e.right:0===this._hoverPosition?this._x=e.left-t:(this._hoverPointer?this._x=e.center.x-this._hover.containerDomNode.clientWidth/2:this._x=e.left,this._x+t>=this._targetDocumentElement.clientWidth&&(this._hover.containerDomNode.classList.add("right-aligned"),this._x=Math.max(this._targetDocumentElement.clientWidth-t-2,this._targetDocumentElement.clientLeft))),this._x<this._targetDocumentElement.clientLeft&&(this._x=e.left+2)}computeYCordinate(e){void 0!==this._target.y?this._y=this._target.y:3===this._hoverPosition?this._y=e.top:2===this._hoverPosition?this._y=e.bottom-2:this._hoverPointer?this._y=e.center.y+this._hover.containerDomNode.clientHeight/2:this._y=e.bottom,this._y>this._targetWindow.innerHeight&&(this._y=e.bottom)}adjustHorizontalHoverPosition(e){if(void 0!==this._target.x)return;const t=this._hoverPointer?3:0;if(this._forcePosition){const i=t+2;1===this._hoverPosition?this._hover.containerDomNode.style.maxWidth=this._targetDocumentElement.clientWidth-e.right-i+"px":0===this._hoverPosition&&(this._hover.containerDomNode.style.maxWidth=e.left-i+"px")}else if(1===this._hoverPosition){if(this._targetDocumentElement.clientWidth-e.right<this._hover.containerDomNode.clientWidth+t){e.left>=this._hover.containerDomNode.clientWidth+t?this._hoverPosition=0:this._hoverPosition=2}}else if(0===this._hoverPosition){if(e.left<this._hover.containerDomNode.clientWidth+t){this._targetDocumentElement.clientWidth-e.right>=this._hover.containerDomNode.clientWidth+t?this._hoverPosition=1:this._hoverPosition=2}e.left-this._hover.containerDomNode.clientWidth-t<=this._targetDocumentElement.clientLeft&&(this._hoverPosition=1)}}adjustVerticalHoverPosition(e){if(void 0!==this._target.y||this._forcePosition)return;const t=this._hoverPointer?3:0;3===this._hoverPosition?e.top-this._hover.containerDomNode.clientHeight-t<0&&(this._hoverPosition=2):2===this._hoverPosition&&e.bottom+this._hover.containerDomNode.clientHeight+t>this._targetWindow.innerHeight&&(this._hoverPosition=3)}adjustHoverMaxHeight(e){let t=this._targetWindow.innerHeight/2;if(this._forcePosition){const i=2+(this._hoverPointer?3:0);3===this._hoverPosition?t=Math.min(t,e.top-i):2===this._hoverPosition&&(t=Math.min(t,this._targetWindow.innerHeight-e.bottom-i))}if(this._hover.containerDomNode.style.maxHeight=`${t}px`,this._hover.contentsDomNode.clientHeight<this._hover.contentsDomNode.scrollHeight){const e=`${this._hover.scrollbar.options.verticalScrollbarSize}px`;this._hover.contentsDomNode.style.paddingRight!==e&&(this._hover.contentsDomNode.style.paddingRight=e)}}setHoverPointerPosition(e){if(this._hoverPointer)switch(this._hoverPosition){case 0:case 1:{this._hoverPointer.classList.add(0===this._hoverPosition?"right":"left");const t=this._hover.containerDomNode.clientHeight;t>e.height?this._hoverPointer.style.top=e.center.y-(this._y-t)-3+"px":this._hoverPointer.style.top=Math.round(t/2)-3+"px";break}case 3:case 2:{this._hoverPointer.classList.add(3===this._hoverPosition?"bottom":"top");const t=this._hover.containerDomNode.clientWidth;let i=Math.round(t/2)-3;const s=this._x+i;(s<e.left||s>e.right)&&(i=e.center.x-this._x-3),this._hoverPointer.style.left=`${i}px`;break}}}focus(){this._hover.containerDomNode.focus()}dispose(){this._isDisposed||(this._onDispose.fire(),this._hoverContainer.remove(),this._messageListeners.dispose(),this._target.dispose(),super.dispose()),this._isDisposed=!0}};Ye=Ge([je(1,De.b),je(2,Me.pG),je(3,Ue.C),je(4,ae._Y),je(5,Ve.j)],Ye);class qe extends Fe.x{get onMouseOut(){return this._onMouseOut.event}get isMouseIn(){return this._isMouseIn}constructor(e){super(),this._elements=e,this._isMouseIn=!0,this._onMouseOut=this._register(new Q.vl),this._elements.forEach((e=>this.onmouseover(e,(()=>this._onTargetMouseOver(e))))),this._elements.forEach((e=>this.onmouseleave(e,(()=>this._onTargetMouseLeave(e)))))}_onTargetMouseOver(e){this._isMouseIn=!0,this._clearEvaluateMouseStateTimeout(e)}_onTargetMouseLeave(e){this._isMouseIn=!1,this._evaluateMouseState(e)}_evaluateMouseState(e){this._clearEvaluateMouseStateTimeout(e),this._mouseTimeout=U.zk(e).setTimeout((()=>this._fireIfMouseOutside()),0)}_clearEvaluateMouseStateTimeout(e){this._mouseTimeout&&(U.zk(e).clearTimeout(this._mouseTimeout),this._mouseTimeout=void 0)}_fireIfMouseOutside(){this._isMouseIn||this._onMouseOut.fire()}}class $e{constructor(e){this._element=e,this.targetElements=[this._element]}dispose(){}}var Qe,Xe=i(72962),Ze=i(55089),Je=i(92719);function et(e,t,i){const s=i.mode===Qe.ALIGN?i.offset:i.offset+i.size,n=i.mode===Qe.ALIGN?i.offset+i.size:i.offset;return 0===i.position?t<=e-s?s:t<=n?n-t:Math.max(e-t,0):t<=n?n-t:t<=e-s?s:0}!function(e){e[e.AVOID=0]="AVOID",e[e.ALIGN=1]="ALIGN"}(Qe||(Qe={}));class tt extends c.jG{static{this.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"]}static{this.BUBBLE_DOWN_EVENTS=["click"]}constructor(e,t){super(),this.container=null,this.useFixedPosition=!1,this.useShadowDOM=!1,this.delegate=null,this.toDisposeOnClean=c.jG.None,this.toDisposeOnSetContainer=c.jG.None,this.shadowRoot=null,this.shadowRootHostElement=null,this.view=U.$(".context-view"),U.jD(this.view),this.setContainer(e,t),this._register((0,c.s)((()=>this.setContainer(null,1))))}setContainer(e,t){this.useFixedPosition=1!==t;const i=this.useShadowDOM;if(this.useShadowDOM=3===t,(e!==this.container||i!==this.useShadowDOM)&&(this.container&&(this.toDisposeOnSetContainer.dispose(),this.view.remove(),this.shadowRoot&&(this.shadowRoot=null,this.shadowRootHostElement?.remove(),this.shadowRootHostElement=null),this.container=null),e)){if(this.container=e,this.useShadowDOM){this.shadowRootHostElement=U.$(".shadow-root-host"),this.container.appendChild(this.shadowRootHostElement),this.shadowRoot=this.shadowRootHostElement.attachShadow({mode:"open"});const e=document.createElement("style");e.textContent=it,this.shadowRoot.appendChild(e),this.shadowRoot.appendChild(this.view),this.shadowRoot.appendChild(U.$("slot"))}else this.container.appendChild(this.view);const t=new c.Cm;tt.BUBBLE_UP_EVENTS.forEach((e=>{t.add(U.b2(this.container,e,(e=>{this.onDOMEvent(e,!1)})))})),tt.BUBBLE_DOWN_EVENTS.forEach((e=>{t.add(U.b2(this.container,e,(e=>{this.onDOMEvent(e,!0)}),!0))})),this.toDisposeOnSetContainer=t}}show(e){this.isVisible()&&this.hide(),U.w_(this.view),this.view.className="context-view monaco-component",this.view.style.top="0px",this.view.style.left="0px",this.view.style.zIndex=`${2575+(e.layer??0)}`,this.view.style.position=this.useFixedPosition?"fixed":"absolute",U.WU(this.view),this.toDisposeOnClean=e.render(this.view)||c.jG.None,this.delegate=e,this.doLayout(),this.delegate.focus?.()}getViewElement(){return this.view}layout(){this.isVisible()&&(!1!==this.delegate.canRelayout||We.un&&Ze.e.pointerEvents?(this.delegate?.layout?.(),this.doLayout()):this.hide())}doLayout(){if(!this.isVisible())return;const e=this.delegate.getAnchor();let t;if(U.sb(e)){const i=U.BK(e),s=U.mU(e);t={top:i.top*s,left:i.left*s,width:i.width*s,height:i.height*s}}else t=function(e){const t=e;return!!t&&"number"===typeof t.x&&"number"===typeof t.y}(e)?{top:e.y,left:e.x,width:e.width||1,height:e.height||2}:{top:e.posy,left:e.posx,width:2,height:2};const i=U.Tr(this.view),s=U.OK(this.view),n=this.delegate.anchorPosition||0,r=this.delegate.anchorAlignment||0,o=this.delegate.anchorAxisAlignment||0;let a,c;const l=U.fz();if(0===o){const e={offset:t.top-l.pageYOffset,size:t.height,position:0===n?0:1},o={offset:t.left,size:t.width,position:0===r?0:1,mode:Qe.ALIGN};a=et(l.innerHeight,s,e)+l.pageYOffset,Je.Q.intersects({start:a,end:a+s},{start:e.offset,end:e.offset+e.size})&&(o.mode=Qe.AVOID),c=et(l.innerWidth,i,o)}else{const e={offset:t.left,size:t.width,position:0===r?0:1},o={offset:t.top,size:t.height,position:0===n?0:1,mode:Qe.ALIGN};c=et(l.innerWidth,i,e),Je.Q.intersects({start:c,end:c+i},{start:e.offset,end:e.offset+e.size})&&(o.mode=Qe.AVOID),a=et(l.innerHeight,s,o)+l.pageYOffset}this.view.classList.remove("top","bottom","left","right"),this.view.classList.add(0===n?"bottom":"top"),this.view.classList.add(0===r?"left":"right"),this.view.classList.toggle("fixed",this.useFixedPosition);const h=U.BK(this.container);this.view.style.top=a-(this.useFixedPosition?U.BK(this.view).top:h.top)+"px",this.view.style.left=c-(this.useFixedPosition?U.BK(this.view).left:h.left)+"px",this.view.style.width="initial"}hide(e){const t=this.delegate;this.delegate=null,t?.onHide&&t.onHide(e),this.toDisposeOnClean.dispose(),U.jD(this.view)}isVisible(){return!!this.delegate}onDOMEvent(e,t){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(e,U.zk(e).document.activeElement):t&&!U.QX(e.target,this.container)&&this.hide())}dispose(){this.hide(),super.dispose()}}const it='\n\t:host {\n\t\tall: initial; /* 1st rule so subsequent properties are reset. */\n\t}\n\n\t.codicon[class*=\'codicon-\'] {\n\t\tfont: normal normal normal 16px/1 codicon;\n\t\tdisplay: inline-block;\n\t\ttext-decoration: none;\n\t\ttext-rendering: auto;\n\t\ttext-align: center;\n\t\t-webkit-font-smoothing: antialiased;\n\t\t-moz-osx-font-smoothing: grayscale;\n\t\tuser-select: none;\n\t\t-webkit-user-select: none;\n\t\t-ms-user-select: none;\n\t}\n\n\t:host {\n\t\tfont-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "HelveticaNeue-Light", system-ui, "Ubuntu", "Droid Sans", sans-serif;\n\t}\n\n\t:host-context(.mac) { font-family: -apple-system, BlinkMacSystemFont, sans-serif; }\n\t:host-context(.mac:lang(zh-Hans)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", sans-serif; }\n\t:host-context(.mac:lang(zh-Hant)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", sans-serif; }\n\t:host-context(.mac:lang(ja)) { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic Pro", sans-serif; }\n\t:host-context(.mac:lang(ko)) { font-family: -apple-system, BlinkMacSystemFont, "Nanum Gothic", "Apple SD Gothic Neo", "AppleGothic", sans-serif; }\n\n\t:host-context(.windows) { font-family: "Segoe WPC", "Segoe UI", sans-serif; }\n\t:host-context(.windows:lang(zh-Hans)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft YaHei", sans-serif; }\n\t:host-context(.windows:lang(zh-Hant)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft Jhenghei", sans-serif; }\n\t:host-context(.windows:lang(ja)) { font-family: "Segoe WPC", "Segoe UI", "Yu Gothic UI", "Meiryo UI", sans-serif; }\n\t:host-context(.windows:lang(ko)) { font-family: "Segoe WPC", "Segoe UI", "Malgun Gothic", "Dotom", sans-serif; }\n\n\t:host-context(.linux) { font-family: system-ui, "Ubuntu", "Droid Sans", sans-serif; }\n\t:host-context(.linux:lang(zh-Hans)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans SC", "Source Han Sans CN", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(zh-Hant)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans TC", "Source Han Sans TW", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(ja)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans J", "Source Han Sans JP", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(ko)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans K", "Source Han Sans JR", "Source Han Sans", "UnDotum", "FBaekmuk Gulim", sans-serif; }\n';var st=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},nt=function(e,t){return function(i,s){t(i,s,e)}};let rt=class extends c.jG{constructor(e){super(),this.layoutService=e,this.contextView=this._register(new tt(this.layoutService.mainContainer,1)),this.layout(),this._register(e.onDidLayoutContainer((()=>this.layout())))}showContextView(e,t,i){let s;s=t?t===this.layoutService.getContainer((0,U.zk)(t))?1:i?3:2:1,this.contextView.setContainer(t??this.layoutService.activeContainer,s),this.contextView.show(e);const n={close:()=>{this.openContextView===n&&this.hideContextView()}};return this.openContextView=n,n}layout(){this.contextView.layout()}hideContextView(e){this.contextView.hide(e),this.openContextView=void 0}};rt=st([nt(0,ce)],rt);class ot extends rt{getContextViewElement(){return this.contextView.getViewElement()}}var at=i(18447),ct=i(631);class lt{constructor(e,t,i){this.hoverDelegate=e,this.target=t,this.fadeInAnimation=i}async update(e,t,i){if(this._cancellationTokenSource&&(this._cancellationTokenSource.dispose(!0),this._cancellationTokenSource=void 0),this.isDisposed)return;let s;if(void 0===e||(0,ct.Kg)(e)||(0,U.sb)(e))s=e;else if((0,ct.Tn)(e.markdown)){this._hoverWidget||this.show((0,b.kg)("iconLabel.loading","Loading..."),t,i),this._cancellationTokenSource=new at.Qi;const n=this._cancellationTokenSource.token;if(s=await e.markdown(n),void 0===s&&(s=e.markdownNotSupportedFallback),this.isDisposed||n.isCancellationRequested)return}else s=e.markdown??e.markdownNotSupportedFallback;this.show(s,t,i)}show(e,t,i){const s=this._hoverWidget;if(this.hasContent(e)){const n={content:e,target:this.target,actions:i?.actions,linkHandler:i?.linkHandler,trapFocus:i?.trapFocus,appearance:{showPointer:"element"===this.hoverDelegate.placement,skipFadeInAnimation:!this.fadeInAnimation||!!s,showHoverHint:i?.appearance?.showHoverHint},position:{hoverPosition:2}};this._hoverWidget=this.hoverDelegate.showHover(n,t)}s?.dispose()}hasContent(e){return!!e&&(!(0,Be.VS)(e)||!!e.value)}get isDisposed(){return this._hoverWidget?.isDisposed}dispose(){this._hoverWidget?.dispose(),this._cancellationTokenSource?.dispose(!0),this._cancellationTokenSource=void 0}}var ht=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},dt=function(e,t){return function(i,s){t(i,s,e)}};let ut=class extends c.jG{constructor(e,t,i,s,n){super(),this._instantiationService=e,this._keybindingService=i,this._layoutService=s,this._accessibilityService=n,this._managedHovers=new Map,t.onDidShowContextMenu((()=>this.hideHover())),this._contextViewHandler=this._register(new rt(this._layoutService))}showHover(e,t,i){if(gt(this._currentHoverOptions)===gt(e))return;if(this._currentHover&&this._currentHoverOptions?.persistence?.sticky)return;this._currentHoverOptions=e,this._lastHoverOptions=e;const s=e.trapFocus||this._accessibilityService.isScreenReaderOptimized(),n=(0,U.bq)();i||(s&&n?n.classList.contains("monaco-hover")||(this._lastFocusedElementBeforeOpen=n):this._lastFocusedElementBeforeOpen=void 0);const r=new c.Cm,o=this._instantiationService.createInstance(Ye,e);if(e.persistence?.sticky&&(o.isLocked=!0),o.onDispose((()=>{this._currentHover?.domNode&&(0,U.nR)(this._currentHover.domNode)&&this._lastFocusedElementBeforeOpen?.focus(),this._currentHoverOptions===e&&(this._currentHoverOptions=void 0),r.dispose()}),void 0,r),!e.container){const t=(0,U.sb)(e.target)?e.target:e.target.targetElements[0];e.container=this._layoutService.getContainer((0,U.zk)(t))}if(this._contextViewHandler.showContextView(new pt(o,t),e.container),o.onRequestLayout((()=>this._contextViewHandler.layout()),void 0,r),e.persistence?.sticky)r.add((0,U.ko)((0,U.zk)(e.container).document,U.Bx.MOUSE_DOWN,(e=>{(0,U.QX)(e.target,o.domNode)||this.doHideHover()})));else{if("targetElements"in e.target)for(const i of e.target.targetElements)r.add((0,U.ko)(i,U.Bx.CLICK,(()=>this.hideHover())));else r.add((0,U.ko)(e.target,U.Bx.CLICK,(()=>this.hideHover())));const t=(0,U.bq)();if(t){const i=(0,U.zk)(t).document;r.add((0,U.ko)(t,U.Bx.KEY_DOWN,(t=>this._keyDown(t,o,!!e.persistence?.hideOnKeyDown)))),r.add((0,U.ko)(i,U.Bx.KEY_DOWN,(t=>this._keyDown(t,o,!!e.persistence?.hideOnKeyDown)))),r.add((0,U.ko)(t,U.Bx.KEY_UP,(e=>this._keyUp(e,o)))),r.add((0,U.ko)(i,U.Bx.KEY_UP,(e=>this._keyUp(e,o))))}}if("IntersectionObserver"in a.G){const t=new IntersectionObserver((e=>this._intersectionChange(e,o)),{threshold:0}),i="targetElements"in e.target?e.target.targetElements[0]:e.target;t.observe(i),r.add((0,c.s)((()=>t.disconnect())))}return this._currentHover=o,o}hideHover(){!this._currentHover?.isLocked&&this._currentHoverOptions&&this.doHideHover()}doHideHover(){this._currentHover=void 0,this._currentHoverOptions=void 0,this._contextViewHandler.hideContextView()}_intersectionChange(e,t){e[e.length-1].isIntersecting||t.dispose()}showAndFocusLastHover(){this._lastHoverOptions&&this.showHover(this._lastHoverOptions,!0,!0)}_keyDown(e,t,i){if("Alt"===e.key)return void(t.isLocked=!0);const s=new Xe.Z(e);this._keybindingService.resolveKeyboardEvent(s).getSingleModifierDispatchChords().some((e=>!!e))||0!==this._keybindingService.softDispatch(s,s.target).kind||!i||this._currentHoverOptions?.trapFocus&&"Tab"===e.key||(this.hideHover(),this._lastFocusedElementBeforeOpen?.focus())}_keyUp(e,t){"Alt"===e.key&&(t.isLocked=!1,t.isMouseIn||(this.hideHover(),this._lastFocusedElementBeforeOpen?.focus()))}setupManagedHover(e,t,i,s){let n,r;t.setAttribute("custom-hover","true"),""!==t.title&&(console.warn("HTML element already has a title attribute, which will conflict with the custom hover. Please remove the title attribute."),console.trace("Stack trace:",t.title),t.title="");const o=(t,i)=>{const s=void 0!==r;t&&(r?.dispose(),r=void 0),i&&(n?.dispose(),n=void 0),s&&(e.onDidHideHover?.(),r=void 0)},a=(n,o,a,c)=>new m.pc((async()=>{r&&!r.isDisposed||(r=new lt(e,a||t,n>0),await r.update("function"===typeof i?i():i,o,{...s,trapFocus:c}))}),n);let l=!1;const h=(0,U.ko)(t,U.Bx.MOUSE_DOWN,(()=>{l=!0,o(!0,!0)}),!0),d=(0,U.ko)(t,U.Bx.MOUSE_UP,(()=>{l=!1}),!0),u=(0,U.ko)(t,U.Bx.MOUSE_LEAVE,(e=>{l=!1,o(!1,e.fromElement===t)}),!0),g=(0,U.ko)(t,U.Bx.MOUSE_OVER,(i=>{if(n)return;const s=new c.Cm,r={targetElements:[t],dispose:()=>{}};if(void 0===e.placement||"mouse"===e.placement){const e=e=>{r.x=e.x+10,(0,U.sb)(e.target)&&mt(e.target,t)!==t&&o(!0,!0)};s.add((0,U.ko)(t,U.Bx.MOUSE_MOVE,e,!0))}n=s,(0,U.sb)(i.target)&&mt(i.target,t)!==t||s.add(a(e.delay,!1,r))}),!0),p=()=>{if(l||n)return;const i={targetElements:[t],dispose:()=>{}},s=new c.Cm;s.add((0,U.ko)(t,U.Bx.BLUR,(()=>o(!0,!0)),!0)),s.add(a(e.delay,!1,i)),n=s};let f;const _=t.tagName.toLowerCase();"input"!==_&&"textarea"!==_&&(f=(0,U.ko)(t,U.Bx.FOCUS,p,!0));const v={show:e=>{o(!1,!0),a(0,e,void 0,e)},hide:()=>{o(!0,!0)},update:async(e,t)=>{i=e,await(r?.update(i,void 0,t))},dispose:()=>{this._managedHovers.delete(t),g.dispose(),u.dispose(),h.dispose(),d.dispose(),f?.dispose(),o(!0,!0)}};return this._managedHovers.set(t,v),v}showManagedHover(e){const t=this._managedHovers.get(e);t&&t.show(!0)}dispose(){this._managedHovers.forEach((e=>e.dispose())),super.dispose()}};function gt(e){if(void 0!==e)return e?.id??e}ut=ht([dt(0,ae._Y),dt(1,Oe.Z),dt(2,De.b),dt(3,ce),dt(4,Ve.j)],ut);class pt{get anchorPosition(){return this._hover.anchor}constructor(e,t=!1){this._hover=e,this._focus=t,this.layer=1}render(e){return this._hover.render(e),this._focus&&this._hover.focus(),this._hover}getAnchor(){return{x:this._hover.x,y:this._hover.y}}layout(){this._hover.layout()}}function mt(e,t){for(t=t??(0,U.zk)(e).document.body;!e.hasAttribute("custom-hover")&&e!==t;)e=e.parentElement;return e}(0,se.v)(Ie.TN,ut,1),(0,Z.zy)(((e,t)=>{const i=e.getColor(Ne.oZ8);i&&(t.addRule(`.monaco-workbench .workbench-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${i.transparent(.5)}; }`),t.addRule(`.monaco-workbench .workbench-hover hr { border-top: 1px solid ${i.transparent(.5)}; }`))}));var ft=i(42539),_t=i(80537),vt=i(94371),Ct=i(7085),Et=i(83069),bt=i(18938),St=i(50091),yt=i(74320),wt=i(1646),Rt=i(46359);function Lt(e){return Object.isFrozen(e)?e:p.ol(e)}class Tt{static createEmptyModel(e){return new Tt({},[],[],void 0,e)}constructor(e,t,i,s,n){this._contents=e,this._keys=t,this._overrides=i,this.raw=s,this.logService=n,this.overrideConfigurations=new Map}get rawConfiguration(){if(!this._rawConfiguration)if(this.raw?.length){const e=this.raw.map((e=>{if(e instanceof Tt)return e;const t=new xt("",this.logService);return t.parseRaw(e),t.configurationModel}));this._rawConfiguration=e.reduce(((e,t)=>t===e?t:e.merge(t)),e[0])}else this._rawConfiguration=this;return this._rawConfiguration}get contents(){return this._contents}get overrides(){return this._overrides}get keys(){return this._keys}isEmpty(){return 0===this._keys.length&&0===Object.keys(this._contents).length&&0===this._overrides.length}getValue(e){return e?(0,Me.gD)(this.contents,e):this.contents}inspect(e,t){const i=this;return{get value(){return Lt(i.rawConfiguration.getValue(e))},get override(){return t?Lt(i.rawConfiguration.getOverrideValue(e,t)):void 0},get merged(){return Lt(t?i.rawConfiguration.override(t).getValue(e):i.rawConfiguration.getValue(e))},get overrides(){const t=[];for(const{contents:s,identifiers:n,keys:r}of i.rawConfiguration.overrides){const o=new Tt(s,r,[],void 0,i.logService).getValue(e);void 0!==o&&t.push({identifiers:n,value:o})}return t.length?Lt(t):void 0}}}getOverrideValue(e,t){const i=this.getContentsForOverrideIdentifer(t);return i?e?(0,Me.gD)(i,e):i:void 0}override(e){let t=this.overrideConfigurations.get(e);return t||(t=this.createOverrideConfigurationModel(e),this.overrideConfigurations.set(e,t)),t}merge(...e){const t=p.Go(this.contents),i=p.Go(this.overrides),s=[...this.keys],n=this.raw?.length?[...this.raw]:[this];for(const r of e)if(n.push(...r.raw?.length?r.raw:[r]),!r.isEmpty()){this.mergeContents(t,r.contents);for(const e of r.overrides){const[t]=i.filter((t=>E.aI(t.identifiers,e.identifiers)));t?(this.mergeContents(t.contents,e.contents),t.keys.push(...e.keys),t.keys=E.dM(t.keys)):i.push(p.Go(e))}for(const e of r.keys)-1===s.indexOf(e)&&s.push(e)}return new Tt(t,s,i,n.every((e=>e instanceof Tt))?void 0:n,this.logService)}createOverrideConfigurationModel(e){const t=this.getContentsForOverrideIdentifer(e);if(!t||"object"!==typeof t||!Object.keys(t).length)return this;const i={};for(const s of E.dM([...Object.keys(this.contents),...Object.keys(t)])){let e=this.contents[s];const n=t[s];n&&("object"===typeof e&&"object"===typeof n?(e=p.Go(e),this.mergeContents(e,n)):e=n),i[s]=e}return new Tt(i,this.keys,this.overrides,void 0,this.logService)}mergeContents(e,t){for(const i of Object.keys(t))i in e&&ct.Gv(e[i])&&ct.Gv(t[i])?this.mergeContents(e[i],t[i]):e[i]=p.Go(t[i])}getContentsForOverrideIdentifer(e){let t=null,i=null;const s=e=>{e&&(i?this.mergeContents(i,e):i=p.Go(e))};for(const n of this.overrides)1===n.identifiers.length&&n.identifiers[0]===e?t=n.contents:n.identifiers.includes(e)&&s(n.contents);return s(t),i}toJSON(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}}setValue(e,t){this.updateValue(e,t,!1)}removeValue(e){const t=this.keys.indexOf(e);-1!==t&&(this.keys.splice(t,1),(0,Me.iB)(this.contents,e),wt.rC.test(e)&&this.overrides.splice(this.overrides.findIndex((t=>E.aI(t.identifiers,(0,wt.Gv)(e)))),1))}updateValue(e,t,i){if((0,Me.kW)(this.contents,e,t,(e=>this.logService.error(e))),(i=i||-1===this.keys.indexOf(e))&&this.keys.push(e),wt.rC.test(e)){const t=(0,wt.Gv)(e),i={identifiers:t,keys:Object.keys(this.contents[e]),contents:(0,Me.ad)(this.contents[e],(e=>this.logService.error(e)))},s=this.overrides.findIndex((e=>E.aI(e.identifiers,t)));-1!==s?this.overrides[s]=i:this.overrides.push(i)}}}class xt{constructor(e,t){this._name=e,this.logService=t,this._raw=null,this._configurationModel=null,this._restrictedConfigurations=[]}get configurationModel(){return this._configurationModel||Tt.createEmptyModel(this.logService)}parseRaw(e,t){this._raw=e;const{contents:i,keys:s,overrides:n,restricted:r,hasExcludedProperties:o}=this.doParseRaw(e,t);this._configurationModel=new Tt(i,s,n,o?[e]:void 0,this.logService),this._restrictedConfigurations=r||[]}doParseRaw(e,t){const i=Rt.O.as(wt.Fd.Configuration).getConfigurationProperties(),s=this.filter(e,i,!0,t);e=s.raw;return{contents:(0,Me.ad)(e,(e=>this.logService.error(`Conflict in settings file ${this._name}: ${e}`))),keys:Object.keys(e),overrides:this.toOverrides(e,(e=>this.logService.error(`Conflict in settings file ${this._name}: ${e}`))),restricted:s.restricted,hasExcludedProperties:s.hasExcludedProperties}}filter(e,t,i,s){let n=!1;if(!s?.scopes&&!s?.skipRestricted&&!s?.exclude?.length)return{raw:e,restricted:[],hasExcludedProperties:n};const r={},o=[];for(const a in e)if(wt.rC.test(a)&&i){const i=this.filter(e[a],t,!1,s);r[a]=i.raw,n=n||i.hasExcludedProperties,o.push(...i.restricted)}else{const i=t[a],c=i?"undefined"!==typeof i.scope?i.scope:3:void 0;i?.restricted&&o.push(a),s.exclude?.includes(a)||!s.include?.includes(a)&&(void 0!==c&&void 0!==s.scopes&&!s.scopes.includes(c)||s.skipRestricted&&i?.restricted)?n=!0:r[a]=e[a]}return{raw:r,restricted:o,hasExcludedProperties:n}}toOverrides(e,t){const i=[];for(const s of Object.keys(e))if(wt.rC.test(s)){const n={};for(const t in e[s])n[t]=e[s][t];i.push({identifiers:(0,wt.Gv)(s),keys:Object.keys(n),contents:(0,Me.ad)(n,t)})}return i}}class kt{constructor(e,t,i,s,n,r,o,a,c,l,h,d,u){this.key=e,this.overrides=t,this._value=i,this.overrideIdentifiers=s,this.defaultConfiguration=n,this.policyConfiguration=r,this.applicationConfiguration=o,this.userConfiguration=a,this.localUserConfiguration=c,this.remoteUserConfiguration=l,this.workspaceConfiguration=h,this.folderConfigurationModel=d,this.memoryConfigurationModel=u}toInspectValue(e){return void 0!==e?.value||void 0!==e?.override||void 0!==e?.overrides?e:void 0}get userInspectValue(){return this._userInspectValue||(this._userInspectValue=this.userConfiguration.inspect(this.key,this.overrides.overrideIdentifier)),this._userInspectValue}get user(){return this.toInspectValue(this.userInspectValue)}}class At{constructor(e,t,i,s,n,r,o,a,c,l){this._defaultConfiguration=e,this._policyConfiguration=t,this._applicationConfiguration=i,this._localUserConfiguration=s,this._remoteUserConfiguration=n,this._workspaceConfiguration=r,this._folderConfigurations=o,this._memoryConfiguration=a,this._memoryConfigurationByResource=c,this.logService=l,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations=new yt.fT,this._userConfiguration=null}getValue(e,t,i){return this.getConsolidatedConfigurationModel(e,t,i).getValue(e)}updateValue(e,t,i={}){let s;i.resource?(s=this._memoryConfigurationByResource.get(i.resource),s||(s=Tt.createEmptyModel(this.logService),this._memoryConfigurationByResource.set(i.resource,s))):s=this._memoryConfiguration,void 0===t?s.removeValue(e):s.setValue(e,t),i.resource||(this._workspaceConsolidatedConfiguration=null)}inspect(e,t,i){const s=this.getConsolidatedConfigurationModel(e,t,i),n=this.getFolderConfigurationModelForResource(t.resource,i),r=t.resource&&this._memoryConfigurationByResource.get(t.resource)||this._memoryConfiguration,o=new Set;for(const a of s.overrides)for(const t of a.identifiers)void 0!==s.getOverrideValue(e,t)&&o.add(t);return new kt(e,t,s.getValue(e),o.size?[...o]:void 0,this._defaultConfiguration,this._policyConfiguration.isEmpty()?void 0:this._policyConfiguration,this.applicationConfiguration.isEmpty()?void 0:this.applicationConfiguration,this.userConfiguration,this.localUserConfiguration,this.remoteUserConfiguration,i?this._workspaceConfiguration:void 0,n||void 0,r)}get applicationConfiguration(){return this._applicationConfiguration}get userConfiguration(){return this._userConfiguration||(this._userConfiguration=this._remoteUserConfiguration.isEmpty()?this._localUserConfiguration:this._localUserConfiguration.merge(this._remoteUserConfiguration)),this._userConfiguration}get localUserConfiguration(){return this._localUserConfiguration}get remoteUserConfiguration(){return this._remoteUserConfiguration}getConsolidatedConfigurationModel(e,t,i){let s=this.getConsolidatedConfigurationModelForResource(t,i);return t.overrideIdentifier&&(s=s.override(t.overrideIdentifier)),this._policyConfiguration.isEmpty()||void 0===this._policyConfiguration.getValue(e)||(s=s.merge(this._policyConfiguration)),s}getConsolidatedConfigurationModelForResource({resource:e},t){let i=this.getWorkspaceConsolidatedConfiguration();if(t&&e){const s=t.getFolder(e);s&&(i=this.getFolderConsolidatedConfiguration(s.uri)||i);const n=this._memoryConfigurationByResource.get(e);n&&(i=i.merge(n))}return i}getWorkspaceConsolidatedConfiguration(){return this._workspaceConsolidatedConfiguration||(this._workspaceConsolidatedConfiguration=this._defaultConfiguration.merge(this.applicationConfiguration,this.userConfiguration,this._workspaceConfiguration,this._memoryConfiguration)),this._workspaceConsolidatedConfiguration}getFolderConsolidatedConfiguration(e){let t=this._foldersConsolidatedConfigurations.get(e);if(!t){const i=this.getWorkspaceConsolidatedConfiguration(),s=this._folderConfigurations.get(e);s?(t=i.merge(s),this._foldersConsolidatedConfigurations.set(e,t)):t=i}return t}getFolderConfigurationModelForResource(e,t){if(t&&e){const i=t.getFolder(e);if(i)return this._folderConfigurations.get(i.uri)}}toData(){return{defaults:{contents:this._defaultConfiguration.contents,overrides:this._defaultConfiguration.overrides,keys:this._defaultConfiguration.keys},policy:{contents:this._policyConfiguration.contents,overrides:this._policyConfiguration.overrides,keys:this._policyConfiguration.keys},application:{contents:this.applicationConfiguration.contents,overrides:this.applicationConfiguration.overrides,keys:this.applicationConfiguration.keys},user:{contents:this.userConfiguration.contents,overrides:this.userConfiguration.overrides,keys:this.userConfiguration.keys},workspace:{contents:this._workspaceConfiguration.contents,overrides:this._workspaceConfiguration.overrides,keys:this._workspaceConfiguration.keys},folders:[...this._folderConfigurations.keys()].reduce(((e,t)=>{const{contents:i,overrides:s,keys:n}=this._folderConfigurations.get(t);return e.push([t,{contents:i,overrides:s,keys:n}]),e}),[])}}static parse(e,t){const i=this.parseConfigurationModel(e.defaults,t),s=this.parseConfigurationModel(e.policy,t),n=this.parseConfigurationModel(e.application,t),r=this.parseConfigurationModel(e.user,t),o=this.parseConfigurationModel(e.workspace,t),a=e.folders.reduce(((e,i)=>(e.set(h.r.revive(i[0]),this.parseConfigurationModel(i[1],t)),e)),new yt.fT);return new At(i,s,n,r,Tt.createEmptyModel(t),o,a,Tt.createEmptyModel(t),new yt.fT,t)}static parseConfigurationModel(e,t){return new Tt(e.contents,e.keys,e.overrides,void 0,t)}}class Nt{constructor(e,t,i,s,n){this.change=e,this.previous=t,this.currentConfiguraiton=i,this.currentWorkspace=s,this.logService=n,this._marker="\n",this._markerCode1=this._marker.charCodeAt(0),this._markerCode2=".".charCodeAt(0),this.affectedKeys=new Set,this._previousConfiguration=void 0;for(const r of e.keys)this.affectedKeys.add(r);for(const[,r]of e.overrides)for(const e of r)this.affectedKeys.add(e);this._affectsConfigStr=this._marker;for(const r of this.affectedKeys)this._affectsConfigStr+=r+this._marker}get previousConfiguration(){return!this._previousConfiguration&&this.previous&&(this._previousConfiguration=At.parse(this.previous.data,this.logService)),this._previousConfiguration}affectsConfiguration(e,t){const i=this._marker+e,s=this._affectsConfigStr.indexOf(i);if(s<0)return!1;const n=s+i.length;if(n>=this._affectsConfigStr.length)return!1;const r=this._affectsConfigStr.charCodeAt(n);if(r!==this._markerCode1&&r!==this._markerCode2)return!1;if(t){const i=this.previousConfiguration?this.previousConfiguration.getValue(e,t,this.previous?.workspace):void 0,s=this.currentConfiguraiton.getValue(e,t,this.currentWorkspace);return!p.aI(i,s)}return!0}}var It=i(2299);const Ot={kind:0},Dt={kind:1};class Mt{constructor(e,t,i){this._log=i,this._defaultKeybindings=e,this._defaultBoundCommands=new Map;for(const s of e){const e=s.command;e&&"-"!==e.charAt(0)&&this._defaultBoundCommands.set(e,!0)}this._map=new Map,this._lookupMap=new Map,this._keybindings=Mt.handleRemovals([].concat(e).concat(t));for(let s=0,n=this._keybindings.length;s<n;s++){const e=this._keybindings[s];if(0===e.chords.length)continue;const t=e.when?.substituteConstants();t&&0===t.type||this._addKeyPress(e.chords[0],e)}}static _isTargetedForRemoval(e,t,i){if(t)for(let s=0;s<t.length;s++)if(t[s]!==e.chords[s])return!1;if(i&&1!==i.type){if(!e.when)return!1;if(!(0,ie.jQ)(i,e.when))return!1}return!0}static handleRemovals(e){const t=new Map;for(let s=0,n=e.length;s<n;s++){const i=e[s];if(i.command&&"-"===i.command.charAt(0)){const e=i.command.substring(1);t.has(e)?t.get(e).push(i):t.set(e,[i])}}if(0===t.size)return e;const i=[];for(let s=0,n=e.length;s<n;s++){const n=e[s];if(!n.command||0===n.command.length){i.push(n);continue}if("-"===n.command.charAt(0))continue;const r=t.get(n.command);if(!r||!n.isDefault){i.push(n);continue}let o=!1;for(const e of r){const t=e.when;if(this._isTargetedForRemoval(n,e.chords,t)){o=!0;break}}o||i.push(n)}return i}_addKeyPress(e,t){const i=this._map.get(e);if("undefined"===typeof i)return this._map.set(e,[t]),void this._addToLookupMap(t);for(let s=i.length-1;s>=0;s--){const e=i[s];if(e.command===t.command)continue;let n=!0;for(let i=1;i<e.chords.length&&i<t.chords.length;i++)if(e.chords[i]!==t.chords[i]){n=!1;break}n&&(Mt.whenIsEntirelyIncluded(e.when,t.when)&&this._removeFromLookupMap(e))}i.push(t),this._addToLookupMap(t)}_addToLookupMap(e){if(!e.command)return;let t=this._lookupMap.get(e.command);"undefined"===typeof t?(t=[e],this._lookupMap.set(e.command,t)):t.push(e)}_removeFromLookupMap(e){if(!e.command)return;const t=this._lookupMap.get(e.command);if("undefined"!==typeof t)for(let i=0,s=t.length;i<s;i++)if(t[i]===e)return void t.splice(i,1)}static whenIsEntirelyIncluded(e,t){return!t||1===t.type||!(!e||1===e.type)&&(0,ie.M0)(e,t)}getKeybindings(){return this._keybindings}lookupPrimaryKeybinding(e,t){const i=this._lookupMap.get(e);if("undefined"===typeof i||0===i.length)return null;if(1===i.length)return i[0];for(let s=i.length-1;s>=0;s--){const e=i[s];if(t.contextMatchesRules(e.when))return e}return i[i.length-1]}resolve(e,t,i){const s=[...t,i];this._log(`| Resolving ${s}`);const n=this._map.get(s[0]);if(void 0===n)return this._log("\\ No keybinding entries."),Ot;let r=null;if(s.length<2)r=n;else{r=[];for(let e=0,t=n.length;e<t;e++){const t=n[e];if(s.length>t.chords.length)continue;let i=!0;for(let e=1;e<s.length;e++)if(t.chords[e]!==s[e]){i=!1;break}i&&r.push(t)}}const o=this._findCommand(e,r);return o?s.length<o.chords.length?(this._log(`\\ From ${r.length} keybinding entries, awaiting ${o.chords.length-s.length} more chord(s), when: ${Pt(o.when)}, source: ${Ft(o)}.`),Dt):(this._log(`\\ From ${r.length} keybinding entries, matched ${o.command}, when: ${Pt(o.when)}, source: ${Ft(o)}.`),a=o.command,c=o.commandArgs,l=o.bubble,{kind:2,commandId:a,commandArgs:c,isBubble:l}):(this._log(`\\ From ${r.length} keybinding entries, no when clauses matched the context.`),Ot);var a,c,l}_findCommand(e,t){for(let i=t.length-1;i>=0;i--){const s=t[i];if(Mt._contextMatchesRules(e,s.when))return s}return null}static _contextMatchesRules(e,t){return!t||t.evaluate(e)}}function Pt(e){return e?`${e.serialize()}`:"no when condition"}function Ft(e){return e.extensionId?e.isBuiltinExtension?`built-in extension ${e.extensionId}`:`user extension ${e.extensionId}`:e.isDefault?"built-in":"user"}const Ut=/^(cursor|delete|undo|redo|tab|editor\.action\.clipboard)/;class Ht extends c.jG{get onDidUpdateKeybindings(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:Q.Jh.None}get inChordMode(){return this._currentChords.length>0}constructor(e,t,i,s,n){super(),this._contextKeyService=e,this._commandService=t,this._telemetryService=i,this._notificationService=s,this._logService=n,this._onDidUpdateKeybindings=this._register(new Q.vl),this._currentChords=[],this._currentChordChecker=new m.vb,this._currentChordStatusMessage=null,this._ignoreSingleModifiers=Bt.EMPTY,this._currentSingleModifier=null,this._currentSingleModifierClearTimeout=new m.pc,this._currentlyDispatchingCommandId=null,this._logging=!1}dispose(){super.dispose()}_log(e){this._logging&&this._logService.info(`[KeybindingService]: ${e}`)}getKeybindings(){return this._getResolver().getKeybindings()}lookupKeybinding(e,t){const i=this._getResolver().lookupPrimaryKeybinding(e,t||this._contextKeyService);if(i)return i.resolvedKeybinding}dispatchEvent(e,t){return this._dispatch(e,t)}softDispatch(e,t){this._log("/ Soft dispatching keyboard event");const i=this.resolveKeyboardEvent(e);if(i.hasMultipleChords())return console.warn("keyboard event should not be mapped to multiple chords"),Ot;const[s]=i.getDispatchChords();if(null===s)return this._log("\\ Keyboard event cannot be dispatched"),Ot;const n=this._contextKeyService.getContext(t),r=this._currentChords.map((({keypress:e})=>e));return this._getResolver().resolve(n,r,s)}_scheduleLeaveChordMode(){const e=Date.now();this._currentChordChecker.cancelAndSet((()=>{this._documentHasFocus()?Date.now()-e>5e3&&this._leaveChordMode():this._leaveChordMode()}),500)}_expectAnotherChord(e,t){switch(this._currentChords.push({keypress:e,label:t}),this._currentChords.length){case 0:throw(0,v.iH)("impossible");case 1:this._currentChordStatusMessage=this._notificationService.status(b.kg("first.chord","({0}) was pressed. Waiting for second key of chord...",t));break;default:{const e=this._currentChords.map((({label:e})=>e)).join(", ");this._currentChordStatusMessage=this._notificationService.status(b.kg("next.chord","({0}) was pressed. Waiting for next key of chord...",e))}}this._scheduleLeaveChordMode(),It.M.enabled&&It.M.disable()}_leaveChordMode(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChords=[],It.M.enable()}_dispatch(e,t){return this._doDispatch(this.resolveKeyboardEvent(e),t,!1)}_singleModifierDispatch(e,t){const i=this.resolveKeyboardEvent(e),[s]=i.getSingleModifierDispatchChords();if(s)return this._ignoreSingleModifiers.has(s)?(this._log(`+ Ignoring single modifier ${s} due to it being pressed together with other keys.`),this._ignoreSingleModifiers=Bt.EMPTY,this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1):(this._ignoreSingleModifiers=Bt.EMPTY,null===this._currentSingleModifier?(this._log(`+ Storing single modifier for possible chord ${s}.`),this._currentSingleModifier=s,this._currentSingleModifierClearTimeout.cancelAndSet((()=>{this._log("+ Clearing single modifier due to 300ms elapsed."),this._currentSingleModifier=null}),300),!1):s===this._currentSingleModifier?(this._log(`/ Dispatching single modifier chord ${s} ${s}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,this._doDispatch(i,t,!0)):(this._log(`+ Clearing single modifier due to modifier mismatch: ${this._currentSingleModifier} ${s}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1));const[n]=i.getChords();return this._ignoreSingleModifiers=new Bt(n),null!==this._currentSingleModifier&&this._log("+ Clearing single modifier due to other key up."),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1}_doDispatch(e,t,i=!1){let s=!1;if(e.hasMultipleChords())return console.warn("Unexpected keyboard event mapped to multiple chords"),!1;let n=null,r=null;if(i){const[t]=e.getSingleModifierDispatchChords();n=t,r=t?[t]:[]}else[n]=e.getDispatchChords(),r=this._currentChords.map((({keypress:e})=>e));if(null===n)return this._log("\\ Keyboard event cannot be dispatched in keydown phase."),s;const o=this._contextKeyService.getContext(t),a=e.getLabel(),c=this._getResolver().resolve(o,r,n);switch(c.kind){case 0:if(this._logService.trace("KeybindingService#dispatch",a,"[ No matching keybinding ]"),this.inChordMode){const e=this._currentChords.map((({label:e})=>e)).join(", ");this._log(`+ Leaving multi-chord mode: Nothing bound to "${e}, ${a}".`),this._notificationService.status(b.kg("missing.chord","The key combination ({0}, {1}) is not a command.",e,a),{hideAfter:1e4}),this._leaveChordMode(),s=!0}return s;case 1:return this._logService.trace("KeybindingService#dispatch",a,"[ Several keybindings match - more chords needed ]"),s=!0,this._expectAnotherChord(n,a),this._log(1===this._currentChords.length?"+ Entering multi-chord mode...":"+ Continuing multi-chord mode..."),s;case 2:if(this._logService.trace("KeybindingService#dispatch",a,`[ Will dispatch command ${c.commandId} ]`),null===c.commandId||""===c.commandId){if(this.inChordMode){const e=this._currentChords.map((({label:e})=>e)).join(", ");this._log(`+ Leaving chord mode: Nothing bound to "${e}, ${a}".`),this._notificationService.status(b.kg("missing.chord","The key combination ({0}, {1}) is not a command.",e,a),{hideAfter:1e4}),this._leaveChordMode(),s=!0}}else{this.inChordMode&&this._leaveChordMode(),c.isBubble||(s=!0),this._log(`+ Invoking command ${c.commandId}.`),this._currentlyDispatchingCommandId=c.commandId;try{"undefined"===typeof c.commandArgs?this._commandService.executeCommand(c.commandId).then(void 0,(e=>this._notificationService.warn(e))):this._commandService.executeCommand(c.commandId,c.commandArgs).then(void 0,(e=>this._notificationService.warn(e)))}finally{this._currentlyDispatchingCommandId=null}Ut.test(c.commandId)||this._telemetryService.publicLog2("workbenchActionExecuted",{id:c.commandId,from:"keybinding",detail:e.getUserSettingsLabel()??void 0})}return s}}mightProducePrintableCharacter(e){return!e.ctrlKey&&!e.metaKey&&(e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30)}}class Bt{static{this.EMPTY=new Bt(null)}constructor(e){this._ctrlKey=!!e&&e.ctrlKey,this._shiftKey=!!e&&e.shiftKey,this._altKey=!!e&&e.altKey,this._metaKey=!!e&&e.metaKey}has(e){switch(e){case"ctrl":return this._ctrlKey;case"shift":return this._shiftKey;case"alt":return this._altKey;case"meta":return this._metaKey}}}var Wt=i(59261);class Vt{constructor(e,t,i,s,n,r,o){this._resolvedKeybindingItemBrand=void 0,this.resolvedKeybinding=e,this.chords=e?zt(e.getDispatchChords()):[],e&&0===this.chords.length&&(this.chords=zt(e.getSingleModifierDispatchChords())),this.bubble=!!t&&94===t.charCodeAt(0),this.command=this.bubble?t.substr(1):t,this.commandArgs=i,this.when=s,this.isDefault=n,this.extensionId=r,this.isBuiltinExtension=o}}function zt(e){const t=[];for(let i=0,s=e.length;i<s;i++){const s=e[i];if(!s)return[];t.push(s)}return t}var Gt=i(24939),jt=i(83619);class Kt extends ft.z5{constructor(e,t){if(super(),0===t.length)throw(0,v.Qg)("chords");this._os=e,this._chords=t}getLabel(){return jt.Of.toLabel(this._os,this._chords,(e=>this._getLabel(e)))}getAriaLabel(){return jt.r0.toLabel(this._os,this._chords,(e=>this._getAriaLabel(e)))}getElectronAccelerator(){return this._chords.length>1||this._chords[0].isDuplicateModifierCase()?null:jt.rr.toLabel(this._os,this._chords,(e=>this._getElectronAccelerator(e)))}getUserSettingsLabel(){return jt.G$.toLabel(this._os,this._chords,(e=>this._getUserSettingsLabel(e)))}hasMultipleChords(){return this._chords.length>1}getChords(){return this._chords.map((e=>this._getChord(e)))}_getChord(e){return new ft.FW(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,this._getLabel(e),this._getAriaLabel(e))}getDispatchChords(){return this._chords.map((e=>this._getChordDispatch(e)))}getSingleModifierDispatchChords(){return this._chords.map((e=>this._getSingleModifierChordDispatch(e)))}}class Yt extends Kt{constructor(e,t){super(t,e)}_keyCodeToUILabel(e){if(2===this._os)switch(e){case 15:return"\u2190";case 16:return"\u2191";case 17:return"\u2192";case 18:return"\u2193"}return Gt.YM.toString(e)}_getLabel(e){return e.isDuplicateModifierCase()?"":this._keyCodeToUILabel(e.keyCode)}_getAriaLabel(e){return e.isDuplicateModifierCase()?"":Gt.YM.toString(e.keyCode)}_getElectronAccelerator(e){return Gt.YM.toElectronAccelerator(e.keyCode)}_getUserSettingsLabel(e){if(e.isDuplicateModifierCase())return"";const t=Gt.YM.toUserSettingsUS(e.keyCode);return t?t.toLowerCase():t}_getChordDispatch(e){return Yt.getDispatchStr(e)}static getDispatchStr(e){if(e.isModifierKey())return null;let t="";return e.ctrlKey&&(t+="ctrl+"),e.shiftKey&&(t+="shift+"),e.altKey&&(t+="alt+"),e.metaKey&&(t+="meta+"),t+=Gt.YM.toString(e.keyCode),t}_getSingleModifierChordDispatch(e){return 5!==e.keyCode||e.shiftKey||e.altKey||e.metaKey?4!==e.keyCode||e.ctrlKey||e.altKey||e.metaKey?6!==e.keyCode||e.ctrlKey||e.shiftKey||e.metaKey?57!==e.keyCode||e.ctrlKey||e.shiftKey||e.altKey?null:"meta":"alt":"shift":"ctrl"}static _scanCodeToKeyCode(e){const t=Gt.Fo[e];if(-1!==t)return t;switch(e){case 10:return 31;case 11:return 32;case 12:return 33;case 13:return 34;case 14:return 35;case 15:return 36;case 16:return 37;case 17:return 38;case 18:return 39;case 19:return 40;case 20:return 41;case 21:return 42;case 22:return 43;case 23:return 44;case 24:return 45;case 25:return 46;case 26:return 47;case 27:return 48;case 28:return 49;case 29:return 50;case 30:return 51;case 31:return 52;case 32:return 53;case 33:return 54;case 34:return 55;case 35:return 56;case 36:return 22;case 37:return 23;case 38:return 24;case 39:return 25;case 40:return 26;case 41:return 27;case 42:return 28;case 43:return 29;case 44:return 30;case 45:return 21;case 51:return 88;case 52:return 86;case 53:return 92;case 54:return 94;case 55:return 93;case 56:return 0;case 57:return 85;case 58:return 95;case 59:return 91;case 60:return 87;case 61:return 89;case 62:return 90;case 106:return 97}return 0}static _toKeyCodeChord(e){if(!e)return null;if(e instanceof ft.dG)return e;const t=this._scanCodeToKeyCode(e.scanCode);return 0===t?null:new ft.dG(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,t)}static resolveKeybinding(e,t){const i=zt(e.chords.map((e=>this._toKeyCodeChord(e))));return i.length>0?[new Yt(i,t)]:[]}}var qt=i(67841),$t=i(73823),Qt=i(90651),Xt=i(37227),Zt=i(51861),Jt=i(89403),ei=i(51465),ti=i(17890),ii=i(36921),si=i(57629),ni=i(27195),ri=i(47358),oi=i(60413),ai=i(25154),ci=i(11799),li=i(5646),hi=i(31295),di=i(10350),ui=i(18956),gi=i(25689),pi=i(37882);const mi=/\(&([^\s&])\)|(^|[^&])&([^\s&])/,fi=/(&)?(&)([^\s&])/g;var _i,vi;!function(e){e[e.Right=0]="Right",e[e.Left=1]="Left"}(_i||(_i={})),function(e){e[e.Above=0]="Above",e[e.Below=1]="Below"}(vi||(vi={}));class Ci extends ci.E{constructor(e,t,i,s){e.classList.add("monaco-menu-container"),e.setAttribute("role","presentation");const n=document.createElement("div");n.classList.add("monaco-menu"),n.setAttribute("role","presentation"),super(n,{orientation:1,actionViewItemProvider:e=>this.doGetActionViewItem(e,i,r),context:i.context,actionRunner:i.actionRunner,ariaLabel:i.ariaLabel,ariaRole:"menu",focusOnlyEnabledItems:!0,triggerKeys:{keys:[3,...We.zx||We.j9?[10]:[]],keyDown:!0}}),this.menuStyles=s,this.menuElement=n,this.actionsList.tabIndex=0,this.initializeOrUpdateStyleSheet(e,s),this._register(ai.q.addTarget(n)),this._register((0,U.ko)(n,U.Bx.KEY_DOWN,(e=>{new Xe.Z(e).equals(2)&&e.preventDefault()}))),i.enableMnemonics&&this._register((0,U.ko)(n,U.Bx.KEY_DOWN,(e=>{const t=e.key.toLocaleLowerCase();if(this.mnemonics.has(t)){U.fs.stop(e,!0);const i=this.mnemonics.get(t);if(1===i.length&&(i[0]instanceof bi&&i[0].container&&this.focusItemByElement(i[0].container),i[0].onClick(e)),i.length>1){const e=i.shift();e&&e.container&&(this.focusItemByElement(e.container),i.push(e)),this.mnemonics.set(t,i)}}}))),We.j9&&this._register((0,U.ko)(n,U.Bx.KEY_DOWN,(e=>{const t=new Xe.Z(e);t.equals(14)||t.equals(11)?(this.focusedItem=this.viewItems.length-1,this.focusNext(),U.fs.stop(e,!0)):(t.equals(13)||t.equals(12))&&(this.focusedItem=0,this.focusPrevious(),U.fs.stop(e,!0))}))),this._register((0,U.ko)(this.domNode,U.Bx.MOUSE_OUT,(e=>{const t=e.relatedTarget;(0,U.QX)(t,this.domNode)||(this.focusedItem=void 0,this.updateFocus(),e.stopPropagation())}))),this._register((0,U.ko)(this.actionsList,U.Bx.MOUSE_OVER,(e=>{let t=e.target;if(t&&(0,U.QX)(t,this.actionsList)&&t!==this.actionsList){for(;t.parentElement!==this.actionsList&&null!==t.parentElement;)t=t.parentElement;if(t.classList.contains("action-item")){const e=this.focusedItem;this.setFocusedItem(t),e!==this.focusedItem&&this.updateFocus()}}}))),this._register(ai.q.addTarget(this.actionsList)),this._register((0,U.ko)(this.actionsList,ai.B.Tap,(e=>{let t=e.initialTarget;if(t&&(0,U.QX)(t,this.actionsList)&&t!==this.actionsList){for(;t.parentElement!==this.actionsList&&null!==t.parentElement;)t=t.parentElement;if(t.classList.contains("action-item")){const e=this.focusedItem;this.setFocusedItem(t),e!==this.focusedItem&&this.updateFocus()}}})));const r={parent:this};this.mnemonics=new Map,this.scrollableElement=this._register(new hi.MU(n,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0}));const o=this.scrollableElement.getDomNode();o.style.position="",this.styleScrollElement(o,s),this._register((0,U.ko)(n,ai.B.Change,(e=>{U.fs.stop(e,!0);const t=this.scrollableElement.getScrollPosition().scrollTop;this.scrollableElement.setScrollPosition({scrollTop:t-e.translationY})}))),this._register((0,U.ko)(o,U.Bx.MOUSE_UP,(e=>{e.preventDefault()})));const a=(0,U.zk)(e);n.style.maxHeight=`${Math.max(10,a.innerHeight-e.getBoundingClientRect().top-35)}px`,t=t.filter(((e,s)=>{if(i.submenuIds?.has(e.id))return console.warn(`Found submenu cycle: ${e.id}`),!1;if(e instanceof ii.wv){if(s===t.length-1||0===s)return!1;if(t[s-1]instanceof ii.wv)return!1}return!0})),this.push(t,{icon:!0,label:!0,isMenu:!0}),e.appendChild(this.scrollableElement.getDomNode()),this.scrollableElement.scanDomNode(),this.viewItems.filter((e=>!(e instanceof Si))).forEach(((e,t,i)=>{e.updatePositionInSet(t+1,i.length)}))}initializeOrUpdateStyleSheet(e,t){this.styleSheet||((0,U.Cl)(e)?this.styleSheet=(0,U.li)(e):(Ci.globalStyleSheet||(Ci.globalStyleSheet=(0,U.li)()),this.styleSheet=Ci.globalStyleSheet)),this.styleSheet.textContent=function(e,t){let i=`\n.monaco-menu {\n\tfont-size: 13px;\n\tborder-radius: 5px;\n\tmin-width: 160px;\n}\n\n${yi(di.W.menuSelection)}\n${yi(di.W.menuSubmenu)}\n\n.monaco-menu .monaco-action-bar {\n\ttext-align: right;\n\toverflow: hidden;\n\twhite-space: nowrap;\n}\n\n.monaco-menu .monaco-action-bar .actions-container {\n\tdisplay: flex;\n\tmargin: 0 auto;\n\tpadding: 0;\n\twidth: 100%;\n\tjustify-content: flex-end;\n}\n\n.monaco-menu .monaco-action-bar.vertical .actions-container {\n\tdisplay: inline-block;\n}\n\n.monaco-menu .monaco-action-bar.reverse .actions-container {\n\tflex-direction: row-reverse;\n}\n\n.monaco-menu .monaco-action-bar .action-item {\n\tcursor: pointer;\n\tdisplay: inline-block;\n\ttransition: transform 50ms ease;\n\tposition: relative; /* DO NOT REMOVE - this is the key to preventing the ghosting icon bug in Chrome 42 */\n}\n\n.monaco-menu .monaco-action-bar .action-item.disabled {\n\tcursor: default;\n}\n\n.monaco-menu .monaco-action-bar .action-item .icon,\n.monaco-menu .monaco-action-bar .action-item .codicon {\n\tdisplay: inline-block;\n}\n\n.monaco-menu .monaco-action-bar .action-item .codicon {\n\tdisplay: flex;\n\talign-items: center;\n}\n\n.monaco-menu .monaco-action-bar .action-label {\n\tfont-size: 11px;\n\tmargin-right: 4px;\n}\n\n.monaco-menu .monaco-action-bar .action-item.disabled .action-label,\n.monaco-menu .monaco-action-bar .action-item.disabled .action-label:hover {\n\tcolor: var(--vscode-disabledForeground);\n}\n\n/* Vertical actions */\n\n.monaco-menu .monaco-action-bar.vertical {\n\ttext-align: left;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tdisplay: block;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tdisplay: block;\n\tborder-bottom: 1px solid var(--vscode-menu-separatorBackground);\n\tpadding-top: 1px;\n\tpadding: 30px;\n}\n\n.monaco-menu .secondary-actions .monaco-action-bar .action-label {\n\tmargin-left: 6px;\n}\n\n/* Action Items */\n.monaco-menu .monaco-action-bar .action-item.select-container {\n\toverflow: hidden; /* somehow the dropdown overflows its container, we prevent it here to not push */\n\tflex: 1;\n\tmax-width: 170px;\n\tmin-width: 60px;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tmargin-right: 10px;\n}\n\n.monaco-menu .monaco-action-bar.vertical {\n\tmargin-left: 0;\n\toverflow: visible;\n}\n\n.monaco-menu .monaco-action-bar.vertical .actions-container {\n\tdisplay: block;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tpadding: 0;\n\ttransform: none;\n\tdisplay: flex;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item.active {\n\ttransform: none;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item {\n\tflex: 1 1 auto;\n\tdisplay: flex;\n\theight: 2em;\n\talign-items: center;\n\tposition: relative;\n\tmargin: 0 4px;\n\tborder-radius: 4px;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .keybinding,\n.monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .keybinding {\n\topacity: unset;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label {\n\tflex: 1 1 auto;\n\ttext-decoration: none;\n\tpadding: 0 1em;\n\tbackground: none;\n\tfont-size: 12px;\n\tline-height: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .keybinding,\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\tdisplay: inline-block;\n\tflex: 2 1 auto;\n\tpadding: 0 1em;\n\ttext-align: right;\n\tfont-size: 12px;\n\tline-height: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\theight: 100%;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon {\n\tfont-size: 16px !important;\n\tdisplay: flex;\n\talign-items: center;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon::before {\n\tmargin-left: auto;\n\tmargin-right: -20px;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item.disabled .keybinding,\n.monaco-menu .monaco-action-bar.vertical .action-item.disabled .submenu-indicator {\n\topacity: 0.4;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator) {\n\tdisplay: inline-block;\n\tbox-sizing: border-box;\n\tmargin: 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tposition: static;\n\toverflow: visible;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item .monaco-submenu {\n\tposition: absolute;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\twidth: 100%;\n\theight: 0px !important;\n\topacity: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator.text {\n\tpadding: 0.7em 1em 0.1em 1em;\n\tfont-weight: bold;\n\topacity: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:hover {\n\tcolor: inherit;\n}\n\n.monaco-menu .monaco-action-bar.vertical .menu-item-check {\n\tposition: absolute;\n\tvisibility: hidden;\n\twidth: 1em;\n\theight: 100%;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item.checked .menu-item-check {\n\tvisibility: visible;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n/* Context Menu */\n\n.context-view.monaco-menu-container {\n\toutline: 0;\n\tborder: none;\n\tanimation: fadeIn 0.083s linear;\n\t-webkit-app-region: no-drag;\n}\n\n.context-view.monaco-menu-container :focus,\n.context-view.monaco-menu-container .monaco-action-bar.vertical:focus,\n.context-view.monaco-menu-container .monaco-action-bar.vertical :focus {\n\toutline: 0;\n}\n\n.hc-black .context-view.monaco-menu-container,\n.hc-light .context-view.monaco-menu-container,\n:host-context(.hc-black) .context-view.monaco-menu-container,\n:host-context(.hc-light) .context-view.monaco-menu-container {\n\tbox-shadow: none;\n}\n\n.hc-black .monaco-menu .monaco-action-bar.vertical .action-item.focused,\n.hc-light .monaco-menu .monaco-action-bar.vertical .action-item.focused,\n:host-context(.hc-black) .monaco-menu .monaco-action-bar.vertical .action-item.focused,\n:host-context(.hc-light) .monaco-menu .monaco-action-bar.vertical .action-item.focused {\n\tbackground: none;\n}\n\n/* Vertical Action Bar Styles */\n\n.monaco-menu .monaco-action-bar.vertical {\n\tpadding: 4px 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item {\n\theight: 2em;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator),\n.monaco-menu .monaco-action-bar.vertical .keybinding {\n\tfont-size: inherit;\n\tpadding: 0 2em;\n\tmax-height: 100%;\n}\n\n.monaco-menu .monaco-action-bar.vertical .menu-item-check {\n\tfont-size: inherit;\n\twidth: 2em;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tfont-size: inherit;\n\tmargin: 5px 0 !important;\n\tpadding: 0;\n\tborder-radius: 0;\n}\n\n.linux .monaco-menu .monaco-action-bar.vertical .action-label.separator,\n:host-context(.linux) .monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tmargin-left: 0;\n\tmargin-right: 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\tfont-size: 60%;\n\tpadding: 0 1.8em;\n}\n\n.linux .monaco-menu .monaco-action-bar.vertical .submenu-indicator,\n:host-context(.linux) .monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\theight: 100%;\n\tmask-size: 10px 10px;\n\t-webkit-mask-size: 10px 10px;\n}\n\n.monaco-menu .action-item {\n\tcursor: default;\n}`;if(t){i+="\n\t\t\t/* Arrows */\n\t\t\t.monaco-scrollable-element > .scrollbar > .scra {\n\t\t\t\tcursor: pointer;\n\t\t\t\tfont-size: 11px !important;\n\t\t\t}\n\n\t\t\t.monaco-scrollable-element > .visible {\n\t\t\t\topacity: 1;\n\n\t\t\t\t/* Background rule added for IE9 - to allow clicks on dom node */\n\t\t\t\tbackground:rgba(0,0,0,0);\n\n\t\t\t\ttransition: opacity 100ms linear;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .invisible {\n\t\t\t\topacity: 0;\n\t\t\t\tpointer-events: none;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .invisible.fade {\n\t\t\t\ttransition: opacity 800ms linear;\n\t\t\t}\n\n\t\t\t/* Scrollable Content Inset Shadow */\n\t\t\t.monaco-scrollable-element > .shadow {\n\t\t\t\tposition: absolute;\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .shadow.top {\n\t\t\t\tdisplay: block;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 3px;\n\t\t\t\theight: 3px;\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .shadow.left {\n\t\t\t\tdisplay: block;\n\t\t\t\ttop: 3px;\n\t\t\t\tleft: 0;\n\t\t\t\theight: 100%;\n\t\t\t\twidth: 3px;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .shadow.top-left-corner {\n\t\t\t\tdisplay: block;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 0;\n\t\t\t\theight: 3px;\n\t\t\t\twidth: 3px;\n\t\t\t}\n\t\t";const t=e.scrollbarShadow;t&&(i+=`\n\t\t\t\t.monaco-scrollable-element > .shadow.top {\n\t\t\t\t\tbox-shadow: ${t} 0 6px 6px -6px inset;\n\t\t\t\t}\n\n\t\t\t\t.monaco-scrollable-element > .shadow.left {\n\t\t\t\t\tbox-shadow: ${t} 6px 0 6px -6px inset;\n\t\t\t\t}\n\n\t\t\t\t.monaco-scrollable-element > .shadow.top.left {\n\t\t\t\t\tbox-shadow: ${t} 6px 6px 6px -6px inset;\n\t\t\t\t}\n\t\t\t`);const s=e.scrollbarSliderBackground;s&&(i+=`\n\t\t\t\t.monaco-scrollable-element > .scrollbar > .slider {\n\t\t\t\t\tbackground: ${s};\n\t\t\t\t}\n\t\t\t`);const n=e.scrollbarSliderHoverBackground;n&&(i+=`\n\t\t\t\t.monaco-scrollable-element > .scrollbar > .slider:hover {\n\t\t\t\t\tbackground: ${n};\n\t\t\t\t}\n\t\t\t`);const r=e.scrollbarSliderActiveBackground;r&&(i+=`\n\t\t\t\t.monaco-scrollable-element > .scrollbar > .slider.active {\n\t\t\t\t\tbackground: ${r};\n\t\t\t\t}\n\t\t\t`)}return i}(t,(0,U.Cl)(e))}styleScrollElement(e,t){const i=t.foregroundColor??"",s=t.backgroundColor??"",n=t.borderColor?`1px solid ${t.borderColor}`:"",r=t.shadowColor?`0 2px 8px ${t.shadowColor}`:"";e.style.outline=n,e.style.borderRadius="5px",e.style.color=i,e.style.backgroundColor=s,e.style.boxShadow=r}getContainer(){return this.scrollableElement.getDomNode()}get onScroll(){return this.scrollableElement.onScroll}focusItemByElement(e){const t=this.focusedItem;this.setFocusedItem(e),t!==this.focusedItem&&this.updateFocus()}setFocusedItem(e){for(let t=0;t<this.actionsList.children.length;t++){if(e===this.actionsList.children[t]){this.focusedItem=t;break}}}updateFocus(e){super.updateFocus(e,!0,!0),"undefined"!==typeof this.focusedItem&&this.scrollableElement.setScrollPosition({scrollTop:Math.round(this.menuElement.scrollTop)})}doGetActionViewItem(e,t,i){if(e instanceof ii.wv)return new Si(t.context,e,{icon:!0},this.menuStyles);if(e instanceof ii.YH){const s=new bi(e,e.actions,i,{...t,submenuIds:new Set([...t.submenuIds||[],e.id])},this.menuStyles);if(t.enableMnemonics){const e=s.getMnemonic();if(e&&s.isEnabled()){let t=[];this.mnemonics.has(e)&&(t=this.mnemonics.get(e)),t.push(s),this.mnemonics.set(e,t)}}return s}{const i={enableMnemonics:t.enableMnemonics,useEventAsContext:t.useEventAsContext};if(t.getKeyBinding){const s=t.getKeyBinding(e);if(s){const e=s.getLabel();e&&(i.keybinding=e)}}const s=new Ei(t.context,e,i,this.menuStyles);if(t.enableMnemonics){const e=s.getMnemonic();if(e&&s.isEnabled()){let t=[];this.mnemonics.has(e)&&(t=this.mnemonics.get(e)),t.push(s),this.mnemonics.set(e,t)}}return s}}}class Ei extends li.EH{constructor(e,t,i,s){if(i.isMenu=!0,super(t,t,i),this.menuStyle=s,this.options=i,this.options.icon=void 0!==i.icon&&i.icon,this.options.label=void 0===i.label||i.label,this.cssClass="",this.options.label&&i.enableMnemonics){const e=this.action.label;if(e){const t=mi.exec(e);t&&(this.mnemonic=(t[1]?t[1]:t[3]).toLocaleLowerCase())}}this.runOnceToEnableMouseUp=new m.uC((()=>{this.element&&(this._register((0,U.ko)(this.element,U.Bx.MOUSE_UP,(e=>{if(U.fs.stop(e,!0),oi.gm){if(new ri.P((0,U.zk)(this.element),e).rightButton)return;this.onClick(e)}else setTimeout((()=>{this.onClick(e)}),0)}))),this._register((0,U.ko)(this.element,U.Bx.CONTEXT_MENU,(e=>{U.fs.stop(e,!0)}))))}),100),this._register(this.runOnceToEnableMouseUp)}render(e){super.render(e),this.element&&(this.container=e,this.item=(0,U.BC)(this.element,(0,U.$)("a.action-menu-item")),this._action.id===ii.wv.ID?this.item.setAttribute("role","presentation"):(this.item.setAttribute("role","menuitem"),this.mnemonic&&this.item.setAttribute("aria-keyshortcuts",`${this.mnemonic}`)),this.check=(0,U.BC)(this.item,(0,U.$)("span.menu-item-check"+gi.L.asCSSSelector(di.W.menuSelection))),this.check.setAttribute("role","none"),this.label=(0,U.BC)(this.item,(0,U.$)("span.action-label")),this.options.label&&this.options.keybinding&&((0,U.BC)(this.item,(0,U.$)("span.keybinding")).textContent=this.options.keybinding),this.runOnceToEnableMouseUp.schedule(),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked(),this.applyStyle())}blur(){super.blur(),this.applyStyle()}focus(){super.focus(),this.item?.focus(),this.applyStyle()}updatePositionInSet(e,t){this.item&&(this.item.setAttribute("aria-posinset",`${e}`),this.item.setAttribute("aria-setsize",`${t}`))}updateLabel(){if(this.label&&this.options.label){(0,U.w_)(this.label);let e=(0,pi.pS)(this.action.label);if(e){const t=function(e){const t=mi,i=t.exec(e);if(!i)return e;const s=!i[1];return e.replace(t,s?"$2$3":"").trim()}(e);this.options.enableMnemonics||(e=t),this.label.setAttribute("aria-label",t.replace(/&&/g,"&"));const i=mi.exec(e);if(i){e=l.ih(e),fi.lastIndex=0;let t=fi.exec(e);for(;t&&t[1];)t=fi.exec(e);const s=e=>e.replace(/&&/g,"&");t?this.label.append(l.NB(s(e.substr(0,t.index))," "),(0,U.$)("u",{"aria-hidden":"true"},t[3]),l.BO(s(e.substr(t.index+t[0].length))," ")):this.label.innerText=s(e).trim(),this.item?.setAttribute("aria-keyshortcuts",(i[1]?i[1]:i[3]).toLocaleLowerCase())}else this.label.innerText=e.replace(/&&/g,"&").trim()}}}updateTooltip(){}updateClass(){this.cssClass&&this.item&&this.item.classList.remove(...this.cssClass.split(" ")),this.options.icon&&this.label?(this.cssClass=this.action.class||"",this.label.classList.add("icon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" ")),this.updateEnabled()):this.label&&this.label.classList.remove("icon")}updateEnabled(){this.action.enabled?(this.element&&(this.element.classList.remove("disabled"),this.element.removeAttribute("aria-disabled")),this.item&&(this.item.classList.remove("disabled"),this.item.removeAttribute("aria-disabled"),this.item.tabIndex=0)):(this.element&&(this.element.classList.add("disabled"),this.element.setAttribute("aria-disabled","true")),this.item&&(this.item.classList.add("disabled"),this.item.setAttribute("aria-disabled","true")))}updateChecked(){if(!this.item)return;const e=this.action.checked;this.item.classList.toggle("checked",!!e),void 0!==e?(this.item.setAttribute("role","menuitemcheckbox"),this.item.setAttribute("aria-checked",e?"true":"false")):(this.item.setAttribute("role","menuitem"),this.item.setAttribute("aria-checked",""))}getMnemonic(){return this.mnemonic}applyStyle(){const e=this.element&&this.element.classList.contains("focused"),t=e&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor,i=e&&this.menuStyle.selectionBackgroundColor?this.menuStyle.selectionBackgroundColor:void 0,s=e&&this.menuStyle.selectionBorderColor?`1px solid ${this.menuStyle.selectionBorderColor}`:"",n=e&&this.menuStyle.selectionBorderColor?"-1px":"";this.item&&(this.item.style.color=t??"",this.item.style.backgroundColor=i??"",this.item.style.outline=s,this.item.style.outlineOffset=n),this.check&&(this.check.style.color=t??"")}}class bi extends Ei{constructor(e,t,i,s,n){super(e,e,s,n),this.submenuActions=t,this.parentData=i,this.submenuOptions=s,this.mysubmenu=null,this.submenuDisposables=this._register(new c.Cm),this.mouseOver=!1,this.expandDirection=s&&void 0!==s.expandDirection?s.expandDirection:{horizontal:_i.Right,vertical:vi.Below},this.showScheduler=new m.uC((()=>{this.mouseOver&&(this.cleanupExistingSubmenu(!1),this.createSubmenu(!1))}),250),this.hideScheduler=new m.uC((()=>{this.element&&!(0,U.QX)((0,U.bq)(),this.element)&&this.parentData.submenu===this.mysubmenu&&(this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!0))}),750)}render(e){super.render(e),this.element&&(this.item&&(this.item.classList.add("monaco-submenu-item"),this.item.tabIndex=0,this.item.setAttribute("aria-haspopup","true"),this.updateAriaExpanded("false"),this.submenuIndicator=(0,U.BC)(this.item,(0,U.$)("span.submenu-indicator"+gi.L.asCSSSelector(di.W.menuSubmenu))),this.submenuIndicator.setAttribute("aria-hidden","true")),this._register((0,U.ko)(this.element,U.Bx.KEY_UP,(e=>{const t=new Xe.Z(e);(t.equals(17)||t.equals(3))&&(U.fs.stop(e,!0),this.createSubmenu(!0))}))),this._register((0,U.ko)(this.element,U.Bx.KEY_DOWN,(e=>{const t=new Xe.Z(e);(0,U.bq)()===this.item&&(t.equals(17)||t.equals(3))&&U.fs.stop(e,!0)}))),this._register((0,U.ko)(this.element,U.Bx.MOUSE_OVER,(e=>{this.mouseOver||(this.mouseOver=!0,this.showScheduler.schedule())}))),this._register((0,U.ko)(this.element,U.Bx.MOUSE_LEAVE,(e=>{this.mouseOver=!1}))),this._register((0,U.ko)(this.element,U.Bx.FOCUS_OUT,(e=>{this.element&&!(0,U.QX)((0,U.bq)(),this.element)&&this.hideScheduler.schedule()}))),this._register(this.parentData.parent.onScroll((()=>{this.parentData.submenu===this.mysubmenu&&(this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!0))}))))}updateEnabled(){}onClick(e){U.fs.stop(e,!0),this.cleanupExistingSubmenu(!1),this.createSubmenu(!0)}cleanupExistingSubmenu(e){if(this.parentData.submenu&&(e||this.parentData.submenu!==this.mysubmenu)){try{this.parentData.submenu.dispose()}catch{}this.parentData.submenu=void 0,this.updateAriaExpanded("false"),this.submenuContainer&&(this.submenuDisposables.clear(),this.submenuContainer=void 0)}}calculateSubmenuMenuLayout(e,t,i,s){const n={top:0,left:0};return n.left=et(e.width,t.width,{position:s.horizontal===_i.Right?0:1,offset:i.left,size:i.width}),n.left>=i.left&&n.left<i.left+i.width&&(i.left+10+t.width<=e.width&&(n.left=i.left+10),i.top+=10,i.height=0),n.top=et(e.height,t.height,{position:0,offset:i.top,size:0}),n.top+t.height===i.top&&n.top+i.height+t.height<=e.height&&(n.top+=i.height),n}createSubmenu(e=!0){if(this.element)if(this.parentData.submenu)this.parentData.submenu.focus(!1);else{this.updateAriaExpanded("true"),this.submenuContainer=(0,U.BC)(this.element,(0,U.$)("div.monaco-submenu")),this.submenuContainer.classList.add("menubar-menu-items-holder","context-view");const t=(0,U.zk)(this.parentData.parent.domNode).getComputedStyle(this.parentData.parent.domNode),i=parseFloat(t.paddingTop||"0")||0;this.submenuContainer.style.zIndex="1",this.submenuContainer.style.position="fixed",this.submenuContainer.style.top="0",this.submenuContainer.style.left="0",this.parentData.submenu=new Ci(this.submenuContainer,this.submenuActions.length?this.submenuActions:[new ii.HJ],this.submenuOptions,this.menuStyle);const s=this.element.getBoundingClientRect(),n={top:s.top-i,left:s.left,height:s.height+2*i,width:s.width},r=this.submenuContainer.getBoundingClientRect(),o=(0,U.zk)(this.element),{top:a,left:c}=this.calculateSubmenuMenuLayout(new U.fg(o.innerWidth,o.innerHeight),U.fg.lift(r),n,this.expandDirection);this.submenuContainer.style.left=c-r.left+"px",this.submenuContainer.style.top=a-r.top+"px",this.submenuDisposables.add((0,U.ko)(this.submenuContainer,U.Bx.KEY_UP,(e=>{new Xe.Z(e).equals(15)&&(U.fs.stop(e,!0),this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0))}))),this.submenuDisposables.add((0,U.ko)(this.submenuContainer,U.Bx.KEY_DOWN,(e=>{new Xe.Z(e).equals(15)&&U.fs.stop(e,!0)}))),this.submenuDisposables.add(this.parentData.submenu.onDidCancel((()=>{this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0)}))),this.parentData.submenu.focus(e),this.mysubmenu=this.parentData.submenu}}updateAriaExpanded(e){this.item&&this.item?.setAttribute("aria-expanded",e)}applyStyle(){super.applyStyle();const e=this.element&&this.element.classList.contains("focused")&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor;this.submenuIndicator&&(this.submenuIndicator.style.color=e??"")}dispose(){super.dispose(),this.hideScheduler.dispose(),this.mysubmenu&&(this.mysubmenu.dispose(),this.mysubmenu=null),this.submenuContainer&&(this.submenuContainer=void 0)}}class Si extends li.Z4{constructor(e,t,i,s){super(e,t,i),this.menuStyles=s}render(e){super.render(e),this.label&&(this.label.style.borderBottomColor=this.menuStyles.separatorColor?`${this.menuStyles.separatorColor}`:"")}}function yi(e){const t=(0,ui.J)()[e.id];return`.codicon-${e.id}:before { content: '\\${t.toString(16)}'; }`}var wi=i(19070);class Ri{constructor(e,t,i,s){this.contextViewService=e,this.telemetryService=t,this.notificationService=i,this.keybindingService=s,this.focusToReturn=null,this.lastContainer=null,this.block=null,this.blockDisposable=null,this.options={blockMouse:!0}}configure(e){this.options=e}showContextMenu(e){const t=e.getActions();if(!t.length)return;let i;this.focusToReturn=(0,U.bq)();const s=(0,U.sb)(e.domForShadowRoot)?e.domForShadowRoot:void 0;this.contextViewService.showContextView({getAnchor:()=>e.getAnchor(),canRelayout:!1,anchorAlignment:e.anchorAlignment,anchorAxisAlignment:e.anchorAxisAlignment,render:s=>{this.lastContainer=s;const n=e.getMenuClassName?e.getMenuClassName():"";n&&(s.className+=" "+n),this.options.blockMouse&&(this.block=s.appendChild((0,U.$)(".context-view-block")),this.block.style.position="fixed",this.block.style.cursor="initial",this.block.style.left="0",this.block.style.top="0",this.block.style.width="100%",this.block.style.height="100%",this.block.style.zIndex="-1",this.blockDisposable?.dispose(),this.blockDisposable=(0,U.ko)(this.block,U.Bx.MOUSE_DOWN,(e=>e.stopPropagation())));const r=new c.Cm,o=e.actionRunner||new ii.LN;o.onWillRun((t=>this.onActionRun(t,!e.skipTelemetry)),this,r),o.onDidRun(this.onDidActionRun,this,r),i=new Ci(s,t,{actionViewItemProvider:e.getActionViewItem,context:e.getActionsContext?e.getActionsContext():null,actionRunner:o,getKeyBinding:e.getKeyBinding?e.getKeyBinding:e=>this.keybindingService.lookupKeybinding(e.id)},wi.XS),i.onDidCancel((()=>this.contextViewService.hideContextView(!0)),null,r),i.onDidBlur((()=>this.contextViewService.hideContextView(!0)),null,r);const a=(0,U.zk)(s);return r.add((0,U.ko)(a,U.Bx.BLUR,(()=>this.contextViewService.hideContextView(!0)))),r.add((0,U.ko)(a,U.Bx.MOUSE_DOWN,(e=>{if(e.defaultPrevented)return;const t=new ri.P(a,e);let i=t.target;if(!t.rightButton){for(;i;){if(i===s)return;i=i.parentElement}this.contextViewService.hideContextView(!0)}}))),(0,c.qE)(r,i)},focus:()=>{i?.focus(!!e.autoSelectFirstItem)},onHide:t=>{e.onHide?.(!!t),this.block&&(this.block.remove(),this.block=null),this.blockDisposable?.dispose(),this.blockDisposable=null,this.lastContainer&&((0,U.bq)()===this.lastContainer||(0,U.QX)((0,U.bq)(),this.lastContainer))&&this.focusToReturn?.focus(),this.lastContainer=null}},s,!!s)}onActionRun(e,t){t&&this.telemetryService.publicLog2("workbenchActionExecuted",{id:e.action.id,from:"contextMenu"}),this.contextViewService.hideContextView(!1)}onDidActionRun(e){e.error&&!(0,v.MB)(e.error)&&this.notificationService.error(e.error)}}var Li=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Ti=function(e,t){return function(i,s){t(i,s,e)}};let xi=class extends c.jG{get contextMenuHandler(){return this._contextMenuHandler||(this._contextMenuHandler=new Ri(this.contextViewService,this.telemetryService,this.notificationService,this.keybindingService)),this._contextMenuHandler}constructor(e,t,i,s,n,r){super(),this.telemetryService=e,this.notificationService=t,this.contextViewService=i,this.keybindingService=s,this.menuService=n,this.contextKeyService=r,this._contextMenuHandler=void 0,this._onDidShowContextMenu=this._store.add(new Q.vl),this.onDidShowContextMenu=this._onDidShowContextMenu.event,this._onDidHideContextMenu=this._store.add(new Q.vl)}configure(e){this.contextMenuHandler.configure(e)}showContextMenu(e){e=ki.transform(e,this.menuService,this.contextKeyService),this.contextMenuHandler.showContextMenu({...e,onHide:t=>{e.onHide?.(t),this._onDidHideContextMenu.fire()}}),U.Di.getInstance().resetKeyStatus(),this._onDidShowContextMenu.fire()}};var ki;xi=Li([Ti(0,Qt.k),Ti(1,me.Ot),Ti(2,Oe.l),Ti(3,De.b),Ti(4,ni.ez),Ti(5,ie.fN)],xi),function(e){e.transform=function(e,t,i){if(!((s=e)&&s.menuId instanceof ni.D8))return e;var s;const{menuId:n,menuActionOptions:r,contextKeyService:o}=e;return{...e,getActions:()=>{const s=[];if(n){const e=t.getMenuActions(n,o??i,r);(0,si.$u)(e,s)}return e.getActions?ii.wv.join(e.getActions(),s):s}}}}(ki||(ki={}));var Ai,Ni=i(908);!function(e){e[e.API=0]="API",e[e.USER=1]="USER"}(Ai||(Ai={}));var Ii=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Oi=function(e,t){return function(i,s){t(i,s,e)}};let Di=class{constructor(e){this._commandService=e}async open(e,t){if(!(0,C.v$)(e,C.ny.command))return!1;if(!t?.allowCommands)return!0;if("string"===typeof e&&(e=h.r.parse(e)),Array.isArray(t.allowCommands)&&!t.allowCommands.includes(e.path))return!0;let i=[];try{i=(0,Ni.qg)(decodeURIComponent(e.query))}catch{try{i=(0,Ni.qg)(e.query)}catch{}}return Array.isArray(i)||(i=[i]),await this._commandService.executeCommand(e.path,...i),!0}};Di=Ii([Oi(0,St.d)],Di);let Mi=class{constructor(e){this._editorService=e}async open(e,t){"string"===typeof e&&(e=h.r.parse(e));const{selection:i,uri:s}=(0,Ue.e)(e);return(e=s).scheme===C.ny.file&&(e=(0,Jt.Fd)(e)),await this._editorService.openCodeEditor({resource:e,options:{selection:i,source:t?.fromUserGesture?Ai.USER:Ai.API,...t?.editorOptions}},this._editorService.getFocusedCodeEditor(),t?.openToSide),!0}};Mi=Ii([Oi(0,g.T)],Mi);let Pi=class{constructor(e,t){this._openers=new X.w,this._validators=new X.w,this._resolvers=new X.w,this._resolvedUriTargets=new yt.fT((e=>e.with({path:null,fragment:null,query:null}).toString())),this._externalOpeners=new X.w,this._defaultExternalOpener={openExternal:async e=>((0,C.fV)(e,C.ny.http,C.ny.https)?U.CE(e):a.G.location.href=e,!0)},this._openers.push({open:async(e,t)=>!(!t?.openExternal&&!(0,C.fV)(e,C.ny.mailto,C.ny.http,C.ny.https,C.ny.vsls))&&(await this._doOpenExternal(e,t),!0)}),this._openers.push(new Di(t)),this._openers.push(new Mi(e))}registerOpener(e){return{dispose:this._openers.unshift(e)}}async open(e,t){const i="string"===typeof e?h.r.parse(e):e,s=this._resolvedUriTargets.get(i)??e;for(const n of this._validators)if(!await n.shouldOpen(s,t))return!1;for(const n of this._openers){if(await n.open(e,t))return!0}return!1}async resolveExternalUri(e,t){for(const i of this._resolvers)try{const s=await i.resolveExternalUri(e,t);if(s)return this._resolvedUriTargets.has(s.resolved)||this._resolvedUriTargets.set(s.resolved,e),s}catch{}throw new Error("Could not resolve external URI: "+e.toString())}async _doOpenExternal(e,t){const i="string"===typeof e?h.r.parse(e):e;let s,n;try{s=(await this.resolveExternalUri(i,t)).resolved}catch{s=i}if(n="string"===typeof e&&i.toString()===s.toString()?e:encodeURI(s.toString(!0)),t?.allowContributedOpeners){const e="string"===typeof t?.allowContributedOpeners?t?.allowContributedOpeners:void 0;for(const t of this._externalOpeners){if(await t.openExternal(n,{sourceUri:i,preferredOpenerId:e},at.XO.None))return!0}}return this._defaultExternalOpener.openExternal(n,{sourceUri:i},at.XO.None)}dispose(){this._validators.clear()}};Pi=Ii([Oi(0,g.T),Oi(1,St.d)],Pi);var Fi=i(10920),Ui=i(10154),Hi=i(30707),Bi=i(37550),Wi=i(16363),Vi=i(71597),zi=i(51467),Gi=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},ji=function(e,t){return function(i,s){t(i,s,e)}};let Ki=class extends c.jG{constructor(e,t){super(),this.quickInputService=e,this.instantiationService=t,this.registry=Rt.O.as(Vi.Fd.Quickaccess),this.mapProviderToDescriptor=new Map,this.lastAcceptedPickerValues=new Map,this.visibleQuickAccess=void 0}show(e="",t){this.doShowOrPick(e,!1,t)}doShowOrPick(e,t,i){const[s,n]=this.getOrInstantiateProvider(e,i?.enabledProviderPrefixes),r=this.visibleQuickAccess,o=r?.descriptor;if(r&&n&&o===n)return e===n.prefix||i?.preserveValue||(r.picker.value=e),void this.adjustValueSelection(r.picker,n,i);if(n&&!i?.preserveValue){let t;if(r&&o&&o!==n){const e=r.value.substr(o.prefix.length);e&&(t=`${n.prefix}${e}`)}if(!t){const e=s?.defaultFilterValue;e===Vi.aJ.LAST?t=this.lastAcceptedPickerValues.get(n):"string"===typeof e&&(t=`${n.prefix}${e}`)}"string"===typeof t&&(e=t)}const a=r?.picker?.valueSelection,l=r?.picker?.value,h=new c.Cm,d=h.add(this.quickInputService.createQuickPick({useSeparators:!0}));let u;d.value=e,this.adjustValueSelection(d,n,i),d.placeholder=i?.placeholder??n?.placeholder,d.quickNavigate=i?.quickNavigateConfiguration,d.hideInput=!!d.quickNavigate&&!r,("number"===typeof i?.itemActivation||i?.quickNavigateConfiguration)&&(d.itemActivation=i?.itemActivation??zi.C1.SECOND),d.contextKey=n?.contextKey,d.filterValue=e=>e.substring(n?n.prefix.length:0),t&&(u=new m.Zv,h.add(Q.Jh.once(d.onWillAccept)((e=>{e.veto(),d.hide()})))),h.add(this.registerPickerListeners(d,s,n,e,i));const g=h.add(new at.Qi);return s&&h.add(s.provide(d,g.token,i?.providerOptions)),Q.Jh.once(d.onDidHide)((()=>{0===d.selectedItems.length&&g.cancel(),h.dispose(),u?.complete(d.selectedItems.slice(0))})),d.show(),a&&l===e&&(d.valueSelection=a),t?u?.p:void 0}adjustValueSelection(e,t,i){let s;s=i?.preserveValue?[e.value.length,e.value.length]:[t?.prefix.length??0,e.value.length],e.valueSelection=s}registerPickerListeners(e,t,i,s,n){const r=new c.Cm,o=this.visibleQuickAccess={picker:e,descriptor:i,value:s};return r.add((0,c.s)((()=>{o===this.visibleQuickAccess&&(this.visibleQuickAccess=void 0)}))),r.add(e.onDidChangeValue((e=>{const[i]=this.getOrInstantiateProvider(e,n?.enabledProviderPrefixes);i!==t?this.show(e,{enabledProviderPrefixes:n?.enabledProviderPrefixes,preserveValue:!0,providerOptions:n?.providerOptions}):o.value=e}))),i&&r.add(e.onDidAccept((()=>{this.lastAcceptedPickerValues.set(i,e.value)}))),r}getOrInstantiateProvider(e,t){const i=this.registry.getQuickAccessProvider(e);if(!i||t&&!t?.includes(i.prefix))return[void 0,void 0];let s=this.mapProviderToDescriptor.get(i);return s||(s=this.instantiationService.createInstance(i.ctor),this.mapProviderToDescriptor.set(i,s)),[s,i]}};Ki=Gi([ji(0,zi.GK),ji(1,ae._Y)],Ki);var Yi=i(35315),qi=i(56245),$i=i(20370),Qi=i(96032),Xi=i(58694),Zi=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class Ji{constructor(e){this.nodes=e}toString(){return this.nodes.map((e=>"string"===typeof e?e:e.label)).join("")}}Zi([Xi.B],Ji.prototype,"toString",null);const es=/\[([^\]]+)\]\(((?:https?:\/\/|command:|file:)[^\)\s]+)(?: (["'])(.+?)(\3))?\)/gi;const ts={},is=new Qi.n("quick-input-button-icon-");function ss(e,t,i){let s=e.iconClass||function(e){if(!e)return;let t;const i=e.dark.toString();return ts[i]?t=ts[i]:(t=is.nextId(),U.Wt(`.${t}, .hc-light .${t}`,`background-image: ${U.Tf(e.light||e.dark)}`),U.Wt(`.vs-dark .${t}, .hc-black .${t}`,`background-image: ${U.Tf(e.dark)}`),ts[i]=t),t}(e.iconPath);return e.alwaysVisible&&(s=s?`${s} always-visible`:"always-visible"),{id:t,label:"",tooltip:e.tooltip||"",class:s,enabled:!0,run:i}}function ns(e,t,i){U.Ln(t);const s=function(e){const t=[];let i,s=0;for(;i=es.exec(e);){i.index-s>0&&t.push(e.substring(s,i.index));const[,n,r,,o]=i;o?t.push({label:n,href:r,title:o}):t.push({label:n,href:r}),s=i.index+i[0].length}return s<e.length&&t.push(e.substring(s)),new Ji(t)}(e);let n=0;for(const r of s.nodes)if("string"===typeof r)t.append(...(0,$i.n)(r));else{let e=r.title;!e&&r.href.startsWith("command:")?e=(0,b.kg)("executeCommand","Click to execute command '{0}'",r.href.substring(8)):e||(e=r.href);const s=U.$("a",{href:r.href,title:e,tabIndex:n++},r.label);s.style.textDecoration="underline";const o=e=>{U.sd(e)&&U.fs.stop(e,!0),i.callback(r.href)},a=i.disposables.add(new qi.f(s,U.Bx.CLICK)).event,c=i.disposables.add(new qi.f(s,U.Bx.KEY_DOWN)).event,l=Q.Jh.chain(c,(e=>e.filter((e=>{const t=new Xe.Z(e);return t.equals(10)||t.equals(3)}))));i.disposables.add(ai.q.addTarget(s));const h=i.disposables.add(new qi.f(s,ai.B.Tap)).event;Q.Jh.any(a,h,l)(o,null,i.disposables),t.appendChild(s)}}var rs=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},os=function(e,t){return function(i,s){t(i,s,e)}};const as="inQuickInput",cs=new ie.N1(as,!1,(0,b.kg)("inQuickInput","Whether keyboard focus is inside the quick input control")),ls=ie.M$.has(as),hs="quickInputType",ds=new ie.N1(hs,void 0,(0,b.kg)("quickInputType","The type of the currently visible quick input")),us="cursorAtEndOfQuickInputBox",gs=new ie.N1(us,!1,(0,b.kg)("cursorAtEndOfQuickInputBox","Whether the cursor in the quick input is at the end of the input box")),ps=ie.M$.has(us),ms={iconClass:gi.L.asClassName(di.W.quickInputBack),tooltip:(0,b.kg)("quickInput.back","Back"),handle:-1};class fs extends c.jG{static{this.noPromptMessage=(0,b.kg)("inputModeEntry","Press 'Enter' to confirm your input or 'Escape' to cancel")}constructor(e){super(),this.ui=e,this._widgetUpdated=!1,this.visible=!1,this._enabled=!0,this._busy=!1,this._ignoreFocusOut=!1,this._leftButtons=[],this._rightButtons=[],this._inlineButtons=[],this.buttonsUpdated=!1,this._toggles=[],this.togglesUpdated=!1,this.noValidationMessage=fs.noPromptMessage,this._severity=ge.A.Ignore,this.onDidTriggerButtonEmitter=this._register(new Q.vl),this.onDidHideEmitter=this._register(new Q.vl),this.onWillHideEmitter=this._register(new Q.vl),this.onDisposeEmitter=this._register(new Q.vl),this.visibleDisposables=this._register(new c.Cm),this.onDidHide=this.onDidHideEmitter.event}get title(){return this._title}set title(e){this._title=e,this.update()}get description(){return this._description}set description(e){this._description=e,this.update()}get step(){return this._steps}set step(e){this._steps=e,this.update()}get totalSteps(){return this._totalSteps}set totalSteps(e){this._totalSteps=e,this.update()}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this.update()}get contextKey(){return this._contextKey}set contextKey(e){this._contextKey=e,this.update()}get busy(){return this._busy}set busy(e){this._busy=e,this.update()}get ignoreFocusOut(){return this._ignoreFocusOut}set ignoreFocusOut(e){const t=this._ignoreFocusOut!==e&&!We.un;this._ignoreFocusOut=e&&!We.un,t&&this.update()}get titleButtons(){return this._leftButtons.length?[...this._leftButtons,this._rightButtons]:this._rightButtons}get buttons(){return[...this._leftButtons,...this._rightButtons,...this._inlineButtons]}set buttons(e){this._leftButtons=e.filter((e=>e===ms)),this._rightButtons=e.filter((e=>e!==ms&&e.location!==zi.dH.Inline)),this._inlineButtons=e.filter((e=>e.location===zi.dH.Inline)),this.buttonsUpdated=!0,this.update()}get toggles(){return this._toggles}set toggles(e){this._toggles=e??[],this.togglesUpdated=!0,this.update()}get validationMessage(){return this._validationMessage}set validationMessage(e){this._validationMessage=e,this.update()}get severity(){return this._severity}set severity(e){this._severity=e,this.update()}show(){this.visible||(this.visibleDisposables.add(this.ui.onDidTriggerButton((e=>{-1!==this.buttons.indexOf(e)&&this.onDidTriggerButtonEmitter.fire(e)}))),this.ui.show(this),this.visible=!0,this._lastValidationMessage=void 0,this._lastSeverity=void 0,this.buttons.length&&(this.buttonsUpdated=!0),this.toggles.length&&(this.togglesUpdated=!0),this.update())}hide(){this.visible&&this.ui.hide()}didHide(e=zi.kF.Other){this.visible=!1,this.visibleDisposables.clear(),this.onDidHideEmitter.fire({reason:e})}willHide(e=zi.kF.Other){this.onWillHideEmitter.fire({reason:e})}update(){if(!this.visible)return;const e=this.getTitle();e&&this.ui.title.textContent!==e?this.ui.title.textContent=e:e||" "===this.ui.title.innerHTML||(this.ui.title.innerText="\xa0");const t=this.getDescription();if(this.ui.description1.textContent!==t&&(this.ui.description1.textContent=t),this.ui.description2.textContent!==t&&(this.ui.description2.textContent=t),this._widgetUpdated&&(this._widgetUpdated=!1,this._widget?U.Ln(this.ui.widget,this._widget):U.Ln(this.ui.widget)),this.busy&&!this.busyDelay&&(this.busyDelay=new m.pc,this.busyDelay.setIfNotSet((()=>{this.visible&&this.ui.progressBar.infinite()}),800)),!this.busy&&this.busyDelay&&(this.ui.progressBar.stop(),this.busyDelay.cancel(),this.busyDelay=void 0),this.buttonsUpdated){this.buttonsUpdated=!1,this.ui.leftActionBar.clear();const e=this._leftButtons.map(((e,t)=>ss(e,`id-${t}`,(async()=>this.onDidTriggerButtonEmitter.fire(e)))));this.ui.leftActionBar.push(e,{icon:!0,label:!1}),this.ui.rightActionBar.clear();const t=this._rightButtons.map(((e,t)=>ss(e,`id-${t}`,(async()=>this.onDidTriggerButtonEmitter.fire(e)))));this.ui.rightActionBar.push(t,{icon:!0,label:!1}),this.ui.inlineActionBar.clear();const i=this._inlineButtons.map(((e,t)=>ss(e,`id-${t}`,(async()=>this.onDidTriggerButtonEmitter.fire(e)))));this.ui.inlineActionBar.push(i,{icon:!0,label:!1})}if(this.togglesUpdated){this.togglesUpdated=!1;const e=this.toggles?.filter((e=>e instanceof Yi.l))??[];this.ui.inputBox.toggles=e}this.ui.ignoreFocusOut=this.ignoreFocusOut,this.ui.setEnabled(this.enabled),this.ui.setContextKey(this.contextKey);const i=this.validationMessage||this.noValidationMessage;this._lastValidationMessage!==i&&(this._lastValidationMessage=i,U.Ln(this.ui.message),ns(i,this.ui.message,{callback:e=>{this.ui.linkOpenerDelegate(e)},disposables:this.visibleDisposables})),this._lastSeverity!==this.severity&&(this._lastSeverity=this.severity,this.showMessageDecoration(this.severity))}getTitle(){return this.title&&this.step?`${this.title} (${this.getSteps()})`:this.title?this.title:this.step?this.getSteps():""}getDescription(){return this.description||""}getSteps(){return this.step&&this.totalSteps?(0,b.kg)("quickInput.steps","{0}/{1}",this.step,this.totalSteps):this.step?String(this.step):""}showMessageDecoration(e){if(this.ui.inputBox.showDecoration(e),e!==ge.A.Ignore){const t=this.ui.inputBox.stylesForType(e);this.ui.message.style.color=t.foreground?`${t.foreground}`:"",this.ui.message.style.backgroundColor=t.background?`${t.background}`:"",this.ui.message.style.border=t.border?`1px solid ${t.border}`:"",this.ui.message.style.marginBottom="-2px"}else this.ui.message.style.color="",this.ui.message.style.backgroundColor="",this.ui.message.style.border="",this.ui.message.style.marginBottom=""}dispose(){this.hide(),this.onDisposeEmitter.fire(),super.dispose()}}class _s extends fs{constructor(){super(...arguments),this._value="",this.onDidChangeValueEmitter=this._register(new Q.vl),this.onWillAcceptEmitter=this._register(new Q.vl),this.onDidAcceptEmitter=this._register(new Q.vl),this.onDidCustomEmitter=this._register(new Q.vl),this._items=[],this.itemsUpdated=!1,this._canSelectMany=!1,this._canAcceptInBackground=!1,this._matchOnDescription=!1,this._matchOnDetail=!1,this._matchOnLabel=!0,this._matchOnLabelMode="fuzzy",this._sortByLabel=!0,this._keepScrollPosition=!1,this._itemActivation=zi.C1.FIRST,this._activeItems=[],this.activeItemsUpdated=!1,this.activeItemsToConfirm=[],this.onDidChangeActiveEmitter=this._register(new Q.vl),this._selectedItems=[],this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=[],this.onDidChangeSelectionEmitter=this._register(new Q.vl),this.onDidTriggerItemButtonEmitter=this._register(new Q.vl),this.onDidTriggerSeparatorButtonEmitter=this._register(new Q.vl),this.valueSelectionUpdated=!0,this._ok="default",this._customButton=!1,this._focusEventBufferer=new Q.at,this.type="quickPick",this.filterValue=e=>e,this.onDidChangeValue=this.onDidChangeValueEmitter.event,this.onWillAccept=this.onWillAcceptEmitter.event,this.onDidAccept=this.onDidAcceptEmitter.event,this.onDidChangeActive=this.onDidChangeActiveEmitter.event,this.onDidChangeSelection=this.onDidChangeSelectionEmitter.event,this.onDidTriggerItemButton=this.onDidTriggerItemButtonEmitter.event,this.onDidTriggerSeparatorButton=this.onDidTriggerSeparatorButtonEmitter.event}static{this.DEFAULT_ARIA_LABEL=(0,b.kg)("quickInputBox.ariaLabel","Type to narrow down results.")}get quickNavigate(){return this._quickNavigate}set quickNavigate(e){this._quickNavigate=e,this.update()}get value(){return this._value}set value(e){this.doSetValue(e)}doSetValue(e,t){if(this._value!==e){if(this._value=e,t||this.update(),this.visible){this.ui.list.filter(this.filterValue(this._value))&&this.trySelectFirst()}this.onDidChangeValueEmitter.fire(this._value)}}set ariaLabel(e){this._ariaLabel=e,this.update()}get ariaLabel(){return this._ariaLabel}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.update()}get items(){return this._items}get scrollTop(){return this.ui.list.scrollTop}set scrollTop(e){this.ui.list.scrollTop=e}set items(e){this._items=e,this.itemsUpdated=!0,this.update()}get canSelectMany(){return this._canSelectMany}set canSelectMany(e){this._canSelectMany=e,this.update()}get canAcceptInBackground(){return this._canAcceptInBackground}set canAcceptInBackground(e){this._canAcceptInBackground=e}get matchOnDescription(){return this._matchOnDescription}set matchOnDescription(e){this._matchOnDescription=e,this.update()}get matchOnDetail(){return this._matchOnDetail}set matchOnDetail(e){this._matchOnDetail=e,this.update()}get matchOnLabel(){return this._matchOnLabel}set matchOnLabel(e){this._matchOnLabel=e,this.update()}get matchOnLabelMode(){return this._matchOnLabelMode}set matchOnLabelMode(e){this._matchOnLabelMode=e,this.update()}get sortByLabel(){return this._sortByLabel}set sortByLabel(e){this._sortByLabel=e,this.update()}get keepScrollPosition(){return this._keepScrollPosition}set keepScrollPosition(e){this._keepScrollPosition=e}get itemActivation(){return this._itemActivation}set itemActivation(e){this._itemActivation=e}get activeItems(){return this._activeItems}set activeItems(e){this._activeItems=e,this.activeItemsUpdated=!0,this.update()}get selectedItems(){return this._selectedItems}set selectedItems(e){this._selectedItems=e,this.selectedItemsUpdated=!0,this.update()}get keyMods(){return this._quickNavigate?zi.Ym:this.ui.keyMods}get valueSelection(){const e=this.ui.inputBox.getSelection();if(e)return[e.start,e.end]}set valueSelection(e){this._valueSelection=e,this.valueSelectionUpdated=!0,this.update()}get customButton(){return this._customButton}set customButton(e){this._customButton=e,this.update()}get customLabel(){return this._customButtonLabel}set customLabel(e){this._customButtonLabel=e,this.update()}get customHover(){return this._customButtonHover}set customHover(e){this._customButtonHover=e,this.update()}get ok(){return this._ok}set ok(e){this._ok=e,this.update()}get hideInput(){return!!this._hideInput}set hideInput(e){this._hideInput=e,this.update()}trySelectFirst(){this.canSelectMany||this.ui.list.focus(zi.Fp.First)}show(){this.visible||(this.visibleDisposables.add(this.ui.inputBox.onDidChange((e=>{this.doSetValue(e,!0)}))),this.visibleDisposables.add(this.ui.onDidAccept((()=>{this.canSelectMany?this.ui.list.getCheckedElements().length||(this._selectedItems=[],this.onDidChangeSelectionEmitter.fire(this.selectedItems)):this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems)),this.handleAccept(!1)}))),this.visibleDisposables.add(this.ui.onDidCustom((()=>{this.onDidCustomEmitter.fire()}))),this.visibleDisposables.add(this._focusEventBufferer.wrapEvent(this.ui.list.onDidChangeFocus,((e,t)=>t))((e=>{this.activeItemsUpdated||this.activeItemsToConfirm!==this._activeItems&&(0,E.aI)(e,this._activeItems,((e,t)=>e===t))||(this._activeItems=e,this.onDidChangeActiveEmitter.fire(e))}))),this.visibleDisposables.add(this.ui.list.onDidChangeSelection((({items:e,event:t})=>{this.canSelectMany?e.length&&this.ui.list.setSelectedElements([]):this.selectedItemsToConfirm!==this._selectedItems&&(0,E.aI)(e,this._selectedItems,((e,t)=>e===t))||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e),e.length&&this.handleAccept(U.Er(t)&&1===t.button))}))),this.visibleDisposables.add(this.ui.list.onChangedCheckedElements((e=>{this.canSelectMany&&this.visible&&(this.selectedItemsToConfirm!==this._selectedItems&&(0,E.aI)(e,this._selectedItems,((e,t)=>e===t))||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e)))}))),this.visibleDisposables.add(this.ui.list.onButtonTriggered((e=>this.onDidTriggerItemButtonEmitter.fire(e)))),this.visibleDisposables.add(this.ui.list.onSeparatorButtonTriggered((e=>this.onDidTriggerSeparatorButtonEmitter.fire(e)))),this.visibleDisposables.add(this.registerQuickNavigation()),this.valueSelectionUpdated=!0),super.show()}handleAccept(e){let t=!1;this.onWillAcceptEmitter.fire({veto:()=>t=!0}),t||this.onDidAcceptEmitter.fire({inBackground:e})}registerQuickNavigation(){return U.ko(this.ui.container,U.Bx.KEY_UP,(e=>{if(this.canSelectMany||!this._quickNavigate)return;const t=new Xe.Z(e),i=t.keyCode;this._quickNavigate.keybindings.some((e=>{const s=e.getChords();return!(s.length>1)&&(s[0].shiftKey&&4===i?!(t.ctrlKey||t.altKey||t.metaKey):!(!s[0].altKey||6!==i)||(!(!s[0].ctrlKey||5!==i)||!(!s[0].metaKey||57!==i)))}))&&(this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(!1)),this._quickNavigate=void 0)}))}update(){if(!this.visible)return;const e=this.keepScrollPosition?this.scrollTop:0,t=!!this.description,i={title:!!this.title||!!this.step||!!this.titleButtons.length,description:t,checkAll:this.canSelectMany&&!this._hideCheckAll,checkBox:this.canSelectMany,inputBox:!this._hideInput,progressBar:!this._hideInput||t,visibleCount:!0,count:this.canSelectMany&&!this._hideCountBadge,ok:"default"===this.ok?this.canSelectMany:this.ok,list:!0,message:!!this.validationMessage,customButton:this.customButton};this.ui.setVisibilities(i),super.update(),this.ui.inputBox.value!==this.value&&(this.ui.inputBox.value=this.value),this.valueSelectionUpdated&&(this.valueSelectionUpdated=!1,this.ui.inputBox.select(this._valueSelection&&{start:this._valueSelection[0],end:this._valueSelection[1]})),this.ui.inputBox.placeholder!==(this.placeholder||"")&&(this.ui.inputBox.placeholder=this.placeholder||"");let s=this.ariaLabel;!s&&i.inputBox&&(s=this.placeholder||_s.DEFAULT_ARIA_LABEL,this.title&&(s+=` - ${this.title}`)),this.ui.list.ariaLabel!==s&&(this.ui.list.ariaLabel=s??null),this.ui.list.matchOnDescription=this.matchOnDescription,this.ui.list.matchOnDetail=this.matchOnDetail,this.ui.list.matchOnLabel=this.matchOnLabel,this.ui.list.matchOnLabelMode=this.matchOnLabelMode,this.ui.list.sortByLabel=this.sortByLabel,this.itemsUpdated&&(this.itemsUpdated=!1,this._focusEventBufferer.bufferEvents((()=>{switch(this.ui.list.setElements(this.items),this.ui.list.shouldLoop=!this.canSelectMany,this.ui.list.filter(this.filterValue(this.ui.inputBox.value)),this._itemActivation){case zi.C1.NONE:this._itemActivation=zi.C1.FIRST;break;case zi.C1.SECOND:this.ui.list.focus(zi.Fp.Second),this._itemActivation=zi.C1.FIRST;break;case zi.C1.LAST:this.ui.list.focus(zi.Fp.Last),this._itemActivation=zi.C1.FIRST;break;default:this.trySelectFirst()}}))),this.ui.container.classList.contains("show-checkboxes")!==!!this.canSelectMany&&(this.canSelectMany?this.ui.list.clearFocus():this.trySelectFirst()),this.activeItemsUpdated&&(this.activeItemsUpdated=!1,this.activeItemsToConfirm=this._activeItems,this.ui.list.setFocusedElements(this.activeItems),this.activeItemsToConfirm===this._activeItems&&(this.activeItemsToConfirm=null)),this.selectedItemsUpdated&&(this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=this._selectedItems,this.canSelectMany?this.ui.list.setCheckedElements(this.selectedItems):this.ui.list.setSelectedElements(this.selectedItems),this.selectedItemsToConfirm===this._selectedItems&&(this.selectedItemsToConfirm=null)),this.ui.customButton.label=this.customLabel||"",this.ui.customButton.element.title=this.customHover||"",i.inputBox||(this.ui.list.domFocus(),this.canSelectMany&&this.ui.list.focus(zi.Fp.First)),this.keepScrollPosition&&(this.scrollTop=e)}focus(e){this.ui.list.focus(e),this.canSelectMany&&this.ui.list.domFocus()}accept(e){e&&!this._canAcceptInBackground||this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(e??!1))}}class vs extends fs{constructor(){super(...arguments),this._value="",this.valueSelectionUpdated=!0,this._password=!1,this.onDidValueChangeEmitter=this._register(new Q.vl),this.onDidAcceptEmitter=this._register(new Q.vl),this.type="inputBox",this.onDidChangeValue=this.onDidValueChangeEmitter.event,this.onDidAccept=this.onDidAcceptEmitter.event}get value(){return this._value}set value(e){this._value=e||"",this.update()}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.update()}get password(){return this._password}set password(e){this._password=e,this.update()}show(){this.visible||(this.visibleDisposables.add(this.ui.inputBox.onDidChange((e=>{e!==this.value&&(this._value=e,this.onDidValueChangeEmitter.fire(e))}))),this.visibleDisposables.add(this.ui.onDidAccept((()=>this.onDidAcceptEmitter.fire()))),this.valueSelectionUpdated=!0),super.show()}update(){if(!this.visible)return;this.ui.container.classList.remove("hidden-input");const e={title:!!this.title||!!this.step||!!this.titleButtons.length,description:!!this.description||!!this.step,inputBox:!0,message:!0,progressBar:!0};this.ui.setVisibilities(e),super.update(),this.ui.inputBox.value!==this.value&&(this.ui.inputBox.value=this.value),this.valueSelectionUpdated&&(this.valueSelectionUpdated=!1,this.ui.inputBox.select(this._valueSelection&&{start:this._valueSelection[0],end:this._valueSelection[1]})),this.ui.inputBox.placeholder!==(this.placeholder||"")&&(this.ui.inputBox.placeholder=this.placeholder||""),this.ui.inputBox.password!==this.password&&(this.ui.inputBox.password=this.password)}}let Cs=class extends Ie.fO{constructor(e,t){super("element",!1,(e=>this.getOverrideOptions(e)),e,t)}getOverrideOptions(e){return{persistence:{hideOnKeyDown:!1},appearance:{showHoverHint:(U.sb(e.content)?e.content.textContent??"":"string"===typeof e.content?e.content:e.content.value).includes("\n"),skipFadeInAnimation:!0}}}};Cs=rs([os(0,Me.pG),os(1,Ie.TN)],Cs);var Es=i(62890),bs=i(3828);const Ss="done",ys="active",ws="infinite",Rs="infinite-long-running",Ls="discrete";class Ts extends c.jG{static{this.LONG_RUNNING_INFINITE_THRESHOLD=1e4}constructor(e,t){super(),this.progressSignal=this._register(new c.HE),this.workedVal=0,this.showDelayedScheduler=this._register(new m.uC((()=>(0,U.WU)(this.element)),0)),this.longRunningScheduler=this._register(new m.uC((()=>this.infiniteLongRunning()),Ts.LONG_RUNNING_INFINITE_THRESHOLD)),this.create(e,t)}create(e,t){this.element=document.createElement("div"),this.element.classList.add("monaco-progress-container"),this.element.setAttribute("role","progressbar"),this.element.setAttribute("aria-valuemin","0"),e.appendChild(this.element),this.bit=document.createElement("div"),this.bit.classList.add("progress-bit"),this.bit.style.backgroundColor=t?.progressBarBackground||"#0E70C0",this.element.appendChild(this.bit)}off(){this.bit.style.width="inherit",this.bit.style.opacity="1",this.element.classList.remove(ys,ws,Rs,Ls),this.workedVal=0,this.totalWork=void 0,this.longRunningScheduler.cancel(),this.progressSignal.clear()}stop(){return this.doDone(!1)}doDone(e){return this.element.classList.add(Ss),this.element.classList.contains(ws)?(this.bit.style.opacity="0",e?setTimeout((()=>this.off()),200):this.off()):(this.bit.style.width="inherit",e?setTimeout((()=>this.off()),200):this.off()),this}infinite(){return this.bit.style.width="2%",this.bit.style.opacity="1",this.element.classList.remove(Ls,Ss,Rs),this.element.classList.add(ys,ws),this.longRunningScheduler.schedule(),this}infiniteLongRunning(){this.element.classList.add(Rs)}getContainer(){return this.element}}var xs=i(88443);const ks=U.$;class As extends c.jG{constructor(e,t,i){super(),this.parent=e,this.onKeyDown=e=>U.b2(this.findInput.inputBox.inputElement,U.Bx.KEY_DOWN,e),this.onDidChange=e=>this.findInput.onDidChange(e),this.container=U.BC(this.parent,ks(".quick-input-box")),this.findInput=this._register(new xs.c(this.container,void 0,{label:"",inputBoxStyles:t,toggleStyles:i}));const s=this.findInput.inputBox.inputElement;s.role="combobox",s.ariaHasPopup="menu",s.ariaAutoComplete="list",s.ariaExpanded="true"}get value(){return this.findInput.getValue()}set value(e){this.findInput.setValue(e)}select(e=null){this.findInput.inputBox.select(e)}getSelection(){return this.findInput.inputBox.getSelection()}isSelectionAtEnd(){return this.findInput.inputBox.isSelectionAtEnd()}get placeholder(){return this.findInput.inputBox.inputElement.getAttribute("placeholder")||""}set placeholder(e){this.findInput.inputBox.setPlaceHolder(e)}get password(){return"password"===this.findInput.inputBox.inputElement.type}set password(e){this.findInput.inputBox.inputElement.type=e?"password":"text"}set enabled(e){this.findInput.inputBox.inputElement.toggleAttribute("readonly",!e)}set toggles(e){this.findInput.setAdditionalToggles(e)}setAttribute(e,t){this.findInput.inputBox.inputElement.setAttribute(e,t)}showDecoration(e){e===ge.A.Ignore?this.findInput.clearMessage():this.findInput.showMessage({type:e===ge.A.Info?1:e===ge.A.Warning?2:3,content:""})}stylesForType(e){return this.findInput.inputBox.stylesForType(e===ge.A.Info?1:e===ge.A.Warning?2:3)}setFocus(){this.findInput.focus()}layout(){this.findInput.inputBox.layout()}}var Ns=i(36584),Is=i(21852),Os=i(47625),Ds=i(86723),Ms=i(91090);const Ps=new Ms.d((()=>{const e=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});return{collator:e,collatorIsNumeric:e.resolvedOptions().numeric}}));new Ms.d((()=>({collator:new Intl.Collator(void 0,{numeric:!0})}))),new Ms.d((()=>({collator:new Intl.Collator(void 0,{numeric:!0,sensitivity:"accent"})})));function Fs(e,t,i){const s=e.toLowerCase(),n=t.toLowerCase(),r=function(e,t,i){const s=e.toLowerCase(),n=t.toLowerCase(),r=s.startsWith(i),o=n.startsWith(i);if(r!==o)return r?-1:1;if(r&&o){if(s.length<n.length)return-1;if(s.length>n.length)return 1}return 0}(e,t,i);if(r)return r;const o=s.endsWith(i);if(o!==n.endsWith(i))return o?-1:1;const a=function(e,t){const i=e||"",s=t||"",n=Ps.value.collator.compare(i,s);return Ps.value.collatorIsNumeric&&0===n&&i!==s?i<s?-1:1:n}(s,n);return 0!==a?a:s.localeCompare(n)}var Us,Hs=i(19466),Bs=i(31308),Ws=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Vs=function(e,t){return function(i,s){t(i,s,e)}};const zs=U.$;class Gs{constructor(e,t,i){this.index=e,this.hasCheckbox=t,this._hidden=!1,this._init=new Ms.d((()=>{const e=i.label??"",t=(0,pi._k)(e).text.trim(),s=i.ariaLabel||[e,this.saneDescription,this.saneDetail].map((e=>(0,pi.R$)(e))).filter((e=>!!e)).join(", ");return{saneLabel:e,saneSortLabel:t,saneAriaLabel:s}})),this._saneDescription=i.description,this._saneTooltip=i.tooltip}get saneLabel(){return this._init.value.saneLabel}get saneSortLabel(){return this._init.value.saneSortLabel}get saneAriaLabel(){return this._init.value.saneAriaLabel}get element(){return this._element}set element(e){this._element=e}get hidden(){return this._hidden}set hidden(e){this._hidden=e}get saneDescription(){return this._saneDescription}set saneDescription(e){this._saneDescription=e}get saneDetail(){return this._saneDetail}set saneDetail(e){this._saneDetail=e}get saneTooltip(){return this._saneTooltip}set saneTooltip(e){this._saneTooltip=e}get labelHighlights(){return this._labelHighlights}set labelHighlights(e){this._labelHighlights=e}get descriptionHighlights(){return this._descriptionHighlights}set descriptionHighlights(e){this._descriptionHighlights=e}get detailHighlights(){return this._detailHighlights}set detailHighlights(e){this._detailHighlights=e}}class js extends Gs{constructor(e,t,i,s,n,r){super(e,t,n),this.fireButtonTriggered=i,this._onChecked=s,this.item=n,this._separator=r,this._checked=!1,this.onChecked=t?Q.Jh.map(Q.Jh.filter(this._onChecked.event,(e=>e.element===this)),(e=>e.checked)):Q.Jh.None,this._saneDetail=n.detail,this._labelHighlights=n.highlights?.label,this._descriptionHighlights=n.highlights?.description,this._detailHighlights=n.highlights?.detail}get separator(){return this._separator}set separator(e){this._separator=e}get checked(){return this._checked}set checked(e){e!==this._checked&&(this._checked=e,this._onChecked.fire({element:this,checked:e}))}get checkboxDisabled(){return!!this.item.disabled}}var Ks;!function(e){e[e.NONE=0]="NONE",e[e.MOUSE_HOVER=1]="MOUSE_HOVER",e[e.ACTIVE_ITEM=2]="ACTIVE_ITEM"}(Ks||(Ks={}));class Ys extends Gs{constructor(e,t,i){super(e,!1,i),this.fireSeparatorButtonTriggered=t,this.separator=i,this.children=new Array,this.focusInsideSeparator=Ks.NONE}}class qs{getHeight(e){return e instanceof Ys?30:e.saneDetail?44:22}getTemplateId(e){return e instanceof js?Xs.ID:Zs.ID}}class $s{getWidgetAriaLabel(){return(0,b.kg)("quickInput","Quick Input")}getAriaLabel(e){return e.separator?.label?`${e.saneAriaLabel}, ${e.separator.label}`:e.saneAriaLabel}getWidgetRole(){return"listbox"}getRole(e){return e.hasCheckbox?"checkbox":"option"}isChecked(e){if(e.hasCheckbox&&e instanceof js)return{get value(){return e.checked},onDidChange:t=>e.onChecked((()=>t()))}}}class Qs{constructor(e){this.hoverDelegate=e}renderTemplate(e){const t=Object.create(null);t.toDisposeElement=new c.Cm,t.toDisposeTemplate=new c.Cm,t.entry=U.BC(e,zs(".quick-input-list-entry"));const i=U.BC(t.entry,zs("label.quick-input-list-label"));t.toDisposeTemplate.add(U.b2(i,U.Bx.CLICK,(e=>{t.checkbox.offsetParent||e.preventDefault()}))),t.checkbox=U.BC(i,zs("input.quick-input-list-checkbox")),t.checkbox.type="checkbox";const s=U.BC(i,zs(".quick-input-list-rows")),n=U.BC(s,zs(".quick-input-list-row")),r=U.BC(s,zs(".quick-input-list-row"));t.label=new Is.s(n,{supportHighlights:!0,supportDescriptionHighlights:!0,supportIcons:!0,hoverDelegate:this.hoverDelegate}),t.toDisposeTemplate.add(t.label),t.icon=U.Hs(t.label.element,zs(".quick-input-list-icon"));const o=U.BC(n,zs(".quick-input-list-entry-keybinding"));t.keybinding=new Os.x(o,We.OS),t.toDisposeTemplate.add(t.keybinding);const a=U.BC(r,zs(".quick-input-list-label-meta"));return t.detail=new Is.s(a,{supportHighlights:!0,supportIcons:!0,hoverDelegate:this.hoverDelegate}),t.toDisposeTemplate.add(t.detail),t.separator=U.BC(t.entry,zs(".quick-input-list-separator")),t.actionBar=new ci.E(t.entry,this.hoverDelegate?{hoverDelegate:this.hoverDelegate}:void 0),t.actionBar.domNode.classList.add("quick-input-list-entry-action-bar"),t.toDisposeTemplate.add(t.actionBar),t}disposeTemplate(e){e.toDisposeElement.dispose(),e.toDisposeTemplate.dispose()}disposeElement(e,t,i){i.toDisposeElement.clear(),i.actionBar.clear()}}let Xs=class extends Qs{static{Us=this}static{this.ID="quickpickitem"}constructor(e,t){super(e),this.themeService=t,this._itemsWithSeparatorsFrequency=new Map}get templateId(){return Us.ID}renderTemplate(e){const t=super.renderTemplate(e);return t.toDisposeTemplate.add(U.b2(t.checkbox,U.Bx.CHANGE,(e=>{t.element.checked=t.checkbox.checked}))),t}renderElement(e,t,i){const s=e.element;i.element=s,s.element=i.entry??void 0;const n=s.item;i.checkbox.checked=s.checked,i.toDisposeElement.add(s.onChecked((e=>i.checkbox.checked=e))),i.checkbox.disabled=s.checkboxDisabled;const{labelHighlights:r,descriptionHighlights:o,detailHighlights:a}=s;if(n.iconPath){const e=(0,Ds.HD)(this.themeService.getColorTheme().type)?n.iconPath.dark:n.iconPath.light??n.iconPath.dark,t=h.r.revive(e);i.icon.className="quick-input-list-icon",i.icon.style.backgroundImage=U.Tf(t)}else i.icon.style.backgroundImage="",i.icon.className=n.iconClass?`quick-input-list-icon ${n.iconClass}`:"";let c;!s.saneTooltip&&s.saneDescription&&(c={markdown:{value:s.saneDescription,supportThemeIcons:!0},markdownNotSupportedFallback:s.saneDescription});const l={matches:r||[],descriptionTitle:c,descriptionMatches:o||[],labelEscapeNewLines:!0};if(l.extraClasses=n.iconClasses,l.italic=n.italic,l.strikethrough=n.strikethrough,i.entry.classList.remove("quick-input-list-separator-as-item"),i.label.setLabel(s.saneLabel,s.saneDescription,l),i.keybinding.set(n.keybinding),s.saneDetail){let e;s.saneTooltip||(e={markdown:{value:s.saneDetail,supportThemeIcons:!0},markdownNotSupportedFallback:s.saneDetail}),i.detail.element.style.display="",i.detail.setLabel(s.saneDetail,void 0,{matches:a,title:e,labelEscapeNewLines:!0})}else i.detail.element.style.display="none";s.separator?.label?(i.separator.textContent=s.separator.label,i.separator.style.display="",this.addItemWithSeparator(s)):i.separator.style.display="none",i.entry.classList.toggle("quick-input-list-separator-border",!!s.separator);const d=n.buttons;d&&d.length?(i.actionBar.push(d.map(((e,t)=>ss(e,`id-${t}`,(()=>s.fireButtonTriggered({button:e,item:s.item}))))),{icon:!0,label:!1}),i.entry.classList.add("has-actions")):i.entry.classList.remove("has-actions")}disposeElement(e,t,i){this.removeItemWithSeparator(e.element),super.disposeElement(e,t,i)}isItemWithSeparatorVisible(e){return this._itemsWithSeparatorsFrequency.has(e)}addItemWithSeparator(e){this._itemsWithSeparatorsFrequency.set(e,(this._itemsWithSeparatorsFrequency.get(e)||0)+1)}removeItemWithSeparator(e){const t=this._itemsWithSeparatorsFrequency.get(e)||0;t>1?this._itemsWithSeparatorsFrequency.set(e,t-1):this._itemsWithSeparatorsFrequency.delete(e)}};Xs=Us=Ws([Vs(1,Z.Gy)],Xs);class Zs extends Qs{constructor(){super(...arguments),this._visibleSeparatorsFrequency=new Map}static{this.ID="quickpickseparator"}get templateId(){return Zs.ID}get visibleSeparators(){return[...this._visibleSeparatorsFrequency.keys()]}isSeparatorVisible(e){return this._visibleSeparatorsFrequency.has(e)}renderTemplate(e){const t=super.renderTemplate(e);return t.checkbox.style.display="none",t}renderElement(e,t,i){const s=e.element;i.element=s,s.element=i.entry??void 0,s.element.classList.toggle("focus-inside",!!s.focusInsideSeparator);const n=s.separator,{labelHighlights:r,descriptionHighlights:o,detailHighlights:a}=s;let c;i.icon.style.backgroundImage="",i.icon.className="",!s.saneTooltip&&s.saneDescription&&(c={markdown:{value:s.saneDescription,supportThemeIcons:!0},markdownNotSupportedFallback:s.saneDescription});const l={matches:r||[],descriptionTitle:c,descriptionMatches:o||[],labelEscapeNewLines:!0};if(i.entry.classList.add("quick-input-list-separator-as-item"),i.label.setLabel(s.saneLabel,s.saneDescription,l),s.saneDetail){let e;s.saneTooltip||(e={markdown:{value:s.saneDetail,supportThemeIcons:!0},markdownNotSupportedFallback:s.saneDetail}),i.detail.element.style.display="",i.detail.setLabel(s.saneDetail,void 0,{matches:a,title:e,labelEscapeNewLines:!0})}else i.detail.element.style.display="none";i.separator.style.display="none",i.entry.classList.add("quick-input-list-separator-border");const h=n.buttons;h&&h.length?(i.actionBar.push(h.map(((e,t)=>ss(e,`id-${t}`,(()=>s.fireSeparatorButtonTriggered({button:e,separator:s.separator}))))),{icon:!0,label:!1}),i.entry.classList.add("has-actions")):i.entry.classList.remove("has-actions"),this.addSeparator(s)}disposeElement(e,t,i){this.removeSeparator(e.element),this.isSeparatorVisible(e.element)||e.element.element?.classList.remove("focus-inside"),super.disposeElement(e,t,i)}addSeparator(e){this._visibleSeparatorsFrequency.set(e,(this._visibleSeparatorsFrequency.get(e)||0)+1)}removeSeparator(e){const t=this._visibleSeparatorsFrequency.get(e)||0;t>1?this._visibleSeparatorsFrequency.set(e,t-1):this._visibleSeparatorsFrequency.delete(e)}}let Js=class extends c.jG{constructor(e,t,i,s,n,r){super(),this.parent=e,this.hoverDelegate=t,this.linkOpenerDelegate=i,this.accessibilityService=r,this._onKeyDown=new Q.vl,this._onLeave=new Q.vl,this.onLeave=this._onLeave.event,this._visibleCountObservable=(0,Bs.FY)("VisibleCount",0),this.onChangedVisibleCount=Q.Jh.fromObservable(this._visibleCountObservable,this._store),this._allVisibleCheckedObservable=(0,Bs.FY)("AllVisibleChecked",!1),this.onChangedAllVisibleChecked=Q.Jh.fromObservable(this._allVisibleCheckedObservable,this._store),this._checkedCountObservable=(0,Bs.FY)("CheckedCount",0),this.onChangedCheckedCount=Q.Jh.fromObservable(this._checkedCountObservable,this._store),this._checkedElementsObservable=(0,Bs.Zh)({equalsFn:E.aI},new Array),this.onChangedCheckedElements=Q.Jh.fromObservable(this._checkedElementsObservable,this._store),this._onButtonTriggered=new Q.vl,this.onButtonTriggered=this._onButtonTriggered.event,this._onSeparatorButtonTriggered=new Q.vl,this.onSeparatorButtonTriggered=this._onSeparatorButtonTriggered.event,this._elementChecked=new Q.vl,this._elementCheckedEventBufferer=new Q.at,this._hasCheckboxes=!1,this._inputElements=new Array,this._elementTree=new Array,this._itemElements=new Array,this._elementDisposable=this._register(new c.Cm),this._matchOnDescription=!1,this._matchOnDetail=!1,this._matchOnLabel=!0,this._matchOnLabelMode="fuzzy",this._sortByLabel=!0,this._shouldLoop=!0,this._container=U.BC(this.parent,zs(".quick-input-list")),this._separatorRenderer=new Zs(t),this._itemRenderer=n.createInstance(Xs,t),this._tree=this._register(n.createInstance(Ns.zL,"QuickInput",this._container,new qs,[this._itemRenderer,this._separatorRenderer],{filter:{filter:e=>e.hidden?0:e instanceof Ys?2:1},sorter:{compare:(e,t)=>{if(!this.sortByLabel||!this._lastQueryString)return 0;return function(e,t,i){const s=e.labelHighlights||[],n=t.labelHighlights||[];if(s.length&&!n.length)return-1;if(!s.length&&n.length)return 1;if(0===s.length&&0===n.length)return 0;return Fs(e.saneSortLabel,t.saneSortLabel,i)}(e,t,this._lastQueryString.toLowerCase())}},accessibilityProvider:new $s,setRowLineHeight:!1,multipleSelectionSupport:!1,hideTwistiesOfChildlessElements:!0,renderIndentGuides:Hs.KP.None,findWidgetEnabled:!1,indent:0,horizontalScrolling:!1,allowNonCollapsibleParents:!0,alwaysConsumeMouseWheel:!0})),this._tree.getHTMLElement().id=s,this._registerListeners()}get onDidChangeFocus(){return Q.Jh.map(this._tree.onDidChangeFocus,(e=>e.elements.filter((e=>e instanceof js)).map((e=>e.item))),this._store)}get onDidChangeSelection(){return Q.Jh.map(this._tree.onDidChangeSelection,(e=>({items:e.elements.filter((e=>e instanceof js)).map((e=>e.item)),event:e.browserEvent})),this._store)}get displayed(){return"none"!==this._container.style.display}set displayed(e){this._container.style.display=e?"":"none"}get scrollTop(){return this._tree.scrollTop}set scrollTop(e){this._tree.scrollTop=e}get ariaLabel(){return this._tree.ariaLabel}set ariaLabel(e){this._tree.ariaLabel=e??""}set enabled(e){this._tree.getHTMLElement().style.pointerEvents=e?"":"none"}get matchOnDescription(){return this._matchOnDescription}set matchOnDescription(e){this._matchOnDescription=e}get matchOnDetail(){return this._matchOnDetail}set matchOnDetail(e){this._matchOnDetail=e}get matchOnLabel(){return this._matchOnLabel}set matchOnLabel(e){this._matchOnLabel=e}get matchOnLabelMode(){return this._matchOnLabelMode}set matchOnLabelMode(e){this._matchOnLabelMode=e}get sortByLabel(){return this._sortByLabel}set sortByLabel(e){this._sortByLabel=e}get shouldLoop(){return this._shouldLoop}set shouldLoop(e){this._shouldLoop=e}_registerListeners(){this._registerOnKeyDown(),this._registerOnContainerClick(),this._registerOnMouseMiddleClick(),this._registerOnTreeModelChanged(),this._registerOnElementChecked(),this._registerOnContextMenu(),this._registerHoverListeners(),this._registerSelectionChangeListener(),this._registerSeparatorActionShowingListeners()}_registerOnKeyDown(){this._register(this._tree.onKeyDown((e=>{const t=new Xe.Z(e);if(10===t.keyCode)this.toggleCheckbox();this._onKeyDown.fire(t)})))}_registerOnContainerClick(){this._register(U.ko(this._container,U.Bx.CLICK,(e=>{(e.x||e.y)&&this._onLeave.fire()})))}_registerOnMouseMiddleClick(){this._register(U.ko(this._container,U.Bx.AUXCLICK,(e=>{1===e.button&&this._onLeave.fire()})))}_registerOnTreeModelChanged(){this._register(this._tree.onDidChangeModel((()=>{const e=this._itemElements.filter((e=>!e.hidden)).length;this._visibleCountObservable.set(e,void 0),this._hasCheckboxes&&this._updateCheckedObservables()})))}_registerOnElementChecked(){this._register(this._elementCheckedEventBufferer.wrapEvent(this._elementChecked.event,((e,t)=>t))((e=>this._updateCheckedObservables())))}_registerOnContextMenu(){this._register(this._tree.onContextMenu((e=>{e.element&&(e.browserEvent.preventDefault(),this._tree.setSelection([e.element]))})))}_registerHoverListeners(){const e=this._register(new m.Th(this.hoverDelegate.delay));this._register(this._tree.onMouseOver((async t=>{if(U.nY(t.browserEvent.target))e.cancel();else if(U.nY(t.browserEvent.relatedTarget)||!U.QX(t.browserEvent.relatedTarget,t.element?.element))try{await e.trigger((async()=>{t.element instanceof js&&this.showHover(t.element)}))}catch(t){if(!(0,v.MB)(t))throw t}}))),this._register(this._tree.onMouseOut((t=>{U.QX(t.browserEvent.relatedTarget,t.element?.element)||e.cancel()})))}_registerSeparatorActionShowingListeners(){this._register(this._tree.onDidChangeFocus((e=>{const t=e.elements[0]?this._tree.getParentElement(e.elements[0]):null;for(const i of this._separatorRenderer.visibleSeparators){const e=i===t;!!(i.focusInsideSeparator&Ks.ACTIVE_ITEM)!==e&&(e?i.focusInsideSeparator|=Ks.ACTIVE_ITEM:i.focusInsideSeparator&=~Ks.ACTIVE_ITEM,this._tree.rerender(i))}}))),this._register(this._tree.onMouseOver((e=>{const t=e.element?this._tree.getParentElement(e.element):null;for(const i of this._separatorRenderer.visibleSeparators){if(i!==t)continue;!!(i.focusInsideSeparator&Ks.MOUSE_HOVER)||(i.focusInsideSeparator|=Ks.MOUSE_HOVER,this._tree.rerender(i))}}))),this._register(this._tree.onMouseOut((e=>{const t=e.element?this._tree.getParentElement(e.element):null;for(const i of this._separatorRenderer.visibleSeparators){if(i!==t)continue;!!(i.focusInsideSeparator&Ks.MOUSE_HOVER)&&(i.focusInsideSeparator&=~Ks.MOUSE_HOVER,this._tree.rerender(i))}})))}_registerSelectionChangeListener(){this._register(this._tree.onDidChangeSelection((e=>{const t=e.elements.filter((e=>e instanceof js));t.length!==e.elements.length&&(1===e.elements.length&&e.elements[0]instanceof Ys&&(this._tree.setFocus([e.elements[0].children[0]]),this._tree.reveal(e.elements[0],0)),this._tree.setSelection(t))})))}setAllVisibleChecked(e){this._elementCheckedEventBufferer.bufferEvents((()=>{this._itemElements.forEach((t=>{t.hidden||t.checkboxDisabled||(t.checked=e)}))}))}setElements(e){let t;this._elementDisposable.clear(),this._lastQueryString=void 0,this._inputElements=e,this._hasCheckboxes=this.parent.classList.contains("show-checkboxes"),this._itemElements=new Array,this._elementTree=e.reduce(((i,s,n)=>{let r;if("separator"===s.type){if(!s.buttons)return i;t=new Ys(n,(e=>this._onSeparatorButtonTriggered.fire(e)),s),r=t}else{const o=n>0?e[n-1]:void 0;let a;o&&"separator"===o.type&&!o.buttons&&(t=void 0,a=o);const c=new js(n,this._hasCheckboxes,(e=>this._onButtonTriggered.fire(e)),this._elementChecked,s,a);if(this._itemElements.push(c),t)return t.children.push(c),i;r=c}return i.push(r),i}),new Array),this._setElementsToTree(this._elementTree),this.accessibilityService.isScreenReaderOptimized()&&setTimeout((()=>{const e=this._tree.getHTMLElement().querySelector(".monaco-list-row.focused"),t=e?.parentNode;if(e&&t){const i=e.nextSibling;e.remove(),t.insertBefore(e,i)}}),0)}setFocusedElements(e){const t=e.map((e=>this._itemElements.find((t=>t.item===e)))).filter((e=>!!e)).filter((e=>!e.hidden));if(this._tree.setFocus(t),e.length>0){const e=this._tree.getFocus()[0];e&&this._tree.reveal(e)}}getActiveDescendant(){return this._tree.getHTMLElement().getAttribute("aria-activedescendant")}setSelectedElements(e){const t=e.map((e=>this._itemElements.find((t=>t.item===e)))).filter((e=>!!e));this._tree.setSelection(t)}getCheckedElements(){return this._itemElements.filter((e=>e.checked)).map((e=>e.item))}setCheckedElements(e){this._elementCheckedEventBufferer.bufferEvents((()=>{const t=new Set;for(const i of e)t.add(i);for(const e of this._itemElements)e.checked=t.has(e.item)}))}focus(e){if(this._itemElements.length)switch(e===zi.Fp.Second&&this._itemElements.length<2&&(e=zi.Fp.First),e){case zi.Fp.First:this._tree.scrollTop=0,this._tree.focusFirst(void 0,(e=>e.element instanceof js));break;case zi.Fp.Second:{this._tree.scrollTop=0;let e=!1;this._tree.focusFirst(void 0,(t=>t.element instanceof js&&(!!e||(e=!e,!1))));break}case zi.Fp.Last:this._tree.scrollTop=this._tree.scrollHeight,this._tree.focusLast(void 0,(e=>e.element instanceof js));break;case zi.Fp.Next:{const e=this._tree.getFocus();this._tree.focusNext(void 0,this._shouldLoop,void 0,(e=>e.element instanceof js&&(this._tree.reveal(e.element),!0)));const t=this._tree.getFocus();e.length&&e[0]===t[0]&&e[0]===this._itemElements[this._itemElements.length-1]&&this._onLeave.fire();break}case zi.Fp.Previous:{const e=this._tree.getFocus();this._tree.focusPrevious(void 0,this._shouldLoop,void 0,(e=>{if(!(e.element instanceof js))return!1;const t=this._tree.getParentElement(e.element);return null===t||t.children[0]!==e.element?this._tree.reveal(e.element):this._tree.reveal(t),!0}));const t=this._tree.getFocus();e.length&&e[0]===t[0]&&e[0]===this._itemElements[0]&&this._onLeave.fire();break}case zi.Fp.NextPage:this._tree.focusNextPage(void 0,(e=>e.element instanceof js&&(this._tree.reveal(e.element),!0)));break;case zi.Fp.PreviousPage:this._tree.focusPreviousPage(void 0,(e=>{if(!(e.element instanceof js))return!1;const t=this._tree.getParentElement(e.element);return null===t||t.children[0]!==e.element?this._tree.reveal(e.element):this._tree.reveal(t),!0}));break;case zi.Fp.NextSeparator:{let e=!1;const t=this._tree.getFocus()[0];this._tree.focusNext(void 0,!0,void 0,(t=>{if(e)return!0;if(t.element instanceof Ys)e=!0,this._separatorRenderer.isSeparatorVisible(t.element)?this._tree.reveal(t.element.children[0]):this._tree.reveal(t.element,0);else if(t.element instanceof js){if(t.element.separator)return this._itemRenderer.isItemWithSeparatorVisible(t.element)?this._tree.reveal(t.element):this._tree.reveal(t.element,0),!0;if(t.element===this._elementTree[0])return this._tree.reveal(t.element,0),!0}return!1}));t===this._tree.getFocus()[0]&&(this._tree.scrollTop=this._tree.scrollHeight,this._tree.focusLast(void 0,(e=>e.element instanceof js)));break}case zi.Fp.PreviousSeparator:{let e,t=!!this._tree.getFocus()[0]?.separator;this._tree.focusPrevious(void 0,!0,void 0,(i=>{if(i.element instanceof Ys)t?e||(this._separatorRenderer.isSeparatorVisible(i.element)?this._tree.reveal(i.element):this._tree.reveal(i.element,0),e=i.element.children[0]):t=!0;else if(i.element instanceof js&&!e)if(i.element.separator)this._itemRenderer.isItemWithSeparatorVisible(i.element)?this._tree.reveal(i.element):this._tree.reveal(i.element,0),e=i.element;else if(i.element===this._elementTree[0])return this._tree.reveal(i.element,0),!0;return!1})),e&&this._tree.setFocus([e]);break}}}clearFocus(){this._tree.setFocus([])}domFocus(){this._tree.domFocus()}layout(e){this._tree.getHTMLElement().style.maxHeight=e?44*Math.floor(e/44)+6+"px":"",this._tree.layout()}filter(e){if(this._lastQueryString=e,!(this._sortByLabel||this._matchOnLabel||this._matchOnDescription||this._matchOnDetail))return this._tree.layout(),!1;const t=e;if((e=e.trim())&&(this.matchOnLabel||this.matchOnDescription||this.matchOnDetail)){let i;this._itemElements.forEach((s=>{let n;n="fuzzy"===this.matchOnLabelMode?this.matchOnLabel?(0,pi.pz)(e,(0,pi._k)(s.saneLabel))??void 0:void 0:this.matchOnLabel?function(e,t){const{text:i,iconOffsets:s}=t;if(!s||0===s.length)return en(e,i);const n=(0,l.NB)(i," "),r=i.length-n.length,o=en(e,n);if(o)for(const a of o){const e=s[a.start+r]+r;a.start+=e,a.end+=e}return o}(t,(0,pi._k)(s.saneLabel))??void 0:void 0;const r=this.matchOnDescription?(0,pi.pz)(e,(0,pi._k)(s.saneDescription||""))??void 0:void 0,o=this.matchOnDetail?(0,pi.pz)(e,(0,pi._k)(s.saneDetail||""))??void 0:void 0;if(n||r||o?(s.labelHighlights=n,s.descriptionHighlights=r,s.detailHighlights=o,s.hidden=!1):(s.labelHighlights=void 0,s.descriptionHighlights=void 0,s.detailHighlights=void 0,s.hidden=!s.item||!s.item.alwaysShow),s.item?s.separator=void 0:s.separator&&(s.hidden=!0),!this.sortByLabel){const e=s.index&&this._inputElements[s.index-1]||void 0;"separator"!==e?.type||e.buttons||(i=e),i&&!s.hidden&&(s.separator=i,i=void 0)}}))}else this._itemElements.forEach((e=>{e.labelHighlights=void 0,e.descriptionHighlights=void 0,e.detailHighlights=void 0,e.hidden=!1;const t=e.index&&this._inputElements[e.index-1];e.item&&(e.separator=t&&"separator"===t.type&&!t.buttons?t:void 0)}));return this._setElementsToTree(this._sortByLabel&&e?this._itemElements:this._elementTree),this._tree.layout(),!0}toggleCheckbox(){this._elementCheckedEventBufferer.bufferEvents((()=>{const e=this._tree.getFocus().filter((e=>e instanceof js)),t=this._allVisibleChecked(e);for(const i of e)i.checkboxDisabled||(i.checked=!t)}))}style(e){this._tree.style(e)}toggleHover(){const e=this._tree.getFocus()[0];if(!e?.saneTooltip||!(e instanceof js))return;if(this._lastHover&&!this._lastHover.isDisposed)return void this._lastHover.dispose();this.showHover(e);const t=new c.Cm;t.add(this._tree.onDidChangeFocus((e=>{e.elements[0]instanceof js&&this.showHover(e.elements[0])}))),this._lastHover&&t.add(this._lastHover),this._elementDisposable.add(t)}_setElementsToTree(e){const t=new Array;for(const i of e)i instanceof Ys?t.push({element:i,collapsible:!1,collapsed:!1,children:i.children.map((e=>({element:e,collapsible:!1,collapsed:!1})))}):t.push({element:i,collapsible:!1,collapsed:!1});this._tree.setChildren(null,t)}_allVisibleChecked(e,t=!0){for(let i=0,s=e.length;i<s;i++){const s=e[i];if(!s.hidden){if(!s.checked)return!1;t=!0}}return t}_updateCheckedObservables(){(0,Bs.Rn)((e=>{this._allVisibleCheckedObservable.set(this._allVisibleChecked(this._itemElements,!1),e);const t=this._itemElements.filter((e=>e.checked)).length;this._checkedCountObservable.set(t,e),this._checkedElementsObservable.set(this.getCheckedElements(),e)}))}showHover(e){this._lastHover&&!this._lastHover.isDisposed&&(this.hoverDelegate.onDidHideHover?.(),this._lastHover?.dispose()),e.element&&e.saneTooltip&&(this._lastHover=this.hoverDelegate.showHover({content:e.saneTooltip,target:e.element,linkHandler:e=>{this.linkOpenerDelegate(e)},appearance:{showPointer:!0},container:this._container,position:{hoverPosition:1}},!1))}};function en(e,t){const i=t.toLowerCase().indexOf(e.toLowerCase());return-1!==i?[{start:i,end:i+e.length}]:null}Ws([Xi.B],Js.prototype,"onDidChangeFocus",null),Ws([Xi.B],Js.prototype,"onDidChangeSelection",null),Js=Ws([Vs(4,ae._Y),Vs(5,Ve.j)],Js);var tn=i(28290);const sn={weight:200,when:ie.M$.and(ie.M$.equals(hs,"quickPick"),ls),metadata:{description:(0,b.kg)("quickPick","Used while in the context of the quick pick. If you change one keybinding for this command, you should change all of the other keybindings (modifier variants) of this command as well.")}};function nn(e,t={}){Wt.f.registerCommandAndKeybindingRule({...sn,...e,secondary:on(e.primary,e.secondary??[],t)})}const rn=We.zx?256:2048;function on(e,t,i={}){return i.withAltMod&&t.push(512+e),i.withCtrlMod&&(t.push(rn+e),i.withAltMod&&t.push(512+rn+e)),i.withCmdMod&&We.zx&&(t.push(2048+e),i.withCtrlMod&&t.push(2304+e),i.withAltMod&&(t.push(2560+e),i.withCtrlMod&&t.push(2816+e))),t}function an(e,t){return i=>{const s=i.get(zi.GK).currentQuickInput;if(s)return t&&s.quickNavigate?s.focus(t):s.focus(e)}}nn({id:"quickInput.pageNext",primary:12,handler:an(zi.Fp.NextPage)},{withAltMod:!0,withCtrlMod:!0,withCmdMod:!0}),nn({id:"quickInput.pagePrevious",primary:11,handler:an(zi.Fp.PreviousPage)},{withAltMod:!0,withCtrlMod:!0,withCmdMod:!0}),nn({id:"quickInput.first",primary:rn+14,handler:an(zi.Fp.First)},{withAltMod:!0,withCmdMod:!0}),nn({id:"quickInput.last",primary:rn+13,handler:an(zi.Fp.Last)},{withAltMod:!0,withCmdMod:!0}),nn({id:"quickInput.next",primary:18,handler:an(zi.Fp.Next)},{withCtrlMod:!0}),nn({id:"quickInput.previous",primary:16,handler:an(zi.Fp.Previous)},{withCtrlMod:!0});const cn=(0,b.kg)("quickInput.nextSeparatorWithQuickAccessFallback","If we're in quick access mode, this will navigate to the next item. If we are not in quick access mode, this will navigate to the next separator."),ln=(0,b.kg)("quickInput.previousSeparatorWithQuickAccessFallback","If we're in quick access mode, this will navigate to the previous item. If we are not in quick access mode, this will navigate to the previous separator.");We.zx?(nn({id:"quickInput.nextSeparatorWithQuickAccessFallback",primary:2066,handler:an(zi.Fp.NextSeparator,zi.Fp.Next),metadata:{description:cn}}),nn({id:"quickInput.nextSeparator",primary:2578,secondary:[2322],handler:an(zi.Fp.NextSeparator)},{withCtrlMod:!0}),nn({id:"quickInput.previousSeparatorWithQuickAccessFallback",primary:2064,handler:an(zi.Fp.PreviousSeparator,zi.Fp.Previous),metadata:{description:ln}}),nn({id:"quickInput.previousSeparator",primary:2576,secondary:[2320],handler:an(zi.Fp.PreviousSeparator)},{withCtrlMod:!0})):(nn({id:"quickInput.nextSeparatorWithQuickAccessFallback",primary:530,handler:an(zi.Fp.NextSeparator,zi.Fp.Next),metadata:{description:cn}}),nn({id:"quickInput.nextSeparator",primary:2578,handler:an(zi.Fp.NextSeparator)}),nn({id:"quickInput.previousSeparatorWithQuickAccessFallback",primary:528,handler:an(zi.Fp.PreviousSeparator,zi.Fp.Previous),metadata:{description:ln}}),nn({id:"quickInput.previousSeparator",primary:2576,handler:an(zi.Fp.PreviousSeparator)})),nn({id:"quickInput.acceptInBackground",when:ie.M$.and(sn.when,ie.M$.or(tn.J7.negate(),ps)),primary:17,weight:250,handler:e=>{const t=e.get(zi.GK).currentQuickInput;t?.accept(!0)}},{withAltMod:!0,withCtrlMod:!0,withCmdMod:!0});var hn,dn=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},un=function(e,t){return function(i,s){t(i,s,e)}};const gn=U.$;let pn=class extends c.jG{static{hn=this}static{this.MAX_WIDTH=600}get currentQuickInput(){return this.controller??void 0}get container(){return this._container}constructor(e,t,i,s){super(),this.options=e,this.layoutService=t,this.instantiationService=i,this.contextKeyService=s,this.enabled=!0,this.onDidAcceptEmitter=this._register(new Q.vl),this.onDidCustomEmitter=this._register(new Q.vl),this.onDidTriggerButtonEmitter=this._register(new Q.vl),this.keyMods={ctrlCmd:!1,alt:!1},this.controller=null,this.onShowEmitter=this._register(new Q.vl),this.onShow=this.onShowEmitter.event,this.onHideEmitter=this._register(new Q.vl),this.onHide=this.onHideEmitter.event,this.inQuickInputContext=cs.bindTo(this.contextKeyService),this.quickInputTypeContext=ds.bindTo(this.contextKeyService),this.endOfQuickInputBoxContext=gs.bindTo(this.contextKeyService),this.idPrefix=e.idPrefix,this._container=e.container,this.styles=e.styles,this._register(Q.Jh.runAndSubscribe(U.Iv,(({window:e,disposables:t})=>this.registerKeyModsListeners(e,t)),{window:a.G,disposables:this._store})),this._register(U.q3((e=>{this.ui&&U.zk(this.ui.container)===e&&(this.reparentUI(this.layoutService.mainContainer),this.layout(this.layoutService.mainContainerDimension,this.layoutService.mainContainerOffset.quickPickTop))})))}registerKeyModsListeners(e,t){const i=e=>{this.keyMods.ctrlCmd=e.ctrlKey||e.metaKey,this.keyMods.alt=e.altKey};for(const s of[U.Bx.KEY_DOWN,U.Bx.KEY_UP,U.Bx.MOUSE_DOWN])t.add(U.ko(e,s,i,!0))}getUI(e){if(this.ui)return e&&U.zk(this._container)!==U.zk(this.layoutService.activeContainer)&&(this.reparentUI(this.layoutService.activeContainer),this.layout(this.layoutService.activeContainerDimension,this.layoutService.activeContainerOffset.quickPickTop)),this.ui;const t=U.BC(this._container,gn(".quick-input-widget.show-file-icons"));t.tabIndex=-1,t.style.display="none";const i=U.li(t),s=U.BC(t,gn(".quick-input-titlebar")),n=this._register(new ci.E(s,{hoverDelegate:this.options.hoverDelegate}));n.domNode.classList.add("quick-input-left-action-bar");const r=U.BC(s,gn(".quick-input-title")),o=this._register(new ci.E(s,{hoverDelegate:this.options.hoverDelegate}));o.domNode.classList.add("quick-input-right-action-bar");const a=U.BC(t,gn(".quick-input-header")),c=U.BC(a,gn("input.quick-input-check-all"));c.type="checkbox",c.setAttribute("aria-label",(0,b.kg)("quickInput.checkAll","Toggle all checkboxes")),this._register(U.b2(c,U.Bx.CHANGE,(e=>{const t=c.checked;x.setAllVisibleChecked(t)}))),this._register(U.ko(c,U.Bx.CLICK,(e=>{(e.x||e.y)&&u.setFocus()})));const l=U.BC(a,gn(".quick-input-description")),h=U.BC(a,gn(".quick-input-and-message")),d=U.BC(h,gn(".quick-input-filter")),u=this._register(new As(d,this.styles.inputBox,this.styles.toggle));u.setAttribute("aria-describedby",`${this.idPrefix}message`);const g=U.BC(d,gn(".quick-input-visible-count"));g.setAttribute("aria-live","polite"),g.setAttribute("aria-atomic","true");const p=new bs.x(g,{countFormat:(0,b.kg)({key:"quickInput.visibleCount",comment:["This tells the user how many items are shown in a list of items to select from. The items can be anything. Currently not visible, but read by screen readers."]},"{0} Results")},this.styles.countBadge),m=U.BC(d,gn(".quick-input-count"));m.setAttribute("aria-live","polite");const f=new bs.x(m,{countFormat:(0,b.kg)({key:"quickInput.countSelected",comment:["This tells the user how many items are selected in a list of items to select from. The items can be anything."]},"{0} Selected")},this.styles.countBadge),_=this._register(new ci.E(a,{hoverDelegate:this.options.hoverDelegate}));_.domNode.classList.add("quick-input-inline-action-bar");const v=U.BC(a,gn(".quick-input-action")),C=this._register(new Es.$(v,this.styles.button));C.label=(0,b.kg)("ok","OK"),this._register(C.onDidClick((e=>{this.onDidAcceptEmitter.fire()})));const E=U.BC(a,gn(".quick-input-action")),S=this._register(new Es.$(E,{...this.styles.button,supportIcons:!0}));S.label=(0,b.kg)("custom","Custom"),this._register(S.onDidClick((e=>{this.onDidCustomEmitter.fire()})));const y=U.BC(h,gn(`#${this.idPrefix}message.quick-input-message`)),w=this._register(new Ts(t,this.styles.progressBar));w.getContainer().classList.add("quick-input-progress");const R=U.BC(t,gn(".quick-input-html-widget"));R.tabIndex=-1;const L=U.BC(t,gn(".quick-input-description")),T=this.idPrefix+"list",x=this._register(this.instantiationService.createInstance(Js,t,this.options.hoverDelegate,this.options.linkOpenerDelegate,T));u.setAttribute("aria-controls",T),this._register(x.onDidChangeFocus((()=>{u.setAttribute("aria-activedescendant",x.getActiveDescendant()??"")}))),this._register(x.onChangedAllVisibleChecked((e=>{c.checked=e}))),this._register(x.onChangedVisibleCount((e=>{p.setCount(e)}))),this._register(x.onChangedCheckedCount((e=>{f.setCount(e)}))),this._register(x.onLeave((()=>{setTimeout((()=>{this.controller&&(u.setFocus(),this.controller instanceof _s&&this.controller.canSelectMany&&x.clearFocus())}),0)})));const k=U.w5(t);return this._register(k),this._register(U.ko(t,U.Bx.FOCUS,(e=>{const t=this.getUI();if(U.QX(e.relatedTarget,t.inputContainer)){const e=t.inputBox.isSelectionAtEnd();this.endOfQuickInputBoxContext.get()!==e&&this.endOfQuickInputBoxContext.set(e)}U.QX(e.relatedTarget,t.container)||(this.inQuickInputContext.set(!0),this.previousFocusElement=U.sb(e.relatedTarget)?e.relatedTarget:void 0)}),!0)),this._register(k.onDidBlur((()=>{this.getUI().ignoreFocusOut||this.options.ignoreFocusOut()||this.hide(zi.kF.Blur),this.inQuickInputContext.set(!1),this.endOfQuickInputBoxContext.set(!1),this.previousFocusElement=void 0}))),this._register(u.onKeyDown((e=>{const t=this.getUI().inputBox.isSelectionAtEnd();this.endOfQuickInputBoxContext.get()!==t&&this.endOfQuickInputBoxContext.set(t)}))),this._register(U.ko(t,U.Bx.FOCUS,(e=>{u.setFocus()}))),this._register(U.b2(t,U.Bx.KEY_DOWN,(e=>{if(!U.QX(e.target,R))switch(e.keyCode){case 3:U.fs.stop(e,!0),this.enabled&&this.onDidAcceptEmitter.fire();break;case 9:U.fs.stop(e,!0),this.hide(zi.kF.Gesture);break;case 2:if(!e.altKey&&!e.ctrlKey&&!e.metaKey){const i=[".quick-input-list .monaco-action-bar .always-visible",".quick-input-list-entry:hover .monaco-action-bar",".monaco-list-row.focused .monaco-action-bar"];if(t.classList.contains("show-checkboxes")?i.push("input"):i.push("input[type=text]"),this.getUI().list.displayed&&i.push(".monaco-list"),this.getUI().message&&i.push(".quick-input-message a"),this.getUI().widget){if(U.QX(e.target,this.getUI().widget))break;i.push(".quick-input-html-widget")}const s=t.querySelectorAll(i.join(", "));e.shiftKey&&e.target===s[0]?(U.fs.stop(e,!0),x.clearFocus()):!e.shiftKey&&U.QX(e.target,s[s.length-1])&&(U.fs.stop(e,!0),s[0].focus())}break;case 10:e.ctrlKey&&(U.fs.stop(e,!0),this.getUI().list.toggleHover())}}))),this.ui={container:t,styleSheet:i,leftActionBar:n,titleBar:s,title:r,description1:L,description2:l,widget:R,rightActionBar:o,inlineActionBar:_,checkAll:c,inputContainer:h,filterContainer:d,inputBox:u,visibleCountContainer:g,visibleCount:p,countContainer:m,count:f,okContainer:v,ok:C,message:y,customButtonContainer:E,customButton:S,list:x,progressBar:w,onDidAccept:this.onDidAcceptEmitter.event,onDidCustom:this.onDidCustomEmitter.event,onDidTriggerButton:this.onDidTriggerButtonEmitter.event,ignoreFocusOut:!1,keyMods:this.keyMods,show:e=>this.show(e),hide:()=>this.hide(),setVisibilities:e=>this.setVisibilities(e),setEnabled:e=>this.setEnabled(e),setContextKey:e=>this.options.setContextKey(e),linkOpenerDelegate:e=>this.options.linkOpenerDelegate(e)},this.updateStyles(),this.ui}reparentUI(e){this.ui&&(this._container=e,U.BC(this._container,this.ui.container))}pick(e,t={},i=at.XO.None){return new Promise(((s,n)=>{let r=e=>{r=s,t.onKeyMods?.(o.keyMods),s(e)};if(i.isCancellationRequested)return void r(void 0);const o=this.createQuickPick({useSeparators:!0});let a;const l=[o,o.onDidAccept((()=>{if(o.canSelectMany)r(o.selectedItems.slice()),o.hide();else{const e=o.activeItems[0];e&&(r(e),o.hide())}})),o.onDidChangeActive((e=>{const i=e[0];i&&t.onDidFocus&&t.onDidFocus(i)})),o.onDidChangeSelection((e=>{if(!o.canSelectMany){const t=e[0];t&&(r(t),o.hide())}})),o.onDidTriggerItemButton((e=>t.onDidTriggerItemButton&&t.onDidTriggerItemButton({...e,removeItem:()=>{const t=o.items.indexOf(e.item);if(-1!==t){const e=o.items.slice(),i=e.splice(t,1),s=o.activeItems.filter((e=>e!==i[0])),n=o.keepScrollPosition;o.keepScrollPosition=!0,o.items=e,s&&(o.activeItems=s),o.keepScrollPosition=n}}}))),o.onDidTriggerSeparatorButton((e=>t.onDidTriggerSeparatorButton?.(e))),o.onDidChangeValue((e=>{!a||e||1===o.activeItems.length&&o.activeItems[0]===a||(o.activeItems=[a])})),i.onCancellationRequested((()=>{o.hide()})),o.onDidHide((()=>{(0,c.AS)(l),r(void 0)}))];o.title=t.title,t.value&&(o.value=t.value),o.canSelectMany=!!t.canPickMany,o.placeholder=t.placeHolder,o.ignoreFocusOut=!!t.ignoreFocusLost,o.matchOnDescription=!!t.matchOnDescription,o.matchOnDetail=!!t.matchOnDetail,o.matchOnLabel=void 0===t.matchOnLabel||t.matchOnLabel,o.quickNavigate=t.quickNavigate,o.hideInput=!!t.hideInput,o.contextKey=t.contextKey,o.busy=!0,Promise.all([e,t.activeItem]).then((([e,t])=>{a=t,o.busy=!1,o.items=e,o.canSelectMany&&(o.selectedItems=e.filter((e=>"separator"!==e.type&&e.picked))),a&&(o.activeItems=[a])})),o.show(),Promise.resolve(e).then(void 0,(e=>{n(e),o.hide()}))}))}createQuickPick(e={useSeparators:!1}){const t=this.getUI(!0);return new _s(t)}createInputBox(){const e=this.getUI(!0);return new vs(e)}show(e){const t=this.getUI(!0);this.onShowEmitter.fire();const i=this.controller;this.controller=e,i?.didHide(),this.setEnabled(!0),t.leftActionBar.clear(),t.title.textContent="",t.description1.textContent="",t.description2.textContent="",U.Ln(t.widget),t.rightActionBar.clear(),t.inlineActionBar.clear(),t.checkAll.checked=!1,t.inputBox.placeholder="",t.inputBox.password=!1,t.inputBox.showDecoration(ge.A.Ignore),t.visibleCount.setCount(0),t.count.setCount(0),U.Ln(t.message),t.progressBar.stop(),t.list.setElements([]),t.list.matchOnDescription=!1,t.list.matchOnDetail=!1,t.list.matchOnLabel=!0,t.list.sortByLabel=!0,t.ignoreFocusOut=!1,t.inputBox.toggles=void 0;const s=this.options.backKeybindingLabel();ms.tooltip=s?(0,b.kg)("quickInput.backWithKeybinding","Back ({0})",s):(0,b.kg)("quickInput.back","Back"),t.container.style.display="",this.updateLayout(),t.inputBox.setFocus(),this.quickInputTypeContext.set(e.type)}isVisible(){return!!this.ui&&"none"!==this.ui.container.style.display}setVisibilities(e){const t=this.getUI();t.title.style.display=e.title?"":"none",t.description1.style.display=e.description&&(e.inputBox||e.checkAll)?"":"none",t.description2.style.display=!e.description||e.inputBox||e.checkAll?"none":"",t.checkAll.style.display=e.checkAll?"":"none",t.inputContainer.style.display=e.inputBox?"":"none",t.filterContainer.style.display=e.inputBox?"":"none",t.visibleCountContainer.style.display=e.visibleCount?"":"none",t.countContainer.style.display=e.count?"":"none",t.okContainer.style.display=e.ok?"":"none",t.customButtonContainer.style.display=e.customButton?"":"none",t.message.style.display=e.message?"":"none",t.progressBar.getContainer().style.display=e.progressBar?"":"none",t.list.displayed=!!e.list,t.container.classList.toggle("show-checkboxes",!!e.checkBox),t.container.classList.toggle("hidden-input",!e.inputBox&&!e.description),this.updateLayout()}setEnabled(e){if(e!==this.enabled){this.enabled=e;for(const t of this.getUI().leftActionBar.viewItems)t.action.enabled=e;for(const t of this.getUI().rightActionBar.viewItems)t.action.enabled=e;this.getUI().checkAll.disabled=!e,this.getUI().inputBox.enabled=e,this.getUI().ok.enabled=e,this.getUI().list.enabled=e}}hide(e){const t=this.controller;if(!t)return;t.willHide(e);const i=this.ui?.container,s=i&&!U.nR(i);if(this.controller=null,this.onHideEmitter.fire(),i&&(i.style.display="none"),!s){let e=this.previousFocusElement;for(;e&&!e.offsetParent;)e=e.parentElement??void 0;e?.offsetParent?(e.focus(),this.previousFocusElement=void 0):this.options.returnFocus()}t.didHide(e)}layout(e,t){this.dimension=e,this.titleBarOffset=t,this.updateLayout()}updateLayout(){if(this.ui&&this.isVisible()){this.ui.container.style.top=`${this.titleBarOffset}px`;const e=this.ui.container.style,t=Math.min(.62*this.dimension.width,hn.MAX_WIDTH);e.width=t+"px",e.marginLeft="-"+t/2+"px",this.ui.inputBox.layout(),this.ui.list.layout(this.dimension&&.4*this.dimension.height)}}applyStyles(e){this.styles=e,this.updateStyles()}updateStyles(){if(this.ui){const{quickInputTitleBackground:e,quickInputBackground:t,quickInputForeground:i,widgetBorder:s,widgetShadow:n}=this.styles.widget;this.ui.titleBar.style.backgroundColor=e??"",this.ui.container.style.backgroundColor=t??"",this.ui.container.style.color=i??"",this.ui.container.style.border=s?`1px solid ${s}`:"",this.ui.container.style.boxShadow=n?`0 0 8px 2px ${n}`:"",this.ui.list.style(this.styles.list);const r=[];this.styles.pickerGroup.pickerGroupBorder&&r.push(`.quick-input-list .quick-input-list-entry { border-top-color: ${this.styles.pickerGroup.pickerGroupBorder}; }`),this.styles.pickerGroup.pickerGroupForeground&&r.push(`.quick-input-list .quick-input-list-separator { color: ${this.styles.pickerGroup.pickerGroupForeground}; }`),this.styles.pickerGroup.pickerGroupForeground&&r.push(".quick-input-list .quick-input-list-separator-as-item { color: var(--vscode-descriptionForeground); }"),(this.styles.keybindingLabel.keybindingLabelBackground||this.styles.keybindingLabel.keybindingLabelBorder||this.styles.keybindingLabel.keybindingLabelBottomBorder||this.styles.keybindingLabel.keybindingLabelShadow||this.styles.keybindingLabel.keybindingLabelForeground)&&(r.push(".quick-input-list .monaco-keybinding > .monaco-keybinding-key {"),this.styles.keybindingLabel.keybindingLabelBackground&&r.push(`background-color: ${this.styles.keybindingLabel.keybindingLabelBackground};`),this.styles.keybindingLabel.keybindingLabelBorder&&r.push(`border-color: ${this.styles.keybindingLabel.keybindingLabelBorder};`),this.styles.keybindingLabel.keybindingLabelBottomBorder&&r.push(`border-bottom-color: ${this.styles.keybindingLabel.keybindingLabelBottomBorder};`),this.styles.keybindingLabel.keybindingLabelShadow&&r.push(`box-shadow: inset 0 -1px 0 ${this.styles.keybindingLabel.keybindingLabelShadow};`),this.styles.keybindingLabel.keybindingLabelForeground&&r.push(`color: ${this.styles.keybindingLabel.keybindingLabelForeground};`),r.push("}"));const o=r.join("\n");o!==this.ui.styleSheet.textContent&&(this.ui.styleSheet.textContent=o)}}};pn=hn=dn([un(1,ce),un(2,ae._Y),un(3,ie.fN)],pn);var mn=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},fn=function(e,t){return function(i,s){t(i,s,e)}};let _n=class extends Z.lR{get controller(){return this._controller||(this._controller=this._register(this.createController())),this._controller}get hasController(){return!!this._controller}get currentQuickInput(){return this.controller.currentQuickInput}get quickAccess(){return this._quickAccess||(this._quickAccess=this._register(this.instantiationService.createInstance(Ki))),this._quickAccess}constructor(e,t,i,s,n){super(i),this.instantiationService=e,this.contextKeyService=t,this.layoutService=s,this.configurationService=n,this._onShow=this._register(new Q.vl),this._onHide=this._register(new Q.vl),this.contexts=new Map}createController(e=this.layoutService,t){const i={idPrefix:"quickInput_",container:e.activeContainer,ignoreFocusOut:()=>!1,backKeybindingLabel:()=>{},setContextKey:e=>this.setContextKey(e),linkOpenerDelegate:e=>{this.instantiationService.invokeFunction((t=>{t.get(Ue.C).open(e,{allowCommands:!0,fromUserGesture:!0})}))},returnFocus:()=>e.focus(),styles:this.computeStyles(),hoverDelegate:this._register(this.instantiationService.createInstance(Cs))},s=this._register(this.instantiationService.createInstance(pn,{...i,...t}));return s.layout(e.activeContainerDimension,e.activeContainerOffset.quickPickTop),this._register(e.onDidLayoutActiveContainer((t=>{(0,U.zk)(e.activeContainer)===(0,U.zk)(s.container)&&s.layout(t,e.activeContainerOffset.quickPickTop)}))),this._register(e.onDidChangeActiveContainer((()=>{s.isVisible()||s.layout(e.activeContainerDimension,e.activeContainerOffset.quickPickTop)}))),this._register(s.onShow((()=>{this.resetContextKeys(),this._onShow.fire()}))),this._register(s.onHide((()=>{this.resetContextKeys(),this._onHide.fire()}))),s}setContextKey(e){let t;e&&(t=this.contexts.get(e),t||(t=new ie.N1(e,!1).bindTo(this.contextKeyService),this.contexts.set(e,t))),t&&t.get()||(this.resetContextKeys(),t?.set(!0))}resetContextKeys(){this.contexts.forEach((e=>{e.get()&&e.reset()}))}pick(e,t,i=at.XO.None){return this.controller.pick(e,t,i)}createQuickPick(e={useSeparators:!1}){return this.controller.createQuickPick(e)}createInputBox(){return this.controller.createInputBox()}updateStyles(){this.hasController&&this.controller.applyStyles(this.computeStyles())}computeStyles(){return{widget:{quickInputBackground:(0,Ne.GuP)(Ne.ELA),quickInputForeground:(0,Ne.GuP)(Ne.HJZ),quickInputTitleBackground:(0,Ne.GuP)(Ne.er1),widgetBorder:(0,Ne.GuP)(Ne.DSL),widgetShadow:(0,Ne.GuP)(Ne.f9l)},inputBox:wi.ho,toggle:wi.mk,countBadge:wi.m$,button:wi.cv,progressBar:wi.oJ,keybindingLabel:wi.ir,list:(0,wi.t8)({listBackground:Ne.ELA,listFocusBackground:Ne.AlL,listFocusForeground:Ne.nH,listInactiveFocusForeground:Ne.nH,listInactiveSelectionIconForeground:Ne.c7i,listInactiveFocusBackground:Ne.AlL,listFocusOutline:Ne.buw,listInactiveFocusOutline:Ne.buw}),pickerGroup:{pickerGroupBorder:(0,Ne.GuP)(Ne.iwL),pickerGroupForeground:(0,Ne.GuP)(Ne.NBf)}}}};_n=mn([fn(0,ae._Y),fn(1,ie.fN),fn(2,Z.Gy),fn(3,ce),fn(4,Me.pG)],_n);var vn=i(6921),Cn=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},En=function(e,t){return function(i,s){t(i,s,e)}};let bn=class extends _n{constructor(e,t,i,s,n,r){super(t,i,s,new ue(e.getContainerDomNode(),n),r),this.host=void 0;const o=yn.get(e);if(o){const t=o.widget;this.host={_serviceBrand:void 0,get mainContainer(){return t.getDomNode()},getContainer:()=>t.getDomNode(),whenContainerStylesLoaded(){},get containers(){return[t.getDomNode()]},get activeContainer(){return t.getDomNode()},get mainContainerDimension(){return e.getLayoutInfo()},get activeContainerDimension(){return e.getLayoutInfo()},get onDidLayoutMainContainer(){return e.onDidLayoutChange},get onDidLayoutActiveContainer(){return e.onDidLayoutChange},get onDidLayoutContainer(){return Q.Jh.map(e.onDidLayoutChange,(e=>({container:t.getDomNode(),dimension:e})))},get onDidChangeActiveContainer(){return Q.Jh.None},get onDidAddContainer(){return Q.Jh.None},get mainContainerOffset(){return{top:0,quickPickTop:0}},get activeContainerOffset(){return{top:0,quickPickTop:0}},focus:()=>e.focus()}}else this.host=void 0}createController(){return super.createController(this.host)}};bn=Cn([En(1,ae._Y),En(2,ie.fN),En(3,Z.Gy),En(4,g.T),En(5,Me.pG)],bn);let Sn=class{get activeService(){const e=this.codeEditorService.getFocusedCodeEditor();if(!e)throw new Error("Quick input service needs a focused editor to work.");let t=this.mapEditorToService.get(e);if(!t){const i=t=this.instantiationService.createInstance(bn,e);this.mapEditorToService.set(e,t),(0,vn.P)(e.onDidDispose)((()=>{i.dispose(),this.mapEditorToService.delete(e)}))}return t}get currentQuickInput(){return this.activeService.currentQuickInput}get quickAccess(){return this.activeService.quickAccess}constructor(e,t){this.instantiationService=e,this.codeEditorService=t,this.mapEditorToService=new Map}pick(e,t,i=at.XO.None){return this.activeService.pick(e,t,i)}createQuickPick(e={useSeparators:!1}){return this.activeService.createQuickPick(e)}createInputBox(){return this.activeService.createInputBox()}};Sn=Cn([En(0,ae._Y),En(1,g.T)],Sn);class yn{static{this.ID="editor.controller.quickInput"}static get(e){return e.getContribution(yn.ID)}constructor(e){this.editor=e,this.widget=new wn(this.editor)}dispose(){this.widget.dispose()}}class wn{static{this.ID="editor.contrib.quickInputWidget"}constructor(e){this.codeEditor=e,this.domNode=document.createElement("div"),this.codeEditor.addOverlayWidget(this)}getId(){return wn.ID}getDomNode(){return this.domNode}getPosition(){return{preference:2}}dispose(){this.codeEditor.removeOverlayWidget(this)}}(0,u.HW)(yn.ID,yn,4);var Rn=i(10424),Ln=i(24520),Tn=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},xn=function(e,t){return function(i,s){t(i,s,e)}};let kn=class extends c.jG{constructor(e,t,i){super(),this._contextKeyService=e,this._layoutService=t,this._configurationService=i,this._accessibilitySupport=0,this._onDidChangeScreenReaderOptimized=new Q.vl,this._onDidChangeReducedMotion=new Q.vl,this._onDidChangeLinkUnderline=new Q.vl,this._accessibilityModeEnabledContext=Ve.f.bindTo(this._contextKeyService);const s=()=>this._accessibilityModeEnabledContext.set(this.isScreenReaderOptimized());this._register(this._configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration("editor.accessibilitySupport")&&(s(),this._onDidChangeScreenReaderOptimized.fire()),e.affectsConfiguration("workbench.reduceMotion")&&(this._configMotionReduced=this._configurationService.getValue("workbench.reduceMotion"),this._onDidChangeReducedMotion.fire())}))),s(),this._register(this.onDidChangeScreenReaderOptimized((()=>s())));const n=a.G.matchMedia("(prefers-reduced-motion: reduce)");this._systemMotionReduced=n.matches,this._configMotionReduced=this._configurationService.getValue("workbench.reduceMotion"),this._linkUnderlinesEnabled=this._configurationService.getValue("accessibility.underlineLinks"),this.initReducedMotionListeners(n),this.initLinkUnderlineListeners()}initReducedMotionListeners(e){this._register((0,U.ko)(e,"change",(()=>{this._systemMotionReduced=e.matches,"auto"===this._configMotionReduced&&this._onDidChangeReducedMotion.fire()})));const t=()=>{const e=this.isMotionReduced();this._layoutService.mainContainer.classList.toggle("reduce-motion",e),this._layoutService.mainContainer.classList.toggle("enable-motion",!e)};t(),this._register(this.onDidChangeReducedMotion((()=>t())))}initLinkUnderlineListeners(){this._register(this._configurationService.onDidChangeConfiguration((e=>{if(e.affectsConfiguration("accessibility.underlineLinks")){const e=this._configurationService.getValue("accessibility.underlineLinks");this._linkUnderlinesEnabled=e,this._onDidChangeLinkUnderline.fire()}})));const e=()=>{const e=this._linkUnderlinesEnabled;this._layoutService.mainContainer.classList.toggle("underline-links",e)};e(),this._register(this.onDidChangeLinkUnderlines((()=>e())))}onDidChangeLinkUnderlines(e){return this._onDidChangeLinkUnderline.event(e)}get onDidChangeScreenReaderOptimized(){return this._onDidChangeScreenReaderOptimized.event}isScreenReaderOptimized(){const e=this._configurationService.getValue("editor.accessibilitySupport");return"on"===e||"auto"===e&&2===this._accessibilitySupport}get onDidChangeReducedMotion(){return this._onDidChangeReducedMotion.event}isMotionReduced(){const e=this._configMotionReduced;return"on"===e||"auto"===e&&this._systemMotionReduced}getAccessibilitySupport(){return this._accessibilitySupport}};kn=Tn([xn(0,ie.fN),xn(1,ce),xn(2,Me.pG)],kn);var An,Nn=i(60858),In=i(85600),On=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Dn=function(e,t){return function(i,s){t(i,s,e)}};const Mn="application/vnd.code.resources";let Pn=class extends c.jG{static{An=this}constructor(e,t){super(),this.layoutService=e,this.logService=t,this.mapTextToType=new Map,this.findText="",this.resources=[],this.resourcesStateHash=void 0,(oi.nr||oi.c8)&&this.installWebKitWriteTextWorkaround(),this._register(Q.Jh.runAndSubscribe(U.Iv,(({window:e,disposables:t})=>{t.add((0,U.ko)(e.document,"copy",(()=>this.clearResourcesState())))}),{window:a.G,disposables:this._store}))}installWebKitWriteTextWorkaround(){const e=()=>{const e=new m.Zv;this.webKitPendingClipboardWritePromise&&!this.webKitPendingClipboardWritePromise.isSettled&&this.webKitPendingClipboardWritePromise.cancel(),this.webKitPendingClipboardWritePromise=e,(0,U.fz)().navigator.clipboard.write([new ClipboardItem({"text/plain":e.p})]).catch((async t=>{t instanceof Error&&"NotAllowedError"===t.name&&e.isRejected||this.logService.error(t)}))};this._register(Q.Jh.runAndSubscribe(this.layoutService.onDidAddContainer,(({container:t,disposables:i})=>{i.add((0,U.ko)(t,"click",e)),i.add((0,U.ko)(t,"keydown",e))}),{container:this.layoutService.mainContainer,disposables:this._store}))}async writeText(e,t){if(this.clearResourcesState(),t)this.mapTextToType.set(t,e);else{if(this.webKitPendingClipboardWritePromise)return this.webKitPendingClipboardWritePromise.complete(e);try{return await(0,U.fz)().navigator.clipboard.writeText(e)}catch(i){console.error(i)}this.fallbackWriteText(e)}}fallbackWriteText(e){const t=(0,U.a)(),i=t.activeElement,s=t.body.appendChild((0,U.$)("textarea",{"aria-hidden":!0}));s.style.height="1px",s.style.width="1px",s.style.position="absolute",s.value=e,s.focus(),s.select(),t.execCommand("copy"),(0,U.sb)(i)&&i.focus(),s.remove()}async readText(e){if(e)return this.mapTextToType.get(e)||"";try{return await(0,U.fz)().navigator.clipboard.readText()}catch(t){console.error(t)}return""}async readFindText(){return this.findText}async writeFindText(e){this.findText=e}static{this.MAX_RESOURCE_STATE_SOURCE_LENGTH=1e3}async readResources(){try{const e=await(0,U.fz)().navigator.clipboard.read();for(const t of e)if(t.types.includes(`web ${Mn}`)){const e=await t.getType(`web ${Mn}`);return JSON.parse(await e.text()).map((e=>h.r.from(e)))}}catch(t){}const e=await this.computeResourcesStateHash();return this.resourcesStateHash!==e&&this.clearResourcesState(),this.resources}async computeResourcesStateHash(){if(0===this.resources.length)return;const e=await this.readText();return(0,In.tW)(e.substring(0,An.MAX_RESOURCE_STATE_SOURCE_LENGTH))}clearInternalState(){this.clearResourcesState()}clearResourcesState(){this.resources=[],this.resourcesStateHash=void 0}};Pn=An=On([Dn(0,ce),Dn(1,I.rr)],Pn);var Fn=i(54770),Un=i(42522),Hn=i(4853),Bn=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Wn=function(e,t){return function(i,s){t(i,s,e)}};const Vn="data-keybinding-context";class zn{constructor(e,t){this._id=e,this._parent=t,this._value=Object.create(null),this._value._contextId=e}get value(){return{...this._value}}setValue(e,t){return this._value[e]!==t&&(this._value[e]=t,!0)}removeValue(e){return e in this._value&&(delete this._value[e],!0)}getValue(e){const t=this._value[e];return"undefined"===typeof t&&this._parent?this._parent.getValue(e):t}}class Gn extends zn{static{this.INSTANCE=new Gn}constructor(){super(-1,null)}setValue(e,t){return!1}removeValue(e){return!1}getValue(e){}}class jn extends zn{static{this._keyPrefix="config."}constructor(e,t,i){super(e,null),this._configurationService=t,this._values=Hn.cB.forConfigKeys(),this._listener=this._configurationService.onDidChangeConfiguration((e=>{if(7===e.source){const e=Array.from(this._values,(([e])=>e));this._values.clear(),i.fire(new qn(e))}else{const t=[];for(const i of e.affectedKeys){const e=`config.${i}`,s=this._values.findSuperstr(e);void 0!==s&&(t.push(...Un.f.map(s,(([e])=>e))),this._values.deleteSuperstr(e)),this._values.has(e)&&(t.push(e),this._values.delete(e))}i.fire(new qn(t))}}))}dispose(){this._listener.dispose()}getValue(e){if(0!==e.indexOf(jn._keyPrefix))return super.getValue(e);if(this._values.has(e))return this._values.get(e);const t=e.substr(jn._keyPrefix.length),i=this._configurationService.getValue(t);let s;switch(typeof i){case"number":case"boolean":case"string":s=i;break;default:s=Array.isArray(i)?JSON.stringify(i):i}return this._values.set(e,s),s}setValue(e,t){return super.setValue(e,t)}removeValue(e){return super.removeValue(e)}}class Kn{constructor(e,t,i){this._service=e,this._key=t,this._defaultValue=i,this.reset()}set(e){this._service.setContext(this._key,e)}reset(){"undefined"===typeof this._defaultValue?this._service.removeContext(this._key):this._service.setContext(this._key,this._defaultValue)}get(){return this._service.getContextKeyValue(this._key)}}class Yn{constructor(e){this.key=e}affectsSome(e){return e.has(this.key)}allKeysContainedIn(e){return this.affectsSome(e)}}class qn{constructor(e){this.keys=e}affectsSome(e){for(const t of this.keys)if(e.has(t))return!0;return!1}allKeysContainedIn(e){return this.keys.every((t=>e.has(t)))}}class $n{constructor(e){this.events=e}affectsSome(e){for(const t of this.events)if(t.affectsSome(e))return!0;return!1}allKeysContainedIn(e){return this.events.every((t=>t.allKeysContainedIn(e)))}}class Qn extends c.jG{constructor(e){super(),this._onDidChangeContext=this._register(new Q.fV({merge:e=>new $n(e)})),this.onDidChangeContext=this._onDidChangeContext.event,this._isDisposed=!1,this._myContextId=e}createKey(e,t){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new Kn(this,e,t)}bufferChangeEvents(e){this._onDidChangeContext.pause();try{e()}finally{this._onDidChangeContext.resume()}}createScoped(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new Zn(this,e)}contextMatchesRules(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");const t=this.getContextValuesContainer(this._myContextId);return!e||e.evaluate(t)}getContextKeyValue(e){if(!this._isDisposed)return this.getContextValuesContainer(this._myContextId).getValue(e)}setContext(e,t){if(this._isDisposed)return;const i=this.getContextValuesContainer(this._myContextId);i&&i.setValue(e,t)&&this._onDidChangeContext.fire(new Yn(e))}removeContext(e){this._isDisposed||this.getContextValuesContainer(this._myContextId).removeValue(e)&&this._onDidChangeContext.fire(new Yn(e))}getContext(e){return this._isDisposed?Gn.INSTANCE:this.getContextValuesContainer(function(e){for(;e;){if(e.hasAttribute(Vn)){const t=e.getAttribute(Vn);return t?parseInt(t,10):NaN}e=e.parentElement}return 0}(e))}dispose(){super.dispose(),this._isDisposed=!0}}let Xn=class extends Qn{constructor(e){super(0),this._contexts=new Map,this._lastContextId=0;const t=this._register(new jn(this._myContextId,e,this._onDidChangeContext));this._contexts.set(this._myContextId,t)}getContextValuesContainer(e){return this._isDisposed?Gn.INSTANCE:this._contexts.get(e)||Gn.INSTANCE}createChildContext(e=this._myContextId){if(this._isDisposed)throw new Error("ContextKeyService has been disposed");const t=++this._lastContextId;return this._contexts.set(t,new zn(t,this.getContextValuesContainer(e))),t}disposeContext(e){this._isDisposed||this._contexts.delete(e)}};Xn=Bn([Wn(0,Me.pG)],Xn);class Zn extends Qn{constructor(e,t){if(super(e.createChildContext()),this._parentChangeListener=this._register(new c.HE),this._parent=e,this._updateParentChangeListener(),this._domNode=t,this._domNode.hasAttribute(Vn)){let e="";this._domNode.classList&&(e=Array.from(this._domNode.classList.values()).join(", ")),console.error("Element already has context attribute"+(e?": "+e:""))}this._domNode.setAttribute(Vn,String(this._myContextId))}_updateParentChangeListener(){this._parentChangeListener.value=this._parent.onDidChangeContext((e=>{const t=this._parent.getContextValuesContainer(this._myContextId).value;var i;i=t,e.allKeysContainedIn(new Set(Object.keys(i)))||this._onDidChangeContext.fire(e)}))}dispose(){this._isDisposed||(this._parent.disposeContext(this._myContextId),this._domNode.removeAttribute(Vn),super.dispose())}getContextValuesContainer(e){return this._isDisposed?Gn.INSTANCE:this._parent.getContextValuesContainer(e)}createChildContext(e=this._myContextId){if(this._isDisposed)throw new Error("ScopedContextKeyService has been disposed");return this._parent.createChildContext(e)}disposeContext(e){this._isDisposed||this._parent.disposeContext(e)}}St.w.registerCommand("_setContext",(function(e,t,i){e.get(ie.fN).createKey(String(t),function(e){return(0,p.PI)(e,(e=>"object"===typeof e&&1===e.$mid?h.r.revive(e).toString():e instanceof h.r?e.toString():void 0))}(i))})),St.w.registerCommand({id:"getContextKeyInfo",handler:()=>[...ie.N1.all()].sort(((e,t)=>e.key.localeCompare(t.key))),metadata:{description:(0,b.kg)("getContextKeyInfo","A command that returns information about context keys"),args:[]}}),St.w.registerCommand("_generateContextKeyInfo",(function(){const e=[],t=new Set;for(const i of ie.N1.all())t.has(i.key)||(t.add(i.key),e.push(i));e.sort(((e,t)=>e.key.localeCompare(t.key))),console.log(JSON.stringify(e,void 0,2))}));var Jn=i(84040);class er{constructor(e,t){this.key=e,this.data=t,this.incoming=new Map,this.outgoing=new Map}}class tr{constructor(e){this._hashFn=e,this._nodes=new Map}roots(){const e=[];for(const t of this._nodes.values())0===t.outgoing.size&&e.push(t);return e}insertEdge(e,t){const i=this.lookupOrInsertNode(e),s=this.lookupOrInsertNode(t);i.outgoing.set(s.key,s),s.incoming.set(i.key,i)}removeNode(e){const t=this._hashFn(e);this._nodes.delete(t);for(const i of this._nodes.values())i.outgoing.delete(t),i.incoming.delete(t)}lookupOrInsertNode(e){const t=this._hashFn(e);let i=this._nodes.get(t);return i||(i=new er(t,e),this._nodes.set(t,i)),i}isEmpty(){return 0===this._nodes.size}toString(){const e=[];for(const[t,i]of this._nodes)e.push(`${t}\n\t(-> incoming)[${[...i.incoming.keys()].join(", ")}]\n\t(outgoing ->)[${[...i.outgoing.keys()].join(",")}]\n`);return e.join("\n")}findCycleSlow(){for(const[e,t]of this._nodes){const i=new Set([e]),s=this._findCycle(t,i);if(s)return s}}_findCycle(e,t){for(const[i,s]of e.outgoing){if(t.has(i))return[...t,i].join(" -> ");t.add(i);const e=this._findCycle(s,t);if(e)return e;t.delete(i)}}}var ir=i(58345);class sr extends Error{constructor(e){super("cyclic dependency between services"),this.message=e.findCycleSlow()??`UNABLE to detect cycle, dumping graph: \n${e.toString()}`}}class nr{constructor(e=new ir.a,t=!1,i,s=false){this._services=e,this._strict=t,this._parent=i,this._enableTracing=s,this._isDisposed=!1,this._servicesToMaybeDispose=new Set,this._children=new Set,this._activeInstantiations=new Set,this._services.set(ae._Y,this),this._globalGraph=s?i?._globalGraph??new tr((e=>e)):void 0}dispose(){if(!this._isDisposed){this._isDisposed=!0,(0,c.AS)(this._children),this._children.clear();for(const e of this._servicesToMaybeDispose)(0,c.Xm)(e)&&e.dispose();this._servicesToMaybeDispose.clear()}}_throwIfDisposed(){if(this._isDisposed)throw new Error("InstantiationService has been disposed")}createChild(e,t){this._throwIfDisposed();const i=this,s=new class extends nr{dispose(){i._children.delete(s),super.dispose()}}(e,this._strict,this,this._enableTracing);return this._children.add(s),t?.add(s),s}invokeFunction(e,...t){this._throwIfDisposed();const i=rr.traceInvocation(this._enableTracing,e);let s=!1;try{return e({get:e=>{if(s)throw(0,v.iH)("service accessor is only valid during the invocation of its target method");const t=this._getOrCreateServiceInstance(e,i);if(!t)throw new Error(`[invokeFunction] unknown service '${e}'`);return t}},...t)}finally{s=!0,i.stop()}}createInstance(e,...t){let i,s;return this._throwIfDisposed(),e instanceof Jn.d?(i=rr.traceCreation(this._enableTracing,e.ctor),s=this._createInstance(e.ctor,e.staticArguments.concat(t),i)):(i=rr.traceCreation(this._enableTracing,e),s=this._createInstance(e,t,i)),i.stop(),s}_createInstance(e,t=[],i){const s=ae._$.getServiceDependencies(e).sort(((e,t)=>e.index-t.index)),n=[];for(const o of s){const t=this._getOrCreateServiceInstance(o.id,i);t||this._throwIfStrict(`[createInstance] ${e.name} depends on UNKNOWN service ${o.id}.`,!1),n.push(t)}const r=s.length>0?s[0].index:t.length;if(t.length!==r){console.trace(`[createInstance] First service dependency of ${e.name} at position ${r+1} conflicts with ${t.length} static arguments`);const i=r-t.length;t=i>0?t.concat(new Array(i)):t.slice(0,r)}return Reflect.construct(e,t.concat(n))}_setCreatedServiceInstance(e,t){if(this._services.get(e)instanceof Jn.d)this._services.set(e,t);else{if(!this._parent)throw new Error("illegalState - setting UNKNOWN service instance");this._parent._setCreatedServiceInstance(e,t)}}_getServiceInstanceOrDescriptor(e){const t=this._services.get(e);return!t&&this._parent?this._parent._getServiceInstanceOrDescriptor(e):t}_getOrCreateServiceInstance(e,t){this._globalGraph&&this._globalGraphImplicitDependency&&this._globalGraph.insertEdge(this._globalGraphImplicitDependency,String(e));const i=this._getServiceInstanceOrDescriptor(e);return i instanceof Jn.d?this._safeCreateAndCacheServiceInstance(e,i,t.branch(e,!0)):(t.branch(e,!1),i)}_safeCreateAndCacheServiceInstance(e,t,i){if(this._activeInstantiations.has(e))throw new Error(`illegal state - RECURSIVELY instantiating service '${e}'`);this._activeInstantiations.add(e);try{return this._createAndCacheServiceInstance(e,t,i)}finally{this._activeInstantiations.delete(e)}}_createAndCacheServiceInstance(e,t,i){const s=new tr((e=>e.id.toString()));let n=0;const r=[{id:e,desc:t,_trace:i}],o=new Set;for(;r.length;){const t=r.pop();if(!o.has(String(t.id))){if(o.add(String(t.id)),s.lookupOrInsertNode(t),n++>1e3)throw new sr(s);for(const i of ae._$.getServiceDependencies(t.desc.ctor)){const n=this._getServiceInstanceOrDescriptor(i.id);if(n||this._throwIfStrict(`[createInstance] ${e} depends on ${i.id} which is NOT registered.`,!0),this._globalGraph?.insertEdge(String(t.id),String(i.id)),n instanceof Jn.d){const e={id:i.id,desc:n,_trace:t._trace.branch(i.id,!0)};s.insertEdge(t,e),r.push(e)}}}}for(;;){const e=s.roots();if(0===e.length){if(!s.isEmpty())throw new sr(s);break}for(const{data:t}of e){if(this._getServiceInstanceOrDescriptor(t.id)instanceof Jn.d){const e=this._createServiceInstanceWithOwner(t.id,t.desc.ctor,t.desc.staticArguments,t.desc.supportsDelayedInstantiation,t._trace);this._setCreatedServiceInstance(t.id,e)}s.removeNode(t)}}return this._getServiceInstanceOrDescriptor(e)}_createServiceInstanceWithOwner(e,t,i=[],s,n){if(this._services.get(e)instanceof Jn.d)return this._createServiceInstance(e,t,i,s,n,this._servicesToMaybeDispose);if(this._parent)return this._parent._createServiceInstanceWithOwner(e,t,i,s,n);throw new Error(`illegalState - creating UNKNOWN service instance ${t.name}`)}_createServiceInstance(e,t,i=[],s,n,r){if(s){const s=new nr(void 0,this._strict,this,this._enableTracing);s._globalGraphImplicitDependency=String(e);const o=new Map,a=new m.F6((()=>{const e=s._createInstance(t,i,n);for(const[t,i]of o){const s=e[t];if("function"===typeof s)for(const t of i)t.disposable=s.apply(e,t.listener)}return o.clear(),r.add(e),e}));return new Proxy(Object.create(null),{get(e,t){if(!a.isInitialized&&"string"===typeof t&&(t.startsWith("onDid")||t.startsWith("onWill"))){let e=o.get(t);e||(e=new X.w,o.set(t,e));return(i,s,n)=>{if(a.isInitialized)return a.value[t](i,s,n);{const t={listener:[i,s,n],disposable:void 0},r=e.push(t);return(0,c.s)((()=>{r(),t.disposable?.dispose()}))}}}if(t in e)return e[t];const i=a.value;let s=i[t];return"function"!==typeof s||(s=s.bind(i),e[t]=s),s},set:(e,t,i)=>(a.value[t]=i,!0),getPrototypeOf:e=>t.prototype})}{const e=this._createInstance(t,i,n);return r.add(e),e}}_throwIfStrict(e,t){if(t&&console.warn(e),this._strict)throw new Error(e)}}class rr{static{this.all=new Set}static{this._None=new class extends rr{constructor(){super(0,null)}stop(){}branch(){return this}}}static traceInvocation(e,t){return e?new rr(2,t.name||(new Error).stack.split("\n").slice(3,4).join("\n")):rr._None}static traceCreation(e,t){return e?new rr(1,t.name):rr._None}static{this._totals=0}constructor(e,t){this.type=e,this.name=t,this._start=Date.now(),this._dep=[]}branch(e,t){const i=new rr(3,e.toString());return this._dep.push([e,t,i]),i}stop(){const e=Date.now()-this._start;rr._totals+=e;let t=!1;const i=[`${1===this.type?"CREATE":"CALL"} ${this.name}`,`${function e(i,s){const n=[],r=new Array(i+1).join("\t");for(const[o,a,c]of s._dep)if(a&&c){t=!0,n.push(`${r}CREATES -> ${o}`);const s=e(i+1,c);s&&n.push(s)}else n.push(`${r}uses -> ${o}`);return n.join("\n")}(1,this)}`,`DONE, took ${e.toFixed(2)}ms (grand total ${rr._totals.toFixed(2)}ms)`];(e>2||t)&&rr.all.add(i.join("\n"))}}var or=i(75147);const ar=new Set([C.ny.inMemory,C.ny.vscodeSourceControl,C.ny.walkThrough,C.ny.walkThroughSnippet,C.ny.vscodeChatCodeBlock]);class cr{constructor(){this._byResource=new yt.fT,this._byOwner=new Map}set(e,t,i){let s=this._byResource.get(e);s||(s=new Map,this._byResource.set(e,s)),s.set(t,i);let n=this._byOwner.get(t);n||(n=new yt.fT,this._byOwner.set(t,n)),n.set(e,i)}get(e,t){const i=this._byResource.get(e);return i?.get(t)}delete(e,t){let i=!1,s=!1;const n=this._byResource.get(e);n&&(i=n.delete(t));const r=this._byOwner.get(t);if(r&&(s=r.delete(e)),i!==s)throw new Error("illegal state");return i&&s}values(e){return"string"===typeof e?this._byOwner.get(e)?.values()??Un.f.empty():h.r.isUri(e)?this._byResource.get(e)?.values()??Un.f.empty():Un.f.map(Un.f.concat(...this._byOwner.values()),(e=>e[1]))}}class lr{constructor(e){this.errors=0,this.infos=0,this.warnings=0,this.unknowns=0,this._data=new yt.fT,this._service=e,this._subscription=e.onMarkerChanged(this._update,this)}dispose(){this._subscription.dispose()}_update(e){for(const t of e){const e=this._data.get(t);e&&this._substract(e);const i=this._resourceStats(t);this._add(i),this._data.set(t,i)}}_resourceStats(e){const t={errors:0,warnings:0,infos:0,unknowns:0};if(ar.has(e.scheme))return t;for(const{severity:i}of this._service.read({resource:e}))i===or.cj.Error?t.errors+=1:i===or.cj.Warning?t.warnings+=1:i===or.cj.Info?t.infos+=1:t.unknowns+=1;return t}_substract(e){this.errors-=e.errors,this.warnings-=e.warnings,this.infos-=e.infos,this.unknowns-=e.unknowns}_add(e){this.errors+=e.errors,this.warnings+=e.warnings,this.infos+=e.infos,this.unknowns+=e.unknowns}}class hr{constructor(){this._onMarkerChanged=new Q.uI({delay:0,merge:hr._merge}),this.onMarkerChanged=this._onMarkerChanged.event,this._data=new cr,this._stats=new lr(this)}dispose(){this._stats.dispose(),this._onMarkerChanged.dispose()}remove(e,t){for(const i of t||[])this.changeOne(e,i,[])}changeOne(e,t,i){if((0,E.Ct)(i)){this._data.delete(t,e)&&this._onMarkerChanged.fire([t])}else{const s=[];for(const n of i){const i=hr._toMarker(e,t,n);i&&s.push(i)}this._data.set(t,e,s),this._onMarkerChanged.fire([t])}}static _toMarker(e,t,i){let{code:s,severity:n,message:r,source:o,startLineNumber:a,startColumn:c,endLineNumber:l,endColumn:h,relatedInformation:d,tags:u}=i;if(r)return a=a>0?a:1,c=c>0?c:1,l=l>=a?l:a,h=h>0?h:c,{resource:t,owner:e,code:s,severity:n,message:r,source:o,startLineNumber:a,startColumn:c,endLineNumber:l,endColumn:h,relatedInformation:d,tags:u}}changeAll(e,t){const i=[],s=this._data.values(e);if(s)for(const n of s){const t=Un.f.first(n);t&&(i.push(t.resource),this._data.delete(t.resource,e))}if((0,E.EI)(t)){const s=new yt.fT;for(const{resource:n,marker:r}of t){const t=hr._toMarker(e,n,r);if(!t)continue;const o=s.get(n);o?o.push(t):(s.set(n,[t]),i.push(n))}for(const[t,i]of s)this._data.set(t,e,i)}i.length>0&&this._onMarkerChanged.fire(i)}read(e=Object.create(null)){let{owner:t,resource:i,severities:s,take:n}=e;if((!n||n<0)&&(n=-1),t&&i){const e=this._data.get(i,t);if(e){const t=[];for(const i of e)if(hr._accept(i,s)){const e=t.push(i);if(n>0&&e===n)break}return t}return[]}if(t||i){const e=this._data.values(i??t),r=[];for(const t of e)for(const e of t)if(hr._accept(e,s)){const t=r.push(e);if(n>0&&t===n)return r}return r}{const e=[];for(const t of this._data.values())for(const i of t)if(hr._accept(i,s)){const t=e.push(i);if(n>0&&t===n)return e}return e}}static _accept(e,t){return void 0===t||(t&e.severity)===e.severity}static _merge(e){const t=new yt.fT;for(const i of e)for(const e of i)t.set(e,!0);return Array.from(t.keys())}}var dr=i(9711);class ur extends c.jG{get configurationModel(){return this._configurationModel}constructor(e){super(),this.logService=e,this._configurationModel=Tt.createEmptyModel(this.logService)}reload(){return this.resetConfigurationModel(),this.configurationModel}getConfigurationDefaultOverrides(){return{}}resetConfigurationModel(){this._configurationModel=Tt.createEmptyModel(this.logService);const e=Rt.O.as(wt.Fd.Configuration).getConfigurationProperties();this.updateConfigurationModel(Object.keys(e),e)}updateConfigurationModel(e,t){const i=this.getConfigurationDefaultOverrides();for(const s of e){const e=i[s],n=t[s];void 0!==e?this._configurationModel.setValue(s,e):n?this._configurationModel.setValue(s,n.default):this._configurationModel.removeValue(s)}}}var gr=i(87213);class pr extends c.jG{constructor(e,t=[]){super(),this.logger=new I.Dk([e,...t]),this._register(e.onDidChangeLogLevel((e=>this.setLevel(e))))}get onDidChangeLogLevel(){return this.logger.onDidChangeLogLevel}setLevel(e){this.logger.setLevel(e)}getLevel(){return this.logger.getLevel()}trace(e,...t){this.logger.trace(e,...t)}debug(e,...t){this.logger.debug(e,...t)}info(e,...t){this.logger.info(e,...t)}warn(e,...t){this.logger.warn(e,...t)}error(e,...t){this.logger.error(e,...t)}}var mr=i(72466),fr=i(97035),_r=i(44432);var vr=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Cr=function(e,t){return function(i,s){t(i,s,e)}};class Er{constructor(e){this.disposed=!1,this.model=e,this._onWillDispose=new Q.vl}get textEditorModel(){return this.model}dispose(){this.disposed=!0,this._onWillDispose.fire()}}let br=class{constructor(e){this.modelService=e}createModelReference(e){const t=this.modelService.getModel(e);return t?Promise.resolve(new c.BO(new Er(t))):Promise.reject(new Error("Model not found"))}};br=vr([Cr(0,A.IModelService)],br);class Sr{static{this.NULL_PROGRESS_RUNNER={done:()=>{},total:()=>{},worked:()=>{}}}show(){return Sr.NULL_PROGRESS_RUNNER}async showWhile(e,t){await e}}class yr{static{this.NO_OP=new me.Kz}info(e){return this.notify({severity:ge.A.Info,message:e})}warn(e){return this.notify({severity:ge.A.Warning,message:e})}error(e){return this.notify({severity:ge.A.Error,message:e})}notify(e){switch(e.severity){case ge.A.Error:console.error(e.message);break;case ge.A.Warning:console.warn(e.message);break;default:console.log(e.message)}return yr.NO_OP}prompt(e,t,i,s){return yr.NO_OP}status(e,t){return c.jG.None}}let wr=class{constructor(e){this._onWillExecuteCommand=new Q.vl,this._onDidExecuteCommand=new Q.vl,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this._instantiationService=e}executeCommand(e,...t){const i=St.w.getCommand(e);if(!i)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});const s=this._instantiationService.invokeFunction.apply(this._instantiationService,[i.handler,...t]);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(s)}catch(s){return Promise.reject(s)}}};wr=vr([Cr(0,ae._Y)],wr);let Rr=class extends Ht{constructor(e,t,i,s,n,r){super(e,t,i,s,n),this._cachedResolver=null,this._dynamicKeybindings=[],this._domNodeListeners=[];const o=e=>{const t=new c.Cm;t.add(U.ko(e,U.Bx.KEY_DOWN,(e=>{const t=new Xe.Z(e);this._dispatch(t,t.target)&&(t.preventDefault(),t.stopPropagation())}))),t.add(U.ko(e,U.Bx.KEY_UP,(e=>{const t=new Xe.Z(e);this._singleModifierDispatch(t,t.target)&&t.preventDefault()}))),this._domNodeListeners.push(new Lr(e,t))},a=e=>{for(let t=0;t<this._domNodeListeners.length;t++){const i=this._domNodeListeners[t];i.domNode===e&&(this._domNodeListeners.splice(t,1),i.dispose())}},l=e=>{e.getOption(61)||o(e.getContainerDomNode())};this._register(r.onCodeEditorAdd(l)),this._register(r.onCodeEditorRemove((e=>{e.getOption(61)||a(e.getContainerDomNode())}))),r.listCodeEditors().forEach(l);const h=e=>{o(e.getContainerDomNode())};this._register(r.onDiffEditorAdd(h)),this._register(r.onDiffEditorRemove((e=>{a(e.getContainerDomNode())}))),r.listDiffEditors().forEach(h)}addDynamicKeybinding(e,t,i,s){return(0,c.qE)(St.w.registerCommand(e,i),this.addDynamicKeybindings([{keybinding:t,command:e,when:s}]))}addDynamicKeybindings(e){const t=e.map((e=>({keybinding:(0,ft.Zv)(e.keybinding,We.OS),command:e.command??null,commandArgs:e.commandArgs,when:e.when,weight1:1e3,weight2:0,extensionId:null,isBuiltinExtension:!1})));return this._dynamicKeybindings=this._dynamicKeybindings.concat(t),this.updateResolver(),(0,c.s)((()=>{for(let e=0;e<this._dynamicKeybindings.length;e++)if(this._dynamicKeybindings[e]===t[0])return this._dynamicKeybindings.splice(e,t.length),void this.updateResolver()}))}updateResolver(){this._cachedResolver=null,this._onDidUpdateKeybindings.fire()}_getResolver(){if(!this._cachedResolver){const e=this._toNormalizedKeybindingItems(Wt.f.getDefaultKeybindings(),!0),t=this._toNormalizedKeybindingItems(this._dynamicKeybindings,!1);this._cachedResolver=new Mt(e,t,(e=>this._log(e)))}return this._cachedResolver}_documentHasFocus(){return a.G.document.hasFocus()}_toNormalizedKeybindingItems(e,t){const i=[];let s=0;for(const n of e){const e=n.when||void 0,r=n.keybinding;if(r){const o=Yt.resolveKeybinding(r,We.OS);for(const r of o)i[s++]=new Vt(r,n.command,n.commandArgs,e,t,null,!1)}else i[s++]=new Vt(void 0,n.command,n.commandArgs,e,t,null,!1)}return i}resolveKeyboardEvent(e){const t=new ft.dG(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,e.keyCode);return new Yt([t],We.OS)}};Rr=vr([Cr(0,ie.fN),Cr(1,St.d),Cr(2,Qt.k),Cr(3,me.Ot),Cr(4,I.rr),Cr(5,g.T)],Rr);class Lr extends c.jG{constructor(e,t){super(),this.domNode=e,this._register(t)}}function Tr(e){return e&&"object"===typeof e&&(!e.overrideIdentifier||"string"===typeof e.overrideIdentifier)&&(!e.resource||e.resource instanceof h.r)}let xr=class{constructor(e){this.logService=e,this._onDidChangeConfiguration=new Q.vl,this.onDidChangeConfiguration=this._onDidChangeConfiguration.event;const t=new ur(e);this._configuration=new At(t.reload(),Tt.createEmptyModel(e),Tt.createEmptyModel(e),Tt.createEmptyModel(e),Tt.createEmptyModel(e),Tt.createEmptyModel(e),new yt.fT,Tt.createEmptyModel(e),new yt.fT,e),t.dispose()}getValue(e,t){const i="string"===typeof e?e:void 0,s=Tr(e)?e:Tr(t)?t:{};return this._configuration.getValue(i,s,void 0)}updateValues(e){const t={data:this._configuration.toData()},i=[];for(const s of e){const[e,t]=s;this.getValue(e)!==t&&(this._configuration.updateValue(e,t),i.push(e))}if(i.length>0){const e=new Nt({keys:i,overrides:[]},t,this._configuration,void 0,this.logService);e.source=8,this._onDidChangeConfiguration.fire(e)}return Promise.resolve()}updateValue(e,t,i,s){return this.updateValues([[e,t]])}inspect(e,t={}){return this._configuration.inspect(e,t,void 0)}};xr=vr([Cr(0,I.rr)],xr);let kr=class{constructor(e,t,i){this.configurationService=e,this.modelService=t,this.languageService=i,this._onDidChangeConfiguration=new Q.vl,this.configurationService.onDidChangeConfiguration((e=>{this._onDidChangeConfiguration.fire({affectedKeys:e.affectedKeys,affectsConfiguration:(t,i)=>e.affectsConfiguration(i)})}))}getValue(e,t,i){const s=Et.y.isIPosition(t)?t:null,n=s?"string"===typeof i?i:void 0:"string"===typeof t?t:void 0,r=e?this.getLanguage(e,s):void 0;return"undefined"===typeof n?this.configurationService.getValue({resource:e,overrideIdentifier:r}):this.configurationService.getValue(n,{resource:e,overrideIdentifier:r})}getLanguage(e,t){const i=this.modelService.getModel(e);return i?t?i.getLanguageIdAtPosition(t.lineNumber,t.column):i.getLanguageId():this.languageService.guessLanguageIdByFilepathOrFirstLine(e)}};kr=vr([Cr(0,Me.pG),Cr(1,A.IModelService),Cr(2,Ui.L)],kr);let Ar=class{constructor(e){this.configurationService=e}getEOL(e,t){const i=this.configurationService.getValue("files.eol",{overrideIdentifier:t,resource:e});return i&&"string"===typeof i&&"auto"!==i?i:We.j9||We.zx?"\n":"\r\n"}};Ar=vr([Cr(0,Me.pG)],Ar);class Nr{static{this.SCHEME="inmemory"}constructor(){const e=h.r.from({scheme:Nr.SCHEME,authority:"model",path:"/"});this.workspace={id:Xt.cn,folders:[new Xt.mX({uri:e,name:"",index:0})]}}getWorkspace(){return this.workspace}getWorkspaceFolder(e){return e&&e.scheme===Nr.SCHEME?this.workspace.folders[0]:null}}function Ir(e,t,i){if(!t)return;if(!(e instanceof xr))return;const s=[];Object.keys(t).forEach((e=>{(0,vt.vf)(e)&&s.push([`editor.${e}`,t[e]]),i&&(0,vt.Gn)(e)&&s.push([`diffEditor.${e}`,t[e]])})),s.length>0&&e.updateValues(s)}let Or=class{constructor(e){this._modelService=e}hasPreviewHandler(){return!1}async apply(e,t){const i=Array.isArray(e)?e:_t.jN.convert(e),s=new Map;for(const o of i){if(!(o instanceof _t.cw))throw new Error("bad edit - only text edits are supported");const e=this._modelService.getModel(o.resource);if(!e)throw new Error("bad edit - model not found");if("number"===typeof o.versionId&&e.getVersionId()!==o.versionId)throw new Error("bad state - model changed in the meantime");let t=s.get(e);t||(t=[],s.set(e,t)),t.push(Ct.k.replaceMove(T.Q.lift(o.textEdit.range),o.textEdit.text))}let n=0,r=0;for(const[o,a]of s)o.pushStackElement(),o.pushEditOperations([],a,(()=>[])),o.pushStackElement(),r+=1,n+=a.length;return{ariaSummary:l.GP(Zt.tu.bulkEditServiceSummary,n,r),isApplied:n>0}}};Or=vr([Cr(0,A.IModelService)],Or);let Dr=class extends ot{constructor(e,t){super(e),this._codeEditorService=t}showContextView(e,t,i){if(!t){const e=this._codeEditorService.getFocusedCodeEditor()||this._codeEditorService.getActiveCodeEditor();e&&(t=e.getContainerDomNode())}return super.showContextView(e,t,i)}};Dr=vr([Cr(0,ce),Cr(1,g.T)],Dr);class Mr extends ti.LanguageService{constructor(){super()}}let Pr=class extends xi{constructor(e,t,i,s,n,r){super(e,t,i,s,n,r),this.configure({blockMouse:!1})}};Pr=vr([Cr(0,Qt.k),Cr(1,me.Ot),Cr(2,Oe.l),Cr(3,De.b),Cr(4,ni.ez),Cr(5,ie.fN)],Pr);const Fr={amdModuleId:"vs/editor/common/services/editorSimpleWorker",esmModuleLocation:void 0,label:"editorWorkerService"};let Ur=class extends j{constructor(e,t,i,s,n){super(Fr,e,t,i,s,n)}};Ur=vr([Cr(0,A.IModelService),Cr(1,N.ITextResourceConfigurationService),Cr(2,I.rr),Cr(3,x.JZ),Cr(4,D.ILanguageFeaturesService)],Ur);var Hr;(0,se.v)(I.rr,class extends pr{constructor(){super(new I.Cr)}},0),(0,se.v)(Me.pG,xr,0),(0,se.v)(N.ITextResourceConfigurationService,kr,0),(0,se.v)(N.ITextResourcePropertiesService,Ar,0),(0,se.v)(Xt.VR,Nr,0),(0,se.v)(qt.L,class{getUriLabel(e,t){return"file"===e.scheme?e.fsPath:e.path}getUriBasenameLabel(e){return(0,Jt.P8)(e)}},0),(0,se.v)(Qt.k,class{publicLog2(){}},0),(0,se.v)(pe.X,class{async confirm(e){return{confirmed:this.doConfirm(e.message,e.detail),checkboxChecked:!1}}doConfirm(e,t){let i=e;return t&&(i=i+"\n\n"+t),a.G.confirm(i)}async prompt(e){let t;if(this.doConfirm(e.message,e.detail)){const i=[...e.buttons??[]];e.cancelButton&&"string"!==typeof e.cancelButton&&"boolean"!==typeof e.cancelButton&&i.push(e.cancelButton),t=await(i[0]?.run({checkboxChecked:!1}))}return{result:t}}async error(e,t){await this.prompt({type:ge.A.Error,message:e,detail:t})}},0),(0,se.v)(fr.k,class{constructor(){this.isExtensionDevelopment=!1,this.isBuilt=!1}},0),(0,se.v)(me.Ot,yr,0),(0,se.v)(or.DR,hr,0),(0,se.v)(Ui.L,Mr,0),(0,se.v)(Ln.L,Rn.Sx,0),(0,se.v)(A.IModelService,Wi.ModelService,0),(0,se.v)(Bi.IMarkerDecorationsService,Hi.MarkerDecorationsService,0),(0,se.v)(ie.fN,Xn,0),(0,se.v)($t.G5,class{withProgress(e,t,i){return t({report:()=>{}})}},0),(0,se.v)($t.N8,Sr,0),(0,se.v)(dr.CS,dr.pc,0),(0,se.v)(Fi.IEditorWorkerService,Ur,0),(0,se.v)(_t.nu,Or,0),(0,se.v)(ei.L,class{constructor(){this._neverEmitter=new Q.vl,this.onDidChangeTrust=this._neverEmitter.event}isWorkspaceTrusted(){return!0}},0),(0,se.v)(bt.ITextModelService,br,0),(0,se.v)(Ve.j,kn,0),(0,se.v)(Ns.PE,Ns.aG,0),(0,se.v)(St.d,wr,0),(0,se.v)(De.b,Rr,0),(0,se.v)(zi.GK,Sn,0),(0,se.v)(Oe.l,Dr,0),(0,se.v)(Ue.C,Pi,0),(0,se.v)(Fn.h,Pn,0),(0,se.v)(Oe.Z,Pr,0),(0,se.v)(ni.ez,Nn.$,0),(0,se.v)(gr.Nt,class{async playSignal(e,t){}},0),(0,se.v)(_r.ITreeSitterParserService,class{getParseResult(e){}},0),function(e){const t=new ir.a;for(const[o,a]of(0,se.N)())t.set(o,a);const i=new nr(t,!0);t.set(ae._Y,i),e.get=function(e){s||r({});const n=t.get(e);if(!n)throw new Error("Missing service "+e);return n instanceof Jn.d?i.invokeFunction((t=>t.get(e))):n};let s=!1;const n=new Q.vl;function r(e){if(s)return i;s=!0;for(const[i,s]of(0,se.N)())t.get(i)||t.set(i,s);for(const i in e)if(e.hasOwnProperty(i)){const s=(0,ae.u1)(i);t.get(s)instanceof Jn.d&&t.set(s,e[i])}const r=(0,mr.T)();for(const t of r)try{i.createInstance(t)}catch(o){(0,v.dz)(o)}return n.fire(),i}e.initialize=r,e.withServices=function(e){if(s)return e();const t=new c.Cm,i=t.add(n.event((()=>{i.dispose(),t.add(e())})));return t}}(Hr||(Hr={}));class Br extends ${constructor(e,t){super({amdModuleId:Fr.amdModuleId,esmModuleLocation:Fr.esmModuleLocation,label:t.label},t.keepIdleModels||!1,e),this._foreignModuleId=t.moduleId,this._foreignModuleCreateData=t.createData||null,this._foreignModuleHost=t.host||null,this._foreignProxy=null}fhr(e,t){if(!this._foreignModuleHost||"function"!==typeof this._foreignModuleHost[e])return Promise.reject(new Error("Missing method "+e+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[e].apply(this._foreignModuleHost,t))}catch(i){return Promise.reject(i)}}_getForeignProxy(){return this._foreignProxy||(this._foreignProxy=this._getProxy().then((e=>{const t=this._foreignModuleHost?(0,p.V0)(this._foreignModuleHost):[];return e.$loadForeignModule(this._foreignModuleId,this._foreignModuleCreateData,t).then((t=>{this._foreignModuleCreateData=null;const i=(t,i)=>e.$fmr(t,i),s=(e,t)=>function(){const i=Array.prototype.slice.call(arguments,0);return t(e,i)},n={};for(const e of t)n[e]=s(e,i);return n}))}))),this._foreignProxy}getProxy(){return this._getForeignProxy()}withSyncedResources(e){return this.workerWithSyncedResources(e).then((e=>this.getProxy()))}}var Wr=i(79027),Vr=i(74196),zr=i(23452),Gr=i(62083),jr=i(83941),Kr=i(20788),Yr=i(16223),qr=i(35015),$r=i(87469),Qr=i(35600),Xr=i(92896);function Zr(e){return!function(e){return Array.isArray(e)}(e)}function Jr(e){return"string"===typeof e}function eo(e){return!Jr(e)}function to(e){return!e}function io(e,t){return e.ignoreCase&&t?t.toLowerCase():t}function so(e){return e.replace(/[&<>'"_]/g,"-")}function no(e,t){return new Error(`${e.languageId}: ${t}`)}function ro(e,t,i,s,n){let r=null;return t.replace(/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,(function(t,o,a,c,l,h,d,u,g){return to(a)?to(c)?!to(l)&&l<s.length?io(e,s[l]):!to(d)&&e&&"string"===typeof e[d]?e[d]:(null===r&&(r=n.split("."),r.unshift(n)),!to(h)&&h<r.length?io(e,r[h]):""):io(e,i):"$"}))}function oo(e,t){let i=t;for(;i&&i.length>0;){const t=e.tokenizer[i];if(t)return t;const s=i.lastIndexOf(".");i=s<0?null:i.substr(0,s)}return null}var ao,co=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},lo=function(e,t){return function(i,s){t(i,s,e)}};class ho{static{this._INSTANCE=new ho(5)}static create(e,t){return this._INSTANCE.create(e,t)}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}create(e,t){if(null!==e&&e.depth>=this._maxCacheDepth)return new uo(e,t);let i=uo.getStackElementId(e);i.length>0&&(i+="|"),i+=t;let s=this._entries[i];return s||(s=new uo(e,t),this._entries[i]=s,s)}}class uo{constructor(e,t){this.parent=e,this.state=t,this.depth=(this.parent?this.parent.depth:0)+1}static getStackElementId(e){let t="";for(;null!==e;)t.length>0&&(t+="|"),t+=e.state,e=e.parent;return t}static _equals(e,t){for(;null!==e&&null!==t;){if(e===t)return!0;if(e.state!==t.state)return!1;e=e.parent,t=t.parent}return null===e&&null===t}equals(e){return uo._equals(this,e)}push(e){return ho.create(this,e)}pop(){return this.parent}popall(){let e=this;for(;e.parent;)e=e.parent;return e}switchTo(e){return ho.create(this.parent,e)}}class go{constructor(e,t){this.languageId=e,this.state=t}equals(e){return this.languageId===e.languageId&&this.state.equals(e.state)}clone(){return this.state.clone()===this.state?this:new go(this.languageId,this.state)}}class po{static{this._INSTANCE=new po(5)}static create(e,t){return this._INSTANCE.create(e,t)}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}create(e,t){if(null!==t)return new mo(e,t);if(null!==e&&e.depth>=this._maxCacheDepth)return new mo(e,t);const i=uo.getStackElementId(e);let s=this._entries[i];return s||(s=new mo(e,null),this._entries[i]=s,s)}}class mo{constructor(e,t){this.stack=e,this.embeddedLanguageData=t}clone(){return(this.embeddedLanguageData?this.embeddedLanguageData.clone():null)===this.embeddedLanguageData?this:po.create(this.stack,this.embeddedLanguageData)}equals(e){return e instanceof mo&&(!!this.stack.equals(e.stack)&&(null===this.embeddedLanguageData&&null===e.embeddedLanguageData||null!==this.embeddedLanguageData&&null!==e.embeddedLanguageData&&this.embeddedLanguageData.equals(e.embeddedLanguageData)))}}class fo{constructor(){this._tokens=[],this._languageId=null,this._lastTokenType=null,this._lastTokenLanguage=null}enterLanguage(e){this._languageId=e}emit(e,t){this._lastTokenType===t&&this._lastTokenLanguage===this._languageId||(this._lastTokenType=t,this._lastTokenLanguage=this._languageId,this._tokens.push(new Gr.ou(e,t,this._languageId)))}nestedLanguageTokenize(e,t,i,s){const n=i.languageId,r=i.state,o=Gr.dG.get(n);if(!o)return this.enterLanguage(n),this.emit(s,""),r;const a=o.tokenize(e,t,r);if(0!==s)for(const c of a.tokens)this._tokens.push(new Gr.ou(c.offset+s,c.type,c.language));else this._tokens=this._tokens.concat(a.tokens);return this._lastTokenType=null,this._lastTokenLanguage=null,this._languageId=null,a.endState}finalize(e){return new Gr.$M(this._tokens,e)}}class _o{constructor(e,t){this._languageService=e,this._theme=t,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}enterLanguage(e){this._currentLanguageId=this._languageService.languageIdCodec.encodeLanguageId(e)}emit(e,t){const i=1024|this._theme.match(this._currentLanguageId,t);this._lastTokenMetadata!==i&&(this._lastTokenMetadata=i,this._tokens.push(e),this._tokens.push(i))}static _merge(e,t,i){const s=null!==e?e.length:0,n=t.length,r=null!==i?i.length:0;if(0===s&&0===n&&0===r)return new Uint32Array(0);if(0===s&&0===n)return i;if(0===n&&0===r)return e;const o=new Uint32Array(s+n+r);null!==e&&o.set(e);for(let a=0;a<n;a++)o[s+a]=t[a];return null!==i&&o.set(i,s+n),o}nestedLanguageTokenize(e,t,i,s){const n=i.languageId,r=i.state,o=Gr.dG.get(n);if(!o)return this.enterLanguage(n),this.emit(s,""),r;const a=o.tokenizeEncoded(e,t,r);if(0!==s)for(let c=0,l=a.tokens.length;c<l;c+=2)a.tokens[c]+=s;return this._prependTokens=_o._merge(this._prependTokens,this._tokens,a.tokens),this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0,a.endState}finalize(e){return new Gr.rY(_o._merge(this._prependTokens,this._tokens,null),e)}}let vo=ao=class extends c.jG{constructor(e,t,i,s,n){super(),this._configurationService=n,this._languageService=e,this._standaloneThemeService=t,this._languageId=i,this._lexer=s,this._embeddedLanguages=Object.create(null),this.embeddedLoaded=Promise.resolve(void 0);let r=!1;this._register(Gr.dG.onDidChange((e=>{if(r)return;let t=!1;for(let i=0,s=e.changedLanguages.length;i<s;i++){const s=e.changedLanguages[i];if(this._embeddedLanguages[s]){t=!0;break}}t&&(r=!0,Gr.dG.handleChange([this._languageId]),r=!1)}))),this._maxTokenizationLineLength=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:this._languageId}),this._register(this._configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration("editor.maxTokenizationLineLength")&&(this._maxTokenizationLineLength=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:this._languageId}))})))}getLoadStatus(){const e=[];for(const t in this._embeddedLanguages){const i=Gr.dG.get(t);if(i){if(i instanceof ao){const t=i.getLoadStatus();!1===t.loaded&&e.push(t.promise)}}else Gr.dG.isResolved(t)||e.push(Gr.dG.getOrCreate(t))}return 0===e.length?{loaded:!0}:{loaded:!1,promise:Promise.all(e).then((e=>{}))}}getInitialState(){const e=ho.create(null,this._lexer.start);return po.create(e,null)}tokenize(e,t,i){if(e.length>=this._maxTokenizationLineLength)return(0,Kr.$H)(this._languageId,i);const s=new fo,n=this._tokenize(e,t,i,s);return s.finalize(n)}tokenizeEncoded(e,t,i){if(e.length>=this._maxTokenizationLineLength)return(0,Kr.Lh)(this._languageService.languageIdCodec.encodeLanguageId(this._languageId),i);const s=new _o(this._languageService,this._standaloneThemeService.getColorTheme().tokenTheme),n=this._tokenize(e,t,i,s);return s.finalize(n)}_tokenize(e,t,i,s){return i.embeddedLanguageData?this._nestedTokenize(e,t,i,0,s):this._myTokenize(e,t,i,0,s)}_findLeavingNestedLanguageOffset(e,t){let i=this._lexer.tokenizer[t.stack.state];if(!i&&(i=oo(this._lexer,t.stack.state),!i))throw no(this._lexer,"tokenizer state is not defined: "+t.stack.state);let s=-1,n=!1;for(const r of i){if(!eo(r.action)||"@pop"!==r.action.nextEmbedded)continue;n=!0;let i=r.resolveRegex(t.stack.state);const o=i.source;if("^(?:"===o.substr(0,4)&&")"===o.substr(o.length-1,1)){const e=(i.ignoreCase?"i":"")+(i.unicode?"u":"");i=new RegExp(o.substr(4,o.length-5),e)}const a=e.search(i);-1===a||0!==a&&r.matchOnlyAtLineStart||(-1===s||a<s)&&(s=a)}if(!n)throw no(this._lexer,'no rule containing nextEmbedded: "@pop" in tokenizer embedded state: '+t.stack.state);return s}_nestedTokenize(e,t,i,s,n){const r=this._findLeavingNestedLanguageOffset(e,i);if(-1===r){const r=n.nestedLanguageTokenize(e,t,i.embeddedLanguageData,s);return po.create(i.stack,new go(i.embeddedLanguageData.languageId,r))}const o=e.substring(0,r);o.length>0&&n.nestedLanguageTokenize(o,!1,i.embeddedLanguageData,s);const a=e.substring(r);return this._myTokenize(a,t,i,s+r,n)}_safeRuleName(e){return e?e.name:"(unknown)"}_myTokenize(e,t,i,s,n){n.enterLanguage(this._languageId);const r=e.length,o=t&&this._lexer.includeLF?e+"\n":e,a=o.length;let c=i.embeddedLanguageData,l=i.stack,h=0,d=null,u=!0;for(;u||h<a;){const i=h,m=l.depth,f=d?d.groups.length:0,_=l.state;let v=null,C=null,E=null,b=null,S=null;if(d){v=d.matches;const e=d.groups.shift();C=e.matched,E=e.action,b=d.rule,0===d.groups.length&&(d=null)}else{if(!u&&h>=a)break;u=!1;let e=this._lexer.tokenizer[_];if(!e&&(e=oo(this._lexer,_),!e))throw no(this._lexer,"tokenizer state is not defined: "+_);const t=o.substr(h);for(const i of e)if((0===h||!i.matchOnlyAtLineStart)&&(v=t.match(i.resolveRegex(_)),v)){C=v[0],E=i.action;break}}if(v||(v=[""],C=""),E||(h<a&&(v=[o.charAt(h)],C=v[0]),E=this._lexer.defaultToken),null===C)break;for(h+=C.length;Zr(E)&&eo(E)&&E.test;)E=E.test(C,v,_,h===a);let y=null;if("string"===typeof E||Array.isArray(E))y=E;else if(E.group)y=E.group;else if(null!==E.token&&void 0!==E.token){if(y=E.tokenSubst?ro(this._lexer,E.token,C,v,_):E.token,E.nextEmbedded)if("@pop"===E.nextEmbedded){if(!c)throw no(this._lexer,"cannot pop embedded language if not inside one");c=null}else{if(c)throw no(this._lexer,"cannot enter embedded language from within an embedded language");S=ro(this._lexer,E.nextEmbedded,C,v,_)}if(E.goBack&&(h=Math.max(0,h-E.goBack)),E.switchTo&&"string"===typeof E.switchTo){let e=ro(this._lexer,E.switchTo,C,v,_);if("@"===e[0]&&(e=e.substr(1)),!oo(this._lexer,e))throw no(this._lexer,"trying to switch to a state '"+e+"' that is undefined in rule: "+this._safeRuleName(b));l=l.switchTo(e)}else{if(E.transform&&"function"===typeof E.transform)throw no(this._lexer,"action.transform not supported");if(E.next)if("@push"===E.next){if(l.depth>=this._lexer.maxStack)throw no(this._lexer,"maximum tokenizer stack size reached: ["+l.state+","+l.parent.state+",...]");l=l.push(_)}else if("@pop"===E.next){if(l.depth<=1)throw no(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(b));l=l.pop()}else if("@popall"===E.next)l=l.popall();else{let e=ro(this._lexer,E.next,C,v,_);if("@"===e[0]&&(e=e.substr(1)),!oo(this._lexer,e))throw no(this._lexer,"trying to set a next state '"+e+"' that is undefined in rule: "+this._safeRuleName(b));l=l.push(e)}}E.log&&"string"===typeof E.log&&(g=this._lexer,p=this._lexer.languageId+": "+ro(this._lexer,E.log,C,v,_),console.log(`${g.languageId}: ${p}`))}if(null===y)throw no(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(b));const w=i=>{const r=this._languageService.getLanguageIdByLanguageName(i)||this._languageService.getLanguageIdByMimeType(i)||i,o=this._getNestedEmbeddedLanguageData(r);if(h<a){const i=e.substr(h);return this._nestedTokenize(i,t,po.create(l,o),s+h,n)}return po.create(l,o)};if(Array.isArray(y)){if(d&&d.groups.length>0)throw no(this._lexer,"groups cannot be nested: "+this._safeRuleName(b));if(v.length!==y.length+1)throw no(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(b));let e=0;for(let t=1;t<v.length;t++)e+=v[t].length;if(e!==C.length)throw no(this._lexer,"with groups, all characters should be matched in consecutive groups in rule: "+this._safeRuleName(b));d={rule:b,matches:v,groups:[]};for(let t=0;t<y.length;t++)d.groups[t]={action:y[t],matched:v[t+1]};h-=C.length}else{{if("@rematch"===y&&(h-=C.length,C="",v=null,y="",null!==S))return w(S);if(0===C.length){if(0===a||m!==l.depth||_!==l.state||(d?d.groups.length:0)!==f)continue;throw no(this._lexer,"no progress in tokenizer in rule: "+this._safeRuleName(b))}let e=null;if(Jr(y)&&0===y.indexOf("@brackets")){const t=y.substr(9),i=Co(this._lexer,C);if(!i)throw no(this._lexer,"@brackets token returned but no bracket defined as: "+C);e=so(i.token+t)}else{e=so(""===y?"":y+this._lexer.tokenPostfix)}i<r&&n.emit(i+s,e)}if(null!==S)return w(S)}}var g,p;return po.create(l,c)}_getNestedEmbeddedLanguageData(e){if(!this._languageService.isRegisteredLanguageId(e))return new go(e,Kr.r3);e!==this._languageId&&(this._languageService.requestBasicLanguageFeatures(e),Gr.dG.getOrCreate(e),this._embeddedLanguages[e]=!0);const t=Gr.dG.get(e);return new go(e,t?t.getInitialState():Kr.r3)}};function Co(e,t){if(!t)return null;t=io(e,t);const i=e.brackets;for(const s of i){if(s.open===t)return{token:s.token,bracketType:1};if(s.close===t)return{token:s.token,bracketType:-1}}return null}vo=ao=co([lo(4,Me.pG)],vo);const Eo=(0,_.H)("standaloneColorizer",{createHTML:e=>e});class bo{static colorizeElement(e,t,i,s){const n=(s=s||{}).theme||"vs",r=s.mimeType||i.getAttribute("lang")||i.getAttribute("data-lang");if(!r)return console.error("Mode not detected"),Promise.resolve();const o=t.getLanguageIdByMimeType(r)||r;e.setTheme(n);const a=i.firstChild?i.firstChild.nodeValue:"";i.className+=" "+n;return this.colorize(t,a||"",o,s).then((e=>{const t=Eo?.createHTML(e)??e;i.innerHTML=t}),(e=>console.error(e)))}static async colorize(e,t,i,s){const n=e.languageIdCodec;let r=4;s&&"number"===typeof s.tabSize&&(r=s.tabSize),l.LU(t)&&(t=t.substr(1));const o=l.uz(t);if(!e.isRegisteredLanguageId(i))return So(o,r,n);const a=await Gr.dG.getOrCreate(i);return a?function(e,t,i,s){return new Promise(((n,r)=>{const o=()=>{const a=function(e,t,i,s){let n=[],r=i.getInitialState();for(let o=0,a=e.length;o<a;o++){const a=e[o],c=i.tokenizeEncoded(a,!0,r);$r.f.convertToEndOffset(c.tokens,a.length);const l=new $r.f(c.tokens,a,s),h=Xr.qL.isBasicASCII(a,!0),d=Xr.qL.containsRTL(a,h,!0),u=(0,Qr.Md)(new Qr.zL(!1,!0,a,!1,h,d,0,l.inflate(),[],t,0,0,0,0,-1,"none",!1,!1,null));n=n.concat(u.html),n.push("<br/>"),r=c.endState}return n.join("")}(e,t,i,s);if(i instanceof vo){const e=i.getLoadStatus();if(!1===e.loaded)return void e.promise.then(o,r)}n(a)};o()}))}(o,r,a,n):So(o,r,n)}static colorizeLine(e,t,i,s,n=4){const r=Xr.qL.isBasicASCII(e,t),o=Xr.qL.containsRTL(e,r,i);return(0,Qr.Md)(new Qr.zL(!1,!0,e,!1,r,o,0,s,[],n,0,0,0,0,-1,"none",!1,!1,null)).html}static colorizeModelLine(e,t,i=4){const s=e.getLineContent(t);e.tokenization.forceTokenization(t);const n=e.tokenization.getLineTokens(t).inflate();return this.colorizeLine(s,e.mightContainNonBasicASCII(),e.mightContainRTL(),n,i)}}function So(e,t,i){let s=[];const n=new Uint32Array(2);n[0]=0,n[1]=33587200;for(let r=0,o=e.length;r<o;r++){const o=e[r];n[0]=o.length;const a=new $r.f(n,o,i),c=Xr.qL.isBasicASCII(o,!0),l=Xr.qL.containsRTL(o,c,!0),h=(0,Qr.Md)(new Qr.zL(!1,!0,o,!1,c,l,0,a,[],t,0,0,0,0,-1,"none",!1,!1,null));s=s.concat(h.html),s.push("<br/>")}return s.join("")}var yo=i(29611),wo=i(4360),Ro=i(42904),Lo=i(48196),To=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},xo=function(e,t){return function(i,s){t(i,s,e)}};let ko=0,Ao=!1;let No=class extends n.x{constructor(e,t,i,s,n,r,o,c,l,h,d,u,g){const p={...t};p.ariaLabel=p.ariaLabel||Zt.vp.editorViewAccessibleLabel,super(e,p,{},i,s,n,r,l,h,d,u,g),this._standaloneKeybindingService=c instanceof Rr?c:null,function(e){if(!e){if(Ao)return;Ao=!0}ze.vr(e||a.G.document.body)}(p.ariaContainerElement),(0,Ro.MW)(((e,t)=>i.createInstance(Ie.fO,e,t,{}))),(0,Lo.e)(o)}addCommand(e,t,i){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;const s="DYNAMIC_"+ ++ko,n=ie.M$.deserialize(i);return this._standaloneKeybindingService.addDynamicKeybinding(s,e,t,n),s}createContextKey(e,t){return this._contextKeyService.createKey(e,t)}addAction(e){if("string"!==typeof e.id||"string"!==typeof e.label||"function"!==typeof e.run)throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");if(!this._standaloneKeybindingService)return console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),c.jG.None;const t=e.id,i=e.label,s=ie.M$.and(ie.M$.equals("editorId",this.getId()),ie.M$.deserialize(e.precondition)),n=e.keybindings,r=ie.M$.and(s,ie.M$.deserialize(e.keybindingContext)),o=e.contextMenuGroupId||null,a=e.contextMenuOrder||0,l=(t,...i)=>Promise.resolve(e.run(this,...i)),h=new c.Cm,d=this.getId()+":"+t;if(h.add(St.w.registerCommand(d,l)),o){const e={command:{id:d,title:i},when:s,group:o,order:a};h.add(ni.ZG.appendMenuItem(ni.D8.EditorContext,e))}if(Array.isArray(n))for(const c of n)h.add(this._standaloneKeybindingService.addDynamicKeybinding(d,c,l,r));const u=new yo.f(d,i,i,void 0,s,((...t)=>Promise.resolve(e.run(this,...t))),this._contextKeyService);return this._actions.set(t,u),h.add((0,c.s)((()=>{this._actions.delete(t)}))),h}_triggerCommand(e,t){if(this._codeEditorService instanceof oe)try{this._codeEditorService.setActiveCodeEditor(this),super._triggerCommand(e,t)}finally{this._codeEditorService.setActiveCodeEditor(null)}else super._triggerCommand(e,t)}};No=To([xo(2,ae._Y),xo(3,g.T),xo(4,St.d),xo(5,ie.fN),xo(6,Ie.TN),xo(7,De.b),xo(8,Z.Gy),xo(9,me.Ot),xo(10,Ve.j),xo(11,x.JZ),xo(12,D.ILanguageFeaturesService)],No);let Io=class extends No{constructor(e,t,i,s,n,r,o,a,c,l,h,d,u,g,p,m){const f={...t};Ir(h,f,!1);const _=c.registerEditorContainer(e);"string"===typeof f.theme&&c.setTheme(f.theme),"undefined"!==typeof f.autoDetectHighContrast&&c.setAutoDetectHighContrast(Boolean(f.autoDetectHighContrast));const v=f.model;let C;if(delete f.model,super(e,f,i,s,n,r,o,a,c,l,d,p,m),this._configurationService=h,this._standaloneThemeService=c,this._register(_),"undefined"===typeof v){const e=g.getLanguageIdByMimeType(f.language)||f.language||jr.vH;C=Do(u,g,f.value||"",e,void 0),this._ownsModel=!0}else C=v,this._ownsModel=!1;if(this._attachModel(C),C){const e={oldModelUrl:null,newModelUrl:C.uri};this._onDidChangeModel.fire(e)}}dispose(){super.dispose()}updateOptions(e){Ir(this._configurationService,e,!1),"string"===typeof e.theme&&this._standaloneThemeService.setTheme(e.theme),"undefined"!==typeof e.autoDetectHighContrast&&this._standaloneThemeService.setAutoDetectHighContrast(Boolean(e.autoDetectHighContrast)),super.updateOptions(e)}_postDetachModelCleanup(e){super._postDetachModelCleanup(e),e&&this._ownsModel&&(e.dispose(),this._ownsModel=!1)}};Io=To([xo(2,ae._Y),xo(3,g.T),xo(4,St.d),xo(5,ie.fN),xo(6,Ie.TN),xo(7,De.b),xo(8,Ln.L),xo(9,me.Ot),xo(10,Me.pG),xo(11,Ve.j),xo(12,A.IModelService),xo(13,Ui.L),xo(14,x.JZ),xo(15,D.ILanguageFeaturesService)],Io);let Oo=class extends wo.T{constructor(e,t,i,s,n,r,o,a,c,l,h,d){const u={...t};Ir(a,u,!0);const g=r.registerEditorContainer(e);"string"===typeof u.theme&&r.setTheme(u.theme),"undefined"!==typeof u.autoDetectHighContrast&&r.setAutoDetectHighContrast(Boolean(u.autoDetectHighContrast)),super(e,u,{},s,i,n,d,l),this._configurationService=a,this._standaloneThemeService=r,this._register(g)}dispose(){super.dispose()}updateOptions(e){Ir(this._configurationService,e,!0),"string"===typeof e.theme&&this._standaloneThemeService.setTheme(e.theme),"undefined"!==typeof e.autoDetectHighContrast&&this._standaloneThemeService.setAutoDetectHighContrast(Boolean(e.autoDetectHighContrast)),super.updateOptions(e)}_createInnerEditor(e,t,i){return e.createInstance(No,t,i)}getOriginalEditor(){return super.getOriginalEditor()}getModifiedEditor(){return super.getModifiedEditor()}addCommand(e,t,i){return this.getModifiedEditor().addCommand(e,t,i)}createContextKey(e,t){return this.getModifiedEditor().createContextKey(e,t)}addAction(e){return this.getModifiedEditor().addAction(e)}};function Do(e,t,i,s,n){if(i=i||"",!s){const s=i.indexOf("\n");let r=i;return-1!==s&&(r=i.substring(0,s)),Mo(e,i,t.createByFilepathOrFirstLine(n||null,r),n)}return Mo(e,i,t.createById(s),n)}function Mo(e,t,i,s){return e.createModel(t,i,s)}Oo=To([xo(2,ae._Y),xo(3,ie.fN),xo(4,g.T),xo(5,Ln.L),xo(6,me.Ot),xo(7,Me.pG),xo(8,Oe.Z),xo(9,$t.N8),xo(10,Fn.h),xo(11,gr.Nt)],Oo);var Po=i(41127),Fo=i(46041),Uo=i(49154),Ho=i(49353),Bo=i(92368),Wo=i(74444),Vo=i(75326),zo=i(60002),Go=i(38844),jo=i(65644),Ko=i(25791),Yo=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},qo=function(e,t){return function(i,s){t(i,s,e)}};class $o{constructor(e,t){this.viewModel=e,this.deltaScrollVertical=t}getId(){return this.viewModel}}let Qo=class extends c.jG{constructor(e,t,i,s,n){super(),this._container=e,this._overflowWidgetsDomNode=t,this._workbenchUIElementFactory=i,this._instantiationService=s,this._viewModel=(0,Uo.FY)(this,void 0),this._collapsed=(0,Bs.un)(this,(e=>this._viewModel.read(e)?.collapsed.read(e))),this._editorContentHeight=(0,Uo.FY)(this,500),this.contentHeight=(0,Bs.un)(this,(e=>(this._collapsed.read(e)?0:this._editorContentHeight.read(e))+this._outerEditorHeight)),this._modifiedContentWidth=(0,Uo.FY)(this,0),this._modifiedWidth=(0,Uo.FY)(this,0),this._originalContentWidth=(0,Uo.FY)(this,0),this._originalWidth=(0,Uo.FY)(this,0),this.maxScroll=(0,Bs.un)(this,(e=>{const t=this._modifiedContentWidth.read(e)-this._modifiedWidth.read(e),i=this._originalContentWidth.read(e)-this._originalWidth.read(e);return t>i?{maxScroll:t,width:this._modifiedWidth.read(e)}:{maxScroll:i,width:this._originalWidth.read(e)}})),this._elements=(0,U.h)("div.multiDiffEntry",[(0,U.h)("div.header@header",[(0,U.h)("div.header-content",[(0,U.h)("div.collapse-button@collapseButton"),(0,U.h)("div.file-path",[(0,U.h)("div.title.modified.show-file-icons@primaryPath",[]),(0,U.h)("div.status.deleted@status",["R"]),(0,U.h)("div.title.original.show-file-icons@secondaryPath",[])]),(0,U.h)("div.actions@actions")])]),(0,U.h)("div.editorParent",[(0,U.h)("div.editorContainer@editor")])]),this.editor=this._register(this._instantiationService.createInstance(wo.T,this._elements.editor,{overflowWidgetsDomNode:this._overflowWidgetsDomNode},{})),this.isModifedFocused=(0,Go.Ud)(this.editor.getModifiedEditor()).isFocused,this.isOriginalFocused=(0,Go.Ud)(this.editor.getOriginalEditor()).isFocused,this.isFocused=(0,Bs.un)(this,(e=>this.isModifedFocused.read(e)||this.isOriginalFocused.read(e))),this._resourceLabel=this._workbenchUIElementFactory.createResourceLabel?this._register(this._workbenchUIElementFactory.createResourceLabel(this._elements.primaryPath)):void 0,this._resourceLabel2=this._workbenchUIElementFactory.createResourceLabel?this._register(this._workbenchUIElementFactory.createResourceLabel(this._elements.secondaryPath)):void 0,this._dataStore=this._register(new c.Cm),this._headerHeight=40,this._lastScrollTop=-1,this._isSettingScrollTop=!1;const r=new Es.$(this._elements.collapseButton,{});this._register((0,Bs.fm)((e=>{r.element.className="",r.icon=this._collapsed.read(e)?di.W.chevronRight:di.W.chevronDown}))),this._register(r.onDidClick((()=>{this._viewModel.get()?.collapsed.set(!this._collapsed.get(),void 0)}))),this._register((0,Bs.fm)((e=>{this._elements.editor.style.display=this._collapsed.read(e)?"none":"block"}))),this._register(this.editor.getModifiedEditor().onDidLayoutChange((e=>{const t=this.editor.getModifiedEditor().getLayoutInfo().contentWidth;this._modifiedWidth.set(t,void 0)}))),this._register(this.editor.getOriginalEditor().onDidLayoutChange((e=>{const t=this.editor.getOriginalEditor().getLayoutInfo().contentWidth;this._originalWidth.set(t,void 0)}))),this._register(this.editor.onDidContentSizeChange((e=>{(0,Uo.YY)((t=>{this._editorContentHeight.set(e.contentHeight,t),this._modifiedContentWidth.set(this.editor.getModifiedEditor().getContentWidth(),t),this._originalContentWidth.set(this.editor.getOriginalEditor().getContentWidth(),t)}))}))),this._register(this.editor.getOriginalEditor().onDidScrollChange((e=>{if(this._isSettingScrollTop)return;if(!e.scrollTopChanged||!this._data)return;const t=e.scrollTop-this._lastScrollTop;this._data.deltaScrollVertical(t)}))),this._register((0,Bs.fm)((e=>{const t=this._viewModel.read(e)?.isActive.read(e);this._elements.root.classList.toggle("active",t)}))),this._container.appendChild(this._elements.root),this._outerEditorHeight=this._headerHeight,this._contextKeyService=this._register(n.createScoped(this._elements.actions));const o=this._register(this._instantiationService.createChild(new ir.a([ie.fN,this._contextKeyService])));this._register(o.createInstance(jo.m,this._elements.actions,ni.D8.MultiDiffEditorFileToolbar,{actionRunner:this._register(new Ko.I((()=>this._viewModel.get()?.modifiedUri))),menuOptions:{shouldForwardArgs:!0},toolbarOptions:{primaryGroup:e=>e.startsWith("navigation")},actionViewItemProvider:(e,t)=>(0,si.rN)(o,e,t)}))}setScrollLeft(e){this._modifiedContentWidth.get()-this._modifiedWidth.get()>this._originalContentWidth.get()-this._originalWidth.get()?this.editor.getModifiedEditor().setScrollLeft(e):this.editor.getOriginalEditor().setScrollLeft(e)}setData(e){function t(e){return{...e,scrollBeyondLastLine:!1,hideUnchangedRegions:{enabled:!0},scrollbar:{vertical:"hidden",horizontal:"hidden",handleMouseWheel:!1,useShadows:!1},renderOverviewRuler:!1,fixedOverflowWidgets:!0,overviewRulerBorder:!1}}if(this._data=e,!e)return void(0,Uo.YY)((e=>{this._viewModel.set(void 0,e),this.editor.setDiffModel(null,e),this._dataStore.clear()}));const i=e.viewModel.documentDiffItem;if((0,Uo.YY)((s=>{this._resourceLabel?.setUri(e.viewModel.modifiedUri??e.viewModel.originalUri,{strikethrough:void 0===e.viewModel.modifiedUri});let n=!1,r=!1,o=!1,a="";e.viewModel.modifiedUri&&e.viewModel.originalUri&&e.viewModel.modifiedUri.path!==e.viewModel.originalUri.path?(a="R",n=!0):e.viewModel.modifiedUri?e.viewModel.originalUri||(a="A",o=!0):(a="D",r=!0),this._elements.status.classList.toggle("renamed",n),this._elements.status.classList.toggle("deleted",r),this._elements.status.classList.toggle("added",o),this._elements.status.innerText=a,this._resourceLabel2?.setUri(n?e.viewModel.originalUri:void 0,{strikethrough:!0}),this._dataStore.clear(),this._viewModel.set(e.viewModel,s),this.editor.setDiffModel(e.viewModel.diffEditorViewModelRef,s),this.editor.updateOptions(t(i.options??{}))})),i.onOptionsDidChange&&this._dataStore.add(i.onOptionsDidChange((()=>{this.editor.updateOptions(t(i.options??{}))}))),e.viewModel.isAlive.recomputeInitiallyAndOnChange(this._dataStore,(e=>{e||this.setData(void 0)})),e.viewModel.documentDiffItem.contextKeys)for(const[s,n]of Object.entries(e.viewModel.documentDiffItem.contextKeys))this._contextKeyService.createKey(s,n)}render(e,t,i,s){this._elements.root.style.visibility="visible",this._elements.root.style.top=`${e.start}px`,this._elements.root.style.height=`${e.length}px`,this._elements.root.style.width=`${t}px`,this._elements.root.style.position="absolute";const n=e.length-this._headerHeight,r=Math.max(0,Math.min(s.start-e.start,n));this._elements.header.style.transform=`translateY(${r}px)`,(0,Uo.YY)((i=>{this.editor.layout({width:t-16-2,height:e.length-this._outerEditorHeight})}));try{this._isSettingScrollTop=!0,this._lastScrollTop=i,this.editor.getOriginalEditor().setScrollTop(i)}finally{this._isSettingScrollTop=!1}this._elements.header.classList.toggle("shadow",r>0||i>0),this._elements.header.classList.toggle("collapsed",r===n)}hide(){this._elements.root.style.top="-100000px",this._elements.root.style.visibility="hidden"}};Qo=Yo([qo(3,ae._Y),qo(4,ie.fN)],Qo);class Xo{constructor(e){this._create=e,this._unused=new Set,this._used=new Set,this._itemData=new Map}getUnusedObj(e){let t;if(0===this._unused.size)t=this._create(e),this._itemData.set(t,e);else{const i=[...this._unused.values()];t=i.find((t=>this._itemData.get(t).getId()===e.getId()))??i[0],this._unused.delete(t),this._itemData.set(t,e),t.setData(e)}return this._used.add(t),{object:t,dispose:()=>{this._used.delete(t),this._unused.size>5?t.dispose():this._unused.add(t)}}}dispose(){for(const e of this._used)e.dispose();for(const e of this._unused)e.dispose();this._used.clear(),this._unused.clear()}}var Zo=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Jo=function(e,t){return function(i,s){t(i,s,e)}};let ea=class extends c.jG{constructor(e,t,i,s,n,r){super(),this._element=e,this._dimension=t,this._viewModel=i,this._workbenchUIElementFactory=s,this._parentContextKeyService=n,this._parentInstantiationService=r,this._scrollableElements=(0,U.h)("div.scrollContent",[(0,U.h)("div@content",{style:{overflow:"hidden"}}),(0,U.h)("div.monaco-editor@overflowWidgetsDomNode",{})]),this._scrollable=this._register(new Ho.yE({forceIntegerValues:!1,scheduleAtNextAnimationFrame:e=>(0,U.PG)((0,U.zk)(this._element),e),smoothScrollDuration:100})),this._scrollableElement=this._register(new hi.oO(this._scrollableElements.root,{vertical:1,horizontal:1,useShadows:!1},this._scrollable)),this._elements=(0,U.h)("div.monaco-component.multiDiffEditor",{},[(0,U.h)("div",{},[this._scrollableElement.getDomNode()]),(0,U.h)("div.placeholder@placeholder",{},[(0,U.h)("div",[(0,b.kg)("noChangedFiles","No Changed Files")])])]),this._sizeObserver=this._register(new Bo.pN(this._element,void 0)),this._objectPool=this._register(new Xo((e=>{const t=this._instantiationService.createInstance(Qo,this._scrollableElements.content,this._scrollableElements.overflowWidgetsDomNode,this._workbenchUIElementFactory);return t.setData(e),t}))),this.scrollTop=(0,Bs.y0)(this,this._scrollableElement.onScroll,(()=>this._scrollableElement.getScrollPosition().scrollTop)),this.scrollLeft=(0,Bs.y0)(this,this._scrollableElement.onScroll,(()=>this._scrollableElement.getScrollPosition().scrollLeft)),this._viewItemsInfo=(0,Bs.rm)(this,((e,t)=>{const i=this._viewModel.read(e);if(!i)return{items:[],getItem:e=>{throw new v.D7}};const s=i.items.read(e),n=new Map;return{items:s.map((e=>{const i=t.add(new ta(e,this._objectPool,this.scrollLeft,(e=>{this._scrollableElement.setScrollPosition({scrollTop:this._scrollableElement.getScrollPosition().scrollTop+e})}))),s=this._lastDocStates?.[i.getKey()];return s&&(0,Uo.Rn)((e=>{i.setViewState(s,e)})),n.set(e,i),i})),getItem:e=>n.get(e)}})),this._viewItems=this._viewItemsInfo.map(this,(e=>e.items)),this._spaceBetweenPx=0,this._totalHeight=this._viewItems.map(this,((e,t)=>e.reduce(((e,i)=>e+i.contentHeight.read(t)+this._spaceBetweenPx),0))),this._contextKeyService=this._register(this._parentContextKeyService.createScoped(this._element)),this._instantiationService=this._register(this._parentInstantiationService.createChild(new ir.a([ie.fN,this._contextKeyService]))),this._lastDocStates={},this._contextKeyService.createKey(zo.R.inMultiDiffEditor.key,!0),this._register((0,Bs.yC)(((e,t)=>{const i=this._viewModel.read(e);if(i&&i.contextKeys)for(const[s,n]of Object.entries(i.contextKeys)){const e=this._contextKeyService.createKey(s,void 0);e.set(n),t.add((0,c.s)((()=>e.reset())))}})));const o=this._parentContextKeyService.createKey(zo.R.multiDiffEditorAllCollapsed.key,!1);this._register((0,Bs.fm)((e=>{const t=this._viewModel.read(e);if(t){const i=t.items.read(e).every((t=>t.collapsed.read(e)));o.set(i)}}))),this._register((0,Bs.fm)((e=>{const t=this._dimension.read(e);this._sizeObserver.observe(t)}))),this._register((0,Bs.fm)((e=>{const t=this._viewItems.read(e);this._elements.placeholder.classList.toggle("visible",0===t.length)}))),this._scrollableElements.content.style.position="relative",this._register((0,Bs.fm)((e=>{const t=this._sizeObserver.height.read(e);this._scrollableElements.root.style.height=`${t}px`;const i=this._totalHeight.read(e);this._scrollableElements.content.style.height=`${i}px`;const s=this._sizeObserver.width.read(e);let n=s;const r=this._viewItems.read(e),o=(0,Fo.Cn)(r,(0,E.VE)((t=>t.maxScroll.read(e).maxScroll),E.U9));if(o){n=s+o.maxScroll.read(e).maxScroll}this._scrollableElement.setScrollDimensions({width:s,height:t,scrollHeight:i,scrollWidth:n})}))),e.replaceChildren(this._elements.root),this._register((0,c.s)((()=>{e.replaceChildren()}))),this._register(this._register((0,Bs.fm)((e=>{(0,Uo.YY)((t=>{this.render(e)}))}))))}render(e){const t=this.scrollTop.read(e);let i=0,s=0,n=0;const r=this._sizeObserver.height.read(e),o=Wo.L.ofStartAndLength(t,r),a=this._sizeObserver.width.read(e);for(const c of this._viewItems.read(e)){const l=c.contentHeight.read(e),h=Math.min(l,r),d=Wo.L.ofStartAndLength(s,h),u=Wo.L.ofStartAndLength(n,l);if(u.isBefore(o))i-=l-h,c.hide();else if(u.isAfter(o))c.hide();else{const e=Math.max(0,Math.min(o.start-u.start,l-h));i-=e;const s=Wo.L.ofStartAndLength(t+i,r);c.render(d,e,a,s)}s+=h+this._spaceBetweenPx,n+=l+this._spaceBetweenPx}this._scrollableElements.content.style.transform=`translateY(${-(t+i)}px)`}};ea=Zo([Jo(4,ie.fN),Jo(5,ae._Y)],ea);class ta extends c.jG{constructor(e,t,i,s){super(),this.viewModel=e,this._objectPool=t,this._scrollLeft=i,this._deltaScrollVertical=s,this._templateRef=this._register((0,Uo.X2)(this,void 0)),this.contentHeight=(0,Bs.un)(this,(e=>this._templateRef.read(e)?.object.contentHeight?.read(e)??this.viewModel.lastTemplateData.read(e).contentHeight)),this.maxScroll=(0,Bs.un)(this,(e=>this._templateRef.read(e)?.object.maxScroll.read(e)??{maxScroll:0,scrollWidth:0})),this.template=(0,Bs.un)(this,(e=>this._templateRef.read(e)?.object)),this._isHidden=(0,Bs.FY)(this,!1),this._isFocused=(0,Bs.un)(this,(e=>this.template.read(e)?.isFocused.read(e)??!1)),this.viewModel.setIsFocused(this._isFocused,void 0),this._register((0,Bs.fm)((e=>{const t=this._scrollLeft.read(e);this._templateRef.read(e)?.object.setScrollLeft(t)}))),this._register((0,Bs.fm)((e=>{const t=this._templateRef.read(e);if(!t)return;if(!this._isHidden.read(e))return;t.object.isFocused.read(e)||this._clear()})))}dispose(){this._clear(),super.dispose()}toString(){return`VirtualViewItem(${this.viewModel.documentDiffItem.modified?.uri.toString()})`}getKey(){return this.viewModel.getKey()}setViewState(e,t){this.viewModel.collapsed.set(e.collapsed,t),this._updateTemplateData(t);const i=this.viewModel.lastTemplateData.get(),s=e.selections?.map(Vo.L.liftSelection);this.viewModel.lastTemplateData.set({...i,selections:s},t);const n=this._templateRef.get();n&&s&&n.object.editor.setSelections(s)}_updateTemplateData(e){const t=this._templateRef.get();t&&this.viewModel.lastTemplateData.set({contentHeight:t.object.contentHeight.get(),selections:t.object.editor.getSelections()??void 0},e)}_clear(){const e=this._templateRef.get();e&&(0,Uo.Rn)((t=>{this._updateTemplateData(t),e.object.hide(),this._templateRef.set(void 0,t)}))}hide(){this._isHidden.set(!0,void 0)}render(e,t,i,s){this._isHidden.set(!1,void 0);let n=this._templateRef.get();if(!n){n=this._objectPool.getUnusedObj(new $o(this.viewModel,this._deltaScrollVertical)),this._templateRef.set(n,void 0);const e=this.viewModel.lastTemplateData.get().selections;e&&n.object.editor.setSelections(e)}n.object.render(e,i,t,s)}}(0,Ne.x1A)("multiDiffEditor.headerBackground",{dark:"#262626",light:"tab.inactiveBackground",hcDark:"tab.inactiveBackground",hcLight:"tab.inactiveBackground"},(0,b.kg)("multiDiffEditor.headerBackground","The background color of the diff editor's header")),(0,Ne.x1A)("multiDiffEditor.background",Ne.YtV,(0,b.kg)("multiDiffEditor.background","The background color of the multi file diff editor")),(0,Ne.x1A)("multiDiffEditor.border",{dark:"sideBarSectionHeader.border",light:"#cccccc",hcDark:"sideBarSectionHeader.border",hcLight:"#cccccc"},(0,b.kg)("multiDiffEditor.border","The border color of the multi file diff editor"));var ia=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},sa=function(e,t){return function(i,s){t(i,s,e)}};let na=class extends c.jG{constructor(e,t,i){super(),this._element=e,this._workbenchUIElementFactory=t,this._instantiationService=i,this._dimension=(0,Bs.FY)(this,void 0),this._viewModel=(0,Bs.FY)(this,void 0),this._widgetImpl=(0,Bs.rm)(this,((e,t)=>((0,Po.b)(Qo,e),t.add(this._instantiationService.createInstance((0,Po.b)(ea,e),this._element,this._dimension,this._viewModel,this._workbenchUIElementFactory))))),this._register((0,Bs.OI)(this._widgetImpl))}};function ra(e,t,i){return Hr.initialize(i||{}).createInstance(Io,e,t)}function oa(e){return Hr.get(g.T).onCodeEditorAdd((t=>{e(t)}))}function aa(e){return Hr.get(g.T).onDiffEditorAdd((t=>{e(t)}))}function ca(){return Hr.get(g.T).listCodeEditors()}function la(){return Hr.get(g.T).listDiffEditors()}function ha(e,t,i){return Hr.initialize(i||{}).createInstance(Oo,e,t)}function da(e,t){const i=Hr.initialize(t||{});return new na(e,{},i)}function ua(e){if("string"!==typeof e.id||"function"!==typeof e.run)throw new Error("Invalid command descriptor, `id` and `run` are required properties!");return St.w.registerCommand(e.id,e.run)}function ga(e){if("string"!==typeof e.id||"string"!==typeof e.label||"function"!==typeof e.run)throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");const t=ie.M$.deserialize(e.precondition),i=new c.Cm;if(i.add(St.w.registerCommand(e.id,((i,...s)=>u.DX.runEditorCommand(i,s,t,((t,i,s)=>Promise.resolve(e.run(i,...s))))))),e.contextMenuGroupId){const s={command:{id:e.id,title:e.label},when:t,group:e.contextMenuGroupId,order:e.contextMenuOrder||0};i.add(ni.ZG.appendMenuItem(ni.D8.EditorContext,s))}if(Array.isArray(e.keybindings)){const s=Hr.get(De.b);if(s instanceof Rr){const n=ie.M$.and(t,ie.M$.deserialize(e.keybindingContext));i.add(s.addDynamicKeybindings(e.keybindings.map((t=>({keybinding:t,command:e.id,when:n})))))}else console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService")}return i}function pa(e){return ma([e])}function ma(e){const t=Hr.get(De.b);return t instanceof Rr?t.addDynamicKeybindings(e.map((e=>({keybinding:e.keybinding,command:e.command,commandArgs:e.commandArgs,when:ie.M$.deserialize(e.when)})))):(console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),c.jG.None)}function fa(e,t,i){const s=Hr.get(Ui.L),n=s.getLanguageIdByMimeType(t)||t;return Do(Hr.get(A.IModelService),s,e,n,i)}function _a(e,t){const i=Hr.get(Ui.L),s=i.getLanguageIdByMimeType(t)||t||jr.vH;e.setLanguage(i.createById(s))}function va(e,t,i){if(e){Hr.get(or.DR).changeOne(t,e.uri,i)}}function Ca(e){Hr.get(or.DR).changeAll(e,[])}function Ea(e){return Hr.get(or.DR).read(e)}function ba(e){return Hr.get(or.DR).onMarkerChanged(e)}function Sa(e){return Hr.get(A.IModelService).getModel(e)}function ya(){return Hr.get(A.IModelService).getModels()}function wa(e){return Hr.get(A.IModelService).onModelAdded(e)}function Ra(e){return Hr.get(A.IModelService).onModelRemoved(e)}function La(e){return Hr.get(A.IModelService).onModelLanguageChanged((t=>{e({model:t.model,oldLanguage:t.oldLanguageId})}))}function Ta(e){return function(e,t){return new Br(e,t)}(Hr.get(A.IModelService),e)}function xa(e,t){const i=Hr.get(Ui.L),s=Hr.get(Ln.L);return bo.colorizeElement(s,i,e,t).then((()=>{s.registerEditorContainer(e)}))}function ka(e,t,i){const s=Hr.get(Ui.L);return Hr.get(Ln.L).registerEditorContainer(a.G.document.body),bo.colorize(s,e,t,i)}function Aa(e,t,i=4){return Hr.get(Ln.L).registerEditorContainer(a.G.document.body),bo.colorizeModelLine(e,t,i)}function Na(e,t){Gr.dG.getOrCreate(t);const i=function(e){const t=Gr.dG.get(e);return t||{getInitialState:()=>Kr.r3,tokenize:(t,i,s)=>(0,Kr.$H)(e,s)}}(t),s=(0,l.uz)(e),n=[];let r=i.getInitialState();for(let o=0,a=s.length;o<a;o++){const e=s[o],t=i.tokenize(e,!0,r);n[o]=t.tokens,r=t.endState}return n}function Ia(e,t){Hr.get(Ln.L).defineTheme(e,t)}function Oa(e){Hr.get(Ln.L).setTheme(e)}function Da(){d.T.clearAllFontInfos()}function Ma(e,t){return St.w.registerCommand({id:e,handler:t})}function Pa(e){return Hr.get(Ue.C).registerOpener({open:async t=>("string"===typeof t&&(t=h.r.parse(t)),e.open(t))})}function Fa(e){return Hr.get(g.T).registerCodeEditorOpenHandler((async(t,i,s)=>{if(!i)return null;const n=t.options?.selection;let r;return n&&"number"===typeof n.endLineNumber&&"number"===typeof n.endColumn?r=n:n&&(r={lineNumber:n.startLineNumber,column:n.startColumn}),await e.openCodeEditor(i,t.resource,r)?i:null}))}na=ia([sa(2,ae._Y)],na);var Ua=i(47661);function Ha(e,t){return"boolean"===typeof e?e:t}function Ba(e,t){return"string"===typeof e?e:t}function Wa(e,t=!1){t&&(e=e.map((function(e){return e.toLowerCase()})));const i=function(e){const t={};for(const i of e)t[i]=!0;return t}(e);return t?function(e){return void 0!==i[e.toLowerCase()]&&i.hasOwnProperty(e.toLowerCase())}:function(e){return void 0!==i[e]&&i.hasOwnProperty(e)}}function Va(e,t,i){t=t.replace(/@@/g,"\x01");let s,n=0;do{s=!1,t=t.replace(/@(\w+)/g,(function(i,n){s=!0;let r="";if("string"===typeof e[n])r=e[n];else{if(!(e[n]&&e[n]instanceof RegExp))throw void 0===e[n]?no(e,"language definition does not contain attribute '"+n+"', used at: "+t):no(e,"attribute reference '"+n+"' must be a string, used at: "+t);r=e[n].source}return to(r)?"":"(?:"+r+")"})),n++}while(s&&n<5);t=t.replace(/\x01/g,"@");const r=(e.ignoreCase?"i":"")+(e.unicode?"u":"");if(i){if(t.match(/\$[sS](\d\d?)/g)){let i=null,s=null;return n=>(s&&i===n||(i=n,s=new RegExp(function(e,t,i){let s=null;return t.replace(/\$[sS](\d\d?)/g,(function(t,n){return null===s&&(s=i.split("."),s.unshift(i)),!to(n)&&n<s.length?io(e,s[n]):""}))}(e,t,n),r)),s)}}return new RegExp(t,r)}function za(e,t,i,s){let n=-1,r=i,o=i.match(/^\$(([sS]?)(\d\d?)|#)(.*)$/);o&&(o[3]&&(n=parseInt(o[3]),o[2]&&(n+=100)),r=o[4]);let a,c="~",l=r;if(r&&0!==r.length?/^\w*$/.test(l)?c="==":(o=r.match(/^(@|!@|~|!~|==|!=)(.*)$/),o&&(c=o[1],l=o[2])):(c="!=",l=""),"~"!==c&&"!~"!==c||!/^(\w|\|)*$/.test(l))if("@"===c||"!@"===c){const i=e[l];if(!i)throw no(e,"the @ match target '"+l+"' is not defined, in rule: "+t);if(!function(e,t){if(!t)return!1;if(!Array.isArray(t))return!1;for(const i of t)if(!e(i))return!1;return!0}((function(e){return"string"===typeof e}),i))throw no(e,"the @ match target '"+l+"' must be an array of strings, in rule: "+t);const s=Wa(i,e.ignoreCase);a=function(e){return"@"===c?s(e):!s(e)}}else if("~"===c||"!~"===c)if(l.indexOf("$")<0){const t=Va(e,"^"+l+"$",!1);a=function(e){return"~"===c?t.test(e):!t.test(e)}}else a=function(t,i,s,n){return Va(e,"^"+ro(e,l,i,s,n)+"$",!1).test(t)};else if(l.indexOf("$")<0){const t=io(e,l);a=function(e){return"=="===c?e===t:e!==t}}else{const t=io(e,l);a=function(i,s,n,r,o){const a=ro(e,t,s,n,r);return"=="===c?i===a:i!==a}}else{const t=Wa(l.split("|"),e.ignoreCase);a=function(e){return"~"===c?t(e):!t(e)}}return-1===n?{name:i,value:s,test:function(e,t,i,s){return a(e,e,t,i,s)}}:{name:i,value:s,test:function(e,t,i,s){const r=function(e,t,i,s){if(s<0)return e;if(s<t.length)return t[s];if(s>=100){s-=100;const e=i.split(".");if(e.unshift(i),s<e.length)return e[s]}return null}(e,t,i,n);return a(r||"",e,t,i,s)}}}function Ga(e,t,i){if(i){if("string"===typeof i)return i;if(i.token||""===i.token){if("string"!==typeof i.token)throw no(e,"a 'token' attribute must be of type string, in rule: "+t);{const s={token:i.token};if(i.token.indexOf("$")>=0&&(s.tokenSubst=!0),"string"===typeof i.bracket)if("@open"===i.bracket)s.bracket=1;else{if("@close"!==i.bracket)throw no(e,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+t);s.bracket=-1}if(i.next){if("string"!==typeof i.next)throw no(e,"the next state must be a string value in rule: "+t);{let n=i.next;if(!/^(@pop|@push|@popall)$/.test(n)&&("@"===n[0]&&(n=n.substr(1)),n.indexOf("$")<0&&!function(e,t){let i=t;for(;i&&i.length>0;){if(e.stateNames[i])return!0;const t=i.lastIndexOf(".");i=t<0?null:i.substr(0,t)}return!1}(e,ro(e,n,"",[],""))))throw no(e,"the next state '"+i.next+"' is not defined in rule: "+t);s.next=n}}return"number"===typeof i.goBack&&(s.goBack=i.goBack),"string"===typeof i.switchTo&&(s.switchTo=i.switchTo),"string"===typeof i.log&&(s.log=i.log),"string"===typeof i.nextEmbedded&&(s.nextEmbedded=i.nextEmbedded,e.usesEmbedded=!0),s}}if(Array.isArray(i)){const s=[];for(let n=0,r=i.length;n<r;n++)s[n]=Ga(e,t,i[n]);return{group:s}}if(i.cases){const s=[];for(const r in i.cases)if(i.cases.hasOwnProperty(r)){const n=Ga(e,t,i.cases[r]);"@default"===r||"@"===r||""===r?s.push({test:void 0,value:n,name:r}):"@eos"===r?s.push({test:function(e,t,i,s){return s},value:n,name:r}):s.push(za(e,t,r,n))}const n=e.defaultToken;return{test:function(e,t,i,r){for(const n of s){if(!n.test||n.test(e,t,i,r))return n.value}return n}}}throw no(e,"an action must be a string, an object with a 'token' or 'cases' attribute, or an array of actions; in rule: "+t)}return{token:""}}class ja{constructor(e){this.regex=new RegExp(""),this.action={token:""},this.matchOnlyAtLineStart=!1,this.name="",this.name=e}setRegex(e,t){let i;if("string"===typeof t)i=t;else{if(!(t instanceof RegExp))throw no(e,"rules must start with a match string or regular expression: "+this.name);i=t.source}this.matchOnlyAtLineStart=i.length>0&&"^"===i[0],this.name=this.name+": "+i,this.regex=Va(e,"^(?:"+(this.matchOnlyAtLineStart?i.substr(1):i)+")",!0)}setAction(e,t){this.action=Ga(e,this.name,t)}resolveRegex(e){return this.regex instanceof RegExp?this.regex:this.regex(e)}}function Ka(e,t){if(!t||"object"!==typeof t)throw new Error("Monarch: expecting a language definition object");const i={languageId:e,includeLF:Ha(t.includeLF,!1),noThrow:!1,maxStack:100,start:"string"===typeof t.start?t.start:null,ignoreCase:Ha(t.ignoreCase,!1),unicode:Ha(t.unicode,!1),tokenPostfix:Ba(t.tokenPostfix,"."+e),defaultToken:Ba(t.defaultToken,"source"),usesEmbedded:!1,stateNames:{},tokenizer:{},brackets:[]},s=t;function n(e,r,o){for(const a of o){let o=a.include;if(o){if("string"!==typeof o)throw no(i,"an 'include' attribute must be a string at: "+e);if("@"===o[0]&&(o=o.substr(1)),!t.tokenizer[o])throw no(i,"include target '"+o+"' is not defined at: "+e);n(e+"."+o,r,t.tokenizer[o])}else{const t=new ja(e);if(Array.isArray(a)&&a.length>=1&&a.length<=3)if(t.setRegex(s,a[0]),a.length>=3)if("string"===typeof a[1])t.setAction(s,{token:a[1],next:a[2]});else{if("object"!==typeof a[1])throw no(i,"a next state as the last element of a rule can only be given if the action is either an object or a string, at: "+e);{const e=a[1];e.next=a[2],t.setAction(s,e)}}else t.setAction(s,a[1]);else{if(!a.regex)throw no(i,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+e);a.name&&"string"===typeof a.name&&(t.name=a.name),a.matchOnlyAtStart&&(t.matchOnlyAtLineStart=Ha(a.matchOnlyAtLineStart,!1)),t.setRegex(s,a.regex),t.setAction(s,a.action)}r.push(t)}}}if(s.languageId=e,s.includeLF=i.includeLF,s.ignoreCase=i.ignoreCase,s.unicode=i.unicode,s.noThrow=i.noThrow,s.usesEmbedded=i.usesEmbedded,s.stateNames=t.tokenizer,s.defaultToken=i.defaultToken,!t.tokenizer||"object"!==typeof t.tokenizer)throw no(i,"a language definition must define the 'tokenizer' attribute as an object");i.tokenizer=[];for(const o in t.tokenizer)if(t.tokenizer.hasOwnProperty(o)){i.start||(i.start=o);const e=t.tokenizer[o];i.tokenizer[o]=new Array,n("tokenizer."+o,i.tokenizer[o],e)}if(i.usesEmbedded=s.usesEmbedded,t.brackets){if(!Array.isArray(t.brackets))throw no(i,"the 'brackets' attribute must be defined as an array")}else t.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];const r=[];for(const o of t.brackets){let e=o;if(e&&Array.isArray(e)&&3===e.length&&(e={token:e[2],open:e[0],close:e[1]}),e.open===e.close)throw no(i,"open and close brackets in a 'brackets' attribute must be different: "+e.open+"\n hint: use the 'bracket' attribute if matching on equal brackets is required.");if("string"!==typeof e.open||"string"!==typeof e.token||"string"!==typeof e.close)throw no(i,"every element in the 'brackets' array must be a '{open,close,token}' object or array");r.push({token:e.token+i.tokenPostfix,open:io(i,e.open),close:io(i,e.close)})}return i.brackets=r,i.noThrow=!0,i}function Ya(e){jr.W6.registerLanguage(e)}function qa(){let e=[];return e=e.concat(jr.W6.getLanguages()),e}function $a(e){return Hr.get(Ui.L).languageIdCodec.encodeLanguageId(e)}function Qa(e,t){return Hr.withServices((()=>{const i=Hr.get(Ui.L).onDidRequestRichLanguageFeatures((s=>{s===e&&(i.dispose(),t())}));return i}))}function Xa(e,t){return Hr.withServices((()=>{const i=Hr.get(Ui.L).onDidRequestBasicLanguageFeatures((s=>{s===e&&(i.dispose(),t())}));return i}))}function Za(e,t){if(!Hr.get(Ui.L).isRegisteredLanguageId(e))throw new Error(`Cannot set configuration for unknown language ${e}`);return Hr.get(x.JZ).register(e,t,100)}class Ja{constructor(e,t){this._languageId=e,this._actual=t}dispose(){}getInitialState(){return this._actual.getInitialState()}tokenize(e,t,i){if("function"===typeof this._actual.tokenize)return ec.adaptTokenize(this._languageId,this._actual,e,i);throw new Error("Not supported!")}tokenizeEncoded(e,t,i){const s=this._actual.tokenizeEncoded(e,i);return new Gr.rY(s.tokens,s.endState)}}class ec{constructor(e,t,i,s){this._languageId=e,this._actual=t,this._languageService=i,this._standaloneThemeService=s}dispose(){}getInitialState(){return this._actual.getInitialState()}static _toClassicTokens(e,t){const i=[];let s=0;for(let n=0,r=e.length;n<r;n++){const r=e[n];let o=r.startIndex;0===n?o=0:o<s&&(o=s),i[n]=new Gr.ou(o,r.scopes,t),s=o}return i}static adaptTokenize(e,t,i,s){const n=t.tokenize(i,s),r=ec._toClassicTokens(n.tokens,e);let o;return o=n.endState.equals(s)?s:n.endState,new Gr.$M(r,o)}tokenize(e,t,i){return ec.adaptTokenize(this._languageId,this._actual,e,i)}_toBinaryTokens(e,t){const i=e.encodeLanguageId(this._languageId),s=this._standaloneThemeService.getColorTheme().tokenTheme,n=[];let r=0,o=0;for(let c=0,l=t.length;c<l;c++){const e=t[c],a=1024|s.match(i,e.scopes);if(r>0&&n[r-1]===a)continue;let l=e.startIndex;0===c?l=0:l<o&&(l=o),n[r++]=l,n[r++]=a,o=l}const a=new Uint32Array(r);for(let c=0;c<r;c++)a[c]=n[c];return a}tokenizeEncoded(e,t,i){const s=this._actual.tokenize(e,i),n=this._toBinaryTokens(this._languageService.languageIdCodec,s.tokens);let r;return r=s.endState.equals(i)?i:s.endState,new Gr.rY(n,r)}}function tc(e){return e&&"function"===typeof e.then}function ic(e){const t=Hr.get(Ln.L);if(e){const i=[null];for(let t=1,s=e.length;t<s;t++)i[t]=Ua.Q1.fromHex(e[t]);t.setColorMapOverride(i)}else t.setColorMapOverride(null)}function sc(e,t){return function(e){return"tokenizeEncoded"in e}(t)?new Ja(e,t):new ec(e,t,Hr.get(Ui.L),Hr.get(Ln.L))}function nc(e,t){const i=new Gr.v_((async()=>{const i=await Promise.resolve(t.create());return i?"function"===typeof i.getInitialState?sc(e,i):new vo(Hr.get(Ui.L),Hr.get(Ln.L),e,Ka(e,i),Hr.get(Me.pG)):null}));return Gr.dG.registerFactory(e,i)}function rc(e,t){if(!Hr.get(Ui.L).isRegisteredLanguageId(e))throw new Error(`Cannot set tokens provider for unknown language ${e}`);return tc(t)?nc(e,{create:()=>t}):Gr.dG.register(e,sc(e,t))}function oc(e,t){return tc(t)?nc(e,{create:()=>t}):Gr.dG.register(e,(t=>new vo(Hr.get(Ui.L),Hr.get(Ln.L),e,Ka(e,t),Hr.get(Me.pG)))(t))}function ac(e,t){return Hr.get(D.ILanguageFeaturesService).referenceProvider.register(e,t)}function cc(e,t){return Hr.get(D.ILanguageFeaturesService).renameProvider.register(e,t)}function lc(e,t){return Hr.get(D.ILanguageFeaturesService).newSymbolNamesProvider.register(e,t)}function hc(e,t){return Hr.get(D.ILanguageFeaturesService).signatureHelpProvider.register(e,t)}function dc(e,t){return Hr.get(D.ILanguageFeaturesService).hoverProvider.register(e,{provideHover:async(e,i,s,n)=>{const r=e.getWordAtPosition(i);return Promise.resolve(t.provideHover(e,i,s,n)).then((e=>{if(e)return!e.range&&r&&(e.range=new T.Q(i.lineNumber,r.startColumn,i.lineNumber,r.endColumn)),e.range||(e.range=new T.Q(i.lineNumber,i.column,i.lineNumber,i.column)),e}))}})}function uc(e,t){return Hr.get(D.ILanguageFeaturesService).documentSymbolProvider.register(e,t)}function gc(e,t){return Hr.get(D.ILanguageFeaturesService).documentHighlightProvider.register(e,t)}function pc(e,t){return Hr.get(D.ILanguageFeaturesService).linkedEditingRangeProvider.register(e,t)}function mc(e,t){return Hr.get(D.ILanguageFeaturesService).definitionProvider.register(e,t)}function fc(e,t){return Hr.get(D.ILanguageFeaturesService).implementationProvider.register(e,t)}function _c(e,t){return Hr.get(D.ILanguageFeaturesService).typeDefinitionProvider.register(e,t)}function vc(e,t){return Hr.get(D.ILanguageFeaturesService).codeLensProvider.register(e,t)}function Cc(e,t,i){return Hr.get(D.ILanguageFeaturesService).codeActionProvider.register(e,{providedCodeActionKinds:i?.providedCodeActionKinds,documentation:i?.documentation,provideCodeActions:(e,i,s,n)=>{const r=Hr.get(or.DR).read({resource:e.uri}).filter((e=>T.Q.areIntersectingOrTouching(e,i)));return t.provideCodeActions(e,i,{markers:r,only:s.only,trigger:s.trigger},n)},resolveCodeAction:t.resolveCodeAction})}function Ec(e,t){return Hr.get(D.ILanguageFeaturesService).documentFormattingEditProvider.register(e,t)}function bc(e,t){return Hr.get(D.ILanguageFeaturesService).documentRangeFormattingEditProvider.register(e,t)}function Sc(e,t){return Hr.get(D.ILanguageFeaturesService).onTypeFormattingEditProvider.register(e,t)}function yc(e,t){return Hr.get(D.ILanguageFeaturesService).linkProvider.register(e,t)}function wc(e,t){return Hr.get(D.ILanguageFeaturesService).completionProvider.register(e,t)}function Rc(e,t){return Hr.get(D.ILanguageFeaturesService).colorProvider.register(e,t)}function Lc(e,t){return Hr.get(D.ILanguageFeaturesService).foldingRangeProvider.register(e,t)}function Tc(e,t){return Hr.get(D.ILanguageFeaturesService).declarationProvider.register(e,t)}function xc(e,t){return Hr.get(D.ILanguageFeaturesService).selectionRangeProvider.register(e,t)}function kc(e,t){return Hr.get(D.ILanguageFeaturesService).documentSemanticTokensProvider.register(e,t)}function Ac(e,t){return Hr.get(D.ILanguageFeaturesService).documentRangeSemanticTokensProvider.register(e,t)}function Nc(e,t){return Hr.get(D.ILanguageFeaturesService).inlineCompletionsProvider.register(e,t)}function Ic(e,t){return Hr.get(D.ILanguageFeaturesService).inlineEditProvider.register(e,t)}function Oc(e,t){return Hr.get(D.ILanguageFeaturesService).inlayHintsProvider.register(e,t)}var Dc=i(49079);r.qB.wrappingIndent.defaultValue=0,r.qB.glyphMargin.defaultValue=!1,r.qB.autoIndent.defaultValue=3,r.qB.overviewRulerLanes.defaultValue=2,Dc.Pj.setFormatterSelector(((e,t,i)=>Promise.resolve(e[0])));const Mc=(0,o.createMonacoBaseAPI)();Mc.editor={create:ra,getEditors:ca,getDiffEditors:la,onDidCreateEditor:oa,onDidCreateDiffEditor:aa,createDiffEditor:ha,addCommand:ua,addEditorAction:ga,addKeybindingRule:pa,addKeybindingRules:ma,createModel:fa,setModelLanguage:_a,setModelMarkers:va,getModelMarkers:Ea,removeAllMarkers:Ca,onDidChangeMarkers:ba,getModels:ya,getModel:Sa,onDidCreateModel:wa,onWillDisposeModel:Ra,onDidChangeModelLanguage:La,createWebWorker:Ta,colorizeElement:xa,colorize:ka,colorizeModelLine:Aa,tokenize:Na,defineTheme:Ia,setTheme:Oa,remeasureFonts:Da,registerCommand:Ma,registerLinkOpener:Pa,registerEditorOpener:Fa,AccessibilitySupport:qr.Gn,ContentWidgetPositionPreference:qr.Qj,CursorChangeReason:qr.h5,DefaultEndOfLine:qr.of,EditorAutoIndentStrategy:qr.e0,EditorOption:qr.p2,EndOfLinePreference:qr.kf,EndOfLineSequence:qr.WU,MinimapPosition:qr.R3,MinimapSectionHeaderStyle:qr.VX,MouseTargetType:qr.hS,OverlayWidgetPositionPreference:qr.dE,OverviewRulerLane:qr.A5,GlyphMarginLane:qr.ZS,RenderLineNumbersType:qr.DO,RenderMinimap:qr.hW,ScrollbarVisibility:qr.XR,ScrollType:qr.ov,TextEditorCursorBlinkingStyle:qr.U7,TextEditorCursorStyle:qr.m9,TrackedRangeStickiness:qr.kK,WrappingIndent:qr.tJ,InjectedTextCursorStops:qr.VW,PositionAffinity:qr.Ic,ShowLightbulbIconMode:qr.jT,ConfigurationChangedEvent:r.lw,BareFontInfo:Vr._8,FontInfo:Vr.YJ,TextModelResolvedOptions:Yr.X2,FindMatch:Yr.Dg,ApplyUpdateResult:r.hZ,EditorZoom:Wr.D,createMultiFileDiffEditor:da,EditorType:zr._,EditorOptions:r.qB},Mc.languages={register:Ya,getLanguages:qa,onLanguage:Qa,onLanguageEncountered:Xa,getEncodedLanguageId:$a,setLanguageConfiguration:Za,setColorMap:ic,registerTokensProviderFactory:nc,setTokensProvider:rc,setMonarchTokensProvider:oc,registerReferenceProvider:ac,registerRenameProvider:cc,registerNewSymbolNameProvider:lc,registerCompletionItemProvider:wc,registerSignatureHelpProvider:hc,registerHoverProvider:dc,registerDocumentSymbolProvider:uc,registerDocumentHighlightProvider:gc,registerLinkedEditingRangeProvider:pc,registerDefinitionProvider:mc,registerImplementationProvider:fc,registerTypeDefinitionProvider:_c,registerCodeLensProvider:vc,registerCodeActionProvider:Cc,registerDocumentFormattingEditProvider:Ec,registerDocumentRangeFormattingEditProvider:bc,registerOnTypeFormattingEditProvider:Sc,registerLinkProvider:yc,registerColorProvider:Rc,registerFoldingRangeProvider:Lc,registerDeclarationProvider:Tc,registerSelectionRangeProvider:xc,registerDocumentSemanticTokensProvider:kc,registerDocumentRangeSemanticTokensProvider:Ac,registerInlineCompletionsProvider:Nc,registerInlineEditProvider:Ic,registerInlayHintsProvider:Oc,DocumentHighlightKind:qr.Kb,CompletionItemKind:qr.Io,CompletionItemTag:qr.QP,CompletionItemInsertTextRule:qr._E,SymbolKind:qr.v0,SymbolTag:qr.H_,IndentAction:qr.l,CompletionTriggerKind:qr.t7,SignatureHelpTriggerKind:qr.WA,InlayHintKind:qr.r4,InlineCompletionTriggerKind:qr.qw,InlineEditTriggerKind:qr.sm,CodeActionTriggerType:qr.ok,NewSymbolNameTag:qr.OV,NewSymbolNameTriggerKind:qr.YT,PartialAcceptTriggerKind:qr.Ah,HoverVerbosityAction:qr.M$,FoldingRangeKind:Gr.lO,SelectedSuggestionInfo:Gr.GE};const Pc=Mc.CancellationTokenSource,Fc=Mc.Emitter,Uc=Mc.KeyCode,Hc=Mc.KeyMod,Bc=Mc.Position,Wc=Mc.Range,Vc=Mc.Selection,zc=Mc.SelectionDirection,Gc=Mc.MarkerSeverity,jc=Mc.MarkerTag,Kc=Mc.Uri,Yc=Mc.Token,qc=Mc.editor,$c=Mc.languages,Qc=globalThis.MonacoEnvironment;(Qc?.globalAPI||"function"===typeof define&&i.amdO)&&(globalThis.monaco=Mc),"undefined"!==typeof globalThis.require&&"function"===typeof globalThis.require.config&&globalThis.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-languageserver-textdocument","vscode-languageserver-textdocument/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index","vs/basic-languages/typescript/typescript"]});var Xc;i(61562),i(94318),i(23304),i(59896),i(75208),i(51232),i(77888),i(46686),i(27020),i(15600),i(80200),i(87152),i(11272),i(60352),i(66235),i(31474),i(84840),i(94803),i(74304),i(74800),i(37954),i(25922),i(46648),i(61082),i(19856),i(97884),i(89518),i(83488),i(3254),i(57680),i(99669),i(796),i(89336),i(19436),i(40340),i(52894),i(86492),i(73374),i(38320),i(92080),i(57664),i(8868),i(31396),i(18544),i(538),i(25064),i(64256),i(32624),i(97360),i(42776),i(97144),i(46304),i(58820),i(82560),i(74276),i(39866),i(73020),i(71316),i(70492),i(50848),i(59520),i(46576),i(49150),i(33358),i(96716),i(28304),i(14720),i(27734),i(2068),i(71468),i(15482),i(42572),i(77668),i(36e3),i(10072),i(48448),i(51376),i(61764),i(85872),i(24152),i(42144),i(22362),i(98408),i(61472),i(50576),i(23934);self.MonacoEnvironment=(Xc={editorWorkerService:"editor.worker.js",css:"css.worker.js",html:"html.worker.js",json:"json.worker.js",typescript:"ts.worker.js",javascript:"ts.worker.js",less:"css.worker.js",scss:"css.worker.js",handlebars:"html.worker.js",razor:"html.worker.js"},{globalAPI:!1,getWorkerUrl:function(e,t){var s=i.p,n=(s?s.replace(/\/$/,"")+"/":"")+Xc[t];if(/^((http:)|(https:)|(file:)|(\/\/))/.test(n)){var r=String(window.location),o=r.substr(0,r.length-window.location.hash.length-window.location.search.length-window.location.pathname.length);if(n.substring(0,o.length)!==o){/^(\/\/)/.test(n)&&(n=window.location.protocol+n);var a=new Blob(["/*"+t+'*/importScripts("'+n+'");'],{type:"application/javascript"});return URL.createObjectURL(a)}}return n}});const Zc=s},67913:(e,t,i)=>{"use strict";i.r(t),i.d(t,{CancellationTokenSource:()=>r.CancellationTokenSource,Emitter:()=>r.Emitter,KeyCode:()=>r.KeyCode,KeyMod:()=>r.KeyMod,MarkerSeverity:()=>r.MarkerSeverity,MarkerTag:()=>r.MarkerTag,Position:()=>r.Position,Range:()=>r.Range,Selection:()=>r.Selection,SelectionDirection:()=>r.SelectionDirection,Token:()=>r.Token,Uri:()=>r.Uri,default:()=>o,editor:()=>r.editor,languages:()=>r.languages});var s={};i.r(s),i.d(s,{CancellationTokenSource:()=>r.CancellationTokenSource,Emitter:()=>r.Emitter,KeyCode:()=>r.KeyCode,KeyMod:()=>r.KeyMod,MarkerSeverity:()=>r.MarkerSeverity,MarkerTag:()=>r.MarkerTag,Position:()=>r.Position,Range:()=>r.Range,Selection:()=>r.Selection,SelectionDirection:()=>r.SelectionDirection,Token:()=>r.Token,Uri:()=>r.Uri,editor:()=>r.editor,languages:()=>r.languages});i(44915),i(88952),i(36999),i(58590),i(6438),i(94908),i(4836),i(52555),i(64215),i(31659),i(99822),i(40142),i(18864),i(32516),i(20961),i(40800),i(2183),i(58568),i(63867),i(61731),i(34175),i(44588),i(70552),i(48279),i(65877),i(81091),i(99312),i(62427),i(58466),i(56800),i(28449),i(57244),i(76440),i(80409),i(58145),i(40677),i(9948),i(84325),i(15040),i(75639),i(85117),i(14614),i(95200),i(50352),i(4519),i(85646),i(77047),i(6429),i(28211),i(59731),i(57377),i(50071),i(18278),i(98745),i(44798),i(10617),i(30936),i(57197),i(90870),i(10846),i(22890),i(98472),i(50166),i(68887),i(47210),i(79907),i(38728),i(46606);var n,r=i(80781);i(61562),i(94318),i(23304),i(59896),i(75208),i(51232),i(77888),i(46686),i(27020),i(15600),i(80200),i(87152),i(60352),i(66235),i(31474),i(84840),i(94803),i(74304),i(37954),i(74800),i(25922),i(46648),i(61082),i(19856),i(97884),i(83488),i(3254),i(57680),i(796),i(89336),i(19436),i(40340),i(86492),i(52894),i(73374),i(38320),i(92080),i(57664),i(8868),i(31396),i(18544),i(538),i(25064),i(64256),i(32624),i(97360),i(42776),i(97144),i(46304),i(58820),i(82560),i(74276),i(39866),i(73020),i(71316),i(70492),i(50848),i(59520),i(46576),i(49150),i(33358),i(96716),i(28304),i(14720),i(27734),i(2068),i(71468),i(15482),i(42572),i(77668),i(36e3),i(10072),i(48448),i(51376),i(61764),i(85872),i(42144),i(22362),i(98408),i(61472),i(50576),i(11272),i(89518),i(99669),i(24152),i(51861),i(97791),i(23934);self.MonacoEnvironment=(n={editorWorkerService:"editor.worker.js",css:"css.worker.js",html:"html.worker.js",json:"json.worker.js",typescript:"ts.worker.js",javascript:"ts.worker.js",less:"css.worker.js",scss:"css.worker.js",handlebars:"html.worker.js",razor:"html.worker.js"},{globalAPI:!1,getWorkerUrl:function(e,t){var s=i.p,r=(s?s.replace(/\/$/,"")+"/":"")+n[t];if(/^((http:)|(https:)|(file:)|(\/\/))/.test(r)){var o=String(window.location),a=o.substr(0,o.length-window.location.hash.length-window.location.search.length-window.location.pathname.length);if(r.substring(0,a.length)!==a){/^(\/\/)/.test(r)&&(r=window.location.protocol+r);var c=new Blob(["/*"+t+'*/importScripts("'+r+'");'],{type:"application/javascript"});return URL.createObjectURL(c)}}return r}});const o=s},60413:(e,t,i)=>{"use strict";i.d(t,{Dy:()=>r,H8:()=>h,Qu:()=>m,Tc:()=>l,c8:()=>u,gm:()=>c,m0:()=>g,nr:()=>d,pR:()=>o});var s=i(25893);class n{constructor(){this.mapWindowIdToZoomFactor=new Map}static{this.INSTANCE=new n}getZoomFactor(e){return this.mapWindowIdToZoomFactor.get(this.getWindowId(e))??1}getWindowId(e){return e.vscodeWindowId}}function r(e,t,i){"string"===typeof t&&(t=e.matchMedia(t)),t.addEventListener("change",i)}function o(e){return n.INSTANCE.getZoomFactor(e)}const a=navigator.userAgent,c=a.indexOf("Firefox")>=0,l=a.indexOf("AppleWebKit")>=0,h=a.indexOf("Chrome")>=0,d=!h&&a.indexOf("Safari")>=0,u=!h&&!d&&l,g=(a.indexOf("Electron/"),a.indexOf("Android")>=0);let p=!1;if("function"===typeof s.G.matchMedia){const e=s.G.matchMedia("(display-mode: standalone) or (display-mode: window-controls-overlay)"),t=s.G.matchMedia("(display-mode: fullscreen)");p=e.matches,r(s.G,e,(({matches:e})=>{p&&t.matches||(p=e)}))}function m(){return p}},55089:(e,t,i)=>{"use strict";i.d(t,{e:()=>o});var s=i(60413),n=i(25893),r=i(98067);const o={clipboard:{writeText:r.ib||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:r.ib||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:r.ib||s.Qu()?0:navigator.keyboard||s.nr?1:2,touch:"ontouchstart"in n.G||navigator.maxTouchPoints>0,pointerEvents:n.G.PointerEvent&&("ontouchstart"in n.G||navigator.maxTouchPoints>0)}},42731:(e,t,i)=>{"use strict";i.d(t,{t:()=>s});const s={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:i(44320).K.text,INTERNAL_URI_LIST:"application/vnd.code.uri-list"}},8597:(e,t,i)=>{"use strict";i.d(t,{$:()=>Ue,BC:()=>Ie,BK:()=>j,Be:()=>F,Bx:()=>we,CE:()=>ze,Cl:()=>ee,Di:()=>Qe,Ej:()=>G,Er:()=>Se,Fv:()=>L,H4:()=>$,Hs:()=>Oe,Ij:()=>D,Iv:()=>w,L9:()=>H,Ln:()=>De,Mc:()=>et,OK:()=>Q,Oq:()=>M,PG:()=>P,Pl:()=>Ne,Q2:()=>b,QX:()=>X,TT:()=>$e,Tf:()=>je,Tr:()=>Y,U2:()=>_e,U3:()=>O,WU:()=>Be,Wt:()=>fe,X7:()=>se,XD:()=>Z,Xc:()=>I,ZF:()=>S,a:()=>re,a4:()=>qe,b2:()=>N,bo:()=>He,bq:()=>ie,cL:()=>z,fg:()=>V,fs:()=>Le,fz:()=>oe,gI:()=>Ye,h:()=>Je,i0:()=>Ge,jD:()=>We,jG:()=>te,jh:()=>ce,ko:()=>k,kx:()=>ye,li:()=>he,mU:()=>K,nR:()=>ne,nY:()=>Ee,pN:()=>Xe,q3:()=>R,sb:()=>Ce,sd:()=>Re,tG:()=>B,vT:()=>Ve,w5:()=>Ae,w_:()=>T,wk:()=>xe,xZ:()=>be,y6:()=>q,yt:()=>Ke,zK:()=>Te,zk:()=>_});var s=i(60413),n=i(55089),r=i(72962),o=i(47358),a=i(90766),c=i(64383),l=i(41234),h=i(83750),d=i(5662),u=i(36456),g=i(98067),p=i(85600),m=i(25893);const{registerWindow:f,getWindow:_,getDocument:v,getWindows:C,getWindowsCount:E,getWindowId:b,getWindowById:S,hasWindow:y,onDidRegisterWindow:w,onWillUnregisterWindow:R,onDidUnregisterWindow:L}=function(){const e=new Map;(0,m.y)(m.G,1);const t={window:m.G,disposables:new d.Cm};e.set(m.G.vscodeWindowId,t);const i=new l.vl,s=new l.vl,n=new l.vl;return{onDidRegisterWindow:i.event,onWillUnregisterWindow:n.event,onDidUnregisterWindow:s.event,registerWindow(t){if(e.has(t.vscodeWindowId))return d.jG.None;const r=new d.Cm,o={window:t,disposables:r.add(new d.Cm)};return e.set(t.vscodeWindowId,o),r.add((0,d.s)((()=>{e.delete(t.vscodeWindowId),s.fire(t)}))),r.add(k(t,we.BEFORE_UNLOAD,(()=>{n.fire(t)}))),i.fire(o),r},getWindows:()=>e.values(),getWindowsCount:()=>e.size,getWindowId:e=>e.vscodeWindowId,hasWindow:t=>e.has(t),getWindowById:function(i,s){return("number"===typeof i?e.get(i):void 0)??(s?t:void 0)},getWindow(e){const t=e;if(t?.ownerDocument?.defaultView)return t.ownerDocument.defaultView.window;const i=e;return i?.view?i.view.window:m.G},getDocument:e=>_(e).document}}();function T(e){for(;e.firstChild;)e.firstChild.remove()}class x{constructor(e,t,i,s){this._node=e,this._type=t,this._handler=i,this._options=s||!1,this._node.addEventListener(this._type,this._handler,this._options)}dispose(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)}}function k(e,t,i,s){return new x(e,t,i,s)}function A(e,t){return function(i){return t(new o.P(e,i))}}const N=function(e,t,i,s){let n=i;return"click"===t||"mousedown"===t||"contextmenu"===t?n=A(_(e),i):"keydown"!==t&&"keypress"!==t&&"keyup"!==t||(n=function(e){return function(t){return e(new r.Z(t))}}(i)),k(e,t,n,s)},I=function(e,t,i){return function(e,t,i){return k(e,g.un&&n.e.pointerEvents?we.POINTER_DOWN:we.MOUSE_DOWN,t,i)}(e,A(_(e),t),i)};function O(e,t,i){return(0,a.b7)(e,t,i)}class D extends a.A0{constructor(e,t){super(e,t)}}let M,P;class F extends a.vb{constructor(e){super(),this.defaultTarget=e&&_(e)}cancelAndSet(e,t,i){return super.cancelAndSet(e,t,i??this.defaultTarget)}}class U{constructor(e,t=0){this._runner=e,this.priority=t,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(e){(0,c.dz)(e)}}static sort(e,t){return t.priority-e.priority}}function H(e){return _(e).getComputedStyle(e,null)}function B(e,t){const i=_(e),s=i.document;if(e!==s.body)return new V(e.clientWidth,e.clientHeight);if(g.un&&i?.visualViewport)return new V(i.visualViewport.width,i.visualViewport.height);if(i?.innerWidth&&i.innerHeight)return new V(i.innerWidth,i.innerHeight);if(s.body&&s.body.clientWidth&&s.body.clientHeight)return new V(s.body.clientWidth,s.body.clientHeight);if(s.documentElement&&s.documentElement.clientWidth&&s.documentElement.clientHeight)return new V(s.documentElement.clientWidth,s.documentElement.clientHeight);if(t)return B(t);throw new Error("Unable to figure out browser width and height")}!function(){const e=new Map,t=new Map,i=new Map,s=new Map;P=(n,r,o=0)=>{const a=b(n),c=new U(r,o);let l=e.get(a);return l||(l=[],e.set(a,l)),l.push(c),i.get(a)||(i.set(a,!0),n.requestAnimationFrame((()=>(n=>{i.set(n,!1);const r=e.get(n)??[];for(t.set(n,r),e.set(n,[]),s.set(n,!0);r.length>0;)r.sort(U.sort),r.shift().execute();s.set(n,!1)})(a)))),c},M=(e,i,n)=>{const r=b(e);if(s.get(r)){const e=new U(i,n);let s=t.get(r);return s||(s=[],t.set(r,s)),s.push(e),e}return P(e,i,n)}}();class W{static convertToPixels(e,t){return parseFloat(t)||0}static getDimension(e,t,i){const s=H(e),n=s?s.getPropertyValue(t):"0";return W.convertToPixels(e,n)}static getBorderLeftWidth(e){return W.getDimension(e,"border-left-width","borderLeftWidth")}static getBorderRightWidth(e){return W.getDimension(e,"border-right-width","borderRightWidth")}static getBorderTopWidth(e){return W.getDimension(e,"border-top-width","borderTopWidth")}static getBorderBottomWidth(e){return W.getDimension(e,"border-bottom-width","borderBottomWidth")}static getPaddingLeft(e){return W.getDimension(e,"padding-left","paddingLeft")}static getPaddingRight(e){return W.getDimension(e,"padding-right","paddingRight")}static getPaddingTop(e){return W.getDimension(e,"padding-top","paddingTop")}static getPaddingBottom(e){return W.getDimension(e,"padding-bottom","paddingBottom")}static getMarginLeft(e){return W.getDimension(e,"margin-left","marginLeft")}static getMarginTop(e){return W.getDimension(e,"margin-top","marginTop")}static getMarginRight(e){return W.getDimension(e,"margin-right","marginRight")}static getMarginBottom(e){return W.getDimension(e,"margin-bottom","marginBottom")}}class V{static{this.None=new V(0,0)}constructor(e,t){this.width=e,this.height=t}with(e=this.width,t=this.height){return e!==this.width||t!==this.height?new V(e,t):this}static is(e){return"object"===typeof e&&"number"===typeof e.height&&"number"===typeof e.width}static lift(e){return e instanceof V?e:new V(e.width,e.height)}static equals(e,t){return e===t||!(!e||!t)&&(e.width===t.width&&e.height===t.height)}}function z(e){let t=e.offsetParent,i=e.offsetTop,s=e.offsetLeft;for(;null!==(e=e.parentNode)&&e!==e.ownerDocument.body&&e!==e.ownerDocument.documentElement;){i-=e.scrollTop;const n=J(e)?null:H(e);n&&(s-="rtl"!==n.direction?e.scrollLeft:-e.scrollLeft),e===t&&(s+=W.getBorderLeftWidth(e),i+=W.getBorderTopWidth(e),i+=e.offsetTop,s+=e.offsetLeft,t=e.offsetParent)}return{left:s,top:i}}function G(e,t,i){"number"===typeof t&&(e.style.width=`${t}px`),"number"===typeof i&&(e.style.height=`${i}px`)}function j(e){const t=e.getBoundingClientRect(),i=_(e);return{left:t.left+i.scrollX,top:t.top+i.scrollY,width:t.width,height:t.height}}function K(e){let t=e,i=1;do{const e=H(t).zoom;null!==e&&void 0!==e&&"1"!==e&&(i*=e),t=t.parentElement}while(null!==t&&t!==t.ownerDocument.documentElement);return i}function Y(e){const t=W.getMarginLeft(e)+W.getMarginRight(e);return e.offsetWidth+t}function q(e){const t=W.getBorderLeftWidth(e)+W.getBorderRightWidth(e),i=W.getPaddingLeft(e)+W.getPaddingRight(e);return e.offsetWidth-t-i}function $(e){const t=W.getBorderTopWidth(e)+W.getBorderBottomWidth(e),i=W.getPaddingTop(e)+W.getPaddingBottom(e);return e.offsetHeight-t-i}function Q(e){const t=W.getMarginTop(e)+W.getMarginBottom(e);return e.offsetHeight+t}function X(e,t){return Boolean(t?.contains(e))}function Z(e,t,i){return!!function(e,t,i){for(;e&&e.nodeType===e.ELEMENT_NODE;){if(e.classList.contains(t))return e;if(i)if("string"===typeof i){if(e.classList.contains(i))return null}else if(e===i)return null;e=e.parentNode}return null}(e,t,i)}function J(e){return e&&!!e.host&&!!e.mode}function ee(e){return!!te(e)}function te(e){for(;e.parentNode;){if(e===e.ownerDocument?.body)return null;e=e.parentNode}return J(e)?e:null}function ie(){let e=re().activeElement;for(;e?.shadowRoot;)e=e.shadowRoot.activeElement;return e}function se(e){return ie()===e}function ne(e){return X(ie(),e)}function re(){if(E()<=1)return m.G.document;return Array.from(C()).map((({window:e})=>e.document)).find((e=>e.hasFocus()))??m.G.document}function oe(){const e=re();return e.defaultView?.window??m.G}const ae=new Map;function ce(){return new le}class le{constructor(){this._currentCssStyle="",this._styleSheet=void 0}setStyle(e){e!==this._currentCssStyle&&(this._currentCssStyle=e,this._styleSheet?this._styleSheet.innerText=e:this._styleSheet=he(m.G.document.head,(t=>t.innerText=e)))}dispose(){this._styleSheet&&(this._styleSheet.remove(),this._styleSheet=void 0)}}function he(e=m.G.document.head,t,i){const s=document.createElement("style");if(s.type="text/css",s.media="screen",t?.(s),e.appendChild(s),i&&i.add((0,d.s)((()=>s.remove()))),e===m.G.document.head){const e=new Set;ae.set(s,e);for(const{window:t,disposables:n}of C()){if(t===m.G)continue;const r=n.add(de(s,e,t));i?.add(r)}}return s}function de(e,t,i){const s=new d.Cm,n=e.cloneNode(!0);i.document.head.appendChild(n),s.add((0,d.s)((()=>n.remove())));for(const r of me(e))n.sheet?.insertRule(r.cssText,n.sheet?.cssRules.length);return s.add(ue.observe(e,s,{childList:!0})((()=>{n.textContent=e.textContent}))),t.add(n),s.add((0,d.s)((()=>t.delete(n)))),s}const ue=new class{constructor(){this.mutationObservers=new Map}observe(e,t,i){let s=this.mutationObservers.get(e);s||(s=new Map,this.mutationObservers.set(e,s));const n=(0,p.tW)(i);let r=s.get(n);if(r)r.users+=1;else{const o=new l.vl,a=new MutationObserver((e=>o.fire(e)));a.observe(e,i);const c=r={users:1,observer:a,onDidMutate:o.event};t.add((0,d.s)((()=>{c.users-=1,0===c.users&&(o.dispose(),a.disconnect(),s?.delete(n),0===s?.size&&this.mutationObservers.delete(e))}))),s.set(n,r)}return r.onDidMutate}};let ge=null;function pe(){return ge||(ge=he()),ge}function me(e){return e?.sheet?.rules?e.sheet.rules:e?.sheet?.cssRules?e.sheet.cssRules:[]}function fe(e,t,i=pe()){if(i&&t){i.sheet?.insertRule(`${e} {${t}}`,0);for(const s of ae.get(i)??[])fe(e,t,s)}}function _e(e,t=pe()){if(!t)return;const i=me(t),s=[];for(let n=0;n<i.length;n++){const t=i[n];ve(t)&&-1!==t.selectorText.indexOf(e)&&s.push(n)}for(let n=s.length-1;n>=0;n--)t.sheet?.deleteRule(s[n]);for(const n of ae.get(t)??[])_e(e,n)}function ve(e){return"string"===typeof e.selectorText}function Ce(e){return e instanceof HTMLElement||e instanceof _(e).HTMLElement}function Ee(e){return e instanceof HTMLAnchorElement||e instanceof _(e).HTMLAnchorElement}function be(e){return e instanceof SVGElement||e instanceof _(e).SVGElement}function Se(e){return e instanceof MouseEvent||e instanceof _(e).MouseEvent}function ye(e){return e instanceof KeyboardEvent||e instanceof _(e).KeyboardEvent}const we={CLICK:"click",AUXCLICK:"auxclick",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_WHEEL:"wheel",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",POINTER_LEAVE:"pointerleave",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",PAGE_SHOW:"pageshow",PAGE_HIDE:"pagehide",PASTE:"paste",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:s.Tc?"webkitAnimationStart":"animationstart",ANIMATION_END:s.Tc?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:s.Tc?"webkitAnimationIteration":"animationiteration"};function Re(e){const t=e;return!(!t||"function"!==typeof t.preventDefault||"function"!==typeof t.stopPropagation)}const Le={stop:(e,t)=>(e.preventDefault(),t&&e.stopPropagation(),e)};function Te(e){const t=[];for(let i=0;e&&e.nodeType===e.ELEMENT_NODE;i++)t[i]=e.scrollTop,e=e.parentNode;return t}function xe(e,t){for(let i=0;e&&e.nodeType===e.ELEMENT_NODE;i++)e.scrollTop!==t[i]&&(e.scrollTop=t[i]),e=e.parentNode}class ke extends d.jG{static hasFocusWithin(e){if(Ce(e)){const t=te(e);return X(t?t.activeElement:e.ownerDocument.activeElement,e)}{const t=e;return X(t.document.activeElement,t.document)}}constructor(e){super(),this._onDidFocus=this._register(new l.vl),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new l.vl),this.onDidBlur=this._onDidBlur.event;let t=ke.hasFocusWithin(e),i=!1;const s=()=>{i=!1,t||(t=!0,this._onDidFocus.fire())},n=()=>{t&&(i=!0,(Ce(e)?_(e):e).setTimeout((()=>{i&&(i=!1,t=!1,this._onDidBlur.fire())}),0))};this._refreshStateHandler=()=>{ke.hasFocusWithin(e)!==t&&(t?n():s())},this._register(k(e,we.FOCUS,s,!0)),this._register(k(e,we.BLUR,n,!0)),Ce(e)&&(this._register(k(e,we.FOCUS_IN,(()=>this._refreshStateHandler()))),this._register(k(e,we.FOCUS_OUT,(()=>this._refreshStateHandler()))))}}function Ae(e){return new ke(e)}function Ne(e,t){return e.after(t),t}function Ie(e,...t){if(e.append(...t),1===t.length&&"string"!==typeof t[0])return t[0]}function Oe(e,t){return e.insertBefore(t,e.firstChild),t}function De(e,...t){e.innerText="",Ie(e,...t)}const Me=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;var Pe;function Fe(e,t,i,...s){const n=Me.exec(t);if(!n)throw new Error("Bad use of emmet");const r=n[1]||"div";let o;return o=e!==Pe.HTML?document.createElementNS(e,r):document.createElement(r),n[3]&&(o.id=n[3]),n[4]&&(o.className=n[4].replace(/\./g," ").trim()),i&&Object.entries(i).forEach((([e,t])=>{"undefined"!==typeof t&&(/^on\w+$/.test(e)?o[e]=t:"selected"===e?t&&o.setAttribute(e,"true"):o.setAttribute(e,t))})),o.append(...s),o}function Ue(e,t,...i){return Fe(Pe.HTML,e,t,...i)}function He(e,...t){e?Be(...t):We(...t)}function Be(...e){for(const t of e)t.style.display="",t.removeAttribute("aria-hidden")}function We(...e){for(const t of e)t.style.display="none",t.setAttribute("aria-hidden","true")}function Ve(e,t){const i=e.devicePixelRatio*t;return Math.max(1,Math.floor(i))/e.devicePixelRatio}function ze(e){m.G.open(e,"_blank","noopener")}function Ge(e,t){const i=()=>{t(),s=P(e,i)};let s=P(e,i);return(0,d.s)((()=>s.dispose()))}function je(e){return e?`url('${u.zl.uriToBrowserUri(e).toString(!0).replace(/'/g,"%27")}')`:"url('')"}function Ke(e){return`'${e.replace(/'/g,"%27")}'`}function Ye(e,t){if(void 0!==e){const i=e.match(/^\s*var\((.+)\)$/);if(i){const e=i[1].split(",",2);return 2===e.length&&(t=Ye(e[1].trim(),t)),`var(${e[0]}, ${t})`}return e}return t}function qe(e,t=!1){const i=document.createElement("a");return h.$w("afterSanitizeAttributes",(s=>{for(const n of["href","src"])if(s.hasAttribute(n)){const r=s.getAttribute(n);if("href"===n&&r.startsWith("#"))continue;if(i.href=r,!e.includes(i.protocol.replace(/:$/,""))){if(t&&"src"===n&&i.href.startsWith("data:"))continue;s.removeAttribute(n)}}})),(0,d.s)((()=>{h.SV("afterSanitizeAttributes")}))}!function(e){e.HTML="http://www.w3.org/1999/xhtml",e.SVG="http://www.w3.org/2000/svg"}(Pe||(Pe={})),Ue.SVG=function(e,t,...i){return Fe(Pe.SVG,e,t,...i)},u.Ez.setPreferredWebSchema(/^https:/.test(m.G.location.href)?"https":"http");const $e=Object.freeze(["a","abbr","b","bdo","blockquote","br","caption","cite","code","col","colgroup","dd","del","details","dfn","div","dl","dt","em","figcaption","figure","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","label","li","mark","ol","p","pre","q","rp","rt","ruby","samp","small","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","time","tr","tt","u","ul","var","video","wbr"]);Object.freeze({ALLOWED_TAGS:["a","button","blockquote","code","div","h1","h2","h3","h4","h5","h6","hr","input","label","li","p","pre","select","small","span","strong","textarea","ul","ol"],ALLOWED_ATTR:["href","data-href","data-command","target","title","name","src","alt","class","id","role","tabindex","style","data-code","width","height","align","x-dispatch","required","checked","placeholder","type","start"],RETURN_DOM:!1,RETURN_DOM_FRAGMENT:!1,RETURN_TRUSTED_TYPE:!0});class Qe extends l.vl{constructor(){super(),this._subscriptions=new d.Cm,this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1},this._subscriptions.add(l.Jh.runAndSubscribe(w,(({window:e,disposables:t})=>this.registerListeners(e,t)),{window:m.G,disposables:this._subscriptions}))}registerListeners(e,t){t.add(k(e,"keydown",(e=>{if(e.defaultPrevented)return;const t=new r.Z(e);if(6!==t.keyCode||!e.repeat){if(e.altKey&&!this._keyStatus.altKey)this._keyStatus.lastKeyPressed="alt";else if(e.ctrlKey&&!this._keyStatus.ctrlKey)this._keyStatus.lastKeyPressed="ctrl";else if(e.metaKey&&!this._keyStatus.metaKey)this._keyStatus.lastKeyPressed="meta";else if(e.shiftKey&&!this._keyStatus.shiftKey)this._keyStatus.lastKeyPressed="shift";else{if(6===t.keyCode)return;this._keyStatus.lastKeyPressed=void 0}this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyPressed&&(this._keyStatus.event=e,this.fire(this._keyStatus))}}),!0)),t.add(k(e,"keyup",(e=>{e.defaultPrevented||(!e.altKey&&this._keyStatus.altKey?this._keyStatus.lastKeyReleased="alt":!e.ctrlKey&&this._keyStatus.ctrlKey?this._keyStatus.lastKeyReleased="ctrl":!e.metaKey&&this._keyStatus.metaKey?this._keyStatus.lastKeyReleased="meta":!e.shiftKey&&this._keyStatus.shiftKey?this._keyStatus.lastKeyReleased="shift":this._keyStatus.lastKeyReleased=void 0,this._keyStatus.lastKeyPressed!==this._keyStatus.lastKeyReleased&&(this._keyStatus.lastKeyPressed=void 0),this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyReleased&&(this._keyStatus.event=e,this.fire(this._keyStatus)))}),!0)),t.add(k(e.document.body,"mousedown",(()=>{this._keyStatus.lastKeyPressed=void 0}),!0)),t.add(k(e.document.body,"mouseup",(()=>{this._keyStatus.lastKeyPressed=void 0}),!0)),t.add(k(e.document.body,"mousemove",(e=>{e.buttons&&(this._keyStatus.lastKeyPressed=void 0)}),!0)),t.add(k(e,"blur",(()=>{this.resetKeyStatus()})))}get keyStatus(){return this._keyStatus}resetKeyStatus(){this.doResetKeyStatus(),this.fire(this._keyStatus)}doResetKeyStatus(){this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1}}static getInstance(){return Qe.instance||(Qe.instance=new Qe),Qe.instance}dispose(){super.dispose(),this._subscriptions.dispose()}}class Xe extends d.jG{constructor(e,t){super(),this.element=e,this.callbacks=t,this.counter=0,this.dragStartTime=0,this.registerListeners()}registerListeners(){this.callbacks.onDragStart&&this._register(k(this.element,we.DRAG_START,(e=>{this.callbacks.onDragStart?.(e)}))),this.callbacks.onDrag&&this._register(k(this.element,we.DRAG,(e=>{this.callbacks.onDrag?.(e)}))),this._register(k(this.element,we.DRAG_ENTER,(e=>{this.counter++,this.dragStartTime=e.timeStamp,this.callbacks.onDragEnter?.(e)}))),this._register(k(this.element,we.DRAG_OVER,(e=>{e.preventDefault(),this.callbacks.onDragOver?.(e,e.timeStamp-this.dragStartTime)}))),this._register(k(this.element,we.DRAG_LEAVE,(e=>{this.counter--,0===this.counter&&(this.dragStartTime=0,this.callbacks.onDragLeave?.(e))}))),this._register(k(this.element,we.DRAG_END,(e=>{this.counter=0,this.dragStartTime=0,this.callbacks.onDragEnd?.(e)}))),this._register(k(this.element,we.DROP,(e=>{this.counter=0,this.dragStartTime=0,this.callbacks.onDrop?.(e)})))}}const Ze=/(?<tag>[\w\-]+)?(?:#(?<id>[\w\-]+))?(?<class>(?:\.(?:[\w\-]+))*)(?:@(?<name>(?:[\w\_])+))?/;function Je(e,...t){let i,s;Array.isArray(t[0])?(i={},s=t[0]):(i=t[0]||{},s=t[1]);const n=Ze.exec(e);if(!n||!n.groups)throw new Error("Bad use of h");const r=n.groups.tag||"div",o=document.createElement(r);n.groups.id&&(o.id=n.groups.id);const a=[];if(n.groups.class)for(const l of n.groups.class.split("."))""!==l&&a.push(l);if(void 0!==i.className)for(const l of i.className.split("."))""!==l&&a.push(l);a.length>0&&(o.className=a.join(" "));const c={};if(n.groups.name&&(c[n.groups.name]=o),s)for(const l of s)Ce(l)?o.appendChild(l):"string"===typeof l?o.append(l):"root"in l&&(Object.assign(c,l),o.appendChild(l.root));for(const[l,h]of Object.entries(i))if("className"!==l)if("style"===l)for(const[e,t]of Object.entries(h))o.style.setProperty(tt(e),"number"===typeof t?t+"px":""+t);else"tabIndex"===l?o.tabIndex=h:o.setAttribute(tt(l),h.toString());return c.root=o,c}function et(e,...t){let i,s;Array.isArray(t[0])?(i={},s=t[0]):(i=t[0]||{},s=t[1]);const n=Ze.exec(e);if(!n||!n.groups)throw new Error("Bad use of h");const r=n.groups.tag||"div",o=document.createElementNS("http://www.w3.org/2000/svg",r);n.groups.id&&(o.id=n.groups.id);const a=[];if(n.groups.class)for(const l of n.groups.class.split("."))""!==l&&a.push(l);if(void 0!==i.className)for(const l of i.className.split("."))""!==l&&a.push(l);a.length>0&&(o.className=a.join(" "));const c={};if(n.groups.name&&(c[n.groups.name]=o),s)for(const l of s)Ce(l)?o.appendChild(l):"string"===typeof l?o.append(l):"root"in l&&(Object.assign(c,l),o.appendChild(l.root));for(const[l,h]of Object.entries(i))if("className"!==l)if("style"===l)for(const[e,t]of Object.entries(h))o.style.setProperty(tt(e),"number"===typeof t?t+"px":""+t);else"tabIndex"===l?o.tabIndex=h:o.setAttribute(tt(l),h.toString());return c.root=o,c}function tt(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}},83750:(e,t,i)=>{"use strict";i.d(t,{$w:()=>ae,SV:()=>ce,aj:()=>oe});const{entries:s,setPrototypeOf:n,isFrozen:r,getPrototypeOf:o,getOwnPropertyDescriptor:a}=Object;let{freeze:c,seal:l,create:h}=Object,{apply:d,construct:u}="undefined"!==typeof Reflect&&Reflect;c||(c=function(e){return e}),l||(l=function(e){return e}),d||(d=function(e,t,i){return e.apply(t,i)}),u||(u=function(e,t){return new e(...t)});const g=L(Array.prototype.forEach),p=L(Array.prototype.pop),m=L(Array.prototype.push),f=L(String.prototype.toLowerCase),_=L(String.prototype.toString),v=L(String.prototype.match),C=L(String.prototype.replace),E=L(String.prototype.indexOf),b=L(String.prototype.trim),S=L(Object.prototype.hasOwnProperty),y=L(RegExp.prototype.test),w=(R=TypeError,function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return u(R,t)});var R;function L(e){return function(t){for(var i=arguments.length,s=new Array(i>1?i-1:0),n=1;n<i;n++)s[n-1]=arguments[n];return d(e,t,s)}}function T(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f;n&&n(e,null);let s=t.length;for(;s--;){let n=t[s];if("string"===typeof n){const e=i(n);e!==n&&(r(t)||(t[s]=e),n=e)}e[n]=!0}return e}function x(e){for(let t=0;t<e.length;t++){S(e,t)||(e[t]=null)}return e}function k(e){const t=h(null);for(const[i,n]of s(e)){S(e,i)&&(Array.isArray(n)?t[i]=x(n):n&&"object"===typeof n&&n.constructor===Object?t[i]=k(n):t[i]=n)}return t}function A(e,t){for(;null!==e;){const i=a(e,t);if(i){if(i.get)return L(i.get);if("function"===typeof i.value)return L(i.value)}e=o(e)}return function(){return null}}const N=c(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),I=c(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),O=c(["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"]),D=c(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),M=c(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),P=c(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),F=c(["#text"]),U=c(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),H=c(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),B=c(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),W=c(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),V=l(/\{\{[\w\W]*|[\w\W]*\}\}/gm),z=l(/<%[\w\W]*|[\w\W]*%>/gm),G=l(/\${[\w\W]*}/gm),j=l(/^data-[\-\w.\u00B7-\uFFFF]/),K=l(/^aria-[\-\w]+$/),Y=l(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),q=l(/^(?:\w+script|data):/i),$=l(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Q=l(/^html$/i),X=l(/^[a-z][.\w]*(-[.\w]+)+$/i);var Z=Object.freeze({__proto__:null,MUSTACHE_EXPR:V,ERB_EXPR:z,TMPLIT_EXPR:G,DATA_ATTR:j,ARIA_ATTR:K,IS_ALLOWED_URI:Y,IS_SCRIPT_OR_DATA:q,ATTR_WHITESPACE:$,DOCTYPE_NAME:Q,CUSTOM_ELEMENT:X});const J=1,ee=3,te=7,ie=8,se=9,ne=function(){return"undefined"===typeof window?null:window};var re=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ne();const i=t=>e(t);if(i.version="3.1.7",i.removed=[],!t||!t.document||t.document.nodeType!==se)return i.isSupported=!1,i;let{document:n}=t;const r=n,o=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:l,Node:d,Element:u,NodeFilter:R,NamedNodeMap:L=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:x,DOMParser:V,trustedTypes:z}=t,G=u.prototype,j=A(G,"cloneNode"),K=A(G,"remove"),q=A(G,"nextSibling"),$=A(G,"childNodes"),X=A(G,"parentNode");if("function"===typeof l){const e=n.createElement("template");e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let re,oe="";const{implementation:ae,createNodeIterator:ce,createDocumentFragment:le,getElementsByTagName:he}=n,{importNode:de}=r;let ue={};i.isSupported="function"===typeof s&&"function"===typeof X&&ae&&void 0!==ae.createHTMLDocument;const{MUSTACHE_EXPR:ge,ERB_EXPR:pe,TMPLIT_EXPR:me,DATA_ATTR:fe,ARIA_ATTR:_e,IS_SCRIPT_OR_DATA:ve,ATTR_WHITESPACE:Ce,CUSTOM_ELEMENT:Ee}=Z;let{IS_ALLOWED_URI:be}=Z,Se=null;const ye=T({},[...N,...I,...O,...M,...F]);let we=null;const Re=T({},[...U,...H,...B,...W]);let Le=Object.seal(h(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Te=null,xe=null,ke=!0,Ae=!0,Ne=!1,Ie=!0,Oe=!1,De=!0,Me=!1,Pe=!1,Fe=!1,Ue=!1,He=!1,Be=!1,We=!0,Ve=!1,ze=!0,Ge=!1,je={},Ke=null;const Ye=T({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let qe=null;const $e=T({},["audio","video","img","source","image","track"]);let Qe=null;const Xe=T({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ze="http://www.w3.org/1998/Math/MathML",Je="http://www.w3.org/2000/svg",et="http://www.w3.org/1999/xhtml";let tt=et,it=!1,st=null;const nt=T({},[Ze,Je,et],_);let rt=null;const ot=["application/xhtml+xml","text/html"];let at=null,ct=null;const lt=n.createElement("form"),ht=function(e){return e instanceof RegExp||e instanceof Function},dt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ct||ct!==e){if(e&&"object"===typeof e||(e={}),e=k(e),rt=-1===ot.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,at="application/xhtml+xml"===rt?_:f,Se=S(e,"ALLOWED_TAGS")?T({},e.ALLOWED_TAGS,at):ye,we=S(e,"ALLOWED_ATTR")?T({},e.ALLOWED_ATTR,at):Re,st=S(e,"ALLOWED_NAMESPACES")?T({},e.ALLOWED_NAMESPACES,_):nt,Qe=S(e,"ADD_URI_SAFE_ATTR")?T(k(Xe),e.ADD_URI_SAFE_ATTR,at):Xe,qe=S(e,"ADD_DATA_URI_TAGS")?T(k($e),e.ADD_DATA_URI_TAGS,at):$e,Ke=S(e,"FORBID_CONTENTS")?T({},e.FORBID_CONTENTS,at):Ye,Te=S(e,"FORBID_TAGS")?T({},e.FORBID_TAGS,at):{},xe=S(e,"FORBID_ATTR")?T({},e.FORBID_ATTR,at):{},je=!!S(e,"USE_PROFILES")&&e.USE_PROFILES,ke=!1!==e.ALLOW_ARIA_ATTR,Ae=!1!==e.ALLOW_DATA_ATTR,Ne=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ie=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Oe=e.SAFE_FOR_TEMPLATES||!1,De=!1!==e.SAFE_FOR_XML,Me=e.WHOLE_DOCUMENT||!1,Ue=e.RETURN_DOM||!1,He=e.RETURN_DOM_FRAGMENT||!1,Be=e.RETURN_TRUSTED_TYPE||!1,Fe=e.FORCE_BODY||!1,We=!1!==e.SANITIZE_DOM,Ve=e.SANITIZE_NAMED_PROPS||!1,ze=!1!==e.KEEP_CONTENT,Ge=e.IN_PLACE||!1,be=e.ALLOWED_URI_REGEXP||Y,tt=e.NAMESPACE||et,Le=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&ht(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Le.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ht(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Le.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"===typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Le.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Oe&&(Ae=!1),He&&(Ue=!0),je&&(Se=T({},F),we=[],!0===je.html&&(T(Se,N),T(we,U)),!0===je.svg&&(T(Se,I),T(we,H),T(we,W)),!0===je.svgFilters&&(T(Se,O),T(we,H),T(we,W)),!0===je.mathMl&&(T(Se,M),T(we,B),T(we,W))),e.ADD_TAGS&&(Se===ye&&(Se=k(Se)),T(Se,e.ADD_TAGS,at)),e.ADD_ATTR&&(we===Re&&(we=k(we)),T(we,e.ADD_ATTR,at)),e.ADD_URI_SAFE_ATTR&&T(Qe,e.ADD_URI_SAFE_ATTR,at),e.FORBID_CONTENTS&&(Ke===Ye&&(Ke=k(Ke)),T(Ke,e.FORBID_CONTENTS,at)),ze&&(Se["#text"]=!0),Me&&T(Se,["html","head","body"]),Se.table&&(T(Se,["tbody"]),delete Te.tbody),e.TRUSTED_TYPES_POLICY){if("function"!==typeof e.TRUSTED_TYPES_POLICY.createHTML)throw w('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!==typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw w('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');re=e.TRUSTED_TYPES_POLICY,oe=re.createHTML("")}else void 0===re&&(re=function(e,t){if("object"!==typeof e||"function"!==typeof e.createPolicy)return null;let i=null;const s="data-tt-policy-suffix";t&&t.hasAttribute(s)&&(i=t.getAttribute(s));const n="dompurify"+(i?"#"+i:"");try{return e.createPolicy(n,{createHTML:e=>e,createScriptURL:e=>e})}catch(r){return console.warn("TrustedTypes policy "+n+" could not be created."),null}}(z,o)),null!==re&&"string"===typeof oe&&(oe=re.createHTML(""));c&&c(e),ct=e}},ut=T({},["mi","mo","mn","ms","mtext"]),gt=T({},["annotation-xml"]),pt=T({},["title","style","font","a","script"]),mt=T({},[...I,...O,...D]),ft=T({},[...M,...P]),_t=function(e){m(i.removed,{element:e});try{X(e).removeChild(e)}catch(t){K(e)}},vt=function(e,t){try{m(i.removed,{attribute:t.getAttributeNode(e),from:t})}catch(s){m(i.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!we[e])if(Ue||He)try{_t(t)}catch(s){}else try{t.setAttribute(e,"")}catch(s){}},Ct=function(e){let t=null,i=null;if(Fe)e="<remove></remove>"+e;else{const t=v(e,/^[\r\n\t ]+/);i=t&&t[0]}"application/xhtml+xml"===rt&&tt===et&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const s=re?re.createHTML(e):e;if(tt===et)try{t=(new V).parseFromString(s,rt)}catch(o){}if(!t||!t.documentElement){t=ae.createDocument(tt,"template",null);try{t.documentElement.innerHTML=it?oe:s}catch(o){}}const r=t.body||t.documentElement;return e&&i&&r.insertBefore(n.createTextNode(i),r.childNodes[0]||null),tt===et?he.call(t,Me?"html":"body")[0]:Me?t.documentElement:r},Et=function(e){return ce.call(e.ownerDocument||e,e,R.SHOW_ELEMENT|R.SHOW_COMMENT|R.SHOW_TEXT|R.SHOW_PROCESSING_INSTRUCTION|R.SHOW_CDATA_SECTION,null)},bt=function(e){return e instanceof x&&("string"!==typeof e.nodeName||"string"!==typeof e.textContent||"function"!==typeof e.removeChild||!(e.attributes instanceof L)||"function"!==typeof e.removeAttribute||"function"!==typeof e.setAttribute||"string"!==typeof e.namespaceURI||"function"!==typeof e.insertBefore||"function"!==typeof e.hasChildNodes)},St=function(e){return"function"===typeof d&&e instanceof d},yt=function(e,t,s){ue[e]&&g(ue[e],(e=>{e.call(i,t,s,ct)}))},wt=function(e){let t=null;if(yt("beforeSanitizeElements",e,null),bt(e))return _t(e),!0;const s=at(e.nodeName);if(yt("uponSanitizeElement",e,{tagName:s,allowedTags:Se}),e.hasChildNodes()&&!St(e.firstElementChild)&&y(/<[/\w]/g,e.innerHTML)&&y(/<[/\w]/g,e.textContent))return _t(e),!0;if(e.nodeType===te)return _t(e),!0;if(De&&e.nodeType===ie&&y(/<[/\w]/g,e.data))return _t(e),!0;if(!Se[s]||Te[s]){if(!Te[s]&&Lt(s)){if(Le.tagNameCheck instanceof RegExp&&y(Le.tagNameCheck,s))return!1;if(Le.tagNameCheck instanceof Function&&Le.tagNameCheck(s))return!1}if(ze&&!Ke[s]){const t=X(e)||e.parentNode,i=$(e)||e.childNodes;if(i&&t){for(let s=i.length-1;s>=0;--s){const n=j(i[s],!0);n.__removalCount=(e.__removalCount||0)+1,t.insertBefore(n,q(e))}}}return _t(e),!0}return e instanceof u&&!function(e){let t=X(e);t&&t.tagName||(t={namespaceURI:tt,tagName:"template"});const i=f(e.tagName),s=f(t.tagName);return!!st[e.namespaceURI]&&(e.namespaceURI===Je?t.namespaceURI===et?"svg"===i:t.namespaceURI===Ze?"svg"===i&&("annotation-xml"===s||ut[s]):Boolean(mt[i]):e.namespaceURI===Ze?t.namespaceURI===et?"math"===i:t.namespaceURI===Je?"math"===i&>[s]:Boolean(ft[i]):e.namespaceURI===et?!(t.namespaceURI===Je&&!gt[s])&&!(t.namespaceURI===Ze&&!ut[s])&&!ft[i]&&(pt[i]||!mt[i]):!("application/xhtml+xml"!==rt||!st[e.namespaceURI]))}(e)?(_t(e),!0):"noscript"!==s&&"noembed"!==s&&"noframes"!==s||!y(/<\/no(script|embed|frames)/i,e.innerHTML)?(Oe&&e.nodeType===ee&&(t=e.textContent,g([ge,pe,me],(e=>{t=C(t,e," ")})),e.textContent!==t&&(m(i.removed,{element:e.cloneNode()}),e.textContent=t)),yt("afterSanitizeElements",e,null),!1):(_t(e),!0)},Rt=function(e,t,i){if(We&&("id"===t||"name"===t)&&(i in n||i in lt))return!1;if(Ae&&!xe[t]&&y(fe,t));else if(ke&&y(_e,t));else if(!we[t]||xe[t]){if(!(Lt(e)&&(Le.tagNameCheck instanceof RegExp&&y(Le.tagNameCheck,e)||Le.tagNameCheck instanceof Function&&Le.tagNameCheck(e))&&(Le.attributeNameCheck instanceof RegExp&&y(Le.attributeNameCheck,t)||Le.attributeNameCheck instanceof Function&&Le.attributeNameCheck(t))||"is"===t&&Le.allowCustomizedBuiltInElements&&(Le.tagNameCheck instanceof RegExp&&y(Le.tagNameCheck,i)||Le.tagNameCheck instanceof Function&&Le.tagNameCheck(i))))return!1}else if(Qe[t]);else if(y(be,C(i,Ce,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==E(i,"data:")||!qe[e]){if(Ne&&!y(ve,C(i,Ce,"")));else if(i)return!1}else;return!0},Lt=function(e){return"annotation-xml"!==e&&v(e,Ee)},Tt=function(e){yt("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:we};let n=t.length;for(;n--;){const o=t[n],{name:a,namespaceURI:c,value:l}=o,h=at(a);let d="value"===a?l:b(l);if(s.attrName=h,s.attrValue=d,s.keepAttr=!0,s.forceKeepAttr=void 0,yt("uponSanitizeAttribute",e,s),d=s.attrValue,s.forceKeepAttr)continue;if(vt(a,e),!s.keepAttr)continue;if(!Ie&&y(/\/>/i,d)){vt(a,e);continue}Oe&&g([ge,pe,me],(e=>{d=C(d,e," ")}));const u=at(e.nodeName);if(Rt(u,h,d))if(!Ve||"id"!==h&&"name"!==h||(vt(a,e),d="user-content-"+d),De&&y(/((--!?|])>)|<\/(style|title)/i,d))vt(a,e);else{if(re&&"object"===typeof z&&"function"===typeof z.getAttributeType)if(c);else switch(z.getAttributeType(u,h)){case"TrustedHTML":d=re.createHTML(d);break;case"TrustedScriptURL":d=re.createScriptURL(d)}try{c?e.setAttributeNS(c,a,d):e.setAttribute(a,d),bt(e)?_t(e):p(i.removed)}catch(r){}}}yt("afterSanitizeAttributes",e,null)},xt=function e(t){let i=null;const s=Et(t);for(yt("beforeSanitizeShadowDOM",t,null);i=s.nextNode();)yt("uponSanitizeShadowNode",i,null),wt(i)||(i.content instanceof a&&e(i.content),Tt(i));yt("afterSanitizeShadowDOM",t,null)};return i.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=null,n=null,o=null,c=null;if(it=!e,it&&(e="\x3c!--\x3e"),"string"!==typeof e&&!St(e)){if("function"!==typeof e.toString)throw w("toString is not a function");if("string"!==typeof(e=e.toString()))throw w("dirty is not a string, aborting")}if(!i.isSupported)return e;if(Pe||dt(t),i.removed=[],"string"===typeof e&&(Ge=!1),Ge){if(e.nodeName){const t=at(e.nodeName);if(!Se[t]||Te[t])throw w("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof d)s=Ct("\x3c!----\x3e"),n=s.ownerDocument.importNode(e,!0),n.nodeType===J&&"BODY"===n.nodeName||"HTML"===n.nodeName?s=n:s.appendChild(n);else{if(!Ue&&!Oe&&!Me&&-1===e.indexOf("<"))return re&&Be?re.createHTML(e):e;if(s=Ct(e),!s)return Ue?null:Be?oe:""}s&&Fe&&_t(s.firstChild);const l=Et(Ge?e:s);for(;o=l.nextNode();)wt(o)||(o.content instanceof a&&xt(o.content),Tt(o));if(Ge)return e;if(Ue){if(He)for(c=le.call(s.ownerDocument);s.firstChild;)c.appendChild(s.firstChild);else c=s;return(we.shadowroot||we.shadowrootmode)&&(c=de.call(r,c,!0)),c}let h=Me?s.outerHTML:s.innerHTML;return Me&&Se["!doctype"]&&s.ownerDocument&&s.ownerDocument.doctype&&s.ownerDocument.doctype.name&&y(Q,s.ownerDocument.doctype.name)&&(h="<!DOCTYPE "+s.ownerDocument.doctype.name+">\n"+h),Oe&&g([ge,pe,me],(e=>{h=C(h,e," ")})),re&&Be?re.createHTML(h):h},i.setConfig=function(){dt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Pe=!0},i.clearConfig=function(){ct=null,Pe=!1},i.isValidAttribute=function(e,t,i){ct||dt({});const s=at(e),n=at(t);return Rt(s,n,i)},i.addHook=function(e,t){"function"===typeof t&&(ue[e]=ue[e]||[],m(ue[e],t))},i.removeHook=function(e){if(ue[e])return p(ue[e])},i.removeHooks=function(e){ue[e]&&(ue[e]=[])},i.removeAllHooks=function(){ue={}},i}();re.version,re.isSupported;const oe=re.sanitize,ae=(re.setConfig,re.clearConfig,re.isValidAttribute,re.addHook),ce=re.removeHook;re.removeHooks,re.removeAllHooks},56245:(e,t,i)=>{"use strict";i.d(t,{f:()=>n});var s=i(41234);class n{get event(){return this.emitter.event}constructor(e,t,i){const n=e=>this.emitter.fire(e);this.emitter=new s.vl({onWillAddFirstListener:()=>e.addEventListener(t,n,i),onDidRemoveLastListener:()=>e.removeEventListener(t,n,i)})}dispose(){this.emitter.dispose()}}},55275:(e,t,i)=>{"use strict";i.d(t,{D:()=>s,Z:()=>r});class s{constructor(e){this.domNode=e,this._maxWidth="",this._width="",this._height="",this._top="",this._left="",this._bottom="",this._right="",this._paddingLeft="",this._fontFamily="",this._fontWeight="",this._fontSize="",this._fontStyle="",this._fontFeatureSettings="",this._fontVariationSettings="",this._textDecoration="",this._lineHeight="",this._letterSpacing="",this._className="",this._display="",this._position="",this._visibility="",this._color="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}setMaxWidth(e){const t=n(e);this._maxWidth!==t&&(this._maxWidth=t,this.domNode.style.maxWidth=this._maxWidth)}setWidth(e){const t=n(e);this._width!==t&&(this._width=t,this.domNode.style.width=this._width)}setHeight(e){const t=n(e);this._height!==t&&(this._height=t,this.domNode.style.height=this._height)}setTop(e){const t=n(e);this._top!==t&&(this._top=t,this.domNode.style.top=this._top)}setLeft(e){const t=n(e);this._left!==t&&(this._left=t,this.domNode.style.left=this._left)}setBottom(e){const t=n(e);this._bottom!==t&&(this._bottom=t,this.domNode.style.bottom=this._bottom)}setRight(e){const t=n(e);this._right!==t&&(this._right=t,this.domNode.style.right=this._right)}setPaddingLeft(e){const t=n(e);this._paddingLeft!==t&&(this._paddingLeft=t,this.domNode.style.paddingLeft=this._paddingLeft)}setFontFamily(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(e){const t=n(e);this._fontSize!==t&&(this._fontSize=t,this.domNode.style.fontSize=this._fontSize)}setFontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this.domNode.style.fontStyle=this._fontStyle)}setFontFeatureSettings(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setFontVariationSettings(e){this._fontVariationSettings!==e&&(this._fontVariationSettings=e,this.domNode.style.fontVariationSettings=this._fontVariationSettings)}setTextDecoration(e){this._textDecoration!==e&&(this._textDecoration=e,this.domNode.style.textDecoration=this._textDecoration)}setLineHeight(e){const t=n(e);this._lineHeight!==t&&(this._lineHeight=t,this.domNode.style.lineHeight=this._lineHeight)}setLetterSpacing(e){const t=n(e);this._letterSpacing!==t&&(this._letterSpacing=t,this.domNode.style.letterSpacing=this._letterSpacing)}setClassName(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)}toggleClassName(e,t){this.domNode.classList.toggle(e,t),this._className=this.domNode.className}setDisplay(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)}setPosition(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)}setColor(e){this._color!==e&&(this._color=e,this.domNode.style.color=this._color)}setBackgroundColor(e){this._backgroundColor!==e&&(this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}setBoxShadow(e){this._boxShadow!==e&&(this._boxShadow=e,this.domNode.style.boxShadow=e)}setContain(e){this._contain!==e&&(this._contain=e,this.domNode.style.contain=this._contain)}setAttribute(e,t){this.domNode.setAttribute(e,t)}removeAttribute(e){this.domNode.removeAttribute(e)}appendChild(e){this.domNode.appendChild(e.domNode)}removeChild(e){this.domNode.removeChild(e.domNode)}}function n(e){return"number"===typeof e?`${e}px`:e}function r(e){return new s(e)}},49435:(e,t,i)=>{"use strict";i.d(t,{z:()=>n});var s=i(98067);const n=s.uF?'"Segoe WPC", "Segoe UI", sans-serif':s.zx?"-apple-system, BlinkMacSystemFont, sans-serif":'system-ui, "Ubuntu", "Droid Sans", sans-serif'},27661:(e,t,i)=>{"use strict";i.d(t,{S5:()=>n,n:()=>o,yk:()=>r});var s=i(8597);function n(e,t={}){const i=o(t);return i.textContent=e,i}function r(e,t={}){const i=o(t);return c(i,function(e,t){const i={type:1,children:[]};let s=0,n=i;const r=[],o=new a(e);for(;!o.eos();){let e=o.next();const i="\\"===e&&0!==h(o.peek(),t);if(i&&(e=o.next()),!i&&l(e,t)&&e===o.peek()){o.advance(),2===n.type&&(n=r.pop());const i=h(e,t);if(n.type===i||5===n.type&&6===i)n=r.pop();else{const e={type:i,children:[]};5===i&&(e.index=s,s++),n.children.push(e),r.push(n),n=e}}else if("\n"===e)2===n.type&&(n=r.pop()),n.children.push({type:8});else if(2!==n.type){const t={type:2,content:e};n.children.push(t),r.push(n),n=t}else n.content+=e}2===n.type&&(n=r.pop());r.length;return i}(e,!!t.renderCodeSegments),t.actionHandler,t.renderCodeSegments),i}function o(e){const t=e.inline?"span":"div",i=document.createElement(t);return e.className&&(i.className=e.className),i}class a{constructor(e){this.source=e,this.index=0}eos(){return this.index>=this.source.length}next(){const e=this.peek();return this.advance(),e}peek(){return this.source[this.index]}advance(){this.index++}}function c(e,t,i,n){let r;if(2===t.type)r=document.createTextNode(t.content||"");else if(3===t.type)r=document.createElement("b");else if(4===t.type)r=document.createElement("i");else if(7===t.type&&n)r=document.createElement("code");else if(5===t.type&&i){const e=document.createElement("a");i.disposables.add(s.b2(e,"click",(e=>{i.callback(String(t.index),e)}))),r=e}else 8===t.type?r=document.createElement("br"):1===t.type&&(r=e);r&&e!==r&&e.appendChild(r),r&&Array.isArray(t.children)&&t.children.forEach((e=>{c(r,e,i,n)}))}function l(e,t){return 0!==h(e,t)}function h(e,t){switch(e){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;case"`":return t?7:0;default:return 0}}},34072:(e,t,i)=>{"use strict";i.d(t,{_:()=>r});var s=i(8597),n=i(5662);class r{constructor(){this._hooks=new n.Cm,this._pointerMoveCallback=null,this._onStopCallback=null}dispose(){this.stopMonitoring(!1),this._hooks.dispose()}stopMonitoring(e,t){if(!this.isMonitoring())return;this._hooks.clear(),this._pointerMoveCallback=null;const i=this._onStopCallback;this._onStopCallback=null,e&&i&&i(t)}isMonitoring(){return!!this._pointerMoveCallback}startMonitoring(e,t,i,r,o){this.isMonitoring()&&this.stopMonitoring(!1),this._pointerMoveCallback=r,this._onStopCallback=o;let a=e;try{e.setPointerCapture(t),this._hooks.add((0,n.s)((()=>{try{e.releasePointerCapture(t)}catch(i){}})))}catch(c){a=s.zk(e)}this._hooks.add(s.ko(a,s.Bx.POINTER_MOVE,(e=>{e.buttons===i?(e.preventDefault(),this._pointerMoveCallback(e)):this.stopMonitoring(!0)}))),this._hooks.add(s.ko(a,s.Bx.POINTER_UP,(e=>this.stopMonitoring(!0))))}}},72962:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var s=i(60413),n=i(24939),r=i(42539),o=i(98067);const a=o.zx?256:2048,c=o.zx?2048:256;class l{constructor(e){this._standardKeyboardEventBrand=!0;const t=e;this.browserEvent=t,this.target=t.target,this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,this.altGraphKey=t.getModifierState?.("AltGraph"),this.keyCode=function(e){if(e.charCode){const t=String.fromCharCode(e.charCode).toUpperCase();return n.YM.fromString(t)}const t=e.keyCode;if(3===t)return 7;if(s.gm)switch(t){case 59:return 85;case 60:if(o.j9)return 97;break;case 61:return 86;case 107:return 109;case 109:return 111;case 173:return 88;case 224:if(o.zx)return 57}else if(s.Tc){if(o.zx&&93===t)return 57;if(!o.zx&&92===t)return 57}return n.uw[t]||0}(t),this.code=t.code,this.ctrlKey=this.ctrlKey||5===this.keyCode,this.altKey=this.altKey||6===this.keyCode,this.shiftKey=this.shiftKey||4===this.keyCode,this.metaKey=this.metaKey||57===this.keyCode,this._asKeybinding=this._computeKeybinding(),this._asKeyCodeChord=this._computeKeyCodeChord()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeyCodeChord(){return this._asKeyCodeChord}equals(e){return this._asKeybinding===e}_computeKeybinding(){let e=0;5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode);let t=0;return this.ctrlKey&&(t|=a),this.altKey&&(t|=512),this.shiftKey&&(t|=1024),this.metaKey&&(t|=c),t|=e,t}_computeKeyCodeChord(){let e=0;return 5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode),new r.dG(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}}},68214:(e,t,i)=>{"use strict";i.d(t,{Gc:()=>A,R9:()=>P});var s=i(8597),n=i(83750),r=i(56245),o=i(27661),a=i(72962),c=i(47358),l=i(20370),h=i(64383),d=i(41234),u=i(16980),g=i(37882),p=i(96032),m=i(91090),f=i(5662);let _={};!function(){function e(e,t){t(_)}var t,i;e.amd=!0,t=this,i=function(e){function t(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function i(t){e.defaults=t}e.defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};const s=/[&<>"']/,n=new RegExp(s.source,"g"),r=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,o=new RegExp(r.source,"g"),a={"&":"&","<":"<",">":">",'"':""","'":"'"},c=e=>a[e];function l(e,t){if(t){if(s.test(e))return e.replace(n,c)}else if(r.test(e))return e.replace(o,c);return e}const h=/(^|[^\[])\^/g;function d(e,t){let i="string"===typeof e?e:e.source;t=t||"";const s={replace:(e,t)=>{let n="string"===typeof t?t:t.source;return n=n.replace(h,"$1"),i=i.replace(e,n),s},getRegex:()=>new RegExp(i,t)};return s}function u(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const g={exec:()=>null};function p(e,t){const i=e.replace(/\|/g,((e,t,i)=>{let s=!1,n=t;for(;--n>=0&&"\\"===i[n];)s=!s;return s?"|":" |"})).split(/ \|/);let s=0;if(i[0].trim()||i.shift(),i.length>0&&!i[i.length-1].trim()&&i.pop(),t)if(i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;s<i.length;s++)i[s]=i[s].trim().replace(/\\\|/g,"|");return i}function m(e,t,i){const s=e.length;if(0===s)return"";let n=0;for(;n<s;){const r=e.charAt(s-n-1);if(r!==t||i){if(r===t||!i)break;n++}else n++}return e.slice(0,s-n)}function f(e,t,i,s){const n=t.href,r=t.title?l(t.title):null,o=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){s.state.inLink=!0;const e={type:"link",raw:i,href:n,title:r,text:o,tokens:s.inlineTokens(o)};return s.state.inLink=!1,e}return{type:"image",raw:i,href:n,title:r,text:l(o)}}class _{options;rules;lexer;constructor(t){this.options=t||e.defaults}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:m(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],i=function(e,t){const i=e.match(/^(\s+)(?:```)/);if(null===i)return t;const s=i[1];return t.split("\n").map((e=>{const t=e.match(/^\s+/);if(null===t)return e;const[i]=t;return i.length>=s.length?e.slice(s.length):e})).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:i}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=m(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:m(t[0],"\n")}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){let e=m(t[0],"\n").split("\n"),i="",s="";const n=[];for(;e.length>0;){let t=!1;const r=[];let o;for(o=0;o<e.length;o++)if(/^ {0,3}>/.test(e[o]))r.push(e[o]),t=!0;else{if(t)break;r.push(e[o])}e=e.slice(o);const a=r.join("\n"),c=a.replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,"\n $1").replace(/^ {0,3}>[ \t]?/gm,"");i=i?`${i}\n${a}`:a,s=s?`${s}\n${c}`:c;const l=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,n,!0),this.lexer.state.top=l,0===e.length)break;const h=n[n.length-1];if("code"===h?.type)break;if("blockquote"===h?.type){const t=h,r=t.raw+"\n"+e.join("\n"),o=this.blockquote(r);n[n.length-1]=o,i=i.substring(0,i.length-t.raw.length)+o.raw,s=s.substring(0,s.length-t.text.length)+o.text;break}if("list"!==h?.type);else{const t=h,r=t.raw+"\n"+e.join("\n"),o=this.list(r);n[n.length-1]=o,i=i.substring(0,i.length-h.raw.length)+o.raw,s=s.substring(0,s.length-t.raw.length)+o.raw,e=r.substring(n[n.length-1].raw.length).split("\n")}}return{type:"blockquote",raw:i,tokens:n,text:s}}}list(e){let t=this.rules.block.list.exec(e);if(t){let i=t[1].trim();const s=i.length>1,n={type:"list",raw:"",ordered:s,start:s?+i.slice(0,-1):"",loose:!1,items:[]};i=s?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=s?i:"[*+-]");const r=new RegExp(`^( {0,3}${i})((?:[\t ][^\\n]*)?(?:\\n|$))`);let o=!1;for(;e;){let i=!1,s="",a="";if(!(t=r.exec(e)))break;if(this.rules.block.hr.test(e))break;s=t[0],e=e.substring(s.length);let c=t[2].split("\n",1)[0].replace(/^\t+/,(e=>" ".repeat(3*e.length))),l=e.split("\n",1)[0],h=!c.trim(),d=0;if(this.options.pedantic?(d=2,a=c.trimStart()):h?d=t[1].length+1:(d=t[2].search(/[^ ]/),d=d>4?1:d,a=c.slice(d),d+=t[1].length),h&&/^ *$/.test(l)&&(s+=l+"\n",e=e.substring(l.length+1),i=!0),!i){const t=new RegExp(`^ {0,${Math.min(3,d-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),i=new RegExp(`^ {0,${Math.min(3,d-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),n=new RegExp(`^ {0,${Math.min(3,d-1)}}(?:\`\`\`|~~~)`),r=new RegExp(`^ {0,${Math.min(3,d-1)}}#`);for(;e;){const o=e.split("\n",1)[0];if(l=o,this.options.pedantic&&(l=l.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),n.test(l))break;if(r.test(l))break;if(t.test(l))break;if(i.test(e))break;if(l.search(/[^ ]/)>=d||!l.trim())a+="\n"+l.slice(d);else{if(h)break;if(c.search(/[^ ]/)>=4)break;if(n.test(c))break;if(r.test(c))break;if(i.test(c))break;a+="\n"+l}h||l.trim()||(h=!0),s+=o+"\n",e=e.substring(o.length+1),c=l.slice(d)}}n.loose||(o?n.loose=!0:/\n *\n *$/.test(s)&&(o=!0));let u,g=null;this.options.gfm&&(g=/^\[[ xX]\] /.exec(a),g&&(u="[ ] "!==g[0],a=a.replace(/^\[[ xX]\] +/,""))),n.items.push({type:"list_item",raw:s,task:!!g,checked:u,loose:!1,text:a,tokens:[]}),n.raw+=s}n.items[n.items.length-1].raw=n.items[n.items.length-1].raw.trimEnd(),n.items[n.items.length-1].text=n.items[n.items.length-1].text.trimEnd(),n.raw=n.raw.trimEnd();for(let e=0;e<n.items.length;e++)if(this.lexer.state.top=!1,n.items[e].tokens=this.lexer.blockTokens(n.items[e].text,[]),!n.loose){const t=n.items[e].tokens.filter((e=>"space"===e.type)),i=t.length>0&&t.some((e=>/\n.*\n/.test(e.raw)));n.loose=i}if(n.loose)for(let e=0;e<n.items.length;e++)n.items[e].loose=!0;return n}}html(e){const t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){const t=this.rules.block.def.exec(e);if(t){const e=t[1].toLowerCase().replace(/\s+/g," "),i=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:i,title:s}}}table(e){const t=this.rules.block.table.exec(e);if(!t)return;if(!/[:|]/.test(t[2]))return;const i=p(t[1]),s=t[2].replace(/^\||\| *$/g,"").split("|"),n=t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[],r={type:"table",raw:t[0],header:[],align:[],rows:[]};if(i.length===s.length){for(const e of s)/^ *-+: *$/.test(e)?r.align.push("right"):/^ *:-+: *$/.test(e)?r.align.push("center"):/^ *:-+ *$/.test(e)?r.align.push("left"):r.align.push(null);for(let e=0;e<i.length;e++)r.header.push({text:i[e],tokens:this.lexer.inline(i[e]),header:!0,align:r.align[e]});for(const e of n)r.rows.push(p(e,r.header.length).map(((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:r.align[t]}))));return r}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:l(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^</.test(e)){if(!/>$/.test(e))return;const t=m(e.slice(0,-1),"\\");if((e.length-t.length)%2===0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;let i=0;for(let s=0;s<e.length;s++)if("\\"===e[s])s++;else if(e[s]===t[0])i++;else if(e[s]===t[1]&&(i--,i<0))return s;return-1}(t[2],"()");if(e>-1){const i=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,i).trim(),t[3]=""}}let i=t[2],s="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);e&&(i=e[1],s=e[3])}else s=t[3]?t[3].slice(1,-1):"";return i=i.trim(),/^</.test(i)&&(i=this.options.pedantic&&!/>$/.test(e)?i.slice(1):i.slice(1,-1)),f(t,{href:i?i.replace(this.rules.inline.anyPunctuation,"$1"):i,title:s?s.replace(this.rules.inline.anyPunctuation,"$1"):s},t[0],this.lexer)}}reflink(e,t){let i;if((i=this.rules.inline.reflink.exec(e))||(i=this.rules.inline.nolink.exec(e))){const e=t[(i[2]||i[1]).replace(/\s+/g," ").toLowerCase()];if(!e){const e=i[0].charAt(0);return{type:"text",raw:e,text:e}}return f(i,e,i[0],this.lexer)}}emStrong(e,t,i=""){let s=this.rules.inline.emStrongLDelim.exec(e);if(s&&(!s[3]||!i.match(/[\p{L}\p{N}]/u))&&(!s[1]&&!s[2]||!i||this.rules.inline.punctuation.exec(i))){const i=[...s[0]].length-1;let n,r,o=i,a=0;const c="*"===s[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+i);null!=(s=c.exec(t));){if(n=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!n)continue;if(r=[...n].length,s[3]||s[4]){o+=r;continue}if((s[5]||s[6])&&i%3&&!((i+r)%3)){a+=r;continue}if(o-=r,o>0)continue;r=Math.min(r,r+o+a);const t=[...s[0]][0].length,c=e.slice(0,i+s.index+t+r);if(Math.min(i,r)%2){const e=c.slice(1,-1);return{type:"em",raw:c,text:e,tokens:this.lexer.inlineTokens(e)}}const l=c.slice(2,-2);return{type:"strong",raw:c,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const i=/[^ ]/.test(e),s=/^ /.test(e)&&/ $/.test(e);return i&&s&&(e=e.substring(1,e.length-1)),e=l(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let e,i;return"@"===t[2]?(e=l(t[1]),i="mailto:"+e):(e=l(t[1]),i=e),{type:"link",raw:t[0],text:e,href:i,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,i;if("@"===t[2])e=l(t[0]),i="mailto:"+e;else{let s;do{s=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??""}while(s!==t[0]);e=l(t[0]),i="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:i,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){let e;return e=this.lexer.state.inRawBlock?t[0]:l(t[0]),{type:"text",raw:t[0],text:e}}}}const v=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,C=/(?:[*+-]|\d{1,9}[.)])/,E=d(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,C).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),b=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,S=/(?!\s*\])(?:\\.|[^\[\]\\])+/,y=d(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",S).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),w=d(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,C).getRegex(),R="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",L=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,T=d("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",L).replace("tag",R).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),x=d(b).replace("hr",v).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",R).getRegex(),k={blockquote:d(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",x).getRegex(),code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,def:y,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:v,html:T,lheading:E,list:w,newline:/^(?: *(?:\n|$))+/,paragraph:x,table:g,text:/^[^\n]+/},A=d("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",v).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",R).getRegex(),N={...k,table:A,paragraph:d(b).replace("hr",v).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",A).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",R).getRegex()},I={...k,html:d("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",L).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:g,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:d(b).replace("hr",v).replace("heading"," *#{1,6} *[^\n]").replace("lheading",E).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},O=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,D=/^( {2,}|\\)\n(?!\s*$)/,M="\\p{P}\\p{S}",P=d(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,M).getRegex(),F=d(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,M).getRegex(),U=d("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,M).getRegex(),H=d("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,M).getRegex(),B=d(/\\([punct])/,"gu").replace(/punct/g,M).getRegex(),W=d(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),V=d(L).replace("(?:--\x3e|$)","--\x3e").getRegex(),z=d("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",V).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),G=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,j=d(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",G).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),K=d(/^!?\[(label)\]\[(ref)\]/).replace("label",G).replace("ref",S).getRegex(),Y=d(/^!?\[(ref)\](?:\[\])?/).replace("ref",S).getRegex(),q={_backpedal:g,anyPunctuation:B,autolink:W,blockSkip:/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,br:D,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:g,emStrongLDelim:F,emStrongRDelimAst:U,emStrongRDelimUnd:H,escape:O,link:j,nolink:Y,punctuation:P,reflink:K,reflinkSearch:d("reflink|nolink(?!\\()","g").replace("reflink",K).replace("nolink",Y).getRegex(),tag:z,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:g},$={...q,link:d(/^!?\[(label)\]\((.*?)\)/).replace("label",G).getRegex(),reflink:d(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",G).getRegex()},Q={...q,escape:d(O).replace("])","~|])").getRegex(),url:d(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},X={...Q,br:d(D).replace("{2,}","*").getRegex(),text:d(Q.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Z={normal:k,gfm:N,pedantic:I},J={normal:q,gfm:Q,breaks:X,pedantic:$};class ee{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||e.defaults,this.options.tokenizer=this.options.tokenizer||new _,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const i={block:Z.normal,inline:J.normal};this.options.pedantic?(i.block=Z.pedantic,i.inline=J.pedantic):this.options.gfm&&(i.block=Z.gfm,this.options.breaks?i.inline=J.breaks:i.inline=J.gfm),this.tokenizer.rules=i}static get rules(){return{block:Z,inline:J}}static lex(e,t){return new ee(t).lex(e)}static lexInline(e,t){return new ee(t).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){const e=this.inlineQueue[t];this.inlineTokens(e.src,e.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],i=!1){let s,n,r;for(e=this.options.pedantic?e.replace(/\t/g," ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,((e,t,i)=>t+" ".repeat(i.length)));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((i=>!!(s=i.call({lexer:this},e,t))&&(e=e.substring(s.raw.length),t.push(s),!0)))))if(s=this.tokenizer.space(e))e=e.substring(s.raw.length),1===s.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(s);else if(s=this.tokenizer.code(e))e=e.substring(s.raw.length),n=t[t.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?t.push(s):(n.raw+="\n"+s.raw,n.text+="\n"+s.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(s=this.tokenizer.fences(e))e=e.substring(s.raw.length),t.push(s);else if(s=this.tokenizer.heading(e))e=e.substring(s.raw.length),t.push(s);else if(s=this.tokenizer.hr(e))e=e.substring(s.raw.length),t.push(s);else if(s=this.tokenizer.blockquote(e))e=e.substring(s.raw.length),t.push(s);else if(s=this.tokenizer.list(e))e=e.substring(s.raw.length),t.push(s);else if(s=this.tokenizer.html(e))e=e.substring(s.raw.length),t.push(s);else if(s=this.tokenizer.def(e))e=e.substring(s.raw.length),n=t[t.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title}):(n.raw+="\n"+s.raw,n.text+="\n"+s.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(s=this.tokenizer.table(e))e=e.substring(s.raw.length),t.push(s);else if(s=this.tokenizer.lheading(e))e=e.substring(s.raw.length),t.push(s);else{if(r=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const i=e.slice(1);let s;this.options.extensions.startBlock.forEach((e=>{s=e.call({lexer:this},i),"number"===typeof s&&s>=0&&(t=Math.min(t,s))})),t<1/0&&t>=0&&(r=e.substring(0,t+1))}if(this.state.top&&(s=this.tokenizer.paragraph(r)))n=t[t.length-1],i&&"paragraph"===n?.type?(n.raw+="\n"+s.raw,n.text+="\n"+s.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(s),i=r.length!==e.length,e=e.substring(s.raw.length);else if(s=this.tokenizer.text(e))e=e.substring(s.raw.length),n=t[t.length-1],n&&"text"===n.type?(n.raw+="\n"+s.raw,n.text+="\n"+s.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(s);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let i,s,n,r,o,a,c=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(r=this.tokenizer.rules.inline.reflinkSearch.exec(c));)e.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(c=c.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(r=this.tokenizer.rules.inline.blockSkip.exec(c));)c=c.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(r=this.tokenizer.rules.inline.anyPunctuation.exec(c));)c=c.slice(0,r.index)+"++"+c.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(o||(a=""),o=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((s=>!!(i=s.call({lexer:this},e,t))&&(e=e.substring(i.raw.length),t.push(i),!0)))))if(i=this.tokenizer.escape(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.tag(e))e=e.substring(i.raw.length),s=t[t.length-1],s&&"text"===i.type&&"text"===s.type?(s.raw+=i.raw,s.text+=i.text):t.push(i);else if(i=this.tokenizer.link(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(i.raw.length),s=t[t.length-1],s&&"text"===i.type&&"text"===s.type?(s.raw+=i.raw,s.text+=i.text):t.push(i);else if(i=this.tokenizer.emStrong(e,c,a))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.codespan(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.br(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.del(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.autolink(e))e=e.substring(i.raw.length),t.push(i);else if(this.state.inLink||!(i=this.tokenizer.url(e))){if(n=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const i=e.slice(1);let s;this.options.extensions.startInline.forEach((e=>{s=e.call({lexer:this},i),"number"===typeof s&&s>=0&&(t=Math.min(t,s))})),t<1/0&&t>=0&&(n=e.substring(0,t+1))}if(i=this.tokenizer.inlineText(n))e=e.substring(i.raw.length),"_"!==i.raw.slice(-1)&&(a=i.raw.slice(-1)),o=!0,s=t[t.length-1],s&&"text"===s.type?(s.raw+=i.raw,s.text+=i.text):t.push(i);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}else e=e.substring(i.raw.length),t.push(i);return t}}class te{options;parser;constructor(t){this.options=t||e.defaults}space(e){return""}code({text:e,lang:t,escaped:i}){const s=(t||"").match(/^\S*/)?.[0],n=e.replace(/\n$/,"")+"\n";return s?'<pre><code class="language-'+l(s)+'">'+(i?n:l(n,!0))+"</code></pre>\n":"<pre><code>"+(i?n:l(n,!0))+"</code></pre>\n"}blockquote({tokens:e}){return`<blockquote>\n${this.parser.parse(e)}</blockquote>\n`}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>\n`}hr(e){return"<hr>\n"}list(e){const t=e.ordered,i=e.start;let s="";for(let r=0;r<e.items.length;r++){const t=e.items[r];s+=this.listitem(t)}const n=t?"ol":"ul";return"<"+n+(t&&1!==i?' start="'+i+'"':"")+">\n"+s+"</"+n+">\n"}listitem(e){let t="";if(e.task){const i=this.checkbox({checked:!!e.checked});e.loose?e.tokens.length>0&&"paragraph"===e.tokens[0].type?(e.tokens[0].text=i+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&"text"===e.tokens[0].tokens[0].type&&(e.tokens[0].tokens[0].text=i+" "+e.tokens[0].tokens[0].text)):e.tokens.unshift({type:"text",raw:i+" ",text:i+" "}):t+=i+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>\n`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>\n`}table(e){let t="",i="";for(let n=0;n<e.header.length;n++)i+=this.tablecell(e.header[n]);t+=this.tablerow({text:i});let s="";for(let n=0;n<e.rows.length;n++){const t=e.rows[n];i="";for(let e=0;e<t.length;e++)i+=this.tablecell(t[e]);s+=this.tablerow({text:i})}return s&&(s=`<tbody>${s}</tbody>`),"<table>\n<thead>\n"+t+"</thead>\n"+s+"</table>\n"}tablerow({text:e}){return`<tr>\n${e}</tr>\n`}tablecell(e){const t=this.parser.parseInline(e.tokens),i=e.header?"th":"td";return(e.align?`<${i} align="${e.align}">`:`<${i}>`)+t+`</${i}>\n`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${e}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:i}){const s=this.parser.parseInline(i),n=u(e);if(null===n)return s;let r='<a href="'+(e=n)+'"';return t&&(r+=' title="'+t+'"'),r+=">"+s+"</a>",r}image({href:e,title:t,text:i}){const s=u(e);if(null===s)return i;let n=`<img src="${e=s}" alt="${i}"`;return t&&(n+=` title="${t}"`),n+=">",n}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):e.text}}class ie{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}}class se{options;renderer;textRenderer;constructor(t){this.options=t||e.defaults,this.options.renderer=this.options.renderer||new te,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ie}static parse(e,t){return new se(t).parse(e)}static parseInline(e,t){return new se(t).parseInline(e)}parse(e,t=!0){let i="";for(let s=0;s<e.length;s++){const n=e[s];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[n.type]){const e=n,t=this.options.extensions.renderers[e.type].call({parser:this},e);if(!1!==t||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(e.type)){i+=t||"";continue}}const r=n;switch(r.type){case"space":i+=this.renderer.space(r);continue;case"hr":i+=this.renderer.hr(r);continue;case"heading":i+=this.renderer.heading(r);continue;case"code":i+=this.renderer.code(r);continue;case"table":i+=this.renderer.table(r);continue;case"blockquote":i+=this.renderer.blockquote(r);continue;case"list":i+=this.renderer.list(r);continue;case"html":i+=this.renderer.html(r);continue;case"paragraph":i+=this.renderer.paragraph(r);continue;case"text":{let n=r,o=this.renderer.text(n);for(;s+1<e.length&&"text"===e[s+1].type;)n=e[++s],o+="\n"+this.renderer.text(n);i+=t?this.renderer.paragraph({type:"paragraph",raw:o,text:o,tokens:[{type:"text",raw:o,text:o}]}):o;continue}default:{const e='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return i}parseInline(e,t){t=t||this.renderer;let i="";for(let s=0;s<e.length;s++){const n=e[s];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[n.type]){const e=this.options.extensions.renderers[n.type].call({parser:this},n);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(n.type)){i+=e||"";continue}}const r=n;switch(r.type){case"escape":case"text":i+=t.text(r);break;case"html":i+=t.html(r);break;case"link":i+=t.link(r);break;case"image":i+=t.image(r);break;case"strong":i+=t.strong(r);break;case"em":i+=t.em(r);break;case"codespan":i+=t.codespan(r);break;case"br":i+=t.br(r);break;case"del":i+=t.del(r);break;default:{const e='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return i}}class ne{options;constructor(t){this.options=t||e.defaults}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}}class re{defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};options=this.setOptions;parse=this.parseMarkdown(ee.lex,se.parse);parseInline=this.parseMarkdown(ee.lexInline,se.parseInline);Parser=se;Renderer=te;TextRenderer=ie;Lexer=ee;Tokenizer=_;Hooks=ne;constructor(...e){this.use(...e)}walkTokens(e,t){let i=[];for(const s of e)switch(i=i.concat(t.call(this,s)),s.type){case"table":{const e=s;for(const s of e.header)i=i.concat(this.walkTokens(s.tokens,t));for(const s of e.rows)for(const e of s)i=i.concat(this.walkTokens(e.tokens,t));break}case"list":{const e=s;i=i.concat(this.walkTokens(e.items,t));break}default:{const e=s;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach((s=>{const n=e[s].flat(1/0);i=i.concat(this.walkTokens(n,t))})):e.tokens&&(i=i.concat(this.walkTokens(e.tokens,t)))}}return i}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach((e=>{const i={...e};if(i.async=this.defaults.async||i.async||!1,e.extensions&&(e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if("renderer"in e){const i=t.renderers[e.name];t.renderers[e.name]=i?function(...t){let s=e.renderer.apply(this,t);return!1===s&&(s=i.apply(this,t)),s}:e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");const i=t[e.level];i?i.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)})),i.extensions=t),e.renderer){const t=this.defaults.renderer||new te(this.defaults);for(const i in e.renderer){if(!(i in t))throw new Error(`renderer '${i}' does not exist`);if(["options","parser"].includes(i))continue;const s=i,n=e.renderer[s],r=t[s];t[s]=(...e)=>{let i=n.apply(t,e);return!1===i&&(i=r.apply(t,e)),i||""}}i.renderer=t}if(e.tokenizer){const t=this.defaults.tokenizer||new _(this.defaults);for(const i in e.tokenizer){if(!(i in t))throw new Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;const s=i,n=e.tokenizer[s],r=t[s];t[s]=(...e)=>{let i=n.apply(t,e);return!1===i&&(i=r.apply(t,e)),i}}i.tokenizer=t}if(e.hooks){const t=this.defaults.hooks||new ne;for(const i in e.hooks){if(!(i in t))throw new Error(`hook '${i}' does not exist`);if("options"===i)continue;const s=i,n=e.hooks[s],r=t[s];ne.passThroughHooks.has(i)?t[s]=e=>{if(this.defaults.async)return Promise.resolve(n.call(t,e)).then((e=>r.call(t,e)));const i=n.call(t,e);return r.call(t,i)}:t[s]=(...e)=>{let i=n.apply(t,e);return!1===i&&(i=r.apply(t,e)),i}}i.hooks=t}if(e.walkTokens){const t=this.defaults.walkTokens,s=e.walkTokens;i.walkTokens=function(e){let i=[];return i.push(s.call(this,e)),t&&(i=i.concat(t.call(this,e))),i}}this.defaults={...this.defaults,...i}})),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return ee.lex(e,t??this.defaults)}parser(e,t){return se.parse(e,t??this.defaults)}parseMarkdown(e,t){return(i,s)=>{const n={...s},r={...this.defaults,...n},o=this.onError(!!r.silent,!!r.async);if(!0===this.defaults.async&&!1===n.async)return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if("undefined"===typeof i||null===i)return o(new Error("marked(): input parameter is undefined or null"));if("string"!==typeof i)return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected"));if(r.hooks&&(r.hooks.options=r),r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(i):i).then((t=>e(t,r))).then((e=>r.hooks?r.hooks.processAllTokens(e):e)).then((e=>r.walkTokens?Promise.all(this.walkTokens(e,r.walkTokens)).then((()=>e)):e)).then((e=>t(e,r))).then((e=>r.hooks?r.hooks.postprocess(e):e)).catch(o);try{r.hooks&&(i=r.hooks.preprocess(i));let s=e(i,r);r.hooks&&(s=r.hooks.processAllTokens(s)),r.walkTokens&&this.walkTokens(s,r.walkTokens);let n=t(s,r);return r.hooks&&(n=r.hooks.postprocess(n)),n}catch(a){return o(a)}}}onError(e,t){return i=>{if(i.message+="\nPlease report this to https://github.com/markedjs/marked.",e){const e="<p>An error occurred:</p><pre>"+l(i.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(i);throw i}}}const oe=new re;function ae(e,t){return oe.parse(e,t)}ae.options=ae.setOptions=function(e){return oe.setOptions(e),ae.defaults=oe.defaults,i(ae.defaults),ae},ae.getDefaults=t,ae.defaults=e.defaults,ae.use=function(...e){return oe.use(...e),ae.defaults=oe.defaults,i(ae.defaults),ae},ae.walkTokens=function(e,t){return oe.walkTokens(e,t)},ae.parseInline=oe.parseInline,ae.Parser=se,ae.parser=se.parse,ae.Renderer=te,ae.TextRenderer=ie,ae.Lexer=ee,ae.lexer=ee.lex,ae.Tokenizer=_,ae.Hooks=ne,ae.parse=ae;const ce=ae.options,le=ae.setOptions,he=ae.use,de=ae.walkTokens,ue=ae.parseInline,ge=ae,pe=se.parse,me=ee.lex;e.Hooks=ne,e.Lexer=ee,e.Marked=re,e.Parser=se,e.Renderer=te,e.TextRenderer=ie,e.Tokenizer=_,e.getDefaults=t,e.lexer=me,e.marked=ae,e.options=ce,e.parse=ge,e.parseInline=ue,e.parser=pe,e.setOptions=le,e.use=he,e.walkTokens=de},e.amd?e(0,i):"object"===typeof exports?i(exports):i((t="undefined"!==typeof globalThis?globalThis:t||self).marked={})}();_.Hooks||exports.Hooks,_.Lexer||exports.Lexer,_.Marked||exports.Marked,_.Parser||exports.Parser;var v=_.Renderer||exports.Renderer,C=(_.TextRenderer||exports.TextRenderer,_.Tokenizer||exports.Tokenizer,_.defaults||exports.defaults),E=(_.getDefaults||exports.getDefaults,_.lexer||exports.lexer),b=(_.marked||exports.marked,_.options||exports.options,_.parse||exports.parse),S=(_.parseInline||exports.parseInline,_.parser||exports.parser),y=(_.setOptions||exports.setOptions,_.use||exports.use,_.walkTokens||exports.walkTokens,i(908)),w=i(36456),R=i(10146),L=i(89403),T=i(91508),x=i(79400);const k=Object.freeze({image:({href:e,title:t,text:i})=>{let s=[],n=[];return e&&(({href:e,dimensions:s}=(0,u.nI)(e)),n.push(`src="${(0,u.oO)(e)}"`)),i&&n.push(`alt="${(0,u.oO)(i)}"`),t&&n.push(`title="${(0,u.oO)(t)}"`),s.length&&(n=n.concat(s)),"<img "+n.join(" ")+">"},paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>`},link({href:e,title:t,tokens:i}){let s=this.parser.parseInline(i);return"string"!==typeof e?"":(e===s&&(s=(0,u._W)(s)),t="string"===typeof t?(0,u.oO)((0,u._W)(t)):"",`<a href="${e=(e=(0,u._W)(e)).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}" title="${t||e}" draggable="false">${s}</a>`)}});function A(e,t={},i={}){const n=new f.Cm;let u=!1;const m=(0,o.n)(t),_=function(t){let i;try{i=(0,y.qg)(decodeURIComponent(t))}catch(s){}return i?(i=(0,R.PI)(i,(t=>e.uris&&e.uris[t]?x.r.revive(e.uris[t]):void 0)),encodeURIComponent(JSON.stringify(i))):t},L=function(t,i){const s=e.uris&&e.uris[t];let n=x.r.revive(s);return i?t.startsWith(w.ny.data+":")?t:(n||(n=x.r.parse(t)),w.zl.uriToBrowserUri(n).toString(!0)):n?x.r.parse(t).toString()===n.toString()?t:(n.query&&(n=n.with({query:_(n.query)})),n.toString()):t},A=new v;A.image=k.image,A.link=k.link,A.paragraph=k.paragraph;const O=[],M=[];if(t.codeBlockRendererSync?A.code=({text:e,lang:i})=>{const s=p.r.nextId(),n=t.codeBlockRendererSync(N(i),e);return M.push([s,n]),`<div class="code" data-code="${s}">${(0,T.ih)(e)}</div>`}:t.codeBlockRenderer&&(A.code=({text:e,lang:i})=>{const s=p.r.nextId(),n=t.codeBlockRenderer(N(i),e);return O.push(n.then((e=>[s,e]))),`<div class="code" data-code="${s}">${(0,T.ih)(e)}</div>`}),t.actionHandler){const i=function(i){let s=i.target;if("A"===s.tagName||(s=s.parentElement,s&&"A"===s.tagName))try{let n=s.dataset.href;n&&(e.baseUri&&(n=I(x.r.from(e.baseUri),n)),t.actionHandler.callback(n,i))}catch(n){(0,h.dz)(n)}finally{i.preventDefault()}},n=t.actionHandler.disposables.add(new r.f(m,"click")),o=t.actionHandler.disposables.add(new r.f(m,"auxclick"));t.actionHandler.disposables.add(d.Jh.any(n.event,o.event)((e=>{const t=new c.P(s.zk(m),e);(t.leftButton||t.middleButton)&&i(t)}))),t.actionHandler.disposables.add(s.ko(m,"keydown",(e=>{const t=new a.Z(e);(t.equals(10)||t.equals(3))&&i(t)})))}e.supportHtml||(A.html=({text:i})=>{if(t.sanitizerOptions?.replaceWithPlaintext)return(0,T.ih)(i);return(e.isTrusted?i.match(/^(<span[^>]+>)|(<\/\s*span>)$/):void 0)?i:""}),i.renderer=A;let P,F=e.value??"";if(F.length>1e5&&(F=`${F.substr(0,1e5)}\u2026`),e.supportThemeIcons&&(F=(0,g.sA)(F)),t.fillInIncompleteTokens){const e={...C,...i},t=function(e){for(let t=0;t<j;t++){const t=K(e);if(!t)break;e=t}return e}(E(F,e));P=S(t,e)}else P=b(F,{...i,async:!1});if(e.supportThemeIcons){P=(0,l.n)(P).map((e=>"string"===typeof e?e:e.outerHTML)).join("")}const U=(new DOMParser).parseFromString(D({isTrusted:e.isTrusted,...t.sanitizerOptions},P),"text/html");if(U.body.querySelectorAll("img, audio, video, source").forEach((i=>{const n=i.getAttribute("src");if(n){let o=n;try{e.baseUri&&(o=I(x.r.from(e.baseUri),o))}catch(r){}if(i.setAttribute("src",L(o,!0)),t.remoteImageIsAllowed){const e=x.r.parse(o);e.scheme===w.ny.file||e.scheme===w.ny.data||t.remoteImageIsAllowed(e)||i.replaceWith(s.$("",void 0,i.outerHTML))}}})),U.body.querySelectorAll("a").forEach((t=>{const i=t.getAttribute("href");if(t.setAttribute("href",""),!i||/^data:|javascript:/i.test(i)||/^command:/i.test(i)&&!e.isTrusted||/^command:(\/\/\/)?_workbench\.downloadResource/i.test(i))t.replaceWith(...t.childNodes);else{let s=L(i,!1);e.baseUri&&(s=I(x.r.from(e.baseUri),i)),t.dataset.href=s}})),m.innerHTML=D({isTrusted:e.isTrusted,...t.sanitizerOptions},U.body.innerHTML),O.length>0)Promise.all(O).then((e=>{if(u)return;const i=new Map(e),n=m.querySelectorAll("div[data-code]");for(const t of n){const e=i.get(t.dataset.code??"");e&&s.Ln(t,e)}t.asyncRenderCallback?.()}));else if(M.length>0){const e=new Map(M),t=m.querySelectorAll("div[data-code]");for(const i of t){const t=e.get(i.dataset.code??"");t&&s.Ln(i,t)}}if(t.asyncRenderCallback)for(const r of m.getElementsByTagName("img")){const e=n.add(s.ko(r,"load",(()=>{e.dispose(),t.asyncRenderCallback()})))}return{element:m,dispose:()=>{u=!0,n.dispose()}}}function N(e){if(!e)return"";const t=e.split(/[\s+|:|,|\{|\?]/,1);return t.length?t[0]:e}function I(e,t){return/^\w[\w\d+.-]*:/.test(t)?t:e.path.endsWith("/")?(0,L.o1)(e,t).toString():(0,L.o1)((0,L.pD)(e),t).toString()}const O=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];function D(e,t){const{config:i,allowedSchemes:r}=function(e){const t=[w.ny.http,w.ny.https,w.ny.mailto,w.ny.data,w.ny.file,w.ny.vscodeFileResource,w.ny.vscodeRemote,w.ny.vscodeRemoteResource];e.isTrusted&&t.push(w.ny.command);return{config:{ALLOWED_TAGS:e.allowedTags??[...s.TT],ALLOWED_ATTR:M,ALLOW_UNKNOWN_PROTOCOLS:!0},allowedSchemes:t}}(e),o=new f.Cm;o.add(ie("uponSanitizeAttribute",((e,t)=>{if("style"!==t.attrName&&"class"!==t.attrName){if("INPUT"===e.tagName&&"checkbox"===e.attributes.getNamedItem("type")?.value){if("type"===t.attrName&&"checkbox"===t.attrValue||"disabled"===t.attrName||"checked"===t.attrName)return void(t.keepAttr=!0);t.keepAttr=!1}}else{if("SPAN"===e.tagName){if("style"===t.attrName)return void(t.keepAttr=/^(color\:(#[0-9a-fA-F]+|var\(--vscode(-[a-zA-Z]+)+\));)?(background-color\:(#[0-9a-fA-F]+|var\(--vscode(-[a-zA-Z]+)+\));)?(border-radius:[0-9]+px;)?$/.test(t.attrValue));if("class"===t.attrName)return void(t.keepAttr=/^codicon codicon-[a-z\-]+( codicon-modifier-[a-z\-]+)?$/.test(t.attrValue))}t.keepAttr=!1}}))),o.add(ie("uponSanitizeElement",((t,i)=>{if("input"===i.tagName&&("checkbox"===t.attributes.getNamedItem("type")?.value?t.setAttribute("disabled",""):e.replaceWithPlaintext||t.remove()),e.replaceWithPlaintext&&!i.allowedTags[i.tagName]&&"body"!==i.tagName&&t.parentElement){let e,s;if("#comment"===i.tagName)e=`\x3c!--${t.textContent}--\x3e`;else{const n=O.includes(i.tagName),r=t.attributes.length?" "+Array.from(t.attributes).map((e=>`${e.name}="${e.value}"`)).join(" "):"";e=`<${i.tagName}${r}>`,n||(s=`</${i.tagName}>`)}const n=document.createDocumentFragment(),r=t.parentElement.ownerDocument.createTextNode(e);n.appendChild(r);const o=s?t.parentElement.ownerDocument.createTextNode(s):void 0;for(;t.firstChild;)n.appendChild(t.firstChild);o&&n.appendChild(o),t.nodeType===Node.COMMENT_NODE?t.parentElement.insertBefore(n,t):t.parentElement.replaceChild(n,t)}}))),o.add(s.a4(r));try{return n.aj(t,{...i,RETURN_TRUSTED_TYPE:!0})}finally{o.dispose()}}const M=["align","autoplay","alt","checked","class","colspan","controls","data-code","data-href","disabled","draggable","height","href","loop","muted","playsinline","poster","rowspan","src","style","target","title","type","width","start"];function P(e){return"string"===typeof e?e:function(e,t){let i=e.value??"";i.length>1e5&&(i=`${i.substr(0,1e5)}\u2026`);return D({isTrusted:!1},b(i,{async:!1,renderer:t?B.value:H.value}).replace(/&(#\d+|[a-zA-Z]+);/g,(e=>F.get(e)??e))).toString()}(e)}const F=new Map([[""",'"'],[" "," "],["&","&"],["'","'"],["<","<"],[">",">"]]);function U(){const e=new v;return e.code=({text:e})=>e,e.blockquote=({text:e})=>e+"\n",e.html=e=>"",e.heading=function({tokens:e}){return this.parser.parseInline(e)+"\n"},e.hr=()=>"",e.list=function({items:e}){return e.map((e=>this.listitem(e))).join("\n")+"\n"},e.listitem=({text:e})=>e+"\n",e.paragraph=function({tokens:e}){return this.parser.parseInline(e)+"\n"},e.table=function({header:e,rows:t}){return e.map((e=>this.tablecell(e))).join(" ")+"\n"+t.map((e=>e.map((e=>this.tablecell(e))).join(" "))).join("\n")+"\n"},e.tablerow=({text:e})=>e,e.tablecell=function({tokens:e}){return this.parser.parseInline(e)},e.strong=({text:e})=>e,e.em=({text:e})=>e,e.codespan=({text:e})=>e,e.br=e=>"\n",e.del=({text:e})=>e,e.image=e=>"",e.text=({text:e})=>e,e.link=({text:e})=>e,e}const H=new m.d((e=>U())),B=new m.d((()=>{const e=U();return e.code=({text:e})=>`\n\`\`\`\n${e}\n\`\`\`\n`,e}));function W(e){let t="";return e.forEach((e=>{t+=e.raw})),t}function V(e){if(e.tokens)for(let t=e.tokens.length-1;t>=0;t--){const i=e.tokens[t];if("text"===i.type){const s=i.raw.split("\n"),n=s[s.length-1];if(n.includes("`"))return Y(e);if(n.includes("**"))return ee(e,"**");if(n.match(/\*\w/))return q(e);if(n.match(/(^|\s)__\w/))return J(e);if(n.match(/(^|\s)_\w/))return $(e);if(n.match(/(^|\s)\[.*\]\(\w*/)||z(n)&&e.tokens.slice(0,t).some((e=>"text"===e.type&&e.raw.match(/\[[^\]]*$/)))){const i=e.tokens.slice(t+1);return"link"===i[0]?.type&&"text"===i[1]?.type&&i[1].raw.match(/^ *"[^"]*$/)||n.match(/^[^"]* +"[^"]*$/)?X(e):Q(e)}if(n.match(/(^|\s)\[\w*/))return Z(e)}}}function z(e){return!!e.match(/^[^\[]*\]\([^\)]*$/)}function G(e){const t=e.items[e.items.length-1],i=t.tokens?t.tokens[t.tokens.length-1]:void 0;let s;if("text"!==i?.type||"inRawBlock"in t||(s=V(i)),!s||"paragraph"!==s.type)return;const n=W(e.items.slice(0,-1)),r=t.raw.match(/^(\s*(-|\d+\.|\*) +)/)?.[0];if(!r)return;const o=r+W(t.tokens.slice(0,-1))+s.raw,a=E(n+o)[0];return"list"===a.type?a:void 0}const j=3;function K(e){let t,i;for(t=0;t<e.length;t++){const s=e[t];if("paragraph"===s.type&&s.raw.match(/(\n|^)\|/)){i=te(e.slice(t));break}if(t===e.length-1&&"list"===s.type){const e=G(s);if(e){i=[e];break}}if(t===e.length-1&&"paragraph"===s.type){const e=V(s);if(e){i=[e];break}}}if(i){const s=[...e.slice(0,t),...i];return s.links=e.links,s}return null}function Y(e){return ee(e,"`")}function q(e){return ee(e,"*")}function $(e){return ee(e,"_")}function Q(e){return ee(e,")")}function X(e){return ee(e,'")')}function Z(e){return ee(e,"](https://microsoft.com)")}function J(e){return ee(e,"__")}function ee(e,t){const i=W(Array.isArray(e)?e:[e]);return E(i+t)[0]}function te(e){const t=W(e),i=t.split("\n");let s,n=!1;for(let r=0;r<i.length;r++){const e=i[r].trim();if("undefined"===typeof s&&e.match(/^\s*\|/)){const t=e.match(/(\|[^\|]+)(?=\||$)/g);t&&(s=t.length)}else if("number"===typeof s){if(!e.match(/^\s*\|/))return;if(r!==i.length-1)return;n=!0}}if("number"===typeof s&&s>0){const e=n?i.slice(0,-1).join("\n"):t,r=!!e.match(/\|\s*$/),o=e+(r?"":"|")+`\n|${" --- |".repeat(s)}`;return E(o)}}function ie(e,t){return n.$w(e,t),(0,f.s)((()=>n.SV(e)))}},47358:(e,t,i)=>{"use strict";i.d(t,{P:()=>c,$:()=>l});var s=i(60413);const n=new WeakMap;function r(e){if(!e.parent||e.parent===e)return null;try{const t=e.location,i=e.parent.location;if("null"!==t.origin&&"null"!==i.origin&&t.origin!==i.origin)return null}catch(t){return null}return e.parent}class o{static getSameOriginWindowChain(e){let t=n.get(e);if(!t){t=[],n.set(e,t);let i,s=e;do{i=r(s),i?t.push({window:new WeakRef(s),iframeElement:s.frameElement||null}):t.push({window:new WeakRef(s),iframeElement:null}),s=i}while(s)}return t.slice(0)}static getPositionOfChildWindowRelativeToAncestorWindow(e,t){if(!t||e===t)return{top:0,left:0};let i=0,s=0;const n=this.getSameOriginWindowChain(e);for(const r of n){const e=r.window.deref();if(i+=e?.scrollY??0,s+=e?.scrollX??0,e===t)break;if(!r.iframeElement)break;const n=r.iframeElement.getBoundingClientRect();i+=n.top,s+=n.left}return{top:i,left:s}}}var a=i(98067);class c{constructor(e,t){this.timestamp=Date.now(),this.browserEvent=t,this.leftButton=0===t.button,this.middleButton=1===t.button,this.rightButton=2===t.button,this.buttons=t.buttons,this.target=t.target,this.detail=t.detail||1,"dblclick"===t.type&&(this.detail=2),this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,"number"===typeof t.pageX?(this.posx=t.pageX,this.posy=t.pageY):(this.posx=t.clientX+this.target.ownerDocument.body.scrollLeft+this.target.ownerDocument.documentElement.scrollLeft,this.posy=t.clientY+this.target.ownerDocument.body.scrollTop+this.target.ownerDocument.documentElement.scrollTop);const i=o.getPositionOfChildWindowRelativeToAncestorWindow(e,t.view);this.posx-=i.left,this.posy-=i.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}}class l{constructor(e,t=0,i=0){this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=i,this.deltaX=t;let n=!1;if(s.H8){const e=navigator.userAgent.match(/Chrome\/(\d+)/);n=(e?parseInt(e[1]):123)<=122}if(e){const t=e,i=e,r=e.view?.devicePixelRatio||1;if("undefined"!==typeof t.wheelDeltaY)this.deltaY=n?t.wheelDeltaY/(120*r):t.wheelDeltaY/120;else if("undefined"!==typeof i.VERTICAL_AXIS&&i.axis===i.VERTICAL_AXIS)this.deltaY=-i.detail/3;else if("wheel"===e.type){const t=e;t.deltaMode===t.DOM_DELTA_LINE?s.gm&&!a.zx?this.deltaY=-e.deltaY/3:this.deltaY=-e.deltaY:this.deltaY=-e.deltaY/40}if("undefined"!==typeof t.wheelDeltaX)s.nr&&a.uF?this.deltaX=-t.wheelDeltaX/120:this.deltaX=n?t.wheelDeltaX/(120*r):t.wheelDeltaX/120;else if("undefined"!==typeof i.HORIZONTAL_AXIS&&i.axis===i.HORIZONTAL_AXIS)this.deltaX=-e.detail/3;else if("wheel"===e.type){const t=e;t.deltaMode===t.DOM_DELTA_LINE?s.gm&&!a.zx?this.deltaX=-e.deltaX/3:this.deltaX=-e.deltaX:this.deltaX=-e.deltaX/40}0===this.deltaY&&0===this.deltaX&&e.wheelDelta&&(this.deltaY=n?e.wheelDelta/(120*r):e.wheelDelta/120)}}preventDefault(){this.browserEvent?.preventDefault()}stopPropagation(){this.browserEvent?.stopPropagation()}}},5239:(e,t,i)=>{"use strict";var s;i.d(t,{p:()=>s}),function(e){const t={total:0,min:Number.MAX_VALUE,max:0},i={...t},s={...t},n={...t};let r=0;const o={keydown:0,input:0,render:0};function a(){1===o.keydown&&(performance.mark("keydown/end"),o.keydown=2)}function c(){performance.mark("input/start"),o.input=1,d()}function l(){1===o.input&&(performance.mark("input/end"),o.input=2)}function h(){1===o.render&&(performance.mark("render/end"),o.render=2)}function d(){setTimeout(u)}function u(){2===o.keydown&&2===o.input&&2===o.render&&(performance.mark("inputlatency/end"),performance.measure("keydown","keydown/start","keydown/end"),performance.measure("input","input/start","input/end"),performance.measure("render","render/start","render/end"),performance.measure("inputlatency","inputlatency/start","inputlatency/end"),g("keydown",t),g("input",i),g("render",s),g("inputlatency",n),r++,performance.clearMarks("keydown/start"),performance.clearMarks("keydown/end"),performance.clearMarks("input/start"),performance.clearMarks("input/end"),performance.clearMarks("render/start"),performance.clearMarks("render/end"),performance.clearMarks("inputlatency/start"),performance.clearMarks("inputlatency/end"),performance.clearMeasures("keydown"),performance.clearMeasures("input"),performance.clearMeasures("render"),performance.clearMeasures("inputlatency"),o.keydown=0,o.input=0,o.render=0)}function g(e,t){const i=performance.getEntriesByName(e)[0].duration;t.total+=i,t.min=Math.min(t.min,i),t.max=Math.max(t.max,i)}function p(e){return{average:e.total/r,max:e.max,min:e.min}}function m(e){e.total=0,e.min=Number.MAX_VALUE,e.max=0}e.onKeyDown=function(){u(),performance.mark("inputlatency/start"),performance.mark("keydown/start"),o.keydown=1,queueMicrotask(a)},e.onBeforeInput=c,e.onInput=function(){0===o.input&&c(),queueMicrotask(l)},e.onKeyUp=function(){u()},e.onSelectionChange=function(){u()},e.onRenderStart=function(){2===o.keydown&&2===o.input&&0===o.render&&(performance.mark("render/start"),o.render=1,queueMicrotask(h),d())},e.getAndClearMeasurements=function(){if(0===r)return;const e={keydown:p(t),input:p(i),render:p(s),total:p(n),sampleCount:r};return m(t),m(i),m(s),m(n),r=0,e}}(s||(s={}))},94106:(e,t,i)=>{"use strict";i.d(t,{c:()=>c});var s=i(8597),n=i(41234),r=i(5662);class o extends r.jG{constructor(e){super(),this._onDidChange=this._register(new n.vl),this.onDidChange=this._onDidChange.event,this._listener=()=>this._handleChange(e,!0),this._mediaQueryList=null,this._handleChange(e,!1)}_handleChange(e,t){this._mediaQueryList?.removeEventListener("change",this._listener),this._mediaQueryList=e.matchMedia(`(resolution: ${e.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener("change",this._listener),t&&this._onDidChange.fire()}}class a extends r.jG{get value(){return this._value}constructor(e){super(),this._onDidChange=this._register(new n.vl),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio(e);const t=this._register(new o(e));this._register(t.onDidChange((()=>{this._value=this._getPixelRatio(e),this._onDidChange.fire(this._value)})))}_getPixelRatio(e){const t=document.createElement("canvas").getContext("2d");return(e.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)}}const c=new class{constructor(){this.mapWindowIdToPixelRatioMonitor=new Map}_getOrCreatePixelRatioMonitor(e){const t=(0,s.Q2)(e);let i=this.mapWindowIdToPixelRatioMonitor.get(t);return i||(i=(0,r.lC)(new a(e)),this.mapWindowIdToPixelRatioMonitor.set(t,i),(0,r.lC)(n.Jh.once(s.Fv)((({vscodeWindowId:e})=>{e===t&&(i?.dispose(),this.mapWindowIdToPixelRatioMonitor.delete(t))})))),i}getInstance(e){return this._getOrCreatePixelRatioMonitor(e)}}},25154:(e,t,i)=>{"use strict";i.d(t,{B:()=>s,q:()=>u});var s,n=i(8597),r=i(25893),o=i(25890),a=i(58694),c=i(41234),l=i(5662),h=i(58925),d=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};!function(e){e.Tap="-monaco-gesturetap",e.Change="-monaco-gesturechange",e.Start="-monaco-gesturestart",e.End="-monaco-gesturesend",e.Contextmenu="-monaco-gesturecontextmenu"}(s||(s={}));class u extends l.jG{static{this.SCROLL_FRICTION=-.005}static{this.HOLD_DELAY=700}static{this.CLEAR_TAP_COUNT_TIME=400}constructor(){super(),this.dispatched=!1,this.targets=new h.w,this.ignoreTargets=new h.w,this.activeTouches={},this.handle=null,this._lastSetTapCountTime=0,this._register(c.Jh.runAndSubscribe(n.Iv,(({window:e,disposables:t})=>{t.add(n.ko(e.document,"touchstart",(e=>this.onTouchStart(e)),{passive:!1})),t.add(n.ko(e.document,"touchend",(t=>this.onTouchEnd(e,t)))),t.add(n.ko(e.document,"touchmove",(e=>this.onTouchMove(e)),{passive:!1}))}),{window:r.G,disposables:this._store}))}static addTarget(e){if(!u.isTouchDevice())return l.jG.None;u.INSTANCE||(u.INSTANCE=(0,l.lC)(new u));const t=u.INSTANCE.targets.push(e);return(0,l.s)(t)}static ignoreTarget(e){if(!u.isTouchDevice())return l.jG.None;u.INSTANCE||(u.INSTANCE=(0,l.lC)(new u));const t=u.INSTANCE.ignoreTargets.push(e);return(0,l.s)(t)}static isTouchDevice(){return"ontouchstart"in r.G||navigator.maxTouchPoints>0}dispose(){this.handle&&(this.handle.dispose(),this.handle=null),super.dispose()}onTouchStart(e){const t=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(let i=0,n=e.targetTouches.length;i<n;i++){const n=e.targetTouches.item(i);this.activeTouches[n.identifier]={id:n.identifier,initialTarget:n.target,initialTimeStamp:t,initialPageX:n.pageX,initialPageY:n.pageY,rollingTimestamps:[t],rollingPageX:[n.pageX],rollingPageY:[n.pageY]};const r=this.newGestureEvent(s.Start,n.target);r.pageX=n.pageX,r.pageY=n.pageY,this.dispatchEvent(r)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}onTouchEnd(e,t){const i=Date.now(),n=Object.keys(this.activeTouches).length;for(let r=0,a=t.changedTouches.length;r<a;r++){const a=t.changedTouches.item(r);if(!this.activeTouches.hasOwnProperty(String(a.identifier))){console.warn("move of an UNKNOWN touch",a);continue}const c=this.activeTouches[a.identifier],l=Date.now()-c.initialTimeStamp;if(l<u.HOLD_DELAY&&Math.abs(c.initialPageX-o.RT(c.rollingPageX))<30&&Math.abs(c.initialPageY-o.RT(c.rollingPageY))<30){const e=this.newGestureEvent(s.Tap,c.initialTarget);e.pageX=o.RT(c.rollingPageX),e.pageY=o.RT(c.rollingPageY),this.dispatchEvent(e)}else if(l>=u.HOLD_DELAY&&Math.abs(c.initialPageX-o.RT(c.rollingPageX))<30&&Math.abs(c.initialPageY-o.RT(c.rollingPageY))<30){const e=this.newGestureEvent(s.Contextmenu,c.initialTarget);e.pageX=o.RT(c.rollingPageX),e.pageY=o.RT(c.rollingPageY),this.dispatchEvent(e)}else if(1===n){const t=o.RT(c.rollingPageX),s=o.RT(c.rollingPageY),n=o.RT(c.rollingTimestamps)-c.rollingTimestamps[0],r=t-c.rollingPageX[0],a=s-c.rollingPageY[0],l=[...this.targets].filter((e=>c.initialTarget instanceof Node&&e.contains(c.initialTarget)));this.inertia(e,l,i,Math.abs(r)/n,r>0?1:-1,t,Math.abs(a)/n,a>0?1:-1,s)}this.dispatchEvent(this.newGestureEvent(s.End,c.initialTarget)),delete this.activeTouches[a.identifier]}this.dispatched&&(t.preventDefault(),t.stopPropagation(),this.dispatched=!1)}newGestureEvent(e,t){const i=document.createEvent("CustomEvent");return i.initEvent(e,!1,!0),i.initialTarget=t,i.tapCount=0,i}dispatchEvent(e){if(e.type===s.Tap){const t=(new Date).getTime();let i=0;i=t-this._lastSetTapCountTime>u.CLEAR_TAP_COUNT_TIME?1:2,this._lastSetTapCountTime=t,e.tapCount=i}else e.type!==s.Change&&e.type!==s.Contextmenu||(this._lastSetTapCountTime=0);if(e.initialTarget instanceof Node){for(const i of this.ignoreTargets)if(i.contains(e.initialTarget))return;const t=[];for(const i of this.targets)if(i.contains(e.initialTarget)){let s=0,n=e.initialTarget;for(;n&&n!==i;)s++,n=n.parentElement;t.push([s,i])}t.sort(((e,t)=>e[0]-t[0]));for(const[i,s]of t)s.dispatchEvent(e),this.dispatched=!0}}inertia(e,t,i,r,o,a,c,l,h){this.handle=n.PG(e,(()=>{const n=Date.now(),d=n-i;let g=0,p=0,m=!0;r+=u.SCROLL_FRICTION*d,c+=u.SCROLL_FRICTION*d,r>0&&(m=!1,g=o*r*d),c>0&&(m=!1,p=l*c*d);const f=this.newGestureEvent(s.Change);f.translationX=g,f.translationY=p,t.forEach((e=>e.dispatchEvent(f))),m||this.inertia(e,t,n,r,o,a+g,c,l,h+p)}))}onTouchMove(e){const t=Date.now();for(let i=0,n=e.changedTouches.length;i<n;i++){const n=e.changedTouches.item(i);if(!this.activeTouches.hasOwnProperty(String(n.identifier))){console.warn("end of an UNKNOWN touch",n);continue}const r=this.activeTouches[n.identifier],a=this.newGestureEvent(s.Change,r.initialTarget);a.translationX=n.pageX-o.RT(r.rollingPageX),a.translationY=n.pageY-o.RT(r.rollingPageY),a.pageX=n.pageX,a.pageY=n.pageY,this.dispatchEvent(a),r.rollingPageX.length>3&&(r.rollingPageX.shift(),r.rollingPageY.shift(),r.rollingTimestamps.shift()),r.rollingPageX.push(n.pageX),r.rollingPageY.push(n.pageY),r.rollingTimestamps.push(t)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}}d([a.B],u,"isTouchDevice",null)},80789:(e,t,i)=>{"use strict";i.d(t,{H:()=>n});var s=i(64383);function n(e,t){const i=globalThis.MonacoEnvironment;if(i?.createTrustedTypesPolicy)try{return i.createTrustedTypesPolicy(e,t)}catch(n){return void(0,s.dz)(n)}try{return globalThis.trustedTypes?.createPolicy(e,t)}catch(n){return void(0,s.dz)(n)}}},5646:(e,t,i)=>{"use strict";i.d(t,{Z4:()=>k,EH:()=>x,XF:()=>A});var s=i(60413),n=i(42731),r=i(8597),o=i(25154),a=i(42904),c=i(56245),l=i(72962),h=i(68214),d=i(48196),u=i(93090),g=i(25890),p=i(41234),m=i(24939),f=i(5662),_=i(98067),v=i(78209);const C=r.$,E="selectOption.entry.template";class b{get templateId(){return E}renderTemplate(e){const t=Object.create(null);return t.root=e,t.text=r.BC(e,C(".option-text")),t.detail=r.BC(e,C(".option-detail")),t.decoratorRight=r.BC(e,C(".option-decorator-right")),t}renderElement(e,t,i){const s=i,n=e.text,r=e.detail,o=e.decoratorRight,a=e.isDisabled;s.text.textContent=n,s.detail.textContent=r||"",s.decoratorRight.innerText=o||"",a?s.root.classList.add("option-disabled"):s.root.classList.remove("option-disabled")}disposeTemplate(e){}}class S extends f.jG{static{this.DEFAULT_DROPDOWN_MINIMUM_BOTTOM_MARGIN=32}static{this.DEFAULT_DROPDOWN_MINIMUM_TOP_MARGIN=2}static{this.DEFAULT_MINIMUM_VISIBLE_OPTIONS=3}constructor(e,t,i,s,n){super(),this.options=[],this._currentSelection=0,this._hasDetails=!1,this._skipLayout=!1,this._sticky=!1,this._isVisible=!1,this.styles=s,this.selectBoxOptions=n||Object.create(null),"number"!==typeof this.selectBoxOptions.minBottomMargin?this.selectBoxOptions.minBottomMargin=S.DEFAULT_DROPDOWN_MINIMUM_BOTTOM_MARGIN:this.selectBoxOptions.minBottomMargin<0&&(this.selectBoxOptions.minBottomMargin=0),this.selectElement=document.createElement("select"),this.selectElement.className="monaco-select-box monaco-select-box-dropdown-padding","string"===typeof this.selectBoxOptions.ariaLabel&&this.selectElement.setAttribute("aria-label",this.selectBoxOptions.ariaLabel),"string"===typeof this.selectBoxOptions.ariaDescription&&this.selectElement.setAttribute("aria-description",this.selectBoxOptions.ariaDescription),this._onDidSelect=new p.vl,this._register(this._onDidSelect),this.registerListeners(),this.constructSelectDropDown(i),this.selected=t||0,e&&this.setOptions(e,t),this.initStyleSheet()}setTitle(e){!this._hover&&e?this._hover=this._register((0,d.i)().setupManagedHover((0,a.nZ)("mouse"),this.selectElement,e)):this._hover&&this._hover.update(e)}getHeight(){return 22}getTemplateId(){return E}constructSelectDropDown(e){this.contextViewProvider=e,this.selectDropDownContainer=r.$(".monaco-select-box-dropdown-container"),this.selectDropDownContainer.classList.add("monaco-select-box-dropdown-padding"),this.selectionDetailsPane=r.BC(this.selectDropDownContainer,C(".select-box-details-pane"));const t=r.BC(this.selectDropDownContainer,C(".select-box-dropdown-container-width-control")),i=r.BC(t,C(".width-control-div"));this.widthControlElement=document.createElement("span"),this.widthControlElement.className="option-text-width-control",r.BC(i,this.widthControlElement),this._dropDownPosition=0,this.styleElement=r.li(this.selectDropDownContainer),this.selectDropDownContainer.setAttribute("draggable","true"),this._register(r.ko(this.selectDropDownContainer,r.Bx.DRAG_START,(e=>{r.fs.stop(e,!0)})))}registerListeners(){let e;this._register(r.b2(this.selectElement,"change",(e=>{this.selected=e.target.selectedIndex,this._onDidSelect.fire({index:e.target.selectedIndex,selected:e.target.value}),this.options[this.selected]&&this.options[this.selected].text&&this.setTitle(this.options[this.selected].text)}))),this._register(r.ko(this.selectElement,r.Bx.CLICK,(e=>{r.fs.stop(e),this._isVisible?this.hideSelectDropDown(!0):this.showSelectDropDown()}))),this._register(r.ko(this.selectElement,r.Bx.MOUSE_DOWN,(e=>{r.fs.stop(e)}))),this._register(r.ko(this.selectElement,"touchstart",(t=>{e=this._isVisible}))),this._register(r.ko(this.selectElement,"touchend",(t=>{r.fs.stop(t),e?this.hideSelectDropDown(!0):this.showSelectDropDown()}))),this._register(r.ko(this.selectElement,r.Bx.KEY_DOWN,(e=>{const t=new l.Z(e);let i=!1;_.zx?18!==t.keyCode&&16!==t.keyCode&&10!==t.keyCode&&3!==t.keyCode||(i=!0):(18===t.keyCode&&t.altKey||16===t.keyCode&&t.altKey||10===t.keyCode||3===t.keyCode)&&(i=!0),i&&(this.showSelectDropDown(),r.fs.stop(e,!0))})))}get onDidSelect(){return this._onDidSelect.event}setOptions(e,t){g.aI(this.options,e)||(this.options=e,this.selectElement.options.length=0,this._hasDetails=!1,this._cachedMaxDetailsHeight=void 0,this.options.forEach(((e,t)=>{this.selectElement.add(this.createOption(e.text,t,e.isDisabled)),"string"===typeof e.description&&(this._hasDetails=!0)}))),void 0!==t&&(this.select(t),this._currentSelection=this.selected)}setOptionsList(){this.selectList?.splice(0,this.selectList.length,this.options)}select(e){e>=0&&e<this.options.length?this.selected=e:e>this.options.length-1?this.select(this.options.length-1):this.selected<0&&(this.selected=0),this.selectElement.selectedIndex=this.selected,this.options[this.selected]&&this.options[this.selected].text&&this.setTitle(this.options[this.selected].text)}focus(){this.selectElement&&(this.selectElement.tabIndex=0,this.selectElement.focus())}blur(){this.selectElement&&(this.selectElement.tabIndex=-1,this.selectElement.blur())}setFocusable(e){this.selectElement.tabIndex=e?0:-1}render(e){this.container=e,e.classList.add("select-container"),e.appendChild(this.selectElement),this.styleSelectElement()}initStyleSheet(){const e=[];this.styles.listFocusBackground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { background-color: ${this.styles.listFocusBackground} !important; }`),this.styles.listFocusForeground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { color: ${this.styles.listFocusForeground} !important; }`),this.styles.decoratorRightForeground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.focused) .option-decorator-right { color: ${this.styles.decoratorRightForeground}; }`),this.styles.selectBackground&&this.styles.selectBorder&&this.styles.selectBorder!==this.styles.selectBackground?(e.push(`.monaco-select-box-dropdown-container { border: 1px solid ${this.styles.selectBorder} } `),e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-top { border-top: 1px solid ${this.styles.selectBorder} } `),e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-bottom { border-bottom: 1px solid ${this.styles.selectBorder} } `)):this.styles.selectListBorder&&(e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-top { border-top: 1px solid ${this.styles.selectListBorder} } `),e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-bottom { border-bottom: 1px solid ${this.styles.selectListBorder} } `)),this.styles.listHoverForeground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { color: ${this.styles.listHoverForeground} !important; }`),this.styles.listHoverBackground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { background-color: ${this.styles.listHoverBackground} !important; }`),this.styles.listFocusOutline&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { outline: 1.6px dotted ${this.styles.listFocusOutline} !important; outline-offset: -1.6px !important; }`),this.styles.listHoverOutline&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { outline: 1.6px dashed ${this.styles.listHoverOutline} !important; outline-offset: -1.6px !important; }`),e.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.option-disabled.focused { background-color: transparent !important; color: inherit !important; outline: none !important; }"),e.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.option-disabled:hover { background-color: transparent !important; color: inherit !important; outline: none !important; }"),this.styleElement.textContent=e.join("\n")}styleSelectElement(){const e=this.styles.selectBackground??"",t=this.styles.selectForeground??"",i=this.styles.selectBorder??"";this.selectElement.style.backgroundColor=e,this.selectElement.style.color=t,this.selectElement.style.borderColor=i}styleList(){const e=this.styles.selectBackground??"",t=r.gI(this.styles.selectListBackground,e);this.selectDropDownListContainer.style.backgroundColor=t,this.selectionDetailsPane.style.backgroundColor=t;const i=this.styles.focusBorder??"";this.selectDropDownContainer.style.outlineColor=i,this.selectDropDownContainer.style.outlineOffset="-1px",this.selectList.style(this.styles)}createOption(e,t,i){const s=document.createElement("option");return s.value=e,s.text=e,s.disabled=!!i,s}showSelectDropDown(){this.selectionDetailsPane.innerText="",this.contextViewProvider&&!this._isVisible&&(this.createSelectList(this.selectDropDownContainer),this.setOptionsList(),this.contextViewProvider.showContextView({getAnchor:()=>this.selectElement,render:e=>this.renderSelectDropDown(e,!0),layout:()=>{this.layoutSelectDropDown()},onHide:()=>{this.selectDropDownContainer.classList.remove("visible"),this.selectElement.classList.remove("synthetic-focus")},anchorPosition:this._dropDownPosition},this.selectBoxOptions.optionsAsChildren?this.container:void 0),this._isVisible=!0,this.hideSelectDropDown(!1),this.contextViewProvider.showContextView({getAnchor:()=>this.selectElement,render:e=>this.renderSelectDropDown(e),layout:()=>this.layoutSelectDropDown(),onHide:()=>{this.selectDropDownContainer.classList.remove("visible"),this.selectElement.classList.remove("synthetic-focus")},anchorPosition:this._dropDownPosition},this.selectBoxOptions.optionsAsChildren?this.container:void 0),this._currentSelection=this.selected,this._isVisible=!0,this.selectElement.setAttribute("aria-expanded","true"))}hideSelectDropDown(e){this.contextViewProvider&&this._isVisible&&(this._isVisible=!1,this.selectElement.setAttribute("aria-expanded","false"),e&&this.selectElement.focus(),this.contextViewProvider.hideContextView())}renderSelectDropDown(e,t){return e.appendChild(this.selectDropDownContainer),this.layoutSelectDropDown(t),{dispose:()=>{this.selectDropDownContainer.remove()}}}measureMaxDetailsHeight(){let e=0;return this.options.forEach(((t,i)=>{this.updateDetail(i),this.selectionDetailsPane.offsetHeight>e&&(e=this.selectionDetailsPane.offsetHeight)})),e}layoutSelectDropDown(e){if(this._skipLayout)return!1;if(this.selectList){this.selectDropDownContainer.classList.add("visible");const t=r.zk(this.selectElement),i=r.BK(this.selectElement),s=r.zk(this.selectElement).getComputedStyle(this.selectElement),n=parseFloat(s.getPropertyValue("--dropdown-padding-top"))+parseFloat(s.getPropertyValue("--dropdown-padding-bottom")),o=t.innerHeight-i.top-i.height-(this.selectBoxOptions.minBottomMargin||0),a=i.top-S.DEFAULT_DROPDOWN_MINIMUM_TOP_MARGIN,c=this.selectElement.offsetWidth,l=this.setWidthControlElement(this.widthControlElement),h=Math.max(l,Math.round(c)).toString()+"px";this.selectDropDownContainer.style.width=h,this.selectList.getHTMLElement().style.height="",this.selectList.layout();let d=this.selectList.contentHeight;this._hasDetails&&void 0===this._cachedMaxDetailsHeight&&(this._cachedMaxDetailsHeight=this.measureMaxDetailsHeight());const u=this._hasDetails?this._cachedMaxDetailsHeight:0,g=d+n+u,p=Math.floor((o-n-u)/this.getHeight()),m=Math.floor((a-n-u)/this.getHeight());if(e)return!(i.top+i.height>t.innerHeight-22||i.top<S.DEFAULT_DROPDOWN_MINIMUM_TOP_MARGIN||p<1&&m<1)&&(p<S.DEFAULT_MINIMUM_VISIBLE_OPTIONS&&m>p&&this.options.length>p?(this._dropDownPosition=1,this.selectDropDownListContainer.remove(),this.selectionDetailsPane.remove(),this.selectDropDownContainer.appendChild(this.selectionDetailsPane),this.selectDropDownContainer.appendChild(this.selectDropDownListContainer),this.selectionDetailsPane.classList.remove("border-top"),this.selectionDetailsPane.classList.add("border-bottom")):(this._dropDownPosition=0,this.selectDropDownListContainer.remove(),this.selectionDetailsPane.remove(),this.selectDropDownContainer.appendChild(this.selectDropDownListContainer),this.selectDropDownContainer.appendChild(this.selectionDetailsPane),this.selectionDetailsPane.classList.remove("border-bottom"),this.selectionDetailsPane.classList.add("border-top")),!0);if(i.top+i.height>t.innerHeight-22||i.top<S.DEFAULT_DROPDOWN_MINIMUM_TOP_MARGIN||0===this._dropDownPosition&&p<1||1===this._dropDownPosition&&m<1)return this.hideSelectDropDown(!0),!1;if(0===this._dropDownPosition){if(this._isVisible&&p+m<1)return this.hideSelectDropDown(!0),!1;g>o&&(d=p*this.getHeight())}else g>a&&(d=m*this.getHeight());return this.selectList.layout(d),this.selectList.domFocus(),this.selectList.length>0&&(this.selectList.setFocus([this.selected||0]),this.selectList.reveal(this.selectList.getFocus()[0]||0)),this._hasDetails?(this.selectList.getHTMLElement().style.height=d+n+"px",this.selectDropDownContainer.style.height=""):this.selectDropDownContainer.style.height=d+n+"px",this.updateDetail(this.selected),this.selectDropDownContainer.style.width=h,this.selectDropDownListContainer.setAttribute("tabindex","0"),this.selectElement.classList.add("synthetic-focus"),this.selectDropDownContainer.classList.add("synthetic-focus"),!0}return!1}setWidthControlElement(e){let t=0;if(e){let i=0,s=0;this.options.forEach(((e,t)=>{const n=e.detail?e.detail.length:0,r=e.decoratorRight?e.decoratorRight.length:0,o=e.text.length+n+r;o>s&&(i=t,s=o)})),e.textContent=this.options[i].text+(this.options[i].decoratorRight?this.options[i].decoratorRight+" ":""),t=r.Tr(e)}return t}createSelectList(e){if(this.selectList)return;this.selectDropDownListContainer=r.BC(e,C(".select-box-dropdown-list-container")),this.listRenderer=new b,this.selectList=this._register(new u.B8("SelectBoxCustom",this.selectDropDownListContainer,this,[this.listRenderer],{useShadows:!1,verticalScrollMode:3,keyboardSupport:!1,mouseSupport:!1,accessibilityProvider:{getAriaLabel:e=>{let t=e.text;return e.detail&&(t+=`. ${e.detail}`),e.decoratorRight&&(t+=`. ${e.decoratorRight}`),e.description&&(t+=`. ${e.description}`),t},getWidgetAriaLabel:()=>(0,v.kg)({key:"selectBox",comment:["Behave like native select dropdown element."]},"Select Box"),getRole:()=>_.zx?"":"option",getWidgetRole:()=>"listbox"}})),this.selectBoxOptions.ariaLabel&&(this.selectList.ariaLabel=this.selectBoxOptions.ariaLabel);const t=this._register(new c.f(this.selectDropDownListContainer,"keydown")),i=p.Jh.chain(t.event,(e=>e.filter((()=>this.selectList.length>0)).map((e=>new l.Z(e)))));this._register(p.Jh.chain(i,(e=>e.filter((e=>3===e.keyCode))))(this.onEnter,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>2===e.keyCode))))(this.onEnter,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>9===e.keyCode))))(this.onEscape,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>16===e.keyCode))))(this.onUpArrow,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>18===e.keyCode))))(this.onDownArrow,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>12===e.keyCode))))(this.onPageDown,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>11===e.keyCode))))(this.onPageUp,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>14===e.keyCode))))(this.onHome,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>13===e.keyCode))))(this.onEnd,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>e.keyCode>=21&&e.keyCode<=56||e.keyCode>=85&&e.keyCode<=113))))(this.onCharacter,this)),this._register(r.ko(this.selectList.getHTMLElement(),r.Bx.POINTER_UP,(e=>this.onPointerUp(e)))),this._register(this.selectList.onMouseOver((e=>"undefined"!==typeof e.index&&this.selectList.setFocus([e.index])))),this._register(this.selectList.onDidChangeFocus((e=>this.onListFocus(e)))),this._register(r.ko(this.selectDropDownContainer,r.Bx.FOCUS_OUT,(e=>{this._isVisible&&!r.QX(e.relatedTarget,this.selectDropDownContainer)&&this.onListBlur()}))),this.selectList.getHTMLElement().setAttribute("aria-label",this.selectBoxOptions.ariaLabel||""),this.selectList.getHTMLElement().setAttribute("aria-expanded","true"),this.styleList()}onPointerUp(e){if(!this.selectList.length)return;r.fs.stop(e);const t=e.target;if(!t)return;if(t.classList.contains("slider"))return;const i=t.closest(".monaco-list-row");if(!i)return;const s=Number(i.getAttribute("data-index")),n=i.classList.contains("option-disabled");s>=0&&s<this.options.length&&!n&&(this.selected=s,this.select(this.selected),this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selectList.getFocus()[0]),this.selected!==this._currentSelection&&(this._currentSelection=this.selected,this._onDidSelect.fire({index:this.selectElement.selectedIndex,selected:this.options[this.selected].text}),this.options[this.selected]&&this.options[this.selected].text&&this.setTitle(this.options[this.selected].text)),this.hideSelectDropDown(!0))}onListBlur(){this._sticky||(this.selected!==this._currentSelection&&this.select(this._currentSelection),this.hideSelectDropDown(!1))}renderDescriptionMarkdown(e,t){const i=e=>{for(let t=0;t<e.childNodes.length;t++){const s=e.childNodes.item(t);"img"===(s.tagName&&s.tagName.toLowerCase())?s.remove():i(s)}},s=(0,h.Gc)({value:e,supportThemeIcons:!0},{actionHandler:t});return s.element.classList.add("select-box-description-markdown"),i(s.element),s.element}onListFocus(e){this._isVisible&&this._hasDetails&&this.updateDetail(e.indexes[0])}updateDetail(e){this.selectionDetailsPane.innerText="";const t=this.options[e],i=t?.description??"";if(i){if(t?.descriptionIsMarkdown??!1){const e=t.descriptionMarkdownActionHandler;this.selectionDetailsPane.appendChild(this.renderDescriptionMarkdown(i,e))}else this.selectionDetailsPane.innerText=i;this.selectionDetailsPane.style.display="block"}else this.selectionDetailsPane.style.display="none";this._skipLayout=!0,this.contextViewProvider.layout(),this._skipLayout=!1}onEscape(e){r.fs.stop(e),this.select(this._currentSelection),this.hideSelectDropDown(!0)}onEnter(e){r.fs.stop(e),this.selected!==this._currentSelection&&(this._currentSelection=this.selected,this._onDidSelect.fire({index:this.selectElement.selectedIndex,selected:this.options[this.selected].text}),this.options[this.selected]&&this.options[this.selected].text&&this.setTitle(this.options[this.selected].text)),this.hideSelectDropDown(!0)}onDownArrow(e){if(this.selected<this.options.length-1){r.fs.stop(e,!0);const t=this.options[this.selected+1].isDisabled;if(t&&this.options.length>this.selected+2)this.selected+=2;else{if(t)return;this.selected++}this.select(this.selected),this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selectList.getFocus()[0])}}onUpArrow(e){if(this.selected>0){r.fs.stop(e,!0);this.options[this.selected-1].isDisabled&&this.selected>1?this.selected-=2:this.selected--,this.select(this.selected),this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selectList.getFocus()[0])}}onPageUp(e){r.fs.stop(e),this.selectList.focusPreviousPage(),setTimeout((()=>{this.selected=this.selectList.getFocus()[0],this.options[this.selected].isDisabled&&this.selected<this.options.length-1&&(this.selected++,this.selectList.setFocus([this.selected])),this.selectList.reveal(this.selected),this.select(this.selected)}),1)}onPageDown(e){r.fs.stop(e),this.selectList.focusNextPage(),setTimeout((()=>{this.selected=this.selectList.getFocus()[0],this.options[this.selected].isDisabled&&this.selected>0&&(this.selected--,this.selectList.setFocus([this.selected])),this.selectList.reveal(this.selected),this.select(this.selected)}),1)}onHome(e){r.fs.stop(e),this.options.length<2||(this.selected=0,this.options[this.selected].isDisabled&&this.selected>1&&this.selected++,this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selected),this.select(this.selected))}onEnd(e){r.fs.stop(e),this.options.length<2||(this.selected=this.options.length-1,this.options[this.selected].isDisabled&&this.selected>1&&this.selected--,this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selected),this.select(this.selected))}onCharacter(e){const t=m.YM.toString(e.keyCode);let i=-1;for(let s=0;s<this.options.length-1;s++)if(i=(s+this.selected+1)%this.options.length,this.options[i].text.charAt(0).toUpperCase()===t&&!this.options[i].isDisabled){this.select(i),this.selectList.setFocus([i]),this.selectList.reveal(this.selectList.getFocus()[0]),r.fs.stop(e);break}}dispose(){this.hideSelectDropDown(!1),super.dispose()}}class y extends f.jG{constructor(e,t,i,s){super(),this.selected=0,this.selectBoxOptions=s||Object.create(null),this.options=[],this.selectElement=document.createElement("select"),this.selectElement.className="monaco-select-box","string"===typeof this.selectBoxOptions.ariaLabel&&this.selectElement.setAttribute("aria-label",this.selectBoxOptions.ariaLabel),"string"===typeof this.selectBoxOptions.ariaDescription&&this.selectElement.setAttribute("aria-description",this.selectBoxOptions.ariaDescription),this._onDidSelect=this._register(new p.vl),this.styles=i,this.registerListeners(),this.setOptions(e,t)}registerListeners(){this._register(o.q.addTarget(this.selectElement)),[o.B.Tap].forEach((e=>{this._register(r.ko(this.selectElement,e,(e=>{this.selectElement.focus()})))})),this._register(r.b2(this.selectElement,"click",(e=>{r.fs.stop(e,!0)}))),this._register(r.b2(this.selectElement,"change",(e=>{this.selectElement.title=e.target.value,this._onDidSelect.fire({index:e.target.selectedIndex,selected:e.target.value})}))),this._register(r.b2(this.selectElement,"keydown",(e=>{let t=!1;_.zx?18!==e.keyCode&&16!==e.keyCode&&10!==e.keyCode||(t=!0):(18===e.keyCode&&e.altKey||10===e.keyCode||3===e.keyCode)&&(t=!0),t&&e.stopPropagation()})))}get onDidSelect(){return this._onDidSelect.event}setOptions(e,t){this.options&&g.aI(this.options,e)||(this.options=e,this.selectElement.options.length=0,this.options.forEach(((e,t)=>{this.selectElement.add(this.createOption(e.text,t,e.isDisabled))}))),void 0!==t&&this.select(t)}select(e){0===this.options.length?this.selected=0:e>=0&&e<this.options.length?this.selected=e:e>this.options.length-1?this.select(this.options.length-1):this.selected<0&&(this.selected=0),this.selectElement.selectedIndex=this.selected,this.selected<this.options.length&&"string"===typeof this.options[this.selected].text?this.selectElement.title=this.options[this.selected].text:this.selectElement.title=""}focus(){this.selectElement&&(this.selectElement.tabIndex=0,this.selectElement.focus())}blur(){this.selectElement&&(this.selectElement.tabIndex=-1,this.selectElement.blur())}setFocusable(e){this.selectElement.tabIndex=e?0:-1}render(e){e.classList.add("select-container"),e.appendChild(this.selectElement),this.setOptions(this.options,this.selected),this.applyStyles()}applyStyles(){this.selectElement&&(this.selectElement.style.backgroundColor=this.styles.selectBackground??"",this.selectElement.style.color=this.styles.selectForeground??"",this.selectElement.style.borderColor=this.styles.selectBorder??"")}createOption(e,t,i){const s=document.createElement("option");return s.value=e,s.text=e,s.disabled=!!i,s}}var w=i(17390);class R extends w.x{constructor(e,t,i,s,n){super(),_.zx&&!n?.useCustomDrawn?this.selectBoxDelegate=new y(e,t,s,n):this.selectBoxDelegate=new S(e,t,i,s,n),this._register(this.selectBoxDelegate)}get onDidSelect(){return this.selectBoxDelegate.onDidSelect}setOptions(e,t){this.selectBoxDelegate.setOptions(e,t)}select(e){this.selectBoxDelegate.select(e)}focus(){this.selectBoxDelegate.focus()}blur(){this.selectBoxDelegate.blur()}setFocusable(e){this.selectBoxDelegate.setFocusable(e)}render(e){this.selectBoxDelegate.render(e)}}var L=i(36921),T=i(631);i(62469);class x extends f.jG{get action(){return this._action}constructor(e,t,i={}){super(),this.options=i,this._context=e||this,this._action=t,t instanceof L.rc&&this._register(t.onDidChange((e=>{this.element&&this.handleActionChangeEvent(e)})))}handleActionChangeEvent(e){void 0!==e.enabled&&this.updateEnabled(),void 0!==e.checked&&this.updateChecked(),void 0!==e.class&&this.updateClass(),void 0!==e.label&&(this.updateLabel(),this.updateTooltip()),void 0!==e.tooltip&&this.updateTooltip()}get actionRunner(){return this._actionRunner||(this._actionRunner=this._register(new L.LN)),this._actionRunner}set actionRunner(e){this._actionRunner=e}isEnabled(){return this._action.enabled}setActionContext(e){this._context=e}render(e){const t=this.element=e;this._register(o.q.addTarget(e));const i=this.options&&this.options.draggable;i&&(e.draggable=!0,s.gm&&this._register((0,r.ko)(e,r.Bx.DRAG_START,(e=>e.dataTransfer?.setData(n.t.TEXT,this._action.label))))),this._register((0,r.ko)(t,o.B.Tap,(e=>this.onClick(e,!0)))),this._register((0,r.ko)(t,r.Bx.MOUSE_DOWN,(e=>{i||r.fs.stop(e,!0),this._action.enabled&&0===e.button&&t.classList.add("active")}))),_.zx&&this._register((0,r.ko)(t,r.Bx.CONTEXT_MENU,(e=>{0===e.button&&!0===e.ctrlKey&&this.onClick(e)}))),this._register((0,r.ko)(t,r.Bx.CLICK,(e=>{r.fs.stop(e,!0),this.options&&this.options.isMenu||this.onClick(e)}))),this._register((0,r.ko)(t,r.Bx.DBLCLICK,(e=>{r.fs.stop(e,!0)}))),[r.Bx.MOUSE_UP,r.Bx.MOUSE_OUT].forEach((e=>{this._register((0,r.ko)(t,e,(e=>{r.fs.stop(e),t.classList.remove("active")})))}))}onClick(e,t=!1){r.fs.stop(e,!0);const i=T.z(this._context)?this.options?.useEventAsContext?e:{preserveFocus:t}:this._context;this.actionRunner.run(this._action,i)}focus(){this.element&&(this.element.tabIndex=0,this.element.focus(),this.element.classList.add("focused"))}blur(){this.element&&(this.element.blur(),this.element.tabIndex=-1,this.element.classList.remove("focused"))}setFocusable(e){this.element&&(this.element.tabIndex=e?0:-1)}get trapsArrowNavigation(){return!1}updateEnabled(){}updateLabel(){}getClass(){return this.action.class}getTooltip(){return this.action.tooltip}updateTooltip(){if(!this.element)return;const e=this.getTooltip()??"";if(this.updateAriaLabel(),this.options.hoverDelegate?.showNativeHover)this.element.title=e;else if(this.customHover||""===e)this.customHover&&this.customHover.update(e);else{const t=this.options.hoverDelegate??(0,a.nZ)("element");this.customHover=this._store.add((0,d.i)().setupManagedHover(t,this.element,e))}}updateAriaLabel(){if(this.element){const e=this.getTooltip()??"";this.element.setAttribute("aria-label",e)}}updateClass(){}updateChecked(){}dispose(){this.element&&(this.element.remove(),this.element=void 0),this._context=void 0,super.dispose()}}class k extends x{constructor(e,t,i){super(e,t,i),this.options=i,this.options.icon=void 0!==i.icon&&i.icon,this.options.label=void 0===i.label||i.label,this.cssClass=""}render(e){super.render(e),T.j(this.element);const t=document.createElement("a");if(t.classList.add("action-label"),t.setAttribute("role",this.getDefaultAriaRole()),this.label=t,this.element.appendChild(t),this.options.label&&this.options.keybinding){const e=document.createElement("span");e.classList.add("keybinding"),e.textContent=this.options.keybinding,this.element.appendChild(e)}this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()}getDefaultAriaRole(){return this._action.id===L.wv.ID?"presentation":this.options.isMenu?"menuitem":this.options.isTabList?"tab":"button"}focus(){this.label&&(this.label.tabIndex=0,this.label.focus())}blur(){this.label&&(this.label.tabIndex=-1)}setFocusable(e){this.label&&(this.label.tabIndex=e?0:-1)}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this.action.label)}getTooltip(){let e=null;return this.action.tooltip?e=this.action.tooltip:!this.options.label&&this.action.label&&this.options.icon&&(e=this.action.label,this.options.keybinding&&(e=v.kg({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding))),e??void 0}updateClass(){this.cssClass&&this.label&&this.label.classList.remove(...this.cssClass.split(" ")),this.options.icon?(this.cssClass=this.getClass(),this.label&&(this.label.classList.add("codicon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" "))),this.updateEnabled()):this.label?.classList.remove("codicon")}updateEnabled(){this.action.enabled?(this.label&&(this.label.removeAttribute("aria-disabled"),this.label.classList.remove("disabled")),this.element?.classList.remove("disabled")):(this.label&&(this.label.setAttribute("aria-disabled","true"),this.label.classList.add("disabled")),this.element?.classList.add("disabled"))}updateAriaLabel(){if(this.label){const e=this.getTooltip()??"";this.label.setAttribute("aria-label",e)}}updateChecked(){this.label&&(void 0!==this.action.checked?(this.label.classList.toggle("checked",this.action.checked),this.options.isTabList?this.label.setAttribute("aria-selected",this.action.checked?"true":"false"):(this.label.setAttribute("aria-checked",this.action.checked?"true":"false"),this.label.setAttribute("role","checkbox"))):(this.label.classList.remove("checked"),this.label.removeAttribute(this.options.isTabList?"aria-selected":"aria-checked"),this.label.setAttribute("role",this.getDefaultAriaRole())))}}class A extends x{constructor(e,t,i,s,n,r,o){super(e,t),this.selectBox=new R(i,s,n,r,o),this.selectBox.setFocusable(!1),this._register(this.selectBox),this.registerListeners()}select(e){this.selectBox.select(e)}registerListeners(){this._register(this.selectBox.onDidSelect((e=>this.runAction(e.selected,e.index))))}runAction(e,t){this.actionRunner.run(this._action,this.getActionContext(e,t))}getActionContext(e,t){return e}setFocusable(e){this.selectBox.setFocusable(e)}focus(){this.selectBox?.focus()}blur(){this.selectBox?.blur()}render(e){this.selectBox.render(e)}}},11799:(e,t,i)=>{"use strict";i.d(t,{E:()=>d});var s=i(8597),n=i(72962),r=i(5646),o=i(42904),a=i(36921),c=i(41234),l=i(5662),h=i(631);i(62469);class d extends l.jG{constructor(e,t={}){let i,h;switch(super(),this._actionRunnerDisposables=this._register(new l.Cm),this.viewItemDisposables=this._register(new l.$w),this.triggerKeyDown=!1,this.focusable=!0,this._onDidBlur=this._register(new c.vl),this.onDidBlur=this._onDidBlur.event,this._onDidCancel=this._register(new c.vl({onWillAddFirstListener:()=>this.cancelHasListener=!0})),this.onDidCancel=this._onDidCancel.event,this.cancelHasListener=!1,this._onDidRun=this._register(new c.vl),this.onDidRun=this._onDidRun.event,this._onWillRun=this._register(new c.vl),this.onWillRun=this._onWillRun.event,this.options=t,this._context=t.context??null,this._orientation=this.options.orientation??0,this._triggerKeys={keyDown:this.options.triggerKeys?.keyDown??!1,keys:this.options.triggerKeys?.keys??[3,10]},this._hoverDelegate=t.hoverDelegate??this._register((0,o.bW)()),this.options.actionRunner?this._actionRunner=this.options.actionRunner:(this._actionRunner=new a.LN,this._actionRunnerDisposables.add(this._actionRunner)),this._actionRunnerDisposables.add(this._actionRunner.onDidRun((e=>this._onDidRun.fire(e)))),this._actionRunnerDisposables.add(this._actionRunner.onWillRun((e=>this._onWillRun.fire(e)))),this.viewItems=[],this.focusedItem=void 0,this.domNode=document.createElement("div"),this.domNode.className="monaco-action-bar",this._orientation){case 0:i=[15],h=[17];break;case 1:i=[16],h=[18],this.domNode.className+=" vertical"}this._register(s.ko(this.domNode,s.Bx.KEY_DOWN,(e=>{const t=new n.Z(e);let s=!0;const o="number"===typeof this.focusedItem?this.viewItems[this.focusedItem]:void 0;i&&(t.equals(i[0])||t.equals(i[1]))?s=this.focusPrevious():h&&(t.equals(h[0])||t.equals(h[1]))?s=this.focusNext():t.equals(9)&&this.cancelHasListener?this._onDidCancel.fire():t.equals(14)?s=this.focusFirst():t.equals(13)?s=this.focusLast():t.equals(2)&&o instanceof r.EH&&o.trapsArrowNavigation?s=this.focusNext(void 0,!0):this.isTriggerKeyEvent(t)?this._triggerKeys.keyDown?this.doTrigger(t):this.triggerKeyDown=!0:s=!1,s&&(t.preventDefault(),t.stopPropagation())}))),this._register(s.ko(this.domNode,s.Bx.KEY_UP,(e=>{const t=new n.Z(e);this.isTriggerKeyEvent(t)?(!this._triggerKeys.keyDown&&this.triggerKeyDown&&(this.triggerKeyDown=!1,this.doTrigger(t)),t.preventDefault(),t.stopPropagation()):(t.equals(2)||t.equals(1026)||t.equals(16)||t.equals(18)||t.equals(15)||t.equals(17))&&this.updateFocusedItem()}))),this.focusTracker=this._register(s.w5(this.domNode)),this._register(this.focusTracker.onDidBlur((()=>{s.bq()!==this.domNode&&s.QX(s.bq(),this.domNode)||(this._onDidBlur.fire(),this.previouslyFocusedItem=this.focusedItem,this.focusedItem=void 0,this.triggerKeyDown=!1)}))),this._register(this.focusTracker.onDidFocus((()=>this.updateFocusedItem()))),this.actionsList=document.createElement("ul"),this.actionsList.className="actions-container",this.options.highlightToggledItems&&this.actionsList.classList.add("highlight-toggled"),this.actionsList.setAttribute("role",this.options.ariaRole||"toolbar"),this.options.ariaLabel&&this.actionsList.setAttribute("aria-label",this.options.ariaLabel),this.domNode.appendChild(this.actionsList),e.appendChild(this.domNode)}refreshRole(){this.length()>=1?this.actionsList.setAttribute("role",this.options.ariaRole||"toolbar"):this.actionsList.setAttribute("role","presentation")}setFocusable(e){if(this.focusable=e,this.focusable){const e=this.viewItems.find((e=>e instanceof r.EH&&e.isEnabled()));e instanceof r.EH&&e.setFocusable(!0)}else this.viewItems.forEach((e=>{e instanceof r.EH&&e.setFocusable(!1)}))}isTriggerKeyEvent(e){let t=!1;return this._triggerKeys.keys.forEach((i=>{t=t||e.equals(i)})),t}updateFocusedItem(){for(let e=0;e<this.actionsList.children.length;e++){const t=this.actionsList.children[e];if(s.QX(s.bq(),t)){this.focusedItem=e,this.viewItems[this.focusedItem]?.showHover?.();break}}}get context(){return this._context}set context(e){this._context=e,this.viewItems.forEach((t=>t.setActionContext(e)))}get actionRunner(){return this._actionRunner}set actionRunner(e){this._actionRunner=e,this._actionRunnerDisposables.clear(),this._actionRunnerDisposables.add(this._actionRunner.onDidRun((e=>this._onDidRun.fire(e)))),this._actionRunnerDisposables.add(this._actionRunner.onWillRun((e=>this._onWillRun.fire(e)))),this.viewItems.forEach((t=>t.actionRunner=e))}getContainer(){return this.domNode}getAction(e){if("number"===typeof e)return this.viewItems[e]?.action;if(s.sb(e)){for(;e.parentElement!==this.actionsList;){if(!e.parentElement)return;e=e.parentElement}for(let t=0;t<this.actionsList.childNodes.length;t++)if(this.actionsList.childNodes[t]===e)return this.viewItems[t].action}}push(e,t={}){const i=Array.isArray(e)?e:[e];let n=h.Et(t.index)?t.index:null;i.forEach((e=>{const i=document.createElement("li");let o;i.className="action-item",i.setAttribute("role","presentation");const a={hoverDelegate:this._hoverDelegate,...t,isTabList:"tablist"===this.options.ariaRole};this.options.actionViewItemProvider&&(o=this.options.actionViewItemProvider(e,a)),o||(o=new r.Z4(this.context,e,a)),this.options.allowContextMenu||this.viewItemDisposables.set(o,s.ko(i,s.Bx.CONTEXT_MENU,(e=>{s.fs.stop(e,!0)}))),o.actionRunner=this._actionRunner,o.setActionContext(this.context),o.render(i),this.focusable&&o instanceof r.EH&&0===this.viewItems.length&&o.setFocusable(!0),null===n||n<0||n>=this.actionsList.children.length?(this.actionsList.appendChild(i),this.viewItems.push(o)):(this.actionsList.insertBefore(i,this.actionsList.children[n]),this.viewItems.splice(n,0,o),n++)})),"number"===typeof this.focusedItem&&this.focus(this.focusedItem),this.refreshRole()}clear(){this.isEmpty()||(this.viewItems=(0,l.AS)(this.viewItems),this.viewItemDisposables.clearAndDisposeAll(),s.w_(this.actionsList),this.refreshRole())}length(){return this.viewItems.length}isEmpty(){return 0===this.viewItems.length}focus(e){let t,i=!1;if(void 0===e?i=!0:"number"===typeof e?t=e:"boolean"===typeof e&&(i=e),i&&"undefined"===typeof this.focusedItem){const e=this.viewItems.findIndex((e=>e.isEnabled()));this.focusedItem=-1===e?void 0:e,this.updateFocus(void 0,void 0,!0)}else void 0!==t&&(this.focusedItem=t),this.updateFocus(void 0,void 0,!0)}focusFirst(){return this.focusedItem=this.length()-1,this.focusNext(!0)}focusLast(){return this.focusedItem=0,this.focusPrevious(!0)}focusNext(e,t){if("undefined"===typeof this.focusedItem)this.focusedItem=this.viewItems.length-1;else if(this.viewItems.length<=1)return!1;const i=this.focusedItem;let s;do{if(!e&&this.options.preventLoopNavigation&&this.focusedItem+1>=this.viewItems.length)return this.focusedItem=i,!1;this.focusedItem=(this.focusedItem+1)%this.viewItems.length,s=this.viewItems[this.focusedItem]}while(this.focusedItem!==i&&(this.options.focusOnlyEnabledItems&&!s.isEnabled()||s.action.id===a.wv.ID));return this.updateFocus(void 0,void 0,t),!0}focusPrevious(e){if("undefined"===typeof this.focusedItem)this.focusedItem=0;else if(this.viewItems.length<=1)return!1;const t=this.focusedItem;let i;do{if(this.focusedItem=this.focusedItem-1,this.focusedItem<0){if(!e&&this.options.preventLoopNavigation)return this.focusedItem=t,!1;this.focusedItem=this.viewItems.length-1}i=this.viewItems[this.focusedItem]}while(this.focusedItem!==t&&(this.options.focusOnlyEnabledItems&&!i.isEnabled()||i.action.id===a.wv.ID));return this.updateFocus(!0),!0}updateFocus(e,t,i=!1){"undefined"===typeof this.focusedItem&&this.actionsList.focus({preventScroll:t}),void 0!==this.previouslyFocusedItem&&this.previouslyFocusedItem!==this.focusedItem&&this.viewItems[this.previouslyFocusedItem]?.blur();const s=void 0!==this.focusedItem?this.viewItems[this.focusedItem]:void 0;if(s){let n=!0;h.Tn(s.focus)||(n=!1),this.options.focusOnlyEnabledItems&&h.Tn(s.isEnabled)&&!s.isEnabled()&&(n=!1),s.action.id===a.wv.ID&&(n=!1),n?(i||this.previouslyFocusedItem!==this.focusedItem)&&(s.focus(e),this.previouslyFocusedItem=this.focusedItem):(this.actionsList.focus({preventScroll:t}),this.previouslyFocusedItem=void 0),n&&s.showHover?.()}}doTrigger(e){if("undefined"===typeof this.focusedItem)return;const t=this.viewItems[this.focusedItem];if(t instanceof r.EH){const i=null===t._context||void 0===t._context?e:t._context;this.run(t._action,i)}}async run(e,t){await this._actionRunner.run(e,t)}dispose(){this._context=void 0,this.viewItems=(0,l.AS)(this.viewItems),this.getContainer().remove(),super.dispose()}}},11007:(e,t,i)=>{"use strict";i.d(t,{xE:()=>d,vr:()=>h,h5:()=>u});var s=i(8597);const n=2e4;let r,o,a,c,l;function h(e){r=document.createElement("div"),r.className="monaco-aria-container";const t=()=>{const e=document.createElement("div");return e.className="monaco-alert",e.setAttribute("role","alert"),e.setAttribute("aria-atomic","true"),r.appendChild(e),e};o=t(),a=t();const i=()=>{const e=document.createElement("div");return e.className="monaco-status",e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),r.appendChild(e),e};c=i(),l=i(),e.appendChild(r)}function d(e){r&&(o.textContent!==e?(s.w_(a),g(o,e)):(s.w_(o),g(a,e)))}function u(e){r&&(c.textContent!==e?(s.w_(l),g(c,e)):(s.w_(c),g(l,e)))}function g(e,t){s.w_(e),t.length>n&&(t=t.substr(0,n)),e.textContent=t,e.style.visibility="hidden",e.style.visibility="visible"}},62890:(e,t,i)=>{"use strict";i.d(t,{$:()=>f});var s=i(8597),n=i(83750),r=i(72962),o=i(68214),a=i(25154),c=i(42904),l=i(20370),h=i(47661),d=i(41234),u=i(16980),g=i(5662),p=i(25689),m=i(48196);h.Q1.white.toString(),h.Q1.white.toString();class f extends g.jG{get onDidClick(){return this._onDidClick.event}constructor(e,t){super(),this._label="",this._onDidClick=this._register(new d.vl),this._onDidEscape=this._register(new d.vl),this.options=t,this._element=document.createElement("a"),this._element.classList.add("monaco-button"),this._element.tabIndex=0,this._element.setAttribute("role","button"),this._element.classList.toggle("secondary",!!t.secondary);const i=t.secondary?t.buttonSecondaryBackground:t.buttonBackground,n=t.secondary?t.buttonSecondaryForeground:t.buttonForeground;this._element.style.color=n||"",this._element.style.backgroundColor=i||"",t.supportShortLabel&&(this._labelShortElement=document.createElement("div"),this._labelShortElement.classList.add("monaco-button-label-short"),this._element.appendChild(this._labelShortElement),this._labelElement=document.createElement("div"),this._labelElement.classList.add("monaco-button-label"),this._element.appendChild(this._labelElement),this._element.classList.add("monaco-text-button-with-short-label")),"string"===typeof t.title&&this.setTitle(t.title),"string"===typeof t.ariaLabel&&this._element.setAttribute("aria-label",t.ariaLabel),e.appendChild(this._element),this._register(a.q.addTarget(this._element)),[s.Bx.CLICK,a.B.Tap].forEach((e=>{this._register((0,s.ko)(this._element,e,(e=>{this.enabled?this._onDidClick.fire(e):s.fs.stop(e)})))})),this._register((0,s.ko)(this._element,s.Bx.KEY_DOWN,(e=>{const t=new r.Z(e);let i=!1;this.enabled&&(t.equals(3)||t.equals(10))?(this._onDidClick.fire(e),i=!0):t.equals(9)&&(this._onDidEscape.fire(e),this._element.blur(),i=!0),i&&s.fs.stop(t,!0)}))),this._register((0,s.ko)(this._element,s.Bx.MOUSE_OVER,(e=>{this._element.classList.contains("disabled")||this.updateBackground(!0)}))),this._register((0,s.ko)(this._element,s.Bx.MOUSE_OUT,(e=>{this.updateBackground(!1)}))),this.focusTracker=this._register((0,s.w5)(this._element)),this._register(this.focusTracker.onDidFocus((()=>{this.enabled&&this.updateBackground(!0)}))),this._register(this.focusTracker.onDidBlur((()=>{this.enabled&&this.updateBackground(!1)})))}dispose(){super.dispose(),this._element.remove()}getContentElements(e){const t=[];for(let i of(0,l.n)(e))if("string"===typeof i){if(i=i.trim(),""===i)continue;const e=document.createElement("span");e.textContent=i,t.push(e)}else t.push(i);return t}updateBackground(e){let t;t=this.options.secondary?e?this.options.buttonSecondaryHoverBackground:this.options.buttonSecondaryBackground:e?this.options.buttonHoverBackground:this.options.buttonBackground,t&&(this._element.style.backgroundColor=t)}get element(){return this._element}set label(e){if(this._label===e)return;if((0,u.VS)(this._label)&&(0,u.VS)(e)&&(0,u.nK)(this._label,e))return;this._element.classList.add("monaco-text-button");const t=this.options.supportShortLabel?this._labelElement:this._element;if((0,u.VS)(e)){const i=(0,o.Gc)(e,{inline:!0});i.dispose();const r=i.element.querySelector("p")?.innerHTML;if(r){const e=(0,n.aj)(r,{ADD_TAGS:["b","i","u","code","span"],ALLOWED_ATTR:["class"],RETURN_TRUSTED_TYPE:!0});t.innerHTML=e}else(0,s.Ln)(t)}else this.options.supportIcons?(0,s.Ln)(t,...this.getContentElements(e)):t.textContent=e;let i="";"string"===typeof this.options.title?i=this.options.title:this.options.title&&(i=(0,o.R9)(e)),this.setTitle(i),"string"===typeof this.options.ariaLabel?this._element.setAttribute("aria-label",this.options.ariaLabel):this.options.ariaLabel&&this._element.setAttribute("aria-label",i),this._label=e}get label(){return this._label}set icon(e){this._element.classList.add(...p.L.asClassNameArray(e))}set enabled(e){e?(this._element.classList.remove("disabled"),this._element.setAttribute("aria-disabled",String(!1)),this._element.tabIndex=0):(this._element.classList.add("disabled"),this._element.setAttribute("aria-disabled",String(!0)))}get enabled(){return!this._element.classList.contains("disabled")}setTitle(e){this._hover||""===e?this._hover&&this._hover.update(e):this._hover=this._register((0,m.i)().setupManagedHover(this.options.hoverDelegate??(0,c.nZ)("mouse"),this._element,e))}}},97791:()=>{},3828:(e,t,i)=>{"use strict";i.d(t,{x:()=>r});var s=i(8597),n=i(91508);class r{constructor(e,t,i){this.options=t,this.styles=i,this.count=0,this.element=(0,s.BC)(e,(0,s.$)(".monaco-count-badge")),this.countFormat=this.options.countFormat||"{0}",this.titleFormat=this.options.titleFormat||"",this.setCount(this.options.count||0)}setCount(e){this.count=e,this.render()}setTitleFormat(e){this.titleFormat=e,this.render()}render(){this.element.textContent=(0,n.GP)(this.countFormat,this.count),this.element.title=(0,n.GP)(this.titleFormat,this.count),this.element.style.backgroundColor=this.styles.badgeBackground??"",this.element.style.color=this.styles.badgeForeground??"",this.styles.badgeBorder&&(this.element.style.border=`1px solid ${this.styles.badgeBorder}`)}}},89506:(e,t,i)=>{"use strict";i.d(t,{d:()=>g});var s=i(8597),n=i(5646),r=i(72962),o=i(25154),a=i(36921),c=i(41234);class l extends a.LN{constructor(e,t){super(),this._onDidChangeVisibility=this._register(new c.vl),this.onDidChangeVisibility=this._onDidChangeVisibility.event,this._element=(0,s.BC)(e,(0,s.$)(".monaco-dropdown")),this._label=(0,s.BC)(this._element,(0,s.$)(".dropdown-label"));let i=t.labelRenderer;i||(i=e=>(e.textContent=t.label||"",null));for(const r of[s.Bx.CLICK,s.Bx.MOUSE_DOWN,o.B.Tap])this._register((0,s.ko)(this.element,r,(e=>s.fs.stop(e,!0))));for(const r of[s.Bx.MOUSE_DOWN,o.B.Tap])this._register((0,s.ko)(this._label,r,(e=>{(0,s.Er)(e)&&(e.detail>1||0!==e.button)||(this.visible?this.hide():this.show())})));this._register((0,s.ko)(this._label,s.Bx.KEY_UP,(e=>{const t=new r.Z(e);(t.equals(3)||t.equals(10))&&(s.fs.stop(e,!0),this.visible?this.hide():this.show())})));const n=i(this._label);n&&this._register(n),this._register(o.q.addTarget(this._label))}get element(){return this._element}show(){this.visible||(this.visible=!0,this._onDidChangeVisibility.fire(!0))}hide(){this.visible&&(this.visible=!1,this._onDidChangeVisibility.fire(!1))}dispose(){super.dispose(),this.hide(),this.boxContainer&&(this.boxContainer.remove(),this.boxContainer=void 0),this.contents&&(this.contents.remove(),this.contents=void 0),this._label&&(this._label.remove(),this._label=void 0)}}class h extends l{constructor(e,t){super(e,t),this._options=t,this._actions=[],this.actions=t.actions||[]}set menuOptions(e){this._menuOptions=e}get menuOptions(){return this._menuOptions}get actions(){return this._options.actionProvider?this._options.actionProvider.getActions():this._actions}set actions(e){this._actions=e}show(){super.show(),this.element.classList.add("active"),this._options.contextMenuProvider.showContextMenu({getAnchor:()=>this.element,getActions:()=>this.actions,getActionsContext:()=>this.menuOptions?this.menuOptions.context:null,getActionViewItem:(e,t)=>this.menuOptions&&this.menuOptions.actionViewItemProvider?this.menuOptions.actionViewItemProvider(e,t):void 0,getKeyBinding:e=>this.menuOptions&&this.menuOptions.getKeyBinding?this.menuOptions.getKeyBinding(e):void 0,getMenuClassName:()=>this._options.menuClassName||"",onHide:()=>this.onHide(),actionRunner:this.menuOptions?this.menuOptions.actionRunner:void 0,anchorAlignment:this.menuOptions?this.menuOptions.anchorAlignment:0,domForShadowRoot:this._options.menuAsChild?this.element:void 0,skipTelemetry:this._options.skipTelemetry})}hide(){super.hide()}onHide(){this.hide(),this.element.classList.remove("active")}}var d=i(42904),u=i(48196);class g extends n.EH{constructor(e,t,i,s=Object.create(null)){super(null,e,s),this.actionItem=null,this._onDidChangeVisibility=this._register(new c.vl),this.onDidChangeVisibility=this._onDidChangeVisibility.event,this.menuActionsOrProvider=t,this.contextMenuProvider=i,this.options=s,this.options.actionRunner&&(this.actionRunner=this.options.actionRunner)}render(e){this.actionItem=e;const t=Array.isArray(this.menuActionsOrProvider),i={contextMenuProvider:this.contextMenuProvider,labelRenderer:e=>{this.element=(0,s.BC)(e,(0,s.$)("a.action-label"));let t=[];return"string"===typeof this.options.classNames?t=this.options.classNames.split(/\s+/g).filter((e=>!!e)):this.options.classNames&&(t=this.options.classNames),t.find((e=>"icon"===e))||t.push("codicon"),this.element.classList.add(...t),this.element.setAttribute("role","button"),this.element.setAttribute("aria-haspopup","true"),this.element.setAttribute("aria-expanded","false"),this._action.label&&this._register((0,u.i)().setupManagedHover(this.options.hoverDelegate??(0,d.nZ)("mouse"),this.element,this._action.label)),this.element.ariaLabel=this._action.label||"",null},menuAsChild:this.options.menuAsChild,actions:t?this.menuActionsOrProvider:void 0,actionProvider:t?void 0:this.menuActionsOrProvider,skipTelemetry:this.options.skipTelemetry};if(this.dropdownMenu=this._register(new h(e,i)),this._register(this.dropdownMenu.onDidChangeVisibility((e=>{this.element?.setAttribute("aria-expanded",`${e}`),this._onDidChangeVisibility.fire(e)}))),this.dropdownMenu.menuOptions={actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,getKeyBinding:this.options.keybindingProvider,context:this._context},this.options.anchorAlignmentProvider){const e=this;this.dropdownMenu.menuOptions={...this.dropdownMenu.menuOptions,get anchorAlignment(){return e.options.anchorAlignmentProvider()}}}this.updateTooltip(),this.updateEnabled()}getTooltip(){let e=null;return this.action.tooltip?e=this.action.tooltip:this.action.label&&(e=this.action.label),e??void 0}setActionContext(e){super.setActionContext(e),this.dropdownMenu&&(this.dropdownMenu.menuOptions?this.dropdownMenu.menuOptions.context=e:this.dropdownMenu.menuOptions={context:e})}show(){this.dropdownMenu?.show()}updateEnabled(){const e=!this.action.enabled;this.actionItem?.classList.toggle("disabled",e),this.element?.classList.toggle("disabled",e)}}},88443:(e,t,i)=>{"use strict";i.d(t,{c:()=>u});var s=i(8597),n=i(23034),r=i(91581),o=i(17390),a=i(41234),c=(i(10713),i(78209)),l=i(5662),h=i(42904);const d=c.kg("defaultLabel","input");class u extends o.x{constructor(e,t,i){super(),this.fixFocusOnOptionClickEnabled=!0,this.imeSessionInProgress=!1,this.additionalTogglesDisposables=this._register(new l.HE),this.additionalToggles=[],this._onDidOptionChange=this._register(new a.vl),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new a.vl),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new a.vl),this.onMouseDown=this._onMouseDown.event,this._onInput=this._register(new a.vl),this._onKeyUp=this._register(new a.vl),this._onCaseSensitiveKeyDown=this._register(new a.vl),this.onCaseSensitiveKeyDown=this._onCaseSensitiveKeyDown.event,this._onRegexKeyDown=this._register(new a.vl),this.onRegexKeyDown=this._onRegexKeyDown.event,this._lastHighlightFindOptions=0,this.placeholder=i.placeholder||"",this.validation=i.validation,this.label=i.label||d,this.showCommonFindToggles=!!i.showCommonFindToggles;const o=i.appendCaseSensitiveLabel||"",c=i.appendWholeWordsLabel||"",u=i.appendRegexLabel||"",g=i.history||[],p=!!i.flexibleHeight,m=!!i.flexibleWidth,f=i.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new r.mJ(this.domNode,t,{placeholder:this.placeholder||"",ariaLabel:this.label||"",validationOptions:{validation:this.validation},history:g,showHistoryHint:i.showHistoryHint,flexibleHeight:p,flexibleWidth:m,flexibleMaxHeight:f,inputBoxStyles:i.inputBoxStyles}));const _=this._register((0,h.bW)());if(this.showCommonFindToggles){this.regex=this._register(new n.Ix({appendTitle:u,isChecked:!1,hoverDelegate:_,...i.toggleStyles})),this._register(this.regex.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()}))),this._register(this.regex.onKeyDown((e=>{this._onRegexKeyDown.fire(e)}))),this.wholeWords=this._register(new n.nV({appendTitle:c,isChecked:!1,hoverDelegate:_,...i.toggleStyles})),this._register(this.wholeWords.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()}))),this.caseSensitive=this._register(new n.bc({appendTitle:o,isChecked:!1,hoverDelegate:_,...i.toggleStyles})),this._register(this.caseSensitive.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()}))),this._register(this.caseSensitive.onKeyDown((e=>{this._onCaseSensitiveKeyDown.fire(e)})));const e=[this.caseSensitive.domNode,this.wholeWords.domNode,this.regex.domNode];this.onkeydown(this.domNode,(t=>{if(t.equals(15)||t.equals(17)||t.equals(9)){const i=e.indexOf(this.domNode.ownerDocument.activeElement);if(i>=0){let n=-1;t.equals(17)?n=(i+1)%e.length:t.equals(15)&&(n=0===i?e.length-1:i-1),t.equals(9)?(e[i].blur(),this.inputBox.focus()):n>=0&&e[n].focus(),s.fs.stop(t,!0)}}}))}this.controls=document.createElement("div"),this.controls.className="controls",this.controls.style.display=this.showCommonFindToggles?"":"none",this.caseSensitive&&this.controls.append(this.caseSensitive.domNode),this.wholeWords&&this.controls.appendChild(this.wholeWords.domNode),this.regex&&this.controls.appendChild(this.regex.domNode),this.setAdditionalToggles(i?.additionalToggles),this.controls&&this.domNode.appendChild(this.controls),e?.appendChild(this.domNode),this._register(s.ko(this.inputBox.inputElement,"compositionstart",(e=>{this.imeSessionInProgress=!0}))),this._register(s.ko(this.inputBox.inputElement,"compositionend",(e=>{this.imeSessionInProgress=!1,this._onInput.fire()}))),this.onkeydown(this.inputBox.inputElement,(e=>this._onKeyDown.fire(e))),this.onkeyup(this.inputBox.inputElement,(e=>this._onKeyUp.fire(e))),this.oninput(this.inputBox.inputElement,(e=>this._onInput.fire())),this.onmousedown(this.inputBox.inputElement,(e=>this._onMouseDown.fire(e)))}get onDidChange(){return this.inputBox.onDidChange}layout(e){this.inputBox.layout(),this.updateInputBoxPadding(e.collapsedFindWidget)}enable(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.regex?.enable(),this.wholeWords?.enable(),this.caseSensitive?.enable();for(const e of this.additionalToggles)e.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.regex?.disable(),this.wholeWords?.disable(),this.caseSensitive?.disable();for(const e of this.additionalToggles)e.disable()}setFocusInputOnOptionClick(e){this.fixFocusOnOptionClickEnabled=e}setEnabled(e){e?this.enable():this.disable()}setAdditionalToggles(e){for(const t of this.additionalToggles)t.domNode.remove();this.additionalToggles=[],this.additionalTogglesDisposables.value=new l.Cm;for(const t of e??[])this.additionalTogglesDisposables.value.add(t),this.controls.appendChild(t.domNode),this.additionalTogglesDisposables.value.add(t.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus()}))),this.additionalToggles.push(t);this.additionalToggles.length>0&&(this.controls.style.display=""),this.updateInputBoxPadding()}updateInputBoxPadding(e=!1){this.inputBox.paddingRight=e?0:(this.caseSensitive?.width()??0)+(this.wholeWords?.width()??0)+(this.regex?.width()??0)+this.additionalToggles.reduce(((e,t)=>e+t.width()),0)}getValue(){return this.inputBox.value}setValue(e){this.inputBox.value!==e&&(this.inputBox.value=e)}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getCaseSensitive(){return this.caseSensitive?.checked??!1}setCaseSensitive(e){this.caseSensitive&&(this.caseSensitive.checked=e)}getWholeWords(){return this.wholeWords?.checked??!1}setWholeWords(e){this.wholeWords&&(this.wholeWords.checked=e)}getRegex(){return this.regex?.checked??!1}setRegex(e){this.regex&&(this.regex.checked=e,this.validate())}focusOnCaseSensitive(){this.caseSensitive?.focus()}highlightFindOptions(){this.domNode.classList.remove("highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,this.domNode.classList.add("highlight-"+this._lastHighlightFindOptions)}validate(){this.inputBox.validate()}showMessage(e){this.inputBox.showMessage(e)}clearMessage(){this.inputBox.hideMessage()}}},23034:(e,t,i)=>{"use strict";i.d(t,{Ix:()=>u,bc:()=>h,nV:()=>d});var s=i(42904),n=i(35315),r=i(10350),o=i(78209);const a=o.kg("caseDescription","Match Case"),c=o.kg("wordsDescription","Match Whole Word"),l=o.kg("regexDescription","Use Regular Expression");class h extends n.l{constructor(e){super({icon:r.W.caseSensitive,title:a+e.appendTitle,isChecked:e.isChecked,hoverDelegate:e.hoverDelegate??(0,s.nZ)("element"),inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class d extends n.l{constructor(e){super({icon:r.W.wholeWord,title:c+e.appendTitle,isChecked:e.isChecked,hoverDelegate:e.hoverDelegate??(0,s.nZ)("element"),inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class u extends n.l{constructor(e){super({icon:r.W.regex,title:l+e.appendTitle,isChecked:e.isChecked,hoverDelegate:e.hoverDelegate??(0,s.nZ)("element"),inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}},37479:(e,t,i)=>{"use strict";i.d(t,{_:()=>l});var s=i(8597),n=i(48196),r=i(42904),o=i(20370),a=i(5662),c=i(10146);class l extends a.jG{constructor(e,t){super(),this.options=t,this.text="",this.title="",this.highlights=[],this.didEverRender=!1,this.supportIcons=t?.supportIcons??!1,this.domNode=s.BC(e,s.$("span.monaco-highlighted-label"))}get element(){return this.domNode}set(e,t=[],i="",s){e||(e=""),s&&(e=l.escapeNewLines(e,t)),this.didEverRender&&this.text===e&&this.title===i&&c.aI(this.highlights,t)||(this.text=e,this.title=i,this.highlights=t,this.render())}render(){const e=[];let t=0;for(const i of this.highlights){if(i.end===i.start)continue;if(t<i.start){const s=this.text.substring(t,i.start);this.supportIcons?e.push(...(0,o.n)(s)):e.push(s),t=i.start}const n=this.text.substring(t,i.end),r=s.$("span.highlight",void 0,...this.supportIcons?(0,o.n)(n):[n]);i.extraClasses&&r.classList.add(...i.extraClasses),e.push(r),t=i.end}if(t<this.text.length){const i=this.text.substring(t);this.supportIcons?e.push(...(0,o.n)(i)):e.push(i)}if(s.Ln(this.domNode,...e),this.options?.hoverDelegate?.showNativeHover)this.domNode.title=this.title;else if(this.customHover||""===this.title)this.customHover&&this.customHover.update(this.title);else{const e=this.options?.hoverDelegate??(0,r.nZ)("mouse");this.customHover=this._register((0,n.i)().setupManagedHover(e,this.domNode,this.title))}this.didEverRender=!0}static escapeNewLines(e,t){let i=0,s=0;return e.replace(/\r\n|\r|\n/g,((e,n)=>{s="\r\n"===e?-1:0,n+=i;for(const i of t)i.end<=n||(i.start>=n&&(i.start+=s),i.end>=n&&(i.end+=s));return i+=s,"\u23ce"}))}}},48196:(e,t,i)=>{"use strict";i.d(t,{e:()=>n,i:()=>r});let s={showHover:()=>{},hideHover:()=>{},showAndFocusLastHover:()=>{},setupManagedHover:()=>null,showManagedHover:()=>{}};function n(e){s=e}function r(){return s}},42904:(e,t,i)=>{"use strict";i.d(t,{MW:()=>a,bW:()=>l,nZ:()=>c});var s=i(91090);let n=()=>({get delay(){return-1},dispose:()=>{},showHover:()=>{}});const r=new s.d((()=>n("mouse",!1))),o=new s.d((()=>n("element",!1)));function a(e){n=e}function c(e){return"element"===e?o.value:r.value}function l(){return n("element",!0)}},52776:(e,t,i)=>{"use strict";i.d(t,{vV:()=>u,jQ:()=>h,N4:()=>l,M4:()=>g,vr:()=>d});var s=i(8597),n=i(72962),r=i(31295),o=i(5662),a=i(78209);const c=s.$;class l extends o.jG{constructor(){super(),this.containerDomNode=document.createElement("div"),this.containerDomNode.className="monaco-hover",this.containerDomNode.tabIndex=0,this.containerDomNode.setAttribute("role","tooltip"),this.contentsDomNode=document.createElement("div"),this.contentsDomNode.className="monaco-hover-content",this.scrollbar=this._register(new r.MU(this.contentsDomNode,{consumeMouseWheelIfScrollbarIsNeeded:!0})),this.containerDomNode.appendChild(this.scrollbar.getDomNode())}onContentsChanged(){this.scrollbar.scanDomNode()}}class h extends o.jG{static render(e,t,i){return new h(e,t,i)}constructor(e,t,i){super(),this.actionLabel=t.label,this.actionKeybindingLabel=i,this.actionContainer=s.BC(e,c("div.action-container")),this.actionContainer.setAttribute("tabindex","0"),this.action=s.BC(this.actionContainer,c("a.action")),this.action.setAttribute("role","button"),t.iconClass&&s.BC(this.action,c(`span.icon.${t.iconClass}`));s.BC(this.action,c("span")).textContent=i?`${t.label} (${i})`:t.label,this._store.add(new u(this.actionContainer,t.run)),this._store.add(new g(this.actionContainer,t.run,[3,10])),this.setEnabled(!0)}setEnabled(e){e?(this.actionContainer.classList.remove("disabled"),this.actionContainer.removeAttribute("aria-disabled")):(this.actionContainer.classList.add("disabled"),this.actionContainer.setAttribute("aria-disabled","true"))}}function d(e,t){return e&&t?(0,a.kg)("acessibleViewHint","Inspect this in the accessible view with {0}.",t):e?(0,a.kg)("acessibleViewHintNoKbOpen","Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding."):""}class u extends o.jG{constructor(e,t){super(),this._register(s.ko(e,s.Bx.CLICK,(i=>{i.stopPropagation(),i.preventDefault(),t(e)})))}}class g extends o.jG{constructor(e,t,i){super(),this._register(s.ko(e,s.Bx.KEY_DOWN,(s=>{const r=new n.Z(s);i.some((e=>r.equals(e)))&&(s.stopPropagation(),s.preventDefault(),t(e))})))}}},21852:(e,t,i)=>{"use strict";i.d(t,{s:()=>g});var s=i(8597),n=i(37479),r=i(5662),o=i(10146),a=i(92719),c=i(42904),l=i(48196),h=i(631),d=i(37882);class u{constructor(e){this._element=e}get element(){return this._element}set textContent(e){this.disposed||e===this._textContent||(this._textContent=e,this._element.textContent=e)}set classNames(e){this.disposed||(0,o.aI)(e,this._classNames)||(this._classNames=e,this._element.classList.value="",this._element.classList.add(...e))}set empty(e){this.disposed||e===this._empty||(this._empty=e,this._element.style.marginLeft=e?"0":"")}dispose(){this.disposed=!0}}class g extends r.jG{constructor(e,t){super(),this.customHovers=new Map,this.creationOptions=t,this.domNode=this._register(new u(s.BC(e,s.$(".monaco-icon-label")))),this.labelContainer=s.BC(this.domNode.element,s.$(".monaco-icon-label-container")),this.nameContainer=s.BC(this.labelContainer,s.$("span.monaco-icon-name-container")),this.nameNode=t?.supportHighlights||t?.supportIcons?this._register(new m(this.nameContainer,!!t.supportIcons)):new p(this.nameContainer),this.hoverDelegate=t?.hoverDelegate??(0,c.nZ)("mouse")}get element(){return this.domNode.element}setLabel(e,t,i){const r=["monaco-icon-label"],o=["monaco-icon-label-container"];let a="";i&&(i.extraClasses&&r.push(...i.extraClasses),i.italic&&r.push("italic"),i.strikethrough&&r.push("strikethrough"),i.disabledCommand&&o.push("disabled"),i.title&&("string"===typeof i.title?a+=i.title:a+=e));const c=this.domNode.element.querySelector(".monaco-icon-label-iconpath");if(i?.iconPath){let e;c&&s.sb(c)?e=c:(e=s.$(".monaco-icon-label-iconpath"),this.domNode.element.prepend(e)),e.style.backgroundImage=s.Tf(i?.iconPath)}else c&&c.remove();if(this.domNode.classNames=r,this.domNode.element.setAttribute("aria-label",a),this.labelContainer.classList.value="",this.labelContainer.classList.add(...o),this.setupHover(i?.descriptionTitle?this.labelContainer:this.element,i?.title),this.nameNode.setLabel(e,i),t||this.descriptionNode){const e=this.getOrCreateDescriptionNode();e instanceof n._?(e.set(t||"",i?i.descriptionMatches:void 0,void 0,i?.labelEscapeNewLines),this.setupHover(e.element,i?.descriptionTitle)):(e.textContent=t&&i?.labelEscapeNewLines?n._.escapeNewLines(t,[]):t||"",this.setupHover(e.element,i?.descriptionTitle||""),e.empty=!t)}if(i?.suffix||this.suffixNode){this.getOrCreateSuffixNode().textContent=i?.suffix??""}}setupHover(e,t){const i=this.customHovers.get(e);if(i&&(i.dispose(),this.customHovers.delete(e)),t)if(this.hoverDelegate.showNativeHover){function s(e,t){(0,h.Kg)(t)?e.title=(0,d.pS)(t):t?.markdownNotSupportedFallback?e.title=t.markdownNotSupportedFallback:e.removeAttribute("title")}s(e,t)}else{const n=(0,l.i)().setupManagedHover(this.hoverDelegate,e,t);n&&this.customHovers.set(e,n)}else e.removeAttribute("title")}dispose(){super.dispose();for(const e of this.customHovers.values())e.dispose();this.customHovers.clear()}getOrCreateSuffixNode(){if(!this.suffixNode){const e=this._register(new u(s.Pl(this.nameContainer,s.$("span.monaco-icon-suffix-container"))));this.suffixNode=this._register(new u(s.BC(e.element,s.$("span.label-suffix"))))}return this.suffixNode}getOrCreateDescriptionNode(){if(!this.descriptionNode){const e=this._register(new u(s.BC(this.labelContainer,s.$("span.monaco-icon-description-container"))));this.creationOptions?.supportDescriptionHighlights?this.descriptionNode=this._register(new n._(s.BC(e.element,s.$("span.label-description")),{supportIcons:!!this.creationOptions.supportIcons})):this.descriptionNode=this._register(new u(s.BC(e.element,s.$("span.label-description"))))}return this.descriptionNode}}class p{constructor(e){this.container=e,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(this.label!==e||!(0,o.aI)(this.options,t))if(this.label=e,this.options=t,"string"===typeof e)this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=s.BC(this.container,s.$("a.label-name",{id:t?.domId}))),this.singleLabel.textContent=e;else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;for(let i=0;i<e.length;i++){const n=e[i],r=t?.domId&&`${t?.domId}_${i}`;s.BC(this.container,s.$("a.label-name",{id:r,"data-icon-label-count":e.length,"data-icon-label-index":i,role:"treeitem"},n)),i<e.length-1&&s.BC(this.container,s.$("span.label-separator",void 0,t?.separator||"/"))}}}}class m extends r.jG{constructor(e,t){super(),this.container=e,this.supportIcons=t,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(this.label!==e||!(0,o.aI)(this.options,t))if(this.label=e,this.options=t,"string"===typeof e)this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=this._register(new n._(s.BC(this.container,s.$("a.label-name",{id:t?.domId})),{supportIcons:this.supportIcons}))),this.singleLabel.set(e,t?.matches,void 0,t?.labelEscapeNewLines);else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;const i=t?.separator||"/",r=function(e,t,i){if(!i)return;let s=0;return e.map((e=>{const n={start:s,end:s+e.length},r=i.map((e=>a.Q.intersect(n,e))).filter((e=>!a.Q.isEmpty(e))).map((({start:e,end:t})=>({start:e-s,end:t-s})));return s=n.end+t.length,r}))}(e,i,t?.matches);for(let o=0;o<e.length;o++){const a=e[o],c=r?r[o]:void 0,l=t?.domId&&`${t?.domId}_${o}`,h=s.$("a.label-name",{id:l,"data-icon-label-count":e.length,"data-icon-label-index":o,role:"treeitem"});this._register(new n._(s.BC(this.container,h),{supportIcons:this.supportIcons})).set(a,c,void 0,t?.labelEscapeNewLines),o<e.length-1&&s.BC(h,s.$("span.label-separator",void 0,i))}}}}},20370:(e,t,i)=>{"use strict";i.d(t,{n:()=>o,s:()=>a});var s=i(8597),n=i(25689);const r=new RegExp(`(\\\\)?\\$\\((${n.L.iconNameExpression}(?:${n.L.iconModifierExpression})?)\\)`,"g");function o(e){const t=new Array;let i,s=0,n=0;for(;null!==(i=r.exec(e));){n=i.index||0,s<n&&t.push(e.substring(s,n)),s=(i.index||0)+i[0].length;const[,r,o]=i;t.push(r?`$(${o})`:a({id:o}))}return s<e.length&&t.push(e.substring(s)),t}function a(e){const t=s.$("span");return t.classList.add(...n.L.asClassNameArray(e)),t}},91581:(e,t,i)=>{"use strict";i.d(t,{mJ:()=>E,x8:()=>v});var s=i(8597),n=i(56245),r=i(27661),o=i(11799),a=i(11007),c=i(48196),l=i(42904),h=i(31295),d=i(17390),u=i(41234);class g{constructor(e,t=0,i=e.length,s=t-1){this.items=e,this.start=t,this.end=i,this.index=s}current(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]}next(){return this.index=Math.min(this.index+1,this.end),this.current()}previous(){return this.index=Math.max(this.index-1,this.start-1),this.current()}first(){return this.index=this.start,this.current()}last(){return this.index=this.end-1,this.current()}}class p{constructor(e=[],t=10){this._initialize(e),this._limit=t,this._onChange()}getHistory(){return this._elements}add(e){this._history.delete(e),this._history.add(e),this._onChange()}next(){return this._navigator.next()}previous(){return 0!==this._currentPosition()?this._navigator.previous():null}current(){return this._navigator.current()}first(){return this._navigator.first()}last(){return this._navigator.last()}isLast(){return this._currentPosition()>=this._elements.length-1}isNowhere(){return null===this._navigator.current()}has(e){return this._history.has(e)}_onChange(){this._reduceToLimit();const e=this._elements;this._navigator=new g(e,0,e.length,e.length)}_reduceToLimit(){const e=this._elements;e.length>this._limit&&this._initialize(e.slice(e.length-this._limit))}_currentPosition(){const e=this._navigator.current();return e?this._elements.indexOf(e):-1}_initialize(e){this._history=new Set;for(const t of e)this._history.add(t)}get _elements(){const e=[];return this._history.forEach((t=>e.push(t))),e}}var m=i(10146),f=i(78209);const _=s.$,v={inputBackground:"#3C3C3C",inputForeground:"#CCCCCC",inputValidationInfoBorder:"#55AAFF",inputValidationInfoBackground:"#063B49",inputValidationWarningBorder:"#B89500",inputValidationWarningBackground:"#352A05",inputValidationErrorBorder:"#BE1100",inputValidationErrorBackground:"#5A1D1D",inputBorder:void 0,inputValidationErrorForeground:void 0,inputValidationInfoForeground:void 0,inputValidationWarningForeground:void 0};class C extends d.x{constructor(e,t,i){super(),this.state="idle",this.maxHeight=Number.POSITIVE_INFINITY,this._onDidChange=this._register(new u.vl),this.onDidChange=this._onDidChange.event,this._onDidHeightChange=this._register(new u.vl),this.onDidHeightChange=this._onDidHeightChange.event,this.contextViewProvider=t,this.options=i,this.message=null,this.placeholder=this.options.placeholder||"",this.tooltip=this.options.tooltip??(this.placeholder||""),this.ariaLabel=this.options.ariaLabel||"",this.options.validationOptions&&(this.validation=this.options.validationOptions.validation),this.element=s.BC(e,_(".monaco-inputbox.idle"));const r=this.options.flexibleHeight?"textarea":"input",a=s.BC(this.element,_(".ibwrapper"));if(this.input=s.BC(a,_(r+".input.empty")),this.input.setAttribute("autocorrect","off"),this.input.setAttribute("autocapitalize","off"),this.input.setAttribute("spellcheck","false"),this.onfocus(this.input,(()=>this.element.classList.add("synthetic-focus"))),this.onblur(this.input,(()=>this.element.classList.remove("synthetic-focus"))),this.options.flexibleHeight){this.maxHeight="number"===typeof this.options.flexibleMaxHeight?this.options.flexibleMaxHeight:Number.POSITIVE_INFINITY,this.mirror=s.BC(a,_("div.mirror")),this.mirror.innerText="\xa0",this.scrollableElement=new h.Se(this.element,{vertical:1}),this.options.flexibleWidth&&(this.input.setAttribute("wrap","off"),this.mirror.style.whiteSpace="pre",this.mirror.style.wordWrap="initial"),s.BC(e,this.scrollableElement.getDomNode()),this._register(this.scrollableElement),this._register(this.scrollableElement.onScroll((e=>this.input.scrollTop=e.scrollTop)));const t=this._register(new n.f(e.ownerDocument,"selectionchange")),i=u.Jh.filter(t.event,(()=>{const t=e.ownerDocument.getSelection();return t?.anchorNode===a}));this._register(i(this.updateScrollDimensions,this)),this._register(this.onDidHeightChange(this.updateScrollDimensions,this))}else this.input.type=this.options.type||"text",this.input.setAttribute("wrap","off");this.ariaLabel&&this.input.setAttribute("aria-label",this.ariaLabel),this.placeholder&&!this.options.showPlaceholderOnFocus&&this.setPlaceHolder(this.placeholder),this.tooltip&&this.setTooltip(this.tooltip),this.oninput(this.input,(()=>this.onValueChange())),this.onblur(this.input,(()=>this.onBlur())),this.onfocus(this.input,(()=>this.onFocus())),this._register(this.ignoreGesture(this.input)),setTimeout((()=>this.updateMirror()),0),this.options.actions&&(this.actionbar=this._register(new o.E(this.element)),this.actionbar.push(this.options.actions,{icon:!0,label:!1})),this.applyStyles()}onBlur(){this._hideMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder","")}onFocus(){this._showMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder",this.placeholder||"")}setPlaceHolder(e){this.placeholder=e,this.input.setAttribute("placeholder",e)}setTooltip(e){this.tooltip=e,this.hover?this.hover.update(e):this.hover=this._register((0,c.i)().setupManagedHover((0,l.nZ)("mouse"),this.input,e))}get inputElement(){return this.input}get value(){return this.input.value}set value(e){this.input.value!==e&&(this.input.value=e,this.onValueChange())}get height(){return"number"===typeof this.cachedHeight?this.cachedHeight:s.OK(this.element)}focus(){this.input.focus()}blur(){this.input.blur()}hasFocus(){return s.X7(this.input)}select(e=null){this.input.select(),e&&(this.input.setSelectionRange(e.start,e.end),e.end===this.input.value.length&&(this.input.scrollLeft=this.input.scrollWidth))}isSelectionAtEnd(){return this.input.selectionEnd===this.input.value.length&&this.input.selectionStart===this.input.selectionEnd}getSelection(){const e=this.input.selectionStart;if(null===e)return null;return{start:e,end:this.input.selectionEnd??e}}enable(){this.input.removeAttribute("disabled")}disable(){this.blur(),this.input.disabled=!0,this._hideMessage()}set paddingRight(e){this.input.style.width=`calc(100% - ${e}px)`,this.mirror&&(this.mirror.style.paddingRight=e+"px")}updateScrollDimensions(){if("number"!==typeof this.cachedContentHeight||"number"!==typeof this.cachedHeight||!this.scrollableElement)return;const e=this.cachedContentHeight,t=this.cachedHeight,i=this.input.scrollTop;this.scrollableElement.setScrollDimensions({scrollHeight:e,height:t}),this.scrollableElement.setScrollPosition({scrollTop:i})}showMessage(e,t){if("open"===this.state&&(0,m.aI)(this.message,e))return;this.message=e,this.element.classList.remove("idle"),this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add(this.classForType(e.type));const i=this.stylesForType(this.message.type);this.element.style.border=`1px solid ${s.gI(i.border,"transparent")}`,this.message.content&&(this.hasFocus()||t)&&this._showMessage()}hideMessage(){this.message=null,this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add("idle"),this._hideMessage(),this.applyStyles()}validate(){let e=null;return this.validation&&(e=this.validation(this.value),e?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(e)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),e?.type}stylesForType(e){const t=this.options.inputBoxStyles;switch(e){case 1:return{border:t.inputValidationInfoBorder,background:t.inputValidationInfoBackground,foreground:t.inputValidationInfoForeground};case 2:return{border:t.inputValidationWarningBorder,background:t.inputValidationWarningBackground,foreground:t.inputValidationWarningForeground};default:return{border:t.inputValidationErrorBorder,background:t.inputValidationErrorBackground,foreground:t.inputValidationErrorForeground}}}classForType(e){switch(e){case 1:return"info";case 2:return"warning";default:return"error"}}_showMessage(){if(!this.contextViewProvider||!this.message)return;let e;const t=()=>e.style.width=s.Tr(this.element)+"px";let i;this.contextViewProvider.showContextView({getAnchor:()=>this.element,anchorAlignment:1,render:i=>{if(!this.message)return null;e=s.BC(i,_(".monaco-inputbox-container")),t();const n={inline:!0,className:"monaco-inputbox-message"},o=this.message.formatContent?(0,r.yk)(this.message.content,n):(0,r.S5)(this.message.content,n);o.classList.add(this.classForType(this.message.type));const a=this.stylesForType(this.message.type);return o.style.backgroundColor=a.background??"",o.style.color=a.foreground??"",o.style.border=a.border?`1px solid ${a.border}`:"",s.BC(e,o),null},onHide:()=>{this.state="closed"},layout:t}),i=3===this.message.type?f.kg("alertErrorMessage","Error: {0}",this.message.content):2===this.message.type?f.kg("alertWarningMessage","Warning: {0}",this.message.content):f.kg("alertInfoMessage","Info: {0}",this.message.content),a.xE(i),this.state="open"}_hideMessage(){this.contextViewProvider&&("open"===this.state&&this.contextViewProvider.hideContextView(),this.state="idle")}onValueChange(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),this.input.classList.toggle("empty",!this.value),"open"===this.state&&this.contextViewProvider&&this.contextViewProvider.layout()}updateMirror(){if(!this.mirror)return;const e=this.value,t=10===e.charCodeAt(e.length-1)?" ":"";(e+t).replace(/\u000c/g,"")?this.mirror.textContent=e+t:this.mirror.innerText="\xa0",this.layout()}applyStyles(){const e=this.options.inputBoxStyles,t=e.inputBackground??"",i=e.inputForeground??"",n=e.inputBorder??"";this.element.style.backgroundColor=t,this.element.style.color=i,this.input.style.backgroundColor="inherit",this.input.style.color=i,this.element.style.border=`1px solid ${s.gI(n,"transparent")}`}layout(){if(!this.mirror)return;const e=this.cachedContentHeight;this.cachedContentHeight=s.OK(this.mirror),e!==this.cachedContentHeight&&(this.cachedHeight=Math.min(this.cachedContentHeight,this.maxHeight),this.input.style.height=this.cachedHeight+"px",this._onDidHeightChange.fire(this.cachedContentHeight))}insertAtCursor(e){const t=this.inputElement,i=t.selectionStart,s=t.selectionEnd,n=t.value;null!==i&&null!==s&&(this.value=n.substr(0,i)+e+n.substr(s),t.setSelectionRange(i+1,i+1),this.layout())}dispose(){this._hideMessage(),this.message=null,this.actionbar?.dispose(),super.dispose()}}class E extends C{constructor(e,t,i){const n=f.kg({key:"history.inputbox.hint.suffix.noparens",comment:['Text is the suffix of an input field placeholder coming after the action the input field performs, this will be used when the input field ends in a closing parenthesis ")", for example "Filter (e.g. text, !exclude)". The character inserted into the final string is \u21c5 to represent the up and down arrow keys.']}," or {0} for history","\u21c5"),r=f.kg({key:"history.inputbox.hint.suffix.inparens",comment:['Text is the suffix of an input field placeholder coming after the action the input field performs, this will be used when the input field does NOT end in a closing parenthesis (eg. "Find"). The character inserted into the final string is \u21c5 to represent the up and down arrow keys.']}," ({0} for history)","\u21c5");super(e,t,i),this._onDidFocus=this._register(new u.vl),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new u.vl),this.onDidBlur=this._onDidBlur.event,this.history=new p(i.history,100);const o=()=>{if(i.showHistoryHint&&i.showHistoryHint()&&!this.placeholder.endsWith(n)&&!this.placeholder.endsWith(r)&&this.history.getHistory().length){const e=this.placeholder.endsWith(")")?n:r,t=this.placeholder+e;i.showPlaceholderOnFocus&&!s.X7(this.input)?this.placeholder=t:this.setPlaceHolder(t)}};this.observer=new MutationObserver(((e,t)=>{e.forEach((e=>{e.target.textContent||o()}))})),this.observer.observe(this.input,{attributeFilter:["class"]}),this.onfocus(this.input,(()=>o())),this.onblur(this.input,(()=>{const e=e=>{if(this.placeholder.endsWith(e)){const t=this.placeholder.slice(0,this.placeholder.length-e.length);return i.showPlaceholderOnFocus?this.placeholder=t:this.setPlaceHolder(t),!0}return!1};e(r)||e(n)}))}dispose(){super.dispose(),this.observer&&(this.observer.disconnect(),this.observer=void 0)}addToHistory(e){this.value&&(e||this.value!==this.getCurrentValue())&&this.history.add(this.value)}isAtLastInHistory(){return this.history.isLast()}isNowhereInHistory(){return this.history.isNowhere()}showNextValue(){this.history.has(this.value)||this.addToHistory();let e=this.getNextValue();e&&(e=e===this.value?this.getNextValue():e),this.value=e??"",a.h5(this.value?this.value:f.kg("clearedInput","Cleared Input"))}showPreviousValue(){this.history.has(this.value)||this.addToHistory();let e=this.getPreviousValue();e&&(e=e===this.value?this.getPreviousValue():e),e&&(this.value=e,a.h5(this.value))}setPlaceHolder(e){super.setPlaceHolder(e),this.setTooltip(e)}onBlur(){super.onBlur(),this._onDidBlur.fire()}onFocus(){super.onFocus(),this._onDidFocus.fire()}getCurrentValue(){let e=this.history.current();return e||(e=this.history.last(),this.history.next()),e}getPreviousValue(){return this.history.previous()||this.history.first()}getNextValue(){return this.history.next()}}},47625:(e,t,i)=>{"use strict";i.d(t,{x:()=>u,l:()=>d});var s=i(8597),n=i(48196),r=i(42904),o=i(83619),a=i(5662),c=i(10146),l=i(78209);const h=s.$,d={keybindingLabelBackground:void 0,keybindingLabelForeground:void 0,keybindingLabelBorder:void 0,keybindingLabelBottomBorder:void 0,keybindingLabelShadow:void 0};class u extends a.jG{constructor(e,t,i){super(),this.os=t,this.keyElements=new Set,this.options=i||Object.create(null);const o=this.options.keybindingLabelForeground;this.domNode=s.BC(e,h(".monaco-keybinding")),o&&(this.domNode.style.color=o),this.hover=this._register((0,n.i)().setupManagedHover((0,r.nZ)("mouse"),this.domNode,"")),this.didEverRender=!1,e.appendChild(this.domNode)}get element(){return this.domNode}set(e,t){this.didEverRender&&this.keybinding===e&&u.areSame(this.matches,t)||(this.keybinding=e,this.matches=t,this.render())}render(){if(this.clear(),this.keybinding){const e=this.keybinding.getChords();e[0]&&this.renderChord(this.domNode,e[0],this.matches?this.matches.firstPart:null);for(let i=1;i<e.length;i++)s.BC(this.domNode,h("span.monaco-keybinding-key-chord-separator",void 0," ")),this.renderChord(this.domNode,e[i],this.matches?this.matches.chordPart:null);const t=this.options.disableTitle?void 0:this.keybinding.getAriaLabel()||void 0;this.hover.update(t),this.domNode.setAttribute("aria-label",t||"")}else this.options&&this.options.renderUnboundKeybindings&&this.renderUnbound(this.domNode);this.didEverRender=!0}clear(){s.w_(this.domNode),this.keyElements.clear()}renderChord(e,t,i){const s=o.Of.modifierLabels[this.os];t.ctrlKey&&this.renderKey(e,s.ctrlKey,Boolean(i?.ctrlKey),s.separator),t.shiftKey&&this.renderKey(e,s.shiftKey,Boolean(i?.shiftKey),s.separator),t.altKey&&this.renderKey(e,s.altKey,Boolean(i?.altKey),s.separator),t.metaKey&&this.renderKey(e,s.metaKey,Boolean(i?.metaKey),s.separator);const n=t.keyLabel;n&&this.renderKey(e,n,Boolean(i?.keyCode),"")}renderKey(e,t,i,n){s.BC(e,this.createKeyElement(t,i?".highlight":"")),n&&s.BC(e,h("span.monaco-keybinding-key-separator",void 0,n))}renderUnbound(e){s.BC(e,this.createKeyElement((0,l.kg)("unbound","Unbound")))}createKeyElement(e,t=""){const i=h("span.monaco-keybinding-key"+t,void 0,e);return this.keyElements.add(i),this.options.keybindingLabelBackground&&(i.style.backgroundColor=this.options.keybindingLabelBackground),this.options.keybindingLabelBorder&&(i.style.borderColor=this.options.keybindingLabelBorder),this.options.keybindingLabelBottomBorder&&(i.style.borderBottomColor=this.options.keybindingLabelBottomBorder),this.options.keybindingLabelShadow&&(i.style.boxShadow=`inset 0 -1px 0 ${this.options.keybindingLabelShadow}`),i}static areSame(e,t){return e===t||!e&&!t||!!e&&!!t&&(0,c.aI)(e.firstPart,t.firstPart)&&(0,c.aI)(e.chordPart,t.chordPart)}}},66700:(e,t,i)=>{"use strict";i.d(t,{ur:()=>w,uO:()=>x});var s=i(42731),n=i(8597),r=i(56245),o=i(25154),a=i(31295),c=i(25890),l=i(90766),h=i(58694),d=i(41234),u=i(5662),g=i(92719),p=i(49353);function m(e,t){const i=[];for(const s of t){if(e.start>=s.range.end)continue;if(e.end<s.range.start)break;const t=g.Q.intersect(e,s.range);g.Q.isEmpty(t)||i.push({range:t,size:s.size})}return i}function f({start:e,end:t},i){return{start:e+i,end:t+i}}class _{get paddingTop(){return this._paddingTop}set paddingTop(e){this._size=this._size+e-this._paddingTop,this._paddingTop=e}constructor(e){this.groups=[],this._size=0,this._paddingTop=0,this._paddingTop=e??0,this._size=this._paddingTop}splice(e,t,i=[]){const s=i.length-t,n=m({start:0,end:e},this.groups),r=m({start:e+t,end:Number.POSITIVE_INFINITY},this.groups).map((e=>({range:f(e.range,s),size:e.size}))),o=i.map(((t,i)=>({range:{start:e+i,end:e+i+1},size:t.size})));this.groups=function(...e){return function(e){const t=[];let i=null;for(const s of e){const e=s.range.start,n=s.range.end,r=s.size;i&&r===i.size?i.range.end=n:(i={range:{start:e,end:n},size:r},t.push(i))}return t}(e.reduce(((e,t)=>e.concat(t)),[]))}(n,o,r),this._size=this._paddingTop+this.groups.reduce(((e,t)=>e+t.size*(t.range.end-t.range.start)),0)}get count(){const e=this.groups.length;return e?this.groups[e-1].range.end:0}get size(){return this._size}indexAt(e){if(e<0)return-1;if(e<this._paddingTop)return 0;let t=0,i=this._paddingTop;for(const s of this.groups){const n=s.range.end-s.range.start,r=i+n*s.size;if(e<r)return t+Math.floor((e-i)/s.size);t+=n,i=r}return t}indexAfter(e){return Math.min(this.indexAt(e)+1,this.count)}positionAt(e){if(e<0)return-1;let t=0,i=0;for(const s of this.groups){const n=s.range.end-s.range.start,r=i+n;if(e<r)return this._paddingTop+t+(e-i)*s.size;t+=n*s.size,i=r}return-1}}class v{constructor(e){this.renderers=e,this.cache=new Map,this.transactionNodesPendingRemoval=new Set,this.inTransaction=!1}alloc(e){let t=this.getTemplateCache(e).pop(),i=!1;if(t)i=this.transactionNodesPendingRemoval.has(t.domNode),i&&this.transactionNodesPendingRemoval.delete(t.domNode);else{const i=(0,n.$)(".monaco-list-row");t={domNode:i,templateId:e,templateData:this.getRenderer(e).renderTemplate(i)}}return{row:t,isReusingConnectedDomNode:i}}release(e){e&&this.releaseRow(e)}transact(e){if(this.inTransaction)throw new Error("Already in transaction");this.inTransaction=!0;try{e()}finally{for(const e of this.transactionNodesPendingRemoval)this.doRemoveNode(e);this.transactionNodesPendingRemoval.clear(),this.inTransaction=!1}}releaseRow(e){const{domNode:t,templateId:i}=e;t&&(this.inTransaction?this.transactionNodesPendingRemoval.add(t):this.doRemoveNode(t));this.getTemplateCache(i).push(e)}doRemoveNode(e){e.classList.remove("scrolling"),e.remove()}getTemplateCache(e){let t=this.cache.get(e);return t||(t=[],this.cache.set(e,t)),t}dispose(){this.cache.forEach(((e,t)=>{for(const i of e){this.getRenderer(t).disposeTemplate(i.templateData),i.templateData=null}})),this.cache.clear(),this.transactionNodesPendingRemoval.clear()}getRenderer(e){const t=this.renderers.get(e);if(!t)throw new Error(`No renderer found for ${e}`);return t}}var C=i(64383),E=i(1592),b=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};const S={CurrentDragAndDropData:void 0},y={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0,setRowHeight:!0,supportDynamicHeights:!1,dnd:{getDragElements:e=>[e],getDragURI:()=>null,onDragStart(){},onDragOver:()=>!1,drop(){},dispose(){}},horizontalScrolling:!1,transformOptimization:!0,alwaysConsumeMouseWheel:!0};class w{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class R{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class L{constructor(){this.types=[],this.files=[]}update(e){if(e.types&&this.types.splice(0,this.types.length,...e.types),e.files){this.files.splice(0,this.files.length);for(let t=0;t<e.files.length;t++){const i=e.files.item(t);i&&(i.size||i.type)&&this.files.push(i)}}}getData(){return{types:this.types,files:this.files}}}class T{constructor(e){this.getSetSize=e?.getSetSize?e.getSetSize.bind(e):(e,t,i)=>i,this.getPosInSet=e?.getPosInSet?e.getPosInSet.bind(e):(e,t)=>t+1,this.getRole=e?.getRole?e.getRole.bind(e):e=>"listitem",this.isChecked=e?.isChecked?e.isChecked.bind(e):e=>{}}}class x{static{this.InstanceCount=0}get contentHeight(){return this.rangeMap.size}get onDidScroll(){return this.scrollableElement.onScroll}get scrollableElementDomNode(){return this.scrollableElement.getDomNode()}get horizontalScrolling(){return this._horizontalScrolling}set horizontalScrolling(e){if(e!==this._horizontalScrolling){if(e&&this.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");if(this._horizontalScrolling=e,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this._horizontalScrolling){for(const e of this.items)this.measureItemWidth(e);this.updateScrollWidth(),this.scrollableElement.setScrollDimensions({width:(0,n.y6)(this.domNode)}),this.rowsContainer.style.width=`${Math.max(this.scrollWidth||0,this.renderWidth)}px`}else this.scrollableElementWidthDelayer.cancel(),this.scrollableElement.setScrollDimensions({width:this.renderWidth,scrollWidth:this.renderWidth}),this.rowsContainer.style.width=""}}constructor(e,t,i,s=y){if(this.virtualDelegate=t,this.domId="list_id_"+ ++x.InstanceCount,this.renderers=new Map,this.renderWidth=0,this._scrollHeight=0,this.scrollableElementUpdateDisposable=null,this.scrollableElementWidthDelayer=new l.ve(50),this.splicing=!1,this.dragOverAnimationStopDisposable=u.jG.None,this.dragOverMouseY=0,this.canDrop=!1,this.currentDragFeedbackDisposable=u.jG.None,this.onDragLeaveTimeout=u.jG.None,this.disposables=new u.Cm,this._onDidChangeContentHeight=new d.vl,this._onDidChangeContentWidth=new d.vl,this.onDidChangeContentHeight=d.Jh.latch(this._onDidChangeContentHeight.event,void 0,this.disposables),this._horizontalScrolling=!1,s.horizontalScrolling&&s.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");this.items=[],this.itemId=0,this.rangeMap=this.createRangeMap(s.paddingTop??0);for(const n of i)this.renderers.set(n.templateId,n);this.cache=this.disposables.add(new v(this.renderers)),this.lastRenderTop=0,this.lastRenderHeight=0,this.domNode=document.createElement("div"),this.domNode.className="monaco-list",this.domNode.classList.add(this.domId),this.domNode.tabIndex=0,this.domNode.classList.toggle("mouse-support","boolean"!==typeof s.mouseSupport||s.mouseSupport),this._horizontalScrolling=s.horizontalScrolling??y.horizontalScrolling,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this.paddingBottom="undefined"===typeof s.paddingBottom?0:s.paddingBottom,this.accessibilityProvider=new T(s.accessibilityProvider),this.rowsContainer=document.createElement("div"),this.rowsContainer.className="monaco-list-rows";(s.transformOptimization??y.transformOptimization)&&(this.rowsContainer.style.transform="translate3d(0px, 0px, 0px)",this.rowsContainer.style.overflow="hidden",this.rowsContainer.style.contain="strict"),this.disposables.add(o.q.addTarget(this.rowsContainer)),this.scrollable=this.disposables.add(new p.yE({forceIntegerValues:!0,smoothScrollDuration:s.smoothScrolling?125:0,scheduleAtNextAnimationFrame:e=>(0,n.PG)((0,n.zk)(this.domNode),e)})),this.scrollableElement=this.disposables.add(new a.oO(this.rowsContainer,{alwaysConsumeMouseWheel:s.alwaysConsumeMouseWheel??y.alwaysConsumeMouseWheel,horizontal:1,vertical:s.verticalScrollMode??y.verticalScrollMode,useShadows:s.useShadows??y.useShadows,mouseWheelScrollSensitivity:s.mouseWheelScrollSensitivity,fastScrollSensitivity:s.fastScrollSensitivity,scrollByPage:s.scrollByPage},this.scrollable)),this.domNode.appendChild(this.scrollableElement.getDomNode()),e.appendChild(this.domNode),this.scrollableElement.onScroll(this.onScroll,this,this.disposables),this.disposables.add((0,n.ko)(this.rowsContainer,o.B.Change,(e=>this.onTouchChange(e)))),this.disposables.add((0,n.ko)(this.scrollableElement.getDomNode(),"scroll",(e=>e.target.scrollTop=0))),this.disposables.add((0,n.ko)(this.domNode,"dragover",(e=>this.onDragOver(this.toDragEvent(e))))),this.disposables.add((0,n.ko)(this.domNode,"drop",(e=>this.onDrop(this.toDragEvent(e))))),this.disposables.add((0,n.ko)(this.domNode,"dragleave",(e=>this.onDragLeave(this.toDragEvent(e))))),this.disposables.add((0,n.ko)(this.domNode,"dragend",(e=>this.onDragEnd(e)))),this.setRowLineHeight=s.setRowLineHeight??y.setRowLineHeight,this.setRowHeight=s.setRowHeight??y.setRowHeight,this.supportDynamicHeights=s.supportDynamicHeights??y.supportDynamicHeights,this.dnd=s.dnd??this.disposables.add(y.dnd),this.layout(s.initialSize?.height,s.initialSize?.width)}updateOptions(e){let t;if(void 0!==e.paddingBottom&&(this.paddingBottom=e.paddingBottom,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),void 0!==e.smoothScrolling&&this.scrollable.setSmoothScrollDuration(e.smoothScrolling?125:0),void 0!==e.horizontalScrolling&&(this.horizontalScrolling=e.horizontalScrolling),void 0!==e.scrollByPage&&(t={...t??{},scrollByPage:e.scrollByPage}),void 0!==e.mouseWheelScrollSensitivity&&(t={...t??{},mouseWheelScrollSensitivity:e.mouseWheelScrollSensitivity}),void 0!==e.fastScrollSensitivity&&(t={...t??{},fastScrollSensitivity:e.fastScrollSensitivity}),t&&this.scrollableElement.updateOptions(t),void 0!==e.paddingTop&&e.paddingTop!==this.rangeMap.paddingTop){const t=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),i=e.paddingTop-this.rangeMap.paddingTop;this.rangeMap.paddingTop=e.paddingTop,this.render(t,Math.max(0,this.lastRenderTop+i),this.lastRenderHeight,void 0,void 0,!0),this.setScrollTop(this.lastRenderTop),this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.lastRenderTop,this.lastRenderHeight)}}createRangeMap(e){return new _(e)}splice(e,t,i=[]){if(this.splicing)throw new Error("Can't run recursive splices.");this.splicing=!0;try{return this._splice(e,t,i)}finally{this.splicing=!1,this._onDidChangeContentHeight.fire(this.contentHeight)}}_splice(e,t,i=[]){const s=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),n={start:e,end:e+t},r=g.Q.intersect(s,n),o=new Map;for(let u=r.end-1;u>=r.start;u--){const e=this.items[u];if(e.dragStartDisposable.dispose(),e.checkedDisposable.dispose(),e.row){let t=o.get(e.templateId);t||(t=[],o.set(e.templateId,t));const i=this.renderers.get(e.templateId);i&&i.disposeElement&&i.disposeElement(e.element,u,e.row.templateData,e.size),t.unshift(e.row)}e.row=null,e.stale=!0}const a={start:e+t,end:this.items.length},c=g.Q.intersect(a,s),l=g.Q.relativeComplement(a,s),h=i.map((e=>({id:String(this.itemId++),element:e,templateId:this.virtualDelegate.getTemplateId(e),size:this.virtualDelegate.getHeight(e),width:void 0,hasDynamicHeight:!!this.virtualDelegate.hasDynamicHeight&&this.virtualDelegate.hasDynamicHeight(e),lastDynamicHeightWidth:void 0,row:null,uri:void 0,dropTarget:!1,dragStartDisposable:u.jG.None,checkedDisposable:u.jG.None,stale:!1})));let d;0===e&&t>=this.items.length?(this.rangeMap=this.createRangeMap(this.rangeMap.paddingTop),this.rangeMap.splice(0,0,h),d=this.items,this.items=h):(this.rangeMap.splice(e,t,h),d=this.items.splice(e,t,...h));const p=i.length-t,m=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),_=f(c,p),v=g.Q.intersect(m,_);for(let u=v.start;u<v.end;u++)this.updateItemInDOM(this.items[u],u);const C=g.Q.relativeComplement(_,m);for(const u of C)for(let e=u.start;e<u.end;e++)this.removeItemFromDOM(e);const E=l.map((e=>f(e,p))),b=[{start:e,end:e+i.length},...E].map((e=>g.Q.intersect(m,e))).reverse();for(const u of b)for(let e=u.end-1;e>=u.start;e--){const t=this.items[e],i=o.get(t.templateId),s=i?.pop();this.insertItemInDOM(e,s)}for(const u of o.values())for(const e of u)this.cache.release(e);return this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),d.map((e=>e.element))}eventuallyUpdateScrollDimensions(){this._scrollHeight=this.contentHeight,this.rowsContainer.style.height=`${this._scrollHeight}px`,this.scrollableElementUpdateDisposable||(this.scrollableElementUpdateDisposable=(0,n.PG)((0,n.zk)(this.domNode),(()=>{this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight}),this.updateScrollWidth(),this.scrollableElementUpdateDisposable=null})))}eventuallyUpdateScrollWidth(){this.horizontalScrolling?this.scrollableElementWidthDelayer.trigger((()=>this.updateScrollWidth())):this.scrollableElementWidthDelayer.cancel()}updateScrollWidth(){if(!this.horizontalScrolling)return;let e=0;for(const t of this.items)"undefined"!==typeof t.width&&(e=Math.max(e,t.width));this.scrollWidth=e,this.scrollableElement.setScrollDimensions({scrollWidth:0===e?0:e+10}),this._onDidChangeContentWidth.fire(this.scrollWidth)}rerender(){if(this.supportDynamicHeights){for(const e of this.items)e.lastDynamicHeightWidth=void 0;this._rerender(this.lastRenderTop,this.lastRenderHeight)}}get length(){return this.items.length}get renderHeight(){return this.scrollableElement.getScrollDimensions().height}get firstVisibleIndex(){return this.getRenderRange(this.lastRenderTop,this.lastRenderHeight).start}element(e){return this.items[e].element}indexOf(e){return this.items.findIndex((t=>t.element===e))}domElement(e){const t=this.items[e].row;return t&&t.domNode}elementHeight(e){return this.items[e].size}elementTop(e){return this.rangeMap.positionAt(e)}indexAt(e){return this.rangeMap.indexAt(e)}indexAfter(e){return this.rangeMap.indexAfter(e)}layout(e,t){const i={height:"number"===typeof e?e:(0,n.H4)(this.domNode)};this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,i.scrollHeight=this.scrollHeight),this.scrollableElement.setScrollDimensions(i),"undefined"!==typeof t&&(this.renderWidth=t,this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight)),this.horizontalScrolling&&this.scrollableElement.setScrollDimensions({width:"number"===typeof t?t:(0,n.y6)(this.domNode)})}render(e,t,i,s,n,r=!1){const o=this.getRenderRange(t,i),a=g.Q.relativeComplement(o,e).reverse(),c=g.Q.relativeComplement(e,o);if(r){const t=g.Q.intersect(e,o);for(let e=t.start;e<t.end;e++)this.updateItemInDOM(this.items[e],e)}this.cache.transact((()=>{for(const e of c)for(let t=e.start;t<e.end;t++)this.removeItemFromDOM(t);for(const e of a)for(let t=e.end-1;t>=e.start;t--)this.insertItemInDOM(t)})),void 0!==s&&(this.rowsContainer.style.left=`-${s}px`),this.rowsContainer.style.top=`-${t}px`,this.horizontalScrolling&&void 0!==n&&(this.rowsContainer.style.width=`${Math.max(n,this.renderWidth)}px`),this.lastRenderTop=t,this.lastRenderHeight=i}insertItemInDOM(e,t){const i=this.items[e];if(!i.row)if(t)i.row=t,i.stale=!0;else{const e=this.cache.alloc(i.templateId);i.row=e.row,i.stale||=e.isReusingConnectedDomNode}const s=this.accessibilityProvider.getRole(i.element)||"listitem";i.row.domNode.setAttribute("role",s);const r=this.accessibilityProvider.isChecked(i.element);if("boolean"===typeof r)i.row.domNode.setAttribute("aria-checked",String(!!r));else if(r){const e=e=>i.row.domNode.setAttribute("aria-checked",String(!!e));e(r.value),i.checkedDisposable=r.onDidChange((()=>e(r.value)))}if(i.stale||!i.row.domNode.parentElement){const t=this.items.at(e+1)?.row?.domNode??null;i.row.domNode.parentElement===this.rowsContainer&&i.row.domNode.nextElementSibling===t||this.rowsContainer.insertBefore(i.row.domNode,t),i.stale=!1}this.updateItemInDOM(i,e);const o=this.renderers.get(i.templateId);if(!o)throw new Error(`No renderer found for template id ${i.templateId}`);o?.renderElement(i.element,e,i.row.templateData,i.size);const a=this.dnd.getDragURI(i.element);i.dragStartDisposable.dispose(),i.row.domNode.draggable=!!a,a&&(i.dragStartDisposable=(0,n.ko)(i.row.domNode,"dragstart",(e=>this.onDragStart(i.element,a,e)))),this.horizontalScrolling&&(this.measureItemWidth(i),this.eventuallyUpdateScrollWidth())}measureItemWidth(e){if(!e.row||!e.row.domNode)return;e.row.domNode.style.width="fit-content",e.width=(0,n.y6)(e.row.domNode);const t=(0,n.zk)(e.row.domNode).getComputedStyle(e.row.domNode);t.paddingLeft&&(e.width+=parseFloat(t.paddingLeft)),t.paddingRight&&(e.width+=parseFloat(t.paddingRight)),e.row.domNode.style.width=""}updateItemInDOM(e,t){e.row.domNode.style.top=`${this.elementTop(t)}px`,this.setRowHeight&&(e.row.domNode.style.height=`${e.size}px`),this.setRowLineHeight&&(e.row.domNode.style.lineHeight=`${e.size}px`),e.row.domNode.setAttribute("data-index",`${t}`),e.row.domNode.setAttribute("data-last-element",t===this.length-1?"true":"false"),e.row.domNode.setAttribute("data-parity",t%2===0?"even":"odd"),e.row.domNode.setAttribute("aria-setsize",String(this.accessibilityProvider.getSetSize(e.element,t,this.length))),e.row.domNode.setAttribute("aria-posinset",String(this.accessibilityProvider.getPosInSet(e.element,t))),e.row.domNode.setAttribute("id",this.getElementDomId(t)),e.row.domNode.classList.toggle("drop-target",e.dropTarget)}removeItemFromDOM(e){const t=this.items[e];if(t.dragStartDisposable.dispose(),t.checkedDisposable.dispose(),t.row){const i=this.renderers.get(t.templateId);i&&i.disposeElement&&i.disposeElement(t.element,e,t.row.templateData,t.size),this.cache.release(t.row),t.row=null}this.horizontalScrolling&&this.eventuallyUpdateScrollWidth()}getScrollTop(){return this.scrollableElement.getScrollPosition().scrollTop}setScrollTop(e,t){this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),this.scrollableElement.setScrollPosition({scrollTop:e,reuseAnimation:t})}get scrollTop(){return this.getScrollTop()}set scrollTop(e){this.setScrollTop(e)}get scrollHeight(){return this._scrollHeight+(this.horizontalScrolling?10:0)+this.paddingBottom}get onMouseClick(){return d.Jh.map(this.disposables.add(new r.f(this.domNode,"click")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onMouseDblClick(){return d.Jh.map(this.disposables.add(new r.f(this.domNode,"dblclick")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onMouseMiddleClick(){return d.Jh.filter(d.Jh.map(this.disposables.add(new r.f(this.domNode,"auxclick")).event,(e=>this.toMouseEvent(e)),this.disposables),(e=>1===e.browserEvent.button),this.disposables)}get onMouseDown(){return d.Jh.map(this.disposables.add(new r.f(this.domNode,"mousedown")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onMouseOver(){return d.Jh.map(this.disposables.add(new r.f(this.domNode,"mouseover")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onMouseOut(){return d.Jh.map(this.disposables.add(new r.f(this.domNode,"mouseout")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onContextMenu(){return d.Jh.any(d.Jh.map(this.disposables.add(new r.f(this.domNode,"contextmenu")).event,(e=>this.toMouseEvent(e)),this.disposables),d.Jh.map(this.disposables.add(new r.f(this.domNode,o.B.Contextmenu)).event,(e=>this.toGestureEvent(e)),this.disposables))}get onTouchStart(){return d.Jh.map(this.disposables.add(new r.f(this.domNode,"touchstart")).event,(e=>this.toTouchEvent(e)),this.disposables)}get onTap(){return d.Jh.map(this.disposables.add(new r.f(this.rowsContainer,o.B.Tap)).event,(e=>this.toGestureEvent(e)),this.disposables)}toMouseEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i="undefined"===typeof t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element}}toTouchEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i="undefined"===typeof t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element}}toGestureEvent(e){const t=this.getItemIndexFromEventTarget(e.initialTarget||null),i="undefined"===typeof t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element}}toDragEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i="undefined"===typeof t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element,sector:this.getTargetSector(e,t)}}onScroll(e){try{const t=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight);this.render(t,e.scrollTop,e.height,e.scrollLeft,e.scrollWidth),this.supportDynamicHeights&&this._rerender(e.scrollTop,e.height,e.inSmoothScrolling)}catch(t){throw console.error("Got bad scroll event:",e),t}}onTouchChange(e){e.preventDefault(),e.stopPropagation(),this.scrollTop-=e.translationY}onDragStart(e,t,i){if(!i.dataTransfer)return;const r=this.dnd.getDragElements(e);if(i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setData(s.t.TEXT,t),i.dataTransfer.setDragImage){let e;this.dnd.getDragLabel&&(e=this.dnd.getDragLabel(r,i)),"undefined"===typeof e&&(e=String(r.length));const t=(0,n.$)(".monaco-drag-image");t.textContent=e;(e=>{for(;e&&!e.classList.contains("monaco-workbench");)e=e.parentElement;return e||this.domNode.ownerDocument})(this.domNode).appendChild(t),i.dataTransfer.setDragImage(t,-10,-10),setTimeout((()=>t.remove()),0)}this.domNode.classList.add("dragging"),this.currentDragData=new w(r),S.CurrentDragAndDropData=new R(r),this.dnd.onDragStart?.(this.currentDragData,i)}onDragOver(e){if(e.browserEvent.preventDefault(),this.onDragLeaveTimeout.dispose(),S.CurrentDragAndDropData&&"vscode-ui"===S.CurrentDragAndDropData.getData())return!1;if(this.setupDragAndDropScrollTopAnimation(e.browserEvent),!e.browserEvent.dataTransfer)return!1;if(!this.currentDragData)if(S.CurrentDragAndDropData)this.currentDragData=S.CurrentDragAndDropData;else{if(!e.browserEvent.dataTransfer.types)return!1;this.currentDragData=new L}const t=this.dnd.onDragOver(this.currentDragData,e.element,e.index,e.sector,e.browserEvent);if(this.canDrop="boolean"===typeof t?t:t.accept,!this.canDrop)return this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),!1;let i;e.browserEvent.dataTransfer.dropEffect="boolean"!==typeof t&&0===t.effect?.type?"copy":"move",i="boolean"!==typeof t&&t.feedback?t.feedback:"undefined"===typeof e.index?[-1]:[e.index],i=(0,c.dM)(i).filter((e=>e>=-1&&e<this.length)).sort(((e,t)=>e-t)),i=-1===i[0]?[-1]:i;let s="boolean"!==typeof t&&t.effect&&t.effect.position?t.effect.position:"drop-target";if(n=this.currentDragFeedback,r=i,(Array.isArray(n)&&Array.isArray(r)?(0,c.aI)(n,r):n===r)&&this.currentDragFeedbackPosition===s)return!0;var n,r;if(this.currentDragFeedback=i,this.currentDragFeedbackPosition=s,this.currentDragFeedbackDisposable.dispose(),-1===i[0])this.domNode.classList.add(s),this.rowsContainer.classList.add(s),this.currentDragFeedbackDisposable=(0,u.s)((()=>{this.domNode.classList.remove(s),this.rowsContainer.classList.remove(s)}));else{if(i.length>1&&"drop-target"!==s)throw new Error("Can't use multiple feedbacks with position different than 'over'");"drop-target-after"===s&&i[0]<this.length-1&&(i[0]+=1,s="drop-target-before");for(const e of i){const t=this.items[e];t.dropTarget=!0,t.row?.domNode.classList.add(s)}this.currentDragFeedbackDisposable=(0,u.s)((()=>{for(const e of i){const t=this.items[e];t.dropTarget=!1,t.row?.domNode.classList.remove(s)}}))}return!0}onDragLeave(e){this.onDragLeaveTimeout.dispose(),this.onDragLeaveTimeout=(0,l.EQ)((()=>this.clearDragOverFeedback()),100,this.disposables),this.currentDragData&&this.dnd.onDragLeave?.(this.currentDragData,e.element,e.index,e.browserEvent)}onDrop(e){if(!this.canDrop)return;const t=this.currentDragData;this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.domNode.classList.remove("dragging"),this.currentDragData=void 0,S.CurrentDragAndDropData=void 0,t&&e.browserEvent.dataTransfer&&(e.browserEvent.preventDefault(),t.update(e.browserEvent.dataTransfer),this.dnd.drop(t,e.element,e.index,e.sector,e.browserEvent))}onDragEnd(e){this.canDrop=!1,this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.domNode.classList.remove("dragging"),this.currentDragData=void 0,S.CurrentDragAndDropData=void 0,this.dnd.onDragEnd?.(e)}clearDragOverFeedback(){this.currentDragFeedback=void 0,this.currentDragFeedbackPosition=void 0,this.currentDragFeedbackDisposable.dispose(),this.currentDragFeedbackDisposable=u.jG.None}setupDragAndDropScrollTopAnimation(e){if(!this.dragOverAnimationDisposable){const e=(0,n.cL)(this.domNode).top;this.dragOverAnimationDisposable=(0,n.i0)((0,n.zk)(this.domNode),this.animateDragAndDropScrollTop.bind(this,e))}this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationStopDisposable=(0,l.EQ)((()=>{this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)}),1e3,this.disposables),this.dragOverMouseY=e.pageY}animateDragAndDropScrollTop(e){if(void 0===this.dragOverMouseY)return;const t=this.dragOverMouseY-e,i=this.renderHeight-35;t<35?this.scrollTop+=Math.max(-14,Math.floor(.3*(t-35))):t>i&&(this.scrollTop+=Math.min(14,Math.floor(.3*(t-i))))}teardownDragAndDropScrollTopAnimation(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)}getTargetSector(e,t){if(void 0===t)return;const i=e.offsetY/this.items[t].size,s=Math.floor(i/.25);return(0,E.qE)(s,0,3)}getItemIndexFromEventTarget(e){const t=this.scrollableElement.getDomNode();let i=e;for(;((0,n.sb)(i)||(0,n.xZ)(i))&&i!==this.rowsContainer&&t.contains(i);){const e=i.getAttribute("data-index");if(e){const t=Number(e);if(!isNaN(t))return t}i=i.parentElement}}getRenderRange(e,t){return{start:this.rangeMap.indexAt(e),end:this.rangeMap.indexAfter(e+t-1)}}_rerender(e,t,i){const s=this.getRenderRange(e,t);let n,r;e===this.elementTop(s.start)?(n=s.start,r=0):s.end-s.start>1&&(n=s.start+1,r=this.elementTop(n)-e);let o=0;for(;;){const a=this.getRenderRange(e,t);let c=!1;for(let e=a.start;e<a.end;e++){const t=this.probeDynamicHeight(e);0!==t&&this.rangeMap.splice(e,1,[this.items[e]]),o+=t,c=c||0!==t}if(!c){0!==o&&this.eventuallyUpdateScrollDimensions();const t=g.Q.relativeComplement(s,a);for(const e of t)for(let t=e.start;t<e.end;t++)this.items[t].row&&this.removeItemFromDOM(t);const c=g.Q.relativeComplement(a,s).reverse();for(const e of c)for(let t=e.end-1;t>=e.start;t--)this.insertItemInDOM(t);for(let e=a.start;e<a.end;e++)this.items[e].row&&this.updateItemInDOM(this.items[e],e);if("number"===typeof n){const t=this.scrollable.getFutureScrollPosition().scrollTop-e,s=this.elementTop(n)-r+t;this.setScrollTop(s,i)}return void this._onDidChangeContentHeight.fire(this.contentHeight)}}}probeDynamicHeight(e){const t=this.items[e];if(this.virtualDelegate.getDynamicHeight){const e=this.virtualDelegate.getDynamicHeight(t.element);if(null!==e){const i=t.size;return t.size=e,t.lastDynamicHeightWidth=this.renderWidth,e-i}}if(!t.hasDynamicHeight||t.lastDynamicHeightWidth===this.renderWidth)return 0;if(this.virtualDelegate.hasDynamicHeight&&!this.virtualDelegate.hasDynamicHeight(t.element))return 0;const i=t.size;if(t.row)return t.row.domNode.style.height="",t.size=t.row.domNode.offsetHeight,0!==t.size||(0,n.QX)(t.row.domNode,(0,n.zk)(t.row.domNode).document.body)||console.warn("Measuring item node that is not in DOM! Add ListView to the DOM before measuring row height!",(new Error).stack),t.lastDynamicHeightWidth=this.renderWidth,t.size-i;const{row:s}=this.cache.alloc(t.templateId);s.domNode.style.height="",this.rowsContainer.appendChild(s.domNode);const r=this.renderers.get(t.templateId);if(!r)throw new C.D7("Missing renderer for templateId: "+t.templateId);return r.renderElement(t.element,e,s.templateData,void 0),t.size=s.domNode.offsetHeight,r.disposeElement?.(t.element,e,s.templateData,void 0),this.virtualDelegate.setDynamicHeight?.(t.element,t.size),t.lastDynamicHeightWidth=this.renderWidth,s.domNode.remove(),this.cache.release(s),t.size-i}getElementDomId(e){return`${this.domId}_${e}`}dispose(){for(const e of this.items)if(e.dragStartDisposable.dispose(),e.checkedDisposable.dispose(),e.row){const t=this.renderers.get(e.row.templateId);t&&(t.disposeElement?.(e.element,-1,e.row.templateData,void 0),t.disposeTemplate(e.row.templateData))}this.items=[],this.domNode?.remove(),this.dragOverAnimationDisposable?.dispose(),this.disposables.dispose()}}b([h.B],x.prototype,"onMouseClick",null),b([h.B],x.prototype,"onMouseDblClick",null),b([h.B],x.prototype,"onMouseMiddleClick",null),b([h.B],x.prototype,"onMouseDown",null),b([h.B],x.prototype,"onMouseOver",null),b([h.B],x.prototype,"onMouseOut",null),b([h.B],x.prototype,"onContextMenu",null),b([h.B],x.prototype,"onTouchStart",null),b([h.B],x.prototype,"onTap",null)},93090:(e,t,i)=>{"use strict";i.d(t,{hb:()=>K,B8:()=>ee,MH:()=>j,_C:()=>E,W0:()=>D,Bm:()=>F,B6:()=>A,b$:()=>O,bm:()=>I,mh:()=>z,tX:()=>V,Es:()=>P,xu:()=>M,bG:()=>Y});var s=i(8597),n=i(56245),r=i(72962),o=i(25154),a=i(11007);class c{constructor(e){this.spliceables=e}splice(e,t,i){this.spliceables.forEach((s=>s.splice(e,t,i)))}}var l=i(25890),h=i(90766),d=i(47661),u=i(58694),g=i(41234),p=i(26690),m=i(5662),f=i(1592),_=i(98067),v=i(631);i(48215);class C extends Error{constructor(e,t){super(`ListError [${e}] ${t}`)}}var E,b,S=i(66700),y=i(47358),w=i(31308),R=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class L{constructor(e){this.trait=e,this.renderedElements=[]}get templateId(){return`template:${this.trait.name}`}renderTemplate(e){return e}renderElement(e,t,i){const s=this.renderedElements.findIndex((e=>e.templateData===i));if(s>=0){const e=this.renderedElements[s];this.trait.unrender(i),e.index=t}else{const e={index:t,templateData:i};this.renderedElements.push(e)}this.trait.renderIndex(t,i)}splice(e,t,i){const s=[];for(const n of this.renderedElements)n.index<e?s.push(n):n.index>=e+t&&s.push({index:n.index+i-t,templateData:n.templateData});this.renderedElements=s}renderIndexes(e){for(const{index:t,templateData:i}of this.renderedElements)e.indexOf(t)>-1&&this.trait.renderIndex(t,i)}disposeTemplate(e){const t=this.renderedElements.findIndex((t=>t.templateData===e));t<0||this.renderedElements.splice(t,1)}}class T{get name(){return this._trait}get renderer(){return new L(this)}constructor(e){this._trait=e,this.indexes=[],this.sortedIndexes=[],this._onChange=new g.vl,this.onChange=this._onChange.event}splice(e,t,i){const s=i.length-t,n=e+t,r=[];let o=0;for(;o<this.sortedIndexes.length&&this.sortedIndexes[o]<e;)r.push(this.sortedIndexes[o++]);for(let a=0;a<i.length;a++)i[a]&&r.push(a+e);for(;o<this.sortedIndexes.length&&this.sortedIndexes[o]>=n;)r.push(this.sortedIndexes[o++]+s);this.renderer.splice(e,t,i.length),this._set(r,r)}renderIndex(e,t){t.classList.toggle(this._trait,this.contains(e))}unrender(e){e.classList.remove(this._trait)}set(e,t){return this._set(e,[...e].sort(Q),t)}_set(e,t,i){const s=this.indexes,n=this.sortedIndexes;this.indexes=e,this.sortedIndexes=t;const r=$(n,e);return this.renderer.renderIndexes(r),this._onChange.fire({indexes:e,browserEvent:i}),s}get(){return this.indexes}contains(e){return(0,l.El)(this.sortedIndexes,e,Q)>=0}dispose(){(0,m.AS)(this._onChange)}}R([u.B],T.prototype,"renderer",null);class x extends T{constructor(e){super("selected"),this.setAriaSelected=e}renderIndex(e,t){super.renderIndex(e,t),this.setAriaSelected&&(this.contains(e)?t.setAttribute("aria-selected","true"):t.setAttribute("aria-selected","false"))}}class k{constructor(e,t,i){this.trait=e,this.view=t,this.identityProvider=i}splice(e,t,i){if(!this.identityProvider)return this.trait.splice(e,t,new Array(i.length).fill(!1));const s=this.trait.get().map((e=>this.identityProvider.getId(this.view.element(e)).toString()));if(0===s.length)return this.trait.splice(e,t,new Array(i.length).fill(!1));const n=new Set(s),r=i.map((e=>n.has(this.identityProvider.getId(e).toString())));this.trait.splice(e,t,r)}}function A(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName}function N(e,t){return!!e.classList.contains(t)||!e.classList.contains("monaco-list")&&(!!e.parentElement&&N(e.parentElement,t))}function I(e){return N(e,"monaco-editor")}function O(e){return N(e,"monaco-custom-toggle")}function D(e){return N(e,"action-item")}function M(e){return N(e,"monaco-tree-sticky-row")}function P(e){return e.classList.contains("monaco-tree-sticky-container")}function F(e){return!!("A"===e.tagName&&e.classList.contains("monaco-button")||"DIV"===e.tagName&&e.classList.contains("monaco-button-dropdown"))||!e.classList.contains("monaco-list")&&(!!e.parentElement&&F(e.parentElement))}class U{get onKeyDown(){return g.Jh.chain(this.disposables.add(new n.f(this.view.domNode,"keydown")).event,(e=>e.filter((e=>!A(e.target))).map((e=>new r.Z(e)))))}constructor(e,t,i){this.list=e,this.view=t,this.disposables=new m.Cm,this.multipleSelectionDisposables=new m.Cm,this.multipleSelectionSupport=i.multipleSelectionSupport,this.disposables.add(this.onKeyDown((e=>{switch(e.keyCode){case 3:return this.onEnter(e);case 16:return this.onUpArrow(e);case 18:return this.onDownArrow(e);case 11:return this.onPageUpArrow(e);case 12:return this.onPageDownArrow(e);case 9:return this.onEscape(e);case 31:this.multipleSelectionSupport&&(_.zx?e.metaKey:e.ctrlKey)&&this.onCtrlA(e)}})))}updateOptions(e){void 0!==e.multipleSelectionSupport&&(this.multipleSelectionSupport=e.multipleSelectionSupport)}onEnter(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(this.list.getFocus(),e.browserEvent)}onUpArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusPrevious(1,!1,e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onDownArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusNext(1,!1,e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onPageUpArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusPreviousPage(e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onPageDownArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusNextPage(e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onCtrlA(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection((0,l.y1)(this.list.length),e.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus()}onEscape(e){this.list.getSelection().length&&(e.preventDefault(),e.stopPropagation(),this.list.setSelection([],e.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus())}dispose(){this.disposables.dispose(),this.multipleSelectionDisposables.dispose()}}R([u.B],U.prototype,"onKeyDown",null),function(e){e[e.Automatic=0]="Automatic",e[e.Trigger=1]="Trigger"}(E||(E={})),function(e){e[e.Idle=0]="Idle",e[e.Typing=1]="Typing"}(b||(b={}));const H=new class{mightProducePrintableCharacter(e){return!(e.ctrlKey||e.metaKey||e.altKey)&&(e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30||e.keyCode>=98&&e.keyCode<=107||e.keyCode>=85&&e.keyCode<=95)}};class B{constructor(e,t,i,s,n){this.list=e,this.view=t,this.keyboardNavigationLabelProvider=i,this.keyboardNavigationEventFilter=s,this.delegate=n,this.enabled=!1,this.state=b.Idle,this.mode=E.Automatic,this.triggered=!1,this.previouslyFocused=-1,this.enabledDisposables=new m.Cm,this.disposables=new m.Cm,this.updateOptions(e.options)}updateOptions(e){e.typeNavigationEnabled??1?this.enable():this.disable(),this.mode=e.typeNavigationMode??E.Automatic}enable(){if(this.enabled)return;let e=!1;const t=g.Jh.chain(this.enabledDisposables.add(new n.f(this.view.domNode,"keydown")).event,(t=>t.filter((e=>!A(e.target))).filter((()=>this.mode===E.Automatic||this.triggered)).map((e=>new r.Z(e))).filter((t=>e||this.keyboardNavigationEventFilter(t))).filter((e=>this.delegate.mightProducePrintableCharacter(e))).forEach((e=>s.fs.stop(e,!0))).map((e=>e.browserEvent.key)))),i=g.Jh.debounce(t,(()=>null),800,void 0,void 0,void 0,this.enabledDisposables);g.Jh.reduce(g.Jh.any(t,i),((e,t)=>null===t?null:(e||"")+t),void 0,this.enabledDisposables)(this.onInput,this,this.enabledDisposables),i(this.onClear,this,this.enabledDisposables),t((()=>e=!0),void 0,this.enabledDisposables),i((()=>e=!1),void 0,this.enabledDisposables),this.enabled=!0,this.triggered=!1}disable(){this.enabled&&(this.enabledDisposables.clear(),this.enabled=!1,this.triggered=!1)}onClear(){const e=this.list.getFocus();if(e.length>0&&e[0]===this.previouslyFocused){const t=this.list.options.accessibilityProvider?.getAriaLabel(this.list.element(e[0]));"string"===typeof t?(0,a.xE)(t):t&&(0,a.xE)(t.get())}this.previouslyFocused=-1}onInput(e){if(!e)return this.state=b.Idle,void(this.triggered=!1);const t=this.list.getFocus(),i=t.length>0?t[0]:0,s=this.state===b.Idle?1:0;this.state=b.Typing;for(let n=0;n<this.list.length;n++){const t=(i+n+s)%this.list.length,r=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(this.view.element(t)),o=r&&r.toString();if(this.list.options.typeNavigationEnabled){if("undefined"!==typeof o){if((0,p.WP)(e,o))return this.previouslyFocused=i,this.list.setFocus([t]),void this.list.reveal(t);const s=(0,p.O)(e,o);if(s){if(s[0].end-s[0].start>1&&1===s.length)return this.previouslyFocused=i,this.list.setFocus([t]),void this.list.reveal(t)}}}else if("undefined"===typeof o||(0,p.WP)(e,o))return this.previouslyFocused=i,this.list.setFocus([t]),void this.list.reveal(t)}}dispose(){this.disable(),this.enabledDisposables.dispose(),this.disposables.dispose()}}class W{constructor(e,t){this.list=e,this.view=t,this.disposables=new m.Cm;const i=g.Jh.chain(this.disposables.add(new n.f(t.domNode,"keydown")).event,(e=>e.filter((e=>!A(e.target))).map((e=>new r.Z(e)))));g.Jh.chain(i,(e=>e.filter((e=>2===e.keyCode&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey))))(this.onTab,this,this.disposables)}onTab(e){if(e.target!==this.view.domNode)return;const t=this.list.getFocus();if(0===t.length)return;const i=this.view.domElement(t[0]);if(!i)return;const n=i.querySelector("[tabIndex]");if(!n||!(0,s.sb)(n)||-1===n.tabIndex)return;const r=(0,s.zk)(n).getComputedStyle(n);"hidden"!==r.visibility&&"none"!==r.display&&(e.preventDefault(),e.stopPropagation(),n.focus())}dispose(){this.disposables.dispose()}}function V(e){return _.zx?e.browserEvent.metaKey:e.browserEvent.ctrlKey}function z(e){return e.browserEvent.shiftKey}const G={isSelectionSingleChangeEvent:V,isSelectionRangeChangeEvent:z};class j{constructor(e){this.list=e,this.disposables=new m.Cm,this._onPointer=new g.vl,this.onPointer=this._onPointer.event,!1!==e.options.multipleSelectionSupport&&(this.multipleSelectionController=this.list.options.multipleSelectionController||G),this.mouseSupport="undefined"===typeof e.options.mouseSupport||!!e.options.mouseSupport,this.mouseSupport&&(e.onMouseDown(this.onMouseDown,this,this.disposables),e.onContextMenu(this.onContextMenu,this,this.disposables),e.onMouseDblClick(this.onDoubleClick,this,this.disposables),e.onTouchStart(this.onMouseDown,this,this.disposables),this.disposables.add(o.q.addTarget(e.getHTMLElement()))),g.Jh.any(e.onMouseClick,e.onMouseMiddleClick,e.onTap)(this.onViewPointer,this,this.disposables)}updateOptions(e){void 0!==e.multipleSelectionSupport&&(this.multipleSelectionController=void 0,e.multipleSelectionSupport&&(this.multipleSelectionController=this.list.options.multipleSelectionController||G))}isSelectionSingleChangeEvent(e){return!!this.multipleSelectionController&&this.multipleSelectionController.isSelectionSingleChangeEvent(e)}isSelectionRangeChangeEvent(e){return!!this.multipleSelectionController&&this.multipleSelectionController.isSelectionRangeChangeEvent(e)}isSelectionChangeEvent(e){return this.isSelectionSingleChangeEvent(e)||this.isSelectionRangeChangeEvent(e)}onMouseDown(e){I(e.browserEvent.target)||(0,s.bq)()!==e.browserEvent.target&&this.list.domFocus()}onContextMenu(e){if(A(e.browserEvent.target)||I(e.browserEvent.target))return;const t="undefined"===typeof e.index?[]:[e.index];this.list.setFocus(t,e.browserEvent)}onViewPointer(e){if(!this.mouseSupport)return;if(A(e.browserEvent.target)||I(e.browserEvent.target))return;if(e.browserEvent.isHandledByList)return;e.browserEvent.isHandledByList=!0;const t=e.index;return"undefined"===typeof t?(this.list.setFocus([],e.browserEvent),this.list.setSelection([],e.browserEvent),void this.list.setAnchor(void 0)):this.isSelectionChangeEvent(e)?this.changeSelection(e):(this.list.setFocus([t],e.browserEvent),this.list.setAnchor(t),i=e.browserEvent,(0,s.Er)(i)&&2===i.button||this.list.setSelection([t],e.browserEvent),void this._onPointer.fire(e));var i}onDoubleClick(e){if(A(e.browserEvent.target)||I(e.browserEvent.target))return;if(this.isSelectionChangeEvent(e))return;if(e.browserEvent.isHandledByList)return;e.browserEvent.isHandledByList=!0;const t=this.list.getFocus();this.list.setSelection(t,e.browserEvent)}changeSelection(e){const t=e.index;let i=this.list.getAnchor();if(this.isSelectionRangeChangeEvent(e)){if("undefined"===typeof i){i=this.list.getFocus()[0]??t,this.list.setAnchor(i)}const s=Math.min(i,t),n=Math.max(i,t),r=(0,l.y1)(s,n+1),o=this.list.getSelection(),a=function(e,t){const i=e.indexOf(t);if(-1===i)return[];const s=[];let n=i-1;for(;n>=0&&e[n]===t-(i-n);)s.push(e[n--]);s.reverse(),n=i;for(;n<e.length&&e[n]===t+(n-i);)s.push(e[n++]);return s}($(o,[i]),i);if(0===a.length)return;const c=$(r,function(e,t){const i=[];let s=0,n=0;for(;s<e.length||n<t.length;)if(s>=e.length)i.push(t[n++]);else if(n>=t.length)i.push(e[s++]);else{if(e[s]===t[n]){s++,n++;continue}e[s]<t[n]?i.push(e[s++]):n++}return i}(o,a));this.list.setSelection(c,e.browserEvent),this.list.setFocus([t],e.browserEvent)}else if(this.isSelectionSingleChangeEvent(e)){const i=this.list.getSelection(),s=i.filter((e=>e!==t));this.list.setFocus([t]),this.list.setAnchor(t),i.length===s.length?this.list.setSelection([...s,t],e.browserEvent):this.list.setSelection(s,e.browserEvent)}}dispose(){this.disposables.dispose()}}class K{constructor(e,t){this.styleElement=e,this.selectorSuffix=t}style(e){const t=this.selectorSuffix&&`.${this.selectorSuffix}`,i=[];e.listBackground&&i.push(`.monaco-list${t} .monaco-list-rows { background: ${e.listBackground}; }`),e.listFocusBackground&&(i.push(`.monaco-list${t}:focus .monaco-list-row.focused { background-color: ${e.listFocusBackground}; }`),i.push(`.monaco-list${t}:focus .monaco-list-row.focused:hover { background-color: ${e.listFocusBackground}; }`)),e.listFocusForeground&&i.push(`.monaco-list${t}:focus .monaco-list-row.focused { color: ${e.listFocusForeground}; }`),e.listActiveSelectionBackground&&(i.push(`.monaco-list${t}:focus .monaco-list-row.selected { background-color: ${e.listActiveSelectionBackground}; }`),i.push(`.monaco-list${t}:focus .monaco-list-row.selected:hover { background-color: ${e.listActiveSelectionBackground}; }`)),e.listActiveSelectionForeground&&i.push(`.monaco-list${t}:focus .monaco-list-row.selected { color: ${e.listActiveSelectionForeground}; }`),e.listActiveSelectionIconForeground&&i.push(`.monaco-list${t}:focus .monaco-list-row.selected .codicon { color: ${e.listActiveSelectionIconForeground}; }`),e.listFocusAndSelectionBackground&&i.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${t}:focus .monaco-list-row.selected.focused { background-color: ${e.listFocusAndSelectionBackground}; }\n\t\t\t`),e.listFocusAndSelectionForeground&&i.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${t}:focus .monaco-list-row.selected.focused { color: ${e.listFocusAndSelectionForeground}; }\n\t\t\t`),e.listInactiveFocusForeground&&(i.push(`.monaco-list${t} .monaco-list-row.focused { color: ${e.listInactiveFocusForeground}; }`),i.push(`.monaco-list${t} .monaco-list-row.focused:hover { color: ${e.listInactiveFocusForeground}; }`)),e.listInactiveSelectionIconForeground&&i.push(`.monaco-list${t} .monaco-list-row.focused .codicon { color: ${e.listInactiveSelectionIconForeground}; }`),e.listInactiveFocusBackground&&(i.push(`.monaco-list${t} .monaco-list-row.focused { background-color: ${e.listInactiveFocusBackground}; }`),i.push(`.monaco-list${t} .monaco-list-row.focused:hover { background-color: ${e.listInactiveFocusBackground}; }`)),e.listInactiveSelectionBackground&&(i.push(`.monaco-list${t} .monaco-list-row.selected { background-color: ${e.listInactiveSelectionBackground}; }`),i.push(`.monaco-list${t} .monaco-list-row.selected:hover { background-color: ${e.listInactiveSelectionBackground}; }`)),e.listInactiveSelectionForeground&&i.push(`.monaco-list${t} .monaco-list-row.selected { color: ${e.listInactiveSelectionForeground}; }`),e.listHoverBackground&&i.push(`.monaco-list${t}:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused) { background-color: ${e.listHoverBackground}; }`),e.listHoverForeground&&i.push(`.monaco-list${t}:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused) { color: ${e.listHoverForeground}; }`);const n=(0,s.gI)(e.listFocusAndSelectionOutline,(0,s.gI)(e.listSelectionOutline,e.listFocusOutline??""));n&&i.push(`.monaco-list${t}:focus .monaco-list-row.focused.selected { outline: 1px solid ${n}; outline-offset: -1px;}`),e.listFocusOutline&&i.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${t}:focus .monaco-list-row.focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }\n\t\t\t\t.monaco-workbench.context-menu-visible .monaco-list${t}.last-focused .monaco-list-row.focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }\n\t\t\t`);const r=(0,s.gI)(e.listSelectionOutline,e.listInactiveFocusOutline??"");r&&i.push(`.monaco-list${t} .monaco-list-row.focused.selected { outline: 1px dotted ${r}; outline-offset: -1px; }`),e.listSelectionOutline&&i.push(`.monaco-list${t} .monaco-list-row.selected { outline: 1px dotted ${e.listSelectionOutline}; outline-offset: -1px; }`),e.listInactiveFocusOutline&&i.push(`.monaco-list${t} .monaco-list-row.focused { outline: 1px dotted ${e.listInactiveFocusOutline}; outline-offset: -1px; }`),e.listHoverOutline&&i.push(`.monaco-list${t} .monaco-list-row:hover { outline: 1px dashed ${e.listHoverOutline}; outline-offset: -1px; }`),e.listDropOverBackground&&i.push(`\n\t\t\t\t.monaco-list${t}.drop-target,\n\t\t\t\t.monaco-list${t} .monaco-list-rows.drop-target,\n\t\t\t\t.monaco-list${t} .monaco-list-row.drop-target { background-color: ${e.listDropOverBackground} !important; color: inherit !important; }\n\t\t\t`),e.listDropBetweenBackground&&(i.push(`\n\t\t\t.monaco-list${t} .monaco-list-rows.drop-target-before .monaco-list-row:first-child::before,\n\t\t\t.monaco-list${t} .monaco-list-row.drop-target-before::before {\n\t\t\t\tcontent: ""; position: absolute; top: 0px; left: 0px; width: 100%; height: 1px;\n\t\t\t\tbackground-color: ${e.listDropBetweenBackground};\n\t\t\t}`),i.push(`\n\t\t\t.monaco-list${t} .monaco-list-rows.drop-target-after .monaco-list-row:last-child::after,\n\t\t\t.monaco-list${t} .monaco-list-row.drop-target-after::after {\n\t\t\t\tcontent: ""; position: absolute; bottom: 0px; left: 0px; width: 100%; height: 1px;\n\t\t\t\tbackground-color: ${e.listDropBetweenBackground};\n\t\t\t}`)),e.tableColumnsBorder&&i.push(`\n\t\t\t\t.monaco-table > .monaco-split-view2,\n\t\t\t\t.monaco-table > .monaco-split-view2 .monaco-sash.vertical::before,\n\t\t\t\t.monaco-workbench:not(.reduce-motion) .monaco-table:hover > .monaco-split-view2,\n\t\t\t\t.monaco-workbench:not(.reduce-motion) .monaco-table:hover > .monaco-split-view2 .monaco-sash.vertical::before {\n\t\t\t\t\tborder-color: ${e.tableColumnsBorder};\n\t\t\t\t}\n\n\t\t\t\t.monaco-workbench:not(.reduce-motion) .monaco-table > .monaco-split-view2,\n\t\t\t\t.monaco-workbench:not(.reduce-motion) .monaco-table > .monaco-split-view2 .monaco-sash.vertical::before {\n\t\t\t\t\tborder-color: transparent;\n\t\t\t\t}\n\t\t\t`),e.tableOddRowsBackgroundColor&&i.push(`\n\t\t\t\t.monaco-table .monaco-list-row[data-parity=odd]:not(.focused):not(.selected):not(:hover) .monaco-table-tr,\n\t\t\t\t.monaco-table .monaco-list:not(:focus) .monaco-list-row[data-parity=odd].focused:not(.selected):not(:hover) .monaco-table-tr,\n\t\t\t\t.monaco-table .monaco-list:not(.focused) .monaco-list-row[data-parity=odd].focused:not(.selected):not(:hover) .monaco-table-tr {\n\t\t\t\t\tbackground-color: ${e.tableOddRowsBackgroundColor};\n\t\t\t\t}\n\t\t\t`),this.styleElement.textContent=i.join("\n")}}const Y={listFocusBackground:"#7FB0D0",listActiveSelectionBackground:"#0E639C",listActiveSelectionForeground:"#FFFFFF",listActiveSelectionIconForeground:"#FFFFFF",listFocusAndSelectionOutline:"#90C2F9",listFocusAndSelectionBackground:"#094771",listFocusAndSelectionForeground:"#FFFFFF",listInactiveSelectionBackground:"#3F3F46",listInactiveSelectionIconForeground:"#FFFFFF",listHoverBackground:"#2A2D2E",listDropOverBackground:"#383B3D",listDropBetweenBackground:"#EEEEEE",treeIndentGuidesStroke:"#a9a9a9",treeInactiveIndentGuidesStroke:d.Q1.fromHex("#a9a9a9").transparent(.4).toString(),tableColumnsBorder:d.Q1.fromHex("#cccccc").transparent(.2).toString(),tableOddRowsBackgroundColor:d.Q1.fromHex("#cccccc").transparent(.04).toString(),listBackground:void 0,listFocusForeground:void 0,listInactiveSelectionForeground:void 0,listInactiveFocusForeground:void 0,listInactiveFocusBackground:void 0,listHoverForeground:void 0,listFocusOutline:void 0,listInactiveFocusOutline:void 0,listSelectionOutline:void 0,listHoverOutline:void 0,treeStickyScrollBackground:void 0,treeStickyScrollBorder:void 0,treeStickyScrollShadow:void 0},q={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI:()=>null,onDragStart(){},onDragOver:()=>!1,drop(){},dispose(){}}};function $(e,t){const i=[];let s=0,n=0;for(;s<e.length||n<t.length;)if(s>=e.length)i.push(t[n++]);else if(n>=t.length)i.push(e[s++]);else{if(e[s]===t[n]){i.push(e[s]),s++,n++;continue}e[s]<t[n]?i.push(e[s++]):i.push(t[n++])}return i}const Q=(e,t)=>e-t;class X{constructor(e,t){this._templateId=e,this.renderers=t}get templateId(){return this._templateId}renderTemplate(e){return this.renderers.map((t=>t.renderTemplate(e)))}renderElement(e,t,i,s){let n=0;for(const r of this.renderers)r.renderElement(e,t,i[n++],s)}disposeElement(e,t,i,s){let n=0;for(const r of this.renderers)r.disposeElement?.(e,t,i[n],s),n+=1}disposeTemplate(e){let t=0;for(const i of this.renderers)i.disposeTemplate(e[t++])}}class Z{constructor(e){this.accessibilityProvider=e,this.templateId="a18n"}renderTemplate(e){return{container:e,disposables:new m.Cm}}renderElement(e,t,i){const s=this.accessibilityProvider.getAriaLabel(e),n=s&&"string"!==typeof s?s:(0,w.lk)(s);i.disposables.add((0,w.fm)((e=>{this.setAriaLabel(e.readObservable(n),i.container)})));const r=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(e);"number"===typeof r?i.container.setAttribute("aria-level",`${r}`):i.container.removeAttribute("aria-level")}setAriaLabel(e,t){e?t.setAttribute("aria-label",e):t.removeAttribute("aria-label")}disposeElement(e,t,i,s){i.disposables.clear()}disposeTemplate(e){e.disposables.dispose()}}class J{constructor(e,t){this.list=e,this.dnd=t}getDragElements(e){const t=this.list.getSelectedElements();return t.indexOf(e)>-1?t:[e]}getDragURI(e){return this.dnd.getDragURI(e)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e,t)}onDragStart(e,t){this.dnd.onDragStart?.(e,t)}onDragOver(e,t,i,s,n){return this.dnd.onDragOver(e,t,i,s,n)}onDragLeave(e,t,i,s){this.dnd.onDragLeave?.(e,t,i,s)}onDragEnd(e){this.dnd.onDragEnd?.(e)}drop(e,t,i,s,n){this.dnd.drop(e,t,i,s,n)}dispose(){this.dnd.dispose()}}class ee{get onDidChangeFocus(){return g.Jh.map(this.eventBufferer.wrapEvent(this.focus.onChange),(e=>this.toListEvent(e)),this.disposables)}get onDidChangeSelection(){return g.Jh.map(this.eventBufferer.wrapEvent(this.selection.onChange),(e=>this.toListEvent(e)),this.disposables)}get domId(){return this.view.domId}get onDidScroll(){return this.view.onDidScroll}get onMouseClick(){return this.view.onMouseClick}get onMouseDblClick(){return this.view.onMouseDblClick}get onMouseMiddleClick(){return this.view.onMouseMiddleClick}get onPointer(){return this.mouseController.onPointer}get onMouseDown(){return this.view.onMouseDown}get onMouseOver(){return this.view.onMouseOver}get onMouseOut(){return this.view.onMouseOut}get onTouchStart(){return this.view.onTouchStart}get onTap(){return this.view.onTap}get onContextMenu(){let e=!1;const t=g.Jh.chain(this.disposables.add(new n.f(this.view.domNode,"keydown")).event,(t=>t.map((e=>new r.Z(e))).filter((t=>e=58===t.keyCode||t.shiftKey&&68===t.keyCode)).map((e=>s.fs.stop(e,!0))).filter((()=>!1)))),i=g.Jh.chain(this.disposables.add(new n.f(this.view.domNode,"keyup")).event,(t=>t.forEach((()=>e=!1)).map((e=>new r.Z(e))).filter((e=>58===e.keyCode||e.shiftKey&&68===e.keyCode)).map((e=>s.fs.stop(e,!0))).map((({browserEvent:e})=>{const t=this.getFocus(),i=t.length?t[0]:void 0;return{index:i,element:"undefined"!==typeof i?this.view.element(i):void 0,anchor:"undefined"!==typeof i?this.view.domElement(i):this.view.domNode,browserEvent:e}})))),o=g.Jh.chain(this.view.onContextMenu,(t=>t.filter((t=>!e)).map((({element:e,index:t,browserEvent:i})=>({element:e,index:t,anchor:new y.P((0,s.zk)(this.view.domNode),i),browserEvent:i})))));return g.Jh.any(t,i,o)}get onKeyDown(){return this.disposables.add(new n.f(this.view.domNode,"keydown")).event}get onDidFocus(){return g.Jh.signal(this.disposables.add(new n.f(this.view.domNode,"focus",!0)).event)}get onDidBlur(){return g.Jh.signal(this.disposables.add(new n.f(this.view.domNode,"blur",!0)).event)}constructor(e,t,i,n,r=q){this.user=e,this._options=r,this.focus=new T("focused"),this.anchor=new T("anchor"),this.eventBufferer=new g.at,this._ariaLabel="",this.disposables=new m.Cm,this._onDidDispose=new g.vl,this.onDidDispose=this._onDidDispose.event;const o=this._options.accessibilityProvider&&this._options.accessibilityProvider.getWidgetRole?this._options.accessibilityProvider?.getWidgetRole():"list";this.selection=new x("listbox"!==o);const a=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=r.accessibilityProvider,this.accessibilityProvider&&(a.push(new Z(this.accessibilityProvider)),this.accessibilityProvider.onDidChangeActiveDescendant?.(this.onDidChangeActiveDescendant,this,this.disposables)),n=n.map((e=>new X(e.templateId,[...a,e])));const l={...r,dnd:r.dnd&&new J(this,r.dnd)};if(this.view=this.createListView(t,i,n,l),this.view.domNode.setAttribute("role",o),r.styleController)this.styleController=r.styleController(this.view.domId);else{const e=(0,s.li)(this.view.domNode);this.styleController=new K(e,this.view.domId)}if(this.spliceable=new c([new k(this.focus,this.view,r.identityProvider),new k(this.selection,this.view,r.identityProvider),new k(this.anchor,this.view,r.identityProvider),this.view]),this.disposables.add(this.focus),this.disposables.add(this.selection),this.disposables.add(this.anchor),this.disposables.add(this.view),this.disposables.add(this._onDidDispose),this.disposables.add(new W(this,this.view)),("boolean"!==typeof r.keyboardSupport||r.keyboardSupport)&&(this.keyboardController=new U(this,this.view,r),this.disposables.add(this.keyboardController)),r.keyboardNavigationLabelProvider){const e=r.keyboardNavigationDelegate||H;this.typeNavigationController=new B(this,this.view,r.keyboardNavigationLabelProvider,r.keyboardNavigationEventFilter??(()=>!0),e),this.disposables.add(this.typeNavigationController)}this.mouseController=this.createMouseController(r),this.disposables.add(this.mouseController),this.onDidChangeFocus(this._onFocusChange,this,this.disposables),this.onDidChangeSelection(this._onSelectionChange,this,this.disposables),this.accessibilityProvider&&(this.ariaLabel=this.accessibilityProvider.getWidgetAriaLabel()),!1!==this._options.multipleSelectionSupport&&this.view.domNode.setAttribute("aria-multiselectable","true")}createListView(e,t,i,s){return new S.uO(e,t,i,s)}createMouseController(e){return new j(this)}updateOptions(e={}){this._options={...this._options,...e},this.typeNavigationController?.updateOptions(this._options),void 0!==this._options.multipleSelectionController&&(this._options.multipleSelectionSupport?this.view.domNode.setAttribute("aria-multiselectable","true"):this.view.domNode.removeAttribute("aria-multiselectable")),this.mouseController.updateOptions(e),this.keyboardController?.updateOptions(e),this.view.updateOptions(e)}get options(){return this._options}splice(e,t,i=[]){if(e<0||e>this.view.length)throw new C(this.user,`Invalid start index: ${e}`);if(t<0)throw new C(this.user,`Invalid delete count: ${t}`);0===t&&0===i.length||this.eventBufferer.bufferEvents((()=>this.spliceable.splice(e,t,i)))}rerender(){this.view.rerender()}element(e){return this.view.element(e)}indexOf(e){return this.view.indexOf(e)}indexAt(e){return this.view.indexAt(e)}get length(){return this.view.length}get contentHeight(){return this.view.contentHeight}get onDidChangeContentHeight(){return this.view.onDidChangeContentHeight}get scrollTop(){return this.view.getScrollTop()}set scrollTop(e){this.view.setScrollTop(e)}get scrollHeight(){return this.view.scrollHeight}get renderHeight(){return this.view.renderHeight}get firstVisibleIndex(){return this.view.firstVisibleIndex}get ariaLabel(){return this._ariaLabel}set ariaLabel(e){this._ariaLabel=e,this.view.domNode.setAttribute("aria-label",e)}domFocus(){this.view.domNode.focus({preventScroll:!0})}layout(e,t){this.view.layout(e,t)}setSelection(e,t){for(const i of e)if(i<0||i>=this.length)throw new C(this.user,`Invalid index ${i}`);this.selection.set(e,t)}getSelection(){return this.selection.get()}getSelectedElements(){return this.getSelection().map((e=>this.view.element(e)))}setAnchor(e){if("undefined"!==typeof e){if(e<0||e>=this.length)throw new C(this.user,`Invalid index ${e}`);this.anchor.set([e])}else this.anchor.set([])}getAnchor(){return(0,l.Fy)(this.anchor.get(),void 0)}getAnchorElement(){const e=this.getAnchor();return"undefined"===typeof e?void 0:this.element(e)}setFocus(e,t){for(const i of e)if(i<0||i>=this.length)throw new C(this.user,`Invalid index ${i}`);this.focus.set(e,t)}focusNext(e=1,t=!1,i,s){if(0===this.length)return;const n=this.focus.get(),r=this.findNextIndex(n.length>0?n[0]+e:0,t,s);r>-1&&this.setFocus([r],i)}focusPrevious(e=1,t=!1,i,s){if(0===this.length)return;const n=this.focus.get(),r=this.findPreviousIndex(n.length>0?n[0]-e:0,t,s);r>-1&&this.setFocus([r],i)}async focusNextPage(e,t){let i=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);i=0===i?0:i-1;const s=this.getFocus()[0];if(s!==i&&(void 0===s||i>s)){const n=this.findPreviousIndex(i,!1,t);n>-1&&s!==n?this.setFocus([n],e):this.setFocus([i],e)}else{const n=this.view.getScrollTop();let r=n+this.view.renderHeight;i>s&&(r-=this.view.elementHeight(i)),this.view.setScrollTop(r),this.view.getScrollTop()!==n&&(this.setFocus([]),await(0,h.wR)(0),await this.focusNextPage(e,t))}}async focusPreviousPage(e,t,i=()=>0){let s;const n=i(),r=this.view.getScrollTop()+n;s=0===r?this.view.indexAt(r):this.view.indexAfter(r-1);const o=this.getFocus()[0];if(o!==s&&(void 0===o||o>=s)){const i=this.findNextIndex(s,!1,t);i>-1&&o!==i?this.setFocus([i],e):this.setFocus([s],e)}else{const s=r;this.view.setScrollTop(r-this.view.renderHeight-n),this.view.getScrollTop()+i()!==s&&(this.setFocus([]),await(0,h.wR)(0),await this.focusPreviousPage(e,t,i))}}focusLast(e,t){if(0===this.length)return;const i=this.findPreviousIndex(this.length-1,!1,t);i>-1&&this.setFocus([i],e)}focusFirst(e,t){this.focusNth(0,e,t)}focusNth(e,t,i){if(0===this.length)return;const s=this.findNextIndex(e,!1,i);s>-1&&this.setFocus([s],t)}findNextIndex(e,t=!1,i){for(let s=0;s<this.length;s++){if(e>=this.length&&!t)return-1;if(e%=this.length,!i||i(this.element(e)))return e;e++}return-1}findPreviousIndex(e,t=!1,i){for(let s=0;s<this.length;s++){if(e<0&&!t)return-1;if(e=(this.length+e%this.length)%this.length,!i||i(this.element(e)))return e;e--}return-1}getFocus(){return this.focus.get()}getFocusedElements(){return this.getFocus().map((e=>this.view.element(e)))}reveal(e,t,i=0){if(e<0||e>=this.length)throw new C(this.user,`Invalid index ${e}`);const s=this.view.getScrollTop(),n=this.view.elementTop(e),r=this.view.elementHeight(e);if((0,v.Et)(t)){const e=r-this.view.renderHeight+i;this.view.setScrollTop(e*(0,f.qE)(t,0,1)+n-i)}else{const e=n+r,t=s+this.view.renderHeight;n<s+i&&e>=t||(n<s+i||e>=t&&r>=this.view.renderHeight?this.view.setScrollTop(n-i):e>=t&&this.view.setScrollTop(e-this.view.renderHeight))}}getRelativeTop(e,t=0){if(e<0||e>=this.length)throw new C(this.user,`Invalid index ${e}`);const i=this.view.getScrollTop(),s=this.view.elementTop(e),n=this.view.elementHeight(e);if(s<i+t||s+n>i+this.view.renderHeight)return null;const r=n-this.view.renderHeight+t;return Math.abs((i+t-s)/r)}getHTMLElement(){return this.view.domNode}getScrollableElement(){return this.view.scrollableElementDomNode}getElementID(e){return this.view.getElementDomId(e)}getElementTop(e){return this.view.elementTop(e)}style(e){this.styleController.style(e)}toListEvent({indexes:e,browserEvent:t}){return{indexes:e,elements:e.map((e=>this.view.element(e))),browserEvent:t}}_onFocusChange(){const e=this.focus.get();this.view.domNode.classList.toggle("element-focused",e.length>0),this.onDidChangeActiveDescendant()}onDidChangeActiveDescendant(){const e=this.focus.get();if(e.length>0){let t;this.accessibilityProvider?.getActiveDescendantId&&(t=this.accessibilityProvider.getActiveDescendantId(this.view.element(e[0]))),this.view.domNode.setAttribute("aria-activedescendant",t||this.view.getElementDomId(e[0]))}else this.view.domNode.removeAttribute("aria-activedescendant")}_onSelectionChange(){const e=this.selection.get();this.view.domNode.classList.toggle("selection-none",0===e.length),this.view.domNode.classList.toggle("selection-single",1===e.length),this.view.domNode.classList.toggle("selection-multiple",e.length>1)}dispose(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidDispose.dispose()}}R([u.B],ee.prototype,"onDidChangeFocus",null),R([u.B],ee.prototype,"onDidChangeSelection",null),R([u.B],ee.prototype,"onContextMenu",null),R([u.B],ee.prototype,"onKeyDown",null),R([u.B],ee.prototype,"onDidFocus",null),R([u.B],ee.prototype,"onDidBlur",null)},88807:(e,t,i)=>{"use strict";i.d(t,{v:()=>a});var s=i(8597),n=i(92403),r=i(41234),o=i(5662);class a{constructor(){let e;this._onDidWillResize=new r.vl,this.onDidWillResize=this._onDidWillResize.event,this._onDidResize=new r.vl,this.onDidResize=this._onDidResize.event,this._sashListener=new o.Cm,this._size=new s.fg(0,0),this._minSize=new s.fg(0,0),this._maxSize=new s.fg(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER),this.domNode=document.createElement("div"),this._eastSash=new n.m(this.domNode,{getVerticalSashLeft:()=>this._size.width},{orientation:0}),this._westSash=new n.m(this.domNode,{getVerticalSashLeft:()=>0},{orientation:0}),this._northSash=new n.m(this.domNode,{getHorizontalSashTop:()=>0},{orientation:1,orthogonalEdge:n.B.North}),this._southSash=new n.m(this.domNode,{getHorizontalSashTop:()=>this._size.height},{orientation:1,orthogonalEdge:n.B.South}),this._northSash.orthogonalStartSash=this._westSash,this._northSash.orthogonalEndSash=this._eastSash,this._southSash.orthogonalStartSash=this._westSash,this._southSash.orthogonalEndSash=this._eastSash;let t=0,i=0;this._sashListener.add(r.Jh.any(this._northSash.onDidStart,this._eastSash.onDidStart,this._southSash.onDidStart,this._westSash.onDidStart)((()=>{void 0===e&&(this._onDidWillResize.fire(),e=this._size,t=0,i=0)}))),this._sashListener.add(r.Jh.any(this._northSash.onDidEnd,this._eastSash.onDidEnd,this._southSash.onDidEnd,this._westSash.onDidEnd)((()=>{void 0!==e&&(e=void 0,t=0,i=0,this._onDidResize.fire({dimension:this._size,done:!0}))}))),this._sashListener.add(this._eastSash.onDidChange((s=>{e&&(i=s.currentX-s.startX,this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,east:!0}))}))),this._sashListener.add(this._westSash.onDidChange((s=>{e&&(i=-(s.currentX-s.startX),this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,west:!0}))}))),this._sashListener.add(this._northSash.onDidChange((s=>{e&&(t=-(s.currentY-s.startY),this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,north:!0}))}))),this._sashListener.add(this._southSash.onDidChange((s=>{e&&(t=s.currentY-s.startY,this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,south:!0}))}))),this._sashListener.add(r.Jh.any(this._eastSash.onDidReset,this._westSash.onDidReset)((e=>{this._preferredSize&&(this.layout(this._size.height,this._preferredSize.width),this._onDidResize.fire({dimension:this._size,done:!0}))}))),this._sashListener.add(r.Jh.any(this._northSash.onDidReset,this._southSash.onDidReset)((e=>{this._preferredSize&&(this.layout(this._preferredSize.height,this._size.width),this._onDidResize.fire({dimension:this._size,done:!0}))})))}dispose(){this._northSash.dispose(),this._southSash.dispose(),this._eastSash.dispose(),this._westSash.dispose(),this._sashListener.dispose(),this._onDidResize.dispose(),this._onDidWillResize.dispose(),this.domNode.remove()}enableSashes(e,t,i,s){this._northSash.state=e?3:0,this._eastSash.state=t?3:0,this._southSash.state=i?3:0,this._westSash.state=s?3:0}layout(e=this.size.height,t=this.size.width){const{height:i,width:n}=this._minSize,{height:r,width:o}=this._maxSize;e=Math.max(i,Math.min(r,e)),t=Math.max(n,Math.min(o,t));const a=new s.fg(t,e);s.fg.equals(a,this._size)||(this.domNode.style.height=e+"px",this.domNode.style.width=t+"px",this._size=a,this._northSash.layout(),this._eastSash.layout(),this._southSash.layout(),this._westSash.layout())}clearSashHoverState(){this._eastSash.clearSashHoverState(),this._westSash.clearSashHoverState(),this._northSash.clearSashHoverState(),this._southSash.clearSashHoverState()}get size(){return this._size}set maxSize(e){this._maxSize=e}get maxSize(){return this._maxSize}set minSize(e){this._minSize=e}get minSize(){return this._minSize}set preferredSize(e){this._preferredSize=e}get preferredSize(){return this._preferredSize}}},92403:(e,t,i)=>{"use strict";i.d(t,{B:()=>u,m:()=>C});var s=i(8597),n=i(56245),r=i(25154),o=i(90766),a=i(58694),c=i(41234),l=i(5662),h=i(98067),d=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};var u;!function(e){e.North="north",e.South="south",e.East="east",e.West="west"}(u||(u={}));const g=new c.vl;const p=new c.vl;class m{constructor(e){this.el=e,this.disposables=new l.Cm}get onPointerMove(){return this.disposables.add(new n.f((0,s.zk)(this.el),"mousemove")).event}get onPointerUp(){return this.disposables.add(new n.f((0,s.zk)(this.el),"mouseup")).event}dispose(){this.disposables.dispose()}}d([a.B],m.prototype,"onPointerMove",null),d([a.B],m.prototype,"onPointerUp",null);class f{get onPointerMove(){return this.disposables.add(new n.f(this.el,r.B.Change)).event}get onPointerUp(){return this.disposables.add(new n.f(this.el,r.B.End)).event}constructor(e){this.el=e,this.disposables=new l.Cm}dispose(){this.disposables.dispose()}}d([a.B],f.prototype,"onPointerMove",null),d([a.B],f.prototype,"onPointerUp",null);class _{get onPointerMove(){return this.factory.onPointerMove}get onPointerUp(){return this.factory.onPointerUp}constructor(e){this.factory=e}dispose(){}}d([a.B],_.prototype,"onPointerMove",null),d([a.B],_.prototype,"onPointerUp",null);const v="pointer-events-disabled";class C extends l.jG{get state(){return this._state}get orthogonalStartSash(){return this._orthogonalStartSash}get orthogonalEndSash(){return this._orthogonalEndSash}set state(e){this._state!==e&&(this.el.classList.toggle("disabled",0===e),this.el.classList.toggle("minimum",1===e),this.el.classList.toggle("maximum",2===e),this._state=e,this.onDidEnablementChange.fire(e))}set orthogonalStartSash(e){if(this._orthogonalStartSash!==e){if(this.orthogonalStartDragHandleDisposables.clear(),this.orthogonalStartSashDisposables.clear(),e){const t=t=>{this.orthogonalStartDragHandleDisposables.clear(),0!==t&&(this._orthogonalStartDragHandle=(0,s.BC)(this.el,(0,s.$)(".orthogonal-drag-handle.start")),this.orthogonalStartDragHandleDisposables.add((0,l.s)((()=>this._orthogonalStartDragHandle.remove()))),this.orthogonalStartDragHandleDisposables.add(new n.f(this._orthogonalStartDragHandle,"mouseenter")).event((()=>C.onMouseEnter(e)),void 0,this.orthogonalStartDragHandleDisposables),this.orthogonalStartDragHandleDisposables.add(new n.f(this._orthogonalStartDragHandle,"mouseleave")).event((()=>C.onMouseLeave(e)),void 0,this.orthogonalStartDragHandleDisposables))};this.orthogonalStartSashDisposables.add(e.onDidEnablementChange.event(t,this)),t(e.state)}this._orthogonalStartSash=e}}set orthogonalEndSash(e){if(this._orthogonalEndSash!==e){if(this.orthogonalEndDragHandleDisposables.clear(),this.orthogonalEndSashDisposables.clear(),e){const t=t=>{this.orthogonalEndDragHandleDisposables.clear(),0!==t&&(this._orthogonalEndDragHandle=(0,s.BC)(this.el,(0,s.$)(".orthogonal-drag-handle.end")),this.orthogonalEndDragHandleDisposables.add((0,l.s)((()=>this._orthogonalEndDragHandle.remove()))),this.orthogonalEndDragHandleDisposables.add(new n.f(this._orthogonalEndDragHandle,"mouseenter")).event((()=>C.onMouseEnter(e)),void 0,this.orthogonalEndDragHandleDisposables),this.orthogonalEndDragHandleDisposables.add(new n.f(this._orthogonalEndDragHandle,"mouseleave")).event((()=>C.onMouseLeave(e)),void 0,this.orthogonalEndDragHandleDisposables))};this.orthogonalEndSashDisposables.add(e.onDidEnablementChange.event(t,this)),t(e.state)}this._orthogonalEndSash=e}}constructor(e,t,i){super(),this.hoverDelay=300,this.hoverDelayer=this._register(new o.ve(this.hoverDelay)),this._state=3,this.onDidEnablementChange=this._register(new c.vl),this._onDidStart=this._register(new c.vl),this._onDidChange=this._register(new c.vl),this._onDidReset=this._register(new c.vl),this._onDidEnd=this._register(new c.vl),this.orthogonalStartSashDisposables=this._register(new l.Cm),this.orthogonalStartDragHandleDisposables=this._register(new l.Cm),this.orthogonalEndSashDisposables=this._register(new l.Cm),this.orthogonalEndDragHandleDisposables=this._register(new l.Cm),this.onDidStart=this._onDidStart.event,this.onDidChange=this._onDidChange.event,this.onDidReset=this._onDidReset.event,this.onDidEnd=this._onDidEnd.event,this.linkedSash=void 0,this.el=(0,s.BC)(e,(0,s.$)(".monaco-sash")),i.orthogonalEdge&&this.el.classList.add(`orthogonal-edge-${i.orthogonalEdge}`),h.zx&&this.el.classList.add("mac");const a=this._register(new n.f(this.el,"mousedown")).event;this._register(a((t=>this.onPointerStart(t,new m(e))),this));const d=this._register(new n.f(this.el,"dblclick")).event;this._register(d(this.onPointerDoublePress,this));const u=this._register(new n.f(this.el,"mouseenter")).event;this._register(u((()=>C.onMouseEnter(this))));const _=this._register(new n.f(this.el,"mouseleave")).event;this._register(_((()=>C.onMouseLeave(this)))),this._register(r.q.addTarget(this.el));const v=this._register(new n.f(this.el,r.B.Start)).event;this._register(v((e=>this.onPointerStart(e,new f(this.el))),this));const E=this._register(new n.f(this.el,r.B.Tap)).event;let b;this._register(E((e=>{if(b)return clearTimeout(b),b=void 0,void this.onPointerDoublePress(e);clearTimeout(b),b=setTimeout((()=>b=void 0),250)}),this)),"number"===typeof i.size?(this.size=i.size,0===i.orientation?this.el.style.width=`${this.size}px`:this.el.style.height=`${this.size}px`):(this.size=4,this._register(g.event((e=>{this.size=e,this.layout()})))),this._register(p.event((e=>this.hoverDelay=e))),this.layoutProvider=t,this.orthogonalStartSash=i.orthogonalStartSash,this.orthogonalEndSash=i.orthogonalEndSash,this.orientation=i.orientation||0,1===this.orientation?(this.el.classList.add("horizontal"),this.el.classList.remove("vertical")):(this.el.classList.remove("horizontal"),this.el.classList.add("vertical")),this.el.classList.toggle("debug",false),this.layout()}onPointerStart(e,t){s.fs.stop(e);let i=!1;if(!e.__orthogonalSashEvent){const s=this.getOrthogonalSash(e);s&&(i=!0,e.__orthogonalSashEvent=!0,s.onPointerStart(e,new _(t)))}if(this.linkedSash&&!e.__linkedSashEvent&&(e.__linkedSashEvent=!0,this.linkedSash.onPointerStart(e,new _(t))),!this.state)return;const n=this.el.ownerDocument.getElementsByTagName("iframe");for(const s of n)s.classList.add(v);const r=e.pageX,o=e.pageY,a=e.altKey,c={startX:r,currentX:r,startY:o,currentY:o,altKey:a};this.el.classList.add("active"),this._onDidStart.fire(c);const d=(0,s.li)(this.el),u=()=>{let e="";e=i?"all-scroll":1===this.orientation?1===this.state?"s-resize":2===this.state?"n-resize":h.zx?"row-resize":"ns-resize":1===this.state?"e-resize":2===this.state?"w-resize":h.zx?"col-resize":"ew-resize",d.textContent=`* { cursor: ${e} !important; }`},g=new l.Cm;u(),i||this.onDidEnablementChange.event(u,null,g);t.onPointerMove((e=>{s.fs.stop(e,!1);const t={startX:r,currentX:e.pageX,startY:o,currentY:e.pageY,altKey:a};this._onDidChange.fire(t)}),null,g),t.onPointerUp((e=>{s.fs.stop(e,!1),d.remove(),this.el.classList.remove("active"),this._onDidEnd.fire(),g.dispose();for(const t of n)t.classList.remove(v)}),null,g),g.add(t)}onPointerDoublePress(e){const t=this.getOrthogonalSash(e);t&&t._onDidReset.fire(),this.linkedSash&&this.linkedSash._onDidReset.fire(),this._onDidReset.fire()}static onMouseEnter(e,t=!1){e.el.classList.contains("active")?(e.hoverDelayer.cancel(),e.el.classList.add("hover")):e.hoverDelayer.trigger((()=>e.el.classList.add("hover")),e.hoverDelay).then(void 0,(()=>{})),!t&&e.linkedSash&&C.onMouseEnter(e.linkedSash,!0)}static onMouseLeave(e,t=!1){e.hoverDelayer.cancel(),e.el.classList.remove("hover"),!t&&e.linkedSash&&C.onMouseLeave(e.linkedSash,!0)}clearSashHoverState(){C.onMouseLeave(this)}layout(){if(0===this.orientation){const e=this.layoutProvider;this.el.style.left=e.getVerticalSashLeft(this)-this.size/2+"px",e.getVerticalSashTop&&(this.el.style.top=e.getVerticalSashTop(this)+"px"),e.getVerticalSashHeight&&(this.el.style.height=e.getVerticalSashHeight(this)+"px")}else{const e=this.layoutProvider;this.el.style.top=e.getHorizontalSashTop(this)-this.size/2+"px",e.getHorizontalSashLeft&&(this.el.style.left=e.getHorizontalSashLeft(this)+"px"),e.getHorizontalSashWidth&&(this.el.style.width=e.getHorizontalSashWidth(this)+"px")}}getOrthogonalSash(e){const t=e.initialTarget??e.target;if(t&&(0,s.sb)(t))return t.classList.contains("orthogonal-drag-handle")?t.classList.contains("start")?this.orthogonalStartSash:this.orthogonalEndSash:void 0}dispose(){super.dispose(),this.el.remove()}}},31295:(e,t,i)=>{"use strict";i.d(t,{MU:()=>x,QC:()=>w,Se:()=>L,oO:()=>T});var s=i(60413),n=i(8597),r=i(55275),o=i(47358),a=i(34072),c=i(17390),l=i(90766),h=i(25689);const d=11;class u extends c.x{constructor(e){super(),this._onActivate=e.onActivate,this.bgDomNode=document.createElement("div"),this.bgDomNode.className="arrow-background",this.bgDomNode.style.position="absolute",this.bgDomNode.style.width=e.bgWidth+"px",this.bgDomNode.style.height=e.bgHeight+"px","undefined"!==typeof e.top&&(this.bgDomNode.style.top="0px"),"undefined"!==typeof e.left&&(this.bgDomNode.style.left="0px"),"undefined"!==typeof e.bottom&&(this.bgDomNode.style.bottom="0px"),"undefined"!==typeof e.right&&(this.bgDomNode.style.right="0px"),this.domNode=document.createElement("div"),this.domNode.className=e.className,this.domNode.classList.add(...h.L.asClassNameArray(e.icon)),this.domNode.style.position="absolute",this.domNode.style.width="11px",this.domNode.style.height="11px","undefined"!==typeof e.top&&(this.domNode.style.top=e.top+"px"),"undefined"!==typeof e.left&&(this.domNode.style.left=e.left+"px"),"undefined"!==typeof e.bottom&&(this.domNode.style.bottom=e.bottom+"px"),"undefined"!==typeof e.right&&(this.domNode.style.right=e.right+"px"),this._pointerMoveMonitor=this._register(new a._),this._register(n.b2(this.bgDomNode,n.Bx.POINTER_DOWN,(e=>this._arrowPointerDown(e)))),this._register(n.b2(this.domNode,n.Bx.POINTER_DOWN,(e=>this._arrowPointerDown(e)))),this._pointerdownRepeatTimer=this._register(new n.Be),this._pointerdownScheduleRepeatTimer=this._register(new l.pc)}_arrowPointerDown(e){if(!e.target||!(e.target instanceof Element))return;this._onActivate(),this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancelAndSet((()=>{this._pointerdownRepeatTimer.cancelAndSet((()=>this._onActivate()),1e3/24,n.zk(e))}),200),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,(e=>{}),(()=>{this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancel()})),e.preventDefault()}}var g=i(5662);class p extends g.jG{constructor(e,t,i){super(),this._visibility=e,this._visibleClassName=t,this._invisibleClassName=i,this._domNode=null,this._isVisible=!1,this._isNeeded=!1,this._rawShouldBeVisible=!1,this._shouldBeVisible=!1,this._revealTimer=this._register(new l.pc)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this._updateShouldBeVisible())}setShouldBeVisible(e){this._rawShouldBeVisible=e,this._updateShouldBeVisible()}_applyVisibilitySetting(){return 2!==this._visibility&&(3===this._visibility||this._rawShouldBeVisible)}_updateShouldBeVisible(){const e=this._applyVisibilitySetting();this._shouldBeVisible!==e&&(this._shouldBeVisible=e,this.ensureVisibility())}setIsNeeded(e){this._isNeeded!==e&&(this._isNeeded=e,this.ensureVisibility())}setDomNode(e){this._domNode=e,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)}ensureVisibility(){this._isNeeded?this._shouldBeVisible?this._reveal():this._hide(!0):this._hide(!1)}_reveal(){this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet((()=>{this._domNode?.setClassName(this._visibleClassName)}),0))}_hide(e){this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,this._domNode?.setClassName(this._invisibleClassName+(e?" fade":"")))}}var m=i(98067);class f extends c.x{constructor(e){super(),this._lazyRender=e.lazyRender,this._host=e.host,this._scrollable=e.scrollable,this._scrollByPage=e.scrollByPage,this._scrollbarState=e.scrollbarState,this._visibilityController=this._register(new p(e.visibility,"visible scrollbar "+e.extraScrollbarClassName,"invisible scrollbar "+e.extraScrollbarClassName)),this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._pointerMoveMonitor=this._register(new a._),this._shouldRender=!0,this.domNode=(0,r.Z)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this._visibilityController.setDomNode(this.domNode),this.domNode.setPosition("absolute"),this._register(n.ko(this.domNode.domNode,n.Bx.POINTER_DOWN,(e=>this._domNodePointerDown(e))))}_createArrow(e){const t=this._register(new u(e));this.domNode.domNode.appendChild(t.bgDomNode),this.domNode.domNode.appendChild(t.domNode)}_createSlider(e,t,i,s){this.slider=(0,r.Z)(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(e),this.slider.setLeft(t),"number"===typeof i&&this.slider.setWidth(i),"number"===typeof s&&this.slider.setHeight(s),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this._register(n.ko(this.slider.domNode,n.Bx.POINTER_DOWN,(e=>{0===e.button&&(e.preventDefault(),this._sliderPointerDown(e))}))),this.onclick(this.slider.domNode,(e=>{e.leftButton&&e.stopPropagation()}))}_onElementSize(e){return this._scrollbarState.setVisibleSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollSize(e){return this._scrollbarState.setScrollSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollPosition(e){return this._scrollbarState.setScrollPosition(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}beginReveal(){this._visibilityController.setShouldBeVisible(!0)}beginHide(){this._visibilityController.setShouldBeVisible(!1)}render(){this._shouldRender&&(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))}_domNodePointerDown(e){e.target===this.domNode.domNode&&this._onPointerDown(e)}delegatePointerDown(e){const t=this.domNode.domNode.getClientRects()[0].top,i=t+this._scrollbarState.getSliderPosition(),s=t+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),n=this._sliderPointerPosition(e);i<=n&&n<=s?0===e.button&&(e.preventDefault(),this._sliderPointerDown(e)):this._onPointerDown(e)}_onPointerDown(e){let t,i;if(e.target===this.domNode.domNode&&"number"===typeof e.offsetX&&"number"===typeof e.offsetY)t=e.offsetX,i=e.offsetY;else{const s=n.BK(this.domNode.domNode);t=e.pageX-s.left,i=e.pageY-s.top}const s=this._pointerDownRelativePosition(t,i);this._setDesiredScrollPositionNow(this._scrollByPage?this._scrollbarState.getDesiredScrollPositionFromOffsetPaged(s):this._scrollbarState.getDesiredScrollPositionFromOffset(s)),0===e.button&&(e.preventDefault(),this._sliderPointerDown(e))}_sliderPointerDown(e){if(!e.target||!(e.target instanceof Element))return;const t=this._sliderPointerPosition(e),i=this._sliderOrthogonalPointerPosition(e),s=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,(e=>{const n=this._sliderOrthogonalPointerPosition(e),r=Math.abs(n-i);if(m.uF&&r>140)return void this._setDesiredScrollPositionNow(s.getScrollPosition());const o=this._sliderPointerPosition(e)-t;this._setDesiredScrollPositionNow(s.getDesiredScrollPositionFromDelta(o))}),(()=>{this.slider.toggleClassName("active",!1),this._host.onDragEnd()})),this._host.onDragStart()}_setDesiredScrollPositionNow(e){const t={};this.writeScrollPosition(t,e),this._scrollable.setScrollPositionNow(t)}updateScrollbarSize(e){this._updateScrollbarSize(e),this._scrollbarState.setScrollbarSize(e),this._shouldRender=!0,this._lazyRender||this.render()}isNeeded(){return this._scrollbarState.isNeeded()}}var _=i(74850),v=i(10350);class C extends f{constructor(e,t,i){const s=e.getScrollDimensions(),n=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:i,scrollbarState:new _.m(t.horizontalHasArrows?t.arrowSize:0,2===t.horizontal?0:t.horizontalScrollbarSize,2===t.vertical?0:t.verticalScrollbarSize,s.width,s.scrollWidth,n.scrollLeft),visibility:t.horizontal,extraScrollbarClassName:"horizontal",scrollable:e,scrollByPage:t.scrollByPage}),t.horizontalHasArrows){const e=(t.arrowSize-d)/2,i=(t.horizontalScrollbarSize-d)/2;this._createArrow({className:"scra",icon:v.W.scrollbarButtonLeft,top:i,left:e,bottom:void 0,right:void 0,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new o.$(null,1,0))}),this._createArrow({className:"scra",icon:v.W.scrollbarButtonRight,top:i,left:void 0,bottom:void 0,right:e,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new o.$(null,-1,0))})}this._createSlider(Math.floor((t.horizontalScrollbarSize-t.horizontalSliderSize)/2),0,void 0,t.horizontalSliderSize)}_updateSlider(e,t){this.slider.setWidth(e),this.slider.setLeft(t)}_renderDomNode(e,t){this.domNode.setWidth(e),this.domNode.setHeight(t),this.domNode.setLeft(0),this.domNode.setBottom(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(e.width)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(e,t){return e}_sliderPointerPosition(e){return e.pageX}_sliderOrthogonalPointerPosition(e){return e.pageY}_updateScrollbarSize(e){this.slider.setHeight(e)}writeScrollPosition(e,t){e.scrollLeft=t}updateOptions(e){this.updateScrollbarSize(2===e.horizontal?0:e.horizontalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(2===e.vertical?0:e.verticalScrollbarSize),this._visibilityController.setVisibility(e.horizontal),this._scrollByPage=e.scrollByPage}}class E extends f{constructor(e,t,i){const s=e.getScrollDimensions(),n=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:i,scrollbarState:new _.m(t.verticalHasArrows?t.arrowSize:0,2===t.vertical?0:t.verticalScrollbarSize,0,s.height,s.scrollHeight,n.scrollTop),visibility:t.vertical,extraScrollbarClassName:"vertical",scrollable:e,scrollByPage:t.scrollByPage}),t.verticalHasArrows){const e=(t.arrowSize-d)/2,i=(t.verticalScrollbarSize-d)/2;this._createArrow({className:"scra",icon:v.W.scrollbarButtonUp,top:e,left:i,bottom:void 0,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new o.$(null,0,1))}),this._createArrow({className:"scra",icon:v.W.scrollbarButtonDown,top:void 0,left:i,bottom:e,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new o.$(null,0,-1))})}this._createSlider(0,Math.floor((t.verticalScrollbarSize-t.verticalSliderSize)/2),t.verticalSliderSize,void 0)}_updateSlider(e,t){this.slider.setHeight(e),this.slider.setTop(t)}_renderDomNode(e,t){this.domNode.setWidth(t),this.domNode.setHeight(e),this.domNode.setRight(0),this.domNode.setTop(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(e.height)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(e,t){return t}_sliderPointerPosition(e){return e.pageY}_sliderOrthogonalPointerPosition(e){return e.pageX}_updateScrollbarSize(e){this.slider.setWidth(e)}writeScrollPosition(e,t){e.scrollTop=t}updateOptions(e){this.updateScrollbarSize(2===e.vertical?0:e.verticalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(0),this._visibilityController.setVisibility(e.vertical),this._scrollByPage=e.scrollByPage}}var b=i(41234),S=i(49353);class y{constructor(e,t,i){this.timestamp=e,this.deltaX=t,this.deltaY=i,this.score=0}}class w{static{this.INSTANCE=new w}constructor(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}isPhysicalMouseWheel(){if(-1===this._front&&-1===this._rear)return!1;let e=1,t=0,i=1,s=this._rear;for(;;){const n=s===this._front?e:Math.pow(2,-i);if(e-=n,t+=this._memory[s].score*n,s===this._front)break;s=(this._capacity+s-1)%this._capacity,i++}return t<=.5}acceptStandardWheelEvent(e){if(s.H8){const t=n.zk(e.browserEvent),i=(0,s.pR)(t);this.accept(Date.now(),e.deltaX*i,e.deltaY*i)}else this.accept(Date.now(),e.deltaX,e.deltaY)}accept(e,t,i){let s=null;const n=new y(e,t,i);-1===this._front&&-1===this._rear?(this._memory[0]=n,this._front=0,this._rear=0):(s=this._memory[this._rear],this._rear=(this._rear+1)%this._capacity,this._rear===this._front&&(this._front=(this._front+1)%this._capacity),this._memory[this._rear]=n),n.score=this._computeScore(n,s)}_computeScore(e,t){if(Math.abs(e.deltaX)>0&&Math.abs(e.deltaY)>0)return 1;let i=.5;if(this._isAlmostInt(e.deltaX)&&this._isAlmostInt(e.deltaY)||(i+=.25),t){const s=Math.abs(e.deltaX),n=Math.abs(e.deltaY),r=Math.abs(t.deltaX),o=Math.abs(t.deltaY),a=Math.max(Math.min(s,r),1),c=Math.max(Math.min(n,o),1),l=Math.max(s,r),h=Math.max(n,o);l%a===0&&h%c===0&&(i-=.5)}return Math.min(Math.max(i,0),1)}_isAlmostInt(e){return Math.abs(Math.round(e)-e)<.01}}class R extends c.x{get options(){return this._options}constructor(e,t,i){super(),this._onScroll=this._register(new b.vl),this.onScroll=this._onScroll.event,this._onWillScroll=this._register(new b.vl),e.style.overflow="hidden",this._options=function(e){const t={lazyRender:"undefined"!==typeof e.lazyRender&&e.lazyRender,className:"undefined"!==typeof e.className?e.className:"",useShadows:"undefined"===typeof e.useShadows||e.useShadows,handleMouseWheel:"undefined"===typeof e.handleMouseWheel||e.handleMouseWheel,flipAxes:"undefined"!==typeof e.flipAxes&&e.flipAxes,consumeMouseWheelIfScrollbarIsNeeded:"undefined"!==typeof e.consumeMouseWheelIfScrollbarIsNeeded&&e.consumeMouseWheelIfScrollbarIsNeeded,alwaysConsumeMouseWheel:"undefined"!==typeof e.alwaysConsumeMouseWheel&&e.alwaysConsumeMouseWheel,scrollYToX:"undefined"!==typeof e.scrollYToX&&e.scrollYToX,mouseWheelScrollSensitivity:"undefined"!==typeof e.mouseWheelScrollSensitivity?e.mouseWheelScrollSensitivity:1,fastScrollSensitivity:"undefined"!==typeof e.fastScrollSensitivity?e.fastScrollSensitivity:5,scrollPredominantAxis:"undefined"===typeof e.scrollPredominantAxis||e.scrollPredominantAxis,mouseWheelSmoothScroll:"undefined"===typeof e.mouseWheelSmoothScroll||e.mouseWheelSmoothScroll,arrowSize:"undefined"!==typeof e.arrowSize?e.arrowSize:11,listenOnDomNode:"undefined"!==typeof e.listenOnDomNode?e.listenOnDomNode:null,horizontal:"undefined"!==typeof e.horizontal?e.horizontal:1,horizontalScrollbarSize:"undefined"!==typeof e.horizontalScrollbarSize?e.horizontalScrollbarSize:10,horizontalSliderSize:"undefined"!==typeof e.horizontalSliderSize?e.horizontalSliderSize:0,horizontalHasArrows:"undefined"!==typeof e.horizontalHasArrows&&e.horizontalHasArrows,vertical:"undefined"!==typeof e.vertical?e.vertical:1,verticalScrollbarSize:"undefined"!==typeof e.verticalScrollbarSize?e.verticalScrollbarSize:10,verticalHasArrows:"undefined"!==typeof e.verticalHasArrows&&e.verticalHasArrows,verticalSliderSize:"undefined"!==typeof e.verticalSliderSize?e.verticalSliderSize:0,scrollByPage:"undefined"!==typeof e.scrollByPage&&e.scrollByPage};t.horizontalSliderSize="undefined"!==typeof e.horizontalSliderSize?e.horizontalSliderSize:t.horizontalScrollbarSize,t.verticalSliderSize="undefined"!==typeof e.verticalSliderSize?e.verticalSliderSize:t.verticalScrollbarSize,m.zx&&(t.className+=" mac");return t}(t),this._scrollable=i,this._register(this._scrollable.onScroll((e=>{this._onWillScroll.fire(e),this._onDidScroll(e),this._onScroll.fire(e)})));const s={onMouseWheel:e=>this._onMouseWheel(e),onDragStart:()=>this._onDragStart(),onDragEnd:()=>this._onDragEnd()};this._verticalScrollbar=this._register(new E(this._scrollable,this._options,s)),this._horizontalScrollbar=this._register(new C(this._scrollable,this._options,s)),this._domNode=document.createElement("div"),this._domNode.className="monaco-scrollable-element "+this._options.className,this._domNode.setAttribute("role","presentation"),this._domNode.style.position="relative",this._domNode.style.overflow="hidden",this._domNode.appendChild(e),this._domNode.appendChild(this._horizontalScrollbar.domNode.domNode),this._domNode.appendChild(this._verticalScrollbar.domNode.domNode),this._options.useShadows?(this._leftShadowDomNode=(0,r.Z)(document.createElement("div")),this._leftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._leftShadowDomNode.domNode),this._topShadowDomNode=(0,r.Z)(document.createElement("div")),this._topShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topShadowDomNode.domNode),this._topLeftShadowDomNode=(0,r.Z)(document.createElement("div")),this._topLeftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topLeftShadowDomNode.domNode)):(this._leftShadowDomNode=null,this._topShadowDomNode=null,this._topLeftShadowDomNode=null),this._listenOnDomNode=this._options.listenOnDomNode||this._domNode,this._mouseWheelToDispose=[],this._setListeningToMouseWheel(this._options.handleMouseWheel),this.onmouseover(this._listenOnDomNode,(e=>this._onMouseOver(e))),this.onmouseleave(this._listenOnDomNode,(e=>this._onMouseLeave(e))),this._hideTimeout=this._register(new l.pc),this._isDragging=!1,this._mouseIsOver=!1,this._shouldRender=!0,this._revealOnScroll=!0}dispose(){this._mouseWheelToDispose=(0,g.AS)(this._mouseWheelToDispose),super.dispose()}getDomNode(){return this._domNode}getOverviewRulerLayoutInfo(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}}delegateVerticalScrollbarPointerDown(e){this._verticalScrollbar.delegatePointerDown(e)}getScrollDimensions(){return this._scrollable.getScrollDimensions()}setScrollDimensions(e){this._scrollable.setScrollDimensions(e,!1)}updateClassName(e){this._options.className=e,m.zx&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className}updateOptions(e){"undefined"!==typeof e.handleMouseWheel&&(this._options.handleMouseWheel=e.handleMouseWheel,this._setListeningToMouseWheel(this._options.handleMouseWheel)),"undefined"!==typeof e.mouseWheelScrollSensitivity&&(this._options.mouseWheelScrollSensitivity=e.mouseWheelScrollSensitivity),"undefined"!==typeof e.fastScrollSensitivity&&(this._options.fastScrollSensitivity=e.fastScrollSensitivity),"undefined"!==typeof e.scrollPredominantAxis&&(this._options.scrollPredominantAxis=e.scrollPredominantAxis),"undefined"!==typeof e.horizontal&&(this._options.horizontal=e.horizontal),"undefined"!==typeof e.vertical&&(this._options.vertical=e.vertical),"undefined"!==typeof e.horizontalScrollbarSize&&(this._options.horizontalScrollbarSize=e.horizontalScrollbarSize),"undefined"!==typeof e.verticalScrollbarSize&&(this._options.verticalScrollbarSize=e.verticalScrollbarSize),"undefined"!==typeof e.scrollByPage&&(this._options.scrollByPage=e.scrollByPage),this._horizontalScrollbar.updateOptions(this._options),this._verticalScrollbar.updateOptions(this._options),this._options.lazyRender||this._render()}delegateScrollFromMouseWheelEvent(e){this._onMouseWheel(new o.$(e))}_setListeningToMouseWheel(e){if(this._mouseWheelToDispose.length>0!==e&&(this._mouseWheelToDispose=(0,g.AS)(this._mouseWheelToDispose),e)){const e=e=>{this._onMouseWheel(new o.$(e))};this._mouseWheelToDispose.push(n.ko(this._listenOnDomNode,n.Bx.MOUSE_WHEEL,e,{passive:!1}))}}_onMouseWheel(e){if(e.browserEvent?.defaultPrevented)return;const t=w.INSTANCE;t.acceptStandardWheelEvent(e);let i=!1;if(e.deltaY||e.deltaX){let s=e.deltaY*this._options.mouseWheelScrollSensitivity,n=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.scrollPredominantAxis&&(this._options.scrollYToX&&n+s===0?n=s=0:Math.abs(s)>=Math.abs(n)?n=0:s=0),this._options.flipAxes&&([s,n]=[n,s]);const r=!m.zx&&e.browserEvent&&e.browserEvent.shiftKey;!this._options.scrollYToX&&!r||n||(n=s,s=0),e.browserEvent&&e.browserEvent.altKey&&(n*=this._options.fastScrollSensitivity,s*=this._options.fastScrollSensitivity);const o=this._scrollable.getFutureScrollPosition();let a={};if(s){const e=50*s,t=o.scrollTop-(e<0?Math.floor(e):Math.ceil(e));this._verticalScrollbar.writeScrollPosition(a,t)}if(n){const e=50*n,t=o.scrollLeft-(e<0?Math.floor(e):Math.ceil(e));this._horizontalScrollbar.writeScrollPosition(a,t)}if(a=this._scrollable.validateScrollPosition(a),o.scrollLeft!==a.scrollLeft||o.scrollTop!==a.scrollTop){this._options.mouseWheelSmoothScroll&&t.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(a):this._scrollable.setScrollPositionNow(a),i=!0}}let s=i;!s&&this._options.alwaysConsumeMouseWheel&&(s=!0),!s&&this._options.consumeMouseWheelIfScrollbarIsNeeded&&(this._verticalScrollbar.isNeeded()||this._horizontalScrollbar.isNeeded())&&(s=!0),s&&(e.preventDefault(),e.stopPropagation())}_onDidScroll(e){this._shouldRender=this._horizontalScrollbar.onDidScroll(e)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(e)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()}renderNow(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()}_render(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){const e=this._scrollable.getCurrentScrollPosition(),t=e.scrollTop>0,i=e.scrollLeft>0,s=i?" left":"",n=t?" top":"",r=i||t?" top-left-corner":"";this._leftShadowDomNode.setClassName(`shadow${s}`),this._topShadowDomNode.setClassName(`shadow${n}`),this._topLeftShadowDomNode.setClassName(`shadow${r}${n}${s}`)}}_onDragStart(){this._isDragging=!0,this._reveal()}_onDragEnd(){this._isDragging=!1,this._hide()}_onMouseLeave(e){this._mouseIsOver=!1,this._hide()}_onMouseOver(e){this._mouseIsOver=!0,this._reveal()}_reveal(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()}_hide(){this._mouseIsOver||this._isDragging||(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())}_scheduleHide(){this._mouseIsOver||this._isDragging||this._hideTimeout.cancelAndSet((()=>this._hide()),500)}}class L extends R{constructor(e,t){(t=t||{}).mouseWheelSmoothScroll=!1;const i=new S.yE({forceIntegerValues:!0,smoothScrollDuration:0,scheduleAtNextAnimationFrame:t=>n.PG(n.zk(e),t)});super(e,t,i),this._register(i)}setScrollPosition(e){this._scrollable.setScrollPositionNow(e)}}class T extends R{constructor(e,t,i){super(e,t,i)}setScrollPosition(e){e.reuseAnimation?this._scrollable.setScrollPositionSmooth(e,e.reuseAnimation):this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}}class x extends R{constructor(e,t){(t=t||{}).mouseWheelSmoothScroll=!1;const i=new S.yE({forceIntegerValues:!1,smoothScrollDuration:0,scheduleAtNextAnimationFrame:t=>n.PG(n.zk(e),t)});super(e,t,i),this._register(i),this._element=e,this._register(this.onScroll((e=>{e.scrollTopChanged&&(this._element.scrollTop=e.scrollTop),e.scrollLeftChanged&&(this._element.scrollLeft=e.scrollLeft)}))),this.scanDomNode()}setScrollPosition(e){this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}scanDomNode(){this.setScrollDimensions({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight}),this.setScrollPosition({scrollLeft:this._element.scrollLeft,scrollTop:this._element.scrollTop})}}},74850:(e,t,i)=>{"use strict";i.d(t,{m:()=>s});class s{constructor(e,t,i,s,n,r){this._scrollbarSize=Math.round(t),this._oppositeScrollbarSize=Math.round(i),this._arrowSize=Math.round(e),this._visibleSize=s,this._scrollSize=n,this._scrollPosition=r,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}clone(){return new s(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)}setVisibleSize(e){const t=Math.round(e);return this._visibleSize!==t&&(this._visibleSize=t,this._refreshComputedValues(),!0)}setScrollSize(e){const t=Math.round(e);return this._scrollSize!==t&&(this._scrollSize=t,this._refreshComputedValues(),!0)}setScrollPosition(e){const t=Math.round(e);return this._scrollPosition!==t&&(this._scrollPosition=t,this._refreshComputedValues(),!0)}setScrollbarSize(e){this._scrollbarSize=Math.round(e)}setOppositeScrollbarSize(e){this._oppositeScrollbarSize=Math.round(e)}static _computeValues(e,t,i,s,n){const r=Math.max(0,i-e),o=Math.max(0,r-2*t),a=s>0&&s>i;if(!a)return{computedAvailableSize:Math.round(r),computedIsNeeded:a,computedSliderSize:Math.round(o),computedSliderRatio:0,computedSliderPosition:0};const c=Math.round(Math.max(20,Math.floor(i*o/s))),l=(o-c)/(s-i),h=n*l;return{computedAvailableSize:Math.round(r),computedIsNeeded:a,computedSliderSize:Math.round(c),computedSliderRatio:l,computedSliderPosition:Math.round(h)}}_refreshComputedValues(){const e=s._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=e.computedAvailableSize,this._computedIsNeeded=e.computedIsNeeded,this._computedSliderSize=e.computedSliderSize,this._computedSliderRatio=e.computedSliderRatio,this._computedSliderPosition=e.computedSliderPosition}getArrowSize(){return this._arrowSize}getScrollPosition(){return this._scrollPosition}getRectangleLargeSize(){return this._computedAvailableSize}getRectangleSmallSize(){return this._scrollbarSize}isNeeded(){return this._computedIsNeeded}getSliderSize(){return this._computedSliderSize}getSliderPosition(){return this._computedSliderPosition}getDesiredScrollPositionFromOffset(e){if(!this._computedIsNeeded)return 0;const t=e-this._arrowSize-this._computedSliderSize/2;return Math.round(t/this._computedSliderRatio)}getDesiredScrollPositionFromOffsetPaged(e){if(!this._computedIsNeeded)return 0;const t=e-this._arrowSize;let i=this._scrollPosition;return t<this._computedSliderPosition?i-=this._visibleSize:i+=this._visibleSize,i}getDesiredScrollPositionFromDelta(e){if(!this._computedIsNeeded)return 0;const t=this._computedSliderPosition+e;return Math.round(t/this._computedSliderRatio)}}},35151:(e,t,i)=>{"use strict";i.d(t,{X:()=>C,U:()=>E});var s=i(8597),n=i(56245),r=i(92403),o=i(31295),a=i(25890),c=i(47661),l=i(41234),h=i(5662),d=i(1592),u=i(49353),g=i(631);const p={separatorBorder:c.Q1.transparent};class m{set size(e){this._size=e}get size(){return this._size}get visible(){return"undefined"===typeof this._cachedVisibleSize}setVisible(e,t){if(e!==this.visible){e?(this.size=(0,d.qE)(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize="number"===typeof t?t:this.size,this.size=0),this.container.classList.toggle("visible",e);try{this.view.setVisible?.(e)}catch(i){console.error("Splitview: Failed to set visible view"),console.error(i)}}}get minimumSize(){return this.visible?this.view.minimumSize:0}get viewMinimumSize(){return this.view.minimumSize}get maximumSize(){return this.visible?this.view.maximumSize:0}get viewMaximumSize(){return this.view.maximumSize}get priority(){return this.view.priority}get proportionalLayout(){return this.view.proportionalLayout??!0}get snap(){return!!this.view.snap}set enabled(e){this.container.style.pointerEvents=e?"":"none"}constructor(e,t,i,s){this.container=e,this.view=t,this.disposable=s,this._cachedVisibleSize=void 0,"number"===typeof i?(this._size=i,this._cachedVisibleSize=void 0,e.classList.add("visible")):(this._size=0,this._cachedVisibleSize=i.cachedVisibleSize)}layout(e,t){this.layoutContainer(e);try{this.view.layout(this.size,e,t)}catch(i){console.error("Splitview: Failed to layout view"),console.error(i)}}dispose(){this.disposable.dispose()}}class f extends m{layoutContainer(e){this.container.style.top=`${e}px`,this.container.style.height=`${this.size}px`}}class _ extends m{layoutContainer(e){this.container.style.left=`${e}px`,this.container.style.width=`${this.size}px`}}var v,C;!function(e){e[e.Idle=0]="Idle",e[e.Busy=1]="Busy"}(v||(v={})),function(e){e.Distribute={type:"distribute"},e.Split=function(e){return{type:"split",index:e}},e.Auto=function(e){return{type:"auto",index:e}},e.Invisible=function(e){return{type:"invisible",cachedVisibleSize:e}}}(C||(C={}));class E extends h.jG{get orthogonalStartSash(){return this._orthogonalStartSash}get orthogonalEndSash(){return this._orthogonalEndSash}get startSnappingEnabled(){return this._startSnappingEnabled}get endSnappingEnabled(){return this._endSnappingEnabled}set orthogonalStartSash(e){for(const t of this.sashItems)t.sash.orthogonalStartSash=e;this._orthogonalStartSash=e}set orthogonalEndSash(e){for(const t of this.sashItems)t.sash.orthogonalEndSash=e;this._orthogonalEndSash=e}set startSnappingEnabled(e){this._startSnappingEnabled!==e&&(this._startSnappingEnabled=e,this.updateSashEnablement())}set endSnappingEnabled(e){this._endSnappingEnabled!==e&&(this._endSnappingEnabled=e,this.updateSashEnablement())}constructor(e,t={}){super(),this.size=0,this._contentSize=0,this.proportions=void 0,this.viewItems=[],this.sashItems=[],this.state=v.Idle,this._onDidSashChange=this._register(new l.vl),this._onDidSashReset=this._register(new l.vl),this._startSnappingEnabled=!0,this._endSnappingEnabled=!0,this.onDidSashChange=this._onDidSashChange.event,this.onDidSashReset=this._onDidSashReset.event,this.orientation=t.orientation??0,this.inverseAltBehavior=t.inverseAltBehavior??!1,this.proportionalLayout=t.proportionalLayout??!0,this.getSashOrthogonalSize=t.getSashOrthogonalSize,this.el=document.createElement("div"),this.el.classList.add("monaco-split-view2"),this.el.classList.add(0===this.orientation?"vertical":"horizontal"),e.appendChild(this.el),this.sashContainer=(0,s.BC)(this.el,(0,s.$)(".sash-container")),this.viewContainer=(0,s.$)(".split-view-container"),this.scrollable=this._register(new u.yE({forceIntegerValues:!0,smoothScrollDuration:125,scheduleAtNextAnimationFrame:e=>(0,s.PG)((0,s.zk)(this.el),e)})),this.scrollableElement=this._register(new o.oO(this.viewContainer,{vertical:0===this.orientation?t.scrollbarVisibility??1:2,horizontal:1===this.orientation?t.scrollbarVisibility??1:2},this.scrollable));const i=this._register(new n.f(this.viewContainer,"scroll")).event;this._register(i((e=>{const t=this.scrollableElement.getScrollPosition(),i=Math.abs(this.viewContainer.scrollLeft-t.scrollLeft)<=1?void 0:this.viewContainer.scrollLeft,s=Math.abs(this.viewContainer.scrollTop-t.scrollTop)<=1?void 0:this.viewContainer.scrollTop;void 0===i&&void 0===s||this.scrollableElement.setScrollPosition({scrollLeft:i,scrollTop:s})}))),this.onDidScroll=this.scrollableElement.onScroll,this._register(this.onDidScroll((e=>{e.scrollTopChanged&&(this.viewContainer.scrollTop=e.scrollTop),e.scrollLeftChanged&&(this.viewContainer.scrollLeft=e.scrollLeft)}))),(0,s.BC)(this.el,this.scrollableElement.getDomNode()),this.style(t.styles||p),t.descriptor&&(this.size=t.descriptor.size,t.descriptor.views.forEach(((e,t)=>{const i=g.b0(e.visible)||e.visible?e.size:{type:"invisible",cachedVisibleSize:e.size},s=e.view;this.doAddView(s,i,t,!0)})),this._contentSize=this.viewItems.reduce(((e,t)=>e+t.size),0),this.saveProportions())}style(e){e.separatorBorder.isTransparent()?(this.el.classList.remove("separator-border"),this.el.style.removeProperty("--separator-border")):(this.el.classList.add("separator-border"),this.el.style.setProperty("--separator-border",e.separatorBorder.toString()))}addView(e,t,i=this.viewItems.length,s){this.doAddView(e,t,i,s)}layout(e,t){const i=Math.max(this.size,this._contentSize);if(this.size=e,this.layoutContext=t,this.proportions){let t=0;for(let i=0;i<this.viewItems.length;i++){const s=this.viewItems[i],n=this.proportions[i];"number"===typeof n?t+=n:e-=s.size}for(let i=0;i<this.viewItems.length;i++){const s=this.viewItems[i],n=this.proportions[i];"number"===typeof n&&t>0&&(s.size=(0,d.qE)(Math.round(n*e/t),s.minimumSize,s.maximumSize))}}else{const t=(0,a.y1)(this.viewItems.length),s=t.filter((e=>1===this.viewItems[e].priority)),n=t.filter((e=>2===this.viewItems[e].priority));this.resize(this.viewItems.length-1,e-i,void 0,s,n)}this.distributeEmptySpace(),this.layoutViews()}saveProportions(){this.proportionalLayout&&this._contentSize>0&&(this.proportions=this.viewItems.map((e=>e.proportionalLayout&&e.visible?e.size/this._contentSize:void 0)))}onSashStart({sash:e,start:t,alt:i}){for(const s of this.viewItems)s.enabled=!1;const n=this.sashItems.findIndex((t=>t.sash===e)),r=(0,h.qE)((0,s.ko)(this.el.ownerDocument.body,"keydown",(e=>o(this.sashDragState.current,e.altKey))),(0,s.ko)(this.el.ownerDocument.body,"keyup",(()=>o(this.sashDragState.current,!1)))),o=(e,t)=>{const i=this.viewItems.map((e=>e.size));let s,o,c=Number.NEGATIVE_INFINITY,l=Number.POSITIVE_INFINITY;if(this.inverseAltBehavior&&(t=!t),t){if(n===this.sashItems.length-1){const e=this.viewItems[n];c=(e.minimumSize-e.size)/2,l=(e.maximumSize-e.size)/2}else{const e=this.viewItems[n+1];c=(e.size-e.maximumSize)/2,l=(e.size-e.minimumSize)/2}}if(!t){const e=(0,a.y1)(n,-1),t=(0,a.y1)(n+1,this.viewItems.length),r=e.reduce(((e,t)=>e+(this.viewItems[t].minimumSize-i[t])),0),c=e.reduce(((e,t)=>e+(this.viewItems[t].viewMaximumSize-i[t])),0),l=0===t.length?Number.POSITIVE_INFINITY:t.reduce(((e,t)=>e+(i[t]-this.viewItems[t].minimumSize)),0),h=0===t.length?Number.NEGATIVE_INFINITY:t.reduce(((e,t)=>e+(i[t]-this.viewItems[t].viewMaximumSize)),0),d=Math.max(r,h),u=Math.min(l,c),g=this.findFirstSnapIndex(e),p=this.findFirstSnapIndex(t);if("number"===typeof g){const e=this.viewItems[g],t=Math.floor(e.viewMinimumSize/2);s={index:g,limitDelta:e.visible?d-t:d+t,size:e.size}}if("number"===typeof p){const e=this.viewItems[p],t=Math.floor(e.viewMinimumSize/2);o={index:p,limitDelta:e.visible?u+t:u-t,size:e.size}}}this.sashDragState={start:e,current:e,index:n,sizes:i,minDelta:c,maxDelta:l,alt:t,snapBefore:s,snapAfter:o,disposable:r}};o(t,i)}onSashChange({current:e}){const{index:t,start:i,sizes:s,alt:n,minDelta:r,maxDelta:o,snapBefore:a,snapAfter:c}=this.sashDragState;this.sashDragState.current=e;const l=e-i,h=this.resize(t,l,s,void 0,void 0,r,o,a,c);if(n){const e=t===this.sashItems.length-1,i=this.viewItems.map((e=>e.size)),s=e?t:t+1,n=this.viewItems[s],r=n.size-n.maximumSize,o=n.size-n.minimumSize,a=e?t-1:t+1;this.resize(a,-h,i,void 0,void 0,r,o)}this.distributeEmptySpace(),this.layoutViews()}onSashEnd(e){this._onDidSashChange.fire(e),this.sashDragState.disposable.dispose(),this.saveProportions();for(const t of this.viewItems)t.enabled=!0}onViewChange(e,t){const i=this.viewItems.indexOf(e);i<0||i>=this.viewItems.length||(t="number"===typeof t?t:e.size,t=(0,d.qE)(t,e.minimumSize,e.maximumSize),this.inverseAltBehavior&&i>0?(this.resize(i-1,Math.floor((e.size-t)/2)),this.distributeEmptySpace(),this.layoutViews()):(e.size=t,this.relayout([i],void 0)))}resizeView(e,t){if(!(e<0||e>=this.viewItems.length)){if(this.state!==v.Idle)throw new Error("Cant modify splitview");this.state=v.Busy;try{const i=(0,a.y1)(this.viewItems.length).filter((t=>t!==e)),s=[...i.filter((e=>1===this.viewItems[e].priority)),e],n=i.filter((e=>2===this.viewItems[e].priority)),r=this.viewItems[e];t=Math.round(t),t=(0,d.qE)(t,r.minimumSize,Math.min(r.maximumSize,this.size)),r.size=t,this.relayout(s,n)}finally{this.state=v.Idle}}}distributeViewSizes(){const e=[];let t=0;for(const o of this.viewItems)o.maximumSize-o.minimumSize>0&&(e.push(o),t+=o.size);const i=Math.floor(t/e.length);for(const o of e)o.size=(0,d.qE)(i,o.minimumSize,o.maximumSize);const s=(0,a.y1)(this.viewItems.length),n=s.filter((e=>1===this.viewItems[e].priority)),r=s.filter((e=>2===this.viewItems[e].priority));this.relayout(n,r)}getViewSize(e){return e<0||e>=this.viewItems.length?-1:this.viewItems[e].size}doAddView(e,t,i=this.viewItems.length,n){if(this.state!==v.Idle)throw new Error("Cant modify splitview");this.state=v.Busy;try{const o=(0,s.$)(".split-view-view");i===this.viewItems.length?this.viewContainer.appendChild(o):this.viewContainer.insertBefore(o,this.viewContainer.children.item(i));const c=e.onDidChange((e=>this.onViewChange(p,e))),d=(0,h.s)((()=>o.remove())),u=(0,h.qE)(c,d);let g;"number"===typeof t?g=t:("auto"===t.type&&(t=this.areViewsDistributed()?{type:"distribute"}:{type:"split",index:t.index}),g="split"===t.type?this.getViewSize(t.index)/2:"invisible"===t.type?{cachedVisibleSize:t.cachedVisibleSize}:e.minimumSize);const p=0===this.orientation?new f(o,e,g,u):new _(o,e,g,u);if(this.viewItems.splice(i,0,p),this.viewItems.length>1){const e={orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash},t=0===this.orientation?new r.m(this.sashContainer,{getHorizontalSashTop:e=>this.getSashPosition(e),getHorizontalSashWidth:this.getSashOrthogonalSize},{...e,orientation:1}):new r.m(this.sashContainer,{getVerticalSashLeft:e=>this.getSashPosition(e),getVerticalSashHeight:this.getSashOrthogonalSize},{...e,orientation:0}),s=0===this.orientation?e=>({sash:t,start:e.startY,current:e.currentY,alt:e.altKey}):e=>({sash:t,start:e.startX,current:e.currentX,alt:e.altKey}),n=l.Jh.map(t.onDidStart,s)(this.onSashStart,this),o=l.Jh.map(t.onDidChange,s)(this.onSashChange,this),c=l.Jh.map(t.onDidEnd,(()=>this.sashItems.findIndex((e=>e.sash===t)))),d=c(this.onSashEnd,this),u=t.onDidReset((()=>{const e=this.sashItems.findIndex((e=>e.sash===t)),i=(0,a.y1)(e,-1),s=(0,a.y1)(e+1,this.viewItems.length),n=this.findFirstSnapIndex(i),r=this.findFirstSnapIndex(s);("number"!==typeof n||this.viewItems[n].visible)&&("number"!==typeof r||this.viewItems[r].visible)&&this._onDidSashReset.fire(e)})),g=(0,h.qE)(n,o,d,u,t),p={sash:t,disposable:g};this.sashItems.splice(i-1,0,p)}let m;o.appendChild(e.element),"number"!==typeof t&&"split"===t.type&&(m=[t.index]),n||this.relayout([i],m),n||"number"===typeof t||"distribute"!==t.type||this.distributeViewSizes()}finally{this.state=v.Idle}}relayout(e,t){const i=this.viewItems.reduce(((e,t)=>e+t.size),0);this.resize(this.viewItems.length-1,this.size-i,void 0,e,t),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()}resize(e,t,i=this.viewItems.map((e=>e.size)),s,n,r=Number.NEGATIVE_INFINITY,o=Number.POSITIVE_INFINITY,c,l){if(e<0||e>=this.viewItems.length)return 0;const h=(0,a.y1)(e,-1),u=(0,a.y1)(e+1,this.viewItems.length);if(n)for(const d of n)(0,a._A)(h,d),(0,a._A)(u,d);if(s)for(const d of s)(0,a.r7)(h,d),(0,a.r7)(u,d);const g=h.map((e=>this.viewItems[e])),p=h.map((e=>i[e])),m=u.map((e=>this.viewItems[e])),f=u.map((e=>i[e])),_=h.reduce(((e,t)=>e+(this.viewItems[t].minimumSize-i[t])),0),v=h.reduce(((e,t)=>e+(this.viewItems[t].maximumSize-i[t])),0),C=0===u.length?Number.POSITIVE_INFINITY:u.reduce(((e,t)=>e+(i[t]-this.viewItems[t].minimumSize)),0),E=0===u.length?Number.NEGATIVE_INFINITY:u.reduce(((e,t)=>e+(i[t]-this.viewItems[t].maximumSize)),0),b=Math.max(_,E,r),S=Math.min(C,v,o);let y=!1;if(c){const e=this.viewItems[c.index],i=t>=c.limitDelta;y=i!==e.visible,e.setVisible(i,c.size)}if(!y&&l){const e=this.viewItems[l.index],i=t<l.limitDelta;y=i!==e.visible,e.setVisible(i,l.size)}if(y)return this.resize(e,t,i,s,n,r,o);for(let a=0,w=t=(0,d.qE)(t,b,S);a<g.length;a++){const e=g[a],t=(0,d.qE)(p[a]+w,e.minimumSize,e.maximumSize);w-=t-p[a],e.size=t}for(let a=0,w=t;a<m.length;a++){const e=m[a],t=(0,d.qE)(f[a]-w,e.minimumSize,e.maximumSize);w+=t-f[a],e.size=t}return t}distributeEmptySpace(e){const t=this.viewItems.reduce(((e,t)=>e+t.size),0);let i=this.size-t;const s=(0,a.y1)(this.viewItems.length-1,-1),n=s.filter((e=>1===this.viewItems[e].priority)),r=s.filter((e=>2===this.viewItems[e].priority));for(const o of r)(0,a._A)(s,o);for(const o of n)(0,a.r7)(s,o);"number"===typeof e&&(0,a.r7)(s,e);for(let o=0;0!==i&&o<s.length;o++){const e=this.viewItems[s[o]],t=(0,d.qE)(e.size+i,e.minimumSize,e.maximumSize);i-=t-e.size,e.size=t}}layoutViews(){this._contentSize=this.viewItems.reduce(((e,t)=>e+t.size),0);let e=0;for(const t of this.viewItems)t.layout(e,this.layoutContext),e+=t.size;this.sashItems.forEach((e=>e.sash.layout())),this.updateSashEnablement(),this.updateScrollableElement()}updateScrollableElement(){0===this.orientation?this.scrollableElement.setScrollDimensions({height:this.size,scrollHeight:this._contentSize}):this.scrollableElement.setScrollDimensions({width:this.size,scrollWidth:this._contentSize})}updateSashEnablement(){let e=!1;const t=this.viewItems.map((t=>e=t.size-t.minimumSize>0||e));e=!1;const i=this.viewItems.map((t=>e=t.maximumSize-t.size>0||e)),s=[...this.viewItems].reverse();e=!1;const n=s.map((t=>e=t.size-t.minimumSize>0||e)).reverse();e=!1;const r=s.map((t=>e=t.maximumSize-t.size>0||e)).reverse();let o=0;for(let c=0;c<this.sashItems.length;c++){const{sash:e}=this.sashItems[c];o+=this.viewItems[c].size;const s=!(t[c]&&r[c+1]),l=!(i[c]&&n[c+1]);if(s&&l){const i=(0,a.y1)(c,-1),s=(0,a.y1)(c+1,this.viewItems.length),r=this.findFirstSnapIndex(i),l=this.findFirstSnapIndex(s),h="number"===typeof r&&!this.viewItems[r].visible,d="number"===typeof l&&!this.viewItems[l].visible;h&&n[c]&&(o>0||this.startSnappingEnabled)?e.state=1:d&&t[c]&&(o<this._contentSize||this.endSnappingEnabled)?e.state=2:e.state=0}else e.state=s&&!l?1:!s&&l?2:3}}getSashPosition(e){let t=0;for(let i=0;i<this.sashItems.length;i++)if(t+=this.viewItems[i].size,this.sashItems[i].sash===e)return t;return 0}findFirstSnapIndex(e){for(const t of e){const e=this.viewItems[t];if(e.visible&&e.snap)return t}for(const t of e){const e=this.viewItems[t];if(e.visible&&e.maximumSize-e.minimumSize>0)return;if(!e.visible&&e.snap)return t}}areViewsDistributed(){let e,t;for(const i of this.viewItems)if(e=void 0===e?i.size:Math.min(e,i.size),t=void 0===t?i.size:Math.max(t,i.size),t-e>2)return!1;return!0}dispose(){this.sashDragState?.disposable.dispose(),(0,h.AS)(this.viewItems),this.viewItems=[],this.sashItems.forEach((e=>e.disposable.dispose())),this.sashItems=[],super.dispose()}}},35315:(e,t,i)=>{"use strict";i.d(t,{l:()=>l,F:()=>c});var s=i(17390),n=i(25689),r=i(41234),o=i(42904),a=i(48196);const c={inputActiveOptionBorder:"#007ACC00",inputActiveOptionForeground:"#FFFFFF",inputActiveOptionBackground:"#0E639C50"};class l extends s.x{constructor(e){super(),this._onChange=this._register(new r.vl),this.onChange=this._onChange.event,this._onKeyDown=this._register(new r.vl),this.onKeyDown=this._onKeyDown.event,this._opts=e,this._checked=this._opts.isChecked;const t=["monaco-custom-toggle"];this._opts.icon&&(this._icon=this._opts.icon,t.push(...n.L.asClassNameArray(this._icon))),this._opts.actionClassName&&t.push(...this._opts.actionClassName.split(" ")),this._checked&&t.push("checked"),this.domNode=document.createElement("div"),this._hover=this._register((0,a.i)().setupManagedHover(e.hoverDelegate??(0,o.nZ)("mouse"),this.domNode,this._opts.title)),this.domNode.classList.add(...t),this._opts.notFocusable||(this.domNode.tabIndex=0),this.domNode.setAttribute("role","checkbox"),this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.setAttribute("aria-label",this._opts.title),this.applyStyles(),this.onclick(this.domNode,(e=>{this.enabled&&(this.checked=!this._checked,this._onChange.fire(!1),e.preventDefault())})),this._register(this.ignoreGesture(this.domNode)),this.onkeydown(this.domNode,(e=>{if(10===e.keyCode||3===e.keyCode)return this.checked=!this._checked,this._onChange.fire(!0),e.preventDefault(),void e.stopPropagation();this._onKeyDown.fire(e)}))}get enabled(){return"true"!==this.domNode.getAttribute("aria-disabled")}focus(){this.domNode.focus()}get checked(){return this._checked}set checked(e){this._checked=e,this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.classList.toggle("checked",this._checked),this.applyStyles()}width(){return 22}applyStyles(){this.domNode&&(this.domNode.style.borderColor=this._checked&&this._opts.inputActiveOptionBorder||"",this.domNode.style.color=this._checked&&this._opts.inputActiveOptionForeground||"inherit",this.domNode.style.backgroundColor=this._checked&&this._opts.inputActiveOptionBackground||"")}enable(){this.domNode.setAttribute("aria-disabled",String(!1))}disable(){this.domNode.setAttribute("aria-disabled",String(!0))}}},19466:(e,t,i)=>{"use strict";i.d(t,{DO:()=>q,w0:()=>x,KP:()=>s,RD:()=>O,vD:()=>I});var s,n=i(8597),r=(i(56245),i(72962)),o=(i(11799),i(88443),i(91581)),a=i(66700),c=i(93090),l=i(35315),h=i(37472),d=i(84565),u=(i(36921),i(25890)),g=i(90766),p=i(10350),m=i(25689),f=i(74320),_=i(41234),v=i(26690),C=i(5662),E=i(1592),b=i(631),S=i(78209),y=(i(42904),i(31308)),w=i(11007);class R extends a.ur{constructor(e){super(e.elements.map((e=>e.element))),this.data=e}}function L(e){return e instanceof a.ur?new R(e):e}class T{constructor(e,t){this.modelProvider=e,this.dnd=t,this.autoExpandDisposable=C.jG.None,this.disposables=new C.Cm}getDragURI(e){return this.dnd.getDragURI(e.element)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map((e=>e.element)),t)}onDragStart(e,t){this.dnd.onDragStart?.(L(e),t)}onDragOver(e,t,i,s,n,r=!0){const o=this.dnd.onDragOver(L(e),t&&t.element,i,s,n),a=this.autoExpandNode!==t;if(a&&(this.autoExpandDisposable.dispose(),this.autoExpandNode=t),"undefined"===typeof t)return o;if(a&&"boolean"!==typeof o&&o.autoExpand&&(this.autoExpandDisposable=(0,g.EQ)((()=>{const e=this.modelProvider(),i=e.getNodeLocation(t);e.isCollapsed(i)&&e.setCollapsed(i,!1),this.autoExpandNode=void 0}),500,this.disposables)),"boolean"===typeof o||!o.accept||"undefined"===typeof o.bubble||o.feedback){if(!r){return{accept:"boolean"===typeof o?o:o.accept,effect:"boolean"===typeof o?void 0:o.effect,feedback:[i]}}return o}if(1===o.bubble){const i=this.modelProvider(),r=i.getNodeLocation(t),o=i.getParentNodeLocation(r),a=i.getNode(o),c=o&&i.getListIndex(o);return this.onDragOver(e,a,c,s,n,!1)}const c=this.modelProvider(),l=c.getNodeLocation(t),h=c.getListIndex(l),d=c.getListRenderCount(l);return{...o,feedback:(0,u.y1)(h,h+d)}}drop(e,t,i,s,n){this.autoExpandDisposable.dispose(),this.autoExpandNode=void 0,this.dnd.drop(L(e),t&&t.element,i,s,n)}onDragEnd(e){this.dnd.onDragEnd?.(e)}dispose(){this.disposables.dispose(),this.dnd.dispose()}}class x{constructor(e){this.delegate=e}getHeight(e){return this.delegate.getHeight(e.element)}getTemplateId(e){return this.delegate.getTemplateId(e.element)}hasDynamicHeight(e){return!!this.delegate.hasDynamicHeight&&this.delegate.hasDynamicHeight(e.element)}setDynamicHeight(e,t){this.delegate.setDynamicHeight?.(e.element,t)}}!function(e){e.None="none",e.OnHover="onHover",e.Always="always"}(s||(s={}));class k{get elements(){return this._elements}constructor(e,t=[]){this._elements=t,this.disposables=new C.Cm,this.onDidChange=_.Jh.forEach(e,(e=>this._elements=e),this.disposables)}dispose(){this.disposables.dispose()}}class A{static{this.DefaultIndent=8}constructor(e,t,i,s,n,r={}){this.renderer=e,this.modelProvider=t,this.activeNodes=s,this.renderedIndentGuides=n,this.renderedElements=new Map,this.renderedNodes=new Map,this.indent=A.DefaultIndent,this.hideTwistiesOfChildlessElements=!1,this.shouldRenderIndentGuides=!1,this.activeIndentNodes=new Set,this.indentGuidesDisposable=C.jG.None,this.disposables=new C.Cm,this.templateId=e.templateId,this.updateOptions(r),_.Jh.map(i,(e=>e.node))(this.onDidChangeNodeTwistieState,this,this.disposables),e.onDidChangeTwistieState?.(this.onDidChangeTwistieState,this,this.disposables)}updateOptions(e={}){if("undefined"!==typeof e.indent){const t=(0,E.qE)(e.indent,0,40);if(t!==this.indent){this.indent=t;for(const[e,t]of this.renderedNodes)this.renderTreeElement(e,t)}}if("undefined"!==typeof e.renderIndentGuides){const t=e.renderIndentGuides!==s.None;if(t!==this.shouldRenderIndentGuides){this.shouldRenderIndentGuides=t;for(const[e,t]of this.renderedNodes)this._renderIndentGuides(e,t);if(this.indentGuidesDisposable.dispose(),t){const e=new C.Cm;this.activeNodes.onDidChange(this._onDidChangeActiveNodes,this,e),this.indentGuidesDisposable=e,this._onDidChangeActiveNodes(this.activeNodes.elements)}}}"undefined"!==typeof e.hideTwistiesOfChildlessElements&&(this.hideTwistiesOfChildlessElements=e.hideTwistiesOfChildlessElements)}renderTemplate(e){const t=(0,n.BC)(e,(0,n.$)(".monaco-tl-row")),i=(0,n.BC)(t,(0,n.$)(".monaco-tl-indent")),s=(0,n.BC)(t,(0,n.$)(".monaco-tl-twistie")),r=(0,n.BC)(t,(0,n.$)(".monaco-tl-contents")),o=this.renderer.renderTemplate(r);return{container:e,indent:i,twistie:s,indentGuidesDisposable:C.jG.None,templateData:o}}renderElement(e,t,i,s){this.renderedNodes.set(e,i),this.renderedElements.set(e.element,e),this.renderTreeElement(e,i),this.renderer.renderElement(e,t,i.templateData,s)}disposeElement(e,t,i,s){i.indentGuidesDisposable.dispose(),this.renderer.disposeElement?.(e,t,i.templateData,s),"number"===typeof s&&(this.renderedNodes.delete(e),this.renderedElements.delete(e.element))}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}onDidChangeTwistieState(e){const t=this.renderedElements.get(e);t&&this.onDidChangeNodeTwistieState(t)}onDidChangeNodeTwistieState(e){const t=this.renderedNodes.get(e);t&&(this._onDidChangeActiveNodes(this.activeNodes.elements),this.renderTreeElement(e,t))}renderTreeElement(e,t){const i=A.DefaultIndent+(e.depth-1)*this.indent;t.twistie.style.paddingLeft=`${i}px`,t.indent.style.width=i+this.indent-16+"px",e.collapsible?t.container.setAttribute("aria-expanded",String(!e.collapsed)):t.container.removeAttribute("aria-expanded"),t.twistie.classList.remove(...m.L.asClassNameArray(p.W.treeItemExpanded));let s=!1;this.renderer.renderTwistie&&(s=this.renderer.renderTwistie(e.element,t.twistie)),e.collapsible&&(!this.hideTwistiesOfChildlessElements||e.visibleChildrenCount>0)?(s||t.twistie.classList.add(...m.L.asClassNameArray(p.W.treeItemExpanded)),t.twistie.classList.add("collapsible"),t.twistie.classList.toggle("collapsed",e.collapsed)):t.twistie.classList.remove("collapsible","collapsed"),this._renderIndentGuides(e,t)}_renderIndentGuides(e,t){if((0,n.w_)(t.indent),t.indentGuidesDisposable.dispose(),!this.shouldRenderIndentGuides)return;const i=new C.Cm,s=this.modelProvider();for(;;){const r=s.getNodeLocation(e),o=s.getParentNodeLocation(r);if(!o)break;const a=s.getNode(o),c=(0,n.$)(".indent-guide",{style:`width: ${this.indent}px`});this.activeIndentNodes.has(a)&&c.classList.add("active"),0===t.indent.childElementCount?t.indent.appendChild(c):t.indent.insertBefore(c,t.indent.firstElementChild),this.renderedIndentGuides.add(a,c),i.add((0,C.s)((()=>this.renderedIndentGuides.delete(a,c)))),e=a}t.indentGuidesDisposable=i}_onDidChangeActiveNodes(e){if(!this.shouldRenderIndentGuides)return;const t=new Set,i=this.modelProvider();e.forEach((e=>{const s=i.getNodeLocation(e);try{const n=i.getParentNodeLocation(s);e.collapsible&&e.children.length>0&&!e.collapsed?t.add(e):n&&t.add(i.getNode(n))}catch{}})),this.activeIndentNodes.forEach((e=>{t.has(e)||this.renderedIndentGuides.forEach(e,(e=>e.classList.remove("active")))})),t.forEach((e=>{this.activeIndentNodes.has(e)||this.renderedIndentGuides.forEach(e,(e=>e.classList.add("active")))})),this.activeIndentNodes=t}dispose(){this.renderedNodes.clear(),this.renderedElements.clear(),this.indentGuidesDisposable.dispose(),(0,C.AS)(this.disposables)}}class N{get totalCount(){return this._totalCount}get matchCount(){return this._matchCount}constructor(e,t,i){this.tree=e,this.keyboardNavigationLabelProvider=t,this._filter=i,this._totalCount=0,this._matchCount=0,this._pattern="",this._lowercasePattern="",this.disposables=new C.Cm,e.onWillRefilter(this.reset,this,this.disposables)}filter(e,t){let i=1;if(this._filter){const s=this._filter.filter(e,t);if(i="boolean"===typeof s?s?1:0:(0,h.iZ)(s)?(0,h.Mn)(s.visibility):s,0===i)return!1}if(this._totalCount++,!this._pattern)return this._matchCount++,{data:v.ne.Default,visibility:i};const s=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e),n=Array.isArray(s)?s:[s];for(const r of n){const e=r&&r.toString();if("undefined"===typeof e)return{data:v.ne.Default,visibility:i};let t;if(this.tree.findMatchType===O.Contiguous){const i=e.toLowerCase().indexOf(this._lowercasePattern);if(i>-1){t=[Number.MAX_SAFE_INTEGER,0];for(let e=this._lowercasePattern.length;e>0;e--)t.push(i+e-1)}}else t=(0,v.dt)(this._pattern,this._lowercasePattern,0,e,e.toLowerCase(),0,{firstMatchCanBeWeak:!0,boostFullMatch:!0});if(t)return this._matchCount++,1===n.length?{data:t,visibility:i}:{data:{label:e,score:t},visibility:i}}return this.tree.findMode===I.Filter?"number"===typeof this.tree.options.defaultFindVisibility?this.tree.options.defaultFindVisibility:this.tree.options.defaultFindVisibility?this.tree.options.defaultFindVisibility(e):2:{data:v.ne.Default,visibility:i}}reset(){this._totalCount=0,this._matchCount=0}dispose(){(0,C.AS)(this.disposables)}}l.l;l.l;o.x8,l.F;var I,O;!function(e){e[e.Highlight=0]="Highlight",e[e.Filter=1]="Filter"}(I||(I={})),function(e){e[e.Fuzzy=0]="Fuzzy",e[e.Contiguous=1]="Contiguous"}(O||(O={}));C.jG;class D{get pattern(){return this._pattern}get mode(){return this._mode}set mode(e){e!==this._mode&&(this._mode=e,this.widget&&(this.widget.mode=this._mode),this.tree.refilter(),this.render(),this._onDidChangeMode.fire(e))}get matchType(){return this._matchType}set matchType(e){e!==this._matchType&&(this._matchType=e,this.widget&&(this.widget.matchType=this._matchType),this.tree.refilter(),this.render(),this._onDidChangeMatchType.fire(e))}constructor(e,t,i,s,n,r={}){this.tree=e,this.view=i,this.filter=s,this.contextViewProvider=n,this.options=r,this._pattern="",this.width=0,this._onDidChangeMode=new _.vl,this.onDidChangeMode=this._onDidChangeMode.event,this._onDidChangeMatchType=new _.vl,this.onDidChangeMatchType=this._onDidChangeMatchType.event,this._onDidChangePattern=new _.vl,this._onDidChangeOpenState=new _.vl,this.onDidChangeOpenState=this._onDidChangeOpenState.event,this.enabledDisposables=new C.Cm,this.disposables=new C.Cm,this._mode=e.options.defaultFindMode??I.Highlight,this._matchType=e.options.defaultFindMatchType??O.Fuzzy,t.onDidSplice(this.onDidSpliceModel,this,this.disposables)}updateOptions(e={}){void 0!==e.defaultFindMode&&(this.mode=e.defaultFindMode),void 0!==e.defaultFindMatchType&&(this.matchType=e.defaultFindMatchType)}onDidSpliceModel(){this.widget&&0!==this.pattern.length&&(this.tree.refilter(),this.render())}render(){const e=this.filter.totalCount>0&&0===this.filter.matchCount;this.pattern&&e?((0,w.xE)((0,S.kg)("replFindNoResults","No results")),this.tree.options.showNotFoundMessage??1?this.widget?.showMessage({type:2,content:(0,S.kg)("not found","No elements found.")}):this.widget?.showMessage({type:2})):(this.widget?.clearMessage(),this.pattern&&(0,w.xE)((0,S.kg)("replFindResults","{0} results",this.filter.matchCount)))}shouldAllowFocus(e){return!this.widget||!this.pattern||(this.filter.totalCount>0&&this.filter.matchCount<=1||!v.ne.isDefault(e.filterData))}layout(e){this.width=e,this.widget?.layout(e)}dispose(){this._history=void 0,this._onDidChangePattern.dispose(),this.enabledDisposables.dispose(),this.disposables.dispose()}}function M(e,t){return e.position===t.position&&P(e,t)}function P(e,t){return e.node.element===t.node.element&&e.startIndex===t.startIndex&&e.height===t.height&&e.endIndex===t.endIndex}class F{constructor(e=[]){this.stickyNodes=e}get count(){return this.stickyNodes.length}equal(e){return(0,u.aI)(this.stickyNodes,e.stickyNodes,M)}lastNodePartiallyVisible(){if(0===this.count)return!1;const e=this.stickyNodes[this.count-1];if(1===this.count)return 0!==e.position;const t=this.stickyNodes[this.count-2];return t.position+t.height!==e.position}animationStateChanged(e){if(!(0,u.aI)(this.stickyNodes,e.stickyNodes,P))return!1;if(0===this.count)return!1;const t=this.stickyNodes[this.count-1],i=e.stickyNodes[e.count-1];return t.position!==i.position}}class U{constrainStickyScrollNodes(e,t,i){for(let s=0;s<e.length;s++){const n=e[s];if(n.position+n.height>i||s>=t)return e.slice(0,s)}return e}}class H extends C.jG{constructor(e,t,i,s,n,r={}){super(),this.tree=e,this.model=t,this.view=i,this.treeDelegate=n,this.maxWidgetViewRatio=.4;const o=this.validateStickySettings(r);this.stickyScrollMaxItemCount=o.stickyScrollMaxItemCount,this.stickyScrollDelegate=r.stickyScrollDelegate??new U,this._widget=this._register(new B(i.getScrollableElement(),i,e,s,n,r.accessibilityProvider)),this.onDidChangeHasFocus=this._widget.onDidChangeHasFocus,this.onContextMenu=this._widget.onContextMenu,this._register(i.onDidScroll((()=>this.update()))),this._register(i.onDidChangeContentHeight((()=>this.update()))),this._register(e.onDidChangeCollapseState((()=>this.update()))),this.update()}get height(){return this._widget.height}getNodeAtHeight(e){let t;if(t=0===e?this.view.firstVisibleIndex:this.view.indexAt(e+this.view.scrollTop),!(t<0||t>=this.view.length))return this.view.element(t)}update(){const e=this.getNodeAtHeight(0);if(!e||0===this.tree.scrollTop)return void this._widget.setState(void 0);const t=this.findStickyState(e);this._widget.setState(t)}findStickyState(e){const t=[];let i=e,s=0,n=this.getNextStickyNode(i,void 0,s);for(;n&&(t.push(n),s+=n.height,!(t.length<=this.stickyScrollMaxItemCount)||(i=this.getNextVisibleNode(n),i));)n=this.getNextStickyNode(i,n.node,s);const r=this.constrainStickyNodes(t);return r.length?new F(r):void 0}getNextVisibleNode(e){return this.getNodeAtHeight(e.position+e.height)}getNextStickyNode(e,t,i){const s=this.getAncestorUnderPrevious(e,t);if(s){if(s===e){if(!this.nodeIsUncollapsedParent(e))return;if(this.nodeTopAlignsWithStickyNodesBottom(e,i))return}return this.createStickyScrollNode(s,i)}}nodeTopAlignsWithStickyNodesBottom(e,t){const i=this.getNodeIndex(e),s=this.view.getElementTop(i),n=t;return this.view.scrollTop===s-n}createStickyScrollNode(e,t){const i=this.treeDelegate.getHeight(e),{startIndex:s,endIndex:n}=this.getNodeRange(e);return{node:e,position:this.calculateStickyNodePosition(n,t,i),height:i,startIndex:s,endIndex:n}}getAncestorUnderPrevious(e,t=void 0){let i=e,s=this.getParentNode(i);for(;s;){if(s===t)return i;i=s,s=this.getParentNode(i)}if(void 0===t)return i}calculateStickyNodePosition(e,t,i){let s=this.view.getRelativeTop(e);if(null===s&&this.view.firstVisibleIndex===e&&e+1<this.view.length){const t=this.treeDelegate.getHeight(this.view.element(e)),i=this.view.getRelativeTop(e+1);s=i?i-t/this.view.renderHeight:null}if(null===s)return t;const n=this.view.element(e),r=this.treeDelegate.getHeight(n),o=s*this.view.renderHeight+r;return t+i>o&&t<=o?o-i:t}constrainStickyNodes(e){if(0===e.length)return[];const t=this.view.renderHeight*this.maxWidgetViewRatio,i=e[e.length-1];if(e.length<=this.stickyScrollMaxItemCount&&i.position+i.height<=t)return e;const s=this.stickyScrollDelegate.constrainStickyScrollNodes(e,this.stickyScrollMaxItemCount,t);if(!s.length)return[];const n=s[s.length-1];if(s.length>this.stickyScrollMaxItemCount||n.position+n.height>t)throw new Error("stickyScrollDelegate violates constraints");return s}getParentNode(e){const t=this.model.getNodeLocation(e),i=this.model.getParentNodeLocation(t);return i?this.model.getNode(i):void 0}nodeIsUncollapsedParent(e){const t=this.model.getNodeLocation(e);return this.model.getListRenderCount(t)>1}getNodeIndex(e){const t=this.model.getNodeLocation(e);return this.model.getListIndex(t)}getNodeRange(e){const t=this.model.getNodeLocation(e),i=this.model.getListIndex(t);if(i<0)throw new Error("Node not found in tree");return{startIndex:i,endIndex:i+this.model.getListRenderCount(t)-1}}nodePositionTopBelowWidget(e){const t=[];let i=this.getParentNode(e);for(;i;)t.push(i),i=this.getParentNode(i);let s=0;for(let n=0;n<t.length&&n<this.stickyScrollMaxItemCount;n++)s+=this.treeDelegate.getHeight(t[n]);return s}domFocus(){this._widget.domFocus()}focusedLast(){return this._widget.focusedLast()}updateOptions(e={}){if(!e.stickyScrollMaxItemCount)return;const t=this.validateStickySettings(e);this.stickyScrollMaxItemCount!==t.stickyScrollMaxItemCount&&(this.stickyScrollMaxItemCount=t.stickyScrollMaxItemCount,this.update())}validateStickySettings(e){let t=7;return"number"===typeof e.stickyScrollMaxItemCount&&(t=Math.max(e.stickyScrollMaxItemCount,1)),{stickyScrollMaxItemCount:t}}}class B{constructor(e,t,i,s,r,o){this.view=t,this.tree=i,this.treeRenderers=s,this.treeDelegate=r,this.accessibilityProvider=o,this._previousElements=[],this._previousStateDisposables=new C.Cm,this._rootDomNode=(0,n.$)(".monaco-tree-sticky-container.empty"),e.appendChild(this._rootDomNode);const a=(0,n.$)(".monaco-tree-sticky-container-shadow");this._rootDomNode.appendChild(a),this.stickyScrollFocus=new W(this._rootDomNode,t),this.onDidChangeHasFocus=this.stickyScrollFocus.onDidChangeHasFocus,this.onContextMenu=this.stickyScrollFocus.onContextMenu}get height(){if(!this._previousState)return 0;const e=this._previousState.stickyNodes[this._previousState.count-1];return e.position+e.height}setState(e){const t=!!this._previousState&&this._previousState.count>0,i=!!e&&e.count>0;if(!t&&!i||t&&i&&this._previousState.equal(e))return;if(t!==i&&this.setVisible(i),!i)return this._previousState=void 0,this._previousElements=[],void this._previousStateDisposables.clear();const s=e.stickyNodes[e.count-1];if(this._previousState&&e.animationStateChanged(this._previousState))this._previousElements[this._previousState.count-1].style.top=`${s.position}px`;else{this._previousStateDisposables.clear();const t=Array(e.count);for(let i=e.count-1;i>=0;i--){const s=e.stickyNodes[i],{element:n,disposable:r}=this.createElement(s,i,e.count);t[i]=n,this._rootDomNode.appendChild(n),this._previousStateDisposables.add(r)}this.stickyScrollFocus.updateElements(t,e),this._previousElements=t}this._previousState=e,this._rootDomNode.style.height=`${s.position+s.height}px`}createElement(e,t,i){const s=e.startIndex,n=document.createElement("div");n.style.top=`${e.position}px`,!1!==this.tree.options.setRowHeight&&(n.style.height=`${e.height}px`),!1!==this.tree.options.setRowLineHeight&&(n.style.lineHeight=`${e.height}px`),n.classList.add("monaco-tree-sticky-row"),n.classList.add("monaco-list-row"),n.setAttribute("data-index",`${s}`),n.setAttribute("data-parity",s%2===0?"even":"odd"),n.setAttribute("id",this.view.getElementID(s));const r=this.setAccessibilityAttributes(n,e.node.element,t,i),o=this.treeDelegate.getTemplateId(e.node),a=this.treeRenderers.find((e=>e.templateId===o));if(!a)throw new Error(`No renderer found for template id ${o}`);let c=e.node;c===this.tree.getNode(this.tree.getNodeLocation(e.node))&&(c=new Proxy(e.node,{}));const l=a.renderTemplate(n);a.renderElement(c,e.startIndex,l,e.height);const h=(0,C.s)((()=>{r.dispose(),a.disposeElement(c,e.startIndex,l,e.height),a.disposeTemplate(l),n.remove()}));return{element:n,disposable:h}}setAccessibilityAttributes(e,t,i,s){if(!this.accessibilityProvider)return C.jG.None;this.accessibilityProvider.getSetSize&&e.setAttribute("aria-setsize",String(this.accessibilityProvider.getSetSize(t,i,s))),this.accessibilityProvider.getPosInSet&&e.setAttribute("aria-posinset",String(this.accessibilityProvider.getPosInSet(t,i))),this.accessibilityProvider.getRole&&e.setAttribute("role",this.accessibilityProvider.getRole(t)??"treeitem");const n=this.accessibilityProvider.getAriaLabel(t),r=n&&"string"!==typeof n?n:(0,y.lk)(n),o=(0,y.fm)((t=>{const i=t.readObservable(r);i?e.setAttribute("aria-label",i):e.removeAttribute("aria-label")}));"string"===typeof n||n&&e.setAttribute("aria-label",n.get());const a=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(t);return"number"===typeof a&&e.setAttribute("aria-level",`${a}`),e.setAttribute("aria-selected",String(!1)),o}setVisible(e){this._rootDomNode.classList.toggle("empty",!e),e||this.stickyScrollFocus.updateElements([],void 0)}domFocus(){this.stickyScrollFocus.domFocus()}focusedLast(){return this.stickyScrollFocus.focusedLast()}dispose(){this.stickyScrollFocus.dispose(),this._previousStateDisposables.dispose(),this._rootDomNode.remove()}}class W extends C.jG{get domHasFocus(){return this._domHasFocus}set domHasFocus(e){e!==this._domHasFocus&&(this._onDidChangeHasFocus.fire(e),this._domHasFocus=e)}constructor(e,t){super(),this.container=e,this.view=t,this.focusedIndex=-1,this.elements=[],this._onDidChangeHasFocus=new _.vl,this.onDidChangeHasFocus=this._onDidChangeHasFocus.event,this._onContextMenu=new _.vl,this.onContextMenu=this._onContextMenu.event,this._domHasFocus=!1,this._register((0,n.ko)(this.container,"focus",(()=>this.onFocus()))),this._register((0,n.ko)(this.container,"blur",(()=>this.onBlur()))),this._register(this.view.onDidFocus((()=>this.toggleStickyScrollFocused(!1)))),this._register(this.view.onKeyDown((e=>this.onKeyDown(e)))),this._register(this.view.onMouseDown((e=>this.onMouseDown(e)))),this._register(this.view.onContextMenu((e=>this.handleContextMenu(e))))}handleContextMenu(e){const t=e.browserEvent.target;if(!(0,c.Es)(t)&&!(0,c.xu)(t))return void(this.focusedLast()&&this.view.domFocus());if(!(0,n.kx)(e.browserEvent)){if(!this.state)throw new Error("Context menu should not be triggered when state is undefined");const t=this.state.stickyNodes.findIndex((t=>t.node.element===e.element?.element));if(-1===t)throw new Error("Context menu should not be triggered when element is not in sticky scroll widget");return this.container.focus(),void this.setFocus(t)}if(!this.state||this.focusedIndex<0)throw new Error("Context menu key should not be triggered when focus is not in sticky scroll widget");const i=this.state.stickyNodes[this.focusedIndex].node.element,s=this.elements[this.focusedIndex];this._onContextMenu.fire({element:i,anchor:s,browserEvent:e.browserEvent,isStickyScroll:!0})}onKeyDown(e){if(this.domHasFocus&&this.state)if("ArrowUp"===e.key)this.setFocusedElement(Math.max(0,this.focusedIndex-1)),e.preventDefault(),e.stopPropagation();else if("ArrowDown"===e.key||"ArrowRight"===e.key){if(this.focusedIndex>=this.state.count-1){const e=this.state.stickyNodes[this.state.count-1].startIndex+1;this.view.domFocus(),this.view.setFocus([e]),this.scrollNodeUnderWidget(e,this.state)}else this.setFocusedElement(this.focusedIndex+1);e.preventDefault(),e.stopPropagation()}}onMouseDown(e){const t=e.browserEvent.target;((0,c.Es)(t)||(0,c.xu)(t))&&(e.browserEvent.preventDefault(),e.browserEvent.stopPropagation())}updateElements(e,t){if(t&&0===t.count)throw new Error("Sticky scroll state must be undefined when there are no sticky nodes");if(t&&t.count!==e.length)throw new Error("Sticky scroll focus received illigel state");const i=this.focusedIndex;if(this.removeFocus(),this.elements=e,this.state=t,t){const e=(0,E.qE)(i,0,t.count-1);this.setFocus(e)}else this.domHasFocus&&this.view.domFocus();this.container.tabIndex=t?0:-1}setFocusedElement(e){const t=this.state;if(!t)throw new Error("Cannot set focus when state is undefined");if(this.setFocus(e),!(e<t.count-1)&&t.lastNodePartiallyVisible()){const i=t.stickyNodes[e];this.scrollNodeUnderWidget(i.endIndex+1,t)}}scrollNodeUnderWidget(e,t){const i=t.stickyNodes[t.count-1],s=t.count>1?t.stickyNodes[t.count-2]:void 0,n=this.view.getElementTop(e),r=s?s.position+s.height+i.height:i.height;this.view.scrollTop=n-r}domFocus(){if(!this.state)throw new Error("Cannot focus when state is undefined");this.container.focus()}focusedLast(){return!!this.state&&this.view.getHTMLElement().classList.contains("sticky-scroll-focused")}removeFocus(){-1!==this.focusedIndex&&(this.toggleElementFocus(this.elements[this.focusedIndex],!1),this.focusedIndex=-1)}setFocus(e){if(0>e)throw new Error("addFocus() can not remove focus");if(!this.state&&e>=0)throw new Error("Cannot set focus index when state is undefined");if(this.state&&e>=this.state.count)throw new Error("Cannot set focus index to an index that does not exist");const t=this.focusedIndex;t>=0&&this.toggleElementFocus(this.elements[t],!1),e>=0&&this.toggleElementFocus(this.elements[e],!0),this.focusedIndex=e}toggleElementFocus(e,t){this.toggleElementActiveFocus(e,t&&this.domHasFocus),this.toggleElementPassiveFocus(e,t)}toggleCurrentElementActiveFocus(e){-1!==this.focusedIndex&&this.toggleElementActiveFocus(this.elements[this.focusedIndex],e)}toggleElementActiveFocus(e,t){e.classList.toggle("focused",t)}toggleElementPassiveFocus(e,t){e.classList.toggle("passive-focused",t)}toggleStickyScrollFocused(e){this.view.getHTMLElement().classList.toggle("sticky-scroll-focused",e)}onFocus(){if(!this.state||0===this.elements.length)throw new Error("Cannot focus when state is undefined or elements are empty");this.domHasFocus=!0,this.toggleStickyScrollFocused(!0),this.toggleCurrentElementActiveFocus(!0),-1===this.focusedIndex&&this.setFocus(0)}onBlur(){this.domHasFocus=!1,this.toggleCurrentElementActiveFocus(!1)}dispose(){this.toggleStickyScrollFocused(!1),this._onDidChangeHasFocus.fire(!1),super.dispose()}}function V(e){let t=d.Lx.Unknown;return(0,n.XD)(e.browserEvent.target,"monaco-tl-twistie","monaco-tl-row")?t=d.Lx.Twistie:(0,n.XD)(e.browserEvent.target,"monaco-tl-contents","monaco-tl-row")?t=d.Lx.Element:(0,n.XD)(e.browserEvent.target,"monaco-tree-type-filter","monaco-list")&&(t=d.Lx.Filter),{browserEvent:e.browserEvent,element:e.element?e.element.element:null,target:t}}function z(e){const t=(0,c.Es)(e.browserEvent.target);return{element:e.element?e.element.element:null,browserEvent:e.browserEvent,anchor:e.anchor,isStickyScroll:t}}function G(e,t){t(e),e.children.forEach((e=>G(e,t)))}class j{get nodeSet(){return this._nodeSet||(this._nodeSet=this.createNodeSet()),this._nodeSet}constructor(e,t){this.getFirstViewElementWithTrait=e,this.identityProvider=t,this.nodes=[],this._onDidChange=new _.vl,this.onDidChange=this._onDidChange.event}set(e,t){!t?.__forceEvent&&(0,u.aI)(this.nodes,e)||this._set(e,!1,t)}_set(e,t,i){if(this.nodes=[...e],this.elements=void 0,this._nodeSet=void 0,!t){const e=this;this._onDidChange.fire({get elements(){return e.get()},browserEvent:i})}}get(){return this.elements||(this.elements=this.nodes.map((e=>e.element))),[...this.elements]}getNodes(){return this.nodes}has(e){return this.nodeSet.has(e)}onDidModelSplice({insertedNodes:e,deletedNodes:t}){if(!this.identityProvider){const e=this.createNodeSet(),i=t=>e.delete(t);return t.forEach((e=>G(e,i))),void this.set([...e.values()])}const i=new Set,s=e=>i.add(this.identityProvider.getId(e.element).toString());t.forEach((e=>G(e,s)));const n=new Map,r=e=>n.set(this.identityProvider.getId(e.element).toString(),e);e.forEach((e=>G(e,r)));const o=[];for(const a of this.nodes){const e=this.identityProvider.getId(a.element).toString();if(i.has(e)){const t=n.get(e);t&&t.visible&&o.push(t)}else o.push(a)}if(this.nodes.length>0&&0===o.length){const e=this.getFirstViewElementWithTrait();e&&o.push(e)}this._set(o,!0)}createNodeSet(){const e=new Set;for(const t of this.nodes)e.add(t);return e}}class K extends c.MH{constructor(e,t,i){super(e),this.tree=t,this.stickyScrollProvider=i}onViewPointer(e){if((0,c.Bm)(e.browserEvent.target)||(0,c.B6)(e.browserEvent.target)||(0,c.bm)(e.browserEvent.target))return;if(e.browserEvent.isHandledByList)return;const t=e.element;if(!t)return super.onViewPointer(e);if(this.isSelectionRangeChangeEvent(e)||this.isSelectionSingleChangeEvent(e))return super.onViewPointer(e);const i=e.browserEvent.target,s=i.classList.contains("monaco-tl-twistie")||i.classList.contains("monaco-icon-label")&&i.classList.contains("folder-icon")&&e.browserEvent.offsetX<16,n=(0,c.xu)(e.browserEvent.target);let r=!1;if(r=!!n||("function"===typeof this.tree.expandOnlyOnTwistieClick?this.tree.expandOnlyOnTwistieClick(t.element):!!this.tree.expandOnlyOnTwistieClick),n)this.handleStickyScrollMouseEvent(e,t);else{if(r&&!s&&2!==e.browserEvent.detail)return super.onViewPointer(e);if(!this.tree.expandOnDoubleClick&&2===e.browserEvent.detail)return super.onViewPointer(e)}if(t.collapsible&&(!n||s)){const i=this.tree.getNodeLocation(t),n=e.browserEvent.altKey;if(this.tree.setFocus([i]),this.tree.toggleCollapsed(i,n),s)return void(e.browserEvent.isHandledByList=!0)}n||super.onViewPointer(e)}handleStickyScrollMouseEvent(e,t){if((0,c.b$)(e.browserEvent.target)||(0,c.W0)(e.browserEvent.target))return;const i=this.stickyScrollProvider();if(!i)throw new Error("Sticky scroll controller not found");const s=this.list.indexOf(t),n=this.list.getElementTop(s),r=i.nodePositionTopBelowWidget(t);this.tree.scrollTop=n-r,this.list.domFocus(),this.list.setFocus([s]),this.list.setSelection([s])}onDoubleClick(e){!e.browserEvent.target.classList.contains("monaco-tl-twistie")&&this.tree.expandOnDoubleClick&&(e.browserEvent.isHandledByList||super.onDoubleClick(e))}onMouseDown(e){const t=e.browserEvent.target;(0,c.Es)(t)||(0,c.xu)(t)||super.onMouseDown(e)}onContextMenu(e){const t=e.browserEvent.target;(0,c.Es)(t)||(0,c.xu)(t)||super.onContextMenu(e)}}class Y extends c.B8{constructor(e,t,i,s,n,r,o,a){super(e,t,i,s,a),this.focusTrait=n,this.selectionTrait=r,this.anchorTrait=o}createMouseController(e){return new K(this,e.tree,e.stickyScrollProvider)}splice(e,t,i=[]){if(super.splice(e,t,i),0===i.length)return;const s=[],n=[];let r;i.forEach(((t,i)=>{this.focusTrait.has(t)&&s.push(e+i),this.selectionTrait.has(t)&&n.push(e+i),this.anchorTrait.has(t)&&(r=e+i)})),s.length>0&&super.setFocus((0,u.dM)([...super.getFocus(),...s])),n.length>0&&super.setSelection((0,u.dM)([...super.getSelection(),...n])),"number"===typeof r&&super.setAnchor(r)}setFocus(e,t,i=!1){super.setFocus(e,t),i||this.focusTrait.set(e.map((e=>this.element(e))),t)}setSelection(e,t,i=!1){super.setSelection(e,t),i||this.selectionTrait.set(e.map((e=>this.element(e))),t)}setAnchor(e,t=!1){super.setAnchor(e),t||("undefined"===typeof e?this.anchorTrait.set([]):this.anchorTrait.set([this.element(e)]))}}class q{get onDidScroll(){return this.view.onDidScroll}get onDidChangeFocus(){return this.eventBufferer.wrapEvent(this.focus.onDidChange)}get onDidChangeSelection(){return this.eventBufferer.wrapEvent(this.selection.onDidChange)}get onMouseDblClick(){return _.Jh.filter(_.Jh.map(this.view.onMouseDblClick,V),(e=>e.target!==d.Lx.Filter))}get onMouseOver(){return _.Jh.map(this.view.onMouseOver,V)}get onMouseOut(){return _.Jh.map(this.view.onMouseOut,V)}get onContextMenu(){return _.Jh.any(_.Jh.filter(_.Jh.map(this.view.onContextMenu,z),(e=>!e.isStickyScroll)),this.stickyScrollController?.onContextMenu??_.Jh.None)}get onPointer(){return _.Jh.map(this.view.onPointer,V)}get onKeyDown(){return this.view.onKeyDown}get onDidFocus(){return this.view.onDidFocus}get onDidChangeModel(){return _.Jh.signal(this.model.onDidSplice)}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get findMode(){return this.findController?.mode??I.Highlight}set findMode(e){this.findController&&(this.findController.mode=e)}get findMatchType(){return this.findController?.matchType??O.Fuzzy}set findMatchType(e){this.findController&&(this.findController.matchType=e)}get expandOnDoubleClick(){return"undefined"===typeof this._options.expandOnDoubleClick||this._options.expandOnDoubleClick}get expandOnlyOnTwistieClick(){return"undefined"===typeof this._options.expandOnlyOnTwistieClick||this._options.expandOnlyOnTwistieClick}get onDidDispose(){return this.view.onDidDispose}constructor(e,t,i,o,a={}){this._user=e,this._options=a,this.eventBufferer=new _.at,this.onDidChangeFindOpenState=_.Jh.None,this.onDidChangeStickyScrollFocused=_.Jh.None,this.disposables=new C.Cm,this._onWillRefilter=new _.vl,this.onWillRefilter=this._onWillRefilter.event,this._onDidUpdateOptions=new _.vl,this.treeDelegate=new x(i);const l=new _.Wj,h=new _.Wj,d=this.disposables.add(new k(h.event)),u=new f.db;this.renderers=o.map((e=>new A(e,(()=>this.model),l.event,d,u,a)));for(const s of this.renderers)this.disposables.add(s);let p;var m,v;a.keyboardNavigationLabelProvider&&(p=new N(this,a.keyboardNavigationLabelProvider,a.filter),a={...a,filter:p},this.disposables.add(p)),this.focus=new j((()=>this.view.getFocusedElements()[0]),a.identityProvider),this.selection=new j((()=>this.view.getSelectedElements()[0]),a.identityProvider),this.anchor=new j((()=>this.view.getAnchorElement()),a.identityProvider),this.view=new Y(e,t,this.treeDelegate,this.renderers,this.focus,this.selection,this.anchor,{...(m=()=>this.model,v=a,v&&{...v,identityProvider:v.identityProvider&&{getId:e=>v.identityProvider.getId(e.element)},dnd:v.dnd&&new T(m,v.dnd),multipleSelectionController:v.multipleSelectionController&&{isSelectionSingleChangeEvent:e=>v.multipleSelectionController.isSelectionSingleChangeEvent({...e,element:e.element}),isSelectionRangeChangeEvent:e=>v.multipleSelectionController.isSelectionRangeChangeEvent({...e,element:e.element})},accessibilityProvider:v.accessibilityProvider&&{...v.accessibilityProvider,getSetSize(e){const t=m(),i=t.getNodeLocation(e),s=t.getParentNodeLocation(i);return t.getNode(s).visibleChildrenCount},getPosInSet:e=>e.visibleChildIndex+1,isChecked:v.accessibilityProvider&&v.accessibilityProvider.isChecked?e=>v.accessibilityProvider.isChecked(e.element):void 0,getRole:v.accessibilityProvider&&v.accessibilityProvider.getRole?e=>v.accessibilityProvider.getRole(e.element):()=>"treeitem",getAriaLabel:e=>v.accessibilityProvider.getAriaLabel(e.element),getWidgetAriaLabel:()=>v.accessibilityProvider.getWidgetAriaLabel(),getWidgetRole:v.accessibilityProvider&&v.accessibilityProvider.getWidgetRole?()=>v.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:v.accessibilityProvider&&v.accessibilityProvider.getAriaLevel?e=>v.accessibilityProvider.getAriaLevel(e.element):e=>e.depth,getActiveDescendantId:v.accessibilityProvider.getActiveDescendantId&&(e=>v.accessibilityProvider.getActiveDescendantId(e.element))},keyboardNavigationLabelProvider:v.keyboardNavigationLabelProvider&&{...v.keyboardNavigationLabelProvider,getKeyboardNavigationLabel:e=>v.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e.element)}}),tree:this,stickyScrollProvider:()=>this.stickyScrollController}),this.model=this.createModel(e,this.view,a),l.input=this.model.onDidChangeCollapseState;const E=_.Jh.forEach(this.model.onDidSplice,(e=>{this.eventBufferer.bufferEvents((()=>{this.focus.onDidModelSplice(e),this.selection.onDidModelSplice(e)}))}),this.disposables);E((()=>null),null,this.disposables);const b=this.disposables.add(new _.vl),S=this.disposables.add(new g.ve(0));if(this.disposables.add(_.Jh.any(E,this.focus.onDidChange,this.selection.onDidChange)((()=>{S.trigger((()=>{const e=new Set;for(const t of this.focus.getNodes())e.add(t);for(const t of this.selection.getNodes())e.add(t);b.fire([...e.values()])}))}))),h.input=b.event,!1!==a.keyboardSupport){const e=_.Jh.chain(this.view.onKeyDown,(e=>e.filter((e=>!(0,c.B6)(e.target))).map((e=>new r.Z(e)))));_.Jh.chain(e,(e=>e.filter((e=>15===e.keyCode))))(this.onLeftArrow,this,this.disposables),_.Jh.chain(e,(e=>e.filter((e=>17===e.keyCode))))(this.onRightArrow,this,this.disposables),_.Jh.chain(e,(e=>e.filter((e=>10===e.keyCode))))(this.onSpace,this,this.disposables)}if((a.findWidgetEnabled??1)&&a.keyboardNavigationLabelProvider&&a.contextViewProvider){const e=this.options.findWidgetStyles?{styles:this.options.findWidgetStyles}:void 0;this.findController=new D(this,this.model,this.view,p,a.contextViewProvider,e),this.focusNavigationFilter=e=>this.findController.shouldAllowFocus(e),this.onDidChangeFindOpenState=this.findController.onDidChangeOpenState,this.disposables.add(this.findController),this.onDidChangeFindMode=this.findController.onDidChangeMode,this.onDidChangeFindMatchType=this.findController.onDidChangeMatchType}else this.onDidChangeFindMode=_.Jh.None,this.onDidChangeFindMatchType=_.Jh.None;a.enableStickyScroll&&(this.stickyScrollController=new H(this,this.model,this.view,this.renderers,this.treeDelegate,a),this.onDidChangeStickyScrollFocused=this.stickyScrollController.onDidChangeHasFocus),this.styleElement=(0,n.li)(this.view.getHTMLElement()),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===s.Always)}updateOptions(e={}){this._options={...this._options,...e};for(const t of this.renderers)t.updateOptions(e);this.view.updateOptions(this._options),this.findController?.updateOptions(e),this.updateStickyScroll(e),this._onDidUpdateOptions.fire(this._options),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===s.Always)}get options(){return this._options}updateStickyScroll(e){!this.stickyScrollController&&this._options.enableStickyScroll?(this.stickyScrollController=new H(this,this.model,this.view,this.renderers,this.treeDelegate,this._options),this.onDidChangeStickyScrollFocused=this.stickyScrollController.onDidChangeHasFocus):this.stickyScrollController&&!this._options.enableStickyScroll&&(this.onDidChangeStickyScrollFocused=_.Jh.None,this.stickyScrollController.dispose(),this.stickyScrollController=void 0),this.stickyScrollController?.updateOptions(e)}getHTMLElement(){return this.view.getHTMLElement()}get scrollTop(){return this.view.scrollTop}set scrollTop(e){this.view.scrollTop=e}get scrollHeight(){return this.view.scrollHeight}get renderHeight(){return this.view.renderHeight}get ariaLabel(){return this.view.ariaLabel}set ariaLabel(e){this.view.ariaLabel=e}domFocus(){this.stickyScrollController?.focusedLast()?this.stickyScrollController.domFocus():this.view.domFocus()}layout(e,t){this.view.layout(e,t),(0,b.Et)(t)&&this.findController?.layout(t)}style(e){const t=`.${this.view.domId}`,i=[];e.treeIndentGuidesStroke&&(i.push(`.monaco-list${t}:hover .monaco-tl-indent > .indent-guide, .monaco-list${t}.always .monaco-tl-indent > .indent-guide { border-color: ${e.treeInactiveIndentGuidesStroke}; }`),i.push(`.monaco-list${t} .monaco-tl-indent > .indent-guide.active { border-color: ${e.treeIndentGuidesStroke}; }`));const s=e.treeStickyScrollBackground??e.listBackground;s&&(i.push(`.monaco-list${t} .monaco-scrollable-element .monaco-tree-sticky-container { background-color: ${s}; }`),i.push(`.monaco-list${t} .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-row { background-color: ${s}; }`)),e.treeStickyScrollBorder&&i.push(`.monaco-list${t} .monaco-scrollable-element .monaco-tree-sticky-container { border-bottom: 1px solid ${e.treeStickyScrollBorder}; }`),e.treeStickyScrollShadow&&i.push(`.monaco-list${t} .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-container-shadow { box-shadow: ${e.treeStickyScrollShadow} 0 6px 6px -6px inset; height: 3px; }`),e.listFocusForeground&&(i.push(`.monaco-list${t}.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container:focus .monaco-list-row.focused { color: ${e.listFocusForeground}; }`),i.push(`.monaco-list${t}:not(.sticky-scroll-focused) .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.focused { color: inherit; }`));const r=(0,n.gI)(e.listFocusAndSelectionOutline,(0,n.gI)(e.listSelectionOutline,e.listFocusOutline??""));r&&(i.push(`.monaco-list${t}.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container:focus .monaco-list-row.focused.selected { outline: 1px solid ${r}; outline-offset: -1px;}`),i.push(`.monaco-list${t}:not(.sticky-scroll-focused) .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.focused.selected { outline: inherit;}`)),e.listFocusOutline&&(i.push(`.monaco-list${t}.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container:focus .monaco-list-row.focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }`),i.push(`.monaco-list${t}:not(.sticky-scroll-focused) .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.focused { outline: inherit; }`),i.push(`.monaco-workbench.context-menu-visible .monaco-list${t}.last-focused.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.passive-focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }`),i.push(`.monaco-workbench.context-menu-visible .monaco-list${t}.last-focused.sticky-scroll-focused .monaco-list-rows .monaco-list-row.focused { outline: inherit; }`),i.push(`.monaco-workbench.context-menu-visible .monaco-list${t}.last-focused:not(.sticky-scroll-focused) .monaco-tree-sticky-container .monaco-list-rows .monaco-list-row.focused { outline: inherit; }`)),this.styleElement.textContent=i.join("\n"),this.view.style(e)}getParentElement(e){const t=this.model.getParentNodeLocation(e);return this.model.getNode(t).element}getFirstElementChild(e){return this.model.getFirstElementChild(e)}getNode(e){return this.model.getNode(e)}getNodeLocation(e){return this.model.getNodeLocation(e)}collapse(e,t=!1){return this.model.setCollapsed(e,!0,t)}expand(e,t=!1){return this.model.setCollapsed(e,!1,t)}toggleCollapsed(e,t=!1){return this.model.setCollapsed(e,void 0,t)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,t){return this.model.setCollapsible(e,t)}isCollapsed(e){return this.model.isCollapsed(e)}refilter(){this._onWillRefilter.fire(void 0),this.model.refilter()}setSelection(e,t){this.eventBufferer.bufferEvents((()=>{const i=e.map((e=>this.model.getNode(e)));this.selection.set(i,t);const s=e.map((e=>this.model.getListIndex(e))).filter((e=>e>-1));this.view.setSelection(s,t,!0)}))}getSelection(){return this.selection.get()}setFocus(e,t){this.eventBufferer.bufferEvents((()=>{const i=e.map((e=>this.model.getNode(e)));this.focus.set(i,t);const s=e.map((e=>this.model.getListIndex(e))).filter((e=>e>-1));this.view.setFocus(s,t,!0)}))}focusNext(e=1,t=!1,i,s=((0,n.kx)(i)&&i.altKey?void 0:this.focusNavigationFilter)){this.view.focusNext(e,t,i,s)}focusPrevious(e=1,t=!1,i,s=((0,n.kx)(i)&&i.altKey?void 0:this.focusNavigationFilter)){this.view.focusPrevious(e,t,i,s)}focusNextPage(e,t=((0,n.kx)(e)&&e.altKey?void 0:this.focusNavigationFilter)){return this.view.focusNextPage(e,t)}focusPreviousPage(e,t=((0,n.kx)(e)&&e.altKey?void 0:this.focusNavigationFilter)){return this.view.focusPreviousPage(e,t,(()=>this.stickyScrollController?.height??0))}focusLast(e,t=((0,n.kx)(e)&&e.altKey?void 0:this.focusNavigationFilter)){this.view.focusLast(e,t)}focusFirst(e,t=((0,n.kx)(e)&&e.altKey?void 0:this.focusNavigationFilter)){this.view.focusFirst(e,t)}getFocus(){return this.focus.get()}reveal(e,t){this.model.expandTo(e);const i=this.model.getListIndex(e);if(-1!==i)if(this.stickyScrollController){const s=this.stickyScrollController.nodePositionTopBelowWidget(this.getNode(e));this.view.reveal(i,t,s)}else this.view.reveal(i,t)}onLeftArrow(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(0===t.length)return;const i=t[0],s=this.model.getNodeLocation(i);if(!this.model.setCollapsed(s,!0)){const e=this.model.getParentNodeLocation(s);if(!e)return;const t=this.model.getListIndex(e);this.view.reveal(t),this.view.setFocus([t])}}onRightArrow(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(0===t.length)return;const i=t[0],s=this.model.getNodeLocation(i);if(!this.model.setCollapsed(s,!1)){if(!i.children.some((e=>e.visible)))return;const[e]=this.view.getFocus(),t=e+1;this.view.reveal(t),this.view.setFocus([t])}}onSpace(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(0===t.length)return;const i=t[0],s=this.model.getNodeLocation(i),n=e.browserEvent.altKey;this.model.setCollapsed(s,void 0,n)}dispose(){(0,C.AS)(this.disposables),this.stickyScrollController?.dispose(),this.view.dispose()}}},37472:(e,t,i)=>{"use strict";i.d(t,{G6:()=>g,Mn:()=>d,iZ:()=>h});var s=i(84565),n=i(25890),r=i(90766),o=i(44759),a=i(83993),c=i(41234),l=i(42522);function h(e){return"object"===typeof e&&"visibility"in e&&"data"in e}function d(e){switch(e){case!0:return 1;case!1:return 0;default:return e}}function u(e){return"boolean"===typeof e.collapsible}class g{constructor(e,t,i,s={}){this.user=e,this.list=t,this.rootRef=[],this.eventBufferer=new c.at,this._onDidChangeCollapseState=new c.vl,this.onDidChangeCollapseState=this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event),this._onDidChangeRenderNodeCount=new c.vl,this.onDidChangeRenderNodeCount=this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event),this._onDidSplice=new c.vl,this.onDidSplice=this._onDidSplice.event,this.refilterDelayer=new r.ve(o.h),this.collapseByDefault="undefined"!==typeof s.collapseByDefault&&s.collapseByDefault,this.allowNonCollapsibleParents=s.allowNonCollapsibleParents??!1,this.filter=s.filter,this.autoExpandSingleChildren="undefined"!==typeof s.autoExpandSingleChildren&&s.autoExpandSingleChildren,this.root={parent:void 0,element:i,children:[],depth:0,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:!1,collapsed:!1,renderNodeCount:0,visibility:1,visible:!0,filterData:void 0}}splice(e,t,i=l.f.empty(),n={}){if(0===e.length)throw new s.jh(this.user,"Invalid tree location");n.diffIdentityProvider?this.spliceSmart(n.diffIdentityProvider,e,t,i,n):this.spliceSimple(e,t,i,n)}spliceSmart(e,t,i,s=l.f.empty(),n,r=n.diffDepth??0){const{parentNode:o}=this.getParentNodeWithListIndex(t);if(!o.lastDiffIds)return this.spliceSimple(t,i,s,n);const c=[...s],h=t[t.length-1],d=new a.uP({getElements:()=>o.lastDiffIds},{getElements:()=>[...o.children.slice(0,h),...c,...o.children.slice(h+i)].map((t=>e.getId(t.element).toString()))}).ComputeDiff(!1);if(d.quitEarly)return o.lastDiffIds=void 0,this.spliceSimple(t,i,c,n);const u=t.slice(0,-1),g=(t,i,s)=>{if(r>0)for(let o=0;o<s;o++)t--,i--,this.spliceSmart(e,[...u,t,0],Number.MAX_SAFE_INTEGER,c[i].children,n,r-1)};let p=Math.min(o.children.length,h+i),m=c.length;for(const a of d.changes.sort(((e,t)=>t.originalStart-e.originalStart)))g(p,m,p-(a.originalStart+a.originalLength)),p=a.originalStart,m=a.modifiedStart-h,this.spliceSimple([...u,p],a.originalLength,l.f.slice(c,m,m+a.modifiedLength),n);g(p,m,p)}spliceSimple(e,t,i=l.f.empty(),{onDidCreateNode:s,onDidDeleteNode:r,diffIdentityProvider:o}){const{parentNode:a,listIndex:c,revealed:h,visible:d}=this.getParentNodeWithListIndex(e),u=[],g=l.f.map(i,(e=>this.createTreeNode(e,a,a.visible?1:0,h,u,s))),p=e[e.length-1];let m=0;for(let n=p;n>=0&&n<a.children.length;n--){const e=a.children[n];if(e.visible){m=e.visibleChildIndex;break}}const f=[];let _=0,v=0;for(const n of g)f.push(n),v+=n.renderNodeCount,n.visible&&(n.visibleChildIndex=m+_++);const C=(0,n.V4)(a.children,p,t,f);o?a.lastDiffIds?(0,n.V4)(a.lastDiffIds,p,t,f.map((e=>o.getId(e.element).toString()))):a.lastDiffIds=a.children.map((e=>o.getId(e.element).toString())):a.lastDiffIds=void 0;let E=0;for(const n of C)n.visible&&E++;if(0!==E)for(let n=p+f.length;n<a.children.length;n++){const e=a.children[n];e.visible&&(e.visibleChildIndex-=E)}if(a.visibleChildrenCount+=_-E,h&&d){const e=C.reduce(((e,t)=>e+(t.visible?t.renderNodeCount:0)),0);this._updateAncestorsRenderNodeCount(a,v-e),this.list.splice(c,e,u)}if(C.length>0&&r){const e=t=>{r(t),t.children.forEach(e)};C.forEach(e)}this._onDidSplice.fire({insertedNodes:f,deletedNodes:C});let b=a;for(;b;){if(2===b.visibility){this.refilterDelayer.trigger((()=>this.refilter()));break}b=b.parent}}rerender(e){if(0===e.length)throw new s.jh(this.user,"Invalid tree location");const{node:t,listIndex:i,revealed:n}=this.getTreeNodeWithListIndex(e);t.visible&&n&&this.list.splice(i,1,[t])}has(e){return this.hasTreeNode(e)}getListIndex(e){const{listIndex:t,visible:i,revealed:s}=this.getTreeNodeWithListIndex(e);return i&&s?t:-1}getListRenderCount(e){return this.getTreeNode(e).renderNodeCount}isCollapsible(e){return this.getTreeNode(e).collapsible}setCollapsible(e,t){const i=this.getTreeNode(e);"undefined"===typeof t&&(t=!i.collapsible);const s={collapsible:t};return this.eventBufferer.bufferEvents((()=>this._setCollapseState(e,s)))}isCollapsed(e){return this.getTreeNode(e).collapsed}setCollapsed(e,t,i){const s=this.getTreeNode(e);"undefined"===typeof t&&(t=!s.collapsed);const n={collapsed:t,recursive:i||!1};return this.eventBufferer.bufferEvents((()=>this._setCollapseState(e,n)))}_setCollapseState(e,t){const{node:i,listIndex:s,revealed:n}=this.getTreeNodeWithListIndex(e),r=this._setListNodeCollapseState(i,s,n,t);if(i!==this.root&&this.autoExpandSingleChildren&&r&&!u(t)&&i.collapsible&&!i.collapsed&&!t.recursive){let s=-1;for(let e=0;e<i.children.length;e++){if(i.children[e].visible){if(s>-1){s=-1;break}s=e}}s>-1&&this._setCollapseState([...e,s],t)}return r}_setListNodeCollapseState(e,t,i,s){const n=this._setNodeCollapseState(e,s,!1);if(!i||!e.visible||!n)return n;const r=e.renderNodeCount,o=this.updateNodeAfterCollapseChange(e),a=r-(-1===t?0:1);return this.list.splice(t+1,a,o.slice(1)),n}_setNodeCollapseState(e,t,i){let s;if(e===this.root?s=!1:(u(t)?(s=e.collapsible!==t.collapsible,e.collapsible=t.collapsible):e.collapsible?(s=e.collapsed!==t.collapsed,e.collapsed=t.collapsed):s=!1,s&&this._onDidChangeCollapseState.fire({node:e,deep:i})),!u(t)&&t.recursive)for(const n of e.children)s=this._setNodeCollapseState(n,t,!0)||s;return s}expandTo(e){this.eventBufferer.bufferEvents((()=>{let t=this.getTreeNode(e);for(;t.parent;)t=t.parent,e=e.slice(0,e.length-1),t.collapsed&&this._setCollapseState(e,{collapsed:!1,recursive:!1})}))}refilter(){const e=this.root.renderNodeCount,t=this.updateNodeAfterFilterChange(this.root);this.list.splice(0,e,t),this.refilterDelayer.cancel()}createTreeNode(e,t,i,s,n,r){const o={parent:t,element:e.element,children:[],depth:t.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:"boolean"===typeof e.collapsible?e.collapsible:"undefined"!==typeof e.collapsed,collapsed:"undefined"===typeof e.collapsed?this.collapseByDefault:e.collapsed,renderNodeCount:1,visibility:1,visible:!0,filterData:void 0},a=this._filterNode(o,i);o.visibility=a,s&&n.push(o);const c=e.children||l.f.empty(),h=s&&0!==a&&!o.collapsed;let d=0,u=1;for(const l of c){const e=this.createTreeNode(l,o,a,h,n,r);o.children.push(e),u+=e.renderNodeCount,e.visible&&(e.visibleChildIndex=d++)}return this.allowNonCollapsibleParents||(o.collapsible=o.collapsible||o.children.length>0),o.visibleChildrenCount=d,o.visible=2===a?d>0:1===a,o.visible?o.collapsed||(o.renderNodeCount=u):(o.renderNodeCount=0,s&&n.pop()),r?.(o),o}updateNodeAfterCollapseChange(e){const t=e.renderNodeCount,i=[];return this._updateNodeAfterCollapseChange(e,i),this._updateAncestorsRenderNodeCount(e.parent,i.length-t),i}_updateNodeAfterCollapseChange(e,t){if(!1===e.visible)return 0;if(t.push(e),e.renderNodeCount=1,!e.collapsed)for(const i of e.children)e.renderNodeCount+=this._updateNodeAfterCollapseChange(i,t);return this._onDidChangeRenderNodeCount.fire(e),e.renderNodeCount}updateNodeAfterFilterChange(e){const t=e.renderNodeCount,i=[];return this._updateNodeAfterFilterChange(e,e.visible?1:0,i),this._updateAncestorsRenderNodeCount(e.parent,i.length-t),i}_updateNodeAfterFilterChange(e,t,i,s=!0){let n;if(e!==this.root){if(n=this._filterNode(e,t),0===n)return e.visible=!1,e.renderNodeCount=0,!1;s&&i.push(e)}const r=i.length;e.renderNodeCount=e===this.root?0:1;let o=!1;if(e.collapsed&&0===n)e.visibleChildrenCount=0;else{let t=0;for(const r of e.children)o=this._updateNodeAfterFilterChange(r,n,i,s&&!e.collapsed)||o,r.visible&&(r.visibleChildIndex=t++);e.visibleChildrenCount=t}return e!==this.root&&(e.visible=2===n?o:1===n,e.visibility=n),e.visible?e.collapsed||(e.renderNodeCount+=i.length-r):(e.renderNodeCount=0,s&&i.pop()),this._onDidChangeRenderNodeCount.fire(e),e.visible}_updateAncestorsRenderNodeCount(e,t){if(0!==t)for(;e;)e.renderNodeCount+=t,this._onDidChangeRenderNodeCount.fire(e),e=e.parent}_filterNode(e,t){const i=this.filter?this.filter.filter(e.element,t):1;return"boolean"===typeof i?(e.filterData=void 0,i?1:0):h(i)?(e.filterData=i.data,d(i.visibility)):(e.filterData=void 0,d(i))}hasTreeNode(e,t=this.root){if(!e||0===e.length)return!0;const[i,...s]=e;return!(i<0||i>t.children.length)&&this.hasTreeNode(s,t.children[i])}getTreeNode(e,t=this.root){if(!e||0===e.length)return t;const[i,...n]=e;if(i<0||i>t.children.length)throw new s.jh(this.user,"Invalid tree location");return this.getTreeNode(n,t.children[i])}getTreeNodeWithListIndex(e){if(0===e.length)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};const{parentNode:t,listIndex:i,revealed:n,visible:r}=this.getParentNodeWithListIndex(e),o=e[e.length-1];if(o<0||o>t.children.length)throw new s.jh(this.user,"Invalid tree location");const a=t.children[o];return{node:a,listIndex:i,revealed:n,visible:r&&a.visible}}getParentNodeWithListIndex(e,t=this.root,i=0,n=!0,r=!0){const[o,...a]=e;if(o<0||o>t.children.length)throw new s.jh(this.user,"Invalid tree location");for(let s=0;s<o;s++)i+=t.children[s].renderNodeCount;return n=n&&!t.collapsed,r=r&&t.visible,0===a.length?{parentNode:t,listIndex:i,revealed:n,visible:r}:this.getParentNodeWithListIndex(a,t.children[o],i+1,n,r)}getNode(e=[]){return this.getTreeNode(e)}getNodeLocation(e){const t=[];let i=e;for(;i.parent;)t.push(i.parent.children.indexOf(i)),i=i.parent;return t.reverse()}getParentNodeLocation(e){return 0===e.length?void 0:1===e.length?[]:(0,n.bS)(e)[0]}getFirstElementChild(e){const t=this.getTreeNode(e);if(0!==t.children.length)return t.children[0].element}}},84565:(e,t,i)=>{"use strict";var s,n;i.d(t,{Lx:()=>n,Yo:()=>s,jh:()=>r,y2:()=>o}),function(e){e[e.Expanded=0]="Expanded",e[e.Collapsed=1]="Collapsed",e[e.PreserveOrExpanded=2]="PreserveOrExpanded",e[e.PreserveOrCollapsed=3]="PreserveOrCollapsed"}(s||(s={})),function(e){e[e.Unknown=0]="Unknown",e[e.Twistie=1]="Twistie",e[e.Element=2]="Element",e[e.Filter=3]="Filter"}(n||(n={}));class r extends Error{constructor(e,t){super(`TreeError [${e}] ${t}`)}}class o{constructor(e){this.fn=e,this._map=new WeakMap}map(e){let t=this._map.get(e);return t||(t=this.fn(e),this._map.set(e,t)),t}}},17390:(e,t,i)=>{"use strict";i.d(t,{x:()=>c});var s=i(8597),n=i(72962),r=i(47358),o=i(25154),a=i(5662);class c extends a.jG{onclick(e,t){this._register(s.ko(e,s.Bx.CLICK,(i=>t(new r.P(s.zk(e),i)))))}onmousedown(e,t){this._register(s.ko(e,s.Bx.MOUSE_DOWN,(i=>t(new r.P(s.zk(e),i)))))}onmouseover(e,t){this._register(s.ko(e,s.Bx.MOUSE_OVER,(i=>t(new r.P(s.zk(e),i)))))}onmouseleave(e,t){this._register(s.ko(e,s.Bx.MOUSE_LEAVE,(i=>t(new r.P(s.zk(e),i)))))}onkeydown(e,t){this._register(s.ko(e,s.Bx.KEY_DOWN,(e=>t(new n.Z(e)))))}onkeyup(e,t){this._register(s.ko(e,s.Bx.KEY_UP,(e=>t(new n.Z(e)))))}oninput(e,t){this._register(s.ko(e,s.Bx.INPUT,t))}onblur(e,t){this._register(s.ko(e,s.Bx.BLUR,t))}onfocus(e,t){this._register(s.ko(e,s.Bx.FOCUS,t))}ignoreGesture(e){return o.q.ignoreTarget(e)}}},25893:(e,t,i)=>{"use strict";function s(e,t){const i=e;"number"!==typeof i.vscodeWindowId&&Object.defineProperty(i,"vscodeWindowId",{get:()=>t})}i.d(t,{G:()=>n,y:()=>s});const n=window},36921:(e,t,i)=>{"use strict";i.d(t,{HJ:()=>h,LN:()=>a,YH:()=>l,ih:()=>d,rc:()=>o,wv:()=>c});var s=i(41234),n=i(5662),r=i(78209);class o extends n.jG{constructor(e,t="",i="",n=!0,r){super(),this._onDidChange=this._register(new s.vl),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=e,this._label=t,this._cssClass=i,this._enabled=n,this._actionCallback=r}get id(){return this._id}get label(){return this._label}set label(e){this._setLabel(e)}_setLabel(e){this._label!==e&&(this._label=e,this._onDidChange.fire({label:e}))}get tooltip(){return this._tooltip||""}set tooltip(e){this._setTooltip(e)}_setTooltip(e){this._tooltip!==e&&(this._tooltip=e,this._onDidChange.fire({tooltip:e}))}get class(){return this._cssClass}set class(e){this._setClass(e)}_setClass(e){this._cssClass!==e&&(this._cssClass=e,this._onDidChange.fire({class:e}))}get enabled(){return this._enabled}set enabled(e){this._setEnabled(e)}_setEnabled(e){this._enabled!==e&&(this._enabled=e,this._onDidChange.fire({enabled:e}))}get checked(){return this._checked}set checked(e){this._setChecked(e)}_setChecked(e){this._checked!==e&&(this._checked=e,this._onDidChange.fire({checked:e}))}async run(e,t){this._actionCallback&&await this._actionCallback(e)}}class a extends n.jG{constructor(){super(...arguments),this._onWillRun=this._register(new s.vl),this.onWillRun=this._onWillRun.event,this._onDidRun=this._register(new s.vl),this.onDidRun=this._onDidRun.event}async run(e,t){if(!e.enabled)return;let i;this._onWillRun.fire({action:e});try{await this.runAction(e,t)}catch(s){i=s}this._onDidRun.fire({action:e,error:i})}async runAction(e,t){await e.run(t)}}class c{constructor(){this.id=c.ID,this.label="",this.tooltip="",this.class="separator",this.enabled=!1,this.checked=!1}static join(...e){let t=[];for(const i of e)i.length&&(t=t.length?[...t,new c,...i]:i);return t}static{this.ID="vs.actions.separator"}async run(){}}class l{get actions(){return this._actions}constructor(e,t,i,s){this.tooltip="",this.enabled=!0,this.checked=void 0,this.id=e,this.label=t,this.class=s,this._actions=i}async run(){}}class h extends o{static{this.ID="vs.actions.empty"}constructor(){super(h.ID,r.kg("submenu.empty","(empty)"),void 0,!1)}}function d(e){return{id:e.id,label:e.label,tooltip:e.tooltip??e.label,class:e.class,enabled:e.enabled??!0,checked:e.checked,run:async(...t)=>e.run(...t)}}},25890:(e,t,i)=>{"use strict";function s(e,t=0){return e[e.length-(1+t)]}function n(e){if(0===e.length)throw new Error("Invalid tail call");return[e.slice(0,e.length-1),e[e.length-1]]}function r(e,t,i=(e,t)=>e===t){if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(let s=0,n=e.length;s<n;s++)if(!i(e[s],t[s]))return!1;return!0}function o(e,t){const i=e.length-1;t<i&&(e[t]=e[i]),e.pop()}function a(e,t,i){return function(e,t){let i=0,s=e-1;for(;i<=s;){const e=(i+s)/2|0,n=t(e);if(n<0)i=e+1;else{if(!(n>0))return e;s=e-1}}return-(i+1)}(e.length,(s=>i(e[s],t)))}function c(e,t,i){if((e|=0)>=t.length)throw new TypeError("invalid index");const s=t[Math.floor(t.length*Math.random())],n=[],r=[],o=[];for(const a of t){const e=i(a,s);e<0?n.push(a):e>0?r.push(a):o.push(a)}return e<n.length?c(e,n,i):e<n.length+o.length?o[0]:c(e-(n.length+o.length),r,i)}function l(e,t){const i=[];let s;for(const n of e.slice(0).sort(t))s&&0===t(s[0],n)?s.push(n):(s=[n],i.push(s));return i}function*h(e,t){let i,s;for(const n of e)void 0!==s&&t(s,n)?i.push(n):(i&&(yield i),i=[n]),s=n;i&&(yield i)}function d(e,t){for(let i=0;i<=e.length;i++)t(0===i?void 0:e[i-1],i===e.length?void 0:e[i])}function u(e,t){for(let i=0;i<e.length;i++)t(0===i?void 0:e[i-1],e[i],i+1===e.length?void 0:e[i+1])}function g(e){return e.filter((e=>!!e))}function p(e){let t=0;for(let i=0;i<e.length;i++)e[i]&&(e[t]=e[i],t+=1);e.length=t}function m(e){return!Array.isArray(e)||0===e.length}function f(e){return Array.isArray(e)&&e.length>0}function _(e,t=e=>e){const i=new Set;return e.filter((e=>{const s=t(e);return!i.has(s)&&(i.add(s),!0)}))}function v(e,t){return e.length>0?e[0]:t}function C(e,t){let i="number"===typeof t?e:0;"number"===typeof t?i=e:(i=0,t=e);const s=[];if(i<=t)for(let n=i;n<t;n++)s.push(n);else for(let n=i;n>t;n--)s.push(n);return s}function E(e,t,i){const s=e.slice(0,t),n=e.slice(t);return s.concat(i,n)}function b(e,t){const i=e.indexOf(t);i>-1&&(e.splice(i,1),e.unshift(t))}function S(e,t){const i=e.indexOf(t);i>-1&&(e.splice(i,1),e.push(t))}function y(e,t){for(const i of t)e.push(i)}function w(e){return Array.isArray(e)?e:[e]}function R(e,t,i,s){const n=L(e,t);let r=e.splice(n,i);return void 0===r&&(r=[]),function(e,t,i){const s=L(e,t),n=e.length,r=i.length;e.length=n+r;for(let o=n-1;o>=s;o--)e[o+r]=e[o];for(let o=0;o<r;o++)e[o+s]=i[o]}(e,n,s),r}function L(e,t){return t<0?Math.max(t+e.length,0):Math.min(t,e.length)}var T;function x(e,t){return(i,s)=>t(e(i),e(s))}function k(...e){return(t,i)=>{for(const s of e){const e=s(t,i);if(!T.isNeitherLessOrGreaterThan(e))return e}return T.neitherLessOrGreaterThan}}i.d(t,{$z:()=>l,Ct:()=>m,E4:()=>y,EI:()=>f,El:()=>a,Fy:()=>v,Hw:()=>I,RT:()=>s,SK:()=>p,SO:()=>c,TS:()=>N,U9:()=>A,UH:()=>o,V4:()=>R,VE:()=>x,Yc:()=>g,_A:()=>b,_j:()=>w,aI:()=>r,bS:()=>n,c1:()=>D,dM:()=>_,j3:()=>O,kj:()=>u,n:()=>h,nH:()=>k,nK:()=>E,pN:()=>d,r7:()=>S,t9:()=>M,y1:()=>C}),function(e){e.isLessThan=function(e){return e<0},e.isLessThanOrEqual=function(e){return e<=0},e.isGreaterThan=function(e){return e>0},e.isNeitherLessOrGreaterThan=function(e){return 0===e},e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0}(T||(T={}));const A=(e,t)=>e-t,N=(e,t)=>A(e?1:0,t?1:0);function I(e){return(t,i)=>-e(t,i)}class O{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t<this.items.length&&e(this.items[t]);)t++;const i=t===this.firstIdx?null:this.items.slice(this.firstIdx,t);return this.firstIdx=t,i}takeFromEndWhile(e){let t=this.lastIdx;for(;t>=0&&e(this.items[t]);)t--;const i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(0!==this.length)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class D{static{this.empty=new D((e=>{}))}constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate((t=>(e.push(t),!0))),e}filter(e){return new D((t=>this.iterate((i=>!e(i)||t(i)))))}map(e){return new D((t=>this.iterate((i=>t(e(i))))))}findLast(e){let t;return this.iterate((i=>(e(i)&&(t=i),!0))),t}findLastMaxBy(e){let t,i=!0;return this.iterate((s=>((i||T.isGreaterThan(e(s,t)))&&(i=!1,t=s),!0))),t}}class M{constructor(e){this._indexMap=e}static createSortPermutation(e,t){const i=Array.from(e.keys()).sort(((i,s)=>t(e[i],e[s])));return new M(i)}apply(e){return e.map(((t,i)=>e[this._indexMap[i]]))}inverse(){const e=this._indexMap.slice();for(let t=0;t<this._indexMap.length;t++)e[this._indexMap[t]]=t;return new M(e)}}},46041:(e,t,i)=>{"use strict";function s(e,t){const i=function(e,t,i=e.length-1){for(let s=i;s>=0;s--){if(t(e[s]))return s}return-1}(e,t);if(-1!==i)return e[i]}function n(e,t){const i=r(e,t);return-1===i?void 0:e[i]}function r(e,t,i=0,s=e.length){let n=i,r=s;for(;n<r;){const i=Math.floor((n+r)/2);t(e[i])?n=i+1:r=i}return n-1}function o(e,t){const i=a(e,t);return i===e.length?void 0:e[i]}function a(e,t,i=0,s=e.length){let n=i,r=s;for(;n<r;){const i=Math.floor((n+r)/2);t(e[i])?r=i:n=i+1}return n}i.d(t,{Cn:()=>l,TM:()=>u,Uk:()=>s,XP:()=>o,hw:()=>a,iM:()=>r,kh:()=>d,lx:()=>n,oH:()=>g,ot:()=>h,vJ:()=>c});class c{static{this.assertInvariants=!1}constructor(e){this._array=e,this._findLastMonotonousLastIdx=0}findLastMonotonous(e){if(c.assertInvariants){if(this._prevFindLastPredicate)for(const t of this._array)if(this._prevFindLastPredicate(t)&&!e(t))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.");this._prevFindLastPredicate=e}const t=r(this._array,e,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=t+1,-1===t?void 0:this._array[t]}}function l(e,t){if(0===e.length)return;let i=e[0];for(let s=1;s<e.length;s++){const n=e[s];t(n,i)>0&&(i=n)}return i}function h(e,t){if(0===e.length)return;let i=e[0];for(let s=1;s<e.length;s++){const n=e[s];t(n,i)>=0&&(i=n)}return i}function d(e,t){return l(e,((e,i)=>-t(e,i)))}function u(e,t){if(0===e.length)return-1;let i=0;for(let s=1;s<e.length;s++){t(e[s],e[i])>0&&(i=s)}return i}function g(e,t){for(const i of e){const e=t(i);if(void 0!==e)return e}}},66782:(e,t,i)=>{"use strict";i.d(t,{Ft:()=>a,V7:()=>o,Xo:()=>c,ok:()=>n,xb:()=>r});var s=i(64383);function n(e,t){if(!e)throw new Error(t?`Assertion failed (${t})`:"Assertion Failed")}function r(e,t="Unreachable"){throw new Error(t)}function o(e){e||(0,s.dz)(new s.D7("Soft Assertion Failed"))}function a(e){e()||(e(),(0,s.dz)(new s.D7("Assertion Failed")))}function c(e,t){let i=0;for(;i<e.length-1;){if(!t(e[i],e[i+1]))return!1;i++}return!0}},90766:(e,t,i)=>{"use strict";i.d(t,{$1:()=>_,$6:()=>b,A0:()=>y,AE:()=>T,EQ:()=>f,F6:()=>w,HC:()=>L,PK:()=>d,Qg:()=>l,SS:()=>h,Th:()=>p,Zv:()=>R,b7:()=>S,bI:()=>k,pc:()=>v,uC:()=>E,vb:()=>C,ve:()=>g,wR:()=>m});var s=i(18447),n=i(64383),r=i(41234),o=i(5662),a=i(98067),c=i(44759);function l(e){return!!e&&"function"===typeof e.then}function h(e){const t=new s.Qi,i=e(t.token),r=new Promise(((e,s)=>{const r=t.token.onCancellationRequested((()=>{r.dispose(),s(new n.AL)}));Promise.resolve(i).then((i=>{r.dispose(),t.dispose(),e(i)}),(e=>{r.dispose(),t.dispose(),s(e)}))}));return new class{cancel(){t.cancel(),t.dispose()}then(e,t){return r.then(e,t)}catch(e){return this.then(void 0,e)}finally(e){return r.finally(e)}}}function d(e,t,i){return new Promise(((s,n)=>{const r=t.onCancellationRequested((()=>{r.dispose(),s(i)}));e.then(s,n).finally((()=>r.dispose()))}))}class u{constructor(){this.isDisposed=!1,this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(e){if(this.isDisposed)return Promise.reject(new Error("Throttler is disposed"));if(this.activePromise){if(this.queuedPromiseFactory=e,!this.queuedPromise){const e=()=>{if(this.queuedPromise=null,this.isDisposed)return;const e=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,e};this.queuedPromise=new Promise((t=>{this.activePromise.then(e,e).then(t)}))}return new Promise(((e,t)=>{this.queuedPromise.then(e,t)}))}return this.activePromise=e(),new Promise(((e,t)=>{this.activePromise.then((t=>{this.activePromise=null,e(t)}),(e=>{this.activePromise=null,t(e)}))}))}dispose(){this.isDisposed=!0}}class g{constructor(e){this.defaultDelay=e,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(e,t=this.defaultDelay){this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise(((e,t)=>{this.doResolve=e,this.doReject=t})).then((()=>{if(this.completionPromise=null,this.doResolve=null,this.task){const e=this.task;return this.task=null,e()}})));const i=()=>{this.deferred=null,this.doResolve?.(null)};return this.deferred=t===c.h?(e=>{let t=!0;return queueMicrotask((()=>{t&&(t=!1,e())})),{isTriggered:()=>t,dispose:()=>{t=!1}}})(i):((e,t)=>{let i=!0;const s=setTimeout((()=>{i=!1,t()}),e);return{isTriggered:()=>i,dispose:()=>{clearTimeout(s),i=!1}}})(t,i),this.completionPromise}isTriggered(){return!!this.deferred?.isTriggered()}cancel(){this.cancelTimeout(),this.completionPromise&&(this.doReject?.(new n.AL),this.completionPromise=null)}cancelTimeout(){this.deferred?.dispose(),this.deferred=null}dispose(){this.cancel()}}class p{constructor(e){this.delayer=new g(e),this.throttler=new u}trigger(e,t){return this.delayer.trigger((()=>this.throttler.queue(e)),t)}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose(),this.throttler.dispose()}}function m(e,t){return t?new Promise(((i,s)=>{const r=setTimeout((()=>{o.dispose(),i()}),e),o=t.onCancellationRequested((()=>{clearTimeout(r),o.dispose(),s(new n.AL)}))})):h((t=>m(e,t)))}function f(e,t=0,i){const s=setTimeout((()=>{e(),i&&n.dispose()}),t),n=(0,o.s)((()=>{clearTimeout(s),i?.deleteAndLeak(n)}));return i?.add(n),n}function _(e,t=e=>!!e,i=null){let s=0;const n=e.length,r=()=>{if(s>=n)return Promise.resolve(i);const o=e[s++];return Promise.resolve(o()).then((e=>t(e)?Promise.resolve(e):r()))};return r()}class v{constructor(e,t){this._isDisposed=!1,this._token=-1,"function"===typeof e&&"number"===typeof t&&this.setIfNotSet(e,t)}dispose(){this.cancel(),this._isDisposed=!0}cancel(){-1!==this._token&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,t){if(this._isDisposed)throw new n.D7("Calling 'cancelAndSet' on a disposed TimeoutTimer");this.cancel(),this._token=setTimeout((()=>{this._token=-1,e()}),t)}setIfNotSet(e,t){if(this._isDisposed)throw new n.D7("Calling 'setIfNotSet' on a disposed TimeoutTimer");-1===this._token&&(this._token=setTimeout((()=>{this._token=-1,e()}),t))}}class C{constructor(){this.disposable=void 0,this.isDisposed=!1}cancel(){this.disposable?.dispose(),this.disposable=void 0}cancelAndSet(e,t,i=globalThis){if(this.isDisposed)throw new n.D7("Calling 'cancelAndSet' on a disposed IntervalTimer");this.cancel();const s=i.setInterval((()=>{e()}),t);this.disposable=(0,o.s)((()=>{i.clearInterval(s),this.disposable=void 0}))}dispose(){this.cancel(),this.isDisposed=!0}}class E{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return-1!==this.timeoutToken}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner?.()}}let b,S;S="function"!==typeof globalThis.requestIdleCallback||"function"!==typeof globalThis.cancelIdleCallback?(e,t)=>{(0,a._p)((()=>{if(i)return;const e=Date.now()+15,s={didTimeout:!0,timeRemaining:()=>Math.max(0,e-Date.now())};t(Object.freeze(s))}));let i=!1;return{dispose(){i||(i=!0)}}}:(e,t,i)=>{const s=e.requestIdleCallback(t,"number"===typeof i?{timeout:i}:void 0);let n=!1;return{dispose(){n||(n=!0,e.cancelIdleCallback(s))}}},b=e=>S(globalThis,e);class y{constructor(e,t){this._didRun=!1,this._executor=()=>{try{this._value=t()}catch(e){this._error=e}finally{this._didRun=!0}},this._handle=S(e,(()=>this._executor()))}dispose(){this._handle.dispose()}get value(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}get isInitialized(){return this._didRun}}class w extends y{constructor(e){super(globalThis,e)}}class R{get isRejected(){return 1===this.outcome?.outcome}get isSettled(){return!!this.outcome}constructor(){this.p=new Promise(((e,t)=>{this.completeCallback=e,this.errorCallback=t}))}complete(e){return new Promise((t=>{this.completeCallback(e),this.outcome={outcome:0,value:e},t()}))}error(e){return new Promise((t=>{this.errorCallback(e),this.outcome={outcome:1,value:e},t()}))}cancel(){return this.error(new n.AL)}}var L;!function(e){e.settled=async function(e){let t;const i=await Promise.all(e.map((e=>e.then((e=>e),(e=>{t||(t=e)})))));if("undefined"!==typeof t)throw t;return i},e.withAsyncBody=function(e){return new Promise((async(t,i)=>{try{await e(t,i)}catch(s){i(s)}}))}}(L||(L={}));class T{static fromArray(e){return new T((t=>{t.emitMany(e)}))}static fromPromise(e){return new T((async t=>{t.emitMany(await e)}))}static fromPromises(e){return new T((async t=>{await Promise.all(e.map((async e=>t.emitOne(await e))))}))}static merge(e){return new T((async t=>{await Promise.all(e.map((async e=>{for await(const i of e)t.emitOne(i)})))}))}static{this.EMPTY=T.fromArray([])}constructor(e,t){this._state=0,this._results=[],this._error=null,this._onReturn=t,this._onStateChanged=new r.vl,queueMicrotask((async()=>{const t={emitOne:e=>this.emitOne(e),emitMany:e=>this.emitMany(e),reject:e=>this.reject(e)};try{await Promise.resolve(e(t)),this.resolve()}catch(i){this.reject(i)}finally{t.emitOne=void 0,t.emitMany=void 0,t.reject=void 0}}))}[Symbol.asyncIterator](){let e=0;return{next:async()=>{for(;;){if(2===this._state)throw this._error;if(e<this._results.length)return{done:!1,value:this._results[e++]};if(1===this._state)return{done:!0,value:void 0};await r.Jh.toPromise(this._onStateChanged.event)}},return:async()=>(this._onReturn?.(),{done:!0,value:void 0})}}static map(e,t){return new T((async i=>{for await(const s of e)i.emitOne(t(s))}))}map(e){return T.map(this,e)}static filter(e,t){return new T((async i=>{for await(const s of e)t(s)&&i.emitOne(s)}))}filter(e){return T.filter(this,e)}static coalesce(e){return T.filter(e,(e=>!!e))}coalesce(){return T.coalesce(this)}static async toPromise(e){const t=[];for await(const i of e)t.push(i);return t}toPromise(){return T.toPromise(this)}emitOne(e){0===this._state&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){0===this._state&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){0===this._state&&(this._state=1,this._onStateChanged.fire())}reject(e){0===this._state&&(this._state=2,this._error=e,this._onStateChanged.fire())}}class x extends T{constructor(e,t){super(t),this._source=e}cancel(){this._source.cancel()}}function k(e){const t=new s.Qi,i=e(t.token);return new x(t,(async e=>{const s=t.token.onCancellationRequested((()=>{s.dispose(),t.dispose(),e.reject(new n.AL)}));try{for await(const s of i){if(t.token.isCancellationRequested)return;e.emitOne(s)}s.dispose(),t.dispose()}catch(r){s.dispose(),t.dispose(),e.reject(r)}}))}},81674:(e,t,i)=>{"use strict";i.d(t,{$l:()=>a,Gs:()=>u,MB:()=>o,Sw:()=>h,bb:()=>l,gN:()=>c,pJ:()=>d});var s=i(91090);const n="undefined"!==typeof Buffer;new s.d((()=>new Uint8Array(256)));let r;class o{static wrap(e){return n&&!Buffer.isBuffer(e)&&(e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),new o(e)}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}toString(){return n?this.buffer.toString():(r||(r=new TextDecoder),r.decode(this.buffer))}}function a(e,t){return(e[t+0]|0)>>>0|e[t+1]<<8>>>0}function c(e,t,i){e[i+0]=255&t,t>>>=8,e[i+1]=255&t}function l(e,t){return e[t]*2**24+65536*e[t+1]+256*e[t+2]+e[t+3]}function h(e,t,i){e[i+3]=t,t>>>=8,e[i+2]=t,t>>>=8,e[i+1]=t,t>>>=8,e[i]=t}function d(e,t){return e[t]}function u(e,t,i){e[i]=t}},81788:(e,t,i)=>{"use strict";function s(e){return e}i.d(t,{VV:()=>r,o5:()=>n});class n{constructor(e,t){this.lastCache=void 0,this.lastArgKey=void 0,"function"===typeof e?(this._fn=e,this._computeKey=s):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this._fn(e)),this.lastCache}}class r{get cachedValues(){return this._map}constructor(e,t){this._map=new Map,this._map2=new Map,"function"===typeof e?(this._fn=e,this._computeKey=s):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);if(this._map2.has(t))return this._map2.get(t);const i=this._fn(e);return this._map.set(e,i),this._map2.set(t,i),i}}},18447:(e,t,i)=>{"use strict";i.d(t,{Qi:()=>a,XO:()=>r,bs:()=>c});var s=i(41234);const n=Object.freeze((function(e,t){const i=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(i)}}}));var r;!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||(t instanceof o||!(!t||"object"!==typeof t)&&("boolean"===typeof t.isCancellationRequested&&"function"===typeof t.onCancellationRequested))},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:s.Jh.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:n})}(r||(r={}));class o{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?n:(this._emitter||(this._emitter=new s.vl),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class a{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new o),this._token}cancel(){this._token?this._token instanceof o&&this._token.cancel():this._token=r.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof o&&this._token.dispose():this._token=r.None}}function c(e){const t=new a;return e.add({dispose(){t.cancel()}}),t.token}},10350:(e,t,i)=>{"use strict";i.d(t,{W:()=>n});var s=i(18956);const n={...{add:(0,s.k)("add",6e4),plus:(0,s.k)("plus",6e4),gistNew:(0,s.k)("gist-new",6e4),repoCreate:(0,s.k)("repo-create",6e4),lightbulb:(0,s.k)("lightbulb",60001),lightBulb:(0,s.k)("light-bulb",60001),repo:(0,s.k)("repo",60002),repoDelete:(0,s.k)("repo-delete",60002),gistFork:(0,s.k)("gist-fork",60003),repoForked:(0,s.k)("repo-forked",60003),gitPullRequest:(0,s.k)("git-pull-request",60004),gitPullRequestAbandoned:(0,s.k)("git-pull-request-abandoned",60004),recordKeys:(0,s.k)("record-keys",60005),keyboard:(0,s.k)("keyboard",60005),tag:(0,s.k)("tag",60006),gitPullRequestLabel:(0,s.k)("git-pull-request-label",60006),tagAdd:(0,s.k)("tag-add",60006),tagRemove:(0,s.k)("tag-remove",60006),person:(0,s.k)("person",60007),personFollow:(0,s.k)("person-follow",60007),personOutline:(0,s.k)("person-outline",60007),personFilled:(0,s.k)("person-filled",60007),gitBranch:(0,s.k)("git-branch",60008),gitBranchCreate:(0,s.k)("git-branch-create",60008),gitBranchDelete:(0,s.k)("git-branch-delete",60008),sourceControl:(0,s.k)("source-control",60008),mirror:(0,s.k)("mirror",60009),mirrorPublic:(0,s.k)("mirror-public",60009),star:(0,s.k)("star",60010),starAdd:(0,s.k)("star-add",60010),starDelete:(0,s.k)("star-delete",60010),starEmpty:(0,s.k)("star-empty",60010),comment:(0,s.k)("comment",60011),commentAdd:(0,s.k)("comment-add",60011),alert:(0,s.k)("alert",60012),warning:(0,s.k)("warning",60012),search:(0,s.k)("search",60013),searchSave:(0,s.k)("search-save",60013),logOut:(0,s.k)("log-out",60014),signOut:(0,s.k)("sign-out",60014),logIn:(0,s.k)("log-in",60015),signIn:(0,s.k)("sign-in",60015),eye:(0,s.k)("eye",60016),eyeUnwatch:(0,s.k)("eye-unwatch",60016),eyeWatch:(0,s.k)("eye-watch",60016),circleFilled:(0,s.k)("circle-filled",60017),primitiveDot:(0,s.k)("primitive-dot",60017),closeDirty:(0,s.k)("close-dirty",60017),debugBreakpoint:(0,s.k)("debug-breakpoint",60017),debugBreakpointDisabled:(0,s.k)("debug-breakpoint-disabled",60017),debugHint:(0,s.k)("debug-hint",60017),terminalDecorationSuccess:(0,s.k)("terminal-decoration-success",60017),primitiveSquare:(0,s.k)("primitive-square",60018),edit:(0,s.k)("edit",60019),pencil:(0,s.k)("pencil",60019),info:(0,s.k)("info",60020),issueOpened:(0,s.k)("issue-opened",60020),gistPrivate:(0,s.k)("gist-private",60021),gitForkPrivate:(0,s.k)("git-fork-private",60021),lock:(0,s.k)("lock",60021),mirrorPrivate:(0,s.k)("mirror-private",60021),close:(0,s.k)("close",60022),removeClose:(0,s.k)("remove-close",60022),x:(0,s.k)("x",60022),repoSync:(0,s.k)("repo-sync",60023),sync:(0,s.k)("sync",60023),clone:(0,s.k)("clone",60024),desktopDownload:(0,s.k)("desktop-download",60024),beaker:(0,s.k)("beaker",60025),microscope:(0,s.k)("microscope",60025),vm:(0,s.k)("vm",60026),deviceDesktop:(0,s.k)("device-desktop",60026),file:(0,s.k)("file",60027),fileText:(0,s.k)("file-text",60027),more:(0,s.k)("more",60028),ellipsis:(0,s.k)("ellipsis",60028),kebabHorizontal:(0,s.k)("kebab-horizontal",60028),mailReply:(0,s.k)("mail-reply",60029),reply:(0,s.k)("reply",60029),organization:(0,s.k)("organization",60030),organizationFilled:(0,s.k)("organization-filled",60030),organizationOutline:(0,s.k)("organization-outline",60030),newFile:(0,s.k)("new-file",60031),fileAdd:(0,s.k)("file-add",60031),newFolder:(0,s.k)("new-folder",60032),fileDirectoryCreate:(0,s.k)("file-directory-create",60032),trash:(0,s.k)("trash",60033),trashcan:(0,s.k)("trashcan",60033),history:(0,s.k)("history",60034),clock:(0,s.k)("clock",60034),folder:(0,s.k)("folder",60035),fileDirectory:(0,s.k)("file-directory",60035),symbolFolder:(0,s.k)("symbol-folder",60035),logoGithub:(0,s.k)("logo-github",60036),markGithub:(0,s.k)("mark-github",60036),github:(0,s.k)("github",60036),terminal:(0,s.k)("terminal",60037),console:(0,s.k)("console",60037),repl:(0,s.k)("repl",60037),zap:(0,s.k)("zap",60038),symbolEvent:(0,s.k)("symbol-event",60038),error:(0,s.k)("error",60039),stop:(0,s.k)("stop",60039),variable:(0,s.k)("variable",60040),symbolVariable:(0,s.k)("symbol-variable",60040),array:(0,s.k)("array",60042),symbolArray:(0,s.k)("symbol-array",60042),symbolModule:(0,s.k)("symbol-module",60043),symbolPackage:(0,s.k)("symbol-package",60043),symbolNamespace:(0,s.k)("symbol-namespace",60043),symbolObject:(0,s.k)("symbol-object",60043),symbolMethod:(0,s.k)("symbol-method",60044),symbolFunction:(0,s.k)("symbol-function",60044),symbolConstructor:(0,s.k)("symbol-constructor",60044),symbolBoolean:(0,s.k)("symbol-boolean",60047),symbolNull:(0,s.k)("symbol-null",60047),symbolNumeric:(0,s.k)("symbol-numeric",60048),symbolNumber:(0,s.k)("symbol-number",60048),symbolStructure:(0,s.k)("symbol-structure",60049),symbolStruct:(0,s.k)("symbol-struct",60049),symbolParameter:(0,s.k)("symbol-parameter",60050),symbolTypeParameter:(0,s.k)("symbol-type-parameter",60050),symbolKey:(0,s.k)("symbol-key",60051),symbolText:(0,s.k)("symbol-text",60051),symbolReference:(0,s.k)("symbol-reference",60052),goToFile:(0,s.k)("go-to-file",60052),symbolEnum:(0,s.k)("symbol-enum",60053),symbolValue:(0,s.k)("symbol-value",60053),symbolRuler:(0,s.k)("symbol-ruler",60054),symbolUnit:(0,s.k)("symbol-unit",60054),activateBreakpoints:(0,s.k)("activate-breakpoints",60055),archive:(0,s.k)("archive",60056),arrowBoth:(0,s.k)("arrow-both",60057),arrowDown:(0,s.k)("arrow-down",60058),arrowLeft:(0,s.k)("arrow-left",60059),arrowRight:(0,s.k)("arrow-right",60060),arrowSmallDown:(0,s.k)("arrow-small-down",60061),arrowSmallLeft:(0,s.k)("arrow-small-left",60062),arrowSmallRight:(0,s.k)("arrow-small-right",60063),arrowSmallUp:(0,s.k)("arrow-small-up",60064),arrowUp:(0,s.k)("arrow-up",60065),bell:(0,s.k)("bell",60066),bold:(0,s.k)("bold",60067),book:(0,s.k)("book",60068),bookmark:(0,s.k)("bookmark",60069),debugBreakpointConditionalUnverified:(0,s.k)("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:(0,s.k)("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:(0,s.k)("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:(0,s.k)("debug-breakpoint-data-unverified",60072),debugBreakpointData:(0,s.k)("debug-breakpoint-data",60073),debugBreakpointDataDisabled:(0,s.k)("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:(0,s.k)("debug-breakpoint-log-unverified",60074),debugBreakpointLog:(0,s.k)("debug-breakpoint-log",60075),debugBreakpointLogDisabled:(0,s.k)("debug-breakpoint-log-disabled",60075),briefcase:(0,s.k)("briefcase",60076),broadcast:(0,s.k)("broadcast",60077),browser:(0,s.k)("browser",60078),bug:(0,s.k)("bug",60079),calendar:(0,s.k)("calendar",60080),caseSensitive:(0,s.k)("case-sensitive",60081),check:(0,s.k)("check",60082),checklist:(0,s.k)("checklist",60083),chevronDown:(0,s.k)("chevron-down",60084),chevronLeft:(0,s.k)("chevron-left",60085),chevronRight:(0,s.k)("chevron-right",60086),chevronUp:(0,s.k)("chevron-up",60087),chromeClose:(0,s.k)("chrome-close",60088),chromeMaximize:(0,s.k)("chrome-maximize",60089),chromeMinimize:(0,s.k)("chrome-minimize",60090),chromeRestore:(0,s.k)("chrome-restore",60091),circleOutline:(0,s.k)("circle-outline",60092),circle:(0,s.k)("circle",60092),debugBreakpointUnverified:(0,s.k)("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:(0,s.k)("terminal-decoration-incomplete",60092),circleSlash:(0,s.k)("circle-slash",60093),circuitBoard:(0,s.k)("circuit-board",60094),clearAll:(0,s.k)("clear-all",60095),clippy:(0,s.k)("clippy",60096),closeAll:(0,s.k)("close-all",60097),cloudDownload:(0,s.k)("cloud-download",60098),cloudUpload:(0,s.k)("cloud-upload",60099),code:(0,s.k)("code",60100),collapseAll:(0,s.k)("collapse-all",60101),colorMode:(0,s.k)("color-mode",60102),commentDiscussion:(0,s.k)("comment-discussion",60103),creditCard:(0,s.k)("credit-card",60105),dash:(0,s.k)("dash",60108),dashboard:(0,s.k)("dashboard",60109),database:(0,s.k)("database",60110),debugContinue:(0,s.k)("debug-continue",60111),debugDisconnect:(0,s.k)("debug-disconnect",60112),debugPause:(0,s.k)("debug-pause",60113),debugRestart:(0,s.k)("debug-restart",60114),debugStart:(0,s.k)("debug-start",60115),debugStepInto:(0,s.k)("debug-step-into",60116),debugStepOut:(0,s.k)("debug-step-out",60117),debugStepOver:(0,s.k)("debug-step-over",60118),debugStop:(0,s.k)("debug-stop",60119),debug:(0,s.k)("debug",60120),deviceCameraVideo:(0,s.k)("device-camera-video",60121),deviceCamera:(0,s.k)("device-camera",60122),deviceMobile:(0,s.k)("device-mobile",60123),diffAdded:(0,s.k)("diff-added",60124),diffIgnored:(0,s.k)("diff-ignored",60125),diffModified:(0,s.k)("diff-modified",60126),diffRemoved:(0,s.k)("diff-removed",60127),diffRenamed:(0,s.k)("diff-renamed",60128),diff:(0,s.k)("diff",60129),diffSidebyside:(0,s.k)("diff-sidebyside",60129),discard:(0,s.k)("discard",60130),editorLayout:(0,s.k)("editor-layout",60131),emptyWindow:(0,s.k)("empty-window",60132),exclude:(0,s.k)("exclude",60133),extensions:(0,s.k)("extensions",60134),eyeClosed:(0,s.k)("eye-closed",60135),fileBinary:(0,s.k)("file-binary",60136),fileCode:(0,s.k)("file-code",60137),fileMedia:(0,s.k)("file-media",60138),filePdf:(0,s.k)("file-pdf",60139),fileSubmodule:(0,s.k)("file-submodule",60140),fileSymlinkDirectory:(0,s.k)("file-symlink-directory",60141),fileSymlinkFile:(0,s.k)("file-symlink-file",60142),fileZip:(0,s.k)("file-zip",60143),files:(0,s.k)("files",60144),filter:(0,s.k)("filter",60145),flame:(0,s.k)("flame",60146),foldDown:(0,s.k)("fold-down",60147),foldUp:(0,s.k)("fold-up",60148),fold:(0,s.k)("fold",60149),folderActive:(0,s.k)("folder-active",60150),folderOpened:(0,s.k)("folder-opened",60151),gear:(0,s.k)("gear",60152),gift:(0,s.k)("gift",60153),gistSecret:(0,s.k)("gist-secret",60154),gist:(0,s.k)("gist",60155),gitCommit:(0,s.k)("git-commit",60156),gitCompare:(0,s.k)("git-compare",60157),compareChanges:(0,s.k)("compare-changes",60157),gitMerge:(0,s.k)("git-merge",60158),githubAction:(0,s.k)("github-action",60159),githubAlt:(0,s.k)("github-alt",60160),globe:(0,s.k)("globe",60161),grabber:(0,s.k)("grabber",60162),graph:(0,s.k)("graph",60163),gripper:(0,s.k)("gripper",60164),heart:(0,s.k)("heart",60165),home:(0,s.k)("home",60166),horizontalRule:(0,s.k)("horizontal-rule",60167),hubot:(0,s.k)("hubot",60168),inbox:(0,s.k)("inbox",60169),issueReopened:(0,s.k)("issue-reopened",60171),issues:(0,s.k)("issues",60172),italic:(0,s.k)("italic",60173),jersey:(0,s.k)("jersey",60174),json:(0,s.k)("json",60175),kebabVertical:(0,s.k)("kebab-vertical",60176),key:(0,s.k)("key",60177),law:(0,s.k)("law",60178),lightbulbAutofix:(0,s.k)("lightbulb-autofix",60179),linkExternal:(0,s.k)("link-external",60180),link:(0,s.k)("link",60181),listOrdered:(0,s.k)("list-ordered",60182),listUnordered:(0,s.k)("list-unordered",60183),liveShare:(0,s.k)("live-share",60184),loading:(0,s.k)("loading",60185),location:(0,s.k)("location",60186),mailRead:(0,s.k)("mail-read",60187),mail:(0,s.k)("mail",60188),markdown:(0,s.k)("markdown",60189),megaphone:(0,s.k)("megaphone",60190),mention:(0,s.k)("mention",60191),milestone:(0,s.k)("milestone",60192),gitPullRequestMilestone:(0,s.k)("git-pull-request-milestone",60192),mortarBoard:(0,s.k)("mortar-board",60193),move:(0,s.k)("move",60194),multipleWindows:(0,s.k)("multiple-windows",60195),mute:(0,s.k)("mute",60196),noNewline:(0,s.k)("no-newline",60197),note:(0,s.k)("note",60198),octoface:(0,s.k)("octoface",60199),openPreview:(0,s.k)("open-preview",60200),package:(0,s.k)("package",60201),paintcan:(0,s.k)("paintcan",60202),pin:(0,s.k)("pin",60203),play:(0,s.k)("play",60204),run:(0,s.k)("run",60204),plug:(0,s.k)("plug",60205),preserveCase:(0,s.k)("preserve-case",60206),preview:(0,s.k)("preview",60207),project:(0,s.k)("project",60208),pulse:(0,s.k)("pulse",60209),question:(0,s.k)("question",60210),quote:(0,s.k)("quote",60211),radioTower:(0,s.k)("radio-tower",60212),reactions:(0,s.k)("reactions",60213),references:(0,s.k)("references",60214),refresh:(0,s.k)("refresh",60215),regex:(0,s.k)("regex",60216),remoteExplorer:(0,s.k)("remote-explorer",60217),remote:(0,s.k)("remote",60218),remove:(0,s.k)("remove",60219),replaceAll:(0,s.k)("replace-all",60220),replace:(0,s.k)("replace",60221),repoClone:(0,s.k)("repo-clone",60222),repoForcePush:(0,s.k)("repo-force-push",60223),repoPull:(0,s.k)("repo-pull",60224),repoPush:(0,s.k)("repo-push",60225),report:(0,s.k)("report",60226),requestChanges:(0,s.k)("request-changes",60227),rocket:(0,s.k)("rocket",60228),rootFolderOpened:(0,s.k)("root-folder-opened",60229),rootFolder:(0,s.k)("root-folder",60230),rss:(0,s.k)("rss",60231),ruby:(0,s.k)("ruby",60232),saveAll:(0,s.k)("save-all",60233),saveAs:(0,s.k)("save-as",60234),save:(0,s.k)("save",60235),screenFull:(0,s.k)("screen-full",60236),screenNormal:(0,s.k)("screen-normal",60237),searchStop:(0,s.k)("search-stop",60238),server:(0,s.k)("server",60240),settingsGear:(0,s.k)("settings-gear",60241),settings:(0,s.k)("settings",60242),shield:(0,s.k)("shield",60243),smiley:(0,s.k)("smiley",60244),sortPrecedence:(0,s.k)("sort-precedence",60245),splitHorizontal:(0,s.k)("split-horizontal",60246),splitVertical:(0,s.k)("split-vertical",60247),squirrel:(0,s.k)("squirrel",60248),starFull:(0,s.k)("star-full",60249),starHalf:(0,s.k)("star-half",60250),symbolClass:(0,s.k)("symbol-class",60251),symbolColor:(0,s.k)("symbol-color",60252),symbolConstant:(0,s.k)("symbol-constant",60253),symbolEnumMember:(0,s.k)("symbol-enum-member",60254),symbolField:(0,s.k)("symbol-field",60255),symbolFile:(0,s.k)("symbol-file",60256),symbolInterface:(0,s.k)("symbol-interface",60257),symbolKeyword:(0,s.k)("symbol-keyword",60258),symbolMisc:(0,s.k)("symbol-misc",60259),symbolOperator:(0,s.k)("symbol-operator",60260),symbolProperty:(0,s.k)("symbol-property",60261),wrench:(0,s.k)("wrench",60261),wrenchSubaction:(0,s.k)("wrench-subaction",60261),symbolSnippet:(0,s.k)("symbol-snippet",60262),tasklist:(0,s.k)("tasklist",60263),telescope:(0,s.k)("telescope",60264),textSize:(0,s.k)("text-size",60265),threeBars:(0,s.k)("three-bars",60266),thumbsdown:(0,s.k)("thumbsdown",60267),thumbsup:(0,s.k)("thumbsup",60268),tools:(0,s.k)("tools",60269),triangleDown:(0,s.k)("triangle-down",60270),triangleLeft:(0,s.k)("triangle-left",60271),triangleRight:(0,s.k)("triangle-right",60272),triangleUp:(0,s.k)("triangle-up",60273),twitter:(0,s.k)("twitter",60274),unfold:(0,s.k)("unfold",60275),unlock:(0,s.k)("unlock",60276),unmute:(0,s.k)("unmute",60277),unverified:(0,s.k)("unverified",60278),verified:(0,s.k)("verified",60279),versions:(0,s.k)("versions",60280),vmActive:(0,s.k)("vm-active",60281),vmOutline:(0,s.k)("vm-outline",60282),vmRunning:(0,s.k)("vm-running",60283),watch:(0,s.k)("watch",60284),whitespace:(0,s.k)("whitespace",60285),wholeWord:(0,s.k)("whole-word",60286),window:(0,s.k)("window",60287),wordWrap:(0,s.k)("word-wrap",60288),zoomIn:(0,s.k)("zoom-in",60289),zoomOut:(0,s.k)("zoom-out",60290),listFilter:(0,s.k)("list-filter",60291),listFlat:(0,s.k)("list-flat",60292),listSelection:(0,s.k)("list-selection",60293),selection:(0,s.k)("selection",60293),listTree:(0,s.k)("list-tree",60294),debugBreakpointFunctionUnverified:(0,s.k)("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:(0,s.k)("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:(0,s.k)("debug-breakpoint-function-disabled",60296),debugStackframeActive:(0,s.k)("debug-stackframe-active",60297),circleSmallFilled:(0,s.k)("circle-small-filled",60298),debugStackframeDot:(0,s.k)("debug-stackframe-dot",60298),terminalDecorationMark:(0,s.k)("terminal-decoration-mark",60298),debugStackframe:(0,s.k)("debug-stackframe",60299),debugStackframeFocused:(0,s.k)("debug-stackframe-focused",60299),debugBreakpointUnsupported:(0,s.k)("debug-breakpoint-unsupported",60300),symbolString:(0,s.k)("symbol-string",60301),debugReverseContinue:(0,s.k)("debug-reverse-continue",60302),debugStepBack:(0,s.k)("debug-step-back",60303),debugRestartFrame:(0,s.k)("debug-restart-frame",60304),debugAlt:(0,s.k)("debug-alt",60305),callIncoming:(0,s.k)("call-incoming",60306),callOutgoing:(0,s.k)("call-outgoing",60307),menu:(0,s.k)("menu",60308),expandAll:(0,s.k)("expand-all",60309),feedback:(0,s.k)("feedback",60310),gitPullRequestReviewer:(0,s.k)("git-pull-request-reviewer",60310),groupByRefType:(0,s.k)("group-by-ref-type",60311),ungroupByRefType:(0,s.k)("ungroup-by-ref-type",60312),account:(0,s.k)("account",60313),gitPullRequestAssignee:(0,s.k)("git-pull-request-assignee",60313),bellDot:(0,s.k)("bell-dot",60314),debugConsole:(0,s.k)("debug-console",60315),library:(0,s.k)("library",60316),output:(0,s.k)("output",60317),runAll:(0,s.k)("run-all",60318),syncIgnored:(0,s.k)("sync-ignored",60319),pinned:(0,s.k)("pinned",60320),githubInverted:(0,s.k)("github-inverted",60321),serverProcess:(0,s.k)("server-process",60322),serverEnvironment:(0,s.k)("server-environment",60323),pass:(0,s.k)("pass",60324),issueClosed:(0,s.k)("issue-closed",60324),stopCircle:(0,s.k)("stop-circle",60325),playCircle:(0,s.k)("play-circle",60326),record:(0,s.k)("record",60327),debugAltSmall:(0,s.k)("debug-alt-small",60328),vmConnect:(0,s.k)("vm-connect",60329),cloud:(0,s.k)("cloud",60330),merge:(0,s.k)("merge",60331),export:(0,s.k)("export",60332),graphLeft:(0,s.k)("graph-left",60333),magnet:(0,s.k)("magnet",60334),notebook:(0,s.k)("notebook",60335),redo:(0,s.k)("redo",60336),checkAll:(0,s.k)("check-all",60337),pinnedDirty:(0,s.k)("pinned-dirty",60338),passFilled:(0,s.k)("pass-filled",60339),circleLargeFilled:(0,s.k)("circle-large-filled",60340),circleLarge:(0,s.k)("circle-large",60341),circleLargeOutline:(0,s.k)("circle-large-outline",60341),combine:(0,s.k)("combine",60342),gather:(0,s.k)("gather",60342),table:(0,s.k)("table",60343),variableGroup:(0,s.k)("variable-group",60344),typeHierarchy:(0,s.k)("type-hierarchy",60345),typeHierarchySub:(0,s.k)("type-hierarchy-sub",60346),typeHierarchySuper:(0,s.k)("type-hierarchy-super",60347),gitPullRequestCreate:(0,s.k)("git-pull-request-create",60348),runAbove:(0,s.k)("run-above",60349),runBelow:(0,s.k)("run-below",60350),notebookTemplate:(0,s.k)("notebook-template",60351),debugRerun:(0,s.k)("debug-rerun",60352),workspaceTrusted:(0,s.k)("workspace-trusted",60353),workspaceUntrusted:(0,s.k)("workspace-untrusted",60354),workspaceUnknown:(0,s.k)("workspace-unknown",60355),terminalCmd:(0,s.k)("terminal-cmd",60356),terminalDebian:(0,s.k)("terminal-debian",60357),terminalLinux:(0,s.k)("terminal-linux",60358),terminalPowershell:(0,s.k)("terminal-powershell",60359),terminalTmux:(0,s.k)("terminal-tmux",60360),terminalUbuntu:(0,s.k)("terminal-ubuntu",60361),terminalBash:(0,s.k)("terminal-bash",60362),arrowSwap:(0,s.k)("arrow-swap",60363),copy:(0,s.k)("copy",60364),personAdd:(0,s.k)("person-add",60365),filterFilled:(0,s.k)("filter-filled",60366),wand:(0,s.k)("wand",60367),debugLineByLine:(0,s.k)("debug-line-by-line",60368),inspect:(0,s.k)("inspect",60369),layers:(0,s.k)("layers",60370),layersDot:(0,s.k)("layers-dot",60371),layersActive:(0,s.k)("layers-active",60372),compass:(0,s.k)("compass",60373),compassDot:(0,s.k)("compass-dot",60374),compassActive:(0,s.k)("compass-active",60375),azure:(0,s.k)("azure",60376),issueDraft:(0,s.k)("issue-draft",60377),gitPullRequestClosed:(0,s.k)("git-pull-request-closed",60378),gitPullRequestDraft:(0,s.k)("git-pull-request-draft",60379),debugAll:(0,s.k)("debug-all",60380),debugCoverage:(0,s.k)("debug-coverage",60381),runErrors:(0,s.k)("run-errors",60382),folderLibrary:(0,s.k)("folder-library",60383),debugContinueSmall:(0,s.k)("debug-continue-small",60384),beakerStop:(0,s.k)("beaker-stop",60385),graphLine:(0,s.k)("graph-line",60386),graphScatter:(0,s.k)("graph-scatter",60387),pieChart:(0,s.k)("pie-chart",60388),bracket:(0,s.k)("bracket",60175),bracketDot:(0,s.k)("bracket-dot",60389),bracketError:(0,s.k)("bracket-error",60390),lockSmall:(0,s.k)("lock-small",60391),azureDevops:(0,s.k)("azure-devops",60392),verifiedFilled:(0,s.k)("verified-filled",60393),newline:(0,s.k)("newline",60394),layout:(0,s.k)("layout",60395),layoutActivitybarLeft:(0,s.k)("layout-activitybar-left",60396),layoutActivitybarRight:(0,s.k)("layout-activitybar-right",60397),layoutPanelLeft:(0,s.k)("layout-panel-left",60398),layoutPanelCenter:(0,s.k)("layout-panel-center",60399),layoutPanelJustify:(0,s.k)("layout-panel-justify",60400),layoutPanelRight:(0,s.k)("layout-panel-right",60401),layoutPanel:(0,s.k)("layout-panel",60402),layoutSidebarLeft:(0,s.k)("layout-sidebar-left",60403),layoutSidebarRight:(0,s.k)("layout-sidebar-right",60404),layoutStatusbar:(0,s.k)("layout-statusbar",60405),layoutMenubar:(0,s.k)("layout-menubar",60406),layoutCentered:(0,s.k)("layout-centered",60407),target:(0,s.k)("target",60408),indent:(0,s.k)("indent",60409),recordSmall:(0,s.k)("record-small",60410),errorSmall:(0,s.k)("error-small",60411),terminalDecorationError:(0,s.k)("terminal-decoration-error",60411),arrowCircleDown:(0,s.k)("arrow-circle-down",60412),arrowCircleLeft:(0,s.k)("arrow-circle-left",60413),arrowCircleRight:(0,s.k)("arrow-circle-right",60414),arrowCircleUp:(0,s.k)("arrow-circle-up",60415),layoutSidebarRightOff:(0,s.k)("layout-sidebar-right-off",60416),layoutPanelOff:(0,s.k)("layout-panel-off",60417),layoutSidebarLeftOff:(0,s.k)("layout-sidebar-left-off",60418),blank:(0,s.k)("blank",60419),heartFilled:(0,s.k)("heart-filled",60420),map:(0,s.k)("map",60421),mapHorizontal:(0,s.k)("map-horizontal",60421),foldHorizontal:(0,s.k)("fold-horizontal",60421),mapFilled:(0,s.k)("map-filled",60422),mapHorizontalFilled:(0,s.k)("map-horizontal-filled",60422),foldHorizontalFilled:(0,s.k)("fold-horizontal-filled",60422),circleSmall:(0,s.k)("circle-small",60423),bellSlash:(0,s.k)("bell-slash",60424),bellSlashDot:(0,s.k)("bell-slash-dot",60425),commentUnresolved:(0,s.k)("comment-unresolved",60426),gitPullRequestGoToChanges:(0,s.k)("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:(0,s.k)("git-pull-request-new-changes",60428),searchFuzzy:(0,s.k)("search-fuzzy",60429),commentDraft:(0,s.k)("comment-draft",60430),send:(0,s.k)("send",60431),sparkle:(0,s.k)("sparkle",60432),insert:(0,s.k)("insert",60433),mic:(0,s.k)("mic",60434),thumbsdownFilled:(0,s.k)("thumbsdown-filled",60435),thumbsupFilled:(0,s.k)("thumbsup-filled",60436),coffee:(0,s.k)("coffee",60437),snake:(0,s.k)("snake",60438),game:(0,s.k)("game",60439),vr:(0,s.k)("vr",60440),chip:(0,s.k)("chip",60441),piano:(0,s.k)("piano",60442),music:(0,s.k)("music",60443),micFilled:(0,s.k)("mic-filled",60444),repoFetch:(0,s.k)("repo-fetch",60445),copilot:(0,s.k)("copilot",60446),lightbulbSparkle:(0,s.k)("lightbulb-sparkle",60447),robot:(0,s.k)("robot",60448),sparkleFilled:(0,s.k)("sparkle-filled",60449),diffSingle:(0,s.k)("diff-single",60450),diffMultiple:(0,s.k)("diff-multiple",60451),surroundWith:(0,s.k)("surround-with",60452),share:(0,s.k)("share",60453),gitStash:(0,s.k)("git-stash",60454),gitStashApply:(0,s.k)("git-stash-apply",60455),gitStashPop:(0,s.k)("git-stash-pop",60456),vscode:(0,s.k)("vscode",60457),vscodeInsiders:(0,s.k)("vscode-insiders",60458),codeOss:(0,s.k)("code-oss",60459),runCoverage:(0,s.k)("run-coverage",60460),runAllCoverage:(0,s.k)("run-all-coverage",60461),coverage:(0,s.k)("coverage",60462),githubProject:(0,s.k)("github-project",60463),mapVertical:(0,s.k)("map-vertical",60464),foldVertical:(0,s.k)("fold-vertical",60464),mapVerticalFilled:(0,s.k)("map-vertical-filled",60465),foldVerticalFilled:(0,s.k)("fold-vertical-filled",60465),goToSearch:(0,s.k)("go-to-search",60466),percentage:(0,s.k)("percentage",60467),sortPercentage:(0,s.k)("sort-percentage",60467),attach:(0,s.k)("attach",60468)},...{dialogError:(0,s.k)("dialog-error","error"),dialogWarning:(0,s.k)("dialog-warning","warning"),dialogInfo:(0,s.k)("dialog-info","info"),dialogClose:(0,s.k)("dialog-close","close"),treeItemExpanded:(0,s.k)("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:(0,s.k)("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:(0,s.k)("tree-filter-on-type-off","list-selection"),treeFilterClear:(0,s.k)("tree-filter-clear","close"),treeItemLoading:(0,s.k)("tree-item-loading","loading"),menuSelection:(0,s.k)("menu-selection","check"),menuSubmenu:(0,s.k)("menu-submenu","chevron-right"),menuBarMore:(0,s.k)("menubar-more","more"),scrollbarButtonLeft:(0,s.k)("scrollbar-button-left","triangle-left"),scrollbarButtonRight:(0,s.k)("scrollbar-button-right","triangle-right"),scrollbarButtonUp:(0,s.k)("scrollbar-button-up","triangle-up"),scrollbarButtonDown:(0,s.k)("scrollbar-button-down","triangle-down"),toolBarMore:(0,s.k)("toolbar-more","more"),quickInputBack:(0,s.k)("quick-input-back","arrow-left"),dropDownButton:(0,s.k)("drop-down-button",60084),symbolCustomColor:(0,s.k)("symbol-customcolor",60252),exportIcon:(0,s.k)("export",60332),workspaceUnspecified:(0,s.k)("workspace-unspecified",60355),newLine:(0,s.k)("newline",60394),thumbsDownFilled:(0,s.k)("thumbsdown-filled",60435),thumbsUpFilled:(0,s.k)("thumbsup-filled",60436),gitFetch:(0,s.k)("git-fetch",60445),lightbulbSparkleAutofix:(0,s.k)("lightbulb-sparkle-autofix",60447),debugBreakpointPending:(0,s.k)("debug-breakpoint-pending",60377)}}},18956:(e,t,i)=>{"use strict";i.d(t,{J:()=>o,k:()=>r});var s=i(631);const n=Object.create(null);function r(e,t){if((0,s.Kg)(t)){const i=n[t];if(void 0===i)throw new Error(`${e} references an unknown codicon: ${t}`);t=i}return n[e]=t,{id:e}}function o(){return n}},48495:(e,t,i)=>{"use strict";function s(e,t){const i=[],s=[];for(const n of e)t.has(n)||i.push(n);for(const n of t)e.has(n)||s.push(n);return{removed:i,added:s}}function n(e,t){const i=new Set;for(const s of t)e.has(s)&&i.add(s);return i}i.d(t,{E:()=>n,Z:()=>s})},47661:(e,t,i)=>{"use strict";function s(e,t){const i=Math.pow(10,t);return Math.round(e*i)/i}i.d(t,{$J:()=>o,Q1:()=>a,bU:()=>n,hB:()=>r});class n{constructor(e,t,i,n=1){this._rgbaBrand=void 0,this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,t)),this.b=0|Math.min(255,Math.max(0,i)),this.a=s(Math.max(Math.min(1,n),0),3)}static equals(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}}class r{constructor(e,t,i,n){this._hslaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=s(Math.max(Math.min(1,t),0),3),this.l=s(Math.max(Math.min(1,i),0),3),this.a=s(Math.max(Math.min(1,n),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(e){const t=e.r/255,i=e.g/255,s=e.b/255,n=e.a,o=Math.max(t,i,s),a=Math.min(t,i,s);let c=0,l=0;const h=(a+o)/2,d=o-a;if(d>0){switch(l=Math.min(h<=.5?d/(2*h):d/(2-2*h),1),o){case t:c=(i-s)/d+(i<s?6:0);break;case i:c=(s-t)/d+2;break;case s:c=(t-i)/d+4}c*=60,c=Math.round(c)}return new r(c,l,h,n)}static _hue2rgb(e,t,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}static toRGBA(e){const t=e.h/360,{s:i,l:s,a:o}=e;let a,c,l;if(0===i)a=c=l=s;else{const e=s<.5?s*(1+i):s+i-s*i,n=2*s-e;a=r._hue2rgb(n,e,t+1/3),c=r._hue2rgb(n,e,t),l=r._hue2rgb(n,e,t-1/3)}return new n(Math.round(255*a),Math.round(255*c),Math.round(255*l),o)}}class o{constructor(e,t,i,n){this._hsvaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=s(Math.max(Math.min(1,t),0),3),this.v=s(Math.max(Math.min(1,i),0),3),this.a=s(Math.max(Math.min(1,n),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(e){const t=e.r/255,i=e.g/255,s=e.b/255,n=Math.max(t,i,s),r=n-Math.min(t,i,s),a=0===n?0:r/n;let c;return c=0===r?0:n===t?((i-s)/r%6+6)%6:n===i?(s-t)/r+2:(t-i)/r+4,new o(Math.round(60*c),a,n,e.a)}static toRGBA(e){const{h:t,s:i,v:s,a:r}=e,o=s*i,a=o*(1-Math.abs(t/60%2-1)),c=s-o;let[l,h,d]=[0,0,0];return t<60?(l=o,h=a):t<120?(l=a,h=o):t<180?(h=o,d=a):t<240?(h=a,d=o):t<300?(l=a,d=o):t<=360&&(l=o,d=a),l=Math.round(255*(l+c)),h=Math.round(255*(h+c)),d=Math.round(255*(d+c)),new n(l,h,d,r)}}class a{static fromHex(e){return a.Format.CSS.parseHex(e)||a.red}static equals(e,t){return!e&&!t||!(!e||!t)&&e.equals(t)}get hsla(){return this._hsla?this._hsla:r.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:o.fromRGBA(this.rgba)}constructor(e){if(!e)throw new Error("Color needs a value");if(e instanceof n)this.rgba=e;else if(e instanceof r)this._hsla=e,this.rgba=r.toRGBA(e);else{if(!(e instanceof o))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=o.toRGBA(e)}}equals(e){return!!e&&n.equals(this.rgba,e.rgba)&&r.equals(this.hsla,e.hsla)&&o.equals(this.hsva,e.hsva)}getRelativeLuminance(){return s(.2126*a._relativeLuminanceForComponent(this.rgba.r)+.7152*a._relativeLuminanceForComponent(this.rgba.g)+.0722*a._relativeLuminanceForComponent(this.rgba.b),4)}static _relativeLuminanceForComponent(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}isLighter(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128}isLighterThan(e){return this.getRelativeLuminance()>e.getRelativeLuminance()}isDarkerThan(e){return this.getRelativeLuminance()<e.getRelativeLuminance()}lighten(e){return new a(new r(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*e,this.hsla.a))}darken(e){return new a(new r(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*e,this.hsla.a))}transparent(e){const{r:t,g:i,b:s,a:r}=this.rgba;return new a(new n(t,i,s,r*e))}isTransparent(){return 0===this.rgba.a}isOpaque(){return 1===this.rgba.a}opposite(){return new a(new n(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(e){if(this.isOpaque()||1!==e.rgba.a)return this;const{r:t,g:i,b:s,a:r}=this.rgba;return new a(new n(e.rgba.r-r*(e.rgba.r-t),e.rgba.g-r*(e.rgba.g-i),e.rgba.b-r*(e.rgba.b-s),1))}toString(){return this._toString||(this._toString=a.Format.CSS.format(this)),this._toString}static getLighterColor(e,t,i){if(e.isLighterThan(t))return e;i=i||.5;const s=e.getRelativeLuminance(),n=t.getRelativeLuminance();return i=i*(n-s)/n,e.lighten(i)}static getDarkerColor(e,t,i){if(e.isDarkerThan(t))return e;i=i||.5;const s=e.getRelativeLuminance();return i=i*(s-t.getRelativeLuminance())/s,e.darken(i)}static{this.white=new a(new n(255,255,255,1))}static{this.black=new a(new n(0,0,0,1))}static{this.red=new a(new n(255,0,0,1))}static{this.blue=new a(new n(0,0,255,1))}static{this.green=new a(new n(0,255,0,1))}static{this.cyan=new a(new n(0,255,255,1))}static{this.lightgrey=new a(new n(211,211,211,1))}static{this.transparent=new a(new n(0,0,0,0))}}!function(e){let t;!function(t){let i;!function(t){function i(e){const t=e.toString(16);return 2!==t.length?"0"+t:t}function s(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:case 65:return 10;case 98:case 66:return 11;case 99:case 67:return 12;case 100:case 68:return 13;case 101:case 69:return 14;case 102:case 70:return 15}return 0}t.formatRGB=function(t){return 1===t.rgba.a?`rgb(${t.rgba.r}, ${t.rgba.g}, ${t.rgba.b})`:e.Format.CSS.formatRGBA(t)},t.formatRGBA=function(e){return`rgba(${e.rgba.r}, ${e.rgba.g}, ${e.rgba.b}, ${+e.rgba.a.toFixed(2)})`},t.formatHSL=function(t){return 1===t.hsla.a?`hsl(${t.hsla.h}, ${(100*t.hsla.s).toFixed(2)}%, ${(100*t.hsla.l).toFixed(2)}%)`:e.Format.CSS.formatHSLA(t)},t.formatHSLA=function(e){return`hsla(${e.hsla.h}, ${(100*e.hsla.s).toFixed(2)}%, ${(100*e.hsla.l).toFixed(2)}%, ${e.hsla.a.toFixed(2)})`},t.formatHex=function(e){return`#${i(e.rgba.r)}${i(e.rgba.g)}${i(e.rgba.b)}`},t.formatHexA=function(t,s=!1){return s&&1===t.rgba.a?e.Format.CSS.formatHex(t):`#${i(t.rgba.r)}${i(t.rgba.g)}${i(t.rgba.b)}${i(Math.round(255*t.rgba.a))}`},t.format=function(t){return t.isOpaque()?e.Format.CSS.formatHex(t):e.Format.CSS.formatRGBA(t)},t.parseHex=function(t){const i=t.length;if(0===i)return null;if(35!==t.charCodeAt(0))return null;if(7===i){const i=16*s(t.charCodeAt(1))+s(t.charCodeAt(2)),r=16*s(t.charCodeAt(3))+s(t.charCodeAt(4)),o=16*s(t.charCodeAt(5))+s(t.charCodeAt(6));return new e(new n(i,r,o,1))}if(9===i){const i=16*s(t.charCodeAt(1))+s(t.charCodeAt(2)),r=16*s(t.charCodeAt(3))+s(t.charCodeAt(4)),o=16*s(t.charCodeAt(5))+s(t.charCodeAt(6)),a=16*s(t.charCodeAt(7))+s(t.charCodeAt(8));return new e(new n(i,r,o,a/255))}if(4===i){const i=s(t.charCodeAt(1)),r=s(t.charCodeAt(2)),o=s(t.charCodeAt(3));return new e(new n(16*i+i,16*r+r,16*o+o))}if(5===i){const i=s(t.charCodeAt(1)),r=s(t.charCodeAt(2)),o=s(t.charCodeAt(3)),a=s(t.charCodeAt(4));return new e(new n(16*i+i,16*r+r,16*o+o,(16*a+a)/255))}return null}}(i=t.CSS||(t.CSS={}))}(t=e.Format||(e.Format={}))}(a||(a={}))},17799:(e,t,i)=>{"use strict";i.d(t,{VX:()=>a,Vq:()=>c,Y:()=>h,gf:()=>o,jt:()=>u});var s=i(25890),n=i(42522),r=i(58255);function o(e){return{asString:async()=>e,asFile:()=>{},value:"string"===typeof e?e:void 0}}function a(e,t,i){const s={id:(0,r.b)(),name:e,uri:t,data:i};return{asString:async()=>"",asFile:()=>s,value:void 0}}class c{constructor(){this._entries=new Map}get size(){let e=0;for(const t of this._entries)e++;return e}has(e){return this._entries.has(this.toKey(e))}matches(e){const t=[...this._entries.keys()];return n.f.some(this,(([e,t])=>t.asFile()))&&t.push("files"),d(l(e),t)}get(e){return this._entries.get(this.toKey(e))?.[0]}append(e,t){const i=this._entries.get(e);i?i.push(t):this._entries.set(this.toKey(e),[t])}replace(e,t){this._entries.set(this.toKey(e),[t])}delete(e){this._entries.delete(this.toKey(e))}*[Symbol.iterator](){for(const[e,t]of this._entries)for(const i of t)yield[e,i]}toKey(e){return l(e)}}function l(e){return e.toLowerCase()}function h(e,t){return d(l(e),t.map(l))}function d(e,t){if("*/*"===e)return t.length>0;if(t.includes(e))return!0;const i=e.match(/^([a-z]+)\/([a-z]+|\*)$/i);if(!i)return!1;const[s,n,r]=i;return"*"===r&&t.some((e=>e.startsWith(n+"/")))}const u=Object.freeze({create:e=>(0,s.dM)(e.map((e=>e.toString()))).join("\r\n"),split:e=>e.split("\r\n"),parse:e=>u.split(e).filter((e=>!e.startsWith("#")))})},58694:(e,t,i)=>{"use strict";function s(e,t,i){let s=null,n=null;if("function"===typeof i.value?(s="value",n=i.value,0!==n.length&&console.warn("Memoize should only be used in functions with zero parameters")):"function"===typeof i.get&&(s="get",n=i.get),!n)throw new Error("not supported");const r=`$memoize$${t}`;i[s]=function(...e){return this.hasOwnProperty(r)||Object.defineProperty(this,r,{configurable:!1,enumerable:!1,writable:!1,value:n.apply(this,e)}),this[r]}}i.d(t,{B:()=>s})},83993:(e,t,i)=>{"use strict";i.d(t,{uP:()=>h,F1:()=>o});class s{constructor(e,t,i,s){this.originalStart=e,this.originalLength=t,this.modifiedStart=i,this.modifiedLength=s}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}var n=i(85600);class r{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let i=0,s=e.length;i<s;i++)t[i]=e.charCodeAt(i);return t}}function o(e,t,i){return new h(new r(e),new r(t)).ComputeDiff(i).changes}class a{static Assert(e,t){if(!e)throw new Error(t)}}class c{static Copy(e,t,i,s,n){for(let r=0;r<n;r++)i[s+r]=e[t+r]}static Copy2(e,t,i,s,n){for(let r=0;r<n;r++)i[s+r]=e[t+r]}}class l{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 s(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}}class h{constructor(e,t,i=null){this.ContinueProcessingPredicate=i,this._originalSequence=e,this._modifiedSequence=t;const[s,n,r]=h._getElements(e),[o,a,c]=h._getElements(t);this._hasStrings=r&&c,this._originalStringElements=s,this._originalElementsOrHash=n,this._modifiedStringElements=o,this._modifiedElementsOrHash=a,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"===typeof e[0]}static _getElements(e){const t=e.getElements();if(h._isStringArray(t)){const e=new Int32Array(t.length);for(let i=0,s=t.length;i<s;i++)e[i]=(0,n.e2)(t[i],0);return[t,e,!0]}return t instanceof Int32Array?[[],t,!1]:[[],new Int32Array(t),!1]}ElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._modifiedStringElements[t])}ElementsAreStrictEqual(e,t){if(!this.ElementsAreEqual(e,t))return!1;return h._getStrictElement(this._originalSequence,e)===h._getStrictElement(this._modifiedSequence,t)}static _getStrictElement(e,t){return"function"===typeof e.getStrictElement?e.getStrictElement(t):null}OriginalElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._originalElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._originalStringElements[t])}ModifiedElementsAreEqual(e,t){return this._modifiedElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._modifiedStringElements[e]===this._modifiedStringElements[t])}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,t,i,s,n){const r=[!1];let o=this.ComputeDiffRecursive(e,t,i,s,r);return n&&(o=this.PrettifyChanges(o)),{quitEarly:r[0],changes:o}}ComputeDiffRecursive(e,t,i,n,r){for(r[0]=!1;e<=t&&i<=n&&this.ElementsAreEqual(e,i);)e++,i++;for(;t>=e&&n>=i&&this.ElementsAreEqual(t,n);)t--,n--;if(e>t||i>n){let r;return i<=n?(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),r=[new s(e,0,i,n-i+1)]):e<=t?(a.Assert(i===n+1,"modifiedStart should only be one more than modifiedEnd"),r=[new s(e,t-e+1,i,0)]):(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),a.Assert(i===n+1,"modifiedStart should only be one more than modifiedEnd"),r=[]),r}const o=[0],c=[0],l=this.ComputeRecursionPoint(e,t,i,n,o,c,r),h=o[0],d=c[0];if(null!==l)return l;if(!r[0]){const o=this.ComputeDiffRecursive(e,h,i,d,r);let a=[];return a=r[0]?[new s(h+1,t-(h+1)+1,d+1,n-(d+1)+1)]:this.ComputeDiffRecursive(h+1,t,d+1,n,r),this.ConcatenateChanges(o,a)}return[new s(e,t-e+1,i,n-i+1)]}WALKTRACE(e,t,i,n,r,o,a,c,h,d,u,g,p,m,f,_,v,C){let E=null,b=null,S=new l,y=t,w=i,R=p[0]-_[0]-n,L=-1073741824,T=this.m_forwardHistory.length-1;do{const t=R+e;t===y||t<w&&h[t-1]<h[t+1]?(m=(u=h[t+1])-R-n,u<L&&S.MarkNextChange(),L=u,S.AddModifiedElement(u+1,m),R=t+1-e):(m=(u=h[t-1]+1)-R-n,u<L&&S.MarkNextChange(),L=u-1,S.AddOriginalElement(u,m+1),R=t-1-e),T>=0&&(e=(h=this.m_forwardHistory[T])[0],y=1,w=h.length-1)}while(--T>=-1);if(E=S.getReverseChanges(),C[0]){let e=p[0]+1,t=_[0]+1;if(null!==E&&E.length>0){const i=E[E.length-1];e=Math.max(e,i.getOriginalEnd()),t=Math.max(t,i.getModifiedEnd())}b=[new s(e,g-e+1,t,f-t+1)]}else{S=new l,y=o,w=a,R=p[0]-_[0]-c,L=1073741824,T=v?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=R+r;e===y||e<w&&d[e-1]>=d[e+1]?(m=(u=d[e+1]-1)-R-c,u>L&&S.MarkNextChange(),L=u+1,S.AddOriginalElement(u+1,m+1),R=e+1-r):(m=(u=d[e-1])-R-c,u>L&&S.MarkNextChange(),L=u,S.AddModifiedElement(u+1,m+1),R=e-1-r),T>=0&&(r=(d=this.m_reverseHistory[T])[0],y=1,w=d.length-1)}while(--T>=-1);b=S.getChanges()}return this.ConcatenateChanges(E,b)}ComputeRecursionPoint(e,t,i,n,r,o,a){let l=0,h=0,d=0,u=0,g=0,p=0;e--,i--,r[0]=0,o[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const m=t-e+(n-i),f=m+1,_=new Int32Array(f),v=new Int32Array(f),C=n-i,E=t-e,b=e-i,S=t-n,y=(E-C)%2===0;_[C]=e,v[E]=t,a[0]=!1;for(let w=1;w<=m/2+1;w++){let m=0,R=0;d=this.ClipDiagonalBound(C-w,w,C,f),u=this.ClipDiagonalBound(C+w,w,C,f);for(let e=d;e<=u;e+=2){l=e===d||e<u&&_[e-1]<_[e+1]?_[e+1]:_[e-1]+1,h=l-(e-C)-b;const i=l;for(;l<t&&h<n&&this.ElementsAreEqual(l+1,h+1);)l++,h++;if(_[e]=l,l+h>m+R&&(m=l,R=h),!y&&Math.abs(e-E)<=w-1&&l>=v[e])return r[0]=l,o[0]=h,i<=v[e]&&w<=1448?this.WALKTRACE(C,d,u,b,E,g,p,S,_,v,l,t,r,h,n,o,y,a):null}const L=(m-e+(R-i)-w)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(m,L))return a[0]=!0,r[0]=m,o[0]=R,L>0&&w<=1448?this.WALKTRACE(C,d,u,b,E,g,p,S,_,v,l,t,r,h,n,o,y,a):(e++,i++,[new s(e,t-e+1,i,n-i+1)]);g=this.ClipDiagonalBound(E-w,w,E,f),p=this.ClipDiagonalBound(E+w,w,E,f);for(let s=g;s<=p;s+=2){l=s===g||s<p&&v[s-1]>=v[s+1]?v[s+1]-1:v[s-1],h=l-(s-E)-S;const c=l;for(;l>e&&h>i&&this.ElementsAreEqual(l,h);)l--,h--;if(v[s]=l,y&&Math.abs(s-C)<=w&&l<=_[s])return r[0]=l,o[0]=h,c>=_[s]&&w<=1448?this.WALKTRACE(C,d,u,b,E,g,p,S,_,v,l,t,r,h,n,o,y,a):null}if(w<=1447){let e=new Int32Array(u-d+2);e[0]=C-d+1,c.Copy2(_,d,e,1,u-d+1),this.m_forwardHistory.push(e),e=new Int32Array(p-g+2),e[0]=E-g+1,c.Copy2(v,g,e,1,p-g+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(C,d,u,b,E,g,p,S,_,v,l,t,r,h,n,o,y,a)}PrettifyChanges(e){for(let t=0;t<e.length;t++){const i=e[t],s=t<e.length-1?e[t+1].originalStart:this._originalElementsOrHash.length,n=t<e.length-1?e[t+1].modifiedStart:this._modifiedElementsOrHash.length,r=i.originalLength>0,o=i.modifiedLength>0;for(;i.originalStart+i.originalLength<s&&i.modifiedStart+i.modifiedLength<n&&(!r||this.OriginalElementsAreEqual(i.originalStart,i.originalStart+i.originalLength))&&(!o||this.ModifiedElementsAreEqual(i.modifiedStart,i.modifiedStart+i.modifiedLength));){const e=this.ElementsAreStrictEqual(i.originalStart,i.modifiedStart);if(this.ElementsAreStrictEqual(i.originalStart+i.originalLength,i.modifiedStart+i.modifiedLength)&&!e)break;i.originalStart++,i.modifiedStart++}const a=[null];t<e.length-1&&this.ChangesOverlap(e[t],e[t+1],a)&&(e[t]=a[0],e.splice(t+1,1),t--)}for(let t=e.length-1;t>=0;t--){const i=e[t];let s=0,n=0;if(t>0){const i=e[t-1];s=i.originalStart+i.originalLength,n=i.modifiedStart+i.modifiedLength}const r=i.originalLength>0,o=i.modifiedLength>0;let a=0,c=this._boundaryScore(i.originalStart,i.originalLength,i.modifiedStart,i.modifiedLength);for(let e=1;;e++){const t=i.originalStart-e,l=i.modifiedStart-e;if(t<s||l<n)break;if(r&&!this.OriginalElementsAreEqual(t,t+i.originalLength))break;if(o&&!this.ModifiedElementsAreEqual(l,l+i.modifiedLength))break;const h=(t===s&&l===n?5:0)+this._boundaryScore(t,i.originalLength,l,i.modifiedLength);h>c&&(c=h,a=e)}i.originalStart-=a,i.modifiedStart-=a;const 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,i=e.length;t<i;t++){const i=e[t-1],s=e[t],n=s.originalStart-i.originalStart-i.originalLength,r=i.originalStart,o=s.originalStart+s.originalLength,a=o-r,c=i.modifiedStart,l=s.modifiedStart+s.modifiedLength,h=l-c;if(n<5&&a<20&&h<20){const e=this._findBetterContiguousSequence(r,a,c,h,n);if(e){const[t,r]=e;t===i.originalStart+i.originalLength&&r===i.modifiedStart+i.modifiedLength||(i.originalLength=t-i.originalStart,i.modifiedLength=r-i.modifiedStart,s.originalStart=t+n,s.modifiedStart=r+n,s.originalLength=o-s.originalStart,s.modifiedLength=l-s.modifiedStart)}}}return e}_findBetterContiguousSequence(e,t,i,s,n){if(t<n||s<n)return null;const r=e+t-n+1,o=i+s-n+1;let a=0,c=0,l=0;for(let h=e;h<r;h++)for(let e=i;e<o;e++){const t=this._contiguousSequenceScore(h,e,n);t>0&&t>a&&(a=t,c=h,l=e)}return a>0?[c,l]:null}_contiguousSequenceScore(e,t,i){let s=0;for(let n=0;n<i;n++){if(!this.ElementsAreEqual(e+n,t+n))return 0;s+=this._originalStringElements[e+n].length}return s}_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){const i=e+t;if(this._OriginalIsBoundary(i-1)||this._OriginalIsBoundary(i))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){const i=e+t;if(this._ModifiedIsBoundary(i-1)||this._ModifiedIsBoundary(i))return!0}return!1}_boundaryScore(e,t,i,s){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(i,s)?1:0)}ConcatenateChanges(e,t){const i=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],i)){const s=new Array(e.length+t.length-1);return c.Copy(e,0,s,0,e.length-1),s[e.length-1]=i[0],c.Copy(t,1,s,e.length,t.length-1),s}{const i=new Array(e.length+t.length);return c.Copy(e,0,i,0,e.length),c.Copy(t,0,i,e.length,t.length),i}}ChangesOverlap(e,t,i){if(a.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),a.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){const n=e.originalStart;let r=e.originalLength;const o=e.modifiedStart;let a=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(r=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(a=t.modifiedStart+t.modifiedLength-e.modifiedStart),i[0]=new s(n,r,o,a),!0}return i[0]=null,!1}ClipDiagonalBound(e,t,i,s){if(e>=0&&e<s)return e;const n=t%2===0;if(e<0){return n===(i%2===0)?0:1}return n===((s-i-1)%2===0)?s-1:s-2}}},51241:(e,t,i)=>{"use strict";i.d(t,{KC:()=>a,S3:()=>r,dB:()=>c,nx:()=>n,r:()=>o});var s=i(25890);const n=(e,t)=>e===t;function r(e=n){return(t,i)=>s.aI(t,i,e)}function o(){return(e,t)=>e.equals(t)}function a(e,t,i){if(void 0!==i){return void 0===e||null===e||void 0===t||null===t?t===e:i(e,t)}{const t=e;return(e,i)=>void 0===e||null===e||void 0===i||null===i?i===e:t(e,i)}}function c(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(!c(e[i],t[i]))return!1;return!0}if(e&&"object"===typeof e&&t&&"object"===typeof t&&Object.getPrototypeOf(e)===Object.prototype&&Object.getPrototypeOf(t)===Object.prototype){const i=e,s=t,n=Object.keys(i),r=Object.keys(s),o=new Set(r);if(n.length!==r.length)return!1;for(const e of n){if(!o.has(e))return!1;if(!c(i[e],s[e]))return!1}return!0}return!1}new WeakMap},70125:(e,t,i)=>{"use strict";i.d(t,{r:()=>l});var s=i(25890),n=i(631),r=i(78209);function o(e,t){return t&&(e.stack||e.stacktrace)?r.kg("stackTrace.format","{0}: {1}",c(e),a(e.stack)||a(e.stacktrace)):c(e)}function a(e){return Array.isArray(e)?e.join("\n"):e}function c(e){return"ERR_UNC_HOST_NOT_ALLOWED"===e.code?`${e.message}. Please update the 'security.allowedUNCHosts' setting if you want to allow this host.`:"string"===typeof e.code&&"number"===typeof e.errno&&"string"===typeof e.syscall?r.kg("nodeExceptionMessage","A system error occurred ({0})",e.message):e.message||r.kg("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}function l(e=null,t=!1){if(!e)return r.kg("error.defaultMessage","An unknown error occurred. Please consult the log for more details.");if(Array.isArray(e)){const i=s.Yc(e),n=l(i[0],t);return i.length>1?r.kg("error.moreErrors","{0} ({1} errors in total)",n,i.length):n}if(n.Kg(e))return e;if(e.detail){const i=e.detail;if(i.error)return o(i.error,t);if(i.exception)return o(i.exception,t)}return e.stack?o(e,t):e.message?e.message:r.kg("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}},64383:(e,t,i)=>{"use strict";i.d(t,{AL:()=>l,D7:()=>m,EM:()=>g,MB:()=>c,M_:()=>r,Qg:()=>d,aD:()=>h,cU:()=>o,dz:()=>n,iH:()=>u});const s=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((()=>{if(e.stack){if(p.isErrorNoTelemetry(e))throw new p(e.message+"\n\n"+e.stack);throw new Error(e.message+"\n\n"+e.stack)}throw e}),0)}}emit(e){this.listeners.forEach((t=>{t(e)}))}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function n(e){c(e)||s.onUnexpectedError(e)}function r(e){c(e)||s.onUnexpectedExternalError(e)}function o(e){if(e instanceof Error){const{name:t,message:i}=e;return{$isError:!0,name:t,message:i,stack:e.stacktrace||e.stack,noTelemetry:p.isErrorNoTelemetry(e)}}return e}const a="Canceled";function c(e){return e instanceof l||e instanceof Error&&e.name===a&&e.message===a}class l extends Error{constructor(){super(a),this.name=this.message}}function h(){const e=new Error(a);return e.name=e.message,e}function d(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")}function u(e){return e?new Error(`Illegal state: ${e}`):new Error("Illegal state")}class g extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class p extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof p)return e;const t=new p;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return"CodeExpectedError"===e.name}}class m extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,m.prototype)}}},41234:(e,t,i)=>{"use strict";i.d(t,{Jh:()=>c,QT:()=>b,Qy:()=>_,Wj:()=>w,_B:()=>S,at:()=>y,fV:()=>C,uI:()=>E,vl:()=>f});var s=i(64383),n=i(6921),r=i(5662),o=i(58925),a=i(78381);var c;!function(e){function t(e){false}function i(e){return(t,i=null,s)=>{let n,r=!1;return n=e((e=>{if(!r)return n?n.dispose():r=!0,t.call(i,e)}),null,s),r&&n.dispose(),n}}function s(e,t,i){return o(((i,s=null,n)=>e((e=>i.call(s,t(e))),null,n)),i)}function n(e,t,i){return o(((i,s=null,n)=>e((e=>t(e)&&i.call(s,e)),null,n)),i)}function o(e,i){let s;const n={onWillAddFirstListener(){s=e(r.fire,r)},onDidRemoveLastListener(){s?.dispose()}};i||t();const r=new f(n);return i?.add(r),r.event}function a(e,i,s=100,n=!1,r=!1,o,a){let c,l,h,d,u=0;const g={leakWarningThreshold:o,onWillAddFirstListener(){c=e((e=>{u++,l=i(l,e),n&&!h&&(p.fire(l),l=void 0),d=()=>{const e=l;l=void 0,h=void 0,(!n||u>1)&&p.fire(e),u=0},"number"===typeof s?(clearTimeout(h),h=setTimeout(d,s)):void 0===h&&(h=0,queueMicrotask(d))}))},onWillRemoveListener(){r&&u>0&&d?.()},onDidRemoveLastListener(){d=void 0,c.dispose()}};a||t();const p=new f(g);return a?.add(p),p.event}e.None=()=>r.jG.None,e.defer=function(e,t){return a(e,(()=>{}),0,void 0,!0,void 0,t)},e.once=i,e.onceIf=function(t,i){return e.once(e.filter(t,i))},e.map=s,e.forEach=function(e,t,i){return o(((i,s=null,n)=>e((e=>{t(e),i.call(s,e)}),null,n)),i)},e.filter=n,e.signal=function(e){return e},e.any=function(...e){return(t,i=null,s)=>function(e,t){t instanceof Array?t.push(e):t&&t.add(e);return e}((0,r.qE)(...e.map((e=>e((e=>t.call(i,e)))))),s)},e.reduce=function(e,t,i,n){let r=i;return s(e,(e=>(r=t(r,e),r)),n)},e.debounce=a,e.accumulate=function(t,i=0,s){return e.debounce(t,((e,t)=>e?(e.push(t),e):[t]),i,void 0,!0,void 0,s)},e.latch=function(e,t=(e,t)=>e===t,i){let s,r=!0;return n(e,(e=>{const i=r||!t(e,s);return r=!1,s=e,i}),i)},e.split=function(t,i,s){return[e.filter(t,i,s),e.filter(t,(e=>!i(e)),s)]},e.buffer=function(e,t=!1,i=[],s){let n=i.slice(),r=e((e=>{n?n.push(e):a.fire(e)}));s&&s.add(r);const o=()=>{n?.forEach((e=>a.fire(e))),n=null},a=new f({onWillAddFirstListener(){r||(r=e((e=>a.fire(e))),s&&s.add(r))},onDidAddFirstListener(){n&&(t?setTimeout(o):o())},onDidRemoveLastListener(){r&&r.dispose(),r=null}});return s&&s.add(a),a.event},e.chain=function(e,t){return(i,s,n)=>{const r=t(new l);return e((function(e){const t=r.evaluate(e);t!==c&&i.call(s,t)}),void 0,n)}};const c=Symbol("HaltChainable");class l{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:c)),this}reduce(e,t){let i=t;return this.steps.push((t=>(i=e(i,t),i))),this}latch(e=(e,t)=>e===t){let t,i=!0;return this.steps.push((s=>{const n=i||!e(s,t);return i=!1,t=s,n?s:c})),this}evaluate(e){for(const t of this.steps)if((e=t(e))===c)break;return e}}e.fromNodeEventEmitter=function(e,t,i=e=>e){const s=(...e)=>n.fire(i(...e)),n=new f({onWillAddFirstListener:()=>e.on(t,s),onDidRemoveLastListener:()=>e.removeListener(t,s)});return n.event},e.fromDOMEventEmitter=function(e,t,i=e=>e){const s=(...e)=>n.fire(i(...e)),n=new f({onWillAddFirstListener:()=>e.addEventListener(t,s),onDidRemoveLastListener:()=>e.removeEventListener(t,s)});return n.event},e.toPromise=function(e){return new Promise((t=>i(e)(t)))},e.fromPromise=function(e){const t=new f;return e.then((e=>{t.fire(e)}),(()=>{t.fire(void 0)})).finally((()=>{t.dispose()})),t.event},e.forward=function(e,t){return e((e=>t.fire(e)))},e.runAndSubscribe=function(e,t,i){return t(i),e((e=>t(e)))};class h{constructor(e,i){this._observable=e,this._counter=0,this._hasChanged=!1;const s={onWillAddFirstListener:()=>{e.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{e.removeObserver(this)}};i||t(),this.emitter=new f(s),i&&i.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,0===this._counter&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}e.fromObservable=function(e,t){return new h(e,t).emitter.event},e.fromObservableLight=function(e){return(t,i,s)=>{let n=0,o=!1;const a={beginUpdate(){n++},endUpdate(){n--,0===n&&(e.reportChanges(),o&&(o=!1,t.call(i)))},handlePossibleChange(){},handleChange(){o=!0}};e.addObserver(a),e.reportChanges();const c={dispose(){e.removeObserver(a)}};return s instanceof r.Cm?s.add(c):Array.isArray(s)&&s.push(c),c}}}(c||(c={}));class l{static{this.all=new Set}static{this._idPool=0}constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${l._idPool++}`,l.all.add(this)}start(e){this._stopWatch=new a.W,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}class h{static{this._idPool=1}constructor(e,t,i=(h._idPool++).toString(16).padStart(3,"0")){this._errorHandler=e,this.threshold=t,this.name=i,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(e,t){const i=this.threshold;if(i<=0||t<i)return;this._stacks||(this._stacks=new Map);const s=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,s+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=.5*i;const[e,s]=this.getMostFrequentStack(),n=`[${this.name}] potential listener LEAK detected, having ${t} listeners already. MOST frequent listener (${s}):`;console.warn(n),console.warn(e);const r=new u(n,e);this._errorHandler(r)}return()=>{const t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}getMostFrequentStack(){if(!this._stacks)return;let e,t=0;for(const[i,s]of this._stacks)(!e||t<s)&&(e=[i,s],t=s);return e}}class d{static create(){const e=new Error;return new d(e.stack??"")}constructor(e){this.value=e}print(){console.warn(this.value.split("\n").slice(2).join("\n"))}}class u extends Error{constructor(e,t){super(e),this.name="ListenerLeakError",this.stack=t}}class g extends Error{constructor(e,t){super(e),this.name="ListenerRefusalError",this.stack=t}}class p{constructor(e){this.value=e}}let m;class f{constructor(e){this._size=0,this._options=e,this._leakageMon=this._options?.leakWarningThreshold?new h(e?.onListenerError??s.dz,this._options?.leakWarningThreshold??-1):void 0,this._perfMon=this._options?._profName?new l(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,t,i)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const 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);const t=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],i=new g(`${e}. HINT: Stack shows most frequent listener (${t[1]}-times)`,t[0]);return(this._options?.onListenerError||s.dz)(i),r.jG.None}if(this._disposed)return r.jG.None;t&&(e=e.bind(t));const n=new p(e);let o;this._leakageMon&&this._size>=Math.ceil(.2*this._leakageMon.threshold)&&(n.stack=d.create(),o=this._leakageMon.check(n.stack,this._size+1)),this._listeners?this._listeners instanceof p?(this._deliveryQueue??=new v,this._listeners=[this._listeners,n]):this._listeners.push(n):(this._options?.onWillAddFirstListener?.(this),this._listeners=n,this._options?.onDidAddFirstListener?.(this)),this._size++;const a=(0,r.s)((()=>{m?.unregister(a),o?.(),this._removeListener(n)}));if(i instanceof r.Cm?i.add(a):Array.isArray(i)&&i.push(a),m){const e=(new Error).stack.split("\n").slice(2,3).join("\n").trim(),t=/(file:|vscode-file:\/\/vscode-app)?(\/[^:]*:\d+:\d+)/.exec(e);m.register(a,t?.[2]??e,a)}return a},this._event}_removeListener(e){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(1===this._size)return this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),void(this._size=0);const t=this._listeners,i=t.indexOf(e);if(-1===i)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,t[i]=void 0;const s=this._deliveryQueue.current===this;if(2*this._size<=t.length){let e=0;for(let i=0;i<t.length;i++)t[i]?t[e++]=t[i]:s&&(this._deliveryQueue.end--,e<this._deliveryQueue.i&&this._deliveryQueue.i--);t.length=e}}_deliver(e,t){if(!e)return;const i=this._options?.onListenerError||s.dz;if(i)try{e.value(t)}catch(n){i(n)}else e.value(t)}_deliverQueue(e){const 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 p)this._deliver(this._listeners,e);else{const t=this._deliveryQueue;t.enqueue(this,e,this._listeners.length),this._deliverQueue(t)}else;this._perfMon?.stop()}hasListeners(){return this._size>0}}const _=()=>new v;class v{constructor(){this.i=-1,this.end=0}enqueue(e,t,i){this.i=0,this.end=i,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}class C extends f{constructor(e){super(e),this._isPaused=0,this._eventQueue=new o.w,this._mergeFn=e?.merge}pause(){this._isPaused++}resume(){if(0!==this._isPaused&&0===--this._isPaused)if(this._mergeFn){if(this._eventQueue.size>0){const e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}}else for(;!this._isPaused&&0!==this._eventQueue.size;)super.fire(this._eventQueue.shift())}fire(e){this._size&&(0!==this._isPaused?this._eventQueue.push(e):super.fire(e))}}class E extends C{constructor(e){super(e),this._delay=e.delay??100}fire(e){this._handle||(this.pause(),this._handle=setTimeout((()=>{this._handle=void 0,this.resume()}),this._delay)),super.fire(e)}}class b extends f{constructor(e){super(e),this._queuedEvents=[],this._mergeFn=e?.merge}fire(e){this.hasListeners()&&(this._queuedEvents.push(e),1===this._queuedEvents.length&&queueMicrotask((()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach((e=>super.fire(e))),this._queuedEvents=[]})))}}class S{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new f({onWillAddFirstListener:()=>this.onFirstListenerAdd(),onDidRemoveLastListener:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(e){const t={event:e,listener:null};this.events.push(t),this.hasListeners&&this.hook(t);return(0,r.s)((0,n.P)((()=>{this.hasListeners&&this.unhook(t);const e=this.events.indexOf(t);this.events.splice(e,1)})))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach((e=>this.hook(e)))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach((e=>this.unhook(e)))}hook(e){e.listener=e.event((e=>this.emitter.fire(e)))}unhook(e){e.listener?.dispose(),e.listener=null}dispose(){this.emitter.dispose();for(const e of this.events)e.listener?.dispose();this.events=[]}}class y{constructor(){this.data=[]}wrapEvent(e,t,i){return(s,n,r)=>e((e=>{const r=this.data[this.data.length-1];if(!t)return void(r?r.buffers.push((()=>s.call(n,e))):s.call(n,e));const o=r;o?(o.items??=[],o.items.push(e),0===o.buffers.length&&r.buffers.push((()=>{o.reducedResult??=i?o.items.reduce(t,i):o.items.reduce(t),s.call(n,o.reducedResult)}))):s.call(n,t(i,e))}),void 0,r)}bufferEvents(e){const t={buffers:new Array};this.data.push(t);const i=e();return this.data.pop(),t.buffers.forEach((e=>e())),i}}class w{constructor(){this.listening=!1,this.inputEvent=c.None,this.inputEventListener=r.jG.None,this.emitter=new f({onDidAddFirstListener:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onDidRemoveLastListener:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},79326:(e,t,i)=>{"use strict";i.d(t,{No:()=>u,TH:()=>a,Zn:()=>l,_1:()=>h,kb:()=>c});var s=i(74027),n=i(98067),r=i(91508);function o(e){return 47===e||92===e}function a(e){return e.replace(/[\\/]/g,s.SA.sep)}function c(e){return-1===e.indexOf("/")&&(e=a(e)),/^[a-zA-Z]:(\/|$)/.test(e)&&(e="/"+e),e}function l(e,t=s.SA.sep){if(!e)return"";const i=e.length,n=e.charCodeAt(0);if(o(n)){if(o(e.charCodeAt(1))&&!o(e.charCodeAt(2))){let s=3;const n=s;for(;s<i&&!o(e.charCodeAt(s));s++);if(n!==s&&!o(e.charCodeAt(s+1)))for(s+=1;s<i;s++)if(o(e.charCodeAt(s)))return e.slice(0,s+1).replace(/[\\/]/g,t)}return t}if(d(n)&&58===e.charCodeAt(1))return o(e.charCodeAt(2))?e.slice(0,2)+t:e.slice(0,2);let r=e.indexOf("://");if(-1!==r)for(r+=3;r<i;r++)if(o(e.charCodeAt(r)))return e.slice(0,r+1);return""}function h(e,t,i,n=s.Vn){if(e===t)return!0;if(!e||!t)return!1;if(t.length>e.length)return!1;if(i){if(!(0,r.ns)(e,t))return!1;if(t.length===e.length)return!0;let i=t.length;return t.charAt(t.length-1)===n&&i--,e.charAt(i)===n}return t.charAt(t.length-1)!==n&&(t+=n),0===e.indexOf(t)}function d(e){return e>=65&&e<=90||e>=97&&e<=122}function u(e,t=n.uF){return!!t&&(d(e.charCodeAt(0))&&58===e.charCodeAt(1))}},26690:(e,t,i)=>{"use strict";i.d(t,{ne:()=>ie,Nd:()=>se,Jo:()=>W,WJ:()=>V,dt:()=>ne,uU:()=>oe,Tt:()=>f,yr:()=>H,O:()=>B,WP:()=>p,dE:()=>_,J1:()=>O,or:()=>g});var s=i(74320);function n(e){const t=function(e){if(r=0,a(e,c,4352),r>0)return o.subarray(0,r);if(a(e,l,4449),r>0)return o.subarray(0,r);if(a(e,h,4520),r>0)return o.subarray(0,r);if(a(e,d,12593),r)return o.subarray(0,r);if(e>=44032&&e<=55203){const t=e-44032,i=t%588,s=Math.floor(t/588),n=Math.floor(i/28),u=i%28-1;if(s<c.length?a(s,c,0):4352+s-12593<d.length&&a(4352+s,d,12593),n<l.length?a(n,l,0):4449+n-12593<d.length&&a(4449+n-12593,d,12593),u>=0&&(u<h.length?a(u,h,0):4520+u-12593<d.length&&a(4520+u-12593,d,12593)),r>0)return o.subarray(0,r)}return}(e);if(t&&t.length>0)return new Uint32Array(t)}let r=0;const o=new Uint32Array(10);function a(e,t,i){e>=i&&e<i+t.length&&function(e){if(0===e)return;o[r++]=255&e,e>>8&&(o[r++]=e>>8&255);e>>16&&(o[r++]=e>>16&255)}(t[e-i])}const c=new Uint8Array([114,82,115,101,69,102,97,113,81,116,84,100,119,87,99,122,120,118,103]),l=new Uint16Array([107,111,105,79,106,112,117,80,104,27496,28520,27752,121,110,27246,28782,27758,98,109,27757,108]),h=new Uint16Array([114,82,29810,115,30579,26483,101,102,29286,24934,29030,29798,30822,30310,26470,97,113,29809,116,84,100,119,99,122,120,118,103]),d=new Uint16Array([114,82,29810,115,30579,26483,101,69,102,29286,24934,29030,29798,30822,30310,26470,97,113,81,29809,116,84,100,119,87,99,122,120,118,103,107,111,105,79,106,112,117,80,104,27496,28520,27752,121,110,27246,28782,27758,98,109,27757,108]);var u=i(91508);function g(...e){return function(t,i){for(let s=0,n=e.length;s<n;s++){const n=e[s](t,i);if(n)return n}return null}}m.bind(void 0,!1);const p=m.bind(void 0,!0);function m(e,t,i){if(!i||i.length<t.length)return null;let s;return s=e?u.ns(i,t):0===i.indexOf(t),s?t.length>0?[{start:0,end:t.length}]:[]:null}function f(e,t){const i=t.toLowerCase().indexOf(e.toLowerCase());return-1===i?null:[{start:i,end:i+e.length}]}function _(e,t){return v(e.toLowerCase(),t.toLowerCase(),0,0)}function v(e,t,i,s){if(i===e.length)return[];if(s===t.length)return null;if(e[i]===t[s]){let n=null;return(n=v(e,t,i+1,s+1))?k({start:s,end:s+1},n):null}return v(e,t,i,s+1)}function C(e){return 97<=e&&e<=122}function E(e){return 65<=e&&e<=90}function b(e){return 48<=e&&e<=57}function S(e){return 32===e||9===e||10===e||13===e}const y=new Set;function w(e){return S(e)||y.has(e)}function R(e,t){return e===t||w(e)&&w(t)}"()[]{}<>`'\"-/;:,.?!".split("").forEach((e=>y.add(e.charCodeAt(0))));const L=new Map;function T(e){if(L.has(e))return L.get(e);let t;const i=n(e);return i&&(t=i),L.set(e,t),t}function x(e){return C(e)||E(e)||b(e)}function k(e,t){return 0===t.length?t=[e]:e.end===t[0].start?t[0].start=e.start:t.unshift(e),t}function A(e,t){for(let i=t;i<e.length;i++){const t=e.charCodeAt(i);if(E(t)||b(t)||i>0&&!x(e.charCodeAt(i-1)))return i}return e.length}function N(e,t,i,s){if(i===e.length)return[];if(s===t.length)return null;if(e[i]!==t[s].toLowerCase())return null;{let n=null,r=s+1;for(n=N(e,t,i+1,s+1);!n&&(r=A(t,r))<t.length;)n=N(e,t,i+1,r),r++;return null===n?null:k({start:s,end:s+1},n)}}function I(e,t){if(!t)return null;if(0===(t=t.trim()).length)return null;if(!function(e){let t=0,i=0,s=0,n=0;for(let r=0;r<e.length;r++)s=e.charCodeAt(r),E(s)&&t++,C(s)&&i++,S(s)&&n++;return 0!==t&&0!==i||0!==n?t<=5:e.length<=30}(e))return null;t.length>60&&(t=t.substring(0,60));const i=function(e){let t=0,i=0,s=0,n=0,r=0;for(let o=0;o<e.length;o++)r=e.charCodeAt(o),E(r)&&t++,C(r)&&i++,x(r)&&s++,b(r)&&n++;return{upperPercent:t/e.length,lowerPercent:i/e.length,alphaPercent:s/e.length,numericPercent:n/e.length}}(t);if(!function(e){const{upperPercent:t,lowerPercent:i,alphaPercent:s,numericPercent:n}=e;return i>.2&&t<.8&&s>.6&&n<.2}(i)){if(!function(e){const{upperPercent:t,lowerPercent:i}=e;return 0===i&&t>.6}(i))return null;t=t.toLowerCase()}let s=null,n=0;for(e=e.toLowerCase();n<t.length&&null===(s=N(e,t,0,n));)n=A(t,n+1);return s}function O(e,t,i=!1){if(!t||0===t.length)return null;let s=null,n=0;for(e=e.toLowerCase(),t=t.toLowerCase();n<t.length&&(s=D(e,t,0,n,i),null===s);)n=M(t,n+1);return s}function D(e,t,i,s,n){let r=0;if(i===e.length)return[];if(s===t.length)return null;if(!R(e.charCodeAt(i),t.charCodeAt(s))){const n=T(e.charCodeAt(i));if(!n)return null;for(let e=0;e<n.length;e++)if(!R(n[e],t.charCodeAt(s+e)))return null;r+=n.length-1}let o=null,a=s+r+1;if(o=D(e,t,i+1,a,n),!n)for(;!o&&(a=M(t,a))<t.length;)o=D(e,t,i+1,a,n),a++;if(!o)return null;if(e.charCodeAt(i)!==t.charCodeAt(s)){const n=T(e.charCodeAt(i));if(!n)return o;for(let e=0;e<n.length;e++)if(n[e]!==t.charCodeAt(s+e))return o}return k({start:s,end:s+r+1},o)}function M(e,t){for(let i=t;i<e.length;i++)if(w(e.charCodeAt(i))||i>0&&w(e.charCodeAt(i-1)))return i;return e.length}const P=g(p,I,f),F=g(p,I,_),U=new s.qK(1e4);function H(e,t,i=!1){if("string"!==typeof e||"string"!==typeof t)return null;let s=U.get(e);s||(s=new RegExp(u.Bm(e),"i"),U.set(e,s));const n=s.exec(t);return n?[{start:n.index,end:n.index+n[0].length}]:i?F(e,t):P(e,t)}function B(e,t){const i=ne(e,e.toLowerCase(),0,t,t.toLowerCase(),0,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return i?V(i):null}function W(e,t,i,s,n,r){const o=Math.min(13,e.length);for(;i<o;i++){const o=ne(e,t,i,s,n,r,{firstMatchCanBeWeak:!0,boostFullMatch:!0});if(o)return o}return[0,r]}function V(e){if("undefined"===typeof e)return[];const t=[],i=e[1];for(let s=e.length-1;s>1;s--){const n=e[s]+i,r=t[t.length-1];r&&r.end===n?r.end=n+1:t.push({start:n,end:n+1})}return t}const z=128;function G(){const e=[],t=[];for(let i=0;i<=z;i++)t[i]=0;for(let i=0;i<=z;i++)e.push(t.slice(0));return e}function j(e){const t=[];for(let i=0;i<=e;i++)t[i]=0;return t}const K=j(2*z),Y=j(2*z),q=G(),$=G(),Q=G(),X=!1;function Z(e,t,i,s,n){function r(e,t,i=" "){for(;e.length<t;)e=i+e;return e}let o=` | |${s.split("").map((e=>r(e,3))).join("|")}\n`;for(let a=0;a<=i;a++)o+=0===a?" |":`${t[a-1]}|`,o+=e[a].slice(0,n+1).map((e=>r(e.toString(),3))).join("|")+"\n";return o}function J(e,t){if(t<0||t>=e.length)return!1;const i=e.codePointAt(t);switch(i){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:case 60:case 62:case 40:case 41:case 91:case 93:case 123:case 125:return!0;case void 0:return!1;default:return!!u.Ss(i)}}function ee(e,t){if(t<0||t>=e.length)return!1;switch(e.charCodeAt(t)){case 32:case 9:return!0;default:return!1}}function te(e,t,i){return t[e]!==i[e]}var ie;!function(e){e.Default=[-100,0],e.isDefault=function(e){return!e||2===e.length&&-100===e[0]&&0===e[1]}}(ie||(ie={}));class se{static{this.default={boostFullMatch:!0,firstMatchCanBeWeak:!1}}constructor(e,t){this.firstMatchCanBeWeak=e,this.boostFullMatch=t}}function ne(e,t,i,s,n,r,o=se.default){const a=e.length>z?z:e.length,c=s.length>z?z:s.length;if(i>=a||r>=c||a-i>c-r)return;if(!function(e,t,i,s,n,r,o=!1){for(;t<i&&n<r;)e[t]===s[n]&&(o&&(K[t]=n),t+=1),n+=1;return t===i}(t,i,a,n,r,c,!0))return;!function(e,t,i,s,n,r){let o=e-1,a=t-1;for(;o>=i&&a>=s;)n[o]===r[a]&&(Y[o]=a,o--),a--}(a,c,i,r,t,n);let l=1,h=1,d=i,u=r;const g=[!1];for(l=1,d=i;d<a;l++,d++){const o=K[d],p=Y[d],m=d+1<a?Y[d+1]:c;for(h=o-r+1,u=o;u<m;h++,u++){let a=Number.MIN_SAFE_INTEGER,m=!1;u<=p&&(a=re(e,t,d,i,s,n,u,c,r,0===q[l-1][h-1],g));let f=0;a!==Number.MAX_SAFE_INTEGER&&(m=!0,f=a+$[l-1][h-1]);const _=u>o,v=_?$[l][h-1]+(q[l][h-1]>0?-5:0):0,C=u>o+1&&q[l][h-1]>0,E=C?$[l][h-2]+(q[l][h-2]>0?-5:0):0;if(C&&(!_||E>=v)&&(!m||E>=f))$[l][h]=E,Q[l][h]=3,q[l][h]=0;else if(_&&(!m||v>=f))$[l][h]=v,Q[l][h]=2,q[l][h]=0;else{if(!m)throw new Error("not possible");$[l][h]=f,Q[l][h]=1,q[l][h]=q[l-1][h-1]+1}}}if(X&&function(e,t,i,s){e=e.substr(t),i=i.substr(s),console.log(Z($,e,e.length,i,i.length)),console.log(Z(Q,e,e.length,i,i.length)),console.log(Z(q,e,e.length,i,i.length))}(e,i,s,r),!g[0]&&!o.firstMatchCanBeWeak)return;l--,h--;const p=[$[l][h],r];let m=0,f=0;for(;l>=1;){let e=h;do{const t=Q[l][e];if(3===t)e-=2;else{if(2!==t)break;e-=1}}while(e>=1);m>1&&t[i+l-1]===n[r+h-1]&&!te(e+r-1,s,n)&&m+1>q[l][e]&&(e=h),e===h?m++:m=1,f||(f=e),l--,h=e-1,p.push(h)}c-r===a&&o.boostFullMatch&&(p[0]+=2);const _=f-a;return p[0]-=_,p}function re(e,t,i,s,n,r,o,a,c,l,h){if(t[i]!==r[o])return Number.MIN_SAFE_INTEGER;let d=1,u=!1;return o===i-s?d=e[i]===n[o]?7:5:!te(o,n,r)||0!==o&&te(o-1,n,r)?!J(r,o)||0!==o&&J(r,o-1)?(J(r,o-1)||ee(r,o-1))&&(d=5,u=!0):d=5:(d=e[i]===n[o]?7:5,u=!0),d>1&&i===s&&(h[0]=!0),u||(u=te(o,n,r)||J(r,o-1)||ee(r,o-1)),i===s?o>c&&(d-=u?3:5):d+=l?u?2:0:u?0:1,o+1===a&&(d-=u?3:5),d}function oe(e,t,i,s,n,r,o){return function(e,t,i,s,n,r,o,a){let c=ne(e,t,i,s,n,r,a);if(c&&!o)return c;if(e.length>=3){const t=Math.min(7,e.length-1);for(let o=i+1;o<t;o++){const t=ae(e,o);if(t){const e=ne(t,t.toLowerCase(),i,s,n,r,a);e&&(e[0]-=3,(!c||e[0]>c[0])&&(c=e))}}}return c}(e,t,i,s,n,r,!0,o)}function ae(e,t){if(t+1>=e.length)return;const i=e[t],s=e[t+1];return i!==s?e.slice(0,t)+s+i+e.slice(t+2):void 0}},6921:(e,t,i)=>{"use strict";function s(e,t){const i=this;let s,n=!1;return function(){if(n)return s;if(n=!0,t)try{s=e.apply(i,arguments)}finally{t()}else s=e.apply(i,arguments);return s}}i.d(t,{P:()=>s})},46958:(e,t,i)=>{"use strict";i.d(t,{YW:()=>A,qg:()=>N});var s=i(90766),n=i(79326),r=i(74320),o=i(74027),a=i(98067),c=i(91508);const l="**",h="/",d="[/\\\\]",u="[^/\\\\]",g=/\//g;function p(e,t){switch(e){case 0:return"";case 1:return`${u}*?`;default:return`(?:${d}|${u}+${d}${t?`|${d}${u}+`:""})*?`}}function m(e,t){if(!e)return[];const i=[];let s=!1,n=!1,r="";for(const o of e){switch(o){case t:if(!s&&!n){i.push(r),r="";continue}break;case"{":s=!0;break;case"}":s=!1;break;case"[":n=!0;break;case"]":n=!1}r+=o}return r&&i.push(r),i}function f(e){if(!e)return"";let t="";const i=m(e,h);if(i.every((e=>e===l)))t=".*";else{let e=!1;i.forEach(((s,n)=>{if(s===l){if(e)return;t+=p(2,n===i.length-1)}else{let e=!1,r="",o=!1,a="";for(const i of s)if("}"!==i&&e)r+=i;else if(!o||"]"===i&&a)switch(i){case"{":e=!0;continue;case"[":o=!0;continue;case"}":{const i=`(?:${m(r,",").map((e=>f(e))).join("|")})`;t+=i,e=!1,r="";break}case"]":t+="["+a+"]",o=!1,a="";break;case"?":t+=u;continue;case"*":t+=p(1);continue;default:t+=(0,c.bm)(i)}else{let e;e="-"===i?i:"^"!==i&&"!"!==i||a?i===h?"":(0,c.bm)(i):"^",a+=e}n<i.length-1&&(i[n+1]!==l||n+2<i.length)&&(t+=d)}e=s===l}))}return t}const _=/^\*\*\/\*\.[\w\.-]+$/,v=/^\*\*\/([\w\.-]+)\/?$/,C=/^{\*\*\/\*?[\w\.-]+\/?(,\*\*\/\*?[\w\.-]+\/?)*}$/,E=/^{\*\*\/\*?[\w\.-]+(\/(\*\*)?)?(,\*\*\/\*?[\w\.-]+(\/(\*\*)?)?)*}$/,b=/^\*\*((\/[\w\.-]+)+)\/?$/,S=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,y=new r.qK(1e4),w=function(){return!1},R=function(){return null};function L(e,t){if(!e)return R;let i;i="string"!==typeof e?e.pattern:e,i=i.trim();const s=`${i}_${!!t.trimForExclusions}`;let n,r=y.get(s);return r||(r=_.test(i)?function(e,t){return function(i,s){return"string"===typeof i&&i.endsWith(e)?t:null}}(i.substr(4),i):(n=v.exec(x(i,t)))?function(e,t){const i=`/${e}`,s=`\\${e}`,n=function(n,r){return"string"!==typeof n?null:r?r===e?t:null:n===e||n.endsWith(i)||n.endsWith(s)?t:null},r=[e];return n.basenames=r,n.patterns=[t],n.allBasenames=r,n}(n[1],i):(t.trimForExclusions?E:C).test(i)?function(e,t){const i=I(e.slice(1,-1).split(",").map((e=>L(e,t))).filter((e=>e!==R)),e),s=i.length;if(!s)return R;if(1===s)return i[0];const n=function(t,s){for(let n=0,r=i.length;n<r;n++)if(i[n](t,s))return e;return null},r=i.find((e=>!!e.allBasenames));r&&(n.allBasenames=r.allBasenames);const o=i.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);o.length&&(n.allPaths=o);return n}(i,t):(n=b.exec(x(i,t)))?k(n[1].substr(1),i,!0):(n=S.exec(x(i,t)))?k(n[1],i,!1):function(e){try{const t=new RegExp(`^${f(e)}$`);return function(i){return t.lastIndex=0,"string"===typeof i&&t.test(i)?e:null}}catch(t){return R}}(i),y.set(s,r)),T(r,e)}function T(e,t){if("string"===typeof t)return e;const i=function(i,s){return(0,n._1)(i,t.base,!a.j9)?e((0,c.NB)(i.substr(t.base.length),o.Vn),s):null};return i.allBasenames=e.allBasenames,i.allPaths=e.allPaths,i.basenames=e.basenames,i.patterns=e.patterns,i}function x(e,t){return t.trimForExclusions&&e.endsWith("/**")?e.substr(0,e.length-2):e}function k(e,t,i){const s=o.Vn===o.SA.sep,n=s?e:e.replace(g,o.Vn),r=o.Vn+n,a=o.SA.sep+e;let c;return c=i?function(i,o){return"string"!==typeof i||i!==n&&!i.endsWith(r)&&(s||i!==e&&!i.endsWith(a))?null:t}:function(i,r){return"string"!==typeof i||i!==n&&(s||i!==e)?null:t},c.allPaths=[(i?"*/":"./")+e],c}function A(e,t,i){return!(!e||"string"!==typeof t)&&N(e)(t,void 0,i)}function N(e,t={}){if(!e)return w;if("string"===typeof e||function(e){const t=e;if(!t)return!1;return"string"===typeof t.base&&"string"===typeof t.pattern}(e)){const i=L(e,t);if(i===R)return w;const s=function(e,t){return!!i(e,t)};return i.allBasenames&&(s.allBasenames=i.allBasenames),i.allPaths&&(s.allPaths=i.allPaths),s}return function(e,t){const i=I(Object.getOwnPropertyNames(e).map((i=>function(e,t,i){if(!1===t)return R;const n=L(e,i);if(n===R)return R;if("boolean"===typeof t)return n;if(t){const i=t.when;if("string"===typeof i){const t=(t,r,o,a)=>{if(!a||!n(t,r))return null;const c=a(i.replace("$(basename)",(()=>o)));return(0,s.Qg)(c)?c.then((t=>t?e:null)):c?e:null};return t.requiresSiblings=!0,t}}return n}(i,e[i],t))).filter((e=>e!==R))),n=i.length;if(!n)return R;if(!i.some((e=>!!e.requiresSiblings))){if(1===n)return i[0];const e=function(e,t){let n;for(let r=0,o=i.length;r<o;r++){const o=i[r](e,t);if("string"===typeof o)return o;(0,s.Qg)(o)&&(n||(n=[]),n.push(o))}return n?(async()=>{for(const e of n){const t=await e;if("string"===typeof t)return t}return null})():null},t=i.find((e=>!!e.allBasenames));t&&(e.allBasenames=t.allBasenames);const r=i.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);return r.length&&(e.allPaths=r),e}const r=function(e,t,n){let r,a;for(let c=0,l=i.length;c<l;c++){const l=i[c];l.requiresSiblings&&n&&(t||(t=(0,o.P8)(e)),r||(r=t.substr(0,t.length-(0,o.LC)(e).length)));const h=l(e,t,r,n);if("string"===typeof h)return h;(0,s.Qg)(h)&&(a||(a=[]),a.push(h))}return a?(async()=>{for(const e of a){const t=await e;if("string"===typeof t)return t}return null})():null},a=i.find((e=>!!e.allBasenames));a&&(r.allBasenames=a.allBasenames);const c=i.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);c.length&&(r.allPaths=c);return r}(e,t)}function I(e,t){const i=e.filter((e=>!!e.basenames));if(i.length<2)return e;const s=i.reduce(((e,t)=>{const i=t.basenames;return i?e.concat(i):e}),[]);let n;if(t){n=[];for(let e=0,i=s.length;e<i;e++)n.push(t)}else n=i.reduce(((e,t)=>{const i=t.patterns;return i?e.concat(i):e}),[]);const r=function(e,t){if("string"!==typeof e)return null;if(!t){let i;for(i=e.length;i>0;i--){const t=e.charCodeAt(i-1);if(47===t||92===t)break}t=e.substr(i)}const i=s.indexOf(t);return-1!==i?n[i]:null};r.basenames=s,r.patterns=n,r.allBasenames=s;const o=e.filter((e=>!e.basenames));return o.push(r),o}},85600:(e,t,i)=>{"use strict";i.d(t,{e2:()=>a,sN:()=>r,tW:()=>n,v7:()=>d});var s=i(91508);function n(e){return r(e,0)}function r(e,t){switch(typeof e){case"object":return null===e?o(349,t):Array.isArray(e)?(i=e,s=o(104579,s=t),i.reduce(((e,t)=>r(t,e)),s)):function(e,t){return t=o(181387,t),Object.keys(e).sort().reduce(((t,i)=>(t=a(i,t),r(e[i],t))),t)}(e,t);case"string":return a(e,t);case"boolean":return function(e,t){return o(e?433:863,t)}(e,t);case"number":return o(e,t);case"undefined":return o(937,t);default:return o(617,t)}var i,s}function o(e,t){return(t<<5)-t+e|0}function a(e,t){t=o(149417,t);for(let i=0,s=e.length;i<s;i++)t=o(e.charCodeAt(i),t);return t}function c(e,t,i=32){const s=i-t;return(e<<t|(~((1<<s)-1)&e)>>>s)>>>0}function l(e,t=0,i=e.byteLength,s=0){for(let n=0;n<i;n++)e[t+n]=s}function h(e,t=32){return e instanceof ArrayBuffer?Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join(""):function(e,t,i="0"){for(;e.length<t;)e=i+e;return e}((e>>>0).toString(16),t/4)}class d{static{this._bigBlock32=new DataView(new ArrayBuffer(320))}constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(0===t)return;const i=this._buff;let n,r,o=this._buffLen,a=this._leftoverHighSurrogate;for(0!==a?(n=a,r=-1,a=0):(n=e.charCodeAt(0),r=0);;){let c=n;if(s.pc(n)){if(!(r+1<t)){a=n;break}{const t=e.charCodeAt(r+1);s.LJ(t)?(r++,c=s.z_(n,t)):c=65533}}else s.LJ(n)&&(c=65533);if(o=this._push(i,o,c),r++,!(r<t))break;n=e.charCodeAt(r)}this._buffLen=o,this._leftoverHighSurrogate=a}_push(e,t,i){return i<128?e[t++]=i:i<2048?(e[t++]=192|(1984&i)>>>6,e[t++]=128|(63&i)>>>0):i<65536?(e[t++]=224|(61440&i)>>>12,e[t++]=128|(4032&i)>>>6,e[t++]=128|(63&i)>>>0):(e[t++]=240|(1835008&i)>>>18,e[t++]=128|(258048&i)>>>12,e[t++]=128|(4032&i)>>>6,e[t++]=128|(63&i)>>>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()),h(this._h0)+h(this._h1)+h(this._h2)+h(this._h3)+h(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,l(this._buff,this._buffLen),this._buffLen>56&&(this._step(),l(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=d._bigBlock32,t=this._buffDV;for(let c=0;c<64;c+=4)e.setUint32(c,t.getUint32(c,!1),!1);for(let d=64;d<320;d+=4)e.setUint32(d,c(e.getUint32(d-12,!1)^e.getUint32(d-32,!1)^e.getUint32(d-56,!1)^e.getUint32(d-64,!1),1),!1);let i,s,n,r=this._h0,o=this._h1,a=this._h2,l=this._h3,h=this._h4;for(let d=0;d<80;d++)d<20?(i=o&a|~o&l,s=1518500249):d<40?(i=o^a^l,s=1859775393):d<60?(i=o&a|o&l|a&l,s=2400959708):(i=o^a^l,s=3395469782),n=c(r,5)+i+h+s+e.getUint32(4*d,!1)&4294967295,h=l,l=a,a=c(o,30),o=r,r=n;this._h0=this._h0+r&4294967295,this._h1=this._h1+o&4294967295,this._h2=this._h2+a&4294967295,this._h3=this._h3+l&4294967295,this._h4=this._h4+h&4294967295}}},8995:(e,t,i)=>{"use strict";i.d(t,{k:()=>s});class s{static{this.sep="."}static{this.None=new s("@@none@@")}static{this.Empty=new s("")}constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||""===this.value||e.value.startsWith(this.value+s.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(...e){return new s((this.value?[this.value,...e]:e).join(s.sep))}}},30076:(e,t,i)=>{"use strict";i.d(t,{O:()=>r,e:()=>n});var s=i(59911);function n(){return s._K&&!!s._K.VSCODE_DEV}function r(e){if(n()){const t=function(){o||(o=new Set);const e=globalThis;e.$hotReload_applyNewExports||(e.$hotReload_applyNewExports=e=>{const t={config:{mode:void 0},...e},i=[];for(const s of o){const e=s(t);e&&i.push(e)}if(i.length>0)return e=>{let t=!1;for(const s of i)s(e)&&(t=!0);return t}});return o}();return t.add(e),{dispose(){t.delete(e)}}}return{dispose(){}}}let o;n()&&r((({oldExports:e,newSrc:t,config:i})=>{if("patch-prototype"===i.mode)return t=>{for(const i in t){const s=t[i];if(console.log(`[hot-reload] Patching prototype methods of '${i}'`,{exportedItem:s}),"function"===typeof s&&s.prototype){const n=e[i];if(n){for(const e of Object.getOwnPropertyNames(s.prototype)){const t=Object.getOwnPropertyDescriptor(s.prototype,e),r=Object.getOwnPropertyDescriptor(n.prototype,e);t?.value?.toString()!==r?.value?.toString()&&console.log(`[hot-reload] Patching prototype method '${i}.${e}'`),Object.defineProperty(n.prototype,e,t)}t[i]=n}}}return!0}}))},41127:(e,t,i)=>{"use strict";i.d(t,{b:()=>r});var s=i(30076),n=i(31308);function r(e,t){return function(e,t){if((0,s.e)()){(0,n.yQ)("reload",(t=>(0,s.O)((({oldExports:i})=>{if([...Object.values(i)].some((t=>e.includes(t))))return e=>(t(void 0),!0)})))).read(t)}}([e],t),e}},16980:(e,t,i)=>{"use strict";i.d(t,{Bc:()=>c,VS:()=>h,_W:()=>g,it:()=>l,nI:()=>p,nK:()=>d,oO:()=>u});var s=i(64383),n=i(37882),r=i(89403),o=i(91508),a=i(79400);class c{constructor(e="",t=!1){if(this.value=e,"string"!==typeof this.value)throw(0,s.Qg)("value");"boolean"===typeof t?(this.isTrusted=t,this.supportThemeIcons=!1,this.supportHtml=!1):(this.isTrusted=t.isTrusted??void 0,this.supportThemeIcons=t.supportThemeIcons??!1,this.supportHtml=t.supportHtml??!1)}appendText(e,t=0){var i;return this.value+=(i=this.supportThemeIcons?(0,n.m2)(e):e,i.replace(/[\\`*_{}[\]()#+\-!~]/g,"\\$&")).replace(/([ \t]+)/g,((e,t)=>" ".repeat(t.length))).replace(/\>/gm,"\\>").replace(/\n/g,1===t?"\\\n":"\n\n"),this}appendMarkdown(e){return this.value+=e,this}appendCodeblock(e,t){return this.value+=`\n${function(e,t){const i=e.match(/^`+/gm)?.reduce(((e,t)=>e.length>t.length?e:t)).length??0,s=i>=3?i+1:3;return[`${"`".repeat(s)}${t}`,e,`${"`".repeat(s)}`].join("\n")}(t,e)}\n`,this}appendLink(e,t,i){return this.value+="[",this.value+=this._escape(t,"]"),this.value+="](",this.value+=this._escape(String(e),")"),i&&(this.value+=` "${this._escape(this._escape(i,'"'),")")}"`),this.value+=")",this}_escape(e,t){const i=new RegExp((0,o.bm)(t),"g");return e.replace(i,((t,i)=>"\\"!==e.charAt(i-1)?`\\${t}`:t))}}function l(e){return h(e)?!e.value:!Array.isArray(e)||e.every(l)}function h(e){return e instanceof c||!(!e||"object"!==typeof e)&&("string"===typeof e.value&&("boolean"===typeof e.isTrusted||"object"===typeof e.isTrusted||void 0===e.isTrusted)&&("boolean"===typeof e.supportThemeIcons||void 0===e.supportThemeIcons))}function d(e,t){return e===t||!(!e||!t)&&(e.value===t.value&&e.isTrusted===t.isTrusted&&e.supportThemeIcons===t.supportThemeIcons&&e.supportHtml===t.supportHtml&&(e.baseUri===t.baseUri||!!e.baseUri&&!!t.baseUri&&(0,r.n4)(a.r.from(e.baseUri),a.r.from(t.baseUri))))}function u(e){return e.replace(/"/g,""")}function g(e){return e?e.replace(/\\([\\`*_{}[\]()#+\-.!~])/g,"$1"):e}function p(e){const t=[],i=e.split("|").map((e=>e.trim()));e=i[0];const s=i[1];if(s){const e=/height=(\d+)/.exec(s),i=/width=(\d+)/.exec(s),n=e?e[1]:"",r=i?i[1]:"",o=isFinite(parseInt(r)),a=isFinite(parseInt(n));o&&t.push(`width="${r}"`),a&&t.push(`height="${n}"`)}return{href:e,dimensions:t}}},37882:(e,t,i)=>{"use strict";i.d(t,{R$:()=>p,_k:()=>f,m2:()=>l,pS:()=>g,pz:()=>_,sA:()=>d});var s=i(26690),n=i(91508),r=i(25689);const o="$(",a=new RegExp(`\\$\\(${r.L.iconNameExpression}(?:${r.L.iconModifierExpression})?\\)`,"g"),c=new RegExp(`(\\\\)?${a.source}`,"g");function l(e){return e.replace(c,((e,t)=>t?e:`\\${e}`))}const h=new RegExp(`\\\\${a.source}`,"g");function d(e){return e.replace(h,(e=>`\\${e}`))}const u=new RegExp(`(\\s)?(\\\\)?${a.source}(\\s)?`,"g");function g(e){return-1===e.indexOf(o)?e:e.replace(u,((e,t,i,s)=>i?e:t||s||""))}function p(e){return e?e.replace(/\$\((.*?)\)/g,((e,t)=>` ${t} `)).trim():""}const m=new RegExp(`\\$\\(${r.L.iconNameCharacter}+\\)`,"g");function f(e){m.lastIndex=0;let t="";const i=[];let s=0;for(;;){const n=m.lastIndex,r=m.exec(e),o=e.substring(n,r?.index);if(o.length>0){t+=o;for(let e=0;e<o.length;e++)i.push(s)}if(!r)break;s+=r[0].length}return{text:t,iconOffsets:i}}function _(e,t,i=!1){const{text:r,iconOffsets:o}=t;if(!o||0===o.length)return(0,s.yr)(e,r,i);const a=(0,n.NB)(r," "),c=r.length-a.length,l=(0,s.yr)(e,a,i);if(l)for(const s of l){const e=o[s.start+c]+c;s.start+=e,s.end+=e}return l}},96032:(e,t,i)=>{"use strict";i.d(t,{n:()=>s,r:()=>n});class s{constructor(e){this._prefix=e,this._lastId=0}nextId(){return this._prefix+ ++this._lastId}}const n=new s("id#")},2299:(e,t,i)=>{"use strict";i.d(t,{M:()=>n});var s=i(41234);const n=new class{constructor(){this._onDidChange=new s.vl,this.onDidChange=this._onDidChange.event,this._enabled=!0}get enabled(){return this._enabled}enable(){this._enabled=!0,this._onDidChange.fire()}disable(){this._enabled=!1,this._onDidChange.fire()}}},42522:(e,t,i)=>{"use strict";var s;i.d(t,{f:()=>s}),function(e){function t(e){return e&&"object"===typeof e&&"function"===typeof e[Symbol.iterator]}e.is=t;const i=Object.freeze([]);function*s(e){yield e}e.empty=function(){return i},e.single=s,e.wrap=function(e){return t(e)?e:s(e)},e.from=function(e){return e||i},e.reverse=function*(e){for(let t=e.length-1;t>=0;t--)yield e[t]},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){let i=0;for(const s of e)if(t(s,i++))return!0;return!1},e.find=function(e,t){for(const i of e)if(t(i))return i},e.filter=function*(e,t){for(const i of e)t(i)&&(yield i)},e.map=function*(e,t){let i=0;for(const s of e)yield t(s,i++)},e.flatMap=function*(e,t){let i=0;for(const s of e)yield*t(s,i++)},e.concat=function*(...e){for(const t of e)yield*t},e.reduce=function(e,t,i){let s=i;for(const n of e)s=t(s,n);return s},e.slice=function*(e,t,i=e.length){for(t<0&&(t+=e.length),i<0?i+=e.length:i>e.length&&(i=e.length);t<i;t++)yield e[t]},e.consume=function(t,i=Number.POSITIVE_INFINITY){const s=[];if(0===i)return[s,t];const n=t[Symbol.iterator]();for(let r=0;r<i;r++){const t=n.next();if(t.done)return[s,e.empty()];s.push(t.value)}return[s,{[Symbol.iterator]:()=>n}]},e.asyncToArray=async function(e){const t=[];for await(const i of e)t.push(i);return Promise.resolve(t)}}(s||(s={}))},24939:(e,t,i)=>{"use strict";i.d(t,{Fo:()=>u,YM:()=>p,m5:()=>m,uw:()=>a});class s{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}}const n=new s,r=new s,o=new s,a=new Array(230),c={},l=[],h=Object.create(null),d=Object.create(null),u=[],g=[];for(let f=0;f<=193;f++)u[f]=-1;for(let f=0;f<=132;f++)g[f]=-1;var p;function m(e,t){return(e|(65535&t)<<16>>>0)>>>0}!function(){const e="",t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[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,e,0,e,e,e],[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",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],i=[],s=[];for(const p of t){const[e,t,m,f,_,v,C,E,b]=p;if(s[t]||(s[t]=!0,l[t]=m,h[m]=t,d[m.toLowerCase()]=t,e&&(u[t]=f,0!==f&&3!==f&&5!==f&&4!==f&&6!==f&&57!==f&&(g[f]=t))),!i[f]){if(i[f]=!0,!_)throw new Error(`String representation missing for key code ${f} around scan code ${m}`);n.define(f,_),r.define(f,E||_),o.define(f,b||E||_)}v&&(a[v]=f),C&&(c[C]=f)}g[3]=46}(),function(e){e.toString=function(e){return n.keyCodeToStr(e)},e.fromString=function(e){return n.strToKeyCode(e)},e.toUserSettingsUS=function(e){return r.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return o.keyCodeToStr(e)},e.fromUserSettings=function(e){return r.strToKeyCode(e)||o.strToKeyCode(e)},e.toElectronAccelerator=function(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 n.keyCodeToStr(e)}}(p||(p={}))},83619:(e,t,i)=>{"use strict";i.d(t,{G$:()=>c,Of:()=>r,r0:()=>o,rr:()=>a});var s=i(78209);class n{constructor(e,t,i=t){this.modifierLabels=[null],this.modifierLabels[2]=e,this.modifierLabels[1]=t,this.modifierLabels[3]=i}toLabel(e,t,i){if(0===t.length)return null;const s=[];for(let n=0,r=t.length;n<r;n++){const r=t[n],o=i(r);if(null===o)return null;s[n]=l(r,o,this.modifierLabels[e])}return s.join(" ")}}const r=new n({ctrlKey:"\u2303",shiftKey:"\u21e7",altKey:"\u2325",metaKey:"\u2318",separator:""},{ctrlKey:s.kg({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:s.kg({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:s.kg({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:s.kg({key:"windowsKey",comment:["This is the short form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:s.kg({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:s.kg({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:s.kg({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:s.kg({key:"superKey",comment:["This is the short form for the Super key on the keyboard"]},"Super"),separator:"+"}),o=new n({ctrlKey:s.kg({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:s.kg({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:s.kg({key:"optKey.long",comment:["This is the long form for the Alt/Option key on the keyboard"]},"Option"),metaKey:s.kg({key:"cmdKey.long",comment:["This is the long form for the Command key on the keyboard"]},"Command"),separator:"+"},{ctrlKey:s.kg({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:s.kg({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:s.kg({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:s.kg({key:"windowsKey.long",comment:["This is the long form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:s.kg({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:s.kg({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:s.kg({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:s.kg({key:"superKey.long",comment:["This is the long form for the Super key on the keyboard"]},"Super"),separator:"+"}),a=new n({ctrlKey:"Ctrl",shiftKey:"Shift",altKey:"Alt",metaKey:"Cmd",separator:"+"},{ctrlKey:"Ctrl",shiftKey:"Shift",altKey:"Alt",metaKey:"Super",separator:"+"}),c=new n({ctrlKey:"ctrl",shiftKey:"shift",altKey:"alt",metaKey:"cmd",separator:"+"},{ctrlKey:"ctrl",shiftKey:"shift",altKey:"alt",metaKey:"win",separator:"+"},{ctrlKey:"ctrl",shiftKey:"shift",altKey:"alt",metaKey:"meta",separator:"+"});function l(e,t,i){if(null===t)return"";const s=[];return e.ctrlKey&&s.push(i.ctrlKey),e.shiftKey&&s.push(i.shiftKey),e.altKey&&s.push(i.altKey),e.metaKey&&s.push(i.metaKey),""!==t&&s.push(t),s.join(i.separator)}},42539:(e,t,i)=>{"use strict";i.d(t,{FW:()=>c,Zv:()=>n,dG:()=>o,z5:()=>l});var s=i(64383);function n(e,t){if("number"===typeof e){if(0===e)return null;const i=(65535&e)>>>0,s=(4294901760&e)>>>16;return new a(0!==s?[r(i,t),r(s,t)]:[r(i,t)])}{const i=[];for(let s=0;s<e.length;s++)i.push(r(e[s],t));return new a(i)}}function r(e,t){const i=!!(2048&e),s=!!(256&e);return new o(2===t?s:i,!!(1024&e),!!(512&e),2===t?i:s,255&e)}class o{constructor(e,t,i,s,n){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=s,this.keyCode=n}equals(e){return e instanceof o&&this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode}isModifierKey(){return 0===this.keyCode||5===this.keyCode||57===this.keyCode||6===this.keyCode||4===this.keyCode}isDuplicateModifierCase(){return this.ctrlKey&&5===this.keyCode||this.shiftKey&&4===this.keyCode||this.altKey&&6===this.keyCode||this.metaKey&&57===this.keyCode}}class a{constructor(e){if(0===e.length)throw(0,s.Qg)("chords");this.chords=e}}class c{constructor(e,t,i,s,n,r){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=s,this.keyLabel=n,this.keyAriaLabel=r}}class l{}},91090:(e,t,i)=>{"use strict";i.d(t,{d:()=>s});class s{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}},5662:(e,t,i)=>{"use strict";i.d(t,{$w:()=>C,AS:()=>d,Ay:()=>o,BO:()=>v,Cm:()=>p,HE:()=>f,VD:()=>a,Xm:()=>h,jG:()=>m,lC:()=>l,mp:()=>_,qE:()=>u,s:()=>g});var s=i(6921),n=i(42522);let r=null;function o(e){return r?.trackDisposable(e),e}function a(e){r?.markAsDisposed(e)}function c(e,t){r?.setParent(e,t)}function l(e){return r?.markAsSingleton(e),e}function h(e){return"object"===typeof e&&null!==e&&"function"===typeof e.dispose&&0===e.dispose.length}function d(e){if(n.f.is(e)){const i=[];for(const s of e)if(s)try{s.dispose()}catch(t){i.push(t)}if(1===i.length)throw i[0];if(i.length>1)throw new AggregateError(i,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function u(...e){const t=g((()=>d(e)));return function(e,t){if(r)for(const i of e)r.setParent(i,t)}(e,t),t}function g(e){const t=o({dispose:(0,s.P)((()=>{a(t),e()}))});return t}class p{static{this.DISABLE_DISPOSED_WARNING=!1}constructor(){this._toDispose=new Set,this._isDisposed=!1,o(this)}dispose(){this._isDisposed||(a(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(0!==this._toDispose.size)try{d(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return c(e,this),this._isDisposed?p.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}deleteAndLeak(e){e&&this._toDispose.has(e)&&(this._toDispose.delete(e),c(e,null))}}class m{static{this.None=Object.freeze({dispose(){}})}constructor(){this._store=new p,o(this),c(this._store,this)}dispose(){a(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}class f{constructor(){this._isDisposed=!1,o(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){this._isDisposed||e===this._value||(this._value?.dispose(),e&&c(e,this),this._value=e)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,a(this),this._value?.dispose(),this._value=void 0}}class _{constructor(e){this._disposable=e,this._counter=1}acquire(){return this._counter++,this}release(){return 0===--this._counter&&this._disposable.dispose(),this}}class v{constructor(e){this.object=e}dispose(){}}class C{constructor(){this._store=new Map,this._isDisposed=!1,o(this)}dispose(){a(this),this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{d(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,t,i=!1){this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),i||this._store.get(e)?.dispose(),this._store.set(e,t)}deleteAndDispose(e){this._store.get(e)?.dispose(),this._store.delete(e)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}},58925:(e,t,i)=>{"use strict";i.d(t,{w:()=>n});class s{static{this.Undefined=new s(void 0)}constructor(e){this.element=e,this.next=s.Undefined,this.prev=s.Undefined}}class n{constructor(){this._first=s.Undefined,this._last=s.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===s.Undefined}clear(){let e=this._first;for(;e!==s.Undefined;){const t=e.next;e.prev=s.Undefined,e.next=s.Undefined,e=t}this._first=s.Undefined,this._last=s.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const i=new s(e);if(this._first===s.Undefined)this._first=i,this._last=i;else if(t){const e=this._last;this._last=i,i.prev=e,e.next=i}else{const e=this._first;this._first=i,i.next=e,e.prev=i}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(i))}}shift(){if(this._first!==s.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==s.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==s.Undefined&&e.next!==s.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===s.Undefined&&e.next===s.Undefined?(this._first=s.Undefined,this._last=s.Undefined):e.next===s.Undefined?(this._last=this._last.prev,this._last.next=s.Undefined):e.prev===s.Undefined&&(this._first=this._first.next,this._first.prev=s.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==s.Undefined;)yield e.element,e=e.next}}},74320:(e,t,i)=>{"use strict";var s,n;i.d(t,{cO:()=>h,db:()=>d,fT:()=>o,qK:()=>l});class r{constructor(e,t){this.uri=e,this.value=t}}class o{static{this.defaultToKey=e=>e.toString()}constructor(e,t){if(this[s]="ResourceMap",e instanceof o)this.map=new Map(e.map),this.toKey=t??o.defaultToKey;else if(function(e){return Array.isArray(e)}(e)){this.map=new Map,this.toKey=t??o.defaultToKey;for(const[t,i]of e)this.set(t,i)}else this.map=new Map,this.toKey=e??o.defaultToKey}set(e,t){return this.map.set(this.toKey(e),new r(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){"undefined"!==typeof t&&(e=e.bind(t));for(const[i,s]of this.map)e(s.value,s.uri,this)}*values(){for(const e of this.map.values())yield e.value}*keys(){for(const e of this.map.values())yield e.uri}*entries(){for(const e of this.map.values())yield[e.uri,e.value]}*[(s=Symbol.toStringTag,Symbol.iterator)](){for(const[,e]of this.map)yield[e.uri,e.value]}}class a{constructor(){this[n]="LinkedMap",this._map=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){const i=this._map.get(e);if(i)return 0!==t&&this.touch(i,t),i.value}set(e,t,i=0){let s=this._map.get(e);if(s)s.value=t,0!==i&&this.touch(s,i);else{switch(s={key:e,value:t,next:void 0,previous:void 0},i){case 0:case 2:default:this.addItemLast(s);break;case 1:this.addItemFirst(s)}this._map.set(e,s),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const 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 new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const i=this._state;let s=this._head;for(;s;){if(t?e.bind(t)(s.value,s.key,this):e(s.value,s.key,this),this._state!==i)throw new Error("LinkedMap got modified during iteration.");s=s.next}}keys(){const e=this,t=this._state;let i=this._head;const s={[Symbol.iterator]:()=>s,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const e={value:i.key,done:!1};return i=i.next,e}return{value:void 0,done:!0}}};return s}values(){const e=this,t=this._state;let i=this._head;const s={[Symbol.iterator]:()=>s,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const e={value:i.value,done:!1};return i=i.next,e}return{value:void 0,done:!0}}};return s}entries(){const e=this,t=this._state;let i=this._head;const s={[Symbol.iterator]:()=>s,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const e={value:[i.key,i.value],done:!1};return i=i.next,e}return{value:void 0,done:!0}}};return s}[(n=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,i=this.size;for(;t&&i>e;)this._map.delete(t.key),t=t.next,i--;this._head=t,this._size=i,t&&(t.previous=void 0),this._state++}trimNew(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._tail,i=this.size;for(;t&&i>e;)this._map.delete(t.key),t=t.previous,i--;this._tail=t,this._size=i,t&&(t.next=void 0),this._state++}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;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 new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,i=e.previous;if(!t||!i)throw new Error("Invalid list");t.previous=i,i.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;const t=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(t.previous=i,i.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(2===t){if(e===this._tail)return;const t=e.next,i=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=i,i.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){const e=[];return this.forEach(((t,i)=>{e.push([i,t])})),e}fromJSON(e){this.clear();for(const[t,i]of e)this.set(t,i)}}class c extends a{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))}}class l extends c{constructor(e,t=1){super(e,t)}trim(e){this.trimOld(e)}set(e,t){return super.set(e,t),this.checkTrim(),this}}class h{constructor(e){if(this._m1=new Map,this._m2=new Map,e)for(const[t,i]of e)this.set(t,i)}clear(){this._m1.clear(),this._m2.clear()}set(e,t){this._m1.set(e,t),this._m2.set(t,e)}get(e){return this._m1.get(e)}getKey(e){return this._m2.get(e)}delete(e){const t=this._m1.get(e);return void 0!==t&&(this._m1.delete(e),this._m2.delete(t),!0)}keys(){return this._m1.keys()}values(){return this._m1.values()}}class d{constructor(){this.map=new Map}add(e,t){let i=this.map.get(e);i||(i=new Set,this.map.set(e,i)),i.add(t)}delete(e,t){const i=this.map.get(e);i&&(i.delete(t),0===i.size&&this.map.delete(e))}forEach(e,t){const i=this.map.get(e);i&&i.forEach(t)}get(e){const t=this.map.get(e);return t||new Set}}},908:(e,t,i)=>{"use strict";i.d(t,{As:()=>r,qg:()=>o});var s=i(81674),n=i(79400);function r(e){return JSON.stringify(e,a)}function o(e){let t=JSON.parse(e);return t=c(t),t}function a(e,t){return t instanceof RegExp?{$mid:2,source:t.source,flags:t.flags}:t}function c(e,t=0){if(!e||t>200)return e;if("object"===typeof e){switch(e.$mid){case 1:return n.r.revive(e);case 2:return new RegExp(e.source,e.flags);case 17:return new Date(e.source)}if(e instanceof s.MB||e instanceof Uint8Array)return e;if(Array.isArray(e))for(let i=0;i<e.length;++i)e[i]=c(e[i],t+1);else for(const i in e)Object.hasOwnProperty.call(e,i)&&(e[i]=c(e[i],t+1))}return e}},44320:(e,t,i)=>{"use strict";i.d(t,{K:()=>s});const s=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"})},36456:(e,t,i)=>{"use strict";i.d(t,{Ez:()=>d,SJ:()=>p,fV:()=>h,ny:()=>s,v$:()=>l,zl:()=>g});var s,n=i(64383),r=i(98067),o=i(91508),a=i(79400),c=i(74027);function l(e,t){return a.r.isUri(e)?(0,o.Q_)(e.scheme,t):(0,o.ns)(e,t+":")}function h(e,...t){return t.some((t=>l(e,t)))}!function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command",e.vscodeRemote="vscode-remote",e.vscodeRemoteResource="vscode-remote-resource",e.vscodeManagedRemoteResource="vscode-managed-remote-resource",e.vscodeUserData="vscode-userdata",e.vscodeCustomEditor="vscode-custom-editor",e.vscodeNotebookCell="vscode-notebook-cell",e.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",e.vscodeNotebookCellMetadataDiff="vscode-notebook-cell-metadata-diff",e.vscodeNotebookCellOutput="vscode-notebook-cell-output",e.vscodeNotebookCellOutputDiff="vscode-notebook-cell-output-diff",e.vscodeNotebookMetadata="vscode-notebook-metadata",e.vscodeInteractiveInput="vscode-interactive-input",e.vscodeSettings="vscode-settings",e.vscodeWorkspaceTrust="vscode-workspace-trust",e.vscodeTerminal="vscode-terminal",e.vscodeChatCodeBlock="vscode-chat-code-block",e.vscodeChatCodeCompareBlock="vscode-chat-code-compare-block",e.vscodeChatSesssion="vscode-chat-editor",e.webviewPanel="webview-panel",e.vscodeWebview="vscode-webview",e.extension="extension",e.vscodeFileResource="vscode-file",e.tmp="tmp",e.vsls="vsls",e.vscodeSourceControl="vscode-scm",e.commentsInput="comment",e.codeSetting="code-setting",e.outputChannel="output"}(s||(s={}));const d=new class{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(e){this._preferredWebSchema=e}get _remoteResourcesPath(){return c.SA.join(this._serverRootPath,s.vscodeRemoteResource)}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(h){return n.dz(h),e}const t=e.authority;let i=this._hosts[t];i&&-1!==i.indexOf(":")&&-1===i.indexOf("[")&&(i=`[${i}]`);const o=this._ports[t],c=this._connectionTokens[t];let l=`path=${encodeURIComponent(e.path)}`;return"string"===typeof c&&(l+=`&tkn=${encodeURIComponent(c)}`),a.r.from({scheme:r.HZ?this._preferredWebSchema:s.vscodeRemoteResource,authority:`${i}:${o}`,path:this._remoteResourcesPath,query:l})}};class u{static{this.FALLBACK_AUTHORITY="vscode-app"}asBrowserUri(e){const t=this.toUri(e);return this.uriToBrowserUri(t)}uriToBrowserUri(e){return e.scheme===s.vscodeRemote?d.rewrite(e):e.scheme!==s.file||!r.ib&&r.lg!==`${s.vscodeFileResource}://${u.FALLBACK_AUTHORITY}`?e:e.with({scheme:s.vscodeFileResource,authority:e.authority||u.FALLBACK_AUTHORITY,query:null,fragment:null})}toUri(e,t){if(a.r.isUri(e))return e;if(globalThis._VSCODE_FILE_ROOT){const t=globalThis._VSCODE_FILE_ROOT;if(/^\w[\w\d+.-]*:\/\//.test(t))return a.r.joinPath(a.r.parse(t,!0),e);const i=c.fj(t,e);return a.r.file(i)}return a.r.parse(t.toUrl(e))}}const g=new u;var p;!function(e){const t=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);e.CoopAndCoep=Object.freeze(t.get("3"));const i="vscode-coi";e.getHeadersFromQuery=function(e){let s;"string"===typeof e?s=new URL(e).searchParams:e instanceof URL?s=e.searchParams:a.r.isUri(e)&&(s=new URL(e.toString(!0)).searchParams);const n=s?.get(i);if(n)return t.get(n)},e.addSearchParam=function(e,t,s){if(!globalThis.crossOriginIsolated)return;const n=t&&s?"3":s?"2":"1";e instanceof URLSearchParams?e.set(i,n):e[i]=n}}(p||(p={}))},1592:(e,t,i)=>{"use strict";function s(e,t,i){return Math.min(Math.max(e,t),i)}i.d(t,{Uq:()=>n,mu:()=>r,qE:()=>s});class n{constructor(){this._n=1,this._val=0}update(e){return this._val=this._val+(e-this._val)/this._n,this._n+=1,this._val}get value(){return this._val}}class r{constructor(e){this._n=0,this._val=0,this._values=[],this._index=0,this._sum=0,this._values=new Array(e),this._values.fill(0,0,e)}update(e){const t=this._values[this._index];return this._values[this._index]=e,this._index=(this._index+1)%this._values.length,this._sum-=t,this._sum+=e,this._n<this._values.length&&(this._n+=1),this._val=this._sum/this._n,this._val}get value(){return this._val}}},10146:(e,t,i)=>{"use strict";i.d(t,{Go:()=>n,PI:()=>a,V0:()=>d,aI:()=>h,co:()=>l,kT:()=>u,ol:()=>r});var s=i(631);function n(e){if(!e||"object"!==typeof e)return e;if(e instanceof RegExp)return e;const t=Array.isArray(e)?[]:{};return Object.entries(e).forEach((([e,i])=>{t[e]=i&&"object"===typeof i?n(i):i})),t}function r(e){if(!e||"object"!==typeof e)return e;const t=[e];for(;t.length>0;){const e=t.shift();Object.freeze(e);for(const i in e)if(o.call(e,i)){const n=e[i];"object"!==typeof n||Object.isFrozen(n)||(0,s.iu)(n)||t.push(n)}}return e}const o=Object.prototype.hasOwnProperty;function a(e,t){return c(e,t,new Set)}function c(e,t,i){if((0,s.z)(e))return e;const n=t(e);if("undefined"!==typeof n)return n;if(Array.isArray(e)){const s=[];for(const n of e)s.push(c(n,t,i));return s}if((0,s.Gv)(e)){if(i.has(e))throw new Error("Cannot clone recursive data-structure");i.add(e);const s={};for(const n in e)o.call(e,n)&&(s[n]=c(e[n],t,i));return i.delete(e),s}return e}function l(e,t,i=!0){return(0,s.Gv)(e)?((0,s.Gv)(t)&&Object.keys(t).forEach((n=>{n in e?i&&((0,s.Gv)(e[n])&&(0,s.Gv)(t[n])?l(e[n],t[n],i):e[n]=t[n]):e[n]=t[n]})),e):t}function h(e,t){if(e===t)return!0;if(null===e||void 0===e||null===t||void 0===t)return!1;if(typeof e!==typeof t)return!1;if("object"!==typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;let i,s;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(i=0;i<e.length;i++)if(!h(e[i],t[i]))return!1}else{const n=[];for(s in e)n.push(s);n.sort();const r=[];for(s in t)r.push(s);if(r.sort(),!h(n,r))return!1;for(i=0;i<n.length;i++)if(!h(e[n[i]],t[n[i]]))return!1}return!0}function d(e){const t=[];for(const i of function(e){let t=[];for(;Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}(e))"function"===typeof e[i]&&t.push(i);return t}function u(e,t){const i=e=>function(){const i=Array.prototype.slice.call(arguments,0);return t(e,i)},s={};for(const n of e)s[n]=i(n);return s}},31308:(e,t,i)=>{"use strict";i.d(t,{BK:()=>_,fm:()=>l,Y:()=>d,zL:()=>h,yC:()=>g,ht:()=>u,lk:()=>m.lk,un:()=>n.un,nb:()=>n.nb,ZX:()=>m.ZX,C:()=>n.C,rm:()=>n.rm,X2:()=>s.X2,y0:()=>m.y0,Yd:()=>m.Yd,yQ:()=>m.yQ,FY:()=>s.FY,Zh:()=>S,OI:()=>m.OI,PO:()=>s.PO,Rn:()=>s.Rn,oJ:()=>C});var s=i(49154),n=i(87958),r=i(66782),o=i(5662),a=i(22311),c=i(94958);function l(e){return new p(new a.nA(void 0,void 0,e),e,void 0,void 0)}function h(e,t){return new p(new a.nA(e.owner,e.debugName,e.debugReferenceFn??t),t,void 0,void 0)}function d(e,t){return new p(new a.nA(e.owner,e.debugName,e.debugReferenceFn??t),t,e.createEmptyChangeSummary,e.handleChange)}function u(e,t){const i=new o.Cm,s=d({owner:e.owner,debugName:e.debugName,debugReferenceFn:e.debugReferenceFn??t,createEmptyChangeSummary:e.createEmptyChangeSummary,handleChange:e.handleChange},((e,s)=>{i.clear(),t(e,s,i)}));return(0,o.s)((()=>{s.dispose(),i.dispose()}))}function g(e){const t=new o.Cm,i=h({owner:void 0,debugName:void 0,debugReferenceFn:e},(i=>{t.clear(),e(i,t)}));return(0,o.s)((()=>{i.dispose(),t.dispose()}))}class p{get debugName(){return this._debugNameData.getDebugName(this)??"(anonymous)"}constructor(e,t,i,s){this._debugNameData=e,this._runFn=t,this.createChangeSummary=i,this._handleChange=s,this.state=2,this.updateCount=0,this.disposed=!1,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=this.createChangeSummary?.(),(0,c.tZ)()?.handleAutorunCreated(this),this._runIfNeeded(),(0,o.Ay)(this)}dispose(){this.disposed=!0;for(const e of this.dependencies)e.removeObserver(this);this.dependencies.clear(),(0,o.VD)(this)}_runIfNeeded(){if(3===this.state)return;const e=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=e,this.state=3;const t=this.disposed;try{if(!t){(0,c.tZ)()?.handleAutorunTriggered(this);const e=this.changeSummary;this.changeSummary=this.createChangeSummary?.(),this._runFn(this,e)}}finally{t||(0,c.tZ)()?.handleAutorunFinished(this);for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}}toString(){return`Autorun<${this.debugName}>`}beginUpdate(){3===this.state&&(this.state=1),this.updateCount++}endUpdate(){if(1===this.updateCount)do{if(1===this.state){this.state=3;for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break}this._runIfNeeded()}while(3!==this.state);this.updateCount--,(0,r.Ft)((()=>this.updateCount>=0))}handlePossibleChange(e){3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)&&(this.state=1)}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){(!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary))&&(this.state=2)}}readObservable(e){if(this.disposed)return e.get();e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}}!function(e){e.Observer=p}(l||(l={}));var m=i(13850),f=i(64383);class _{static fromFn(e){return new _(e())}constructor(e){this._value=(0,s.FY)(this,void 0),this.promiseResult=this._value,this.promise=e.then((e=>((0,s.Rn)((t=>{this._value.set(new v(e,void 0),t)})),e)),(e=>{throw(0,s.Rn)((t=>{this._value.set(new v(void 0,e),t)})),e}))}}class v{constructor(e,t){this.data=e,this.error=t}}function C(e,t,i,s){return t||(t=e=>null!==e&&void 0!==e),new Promise(((n,r)=>{let o=!0,a=!1;const c=e.map((e=>({isFinished:t(e),error:!!i&&i(e),state:e}))),h=l((e=>{const{isFinished:t,error:i,state:s}=c.read(e);(t||i)&&(o?a=!0:h.dispose(),i?r(!0===i?s:i):n(s))}));if(s){const e=s.onCancellationRequested((()=>{h.dispose(),e.dispose(),r(new f.AL)}));if(s.isCancellationRequested)return h.dispose(),e.dispose(),void r(new f.AL)}o=!1,a&&h.dispose()}))}var E=i(51241);class b extends s.ZK{get debugName(){return this._debugNameData.getDebugName(this)??"LazyObservableValue"}constructor(e,t,i){super(),this._debugNameData=e,this._equalityComparator=i,this._isUpToDate=!0,this._deltas=[],this._updateCounter=0,this._value=t}get(){return this._update(),this._value}_update(){if(!this._isUpToDate)if(this._isUpToDate=!0,this._deltas.length>0){for(const e of this.observers)for(const t of this._deltas)e.handleChange(this,t);this._deltas.length=0}else for(const e of this.observers)e.handleChange(this,void 0)}_beginUpdate(){if(this._updateCounter++,1===this._updateCounter)for(const e of this.observers)e.beginUpdate(this)}_endUpdate(){if(this._updateCounter--,0===this._updateCounter){this._update();const e=[...this.observers];for(const t of e)t.endUpdate(this)}}addObserver(e){const t=!this.observers.has(e)&&this._updateCounter>0;super.addObserver(e),t&&e.beginUpdate(this)}removeObserver(e){const t=this.observers.has(e)&&this._updateCounter>0;super.removeObserver(e),t&&e.endUpdate(this)}set(e,t,i){if(void 0===i&&this._equalityComparator(this._value,e))return;let n;t||(t=n=new s.XL((()=>{}),(()=>`Setting ${this.debugName}`)));try{if(this._isUpToDate=!1,this._setValue(e),void 0!==i&&this._deltas.push(i),t.updateObserver({beginUpdate:()=>this._beginUpdate(),endUpdate:()=>this._endUpdate(),handleChange:(e,t)=>{},handlePossibleChange:e=>{}},this),this._updateCounter>1)for(const e of this.observers)e.handlePossibleChange(this)}finally{n&&n.finish()}}toString(){return`${this.debugName}: ${this._value}`}_setValue(e){this._value=e}}function S(e,t){return e.lazy?new b(new a.nA(e.owner,e.debugName,void 0),t,e.equalsFn??E.nx):new s.Lj(new a.nA(e.owner,e.debugName,void 0),t,e.equalsFn??E.nx)}},49154:(e,t,i)=>{"use strict";i.d(t,{Bm:()=>h,FB:()=>d,FY:()=>E,Lj:()=>b,N2:()=>u,PO:()=>v,Rn:()=>m,X2:()=>S,XL:()=>C,YY:()=>f,ZK:()=>p,fL:()=>_,zV:()=>g});var s=i(51241),n=i(22311),r=i(94958);let o,a,c,l;function h(e){o=e}function d(e){a=e}function u(e){c=e}class g{get TChange(){return null}reportChanges(){this.get()}read(e){return e?e.readObservable(this):this.get()}map(e,t){const i=void 0===t?void 0:e,s=void 0===t?e:t;return c({owner:i,debugName:()=>{const e=(0,n.qQ)(s);if(void 0!==e)return e;const t=/^\s*\(?\s*([a-zA-Z_$][a-zA-Z_$0-9]*)\s*\)?\s*=>\s*\1(?:\??)\.([a-zA-Z_$][a-zA-Z_$0-9]*)\s*$/.exec(s.toString());return t?`${this.debugName}.${t[2]}`:i?void 0:`${this.debugName} (mapped)`},debugReferenceFn:s},(e=>s(this.read(e),e)))}flatten(){return c({owner:void 0,debugName:()=>`${this.debugName} (flattened)`},(e=>this.read(e).read(e)))}recomputeInitiallyAndOnChange(e,t){return e.add(o(this,t)),this}keepObserved(e){return e.add(a(this)),this}}class p extends g{constructor(){super(...arguments),this.observers=new Set}addObserver(e){const t=this.observers.size;this.observers.add(e),0===t&&this.onFirstObserverAdded()}removeObserver(e){this.observers.delete(e)&&0===this.observers.size&&this.onLastObserverRemoved()}onFirstObserverAdded(){}onLastObserverRemoved(){}}function m(e,t){const i=new C(e,t);try{e(i)}finally{i.finish()}}function f(e){if(l)e(l);else{const t=new C(e,void 0);l=t;try{e(t)}finally{t.finish(),l=void 0}}}async function _(e,t){const i=new C(e,t);try{await e(i)}finally{i.finish()}}function v(e,t,i){e?t(e):m(t,i)}class C{constructor(e,t){this._fn=e,this._getDebugName=t,this.updatingObservers=[],(0,r.tZ)()?.handleBeginTransaction(this)}getDebugName(){return this._getDebugName?this._getDebugName():(0,n.qQ)(this._fn)}updateObserver(e,t){this.updatingObservers.push({observer:e,observable:t}),e.beginUpdate(t)}finish(){const e=this.updatingObservers;for(let t=0;t<e.length;t++){const{observer:i,observable:s}=e[t];i.endUpdate(s)}this.updatingObservers=null,(0,r.tZ)()?.handleEndTransaction()}}function E(e,t){let i;return i="string"===typeof e?new n.nA(void 0,e,void 0):new n.nA(e,void 0,void 0),new b(i,t,s.nx)}class b extends p{get debugName(){return this._debugNameData.getDebugName(this)??"ObservableValue"}constructor(e,t,i){super(),this._debugNameData=e,this._equalityComparator=i,this._value=t}get(){return this._value}set(e,t,i){if(void 0===i&&this._equalityComparator(this._value,e))return;let s;t||(t=s=new C((()=>{}),(()=>`Setting ${this.debugName}`)));try{const s=this._value;this._setValue(e),(0,r.tZ)()?.handleObservableChanged(this,{oldValue:s,newValue:e,change:i,didChange:!0,hadValue:!0});for(const e of this.observers)t.updateObserver(e,this),e.handleChange(this,i)}finally{s&&s.finish()}}toString(){return`${this.debugName}: ${this._value}`}_setValue(e){this._value=e}}function S(e,t){let i;return i="string"===typeof e?new n.nA(void 0,e,void 0):new n.nA(e,void 0,void 0),new y(i,t,s.nx)}class y extends b{_setValue(e){this._value!==e&&(this._value&&this._value.dispose(),this._value=e)}dispose(){this._value?.dispose()}}},22311:(e,t,i)=>{"use strict";i.d(t,{nA:()=>s,qQ:()=>c});class s{constructor(e,t,i){this.owner=e,this.debugNameSource=t,this.referenceFn=i}getDebugName(e){return function(e,t){const i=r.get(e);if(i)return i;const s=function(e,t){const i=r.get(e);if(i)return i;const s=t.owner?function(e){const t=a.get(e);if(t)return t;const i=function(e){const t=e.constructor;if(t)return t.name;return"Object"}(e);let s=o.get(i)??0;s++,o.set(i,s);const n=1===s?i:`${i}#${s}`;return a.set(e,n),n}(t.owner)+".":"";let n;const l=t.debugNameSource;if(void 0!==l){if("function"!==typeof l)return s+l;if(n=l(),void 0!==n)return s+n}const h=t.referenceFn;if(void 0!==h&&(n=c(h),void 0!==n))return s+n;if(void 0!==t.owner){const i=function(e,t){for(const i in e)if(e[i]===t)return i;return}(t.owner,e);if(void 0!==i)return s+i}return}(e,t);if(s){let t=n.get(s)??0;t++,n.set(s,t);const i=1===t?s:`${s}#${t}`;return r.set(e,i),i}return}(e,this)}}const n=new Map,r=new WeakMap;const o=new Map,a=new WeakMap;function c(e){const t=e.toString(),i=/\/\*\*\s*@description\s*([^*]*)\*\//.exec(t),s=i?i[1]:void 0;return s?.trim()}},87958:(e,t,i)=>{"use strict";i.d(t,{C:()=>d,a0:()=>p,dQ:()=>h,nb:()=>u,rm:()=>g,un:()=>l});var s=i(66782),n=i(51241),r=i(5662),o=i(49154),a=i(22311),c=i(94958);function l(e,t){return void 0!==t?new m(new a.nA(e,void 0,t),t,void 0,void 0,void 0,n.nx):new m(new a.nA(void 0,void 0,e),e,void 0,void 0,void 0,n.nx)}function h(e,t,i){return new f(new a.nA(e,void 0,t),t,void 0,void 0,void 0,n.nx,i)}function d(e,t){return new m(new a.nA(e.owner,e.debugName,e.debugReferenceFn),t,void 0,void 0,e.onLastObserverRemoved,e.equalsFn??n.nx)}function u(e,t){return new m(new a.nA(e.owner,e.debugName,void 0),t,e.createEmptyChangeSummary,e.handleChange,void 0,e.equalityComparer??n.nx)}function g(e,t){let i,s;void 0===t?(i=e,s=void 0):(s=e,i=t);const o=new r.Cm;return new m(new a.nA(s,void 0,i),(e=>(o.clear(),i(e,o))),void 0,void 0,(()=>o.dispose()),n.nx)}function p(e,t){let i,s,o;return void 0===t?(i=e,s=void 0):(s=e,i=t),new m(new a.nA(s,void 0,i),(e=>{o?o.clear():o=new r.Cm;const t=i(e);return t&&o.add(t),t}),void 0,void 0,(()=>{o&&(o.dispose(),o=void 0)}),n.nx)}(0,o.N2)(d);class m extends o.ZK{get debugName(){return this._debugNameData.getDebugName(this)??"(anonymous)"}constructor(e,t,i,s,n=void 0,r){super(),this._debugNameData=e,this._computeFn=t,this.createChangeSummary=i,this._handleChange=s,this._handleLastObserverRemoved=n,this._equalityComparator=r,this.state=0,this.value=void 0,this.updateCount=0,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=void 0,this.changeSummary=this.createChangeSummary?.(),(0,c.tZ)()?.handleDerivedCreated(this)}onLastObserverRemoved(){this.state=0,this.value=void 0;for(const e of this.dependencies)e.removeObserver(this);this.dependencies.clear(),this._handleLastObserverRemoved?.()}get(){if(0===this.observers.size){const e=this._computeFn(this,this.createChangeSummary?.());return this.onLastObserverRemoved(),e}do{if(1===this.state)for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break;1===this.state&&(this.state=3),this._recomputeIfNeeded()}while(3!==this.state);return this.value}_recomputeIfNeeded(){if(3===this.state)return;const e=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=e;const t=0!==this.state,i=this.value;this.state=3;const s=this.changeSummary;this.changeSummary=this.createChangeSummary?.();try{this.value=this._computeFn(this,s)}finally{for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}const n=t&&!this._equalityComparator(i,this.value);if((0,c.tZ)()?.handleDerivedRecomputed(this,{oldValue:i,newValue:this.value,change:void 0,didChange:n,hadValue:t}),n)for(const r of this.observers)r.handleChange(this,void 0)}toString(){return`LazyDerived<${this.debugName}>`}beginUpdate(e){this.updateCount++;const t=1===this.updateCount;if(3===this.state&&(this.state=1,!t))for(const i of this.observers)i.handlePossibleChange(this);if(t)for(const i of this.observers)i.beginUpdate(this)}endUpdate(e){if(this.updateCount--,0===this.updateCount){const e=[...this.observers];for(const t of e)t.endUpdate(this)}(0,s.Ft)((()=>this.updateCount>=0))}handlePossibleChange(e){if(3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){this.state=1;for(const e of this.observers)e.handlePossibleChange(this)}}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){const i=!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary),s=3===this.state;if(i&&(1===this.state||s)&&(this.state=2,s))for(const e of this.observers)e.handlePossibleChange(this)}}readObservable(e){e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}addObserver(e){const t=!this.observers.has(e)&&this.updateCount>0;super.addObserver(e),t&&e.beginUpdate(this)}removeObserver(e){const t=this.observers.has(e)&&this.updateCount>0;super.removeObserver(e),t&&e.endUpdate(this)}}class f extends m{constructor(e,t,i,s,n=void 0,r,o){super(e,t,i,s,n,r),this.set=o}}},94958:(e,t,i)=>{"use strict";let s;function n(e){s=e}function r(){return s}i.d(t,{Br:()=>n,jm:()=>o,tZ:()=>r});class o{constructor(){this.indentation=0,this.changedObservablesSets=new WeakMap}textToConsoleArgs(e){return function(e){const t=new Array,i=[];let s="";function n(e){if("length"in e)for(const t of e)t&&n(t);else"text"in e?(s+=`%c${e.text}`,t.push(e.style),e.data&&i.push(...e.data)):"data"in e&&i.push(...e.data)}n(e);const r=[s,...t];return r.push(...i),r}([a(d("| ",this.indentation)),e])}formatInfo(e){return e.hadValue?e.didChange?[a(" "),l(h(e.oldValue,70),{color:"red",strikeThrough:!0}),a(" "),l(h(e.newValue,60),{color:"green"})]:[a(" (unchanged)")]:[a(" "),l(h(e.newValue,60),{color:"green"}),a(" (initial)")]}handleObservableChanged(e,t){console.log(...this.textToConsoleArgs([c("observable value changed"),l(e.debugName,{color:"BlueViolet"}),...this.formatInfo(t)]))}formatChanges(e){if(0!==e.size)return l(" (changed deps: "+[...e].map((e=>e.debugName)).join(", ")+")",{color:"gray"})}handleDerivedCreated(e){const t=e.handleChange;this.changedObservablesSets.set(e,new Set),e.handleChange=(i,s)=>(this.changedObservablesSets.get(e).add(i),t.apply(e,[i,s]))}handleDerivedRecomputed(e,t){const i=this.changedObservablesSets.get(e);console.log(...this.textToConsoleArgs([c("derived recomputed"),l(e.debugName,{color:"BlueViolet"}),...this.formatInfo(t),this.formatChanges(i),{data:[{fn:e._debugNameData.referenceFn??e._computeFn}]}])),i.clear()}handleFromEventObservableTriggered(e,t){console.log(...this.textToConsoleArgs([c("observable from event triggered"),l(e.debugName,{color:"BlueViolet"}),...this.formatInfo(t),{data:[{fn:e._getValue}]}]))}handleAutorunCreated(e){const t=e.handleChange;this.changedObservablesSets.set(e,new Set),e.handleChange=(i,s)=>(this.changedObservablesSets.get(e).add(i),t.apply(e,[i,s]))}handleAutorunTriggered(e){const t=this.changedObservablesSets.get(e);console.log(...this.textToConsoleArgs([c("autorun"),l(e.debugName,{color:"BlueViolet"}),this.formatChanges(t),{data:[{fn:e._debugNameData.referenceFn??e._runFn}]}])),t.clear(),this.indentation++}handleAutorunFinished(e){this.indentation--}handleBeginTransaction(e){let t=e.getDebugName();void 0===t&&(t=""),console.log(...this.textToConsoleArgs([c("transaction"),l(t,{color:"BlueViolet"}),{data:[{fn:e._fn}]}])),this.indentation++}handleEndTransaction(){this.indentation--}}function a(e){return l(e,{color:"black"})}function c(e){return l(function(e,t){for(;e.length<t;)e+=" ";return e}(`${e}: `,10),{color:"black",bold:!0})}function l(e,t={color:"black"}){const i={color:t.color};return t.strikeThrough&&(i["text-decoration"]="line-through"),t.bold&&(i["font-weight"]="bold"),{text:e,style:(s=i,Object.entries(s).reduce(((e,[t,i])=>`${e}${t}:${i};`),""))};var s}function h(e,t){switch(typeof e){case"number":default:return""+e;case"string":return e.length+2<=t?`"${e}"`:`"${e.substr(0,t-7)}"+...`;case"boolean":return e?"true":"false";case"undefined":return"undefined";case"object":return null===e?"null":Array.isArray(e)?function(e,t){let i="[ ",s=!0;for(const n of e){if(s||(i+=", "),i.length-5>t){i+="...";break}s=!1,i+=`${h(n,t-i.length)}`}return i+=" ]",i}(e,t):function(e,t){let i="{ ",s=!0;for(const[n,r]of Object.entries(e)){if(s||(i+=", "),i.length-5>t){i+="...";break}s=!1,i+=`${n}: ${h(r,t-i.length)}`}return i+=" }",i}(e,t);case"symbol":return e.toString();case"function":return`[[Function${e.name?" "+e.name:""}]]`}}function d(e,t){let i="";for(let s=1;s<=t;s++)i+=e;return i}},13850:(e,t,i)=>{"use strict";i.d(t,{OI:()=>v,Rl:()=>b,Yd:()=>f,ZX:()=>E,eP:()=>u,lk:()=>l,t:()=>y,y0:()=>d,yQ:()=>p});i(41234);var s=i(5662),n=i(49154),r=i(22311),o=i(87958),a=i(94958),c=i(51241);function l(e){return new h(e)}class h extends n.zV{constructor(e){super(),this.value=e}get debugName(){return this.toString()}get(){return this.value}addObserver(e){}removeObserver(e){}toString(){return`Const: ${this.value}`}}function d(...e){let t,i,s;return 3===e.length?[t,i,s]=e:[i,s]=e,new g(new r.nA(t,void 0,s),i,s,(()=>g.globalTransaction),c.nx)}function u(e,t,i){return new g(new r.nA(e.owner,e.debugName,e.debugReferenceFn??i),t,i,(()=>g.globalTransaction),e.equalsFn??c.nx)}class g extends n.ZK{constructor(e,t,i,s,r){super(),this._debugNameData=e,this.event=t,this._getValue=i,this._getTransaction=s,this._equalityComparator=r,this.hasValue=!1,this.handleEvent=e=>{const t=this._getValue(e),i=this.value,s=!this.hasValue||!this._equalityComparator(i,t);let r=!1;s&&(this.value=t,this.hasValue&&(r=!0,(0,n.PO)(this._getTransaction(),(e=>{(0,a.tZ)()?.handleFromEventObservableTriggered(this,{oldValue:i,newValue:t,change:void 0,didChange:s,hadValue:this.hasValue});for(const t of this.observers)e.updateObserver(t,this),t.handleChange(this,void 0)}),(()=>{const e=this.getDebugName();return"Event fired"+(e?`: ${e}`:"")}))),this.hasValue=!0),r||(0,a.tZ)()?.handleFromEventObservableTriggered(this,{oldValue:i,newValue:t,change:void 0,didChange:s,hadValue:this.hasValue})}}getDebugName(){return this._debugNameData.getDebugName(this)}get debugName(){const e=this.getDebugName();return"From Event"+(e?`: ${e}`:"")}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0,this.hasValue=!1,this.value=void 0}get(){if(this.subscription)return this.hasValue||this.handleEvent(void 0),this.value;return this._getValue(void 0)}}function p(e,t){return new m(e,t)}!function(e){e.Observer=g,e.batchEventsGlobally=function(e,t){let i=!1;void 0===g.globalTransaction&&(g.globalTransaction=e,i=!0);try{t()}finally{i&&(g.globalTransaction=void 0)}}}(d||(d={}));class m extends n.ZK{constructor(e,t){super(),this.debugName=e,this.event=t,this.handleEvent=()=>{(0,n.Rn)((e=>{for(const t of this.observers)e.updateObserver(t,this),t.handleChange(this,void 0)}),(()=>this.debugName))}}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0}get(){}}function f(e){return"string"===typeof e?new _(e):new _(void 0,e)}class _ extends n.ZK{get debugName(){return new r.nA(this._owner,this._debugName,void 0).getDebugName(this)??"Observable Signal"}toString(){return this.debugName}constructor(e,t){super(),this._debugName=e,this._owner=t}trigger(e,t){if(e)for(const i of this.observers)e.updateObserver(i,this),i.handleChange(this,t);else(0,n.Rn)((e=>{this.trigger(e,t)}),(()=>`Trigger signal ${this.debugName}`))}get(){}}function v(e,t){const i=new C(!0,t);return e.addObserver(i),t?t(e.get()):e.reportChanges(),(0,s.s)((()=>{e.removeObserver(i)}))}(0,n.FB)((function(e){const t=new C(!1,void 0);return e.addObserver(t),(0,s.s)((()=>{e.removeObserver(t)}))})),(0,n.Bm)(v);class C{constructor(e,t){this._forceRecompute=e,this._handleValue=t,this._counter=0}beginUpdate(e){this._counter++}endUpdate(e){this._counter--,0===this._counter&&this._forceRecompute&&(this._handleValue?this._handleValue(e.get()):e.reportChanges())}handlePossibleChange(e){}handleChange(e,t){}}function E(e,t){let i;return(0,o.C)({owner:e,debugReferenceFn:t},(e=>(i=t(e,i),i)))}function b(e,t,i,s){let n=new S(i,s);return(0,o.C)({debugReferenceFn:i,owner:e,onLastObserverRemoved:()=>{n.dispose(),n=new S(i)}},(e=>(n.setItems(t.read(e)),n.getItems())))}class S{constructor(e,t){this._map=e,this._keySelector=t,this._cache=new Map,this._items=[]}dispose(){this._cache.forEach((e=>e.store.dispose())),this._cache.clear()}setItems(e){const t=[],i=new Set(this._cache.keys());for(const n of e){const e=this._keySelector?this._keySelector(n):n;let r=this._cache.get(e);if(r)i.delete(e);else{const t=new s.Cm;r={out:this._map(n,t),store:t},this._cache.set(e,r)}t.push(r.out)}for(const s of i){this._cache.get(s).store.dispose(),this._cache.delete(s)}this._items=t}getItems(){return this._items}}function y(e,t){return E(e,((e,i)=>i??t(e)))}},74027:(e,t,i)=>{"use strict";i.d(t,{IN:()=>f,LC:()=>R,P8:()=>w,S8:()=>C,SA:()=>v,V8:()=>S,Vn:()=>L,fj:()=>E,hd:()=>b,pD:()=>y});var s=i(59911);const n=46,r=47,o=92,a=58;class c extends Error{constructor(e,t,i){let s;"string"===typeof t&&0===t.indexOf("not ")?(s="must not be",t=t.replace(/^not /,"")):s="must be";const n=-1!==e.indexOf(".")?"property":"argument";let r=`The "${e}" ${n} ${s} of type ${t}`;r+=". Received type "+typeof i,super(r),this.code="ERR_INVALID_ARG_TYPE"}}function l(e,t){if("string"!==typeof e)throw new c(t,"string",e)}const h="win32"===s.iD;function d(e){return e===r||e===o}function u(e){return e===r}function g(e){return e>=65&&e<=90||e>=97&&e<=122}function p(e,t,i,s){let o="",a=0,c=-1,l=0,h=0;for(let d=0;d<=e.length;++d){if(d<e.length)h=e.charCodeAt(d);else{if(s(h))break;h=r}if(s(h)){if(c===d-1||1===l);else if(2===l){if(o.length<2||2!==a||o.charCodeAt(o.length-1)!==n||o.charCodeAt(o.length-2)!==n){if(o.length>2){const e=o.lastIndexOf(i);-1===e?(o="",a=0):(o=o.slice(0,e),a=o.length-1-o.lastIndexOf(i)),c=d,l=0;continue}if(0!==o.length){o="",a=0,c=d,l=0;continue}}t&&(o+=o.length>0?`${i}..`:"..",a=2)}else o.length>0?o+=`${i}${e.slice(c+1,d)}`:o=e.slice(c+1,d),a=d-c-1;c=d,l=0}else h===n&&-1!==l?++l:l=-1}return o}function m(e,t){!function(e,t){if(null===e||"object"!==typeof e)throw new c(t,"Object",e)}(t,"pathObject");const i=t.dir||t.root,s=t.base||`${t.name||""}${n=t.ext,n?`${"."===n[0]?"":"."}${n}`:""}`;var n;return i?i===t.root?`${i}${s}`:`${i}${e}${s}`:s}const f={resolve(...e){let t="",i="",n=!1;for(let r=e.length-1;r>=-1;r--){let c;if(r>=0){if(c=e[r],l(c,`paths[${r}]`),0===c.length)continue}else 0===t.length?c=s.bJ():(c={NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}[`=${t}`]||s.bJ(),(void 0===c||c.slice(0,2).toLowerCase()!==t.toLowerCase()&&c.charCodeAt(2)===o)&&(c=`${t}\\`));const h=c.length;let u=0,p="",m=!1;const f=c.charCodeAt(0);if(1===h)d(f)&&(u=1,m=!0);else if(d(f))if(m=!0,d(c.charCodeAt(1))){let e=2,t=e;for(;e<h&&!d(c.charCodeAt(e));)e++;if(e<h&&e!==t){const i=c.slice(t,e);for(t=e;e<h&&d(c.charCodeAt(e));)e++;if(e<h&&e!==t){for(t=e;e<h&&!d(c.charCodeAt(e));)e++;e!==h&&e===t||(p=`\\\\${i}\\${c.slice(t,e)}`,u=e)}}}else u=1;else g(f)&&c.charCodeAt(1)===a&&(p=c.slice(0,2),u=2,h>2&&d(c.charCodeAt(2))&&(m=!0,u=3));if(p.length>0)if(t.length>0){if(p.toLowerCase()!==t.toLowerCase())continue}else t=p;if(n){if(t.length>0)break}else if(i=`${c.slice(u)}\\${i}`,n=m,m&&t.length>0)break}return i=p(i,!n,"\\",d),n?`${t}\\${i}`:`${t}${i}`||"."},normalize(e){l(e,"path");const t=e.length;if(0===t)return".";let i,s=0,n=!1;const r=e.charCodeAt(0);if(1===t)return u(r)?"\\":e;if(d(r))if(n=!0,d(e.charCodeAt(1))){let n=2,r=n;for(;n<t&&!d(e.charCodeAt(n));)n++;if(n<t&&n!==r){const o=e.slice(r,n);for(r=n;n<t&&d(e.charCodeAt(n));)n++;if(n<t&&n!==r){for(r=n;n<t&&!d(e.charCodeAt(n));)n++;if(n===t)return`\\\\${o}\\${e.slice(r)}\\`;n!==r&&(i=`\\\\${o}\\${e.slice(r,n)}`,s=n)}}}else s=1;else g(r)&&e.charCodeAt(1)===a&&(i=e.slice(0,2),s=2,t>2&&d(e.charCodeAt(2))&&(n=!0,s=3));let o=s<t?p(e.slice(s),!n,"\\",d):"";return 0!==o.length||n||(o="."),o.length>0&&d(e.charCodeAt(t-1))&&(o+="\\"),void 0===i?n?`\\${o}`:o:n?`${i}\\${o}`:`${i}${o}`},isAbsolute(e){l(e,"path");const t=e.length;if(0===t)return!1;const i=e.charCodeAt(0);return d(i)||t>2&&g(i)&&e.charCodeAt(1)===a&&d(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let t,i;for(let r=0;r<e.length;++r){const s=e[r];l(s,"path"),s.length>0&&(void 0===t?t=i=s:t+=`\\${s}`)}if(void 0===t)return".";let s=!0,n=0;if("string"===typeof i&&d(i.charCodeAt(0))){++n;const e=i.length;e>1&&d(i.charCodeAt(1))&&(++n,e>2&&(d(i.charCodeAt(2))?++n:s=!1))}if(s){for(;n<t.length&&d(t.charCodeAt(n));)n++;n>=2&&(t=`\\${t.slice(n)}`)}return f.normalize(t)},relative(e,t){if(l(e,"from"),l(t,"to"),e===t)return"";const i=f.resolve(e),s=f.resolve(t);if(i===s)return"";if((e=i.toLowerCase())===(t=s.toLowerCase()))return"";let n=0;for(;n<e.length&&e.charCodeAt(n)===o;)n++;let r=e.length;for(;r-1>n&&e.charCodeAt(r-1)===o;)r--;const a=r-n;let c=0;for(;c<t.length&&t.charCodeAt(c)===o;)c++;let h=t.length;for(;h-1>c&&t.charCodeAt(h-1)===o;)h--;const d=h-c,u=a<d?a:d;let g=-1,p=0;for(;p<u;p++){const i=e.charCodeAt(n+p);if(i!==t.charCodeAt(c+p))break;i===o&&(g=p)}if(p!==u){if(-1===g)return s}else{if(d>u){if(t.charCodeAt(c+p)===o)return s.slice(c+p+1);if(2===p)return s.slice(c+p)}a>u&&(e.charCodeAt(n+p)===o?g=p:2===p&&(g=3)),-1===g&&(g=0)}let m="";for(p=n+g+1;p<=r;++p)p!==r&&e.charCodeAt(p)!==o||(m+=0===m.length?"..":"\\..");return c+=g,m.length>0?`${m}${s.slice(c,h)}`:(s.charCodeAt(c)===o&&++c,s.slice(c,h))},toNamespacedPath(e){if("string"!==typeof e||0===e.length)return e;const t=f.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===o){if(t.charCodeAt(1)===o){const e=t.charCodeAt(2);if(63!==e&&e!==n)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(g(t.charCodeAt(0))&&t.charCodeAt(1)===a&&t.charCodeAt(2)===o)return`\\\\?\\${t}`;return e},dirname(e){l(e,"path");const t=e.length;if(0===t)return".";let i=-1,s=0;const n=e.charCodeAt(0);if(1===t)return d(n)?e:".";if(d(n)){if(i=s=1,d(e.charCodeAt(1))){let n=2,r=n;for(;n<t&&!d(e.charCodeAt(n));)n++;if(n<t&&n!==r){for(r=n;n<t&&d(e.charCodeAt(n));)n++;if(n<t&&n!==r){for(r=n;n<t&&!d(e.charCodeAt(n));)n++;if(n===t)return e;n!==r&&(i=s=n+1)}}}}else g(n)&&e.charCodeAt(1)===a&&(i=t>2&&d(e.charCodeAt(2))?3:2,s=i);let r=-1,o=!0;for(let a=t-1;a>=s;--a)if(d(e.charCodeAt(a))){if(!o){r=a;break}}else o=!1;if(-1===r){if(-1===i)return".";r=i}return e.slice(0,r)},basename(e,t){void 0!==t&&l(t,"suffix"),l(e,"path");let i,s=0,n=-1,r=!0;if(e.length>=2&&g(e.charCodeAt(0))&&e.charCodeAt(1)===a&&(s=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(i=e.length-1;i>=s;--i){const c=e.charCodeAt(i);if(d(c)){if(!r){s=i+1;break}}else-1===a&&(r=!1,a=i+1),o>=0&&(c===t.charCodeAt(o)?-1===--o&&(n=i):(o=-1,n=a))}return s===n?n=a:-1===n&&(n=e.length),e.slice(s,n)}for(i=e.length-1;i>=s;--i)if(d(e.charCodeAt(i))){if(!r){s=i+1;break}}else-1===n&&(r=!1,n=i+1);return-1===n?"":e.slice(s,n)},extname(e){l(e,"path");let t=0,i=-1,s=0,r=-1,o=!0,c=0;e.length>=2&&e.charCodeAt(1)===a&&g(e.charCodeAt(0))&&(t=s=2);for(let a=e.length-1;a>=t;--a){const t=e.charCodeAt(a);if(d(t)){if(!o){s=a+1;break}}else-1===r&&(o=!1,r=a+1),t===n?-1===i?i=a:1!==c&&(c=1):-1!==i&&(c=-1)}return-1===i||-1===r||0===c||1===c&&i===r-1&&i===s+1?"":e.slice(i,r)},format:m.bind(null,"\\"),parse(e){l(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const i=e.length;let s=0,r=e.charCodeAt(0);if(1===i)return d(r)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(d(r)){if(s=1,d(e.charCodeAt(1))){let t=2,n=t;for(;t<i&&!d(e.charCodeAt(t));)t++;if(t<i&&t!==n){for(n=t;t<i&&d(e.charCodeAt(t));)t++;if(t<i&&t!==n){for(n=t;t<i&&!d(e.charCodeAt(t));)t++;t===i?s=t:t!==n&&(s=t+1)}}}}else if(g(r)&&e.charCodeAt(1)===a){if(i<=2)return t.root=t.dir=e,t;if(s=2,d(e.charCodeAt(2))){if(3===i)return t.root=t.dir=e,t;s=3}}s>0&&(t.root=e.slice(0,s));let o=-1,c=s,h=-1,u=!0,p=e.length-1,m=0;for(;p>=s;--p)if(r=e.charCodeAt(p),d(r)){if(!u){c=p+1;break}}else-1===h&&(u=!1,h=p+1),r===n?-1===o?o=p:1!==m&&(m=1):-1!==o&&(m=-1);return-1!==h&&(-1===o||0===m||1===m&&o===h-1&&o===c+1?t.base=t.name=e.slice(c,h):(t.name=e.slice(c,o),t.base=e.slice(c,h),t.ext=e.slice(o,h))),t.dir=c>0&&c!==s?e.slice(0,c-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},_=(()=>{if(h){const e=/\\/g;return()=>{const t=s.bJ().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>s.bJ()})(),v={resolve(...e){let t="",i=!1;for(let s=e.length-1;s>=-1&&!i;s--){const n=s>=0?e[s]:_();l(n,`paths[${s}]`),0!==n.length&&(t=`${n}/${t}`,i=n.charCodeAt(0)===r)}return t=p(t,!i,"/",u),i?`/${t}`:t.length>0?t:"."},normalize(e){if(l(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===r,i=e.charCodeAt(e.length-1)===r;return 0===(e=p(e,!t,"/",u)).length?t?"/":i?"./":".":(i&&(e+="/"),t?`/${e}`:e)},isAbsolute:e=>(l(e,"path"),e.length>0&&e.charCodeAt(0)===r),join(...e){if(0===e.length)return".";let t;for(let i=0;i<e.length;++i){const s=e[i];l(s,"path"),s.length>0&&(void 0===t?t=s:t+=`/${s}`)}return void 0===t?".":v.normalize(t)},relative(e,t){if(l(e,"from"),l(t,"to"),e===t)return"";if((e=v.resolve(e))===(t=v.resolve(t)))return"";const i=e.length,s=i-1,n=t.length-1,o=s<n?s:n;let a=-1,c=0;for(;c<o;c++){const i=e.charCodeAt(1+c);if(i!==t.charCodeAt(1+c))break;i===r&&(a=c)}if(c===o)if(n>o){if(t.charCodeAt(1+c)===r)return t.slice(1+c+1);if(0===c)return t.slice(1+c)}else s>o&&(e.charCodeAt(1+c)===r?a=c:0===c&&(a=0));let h="";for(c=1+a+1;c<=i;++c)c!==i&&e.charCodeAt(c)!==r||(h+=0===h.length?"..":"/..");return`${h}${t.slice(1+a)}`},toNamespacedPath:e=>e,dirname(e){if(l(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===r;let i=-1,s=!0;for(let n=e.length-1;n>=1;--n)if(e.charCodeAt(n)===r){if(!s){i=n;break}}else s=!1;return-1===i?t?"/":".":t&&1===i?"//":e.slice(0,i)},basename(e,t){void 0!==t&&l(t,"ext"),l(e,"path");let i,s=0,n=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let a=t.length-1,c=-1;for(i=e.length-1;i>=0;--i){const l=e.charCodeAt(i);if(l===r){if(!o){s=i+1;break}}else-1===c&&(o=!1,c=i+1),a>=0&&(l===t.charCodeAt(a)?-1===--a&&(n=i):(a=-1,n=c))}return s===n?n=c:-1===n&&(n=e.length),e.slice(s,n)}for(i=e.length-1;i>=0;--i)if(e.charCodeAt(i)===r){if(!o){s=i+1;break}}else-1===n&&(o=!1,n=i+1);return-1===n?"":e.slice(s,n)},extname(e){l(e,"path");let t=-1,i=0,s=-1,o=!0,a=0;for(let c=e.length-1;c>=0;--c){const l=e.charCodeAt(c);if(l!==r)-1===s&&(o=!1,s=c+1),l===n?-1===t?t=c:1!==a&&(a=1):-1!==t&&(a=-1);else if(!o){i=c+1;break}}return-1===t||-1===s||0===a||1===a&&t===s-1&&t===i+1?"":e.slice(t,s)},format:m.bind(null,"/"),parse(e){l(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const i=e.charCodeAt(0)===r;let s;i?(t.root="/",s=1):s=0;let o=-1,a=0,c=-1,h=!0,d=e.length-1,u=0;for(;d>=s;--d){const t=e.charCodeAt(d);if(t!==r)-1===c&&(h=!1,c=d+1),t===n?-1===o?o=d:1!==u&&(u=1):-1!==o&&(u=-1);else if(!h){a=d+1;break}}if(-1!==c){const s=0===a&&i?1:a;-1===o||0===u||1===u&&o===c-1&&o===a+1?t.base=t.name=e.slice(s,c):(t.name=e.slice(s,o),t.base=e.slice(s,c),t.ext=e.slice(o,c))}return a>0?t.dir=e.slice(0,a-1):i&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};v.win32=f.win32=f,v.posix=f.posix=v;const C=h?f.normalize:v.normalize,E=h?f.join:v.join,b=h?f.resolve:v.resolve,S=h?f.relative:v.relative,y=h?f.dirname:v.dirname,w=h?f.basename:v.basename,R=h?f.extname:v.extname,L=h?f.sep:v.sep},98067:(e,t,i)=>{"use strict";i.d(t,{BH:()=>D,Fr:()=>I,H8:()=>W,HZ:()=>k,OS:()=>F,UP:()=>G,_p:()=>P,cm:()=>B,gm:()=>V,ib:()=>x,j9:()=>T,lg:()=>A,m0:()=>j,nr:()=>z,uF:()=>R,un:()=>N,zx:()=>L});var s=i(78209);const n="en";let r,o,a=!1,c=!1,l=!1,h=!1,d=!1,u=!1,g=!1,p=!1,m=!1,f=!1,_=n,v=null,C=null;const E=globalThis;let b;"undefined"!==typeof E.vscode&&"undefined"!==typeof E.vscode.process?b=E.vscode.process:"undefined"!==typeof process&&"string"===typeof process?.versions?.node&&(b=process);const S="string"===typeof b?.versions?.electron,y=S&&"renderer"===b?.type;if("object"===typeof b){a="win32"===b.platform,c="darwin"===b.platform,l="linux"===b.platform,h=l&&!!b.env.SNAP&&!!b.env.SNAP_REVISION,g=S,m=!!b.env.CI||!!b.env.BUILD_ARTIFACTSTAGINGDIRECTORY,r=n,_=n;const e=b.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e);r=t.userLocale,v=t.osLocale,_=t.resolvedLanguage||n,C=t.languagePack?.translationsConfigFile}catch(K){}d=!0}else"object"!==typeof navigator||y?console.error("Unable to resolve platform."):(o=navigator.userAgent,a=o.indexOf("Windows")>=0,c=o.indexOf("Macintosh")>=0,p=(o.indexOf("Macintosh")>=0||o.indexOf("iPad")>=0||o.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,l=o.indexOf("Linux")>=0,f=o?.indexOf("Mobi")>=0,u=!0,_=s.i8()||n,r=navigator.language.toLowerCase(),v=r);let w=0;c?w=1:a?w=3:l&&(w=2);const R=a,L=c,T=l,x=d,k=u,A=u&&"function"===typeof E.importScripts?E.origin:void 0,N=p,I=f,O=o,D=_,M="function"===typeof E.postMessage&&!E.importScripts,P=(()=>{if(M){const e=[];E.addEventListener("message",(t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,s=e.length;i<s;i++){const s=e[i];if(s.id===t.data.vscodeScheduleAsyncWork)return e.splice(i,1),void s.callback()}}));let t=0;return i=>{const s=++t;e.push({id:s,callback:i}),E.postMessage({vscodeScheduleAsyncWork:s},"*")}}return e=>setTimeout(e)})(),F=c||p?2:a?1:3;let U=!0,H=!1;function B(){if(!H){H=!0;const e=new Uint8Array(2);e[0]=1,e[1]=2;const t=new Uint16Array(e.buffer);U=513===t[0]}return U}const W=!!(O&&O.indexOf("Chrome")>=0),V=!!(O&&O.indexOf("Firefox")>=0),z=!!(!W&&O&&O.indexOf("Safari")>=0),G=!!(O&&O.indexOf("Edg/")>=0),j=!!(O&&O.indexOf("Android")>=0)},59911:(e,t,i)=>{"use strict";i.d(t,{_K:()=>a,bJ:()=>o,iD:()=>c});var s=i(98067);let n;const r=globalThis.vscode;if("undefined"!==typeof r&&"undefined"!==typeof r.process){const e=r.process;n={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd:()=>e.cwd()}}else n="undefined"!==typeof process&&"string"===typeof process?.versions?.node?{get platform(){return process.platform},get arch(){return process.arch},get env(){return{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}},cwd:()=>({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}.VSCODE_CWD||process.cwd())}:{get platform(){return s.uF?"win32":s.zx?"darwin":"linux"},get arch(){},get env(){return{}},cwd:()=>"/"};const o=n.cwd,a=n.env,c=n.platform},92719:(e,t,i)=>{"use strict";var s;i.d(t,{Q:()=>s}),function(e){function t(e,t){if(e.start>=t.end||t.start>=e.end)return{start:0,end:0};const i=Math.max(e.start,t.start),s=Math.min(e.end,t.end);return s-i<=0?{start:0,end:0}:{start:i,end:s}}function i(e){return e.end-e.start<=0}e.intersect=t,e.isEmpty=i,e.intersects=function(e,s){return!i(t(e,s))},e.relativeComplement=function(e,t){const s=[],n={start:e.start,end:Math.min(t.start,e.end)},r={start:Math.max(t.end,e.start),end:e.end};return i(n)||s.push(n),i(r)||s.push(r),s}}(s||(s={}))},89403:(e,t,i)=>{"use strict";i.d(t,{B6:()=>y,Fd:()=>v,LC:()=>m,P8:()=>p,Pi:()=>g,er:()=>d,iZ:()=>C,n4:()=>u,o1:()=>E,pD:()=>f,su:()=>l,uJ:()=>_});var s=i(79326),n=i(36456),r=i(74027),o=i(98067),a=i(91508),c=i(79400);function l(e){return(0,c.I)(e,!0)}class h{constructor(e){this._ignorePathCasing=e}compare(e,t,i=!1){return e===t?0:(0,a.UD)(this.getComparisonKey(e,i),this.getComparisonKey(t,i))}isEqual(e,t,i=!1){return e===t||!(!e||!t)&&this.getComparisonKey(e,i)===this.getComparisonKey(t,i)}getComparisonKey(e,t=!1){return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:t?null:void 0}).toString()}isEqualOrParent(e,t,i=!1){if(e.scheme===t.scheme){if(e.scheme===n.ny.file)return s._1(l(e),l(t),this._ignorePathCasing(e))&&e.query===t.query&&(i||e.fragment===t.fragment);if(b(e.authority,t.authority))return s._1(e.path,t.path,this._ignorePathCasing(e),"/")&&e.query===t.query&&(i||e.fragment===t.fragment)}return!1}joinPath(e,...t){return c.r.joinPath(e,...t)}basenameOrAuthority(e){return p(e)||e.authority}basename(e){return r.SA.basename(e.path)}extname(e){return r.SA.extname(e.path)}dirname(e){if(0===e.path.length)return e;let t;return e.scheme===n.ny.file?t=c.r.file(r.pD(l(e))).path:(t=r.SA.dirname(e.path),e.authority&&t.length&&47!==t.charCodeAt(0)&&(console.error(`dirname("${e.toString})) resulted in a relative path`),t="/")),e.with({path:t})}normalizePath(e){if(!e.path.length)return e;let t;return t=e.scheme===n.ny.file?c.r.file(r.S8(l(e))).path:r.SA.normalize(e.path),e.with({path:t})}relativePath(e,t){if(e.scheme!==t.scheme||!b(e.authority,t.authority))return;if(e.scheme===n.ny.file){const i=r.V8(l(e),l(t));return o.uF?s.TH(i):i}let i=e.path||"/";const a=t.path||"/";if(this._ignorePathCasing(e)){let e=0;for(const t=Math.min(i.length,a.length);e<t&&(i.charCodeAt(e)===a.charCodeAt(e)||i.charAt(e).toLowerCase()===a.charAt(e).toLowerCase());e++);i=a.substr(0,e)+i.substr(e)}return r.SA.relative(i,a)}resolvePath(e,t){if(e.scheme===n.ny.file){const i=c.r.file(r.hd(l(e),t));return e.with({authority:i.authority,path:i.path})}return t=s.kb(t),e.with({path:r.SA.resolve(e.path,t)})}isAbsolutePath(e){return!!e.path&&"/"===e.path[0]}isEqualAuthority(e,t){return e===t||void 0!==e&&void 0!==t&&(0,a.Q_)(e,t)}hasTrailingPathSeparator(e,t=r.Vn){if(e.scheme===n.ny.file){const i=l(e);return i.length>s.Zn(i).length&&i[i.length-1]===t}{const t=e.path;return t.length>1&&47===t.charCodeAt(t.length-1)&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}}removeTrailingPathSeparator(e,t=r.Vn){return S(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e,t=r.Vn){let i=!1;if(e.scheme===n.ny.file){const n=l(e);i=void 0!==n&&n.length===s.Zn(n).length&&n[n.length-1]===t}else{t="/";const s=e.path;i=1===s.length&&47===s.charCodeAt(s.length-1)}return i||S(e,t)?e:e.with({path:e.path+"/"})}}const d=new h((()=>!1)),u=(new h((e=>e.scheme!==n.ny.file||!o.j9)),new h((e=>!0)),d.isEqual.bind(d)),g=(d.isEqualOrParent.bind(d),d.getComparisonKey.bind(d),d.basenameOrAuthority.bind(d)),p=d.basename.bind(d),m=d.extname.bind(d),f=d.dirname.bind(d),_=d.joinPath.bind(d),v=d.normalizePath.bind(d),C=d.relativePath.bind(d),E=d.resolvePath.bind(d),b=(d.isAbsolutePath.bind(d),d.isEqualAuthority.bind(d)),S=d.hasTrailingPathSeparator.bind(d);d.removeTrailingPathSeparator.bind(d),d.addTrailingPathSeparator.bind(d);var y;!function(e){e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=function(t){const i=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach((e=>{const[t,s]=e.split(":");t&&s&&i.set(t,s)}));const s=t.path.substring(0,t.path.indexOf(";"));return s&&i.set(e.META_DATA_MIME,s),i}}(y||(y={}))},49353:(e,t,i)=>{"use strict";i.d(t,{yE:()=>o});var s=i(41234),n=i(5662);class r{constructor(e,t,i,s,n,r,o){this._forceIntegerValues=e,this._scrollStateBrand=void 0,this._forceIntegerValues&&(t|=0,i|=0,s|=0,n|=0,r|=0,o|=0),this.rawScrollLeft=s,this.rawScrollTop=o,t<0&&(t=0),s+t>i&&(s=i-t),s<0&&(s=0),n<0&&(n=0),o+n>r&&(o=r-n),o<0&&(o=0),this.width=t,this.scrollWidth=i,this.scrollLeft=s,this.height=n,this.scrollHeight=r,this.scrollTop=o}equals(e){return this.rawScrollLeft===e.rawScrollLeft&&this.rawScrollTop===e.rawScrollTop&&this.width===e.width&&this.scrollWidth===e.scrollWidth&&this.scrollLeft===e.scrollLeft&&this.height===e.height&&this.scrollHeight===e.scrollHeight&&this.scrollTop===e.scrollTop}withScrollDimensions(e,t){return new r(this._forceIntegerValues,"undefined"!==typeof e.width?e.width:this.width,"undefined"!==typeof e.scrollWidth?e.scrollWidth:this.scrollWidth,t?this.rawScrollLeft:this.scrollLeft,"undefined"!==typeof e.height?e.height:this.height,"undefined"!==typeof e.scrollHeight?e.scrollHeight:this.scrollHeight,t?this.rawScrollTop:this.scrollTop)}withScrollPosition(e){return new r(this._forceIntegerValues,this.width,this.scrollWidth,"undefined"!==typeof e.scrollLeft?e.scrollLeft:this.rawScrollLeft,this.height,this.scrollHeight,"undefined"!==typeof e.scrollTop?e.scrollTop:this.rawScrollTop)}createScrollEvent(e,t){const i=this.width!==e.width,s=this.scrollWidth!==e.scrollWidth,n=this.scrollLeft!==e.scrollLeft,r=this.height!==e.height,o=this.scrollHeight!==e.scrollHeight,a=this.scrollTop!==e.scrollTop;return{inSmoothScrolling:t,oldWidth:e.width,oldScrollWidth:e.scrollWidth,oldScrollLeft:e.scrollLeft,width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,oldHeight:e.height,oldScrollHeight:e.scrollHeight,oldScrollTop:e.scrollTop,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:i,scrollWidthChanged:s,scrollLeftChanged:n,heightChanged:r,scrollHeightChanged:o,scrollTopChanged:a}}}class o extends n.jG{constructor(e){super(),this._scrollableBrand=void 0,this._onScroll=this._register(new s.vl),this.onScroll=this._onScroll.event,this._smoothScrollDuration=e.smoothScrollDuration,this._scheduleAtNextAnimationFrame=e.scheduleAtNextAnimationFrame,this._state=new r(e.forceIntegerValues,0,0,0,0,0,0),this._smoothScrolling=null}dispose(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),super.dispose()}setSmoothScrollDuration(e){this._smoothScrollDuration=e}validateScrollPosition(e){return this._state.withScrollPosition(e)}getScrollDimensions(){return this._state}setScrollDimensions(e,t){const i=this._state.withScrollDimensions(e,t);this._setState(i,Boolean(this._smoothScrolling)),this._smoothScrolling?.acceptScrollDimensions(this._state)}getFutureScrollPosition(){return this._smoothScrolling?this._smoothScrolling.to:this._state}getCurrentScrollPosition(){return this._state}setScrollPositionNow(e){const t=this._state.withScrollPosition(e);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(t,!1)}setScrollPositionSmooth(e,t){if(0===this._smoothScrollDuration)return this.setScrollPositionNow(e);if(this._smoothScrolling){e={scrollLeft:"undefined"===typeof e.scrollLeft?this._smoothScrolling.to.scrollLeft:e.scrollLeft,scrollTop:"undefined"===typeof e.scrollTop?this._smoothScrolling.to.scrollTop:e.scrollTop};const i=this._state.withScrollPosition(e);if(this._smoothScrolling.to.scrollLeft===i.scrollLeft&&this._smoothScrolling.to.scrollTop===i.scrollTop)return;let s;s=t?new l(this._smoothScrolling.from,i,this._smoothScrolling.startTime,this._smoothScrolling.duration):this._smoothScrolling.combine(this._state,i,this._smoothScrollDuration),this._smoothScrolling.dispose(),this._smoothScrolling=s}else{const t=this._state.withScrollPosition(e);this._smoothScrolling=l.start(this._state,t,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame((()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())}))}hasPendingScrollAnimation(){return Boolean(this._smoothScrolling)}_performSmoothScrolling(){if(!this._smoothScrolling)return;const e=this._smoothScrolling.tick(),t=this._state.withScrollPosition(e);return this._setState(t,!0),this._smoothScrolling?e.isDone?(this._smoothScrolling.dispose(),void(this._smoothScrolling=null)):void(this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame((()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())}))):void 0}_setState(e,t){const i=this._state;i.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(i,t)))}}class a{constructor(e,t,i){this.scrollLeft=e,this.scrollTop=t,this.isDone=i}}function c(e,t){const i=t-e;return function(t){return e+i*(1-function(e){return Math.pow(e,3)}(1-t))}}class l{constructor(e,t,i,s){this.from=e,this.to=t,this.duration=s,this.startTime=i,this.animationFrameDisposable=null,this._initAnimations()}_initAnimations(){this.scrollLeft=this._initAnimation(this.from.scrollLeft,this.to.scrollLeft,this.to.width),this.scrollTop=this._initAnimation(this.from.scrollTop,this.to.scrollTop,this.to.height)}_initAnimation(e,t,i){if(Math.abs(e-t)>2.5*i){let o,a;return e<t?(o=e+.75*i,a=t-.75*i):(o=e-.75*i,a=t+.75*i),s=c(e,o),n=c(a,t),r=.33,function(e){return e<r?s(e/r):n((e-r)/(1-r))}}var s,n,r;return c(e,t)}dispose(){null!==this.animationFrameDisposable&&(this.animationFrameDisposable.dispose(),this.animationFrameDisposable=null)}acceptScrollDimensions(e){this.to=e.withScrollPosition(this.to),this._initAnimations()}tick(){return this._tick(Date.now())}_tick(e){const t=(e-this.startTime)/this.duration;if(t<1){const e=this.scrollLeft(t),i=this.scrollTop(t);return new a(e,i,!1)}return new a(this.to.scrollLeft,this.to.scrollTop,!0)}combine(e,t,i){return l.start(e,t,i)}static start(e,t,i){i+=10;const s=Date.now()-10;return new l(e,t,s,i)}}},42291:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var s,n=i(91508);!function(e){e[e.Ignore=0]="Ignore",e[e.Info=1]="Info",e[e.Warning=2]="Warning",e[e.Error=3]="Error"}(s||(s={})),function(e){const t="error",i="warning",s="info";e.fromValue=function(r){return r?n.Q_(t,r)?e.Error:n.Q_(i,r)||n.Q_("warn",r)?e.Warning:n.Q_(s,r)?e.Info:e.Ignore:e.Ignore},e.toString=function(n){switch(n){case e.Error:return t;case e.Warning:return i;case e.Info:return s;default:return"ignore"}}}(s||(s={}));const r=s},78381:(e,t,i)=>{"use strict";i.d(t,{W:()=>n});const s=globalThis.performance&&"function"===typeof globalThis.performance.now;class n{static create(e){return new n(e)}constructor(e){this._now=s&&!1===e?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}}},91508:(e,t,i)=>{"use strict";i.d(t,{$X:()=>q,AV:()=>r,BO:()=>g,Bm:()=>p,Bq:()=>d,DB:()=>T,E_:()=>G,GP:()=>a,HG:()=>E,LJ:()=>M,LU:()=>Z,Lv:()=>x,MV:()=>W,NB:()=>u,OS:()=>f,Q_:()=>A,Qp:()=>I,S8:()=>re,Ss:()=>Q,UD:()=>y,UU:()=>b,Vi:()=>O,W1:()=>R,Wd:()=>se,Wv:()=>k,Z5:()=>F,_J:()=>Y,aC:()=>K,bm:()=>h,eY:()=>_,en:()=>C,ih:()=>l,iy:()=>B,jy:()=>c,km:()=>H,lF:()=>w,lT:()=>S,m:()=>V,ne:()=>$,ns:()=>N,pc:()=>D,r_:()=>X,tk:()=>ee,tl:()=>oe,uz:()=>v,wB:()=>m,y_:()=>ae,zY:()=>J,z_:()=>P,zd:()=>L});var s=i(81788),n=i(91090);function r(e){return!e||"string"!==typeof e||0===e.trim().length}const o=/{(\d+)}/g;function a(e,...t){return 0===t.length?e:e.replace(o,(function(e,i){const s=parseInt(i,10);return isNaN(s)||s<0||s>=t.length?e:t[s]}))}function c(e){return e.replace(/[<>"'&]/g,(e=>{switch(e){case"<":return"<";case">":return">";case'"':return""";case"'":return"'";case"&":return"&"}return e}))}function l(e){return e.replace(/[<>&]/g,(function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}}))}function h(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function d(e,t=" "){return g(u(e,t),t)}function u(e,t){if(!e||!t)return e;const i=t.length;if(0===i||0===e.length)return e;let s=0;for(;e.indexOf(t,s)===s;)s+=i;return e.substring(s)}function g(e,t){if(!e||!t)return e;const i=t.length,s=e.length;if(0===i||0===s)return e;let n=s,r=-1;for(;r=e.lastIndexOf(t,n-1),-1!==r&&r+i===n;){if(0===r)return"";n=r}return e.substring(0,n)}function p(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function m(e){return e.replace(/\*/g,"")}function f(e,t,i={}){if(!e)throw new Error("Cannot create regex from empty string");t||(e=h(e)),i.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));let s="";return i.global&&(s+="g"),i.matchCase||(s+="i"),i.multiline&&(s+="m"),i.unicode&&(s+="u"),new RegExp(e,s)}function _(e){if("^"===e.source||"^$"===e.source||"$"===e.source||"^\\s*$"===e.source)return!1;return!(!e.exec("")||0!==e.lastIndex)}function v(e){return e.split(/\r\n|\r|\n/)}function C(e){const t=[],i=e.split(/(\r\n|\r|\n)/);for(let s=0;s<Math.ceil(i.length/2);s++)t.push(i[2*s]+(i[2*s+1]??""));return t}function E(e){for(let t=0,i=e.length;t<i;t++){const i=e.charCodeAt(t);if(32!==i&&9!==i)return t}return-1}function b(e,t=0,i=e.length){for(let s=t;s<i;s++){const i=e.charCodeAt(s);if(32!==i&&9!==i)return e.substring(t,s)}return e.substring(t,i)}function S(e,t=e.length-1){for(let i=t;i>=0;i--){const t=e.charCodeAt(i);if(32!==t&&9!==t)return i}return-1}function y(e,t){return e<t?-1:e>t?1:0}function w(e,t,i=0,s=e.length,n=0,r=t.length){for(;i<s&&n<r;i++,n++){const s=e.charCodeAt(i),r=t.charCodeAt(n);if(s<r)return-1;if(s>r)return 1}const o=s-i,a=r-n;return o<a?-1:o>a?1:0}function R(e,t){return L(e,t,0,e.length,0,t.length)}function L(e,t,i=0,s=e.length,n=0,r=t.length){for(;i<s&&n<r;i++,n++){let o=e.charCodeAt(i),a=t.charCodeAt(n);if(o===a)continue;if(o>=128||a>=128)return w(e.toLowerCase(),t.toLowerCase(),i,s,n,r);x(o)&&(o-=32),x(a)&&(a-=32);const c=o-a;if(0!==c)return c}const o=s-i,a=r-n;return o<a?-1:o>a?1:0}function T(e){return e>=48&&e<=57}function x(e){return e>=97&&e<=122}function k(e){return e>=65&&e<=90}function A(e,t){return e.length===t.length&&0===L(e,t)}function N(e,t){const i=t.length;return!(t.length>e.length)&&0===L(e,t,0,i)}function I(e,t){const i=Math.min(e.length,t.length);let s;for(s=0;s<i;s++)if(e.charCodeAt(s)!==t.charCodeAt(s))return s;return i}function O(e,t){const i=Math.min(e.length,t.length);let s;const n=e.length-1,r=t.length-1;for(s=0;s<i;s++)if(e.charCodeAt(n-s)!==t.charCodeAt(r-s))return s;return i}function D(e){return 55296<=e&&e<=56319}function M(e){return 56320<=e&&e<=57343}function P(e,t){return t-56320+(e-55296<<10)+65536}function F(e,t,i){const s=e.charCodeAt(i);if(D(s)&&i+1<t){const t=e.charCodeAt(i+1);if(M(t))return P(s,t)}return s}class U{get offset(){return this._offset}constructor(e,t=0){this._str=e,this._len=e.length,this._offset=t}setOffset(e){this._offset=e}prevCodePoint(){const e=function(e,t){const i=e.charCodeAt(t-1);if(M(i)&&t>1){const s=e.charCodeAt(t-2);if(D(s))return P(s,i)}return i}(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){const e=F(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class H{get offset(){return this._iterator.offset}constructor(e,t=0){this._iterator=new U(e,t)}nextGraphemeLength(){const e=ie.getInstance(),t=this._iterator,i=t.offset;let s=e.getGraphemeBreakType(t.nextCodePoint());for(;!t.eol();){const i=t.offset,n=e.getGraphemeBreakType(t.nextCodePoint());if(te(s,n)){t.setOffset(i);break}s=n}return t.offset-i}prevGraphemeLength(){const e=ie.getInstance(),t=this._iterator,i=t.offset;let s=e.getGraphemeBreakType(t.prevCodePoint());for(;t.offset>0;){const i=t.offset,n=e.getGraphemeBreakType(t.prevCodePoint());if(te(n,s)){t.setOffset(i);break}s=n}return i-t.offset}eol(){return this._iterator.eol()}}function B(e,t){return new H(e,t).nextGraphemeLength()}function W(e,t){return new H(e,t).prevGraphemeLength()}function V(e,t){t>0&&M(e.charCodeAt(t))&&t--;const i=t+B(e,t);return[i-W(e,i),i]}let z;function G(e){return z||(z=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/),z.test(e)}const j=/^[\t\n\r\x20-\x7E]*$/;function K(e){return j.test(e)}const Y=/[\u2028\u2029]/;function q(e){return Y.test(e)}function $(e){return e>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function Q(e){return e>=127462&&e<=127487||8986===e||8987===e||9200===e||9203===e||e>=9728&&e<=10175||11088===e||11093===e||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129008||e>=129280&&e<=129535||e>=129648&&e<=129782}const X=String.fromCharCode(65279);function Z(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}function J(e,t=!1){return!!e&&(t&&(e=e.replace(/\\./g,"")),e.toLowerCase()!==e)}function ee(e){return(e%=52)<26?String.fromCharCode(97+e):String.fromCharCode(65+e-26)}function te(e,t){return 0===e?5!==t&&7!==t:(2!==e||3!==t)&&(4===e||2===e||3===e||(4===t||2===t||3===t||(8!==e||8!==t&&9!==t&&11!==t&&12!==t)&&((11!==e&&9!==e||9!==t&&10!==t)&&((12!==e&&10!==e||10!==t)&&(5!==t&&13!==t&&(7!==t&&(1!==e&&((13!==e||14!==t)&&(6!==e||6!==t)))))))))}class ie{static{this._INSTANCE=null}static getInstance(){return ie._INSTANCE||(ie._INSTANCE=new ie),ie._INSTANCE}constructor(){this._data=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]")}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;const t=this._data,i=t.length/3;let s=1;for(;s<=i;)if(e<t[3*s])s*=2;else{if(!(e>t[3*s+1]))return t[3*s+2];s=2*s+1}return 0}}function se(e,t){if(0===e)return 0;const i=function(e,t){const i=new U(t,e);let s=i.prevCodePoint();for(;ne(s)||65039===s||8419===s;){if(0===i.offset)return;s=i.prevCodePoint()}if(!Q(s))return;let n=i.offset;if(n>0){8205===i.prevCodePoint()&&(n=i.offset)}return n}(e,t);if(void 0!==i)return i;const s=new U(t,e);return s.prevCodePoint(),s.offset}function ne(e){return 127995<=e&&e<=127999}const re="\xa0";class oe{static{this.ambiguousCharacterData=new n.d((()=>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,8218,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,8242,96,1370,96,1523,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,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,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,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,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,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,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,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,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,71922,67,71913,67,65315,67,8557,67,8450,67,8493,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,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,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,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,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,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,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,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,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,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,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,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,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,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,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,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,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,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,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,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,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,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,71919,87,71910,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,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,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,66293,90,71909,90,65338,90,8484,90,8488,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,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,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,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,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,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,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,65283,35,65292,44,65307,59],"ko":[8211,45,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,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,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,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[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,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,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,65283,35,65307,59]}')))}static{this.cache=new s.o5({getCacheKey:JSON.stringify},(e=>{function t(e){const t=new Map;for(let i=0;i<e.length;i+=2)t.set(e[i],e[i+1]);return t}function i(e,t){if(!e)return t;const i=new Map;for(const[s,n]of e)t.has(s)&&i.set(s,n);return i}const s=this.ambiguousCharacterData.value;let n,r=e.filter((e=>!e.startsWith("_")&&e in s));0===r.length&&(r=["_default"]);for(const a of r){n=i(n,t(s[a]))}const o=function(e,t){const i=new Map(e);for(const[s,n]of t)i.set(s,n);return i}(t(s._common),n);return new oe(o)}))}static getInstance(e){return oe.cache.get(Array.from(e))}static{this._locales=new n.d((()=>Object.keys(oe.ambiguousCharacterData.value).filter((e=>!e.startsWith("_")))))}static getLocales(){return oe._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())}}class ae{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,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,12288,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]")}static{this._data=void 0}static getData(){return this._data||(this._data=new Set(ae.getRawData())),this._data}static isInvisibleCharacter(e){return ae.getData().has(e)}static get codePoints(){return ae.getData()}}},44759:(e,t,i)=>{"use strict";i.d(t,{h:()=>s});const s=Symbol("MicrotaskDelay")},4853:(e,t,i)=>{"use strict";i.d(t,{cB:()=>l});var s=i(91508);class n{constructor(){this._value="",this._pos=0}reset(e){return this._value=e,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos<this._value.length-1}cmp(e){return e.charCodeAt(0)-this._value.charCodeAt(this._pos)}value(){return this._value[this._pos]}}class r{constructor(e=!0){this._caseSensitive=e}reset(e){return this._value=e,this._from=0,this._to=0,this.next()}hasNext(){return this._to<this._value.length}next(){this._from=this._to;let e=!0;for(;this._to<this._value.length;this._to++){if(46===this._value.charCodeAt(this._to)){if(!e)break;this._from++}else e=!1}return this}cmp(e){return this._caseSensitive?(0,s.lF)(e,this._value,0,e.length,this._from,this._to):(0,s.zd)(e,this._value,0,e.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}class o{constructor(e=!0,t=!0){this._splitOnBackslash=e,this._caseSensitive=t}reset(e){this._from=0,this._to=0,this._value=e,this._valueLen=e.length;for(let t=e.length-1;t>=0;t--,this._valueLen--){const e=this._value.charCodeAt(t);if(!(47===e||this._splitOnBackslash&&92===e))break}return this.next()}hasNext(){return this._to<this._valueLen}next(){this._from=this._to;let e=!0;for(;this._to<this._valueLen;this._to++){const t=this._value.charCodeAt(this._to);if(47===t||this._splitOnBackslash&&92===t){if(!e)break;this._from++}else e=!1}return this}cmp(e){return this._caseSensitive?(0,s.lF)(e,this._value,0,e.length,this._from,this._to):(0,s.zd)(e,this._value,0,e.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}class a{constructor(e,t){this._ignorePathCasing=e,this._ignoreQueryAndFragment=t,this._states=[],this._stateIdx=0}reset(e){return this._value=e,this._states=[],this._value.scheme&&this._states.push(1),this._value.authority&&this._states.push(2),this._value.path&&(this._pathIterator=new o(!1,!this._ignorePathCasing(e)),this._pathIterator.reset(e.path),this._pathIterator.value()&&this._states.push(3)),this._ignoreQueryAndFragment(e)||(this._value.query&&this._states.push(4),this._value.fragment&&this._states.push(5)),this._stateIdx=0,this}next(){return 3===this._states[this._stateIdx]&&this._pathIterator.hasNext()?this._pathIterator.next():this._stateIdx+=1,this}hasNext(){return 3===this._states[this._stateIdx]&&this._pathIterator.hasNext()||this._stateIdx<this._states.length-1}cmp(e){if(1===this._states[this._stateIdx])return(0,s.W1)(e,this._value.scheme);if(2===this._states[this._stateIdx])return(0,s.W1)(e,this._value.authority);if(3===this._states[this._stateIdx])return this._pathIterator.cmp(e);if(4===this._states[this._stateIdx])return(0,s.UD)(e,this._value.query);if(5===this._states[this._stateIdx])return(0,s.UD)(e,this._value.fragment);throw new Error}value(){if(1===this._states[this._stateIdx])return this._value.scheme;if(2===this._states[this._stateIdx])return this._value.authority;if(3===this._states[this._stateIdx])return this._pathIterator.value();if(4===this._states[this._stateIdx])return this._value.query;if(5===this._states[this._stateIdx])return this._value.fragment;throw new Error}}class c{constructor(){this.height=1}rotateLeft(){const e=this.right;return this.right=e.left,e.left=this,this.updateHeight(),e.updateHeight(),e}rotateRight(){const e=this.left;return this.left=e.right,e.right=this,this.updateHeight(),e.updateHeight(),e}updateHeight(){this.height=1+Math.max(this.heightLeft,this.heightRight)}balanceFactor(){return this.heightRight-this.heightLeft}get heightLeft(){return this.left?.height??0}get heightRight(){return this.right?.height??0}}class l{static forUris(e=()=>!1,t=()=>!1){return new l(new a(e,t))}static forStrings(){return new l(new n)}static forConfigKeys(){return new l(new r)}constructor(e){this._iter=e}clear(){this._root=void 0}set(e,t){const i=this._iter.reset(e);let s;this._root||(this._root=new c,this._root.segment=i.value());const n=[];for(s=this._root;;){const e=i.cmp(s.segment);if(e>0)s.left||(s.left=new c,s.left.segment=i.value()),n.push([-1,s]),s=s.left;else if(e<0)s.right||(s.right=new c,s.right.segment=i.value()),n.push([1,s]),s=s.right;else{if(!i.hasNext())break;i.next(),s.mid||(s.mid=new c,s.mid.segment=i.value()),n.push([0,s]),s=s.mid}}const r=s.value;s.value=t,s.key=e;for(let o=n.length-1;o>=0;o--){const e=n[o][1];e.updateHeight();const t=e.balanceFactor();if(t<-1||t>1){const t=n[o][0],i=n[o+1][0];if(1===t&&1===i)n[o][1]=e.rotateLeft();else if(-1===t&&-1===i)n[o][1]=e.rotateRight();else if(1===t&&-1===i)e.right=n[o+1][1]=n[o+1][1].rotateRight(),n[o][1]=e.rotateLeft();else{if(-1!==t||1!==i)throw new Error;e.left=n[o+1][1]=n[o+1][1].rotateLeft(),n[o][1]=e.rotateRight()}if(o>0)switch(n[o-1][0]){case-1:n[o-1][1].left=n[o][1];break;case 1:n[o-1][1].right=n[o][1];break;case 0:n[o-1][1].mid=n[o][1]}else this._root=n[0][1]}}return r}get(e){return this._getNode(e)?.value}_getNode(e){const t=this._iter.reset(e);let i=this._root;for(;i;){const e=t.cmp(i.segment);if(e>0)i=i.left;else if(e<0)i=i.right;else{if(!t.hasNext())break;t.next(),i=i.mid}}return i}has(e){const t=this._getNode(e);return!(void 0===t?.value&&void 0===t?.mid)}delete(e){return this._delete(e,!1)}deleteSuperstr(e){return this._delete(e,!0)}_delete(e,t){const i=this._iter.reset(e),s=[];let n=this._root;for(;n;){const e=i.cmp(n.segment);if(e>0)s.push([-1,n]),n=n.left;else if(e<0)s.push([1,n]),n=n.right;else{if(!i.hasNext())break;i.next(),s.push([0,n]),n=n.mid}}if(n){if(t?(n.left=void 0,n.mid=void 0,n.right=void 0,n.height=1):(n.key=void 0,n.value=void 0),!n.mid&&!n.value)if(n.left&&n.right){const e=this._min(n.right);if(e.key){const{key:t,value:i,segment:s}=e;this._delete(e.key,!1),n.key=t,n.value=i,n.segment=s}}else{const e=n.left??n.right;if(s.length>0){const[t,i]=s[s.length-1];switch(t){case-1:i.left=e;break;case 0:i.mid=e;break;case 1:i.right=e}}else this._root=e}for(let e=s.length-1;e>=0;e--){const t=s[e][1];t.updateHeight();const i=t.balanceFactor();if(i>1?(t.right.balanceFactor()>=0||(t.right=t.right.rotateRight()),s[e][1]=t.rotateLeft()):i<-1&&(t.left.balanceFactor()<=0||(t.left=t.left.rotateLeft()),s[e][1]=t.rotateRight()),e>0)switch(s[e-1][0]){case-1:s[e-1][1].left=s[e][1];break;case 1:s[e-1][1].right=s[e][1];break;case 0:s[e-1][1].mid=s[e][1]}else this._root=s[0][1]}}}_min(e){for(;e.left;)e=e.left;return e}findSubstr(e){const t=this._iter.reset(e);let i,s=this._root;for(;s;){const e=t.cmp(s.segment);if(e>0)s=s.left;else if(e<0)s=s.right;else{if(!t.hasNext())break;t.next(),i=s.value||i,s=s.mid}}return s&&s.value||i}findSuperstr(e){return this._findSuperstrOrElement(e,!1)}_findSuperstrOrElement(e,t){const i=this._iter.reset(e);let s=this._root;for(;s;){const e=i.cmp(s.segment);if(e>0)s=s.left;else if(e<0)s=s.right;else{if(!i.hasNext())return s.mid?this._entries(s.mid):t?s.value:void 0;i.next(),s=s.mid}}}forEach(e){for(const[t,i]of this)e(i,t)}*[Symbol.iterator](){yield*this._entries(this._root)}_entries(e){const t=[];return this._dfsEntries(e,t),t[Symbol.iterator]()}_dfsEntries(e,t){e&&(e.left&&this._dfsEntries(e.left,t),e.value&&t.push([e.key,e.value]),e.mid&&this._dfsEntries(e.mid,t),e.right&&this._dfsEntries(e.right,t))}}},25689:(e,t,i)=>{"use strict";i.d(t,{L:()=>n});var s,n,r=i(10350);!function(e){e.isThemeColor=function(e){return e&&"object"===typeof e&&"string"===typeof e.id}}(s||(s={})),function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9-]+",e.iconModifierExpression="~[A-Za-z]+",e.iconNameCharacter="[A-Za-z0-9~-]";const t=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function i(e){const s=t.exec(e.id);if(!s)return i(r.W.error);const[,n,o]=s,a=["codicon","codicon-"+n];return o&&a.push("codicon-modifier-"+o.substring(1)),a}e.asClassNameArray=i,e.asClassName=function(e){return i(e).join(" ")},e.asCSSSelector=function(e){return"."+i(e).join(".")},e.isThemeIcon=function(e){return e&&"object"===typeof e&&"string"===typeof e.id&&("undefined"===typeof e.color||s.isThemeColor(e.color))};const n=new RegExp(`^\\$\\((${e.iconNameExpression}(?:${e.iconModifierExpression})?)\\)$`);e.fromString=function(e){const t=n.exec(e);if(!t)return;const[,i]=t;return{id:i}},e.fromId=function(e){return{id:e}},e.modify=function(e,t){let i=e.id;const s=i.lastIndexOf("~");return-1!==s&&(i=i.substring(0,s)),t&&(i=`${i}~${t}`),{id:i}},e.getModifier=function(e){const t=e.id.lastIndexOf("~");if(-1!==t)return e.id.substring(t+1)},e.isEqual=function(e,t){return e.id===t.id&&e.color?.id===t.color?.id}}(n||(n={}))},631:(e,t,i)=>{"use strict";function s(e){return"string"===typeof e}function n(e){return"object"===typeof e&&null!==e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function r(e){const t=Object.getPrototypeOf(Uint8Array);return"object"===typeof e&&e instanceof t}function o(e){return"number"===typeof e&&!isNaN(e)}function a(e){return!!e&&"function"===typeof e[Symbol.iterator]}function c(e){return!0===e||!1===e}function l(e){return"undefined"===typeof e}function h(e){return!d(e)}function d(e){return l(e)||null===e}function u(e,t){if(!e)throw new Error(t?`Unexpected type, expected '${t}'`:"Unexpected type")}function g(e){if(d(e))throw new Error("Assertion Failed: argument is undefined or null");return e}function p(e){return"function"===typeof e}function m(e,t){const i=Math.min(e.length,t.length);for(let s=0;s<i;s++)f(e[s],t[s])}function f(e,t){if(s(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(p(t)){try{if(e instanceof t)return}catch{}if(!d(e)&&e.constructor===t)return;if(1===t.length&&!0===t.call(void 0,e))return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}i.d(t,{Et:()=>o,Gv:()=>n,Kg:()=>s,Lm:()=>c,O9:()=>h,Tn:()=>p,b0:()=>l,eU:()=>g,iu:()=>r,j:()=>u,jx:()=>m,xZ:()=>a,z:()=>d})},85152:(e,t,i)=>{"use strict";function s(e){return e<0?0:e>255?255:0|e}function n(e){return e<0?0:e>4294967295?4294967295:0|e}i.d(t,{W:()=>s,j:()=>n})},79400:(e,t,i)=>{"use strict";i.d(t,{I:()=>_,r:()=>d});var s=i(74027),n=i(98067);const r=/^\w[\w\d+.-]*$/,o=/^\//,a=/^\/\//;const c="",l="/",h=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class d{static isUri(e){return e instanceof d||!!e&&("string"===typeof e.authority&&"string"===typeof e.fragment&&"string"===typeof e.path&&"string"===typeof e.query&&"string"===typeof e.scheme&&"string"===typeof e.fsPath&&"function"===typeof e.with&&"function"===typeof e.toString)}constructor(e,t,i,s,n,h=!1){"object"===typeof e?(this.scheme=e.scheme||c,this.authority=e.authority||c,this.path=e.path||c,this.query=e.query||c,this.fragment=e.fragment||c):(this.scheme=function(e,t){return e||t?e:"file"}(e,h),this.authority=t||c,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==l&&(t=l+t):t=l}return t}(this.scheme,i||c),this.query=s||c,this.fragment=n||c,function(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!r.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!o.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(a.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,h))}get fsPath(){return _(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:i,path:s,query:n,fragment:r}=e;return void 0===t?t=this.scheme:null===t&&(t=c),void 0===i?i=this.authority:null===i&&(i=c),void 0===s?s=this.path:null===s&&(s=c),void 0===n?n=this.query:null===n&&(n=c),void 0===r?r=this.fragment:null===r&&(r=c),t===this.scheme&&i===this.authority&&s===this.path&&n===this.query&&r===this.fragment?this:new g(t,i,s,n,r)}static parse(e,t=!1){const i=h.exec(e);return i?new g(i[2]||c,b(i[4]||c),b(i[5]||c),b(i[7]||c),b(i[9]||c),t):new g(c,c,c,c,c)}static file(e){let t=c;if(n.uF&&(e=e.replace(/\\/g,l)),e[0]===l&&e[1]===l){const i=e.indexOf(l,2);-1===i?(t=e.substring(2),e=l):(t=e.substring(2,i),e=e.substring(i)||l)}return new g("file",t,e,c,c)}static from(e,t){return new g(e.scheme,e.authority,e.path,e.query,e.fragment,t)}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let i;return i=n.uF&&"file"===e.scheme?d.file(s.IN.join(_(e,!0),...t)).path:s.SA.join(e.path,...t),e.with({path:i})}toString(e=!1){return v(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof d)return e;{const t=new g(e);return t._formatted=e.external??null,t._fsPath=e._sep===u?e.fsPath??null:null,t}}return e}}const u=n.uF?1:void 0;class g extends d{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=_(this,!1)),this._fsPath}toString(e=!1){return e?v(this,!0):(this._formatted||(this._formatted=v(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=u),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}}const p={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 m(e,t,i){let s,n=-1;for(let r=0;r<e.length;r++){const o=e.charCodeAt(r);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o||i&&91===o||i&&93===o||i&&58===o)-1!==n&&(s+=encodeURIComponent(e.substring(n,r)),n=-1),void 0!==s&&(s+=e.charAt(r));else{void 0===s&&(s=e.substr(0,r));const t=p[o];void 0!==t?(-1!==n&&(s+=encodeURIComponent(e.substring(n,r)),n=-1),s+=t):-1===n&&(n=r)}}return-1!==n&&(s+=encodeURIComponent(e.substring(n))),void 0!==s?s:e}function f(e){let t;for(let i=0;i<e.length;i++){const s=e.charCodeAt(i);35===s||63===s?(void 0===t&&(t=e.substr(0,i)),t+=p[s]):void 0!==t&&(t+=e[i])}return void 0!==t?t:e}function _(e,t){let i;return i=e.authority&&e.path.length>1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,n.uF&&(i=i.replace(/\//g,"\\")),i}function v(e,t){const i=t?f:m;let s="",{scheme:n,authority:r,path:o,query:a,fragment:c}=e;if(n&&(s+=n,s+=":"),(r||"file"===n)&&(s+=l,s+=l),r){let e=r.indexOf("@");if(-1!==e){const t=r.substr(0,e);r=r.substr(e+1),e=t.lastIndexOf(":"),-1===e?s+=i(t,!1,!1):(s+=i(t.substr(0,e),!1,!1),s+=":",s+=i(t.substr(e+1),!1,!0)),s+="@"}r=r.toLowerCase(),e=r.lastIndexOf(":"),-1===e?s+=i(r,!1,!0):(s+=i(r.substr(0,e),!1,!0),s+=r.substr(e))}if(o){if(o.length>=3&&47===o.charCodeAt(0)&&58===o.charCodeAt(2)){const e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&58===o.charCodeAt(1)){const e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}s+=i(o,!0,!1)}return a&&(s+="?",s+=i(a,!1,!1)),c&&(s+="#",s+=t?c:m(c,!1,!1)),s}function C(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+C(e.substr(3)):e}}const E=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function b(e){return e.match(E)?e.replace(E,(e=>C(e))):e}},58255:(e,t,i)=>{"use strict";i.d(t,{b:()=>s});const s=function(){if("object"===typeof crypto&&"function"===typeof crypto.randomUUID)return crypto.randomUUID.bind(crypto);let e;e="object"===typeof crypto&&"function"===typeof crypto.getRandomValues?crypto.getRandomValues.bind(crypto):function(e){for(let t=0;t<e.length;t++)e[t]=Math.floor(256*Math.random());return e};const t=new Uint8Array(16),i=[];for(let s=0;s<256;s++)i.push(s.toString(16).padStart(2,"0"));return function(){e(t),t[6]=15&t[6]|64,t[8]=63&t[8]|128;let s=0,n="";return n+=i[t[s++]],n+=i[t[s++]],n+=i[t[s++]],n+=i[t[s++]],n+="-",n+=i[t[s++]],n+=i[t[s++]],n+="-",n+=i[t[s++]],n+=i[t[s++]],n+="-",n+=i[t[s++]],n+=i[t[s++]],n+="-",n+=i[t[s++]],n+=i[t[s++]],n+=i[t[s++]],n+=i[t[s++]],n+=i[t[s++]],n+=i[t[s++]],n}}()},51929:(e,t,i)=>{"use strict";i.r(t),i.d(t,{SimpleWorkerClient:()=>C,SimpleWorkerServer:()=>S,create:()=>y,logOnceWebWorkerWarning:()=>u});var s=i(64383),n=i(41234),r=i(5662),o=i(36456),a=i(98067),c=i(91508);const l="default",h="$initialize";let d=!1;function u(e){a.HZ&&(d||(d=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(e.message))}class g{constructor(e,t,i,s,n){this.vsWorker=e,this.req=t,this.channel=i,this.method=s,this.args=n,this.type=0}}class p{constructor(e,t,i,s){this.vsWorker=e,this.seq=t,this.res=i,this.err=s,this.type=1}}class m{constructor(e,t,i,s,n){this.vsWorker=e,this.req=t,this.channel=i,this.eventName=s,this.arg=n,this.type=2}}class f{constructor(e,t,i){this.vsWorker=e,this.req=t,this.event=i,this.type=3}}class _{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class v{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,t,i){const s=String(++this._lastSentReq);return new Promise(((n,r)=>{this._pendingReplies[s]={resolve:n,reject:r},this._send(new g(this._workerId,s,e,t,i))}))}listen(e,t,i){let s=null;const r=new n.vl({onWillAddFirstListener:()=>{s=String(++this._lastSentReq),this._pendingEmitters.set(s,r),this._send(new m(this._workerId,s,e,t,i))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(s),this._send(new _(this._workerId,s)),s=null}});return r.event}handleMessage(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))}createProxyToRemoteChannel(e,t){const i={get:(i,s)=>("string"!==typeof s||i[s]||(b(s)?i[s]=t=>this.listen(e,s,t):E(s)?i[s]=this.listen(e,s,void 0):36===s.charCodeAt(0)&&(i[s]=async(...i)=>(await(t?.()),this.sendMessage(e,s,i)))),i[s])};return new Proxy(Object.create(null),i)}_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])return void console.warn("Got reply to unknown seq");const t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let i=e.err;return e.err.$isError&&(i=new Error,i.name=e.err.name,i.message=e.err.message,i.stack=e.err.stack),void t.reject(i)}t.resolve(e.res)}_handleRequestMessage(e){const t=e.req;this._handler.handleMessage(e.channel,e.method,e.args).then((e=>{this._send(new p(this._workerId,t,e,void 0))}),(e=>{e.detail instanceof Error&&(e.detail=(0,s.cU)(e.detail)),this._send(new p(this._workerId,t,void 0,(0,s.cU)(e)))}))}_handleSubscribeEventMessage(e){const t=e.req,i=this._handler.handleEvent(e.channel,e.eventName,e.arg)((e=>{this._send(new f(this._workerId,t,e))}));this._pendingEvents.set(t,i)}_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){const t=[];if(0===e.type)for(let i=0;i<e.args.length;i++)e.args[i]instanceof ArrayBuffer&&t.push(e.args[i]);else 1===e.type&&e.res instanceof ArrayBuffer&&t.push(e.res);this._handler.sendMessage(e,t)}}class C extends r.jG{constructor(e,t){super(),this._localChannels=new Map,this._worker=this._register(e.create({amdModuleId:"vs/base/common/worker/simpleWorker",esmModuleLocation:t.esmModuleLocation,label:t.label},(e=>{this._protocol.handleMessage(e)}),(e=>{(0,s.dz)(e)}))),this._protocol=new v({sendMessage:(e,t)=>{this._worker.postMessage(e,t)},handleMessage:(e,t,i)=>this._handleMessage(e,t,i),handleEvent:(e,t,i)=>this._handleEvent(e,t,i)}),this._protocol.setWorkerId(this._worker.getId());let i=null;const n=globalThis.require;"undefined"!==typeof n&&"function"===typeof n.getConfig?i=n.getConfig():"undefined"!==typeof globalThis.requirejs&&(i=globalThis.requirejs.s.contexts._.config),this._onModuleLoaded=this._protocol.sendMessage(l,h,[this._worker.getId(),JSON.parse(JSON.stringify(i)),t.amdModuleId]),this.proxy=this._protocol.createProxyToRemoteChannel(l,(async()=>{await this._onModuleLoaded})),this._onModuleLoaded.catch((e=>{this._onError("Worker failed to load "+t.amdModuleId,e)}))}_handleMessage(e,t,i){const s=this._localChannels.get(e);if(!s)return Promise.reject(new Error(`Missing channel ${e} on main thread`));if("function"!==typeof s[t])return Promise.reject(new Error(`Missing method ${t} on main thread channel ${e}`));try{return Promise.resolve(s[t].apply(s,i))}catch(n){return Promise.reject(n)}}_handleEvent(e,t,i){const s=this._localChannels.get(e);if(!s)throw new Error(`Missing channel ${e} on main thread`);if(b(t)){const n=s[t].call(s,i);if("function"!==typeof n)throw new Error(`Missing dynamic event ${t} on main thread channel ${e}.`);return n}if(E(t)){const i=s[t];if("function"!==typeof i)throw new Error(`Missing event ${t} on main thread channel ${e}.`);return i}throw new Error(`Malformed event name ${t}`)}setChannel(e,t){this._localChannels.set(e,t)}_onError(e,t){console.error(e),console.info(t)}}function E(e){return"o"===e[0]&&"n"===e[1]&&c.Wv(e.charCodeAt(2))}function b(e){return/^onDynamic/.test(e)&&c.Wv(e.charCodeAt(9))}class S{constructor(e,t){this._localChannels=new Map,this._remoteChannels=new Map,this._requestHandlerFactory=t,this._requestHandler=null,this._protocol=new v({sendMessage:(t,i)=>{e(t,i)},handleMessage:(e,t,i)=>this._handleMessage(e,t,i),handleEvent:(e,t,i)=>this._handleEvent(e,t,i)})}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,t,i){if(e===l&&t===h)return this.initialize(i[0],i[1],i[2]);const s=e===l?this._requestHandler:this._localChannels.get(e);if(!s)return Promise.reject(new Error(`Missing channel ${e} on worker thread`));if("function"!==typeof s[t])return Promise.reject(new Error(`Missing method ${t} on worker thread channel ${e}`));try{return Promise.resolve(s[t].apply(s,i))}catch(n){return Promise.reject(n)}}_handleEvent(e,t,i){const s=e===l?this._requestHandler:this._localChannels.get(e);if(!s)throw new Error(`Missing channel ${e} on worker thread`);if(b(t)){const e=s[t].call(s,i);if("function"!==typeof e)throw new Error(`Missing dynamic event ${t} on request handler.`);return e}if(E(t)){const e=s[t];if("function"!==typeof e)throw new Error(`Missing event ${t} on request handler.`);return e}throw new Error(`Malformed event name ${t}`)}getChannel(e){if(!this._remoteChannels.has(e)){const t=this._protocol.createProxyToRemoteChannel(e);this._remoteChannels.set(e,t)}return this._remoteChannels.get(e)}async initialize(e,t,s){if(this._protocol.setWorkerId(e),!this._requestHandlerFactory){t&&("undefined"!==typeof t.baseUrl&&delete t.baseUrl,"undefined"!==typeof t.paths&&"undefined"!==typeof t.paths.vs&&delete t.paths.vs,"undefined"!==typeof t.trustedTypesPolicy&&delete t.trustedTypesPolicy,t.catchError=!0,globalThis.require.config(t));{const e=o.zl.asBrowserUri(`${s}.js`).toString(!0);return i(5890)(`${e}`).then((e=>{if(this._requestHandler=e.create(this),!this._requestHandler)throw new Error("No RequestHandler!")}))}}this._requestHandler=this._requestHandlerFactory(this)}}function y(e){return new S(e,null)}},34918:(e,t,i)=>{"use strict";i.d(t,{K:()=>m});var s,n,r=i(80781),o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,h=(e,t,i,s)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let n of c(t))l.call(e,n)||n===i||o(e,n,{get:()=>t[n],enumerable:!(s=a(t,n))||s.enumerable});return e},d={};h(d,s=r,"default"),n&&h(n,s,"default");var u={},g={},p=class e{static getOrCreate(t){return g[t]||(g[t]=new e(t)),g[t]}constructor(e){this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise(((e,t)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=t}))}load(){return this._loadingTriggered||(this._loadingTriggered=!0,u[this._languageId].loader().then((e=>this._lazyLoadPromiseResolve(e)),(e=>this._lazyLoadPromiseReject(e)))),this._lazyLoadPromise}};function m(e){const t=e.id;u[t]=e,d.languages.register(e);const i=p.getOrCreate(t);d.languages.registerTokensProviderFactory(t,{create:async()=>(await i.load()).language}),d.languages.onLanguageEncountered(t,(async()=>{const e=await i.load();d.languages.setLanguageConfiguration(t,e.conf)}))}},61562:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>i.e(5636).then(i.bind(i,25636))})},94318:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>i.e(9872).then(i.bind(i,99872))})},23304:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>i.e(3534).then(i.bind(i,73534))})},59896:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>i.e(654).then(i.bind(i,20654))})},75208:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>i.e(8014).then(i.bind(i,98014))})},51232:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>i.e(6374).then(i.bind(i,36374))})},77888:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>i.e(7206).then(i.bind(i,57206))})},46686:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>i.e(5888).then(i.bind(i,35888))})},27020:(e,t,i)=>{"use strict";var s=i(34918);(0,s.K)({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>i.e(2042).then(i.bind(i,62042))}),(0,s.K)({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>i.e(2042).then(i.bind(i,62042))})},15600:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>i.e(2518).then(i.bind(i,52518))})},80200:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"csp",extensions:[".csp"],aliases:["CSP","csp"],loader:()=>i.e(5454).then(i.bind(i,55454))})},87152:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>i.e(2742).then(i.bind(i,32742))})},60352:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>i.e(4534).then(i.bind(i,24534))})},66235:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>i.e(30).then(i.bind(i,80030))})},31474:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>i.e(6012).then(i.bind(i,46012))})},84840:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>i.e(734).then(i.bind(i,734))})},94803:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>i.e(5382).then(i.bind(i,35382))})},74304:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>i.e(2854).then(i.bind(i,32854))})},74800:(e,t,i)=>{"use strict";var s=i(34918);(0,s.K)({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>i.e(118).then(i.bind(i,90118)).then((e=>e.TagAutoInterpolationDollar))}),(0,s.K)({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>i.e(118).then(i.bind(i,90118)).then((e=>e.TagAngleInterpolationDollar))}),(0,s.K)({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>i.e(118).then(i.bind(i,90118)).then((e=>e.TagBracketInterpolationDollar))}),(0,s.K)({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>i.e(118).then(i.bind(i,90118)).then((e=>e.TagAngleInterpolationBracket))}),(0,s.K)({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>i.e(118).then(i.bind(i,90118)).then((e=>e.TagBracketInterpolationBracket))}),(0,s.K)({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>i.e(118).then(i.bind(i,90118)).then((e=>e.TagAutoInterpolationDollar))}),(0,s.K)({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>i.e(118).then(i.bind(i,90118)).then((e=>e.TagAutoInterpolationBracket))})},37954:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>i.e(7692).then(i.bind(i,47692))})},25922:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>i.e(7148).then(i.bind(i,27148))})},46648:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>i.e(110).then(i.bind(i,60110))})},61082:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>i.e(5252).then(i.bind(i,65252))})},19856:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>i.e(3638).then(i.bind(i,13638))})},97884:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>i.e(6554).then(i.bind(i,96554))})},83488:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>i.e(4678).then(i.bind(i,54678))})},3254:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>i.e(9176).then(i.bind(i,99176))})},57680:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>i.e(2726).then(i.bind(i,2726))})},796:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>i.e(7642).then(i.bind(i,77642))})},89336:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>i.e(2350).then(i.bind(i,62350))})},19436:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>i.e(3338).then(i.bind(i,33338))})},40340:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>i.e(9010).then(i.bind(i,99010))})},52894:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>i.e(9728).then(i.bind(i,19728))})},86492:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>i.e(5050).then(i.bind(i,95050))})},73374:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>i.e(9312).then(i.bind(i,79312))})},38320:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>i.e(3478).then(i.bind(i,73478))})},92080:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"mdx",extensions:[".mdx"],aliases:["MDX","mdx"],loader:()=>i.e(6214).then(i.bind(i,26214))})},57664:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>i.e(1414).then(i.bind(i,51414))})},8868:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>i.e(2994).then(i.bind(i,2994))})},31396:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>i.e(6210).then(i.bind(i,16210))})},18544:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>i.e(7638).then(i.bind(i,97638))})},538:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>i.e(132).then(i.bind(i,40132))})},25064:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>i.e(7118).then(i.bind(i,57118))})},64256:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"perl",extensions:[".pl",".pm"],aliases:["Perl","pl"],loader:()=>i.e(3158).then(i.bind(i,23158))})},32624:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>i.e(4582).then(i.bind(i,84582))})},97360:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>i.e(6342).then(i.bind(i,86342))})},42776:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"pla",extensions:[".pla"],loader:()=>i.e(4542).then(i.bind(i,14542))})},97144:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>i.e(9582).then(i.bind(i,49582))})},46304:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>i.e(5542).then(i.bind(i,15542))})},58820:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>i.e(4818).then(i.bind(i,4818))})},82560:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>i.e(902).then(i.bind(i,10902))})},74276:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>i.e(9394).then(i.bind(i,29394))})},39866:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>i.e(2372).then(i.bind(i,22372))})},73020:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>i.e(5866).then(i.bind(i,5866))})},71316:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>i.e(6658).then(i.bind(i,86658))})},70492:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>i.e(8986).then(i.bind(i,58986))})},50848:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>i.e(4662).then(i.bind(i,24662))})},59520:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>i.e(3702).then(i.bind(i,23702))})},46576:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>i.e(2182).then(i.bind(i,42182))})},49150:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>i.e(2016).then(i.bind(i,92016))})},33358:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>i.e(3648).then(i.bind(i,3648))})},96716:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>i.e(7946).then(i.bind(i,57946))})},28304:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>i.e(3977).then(i.bind(i,56358))})},14720:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>i.e(7574).then(i.bind(i,67574))})},27734:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>i.e(3048).then(i.bind(i,3048))})},2068:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>i.e(9842).then(i.bind(i,79842))})},71468:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>i.e(8234).then(i.bind(i,98234))})},15482:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>i.e(5988).then(i.bind(i,65988))})},42572:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>i.e(957).then(i.bind(i,53338))})},77668:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>i.e(9778).then(i.bind(i,49778))})},36e3:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib",".TcPOU",".TcDUT",".TcGVL",".TcIO"],aliases:["StructuredText","scl","stl"],loader:()=>i.e(1321).then(i.bind(i,43702))})},10072:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>i.e(1278).then(i.bind(i,11278))})},48448:(e,t,i)=>{"use strict";var s=i(34918);(0,s.K)({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>i.e(6262).then(i.bind(i,66262))}),(0,s.K)({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>i.e(6262).then(i.bind(i,66262))})},51376:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>i.e(246).then(i.bind(i,10246))})},61764:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>i.e(2162).then(i.bind(i,2162))})},85872:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"typescript",extensions:[".ts",".tsx",".cts",".mts"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>i.e(1606).then(i.bind(i,1606))})},42144:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"typespec",extensions:[".tsp"],aliases:["TypeSpec"],loader:()=>i.e(1094).then(i.bind(i,51094))})},22362:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>i.e(9748).then(i.bind(i,59748))})},98408:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"wgsl",extensions:[".wgsl"],aliases:["WebGPU Shading Language","WGSL","wgsl"],loader:()=>i.e(3822).then(i.bind(i,33822))})},61472:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"xml",extensions:[".xml",".xsd",".dtd",".ascx",".csproj",".config",".props",".targets",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xslt",".xsl"],firstLine:"(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)",aliases:["XML","xml"],mimetypes:["text/xml","application/xml","application/xaml+xml","application/xml-dtd"],loader:()=>i.e(7718).then(i.bind(i,77718))})},50576:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>i.e(4870).then(i.bind(i,84870))})},73157:(e,t,i)=>{"use strict";i.d(t,{M:()=>n});var s=i(55275);function n(e,t){e instanceof s.D?(e.setFontFamily(t.getMassagedFontFamily()),e.setFontWeight(t.fontWeight),e.setFontSize(t.fontSize),e.setFontFeatureSettings(t.fontFeatureSettings),e.setFontVariationSettings(t.fontVariationSettings),e.setLineHeight(t.lineHeight),e.setLetterSpacing(t.letterSpacing)):(e.style.fontFamily=t.getMassagedFontFamily(),e.style.fontWeight=t.fontWeight,e.style.fontSize=t.fontSize+"px",e.style.fontFeatureSettings=t.fontFeatureSettings,e.style.fontVariationSettings=t.fontVariationSettings,e.style.lineHeight=t.lineHeight+"px",e.style.letterSpacing=t.letterSpacing+"px")}},4983:(e,t,i)=>{"use strict";i.d(t,{u:()=>o});var s=i(5662),n=i(41234),r=i(8597);class o extends s.jG{constructor(e,t){super(),this._onDidChange=this._register(new n.vl),this.onDidChange=this._onDidChange.event,this._referenceDomElement=e,this._width=-1,this._height=-1,this._resizeObserver=null,this.measureReferenceDomElement(!1,t)}dispose(){this.stopObserving(),super.dispose()}getWidth(){return this._width}getHeight(){return this._height}startObserving(){if(!this._resizeObserver&&this._referenceDomElement){let e=null;const t=()=>{e?this.observe({width:e.width,height:e.height}):this.observe()};let i=!1,s=!1;const n=()=>{if(i&&!s)try{i=!1,s=!0,t()}finally{(0,r.PG)((0,r.zk)(this._referenceDomElement),(()=>{s=!1,n()}))}};this._resizeObserver=new ResizeObserver((t=>{e=t&&t[0]&&t[0].contentRect?{width:t[0].contentRect.width,height:t[0].contentRect.height}:null,i=!0,n()})),this._resizeObserver.observe(this._referenceDomElement)}}stopObserving(){this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=null)}observe(e){this.measureReferenceDomElement(!0,e)}measureReferenceDomElement(e,t){let i=0,s=0;t?(i=t.width,s=t.height):this._referenceDomElement&&(i=this._referenceDomElement.clientWidth,s=this._referenceDomElement.clientHeight),i=Math.max(5,i),s=Math.max(5,s),this._width===i&&this._height===s||(this._width=i,this._height=s,e&&this._onDidChange.fire())}}},28433:(e,t,i)=>{"use strict";i.d(t,{T:()=>p});var s=i(8597),n=i(94106),r=i(41234),o=i(5662),a=i(73157);class c{constructor(e,t){this.chr=e,this.type=t,this.width=0}fulfill(e){this.width=e}}class l{constructor(e,t){this._bareFontInfo=e,this._requests=t,this._container=null,this._testElements=null}read(e){this._createDomElements(),e.document.body.appendChild(this._container),this._readFromDomElements(),this._container?.remove(),this._container=null,this._testElements=null}_createDomElements(){const e=document.createElement("div");e.style.position="absolute",e.style.top="-50000px",e.style.width="50000px";const t=document.createElement("div");(0,a.M)(t,this._bareFontInfo),e.appendChild(t);const i=document.createElement("div");(0,a.M)(i,this._bareFontInfo),i.style.fontWeight="bold",e.appendChild(i);const s=document.createElement("div");(0,a.M)(s,this._bareFontInfo),s.style.fontStyle="italic",e.appendChild(s);const n=[];for(const r of this._requests){let e;0===r.type&&(e=t),2===r.type&&(e=i),1===r.type&&(e=s),e.appendChild(document.createElement("br"));const o=document.createElement("span");l._render(o,r),e.appendChild(o),n.push(o)}this._container=e,this._testElements=n}static _render(e,t){if(" "===t.chr){let t="\xa0";for(let e=0;e<8;e++)t+=t;e.innerText=t}else{let i=t.chr;for(let e=0;e<8;e++)i+=i;e.textContent=i}}_readFromDomElements(){for(let e=0,t=this._requests.length;e<t;e++){const t=this._requests[e],i=this._testElements[e];t.fulfill(i.offsetWidth/256)}}}var h=i(87908),d=i(74196);class u extends o.jG{constructor(){super(...arguments),this._cache=new Map,this._evictUntrustedReadingsTimeout=-1,this._onDidChange=this._register(new r.vl),this.onDidChange=this._onDidChange.event}dispose(){-1!==this._evictUntrustedReadingsTimeout&&(clearTimeout(this._evictUntrustedReadingsTimeout),this._evictUntrustedReadingsTimeout=-1),super.dispose()}clearAllFontInfos(){this._cache.clear(),this._onDidChange.fire()}_ensureCache(e){const t=(0,s.Q2)(e);let i=this._cache.get(t);return i||(i=new g,this._cache.set(t,i)),i}_writeToCache(e,t,i){this._ensureCache(e).put(t,i),i.isTrusted||-1!==this._evictUntrustedReadingsTimeout||(this._evictUntrustedReadingsTimeout=e.setTimeout((()=>{this._evictUntrustedReadingsTimeout=-1,this._evictUntrustedReadings(e)}),5e3))}_evictUntrustedReadings(e){const t=this._ensureCache(e),i=t.getValues();let s=!1;for(const n of i)n.isTrusted||(s=!0,t.remove(n));s&&this._onDidChange.fire()}readFontInfo(e,t){const i=this._ensureCache(e);if(!i.has(t)){let i=this._actualReadFontInfo(e,t);(i.typicalHalfwidthCharacterWidth<=2||i.typicalFullwidthCharacterWidth<=2||i.spaceWidth<=2||i.maxDigitWidth<=2)&&(i=new d.YJ({pixelRatio:n.c.getInstance(e).value,fontFamily:i.fontFamily,fontWeight:i.fontWeight,fontSize:i.fontSize,fontFeatureSettings:i.fontFeatureSettings,fontVariationSettings:i.fontVariationSettings,lineHeight:i.lineHeight,letterSpacing:i.letterSpacing,isMonospace:i.isMonospace,typicalHalfwidthCharacterWidth:Math.max(i.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(i.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:i.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(i.spaceWidth,5),middotWidth:Math.max(i.middotWidth,5),wsmiddotWidth:Math.max(i.wsmiddotWidth,5),maxDigitWidth:Math.max(i.maxDigitWidth,5)},!1)),this._writeToCache(e,t,i)}return i.get(t)}_createRequest(e,t,i,s){const n=new c(e,t);return i.push(n),s?.push(n),n}_actualReadFontInfo(e,t){const i=[],s=[],r=this._createRequest("n",0,i,s),o=this._createRequest("\uff4d",0,i,null),a=this._createRequest(" ",0,i,s),c=this._createRequest("0",0,i,s),u=this._createRequest("1",0,i,s),g=this._createRequest("2",0,i,s),p=this._createRequest("3",0,i,s),m=this._createRequest("4",0,i,s),f=this._createRequest("5",0,i,s),_=this._createRequest("6",0,i,s),v=this._createRequest("7",0,i,s),C=this._createRequest("8",0,i,s),E=this._createRequest("9",0,i,s),b=this._createRequest("\u2192",0,i,s),S=this._createRequest("\uffeb",0,i,null),y=this._createRequest("\xb7",0,i,s),w=this._createRequest(String.fromCharCode(11825),0,i,null),R="|/-_ilm%";for(let n=0,l=8;n<l;n++)this._createRequest(R.charAt(n),0,i,s),this._createRequest(R.charAt(n),1,i,s),this._createRequest(R.charAt(n),2,i,s);!function(e,t,i){new l(t,i).read(e)}(e,t,i);const L=Math.max(c.width,u.width,g.width,p.width,m.width,f.width,_.width,v.width,C.width,E.width);let T=t.fontFeatureSettings===h.Bc.OFF;const x=s[0].width;for(let n=1,l=s.length;T&&n<l;n++){const e=x-s[n].width;if(e<-.001||e>.001){T=!1;break}}let k=!0;return T&&S.width!==x&&(k=!1),S.width>b.width&&(k=!1),new d.YJ({pixelRatio:n.c.getInstance(e).value,fontFamily:t.fontFamily,fontWeight:t.fontWeight,fontSize:t.fontSize,fontFeatureSettings:t.fontFeatureSettings,fontVariationSettings:t.fontVariationSettings,lineHeight:t.lineHeight,letterSpacing:t.letterSpacing,isMonospace:T,typicalHalfwidthCharacterWidth:r.width,typicalFullwidthCharacterWidth:o.width,canUseHalfwidthRightwardsArrow:k,spaceWidth:a.width,middotWidth:y.width,wsmiddotWidth:w.width,maxDigitWidth:L},!0)}}class g{constructor(){this._keys=Object.create(null),this._values=Object.create(null)}has(e){const t=e.getId();return!!this._values[t]}get(e){const t=e.getId();return this._values[t]}put(e,t){const i=e.getId();this._keys[i]=e,this._values[i]=t}remove(e){const t=e.getId();delete this._keys[t],delete this._values[t]}getValues(){return Object.keys(this._keys).map((e=>this._values[e]))}}const p=new u},77163:(e,t,i)=>{"use strict";i.d(t,{M:()=>n});var s=i(41234);const n=new class{constructor(){this._tabFocus=!1,this._onDidChangeTabFocus=new s.vl,this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}getTabFocusMode(){return this._tabFocus}setTabFocusMode(e){this._tabFocus=e,this._onDidChangeTabFocus.fire(this._tabFocus)}}},68792:(e,t,i)=>{"use strict";i.d(t,{$D:()=>s,Eq:()=>E,M0:()=>R,Mz:()=>w,No:()=>y,bs:()=>b});var s,n=i(60413),r=i(8597),o=i(56245),a=i(72962),c=i(5239),l=i(90766),h=i(41234),d=i(5662),u=i(44320),g=i(91508),p=i(69785),m=i(75326),f=i(253),_=i(18801),v=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},C=function(e,t){return function(i,s){t(i,s,e)}};!function(e){e.Tap="-monaco-textarea-synthetic-tap"}(s||(s={}));const E={forceCopyWithSyntaxHighlighting:!1};class b{static{this.INSTANCE=new b}constructor(){this._lastState=null}set(e,t){this._lastState={lastCopiedValue:e,data:t}}get(e){return this._lastState&&this._lastState.lastCopiedValue===e?this._lastState.data:(this._lastState=null,null)}}class S{constructor(){this._lastTypeTextLength=0}handleCompositionUpdate(e){const t={text:e=e||"",replacePrevCharCnt:this._lastTypeTextLength,replaceNextCharCnt:0,positionDelta:0};return this._lastTypeTextLength=e.length,t}}let y=class extends d.jG{get textAreaState(){return this._textAreaState}constructor(e,t,i,s,n,r){super(),this._host=e,this._textArea=t,this._OS=i,this._browser=s,this._accessibilityService=n,this._logService=r,this._onFocus=this._register(new h.vl),this.onFocus=this._onFocus.event,this._onBlur=this._register(new h.vl),this.onBlur=this._onBlur.event,this._onKeyDown=this._register(new h.vl),this.onKeyDown=this._onKeyDown.event,this._onKeyUp=this._register(new h.vl),this.onKeyUp=this._onKeyUp.event,this._onCut=this._register(new h.vl),this.onCut=this._onCut.event,this._onPaste=this._register(new h.vl),this.onPaste=this._onPaste.event,this._onType=this._register(new h.vl),this.onType=this._onType.event,this._onCompositionStart=this._register(new h.vl),this.onCompositionStart=this._onCompositionStart.event,this._onCompositionUpdate=this._register(new h.vl),this.onCompositionUpdate=this._onCompositionUpdate.event,this._onCompositionEnd=this._register(new h.vl),this.onCompositionEnd=this._onCompositionEnd.event,this._onSelectionChangeRequest=this._register(new h.vl),this.onSelectionChangeRequest=this._onSelectionChangeRequest.event,this._asyncFocusGainWriteScreenReaderContent=this._register(new d.HE),this._asyncTriggerCut=this._register(new l.uC((()=>this._onCut.fire()),0)),this._textAreaState=p._O.EMPTY,this._selectionChangeListener=null,this._accessibilityService.isScreenReaderOptimized()&&this.writeNativeTextAreaContent("ctor"),this._register(h.Jh.runAndSubscribe(this._accessibilityService.onDidChangeScreenReaderOptimized,(()=>{this._accessibilityService.isScreenReaderOptimized()&&!this._asyncFocusGainWriteScreenReaderContent.value?this._asyncFocusGainWriteScreenReaderContent.value=this._register(new l.uC((()=>this.writeNativeTextAreaContent("asyncFocusGain")),0)):this._asyncFocusGainWriteScreenReaderContent.clear()}))),this._hasFocus=!1,this._currentComposition=null;let o=null;this._register(this._textArea.onKeyDown((e=>{const t=new a.Z(e);(114===t.keyCode||this._currentComposition&&1===t.keyCode)&&t.stopPropagation(),t.equals(9)&&t.preventDefault(),o=t,this._onKeyDown.fire(t)}))),this._register(this._textArea.onKeyUp((e=>{const t=new a.Z(e);this._onKeyUp.fire(t)}))),this._register(this._textArea.onCompositionStart((e=>{p.Hf&&console.log("[compositionstart]",e);const t=new S;if(this._currentComposition)this._currentComposition=t;else{if(this._currentComposition=t,2===this._OS&&o&&o.equals(114)&&this._textAreaState.selectionStart===this._textAreaState.selectionEnd&&this._textAreaState.selectionStart>0&&this._textAreaState.value.substr(this._textAreaState.selectionStart-1,1)===e.data&&("ArrowRight"===o.code||"ArrowLeft"===o.code))return p.Hf&&console.log("[compositionstart] Handling long press case on macOS + arrow key",e),t.handleCompositionUpdate("x"),void this._onCompositionStart.fire({data:e.data});this._browser.isAndroid,this._onCompositionStart.fire({data:e.data})}}))),this._register(this._textArea.onCompositionUpdate((e=>{p.Hf&&console.log("[compositionupdate]",e);const t=this._currentComposition;if(!t)return;if(this._browser.isAndroid){const t=p._O.readFromTextArea(this._textArea,this._textAreaState),i=p._O.deduceAndroidCompositionInput(this._textAreaState,t);return this._textAreaState=t,this._onType.fire(i),void this._onCompositionUpdate.fire(e)}const i=t.handleCompositionUpdate(e.data);this._textAreaState=p._O.readFromTextArea(this._textArea,this._textAreaState),this._onType.fire(i),this._onCompositionUpdate.fire(e)}))),this._register(this._textArea.onCompositionEnd((e=>{p.Hf&&console.log("[compositionend]",e);const t=this._currentComposition;if(!t)return;if(this._currentComposition=null,this._browser.isAndroid){const e=p._O.readFromTextArea(this._textArea,this._textAreaState),t=p._O.deduceAndroidCompositionInput(this._textAreaState,e);return this._textAreaState=e,this._onType.fire(t),void this._onCompositionEnd.fire()}const i=t.handleCompositionUpdate(e.data);this._textAreaState=p._O.readFromTextArea(this._textArea,this._textAreaState),this._onType.fire(i),this._onCompositionEnd.fire()}))),this._register(this._textArea.onInput((e=>{if(p.Hf&&console.log("[input]",e),this._textArea.setIgnoreSelectionChangeTime("received input event"),this._currentComposition)return;const t=p._O.readFromTextArea(this._textArea,this._textAreaState),i=p._O.deduceInput(this._textAreaState,t,2===this._OS);(0!==i.replacePrevCharCnt||1!==i.text.length||!g.pc(i.text.charCodeAt(0))&&127!==i.text.charCodeAt(0))&&(this._textAreaState=t,""===i.text&&0===i.replacePrevCharCnt&&0===i.replaceNextCharCnt&&0===i.positionDelta||this._onType.fire(i))}))),this._register(this._textArea.onCut((e=>{this._textArea.setIgnoreSelectionChangeTime("received cut event"),this._ensureClipboardGetsEditorSelection(e),this._asyncTriggerCut.schedule()}))),this._register(this._textArea.onCopy((e=>{this._ensureClipboardGetsEditorSelection(e)}))),this._register(this._textArea.onPaste((e=>{if(this._textArea.setIgnoreSelectionChangeTime("received paste event"),e.preventDefault(),!e.clipboardData)return;let[t,i]=w.getTextData(e.clipboardData);t&&(i=i||b.INSTANCE.get(t),this._onPaste.fire({text:t,metadata:i}))}))),this._register(this._textArea.onFocus((()=>{const e=this._hasFocus;this._setHasFocus(!0),this._accessibilityService.isScreenReaderOptimized()&&this._browser.isSafari&&!e&&this._hasFocus&&(this._asyncFocusGainWriteScreenReaderContent.value||(this._asyncFocusGainWriteScreenReaderContent.value=new l.uC((()=>this.writeNativeTextAreaContent("asyncFocusGain")),0)),this._asyncFocusGainWriteScreenReaderContent.value.schedule())}))),this._register(this._textArea.onBlur((()=>{this._currentComposition&&(this._currentComposition=null,this.writeNativeTextAreaContent("blurWithoutCompositionEnd"),this._onCompositionEnd.fire()),this._setHasFocus(!1)}))),this._register(this._textArea.onSyntheticTap((()=>{this._browser.isAndroid&&this._currentComposition&&(this._currentComposition=null,this.writeNativeTextAreaContent("tapWithoutCompositionEnd"),this._onCompositionEnd.fire())})))}_installSelectionChangeListener(){let e=0;return r.ko(this._textArea.ownerDocument,"selectionchange",(t=>{if(c.p.onSelectionChange(),!this._hasFocus)return;if(this._currentComposition)return;if(!this._browser.isChrome)return;const i=Date.now(),s=i-e;if(e=i,s<5)return;const n=i-this._textArea.getIgnoreSelectionChangeTime();if(this._textArea.resetSelectionChangeTime(),n<100)return;if(!this._textAreaState.selection)return;const r=this._textArea.getValue();if(this._textAreaState.value!==r)return;const o=this._textArea.getSelectionStart(),a=this._textArea.getSelectionEnd();if(this._textAreaState.selectionStart===o&&this._textAreaState.selectionEnd===a)return;const l=this._textAreaState.deduceEditorPosition(o),h=this._host.deduceModelPosition(l[0],l[1],l[2]),d=this._textAreaState.deduceEditorPosition(a),u=this._host.deduceModelPosition(d[0],d[1],d[2]),g=new m.L(h.lineNumber,h.column,u.lineNumber,u.column);this._onSelectionChangeRequest.fire(g)}))}dispose(){super.dispose(),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)}focusTextArea(){this._setHasFocus(!0),this.refreshFocusState()}isFocused(){return this._hasFocus}refreshFocusState(){this._setHasFocus(this._textArea.hasFocus())}_setHasFocus(e){this._hasFocus!==e&&(this._hasFocus=e,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&this.writeNativeTextAreaContent("focusgain"),this._hasFocus?this._onFocus.fire():this._onBlur.fire())}_setAndWriteTextAreaState(e,t){this._hasFocus||(t=t.collapseSelection()),t.writeToTextArea(e,this._textArea,this._hasFocus),this._textAreaState=t}writeNativeTextAreaContent(e){!this._accessibilityService.isScreenReaderOptimized()&&"render"===e||this._currentComposition||(this._logService.trace(`writeTextAreaState(reason: ${e})`),this._setAndWriteTextAreaState(e,this._host.getScreenReaderContent()))}_ensureClipboardGetsEditorSelection(e){const t=this._host.getDataToCopy(),i={version:1,isFromEmptySelection:t.isFromEmptySelection,multicursorText:t.multicursorText,mode:t.mode};b.INSTANCE.set(this._browser.isFirefox?t.text.replace(/\r\n/g,"\n"):t.text,i),e.preventDefault(),e.clipboardData&&w.setTextData(e.clipboardData,t.text,t.html,i)}};y=v([C(4,f.j),C(5,_.rr)],y);const w={getTextData(e){const t=e.getData(u.K.text);let i=null;const s=e.getData("vscode-editor-data");if("string"===typeof s)try{i=JSON.parse(s),1!==i.version&&(i=null)}catch(n){}if(0===t.length&&null===i&&e.files.length>0){return[Array.prototype.slice.call(e.files,0).map((e=>e.name)).join("\n"),null]}return[t,i]},setTextData(e,t,i,s){e.setData(u.K.text,t),"string"===typeof i&&e.setData("text/html",i),e.setData("vscode-editor-data",JSON.stringify(s))}};class R extends d.jG{get ownerDocument(){return this._actual.ownerDocument}constructor(e){super(),this._actual=e,this.onKeyDown=this._register(new o.f(this._actual,"keydown")).event,this.onKeyUp=this._register(new o.f(this._actual,"keyup")).event,this.onCompositionStart=this._register(new o.f(this._actual,"compositionstart")).event,this.onCompositionUpdate=this._register(new o.f(this._actual,"compositionupdate")).event,this.onCompositionEnd=this._register(new o.f(this._actual,"compositionend")).event,this.onBeforeInput=this._register(new o.f(this._actual,"beforeinput")).event,this.onInput=this._register(new o.f(this._actual,"input")).event,this.onCut=this._register(new o.f(this._actual,"cut")).event,this.onCopy=this._register(new o.f(this._actual,"copy")).event,this.onPaste=this._register(new o.f(this._actual,"paste")).event,this.onFocus=this._register(new o.f(this._actual,"focus")).event,this.onBlur=this._register(new o.f(this._actual,"blur")).event,this._onSyntheticTap=this._register(new h.vl),this.onSyntheticTap=this._onSyntheticTap.event,this._ignoreSelectionChangeTime=0,this._register(this.onKeyDown((()=>c.p.onKeyDown()))),this._register(this.onBeforeInput((()=>c.p.onBeforeInput()))),this._register(this.onInput((()=>c.p.onInput()))),this._register(this.onKeyUp((()=>c.p.onKeyUp()))),this._register(r.ko(this._actual,s.Tap,(()=>this._onSyntheticTap.fire())))}hasFocus(){const e=r.jG(this._actual);return e?e.activeElement===this._actual:!!this._actual.isConnected&&r.bq()===this._actual}setIgnoreSelectionChangeTime(e){this._ignoreSelectionChangeTime=Date.now()}getIgnoreSelectionChangeTime(){return this._ignoreSelectionChangeTime}resetSelectionChangeTime(){this._ignoreSelectionChangeTime=0}getValue(){return this._actual.value}setValue(e,t){const i=this._actual;i.value!==t&&(this.setIgnoreSelectionChangeTime("setValue"),i.value=t)}getSelectionStart(){return"backward"===this._actual.selectionDirection?this._actual.selectionEnd:this._actual.selectionStart}getSelectionEnd(){return"backward"===this._actual.selectionDirection?this._actual.selectionStart:this._actual.selectionEnd}setSelectionRange(e,t,i){const s=this._actual;let o=null;const a=r.jG(s);o=a?a.activeElement:r.bq();const c=r.zk(o),l=o===s,h=s.selectionStart,d=s.selectionEnd;if(l&&h===t&&d===i)n.gm&&c.parent!==c&&s.focus();else{if(l)return this.setIgnoreSelectionChangeTime("setSelectionRange"),s.setSelectionRange(t,i),void(n.gm&&c.parent!==c&&s.focus());try{const e=r.zK(s);this.setIgnoreSelectionChangeTime("setSelectionRange"),s.focus(),s.setSelectionRange(t,i),r.wk(s,e)}catch(u){}}}}},69785:(e,t,i)=>{"use strict";i.d(t,{Al:()=>a,Hf:()=>r,_O:()=>o});var s=i(91508),n=i(36677);const r=!1;class o{static{this.EMPTY=new o("",0,0,null,void 0)}constructor(e,t,i,s,n){this.value=e,this.selectionStart=t,this.selectionEnd=i,this.selection=s,this.newlineCountBeforeSelection=n}toString(){return`[ <${this.value}>, selectionStart: ${this.selectionStart}, selectionEnd: ${this.selectionEnd}]`}static readFromTextArea(e,t){const i=e.getValue(),s=e.getSelectionStart(),n=e.getSelectionEnd();let r;if(t){i.substring(0,s)===t.value.substring(0,t.selectionStart)&&(r=t.newlineCountBeforeSelection)}return new o(i,s,n,null,r)}collapseSelection(){return this.selectionStart===this.value.length?this:new o(this.value,this.value.length,this.value.length,null,void 0)}writeToTextArea(e,t,i){r&&console.log(`writeToTextArea ${e}: ${this.toString()}`),t.setValue(e,this.value),i&&t.setSelectionRange(e,this.selectionStart,this.selectionEnd)}deduceEditorPosition(e){if(e<=this.selectionStart){const t=this.value.substring(e,this.selectionStart);return this._finishDeduceEditorPosition(this.selection?.getStartPosition()??null,t,-1)}if(e>=this.selectionEnd){const t=this.value.substring(this.selectionEnd,e);return this._finishDeduceEditorPosition(this.selection?.getEndPosition()??null,t,1)}const t=this.value.substring(this.selectionStart,e);if(-1===t.indexOf(String.fromCharCode(8230)))return this._finishDeduceEditorPosition(this.selection?.getStartPosition()??null,t,1);const i=this.value.substring(e,this.selectionEnd);return this._finishDeduceEditorPosition(this.selection?.getEndPosition()??null,i,-1)}_finishDeduceEditorPosition(e,t,i){let s=0,n=-1;for(;-1!==(n=t.indexOf("\n",n+1));)s++;return[e,i*t.length,s]}static deduceInput(e,t,i){if(!e)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};r&&(console.log("------------------------deduceInput"),console.log(`PREVIOUS STATE: ${e.toString()}`),console.log(`CURRENT STATE: ${t.toString()}`));const n=Math.min(s.Qp(e.value,t.value),e.selectionStart,t.selectionStart),o=Math.min(s.Vi(e.value,t.value),e.value.length-e.selectionEnd,t.value.length-t.selectionEnd),a=e.value.substring(n,e.value.length-o),c=t.value.substring(n,t.value.length-o),l=e.selectionStart-n,h=e.selectionEnd-n,d=t.selectionStart-n,u=t.selectionEnd-n;if(r&&(console.log(`AFTER DIFFING PREVIOUS STATE: <${a}>, selectionStart: ${l}, selectionEnd: ${h}`),console.log(`AFTER DIFFING CURRENT STATE: <${c}>, selectionStart: ${d}, selectionEnd: ${u}`)),d===u){const t=e.selectionStart-n;return r&&console.log(`REMOVE PREVIOUS: ${t} chars`),{text:c,replacePrevCharCnt:t,replaceNextCharCnt:0,positionDelta:0}}return{text:c,replacePrevCharCnt:h-l,replaceNextCharCnt:0,positionDelta:0}}static deduceAndroidCompositionInput(e,t){if(!e)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};if(r&&(console.log("------------------------deduceAndroidCompositionInput"),console.log(`PREVIOUS STATE: ${e.toString()}`),console.log(`CURRENT STATE: ${t.toString()}`)),e.value===t.value)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:t.selectionEnd-e.selectionEnd};const i=Math.min(s.Qp(e.value,t.value),e.selectionEnd),n=Math.min(s.Vi(e.value,t.value),e.value.length-e.selectionEnd),o=e.value.substring(i,e.value.length-n),a=t.value.substring(i,t.value.length-n),c=e.selectionStart-i,l=e.selectionEnd-i,h=t.selectionStart-i,d=t.selectionEnd-i;return r&&(console.log(`AFTER DIFFING PREVIOUS STATE: <${o}>, selectionStart: ${c}, selectionEnd: ${l}`),console.log(`AFTER DIFFING CURRENT STATE: <${a}>, selectionStart: ${h}, selectionEnd: ${d}`)),{text:a,replacePrevCharCnt:l,replaceNextCharCnt:o.length-l,positionDelta:d-a.length}}}class a{static _getPageOfLine(e,t){return Math.floor((e-1)/t)}static _getRangeForPage(e,t){const i=e*t,s=i+1,r=i+t;return new n.Q(s,1,r+1,1)}static fromEditorSelection(e,t,i,s){const r=500,c=a._getPageOfLine(t.startLineNumber,i),l=a._getRangeForPage(c,i),h=a._getPageOfLine(t.endLineNumber,i),d=a._getRangeForPage(h,i);let u=l.intersectRanges(new n.Q(1,1,t.startLineNumber,t.startColumn));if(s&&e.getValueLengthInRange(u,1)>r){const t=e.modifyPosition(u.getEndPosition(),-500);u=n.Q.fromPositions(t,u.getEndPosition())}const g=e.getValueInRange(u,1),p=e.getLineCount(),m=e.getLineMaxColumn(p);let f=d.intersectRanges(new n.Q(t.endLineNumber,t.endColumn,p,m));if(s&&e.getValueLengthInRange(f,1)>r){const t=e.modifyPosition(f.getStartPosition(),r);f=n.Q.fromPositions(f.getStartPosition(),t)}const _=e.getValueInRange(f,1);let v;if(c===h||c+1===h)v=e.getValueInRange(t,1);else{const i=l.intersectRanges(t),s=d.intersectRanges(t);v=e.getValueInRange(i,1)+String.fromCharCode(8230)+e.getValueInRange(s,1)}return s&&v.length>1e3&&(v=v.substring(0,r)+String.fromCharCode(8230)+v.substring(v.length-r,v.length)),new o(g+v+_,g.length,g.length+v.length,t,u.endLineNumber-u.startLineNumber)}}},36999:(e,t,i)=>{"use strict";i.d(t,{Yh:()=>k,QM:()=>w});var s=i(78209),n=i(60413),r=i(631),o=i(11007),a=i(31450),c=i(80301),l=i(32799),h=i(83069),d=i(36677);class u{static columnSelect(e,t,i,s,n,r){const o=Math.abs(n-i)+1,a=i>n,c=s>r,u=s<r,g=[];for(let p=0;p<o;p++){const n=i+(a?-p:p),o=e.columnFromVisibleColumn(t,n,s),m=e.columnFromVisibleColumn(t,n,r),f=e.visibleColumnFromColumn(t,new h.y(n,o)),_=e.visibleColumnFromColumn(t,new h.y(n,m));if(u){if(f>r)continue;if(_<s)continue}if(c){if(_>s)continue;if(f<r)continue}g.push(new l.mG(new d.Q(n,o,n,o),0,0,new h.y(n,m),0))}if(0===g.length)for(let p=0;p<o;p++){const e=i+(a?-p:p),s=t.getLineMaxColumn(e);g.push(new l.mG(new d.Q(e,s,e,s),0,0,new h.y(e,s),0))}return{viewStates:g,reversed:a,fromLineNumber:i,fromVisualColumn:s,toLineNumber:n,toVisualColumn:r}}static columnSelectLeft(e,t,i){let s=i.toViewVisualColumn;return s>0&&s--,u.columnSelect(e,t,i.fromViewLineNumber,i.fromViewVisualColumn,i.toViewLineNumber,s)}static columnSelectRight(e,t,i){let s=0;const n=Math.min(i.fromViewLineNumber,i.toViewLineNumber),r=Math.max(i.fromViewLineNumber,i.toViewLineNumber);for(let a=n;a<=r;a++){const i=t.getLineMaxColumn(a),n=e.visibleColumnFromColumn(t,new h.y(a,i));s=Math.max(s,n)}let o=i.toViewVisualColumn;return o<s&&o++,this.columnSelect(e,t,i.fromViewLineNumber,i.fromViewVisualColumn,i.toViewLineNumber,o)}static columnSelectUp(e,t,i,s){const n=s?e.pageSize:1,r=Math.max(1,i.toViewLineNumber-n);return this.columnSelect(e,t,i.fromViewLineNumber,i.fromViewVisualColumn,r,i.toViewVisualColumn)}static columnSelectDown(e,t,i,s){const n=s?e.pageSize:1,r=Math.min(t.getLineCount(),i.toViewLineNumber+n);return this.columnSelect(e,t,i.fromViewLineNumber,i.fromViewVisualColumn,r,i.toViewVisualColumn)}}var g=i(1226),p=i(50672),m=i(49265),f=i(60002),_=i(32848),v=i(59261),C=i(8597),E=i(26685);class b extends a.DX{runEditorCommand(e,t,i){const s=t._getViewModel();s&&this.runCoreEditorCommand(s,i||{})}}var S,y,w;!function(e){e.metadata={description:"Scroll editor in the given direction",args:[{name:"Editor scroll argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'to': A mandatory direction value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'up', 'down'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'by': Unit to move. Default is computed based on 'to' value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'line', 'wrappedLine', 'page', 'halfPage', 'editor'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'value': Number of units to move. Default is '1'.\n\t\t\t\t\t* 'revealCursor': If 'true' reveals the cursor if it is outside view port.\n\t\t\t\t",constraint:function(e){if(!r.Gv(e))return!1;const t=e;return!!r.Kg(t.to)&&(!(!r.b0(t.by)&&!r.Kg(t.by))&&(!(!r.b0(t.value)&&!r.Et(t.value))&&!(!r.b0(t.revealCursor)&&!r.Lm(t.revealCursor))))},schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["up","down"]},by:{type:"string",enum:["line","wrappedLine","page","halfPage","editor"]},value:{type:"number",default:1},revealCursor:{type:"boolean"}}}}]},e.RawDirection={Up:"up",Right:"right",Down:"down",Left:"left"},e.RawUnit={Line:"line",WrappedLine:"wrappedLine",Page:"page",HalfPage:"halfPage",Editor:"editor",Column:"column"},e.parse=function(t){let i,s;switch(t.to){case e.RawDirection.Up:i=1;break;case e.RawDirection.Right:i=2;break;case e.RawDirection.Down:i=3;break;case e.RawDirection.Left:i=4;break;default:return null}switch(t.by){case e.RawUnit.Line:s=1;break;case e.RawUnit.WrappedLine:s=2;break;case e.RawUnit.Page:s=3;break;case e.RawUnit.HalfPage:s=4;break;case e.RawUnit.Editor:s=5;break;case e.RawUnit.Column:s=6;break;default:s=2}return{direction:i,unit:s,value:Math.floor(t.value||1),revealCursor:!!t.revealCursor,select:!!t.select}}}(S||(S={})),function(e){e.metadata={description:"Reveal the given line at the given logical position",args:[{name:"Reveal line argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'lineNumber': A mandatory line number value.\n\t\t\t\t\t* 'at': Logical position at which line has to be revealed.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'top', 'center', 'bottom'\n\t\t\t\t\t\t```\n\t\t\t\t",constraint:function(e){if(!r.Gv(e))return!1;const t=e;return!(!r.Et(t.lineNumber)&&!r.Kg(t.lineNumber))&&!(!r.b0(t.at)&&!r.Kg(t.at))},schema:{type:"object",required:["lineNumber"],properties:{lineNumber:{type:["number","string"]},at:{type:"string",enum:["top","center","bottom"]}}}}]},e.RawAtArgument={Top:"top",Center:"center",Bottom:"bottom"}}(y||(y={}));class R{constructor(e){e.addImplementation(1e4,"code-editor",((e,t)=>{const i=e.get(c.T).getFocusedCodeEditor();return!(!i||!i.hasTextFocus())&&this._runEditorCommand(e,i,t)})),e.addImplementation(1e3,"generic-dom-input-textarea",((e,t)=>{const i=(0,C.bq)();return!!(i&&["input","textarea"].indexOf(i.tagName.toLowerCase())>=0)&&(this.runDOMCommand(i),!0)})),e.addImplementation(0,"generic-dom",((e,t)=>{const i=e.get(c.T).getActiveCodeEditor();return!!i&&(i.focus(),this._runEditorCommand(e,i,t))}))}_runEditorCommand(e,t,i){const s=this.runEditorCommand(e,t,i);return s||!0}}!function(e){class t extends b{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){if(!t.position)return;e.model.pushStackElement();e.setCursorStates(t.source,3,[p.c.moveTo(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position,t.viewPosition)])&&2!==t.revealType&&e.revealAllCursors(t.source,!0,!0)}}e.MoveTo=(0,a.E_)(new t({id:"_moveTo",inSelectionMode:!1,precondition:void 0})),e.MoveToSelect=(0,a.E_)(new t({id:"_moveToSelect",inSelectionMode:!0,precondition:void 0}));class i extends b{runCoreEditorCommand(e,t){e.model.pushStackElement();const i=this._getColumnSelectResult(e,e.getPrimaryCursorState(),e.getCursorColumnSelectData(),t);null!==i&&(e.setCursorStates(t.source,3,i.viewStates.map((e=>l.MF.fromViewState(e)))),e.setCursorColumnSelectData({isReal:!0,fromViewLineNumber:i.fromLineNumber,fromViewVisualColumn:i.fromVisualColumn,toViewLineNumber:i.toLineNumber,toViewVisualColumn:i.toVisualColumn}),i.reversed?e.revealTopMostCursor(t.source):e.revealBottomMostCursor(t.source))}}e.ColumnSelect=(0,a.E_)(new class extends i{constructor(){super({id:"columnSelect",precondition:void 0})}_getColumnSelectResult(e,t,i,s){if("undefined"===typeof s.position||"undefined"===typeof s.viewPosition||"undefined"===typeof s.mouseColumn)return null;const n=e.model.validatePosition(s.position),r=e.coordinatesConverter.validateViewPosition(new h.y(s.viewPosition.lineNumber,s.viewPosition.column),n),o=s.doColumnSelect?i.fromViewLineNumber:r.lineNumber,a=s.doColumnSelect?i.fromViewVisualColumn:s.mouseColumn-1;return u.columnSelect(e.cursorConfig,e,o,a,r.lineNumber,s.mouseColumn-1)}}),e.CursorColumnSelectLeft=(0,a.E_)(new class extends i{constructor(){super({id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:3599,linux:{primary:0}}})}_getColumnSelectResult(e,t,i,s){return u.columnSelectLeft(e.cursorConfig,e,i)}}),e.CursorColumnSelectRight=(0,a.E_)(new class extends i{constructor(){super({id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:3601,linux:{primary:0}}})}_getColumnSelectResult(e,t,i,s){return u.columnSelectRight(e.cursorConfig,e,i)}});class r extends i{constructor(e){super(e),this._isPaged=e.isPaged}_getColumnSelectResult(e,t,i,s){return u.columnSelectUp(e.cursorConfig,e,i,this._isPaged)}}e.CursorColumnSelectUp=(0,a.E_)(new r({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:3600,linux:{primary:0}}})),e.CursorColumnSelectPageUp=(0,a.E_)(new r({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:3595,linux:{primary:0}}}));class c extends i{constructor(e){super(e),this._isPaged=e.isPaged}_getColumnSelectResult(e,t,i,s){return u.columnSelectDown(e.cursorConfig,e,i,this._isPaged)}}e.CursorColumnSelectDown=(0,a.E_)(new c({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:3602,linux:{primary:0}}})),e.CursorColumnSelectPageDown=(0,a.E_)(new c({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:3596,linux:{primary:0}}}));class g extends b{constructor(){super({id:"cursorMove",precondition:void 0,metadata:p.S.metadata})}runCoreEditorCommand(e,t){const i=p.S.parse(t);i&&this._runCursorMove(e,t.source,i)}_runCursorMove(e,t,i){e.model.pushStackElement(),e.setCursorStates(t,3,g._move(e,e.getCursorStates(),i)),e.revealAllCursors(t,!0)}static _move(e,t,i){const s=i.select,n=i.value;switch(i.direction){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:return p.c.simpleMove(e,t,i.direction,s,n,i.unit);case 11:case 13:case 12:case 14:return p.c.viewportMove(e,t,i.direction,s,n);default:return null}}}e.CursorMoveImpl=g,e.CursorMove=(0,a.E_)(new g);class m extends b{constructor(e){super(e),this._staticArgs=e.args}runCoreEditorCommand(e,t){let i=this._staticArgs;-1===this._staticArgs.value&&(i={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:t.pageSize||e.cursorConfig.pageSize}),e.model.pushStackElement(),e.setCursorStates(t.source,3,p.c.simpleMove(e,e.getCursorStates(),i.direction,i.select,i.value,i.unit)),e.revealAllCursors(t.source,!0)}}e.CursorLeft=(0,a.E_)(new m({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),e.CursorLeftSelect=(0,a.E_)(new m({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:1039}})),e.CursorRight=(0,a.E_)(new m({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),e.CursorRightSelect=(0,a.E_)(new m({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:1041}})),e.CursorUp=(0,a.E_)(new m({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),e.CursorUpSelect=(0,a.E_)(new m({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),e.CursorPageUp=(0,a.E_)(new m({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:11}})),e.CursorPageUpSelect=(0,a.E_)(new m({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:1035}})),e.CursorDown=(0,a.E_)(new m({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),e.CursorDownSelect=(0,a.E_)(new m({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),e.CursorPageDown=(0,a.E_)(new m({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:12}})),e.CursorPageDownSelect=(0,a.E_)(new m({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:1036}})),e.CreateCursor=(0,a.E_)(new class extends b{constructor(){super({id:"createCursor",precondition:void 0})}runCoreEditorCommand(e,t){if(!t.position)return;let i;i=t.wholeLine?p.c.line(e,e.getPrimaryCursorState(),!1,t.position,t.viewPosition):p.c.moveTo(e,e.getPrimaryCursorState(),!1,t.position,t.viewPosition);const s=e.getCursorStates();if(s.length>1){const n=i.modelState?i.modelState.position:null,r=i.viewState?i.viewState.position:null;for(let i=0,o=s.length;i<o;i++){const o=s[i];if((!n||o.modelState.selection.containsPosition(n))&&(!r||o.viewState.selection.containsPosition(r)))return s.splice(i,1),e.model.pushStackElement(),void e.setCursorStates(t.source,3,s)}}s.push(i),e.model.pushStackElement(),e.setCursorStates(t.source,3,s)}}),e.LastCursorMoveToSelect=(0,a.E_)(new class extends b{constructor(){super({id:"_lastCursorMoveToSelect",precondition:void 0})}runCoreEditorCommand(e,t){if(!t.position)return;const i=e.getLastAddedCursorIndex(),s=e.getCursorStates(),n=s.slice(0);n[i]=p.c.moveTo(e,s[i],!0,t.position,t.viewPosition),e.model.pushStackElement(),e.setCursorStates(t.source,3,n)}});class _ extends b{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,p.c.moveToBeginningOfLine(e,e.getCursorStates(),this._inSelectionMode)),e.revealAllCursors(t.source,!0)}}e.CursorHome=(0,a.E_)(new _({inSelectionMode:!1,id:"cursorHome",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:14,mac:{primary:14,secondary:[2063]}}})),e.CursorHomeSelect=(0,a.E_)(new _({inSelectionMode:!0,id:"cursorHomeSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:1038,mac:{primary:1038,secondary:[3087]}}}));class v extends b{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,this._exec(e.getCursorStates())),e.revealAllCursors(t.source,!0)}_exec(e){const t=[];for(let i=0,s=e.length;i<s;i++){const s=e[i],n=s.modelState.position.lineNumber;t[i]=l.MF.fromModelState(s.modelState.move(this._inSelectionMode,n,1,0))}return t}}e.CursorLineStart=(0,a.E_)(new v({inSelectionMode:!1,id:"cursorLineStart",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:0,mac:{primary:287}}})),e.CursorLineStartSelect=(0,a.E_)(new v({inSelectionMode:!0,id:"cursorLineStartSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:0,mac:{primary:1311}}}));class C extends b{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,p.c.moveToEndOfLine(e,e.getCursorStates(),this._inSelectionMode,t.sticky||!1)),e.revealAllCursors(t.source,!0)}}e.CursorEnd=(0,a.E_)(new C({inSelectionMode:!1,id:"cursorEnd",precondition:void 0,kbOpts:{args:{sticky:!1},weight:0,kbExpr:f.R.textInputFocus,primary:13,mac:{primary:13,secondary:[2065]}},metadata:{description:"Go to End",args:[{name:"args",schema:{type:"object",properties:{sticky:{description:s.kg("stickydesc","Stick to the end even when going to longer lines"),type:"boolean",default:!1}}}}]}})),e.CursorEndSelect=(0,a.E_)(new C({inSelectionMode:!0,id:"cursorEndSelect",precondition:void 0,kbOpts:{args:{sticky:!1},weight:0,kbExpr:f.R.textInputFocus,primary:1037,mac:{primary:1037,secondary:[3089]}},metadata:{description:"Select to End",args:[{name:"args",schema:{type:"object",properties:{sticky:{description:s.kg("stickydesc","Stick to the end even when going to longer lines"),type:"boolean",default:!1}}}}]}}));class E extends b{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,this._exec(e,e.getCursorStates())),e.revealAllCursors(t.source,!0)}_exec(e,t){const i=[];for(let s=0,n=t.length;s<n;s++){const n=t[s],r=n.modelState.position.lineNumber,o=e.model.getLineMaxColumn(r);i[s]=l.MF.fromModelState(n.modelState.move(this._inSelectionMode,r,o,0))}return i}}e.CursorLineEnd=(0,a.E_)(new E({inSelectionMode:!1,id:"cursorLineEnd",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:0,mac:{primary:291}}})),e.CursorLineEndSelect=(0,a.E_)(new E({inSelectionMode:!0,id:"cursorLineEndSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:0,mac:{primary:1315}}}));class w extends b{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,p.c.moveToBeginningOfBuffer(e,e.getCursorStates(),this._inSelectionMode)),e.revealAllCursors(t.source,!0)}}e.CursorTop=(0,a.E_)(new w({inSelectionMode:!1,id:"cursorTop",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:2062,mac:{primary:2064}}})),e.CursorTopSelect=(0,a.E_)(new w({inSelectionMode:!0,id:"cursorTopSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:3086,mac:{primary:3088}}}));class L extends b{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,p.c.moveToEndOfBuffer(e,e.getCursorStates(),this._inSelectionMode)),e.revealAllCursors(t.source,!0)}}e.CursorBottom=(0,a.E_)(new L({inSelectionMode:!1,id:"cursorBottom",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:2061,mac:{primary:2066}}})),e.CursorBottomSelect=(0,a.E_)(new L({inSelectionMode:!0,id:"cursorBottomSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:3085,mac:{primary:3090}}}));class T extends b{constructor(){super({id:"editorScroll",precondition:void 0,metadata:S.metadata})}determineScrollMethod(e){return[6].includes(e.unit)&&[4,2].includes(e.direction)?this._runHorizontalEditorScroll.bind(this):[1,2,3,4,5,6].includes(e.unit)&&[1,3].includes(e.direction)?this._runVerticalEditorScroll.bind(this):null}runCoreEditorCommand(e,t){const i=S.parse(t);if(!i)return;const s=this.determineScrollMethod(i);s&&s(e,t.source,i)}_runVerticalEditorScroll(e,t,i){const s=this._computeDesiredScrollTop(e,i);if(i.revealCursor){const n=e.getCompletelyVisibleViewRangeAtScrollTop(s);e.setCursorStates(t,3,[p.c.findPositionInViewportIfOutside(e,e.getPrimaryCursorState(),n,i.select)])}e.viewLayout.setScrollPosition({scrollTop:s},0)}_computeDesiredScrollTop(e,t){if(1===t.unit){const i=e.viewLayout.getFutureViewport(),s=e.getCompletelyVisibleViewRangeAtScrollTop(i.top),n=e.coordinatesConverter.convertViewRangeToModelRange(s);let r;r=1===t.direction?Math.max(1,n.startLineNumber-t.value):Math.min(e.model.getLineCount(),n.startLineNumber+t.value);const o=e.coordinatesConverter.convertModelPositionToViewPosition(new h.y(r,1));return e.viewLayout.getVerticalOffsetForLineNumber(o.lineNumber)}if(5===t.unit){let i=0;return 3===t.direction&&(i=e.model.getLineCount()-e.cursorConfig.pageSize),e.viewLayout.getVerticalOffsetForLineNumber(i)}let i;i=3===t.unit?e.cursorConfig.pageSize*t.value:4===t.unit?Math.round(e.cursorConfig.pageSize/2)*t.value:t.value;const s=(1===t.direction?-1:1)*i;return e.viewLayout.getCurrentScrollTop()+s*e.cursorConfig.lineHeight}_runHorizontalEditorScroll(e,t,i){const s=this._computeDesiredScrollLeft(e,i);e.viewLayout.setScrollPosition({scrollLeft:s},0)}_computeDesiredScrollLeft(e,t){const i=(4===t.direction?-1:1)*t.value;return e.viewLayout.getCurrentScrollLeft()+i*e.cursorConfig.typicalHalfwidthCharacterWidth}}e.EditorScrollImpl=T,e.EditorScroll=(0,a.E_)(new T),e.ScrollLineUp=(0,a.E_)(new class extends b{constructor(){super({id:"scrollLineUp",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:2064,mac:{primary:267}}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:S.RawDirection.Up,by:S.RawUnit.WrappedLine,value:1,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollPageUp=(0,a.E_)(new class extends b{constructor(){super({id:"scrollPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:2059,win:{primary:523},linux:{primary:523}}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:S.RawDirection.Up,by:S.RawUnit.Page,value:1,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollEditorTop=(0,a.E_)(new class extends b{constructor(){super({id:"scrollEditorTop",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:S.RawDirection.Up,by:S.RawUnit.Editor,value:1,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollLineDown=(0,a.E_)(new class extends b{constructor(){super({id:"scrollLineDown",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:2066,mac:{primary:268}}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:S.RawDirection.Down,by:S.RawUnit.WrappedLine,value:1,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollPageDown=(0,a.E_)(new class extends b{constructor(){super({id:"scrollPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:2060,win:{primary:524},linux:{primary:524}}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:S.RawDirection.Down,by:S.RawUnit.Page,value:1,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollEditorBottom=(0,a.E_)(new class extends b{constructor(){super({id:"scrollEditorBottom",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:S.RawDirection.Down,by:S.RawUnit.Editor,value:1,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollLeft=(0,a.E_)(new class extends b{constructor(){super({id:"scrollLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:S.RawDirection.Left,by:S.RawUnit.Column,value:2,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollRight=(0,a.E_)(new class extends b{constructor(){super({id:"scrollRight",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:S.RawDirection.Right,by:S.RawUnit.Column,value:2,revealCursor:!1,select:!1,source:i.source})}});class x extends b{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){t.position&&(e.model.pushStackElement(),e.setCursorStates(t.source,3,[p.c.word(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position)]),2!==t.revealType&&e.revealAllCursors(t.source,!0,!0))}}e.WordSelect=(0,a.E_)(new x({inSelectionMode:!1,id:"_wordSelect",precondition:void 0})),e.WordSelectDrag=(0,a.E_)(new x({inSelectionMode:!0,id:"_wordSelectDrag",precondition:void 0})),e.LastCursorWordSelect=(0,a.E_)(new class extends b{constructor(){super({id:"lastCursorWordSelect",precondition:void 0})}runCoreEditorCommand(e,t){if(!t.position)return;const i=e.getLastAddedCursorIndex(),s=e.getCursorStates(),n=s.slice(0),r=s[i];n[i]=p.c.word(e,r,r.modelState.hasSelection(),t.position),e.model.pushStackElement(),e.setCursorStates(t.source,3,n)}});class k extends b{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){t.position&&(e.model.pushStackElement(),e.setCursorStates(t.source,3,[p.c.line(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position,t.viewPosition)]),2!==t.revealType&&e.revealAllCursors(t.source,!1,!0))}}e.LineSelect=(0,a.E_)(new k({inSelectionMode:!1,id:"_lineSelect",precondition:void 0})),e.LineSelectDrag=(0,a.E_)(new k({inSelectionMode:!0,id:"_lineSelectDrag",precondition:void 0}));class A extends b{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){if(!t.position)return;const i=e.getLastAddedCursorIndex(),s=e.getCursorStates(),n=s.slice(0);n[i]=p.c.line(e,s[i],this._inSelectionMode,t.position,t.viewPosition),e.model.pushStackElement(),e.setCursorStates(t.source,3,n)}}e.LastCursorLineSelect=(0,a.E_)(new A({inSelectionMode:!1,id:"lastCursorLineSelect",precondition:void 0})),e.LastCursorLineSelectDrag=(0,a.E_)(new A({inSelectionMode:!0,id:"lastCursorLineSelectDrag",precondition:void 0})),e.CancelSelection=(0,a.E_)(new class extends b{constructor(){super({id:"cancelSelection",precondition:f.R.hasNonEmptySelection,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:9,secondary:[1033]}})}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[p.c.cancelSelection(e,e.getPrimaryCursorState())]),e.revealAllCursors(t.source,!0)}}),e.RemoveSecondaryCursors=(0,a.E_)(new class extends b{constructor(){super({id:"removeSecondaryCursors",precondition:f.R.hasMultipleSelections,kbOpts:{weight:1,kbExpr:f.R.textInputFocus,primary:9,secondary:[1033]}})}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[e.getPrimaryCursorState()]),e.revealAllCursors(t.source,!0),(0,o.h5)(s.kg("removedCursor","Removed secondary cursors"))}}),e.RevealLine=(0,a.E_)(new class extends b{constructor(){super({id:"revealLine",precondition:void 0,metadata:y.metadata})}runCoreEditorCommand(e,t){const i=t,s=i.lineNumber||0;let n="number"===typeof s?s+1:parseInt(s)+1;n<1&&(n=1);const r=e.model.getLineCount();n>r&&(n=r);const o=new d.Q(n,1,n,e.model.getLineMaxColumn(n));let a=0;if(i.at)switch(i.at){case y.RawAtArgument.Top:a=3;break;case y.RawAtArgument.Center:a=1;break;case y.RawAtArgument.Bottom:a=4}const c=e.coordinatesConverter.convertModelRangeToViewRange(o);e.revealRange(t.source,!1,c,a,0)}}),e.SelectAll=new class extends R{constructor(){super(a.tc)}runDOMCommand(e){n.gm&&(e.focus(),e.select()),e.ownerDocument.execCommand("selectAll")}runEditorCommand(e,t,i){const s=t._getViewModel();s&&this.runCoreEditorCommand(s,i)}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates("keyboard",3,[p.c.selectAll(e,e.getPrimaryCursorState())])}},e.SetSelection=(0,a.E_)(new class extends b{constructor(){super({id:"setSelection",precondition:void 0})}runCoreEditorCommand(e,t){t.selection&&(e.model.pushStackElement(),e.setCursorStates(t.source,3,[l.MF.fromModelSelection(t.selection)]))}})}(w||(w={}));const L=_.M$.and(f.R.textInputFocus,f.R.columnSelection);function T(e,t){v.f.registerKeybindingRule({id:e,primary:t,when:L,weight:1})}function x(e){return e.register(),e}var k;T(w.CursorColumnSelectLeft.id,1039),T(w.CursorColumnSelectRight.id,1041),T(w.CursorColumnSelectUp.id,1040),T(w.CursorColumnSelectPageUp.id,1035),T(w.CursorColumnSelectDown.id,1042),T(w.CursorColumnSelectPageDown.id,1036),function(e){class t extends a.DX{runEditorCommand(e,t,i){const s=t._getViewModel();s&&this.runCoreEditingCommand(t,s,i||{})}}e.CoreEditingCommand=t,e.LineBreakInsert=(0,a.E_)(new class extends t{constructor(){super({id:"lineBreakInsert",precondition:f.R.writable,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:0,mac:{primary:301}}})}runCoreEditingCommand(e,t,i){e.pushUndoStop(),e.executeCommands(this.id,E.AO.lineBreakInsert(t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection))))}}),e.Outdent=(0,a.E_)(new class extends t{constructor(){super({id:"outdent",precondition:f.R.writable,kbOpts:{weight:0,kbExpr:_.M$.and(f.R.editorTextFocus,f.R.tabDoesNotMoveFocus),primary:1026}})}runCoreEditingCommand(e,t,i){e.pushUndoStop(),e.executeCommands(this.id,m.T.outdent(t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection)))),e.pushUndoStop()}}),e.Tab=(0,a.E_)(new class extends t{constructor(){super({id:"tab",precondition:f.R.writable,kbOpts:{weight:0,kbExpr:_.M$.and(f.R.editorTextFocus,f.R.tabDoesNotMoveFocus),primary:2}})}runCoreEditingCommand(e,t,i){e.pushUndoStop(),e.executeCommands(this.id,m.T.tab(t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection)))),e.pushUndoStop()}}),e.DeleteLeft=(0,a.E_)(new class extends t{constructor(){super({id:"deleteLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})}runCoreEditingCommand(e,t,i){const[s,n]=g.g.deleteLeft(t.getPrevEditOperationType(),t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection)),t.getCursorAutoClosedCharacters());s&&e.pushUndoStop(),e.executeCommands(this.id,n),t.setPrevEditOperationType(2)}}),e.DeleteRight=(0,a.E_)(new class extends t{constructor(){super({id:"deleteRight",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})}runCoreEditingCommand(e,t,i){const[s,n]=g.g.deleteRight(t.getPrevEditOperationType(),t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection)));s&&e.pushUndoStop(),e.executeCommands(this.id,n),t.setPrevEditOperationType(3)}}),e.Undo=new class extends R{constructor(){super(a.aU)}runDOMCommand(e){e.ownerDocument.execCommand("undo")}runEditorCommand(e,t,i){if(t.hasModel()&&!0!==t.getOption(92))return t.getModel().undo()}},e.Redo=new class extends R{constructor(){super(a.ih)}runDOMCommand(e){e.ownerDocument.execCommand("redo")}runEditorCommand(e,t,i){if(t.hasModel()&&!0!==t.getOption(92))return t.getModel().redo()}}}(k||(k={}));class A extends a.uB{constructor(e,t,i){super({id:e,precondition:void 0,metadata:i}),this._handlerId=t}runCommand(e,t){const i=e.get(c.T).getFocusedCodeEditor();i&&i.trigger("keyboard",this._handlerId,t)}}function N(e,t){x(new A("default:"+e,e)),x(new A(e,e,t))}N("type",{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]}),N("replacePreviousChar"),N("compositionType"),N("compositionStart"),N("compositionEnd"),N("paste"),N("cut")},85411:(e,t,i)=>{"use strict";i.d(t,{l:()=>d,q:()=>c});var s=i(42731),n=i(17799),r=i(44320),o=i(79400),a=i(61292);function c(e){const t=new n.Vq;for(const i of e.items){const e=i.type;if("string"===i.kind){const s=new Promise((e=>i.getAsString(e)));t.append(e,(0,n.gf)(s))}else if("file"===i.kind){const s=i.getAsFile();s&&t.append(e,l(s))}}return t}function l(e){const t=e.path?o.r.parse(e.path):void 0;return(0,n.VX)(e.name,t,(async()=>new Uint8Array(await e.arrayBuffer())))}const h=Object.freeze([a.sV.EDITORS,a.sV.FILES,s.t.RESOURCES,s.t.INTERNAL_URI_LIST]);function d(e,t=!1){const i=c(e),a=i.get(s.t.INTERNAL_URI_LIST);if(a)i.replace(r.K.uriList,a);else if(t||!i.has(r.K.uriList)){const t=[];for(const i of e.items){const e=i.getAsFile();if(e){const i=e.path;try{i?t.push(o.r.file(i).toString()):t.push(o.r.parse(e.name,!0).toString())}catch{}}}t.length&&i.replace(r.K.uriList,(0,n.gf)(n.jt.create(t)))}for(const s of h)i.delete(s);return i}},34326:(e,t,i)=>{"use strict";i.d(t,{Np:()=>r,jA:()=>o,z9:()=>n});var s=i(23452);function n(e){return!(!e||"function"!==typeof e.getEditorType)&&e.getEditorType()===s._.ICodeEditor}function r(e){return!(!e||"function"!==typeof e.getEditorType)&&e.getEditorType()===s._.IDiffEditor}function o(e){return n(e)?e:r(e)?e.getModifiedEditor():function(e){return!!e&&"object"===typeof e&&"function"===typeof e.onDidChangeActiveEditor}(e)&&n(e.activeCodeEditor)?e.activeCodeEditor:null}},37734:(e,t,i)=>{"use strict";i.d(t,{$z:()=>f,BA:()=>v,DW:()=>_,Hh:()=>h,Qn:()=>C,dO:()=>m,i_:()=>p,nz:()=>l,wt:()=>g});var s=i(8597),n=i(34072),r=i(47358),o=i(90766),a=i(5662),c=i(66261);class l{constructor(e,t){this.x=e,this.y=t,this._pageCoordinatesBrand=void 0}toClientCoordinates(e){return new h(this.x-e.scrollX,this.y-e.scrollY)}}class h{constructor(e,t){this.clientX=e,this.clientY=t,this._clientCoordinatesBrand=void 0}toPageCoordinates(e){return new l(this.clientX+e.scrollX,this.clientY+e.scrollY)}}class d{constructor(e,t,i,s){this.x=e,this.y=t,this.width=i,this.height=s,this._editorPagePositionBrand=void 0}}class u{constructor(e,t){this.x=e,this.y=t,this._positionRelativeToEditorBrand=void 0}}function g(e){const t=s.BK(e);return new d(t.left,t.top,t.width,t.height)}function p(e,t,i){const s=t.width/e.offsetWidth,n=t.height/e.offsetHeight,r=(i.x-t.x)/s,o=(i.y-t.y)/n;return new u(r,o)}class m extends r.P{constructor(e,t,i){super(s.zk(i),e),this._editorMouseEventBrand=void 0,this.isFromPointerCapture=t,this.pos=new l(this.posx,this.posy),this.editorPos=g(i),this.relativePos=p(i,this.editorPos,this.pos)}}class f{constructor(e){this._editorViewDomNode=e}_create(e){return new m(e,!1,this._editorViewDomNode)}onContextMenu(e,t){return s.ko(e,"contextmenu",(e=>{t(this._create(e))}))}onMouseUp(e,t){return s.ko(e,"mouseup",(e=>{t(this._create(e))}))}onMouseDown(e,t){return s.ko(e,s.Bx.MOUSE_DOWN,(e=>{t(this._create(e))}))}onPointerDown(e,t){return s.ko(e,s.Bx.POINTER_DOWN,(e=>{t(this._create(e),e.pointerId)}))}onMouseLeave(e,t){return s.ko(e,s.Bx.MOUSE_LEAVE,(e=>{t(this._create(e))}))}onMouseMove(e,t){return s.ko(e,"mousemove",(e=>t(this._create(e))))}}class _{constructor(e){this._editorViewDomNode=e}_create(e){return new m(e,!1,this._editorViewDomNode)}onPointerUp(e,t){return s.ko(e,"pointerup",(e=>{t(this._create(e))}))}onPointerDown(e,t){return s.ko(e,s.Bx.POINTER_DOWN,(e=>{t(this._create(e),e.pointerId)}))}onPointerLeave(e,t){return s.ko(e,s.Bx.POINTER_LEAVE,(e=>{t(this._create(e))}))}onPointerMove(e,t){return s.ko(e,"pointermove",(e=>t(this._create(e))))}}class v extends a.jG{constructor(e){super(),this._editorViewDomNode=e,this._globalPointerMoveMonitor=this._register(new n._),this._keydownListener=null}startMonitoring(e,t,i,n,r){this._keydownListener=s.b2(e.ownerDocument,"keydown",(e=>{e.toKeyCodeChord().isModifierKey()||this._globalPointerMoveMonitor.stopMonitoring(!0,e.browserEvent)}),!0),this._globalPointerMoveMonitor.startMonitoring(e,t,i,(e=>{n(new m(e,!0,this._editorViewDomNode))}),(e=>{this._keydownListener.dispose(),r(e)}))}stopMonitoring(){this._globalPointerMoveMonitor.stopMonitoring(!0)}}class C{static{this._idPool=0}constructor(e){this._editor=e,this._instanceId=++C._idPool,this._counter=0,this._rules=new Map,this._garbageCollectionScheduler=new o.uC((()=>this.garbageCollect()),1e3)}createClassNameRef(e){const t=this.getOrCreateRule(e);return t.increaseRefCount(),{className:t.className,dispose:()=>{t.decreaseRefCount(),this._garbageCollectionScheduler.schedule()}}}getOrCreateRule(e){const t=this.computeUniqueKey(e);let i=this._rules.get(t);if(!i){const n=this._counter++;i=new E(t,`dyn-rule-${this._instanceId}-${n}`,s.Cl(this._editor.getContainerDomNode())?this._editor.getContainerDomNode():void 0,e),this._rules.set(t,i)}return i}computeUniqueKey(e){return JSON.stringify(e)}garbageCollect(){for(const e of this._rules.values())e.hasReferences()||(this._rules.delete(e.key),e.dispose())}}class E{constructor(e,t,i,n){this.key=e,this.className=t,this.properties=n,this._referenceCount=0,this._styleElementDisposables=new a.Cm,this._styleElement=s.li(i,void 0,this._styleElementDisposables),this._styleElement.textContent=this.getCssText(this.className,this.properties)}getCssText(e,t){let i=`.${e} {`;for(const s in t){const e=t[s];let n;n="object"===typeof e?(0,c.GuP)(e.id):e;i+=`\n\t${b(s)}: ${n};`}return i+="\n}",i}dispose(){this._styleElementDisposables.dispose(),this._styleElement=void 0}increaseRefCount(){this._referenceCount++}decreaseRefCount(){this._referenceCount--}hasReferences(){return this._referenceCount>0}}function b(e){return e.replace(/(^[A-Z])/,(([e])=>e.toLowerCase())).replace(/([A-Z])/g,(([e])=>`-${e.toLowerCase()}`))}},31450:(e,t,i)=>{"use strict";i.d(t,{DX:()=>y,E_:()=>x,Fl:()=>k,HW:()=>I,PF:()=>R,aU:()=>M,dS:()=>s,fE:()=>b,gW:()=>A,ih:()=>P,ke:()=>T,ks:()=>w,qO:()=>L,tc:()=>F,uB:()=>E,xX:()=>N});var s,n=i(78209),r=i(79400),o=i(80301),a=i(83069),c=i(23750),l=i(18938),h=i(27195),d=i(50091),u=i(32848),g=i(63591),p=i(59261),m=i(46359),f=i(90651),_=i(631),v=i(18801),C=i(8597);class E{constructor(e){this.id=e.id,this.precondition=e.precondition,this._kbOpts=e.kbOpts,this._menuOpts=e.menuOpts,this.metadata=e.metadata}register(){if(Array.isArray(this._menuOpts)?this._menuOpts.forEach(this._registerMenuItem,this):this._menuOpts&&this._registerMenuItem(this._menuOpts),this._kbOpts){const e=Array.isArray(this._kbOpts)?this._kbOpts:[this._kbOpts];for(const t of e){let e=t.kbExpr;this.precondition&&(e=e?u.M$.and(e,this.precondition):this.precondition);const i={id:this.id,weight:t.weight,args:t.args,when:e,primary:t.primary,secondary:t.secondary,win:t.win,linux:t.linux,mac:t.mac};p.f.registerKeybindingRule(i)}}d.w.registerCommand({id:this.id,handler:(e,t)=>this.runCommand(e,t),metadata:this.metadata})}_registerMenuItem(e){h.ZG.appendMenuItem(e.menuId,{group:e.group,command:{id:this.id,title:e.title,icon:e.icon,precondition:this.precondition},when:e.when,order:e.order})}}class b extends E{constructor(){super(...arguments),this._implementations=[]}addImplementation(e,t,i,s){return this._implementations.push({priority:e,name:t,implementation:i,when:s}),this._implementations.sort(((e,t)=>t.priority-e.priority)),{dispose:()=>{for(let e=0;e<this._implementations.length;e++)if(this._implementations[e].implementation===i)return void this._implementations.splice(e,1)}}}runCommand(e,t){const i=e.get(v.rr),s=e.get(u.fN);i.trace(`Executing Command '${this.id}' which has ${this._implementations.length} bound.`);for(const n of this._implementations){if(n.when){const e=s.getContext((0,C.bq)());if(!n.when.evaluate(e))continue}const r=n.implementation(e,t);if(r){if(i.trace(`Command '${this.id}' was handled by '${n.name}'.`),"boolean"===typeof r)return;return r}}i.trace(`The Command '${this.id}' was not handled by any implementation.`)}}class S extends E{constructor(e,t){super(t),this.command=e}runCommand(e,t){return this.command.runCommand(e,t)}}class y extends E{static bindToContribution(e){return class extends y{constructor(e){super(e),this._callback=e.handler}runEditorCommand(t,i,s){const n=e(i);n&&this._callback(n,s)}}}static runEditorCommand(e,t,i,s){const n=e.get(o.T),r=n.getFocusedCodeEditor()||n.getActiveCodeEditor();if(r)return r.invokeWithinContext((e=>{if(e.get(u.fN).contextMatchesRules(i??void 0))return s(e,r,t)}))}runCommand(e,t){return y.runEditorCommand(e,t,this.precondition,((e,t,i)=>this.runEditorCommand(e,t,i)))}}class w extends y{static convertOptions(e){let t;function i(t){return t.menuId||(t.menuId=h.D8.EditorContext),t.title||(t.title=e.label),t.when=u.M$.and(e.precondition,t.when),t}return t=Array.isArray(e.menuOpts)?e.menuOpts:e.menuOpts?[e.menuOpts]:[],Array.isArray(e.contextMenuOpts)?t.push(...e.contextMenuOpts.map(i)):e.contextMenuOpts&&t.push(i(e.contextMenuOpts)),e.menuOpts=t,e}constructor(e){super(w.convertOptions(e)),this.label=e.label,this.alias=e.alias}runEditorCommand(e,t,i){return this.reportTelemetry(e,t),this.run(e,t,i||{})}reportTelemetry(e,t){e.get(f.k).publicLog2("editorActionInvoked",{name:this.label,id:this.id})}}class R extends w{constructor(){super(...arguments),this._implementations=[]}addImplementation(e,t){return this._implementations.push([e,t]),this._implementations.sort(((e,t)=>t[0]-e[0])),{dispose:()=>{for(let e=0;e<this._implementations.length;e++)if(this._implementations[e][1]===t)return void this._implementations.splice(e,1)}}}run(e,t,i){for(const s of this._implementations){const n=s[1](e,t,i);if(n){if("boolean"===typeof n)return;return n}}}}class L extends h.L{run(e,...t){const i=e.get(o.T),s=i.getFocusedCodeEditor()||i.getActiveCodeEditor();if(s)return s.invokeWithinContext((e=>{const i=e.get(u.fN),n=e.get(v.rr);if(i.contextMatchesRules(this.desc.precondition??void 0))return this.runEditorCommand(e,s,...t);n.debug("[EditorAction2] NOT running command because its precondition is FALSE",this.desc.id,this.desc.precondition?.serialize())}))}}function T(e,t){d.w.registerCommand(e,(function(e,...i){const s=e.get(g._Y),[n,o]=i;(0,_.j)(r.r.isUri(n)),(0,_.j)(a.y.isIPosition(o));const h=e.get(c.IModelService).getModel(n);if(h){const e=a.y.lift(o);return s.invokeFunction(t,h,e,...i.slice(2))}return e.get(l.ITextModelService).createModelReference(n).then((e=>new Promise(((n,r)=>{try{n(s.invokeFunction(t,e.object.textEditorModel,a.y.lift(o),i.slice(2)))}catch(c){r(c)}})).finally((()=>{e.dispose()}))))}))}function x(e){return O.INSTANCE.registerEditorCommand(e),e}function k(e){const t=new e;return O.INSTANCE.registerEditorAction(t),t}function A(e){return O.INSTANCE.registerEditorAction(e),e}function N(e){O.INSTANCE.registerEditorAction(e)}function I(e,t,i){O.INSTANCE.registerEditorContribution(e,t,i)}!function(e){e.getEditorCommand=function(e){return O.INSTANCE.getEditorCommand(e)},e.getEditorActions=function(){return O.INSTANCE.getEditorActions()},e.getEditorContributions=function(){return O.INSTANCE.getEditorContributions()},e.getSomeEditorContributions=function(e){return O.INSTANCE.getEditorContributions().filter((t=>e.indexOf(t.id)>=0))},e.getDiffEditorContributions=function(){return O.INSTANCE.getDiffEditorContributions()}}(s||(s={}));class O{static{this.INSTANCE=new O}constructor(){this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}registerEditorContribution(e,t,i){this.editorContributions.push({id:e,ctor:t,instantiation:i})}getEditorContributions(){return this.editorContributions.slice(0)}getDiffEditorContributions(){return this.diffEditorContributions.slice(0)}registerEditorAction(e){e.register(),this.editorActions.push(e)}getEditorActions(){return this.editorActions}registerEditorCommand(e){e.register(),this.editorCommands[e.id]=e}getEditorCommand(e){return this.editorCommands[e]||null}}function D(e){return e.register(),e}m.O.add("editor.contributions",O.INSTANCE);const M=D(new b({id:"undo",precondition:void 0,kbOpts:{weight:0,primary:2104},menuOpts:[{menuId:h.D8.MenubarEditMenu,group:"1_do",title:n.kg({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1},{menuId:h.D8.CommandPalette,group:"",title:n.kg("undo","Undo"),order:1}]}));D(new S(M,{id:"default:undo",precondition:void 0}));const P=D(new b({id:"redo",precondition:void 0,kbOpts:{weight:0,primary:2103,secondary:[3128],mac:{primary:3128}},menuOpts:[{menuId:h.D8.MenubarEditMenu,group:"1_do",title:n.kg({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2},{menuId:h.D8.CommandPalette,group:"",title:n.kg("redo","Redo"),order:1}]}));D(new S(P,{id:"default:redo",precondition:void 0}));const F=D(new b({id:"editor.action.selectAll",precondition:void 0,kbOpts:{weight:0,kbExpr:null,primary:2079},menuOpts:[{menuId:h.D8.MenubarSelectionMenu,group:"1_basic",title:n.kg({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1},{menuId:h.D8.CommandPalette,group:"",title:n.kg("selectAll","Select All"),order:1}]}))},38844:(e,t,i)=>{"use strict";i.d(t,{Qg:()=>u,Ud:()=>l,jD:()=>d});var s=i(51241),n=i(5662),r=i(31308),o=i(49154),a=i(87958),c=i(75326);function l(e){return h.get(e)}class h extends n.jG{static{this._map=new Map}static get(e){let t=h._map.get(e);if(!t){t=new h(e),h._map.set(e,t);const i=e.onDidDispose((()=>{const t=h._map.get(e);t&&(h._map.delete(e),t.dispose(),i.dispose())}))}return t}_beginUpdate(){this._updateCounter++,1===this._updateCounter&&(this._currentTransaction=new o.XL((()=>{})))}_endUpdate(){if(this._updateCounter--,0===this._updateCounter){const e=this._currentTransaction;this._currentTransaction=void 0,e.finish()}}constructor(e){super(),this.editor=e,this._updateCounter=0,this._currentTransaction=void 0,this._model=(0,r.FY)(this,this.editor.getModel()),this.model=this._model,this.isReadonly=(0,r.y0)(this,this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(92))),this._versionId=(0,r.Zh)({owner:this,lazy:!0},this.editor.getModel()?.getVersionId()??null),this.versionId=this._versionId,this._selections=(0,r.Zh)({owner:this,equalsFn:(0,s.KC)((0,s.S3)(c.L.selectionsEqual)),lazy:!0},this.editor.getSelections()??null),this.selections=this._selections,this.isFocused=(0,r.y0)(this,(e=>{const t=this.editor.onDidFocusEditorWidget(e),i=this.editor.onDidBlurEditorWidget(e);return{dispose(){t.dispose(),i.dispose()}}}),(()=>this.editor.hasWidgetFocus())),this.value=(0,a.dQ)(this,(e=>(this.versionId.read(e),this.model.read(e)?.getValue()??"")),((e,t)=>{const i=this.model.get();null!==i&&e!==i.getValue()&&i.setValue(e)})),this.valueIsEmpty=(0,r.un)(this,(e=>(this.versionId.read(e),0===this.editor.getModel()?.getValueLength()))),this.cursorSelection=(0,r.C)({owner:this,equalsFn:(0,s.KC)(c.L.selectionsEqual)},(e=>this.selections.read(e)?.[0]??null)),this.onDidType=(0,r.Yd)(this),this.scrollTop=(0,r.y0)(this.editor.onDidScrollChange,(()=>this.editor.getScrollTop())),this.scrollLeft=(0,r.y0)(this.editor.onDidScrollChange,(()=>this.editor.getScrollLeft())),this.layoutInfo=(0,r.y0)(this.editor.onDidLayoutChange,(()=>this.editor.getLayoutInfo())),this.layoutInfoContentLeft=this.layoutInfo.map((e=>e.contentLeft)),this.layoutInfoDecorationsLeft=this.layoutInfo.map((e=>e.decorationsLeft)),this.contentWidth=(0,r.y0)(this.editor.onDidContentSizeChange,(()=>this.editor.getContentWidth())),this._overlayWidgetCounter=0,this._register(this.editor.onBeginUpdate((()=>this._beginUpdate()))),this._register(this.editor.onEndUpdate((()=>this._endUpdate()))),this._register(this.editor.onDidChangeModel((()=>{this._beginUpdate();try{this._model.set(this.editor.getModel(),this._currentTransaction),this._forceUpdate()}finally{this._endUpdate()}}))),this._register(this.editor.onDidType((e=>{this._beginUpdate();try{this._forceUpdate(),this.onDidType.trigger(this._currentTransaction,e)}finally{this._endUpdate()}}))),this._register(this.editor.onDidChangeModelContent((e=>{this._beginUpdate();try{this._versionId.set(this.editor.getModel()?.getVersionId()??null,this._currentTransaction,e),this._forceUpdate()}finally{this._endUpdate()}}))),this._register(this.editor.onDidChangeCursorSelection((e=>{this._beginUpdate();try{this._selections.set(this.editor.getSelections(),this._currentTransaction,e),this._forceUpdate()}finally{this._endUpdate()}})))}forceUpdate(e){this._beginUpdate();try{if(this._forceUpdate(),!e)return;return e(this._currentTransaction)}finally{this._endUpdate()}}_forceUpdate(){this._beginUpdate();try{this._model.set(this.editor.getModel(),this._currentTransaction),this._versionId.set(this.editor.getModel()?.getVersionId()??null,this._currentTransaction,void 0),this._selections.set(this.editor.getSelections(),this._currentTransaction,void 0)}finally{this._endUpdate()}}getOption(e){return(0,r.y0)(this,(t=>this.editor.onDidChangeConfiguration((i=>{i.hasChanged(e)&&t(void 0)}))),(()=>this.editor.getOption(e)))}setDecorations(e){const t=new n.Cm,i=this.editor.createDecorationsCollection();return t.add((0,r.zL)({owner:this,debugName:()=>`Apply decorations from ${e.debugName}`},(t=>{const s=e.read(t);i.set(s)}))),t.add({dispose:()=>{i.clear()}}),t}createOverlayWidget(e){const t="observableOverlayWidget"+this._overlayWidgetCounter++,i={getDomNode:()=>e.domNode,getPosition:()=>e.position.get(),getId:()=>t,allowEditorOverflow:e.allowEditorOverflow,getMinContentWidthInPx:()=>e.minContentWidthInPx.get()};this.editor.addOverlayWidget(i);const s=(0,r.fm)((t=>{e.position.read(t),e.minContentWidthInPx.read(t),this.editor.layoutOverlayWidget(i)}));return(0,n.s)((()=>{s.dispose(),this.editor.removeOverlayWidget(i)}))}}function d(e,t){return(0,r.ht)({createEmptyChangeSummary:()=>({deltas:[],didChange:!1}),handleChange:(t,i)=>{if(t.didChange(e)){const e=t.change;void 0!==e&&i.deltas.push(e),i.didChange=!0}return!0}},((i,s)=>{const n=e.read(i);s.didChange&&t(n,s.deltas)}))}function u(e,t){const i=new n.Cm,s=d(e,((e,s)=>{i.clear(),t(e,s,i)}));return{dispose(){s.dispose(),i.dispose()}}}},80537:(e,t,i)=>{"use strict";i.d(t,{cw:()=>c,jN:()=>a,nu:()=>o});var s=i(63591),n=i(79400),r=i(631);const o=(0,s.u1)("IWorkspaceEditService");class a{constructor(e){this.metadata=e}static convert(e){return e.edits.map((e=>{if(c.is(e))return c.lift(e);if(l.is(e))return l.lift(e);throw new Error("Unsupported edit")}))}}class c extends a{static is(e){return e instanceof c||(0,r.Gv)(e)&&n.r.isUri(e.resource)&&(0,r.Gv)(e.textEdit)}static lift(e){return e instanceof c?e:new c(e.resource,e.textEdit,e.versionId,e.metadata)}constructor(e,t,i=void 0,s){super(s),this.resource=e,this.textEdit=t,this.versionId=i}}class l extends a{static is(e){return e instanceof l||(0,r.Gv)(e)&&(Boolean(e.newResource)||Boolean(e.oldResource))}static lift(e){return e instanceof l?e:new l(e.oldResource,e.newResource,e.options,e.metadata)}constructor(e,t,i={},s){super(s),this.oldResource=e,this.newResource=t,this.options=i}}},80301:(e,t,i)=>{"use strict";i.d(t,{T:()=>s});const s=(0,i(63591).u1)("codeEditorService")},55190:(e,t,i)=>{"use strict";i.d(t,{D:()=>s});class s{static capture(e){if(0===e.getScrollTop()||e.hasPendingScrollAnimation())return new s(e.getScrollTop(),e.getContentHeight(),null,0,null);let t=null,i=0;const n=e.getVisibleRanges();if(n.length>0){t=n[0].getStartPosition();const s=e.getTopForPosition(t.lineNumber,t.column);i=e.getScrollTop()-s}return new s(e.getScrollTop(),e.getContentHeight(),t,i,e.getPosition())}constructor(e,t,i,s,n){this._initialScrollTop=e,this._initialContentHeight=t,this._visiblePosition=i,this._visiblePositionScrollDelta=s,this._cursorPosition=n}restore(e){if((this._initialContentHeight!==e.getContentHeight()||this._initialScrollTop!==e.getScrollTop())&&this._visiblePosition){const t=e.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);e.setScrollTop(t+this._visiblePositionScrollDelta)}}restoreRelativeVerticalPositionOfCursor(e){if(this._initialContentHeight===e.getContentHeight()&&this._initialScrollTop===e.getScrollTop())return;const t=e.getPosition();if(!this._cursorPosition||!t)return;const i=e.getTopForLineNumber(t.lineNumber)-e.getTopForLineNumber(this._cursorPosition.lineNumber);e.setScrollTop(e.getScrollTop()+i,1)}}},80624:(e,t,i)=>{"use strict";i.d(t,{BG:()=>r,IO:()=>a,Y:()=>o,eh:()=>n,pj:()=>l,qN:()=>c});class s{constructor(e,t){this._restrictedRenderingContextBrand=void 0,this._viewLayout=e,this.viewportData=t,this.scrollWidth=this._viewLayout.getScrollWidth(),this.scrollHeight=this._viewLayout.getScrollHeight(),this.visibleRange=this.viewportData.visibleRange,this.bigNumbersDelta=this.viewportData.bigNumbersDelta;const i=this._viewLayout.getCurrentViewport();this.scrollTop=i.top,this.scrollLeft=i.left,this.viewportWidth=i.width,this.viewportHeight=i.height}getScrolledTopFromAbsoluteTop(e){return e-this.scrollTop}getVerticalOffsetForLineNumber(e,t){return this._viewLayout.getVerticalOffsetForLineNumber(e,t)}getVerticalOffsetAfterLineNumber(e,t){return this._viewLayout.getVerticalOffsetAfterLineNumber(e,t)}getDecorationsInViewport(){return this.viewportData.getDecorationsInViewport()}}class n extends s{constructor(e,t,i){super(e,t),this._renderingContextBrand=void 0,this._viewLines=i}linesVisibleRangesForRange(e,t){return this._viewLines.linesVisibleRangesForRange(e,t)}visibleRangeForPosition(e){return this._viewLines.visibleRangeForPosition(e)}}class r{constructor(e,t,i,s){this.outsideRenderedLine=e,this.lineNumber=t,this.ranges=i,this.continuesOnNextLine=s}}class o{static from(e){const t=new Array(e.length);for(let i=0,s=e.length;i<s;i++){const s=e[i];t[i]=new o(s.left,s.width)}return t}constructor(e,t){this._horizontalRangeBrand=void 0,this.left=Math.round(e),this.width=Math.round(t)}toString(){return`[${this.left},${this.width}]`}}class a{constructor(e,t){this._floatHorizontalRangeBrand=void 0,this.left=e,this.width=t}toString(){return`[${this.left},${this.width}]`}static compare(e,t){return e.left-t.left}}class c{constructor(e,t){this.outsideRenderedLine=e,this.originalLeft=t,this.left=Math.round(this.originalLeft)}}class l{constructor(e,t){this.outsideRenderedLine=e,this.ranges=t}}},92473:(e,t,i)=>{"use strict";i.d(t,{Gb:()=>m,Ax:()=>p,rk:()=>S});var s=i(60413),n=i(55275),r=i(98067),o=i(80624);class a{static _createRange(){return this._handyReadyRange||(this._handyReadyRange=document.createRange()),this._handyReadyRange}static _detachRange(e,t){e.selectNodeContents(t)}static _readClientRects(e,t,i,s,n){const r=this._createRange();try{return r.setStart(e,t),r.setEnd(i,s),r.getClientRects()}catch(o){return null}finally{this._detachRange(r,n)}}static _mergeAdjacentRanges(e){if(1===e.length)return e;e.sort(o.IO.compare);const t=[];let i=0,s=e[0];for(let n=1,r=e.length;n<r;n++){const r=e[n];s.left+s.width+.9>=r.left?s.width=Math.max(s.width,r.left+r.width-s.left):(t[i++]=s,s=r)}return t[i++]=s,t}static _createHorizontalRangesFromClientRects(e,t,i){if(!e||0===e.length)return null;const s=[];for(let n=0,r=e.length;n<r;n++){const r=e[n];s[n]=new o.IO(Math.max(0,(r.left-t)/i),r.width/i)}return this._mergeAdjacentRanges(s)}static readHorizontalRanges(e,t,i,s,n,r){const o=e.children.length-1;if(0>o)return null;if((t=Math.min(o,Math.max(0,t)))===(s=Math.min(o,Math.max(0,s)))&&i===n&&0===i&&!e.children[t].firstChild){const i=e.children[t].getClientRects();return r.markDidDomLayout(),this._createHorizontalRangesFromClientRects(i,r.clientRectDeltaLeft,r.clientRectScale)}t!==s&&s>0&&0===n&&(s--,n=1073741824);let a=e.children[t].firstChild,c=e.children[s].firstChild;if(a&&c||(!a&&0===i&&t>0&&(a=e.children[t-1].firstChild,i=1073741824),!c&&0===n&&s>0&&(c=e.children[s-1].firstChild,n=1073741824)),!a||!c)return null;i=Math.min(a.textContent.length,Math.max(0,i)),n=Math.min(c.textContent.length,Math.max(0,n));const l=this._readClientRects(a,i,c,n,r.endNode);return r.markDidDomLayout(),this._createHorizontalRangesFromClientRects(l,r.clientRectDeltaLeft,r.clientRectScale)}}var c=i(25521),l=i(35600),h=i(86723),d=i(87908);const u=!!r.ib||!(r.j9||s.gm||s.nr);let g=!0;class p{constructor(e,t){this.themeType=t;const i=e.options,s=i.get(50),n=i.get(38);this.renderWhitespace="off"===n?i.get(100):"none",this.renderControlCharacters=i.get(95),this.spaceWidth=s.spaceWidth,this.middotWidth=s.middotWidth,this.wsmiddotWidth=s.wsmiddotWidth,this.useMonospaceOptimizations=s.isMonospace&&!i.get(33),this.canUseHalfwidthRightwardsArrow=s.canUseHalfwidthRightwardsArrow,this.lineHeight=i.get(67),this.stopRenderingLineAfter=i.get(118),this.fontLigatures=i.get(51)}equals(e){return this.themeType===e.themeType&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineHeight===e.lineHeight&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.fontLigatures===e.fontLigatures}}class m{static{this.CLASS_NAME="view-line"}constructor(e){this._options=e,this._isMaybeInvalid=!0,this._renderedViewLine=null}getDomNode(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null}setDomNode(e){if(!this._renderedViewLine)throw new Error("I have no rendered view line to set the dom node to...");this._renderedViewLine.domNode=(0,n.Z)(e)}onContentChanged(){this._isMaybeInvalid=!0}onTokensChanged(){this._isMaybeInvalid=!0}onDecorationsChanged(){this._isMaybeInvalid=!0}onOptionsChanged(e){this._isMaybeInvalid=!0,this._options=e}onSelectionChanged(){return!(!(0,h.Bb)(this._options.themeType)&&"selection"!==this._options.renderWhitespace)&&(this._isMaybeInvalid=!0,!0)}renderLine(e,t,i,s,n){if(!1===this._isMaybeInvalid)return!1;this._isMaybeInvalid=!1;const r=s.getViewLineRenderingData(e),o=this._options,a=c.d.filter(r.inlineDecorations,e,r.minColumn,r.maxColumn);let p=null;if((0,h.Bb)(o.themeType)||"selection"===this._options.renderWhitespace){const t=s.selections;for(const i of t){if(i.endLineNumber<e||i.startLineNumber>e)continue;const t=i.startLineNumber===e?i.startColumn:r.minColumn,s=i.endLineNumber===e?i.endColumn:r.maxColumn;t<s&&((0,h.Bb)(o.themeType)&&a.push(new c.d(t,s,"inline-selected-text",0)),"selection"===this._options.renderWhitespace&&(p||(p=[]),p.push(new l.MT(t-1,s-1))))}}const _=new l.zL(o.useMonospaceOptimizations,o.canUseHalfwidthRightwardsArrow,r.content,r.continuesWithWrappedLine,r.isBasicASCII,r.containsRTL,r.minColumn-1,r.tokens,a,r.tabSize,r.startVisibleColumn,o.spaceWidth,o.middotWidth,o.wsmiddotWidth,o.stopRenderingLineAfter,o.renderWhitespace,o.renderControlCharacters,o.fontLigatures!==d.Bc.OFF,p);if(this._renderedViewLine&&this._renderedViewLine.input.equals(_))return!1;n.appendString('<div style="top:'),n.appendString(String(t)),n.appendString("px;height:"),n.appendString(String(i)),n.appendString('px;" class="'),n.appendString(m.CLASS_NAME),n.appendString('">');const v=(0,l.UW)(_,n);n.appendString("</div>");let E=null;return g&&u&&r.isBasicASCII&&o.useMonospaceOptimizations&&0===v.containsForeignElements&&(E=new f(this._renderedViewLine?this._renderedViewLine.domNode:null,_,v.characterMapping)),E||(E=C(this._renderedViewLine?this._renderedViewLine.domNode:null,_,v.characterMapping,v.containsRTL,v.containsForeignElements)),this._renderedViewLine=E,!0}layoutLine(e,t,i){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(t),this._renderedViewLine.domNode.setHeight(i))}getWidth(e){return this._renderedViewLine?this._renderedViewLine.getWidth(e):0}getWidthIsFast(){return!this._renderedViewLine||this._renderedViewLine.getWidthIsFast()}needsMonospaceFontCheck(){return!!this._renderedViewLine&&this._renderedViewLine instanceof f}monospaceAssumptionsAreValid(){return this._renderedViewLine&&this._renderedViewLine instanceof f?this._renderedViewLine.monospaceAssumptionsAreValid():g}onMonospaceAssumptionsInvalidated(){this._renderedViewLine&&this._renderedViewLine instanceof f&&(this._renderedViewLine=this._renderedViewLine.toSlowRenderedLine())}getVisibleRangesForRange(e,t,i,s){if(!this._renderedViewLine)return null;t=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,t)),i=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,i));const n=this._renderedViewLine.input.stopRenderingLineAfter;if(-1!==n&&t>n+1&&i>n+1)return new o.pj(!0,[new o.IO(this.getWidth(s),0)]);-1!==n&&t>n+1&&(t=n+1),-1!==n&&i>n+1&&(i=n+1);const r=this._renderedViewLine.getVisibleRangesForRange(e,t,i,s);return r&&r.length>0?new o.pj(!1,r):null}getColumnOfNodeOffset(e,t){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(e,t):1}}class f{constructor(e,t,i){this._cachedWidth=-1,this.domNode=e,this.input=t;const s=Math.floor(t.lineContent.length/300);if(s>0){this._keyColumnPixelOffsetCache=new Float32Array(s);for(let e=0;e<s;e++)this._keyColumnPixelOffsetCache[e]=-1}else this._keyColumnPixelOffsetCache=null;this._characterMapping=i,this._charWidth=t.spaceWidth}getWidth(e){if(!this.domNode||this.input.lineContent.length<300){const e=this._characterMapping.getHorizontalOffset(this._characterMapping.length);return Math.round(this._charWidth*e)}return-1===this._cachedWidth&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth,e?.markDidDomLayout()),this._cachedWidth}getWidthIsFast(){return this.input.lineContent.length<300||-1!==this._cachedWidth}monospaceAssumptionsAreValid(){if(!this.domNode)return g;if(this.input.lineContent.length<300){const e=this.getWidth(null),t=this.domNode.domNode.firstChild.offsetWidth;Math.abs(e-t)>=2&&(console.warn("monospace assumptions have been violated, therefore disabling monospace optimizations!"),g=!1)}return g}toSlowRenderedLine(){return C(this.domNode,this.input,this._characterMapping,!1,0)}getVisibleRangesForRange(e,t,i,s){const n=this._getColumnPixelOffset(e,t,s),r=this._getColumnPixelOffset(e,i,s);return[new o.IO(n,r-n)]}_getColumnPixelOffset(e,t,i){if(t<=300){const e=this._characterMapping.getHorizontalOffset(t);return this._charWidth*e}const s=Math.floor((t-1)/300)-1,n=300*(s+1)+1;let r=-1;if(this._keyColumnPixelOffsetCache&&(r=this._keyColumnPixelOffsetCache[s],-1===r&&(r=this._actualReadPixelOffset(e,n,i),this._keyColumnPixelOffsetCache[s]=r)),-1===r){const e=this._characterMapping.getHorizontalOffset(t);return this._charWidth*e}const o=this._characterMapping.getHorizontalOffset(n),a=this._characterMapping.getHorizontalOffset(t);return r+this._charWidth*(a-o)}_getReadingTarget(e){return e.domNode.firstChild}_actualReadPixelOffset(e,t,i){if(!this.domNode)return-1;const s=this._characterMapping.getDomPosition(t),n=a.readHorizontalRanges(this._getReadingTarget(this.domNode),s.partIndex,s.charIndex,s.partIndex,s.charIndex,i);return n&&0!==n.length?n[0].left:-1}getColumnOfNodeOffset(e,t){return S(this._characterMapping,e,t)}}class _{constructor(e,t,i,s,n){if(this.domNode=e,this.input=t,this._characterMapping=i,this._isWhitespaceOnly=/^\s*$/.test(t.lineContent),this._containsForeignElements=n,this._cachedWidth=-1,this._pixelOffsetCache=null,!s||0===this._characterMapping.length){this._pixelOffsetCache=new Float32Array(Math.max(2,this._characterMapping.length+1));for(let e=0,t=this._characterMapping.length;e<=t;e++)this._pixelOffsetCache[e]=-1}}_getReadingTarget(e){return e.domNode.firstChild}getWidth(e){return this.domNode?(-1===this._cachedWidth&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth,e?.markDidDomLayout()),this._cachedWidth):0}getWidthIsFast(){return-1!==this._cachedWidth}getVisibleRangesForRange(e,t,i,s){if(!this.domNode)return null;if(null!==this._pixelOffsetCache){const n=this._readPixelOffset(this.domNode,e,t,s);if(-1===n)return null;const r=this._readPixelOffset(this.domNode,e,i,s);return-1===r?null:[new o.IO(n,r-n)]}return this._readVisibleRangesForRange(this.domNode,e,t,i,s)}_readVisibleRangesForRange(e,t,i,s,n){if(i===s){const s=this._readPixelOffset(e,t,i,n);return-1===s?null:[new o.IO(s,0)]}return this._readRawVisibleRangesForRange(e,i,s,n)}_readPixelOffset(e,t,i,s){if(0===this._characterMapping.length){if(0===this._containsForeignElements)return 0;if(2===this._containsForeignElements)return 0;if(1===this._containsForeignElements)return this.getWidth(s);const t=this._getReadingTarget(e);return t.firstChild?(s.markDidDomLayout(),t.firstChild.offsetWidth):0}if(null!==this._pixelOffsetCache){const n=this._pixelOffsetCache[i];if(-1!==n)return n;const r=this._actualReadPixelOffset(e,t,i,s);return this._pixelOffsetCache[i]=r,r}return this._actualReadPixelOffset(e,t,i,s)}_actualReadPixelOffset(e,t,i,s){if(0===this._characterMapping.length){const t=a.readHorizontalRanges(this._getReadingTarget(e),0,0,0,0,s);return t&&0!==t.length?t[0].left:-1}if(i===this._characterMapping.length&&this._isWhitespaceOnly&&0===this._containsForeignElements)return this.getWidth(s);const n=this._characterMapping.getDomPosition(i),r=a.readHorizontalRanges(this._getReadingTarget(e),n.partIndex,n.charIndex,n.partIndex,n.charIndex,s);if(!r||0===r.length)return-1;const o=r[0].left;if(this.input.isBasicASCII){const e=this._characterMapping.getHorizontalOffset(i),t=Math.round(this.input.spaceWidth*e);if(Math.abs(t-o)<=1)return t}return o}_readRawVisibleRangesForRange(e,t,i,s){if(1===t&&i===this._characterMapping.length)return[new o.IO(0,this.getWidth(s))];const n=this._characterMapping.getDomPosition(t),r=this._characterMapping.getDomPosition(i);return a.readHorizontalRanges(this._getReadingTarget(e),n.partIndex,n.charIndex,r.partIndex,r.charIndex,s)}getColumnOfNodeOffset(e,t){return S(this._characterMapping,e,t)}}class v extends _{_readVisibleRangesForRange(e,t,i,s,n){const r=super._readVisibleRangesForRange(e,t,i,s,n);if(!r||0===r.length||i===s||1===i&&s===this._characterMapping.length)return r;if(!this.input.containsRTL){const i=this._readPixelOffset(e,t,s,n);if(-1!==i){const e=r[r.length-1];e.left<i&&(e.width=i-e.left)}}return r}}const C=s.Tc?E:b;function E(e,t,i,s,n){return new v(e,t,i,s,n)}function b(e,t,i,s,n){return new _(e,t,i,s,n)}function S(e,t,i){const s=t.textContent.length;let n=-1;for(;t;)t=t.previousSibling,n++;return e.getColumn(new l.wZ(n,i),s)}},52555:(e,t,i)=>{"use strict";i.d(t,{x:()=>Xn});var s=i(37550),n=i(31450),r=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},o=function(e,t){return function(i,s){t(i,s,e)}};let a=class{static{this.ID="editor.contrib.markerDecorations"}constructor(e,t){}dispose(){}};a=r([o(1,s.IMarkerDecorationsService)],a),(0,n.HW)(a.ID,a,0);var c=i(8597),l=i(64383),h=i(41234),d=i(5662),u=i(36456),g=i(73157),p=i(60413),m=i(25890),f=i(10146),_=i(98067),v=i(4983),C=i(28433);class E{static{this.items=[]}constructor(e,t){this.key=e,this.migrate=t}apply(e){const t=E._read(e,this.key);this.migrate(t,(t=>E._read(e,t)),((t,i)=>E._write(e,t,i)))}static _read(e,t){if("undefined"===typeof e)return;const i=t.indexOf(".");if(i>=0){const s=t.substring(0,i);return this._read(e[s],t.substring(i+1))}return e[t]}static _write(e,t,i){const s=t.indexOf(".");if(s>=0){const n=t.substring(0,s);return e[n]=e[n]||{},void this._write(e[n],t.substring(s+1),i)}e[t]=i}}function b(e,t){E.items.push(new E(e,t))}function S(e,t){b(e,((i,s,n)=>{if("undefined"!==typeof i)for(const[r,o]of t)if(i===r)return void n(e,o)}))}S("wordWrap",[[!0,"on"],[!1,"off"]]),S("lineNumbers",[[!0,"on"],[!1,"off"]]),S("cursorBlinking",[["visible","solid"]]),S("renderWhitespace",[[!0,"boundary"],[!1,"none"]]),S("renderLineHighlight",[[!0,"line"],[!1,"none"]]),S("acceptSuggestionOnEnter",[[!0,"on"],[!1,"off"]]),S("tabCompletion",[[!1,"off"],[!0,"onlySnippets"]]),S("hover",[[!0,{enabled:!0}],[!1,{enabled:!1}]]),S("parameterHints",[[!0,{enabled:!0}],[!1,{enabled:!1}]]),S("autoIndent",[[!1,"advanced"],[!0,"full"]]),S("matchBrackets",[[!0,"always"],[!1,"never"]]),S("renderFinalNewline",[[!0,"on"],[!1,"off"]]),S("cursorSmoothCaretAnimation",[[!0,"on"],[!1,"off"]]),S("occurrencesHighlight",[[!0,"singleFile"],[!1,"off"]]),S("wordBasedSuggestions",[[!0,"matchingDocuments"],[!1,"off"]]),b("autoClosingBrackets",((e,t,i)=>{!1===e&&(i("autoClosingBrackets","never"),"undefined"===typeof t("autoClosingQuotes")&&i("autoClosingQuotes","never"),"undefined"===typeof t("autoSurround")&&i("autoSurround","never"))})),b("renderIndentGuides",((e,t,i)=>{"undefined"!==typeof e&&(i("renderIndentGuides",void 0),"undefined"===typeof t("guides.indentation")&&i("guides.indentation",!!e))})),b("highlightActiveIndentGuide",((e,t,i)=>{"undefined"!==typeof e&&(i("highlightActiveIndentGuide",void 0),"undefined"===typeof t("guides.highlightActiveIndentation")&&i("guides.highlightActiveIndentation",!!e))}));const y={method:"showMethods",function:"showFunctions",constructor:"showConstructors",deprecated:"showDeprecated",field:"showFields",variable:"showVariables",class:"showClasses",struct:"showStructs",interface:"showInterfaces",module:"showModules",property:"showProperties",event:"showEvents",operator:"showOperators",unit:"showUnits",value:"showValues",constant:"showConstants",enum:"showEnums",enumMember:"showEnumMembers",keyword:"showKeywords",text:"showWords",color:"showColors",file:"showFiles",reference:"showReferences",folder:"showFolders",typeParameter:"showTypeParameters",snippet:"showSnippets"};b("suggest.filteredTypes",((e,t,i)=>{if(e&&"object"===typeof e){for(const s of Object.entries(y)){!1===e[s[0]]&&"undefined"===typeof t(`suggest.${s[1]}`)&&i(`suggest.${s[1]}`,!1)}i("suggest.filteredTypes",void 0)}})),b("quickSuggestions",((e,t,i)=>{if("boolean"===typeof e){const t=e?"on":"off";i("quickSuggestions",{comments:t,strings:t,other:t})}})),b("experimental.stickyScroll.enabled",((e,t,i)=>{"boolean"===typeof e&&(i("experimental.stickyScroll.enabled",void 0),"undefined"===typeof t("stickyScroll.enabled")&&i("stickyScroll.enabled",e))})),b("experimental.stickyScroll.maxLineCount",((e,t,i)=>{"number"===typeof e&&(i("experimental.stickyScroll.maxLineCount",void 0),"undefined"===typeof t("stickyScroll.maxLineCount")&&i("stickyScroll.maxLineCount",e))})),b("codeActionsOnSave",((e,t,i)=>{if(e&&"object"===typeof e){let t=!1;const s={};for(const i of Object.entries(e))"boolean"===typeof i[1]?(t=!0,s[i[0]]=i[1]?"explicit":"never"):s[i[0]]=i[1];t&&i("codeActionsOnSave",s)}})),b("codeActionWidget.includeNearbyQuickfixes",((e,t,i)=>{"boolean"===typeof e&&(i("codeActionWidget.includeNearbyQuickfixes",void 0),"undefined"===typeof t("codeActionWidget.includeNearbyQuickFixes")&&i("codeActionWidget.includeNearbyQuickFixes",e))})),b("lightbulb.enabled",((e,t,i)=>{"boolean"===typeof e&&i("lightbulb.enabled",e?void 0:"off")}));var w=i(77163),R=i(87908),L=i(79027),T=i(74196),x=i(253),k=i(94106),A=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},N=function(e,t){return function(i,s){t(i,s,e)}};let I=class extends d.jG{constructor(e,t,i,s,n){super(),this._accessibilityService=n,this._onDidChange=this._register(new h.vl),this.onDidChange=this._onDidChange.event,this._onDidChangeFast=this._register(new h.vl),this.onDidChangeFast=this._onDidChangeFast.event,this._isDominatedByLongLines=!1,this._viewLineCount=1,this._lineNumbersDigitCount=1,this._reservedHeight=0,this._glyphMarginDecorationLaneCount=1,this._computeOptionsMemory=new R.n0,this.isSimpleWidget=e,this.contextMenuId=t,this._containerObserver=this._register(new v.u(s,i.dimension)),this._targetWindowId=(0,c.zk)(s).vscodeWindowId,this._rawOptions=F(i),this._validatedOptions=P.validateOptions(this._rawOptions),this.options=this._computeOptions(),this.options.get(13)&&this._containerObserver.startObserving(),this._register(L.D.onDidChangeZoomLevel((()=>this._recomputeOptions()))),this._register(w.M.onDidChangeTabFocus((()=>this._recomputeOptions()))),this._register(this._containerObserver.onDidChange((()=>this._recomputeOptions()))),this._register(C.T.onDidChange((()=>this._recomputeOptions()))),this._register(k.c.getInstance((0,c.zk)(s)).onDidChange((()=>this._recomputeOptions()))),this._register(this._accessibilityService.onDidChangeScreenReaderOptimized((()=>this._recomputeOptions())))}_recomputeOptions(){const e=this._computeOptions(),t=P.checkEquals(this.options,e);null!==t&&(this.options=e,this._onDidChangeFast.fire(t),this._onDidChange.fire(t))}_computeOptions(){const e=this._readEnvConfiguration(),t=T._8.createFromValidatedSettings(this._validatedOptions,e.pixelRatio,this.isSimpleWidget),i=this._readFontInfo(t),s={memory:this._computeOptionsMemory,outerWidth:e.outerWidth,outerHeight:e.outerHeight-this._reservedHeight,fontInfo:i,extraEditorClassName:e.extraEditorClassName,isDominatedByLongLines:this._isDominatedByLongLines,viewLineCount:this._viewLineCount,lineNumbersDigitCount:this._lineNumbersDigitCount,emptySelectionClipboard:e.emptySelectionClipboard,pixelRatio:e.pixelRatio,tabFocusMode:w.M.getTabFocusMode(),accessibilitySupport:e.accessibilitySupport,glyphMarginDecorationLaneCount:this._glyphMarginDecorationLaneCount};return P.computeOptions(this._validatedOptions,s)}_readEnvConfiguration(){return{extraEditorClassName:O(),outerWidth:this._containerObserver.getWidth(),outerHeight:this._containerObserver.getHeight(),emptySelectionClipboard:p.Tc||p.gm,pixelRatio:k.c.getInstance((0,c.ZF)(this._targetWindowId,!0).window).value,accessibilitySupport:this._accessibilityService.isScreenReaderOptimized()?2:this._accessibilityService.getAccessibilitySupport()}}_readFontInfo(e){return C.T.readFontInfo((0,c.ZF)(this._targetWindowId,!0).window,e)}getRawOptions(){return this._rawOptions}updateOptions(e){const t=F(e);P.applyUpdate(this._rawOptions,t)&&(this._validatedOptions=P.validateOptions(this._rawOptions),this._recomputeOptions())}observeContainer(e){this._containerObserver.observe(e)}setIsDominatedByLongLines(e){this._isDominatedByLongLines!==e&&(this._isDominatedByLongLines=e,this._recomputeOptions())}setModelLineCount(e){const t=function(e){let t=0;for(;e;)e=Math.floor(e/10),t++;return t||1}(e);this._lineNumbersDigitCount!==t&&(this._lineNumbersDigitCount=t,this._recomputeOptions())}setViewLineCount(e){this._viewLineCount!==e&&(this._viewLineCount=e,this._recomputeOptions())}setReservedHeight(e){this._reservedHeight!==e&&(this._reservedHeight=e,this._recomputeOptions())}setGlyphMarginDecorationLaneCount(e){this._glyphMarginDecorationLaneCount!==e&&(this._glyphMarginDecorationLaneCount=e,this._recomputeOptions())}};function O(){let e="";return p.nr||p.c8||(e+="no-user-select "),p.nr&&(e+="no-minimap-shadow ",e+="enable-user-select "),_.zx&&(e+="mac "),e}I=A([N(4,x.j)],I);class D{constructor(){this._values=[]}_read(e){return this._values[e]}get(e){return this._values[e]}_write(e,t){this._values[e]=t}}class M{constructor(){this._values=[]}_read(e){if(e>=this._values.length)throw new Error("Cannot read uninitialized value");return this._values[e]}get(e){return this._read(e)}_write(e,t){this._values[e]=t}}class P{static validateOptions(e){const t=new D;for(const i of R.BE){const s="_never_"===i.name?void 0:e[i.name];t._write(i.id,i.validate(s))}return t}static computeOptions(e,t){const i=new M;for(const s of R.BE)i._write(s.id,s.compute(t,i,e._read(s.id)));return i}static _deepEquals(e,t){if("object"!==typeof e||"object"!==typeof t||!e||!t)return e===t;if(Array.isArray(e)||Array.isArray(t))return!(!Array.isArray(e)||!Array.isArray(t))&&m.aI(e,t);if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const i in e)if(!P._deepEquals(e[i],t[i]))return!1;return!0}static checkEquals(e,t){const i=[];let s=!1;for(const n of R.BE){const r=!P._deepEquals(e._read(n.id),t._read(n.id));i[n.id]=r,r&&(s=!0)}return s?new R.lw(i):null}static applyUpdate(e,t){let i=!1;for(const s of R.BE)if(t.hasOwnProperty(s.name)){const n=s.applyUpdate(e[s.name],t[s.name]);e[s.name]=n.newValue,i=i||n.didChange}return i}}function F(e){const t=f.Go(e);return function(e){E.items.forEach((t=>t.apply(e)))}(t),t}var U=i(80301),H=i(55275),B=i(5239),W=i(37734);class V extends d.jG{constructor(){super(),this._shouldRender=!0}shouldRender(){return this._shouldRender}forceShouldRender(){this._shouldRender=!0}setShouldRender(){this._shouldRender=!0}onDidRender(){this._shouldRender=!1}onCompositionStart(e){return!1}onCompositionEnd(e){return!1}onConfigurationChanged(e){return!1}onCursorStateChanged(e){return!1}onDecorationsChanged(e){return!1}onFlushed(e){return!1}onFocusChanged(e){return!1}onLanguageConfigurationChanged(e){return!1}onLineMappingChanged(e){return!1}onLinesChanged(e){return!1}onLinesDeleted(e){return!1}onLinesInserted(e){return!1}onRevealRangeRequest(e){return!1}onScrollChanged(e){return!1}onThemeChanged(e){return!1}onTokensChanged(e){return!1}onTokensColorsChanged(e){return!1}onZonesChanged(e){return!1}handleEvents(e){let t=!1;for(let i=0,s=e.length;i<s;i++){const s=e[i];switch(s.type){case 0:this.onCompositionStart(s)&&(t=!0);break;case 1:this.onCompositionEnd(s)&&(t=!0);break;case 2:this.onConfigurationChanged(s)&&(t=!0);break;case 3:this.onCursorStateChanged(s)&&(t=!0);break;case 4:this.onDecorationsChanged(s)&&(t=!0);break;case 5:this.onFlushed(s)&&(t=!0);break;case 6:this.onFocusChanged(s)&&(t=!0);break;case 7:this.onLanguageConfigurationChanged(s)&&(t=!0);break;case 8:this.onLineMappingChanged(s)&&(t=!0);break;case 9:this.onLinesChanged(s)&&(t=!0);break;case 10:this.onLinesDeleted(s)&&(t=!0);break;case 11:this.onLinesInserted(s)&&(t=!0);break;case 12:this.onRevealRangeRequest(s)&&(t=!0);break;case 13:this.onScrollChanged(s)&&(t=!0);break;case 15:this.onTokensChanged(s)&&(t=!0);break;case 14:this.onThemeChanged(s)&&(t=!0);break;case 16:this.onTokensColorsChanged(s)&&(t=!0);break;case 17:this.onZonesChanged(s)&&(t=!0);break;default:console.info("View received unknown event: "),console.info(s)}}t&&(this._shouldRender=!0)}}class z extends V{constructor(e){super(),this._context=e,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}}class G{static write(e,t){e.setAttribute("data-mprt",String(t))}static read(e){const t=e.getAttribute("data-mprt");return null===t?0:parseInt(t,10)}static collect(e,t){const i=[];let s=0;for(;e&&e!==e.ownerDocument.body&&e!==t;)e.nodeType===e.ELEMENT_NODE&&(i[s++]=this.read(e)),e=e.parentElement;const n=new Uint8Array(s);for(let r=0;r<s;r++)n[r]=i[s-r-1];return n}}var j,K=i(92473),Y=i(83069),q=i(36677),$=i(1245),Q=i(35817),X=i(91090);class Z{constructor(e=null){this.hitTarget=e,this.type=0}}class J{get hitTarget(){return this.spanNode}constructor(e,t,i){this.position=e,this.spanNode=t,this.injectedText=i,this.type=1}}!function(e){e.createFromDOMInfo=function(e,t,i){const s=e.getPositionFromDOMInfo(t,i);return s?new J(s,t,null):new Z(t)}}(j||(j={}));class ee{constructor(e,t){this.lastViewCursorsRenderData=e,this.lastTextareaPosition=t}}class te{static _deduceRage(e,t=null){return!t&&e?new q.Q(e.lineNumber,e.column,e.lineNumber,e.column):t??null}static createUnknown(e,t,i){return{type:0,element:e,mouseColumn:t,position:i,range:this._deduceRage(i)}}static createTextarea(e,t){return{type:1,element:e,mouseColumn:t,position:null,range:null}}static createMargin(e,t,i,s,n,r){return{type:e,element:t,mouseColumn:i,position:s,range:n,detail:r}}static createViewZone(e,t,i,s,n){return{type:e,element:t,mouseColumn:i,position:s,range:this._deduceRage(s),detail:n}}static createContentText(e,t,i,s,n){return{type:6,element:e,mouseColumn:t,position:i,range:this._deduceRage(i,s),detail:n}}static createContentEmpty(e,t,i,s){return{type:7,element:e,mouseColumn:t,position:i,range:this._deduceRage(i),detail:s}}static createContentWidget(e,t,i){return{type:9,element:e,mouseColumn:t,position:null,range:null,detail:i}}static createScrollbar(e,t,i){return{type:11,element:e,mouseColumn:t,position:i,range:this._deduceRage(i)}}static createOverlayWidget(e,t,i){return{type:12,element:e,mouseColumn:t,position:null,range:null,detail:i}}static createOutsideEditor(e,t,i,s){return{type:13,element:null,mouseColumn:e,position:t,range:this._deduceRage(t),outsidePosition:i,outsideDistance:s}}static _typeToString(e){return 1===e?"TEXTAREA":2===e?"GUTTER_GLYPH_MARGIN":3===e?"GUTTER_LINE_NUMBERS":4===e?"GUTTER_LINE_DECORATIONS":5===e?"GUTTER_VIEW_ZONE":6===e?"CONTENT_TEXT":7===e?"CONTENT_EMPTY":8===e?"CONTENT_VIEW_ZONE":9===e?"CONTENT_WIDGET":10===e?"OVERVIEW_RULER":11===e?"SCROLLBAR":12===e?"OVERLAY_WIDGET":"UNKNOWN"}static toString(e){return this._typeToString(e.type)+": "+e.position+" - "+e.range+" - "+JSON.stringify(e.detail)}}class ie{static isTextArea(e){return 2===e.length&&3===e[0]&&7===e[1]}static isChildOfViewLines(e){return e.length>=4&&3===e[0]&&8===e[3]}static isStrictChildOfViewLines(e){return e.length>4&&3===e[0]&&8===e[3]}static isChildOfScrollableElement(e){return e.length>=2&&3===e[0]&&6===e[1]}static isChildOfMinimap(e){return e.length>=2&&3===e[0]&&9===e[1]}static isChildOfContentWidgets(e){return e.length>=4&&3===e[0]&&1===e[3]}static isChildOfOverflowGuard(e){return e.length>=1&&3===e[0]}static isChildOfOverflowingContentWidgets(e){return e.length>=1&&2===e[0]}static isChildOfOverlayWidgets(e){return e.length>=2&&3===e[0]&&4===e[1]}static isChildOfOverflowingOverlayWidgets(e){return e.length>=1&&5===e[0]}}class se{constructor(e,t,i){this.viewModel=e.viewModel;const s=e.configuration.options;this.layoutInfo=s.get(146),this.viewDomNode=t.viewDomNode,this.lineHeight=s.get(67),this.stickyTabStops=s.get(117),this.typicalHalfwidthCharacterWidth=s.get(50).typicalHalfwidthCharacterWidth,this.lastRenderData=i,this._context=e,this._viewHelper=t}getZoneAtCoord(e){return se.getZoneAtCoord(this._context,e)}static getZoneAtCoord(e,t){const i=e.viewLayout.getWhitespaceAtVerticalOffset(t);if(i){const s=i.verticalOffset+i.height/2,n=e.viewModel.getLineCount();let r,o=null,a=null;return i.afterLineNumber!==n&&(a=new Y.y(i.afterLineNumber+1,1)),i.afterLineNumber>0&&(o=new Y.y(i.afterLineNumber,e.viewModel.getLineMaxColumn(i.afterLineNumber))),r=null===a?o:null===o?a:t<s?o:a,{viewZoneId:i.id,afterLineNumber:i.afterLineNumber,positionBefore:o,positionAfter:a,position:r}}return null}getFullLineRangeAtCoord(e){if(this._context.viewLayout.isAfterLines(e)){const e=this._context.viewModel.getLineCount(),t=this._context.viewModel.getLineMaxColumn(e);return{range:new q.Q(e,t,e,t),isAfterLines:!0}}const t=this._context.viewLayout.getLineNumberAtVerticalOffset(e),i=this._context.viewModel.getLineMaxColumn(t);return{range:new q.Q(t,1,t,i),isAfterLines:!1}}getLineNumberAtVerticalOffset(e){return this._context.viewLayout.getLineNumberAtVerticalOffset(e)}isAfterLines(e){return this._context.viewLayout.isAfterLines(e)}isInTopPadding(e){return this._context.viewLayout.isInTopPadding(e)}isInBottomPadding(e){return this._context.viewLayout.isInBottomPadding(e)}getVerticalOffsetForLineNumber(e){return this._context.viewLayout.getVerticalOffsetForLineNumber(e)}findAttribute(e,t){return se._findAttribute(e,t,this._viewHelper.viewDomNode)}static _findAttribute(e,t,i){for(;e&&e!==e.ownerDocument.body;){if(e.hasAttribute&&e.hasAttribute(t))return e.getAttribute(t);if(e===i)return null;e=e.parentNode}return null}getLineWidth(e){return this._viewHelper.getLineWidth(e)}visibleRangeForPosition(e,t){return this._viewHelper.visibleRangeForPosition(e,t)}getPositionFromDOMInfo(e,t){return this._viewHelper.getPositionFromDOMInfo(e,t)}getCurrentScrollTop(){return this._context.viewLayout.getCurrentScrollTop()}getCurrentScrollLeft(){return this._context.viewLayout.getCurrentScrollLeft()}}class ne{constructor(e,t,i,s){this.editorPos=t,this.pos=i,this.relativePos=s,this.mouseVerticalOffset=Math.max(0,e.getCurrentScrollTop()+this.relativePos.y),this.mouseContentHorizontalOffset=e.getCurrentScrollLeft()+this.relativePos.x-e.layoutInfo.contentLeft,this.isInMarginArea=this.relativePos.x<e.layoutInfo.contentLeft&&this.relativePos.x>=e.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,ce._getMouseColumn(this.mouseContentHorizontalOffset,e.typicalHalfwidthCharacterWidth))}}class re extends ne{get target(){return this._useHitTestTarget?this.hitTestResult.value.hitTarget:this._eventTarget}get targetPath(){return this._targetPathCacheElement!==this.target&&(this._targetPathCacheElement=this.target,this._targetPathCacheValue=G.collect(this.target,this._ctx.viewDomNode)),this._targetPathCacheValue}constructor(e,t,i,s,n){super(e,t,i,s),this.hitTestResult=new X.d((()=>ce.doHitTest(this._ctx,this))),this._targetPathCacheElement=null,this._targetPathCacheValue=new Uint8Array(0),this._ctx=e,this._eventTarget=n;const r=Boolean(this._eventTarget);this._useHitTestTarget=!r}toString(){return`pos(${this.pos.x},${this.pos.y}), editorPos(${this.editorPos.x},${this.editorPos.y}), relativePos(${this.relativePos.x},${this.relativePos.y}), mouseVerticalOffset: ${this.mouseVerticalOffset}, mouseContentHorizontalOffset: ${this.mouseContentHorizontalOffset}\n\ttarget: ${this.target?this.target.outerHTML:null}`}get wouldBenefitFromHitTestTargetSwitch(){return!this._useHitTestTarget&&null!==this.hitTestResult.value.hitTarget&&this.target!==this.hitTestResult.value.hitTarget}switchToHitTestTarget(){this._useHitTestTarget=!0}_getMouseColumn(e=null){return e&&e.column<this._ctx.viewModel.getLineMaxColumn(e.lineNumber)?$.A.visibleColumnFromColumn(this._ctx.viewModel.getLineContent(e.lineNumber),e.column,this._ctx.viewModel.model.getOptions().tabSize)+1:this.mouseColumn}fulfillUnknown(e=null){return te.createUnknown(this.target,this._getMouseColumn(e),e)}fulfillTextarea(){return te.createTextarea(this.target,this._getMouseColumn())}fulfillMargin(e,t,i,s){return te.createMargin(e,this.target,this._getMouseColumn(t),t,i,s)}fulfillViewZone(e,t,i){return te.createViewZone(e,this.target,this._getMouseColumn(t),t,i)}fulfillContentText(e,t,i){return te.createContentText(this.target,this._getMouseColumn(e),e,t,i)}fulfillContentEmpty(e,t){return te.createContentEmpty(this.target,this._getMouseColumn(e),e,t)}fulfillContentWidget(e){return te.createContentWidget(this.target,this._getMouseColumn(),e)}fulfillScrollbar(e){return te.createScrollbar(this.target,this._getMouseColumn(e),e)}fulfillOverlayWidget(e){return te.createOverlayWidget(this.target,this._getMouseColumn(),e)}}const oe={isAfterLines:!0};function ae(e){return{isAfterLines:!1,horizontalDistanceToText:e}}class ce{constructor(e,t){this._context=e,this._viewHelper=t}mouseTargetIsWidget(e){const t=e.target,i=G.collect(t,this._viewHelper.viewDomNode);return!(!ie.isChildOfContentWidgets(i)&&!ie.isChildOfOverflowingContentWidgets(i))||!(!ie.isChildOfOverlayWidgets(i)&&!ie.isChildOfOverflowingOverlayWidgets(i))}createMouseTarget(e,t,i,s,n){const r=new se(this._context,this._viewHelper,e),o=new re(r,t,i,s,n);try{const e=ce._createMouseTarget(r,o);if(6===e.type&&r.stickyTabStops&&null!==e.position){const t=ce._snapToSoftTabBoundary(e.position,r.viewModel),i=q.Q.fromPositions(t,t).plusRange(e.range);return o.fulfillContentText(t,i,e.detail)}return e}catch(a){return o.fulfillUnknown()}}static _createMouseTarget(e,t){if(null===t.target)return t.fulfillUnknown();const i=t;let s=null;return ie.isChildOfOverflowGuard(t.targetPath)||ie.isChildOfOverflowingContentWidgets(t.targetPath)||ie.isChildOfOverflowingOverlayWidgets(t.targetPath)||(s=s||t.fulfillUnknown()),s=s||ce._hitTestContentWidget(e,i),s=s||ce._hitTestOverlayWidget(e,i),s=s||ce._hitTestMinimap(e,i),s=s||ce._hitTestScrollbarSlider(e,i),s=s||ce._hitTestViewZone(e,i),s=s||ce._hitTestMargin(e,i),s=s||ce._hitTestViewCursor(e,i),s=s||ce._hitTestTextArea(e,i),s=s||ce._hitTestViewLines(e,i),s=s||ce._hitTestScrollbar(e,i),s||t.fulfillUnknown()}static _hitTestContentWidget(e,t){if(ie.isChildOfContentWidgets(t.targetPath)||ie.isChildOfOverflowingContentWidgets(t.targetPath)){const i=e.findAttribute(t.target,"widgetId");return i?t.fulfillContentWidget(i):t.fulfillUnknown()}return null}static _hitTestOverlayWidget(e,t){if(ie.isChildOfOverlayWidgets(t.targetPath)||ie.isChildOfOverflowingOverlayWidgets(t.targetPath)){const i=e.findAttribute(t.target,"widgetId");return i?t.fulfillOverlayWidget(i):t.fulfillUnknown()}return null}static _hitTestViewCursor(e,t){if(t.target){const i=e.lastRenderData.lastViewCursorsRenderData;for(const e of i)if(t.target===e.domNode)return t.fulfillContentText(e.position,null,{mightBeForeignElement:!1,injectedText:null})}if(t.isInContentArea){const i=e.lastRenderData.lastViewCursorsRenderData,s=t.mouseContentHorizontalOffset,n=t.mouseVerticalOffset;for(const r of i){if(s<r.contentLeft)continue;if(s>r.contentLeft+r.width)continue;const i=e.getVerticalOffsetForLineNumber(r.position.lineNumber);if(i<=n&&n<=i+r.height)return t.fulfillContentText(r.position,null,{mightBeForeignElement:!1,injectedText:null})}}return null}static _hitTestViewZone(e,t){const i=e.getZoneAtCoord(t.mouseVerticalOffset);if(i){const e=t.isInContentArea?8:5;return t.fulfillViewZone(e,i.position,i)}return null}static _hitTestTextArea(e,t){return ie.isTextArea(t.targetPath)?e.lastRenderData.lastTextareaPosition?t.fulfillContentText(e.lastRenderData.lastTextareaPosition,null,{mightBeForeignElement:!1,injectedText:null}):t.fulfillTextarea():null}static _hitTestMargin(e,t){if(t.isInMarginArea){const i=e.getFullLineRangeAtCoord(t.mouseVerticalOffset),s=i.range.getStartPosition();let n=Math.abs(t.relativePos.x);const r={isAfterLines:i.isAfterLines,glyphMarginLeft:e.layoutInfo.glyphMarginLeft,glyphMarginWidth:e.layoutInfo.glyphMarginWidth,lineNumbersWidth:e.layoutInfo.lineNumbersWidth,offsetX:n};if(n-=e.layoutInfo.glyphMarginLeft,n<=e.layoutInfo.glyphMarginWidth){const o=e.viewModel.coordinatesConverter.convertViewPositionToModelPosition(i.range.getStartPosition()),a=e.viewModel.glyphLanes.getLanesAtLine(o.lineNumber);return r.glyphMarginLane=a[Math.floor(n/e.lineHeight)],t.fulfillMargin(2,s,i.range,r)}return n-=e.layoutInfo.glyphMarginWidth,n<=e.layoutInfo.lineNumbersWidth?t.fulfillMargin(3,s,i.range,r):(n-=e.layoutInfo.lineNumbersWidth,t.fulfillMargin(4,s,i.range,r))}return null}static _hitTestViewLines(e,t){if(!ie.isChildOfViewLines(t.targetPath))return null;if(e.isInTopPadding(t.mouseVerticalOffset))return t.fulfillContentEmpty(new Y.y(1,1),oe);if(e.isAfterLines(t.mouseVerticalOffset)||e.isInBottomPadding(t.mouseVerticalOffset)){const i=e.viewModel.getLineCount(),s=e.viewModel.getLineMaxColumn(i);return t.fulfillContentEmpty(new Y.y(i,s),oe)}if(ie.isStrictChildOfViewLines(t.targetPath)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset);if(0===e.viewModel.getLineLength(i)){const s=e.getLineWidth(i),n=ae(t.mouseContentHorizontalOffset-s);return t.fulfillContentEmpty(new Y.y(i,1),n)}const s=e.getLineWidth(i);if(t.mouseContentHorizontalOffset>=s){const n=ae(t.mouseContentHorizontalOffset-s),r=new Y.y(i,e.viewModel.getLineMaxColumn(i));return t.fulfillContentEmpty(r,n)}}const i=t.hitTestResult.value;return 1===i.type?ce.createMouseTargetFromHitTestPosition(e,t,i.spanNode,i.position,i.injectedText):t.wouldBenefitFromHitTestTargetSwitch?(t.switchToHitTestTarget(),this._createMouseTarget(e,t)):t.fulfillUnknown()}static _hitTestMinimap(e,t){if(ie.isChildOfMinimap(t.targetPath)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),s=e.viewModel.getLineMaxColumn(i);return t.fulfillScrollbar(new Y.y(i,s))}return null}static _hitTestScrollbarSlider(e,t){if(ie.isChildOfScrollableElement(t.targetPath)&&t.target&&1===t.target.nodeType){const i=t.target.className;if(i&&/\b(slider|scrollbar)\b/.test(i)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),s=e.viewModel.getLineMaxColumn(i);return t.fulfillScrollbar(new Y.y(i,s))}}return null}static _hitTestScrollbar(e,t){if(ie.isChildOfScrollableElement(t.targetPath)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),s=e.viewModel.getLineMaxColumn(i);return t.fulfillScrollbar(new Y.y(i,s))}return null}getMouseColumn(e){const t=this._context.configuration.options,i=t.get(146),s=this._context.viewLayout.getCurrentScrollLeft()+e.x-i.contentLeft;return ce._getMouseColumn(s,t.get(50).typicalHalfwidthCharacterWidth)}static _getMouseColumn(e,t){if(e<0)return 1;return Math.round(e/t)+1}static createMouseTargetFromHitTestPosition(e,t,i,s,n){const r=s.lineNumber,o=s.column,a=e.getLineWidth(r);if(t.mouseContentHorizontalOffset>a){const e=ae(t.mouseContentHorizontalOffset-a);return t.fulfillContentEmpty(s,e)}const l=e.visibleRangeForPosition(r,o);if(!l)return t.fulfillUnknown(s);const h=l.left;if(Math.abs(t.mouseContentHorizontalOffset-h)<1)return t.fulfillContentText(s,null,{mightBeForeignElement:!!n,injectedText:n});const d=[];if(d.push({offset:l.left,column:o}),o>1){const t=e.visibleRangeForPosition(r,o-1);t&&d.push({offset:t.left,column:o-1})}if(o<e.viewModel.getLineMaxColumn(r)){const t=e.visibleRangeForPosition(r,o+1);t&&d.push({offset:t.left,column:o+1})}d.sort(((e,t)=>e.offset-t.offset));const u=t.pos.toClientCoordinates(c.zk(e.viewDomNode)),g=i.getBoundingClientRect(),p=g.left<=u.clientX&&u.clientX<=g.right;let m=null;for(let c=1;c<d.length;c++){const e=d[c-1],i=d[c];if(e.offset<=t.mouseContentHorizontalOffset&&t.mouseContentHorizontalOffset<=i.offset){m=new q.Q(r,e.column,r,i.column);s=Math.abs(e.offset-t.mouseContentHorizontalOffset)<Math.abs(i.offset-t.mouseContentHorizontalOffset)?new Y.y(r,e.column):new Y.y(r,i.column);break}}return t.fulfillContentText(s,m,{mightBeForeignElement:!p||!!n,injectedText:n})}static _doHitTestWithCaretRangeFromPoint(e,t){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),s=e.getVerticalOffsetForLineNumber(i),n=s+e.lineHeight;if(!(i===e.viewModel.getLineCount()&&t.mouseVerticalOffset>n)){const i=Math.floor((s+n)/2);let r=t.pos.y+(i-t.mouseVerticalOffset);r<=t.editorPos.y&&(r=t.editorPos.y+1),r>=t.editorPos.y+t.editorPos.height&&(r=t.editorPos.y+t.editorPos.height-1);const o=new W.nz(t.pos.x,r),a=this._actualDoHitTestWithCaretRangeFromPoint(e,o.toClientCoordinates(c.zk(e.viewDomNode)));if(1===a.type)return a}return this._actualDoHitTestWithCaretRangeFromPoint(e,t.pos.toClientCoordinates(c.zk(e.viewDomNode)))}static _actualDoHitTestWithCaretRangeFromPoint(e,t){const i=c.jG(e.viewDomNode);let s;if(s=i?"undefined"===typeof i.caretRangeFromPoint?function(e,t,i){const s=document.createRange();let n=e.elementFromPoint(t,i);if(null!==n){for(;n&&n.firstChild&&n.firstChild.nodeType!==n.firstChild.TEXT_NODE&&n.lastChild&&n.lastChild.firstChild;)n=n.lastChild;const e=n.getBoundingClientRect(),i=c.zk(n),r=`${i.getComputedStyle(n,null).getPropertyValue("font-style")} ${i.getComputedStyle(n,null).getPropertyValue("font-variant")} ${i.getComputedStyle(n,null).getPropertyValue("font-weight")} ${i.getComputedStyle(n,null).getPropertyValue("font-size")}/${i.getComputedStyle(n,null).getPropertyValue("line-height")} ${i.getComputedStyle(n,null).getPropertyValue("font-family")}`,o=n.innerText;let a,l=e.left,h=0;if(t>e.left+e.width)h=o.length;else{const e=le.getInstance();for(let i=0;i<o.length+1;i++){if(a=e.getCharWidth(o.charAt(i),r)/2,l+=a,t<l){h=i;break}l+=a}}s.setStart(n.firstChild,h),s.setEnd(n.firstChild,h)}return s}(i,t.clientX,t.clientY):i.caretRangeFromPoint(t.clientX,t.clientY):e.viewDomNode.ownerDocument.caretRangeFromPoint(t.clientX,t.clientY),!s||!s.startContainer)return new Z;const n=s.startContainer;if(n.nodeType===n.TEXT_NODE){const t=n.parentNode,i=t?t.parentNode:null,r=i?i.parentNode:null;return(r&&r.nodeType===r.ELEMENT_NODE?r.className:null)===K.Gb.CLASS_NAME?j.createFromDOMInfo(e,t,s.startOffset):new Z(n.parentNode)}if(n.nodeType===n.ELEMENT_NODE){const t=n.parentNode,i=t?t.parentNode:null;return(i&&i.nodeType===i.ELEMENT_NODE?i.className:null)===K.Gb.CLASS_NAME?j.createFromDOMInfo(e,n,n.textContent.length):new Z(n)}return new Z}static _doHitTestWithCaretPositionFromPoint(e,t){const i=e.viewDomNode.ownerDocument.caretPositionFromPoint(t.clientX,t.clientY);if(i.offsetNode.nodeType===i.offsetNode.TEXT_NODE){const t=i.offsetNode.parentNode,s=t?t.parentNode:null,n=s?s.parentNode:null;return(n&&n.nodeType===n.ELEMENT_NODE?n.className:null)===K.Gb.CLASS_NAME?j.createFromDOMInfo(e,i.offsetNode.parentNode,i.offset):new Z(i.offsetNode.parentNode)}if(i.offsetNode.nodeType===i.offsetNode.ELEMENT_NODE){const t=i.offsetNode.parentNode,s=t&&t.nodeType===t.ELEMENT_NODE?t.className:null,n=t?t.parentNode:null,r=n&&n.nodeType===n.ELEMENT_NODE?n.className:null;if(s===K.Gb.CLASS_NAME){const t=i.offsetNode.childNodes[Math.min(i.offset,i.offsetNode.childNodes.length-1)];if(t)return j.createFromDOMInfo(e,t,0)}else if(r===K.Gb.CLASS_NAME)return j.createFromDOMInfo(e,i.offsetNode,0)}return new Z(i.offsetNode)}static _snapToSoftTabBoundary(e,t){const i=t.getLineContent(e.lineNumber),{tabSize:s}=t.model.getOptions(),n=Q.s.atomicPosition(i,e.column-1,s,2);return-1!==n?new Y.y(e.lineNumber,n+1):e}static doHitTest(e,t){let i=new Z;if("function"===typeof e.viewDomNode.ownerDocument.caretRangeFromPoint?i=this._doHitTestWithCaretRangeFromPoint(e,t):e.viewDomNode.ownerDocument.caretPositionFromPoint&&(i=this._doHitTestWithCaretPositionFromPoint(e,t.pos.toClientCoordinates(c.zk(e.viewDomNode)))),1===i.type){const t=e.viewModel.getInjectedTextAt(i.position),s=e.viewModel.normalizePosition(i.position,2);!t&&s.equals(i.position)||(i=new J(s,i.spanNode,t))}return i}}class le{static{this._INSTANCE=null}static getInstance(){return le._INSTANCE||(le._INSTANCE=new le),le._INSTANCE}constructor(){this._cache={},this._canvas=document.createElement("canvas")}getCharWidth(e,t){const i=e+t;if(this._cache[i])return this._cache[i];const s=this._canvas.getContext("2d");s.font=t;const n=s.measureText(e).width;return this._cache[i]=n,n}}var he=i(55089),de=i(25154),ue=i(25893),ge=i(47358),pe=i(75326),me=i(31295);class fe extends V{constructor(e,t,i){super(),this._mouseLeaveMonitor=null,this._context=e,this.viewController=t,this.viewHelper=i,this.mouseTargetFactory=new ce(this._context,i),this._mouseDownOperation=this._register(new _e(this._context,this.viewController,this.viewHelper,this.mouseTargetFactory,((e,t)=>this._createMouseTarget(e,t)),(e=>this._getMouseColumn(e)))),this.lastMouseLeaveTime=-1,this._height=this._context.configuration.options.get(146).height;const s=new W.$z(this.viewHelper.viewDomNode);this._register(s.onContextMenu(this.viewHelper.viewDomNode,(e=>this._onContextMenu(e,!0)))),this._register(s.onMouseMove(this.viewHelper.viewDomNode,(e=>{this._onMouseMove(e),this._mouseLeaveMonitor||(this._mouseLeaveMonitor=c.ko(this.viewHelper.viewDomNode.ownerDocument,"mousemove",(e=>{this.viewHelper.viewDomNode.contains(e.target)||this._onMouseLeave(new W.dO(e,!1,this.viewHelper.viewDomNode))})))}))),this._register(s.onMouseUp(this.viewHelper.viewDomNode,(e=>this._onMouseUp(e)))),this._register(s.onMouseLeave(this.viewHelper.viewDomNode,(e=>this._onMouseLeave(e))));let n=0;this._register(s.onPointerDown(this.viewHelper.viewDomNode,((e,t)=>{n=t}))),this._register(c.ko(this.viewHelper.viewDomNode,c.Bx.POINTER_UP,(e=>{this._mouseDownOperation.onPointerUp()}))),this._register(s.onMouseDown(this.viewHelper.viewDomNode,(e=>this._onMouseDown(e,n)))),this._setupMouseWheelZoomListener(),this._context.addEventHandler(this)}_setupMouseWheelZoomListener(){const e=me.QC.INSTANCE;let t=0,i=L.D.getZoomLevel(),s=!1,n=0;function r(e){return _.zx?(e.metaKey||e.ctrlKey)&&!e.shiftKey&&!e.altKey:e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey}this._register(c.ko(this.viewHelper.viewDomNode,c.Bx.MOUSE_WHEEL,(o=>{if(this.viewController.emitMouseWheel(o),!this._context.configuration.options.get(76))return;const a=new ge.$(o);if(e.acceptStandardWheelEvent(a),e.isPhysicalMouseWheel()){if(r(o)){const e=L.D.getZoomLevel(),t=a.deltaY>0?1:-1;L.D.setZoomLevel(e+t),a.preventDefault(),a.stopPropagation()}}else Date.now()-t>50&&(i=L.D.getZoomLevel(),s=r(o),n=0),t=Date.now(),n+=a.deltaY,s&&(L.D.setZoomLevel(i+n/5),a.preventDefault(),a.stopPropagation())}),{capture:!0,passive:!1}))}dispose(){this._context.removeEventHandler(this),this._mouseLeaveMonitor&&(this._mouseLeaveMonitor.dispose(),this._mouseLeaveMonitor=null),super.dispose()}onConfigurationChanged(e){if(e.hasChanged(146)){const e=this._context.configuration.options.get(146).height;this._height!==e&&(this._height=e,this._mouseDownOperation.onHeightChanged())}return!1}onCursorStateChanged(e){return this._mouseDownOperation.onCursorStateChanged(e),!1}onFocusChanged(e){return!1}getTargetAtClientPoint(e,t){const i=new W.Hh(e,t).toPageCoordinates(c.zk(this.viewHelper.viewDomNode)),s=(0,W.wt)(this.viewHelper.viewDomNode);if(i.y<s.y||i.y>s.y+s.height||i.x<s.x||i.x>s.x+s.width)return null;const n=(0,W.i_)(this.viewHelper.viewDomNode,s,i);return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),s,i,n,null)}_createMouseTarget(e,t){let i=e.target;if(!this.viewHelper.viewDomNode.contains(i)){const t=c.jG(this.viewHelper.viewDomNode);t&&(i=t.elementsFromPoint(e.posx,e.posy).find((e=>this.viewHelper.viewDomNode.contains(e))))}return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),e.editorPos,e.pos,e.relativePos,t?i:null)}_getMouseColumn(e){return this.mouseTargetFactory.getMouseColumn(e.relativePos)}_onContextMenu(e,t){this.viewController.emitContextMenu({event:e,target:this._createMouseTarget(e,t)})}_onMouseMove(e){if(this.mouseTargetFactory.mouseTargetIsWidget(e)||e.preventDefault(),this._mouseDownOperation.isActive())return;e.timestamp<this.lastMouseLeaveTime||this.viewController.emitMouseMove({event:e,target:this._createMouseTarget(e,!0)})}_onMouseLeave(e){this._mouseLeaveMonitor&&(this._mouseLeaveMonitor.dispose(),this._mouseLeaveMonitor=null),this.lastMouseLeaveTime=(new Date).getTime(),this.viewController.emitMouseLeave({event:e,target:null})}_onMouseUp(e){this.viewController.emitMouseUp({event:e,target:this._createMouseTarget(e,!0)})}_onMouseDown(e,t){const i=this._createMouseTarget(e,!0),s=6===i.type||7===i.type,n=2===i.type||3===i.type||4===i.type,r=3===i.type,o=this._context.configuration.options.get(110),a=8===i.type||5===i.type,c=9===i.type;let l=e.leftButton||e.middleButton;_.zx&&e.leftButton&&e.ctrlKey&&(l=!1);const h=()=>{e.preventDefault(),this.viewHelper.focusTextArea()};if(l&&(s||r&&o))h(),this._mouseDownOperation.start(i.type,e,t);else if(n)e.preventDefault();else if(a){const s=i.detail;l&&this.viewHelper.shouldSuppressMouseDownOnViewZone(s.viewZoneId)&&(h(),this._mouseDownOperation.start(i.type,e,t),e.preventDefault())}else c&&this.viewHelper.shouldSuppressMouseDownOnWidget(i.detail)&&(h(),e.preventDefault());this.viewController.emitMouseDown({event:e,target:i})}}class _e extends d.jG{constructor(e,t,i,s,n,r){super(),this._context=e,this._viewController=t,this._viewHelper=i,this._mouseTargetFactory=s,this._createMouseTarget=n,this._getMouseColumn=r,this._mouseMoveMonitor=this._register(new W.BA(this._viewHelper.viewDomNode)),this._topBottomDragScrolling=this._register(new ve(this._context,this._viewHelper,this._mouseTargetFactory,((e,t,i)=>this._dispatchMouse(e,t,i)))),this._mouseState=new Ee,this._currentSelection=new pe.L(1,1,1,1),this._isActive=!1,this._lastMouseEvent=null}dispose(){super.dispose()}isActive(){return this._isActive}_onMouseDownThenMove(e){this._lastMouseEvent=e,this._mouseState.setModifiers(e);const t=this._findMousePosition(e,!1);t&&(this._mouseState.isDragAndDrop?this._viewController.emitMouseDrag({event:e,target:t}):13!==t.type||"above"!==t.outsidePosition&&"below"!==t.outsidePosition?(this._topBottomDragScrolling.stop(),this._dispatchMouse(t,!0,1)):this._topBottomDragScrolling.start(t,e))}start(e,t,i){this._lastMouseEvent=t,this._mouseState.setStartedOnLineNumbers(3===e),this._mouseState.setStartButtons(t),this._mouseState.setModifiers(t);const s=this._findMousePosition(t,!0);if(!s||!s.position)return;this._mouseState.trySetCount(t.detail,s.position),t.detail=this._mouseState.count;const n=this._context.configuration.options;if(!n.get(92)&&n.get(35)&&!n.get(22)&&!this._mouseState.altKey&&t.detail<2&&!this._isActive&&!this._currentSelection.isEmpty()&&6===s.type&&s.position&&this._currentSelection.containsPosition(s.position))return this._mouseState.isDragAndDrop=!0,this._isActive=!0,void this._mouseMoveMonitor.startMonitoring(this._viewHelper.viewLinesDomNode,i,t.buttons,(e=>this._onMouseDownThenMove(e)),(e=>{const t=this._findMousePosition(this._lastMouseEvent,!1);c.kx(e)?this._viewController.emitMouseDropCanceled():this._viewController.emitMouseDrop({event:this._lastMouseEvent,target:t?this._createMouseTarget(this._lastMouseEvent,!0):null}),this._stop()}));this._mouseState.isDragAndDrop=!1,this._dispatchMouse(s,t.shiftKey,1),this._isActive||(this._isActive=!0,this._mouseMoveMonitor.startMonitoring(this._viewHelper.viewLinesDomNode,i,t.buttons,(e=>this._onMouseDownThenMove(e)),(()=>this._stop())))}_stop(){this._isActive=!1,this._topBottomDragScrolling.stop()}onHeightChanged(){this._mouseMoveMonitor.stopMonitoring()}onPointerUp(){this._mouseMoveMonitor.stopMonitoring()}onCursorStateChanged(e){this._currentSelection=e.selections[0]}_getPositionOutsideEditor(e){const t=e.editorPos,i=this._context.viewModel,s=this._context.viewLayout,n=this._getMouseColumn(e);if(e.posy<t.y){const i=t.y-e.posy,r=Math.max(s.getCurrentScrollTop()-i,0),o=se.getZoneAtCoord(this._context,r);if(o){const e=this._helpPositionJumpOverViewZone(o);if(e)return te.createOutsideEditor(n,e,"above",i)}const a=s.getLineNumberAtVerticalOffset(r);return te.createOutsideEditor(n,new Y.y(a,1),"above",i)}if(e.posy>t.y+t.height){const r=e.posy-t.y-t.height,o=s.getCurrentScrollTop()+e.relativePos.y,a=se.getZoneAtCoord(this._context,o);if(a){const e=this._helpPositionJumpOverViewZone(a);if(e)return te.createOutsideEditor(n,e,"below",r)}const c=s.getLineNumberAtVerticalOffset(o);return te.createOutsideEditor(n,new Y.y(c,i.getLineMaxColumn(c)),"below",r)}const r=s.getLineNumberAtVerticalOffset(s.getCurrentScrollTop()+e.relativePos.y);if(e.posx<t.x){const i=t.x-e.posx;return te.createOutsideEditor(n,new Y.y(r,1),"left",i)}if(e.posx>t.x+t.width){const s=e.posx-t.x-t.width;return te.createOutsideEditor(n,new Y.y(r,i.getLineMaxColumn(r)),"right",s)}return null}_findMousePosition(e,t){const i=this._getPositionOutsideEditor(e);if(i)return i;const s=this._createMouseTarget(e,t);if(!s.position)return null;if(8===s.type||5===s.type){const e=this._helpPositionJumpOverViewZone(s.detail);if(e)return te.createViewZone(s.type,s.element,s.mouseColumn,e,s.detail)}return s}_helpPositionJumpOverViewZone(e){const t=new Y.y(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),i=e.positionBefore,s=e.positionAfter;return i&&s?i.isBefore(t)?i:s:null}_dispatchMouse(e,t,i){e.position&&this._viewController.dispatchMouse({position:e.position,mouseColumn:e.mouseColumn,startedOnLineNumbers:this._mouseState.startedOnLineNumbers,revealType:i,inSelectionMode:t,mouseDownCount:this._mouseState.count,altKey:this._mouseState.altKey,ctrlKey:this._mouseState.ctrlKey,metaKey:this._mouseState.metaKey,shiftKey:this._mouseState.shiftKey,leftButton:this._mouseState.leftButton,middleButton:this._mouseState.middleButton,onInjectedText:6===e.type&&null!==e.detail.injectedText})}}class ve extends d.jG{constructor(e,t,i,s){super(),this._context=e,this._viewHelper=t,this._mouseTargetFactory=i,this._dispatchMouse=s,this._operation=null}dispose(){super.dispose(),this.stop()}start(e,t){this._operation?this._operation.setPosition(e,t):this._operation=new Ce(this._context,this._viewHelper,this._mouseTargetFactory,this._dispatchMouse,e,t)}stop(){this._operation&&(this._operation.dispose(),this._operation=null)}}class Ce extends d.jG{constructor(e,t,i,s,n,r){super(),this._context=e,this._viewHelper=t,this._mouseTargetFactory=i,this._dispatchMouse=s,this._position=n,this._mouseEvent=r,this._lastTime=Date.now(),this._animationFrameDisposable=c.PG(c.zk(r.browserEvent),(()=>this._execute()))}dispose(){this._animationFrameDisposable.dispose(),super.dispose()}setPosition(e,t){this._position=e,this._mouseEvent=t}_tick(){const e=Date.now(),t=e-this._lastTime;return this._lastTime=e,t}_getScrollSpeed(){const e=this._context.configuration.options.get(67),t=this._context.configuration.options.get(146).height/e,i=this._position.outsideDistance/e;return i<=1.5?Math.max(30,t*(1+i)):i<=3?Math.max(60,t*(2+i)):Math.max(200,t*(7+i))}_execute(){const e=this._context.configuration.options.get(67),t=this._getScrollSpeed()*(this._tick()/1e3)*e,i="above"===this._position.outsidePosition?-t:t;this._context.viewModel.viewLayout.deltaScrollNow(0,i),this._viewHelper.renderNow();const s=this._context.viewLayout.getLinesViewportData(),n="above"===this._position.outsidePosition?s.startLineNumber:s.endLineNumber;let r;{const e=(0,W.wt)(this._viewHelper.viewDomNode),t=this._context.configuration.options.get(146).horizontalScrollbarHeight,i=new W.nz(this._mouseEvent.pos.x,e.y+e.height-t-.1),s=(0,W.i_)(this._viewHelper.viewDomNode,e,i);r=this._mouseTargetFactory.createMouseTarget(this._viewHelper.getLastRenderData(),e,i,s,null)}r.position&&r.position.lineNumber===n||(r="above"===this._position.outsidePosition?te.createOutsideEditor(this._position.mouseColumn,new Y.y(n,1),"above",this._position.outsideDistance):te.createOutsideEditor(this._position.mouseColumn,new Y.y(n,this._context.viewModel.getLineMaxColumn(n)),"below",this._position.outsideDistance)),this._dispatchMouse(r,!0,2),this._animationFrameDisposable=c.PG(c.zk(r.element),(()=>this._execute()))}}class Ee{static{this.CLEAR_MOUSE_DOWN_COUNT_TIME=400}get altKey(){return this._altKey}get ctrlKey(){return this._ctrlKey}get metaKey(){return this._metaKey}get shiftKey(){return this._shiftKey}get leftButton(){return this._leftButton}get middleButton(){return this._middleButton}get startedOnLineNumbers(){return this._startedOnLineNumbers}constructor(){this._altKey=!1,this._ctrlKey=!1,this._metaKey=!1,this._shiftKey=!1,this._leftButton=!1,this._middleButton=!1,this._startedOnLineNumbers=!1,this._lastMouseDownPosition=null,this._lastMouseDownPositionEqualCount=0,this._lastMouseDownCount=0,this._lastSetMouseDownCountTime=0,this.isDragAndDrop=!1}get count(){return this._lastMouseDownCount}setModifiers(e){this._altKey=e.altKey,this._ctrlKey=e.ctrlKey,this._metaKey=e.metaKey,this._shiftKey=e.shiftKey}setStartButtons(e){this._leftButton=e.leftButton,this._middleButton=e.middleButton}setStartedOnLineNumbers(e){this._startedOnLineNumbers=e}trySetCount(e,t){const i=(new Date).getTime();i-this._lastSetMouseDownCountTime>Ee.CLEAR_MOUSE_DOWN_COUNT_TIME&&(e=1),this._lastSetMouseDownCountTime=i,e>this._lastMouseDownCount+1&&(e=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(t)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=t,this._lastMouseDownCount=Math.min(e,this._lastMouseDownPositionEqualCount)}}var be=i(68792);class Se extends fe{constructor(e,t,i){super(e,t,i),this._register(de.q.addTarget(this.viewHelper.linesContentDomNode)),this._register(c.ko(this.viewHelper.linesContentDomNode,de.B.Tap,(e=>this.onTap(e)))),this._register(c.ko(this.viewHelper.linesContentDomNode,de.B.Change,(e=>this.onChange(e)))),this._register(c.ko(this.viewHelper.linesContentDomNode,de.B.Contextmenu,(e=>this._onContextMenu(new W.dO(e,!1,this.viewHelper.viewDomNode),!1)))),this._lastPointerType="mouse",this._register(c.ko(this.viewHelper.linesContentDomNode,"pointerdown",(e=>{const t=e.pointerType;this._lastPointerType="mouse"!==t?"touch"===t?"touch":"pen":"mouse"})));const s=new W.DW(this.viewHelper.viewDomNode);this._register(s.onPointerMove(this.viewHelper.viewDomNode,(e=>this._onMouseMove(e)))),this._register(s.onPointerUp(this.viewHelper.viewDomNode,(e=>this._onMouseUp(e)))),this._register(s.onPointerLeave(this.viewHelper.viewDomNode,(e=>this._onMouseLeave(e)))),this._register(s.onPointerDown(this.viewHelper.viewDomNode,((e,t)=>this._onMouseDown(e,t))))}onTap(e){e.initialTarget&&this.viewHelper.linesContentDomNode.contains(e.initialTarget)&&(e.preventDefault(),this.viewHelper.focusTextArea(),this._dispatchGesture(e,!1))}onChange(e){"touch"===this._lastPointerType&&this._context.viewModel.viewLayout.deltaScrollNow(-e.translationX,-e.translationY),"pen"===this._lastPointerType&&this._dispatchGesture(e,!0)}_dispatchGesture(e,t){const i=this._createMouseTarget(new W.dO(e,!1,this.viewHelper.viewDomNode),!1);i.position&&this.viewController.dispatchMouse({position:i.position,mouseColumn:i.position.column,startedOnLineNumbers:!1,revealType:1,mouseDownCount:e.tapCount,inSelectionMode:t,altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,leftButton:!1,middleButton:!1,onInjectedText:6===i.type&&null!==i.detail.injectedText})}_onMouseDown(e,t){"touch"!==e.browserEvent.pointerType&&super._onMouseDown(e,t)}}class ye extends fe{constructor(e,t,i){super(e,t,i),this._register(de.q.addTarget(this.viewHelper.linesContentDomNode)),this._register(c.ko(this.viewHelper.linesContentDomNode,de.B.Tap,(e=>this.onTap(e)))),this._register(c.ko(this.viewHelper.linesContentDomNode,de.B.Change,(e=>this.onChange(e)))),this._register(c.ko(this.viewHelper.linesContentDomNode,de.B.Contextmenu,(e=>this._onContextMenu(new W.dO(e,!1,this.viewHelper.viewDomNode),!1))))}onTap(e){e.preventDefault(),this.viewHelper.focusTextArea();const t=this._createMouseTarget(new W.dO(e,!1,this.viewHelper.viewDomNode),!1);if(t.position){const e=document.createEvent("CustomEvent");e.initEvent(be.$D.Tap,!1,!0),this.viewHelper.dispatchTextAreaEvent(e),this.viewController.moveTo(t.position,1)}}onChange(e){this._context.viewModel.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)}}class we extends d.jG{constructor(e,t,i){super();(_.un||_.m0&&_.Fr)&&he.e.pointerEvents?this.handler=this._register(new Se(e,t,i)):ue.G.TouchEvent?this.handler=this._register(new ye(e,t,i)):this.handler=this._register(new fe(e,t,i))}getTargetAtClientPoint(e,t){return this.handler.getTargetAtClientPoint(e,t)}}var Re=i(78209),Le=i(91508),Te=i(69785);class xe extends V{}var ke=i(47612),Ae=i(87119);class Ne extends xe{static{this.CLASS_NAME="line-numbers"}constructor(e){super(),this._context=e,this._readConfig(),this._lastCursorModelPosition=new Y.y(1,1),this._renderResult=null,this._activeLineNumber=1,this._context.addEventHandler(this)}_readConfig(){const e=this._context.configuration.options;this._lineHeight=e.get(67);const t=e.get(68);this._renderLineNumbers=t.renderType,this._renderCustomLineNumbers=t.renderFn,this._renderFinalNewline=e.get(96);const i=e.get(146);this._lineNumbersLeft=i.lineNumbersLeft,this._lineNumbersWidth=i.lineNumbersWidth}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){return this._readConfig(),!0}onCursorStateChanged(e){const t=e.selections[0].getPosition();this._lastCursorModelPosition=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(t);let i=!1;return this._activeLineNumber!==t.lineNumber&&(this._activeLineNumber=t.lineNumber,i=!0),2!==this._renderLineNumbers&&3!==this._renderLineNumbers||(i=!0),i}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}onDecorationsChanged(e){return e.affectsLineNumber}_getLineRenderLineNumber(e){const t=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new Y.y(e,1));if(1!==t.column)return"";const i=t.lineNumber;if(this._renderCustomLineNumbers)return this._renderCustomLineNumbers(i);if(2===this._renderLineNumbers){const e=Math.abs(this._lastCursorModelPosition.lineNumber-i);return 0===e?'<span class="relative-current-line-number">'+i+"</span>":String(e)}if(3===this._renderLineNumbers){if(this._lastCursorModelPosition.lineNumber===i)return String(i);if(i%10===0)return String(i);return i===this._context.viewModel.getLineCount()?String(i):""}return String(i)}prepareRender(e){if(0===this._renderLineNumbers)return void(this._renderResult=null);const t=_.j9?this._lineHeight%2===0?" lh-even":" lh-odd":"",i=e.visibleRange.startLineNumber,s=e.visibleRange.endLineNumber,n=this._context.viewModel.getDecorationsInViewport(e.visibleRange).filter((e=>!!e.options.lineNumberClassName));n.sort(((e,t)=>q.Q.compareRangesUsingEnds(e.range,t.range)));let r=0;const o=this._context.viewModel.getLineCount(),a=[];for(let c=i;c<=s;c++){const e=c-i;let s=this._getLineRenderLineNumber(c),l="";for(;r<n.length&&n[r].range.endLineNumber<c;)r++;for(let t=r;t<n.length;t++){const{range:e,options:i}=n[t];e.startLineNumber<=c&&(l+=" "+i.lineNumberClassName)}s||l?(c===o&&0===this._context.viewModel.getLineLength(c)&&("off"===this._renderFinalNewline&&(s=""),"dimmed"===this._renderFinalNewline&&(l+=" dimmed-line-number")),c===this._activeLineNumber&&(l+=" active-line-number"),a[e]=`<div class="${Ne.CLASS_NAME}${t}${l}" style="left:${this._lineNumbersLeft}px;width:${this._lineNumbersWidth}px;">${s}</div>`):a[e]=""}this._renderResult=a}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}(0,ke.zy)(((e,t)=>{const i=e.getColor(Ae.Qt),s=e.getColor(Ae.JB);s?t.addRule(`.monaco-editor .line-numbers.dimmed-line-number { color: ${s}; }`):i&&t.addRule(`.monaco-editor .line-numbers.dimmed-line-number { color: ${i.transparent(.4)}; }`)}));class Ie extends z{static{this.CLASS_NAME="glyph-margin"}static{this.OUTER_CLASS_NAME="margin"}constructor(e){super(e);const t=this._context.configuration.options,i=t.get(146);this._canUseLayerHinting=!t.get(32),this._contentLeft=i.contentLeft,this._glyphMarginLeft=i.glyphMarginLeft,this._glyphMarginWidth=i.glyphMarginWidth,this._domNode=(0,H.Z)(document.createElement("div")),this._domNode.setClassName(Ie.OUTER_CLASS_NAME),this._domNode.setPosition("absolute"),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._glyphMarginBackgroundDomNode=(0,H.Z)(document.createElement("div")),this._glyphMarginBackgroundDomNode.setClassName(Ie.CLASS_NAME),this._domNode.appendChild(this._glyphMarginBackgroundDomNode)}dispose(){super.dispose()}getDomNode(){return this._domNode}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(146);return this._canUseLayerHinting=!t.get(32),this._contentLeft=i.contentLeft,this._glyphMarginLeft=i.glyphMarginLeft,this._glyphMarginWidth=i.glyphMarginWidth,!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollTopChanged}prepareRender(e){}render(e){this._domNode.setLayerHinting(this._canUseLayerHinting),this._domNode.setContain("strict");const t=e.scrollTop-e.bigNumbersDelta;this._domNode.setTop(-t);const i=Math.min(e.scrollHeight,1e6);this._domNode.setHeight(i),this._domNode.setWidth(this._contentLeft),this._glyphMarginBackgroundDomNode.setLeft(this._glyphMarginLeft),this._glyphMarginBackgroundDomNode.setWidth(this._glyphMarginWidth),this._glyphMarginBackgroundDomNode.setHeight(i)}}var Oe=i(81782);const De="monaco-mouse-cursor-text";var Me=i(62083),Pe=i(47661),Fe=i(2299),Ue=i(98031),He=i(63591),Be=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},We=function(e,t){return function(i,s){t(i,s,e)}};class Ve{constructor(e,t,i,s,n){this._context=e,this.modelLineNumber=t,this.distanceToModelLineStart=i,this.widthOfHiddenLineTextBefore=s,this.distanceToModelLineEnd=n,this._visibleTextAreaBrand=void 0,this.startPosition=null,this.endPosition=null,this.visibleTextareaStart=null,this.visibleTextareaEnd=null,this._previousPresentation=null}prepareRender(e){const t=new Y.y(this.modelLineNumber,this.distanceToModelLineStart+1),i=new Y.y(this.modelLineNumber,this._context.viewModel.model.getLineMaxColumn(this.modelLineNumber)-this.distanceToModelLineEnd);this.startPosition=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(t),this.endPosition=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(i),this.startPosition.lineNumber===this.endPosition.lineNumber?(this.visibleTextareaStart=e.visibleRangeForPosition(this.startPosition),this.visibleTextareaEnd=e.visibleRangeForPosition(this.endPosition)):(this.visibleTextareaStart=null,this.visibleTextareaEnd=null)}definePresentation(e){return this._previousPresentation||(this._previousPresentation=e||{foreground:1,italic:!1,bold:!1,underline:!1,strikethrough:!1}),this._previousPresentation}}const ze=p.gm;let Ge=class extends z{constructor(e,t,i,s,n){super(e),this._keybindingService=s,this._instantiationService=n,this._primaryCursorPosition=new Y.y(1,1),this._primaryCursorVisibleRange=null,this._viewController=t,this._visibleRangeProvider=i,this._scrollLeft=0,this._scrollTop=0;const r=this._context.configuration.options,o=r.get(146);this._setAccessibilityOptions(r),this._contentLeft=o.contentLeft,this._contentWidth=o.contentWidth,this._contentHeight=o.height,this._fontInfo=r.get(50),this._lineHeight=r.get(67),this._emptySelectionClipboard=r.get(37),this._copyWithSyntaxHighlighting=r.get(25),this._visibleTextArea=null,this._selections=[new pe.L(1,1,1,1)],this._modelSelections=[new pe.L(1,1,1,1)],this._lastRenderPosition=null,this.textArea=(0,H.Z)(document.createElement("textarea")),G.write(this.textArea,7),this.textArea.setClassName(`inputarea ${De}`),this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off");const{tabSize:a}=this._context.viewModel.model.getOptions();this.textArea.domNode.style.tabSize=a*this._fontInfo.spaceWidth+"px",this.textArea.setAttribute("autocorrect","off"),this.textArea.setAttribute("autocapitalize","off"),this.textArea.setAttribute("autocomplete","off"),this.textArea.setAttribute("spellcheck","false"),this.textArea.setAttribute("aria-label",this._getAriaLabel(r)),this.textArea.setAttribute("aria-required",r.get(5)?"true":"false"),this.textArea.setAttribute("tabindex",String(r.get(125))),this.textArea.setAttribute("role","textbox"),this.textArea.setAttribute("aria-roledescription",Re.kg("editor","editor")),this.textArea.setAttribute("aria-multiline","true"),this.textArea.setAttribute("aria-autocomplete",r.get(92)?"none":"both"),this._ensureReadOnlyAttribute(),this.textAreaCover=(0,H.Z)(document.createElement("div")),this.textAreaCover.setPosition("absolute");const c={getLineCount:()=>this._context.viewModel.getLineCount(),getLineMaxColumn:e=>this._context.viewModel.getLineMaxColumn(e),getValueInRange:(e,t)=>this._context.viewModel.getValueInRange(e,t),getValueLengthInRange:(e,t)=>this._context.viewModel.getValueLengthInRange(e,t),modifyPosition:(e,t)=>this._context.viewModel.modifyPosition(e,t)},l={getDataToCopy:()=>{const e=this._context.viewModel.getPlainTextToCopy(this._modelSelections,this._emptySelectionClipboard,_.uF),t=this._context.viewModel.model.getEOL(),i=this._emptySelectionClipboard&&1===this._modelSelections.length&&this._modelSelections[0].isEmpty(),s=Array.isArray(e)?e:null,n=Array.isArray(e)?e.join(t):e;let r,o=null;if(be.Eq.forceCopyWithSyntaxHighlighting||this._copyWithSyntaxHighlighting&&n.length<65536){const e=this._context.viewModel.getRichTextToCopy(this._modelSelections,this._emptySelectionClipboard);e&&(r=e.html,o=e.mode)}return{isFromEmptySelection:i,multicursorText:s,text:n,html:r,mode:o}},getScreenReaderContent:()=>{if(1===this._accessibilitySupport){const e=this._selections[0];if(_.zx&&e.isEmpty()){const t=e.getStartPosition();let i=this._getWordBeforePosition(t);if(0===i.length&&(i=this._getCharacterBeforePosition(t)),i.length>0)return new Te._O(i,i.length,i.length,q.Q.fromPositions(t),0)}const t=500;if(_.zx&&!e.isEmpty()&&c.getValueLengthInRange(e,0)<t){const t=c.getValueInRange(e,0);return new Te._O(t,0,t.length,e,0)}if(p.nr&&!e.isEmpty()){const e="vscode-placeholder";return new Te._O(e,0,e.length,null,void 0)}return Te._O.EMPTY}if(p.m0){const e=this._selections[0];if(e.isEmpty()){const t=e.getStartPosition(),[i,s]=this._getAndroidWordAtPosition(t);if(i.length>0)return new Te._O(i,s,s,q.Q.fromPositions(t),0)}return Te._O.EMPTY}return Te.Al.fromEditorSelection(c,this._selections[0],this._accessibilityPageSize,0===this._accessibilitySupport)},deduceModelPosition:(e,t,i)=>this._context.viewModel.deduceModelPositionRelativeToViewPosition(e,t,i)},h=this._register(new be.M0(this.textArea.domNode));this._textAreaInput=this._register(this._instantiationService.createInstance(be.No,l,h,_.OS,{isAndroid:p.m0,isChrome:p.H8,isFirefox:p.gm,isSafari:p.nr})),this._register(this._textAreaInput.onKeyDown((e=>{this._viewController.emitKeyDown(e)}))),this._register(this._textAreaInput.onKeyUp((e=>{this._viewController.emitKeyUp(e)}))),this._register(this._textAreaInput.onPaste((e=>{let t=!1,i=null,s=null;e.metadata&&(t=this._emptySelectionClipboard&&!!e.metadata.isFromEmptySelection,i="undefined"!==typeof e.metadata.multicursorText?e.metadata.multicursorText:null,s=e.metadata.mode),this._viewController.paste(e.text,t,i,s)}))),this._register(this._textAreaInput.onCut((()=>{this._viewController.cut()}))),this._register(this._textAreaInput.onType((e=>{e.replacePrevCharCnt||e.replaceNextCharCnt||e.positionDelta?(Te.Hf&&console.log(` => compositionType: <<${e.text}>>, ${e.replacePrevCharCnt}, ${e.replaceNextCharCnt}, ${e.positionDelta}`),this._viewController.compositionType(e.text,e.replacePrevCharCnt,e.replaceNextCharCnt,e.positionDelta)):(Te.Hf&&console.log(` => type: <<${e.text}>>`),this._viewController.type(e.text))}))),this._register(this._textAreaInput.onSelectionChangeRequest((e=>{this._viewController.setSelection(e)}))),this._register(this._textAreaInput.onCompositionStart((e=>{const t=this.textArea.domNode,i=this._modelSelections[0],{distanceToModelLineStart:s,widthOfHiddenTextBefore:n}=(()=>{const e=t.value.substring(0,Math.min(t.selectionStart,t.selectionEnd)),s=e.lastIndexOf("\n"),n=e.substring(s+1),r=n.lastIndexOf("\t"),o=n.length-r-1,a=i.getStartPosition(),c=Math.min(a.column-1,o),l=a.column-1-c,h=n.substring(0,n.length-c),{tabSize:d}=this._context.viewModel.model.getOptions(),u=function(e,t,i,s){if(0===t.length)return 0;const n=e.createElement("div");n.style.position="absolute",n.style.top="-50000px",n.style.width="50000px";const r=e.createElement("span");(0,g.M)(r,i),r.style.whiteSpace="pre",r.style.tabSize=s*i.spaceWidth+"px",r.append(t),n.appendChild(r),e.body.appendChild(n);const o=r.offsetWidth;return n.remove(),o}(this.textArea.domNode.ownerDocument,h,this._fontInfo,d);return{distanceToModelLineStart:l,widthOfHiddenTextBefore:u}})(),{distanceToModelLineEnd:r}=(()=>{const e=t.value.substring(Math.max(t.selectionStart,t.selectionEnd)),s=e.indexOf("\n"),n=-1===s?e:e.substring(0,s),r=n.indexOf("\t"),o=-1===r?n.length:n.length-r-1,a=i.getEndPosition(),c=Math.min(this._context.viewModel.model.getLineMaxColumn(a.lineNumber)-a.column,o);return{distanceToModelLineEnd:this._context.viewModel.model.getLineMaxColumn(a.lineNumber)-a.column-c}})();this._context.viewModel.revealRange("keyboard",!0,q.Q.fromPositions(this._selections[0].getStartPosition()),0,1),this._visibleTextArea=new Ve(this._context,i.startLineNumber,s,n,r),this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off"),this._visibleTextArea.prepareRender(this._visibleRangeProvider),this._render(),this.textArea.setClassName(`inputarea ${De} ime-input`),this._viewController.compositionStart(),this._context.viewModel.onCompositionStart()}))),this._register(this._textAreaInput.onCompositionUpdate((e=>{this._visibleTextArea&&(this._visibleTextArea.prepareRender(this._visibleRangeProvider),this._render())}))),this._register(this._textAreaInput.onCompositionEnd((()=>{this._visibleTextArea=null,this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off"),this._render(),this.textArea.setClassName(`inputarea ${De}`),this._viewController.compositionEnd(),this._context.viewModel.onCompositionEnd()}))),this._register(this._textAreaInput.onFocus((()=>{this._context.viewModel.setHasFocus(!0)}))),this._register(this._textAreaInput.onBlur((()=>{this._context.viewModel.setHasFocus(!1)}))),this._register(Fe.M.onDidChange((()=>{this._ensureReadOnlyAttribute()})))}writeScreenReaderContent(e){this._textAreaInput.writeNativeTextAreaContent(e)}dispose(){super.dispose()}_getAndroidWordAtPosition(e){const t=this._context.viewModel.getLineContent(e.lineNumber),i=(0,Oe.i)('`~!@#$%^&*()-=+[{]}\\|;:",.<>/?',[]);let s=!0,n=e.column,r=!0,o=e.column,a=0;for(;a<50&&(s||r);){if(s&&n<=1&&(s=!1),s){const e=t.charCodeAt(n-2);0!==i.get(e)?s=!1:n--}if(r&&o>t.length&&(r=!1),r){const e=t.charCodeAt(o-1);0!==i.get(e)?r=!1:o++}a++}return[t.substring(n-1,o-1),e.column-n]}_getWordBeforePosition(e){const t=this._context.viewModel.getLineContent(e.lineNumber),i=(0,Oe.i)(this._context.configuration.options.get(132),[]);let s=e.column,n=0;for(;s>1;){const r=t.charCodeAt(s-2);if(0!==i.get(r)||n>50)return t.substring(s-1,e.column-1);n++,s--}return t.substring(0,e.column-1)}_getCharacterBeforePosition(e){if(e.column>1){const t=this._context.viewModel.getLineContent(e.lineNumber).charAt(e.column-2);if(!Le.pc(t.charCodeAt(0)))return t}return""}_getAriaLabel(e){if(1===e.get(2)){const e=this._keybindingService.lookupKeybinding("editor.action.toggleScreenReaderAccessibilityMode")?.getAriaLabel(),t=this._keybindingService.lookupKeybinding("workbench.action.showCommands")?.getAriaLabel(),i=this._keybindingService.lookupKeybinding("workbench.action.openGlobalKeybindings")?.getAriaLabel(),s=Re.kg("accessibilityModeOff","The editor is not accessible at this time.");return e?Re.kg("accessibilityOffAriaLabel","{0} To enable screen reader optimized mode, use {1}",s,e):t?Re.kg("accessibilityOffAriaLabelNoKb","{0} To enable screen reader optimized mode, open the quick pick with {1} and run the command Toggle Screen Reader Accessibility Mode, which is currently not triggerable via keyboard.",s,t):i?Re.kg("accessibilityOffAriaLabelNoKbs","{0} Please assign a keybinding for the command Toggle Screen Reader Accessibility Mode by accessing the keybindings editor with {1} and run it.",s,i):s}return e.get(4)}_setAccessibilityOptions(e){this._accessibilitySupport=e.get(2);const t=e.get(3);2===this._accessibilitySupport&&t===R.qB.accessibilityPageSize.defaultValue?this._accessibilityPageSize=500:this._accessibilityPageSize=t;const i=e.get(146).wrappingColumn;if(-1!==i&&1!==this._accessibilitySupport){const t=e.get(50);this._textAreaWrapping=!0,this._textAreaWidth=Math.round(i*t.typicalHalfwidthCharacterWidth)}else this._textAreaWrapping=!1,this._textAreaWidth=ze?0:1}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(146);this._setAccessibilityOptions(t),this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,this._contentHeight=i.height,this._fontInfo=t.get(50),this._lineHeight=t.get(67),this._emptySelectionClipboard=t.get(37),this._copyWithSyntaxHighlighting=t.get(25),this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off");const{tabSize:s}=this._context.viewModel.model.getOptions();return this.textArea.domNode.style.tabSize=s*this._fontInfo.spaceWidth+"px",this.textArea.setAttribute("aria-label",this._getAriaLabel(t)),this.textArea.setAttribute("aria-required",t.get(5)?"true":"false"),this.textArea.setAttribute("tabindex",String(t.get(125))),(e.hasChanged(34)||e.hasChanged(92))&&this._ensureReadOnlyAttribute(),e.hasChanged(2)&&this._textAreaInput.writeNativeTextAreaContent("strategy changed"),!0}onCursorStateChanged(e){return this._selections=e.selections.slice(0),this._modelSelections=e.modelSelections.slice(0),this._textAreaInput.writeNativeTextAreaContent("selection changed"),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return this._scrollLeft=e.scrollLeft,this._scrollTop=e.scrollTop,!0}onZonesChanged(e){return!0}isFocused(){return this._textAreaInput.isFocused()}focusTextArea(){this._textAreaInput.focusTextArea()}getLastRenderData(){return this._lastRenderPosition}setAriaOptions(e){e.activeDescendant?(this.textArea.setAttribute("aria-haspopup","true"),this.textArea.setAttribute("aria-autocomplete","list"),this.textArea.setAttribute("aria-activedescendant",e.activeDescendant)):(this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),this.textArea.removeAttribute("aria-activedescendant")),e.role&&this.textArea.setAttribute("role",e.role)}_ensureReadOnlyAttribute(){const e=this._context.configuration.options;!Fe.M.enabled||e.get(34)&&e.get(92)?this.textArea.setAttribute("readonly","true"):this.textArea.removeAttribute("readonly")}prepareRender(e){this._primaryCursorPosition=new Y.y(this._selections[0].positionLineNumber,this._selections[0].positionColumn),this._primaryCursorVisibleRange=e.visibleRangeForPosition(this._primaryCursorPosition),this._visibleTextArea?.prepareRender(e)}render(e){this._textAreaInput.writeNativeTextAreaContent("render"),this._render()}_render(){if(this._visibleTextArea){const e=this._visibleTextArea.visibleTextareaStart,t=this._visibleTextArea.visibleTextareaEnd,i=this._visibleTextArea.startPosition,s=this._visibleTextArea.endPosition;if(i&&s&&e&&t&&t.left>=this._scrollLeft&&e.left<=this._scrollLeft+this._contentWidth){const n=this._context.viewLayout.getVerticalOffsetForLineNumber(this._primaryCursorPosition.lineNumber)-this._scrollTop,r=this._newlinecount(this.textArea.domNode.value.substr(0,this.textArea.domNode.selectionStart));let o=this._visibleTextArea.widthOfHiddenLineTextBefore,a=this._contentLeft+e.left-this._scrollLeft,c=t.left-e.left+1;if(a<this._contentLeft){const e=this._contentLeft-a;a+=e,o+=e,c-=e}c>this._contentWidth&&(c=this._contentWidth);const l=this._context.viewModel.getViewLineData(i.lineNumber),h=l.tokens.findTokenIndexAtOffset(i.column-1),d=h===l.tokens.findTokenIndexAtOffset(s.column-1),u=this._visibleTextArea.definePresentation(d?l.tokens.getPresentation(h):null);this.textArea.domNode.scrollTop=r*this._lineHeight,this.textArea.domNode.scrollLeft=o,this._doRender({lastRenderPosition:null,top:n,left:a,width:c,height:this._lineHeight,useCover:!1,color:(Me.dG.getColorMap()||[])[u.foreground],italic:u.italic,bold:u.bold,underline:u.underline,strikethrough:u.strikethrough})}return}if(!this._primaryCursorVisibleRange)return void this._renderAtTopLeft();const e=this._contentLeft+this._primaryCursorVisibleRange.left-this._scrollLeft;if(e<this._contentLeft||e>this._contentLeft+this._contentWidth)return void this._renderAtTopLeft();const t=this._context.viewLayout.getVerticalOffsetForLineNumber(this._selections[0].positionLineNumber)-this._scrollTop;if(t<0||t>this._contentHeight)this._renderAtTopLeft();else if(_.zx||2===this._accessibilitySupport){this._doRender({lastRenderPosition:this._primaryCursorPosition,top:t,left:this._textAreaWrapping?this._contentLeft:e,width:this._textAreaWidth,height:this._lineHeight,useCover:!1}),this.textArea.domNode.scrollLeft=this._primaryCursorVisibleRange.left;const i=this._textAreaInput.textAreaState.newlineCountBeforeSelection??this._newlinecount(this.textArea.domNode.value.substr(0,this.textArea.domNode.selectionStart));this.textArea.domNode.scrollTop=i*this._lineHeight}else this._doRender({lastRenderPosition:this._primaryCursorPosition,top:t,left:this._textAreaWrapping?this._contentLeft:e,width:this._textAreaWidth,height:ze?0:1,useCover:!1})}_newlinecount(e){let t=0,i=-1;for(;;){if(i=e.indexOf("\n",i+1),-1===i)break;t++}return t}_renderAtTopLeft(){this._doRender({lastRenderPosition:null,top:0,left:0,width:this._textAreaWidth,height:ze?0:1,useCover:!0})}_doRender(e){this._lastRenderPosition=e.lastRenderPosition;const t=this.textArea,i=this.textAreaCover;(0,g.M)(t,this._fontInfo),t.setTop(e.top),t.setLeft(e.left),t.setWidth(e.width),t.setHeight(e.height),t.setColor(e.color?Pe.Q1.Format.CSS.formatHex(e.color):""),t.setFontStyle(e.italic?"italic":""),e.bold&&t.setFontWeight("bold"),t.setTextDecoration(`${e.underline?" underline":""}${e.strikethrough?" line-through":""}`),i.setTop(e.useCover?e.top:0),i.setLeft(e.useCover?e.left:0),i.setWidth(e.useCover?e.width:0),i.setHeight(e.useCover?e.height:0);const s=this._context.configuration.options;s.get(57)?i.setClassName("monaco-editor-background textAreaCover "+Ie.OUTER_CLASS_NAME):0!==s.get(68).renderType?i.setClassName("monaco-editor-background textAreaCover "+Ne.CLASS_NAME):i.setClassName("monaco-editor-background textAreaCover")}};Ge=Be([We(3,Ue.b),We(4,He._Y)],Ge);var je=i(80624),Ke=i(36999);class Ye{constructor(e,t,i,s){this.configuration=e,this.viewModel=t,this.userInputEvents=i,this.commandDelegate=s}paste(e,t,i,s){this.commandDelegate.paste(e,t,i,s)}type(e){this.commandDelegate.type(e)}compositionType(e,t,i,s){this.commandDelegate.compositionType(e,t,i,s)}compositionStart(){this.commandDelegate.startComposition()}compositionEnd(){this.commandDelegate.endComposition()}cut(){this.commandDelegate.cut()}setSelection(e){Ke.QM.SetSelection.runCoreEditorCommand(this.viewModel,{source:"keyboard",selection:e})}_validateViewColumn(e){const t=this.viewModel.getLineMinColumn(e.lineNumber);return e.column<t?new Y.y(e.lineNumber,t):e}_hasMulticursorModifier(e){switch(this.configuration.options.get(78)){case"altKey":return e.altKey;case"ctrlKey":return e.ctrlKey;case"metaKey":return e.metaKey;default:return!1}}_hasNonMulticursorModifier(e){switch(this.configuration.options.get(78)){case"altKey":return e.ctrlKey||e.metaKey;case"ctrlKey":return e.altKey||e.metaKey;case"metaKey":return e.ctrlKey||e.altKey;default:return!1}}dispatchMouse(e){const t=this.configuration.options,i=_.j9&&t.get(108),s=t.get(22);e.middleButton&&!i?this._columnSelect(e.position,e.mouseColumn,e.inSelectionMode):e.startedOnLineNumbers?this._hasMulticursorModifier(e)?e.inSelectionMode?this._lastCursorLineSelect(e.position,e.revealType):this._createCursor(e.position,!0):e.inSelectionMode?this._lineSelectDrag(e.position,e.revealType):this._lineSelect(e.position,e.revealType):e.mouseDownCount>=4?this._selectAll():3===e.mouseDownCount?this._hasMulticursorModifier(e)?e.inSelectionMode?this._lastCursorLineSelectDrag(e.position,e.revealType):this._lastCursorLineSelect(e.position,e.revealType):e.inSelectionMode?this._lineSelectDrag(e.position,e.revealType):this._lineSelect(e.position,e.revealType):2===e.mouseDownCount?e.onInjectedText||(this._hasMulticursorModifier(e)?this._lastCursorWordSelect(e.position,e.revealType):e.inSelectionMode?this._wordSelectDrag(e.position,e.revealType):this._wordSelect(e.position,e.revealType)):this._hasMulticursorModifier(e)?this._hasNonMulticursorModifier(e)||(e.shiftKey?this._columnSelect(e.position,e.mouseColumn,!0):e.inSelectionMode?this._lastCursorMoveToSelect(e.position,e.revealType):this._createCursor(e.position,!1)):e.inSelectionMode?e.altKey||s?this._columnSelect(e.position,e.mouseColumn,!0):this._moveToSelect(e.position,e.revealType):this.moveTo(e.position,e.revealType)}_usualArgs(e,t){return e=this._validateViewColumn(e),{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,revealType:t}}moveTo(e,t){Ke.QM.MoveTo.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_moveToSelect(e,t){Ke.QM.MoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_columnSelect(e,t,i){e=this._validateViewColumn(e),Ke.QM.ColumnSelect.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,mouseColumn:t,doColumnSelect:i})}_createCursor(e,t){e=this._validateViewColumn(e),Ke.QM.CreateCursor.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,wholeLine:t})}_lastCursorMoveToSelect(e,t){Ke.QM.LastCursorMoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_wordSelect(e,t){Ke.QM.WordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_wordSelectDrag(e,t){Ke.QM.WordSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lastCursorWordSelect(e,t){Ke.QM.LastCursorWordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lineSelect(e,t){Ke.QM.LineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lineSelectDrag(e,t){Ke.QM.LineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lastCursorLineSelect(e,t){Ke.QM.LastCursorLineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lastCursorLineSelectDrag(e,t){Ke.QM.LastCursorLineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_selectAll(){Ke.QM.SelectAll.runCoreEditorCommand(this.viewModel,{source:"mouse"})}_convertViewToModelPosition(e){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(e)}emitKeyDown(e){this.userInputEvents.emitKeyDown(e)}emitKeyUp(e){this.userInputEvents.emitKeyUp(e)}emitContextMenu(e){this.userInputEvents.emitContextMenu(e)}emitMouseMove(e){this.userInputEvents.emitMouseMove(e)}emitMouseLeave(e){this.userInputEvents.emitMouseLeave(e)}emitMouseUp(e){this.userInputEvents.emitMouseUp(e)}emitMouseDown(e){this.userInputEvents.emitMouseDown(e)}emitMouseDrag(e){this.userInputEvents.emitMouseDrag(e)}emitMouseDrop(e){this.userInputEvents.emitMouseDrop(e)}emitMouseDropCanceled(){this.userInputEvents.emitMouseDropCanceled()}emitMouseWheel(e){this.userInputEvents.emitMouseWheel(e)}}var qe=i(80789),$e=i(99020);class Qe{constructor(e){this._lineFactory=e,this._set(1,[])}flush(){this._set(1,[])}_set(e,t){this._lines=t,this._rendLineNumberStart=e}_get(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines}}getStartLineNumber(){return this._rendLineNumberStart}getEndLineNumber(){return this._rendLineNumberStart+this._lines.length-1}getCount(){return this._lines.length}getLine(e){const t=e-this._rendLineNumberStart;if(t<0||t>=this._lines.length)throw new l.D7("Illegal value for lineNumber");return this._lines[t]}onLinesDeleted(e,t){if(0===this.getCount())return null;const i=this.getStartLineNumber(),s=this.getEndLineNumber();if(t<i){const i=t-e+1;return this._rendLineNumberStart-=i,null}if(e>s)return null;let n=0,r=0;for(let o=i;o<=s;o++){const i=o-this._rendLineNumberStart;e<=o&&o<=t&&(0===r?(n=i,r=1):r++)}if(e<i){let s=0;s=t<i?t-e+1:i-e,this._rendLineNumberStart-=s}return this._lines.splice(n,r)}onLinesChanged(e,t){const i=e+t-1;if(0===this.getCount())return!1;const s=this.getStartLineNumber(),n=this.getEndLineNumber();let r=!1;for(let o=e;o<=i;o++)o>=s&&o<=n&&(this._lines[o-this._rendLineNumberStart].onContentChanged(),r=!0);return r}onLinesInserted(e,t){if(0===this.getCount())return null;const i=t-e+1,s=this.getStartLineNumber(),n=this.getEndLineNumber();if(e<=s)return this._rendLineNumberStart+=i,null;if(e>n)return null;if(i+e>n){return this._lines.splice(e-this._rendLineNumberStart,n-e+1)}const r=[];for(let h=0;h<i;h++)r[h]=this._lineFactory.createLine();const o=e-this._rendLineNumberStart,a=this._lines.slice(0,o),c=this._lines.slice(o,this._lines.length-i),l=this._lines.slice(this._lines.length-i,this._lines.length);return this._lines=a.concat(r).concat(c),l}onTokensChanged(e){if(0===this.getCount())return!1;const t=this.getStartLineNumber(),i=this.getEndLineNumber();let s=!1;for(let n=0,r=e.length;n<r;n++){const r=e[n];if(r.toLineNumber<t||r.fromLineNumber>i)continue;const o=Math.max(t,r.fromLineNumber),a=Math.min(i,r.toLineNumber);for(let e=o;e<=a;e++){const t=e-this._rendLineNumberStart;this._lines[t].onTokensChanged(),s=!0}}return s}}class Xe{constructor(e){this._lineFactory=e,this.domNode=this._createDomNode(),this._linesCollection=new Qe(this._lineFactory)}_createDomNode(){const e=(0,H.Z)(document.createElement("div"));return e.setClassName("view-layer"),e.setPosition("absolute"),e.domNode.setAttribute("role","presentation"),e.domNode.setAttribute("aria-hidden","true"),e}onConfigurationChanged(e){return!!e.hasChanged(146)}onFlushed(e){return this._linesCollection.flush(),!0}onLinesChanged(e){return this._linesCollection.onLinesChanged(e.fromLineNumber,e.count)}onLinesDeleted(e){const t=this._linesCollection.onLinesDeleted(e.fromLineNumber,e.toLineNumber);if(t)for(let i=0,s=t.length;i<s;i++){const e=t[i].getDomNode();e?.remove()}return!0}onLinesInserted(e){const t=this._linesCollection.onLinesInserted(e.fromLineNumber,e.toLineNumber);if(t)for(let i=0,s=t.length;i<s;i++){const e=t[i].getDomNode();e?.remove()}return!0}onScrollChanged(e){return e.scrollTopChanged}onTokensChanged(e){return this._linesCollection.onTokensChanged(e.ranges)}onZonesChanged(e){return!0}getStartLineNumber(){return this._linesCollection.getStartLineNumber()}getEndLineNumber(){return this._linesCollection.getEndLineNumber()}getVisibleLine(e){return this._linesCollection.getLine(e)}renderLines(e){const t=this._linesCollection._get(),i=new Ze(this.domNode.domNode,this._lineFactory,e),s={rendLineNumberStart:t.rendLineNumberStart,lines:t.lines,linesLength:t.lines.length},n=i.render(s,e.startLineNumber,e.endLineNumber,e.relativeVerticalOffset);this._linesCollection._set(n.rendLineNumberStart,n.lines)}}class Ze{static{this._ttPolicy=(0,qe.H)("editorViewLayer",{createHTML:e=>e})}constructor(e,t,i){this._domNode=e,this._lineFactory=t,this._viewportData=i}render(e,t,i,s){const n={rendLineNumberStart:e.rendLineNumberStart,lines:e.lines.slice(0),linesLength:e.linesLength};if(n.rendLineNumberStart+n.linesLength-1<t||i<n.rendLineNumberStart){n.rendLineNumberStart=t,n.linesLength=i-t+1,n.lines=[];for(let e=t;e<=i;e++)n.lines[e-t]=this._lineFactory.createLine();return this._finishRendering(n,!0,s),n}if(this._renderUntouchedLines(n,Math.max(t-n.rendLineNumberStart,0),Math.min(i-n.rendLineNumberStart,n.linesLength-1),s,t),n.rendLineNumberStart>t){const e=t,r=Math.min(i,n.rendLineNumberStart-1);e<=r&&(this._insertLinesBefore(n,e,r,s,t),n.linesLength+=r-e+1)}else if(n.rendLineNumberStart<t){const e=Math.min(n.linesLength,t-n.rendLineNumberStart);e>0&&(this._removeLinesBefore(n,e),n.linesLength-=e)}if(n.rendLineNumberStart=t,n.rendLineNumberStart+n.linesLength-1<i){const e=n.rendLineNumberStart+n.linesLength,r=i;e<=r&&(this._insertLinesAfter(n,e,r,s,t),n.linesLength+=r-e+1)}else if(n.rendLineNumberStart+n.linesLength-1>i){const e=Math.max(0,i-n.rendLineNumberStart+1),t=n.linesLength-1-e+1;t>0&&(this._removeLinesAfter(n,t),n.linesLength-=t)}return this._finishRendering(n,!1,s),n}_renderUntouchedLines(e,t,i,s,n){const r=e.rendLineNumberStart,o=e.lines;for(let a=t;a<=i;a++){const e=r+a;o[a].layoutLine(e,s[e-n],this._viewportData.lineHeight)}}_insertLinesBefore(e,t,i,s,n){const r=[];let o=0;for(let a=t;a<=i;a++)r[o++]=this._lineFactory.createLine();e.lines=r.concat(e.lines)}_removeLinesBefore(e,t){for(let i=0;i<t;i++){const t=e.lines[i].getDomNode();t?.remove()}e.lines.splice(0,t)}_insertLinesAfter(e,t,i,s,n){const r=[];let o=0;for(let a=t;a<=i;a++)r[o++]=this._lineFactory.createLine();e.lines=e.lines.concat(r)}_removeLinesAfter(e,t){const i=e.linesLength-t;for(let s=0;s<t;s++){const t=e.lines[i+s].getDomNode();t?.remove()}e.lines.splice(i,t)}_finishRenderingNewLines(e,t,i,s){Ze._ttPolicy&&(i=Ze._ttPolicy.createHTML(i));const n=this._domNode.lastChild;t||!n?this._domNode.innerHTML=i:n.insertAdjacentHTML("afterend",i);let r=this._domNode.lastChild;for(let o=e.linesLength-1;o>=0;o--){const t=e.lines[o];s[o]&&(t.setDomNode(r),r=r.previousSibling)}}_finishRenderingInvalidLines(e,t,i){const s=document.createElement("div");Ze._ttPolicy&&(t=Ze._ttPolicy.createHTML(t)),s.innerHTML=t;for(let n=0;n<e.linesLength;n++){const t=e.lines[n];if(i[n]){const e=s.firstChild,i=t.getDomNode();i.parentNode.replaceChild(e,i),t.setDomNode(e)}}}static{this._sb=new $e.fe(1e5)}_finishRendering(e,t,i){const s=Ze._sb,n=e.linesLength,r=e.lines,o=e.rendLineNumberStart,a=[];{s.reset();let c=!1;for(let e=0;e<n;e++){const t=r[e];a[e]=!1;if(t.getDomNode())continue;t.renderLine(e+o,i[e],this._viewportData.lineHeight,this._viewportData,s)&&(a[e]=!0,c=!0)}c&&this._finishRenderingNewLines(e,t,s.build(),a)}{s.reset();let t=!1;const c=[];for(let e=0;e<n;e++){const n=r[e];if(c[e]=!1,a[e])continue;n.renderLine(e+o,i[e],this._viewportData.lineHeight,this._viewportData,s)&&(c[e]=!0,t=!0)}t&&this._finishRenderingInvalidLines(e,s.build(),c)}}}class Je extends z{constructor(e){super(e),this._dynamicOverlays=[],this._isFocused=!1,this._visibleLines=new Xe({createLine:()=>new et(this._dynamicOverlays)}),this.domNode=this._visibleLines.domNode;const t=this._context.configuration.options.get(50);(0,g.M)(this.domNode,t),this.domNode.setClassName("view-overlays")}shouldRender(){if(super.shouldRender())return!0;for(let e=0,t=this._dynamicOverlays.length;e<t;e++){if(this._dynamicOverlays[e].shouldRender())return!0}return!1}dispose(){super.dispose();for(let e=0,t=this._dynamicOverlays.length;e<t;e++){this._dynamicOverlays[e].dispose()}this._dynamicOverlays=[]}getDomNode(){return this.domNode}addDynamicOverlay(e){this._dynamicOverlays.push(e)}onConfigurationChanged(e){this._visibleLines.onConfigurationChanged(e);const t=this._context.configuration.options.get(50);return(0,g.M)(this.domNode,t),!0}onFlushed(e){return this._visibleLines.onFlushed(e)}onFocusChanged(e){return this._isFocused=e.isFocused,!0}onLinesChanged(e){return this._visibleLines.onLinesChanged(e)}onLinesDeleted(e){return this._visibleLines.onLinesDeleted(e)}onLinesInserted(e){return this._visibleLines.onLinesInserted(e)}onScrollChanged(e){return this._visibleLines.onScrollChanged(e)||!0}onTokensChanged(e){return this._visibleLines.onTokensChanged(e)}onZonesChanged(e){return this._visibleLines.onZonesChanged(e)}prepareRender(e){const t=this._dynamicOverlays.filter((e=>e.shouldRender()));for(let i=0,s=t.length;i<s;i++){const s=t[i];s.prepareRender(e),s.onDidRender()}}render(e){this._viewOverlaysRender(e),this.domNode.toggleClassName("focused",this._isFocused)}_viewOverlaysRender(e){this._visibleLines.renderLines(e.viewportData)}}class et{constructor(e){this._dynamicOverlays=e,this._domNode=null,this._renderedContent=null}getDomNode(){return this._domNode?this._domNode.domNode:null}setDomNode(e){this._domNode=(0,H.Z)(e)}onContentChanged(){}onTokensChanged(){}renderLine(e,t,i,s,n){let r="";for(let o=0,a=this._dynamicOverlays.length;o<a;o++){r+=this._dynamicOverlays[o].render(s.startLineNumber,e)}return this._renderedContent!==r&&(this._renderedContent=r,n.appendString('<div style="top:'),n.appendString(String(t)),n.appendString("px;height:"),n.appendString(String(i)),n.appendString('px;">'),n.appendString(r),n.appendString("</div>"),!0)}layoutLine(e,t,i){this._domNode&&(this._domNode.setTop(t),this._domNode.setHeight(i))}}class tt extends Je{constructor(e){super(e);const t=this._context.configuration.options.get(146);this._contentWidth=t.contentWidth,this.domNode.setHeight(0)}onConfigurationChanged(e){const t=this._context.configuration.options.get(146);return this._contentWidth=t.contentWidth,super.onConfigurationChanged(e)||!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollWidthChanged}_viewOverlaysRender(e){super._viewOverlaysRender(e),this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth))}}class it extends Je{constructor(e){super(e);const t=this._context.configuration.options,i=t.get(146);this._contentLeft=i.contentLeft,this.domNode.setClassName("margin-view-overlays"),this.domNode.setWidth(1),(0,g.M)(this.domNode,t.get(50))}onConfigurationChanged(e){const t=this._context.configuration.options;(0,g.M)(this.domNode,t.get(50));const i=t.get(146);return this._contentLeft=i.contentLeft,super.onConfigurationChanged(e)||!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollHeightChanged}_viewOverlaysRender(e){super._viewOverlaysRender(e);const t=Math.min(e.scrollHeight,1e6);this.domNode.setHeight(t),this.domNode.setWidth(this._contentLeft)}}class st{constructor(e){this.onKeyDown=null,this.onKeyUp=null,this.onContextMenu=null,this.onMouseMove=null,this.onMouseLeave=null,this.onMouseDown=null,this.onMouseUp=null,this.onMouseDrag=null,this.onMouseDrop=null,this.onMouseDropCanceled=null,this.onMouseWheel=null,this._coordinatesConverter=e}emitKeyDown(e){this.onKeyDown?.(e)}emitKeyUp(e){this.onKeyUp?.(e)}emitContextMenu(e){this.onContextMenu?.(this._convertViewToModelMouseEvent(e))}emitMouseMove(e){this.onMouseMove?.(this._convertViewToModelMouseEvent(e))}emitMouseLeave(e){this.onMouseLeave?.(this._convertViewToModelMouseEvent(e))}emitMouseDown(e){this.onMouseDown?.(this._convertViewToModelMouseEvent(e))}emitMouseUp(e){this.onMouseUp?.(this._convertViewToModelMouseEvent(e))}emitMouseDrag(e){this.onMouseDrag?.(this._convertViewToModelMouseEvent(e))}emitMouseDrop(e){this.onMouseDrop?.(this._convertViewToModelMouseEvent(e))}emitMouseDropCanceled(){this.onMouseDropCanceled?.()}emitMouseWheel(e){this.onMouseWheel?.(e)}_convertViewToModelMouseEvent(e){return e.target?{event:e.event,target:this._convertViewToModelMouseTarget(e.target)}:e}_convertViewToModelMouseTarget(e){return st.convertViewToModelMouseTarget(e,this._coordinatesConverter)}static convertViewToModelMouseTarget(e,t){const i={...e};return i.position&&(i.position=t.convertViewPositionToModelPosition(i.position)),i.range&&(i.range=t.convertViewRangeToModelRange(i.range)),5!==i.type&&8!==i.type||(i.detail=this.convertViewToModelViewZoneData(i.detail,t)),i}static convertViewToModelViewZoneData(e,t){return{viewZoneId:e.viewZoneId,positionBefore:e.positionBefore?t.convertViewPositionToModelPosition(e.positionBefore):e.positionBefore,positionAfter:e.positionAfter?t.convertViewPositionToModelPosition(e.positionAfter):e.positionAfter,position:t.convertViewPositionToModelPosition(e.position),afterLineNumber:t.convertViewPositionToModelPosition(new Y.y(e.afterLineNumber,1)).lineNumber}}}class nt extends z{constructor(e){super(e),this.blocks=[],this.contentWidth=-1,this.contentLeft=0,this.domNode=(0,H.Z)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.domNode.setClassName("blockDecorations-container"),this.update()}update(){let e=!1;const t=this._context.configuration.options.get(146),i=t.contentWidth-t.verticalScrollbarWidth;this.contentWidth!==i&&(this.contentWidth=i,e=!0);const s=t.contentLeft;return this.contentLeft!==s&&(this.contentLeft=s,e=!0),e}dispose(){super.dispose()}onConfigurationChanged(e){return this.update()}onScrollChanged(e){return e.scrollTopChanged||e.scrollLeftChanged}onDecorationsChanged(e){return!0}onZonesChanged(e){return!0}prepareRender(e){}render(e){let t=0;const i=e.getDecorationsInViewport();for(const s of i){if(!s.options.blockClassName)continue;let i,n,r=this.blocks[t];r||(r=this.blocks[t]=(0,H.Z)(document.createElement("div")),this.domNode.appendChild(r)),s.options.blockIsAfterEnd?(i=e.getVerticalOffsetAfterLineNumber(s.range.endLineNumber,!1),n=e.getVerticalOffsetAfterLineNumber(s.range.endLineNumber,!0)):(i=e.getVerticalOffsetForLineNumber(s.range.startLineNumber,!0),n=s.range.isEmpty()&&!s.options.blockDoesNotCollapse?e.getVerticalOffsetForLineNumber(s.range.startLineNumber,!1):e.getVerticalOffsetAfterLineNumber(s.range.endLineNumber,!0));const[o,a,c,l]=s.options.blockPadding??[0,0,0,0];r.setClassName("blockDecorations-block "+s.options.blockClassName),r.setLeft(this.contentLeft-l),r.setWidth(this.contentWidth+l+a),r.setTop(i-e.scrollTop-o),r.setHeight(n-i+o+c),t++}for(let s=t;s<this.blocks.length;s++)this.blocks[s].domNode.remove();this.blocks.length=t}}class rt extends z{constructor(e,t){super(e),this._viewDomNode=t,this._widgets={},this.domNode=(0,H.Z)(document.createElement("div")),G.write(this.domNode,1),this.domNode.setClassName("contentWidgets"),this.domNode.setPosition("absolute"),this.domNode.setTop(0),this.overflowingContentWidgetsDomNode=(0,H.Z)(document.createElement("div")),G.write(this.overflowingContentWidgetsDomNode,2),this.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets")}dispose(){super.dispose(),this._widgets={}}onConfigurationChanged(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].onConfigurationChanged(e);return!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLineMappingChanged(e){return this._updateAnchorsViewPositions(),!0}onLinesChanged(e){return this._updateAnchorsViewPositions(),!0}onLinesDeleted(e){return this._updateAnchorsViewPositions(),!0}onLinesInserted(e){return this._updateAnchorsViewPositions(),!0}onScrollChanged(e){return!0}onZonesChanged(e){return!0}_updateAnchorsViewPositions(){const e=Object.keys(this._widgets);for(const t of e)this._widgets[t].updateAnchorViewPosition()}addWidget(e){const t=new ot(this._context,this._viewDomNode,e);this._widgets[t.id]=t,t.allowEditorOverflow?this.overflowingContentWidgetsDomNode.appendChild(t.domNode):this.domNode.appendChild(t.domNode),this.setShouldRender()}setWidgetPosition(e,t,i,s,n){this._widgets[e.getId()].setPosition(t,i,s,n),this.setShouldRender()}removeWidget(e){const t=e.getId();if(this._widgets.hasOwnProperty(t)){const e=this._widgets[t];delete this._widgets[t];const i=e.domNode.domNode;i.remove(),i.removeAttribute("monaco-visible-content-widget"),this.setShouldRender()}}shouldSuppressMouseDownOnWidget(e){return!!this._widgets.hasOwnProperty(e)&&this._widgets[e].suppressMouseDown}onBeforeRender(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].onBeforeRender(e)}prepareRender(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].prepareRender(e)}render(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].render(e)}}class ot{constructor(e,t,i){this._primaryAnchor=new at(null,null),this._secondaryAnchor=new at(null,null),this._context=e,this._viewDomNode=t,this._actual=i,this.domNode=(0,H.Z)(this._actual.getDomNode()),this.id=this._actual.getId(),this.allowEditorOverflow=this._actual.allowEditorOverflow||!1,this.suppressMouseDown=this._actual.suppressMouseDown||!1;const s=this._context.configuration.options,n=s.get(146);this._fixedOverflowWidgets=s.get(42),this._contentWidth=n.contentWidth,this._contentLeft=n.contentLeft,this._lineHeight=s.get(67),this._affinity=null,this._preference=[],this._cachedDomNodeOffsetWidth=-1,this._cachedDomNodeOffsetHeight=-1,this._maxWidth=this._getMaxWidth(),this._isVisible=!1,this._renderData=null,this.domNode.setPosition(this._fixedOverflowWidgets&&this.allowEditorOverflow?"fixed":"absolute"),this.domNode.setDisplay("none"),this.domNode.setVisibility("hidden"),this.domNode.setAttribute("widgetId",this.id),this.domNode.setMaxWidth(this._maxWidth)}onConfigurationChanged(e){const t=this._context.configuration.options;if(this._lineHeight=t.get(67),e.hasChanged(146)){const e=t.get(146);this._contentLeft=e.contentLeft,this._contentWidth=e.contentWidth,this._maxWidth=this._getMaxWidth()}}updateAnchorViewPosition(){this._setPosition(this._affinity,this._primaryAnchor.modelPosition,this._secondaryAnchor.modelPosition)}_setPosition(e,t,i){function s(e,t,i){if(!e)return new at(null,null);const s=t.model.validatePosition(e);if(t.coordinatesConverter.modelPositionIsVisible(s)){const n=t.coordinatesConverter.convertModelPositionToViewPosition(s,i??void 0);return new at(e,n)}return new at(e,null)}this._affinity=e,this._primaryAnchor=s(t,this._context.viewModel,this._affinity),this._secondaryAnchor=s(i,this._context.viewModel,this._affinity)}_getMaxWidth(){const e=this.domNode.domNode.ownerDocument,t=e.defaultView;return this.allowEditorOverflow?t?.innerWidth||e.documentElement.offsetWidth||e.body.offsetWidth:this._contentWidth}setPosition(e,t,i,s){this._setPosition(s,e,t),this._preference=i,this._primaryAnchor.viewPosition&&this._preference&&this._preference.length>0?this.domNode.setDisplay("block"):this.domNode.setDisplay("none"),this._cachedDomNodeOffsetWidth=-1,this._cachedDomNodeOffsetHeight=-1}_layoutBoxInViewport(e,t,i,s){const n=e.top,r=n,o=e.top+e.height,a=n-i,c=r>=i,l=o,h=s.viewportHeight-o>=i;let d=e.left;return d+t>s.scrollLeft+s.viewportWidth&&(d=s.scrollLeft+s.viewportWidth-t),d<s.scrollLeft&&(d=s.scrollLeft),{fitsAbove:c,aboveTop:a,fitsBelow:h,belowTop:l,left:d}}_layoutHorizontalSegmentInPage(e,t,i,s){const n=Math.max(15,t.left-s),r=Math.min(t.left+t.width+s,e.width-15),o=this._viewDomNode.domNode.ownerDocument.defaultView;let a=t.left+i-(o?.scrollX??0);if(a+s>r){const e=a-(r-s);a-=e,i-=e}if(a<n){const e=a-n;a-=e,i-=e}return[i,a]}_layoutBoxInPage(e,t,i,s){const n=e.top-i,r=e.top+e.height,o=c.BK(this._viewDomNode.domNode),a=this._viewDomNode.domNode.ownerDocument,l=a.defaultView,h=o.top+n-(l?.scrollY??0),d=o.top+r-(l?.scrollY??0),u=c.tG(a.body),[g,p]=this._layoutHorizontalSegmentInPage(u,o,e.left-s.scrollLeft+this._contentLeft,t),m=h>=22,f=d+i<=u.height-22;return this._fixedOverflowWidgets?{fitsAbove:m,aboveTop:Math.max(h,22),fitsBelow:f,belowTop:d,left:p}:{fitsAbove:m,aboveTop:n,fitsBelow:f,belowTop:r,left:g}}_prepareRenderWidgetAtExactPositionOverflowing(e){return new ct(e.top,e.left+this._contentLeft)}_getAnchorsCoordinates(e){return{primary:t(this._primaryAnchor.viewPosition,this._affinity,this._lineHeight),secondary:t(this._secondaryAnchor.viewPosition?.lineNumber===this._primaryAnchor.viewPosition?.lineNumber?this._secondaryAnchor.viewPosition:null,this._affinity,this._lineHeight)};function t(t,i,s){if(!t)return null;const n=e.visibleRangeForPosition(t);if(!n)return null;const r=1===t.column&&3===i?0:n.left,o=e.getVerticalOffsetForLineNumber(t.lineNumber)-e.scrollTop;return new lt(o,r,s)}}_reduceAnchorCoordinates(e,t,i){if(!t)return e;const s=this._context.configuration.options.get(50);let n=t.left;return n=n<e.left?Math.max(n,e.left-i+s.typicalFullwidthCharacterWidth):Math.min(n,e.left+i-s.typicalFullwidthCharacterWidth),new lt(e.top,n,e.height)}_prepareRenderWidget(e){if(!this._preference||0===this._preference.length)return null;const{primary:t,secondary:i}=this._getAnchorsCoordinates(e);if(!t)return{kind:"offViewport",preserveFocus:this.domNode.domNode.contains(this.domNode.domNode.ownerDocument.activeElement)};if(-1===this._cachedDomNodeOffsetWidth||-1===this._cachedDomNodeOffsetHeight){let e=null;if("function"===typeof this._actual.beforeRender&&(e=ht(this._actual.beforeRender,this._actual)),e)this._cachedDomNodeOffsetWidth=e.width,this._cachedDomNodeOffsetHeight=e.height;else{const e=this.domNode.domNode.getBoundingClientRect();this._cachedDomNodeOffsetWidth=Math.round(e.width),this._cachedDomNodeOffsetHeight=Math.round(e.height)}}const s=this._reduceAnchorCoordinates(t,i,this._cachedDomNodeOffsetWidth);let n;n=this.allowEditorOverflow?this._layoutBoxInPage(s,this._cachedDomNodeOffsetWidth,this._cachedDomNodeOffsetHeight,e):this._layoutBoxInViewport(s,this._cachedDomNodeOffsetWidth,this._cachedDomNodeOffsetHeight,e);for(let r=1;r<=2;r++)for(const e of this._preference)if(1===e){if(!n)return null;if(2===r||n.fitsAbove)return{kind:"inViewport",coordinate:new ct(n.aboveTop,n.left),position:1}}else{if(2!==e)return this.allowEditorOverflow?{kind:"inViewport",coordinate:this._prepareRenderWidgetAtExactPositionOverflowing(new ct(s.top,s.left)),position:0}:{kind:"inViewport",coordinate:new ct(s.top,s.left),position:0};if(!n)return null;if(2===r||n.fitsBelow)return{kind:"inViewport",coordinate:new ct(n.belowTop,n.left),position:2}}return null}onBeforeRender(e){this._primaryAnchor.viewPosition&&this._preference&&(this._primaryAnchor.viewPosition.lineNumber<e.startLineNumber||this._primaryAnchor.viewPosition.lineNumber>e.endLineNumber||this.domNode.setMaxWidth(this._maxWidth))}prepareRender(e){this._renderData=this._prepareRenderWidget(e)}render(e){if(!this._renderData||"offViewport"===this._renderData.kind)return this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,"offViewport"===this._renderData?.kind&&this._renderData.preserveFocus?this.domNode.setTop(-1e3):this.domNode.setVisibility("hidden")),void("function"===typeof this._actual.afterRender&&ht(this._actual.afterRender,this._actual,null));this.allowEditorOverflow?(this.domNode.setTop(this._renderData.coordinate.top),this.domNode.setLeft(this._renderData.coordinate.left)):(this.domNode.setTop(this._renderData.coordinate.top+e.scrollTop-e.bigNumbersDelta),this.domNode.setLeft(this._renderData.coordinate.left)),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0),"function"===typeof this._actual.afterRender&&ht(this._actual.afterRender,this._actual,this._renderData.position)}}class at{constructor(e,t){this.modelPosition=e,this.viewPosition=t}}class ct{constructor(e,t){this.top=e,this.left=t,this._coordinateBrand=void 0}}class lt{constructor(e,t,i){this.top=e,this.left=t,this.height=i,this._anchorCoordinateBrand=void 0}}function ht(e,t,...i){try{return e.call(t,...i)}catch{return null}}var dt=i(86723);class ut extends xe{constructor(e){super(),this._context=e;const t=this._context.configuration.options,i=t.get(146);this._renderLineHighlight=t.get(97),this._renderLineHighlightOnlyWhenFocus=t.get(98),this._wordWrap=i.isViewportWrapping,this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,this._selectionIsEmpty=!0,this._focused=!1,this._cursorLineNumbers=[1],this._selections=[new pe.L(1,1,1,1)],this._renderData=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}_readFromSelections(){let e=!1;const t=new Set;for(const n of this._selections)t.add(n.positionLineNumber);const i=Array.from(t);i.sort(((e,t)=>e-t)),m.aI(this._cursorLineNumbers,i)||(this._cursorLineNumbers=i,e=!0);const s=this._selections.every((e=>e.isEmpty()));return this._selectionIsEmpty!==s&&(this._selectionIsEmpty=s,e=!0),e}onThemeChanged(e){return this._readFromSelections()}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(146);return this._renderLineHighlight=t.get(97),this._renderLineHighlightOnlyWhenFocus=t.get(98),this._wordWrap=i.isViewportWrapping,this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,!0}onCursorStateChanged(e){return this._selections=e.selections,this._readFromSelections()}onFlushed(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollWidthChanged||e.scrollTopChanged}onZonesChanged(e){return!0}onFocusChanged(e){return!!this._renderLineHighlightOnlyWhenFocus&&(this._focused=e.isFocused,!0)}prepareRender(e){if(!this._shouldRenderThis())return void(this._renderData=null);const t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,s=[];for(let r=t;r<=i;r++){s[r-t]=""}if(this._wordWrap){const n=this._renderOne(e,!1);for(const e of this._cursorLineNumbers){const r=this._context.viewModel.coordinatesConverter,o=r.convertViewPositionToModelPosition(new Y.y(e,1)).lineNumber,a=r.convertModelPositionToViewPosition(new Y.y(o,1)).lineNumber,c=r.convertModelPositionToViewPosition(new Y.y(o,this._context.viewModel.model.getLineMaxColumn(o))).lineNumber,l=Math.max(a,t),h=Math.min(c,i);for(let e=l;e<=h;e++){s[e-t]=n}}}const n=this._renderOne(e,!0);for(const r of this._cursorLineNumbers){if(r<t||r>i)continue;s[r-t]=n}this._renderData=s}render(e,t){if(!this._renderData)return"";const i=t-e;return i>=this._renderData.length?"":this._renderData[i]}_shouldRenderInMargin(){return("gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}_shouldRenderInContent(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}}class gt extends ut{_renderOne(e,t){return`<div class="${"current-line"+(this._shouldRenderInMargin()?" current-line-both":"")+(t?" current-line-exact":"")}" style="width:${Math.max(e.scrollWidth,this._contentWidth)}px;"></div>`}_shouldRenderThis(){return this._shouldRenderInContent()}_shouldRenderOther(){return this._shouldRenderInMargin()}}class pt extends ut{_renderOne(e,t){return`<div class="${"current-line"+(this._shouldRenderInMargin()?" current-line-margin":"")+(this._shouldRenderOther()?" current-line-margin-both":"")+(this._shouldRenderInMargin()&&t?" current-line-exact-margin":"")}" style="width:${this._contentLeft}px"></div>`}_shouldRenderThis(){return!0}_shouldRenderOther(){return this._shouldRenderInContent()}}(0,ke.zy)(((e,t)=>{const i=e.getColor(Ae.kG);if(i&&(t.addRule(`.monaco-editor .view-overlays .current-line { background-color: ${i}; }`),t.addRule(`.monaco-editor .margin-view-overlays .current-line-margin { background-color: ${i}; border: none; }`)),!i||i.isTransparent()||e.defines(Ae.Mf)){const i=e.getColor(Ae.Mf);i&&(t.addRule(`.monaco-editor .view-overlays .current-line-exact { border: 2px solid ${i}; }`),t.addRule(`.monaco-editor .margin-view-overlays .current-line-exact-margin { border: 2px solid ${i}; }`),(0,dt.Bb)(e.type)&&(t.addRule(".monaco-editor .view-overlays .current-line-exact { border-width: 1px; }"),t.addRule(".monaco-editor .margin-view-overlays .current-line-exact-margin { border-width: 1px; }")))}}));class mt extends xe{constructor(e){super(),this._context=e;const t=this._context.configuration.options;this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged||e.scrollWidthChanged}onZonesChanged(e){return!0}prepareRender(e){const t=e.getDecorationsInViewport();let i=[],s=0;for(let a=0,c=t.length;a<c;a++){const e=t[a];e.options.className&&(i[s++]=e)}i=i.sort(((e,t)=>{if(e.options.zIndex<t.options.zIndex)return-1;if(e.options.zIndex>t.options.zIndex)return 1;const i=e.options.className,s=t.options.className;return i<s?-1:i>s?1:q.Q.compareRangesUsingStarts(e.range,t.range)}));const n=e.visibleRange.startLineNumber,r=e.visibleRange.endLineNumber,o=[];for(let a=n;a<=r;a++){o[a-n]=""}this._renderWholeLineDecorations(e,i,o),this._renderNormalDecorations(e,i,o),this._renderResult=o}_renderWholeLineDecorations(e,t,i){const s=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber;for(let r=0,o=t.length;r<o;r++){const e=t[r];if(!e.options.isWholeLine)continue;const o='<div class="cdr '+e.options.className+'" style="left:0;width:100%;"></div>',a=Math.max(e.range.startLineNumber,s),c=Math.min(e.range.endLineNumber,n);for(let t=a;t<=c;t++){i[t-s]+=o}}}_renderNormalDecorations(e,t,i){const s=e.visibleRange.startLineNumber;let n=null,r=!1,o=null,a=!1;for(let c=0,l=t.length;c<l;c++){const l=t[c];if(l.options.isWholeLine)continue;const h=l.options.className,d=Boolean(l.options.showIfCollapsed);let u=l.range;d&&1===u.endColumn&&u.endLineNumber!==u.startLineNumber&&(u=new q.Q(u.startLineNumber,u.startColumn,u.endLineNumber-1,this._context.viewModel.getLineMaxColumn(u.endLineNumber-1))),n===h&&r===d&&q.Q.areIntersectingOrTouching(o,u)?o=q.Q.plusRange(o,u):(null!==n&&this._renderNormalDecoration(e,o,n,a,r,s,i),n=h,r=d,o=u,a=l.options.shouldFillLineOnLineBreak??!1)}null!==n&&this._renderNormalDecoration(e,o,n,a,r,s,i)}_renderNormalDecoration(e,t,i,s,n,r,o){const a=e.linesVisibleRangesForRange(t,"findMatch"===i);if(a)for(let c=0,l=a.length;c<l;c++){const e=a[c];if(e.outsideRenderedLine)continue;const t=e.lineNumber-r;if(n&&1===e.ranges.length){const t=e.ranges[0];if(t.width<this._typicalHalfwidthCharacterWidth){const i=Math.round(t.left+t.width/2),s=Math.max(0,Math.round(i-this._typicalHalfwidthCharacterWidth/2));e.ranges[0]=new je.Y(s,this._typicalHalfwidthCharacterWidth)}}for(let n=0,r=e.ranges.length;n<r;n++){const a=s&&e.continuesOnNextLine&&1===r,c=e.ranges[n],l='<div class="cdr '+i+'" style="left:'+String(c.left)+"px;width:"+(a?"100%;":String(c.width)+"px;")+'"></div>';o[t]+=l}}}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}class ft extends z{constructor(e,t,i,s){super(e);const n=this._context.configuration.options,r=n.get(104),o=n.get(75),a=n.get(40),l=n.get(107),h={listenOnDomNode:i.domNode,className:"editor-scrollable "+(0,ke.Pz)(e.theme.type),useShadows:!1,lazyRender:!0,vertical:r.vertical,horizontal:r.horizontal,verticalHasArrows:r.verticalHasArrows,horizontalHasArrows:r.horizontalHasArrows,verticalScrollbarSize:r.verticalScrollbarSize,verticalSliderSize:r.verticalSliderSize,horizontalScrollbarSize:r.horizontalScrollbarSize,horizontalSliderSize:r.horizontalSliderSize,handleMouseWheel:r.handleMouseWheel,alwaysConsumeMouseWheel:r.alwaysConsumeMouseWheel,arrowSize:r.arrowSize,mouseWheelScrollSensitivity:o,fastScrollSensitivity:a,scrollPredominantAxis:l,scrollByPage:r.scrollByPage};this.scrollbar=this._register(new me.oO(t.domNode,h,this._context.viewLayout.getScrollable())),G.write(this.scrollbar.getDomNode(),6),this.scrollbarDomNode=(0,H.Z)(this.scrollbar.getDomNode()),this.scrollbarDomNode.setPosition("absolute"),this._setLayout();const d=(e,t,i)=>{const s={};if(t){const t=e.scrollTop;t&&(s.scrollTop=this._context.viewLayout.getCurrentScrollTop()+t,e.scrollTop=0)}if(i){const t=e.scrollLeft;t&&(s.scrollLeft=this._context.viewLayout.getCurrentScrollLeft()+t,e.scrollLeft=0)}this._context.viewModel.viewLayout.setScrollPosition(s,1)};this._register(c.ko(i.domNode,"scroll",(e=>d(i.domNode,!0,!0)))),this._register(c.ko(t.domNode,"scroll",(e=>d(t.domNode,!0,!1)))),this._register(c.ko(s.domNode,"scroll",(e=>d(s.domNode,!0,!1)))),this._register(c.ko(this.scrollbarDomNode.domNode,"scroll",(e=>d(this.scrollbarDomNode.domNode,!0,!1))))}dispose(){super.dispose()}_setLayout(){const e=this._context.configuration.options,t=e.get(146);this.scrollbarDomNode.setLeft(t.contentLeft);"right"===e.get(73).side?this.scrollbarDomNode.setWidth(t.contentWidth+t.minimap.minimapWidth):this.scrollbarDomNode.setWidth(t.contentWidth),this.scrollbarDomNode.setHeight(t.height)}getOverviewRulerLayoutInfo(){return this.scrollbar.getOverviewRulerLayoutInfo()}getDomNode(){return this.scrollbarDomNode}delegateVerticalScrollbarPointerDown(e){this.scrollbar.delegateVerticalScrollbarPointerDown(e)}delegateScrollFromMouseWheelEvent(e){this.scrollbar.delegateScrollFromMouseWheelEvent(e)}onConfigurationChanged(e){if(e.hasChanged(104)||e.hasChanged(75)||e.hasChanged(40)){const e=this._context.configuration.options,t=e.get(104),i=e.get(75),s=e.get(40),n=e.get(107),r={vertical:t.vertical,horizontal:t.horizontal,verticalScrollbarSize:t.verticalScrollbarSize,horizontalScrollbarSize:t.horizontalScrollbarSize,scrollByPage:t.scrollByPage,handleMouseWheel:t.handleMouseWheel,mouseWheelScrollSensitivity:i,fastScrollSensitivity:s,scrollPredominantAxis:n};this.scrollbar.updateOptions(r)}return e.hasChanged(146)&&this._setLayout(),!0}onScrollChanged(e){return!0}onThemeChanged(e){return this.scrollbar.updateClassName("editor-scrollable "+(0,ke.Pz)(this._context.theme.type)),!0}prepareRender(e){}render(e){this.scrollbar.renderNow()}}var _t=i(16223);class vt{constructor(e,t,i,s,n){this.startLineNumber=e,this.endLineNumber=t,this.className=i,this.tooltip=s,this._decorationToRenderBrand=void 0,this.zIndex=n??0}}class Ct{constructor(e,t,i){this.className=e,this.zIndex=t,this.tooltip=i}}class Et{constructor(){this.decorations=[]}add(e){this.decorations.push(e)}getDecorations(){return this.decorations}}class bt extends xe{_render(e,t,i){const s=[];for(let o=e;o<=t;o++){s[o-e]=new Et}if(0===i.length)return s;i.sort(((e,t)=>e.className===t.className?e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber:e.className<t.className?-1:1));let n=null,r=0;for(let o=0,a=i.length;o<a;o++){const a=i[o],c=a.className,l=a.zIndex;let h=Math.max(a.startLineNumber,e)-e;const d=Math.min(a.endLineNumber,t)-e;n===c?(h=Math.max(r+1,h),r=Math.max(r,d)):(n=c,r=d);for(let e=h;e<=r;e++)s[e].add(new Ct(c,l,a.tooltip))}return s}}class St extends z{constructor(e){super(e),this._widgets={},this._context=e;const t=this._context.configuration.options,i=t.get(146);this.domNode=(0,H.Z)(document.createElement("div")),this.domNode.setClassName("glyph-margin-widgets"),this.domNode.setPosition("absolute"),this.domNode.setTop(0),this._lineHeight=t.get(67),this._glyphMargin=t.get(57),this._glyphMarginLeft=i.glyphMarginLeft,this._glyphMarginWidth=i.glyphMarginWidth,this._glyphMarginDecorationLaneCount=i.glyphMarginDecorationLaneCount,this._managedDomNodes=[],this._decorationGlyphsToRender=[]}dispose(){this._managedDomNodes=[],this._decorationGlyphsToRender=[],this._widgets={},super.dispose()}getWidgets(){return Object.values(this._widgets)}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(146);return this._lineHeight=t.get(67),this._glyphMargin=t.get(57),this._glyphMarginLeft=i.glyphMarginLeft,this._glyphMarginWidth=i.glyphMarginWidth,this._glyphMarginDecorationLaneCount=i.glyphMarginDecorationLaneCount,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}addWidget(e){const t=(0,H.Z)(e.getDomNode());this._widgets[e.getId()]={widget:e,preference:e.getPosition(),domNode:t,renderInfo:null},t.setPosition("absolute"),t.setDisplay("none"),t.setAttribute("widgetId",e.getId()),this.domNode.appendChild(t),this.setShouldRender()}setWidgetPosition(e,t){const i=this._widgets[e.getId()];return(i.preference.lane!==t.lane||i.preference.zIndex!==t.zIndex||!q.Q.equalsRange(i.preference.range,t.range))&&(i.preference=t,this.setShouldRender(),!0)}removeWidget(e){const t=e.getId();if(this._widgets[t]){const e=this._widgets[t].domNode.domNode;delete this._widgets[t],e.remove(),this.setShouldRender()}}_collectDecorationBasedGlyphRenderRequest(e,t){const i=e.visibleRange.startLineNumber,s=e.visibleRange.endLineNumber,n=e.getDecorationsInViewport();for(const r of n){const e=r.options.glyphMarginClassName;if(!e)continue;const n=Math.max(r.range.startLineNumber,i),o=Math.min(r.range.endLineNumber,s),a=r.options.glyphMargin?.position??_t.ZS.Center,c=r.options.zIndex??0;for(let i=n;i<=o;i++){const s=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new Y.y(i,0)),n=this._context.viewModel.glyphLanes.getLanesAtLine(s.lineNumber).indexOf(a);t.push(new yt(i,n,c,e))}}}_collectWidgetBasedGlyphRenderRequest(e,t){const i=e.visibleRange.startLineNumber,s=e.visibleRange.endLineNumber;for(const n of Object.values(this._widgets)){const e=n.preference.range,{startLineNumber:r,endLineNumber:o}=this._context.viewModel.coordinatesConverter.convertModelRangeToViewRange(q.Q.lift(e));if(!r||!o||o<i||r>s)continue;const a=Math.max(r,i),c=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new Y.y(a,0)),l=this._context.viewModel.glyphLanes.getLanesAtLine(c.lineNumber).indexOf(n.preference.lane);t.push(new wt(a,l,n.preference.zIndex,n))}}_collectSortedGlyphRenderRequests(e){const t=[];return this._collectDecorationBasedGlyphRenderRequest(e,t),this._collectWidgetBasedGlyphRenderRequest(e,t),t.sort(((e,t)=>e.lineNumber===t.lineNumber?e.laneIndex===t.laneIndex?e.zIndex===t.zIndex?t.type===e.type?0===e.type&&0===t.type?e.className<t.className?-1:1:0:t.type-e.type:t.zIndex-e.zIndex:e.laneIndex-t.laneIndex:e.lineNumber-t.lineNumber)),t}prepareRender(e){if(!this._glyphMargin)return void(this._decorationGlyphsToRender=[]);for(const s of Object.values(this._widgets))s.renderInfo=null;const t=new m.j3(this._collectSortedGlyphRenderRequests(e)),i=[];for(;t.length>0;){const e=t.peek();if(!e)break;const s=t.takeWhile((t=>t.lineNumber===e.lineNumber&&t.laneIndex===e.laneIndex));if(!s||0===s.length)break;const n=s[0];if(0===n.type){const e=[];for(const t of s){if(t.zIndex!==n.zIndex||t.type!==n.type)break;0!==e.length&&e[e.length-1]===t.className||e.push(t.className)}i.push(n.accept(e.join(" ")))}else n.widget.renderInfo={lineNumber:n.lineNumber,laneIndex:n.laneIndex}}this._decorationGlyphsToRender=i}render(e){if(!this._glyphMargin){for(const e of Object.values(this._widgets))e.domNode.setDisplay("none");for(;this._managedDomNodes.length>0;){const e=this._managedDomNodes.pop();e?.domNode.remove()}return}const t=Math.round(this._glyphMarginWidth/this._glyphMarginDecorationLaneCount);for(const i of Object.values(this._widgets))if(i.renderInfo){const s=e.viewportData.relativeVerticalOffset[i.renderInfo.lineNumber-e.viewportData.startLineNumber],n=this._glyphMarginLeft+i.renderInfo.laneIndex*this._lineHeight;i.domNode.setDisplay("block"),i.domNode.setTop(s),i.domNode.setLeft(n),i.domNode.setWidth(t),i.domNode.setHeight(this._lineHeight)}else i.domNode.setDisplay("none");for(let i=0;i<this._decorationGlyphsToRender.length;i++){const s=this._decorationGlyphsToRender[i],n=e.viewportData.relativeVerticalOffset[s.lineNumber-e.viewportData.startLineNumber],r=this._glyphMarginLeft+s.laneIndex*this._lineHeight;let o;i<this._managedDomNodes.length?o=this._managedDomNodes[i]:(o=(0,H.Z)(document.createElement("div")),this._managedDomNodes.push(o),this.domNode.appendChild(o)),o.setClassName("cgmr codicon "+s.combinedClassName),o.setPosition("absolute"),o.setTop(n),o.setLeft(r),o.setWidth(t),o.setHeight(this._lineHeight)}for(;this._managedDomNodes.length>this._decorationGlyphsToRender.length;){const e=this._managedDomNodes.pop();e?.domNode.remove()}}}class yt{constructor(e,t,i,s){this.lineNumber=e,this.laneIndex=t,this.zIndex=i,this.className=s,this.type=0}accept(e){return new Rt(this.lineNumber,this.laneIndex,e)}}class wt{constructor(e,t,i,s){this.lineNumber=e,this.laneIndex=t,this.zIndex=i,this.widget=s,this.type=1}}class Rt{constructor(e,t,i){this.lineNumber=e,this.laneIndex=t,this.combinedClassName=i}}var Lt=i(631),Tt=i(53450),xt=i(84739);class kt extends xe{constructor(e){super(),this._context=e,this._primaryPosition=null;const t=this._context.configuration.options,i=t.get(147),s=t.get(50);this._spaceWidth=s.spaceWidth,this._maxIndentLeft=-1===i.wrappingColumn?-1:i.wrappingColumn*s.typicalHalfwidthCharacterWidth,this._bracketPairGuideOptions=t.get(16),this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(147),s=t.get(50);return this._spaceWidth=s.spaceWidth,this._maxIndentLeft=-1===i.wrappingColumn?-1:i.wrappingColumn*s.typicalHalfwidthCharacterWidth,this._bracketPairGuideOptions=t.get(16),!0}onCursorStateChanged(e){const t=e.selections[0].getPosition();return!this._primaryPosition?.equals(t)&&(this._primaryPosition=t,!0)}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}onLanguageConfigurationChanged(e){return!0}prepareRender(e){if(!this._bracketPairGuideOptions.indentation&&!1===this._bracketPairGuideOptions.bracketPairs)return void(this._renderResult=null);const t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,s=e.scrollWidth,n=this._primaryPosition,r=this.getGuidesByLine(t,Math.min(i+1,this._context.viewModel.getLineCount()),n),o=[];for(let a=t;a<=i;a++){const i=a-t,n=r[i];let c="";const l=e.visibleRangeForPosition(new Y.y(a,1))?.left??0;for(const t of n){const i=-1===t.column?l+(t.visibleColumn-1)*this._spaceWidth:e.visibleRangeForPosition(new Y.y(a,t.column)).left;if(i>s||this._maxIndentLeft>0&&i>this._maxIndentLeft)break;const n=t.horizontalLine?t.horizontalLine.top?"horizontal-top":"horizontal-bottom":"vertical",r=t.horizontalLine?(e.visibleRangeForPosition(new Y.y(a,t.horizontalLine.endColumn))?.left??i+this._spaceWidth)-i:this._spaceWidth;c+=`<div class="core-guide ${t.className} ${n}" style="left:${i}px;width:${r}px"></div>`}o[i]=c}this._renderResult=o}getGuidesByLine(e,t,i){const s=!1!==this._bracketPairGuideOptions.bracketPairs?this._context.viewModel.getBracketGuidesInRangeByLine(e,t,i,{highlightActive:this._bracketPairGuideOptions.highlightActiveBracketPair,horizontalGuides:!0===this._bracketPairGuideOptions.bracketPairsHorizontal?xt.N6.Enabled:"active"===this._bracketPairGuideOptions.bracketPairsHorizontal?xt.N6.EnabledForActive:xt.N6.Disabled,includeInactive:!0===this._bracketPairGuideOptions.bracketPairs}):null,n=this._bracketPairGuideOptions.indentation?this._context.viewModel.getLinesIndentGuides(e,t):null;let r=0,o=0,a=0;if(!1!==this._bracketPairGuideOptions.highlightActiveIndentation&&i){const s=this._context.viewModel.getActiveIndentGuide(i.lineNumber,e,t);r=s.startLineNumber,o=s.endLineNumber,a=s.indent}const{indentSize:c}=this._context.viewModel.model.getOptions(),l=[];for(let h=e;h<=t;h++){const t=new Array;l.push(t);const i=s?s[h-e]:[],d=new m.j3(i),u=n?n[h-e]:0;for(let e=1;e<=u;e++){const s=(e-1)*c+1,n=("always"===this._bracketPairGuideOptions.highlightActiveIndentation||0===i.length)&&r<=h&&h<=o&&e===a;t.push(...d.takeWhile((e=>e.visibleColumn<s))||[]);const l=d.peek();l&&l.visibleColumn===s&&!l.horizontalLine||t.push(new xt.TH(s,-1,"core-guide-indent lvl-"+(e-1)%30+(n?" indent-active":""),null,-1,-1))}t.push(...d.takeWhile((e=>!0))||[])}return l}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}function At(e){if(!e||!e.isTransparent())return e}(0,ke.zy)(((e,t)=>{const i=[{bracketColor:Ae.sN,guideColor:Ae.n4,guideColorActive:Ae.bB},{bracketColor:Ae.lQ,guideColor:Ae.I2,guideColorActive:Ae.WS},{bracketColor:Ae.ss,guideColor:Ae.Bo,guideColorActive:Ae.Pe},{bracketColor:Ae.l5,guideColor:Ae.If,guideColorActive:Ae.WD},{bracketColor:Ae.sH,guideColor:Ae.BD,guideColorActive:Ae.P1},{bracketColor:Ae.zp,guideColor:Ae.IW,guideColorActive:Ae.WY}],s=new Tt.k,n=[{indentColor:Ae.vV,indentColorActive:Ae.H0},{indentColor:Ae.ob,indentColorActive:Ae.Am},{indentColor:Ae.hz,indentColorActive:Ae.tK},{indentColor:Ae.ow,indentColorActive:Ae.A3},{indentColor:Ae.vP,indentColorActive:Ae.tp},{indentColor:Ae.CM,indentColorActive:Ae.As}],r=i.map((t=>{const i=e.getColor(t.bracketColor),s=e.getColor(t.guideColor),n=e.getColor(t.guideColorActive),r=At(At(s)??i?.transparent(.3)),o=At(At(n)??i);if(r&&o)return{guideColor:r,guideColorActive:o}})).filter(Lt.O9),o=n.map((t=>{const i=e.getColor(t.indentColor),s=e.getColor(t.indentColorActive),n=At(i),r=At(s);if(n&&r)return{indentColor:n,indentColorActive:r}})).filter(Lt.O9);if(r.length>0){for(let e=0;e<30;e++){const i=r[e%r.length];t.addRule(`.monaco-editor .${s.getInlineClassNameOfLevel(e).replace(/ /g,".")} { --guide-color: ${i.guideColor}; --guide-color-active: ${i.guideColorActive}; }`)}t.addRule(".monaco-editor .vertical { box-shadow: 1px 0 0 0 var(--guide-color) inset; }"),t.addRule(".monaco-editor .horizontal-top { border-top: 1px solid var(--guide-color); }"),t.addRule(".monaco-editor .horizontal-bottom { border-bottom: 1px solid var(--guide-color); }"),t.addRule(`.monaco-editor .vertical.${s.activeClassName} { box-shadow: 1px 0 0 0 var(--guide-color-active) inset; }`),t.addRule(`.monaco-editor .horizontal-top.${s.activeClassName} { border-top: 1px solid var(--guide-color-active); }`),t.addRule(`.monaco-editor .horizontal-bottom.${s.activeClassName} { border-bottom: 1px solid var(--guide-color-active); }`)}if(o.length>0){for(let e=0;e<30;e++){const i=o[e%o.length];t.addRule(`.monaco-editor .lines-content .core-guide-indent.lvl-${e} { --indent-color: ${i.indentColor}; --indent-color-active: ${i.indentColorActive}; }`)}t.addRule(".monaco-editor .lines-content .core-guide-indent { box-shadow: 1px 0 0 0 var(--indent-color) inset; }"),t.addRule(".monaco-editor .lines-content .core-guide-indent.indent-active { box-shadow: 1px 0 0 0 var(--indent-color-active) inset; }")}}));var Nt=i(90766);class It{get didDomLayout(){return this._didDomLayout}readClientRect(){if(!this._clientRectRead){this._clientRectRead=!0;const e=this._domNode.getBoundingClientRect();this.markDidDomLayout(),this._clientRectDeltaLeft=e.left,this._clientRectScale=e.width/this._domNode.offsetWidth}}get clientRectDeltaLeft(){return this._clientRectRead||this.readClientRect(),this._clientRectDeltaLeft}get clientRectScale(){return this._clientRectRead||this.readClientRect(),this._clientRectScale}constructor(e,t){this._domNode=e,this.endNode=t,this._didDomLayout=!1,this._clientRectDeltaLeft=0,this._clientRectScale=1,this._clientRectRead=!1}markDidDomLayout(){this._didDomLayout=!0}}class Ot{constructor(){this._currentVisibleRange=new q.Q(1,1,1,1)}getCurrentVisibleRange(){return this._currentVisibleRange}setCurrentVisibleRange(e){this._currentVisibleRange=e}}class Dt{constructor(e,t,i,s,n,r,o){this.minimalReveal=e,this.lineNumber=t,this.startColumn=i,this.endColumn=s,this.startScrollTop=n,this.stopScrollTop=r,this.scrollType=o,this.type="range",this.minLineNumber=t,this.maxLineNumber=t}}class Mt{constructor(e,t,i,s,n){this.minimalReveal=e,this.selections=t,this.startScrollTop=i,this.stopScrollTop=s,this.scrollType=n,this.type="selections";let r=t[0].startLineNumber,o=t[0].endLineNumber;for(let a=1,c=t.length;a<c;a++){const e=t[a];r=Math.min(r,e.startLineNumber),o=Math.max(o,e.endLineNumber)}this.minLineNumber=r,this.maxLineNumber=o}}class Pt extends z{static{this.HORIZONTAL_EXTRA_PX=30}constructor(e,t){super(e);const i=this._context.configuration,s=this._context.configuration.options,n=s.get(50),r=s.get(147);this._lineHeight=s.get(67),this._typicalHalfwidthCharacterWidth=n.typicalHalfwidthCharacterWidth,this._isViewportWrapping=r.isViewportWrapping,this._revealHorizontalRightPadding=s.get(101),this._cursorSurroundingLines=s.get(29),this._cursorSurroundingLinesStyle=s.get(30),this._canUseLayerHinting=!s.get(32),this._viewLineOptions=new K.Ax(i,this._context.theme.type),this._linesContent=t,this._textRangeRestingSpot=document.createElement("div"),this._visibleLines=new Xe({createLine:()=>new K.Gb(this._viewLineOptions)}),this.domNode=this._visibleLines.domNode,G.write(this.domNode,8),this.domNode.setClassName(`view-lines ${De}`),(0,g.M)(this.domNode,n),this._maxLineWidth=0,this._asyncUpdateLineWidths=new Nt.uC((()=>{this._updateLineWidthsSlow()}),200),this._asyncCheckMonospaceFontAssumptions=new Nt.uC((()=>{this._checkMonospaceFontAssumptions()}),2e3),this._lastRenderedData=new Ot,this._horizontalRevealRequest=null,this._stickyScrollEnabled=s.get(116).enabled,this._maxNumberStickyLines=s.get(116).maxLineCount}dispose(){this._asyncUpdateLineWidths.dispose(),this._asyncCheckMonospaceFontAssumptions.dispose(),super.dispose()}getDomNode(){return this.domNode}onConfigurationChanged(e){this._visibleLines.onConfigurationChanged(e),e.hasChanged(147)&&(this._maxLineWidth=0);const t=this._context.configuration.options,i=t.get(50),s=t.get(147);return this._lineHeight=t.get(67),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._isViewportWrapping=s.isViewportWrapping,this._revealHorizontalRightPadding=t.get(101),this._cursorSurroundingLines=t.get(29),this._cursorSurroundingLinesStyle=t.get(30),this._canUseLayerHinting=!t.get(32),this._stickyScrollEnabled=t.get(116).enabled,this._maxNumberStickyLines=t.get(116).maxLineCount,(0,g.M)(this.domNode,i),this._onOptionsMaybeChanged(),e.hasChanged(146)&&(this._maxLineWidth=0),!0}_onOptionsMaybeChanged(){const e=this._context.configuration,t=new K.Ax(e,this._context.theme.type);if(!this._viewLineOptions.equals(t)){this._viewLineOptions=t;const e=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();for(let t=e;t<=i;t++){this._visibleLines.getVisibleLine(t).onOptionsChanged(this._viewLineOptions)}return!0}return!1}onCursorStateChanged(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();let s=!1;for(let n=t;n<=i;n++)s=this._visibleLines.getVisibleLine(n).onSelectionChanged()||s;return s}onDecorationsChanged(e){{const e=this._visibleLines.getStartLineNumber(),t=this._visibleLines.getEndLineNumber();for(let i=e;i<=t;i++)this._visibleLines.getVisibleLine(i).onDecorationsChanged()}return!0}onFlushed(e){const t=this._visibleLines.onFlushed(e);return this._maxLineWidth=0,t}onLinesChanged(e){return this._visibleLines.onLinesChanged(e)}onLinesDeleted(e){return this._visibleLines.onLinesDeleted(e)}onLinesInserted(e){return this._visibleLines.onLinesInserted(e)}onRevealRangeRequest(e){const t=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),e.source,e.minimalReveal,e.range,e.selections,e.verticalType);if(-1===t)return!1;let i=this._context.viewLayout.validateScrollPosition({scrollTop:t});e.revealHorizontal?e.range&&e.range.startLineNumber!==e.range.endLineNumber?i={scrollTop:i.scrollTop,scrollLeft:0}:e.range?this._horizontalRevealRequest=new Dt(e.minimalReveal,e.range.startLineNumber,e.range.startColumn,e.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),i.scrollTop,e.scrollType):e.selections&&e.selections.length>0&&(this._horizontalRevealRequest=new Mt(e.minimalReveal,e.selections,this._context.viewLayout.getCurrentScrollTop(),i.scrollTop,e.scrollType)):this._horizontalRevealRequest=null;const s=Math.abs(this._context.viewLayout.getCurrentScrollTop()-i.scrollTop)<=this._lineHeight?1:e.scrollType;return this._context.viewModel.viewLayout.setScrollPosition(i,s),!0}onScrollChanged(e){if(this._horizontalRevealRequest&&e.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&e.scrollTopChanged){const t=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),i=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(e.scrollTop<t||e.scrollTop>i)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(e.scrollWidth),this._visibleLines.onScrollChanged(e)||!0}onTokensChanged(e){return this._visibleLines.onTokensChanged(e)}onZonesChanged(e){return this._context.viewModel.viewLayout.setMaxLineWidth(this._maxLineWidth),this._visibleLines.onZonesChanged(e)}onThemeChanged(e){return this._onOptionsMaybeChanged()}getPositionFromDOMInfo(e,t){const i=this._getViewLineDomNode(e);if(null===i)return null;const s=this._getLineNumberFor(i);if(-1===s)return null;if(s<1||s>this._context.viewModel.getLineCount())return null;if(1===this._context.viewModel.getLineMaxColumn(s))return new Y.y(s,1);const n=this._visibleLines.getStartLineNumber(),r=this._visibleLines.getEndLineNumber();if(s<n||s>r)return null;let o=this._visibleLines.getVisibleLine(s).getColumnOfNodeOffset(e,t);const a=this._context.viewModel.getLineMinColumn(s);return o<a&&(o=a),new Y.y(s,o)}_getViewLineDomNode(e){for(;e&&1===e.nodeType;){if(e.className===K.Gb.CLASS_NAME)return e;e=e.parentElement}return null}_getLineNumberFor(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();for(let s=t;s<=i;s++){if(e===this._visibleLines.getVisibleLine(s).getDomNode())return s}return-1}getLineWidth(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();if(e<t||e>i)return-1;const s=new It(this.domNode.domNode,this._textRangeRestingSpot),n=this._visibleLines.getVisibleLine(e).getWidth(s);return this._updateLineWidthsSlowIfDomDidLayout(s),n}linesVisibleRangesForRange(e,t){if(this.shouldRender())return null;const i=e.endLineNumber,s=q.Q.intersectRanges(e,this._lastRenderedData.getCurrentVisibleRange());if(!s)return null;const n=[];let r=0;const o=new It(this.domNode.domNode,this._textRangeRestingSpot);let a=0;t&&(a=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new Y.y(s.startLineNumber,1)).lineNumber);const c=this._visibleLines.getStartLineNumber(),l=this._visibleLines.getEndLineNumber();for(let h=s.startLineNumber;h<=s.endLineNumber;h++){if(h<c||h>l)continue;const e=h===s.startLineNumber?s.startColumn:1,d=h!==s.endLineNumber,u=d?this._context.viewModel.getLineMaxColumn(h):s.endColumn,g=this._visibleLines.getVisibleLine(h).getVisibleRangesForRange(h,e,u,o);if(g){if(t&&h<i){const e=a;a=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new Y.y(h+1,1)).lineNumber,e!==a&&(g.ranges[g.ranges.length-1].width+=this._typicalHalfwidthCharacterWidth)}n[r++]=new je.BG(g.outsideRenderedLine,h,je.Y.from(g.ranges),d)}}return this._updateLineWidthsSlowIfDomDidLayout(o),0===r?null:n}_visibleRangesForLineRange(e,t,i){if(this.shouldRender())return null;if(e<this._visibleLines.getStartLineNumber()||e>this._visibleLines.getEndLineNumber())return null;const s=new It(this.domNode.domNode,this._textRangeRestingSpot),n=this._visibleLines.getVisibleLine(e).getVisibleRangesForRange(e,t,i,s);return this._updateLineWidthsSlowIfDomDidLayout(s),n}visibleRangeForPosition(e){const t=this._visibleRangesForLineRange(e.lineNumber,e.column,e.column);return t?new je.qN(t.outsideRenderedLine,t.ranges[0].left):null}_updateLineWidthsFast(){return this._updateLineWidths(!0)}_updateLineWidthsSlow(){this._updateLineWidths(!1)}_updateLineWidthsSlowIfDomDidLayout(e){e.didDomLayout&&(this._asyncUpdateLineWidths.isScheduled()||(this._asyncUpdateLineWidths.cancel(),this._updateLineWidthsSlow()))}_updateLineWidths(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();let s=1,n=!0;for(let r=t;r<=i;r++){const t=this._visibleLines.getVisibleLine(r);!e||t.getWidthIsFast()?s=Math.max(s,t.getWidth(null)):n=!1}return n&&1===t&&i===this._context.viewModel.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(s),n}_checkMonospaceFontAssumptions(){let e=-1,t=-1;const i=this._visibleLines.getStartLineNumber(),s=this._visibleLines.getEndLineNumber();for(let n=i;n<=s;n++){const i=this._visibleLines.getVisibleLine(n);if(i.needsMonospaceFontCheck()){const s=i.getWidth(null);s>t&&(t=s,e=n)}}if(-1!==e&&!this._visibleLines.getVisibleLine(e).monospaceAssumptionsAreValid())for(let n=i;n<=s;n++){this._visibleLines.getVisibleLine(n).onMonospaceAssumptionsInvalidated()}}prepareRender(){throw new Error("Not supported")}render(){throw new Error("Not supported")}renderText(e){if(this._visibleLines.renderLines(e),this._lastRenderedData.setCurrentVisibleRange(e.visibleRange),this.domNode.setWidth(this._context.viewLayout.getScrollWidth()),this.domNode.setHeight(Math.min(this._context.viewLayout.getScrollHeight(),1e6)),this._horizontalRevealRequest){const t=this._horizontalRevealRequest;if(e.startLineNumber<=t.minLineNumber&&t.maxLineNumber<=e.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();const e=this._computeScrollLeftToReveal(t);e&&(this._isViewportWrapping||this._ensureMaxLineWidth(e.maxHorizontalOffset),this._context.viewModel.viewLayout.setScrollPosition({scrollLeft:e.scrollLeft},t.scrollType))}}if(this._updateLineWidthsFast()?this._asyncUpdateLineWidths.cancel():this._asyncUpdateLineWidths.schedule(),_.j9&&!this._asyncCheckMonospaceFontAssumptions.isScheduled()){const e=this._visibleLines.getStartLineNumber(),t=this._visibleLines.getEndLineNumber();for(let i=e;i<=t;i++){if(this._visibleLines.getVisibleLine(i).needsMonospaceFontCheck()){this._asyncCheckMonospaceFontAssumptions.schedule();break}}}this._linesContent.setLayerHinting(this._canUseLayerHinting),this._linesContent.setContain("strict");const t=this._context.viewLayout.getCurrentScrollTop()-e.bigNumbersDelta;this._linesContent.setTop(-t),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())}_ensureMaxLineWidth(e){const t=Math.ceil(e);this._maxLineWidth<t&&(this._maxLineWidth=t,this._context.viewModel.viewLayout.setMaxLineWidth(this._maxLineWidth))}_computeScrollTopToRevealRange(e,t,i,s,n,r){const o=e.top,a=e.height,c=o+a;let l,h,d;if(n&&n.length>0){let e=n[0].startLineNumber,t=n[0].endLineNumber;for(let i=1,s=n.length;i<s;i++){const s=n[i];e=Math.min(e,s.startLineNumber),t=Math.max(t,s.endLineNumber)}l=!1,h=this._context.viewLayout.getVerticalOffsetForLineNumber(e),d=this._context.viewLayout.getVerticalOffsetForLineNumber(t)+this._lineHeight}else{if(!s)return-1;l=!0,h=this._context.viewLayout.getVerticalOffsetForLineNumber(s.startLineNumber),d=this._context.viewLayout.getVerticalOffsetForLineNumber(s.endLineNumber)+this._lineHeight}let u,g=0,p=0;if(("mouse"===t||i)&&"default"===this._cursorSurroundingLinesStyle)i||(g=this._lineHeight);else{const e=a/this._lineHeight,t=Math.max(this._cursorSurroundingLines,this._stickyScrollEnabled?this._maxNumberStickyLines:0),i=Math.min(e/2,t);g=i*this._lineHeight,p=Math.max(0,i-1)*this._lineHeight}if(i||0!==r&&4!==r||(p+=this._lineHeight),h-=g,d+=p,d-h>a){if(!l)return-1;u=h}else if(5===r||6===r)if(6===r&&o<=h&&d<=c)u=o;else{const e=h-Math.max(5*this._lineHeight,.2*a),t=d-a;u=Math.max(t,e)}else if(1===r||2===r)if(2===r&&o<=h&&d<=c)u=o;else{const e=(h+d)/2;u=Math.max(0,e-a/2)}else u=this._computeMinimumScrolling(o,c,h,d,3===r,4===r);return u}_computeScrollLeftToReveal(e){const t=this._context.viewLayout.getCurrentViewport(),i=this._context.configuration.options.get(146),s=t.left,n=s+t.width-i.verticalScrollbarWidth;let r=1073741824,o=0;if("range"===e.type){const t=this._visibleRangesForLineRange(e.lineNumber,e.startColumn,e.endColumn);if(!t)return null;for(const e of t.ranges)r=Math.min(r,Math.round(e.left)),o=Math.max(o,Math.round(e.left+e.width))}else for(const a of e.selections){if(a.startLineNumber!==a.endLineNumber)return null;const e=this._visibleRangesForLineRange(a.startLineNumber,a.startColumn,a.endColumn);if(!e)return null;for(const t of e.ranges)r=Math.min(r,Math.round(t.left)),o=Math.max(o,Math.round(t.left+t.width))}if(e.minimalReveal||(r=Math.max(0,r-Pt.HORIZONTAL_EXTRA_PX),o+=this._revealHorizontalRightPadding),"selections"===e.type&&o-r>t.width)return null;return{scrollLeft:this._computeMinimumScrolling(s,n,r,o),maxHorizontalOffset:o}}_computeMinimumScrolling(e,t,i,s,n,r){n=!!n,r=!!r;const o=(t|=0)-(e|=0);return(s|=0)-(i|=0)<o?n?i:r?Math.max(0,s-o):i<e?i:s>t?Math.max(0,s-o):e:i}}class Ft extends bt{constructor(e){super(),this._context=e;const t=this._context.configuration.options.get(146);this._decorationsLeft=t.decorationsLeft,this._decorationsWidth=t.decorationsWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options.get(146);return this._decorationsLeft=t.decorationsLeft,this._decorationsWidth=t.decorationsWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getDecorations(e){const t=e.getDecorationsInViewport(),i=[];let s=0;for(let n=0,r=t.length;n<r;n++){const e=t[n],r=e.options.linesDecorationsClassName,o=e.options.zIndex;r&&(i[s++]=new vt(e.range.startLineNumber,e.range.endLineNumber,r,e.options.linesDecorationsTooltip??null,o));const a=e.options.firstLineDecorationClassName;a&&(i[s++]=new vt(e.range.startLineNumber,e.range.startLineNumber,a,e.options.linesDecorationsTooltip??null,o))}return i}prepareRender(e){const t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,s=this._render(t,i,this._getDecorations(e)),n='" style="left:'+this._decorationsLeft.toString()+"px;width:"+this._decorationsWidth.toString()+'px;"></div>',r=[];for(let o=t;o<=i;o++){const e=o-t,i=s[e].getDecorations();let a="";for(const t of i){let e='<div class="cldr '+t.className;null!==t.tooltip&&(e+='" title="'+t.tooltip),e+=n,a+=e}r[e]=a}this._renderResult=r}render(e,t){return this._renderResult?this._renderResult[t-e]:""}}class Ut extends bt{constructor(e){super(),this._context=e,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){return!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getDecorations(e){const t=e.getDecorationsInViewport(),i=[];let s=0;for(let n=0,r=t.length;n<r;n++){const e=t[n],r=e.options.marginClassName,o=e.options.zIndex;r&&(i[s++]=new vt(e.range.startLineNumber,e.range.endLineNumber,r,null,o))}return i}prepareRender(e){const t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,s=this._render(t,i,this._getDecorations(e)),n=[];for(let r=t;r<=i;r++){const e=r-t,i=s[e].getDecorations();let o="";for(const t of i)o+='<div class="cmdr '+t.className+'" style=""></div>';n[e]=o}this._renderResult=n}render(e,t){return this._renderResult?this._renderResult[t-e]:""}}var Ht=i(34072);class Bt{static{this.Empty=new Bt(0,0,0,0)}constructor(e,t,i,s){this._rgba8Brand=void 0,this.r=Bt._clamp(e),this.g=Bt._clamp(t),this.b=Bt._clamp(i),this.a=Bt._clamp(s)}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}static _clamp(e){return e<0?0:e>255?255:0|e}}class Wt extends d.jG{static{this._INSTANCE=null}static getInstance(){return this._INSTANCE||(this._INSTANCE=(0,d.lC)(new Wt)),this._INSTANCE}constructor(){super(),this._onDidChange=new h.vl,this.onDidChange=this._onDidChange.event,this._updateColorMap(),this._register(Me.dG.onDidChange((e=>{e.changedColorMap&&this._updateColorMap()})))}_updateColorMap(){const e=Me.dG.getColorMap();if(!e)return this._colors=[Bt.Empty],void(this._backgroundIsLight=!0);this._colors=[Bt.Empty];for(let i=1;i<e.length;i++){const t=e[i].rgba;this._colors[i]=new Bt(t.r,t.g,t.b,Math.round(255*t.a))}const t=e[2].getRelativeLuminance();this._backgroundIsLight=t>=.5,this._onDidChange.fire(void 0)}getColor(e){return(e<1||e>=this._colors.length)&&(e=2),this._colors[e]}backgroundIsLight(){return this._backgroundIsLight}}var Vt=i(92896),zt=i(66261);const Gt=(()=>{const e=[];for(let t=32;t<=126;t++)e.push(t);return e.push(65533),e})();var jt=i(85152);class Kt{constructor(e,t){this.scale=t,this._minimapCharRendererBrand=void 0,this.charDataNormal=Kt.soften(e,.8),this.charDataLight=Kt.soften(e,50/60)}static soften(e,t){const i=new Uint8ClampedArray(e.length);for(let s=0,n=e.length;s<n;s++)i[s]=(0,jt.W)(e[s]*t);return i}renderChar(e,t,i,s,n,r,o,a,c,l,h){const d=1*this.scale,u=2*this.scale,g=h?1:u;if(t+d>e.width||i+g>e.height)return void console.warn("bad render request outside image data");const p=l?this.charDataLight:this.charDataNormal,m=((e,t)=>(e-=32)<0||e>96?t<=2?(e+96)%96:95:e)(s,c),f=4*e.width,_=o.r,v=o.g,C=o.b,E=n.r-_,b=n.g-v,S=n.b-C,y=Math.max(r,a),w=e.data;let R=m*d*u,L=i*f+4*t;for(let T=0;T<g;T++){let e=L;for(let t=0;t<d;t++){const t=p[R++]/255*(r/255);w[e++]=_+E*t,w[e++]=v+b*t,w[e++]=C+S*t,w[e++]=y}L+=f}}blockRenderChar(e,t,i,s,n,r,o,a){const c=1*this.scale,l=2*this.scale,h=a?1:l;if(t+c>e.width||i+h>e.height)return void console.warn("bad render request outside image data");const d=4*e.width,u=n/255*.5,g=r.r,p=r.g,m=r.b,f=g+(s.r-g)*u,_=p+(s.g-p)*u,v=m+(s.b-m)*u,C=Math.max(n,o),E=e.data;let b=i*d+4*t;for(let S=0;S<h;S++){let e=b;for(let t=0;t<c;t++)E[e++]=f,E[e++]=_,E[e++]=v,E[e++]=C;b+=d}}}var Yt=i(6921);const qt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15},$t=e=>{const t=new Uint8ClampedArray(e.length/2);for(let i=0;i<e.length;i+=2)t[i>>1]=qt[e[i]]<<4|15&qt[e[i+1]];return t},Qt={1:(0,Yt.P)((()=>$t("0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792"))),2:(0,Yt.P)((()=>$t("000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126")))};class Xt{static create(e,t){if(this.lastCreated&&e===this.lastCreated.scale&&t===this.lastFontFamily)return this.lastCreated;let i;return i=Qt[e]?new Kt(Qt[e](),e):Xt.createFromSampleData(Xt.createSampleData(t).data,e),this.lastFontFamily=t,this.lastCreated=i,i}static createSampleData(e){const t=document.createElement("canvas"),i=t.getContext("2d");t.style.height="16px",t.height=16,t.width=960,t.style.width="960px",i.fillStyle="#ffffff",i.font=`bold 16px ${e}`,i.textBaseline="middle";let s=0;for(const n of Gt)i.fillText(String.fromCharCode(n),s,8),s+=10;return i.getImageData(0,0,960,16)}static createFromSampleData(e,t){if(61440!==e.length)throw new Error("Unexpected source in MinimapCharRenderer");const i=Xt._downsample(e,t);return new Kt(i,t)}static _downsampleChar(e,t,i,s,n){const r=1*n,o=2*n;let a=s,c=0;for(let l=0;l<o;l++){const s=l/o*16,n=(l+1)/o*16;for(let o=0;o<r;o++){const l=o/r*10,h=(o+1)/r*10;let d=0,u=0;for(let i=s;i<n;i++){const s=t+3840*Math.floor(i),n=1-(i-Math.floor(i));for(let t=l;t<h;t++){const i=1-(t-Math.floor(t)),r=s+4*Math.floor(t),o=i*n;u+=o,d+=e[r]*e[r+3]/255*o}}const g=d/u;c=Math.max(c,g),i[a++]=(0,jt.W)(g)}}return c}static _downsample(e,t){const i=2*t*1*t,s=96*i,n=new Uint8ClampedArray(s);let r=0,o=0,a=0;for(let c=0;c<96;c++)a=Math.max(a,this._downsampleChar(e,o,n,r,t)),r+=i,o+=40;if(a>0){const e=255/a;for(let t=0;t<s;t++)n[t]*=e}return n}}var Zt=i(74320),Jt=i(49435);class ei{constructor(e,t,i){const s=e.options,n=s.get(144),r=s.get(146),o=r.minimap,a=s.get(50),c=s.get(73);this.renderMinimap=o.renderMinimap,this.size=c.size,this.minimapHeightIsEditorHeight=o.minimapHeightIsEditorHeight,this.scrollBeyondLastLine=s.get(106),this.paddingTop=s.get(84).top,this.paddingBottom=s.get(84).bottom,this.showSlider=c.showSlider,this.autohide=c.autohide,this.pixelRatio=n,this.typicalHalfwidthCharacterWidth=a.typicalHalfwidthCharacterWidth,this.lineHeight=s.get(67),this.minimapLeft=o.minimapLeft,this.minimapWidth=o.minimapWidth,this.minimapHeight=r.height,this.canvasInnerWidth=o.minimapCanvasInnerWidth,this.canvasInnerHeight=o.minimapCanvasInnerHeight,this.canvasOuterWidth=o.minimapCanvasOuterWidth,this.canvasOuterHeight=o.minimapCanvasOuterHeight,this.isSampling=o.minimapIsSampling,this.editorHeight=r.height,this.fontScale=o.minimapScale,this.minimapLineHeight=o.minimapLineHeight,this.minimapCharWidth=1*this.fontScale,this.sectionHeaderFontFamily=Jt.z,this.sectionHeaderFontSize=c.sectionHeaderFontSize*n,this.sectionHeaderLetterSpacing=c.sectionHeaderLetterSpacing,this.sectionHeaderFontColor=ei._getSectionHeaderColor(t,i.getColor(1)),this.charRenderer=(0,Yt.P)((()=>Xt.create(this.fontScale,a.fontFamily))),this.defaultBackgroundColor=i.getColor(2),this.backgroundColor=ei._getMinimapBackground(t,this.defaultBackgroundColor),this.foregroundAlpha=ei._getMinimapForegroundOpacity(t)}static _getMinimapBackground(e,t){const i=e.getColor(zt.ILr);return i?new Bt(i.rgba.r,i.rgba.g,i.rgba.b,Math.round(255*i.rgba.a)):t}static _getMinimapForegroundOpacity(e){const t=e.getColor(zt.K1Z);return t?Bt._clamp(Math.round(255*t.rgba.a)):255}static _getSectionHeaderColor(e,t){const i=e.getColor(zt.By2);return i?new Bt(i.rgba.r,i.rgba.g,i.rgba.b,Math.round(255*i.rgba.a)):t}equals(e){return this.renderMinimap===e.renderMinimap&&this.size===e.size&&this.minimapHeightIsEditorHeight===e.minimapHeightIsEditorHeight&&this.scrollBeyondLastLine===e.scrollBeyondLastLine&&this.paddingTop===e.paddingTop&&this.paddingBottom===e.paddingBottom&&this.showSlider===e.showSlider&&this.autohide===e.autohide&&this.pixelRatio===e.pixelRatio&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.lineHeight===e.lineHeight&&this.minimapLeft===e.minimapLeft&&this.minimapWidth===e.minimapWidth&&this.minimapHeight===e.minimapHeight&&this.canvasInnerWidth===e.canvasInnerWidth&&this.canvasInnerHeight===e.canvasInnerHeight&&this.canvasOuterWidth===e.canvasOuterWidth&&this.canvasOuterHeight===e.canvasOuterHeight&&this.isSampling===e.isSampling&&this.editorHeight===e.editorHeight&&this.fontScale===e.fontScale&&this.minimapLineHeight===e.minimapLineHeight&&this.minimapCharWidth===e.minimapCharWidth&&this.sectionHeaderFontSize===e.sectionHeaderFontSize&&this.sectionHeaderLetterSpacing===e.sectionHeaderLetterSpacing&&this.defaultBackgroundColor&&this.defaultBackgroundColor.equals(e.defaultBackgroundColor)&&this.backgroundColor&&this.backgroundColor.equals(e.backgroundColor)&&this.foregroundAlpha===e.foregroundAlpha}}class ti{constructor(e,t,i,s,n,r,o,a,c){this.scrollTop=e,this.scrollHeight=t,this.sliderNeeded=i,this._computedSliderRatio=s,this.sliderTop=n,this.sliderHeight=r,this.topPaddingLineCount=o,this.startLineNumber=a,this.endLineNumber=c}getDesiredScrollTopFromDelta(e){return Math.round(this.scrollTop+e/this._computedSliderRatio)}getDesiredScrollTopFromTouchLocation(e){return Math.round((e-this.sliderHeight/2)/this._computedSliderRatio)}intersectWithViewport(e){const t=Math.max(this.startLineNumber,e.startLineNumber),i=Math.min(this.endLineNumber,e.endLineNumber);return t>i?null:[t,i]}getYForLineNumber(e,t){return+(e-this.startLineNumber+this.topPaddingLineCount)*t}static create(e,t,i,s,n,r,o,a,c,l,h){const d=e.pixelRatio,u=e.minimapLineHeight,g=Math.floor(e.canvasInnerHeight/u),p=e.lineHeight;if(e.minimapHeightIsEditorHeight){let t=a*e.lineHeight+e.paddingTop+e.paddingBottom;e.scrollBeyondLastLine&&(t+=Math.max(0,n-e.lineHeight-e.paddingBottom));const i=Math.max(1,Math.floor(n*n/t)),s=Math.max(0,e.minimapHeight-i),r=s/(l-n),h=c*r,d=s>0,u=Math.floor(e.canvasInnerHeight/e.minimapLineHeight),g=Math.floor(e.paddingTop/e.lineHeight);return new ti(c,l,d,r,h,i,g,1,Math.min(o,u))}let m;if(r&&i!==o){const e=i-t+1;m=Math.floor(e*u/d)}else{const e=n/p;m=Math.floor(e*u/d)}const f=Math.floor(e.paddingTop/p);let _,v=Math.floor(e.paddingBottom/p);if(e.scrollBeyondLastLine){const e=n/p;v=Math.max(v,e-1)}if(v>0){_=(f+o+v-n/p-1)*u/d}else _=Math.max(0,(f+o)*u/d-m);_=Math.min(e.minimapHeight-m,_);const C=_/(l-n),E=c*C;if(g>=f+o+v){return new ti(c,l,_>0,C,E,m,f,1,o)}{let i,n;i=t>1?t+f:Math.max(1,c/p);let r=Math.max(1,Math.floor(i-E*d/u));r<f?(n=f-r+1,r=1):(n=0,r=Math.max(1,r-f)),h&&h.scrollHeight===l&&(h.scrollTop>c&&(r=Math.min(r,h.startLineNumber),n=Math.max(n,h.topPaddingLineCount)),h.scrollTop<c&&(r=Math.max(r,h.startLineNumber),n=Math.min(n,h.topPaddingLineCount)));const a=Math.min(o,r-n+g-1),_=(c-s)/p;let v;return v=c>=e.paddingTop?(t-r+n+_)*u/d:c/e.paddingTop*(n+_)*u/d,new ti(c,l,!0,C,v,m,n,r,a)}}}class ii{static{this.INVALID=new ii(-1)}constructor(e){this.dy=e}onContentChanged(){this.dy=-1}onTokensChanged(){this.dy=-1}}class si{constructor(e,t,i){this.renderedLayout=e,this._imageData=t,this._renderedLines=new Qe({createLine:()=>ii.INVALID}),this._renderedLines._set(e.startLineNumber,i)}linesEquals(e){if(!this.scrollEquals(e))return!1;const t=this._renderedLines._get().lines;for(let i=0,s=t.length;i<s;i++)if(-1===t[i].dy)return!1;return!0}scrollEquals(e){return this.renderedLayout.startLineNumber===e.startLineNumber&&this.renderedLayout.endLineNumber===e.endLineNumber}_get(){const e=this._renderedLines._get();return{imageData:this._imageData,rendLineNumberStart:e.rendLineNumberStart,lines:e.lines}}onLinesChanged(e,t){return this._renderedLines.onLinesChanged(e,t)}onLinesDeleted(e,t){this._renderedLines.onLinesDeleted(e,t)}onLinesInserted(e,t){this._renderedLines.onLinesInserted(e,t)}onTokensChanged(e){return this._renderedLines.onTokensChanged(e)}}class ni{constructor(e,t,i,s){this._backgroundFillData=ni._createBackgroundFillData(t,i,s),this._buffers=[e.createImageData(t,i),e.createImageData(t,i)],this._lastUsedBuffer=0}getBuffer(){this._lastUsedBuffer=1-this._lastUsedBuffer;const e=this._buffers[this._lastUsedBuffer];return e.data.set(this._backgroundFillData),e}static _createBackgroundFillData(e,t,i){const s=i.r,n=i.g,r=i.b,o=i.a,a=new Uint8ClampedArray(e*t*4);let c=0;for(let l=0;l<t;l++)for(let t=0;t<e;t++)a[c]=s,a[c+1]=n,a[c+2]=r,a[c+3]=o,c+=4;return a}}class ri{static compute(e,t,i){if(0===e.renderMinimap||!e.isSampling)return[null,[]];const{minimapLineCount:s}=R.xZ.computeContainedMinimapLineCount({viewLineCount:t,scrollBeyondLastLine:e.scrollBeyondLastLine,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:e.editorHeight,lineHeight:e.lineHeight,pixelRatio:e.pixelRatio}),n=t/s,r=n/2;if(!i||0===i.minimapLines.length){const e=[];if(e[0]=1,s>1){for(let t=0,i=s-1;t<i;t++)e[t]=Math.round(t*n+r);e[s-1]=t}return[new ri(n,e),[]]}const o=i.minimapLines,a=o.length,c=[];let l=0,h=0,d=1;let u=[],g=null;for(let p=0;p<s;p++){const e=Math.max(d,Math.round(p*n)),i=Math.max(e,Math.round((p+1)*n));for(;l<a&&o[l]<e;){if(u.length<10){const e=l+1+h;g&&"deleted"===g.type&&g._oldIndex===l-1?g.deleteToLineNumber++:(g={type:"deleted",_oldIndex:l,deleteFromLineNumber:e,deleteToLineNumber:e},u.push(g)),h--}l++}let m;if(l<a&&o[l]<=i)m=o[l],l++;else if(m=0===p?1:p+1===s?t:Math.round(p*n+r),u.length<10){const e=l+1+h;g&&"inserted"===g.type&&g._i===p-1?g.insertToLineNumber++:(g={type:"inserted",_i:p,insertFromLineNumber:e,insertToLineNumber:e},u.push(g)),h++}c[p]=m,d=m}if(u.length<10)for(;l<a;){const e=l+1+h;g&&"deleted"===g.type&&g._oldIndex===l-1?g.deleteToLineNumber++:(g={type:"deleted",_oldIndex:l,deleteFromLineNumber:e,deleteToLineNumber:e},u.push(g)),h--,l++}else u=[{type:"flush"}];return[new ri(n,c),u]}constructor(e,t){this.samplingRatio=e,this.minimapLines=t}modelLineToMinimapLine(e){return Math.min(this.minimapLines.length,Math.max(1,Math.round(e/this.samplingRatio)))}modelLineRangeToMinimapLineRange(e,t){let i=this.modelLineToMinimapLine(e)-1;for(;i>0&&this.minimapLines[i-1]>=e;)i--;let s=this.modelLineToMinimapLine(t)-1;for(;s+1<this.minimapLines.length&&this.minimapLines[s+1]<=t;)s++;if(i===s){const s=this.minimapLines[i];if(s<e||s>t)return null}return[i+1,s+1]}decorationLineRangeToMinimapLineRange(e,t){let i=this.modelLineToMinimapLine(e),s=this.modelLineToMinimapLine(t);return e!==t&&s===i&&(s===this.minimapLines.length?i>1&&i--:s++),[i,s]}onLinesDeleted(e){const t=e.toLineNumber-e.fromLineNumber+1;let i=this.minimapLines.length,s=0;for(let n=this.minimapLines.length-1;n>=0&&!(this.minimapLines[n]<e.fromLineNumber);n--)this.minimapLines[n]<=e.toLineNumber?(this.minimapLines[n]=Math.max(1,e.fromLineNumber-1),i=Math.min(i,n),s=Math.max(s,n)):this.minimapLines[n]-=t;return[i,s]}onLinesInserted(e){const t=e.toLineNumber-e.fromLineNumber+1;for(let i=this.minimapLines.length-1;i>=0&&!(this.minimapLines[i]<e.fromLineNumber);i--)this.minimapLines[i]+=t}}class oi extends z{constructor(e){super(e),this._sectionHeaderCache=new Zt.qK(10,1.5),this.tokensColorTracker=Wt.getInstance(),this._selections=[],this._minimapSelections=null,this.options=new ei(this._context.configuration,this._context.theme,this.tokensColorTracker);const[t]=ri.compute(this.options,this._context.viewModel.getLineCount(),null);this._samplingState=t,this._shouldCheckSampling=!1,this._actual=new ai(e.theme,this)}dispose(){this._actual.dispose(),super.dispose()}getDomNode(){return this._actual.getDomNode()}_onOptionsMaybeChanged(){const e=new ei(this._context.configuration,this._context.theme,this.tokensColorTracker);return!this.options.equals(e)&&(this.options=e,this._recreateLineSampling(),this._actual.onDidChangeOptions(),!0)}onConfigurationChanged(e){return this._onOptionsMaybeChanged()}onCursorStateChanged(e){return this._selections=e.selections,this._minimapSelections=null,this._actual.onSelectionChanged()}onDecorationsChanged(e){return!!e.affectsMinimap&&this._actual.onDecorationsChanged()}onFlushed(e){return this._samplingState&&(this._shouldCheckSampling=!0),this._actual.onFlushed()}onLinesChanged(e){if(this._samplingState){const t=this._samplingState.modelLineRangeToMinimapLineRange(e.fromLineNumber,e.fromLineNumber+e.count-1);return!!t&&this._actual.onLinesChanged(t[0],t[1]-t[0]+1)}return this._actual.onLinesChanged(e.fromLineNumber,e.count)}onLinesDeleted(e){if(this._samplingState){const[t,i]=this._samplingState.onLinesDeleted(e);return t<=i&&this._actual.onLinesChanged(t+1,i-t+1),this._shouldCheckSampling=!0,!0}return this._actual.onLinesDeleted(e.fromLineNumber,e.toLineNumber)}onLinesInserted(e){return this._samplingState?(this._samplingState.onLinesInserted(e),this._shouldCheckSampling=!0,!0):this._actual.onLinesInserted(e.fromLineNumber,e.toLineNumber)}onScrollChanged(e){return this._actual.onScrollChanged()}onThemeChanged(e){return this._actual.onThemeChanged(),this._onOptionsMaybeChanged(),!0}onTokensChanged(e){if(this._samplingState){const t=[];for(const i of e.ranges){const e=this._samplingState.modelLineRangeToMinimapLineRange(i.fromLineNumber,i.toLineNumber);e&&t.push({fromLineNumber:e[0],toLineNumber:e[1]})}return!!t.length&&this._actual.onTokensChanged(t)}return this._actual.onTokensChanged(e.ranges)}onTokensColorsChanged(e){return this._onOptionsMaybeChanged(),this._actual.onTokensColorsChanged()}onZonesChanged(e){return this._actual.onZonesChanged()}prepareRender(e){this._shouldCheckSampling&&(this._shouldCheckSampling=!1,this._recreateLineSampling())}render(e){let t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber;this._samplingState&&(t=this._samplingState.modelLineToMinimapLine(t),i=this._samplingState.modelLineToMinimapLine(i));const s={viewportContainsWhitespaceGaps:e.viewportData.whitespaceViewportData.length>0,scrollWidth:e.scrollWidth,scrollHeight:e.scrollHeight,viewportStartLineNumber:t,viewportEndLineNumber:i,viewportStartLineNumberVerticalOffset:e.getVerticalOffsetForLineNumber(t),scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,viewportWidth:e.viewportWidth,viewportHeight:e.viewportHeight};this._actual.render(s)}_recreateLineSampling(){this._minimapSelections=null;const e=Boolean(this._samplingState),[t,i]=ri.compute(this.options,this._context.viewModel.getLineCount(),this._samplingState);if(this._samplingState=t,e&&this._samplingState)for(const s of i)switch(s.type){case"deleted":this._actual.onLinesDeleted(s.deleteFromLineNumber,s.deleteToLineNumber);break;case"inserted":this._actual.onLinesInserted(s.insertFromLineNumber,s.insertToLineNumber);break;case"flush":this._actual.onFlushed()}}getLineCount(){return this._samplingState?this._samplingState.minimapLines.length:this._context.viewModel.getLineCount()}getRealLineCount(){return this._context.viewModel.getLineCount()}getLineContent(e){return this._samplingState?this._context.viewModel.getLineContent(this._samplingState.minimapLines[e-1]):this._context.viewModel.getLineContent(e)}getLineMaxColumn(e){return this._samplingState?this._context.viewModel.getLineMaxColumn(this._samplingState.minimapLines[e-1]):this._context.viewModel.getLineMaxColumn(e)}getMinimapLinesRenderingData(e,t,i){if(this._samplingState){const s=[];for(let n=0,r=t-e+1;n<r;n++)i[n]?s[n]=this._context.viewModel.getViewLineData(this._samplingState.minimapLines[e+n-1]):s[n]=null;return s}return this._context.viewModel.getMinimapLinesRenderingData(e,t,i).data}getSelections(){if(null===this._minimapSelections)if(this._samplingState){this._minimapSelections=[];for(const e of this._selections){const[t,i]=this._samplingState.decorationLineRangeToMinimapLineRange(e.startLineNumber,e.endLineNumber);this._minimapSelections.push(new pe.L(t,e.startColumn,i,e.endColumn))}}else this._minimapSelections=this._selections;return this._minimapSelections}getMinimapDecorationsInViewport(e,t){const i=this._getMinimapDecorationsInViewport(e,t).filter((e=>!e.options.minimap?.sectionHeaderStyle));if(this._samplingState){const e=[];for(const t of i){if(!t.options.minimap)continue;const i=t.range,s=this._samplingState.modelLineToMinimapLine(i.startLineNumber),n=this._samplingState.modelLineToMinimapLine(i.endLineNumber);e.push(new Vt.vo(new q.Q(s,i.startColumn,n,i.endColumn),t.options))}return e}return i}getSectionHeaderDecorationsInViewport(e,t){const i=this.options.minimapLineHeight,s=this.options.sectionHeaderFontSize/i;return e=Math.floor(Math.max(1,e-s)),this._getMinimapDecorationsInViewport(e,t).filter((e=>!!e.options.minimap?.sectionHeaderStyle))}_getMinimapDecorationsInViewport(e,t){let i;if(this._samplingState){const s=this._samplingState.minimapLines[e-1],n=this._samplingState.minimapLines[t-1];i=new q.Q(s,1,n,this._context.viewModel.getLineMaxColumn(n))}else i=new q.Q(e,1,t,this._context.viewModel.getLineMaxColumn(t));return this._context.viewModel.getMinimapDecorationsInRange(i)}getSectionHeaderText(e,t){const i=e.options.minimap?.sectionHeaderText;if(!i)return null;const s=this._sectionHeaderCache.get(i);if(s)return s;const n=t(i);return this._sectionHeaderCache.set(i,n),n}getOptions(){return this._context.viewModel.model.getOptions()}revealLineNumber(e){this._samplingState&&(e=this._samplingState.minimapLines[e-1]),this._context.viewModel.revealRange("mouse",!1,new q.Q(e,1,e,1),1,0)}setScrollTop(e){this._context.viewModel.viewLayout.setScrollPosition({scrollTop:e},1)}}class ai extends d.jG{constructor(e,t){super(),this._renderDecorations=!1,this._gestureInProgress=!1,this._theme=e,this._model=t,this._lastRenderData=null,this._buffers=null,this._selectionColor=this._theme.getColor(zt.yr0),this._domNode=(0,H.Z)(document.createElement("div")),G.write(this._domNode,9),this._domNode.setClassName(this._getMinimapDomNodeClassName()),this._domNode.setPosition("absolute"),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._shadow=(0,H.Z)(document.createElement("div")),this._shadow.setClassName("minimap-shadow-hidden"),this._domNode.appendChild(this._shadow),this._canvas=(0,H.Z)(document.createElement("canvas")),this._canvas.setPosition("absolute"),this._canvas.setLeft(0),this._domNode.appendChild(this._canvas),this._decorationsCanvas=(0,H.Z)(document.createElement("canvas")),this._decorationsCanvas.setPosition("absolute"),this._decorationsCanvas.setClassName("minimap-decorations-layer"),this._decorationsCanvas.setLeft(0),this._domNode.appendChild(this._decorationsCanvas),this._slider=(0,H.Z)(document.createElement("div")),this._slider.setPosition("absolute"),this._slider.setClassName("minimap-slider"),this._slider.setLayerHinting(!0),this._slider.setContain("strict"),this._domNode.appendChild(this._slider),this._sliderHorizontal=(0,H.Z)(document.createElement("div")),this._sliderHorizontal.setPosition("absolute"),this._sliderHorizontal.setClassName("minimap-slider-horizontal"),this._slider.appendChild(this._sliderHorizontal),this._applyLayout(),this._pointerDownListener=c.b2(this._domNode.domNode,c.Bx.POINTER_DOWN,(e=>{e.preventDefault();if(0===this._model.options.renderMinimap)return;if(!this._lastRenderData)return;if("proportional"!==this._model.options.size){if(0===e.button&&this._lastRenderData){const t=c.BK(this._slider.domNode),i=t.top+t.height/2;this._startSliderDragging(e,i,this._lastRenderData.renderedLayout)}return}const t=this._model.options.minimapLineHeight,i=this._model.options.canvasInnerHeight/this._model.options.canvasOuterHeight*e.offsetY;let s=Math.floor(i/t)+this._lastRenderData.renderedLayout.startLineNumber-this._lastRenderData.renderedLayout.topPaddingLineCount;s=Math.min(s,this._model.getLineCount()),this._model.revealLineNumber(s)})),this._sliderPointerMoveMonitor=new Ht._,this._sliderPointerDownListener=c.b2(this._slider.domNode,c.Bx.POINTER_DOWN,(e=>{e.preventDefault(),e.stopPropagation(),0===e.button&&this._lastRenderData&&this._startSliderDragging(e,e.pageY,this._lastRenderData.renderedLayout)})),this._gestureDisposable=de.q.addTarget(this._domNode.domNode),this._sliderTouchStartListener=c.ko(this._domNode.domNode,de.B.Start,(e=>{e.preventDefault(),e.stopPropagation(),this._lastRenderData&&(this._slider.toggleClassName("active",!0),this._gestureInProgress=!0,this.scrollDueToTouchEvent(e))}),{passive:!1}),this._sliderTouchMoveListener=c.ko(this._domNode.domNode,de.B.Change,(e=>{e.preventDefault(),e.stopPropagation(),this._lastRenderData&&this._gestureInProgress&&this.scrollDueToTouchEvent(e)}),{passive:!1}),this._sliderTouchEndListener=c.b2(this._domNode.domNode,de.B.End,(e=>{e.preventDefault(),e.stopPropagation(),this._gestureInProgress=!1,this._slider.toggleClassName("active",!1)}))}_startSliderDragging(e,t,i){if(!e.target||!(e.target instanceof Element))return;const s=e.pageX;this._slider.toggleClassName("active",!0);const n=(e,n)=>{const r=c.BK(this._domNode.domNode),o=Math.min(Math.abs(n-s),Math.abs(n-r.left),Math.abs(n-r.left-r.width));if(_.uF&&o>140)return void this._model.setScrollTop(i.scrollTop);const a=e-t;this._model.setScrollTop(i.getDesiredScrollTopFromDelta(a))};e.pageY!==t&&n(e.pageY,s),this._sliderPointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,(e=>n(e.pageY,e.pageX)),(()=>{this._slider.toggleClassName("active",!1)}))}scrollDueToTouchEvent(e){const t=this._domNode.domNode.getBoundingClientRect().top,i=this._lastRenderData.renderedLayout.getDesiredScrollTopFromTouchLocation(e.pageY-t);this._model.setScrollTop(i)}dispose(){this._pointerDownListener.dispose(),this._sliderPointerMoveMonitor.dispose(),this._sliderPointerDownListener.dispose(),this._gestureDisposable.dispose(),this._sliderTouchStartListener.dispose(),this._sliderTouchMoveListener.dispose(),this._sliderTouchEndListener.dispose(),super.dispose()}_getMinimapDomNodeClassName(){const e=["minimap"];return"always"===this._model.options.showSlider?e.push("slider-always"):e.push("slider-mouseover"),this._model.options.autohide&&e.push("autohide"),e.join(" ")}getDomNode(){return this._domNode}_applyLayout(){this._domNode.setLeft(this._model.options.minimapLeft),this._domNode.setWidth(this._model.options.minimapWidth),this._domNode.setHeight(this._model.options.minimapHeight),this._shadow.setHeight(this._model.options.minimapHeight),this._canvas.setWidth(this._model.options.canvasOuterWidth),this._canvas.setHeight(this._model.options.canvasOuterHeight),this._canvas.domNode.width=this._model.options.canvasInnerWidth,this._canvas.domNode.height=this._model.options.canvasInnerHeight,this._decorationsCanvas.setWidth(this._model.options.canvasOuterWidth),this._decorationsCanvas.setHeight(this._model.options.canvasOuterHeight),this._decorationsCanvas.domNode.width=this._model.options.canvasInnerWidth,this._decorationsCanvas.domNode.height=this._model.options.canvasInnerHeight,this._slider.setWidth(this._model.options.minimapWidth)}_getBuffer(){return this._buffers||this._model.options.canvasInnerWidth>0&&this._model.options.canvasInnerHeight>0&&(this._buffers=new ni(this._canvas.domNode.getContext("2d"),this._model.options.canvasInnerWidth,this._model.options.canvasInnerHeight,this._model.options.backgroundColor)),this._buffers?this._buffers.getBuffer():null}onDidChangeOptions(){this._lastRenderData=null,this._buffers=null,this._applyLayout(),this._domNode.setClassName(this._getMinimapDomNodeClassName())}onSelectionChanged(){return this._renderDecorations=!0,!0}onDecorationsChanged(){return this._renderDecorations=!0,!0}onFlushed(){return this._lastRenderData=null,!0}onLinesChanged(e,t){return!!this._lastRenderData&&this._lastRenderData.onLinesChanged(e,t)}onLinesDeleted(e,t){return this._lastRenderData?.onLinesDeleted(e,t),!0}onLinesInserted(e,t){return this._lastRenderData?.onLinesInserted(e,t),!0}onScrollChanged(){return this._renderDecorations=!0,!0}onThemeChanged(){return this._selectionColor=this._theme.getColor(zt.yr0),this._renderDecorations=!0,!0}onTokensChanged(e){return!!this._lastRenderData&&this._lastRenderData.onTokensChanged(e)}onTokensColorsChanged(){return this._lastRenderData=null,this._buffers=null,!0}onZonesChanged(){return this._lastRenderData=null,!0}render(e){if(0===this._model.options.renderMinimap)return this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),void this._sliderHorizontal.setHeight(0);e.scrollLeft+e.viewportWidth>=e.scrollWidth?this._shadow.setClassName("minimap-shadow-hidden"):this._shadow.setClassName("minimap-shadow-visible");const t=ti.create(this._model.options,e.viewportStartLineNumber,e.viewportEndLineNumber,e.viewportStartLineNumberVerticalOffset,e.viewportHeight,e.viewportContainsWhitespaceGaps,this._model.getLineCount(),this._model.getRealLineCount(),e.scrollTop,e.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null);this._slider.setDisplay(t.sliderNeeded?"block":"none"),this._slider.setTop(t.sliderTop),this._slider.setHeight(t.sliderHeight),this._sliderHorizontal.setLeft(0),this._sliderHorizontal.setWidth(this._model.options.minimapWidth),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(t.sliderHeight),this.renderDecorations(t),this._lastRenderData=this.renderLines(t)}renderDecorations(e){if(this._renderDecorations){this._renderDecorations=!1;const t=this._model.getSelections();t.sort(q.Q.compareRangesUsingStarts);const i=this._model.getMinimapDecorationsInViewport(e.startLineNumber,e.endLineNumber);i.sort(((e,t)=>(e.options.zIndex||0)-(t.options.zIndex||0)));const{canvasInnerWidth:s,canvasInnerHeight:n}=this._model.options,r=this._model.options.minimapLineHeight,o=this._model.options.minimapCharWidth,a=this._model.getOptions().tabSize,c=this._decorationsCanvas.domNode.getContext("2d");c.clearRect(0,0,s,n);const l=new ci(e.startLineNumber,e.endLineNumber,!1);this._renderSelectionLineHighlights(c,t,l,e,r),this._renderDecorationsLineHighlights(c,i,l,e,r);const h=new ci(e.startLineNumber,e.endLineNumber,null);this._renderSelectionsHighlights(c,t,h,e,r,a,o,s),this._renderDecorationsHighlights(c,i,h,e,r,a,o,s),this._renderSectionHeaders(e)}}_renderSelectionLineHighlights(e,t,i,s,n){if(!this._selectionColor||this._selectionColor.isTransparent())return;e.fillStyle=this._selectionColor.transparent(.5).toString();let r=0,o=0;for(const a of t){const t=s.intersectWithViewport(a);if(!t)continue;const[c,l]=t;for(let e=c;e<=l;e++)i.set(e,!0);const h=s.getYForLineNumber(c,n),d=s.getYForLineNumber(l,n);o>=h||(o>r&&e.fillRect(R.xq,r,e.canvas.width,o-r),r=h),o=d}o>r&&e.fillRect(R.xq,r,e.canvas.width,o-r)}_renderDecorationsLineHighlights(e,t,i,s,n){const r=new Map;for(let o=t.length-1;o>=0;o--){const a=t[o],c=a.options.minimap;if(!c||1!==c.position)continue;const l=s.intersectWithViewport(a.range);if(!l)continue;const[h,d]=l,u=c.getColor(this._theme.value);if(!u||u.isTransparent())continue;let g=r.get(u.toString());g||(g=u.transparent(.5).toString(),r.set(u.toString(),g)),e.fillStyle=g;for(let t=h;t<=d;t++){if(i.has(t))continue;i.set(t,!0);const r=s.getYForLineNumber(h,n);e.fillRect(R.xq,r,e.canvas.width,n)}}}_renderSelectionsHighlights(e,t,i,s,n,r,o,a){if(this._selectionColor&&!this._selectionColor.isTransparent())for(const c of t){const t=s.intersectWithViewport(c);if(!t)continue;const[l,h]=t;for(let d=l;d<=h;d++)this.renderDecorationOnLine(e,i,c,this._selectionColor,s,d,n,n,r,o,a)}}_renderDecorationsHighlights(e,t,i,s,n,r,o,a){for(const c of t){const t=c.options.minimap;if(!t)continue;const l=s.intersectWithViewport(c.range);if(!l)continue;const[h,d]=l,u=t.getColor(this._theme.value);if(u&&!u.isTransparent())for(let g=h;g<=d;g++)switch(t.position){case 1:this.renderDecorationOnLine(e,i,c.range,u,s,g,n,n,r,o,a);continue;case 2:{const t=s.getYForLineNumber(g,n),i=2;this.renderDecoration(e,u,i,t,2,n);continue}}}}renderDecorationOnLine(e,t,i,s,n,r,o,a,c,l,h){const d=n.getYForLineNumber(r,a);if(d+o<0||d>this._model.options.canvasInnerHeight)return;const{startLineNumber:u,endLineNumber:g}=i,p=u===r?i.startColumn:1,m=g===r?i.endColumn:this._model.getLineMaxColumn(r),f=this.getXOffsetForPosition(t,r,p,c,l,h),_=this.getXOffsetForPosition(t,r,m,c,l,h);this.renderDecoration(e,s,f,d,_-f,o)}getXOffsetForPosition(e,t,i,s,n,r){if(1===i)return R.xq;if((i-1)*n>=r)return r;let o=e.get(t);if(!o){const i=this._model.getLineContent(t);o=[R.xq];let a=R.xq;for(let e=1;e<i.length+1;e++){const t=i.charCodeAt(e-1),c=a+(9===t?s*n:Le.ne(t)?2*n:n);if(c>=r){o[e]=r;break}o[e]=c,a=c}e.set(t,o)}return i-1<o.length?o[i-1]:r}renderDecoration(e,t,i,s,n,r){e.fillStyle=t&&t.toString()||"",e.fillRect(i,s,n,r)}_renderSectionHeaders(e){const t=this._model.options.minimapLineHeight,i=this._model.options.sectionHeaderFontSize,s=this._model.options.sectionHeaderLetterSpacing,n=1.5*i,{canvasInnerWidth:r}=this._model.options,o=this._model.options.backgroundColor,a=`rgb(${o.r} ${o.g} ${o.b} / .7)`,c=this._model.options.sectionHeaderFontColor,l=`rgb(${c.r} ${c.g} ${c.b})`,h=l,d=this._decorationsCanvas.domNode.getContext("2d");d.letterSpacing=s+"px",d.font="500 "+i+"px "+this._model.options.sectionHeaderFontFamily,d.strokeStyle=h,d.lineWidth=.2;const u=this._model.getSectionHeaderDecorationsInViewport(e.startLineNumber,e.endLineNumber);u.sort(((e,t)=>e.range.startLineNumber-t.range.startLineNumber));const g=ai._fitSectionHeader.bind(null,d,r-R.xq);for(const p of u){const s=e.getYForLineNumber(p.range.startLineNumber,t)+i,o=s-i,c=o+2,h=this._model.getSectionHeaderText(p,g);ai._renderSectionLabel(d,h,2===p.options.minimap?.sectionHeaderStyle,a,l,r,o,n,s,c)}}static _fitSectionHeader(e,t,i){if(!i)return i;const s=e.measureText(i).width,n=e.measureText("\u2026").width;if(s<=t||s<=n)return i;const r=i.length,o=s/i.length,a=Math.floor((t-n)/o)-1;let c=Math.ceil(a/2);for(;c>0&&/\s/.test(i[c-1]);)--c;return i.substring(0,c)+"\u2026"+i.substring(r-(a-c))}static _renderSectionLabel(e,t,i,s,n,r,o,a,c,l){t&&(e.fillStyle=s,e.fillRect(0,o,r,a),e.fillStyle=n,e.fillText(t,R.xq,c)),i&&(e.beginPath(),e.moveTo(0,l),e.lineTo(r,l),e.closePath(),e.stroke())}renderLines(e){const t=e.startLineNumber,i=e.endLineNumber,s=this._model.options.minimapLineHeight;if(this._lastRenderData&&this._lastRenderData.linesEquals(e)){const t=this._lastRenderData._get();return new si(e,t.imageData,t.lines)}const n=this._getBuffer();if(!n)return null;const[r,o,a]=ai._renderUntouchedLines(n,e.topPaddingLineCount,t,i,s,this._lastRenderData),c=this._model.getMinimapLinesRenderingData(t,i,a),l=this._model.getOptions().tabSize,h=this._model.options.defaultBackgroundColor,d=this._model.options.backgroundColor,u=this._model.options.foregroundAlpha,g=this._model.tokensColorTracker,p=g.backgroundIsLight(),m=this._model.options.renderMinimap,f=this._model.options.charRenderer(),_=this._model.options.fontScale,v=this._model.options.minimapCharWidth,C=(1===m?2:3)*_,E=s>C?Math.floor((s-C)/2):0,b=d.a/255,S=new Bt(Math.round((d.r-h.r)*b+h.r),Math.round((d.g-h.g)*b+h.g),Math.round((d.b-h.b)*b+h.b),255);let y=e.topPaddingLineCount*s;const w=[];for(let T=0,x=i-t+1;T<x;T++)a[T]&&ai._renderLine(n,S,d.a,p,m,v,g,u,f,y,E,l,c[T],_,s),w[T]=new ii(y),y+=s;const R=-1===r?0:r,L=(-1===o?n.height:o)-R;return this._canvas.domNode.getContext("2d").putImageData(n,0,0,0,R,n.width,L),new si(e,n,w)}static _renderUntouchedLines(e,t,i,s,n,r){const o=[];if(!r){for(let e=0,t=s-i+1;e<t;e++)o[e]=!0;return[-1,-1,o]}const a=r._get(),c=a.imageData.data,l=a.rendLineNumberStart,h=a.lines,d=h.length,u=e.width,g=e.data,p=(s-i+1)*n*u*4;let m=-1,f=-1,_=-1,v=-1,C=-1,E=-1,b=t*n;for(let S=i;S<=s;S++){const e=S-i,t=S-l,s=t>=0&&t<d?h[t].dy:-1;if(-1===s){o[e]=!0,b+=n;continue}const r=s*u*4,a=(s+n)*u*4,y=b*u*4,w=(b+n)*u*4;v===r&&E===y?(v=a,E=w):(-1!==_&&(g.set(c.subarray(_,v),C),-1===m&&0===_&&_===C&&(m=v),-1===f&&v===p&&_===C&&(f=_)),_=r,v=a,C=y,E=w),o[e]=!1,b+=n}-1!==_&&(g.set(c.subarray(_,v),C),-1===m&&0===_&&_===C&&(m=v),-1===f&&v===p&&_===C&&(f=_));return[-1===m?-1:m/(4*u),-1===f?-1:f/(4*u),o]}static _renderLine(e,t,i,s,n,r,o,a,c,l,h,d,u,g,p){const m=u.content,f=u.tokens,_=e.width-r,v=1===p;let C=R.xq,E=0,b=0;for(let S=0,y=f.getCount();S<y;S++){const u=f.getEndOffset(S),p=f.getForeground(S),y=o.getColor(p);for(;E<u;E++){if(C>_)return;const o=m.charCodeAt(E);if(9===o){const e=d-(E+b)%d;b+=e-1,C+=e*r}else if(32===o)C+=r;else{const d=Le.ne(o)?2:1;for(let u=0;u<d;u++)if(2===n?c.blockRenderChar(e,C,l+h,y,a,t,i,v):c.renderChar(e,C,l+h,o,y,a,t,i,g,s,v),C+=r,C>_)return}}}}}class ci{constructor(e,t,i){this._startLineNumber=e,this._endLineNumber=t,this._defaultValue=i,this._values=[];for(let s=0,n=this._endLineNumber-this._startLineNumber+1;s<n;s++)this._values[s]=i}has(e){return this.get(e)!==this._defaultValue}set(e,t){e<this._startLineNumber||e>this._endLineNumber||(this._values[e-this._startLineNumber]=t)}get(e){return e<this._startLineNumber||e>this._endLineNumber?this._defaultValue:this._values[e-this._startLineNumber]}}class li extends z{constructor(e,t){super(e),this._viewDomNode=t;const i=this._context.configuration.options.get(146);this._widgets={},this._verticalScrollbarWidth=i.verticalScrollbarWidth,this._minimapWidth=i.minimap.minimapWidth,this._horizontalScrollbarHeight=i.horizontalScrollbarHeight,this._editorHeight=i.height,this._editorWidth=i.width,this._viewDomNodeRect={top:0,left:0,width:0,height:0},this._domNode=(0,H.Z)(document.createElement("div")),G.write(this._domNode,4),this._domNode.setClassName("overlayWidgets"),this.overflowingOverlayWidgetsDomNode=(0,H.Z)(document.createElement("div")),G.write(this.overflowingOverlayWidgetsDomNode,5),this.overflowingOverlayWidgetsDomNode.setClassName("overflowingOverlayWidgets")}dispose(){super.dispose(),this._widgets={}}getDomNode(){return this._domNode}onConfigurationChanged(e){const t=this._context.configuration.options.get(146);return this._verticalScrollbarWidth=t.verticalScrollbarWidth,this._minimapWidth=t.minimap.minimapWidth,this._horizontalScrollbarHeight=t.horizontalScrollbarHeight,this._editorHeight=t.height,this._editorWidth=t.width,!0}addWidget(e){const t=(0,H.Z)(e.getDomNode());this._widgets[e.getId()]={widget:e,preference:null,domNode:t},t.setPosition("absolute"),t.setAttribute("widgetId",e.getId()),e.allowEditorOverflow?this.overflowingOverlayWidgetsDomNode.appendChild(t):this._domNode.appendChild(t),this.setShouldRender(),this._updateMaxMinWidth()}setWidgetPosition(e,t){const i=this._widgets[e.getId()],s=t?t.preference:null,n=t?.stackOridinal;return i.preference===s&&i.stack===n?(this._updateMaxMinWidth(),!1):(i.preference=s,i.stack=n,this.setShouldRender(),this._updateMaxMinWidth(),!0)}removeWidget(e){const t=e.getId();if(this._widgets.hasOwnProperty(t)){const e=this._widgets[t].domNode.domNode;delete this._widgets[t],e.remove(),this.setShouldRender(),this._updateMaxMinWidth()}}_updateMaxMinWidth(){let e=0;const t=Object.keys(this._widgets);for(let i=0,s=t.length;i<s;i++){const s=t[i],n=this._widgets[s],r=n.widget.getMinContentWidthInPx?.();"undefined"!==typeof r&&(e=Math.max(e,r))}this._context.viewLayout.setOverlayWidgetsMinWidth(e)}_renderWidget(e,t){const i=e.domNode;if(null===e.preference)return void i.setTop("");const s=2*this._verticalScrollbarWidth+this._minimapWidth;if(0===e.preference||1===e.preference){if(1===e.preference){const e=i.domNode.clientHeight;i.setTop(this._editorHeight-e-2*this._horizontalScrollbarHeight)}else i.setTop(0);void 0!==e.stack?(i.setTop(t[e.preference]),t[e.preference]+=i.domNode.clientWidth):i.setRight(s)}else if(2===e.preference)i.domNode.style.right="50%",void 0!==e.stack?(i.setTop(t[2]),t[2]+=i.domNode.clientHeight):i.setTop(0);else{const{top:t,left:s}=e.preference;if(this._context.configuration.options.get(42)&&e.widget.allowEditorOverflow){const e=this._viewDomNodeRect;i.setTop(t+e.top),i.setLeft(s+e.left),i.setPosition("fixed")}else i.setTop(t),i.setLeft(s),i.setPosition("absolute")}}prepareRender(e){this._viewDomNodeRect=c.BK(this._viewDomNode.domNode)}render(e){this._domNode.setWidth(this._editorWidth);const t=Object.keys(this._widgets),i=Array.from({length:3},(()=>0));t.sort(((e,t)=>(this._widgets[e].stack||0)-(this._widgets[t].stack||0)));for(let s=0,n=t.length;s<n;s++){const e=t[s];this._renderWidget(this._widgets[e],i)}}}class hi{constructor(e,t){const i=e.options;this.lineHeight=i.get(67),this.pixelRatio=i.get(144),this.overviewRulerLanes=i.get(83),this.renderBorder=i.get(82);const s=t.getColor(Ae.x9);this.borderColor=s?s.toString():null,this.hideCursor=i.get(59);const n=t.getColor(Ae.D0);this.cursorColorSingle=n?n.transparent(.7).toString():null;const r=t.getColor(Ae.sC);this.cursorColorPrimary=r?r.transparent(.7).toString():null;const o=t.getColor(Ae.we);this.cursorColorSecondary=o?o.transparent(.7).toString():null,this.themeType=t.type;const a=i.get(73),c=a.enabled,l=a.side,h=t.getColor(Ae.Xr),d=Me.dG.getDefaultBackground();this.backgroundColor=h||(c&&"right"===l?d:null);const u=i.get(146).overviewRuler;this.top=u.top,this.right=u.right,this.domWidth=u.width,this.domHeight=u.height,0===this.overviewRulerLanes?(this.canvasWidth=0,this.canvasHeight=0):(this.canvasWidth=this.domWidth*this.pixelRatio|0,this.canvasHeight=this.domHeight*this.pixelRatio|0);const[g,p]=this._initLanes(1,this.canvasWidth,this.overviewRulerLanes);this.x=g,this.w=p}_initLanes(e,t,i){const s=t-e;if(i>=3){const t=Math.floor(s/3),i=Math.floor(s/3),n=s-t-i,r=e+t;return[[0,e,r,e,e+t+n,e,r,e],[0,t,n,t+n,i,t+n+i,n+i,t+n+i]]}if(2===i){const t=Math.floor(s/2),i=s-t;return[[0,e,e,e,e+t,e,e,e],[0,t,t,t,i,t+i,t+i,t+i]]}return[[0,e,e,e,e,e,e,e],[0,s,s,s,s,s,s,s]]}equals(e){return this.lineHeight===e.lineHeight&&this.pixelRatio===e.pixelRatio&&this.overviewRulerLanes===e.overviewRulerLanes&&this.renderBorder===e.renderBorder&&this.borderColor===e.borderColor&&this.hideCursor===e.hideCursor&&this.cursorColorSingle===e.cursorColorSingle&&this.cursorColorPrimary===e.cursorColorPrimary&&this.cursorColorSecondary===e.cursorColorSecondary&&this.themeType===e.themeType&&Pe.Q1.equals(this.backgroundColor,e.backgroundColor)&&this.top===e.top&&this.right===e.right&&this.domWidth===e.domWidth&&this.domHeight===e.domHeight&&this.canvasWidth===e.canvasWidth&&this.canvasHeight===e.canvasHeight}}class di extends z{constructor(e){super(e),this._actualShouldRender=0,this._renderedDecorations=[],this._renderedCursorPositions=[],this._domNode=(0,H.Z)(document.createElement("canvas")),this._domNode.setClassName("decorationsOverviewRuler"),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._domNode.setAttribute("aria-hidden","true"),this._updateSettings(!1),this._tokensColorTrackerListener=Me.dG.onDidChange((e=>{e.changedColorMap&&this._updateSettings(!0)})),this._cursorPositions=[{position:new Y.y(1,1),color:this._settings.cursorColorSingle}]}dispose(){super.dispose(),this._tokensColorTrackerListener.dispose()}_updateSettings(e){const t=new hi(this._context.configuration,this._context.theme);return(!this._settings||!this._settings.equals(t))&&(this._settings=t,this._domNode.setTop(this._settings.top),this._domNode.setRight(this._settings.right),this._domNode.setWidth(this._settings.domWidth),this._domNode.setHeight(this._settings.domHeight),this._domNode.domNode.width=this._settings.canvasWidth,this._domNode.domNode.height=this._settings.canvasHeight,e&&this._render(),!0)}_markRenderingIsNeeded(){return this._actualShouldRender=2,!0}_markRenderingIsMaybeNeeded(){return this._actualShouldRender=1,!0}onConfigurationChanged(e){return!!this._updateSettings(!1)&&this._markRenderingIsNeeded()}onCursorStateChanged(e){this._cursorPositions=[];for(let t=0,i=e.selections.length;t<i;t++){let s=this._settings.cursorColorSingle;i>1&&(s=0===t?this._settings.cursorColorPrimary:this._settings.cursorColorSecondary),this._cursorPositions.push({position:e.selections[t].getPosition(),color:s})}return this._cursorPositions.sort(((e,t)=>Y.y.compare(e.position,t.position))),this._markRenderingIsMaybeNeeded()}onDecorationsChanged(e){return!!e.affectsOverviewRuler&&this._markRenderingIsMaybeNeeded()}onFlushed(e){return this._markRenderingIsNeeded()}onScrollChanged(e){return!!e.scrollHeightChanged&&this._markRenderingIsNeeded()}onZonesChanged(e){return this._markRenderingIsNeeded()}onThemeChanged(e){return!!this._updateSettings(!1)&&this._markRenderingIsNeeded()}getDomNode(){return this._domNode.domNode}prepareRender(e){}render(e){this._render(),this._actualShouldRender=0}_render(){const e=this._settings.backgroundColor;if(0===this._settings.overviewRulerLanes)return this._domNode.setBackgroundColor(e?Pe.Q1.Format.CSS.formatHexA(e):""),void this._domNode.setDisplay("none");const t=this._context.viewModel.getAllOverviewRulerDecorations(this._context.theme);if(t.sort(Vt.Uv.compareByRenderingProps),1!==this._actualShouldRender||Vt.Uv.equalsArr(this._renderedDecorations,t)||(this._actualShouldRender=2),1!==this._actualShouldRender||(0,m.aI)(this._renderedCursorPositions,this._cursorPositions,((e,t)=>e.position.lineNumber===t.position.lineNumber&&e.color===t.color))||(this._actualShouldRender=2),1===this._actualShouldRender)return;this._renderedDecorations=t,this._renderedCursorPositions=this._cursorPositions,this._domNode.setDisplay("block");const i=this._settings.canvasWidth,s=this._settings.canvasHeight,n=this._settings.lineHeight,r=this._context.viewLayout,o=s/this._context.viewLayout.getScrollHeight(),a=6*this._settings.pixelRatio|0,c=a/2|0,l=this._domNode.domNode.getContext("2d");e?e.isOpaque()?(l.fillStyle=Pe.Q1.Format.CSS.formatHexA(e),l.fillRect(0,0,i,s)):(l.clearRect(0,0,i,s),l.fillStyle=Pe.Q1.Format.CSS.formatHexA(e),l.fillRect(0,0,i,s)):l.clearRect(0,0,i,s);const h=this._settings.x,d=this._settings.w;for(const u of t){const e=u.color,t=u.data;l.fillStyle=e;let i=0,g=0,p=0;for(let u=0,m=t.length/3;u<m;u++){const e=t[3*u],m=t[3*u+1],f=t[3*u+2];let _=r.getVerticalOffsetForLineNumber(m)*o|0,v=(r.getVerticalOffsetForLineNumber(f)+n)*o|0;if(v-_<a){let e=(_+v)/2|0;e<c?e=c:e+c>s&&(e=s-c),_=e-c,v=e+c}_>p+1||e!==i?(0!==u&&l.fillRect(h[i],g,d[i],p-g),i=e,g=_,p=v):v>p&&(p=v)}l.fillRect(h[i],g,d[i],p-g)}if(!this._settings.hideCursor){const e=2*this._settings.pixelRatio|0,t=e/2|0,i=this._settings.x[7],n=this._settings.w[7];let a=-100,c=-100,h=null;for(let d=0,u=this._cursorPositions.length;d<u;d++){const u=this._cursorPositions[d].color;if(!u)continue;const g=this._cursorPositions[d].position;let p=r.getVerticalOffsetForLineNumber(g.lineNumber)*o|0;p<t?p=t:p+t>s&&(p=s-t);const m=p-t,f=m+e;m>c+1||u!==h?(0!==d&&h&&l.fillRect(i,a,n,c-a),a=m,c=f):f>c&&(c=f),h=u,l.fillStyle=u}h&&l.fillRect(i,a,n,c-a)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(l.beginPath(),l.lineWidth=1,l.strokeStyle=this._settings.borderColor,l.moveTo(0,0),l.lineTo(0,s),l.moveTo(1,0),l.lineTo(i,0),l.stroke())}}var ui,gi=i(19531);class pi extends V{constructor(e,t){super(),this._context=e;const i=this._context.configuration.options;this._domNode=(0,H.Z)(document.createElement("canvas")),this._domNode.setClassName(t),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._zoneManager=new gi.rW((e=>this._context.viewLayout.getVerticalOffsetForLineNumber(e))),this._zoneManager.setDOMWidth(0),this._zoneManager.setDOMHeight(0),this._zoneManager.setOuterHeight(this._context.viewLayout.getScrollHeight()),this._zoneManager.setLineHeight(i.get(67)),this._zoneManager.setPixelRatio(i.get(144)),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return e.hasChanged(67)&&(this._zoneManager.setLineHeight(t.get(67)),this._render()),e.hasChanged(144)&&(this._zoneManager.setPixelRatio(t.get(144)),this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render()),!0}onFlushed(e){return this._render(),!0}onScrollChanged(e){return e.scrollHeightChanged&&(this._zoneManager.setOuterHeight(e.scrollHeight),this._render()),!0}onZonesChanged(e){return this._render(),!0}getDomNode(){return this._domNode.domNode}setLayout(e){this._domNode.setTop(e.top),this._domNode.setRight(e.right);let t=!1;t=this._zoneManager.setDOMWidth(e.width)||t,t=this._zoneManager.setDOMHeight(e.height)||t,t&&(this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render())}setZones(e){this._zoneManager.setZones(e),this._render()}_render(){if(0===this._zoneManager.getOuterHeight())return!1;const e=this._zoneManager.getCanvasWidth(),t=this._zoneManager.getCanvasHeight(),i=this._zoneManager.resolveColorZones(),s=this._zoneManager.getId2Color(),n=this._domNode.domNode.getContext("2d");return n.clearRect(0,0,e,t),i.length>0&&this._renderOneLane(n,i,s,e),!0}_renderOneLane(e,t,i,s){let n=0,r=0,o=0;for(const a of t){const t=a.colorId,c=a.from,l=a.to;t!==n?(e.fillRect(0,r,s,o-r),n=t,e.fillStyle=i[n],r=c,o=l):o>=c?o=Math.max(o,l):(e.fillRect(0,r,s,o-r),r=c,o=l)}e.fillRect(0,r,s,o-r)}}class mi extends z{constructor(e){super(e),this.domNode=(0,H.Z)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.domNode.setClassName("view-rulers"),this._renderedRulers=[];const t=this._context.configuration.options;this._rulers=t.get(103),this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth}dispose(){super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._rulers=t.get(103),this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,!0}onScrollChanged(e){return e.scrollHeightChanged}prepareRender(e){}_ensureRulersCount(){const e=this._renderedRulers.length,t=this._rulers.length;if(e===t)return;if(e<t){const{tabSize:i}=this._context.viewModel.model.getOptions(),s=i;let n=t-e;for(;n>0;){const e=(0,H.Z)(document.createElement("div"));e.setClassName("view-ruler"),e.setWidth(s),this.domNode.appendChild(e),this._renderedRulers.push(e),n--}return}let i=e-t;for(;i>0;){const e=this._renderedRulers.pop();this.domNode.removeChild(e),i--}}render(e){this._ensureRulersCount();for(let t=0,i=this._rulers.length;t<i;t++){const i=this._renderedRulers[t],s=this._rulers[t];i.setBoxShadow(s.color?`1px 0 0 0 ${s.color} inset`:""),i.setHeight(Math.min(e.scrollHeight,1e6)),i.setLeft(s.column*this._typicalHalfwidthCharacterWidth)}}}class fi extends z{constructor(e){super(e),this._scrollTop=0,this._width=0,this._updateWidth(),this._shouldShow=!1;const t=this._context.configuration.options.get(104);this._useShadows=t.useShadows,this._domNode=(0,H.Z)(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true")}dispose(){super.dispose()}_updateShouldShow(){const e=this._useShadows&&this._scrollTop>0;return this._shouldShow!==e&&(this._shouldShow=e,!0)}getDomNode(){return this._domNode}_updateWidth(){const e=this._context.configuration.options.get(146);0===e.minimap.renderMinimap||e.minimap.minimapWidth>0&&0===e.minimap.minimapLeft?this._width=e.width:this._width=e.width-e.verticalScrollbarWidth}onConfigurationChanged(e){const t=this._context.configuration.options.get(104);return this._useShadows=t.useShadows,this._updateWidth(),this._updateShouldShow(),!0}onScrollChanged(e){return this._scrollTop=e.scrollTop,this._updateShouldShow()}prepareRender(e){}render(e){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")}}class _i{constructor(e){this.left=e.left,this.width=e.width,this.startStyle=null,this.endStyle=null}}class vi{constructor(e,t){this.lineNumber=e,this.ranges=t}}function Ci(e){return new _i(e)}function Ei(e){return new vi(e.lineNumber,e.ranges.map(Ci))}class bi extends xe{static{this.SELECTION_CLASS_NAME="selected-text"}static{this.SELECTION_TOP_LEFT="top-left-radius"}static{this.SELECTION_BOTTOM_LEFT="bottom-left-radius"}static{this.SELECTION_TOP_RIGHT="top-right-radius"}static{this.SELECTION_BOTTOM_RIGHT="bottom-right-radius"}static{this.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background"}static{this.ROUNDED_PIECE_WIDTH=10}constructor(e){super(),this._previousFrameVisibleRangesWithStyle=[],this._context=e;const t=this._context.configuration.options;this._roundedSelection=t.get(102),this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,this._selections=[],this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._roundedSelection=t.get(102),this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,!0}onCursorStateChanged(e){return this._selections=e.selections.slice(0),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_visibleRangesHaveGaps(e){for(let t=0,i=e.length;t<i;t++){if(e[t].ranges.length>1)return!0}return!1}_enrichVisibleRangesWithStyle(e,t,i){const s=this._typicalHalfwidthCharacterWidth/4;let n=null,r=null;if(i&&i.length>0&&t.length>0){const s=t[0].lineNumber;if(s===e.startLineNumber)for(let e=0;!n&&e<i.length;e++)i[e].lineNumber===s&&(n=i[e].ranges[0]);const o=t[t.length-1].lineNumber;if(o===e.endLineNumber)for(let e=i.length-1;!r&&e>=0;e--)i[e].lineNumber===o&&(r=i[e].ranges[0]);n&&!n.startStyle&&(n=null),r&&!r.startStyle&&(r=null)}for(let o=0,a=t.length;o<a;o++){const e=t[o].ranges[0],i=e.left,c=e.left+e.width,l={top:0,bottom:0},h={top:0,bottom:0};if(o>0){const e=t[o-1].ranges[0].left,n=t[o-1].ranges[0].left+t[o-1].ranges[0].width;Si(i-e)<s?l.top=2:i>e&&(l.top=1),Si(c-n)<s?h.top=2:e<c&&c<n&&(h.top=1)}else n&&(l.top=n.startStyle.top,h.top=n.endStyle.top);if(o+1<a){const e=t[o+1].ranges[0].left,n=t[o+1].ranges[0].left+t[o+1].ranges[0].width;Si(i-e)<s?l.bottom=2:e<i&&i<n&&(l.bottom=1),Si(c-n)<s?h.bottom=2:c<n&&(h.bottom=1)}else r&&(l.bottom=r.startStyle.bottom,h.bottom=r.endStyle.bottom);e.startStyle=l,e.endStyle=h}}_getVisibleRangesWithStyle(e,t,i){const s=(t.linesVisibleRangesForRange(e,!0)||[]).map(Ei);return!this._visibleRangesHaveGaps(s)&&this._roundedSelection&&this._enrichVisibleRangesWithStyle(t.visibleRange,s,i),s}_createSelectionPiece(e,t,i,s,n){return'<div class="cslr '+i+'" style="top:'+e.toString()+"px;bottom:"+t.toString()+"px;left:"+s.toString()+"px;width:"+n.toString()+'px;"></div>'}_actualRenderOneSelection(e,t,i,s){if(0===s.length)return;const n=!!s[0].ranges[0].startStyle,r=s[0].lineNumber,o=s[s.length-1].lineNumber;for(let a=0,c=s.length;a<c;a++){const c=s[a],l=c.lineNumber,h=l-t,d=i&&l===r?1:0,u=i&&l!==r&&l===o?1:0;let g="",p="";for(let e=0,t=c.ranges.length;e<t;e++){const t=c.ranges[e];if(n){const e=t.startStyle,i=t.endStyle;if(1===e.top||1===e.bottom){g+=this._createSelectionPiece(d,u,bi.SELECTION_CLASS_NAME,t.left-bi.ROUNDED_PIECE_WIDTH,bi.ROUNDED_PIECE_WIDTH);let i=bi.EDITOR_BACKGROUND_CLASS_NAME;1===e.top&&(i+=" "+bi.SELECTION_TOP_RIGHT),1===e.bottom&&(i+=" "+bi.SELECTION_BOTTOM_RIGHT),g+=this._createSelectionPiece(d,u,i,t.left-bi.ROUNDED_PIECE_WIDTH,bi.ROUNDED_PIECE_WIDTH)}if(1===i.top||1===i.bottom){g+=this._createSelectionPiece(d,u,bi.SELECTION_CLASS_NAME,t.left+t.width,bi.ROUNDED_PIECE_WIDTH);let e=bi.EDITOR_BACKGROUND_CLASS_NAME;1===i.top&&(e+=" "+bi.SELECTION_TOP_LEFT),1===i.bottom&&(e+=" "+bi.SELECTION_BOTTOM_LEFT),g+=this._createSelectionPiece(d,u,e,t.left+t.width,bi.ROUNDED_PIECE_WIDTH)}}let i=bi.SELECTION_CLASS_NAME;if(n){const e=t.startStyle,s=t.endStyle;0===e.top&&(i+=" "+bi.SELECTION_TOP_LEFT),0===e.bottom&&(i+=" "+bi.SELECTION_BOTTOM_LEFT),0===s.top&&(i+=" "+bi.SELECTION_TOP_RIGHT),0===s.bottom&&(i+=" "+bi.SELECTION_BOTTOM_RIGHT)}p+=this._createSelectionPiece(d,u,i,t.left,t.width)}e[h][0]+=g,e[h][1]+=p}}prepareRender(e){const t=[],i=e.visibleRange.startLineNumber,s=e.visibleRange.endLineNumber;for(let r=i;r<=s;r++){t[r-i]=["",""]}const n=[];for(let r=0,o=this._selections.length;r<o;r++){const s=this._selections[r];if(s.isEmpty()){n[r]=null;continue}const o=this._getVisibleRangesWithStyle(s,e,this._previousFrameVisibleRangesWithStyle[r]);n[r]=o,this._actualRenderOneSelection(t,i,this._selections.length>1,o)}this._previousFrameVisibleRangesWithStyle=n,this._renderResult=t.map((([e,t])=>e+t))}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}function Si(e){return e<0?-e:e}(0,ke.zy)(((e,t)=>{const i=e.getColor(zt.rm4);i&&!i.isTransparent()&&t.addRule(`.monaco-editor .view-line span.inline-selected-text { color: ${i}; }`)}));class yi{constructor(e,t,i,s,n,r,o){this.top=e,this.left=t,this.paddingLeft=i,this.width=s,this.height=n,this.textContent=r,this.textContentClassName=o}}!function(e){e[e.Single=0]="Single",e[e.MultiPrimary=1]="MultiPrimary",e[e.MultiSecondary=2]="MultiSecondary"}(ui||(ui={}));class wi{constructor(e,t){this._context=e;const i=this._context.configuration.options,s=i.get(50);this._cursorStyle=i.get(28),this._lineHeight=i.get(67),this._typicalHalfwidthCharacterWidth=s.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(i.get(31),this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=(0,H.Z)(document.createElement("div")),this._domNode.setClassName(`cursor ${De}`),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),(0,g.M)(this._domNode,s),this._domNode.setDisplay("none"),this._position=new Y.y(1,1),this._pluralityClass="",this.setPlurality(t),this._lastRenderedContent="",this._renderData=null}getDomNode(){return this._domNode}getPosition(){return this._position}setPlurality(e){switch(e){default:case ui.Single:this._pluralityClass="";break;case ui.MultiPrimary:this._pluralityClass="cursor-primary";break;case ui.MultiSecondary:this._pluralityClass="cursor-secondary"}}show(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)}hide(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(50);return this._cursorStyle=t.get(28),this._lineHeight=t.get(67),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(31),this._typicalHalfwidthCharacterWidth),(0,g.M)(this._domNode,i),!0}onCursorPositionChanged(e,t){return this._domNode.domNode.style.transitionProperty=t?"none":"",this._position=e,!0}_getGraphemeAwarePosition(){const{lineNumber:e,column:t}=this._position,i=this._context.viewModel.getLineContent(e),[s,n]=Le.m(i,t-1);return[new Y.y(e,s+1),i.substring(s,n)]}_prepareRender(e){let t="",i="";const[s,n]=this._getGraphemeAwarePosition();if(this._cursorStyle===R.m9.Line||this._cursorStyle===R.m9.LineThin){const r=e.visibleRangeForPosition(s);if(!r||r.outsideRenderedLine)return null;const o=c.zk(this._domNode.domNode);let a;this._cursorStyle===R.m9.Line?(a=c.vT(o,this._lineCursorWidth>0?this._lineCursorWidth:2),a>2&&(t=n,i=this._getTokenClassName(s))):a=c.vT(o,1);let l=r.left,h=0;a>=2&&l>=1&&(h=1,l-=h);const d=e.getVerticalOffsetForLineNumber(s.lineNumber)-e.bigNumbersDelta;return new yi(d,l,h,a,this._lineHeight,t,i)}const r=e.linesVisibleRangesForRange(new q.Q(s.lineNumber,s.column,s.lineNumber,s.column+n.length),!1);if(!r||0===r.length)return null;const o=r[0];if(o.outsideRenderedLine||0===o.ranges.length)return null;const a=o.ranges[0],l="\t"===n||a.width<1?this._typicalHalfwidthCharacterWidth:a.width;this._cursorStyle===R.m9.Block&&(t=n,i=this._getTokenClassName(s));let h=e.getVerticalOffsetForLineNumber(s.lineNumber)-e.bigNumbersDelta,d=this._lineHeight;return this._cursorStyle!==R.m9.Underline&&this._cursorStyle!==R.m9.UnderlineThin||(h+=this._lineHeight-2,d=2),new yi(h,a.left,0,l,d,t,i)}_getTokenClassName(e){const t=this._context.viewModel.getViewLineData(e.lineNumber),i=t.tokens.findTokenIndexAtOffset(e.column-1);return t.tokens.getClassName(i)}prepareRender(e){this._renderData=this._prepareRender(e)}render(e){return this._renderData?(this._lastRenderedContent!==this._renderData.textContent&&(this._lastRenderedContent=this._renderData.textContent,this._domNode.domNode.textContent=this._lastRenderedContent),this._domNode.setClassName(`cursor ${this._pluralityClass} ${De} ${this._renderData.textContentClassName}`),this._domNode.setDisplay("block"),this._domNode.setTop(this._renderData.top),this._domNode.setLeft(this._renderData.left),this._domNode.setPaddingLeft(this._renderData.paddingLeft),this._domNode.setWidth(this._renderData.width),this._domNode.setLineHeight(this._renderData.height),this._domNode.setHeight(this._renderData.height),{domNode:this._domNode.domNode,position:this._position,contentLeft:this._renderData.left,height:this._renderData.height,width:2}):(this._domNode.setDisplay("none"),null)}}class Ri extends z{static{this.BLINK_INTERVAL=500}constructor(e){super(e);const t=this._context.configuration.options;this._readOnly=t.get(92),this._cursorBlinking=t.get(26),this._cursorStyle=t.get(28),this._cursorSmoothCaretAnimation=t.get(27),this._selectionIsEmpty=!0,this._isComposingInput=!1,this._isVisible=!1,this._primaryCursor=new wi(this._context,ui.Single),this._secondaryCursors=[],this._renderData=[],this._domNode=(0,H.Z)(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._updateDomClassName(),this._domNode.appendChild(this._primaryCursor.getDomNode()),this._startCursorBlinkAnimation=new Nt.pc,this._cursorFlatBlinkInterval=new c.Be,this._blinkingEnabled=!1,this._editorHasFocus=!1,this._updateBlinking()}dispose(){super.dispose(),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()}getDomNode(){return this._domNode}onCompositionStart(e){return this._isComposingInput=!0,this._updateBlinking(),!0}onCompositionEnd(e){return this._isComposingInput=!1,this._updateBlinking(),!0}onConfigurationChanged(e){const t=this._context.configuration.options;this._readOnly=t.get(92),this._cursorBlinking=t.get(26),this._cursorStyle=t.get(28),this._cursorSmoothCaretAnimation=t.get(27),this._updateBlinking(),this._updateDomClassName(),this._primaryCursor.onConfigurationChanged(e);for(let i=0,s=this._secondaryCursors.length;i<s;i++)this._secondaryCursors[i].onConfigurationChanged(e);return!0}_onCursorPositionChanged(e,t,i){const s=this._secondaryCursors.length!==t.length||"explicit"===this._cursorSmoothCaretAnimation&&3!==i;if(this._primaryCursor.setPlurality(t.length?ui.MultiPrimary:ui.Single),this._primaryCursor.onCursorPositionChanged(e,s),this._updateBlinking(),this._secondaryCursors.length<t.length){const e=t.length-this._secondaryCursors.length;for(let t=0;t<e;t++){const e=new wi(this._context,ui.MultiSecondary);this._domNode.domNode.insertBefore(e.getDomNode().domNode,this._primaryCursor.getDomNode().domNode.nextSibling),this._secondaryCursors.push(e)}}else if(this._secondaryCursors.length>t.length){const e=this._secondaryCursors.length-t.length;for(let t=0;t<e;t++)this._domNode.removeChild(this._secondaryCursors[0].getDomNode()),this._secondaryCursors.splice(0,1)}for(let n=0;n<t.length;n++)this._secondaryCursors[n].onCursorPositionChanged(t[n],s)}onCursorStateChanged(e){const t=[];for(let s=0,n=e.selections.length;s<n;s++)t[s]=e.selections[s].getPosition();this._onCursorPositionChanged(t[0],t.slice(1),e.reason);const i=e.selections[0].isEmpty();return this._selectionIsEmpty!==i&&(this._selectionIsEmpty=i,this._updateDomClassName()),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onFocusChanged(e){return this._editorHasFocus=e.isFocused,this._updateBlinking(),!1}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return!0}onTokensChanged(e){const t=t=>{for(let i=0,s=e.ranges.length;i<s;i++)if(e.ranges[i].fromLineNumber<=t.lineNumber&&t.lineNumber<=e.ranges[i].toLineNumber)return!0;return!1};if(t(this._primaryCursor.getPosition()))return!0;for(const i of this._secondaryCursors)if(t(i.getPosition()))return!0;return!1}onZonesChanged(e){return!0}_getCursorBlinking(){return this._isComposingInput?0:this._editorHasFocus?this._readOnly?5:this._cursorBlinking:0}_updateBlinking(){this._startCursorBlinkAnimation.cancel(),this._cursorFlatBlinkInterval.cancel();const e=this._getCursorBlinking(),t=0===e,i=5===e;t?this._hide():this._show(),this._blinkingEnabled=!1,this._updateDomClassName(),t||i||(1===e?this._cursorFlatBlinkInterval.cancelAndSet((()=>{this._isVisible?this._hide():this._show()}),Ri.BLINK_INTERVAL,(0,c.zk)(this._domNode.domNode)):this._startCursorBlinkAnimation.setIfNotSet((()=>{this._blinkingEnabled=!0,this._updateDomClassName()}),Ri.BLINK_INTERVAL))}_updateDomClassName(){this._domNode.setClassName(this._getClassName())}_getClassName(){let e="cursors-layer";switch(this._selectionIsEmpty||(e+=" has-selection"),this._cursorStyle){case R.m9.Line:e+=" cursor-line-style";break;case R.m9.Block:e+=" cursor-block-style";break;case R.m9.Underline:e+=" cursor-underline-style";break;case R.m9.LineThin:e+=" cursor-line-thin-style";break;case R.m9.BlockOutline:e+=" cursor-block-outline-style";break;case R.m9.UnderlineThin:e+=" cursor-underline-thin-style";break;default:e+=" cursor-line-style"}if(this._blinkingEnabled)switch(this._getCursorBlinking()){case 1:e+=" cursor-blink";break;case 2:e+=" cursor-smooth";break;case 3:e+=" cursor-phase";break;case 4:e+=" cursor-expand";break;default:e+=" cursor-solid"}else e+=" cursor-solid";return"on"!==this._cursorSmoothCaretAnimation&&"explicit"!==this._cursorSmoothCaretAnimation||(e+=" cursor-smooth-caret-animation"),e}_show(){this._primaryCursor.show();for(let e=0,t=this._secondaryCursors.length;e<t;e++)this._secondaryCursors[e].show();this._isVisible=!0}_hide(){this._primaryCursor.hide();for(let e=0,t=this._secondaryCursors.length;e<t;e++)this._secondaryCursors[e].hide();this._isVisible=!1}prepareRender(e){this._primaryCursor.prepareRender(e);for(let t=0,i=this._secondaryCursors.length;t<i;t++)this._secondaryCursors[t].prepareRender(e)}render(e){const t=[];let i=0;const s=this._primaryCursor.render(e);s&&(t[i++]=s);for(let n=0,r=this._secondaryCursors.length;n<r;n++){const s=this._secondaryCursors[n].render(e);s&&(t[i++]=s)}this._renderData=t}getLastRenderData(){return this._renderData}}(0,ke.zy)(((e,t)=>{const i=[{class:".cursor",foreground:Ae.D0,background:Ae.kM},{class:".cursor-primary",foreground:Ae.sC,background:Ae.je},{class:".cursor-secondary",foreground:Ae.we,background:Ae.L0}];for(const s of i){const i=e.getColor(s.foreground);if(i){let n=e.getColor(s.background);n||(n=i.opposite()),t.addRule(`.monaco-editor .cursors-layer ${s.class} { background-color: ${i}; border-color: ${i}; color: ${n}; }`),(0,dt.Bb)(e.type)&&t.addRule(`.monaco-editor .cursors-layer.has-selection ${s.class} { border-left: 1px solid ${n}; border-right: 1px solid ${n}; }`)}}}));const Li=()=>{throw new Error("Invalid change accessor")};class Ti extends z{constructor(e){super(e);const t=this._context.configuration.options,i=t.get(146);this._lineHeight=t.get(67),this._contentWidth=i.contentWidth,this._contentLeft=i.contentLeft,this.domNode=(0,H.Z)(document.createElement("div")),this.domNode.setClassName("view-zones"),this.domNode.setPosition("absolute"),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.marginDomNode=(0,H.Z)(document.createElement("div")),this.marginDomNode.setClassName("margin-view-zones"),this.marginDomNode.setPosition("absolute"),this.marginDomNode.setAttribute("role","presentation"),this.marginDomNode.setAttribute("aria-hidden","true"),this._zones={}}dispose(){super.dispose(),this._zones={}}_recomputeWhitespacesProps(){const e=this._context.viewLayout.getWhitespaces(),t=new Map;for(const s of e)t.set(s.id,s);let i=!1;return this._context.viewModel.changeWhitespace((e=>{const s=Object.keys(this._zones);for(let n=0,r=s.length;n<r;n++){const r=s[n],o=this._zones[r],a=this._computeWhitespaceProps(o.delegate);o.isInHiddenArea=a.isInHiddenArea;const c=t.get(r);!c||c.afterLineNumber===a.afterViewLineNumber&&c.height===a.heightInPx||(e.changeOneWhitespace(r,a.afterViewLineNumber,a.heightInPx),this._safeCallOnComputedHeight(o.delegate,a.heightInPx),i=!0)}})),i}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(146);return this._lineHeight=t.get(67),this._contentWidth=i.contentWidth,this._contentLeft=i.contentLeft,e.hasChanged(67)&&this._recomputeWhitespacesProps(),!0}onLineMappingChanged(e){return this._recomputeWhitespacesProps()}onLinesDeleted(e){return!0}onScrollChanged(e){return e.scrollTopChanged||e.scrollWidthChanged}onZonesChanged(e){return!0}onLinesInserted(e){return!0}_getZoneOrdinal(e){return e.ordinal??e.afterColumn??1e4}_computeWhitespaceProps(e){if(0===e.afterLineNumber)return{isInHiddenArea:!1,afterViewLineNumber:0,heightInPx:this._heightInPixels(e),minWidthInPx:this._minWidthInPixels(e)};let t,i;if("undefined"!==typeof e.afterColumn)t=this._context.viewModel.model.validatePosition({lineNumber:e.afterLineNumber,column:e.afterColumn});else{const i=this._context.viewModel.model.validatePosition({lineNumber:e.afterLineNumber,column:1}).lineNumber;t=new Y.y(i,this._context.viewModel.model.getLineMaxColumn(i))}i=t.column===this._context.viewModel.model.getLineMaxColumn(t.lineNumber)?this._context.viewModel.model.validatePosition({lineNumber:t.lineNumber+1,column:1}):this._context.viewModel.model.validatePosition({lineNumber:t.lineNumber,column:t.column+1});const s=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(t,e.afterColumnAffinity,!0),n=e.showInHiddenAreas||this._context.viewModel.coordinatesConverter.modelPositionIsVisible(i);return{isInHiddenArea:!n,afterViewLineNumber:s.lineNumber,heightInPx:n?this._heightInPixels(e):0,minWidthInPx:this._minWidthInPixels(e)}}changeViewZones(e){let t=!1;return this._context.viewModel.changeWhitespace((i=>{const s={addZone:e=>(t=!0,this._addZone(i,e)),removeZone:e=>{e&&(t=this._removeZone(i,e)||t)},layoutZone:e=>{e&&(t=this._layoutZone(i,e)||t)}};!function(e,t){try{return e(t)}catch(i){(0,l.dz)(i)}}(e,s),s.addZone=Li,s.removeZone=Li,s.layoutZone=Li})),t}_addZone(e,t){const i=this._computeWhitespaceProps(t),s={whitespaceId:e.insertWhitespace(i.afterViewLineNumber,this._getZoneOrdinal(t),i.heightInPx,i.minWidthInPx),delegate:t,isInHiddenArea:i.isInHiddenArea,isVisible:!1,domNode:(0,H.Z)(t.domNode),marginDomNode:t.marginDomNode?(0,H.Z)(t.marginDomNode):null};return this._safeCallOnComputedHeight(s.delegate,i.heightInPx),s.domNode.setPosition("absolute"),s.domNode.domNode.style.width="100%",s.domNode.setDisplay("none"),s.domNode.setAttribute("monaco-view-zone",s.whitespaceId),this.domNode.appendChild(s.domNode),s.marginDomNode&&(s.marginDomNode.setPosition("absolute"),s.marginDomNode.domNode.style.width="100%",s.marginDomNode.setDisplay("none"),s.marginDomNode.setAttribute("monaco-view-zone",s.whitespaceId),this.marginDomNode.appendChild(s.marginDomNode)),this._zones[s.whitespaceId]=s,this.setShouldRender(),s.whitespaceId}_removeZone(e,t){if(this._zones.hasOwnProperty(t)){const i=this._zones[t];return delete this._zones[t],e.removeWhitespace(i.whitespaceId),i.domNode.removeAttribute("monaco-visible-view-zone"),i.domNode.removeAttribute("monaco-view-zone"),i.domNode.domNode.remove(),i.marginDomNode&&(i.marginDomNode.removeAttribute("monaco-visible-view-zone"),i.marginDomNode.removeAttribute("monaco-view-zone"),i.marginDomNode.domNode.remove()),this.setShouldRender(),!0}return!1}_layoutZone(e,t){if(this._zones.hasOwnProperty(t)){const i=this._zones[t],s=this._computeWhitespaceProps(i.delegate);return i.isInHiddenArea=s.isInHiddenArea,e.changeOneWhitespace(i.whitespaceId,s.afterViewLineNumber,s.heightInPx),this._safeCallOnComputedHeight(i.delegate,s.heightInPx),this.setShouldRender(),!0}return!1}shouldSuppressMouseDownOnViewZone(e){if(this._zones.hasOwnProperty(e)){const t=this._zones[e];return Boolean(t.delegate.suppressMouseDown)}return!1}_heightInPixels(e){return"number"===typeof e.heightInPx?e.heightInPx:"number"===typeof e.heightInLines?this._lineHeight*e.heightInLines:this._lineHeight}_minWidthInPixels(e){return"number"===typeof e.minWidthInPx?e.minWidthInPx:0}_safeCallOnComputedHeight(e,t){if("function"===typeof e.onComputedHeight)try{e.onComputedHeight(t)}catch(i){(0,l.dz)(i)}}_safeCallOnDomNodeTop(e,t){if("function"===typeof e.onDomNodeTop)try{e.onDomNodeTop(t)}catch(i){(0,l.dz)(i)}}prepareRender(e){}render(e){const t=e.viewportData.whitespaceViewportData,i={};let s=!1;for(const r of t)this._zones[r.id].isInHiddenArea||(i[r.id]=r,s=!0);const n=Object.keys(this._zones);for(let r=0,o=n.length;r<o;r++){const t=n[r],s=this._zones[t];let o=0,a=0,c="none";i.hasOwnProperty(t)?(o=i[t].verticalOffset-e.bigNumbersDelta,a=i[t].height,c="block",s.isVisible||(s.domNode.setAttribute("monaco-visible-view-zone","true"),s.isVisible=!0),this._safeCallOnDomNodeTop(s.delegate,e.getScrolledTopFromAbsoluteTop(i[t].verticalOffset))):(s.isVisible&&(s.domNode.removeAttribute("monaco-visible-view-zone"),s.isVisible=!1),this._safeCallOnDomNodeTop(s.delegate,e.getScrolledTopFromAbsoluteTop(-1e6))),s.domNode.setTop(o),s.domNode.setHeight(a),s.domNode.setDisplay(c),s.marginDomNode&&(s.marginDomNode.setTop(o),s.marginDomNode.setHeight(a),s.marginDomNode.setDisplay(c))}s&&(this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth)),this.marginDomNode.setWidth(this._contentLeft))}}var xi=i(35600);class ki extends xe{constructor(e){super(),this._context=e,this._options=new Ai(this._context.configuration),this._selection=[],this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=new Ai(this._context.configuration);return this._options.equals(t)?e.hasChanged(146):(this._options=t,!0)}onCursorStateChanged(e){return this._selection=e.selections,"selection"===this._options.renderWhitespace}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}prepareRender(e){if("none"===this._options.renderWhitespace)return void(this._renderResult=null);const t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber-t+1,s=new Array(i);for(let r=0;r<i;r++)s[r]=!0;const n=this._context.viewModel.getMinimapLinesRenderingData(e.viewportData.startLineNumber,e.viewportData.endLineNumber,s);this._renderResult=[];for(let r=e.viewportData.startLineNumber;r<=e.viewportData.endLineNumber;r++){const t=r-e.viewportData.startLineNumber,i=n.data[t];let s=null;if("selection"===this._options.renderWhitespace){const e=this._selection;for(const t of e){if(t.endLineNumber<r||t.startLineNumber>r)continue;const e=t.startLineNumber===r?t.startColumn:i.minColumn,n=t.endLineNumber===r?t.endColumn:i.maxColumn;e<n&&(s||(s=[]),s.push(new xi.MT(e-1,n-1)))}}this._renderResult[t]=this._applyRenderWhitespace(e,r,s,i)}}_applyRenderWhitespace(e,t,i,s){if("selection"===this._options.renderWhitespace&&!i)return"";if("trailing"===this._options.renderWhitespace&&s.continuesWithWrappedLine)return"";const n=this._context.theme.getColor(Ae.w4),r=this._options.renderWithSVG,o=s.content,a=-1===this._options.stopRenderingLineAfter?o.length:Math.min(this._options.stopRenderingLineAfter,o.length),c=s.continuesWithWrappedLine,l=s.minColumn-1,h="boundary"===this._options.renderWhitespace,d="trailing"===this._options.renderWhitespace,u=this._options.lineHeight,g=this._options.middotWidth,p=this._options.wsmiddotWidth,m=this._options.spaceWidth,f=Math.abs(p-m)<Math.abs(g-m)?11825:183,_=this._options.canUseHalfwidthRightwardsArrow;let v,C="",E=!1,b=Le.HG(o);-1===b?(E=!0,b=a,v=a):v=Le.lT(o);let S=0,y=i&&i[S],w=0;for(let R=l;R<a;R++){const s=o.charCodeAt(R);if(y&&R>=y.endOffset&&(S++,y=i&&i[S]),9!==s&&32!==s)continue;if(d&&!E&&R<=v)continue;if(h&&R>=b&&R<=v&&32===s){const e=R-1>=0?o.charCodeAt(R-1):0,t=R+1<a?o.charCodeAt(R+1):0;if(32!==e&&32!==t)continue}if(h&&c&&R===a-1){const e=R-1>=0?o.charCodeAt(R-1):0;if(32===s&&32!==e&&9!==e)continue}if(i&&(!y||y.startOffset>R||y.endOffset<=R))continue;const n=e.visibleRangeForPosition(new Y.y(t,R+1));n&&(r?(w=Math.max(w,n.left),C+=9===s?this._renderArrow(u,m,n.left):`<circle cx="${(n.left+m/2).toFixed(2)}" cy="${(u/2).toFixed(2)}" r="${(m/7).toFixed(2)}" />`):C+=9===s?`<div class="mwh" style="left:${n.left}px;height:${u}px;">${_?String.fromCharCode(65515):String.fromCharCode(8594)}</div>`:`<div class="mwh" style="left:${n.left}px;height:${u}px;">${String.fromCharCode(f)}</div>`)}return r?(w=Math.round(w+m),`<svg style="bottom:0;position:absolute;width:${w}px;height:${u}px" viewBox="0 0 ${w} ${u}" xmlns="http://www.w3.org/2000/svg" fill="${n}">`+C+"</svg>"):C}_renderArrow(e,t,i){const s=e/2,n=i,r={x:0,y:t/7/2},o={x:.8*t,y:r.y},a={x:o.x-.2*o.x,y:o.y+.2*o.x},c={x:a.x+.1*o.x,y:a.y+.1*o.x},l={x:c.x+.35*o.x,y:c.y-.35*o.x};return`<path d="M ${[r,o,a,c,l,{x:l.x,y:-l.y},{x:c.x,y:-c.y},{x:a.x,y:-a.y},{x:o.x,y:-o.y},{x:r.x,y:-r.y}].map((e=>`${(n+e.x).toFixed(2)} ${(s+e.y).toFixed(2)}`)).join(" L ")}" />`}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}class Ai{constructor(e){const t=e.options,i=t.get(50),s=t.get(38);"off"===s?(this.renderWhitespace="none",this.renderWithSVG=!1):"svg"===s?(this.renderWhitespace=t.get(100),this.renderWithSVG=!0):(this.renderWhitespace=t.get(100),this.renderWithSVG=!1),this.spaceWidth=i.spaceWidth,this.middotWidth=i.middotWidth,this.wsmiddotWidth=i.wsmiddotWidth,this.canUseHalfwidthRightwardsArrow=i.canUseHalfwidthRightwardsArrow,this.lineHeight=t.get(67),this.stopRenderingLineAfter=t.get(118)}equals(e){return this.renderWhitespace===e.renderWhitespace&&this.renderWithSVG===e.renderWithSVG&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineHeight===e.lineHeight&&this.stopRenderingLineAfter===e.stopRenderingLineAfter}}class Ni{constructor(e,t,i,s){this.selections=e,this.startLineNumber=0|t.startLineNumber,this.endLineNumber=0|t.endLineNumber,this.relativeVerticalOffset=t.relativeVerticalOffset,this.bigNumbersDelta=0|t.bigNumbersDelta,this.lineHeight=0|t.lineHeight,this.whitespaceViewportData=i,this._model=s,this.visibleRange=new q.Q(t.startLineNumber,this._model.getLineMinColumn(t.startLineNumber),t.endLineNumber,this._model.getLineMaxColumn(t.endLineNumber))}getViewLineRenderingData(e){return this._model.getViewportViewLineRenderingData(this.visibleRange,e)}getDecorationsInViewport(){return this._model.getDecorationsInViewport(this.visibleRange)}}class Ii{get type(){return this._theme.type}get value(){return this._theme}constructor(e){this._theme=e}update(e){this._theme=e}getColor(e){return this._theme.getColor(e)}}class Oi{constructor(e,t,i){this.configuration=e,this.theme=new Ii(t),this.viewModel=i,this.viewLayout=i.viewLayout}addEventHandler(e){this.viewModel.addViewEventHandler(e)}removeEventHandler(e){this.viewModel.removeViewEventHandler(e)}}var Di=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Mi=function(e,t){return function(i,s){t(i,s,e)}};let Pi=class extends V{constructor(e,t,i,s,n,r,o){super(),this._instantiationService=o,this._shouldRecomputeGlyphMarginLanes=!1,this._selections=[new pe.L(1,1,1,1)],this._renderAnimationFrame=null;const a=new Ye(t,s,n,e);this._context=new Oi(t,i,s),this._context.addEventHandler(this),this._viewParts=[],this._textAreaHandler=this._instantiationService.createInstance(Ge,this._context,a,this._createTextAreaHandlerHelper()),this._viewParts.push(this._textAreaHandler),this._linesContent=(0,H.Z)(document.createElement("div")),this._linesContent.setClassName("lines-content monaco-editor-background"),this._linesContent.setPosition("absolute"),this.domNode=(0,H.Z)(document.createElement("div")),this.domNode.setClassName(this._getEditorClassName()),this.domNode.setAttribute("role","code"),this._overflowGuardContainer=(0,H.Z)(document.createElement("div")),G.write(this._overflowGuardContainer,3),this._overflowGuardContainer.setClassName("overflow-guard"),this._scrollbar=new ft(this._context,this._linesContent,this.domNode,this._overflowGuardContainer),this._viewParts.push(this._scrollbar),this._viewLines=new Pt(this._context,this._linesContent),this._viewZones=new Ti(this._context),this._viewParts.push(this._viewZones);const c=new di(this._context);this._viewParts.push(c);const l=new fi(this._context);this._viewParts.push(l);const h=new tt(this._context);this._viewParts.push(h),h.addDynamicOverlay(new gt(this._context)),h.addDynamicOverlay(new bi(this._context)),h.addDynamicOverlay(new kt(this._context)),h.addDynamicOverlay(new mt(this._context)),h.addDynamicOverlay(new ki(this._context));const d=new it(this._context);this._viewParts.push(d),d.addDynamicOverlay(new pt(this._context)),d.addDynamicOverlay(new Ut(this._context)),d.addDynamicOverlay(new Ft(this._context)),d.addDynamicOverlay(new Ne(this._context)),this._glyphMarginWidgets=new St(this._context),this._viewParts.push(this._glyphMarginWidgets);const u=new Ie(this._context);u.getDomNode().appendChild(this._viewZones.marginDomNode),u.getDomNode().appendChild(d.getDomNode()),u.getDomNode().appendChild(this._glyphMarginWidgets.domNode),this._viewParts.push(u),this._contentWidgets=new rt(this._context,this.domNode),this._viewParts.push(this._contentWidgets),this._viewCursors=new Ri(this._context),this._viewParts.push(this._viewCursors),this._overlayWidgets=new li(this._context,this.domNode),this._viewParts.push(this._overlayWidgets);const g=new mi(this._context);this._viewParts.push(g);const p=new nt(this._context);this._viewParts.push(p);const m=new oi(this._context);if(this._viewParts.push(m),c){const e=this._scrollbar.getOverviewRulerLayoutInfo();e.parent.insertBefore(c.getDomNode(),e.insertBefore)}this._linesContent.appendChild(h.getDomNode()),this._linesContent.appendChild(g.domNode),this._linesContent.appendChild(this._viewZones.domNode),this._linesContent.appendChild(this._viewLines.getDomNode()),this._linesContent.appendChild(this._contentWidgets.domNode),this._linesContent.appendChild(this._viewCursors.getDomNode()),this._overflowGuardContainer.appendChild(u.getDomNode()),this._overflowGuardContainer.appendChild(this._scrollbar.getDomNode()),this._overflowGuardContainer.appendChild(l.getDomNode()),this._overflowGuardContainer.appendChild(this._textAreaHandler.textArea),this._overflowGuardContainer.appendChild(this._textAreaHandler.textAreaCover),this._overflowGuardContainer.appendChild(this._overlayWidgets.getDomNode()),this._overflowGuardContainer.appendChild(m.getDomNode()),this._overflowGuardContainer.appendChild(p.domNode),this.domNode.appendChild(this._overflowGuardContainer),r?(r.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode.domNode),r.appendChild(this._overlayWidgets.overflowingOverlayWidgetsDomNode.domNode)):(this.domNode.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode),this.domNode.appendChild(this._overlayWidgets.overflowingOverlayWidgetsDomNode)),this._applyLayout(),this._pointerHandler=this._register(new we(this._context,a,this._createPointerHandlerHelper()))}_computeGlyphMarginLanes(){const e=this._context.viewModel.model,t=this._context.viewModel.glyphLanes;let i=[],s=0;i=i.concat(e.getAllMarginDecorations().map((e=>{const t=e.options.glyphMargin?.position??_t.ZS.Center;return s=Math.max(s,e.range.endLineNumber),{range:e.range,lane:t,persist:e.options.glyphMargin?.persistLane}}))),i=i.concat(this._glyphMarginWidgets.getWidgets().map((t=>{const i=e.validateRange(t.preference.range);return s=Math.max(s,i.endLineNumber),{range:i,lane:t.preference.lane}}))),i.sort(((e,t)=>q.Q.compareRangesUsingStarts(e.range,t.range))),t.reset(s);for(const n of i)t.push(n.lane,n.range,n.persist);return t}_createPointerHandlerHelper(){return{viewDomNode:this.domNode.domNode,linesContentDomNode:this._linesContent.domNode,viewLinesDomNode:this._viewLines.getDomNode().domNode,focusTextArea:()=>{this.focus()},dispatchTextAreaEvent:e=>{this._textAreaHandler.textArea.domNode.dispatchEvent(e)},getLastRenderData:()=>{const e=this._viewCursors.getLastRenderData()||[],t=this._textAreaHandler.getLastRenderData();return new ee(e,t)},renderNow:()=>{this.render(!0,!1)},shouldSuppressMouseDownOnViewZone:e=>this._viewZones.shouldSuppressMouseDownOnViewZone(e),shouldSuppressMouseDownOnWidget:e=>this._contentWidgets.shouldSuppressMouseDownOnWidget(e),getPositionFromDOMInfo:(e,t)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getPositionFromDOMInfo(e,t)),visibleRangeForPosition:(e,t)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(new Y.y(e,t))),getLineWidth:e=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getLineWidth(e))}}_createTextAreaHandlerHelper(){return{visibleRangeForPosition:e=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(e))}}_applyLayout(){const e=this._context.configuration.options.get(146);this.domNode.setWidth(e.width),this.domNode.setHeight(e.height),this._overflowGuardContainer.setWidth(e.width),this._overflowGuardContainer.setHeight(e.height),this._linesContent.setWidth(16777216),this._linesContent.setHeight(16777216)}_getEditorClassName(){const e=this._textAreaHandler.isFocused()?" focused":"";return this._context.configuration.options.get(143)+" "+(0,ke.Pz)(this._context.theme.type)+e}handleEvents(e){super.handleEvents(e),this._scheduleRender()}onConfigurationChanged(e){return this.domNode.setClassName(this._getEditorClassName()),this._applyLayout(),!1}onCursorStateChanged(e){return this._selections=e.selections,!1}onDecorationsChanged(e){return e.affectsGlyphMargin&&(this._shouldRecomputeGlyphMarginLanes=!0),!1}onFocusChanged(e){return this.domNode.setClassName(this._getEditorClassName()),!1}onThemeChanged(e){return this._context.theme.update(e.theme),this.domNode.setClassName(this._getEditorClassName()),!1}dispose(){null!==this._renderAnimationFrame&&(this._renderAnimationFrame.dispose(),this._renderAnimationFrame=null),this._contentWidgets.overflowingContentWidgetsDomNode.domNode.remove(),this._context.removeEventHandler(this),this._viewLines.dispose();for(const e of this._viewParts)e.dispose();super.dispose()}_scheduleRender(){if(this._store.isDisposed)throw new l.D7;if(null===this._renderAnimationFrame){const e=this._createCoordinatedRendering();this._renderAnimationFrame=Ui.INSTANCE.scheduleCoordinatedRendering({window:c.zk(this.domNode?.domNode),prepareRenderText:()=>{if(this._store.isDisposed)throw new l.D7;try{return e.prepareRenderText()}finally{this._renderAnimationFrame=null}},renderText:()=>{if(this._store.isDisposed)throw new l.D7;return e.renderText()},prepareRender:(t,i)=>{if(this._store.isDisposed)throw new l.D7;return e.prepareRender(t,i)},render:(t,i)=>{if(this._store.isDisposed)throw new l.D7;return e.render(t,i)}})}}_flushAccumulatedAndRenderNow(){const e=this._createCoordinatedRendering();Fi((()=>e.prepareRenderText()));const t=Fi((()=>e.renderText()));if(t){const[i,s]=t;Fi((()=>e.prepareRender(i,s))),Fi((()=>e.render(i,s)))}}_getViewPartsToRender(){const e=[];let t=0;for(const i of this._viewParts)i.shouldRender()&&(e[t++]=i);return e}_createCoordinatedRendering(){return{prepareRenderText:()=>{if(this._shouldRecomputeGlyphMarginLanes){this._shouldRecomputeGlyphMarginLanes=!1;const e=this._computeGlyphMarginLanes();this._context.configuration.setGlyphMarginDecorationLaneCount(e.requiredLanes)}B.p.onRenderStart()},renderText:()=>{if(!this.domNode.domNode.isConnected)return null;let e=this._getViewPartsToRender();if(!this._viewLines.shouldRender()&&0===e.length)return null;const t=this._context.viewLayout.getLinesViewportData();this._context.viewModel.setViewport(t.startLineNumber,t.endLineNumber,t.centeredLineNumber);const i=new Ni(this._selections,t,this._context.viewLayout.getWhitespaceViewportData(),this._context.viewModel);return this._contentWidgets.shouldRender()&&this._contentWidgets.onBeforeRender(i),this._viewLines.shouldRender()&&(this._viewLines.renderText(i),this._viewLines.onDidRender(),e=this._getViewPartsToRender()),[e,new je.eh(this._context.viewLayout,i,this._viewLines)]},prepareRender:(e,t)=>{for(const i of e)i.prepareRender(t)},render:(e,t)=>{for(const i of e)i.render(t),i.onDidRender()}}}delegateVerticalScrollbarPointerDown(e){this._scrollbar.delegateVerticalScrollbarPointerDown(e)}delegateScrollFromMouseWheelEvent(e){this._scrollbar.delegateScrollFromMouseWheelEvent(e)}restoreState(e){this._context.viewModel.viewLayout.setScrollPosition({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft},1),this._context.viewModel.visibleLinesStabilized()}getOffsetForColumn(e,t){const i=this._context.viewModel.model.validatePosition({lineNumber:e,column:t}),s=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(i);this._flushAccumulatedAndRenderNow();const n=this._viewLines.visibleRangeForPosition(new Y.y(s.lineNumber,s.column));return n?n.left:-1}getTargetAtClientPoint(e,t){const i=this._pointerHandler.getTargetAtClientPoint(e,t);return i?st.convertViewToModelMouseTarget(i,this._context.viewModel.coordinatesConverter):null}createOverviewRuler(e){return new pi(this._context,e)}change(e){this._viewZones.changeViewZones(e),this._scheduleRender()}render(e,t){if(t){this._viewLines.forceShouldRender();for(const e of this._viewParts)e.forceShouldRender()}e?this._flushAccumulatedAndRenderNow():this._scheduleRender()}writeScreenReaderContent(e){this._textAreaHandler.writeScreenReaderContent(e)}focus(){this._textAreaHandler.focusTextArea()}isFocused(){return this._textAreaHandler.isFocused()}setAriaOptions(e){this._textAreaHandler.setAriaOptions(e)}addContentWidget(e){this._contentWidgets.addWidget(e.widget),this.layoutContentWidget(e),this._scheduleRender()}layoutContentWidget(e){this._contentWidgets.setWidgetPosition(e.widget,e.position?.position??null,e.position?.secondaryPosition??null,e.position?.preference??null,e.position?.positionAffinity??null),this._scheduleRender()}removeContentWidget(e){this._contentWidgets.removeWidget(e.widget),this._scheduleRender()}addOverlayWidget(e){this._overlayWidgets.addWidget(e.widget),this.layoutOverlayWidget(e),this._scheduleRender()}layoutOverlayWidget(e){this._overlayWidgets.setWidgetPosition(e.widget,e.position)&&this._scheduleRender()}removeOverlayWidget(e){this._overlayWidgets.removeWidget(e.widget),this._scheduleRender()}addGlyphMarginWidget(e){this._glyphMarginWidgets.addWidget(e.widget),this._shouldRecomputeGlyphMarginLanes=!0,this._scheduleRender()}layoutGlyphMarginWidget(e){const t=e.position;this._glyphMarginWidgets.setWidgetPosition(e.widget,t)&&(this._shouldRecomputeGlyphMarginLanes=!0,this._scheduleRender())}removeGlyphMarginWidget(e){this._glyphMarginWidgets.removeWidget(e.widget),this._shouldRecomputeGlyphMarginLanes=!0,this._scheduleRender()}};function Fi(e){try{return e()}catch(t){return(0,l.dz)(t),null}}Pi=Di([Mi(6,He._Y)],Pi);class Ui{static{this.INSTANCE=new Ui}constructor(){this._coordinatedRenderings=[],this._animationFrameRunners=new Map}scheduleCoordinatedRendering(e){return this._coordinatedRenderings.push(e),this._scheduleRender(e.window),{dispose:()=>{const t=this._coordinatedRenderings.indexOf(e);if(-1!==t&&(this._coordinatedRenderings.splice(t,1),0===this._coordinatedRenderings.length)){for(const[e,t]of this._animationFrameRunners)t.dispose();this._animationFrameRunners.clear()}}}}_scheduleRender(e){if(!this._animationFrameRunners.has(e)){const t=()=>{this._animationFrameRunners.delete(e),this._onRenderScheduled()};this._animationFrameRunners.set(e,c.Oq(e,t,100))}}_onRenderScheduled(){const e=this._coordinatedRenderings.slice(0);this._coordinatedRenderings=[];for(const i of e)Fi((()=>i.prepareRenderText()));const t=[];for(let i=0,s=e.length;i<s;i++){const s=e[i];t[i]=Fi((()=>s.renderText()))}for(let i=0,s=e.length;i<s;i++){const s=e[i],n=t[i];if(!n)continue;const[r,o]=n;Fi((()=>s.prepareRender(r,o)))}for(let i=0,s=e.length;i<s;i++){const s=e[i],n=t[i];if(!n)continue;const[r,o]=n;Fi((()=>s.render(r,o)))}}}var Hi=i(66782);class Bi{constructor(e,t,i,s,n){this.injectionOffsets=e,this.injectionOptions=t,this.breakOffsets=i,this.breakOffsetsVisibleColumn=s,this.wrappedTextIndentLength=n}getOutputLineCount(){return this.breakOffsets.length}getMinOutputOffset(e){return e>0?this.wrappedTextIndentLength:0}getLineLength(e){const t=e>0?this.breakOffsets[e-1]:0;let i=this.breakOffsets[e]-t;return e>0&&(i+=this.wrappedTextIndentLength),i}getMaxOutputOffset(e){return this.getLineLength(e)}translateToInputOffset(e,t){e>0&&(t=Math.max(0,t-this.wrappedTextIndentLength));let i=0===e?t:this.breakOffsets[e-1]+t;if(null!==this.injectionOffsets)for(let s=0;s<this.injectionOffsets.length&&i>this.injectionOffsets[s];s++)i<this.injectionOffsets[s]+this.injectionOptions[s].content.length?i=this.injectionOffsets[s]:i-=this.injectionOptions[s].content.length;return i}translateToOutputPosition(e,t=2){let i=e;if(null!==this.injectionOffsets)for(let s=0;s<this.injectionOffsets.length&&!(e<this.injectionOffsets[s])&&(1===t||e!==this.injectionOffsets[s]);s++)i+=this.injectionOptions[s].content.length;return this.offsetInInputWithInjectionsToOutputPosition(i,t)}offsetInInputWithInjectionsToOutputPosition(e,t=2){let i=0,s=this.breakOffsets.length-1,n=0,r=0;for(;i<=s;){n=i+(s-i)/2|0;const o=this.breakOffsets[n];if(r=n>0?this.breakOffsets[n-1]:0,0===t)if(e<=r)s=n-1;else{if(!(e>o))break;i=n+1}else if(e<r)s=n-1;else{if(!(e>=o))break;i=n+1}}let o=e-r;return n>0&&(o+=this.wrappedTextIndentLength),new zi(n,o)}normalizeOutputPosition(e,t,i){if(null!==this.injectionOffsets){const s=this.outputPositionToOffsetInInputWithInjections(e,t),n=this.normalizeOffsetInInputWithInjectionsAroundInjections(s,i);if(n!==s)return this.offsetInInputWithInjectionsToOutputPosition(n,i)}if(0===i){if(e>0&&t===this.getMinOutputOffset(e))return new zi(e-1,this.getMaxOutputOffset(e-1))}else if(1===i){if(e<this.getOutputLineCount()-1&&t===this.getMaxOutputOffset(e))return new zi(e+1,this.getMinOutputOffset(e+1))}return new zi(e,t)}outputPositionToOffsetInInputWithInjections(e,t){e>0&&(t=Math.max(0,t-this.wrappedTextIndentLength));return(e>0?this.breakOffsets[e-1]:0)+t}normalizeOffsetInInputWithInjectionsAroundInjections(e,t){const i=this.getInjectedTextAtOffset(e);if(!i)return e;if(2===t){if(e===i.offsetInInputWithInjections+i.length&&Wi(this.injectionOptions[i.injectedTextIndex].cursorStops))return i.offsetInInputWithInjections+i.length;{let e=i.offsetInInputWithInjections;if(Vi(this.injectionOptions[i.injectedTextIndex].cursorStops))return e;let t=i.injectedTextIndex-1;for(;t>=0&&this.injectionOffsets[t]===this.injectionOffsets[i.injectedTextIndex]&&!Wi(this.injectionOptions[t].cursorStops)&&(e-=this.injectionOptions[t].content.length,!Vi(this.injectionOptions[t].cursorStops));)t--;return e}}if(1===t||4===t){let e=i.offsetInInputWithInjections+i.length,t=i.injectedTextIndex;for(;t+1<this.injectionOffsets.length&&this.injectionOffsets[t+1]===this.injectionOffsets[t];)e+=this.injectionOptions[t+1].content.length,t++;return e}if(0===t||3===t){let e=i.offsetInInputWithInjections,t=i.injectedTextIndex;for(;t-1>=0&&this.injectionOffsets[t-1]===this.injectionOffsets[t];)e-=this.injectionOptions[t-1].content.length,t--;return e}(0,Hi.xb)(t)}getInjectedText(e,t){const i=this.outputPositionToOffsetInInputWithInjections(e,t),s=this.getInjectedTextAtOffset(i);return s?{options:this.injectionOptions[s.injectedTextIndex]}:null}getInjectedTextAtOffset(e){const t=this.injectionOffsets,i=this.injectionOptions;if(null!==t){let s=0;for(let n=0;n<t.length;n++){const r=i[n].content.length,o=t[n]+s,a=t[n]+s+r;if(o>e)break;if(e<=a)return{injectedTextIndex:n,offsetInInputWithInjections:o,length:r};s+=r}}}}function Wi(e){return null===e||void 0===e||(e===_t.VW.Right||e===_t.VW.Both)}function Vi(e){return null===e||void 0===e||(e===_t.VW.Left||e===_t.VW.Both)}class zi{constructor(e,t){this.outputLineIndex=e,this.outputOffset=t}toString(){return`${this.outputLineIndex}:${this.outputOffset}`}toPosition(e){return new Y.y(e+this.outputLineIndex,this.outputOffset+1)}}var Gi=i(64727);const ji=(0,qe.H)("domLineBreaksComputer",{createHTML:e=>e});class Ki{static create(e){return new Ki(new WeakRef(e))}constructor(e){this.targetWindow=e}createLineBreaksComputer(e,t,i,s,n){const r=[],o=[];return{addRequest:(e,t,i)=>{r.push(e),o.push(t)},finalize:()=>function(e,t,i,s,n,r,o,a){function c(e){const i=a[e];if(i){const s=Gi.uK.applyInjectedText(t[e],i),n=i.map((e=>e.options)),r=i.map((e=>e.column-1));return new Bi(r,n,[s.length],[],0)}return null}if(-1===n){const e=[];for(let i=0,s=t.length;i<s;i++)e[i]=c(i);return e}const l=Math.round(n*i.typicalHalfwidthCharacterWidth),h=3===r?2:2===r?1:0,d=Math.round(s*h),u=Math.ceil(i.spaceWidth*d),p=document.createElement("div");(0,g.M)(p,i);const m=new $e.fe(1e4),f=[],_=[],v=[],C=[],E=[];for(let g=0;g<t.length;g++){const e=Gi.uK.applyInjectedText(t[g],a[g]);let n=0,o=0,c=l;if(0!==r)if(n=Le.HG(e),-1===n)n=0;else{for(let i=0;i<n;i++){o+=9===e.charCodeAt(i)?s-o%s:1}const t=Math.ceil(i.spaceWidth*o);t+i.typicalFullwidthCharacterWidth>l?(n=0,o=0):c=l-t}const h=e.substr(n),d=Yi(h,o,s,c,m,u);f[g]=n,_[g]=o,v[g]=h,C[g]=d[0],E[g]=d[1]}const b=m.build(),S=ji?.createHTML(b)??b;p.innerHTML=S,p.style.position="absolute",p.style.top="10000","keepAll"===o?(p.style.wordBreak="keep-all",p.style.overflowWrap="anywhere"):(p.style.wordBreak="inherit",p.style.overflowWrap="break-word");e.document.body.appendChild(p);const y=document.createRange(),w=Array.prototype.slice.call(p.children,0),R=[];for(let g=0;g<t.length;g++){const e=qi(y,w[g],v[g],C[g]);if(null===e){R[g]=c(g);continue}const t=f[g],i=_[g]+d,s=E[g],n=[];for(let a=0,c=e.length;a<c;a++)n[a]=s[e[a]];if(0!==t)for(let a=0,c=e.length;a<c;a++)e[a]+=t;let r,o;const l=a[g];l?(r=l.map((e=>e.options)),o=l.map((e=>e.column-1))):(r=null,o=null),R[g]=new Bi(o,r,e,n,i)}return p.remove(),R}((0,Lt.eU)(this.targetWindow.deref()),r,e,t,i,s,n,o)}}}function Yi(e,t,i,s,n,r){if(0!==r){const e=String(r);n.appendString('<div style="text-indent: -'),n.appendString(e),n.appendString("px; padding-left: "),n.appendString(e),n.appendString("px; box-sizing: border-box; width:")}else n.appendString('<div style="width:');n.appendString(String(s)),n.appendString('px;">');const o=e.length;let a=t,c=0;const l=[],h=[];let d=0<o?e.charCodeAt(0):0;n.appendString("<span>");for(let u=0;u<o;u++){0!==u&&u%16384===0&&n.appendString("</span><span>"),l[u]=c,h[u]=a;const t=d;d=u+1<o?e.charCodeAt(u+1):0;let s=1,r=1;switch(t){case 9:s=i-a%i,r=s;for(let e=1;e<=s;e++)e<s?n.appendCharCode(160):n.appendASCIICharCode(32);break;case 32:32===d?n.appendCharCode(160):n.appendASCIICharCode(32);break;case 60:n.appendString("<");break;case 62:n.appendString(">");break;case 38:n.appendString("&");break;case 0:n.appendString("�");break;case 65279:case 8232:case 8233:case 133:n.appendCharCode(65533);break;default:Le.ne(t)&&r++,t<32?n.appendCharCode(9216+t):n.appendCharCode(t)}c+=s,a+=r}return n.appendString("</span>"),l[e.length]=c,h[e.length]=a,n.appendString("</div>"),[l,h]}function qi(e,t,i,s){if(i.length<=1)return null;const n=Array.prototype.slice.call(t.children,0),r=[];try{$i(e,n,s,0,null,i.length-1,null,r)}catch(o){return console.log(o),null}return 0===r.length?null:(r.push(i.length),r)}function $i(e,t,i,s,n,r,o,a){if(s===r)return;if(n=n||Qi(e,t,i[s],i[s+1]),o=o||Qi(e,t,i[r],i[r+1]),Math.abs(n[0].top-o[0].top)<=.1)return;if(s+1===r)return void a.push(r);const c=s+(r-s)/2|0,l=Qi(e,t,i[c],i[c+1]);$i(e,t,i,s,n,c,l,a),$i(e,t,i,c,l,r,o,a)}function Qi(e,t,i,s){return e.setStart(t[i/16384|0].firstChild,i%16384),e.setEnd(t[s/16384|0].firstChild,s%16384),e.getClientRects()}class Xi extends d.jG{constructor(){super(),this._editor=null,this._instantiationService=null,this._instances=this._register(new d.$w),this._pending=new Map,this._finishedInstantiation=[],this._finishedInstantiation[0]=!1,this._finishedInstantiation[1]=!1,this._finishedInstantiation[2]=!1,this._finishedInstantiation[3]=!1}initialize(e,t,i){this._editor=e,this._instantiationService=i;for(const s of t)this._pending.has(s.id)?(0,l.dz)(new Error(`Cannot have two contributions with the same id ${s.id}`)):this._pending.set(s.id,s);this._instantiateSome(0),this._register((0,c.U3)((0,c.zk)(this._editor.getDomNode()),(()=>{this._instantiateSome(1)}))),this._register((0,c.U3)((0,c.zk)(this._editor.getDomNode()),(()=>{this._instantiateSome(2)}))),this._register((0,c.U3)((0,c.zk)(this._editor.getDomNode()),(()=>{this._instantiateSome(3)}),5e3))}saveViewState(){const e={};for(const[t,i]of this._instances)"function"===typeof i.saveViewState&&(e[t]=i.saveViewState());return e}restoreViewState(e){for(const[t,i]of this._instances)"function"===typeof i.restoreViewState&&i.restoreViewState(e[t])}get(e){return this._instantiateById(e),this._instances.get(e)||null}onBeforeInteractionEvent(){this._instantiateSome(2)}onAfterModelAttached(){return(0,c.U3)((0,c.zk)(this._editor?.getDomNode()),(()=>{this._instantiateSome(1)}),50)}_instantiateSome(e){if(this._finishedInstantiation[e])return;this._finishedInstantiation[e]=!0;const t=this._findPendingContributionsByInstantiation(e);for(const i of t)this._instantiateById(i.id)}_findPendingContributionsByInstantiation(e){const t=[];for(const[,i]of this._pending)i.instantiation===e&&t.push(i);return t}_instantiateById(e){const t=this._pending.get(e);if(t){if(this._pending.delete(e),!this._instantiationService||!this._editor)throw new Error("Cannot instantiate contributions before being initialized!");try{const e=this._instantiationService.createInstance(t.ctor,this._editor);this._instances.set(t.id,e),"function"===typeof e.restoreViewState&&0!==t.instantiation&&console.warn(`Editor contribution '${t.id}' should be eager instantiated because it uses saveViewState / restoreViewState.`)}catch(i){(0,l.dz)(i)}}}}var Zi=i(97681),Ji=i(29611),es=i(23452),ts=i(60002),is=i(17469),ss=i(87289),ns=i(56942),rs=i(60534);class os{static create(e){return new os(e.get(135),e.get(134))}constructor(e,t){this.classifier=new as(e,t)}createLineBreaksComputer(e,t,i,s,n){const r=[],o=[],a=[];return{addRequest:(e,t,i)=>{r.push(e),o.push(t),a.push(i)},finalize:()=>{const c=e.typicalFullwidthCharacterWidth/e.typicalHalfwidthCharacterWidth,l=[];for(let e=0,h=r.length;e<h;e++){const h=o[e],d=a[e];!d||d.injectionOptions||h?l[e]=ds(this.classifier,r[e],h,t,i,c,s,n):l[e]=hs(this.classifier,d,r[e],t,i,c,s,n)}return cs.length=0,ls.length=0,l}}}}class as extends rs.V{constructor(e,t){super(0);for(let i=0;i<e.length;i++)this.set(e.charCodeAt(i),1);for(let i=0;i<t.length;i++)this.set(t.charCodeAt(i),2)}get(e){return e>=0&&e<256?this._asciiMap[e]:e>=12352&&e<=12543||e>=13312&&e<=19903||e>=19968&&e<=40959?3:this._map.get(e)||this._defaultValue}}let cs=[],ls=[];function hs(e,t,i,s,n,r,o,a){if(-1===n)return null;const c=i.length;if(c<=1)return null;const l="keepAll"===a,h=t.breakOffsets,d=t.breakOffsetsVisibleColumn,u=ms(i,s,n,r,o),g=n-u,p=cs,m=ls;let f=0,_=0,v=0,C=n;const E=h.length;let b=0;if(b>=0){let e=Math.abs(d[b]-C);for(;b+1<E;){const t=Math.abs(d[b+1]-C);if(t>=e)break;e=t,b++}}for(;b<E;){let t=b<0?0:h[b],n=b<0?0:d[b];_>t&&(t=_,n=v);let o=0,a=0,u=0,S=0;if(n<=C){let v=n,E=0===t?0:i.charCodeAt(t-1),b=0===t?0:e.get(E),y=!0;for(let n=t;n<c;n++){const t=n,c=i.charCodeAt(n);let h,d;if(Le.pc(c)?(n++,h=0,d=2):(h=e.get(c),d=us(c,v,s,r)),t>_&&ps(E,b,c,h,l)&&(o=t,a=v),v+=d,v>C){t>_?(u=t,S=v-d):(u=n+1,S=v),v-a>g&&(o=0),y=!1;break}E=c,b=h}if(y){f>0&&(p[f]=h[h.length-1],m[f]=d[h.length-1],f++);break}}if(0===o){let c=n,h=i.charCodeAt(t),d=e.get(h),p=!1;for(let s=t-1;s>=_;s--){const t=s+1,n=i.charCodeAt(s);if(9===n){p=!0;break}let m,f;if(Le.LJ(n)?(s--,m=0,f=2):(m=e.get(n),f=Le.ne(n)?r:1),c<=C){if(0===u&&(u=t,S=c),c<=C-g)break;if(ps(n,m,h,d,l)){o=t,a=c;break}}c-=f,h=n,d=m}if(0!==o){const e=g-(S-a);if(e<=s){const t=i.charCodeAt(u);let n;n=Le.pc(t)?2:us(t,S,s,r),e-n<0&&(o=0)}}if(p){b--;continue}}if(0===o&&(o=u,a=S),o<=_){const e=i.charCodeAt(_);Le.pc(e)?(o=_+2,a=v+2):(o=_+1,a=v+us(e,v,s,r))}for(_=o,p[f]=o,v=a,m[f]=a,f++,C=a+g;b<0||b<E&&d[b]<a;)b++;let y=Math.abs(d[b]-C);for(;b+1<E;){const e=Math.abs(d[b+1]-C);if(e>=y)break;y=e,b++}}return 0===f?null:(p.length=f,m.length=f,cs=t.breakOffsets,ls=t.breakOffsetsVisibleColumn,t.breakOffsets=p,t.breakOffsetsVisibleColumn=m,t.wrappedTextIndentLength=u,t)}function ds(e,t,i,s,n,r,o,a){const c=Gi.uK.applyInjectedText(t,i);let l,h;if(i&&i.length>0?(l=i.map((e=>e.options)),h=i.map((e=>e.column-1))):(l=null,h=null),-1===n)return l?new Bi(h,l,[c.length],[],0):null;const d=c.length;if(d<=1)return l?new Bi(h,l,[c.length],[],0):null;const u="keepAll"===a,g=ms(c,s,n,r,o),p=n-g,m=[],f=[];let _=0,v=0,C=0,E=n,b=c.charCodeAt(0),S=e.get(b),y=us(b,0,s,r),w=1;Le.pc(b)&&(y+=1,b=c.charCodeAt(1),S=e.get(b),w++);for(let R=w;R<d;R++){const t=R,i=c.charCodeAt(R);let n,o;Le.pc(i)?(R++,n=0,o=2):(n=e.get(i),o=us(i,y,s,r)),ps(b,S,i,n,u)&&(v=t,C=y),y+=o,y>E&&((0===v||y-C>p)&&(v=t,C=y-o),m[_]=v,f[_]=C,_++,E=C+p,v=0),b=i,S=n}return 0!==_||i&&0!==i.length?(m[_]=d,f[_]=y,new Bi(h,l,m,f,g)):null}function us(e,t,i,s){return 9===e?i-t%i:Le.ne(e)||e<32?s:1}function gs(e,t){return t-e%t}function ps(e,t,i,s,n){return 32!==i&&(2===t&&2!==s||1!==t&&1===s||!n&&3===t&&2!==s||!n&&3===s&&1!==t)}function ms(e,t,i,s,n){let r=0;if(0!==n){const o=Le.HG(e);if(-1!==o){for(let i=0;i<o;i++){r+=9===e.charCodeAt(i)?gs(r,t):1}const a=3===n?2:2===n?1:0;for(let e=0;e<a;e++){r+=gs(r,t)}r+s>i&&(r=0)}}return r}var fs=i(46041),_s=i(32799);class vs{constructor(e){this._selTrackedRange=null,this._trackSelection=!0,this._setState(e,new _s.mG(new q.Q(1,1,1,1),0,0,new Y.y(1,1),0),new _s.mG(new q.Q(1,1,1,1),0,0,new Y.y(1,1),0))}dispose(e){this._removeTrackedRange(e)}startTrackingSelection(e){this._trackSelection=!0,this._updateTrackedRange(e)}stopTrackingSelection(e){this._trackSelection=!1,this._removeTrackedRange(e)}_updateTrackedRange(e){this._trackSelection&&(this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,this.modelState.selection,0))}_removeTrackedRange(e){this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,null,0)}asCursorState(){return new _s.MF(this.modelState,this.viewState)}readSelectionFromMarkers(e){const t=e.model._getTrackedRange(this._selTrackedRange);return this.modelState.selection.isEmpty()&&!t.isEmpty()?pe.L.fromRange(t.collapseToEnd(),this.modelState.selection.getDirection()):pe.L.fromRange(t,this.modelState.selection.getDirection())}ensureValidState(e){this._setState(e,this.modelState,this.viewState)}setState(e,t,i){this._setState(e,t,i)}static _validatePositionWithCache(e,t,i,s){return t.equals(i)?s:e.normalizePosition(t,2)}static _validateViewState(e,t){const i=t.position,s=t.selectionStart.getStartPosition(),n=t.selectionStart.getEndPosition(),r=e.normalizePosition(i,2),o=this._validatePositionWithCache(e,s,i,r),a=this._validatePositionWithCache(e,n,s,o);return i.equals(r)&&s.equals(o)&&n.equals(a)?t:new _s.mG(q.Q.fromPositions(o,a),t.selectionStartKind,t.selectionStartLeftoverVisibleColumns+s.column-o.column,r,t.leftoverVisibleColumns+i.column-r.column)}_setState(e,t,i){if(i&&(i=vs._validateViewState(e.viewModel,i)),t){const i=e.model.validateRange(t.selectionStart),s=t.selectionStart.equalsRange(i)?t.selectionStartLeftoverVisibleColumns:0,n=e.model.validatePosition(t.position),r=t.position.equals(n)?t.leftoverVisibleColumns:0;t=new _s.mG(i,t.selectionStartKind,s,n,r)}else{if(!i)return;const s=e.model.validateRange(e.coordinatesConverter.convertViewRangeToModelRange(i.selectionStart)),n=e.model.validatePosition(e.coordinatesConverter.convertViewPositionToModelPosition(i.position));t=new _s.mG(s,i.selectionStartKind,i.selectionStartLeftoverVisibleColumns,n,i.leftoverVisibleColumns)}if(i){const s=e.coordinatesConverter.validateViewRange(i.selectionStart,t.selectionStart),n=e.coordinatesConverter.validateViewPosition(i.position,t.position);i=new _s.mG(s,t.selectionStartKind,t.selectionStartLeftoverVisibleColumns,n,t.leftoverVisibleColumns)}else{const s=e.coordinatesConverter.convertModelPositionToViewPosition(new Y.y(t.selectionStart.startLineNumber,t.selectionStart.startColumn)),n=e.coordinatesConverter.convertModelPositionToViewPosition(new Y.y(t.selectionStart.endLineNumber,t.selectionStart.endColumn)),r=new q.Q(s.lineNumber,s.column,n.lineNumber,n.column),o=e.coordinatesConverter.convertModelPositionToViewPosition(t.position);i=new _s.mG(r,t.selectionStartKind,t.selectionStartLeftoverVisibleColumns,o,t.leftoverVisibleColumns)}this.modelState=t,this.viewState=i,this._updateTrackedRange(e)}}class Cs{constructor(e){this.context=e,this.cursors=[new vs(e)],this.lastAddedCursorIndex=0}dispose(){for(const e of this.cursors)e.dispose(this.context)}startTrackingSelections(){for(const e of this.cursors)e.startTrackingSelection(this.context)}stopTrackingSelections(){for(const e of this.cursors)e.stopTrackingSelection(this.context)}updateContext(e){this.context=e}ensureValidState(){for(const e of this.cursors)e.ensureValidState(this.context)}readSelectionFromMarkers(){return this.cursors.map((e=>e.readSelectionFromMarkers(this.context)))}getAll(){return this.cursors.map((e=>e.asCursorState()))}getViewPositions(){return this.cursors.map((e=>e.viewState.position))}getTopMostViewPosition(){return(0,fs.kh)(this.cursors,(0,m.VE)((e=>e.viewState.position),Y.y.compare)).viewState.position}getBottomMostViewPosition(){return(0,fs.ot)(this.cursors,(0,m.VE)((e=>e.viewState.position),Y.y.compare)).viewState.position}getSelections(){return this.cursors.map((e=>e.modelState.selection))}getViewSelections(){return this.cursors.map((e=>e.viewState.selection))}setSelections(e){this.setStates(_s.MF.fromModelSelections(e))}getPrimaryCursor(){return this.cursors[0].asCursorState()}setStates(e){null!==e&&(this.cursors[0].setState(this.context,e[0].modelState,e[0].viewState),this._setSecondaryStates(e.slice(1)))}_setSecondaryStates(e){const t=this.cursors.length-1,i=e.length;if(t<i){const e=i-t;for(let t=0;t<e;t++)this._addSecondaryCursor()}else if(t>i){const e=t-i;for(let t=0;t<e;t++)this._removeSecondaryCursor(this.cursors.length-2)}for(let s=0;s<i;s++)this.cursors[s+1].setState(this.context,e[s].modelState,e[s].viewState)}killSecondaryCursors(){this._setSecondaryStates([])}_addSecondaryCursor(){this.cursors.push(new vs(this.context)),this.lastAddedCursorIndex=this.cursors.length-1}getLastAddedCursorIndex(){return 1===this.cursors.length||0===this.lastAddedCursorIndex?0:this.lastAddedCursorIndex}_removeSecondaryCursor(e){this.lastAddedCursorIndex>=e+1&&this.lastAddedCursorIndex--,this.cursors[e+1].dispose(this.context),this.cursors.splice(e+1,1)}normalize(){if(1===this.cursors.length)return;const e=this.cursors.slice(0),t=[];for(let i=0,s=e.length;i<s;i++)t.push({index:i,selection:e[i].modelState.selection});t.sort((0,m.VE)((e=>e.selection),q.Q.compareRangesUsingStarts));for(let i=0;i<t.length-1;i++){const s=t[i],n=t[i+1],r=s.selection,o=n.selection;if(!this.context.cursorConfig.multiCursorMergeOverlapping)continue;let a;if(a=o.isEmpty()||r.isEmpty()?o.getStartPosition().isBeforeOrEqual(r.getEndPosition()):o.getStartPosition().isBefore(r.getEndPosition()),a){const r=s.index<n.index?i:i+1,o=s.index<n.index?i+1:i,a=t[o].index,c=t[r].index,l=t[o].selection,h=t[r].selection;if(!l.equalsSelection(h)){const i=l.plusRange(h),s=l.selectionStartLineNumber===l.startLineNumber&&l.selectionStartColumn===l.startColumn,n=h.selectionStartLineNumber===h.startLineNumber&&h.selectionStartColumn===h.startColumn;let o,d;a===this.lastAddedCursorIndex?(o=s,this.lastAddedCursorIndex=c):o=n,d=o?new pe.L(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn):new pe.L(i.endLineNumber,i.endColumn,i.startLineNumber,i.startColumn),t[r].selection=d;const u=_s.MF.fromModelSelection(d);e[c].setState(this.context,u.modelState,u.viewState)}for(const e of t)e.index>a&&e.index--;e.splice(a,1),t.splice(o,1),this._removeSecondaryCursor(a-1),i--}}}}class Es{constructor(e,t,i,s){this._cursorContextBrand=void 0,this.model=e,this.viewModel=t,this.coordinatesConverter=i,this.cursorConfig=s}}var bs=i(1226),Ss=i(49265),ys=i(26685);class ws{constructor(){this.type=0}}class Rs{constructor(){this.type=1}}class Ls{constructor(e){this.type=2,this._source=e}hasChanged(e){return this._source.hasChanged(e)}}class Ts{constructor(e,t,i){this.selections=e,this.modelSelections=t,this.reason=i,this.type=3}}class xs{constructor(e){this.type=4,e?(this.affectsMinimap=e.affectsMinimap,this.affectsOverviewRuler=e.affectsOverviewRuler,this.affectsGlyphMargin=e.affectsGlyphMargin,this.affectsLineNumber=e.affectsLineNumber):(this.affectsMinimap=!0,this.affectsOverviewRuler=!0,this.affectsGlyphMargin=!0,this.affectsLineNumber=!0)}}class ks{constructor(){this.type=5}}class As{constructor(e){this.type=6,this.isFocused=e}}class Ns{constructor(){this.type=7}}class Is{constructor(){this.type=8}}class Os{constructor(e,t){this.fromLineNumber=e,this.count=t,this.type=9}}class Ds{constructor(e,t){this.type=10,this.fromLineNumber=e,this.toLineNumber=t}}class Ms{constructor(e,t){this.type=11,this.fromLineNumber=e,this.toLineNumber=t}}class Ps{constructor(e,t,i,s,n,r,o){this.source=e,this.minimalReveal=t,this.range=i,this.selections=s,this.verticalType=n,this.revealHorizontal=r,this.scrollType=o,this.type=12}}class Fs{constructor(e){this.type=13,this.scrollWidth=e.scrollWidth,this.scrollLeft=e.scrollLeft,this.scrollHeight=e.scrollHeight,this.scrollTop=e.scrollTop,this.scrollWidthChanged=e.scrollWidthChanged,this.scrollLeftChanged=e.scrollLeftChanged,this.scrollHeightChanged=e.scrollHeightChanged,this.scrollTopChanged=e.scrollTopChanged}}class Us{constructor(e){this.theme=e,this.type=14}}class Hs{constructor(e){this.type=15,this.ranges=e}}class Bs{constructor(){this.type=16}}class Ws{constructor(){this.type=17}}class Vs extends d.jG{constructor(){super(),this._onEvent=this._register(new h.vl),this.onEvent=this._onEvent.event,this._eventHandlers=[],this._viewEventQueue=null,this._isConsumingViewEventQueue=!1,this._collector=null,this._collectorCnt=0,this._outgoingEvents=[]}emitOutgoingEvent(e){this._addOutgoingEvent(e),this._emitOutgoingEvents()}_addOutgoingEvent(e){for(let t=0,i=this._outgoingEvents.length;t<i;t++){const i=this._outgoingEvents[t].kind===e.kind?this._outgoingEvents[t].attemptToMerge(e):null;if(i)return void(this._outgoingEvents[t]=i)}this._outgoingEvents.push(e)}_emitOutgoingEvents(){for(;this._outgoingEvents.length>0;){if(this._collector||this._isConsumingViewEventQueue)return;const e=this._outgoingEvents.shift();e.isNoOp()||this._onEvent.fire(e)}}addViewEventHandler(e){for(let t=0,i=this._eventHandlers.length;t<i;t++)this._eventHandlers[t]===e&&console.warn("Detected duplicate listener in ViewEventDispatcher",e);this._eventHandlers.push(e)}removeViewEventHandler(e){for(let t=0;t<this._eventHandlers.length;t++)if(this._eventHandlers[t]===e){this._eventHandlers.splice(t,1);break}}beginEmitViewEvents(){return this._collectorCnt++,1===this._collectorCnt&&(this._collector=new zs),this._collector}endEmitViewEvents(){if(this._collectorCnt--,0===this._collectorCnt){const e=this._collector.outgoingEvents,t=this._collector.viewEvents;this._collector=null;for(const i of e)this._addOutgoingEvent(i);t.length>0&&this._emitMany(t)}this._emitOutgoingEvents()}emitSingleViewEvent(e){try{this.beginEmitViewEvents().emitViewEvent(e)}finally{this.endEmitViewEvents()}}_emitMany(e){this._viewEventQueue?this._viewEventQueue=this._viewEventQueue.concat(e):this._viewEventQueue=e,this._isConsumingViewEventQueue||this._consumeViewEventQueue()}_consumeViewEventQueue(){try{this._isConsumingViewEventQueue=!0,this._doConsumeQueue()}finally{this._isConsumingViewEventQueue=!1}}_doConsumeQueue(){for(;this._viewEventQueue;){const e=this._viewEventQueue;this._viewEventQueue=null;const t=this._eventHandlers.slice(0);for(const i of t)i.handleEvents(e)}}}class zs{constructor(){this.viewEvents=[],this.outgoingEvents=[]}emitViewEvent(e){this.viewEvents.push(e)}emitOutgoingEvent(e){this.outgoingEvents.push(e)}}class Gs{constructor(e,t,i,s){this.kind=0,this._oldContentWidth=e,this._oldContentHeight=t,this.contentWidth=i,this.contentHeight=s,this.contentWidthChanged=this._oldContentWidth!==this.contentWidth,this.contentHeightChanged=this._oldContentHeight!==this.contentHeight}isNoOp(){return!this.contentWidthChanged&&!this.contentHeightChanged}attemptToMerge(e){return e.kind!==this.kind?null:new Gs(this._oldContentWidth,this._oldContentHeight,e.contentWidth,e.contentHeight)}}class js{constructor(e,t){this.kind=1,this.oldHasFocus=e,this.hasFocus=t}isNoOp(){return this.oldHasFocus===this.hasFocus}attemptToMerge(e){return e.kind!==this.kind?null:new js(this.oldHasFocus,e.hasFocus)}}class Ks{constructor(e,t,i,s,n,r,o,a){this.kind=2,this._oldScrollWidth=e,this._oldScrollLeft=t,this._oldScrollHeight=i,this._oldScrollTop=s,this.scrollWidth=n,this.scrollLeft=r,this.scrollHeight=o,this.scrollTop=a,this.scrollWidthChanged=this._oldScrollWidth!==this.scrollWidth,this.scrollLeftChanged=this._oldScrollLeft!==this.scrollLeft,this.scrollHeightChanged=this._oldScrollHeight!==this.scrollHeight,this.scrollTopChanged=this._oldScrollTop!==this.scrollTop}isNoOp(){return!this.scrollWidthChanged&&!this.scrollLeftChanged&&!this.scrollHeightChanged&&!this.scrollTopChanged}attemptToMerge(e){return e.kind!==this.kind?null:new Ks(this._oldScrollWidth,this._oldScrollLeft,this._oldScrollHeight,this._oldScrollTop,e.scrollWidth,e.scrollLeft,e.scrollHeight,e.scrollTop)}}class Ys{constructor(){this.kind=3}isNoOp(){return!1}attemptToMerge(e){return e.kind!==this.kind?null:this}}class qs{constructor(){this.kind=4}isNoOp(){return!1}attemptToMerge(e){return e.kind!==this.kind?null:this}}class $s{constructor(e,t,i,s,n,r,o){this.kind=6,this.oldSelections=e,this.selections=t,this.oldModelVersionId=i,this.modelVersionId=s,this.source=n,this.reason=r,this.reachedMaxCursorCount=o}static _selectionsAreEqual(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;const i=e.length;if(i!==t.length)return!1;for(let s=0;s<i;s++)if(!e[s].equalsSelection(t[s]))return!1;return!0}isNoOp(){return $s._selectionsAreEqual(this.oldSelections,this.selections)&&this.oldModelVersionId===this.modelVersionId}attemptToMerge(e){return e.kind!==this.kind?null:new $s(this.oldSelections,e.selections,this.oldModelVersionId,e.modelVersionId,e.source,e.reason,this.reachedMaxCursorCount||e.reachedMaxCursorCount)}}class Qs{constructor(){this.kind=5}isNoOp(){return!1}attemptToMerge(e){return e.kind!==this.kind?null:this}}class Xs{constructor(e){this.event=e,this.kind=7}isNoOp(){return!1}attemptToMerge(e){return null}}class Zs{constructor(e){this.event=e,this.kind=8}isNoOp(){return!1}attemptToMerge(e){return null}}class Js{constructor(e){this.event=e,this.kind=9}isNoOp(){return!1}attemptToMerge(e){return null}}class en{constructor(e){this.event=e,this.kind=10}isNoOp(){return!1}attemptToMerge(e){return null}}class tn{constructor(e){this.event=e,this.kind=11}isNoOp(){return!1}attemptToMerge(e){return null}}class sn{constructor(e){this.event=e,this.kind=12}isNoOp(){return!1}attemptToMerge(e){return null}}class nn extends d.jG{constructor(e,t,i,s){super(),this._model=e,this._knownModelVersionId=this._model.getVersionId(),this._viewModel=t,this._coordinatesConverter=i,this.context=new Es(this._model,this._viewModel,this._coordinatesConverter,s),this._cursors=new Cs(this.context),this._hasFocus=!1,this._isHandling=!1,this._compositionState=null,this._columnSelectData=null,this._autoClosedActions=[],this._prevEditOperationType=0}dispose(){this._cursors.dispose(),this._autoClosedActions=(0,d.AS)(this._autoClosedActions),super.dispose()}updateConfiguration(e){this.context=new Es(this._model,this._viewModel,this._coordinatesConverter,e),this._cursors.updateContext(this.context)}onLineMappingChanged(e){this._knownModelVersionId===this._model.getVersionId()&&this.setStates(e,"viewModel",0,this.getCursorStates())}setHasFocus(e){this._hasFocus=e}_validateAutoClosedActions(){if(this._autoClosedActions.length>0){const e=this._cursors.getSelections();for(let t=0;t<this._autoClosedActions.length;t++){const i=this._autoClosedActions[t];i.isValid(e)||(i.dispose(),this._autoClosedActions.splice(t,1),t--)}}}getPrimaryCursorState(){return this._cursors.getPrimaryCursor()}getLastAddedCursorIndex(){return this._cursors.getLastAddedCursorIndex()}getCursorStates(){return this._cursors.getAll()}setStates(e,t,i,s){let n=!1;const r=this.context.cursorConfig.multiCursorLimit;null!==s&&s.length>r&&(s=s.slice(0,r),n=!0);const o=rn.from(this._model,this);return this._cursors.setStates(s),this._cursors.normalize(),this._columnSelectData=null,this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,t,i,o,n)}setCursorColumnSelectData(e){this._columnSelectData=e}revealAll(e,t,i,s,n,r){const o=this._cursors.getViewPositions();let a=null,c=null;o.length>1?c=this._cursors.getViewSelections():a=q.Q.fromPositions(o[0],o[0]),e.emitViewEvent(new Ps(t,i,a,c,s,n,r))}revealPrimary(e,t,i,s,n,r){const o=[this._cursors.getPrimaryCursor().viewState.selection];e.emitViewEvent(new Ps(t,i,null,o,s,n,r))}saveState(){const e=[],t=this._cursors.getSelections();for(let i=0,s=t.length;i<s;i++){const s=t[i];e.push({inSelectionMode:!s.isEmpty(),selectionStart:{lineNumber:s.selectionStartLineNumber,column:s.selectionStartColumn},position:{lineNumber:s.positionLineNumber,column:s.positionColumn}})}return e}restoreState(e,t){const i=[];for(let s=0,n=t.length;s<n;s++){const e=t[s];let n=1,r=1;e.position&&e.position.lineNumber&&(n=e.position.lineNumber),e.position&&e.position.column&&(r=e.position.column);let o=n,a=r;e.selectionStart&&e.selectionStart.lineNumber&&(o=e.selectionStart.lineNumber),e.selectionStart&&e.selectionStart.column&&(a=e.selectionStart.column),i.push({selectionStartLineNumber:o,selectionStartColumn:a,positionLineNumber:n,positionColumn:r})}this.setStates(e,"restoreState",0,_s.MF.fromModelSelections(i)),this.revealAll(e,"restoreState",!1,0,!0,1)}onModelContentChanged(e,t){if(t instanceof Gi.vn){if(this._isHandling)return;this._isHandling=!0;try{this.setStates(e,"modelChange",0,this.getCursorStates())}finally{this._isHandling=!1}}else{const i=t.rawContentChangedEvent;if(this._knownModelVersionId=i.versionId,this._isHandling)return;const s=i.containsEvent(1);if(this._prevEditOperationType=0,s)this._cursors.dispose(),this._cursors=new Cs(this.context),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,"model",1,null,!1);else if(this._hasFocus&&i.resultingSelection&&i.resultingSelection.length>0){const t=_s.MF.fromModelSelections(i.resultingSelection);this.setStates(e,"modelChange",i.isUndoing?5:i.isRedoing?6:2,t)&&this.revealAll(e,"modelChange",!1,0,!0,0)}else{const t=this._cursors.readSelectionFromMarkers();this.setStates(e,"modelChange",2,_s.MF.fromModelSelections(t))}}}getSelection(){return this._cursors.getPrimaryCursor().modelState.selection}getTopMostViewPosition(){return this._cursors.getTopMostViewPosition()}getBottomMostViewPosition(){return this._cursors.getBottomMostViewPosition()}getCursorColumnSelectData(){if(this._columnSelectData)return this._columnSelectData;const e=this._cursors.getPrimaryCursor(),t=e.viewState.selectionStart.getStartPosition(),i=e.viewState.position;return{isReal:!1,fromViewLineNumber:t.lineNumber,fromViewVisualColumn:this.context.cursorConfig.visibleColumnFromColumn(this._viewModel,t),toViewLineNumber:i.lineNumber,toViewVisualColumn:this.context.cursorConfig.visibleColumnFromColumn(this._viewModel,i)}}getSelections(){return this._cursors.getSelections()}setSelections(e,t,i,s){this.setStates(e,t,s,_s.MF.fromModelSelections(i))}getPrevEditOperationType(){return this._prevEditOperationType}setPrevEditOperationType(e){this._prevEditOperationType=e}_pushAutoClosedAction(e,t){const i=[],s=[];for(let o=0,a=e.length;o<a;o++)i.push({range:e[o],options:{description:"auto-closed-character",inlineClassName:"auto-closed-character",stickiness:1}}),s.push({range:t[o],options:{description:"auto-closed-enclosing",stickiness:1}});const n=this._model.deltaDecorations([],i),r=this._model.deltaDecorations([],s);this._autoClosedActions.push(new on(this._model,n,r))}_executeEditOperation(e){if(!e)return;e.shouldPushStackElementBefore&&this._model.pushStackElement();const t=an.executeCommands(this._model,this._cursors.getSelections(),e.commands);if(t){this._interpretCommandResult(t);const i=[],s=[];for(let t=0;t<e.commands.length;t++){const n=e.commands[t];n instanceof ys.Hs&&n.enclosingRange&&n.closeCharacterRange&&(i.push(n.closeCharacterRange),s.push(n.enclosingRange))}i.length>0&&this._pushAutoClosedAction(i,s),this._prevEditOperationType=e.type}e.shouldPushStackElementAfter&&this._model.pushStackElement()}_interpretCommandResult(e){e&&0!==e.length||(e=this._cursors.readSelectionFromMarkers()),this._columnSelectData=null,this._cursors.setSelections(e),this._cursors.normalize()}_emitStateChangedIfNecessary(e,t,i,s,n){const r=rn.from(this._model,this);if(r.equals(s))return!1;const o=this._cursors.getSelections(),a=this._cursors.getViewSelections();if(e.emitViewEvent(new Ts(a,o,i)),!s||s.cursorState.length!==r.cursorState.length||r.cursorState.some(((e,t)=>!e.modelState.equals(s.cursorState[t].modelState)))){const a=s?s.cursorState.map((e=>e.modelState.selection)):null,c=s?s.modelVersionId:0;e.emitOutgoingEvent(new $s(a,o,c,r.modelVersionId,t||"keyboard",i,n))}return!0}_findAutoClosingPairs(e){if(!e.length)return null;const t=[];for(let i=0,s=e.length;i<s;i++){const s=e[i];if(!s.text||s.text.indexOf("\n")>=0)return null;const n=s.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!n)return null;const r=n[1],o=this.context.cursorConfig.autoClosingPairs.autoClosingPairsCloseSingleChar.get(r);if(!o||1!==o.length)return null;const a=o[0].open,c=s.text.length-n[2].length-1,l=s.text.lastIndexOf(a,c-1);if(-1===l)return null;t.push([l,c])}return t}executeEdits(e,t,i,s){let n=null;"snippet"===t&&(n=this._findAutoClosingPairs(i)),n&&(i[0]._isTracked=!0);const r=[],o=[],a=this._model.pushEditOperations(this.getSelections(),i,(e=>{if(n)for(let i=0,s=n.length;i<s;i++){const[t,s]=n[i],a=e[i],c=a.range.startLineNumber,l=a.range.startColumn-1+t,h=a.range.startColumn-1+s;r.push(new q.Q(c,h+1,c,h+2)),o.push(new q.Q(c,l+1,c,h+2))}const t=s(e);return t&&(this._isHandling=!0),t}));a&&(this._isHandling=!1,this.setSelections(e,t,a,0)),r.length>0&&this._pushAutoClosedAction(r,o)}_executeEdit(e,t,i,s=0){if(this.context.cursorConfig.readOnly)return;const n=rn.from(this._model,this);this._cursors.stopTrackingSelections(),this._isHandling=!0;try{this._cursors.ensureValidState(),e()}catch(r){(0,l.dz)(r)}this._isHandling=!1,this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(t,i,s,n,!1)&&this.revealAll(t,i,!1,0,!0,0)}getAutoClosedCharacters(){return on.getAllAutoClosedCharacters(this._autoClosedActions)}startComposition(e){this._compositionState=new ln(this._model,this.getSelections())}endComposition(e,t){const i=this._compositionState?this._compositionState.deduceOutcome(this._model,this.getSelections()):null;this._compositionState=null,this._executeEdit((()=>{"keyboard"===t&&this._executeEditOperation(Ss.T.compositionEndWithInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,i,this.getSelections(),this.getAutoClosedCharacters()))}),e,t)}type(e,t,i){this._executeEdit((()=>{if("keyboard"===i){const e=t.length;let i=0;for(;i<e;){const e=Le.iy(t,i),s=t.substr(i,e);this._executeEditOperation(Ss.T.typeWithInterceptors(!!this._compositionState,this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),this.getAutoClosedCharacters(),s)),i+=e}}else this._executeEditOperation(Ss.T.typeWithoutInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),t))}),e,i)}compositionType(e,t,i,s,n,r){if(0!==t.length||0!==i||0!==s)this._executeEdit((()=>{this._executeEditOperation(Ss.T.compositionType(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),t,i,s,n))}),e,r);else if(0!==n){const t=this.getSelections().map((e=>{const t=e.getPosition();return new pe.L(t.lineNumber,t.column+n,t.lineNumber,t.column+n)}));this.setSelections(e,r,t,0)}}paste(e,t,i,s,n){this._executeEdit((()=>{this._executeEditOperation(Ss.T.paste(this.context.cursorConfig,this._model,this.getSelections(),t,i,s||[]))}),e,n,4)}cut(e,t){this._executeEdit((()=>{this._executeEditOperation(bs.g.cut(this.context.cursorConfig,this._model,this.getSelections()))}),e,t)}executeCommand(e,t,i){this._executeEdit((()=>{this._cursors.killSecondaryCursors(),this._executeEditOperation(new _s.vY(0,[t],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))}),e,i)}executeCommands(e,t,i){this._executeEdit((()=>{this._executeEditOperation(new _s.vY(0,t,{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))}),e,i)}}class rn{static from(e,t){return new rn(e.getVersionId(),t.getCursorStates())}constructor(e,t){this.modelVersionId=e,this.cursorState=t}equals(e){if(!e)return!1;if(this.modelVersionId!==e.modelVersionId)return!1;if(this.cursorState.length!==e.cursorState.length)return!1;for(let t=0,i=this.cursorState.length;t<i;t++)if(!this.cursorState[t].equals(e.cursorState[t]))return!1;return!0}}class on{static getAllAutoClosedCharacters(e){let t=[];for(const i of e)t=t.concat(i.getAutoClosedCharactersRanges());return t}constructor(e,t,i){this._model=e,this._autoClosedCharactersDecorations=t,this._autoClosedEnclosingDecorations=i}dispose(){this._autoClosedCharactersDecorations=this._model.deltaDecorations(this._autoClosedCharactersDecorations,[]),this._autoClosedEnclosingDecorations=this._model.deltaDecorations(this._autoClosedEnclosingDecorations,[])}getAutoClosedCharactersRanges(){const e=[];for(let t=0;t<this._autoClosedCharactersDecorations.length;t++){const i=this._model.getDecorationRange(this._autoClosedCharactersDecorations[t]);i&&e.push(i)}return e}isValid(e){const t=[];for(let i=0;i<this._autoClosedEnclosingDecorations.length;i++){const e=this._model.getDecorationRange(this._autoClosedEnclosingDecorations[i]);if(e&&(t.push(e),e.startLineNumber!==e.endLineNumber))return!1}t.sort(q.Q.compareRangesUsingStarts),e.sort(q.Q.compareRangesUsingStarts);for(let i=0;i<e.length;i++){if(i>=t.length)return!1;if(!t[i].strictContainsRange(e[i]))return!1}return!0}}class an{static executeCommands(e,t,i){const s={model:e,selectionsBefore:t,trackedRanges:[],trackedRangesDirection:[]},n=this._innerExecuteCommands(s,i);for(let r=0,o=s.trackedRanges.length;r<o;r++)s.model._setTrackedRange(s.trackedRanges[r],null,0);return n}static _innerExecuteCommands(e,t){if(this._arrayIsEmpty(t))return null;const i=this._getEditOperations(e,t);if(0===i.operations.length)return null;const s=i.operations,n=this._getLoserCursorMap(s);if(n.hasOwnProperty("0"))return console.warn("Ignoring commands"),null;const r=[];for(let c=0,l=s.length;c<l;c++)n.hasOwnProperty(s[c].identifier.major.toString())||r.push(s[c]);i.hadTrackedEditOperation&&r.length>0&&(r[0]._isTracked=!0);let o=e.model.pushEditOperations(e.selectionsBefore,r,(i=>{const s=[];for(let t=0;t<e.selectionsBefore.length;t++)s[t]=[];for(const e of i)e.identifier&&s[e.identifier.major].push(e);const n=(e,t)=>e.identifier.minor-t.identifier.minor,r=[];for(let o=0;o<e.selectionsBefore.length;o++)s[o].length>0?(s[o].sort(n),r[o]=t[o].computeCursorState(e.model,{getInverseEditOperations:()=>s[o],getTrackedSelection:t=>{const i=parseInt(t,10),s=e.model._getTrackedRange(e.trackedRanges[i]);return 0===e.trackedRangesDirection[i]?new pe.L(s.startLineNumber,s.startColumn,s.endLineNumber,s.endColumn):new pe.L(s.endLineNumber,s.endColumn,s.startLineNumber,s.startColumn)}})):r[o]=e.selectionsBefore[o];return r}));o||(o=e.selectionsBefore);const a=[];for(const c in n)n.hasOwnProperty(c)&&a.push(parseInt(c,10));a.sort(((e,t)=>t-e));for(const c of a)o.splice(c,1);return o}static _arrayIsEmpty(e){for(let t=0,i=e.length;t<i;t++)if(e[t])return!1;return!0}static _getEditOperations(e,t){let i=[],s=!1;for(let n=0,r=t.length;n<r;n++){const r=t[n];if(r){const t=this._getEditOperationsFromCommand(e,n,r);i=i.concat(t.operations),s=s||t.hadTrackedEditOperation}}return{operations:i,hadTrackedEditOperation:s}}static _getEditOperationsFromCommand(e,t,i){const s=[];let n=0;const r=(e,r,o=!1)=>{q.Q.isEmpty(e)&&""===r||s.push({identifier:{major:t,minor:n++},range:e,text:r,forceMoveMarkers:o,isAutoWhitespaceEdit:i.insertsAutoWhitespace})};let o=!1;const a={addEditOperation:r,addTrackedEditOperation:(e,t,i)=>{o=!0,r(e,t,i)},trackSelection:(t,i)=>{const s=pe.L.liftSelection(t);let n;if(s.isEmpty())if("boolean"===typeof i)n=i?2:3;else{const t=e.model.getLineMaxColumn(s.startLineNumber);n=s.startColumn===t?2:3}else n=1;const r=e.trackedRanges.length,o=e.model._setTrackedRange(null,s,n);return e.trackedRanges[r]=o,e.trackedRangesDirection[r]=s.getDirection(),r.toString()}};try{i.getEditOperations(e.model,a)}catch(c){return(0,l.dz)(c),{operations:[],hadTrackedEditOperation:!1}}return{operations:s,hadTrackedEditOperation:o}}static _getLoserCursorMap(e){(e=e.slice(0)).sort(((e,t)=>-q.Q.compareRangesUsingEnds(e.range,t.range)));const t={};for(let i=1;i<e.length;i++){const s=e[i-1],n=e[i];if(q.Q.getStartPosition(s.range).isBefore(q.Q.getEndPosition(n.range))){let r;r=s.identifier.major>n.identifier.major?s.identifier.major:n.identifier.major,t[r.toString()]=!0;for(let t=0;t<e.length;t++)e[t].identifier.major===r&&(e.splice(t,1),t<i&&i--,t--);i>0&&i--}}return t}}class cn{constructor(e,t,i){this.text=e,this.startSelection=t,this.endSelection=i}}class ln{static _capture(e,t){const i=[];for(const s of t){if(s.startLineNumber!==s.endLineNumber)return null;i.push(new cn(e.getLineContent(s.startLineNumber),s.startColumn-1,s.endColumn-1))}return i}constructor(e,t){this._original=ln._capture(e,t)}deduceOutcome(e,t){if(!this._original)return null;const i=ln._capture(e,t);if(!i)return null;if(this._original.length!==i.length)return null;const s=[];for(let n=0,r=this._original.length;n<r;n++)s.push(ln._deduceOutcome(this._original[n],i[n]));return s}static _deduceOutcome(e,t){const i=Math.min(e.startSelection,t.startSelection,Le.Qp(e.text,t.text)),s=Math.min(e.text.length-e.endSelection,t.text.length-t.endSelection,Le.Vi(e.text,t.text)),n=e.text.substring(i,e.text.length-s),r=t.text.substring(i,t.text.length-s);return new Ss.v(n,e.startSelection-i,e.endSelection-i,r,t.startSelection-i,t.endSelection-i)}}var hn=i(83941),dn=i(58314),un=i(49353);class gn{constructor(){this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[]}insert(e){this._hasPending=!0,this._inserts.push(e)}change(e){this._hasPending=!0,this._changes.push(e)}remove(e){this._hasPending=!0,this._removes.push(e)}mustCommit(){return this._hasPending}commit(e){if(!this._hasPending)return;const t=this._inserts,i=this._changes,s=this._removes;this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[],e._commitPendingChanges(t,i,s)}}class pn{constructor(e,t,i,s,n){this.id=e,this.afterLineNumber=t,this.ordinal=i,this.height=s,this.minWidth=n,this.prefixSum=0}}class mn{static{this.INSTANCE_COUNT=0}constructor(e,t,i,s){this._instanceId=Le.tk(++mn.INSTANCE_COUNT),this._pendingChanges=new gn,this._lastWhitespaceId=0,this._arr=[],this._prefixSumValidIndex=-1,this._minWidth=-1,this._lineCount=e,this._lineHeight=t,this._paddingTop=i,this._paddingBottom=s}static findInsertionIndex(e,t,i){let s=0,n=e.length;for(;s<n;){const r=s+n>>>1;t===e[r].afterLineNumber?i<e[r].ordinal?n=r:s=r+1:t<e[r].afterLineNumber?n=r:s=r+1}return s}setLineHeight(e){this._checkPendingChanges(),this._lineHeight=e}setPadding(e,t){this._paddingTop=e,this._paddingBottom=t}onFlushed(e){this._checkPendingChanges(),this._lineCount=e}changeWhitespace(e){let t=!1;try{e({insertWhitespace:(e,i,s,n)=>{t=!0,e|=0,i|=0,s|=0,n|=0;const r=this._instanceId+ ++this._lastWhitespaceId;return this._pendingChanges.insert(new pn(r,e,i,s,n)),r},changeOneWhitespace:(e,i,s)=>{t=!0,i|=0,s|=0,this._pendingChanges.change({id:e,newAfterLineNumber:i,newHeight:s})},removeWhitespace:e=>{t=!0,this._pendingChanges.remove({id:e})}})}finally{this._pendingChanges.commit(this)}return t}_commitPendingChanges(e,t,i){if((e.length>0||i.length>0)&&(this._minWidth=-1),e.length+t.length+i.length<=1){for(const t of e)this._insertWhitespace(t);for(const e of t)this._changeOneWhitespace(e.id,e.newAfterLineNumber,e.newHeight);for(const e of i){const t=this._findWhitespaceIndex(e.id);-1!==t&&this._removeWhitespace(t)}return}const s=new Set;for(const a of i)s.add(a.id);const n=new Map;for(const a of t)n.set(a.id,a);const r=e=>{const t=[];for(const i of e)if(!s.has(i.id)){if(n.has(i.id)){const e=n.get(i.id);i.afterLineNumber=e.newAfterLineNumber,i.height=e.newHeight}t.push(i)}return t},o=r(this._arr).concat(r(e));o.sort(((e,t)=>e.afterLineNumber===t.afterLineNumber?e.ordinal-t.ordinal:e.afterLineNumber-t.afterLineNumber)),this._arr=o,this._prefixSumValidIndex=-1}_checkPendingChanges(){this._pendingChanges.mustCommit()&&this._pendingChanges.commit(this)}_insertWhitespace(e){const t=mn.findInsertionIndex(this._arr,e.afterLineNumber,e.ordinal);this._arr.splice(t,0,e),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,t-1)}_findWhitespaceIndex(e){const t=this._arr;for(let i=0,s=t.length;i<s;i++)if(t[i].id===e)return i;return-1}_changeOneWhitespace(e,t,i){const s=this._findWhitespaceIndex(e);if(-1!==s&&(this._arr[s].height!==i&&(this._arr[s].height=i,this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,s-1)),this._arr[s].afterLineNumber!==t)){const e=this._arr[s];this._removeWhitespace(s),e.afterLineNumber=t,this._insertWhitespace(e)}}_removeWhitespace(e){this._arr.splice(e,1),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,e-1)}onLinesDeleted(e,t){this._checkPendingChanges(),e|=0,t|=0,this._lineCount-=t-e+1;for(let i=0,s=this._arr.length;i<s;i++){const s=this._arr[i].afterLineNumber;e<=s&&s<=t?this._arr[i].afterLineNumber=e-1:s>t&&(this._arr[i].afterLineNumber-=t-e+1)}}onLinesInserted(e,t){this._checkPendingChanges(),e|=0,t|=0,this._lineCount+=t-e+1;for(let i=0,s=this._arr.length;i<s;i++){e<=this._arr[i].afterLineNumber&&(this._arr[i].afterLineNumber+=t-e+1)}}getWhitespacesTotalHeight(){return this._checkPendingChanges(),0===this._arr.length?0:this.getWhitespacesAccumulatedHeight(this._arr.length-1)}getWhitespacesAccumulatedHeight(e){this._checkPendingChanges(),e|=0;let t=Math.max(0,this._prefixSumValidIndex+1);0===t&&(this._arr[0].prefixSum=this._arr[0].height,t++);for(let i=t;i<=e;i++)this._arr[i].prefixSum=this._arr[i-1].prefixSum+this._arr[i].height;return this._prefixSumValidIndex=Math.max(this._prefixSumValidIndex,e),this._arr[e].prefixSum}getLinesTotalHeight(){this._checkPendingChanges();return this._lineHeight*this._lineCount+this.getWhitespacesTotalHeight()+this._paddingTop+this._paddingBottom}getWhitespaceAccumulatedHeightBeforeLineNumber(e){this._checkPendingChanges(),e|=0;const t=this._findLastWhitespaceBeforeLineNumber(e);return-1===t?0:this.getWhitespacesAccumulatedHeight(t)}_findLastWhitespaceBeforeLineNumber(e){e|=0;const t=this._arr;let i=0,s=t.length-1;for(;i<=s;){const n=i+((s-i|0)/2|0)|0;if(t[n].afterLineNumber<e){if(n+1>=t.length||t[n+1].afterLineNumber>=e)return n;i=n+1|0}else s=n-1|0}return-1}_findFirstWhitespaceAfterLineNumber(e){e|=0;const t=this._findLastWhitespaceBeforeLineNumber(e)+1;return t<this._arr.length?t:-1}getFirstWhitespaceIndexAfterLineNumber(e){return this._checkPendingChanges(),e|=0,this._findFirstWhitespaceAfterLineNumber(e)}getVerticalOffsetForLineNumber(e,t=!1){let i;this._checkPendingChanges(),i=(e|=0)>1?this._lineHeight*(e-1):0;return i+this.getWhitespaceAccumulatedHeightBeforeLineNumber(e-(t?1:0))+this._paddingTop}getVerticalOffsetAfterLineNumber(e,t=!1){this._checkPendingChanges(),e|=0;return this._lineHeight*e+this.getWhitespaceAccumulatedHeightBeforeLineNumber(e+(t?1:0))+this._paddingTop}getWhitespaceMinWidth(){if(this._checkPendingChanges(),-1===this._minWidth){let e=0;for(let t=0,i=this._arr.length;t<i;t++)e=Math.max(e,this._arr[t].minWidth);this._minWidth=e}return this._minWidth}isAfterLines(e){this._checkPendingChanges();return e>this.getLinesTotalHeight()}isInTopPadding(e){return 0!==this._paddingTop&&(this._checkPendingChanges(),e<this._paddingTop)}isInBottomPadding(e){if(0===this._paddingBottom)return!1;this._checkPendingChanges();return e>=this.getLinesTotalHeight()-this._paddingBottom}getLineNumberAtOrAfterVerticalOffset(e){if(this._checkPendingChanges(),(e|=0)<0)return 1;const t=0|this._lineCount,i=this._lineHeight;let s=1,n=t;for(;s<n;){const t=(s+n)/2|0,r=0|this.getVerticalOffsetForLineNumber(t);if(e>=r+i)s=t+1;else{if(e>=r)return t;n=t}}return s>t?t:s}getLinesViewportData(e,t){this._checkPendingChanges(),e|=0,t|=0;const i=this._lineHeight,s=0|this.getLineNumberAtOrAfterVerticalOffset(e),n=0|this.getVerticalOffsetForLineNumber(s);let r=0|this._lineCount,o=0|this.getFirstWhitespaceIndexAfterLineNumber(s);const a=0|this.getWhitespacesCount();let c,l;-1===o?(o=a,l=r+1,c=0):(l=0|this.getAfterLineNumberForWhitespaceIndex(o),c=0|this.getHeightForWhitespaceIndex(o));let h=n,d=h;const u=5e5;let g=0;n>=u&&(g=Math.floor(n/u)*u,g=Math.floor(g/i)*i,d-=g);const p=[],m=e+(t-e)/2;let f=-1;for(let E=s;E<=r;E++){if(-1===f){(h<=m&&m<h+i||h>m)&&(f=E)}for(h+=i,p[E-s]=d,d+=i;l===E;)d+=c,h+=c,o++,o>=a?l=r+1:(l=0|this.getAfterLineNumberForWhitespaceIndex(o),c=0|this.getHeightForWhitespaceIndex(o));if(h>=t){r=E;break}}-1===f&&(f=r);const _=0|this.getVerticalOffsetForLineNumber(r);let v=s,C=r;return v<C&&n<e&&v++,v<C&&_+i>t&&C--,{bigNumbersDelta:g,startLineNumber:s,endLineNumber:r,relativeVerticalOffset:p,centeredLineNumber:f,completelyVisibleStartLineNumber:v,completelyVisibleEndLineNumber:C,lineHeight:this._lineHeight}}getVerticalOffsetForWhitespaceIndex(e){this._checkPendingChanges(),e|=0;const t=this.getAfterLineNumberForWhitespaceIndex(e);let i,s;return i=t>=1?this._lineHeight*t:0,s=e>0?this.getWhitespacesAccumulatedHeight(e-1):0,i+s+this._paddingTop}getWhitespaceIndexAtOrAfterVerticallOffset(e){this._checkPendingChanges(),e|=0;let t=0,i=this.getWhitespacesCount()-1;if(i<0)return-1;if(e>=this.getVerticalOffsetForWhitespaceIndex(i)+this.getHeightForWhitespaceIndex(i))return-1;for(;t<i;){const s=Math.floor((t+i)/2),n=this.getVerticalOffsetForWhitespaceIndex(s);if(e>=n+this.getHeightForWhitespaceIndex(s))t=s+1;else{if(e>=n)return s;i=s}}return t}getWhitespaceAtVerticalOffset(e){this._checkPendingChanges(),e|=0;const t=this.getWhitespaceIndexAtOrAfterVerticallOffset(e);if(t<0)return null;if(t>=this.getWhitespacesCount())return null;const i=this.getVerticalOffsetForWhitespaceIndex(t);if(i>e)return null;const s=this.getHeightForWhitespaceIndex(t);return{id:this.getIdForWhitespaceIndex(t),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(t),verticalOffset:i,height:s}}getWhitespaceViewportData(e,t){this._checkPendingChanges(),e|=0,t|=0;const i=this.getWhitespaceIndexAtOrAfterVerticallOffset(e),s=this.getWhitespacesCount()-1;if(i<0)return[];const n=[];for(let r=i;r<=s;r++){const e=this.getVerticalOffsetForWhitespaceIndex(r),i=this.getHeightForWhitespaceIndex(r);if(e>=t)break;n.push({id:this.getIdForWhitespaceIndex(r),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(r),verticalOffset:e,height:i})}return n}getWhitespaces(){return this._checkPendingChanges(),this._arr.slice(0)}getWhitespacesCount(){return this._checkPendingChanges(),this._arr.length}getIdForWhitespaceIndex(e){return this._checkPendingChanges(),e|=0,this._arr[e].id}getAfterLineNumberForWhitespaceIndex(e){return this._checkPendingChanges(),e|=0,this._arr[e].afterLineNumber}getHeightForWhitespaceIndex(e){return this._checkPendingChanges(),e|=0,this._arr[e].height}}class fn{constructor(e,t,i,s){(e|=0)<0&&(e=0),(t|=0)<0&&(t=0),(i|=0)<0&&(i=0),(s|=0)<0&&(s=0),this.width=e,this.contentWidth=t,this.scrollWidth=Math.max(e,t),this.height=i,this.contentHeight=s,this.scrollHeight=Math.max(i,s)}equals(e){return this.width===e.width&&this.contentWidth===e.contentWidth&&this.height===e.height&&this.contentHeight===e.contentHeight}}class _n extends d.jG{constructor(e,t){super(),this._onDidContentSizeChange=this._register(new h.vl),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._dimensions=new fn(0,0,0,0),this._scrollable=this._register(new un.yE({forceIntegerValues:!0,smoothScrollDuration:e,scheduleAtNextAnimationFrame:t})),this.onDidScroll=this._scrollable.onScroll}getScrollable(){return this._scrollable}setSmoothScrollDuration(e){this._scrollable.setSmoothScrollDuration(e)}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}getScrollDimensions(){return this._dimensions}setScrollDimensions(e){if(this._dimensions.equals(e))return;const t=this._dimensions;this._dimensions=e,this._scrollable.setScrollDimensions({width:e.width,scrollWidth:e.scrollWidth,height:e.height,scrollHeight:e.scrollHeight},!0);const i=t.contentWidth!==e.contentWidth,s=t.contentHeight!==e.contentHeight;(i||s)&&this._onDidContentSizeChange.fire(new Gs(t.contentWidth,t.contentHeight,e.contentWidth,e.contentHeight))}getFutureScrollPosition(){return this._scrollable.getFutureScrollPosition()}getCurrentScrollPosition(){return this._scrollable.getCurrentScrollPosition()}setScrollPositionNow(e){this._scrollable.setScrollPositionNow(e)}setScrollPositionSmooth(e){this._scrollable.setScrollPositionSmooth(e)}hasPendingScrollAnimation(){return this._scrollable.hasPendingScrollAnimation()}}class vn extends d.jG{constructor(e,t,i){super(),this._configuration=e;const s=this._configuration.options,n=s.get(146),r=s.get(84);this._linesLayout=new mn(t,s.get(67),r.top,r.bottom),this._maxLineWidth=0,this._overlayWidgetsMinWidth=0,this._scrollable=this._register(new _n(0,i)),this._configureSmoothScrollDuration(),this._scrollable.setScrollDimensions(new fn(n.contentWidth,0,n.height,0)),this.onDidScroll=this._scrollable.onDidScroll,this.onDidContentSizeChange=this._scrollable.onDidContentSizeChange,this._updateHeight()}dispose(){super.dispose()}getScrollable(){return this._scrollable.getScrollable()}onHeightMaybeChanged(){this._updateHeight()}_configureSmoothScrollDuration(){this._scrollable.setSmoothScrollDuration(this._configuration.options.get(115)?125:0)}onConfigurationChanged(e){const t=this._configuration.options;if(e.hasChanged(67)&&this._linesLayout.setLineHeight(t.get(67)),e.hasChanged(84)){const e=t.get(84);this._linesLayout.setPadding(e.top,e.bottom)}if(e.hasChanged(146)){const e=t.get(146),i=e.contentWidth,s=e.height,n=this._scrollable.getScrollDimensions(),r=n.contentWidth;this._scrollable.setScrollDimensions(new fn(i,n.contentWidth,s,this._getContentHeight(i,s,r)))}else this._updateHeight();e.hasChanged(115)&&this._configureSmoothScrollDuration()}onFlushed(e){this._linesLayout.onFlushed(e)}onLinesDeleted(e,t){this._linesLayout.onLinesDeleted(e,t)}onLinesInserted(e,t){this._linesLayout.onLinesInserted(e,t)}_getHorizontalScrollbarHeight(e,t){const i=this._configuration.options.get(104);return 2===i.horizontal||e>=t?0:i.horizontalScrollbarSize}_getContentHeight(e,t,i){const s=this._configuration.options;let n=this._linesLayout.getLinesTotalHeight();return s.get(106)?n+=Math.max(0,t-s.get(67)-s.get(84).bottom):s.get(104).ignoreHorizontalScrollbarInContentHeight||(n+=this._getHorizontalScrollbarHeight(e,i)),n}_updateHeight(){const e=this._scrollable.getScrollDimensions(),t=e.width,i=e.height,s=e.contentWidth;this._scrollable.setScrollDimensions(new fn(t,e.contentWidth,i,this._getContentHeight(t,i,s)))}getCurrentViewport(){const e=this._scrollable.getScrollDimensions(),t=this._scrollable.getCurrentScrollPosition();return new Vt.LM(t.scrollTop,t.scrollLeft,e.width,e.height)}getFutureViewport(){const e=this._scrollable.getScrollDimensions(),t=this._scrollable.getFutureScrollPosition();return new Vt.LM(t.scrollTop,t.scrollLeft,e.width,e.height)}_computeContentWidth(){const e=this._configuration.options,t=this._maxLineWidth,i=e.get(147),s=e.get(50),n=e.get(146);if(i.isViewportWrapping){const i=e.get(73);return t>n.contentWidth+s.typicalHalfwidthCharacterWidth&&i.enabled&&"right"===i.side?t+n.verticalScrollbarWidth:t}{const i=e.get(105)*s.typicalHalfwidthCharacterWidth,r=this._linesLayout.getWhitespaceMinWidth();return Math.max(t+i+n.verticalScrollbarWidth,r,this._overlayWidgetsMinWidth)}}setMaxLineWidth(e){this._maxLineWidth=e,this._updateContentWidth()}setOverlayWidgetsMinWidth(e){this._overlayWidgetsMinWidth=e,this._updateContentWidth()}_updateContentWidth(){const e=this._scrollable.getScrollDimensions();this._scrollable.setScrollDimensions(new fn(e.width,this._computeContentWidth(),e.height,e.contentHeight)),this._updateHeight()}saveState(){const e=this._scrollable.getFutureScrollPosition(),t=e.scrollTop,i=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t);return{scrollTop:t,scrollTopWithoutViewZones:t-this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(i),scrollLeft:e.scrollLeft}}changeWhitespace(e){const t=this._linesLayout.changeWhitespace(e);return t&&this.onHeightMaybeChanged(),t}getVerticalOffsetForLineNumber(e,t=!1){return this._linesLayout.getVerticalOffsetForLineNumber(e,t)}getVerticalOffsetAfterLineNumber(e,t=!1){return this._linesLayout.getVerticalOffsetAfterLineNumber(e,t)}isAfterLines(e){return this._linesLayout.isAfterLines(e)}isInTopPadding(e){return this._linesLayout.isInTopPadding(e)}isInBottomPadding(e){return this._linesLayout.isInBottomPadding(e)}getLineNumberAtVerticalOffset(e){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(e)}getWhitespaceAtVerticalOffset(e){return this._linesLayout.getWhitespaceAtVerticalOffset(e)}getLinesViewportData(){const e=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(e.top,e.top+e.height)}getLinesViewportDataAtScrollTop(e){const t=this._scrollable.getScrollDimensions();return e+t.height>t.scrollHeight&&(e=t.scrollHeight-t.height),e<0&&(e=0),this._linesLayout.getLinesViewportData(e,e+t.height)}getWhitespaceViewportData(){const e=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(e.top,e.top+e.height)}getWhitespaces(){return this._linesLayout.getWhitespaces()}getContentWidth(){return this._scrollable.getScrollDimensions().contentWidth}getScrollWidth(){return this._scrollable.getScrollDimensions().scrollWidth}getContentHeight(){return this._scrollable.getScrollDimensions().contentHeight}getScrollHeight(){return this._scrollable.getScrollDimensions().scrollHeight}getCurrentScrollLeft(){return this._scrollable.getCurrentScrollPosition().scrollLeft}getCurrentScrollTop(){return this._scrollable.getCurrentScrollPosition().scrollTop}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}setScrollPosition(e,t){1===t?this._scrollable.setScrollPositionNow(e):this._scrollable.setScrollPositionSmooth(e)}hasPendingScrollAnimation(){return this._scrollable.hasPendingScrollAnimation()}deltaScrollNow(e,t){const i=this._scrollable.getCurrentScrollPosition();this._scrollable.setScrollPositionNow({scrollLeft:i.scrollLeft+e,scrollTop:i.scrollTop+t})}}var Cn=i(32398),En=i(87469);function bn(e,t){return null===e?t?yn.INSTANCE:wn.INSTANCE:new Sn(e,t)}class Sn{constructor(e,t){this._projectionData=e,this._isVisible=t}isVisible(){return this._isVisible}setVisible(e){return this._isVisible=e,this}getProjectionData(){return this._projectionData}getViewLineCount(){return this._isVisible?this._projectionData.getOutputLineCount():0}getViewLineContent(e,t,i){this._assertVisible();const s=i>0?this._projectionData.breakOffsets[i-1]:0,n=this._projectionData.breakOffsets[i];let r;if(null!==this._projectionData.injectionOffsets){const i=this._projectionData.injectionOffsets.map(((e,t)=>new Gi.uK(0,0,e+1,this._projectionData.injectionOptions[t],0)));r=Gi.uK.applyInjectedText(e.getLineContent(t),i).substring(s,n)}else r=e.getValueInRange({startLineNumber:t,startColumn:s+1,endLineNumber:t,endColumn:n+1});return i>0&&(r=Ln(this._projectionData.wrappedTextIndentLength)+r),r}getViewLineLength(e,t,i){return this._assertVisible(),this._projectionData.getLineLength(i)}getViewLineMinColumn(e,t,i){return this._assertVisible(),this._projectionData.getMinOutputOffset(i)+1}getViewLineMaxColumn(e,t,i){return this._assertVisible(),this._projectionData.getMaxOutputOffset(i)+1}getViewLineData(e,t,i){const s=new Array;return this.getViewLinesData(e,t,i,1,0,[!0],s),s[0]}getViewLinesData(e,t,i,s,n,r,o){this._assertVisible();const a=this._projectionData,c=a.injectionOffsets,l=a.injectionOptions;let h,d=null;if(c){d=[];let e=0,t=0;for(let i=0;i<a.getOutputLineCount();i++){const s=new Array;d[i]=s;const n=i>0?a.breakOffsets[i-1]:0,r=a.breakOffsets[i];for(;t<c.length;){const o=l[t].content.length,h=c[t]+e,d=h+o;if(h>r)break;if(n<d){const e=l[t];if(e.inlineClassName){const t=i>0?a.wrappedTextIndentLength:0,o=t+Math.max(h-n,0),c=t+Math.min(d-n,r-n);o!==c&&s.push(new Vt.or(o,c,e.inlineClassName,e.inlineClassNameAffectsLetterSpacing))}}if(!(d<=r))break;e+=o,t++}}}h=c?e.tokenization.getLineTokens(t).withInserted(c.map(((e,t)=>({offset:e,text:l[t].content,tokenMetadata:En.f.defaultTokenMetadata})))):e.tokenization.getLineTokens(t);for(let u=i;u<i+s;u++){const e=n+u-i;r[e]?o[e]=this._getViewLineData(h,d?d[u]:null,u):o[e]=null}}_getViewLineData(e,t,i){this._assertVisible();const s=this._projectionData,n=i>0?s.wrappedTextIndentLength:0,r=i>0?s.breakOffsets[i-1]:0,o=s.breakOffsets[i],a=e.sliceAndInflate(r,o,n);let c=a.getLineContent();i>0&&(c=Ln(s.wrappedTextIndentLength)+c);const l=this._projectionData.getMinOutputOffset(i)+1,h=c.length+1,d=i+1<this.getViewLineCount(),u=0===i?0:s.breakOffsetsVisibleColumn[i-1];return new Vt.GP(c,d,l,h,u,a,t)}getModelColumnOfViewPosition(e,t){return this._assertVisible(),this._projectionData.translateToInputOffset(e,t-1)+1}getViewPositionOfModelPosition(e,t,i=2){this._assertVisible();return this._projectionData.translateToOutputPosition(t-1,i).toPosition(e)}getViewLineNumberOfModelPosition(e,t){this._assertVisible();return e+this._projectionData.translateToOutputPosition(t-1).outputLineIndex}normalizePosition(e,t,i){const s=t.lineNumber-e;return this._projectionData.normalizeOutputPosition(e,t.column-1,i).toPosition(s)}getInjectedTextAt(e,t){return this._projectionData.getInjectedText(e,t-1)}_assertVisible(){if(!this._isVisible)throw new Error("Not supported")}}class yn{static{this.INSTANCE=new yn}constructor(){}isVisible(){return!0}setVisible(e){return e?this:wn.INSTANCE}getProjectionData(){return null}getViewLineCount(){return 1}getViewLineContent(e,t,i){return e.getLineContent(t)}getViewLineLength(e,t,i){return e.getLineLength(t)}getViewLineMinColumn(e,t,i){return e.getLineMinColumn(t)}getViewLineMaxColumn(e,t,i){return e.getLineMaxColumn(t)}getViewLineData(e,t,i){const s=e.tokenization.getLineTokens(t),n=s.getLineContent();return new Vt.GP(n,!1,1,n.length+1,0,s.inflate(),null)}getViewLinesData(e,t,i,s,n,r,o){r[n]?o[n]=this.getViewLineData(e,t,0):o[n]=null}getModelColumnOfViewPosition(e,t){return t}getViewPositionOfModelPosition(e,t){return new Y.y(e,t)}getViewLineNumberOfModelPosition(e,t){return e}normalizePosition(e,t,i){return t}getInjectedTextAt(e,t){return null}}class wn{static{this.INSTANCE=new wn}constructor(){}isVisible(){return!1}setVisible(e){return e?yn.INSTANCE:this}getProjectionData(){return null}getViewLineCount(){return 0}getViewLineContent(e,t,i){throw new Error("Not supported")}getViewLineLength(e,t,i){throw new Error("Not supported")}getViewLineMinColumn(e,t,i){throw new Error("Not supported")}getViewLineMaxColumn(e,t,i){throw new Error("Not supported")}getViewLineData(e,t,i){throw new Error("Not supported")}getViewLinesData(e,t,i,s,n,r,o){throw new Error("Not supported")}getModelColumnOfViewPosition(e,t){throw new Error("Not supported")}getViewPositionOfModelPosition(e,t){throw new Error("Not supported")}getViewLineNumberOfModelPosition(e,t){throw new Error("Not supported")}normalizePosition(e,t,i){throw new Error("Not supported")}getInjectedTextAt(e,t){throw new Error("Not supported")}}const Rn=[""];function Ln(e){if(e>=Rn.length)for(let t=1;t<=e;t++)Rn[t]=Tn(t);return Rn[e]}function Tn(e){return new Array(e+1).join(" ")}var xn=i(27414);class kn{constructor(e,t,i,s,n,r,o,a,c,l){this._editorId=e,this.model=t,this._validModelVersionId=-1,this._domLineBreaksComputerFactory=i,this._monospaceLineBreaksComputerFactory=s,this.fontInfo=n,this.tabSize=r,this.wrappingStrategy=o,this.wrappingColumn=a,this.wrappingIndent=c,this.wordBreak=l,this._constructLines(!0,null)}dispose(){this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,[])}createCoordinatesConverter(){return new In(this)}_constructLines(e,t){this.modelLineProjections=[],e&&(this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,[]));const i=this.model.getLinesContent(),s=this.model.getInjectedTextDecorations(this._editorId),n=i.length,r=this.createLineBreaksComputer(),o=new m.j3(Gi.uK.fromDecorations(s));for(let p=0;p<n;p++){const e=o.takeWhile((e=>e.lineNumber===p+1));r.addRequest(i[p],e,t?t[p]:null)}const a=r.finalize(),c=[],l=this.hiddenAreasDecorationIds.map((e=>this.model.getDecorationRange(e))).sort(q.Q.compareRangesUsingStarts);let h=1,d=0,u=-1,g=u+1<l.length?d+1:n+2;for(let p=0;p<n;p++){const e=p+1;e===g&&(u++,h=l[u].startLineNumber,d=l[u].endLineNumber,g=u+1<l.length?d+1:n+2);const t=e>=h&&e<=d,i=bn(a[p],!t);c[p]=i.getViewLineCount(),this.modelLineProjections[p]=i}this._validModelVersionId=this.model.getVersionId(),this.projectedModelLineLineCounts=new xn.c2(c)}getHiddenAreas(){return this.hiddenAreasDecorationIds.map((e=>this.model.getDecorationRange(e)))}setHiddenAreas(e){const t=function(e){if(0===e.length)return[];const t=e.slice();t.sort(q.Q.compareRangesUsingStarts);const i=[];let s=t[0].startLineNumber,n=t[0].endLineNumber;for(let r=1,o=t.length;r<o;r++){const e=t[r];e.startLineNumber>n+1?(i.push(new q.Q(s,1,n,1)),s=e.startLineNumber,n=e.endLineNumber):e.endLineNumber>n&&(n=e.endLineNumber)}return i.push(new q.Q(s,1,n,1)),i}(e.map((e=>this.model.validateRange(e)))),i=this.hiddenAreasDecorationIds.map((e=>this.model.getDecorationRange(e))).sort(q.Q.compareRangesUsingStarts);if(t.length===i.length){let e=!1;for(let s=0;s<t.length;s++)if(!t[s].equalsRange(i[s])){e=!0;break}if(!e)return!1}const s=t.map((e=>({range:e,options:ss.kI.EMPTY})));this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,s);const n=t;let r=1,o=0,a=-1,c=a+1<n.length?o+1:this.modelLineProjections.length+2,l=!1;for(let h=0;h<this.modelLineProjections.length;h++){const e=h+1;e===c&&(a++,r=n[a].startLineNumber,o=n[a].endLineNumber,c=a+1<n.length?o+1:this.modelLineProjections.length+2);let t=!1;if(e>=r&&e<=o?this.modelLineProjections[h].isVisible()&&(this.modelLineProjections[h]=this.modelLineProjections[h].setVisible(!1),t=!0):(l=!0,this.modelLineProjections[h].isVisible()||(this.modelLineProjections[h]=this.modelLineProjections[h].setVisible(!0),t=!0)),t){const e=this.modelLineProjections[h].getViewLineCount();this.projectedModelLineLineCounts.setValue(h,e)}}return l||this.setHiddenAreas([]),!0}modelPositionIsVisible(e,t){return!(e<1||e>this.modelLineProjections.length)&&this.modelLineProjections[e-1].isVisible()}getModelLineViewLineCount(e){return e<1||e>this.modelLineProjections.length?1:this.modelLineProjections[e-1].getViewLineCount()}setTabSize(e){return this.tabSize!==e&&(this.tabSize=e,this._constructLines(!1,null),!0)}setWrappingSettings(e,t,i,s,n){const r=this.fontInfo.equals(e),o=this.wrappingStrategy===t,a=this.wrappingColumn===i,c=this.wrappingIndent===s,l=this.wordBreak===n;if(r&&o&&a&&c&&l)return!1;const h=r&&o&&!a&&c&&l;this.fontInfo=e,this.wrappingStrategy=t,this.wrappingColumn=i,this.wrappingIndent=s,this.wordBreak=n;let d=null;if(h){d=[];for(let e=0,t=this.modelLineProjections.length;e<t;e++)d[e]=this.modelLineProjections[e].getProjectionData()}return this._constructLines(!1,d),!0}createLineBreaksComputer(){return("advanced"===this.wrappingStrategy?this._domLineBreaksComputerFactory:this._monospaceLineBreaksComputerFactory).createLineBreaksComputer(this.fontInfo,this.tabSize,this.wrappingColumn,this.wrappingIndent,this.wordBreak)}onModelFlushed(){this._constructLines(!0,null)}onModelLinesDeleted(e,t,i){if(!e||e<=this._validModelVersionId)return null;const s=1===t?1:this.projectedModelLineLineCounts.getPrefixSum(t-1)+1,n=this.projectedModelLineLineCounts.getPrefixSum(i);return this.modelLineProjections.splice(t-1,i-t+1),this.projectedModelLineLineCounts.removeValues(t-1,i-t+1),new Ds(s,n)}onModelLinesInserted(e,t,i,s){if(!e||e<=this._validModelVersionId)return null;const n=t>2&&!this.modelLineProjections[t-2].isVisible(),r=1===t?1:this.projectedModelLineLineCounts.getPrefixSum(t-1)+1;let o=0;const a=[],c=[];for(let l=0,h=s.length;l<h;l++){const e=bn(s[l],!n);a.push(e);const t=e.getViewLineCount();o+=t,c[l]=t}return this.modelLineProjections=this.modelLineProjections.slice(0,t-1).concat(a).concat(this.modelLineProjections.slice(t-1)),this.projectedModelLineLineCounts.insertValues(t-1,c),new Ms(r,r+o-1)}onModelLineChanged(e,t,i){if(null!==e&&e<=this._validModelVersionId)return[!1,null,null,null];const s=t-1,n=this.modelLineProjections[s].getViewLineCount(),r=bn(i,this.modelLineProjections[s].isVisible());this.modelLineProjections[s]=r;const o=this.modelLineProjections[s].getViewLineCount();let a=!1,c=0,l=-1,h=0,d=-1,u=0,g=-1;n>o?(c=this.projectedModelLineLineCounts.getPrefixSum(t-1)+1,l=c+o-1,u=l+1,g=u+(n-o)-1,a=!0):n<o?(c=this.projectedModelLineLineCounts.getPrefixSum(t-1)+1,l=c+n-1,h=l+1,d=h+(o-n)-1,a=!0):(c=this.projectedModelLineLineCounts.getPrefixSum(t-1)+1,l=c+o-1),this.projectedModelLineLineCounts.setValue(s,o);return[a,c<=l?new Os(c,l-c+1):null,h<=d?new Ms(h,d):null,u<=g?new Ds(u,g):null]}acceptVersionId(e){this._validModelVersionId=e,1!==this.modelLineProjections.length||this.modelLineProjections[0].isVisible()||this.setHiddenAreas([])}getViewLineCount(){return this.projectedModelLineLineCounts.getTotalSum()}_toValidViewLineNumber(e){if(e<1)return 1;const t=this.getViewLineCount();return e>t?t:0|e}getActiveIndentGuide(e,t,i){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t),i=this._toValidViewLineNumber(i);const s=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),n=this.convertViewPositionToModelPosition(t,this.getViewLineMinColumn(t)),r=this.convertViewPositionToModelPosition(i,this.getViewLineMinColumn(i)),o=this.model.guides.getActiveIndentGuide(s.lineNumber,n.lineNumber,r.lineNumber),a=this.convertModelPositionToViewPosition(o.startLineNumber,1),c=this.convertModelPositionToViewPosition(o.endLineNumber,this.model.getLineMaxColumn(o.endLineNumber));return{startLineNumber:a.lineNumber,endLineNumber:c.lineNumber,indent:o.indent}}getViewLineInfo(e){e=this._toValidViewLineNumber(e);const t=this.projectedModelLineLineCounts.getIndexOf(e-1),i=t.index,s=t.remainder;return new An(i+1,s)}getMinColumnOfViewLine(e){return this.modelLineProjections[e.modelLineNumber-1].getViewLineMinColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx)}getMaxColumnOfViewLine(e){return this.modelLineProjections[e.modelLineNumber-1].getViewLineMaxColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx)}getModelStartPositionOfViewLine(e){const t=this.modelLineProjections[e.modelLineNumber-1],i=t.getViewLineMinColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx),s=t.getModelColumnOfViewPosition(e.modelLineWrappedLineIdx,i);return new Y.y(e.modelLineNumber,s)}getModelEndPositionOfViewLine(e){const t=this.modelLineProjections[e.modelLineNumber-1],i=t.getViewLineMaxColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx),s=t.getModelColumnOfViewPosition(e.modelLineWrappedLineIdx,i);return new Y.y(e.modelLineNumber,s)}getViewLineInfosGroupedByModelRanges(e,t){const i=this.getViewLineInfo(e),s=this.getViewLineInfo(t),n=new Array;let r=this.getModelStartPositionOfViewLine(i),o=new Array;for(let a=i.modelLineNumber;a<=s.modelLineNumber;a++){const e=this.modelLineProjections[a-1];if(e.isVisible()){const t=a===i.modelLineNumber?i.modelLineWrappedLineIdx:0,n=a===s.modelLineNumber?s.modelLineWrappedLineIdx+1:e.getViewLineCount();for(let e=t;e<n;e++)o.push(new An(a,e))}if(!e.isVisible()&&r){const e=new Y.y(a-1,this.model.getLineMaxColumn(a-1)+1),t=q.Q.fromPositions(r,e);n.push(new Nn(t,o)),o=[],r=null}else e.isVisible()&&!r&&(r=new Y.y(a,1))}if(r){const e=q.Q.fromPositions(r,this.getModelEndPositionOfViewLine(s));n.push(new Nn(e,o))}return n}getViewLinesBracketGuides(e,t,i,s){const n=i?this.convertViewPositionToModelPosition(i.lineNumber,i.column):null,r=[];for(const o of this.getViewLineInfosGroupedByModelRanges(e,t)){const e=o.modelRange.startLineNumber,t=this.model.guides.getLinesBracketGuides(e,o.modelRange.endLineNumber,n,s);for(const i of o.viewLines){const s=t[i.modelLineNumber-e].map((e=>{if(-1!==e.forWrappedLinesAfterColumn){if(this.modelLineProjections[i.modelLineNumber-1].getViewPositionOfModelPosition(0,e.forWrappedLinesAfterColumn).lineNumber>=i.modelLineWrappedLineIdx)return}if(-1!==e.forWrappedLinesBeforeOrAtColumn){if(this.modelLineProjections[i.modelLineNumber-1].getViewPositionOfModelPosition(0,e.forWrappedLinesBeforeOrAtColumn).lineNumber<i.modelLineWrappedLineIdx)return}if(!e.horizontalLine)return e;let t=-1;if(-1!==e.column){const s=this.modelLineProjections[i.modelLineNumber-1].getViewPositionOfModelPosition(0,e.column);if(s.lineNumber===i.modelLineWrappedLineIdx)t=s.column;else if(s.lineNumber<i.modelLineWrappedLineIdx)t=this.getMinColumnOfViewLine(i);else if(s.lineNumber>i.modelLineWrappedLineIdx)return}const s=this.convertModelPositionToViewPosition(i.modelLineNumber,e.horizontalLine.endColumn),n=this.modelLineProjections[i.modelLineNumber-1].getViewPositionOfModelPosition(0,e.horizontalLine.endColumn);return n.lineNumber===i.modelLineWrappedLineIdx?new xt.TH(e.visibleColumn,t,e.className,new xt.pv(e.horizontalLine.top,s.column),-1,-1):n.lineNumber<i.modelLineWrappedLineIdx||-1!==e.visibleColumn?void 0:new xt.TH(e.visibleColumn,t,e.className,new xt.pv(e.horizontalLine.top,this.getMaxColumnOfViewLine(i)),-1,-1)}));r.push(s.filter((e=>!!e)))}}return r}getViewLinesIndentGuides(e,t){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);const i=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),s=this.convertViewPositionToModelPosition(t,this.getViewLineMaxColumn(t));let n=[];const r=[],o=[],a=i.lineNumber-1,c=s.lineNumber-1;let l=null;for(let g=a;g<=c;g++){const e=this.modelLineProjections[g];if(e.isVisible()){const t=e.getViewLineNumberOfModelPosition(0,g===a?i.column:1),s=e.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(g+1)),n=s-t+1;let c=0;n>1&&1===e.getViewLineMinColumn(this.model,g+1,s)&&(c=0===t?1:2),r.push(n),o.push(c),null===l&&(l=new Y.y(g+1,0))}else null!==l&&(n=n.concat(this.model.guides.getLinesIndentGuides(l.lineNumber,g)),l=null)}null!==l&&(n=n.concat(this.model.guides.getLinesIndentGuides(l.lineNumber,s.lineNumber)),l=null);const h=t-e+1,d=new Array(h);let u=0;for(let g=0,p=n.length;g<p;g++){let e=n[g];const t=Math.min(h-u,r[g]),i=o[g];let s;s=2===i?0:1===i?1:t;for(let n=0;n<t;n++)n===s&&(e=0),d[u++]=e}return d}getViewLineContent(e){const t=this.getViewLineInfo(e);return this.modelLineProjections[t.modelLineNumber-1].getViewLineContent(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}getViewLineLength(e){const t=this.getViewLineInfo(e);return this.modelLineProjections[t.modelLineNumber-1].getViewLineLength(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}getViewLineMinColumn(e){const t=this.getViewLineInfo(e);return this.modelLineProjections[t.modelLineNumber-1].getViewLineMinColumn(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}getViewLineMaxColumn(e){const t=this.getViewLineInfo(e);return this.modelLineProjections[t.modelLineNumber-1].getViewLineMaxColumn(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}getViewLineData(e){const t=this.getViewLineInfo(e);return this.modelLineProjections[t.modelLineNumber-1].getViewLineData(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}getViewLinesData(e,t,i){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);const s=this.projectedModelLineLineCounts.getIndexOf(e-1);let n=e;const r=s.index,o=s.remainder,a=[];for(let c=r,l=this.model.getLineCount();c<l;c++){const s=this.modelLineProjections[c];if(!s.isVisible())continue;const l=c===r?o:0;let h=s.getViewLineCount()-l,d=!1;if(n+h>t&&(d=!0,h=t-n+1),s.getViewLinesData(this.model,c+1,l,h,n-e,i,a),n+=h,d)break}return a}validateViewPosition(e,t,i){e=this._toValidViewLineNumber(e);const s=this.projectedModelLineLineCounts.getIndexOf(e-1),n=s.index,r=s.remainder,o=this.modelLineProjections[n],a=o.getViewLineMinColumn(this.model,n+1,r),c=o.getViewLineMaxColumn(this.model,n+1,r);t<a&&(t=a),t>c&&(t=c);const l=o.getModelColumnOfViewPosition(r,t);return this.model.validatePosition(new Y.y(n+1,l)).equals(i)?new Y.y(e,t):this.convertModelPositionToViewPosition(i.lineNumber,i.column)}validateViewRange(e,t){const i=this.validateViewPosition(e.startLineNumber,e.startColumn,t.getStartPosition()),s=this.validateViewPosition(e.endLineNumber,e.endColumn,t.getEndPosition());return new q.Q(i.lineNumber,i.column,s.lineNumber,s.column)}convertViewPositionToModelPosition(e,t){const i=this.getViewLineInfo(e),s=this.modelLineProjections[i.modelLineNumber-1].getModelColumnOfViewPosition(i.modelLineWrappedLineIdx,t);return this.model.validatePosition(new Y.y(i.modelLineNumber,s))}convertViewRangeToModelRange(e){const t=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),i=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);return new q.Q(t.lineNumber,t.column,i.lineNumber,i.column)}convertModelPositionToViewPosition(e,t,i=2,s=!1,n=!1){const r=this.model.validatePosition(new Y.y(e,t)),o=r.lineNumber,a=r.column;let c=o-1,l=!1;if(n)for(;c<this.modelLineProjections.length&&!this.modelLineProjections[c].isVisible();)c++,l=!0;else for(;c>0&&!this.modelLineProjections[c].isVisible();)c--,l=!0;if(0===c&&!this.modelLineProjections[c].isVisible())return new Y.y(s?0:1,1);const h=1+this.projectedModelLineLineCounts.getPrefixSum(c);let d;return d=l?n?this.modelLineProjections[c].getViewPositionOfModelPosition(h,1,i):this.modelLineProjections[c].getViewPositionOfModelPosition(h,this.model.getLineMaxColumn(c+1),i):this.modelLineProjections[o-1].getViewPositionOfModelPosition(h,a,i),d}convertModelRangeToViewRange(e,t=0){if(e.isEmpty()){const i=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn,t);return q.Q.fromPositions(i)}{const t=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn,1),i=this.convertModelPositionToViewPosition(e.endLineNumber,e.endColumn,0);return new q.Q(t.lineNumber,t.column,i.lineNumber,i.column)}}getViewLineNumberOfModelPosition(e,t){let i=e-1;if(this.modelLineProjections[i].isVisible()){const e=1+this.projectedModelLineLineCounts.getPrefixSum(i);return this.modelLineProjections[i].getViewLineNumberOfModelPosition(e,t)}for(;i>0&&!this.modelLineProjections[i].isVisible();)i--;if(0===i&&!this.modelLineProjections[i].isVisible())return 1;const s=1+this.projectedModelLineLineCounts.getPrefixSum(i);return this.modelLineProjections[i].getViewLineNumberOfModelPosition(s,this.model.getLineMaxColumn(i+1))}getDecorationsInRange(e,t,i,s,n){const r=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),o=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);if(o.lineNumber-r.lineNumber<=e.endLineNumber-e.startLineNumber)return this.model.getDecorationsInRange(new q.Q(r.lineNumber,1,o.lineNumber,o.column),t,i,s,n);let a=[];const c=r.lineNumber-1,l=o.lineNumber-1;let h=null;for(let p=c;p<=l;p++){if(this.modelLineProjections[p].isVisible())null===h&&(h=new Y.y(p+1,p===c?r.column:1));else if(null!==h){const e=this.model.getLineMaxColumn(p);a=a.concat(this.model.getDecorationsInRange(new q.Q(h.lineNumber,h.column,p,e),t,i,s)),h=null}}null!==h&&(a=a.concat(this.model.getDecorationsInRange(new q.Q(h.lineNumber,h.column,o.lineNumber,o.column),t,i,s)),h=null),a.sort(((e,t)=>{const i=q.Q.compareRangesUsingStarts(e.range,t.range);return 0===i?e.id<t.id?-1:e.id>t.id?1:0:i}));const d=[];let u=0,g=null;for(const p of a){const e=p.id;g!==e&&(g=e,d[u++]=p)}return d}getInjectedTextAt(e){const t=this.getViewLineInfo(e.lineNumber);return this.modelLineProjections[t.modelLineNumber-1].getInjectedTextAt(t.modelLineWrappedLineIdx,e.column)}normalizePosition(e,t){const i=this.getViewLineInfo(e.lineNumber);return this.modelLineProjections[i.modelLineNumber-1].normalizePosition(i.modelLineWrappedLineIdx,e,t)}getLineIndentColumn(e){const t=this.getViewLineInfo(e);return 0===t.modelLineWrappedLineIdx?this.model.getLineIndentColumn(t.modelLineNumber):0}}class An{constructor(e,t){this.modelLineNumber=e,this.modelLineWrappedLineIdx=t}}class Nn{constructor(e,t){this.modelRange=e,this.viewLines=t}}class In{constructor(e){this._lines=e}convertViewPositionToModelPosition(e){return this._lines.convertViewPositionToModelPosition(e.lineNumber,e.column)}convertViewRangeToModelRange(e){return this._lines.convertViewRangeToModelRange(e)}validateViewPosition(e,t){return this._lines.validateViewPosition(e.lineNumber,e.column,t)}validateViewRange(e,t){return this._lines.validateViewRange(e,t)}convertModelPositionToViewPosition(e,t,i,s){return this._lines.convertModelPositionToViewPosition(e.lineNumber,e.column,t,i,s)}convertModelRangeToViewRange(e,t){return this._lines.convertModelRangeToViewRange(e,t)}modelPositionIsVisible(e){return this._lines.modelPositionIsVisible(e.lineNumber,e.column)}getModelLineViewLineCount(e){return this._lines.getModelLineViewLineCount(e)}getViewLineNumberOfModelPosition(e,t){return this._lines.getViewLineNumberOfModelPosition(e,t)}}class On{constructor(e){this.model=e}dispose(){}createCoordinatesConverter(){return new Dn(this)}getHiddenAreas(){return[]}setHiddenAreas(e){return!1}setTabSize(e){return!1}setWrappingSettings(e,t,i,s){return!1}createLineBreaksComputer(){const e=[];return{addRequest:(t,i,s)=>{e.push(null)},finalize:()=>e}}onModelFlushed(){}onModelLinesDeleted(e,t,i){return new Ds(t,i)}onModelLinesInserted(e,t,i,s){return new Ms(t,i)}onModelLineChanged(e,t,i){return[!1,new Os(t,1),null,null]}acceptVersionId(e){}getViewLineCount(){return this.model.getLineCount()}getActiveIndentGuide(e,t,i){return{startLineNumber:e,endLineNumber:e,indent:0}}getViewLinesBracketGuides(e,t,i){return new Array(t-e+1).fill([])}getViewLinesIndentGuides(e,t){const i=t-e+1,s=new Array(i);for(let n=0;n<i;n++)s[n]=0;return s}getViewLineContent(e){return this.model.getLineContent(e)}getViewLineLength(e){return this.model.getLineLength(e)}getViewLineMinColumn(e){return this.model.getLineMinColumn(e)}getViewLineMaxColumn(e){return this.model.getLineMaxColumn(e)}getViewLineData(e){const t=this.model.tokenization.getLineTokens(e),i=t.getLineContent();return new Vt.GP(i,!1,1,i.length+1,0,t.inflate(),null)}getViewLinesData(e,t,i){const s=this.model.getLineCount();e=Math.min(Math.max(1,e),s),t=Math.min(Math.max(1,t),s);const n=[];for(let r=e;r<=t;r++){const t=r-e;n[t]=i[t]?this.getViewLineData(r):null}return n}getDecorationsInRange(e,t,i,s,n){return this.model.getDecorationsInRange(e,t,i,s,n)}normalizePosition(e,t){return this.model.normalizePosition(e,t)}getLineIndentColumn(e){return this.model.getLineIndentColumn(e)}getInjectedTextAt(e){return null}}class Dn{constructor(e){this._lines=e}_validPosition(e){return this._lines.model.validatePosition(e)}_validRange(e){return this._lines.model.validateRange(e)}convertViewPositionToModelPosition(e){return this._validPosition(e)}convertViewRangeToModelRange(e){return this._validRange(e)}validateViewPosition(e,t){return this._validPosition(t)}validateViewRange(e,t){return this._validRange(t)}convertModelPositionToViewPosition(e){return this._validPosition(e)}convertModelRangeToViewRange(e){return this._validRange(e)}modelPositionIsVisible(e){const t=this._lines.model.getLineCount();return!(e.lineNumber<1||e.lineNumber>t)}getModelLineViewLineCount(e){return 1}getViewLineNumberOfModelPosition(e,t){return e}}const Mn=_t.ZS.Right;class Pn{constructor(e){this.persist=0,this._requiredLanes=1,this.lanes=new Uint8Array(Math.ceil((e+1)*Mn/8))}reset(e){const t=Math.ceil((e+1)*Mn/8);this.lanes.length<t?this.lanes=new Uint8Array(t):this.lanes.fill(0),this._requiredLanes=1}get requiredLanes(){return this._requiredLanes}push(e,t,i){i&&(this.persist|=1<<e-1);for(let s=t.startLineNumber;s<=t.endLineNumber;s++){const t=Mn*s+(e-1);this.lanes[t>>>3]|=1<<t%8,this._requiredLanes=Math.max(this._requiredLanes,this.countAtLine(s))}}getLanesAtLine(e){const t=[];let i=Mn*e;for(let s=0;s<Mn;s++)(this.persist&1<<s||this.lanes[i>>>3]&1<<i%8)&&t.push(s+1),i++;return t.length?t:[_t.ZS.Center]}countAtLine(e){let t=Mn*e,i=0;for(let s=0;s<Mn;s++)(this.persist&1<<s||this.lanes[t>>>3]&1<<t%8)&&i++,t++;return i}}class Fn extends d.jG{constructor(e,t,i,s,n,r,o,a,c,l){if(super(),this.languageConfigurationService=o,this._themeService=a,this._attachedView=c,this._transactionalTarget=l,this.hiddenAreasModel=new Bn,this.previousHiddenAreas=[],this._editorId=e,this._configuration=t,this.model=i,this._eventDispatcher=new Vs,this.onEvent=this._eventDispatcher.onEvent,this.cursorConfig=new _s.d$(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._updateConfigurationViewLineCount=this._register(new Nt.uC((()=>this._updateConfigurationViewLineCountNow()),0)),this._hasFocus=!1,this._viewportStart=Un.create(this.model),this.glyphLanes=new Pn(0),this.model.isTooLargeForTokenization())this._lines=new On(this.model);else{const e=this._configuration.options,t=e.get(50),i=e.get(140),r=e.get(147),o=e.get(139),a=e.get(130);this._lines=new kn(this._editorId,this.model,s,n,t,this.model.getOptions().tabSize,i,r.wrappingColumn,o,a)}this.coordinatesConverter=this._lines.createCoordinatesConverter(),this._cursor=this._register(new nn(i,this,this.coordinatesConverter,this.cursorConfig)),this.viewLayout=this._register(new vn(this._configuration,this.getLineCount(),r)),this._register(this.viewLayout.onDidScroll((e=>{e.scrollTopChanged&&this._handleVisibleLinesChanged(),e.scrollTopChanged&&this._viewportStart.invalidate(),this._eventDispatcher.emitSingleViewEvent(new Fs(e)),this._eventDispatcher.emitOutgoingEvent(new Ks(e.oldScrollWidth,e.oldScrollLeft,e.oldScrollHeight,e.oldScrollTop,e.scrollWidth,e.scrollLeft,e.scrollHeight,e.scrollTop))}))),this._register(this.viewLayout.onDidContentSizeChange((e=>{this._eventDispatcher.emitOutgoingEvent(e)}))),this._decorations=new Cn.UB(this._editorId,this.model,this._configuration,this._lines,this.coordinatesConverter),this._registerModelEvents(),this._register(this._configuration.onDidChangeFast((e=>{try{const t=this._eventDispatcher.beginEmitViewEvents();this._onConfigurationChanged(t,e)}finally{this._eventDispatcher.endEmitViewEvents()}}))),this._register(Wt.getInstance().onDidChange((()=>{this._eventDispatcher.emitSingleViewEvent(new Bs)}))),this._register(this._themeService.onDidColorThemeChange((e=>{this._invalidateDecorationsColorCache(),this._eventDispatcher.emitSingleViewEvent(new Us(e))}))),this._updateConfigurationViewLineCountNow()}dispose(){super.dispose(),this._decorations.dispose(),this._lines.dispose(),this._viewportStart.dispose(),this._eventDispatcher.dispose()}createLineBreaksComputer(){return this._lines.createLineBreaksComputer()}addViewEventHandler(e){this._eventDispatcher.addViewEventHandler(e)}removeViewEventHandler(e){this._eventDispatcher.removeViewEventHandler(e)}_updateConfigurationViewLineCountNow(){this._configuration.setViewLineCount(this._lines.getViewLineCount())}getModelVisibleRanges(){const e=this.viewLayout.getLinesViewportData(),t=new q.Q(e.startLineNumber,this.getLineMinColumn(e.startLineNumber),e.endLineNumber,this.getLineMaxColumn(e.endLineNumber));return this._toModelVisibleRanges(t)}visibleLinesStabilized(){const e=this.getModelVisibleRanges();this._attachedView.setVisibleLines(e,!0)}_handleVisibleLinesChanged(){const e=this.getModelVisibleRanges();this._attachedView.setVisibleLines(e,!1)}setHasFocus(e){this._hasFocus=e,this._cursor.setHasFocus(e),this._eventDispatcher.emitSingleViewEvent(new As(e)),this._eventDispatcher.emitOutgoingEvent(new js(!e,e))}onCompositionStart(){this._eventDispatcher.emitSingleViewEvent(new ws)}onCompositionEnd(){this._eventDispatcher.emitSingleViewEvent(new Rs)}_captureStableViewport(){if(this._viewportStart.isValid&&this.viewLayout.getCurrentScrollTop()>0){const e=new Y.y(this._viewportStart.viewLineNumber,this.getLineMinColumn(this._viewportStart.viewLineNumber)),t=this.coordinatesConverter.convertViewPositionToModelPosition(e);return new Vn(t,this._viewportStart.startLineDelta)}return new Vn(null,0)}_onConfigurationChanged(e,t){const i=this._captureStableViewport(),s=this._configuration.options,n=s.get(50),r=s.get(140),o=s.get(147),a=s.get(139),c=s.get(130);this._lines.setWrappingSettings(n,r,o.wrappingColumn,a,c)&&(e.emitViewEvent(new ks),e.emitViewEvent(new Is),e.emitViewEvent(new xs(null)),this._cursor.onLineMappingChanged(e),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this._updateConfigurationViewLineCount.schedule()),t.hasChanged(92)&&(this._decorations.reset(),e.emitViewEvent(new xs(null))),t.hasChanged(99)&&(this._decorations.reset(),e.emitViewEvent(new xs(null))),e.emitViewEvent(new Ls(t)),this.viewLayout.onConfigurationChanged(t),i.recoverViewportStart(this.coordinatesConverter,this.viewLayout),_s.d$.shouldRecreate(t)&&(this.cursorConfig=new _s.d$(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig))}_registerModelEvents(){this._register(this.model.onDidChangeContentOrInjectedText((e=>{try{const t=this._eventDispatcher.beginEmitViewEvents();let i=!1,s=!1;const n=e instanceof Gi.Ic?e.rawContentChangedEvent.changes:e.changes,r=e instanceof Gi.Ic?e.rawContentChangedEvent.versionId:null,o=this._lines.createLineBreaksComputer();for(const e of n)switch(e.changeType){case 4:for(let t=0;t<e.detail.length;t++){const i=e.detail[t];let s=e.injectedTexts[t];s&&(s=s.filter((e=>!e.ownerId||e.ownerId===this._editorId))),o.addRequest(i,s,null)}break;case 2:{let t=null;e.injectedText&&(t=e.injectedText.filter((e=>!e.ownerId||e.ownerId===this._editorId))),o.addRequest(e.detail,t,null);break}}const a=o.finalize(),c=new m.j3(a);for(const e of n)switch(e.changeType){case 1:this._lines.onModelFlushed(),t.emitViewEvent(new ks),this._decorations.reset(),this.viewLayout.onFlushed(this.getLineCount()),i=!0;break;case 3:{const s=this._lines.onModelLinesDeleted(r,e.fromLineNumber,e.toLineNumber);null!==s&&(t.emitViewEvent(s),this.viewLayout.onLinesDeleted(s.fromLineNumber,s.toLineNumber)),i=!0;break}case 4:{const s=c.takeCount(e.detail.length),n=this._lines.onModelLinesInserted(r,e.fromLineNumber,e.toLineNumber,s);null!==n&&(t.emitViewEvent(n),this.viewLayout.onLinesInserted(n.fromLineNumber,n.toLineNumber)),i=!0;break}case 2:{const i=c.dequeue(),[n,o,a,l]=this._lines.onModelLineChanged(r,e.lineNumber,i);s=n,o&&t.emitViewEvent(o),a&&(t.emitViewEvent(a),this.viewLayout.onLinesInserted(a.fromLineNumber,a.toLineNumber)),l&&(t.emitViewEvent(l),this.viewLayout.onLinesDeleted(l.fromLineNumber,l.toLineNumber));break}}null!==r&&this._lines.acceptVersionId(r),this.viewLayout.onHeightMaybeChanged(),!i&&s&&(t.emitViewEvent(new Is),t.emitViewEvent(new xs(null)),this._cursor.onLineMappingChanged(t),this._decorations.onLineMappingChanged())}finally{this._eventDispatcher.endEmitViewEvents()}const t=this._viewportStart.isValid;if(this._viewportStart.invalidate(),this._configuration.setModelLineCount(this.model.getLineCount()),this._updateConfigurationViewLineCountNow(),!this._hasFocus&&this.model.getAttachedEditorCount()>=2&&t){const e=this.model._getTrackedRange(this._viewportStart.modelTrackedRange);if(e){const t=this.coordinatesConverter.convertModelPositionToViewPosition(e.getStartPosition()),i=this.viewLayout.getVerticalOffsetForLineNumber(t.lineNumber);this.viewLayout.setScrollPosition({scrollTop:i+this._viewportStart.startLineDelta},1)}}try{const t=this._eventDispatcher.beginEmitViewEvents();e instanceof Gi.Ic&&t.emitOutgoingEvent(new en(e.contentChangedEvent)),this._cursor.onModelContentChanged(t,e)}finally{this._eventDispatcher.endEmitViewEvents()}this._handleVisibleLinesChanged()}))),this._register(this.model.onDidChangeTokens((e=>{const t=[];for(let i=0,s=e.ranges.length;i<s;i++){const s=e.ranges[i],n=this.coordinatesConverter.convertModelPositionToViewPosition(new Y.y(s.fromLineNumber,1)).lineNumber,r=this.coordinatesConverter.convertModelPositionToViewPosition(new Y.y(s.toLineNumber,this.model.getLineMaxColumn(s.toLineNumber))).lineNumber;t[i]={fromLineNumber:n,toLineNumber:r}}this._eventDispatcher.emitSingleViewEvent(new Hs(t)),this._eventDispatcher.emitOutgoingEvent(new sn(e))}))),this._register(this.model.onDidChangeLanguageConfiguration((e=>{this._eventDispatcher.emitSingleViewEvent(new Ns),this.cursorConfig=new _s.d$(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new Js(e))}))),this._register(this.model.onDidChangeLanguage((e=>{this.cursorConfig=new _s.d$(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new Zs(e))}))),this._register(this.model.onDidChangeOptions((e=>{if(this._lines.setTabSize(this.model.getOptions().tabSize)){try{const e=this._eventDispatcher.beginEmitViewEvents();e.emitViewEvent(new ks),e.emitViewEvent(new Is),e.emitViewEvent(new xs(null)),this._cursor.onLineMappingChanged(e),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount())}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule()}this.cursorConfig=new _s.d$(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new tn(e))}))),this._register(this.model.onDidChangeDecorations((e=>{this._decorations.onModelDecorationsChanged(),this._eventDispatcher.emitSingleViewEvent(new xs(e)),this._eventDispatcher.emitOutgoingEvent(new Xs(e))})))}setHiddenAreas(e,t){this.hiddenAreasModel.setHiddenAreas(t,e);const i=this.hiddenAreasModel.getMergedRanges();if(i===this.previousHiddenAreas)return;this.previousHiddenAreas=i;const s=this._captureStableViewport();let n=!1;try{const e=this._eventDispatcher.beginEmitViewEvents();n=this._lines.setHiddenAreas(i),n&&(e.emitViewEvent(new ks),e.emitViewEvent(new Is),e.emitViewEvent(new xs(null)),this._cursor.onLineMappingChanged(e),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.onHeightMaybeChanged());const t=s.viewportStartModelPosition?.lineNumber;t&&i.some((e=>e.startLineNumber<=t&&t<=e.endLineNumber))||s.recoverViewportStart(this.coordinatesConverter,this.viewLayout)}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule(),n&&this._eventDispatcher.emitOutgoingEvent(new qs)}getVisibleRangesPlusViewportAboveBelow(){const e=this._configuration.options.get(146),t=this._configuration.options.get(67),i=Math.max(20,Math.round(e.height/t)),s=this.viewLayout.getLinesViewportData(),n=Math.max(1,s.completelyVisibleStartLineNumber-i),r=Math.min(this.getLineCount(),s.completelyVisibleEndLineNumber+i);return this._toModelVisibleRanges(new q.Q(n,this.getLineMinColumn(n),r,this.getLineMaxColumn(r)))}getVisibleRanges(){const e=this.getCompletelyVisibleViewRange();return this._toModelVisibleRanges(e)}getHiddenAreas(){return this._lines.getHiddenAreas()}_toModelVisibleRanges(e){const t=this.coordinatesConverter.convertViewRangeToModelRange(e),i=this._lines.getHiddenAreas();if(0===i.length)return[t];const s=[];let n=0,r=t.startLineNumber,o=t.startColumn;const a=t.endLineNumber,c=t.endColumn;for(let l=0,h=i.length;l<h;l++){const e=i[l].startLineNumber,t=i[l].endLineNumber;t<r||(e>a||(r<e&&(s[n++]=new q.Q(r,o,e-1,this.model.getLineMaxColumn(e-1))),r=t+1,o=1))}return(r<a||r===a&&o<c)&&(s[n++]=new q.Q(r,o,a,c)),s}getCompletelyVisibleViewRange(){const e=this.viewLayout.getLinesViewportData(),t=e.completelyVisibleStartLineNumber,i=e.completelyVisibleEndLineNumber;return new q.Q(t,this.getLineMinColumn(t),i,this.getLineMaxColumn(i))}getCompletelyVisibleViewRangeAtScrollTop(e){const t=this.viewLayout.getLinesViewportDataAtScrollTop(e),i=t.completelyVisibleStartLineNumber,s=t.completelyVisibleEndLineNumber;return new q.Q(i,this.getLineMinColumn(i),s,this.getLineMaxColumn(s))}saveState(){const e=this.viewLayout.saveState(),t=e.scrollTop,i=this.viewLayout.getLineNumberAtVerticalOffset(t),s=this.coordinatesConverter.convertViewPositionToModelPosition(new Y.y(i,this.getLineMinColumn(i))),n=this.viewLayout.getVerticalOffsetForLineNumber(i)-t;return{scrollLeft:e.scrollLeft,firstPosition:s,firstPositionDeltaTop:n}}reduceRestoreState(e){if("undefined"===typeof e.firstPosition)return this._reduceRestoreStateCompatibility(e);const t=this.model.validatePosition(e.firstPosition),i=this.coordinatesConverter.convertModelPositionToViewPosition(t),s=this.viewLayout.getVerticalOffsetForLineNumber(i.lineNumber)-e.firstPositionDeltaTop;return{scrollLeft:e.scrollLeft,scrollTop:s}}_reduceRestoreStateCompatibility(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTopWithoutViewZones}}getTabSize(){return this.model.getOptions().tabSize}getLineCount(){return this._lines.getViewLineCount()}setViewport(e,t,i){this._viewportStart.update(this,e)}getActiveIndentGuide(e,t,i){return this._lines.getActiveIndentGuide(e,t,i)}getLinesIndentGuides(e,t){return this._lines.getViewLinesIndentGuides(e,t)}getBracketGuidesInRangeByLine(e,t,i,s){return this._lines.getViewLinesBracketGuides(e,t,i,s)}getLineContent(e){return this._lines.getViewLineContent(e)}getLineLength(e){return this._lines.getViewLineLength(e)}getLineMinColumn(e){return this._lines.getViewLineMinColumn(e)}getLineMaxColumn(e){return this._lines.getViewLineMaxColumn(e)}getLineFirstNonWhitespaceColumn(e){const t=Le.HG(this.getLineContent(e));return-1===t?0:t+1}getLineLastNonWhitespaceColumn(e){const t=Le.lT(this.getLineContent(e));return-1===t?0:t+2}getMinimapDecorationsInRange(e){return this._decorations.getMinimapDecorationsInRange(e)}getDecorationsInViewport(e){return this._decorations.getDecorationsViewportData(e).decorations}getInjectedTextAt(e){return this._lines.getInjectedTextAt(e)}getViewportViewLineRenderingData(e,t){const i=this._decorations.getDecorationsViewportData(e).inlineDecorations[t-e.startLineNumber];return this._getViewLineRenderingData(t,i)}getViewLineRenderingData(e){const t=this._decorations.getInlineDecorationsOnLine(e);return this._getViewLineRenderingData(e,t)}_getViewLineRenderingData(e,t){const i=this.model.mightContainRTL(),s=this.model.mightContainNonBasicASCII(),n=this.getTabSize(),r=this._lines.getViewLineData(e);return r.inlineDecorations&&(t=[...t,...r.inlineDecorations.map((t=>t.toInlineDecoration(e)))]),new Vt.qL(r.minColumn,r.maxColumn,r.content,r.continuesWithWrappedLine,i,s,r.tokens,t,n,r.startVisibleColumn)}getViewLineData(e){return this._lines.getViewLineData(e)}getMinimapLinesRenderingData(e,t,i){const s=this._lines.getViewLinesData(e,t,i);return new Vt.nt(this.getTabSize(),s)}getAllOverviewRulerDecorations(e){const t=this.model.getOverviewRulerDecorations(this._editorId,(0,R.$C)(this._configuration.options)),i=new Hn;for(const s of t){const t=s.options,n=t.overviewRuler;if(!n)continue;const r=n.position;if(0===r)continue;const o=n.getColor(e.value),a=this.coordinatesConverter.getViewLineNumberOfModelPosition(s.range.startLineNumber,s.range.startColumn),c=this.coordinatesConverter.getViewLineNumberOfModelPosition(s.range.endLineNumber,s.range.endColumn);i.accept(o,t.zIndex,a,c,r)}return i.asArray}_invalidateDecorationsColorCache(){const e=this.model.getOverviewRulerDecorations();for(const t of e){const e=t.options.overviewRuler;e?.invalidateCachedColor();const i=t.options.minimap;i?.invalidateCachedColor()}}getValueInRange(e,t){const i=this.coordinatesConverter.convertViewRangeToModelRange(e);return this.model.getValueInRange(i,t)}getValueLengthInRange(e,t){const i=this.coordinatesConverter.convertViewRangeToModelRange(e);return this.model.getValueLengthInRange(i,t)}modifyPosition(e,t){const i=this.coordinatesConverter.convertViewPositionToModelPosition(e),s=this.model.modifyPosition(i,t);return this.coordinatesConverter.convertModelPositionToViewPosition(s)}deduceModelPositionRelativeToViewPosition(e,t,i){const s=this.coordinatesConverter.convertViewPositionToModelPosition(e);2===this.model.getEOL().length&&(t<0?t-=i:t+=i);const n=this.model.getOffsetAt(s)+t;return this.model.getPositionAt(n)}getPlainTextToCopy(e,t,i){const s=i?"\r\n":this.model.getEOL();(e=e.slice(0)).sort(q.Q.compareRangesUsingStarts);let n=!1,r=!1;for(const a of e)a.isEmpty()?n=!0:r=!0;if(!r){if(!t)return"";const i=e.map((e=>e.startLineNumber));let n="";for(let e=0;e<i.length;e++)e>0&&i[e-1]===i[e]||(n+=this.model.getLineContent(i[e])+s);return n}if(n&&t){const t=[];let s=0;for(const n of e){const e=n.startLineNumber;n.isEmpty()?e!==s&&t.push(this.model.getLineContent(e)):t.push(this.model.getValueInRange(n,i?2:0)),s=e}return 1===t.length?t[0]:t}const o=[];for(const a of e)a.isEmpty()||o.push(this.model.getValueInRange(a,i?2:0));return 1===o.length?o[0]:o}getRichTextToCopy(e,t){const i=this.model.getLanguageId();if(i===hn.vH)return null;if(1!==e.length)return null;let s=e[0];if(s.isEmpty()){if(!t)return null;const e=s.startLineNumber;s=new q.Q(e,this.model.getLineMinColumn(e),e,this.model.getLineMaxColumn(e))}const n=this._configuration.options.get(50),r=this._getColorMap();let o;if(/[:;\\\/<>]/.test(n.fontFamily)||n.fontFamily===R.jU.fontFamily)o=R.jU.fontFamily;else{o=n.fontFamily,o=o.replace(/"/g,"'");if(!/[,']/.test(o)){/[+ ]/.test(o)&&(o=`'${o}'`)}o=`${o}, ${R.jU.fontFamily}`}return{mode:i,html:`<div style="color: ${r[1]};background-color: ${r[2]};font-family: ${o};font-weight: ${n.fontWeight};font-size: ${n.fontSize}px;line-height: ${n.lineHeight}px;white-space: pre;">`+this._getHTMLToCopy(s,r)+"</div>"}}_getHTMLToCopy(e,t){const i=e.startLineNumber,s=e.startColumn,n=e.endLineNumber,r=e.endColumn,o=this.getTabSize();let a="";for(let c=i;c<=n;c++){const e=this.model.tokenization.getLineTokens(c),l=e.getLineContent(),h=c===i?s-1:0,d=c===n?r-1:l.length;a+=""===l?"<br>":(0,dn.s0)(l,e.inflate(),t,h,d,o,_.uF)}return a}_getColorMap(){const e=Me.dG.getColorMap(),t=["#000000"];if(e)for(let i=1,s=e.length;i<s;i++)t[i]=Pe.Q1.Format.CSS.formatHex(e[i]);return t}getPrimaryCursorState(){return this._cursor.getPrimaryCursorState()}getLastAddedCursorIndex(){return this._cursor.getLastAddedCursorIndex()}getCursorStates(){return this._cursor.getCursorStates()}setCursorStates(e,t,i){return this._withViewEventsCollector((s=>this._cursor.setStates(s,e,t,i)))}getCursorColumnSelectData(){return this._cursor.getCursorColumnSelectData()}getCursorAutoClosedCharacters(){return this._cursor.getAutoClosedCharacters()}setCursorColumnSelectData(e){this._cursor.setCursorColumnSelectData(e)}getPrevEditOperationType(){return this._cursor.getPrevEditOperationType()}setPrevEditOperationType(e){this._cursor.setPrevEditOperationType(e)}getSelection(){return this._cursor.getSelection()}getSelections(){return this._cursor.getSelections()}getPosition(){return this._cursor.getPrimaryCursorState().modelState.position}setSelections(e,t,i=0){this._withViewEventsCollector((s=>this._cursor.setSelections(s,e,t,i)))}saveCursorState(){return this._cursor.saveState()}restoreCursorState(e){this._withViewEventsCollector((t=>this._cursor.restoreState(t,e)))}_executeCursorEdit(e){this._cursor.context.cursorConfig.readOnly?this._eventDispatcher.emitOutgoingEvent(new Qs):this._withViewEventsCollector(e)}executeEdits(e,t,i){this._executeCursorEdit((s=>this._cursor.executeEdits(s,e,t,i)))}startComposition(){this._executeCursorEdit((e=>this._cursor.startComposition(e)))}endComposition(e){this._executeCursorEdit((t=>this._cursor.endComposition(t,e)))}type(e,t){this._executeCursorEdit((i=>this._cursor.type(i,e,t)))}compositionType(e,t,i,s,n){this._executeCursorEdit((r=>this._cursor.compositionType(r,e,t,i,s,n)))}paste(e,t,i,s){this._executeCursorEdit((n=>this._cursor.paste(n,e,t,i,s)))}cut(e){this._executeCursorEdit((t=>this._cursor.cut(t,e)))}executeCommand(e,t){this._executeCursorEdit((i=>this._cursor.executeCommand(i,e,t)))}executeCommands(e,t){this._executeCursorEdit((i=>this._cursor.executeCommands(i,e,t)))}revealAllCursors(e,t,i=!1){this._withViewEventsCollector((s=>this._cursor.revealAll(s,e,i,0,t,0)))}revealPrimaryCursor(e,t,i=!1){this._withViewEventsCollector((s=>this._cursor.revealPrimary(s,e,i,0,t,0)))}revealTopMostCursor(e){const t=this._cursor.getTopMostViewPosition(),i=new q.Q(t.lineNumber,t.column,t.lineNumber,t.column);this._withViewEventsCollector((t=>t.emitViewEvent(new Ps(e,!1,i,null,0,!0,0))))}revealBottomMostCursor(e){const t=this._cursor.getBottomMostViewPosition(),i=new q.Q(t.lineNumber,t.column,t.lineNumber,t.column);this._withViewEventsCollector((t=>t.emitViewEvent(new Ps(e,!1,i,null,0,!0,0))))}revealRange(e,t,i,s,n){this._withViewEventsCollector((r=>r.emitViewEvent(new Ps(e,!1,i,null,s,t,n))))}changeWhitespace(e){this.viewLayout.changeWhitespace(e)&&(this._eventDispatcher.emitSingleViewEvent(new Ws),this._eventDispatcher.emitOutgoingEvent(new Ys))}_withViewEventsCollector(e){return this._transactionalTarget.batchChanges((()=>{try{const t=this._eventDispatcher.beginEmitViewEvents();return e(t)}finally{this._eventDispatcher.endEmitViewEvents()}}))}batchEvents(e){this._withViewEventsCollector((()=>{e()}))}normalizePosition(e,t){return this._lines.normalizePosition(e,t)}getLineIndentColumn(e){return this._lines.getLineIndentColumn(e)}}class Un{static create(e){const t=e._setTrackedRange(null,new q.Q(1,1,1,1),1);return new Un(e,1,!1,t,0)}get viewLineNumber(){return this._viewLineNumber}get isValid(){return this._isValid}get modelTrackedRange(){return this._modelTrackedRange}get startLineDelta(){return this._startLineDelta}constructor(e,t,i,s,n){this._model=e,this._viewLineNumber=t,this._isValid=i,this._modelTrackedRange=s,this._startLineDelta=n}dispose(){this._model._setTrackedRange(this._modelTrackedRange,null,1)}update(e,t){const i=e.coordinatesConverter.convertViewPositionToModelPosition(new Y.y(t,e.getLineMinColumn(t))),s=e.model._setTrackedRange(this._modelTrackedRange,new q.Q(i.lineNumber,i.column,i.lineNumber,i.column),1),n=e.viewLayout.getVerticalOffsetForLineNumber(t),r=e.viewLayout.getCurrentScrollTop();this._viewLineNumber=t,this._isValid=!0,this._modelTrackedRange=s,this._startLineDelta=r-n}invalidate(){this._isValid=!1}}class Hn{constructor(){this._asMap=Object.create(null),this.asArray=[]}accept(e,t,i,s,n){const r=this._asMap[e];if(r){const e=r.data,t=e[e.length-3],o=e[e.length-1];if(t===n&&o+1>=i)return void(s>o&&(e[e.length-1]=s));e.push(n,i,s)}else{const r=new Vt.Uv(e,t,[n,i,s]);this._asMap[e]=r,this.asArray.push(r)}}}class Bn{constructor(){this.hiddenAreas=new Map,this.shouldRecompute=!1,this.ranges=[]}setHiddenAreas(e,t){const i=this.hiddenAreas.get(e);i&&Wn(i,t)||(this.hiddenAreas.set(e,t),this.shouldRecompute=!0)}getMergedRanges(){if(!this.shouldRecompute)return this.ranges;this.shouldRecompute=!1;const e=Array.from(this.hiddenAreas.values()).reduce(((e,t)=>function(e,t){const i=[];let s=0,n=0;for(;s<e.length&&n<t.length;){const r=e[s],o=t[n];if(r.endLineNumber<o.startLineNumber-1)i.push(e[s++]);else if(o.endLineNumber<r.startLineNumber-1)i.push(t[n++]);else{const e=Math.min(r.startLineNumber,o.startLineNumber),t=Math.max(r.endLineNumber,o.endLineNumber);i.push(new q.Q(e,1,t,1)),s++,n++}}for(;s<e.length;)i.push(e[s++]);for(;n<t.length;)i.push(t[n++]);return i}(e,t)),[]);return Wn(this.ranges,e)||(this.ranges=e),this.ranges}}function Wn(e,t){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(!e[i].equalsRange(t[i]))return!1;return!0}class Vn{constructor(e,t){this.viewportStartModelPosition=e,this.startLineDelta=t}recoverViewportStart(e,t){if(!this.viewportStartModelPosition)return;const i=e.convertModelPositionToViewPosition(this.viewportStartModelPosition),s=t.getVerticalOffsetForLineNumber(i.lineNumber);t.setScrollPosition({scrollTop:s+this.startLineDelta},1)}}var zn,Gn=i(50091),jn=i(32848),Kn=i(58345),Yn=i(58591),qn=i(27195),$n=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Qn=function(e,t){return function(i,s){t(i,s,e)}};let Xn=class extends d.jG{static{zn=this}static{this.dropIntoEditorDecorationOptions=ss.kI.register({description:"workbench-dnd-target",className:"dnd-target"})}get isSimpleWidget(){return this._configuration.isSimpleWidget}get contextMenuId(){return this._configuration.contextMenuId}constructor(e,t,i,s,r,o,a,d,u,g,p,m){super(),this.languageConfigurationService=p,this._deliveryQueue=(0,h.Qy)(),this._contributions=this._register(new Xi),this._onDidDispose=this._register(new h.vl),this.onDidDispose=this._onDidDispose.event,this._onDidChangeModelContent=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelContent=this._onDidChangeModelContent.event,this._onDidChangeModelLanguage=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelLanguage=this._onDidChangeModelLanguage.event,this._onDidChangeModelLanguageConfiguration=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelLanguageConfiguration=this._onDidChangeModelLanguageConfiguration.event,this._onDidChangeModelOptions=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelOptions=this._onDidChangeModelOptions.event,this._onDidChangeModelDecorations=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelDecorations=this._onDidChangeModelDecorations.event,this._onDidChangeModelTokens=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelTokens=this._onDidChangeModelTokens.event,this._onDidChangeConfiguration=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._onWillChangeModel=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onWillChangeModel=this._onWillChangeModel.event,this._onDidChangeModel=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeModel=this._onDidChangeModel.event,this._onDidChangeCursorPosition=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeCursorPosition=this._onDidChangeCursorPosition.event,this._onDidChangeCursorSelection=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeCursorSelection=this._onDidChangeCursorSelection.event,this._onDidAttemptReadOnlyEdit=this._register(new tr(this._contributions,this._deliveryQueue)),this.onDidAttemptReadOnlyEdit=this._onDidAttemptReadOnlyEdit.event,this._onDidLayoutChange=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidLayoutChange=this._onDidLayoutChange.event,this._editorTextFocus=this._register(new er({deliveryQueue:this._deliveryQueue})),this.onDidFocusEditorText=this._editorTextFocus.onDidChangeToTrue,this.onDidBlurEditorText=this._editorTextFocus.onDidChangeToFalse,this._editorWidgetFocus=this._register(new er({deliveryQueue:this._deliveryQueue})),this.onDidFocusEditorWidget=this._editorWidgetFocus.onDidChangeToTrue,this.onDidBlurEditorWidget=this._editorWidgetFocus.onDidChangeToFalse,this._onWillType=this._register(new tr(this._contributions,this._deliveryQueue)),this.onWillType=this._onWillType.event,this._onDidType=this._register(new tr(this._contributions,this._deliveryQueue)),this.onDidType=this._onDidType.event,this._onDidCompositionStart=this._register(new tr(this._contributions,this._deliveryQueue)),this.onDidCompositionStart=this._onDidCompositionStart.event,this._onDidCompositionEnd=this._register(new tr(this._contributions,this._deliveryQueue)),this.onDidCompositionEnd=this._onDidCompositionEnd.event,this._onDidPaste=this._register(new tr(this._contributions,this._deliveryQueue)),this.onDidPaste=this._onDidPaste.event,this._onMouseUp=this._register(new tr(this._contributions,this._deliveryQueue)),this.onMouseUp=this._onMouseUp.event,this._onMouseDown=this._register(new tr(this._contributions,this._deliveryQueue)),this.onMouseDown=this._onMouseDown.event,this._onMouseDrag=this._register(new tr(this._contributions,this._deliveryQueue)),this.onMouseDrag=this._onMouseDrag.event,this._onMouseDrop=this._register(new tr(this._contributions,this._deliveryQueue)),this.onMouseDrop=this._onMouseDrop.event,this._onMouseDropCanceled=this._register(new tr(this._contributions,this._deliveryQueue)),this.onMouseDropCanceled=this._onMouseDropCanceled.event,this._onDropIntoEditor=this._register(new tr(this._contributions,this._deliveryQueue)),this.onDropIntoEditor=this._onDropIntoEditor.event,this._onContextMenu=this._register(new tr(this._contributions,this._deliveryQueue)),this.onContextMenu=this._onContextMenu.event,this._onMouseMove=this._register(new tr(this._contributions,this._deliveryQueue)),this.onMouseMove=this._onMouseMove.event,this._onMouseLeave=this._register(new tr(this._contributions,this._deliveryQueue)),this.onMouseLeave=this._onMouseLeave.event,this._onMouseWheel=this._register(new tr(this._contributions,this._deliveryQueue)),this.onMouseWheel=this._onMouseWheel.event,this._onKeyUp=this._register(new tr(this._contributions,this._deliveryQueue)),this.onKeyUp=this._onKeyUp.event,this._onKeyDown=this._register(new tr(this._contributions,this._deliveryQueue)),this.onKeyDown=this._onKeyDown.event,this._onDidContentSizeChange=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._onDidScrollChange=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidScrollChange=this._onDidScrollChange.event,this._onDidChangeViewZones=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeViewZones=this._onDidChangeViewZones.event,this._onDidChangeHiddenAreas=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeHiddenAreas=this._onDidChangeHiddenAreas.event,this._updateCounter=0,this._onBeginUpdate=this._register(new h.vl),this.onBeginUpdate=this._onBeginUpdate.event,this._onEndUpdate=this._register(new h.vl),this.onEndUpdate=this._onEndUpdate.event,this._actions=new Map,this._bannerDomNode=null,this._dropIntoEditorDecorations=this.createDecorationsCollection(),r.willCreateCodeEditor();const f={...t};let _;this._domElement=e,this._overflowWidgetsDomNode=f.overflowWidgetsDomNode,delete f.overflowWidgetsDomNode,this._id=++Zn,this._decorationTypeKeysToIds={},this._decorationTypeSubtypes={},this._telemetryData=i.telemetryData,this._configuration=this._register(this._createConfiguration(i.isSimpleWidget||!1,i.contextMenuId??(i.isSimpleWidget?qn.D8.SimpleEditorContext:qn.D8.EditorContext),f,g)),this._register(this._configuration.onDidChange((e=>{this._onDidChangeConfiguration.fire(e);const t=this._configuration.options;if(e.hasChanged(146)){const e=t.get(146);this._onDidLayoutChange.fire(e)}}))),this._contextKeyService=this._register(a.createScoped(this._domElement)),this._notificationService=u,this._codeEditorService=r,this._commandService=o,this._themeService=d,this._register(new ir(this,this._contextKeyService)),this._register(new sr(this,this._contextKeyService,m)),this._instantiationService=this._register(s.createChild(new Kn.a([jn.fN,this._contextKeyService]))),this._modelData=null,this._focusTracker=new nr(e,this._overflowWidgetsDomNode),this._register(this._focusTracker.onChange((()=>{this._editorWidgetFocus.setValue(this._focusTracker.hasFocus())}))),this._contentWidgets={},this._overlayWidgets={},this._glyphMarginWidgets={},_=Array.isArray(i.contributions)?i.contributions:n.dS.getEditorContributions(),this._contributions.initialize(this,_,this._instantiationService);for(const c of n.dS.getEditorActions()){if(this._actions.has(c.id)){(0,l.dz)(new Error(`Cannot have two actions with the same id ${c.id}`));continue}const e=new Ji.f(c.id,c.label,c.alias,c.metadata,c.precondition??void 0,(e=>this._instantiationService.invokeFunction((t=>Promise.resolve(c.runEditorCommand(t,this,e))))),this._contextKeyService);this._actions.set(e.id,e)}const v=()=>!this._configuration.options.get(92)&&this._configuration.options.get(36).enabled;this._register(new c.pN(this._domElement,{onDragOver:e=>{if(!v())return;const t=this.getTargetAtClientPoint(e.clientX,e.clientY);t?.position&&this.showDropIndicatorAt(t.position)},onDrop:async e=>{if(!v())return;if(this.removeDropIndicator(),!e.dataTransfer)return;const t=this.getTargetAtClientPoint(e.clientX,e.clientY);t?.position&&this._onDropIntoEditor.fire({position:t.position,event:e})},onDragLeave:()=>{this.removeDropIndicator()},onDragEnd:()=>{this.removeDropIndicator()}})),this._codeEditorService.addCodeEditor(this)}writeScreenReaderContent(e){this._modelData?.view.writeScreenReaderContent(e)}_createConfiguration(e,t,i,s){return new I(e,t,i,this._domElement,s)}getId(){return this.getEditorType()+":"+this._id}getEditorType(){return es._.ICodeEditor}dispose(){this._codeEditorService.removeCodeEditor(this),this._focusTracker.dispose(),this._actions.clear(),this._contentWidgets={},this._overlayWidgets={},this._removeDecorationTypes(),this._postDetachModelCleanup(this._detachModel()),this._onDidDispose.fire(),super.dispose()}invokeWithinContext(e){return this._instantiationService.invokeFunction(e)}updateOptions(e){this._configuration.updateOptions(e||{})}getOptions(){return this._configuration.options}getOption(e){return this._configuration.options.get(e)}getRawOptions(){return this._configuration.getRawOptions()}getOverflowWidgetsDomNode(){return this._overflowWidgetsDomNode}getConfiguredWordAtPosition(e){return this._modelData?Zi.z.getWordAtPosition(this._modelData.model,this._configuration.options.get(132),this._configuration.options.get(131),e):null}getValue(e=null){if(!this._modelData)return"";const t=!(!e||!e.preserveBOM);let i=0;return e&&e.lineEnding&&"\n"===e.lineEnding?i=1:e&&e.lineEnding&&"\r\n"===e.lineEnding&&(i=2),this._modelData.model.getValue(i,t)}setValue(e){try{if(this._beginUpdate(),!this._modelData)return;this._modelData.model.setValue(e)}finally{this._endUpdate()}}getModel(){return this._modelData?this._modelData.model:null}setModel(e=null){try{this._beginUpdate();const t=e;if(null===this._modelData&&null===t)return;if(this._modelData&&this._modelData.model===t)return;const i={oldModelUrl:this._modelData?.model.uri||null,newModelUrl:t?.uri||null};this._onWillChangeModel.fire(i);const s=this.hasTextFocus(),n=this._detachModel();this._attachModel(t),s&&this.hasModel()&&this.focus(),this._removeDecorationTypes(),this._onDidChangeModel.fire(i),this._postDetachModelCleanup(n),this._contributionsDisposable=this._contributions.onAfterModelAttached()}finally{this._endUpdate()}}_removeDecorationTypes(){if(this._decorationTypeKeysToIds={},this._decorationTypeSubtypes){for(const e in this._decorationTypeSubtypes){const t=this._decorationTypeSubtypes[e];for(const i in t)this._removeDecorationType(e+"-"+i)}this._decorationTypeSubtypes={}}}getVisibleRanges(){return this._modelData?this._modelData.viewModel.getVisibleRanges():[]}getVisibleRangesPlusViewportAboveBelow(){return this._modelData?this._modelData.viewModel.getVisibleRangesPlusViewportAboveBelow():[]}getWhitespaces(){return this._modelData?this._modelData.viewModel.viewLayout.getWhitespaces():[]}static _getVerticalOffsetAfterPosition(e,t,i,s){const n=e.model.validatePosition({lineNumber:t,column:i}),r=e.viewModel.coordinatesConverter.convertModelPositionToViewPosition(n);return e.viewModel.viewLayout.getVerticalOffsetAfterLineNumber(r.lineNumber,s)}getTopForLineNumber(e,t=!1){return this._modelData?zn._getVerticalOffsetForPosition(this._modelData,e,1,t):-1}getTopForPosition(e,t){return this._modelData?zn._getVerticalOffsetForPosition(this._modelData,e,t,!1):-1}static _getVerticalOffsetForPosition(e,t,i,s=!1){const n=e.model.validatePosition({lineNumber:t,column:i}),r=e.viewModel.coordinatesConverter.convertModelPositionToViewPosition(n);return e.viewModel.viewLayout.getVerticalOffsetForLineNumber(r.lineNumber,s)}getBottomForLineNumber(e,t=!1){if(!this._modelData)return-1;const i=this._modelData.model.getLineMaxColumn(e);return zn._getVerticalOffsetAfterPosition(this._modelData,e,i,t)}setHiddenAreas(e,t){this._modelData?.viewModel.setHiddenAreas(e.map((e=>q.Q.lift(e))),t)}getVisibleColumnFromPosition(e){if(!this._modelData)return e.column;const t=this._modelData.model.validatePosition(e),i=this._modelData.model.getOptions().tabSize;return $.A.visibleColumnFromColumn(this._modelData.model.getLineContent(t.lineNumber),t.column,i)+1}getPosition(){return this._modelData?this._modelData.viewModel.getPosition():null}setPosition(e,t="api"){if(this._modelData){if(!Y.y.isIPosition(e))throw new Error("Invalid arguments");this._modelData.viewModel.setSelections(t,[{selectionStartLineNumber:e.lineNumber,selectionStartColumn:e.column,positionLineNumber:e.lineNumber,positionColumn:e.column}])}}_sendRevealRange(e,t,i,s){if(!this._modelData)return;if(!q.Q.isIRange(e))throw new Error("Invalid arguments");const n=this._modelData.model.validateRange(e),r=this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange(n);this._modelData.viewModel.revealRange("api",i,r,t,s)}revealLine(e,t=0){this._revealLine(e,0,t)}revealLineInCenter(e,t=0){this._revealLine(e,1,t)}revealLineInCenterIfOutsideViewport(e,t=0){this._revealLine(e,2,t)}revealLineNearTop(e,t=0){this._revealLine(e,5,t)}_revealLine(e,t,i){if("number"!==typeof e)throw new Error("Invalid arguments");this._sendRevealRange(new q.Q(e,1,e,1),t,!1,i)}revealPosition(e,t=0){this._revealPosition(e,0,!0,t)}revealPositionInCenter(e,t=0){this._revealPosition(e,1,!0,t)}revealPositionInCenterIfOutsideViewport(e,t=0){this._revealPosition(e,2,!0,t)}revealPositionNearTop(e,t=0){this._revealPosition(e,5,!0,t)}_revealPosition(e,t,i,s){if(!Y.y.isIPosition(e))throw new Error("Invalid arguments");this._sendRevealRange(new q.Q(e.lineNumber,e.column,e.lineNumber,e.column),t,i,s)}getSelection(){return this._modelData?this._modelData.viewModel.getSelection():null}getSelections(){return this._modelData?this._modelData.viewModel.getSelections():null}setSelection(e,t="api"){const i=pe.L.isISelection(e),s=q.Q.isIRange(e);if(!i&&!s)throw new Error("Invalid arguments");if(i)this._setSelectionImpl(e,t);else if(s){const i={selectionStartLineNumber:e.startLineNumber,selectionStartColumn:e.startColumn,positionLineNumber:e.endLineNumber,positionColumn:e.endColumn};this._setSelectionImpl(i,t)}}_setSelectionImpl(e,t){if(!this._modelData)return;const i=new pe.L(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn);this._modelData.viewModel.setSelections(t,[i])}revealLines(e,t,i=0){this._revealLines(e,t,0,i)}revealLinesInCenter(e,t,i=0){this._revealLines(e,t,1,i)}revealLinesInCenterIfOutsideViewport(e,t,i=0){this._revealLines(e,t,2,i)}revealLinesNearTop(e,t,i=0){this._revealLines(e,t,5,i)}_revealLines(e,t,i,s){if("number"!==typeof e||"number"!==typeof t)throw new Error("Invalid arguments");this._sendRevealRange(new q.Q(e,1,t,1),i,!1,s)}revealRange(e,t=0,i=!1,s=!0){this._revealRange(e,i?1:0,s,t)}revealRangeInCenter(e,t=0){this._revealRange(e,1,!0,t)}revealRangeInCenterIfOutsideViewport(e,t=0){this._revealRange(e,2,!0,t)}revealRangeNearTop(e,t=0){this._revealRange(e,5,!0,t)}revealRangeNearTopIfOutsideViewport(e,t=0){this._revealRange(e,6,!0,t)}revealRangeAtTop(e,t=0){this._revealRange(e,3,!0,t)}_revealRange(e,t,i,s){if(!q.Q.isIRange(e))throw new Error("Invalid arguments");this._sendRevealRange(q.Q.lift(e),t,i,s)}setSelections(e,t="api",i=0){if(this._modelData){if(!e||0===e.length)throw new Error("Invalid arguments");for(let t=0,i=e.length;t<i;t++)if(!pe.L.isISelection(e[t]))throw new Error("Invalid arguments");this._modelData.viewModel.setSelections(t,e,i)}}getContentWidth(){return this._modelData?this._modelData.viewModel.viewLayout.getContentWidth():-1}getScrollWidth(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollWidth():-1}getScrollLeft(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollLeft():-1}getContentHeight(){return this._modelData?this._modelData.viewModel.viewLayout.getContentHeight():-1}getScrollHeight(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollHeight():-1}getScrollTop(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollTop():-1}setScrollLeft(e,t=1){if(this._modelData){if("number"!==typeof e)throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPosition({scrollLeft:e},t)}}setScrollTop(e,t=1){if(this._modelData){if("number"!==typeof e)throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPosition({scrollTop:e},t)}}setScrollPosition(e,t=1){this._modelData&&this._modelData.viewModel.viewLayout.setScrollPosition(e,t)}hasPendingScrollAnimation(){return!!this._modelData&&this._modelData.viewModel.viewLayout.hasPendingScrollAnimation()}saveViewState(){if(!this._modelData)return null;const e=this._contributions.saveViewState();return{cursorState:this._modelData.viewModel.saveCursorState(),viewState:this._modelData.viewModel.saveState(),contributionsState:e}}restoreViewState(e){if(!this._modelData||!this._modelData.hasRealView)return;const t=e;if(t&&t.cursorState&&t.viewState){const e=t.cursorState;Array.isArray(e)?e.length>0&&this._modelData.viewModel.restoreCursorState(e):this._modelData.viewModel.restoreCursorState([e]),this._contributions.restoreViewState(t.contributionsState||{});const i=this._modelData.viewModel.reduceRestoreState(t.viewState);this._modelData.view.restoreState(i)}}handleInitialized(){this._getViewModel()?.visibleLinesStabilized()}getContribution(e){return this._contributions.get(e)}getActions(){return Array.from(this._actions.values())}getSupportedActions(){let e=this.getActions();return e=e.filter((e=>e.isSupported())),e}getAction(e){return this._actions.get(e)||null}trigger(e,t,i){i=i||{};try{switch(this._beginUpdate(),t){case"compositionStart":return void this._startComposition();case"compositionEnd":return void this._endComposition(e);case"type":{const t=i;return void this._type(e,t.text||"")}case"replacePreviousChar":{const t=i;return void this._compositionType(e,t.text||"",t.replaceCharCnt||0,0,0)}case"compositionType":{const t=i;return void this._compositionType(e,t.text||"",t.replacePrevCharCnt||0,t.replaceNextCharCnt||0,t.positionDelta||0)}case"paste":{const t=i;return void this._paste(e,t.text||"",t.pasteOnNewLine||!1,t.multicursorText||null,t.mode||null,t.clipboardEvent)}case"cut":return void this._cut(e)}const s=this.getAction(t);if(s)return void Promise.resolve(s.run(i)).then(void 0,l.dz);if(!this._modelData)return;if(this._triggerEditorCommand(e,t,i))return;this._triggerCommand(t,i)}finally{this._endUpdate()}}_triggerCommand(e,t){this._commandService.executeCommand(e,t)}_startComposition(){this._modelData&&(this._modelData.viewModel.startComposition(),this._onDidCompositionStart.fire())}_endComposition(e){this._modelData&&(this._modelData.viewModel.endComposition(e),this._onDidCompositionEnd.fire())}_type(e,t){this._modelData&&0!==t.length&&("keyboard"===e&&this._onWillType.fire(t),this._modelData.viewModel.type(t,e),"keyboard"===e&&this._onDidType.fire(t))}_compositionType(e,t,i,s,n){this._modelData&&this._modelData.viewModel.compositionType(t,i,s,n,e)}_paste(e,t,i,s,n,r){if(!this._modelData)return;const o=this._modelData.viewModel,a=o.getSelection().getStartPosition();o.paste(t,i,s,e);const c=o.getSelection().getStartPosition();"keyboard"===e&&this._onDidPaste.fire({clipboardEvent:r,range:new q.Q(a.lineNumber,a.column,c.lineNumber,c.column),languageId:n})}_cut(e){this._modelData&&this._modelData.viewModel.cut(e)}_triggerEditorCommand(e,t,i){const s=n.dS.getEditorCommand(t);return!!s&&((i=i||{}).source=e,this._instantiationService.invokeFunction((e=>{Promise.resolve(s.runEditorCommand(e,this,i)).then(void 0,l.dz)})),!0)}_getViewModel(){return this._modelData?this._modelData.viewModel:null}pushUndoStop(){return!!this._modelData&&(!this._configuration.options.get(92)&&(this._modelData.model.pushStackElement(),!0))}popUndoStop(){return!!this._modelData&&(!this._configuration.options.get(92)&&(this._modelData.model.popStackElement(),!0))}executeEdits(e,t,i){if(!this._modelData)return!1;if(this._configuration.options.get(92))return!1;let s;return s=i?Array.isArray(i)?()=>i:i:()=>null,this._modelData.viewModel.executeEdits(e,t,s),!0}executeCommand(e,t){this._modelData&&this._modelData.viewModel.executeCommand(t,e)}executeCommands(e,t){this._modelData&&this._modelData.viewModel.executeCommands(t,e)}createDecorationsCollection(e){return new rr(this,e)}changeDecorations(e){return this._modelData?this._modelData.model.changeDecorations(e,this._id):null}getLineDecorations(e){return this._modelData?this._modelData.model.getLineDecorations(e,this._id,(0,R.$C)(this._configuration.options)):null}getDecorationsInRange(e){return this._modelData?this._modelData.model.getDecorationsInRange(e,this._id,(0,R.$C)(this._configuration.options)):null}deltaDecorations(e,t){return this._modelData?0===e.length&&0===t.length?e:this._modelData.model.deltaDecorations(e,t,this._id):[]}removeDecorations(e){this._modelData&&0!==e.length&&this._modelData.model.changeDecorations((t=>{t.deltaDecorations(e,[])}))}removeDecorationsByType(e){const t=this._decorationTypeKeysToIds[e];t&&this.changeDecorations((e=>e.deltaDecorations(t,[]))),this._decorationTypeKeysToIds.hasOwnProperty(e)&&delete this._decorationTypeKeysToIds[e],this._decorationTypeSubtypes.hasOwnProperty(e)&&delete this._decorationTypeSubtypes[e]}getLayoutInfo(){return this._configuration.options.get(146)}createOverviewRuler(e){return this._modelData&&this._modelData.hasRealView?this._modelData.view.createOverviewRuler(e):null}getContainerDomNode(){return this._domElement}getDomNode(){return this._modelData&&this._modelData.hasRealView?this._modelData.view.domNode.domNode:null}delegateVerticalScrollbarPointerDown(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.delegateVerticalScrollbarPointerDown(e)}delegateScrollFromMouseWheelEvent(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.delegateScrollFromMouseWheelEvent(e)}layout(e,t=!1){this._configuration.observeContainer(e),t||this.render()}focus(){this._modelData&&this._modelData.hasRealView&&this._modelData.view.focus()}hasTextFocus(){return!(!this._modelData||!this._modelData.hasRealView)&&this._modelData.view.isFocused()}hasWidgetFocus(){return this._focusTracker&&this._focusTracker.hasFocus()}addContentWidget(e){const t={widget:e,position:e.getPosition()};this._contentWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting a content widget with the same id:"+e.getId()),this._contentWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addContentWidget(t)}layoutContentWidget(e){const t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){const i=this._contentWidgets[t];i.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutContentWidget(i)}}removeContentWidget(e){const t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){const e=this._contentWidgets[t];delete this._contentWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeContentWidget(e)}}addOverlayWidget(e){const t={widget:e,position:e.getPosition()};this._overlayWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting an overlay widget with the same id."),this._overlayWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addOverlayWidget(t)}layoutOverlayWidget(e){const t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){const i=this._overlayWidgets[t];i.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutOverlayWidget(i)}}removeOverlayWidget(e){const t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){const e=this._overlayWidgets[t];delete this._overlayWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeOverlayWidget(e)}}addGlyphMarginWidget(e){const t={widget:e,position:e.getPosition()};this._glyphMarginWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting a glyph margin widget with the same id."),this._glyphMarginWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addGlyphMarginWidget(t)}layoutGlyphMarginWidget(e){const t=e.getId();if(this._glyphMarginWidgets.hasOwnProperty(t)){const i=this._glyphMarginWidgets[t];i.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutGlyphMarginWidget(i)}}removeGlyphMarginWidget(e){const t=e.getId();if(this._glyphMarginWidgets.hasOwnProperty(t)){const e=this._glyphMarginWidgets[t];delete this._glyphMarginWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeGlyphMarginWidget(e)}}changeViewZones(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.change(e)}getTargetAtClientPoint(e,t){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getTargetAtClientPoint(e,t):null}getScrolledVisiblePosition(e){if(!this._modelData||!this._modelData.hasRealView)return null;const t=this._modelData.model.validatePosition(e),i=this._configuration.options,s=i.get(146);return{top:zn._getVerticalOffsetForPosition(this._modelData,t.lineNumber,t.column)-this.getScrollTop(),left:this._modelData.view.getOffsetForColumn(t.lineNumber,t.column)+s.glyphMarginWidth+s.lineNumbersWidth+s.decorationsWidth-this.getScrollLeft(),height:i.get(67)}}getOffsetForColumn(e,t){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getOffsetForColumn(e,t):-1}render(e=!1){this._modelData&&this._modelData.hasRealView&&this._modelData.viewModel.batchEvents((()=>{this._modelData.view.render(!0,e)}))}setAriaOptions(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.setAriaOptions(e)}applyFontInfo(e){(0,g.M)(e,this._configuration.options.get(50))}setBanner(e,t){this._bannerDomNode&&this._domElement.contains(this._bannerDomNode)&&this._bannerDomNode.remove(),this._bannerDomNode=e,this._configuration.setReservedHeight(e?t:0),this._bannerDomNode&&this._domElement.prepend(this._bannerDomNode)}_attachModel(e){if(!e)return void(this._modelData=null);const t=[];this._domElement.setAttribute("data-mode-id",e.getLanguageId()),this._configuration.setIsDominatedByLongLines(e.isDominatedByLongLines()),this._configuration.setModelLineCount(e.getLineCount());const i=e.onBeforeAttached(),s=new Fn(this._id,this._configuration,e,Ki.create(c.zk(this._domElement)),os.create(this._configuration.options),(e=>c.PG(c.zk(this._domElement),e)),this.languageConfigurationService,this._themeService,i,{batchChanges:e=>{try{return this._beginUpdate(),e()}finally{this._endUpdate()}}});t.push(e.onWillDispose((()=>this.setModel(null)))),t.push(s.onEvent((t=>{switch(t.kind){case 0:this._onDidContentSizeChange.fire(t);break;case 1:this._editorTextFocus.setValue(t.hasFocus);break;case 2:this._onDidScrollChange.fire(t);break;case 3:this._onDidChangeViewZones.fire();break;case 4:this._onDidChangeHiddenAreas.fire();break;case 5:this._onDidAttemptReadOnlyEdit.fire();break;case 6:{if(t.reachedMaxCursorCount){const e=this.getOption(80),t=Re.kg("cursors.maximum","The number of cursors has been limited to {0}. Consider using [find and replace](https://code.visualstudio.com/docs/editor/codebasics#_find-and-replace) for larger changes or increase the editor multi cursor limit setting.",e);this._notificationService.prompt(Yn.AI.Warning,t,[{label:"Find and Replace",run:()=>{this._commandService.executeCommand("editor.action.startFindReplaceAction")}},{label:Re.kg("goToSetting","Increase Multi Cursor Limit"),run:()=>{this._commandService.executeCommand("workbench.action.openSettings2",{query:"editor.multiCursorLimit"})}}])}const e=[];for(let n=0,r=t.selections.length;n<r;n++)e[n]=t.selections[n].getPosition();const i={position:e[0],secondaryPositions:e.slice(1),reason:t.reason,source:t.source};this._onDidChangeCursorPosition.fire(i);const s={selection:t.selections[0],secondarySelections:t.selections.slice(1),modelVersionId:t.modelVersionId,oldSelections:t.oldSelections,oldModelVersionId:t.oldModelVersionId,source:t.source,reason:t.reason};this._onDidChangeCursorSelection.fire(s);break}case 7:this._onDidChangeModelDecorations.fire(t.event);break;case 8:this._domElement.setAttribute("data-mode-id",e.getLanguageId()),this._onDidChangeModelLanguage.fire(t.event);break;case 9:this._onDidChangeModelLanguageConfiguration.fire(t.event);break;case 10:this._onDidChangeModelContent.fire(t.event);break;case 11:this._onDidChangeModelOptions.fire(t.event);break;case 12:this._onDidChangeModelTokens.fire(t.event)}})));const[n,r]=this._createView(s);if(r){this._domElement.appendChild(n.domNode.domNode);let t=Object.keys(this._contentWidgets);for(let e=0,i=t.length;e<i;e++){const i=t[e];n.addContentWidget(this._contentWidgets[i])}t=Object.keys(this._overlayWidgets);for(let e=0,i=t.length;e<i;e++){const i=t[e];n.addOverlayWidget(this._overlayWidgets[i])}t=Object.keys(this._glyphMarginWidgets);for(let e=0,i=t.length;e<i;e++){const i=t[e];n.addGlyphMarginWidget(this._glyphMarginWidgets[i])}n.render(!1,!0),n.domNode.domNode.setAttribute("data-uri",e.uri.toString())}this._modelData=new Jn(e,s,n,r,t,i)}_createView(e){let t;t=this.isSimpleWidget?{paste:(e,t,i,s)=>{this._paste("keyboard",e,t,i,s)},type:e=>{this._type("keyboard",e)},compositionType:(e,t,i,s)=>{this._compositionType("keyboard",e,t,i,s)},startComposition:()=>{this._startComposition()},endComposition:()=>{this._endComposition("keyboard")},cut:()=>{this._cut("keyboard")}}:{paste:(e,t,i,s)=>{const n={text:e,pasteOnNewLine:t,multicursorText:i,mode:s};this._commandService.executeCommand("paste",n)},type:e=>{const t={text:e};this._commandService.executeCommand("type",t)},compositionType:(e,t,i,s)=>{if(i||s){const n={text:e,replacePrevCharCnt:t,replaceNextCharCnt:i,positionDelta:s};this._commandService.executeCommand("compositionType",n)}else{const i={text:e,replaceCharCnt:t};this._commandService.executeCommand("replacePreviousChar",i)}},startComposition:()=>{this._commandService.executeCommand("compositionStart",{})},endComposition:()=>{this._commandService.executeCommand("compositionEnd",{})},cut:()=>{this._commandService.executeCommand("cut",{})}};const i=new st(e.coordinatesConverter);i.onKeyDown=e=>this._onKeyDown.fire(e),i.onKeyUp=e=>this._onKeyUp.fire(e),i.onContextMenu=e=>this._onContextMenu.fire(e),i.onMouseMove=e=>this._onMouseMove.fire(e),i.onMouseLeave=e=>this._onMouseLeave.fire(e),i.onMouseDown=e=>this._onMouseDown.fire(e),i.onMouseUp=e=>this._onMouseUp.fire(e),i.onMouseDrag=e=>this._onMouseDrag.fire(e),i.onMouseDrop=e=>this._onMouseDrop.fire(e),i.onMouseDropCanceled=e=>this._onMouseDropCanceled.fire(e),i.onMouseWheel=e=>this._onMouseWheel.fire(e);return[new Pi(t,this._configuration,this._themeService.getColorTheme(),e,i,this._overflowWidgetsDomNode,this._instantiationService),!0]}_postDetachModelCleanup(e){e?.removeAllDecorationsWithOwnerId(this._id)}_detachModel(){if(this._contributionsDisposable?.dispose(),this._contributionsDisposable=void 0,!this._modelData)return null;const e=this._modelData.model,t=this._modelData.hasRealView?this._modelData.view.domNode.domNode:null;return this._modelData.dispose(),this._modelData=null,this._domElement.removeAttribute("data-mode-id"),t&&this._domElement.contains(t)&&t.remove(),this._bannerDomNode&&this._domElement.contains(this._bannerDomNode)&&this._bannerDomNode.remove(),e}_removeDecorationType(e){this._codeEditorService.removeDecorationType(e)}hasModel(){return null!==this._modelData}showDropIndicatorAt(e){const t=[{range:new q.Q(e.lineNumber,e.column,e.lineNumber,e.column),options:zn.dropIntoEditorDecorationOptions}];this._dropIntoEditorDecorations.set(t),this.revealPosition(e,1)}removeDropIndicator(){this._dropIntoEditorDecorations.clear()}setContextValue(e,t){this._contextKeyService.createKey(e,t)}_beginUpdate(){this._updateCounter++,1===this._updateCounter&&this._onBeginUpdate.fire()}_endUpdate(){this._updateCounter--,0===this._updateCounter&&this._onEndUpdate.fire()}};Xn=zn=$n([Qn(3,He._Y),Qn(4,U.T),Qn(5,Gn.d),Qn(6,jn.fN),Qn(7,ke.Gy),Qn(8,Yn.Ot),Qn(9,x.j),Qn(10,is.JZ),Qn(11,ns.ILanguageFeaturesService)],Xn);let Zn=0;class Jn{constructor(e,t,i,s,n,r){this.model=e,this.viewModel=t,this.view=i,this.hasRealView=s,this.listenersToRemove=n,this.attachedView=r}dispose(){(0,d.AS)(this.listenersToRemove),this.model.onBeforeDetached(this.attachedView),this.hasRealView&&this.view.dispose(),this.viewModel.dispose()}}class er extends d.jG{constructor(e){super(),this._emitterOptions=e,this._onDidChangeToTrue=this._register(new h.vl(this._emitterOptions)),this.onDidChangeToTrue=this._onDidChangeToTrue.event,this._onDidChangeToFalse=this._register(new h.vl(this._emitterOptions)),this.onDidChangeToFalse=this._onDidChangeToFalse.event,this._value=0}setValue(e){const t=e?2:1;this._value!==t&&(this._value=t,2===this._value?this._onDidChangeToTrue.fire():1===this._value&&this._onDidChangeToFalse.fire())}}class tr extends h.vl{constructor(e,t){super({deliveryQueue:t}),this._contributions=e}fire(e){this._contributions.onBeforeInteractionEvent(),super.fire(e)}}class ir extends d.jG{constructor(e,t){super(),this._editor=e,t.createKey("editorId",e.getId()),this._editorSimpleInput=ts.R.editorSimpleInput.bindTo(t),this._editorFocus=ts.R.focus.bindTo(t),this._textInputFocus=ts.R.textInputFocus.bindTo(t),this._editorTextFocus=ts.R.editorTextFocus.bindTo(t),this._tabMovesFocus=ts.R.tabMovesFocus.bindTo(t),this._editorReadonly=ts.R.readOnly.bindTo(t),this._inDiffEditor=ts.R.inDiffEditor.bindTo(t),this._editorColumnSelection=ts.R.columnSelection.bindTo(t),this._hasMultipleSelections=ts.R.hasMultipleSelections.bindTo(t),this._hasNonEmptySelection=ts.R.hasNonEmptySelection.bindTo(t),this._canUndo=ts.R.canUndo.bindTo(t),this._canRedo=ts.R.canRedo.bindTo(t),this._register(this._editor.onDidChangeConfiguration((()=>this._updateFromConfig()))),this._register(this._editor.onDidChangeCursorSelection((()=>this._updateFromSelection()))),this._register(this._editor.onDidFocusEditorWidget((()=>this._updateFromFocus()))),this._register(this._editor.onDidBlurEditorWidget((()=>this._updateFromFocus()))),this._register(this._editor.onDidFocusEditorText((()=>this._updateFromFocus()))),this._register(this._editor.onDidBlurEditorText((()=>this._updateFromFocus()))),this._register(this._editor.onDidChangeModel((()=>this._updateFromModel()))),this._register(this._editor.onDidChangeConfiguration((()=>this._updateFromModel()))),this._register(w.M.onDidChangeTabFocus((e=>this._tabMovesFocus.set(e)))),this._updateFromConfig(),this._updateFromSelection(),this._updateFromFocus(),this._updateFromModel(),this._editorSimpleInput.set(this._editor.isSimpleWidget)}_updateFromConfig(){const e=this._editor.getOptions();this._tabMovesFocus.set(w.M.getTabFocusMode()),this._editorReadonly.set(e.get(92)),this._inDiffEditor.set(e.get(61)),this._editorColumnSelection.set(e.get(22))}_updateFromSelection(){const e=this._editor.getSelections();e?(this._hasMultipleSelections.set(e.length>1),this._hasNonEmptySelection.set(e.some((e=>!e.isEmpty())))):(this._hasMultipleSelections.reset(),this._hasNonEmptySelection.reset())}_updateFromFocus(){this._editorFocus.set(this._editor.hasWidgetFocus()&&!this._editor.isSimpleWidget),this._editorTextFocus.set(this._editor.hasTextFocus()&&!this._editor.isSimpleWidget),this._textInputFocus.set(this._editor.hasTextFocus())}_updateFromModel(){const e=this._editor.getModel();this._canUndo.set(Boolean(e&&e.canUndo())),this._canRedo.set(Boolean(e&&e.canRedo()))}}class sr extends d.jG{constructor(e,t,i){super(),this._editor=e,this._contextKeyService=t,this._languageFeaturesService=i,this._langId=ts.R.languageId.bindTo(t),this._hasCompletionItemProvider=ts.R.hasCompletionItemProvider.bindTo(t),this._hasCodeActionsProvider=ts.R.hasCodeActionsProvider.bindTo(t),this._hasCodeLensProvider=ts.R.hasCodeLensProvider.bindTo(t),this._hasDefinitionProvider=ts.R.hasDefinitionProvider.bindTo(t),this._hasDeclarationProvider=ts.R.hasDeclarationProvider.bindTo(t),this._hasImplementationProvider=ts.R.hasImplementationProvider.bindTo(t),this._hasTypeDefinitionProvider=ts.R.hasTypeDefinitionProvider.bindTo(t),this._hasHoverProvider=ts.R.hasHoverProvider.bindTo(t),this._hasDocumentHighlightProvider=ts.R.hasDocumentHighlightProvider.bindTo(t),this._hasDocumentSymbolProvider=ts.R.hasDocumentSymbolProvider.bindTo(t),this._hasReferenceProvider=ts.R.hasReferenceProvider.bindTo(t),this._hasRenameProvider=ts.R.hasRenameProvider.bindTo(t),this._hasSignatureHelpProvider=ts.R.hasSignatureHelpProvider.bindTo(t),this._hasInlayHintsProvider=ts.R.hasInlayHintsProvider.bindTo(t),this._hasDocumentFormattingProvider=ts.R.hasDocumentFormattingProvider.bindTo(t),this._hasDocumentSelectionFormattingProvider=ts.R.hasDocumentSelectionFormattingProvider.bindTo(t),this._hasMultipleDocumentFormattingProvider=ts.R.hasMultipleDocumentFormattingProvider.bindTo(t),this._hasMultipleDocumentSelectionFormattingProvider=ts.R.hasMultipleDocumentSelectionFormattingProvider.bindTo(t),this._isInEmbeddedEditor=ts.R.isInEmbeddedEditor.bindTo(t);const s=()=>this._update();this._register(e.onDidChangeModel(s)),this._register(e.onDidChangeModelLanguage(s)),this._register(i.completionProvider.onDidChange(s)),this._register(i.codeActionProvider.onDidChange(s)),this._register(i.codeLensProvider.onDidChange(s)),this._register(i.definitionProvider.onDidChange(s)),this._register(i.declarationProvider.onDidChange(s)),this._register(i.implementationProvider.onDidChange(s)),this._register(i.typeDefinitionProvider.onDidChange(s)),this._register(i.hoverProvider.onDidChange(s)),this._register(i.documentHighlightProvider.onDidChange(s)),this._register(i.documentSymbolProvider.onDidChange(s)),this._register(i.referenceProvider.onDidChange(s)),this._register(i.renameProvider.onDidChange(s)),this._register(i.documentFormattingEditProvider.onDidChange(s)),this._register(i.documentRangeFormattingEditProvider.onDidChange(s)),this._register(i.signatureHelpProvider.onDidChange(s)),this._register(i.inlayHintsProvider.onDidChange(s)),s()}dispose(){super.dispose()}reset(){this._contextKeyService.bufferChangeEvents((()=>{this._langId.reset(),this._hasCompletionItemProvider.reset(),this._hasCodeActionsProvider.reset(),this._hasCodeLensProvider.reset(),this._hasDefinitionProvider.reset(),this._hasDeclarationProvider.reset(),this._hasImplementationProvider.reset(),this._hasTypeDefinitionProvider.reset(),this._hasHoverProvider.reset(),this._hasDocumentHighlightProvider.reset(),this._hasDocumentSymbolProvider.reset(),this._hasReferenceProvider.reset(),this._hasRenameProvider.reset(),this._hasDocumentFormattingProvider.reset(),this._hasDocumentSelectionFormattingProvider.reset(),this._hasSignatureHelpProvider.reset(),this._isInEmbeddedEditor.reset()}))}_update(){const e=this._editor.getModel();e?this._contextKeyService.bufferChangeEvents((()=>{this._langId.set(e.getLanguageId()),this._hasCompletionItemProvider.set(this._languageFeaturesService.completionProvider.has(e)),this._hasCodeActionsProvider.set(this._languageFeaturesService.codeActionProvider.has(e)),this._hasCodeLensProvider.set(this._languageFeaturesService.codeLensProvider.has(e)),this._hasDefinitionProvider.set(this._languageFeaturesService.definitionProvider.has(e)),this._hasDeclarationProvider.set(this._languageFeaturesService.declarationProvider.has(e)),this._hasImplementationProvider.set(this._languageFeaturesService.implementationProvider.has(e)),this._hasTypeDefinitionProvider.set(this._languageFeaturesService.typeDefinitionProvider.has(e)),this._hasHoverProvider.set(this._languageFeaturesService.hoverProvider.has(e)),this._hasDocumentHighlightProvider.set(this._languageFeaturesService.documentHighlightProvider.has(e)),this._hasDocumentSymbolProvider.set(this._languageFeaturesService.documentSymbolProvider.has(e)),this._hasReferenceProvider.set(this._languageFeaturesService.referenceProvider.has(e)),this._hasRenameProvider.set(this._languageFeaturesService.renameProvider.has(e)),this._hasSignatureHelpProvider.set(this._languageFeaturesService.signatureHelpProvider.has(e)),this._hasInlayHintsProvider.set(this._languageFeaturesService.inlayHintsProvider.has(e)),this._hasDocumentFormattingProvider.set(this._languageFeaturesService.documentFormattingEditProvider.has(e)||this._languageFeaturesService.documentRangeFormattingEditProvider.has(e)),this._hasDocumentSelectionFormattingProvider.set(this._languageFeaturesService.documentRangeFormattingEditProvider.has(e)),this._hasMultipleDocumentFormattingProvider.set(this._languageFeaturesService.documentFormattingEditProvider.all(e).length+this._languageFeaturesService.documentRangeFormattingEditProvider.all(e).length>1),this._hasMultipleDocumentSelectionFormattingProvider.set(this._languageFeaturesService.documentRangeFormattingEditProvider.all(e).length>1),this._isInEmbeddedEditor.set(e.uri.scheme===u.ny.walkThroughSnippet||e.uri.scheme===u.ny.vscodeChatCodeBlock)})):this.reset()}}class nr extends d.jG{constructor(e,t){super(),this._onChange=this._register(new h.vl),this.onChange=this._onChange.event,this._hadFocus=void 0,this._hasDomElementFocus=!1,this._domFocusTracker=this._register(c.w5(e)),this._overflowWidgetsDomNodeHasFocus=!1,this._register(this._domFocusTracker.onDidFocus((()=>{this._hasDomElementFocus=!0,this._update()}))),this._register(this._domFocusTracker.onDidBlur((()=>{this._hasDomElementFocus=!1,this._update()}))),t&&(this._overflowWidgetsDomNode=this._register(c.w5(t)),this._register(this._overflowWidgetsDomNode.onDidFocus((()=>{this._overflowWidgetsDomNodeHasFocus=!0,this._update()}))),this._register(this._overflowWidgetsDomNode.onDidBlur((()=>{this._overflowWidgetsDomNodeHasFocus=!1,this._update()}))))}_update(){const e=this._hasDomElementFocus||this._overflowWidgetsDomNodeHasFocus;this._hadFocus!==e&&(this._hadFocus=e,this._onChange.fire(void 0))}hasFocus(){return this._hadFocus??!1}}class rr{get length(){return this._decorationIds.length}constructor(e,t){this._editor=e,this._decorationIds=[],this._isChangingDecorations=!1,Array.isArray(t)&&t.length>0&&this.set(t)}onDidChange(e,t,i){return this._editor.onDidChangeModelDecorations((i=>{this._isChangingDecorations||e.call(t,i)}),i)}getRange(e){return this._editor.hasModel()?e>=this._decorationIds.length?null:this._editor.getModel().getDecorationRange(this._decorationIds[e]):null}getRanges(){if(!this._editor.hasModel())return[];const e=this._editor.getModel(),t=[];for(const i of this._decorationIds){const s=e.getDecorationRange(i);s&&t.push(s)}return t}has(e){return this._decorationIds.includes(e.id)}clear(){0!==this._decorationIds.length&&this.set([])}set(e){try{this._isChangingDecorations=!0,this._editor.changeDecorations((t=>{this._decorationIds=t.deltaDecorations(this._decorationIds,e)}))}finally{this._isChangingDecorations=!1}return this._decorationIds}append(e){let t=[];try{this._isChangingDecorations=!0,this._editor.changeDecorations((i=>{t=i.deltaDecorations([],e),this._decorationIds=this._decorationIds.concat(t)}))}finally{this._isChangingDecorations=!1}return t}}const or=encodeURIComponent("<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 3' enable-background='new 0 0 6 3' height='3' width='6'><g fill='"),ar=encodeURIComponent("'><polygon points='5.5,0 2.5,3 1.1,3 4.1,0'/><polygon points='4,0 6,2 6,0.6 5.4,0'/><polygon points='0,2 1,3 2.4,3 0,0.6'/></g></svg>");function cr(e){return or+encodeURIComponent(e.toString())+ar}const lr=encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" height="3" width="12"><g fill="'),hr=encodeURIComponent('"><circle cx="1" cy="1" r="1"/><circle cx="5" cy="1" r="1"/><circle cx="9" cy="1" r="1"/></g></svg>');(0,ke.zy)(((e,t)=>{const i=e.getColor(zt.Rbi);i&&t.addRule(`.monaco-editor .squiggly-error { background: url("data:image/svg+xml,${cr(i)}") repeat-x bottom left; }`);const s=e.getColor(zt.Hng);s&&t.addRule(`.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,${cr(s)}") repeat-x bottom left; }`);const n=e.getColor(zt.pOz);n&&t.addRule(`.monaco-editor .squiggly-info { background: url("data:image/svg+xml,${cr(n)}") repeat-x bottom left; }`);const r=e.getColor(zt.i61);r&&t.addRule(`.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,${function(e){return lr+encodeURIComponent(e.toString())+hr}(r)}") no-repeat bottom left; }`);const o=e.getColor(Ae.yw);o&&t.addRule(`.monaco-editor.showUnused .squiggly-inline-unnecessary { opacity: ${o.rgba.a}; }`)}))},29163:(e,t,i)=>{"use strict";i.d(t,{t:()=>f});var s=i(10146),n=i(80301),r=i(52555),o=i(17469),a=i(56942),c=i(253),l=i(50091),h=i(32848),d=i(63591),u=i(58591),g=i(47612),p=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},m=function(e,t){return function(i,s){t(i,s,e)}};let f=class extends r.x{constructor(e,t,i,s,n,r,o,a,c,l,h,d,u){super(e,{...s.getRawOptions(),overflowWidgetsDomNode:s.getOverflowWidgetsDomNode()},i,n,r,o,a,c,l,h,d,u),this._parentEditor=s,this._overwriteOptions=t,super.updateOptions(this._overwriteOptions),this._register(s.onDidChangeConfiguration((e=>this._onParentConfigurationChanged(e))))}getParentEditor(){return this._parentEditor}_onParentConfigurationChanged(e){super.updateOptions(this._parentEditor.getRawOptions()),super.updateOptions(this._overwriteOptions)}updateOptions(e){s.co(this._overwriteOptions,e,!0),super.updateOptions(this._overwriteOptions)}};f=p([m(4,d._Y),m(5,n.T),m(6,l.d),m(7,h.fN),m(8,g.Gy),m(9,u.Ot),m(10,c.j),m(11,o.JZ),m(12,a.ILanguageFeaturesService)],f)},20961:(e,t,i)=>{"use strict";var s=i(10350),n=i(8597),r=i(31450),o=i(80301),a=i(4360),c=i(60002),l=i(78209),h=i(27195),d=i(84001),u=i(32848);i(10691);class g extends h.L{constructor(){super({id:"diffEditor.toggleCollapseUnchangedRegions",title:(0,l.aS)("toggleCollapseUnchangedRegions","Toggle Collapse Unchanged Regions"),icon:s.W.map,toggled:u.M$.has("config.diffEditor.hideUnchangedRegions.enabled"),precondition:u.M$.has("isInDiffEditor"),menu:{when:u.M$.has("isInDiffEditor"),id:h.D8.EditorTitle,order:22,group:"navigation"}})}run(e,...t){const i=e.get(d.pG),s=!i.getValue("diffEditor.hideUnchangedRegions.enabled");i.updateValue("diffEditor.hideUnchangedRegions.enabled",s)}}class p extends h.L{constructor(){super({id:"diffEditor.toggleShowMovedCodeBlocks",title:(0,l.aS)("toggleShowMovedCodeBlocks","Toggle Show Moved Code Blocks"),precondition:u.M$.has("isInDiffEditor")})}run(e,...t){const i=e.get(d.pG),s=!i.getValue("diffEditor.experimental.showMoves");i.updateValue("diffEditor.experimental.showMoves",s)}}class m extends h.L{constructor(){super({id:"diffEditor.toggleUseInlineViewWhenSpaceIsLimited",title:(0,l.aS)("toggleUseInlineViewWhenSpaceIsLimited","Toggle Use Inline View When Space Is Limited"),precondition:u.M$.has("isInDiffEditor")})}run(e,...t){const i=e.get(d.pG),s=!i.getValue("diffEditor.useInlineViewWhenSpaceIsLimited");i.updateValue("diffEditor.useInlineViewWhenSpaceIsLimited",s)}}const f=(0,l.aS)("diffEditor","Diff Editor");class _ extends r.qO{constructor(){super({id:"diffEditor.switchSide",title:(0,l.aS)("switchSide","Switch Side"),icon:s.W.arrowSwap,precondition:u.M$.has("isInDiffEditor"),f1:!0,category:f})}runEditorCommand(e,t,i){const s=R(e);if(s instanceof a.T){if(i&&i.dryRun)return{destinationSelection:s.mapToOtherSide().destinationSelection};s.switchSide()}}}class v extends r.qO{constructor(){super({id:"diffEditor.exitCompareMove",title:(0,l.aS)("exitCompareMove","Exit Compare Move"),icon:s.W.close,precondition:c.R.comparingMovedCode,f1:!1,category:f,keybinding:{weight:1e4,primary:9}})}runEditorCommand(e,t,...i){const s=R(e);s instanceof a.T&&s.exitCompareMove()}}class C extends r.qO{constructor(){super({id:"diffEditor.collapseAllUnchangedRegions",title:(0,l.aS)("collapseAllUnchangedRegions","Collapse All Unchanged Regions"),icon:s.W.fold,precondition:u.M$.has("isInDiffEditor"),f1:!0,category:f})}runEditorCommand(e,t,...i){const s=R(e);s instanceof a.T&&s.collapseAllUnchangedRegions()}}class E extends r.qO{constructor(){super({id:"diffEditor.showAllUnchangedRegions",title:(0,l.aS)("showAllUnchangedRegions","Show All Unchanged Regions"),icon:s.W.unfold,precondition:u.M$.has("isInDiffEditor"),f1:!0,category:f})}runEditorCommand(e,t,...i){const s=R(e);s instanceof a.T&&s.showAllUnchangedRegions()}}class b extends h.L{constructor(){super({id:"diffEditor.revert",title:(0,l.aS)("revert","Revert"),f1:!1,category:f})}run(e,t){const i=function(e,t,i){const s=e.get(o.T);return s.listDiffEditors().find((e=>{const s=e.getModifiedEditor(),n=e.getOriginalEditor();return s&&s.getModel()?.uri.toString()===i.toString()&&n&&n.getModel()?.uri.toString()===t.toString()}))||null}(e,t.originalUri,t.modifiedUri);i instanceof a.T&&i.revertRangeMappings(t.mapping.innerChanges??[])}}const S=(0,l.aS)("accessibleDiffViewer","Accessible Diff Viewer");class y extends h.L{static{this.id="editor.action.accessibleDiffViewer.next"}constructor(){super({id:y.id,title:(0,l.aS)("editor.action.accessibleDiffViewer.next","Go to Next Difference"),category:S,precondition:u.M$.has("isInDiffEditor"),keybinding:{primary:65,weight:100},f1:!0})}run(e){const t=R(e);t?.accessibleDiffViewerNext()}}class w extends h.L{static{this.id="editor.action.accessibleDiffViewer.prev"}constructor(){super({id:w.id,title:(0,l.aS)("editor.action.accessibleDiffViewer.prev","Go to Previous Difference"),category:S,precondition:u.M$.has("isInDiffEditor"),keybinding:{primary:1089,weight:100},f1:!0})}run(e){const t=R(e);t?.accessibleDiffViewerPrev()}}function R(e){const t=e.get(o.T).listDiffEditors(),i=(0,n.bq)();if(i)for(const s of t){if(L(s.getContainerDomNode(),i))return s}return null}function L(e,t){let i=t;for(;i;){if(i===e)return!0;i=i.parentElement}return!1}var T=i(50091);(0,h.ug)(g),(0,h.ug)(p),(0,h.ug)(m),h.ZG.appendMenuItem(h.D8.EditorTitle,{command:{id:(new m).desc.id,title:(0,l.kg)("useInlineViewWhenSpaceIsLimited","Use Inline View When Space Is Limited"),toggled:u.M$.has("config.diffEditor.useInlineViewWhenSpaceIsLimited"),precondition:u.M$.has("isInDiffEditor")},order:11,group:"1_diff",when:u.M$.and(c.R.diffEditorRenderSideBySideInlineBreakpointReached,u.M$.has("isInDiffEditor"))}),h.ZG.appendMenuItem(h.D8.EditorTitle,{command:{id:(new p).desc.id,title:(0,l.kg)("showMoves","Show Moved Code Blocks"),icon:s.W.move,toggled:u.f1.create("config.diffEditor.experimental.showMoves",!0),precondition:u.M$.has("isInDiffEditor")},order:10,group:"1_diff",when:u.M$.has("isInDiffEditor")}),(0,h.ug)(b);for(const x of[{icon:s.W.arrowRight,key:c.R.diffEditorInlineMode.toNegated()},{icon:s.W.discard,key:c.R.diffEditorInlineMode}])h.ZG.appendMenuItem(h.D8.DiffEditorHunkToolbar,{command:{id:(new b).desc.id,title:(0,l.kg)("revertHunk","Revert Block"),icon:x.icon},when:u.M$.and(c.R.diffEditorModifiedWritable,x.key),order:5,group:"primary"}),h.ZG.appendMenuItem(h.D8.DiffEditorSelectionToolbar,{command:{id:(new b).desc.id,title:(0,l.kg)("revertSelection","Revert Selection"),icon:x.icon},when:u.M$.and(c.R.diffEditorModifiedWritable,x.key),order:5,group:"primary"});(0,h.ug)(_),(0,h.ug)(v),(0,h.ug)(C),(0,h.ug)(E),h.ZG.appendMenuItem(h.D8.EditorTitle,{command:{id:y.id,title:(0,l.kg)("Open Accessible Diff Viewer","Open Accessible Diff Viewer"),precondition:u.M$.has("isInDiffEditor")},order:10,group:"2_diff",when:u.M$.and(c.R.accessibleDiffViewerVisible.negate(),u.M$.has("isInDiffEditor"))}),T.w.registerCommandAlias("editor.action.diffReview.next",y.id),(0,h.ug)(y),T.w.registerCommandAlias("editor.action.diffReview.prev",w.id),(0,h.ug)(w)},4360:(e,t,i)=>{"use strict";i.d(t,{T:()=>Bt});var s=i(8597),n=i(46041),r=i(64383),o=i(41234),a=i(5662),c=i(31308),l=i(87958),h=i(31450),d=i(80301),u=i(55190),g=i(52555),p=i(80789),m=i(11799),f=i(31295),_=i(36921),v=i(25890),C=i(10350),E=i(25689),b=i(73157),S=i(92368),y=i(87908),w=i(86571),R=i(74444),L=i(83069),T=i(36677),x=i(87723),k=i(10154),A=i(87469),N=i(35600),I=i(92896),O=i(78209),D=i(87213),M=i(63591),P=i(61394),F=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},U=function(e,t){return function(i,s){t(i,s,e)}};const H=(0,P.pU)("diff-review-insert",C.W.add,(0,O.kg)("accessibleDiffViewerInsertIcon","Icon for 'Insert' in accessible diff viewer.")),B=(0,P.pU)("diff-review-remove",C.W.remove,(0,O.kg)("accessibleDiffViewerRemoveIcon","Icon for 'Remove' in accessible diff viewer.")),W=(0,P.pU)("diff-review-close",C.W.close,(0,O.kg)("accessibleDiffViewerCloseIcon","Icon for 'Close' in accessible diff viewer."));let V=class extends a.jG{static{this._ttPolicy=(0,p.H)("diffReview",{createHTML:e=>e})}constructor(e,t,i,s,n,r,o,a,l){super(),this._parentNode=e,this._visible=t,this._setVisible=i,this._canClose=s,this._width=n,this._height=r,this._diffs=o,this._models=a,this._instantiationService=l,this._state=(0,c.rm)(this,((e,t)=>{const i=this._visible.read(e);if(this._parentNode.style.visibility=i?"visible":"hidden",!i)return null;const s=t.add(this._instantiationService.createInstance(z,this._diffs,this._models,this._setVisible,this._canClose));return{model:s,view:t.add(this._instantiationService.createInstance(X,this._parentNode,s,this._width,this._height,this._models))}})).recomputeInitiallyAndOnChange(this._store)}next(){(0,c.Rn)((e=>{const t=this._visible.get();this._setVisible(!0,e),t&&this._state.get().model.nextGroup(e)}))}prev(){(0,c.Rn)((e=>{this._setVisible(!0,e),this._state.get().model.previousGroup(e)}))}close(){(0,c.Rn)((e=>{this._setVisible(!1,e)}))}};V=F([U(8,M._Y)],V);let z=class extends a.jG{constructor(e,t,i,s,n){super(),this._diffs=e,this._models=t,this._setVisible=i,this.canClose=s,this._accessibilitySignalService=n,this._groups=(0,c.FY)(this,[]),this._currentGroupIdx=(0,c.FY)(this,0),this._currentElementIdx=(0,c.FY)(this,0),this.groups=this._groups,this.currentGroup=this._currentGroupIdx.map(((e,t)=>this._groups.read(t)[e])),this.currentGroupIndex=this._currentGroupIdx,this.currentElement=this._currentElementIdx.map(((e,t)=>this.currentGroup.read(t)?.lines[e])),this._register((0,c.fm)((e=>{const t=this._diffs.read(e);if(!t)return void this._groups.set([],void 0);const i=function(e,t,i){const s=[];for(const n of(0,v.n)(e,((e,t)=>t.modified.startLineNumber-e.modified.endLineNumberExclusive<2*G))){const e=[];e.push(new Y);const r=new w.M(Math.max(1,n[0].original.startLineNumber-G),Math.min(n[n.length-1].original.endLineNumberExclusive+G,t+1)),o=new w.M(Math.max(1,n[0].modified.startLineNumber-G),Math.min(n[n.length-1].modified.endLineNumberExclusive+G,i+1));(0,v.pN)(n,((t,i)=>{const s=new w.M(t?t.original.endLineNumberExclusive:r.startLineNumber,i?i.original.startLineNumber:r.endLineNumberExclusive),n=new w.M(t?t.modified.endLineNumberExclusive:o.startLineNumber,i?i.modified.startLineNumber:o.endLineNumberExclusive);s.forEach((t=>{e.push(new Q(t,n.startLineNumber+(t-s.startLineNumber)))})),i&&(i.original.forEach((t=>{e.push(new q(i,t))})),i.modified.forEach((t=>{e.push(new $(i,t))})))}));const a=n[0].modified.join(n[n.length-1].modified),c=n[0].original.join(n[n.length-1].original);s.push(new K(new x.WL(a,c),e))}return s}(t,this._models.getOriginalModel().getLineCount(),this._models.getModifiedModel().getLineCount());(0,c.Rn)((e=>{const t=this._models.getModifiedPosition();if(t){const s=i.findIndex((e=>t?.lineNumber<e.range.modified.endLineNumberExclusive));-1!==s&&this._currentGroupIdx.set(s,e)}this._groups.set(i,e)}))}))),this._register((0,c.fm)((e=>{const t=this.currentElement.read(e);t?.type===j.Deleted?this._accessibilitySignalService.playSignal(D.Rh.diffLineDeleted,{source:"accessibleDiffViewer.currentElementChanged"}):t?.type===j.Added&&this._accessibilitySignalService.playSignal(D.Rh.diffLineInserted,{source:"accessibleDiffViewer.currentElementChanged"})}))),this._register((0,c.fm)((e=>{const t=this.currentElement.read(e);if(t&&t.type!==j.Header){const e=t.modifiedLineNumber??t.diff.modified.startLineNumber;this._models.modifiedSetSelection(T.Q.fromPositions(new L.y(e,1)))}})))}_goToGroupDelta(e,t){const i=this.groups.get();!i||i.length<=1||(0,c.PO)(t,(t=>{this._currentGroupIdx.set(R.L.ofLength(i.length).clipCyclic(this._currentGroupIdx.get()+e),t),this._currentElementIdx.set(0,t)}))}nextGroup(e){this._goToGroupDelta(1,e)}previousGroup(e){this._goToGroupDelta(-1,e)}_goToLineDelta(e){const t=this.currentGroup.get();!t||t.lines.length<=1||(0,c.Rn)((i=>{this._currentElementIdx.set(R.L.ofLength(t.lines.length).clip(this._currentElementIdx.get()+e),i)}))}goToNextLine(){this._goToLineDelta(1)}goToPreviousLine(){this._goToLineDelta(-1)}goToLine(e){const t=this.currentGroup.get();if(!t)return;const i=t.lines.indexOf(e);-1!==i&&(0,c.Rn)((e=>{this._currentElementIdx.set(i,e)}))}revealCurrentElementInEditor(){if(!this.canClose.get())return;this._setVisible(!1,void 0);const e=this.currentElement.get();e&&(e.type===j.Deleted?this._models.originalReveal(T.Q.fromPositions(new L.y(e.originalLineNumber,1))):this._models.modifiedReveal(e.type!==j.Header?T.Q.fromPositions(new L.y(e.modifiedLineNumber,1)):void 0))}close(){this.canClose.get()&&(this._setVisible(!1,void 0),this._models.modifiedFocus())}};z=F([U(4,D.Nt)],z);const G=3;var j;!function(e){e[e.Header=0]="Header",e[e.Unchanged=1]="Unchanged",e[e.Deleted=2]="Deleted",e[e.Added=3]="Added"}(j||(j={}));class K{constructor(e,t){this.range=e,this.lines=t}}class Y{constructor(){this.type=j.Header}}class q{constructor(e,t){this.diff=e,this.originalLineNumber=t,this.type=j.Deleted,this.modifiedLineNumber=void 0}}class ${constructor(e,t){this.diff=e,this.modifiedLineNumber=t,this.type=j.Added,this.originalLineNumber=void 0}}class Q{constructor(e,t){this.originalLineNumber=e,this.modifiedLineNumber=t,this.type=j.Unchanged}}let X=class extends a.jG{constructor(e,t,i,n,r,o){super(),this._element=e,this._model=t,this._width=i,this._height=n,this._models=r,this._languageService=o,this.domNode=this._element,this.domNode.className="monaco-component diff-review monaco-editor-background";const l=document.createElement("div");l.className="diff-review-actions",this._actionBar=this._register(new m.E(l)),this._register((0,c.fm)((e=>{this._actionBar.clear(),this._model.canClose.read(e)&&this._actionBar.push(new _.rc("diffreview.close",(0,O.kg)("label.close","Close"),"close-diff-review "+E.L.asClassName(W),!0,(async()=>t.close())),{label:!1,icon:!0})}))),this._content=document.createElement("div"),this._content.className="diff-review-content",this._content.setAttribute("role","code"),this._scrollbar=this._register(new f.MU(this._content,{})),(0,s.Ln)(this.domNode,this._scrollbar.getDomNode(),l),this._register((0,c.fm)((e=>{this._height.read(e),this._width.read(e),this._scrollbar.scanDomNode()}))),this._register((0,a.s)((()=>{(0,s.Ln)(this.domNode)}))),this._register((0,S.AV)(this.domNode,{width:this._width,height:this._height})),this._register((0,S.AV)(this._content,{width:this._width,height:this._height})),this._register((0,c.yC)(((e,t)=>{this._model.currentGroup.read(e),this._render(t)}))),this._register((0,s.b2)(this.domNode,"keydown",(e=>{(e.equals(18)||e.equals(2066)||e.equals(530))&&(e.preventDefault(),this._model.goToNextLine()),(e.equals(16)||e.equals(2064)||e.equals(528))&&(e.preventDefault(),this._model.goToPreviousLine()),(e.equals(9)||e.equals(2057)||e.equals(521)||e.equals(1033))&&(e.preventDefault(),this._model.close()),(e.equals(10)||e.equals(3))&&(e.preventDefault(),this._model.revealCurrentElementInEditor())})))}_render(e){const t=this._models.getOriginalOptions(),i=this._models.getModifiedOptions(),n=document.createElement("div");n.className="diff-review-table",n.setAttribute("role","list"),n.setAttribute("aria-label",(0,O.kg)("ariaLabel","Accessible Diff Viewer. Use arrow up and down to navigate.")),(0,b.M)(n,i.get(50)),(0,s.Ln)(this._content,n);const r=this._models.getOriginalModel(),o=this._models.getModifiedModel();if(!r||!o)return;const a=r.getOptions(),l=o.getOptions(),h=i.get(67),d=this._model.currentGroup.get();for(const u of d?.lines||[]){if(!d)break;let g;if(u.type===j.Header){const e=document.createElement("div");e.className="diff-review-row",e.setAttribute("role","listitem");const t=d.range,i=this._model.currentGroupIndex.get(),s=this._model.groups.get().length,n=e=>0===e?(0,O.kg)("no_lines_changed","no lines changed"):1===e?(0,O.kg)("one_line_changed","1 line changed"):(0,O.kg)("more_lines_changed","{0} lines changed",e),r=n(t.original.length),o=n(t.modified.length);e.setAttribute("aria-label",(0,O.kg)({key:"header",comment:["This is the ARIA label for a git diff header.","A git diff header looks like this: @@ -154,12 +159,39 @@.","That encodes that at original line 154 (which is now line 159), 12 lines were removed/changed with 39 lines.","Variables 0 and 1 refer to the diff index out of total number of diffs.","Variables 2 and 4 will be numbers (a line number).",'Variables 3 and 5 will be "no lines changed", "1 line changed" or "X lines changed", localized separately.']},"Difference {0} of {1}: original line {2}, {3}, modified line {4}, {5}",i+1,s,t.original.startLineNumber,r,t.modified.startLineNumber,o));const a=document.createElement("div");a.className="diff-review-cell diff-review-summary",a.appendChild(document.createTextNode(`${i+1}/${s}: @@ -${t.original.startLineNumber},${t.original.length} +${t.modified.startLineNumber},${t.modified.length} @@`)),e.appendChild(a),g=e}else g=this._createRow(u,h,this._width.get(),t,r,a,i,o,l);n.appendChild(g);const p=(0,c.un)((e=>this._model.currentElement.read(e)===u));e.add((0,c.fm)((e=>{const t=p.read(e);g.tabIndex=t?0:-1,t&&g.focus()}))),e.add((0,s.ko)(g,"focus",(()=>{this._model.goToLine(u)})))}this._scrollbar.scanDomNode()}_createRow(e,t,i,s,n,r,o,a,c){const l=s.get(146),h=l.glyphMarginWidth+l.lineNumbersWidth,d=o.get(146),u=10+d.glyphMarginWidth+d.lineNumbersWidth;let g="diff-review-row",p="";let m=null;switch(e.type){case j.Added:g="diff-review-row line-insert",p=" char-insert",m=H;break;case j.Deleted:g="diff-review-row line-delete",p=" char-delete",m=B}const f=document.createElement("div");f.style.minWidth=i+"px",f.className=g,f.setAttribute("role","listitem"),f.ariaLevel="";const _=document.createElement("div");_.className="diff-review-cell",_.style.height=`${t}px`,f.appendChild(_);const v=document.createElement("span");v.style.width=h+"px",v.style.minWidth=h+"px",v.className="diff-review-line-number"+p,void 0!==e.originalLineNumber?v.appendChild(document.createTextNode(String(e.originalLineNumber))):v.innerText="\xa0",_.appendChild(v);const C=document.createElement("span");C.style.width=u+"px",C.style.minWidth=u+"px",C.style.paddingRight="10px",C.className="diff-review-line-number"+p,void 0!==e.modifiedLineNumber?C.appendChild(document.createTextNode(String(e.modifiedLineNumber))):C.innerText="\xa0",_.appendChild(C);const b=document.createElement("span");if(b.className="diff-review-spacer",m){const e=document.createElement("span");e.className=E.L.asClassName(m),e.innerText="\xa0\xa0",b.appendChild(e)}else b.innerText="\xa0\xa0";let S;if(_.appendChild(b),void 0!==e.modifiedLineNumber){let t=this._getLineHtml(a,o,c.tabSize,e.modifiedLineNumber,this._languageService.languageIdCodec);V._ttPolicy&&(t=V._ttPolicy.createHTML(t)),_.insertAdjacentHTML("beforeend",t),S=a.getLineContent(e.modifiedLineNumber)}else{let t=this._getLineHtml(n,s,r.tabSize,e.originalLineNumber,this._languageService.languageIdCodec);V._ttPolicy&&(t=V._ttPolicy.createHTML(t)),_.insertAdjacentHTML("beforeend",t),S=n.getLineContent(e.originalLineNumber)}0===S.length&&(S=(0,O.kg)("blankLine","blank"));let y="";switch(e.type){case j.Unchanged:y=e.originalLineNumber===e.modifiedLineNumber?(0,O.kg)({key:"unchangedLine",comment:["The placeholders are contents of the line and should not be translated."]},"{0} unchanged line {1}",S,e.originalLineNumber):(0,O.kg)("equalLine","{0} original line {1} modified line {2}",S,e.originalLineNumber,e.modifiedLineNumber);break;case j.Added:y=(0,O.kg)("insertLine","+ {0} modified line {1}",S,e.modifiedLineNumber);break;case j.Deleted:y=(0,O.kg)("deleteLine","- {0} original line {1}",S,e.originalLineNumber)}return f.setAttribute("aria-label",y),f}_getLineHtml(e,t,i,s,n){const r=e.getLineContent(s),o=t.get(50),a=A.f.createEmpty(r,n),c=I.qL.isBasicASCII(r,e.mightContainNonBasicASCII()),l=I.qL.containsRTL(r,c,e.mightContainRTL());return(0,N.Md)(new N.zL(o.isMonospace&&!t.get(33),o.canUseHalfwidthRightwardsArrow,r,!1,c,l,0,a,[],i,0,o.spaceWidth,o.middotWidth,o.wsmiddotWidth,t.get(118),t.get(100),t.get(95),t.get(51)!==y.Bc.OFF,null)).html}};X=F([U(5,k.L)],X);class Z{constructor(e){this.editors=e}getOriginalModel(){return this.editors.original.getModel()}getOriginalOptions(){return this.editors.original.getOptions()}originalReveal(e){this.editors.original.revealRange(e),this.editors.original.setSelection(e),this.editors.original.focus()}getModifiedModel(){return this.editors.modified.getModel()}getModifiedOptions(){return this.editors.modified.getOptions()}modifiedReveal(e){e&&(this.editors.modified.revealRange(e),this.editors.modified.setSelection(e)),this.editors.modified.focus()}modifiedSetSelection(e){this.editors.modified.setSelection(e)}modifiedFocus(){this.editors.modified.focus()}getModifiedPosition(){return this.editors.modified.getPosition()??void 0}}var J=i(90766),ee=i(631),te=i(10691),ie=i(18447),se=i(94746),ne=i(41127),re=i(26746),oe=i(94650),ae=i(84084),ce=i(82518),le=i(66782),he=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},de=function(e,t){return function(i,s){t(i,s,e)}};let ue=class extends a.jG{setActiveMovedText(e){this._activeMovedText.set(e,void 0)}constructor(e,t,i){super(),this.model=e,this._options=t,this._diffProviderFactoryService=i,this._isDiffUpToDate=(0,c.FY)(this,!1),this.isDiffUpToDate=this._isDiffUpToDate,this._diff=(0,c.FY)(this,void 0),this.diff=this._diff,this._unchangedRegions=(0,c.FY)(this,void 0),this.unchangedRegions=(0,c.un)(this,(e=>this._options.hideUnchangedRegions.read(e)?this._unchangedRegions.read(e)?.regions??[]:((0,c.Rn)((e=>{for(const t of this._unchangedRegions.get()?.regions||[])t.collapseAll(e)})),[]))),this.movedTextToCompare=(0,c.FY)(this,void 0),this._activeMovedText=(0,c.FY)(this,void 0),this._hoveredMovedText=(0,c.FY)(this,void 0),this.activeMovedText=(0,c.un)(this,(e=>this.movedTextToCompare.read(e)??this._hoveredMovedText.read(e)??this._activeMovedText.read(e))),this._cancellationTokenSource=new ie.Qi,this._diffProvider=(0,c.un)(this,(e=>{const t=this._diffProviderFactoryService.createDiffProvider({diffAlgorithm:this._options.diffAlgorithm.read(e)});return{diffProvider:t,onChangeSignal:(0,c.yQ)("onDidChange",t.onDidChange)}})),this._register((0,a.s)((()=>this._cancellationTokenSource.cancel())));const s=(0,c.Yd)("contentChangedSignal"),n=this._register(new J.uC((()=>s.trigger(void 0)),200));this._register((0,c.fm)((t=>{const i=this._unchangedRegions.read(t);if(!i||i.regions.some((e=>e.isDragged.read(t))))return;const s=i.originalDecorationIds.map((t=>e.original.getDecorationRange(t))).map((e=>e?w.M.fromRangeInclusive(e):void 0)),n=i.modifiedDecorationIds.map((t=>e.modified.getDecorationRange(t))).map((e=>e?w.M.fromRangeInclusive(e):void 0)),r=i.regions.map(((e,i)=>s[i]&&n[i]?new me(s[i].startLineNumber,n[i].startLineNumber,s[i].length,e.visibleLineCountTop.read(t),e.visibleLineCountBottom.read(t)):void 0)).filter(ee.O9),o=[];let a=!1;for(const e of(0,v.n)(r,((e,i)=>e.getHiddenModifiedRange(t).endLineNumberExclusive===i.getHiddenModifiedRange(t).startLineNumber)))if(e.length>1){a=!0;const t=e.reduce(((e,t)=>e+t.lineCount),0),i=new me(e[0].originalLineNumber,e[0].modifiedLineNumber,t,e[0].visibleLineCountTop.get(),e[e.length-1].visibleLineCountBottom.get());o.push(i)}else o.push(e[0]);if(a){const t=e.original.deltaDecorations(i.originalDecorationIds,o.map((e=>({range:e.originalUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}})))),s=e.modified.deltaDecorations(i.modifiedDecorationIds,o.map((e=>({range:e.modifiedUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}}))));(0,c.Rn)((e=>{this._unchangedRegions.set({regions:o,originalDecorationIds:t,modifiedDecorationIds:s},e)}))}})));const r=(t,i,s)=>{const n=me.fromDiffs(t.changes,e.original.getLineCount(),e.modified.getLineCount(),this._options.hideUnchangedRegionsMinimumLineCount.read(s),this._options.hideUnchangedRegionsContextLineCount.read(s));let r;const o=this._unchangedRegions.get();if(o){const t=o.originalDecorationIds.map((t=>e.original.getDecorationRange(t))).map((e=>e?w.M.fromRangeInclusive(e):void 0)),i=o.modifiedDecorationIds.map((t=>e.modified.getDecorationRange(t))).map((e=>e?w.M.fromRangeInclusive(e):void 0));let n=(0,S.EK)(o.regions.map(((e,s)=>{if(!t[s]||!i[s])return;const n=t[s].length;return new me(t[s].startLineNumber,i[s].startLineNumber,n,Math.min(e.visibleLineCountTop.get(),n),Math.min(e.visibleLineCountBottom.get(),n-e.visibleLineCountTop.get()))})).filter(ee.O9),((e,t)=>!t||e.modifiedLineNumber>=t.modifiedLineNumber+t.lineCount&&e.originalLineNumber>=t.originalLineNumber+t.lineCount)).map((e=>new x.WL(e.getHiddenOriginalRange(s),e.getHiddenModifiedRange(s))));n=x.WL.clip(n,w.M.ofLength(1,e.original.getLineCount()),w.M.ofLength(1,e.modified.getLineCount())),r=x.WL.inverse(n,e.original.getLineCount(),e.modified.getLineCount())}const a=[];if(r)for(const e of n){const t=r.filter((t=>t.original.intersectsStrict(e.originalUnchangedRange)&&t.modified.intersectsStrict(e.modifiedUnchangedRange)));a.push(...e.setVisibleRanges(t,i))}else a.push(...n);const c=e.original.deltaDecorations(o?.originalDecorationIds||[],a.map((e=>({range:e.originalUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}})))),l=e.modified.deltaDecorations(o?.modifiedDecorationIds||[],a.map((e=>({range:e.modifiedUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}}))));this._unchangedRegions.set({regions:a,originalDecorationIds:c,modifiedDecorationIds:l},i)};this._register(e.modified.onDidChangeContent((t=>{if(this._diff.get()){const i=oe.c.fromModelContentChanges(t.changes),s=_e(this._lastDiff,i,e.original,e.modified);s&&(this._lastDiff=s,(0,c.Rn)((e=>{this._diff.set(ge.fromDiffResult(this._lastDiff),e),r(s,e);const t=this.movedTextToCompare.get();this.movedTextToCompare.set(t?this._lastDiff.moves.find((e=>e.lineRangeMapping.modified.intersect(t.lineRangeMapping.modified))):void 0,e)})))}this._isDiffUpToDate.set(!1,void 0),n.schedule()}))),this._register(e.original.onDidChangeContent((t=>{if(this._diff.get()){const i=oe.c.fromModelContentChanges(t.changes),s=fe(this._lastDiff,i,e.original,e.modified);s&&(this._lastDiff=s,(0,c.Rn)((e=>{this._diff.set(ge.fromDiffResult(this._lastDiff),e),r(s,e);const t=this.movedTextToCompare.get();this.movedTextToCompare.set(t?this._lastDiff.moves.find((e=>e.lineRangeMapping.modified.intersect(t.lineRangeMapping.modified))):void 0,e)})))}this._isDiffUpToDate.set(!1,void 0),n.schedule()}))),this._register((0,c.yC)((async(t,i)=>{this._options.hideUnchangedRegionsMinimumLineCount.read(t),this._options.hideUnchangedRegionsContextLineCount.read(t),n.cancel(),s.read(t);const o=this._diffProvider.read(t);o.onChangeSignal.read(t),(0,ne.b)(re.D8,t),(0,ne.b)(ce.NC,t),this._isDiffUpToDate.set(!1,void 0);let a=[];i.add(e.original.onDidChangeContent((e=>{const t=oe.c.fromModelContentChanges(e.changes);a=(0,ae.M)(a,t)})));let l=[];i.add(e.modified.onDidChangeContent((e=>{const t=oe.c.fromModelContentChanges(e.changes);l=(0,ae.M)(l,t)})));let h=await o.diffProvider.computeDiff(e.original,e.modified,{ignoreTrimWhitespace:this._options.ignoreTrimWhitespace.read(t),maxComputationTimeMs:this._options.maxComputationTimeMs.read(t),computeMoves:this._options.showMoves.read(t)},this._cancellationTokenSource.token);var d,u,g;this._cancellationTokenSource.token.isCancellationRequested||(e.original.isDisposed()||e.modified.isDisposed()||(d=h,u=e.original,g=e.modified,h={changes:d.changes.map((e=>new x.wm(e.original,e.modified,e.innerChanges?e.innerChanges.map((e=>function(e,t,i){let s=e.originalRange,n=e.modifiedRange;return 1===s.startColumn&&1===n.startColumn&&(1!==s.endColumn||1!==n.endColumn)&&s.endColumn===t.getLineMaxColumn(s.endLineNumber)&&n.endColumn===i.getLineMaxColumn(n.endLineNumber)&&s.endLineNumber<t.getLineCount()&&n.endLineNumber<i.getLineCount()&&(s=s.setEndPosition(s.endLineNumber+1,1),n=n.setEndPosition(n.endLineNumber+1,1)),new x.q6(s,n)}(e,u,g))):void 0))),moves:d.moves,identical:d.identical,quitEarly:d.quitEarly},h=fe(h,a,e.original,e.modified)??h,h=_e(h,l,e.original,e.modified)??h,(0,c.Rn)((e=>{r(h,e),this._lastDiff=h;const t=ge.fromDiffResult(h);this._diff.set(t,e),this._isDiffUpToDate.set(!0,e);const i=this.movedTextToCompare.get();this.movedTextToCompare.set(i?this._lastDiff.moves.find((e=>e.lineRangeMapping.modified.intersect(i.lineRangeMapping.modified))):void 0,e)}))))})))}ensureModifiedLineIsVisible(e,t,i){if(0===this.diff.get()?.mappings.length)return;const s=this._unchangedRegions.get()?.regions||[];for(const n of s)if(n.getHiddenModifiedRange(void 0).contains(e))return void n.showModifiedLine(e,t,i)}ensureOriginalLineIsVisible(e,t,i){if(0===this.diff.get()?.mappings.length)return;const s=this._unchangedRegions.get()?.regions||[];for(const n of s)if(n.getHiddenOriginalRange(void 0).contains(e))return void n.showOriginalLine(e,t,i)}async waitForDiff(){await(0,c.oJ)(this.isDiffUpToDate,(e=>e))}serializeState(){const e=this._unchangedRegions.get();return{collapsedRegions:e?.regions.map((e=>({range:e.getHiddenModifiedRange(void 0).serialize()})))}}restoreSerializedState(e){const t=e.collapsedRegions?.map((e=>w.M.deserialize(e.range))),i=this._unchangedRegions.get();i&&t&&(0,c.Rn)((e=>{for(const s of i.regions)for(const i of t)if(s.modifiedUnchangedRange.intersect(i)){s.setHiddenModifiedRange(i,e);break}}))}};ue=he([de(2,se.Hg)],ue);class ge{static fromDiffResult(e){return new ge(e.changes.map((e=>new pe(e))),e.moves||[],e.identical,e.quitEarly)}constructor(e,t,i,s){this.mappings=e,this.movedTexts=t,this.identical=i,this.quitEarly=s}}class pe{constructor(e){this.lineRangeMapping=e}}class me{static fromDiffs(e,t,i,s,n){const r=x.wm.inverse(e,t,i),o=[];for(const a of r){let e=a.original.startLineNumber,r=a.modified.startLineNumber,c=a.original.length;const l=1===e&&1===r,h=e+c===t+1&&r+c===i+1;(l||h)&&c>=n+s?(l&&!h&&(c-=n),h&&!l&&(e+=n,r+=n,c-=n),o.push(new me(e,r,c,0,0))):c>=2*n+s&&(e+=n,r+=n,c-=2*n,o.push(new me(e,r,c,0,0)))}return o}get originalUnchangedRange(){return w.M.ofLength(this.originalLineNumber,this.lineCount)}get modifiedUnchangedRange(){return w.M.ofLength(this.modifiedLineNumber,this.lineCount)}constructor(e,t,i,s,n){this.originalLineNumber=e,this.modifiedLineNumber=t,this.lineCount=i,this._visibleLineCountTop=(0,c.FY)(this,0),this.visibleLineCountTop=this._visibleLineCountTop,this._visibleLineCountBottom=(0,c.FY)(this,0),this.visibleLineCountBottom=this._visibleLineCountBottom,this._shouldHideControls=(0,c.un)(this,(e=>this.visibleLineCountTop.read(e)+this.visibleLineCountBottom.read(e)===this.lineCount&&!this.isDragged.read(e))),this.isDragged=(0,c.FY)(this,void 0);const r=Math.max(Math.min(s,this.lineCount),0),o=Math.max(Math.min(n,this.lineCount-s),0);(0,le.V7)(s===r),(0,le.V7)(n===o),this._visibleLineCountTop.set(r,void 0),this._visibleLineCountBottom.set(o,void 0)}setVisibleRanges(e,t){const i=[],s=new w.S(e.map((e=>e.modified))).subtractFrom(this.modifiedUnchangedRange);let n=this.originalLineNumber,r=this.modifiedLineNumber;const o=this.modifiedLineNumber+this.lineCount;if(0===s.ranges.length)this.showAll(t),i.push(this);else{let e=0;for(const a of s.ranges){const c=e===s.ranges.length-1;e++;const l=(c?o:a.endLineNumberExclusive)-r,h=new me(n,r,l,0,0);h.setHiddenModifiedRange(a,t),i.push(h),n=h.originalUnchangedRange.endLineNumberExclusive,r=h.modifiedUnchangedRange.endLineNumberExclusive}}return i}shouldHideControls(e){return this._shouldHideControls.read(e)}getHiddenOriginalRange(e){return w.M.ofLength(this.originalLineNumber+this._visibleLineCountTop.read(e),this.lineCount-this._visibleLineCountTop.read(e)-this._visibleLineCountBottom.read(e))}getHiddenModifiedRange(e){return w.M.ofLength(this.modifiedLineNumber+this._visibleLineCountTop.read(e),this.lineCount-this._visibleLineCountTop.read(e)-this._visibleLineCountBottom.read(e))}setHiddenModifiedRange(e,t){const i=e.startLineNumber-this.modifiedLineNumber,s=this.modifiedLineNumber+this.lineCount-e.endLineNumberExclusive;this.setState(i,s,t)}getMaxVisibleLineCountTop(){return this.lineCount-this._visibleLineCountBottom.get()}getMaxVisibleLineCountBottom(){return this.lineCount-this._visibleLineCountTop.get()}showMoreAbove(e=10,t){const i=this.getMaxVisibleLineCountTop();this._visibleLineCountTop.set(Math.min(this._visibleLineCountTop.get()+e,i),t)}showMoreBelow(e=10,t){const i=this.lineCount-this._visibleLineCountTop.get();this._visibleLineCountBottom.set(Math.min(this._visibleLineCountBottom.get()+e,i),t)}showAll(e){this._visibleLineCountBottom.set(this.lineCount-this._visibleLineCountTop.get(),e)}showModifiedLine(e,t,i){const s=e+1-(this.modifiedLineNumber+this._visibleLineCountTop.get()),n=this.modifiedLineNumber-this._visibleLineCountBottom.get()+this.lineCount-e;0===t&&s<n||1===t?this._visibleLineCountTop.set(this._visibleLineCountTop.get()+s,i):this._visibleLineCountBottom.set(this._visibleLineCountBottom.get()+n,i)}showOriginalLine(e,t,i){const s=e-this.originalLineNumber,n=this.originalLineNumber+this.lineCount-e;0===t&&s<n||1===t?this._visibleLineCountTop.set(Math.min(this._visibleLineCountTop.get()+n-s,this.getMaxVisibleLineCountTop()),i):this._visibleLineCountBottom.set(Math.min(this._visibleLineCountBottom.get()+s-n,this.getMaxVisibleLineCountBottom()),i)}collapseAll(e){this._visibleLineCountTop.set(0,e),this._visibleLineCountBottom.set(0,e)}setState(e,t,i){e=Math.max(Math.min(e,this.lineCount),0),t=Math.max(Math.min(t,this.lineCount-e),0),this._visibleLineCountTop.set(e,i),this._visibleLineCountBottom.set(t,i)}}function fe(e,t,i,s){}function _e(e,t,i,s){}var ve=i(98067);class Ce extends a.jG{get visibility(){return this._visibility}set visibility(e){this._visibility!==e&&(this._visibility=e,this._diffActions.style.visibility=e?"visible":"hidden")}constructor(e,t,i,n,r,o,a,c,l){super(),this._getViewZoneId=e,this._marginDomNode=t,this._modifiedEditor=i,this._diff=n,this._editor=r,this._viewLineCounts=o,this._originalTextModel=a,this._contextMenuService=c,this._clipboardService=l,this._visibility=!1,this._marginDomNode.style.zIndex="10",this._diffActions=document.createElement("div"),this._diffActions.className=E.L.asClassName(C.W.lightBulb)+" lightbulb-glyph",this._diffActions.style.position="absolute";const h=this._modifiedEditor.getOption(67);this._diffActions.style.right="0px",this._diffActions.style.visibility="hidden",this._diffActions.style.height=`${h}px`,this._diffActions.style.lineHeight=`${h}px`,this._marginDomNode.appendChild(this._diffActions);let d=0;const u=i.getOption(128)&&!ve.un,g=(e,t)=>{this._contextMenuService.showContextMenu({domForShadowRoot:u?i.getDomNode()??void 0:void 0,getAnchor:()=>({x:e,y:t}),getActions:()=>{const e=[],t=n.modified.isEmpty;e.push(new _.rc("diff.clipboard.copyDeletedContent",t?n.original.length>1?(0,O.kg)("diff.clipboard.copyDeletedLinesContent.label","Copy deleted lines"):(0,O.kg)("diff.clipboard.copyDeletedLinesContent.single.label","Copy deleted line"):n.original.length>1?(0,O.kg)("diff.clipboard.copyChangedLinesContent.label","Copy changed lines"):(0,O.kg)("diff.clipboard.copyChangedLinesContent.single.label","Copy changed line"),void 0,!0,(async()=>{const e=this._originalTextModel.getValueInRange(n.original.toExclusiveRange());await this._clipboardService.writeText(e)}))),n.original.length>1&&e.push(new _.rc("diff.clipboard.copyDeletedLineContent",t?(0,O.kg)("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",n.original.startLineNumber+d):(0,O.kg)("diff.clipboard.copyChangedLineContent.label","Copy changed line ({0})",n.original.startLineNumber+d),void 0,!0,(async()=>{let e=this._originalTextModel.getLineContent(n.original.startLineNumber+d);if(""===e){e=0===this._originalTextModel.getEndOfLineSequence()?"\n":"\r\n"}await this._clipboardService.writeText(e)})));return i.getOption(92)||e.push(new _.rc("diff.inline.revertChange",(0,O.kg)("diff.inline.revertChange.label","Revert this change"),void 0,!0,(async()=>{this._editor.revert(this._diff)}))),e},autoSelectFirstItem:!0})};this._register((0,s.b2)(this._diffActions,"mousedown",(e=>{if(!e.leftButton)return;const{top:t,height:i}=(0,s.BK)(this._diffActions),n=Math.floor(h/3);e.preventDefault(),g(e.posx,t+i+n)}))),this._register(i.onMouseMove((e=>{8!==e.target.type&&5!==e.target.type||e.target.detail.viewZoneId!==this._getViewZoneId()?this.visibility=!1:(d=this._updateLightBulbPosition(this._marginDomNode,e.event.browserEvent.y,h),this.visibility=!0)}))),this._register(i.onMouseDown((e=>{if(e.event.leftButton&&(8===e.target.type||5===e.target.type)){e.target.detail.viewZoneId===this._getViewZoneId()&&(e.event.preventDefault(),d=this._updateLightBulbPosition(this._marginDomNode,e.event.browserEvent.y,h),g(e.event.posx,e.event.posy+h))}})))}_updateLightBulbPosition(e,t,i){const{top:n}=(0,s.BK)(e),r=t-n,o=Math.floor(r/i),a=o*i;if(this._diffActions.style.top=`${a}px`,this._viewLineCounts){let e=0;for(let t=0;t<this._viewLineCounts.length;t++)if(e+=this._viewLineCounts[t],o<e)return t}return o}}var Ee=i(99020),be=i(25521);const Se=(0,p.H)("diffEditorWidget",{createHTML:e=>e});function ye(e,t,i,s){(0,b.M)(s,t.fontInfo);const n=i.length>0,r=new Ee.fe(1e4);let o=0,a=0;const c=[];for(let d=0;d<e.lineTokens.length;d++){const s=d+1,l=e.lineTokens[d],h=e.lineBreakData[d],u=be.d.filter(i,s,1,Number.MAX_SAFE_INTEGER);if(h){let i=0;for(const s of h.breakOffsets){const c=l.sliceAndInflate(i,s,0);o=Math.max(o,Le(a,c,be.d.extractWrapped(u,i,s),n,e.mightContainNonBasicASCII,e.mightContainRTL,t,r)),a++,i=s}c.push(h.breakOffsets.length)}else c.push(1),o=Math.max(o,Le(a,l,u,n,e.mightContainNonBasicASCII,e.mightContainRTL,t,r)),a++}o+=t.scrollBeyondLastColumn;const l=r.build(),h=Se?Se.createHTML(l):l;s.innerHTML=h;return{heightInLines:a,minWidthInPx:o*t.typicalHalfwidthCharacterWidth,viewLineCounts:c}}class we{constructor(e,t,i,s){this.lineTokens=e,this.lineBreakData=t,this.mightContainNonBasicASCII=i,this.mightContainRTL=s}}class Re{static fromEditor(e){const t=e.getOptions(),i=t.get(50),s=t.get(146);return new Re(e.getModel()?.getOptions().tabSize||0,i,t.get(33),i.typicalHalfwidthCharacterWidth,t.get(105),t.get(67),s.decorationsWidth,t.get(118),t.get(100),t.get(95),t.get(51))}constructor(e,t,i,s,n,r,o,a,c,l,h){this.tabSize=e,this.fontInfo=t,this.disableMonospaceOptimizations=i,this.typicalHalfwidthCharacterWidth=s,this.scrollBeyondLastColumn=n,this.lineHeight=r,this.lineDecorationsWidth=o,this.stopRenderingLineAfter=a,this.renderWhitespace=c,this.renderControlCharacters=l,this.fontLigatures=h}}function Le(e,t,i,s,n,r,o,a){a.appendString('<div class="view-line'),s||a.appendString(" char-delete"),a.appendString('" style="top:'),a.appendString(String(e*o.lineHeight)),a.appendString('px;width:1000000px;">');const c=t.getLineContent(),l=I.qL.isBasicASCII(c,n),h=I.qL.containsRTL(c,l,r),d=(0,N.UW)(new N.zL(o.fontInfo.isMonospace&&!o.disableMonospaceOptimizations,o.fontInfo.canUseHalfwidthRightwardsArrow,c,!1,l,h,0,t,i,o.tabSize,0,o.fontInfo.spaceWidth,o.fontInfo.middotWidth,o.fontInfo.wsmiddotWidth,o.stopRenderingLineAfter,o.renderWhitespace,o.renderControlCharacters,o.fontLigatures!==y.Bc.OFF,null),a);return a.appendString("</div>"),d.characterMapping.getHorizontalOffset(d.characterMapping.length)}var Te=i(54770),xe=i(47508),ke=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Ae=function(e,t){return function(i,s){t(i,s,e)}};let Ne=class extends a.jG{constructor(e,t,i,n,r,o,l,h,d,u){super(),this._targetWindow=e,this._editors=t,this._diffModel=i,this._options=n,this._diffEditorWidget=r,this._canIgnoreViewZoneUpdateEvent=o,this._origViewZonesToIgnore=l,this._modViewZonesToIgnore=h,this._clipboardService=d,this._contextMenuService=u,this._originalTopPadding=(0,c.FY)(this,0),this._originalScrollOffset=(0,c.FY)(this,0),this._originalScrollOffsetAnimated=(0,S.Nu)(this._targetWindow,this._originalScrollOffset,this._store),this._modifiedTopPadding=(0,c.FY)(this,0),this._modifiedScrollOffset=(0,c.FY)(this,0),this._modifiedScrollOffsetAnimated=(0,S.Nu)(this._targetWindow,this._modifiedScrollOffset,this._store);const g=(0,c.FY)("invalidateAlignmentsState",0),p=this._register(new J.uC((()=>{g.set(g.get()+1,void 0)}),0));this._register(this._editors.original.onDidChangeViewZones((e=>{this._canIgnoreViewZoneUpdateEvent()||p.schedule()}))),this._register(this._editors.modified.onDidChangeViewZones((e=>{this._canIgnoreViewZoneUpdateEvent()||p.schedule()}))),this._register(this._editors.original.onDidChangeConfiguration((e=>{(e.hasChanged(147)||e.hasChanged(67))&&p.schedule()}))),this._register(this._editors.modified.onDidChangeConfiguration((e=>{(e.hasChanged(147)||e.hasChanged(67))&&p.schedule()})));const m=this._diffModel.map((e=>e?(0,c.y0)(this,e.model.original.onDidChangeTokens,(()=>2===e.model.original.tokenization.backgroundTokenizationState)):void 0)).map(((e,t)=>e?.read(t))),f=(0,c.un)((e=>{const t=this._diffModel.read(e),i=t?.diff.read(e);if(!t||!i)return null;g.read(e);const s=this._options.renderSideBySide.read(e);return Ie(this._editors.original,this._editors.modified,i.mappings,this._origViewZonesToIgnore,this._modViewZonesToIgnore,s)})),_=(0,c.un)((e=>{const t=this._diffModel.read(e)?.movedTextToCompare.read(e);if(!t)return null;g.read(e);const i=t.changes.map((e=>new pe(e)));return Ie(this._editors.original,this._editors.modified,i,this._origViewZonesToIgnore,this._modViewZonesToIgnore,!0)}));function v(){const e=document.createElement("div");return e.className="diagonal-fill",e}const y=this._register(new a.Cm);this.viewZones=(0,c.rm)(this,((e,t)=>{y.clear();const i=f.read(e)||[],n=[],o=[],a=this._modifiedTopPadding.read(e);a>0&&o.push({afterLineNumber:0,domNode:document.createElement("div"),heightInPx:a,showInHiddenAreas:!0,suppressMouseDown:!0});const c=this._originalTopPadding.read(e);c>0&&n.push({afterLineNumber:0,domNode:document.createElement("div"),heightInPx:c,showInHiddenAreas:!0,suppressMouseDown:!0});const l=this._options.renderSideBySide.read(e),h=l?void 0:this._editors.modified._getViewModel()?.createLineBreaksComputer();if(h){const L=this._editors.original.getModel();for(const T of i)if(T.diff)for(let x=T.originalRange.startLineNumber;x<T.originalRange.endLineNumberExclusive;x++){if(x>L.getLineCount())return{orig:n,mod:o};h?.addRequest(L.getLineContent(x),null,null)}}const d=h?.finalize()??[];let u=0;const g=this._editors.modified.getOption(67),p=this._diffModel.read(e)?.movedTextToCompare.read(e),S=this._editors.original.getModel()?.mightContainNonBasicASCII()??!1,w=this._editors.original.getModel()?.mightContainRTL()??!1,R=Re.fromEditor(this._editors.modified);for(const k of i)if(!k.diff||l||this._options.useTrueInlineDiffRendering.read(e)&&De(k.diff)){const A=k.modifiedHeightInPx-k.originalHeightInPx;if(A>0){if(p?.lineRangeMapping.original.delta(-1).deltaLength(2).contains(k.originalRange.endLineNumberExclusive-1))continue;n.push({afterLineNumber:k.originalRange.endLineNumberExclusive-1,domNode:v(),heightInPx:A,showInHiddenAreas:!0,suppressMouseDown:!0})}else{if(p?.lineRangeMapping.modified.delta(-1).deltaLength(2).contains(k.modifiedRange.endLineNumberExclusive-1))continue;function N(){const e=document.createElement("div");return e.className="arrow-revert-change "+E.L.asClassName(C.W.arrowRight),t.add((0,s.ko)(e,"mousedown",(e=>e.stopPropagation()))),t.add((0,s.ko)(e,"click",(e=>{e.stopPropagation(),r.revert(k.diff)}))),(0,s.$)("div",{},e)}let O;k.diff&&k.diff.modified.isEmpty&&this._options.shouldRenderOldRevertArrows.read(e)&&(O=N()),o.push({afterLineNumber:k.modifiedRange.endLineNumberExclusive-1,domNode:v(),heightInPx:-A,marginDomNode:O,showInHiddenAreas:!0,suppressMouseDown:!0})}}else{if(!k.originalRange.isEmpty){m.read(e);const M=document.createElement("div");M.classList.add("view-lines","line-delete","monaco-mouse-cursor-text");const P=this._editors.original.getModel();if(k.originalRange.endLineNumberExclusive-1>P.getLineCount())return{orig:n,mod:o};const F=new we(k.originalRange.mapToLineArray((e=>P.tokenization.getLineTokens(e))),k.originalRange.mapToLineArray((e=>d[u++])),S,w),U=[];for(const V of k.diff.innerChanges||[])U.push(new I.kI(V.originalRange.delta(-(k.diff.original.startLineNumber-1)),te.Zb.className,0));const H=ye(F,R,U,M),B=document.createElement("div");if(B.className="inline-deleted-margin-view-zone",(0,b.M)(B,R.fontInfo),this._options.renderIndicators.read(e))for(let z=0;z<H.heightInLines;z++){const G=document.createElement("div");G.className=`delete-sign ${E.L.asClassName(te.dv)}`,G.setAttribute("style",`position:absolute;top:${z*g}px;width:${R.lineDecorationsWidth}px;height:${g}px;right:0;`),B.appendChild(G)}let W;y.add(new Ce((()=>(0,ee.eU)(W)),B,this._editors.modified,k.diff,this._diffEditorWidget,H.viewLineCounts,this._editors.original.getModel(),this._contextMenuService,this._clipboardService));for(let j=0;j<H.viewLineCounts.length;j++){const K=H.viewLineCounts[j];K>1&&n.push({afterLineNumber:k.originalRange.startLineNumber+j,domNode:v(),heightInPx:(K-1)*g,showInHiddenAreas:!0,suppressMouseDown:!0})}o.push({afterLineNumber:k.modifiedRange.startLineNumber-1,domNode:M,heightInPx:H.heightInLines*g,minWidthInPx:H.minWidthInPx,marginDomNode:B,setZoneId(e){W=e},showInHiddenAreas:!0,suppressMouseDown:!0})}const D=document.createElement("div");D.className="gutter-delete",n.push({afterLineNumber:k.originalRange.endLineNumberExclusive-1,domNode:v(),heightInPx:k.modifiedHeightInPx,marginDomNode:D,showInHiddenAreas:!0,suppressMouseDown:!0})}for(const Y of _.read(e)??[]){if(!p?.lineRangeMapping.original.intersect(Y.originalRange)||!p?.lineRangeMapping.modified.intersect(Y.modifiedRange))continue;const q=Y.modifiedHeightInPx-Y.originalHeightInPx;q>0?n.push({afterLineNumber:Y.originalRange.endLineNumberExclusive-1,domNode:v(),heightInPx:q,showInHiddenAreas:!0,suppressMouseDown:!0}):o.push({afterLineNumber:Y.modifiedRange.endLineNumberExclusive-1,domNode:v(),heightInPx:-q,showInHiddenAreas:!0,suppressMouseDown:!0})}return{orig:n,mod:o}}));let w=!1;this._register(this._editors.original.onDidScrollChange((e=>{e.scrollLeftChanged&&!w&&(w=!0,this._editors.modified.setScrollLeft(e.scrollLeft),w=!1)}))),this._register(this._editors.modified.onDidScrollChange((e=>{e.scrollLeftChanged&&!w&&(w=!0,this._editors.original.setScrollLeft(e.scrollLeft),w=!1)}))),this._originalScrollTop=(0,c.y0)(this._editors.original.onDidScrollChange,(()=>this._editors.original.getScrollTop())),this._modifiedScrollTop=(0,c.y0)(this._editors.modified.onDidScrollChange,(()=>this._editors.modified.getScrollTop())),this._register((0,c.fm)((e=>{const t=this._originalScrollTop.read(e)-(this._originalScrollOffsetAnimated.get()-this._modifiedScrollOffsetAnimated.read(e))-(this._originalTopPadding.get()-this._modifiedTopPadding.read(e));t!==this._editors.modified.getScrollTop()&&this._editors.modified.setScrollTop(t,1)}))),this._register((0,c.fm)((e=>{const t=this._modifiedScrollTop.read(e)-(this._modifiedScrollOffsetAnimated.get()-this._originalScrollOffsetAnimated.read(e))-(this._modifiedTopPadding.get()-this._originalTopPadding.read(e));t!==this._editors.original.getScrollTop()&&this._editors.original.setScrollTop(t,1)}))),this._register((0,c.fm)((e=>{const t=this._diffModel.read(e)?.movedTextToCompare.read(e);let i=0;if(t){const e=this._editors.original.getTopForLineNumber(t.lineRangeMapping.original.startLineNumber,!0)-this._originalTopPadding.get();i=this._editors.modified.getTopForLineNumber(t.lineRangeMapping.modified.startLineNumber,!0)-this._modifiedTopPadding.get()-e}i>0?(this._modifiedTopPadding.set(0,void 0),this._originalTopPadding.set(i,void 0)):i<0?(this._modifiedTopPadding.set(-i,void 0),this._originalTopPadding.set(0,void 0)):setTimeout((()=>{this._modifiedTopPadding.set(0,void 0),this._originalTopPadding.set(0,void 0)}),400),this._editors.modified.hasTextFocus()?this._originalScrollOffset.set(this._modifiedScrollOffset.get()-i,void 0,!0):this._modifiedScrollOffset.set(this._originalScrollOffset.get()+i,void 0,!0)})))}};function Ie(e,t,i,s,n,r){const o=new v.j3(Oe(e,s)),a=new v.j3(Oe(t,n)),c=e.getOption(67),l=t.getOption(67),h=[];let d=0,u=0;function g(e,t){for(;;){let i=o.peek(),s=a.peek();if(i&&i.lineNumber>=e&&(i=void 0),s&&s.lineNumber>=t&&(s=void 0),!i&&!s)break;const n=i?i.lineNumber-d:Number.MAX_VALUE,r=s?s.lineNumber-u:Number.MAX_VALUE;n<r?(o.dequeue(),s={lineNumber:i.lineNumber-d+u,heightInPx:0}):n>r?(a.dequeue(),i={lineNumber:s.lineNumber-u+d,heightInPx:0}):(o.dequeue(),a.dequeue()),h.push({originalRange:w.M.ofLength(i.lineNumber,1),modifiedRange:w.M.ofLength(s.lineNumber,1),originalHeightInPx:c+i.heightInPx,modifiedHeightInPx:l+s.heightInPx,diff:void 0})}}for(const p of i){const m=p.lineRangeMapping;g(m.original.startLineNumber,m.modified.startLineNumber);let f=!0,_=m.modified.startLineNumber,C=m.original.startLineNumber;function E(e,t,i=!1){if(e<C||t<_)return;if(f)f=!1;else if(!i&&(e===C||t===_))return;const s=new w.M(C,e),n=new w.M(_,t);if(s.isEmpty&&n.isEmpty)return;const r=o.takeWhile((t=>t.lineNumber<e))?.reduce(((e,t)=>e+t.heightInPx),0)??0,d=a.takeWhile((e=>e.lineNumber<t))?.reduce(((e,t)=>e+t.heightInPx),0)??0;h.push({originalRange:s,modifiedRange:n,originalHeightInPx:s.length*c+r,modifiedHeightInPx:n.length*l+d,diff:p.lineRangeMapping}),C=e,_=t}if(r)for(const b of m.innerChanges||[]){b.originalRange.startColumn>1&&b.modifiedRange.startColumn>1&&E(b.originalRange.startLineNumber,b.modifiedRange.startLineNumber);const S=e.getModel(),y=b.originalRange.endLineNumber<=S.getLineCount()?S.getLineMaxColumn(b.originalRange.endLineNumber):Number.MAX_SAFE_INTEGER;b.originalRange.endColumn<y&&E(b.originalRange.endLineNumber,b.modifiedRange.endLineNumber)}E(m.original.endLineNumberExclusive,m.modified.endLineNumberExclusive,!0),d=m.original.endLineNumberExclusive,u=m.modified.endLineNumberExclusive}return g(Number.MAX_VALUE,Number.MAX_VALUE),h}function Oe(e,t){const i=[],s=[],n=-1!==e.getOption(147).wrappingColumn,r=e._getViewModel().coordinatesConverter,o=e.getOption(67);if(n)for(let a=1;a<=e.getModel().getLineCount();a++){const e=r.getModelLineViewLineCount(a);e>1&&s.push({lineNumber:a,heightInPx:o*(e-1)})}for(const a of e.getWhitespaces()){if(t.has(a.id))continue;const e=0===a.afterLineNumber?0:r.convertViewPositionToModelPosition(new L.y(a.afterLineNumber,1)).lineNumber;i.push({lineNumber:e,heightInPx:a.height})}return(0,S.Am)(i,s,(e=>e.lineNumber),((e,t)=>({lineNumber:e.lineNumber,heightInPx:e.heightInPx+t.heightInPx})))}function De(e){return!!e.innerChanges&&e.innerChanges.every((e=>Me(e.modifiedRange)&&Me(e.originalRange)||e.originalRange.equalsRange(new T.Q(1,1,1,1))))}function Me(e){return e.startLineNumber===e.endLineNumber}Ne=ke([Ae(8,Te.h),Ae(9,xe.Z)],Ne);class Pe extends a.jG{static{this.movedCodeBlockPadding=4}constructor(e,t,i,s,n){super(),this._rootElement=e,this._diffModel=t,this._originalEditorLayoutInfo=i,this._modifiedEditorLayoutInfo=s,this._editors=n,this._originalScrollTop=(0,c.y0)(this,this._editors.original.onDidScrollChange,(()=>this._editors.original.getScrollTop())),this._modifiedScrollTop=(0,c.y0)(this,this._editors.modified.onDidScrollChange,(()=>this._editors.modified.getScrollTop())),this._viewZonesChanged=(0,c.yQ)("onDidChangeViewZones",this._editors.modified.onDidChangeViewZones),this.width=(0,c.FY)(this,0),this._modifiedViewZonesChangedSignal=(0,c.yQ)("modified.onDidChangeViewZones",this._editors.modified.onDidChangeViewZones),this._originalViewZonesChangedSignal=(0,c.yQ)("original.onDidChangeViewZones",this._editors.original.onDidChangeViewZones),this._state=(0,c.rm)(this,((e,t)=>{this._element.replaceChildren();const i=this._diffModel.read(e),s=i?.diff.read(e)?.movedTexts;if(!s||0===s.length)return void this.width.set(0,void 0);this._viewZonesChanged.read(e);const n=this._originalEditorLayoutInfo.read(e),r=this._modifiedEditorLayoutInfo.read(e);if(!n||!r)return void this.width.set(0,void 0);this._modifiedViewZonesChangedSignal.read(e),this._originalViewZonesChangedSignal.read(e);const o=s.map((t=>{function i(e,t){return(t.getTopForLineNumber(e.startLineNumber,!0)+t.getTopForLineNumber(e.endLineNumberExclusive,!0))/2}const s=i(t.lineRangeMapping.original,this._editors.original),n=this._originalScrollTop.read(e),r=i(t.lineRangeMapping.modified,this._editors.modified),o=s-n,a=r-this._modifiedScrollTop.read(e),c=Math.min(s,r),l=Math.max(s,r);return{range:new R.L(c,l),from:o,to:a,fromWithoutScroll:s,toWithoutScroll:r,move:t}}));o.sort((0,v.nH)((0,v.VE)((e=>e.fromWithoutScroll>e.toWithoutScroll),v.TS),(0,v.VE)((e=>e.fromWithoutScroll>e.toWithoutScroll?e.fromWithoutScroll:-e.toWithoutScroll),v.U9)));const a=Fe.compute(o.map((e=>e.range))),l=n.verticalScrollbarWidth,h=10*(a.getTrackCount()-1)+20,d=l+h+(r.contentLeft-Pe.movedCodeBlockPadding);let u=0;for(const g of o){const e=l+10+10*a.getTrack(u),s=15,n=15,o=d,h=r.glyphMarginWidth+r.lineNumbersWidth,p=18,m=document.createElementNS("http://www.w3.org/2000/svg","rect");m.classList.add("arrow-rectangle"),m.setAttribute("x",""+(o-h)),m.setAttribute("y",""+(g.to-p/2)),m.setAttribute("width",`${h}`),m.setAttribute("height",`${p}`),this._element.appendChild(m);const f=document.createElementNS("http://www.w3.org/2000/svg","g"),_=document.createElementNS("http://www.w3.org/2000/svg","path");_.setAttribute("d",`M 0 ${g.from} L ${e} ${g.from} L ${e} ${g.to} L ${o-n} ${g.to}`),_.setAttribute("fill","none"),f.appendChild(_);const v=document.createElementNS("http://www.w3.org/2000/svg","polygon");v.classList.add("arrow"),t.add((0,c.fm)((e=>{_.classList.toggle("currentMove",g.move===i.activeMovedText.read(e)),v.classList.toggle("currentMove",g.move===i.activeMovedText.read(e))}))),v.setAttribute("points",`${o-n},${g.to-s/2} ${o},${g.to} ${o-n},${g.to+s/2}`),f.appendChild(v),this._element.appendChild(f),u++}this.width.set(h,void 0)})),this._element=document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("class","moved-blocks-lines"),this._rootElement.appendChild(this._element),this._register((0,a.s)((()=>this._element.remove()))),this._register((0,c.fm)((e=>{const t=this._originalEditorLayoutInfo.read(e),i=this._modifiedEditorLayoutInfo.read(e);t&&i&&(this._element.style.left=t.width-t.verticalScrollbarWidth+"px",this._element.style.height=`${t.height}px`,this._element.style.width=`${t.verticalScrollbarWidth+t.contentLeft-Pe.movedCodeBlockPadding+this.width.read(e)}px`)}))),this._register((0,c.OI)(this._state));const r=(0,c.un)((e=>{const t=this._diffModel.read(e),i=t?.diff.read(e);return i?i.movedTexts.map((e=>({move:e,original:new S.D1((0,c.lk)(e.lineRangeMapping.original.startLineNumber-1),18),modified:new S.D1((0,c.lk)(e.lineRangeMapping.modified.startLineNumber-1),18)}))):[]}));this._register((0,S.Vs)(this._editors.original,r.map((e=>e.map((e=>e.original)))))),this._register((0,S.Vs)(this._editors.modified,r.map((e=>e.map((e=>e.modified)))))),this._register((0,c.yC)(((e,t)=>{const i=r.read(e);for(const s of i)t.add(new Ue(this._editors.original,s.original,s.move,"original",this._diffModel.get())),t.add(new Ue(this._editors.modified,s.modified,s.move,"modified",this._diffModel.get()))})));const o=(0,c.yQ)("original.onDidFocusEditorWidget",(e=>this._editors.original.onDidFocusEditorWidget((()=>setTimeout((()=>e(void 0)),0))))),l=(0,c.yQ)("modified.onDidFocusEditorWidget",(e=>this._editors.modified.onDidFocusEditorWidget((()=>setTimeout((()=>e(void 0)),0)))));let h="modified";this._register((0,c.Y)({createEmptyChangeSummary:()=>{},handleChange:(e,t)=>(e.didChange(o)&&(h="original"),e.didChange(l)&&(h="modified"),!0)},(e=>{o.read(e),l.read(e);const t=this._diffModel.read(e);if(!t)return;const i=t.diff.read(e);let s;if(i&&"original"===h){const t=this._editors.originalCursor.read(e);t&&(s=i.movedTexts.find((e=>e.lineRangeMapping.original.contains(t.lineNumber))))}if(i&&"modified"===h){const t=this._editors.modifiedCursor.read(e);t&&(s=i.movedTexts.find((e=>e.lineRangeMapping.modified.contains(t.lineNumber))))}s!==t.movedTextToCompare.get()&&t.movedTextToCompare.set(void 0,void 0),t.setActiveMovedText(s)})))}}class Fe{static compute(e){const t=[],i=[];for(const s of e){let e=t.findIndex((e=>!e.intersectsStrict(s)));if(-1===e){const i=6;t.length>=i?e=(0,n.TM)(t,(0,v.VE)((e=>e.intersectWithRangeLength(s)),v.U9)):(e=t.length,t.push(new R.h))}t[e].addRange(s),i.push(e)}return new Fe(t.length,i)}constructor(e,t){this._trackCount=e,this.trackPerLineIdx=t}getTrack(e){return this.trackPerLineIdx[e]}getTrackCount(){return this._trackCount}}class Ue extends S.uN{constructor(e,t,i,n,r){const o=(0,s.h)("div.diff-hidden-lines-widget");super(e,t,o.root),this._editor=e,this._move=i,this._kind=n,this._diffModel=r,this._nodes=(0,s.h)("div.diff-moved-code-block",{style:{marginRight:"4px"}},[(0,s.h)("div.text-content@textContent"),(0,s.h)("div.action-bar@actionBar")]),o.root.appendChild(this._nodes.root);const a=(0,c.y0)(this._editor.onDidLayoutChange,(()=>this._editor.getLayoutInfo()));let l;this._register((0,S.AV)(this._nodes.root,{paddingRight:a.map((e=>e.verticalScrollbarWidth))})),l=i.changes.length>0?"original"===this._kind?(0,O.kg)("codeMovedToWithChanges","Code moved with changes to line {0}-{1}",this._move.lineRangeMapping.modified.startLineNumber,this._move.lineRangeMapping.modified.endLineNumberExclusive-1):(0,O.kg)("codeMovedFromWithChanges","Code moved with changes from line {0}-{1}",this._move.lineRangeMapping.original.startLineNumber,this._move.lineRangeMapping.original.endLineNumberExclusive-1):"original"===this._kind?(0,O.kg)("codeMovedTo","Code moved to line {0}-{1}",this._move.lineRangeMapping.modified.startLineNumber,this._move.lineRangeMapping.modified.endLineNumberExclusive-1):(0,O.kg)("codeMovedFrom","Code moved from line {0}-{1}",this._move.lineRangeMapping.original.startLineNumber,this._move.lineRangeMapping.original.endLineNumberExclusive-1);const h=this._register(new m.E(this._nodes.actionBar,{highlightToggledItems:!0})),d=new _.rc("",l,"",!1);h.push(d,{icon:!1,label:!0});const u=new _.rc("","Compare",E.L.asClassName(C.W.compareChanges),!0,(()=>{this._editor.focus(),this._diffModel.movedTextToCompare.set(this._diffModel.movedTextToCompare.get()===i?void 0:this._move,void 0)}));this._register((0,c.fm)((e=>{const t=this._diffModel.movedTextToCompare.read(e)===i;u.checked=t}))),h.push(u,{icon:!1,label:!0})}}class He extends a.jG{constructor(e,t,i,s){super(),this._editors=e,this._diffModel=t,this._options=i,this._decorations=(0,c.un)(this,(e=>{const t=this._diffModel.read(e),i=t?.diff.read(e);if(!i)return null;const s=this._diffModel.read(e).movedTextToCompare.read(e),n=this._options.renderIndicators.read(e),r=this._options.showEmptyDecorations.read(e),o=[],a=[];if(!s)for(const l of i.mappings)if(l.lineRangeMapping.original.isEmpty||o.push({range:l.lineRangeMapping.original.toInclusiveRange(),options:n?te.Ob:te.XT}),l.lineRangeMapping.modified.isEmpty||a.push({range:l.lineRangeMapping.modified.toInclusiveRange(),options:n?te.Kl:te.Zw}),l.lineRangeMapping.modified.isEmpty||l.lineRangeMapping.original.isEmpty)l.lineRangeMapping.original.isEmpty||o.push({range:l.lineRangeMapping.original.toInclusiveRange(),options:te.KL}),l.lineRangeMapping.modified.isEmpty||a.push({range:l.lineRangeMapping.modified.toInclusiveRange(),options:te.Ou});else{const i=this._options.useTrueInlineDiffRendering.read(e)&&De(l.lineRangeMapping);for(const e of l.lineRangeMapping.innerChanges||[])if(l.lineRangeMapping.original.contains(e.originalRange.startLineNumber)&&o.push({range:e.originalRange,options:e.originalRange.isEmpty()&&r?te.wp:te.Zb}),l.lineRangeMapping.modified.contains(e.modifiedRange.startLineNumber)&&a.push({range:e.modifiedRange,options:e.modifiedRange.isEmpty()&&r&&!i?te.GM:te.bk}),i){const i=t.model.original.getValueInRange(e.originalRange);a.push({range:e.modifiedRange,options:{description:"deleted-text",before:{content:i,inlineClassName:"inline-deleted-text"},zIndex:1e5,showIfCollapsed:!0}})}}if(s)for(const l of s.changes){const e=l.original.toInclusiveRange();e&&o.push({range:e,options:n?te.Ob:te.XT});const t=l.modified.toInclusiveRange();t&&a.push({range:t,options:n?te.Kl:te.Zw});for(const i of l.innerChanges||[])o.push({range:i.originalRange,options:te.Zb}),a.push({range:i.modifiedRange,options:te.bk})}const c=this._diffModel.read(e).activeMovedText.read(e);for(const l of i.movedTexts)o.push({range:l.lineRangeMapping.original.toInclusiveRange(),options:{description:"moved",blockClassName:"movedOriginal"+(l===c?" currentMove":""),blockPadding:[Pe.movedCodeBlockPadding,0,Pe.movedCodeBlockPadding,Pe.movedCodeBlockPadding]}}),a.push({range:l.lineRangeMapping.modified.toInclusiveRange(),options:{description:"moved",blockClassName:"movedModified"+(l===c?" currentMove":""),blockPadding:[4,0,4,4]}});return{originalDecorations:o,modifiedDecorations:a}})),this._register((0,S.pY)(this._editors.original,this._decorations.map((e=>e?.originalDecorations||[])))),this._register((0,S.pY)(this._editors.modified,this._decorations.map((e=>e?.modifiedDecorations||[]))))}}var Be=i(92403);class We{resetSash(){this._sashRatio.set(void 0,void 0)}constructor(e,t){this._options=e,this.dimensions=t,this.sashLeft=(0,l.dQ)(this,(e=>{const t=this._sashRatio.read(e)??this._options.splitViewDefaultRatio.read(e);return this._computeSashLeft(t,e)}),((e,t)=>{const i=this.dimensions.width.get();this._sashRatio.set(e/i,t)})),this._sashRatio=(0,c.FY)(this,void 0)}_computeSashLeft(e,t){const i=this.dimensions.width.read(t),s=Math.floor(this._options.splitViewDefaultRatio.read(t)*i),n=this._options.enableSplitViewResizing.read(t)?Math.floor(e*i):s,r=100;return i<=200?s:n<r?r:n>i-r?i-r:n}}class Ve extends a.jG{constructor(e,t,i,s,n,r){super(),this._domNode=e,this._dimensions=t,this._enabled=i,this._boundarySashes=s,this.sashLeft=n,this._resetSash=r,this._sash=this._register(new Be.m(this._domNode,{getVerticalSashTop:e=>0,getVerticalSashLeft:e=>this.sashLeft.get(),getVerticalSashHeight:e=>this._dimensions.height.get()},{orientation:0})),this._startSashPosition=void 0,this._register(this._sash.onDidStart((()=>{this._startSashPosition=this.sashLeft.get()}))),this._register(this._sash.onDidChange((e=>{this.sashLeft.set(this._startSashPosition+(e.currentX-e.startX),void 0)}))),this._register(this._sash.onDidEnd((()=>this._sash.layout()))),this._register(this._sash.onDidReset((()=>this._resetSash()))),this._register((0,c.fm)((e=>{const t=this._boundarySashes.read(e);t&&(this._sash.orthogonalEndSash=t.bottom)}))),this._register((0,c.fm)((e=>{const t=this._enabled.read(e);this._sash.state=t?3:0,this.sashLeft.read(e),this._dimensions.height.read(e),this._sash.layout()})))}}class ze extends a.jG{constructor(e,t,i){super(),this._editor=e,this._domNode=t,this.itemProvider=i,this.scrollTop=(0,c.y0)(this,this._editor.onDidScrollChange,(e=>this._editor.getScrollTop())),this.isScrollTopZero=this.scrollTop.map((e=>0===e)),this.modelAttached=(0,c.y0)(this,this._editor.onDidChangeModel,(e=>this._editor.hasModel())),this.editorOnDidChangeViewZones=(0,c.yQ)("onDidChangeViewZones",this._editor.onDidChangeViewZones),this.editorOnDidContentSizeChange=(0,c.yQ)("onDidContentSizeChange",this._editor.onDidContentSizeChange),this.domNodeSizeChanged=(0,c.Yd)("domNodeSizeChanged"),this.views=new Map,this._domNode.className="gutter monaco-editor";const n=this._domNode.appendChild((0,s.h)("div.scroll-decoration",{role:"presentation",ariaHidden:"true",style:{width:"100%"}}).root),r=new ResizeObserver((()=>{(0,c.Rn)((e=>{this.domNodeSizeChanged.trigger(e)}))}));r.observe(this._domNode),this._register((0,a.s)((()=>r.disconnect()))),this._register((0,c.fm)((e=>{n.className=this.isScrollTopZero.read(e)?"":"scroll-decoration"}))),this._register((0,c.fm)((e=>this.render(e))))}dispose(){super.dispose(),(0,s.Ln)(this._domNode)}render(e){if(!this.modelAttached.read(e))return;this.domNodeSizeChanged.read(e),this.editorOnDidChangeViewZones.read(e),this.editorOnDidContentSizeChange.read(e);const t=this.scrollTop.read(e),i=this._editor.getVisibleRanges(),s=new Set(this.views.keys()),n=R.L.ofStartAndLength(0,this._domNode.clientHeight);if(!n.isEmpty)for(const r of i){const i=new w.M(r.startLineNumber,r.endLineNumber+1),o=this.itemProvider.getIntersectingGutterItems(i,e);(0,c.Rn)((e=>{for(const r of o){if(!r.range.intersect(i))continue;s.delete(r.id);let o=this.views.get(r.id);if(o)o.item.set(r,e);else{const e=document.createElement("div");this._domNode.appendChild(e);const t=(0,c.FY)("item",r),i=this.itemProvider.createView(t,e);o=new Ge(t,i,e),this.views.set(r.id,o)}const a=r.range.startLineNumber<=this._editor.getModel().getLineCount()?this._editor.getTopForLineNumber(r.range.startLineNumber,!0)-t:this._editor.getBottomForLineNumber(r.range.startLineNumber-1,!1)-t,l=(1===r.range.endLineNumberExclusive?Math.max(a,this._editor.getTopForLineNumber(r.range.startLineNumber,!1)-t):Math.max(a,this._editor.getBottomForLineNumber(r.range.endLineNumberExclusive-1,!0)-t))-a;o.domNode.style.top=`${a}px`,o.domNode.style.height=`${l}px`,o.gutterItemView.layout(R.L.ofStartAndLength(a,l),n)}}))}for(const r of s){const e=this.views.get(r);e.gutterItemView.dispose(),e.domNode.remove(),this.views.delete(r)}}}class Ge{constructor(e,t,i){this.item=e,this.gutterItemView=t,this.domNode=i}}var je=i(25791),Ke=i(75295),Ye=i(50973);class qe extends Ke.CO{constructor(e){super(),this._textModel=e}getValueOfRange(e){return this._textModel.getValueInRange(e)}get length(){const e=this._textModel.getLineCount(),t=this._textModel.getLineLength(e);return new Ye.W(e-1,t)}}var $e=i(65644),Qe=i(27195),Xe=i(32848),Ze=i(67220),Je=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},et=function(e,t){return function(i,s){t(i,s,e)}};const tt=[];let it=class extends a.jG{constructor(e,t,i,n,r,o,a,h,d){super(),this._diffModel=t,this._editors=i,this._options=n,this._sashLayout=r,this._boundarySashes=o,this._instantiationService=a,this._contextKeyService=h,this._menuService=d,this._menu=this._register(this._menuService.createMenu(Qe.D8.DiffEditorHunkToolbar,this._contextKeyService)),this._actions=(0,c.y0)(this,this._menu.onDidChange,(()=>this._menu.getActions())),this._hasActions=this._actions.map((e=>e.length>0)),this._showSash=(0,c.un)(this,(e=>this._options.renderSideBySide.read(e)&&this._hasActions.read(e))),this.width=(0,c.un)(this,(e=>this._hasActions.read(e)?35:0)),this.elements=(0,s.h)("div.gutter@gutter",{style:{position:"absolute",height:"100%",width:"35px"}},[]),this._currentDiff=(0,c.un)(this,(e=>{const t=this._diffModel.read(e);if(!t)return;const i=t.diff.read(e)?.mappings,s=this._editors.modifiedCursor.read(e);return s?i?.find((e=>e.lineRangeMapping.modified.contains(s.lineNumber))):void 0})),this._selectedDiffs=(0,c.un)(this,(e=>{const t=this._diffModel.read(e),i=t?.diff.read(e);if(!i)return tt;const s=this._editors.modifiedSelections.read(e);if(s.every((e=>e.isEmpty())))return tt;const n=new w.S(s.map((e=>w.M.fromRangeInclusive(e)))),r=i.mappings.filter((e=>e.lineRangeMapping.innerChanges&&n.intersects(e.lineRangeMapping.modified))).map((e=>({mapping:e,rangeMappings:e.lineRangeMapping.innerChanges.filter((e=>s.some((t=>T.Q.areIntersecting(e.modifiedRange,t)))))})));return 0===r.length||r.every((e=>0===e.rangeMappings.length))?tt:r})),this._register((0,S.$y)(e,this.elements.root)),this._register((0,s.ko)(this.elements.root,"click",(()=>{this._editors.modified.focus()}))),this._register((0,S.AV)(this.elements.root,{display:this._hasActions.map((e=>e?"block":"none"))})),(0,l.a0)(this,(t=>this._showSash.read(t)?new Ve(e,this._sashLayout.dimensions,this._options.enableSplitViewResizing,this._boundarySashes,(0,l.dQ)(this,(e=>this._sashLayout.sashLeft.read(e)-35),((e,t)=>this._sashLayout.sashLeft.set(e+35,t))),(()=>this._sashLayout.resetSash())):void 0)).recomputeInitiallyAndOnChange(this._store),this._register(new ze(this._editors.modified,this.elements.root,{getIntersectingGutterItems:(e,t)=>{const i=this._diffModel.read(t);if(!i)return[];const s=i.diff.read(t);if(!s)return[];const n=this._selectedDiffs.read(t);if(n.length>0){const e=x.wm.fromRangeMappings(n.flatMap((e=>e.rangeMappings)));return[new st(e,!0,Qe.D8.DiffEditorSelectionToolbar,void 0,i.model.original.uri,i.model.modified.uri)]}const r=this._currentDiff.read(t);return s.mappings.map((e=>new st(e.lineRangeMapping.withInnerChangesFromLineRanges(),e.lineRangeMapping===r?.lineRangeMapping,Qe.D8.DiffEditorHunkToolbar,void 0,i.model.original.uri,i.model.modified.uri)))},createView:(e,t)=>this._instantiationService.createInstance(nt,e,t,this)})),this._register((0,s.ko)(this.elements.gutter,s.Bx.MOUSE_WHEEL,(e=>{this._editors.modified.getOption(104).handleMouseWheel&&this._editors.modified.delegateScrollFromMouseWheelEvent(e)}),{passive:!1}))}computeStagedValue(e){const t=e.innerChanges??[],i=new qe(this._editors.modifiedModel.get()),s=new qe(this._editors.original.getModel()),n=new Ke.mF(t.map((e=>e.toTextEdit(i))));return n.apply(s)}layout(e){this.elements.gutter.style.left=e+"px"}};it=Je([et(6,M._Y),et(7,Xe.fN),et(8,Qe.ez)],it);class st{constructor(e,t,i,s,n,r){this.mapping=e,this.showAlways=t,this.menuId=i,this.rangeOverride=s,this.originalUri=n,this.modifiedUri=r}get id(){return this.mapping.modified.toString()}get range(){return this.rangeOverride??this.mapping.modified}}let nt=class extends a.jG{constructor(e,t,i,n){super(),this._item=e,this._elements=(0,s.h)("div.gutterItem",{style:{height:"20px",width:"34px"}},[(0,s.h)("div.background@background",{},[]),(0,s.h)("div.buttons@buttons",{},[])]),this._showAlways=this._item.map(this,(e=>e.showAlways)),this._menuId=this._item.map(this,(e=>e.menuId)),this._isSmall=(0,c.FY)(this,!1),this._lastItemRange=void 0,this._lastViewRange=void 0;const r=this._register(n.createInstance(Ze.fO,"element",!0,{position:{hoverPosition:1}}));this._register((0,S.rX)(t,this._elements.root)),this._register((0,c.fm)((e=>{const t=this._showAlways.read(e);this._elements.root.classList.toggle("noTransition",!0),this._elements.root.classList.toggle("showAlways",t),setTimeout((()=>{this._elements.root.classList.toggle("noTransition",!1)}),0)}))),this._register((0,c.yC)(((e,t)=>{this._elements.buttons.replaceChildren();const s=t.add(n.createInstance($e.m,this._elements.buttons,this._menuId.read(e),{orientation:1,hoverDelegate:r,toolbarOptions:{primaryGroup:e=>e.startsWith("primary")},overflowBehavior:{maxItems:this._isSmall.read(e)?1:3},hiddenItemStrategy:0,actionRunner:new je.I((()=>{const e=this._item.get(),t=e.mapping;return{mapping:t,originalWithModifiedChanges:i.computeStagedValue(t),originalUri:e.originalUri,modifiedUri:e.modifiedUri}})),menuOptions:{shouldForwardArgs:!0}}));t.add(s.onDidChangeMenuItems((()=>{this._lastItemRange&&this.layout(this._lastItemRange,this._lastViewRange)})))})))}layout(e,t){this._lastItemRange=e,this._lastViewRange=t;let i=this._elements.buttons.clientHeight;this._isSmall.set(1===this._item.get().mapping.original.startLineNumber&&e.length<30,void 0),i=this._elements.buttons.clientHeight;const s=e.length/2-i/2,n=i;let r=e.start+s;const o=R.L.tryCreate(n,t.endExclusive-n-i),a=R.L.tryCreate(e.start+n,e.endExclusive-i-n);a&&o&&a.start<a.endExclusive&&(r=o.clip(r),r=a.clip(r)),this._elements.buttons.style.top=r-e.start+"px"}};nt=Je([et(3,M._Y)],nt);var rt,ot=i(34309),at=i(55275),ct=i(74850),lt=i(19531),ht=i(66261),dt=i(47612),ut=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},gt=function(e,t){return function(i,s){t(i,s,e)}};let pt=class extends a.jG{static{rt=this}static{this.ONE_OVERVIEW_WIDTH=15}static{this.ENTIRE_DIFF_OVERVIEW_WIDTH=2*this.ONE_OVERVIEW_WIDTH}constructor(e,t,i,n,r,o,a){super(),this._editors=e,this._rootElement=t,this._diffModel=i,this._rootWidth=n,this._rootHeight=r,this._modifiedEditorLayoutInfo=o,this._themeService=a,this.width=rt.ENTIRE_DIFF_OVERVIEW_WIDTH;const l=(0,c.y0)(this._themeService.onDidColorThemeChange,(()=>this._themeService.getColorTheme())),h=(0,c.un)((e=>{const t=l.read(e);return{insertColor:t.getColor(ht.ld8)||(t.getColor(ht.Gj6)||ht.EY1).transparent(2),removeColor:t.getColor(ht.$BZ)||(t.getColor(ht.GNm)||ht.ZEf).transparent(2)}})),d=(0,at.Z)(document.createElement("div"));d.setClassName("diffViewport"),d.setPosition("absolute");const u=(0,s.h)("div.diffOverview",{style:{position:"absolute",top:"0px",width:rt.ENTIRE_DIFF_OVERVIEW_WIDTH+"px"}}).root;this._register((0,S.rX)(u,d.domNode)),this._register((0,s.b2)(u,s.Bx.POINTER_DOWN,(e=>{this._editors.modified.delegateVerticalScrollbarPointerDown(e)}))),this._register((0,s.ko)(u,s.Bx.MOUSE_WHEEL,(e=>{this._editors.modified.delegateScrollFromMouseWheelEvent(e)}),{passive:!1})),this._register((0,S.rX)(this._rootElement,u)),this._register((0,c.yC)(((e,t)=>{const i=this._diffModel.read(e),s=this._editors.original.createOverviewRuler("original diffOverviewRuler");s&&(t.add(s),t.add((0,S.rX)(u,s.getDomNode())));const n=this._editors.modified.createOverviewRuler("modified diffOverviewRuler");if(n&&(t.add(n),t.add((0,S.rX)(u,n.getDomNode()))),!s||!n)return;const r=(0,c.yQ)("viewZoneChanged",this._editors.original.onDidChangeViewZones),o=(0,c.yQ)("viewZoneChanged",this._editors.modified.onDidChangeViewZones),a=(0,c.yQ)("hiddenRangesChanged",this._editors.original.onDidChangeHiddenAreas),l=(0,c.yQ)("hiddenRangesChanged",this._editors.modified.onDidChangeHiddenAreas);t.add((0,c.fm)((e=>{r.read(e),o.read(e),a.read(e),l.read(e);const t=h.read(e),c=i?.diff.read(e)?.mappings;function d(e,t,i){const s=i._getViewModel();return s?e.filter((e=>e.length>0)).map((e=>{const i=s.coordinatesConverter.convertModelPositionToViewPosition(new L.y(e.startLineNumber,1)),n=s.coordinatesConverter.convertModelPositionToViewPosition(new L.y(e.endLineNumberExclusive,1)),r=n.lineNumber-i.lineNumber;return new lt.iE(i.lineNumber,n.lineNumber,r,t.toString())})):[]}const u=d((c||[]).map((e=>e.lineRangeMapping.original)),t.removeColor,this._editors.original),g=d((c||[]).map((e=>e.lineRangeMapping.modified)),t.insertColor,this._editors.modified);s?.setZones(u),n?.setZones(g)}))),t.add((0,c.fm)((e=>{const t=this._rootHeight.read(e),i=this._rootWidth.read(e),r=this._modifiedEditorLayoutInfo.read(e);if(r){const i=rt.ENTIRE_DIFF_OVERVIEW_WIDTH-2*rt.ONE_OVERVIEW_WIDTH;s.setLayout({top:0,height:t,right:i+rt.ONE_OVERVIEW_WIDTH,width:rt.ONE_OVERVIEW_WIDTH}),n.setLayout({top:0,height:t,right:0,width:rt.ONE_OVERVIEW_WIDTH});const o=this._editors.modifiedScrollTop.read(e),a=this._editors.modifiedScrollHeight.read(e),c=this._editors.modified.getOption(104),l=new ct.m(c.verticalHasArrows?c.arrowSize:0,c.verticalScrollbarSize,0,r.height,a,o);d.setTop(l.getSliderPosition()),d.setHeight(l.getSliderSize())}else d.setTop(0),d.setHeight(0);u.style.height=t+"px",u.style.left=i-rt.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",d.setWidth(rt.ENTIRE_DIFF_OVERVIEW_WIDTH)})))})))}};pt=rt=ut([gt(6,dt.Gy)],pt);var mt=i(20370),ft=i(16223);const _t=[];class vt extends a.jG{constructor(e,t,i,s){super(),this._editors=e,this._diffModel=t,this._options=i,this._widget=s,this._selectedDiffs=(0,c.un)(this,(e=>{const t=this._diffModel.read(e),i=t?.diff.read(e);if(!i)return _t;const s=this._editors.modifiedSelections.read(e);if(s.every((e=>e.isEmpty())))return _t;const n=new w.S(s.map((e=>w.M.fromRangeInclusive(e)))),r=i.mappings.filter((e=>e.lineRangeMapping.innerChanges&&n.intersects(e.lineRangeMapping.modified))).map((e=>({mapping:e,rangeMappings:e.lineRangeMapping.innerChanges.filter((e=>s.some((t=>T.Q.areIntersecting(e.modifiedRange,t)))))})));return 0===r.length||r.every((e=>0===e.rangeMappings.length))?_t:r})),this._register((0,c.yC)(((e,t)=>{if(!this._options.shouldRenderOldRevertArrows.read(e))return;const i=this._diffModel.read(e),s=i?.diff.read(e);if(!i||!s)return;if(i.movedTextToCompare.read(e))return;const n=[],r=this._selectedDiffs.read(e),o=new Set(r.map((e=>e.mapping)));if(r.length>0){const i=this._editors.modifiedSelections.read(e),s=t.add(new Ct(i[i.length-1].positionLineNumber,this._widget,r.flatMap((e=>e.rangeMappings)),!0));this._editors.modified.addGlyphMarginWidget(s),n.push(s)}for(const a of s.mappings)if(!o.has(a)&&!a.lineRangeMapping.modified.isEmpty&&a.lineRangeMapping.innerChanges){const e=t.add(new Ct(a.lineRangeMapping.modified.startLineNumber,this._widget,a.lineRangeMapping,!1));this._editors.modified.addGlyphMarginWidget(e),n.push(e)}t.add((0,a.s)((()=>{for(const e of n)this._editors.modified.removeGlyphMarginWidget(e)})))})))}}class Ct extends a.jG{static{this.counter=0}getId(){return this._id}constructor(e,t,i,n){super(),this._lineNumber=e,this._widget=t,this._diffs=i,this._revertSelection=n,this._id="revertButton"+Ct.counter++,this._domNode=(0,s.h)("div.revertButton",{title:this._revertSelection?(0,O.kg)("revertSelectedChanges","Revert Selected Changes"):(0,O.kg)("revertChange","Revert Change")},[(0,mt.s)(C.W.arrowRight)]).root,this._register((0,s.ko)(this._domNode,s.Bx.MOUSE_DOWN,(e=>{2!==e.button&&(e.stopPropagation(),e.preventDefault())}))),this._register((0,s.ko)(this._domNode,s.Bx.MOUSE_UP,(e=>{e.stopPropagation(),e.preventDefault()}))),this._register((0,s.ko)(this._domNode,s.Bx.CLICK,(e=>{this._diffs instanceof x.WL?this._widget.revert(this._diffs):this._widget.revertRangeMappings(this._diffs),e.stopPropagation(),e.preventDefault()})))}getDomNode(){return this._domNode}getPosition(){return{lane:ft.ZS.Right,range:{startColumn:1,startLineNumber:this._lineNumber,endColumn:1,endLineNumber:this._lineNumber},zIndex:10001}}}var Et=i(71319),bt=i(23452),St=i(60002),yt=i(58345),wt=i(73823),Rt=i(38844),Lt=i(98031),Tt=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},xt=function(e,t){return function(i,s){t(i,s,e)}};let kt=class extends a.jG{get onDidContentSizeChange(){return this._onDidContentSizeChange.event}constructor(e,t,i,s,n,r,a){super(),this.originalEditorElement=e,this.modifiedEditorElement=t,this._options=i,this._argCodeEditorWidgetOptions=s,this._createInnerEditor=n,this._instantiationService=r,this._keybindingService=a,this.original=this._register(this._createLeftHandSideEditor(this._options.editorOptions.get(),this._argCodeEditorWidgetOptions.originalEditor||{})),this.modified=this._register(this._createRightHandSideEditor(this._options.editorOptions.get(),this._argCodeEditorWidgetOptions.modifiedEditor||{})),this._onDidContentSizeChange=this._register(new o.vl),this.modifiedScrollTop=(0,c.y0)(this,this.modified.onDidScrollChange,(()=>this.modified.getScrollTop())),this.modifiedScrollHeight=(0,c.y0)(this,this.modified.onDidScrollChange,(()=>this.modified.getScrollHeight())),this.modifiedObs=(0,Rt.Ud)(this.modified),this.originalObs=(0,Rt.Ud)(this.original),this.modifiedModel=this.modifiedObs.model,this.modifiedSelections=(0,c.y0)(this,this.modified.onDidChangeCursorSelection,(()=>this.modified.getSelections()??[])),this.modifiedCursor=(0,c.C)({owner:this,equalsFn:L.y.equals},(e=>this.modifiedSelections.read(e)[0]?.getPosition()??new L.y(1,1))),this.originalCursor=(0,c.y0)(this,this.original.onDidChangeCursorPosition,(()=>this.original.getPosition()??new L.y(1,1))),this._argCodeEditorWidgetOptions=null,this._register((0,c.Y)({createEmptyChangeSummary:()=>({}),handleChange:(e,t)=>(e.didChange(i.editorOptions)&&Object.assign(t,e.change.changedOptions),!0)},((e,t)=>{i.editorOptions.read(e),this._options.renderSideBySide.read(e),this.modified.updateOptions(this._adjustOptionsForRightHandSide(e,t)),this.original.updateOptions(this._adjustOptionsForLeftHandSide(e,t))})))}_createLeftHandSideEditor(e,t){const i=this._adjustOptionsForLeftHandSide(void 0,e),s=this._constructInnerEditor(this._instantiationService,this.originalEditorElement,i,t);return s.setContextValue("isInDiffLeftEditor",!0),s}_createRightHandSideEditor(e,t){const i=this._adjustOptionsForRightHandSide(void 0,e),s=this._constructInnerEditor(this._instantiationService,this.modifiedEditorElement,i,t);return s.setContextValue("isInDiffRightEditor",!0),s}_constructInnerEditor(e,t,i,s){const n=this._createInnerEditor(e,t,i,s);return this._register(n.onDidContentSizeChange((e=>{const t=this.original.getContentWidth()+this.modified.getContentWidth()+pt.ENTIRE_DIFF_OVERVIEW_WIDTH,i=Math.max(this.modified.getContentHeight(),this.original.getContentHeight());this._onDidContentSizeChange.fire({contentHeight:i,contentWidth:t,contentHeightChanged:e.contentHeightChanged,contentWidthChanged:e.contentWidthChanged})}))),n}_adjustOptionsForLeftHandSide(e,t){const i=this._adjustOptionsForSubEditor(t);return this._options.renderSideBySide.get()?(i.unicodeHighlight=this._options.editorOptions.get().unicodeHighlight||{},i.wordWrapOverride1=this._options.diffWordWrap.get()):(i.wordWrapOverride1="off",i.wordWrapOverride2="off",i.stickyScroll={enabled:!1},i.unicodeHighlight={nonBasicASCII:!1,ambiguousCharacters:!1,invisibleCharacters:!1}),i.glyphMargin=this._options.renderSideBySide.get(),t.originalAriaLabel&&(i.ariaLabel=t.originalAriaLabel),i.ariaLabel=this._updateAriaLabel(i.ariaLabel),i.readOnly=!this._options.originalEditable.get(),i.dropIntoEditor={enabled:!i.readOnly},i.extraEditorClassName="original-in-monaco-diff-editor",i}_adjustOptionsForRightHandSide(e,t){const i=this._adjustOptionsForSubEditor(t);return t.modifiedAriaLabel&&(i.ariaLabel=t.modifiedAriaLabel),i.ariaLabel=this._updateAriaLabel(i.ariaLabel),i.wordWrapOverride1=this._options.diffWordWrap.get(),i.revealHorizontalRightPadding=y.qB.revealHorizontalRightPadding.defaultValue+pt.ENTIRE_DIFF_OVERVIEW_WIDTH,i.scrollbar.verticalHasArrows=!1,i.extraEditorClassName="modified-in-monaco-diff-editor",i}_adjustOptionsForSubEditor(e){const t={...e,dimension:{height:0,width:0}};return t.inDiffEditor=!0,t.automaticLayout=!1,t.scrollbar={...t.scrollbar||{}},t.folding=!1,t.codeLens=this._options.diffCodeLens.get(),t.fixedOverflowWidgets=!0,t.minimap={...t.minimap||{}},t.minimap.enabled=!1,this._options.hideUnchangedRegions.get()?t.stickyScroll={enabled:!1}:t.stickyScroll=this._options.editorOptions.get().stickyScroll,t}_updateAriaLabel(e){e||(e="");const t=(0,O.kg)("diff-aria-navigation-tip"," use {0} to open the accessibility help.",this._keybindingService.lookupKeybinding("editor.action.accessibilityHelp")?.getAriaLabel());return this._options.accessibilityVerbose.get()?e+t:e?e.replaceAll(t,""):""}};kt=Tt([xt(5,M._Y),xt(6,Lt.b)],kt);class At extends a.jG{constructor(){super(...arguments),this._id=++At.idCounter,this._onDidDispose=this._register(new o.vl),this.onDidDispose=this._onDidDispose.event}static{this.idCounter=0}getId(){return this.getEditorType()+":v2:"+this._id}getVisibleColumnFromPosition(e){return this._targetEditor.getVisibleColumnFromPosition(e)}getPosition(){return this._targetEditor.getPosition()}setPosition(e,t="api"){this._targetEditor.setPosition(e,t)}revealLine(e,t=0){this._targetEditor.revealLine(e,t)}revealLineInCenter(e,t=0){this._targetEditor.revealLineInCenter(e,t)}revealLineInCenterIfOutsideViewport(e,t=0){this._targetEditor.revealLineInCenterIfOutsideViewport(e,t)}revealLineNearTop(e,t=0){this._targetEditor.revealLineNearTop(e,t)}revealPosition(e,t=0){this._targetEditor.revealPosition(e,t)}revealPositionInCenter(e,t=0){this._targetEditor.revealPositionInCenter(e,t)}revealPositionInCenterIfOutsideViewport(e,t=0){this._targetEditor.revealPositionInCenterIfOutsideViewport(e,t)}revealPositionNearTop(e,t=0){this._targetEditor.revealPositionNearTop(e,t)}getSelection(){return this._targetEditor.getSelection()}getSelections(){return this._targetEditor.getSelections()}setSelection(e,t="api"){this._targetEditor.setSelection(e,t)}setSelections(e,t="api"){this._targetEditor.setSelections(e,t)}revealLines(e,t,i=0){this._targetEditor.revealLines(e,t,i)}revealLinesInCenter(e,t,i=0){this._targetEditor.revealLinesInCenter(e,t,i)}revealLinesInCenterIfOutsideViewport(e,t,i=0){this._targetEditor.revealLinesInCenterIfOutsideViewport(e,t,i)}revealLinesNearTop(e,t,i=0){this._targetEditor.revealLinesNearTop(e,t,i)}revealRange(e,t=0,i=!1,s=!0){this._targetEditor.revealRange(e,t,i,s)}revealRangeInCenter(e,t=0){this._targetEditor.revealRangeInCenter(e,t)}revealRangeInCenterIfOutsideViewport(e,t=0){this._targetEditor.revealRangeInCenterIfOutsideViewport(e,t)}revealRangeNearTop(e,t=0){this._targetEditor.revealRangeNearTop(e,t)}revealRangeNearTopIfOutsideViewport(e,t=0){this._targetEditor.revealRangeNearTopIfOutsideViewport(e,t)}revealRangeAtTop(e,t=0){this._targetEditor.revealRangeAtTop(e,t)}getSupportedActions(){return this._targetEditor.getSupportedActions()}focus(){this._targetEditor.focus()}trigger(e,t,i){this._targetEditor.trigger(e,t,i)}createDecorationsCollection(e){return this._targetEditor.createDecorationsCollection(e)}changeDecorations(e){return this._targetEditor.changeDecorations(e)}}var Nt=i(13850),It=i(61059),Ot=i(253),Dt=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Mt=function(e,t){return function(i,s){t(i,s,e)}};let Pt=class{get editorOptions(){return this._options}constructor(e,t){this._accessibilityService=t,this._diffEditorWidth=(0,c.FY)(this,0),this._screenReaderMode=(0,c.y0)(this,this._accessibilityService.onDidChangeScreenReaderOptimized,(()=>this._accessibilityService.isScreenReaderOptimized())),this.couldShowInlineViewBecauseOfSize=(0,c.un)(this,(e=>this._options.read(e).renderSideBySide&&this._diffEditorWidth.read(e)<=this._options.read(e).renderSideBySideInlineBreakpoint)),this.renderOverviewRuler=(0,c.un)(this,(e=>this._options.read(e).renderOverviewRuler)),this.renderSideBySide=(0,c.un)(this,(e=>(!this.compactMode.read(e)||!this.shouldRenderInlineViewInSmartMode.read(e))&&(this._options.read(e).renderSideBySide&&!(this._options.read(e).useInlineViewWhenSpaceIsLimited&&this.couldShowInlineViewBecauseOfSize.read(e)&&!this._screenReaderMode.read(e))))),this.readOnly=(0,c.un)(this,(e=>this._options.read(e).readOnly)),this.shouldRenderOldRevertArrows=(0,c.un)(this,(e=>!!this._options.read(e).renderMarginRevertIcon&&(!!this.renderSideBySide.read(e)&&(!this.readOnly.read(e)&&!this.shouldRenderGutterMenu.read(e))))),this.shouldRenderGutterMenu=(0,c.un)(this,(e=>this._options.read(e).renderGutterMenu)),this.renderIndicators=(0,c.un)(this,(e=>this._options.read(e).renderIndicators)),this.enableSplitViewResizing=(0,c.un)(this,(e=>this._options.read(e).enableSplitViewResizing)),this.splitViewDefaultRatio=(0,c.un)(this,(e=>this._options.read(e).splitViewDefaultRatio)),this.ignoreTrimWhitespace=(0,c.un)(this,(e=>this._options.read(e).ignoreTrimWhitespace)),this.maxComputationTimeMs=(0,c.un)(this,(e=>this._options.read(e).maxComputationTime)),this.showMoves=(0,c.un)(this,(e=>this._options.read(e).experimental.showMoves&&this.renderSideBySide.read(e))),this.isInEmbeddedEditor=(0,c.un)(this,(e=>this._options.read(e).isInEmbeddedEditor)),this.diffWordWrap=(0,c.un)(this,(e=>this._options.read(e).diffWordWrap)),this.originalEditable=(0,c.un)(this,(e=>this._options.read(e).originalEditable)),this.diffCodeLens=(0,c.un)(this,(e=>this._options.read(e).diffCodeLens)),this.accessibilityVerbose=(0,c.un)(this,(e=>this._options.read(e).accessibilityVerbose)),this.diffAlgorithm=(0,c.un)(this,(e=>this._options.read(e).diffAlgorithm)),this.showEmptyDecorations=(0,c.un)(this,(e=>this._options.read(e).experimental.showEmptyDecorations)),this.onlyShowAccessibleDiffViewer=(0,c.un)(this,(e=>this._options.read(e).onlyShowAccessibleDiffViewer)),this.compactMode=(0,c.un)(this,(e=>this._options.read(e).compactMode)),this.trueInlineDiffRenderingEnabled=(0,c.un)(this,(e=>this._options.read(e).experimental.useTrueInlineView)),this.useTrueInlineDiffRendering=(0,c.un)(this,(e=>!this.renderSideBySide.read(e)&&this.trueInlineDiffRenderingEnabled.read(e))),this.hideUnchangedRegions=(0,c.un)(this,(e=>this._options.read(e).hideUnchangedRegions.enabled)),this.hideUnchangedRegionsRevealLineCount=(0,c.un)(this,(e=>this._options.read(e).hideUnchangedRegions.revealLineCount)),this.hideUnchangedRegionsContextLineCount=(0,c.un)(this,(e=>this._options.read(e).hideUnchangedRegions.contextLineCount)),this.hideUnchangedRegionsMinimumLineCount=(0,c.un)(this,(e=>this._options.read(e).hideUnchangedRegions.minimumLineCount)),this._model=(0,c.FY)(this,void 0),this.shouldRenderInlineViewInSmartMode=this._model.map(this,(e=>(0,Nt.t)(this,(t=>{const i=e?.diff.read(t);return i?(s=i,n=this.trueInlineDiffRenderingEnabled.read(t),s.mappings.every((e=>0===e.lineRangeMapping.original.length||function(e){return 0===e.modified.length}(e.lineRangeMapping)||n&&De(e.lineRangeMapping)))):void 0;var s,n})))).flatten().map(this,(e=>!!e)),this.inlineViewHideOriginalLineNumbers=this.compactMode;const i={...e,...Ft(e,It.q)};this._options=(0,c.FY)(this,i)}updateOptions(e){const t=Ft(e,this._options.get()),i={...this._options.get(),...e,...t};this._options.set(i,void 0,{changedOptions:e})}setWidth(e){this._diffEditorWidth.set(e,void 0)}setModel(e){this._model.set(e,void 0)}};function Ft(e,t){return{enableSplitViewResizing:(0,y.zM)(e.enableSplitViewResizing,t.enableSplitViewResizing),splitViewDefaultRatio:(0,y.ls)(e.splitViewDefaultRatio,.5,.1,.9),renderSideBySide:(0,y.zM)(e.renderSideBySide,t.renderSideBySide),renderMarginRevertIcon:(0,y.zM)(e.renderMarginRevertIcon,t.renderMarginRevertIcon),maxComputationTime:(0,y.wA)(e.maxComputationTime,t.maxComputationTime,0,1073741824),maxFileSize:(0,y.wA)(e.maxFileSize,t.maxFileSize,0,1073741824),ignoreTrimWhitespace:(0,y.zM)(e.ignoreTrimWhitespace,t.ignoreTrimWhitespace),renderIndicators:(0,y.zM)(e.renderIndicators,t.renderIndicators),originalEditable:(0,y.zM)(e.originalEditable,t.originalEditable),diffCodeLens:(0,y.zM)(e.diffCodeLens,t.diffCodeLens),renderOverviewRuler:(0,y.zM)(e.renderOverviewRuler,t.renderOverviewRuler),diffWordWrap:(0,y.O4)(e.diffWordWrap,t.diffWordWrap,["off","on","inherit"]),diffAlgorithm:(0,y.O4)(e.diffAlgorithm,t.diffAlgorithm,["legacy","advanced"],{smart:"legacy",experimental:"advanced"}),accessibilityVerbose:(0,y.zM)(e.accessibilityVerbose,t.accessibilityVerbose),experimental:{showMoves:(0,y.zM)(e.experimental?.showMoves,t.experimental.showMoves),showEmptyDecorations:(0,y.zM)(e.experimental?.showEmptyDecorations,t.experimental.showEmptyDecorations),useTrueInlineView:(0,y.zM)(e.experimental?.useTrueInlineView,t.experimental.useTrueInlineView)},hideUnchangedRegions:{enabled:(0,y.zM)(e.hideUnchangedRegions?.enabled??e.experimental?.collapseUnchangedRegions,t.hideUnchangedRegions.enabled),contextLineCount:(0,y.wA)(e.hideUnchangedRegions?.contextLineCount,t.hideUnchangedRegions.contextLineCount,0,1073741824),minimumLineCount:(0,y.wA)(e.hideUnchangedRegions?.minimumLineCount,t.hideUnchangedRegions.minimumLineCount,0,1073741824),revealLineCount:(0,y.wA)(e.hideUnchangedRegions?.revealLineCount,t.hideUnchangedRegions.revealLineCount,0,1073741824)},isInEmbeddedEditor:(0,y.zM)(e.isInEmbeddedEditor,t.isInEmbeddedEditor),onlyShowAccessibleDiffViewer:(0,y.zM)(e.onlyShowAccessibleDiffViewer,t.onlyShowAccessibleDiffViewer),renderSideBySideInlineBreakpoint:(0,y.wA)(e.renderSideBySideInlineBreakpoint,t.renderSideBySideInlineBreakpoint,0,1073741824),useInlineViewWhenSpaceIsLimited:(0,y.zM)(e.useInlineViewWhenSpaceIsLimited,t.useInlineViewWhenSpaceIsLimited),renderGutterMenu:(0,y.zM)(e.renderGutterMenu,t.renderGutterMenu),compactMode:(0,y.zM)(e.compactMode,t.compactMode)}}Pt=Dt([Mt(1,Ot.j)],Pt);var Ut=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Ht=function(e,t){return function(i,s){t(i,s,e)}};let Bt=class extends At{get onDidContentSizeChange(){return this._editors.onDidContentSizeChange}constructor(e,t,i,n,h,d,g,p){super(),this._domElement=e,this._parentContextKeyService=n,this._parentInstantiationService=h,this._accessibilitySignalService=g,this._editorProgressService=p,this.elements=(0,s.h)("div.monaco-diff-editor.side-by-side",{style:{position:"relative",height:"100%"}},[(0,s.h)("div.editor.original@original",{style:{position:"absolute",height:"100%"}}),(0,s.h)("div.editor.modified@modified",{style:{position:"absolute",height:"100%"}}),(0,s.h)("div.accessibleDiffViewer@accessibleDiffViewer",{style:{position:"absolute",height:"100%"}})]),this._diffModelSrc=this._register((0,c.X2)(this,void 0)),this._diffModel=(0,c.un)(this,(e=>this._diffModelSrc.read(e)?.object)),this.onDidChangeModel=o.Jh.fromObservableLight(this._diffModel),this._contextKeyService=this._register(this._parentContextKeyService.createScoped(this._domElement)),this._instantiationService=this._register(this._parentInstantiationService.createChild(new yt.a([Xe.fN,this._contextKeyService]))),this._boundarySashes=(0,c.FY)(this,void 0),this._accessibleDiffViewerShouldBeVisible=(0,c.FY)(this,!1),this._accessibleDiffViewerVisible=(0,c.un)(this,(e=>!!this._options.onlyShowAccessibleDiffViewer.read(e)||this._accessibleDiffViewerShouldBeVisible.read(e))),this._movedBlocksLinesPart=(0,c.FY)(this,void 0),this._layoutInfo=(0,c.un)(this,(e=>{const t=this._rootSizeObserver.width.read(e),i=this._rootSizeObserver.height.read(e);this._rootSizeObserver.automaticLayout?this.elements.root.style.height="100%":this.elements.root.style.height=i+"px";const s=this._sash.read(e),n=this._gutter.read(e),r=n?.width.read(e)??0,o=this._overviewRulerPart.read(e)?.width??0;let a,c,l,h,d;if(!!s){const i=s.sashLeft.read(e);a=0,c=i-r-(this._movedBlocksLinesPart.read(e)?.width.read(e)??0),d=i-r,l=i,h=t-l-o}else{d=0;a=r,c=this._options.inlineViewHideOriginalLineNumbers.read(e)?0:Math.max(5,this._editors.originalObs.layoutInfoDecorationsLeft.read(e)),l=r+c,h=t-l-o}return this.elements.original.style.left=a+"px",this.elements.original.style.width=c+"px",this._editors.original.layout({width:c,height:i},!0),n?.layout(d),this.elements.modified.style.left=l+"px",this.elements.modified.style.width=h+"px",this._editors.modified.layout({width:h,height:i},!0),{modifiedEditor:this._editors.modified.getLayoutInfo(),originalEditor:this._editors.original.getLayoutInfo()}})),this._diffValue=this._diffModel.map(((e,t)=>e?.diff.read(t))),this.onDidUpdateDiff=o.Jh.fromObservableLight(this._diffValue),d.willCreateDiffEditor(),this._contextKeyService.createKey("isInDiffEditor",!0),this._domElement.appendChild(this.elements.root),this._register((0,a.s)((()=>this.elements.root.remove()))),this._rootSizeObserver=this._register(new S.pN(this.elements.root,t.dimension)),this._rootSizeObserver.setAutomaticLayout(t.automaticLayout??!1),this._options=this._instantiationService.createInstance(Pt,t),this._register((0,c.fm)((e=>{this._options.setWidth(this._rootSizeObserver.width.read(e))}))),this._contextKeyService.createKey(St.R.isEmbeddedDiffEditor.key,!1),this._register((0,Et.w)(St.R.isEmbeddedDiffEditor,this._contextKeyService,(e=>this._options.isInEmbeddedEditor.read(e)))),this._register((0,Et.w)(St.R.comparingMovedCode,this._contextKeyService,(e=>!!this._diffModel.read(e)?.movedTextToCompare.read(e)))),this._register((0,Et.w)(St.R.diffEditorRenderSideBySideInlineBreakpointReached,this._contextKeyService,(e=>this._options.couldShowInlineViewBecauseOfSize.read(e)))),this._register((0,Et.w)(St.R.diffEditorInlineMode,this._contextKeyService,(e=>!this._options.renderSideBySide.read(e)))),this._register((0,Et.w)(St.R.hasChanges,this._contextKeyService,(e=>(this._diffModel.read(e)?.diff.read(e)?.mappings.length??0)>0))),this._editors=this._register(this._instantiationService.createInstance(kt,this.elements.original,this.elements.modified,this._options,i,((e,t,i,s)=>this._createInnerEditor(e,t,i,s)))),this._register((0,Et.w)(St.R.diffEditorOriginalWritable,this._contextKeyService,(e=>this._options.originalEditable.read(e)))),this._register((0,Et.w)(St.R.diffEditorModifiedWritable,this._contextKeyService,(e=>!this._options.readOnly.read(e)))),this._register((0,Et.w)(St.R.diffEditorOriginalUri,this._contextKeyService,(e=>this._diffModel.read(e)?.model.original.uri.toString()??""))),this._register((0,Et.w)(St.R.diffEditorModifiedUri,this._contextKeyService,(e=>this._diffModel.read(e)?.model.modified.uri.toString()??""))),this._overviewRulerPart=(0,l.a0)(this,(e=>this._options.renderOverviewRuler.read(e)?this._instantiationService.createInstance((0,ne.b)(pt,e),this._editors,this.elements.root,this._diffModel,this._rootSizeObserver.width,this._rootSizeObserver.height,this._layoutInfo.map((e=>e.modifiedEditor))):void 0)).recomputeInitiallyAndOnChange(this._store);const m={height:this._rootSizeObserver.height,width:this._rootSizeObserver.width.map(((e,t)=>e-(this._overviewRulerPart.read(t)?.width??0)))};this._sashLayout=new We(this._options,m),this._sash=(0,l.a0)(this,(e=>{const t=this._options.renderSideBySide.read(e);return this.elements.root.classList.toggle("side-by-side",t),t?new Ve(this.elements.root,m,this._options.enableSplitViewResizing,this._boundarySashes,this._sashLayout.sashLeft,(()=>this._sashLayout.resetSash())):void 0})).recomputeInitiallyAndOnChange(this._store);const f=(0,l.a0)(this,(e=>this._instantiationService.createInstance((0,ne.b)(ot.N,e),this._editors,this._diffModel,this._options))).recomputeInitiallyAndOnChange(this._store);(0,l.a0)(this,(e=>this._instantiationService.createInstance((0,ne.b)(He,e),this._editors,this._diffModel,this._options,this))).recomputeInitiallyAndOnChange(this._store);const _=new Set,v=new Set;let C=!1;const E=(0,l.a0)(this,(e=>this._instantiationService.createInstance((0,ne.b)(Ne,e),(0,s.zk)(this._domElement),this._editors,this._diffModel,this._options,this,(()=>C||f.get().isUpdatingHiddenAreas),_,v))).recomputeInitiallyAndOnChange(this._store),b=(0,c.un)(this,(e=>{const t=E.read(e).viewZones.read(e).orig,i=f.read(e).viewZones.read(e).origViewZones;return t.concat(i)})),y=(0,c.un)(this,(e=>{const t=E.read(e).viewZones.read(e).mod,i=f.read(e).viewZones.read(e).modViewZones;return t.concat(i)}));let w;this._register((0,S.Vs)(this._editors.original,b,(e=>{C=e}),_)),this._register((0,S.Vs)(this._editors.modified,y,(e=>{C=e,C?w=u.D.capture(this._editors.modified):(w?.restore(this._editors.modified),w=void 0)}),v)),this._accessibleDiffViewer=(0,l.a0)(this,(e=>this._instantiationService.createInstance((0,ne.b)(V,e),this.elements.accessibleDiffViewer,this._accessibleDiffViewerVisible,((e,t)=>this._accessibleDiffViewerShouldBeVisible.set(e,t)),this._options.onlyShowAccessibleDiffViewer.map((e=>!e)),this._rootSizeObserver.width,this._rootSizeObserver.height,this._diffModel.map(((e,t)=>e?.diff.read(t)?.mappings.map((e=>e.lineRangeMapping)))),new Z(this._editors)))).recomputeInitiallyAndOnChange(this._store);const R=this._accessibleDiffViewerVisible.map((e=>e?"hidden":"visible"));this._register((0,S.AV)(this.elements.modified,{visibility:R})),this._register((0,S.AV)(this.elements.original,{visibility:R})),this._createDiffEditorContributions(),d.addDiffEditor(this),this._gutter=(0,l.a0)(this,(e=>this._options.shouldRenderGutterMenu.read(e)?this._instantiationService.createInstance((0,ne.b)(it,e),this.elements.root,this._diffModel,this._editors,this._options,this._sashLayout,this._boundarySashes):void 0)),this._register((0,c.OI)(this._layoutInfo)),(0,l.a0)(this,(e=>new((0,ne.b)(Pe,e))(this.elements.root,this._diffModel,this._layoutInfo.map((e=>e.originalEditor)),this._layoutInfo.map((e=>e.modifiedEditor)),this._editors))).recomputeInitiallyAndOnChange(this._store,(e=>{this._movedBlocksLinesPart.set(e,void 0)})),this._register(o.Jh.runAndSubscribe(this._editors.modified.onDidChangeCursorPosition,(e=>this._handleCursorPositionChange(e,!0)))),this._register(o.Jh.runAndSubscribe(this._editors.original.onDidChangeCursorPosition,(e=>this._handleCursorPositionChange(e,!1))));const L=this._diffModel.map(this,((e,t)=>{if(e)return void 0===e.diff.read(t)&&!e.isDiffUpToDate.read(t)}));this._register((0,c.yC)(((e,t)=>{if(!0===L.read(e)){const e=this._editorProgressService.show(!0,1e3);t.add((0,a.s)((()=>e.done())))}}))),this._register((0,c.yC)(((e,t)=>{t.add(new((0,ne.b)(vt,e))(this._editors,this._diffModel,this._options,this))}))),this._register((0,c.yC)(((e,t)=>{const i=this._diffModel.read(e);if(i)for(const s of[i.model.original,i.model.modified])t.add(s.onWillDispose((e=>{(0,r.dz)(new r.D7("TextModel got disposed before DiffEditorWidget model got reset")),this.setModel(null)})))}))),this._register((0,c.fm)((e=>{this._options.setModel(this._diffModel.read(e))})))}_createInnerEditor(e,t,i,s){return e.createInstance(g.x,t,i,s)}_createDiffEditorContributions(){const e=h.dS.getDiffEditorContributions();for(const i of e)try{this._register(this._instantiationService.createInstance(i.ctor,this))}catch(t){(0,r.dz)(t)}}get _targetEditor(){return this._editors.modified}getEditorType(){return bt._.IDiffEditor}layout(e){this._rootSizeObserver.observe(e)}hasTextFocus(){return this._editors.original.hasTextFocus()||this._editors.modified.hasTextFocus()}saveViewState(){return{original:this._editors.original.saveViewState(),modified:this._editors.modified.saveViewState(),modelState:this._diffModel.get()?.serializeState()}}restoreViewState(e){if(e&&e.original&&e.modified){const t=e;this._editors.original.restoreViewState(t.original),this._editors.modified.restoreViewState(t.modified),t.modelState&&this._diffModel.get()?.restoreSerializedState(t.modelState)}}handleInitialized(){this._editors.original.handleInitialized(),this._editors.modified.handleInitialized()}createViewModel(e){return this._instantiationService.createInstance(ue,e,this._options)}getModel(){return this._diffModel.get()?.model??null}setModel(e){const t=e?"model"in e?S.O8.create(e).createNewRef(this):S.O8.create(this.createViewModel(e),this):null;this.setDiffModel(t)}setDiffModel(e,t){const i=this._diffModel.get();!e&&i&&this._accessibleDiffViewer.get().close(),this._diffModel.get()!==e?.object&&(0,c.PO)(t,(t=>{const i=e?.object;c.y0.batchEventsGlobally(t,(()=>{this._editors.original.setModel(i?i.model.original:null),this._editors.modified.setModel(i?i.model.modified:null)}));const s=this._diffModelSrc.get()?.createNewRef(this);this._diffModelSrc.set(e?.createNewRef(this),t),setTimeout((()=>{s?.dispose()}),0)}))}updateOptions(e){this._options.updateOptions(e)}getContainerDomNode(){return this._domElement}getOriginalEditor(){return this._editors.original}getModifiedEditor(){return this._editors.modified}getLineChanges(){const e=this._diffModel.get()?.diff.get();return e?e.mappings.map((e=>{const t=e.lineRangeMapping;let i,s,n,r,o=t.innerChanges;return t.original.isEmpty?(i=t.original.startLineNumber-1,s=0,o=void 0):(i=t.original.startLineNumber,s=t.original.endLineNumberExclusive-1),t.modified.isEmpty?(n=t.modified.startLineNumber-1,r=0,o=void 0):(n=t.modified.startLineNumber,r=t.modified.endLineNumberExclusive-1),{originalStartLineNumber:i,originalEndLineNumber:s,modifiedStartLineNumber:n,modifiedEndLineNumber:r,charChanges:o?.map((e=>({originalStartLineNumber:e.originalRange.startLineNumber,originalStartColumn:e.originalRange.startColumn,originalEndLineNumber:e.originalRange.endLineNumber,originalEndColumn:e.originalRange.endColumn,modifiedStartLineNumber:e.modifiedRange.startLineNumber,modifiedStartColumn:e.modifiedRange.startColumn,modifiedEndLineNumber:e.modifiedRange.endLineNumber,modifiedEndColumn:e.modifiedRange.endColumn})))}})):null}revert(e){const t=this._diffModel.get();t&&t.isDiffUpToDate.get()&&this._editors.modified.executeEdits("diffEditor",[{range:e.modified.toExclusiveRange(),text:t.model.original.getValueInRange(e.original.toExclusiveRange())}])}revertRangeMappings(e){const t=this._diffModel.get();if(!t||!t.isDiffUpToDate.get())return;const i=e.map((e=>({range:e.modifiedRange,text:t.model.original.getValueInRange(e.originalRange)})));this._editors.modified.executeEdits("diffEditor",i)}_goTo(e){this._editors.modified.setPosition(new L.y(e.lineRangeMapping.modified.startLineNumber,1)),this._editors.modified.revealRangeInCenter(e.lineRangeMapping.modified.toExclusiveRange())}goToDiff(e){const t=this._diffModel.get()?.diff.get()?.mappings;if(!t||0===t.length)return;const i=this._editors.modified.getPosition().lineNumber;let s;s="next"===e?t.find((e=>e.lineRangeMapping.modified.startLineNumber>i))??t[0]:(0,n.Uk)(t,(e=>e.lineRangeMapping.modified.startLineNumber<i))??t[t.length-1],this._goTo(s),s.lineRangeMapping.modified.isEmpty?this._accessibilitySignalService.playSignal(D.Rh.diffLineDeleted,{source:"diffEditor.goToDiff"}):s.lineRangeMapping.original.isEmpty?this._accessibilitySignalService.playSignal(D.Rh.diffLineInserted,{source:"diffEditor.goToDiff"}):s&&this._accessibilitySignalService.playSignal(D.Rh.diffLineModified,{source:"diffEditor.goToDiff"})}revealFirstDiff(){const e=this._diffModel.get();e&&this.waitForDiff().then((()=>{const t=e.diff.get()?.mappings;t&&0!==t.length&&this._goTo(t[0])}))}accessibleDiffViewerNext(){this._accessibleDiffViewer.get().next()}accessibleDiffViewerPrev(){this._accessibleDiffViewer.get().prev()}async waitForDiff(){const e=this._diffModel.get();e&&await e.waitForDiff()}mapToOtherSide(){const e=this._editors.modified.hasWidgetFocus(),t=e?this._editors.modified:this._editors.original,i=e?this._editors.original:this._editors.modified;let s;const n=t.getSelection();if(n){const t=this._diffModel.get()?.diff.get()?.mappings.map((t=>e?t.lineRangeMapping.flip():t.lineRangeMapping));if(t){const e=(0,S.Mu)(n.getStartPosition(),t),i=(0,S.Mu)(n.getEndPosition(),t);s=T.Q.plusRange(e,i)}}return{destination:i,destinationSelection:s}}switchSide(){const{destination:e,destinationSelection:t}=this.mapToOtherSide();e.focus(),t&&e.setSelection(t)}exitCompareMove(){const e=this._diffModel.get();e&&e.movedTextToCompare.set(void 0,void 0)}collapseAllUnchangedRegions(){const e=this._diffModel.get()?.unchangedRegions.get();e&&(0,c.Rn)((t=>{for(const i of e)i.collapseAll(t)}))}showAllUnchangedRegions(){const e=this._diffModel.get()?.unchangedRegions.get();e&&(0,c.Rn)((t=>{for(const i of e)i.showAll(t)}))}_handleCursorPositionChange(e,t){if(3===e?.reason){const i=this._diffModel.get()?.diff.get()?.mappings.find((i=>t?i.lineRangeMapping.modified.contains(e.position.lineNumber):i.lineRangeMapping.original.contains(e.position.lineNumber)));i?.lineRangeMapping.modified.isEmpty?this._accessibilitySignalService.playSignal(D.Rh.diffLineDeleted,{source:"diffEditor.cursorPositionChanged"}):i?.lineRangeMapping.original.isEmpty?this._accessibilitySignalService.playSignal(D.Rh.diffLineInserted,{source:"diffEditor.cursorPositionChanged"}):i&&this._accessibilitySignalService.playSignal(D.Rh.diffLineModified,{source:"diffEditor.cursorPositionChanged"})}}};Bt=Ut([Ht(3,Xe.fN),Ht(4,M._Y),Ht(5,d.T),Ht(6,D.Nt),Ht(7,wt.N8)],Bt)},94746:(e,t,i)=>{"use strict";i.d(t,{Hg:()=>p});var s,n=i(14718),r=i(63591),o=i(41234),a=i(78381),c=i(86571),l=i(87723),h=i(10920),d=i(90651),u=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},g=function(e,t){return function(i,s){t(i,s,e)}};const p=(0,r.u1)("diffProviderFactoryService");let m=class{constructor(e){this.instantiationService=e}createDiffProvider(e){return this.instantiationService.createInstance(f,e)}};m=u([g(0,r._Y)],m),(0,n.v)(p,m,1);let f=class{static{s=this}static{this.diffCache=new Map}constructor(e,t,i){this.editorWorkerService=t,this.telemetryService=i,this.onDidChangeEventEmitter=new o.vl,this.onDidChange=this.onDidChangeEventEmitter.event,this.diffAlgorithm="advanced",this.diffAlgorithmOnDidChangeSubscription=void 0,this.setOptions(e)}dispose(){this.diffAlgorithmOnDidChangeSubscription?.dispose()}async computeDiff(e,t,i,n){if("string"!==typeof this.diffAlgorithm)return this.diffAlgorithm.computeDiff(e,t,i,n);if(e.isDisposed()||t.isDisposed())return{changes:[],identical:!0,quitEarly:!1,moves:[]};if(1===e.getLineCount()&&1===e.getLineMaxColumn(1))return 1===t.getLineCount()&&1===t.getLineMaxColumn(1)?{changes:[],identical:!0,quitEarly:!1,moves:[]}:{changes:[new l.wm(new c.M(1,2),new c.M(1,t.getLineCount()+1),[new l.q6(e.getFullModelRange(),t.getFullModelRange())])],identical:!1,quitEarly:!1,moves:[]};const r=JSON.stringify([e.uri.toString(),t.uri.toString()]),o=JSON.stringify([e.id,t.id,e.getAlternativeVersionId(),t.getAlternativeVersionId(),JSON.stringify(i)]),h=s.diffCache.get(r);if(h&&h.context===o)return h.result;const d=a.W.create(),u=await this.editorWorkerService.computeDiff(e.uri,t.uri,i,this.diffAlgorithm),g=d.elapsed();if(this.telemetryService.publicLog2("diffEditor.computeDiff",{timeMs:g,timedOut:u?.quitEarly??!0,detectedMoves:i.computeMoves?u?.moves.length??0:-1}),n.isCancellationRequested)return{changes:[],identical:!1,quitEarly:!0,moves:[]};if(!u)throw new Error("no diff result available");return s.diffCache.size>10&&s.diffCache.delete(s.diffCache.keys().next().value),s.diffCache.set(r,{result:u,context:o}),u}setOptions(e){let t=!1;e.diffAlgorithm&&this.diffAlgorithm!==e.diffAlgorithm&&(this.diffAlgorithmOnDidChangeSubscription?.dispose(),this.diffAlgorithmOnDidChangeSubscription=void 0,this.diffAlgorithm=e.diffAlgorithm,"string"!==typeof e.diffAlgorithm&&(this.diffAlgorithmOnDidChangeSubscription=e.diffAlgorithm.onDidChange((()=>this.onDidChangeEventEmitter.fire()))),t=!0),t&&this.onDidChangeEventEmitter.fire()}};f=s=u([g(1,h.IEditorWorkerService),g(2,d.k)],f)},34309:(e,t,i)=>{"use strict";i.d(t,{N:()=>y});var s,n=i(8597),r=i(20370),o=i(10350),a=i(16980),c=i(5662),l=i(31308),h=i(87958),d=i(25689),u=i(631),g=i(38844),p=i(92368),m=i(86571),f=i(83069),_=i(36677),v=i(62083),C=i(78209),E=i(63591),b=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},S=function(e,t){return function(i,s){t(i,s,e)}};let y=class extends c.jG{static{s=this}static{this._breadcrumbsSourceFactory=(0,l.FY)(s,(()=>({dispose(){},getBreadcrumbItems:(e,t)=>[]})))}static setBreadcrumbsSourceFactory(e){this._breadcrumbsSourceFactory.set(e,void 0)}get isUpdatingHiddenAreas(){return this._isUpdatingHiddenAreas}constructor(e,t,i,n){super(),this._editors=e,this._diffModel=t,this._options=i,this._instantiationService=n,this._modifiedOutlineSource=(0,h.a0)(this,(e=>{const t=this._editors.modifiedModel.read(e),i=s._breadcrumbsSourceFactory.read(e);return t&&i?i(t,this._instantiationService):void 0})),this._isUpdatingHiddenAreas=!1,this._register(this._editors.original.onDidChangeCursorPosition((e=>{if(1===e.reason)return;const t=this._diffModel.get();(0,l.Rn)((e=>{for(const i of this._editors.original.getSelections()||[])t?.ensureOriginalLineIsVisible(i.getStartPosition().lineNumber,0,e),t?.ensureOriginalLineIsVisible(i.getEndPosition().lineNumber,0,e)}))}))),this._register(this._editors.modified.onDidChangeCursorPosition((e=>{if(1===e.reason)return;const t=this._diffModel.get();(0,l.Rn)((e=>{for(const i of this._editors.modified.getSelections()||[])t?.ensureModifiedLineIsVisible(i.getStartPosition().lineNumber,0,e),t?.ensureModifiedLineIsVisible(i.getEndPosition().lineNumber,0,e)}))})));const r=this._diffModel.map(((e,t)=>{const i=e?.unchangedRegions.read(t)??[];return 1===i.length&&1===i[0].modifiedLineNumber&&i[0].lineCount===this._editors.modifiedModel.read(t)?.getLineCount()?[]:i}));this.viewZones=(0,l.rm)(this,((e,t)=>{const i=this._modifiedOutlineSource.read(e);if(!i)return{origViewZones:[],modViewZones:[]};const s=[],n=[],o=this._options.renderSideBySide.read(e),a=this._options.compactMode.read(e),c=r.read(e);for(let r=0;r<c.length;r++){const h=c[r];if(!h.shouldHideControls(e)&&(!a||0!==r&&r!==c.length-1))if(a){{const e=(0,l.un)(this,(e=>h.getHiddenOriginalRange(e).startLineNumber-1)),i=new p.D1(e,12);s.push(i),t.add(new w(this._editors.original,i,h,!o))}{const e=(0,l.un)(this,(e=>h.getHiddenModifiedRange(e).startLineNumber-1)),i=new p.D1(e,12);n.push(i),t.add(new w(this._editors.modified,i,h))}}else{{const e=(0,l.un)(this,(e=>h.getHiddenOriginalRange(e).startLineNumber-1)),n=new p.D1(e,24);s.push(n),t.add(new R(this._editors.original,n,h,h.originalUnchangedRange,!o,i,(e=>this._diffModel.get().ensureModifiedLineIsVisible(e,2,void 0)),this._options))}{const e=(0,l.un)(this,(e=>h.getHiddenModifiedRange(e).startLineNumber-1)),s=new p.D1(e,24);n.push(s),t.add(new R(this._editors.modified,s,h,h.modifiedUnchangedRange,!1,i,(e=>this._diffModel.get().ensureModifiedLineIsVisible(e,2,void 0)),this._options))}}}return{origViewZones:s,modViewZones:n}}));const c={description:"unchanged lines",className:"diff-unchanged-lines",isWholeLine:!0},g={description:"Fold Unchanged",glyphMarginHoverMessage:new a.Bc(void 0,{isTrusted:!0,supportThemeIcons:!0}).appendMarkdown((0,C.kg)("foldUnchanged","Fold Unchanged Region")),glyphMarginClassName:"fold-unchanged "+d.L.asClassName(o.W.fold),zIndex:10001};this._register((0,p.pY)(this._editors.original,(0,l.un)(this,(e=>{const t=r.read(e),i=t.map((e=>({range:e.originalUnchangedRange.toInclusiveRange(),options:c})));for(const s of t)s.shouldHideControls(e)&&i.push({range:_.Q.fromPositions(new f.y(s.originalLineNumber,1)),options:g});return i})))),this._register((0,p.pY)(this._editors.modified,(0,l.un)(this,(e=>{const t=r.read(e),i=t.map((e=>({range:e.modifiedUnchangedRange.toInclusiveRange(),options:c})));for(const s of t)s.shouldHideControls(e)&&i.push({range:m.M.ofLength(s.modifiedLineNumber,1).toInclusiveRange(),options:g});return i})))),this._register((0,l.fm)((e=>{const t=r.read(e);this._isUpdatingHiddenAreas=!0;try{this._editors.original.setHiddenAreas(t.map((t=>t.getHiddenOriginalRange(e).toInclusiveRange())).filter(u.O9)),this._editors.modified.setHiddenAreas(t.map((t=>t.getHiddenModifiedRange(e).toInclusiveRange())).filter(u.O9))}finally{this._isUpdatingHiddenAreas=!1}}))),this._register(this._editors.modified.onMouseUp((e=>{if(!e.event.rightButton&&e.target.position&&e.target.element?.className.includes("fold-unchanged")){const t=e.target.position.lineNumber,i=this._diffModel.get();if(!i)return;const s=i.unchangedRegions.get().find((e=>e.modifiedUnchangedRange.includes(t)));if(!s)return;s.collapseAll(void 0),e.event.stopPropagation(),e.event.preventDefault()}}))),this._register(this._editors.original.onMouseUp((e=>{if(!e.event.rightButton&&e.target.position&&e.target.element?.className.includes("fold-unchanged")){const t=e.target.position.lineNumber,i=this._diffModel.get();if(!i)return;const s=i.unchangedRegions.get().find((e=>e.originalUnchangedRange.includes(t)));if(!s)return;s.collapseAll(void 0),e.event.stopPropagation(),e.event.preventDefault()}})))}};y=s=b([S(3,E._Y)],y);class w extends p.uN{constructor(e,t,i,s=!1){const r=(0,n.h)("div.diff-hidden-lines-widget");super(e,t,r.root),this._unchangedRegion=i,this._hide=s,this._nodes=(0,n.h)("div.diff-hidden-lines-compact",[(0,n.h)("div.line-left",[]),(0,n.h)("div.text@text",[]),(0,n.h)("div.line-right",[])]),r.root.appendChild(this._nodes.root),this._hide&&this._nodes.root.replaceChildren(),this._register((0,l.fm)((e=>{if(!this._hide){const t=this._unchangedRegion.getHiddenModifiedRange(e).length,i=(0,C.kg)("hiddenLines","{0} hidden lines",t);this._nodes.text.innerText=i}})))}}class R extends p.uN{constructor(e,t,i,s,a,c,h,d){const u=(0,n.h)("div.diff-hidden-lines-widget");super(e,t,u.root),this._editor=e,this._unchangedRegion=i,this._unchangedRegionRange=s,this._hide=a,this._modifiedOutlineSource=c,this._revealModifiedHiddenLine=h,this._options=d,this._nodes=(0,n.h)("div.diff-hidden-lines",[(0,n.h)("div.top@top",{title:(0,C.kg)("diff.hiddenLines.top","Click or drag to show more above")}),(0,n.h)("div.center@content",{style:{display:"flex"}},[(0,n.h)("div@first",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexShrink:"0"}},[(0,n.$)("a",{title:(0,C.kg)("showUnchangedRegion","Show Unchanged Region"),role:"button",onclick:()=>{this._unchangedRegion.showAll(void 0)}},...(0,r.n)("$(unfold)"))]),(0,n.h)("div@others",{style:{display:"flex",justifyContent:"center",alignItems:"center"}})]),(0,n.h)("div.bottom@bottom",{title:(0,C.kg)("diff.bottom","Click or drag to show more below"),role:"button"})]),u.root.appendChild(this._nodes.root),this._hide?(0,n.Ln)(this._nodes.first):this._register((0,p.AV)(this._nodes.first,{width:(0,g.Ud)(this._editor).layoutInfoContentLeft})),this._register((0,l.fm)((e=>{const t=this._unchangedRegion.visibleLineCountTop.read(e)+this._unchangedRegion.visibleLineCountBottom.read(e)===this._unchangedRegion.lineCount;this._nodes.bottom.classList.toggle("canMoveTop",!t),this._nodes.bottom.classList.toggle("canMoveBottom",this._unchangedRegion.visibleLineCountBottom.read(e)>0),this._nodes.top.classList.toggle("canMoveTop",this._unchangedRegion.visibleLineCountTop.read(e)>0),this._nodes.top.classList.toggle("canMoveBottom",!t);const i=this._unchangedRegion.isDragged.read(e),s=this._editor.getDomNode();s&&(s.classList.toggle("draggingUnchangedRegion",!!i),"top"===i?(s.classList.toggle("canMoveTop",this._unchangedRegion.visibleLineCountTop.read(e)>0),s.classList.toggle("canMoveBottom",!t)):"bottom"===i?(s.classList.toggle("canMoveTop",!t),s.classList.toggle("canMoveBottom",this._unchangedRegion.visibleLineCountBottom.read(e)>0)):(s.classList.toggle("canMoveTop",!1),s.classList.toggle("canMoveBottom",!1)))})));const m=this._editor;this._register((0,n.ko)(this._nodes.top,"mousedown",(e=>{if(0!==e.button)return;this._nodes.top.classList.toggle("dragging",!0),this._nodes.root.classList.toggle("dragging",!0),e.preventDefault();const t=e.clientY;let i=!1;const s=this._unchangedRegion.visibleLineCountTop.get();this._unchangedRegion.isDragged.set("top",void 0);const r=(0,n.zk)(this._nodes.top),o=(0,n.ko)(r,"mousemove",(e=>{const n=e.clientY-t;i=i||Math.abs(n)>2;const r=Math.round(n/m.getOption(67)),o=Math.max(0,Math.min(s+r,this._unchangedRegion.getMaxVisibleLineCountTop()));this._unchangedRegion.visibleLineCountTop.set(o,void 0)})),a=(0,n.ko)(r,"mouseup",(e=>{i||this._unchangedRegion.showMoreAbove(this._options.hideUnchangedRegionsRevealLineCount.get(),void 0),this._nodes.top.classList.toggle("dragging",!1),this._nodes.root.classList.toggle("dragging",!1),this._unchangedRegion.isDragged.set(void 0,void 0),o.dispose(),a.dispose()}))}))),this._register((0,n.ko)(this._nodes.bottom,"mousedown",(e=>{if(0!==e.button)return;this._nodes.bottom.classList.toggle("dragging",!0),this._nodes.root.classList.toggle("dragging",!0),e.preventDefault();const t=e.clientY;let i=!1;const s=this._unchangedRegion.visibleLineCountBottom.get();this._unchangedRegion.isDragged.set("bottom",void 0);const r=(0,n.zk)(this._nodes.bottom),o=(0,n.ko)(r,"mousemove",(e=>{const n=e.clientY-t;i=i||Math.abs(n)>2;const r=Math.round(n/m.getOption(67)),o=Math.max(0,Math.min(s-r,this._unchangedRegion.getMaxVisibleLineCountBottom())),a=this._unchangedRegionRange.endLineNumberExclusive>m.getModel().getLineCount()?m.getContentHeight():m.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);this._unchangedRegion.visibleLineCountBottom.set(o,void 0);const c=this._unchangedRegionRange.endLineNumberExclusive>m.getModel().getLineCount()?m.getContentHeight():m.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);m.setScrollTop(m.getScrollTop()+(c-a))})),a=(0,n.ko)(r,"mouseup",(e=>{if(this._unchangedRegion.isDragged.set(void 0,void 0),!i){const e=m.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);this._unchangedRegion.showMoreBelow(this._options.hideUnchangedRegionsRevealLineCount.get(),void 0);const t=m.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);m.setScrollTop(m.getScrollTop()+(t-e))}this._nodes.bottom.classList.toggle("dragging",!1),this._nodes.root.classList.toggle("dragging",!1),o.dispose(),a.dispose()}))}))),this._register((0,l.fm)((e=>{const t=[];if(!this._hide){const s=i.getHiddenModifiedRange(e).length,a=(0,C.kg)("hiddenLines","{0} hidden lines",s),c=(0,n.$)("span",{title:(0,C.kg)("diff.hiddenLines.expandAll","Double click to unfold")},a);c.addEventListener("dblclick",(e=>{0===e.button&&(e.preventDefault(),this._unchangedRegion.showAll(void 0))})),t.push(c);const l=this._unchangedRegion.getHiddenModifiedRange(e),h=this._modifiedOutlineSource.getBreadcrumbItems(l,e);if(h.length>0){t.push((0,n.$)("span",void 0,"\xa0\xa0|\xa0\xa0"));for(let e=0;e<h.length;e++){const i=h[e],s=v.gP.toIcon(i.kind),a=(0,n.h)("div.breadcrumb-item",{style:{display:"flex",alignItems:"center"}},[(0,r.s)(s),"\xa0",i.name,...e===h.length-1?[]:[(0,r.s)(o.W.chevronRight)]]).root;t.push(a),a.onclick=()=>{this._revealModifiedHiddenLine(i.startLineNumber)}}}}(0,n.Ln)(this._nodes.others,...t)})))}}},10691:(e,t,i)=>{"use strict";i.d(t,{GM:()=>_,KL:()=>C,Kl:()=>d,Ob:()=>u,Ou:()=>f,XT:()=>p,Zb:()=>v,Zw:()=>g,bk:()=>m,dv:()=>h,wp:()=>E});var s=i(10350),n=i(25689),r=i(87289),o=i(78209),a=i(66261),c=i(61394);(0,a.x1A)("diffEditor.move.border","#8b8b8b9c",(0,o.kg)("diffEditor.move.border","The border color for text that got moved in the diff editor.")),(0,a.x1A)("diffEditor.moveActive.border","#FFA500",(0,o.kg)("diffEditor.moveActive.border","The active border color for text that got moved in the diff editor.")),(0,a.x1A)("diffEditor.unchangedRegionShadow",{dark:"#000000",light:"#737373BF",hcDark:"#000000",hcLight:"#737373BF"},(0,o.kg)("diffEditor.unchangedRegionShadow","The color of the shadow around unchanged region widgets."));const l=(0,c.pU)("diff-insert",s.W.add,(0,o.kg)("diffInsertIcon","Line decoration for inserts in the diff editor.")),h=(0,c.pU)("diff-remove",s.W.remove,(0,o.kg)("diffRemoveIcon","Line decoration for removals in the diff editor.")),d=r.kI.register({className:"line-insert",description:"line-insert",isWholeLine:!0,linesDecorationsClassName:"insert-sign "+n.L.asClassName(l),marginClassName:"gutter-insert"}),u=r.kI.register({className:"line-delete",description:"line-delete",isWholeLine:!0,linesDecorationsClassName:"delete-sign "+n.L.asClassName(h),marginClassName:"gutter-delete"}),g=r.kI.register({className:"line-insert",description:"line-insert",isWholeLine:!0,marginClassName:"gutter-insert"}),p=r.kI.register({className:"line-delete",description:"line-delete",isWholeLine:!0,marginClassName:"gutter-delete"}),m=r.kI.register({className:"char-insert",description:"char-insert",shouldFillLineOnLineBreak:!0}),f=r.kI.register({className:"char-insert",description:"char-insert",isWholeLine:!0}),_=r.kI.register({className:"char-insert diff-range-empty",description:"char-insert diff-range-empty"}),v=r.kI.register({className:"char-delete",description:"char-delete",shouldFillLineOnLineBreak:!0}),C=r.kI.register({className:"char-delete",description:"char-delete",isWholeLine:!0}),E=r.kI.register({className:"char-delete diff-range-empty",description:"char-delete diff-range-empty"})},92368:(e,t,i)=>{"use strict";i.d(t,{$y:()=>p,AV:()=>E,Am:()=>d,D1:()=>v,EK:()=>w,MZ:()=>S,Mu:()=>y,Nu:()=>f,O8:()=>R,Vs:()=>b,pN:()=>m,pY:()=>u,rX:()=>g,uN:()=>_});var s=i(46041),n=i(18447),r=i(5662),o=i(31308),a=i(4983),c=i(83069),l=i(36677),h=i(50973);function d(e,t,i,s){if(0===e.length)return t;if(0===t.length)return e;const n=[];let r=0,o=0;for(;r<e.length&&o<t.length;){const a=e[r],c=t[o],l=i(a),h=i(c);l<h?(n.push(a),r++):l>h?(n.push(c),o++):(n.push(s(a,c)),r++,o++)}for(;r<e.length;)n.push(e[r]),r++;for(;o<t.length;)n.push(t[o]),o++;return n}function u(e,t){const i=new r.Cm,s=e.createDecorationsCollection();return i.add((0,o.zL)({debugName:()=>`Apply decorations from ${t.debugName}`},(e=>{const i=t.read(e);s.set(i)}))),i.add({dispose:()=>{s.clear()}}),i}function g(e,t){return e.appendChild(t),(0,r.s)((()=>{t.remove()}))}function p(e,t){return e.prepend(t),(0,r.s)((()=>{t.remove()}))}class m extends r.jG{get width(){return this._width}get height(){return this._height}get automaticLayout(){return this._automaticLayout}constructor(e,t){super(),this._automaticLayout=!1,this.elementSizeObserver=this._register(new a.u(e,t)),this._width=(0,o.FY)(this,this.elementSizeObserver.getWidth()),this._height=(0,o.FY)(this,this.elementSizeObserver.getHeight()),this._register(this.elementSizeObserver.onDidChange((e=>(0,o.Rn)((e=>{this._width.set(this.elementSizeObserver.getWidth(),e),this._height.set(this.elementSizeObserver.getHeight(),e)})))))}observe(e){this.elementSizeObserver.observe(e)}setAutomaticLayout(e){this._automaticLayout=e,e?this.elementSizeObserver.startObserving():this.elementSizeObserver.stopObserving()}}function f(e,t,i){let s=t.get(),n=s,r=s;const a=(0,o.FY)("animatedValue",s);let c=-1;let l;function h(){const t=Date.now()-c;var i,o,d,u;r=Math.floor((o=n,d=s-n,(i=t)===(u=300)?o+d:d*(1-Math.pow(2,-10*i/u))+o)),t<300?l=e.requestAnimationFrame(h):r=s,a.set(r,void 0)}return i.add((0,o.Y)({createEmptyChangeSummary:()=>({animate:!1}),handleChange:(e,i)=>(e.didChange(t)&&(i.animate=i.animate||e.change),!0)},((i,o)=>{void 0!==l&&(e.cancelAnimationFrame(l),l=void 0),n=r,s=t.read(i),c=Date.now()-(o.animate?0:300),h()}))),a}class _ extends r.jG{constructor(e,t,i){super(),this._register(new C(e,i)),this._register(E(i,{height:t.actualHeight,top:t.actualTop}))}}class v{get afterLineNumber(){return this._afterLineNumber.get()}constructor(e,t){this._afterLineNumber=e,this.heightInPx=t,this.domNode=document.createElement("div"),this._actualTop=(0,o.FY)(this,void 0),this._actualHeight=(0,o.FY)(this,void 0),this.actualTop=this._actualTop,this.actualHeight=this._actualHeight,this.showInHiddenAreas=!0,this.onChange=this._afterLineNumber,this.onDomNodeTop=e=>{this._actualTop.set(e,void 0)},this.onComputedHeight=e=>{this._actualHeight.set(e,void 0)}}}class C{static{this._counter=0}constructor(e,t){this._editor=e,this._domElement=t,this._overlayWidgetId="managedOverlayWidget-"+C._counter++,this._overlayWidget={getId:()=>this._overlayWidgetId,getDomNode:()=>this._domElement,getPosition:()=>null},this._editor.addOverlayWidget(this._overlayWidget)}dispose(){this._editor.removeOverlayWidget(this._overlayWidget)}}function E(e,t){return(0,o.fm)((i=>{for(let[s,n]of Object.entries(t))n&&"object"===typeof n&&"read"in n&&(n=n.read(i)),"number"===typeof n&&(n=`${n}px`),s=s.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase())),e.style[s]=n}))}function b(e,t,i,s){const n=new r.Cm,a=[];return n.add((0,o.yC)(((n,r)=>{const c=t.read(n),l=new Map,h=new Map;i&&i(!0),e.changeViewZones((e=>{for(const t of a)e.removeZone(t),s?.delete(t);a.length=0;for(const t of c){const i=e.addZone(t);t.setZoneId&&t.setZoneId(i),a.push(i),s?.add(i),l.set(t,i)}})),i&&i(!1),r.add((0,o.Y)({createEmptyChangeSummary:()=>({zoneIds:[]}),handleChange(e,t){const i=h.get(e.changedObservable);return void 0!==i&&t.zoneIds.push(i),!0}},((t,s)=>{for(const e of c)e.onChange&&(h.set(e.onChange,l.get(e)),e.onChange.read(t));i&&i(!0),e.changeViewZones((e=>{for(const t of s.zoneIds)e.layoutZone(t)})),i&&i(!1)})))}))),n.add({dispose(){i&&i(!0),e.changeViewZones((e=>{for(const t of a)e.removeZone(t)})),s?.clear(),i&&i(!1)}}),n}class S extends n.Qi{dispose(){super.dispose(!0)}}function y(e,t){const i=(0,s.Uk)(t,(t=>t.original.startLineNumber<=e.lineNumber));if(!i)return l.Q.fromPositions(e);if(i.original.endLineNumberExclusive<=e.lineNumber){const t=e.lineNumber-i.original.endLineNumberExclusive+i.modified.endLineNumberExclusive;return l.Q.fromPositions(new c.y(t,e.column))}if(!i.innerChanges)return l.Q.fromPositions(new c.y(i.modified.startLineNumber,1));const n=(0,s.Uk)(i.innerChanges,(t=>t.originalRange.getStartPosition().isBeforeOrEqual(e)));if(!n){const t=e.lineNumber-i.original.startLineNumber+i.modified.startLineNumber;return l.Q.fromPositions(new c.y(t,e.column))}if(n.originalRange.containsPosition(e))return n.modifiedRange;{const t=(r=n.originalRange.getEndPosition(),o=e,r.lineNumber===o.lineNumber?new h.W(0,o.column-r.column):new h.W(o.lineNumber-r.lineNumber,o.column-1));return l.Q.fromPositions(t.addToPosition(n.modifiedRange.getEndPosition()))}var r,o}function w(e,t){let i;return e.filter((e=>{const s=t(e,i);return i=e,s}))}class R{static create(e,t=void 0){return new L(e,e,t)}static createWithDisposable(e,t,i=void 0){const s=new r.Cm;return s.add(t),s.add(e),new L(e,s,i)}}class L extends R{constructor(e,t,i){super(),this.object=e,this._disposable=t,this._debugOwner=i,this._refCount=1,this._isDisposed=!1,this._owners=[],i&&this._addOwner(i)}_addOwner(e){e&&this._owners.push(e)}createNewRef(e){return this._refCount++,e&&this._addOwner(e),new T(this,e)}dispose(){this._isDisposed||(this._isDisposed=!0,this._decreaseRefCount(this._debugOwner))}_decreaseRefCount(e){if(this._refCount--,0===this._refCount&&this._disposable.dispose(),e){const t=this._owners.indexOf(e);-1!==t&&this._owners.splice(t,1)}}}class T extends R{constructor(e,t){super(),this._base=e,this._debugOwner=t,this._isDisposed=!1}get object(){return this._base.object}createNewRef(e){return this._base.createNewRef(e)}dispose(){this._isDisposed||(this._isDisposed=!0,this._base._decreaseRefCount(this._debugOwner))}}},20492:(e,t,i)=>{"use strict";i.d(t,{T:()=>f,i:()=>_});var s,n=i(68214),r=i(80789),o=i(64383),a=i(41234),c=i(5662),l=i(73157),h=i(10154),d=i(83941),u=i(58314),g=i(49099),p=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},m=function(e,t){return function(i,s){t(i,s,e)}};let f=class{static{s=this}static{this._ttpTokenizer=(0,r.H)("tokenizeToString",{createHTML:e=>e})}constructor(e,t,i){this._options=e,this._languageService=t,this._openerService=i,this._onDidRenderAsync=new a.vl,this.onDidRenderAsync=this._onDidRenderAsync.event}dispose(){this._onDidRenderAsync.dispose()}render(e,t,i){if(!e){return{element:document.createElement("span"),dispose:()=>{}}}const s=new c.Cm,r=s.add((0,n.Gc)(e,{...this._getRenderOptions(e,s),...t},i));return r.element.classList.add("rendered-markdown"),{element:r.element,dispose:()=>s.dispose()}}_getRenderOptions(e,t){return{codeBlockRenderer:async(e,t)=>{let i;e?i=this._languageService.getLanguageIdByLanguageName(e):this._options.editor&&(i=this._options.editor.getModel()?.getLanguageId()),i||(i=d.vH);const n=await(0,u.Yj)(this._languageService,t,i),r=document.createElement("span");if(r.innerHTML=s._ttpTokenizer?.createHTML(n)??n,this._options.editor){const e=this._options.editor.getOption(50);(0,l.M)(r,e)}else this._options.codeBlockFontFamily&&(r.style.fontFamily=this._options.codeBlockFontFamily);return void 0!==this._options.codeBlockFontSize&&(r.style.fontSize=this._options.codeBlockFontSize),r},asyncRenderCallback:()=>this._onDidRenderAsync.fire(),actionHandler:{callback:t=>_(this._openerService,t,e.isTrusted),disposables:t}}}};async function _(e,t,i){try{return await e.open(t,{fromUserGesture:!0,allowContributedOpeners:!0,allowCommands:v(i)})}catch(s){return(0,o.dz)(s),!1}}function v(e){return!0===e||!(!e||!Array.isArray(e.enabledCommands))&&e.enabledCommands}f=s=p([m(1,h.L),m(2,g.C)],f)},25791:(e,t,i)=>{"use strict";i.d(t,{I:()=>n});var s=i(36921);class n extends s.LN{constructor(e){super(),this._getContext=e}runAction(e,t){const i=this._getContext();return super.runAction(e,i)}}},15092:(e,t,i)=>{"use strict";i.d(t,{iP:()=>a,iu:()=>n,q2:()=>o,tA:()=>r,ui:()=>c});var s=i(75326);class n{constructor(e,t,i=!1){this._range=e,this._text=t,this.insertsAutoWhitespace=i}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return s.L.fromPositions(i.getEndPosition())}}class r{constructor(e,t){this._range=e,this._text=t}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return s.L.fromRange(i,0)}}class o{constructor(e,t,i=!1){this._range=e,this._text=t,this.insertsAutoWhitespace=i}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return s.L.fromPositions(i.getStartPosition())}}class a{constructor(e,t,i,s,n=!1){this._range=e,this._text=t,this._columnDeltaOffset=s,this._lineNumberDeltaOffset=i,this.insertsAutoWhitespace=n}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return s.L.fromPositions(i.getEndPosition().delta(this._lineNumberDeltaOffset,this._columnDeltaOffset))}}class c{constructor(e,t,i,s=!1){this._range=e,this._text=t,this._initialSelection=i,this._forceMoveMarkers=s,this._selectionId=null}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text,this._forceMoveMarkers),this._selectionId=t.trackSelection(this._initialSelection)}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}},7936:(e,t,i)=>{"use strict";i.d(t,{Y:()=>p});var s,n=i(91508),r=i(1245),o=i(36677),a=i(75326),c=i(63346),l=i(17469),h=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},d=function(e,t){return function(i,s){t(i,s,e)}};const u=Object.create(null);function g(e,t){if(t<=0)return"";u[e]||(u[e]=["",e]);const i=u[e];for(let s=i.length;s<=t;s++)i[s]=i[s-1]+e;return i[t]}let p=s=class{static unshiftIndent(e,t,i,s,n){const o=r.A.visibleColumnFromColumn(e,t,i);if(n){const e=g(" ",s);return g(e,r.A.prevIndentTabStop(o,s)/s)}return g("\t",r.A.prevRenderTabStop(o,i)/i)}static shiftIndent(e,t,i,s,n){const o=r.A.visibleColumnFromColumn(e,t,i);if(n){const e=g(" ",s);return g(e,r.A.nextIndentTabStop(o,s)/s)}return g("\t",r.A.nextRenderTabStop(o,i)/i)}constructor(e,t,i){this._languageConfigurationService=i,this._opts=t,this._selection=e,this._selectionId=null,this._useLastEditRangeForCursorEndPosition=!1,this._selectionStartColumnStaysPut=!1}_addEditOperation(e,t,i){this._useLastEditRangeForCursorEndPosition?e.addTrackedEditOperation(t,i):e.addEditOperation(t,i)}getEditOperations(e,t){const i=this._selection.startLineNumber;let a=this._selection.endLineNumber;1===this._selection.endColumn&&i!==a&&(a-=1);const{tabSize:l,indentSize:h,insertSpaces:d}=this._opts,u=i===a;if(this._opts.useTabStops){this._selection.isEmpty()&&/^\s*$/.test(e.getLineContent(i))&&(this._useLastEditRangeForCursorEndPosition=!0);let g=0,p=0;for(let m=i;m<=a;m++,g=p){p=0;const a=e.getLineContent(m);let f,_=n.HG(a);if((!this._opts.isUnshift||0!==a.length&&0!==_)&&(u||this._opts.isUnshift||0!==a.length)){if(-1===_&&(_=a.length),m>1){if(r.A.visibleColumnFromColumn(a,_+1,l)%h!==0&&e.tokenization.isCheapToTokenize(m-1)){const t=(0,c.h)(this._opts.autoIndent,e,new o.Q(m-1,e.getLineMaxColumn(m-1),m-1,e.getLineMaxColumn(m-1)),this._languageConfigurationService);if(t){if(p=g,t.appendText)for(let e=0,i=t.appendText.length;e<i&&p<h&&32===t.appendText.charCodeAt(e);e++)p++;t.removeText&&(p=Math.max(0,p-t.removeText));for(let e=0;e<p&&(0!==_&&32===a.charCodeAt(_-1));e++)_--}}}this._opts.isUnshift&&0===_||(f=this._opts.isUnshift?s.unshiftIndent(a,_+1,l,h,d):s.shiftIndent(a,_+1,l,h,d),this._addEditOperation(t,new o.Q(m,1,m,_+1),f),m!==i||this._selection.isEmpty()||(this._selectionStartColumnStaysPut=this._selection.startColumn<=_+1))}}}else{!this._opts.isUnshift&&this._selection.isEmpty()&&0===e.getLineLength(i)&&(this._useLastEditRangeForCursorEndPosition=!0);const s=d?g(" ",h):"\t";for(let r=i;r<=a;r++){const a=e.getLineContent(r);let c=n.HG(a);if((!this._opts.isUnshift||0!==a.length&&0!==c)&&((u||this._opts.isUnshift||0!==a.length)&&(-1===c&&(c=a.length),!this._opts.isUnshift||0!==c)))if(this._opts.isUnshift){c=Math.min(c,h);for(let e=0;e<c;e++){if(9===a.charCodeAt(e)){c=e+1;break}}this._addEditOperation(t,new o.Q(r,1,r,c+1),"")}else this._addEditOperation(t,new o.Q(r,1,r,1),s),r!==i||this._selection.isEmpty()||(this._selectionStartColumnStaysPut=1===this._selection.startColumn)}}this._selectionId=t.trackSelection(this._selection)}computeCursorState(e,t){if(this._useLastEditRangeForCursorEndPosition){const e=t.getInverseEditOperations()[0];return new a.L(e.range.endLineNumber,e.range.endColumn,e.range.endLineNumber,e.range.endColumn)}const i=t.getTrackedSelection(this._selectionId);if(this._selectionStartColumnStaysPut){const e=this._selection.startColumn;return i.startColumn<=e?i:0===i.getDirection()?new a.L(i.startLineNumber,e,i.endLineNumber,i.endColumn):new a.L(i.endLineNumber,i.endColumn,i.startLineNumber,e)}return i}};p=s=h([d(2,l.JZ)],p)},71964:(e,t,i)=>{"use strict";i.d(t,{i:()=>r,y:()=>o});var s=i(36677),n=i(75326);class r{constructor(e,t,i){this._range=e,this._charBeforeSelection=t,this._charAfterSelection=i}getEditOperations(e,t){t.addTrackedEditOperation(new s.Q(this._range.startLineNumber,this._range.startColumn,this._range.startLineNumber,this._range.startColumn),this._charBeforeSelection),t.addTrackedEditOperation(new s.Q(this._range.endLineNumber,this._range.endColumn,this._range.endLineNumber,this._range.endColumn),this._charAfterSelection)}computeCursorState(e,t){const i=t.getInverseEditOperations(),s=i[0].range,r=i[1].range;return new n.L(s.endLineNumber,s.endColumn,r.endLineNumber,r.endColumn-this._charAfterSelection.length)}}class o{constructor(e,t,i){this._position=e,this._text=t,this._charAfter=i}getEditOperations(e,t){t.addTrackedEditOperation(new s.Q(this._position.lineNumber,this._position.column,this._position.lineNumber,this._position.column),this._text+this._charAfter)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return new n.L(i.endLineNumber,i.startColumn,i.endLineNumber,i.endColumn-this._charAfter.length)}}},61059:(e,t,i)=>{"use strict";i.d(t,{q:()=>s});const s={enableSplitViewResizing:!0,splitViewDefaultRatio:.5,renderSideBySide:!0,renderMarginRevertIcon:!0,renderGutterMenu:!0,maxComputationTime:5e3,maxFileSize:50,ignoreTrimWhitespace:!0,renderIndicators:!0,originalEditable:!1,diffCodeLens:!1,renderOverviewRuler:!0,diffWordWrap:"inherit",diffAlgorithm:"advanced",accessibilityVerbose:!1,experimental:{showMoves:!1,showEmptyDecorations:!0,useTrueInlineView:!1},hideUnchangedRegions:{enabled:!1,contextLineCount:3,minimumLineCount:3,revealLineCount:20},isInEmbeddedEditor:!1,onlyShowAccessibleDiffViewer:!1,renderSideBySideInlineBreakpoint:900,useInlineViewWhenSpaceIsLimited:!0,compactMode:!1}},94371:(e,t,i)=>{"use strict";i.d(t,{Gn:()=>m,JJ:()=>l,vf:()=>p});var s=i(61059),n=i(87908),r=i(24329),o=i(78209),a=i(1646),c=i(46359);const l=Object.freeze({id:"editor",order:5,type:"object",title:o.kg("editorConfigurationTitle","Editor"),scope:5}),h={...l,properties:{"editor.tabSize":{type:"number",default:r.R.tabSize,minimum:1,markdownDescription:o.kg("tabSize","The number of spaces a tab is equal to. This setting is overridden based on the file contents when {0} is on.","`#editor.detectIndentation#`")},"editor.indentSize":{anyOf:[{type:"string",enum:["tabSize"]},{type:"number",minimum:1}],default:"tabSize",markdownDescription:o.kg("indentSize",'The number of spaces used for indentation or `"tabSize"` to use the value from `#editor.tabSize#`. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.')},"editor.insertSpaces":{type:"boolean",default:r.R.insertSpaces,markdownDescription:o.kg("insertSpaces","Insert spaces when pressing `Tab`. This setting is overridden based on the file contents when {0} is on.","`#editor.detectIndentation#`")},"editor.detectIndentation":{type:"boolean",default:r.R.detectIndentation,markdownDescription:o.kg("detectIndentation","Controls whether {0} and {1} will be automatically detected when a file is opened based on the file contents.","`#editor.tabSize#`","`#editor.insertSpaces#`")},"editor.trimAutoWhitespace":{type:"boolean",default:r.R.trimAutoWhitespace,description:o.kg("trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"editor.largeFileOptimizations":{type:"boolean",default:r.R.largeFileOptimizations,description:o.kg("largeFileOptimizations","Special handling for large files to disable certain memory intensive features.")},"editor.wordBasedSuggestions":{enum:["off","currentDocument","matchingDocuments","allDocuments"],default:"matchingDocuments",enumDescriptions:[o.kg("wordBasedSuggestions.off","Turn off Word Based Suggestions."),o.kg("wordBasedSuggestions.currentDocument","Only suggest words from the active document."),o.kg("wordBasedSuggestions.matchingDocuments","Suggest words from all open documents of the same language."),o.kg("wordBasedSuggestions.allDocuments","Suggest words from all open documents.")],description:o.kg("wordBasedSuggestions","Controls whether completions should be computed based on words in the document and from which documents they are computed.")},"editor.semanticHighlighting.enabled":{enum:[!0,!1,"configuredByTheme"],enumDescriptions:[o.kg("semanticHighlighting.true","Semantic highlighting enabled for all color themes."),o.kg("semanticHighlighting.false","Semantic highlighting disabled for all color themes."),o.kg("semanticHighlighting.configuredByTheme","Semantic highlighting is configured by the current color theme's `semanticHighlighting` setting.")],default:"configuredByTheme",description:o.kg("semanticHighlighting.enabled","Controls whether the semanticHighlighting is shown for the languages that support it.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:o.kg("stablePeek","Keep peek editors open even when double-clicking their content or when hitting `Escape`.")},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:o.kg("maxTokenizationLineLength","Lines above this length will not be tokenized for performance reasons")},"editor.experimental.asyncTokenization":{type:"boolean",default:!0,description:o.kg("editor.experimental.asyncTokenization","Controls whether the tokenization should happen asynchronously on a web worker."),tags:["experimental"]},"editor.experimental.asyncTokenizationLogging":{type:"boolean",default:!1,description:o.kg("editor.experimental.asyncTokenizationLogging","Controls whether async tokenization should be logged. For debugging only.")},"editor.experimental.asyncTokenizationVerification":{type:"boolean",default:!1,description:o.kg("editor.experimental.asyncTokenizationVerification","Controls whether async tokenization should be verified against legacy background tokenization. Might slow down tokenization. For debugging only."),tags:["experimental"]},"editor.experimental.treeSitterTelemetry":{type:"boolean",default:!1,markdownDescription:o.kg("editor.experimental.treeSitterTelemetry","Controls whether tree sitter parsing should be turned on and telemetry collected. Setting `editor.experimental.preferTreeSitter` for specific languages will take precedence."),tags:["experimental"]},"editor.language.brackets":{type:["array","null"],default:null,description:o.kg("schema.brackets","Defines the bracket symbols that increase or decrease the indentation."),items:{type:"array",items:[{type:"string",description:o.kg("schema.openBracket","The opening bracket character or string sequence.")},{type:"string",description:o.kg("schema.closeBracket","The closing bracket character or string sequence.")}]}},"editor.language.colorizedBracketPairs":{type:["array","null"],default:null,description:o.kg("schema.colorizedBracketPairs","Defines the bracket pairs that are colorized by their nesting level if bracket pair colorization is enabled."),items:{type:"array",items:[{type:"string",description:o.kg("schema.openBracket","The opening bracket character or string sequence.")},{type:"string",description:o.kg("schema.closeBracket","The closing bracket character or string sequence.")}]}},"diffEditor.maxComputationTime":{type:"number",default:s.q.maxComputationTime,description:o.kg("maxComputationTime","Timeout in milliseconds after which diff computation is cancelled. Use 0 for no timeout.")},"diffEditor.maxFileSize":{type:"number",default:s.q.maxFileSize,description:o.kg("maxFileSize","Maximum file size in MB for which to compute diffs. Use 0 for no limit.")},"diffEditor.renderSideBySide":{type:"boolean",default:s.q.renderSideBySide,description:o.kg("sideBySide","Controls whether the diff editor shows the diff side by side or inline.")},"diffEditor.renderSideBySideInlineBreakpoint":{type:"number",default:s.q.renderSideBySideInlineBreakpoint,description:o.kg("renderSideBySideInlineBreakpoint","If the diff editor width is smaller than this value, the inline view is used.")},"diffEditor.useInlineViewWhenSpaceIsLimited":{type:"boolean",default:s.q.useInlineViewWhenSpaceIsLimited,description:o.kg("useInlineViewWhenSpaceIsLimited","If enabled and the editor width is too small, the inline view is used.")},"diffEditor.renderMarginRevertIcon":{type:"boolean",default:s.q.renderMarginRevertIcon,description:o.kg("renderMarginRevertIcon","When enabled, the diff editor shows arrows in its glyph margin to revert changes.")},"diffEditor.renderGutterMenu":{type:"boolean",default:s.q.renderGutterMenu,description:o.kg("renderGutterMenu","When enabled, the diff editor shows a special gutter for revert and stage actions.")},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:s.q.ignoreTrimWhitespace,description:o.kg("ignoreTrimWhitespace","When enabled, the diff editor ignores changes in leading or trailing whitespace.")},"diffEditor.renderIndicators":{type:"boolean",default:s.q.renderIndicators,description:o.kg("renderIndicators","Controls whether the diff editor shows +/- indicators for added/removed changes.")},"diffEditor.codeLens":{type:"boolean",default:s.q.diffCodeLens,description:o.kg("codeLens","Controls whether the editor shows CodeLens.")},"diffEditor.wordWrap":{type:"string",enum:["off","on","inherit"],default:s.q.diffWordWrap,markdownEnumDescriptions:[o.kg("wordWrap.off","Lines will never wrap."),o.kg("wordWrap.on","Lines will wrap at the viewport width."),o.kg("wordWrap.inherit","Lines will wrap according to the {0} setting.","`#editor.wordWrap#`")]},"diffEditor.diffAlgorithm":{type:"string",enum:["legacy","advanced"],default:s.q.diffAlgorithm,markdownEnumDescriptions:[o.kg("diffAlgorithm.legacy","Uses the legacy diffing algorithm."),o.kg("diffAlgorithm.advanced","Uses the advanced diffing algorithm.")],tags:["experimental"]},"diffEditor.hideUnchangedRegions.enabled":{type:"boolean",default:s.q.hideUnchangedRegions.enabled,markdownDescription:o.kg("hideUnchangedRegions.enabled","Controls whether the diff editor shows unchanged regions.")},"diffEditor.hideUnchangedRegions.revealLineCount":{type:"integer",default:s.q.hideUnchangedRegions.revealLineCount,markdownDescription:o.kg("hideUnchangedRegions.revealLineCount","Controls how many lines are used for unchanged regions."),minimum:1},"diffEditor.hideUnchangedRegions.minimumLineCount":{type:"integer",default:s.q.hideUnchangedRegions.minimumLineCount,markdownDescription:o.kg("hideUnchangedRegions.minimumLineCount","Controls how many lines are used as a minimum for unchanged regions."),minimum:1},"diffEditor.hideUnchangedRegions.contextLineCount":{type:"integer",default:s.q.hideUnchangedRegions.contextLineCount,markdownDescription:o.kg("hideUnchangedRegions.contextLineCount","Controls how many lines are used as context when comparing unchanged regions."),minimum:1},"diffEditor.experimental.showMoves":{type:"boolean",default:s.q.experimental.showMoves,markdownDescription:o.kg("showMoves","Controls whether the diff editor should show detected code moves.")},"diffEditor.experimental.showEmptyDecorations":{type:"boolean",default:s.q.experimental.showEmptyDecorations,description:o.kg("showEmptyDecorations","Controls whether the diff editor shows empty decorations to see where characters got inserted or deleted.")},"diffEditor.experimental.useTrueInlineView":{type:"boolean",default:s.q.experimental.useTrueInlineView,description:o.kg("useTrueInlineView","If enabled and the editor uses the inline view, word changes are rendered inline.")}}};for(const f of n.BE){const e=f.schema;if("undefined"!==typeof e)if("undefined"!==typeof(d=e).type||"undefined"!==typeof d.anyOf)h.properties[`editor.${f.name}`]=e;else for(const t in e)Object.hasOwnProperty.call(e,t)&&(h.properties[t]=e[t])}var d;let u=null;function g(){return null===u&&(u=Object.create(null),Object.keys(h.properties).forEach((e=>{u[e]=!0}))),u}function p(e){return g()[`editor.${e}`]||!1}function m(e){return g()[`diffEditor.${e}`]||!1}c.O.as(a.Fd.Configuration).registerConfiguration(h)},87908:(e,t,i)=>{"use strict";i.d(t,{$C:()=>O,BE:()=>H,Bc:()=>k,O4:()=>w,Of:()=>P,XR:()=>M,hZ:()=>g,jT:()=>x,jU:()=>U,ls:()=>b,lw:()=>h,m9:()=>T,n0:()=>d,qB:()=>W,r_:()=>A,wA:()=>C,xZ:()=>I,xq:()=>l,zM:()=>_});var s=i(25890),n=i(10146),r=i(98067),o=i(24329),a=i(26486),c=i(78209);const l=8;class h{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class d{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class u{constructor(e,t,i,s){this.id=e,this.name=t,this.defaultValue=i,this.schema=s}applyUpdate(e,t){return p(e,t)}compute(e,t,i){return i}}class g{constructor(e,t){this.newValue=e,this.didChange=t}}function p(e,t){if("object"!==typeof e||"object"!==typeof t||!e||!t)return new g(t,e!==t);if(Array.isArray(e)||Array.isArray(t)){const i=Array.isArray(e)&&Array.isArray(t)&&s.aI(e,t);return new g(t,!i)}let i=!1;for(const s in t)if(t.hasOwnProperty(s)){const n=p(e[s],t[s]);n.didChange&&(e[s]=n.newValue,i=!0)}return new g(e,i)}class m{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,t){return p(e,t)}validate(e){return this.defaultValue}}class f{constructor(e,t,i,s){this.id=e,this.name=t,this.defaultValue=i,this.schema=s}applyUpdate(e,t){return p(e,t)}validate(e){return"undefined"===typeof e?this.defaultValue:e}compute(e,t,i){return i}}function _(e,t){return"undefined"===typeof e?t:"false"!==e&&Boolean(e)}class v extends f{constructor(e,t,i,s=void 0){"undefined"!==typeof s&&(s.type="boolean",s.default=i),super(e,t,i,s)}validate(e){return _(e,this.defaultValue)}}function C(e,t,i,s){if("undefined"===typeof e)return t;let n=parseInt(e,10);return isNaN(n)?t:(n=Math.max(i,n),n=Math.min(s,n),0|n)}class E extends f{static clampedInt(e,t,i,s){return C(e,t,i,s)}constructor(e,t,i,s,n,r=void 0){"undefined"!==typeof r&&(r.type="integer",r.default=i,r.minimum=s,r.maximum=n),super(e,t,i,r),this.minimum=s,this.maximum=n}validate(e){return E.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}function b(e,t,i,s){if("undefined"===typeof e)return t;const n=S.float(e,t);return S.clamp(n,i,s)}class S extends f{static clamp(e,t,i){return e<t?t:e>i?i:e}static float(e,t){if("number"===typeof e)return e;if("undefined"===typeof e)return t;const i=parseFloat(e);return isNaN(i)?t:i}constructor(e,t,i,s,n){"undefined"!==typeof n&&(n.type="number",n.default=i),super(e,t,i,n),this.validationFn=s}validate(e){return this.validationFn(S.float(e,this.defaultValue))}}class y extends f{static string(e,t){return"string"!==typeof e?t:e}constructor(e,t,i,s=void 0){"undefined"!==typeof s&&(s.type="string",s.default=i),super(e,t,i,s)}validate(e){return y.string(e,this.defaultValue)}}function w(e,t,i,s){return"string"!==typeof e?t:s&&e in s?s[e]:-1===i.indexOf(e)?t:e}class R extends f{constructor(e,t,i,s,n=void 0){"undefined"!==typeof n&&(n.type="string",n.enum=s,n.default=i),super(e,t,i,n),this._allowedValues=s}validate(e){return w(e,this.defaultValue,this._allowedValues)}}class L extends u{constructor(e,t,i,s,n,r,o=void 0){"undefined"!==typeof o&&(o.type="string",o.enum=n,o.default=s),super(e,t,i,o),this._allowedValues=n,this._convert=r}validate(e){return"string"!==typeof e||-1===this._allowedValues.indexOf(e)?this.defaultValue:this._convert(e)}}var T,x;!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"}(T||(T={}));class k extends u{static{this.OFF='"liga" off, "calt" off'}static{this.ON='"liga" on, "calt" on'}constructor(){super(51,"fontLigatures",k.OFF,{anyOf:[{type:"boolean",description:c.kg("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:c.kg("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:c.kg("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return"undefined"===typeof e?this.defaultValue:"string"===typeof e?"false"===e||0===e.length?k.OFF:"true"===e?k.ON:e:Boolean(e)?k.ON:k.OFF}}class A extends u{static{this.OFF="normal"}static{this.TRANSLATE="translate"}constructor(){super(54,"fontVariations",A.OFF,{anyOf:[{type:"boolean",description:c.kg("fontVariations","Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:c.kg("fontVariationSettings","Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:c.kg("fontVariationsGeneral","Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(e){return"undefined"===typeof e?this.defaultValue:"string"===typeof e?"false"===e?A.OFF:"true"===e?A.TRANSLATE:e:Boolean(e)?A.TRANSLATE:A.OFF}compute(e,t,i){return e.fontInfo.fontVariationSettings}}class N extends u{static{this.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"]}static{this.MINIMUM_VALUE=1}static{this.MAXIMUM_VALUE=1e3}constructor(){super(53,"fontWeight",U.fontWeight,{anyOf:[{type:"number",minimum:N.MINIMUM_VALUE,maximum:N.MAXIMUM_VALUE,errorMessage:c.kg("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:N.SUGGESTION_VALUES}],default:U.fontWeight,description:c.kg("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return"normal"===e||"bold"===e?e:String(E.clampedInt(e,U.fontWeight,N.MINIMUM_VALUE,N.MAXIMUM_VALUE))}}class I extends m{constructor(){super(146)}compute(e,t,i){return I.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio,glyphMarginDecorationLaneCount:e.glyphMarginDecorationLaneCount})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=Math.floor(e.paddingTop/e.lineHeight);let s=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(s=Math.max(s,t-1));const n=(i+e.viewLineCount+s)/(e.pixelRatio*e.height);return{typicalViewportLineCount:t,extraLinesBeforeFirstLine:i,extraLinesBeyondLastLine:s,desiredRatio:n,minimapLineCount:Math.floor(e.viewLineCount/n)}}static _computeMinimapLayout(e,t){const i=e.outerWidth,s=e.outerHeight,n=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(n*s),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:s};const r=t.stableMinimapLayoutInput,o=r&&e.outerHeight===r.outerHeight&&e.lineHeight===r.lineHeight&&e.typicalHalfwidthCharacterWidth===r.typicalHalfwidthCharacterWidth&&e.pixelRatio===r.pixelRatio&&e.scrollBeyondLastLine===r.scrollBeyondLastLine&&e.paddingTop===r.paddingTop&&e.paddingBottom===r.paddingBottom&&e.minimap.enabled===r.minimap.enabled&&e.minimap.side===r.minimap.side&&e.minimap.size===r.minimap.size&&e.minimap.showSlider===r.minimap.showSlider&&e.minimap.renderCharacters===r.minimap.renderCharacters&&e.minimap.maxColumn===r.minimap.maxColumn&&e.minimap.scale===r.minimap.scale&&e.verticalScrollbarWidth===r.verticalScrollbarWidth&&e.isViewportWrapping===r.isViewportWrapping,a=e.lineHeight,c=e.typicalHalfwidthCharacterWidth,h=e.scrollBeyondLastLine,d=e.minimap.renderCharacters;let u=n>=2?Math.round(2*e.minimap.scale):e.minimap.scale;const g=e.minimap.maxColumn,p=e.minimap.size,m=e.minimap.side,f=e.verticalScrollbarWidth,_=e.viewLineCount,v=e.remainingWidth,C=e.isViewportWrapping,E=d?2:3;let b=Math.floor(n*s);const S=b/n;let y=!1,w=!1,R=E*u,L=u/n,T=1;if("fill"===p||"fit"===p){const{typicalViewportLineCount:i,extraLinesBeforeFirstLine:r,extraLinesBeyondLastLine:c,desiredRatio:l,minimapLineCount:d}=I.computeContainedMinimapLineCount({viewLineCount:_,scrollBeyondLastLine:h,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:s,lineHeight:a,pixelRatio:n});if(_/d>1)y=!0,w=!0,u=1,R=1,L=u/n;else{let s=!1,h=u+1;if("fit"===p){const e=Math.ceil((r+_+c)*R);C&&o&&v<=t.stableFitRemainingWidth?(s=!0,h=t.stableFitMaxMinimapScale):s=e>b}if("fill"===p||s){y=!0;const s=u;R=Math.min(a*n,Math.max(1,Math.floor(1/l))),C&&o&&v<=t.stableFitRemainingWidth&&(h=t.stableFitMaxMinimapScale),u=Math.min(h,Math.max(1,Math.floor(R/E))),u>s&&(T=Math.min(2,u/s)),L=u/n/T,b=Math.ceil(Math.max(i,r+_+c)*R),C?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=v,t.stableFitMaxMinimapScale=u):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const x=Math.floor(g*L),k=Math.min(x,Math.max(0,Math.floor((v-f-2)*L/(c+L)))+l);let A=Math.floor(n*k);const N=A/n;A=Math.floor(A*T);return{renderMinimap:d?1:2,minimapLeft:"left"===m?0:i-k-f,minimapWidth:k,minimapHeightIsEditorHeight:y,minimapIsSampling:w,minimapScale:u,minimapLineHeight:R,minimapCanvasInnerWidth:A,minimapCanvasInnerHeight:b,minimapCanvasOuterWidth:N,minimapCanvasOuterHeight:S}}static computeLayout(e,t){const i=0|t.outerWidth,s=0|t.outerHeight,n=0|t.lineHeight,r=0|t.lineNumbersDigitCount,o=t.typicalHalfwidthCharacterWidth,a=t.maxDigitWidth,c=t.pixelRatio,l=t.viewLineCount,h=e.get(138),u="inherit"===h?e.get(137):h,g="inherit"===u?e.get(133):u,p=e.get(136),m=t.isDominatedByLongLines,f=e.get(57),_=0!==e.get(68).renderType,v=e.get(69),C=e.get(106),E=e.get(84),b=e.get(73),S=e.get(104),y=S.verticalScrollbarSize,w=S.verticalHasArrows,R=S.arrowSize,L=S.horizontalScrollbarSize,T=e.get(43),x="never"!==e.get(111);let k=e.get(66);T&&x&&(k+=16);let A=0;if(_){const e=Math.max(r,v);A=Math.round(e*a)}let N=0;f&&(N=n*t.glyphMarginDecorationLaneCount);let O=0,D=O+N,M=D+A,P=M+k;const F=i-N-A-k;let U=!1,H=!1,B=-1;"inherit"===u&&m?(U=!0,H=!0):"on"===g||"bounded"===g?H=!0:"wordWrapColumn"===g&&(B=p);const W=I._computeMinimapLayout({outerWidth:i,outerHeight:s,lineHeight:n,typicalHalfwidthCharacterWidth:o,pixelRatio:c,scrollBeyondLastLine:C,paddingTop:E.top,paddingBottom:E.bottom,minimap:b,verticalScrollbarWidth:y,viewLineCount:l,remainingWidth:F,isViewportWrapping:H},t.memory||new d);0!==W.renderMinimap&&0===W.minimapLeft&&(O+=W.minimapWidth,D+=W.minimapWidth,M+=W.minimapWidth,P+=W.minimapWidth);const V=F-W.minimapWidth,z=Math.max(1,Math.floor((V-y-2)/o)),G=w?R:0;return H&&(B=Math.max(1,z),"bounded"===g&&(B=Math.min(B,p))),{width:i,height:s,glyphMarginLeft:O,glyphMarginWidth:N,glyphMarginDecorationLaneCount:t.glyphMarginDecorationLaneCount,lineNumbersLeft:D,lineNumbersWidth:A,decorationsLeft:M,decorationsWidth:k,contentLeft:P,contentWidth:V,minimap:W,viewportColumn:z,isWordWrapMinified:U,isViewportWrapping:H,wrappingColumn:B,verticalScrollbarWidth:y,horizontalScrollbarHeight:L,overviewRuler:{top:G,width:y,height:s-2*G,right:0}}}}!function(e){e.Off="off",e.OnCode="onCode",e.On="on"}(x||(x={}));function O(e){const t=e.get(99);return"editable"===t?e.get(92):"on"!==t}function D(e,t){if("string"!==typeof e)return t;switch(e){case"hidden":return 2;case"visible":return 3;default:return 1}}const M="inUntrustedWorkspace",P={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments",includeStrings:"editor.unicodeHighlight.includeStrings",allowedLocales:"editor.unicodeHighlight.allowedLocales"};function F(e,t,i){const s=i.indexOf(e);return-1===s?t:i[s]}const U={fontFamily:r.zx?"Menlo, Monaco, 'Courier New', monospace":r.j9?"'Droid Sans Mono', 'monospace', monospace":"Consolas, 'Courier New', monospace",fontWeight:"normal",fontSize:r.zx?12:14,lineHeight:0,letterSpacing:0},H=[];function B(e){return H[e.id]=e,e}const W={acceptSuggestionOnCommitCharacter:B(new v(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:c.kg("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:B(new R(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",c.kg("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:c.kg("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:B(new class extends u{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[c.kg("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached."),c.kg("accessibilitySupport.on","Optimize for usage with a Screen Reader."),c.kg("accessibilitySupport.off","Assume a screen reader is not attached.")],default:"auto",tags:["accessibility"],description:c.kg("accessibilitySupport","Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return 0===i?e.accessibilitySupport:i}}),accessibilityPageSize:B(new E(3,"accessibilityPageSize",10,1,1073741824,{description:c.kg("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default."),tags:["accessibility"]})),ariaLabel:B(new y(4,"ariaLabel",c.kg("editorViewAccessibleLabel","Editor content"))),ariaRequired:B(new v(5,"ariaRequired",!1,void 0)),screenReaderAnnounceInlineSuggestion:B(new v(8,"screenReaderAnnounceInlineSuggestion",!0,{description:c.kg("screenReaderAnnounceInlineSuggestion","Control whether inline suggestions are announced by a screen reader."),tags:["accessibility"]})),autoClosingBrackets:B(new R(6,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",c.kg("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),c.kg("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:c.kg("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingComments:B(new R(7,"autoClosingComments","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",c.kg("editor.autoClosingComments.languageDefined","Use language configurations to determine when to autoclose comments."),c.kg("editor.autoClosingComments.beforeWhitespace","Autoclose comments only when the cursor is to the left of whitespace."),""],description:c.kg("autoClosingComments","Controls whether the editor should automatically close comments after the user adds an opening comment.")})),autoClosingDelete:B(new R(9,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",c.kg("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:c.kg("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:B(new R(10,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",c.kg("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:c.kg("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:B(new R(11,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",c.kg("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),c.kg("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:c.kg("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:B(new L(12,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],(function(e){switch(e){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}),{enumDescriptions:[c.kg("editor.autoIndent.none","The editor will not insert indentation automatically."),c.kg("editor.autoIndent.keep","The editor will keep the current line's indentation."),c.kg("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),c.kg("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),c.kg("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:c.kg("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:B(new v(13,"automaticLayout",!1)),autoSurround:B(new R(14,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[c.kg("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),c.kg("editor.autoSurround.quotes","Surround with quotes but not brackets."),c.kg("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:c.kg("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:B(new class extends u{constructor(){const e={enabled:o.R.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:o.R.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(15,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,markdownDescription:c.kg("bracketPairColorization.enabled","Controls whether bracket pair colorization is enabled or not. Use {0} to override the bracket highlight colors.","`#workbench.colorCustomizations#`")},"editor.bracketPairColorization.independentColorPoolPerBracketType":{type:"boolean",default:e.independentColorPoolPerBracketType,description:c.kg("bracketPairColorization.independentColorPoolPerBracketType","Controls whether each bracket type has its own independent color pool.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:_(t.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}}),bracketPairGuides:B(new class extends u{constructor(){const e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(16,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[c.kg("editor.guides.bracketPairs.true","Enables bracket pair guides."),c.kg("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),c.kg("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:e.bracketPairs,description:c.kg("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[c.kg("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),c.kg("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),c.kg("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:c.kg("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:c.kg("editor.guides.highlightActiveBracketPair","Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:c.kg("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[c.kg("editor.guides.highlightActiveIndentation.true","Highlights the active indent guide."),c.kg("editor.guides.highlightActiveIndentation.always","Highlights the active indent guide even if bracket guides are highlighted."),c.kg("editor.guides.highlightActiveIndentation.false","Do not highlight the active indent guide.")],default:e.highlightActiveIndentation,description:c.kg("editor.guides.highlightActiveIndentation","Controls whether the editor should highlight the active indent guide.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{bracketPairs:F(t.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:F(t.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:_(t.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:_(t.indentation,this.defaultValue.indentation),highlightActiveIndentation:F(t.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}),stickyTabStops:B(new v(117,"stickyTabStops",!1,{description:c.kg("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:B(new v(17,"codeLens",!0,{description:c.kg("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:B(new y(18,"codeLensFontFamily","",{description:c.kg("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:B(new E(19,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:c.kg("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used.")})),colorDecorators:B(new v(20,"colorDecorators",!0,{description:c.kg("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),colorDecoratorActivatedOn:B(new R(149,"colorDecoratorsActivatedOn","clickAndHover",["clickAndHover","hover","click"],{enumDescriptions:[c.kg("editor.colorDecoratorActivatedOn.clickAndHover","Make the color picker appear both on click and hover of the color decorator"),c.kg("editor.colorDecoratorActivatedOn.hover","Make the color picker appear on hover of the color decorator"),c.kg("editor.colorDecoratorActivatedOn.click","Make the color picker appear on click of the color decorator")],description:c.kg("colorDecoratorActivatedOn","Controls the condition to make a color picker appear from a color decorator")})),colorDecoratorsLimit:B(new E(21,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:c.kg("colorDecoratorsLimit","Controls the max number of color decorators that can be rendered in an editor at once.")})),columnSelection:B(new v(22,"columnSelection",!1,{description:c.kg("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:B(new class extends u{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(23,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:c.kg("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:c.kg("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{insertSpace:_(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:_(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}),contextmenu:B(new v(24,"contextmenu",!0)),copyWithSyntaxHighlighting:B(new v(25,"copyWithSyntaxHighlighting",!0,{description:c.kg("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:B(new L(26,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],(function(e){switch(e){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}),{description:c.kg("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:B(new R(27,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[c.kg("cursorSmoothCaretAnimation.off","Smooth caret animation is disabled."),c.kg("cursorSmoothCaretAnimation.explicit","Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),c.kg("cursorSmoothCaretAnimation.on","Smooth caret animation is always enabled.")],description:c.kg("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:B(new L(28,"cursorStyle",T.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],(function(e){switch(e){case"line":return T.Line;case"block":return T.Block;case"underline":return T.Underline;case"line-thin":return T.LineThin;case"block-outline":return T.BlockOutline;case"underline-thin":return T.UnderlineThin}}),{description:c.kg("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:B(new E(29,"cursorSurroundingLines",0,0,1073741824,{description:c.kg("cursorSurroundingLines","Controls the minimal number of visible leading lines (minimum 0) and trailing lines (minimum 1) surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:B(new R(30,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[c.kg("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),c.kg("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],markdownDescription:c.kg("cursorSurroundingLinesStyle","Controls when `#editor.cursorSurroundingLines#` should be enforced.")})),cursorWidth:B(new E(31,"cursorWidth",0,0,1073741824,{markdownDescription:c.kg("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:B(new v(32,"disableLayerHinting",!1)),disableMonospaceOptimizations:B(new v(33,"disableMonospaceOptimizations",!1)),domReadOnly:B(new v(34,"domReadOnly",!1)),dragAndDrop:B(new v(35,"dragAndDrop",!0,{description:c.kg("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:B(new class extends v{constructor(){super(37,"emptySelectionClipboard",!0,{description:c.kg("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}),dropIntoEditor:B(new class extends u{constructor(){const e={enabled:!0,showDropSelector:"afterDrop"};super(36,"dropIntoEditor",e,{"editor.dropIntoEditor.enabled":{type:"boolean",default:e.enabled,markdownDescription:c.kg("dropIntoEditor.enabled","Controls whether you can drag and drop a file into a text editor by holding down the `Shift` key (instead of opening the file in an editor).")},"editor.dropIntoEditor.showDropSelector":{type:"string",markdownDescription:c.kg("dropIntoEditor.showDropSelector","Controls if a widget is shown when dropping files into the editor. This widget lets you control how the file is dropped."),enum:["afterDrop","never"],enumDescriptions:[c.kg("dropIntoEditor.showDropSelector.afterDrop","Show the drop selector widget after a file is dropped into the editor."),c.kg("dropIntoEditor.showDropSelector.never","Never show the drop selector widget. Instead the default drop provider is always used.")],default:"afterDrop"}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),showDropSelector:w(t.showDropSelector,this.defaultValue.showDropSelector,["afterDrop","never"])}}}),stickyScroll:B(new class extends u{constructor(){const e={enabled:!0,maxLineCount:5,defaultModel:"outlineModel",scrollWithEditor:!0};super(116,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:c.kg("editor.stickyScroll.enabled","Shows the nested current scopes during the scroll at the top of the editor."),tags:["experimental"]},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:20,description:c.kg("editor.stickyScroll.maxLineCount","Defines the maximum number of sticky lines to show.")},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:e.defaultModel,description:c.kg("editor.stickyScroll.defaultModel","Defines the model to use for determining which lines to stick. If the outline model does not exist, it will fall back on the folding provider model which falls back on the indentation model. This order is respected in all three cases.")},"editor.stickyScroll.scrollWithEditor":{type:"boolean",default:e.scrollWithEditor,description:c.kg("editor.stickyScroll.scrollWithEditor","Enable scrolling of Sticky Scroll with the editor's horizontal scrollbar.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),maxLineCount:E.clampedInt(t.maxLineCount,this.defaultValue.maxLineCount,1,20),defaultModel:w(t.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"]),scrollWithEditor:_(t.scrollWithEditor,this.defaultValue.scrollWithEditor)}}}),experimentalWhitespaceRendering:B(new R(38,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[c.kg("experimentalWhitespaceRendering.svg","Use a new rendering method with svgs."),c.kg("experimentalWhitespaceRendering.font","Use a new rendering method with font characters."),c.kg("experimentalWhitespaceRendering.off","Use the stable rendering method.")],description:c.kg("experimentalWhitespaceRendering","Controls whether whitespace is rendered with a new, experimental method.")})),extraEditorClassName:B(new y(39,"extraEditorClassName","")),fastScrollSensitivity:B(new S(40,"fastScrollSensitivity",5,(e=>e<=0?5:e),{markdownDescription:c.kg("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:B(new class extends u{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(41,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:c.kg("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[c.kg("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),c.kg("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),c.kg("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:c.kg("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[c.kg("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),c.kg("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),c.kg("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:c.kg("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:c.kg("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:r.zx},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:c.kg("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:c.kg("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{cursorMoveOnType:_(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:"boolean"===typeof e.seedSearchStringFromSelection?e.seedSearchStringFromSelection?"always":"never":w(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:"boolean"===typeof e.autoFindInSelection?e.autoFindInSelection?"always":"never":w(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:_(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:_(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:_(t.loop,this.defaultValue.loop)}}}),fixedOverflowWidgets:B(new v(42,"fixedOverflowWidgets",!1)),folding:B(new v(43,"folding",!0,{description:c.kg("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:B(new R(44,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[c.kg("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),c.kg("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:c.kg("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:B(new v(45,"foldingHighlight",!0,{description:c.kg("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:B(new v(46,"foldingImportsByDefault",!1,{description:c.kg("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:B(new E(47,"foldingMaximumRegions",5e3,10,65e3,{description:c.kg("foldingMaximumRegions","The maximum number of foldable regions. Increasing this value may result in the editor becoming less responsive when the current source has a large number of foldable regions.")})),unfoldOnClickAfterEndOfLine:B(new v(48,"unfoldOnClickAfterEndOfLine",!1,{description:c.kg("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:B(new y(49,"fontFamily",U.fontFamily,{description:c.kg("fontFamily","Controls the font family.")})),fontInfo:B(new class extends m{constructor(){super(50)}compute(e,t,i){return e.fontInfo}}),fontLigatures2:B(new k),fontSize:B(new class extends f{constructor(){super(52,"fontSize",U.fontSize,{type:"number",minimum:6,maximum:100,default:U.fontSize,description:c.kg("fontSize","Controls the font size in pixels.")})}validate(e){const t=S.float(e,this.defaultValue);return 0===t?U.fontSize:S.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}),fontWeight:B(new N),fontVariations:B(new A),formatOnPaste:B(new v(55,"formatOnPaste",!1,{description:c.kg("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:B(new v(56,"formatOnType",!1,{description:c.kg("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:B(new v(57,"glyphMargin",!0,{description:c.kg("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:B(new class extends u{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",multipleTests:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:"",alternativeTestsCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[c.kg("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),c.kg("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),c.kg("editor.gotoLocation.multiple.goto","Go to the primary result and enable Peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(58,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:c.kg("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":{description:c.kg("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleTypeDefinitions":{description:c.kg("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleDeclarations":{description:c.kg("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleImplementations":{description:c.kg("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleReferences":{description:c.kg("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist."),...t},"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:c.kg("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:c.kg("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:c.kg("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:c.kg("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:c.kg("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{multiple:w(t.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:t.multipleDefinitions??w(t.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:t.multipleTypeDefinitions??w(t.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:t.multipleDeclarations??w(t.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:t.multipleImplementations??w(t.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:t.multipleReferences??w(t.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),multipleTests:t.multipleTests??w(t.multipleTests,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:y.string(t.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:y.string(t.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:y.string(t.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:y.string(t.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:y.string(t.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand),alternativeTestsCommand:y.string(t.alternativeTestsCommand,this.defaultValue.alternativeTestsCommand)}}}),hideCursorInOverviewRuler:B(new v(59,"hideCursorInOverviewRuler",!1,{description:c.kg("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:B(new class extends u{constructor(){const e={enabled:!0,delay:300,hidingDelay:300,sticky:!0,above:!0};super(60,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:c.kg("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:c.kg("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:c.kg("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.hidingDelay":{type:"integer",minimum:0,default:e.hidingDelay,description:c.kg("hover.hidingDelay","Controls the delay in milliseconds after which the hover is hidden. Requires `editor.hover.sticky` to be enabled.")},"editor.hover.above":{type:"boolean",default:e.above,description:c.kg("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),delay:E.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:_(t.sticky,this.defaultValue.sticky),hidingDelay:E.clampedInt(t.hidingDelay,this.defaultValue.hidingDelay,0,6e5),above:_(t.above,this.defaultValue.above)}}}),inDiffEditor:B(new v(61,"inDiffEditor",!1)),letterSpacing:B(new S(64,"letterSpacing",U.letterSpacing,(e=>S.clamp(e,-5,20)),{description:c.kg("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:B(new class extends u{constructor(){const e={enabled:x.OnCode};super(65,"lightbulb",e,{"editor.lightbulb.enabled":{type:"string",tags:["experimental"],enum:[x.Off,x.OnCode,x.On],default:e.enabled,enumDescriptions:[c.kg("editor.lightbulb.enabled.off","Disable the code action menu."),c.kg("editor.lightbulb.enabled.onCode","Show the code action menu when the cursor is on lines with code."),c.kg("editor.lightbulb.enabled.on","Show the code action menu when the cursor is on lines with code or on empty lines.")],description:c.kg("enabled","Enables the Code Action lightbulb in the editor.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;return{enabled:w(e.enabled,this.defaultValue.enabled,[x.Off,x.OnCode,x.On])}}}),lineDecorationsWidth:B(new class extends u{constructor(){super(66,"lineDecorationsWidth",10)}validate(e){if("string"===typeof e&&/^\d+(\.\d+)?ch$/.test(e)){return-parseFloat(e.substring(0,e.length-2))}return E.clampedInt(e,this.defaultValue,0,1e3)}compute(e,t,i){return i<0?E.clampedInt(-i*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):i}}),lineHeight:B(new class extends S{constructor(){super(67,"lineHeight",U.lineHeight,(e=>S.clamp(e,0,150)),{markdownDescription:c.kg("lineHeight","Controls the line height. \n - Use 0 to automatically compute the line height from the font size.\n - Values between 0 and 8 will be used as a multiplier with the font size.\n - Values greater than or equal to 8 will be used as effective values.")})}compute(e,t,i){return e.fontInfo.lineHeight}}),lineNumbers:B(new class extends u{constructor(){super(68,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[c.kg("lineNumbers.off","Line numbers are not rendered."),c.kg("lineNumbers.on","Line numbers are rendered as absolute number."),c.kg("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),c.kg("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:c.kg("lineNumbers","Controls the display of line numbers.")})}validate(e){let t=this.defaultValue.renderType,i=this.defaultValue.renderFn;return"undefined"!==typeof e&&("function"===typeof e?(t=4,i=e):t="interval"===e?3:"relative"===e?2:"on"===e?1:0),{renderType:t,renderFn:i}}}),lineNumbersMinChars:B(new E(69,"lineNumbersMinChars",5,1,300)),linkedEditing:B(new v(70,"linkedEditing",!1,{description:c.kg("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing.")})),links:B(new v(71,"links",!0,{description:c.kg("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:B(new R(72,"matchBrackets","always",["always","near","never"],{description:c.kg("matchBrackets","Highlight matching brackets.")})),minimap:B(new class extends u{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1,showRegionSectionHeaders:!0,showMarkSectionHeaders:!0,sectionHeaderFontSize:9,sectionHeaderLetterSpacing:1};super(73,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:c.kg("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:e.autohide,description:c.kg("minimap.autohide","Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[c.kg("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),c.kg("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),c.kg("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:c.kg("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:c.kg("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:c.kg("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:c.kg("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:c.kg("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:c.kg("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")},"editor.minimap.showRegionSectionHeaders":{type:"boolean",default:e.showRegionSectionHeaders,description:c.kg("minimap.showRegionSectionHeaders","Controls whether named regions are shown as section headers in the minimap.")},"editor.minimap.showMarkSectionHeaders":{type:"boolean",default:e.showMarkSectionHeaders,description:c.kg("minimap.showMarkSectionHeaders","Controls whether MARK: comments are shown as section headers in the minimap.")},"editor.minimap.sectionHeaderFontSize":{type:"number",default:e.sectionHeaderFontSize,description:c.kg("minimap.sectionHeaderFontSize","Controls the font size of section headers in the minimap.")},"editor.minimap.sectionHeaderLetterSpacing":{type:"number",default:e.sectionHeaderLetterSpacing,description:c.kg("minimap.sectionHeaderLetterSpacing","Controls the amount of space (in pixels) between characters of section header. This helps the readability of the header in small font sizes.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),autohide:_(t.autohide,this.defaultValue.autohide),size:w(t.size,this.defaultValue.size,["proportional","fill","fit"]),side:w(t.side,this.defaultValue.side,["right","left"]),showSlider:w(t.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:_(t.renderCharacters,this.defaultValue.renderCharacters),scale:E.clampedInt(t.scale,1,1,3),maxColumn:E.clampedInt(t.maxColumn,this.defaultValue.maxColumn,1,1e4),showRegionSectionHeaders:_(t.showRegionSectionHeaders,this.defaultValue.showRegionSectionHeaders),showMarkSectionHeaders:_(t.showMarkSectionHeaders,this.defaultValue.showMarkSectionHeaders),sectionHeaderFontSize:S.clamp(t.sectionHeaderFontSize??this.defaultValue.sectionHeaderFontSize,4,32),sectionHeaderLetterSpacing:S.clamp(t.sectionHeaderLetterSpacing??this.defaultValue.sectionHeaderLetterSpacing,0,5)}}}),mouseStyle:B(new R(74,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:B(new S(75,"mouseWheelScrollSensitivity",1,(e=>0===e?1:e),{markdownDescription:c.kg("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:B(new v(76,"mouseWheelZoom",!1,{markdownDescription:r.zx?c.kg("mouseWheelZoom.mac","Zoom the font of the editor when using mouse wheel and holding `Cmd`."):c.kg("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:B(new v(77,"multiCursorMergeOverlapping",!0,{description:c.kg("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:B(new L(78,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],(function(e){return"ctrlCmd"===e?r.zx?"metaKey":"ctrlKey":"altKey"}),{markdownEnumDescriptions:[c.kg("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),c.kg("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:c.kg({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the [multicursor modifier](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:B(new R(79,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[c.kg("multiCursorPaste.spread","Each cursor pastes a single line of the text."),c.kg("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:c.kg("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),multiCursorLimit:B(new E(80,"multiCursorLimit",1e4,1,1e5,{markdownDescription:c.kg("multiCursorLimit","Controls the max number of cursors that can be in an active editor at once.")})),occurrencesHighlight:B(new R(81,"occurrencesHighlight","singleFile",["off","singleFile","multiFile"],{markdownEnumDescriptions:[c.kg("occurrencesHighlight.off","Does not highlight occurrences."),c.kg("occurrencesHighlight.singleFile","Highlights occurrences only in the current file."),c.kg("occurrencesHighlight.multiFile","Experimental: Highlights occurrences across all valid open files.")],markdownDescription:c.kg("occurrencesHighlight","Controls whether occurrences should be highlighted across open files.")})),overviewRulerBorder:B(new v(82,"overviewRulerBorder",!0,{description:c.kg("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:B(new E(83,"overviewRulerLanes",3,0,3)),padding:B(new class extends u{constructor(){super(84,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:c.kg("padding.top","Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:c.kg("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{top:E.clampedInt(t.top,0,0,1e3),bottom:E.clampedInt(t.bottom,0,0,1e3)}}}),pasteAs:B(new class extends u{constructor(){const e={enabled:!0,showPasteSelector:"afterPaste"};super(85,"pasteAs",e,{"editor.pasteAs.enabled":{type:"boolean",default:e.enabled,markdownDescription:c.kg("pasteAs.enabled","Controls whether you can paste content in different ways.")},"editor.pasteAs.showPasteSelector":{type:"string",markdownDescription:c.kg("pasteAs.showPasteSelector","Controls if a widget is shown when pasting content in to the editor. This widget lets you control how the file is pasted."),enum:["afterPaste","never"],enumDescriptions:[c.kg("pasteAs.showPasteSelector.afterPaste","Show the paste selector widget after content is pasted into the editor."),c.kg("pasteAs.showPasteSelector.never","Never show the paste selector widget. Instead the default pasting behavior is always used.")],default:"afterPaste"}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),showPasteSelector:w(t.showPasteSelector,this.defaultValue.showPasteSelector,["afterPaste","never"])}}}),parameterHints:B(new class extends u{constructor(){const e={enabled:!0,cycle:!0};super(86,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:c.kg("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:c.kg("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),cycle:_(t.cycle,this.defaultValue.cycle)}}}),peekWidgetDefaultFocus:B(new R(87,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[c.kg("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),c.kg("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:c.kg("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),placeholder:B(new class extends u{constructor(){super(88,"placeholder",void 0)}validate(e){return"undefined"===typeof e?this.defaultValue:"string"===typeof e?e:this.defaultValue}}),definitionLinkOpensInPeek:B(new v(89,"definitionLinkOpensInPeek",!1,{description:c.kg("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:B(new class extends u{constructor(){const e={other:"on",comments:"off",strings:"off"},t=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[c.kg("on","Quick suggestions show inside the suggest widget"),c.kg("inline","Quick suggestions show as ghost text"),c.kg("off","Quick suggestions are disabled")]}];super(90,"quickSuggestions",e,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:t,default:e.strings,description:c.kg("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{anyOf:t,default:e.comments,description:c.kg("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{anyOf:t,default:e.other,description:c.kg("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}},default:e,markdownDescription:c.kg("quickSuggestions","Controls whether suggestions should automatically show up while typing. This can be controlled for typing in comments, strings, and other code. Quick suggestion can be configured to show as ghost text or with the suggest widget. Also be aware of the {0}-setting which controls if suggestions are triggered by special characters.","`#editor.suggestOnTriggerCharacters#`")}),this.defaultValue=e}validate(e){if("boolean"===typeof e){const t=e?"on":"off";return{comments:t,strings:t,other:t}}if(!e||"object"!==typeof e)return this.defaultValue;const{other:t,comments:i,strings:s}=e,n=["on","inline","off"];let r,o,a;return r="boolean"===typeof t?t?"on":"off":w(t,this.defaultValue.other,n),o="boolean"===typeof i?i?"on":"off":w(i,this.defaultValue.comments,n),a="boolean"===typeof s?s?"on":"off":w(s,this.defaultValue.strings,n),{other:r,comments:o,strings:a}}}),quickSuggestionsDelay:B(new E(91,"quickSuggestionsDelay",10,0,1073741824,{description:c.kg("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:B(new v(92,"readOnly",!1)),readOnlyMessage:B(new class extends u{constructor(){super(93,"readOnlyMessage",undefined)}validate(e){return e&&"object"===typeof e?e:this.defaultValue}}),renameOnType:B(new v(94,"renameOnType",!1,{description:c.kg("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:c.kg("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:B(new v(95,"renderControlCharacters",!0,{description:c.kg("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:B(new R(96,"renderFinalNewline",r.j9?"dimmed":"on",["off","on","dimmed"],{description:c.kg("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:B(new R(97,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",c.kg("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:c.kg("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:B(new v(98,"renderLineHighlightOnlyWhenFocus",!1,{description:c.kg("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:B(new R(99,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:B(new R(100,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",c.kg("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),c.kg("renderWhitespace.selection","Render whitespace characters only on selected text."),c.kg("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:c.kg("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:B(new E(101,"revealHorizontalRightPadding",15,0,1e3)),roundedSelection:B(new v(102,"roundedSelection",!0,{description:c.kg("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:B(new class extends u{constructor(){const e=[],t={type:"number",description:c.kg("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(103,"rulers",e,{type:"array",items:{anyOf:[t,{type:["object"],properties:{column:t,color:{type:"string",description:c.kg("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:c.kg("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(e){if(Array.isArray(e)){const t=[];for(const i of e)if("number"===typeof i)t.push({column:E.clampedInt(i,0,0,1e4),color:null});else if(i&&"object"===typeof i){const e=i;t.push({column:E.clampedInt(e.column,0,0,1e4),color:e.color})}return t.sort(((e,t)=>e.column-t.column)),t}return this.defaultValue}}),scrollbar:B(new class extends u{constructor(){const e={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1,ignoreHorizontalScrollbarInContentHeight:!1};super(104,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[c.kg("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),c.kg("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),c.kg("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:c.kg("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[c.kg("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),c.kg("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),c.kg("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:c.kg("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:c.kg("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:c.kg("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:c.kg("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")},"editor.scrollbar.ignoreHorizontalScrollbarInContentHeight":{type:"boolean",default:e.ignoreHorizontalScrollbarInContentHeight,description:c.kg("scrollbar.ignoreHorizontalScrollbarInContentHeight","When set, the horizontal scrollbar will not increase the size of the editor's content.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e,i=E.clampedInt(t.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),s=E.clampedInt(t.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:E.clampedInt(t.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:D(t.vertical,this.defaultValue.vertical),horizontal:D(t.horizontal,this.defaultValue.horizontal),useShadows:_(t.useShadows,this.defaultValue.useShadows),verticalHasArrows:_(t.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:_(t.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:_(t.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:_(t.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:i,horizontalSliderSize:E.clampedInt(t.horizontalSliderSize,i,0,1e3),verticalScrollbarSize:s,verticalSliderSize:E.clampedInt(t.verticalSliderSize,s,0,1e3),scrollByPage:_(t.scrollByPage,this.defaultValue.scrollByPage),ignoreHorizontalScrollbarInContentHeight:_(t.ignoreHorizontalScrollbarInContentHeight,this.defaultValue.ignoreHorizontalScrollbarInContentHeight)}}}),scrollBeyondLastColumn:B(new E(105,"scrollBeyondLastColumn",4,0,1073741824,{description:c.kg("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:B(new v(106,"scrollBeyondLastLine",!0,{description:c.kg("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:B(new v(107,"scrollPredominantAxis",!0,{description:c.kg("scrollPredominantAxis","Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:B(new v(108,"selectionClipboard",!0,{description:c.kg("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:r.j9})),selectionHighlight:B(new v(109,"selectionHighlight",!0,{description:c.kg("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:B(new v(110,"selectOnLineNumbers",!0)),showFoldingControls:B(new R(111,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[c.kg("showFoldingControls.always","Always show the folding controls."),c.kg("showFoldingControls.never","Never show the folding controls and reduce the gutter size."),c.kg("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:c.kg("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:B(new v(112,"showUnused",!0,{description:c.kg("showUnused","Controls fading out of unused code.")})),showDeprecated:B(new v(141,"showDeprecated",!0,{description:c.kg("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:B(new class extends u{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(142,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:c.kg("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[c.kg("editor.inlayHints.on","Inlay hints are enabled"),c.kg("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",r.zx?"Ctrl+Option":"Ctrl+Alt"),c.kg("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",r.zx?"Ctrl+Option":"Ctrl+Alt"),c.kg("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:c.kg("inlayHints.fontSize","Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:c.kg("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:c.kg("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return"boolean"===typeof t.enabled&&(t.enabled=t.enabled?"on":"off"),{enabled:w(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:E.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:y.string(t.fontFamily,this.defaultValue.fontFamily),padding:_(t.padding,this.defaultValue.padding)}}}),snippetSuggestions:B(new R(113,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[c.kg("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),c.kg("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),c.kg("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),c.kg("snippetSuggestions.none","Do not show snippet suggestions.")],description:c.kg("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:B(new class extends u{constructor(){super(114,"smartSelect",{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:c.kg("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"},"editor.smartSelect.selectSubwords":{description:c.kg("selectSubwords","Whether subwords (like 'foo' in 'fooBar' or 'foo_bar') should be selected."),default:!0,type:"boolean"}})}validate(e){return e&&"object"===typeof e?{selectLeadingAndTrailingWhitespace:_(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace),selectSubwords:_(e.selectSubwords,this.defaultValue.selectSubwords)}:this.defaultValue}}),smoothScrolling:B(new v(115,"smoothScrolling",!1,{description:c.kg("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:B(new E(118,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:B(new class extends u{constructor(){const e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!1,localityBonus:!1,shareSuggestSelections:!1,selectionMode:"always",showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,matchOnWordStartOnly:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(119,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[c.kg("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),c.kg("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:c.kg("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:c.kg("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:c.kg("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:c.kg("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.selectionMode":{type:"string",enum:["always","never","whenTriggerCharacter","whenQuickSuggestion"],enumDescriptions:[c.kg("suggest.insertMode.always","Always select a suggestion when automatically triggering IntelliSense."),c.kg("suggest.insertMode.never","Never select a suggestion when automatically triggering IntelliSense."),c.kg("suggest.insertMode.whenTriggerCharacter","Select a suggestion only when triggering IntelliSense from a trigger character."),c.kg("suggest.insertMode.whenQuickSuggestion","Select a suggestion only when triggering IntelliSense as you type.")],default:e.selectionMode,markdownDescription:c.kg("suggest.selectionMode","Controls whether a suggestion is selected when the widget shows. Note that this only applies to automatically triggered suggestions ({0} and {1}) and that a suggestion is always selected when explicitly invoked, e.g via `Ctrl+Space`.","`#editor.quickSuggestions#`","`#editor.suggestOnTriggerCharacters#`")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:c.kg("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:c.kg("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:c.kg("suggest.showStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:c.kg("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:c.kg("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget.")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:c.kg("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:c.kg("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.matchOnWordStartOnly","When enabled IntelliSense filtering requires that the first character matches on a word start. For example, `c` on `Console` or `WebContext` but _not_ on `description`. When disabled IntelliSense will show more results but still sorts them by match quality.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{insertMode:w(t.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:_(t.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:_(t.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:_(t.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:_(t.shareSuggestSelections,this.defaultValue.shareSuggestSelections),selectionMode:w(t.selectionMode,this.defaultValue.selectionMode,["always","never","whenQuickSuggestion","whenTriggerCharacter"]),showIcons:_(t.showIcons,this.defaultValue.showIcons),showStatusBar:_(t.showStatusBar,this.defaultValue.showStatusBar),preview:_(t.preview,this.defaultValue.preview),previewMode:w(t.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:_(t.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:_(t.showMethods,this.defaultValue.showMethods),showFunctions:_(t.showFunctions,this.defaultValue.showFunctions),showConstructors:_(t.showConstructors,this.defaultValue.showConstructors),showDeprecated:_(t.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:_(t.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:_(t.showFields,this.defaultValue.showFields),showVariables:_(t.showVariables,this.defaultValue.showVariables),showClasses:_(t.showClasses,this.defaultValue.showClasses),showStructs:_(t.showStructs,this.defaultValue.showStructs),showInterfaces:_(t.showInterfaces,this.defaultValue.showInterfaces),showModules:_(t.showModules,this.defaultValue.showModules),showProperties:_(t.showProperties,this.defaultValue.showProperties),showEvents:_(t.showEvents,this.defaultValue.showEvents),showOperators:_(t.showOperators,this.defaultValue.showOperators),showUnits:_(t.showUnits,this.defaultValue.showUnits),showValues:_(t.showValues,this.defaultValue.showValues),showConstants:_(t.showConstants,this.defaultValue.showConstants),showEnums:_(t.showEnums,this.defaultValue.showEnums),showEnumMembers:_(t.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:_(t.showKeywords,this.defaultValue.showKeywords),showWords:_(t.showWords,this.defaultValue.showWords),showColors:_(t.showColors,this.defaultValue.showColors),showFiles:_(t.showFiles,this.defaultValue.showFiles),showReferences:_(t.showReferences,this.defaultValue.showReferences),showFolders:_(t.showFolders,this.defaultValue.showFolders),showTypeParameters:_(t.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:_(t.showSnippets,this.defaultValue.showSnippets),showUsers:_(t.showUsers,this.defaultValue.showUsers),showIssues:_(t.showIssues,this.defaultValue.showIssues)}}}),inlineSuggest:B(new class extends u{constructor(){const e={enabled:!0,mode:"subwordSmart",showToolbar:"onHover",suppressSuggestions:!1,keepOnBlur:!1,fontFamily:"default"};super(62,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:c.kg("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")},"editor.inlineSuggest.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[c.kg("inlineSuggest.showToolbar.always","Show the inline suggestion toolbar whenever an inline suggestion is shown."),c.kg("inlineSuggest.showToolbar.onHover","Show the inline suggestion toolbar when hovering over an inline suggestion."),c.kg("inlineSuggest.showToolbar.never","Never show the inline suggestion toolbar.")],description:c.kg("inlineSuggest.showToolbar","Controls when to show the inline suggestion toolbar.")},"editor.inlineSuggest.suppressSuggestions":{type:"boolean",default:e.suppressSuggestions,description:c.kg("inlineSuggest.suppressSuggestions","Controls how inline suggestions interact with the suggest widget. If enabled, the suggest widget is not shown automatically when inline suggestions are available.")},"editor.inlineSuggest.fontFamily":{type:"string",default:e.fontFamily,description:c.kg("inlineSuggest.fontFamily","Controls the font family of the inline suggestions.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),mode:w(t.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"]),showToolbar:w(t.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),suppressSuggestions:_(t.suppressSuggestions,this.defaultValue.suppressSuggestions),keepOnBlur:_(t.keepOnBlur,this.defaultValue.keepOnBlur),fontFamily:y.string(t.fontFamily,this.defaultValue.fontFamily)}}}),inlineEdit:B(new class extends u{constructor(){const e={enabled:!1,showToolbar:"onHover",fontFamily:"default",keepOnBlur:!1};super(63,"experimentalInlineEdit",e,{"editor.experimentalInlineEdit.enabled":{type:"boolean",default:e.enabled,description:c.kg("inlineEdit.enabled","Controls whether to show inline edits in the editor.")},"editor.experimentalInlineEdit.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[c.kg("inlineEdit.showToolbar.always","Show the inline edit toolbar whenever an inline suggestion is shown."),c.kg("inlineEdit.showToolbar.onHover","Show the inline edit toolbar when hovering over an inline suggestion."),c.kg("inlineEdit.showToolbar.never","Never show the inline edit toolbar.")],description:c.kg("inlineEdit.showToolbar","Controls when to show the inline edit toolbar.")},"editor.experimentalInlineEdit.fontFamily":{type:"string",default:e.fontFamily,description:c.kg("inlineEdit.fontFamily","Controls the font family of the inline edit.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),showToolbar:w(t.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),fontFamily:y.string(t.fontFamily,this.defaultValue.fontFamily),keepOnBlur:_(t.keepOnBlur,this.defaultValue.keepOnBlur)}}}),inlineCompletionsAccessibilityVerbose:B(new v(150,"inlineCompletionsAccessibilityVerbose",!1,{description:c.kg("inlineCompletionsAccessibilityVerbose","Controls whether the accessibility hint should be provided to screen reader users when an inline completion is shown.")})),suggestFontSize:B(new E(120,"suggestFontSize",0,0,1e3,{markdownDescription:c.kg("suggestFontSize","Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),suggestLineHeight:B(new E(121,"suggestLineHeight",0,0,1e3,{markdownDescription:c.kg("suggestLineHeight","Line height for the suggest widget. When set to {0}, the value of {1} is used. The minimum value is 8.","`0`","`#editor.lineHeight#`")})),suggestOnTriggerCharacters:B(new v(122,"suggestOnTriggerCharacters",!0,{description:c.kg("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:B(new R(123,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[c.kg("suggestSelection.first","Always select the first suggestion."),c.kg("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),c.kg("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:c.kg("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:B(new R(124,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[c.kg("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),c.kg("tabCompletion.off","Disable tab completions."),c.kg("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:c.kg("tabCompletion","Enables tab completions.")})),tabIndex:B(new E(125,"tabIndex",0,-1,1073741824)),unicodeHighlight:B(new class extends u{constructor(){const e={nonBasicASCII:M,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:M,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(126,"unicodeHighlight",e,{[P.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,M],default:e.nonBasicASCII,description:c.kg("unicodeHighlight.nonBasicASCII","Controls whether all non-basic ASCII characters are highlighted. Only characters between U+0020 and U+007E, tab, line-feed and carriage-return are considered basic ASCII.")},[P.invisibleCharacters]:{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:c.kg("unicodeHighlight.invisibleCharacters","Controls whether characters that just reserve space or have no width at all are highlighted.")},[P.ambiguousCharacters]:{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:c.kg("unicodeHighlight.ambiguousCharacters","Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},[P.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,M],default:e.includeComments,description:c.kg("unicodeHighlight.includeComments","Controls whether characters in comments should also be subject to Unicode highlighting.")},[P.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,M],default:e.includeStrings,description:c.kg("unicodeHighlight.includeStrings","Controls whether characters in strings should also be subject to Unicode highlighting.")},[P.allowedCharacters]:{restricted:!0,type:"object",default:e.allowedCharacters,description:c.kg("unicodeHighlight.allowedCharacters","Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[P.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:e.allowedLocales,description:c.kg("unicodeHighlight.allowedLocales","Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(e,t){let i=!1;t.allowedCharacters&&e&&(n.aI(e.allowedCharacters,t.allowedCharacters)||(e={...e,allowedCharacters:t.allowedCharacters},i=!0)),t.allowedLocales&&e&&(n.aI(e.allowedLocales,t.allowedLocales)||(e={...e,allowedLocales:t.allowedLocales},i=!0));const s=super.applyUpdate(e,t);return i?new g(s.newValue,!0):s}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{nonBasicASCII:F(t.nonBasicASCII,M,[!0,!1,M]),invisibleCharacters:_(t.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:_(t.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:F(t.includeComments,M,[!0,!1,M]),includeStrings:F(t.includeStrings,M,[!0,!1,M]),allowedCharacters:this.validateBooleanMap(e.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(e.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(e,t){if("object"!==typeof e||!e)return t;const i={};for(const[s,n]of Object.entries(e))!0===n&&(i[s]=!0);return i}}),unusualLineTerminators:B(new R(127,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[c.kg("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),c.kg("unusualLineTerminators.off","Unusual line terminators are ignored."),c.kg("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:c.kg("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:B(new v(128,"useShadowDOM",!0)),useTabStops:B(new v(129,"useTabStops",!0,{description:c.kg("useTabStops","Spaces and tabs are inserted and deleted in alignment with tab stops.")})),wordBreak:B(new R(130,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[c.kg("wordBreak.normal","Use the default line break rule."),c.kg("wordBreak.keepAll","Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal.")],description:c.kg("wordBreak","Controls the word break rules used for Chinese/Japanese/Korean (CJK) text.")})),wordSegmenterLocales:B(new class extends u{constructor(){super(131,"wordSegmenterLocales",[],{anyOf:[{description:c.kg("wordSegmenterLocales","Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"string"},{description:c.kg("wordSegmenterLocales","Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"array",items:{type:"string"}}]})}validate(e){if("string"===typeof e&&(e=[e]),Array.isArray(e)){const t=[];for(const i of e)if("string"===typeof i)try{Intl.Segmenter.supportedLocalesOf(i).length>0&&t.push(i)}catch{}return t}return this.defaultValue}}),wordSeparators:B(new y(132,"wordSeparators",a.J3,{description:c.kg("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:B(new R(133,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[c.kg("wordWrap.off","Lines will never wrap."),c.kg("wordWrap.on","Lines will wrap at the viewport width."),c.kg({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),c.kg({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:c.kg({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:B(new y(134,"wordWrapBreakAfterCharacters"," \t})]?|/&.,;\xa2\xb0\u2032\u2033\u2030\u2103\u3001\u3002\uff61\uff64\uffe0\uff0c\uff0e\uff1a\uff1b\uff1f\uff01\uff05\u30fb\uff65\u309d\u309e\u30fd\u30fe\u30fc\u30a1\u30a3\u30a5\u30a7\u30a9\u30c3\u30e3\u30e5\u30e7\u30ee\u30f5\u30f6\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308e\u3095\u3096\u31f0\u31f1\u31f2\u31f3\u31f4\u31f5\u31f6\u31f7\u31f8\u31f9\u31fa\u31fb\u31fc\u31fd\u31fe\u31ff\u3005\u303b\uff67\uff68\uff69\uff6a\uff6b\uff6c\uff6d\uff6e\uff6f\uff70\u201d\u3009\u300b\u300d\u300f\u3011\u3015\uff09\uff3d\uff5d\uff63")),wordWrapBreakBeforeCharacters:B(new y(135,"wordWrapBreakBeforeCharacters","([{\u2018\u201c\u3008\u300a\u300c\u300e\u3010\u3014\uff08\uff3b\uff5b\uff62\xa3\xa5\uff04\uffe1\uffe5+\uff0b")),wordWrapColumn:B(new E(136,"wordWrapColumn",80,1,1073741824,{markdownDescription:c.kg({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:B(new R(137,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:B(new R(138,"wordWrapOverride2","inherit",["off","on","inherit"])),editorClassName:B(new class extends m{constructor(){super(143)}compute(e,t,i){const s=["monaco-editor"];return t.get(39)&&s.push(t.get(39)),e.extraEditorClassName&&s.push(e.extraEditorClassName),"default"===t.get(74)?s.push("mouse-default"):"copy"===t.get(74)&&s.push("mouse-copy"),t.get(112)&&s.push("showUnused"),t.get(141)&&s.push("showDeprecated"),s.join(" ")}}),defaultColorDecorators:B(new v(148,"defaultColorDecorators",!1,{markdownDescription:c.kg("defaultColorDecorators","Controls whether inline color decorations should be shown using the default document color provider")})),pixelRatio:B(new class extends m{constructor(){super(144)}compute(e,t,i){return e.pixelRatio}}),tabFocusMode:B(new v(145,"tabFocusMode",!1,{markdownDescription:c.kg("tabFocusMode","Controls whether the editor receives tabs or defers them to the workbench for navigation.")})),layoutInfo:B(new I),wrappingInfo:B(new class extends m{constructor(){super(147)}compute(e,t,i){const s=t.get(146);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:s.isWordWrapMinified,isViewportWrapping:s.isViewportWrapping,wrappingColumn:s.wrappingColumn}}}),wrappingIndent:B(new class extends u{constructor(){super(139,"wrappingIndent",1,{"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[c.kg("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),c.kg("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),c.kg("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),c.kg("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:c.kg("wrappingIndent","Controls the indentation of wrapped lines."),default:"same"}})}validate(e){switch(e){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}return 1}compute(e,t,i){return 2===t.get(2)?0:i}}),wrappingStrategy:B(new class extends u{constructor(){super(140,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[c.kg("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),c.kg("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:c.kg("wrappingStrategy","Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(e){return w(e,"simple",["simple","advanced"])}compute(e,t,i){return 2===t.get(2)?"advanced":i}})}},79027:(e,t,i)=>{"use strict";i.d(t,{D:()=>n});var s=i(41234);const n=new class{constructor(){this._zoomLevel=0,this._onDidChangeZoomLevel=new s.vl,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}getZoomLevel(){return this._zoomLevel}setZoomLevel(e){e=Math.min(Math.max(-5,e),20),this._zoomLevel!==e&&(this._zoomLevel=e,this._onDidChangeZoomLevel.fire(this._zoomLevel))}}},74196:(e,t,i)=>{"use strict";i.d(t,{YJ:()=>c,_8:()=>a});var s=i(98067),n=i(87908),r=i(79027);const o=s.zx?1.5:1.35;class a{static createFromValidatedSettings(e,t,i){const s=e.get(49),n=e.get(53),r=e.get(52),o=e.get(51),c=e.get(54),l=e.get(67),h=e.get(64);return a._create(s,n,r,o,c,l,h,t,i)}static _create(e,t,i,s,c,l,h,d,u){0===l?l=o*i:l<8&&(l*=i),(l=Math.round(l))<8&&(l=8);const g=1+(u?0:.1*r.D.getZoomLevel());if(i*=g,l*=g,c===n.r_.TRANSLATE)if("normal"===t||"bold"===t)c=n.r_.OFF;else{c=`'wght' ${parseInt(t,10)}`,t="normal"}return new a({pixelRatio:d,fontFamily:e,fontWeight:t,fontSize:i,fontFeatureSettings:s,fontVariationSettings:c,lineHeight:l,letterSpacing:h})}constructor(e){this._bareFontInfoBrand=void 0,this.pixelRatio=e.pixelRatio,this.fontFamily=String(e.fontFamily),this.fontWeight=String(e.fontWeight),this.fontSize=e.fontSize,this.fontFeatureSettings=e.fontFeatureSettings,this.fontVariationSettings=e.fontVariationSettings,this.lineHeight=0|e.lineHeight,this.letterSpacing=e.letterSpacing}getId(){return`${this.pixelRatio}-${this.fontFamily}-${this.fontWeight}-${this.fontSize}-${this.fontFeatureSettings}-${this.fontVariationSettings}-${this.lineHeight}-${this.letterSpacing}`}getMassagedFontFamily(){const e=n.jU.fontFamily,t=a._wrapInQuotes(this.fontFamily);return e&&this.fontFamily!==e?`${t}, ${e}`:t}static _wrapInQuotes(e){return/[,"']/.test(e)?e:/[+ ]/.test(e)?`"${e}"`:e}}class c extends a{constructor(e,t){super(e),this._editorStylingBrand=void 0,this.version=2,this.isTrusted=t,this.isMonospace=e.isMonospace,this.typicalHalfwidthCharacterWidth=e.typicalHalfwidthCharacterWidth,this.typicalFullwidthCharacterWidth=e.typicalFullwidthCharacterWidth,this.canUseHalfwidthRightwardsArrow=e.canUseHalfwidthRightwardsArrow,this.spaceWidth=e.spaceWidth,this.middotWidth=e.middotWidth,this.wsmiddotWidth=e.wsmiddotWidth,this.maxDigitWidth=e.maxDigitWidth}equals(e){return this.fontFamily===e.fontFamily&&this.fontWeight===e.fontWeight&&this.fontSize===e.fontSize&&this.fontFeatureSettings===e.fontFeatureSettings&&this.fontVariationSettings===e.fontVariationSettings&&this.lineHeight===e.lineHeight&&this.letterSpacing===e.letterSpacing&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.typicalFullwidthCharacterWidth===e.typicalFullwidthCharacterWidth&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.maxDigitWidth===e.maxDigitWidth}}},60534:(e,t,i)=>{"use strict";i.d(t,{V:()=>n,y:()=>r});var s=i(85152);class n{constructor(e){const t=(0,s.W)(e);this._defaultValue=t,this._asciiMap=n._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){const t=new Uint8Array(256);return t.fill(e),t}set(e,t){const i=(0,s.W)(t);e>=0&&e<256?this._asciiMap[e]=i:this._map.set(e,i)}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()}}class r{constructor(){this._actual=new n(0)}add(e){this._actual.set(e,1)}has(e){return 1===this._actual.get(e)}clear(){return this._actual.clear()}}},1245:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(91508);class n{static _nextVisibleColumn(e,t,i){return 9===e?n.nextRenderTabStop(t,i):s.ne(e)||s.Ss(e)?t+2:t+1}static visibleColumnFromColumn(e,t,i){const n=Math.min(t-1,e.length),r=e.substring(0,n),o=new s.km(r);let a=0;for(;!o.eol();){const e=s.Z5(r,n,o.offset);o.nextGraphemeLength(),a=this._nextVisibleColumn(e,a,i)}return a}static columnFromVisibleColumn(e,t,i){if(t<=0)return 1;const n=e.length,r=new s.km(e);let o=0,a=1;for(;!r.eol();){const c=s.Z5(e,n,r.offset);r.nextGraphemeLength();const l=this._nextVisibleColumn(c,o,i),h=r.offset+1;if(l>=t){return l-t<t-o?h:a}o=l,a=h}return n+1}static nextRenderTabStop(e,t){return e+t-e%t}static nextIndentTabStop(e,t){return e+t-e%t}static prevRenderTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}static prevIndentTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}}},7085:(e,t,i)=>{"use strict";i.d(t,{k:()=>n});var s=i(36677);class n{static insert(e,t){return{range:new s.Q(e.lineNumber,e.column,e.lineNumber,e.column),text:t,forceMoveMarkers:!0}}static delete(e){return{range:e,text:null}}static replace(e,t){return{range:e,text:t}}static replaceMove(e,t){return{range:e,text:t,forceMoveMarkers:!0}}}},87119:(e,t,i)=>{"use strict";i.d(t,{A3:()=>x,AQ:()=>W,Am:()=>L,As:()=>A,BD:()=>J,Bo:()=>X,CM:()=>w,D0:()=>l,Ek:()=>P,H0:()=>R,I2:()=>Q,IW:()=>ee,If:()=>Z,JB:()=>I,L0:()=>p,Mf:()=>c,P1:()=>re,Pe:()=>se,Qt:()=>f,WD:()=>ne,WS:()=>ie,WY:()=>oe,Xr:()=>D,aZ:()=>B,bB:()=>te,hz:()=>b,je:()=>u,kG:()=>a,kM:()=>h,l5:()=>j,lQ:()=>z,n4:()=>$,ob:()=>E,ow:()=>S,s7:()=>q,sC:()=>d,sH:()=>K,sN:()=>V,ss:()=>G,tK:()=>T,tp:()=>k,vP:()=>y,vV:()=>C,vp:()=>U,w4:()=>m,we:()=>g,x9:()=>O,yI:()=>H,yw:()=>M,zp:()=>Y});var s=i(78209),n=i(47661),r=i(66261),o=i(47612);const a=(0,r.x1A)("editor.lineHighlightBackground",null,s.kg("lineHighlight","Background color for the highlight of line at the cursor position.")),c=(0,r.x1A)("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hcDark:"#f38518",hcLight:r.b1q},s.kg("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),l=((0,r.x1A)("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hcDark:null,hcLight:null},s.kg("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),(0,r.x1A)("editor.rangeHighlightBorder",{dark:null,light:null,hcDark:r.buw,hcLight:r.buw},s.kg("rangeHighlightBorder","Background color of the border around highlighted ranges.")),(0,r.x1A)("editor.symbolHighlightBackground",{dark:r.Ubg,light:r.Ubg,hcDark:null,hcLight:null},s.kg("symbolHighlight","Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."),!0),(0,r.x1A)("editor.symbolHighlightBorder",{dark:null,light:null,hcDark:r.buw,hcLight:r.buw},s.kg("symbolHighlightBorder","Background color of the border around highlighted symbols.")),(0,r.x1A)("editorCursor.foreground",{dark:"#AEAFAD",light:n.Q1.black,hcDark:n.Q1.white,hcLight:"#0F4A85"},s.kg("caret","Color of the editor cursor."))),h=(0,r.x1A)("editorCursor.background",null,s.kg("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),d=(0,r.x1A)("editorMultiCursor.primary.foreground",l,s.kg("editorMultiCursorPrimaryForeground","Color of the primary editor cursor when multiple cursors are present.")),u=(0,r.x1A)("editorMultiCursor.primary.background",h,s.kg("editorMultiCursorPrimaryBackground","The background color of the primary editor cursor when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),g=(0,r.x1A)("editorMultiCursor.secondary.foreground",l,s.kg("editorMultiCursorSecondaryForeground","Color of secondary editor cursors when multiple cursors are present.")),p=(0,r.x1A)("editorMultiCursor.secondary.background",h,s.kg("editorMultiCursorSecondaryBackground","The background color of secondary editor cursors when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),m=(0,r.x1A)("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hcDark:"#e3e4e229",hcLight:"#CCCCCC"},s.kg("editorWhitespaces","Color of whitespace characters in the editor.")),f=(0,r.x1A)("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hcDark:n.Q1.white,hcLight:"#292929"},s.kg("editorLineNumbers","Color of editor line numbers.")),_=(0,r.x1A)("editorIndentGuide.background",m,s.kg("editorIndentGuides","Color of the editor indentation guides."),!1,s.kg("deprecatedEditorIndentGuides","'editorIndentGuide.background' is deprecated. Use 'editorIndentGuide.background1' instead.")),v=(0,r.x1A)("editorIndentGuide.activeBackground",m,s.kg("editorActiveIndentGuide","Color of the active editor indentation guides."),!1,s.kg("deprecatedEditorActiveIndentGuide","'editorIndentGuide.activeBackground' is deprecated. Use 'editorIndentGuide.activeBackground1' instead.")),C=(0,r.x1A)("editorIndentGuide.background1",_,s.kg("editorIndentGuides1","Color of the editor indentation guides (1).")),E=(0,r.x1A)("editorIndentGuide.background2","#00000000",s.kg("editorIndentGuides2","Color of the editor indentation guides (2).")),b=(0,r.x1A)("editorIndentGuide.background3","#00000000",s.kg("editorIndentGuides3","Color of the editor indentation guides (3).")),S=(0,r.x1A)("editorIndentGuide.background4","#00000000",s.kg("editorIndentGuides4","Color of the editor indentation guides (4).")),y=(0,r.x1A)("editorIndentGuide.background5","#00000000",s.kg("editorIndentGuides5","Color of the editor indentation guides (5).")),w=(0,r.x1A)("editorIndentGuide.background6","#00000000",s.kg("editorIndentGuides6","Color of the editor indentation guides (6).")),R=(0,r.x1A)("editorIndentGuide.activeBackground1",v,s.kg("editorActiveIndentGuide1","Color of the active editor indentation guides (1).")),L=(0,r.x1A)("editorIndentGuide.activeBackground2","#00000000",s.kg("editorActiveIndentGuide2","Color of the active editor indentation guides (2).")),T=(0,r.x1A)("editorIndentGuide.activeBackground3","#00000000",s.kg("editorActiveIndentGuide3","Color of the active editor indentation guides (3).")),x=(0,r.x1A)("editorIndentGuide.activeBackground4","#00000000",s.kg("editorActiveIndentGuide4","Color of the active editor indentation guides (4).")),k=(0,r.x1A)("editorIndentGuide.activeBackground5","#00000000",s.kg("editorActiveIndentGuide5","Color of the active editor indentation guides (5).")),A=(0,r.x1A)("editorIndentGuide.activeBackground6","#00000000",s.kg("editorActiveIndentGuide6","Color of the active editor indentation guides (6).")),N=(0,r.x1A)("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hcDark:r.buw,hcLight:r.buw},s.kg("editorActiveLineNumber","Color of editor active line number"),!1,s.kg("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead.")),I=((0,r.x1A)("editorLineNumber.activeForeground",N,s.kg("editorActiveLineNumber","Color of editor active line number")),(0,r.x1A)("editorLineNumber.dimmedForeground",null,s.kg("editorDimmedLineNumber","Color of the final editor line when editor.renderFinalNewline is set to dimmed."))),O=((0,r.x1A)("editorRuler.foreground",{dark:"#5A5A5A",light:n.Q1.lightgrey,hcDark:n.Q1.white,hcLight:"#292929"},s.kg("editorRuler","Color of the editor rulers.")),(0,r.x1A)("editorCodeLens.foreground",{dark:"#999999",light:"#919191",hcDark:"#999999",hcLight:"#292929"},s.kg("editorCodeLensForeground","Foreground color of editor CodeLens")),(0,r.x1A)("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hcDark:"#0064001a",hcLight:"#0000"},s.kg("editorBracketMatchBackground","Background color behind matching brackets")),(0,r.x1A)("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hcDark:r.b1q,hcLight:r.b1q},s.kg("editorBracketMatchBorder","Color for matching brackets boxes")),(0,r.x1A)("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hcDark:"#7f7f7f4d",hcLight:"#666666"},s.kg("editorOverviewRulerBorder","Color of the overview ruler border."))),D=(0,r.x1A)("editorOverviewRuler.background",null,s.kg("editorOverviewRulerBackground","Background color of the editor overview ruler.")),M=((0,r.x1A)("editorGutter.background",r.YtV,s.kg("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),(0,r.x1A)("editorUnnecessaryCode.border",{dark:null,light:null,hcDark:n.Q1.fromHex("#fff").transparent(.8),hcLight:r.b1q},s.kg("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),(0,r.x1A)("editorUnnecessaryCode.opacity",{dark:n.Q1.fromHex("#000a"),light:n.Q1.fromHex("#0007"),hcDark:null,hcLight:null},s.kg("unnecessaryCodeOpacity","Opacity of unnecessary (unused) source code in the editor. For example, \"#000000c0\" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out."))),P=((0,r.x1A)("editorGhostText.border",{dark:null,light:null,hcDark:n.Q1.fromHex("#fff").transparent(.8),hcLight:n.Q1.fromHex("#292929").transparent(.8)},s.kg("editorGhostTextBorder","Border color of ghost text in the editor.")),(0,r.x1A)("editorGhostText.foreground",{dark:n.Q1.fromHex("#ffffff56"),light:n.Q1.fromHex("#0007"),hcDark:null,hcLight:null},s.kg("editorGhostTextForeground","Foreground color of the ghost text in the editor."))),F=((0,r.x1A)("editorGhostText.background",null,s.kg("editorGhostTextBackground","Background color of the ghost text in the editor.")),new n.Q1(new n.bU(0,122,204,.6))),U=(0,r.x1A)("editorOverviewRuler.rangeHighlightForeground",F,s.kg("overviewRulerRangeHighlight","Overview ruler marker color for range highlights. The color must not be opaque so as not to hide underlying decorations."),!0),H=(0,r.x1A)("editorOverviewRuler.errorForeground",{dark:new n.Q1(new n.bU(255,18,18,.7)),light:new n.Q1(new n.bU(255,18,18,.7)),hcDark:new n.Q1(new n.bU(255,50,50,1)),hcLight:"#B5200D"},s.kg("overviewRuleError","Overview ruler marker color for errors.")),B=(0,r.x1A)("editorOverviewRuler.warningForeground",{dark:r.Hng,light:r.Hng,hcDark:r.Stt,hcLight:r.Stt},s.kg("overviewRuleWarning","Overview ruler marker color for warnings.")),W=(0,r.x1A)("editorOverviewRuler.infoForeground",{dark:r.pOz,light:r.pOz,hcDark:r.IIb,hcLight:r.IIb},s.kg("overviewRuleInfo","Overview ruler marker color for infos.")),V=(0,r.x1A)("editorBracketHighlight.foreground1",{dark:"#FFD700",light:"#0431FAFF",hcDark:"#FFD700",hcLight:"#0431FAFF"},s.kg("editorBracketHighlightForeground1","Foreground color of brackets (1). Requires enabling bracket pair colorization.")),z=(0,r.x1A)("editorBracketHighlight.foreground2",{dark:"#DA70D6",light:"#319331FF",hcDark:"#DA70D6",hcLight:"#319331FF"},s.kg("editorBracketHighlightForeground2","Foreground color of brackets (2). Requires enabling bracket pair colorization.")),G=(0,r.x1A)("editorBracketHighlight.foreground3",{dark:"#179FFF",light:"#7B3814FF",hcDark:"#87CEFA",hcLight:"#7B3814FF"},s.kg("editorBracketHighlightForeground3","Foreground color of brackets (3). Requires enabling bracket pair colorization.")),j=(0,r.x1A)("editorBracketHighlight.foreground4","#00000000",s.kg("editorBracketHighlightForeground4","Foreground color of brackets (4). Requires enabling bracket pair colorization.")),K=(0,r.x1A)("editorBracketHighlight.foreground5","#00000000",s.kg("editorBracketHighlightForeground5","Foreground color of brackets (5). Requires enabling bracket pair colorization.")),Y=(0,r.x1A)("editorBracketHighlight.foreground6","#00000000",s.kg("editorBracketHighlightForeground6","Foreground color of brackets (6). Requires enabling bracket pair colorization.")),q=(0,r.x1A)("editorBracketHighlight.unexpectedBracket.foreground",{dark:new n.Q1(new n.bU(255,18,18,.8)),light:new n.Q1(new n.bU(255,18,18,.8)),hcDark:"new Color(new RGBA(255, 50, 50, 1))",hcLight:"#B5200D"},s.kg("editorBracketHighlightUnexpectedBracketForeground","Foreground color of unexpected brackets.")),$=(0,r.x1A)("editorBracketPairGuide.background1","#00000000",s.kg("editorBracketPairGuide.background1","Background color of inactive bracket pair guides (1). Requires enabling bracket pair guides.")),Q=(0,r.x1A)("editorBracketPairGuide.background2","#00000000",s.kg("editorBracketPairGuide.background2","Background color of inactive bracket pair guides (2). Requires enabling bracket pair guides.")),X=(0,r.x1A)("editorBracketPairGuide.background3","#00000000",s.kg("editorBracketPairGuide.background3","Background color of inactive bracket pair guides (3). Requires enabling bracket pair guides.")),Z=(0,r.x1A)("editorBracketPairGuide.background4","#00000000",s.kg("editorBracketPairGuide.background4","Background color of inactive bracket pair guides (4). Requires enabling bracket pair guides.")),J=(0,r.x1A)("editorBracketPairGuide.background5","#00000000",s.kg("editorBracketPairGuide.background5","Background color of inactive bracket pair guides (5). Requires enabling bracket pair guides.")),ee=(0,r.x1A)("editorBracketPairGuide.background6","#00000000",s.kg("editorBracketPairGuide.background6","Background color of inactive bracket pair guides (6). Requires enabling bracket pair guides.")),te=(0,r.x1A)("editorBracketPairGuide.activeBackground1","#00000000",s.kg("editorBracketPairGuide.activeBackground1","Background color of active bracket pair guides (1). Requires enabling bracket pair guides.")),ie=(0,r.x1A)("editorBracketPairGuide.activeBackground2","#00000000",s.kg("editorBracketPairGuide.activeBackground2","Background color of active bracket pair guides (2). Requires enabling bracket pair guides.")),se=(0,r.x1A)("editorBracketPairGuide.activeBackground3","#00000000",s.kg("editorBracketPairGuide.activeBackground3","Background color of active bracket pair guides (3). Requires enabling bracket pair guides.")),ne=(0,r.x1A)("editorBracketPairGuide.activeBackground4","#00000000",s.kg("editorBracketPairGuide.activeBackground4","Background color of active bracket pair guides (4). Requires enabling bracket pair guides.")),re=(0,r.x1A)("editorBracketPairGuide.activeBackground5","#00000000",s.kg("editorBracketPairGuide.activeBackground5","Background color of active bracket pair guides (5). Requires enabling bracket pair guides.")),oe=(0,r.x1A)("editorBracketPairGuide.activeBackground6","#00000000",s.kg("editorBracketPairGuide.activeBackground6","Background color of active bracket pair guides (6). Requires enabling bracket pair guides."));(0,r.x1A)("editorUnicodeHighlight.border",r.Hng,s.kg("editorUnicodeHighlight.border","Border color used to highlight unicode characters.")),(0,r.x1A)("editorUnicodeHighlight.background",r.whs,s.kg("editorUnicodeHighlight.background","Background color used to highlight unicode characters."));(0,o.zy)(((e,t)=>{const i=e.getColor(r.YtV),s=e.getColor(a),n=s&&!s.isTransparent()?s:i;n&&t.addRule(`.monaco-editor .inputarea.ime-input { background-color: ${n}; }`)}))},64454:(e,t,i)=>{"use strict";function s(e){let t=0,i=0,s=0,n=0;for(let r=0,o=e.length;r<o;r++){const a=e.charCodeAt(r);13===a?(0===t&&(i=r),t++,r+1<o&&10===e.charCodeAt(r+1)?(n|=2,r++):n|=3,s=r+1):10===a&&(n|=1,0===t&&(i=r),t++,s=r+1)}return 0===t&&(i=e.length),[t,i,e.length-s,n]}i.d(t,{W:()=>s})},93895:(e,t,i)=>{"use strict";i.d(t,{P:()=>r});var s=i(91508),n=i(1245);function r(e,t,i){let r=s.HG(e);return-1===r&&(r=e.length),function(e,t,i){let s=0;for(let o=0;o<e.length;o++)"\t"===e.charAt(o)?s=n.A.nextIndentTabStop(s,t):s++;let r="";if(!i){const e=Math.floor(s/t);s%=t;for(let t=0;t<e;t++)r+="\t"}for(let n=0;n<s;n++)r+=" ";return r}(e.substring(0,r),t,i)+e.substring(r)}},86571:(e,t,i)=>{"use strict";i.d(t,{M:()=>a,S:()=>c});var s=i(64383),n=i(74444),r=i(36677),o=i(46041);class a{static fromRangeInclusive(e){return new a(e.startLineNumber,e.endLineNumber+1)}static joinMany(e){if(0===e.length)return[];let t=new c(e[0].slice());for(let i=1;i<e.length;i++)t=t.getUnion(new c(e[i].slice()));return t.ranges}static join(e){if(0===e.length)throw new s.D7("lineRanges cannot be empty");let t=e[0].startLineNumber,i=e[0].endLineNumberExclusive;for(let s=1;s<e.length;s++)t=Math.min(t,e[s].startLineNumber),i=Math.max(i,e[s].endLineNumberExclusive);return new a(t,i)}static ofLength(e,t){return new a(e,e+t)}static deserialize(e){return new a(e[0],e[1])}constructor(e,t){if(e>t)throw new s.D7(`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(e){return new a(this.startLineNumber+e,this.endLineNumberExclusive+e)}deltaLength(e){return new a(this.startLineNumber,this.endLineNumberExclusive+e)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(e){return new a(Math.min(this.startLineNumber,e.startLineNumber),Math.max(this.endLineNumberExclusive,e.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(e){const t=Math.max(this.startLineNumber,e.startLineNumber),i=Math.min(this.endLineNumberExclusive,e.endLineNumberExclusive);if(t<=i)return new a(t,i)}intersectsStrict(e){return this.startLineNumber<e.endLineNumberExclusive&&e.startLineNumber<this.endLineNumberExclusive}overlapOrTouch(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 r.Q(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new r.Q(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(e){const t=[];for(let i=this.startLineNumber;i<this.endLineNumberExclusive;i++)t.push(e(i));return t}forEach(e){for(let t=this.startLineNumber;t<this.endLineNumberExclusive;t++)e(t)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}includes(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}toOffsetRange(){return new n.L(this.startLineNumber-1,this.endLineNumberExclusive-1)}}class c{constructor(e=[]){this._normalizedRanges=e}get ranges(){return this._normalizedRanges}addRange(e){if(0===e.length)return;const t=(0,o.hw)(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),i=(0,o.iM)(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===i)this._normalizedRanges.splice(t,0,e);else if(t===i-1){const i=this._normalizedRanges[t];this._normalizedRanges[t]=i.join(e)}else{const s=this._normalizedRanges[t].join(this._normalizedRanges[i-1]).join(e);this._normalizedRanges.splice(t,i-t,s)}}contains(e){const t=(0,o.lx)(this._normalizedRanges,(t=>t.startLineNumber<=e));return!!t&&t.endLineNumberExclusive>e}intersects(e){const t=(0,o.lx)(this._normalizedRanges,(t=>t.startLineNumber<e.endLineNumberExclusive));return!!t&&t.endLineNumberExclusive>e.startLineNumber}getUnion(e){if(0===this._normalizedRanges.length)return e;if(0===e._normalizedRanges.length)return this;const t=[];let i=0,s=0,n=null;for(;i<this._normalizedRanges.length||s<e._normalizedRanges.length;){let r=null;if(i<this._normalizedRanges.length&&s<e._normalizedRanges.length){const t=this._normalizedRanges[i],n=e._normalizedRanges[s];t.startLineNumber<n.startLineNumber?(r=t,i++):(r=n,s++)}else i<this._normalizedRanges.length?(r=this._normalizedRanges[i],i++):(r=e._normalizedRanges[s],s++);null===n?n=r:n.endLineNumberExclusive>=r.startLineNumber?n=new a(n.startLineNumber,Math.max(n.endLineNumberExclusive,r.endLineNumberExclusive)):(t.push(n),n=r)}return null!==n&&t.push(n),new c(t)}subtractFrom(e){const t=(0,o.hw)(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),i=(0,o.iM)(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===i)return new c([e]);const s=[];let n=e.startLineNumber;for(let r=t;r<i;r++){const e=this._normalizedRanges[r];e.startLineNumber>n&&s.push(new a(n,e.startLineNumber)),n=e.endLineNumberExclusive}return n<e.endLineNumberExclusive&&s.push(new a(n,e.endLineNumberExclusive)),new c(s)}toString(){return this._normalizedRanges.map((e=>e.toString())).join(", ")}getIntersection(e){const t=[];let i=0,s=0;for(;i<this._normalizedRanges.length&&s<e._normalizedRanges.length;){const n=this._normalizedRanges[i],r=e._normalizedRanges[s],o=n.intersect(r);o&&!o.isEmpty&&t.push(o),n.endLineNumberExclusive<r.endLineNumberExclusive?i++:s++}return new c(t)}getWithDelta(e){return new c(this._normalizedRanges.map((t=>t.delta(e))))}}},74444:(e,t,i)=>{"use strict";i.d(t,{L:()=>n,h:()=>r});var s=i(64383);class n{static addRange(e,t){let i=0;for(;i<t.length&&t[i].endExclusive<e.start;)i++;let s=i;for(;s<t.length&&t[s].start<=e.endExclusive;)s++;if(i===s)t.splice(i,0,e);else{const r=Math.min(e.start,t[i].start),o=Math.max(e.endExclusive,t[s-1].endExclusive);t.splice(i,s-i,new n(r,o))}}static tryCreate(e,t){if(!(e>t))return new n(e,t)}static ofLength(e){return new n(0,e)}static ofStartAndLength(e,t){return new n(e,e+t)}constructor(e,t){if(this.start=e,this.endExclusive=t,e>t)throw new s.D7(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new n(this.start+e,this.endExclusive+e)}deltaStart(e){return new n(this.start+e,this.endExclusive)}deltaEnd(e){return new n(this.start,this.endExclusive+e)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}contains(e){return this.start<=e&&e<this.endExclusive}join(e){return new n(Math.min(this.start,e.start),Math.max(this.endExclusive,e.endExclusive))}intersect(e){const t=Math.max(this.start,e.start),i=Math.min(this.endExclusive,e.endExclusive);if(t<=i)return new n(t,i)}intersects(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 s.D7(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,e))}clipCyclic(e){if(this.isEmpty)throw new s.D7(`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)}}class r{constructor(){this._sortedRanges=[]}addRange(e){let t=0;for(;t<this._sortedRanges.length&&this._sortedRanges[t].endExclusive<e.start;)t++;let i=t;for(;i<this._sortedRanges.length&&this._sortedRanges[i].start<=e.endExclusive;)i++;if(t===i)this._sortedRanges.splice(t,0,e);else{const s=Math.min(e.start,this._sortedRanges[t].start),r=Math.max(e.endExclusive,this._sortedRanges[i-1].endExclusive);this._sortedRanges.splice(t,i-t,new n(s,r))}}toString(){return this._sortedRanges.map((e=>e.toString())).join(", ")}intersectsStrict(e){let t=0;for(;t<this._sortedRanges.length&&this._sortedRanges[t].endExclusive<=e.start;)t++;return t<this._sortedRanges.length&&this._sortedRanges[t].start<e.endExclusive}intersectWithRange(e){const t=new r;for(const i of this._sortedRanges){const s=i.intersect(e);s&&t.addRange(s)}return t}intersectWithRangeLength(e){return this.intersectWithRange(e).length}get length(){return this._sortedRanges.reduce(((e,t)=>e+t.length),0)}}},83069:(e,t,i)=>{"use strict";i.d(t,{y:()=>s});class s{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new s(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return s.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return s.isBefore(this,e)}static isBefore(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column}isBeforeOrEqual(e){return s.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<=t.column}static compare(e,t){const i=0|e.lineNumber,s=0|t.lineNumber;if(i===s){return(0|e.column)-(0|t.column)}return i-s}clone(){return new s(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new s(e.lineNumber,e.column)}static isIPosition(e){return e&&"number"===typeof e.lineNumber&&"number"===typeof e.column}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}}},36677:(e,t,i)=>{"use strict";i.d(t,{Q:()=>n});var s=i(83069);class n{constructor(e,t,i,s){e>i||e===i&&t>s?(this.startLineNumber=i,this.startColumn=s,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=i,this.endColumn=s)}isEmpty(){return n.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return n.containsPosition(this,e)}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(e){return n.containsRange(this,e)}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(e){return n.strictContainsRange(this,e)}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(e){return n.plusRange(this,e)}static plusRange(e,t){let i,s,r,o;return t.startLineNumber<e.startLineNumber?(i=t.startLineNumber,s=t.startColumn):t.startLineNumber===e.startLineNumber?(i=t.startLineNumber,s=Math.min(t.startColumn,e.startColumn)):(i=e.startLineNumber,s=e.startColumn),t.endLineNumber>e.endLineNumber?(r=t.endLineNumber,o=t.endColumn):t.endLineNumber===e.endLineNumber?(r=t.endLineNumber,o=Math.max(t.endColumn,e.endColumn)):(r=e.endLineNumber,o=e.endColumn),new n(i,s,r,o)}intersectRanges(e){return n.intersectRanges(this,e)}static intersectRanges(e,t){let i=e.startLineNumber,s=e.startColumn,r=e.endLineNumber,o=e.endColumn;const a=t.startLineNumber,c=t.startColumn,l=t.endLineNumber,h=t.endColumn;return i<a?(i=a,s=c):i===a&&(s=Math.max(s,c)),r>l?(r=l,o=h):r===l&&(o=Math.min(o,h)),i>r||i===r&&s>o?null:new n(i,s,r,o)}equalsRange(e){return n.equalsRange(this,e)}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 n.getEndPosition(this)}static getEndPosition(e){return new s.y(e.endLineNumber,e.endColumn)}getStartPosition(){return n.getStartPosition(this)}static getStartPosition(e){return new s.y(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new n(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new n(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return n.collapseToStart(this)}static collapseToStart(e){return new n(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return n.collapseToEnd(this)}static collapseToEnd(e){return new n(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new n(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,t=e){return new n(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new n(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"===typeof e.startLineNumber&&"number"===typeof e.startColumn&&"number"===typeof e.endLineNumber&&"number"===typeof e.endColumn}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 compareRangesUsingStarts(e,t){if(e&&t){const i=0|e.startLineNumber,s=0|t.startLineNumber;if(i===s){const i=0|e.startColumn,s=0|t.startColumn;if(i===s){const i=0|e.endLineNumber,s=0|t.endLineNumber;if(i===s){return(0|e.endColumn)-(0|t.endColumn)}return i-s}return i-s}return i-s}return(e?1:0)-(t?1:0)}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}}},75326:(e,t,i)=>{"use strict";i.d(t,{L:()=>r});var s=i(83069),n=i(36677);class r extends n.Q{constructor(e,t,i,s){super(e,t,i,s),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=i,this.positionColumn=s}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return r.selectionsEqual(this,e)}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(e,t){return 0===this.getDirection()?new r(this.startLineNumber,this.startColumn,e,t):new r(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new s.y(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new s.y(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return 0===this.getDirection()?new r(e,t,this.endLineNumber,this.endColumn):new r(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new r(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return 0===t?new r(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new r(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new r(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.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 i=0,s=e.length;i<s;i++)if(!this.selectionsEqual(e[i],t[i]))return!1;return!0}static isISelection(e){return e&&"number"===typeof e.selectionStartLineNumber&&"number"===typeof e.selectionStartColumn&&"number"===typeof e.positionLineNumber&&"number"===typeof e.positionColumn}static createWithDirection(e,t,i,s,n){return 0===n?new r(e,t,i,s):new r(i,s,e,t)}}},99020:(e,t,i)=>{"use strict";i.d(t,{Su:()=>d,b7:()=>h,fe:()=>u});var s=i(91508),n=i(98067),r=i(81674);let o,a,c;function l(){return o||(o=new TextDecoder("UTF-16LE")),o}function h(){return c||(c=n.cm()?l():(a||(a=new TextDecoder("UTF-16BE")),a)),c}function d(e,t,i){const s=new Uint16Array(e.buffer,t,i);return i>0&&(65279===s[0]||65534===s[0])?function(e,t,i){const s=[];let n=0;for(let o=0;o<i;o++){const i=r.$l(e,t);t+=2,s[n++]=String.fromCharCode(i)}return s.join("")}(e,t,i):l().decode(s)}class u{constructor(e){this._capacity=0|e,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}reset(){this._completedStrings=null,this._bufferLength=0}build(){return null!==this._completedStrings?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()}_buildBuffer(){if(0===this._bufferLength)return"";const e=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return h().decode(e)}_flushBuffer(){const e=this._buildBuffer();this._bufferLength=0,null===this._completedStrings?this._completedStrings=[e]:this._completedStrings[this._completedStrings.length]=e}appendCharCode(e){const t=this._capacity-this._bufferLength;t<=1&&(0===t||s.pc(e))&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendASCIICharCode(e){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendString(e){const t=e.length;if(this._bufferLength+t>=this._capacity)return this._flushBuffer(),void(this._completedStrings[this._completedStrings.length]=e);for(let i=0;i<t;i++)this._buffer[this._bufferLength++]=e.charCodeAt(i)}}},64829:(e,t,i)=>{"use strict";i.d(t,{k:()=>o,x:()=>a});var s=i(81674),n=i(99020);function r(e){return e.replace(/\n/g,"\\n").replace(/\r/g,"\\r")}class o{get oldLength(){return this.oldText.length}get oldEnd(){return this.oldPosition+this.oldText.length}get newLength(){return this.newText.length}get newEnd(){return this.newPosition+this.newText.length}constructor(e,t,i,s){this.oldPosition=e,this.oldText=t,this.newPosition=i,this.newText=s}toString(){return 0===this.oldText.length?`(insert@${this.oldPosition} "${r(this.newText)}")`:0===this.newText.length?`(delete@${this.oldPosition} "${r(this.oldText)}")`:`(replace@${this.oldPosition} "${r(this.oldText)}" with "${r(this.newText)}")`}static _writeStringSize(e){return 4+2*e.length}static _writeString(e,t,i){const n=t.length;s.Sw(e,n,i),i+=4;for(let r=0;r<n;r++)s.gN(e,t.charCodeAt(r),i),i+=2;return i}static _readString(e,t){const i=s.bb(e,t);return t+=4,(0,n.Su)(e,t,i)}writeSize(){return 8+o._writeStringSize(this.oldText)+o._writeStringSize(this.newText)}write(e,t){return s.Sw(e,this.oldPosition,t),t+=4,s.Sw(e,this.newPosition,t),t+=4,t=o._writeString(e,this.oldText,t),t=o._writeString(e,this.newText,t)}static read(e,t,i){const n=s.bb(e,t);t+=4;const r=s.bb(e,t);t+=4;const a=o._readString(e,t);t+=o._writeStringSize(a);const c=o._readString(e,t);return t+=o._writeStringSize(c),i.push(new o(n,a,r,c)),t}}function a(e,t){if(null===e||0===e.length)return t;return new c(e,t).compress()}class c{constructor(e,t){this._prevEdits=e,this._currEdits=t,this._result=[],this._resultLen=0,this._prevLen=this._prevEdits.length,this._prevDeltaOffset=0,this._currLen=this._currEdits.length,this._currDeltaOffset=0}compress(){let e=0,t=0,i=this._getPrev(e),s=this._getCurr(t);for(;e<this._prevLen||t<this._currLen;){if(null===i){this._acceptCurr(s),s=this._getCurr(++t);continue}if(null===s){this._acceptPrev(i),i=this._getPrev(++e);continue}if(s.oldEnd<=i.newPosition){this._acceptCurr(s),s=this._getCurr(++t);continue}if(i.newEnd<=s.oldPosition){this._acceptPrev(i),i=this._getPrev(++e);continue}if(s.oldPosition<i.newPosition){const[e,t]=c._splitCurr(s,i.newPosition-s.oldPosition);this._acceptCurr(e),s=t;continue}if(i.newPosition<s.oldPosition){const[e,t]=c._splitPrev(i,s.oldPosition-i.newPosition);this._acceptPrev(e),i=t;continue}let n,r;if(s.oldEnd===i.newEnd)n=i,r=s,i=this._getPrev(++e),s=this._getCurr(++t);else if(s.oldEnd<i.newEnd){const[e,o]=c._splitPrev(i,s.oldLength);n=e,r=s,i=o,s=this._getCurr(++t)}else{const[t,o]=c._splitCurr(s,i.newLength);n=i,r=t,i=this._getPrev(++e),s=o}this._result[this._resultLen++]=new o(n.oldPosition,n.oldText,r.newPosition,r.newText),this._prevDeltaOffset+=n.newLength-n.oldLength,this._currDeltaOffset+=r.newLength-r.oldLength}const n=c._merge(this._result);return c._removeNoOps(n)}_acceptCurr(e){this._result[this._resultLen++]=c._rebaseCurr(this._prevDeltaOffset,e),this._currDeltaOffset+=e.newLength-e.oldLength}_getCurr(e){return e<this._currLen?this._currEdits[e]:null}_acceptPrev(e){this._result[this._resultLen++]=c._rebasePrev(this._currDeltaOffset,e),this._prevDeltaOffset+=e.newLength-e.oldLength}_getPrev(e){return e<this._prevLen?this._prevEdits[e]:null}static _rebaseCurr(e,t){return new o(t.oldPosition-e,t.oldText,t.newPosition,t.newText)}static _rebasePrev(e,t){return new o(t.oldPosition,t.oldText,t.newPosition+e,t.newText)}static _splitPrev(e,t){const i=e.newText.substr(0,t),s=e.newText.substr(t);return[new o(e.oldPosition,e.oldText,e.newPosition,i),new o(e.oldEnd,"",e.newPosition+t,s)]}static _splitCurr(e,t){const i=e.oldText.substr(0,t),s=e.oldText.substr(t);return[new o(e.oldPosition,i,e.newPosition,e.newText),new o(e.oldPosition+t,s,e.newEnd,"")]}static _merge(e){if(0===e.length)return e;const t=[];let i=0,s=e[0];for(let n=1;n<e.length;n++){const r=e[n];s.oldEnd===r.oldPosition?s=new o(s.oldPosition,s.oldText+r.oldText,s.newPosition,s.newText+r.newText):(t[i++]=s,s=r)}return t[i++]=s,t}static _removeNoOps(e){if(0===e.length)return e;const t=[];let i=0;for(let s=0;s<e.length;s++){const n=e[s];n.oldText!==n.newText&&(t[i++]=n)}return t}}},75295:(e,t,i)=>{"use strict";i.d(t,{CO:()=>g,WR:()=>d,mF:()=>h});var s=i(66782),n=i(64383),r=i(83069),o=i(74444),a=i(50973);class c{constructor(e){this.text=e,this.lineStartOffsetByLineIdx=[],this.lineStartOffsetByLineIdx.push(0);for(let t=0;t<e.length;t++)"\n"===e.charAt(t)&&this.lineStartOffsetByLineIdx.push(t+1)}getOffset(e){return this.lineStartOffsetByLineIdx[e.lineNumber-1]+e.column-1}getOffsetRange(e){return new o.L(this.getOffset(e.getStartPosition()),this.getOffset(e.getEndPosition()))}get textLength(){const e=this.lineStartOffsetByLineIdx.length-1;return new a.W(e,this.text.length-this.lineStartOffsetByLineIdx[e])}}var l=i(36677);class h{constructor(e){this.edits=e,(0,s.Ft)((()=>(0,s.Xo)(e,((e,t)=>e.range.getEndPosition().isBeforeOrEqual(t.range.getStartPosition())))))}apply(e){let t="",i=new r.y(1,1);for(const n of this.edits){const s=n.range,r=s.getStartPosition(),o=s.getEndPosition(),a=u(i,r);a.isEmpty()||(t+=e.getValueOfRange(a)),t+=n.text,i=o}const s=u(i,e.endPositionExclusive);return s.isEmpty()||(t+=e.getValueOfRange(s)),t}applyToString(e){const t=new p(e);return this.apply(t)}getNewRanges(){const e=[];let t=0,i=0,s=0;for(const n of this.edits){const o=a.W.ofText(n.text),c=r.y.lift({lineNumber:n.range.startLineNumber+i,column:n.range.startColumn+(n.range.startLineNumber===t?s:0)}),l=o.createRange(c);e.push(l),i=l.endLineNumber-n.range.endLineNumber,s=l.endColumn-n.range.endColumn,t=n.range.endLineNumber}return e}}class d{constructor(e,t){this.range=e,this.text=t}toSingleEditOperation(){return{range:this.range,text:this.text}}}function u(e,t){if(e.lineNumber===t.lineNumber&&e.column===Number.MAX_SAFE_INTEGER)return l.Q.fromPositions(t,t);if(!e.isBeforeOrEqual(t))throw new n.D7("start must be before end");return new l.Q(e.lineNumber,e.column,t.lineNumber,t.column)}class g{get endPositionExclusive(){return this.length.addToPosition(new r.y(1,1))}}class p extends g{constructor(e){super(),this.value=e,this._t=new c(this.value)}getValueOfRange(e){return this._t.getOffsetRange(e).substring(this.value)}get length(){return this._t.textLength}}},50973:(e,t,i)=>{"use strict";i.d(t,{W:()=>r});var s=i(83069),n=i(36677);class r{static{this.zero=new r(0,0)}static betweenPositions(e,t){return e.lineNumber===t.lineNumber?new r(0,t.column-e.column):new r(t.lineNumber-e.lineNumber,t.column-1)}static ofRange(e){return r.betweenPositions(e.getStartPosition(),e.getEndPosition())}static ofText(e){let t=0,i=0;for(const s of e)"\n"===s?(t++,i=0):i++;return new r(t,i)}constructor(e,t){this.lineCount=e,this.columnCount=t}isGreaterThanOrEqualTo(e){return this.lineCount!==e.lineCount?this.lineCount>e.lineCount:this.columnCount>=e.columnCount}createRange(e){return 0===this.lineCount?new n.Q(e.lineNumber,e.column,e.lineNumber,e.column+this.columnCount):new n.Q(e.lineNumber,e.column,e.lineNumber+this.lineCount,this.columnCount+1)}addToPosition(e){return 0===this.lineCount?new s.y(e.lineNumber,e.column+this.columnCount):new s.y(e.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}}},24329:(e,t,i)=>{"use strict";i.d(t,{R:()=>s});const s={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}}},81782:(e,t,i)=>{"use strict";i.d(t,{i:()=>a});var s=i(74320),n=i(60534);class r extends n.V{constructor(e,t){super(0),this._segmenter=null,this._cachedLine=null,this._cachedSegments=[],this.intlSegmenterLocales=t,this.intlSegmenterLocales.length>0?this._segmenter=new Intl.Segmenter(this.intlSegmenterLocales,{granularity:"word"}):this._segmenter=null;for(let i=0,s=e.length;i<s;i++)this.set(e.charCodeAt(i),2);this.set(32,1),this.set(9,1)}findPrevIntlWordBeforeOrAtOffset(e,t){let i=null;for(const s of this._getIntlSegmenterWordsOnLine(e)){if(s.index>t)break;i=s}return i}findNextIntlWordAtOrAfterOffset(e,t){for(const i of this._getIntlSegmenterWordsOnLine(e))if(!(i.index<t))return i;return null}_getIntlSegmenterWordsOnLine(e){return this._segmenter?(this._cachedLine===e||(this._cachedLine=e,this._cachedSegments=this._filterWordSegments(this._segmenter.segment(e))),this._cachedSegments):[]}_filterWordSegments(e){const t=[];for(const i of e)this._isWordLike(i)&&t.push(i);return t}_isWordLike(e){return!!e.isWordLike}}const o=new s.qK(10);function a(e,t){const i=`${e}/${t.join(",")}`;let s=o.get(i);return s||(s=new r(e,t),o.set(i,s)),s}},26486:(e,t,i)=>{"use strict";i.d(t,{Io:()=>a,J3:()=>r,Ld:()=>o,Th:()=>l});var s=i(42522),n=i(58925);const r="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";const o=function(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const i of r)e.indexOf(i)>=0||(t+="\\"+i);return t+="\\s]+)",new RegExp(t,"g")}();function a(e){let t=o;if(e&&e instanceof RegExp)if(e.global)t=e;else{let i="g";e.ignoreCase&&(i+="i"),e.multiline&&(i+="m"),e.unicode&&(i+="u"),t=new RegExp(e.source,i)}return t.lastIndex=0,t}const c=new n.w;function l(e,t,i,n,r){if(t=a(t),r||(r=s.f.first(c)),i.length>r.maxLen){let s=e-r.maxLen/2;return s<0?s=0:n+=s,l(e,t,i=i.substring(s,e+r.maxLen/2),n,r)}const o=Date.now(),d=e-1-n;let u=-1,g=null;for(let s=1;!(Date.now()-o>=r.timeBudget);s++){const e=d-r.windowSize*s;t.lastIndex=Math.max(0,e);const n=h(t,i,d,u);if(!n&&g)break;if(g=n,e<=0)break;u=e}if(g){const e={word:g[0],startColumn:n+1+g.index,endColumn:n+1+g.index+g[0].length};return t.lastIndex=0,e}return null}function h(e,t,i,s){let n;for(;n=e.exec(t);){const t=n.index||0;if(t<=i&&e.lastIndex>=i)return n;if(s>0&&t>s)return null}return null}c.unshift({maxLen:1e3,windowSize:15,timeBudget:150})},35817:(e,t,i)=>{"use strict";i.d(t,{s:()=>n});var s=i(1245);class n{static whitespaceVisibleColumn(e,t,i){const n=e.length;let r=0,o=-1,a=-1;for(let c=0;c<n;c++){if(c===t)return[o,a,r];r%i===0&&(o=c,a=r);switch(e.charCodeAt(c)){case 32:r+=1;break;case 9:r=s.A.nextRenderTabStop(r,i);break;default:return[-1,-1,-1]}}return t===n?[o,a,r]:[-1,-1,-1]}static atomicPosition(e,t,i,r){const o=e.length,[a,c,l]=n.whitespaceVisibleColumn(e,t,i);if(-1===l)return-1;let h;switch(r){case 0:h=!0;break;case 1:h=!1;break;case 2:if(l%i===0)return t;h=l%i<=i/2}if(h){if(-1===a)return-1;let t=c;for(let n=a;n<o;++n){if(t===c+i)return a;switch(e.charCodeAt(n)){case 32:t+=1;break;case 9:t=s.A.nextRenderTabStop(t,i);break;default:return-1}}return t===c+i?a:-1}const d=s.A.nextRenderTabStop(l,i);let u=l;for(let n=t;n<o;n++){if(u===d)return n;switch(e.charCodeAt(n)){case 32:u+=1;break;case 9:u=s.A.nextRenderTabStop(u,i);break;default:return-1}}return u===d?o:-1}}},1226:(e,t,i)=>{"use strict";i.d(t,{g:()=>h});var s=i(91508),n=i(15092),r=i(32799),o=i(1245),a=i(94564),c=i(36677),l=i(83069);class h{static deleteRight(e,t,i,s){const r=[];let o=3!==e;for(let l=0,h=s.length;l<h;l++){const e=s[l];let h=e;if(h.isEmpty()){const s=e.getPosition(),n=a.I.right(t,i,s);h=new c.Q(n.lineNumber,n.column,s.lineNumber,s.column)}h.isEmpty()?r[l]=null:(h.startLineNumber!==h.endLineNumber&&(o=!0),r[l]=new n.iu(h,""))}return[o,r]}static isAutoClosingPairDelete(e,t,i,s,n,o,a){if("never"===t&&"never"===i)return!1;if("never"===e)return!1;for(let c=0,l=o.length;c<l;c++){const l=o[c],h=l.getPosition();if(!l.isEmpty())return!1;const d=n.getLineContent(h.lineNumber);if(h.column<2||h.column>=d.length+1)return!1;const u=d.charAt(h.column-2),g=s.get(u);if(!g)return!1;if((0,r.vG)(u)){if("never"===i)return!1}else if("never"===t)return!1;const p=d.charAt(h.column-1);let m=!1;for(const e of g)e.open===u&&e.close===p&&(m=!0);if(!m)return!1;if("auto"===e){let e=!1;for(let t=0,i=a.length;t<i;t++){const i=a[t];if(h.lineNumber===i.startLineNumber&&h.column===i.startColumn){e=!0;break}}if(!e)return!1}}return!0}static _runAutoClosingPairDelete(e,t,i){const s=[];for(let r=0,o=i.length;r<o;r++){const e=i[r].getPosition(),t=new c.Q(e.lineNumber,e.column-1,e.lineNumber,e.column+1);s[r]=new n.iu(t,"")}return[!0,s]}static deleteLeft(e,t,i,s,r){if(this.isAutoClosingPairDelete(t.autoClosingDelete,t.autoClosingBrackets,t.autoClosingQuotes,t.autoClosingPairs.autoClosingPairsOpenByEnd,i,s,r))return this._runAutoClosingPairDelete(t,i,s);const o=[];let a=2!==e;for(let c=0,l=s.length;c<l;c++){const e=h.getDeleteRange(s[c],i,t);e.isEmpty()?o[c]=null:(e.startLineNumber!==e.endLineNumber&&(a=!0),o[c]=new n.iu(e,""))}return[a,o]}static getDeleteRange(e,t,i){if(!e.isEmpty())return e;const n=e.getPosition();if(i.useTabStops&&n.column>1){const e=t.getLineContent(n.lineNumber),r=s.HG(e),a=-1===r?e.length+1:r+1;if(n.column<=a){const e=i.visibleColumnFromColumn(t,n),s=o.A.prevIndentTabStop(e,i.indentSize),r=i.columnFromVisibleColumn(t,n.lineNumber,s);return new c.Q(n.lineNumber,r,n.lineNumber,n.column)}}return c.Q.fromPositions(h.getPositionAfterDeleteLeft(n,t),n)}static getPositionAfterDeleteLeft(e,t){if(e.column>1){const i=s.Wd(e.column-1,t.getLineContent(e.lineNumber));return e.with(void 0,i+1)}if(e.lineNumber>1){const i=e.lineNumber-1;return new l.y(i,t.getLineMaxColumn(i))}return e}static cut(e,t,i){const s=[];let o=null;i.sort(((e,t)=>l.y.compare(e.getStartPosition(),t.getEndPosition())));for(let r=0,a=i.length;r<a;r++){const a=i[r];if(a.isEmpty())if(e.emptySelectionClipboard){const e=a.getPosition();let i,l,h,d;e.lineNumber<t.getLineCount()?(i=e.lineNumber,l=1,h=e.lineNumber+1,d=1):e.lineNumber>1&&o?.endLineNumber!==e.lineNumber?(i=e.lineNumber-1,l=t.getLineMaxColumn(e.lineNumber-1),h=e.lineNumber,d=t.getLineMaxColumn(e.lineNumber)):(i=e.lineNumber,l=1,h=e.lineNumber,d=t.getLineMaxColumn(e.lineNumber));const u=new c.Q(i,l,h,d);o=u,u.isEmpty()?s[r]=null:s[r]=new n.iu(u,"")}else s[r]=null;else s[r]=new n.iu(a,"")}return new r.vY(0,s,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}}},50672:(e,t,i)=>{"use strict";i.d(t,{S:()=>s,c:()=>h});var s,n=i(631),r=i(32799),o=i(94564),a=i(97681),c=i(83069),l=i(36677);class h{static addCursorDown(e,t,i){const s=[];let n=0;for(let a=0,c=t.length;a<c;a++){const c=t[a];s[n++]=new r.MF(c.modelState,c.viewState),s[n++]=i?r.MF.fromModelState(o.I.translateDown(e.cursorConfig,e.model,c.modelState)):r.MF.fromViewState(o.I.translateDown(e.cursorConfig,e,c.viewState))}return s}static addCursorUp(e,t,i){const s=[];let n=0;for(let a=0,c=t.length;a<c;a++){const c=t[a];s[n++]=new r.MF(c.modelState,c.viewState),s[n++]=i?r.MF.fromModelState(o.I.translateUp(e.cursorConfig,e.model,c.modelState)):r.MF.fromViewState(o.I.translateUp(e.cursorConfig,e,c.viewState))}return s}static moveToBeginningOfLine(e,t,i){const s=[];for(let n=0,r=t.length;n<r;n++){const r=t[n];s[n]=this._moveToLineStart(e,r,i)}return s}static _moveToLineStart(e,t,i){const s=t.viewState.position.column,n=s===t.modelState.position.column,r=t.viewState.position.lineNumber,o=e.getLineFirstNonWhitespaceColumn(r);return n||s===o?this._moveToLineStartByModel(e,t,i):this._moveToLineStartByView(e,t,i)}static _moveToLineStartByView(e,t,i){return r.MF.fromViewState(o.I.moveToBeginningOfLine(e.cursorConfig,e,t.viewState,i))}static _moveToLineStartByModel(e,t,i){return r.MF.fromModelState(o.I.moveToBeginningOfLine(e.cursorConfig,e.model,t.modelState,i))}static moveToEndOfLine(e,t,i,s){const n=[];for(let r=0,o=t.length;r<o;r++){const o=t[r];n[r]=this._moveToLineEnd(e,o,i,s)}return n}static _moveToLineEnd(e,t,i,s){const n=t.viewState.position,r=e.getLineMaxColumn(n.lineNumber),o=n.column===r,a=t.modelState.position,c=e.model.getLineMaxColumn(a.lineNumber),l=r-n.column===c-a.column;return o||l?this._moveToLineEndByModel(e,t,i,s):this._moveToLineEndByView(e,t,i,s)}static _moveToLineEndByView(e,t,i,s){return r.MF.fromViewState(o.I.moveToEndOfLine(e.cursorConfig,e,t.viewState,i,s))}static _moveToLineEndByModel(e,t,i,s){return r.MF.fromModelState(o.I.moveToEndOfLine(e.cursorConfig,e.model,t.modelState,i,s))}static expandLineSelection(e,t){const i=[];for(let s=0,n=t.length;s<n;s++){const n=t[s],o=n.modelState.selection.startLineNumber,a=e.model.getLineCount();let h,d=n.modelState.selection.endLineNumber;d===a?h=e.model.getLineMaxColumn(a):(d++,h=1),i[s]=r.MF.fromModelState(new r.mG(new l.Q(o,1,o,1),0,0,new c.y(d,h),0))}return i}static moveToBeginningOfBuffer(e,t,i){const s=[];for(let n=0,a=t.length;n<a;n++){const a=t[n];s[n]=r.MF.fromModelState(o.I.moveToBeginningOfBuffer(e.cursorConfig,e.model,a.modelState,i))}return s}static moveToEndOfBuffer(e,t,i){const s=[];for(let n=0,a=t.length;n<a;n++){const a=t[n];s[n]=r.MF.fromModelState(o.I.moveToEndOfBuffer(e.cursorConfig,e.model,a.modelState,i))}return s}static selectAll(e,t){const i=e.model.getLineCount(),s=e.model.getLineMaxColumn(i);return r.MF.fromModelState(new r.mG(new l.Q(1,1,1,1),0,0,new c.y(i,s),0))}static line(e,t,i,s,n){const o=e.model.validatePosition(s),a=n?e.coordinatesConverter.validateViewPosition(new c.y(n.lineNumber,n.column),o):e.coordinatesConverter.convertModelPositionToViewPosition(o);if(!i){const t=e.model.getLineCount();let i=o.lineNumber+1,s=1;return i>t&&(i=t,s=e.model.getLineMaxColumn(i)),r.MF.fromModelState(new r.mG(new l.Q(o.lineNumber,1,i,s),2,0,new c.y(i,s),0))}const h=t.modelState.selectionStart.getStartPosition().lineNumber;if(o.lineNumber<h)return r.MF.fromViewState(t.viewState.move(!0,a.lineNumber,1,0));if(o.lineNumber>h){const i=e.getLineCount();let s=a.lineNumber+1,n=1;return s>i&&(s=i,n=e.getLineMaxColumn(s)),r.MF.fromViewState(t.viewState.move(!0,s,n,0))}{const e=t.modelState.selectionStart.getEndPosition();return r.MF.fromModelState(t.modelState.move(!0,e.lineNumber,e.column,0))}}static word(e,t,i,s){const n=e.model.validatePosition(s);return r.MF.fromModelState(a.z.word(e.cursorConfig,e.model,t.modelState,i,n))}static cancelSelection(e,t){if(!t.modelState.hasSelection())return new r.MF(t.modelState,t.viewState);const i=t.viewState.position.lineNumber,s=t.viewState.position.column;return r.MF.fromViewState(new r.mG(new l.Q(i,s,i,s),0,0,new c.y(i,s),0))}static moveTo(e,t,i,s,n){if(i){if(1===t.modelState.selectionStartKind)return this.word(e,t,i,s);if(2===t.modelState.selectionStartKind)return this.line(e,t,i,s,n)}const o=e.model.validatePosition(s),a=n?e.coordinatesConverter.validateViewPosition(new c.y(n.lineNumber,n.column),o):e.coordinatesConverter.convertModelPositionToViewPosition(o);return r.MF.fromViewState(t.viewState.move(i,a.lineNumber,a.column,0))}static simpleMove(e,t,i,s,n,a){switch(i){case 0:return 4===a?this._moveHalfLineLeft(e,t,s):this._moveLeft(e,t,s,n);case 1:return 4===a?this._moveHalfLineRight(e,t,s):this._moveRight(e,t,s,n);case 2:return 2===a?this._moveUpByViewLines(e,t,s,n):this._moveUpByModelLines(e,t,s,n);case 3:return 2===a?this._moveDownByViewLines(e,t,s,n):this._moveDownByModelLines(e,t,s,n);case 4:return 2===a?t.map((t=>r.MF.fromViewState(o.I.moveToPrevBlankLine(e.cursorConfig,e,t.viewState,s)))):t.map((t=>r.MF.fromModelState(o.I.moveToPrevBlankLine(e.cursorConfig,e.model,t.modelState,s))));case 5:return 2===a?t.map((t=>r.MF.fromViewState(o.I.moveToNextBlankLine(e.cursorConfig,e,t.viewState,s)))):t.map((t=>r.MF.fromModelState(o.I.moveToNextBlankLine(e.cursorConfig,e.model,t.modelState,s))));case 6:return this._moveToViewMinColumn(e,t,s);case 7:return this._moveToViewFirstNonWhitespaceColumn(e,t,s);case 8:return this._moveToViewCenterColumn(e,t,s);case 9:return this._moveToViewMaxColumn(e,t,s);case 10:return this._moveToViewLastNonWhitespaceColumn(e,t,s);default:return null}}static viewportMove(e,t,i,s,n){const r=e.getCompletelyVisibleViewRange(),o=e.coordinatesConverter.convertViewRangeToModelRange(r);switch(i){case 11:{const i=this._firstLineNumberInRange(e.model,o,n),r=e.model.getLineFirstNonWhitespaceColumn(i);return[this._moveToModelPosition(e,t[0],s,i,r)]}case 13:{const i=this._lastLineNumberInRange(e.model,o,n),r=e.model.getLineFirstNonWhitespaceColumn(i);return[this._moveToModelPosition(e,t[0],s,i,r)]}case 12:{const i=Math.round((o.startLineNumber+o.endLineNumber)/2),n=e.model.getLineFirstNonWhitespaceColumn(i);return[this._moveToModelPosition(e,t[0],s,i,n)]}case 14:{const i=[];for(let n=0,o=t.length;n<o;n++){const o=t[n];i[n]=this.findPositionInViewportIfOutside(e,o,r,s)}return i}default:return null}}static findPositionInViewportIfOutside(e,t,i,s){const n=t.viewState.position.lineNumber;if(i.startLineNumber<=n&&n<=i.endLineNumber-1)return new r.MF(t.modelState,t.viewState);{let a;a=n>i.endLineNumber-1?i.endLineNumber-1:n<i.startLineNumber?i.startLineNumber:n;const c=o.I.vertical(e.cursorConfig,e,n,t.viewState.position.column,t.viewState.leftoverVisibleColumns,a,!1);return r.MF.fromViewState(t.viewState.move(s,c.lineNumber,c.column,c.leftoverVisibleColumns))}}static _firstLineNumberInRange(e,t,i){let s=t.startLineNumber;return t.startColumn!==e.getLineMinColumn(s)&&s++,Math.min(t.endLineNumber,s+i-1)}static _lastLineNumberInRange(e,t,i){let s=t.startLineNumber;return t.startColumn!==e.getLineMinColumn(s)&&s++,Math.max(s,t.endLineNumber-i+1)}static _moveLeft(e,t,i,s){return t.map((t=>r.MF.fromViewState(o.I.moveLeft(e.cursorConfig,e,t.viewState,i,s))))}static _moveHalfLineLeft(e,t,i){const s=[];for(let n=0,a=t.length;n<a;n++){const a=t[n],c=a.viewState.position.lineNumber,l=Math.round(e.getLineLength(c)/2);s[n]=r.MF.fromViewState(o.I.moveLeft(e.cursorConfig,e,a.viewState,i,l))}return s}static _moveRight(e,t,i,s){return t.map((t=>r.MF.fromViewState(o.I.moveRight(e.cursorConfig,e,t.viewState,i,s))))}static _moveHalfLineRight(e,t,i){const s=[];for(let n=0,a=t.length;n<a;n++){const a=t[n],c=a.viewState.position.lineNumber,l=Math.round(e.getLineLength(c)/2);s[n]=r.MF.fromViewState(o.I.moveRight(e.cursorConfig,e,a.viewState,i,l))}return s}static _moveDownByViewLines(e,t,i,s){const n=[];for(let a=0,c=t.length;a<c;a++){const c=t[a];n[a]=r.MF.fromViewState(o.I.moveDown(e.cursorConfig,e,c.viewState,i,s))}return n}static _moveDownByModelLines(e,t,i,s){const n=[];for(let a=0,c=t.length;a<c;a++){const c=t[a];n[a]=r.MF.fromModelState(o.I.moveDown(e.cursorConfig,e.model,c.modelState,i,s))}return n}static _moveUpByViewLines(e,t,i,s){const n=[];for(let a=0,c=t.length;a<c;a++){const c=t[a];n[a]=r.MF.fromViewState(o.I.moveUp(e.cursorConfig,e,c.viewState,i,s))}return n}static _moveUpByModelLines(e,t,i,s){const n=[];for(let a=0,c=t.length;a<c;a++){const c=t[a];n[a]=r.MF.fromModelState(o.I.moveUp(e.cursorConfig,e.model,c.modelState,i,s))}return n}static _moveToViewPosition(e,t,i,s,n){return r.MF.fromViewState(t.viewState.move(i,s,n,0))}static _moveToModelPosition(e,t,i,s,n){return r.MF.fromModelState(t.modelState.move(i,s,n,0))}static _moveToViewMinColumn(e,t,i){const s=[];for(let n=0,r=t.length;n<r;n++){const r=t[n],o=r.viewState.position.lineNumber,a=e.getLineMinColumn(o);s[n]=this._moveToViewPosition(e,r,i,o,a)}return s}static _moveToViewFirstNonWhitespaceColumn(e,t,i){const s=[];for(let n=0,r=t.length;n<r;n++){const r=t[n],o=r.viewState.position.lineNumber,a=e.getLineFirstNonWhitespaceColumn(o);s[n]=this._moveToViewPosition(e,r,i,o,a)}return s}static _moveToViewCenterColumn(e,t,i){const s=[];for(let n=0,r=t.length;n<r;n++){const r=t[n],o=r.viewState.position.lineNumber,a=Math.round((e.getLineMaxColumn(o)+e.getLineMinColumn(o))/2);s[n]=this._moveToViewPosition(e,r,i,o,a)}return s}static _moveToViewMaxColumn(e,t,i){const s=[];for(let n=0,r=t.length;n<r;n++){const r=t[n],o=r.viewState.position.lineNumber,a=e.getLineMaxColumn(o);s[n]=this._moveToViewPosition(e,r,i,o,a)}return s}static _moveToViewLastNonWhitespaceColumn(e,t,i){const s=[];for(let n=0,r=t.length;n<r;n++){const r=t[n],o=r.viewState.position.lineNumber,a=e.getLineLastNonWhitespaceColumn(o);s[n]=this._moveToViewPosition(e,r,i,o,a)}return s}}!function(e){e.metadata={description:"Move cursor to a logical position in the view",args:[{name:"Cursor move argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'to': A mandatory logical position value providing where to move the cursor.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'left', 'right', 'up', 'down', 'prevBlankLine', 'nextBlankLine',\n\t\t\t\t\t\t'wrappedLineStart', 'wrappedLineEnd', 'wrappedLineColumnCenter'\n\t\t\t\t\t\t'wrappedLineFirstNonWhitespaceCharacter', 'wrappedLineLastNonWhitespaceCharacter'\n\t\t\t\t\t\t'viewPortTop', 'viewPortCenter', 'viewPortBottom', 'viewPortIfOutside'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'by': Unit to move. Default is computed based on 'to' value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'line', 'wrappedLine', 'character', 'halfLine'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'value': Number of units to move. Default is '1'.\n\t\t\t\t\t* 'select': If 'true' makes the selection. Default is 'false'.\n\t\t\t\t",constraint:function(e){if(!n.Gv(e))return!1;const t=e;return!!n.Kg(t.to)&&(!(!n.b0(t.select)&&!n.Lm(t.select))&&(!(!n.b0(t.by)&&!n.Kg(t.by))&&!(!n.b0(t.value)&&!n.Et(t.value))))},schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["left","right","up","down","prevBlankLine","nextBlankLine","wrappedLineStart","wrappedLineEnd","wrappedLineColumnCenter","wrappedLineFirstNonWhitespaceCharacter","wrappedLineLastNonWhitespaceCharacter","viewPortTop","viewPortCenter","viewPortBottom","viewPortIfOutside"]},by:{type:"string",enum:["line","wrappedLine","character","halfLine"]},value:{type:"number",default:1},select:{type:"boolean",default:!1}}}}]},e.RawDirection={Left:"left",Right:"right",Up:"up",Down:"down",PrevBlankLine:"prevBlankLine",NextBlankLine:"nextBlankLine",WrappedLineStart:"wrappedLineStart",WrappedLineFirstNonWhitespaceCharacter:"wrappedLineFirstNonWhitespaceCharacter",WrappedLineColumnCenter:"wrappedLineColumnCenter",WrappedLineEnd:"wrappedLineEnd",WrappedLineLastNonWhitespaceCharacter:"wrappedLineLastNonWhitespaceCharacter",ViewPortTop:"viewPortTop",ViewPortCenter:"viewPortCenter",ViewPortBottom:"viewPortBottom",ViewPortIfOutside:"viewPortIfOutside"},e.RawUnit={Line:"line",WrappedLine:"wrappedLine",Character:"character",HalfLine:"halfLine"},e.parse=function(t){if(!t.to)return null;let i;switch(t.to){case e.RawDirection.Left:i=0;break;case e.RawDirection.Right:i=1;break;case e.RawDirection.Up:i=2;break;case e.RawDirection.Down:i=3;break;case e.RawDirection.PrevBlankLine:i=4;break;case e.RawDirection.NextBlankLine:i=5;break;case e.RawDirection.WrappedLineStart:i=6;break;case e.RawDirection.WrappedLineFirstNonWhitespaceCharacter:i=7;break;case e.RawDirection.WrappedLineColumnCenter:i=8;break;case e.RawDirection.WrappedLineEnd:i=9;break;case e.RawDirection.WrappedLineLastNonWhitespaceCharacter:i=10;break;case e.RawDirection.ViewPortTop:i=11;break;case e.RawDirection.ViewPortBottom:i=13;break;case e.RawDirection.ViewPortCenter:i=12;break;case e.RawDirection.ViewPortIfOutside:i=14;break;default:return null}let s=0;switch(t.by){case e.RawUnit.Line:s=1;break;case e.RawUnit.WrappedLine:s=2;break;case e.RawUnit.Character:s=3;break;case e.RawUnit.HalfLine:s=4}return{direction:i,unit:s,select:!!t.select,value:t.value||1}}}(s||(s={}))},94564:(e,t,i)=>{"use strict";i.d(t,{I:()=>h});var s=i(91508),n=i(1245),r=i(83069),o=i(36677),a=i(35817),c=i(32799);class l{constructor(e,t,i){this._cursorPositionBrand=void 0,this.lineNumber=e,this.column=t,this.leftoverVisibleColumns=i}}class h{static leftPosition(e,t){if(t.column>e.getLineMinColumn(t.lineNumber))return t.delta(void 0,-s.MV(e.getLineContent(t.lineNumber),t.column-1));if(t.lineNumber>1){const i=t.lineNumber-1;return new r.y(i,e.getLineMaxColumn(i))}return t}static leftPositionAtomicSoftTabs(e,t,i){if(t.column<=e.getLineIndentColumn(t.lineNumber)){const s=e.getLineMinColumn(t.lineNumber),n=e.getLineContent(t.lineNumber),o=a.s.atomicPosition(n,t.column-1,i,0);if(-1!==o&&o+1>=s)return new r.y(t.lineNumber,o+1)}return this.leftPosition(e,t)}static left(e,t,i){const s=e.stickyTabStops?h.leftPositionAtomicSoftTabs(t,i,e.tabSize):h.leftPosition(t,i);return new l(s.lineNumber,s.column,0)}static moveLeft(e,t,i,s,n){let r,o;if(i.hasSelection()&&!s)r=i.selection.startLineNumber,o=i.selection.startColumn;else{const s=i.position.delta(void 0,-(n-1)),a=t.normalizePosition(h.clipPositionColumn(s,t),0),c=h.left(e,t,a);r=c.lineNumber,o=c.column}return i.move(s,r,o,0)}static clipPositionColumn(e,t){return new r.y(e.lineNumber,h.clipRange(e.column,t.getLineMinColumn(e.lineNumber),t.getLineMaxColumn(e.lineNumber)))}static clipRange(e,t,i){return e<t?t:e>i?i:e}static rightPosition(e,t,i){return i<e.getLineMaxColumn(t)?i+=s.iy(e.getLineContent(t),i-1):t<e.getLineCount()&&(t+=1,i=e.getLineMinColumn(t)),new r.y(t,i)}static rightPositionAtomicSoftTabs(e,t,i,s,n){if(i<e.getLineIndentColumn(t)){const n=e.getLineContent(t),o=a.s.atomicPosition(n,i-1,s,1);if(-1!==o)return new r.y(t,o+1)}return this.rightPosition(e,t,i)}static right(e,t,i){const s=e.stickyTabStops?h.rightPositionAtomicSoftTabs(t,i.lineNumber,i.column,e.tabSize,e.indentSize):h.rightPosition(t,i.lineNumber,i.column);return new l(s.lineNumber,s.column,0)}static moveRight(e,t,i,s,n){let r,o;if(i.hasSelection()&&!s)r=i.selection.endLineNumber,o=i.selection.endColumn;else{const s=i.position.delta(void 0,n-1),a=t.normalizePosition(h.clipPositionColumn(s,t),1),c=h.right(e,t,a);r=c.lineNumber,o=c.column}return i.move(s,r,o,0)}static vertical(e,t,i,s,o,a,c,h){const d=n.A.visibleColumnFromColumn(t.getLineContent(i),s,e.tabSize)+o,u=t.getLineCount(),g=1===i&&1===s,p=i===u&&s===t.getLineMaxColumn(i),m=a<i?g:p;if((i=a)<1?(i=1,s=c?t.getLineMinColumn(i):Math.min(t.getLineMaxColumn(i),s)):i>u?(i=u,s=c?t.getLineMaxColumn(i):Math.min(t.getLineMaxColumn(i),s)):s=e.columnFromVisibleColumn(t,i,d),o=m?0:d-n.A.visibleColumnFromColumn(t.getLineContent(i),s,e.tabSize),void 0!==h){const e=new r.y(i,s),n=t.normalizePosition(e,h);o+=s-n.column,i=n.lineNumber,s=n.column}return new l(i,s,o)}static down(e,t,i,s,n,r,o){return this.vertical(e,t,i,s,n,i+r,o,4)}static moveDown(e,t,i,s,n){let o,a;i.hasSelection()&&!s?(o=i.selection.endLineNumber,a=i.selection.endColumn):(o=i.position.lineNumber,a=i.position.column);let c,l=0;do{c=h.down(e,t,o+l,a,i.leftoverVisibleColumns,n,!0);if(t.normalizePosition(new r.y(c.lineNumber,c.column),2).lineNumber>o)break}while(l++<10&&o+l<t.getLineCount());return i.move(s,c.lineNumber,c.column,c.leftoverVisibleColumns)}static translateDown(e,t,i){const s=i.selection,n=h.down(e,t,s.selectionStartLineNumber,s.selectionStartColumn,i.selectionStartLeftoverVisibleColumns,1,!1),a=h.down(e,t,s.positionLineNumber,s.positionColumn,i.leftoverVisibleColumns,1,!1);return new c.mG(new o.Q(n.lineNumber,n.column,n.lineNumber,n.column),0,n.leftoverVisibleColumns,new r.y(a.lineNumber,a.column),a.leftoverVisibleColumns)}static up(e,t,i,s,n,r,o){return this.vertical(e,t,i,s,n,i-r,o,3)}static moveUp(e,t,i,s,n){let r,o;i.hasSelection()&&!s?(r=i.selection.startLineNumber,o=i.selection.startColumn):(r=i.position.lineNumber,o=i.position.column);const a=h.up(e,t,r,o,i.leftoverVisibleColumns,n,!0);return i.move(s,a.lineNumber,a.column,a.leftoverVisibleColumns)}static translateUp(e,t,i){const s=i.selection,n=h.up(e,t,s.selectionStartLineNumber,s.selectionStartColumn,i.selectionStartLeftoverVisibleColumns,1,!1),a=h.up(e,t,s.positionLineNumber,s.positionColumn,i.leftoverVisibleColumns,1,!1);return new c.mG(new o.Q(n.lineNumber,n.column,n.lineNumber,n.column),0,n.leftoverVisibleColumns,new r.y(a.lineNumber,a.column),a.leftoverVisibleColumns)}static _isBlankLine(e,t){return 0===e.getLineFirstNonWhitespaceColumn(t)}static moveToPrevBlankLine(e,t,i,s){let n=i.position.lineNumber;for(;n>1&&this._isBlankLine(t,n);)n--;for(;n>1&&!this._isBlankLine(t,n);)n--;return i.move(s,n,t.getLineMinColumn(n),0)}static moveToNextBlankLine(e,t,i,s){const n=t.getLineCount();let r=i.position.lineNumber;for(;r<n&&this._isBlankLine(t,r);)r++;for(;r<n&&!this._isBlankLine(t,r);)r++;return i.move(s,r,t.getLineMinColumn(r),0)}static moveToBeginningOfLine(e,t,i,s){const n=i.position.lineNumber,r=t.getLineMinColumn(n),o=t.getLineFirstNonWhitespaceColumn(n)||r;let a;return a=i.position.column===o?r:o,i.move(s,n,a,0)}static moveToEndOfLine(e,t,i,s,n){const r=i.position.lineNumber,o=t.getLineMaxColumn(r);return i.move(s,r,o,n?1073741824-o:0)}static moveToBeginningOfBuffer(e,t,i,s){return i.move(s,1,1,0)}static moveToEndOfBuffer(e,t,i,s){const n=t.getLineCount(),r=t.getLineMaxColumn(n);return i.move(s,n,r,0)}}},26685:(e,t,i)=>{"use strict";i.d(t,{AO:()=>w,Dr:()=>R,Hs:()=>k,K4:()=>C,Ls:()=>y,UN:()=>T,YA:()=>L,dU:()=>_,ey:()=>B,h0:()=>x,is:()=>b,kr:()=>S,oi:()=>E,sx:()=>v});var s=i(64383),n=i(91508),r=i(15092),o=i(7936),a=i(71964),c=i(32799),l=i(81782),h=i(36677),d=i(83069),u=i(38566),g=i(17469),p=i(12296),m=i(82365),f=i(63346);class _{static getEdits(e,t,i,s,n){if(!n&&this._isAutoIndentType(e,t,i)){const n=[];for(const o of i){const i=this._findActualIndentationForSelection(e,t,o,s);if(null===i)return;n.push({selection:o,indentation:i})}const r=E.getAutoClosingPairClose(e,t,i,s,!1);return this._getIndentationAndAutoClosingPairEdits(e,t,n,s,r)}}static _isAutoIndentType(e,t,i){if(e.autoIndent<4)return!1;for(let s=0,n=i.length;s<n;s++)if(!t.tokenization.isCheapToTokenize(i[s].getEndPosition().lineNumber))return!1;return!0}static _findActualIndentationForSelection(e,t,i,s){const n=(0,m._t)(e,t,i,s,{shiftIndent:t=>U(e,t),unshiftIndent:t=>H(e,t)},e.languageConfigurationService);if(null===n)return null;const r=(0,g.Cw)(t,i.startLineNumber,i.startColumn);return n===e.normalizeIndentation(r)?null:n}static _getIndentationAndAutoClosingPairEdits(e,t,i,s,n){const r=i.map((({selection:i,indentation:r})=>{if(null!==n){const o=this._getEditFromIndentationAndSelection(e,t,r,i,s,!1);return new N(o,i,s,n)}{const n=this._getEditFromIndentationAndSelection(e,t,r,i,s,!0);return F(n.range,n.text,!1)}}));return new c.vY(4,r,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}static _getEditFromIndentationAndSelection(e,t,i,s,n,r=!0){const o=s.startLineNumber,a=t.getLineFirstNonWhitespaceColumn(o);let c=e.normalizeIndentation(i);if(0!==a){c+=t.getLineContent(o).substring(a-1,s.startColumn-1)}c+=r?n:"";return{range:new h.Q(o,1,s.endLineNumber,s.endColumn),text:c}}}class v{static getEdits(e,t,i,s,n,r){if(P(t,i,s,n,r))return this._runAutoClosingOvertype(e,s,r)}static _runAutoClosingOvertype(e,t,i){const s=[];for(let n=0,o=t.length;n<o;n++){const e=t[n].getPosition(),o=new h.Q(e.lineNumber,e.column,e.lineNumber,e.column+1);s[n]=new r.iu(o,i)}return new c.vY(4,s,{shouldPushStackElementBefore:O(e,4),shouldPushStackElementAfter:!1})}}class C{static getEdits(e,t,i,s,n){if(P(e,t,i,s,n)){const e=i.map((e=>new r.iu(new h.Q(e.positionLineNumber,e.positionColumn,e.positionLineNumber,e.positionColumn+1),"",!1)));return new c.vY(4,e,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}}}class E{static getEdits(e,t,i,s,n,r){if(!r){const r=this.getAutoClosingPairClose(e,t,i,s,n);if(null!==r)return this._runAutoClosingOpenCharType(i,s,n,r)}}static _runAutoClosingOpenCharType(e,t,i,s){const n=[];for(let r=0,o=e.length;r<o;r++){const o=e[r];n[r]=new A(o,t,!i,s)}return new c.vY(4,n,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}static getAutoClosingPairClose(e,t,i,s,n){for(const c of i)if(!c.isEmpty())return null;const r=i.map((e=>{const t=e.getPosition();return n?{lineNumber:t.lineNumber,beforeColumn:t.column-s.length,afterColumn:t.column}:{lineNumber:t.lineNumber,beforeColumn:t.column,afterColumn:t.column}})),o=this._findAutoClosingPairOpen(e,t,r.map((e=>new d.y(e.lineNumber,e.beforeColumn))),s);if(!o)return null;let a,h;if((0,c.vG)(s))a=e.autoClosingQuotes,h=e.shouldAutoCloseBefore.quote;else{!!e.blockCommentStartToken&&o.open.includes(e.blockCommentStartToken)?(a=e.autoClosingComments,h=e.shouldAutoCloseBefore.comment):(a=e.autoClosingBrackets,h=e.shouldAutoCloseBefore.bracket)}if("never"===a)return null;const u=this._findContainedAutoClosingPair(e,o),g=u?u.close:"";let m=!0;for(const c of r){const{lineNumber:i,beforeColumn:n,afterColumn:r}=c,d=t.getLineContent(i),u=d.substring(0,n-1),f=d.substring(r-1);if(f.startsWith(g)||(m=!1),f.length>0){const t=f.charAt(0);if(!this._isBeforeClosingBrace(e,f)&&!h(t))return null}if(1===o.open.length&&("'"===s||'"'===s)&&"always"!==a){const t=(0,l.i)(e.wordSeparators,[]);if(u.length>0){const e=u.charCodeAt(u.length-1);if(0===t.get(e))return null}}if(!t.tokenization.isCheapToTokenize(i))return null;t.tokenization.forceTokenization(i);const _=t.tokenization.getLineTokens(i),v=(0,p.BQ)(_,n-1);if(!o.shouldAutoClose(v,n-v.firstCharOffset))return null;const C=o.findNeutralCharacter();if(C){const e=t.tokenization.getTokenTypeIfInsertingCharacter(i,n,C);if(!o.isOK(e))return null}}return m?o.close.substring(0,o.close.length-g.length):o.close}static _findContainedAutoClosingPair(e,t){if(t.open.length<=1)return null;const i=t.close.charAt(t.close.length-1),s=e.autoClosingPairs.autoClosingPairsCloseByEnd.get(i)||[];let n=null;for(const r of s)r.open!==t.open&&t.open.includes(r.open)&&t.close.endsWith(r.close)&&(!n||r.open.length>n.open.length)&&(n=r);return n}static _findAutoClosingPairOpen(e,t,i,s){const n=e.autoClosingPairs.autoClosingPairsOpenByEnd.get(s);if(!n)return null;let r=null;for(const o of n)if(null===r||o.open.length>r.open.length){let e=!0;for(const n of i){if(t.getValueInRange(new h.Q(n.lineNumber,n.column-o.open.length+1,n.lineNumber,n.column))+s!==o.open){e=!1;break}}e&&(r=o)}return r}static _isBeforeClosingBrace(e,t){const i=t.charAt(0),s=e.autoClosingPairs.autoClosingPairsOpenByStart.get(i)||[],n=e.autoClosingPairs.autoClosingPairsCloseByStart.get(i)||[],r=s.some((e=>t.startsWith(e.open))),o=n.some((e=>t.startsWith(e.close)));return!r&&o}}class b{static getEdits(e,t,i,s,n){if(!n&&this._isSurroundSelectionType(e,t,i,s))return this._runSurroundSelectionType(e,i,s)}static _runSurroundSelectionType(e,t,i){const s=[];for(let n=0,r=t.length;n<r;n++){const r=t[n],o=e.surroundingPairs[i];s[n]=new a.i(r,i,o)}return new c.vY(0,s,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _isSurroundSelectionType(e,t,i,s){if(!B(e,s)||!e.surroundingPairs.hasOwnProperty(s))return!1;const n=(0,c.vG)(s);for(const r of i){if(r.isEmpty())return!1;let e=!0;for(let i=r.startLineNumber;i<=r.endLineNumber;i++){const s=t.getLineContent(i),n=i===r.startLineNumber?r.startColumn-1:0,o=i===r.endLineNumber?r.endColumn-1:s.length,a=s.substring(n,o);if(/[^ \t]/.test(a)){e=!1;break}}if(e)return!1;if(n&&r.startLineNumber===r.endLineNumber&&r.startColumn+1===r.endColumn){const e=t.getValueInRange(r);if((0,c.vG)(e))return!1}}return!0}}class S{static getEdits(e,t,i,s,n,r){if(!r&&this._isTypeInterceptorElectricChar(t,i,s)){const r=this._typeInterceptorElectricChar(e,t,i,s[0],n);if(r)return r}}static _isTypeInterceptorElectricChar(e,t,i){return!(1!==i.length||!t.tokenization.isCheapToTokenize(i[0].getEndPosition().lineNumber))}static _typeInterceptorElectricChar(e,t,i,o,a){if(!t.electricChars.hasOwnProperty(a)||!o.isEmpty())return null;const l=o.getPosition();i.tokenization.forceTokenization(l.lineNumber);const d=i.tokenization.getLineTokens(l.lineNumber);let u;try{u=t.onElectricCharacter(a,d,l.column)}catch(g){return(0,s.dz)(g),null}if(!u)return null;if(u.matchOpenBracket){const s=(d.getLineContent()+a).lastIndexOf(u.matchOpenBracket)+1,o=i.bracketPairs.findMatchingBracketUp(u.matchOpenBracket,{lineNumber:l.lineNumber,column:s},500);if(o){if(o.startLineNumber===l.lineNumber)return null;const s=i.getLineContent(o.startLineNumber),d=n.UU(s),u=t.normalizeIndentation(d),g=i.getLineContent(l.lineNumber),p=i.getLineFirstNonWhitespaceColumn(l.lineNumber)||l.column,m=u+g.substring(p-1,l.column-1)+a,f=new h.Q(l.lineNumber,1,l.lineNumber,l.column),_=new r.iu(f,m);return new c.vY(I(m,e),[_],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!0})}}return null}}class y{static getEdits(e,t,i){const s=[];for(let o=0,a=t.length;o<a;o++)s[o]=new r.iu(t[o],i);const n=I(i,e);return new c.vY(n,s,{shouldPushStackElementBefore:O(e,n),shouldPushStackElementAfter:!1})}}class w{static getEdits(e,t,i,s,n){if(!n&&"\n"===s){const s=[];for(let n=0,r=i.length;n<r;n++)s[n]=this._enter(e,t,!1,i[n]);return new c.vY(4,s,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}}static _enter(e,t,i,s){if(0===e.autoIndent)return F(s,"\n",i);if(!t.tokenization.isCheapToTokenize(s.getStartPosition().lineNumber)||1===e.autoIndent){const r=t.getLineContent(s.startLineNumber),o=n.UU(r).substring(0,s.startColumn-1);return F(s,"\n"+e.normalizeIndentation(o),i)}const o=(0,f.h)(e.autoIndent,t,s,e.languageConfigurationService);if(o){if(o.indentAction===u.l.None)return F(s,"\n"+e.normalizeIndentation(o.indentation+o.appendText),i);if(o.indentAction===u.l.Indent)return F(s,"\n"+e.normalizeIndentation(o.indentation+o.appendText),i);if(o.indentAction===u.l.IndentOutdent){const t=e.normalizeIndentation(o.indentation),n=e.normalizeIndentation(o.indentation+o.appendText),a="\n"+n+"\n"+t;return i?new r.q2(s,a,!0):new r.iP(s,a,-1,n.length-t.length,!0)}if(o.indentAction===u.l.Outdent){const t=H(e,o.indentation);return F(s,"\n"+e.normalizeIndentation(t+o.appendText),i)}}const a=t.getLineContent(s.startLineNumber),c=n.UU(a).substring(0,s.startColumn-1);if(e.autoIndent>=4){const o=(0,m.MU)(e.autoIndent,t,s,{unshiftIndent:t=>H(e,t),shiftIndent:t=>U(e,t),normalizeIndentation:t=>e.normalizeIndentation(t)},e.languageConfigurationService);if(o){let a=e.visibleColumnFromColumn(t,s.getEndPosition());const c=s.endColumn,l=t.getLineContent(s.endLineNumber),h=n.HG(l);if(s=h>=0?s.setEndPosition(s.endLineNumber,Math.max(s.endColumn,h+1)):s.setEndPosition(s.endLineNumber,t.getLineMaxColumn(s.endLineNumber)),i)return new r.q2(s,"\n"+e.normalizeIndentation(o.afterEnter),!0);{let t=0;return c<=h+1&&(e.insertSpaces||(a=Math.ceil(a/e.indentSize)),t=Math.min(a+1-e.normalizeIndentation(o.afterEnter).length-1,0)),new r.iP(s,"\n"+e.normalizeIndentation(o.afterEnter),0,t,!0)}}}return F(s,"\n"+e.normalizeIndentation(c),i)}static lineInsertBefore(e,t,i){if(null===t||null===i)return[];const s=[];for(let n=0,o=i.length;n<o;n++){let o=i[n].positionLineNumber;if(1===o)s[n]=new r.q2(new h.Q(1,1,1,1),"\n");else{o--;const i=t.getLineMaxColumn(o);s[n]=this._enter(e,t,!1,new h.Q(o,i,o,i))}}return s}static lineInsertAfter(e,t,i){if(null===t||null===i)return[];const s=[];for(let n=0,r=i.length;n<r;n++){const r=i[n].positionLineNumber,o=t.getLineMaxColumn(r);s[n]=this._enter(e,t,!1,new h.Q(r,o,r,o))}return s}static lineBreakInsert(e,t,i){const s=[];for(let n=0,r=i.length;n<r;n++)s[n]=this._enter(e,t,!0,i[n]);return s}}class R{static getEdits(e,t,i,s,n,r){const o=this._distributePasteToCursors(e,i,s,n,r);return o?(i=i.sort(h.Q.compareRangesUsingStarts),this._distributedPaste(e,t,i,o)):this._simplePaste(e,t,i,s,n)}static _distributePasteToCursors(e,t,i,s,r){if(s)return null;if(1===t.length)return null;if(r&&r.length===t.length)return r;if("spread"===e.multiCursorPaste){10===i.charCodeAt(i.length-1)&&(i=i.substring(0,i.length-1)),13===i.charCodeAt(i.length-1)&&(i=i.substring(0,i.length-1));const e=n.uz(i);if(e.length===t.length)return e}return null}static _distributedPaste(e,t,i,s){const n=[];for(let o=0,a=i.length;o<a;o++)n[o]=new r.iu(i[o],s[o]);return new c.vY(0,n,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _simplePaste(e,t,i,s,n){const o=[];for(let a=0,c=i.length;a<c;a++){const e=i[a],t=e.getPosition();if(n&&!e.isEmpty()&&(n=!1),n&&s.indexOf("\n")!==s.length-1&&(n=!1),n){const i=new h.Q(t.lineNumber,1,t.lineNumber,1);o[a]=new r.ui(i,s,e,!0)}else o[a]=new r.iu(e,s)}return new c.vY(0,o,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}}class L{static getEdits(e,t,i,s,n,r,o,a){const l=s.map((e=>this._compositionType(i,e,n,r,o,a)));return new c.vY(4,l,{shouldPushStackElementBefore:O(e,4),shouldPushStackElementAfter:!1})}static _compositionType(e,t,i,s,n,o){if(!t.isEmpty())return null;const a=t.getPosition(),c=Math.max(1,a.column-s),l=Math.min(e.getLineMaxColumn(a.lineNumber),a.column+n),d=new h.Q(a.lineNumber,c,a.lineNumber,l);return e.getValueInRange(d)===i&&0===o?null:new r.iP(d,i,0,o)}}class T{static getEdits(e,t,i){const s=[];for(let o=0,a=t.length;o<a;o++)s[o]=new r.iu(t[o],i);const n=I(i,e);return new c.vY(n,s,{shouldPushStackElementBefore:O(e,n),shouldPushStackElementAfter:!1})}}class x{static getCommands(e,t,i){const s=[];for(let n=0,a=i.length;n<a;n++){const a=i[n];if(a.isEmpty()){const i=t.getLineContent(a.startLineNumber);if(/^\s*$/.test(i)&&t.tokenization.isCheapToTokenize(a.startLineNumber)){let o=this._goodIndentForLine(e,t,a.startLineNumber);o=o||"\t";const c=e.normalizeIndentation(o);if(!i.startsWith(c)){s[n]=new r.iu(new h.Q(a.startLineNumber,1,a.startLineNumber,i.length+1),c,!0);continue}}s[n]=this._replaceJumpToNextIndent(e,t,a,!0)}else{if(a.startLineNumber===a.endLineNumber){const i=t.getLineMaxColumn(a.startLineNumber);if(1!==a.startColumn||a.endColumn!==i){s[n]=this._replaceJumpToNextIndent(e,t,a,!1);continue}}s[n]=new o.Y(a,{isUnshift:!1,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent},e.languageConfigurationService)}}return s}static _goodIndentForLine(e,t,i){let s=null,r="";const o=(0,m.vn)(e.autoIndent,t,i,!1,e.languageConfigurationService);if(o)s=o.action,r=o.indentation;else if(i>1){let s;for(s=i-1;s>=1;s--){const e=t.getLineContent(s);if(n.lT(e)>=0)break}if(s<1)return null;const o=t.getLineMaxColumn(s),a=(0,f.h)(e.autoIndent,t,new h.Q(s,o,s,o),e.languageConfigurationService);a&&(r=a.indentation+a.appendText)}return s&&(s===u.l.Indent&&(r=U(e,r)),s===u.l.Outdent&&(r=H(e,r)),r=e.normalizeIndentation(r)),r||null}static _replaceJumpToNextIndent(e,t,i,s){let n="";const o=i.getStartPosition();if(e.insertSpaces){const i=e.visibleColumnFromColumn(t,o),s=e.indentSize,r=s-i%s;for(let e=0;e<r;e++)n+=" "}else n="\t";return new r.iu(i,n,s)}}class k extends r.iP{constructor(e,t,i,s,n,r){super(e,t,i,s),this._openCharacter=n,this._closeCharacter=r,this.closeCharacterRange=null,this.enclosingRange=null}_computeCursorStateWithRange(e,t,i){return this.closeCharacterRange=new h.Q(t.startLineNumber,t.endColumn-this._closeCharacter.length,t.endLineNumber,t.endColumn),this.enclosingRange=new h.Q(t.startLineNumber,t.endColumn-this._openCharacter.length-this._closeCharacter.length,t.endLineNumber,t.endColumn),super.computeCursorState(e,i)}}class A extends k{constructor(e,t,i,s){super(e,(i?t:"")+s,0,-s.length,t,s)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return this._computeCursorStateWithRange(e,i,t)}}class N extends k{constructor(e,t,i,s){const n=i+s;super(t,n,0,i.length,i,s),this._autoIndentationEdit=e,this._autoClosingEdit={range:t,text:n}}getEditOperations(e,t){t.addTrackedEditOperation(this._autoIndentationEdit.range,this._autoIndentationEdit.text),t.addTrackedEditOperation(this._autoClosingEdit.range,this._autoClosingEdit.text)}computeCursorState(e,t){const i=t.getInverseEditOperations();if(2!==i.length)throw new Error("There should be two inverse edit operations!");const s=i[0].range,n=i[1].range,r=s.plusRange(n);return this._computeCursorStateWithRange(e,r,t)}}function I(e,t){return" "===e?5===t||6===t?6:5:4}function O(e,t){return!(!M(e)||M(t))||5!==e&&D(e)!==D(t)}function D(e){return 6===e||5===e?"space":e}function M(e){return 4===e||5===e||6===e}function P(e,t,i,s,n){if("never"===e.autoClosingOvertype)return!1;if(!e.autoClosingPairs.autoClosingPairsCloseSingleChar.has(n))return!1;for(let r=0,o=i.length;r<o;r++){const o=i[r];if(!o.isEmpty())return!1;const a=o.getPosition(),l=t.getLineContent(a.lineNumber);if(l.charAt(a.column-1)!==n)return!1;const h=(0,c.vG)(n);if(92===(a.column>2?l.charCodeAt(a.column-2):0)&&h)return!1;if("auto"===e.autoClosingOvertype){let e=!1;for(let t=0,i=s.length;t<i;t++){const i=s[t];if(a.lineNumber===i.startLineNumber&&a.column===i.startColumn){e=!0;break}}if(!e)return!1}}return!0}function F(e,t,i){return i?new r.q2(e,t,!0):new r.iu(e,t,!0)}function U(e,t,i){return i=i||1,o.Y.shiftIndent(t,t.length+i,e.tabSize,e.indentSize,e.insertSpaces)}function H(e,t,i){return i=i||1,o.Y.unshiftIndent(t,t.length+i,e.tabSize,e.indentSize,e.insertSpaces)}function B(e,t){return(0,c.vG)(t)?"quotes"===e.autoSurround||"languageDefined"===e.autoSurround:"brackets"===e.autoSurround||"languageDefined"===e.autoSurround}},49265:(e,t,i)=>{"use strict";i.d(t,{T:()=>a,v:()=>c});var s=i(7936),n=i(71964),r=i(32799),o=i(26685);class a{static indent(e,t,i){if(null===t||null===i)return[];const n=[];for(let r=0,o=i.length;r<o;r++)n[r]=new s.Y(i[r],{isUnshift:!1,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent},e.languageConfigurationService);return n}static outdent(e,t,i){const n=[];for(let r=0,o=i.length;r<o;r++)n[r]=new s.Y(i[r],{isUnshift:!0,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent},e.languageConfigurationService);return n}static paste(e,t,i,s,n,r){return o.Dr.getEdits(e,t,i,s,n,r)}static tab(e,t,i){return o.h0.getCommands(e,t,i)}static compositionType(e,t,i,s,n,r,a,c){return o.YA.getEdits(e,t,i,s,n,r,a,c)}static compositionEndWithInterceptors(e,t,i,s,a,c){if(!s)return null;let l=null;for(const n of s)if(null===l)l=n.insertedText;else if(l!==n.insertedText)return null;if(!l||1!==l.length)return null;const h=l;let d=!1;for(const n of s)if(0!==n.deletedText.length){d=!0;break}if(d){if(!(0,o.ey)(t,h)||!t.surroundingPairs.hasOwnProperty(h))return null;const e=(0,r.vG)(h);for(const t of s){if(0!==t.deletedSelectionStart||t.deletedSelectionEnd!==t.deletedText.length)return null;if(/^[ \t]+$/.test(t.deletedText))return null;if(e&&(0,r.vG)(t.deletedText))return null}const i=[];for(const t of a){if(!t.isEmpty())return null;i.push(t.getPosition())}if(i.length!==s.length)return null;const c=[];for(let r=0,o=i.length;r<o;r++)c.push(new n.y(i[r],s[r].deletedText,t.surroundingPairs[h]));return new r.vY(4,c,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}const u=o.K4.getEdits(t,i,a,c,h);if(void 0!==u)return u;const g=o.oi.getEdits(t,i,a,h,!0,!1);return void 0!==g?g:null}static typeWithInterceptors(e,t,i,s,n,r,a){const c=o.AO.getEdits(i,s,n,a,e);if(void 0!==c)return c;const l=o.dU.getEdits(i,s,n,a,e);if(void 0!==l)return l;const h=o.sx.getEdits(t,i,s,n,r,a);if(void 0!==h)return h;const d=o.oi.getEdits(i,s,n,a,!1,e);if(void 0!==d)return d;const u=o.is.getEdits(i,s,n,a,e);if(void 0!==u)return u;const g=o.kr.getEdits(t,i,s,n,a,e);return void 0!==g?g:o.Ls.getEdits(t,n,a)}static typeWithoutInterceptors(e,t,i,s,n){return o.UN.getEdits(e,s,n)}}class c{constructor(e,t,i,s,n,r){this.deletedText=e,this.deletedSelectionStart=t,this.deletedSelectionEnd=i,this.insertedText=s,this.insertedSelectionStart=n,this.insertedSelectionEnd=r}}},97681:(e,t,i)=>{"use strict";i.d(t,{c:()=>h,z:()=>l});var s=i(91508),n=i(32799),r=i(1226),o=i(81782),a=i(83069),c=i(36677);class l{static _createWord(e,t,i,s,n){return{start:s,end:n,wordType:t,nextCharClass:i}}static _createIntlWord(e,t){return{start:e.index,end:e.index+e.segment.length,wordType:1,nextCharClass:t}}static _findPreviousWordOnLine(e,t,i){const s=t.getLineContent(i.lineNumber);return this._doFindPreviousWordOnLine(s,e,i)}static _doFindPreviousWordOnLine(e,t,i){let s=0;const n=t.findPrevIntlWordBeforeOrAtOffset(e,i.column-2);for(let r=i.column-2;r>=0;r--){const i=e.charCodeAt(r),o=t.get(i);if(n&&r===n.index)return this._createIntlWord(n,o);if(0===o){if(2===s)return this._createWord(e,s,o,r+1,this._findEndOfWord(e,t,s,r+1));s=1}else if(2===o){if(1===s)return this._createWord(e,s,o,r+1,this._findEndOfWord(e,t,s,r+1));s=2}else if(1===o&&0!==s)return this._createWord(e,s,o,r+1,this._findEndOfWord(e,t,s,r+1))}return 0!==s?this._createWord(e,s,1,0,this._findEndOfWord(e,t,s,0)):null}static _findEndOfWord(e,t,i,s){const n=t.findNextIntlWordAtOrAfterOffset(e,s),r=e.length;for(let o=s;o<r;o++){const s=e.charCodeAt(o),r=t.get(s);if(n&&o===n.index+n.segment.length)return o;if(1===r)return o;if(1===i&&2===r)return o;if(2===i&&0===r)return o}return r}static _findNextWordOnLine(e,t,i){const s=t.getLineContent(i.lineNumber);return this._doFindNextWordOnLine(s,e,i)}static _doFindNextWordOnLine(e,t,i){let s=0;const n=e.length,r=t.findNextIntlWordAtOrAfterOffset(e,i.column-1);for(let o=i.column-1;o<n;o++){const i=e.charCodeAt(o),n=t.get(i);if(r&&o===r.index)return this._createIntlWord(r,n);if(0===n){if(2===s)return this._createWord(e,s,n,this._findStartOfWord(e,t,s,o-1),o);s=1}else if(2===n){if(1===s)return this._createWord(e,s,n,this._findStartOfWord(e,t,s,o-1),o);s=2}else if(1===n&&0!==s)return this._createWord(e,s,n,this._findStartOfWord(e,t,s,o-1),o)}return 0!==s?this._createWord(e,s,1,this._findStartOfWord(e,t,s,n-1),n):null}static _findStartOfWord(e,t,i,s){const n=t.findPrevIntlWordBeforeOrAtOffset(e,s);for(let r=s;r>=0;r--){const s=e.charCodeAt(r),o=t.get(s);if(n&&r===n.index)return r;if(1===o)return r+1;if(1===i&&2===o)return r+1;if(2===i&&0===o)return r+1}return 0}static moveWordLeft(e,t,i,s,n){let r=i.lineNumber,o=i.column;1===o&&r>1&&(r-=1,o=t.getLineMaxColumn(r));let c=l._findPreviousWordOnLine(e,t,new a.y(r,o));if(0===s)return new a.y(r,c?c.start+1:1);if(1===s)return!n&&c&&2===c.wordType&&c.end-c.start===1&&0===c.nextCharClass&&(c=l._findPreviousWordOnLine(e,t,new a.y(r,c.start+1))),new a.y(r,c?c.start+1:1);if(3===s){for(;c&&2===c.wordType;)c=l._findPreviousWordOnLine(e,t,new a.y(r,c.start+1));return new a.y(r,c?c.start+1:1)}return c&&o<=c.end+1&&(c=l._findPreviousWordOnLine(e,t,new a.y(r,c.start+1))),new a.y(r,c?c.end+1:1)}static _moveWordPartLeft(e,t){const i=t.lineNumber,n=e.getLineMaxColumn(i);if(1===t.column)return i>1?new a.y(i-1,e.getLineMaxColumn(i-1)):t;const r=e.getLineContent(i);for(let o=t.column-1;o>1;o--){const e=r.charCodeAt(o-2),t=r.charCodeAt(o-1);if(95===e&&95!==t)return new a.y(i,o);if(45===e&&45!==t)return new a.y(i,o);if((s.Lv(e)||s.DB(e))&&s.Wv(t))return new a.y(i,o);if(s.Wv(e)&&s.Wv(t)&&o+1<n){const e=r.charCodeAt(o);if(s.Lv(e)||s.DB(e))return new a.y(i,o)}}return new a.y(i,1)}static moveWordRight(e,t,i,s){let n=i.lineNumber,r=i.column,o=!1;r===t.getLineMaxColumn(n)&&n<t.getLineCount()&&(o=!0,n+=1,r=1);let c=l._findNextWordOnLine(e,t,new a.y(n,r));if(2===s)c&&2===c.wordType&&c.end-c.start===1&&0===c.nextCharClass&&(c=l._findNextWordOnLine(e,t,new a.y(n,c.end+1))),r=c?c.end+1:t.getLineMaxColumn(n);else if(3===s){for(o&&(r=0);c&&(2===c.wordType||c.start+1<=r);)c=l._findNextWordOnLine(e,t,new a.y(n,c.end+1));r=c?c.start+1:t.getLineMaxColumn(n)}else c&&!o&&r>=c.start+1&&(c=l._findNextWordOnLine(e,t,new a.y(n,c.end+1))),r=c?c.start+1:t.getLineMaxColumn(n);return new a.y(n,r)}static _moveWordPartRight(e,t){const i=t.lineNumber,n=e.getLineMaxColumn(i);if(t.column===n)return i<e.getLineCount()?new a.y(i+1,1):t;const r=e.getLineContent(i);for(let o=t.column+1;o<n;o++){const e=r.charCodeAt(o-2),t=r.charCodeAt(o-1);if(95!==e&&95===t)return new a.y(i,o);if(45!==e&&45===t)return new a.y(i,o);if((s.Lv(e)||s.DB(e))&&s.Wv(t))return new a.y(i,o);if(s.Wv(e)&&s.Wv(t)&&o+1<n){const e=r.charCodeAt(o);if(s.Lv(e)||s.DB(e))return new a.y(i,o)}}return new a.y(i,n)}static _deleteWordLeftWhitespace(e,t){const i=e.getLineContent(t.lineNumber),n=t.column-2,r=s.lT(i,n);return r+1<n?new c.Q(t.lineNumber,r+2,t.lineNumber,t.column):null}static deleteWordLeft(e,t){const i=e.wordSeparators,s=e.model,n=e.selection,o=e.whitespaceHeuristics;if(!n.isEmpty())return n;if(r.g.isAutoClosingPairDelete(e.autoClosingDelete,e.autoClosingBrackets,e.autoClosingQuotes,e.autoClosingPairs.autoClosingPairsOpenByEnd,e.model,[e.selection],e.autoClosedCharacters)){const t=e.selection.getPosition();return new c.Q(t.lineNumber,t.column-1,t.lineNumber,t.column+1)}const h=new a.y(n.positionLineNumber,n.positionColumn);let d=h.lineNumber,u=h.column;if(1===d&&1===u)return null;if(o){const e=this._deleteWordLeftWhitespace(s,h);if(e)return e}let g=l._findPreviousWordOnLine(i,s,h);return 0===t?g?u=g.start+1:u>1?u=1:(d--,u=s.getLineMaxColumn(d)):(g&&u<=g.end+1&&(g=l._findPreviousWordOnLine(i,s,new a.y(d,g.start+1))),g?u=g.end+1:u>1?u=1:(d--,u=s.getLineMaxColumn(d))),new c.Q(d,u,h.lineNumber,h.column)}static deleteInsideWord(e,t,i){if(!i.isEmpty())return i;const s=new a.y(i.positionLineNumber,i.positionColumn),n=this._deleteInsideWordWhitespace(t,s);return n||this._deleteInsideWordDetermineDeleteRange(e,t,s)}static _charAtIsWhitespace(e,t){const i=e.charCodeAt(t);return 32===i||9===i}static _deleteInsideWordWhitespace(e,t){const i=e.getLineContent(t.lineNumber),s=i.length;if(0===s)return null;let n=Math.max(t.column-2,0);if(!this._charAtIsWhitespace(i,n))return null;let r=Math.min(t.column-1,s-1);if(!this._charAtIsWhitespace(i,r))return null;for(;n>0&&this._charAtIsWhitespace(i,n-1);)n--;for(;r+1<s&&this._charAtIsWhitespace(i,r+1);)r++;return new c.Q(t.lineNumber,n+1,t.lineNumber,r+2)}static _deleteInsideWordDetermineDeleteRange(e,t,i){const s=t.getLineContent(i.lineNumber),n=s.length;if(0===n)return i.lineNumber>1?new c.Q(i.lineNumber-1,t.getLineMaxColumn(i.lineNumber-1),i.lineNumber,1):i.lineNumber<t.getLineCount()?new c.Q(i.lineNumber,1,i.lineNumber+1,1):new c.Q(i.lineNumber,1,i.lineNumber,1);const r=e=>e.start+1<=i.column&&i.column<=e.end+1,o=(e,t)=>(e=Math.min(e,i.column),t=Math.max(t,i.column),new c.Q(i.lineNumber,e,i.lineNumber,t)),a=e=>{let t=e.start+1,i=e.end+1,r=!1;for(;i-1<n&&this._charAtIsWhitespace(s,i-1);)r=!0,i++;if(!r)for(;t>1&&this._charAtIsWhitespace(s,t-2);)t--;return o(t,i)},h=l._findPreviousWordOnLine(e,t,i);if(h&&r(h))return a(h);const d=l._findNextWordOnLine(e,t,i);return d&&r(d)?a(d):h&&d?o(h.end+1,d.start+1):h?o(h.start+1,h.end+1):d?o(d.start+1,d.end+1):o(1,n+1)}static _deleteWordPartLeft(e,t){if(!t.isEmpty())return t;const i=t.getPosition(),s=l._moveWordPartLeft(e,i);return new c.Q(i.lineNumber,i.column,s.lineNumber,s.column)}static _findFirstNonWhitespaceChar(e,t){const i=e.length;for(let s=t;s<i;s++){const t=e.charAt(s);if(" "!==t&&"\t"!==t)return s}return i}static _deleteWordRightWhitespace(e,t){const i=e.getLineContent(t.lineNumber),s=t.column-1,n=this._findFirstNonWhitespaceChar(i,s);return s+1<n?new c.Q(t.lineNumber,t.column,t.lineNumber,n+1):null}static deleteWordRight(e,t){const i=e.wordSeparators,s=e.model,n=e.selection,r=e.whitespaceHeuristics;if(!n.isEmpty())return n;const o=new a.y(n.positionLineNumber,n.positionColumn);let h=o.lineNumber,d=o.column;const u=s.getLineCount(),g=s.getLineMaxColumn(h);if(h===u&&d===g)return null;if(r){const e=this._deleteWordRightWhitespace(s,o);if(e)return e}let p=l._findNextWordOnLine(i,s,o);return 2===t?p?d=p.end+1:d<g||h===u?d=g:(h++,p=l._findNextWordOnLine(i,s,new a.y(h,1)),d=p?p.start+1:s.getLineMaxColumn(h)):(p&&d>=p.start+1&&(p=l._findNextWordOnLine(i,s,new a.y(h,p.end+1))),p?d=p.start+1:d<g||h===u?d=g:(h++,p=l._findNextWordOnLine(i,s,new a.y(h,1)),d=p?p.start+1:s.getLineMaxColumn(h))),new c.Q(h,d,o.lineNumber,o.column)}static _deleteWordPartRight(e,t){if(!t.isEmpty())return t;const i=t.getPosition(),s=l._moveWordPartRight(e,i);return new c.Q(i.lineNumber,i.column,s.lineNumber,s.column)}static _createWordAtPosition(e,t,i){const s=new c.Q(t,i.start+1,t,i.end+1);return{word:e.getValueInRange(s),startColumn:s.startColumn,endColumn:s.endColumn}}static getWordAtPosition(e,t,i,s){const n=(0,o.i)(t,i),r=l._findPreviousWordOnLine(n,e,s);if(r&&1===r.wordType&&r.start<=s.column-1&&s.column-1<=r.end)return l._createWordAtPosition(e,s.lineNumber,r);const a=l._findNextWordOnLine(n,e,s);return a&&1===a.wordType&&a.start<=s.column-1&&s.column-1<=a.end?l._createWordAtPosition(e,s.lineNumber,a):null}static word(e,t,i,s,r){const h=(0,o.i)(e.wordSeparators,e.wordSegmenterLocales),d=l._findPreviousWordOnLine(h,t,r),u=l._findNextWordOnLine(h,t,r);if(!s){let e,i;return d&&1===d.wordType&&d.start<=r.column-1&&r.column-1<=d.end?(e=d.start+1,i=d.end+1):u&&1===u.wordType&&u.start<=r.column-1&&r.column-1<=u.end?(e=u.start+1,i=u.end+1):(e=d?d.end+1:1,i=u?u.start+1:t.getLineMaxColumn(r.lineNumber)),new n.mG(new c.Q(r.lineNumber,e,r.lineNumber,i),1,0,new a.y(r.lineNumber,i),0)}let g,p;d&&1===d.wordType&&d.start<r.column-1&&r.column-1<d.end?(g=d.start+1,p=d.end+1):u&&1===u.wordType&&u.start<r.column-1&&r.column-1<u.end?(g=u.start+1,p=u.end+1):(g=r.column,p=r.column);const m=r.lineNumber;let f;if(i.selectionStart.containsPosition(r))f=i.selectionStart.endColumn;else if(r.isBeforeOrEqual(i.selectionStart.getStartPosition())){f=g;const e=new a.y(m,f);i.selectionStart.containsPosition(e)&&(f=i.selectionStart.endColumn)}else{f=p;const e=new a.y(m,f);i.selectionStart.containsPosition(e)&&(f=i.selectionStart.startColumn)}return i.move(!0,m,f,0)}}class h extends l{static deleteWordPartLeft(e){const t=d([l.deleteWordLeft(e,0),l.deleteWordLeft(e,2),l._deleteWordPartLeft(e.model,e.selection)]);return t.sort(c.Q.compareRangesUsingEnds),t[2]}static deleteWordPartRight(e){const t=d([l.deleteWordRight(e,0),l.deleteWordRight(e,2),l._deleteWordPartRight(e.model,e.selection)]);return t.sort(c.Q.compareRangesUsingStarts),t[0]}static moveWordPartLeft(e,t,i,s){const n=d([l.moveWordLeft(e,t,i,0,s),l.moveWordLeft(e,t,i,2,s),l._moveWordPartLeft(t,i)]);return n.sort(a.y.compare),n[2]}static moveWordPartRight(e,t,i){const s=d([l.moveWordRight(e,t,i,0),l.moveWordRight(e,t,i,2),l._moveWordPartRight(t,i)]);return s.sort(a.y.compare),s[0]}}function d(e){return e.filter((e=>Boolean(e)))}},32799:(e,t,i)=>{"use strict";i.d(t,{MF:()=>g,d$:()=>u,mG:()=>f,vG:()=>v,vY:()=>_});var s=i(83069),n=i(36677),r=i(75326),o=i(12296),a=i(1245),c=i(93895);const l=()=>!0,h=()=>!1,d=e=>" "===e||"\t"===e;class u{static shouldRecreate(e){return e.hasChanged(146)||e.hasChanged(132)||e.hasChanged(37)||e.hasChanged(77)||e.hasChanged(79)||e.hasChanged(80)||e.hasChanged(6)||e.hasChanged(7)||e.hasChanged(11)||e.hasChanged(9)||e.hasChanged(10)||e.hasChanged(14)||e.hasChanged(129)||e.hasChanged(50)||e.hasChanged(92)||e.hasChanged(131)}constructor(e,t,i,s){this.languageConfigurationService=s,this._cursorMoveConfigurationBrand=void 0,this._languageId=e;const n=i.options,r=n.get(146),o=n.get(50);this.readOnly=n.get(92),this.tabSize=t.tabSize,this.indentSize=t.indentSize,this.insertSpaces=t.insertSpaces,this.stickyTabStops=n.get(117),this.lineHeight=o.lineHeight,this.typicalHalfwidthCharacterWidth=o.typicalHalfwidthCharacterWidth,this.pageSize=Math.max(1,Math.floor(r.height/this.lineHeight)-2),this.useTabStops=n.get(129),this.wordSeparators=n.get(132),this.emptySelectionClipboard=n.get(37),this.copyWithSyntaxHighlighting=n.get(25),this.multiCursorMergeOverlapping=n.get(77),this.multiCursorPaste=n.get(79),this.multiCursorLimit=n.get(80),this.autoClosingBrackets=n.get(6),this.autoClosingComments=n.get(7),this.autoClosingQuotes=n.get(11),this.autoClosingDelete=n.get(9),this.autoClosingOvertype=n.get(10),this.autoSurround=n.get(14),this.autoIndent=n.get(12),this.wordSegmenterLocales=n.get(131),this.surroundingPairs={},this._electricChars=null,this.shouldAutoCloseBefore={quote:this._getShouldAutoClose(e,this.autoClosingQuotes,!0),comment:this._getShouldAutoClose(e,this.autoClosingComments,!1),bracket:this._getShouldAutoClose(e,this.autoClosingBrackets,!1)},this.autoClosingPairs=this.languageConfigurationService.getLanguageConfiguration(e).getAutoClosingPairs();const a=this.languageConfigurationService.getLanguageConfiguration(e).getSurroundingPairs();if(a)for(const l of a)this.surroundingPairs[l.open]=l.close;const c=this.languageConfigurationService.getLanguageConfiguration(e).comments;this.blockCommentStartToken=c?.blockCommentStartToken??null}get electricChars(){if(!this._electricChars){this._electricChars={};const e=this.languageConfigurationService.getLanguageConfiguration(this._languageId).electricCharacter?.getElectricCharacters();if(e)for(const t of e)this._electricChars[t]=!0}return this._electricChars}onElectricCharacter(e,t,i){const s=(0,o.BQ)(t,i-1),n=this.languageConfigurationService.getLanguageConfiguration(s.languageId).electricCharacter;return n?n.onElectricCharacter(e,s,i-s.firstCharOffset):null}normalizeIndentation(e){return(0,c.P)(e,this.indentSize,this.insertSpaces)}_getShouldAutoClose(e,t,i){switch(t){case"beforeWhitespace":return d;case"languageDefined":return this._getLanguageDefinedShouldAutoClose(e,i);case"always":return l;case"never":return h}}_getLanguageDefinedShouldAutoClose(e,t){const i=this.languageConfigurationService.getLanguageConfiguration(e).getAutoCloseBeforeSet(t);return e=>-1!==i.indexOf(e)}visibleColumnFromColumn(e,t){return a.A.visibleColumnFromColumn(e.getLineContent(t.lineNumber),t.column,this.tabSize)}columnFromVisibleColumn(e,t,i){const s=a.A.columnFromVisibleColumn(e.getLineContent(t),i,this.tabSize),n=e.getLineMinColumn(t);if(s<n)return n;const r=e.getLineMaxColumn(t);return s>r?r:s}}class g{static fromModelState(e){return new p(e)}static fromViewState(e){return new m(e)}static fromModelSelection(e){const t=r.L.liftSelection(e),i=new f(n.Q.fromPositions(t.getSelectionStart()),0,0,t.getPosition(),0);return g.fromModelState(i)}static fromModelSelections(e){const t=[];for(let i=0,s=e.length;i<s;i++)t[i]=this.fromModelSelection(e[i]);return t}constructor(e,t){this._cursorStateBrand=void 0,this.modelState=e,this.viewState=t}equals(e){return this.viewState.equals(e.viewState)&&this.modelState.equals(e.modelState)}}class p{constructor(e){this.modelState=e,this.viewState=null}}class m{constructor(e){this.modelState=null,this.viewState=e}}class f{constructor(e,t,i,s,n){this.selectionStart=e,this.selectionStartKind=t,this.selectionStartLeftoverVisibleColumns=i,this.position=s,this.leftoverVisibleColumns=n,this._singleCursorStateBrand=void 0,this.selection=f._computeSelection(this.selectionStart,this.position)}equals(e){return this.selectionStartLeftoverVisibleColumns===e.selectionStartLeftoverVisibleColumns&&this.leftoverVisibleColumns===e.leftoverVisibleColumns&&this.selectionStartKind===e.selectionStartKind&&this.position.equals(e.position)&&this.selectionStart.equalsRange(e.selectionStart)}hasSelection(){return!this.selection.isEmpty()||!this.selectionStart.isEmpty()}move(e,t,i,r){return e?new f(this.selectionStart,this.selectionStartKind,this.selectionStartLeftoverVisibleColumns,new s.y(t,i),r):new f(new n.Q(t,i,t,i),0,r,new s.y(t,i),r)}static _computeSelection(e,t){return e.isEmpty()||!t.isBeforeOrEqual(e.getStartPosition())?r.L.fromPositions(e.getStartPosition(),t):r.L.fromPositions(e.getEndPosition(),t)}}class _{constructor(e,t,i){this._editOperationResultBrand=void 0,this.type=e,this.commands=t,this.shouldPushStackElementBefore=i.shouldPushStackElementBefore,this.shouldPushStackElementAfter=i.shouldPushStackElementAfter}}function v(e){return"'"===e||'"'===e||"`"===e}},68938:(e,t,i)=>{"use strict";i.d(t,{$8:()=>a,SL:()=>o,_3:()=>c,aY:()=>h,uY:()=>l});var s=i(25890),n=i(64383),r=i(74444);class o{static trivial(e,t){return new o([new a(r.L.ofLength(e.length),r.L.ofLength(t.length))],!1)}static trivialTimedOut(e,t){return new o([new a(r.L.ofLength(e.length),r.L.ofLength(t.length))],!0)}constructor(e,t){this.diffs=e,this.hitTimeout=t}}class a{static invert(e,t){const i=[];return(0,s.pN)(e,((e,s)=>{i.push(a.fromOffsetPairs(e?e.getEndExclusives():c.zero,s?s.getStarts():new c(t,(e?e.seq2Range.endExclusive-e.seq1Range.endExclusive:0)+t)))})),i}static fromOffsetPairs(e,t){return new a(new r.L(e.offset1,t.offset1),new r.L(e.offset2,t.offset2))}static assertSorted(e){let t;for(const i of e){if(t&&!(t.seq1Range.endExclusive<=i.seq1Range.start&&t.seq2Range.endExclusive<=i.seq2Range.start))throw new n.D7("Sequence diffs must be sorted");t=i}}constructor(e,t){this.seq1Range=e,this.seq2Range=t}swap(){return new a(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(e){return new a(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}delta(e){return 0===e?this:new a(this.seq1Range.delta(e),this.seq2Range.delta(e))}deltaStart(e){return 0===e?this:new a(this.seq1Range.deltaStart(e),this.seq2Range.deltaStart(e))}deltaEnd(e){return 0===e?this:new a(this.seq1Range.deltaEnd(e),this.seq2Range.deltaEnd(e))}intersect(e){const t=this.seq1Range.intersect(e.seq1Range),i=this.seq2Range.intersect(e.seq2Range);if(t&&i)return new a(t,i)}getStarts(){return new c(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new c(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}class c{static{this.zero=new c(0,0)}static{this.max=new c(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER)}constructor(e,t){this.offset1=e,this.offset2=t}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(e){return 0===e?this:new c(this.offset1+e,this.offset2+e)}equals(e){return this.offset1===e.offset1&&this.offset2===e.offset2}}class l{static{this.instance=new l}isValid(){return!0}}class h{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new n.D7("timeout must be positive")}isValid(){return!(Date.now()-this.startTime<this.timeout)&&this.valid&&(this.valid=!1),this.valid}}},26746:(e,t,i)=>{"use strict";i.d(t,{D8:()=>I});var s=i(25890),n=i(66782),r=i(86571),o=i(74444),a=i(36677),c=i(68938);class l{constructor(e,t){this.width=e,this.height=t,this.array=[],this.array=new Array(e*t)}get(e,t){return this.array[e+t*this.width]}set(e,t,i){this.array[e+t*this.width]=i}}function h(e){return 32===e||9===e}class d{static{this.chrKeys=new Map}static getKey(e){let t=this.chrKeys.get(e);return void 0===t&&(t=this.chrKeys.size,this.chrKeys.set(e,t)),t}constructor(e,t,i){this.range=e,this.lines=t,this.source=i,this.histogram=[];let s=0;for(let n=e.startLineNumber-1;n<e.endLineNumberExclusive-1;n++){const e=t[n];for(let t=0;t<e.length;t++){s++;const i=e[t],n=d.getKey(i);this.histogram[n]=(this.histogram[n]||0)+1}s++;const i=d.getKey("\n");this.histogram[i]=(this.histogram[i]||0)+1}this.totalCount=s}computeSimilarity(e){let t=0;const i=Math.max(this.histogram.length,e.histogram.length);for(let s=0;s<i;s++)t+=Math.abs((this.histogram[s]??0)-(e.histogram[s]??0));return 1-t/(this.totalCount+e.totalCount)}}class u{compute(e,t,i=c.uY.instance,s){if(0===e.length||0===t.length)return c.SL.trivial(e,t);const n=new l(e.length,t.length),r=new l(e.length,t.length),a=new l(e.length,t.length);for(let o=0;o<e.length;o++)for(let l=0;l<t.length;l++){if(!i.isValid())return c.SL.trivialTimedOut(e,t);const h=0===o?0:n.get(o-1,l),d=0===l?0:n.get(o,l-1);let u;e.getElement(o)===t.getElement(l)?(u=0===o||0===l?0:n.get(o-1,l-1),o>0&&l>0&&3===r.get(o-1,l-1)&&(u+=a.get(o-1,l-1)),u+=s?s(o,l):1):u=-1;const g=Math.max(h,d,u);if(g===u){const e=o>0&&l>0?a.get(o-1,l-1):0;a.set(o,l,e+1),r.set(o,l,3)}else g===h?(a.set(o,l,0),r.set(o,l,1)):g===d&&(a.set(o,l,0),r.set(o,l,2));n.set(o,l,g)}const h=[];let d=e.length,u=t.length;function g(e,t){e+1===d&&t+1===u||h.push(new c.$8(new o.L(e+1,d),new o.L(t+1,u))),d=e,u=t}let p=e.length-1,m=t.length-1;for(;p>=0&&m>=0;)3===r.get(p,m)?(g(p,m),p--,m--):1===r.get(p,m)?p--:m--;return g(-1,-1),h.reverse(),new c.SL(h,!1)}}class g{compute(e,t,i=c.uY.instance){if(0===e.length||0===t.length)return c.SL.trivial(e,t);const s=e,n=t;function r(e,t){for(;e<s.length&&t<n.length&&s.getElement(e)===n.getElement(t);)e++,t++;return e}let a=0;const l=new m;l.set(0,r(0,0));const h=new f;h.set(0,0===l.get(0)?null:new p(null,0,0,l.get(0)));let d=0;e:for(;;){if(a++,!i.isValid())return c.SL.trivialTimedOut(s,n);const e=-Math.min(a,n.length+a%2),t=Math.min(a,s.length+a%2);for(d=e;d<=t;d+=2){let i=0;const o=d===t?-1:l.get(d+1),a=d===e?-1:l.get(d-1)+1;i++;const c=Math.min(Math.max(o,a),s.length),u=c-d;if(i++,c>s.length||u>n.length)continue;const g=r(c,u);l.set(d,g);const m=c===o?h.get(d+1):h.get(d-1);if(h.set(d,g!==c?new p(m,c,u,g-c):m),l.get(d)===s.length&&l.get(d)-d===n.length)break e}}let u=h.get(d);const g=[];let _=s.length,v=n.length;for(;;){const e=u?u.x+u.length:0,t=u?u.y+u.length:0;if(e===_&&t===v||g.push(new c.$8(new o.L(e,_),new o.L(t,v))),!u)break;_=u.x,v=u.y,u=u.prev}return g.reverse(),new c.SL(g,!1)}}class p{constructor(e,t,i,s){this.prev=e,this.x=t,this.y=i,this.length=s}}class m{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=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)>=this.negativeArr.length){const e=this.negativeArr;this.negativeArr=new Int32Array(2*e.length),this.negativeArr.set(e)}this.negativeArr[e]=t}else{if(e>=this.positiveArr.length){const e=this.positiveArr;this.positiveArr=new Int32Array(2*e.length),this.positiveArr.set(e)}this.positiveArr[e]=t}}}class f{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}}var _=i(87723),v=i(46041),C=i(74320),E=i(83069);class b{constructor(e,t,i){this.lines=e,this.range=t,this.considerWhitespaceChanges=i,this.elements=[],this.firstElementOffsetByLineIdx=[],this.lineStartOffsets=[],this.trimmedWsLengthsByLineIdx=[],this.firstElementOffsetByLineIdx.push(0);for(let s=this.range.startLineNumber;s<=this.range.endLineNumber;s++){let t=e[s-1],n=0;s===this.range.startLineNumber&&this.range.startColumn>1&&(n=this.range.startColumn-1,t=t.substring(n)),this.lineStartOffsets.push(n);let r=0;if(!i){const e=t.trimStart();r=t.length-e.length,t=e.trimEnd()}this.trimmedWsLengthsByLineIdx.push(r);const o=s===this.range.endLineNumber?Math.min(this.range.endColumn-1-n-r,t.length):t.length;for(let e=0;e<o;e++)this.elements.push(t.charCodeAt(e));s<this.range.endLineNumber&&(this.elements.push("\n".charCodeAt(0)),this.firstElementOffsetByLineIdx.push(this.elements.length))}}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new o.L(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){const t=R(e>0?this.elements[e-1]:-1),i=R(e<this.elements.length?this.elements[e]:-1);if(7===t&&8===i)return 0;if(8===t)return 150;let s=0;return t!==i&&(s+=10,0===t&&1===i&&(s+=1)),s+=w(t),s+=w(i),s}translateOffset(e,t="right"){const i=(0,v.iM)(this.firstElementOffsetByLineIdx,(t=>t<=e)),s=e-this.firstElementOffsetByLineIdx[i];return new E.y(this.range.startLineNumber+i,1+this.lineStartOffsets[i]+s+(0===s&&"left"===t?0:this.trimmedWsLengthsByLineIdx[i]))}translateRange(e){const t=this.translateOffset(e.start,"right"),i=this.translateOffset(e.endExclusive,"left");return i.isBefore(t)?a.Q.fromPositions(i,i):a.Q.fromPositions(t,i)}findWordContaining(e){if(e<0||e>=this.elements.length)return;if(!S(this.elements[e]))return;let t=e;for(;t>0&&S(this.elements[t-1]);)t--;let i=e;for(;i<this.elements.length&&S(this.elements[i]);)i++;return new o.L(t,i)}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){const t=(0,v.lx)(this.firstElementOffsetByLineIdx,(t=>t<=e.start))??0,i=(0,v.XP)(this.firstElementOffsetByLineIdx,(t=>e.endExclusive<=t))??this.elements.length;return new o.L(t,i)}}function S(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}const y={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function w(e){return y[e]}function R(e){return 10===e?8:13===e?7:h(e)?6:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:-1===e?3:44===e||59===e?5:4}function L(e,t,i,n,o,a){let{moves:c,excludedChanges:l}=function(e,t,i,s){const n=[],r=e.filter((e=>e.modified.isEmpty&&e.original.length>=3)).map((e=>new d(e.original,t,e))),o=new Set(e.filter((e=>e.original.isEmpty&&e.modified.length>=3)).map((e=>new d(e.modified,i,e)))),a=new Set;for(const c of r){let e,t=-1;for(const i of o){const s=c.computeSimilarity(i);s>t&&(t=s,e=i)}if(t>.9&&e&&(o.delete(e),n.push(new _.WL(c.range,e.range)),a.add(c.source),a.add(e.source)),!s.isValid())return{moves:n,excludedChanges:a}}return{moves:n,excludedChanges:a}}(e,t,i,a);if(!a.isValid())return[];const h=function(e,t,i,n,o,a){const c=[],l=new C.db;for(const s of e)for(let e=s.original.startLineNumber;e<s.original.endLineNumberExclusive-2;e++){const i=`${t[e-1]}:${t[e+1-1]}:${t[e+2-1]}`;l.add(i,{range:new r.M(e,e+3)})}const h=[];e.sort((0,s.VE)((e=>e.modified.startLineNumber),s.U9));for(const s of e){let e=[];for(let t=s.modified.startLineNumber;t<s.modified.endLineNumberExclusive-2;t++){const s=`${i[t-1]}:${i[t+1-1]}:${i[t+2-1]}`,n=new r.M(t,t+3),o=[];l.forEach(s,(({range:t})=>{for(const s of e)if(s.originalLineRange.endLineNumberExclusive+1===t.endLineNumberExclusive&&s.modifiedLineRange.endLineNumberExclusive+1===n.endLineNumberExclusive)return s.originalLineRange=new r.M(s.originalLineRange.startLineNumber,t.endLineNumberExclusive),s.modifiedLineRange=new r.M(s.modifiedLineRange.startLineNumber,n.endLineNumberExclusive),void o.push(s);const i={modifiedLineRange:n,originalLineRange:t};h.push(i),o.push(i)})),e=o}if(!a.isValid())return[]}h.sort((0,s.Hw)((0,s.VE)((e=>e.modifiedLineRange.length),s.U9)));const d=new r.S,u=new r.S;for(const s of h){const e=s.modifiedLineRange.startLineNumber-s.originalLineRange.startLineNumber,t=d.subtractFrom(s.modifiedLineRange),i=u.subtractFrom(s.originalLineRange).getWithDelta(e),n=t.getIntersection(i);for(const s of n.ranges){if(s.length<3)continue;const t=s,i=s.delta(-e);c.push(new _.WL(i,t)),d.addRange(t),u.addRange(i)}}c.sort((0,s.VE)((e=>e.original.startLineNumber),s.U9));const g=new v.vJ(e);for(let s=0;s<c.length;s++){const t=c[s],i=g.findLastMonotonous((e=>e.original.startLineNumber<=t.original.startLineNumber)),l=(0,v.lx)(e,(e=>e.modified.startLineNumber<=t.modified.startLineNumber)),h=Math.max(t.original.startLineNumber-i.original.startLineNumber,t.modified.startLineNumber-l.modified.startLineNumber),p=g.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive)),m=(0,v.lx)(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)),f=Math.max(p.original.endLineNumberExclusive-t.original.endLineNumberExclusive,m.modified.endLineNumberExclusive-t.modified.endLineNumberExclusive);let C,E;for(C=0;C<h;C++){const e=t.original.startLineNumber-C-1,i=t.modified.startLineNumber-C-1;if(e>n.length||i>o.length)break;if(d.contains(i)||u.contains(e))break;if(!T(n[e-1],o[i-1],a))break}for(C>0&&(u.addRange(new r.M(t.original.startLineNumber-C,t.original.startLineNumber)),d.addRange(new r.M(t.modified.startLineNumber-C,t.modified.startLineNumber))),E=0;E<f;E++){const e=t.original.endLineNumberExclusive+E,i=t.modified.endLineNumberExclusive+E;if(e>n.length||i>o.length)break;if(d.contains(i)||u.contains(e))break;if(!T(n[e-1],o[i-1],a))break}E>0&&(u.addRange(new r.M(t.original.endLineNumberExclusive,t.original.endLineNumberExclusive+E)),d.addRange(new r.M(t.modified.endLineNumberExclusive,t.modified.endLineNumberExclusive+E))),(C>0||E>0)&&(c[s]=new _.WL(new r.M(t.original.startLineNumber-C,t.original.endLineNumberExclusive+E),new r.M(t.modified.startLineNumber-C,t.modified.endLineNumberExclusive+E)))}return c}(e.filter((e=>!l.has(e))),n,o,t,i,a);return(0,s.E4)(c,h),c=function(e){if(0===e.length)return e;e.sort((0,s.VE)((e=>e.original.startLineNumber),s.U9));const t=[e[0]];for(let i=1;i<e.length;i++){const s=t[t.length-1],n=e[i],r=n.original.startLineNumber-s.original.endLineNumberExclusive,o=n.modified.startLineNumber-s.modified.endLineNumberExclusive;r>=0&&o>=0&&r+o<=2?t[t.length-1]=s.join(n):t.push(n)}return t}(c),c=c.filter((e=>{const i=e.original.toOffsetRange().slice(t).map((e=>e.trim()));return i.join("\n").length>=15&&function(e,t){let i=0;for(const s of e)t(s)&&i++;return i}(i,(e=>e.length>=2))>=2})),c=function(e,t){const i=new v.vJ(e);return t=t.filter((t=>(i.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive))||new _.WL(new r.M(1,1),new r.M(1,1)))!==(0,v.lx)(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)))),t}(e,c),c}function T(e,t,i){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;const s=(new g).compute(new b([e],new a.Q(1,1,1,e.length),!1),new b([t],new a.Q(1,1,1,t.length),!1),i);let n=0;const r=c.$8.invert(s.diffs,e.length);for(const a of r)a.seq1Range.forEach((t=>{h(e.charCodeAt(t))||n++}));const o=function(t){let i=0;for(let s=0;s<e.length;s++)h(t.charCodeAt(s))||i++;return i}(e.length>t.length?e:t);return n/o>.6&&o>10}var x=i(82518);class k{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-((0===e?0:A(this.lines[e-1]))+(e===this.lines.length?0:A(this.lines[e])))}getText(e){return this.lines.slice(e.start,e.endExclusive).join("\n")}isStronglyEqual(e,t){return this.lines[e]===this.lines[t]}}function A(e){let t=0;for(;t<e.length&&(32===e.charCodeAt(t)||9===e.charCodeAt(t));)t++;return t}var N=i(41845);class I{constructor(){this.dynamicProgrammingDiffing=new u,this.myersDiffingAlgorithm=new g}computeDiff(e,t,i){if(e.length<=1&&(0,s.aI)(e,t,((e,t)=>e===t)))return new N.p([],[],!1);if(1===e.length&&0===e[0].length||1===t.length&&0===t[0].length)return new N.p([new _.wm(new r.M(1,e.length+1),new r.M(1,t.length+1),[new _.q6(new a.Q(1,1,e.length,e[e.length-1].length+1),new a.Q(1,1,t.length,t[t.length-1].length+1))])],[],!1);const l=0===i.maxComputationTimeMs?c.uY.instance:new c.aY(i.maxComputationTimeMs),h=!i.ignoreTrimWhitespace,d=new Map;function u(e){let t=d.get(e);return void 0===t&&(t=d.size,d.set(e,t)),t}const g=e.map((e=>u(e.trim()))),p=t.map((e=>u(e.trim()))),m=new k(g,e),f=new k(p,t),v=(()=>m.length+f.length<1700?this.dynamicProgrammingDiffing.compute(m,f,l,((i,s)=>e[i]===t[s]?0===t[s].length?.1:1+Math.log(1+t[s].length):.99)):this.myersDiffingAlgorithm.compute(m,f,l))();let C=v.diffs,E=v.hitTimeout;C=(0,x.NC)(m,f,C),C=(0,x.X5)(m,f,C);const b=[],S=i=>{if(h)for(let s=0;s<i;s++){const i=y+s,n=w+s;if(e[i]!==t[n]){const s=this.refineDiff(e,t,new c.$8(new o.L(i,i+1),new o.L(n,n+1)),l,h);for(const e of s.mappings)b.push(e);s.hitTimeout&&(E=!0)}}};let y=0,w=0;for(const s of C){(0,n.Ft)((()=>s.seq1Range.start-y===s.seq2Range.start-w));S(s.seq1Range.start-y),y=s.seq1Range.endExclusive,w=s.seq2Range.endExclusive;const i=this.refineDiff(e,t,s,l,h);i.hitTimeout&&(E=!0);for(const e of i.mappings)b.push(e)}S(e.length-y);const R=O(b,e,t);let L=[];return i.computeMoves&&(L=this.computeMoves(R,e,t,g,p,l,h)),(0,n.Ft)((()=>{function i(e,t){if(e.lineNumber<1||e.lineNumber>t.length)return!1;const i=t[e.lineNumber-1];return!(e.column<1||e.column>i.length+1)}function s(e,t){return!(e.startLineNumber<1||e.startLineNumber>t.length+1)&&!(e.endLineNumberExclusive<1||e.endLineNumberExclusive>t.length+1)}for(const n of R){if(!n.innerChanges)return!1;for(const s of n.innerChanges){if(!(i(s.modifiedRange.getStartPosition(),t)&&i(s.modifiedRange.getEndPosition(),t)&&i(s.originalRange.getStartPosition(),e)&&i(s.originalRange.getEndPosition(),e)))return!1}if(!s(n.modified,t)||!s(n.original,e))return!1}return!0})),new N.p(R,L,E)}computeMoves(e,t,i,s,n,r,o){return L(e,t,i,s,n,r).map((e=>{const s=O(this.refineDiff(t,i,new c.$8(e.original.toOffsetRange(),e.modified.toOffsetRange()),r,o).mappings,t,i,!0);return new N.t(e,s)}))}refineDiff(e,t,i,s,n){var o;const a=(o=i,new _.WL(new r.M(o.seq1Range.start+1,o.seq1Range.endExclusive+1),new r.M(o.seq2Range.start+1,o.seq2Range.endExclusive+1))).toRangeMapping2(e,t),c=new b(e,a.originalRange,n),l=new b(t,a.modifiedRange,n),h=c.length+l.length<500?this.dynamicProgrammingDiffing.compute(c,l,s):this.myersDiffingAlgorithm.compute(c,l,s),d=!1;let u=h.diffs;u=(0,x.NC)(c,l,u),u=(0,x.Lk)(c,l,u),u=(0,x.sq)(c,l,u),u=(0,x.Rl)(c,l,u);const g=u.map((e=>new _.q6(c.translateRange(e.seq1Range),l.translateRange(e.seq2Range))));return{mappings:g,hitTimeout:h.hitTimeout}}}function O(e,t,i,o=!1){const a=[];for(const n of(0,s.n)(e.map((e=>function(e,t,i){let s=0,n=0;1===e.modifiedRange.endColumn&&1===e.originalRange.endColumn&&e.originalRange.startLineNumber+s<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+s<=e.modifiedRange.endLineNumber&&(n=-1);e.modifiedRange.startColumn-1>=i[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+n&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+n&&(s=1);const o=new r.M(e.originalRange.startLineNumber+s,e.originalRange.endLineNumber+1+n),a=new r.M(e.modifiedRange.startLineNumber+s,e.modifiedRange.endLineNumber+1+n);return new _.wm(o,a,[e])}(e,t,i))),((e,t)=>e.original.overlapOrTouch(t.original)||e.modified.overlapOrTouch(t.modified)))){const e=n[0],t=n[n.length-1];a.push(new _.wm(e.original.join(t.original),e.modified.join(t.modified),n.map((e=>e.innerChanges[0]))))}return(0,n.Ft)((()=>{if(!o&&a.length>0){if(a[0].modified.startLineNumber!==a[0].original.startLineNumber)return!1;if(i.length-a[a.length-1].modified.endLineNumberExclusive!==t.length-a[a.length-1].original.endLineNumberExclusive)return!1}return(0,n.Xo)(a,((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))})),a}},82518:(e,t,i)=>{"use strict";i.d(t,{Lk:()=>h,NC:()=>o,Rl:()=>u,X5:()=>d,sq:()=>l});var s=i(25890),n=i(74444),r=i(68938);function o(e,t,i){let s=i;return s=a(e,t,s),s=a(e,t,s),s=function(e,t,i){if(!e.getBoundaryScore||!t.getBoundaryScore)return i;for(let s=0;s<i.length;s++){const r=s>0?i[s-1]:void 0,o=i[s],a=s+1<i.length?i[s+1]:void 0,l=new n.L(r?r.seq1Range.endExclusive+1:0,a?a.seq1Range.start-1:e.length),h=new n.L(r?r.seq2Range.endExclusive+1:0,a?a.seq2Range.start-1:t.length);o.seq1Range.isEmpty?i[s]=c(o,e,t,l,h):o.seq2Range.isEmpty&&(i[s]=c(o.swap(),t,e,h,l).swap())}return i}(e,t,s),s}function a(e,t,i){if(0===i.length)return i;const s=[];s.push(i[0]);for(let a=1;a<i.length;a++){const o=s[s.length-1];let c=i[a];if(c.seq1Range.isEmpty||c.seq2Range.isEmpty){const i=c.seq1Range.start-o.seq1Range.endExclusive;let a;for(a=1;a<=i&&(e.getElement(c.seq1Range.start-a)===e.getElement(c.seq1Range.endExclusive-a)&&t.getElement(c.seq2Range.start-a)===t.getElement(c.seq2Range.endExclusive-a));a++);if(a--,a===i){s[s.length-1]=new r.$8(new n.L(o.seq1Range.start,c.seq1Range.endExclusive-i),new n.L(o.seq2Range.start,c.seq2Range.endExclusive-i));continue}c=c.delta(-a)}s.push(c)}const o=[];for(let a=0;a<s.length-1;a++){const i=s[a+1];let c=s[a];if(c.seq1Range.isEmpty||c.seq2Range.isEmpty){const o=i.seq1Range.start-c.seq1Range.endExclusive;let l;for(l=0;l<o&&(e.isStronglyEqual(c.seq1Range.start+l,c.seq1Range.endExclusive+l)&&t.isStronglyEqual(c.seq2Range.start+l,c.seq2Range.endExclusive+l));l++);if(l===o){s[a+1]=new r.$8(new n.L(c.seq1Range.start+o,i.seq1Range.endExclusive),new n.L(c.seq2Range.start+o,i.seq2Range.endExclusive));continue}l>0&&(c=c.delta(l))}o.push(c)}return s.length>0&&o.push(s[s.length-1]),o}function c(e,t,i,s,n){let r=1;for(;e.seq1Range.start-r>=s.start&&e.seq2Range.start-r>=n.start&&i.isStronglyEqual(e.seq2Range.start-r,e.seq2Range.endExclusive-r)&&r<100;)r++;r--;let o=0;for(;e.seq1Range.start+o<s.endExclusive&&e.seq2Range.endExclusive+o<n.endExclusive&&i.isStronglyEqual(e.seq2Range.start+o,e.seq2Range.endExclusive+o)&&o<100;)o++;if(0===r&&0===o)return e;let a=0,c=-1;for(let l=-r;l<=o;l++){const s=e.seq2Range.start+l,n=e.seq2Range.endExclusive+l,r=e.seq1Range.start+l,o=t.getBoundaryScore(r)+i.getBoundaryScore(s)+i.getBoundaryScore(n);o>c&&(c=o,a=l)}return e.delta(a)}function l(e,t,i){const s=[];for(const n of i){const e=s[s.length-1];e?n.seq1Range.start-e.seq1Range.endExclusive<=2||n.seq2Range.start-e.seq2Range.endExclusive<=2?s[s.length-1]=new r.$8(e.seq1Range.join(n.seq1Range),e.seq2Range.join(n.seq2Range)):s.push(n):s.push(n)}return s}function h(e,t,i){const s=r.$8.invert(i,e.length),n=[];let o=new r._3(0,0);function a(i,a){if(i.offset1<o.offset1||i.offset2<o.offset2)return;const c=e.findWordContaining(i.offset1),l=t.findWordContaining(i.offset2);if(!c||!l)return;let h=new r.$8(c,l);const d=h.intersect(a);let u=d.seq1Range.length,g=d.seq2Range.length;for(;s.length>0;){const i=s[0];if(!(i.seq1Range.intersects(h.seq1Range)||i.seq2Range.intersects(h.seq2Range)))break;const n=e.findWordContaining(i.seq1Range.start),o=t.findWordContaining(i.seq2Range.start),a=new r.$8(n,o),c=a.intersect(i);if(u+=c.seq1Range.length,g+=c.seq2Range.length,h=h.join(a),!(h.seq1Range.endExclusive>=i.seq1Range.endExclusive))break;s.shift()}u+g<2*(h.seq1Range.length+h.seq2Range.length)/3&&n.push(h),o=h.getEndExclusives()}for(;s.length>0;){const e=s.shift();e.seq1Range.isEmpty||(a(e.getStarts(),e),a(e.getEndExclusives().delta(-1),e))}return function(e,t){const i=[];for(;e.length>0||t.length>0;){const s=e[0],n=t[0];let r;r=s&&(!n||s.seq1Range.start<n.seq1Range.start)?e.shift():t.shift(),i.length>0&&i[i.length-1].seq1Range.endExclusive>=r.seq1Range.start?i[i.length-1]=i[i.length-1].join(r):i.push(r)}return i}(i,n)}function d(e,t,i){let s=i;if(0===s.length)return s;let r,o=0;do{r=!1;const a=[s[0]];for(let c=1;c<s.length;c++){const l=s[c],h=a[a.length-1];function d(t,i){const s=new n.L(h.seq1Range.endExclusive,l.seq1Range.start);return e.getText(s).replace(/\s/g,"").length<=4&&(t.seq1Range.length+t.seq2Range.length>5||i.seq1Range.length+i.seq2Range.length>5)}d(h,l)?(r=!0,a[a.length-1]=a[a.length-1].join(l)):a.push(l)}s=a}while(o++<10&&r);return s}function u(e,t,i){let o=i;if(0===o.length)return o;let a,c=0;do{a=!1;const h=[o[0]];for(let d=1;d<o.length;d++){const u=o[d],g=h[h.length-1];function p(i,s){const r=new n.L(g.seq1Range.endExclusive,u.seq1Range.start);if(e.countLinesIn(r)>5||r.length>500)return!1;const o=e.getText(r).trim();if(o.length>20||o.split(/\r\n|\r|\n/).length>1)return!1;const a=e.countLinesIn(i.seq1Range),c=i.seq1Range.length,l=t.countLinesIn(i.seq2Range),h=i.seq2Range.length,d=e.countLinesIn(s.seq1Range),p=s.seq1Range.length,m=t.countLinesIn(s.seq2Range),f=s.seq2Range.length;function _(e){return Math.min(e,130)}return Math.pow(Math.pow(_(40*a+c),1.5)+Math.pow(_(40*l+h),1.5),1.5)+Math.pow(Math.pow(_(40*d+p),1.5)+Math.pow(_(40*m+f),1.5),1.5)>74184.96480721243}p(g,u)?(a=!0,h[h.length-1]=h[h.length-1].join(u)):h.push(u)}o=h}while(c++<10&&a);const l=[];return(0,s.kj)(o,((t,i,s)=>{let o=i;function a(e){return e.length>0&&e.trim().length<=3&&i.seq1Range.length+i.seq2Range.length>100}const c=e.extendToFullLines(i.seq1Range),h=e.getText(new n.L(c.start,i.seq1Range.start));a(h)&&(o=o.deltaStart(-h.length));const d=e.getText(new n.L(i.seq1Range.endExclusive,c.endExclusive));a(d)&&(o=o.deltaEnd(d.length));const u=r.$8.fromOffsetPairs(t?t.getEndExclusives():r._3.zero,s?s.getStarts():r._3.max),g=o.intersect(u);l.length>0&&g.getStarts().equals(l[l.length-1].getEndExclusives())?l[l.length-1]=l[l.length-1].join(g):l.push(g)})),l}},41845:(e,t,i)=>{"use strict";i.d(t,{p:()=>s,t:()=>n});class s{constructor(e,t,i){this.changes=e,this.moves=t,this.hitTimeout=i}}class n{constructor(e,t){this.lineRangeMapping=e,this.changes=t}}},87723:(e,t,i)=>{"use strict";i.d(t,{WL:()=>c,q6:()=>u,wm:()=>d});var s=i(64383),n=i(86571),r=i(83069),o=i(36677),a=i(75295);class c{static inverse(e,t,i){const s=[];let r=1,o=1;for(const l of e){const e=new c(new n.M(r,l.original.startLineNumber),new n.M(o,l.modified.startLineNumber));e.modified.isEmpty||s.push(e),r=l.original.endLineNumberExclusive,o=l.modified.endLineNumberExclusive}const a=new c(new n.M(r,t+1),new n.M(o,i+1));return a.modified.isEmpty||s.push(a),s}static clip(e,t,i){const s=[];for(const n of e){const e=n.original.intersect(t),r=n.modified.intersect(i);e&&!e.isEmpty&&r&&!r.isEmpty&&s.push(new c(e,r))}return s}constructor(e,t){this.original=e,this.modified=t}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new c(this.modified,this.original)}join(e){return new c(this.original.join(e.original),this.modified.join(e.modified))}toRangeMapping(){const e=this.original.toInclusiveRange(),t=this.modified.toInclusiveRange();if(e&&t)return new u(e,t);if(1===this.original.startLineNumber||1===this.modified.startLineNumber){if(1!==this.modified.startLineNumber||1!==this.original.startLineNumber)throw new s.D7("not a valid diff");return new u(new o.Q(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new o.Q(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}return new u(new o.Q(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new o.Q(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}toRangeMapping2(e,t){if(h(this.original.endLineNumberExclusive,e)&&h(this.modified.endLineNumberExclusive,t))return new u(new o.Q(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new o.Q(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1));if(!this.original.isEmpty&&!this.modified.isEmpty)return new u(o.Q.fromPositions(new r.y(this.original.startLineNumber,1),l(new r.y(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),o.Q.fromPositions(new r.y(this.modified.startLineNumber,1),l(new r.y(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)));if(this.original.startLineNumber>1&&this.modified.startLineNumber>1)return new u(o.Q.fromPositions(l(new r.y(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER),e),l(new r.y(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),o.Q.fromPositions(l(new r.y(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER),t),l(new r.y(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)));throw new s.D7}}function l(e,t){if(e.lineNumber<1)return new r.y(1,1);if(e.lineNumber>t.length)return new r.y(t.length,t[t.length-1].length+1);const i=t[e.lineNumber-1];return e.column>i.length+1?new r.y(e.lineNumber,i.length+1):e}function h(e,t){return e>=1&&e<=t.length}class d extends c{static fromRangeMappings(e){const t=n.M.join(e.map((e=>n.M.fromRangeInclusive(e.originalRange)))),i=n.M.join(e.map((e=>n.M.fromRangeInclusive(e.modifiedRange))));return new d(t,i,e)}constructor(e,t,i){super(e,t),this.innerChanges=i}flip(){return new d(this.modified,this.original,this.innerChanges?.map((e=>e.flip())))}withInnerChangesFromLineRanges(){return new d(this.original,this.modified,[this.toRangeMapping()])}}class u{static assertSorted(e){for(let t=1;t<e.length;t++){const i=e[t-1],n=e[t];if(!i.originalRange.getEndPosition().isBeforeOrEqual(n.originalRange.getStartPosition())||!i.modifiedRange.getEndPosition().isBeforeOrEqual(n.modifiedRange.getStartPosition()))throw new s.D7("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 u(this.modifiedRange,this.originalRange)}toTextEdit(e){const t=e.getValueOfRange(this.modifiedRange);return new a.WR(this.originalRange,t)}}},29611:(e,t,i)=>{"use strict";i.d(t,{f:()=>s});class s{constructor(e,t,i,s,n,r,o){this.id=e,this.label=t,this.alias=i,this.metadata=s,this._precondition=n,this._run=r,this._contextKeyService=o}isSupported(){return this._contextKeyService.contextMatchesRules(this._precondition)}run(e){return this.isSupported()?this._run(e):Promise.resolve(void 0)}}},23452:(e,t,i)=>{"use strict";i.d(t,{_:()=>s});const s={ICodeEditor:"vs.editor.ICodeEditor",IDiffEditor:"vs.editor.IDiffEditor"}},60002:(e,t,i)=>{"use strict";i.d(t,{R:()=>s});var s,n=i(78209),r=i(32848);!function(e){e.editorSimpleInput=new r.N1("editorSimpleInput",!1,!0),e.editorTextFocus=new r.N1("editorTextFocus",!1,n.kg("editorTextFocus","Whether the editor text has focus (cursor is blinking)")),e.focus=new r.N1("editorFocus",!1,n.kg("editorFocus","Whether the editor or an editor widget has focus (e.g. focus is in the find widget)")),e.textInputFocus=new r.N1("textInputFocus",!1,n.kg("textInputFocus","Whether an editor or a rich text input has focus (cursor is blinking)")),e.readOnly=new r.N1("editorReadonly",!1,n.kg("editorReadonly","Whether the editor is read-only")),e.inDiffEditor=new r.N1("inDiffEditor",!1,n.kg("inDiffEditor","Whether the context is a diff editor")),e.isEmbeddedDiffEditor=new r.N1("isEmbeddedDiffEditor",!1,n.kg("isEmbeddedDiffEditor","Whether the context is an embedded diff editor")),e.inMultiDiffEditor=new r.N1("inMultiDiffEditor",!1,n.kg("inMultiDiffEditor","Whether the context is a multi diff editor")),e.multiDiffEditorAllCollapsed=new r.N1("multiDiffEditorAllCollapsed",void 0,n.kg("multiDiffEditorAllCollapsed","Whether all files in multi diff editor are collapsed")),e.hasChanges=new r.N1("diffEditorHasChanges",!1,n.kg("diffEditorHasChanges","Whether the diff editor has changes")),e.comparingMovedCode=new r.N1("comparingMovedCode",!1,n.kg("comparingMovedCode","Whether a moved code block is selected for comparison")),e.accessibleDiffViewerVisible=new r.N1("accessibleDiffViewerVisible",!1,n.kg("accessibleDiffViewerVisible","Whether the accessible diff viewer is visible")),e.diffEditorRenderSideBySideInlineBreakpointReached=new r.N1("diffEditorRenderSideBySideInlineBreakpointReached",!1,n.kg("diffEditorRenderSideBySideInlineBreakpointReached","Whether the diff editor render side by side inline breakpoint is reached")),e.diffEditorInlineMode=new r.N1("diffEditorInlineMode",!1,n.kg("diffEditorInlineMode","Whether inline mode is active")),e.diffEditorOriginalWritable=new r.N1("diffEditorOriginalWritable",!1,n.kg("diffEditorOriginalWritable","Whether modified is writable in the diff editor")),e.diffEditorModifiedWritable=new r.N1("diffEditorModifiedWritable",!1,n.kg("diffEditorModifiedWritable","Whether modified is writable in the diff editor")),e.diffEditorOriginalUri=new r.N1("diffEditorOriginalUri","",n.kg("diffEditorOriginalUri","The uri of the original document")),e.diffEditorModifiedUri=new r.N1("diffEditorModifiedUri","",n.kg("diffEditorModifiedUri","The uri of the modified document")),e.columnSelection=new r.N1("editorColumnSelection",!1,n.kg("editorColumnSelection","Whether `editor.columnSelection` is enabled")),e.writable=e.readOnly.toNegated(),e.hasNonEmptySelection=new r.N1("editorHasSelection",!1,n.kg("editorHasSelection","Whether the editor has text selected")),e.hasOnlyEmptySelection=e.hasNonEmptySelection.toNegated(),e.hasMultipleSelections=new r.N1("editorHasMultipleSelections",!1,n.kg("editorHasMultipleSelections","Whether the editor has multiple selections")),e.hasSingleSelection=e.hasMultipleSelections.toNegated(),e.tabMovesFocus=new r.N1("editorTabMovesFocus",!1,n.kg("editorTabMovesFocus","Whether `Tab` will move focus out of the editor")),e.tabDoesNotMoveFocus=e.tabMovesFocus.toNegated(),e.isInEmbeddedEditor=new r.N1("isInEmbeddedEditor",!1,!0),e.canUndo=new r.N1("canUndo",!1,!0),e.canRedo=new r.N1("canRedo",!1,!0),e.hoverVisible=new r.N1("editorHoverVisible",!1,n.kg("editorHoverVisible","Whether the editor hover is visible")),e.hoverFocused=new r.N1("editorHoverFocused",!1,n.kg("editorHoverFocused","Whether the editor hover is focused")),e.stickyScrollFocused=new r.N1("stickyScrollFocused",!1,n.kg("stickyScrollFocused","Whether the sticky scroll is focused")),e.stickyScrollVisible=new r.N1("stickyScrollVisible",!1,n.kg("stickyScrollVisible","Whether the sticky scroll is visible")),e.standaloneColorPickerVisible=new r.N1("standaloneColorPickerVisible",!1,n.kg("standaloneColorPickerVisible","Whether the standalone color picker is visible")),e.standaloneColorPickerFocused=new r.N1("standaloneColorPickerFocused",!1,n.kg("standaloneColorPickerFocused","Whether the standalone color picker is focused")),e.inCompositeEditor=new r.N1("inCompositeEditor",void 0,n.kg("inCompositeEditor","Whether the editor is part of a larger editor (e.g. notebooks)")),e.notInCompositeEditor=e.inCompositeEditor.toNegated(),e.languageId=new r.N1("editorLangId","",n.kg("editorLangId","The language identifier of the editor")),e.hasCompletionItemProvider=new r.N1("editorHasCompletionItemProvider",!1,n.kg("editorHasCompletionItemProvider","Whether the editor has a completion item provider")),e.hasCodeActionsProvider=new r.N1("editorHasCodeActionsProvider",!1,n.kg("editorHasCodeActionsProvider","Whether the editor has a code actions provider")),e.hasCodeLensProvider=new r.N1("editorHasCodeLensProvider",!1,n.kg("editorHasCodeLensProvider","Whether the editor has a code lens provider")),e.hasDefinitionProvider=new r.N1("editorHasDefinitionProvider",!1,n.kg("editorHasDefinitionProvider","Whether the editor has a definition provider")),e.hasDeclarationProvider=new r.N1("editorHasDeclarationProvider",!1,n.kg("editorHasDeclarationProvider","Whether the editor has a declaration provider")),e.hasImplementationProvider=new r.N1("editorHasImplementationProvider",!1,n.kg("editorHasImplementationProvider","Whether the editor has an implementation provider")),e.hasTypeDefinitionProvider=new r.N1("editorHasTypeDefinitionProvider",!1,n.kg("editorHasTypeDefinitionProvider","Whether the editor has a type definition provider")),e.hasHoverProvider=new r.N1("editorHasHoverProvider",!1,n.kg("editorHasHoverProvider","Whether the editor has a hover provider")),e.hasDocumentHighlightProvider=new r.N1("editorHasDocumentHighlightProvider",!1,n.kg("editorHasDocumentHighlightProvider","Whether the editor has a document highlight provider")),e.hasDocumentSymbolProvider=new r.N1("editorHasDocumentSymbolProvider",!1,n.kg("editorHasDocumentSymbolProvider","Whether the editor has a document symbol provider")),e.hasReferenceProvider=new r.N1("editorHasReferenceProvider",!1,n.kg("editorHasReferenceProvider","Whether the editor has a reference provider")),e.hasRenameProvider=new r.N1("editorHasRenameProvider",!1,n.kg("editorHasRenameProvider","Whether the editor has a rename provider")),e.hasSignatureHelpProvider=new r.N1("editorHasSignatureHelpProvider",!1,n.kg("editorHasSignatureHelpProvider","Whether the editor has a signature help provider")),e.hasInlayHintsProvider=new r.N1("editorHasInlayHintsProvider",!1,n.kg("editorHasInlayHintsProvider","Whether the editor has an inline hints provider")),e.hasDocumentFormattingProvider=new r.N1("editorHasDocumentFormattingProvider",!1,n.kg("editorHasDocumentFormattingProvider","Whether the editor has a document formatting provider")),e.hasDocumentSelectionFormattingProvider=new r.N1("editorHasDocumentSelectionFormattingProvider",!1,n.kg("editorHasDocumentSelectionFormattingProvider","Whether the editor has a document selection formatting provider")),e.hasMultipleDocumentFormattingProvider=new r.N1("editorHasMultipleDocumentFormattingProvider",!1,n.kg("editorHasMultipleDocumentFormattingProvider","Whether the editor has multiple document formatting providers")),e.hasMultipleDocumentSelectionFormattingProvider=new r.N1("editorHasMultipleDocumentSelectionFormattingProvider",!1,n.kg("editorHasMultipleDocumentSelectionFormattingProvider","Whether the editor has multiple document selection formatting providers"))}(s||(s={}))},72466:(e,t,i)=>{"use strict";i.d(t,{T:()=>r,x:()=>n});const s=[];function n(e){s.push(e)}function r(){return s.slice(0)}},25982:(e,t,i)=>{"use strict";i.d(t,{x:()=>s});class s{static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return 0!==(1024&e)}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(16744448&e)>>>15}static getBackground(e){return(4278190080&e)>>>24}static getClassNameFromMetadata(e){let t="mtk"+this.getForeground(e);const i=this.getFontStyle(e);return 1&i&&(t+=" mtki"),2&i&&(t+=" mtkb"),4&i&&(t+=" mtku"),8&i&&(t+=" mtks"),t}static getInlineStyleFromMetadata(e,t){const i=this.getForeground(e),s=this.getFontStyle(e);let n=`color: ${t[i]};`;1&s&&(n+="font-style: italic;"),2&s&&(n+="font-weight: bold;");let r="";return 4&s&&(r+=" underline"),8&s&&(r+=" line-through"),r&&(n+=`text-decoration:${r};`),n}static getPresentationFromMetadata(e){const t=this.getForeground(e),i=this.getFontStyle(e);return{foreground:t,italic:Boolean(1&i),bold:Boolean(2&i),underline:Boolean(4&i),strikethrough:Boolean(8&i)}}}},54459:(e,t,i)=>{"use strict";i.d(t,{f:()=>r});var s=i(46958),n=i(74027);function r(e,t,i,o,a,c){if(Array.isArray(e)){let s=0;for(const n of e){const e=r(n,t,i,o,a,c);if(10===e)return e;e>s&&(s=e)}return s}if("string"===typeof e)return o?"*"===e?5:e===i?10:0:0;if(e){const{language:r,pattern:l,scheme:h,hasAccessToAllModels:d,notebookType:u}=e;if(!o&&!d)return 0;u&&a&&(t=a);let g=0;if(h)if(h===t.scheme)g=10;else{if("*"!==h)return 0;g=5}if(r)if(r===i)g=10;else{if("*"!==r)return 0;g=Math.max(g,5)}if(u)if(u===c)g=10;else{if("*"!==u||void 0===c)return 0;g=Math.max(g,5)}if(l){let e;if(e="string"===typeof l?l:{...l,base:(0,n.S8)(l.base)},e!==t.fsPath&&!(0,s.YW)(e,t.fsPath))return 0;g=10}return g}return 0}},62083:(e,t,i)=>{"use strict";i.d(t,{uB:()=>T,HC:()=>d,Kb:()=>m,FX:()=>g,rY:()=>C,lO:()=>k,M$:()=>h,r4:()=>x,qw:()=>u,sm:()=>O,v_:()=>A,OV:()=>R,YT:()=>L,GE:()=>E,WA:()=>p,gP:()=>w,ou:()=>_,dG:()=>N,$M:()=>v,OB:()=>I,PK:()=>y,Iu:()=>b});var s=i(10350),n=i(79400),r=i(36677),o=i(41234),a=i(5662);class c{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new o.vl,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]),(0,a.s)((()=>{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();const i=new l(this,e,t);return this._factories.set(e,i),(0,a.s)((()=>{const t=this._factories.get(e);t&&t===i&&(this._factories.delete(e),t.dispose())}))}async getOrCreate(e){const t=this.get(e);if(t)return t;const i=this._factories.get(e);return!i||i.isResolved?null:(await i.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;const 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}}class l extends a.jG{get isResolved(){return this._isResolved}constructor(e,t,i){super(),this._registry=e,this._languageId=t,this._factory=i,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){const e=await this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}}var h,d,u,g,p,m,f=i(78209);class _{constructor(e,t,i){this.offset=e,this.type=t,this.language=i,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}class v{constructor(e,t){this.tokens=e,this.endState=t,this._tokenizationResultBrand=void 0}}class C{constructor(e,t){this.tokens=e,this.endState=t,this._encodedTokenizationResultBrand=void 0}}!function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(h||(h={})),function(e){const t=new Map;t.set(0,s.W.symbolMethod),t.set(1,s.W.symbolFunction),t.set(2,s.W.symbolConstructor),t.set(3,s.W.symbolField),t.set(4,s.W.symbolVariable),t.set(5,s.W.symbolClass),t.set(6,s.W.symbolStruct),t.set(7,s.W.symbolInterface),t.set(8,s.W.symbolModule),t.set(9,s.W.symbolProperty),t.set(10,s.W.symbolEvent),t.set(11,s.W.symbolOperator),t.set(12,s.W.symbolUnit),t.set(13,s.W.symbolValue),t.set(15,s.W.symbolEnum),t.set(14,s.W.symbolConstant),t.set(15,s.W.symbolEnum),t.set(16,s.W.symbolEnumMember),t.set(17,s.W.symbolKeyword),t.set(27,s.W.symbolSnippet),t.set(18,s.W.symbolText),t.set(19,s.W.symbolColor),t.set(20,s.W.symbolFile),t.set(21,s.W.symbolReference),t.set(22,s.W.symbolCustomColor),t.set(23,s.W.symbolFolder),t.set(24,s.W.symbolTypeParameter),t.set(25,s.W.account),t.set(26,s.W.issues),e.toIcon=function(e){let i=t.get(e);return i||(console.info("No codicon found for CompletionItemKind "+e),i=s.W.symbolProperty),i};const i=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",27),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),e.fromString=function(e,t){let s=i.get(e);return"undefined"!==typeof s||t||(s=9),s}}(d||(d={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(u||(u={}));class E{constructor(e,t,i,s){this.range=e,this.text=t,this.completionKind=i,this.isSnippetText=s}equals(e){return r.Q.lift(this.range).equalsRange(e.range)&&this.text===e.text&&this.completionKind===e.completionKind&&this.isSnippetText===e.isSnippetText}}function b(e){return e&&n.r.isUri(e.uri)&&r.Q.isIRange(e.range)&&(r.Q.isIRange(e.originSelectionRange)||r.Q.isIRange(e.targetSelectionRange))}!function(e){e[e.Automatic=0]="Automatic",e[e.PasteAs=1]="PasteAs"}(g||(g={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(p||(p={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(m||(m={}));const S={17:(0,f.kg)("Array","array"),16:(0,f.kg)("Boolean","boolean"),4:(0,f.kg)("Class","class"),13:(0,f.kg)("Constant","constant"),8:(0,f.kg)("Constructor","constructor"),9:(0,f.kg)("Enum","enumeration"),21:(0,f.kg)("EnumMember","enumeration member"),23:(0,f.kg)("Event","event"),7:(0,f.kg)("Field","field"),0:(0,f.kg)("File","file"),11:(0,f.kg)("Function","function"),10:(0,f.kg)("Interface","interface"),19:(0,f.kg)("Key","key"),5:(0,f.kg)("Method","method"),1:(0,f.kg)("Module","module"),2:(0,f.kg)("Namespace","namespace"),20:(0,f.kg)("Null","null"),15:(0,f.kg)("Number","number"),18:(0,f.kg)("Object","object"),24:(0,f.kg)("Operator","operator"),3:(0,f.kg)("Package","package"),6:(0,f.kg)("Property","property"),14:(0,f.kg)("String","string"),22:(0,f.kg)("Struct","struct"),25:(0,f.kg)("TypeParameter","type parameter"),12:(0,f.kg)("Variable","variable")};function y(e,t){return(0,f.kg)("symbolAriaLabel","{0} ({1})",e,S[t])}var w,R,L,T,x;!function(e){const t=new Map;t.set(0,s.W.symbolFile),t.set(1,s.W.symbolModule),t.set(2,s.W.symbolNamespace),t.set(3,s.W.symbolPackage),t.set(4,s.W.symbolClass),t.set(5,s.W.symbolMethod),t.set(6,s.W.symbolProperty),t.set(7,s.W.symbolField),t.set(8,s.W.symbolConstructor),t.set(9,s.W.symbolEnum),t.set(10,s.W.symbolInterface),t.set(11,s.W.symbolFunction),t.set(12,s.W.symbolVariable),t.set(13,s.W.symbolConstant),t.set(14,s.W.symbolString),t.set(15,s.W.symbolNumber),t.set(16,s.W.symbolBoolean),t.set(17,s.W.symbolArray),t.set(18,s.W.symbolObject),t.set(19,s.W.symbolKey),t.set(20,s.W.symbolNull),t.set(21,s.W.symbolEnumMember),t.set(22,s.W.symbolStruct),t.set(23,s.W.symbolEvent),t.set(24,s.W.symbolOperator),t.set(25,s.W.symbolTypeParameter),e.toIcon=function(e){let i=t.get(e);return i||(console.info("No codicon found for SymbolKind "+e),i=s.W.symbolProperty),i}}(w||(w={}));class k{static{this.Comment=new k("comment")}static{this.Imports=new k("imports")}static{this.Region=new k("region")}static fromValue(e){switch(e){case"comment":return k.Comment;case"imports":return k.Imports;case"region":return k.Region}return new k(e)}constructor(e){this.value=e}}!function(e){e[e.AIGenerated=1]="AIGenerated"}(R||(R={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(L||(L={})),function(e){e.is=function(e){return!(!e||"object"!==typeof e)&&("string"===typeof e.id&&"string"===typeof e.title)}}(T||(T={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(x||(x={}));class A{constructor(e){this.createSupport=e,this._tokenizationSupport=null}dispose(){this._tokenizationSupport&&this._tokenizationSupport.then((e=>{e&&e.dispose()}))}get tokenizationSupport(){return this._tokenizationSupport||(this._tokenizationSupport=this.createSupport()),this._tokenizationSupport}}const N=new c,I=new c;var O;!function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(O||(O={}))},82365:(e,t,i)=>{"use strict";i.d(t,{$f:()=>a,MU:()=>c,Yb:()=>h,_t:()=>l,vn:()=>o});var s=i(91508),n=i(38566),r=i(27760);function o(e,t,i,o=!0,a){if(e<4)return null;const c=a.getLanguageConfiguration(t.tokenization.getLanguageId()).indentRulesSupport;if(!c)return null;const l=new r.no(t,c,a);if(i<=1)return{indentation:"",action:null};for(let s=i-1;s>0&&""===t.getLineContent(s);s--)if(1===s)return{indentation:"",action:null};const h=function(e,t,i){const s=e.tokenization.getLanguageIdAtPosition(t,0);if(t>1){let n,r=-1;for(n=t-1;n>=1;n--){if(e.tokenization.getLanguageIdAtPosition(n,0)!==s)return r;const t=e.getLineContent(n);if(!i.shouldIgnore(n)&&!/^\s+$/.test(t)&&""!==t)return n;r=n}}return-1}(t,i,l);if(h<0)return null;if(h<1)return{indentation:"",action:null};if(l.shouldIncrease(h)||l.shouldIndentNextLine(h)){const e=t.getLineContent(h);return{indentation:s.UU(e),action:n.l.Indent,line:h}}if(l.shouldDecrease(h)){const e=t.getLineContent(h);return{indentation:s.UU(e),action:null,line:h}}{if(1===h)return{indentation:s.UU(t.getLineContent(h)),action:null,line:h};const e=h-1,i=c.getIndentMetadata(t.getLineContent(e));if(!(3&i)&&4&i){let i=0;for(let t=e-1;t>0;t--)if(!l.shouldIndentNextLine(t)){i=t;break}return{indentation:s.UU(t.getLineContent(i+1)),action:null,line:i+1}}if(o)return{indentation:s.UU(t.getLineContent(h)),action:null,line:h};for(let r=h;r>0;r--){if(l.shouldIncrease(r))return{indentation:s.UU(t.getLineContent(r)),action:n.l.Indent,line:r};if(l.shouldIndentNextLine(r)){let e=0;for(let t=r-1;t>0;t--)if(!l.shouldIndentNextLine(r)){e=t;break}return{indentation:s.UU(t.getLineContent(e+1)),action:null,line:e+1}}if(l.shouldDecrease(r))return{indentation:s.UU(t.getLineContent(r)),action:null,line:r}}return{indentation:s.UU(t.getLineContent(1)),action:null,line:1}}}function a(e,t,i,a,c,l){if(e<4)return null;const h=l.getLanguageConfiguration(i);if(!h)return null;const d=l.getLanguageConfiguration(i).indentRulesSupport;if(!d)return null;const u=new r.no(t,d,l),g=o(e,t,a,void 0,l);if(g){const i=g.line;if(void 0!==i){let r=!0;for(let e=i;e<a-1;e++)if(!/^\s*$/.test(t.getLineContent(e))){r=!1;break}if(r){const r=h.onEnter(e,"",t.getLineContent(i),"");if(r){let e=s.UU(t.getLineContent(i));return r.removeText&&(e=e.substring(0,e.length-r.removeText)),r.indentAction===n.l.Indent||r.indentAction===n.l.IndentOutdent?e=c.shiftIndent(e):r.indentAction===n.l.Outdent&&(e=c.unshiftIndent(e)),u.shouldDecrease(a)&&(e=c.unshiftIndent(e)),r.appendText&&(e+=r.appendText),s.UU(e)}}}return u.shouldDecrease(a)?g.action===n.l.Indent?g.indentation:c.unshiftIndent(g.indentation):g.action===n.l.Indent?c.shiftIndent(g.indentation):g.indentation}return null}function c(e,t,i,a,c){if(e<4)return null;const l=t.getLanguageIdAtPosition(i.startLineNumber,i.startColumn),h=c.getLanguageConfiguration(l).indentRulesSupport;if(!h)return null;t.tokenization.forceTokenization(i.startLineNumber);const d=new r.V(t,c).getProcessedTokenContextAroundRange(i),u=d.afterRangeProcessedTokens,g=d.beforeRangeProcessedTokens,p=s.UU(g.getLineContent()),m=function(e,t,i){const s={tokenization:{getLineTokens:s=>s===t?i:e.tokenization.getLineTokens(s),getLanguageId:()=>e.getLanguageId(),getLanguageIdAtPosition:(t,i)=>e.getLanguageIdAtPosition(t,i)},getLineContent:s=>s===t?i.getLineContent():e.getLineContent(s)};return s}(t,i.startLineNumber,g),f=(0,r.WR)(t,i.getStartPosition()),_=t.getLineContent(i.startLineNumber),v=s.UU(_),C=o(e,m,i.startLineNumber+1,void 0,c);if(!C){const e=f?v:p;return{beforeEnter:e,afterEnter:e}}let E=f?v:C.indentation;return C.action===n.l.Indent&&(E=a.shiftIndent(E)),h.shouldDecrease(u.getLineContent())&&(E=a.unshiftIndent(E)),{beforeEnter:f?v:p,afterEnter:E}}function l(e,t,i,a,c,l){const h=e.autoIndent;if(h<4)return null;if((0,r.WR)(t,i.getStartPosition()))return null;const d=t.getLanguageIdAtPosition(i.startLineNumber,i.startColumn),u=l.getLanguageConfiguration(d).indentRulesSupport;if(!u)return null;const g=new r.V(t,l).getProcessedTokenContextAroundRange(i),p=g.beforeRangeProcessedTokens.getLineContent(),m=g.afterRangeProcessedTokens.getLineContent(),f=p+m,_=p+a+m;if(!u.shouldDecrease(f)&&u.shouldDecrease(_)){const e=o(h,t,i.startLineNumber,!1,l);if(!e)return null;let s=e.indentation;return e.action!==n.l.Indent&&(s=c.unshiftIndent(s)),s}const v=i.startLineNumber-1;if(v>0){const n=t.getLineContent(v);if(u.shouldIndentNextLine(n)&&u.shouldIncrease(_)){const n=o(h,t,i.startLineNumber,!1,l),r=n?.indentation;if(void 0!==r){const n=t.getLineContent(i.startLineNumber),o=s.UU(n),l=c.shiftIndent(r)===o,h=/^\s*$/.test(f),d=e.autoClosingPairs.autoClosingPairsOpenByEnd.get(a),u=d&&d.length>0;if(l&&(u&&h))return r}}}return null}function h(e,t,i){const s=i.getLanguageConfiguration(e.getLanguageId()).indentRulesSupport;return s?t<1||t>e.getLineCount()?null:s.getIndentMetadata(e.getLineContent(t)):null}},63346:(e,t,i)=>{"use strict";i.d(t,{h:()=>o});var s=i(38566),n=i(17469),r=i(27760);function o(e,t,i,o){t.tokenization.forceTokenization(i.startLineNumber);const a=t.getLanguageIdAtPosition(i.startLineNumber,i.startColumn),c=o.getLanguageConfiguration(a);if(!c)return null;const l=new r.V(t,o).getProcessedTokenContextAroundRange(i),h=l.previousLineProcessedTokens.getLineContent(),d=l.beforeRangeProcessedTokens.getLineContent(),u=l.afterRangeProcessedTokens.getLineContent(),g=c.onEnter(e,h,d,u);if(!g)return null;const p=g.indentAction;let m=g.appendText;const f=g.removeText||0;m?p===s.l.Indent&&(m="\t"+m):m=p===s.l.Indent||p===s.l.IndentOutdent?"\t":"";let _=(0,n.Cw)(t,i.startLineNumber,i.startColumn);return f&&(_=_.substring(0,_.length-f)),{indentAction:p,appendText:m,removeText:f,indentation:_}}},10154:(e,t,i)=>{"use strict";i.d(t,{L:()=>s});const s=(0,i(63591).u1)("languageService")},38566:(e,t,i)=>{"use strict";var s;i.d(t,{GB:()=>r,i3:()=>n,l:()=>s}),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(s||(s={}));class n{constructor(e){if(this._neutralCharacter=null,this._neutralCharacterSearched=!1,this.open=e.open,this.close=e.close,this._inString=!0,this._inComment=!0,this._inRegEx=!0,Array.isArray(e.notIn))for(let t=0,i=e.notIn.length;t<i;t++){switch(e.notIn[t]){case"string":this._inString=!1;break;case"comment":this._inComment=!1;break;case"regex":this._inRegEx=!1}}}isOK(e){switch(e){case 0:return!0;case 1:return this._inComment;case 2:return this._inString;case 3:return this._inRegEx}}shouldAutoClose(e,t){if(0===e.getTokenCount())return!0;const i=e.findTokenIndexAtOffset(t-2),s=e.getStandardTokenType(i);return this.isOK(s)}_findNeutralCharacterInRange(e,t){for(let i=e;i<=t;i++){const e=String.fromCharCode(i);if(!this.open.includes(e)&&!this.close.includes(e))return e}return null}findNeutralCharacter(){return this._neutralCharacterSearched||(this._neutralCharacterSearched=!0,this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(48,57)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(97,122)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(65,90))),this._neutralCharacter}}class r{constructor(e){this.autoClosingPairsOpenByStart=new Map,this.autoClosingPairsOpenByEnd=new Map,this.autoClosingPairsCloseByStart=new Map,this.autoClosingPairsCloseByEnd=new Map,this.autoClosingPairsCloseSingleChar=new Map;for(const t of e)o(this.autoClosingPairsOpenByStart,t.open.charAt(0),t),o(this.autoClosingPairsOpenByEnd,t.open.charAt(t.open.length-1),t),o(this.autoClosingPairsCloseByStart,t.close.charAt(0),t),o(this.autoClosingPairsCloseByEnd,t.close.charAt(t.close.length-1),t),1===t.close.length&&1===t.open.length&&o(this.autoClosingPairsCloseSingleChar,t.close,t)}}function o(e,t,i){e.has(t)?e.get(t).push(i):e.set(t,[i])}},17469:(e,t,i)=>{"use strict";i.d(t,{JZ:()=>N,Cw:()=>M});var s=i(41234),n=i(5662),r=i(91508),o=i(26486),a=i(38566);class c{static{this.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES=";:.,=}])> \n\t"}static{this.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS="'\"`;:.,=}])> \n\t"}constructor(e){if(e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map((e=>new a.i3(e))):e.brackets?this._autoClosingPairs=e.brackets.map((e=>new a.i3({open:e[0],close:e[1]}))):this._autoClosingPairs=[],e.__electricCharacterSupport&&e.__electricCharacterSupport.docComment){const t=e.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new a.i3({open:t.open,close:t.close||""}))}this._autoCloseBeforeForQuotes="string"===typeof e.autoCloseBefore?e.autoCloseBefore:c.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES,this._autoCloseBeforeForBrackets="string"===typeof e.autoCloseBefore?e.autoCloseBefore:c.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS,this._surroundingPairs=e.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(e){return e?this._autoCloseBeforeForQuotes:this._autoCloseBeforeForBrackets}getSurroundingPairs(){return this._surroundingPairs}}var l=i(25890),h=i(12296),d=i(56772);class u{constructor(e){this._richEditBrackets=e}getElectricCharacters(){const e=[];if(this._richEditBrackets)for(const t of this._richEditBrackets.brackets)for(const i of t.close){const t=i.charAt(i.length-1);e.push(t)}return(0,l.dM)(e)}onElectricCharacter(e,t,i){if(!this._richEditBrackets||0===this._richEditBrackets.brackets.length)return null;const s=t.findTokenIndexAtOffset(i-1);if((0,h.Yo)(t.getStandardTokenType(s)))return null;const n=this._richEditBrackets.reversedRegex,r=t.getLineContent().substring(0,i-1)+e,o=d.Fu.findPrevBracketInRange(n,1,r,0,r.length);if(!o)return null;const a=r.substring(o.startColumn-1,o.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[a])return null;const c=t.getActualLineContentBefore(o.startColumn-1);return/^\s*$/.test(c)?{matchOpenBracket:a}:null}}function g(e){return e.global&&(e.lastIndex=0),!0}class p{constructor(e){this._indentationRules=e}shouldIncrease(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&g(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(e))}shouldDecrease(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&g(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(e))}shouldIndentNextLine(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&g(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(e))}shouldIgnore(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&g(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(e))}getIndentMetadata(e){let t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t}}var m=i(64383);class f{constructor(e){(e=e||{}).brackets=e.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],e.brackets.forEach((e=>{const t=f._createOpenBracketRegExp(e[0]),i=f._createCloseBracketRegExp(e[1]);t&&i&&this._brackets.push({open:e[0],openRegExp:t,close:e[1],closeRegExp:i})})),this._regExpRules=e.onEnterRules||[]}onEnter(e,t,i,s){if(e>=3)for(let n=0,r=this._regExpRules.length;n<r;n++){const e=this._regExpRules[n];if([{reg:e.beforeText,text:i},{reg:e.afterText,text:s},{reg:e.previousLineText,text:t}].every((e=>!e.reg||(e.reg.lastIndex=0,e.reg.test(e.text)))))return e.action}if(e>=2&&i.length>0&&s.length>0)for(let n=0,r=this._brackets.length;n<r;n++){const e=this._brackets[n];if(e.openRegExp.test(i)&&e.closeRegExp.test(s))return{indentAction:a.l.IndentOutdent}}if(e>=2&&i.length>0)for(let n=0,r=this._brackets.length;n<r;n++){if(this._brackets[n].openRegExp.test(i))return{indentAction:a.l.Indent}}return null}static _createOpenBracketRegExp(e){let t=r.bm(e);return/\B/.test(t.charAt(0))||(t="\\b"+t),t+="\\s*$",f._safeRegExp(t)}static _createCloseBracketRegExp(e){let t=r.bm(e);return/\B/.test(t.charAt(t.length-1))||(t+="\\b"),t="^\\s*"+t,f._safeRegExp(t)}static _safeRegExp(e){try{return new RegExp(e)}catch(t){return(0,m.dz)(t),null}}}var _=i(63591),v=i(84001),C=i(10154),E=i(14718),b=i(83941),S=i(81788);class y{constructor(e,t){this.languageId=e;const i=t.brackets?w(t.brackets):[],s=new S.VV((e=>{const t=new Set;return{info:new L(this,e,t),closing:t}})),n=new S.VV((e=>{const t=new Set,i=new Set;return{info:new T(this,e,t,i),opening:t,openingColorized:i}}));for(const[o,a]of i){const e=s.get(o),t=n.get(a);e.closing.add(t.info),t.opening.add(e.info)}const r=t.colorizedBracketPairs?w(t.colorizedBracketPairs):i.filter((e=>!("<"===e[0]&&">"===e[1])));for(const[o,a]of r){const e=s.get(o),t=n.get(a);e.closing.add(t.info),t.openingColorized.add(e.info),t.opening.add(e.info)}this._openingBrackets=new Map([...s.cachedValues].map((([e,t])=>[e,t.info]))),this._closingBrackets=new Map([...n.cachedValues].map((([e,t])=>[e,t.info])))}get openingBrackets(){return[...this._openingBrackets.values()]}get closingBrackets(){return[...this._closingBrackets.values()]}getOpeningBracketInfo(e){return this._openingBrackets.get(e)}getClosingBracketInfo(e){return this._closingBrackets.get(e)}getBracketInfo(e){return this.getOpeningBracketInfo(e)||this.getClosingBracketInfo(e)}getBracketRegExp(e){const t=Array.from([...this._openingBrackets.keys(),...this._closingBrackets.keys()]);return(0,d.xb)(t,e)}}function w(e){return e.filter((([e,t])=>""!==e&&""!==t))}class R{constructor(e,t){this.config=e,this.bracketText=t}get languageId(){return this.config.languageId}}class L extends R{constructor(e,t,i){super(e,t),this.openedBrackets=i,this.isOpeningBracket=!0}}class T extends R{constructor(e,t,i,s){super(e,t),this.openingBrackets=i,this.openingColorizedBrackets=s,this.isOpeningBracket=!1}closes(e){return e.config===this.config&&this.openingBrackets.has(e)}closesColorized(e){return e.config===this.config&&this.openingColorizedBrackets.has(e)}getOpeningBrackets(){return[...this.openingBrackets]}}var x=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},k=function(e,t){return function(i,s){t(i,s,e)}};class A{constructor(e){this.languageId=e}affects(e){return!this.languageId||this.languageId===e}}const N=(0,_.u1)("languageConfigurationService");let I=class extends n.jG{constructor(e,t){super(),this.configurationService=e,this.languageService=t,this._registry=this._register(new B),this.onDidChangeEmitter=this._register(new s.vl),this.onDidChange=this.onDidChangeEmitter.event,this.configurations=new Map;const i=new Set(Object.values(O));this._register(this.configurationService.onDidChangeConfiguration((e=>{const t=e.change.keys.some((e=>i.has(e))),s=e.change.overrides.filter((([e,t])=>t.some((e=>i.has(e))))).map((([e])=>e));if(t)this.configurations.clear(),this.onDidChangeEmitter.fire(new A(void 0));else for(const i of s)this.languageService.isRegisteredLanguageId(i)&&(this.configurations.delete(i),this.onDidChangeEmitter.fire(new A(i)))}))),this._register(this._registry.onDidChange((e=>{this.configurations.delete(e.languageId),this.onDidChangeEmitter.fire(new A(e.languageId))})))}register(e,t,i){return this._registry.register(e,t,i)}getLanguageConfiguration(e){let t=this.configurations.get(e);return t||(t=function(e,t,i,s){let n=t.getLanguageConfiguration(e);if(!n){if(!s.isRegisteredLanguageId(e))return new W(e,{});n=new W(e,{})}const r=function(e,t){const i=t.getValue(O.brackets,{overrideIdentifier:e}),s=t.getValue(O.colorizedBracketPairs,{overrideIdentifier:e});return{brackets:D(i),colorizedBracketPairs:D(s)}}(n.languageId,i),o=F([n.underlyingConfig,r]);return new W(n.languageId,o)}(e,this._registry,this.configurationService,this.languageService),this.configurations.set(e,t)),t}};I=x([k(0,v.pG),k(1,C.L)],I);const O={brackets:"editor.language.brackets",colorizedBracketPairs:"editor.language.colorizedBracketPairs"};function D(e){if(Array.isArray(e))return e.map((e=>{if(Array.isArray(e)&&2===e.length)return[e[0],e[1]]})).filter((e=>!!e))}function M(e,t,i){const s=e.getLineContent(t);let n=r.UU(s);return n.length>i-1&&(n=n.substring(0,i-1)),n}class P{constructor(e){this.languageId=e,this._resolved=null,this._entries=[],this._order=0,this._resolved=null}register(e,t){const i=new U(e,t,++this._order);return this._entries.push(i),this._resolved=null,(0,n.s)((()=>{for(let e=0;e<this._entries.length;e++)if(this._entries[e]===i){this._entries.splice(e,1),this._resolved=null;break}}))}getResolvedConfiguration(){if(!this._resolved){const e=this._resolve();e&&(this._resolved=new W(this.languageId,e))}return this._resolved}_resolve(){return 0===this._entries.length?null:(this._entries.sort(U.cmp),F(this._entries.map((e=>e.configuration))))}}function F(e){let t={comments:void 0,brackets:void 0,wordPattern:void 0,indentationRules:void 0,onEnterRules:void 0,autoClosingPairs:void 0,surroundingPairs:void 0,autoCloseBefore:void 0,folding:void 0,colorizedBracketPairs:void 0,__electricCharacterSupport:void 0};for(const i of e)t={comments:i.comments||t.comments,brackets:i.brackets||t.brackets,wordPattern:i.wordPattern||t.wordPattern,indentationRules:i.indentationRules||t.indentationRules,onEnterRules:i.onEnterRules||t.onEnterRules,autoClosingPairs:i.autoClosingPairs||t.autoClosingPairs,surroundingPairs:i.surroundingPairs||t.surroundingPairs,autoCloseBefore:i.autoCloseBefore||t.autoCloseBefore,folding:i.folding||t.folding,colorizedBracketPairs:i.colorizedBracketPairs||t.colorizedBracketPairs,__electricCharacterSupport:i.__electricCharacterSupport||t.__electricCharacterSupport};return t}class U{constructor(e,t,i){this.configuration=e,this.priority=t,this.order=i}static cmp(e,t){return e.priority===t.priority?e.order-t.order:e.priority-t.priority}}class H{constructor(e){this.languageId=e}}class B extends n.jG{constructor(){super(),this._entries=new Map,this._onDidChange=this._register(new s.vl),this.onDidChange=this._onDidChange.event,this._register(this.register(b.vH,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],colorizedBracketPairs:[],folding:{offSide:!0}},0))}register(e,t,i=0){let s=this._entries.get(e);s||(s=new P(e),this._entries.set(e,s));const r=s.register(t,i);return this._onDidChange.fire(new H(e)),(0,n.s)((()=>{r.dispose(),this._onDidChange.fire(new H(e))}))}getLanguageConfiguration(e){const t=this._entries.get(e);return t?.getResolvedConfiguration()||null}}class W{constructor(e,t){this.languageId=e,this.underlyingConfig=t,this._brackets=null,this._electricCharacter=null,this._onEnterSupport=this.underlyingConfig.brackets||this.underlyingConfig.indentationRules||this.underlyingConfig.onEnterRules?new f(this.underlyingConfig):null,this.comments=W._handleComments(this.underlyingConfig),this.characterPair=new c(this.underlyingConfig),this.wordDefinition=this.underlyingConfig.wordPattern||o.Ld,this.indentationRules=this.underlyingConfig.indentationRules,this.underlyingConfig.indentationRules?this.indentRulesSupport=new p(this.underlyingConfig.indentationRules):this.indentRulesSupport=null,this.foldingRules=this.underlyingConfig.folding||{},this.bracketsNew=new y(e,this.underlyingConfig)}getWordDefinition(){return(0,o.Io)(this.wordDefinition)}get brackets(){return!this._brackets&&this.underlyingConfig.brackets&&(this._brackets=new d.az(this.languageId,this.underlyingConfig.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new u(this.brackets)),this._electricCharacter}onEnter(e,t,i,s){return this._onEnterSupport?this._onEnterSupport.onEnter(e,t,i,s):null}getAutoClosingPairs(){return new a.GB(this.characterPair.getAutoClosingPairs())}getAutoCloseBeforeSet(e){return this.characterPair.getAutoCloseBeforeSet(e)}getSurroundingPairs(){return this.characterPair.getSurroundingPairs()}static _handleComments(e){const t=e.comments;if(!t)return null;const i={};if(t.lineComment&&(i.lineCommentToken=t.lineComment),t.blockComment){const[e,s]=t.blockComment;i.blockCommentStartToken=e,i.blockCommentEndToken=s}return i}}(0,E.v)(N,I,1)},83941:(e,t,i)=>{"use strict";i.d(t,{W6:()=>c,vH:()=>l});var s=i(78209),n=i(41234),r=i(46359),o=i(44320),a=i(1646);const c=new class{constructor(){this._onDidChangeLanguages=new n.vl,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[]}registerLanguage(e){return this._languages.push(e),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let t=0,i=this._languages.length;t<i;t++)if(this._languages[t]===e)return void this._languages.splice(t,1)}}}getLanguages(){return this._languages}};r.O.add("editor.modesRegistry",c);const l="plaintext";c.registerLanguage({id:l,extensions:[".txt"],aliases:[s.kg("plainText.alias","Plain Text"),"text"],mimetypes:[o.K.text]}),r.O.as(a.Fd.Configuration).registerDefaultConfigurations([{overrides:{"[plaintext]":{"editor.unicodeHighlight.ambiguousCharacters":!1,"editor.unicodeHighlight.invisibleCharacters":!1}}}])},20788:(e,t,i)=>{"use strict";i.d(t,{$H:()=>r,Lh:()=>o,r3:()=>n});var s=i(62083);const n=new class{clone(){return this}equals(e){return this===e}};function r(e,t){return new s.$M([new s.ou(0,"",e)],t)}function o(e,t){const i=new Uint32Array(2);return i[0]=0,i[1]=(32768|e|2<<24)>>>0,new s.rY(i,null===t?n:t)}},12296:(e,t,i)=>{"use strict";function s(e,t){const i=e.getCount(),s=e.findTokenIndexAtOffset(t),r=e.getLanguageId(s);let o=s;for(;o+1<i&&e.getLanguageId(o+1)===r;)o++;let a=s;for(;a>0&&e.getLanguageId(a-1)===r;)a--;return new n(e,r,a,o+1,e.getStartOffset(a),e.getEndOffset(o))}i.d(t,{BQ:()=>s,Yo:()=>r});class n{constructor(e,t,i,s,n,r){this._scopedLineTokensBrand=void 0,this._actual=e,this.languageId=t,this._firstTokenIndex=i,this._lastTokenIndex=s,this.firstCharOffset=n,this._lastCharOffset=r,this.languageIdCodec=e.languageIdCodec}getLineContent(){return this._actual.getLineContent().substring(this.firstCharOffset,this._lastCharOffset)}getLineLength(){return this._lastCharOffset-this.firstCharOffset}getActualLineContentBefore(e){return this._actual.getLineContent().substring(0,this.firstCharOffset+e)}getTokenCount(){return this._lastTokenIndex-this._firstTokenIndex}findTokenIndexAtOffset(e){return this._actual.findTokenIndexAtOffset(e+this.firstCharOffset)-this._firstTokenIndex}getStandardTokenType(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex)}toIViewLineTokens(){return this._actual.sliceAndInflate(this.firstCharOffset,this._lastCharOffset,0)}}function r(e){return 0!==(3&e)}},27760:(e,t,i)=>{"use strict";i.d(t,{V:()=>a,WR:()=>l,no:()=>o});var s=i(91508),n=i(12296),r=i(87469);class o{constructor(e,t,i){this._indentRulesSupport=t,this._indentationLineProcessor=new c(e,i)}shouldIncrease(e,t){const i=this._indentationLineProcessor.getProcessedLine(e,t);return this._indentRulesSupport.shouldIncrease(i)}shouldDecrease(e,t){const i=this._indentationLineProcessor.getProcessedLine(e,t);return this._indentRulesSupport.shouldDecrease(i)}shouldIgnore(e,t){const i=this._indentationLineProcessor.getProcessedLine(e,t);return this._indentRulesSupport.shouldIgnore(i)}shouldIndentNextLine(e,t){const i=this._indentationLineProcessor.getProcessedLine(e,t);return this._indentRulesSupport.shouldIndentNextLine(i)}}class a{constructor(e,t){this.model=e,this.indentationLineProcessor=new c(e,t)}getProcessedTokenContextAroundRange(e){return{beforeRangeProcessedTokens:this._getProcessedTokensBeforeRange(e),afterRangeProcessedTokens:this._getProcessedTokensAfterRange(e),previousLineProcessedTokens:this._getProcessedPreviousLineTokens(e)}}_getProcessedTokensBeforeRange(e){this.model.tokenization.forceTokenization(e.startLineNumber);const t=this.model.tokenization.getLineTokens(e.startLineNumber),i=(0,n.BQ)(t,e.startColumn-1);let s;if(l(this.model,e.getStartPosition())){const n=e.startColumn-1-i.firstCharOffset,r=i.firstCharOffset,o=r+n;s=t.sliceAndInflate(r,o,0)}else{const i=e.startColumn-1;s=t.sliceAndInflate(0,i,0)}return this.indentationLineProcessor.getProcessedTokens(s)}_getProcessedTokensAfterRange(e){const t=e.isEmpty()?e.getStartPosition():e.getEndPosition();this.model.tokenization.forceTokenization(t.lineNumber);const i=this.model.tokenization.getLineTokens(t.lineNumber),s=(0,n.BQ)(i,t.column-1),r=t.column-1-s.firstCharOffset,o=s.firstCharOffset+r,a=s.firstCharOffset+s.getLineLength(),c=i.sliceAndInflate(o,a,0);return this.indentationLineProcessor.getProcessedTokens(c)}_getProcessedPreviousLineTokens(e){this.model.tokenization.forceTokenization(e.startLineNumber);const t=this.model.tokenization.getLineTokens(e.startLineNumber),i=(0,n.BQ)(t,e.startColumn-1),s=r.f.createEmpty("",i.languageIdCodec),o=e.startLineNumber-1;if(0===o)return s;if(!(0===i.firstCharOffset))return s;const a=(e=>{this.model.tokenization.forceTokenization(e);const t=this.model.tokenization.getLineTokens(e),i=this.model.getLineMaxColumn(e)-1;return(0,n.BQ)(t,i)})(o);if(!(i.languageId===a.languageId))return s;const c=a.toIViewLineTokens();return this.indentationLineProcessor.getProcessedTokens(c)}}class c{constructor(e,t){this.model=e,this.languageConfigurationService=t}getProcessedLine(e,t){this.model.tokenization.forceTokenization?.(e);const i=this.model.tokenization.getLineTokens(e);let n=this.getProcessedTokens(i).getLineContent();return void 0!==t&&(n=((e,t)=>{const i=s.UU(e);return t+e.substring(i.length)})(n,t)),n}getProcessedTokens(e){const t=e.getLanguageId(0),i=this.languageConfigurationService.getLanguageConfiguration(t).bracketsNew.getBracketRegExp({global:!0}),s=[];e.forEach((t=>{const n=e.getStandardTokenType(t);let r=e.getTokenText(t);(e=>2===e||3===e||1===e)(n)&&(r=r.replace(i,""));const o=e.getMetadata(t);s.push({text:r,metadata:o})}));return r.f.createFromTextAndMetadata(s,e.languageIdCodec)}}function l(e,t){e.tokenization.forceTokenization(t.lineNumber);const i=e.tokenization.getLineTokens(t.lineNumber),s=(0,n.BQ)(i,t.column-1),r=0===s.firstCharOffset,o=i.getLanguageId(0)===s.languageId;return!r&&!o}},56772:(e,t,i)=>{"use strict";i.d(t,{Fu:()=>p,az:()=>a,xb:()=>u});var s=i(91508),n=i(99020),r=i(36677);class o{constructor(e,t,i,s,n,r){this._richEditBracketBrand=void 0,this.languageId=e,this.index=t,this.open=i,this.close=s,this.forwardRegex=n,this.reversedRegex=r,this._openSet=o._toSet(this.open),this._closeSet=o._toSet(this.close)}isOpen(e){return this._openSet.has(e)}isClose(e){return this._closeSet.has(e)}static _toSet(e){const t=new Set;for(const i of e)t.add(i);return t}}class a{constructor(e,t){this._richEditBracketsBrand=void 0;const i=function(e){const t=e.length;e=e.map((e=>[e[0].toLowerCase(),e[1].toLowerCase()]));const i=[];for(let o=0;o<t;o++)i[o]=o;const s=(e,t)=>{const[i,s]=e,[n,r]=t;return i===n||i===r||s===n||s===r},n=(e,s)=>{const n=Math.min(e,s),r=Math.max(e,s);for(let o=0;o<t;o++)i[o]===r&&(i[o]=n)};for(let o=0;o<t;o++){const r=e[o];for(let a=o+1;a<t;a++)s(r,e[a])&&n(i[o],i[a])}const r=[];for(let o=0;o<t;o++){const s=[],n=[];for(let r=0;r<t;r++)if(i[r]===o){const[t,i]=e[r];s.push(t),n.push(i)}s.length>0&&r.push({open:s,close:n})}return r}(t);this.brackets=i.map(((t,s)=>new o(e,s,t.open,t.close,function(e,t,i,s){let n=[];n=n.concat(e),n=n.concat(t);for(let r=0,o=n.length;r<o;r++)c(n[r],i,s,n);return n=h(n),n.sort(l),n.reverse(),u(n)}(t.open,t.close,i,s),function(e,t,i,s){let n=[];n=n.concat(e),n=n.concat(t);for(let r=0,o=n.length;r<o;r++)c(n[r],i,s,n);return n=h(n),n.sort(l),n.reverse(),u(n.map(g))}(t.open,t.close,i,s)))),this.forwardRegex=function(e){let t=[];for(const i of e){for(const e of i.open)t.push(e);for(const e of i.close)t.push(e)}return t=h(t),u(t)}(this.brackets),this.reversedRegex=function(e){let t=[];for(const i of e){for(const e of i.open)t.push(e);for(const e of i.close)t.push(e)}return t=h(t),u(t.map(g))}(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(const s of this.brackets){for(const e of s.open)this.textIsBracket[e]=s,this.textIsOpenBracket[e]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,e.length);for(const e of s.close)this.textIsBracket[e]=s,this.textIsOpenBracket[e]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,e.length)}}}function c(e,t,i,s){for(let n=0,r=t.length;n<r;n++){if(n===i)continue;const r=t[n];for(const t of r.open)t.indexOf(e)>=0&&s.push(t);for(const t of r.close)t.indexOf(e)>=0&&s.push(t)}}function l(e,t){return e.length-t.length}function h(e){if(e.length<=1)return e;const t=[],i=new Set;for(const s of e)i.has(s)||(t.push(s),i.add(s));return t}function d(e){const t=/^[\w ]+$/.test(e);return e=s.bm(e),t?`\\b${e}\\b`:e}function u(e,t){const i=`(${e.map(d).join(")|(")})`;return s.OS(i,!0,t)}const g=function(){let e=null,t=null;return function(i){return e!==i&&(e=i,t=function(e){const t=new Uint16Array(e.length);let i=0;for(let s=e.length-1;s>=0;s--)t[i++]=e.charCodeAt(s);return n.b7().decode(t)}(e)),t}}();class p{static _findPrevBracketInText(e,t,i,s){const n=i.match(e);if(!n)return null;const o=i.length-(n.index||0),a=n[0].length,c=s+o;return new r.Q(t,c-a+1,t,c+1)}static findPrevBracketInRange(e,t,i,s,n){const r=g(i).substring(i.length-n,i.length-s);return this._findPrevBracketInText(e,t,r,s)}static findNextBracketInText(e,t,i,s){const n=i.match(e);if(!n)return null;const o=n.index||0,a=n[0].length;if(0===a)return null;const c=s+o;return new r.Q(t,c+1,t,c+1+a)}static findNextBracketInRange(e,t,i,s,n){const r=i.substring(s,n);return this.findNextBracketInText(e,t,r,s)}}},58314:(e,t,i)=>{"use strict";i.d(t,{Yj:()=>c,s0:()=>l});var s=i(91508),n=i(87469),r=i(62083),o=i(20788);const a={getInitialState:()=>o.r3,tokenizeEncoded:(e,t,i)=>(0,o.Lh)(0,i)};async function c(e,t,i){if(!i)return h(t,e.languageIdCodec,a);const s=await r.dG.getOrCreate(i);return h(t,e.languageIdCodec,s||a)}function l(e,t,i,s,n,r,o){let a="<div>",c=s,l=0,h=!0;for(let d=0,u=t.getCount();d<u;d++){const u=t.getEndOffset(d);if(u<=s)continue;let g="";for(;c<u&&c<n;c++){const t=e.charCodeAt(c);switch(t){case 9:{let e=r-(c+l)%r;for(l+=e-1;e>0;)o&&h?(g+=" ",h=!1):(g+=" ",h=!0),e--;break}case 60:g+="<",h=!1;break;case 62:g+=">",h=!1;break;case 38:g+="&",h=!1;break;case 0:g+="�",h=!1;break;case 65279:case 8232:case 8233:case 133:g+="\ufffd",h=!1;break;case 13:g+="​",h=!1;break;case 32:o&&h?(g+=" ",h=!1):(g+=" ",h=!0);break;default:g+=String.fromCharCode(t),h=!1}}if(a+=`<span style="${t.getInlineStyle(d,i)}">${g}</span>`,u>n||c>=n)break}return a+="</div>",a}function h(e,t,i){let r='<div class="monaco-tokenized-source">';const o=s.uz(e);let a=i.getInitialState();for(let c=0,l=o.length;c<l;c++){const e=o[c];c>0&&(r+="<br/>");const l=i.tokenizeEncoded(e,!0,a);n.f.convertToEndOffset(l.tokens,e.length);const h=new n.f(l.tokens,e,t).inflate();let d=0;for(let t=0,i=h.getCount();t<i;t++){const i=h.getClassName(t),n=h.getEndOffset(t);r+=`<span class="${i}">${s.ih(e.substring(d,n))}</span>`,d=n}a=l.endState}return r+="</div>",r}},16223:(e,t,i)=>{"use strict";i.d(t,{A5:()=>s,Dg:()=>c,F4:()=>u,L5:()=>d,VW:()=>r,Wo:()=>h,X2:()=>a,ZS:()=>n,nk:()=>l,vd:()=>g});var s,n,r,o=i(10146);!function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(s||(s={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(n||(n={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(r||(r={}));class a{get originalIndentSize(){return this._indentSizeIsTabSize?"tabSize":this.indentSize}constructor(e){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,0|e.tabSize),"tabSize"===e.indentSize?(this.indentSize=this.tabSize,this._indentSizeIsTabSize=!0):(this.indentSize=Math.max(1,0|e.indentSize),this._indentSizeIsTabSize=!1),this.insertSpaces=Boolean(e.insertSpaces),this.defaultEOL=0|e.defaultEOL,this.trimAutoWhitespace=Boolean(e.trimAutoWhitespace),this.bracketPairColorizationOptions=e.bracketPairColorizationOptions}equals(e){return this.tabSize===e.tabSize&&this._indentSizeIsTabSize===e._indentSizeIsTabSize&&this.indentSize===e.indentSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace&&(0,o.aI)(this.bracketPairColorizationOptions,e.bracketPairColorizationOptions)}createChangeEvent(e){return{tabSize:this.tabSize!==e.tabSize,indentSize:this.indentSize!==e.indentSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}}}class c{constructor(e,t){this._findMatchBrand=void 0,this.range=e,this.matches=t}}function l(e){return e&&"function"===typeof e.read}class h{constructor(e,t,i,s,n,r){this.identifier=e,this.range=t,this.text=i,this.forceMoveMarkers=s,this.isAutoWhitespaceEdit=n,this._isTracked=r}}class d{constructor(e,t,i){this.regex=e,this.wordSeparators=t,this.simpleSearch=i}}class u{constructor(e,t,i){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=i}}function g(e){return!e.isTooLargeForSyncing()&&!e.isForSimpleWidget}},40579:(e,t,i)=>{"use strict";i.d(t,{Gc:()=>v,Nn:()=>c,Xw:()=>l,rh:()=>_,yF:()=>f});var s=i(64383),n=i(1245),r=i(19131),o=i(32956);class a{get length(){return this._length}constructor(e){this._length=e}}class c extends a{static create(e,t,i){let s=e.length;return t&&(s=(0,r.QB)(s,t.length)),i&&(s=(0,r.QB)(s,i.length)),new c(s,e,t,i,t?t.missingOpeningBracketIds:o.gV.getEmpty())}get kind(){return 2}get listHeight(){return 0}get childrenLength(){return 3}getChild(e){switch(e){case 0:return this.openingBracket;case 1:return this.child;case 2:return this.closingBracket}throw new Error("Invalid child index")}get children(){const e=[];return e.push(this.openingBracket),this.child&&e.push(this.child),this.closingBracket&&e.push(this.closingBracket),e}constructor(e,t,i,s,n){super(e),this.openingBracket=t,this.child=i,this.closingBracket=s,this.missingOpeningBracketIds=n}canBeReused(e){return null!==this.closingBracket&&!e.intersects(this.missingOpeningBracketIds)}deepClone(){return new c(this.length,this.openingBracket.deepClone(),this.child&&this.child.deepClone(),this.closingBracket&&this.closingBracket.deepClone(),this.missingOpeningBracketIds)}computeMinIndentation(e,t){return this.child?this.child.computeMinIndentation((0,r.QB)(e,this.openingBracket.length),t):Number.MAX_SAFE_INTEGER}}class l extends a{static create23(e,t,i,s=!1){let n=e.length,o=e.missingOpeningBracketIds;if(e.listHeight!==t.listHeight)throw new Error("Invalid list heights");if(n=(0,r.QB)(n,t.length),o=o.merge(t.missingOpeningBracketIds),i){if(e.listHeight!==i.listHeight)throw new Error("Invalid list heights");n=(0,r.QB)(n,i.length),o=o.merge(i.missingOpeningBracketIds)}return s?new d(n,e.listHeight+1,e,t,i,o):new h(n,e.listHeight+1,e,t,i,o)}static getEmpty(){return new g(r.Vp,0,[],o.gV.getEmpty())}get kind(){return 4}get missingOpeningBracketIds(){return this._missingOpeningBracketIds}constructor(e,t,i){super(e),this.listHeight=t,this._missingOpeningBracketIds=i,this.cachedMinIndentation=-1}throwIfImmutable(){}makeLastElementMutable(){this.throwIfImmutable();const e=this.childrenLength;if(0===e)return;const t=this.getChild(e-1),i=4===t.kind?t.toMutable():t;return t!==i&&this.setChild(e-1,i),i}makeFirstElementMutable(){this.throwIfImmutable();if(0===this.childrenLength)return;const e=this.getChild(0),t=4===e.kind?e.toMutable():e;return e!==t&&this.setChild(0,t),t}canBeReused(e){if(e.intersects(this.missingOpeningBracketIds))return!1;if(0===this.childrenLength)return!1;let t=this;for(;4===t.kind;){const e=t.childrenLength;if(0===e)throw new s.D7;t=t.getChild(e-1)}return t.canBeReused(e)}handleChildrenChanged(){this.throwIfImmutable();const e=this.childrenLength;let t=this.getChild(0).length,i=this.getChild(0).missingOpeningBracketIds;for(let s=1;s<e;s++){const e=this.getChild(s);t=(0,r.QB)(t,e.length),i=i.merge(e.missingOpeningBracketIds)}this._length=t,this._missingOpeningBracketIds=i,this.cachedMinIndentation=-1}computeMinIndentation(e,t){if(-1!==this.cachedMinIndentation)return this.cachedMinIndentation;let i=Number.MAX_SAFE_INTEGER,s=e;for(let n=0;n<this.childrenLength;n++){const e=this.getChild(n);e&&(i=Math.min(i,e.computeMinIndentation(s,t)),s=(0,r.QB)(s,e.length))}return this.cachedMinIndentation=i,i}}class h extends l{get childrenLength(){return null!==this._item3?3:2}getChild(e){switch(e){case 0:return this._item1;case 1:return this._item2;case 2:return this._item3}throw new Error("Invalid child index")}setChild(e,t){switch(e){case 0:return void(this._item1=t);case 1:return void(this._item2=t);case 2:return void(this._item3=t)}throw new Error("Invalid child index")}get children(){return this._item3?[this._item1,this._item2,this._item3]:[this._item1,this._item2]}get item1(){return this._item1}get item2(){return this._item2}get item3(){return this._item3}constructor(e,t,i,s,n,r){super(e,t,r),this._item1=i,this._item2=s,this._item3=n}deepClone(){return new h(this.length,this.listHeight,this._item1.deepClone(),this._item2.deepClone(),this._item3?this._item3.deepClone():null,this.missingOpeningBracketIds)}appendChildOfSameHeight(e){if(this._item3)throw new Error("Cannot append to a full (2,3) tree node");this.throwIfImmutable(),this._item3=e,this.handleChildrenChanged()}unappendChild(){if(!this._item3)throw new Error("Cannot remove from a non-full (2,3) tree node");this.throwIfImmutable();const e=this._item3;return this._item3=null,this.handleChildrenChanged(),e}prependChildOfSameHeight(e){if(this._item3)throw new Error("Cannot prepend to a full (2,3) tree node");this.throwIfImmutable(),this._item3=this._item2,this._item2=this._item1,this._item1=e,this.handleChildrenChanged()}unprependChild(){if(!this._item3)throw new Error("Cannot remove from a non-full (2,3) tree node");this.throwIfImmutable();const e=this._item1;return this._item1=this._item2,this._item2=this._item3,this._item3=null,this.handleChildrenChanged(),e}toMutable(){return this}}class d extends h{toMutable(){return new h(this.length,this.listHeight,this.item1,this.item2,this.item3,this.missingOpeningBracketIds)}throwIfImmutable(){throw new Error("this instance is immutable")}}class u extends l{get childrenLength(){return this._children.length}getChild(e){return this._children[e]}setChild(e,t){this._children[e]=t}get children(){return this._children}constructor(e,t,i,s){super(e,t,s),this._children=i}deepClone(){const e=new Array(this._children.length);for(let t=0;t<this._children.length;t++)e[t]=this._children[t].deepClone();return new u(this.length,this.listHeight,e,this.missingOpeningBracketIds)}appendChildOfSameHeight(e){this.throwIfImmutable(),this._children.push(e),this.handleChildrenChanged()}unappendChild(){this.throwIfImmutable();const e=this._children.pop();return this.handleChildrenChanged(),e}prependChildOfSameHeight(e){this.throwIfImmutable(),this._children.unshift(e),this.handleChildrenChanged()}unprependChild(){this.throwIfImmutable();const e=this._children.shift();return this.handleChildrenChanged(),e}toMutable(){return this}}class g extends u{toMutable(){return new u(this.length,this.listHeight,[...this.children],this.missingOpeningBracketIds)}throwIfImmutable(){throw new Error("this instance is immutable")}}const p=[];class m extends a{get listHeight(){return 0}get childrenLength(){return 0}getChild(e){return null}get children(){return p}deepClone(){return this}}class f extends m{get kind(){return 0}get missingOpeningBracketIds(){return o.gV.getEmpty()}canBeReused(e){return!0}computeMinIndentation(e,t){const i=(0,r.l4)(e),s=(0===i.columnCount?i.lineCount:i.lineCount+1)+1,o=(0,r.eu)((0,r.QB)(e,this.length))+1;let a=Number.MAX_SAFE_INTEGER;for(let r=s;r<=o;r++){const e=t.getLineFirstNonWhitespaceColumn(r),i=t.getLineContent(r);if(0===e)continue;const s=n.A.visibleColumnFromColumn(i,e,t.getOptions().tabSize);a=Math.min(a,s)}return a}}class _ extends m{static create(e,t,i){return new _(e,t,i)}get kind(){return 1}get missingOpeningBracketIds(){return o.gV.getEmpty()}constructor(e,t,i){super(e),this.bracketInfo=t,this.bracketIds=i}get text(){return this.bracketInfo.bracketText}get languageId(){return this.bracketInfo.languageId}canBeReused(e){return!1}computeMinIndentation(e,t){return Number.MAX_SAFE_INTEGER}}class v extends m{get kind(){return 3}constructor(e,t){super(t),this.missingOpeningBracketIds=e}canBeReused(e){return!e.intersects(this.missingOpeningBracketIds)}computeMinIndentation(e,t){return Number.MAX_SAFE_INTEGER}}},94650:(e,t,i)=>{"use strict";i.d(t,{W:()=>o,c:()=>r});var s=i(36677),n=i(19131);class r{static fromModelContentChanges(e){return e.map((e=>{const t=s.Q.lift(e.range);return new r((0,n.VL)(t.getStartPosition()),(0,n.VL)(t.getEndPosition()),(0,n.rR)(e.text))})).reverse()}constructor(e,t,i){this.startOffset=e,this.endOffset=t,this.newLength=i}toString(){return`[${(0,n.l4)(this.startOffset)}...${(0,n.l4)(this.endOffset)}) -> ${(0,n.l4)(this.newLength)}`}}class o{constructor(e){this.nextEditIdx=0,this.deltaOldToNewLineCount=0,this.deltaOldToNewColumnCount=0,this.deltaLineIdxInOld=-1,this.edits=e.map((e=>a.from(e)))}getOffsetBeforeChange(e){return this.adjustNextEdit(e),this.translateCurToOld(e)}getDistanceToNextChange(e){this.adjustNextEdit(e);const t=this.edits[this.nextEditIdx],i=t?this.translateOldToCur(t.offsetObj):null;return null===i?null:(0,n.MS)(e,i)}translateOldToCur(e){return e.lineCount===this.deltaLineIdxInOld?(0,n.qe)(e.lineCount+this.deltaOldToNewLineCount,e.columnCount+this.deltaOldToNewColumnCount):(0,n.qe)(e.lineCount+this.deltaOldToNewLineCount,e.columnCount)}translateCurToOld(e){const t=(0,n.l4)(e);return t.lineCount-this.deltaOldToNewLineCount===this.deltaLineIdxInOld?(0,n.qe)(t.lineCount-this.deltaOldToNewLineCount,t.columnCount-this.deltaOldToNewColumnCount):(0,n.qe)(t.lineCount-this.deltaOldToNewLineCount,t.columnCount)}adjustNextEdit(e){for(;this.nextEditIdx<this.edits.length;){const t=this.edits[this.nextEditIdx],i=this.translateOldToCur(t.endOffsetAfterObj);if(!(0,n.vr)(i,e))break;{this.nextEditIdx++;const e=(0,n.l4)(i),s=(0,n.l4)(this.translateOldToCur(t.endOffsetBeforeObj)),r=e.lineCount-s.lineCount;this.deltaOldToNewLineCount+=r;const o=this.deltaLineIdxInOld===t.endOffsetBeforeObj.lineCount?this.deltaOldToNewColumnCount:0,a=e.columnCount-s.columnCount;this.deltaOldToNewColumnCount=o+a,this.deltaLineIdxInOld=t.endOffsetBeforeObj.lineCount}}}}class a{static from(e){return new a(e.startOffset,e.endOffset,e.newLength)}constructor(e,t,i){this.endOffsetBeforeObj=(0,n.l4)(t),this.endOffsetAfterObj=(0,n.l4)((0,n.QB)(e,i)),this.offsetObj=(0,n.l4)(e)}}},93630:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var s=i(91508),n=i(40579),r=i(19131),o=i(32956),a=i(51934);class c{static createFromLanguage(e,t){function i(e){return t.getKey(`${e.languageId}:::${e.bracketText}`)}const s=new Map;for(const c of e.bracketsNew.openingBrackets){const e=(0,r.qe)(0,c.bracketText.length),t=i(c),l=o.gV.getEmpty().add(t,o.FD);s.set(c.bracketText,new a.ou(e,1,t,l,n.rh.create(e,c,l)))}for(const c of e.bracketsNew.closingBrackets){const e=(0,r.qe)(0,c.bracketText.length);let t=o.gV.getEmpty();const l=c.getOpeningBrackets();for(const s of l)t=t.add(i(s),o.FD);s.set(c.bracketText,new a.ou(e,2,i(l[0]),t,n.rh.create(e,c,t)))}return new c(s)}constructor(e){this.map=e,this.hasRegExp=!1,this._regExpGlobal=null}getRegExpStr(){if(this.isEmpty)return null;{const e=[...this.map.keys()];return e.sort(),e.reverse(),e.map((e=>function(e){let t=(0,s.bm)(e);/^[\w ]+/.test(e)&&(t=`\\b${t}`);/[\w ]+$/.test(e)&&(t=`${t}\\b`);return t}(e))).join("|")}}get regExpGlobal(){if(!this.hasRegExp){const e=this.getRegExpStr();this._regExpGlobal=e?new RegExp(e,"gi"):null,this.hasRegExp=!0}return this._regExpGlobal}getToken(e){return this.map.get(e.toLowerCase())}findClosingTokenText(e){for(const[t,i]of this.map)if(2===i.kind&&i.bracketIds.intersects(e))return t}get isEmpty(){return 0===this.map.size}}class l{constructor(e,t){this.denseKeyProvider=e,this.getLanguageConfiguration=t,this.languageIdToBracketTokens=new Map}didLanguageChange(e){return this.languageIdToBracketTokens.has(e)}getSingleLanguageBracketTokens(e){let t=this.languageIdToBracketTokens.get(e);return t||(t=c.createFromLanguage(this.getLanguageConfiguration(e),this.denseKeyProvider),this.languageIdToBracketTokens.set(e,t)),t}}},84084:(e,t,i)=>{"use strict";i.d(t,{M:()=>o});var s=i(25890),n=i(94650),r=i(19131);function o(e,t){if(0===e.length)return t;if(0===t.length)return e;const i=new s.j3(c(e)),o=c(t);o.push({modified:!1,lengthBefore:void 0,lengthAfter:void 0});let l=i.dequeue();function h(e){if(void 0===e){const e=i.takeWhile((e=>!0))||[];return l&&e.unshift(l),e}const t=[];for(;l&&!(0,r.Vh)(e);){const[s,n]=l.splitAt(e);t.push(s),e=(0,r.MS)(s.lengthAfter,e),l=n??i.dequeue()}return(0,r.Vh)(e)||t.push(new a(!1,e,e)),t}const d=[];function u(e,t,i){if(d.length>0&&(0,r.wP)(d[d.length-1].endOffset,e)){const e=d[d.length-1];d[d.length-1]=new n.c(e.startOffset,t,(0,r.QB)(e.newLength,i))}else d.push({startOffset:e,endOffset:t,newLength:i})}let g=r.Vp;for(const s of o){const e=h(s.lengthBefore);if(s.modified){const t=(0,r.pW)(e,(e=>e.lengthBefore)),i=(0,r.QB)(g,t);u(g,i,s.lengthAfter),g=i}else for(const t of e){const e=g;g=(0,r.QB)(g,t.lengthBefore),t.modified&&u(e,g,t.lengthAfter)}}return d}class a{constructor(e,t,i){this.modified=e,this.lengthBefore=t,this.lengthAfter=i}splitAt(e){const t=(0,r.MS)(e,this.lengthAfter);return(0,r.wP)(t,r.Vp)?[this,void 0]:this.modified?[new a(this.modified,this.lengthBefore,e),new a(this.modified,r.Vp,t)]:[new a(this.modified,e,e),new a(this.modified,t,t)]}toString(){return`${this.modified?"M":"U"}:${(0,r.l4)(this.lengthBefore)} -> ${(0,r.l4)(this.lengthAfter)}`}}function c(e){const t=[];let i=r.Vp;for(const s of e){const e=(0,r.MS)(i,s.startOffset);(0,r.Vh)(e)||t.push(new a(!1,e,e));const n=(0,r.MS)(s.startOffset,s.endOffset);t.push(new a(!0,n,s.newLength)),i=s.endOffset}return t}},19131:(e,t,i)=>{"use strict";i.d(t,{C7:()=>o,MS:()=>_,QB:()=>p,Qx:()=>S,VL:()=>b,Vh:()=>c,Vp:()=>a,eu:()=>u,l4:()=>d,o0:()=>E,pW:()=>m,qe:()=>h,rR:()=>y,sS:()=>g,vr:()=>C,wP:()=>f,zG:()=>v});var s=i(91508),n=i(36677),r=i(50973);function o(e,t,i,s){return e!==i?h(i-e,s):h(0,s-t)}const a=0;function c(e){return 0===e}const l=2**26;function h(e,t){return e*l+t}function d(e){const t=e,i=Math.floor(t/l),s=t-i*l;return new r.W(i,s)}function u(e){return Math.floor(e/l)}function g(e){return e}function p(e,t){let i=e+t;return t>=l&&(i-=e%l),i}function m(e,t){return e.reduce(((e,i)=>p(e,t(i))),a)}function f(e,t){return e===t}function _(e,t){const i=e,s=t;if(s-i<=0)return a;const n=Math.floor(i/l),r=Math.floor(s/l),o=s-r*l;if(n===r){return h(0,o-(i-n*l))}return h(r-n,o)}function v(e,t){return e<t}function C(e,t){return e<=t}function E(e,t){return e>=t}function b(e){return h(e.lineNumber-1,e.column-1)}function S(e,t){const i=e,s=Math.floor(i/l),r=i-s*l,o=t,a=Math.floor(o/l),c=o-a*l;return new n.Q(s+1,r+1,a+1,c+1)}function y(e){const t=(0,s.uz)(e);return h(t.length-1,t[t.length-1].length)}},19562:(e,t,i)=>{"use strict";i.d(t,{T:()=>g});var s=i(40579),n=i(94650),r=i(32956),o=i(19131);function a(e,t=!1){if(0===e.length)return null;if(1===e.length)return e[0];let i=e.length;for(;i>3;){const n=i>>1;for(let r=0;r<n;r++){const n=r<<1;e[r]=s.Xw.create23(e[n],e[n+1],n+3===i?e[n+2]:null,t)}i=n}return s.Xw.create23(e[0],e[1],i>=3?e[2]:null,t)}function c(e,t){return Math.abs(e.listHeight-t.listHeight)}function l(e,t){return e.listHeight===t.listHeight?s.Xw.create23(e,t,null,!1):e.listHeight>t.listHeight?function(e,t){let i=e=e.toMutable();const n=[];let r;for(;;){if(t.listHeight===i.listHeight){r=t;break}if(4!==i.kind)throw new Error("unexpected");n.push(i),i=i.makeLastElementMutable()}for(let o=n.length-1;o>=0;o--){const e=n[o];r?e.childrenLength>=3?r=s.Xw.create23(e.unappendChild(),r,null,!1):(e.appendChildOfSameHeight(r),r=void 0):e.handleChildrenChanged()}return r?s.Xw.create23(e,r,null,!1):e}(e,t):function(e,t){let i=e=e.toMutable();const n=[];for(;t.listHeight!==i.listHeight;){if(4!==i.kind)throw new Error("unexpected");n.push(i),i=i.makeFirstElementMutable()}let r=t;for(let o=n.length-1;o>=0;o--){const e=n[o];r?e.childrenLength>=3?r=s.Xw.create23(r,e.unprependChild(),null,!1):(e.prependChildOfSameHeight(r),r=void 0):e.handleChildrenChanged()}return r?s.Xw.create23(r,e,null,!1):e}(t,e)}class h{constructor(e){this.lastOffset=o.Vp,this.nextNodes=[e],this.offsets=[o.Vp],this.idxs=[]}readLongestNodeAt(e,t){if((0,o.zG)(e,this.lastOffset))throw new Error("Invalid offset");for(this.lastOffset=e;;){const i=u(this.nextNodes);if(!i)return;const s=u(this.offsets);if((0,o.zG)(e,s))return;if((0,o.zG)(s,e))if((0,o.QB)(s,i.length)<=e)this.nextNodeAfterCurrent();else{const e=d(i);-1!==e?(this.nextNodes.push(i.getChild(e)),this.offsets.push(s),this.idxs.push(e)):this.nextNodeAfterCurrent()}else{if(t(i))return this.nextNodeAfterCurrent(),i;{const e=d(i);if(-1===e)return void this.nextNodeAfterCurrent();this.nextNodes.push(i.getChild(e)),this.offsets.push(s),this.idxs.push(e)}}}}nextNodeAfterCurrent(){for(;;){const e=u(this.offsets),t=u(this.nextNodes);if(this.nextNodes.pop(),this.offsets.pop(),0===this.idxs.length)break;const i=u(this.nextNodes),s=d(i,this.idxs[this.idxs.length-1]);if(-1!==s){this.nextNodes.push(i.getChild(s)),this.offsets.push((0,o.QB)(e,t.length)),this.idxs[this.idxs.length-1]=s;break}this.idxs.pop()}}}function d(e,t=-1){for(;;){if(++t>=e.childrenLength)return-1;if(e.getChild(t))return t}}function u(e){return e.length>0?e[e.length-1]:void 0}function g(e,t,i,s){return new p(e,t,i,s).parseDocument()}class p{constructor(e,t,i,s){if(this.tokenizer=e,this.createImmutableLists=s,this._itemsConstructed=0,this._itemsFromCache=0,i&&s)throw new Error("Not supported");this.oldNodeReader=i?new h(i):void 0,this.positionMapper=new n.W(t)}parseDocument(){this._itemsConstructed=0,this._itemsFromCache=0;let e=this.parseList(r.gV.getEmpty(),0);return e||(e=s.Xw.getEmpty()),e}parseList(e,t){const i=[];for(;;){let s=this.tryReadChildFromCache(e);if(!s){const i=this.tokenizer.peek();if(!i||2===i.kind&&i.bracketIds.intersects(e))break;s=this.parseChild(e,t+1)}4===s.kind&&0===s.childrenLength||i.push(s)}const s=this.oldNodeReader?function(e){if(0===e.length)return null;if(1===e.length)return e[0];let t=0;function i(){if(t>=e.length)return null;const i=t,s=e[i].listHeight;for(t++;t<e.length&&e[t].listHeight===s;)t++;return t-i>=2?a(0===i&&t===e.length?e:e.slice(i,t),!1):e[i]}let s=i(),n=i();if(!n)return s;for(let r=i();r;r=i())c(s,n)<=c(n,r)?(s=l(s,n),n=r):n=l(n,r);return l(s,n)}(i):a(i,this.createImmutableLists);return s}tryReadChildFromCache(e){if(this.oldNodeReader){const t=this.positionMapper.getDistanceToNextChange(this.tokenizer.offset);if(null===t||!(0,o.Vh)(t)){const i=this.oldNodeReader.readLongestNodeAt(this.positionMapper.getOffsetBeforeChange(this.tokenizer.offset),(i=>{if(null!==t&&!(0,o.zG)(i.length,t))return!1;return i.canBeReused(e)}));if(i)return this._itemsFromCache++,this.tokenizer.skip(i.length),i}}}parseChild(e,t){this._itemsConstructed++;const i=this.tokenizer.read();switch(i.kind){case 2:return new s.Gc(i.bracketIds,i.length);case 0:return i.astNode;case 1:{if(t>300)return new s.yF(i.length);const n=e.merge(i.bracketIds),r=this.parseList(n,t+1),o=this.tokenizer.peek();return o&&2===o.kind&&(o.bracketId===i.bracketId||o.bracketIds.intersects(i.bracketIds))?(this.tokenizer.read(),s.Nn.create(i.astNode,r,o.astNode)):s.Nn.create(i.astNode,r,null)}default:throw new Error("unexpected")}}}},32956:(e,t,i)=>{"use strict";i.d(t,{FD:()=>r,Mg:()=>o,gV:()=>n});const s=[];class n{static{this.cache=new Array(129)}static create(e,t){if(e<=128&&0===t.length){let i=n.cache[e];return i||(i=new n(e,t),n.cache[e]=i),i}return new n(e,t)}static{this.empty=n.create(0,s)}static getEmpty(){return this.empty}constructor(e,t){this.items=e,this.additionalItems=t}add(e,t){const i=t.getKey(e);let s=i>>5;if(0===s){const e=1<<i|this.items;return e===this.items?this:n.create(e,this.additionalItems)}s--;const r=this.additionalItems.slice(0);for(;r.length<s;)r.push(0);return r[s]|=1<<(31&i),n.create(this.items,r)}merge(e){const t=this.items|e.items;if(this.additionalItems===s&&e.additionalItems===s)return t===this.items?this:t===e.items?e:n.create(t,s);const i=[];for(let s=0;s<Math.max(this.additionalItems.length,e.additionalItems.length);s++){const t=this.additionalItems[s]||0,n=e.additionalItems[s]||0;i.push(t|n)}return n.create(t,i)}intersects(e){if(0!==(this.items&e.items))return!0;for(let t=0;t<Math.min(this.additionalItems.length,e.additionalItems.length);t++)if(0!==(this.additionalItems[t]&e.additionalItems[t]))return!0;return!1}}const r={getKey:e=>e};class o{constructor(){this.items=new Map}getKey(e){let t=this.items.get(e);return void 0===t&&(t=this.items.size,this.items.set(e,t)),t}}},51934:(e,t,i)=>{"use strict";i.d(t,{_:()=>d,ou:()=>c,tk:()=>l});var s=i(64383),n=i(25982),r=i(40579),o=i(19131),a=i(32956);class c{constructor(e,t,i,s,n){this.length=e,this.kind=t,this.bracketId=i,this.bracketIds=s,this.astNode=n}}class l{constructor(e,t){this.textModel=e,this.bracketTokens=t,this.reader=new h(this.textModel,this.bracketTokens),this._offset=o.Vp,this.didPeek=!1,this.peeked=null,this.textBufferLineCount=e.getLineCount(),this.textBufferLastLineLength=e.getLineLength(this.textBufferLineCount)}get offset(){return this._offset}get length(){return(0,o.qe)(this.textBufferLineCount-1,this.textBufferLastLineLength)}skip(e){this.didPeek=!1,this._offset=(0,o.QB)(this._offset,e);const t=(0,o.l4)(this._offset);this.reader.setPosition(t.lineCount,t.columnCount)}read(){let e;return this.peeked?(this.didPeek=!1,e=this.peeked):e=this.reader.read(),e&&(this._offset=(0,o.QB)(this._offset,e.length)),e}peek(){return this.didPeek||(this.peeked=this.reader.read(),this.didPeek=!0),this.peeked}}class h{constructor(e,t){this.textModel=e,this.bracketTokens=t,this.lineIdx=0,this.line=null,this.lineCharOffset=0,this.lineTokens=null,this.lineTokenOffset=0,this.peekedToken=null,this.textBufferLineCount=e.getLineCount(),this.textBufferLastLineLength=e.getLineLength(this.textBufferLineCount)}setPosition(e,t){e===this.lineIdx?(this.lineCharOffset=t,null!==this.line&&(this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset))):(this.lineIdx=e,this.lineCharOffset=t,this.line=null),this.peekedToken=null}read(){if(this.peekedToken){const e=this.peekedToken;return this.peekedToken=null,this.lineCharOffset+=(0,o.sS)(e.length),e}if(this.lineIdx>this.textBufferLineCount-1||this.lineIdx===this.textBufferLineCount-1&&this.lineCharOffset>=this.textBufferLastLineLength)return null;null===this.line&&(this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.line=this.lineTokens.getLineContent(),this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset));const e=this.lineIdx,t=this.lineCharOffset;let i=0;for(;;){const s=this.lineTokens,r=s.getCount();let a=null;if(this.lineTokenOffset<r){const c=s.getMetadata(this.lineTokenOffset);for(;this.lineTokenOffset+1<r&&c===s.getMetadata(this.lineTokenOffset+1);)this.lineTokenOffset++;const l=0===n.x.getTokenType(c),h=n.x.containsBalancedBrackets(c),d=s.getEndOffset(this.lineTokenOffset);if(h&&l&&this.lineCharOffset<d){const e=s.getLanguageId(this.lineTokenOffset),t=this.line.substring(this.lineCharOffset,d),i=this.bracketTokens.getSingleLanguageBracketTokens(e),n=i.regExpGlobal;if(n){n.lastIndex=0;const e=n.exec(t);e&&(a=i.getToken(e[0]),a&&(this.lineCharOffset+=e.index))}}if(i+=d-this.lineCharOffset,a){if(e!==this.lineIdx||t!==this.lineCharOffset){this.peekedToken=a;break}return this.lineCharOffset+=(0,o.sS)(a.length),a}this.lineTokenOffset++,this.lineCharOffset=d}else{if(this.lineIdx===this.textBufferLineCount-1)break;if(this.lineIdx++,this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.lineTokenOffset=0,this.line=this.lineTokens.getLineContent(),this.lineCharOffset=0,i+=33,i>1e3)break}if(i>1500)break}const s=(0,o.C7)(e,t,this.lineIdx,this.lineCharOffset);return new c(s,0,-1,a.gV.getEmpty(),new r.yF(s))}}class d{constructor(e,t){this.text=e,this._offset=o.Vp,this.idx=0;const i=t.getRegExpStr(),s=i?new RegExp(i+"|\n","gi"):null,n=[];let l,h=0,d=0,u=0,g=0;const p=[];for(let _=0;_<60;_++)p.push(new c((0,o.qe)(0,_),0,-1,a.gV.getEmpty(),new r.yF((0,o.qe)(0,_))));const m=[];for(let _=0;_<60;_++)m.push(new c((0,o.qe)(1,_),0,-1,a.gV.getEmpty(),new r.yF((0,o.qe)(1,_))));if(s)for(s.lastIndex=0;null!==(l=s.exec(e));){const e=l.index,i=l[0];if("\n"===i)h++,d=e+1;else{if(u!==e){let t;if(g===h){const i=e-u;if(i<p.length)t=p[i];else{const e=(0,o.qe)(0,i);t=new c(e,0,-1,a.gV.getEmpty(),new r.yF(e))}}else{const i=h-g,s=e-d;if(1===i&&s<m.length)t=m[s];else{const e=(0,o.qe)(i,s);t=new c(e,0,-1,a.gV.getEmpty(),new r.yF(e))}}n.push(t)}n.push(t.getToken(i)),u=e+i.length,g=h}}const f=e.length;if(u!==f){const e=g===h?(0,o.qe)(0,f-u):(0,o.qe)(h-g,f-d);n.push(new c(e,0,-1,a.gV.getEmpty(),new r.yF(e)))}this.length=(0,o.qe)(h,f-d),this.tokens=n}get offset(){return this._offset}read(){return this.tokens[this.idx++]||null}peek(){return this.tokens[this.idx]||null}skip(e){throw new s.EM}}},26656:(e,t,i)=>{"use strict";i.d(t,{Th:()=>m,z8:()=>f});var s=i(78209),n=i(64383),r=i(75326),o=i(79400),a=i(64829),c=i(81674),l=i(89403);function h(e){return e.toString()}class d{static create(e,t){const i=e.getAlternativeVersionId(),s=p(e);return new d(i,i,s,s,t,t,[])}constructor(e,t,i,s,n,r,o){this.beforeVersionId=e,this.afterVersionId=t,this.beforeEOL=i,this.afterEOL=s,this.beforeCursorState=n,this.afterCursorState=r,this.changes=o}append(e,t,i,s,n){t.length>0&&(this.changes=(0,a.x)(this.changes,t)),this.afterEOL=i,this.afterVersionId=s,this.afterCursorState=n}static _writeSelectionsSize(e){return 4+16*(e?e.length:0)}static _writeSelections(e,t,i){if(c.Sw(e,t?t.length:0,i),i+=4,t)for(const s of t)c.Sw(e,s.selectionStartLineNumber,i),i+=4,c.Sw(e,s.selectionStartColumn,i),i+=4,c.Sw(e,s.positionLineNumber,i),i+=4,c.Sw(e,s.positionColumn,i),i+=4;return i}static _readSelections(e,t,i){const s=c.bb(e,t);t+=4;for(let n=0;n<s;n++){const s=c.bb(e,t);t+=4;const n=c.bb(e,t);t+=4;const o=c.bb(e,t);t+=4;const a=c.bb(e,t);t+=4,i.push(new r.L(s,n,o,a))}return t}serialize(){let e=10+d._writeSelectionsSize(this.beforeCursorState)+d._writeSelectionsSize(this.afterCursorState)+4;for(const s of this.changes)e+=s.writeSize();const t=new Uint8Array(e);let i=0;c.Sw(t,this.beforeVersionId,i),i+=4,c.Sw(t,this.afterVersionId,i),i+=4,c.Gs(t,this.beforeEOL,i),i+=1,c.Gs(t,this.afterEOL,i),i+=1,i=d._writeSelections(t,this.beforeCursorState,i),i=d._writeSelections(t,this.afterCursorState,i),c.Sw(t,this.changes.length,i),i+=4;for(const s of this.changes)i=s.write(t,i);return t.buffer}static deserialize(e){const t=new Uint8Array(e);let i=0;const s=c.bb(t,i);i+=4;const n=c.bb(t,i);i+=4;const r=c.pJ(t,i);i+=1;const o=c.pJ(t,i);i+=1;const l=[];i=d._readSelections(t,i,l);const h=[];i=d._readSelections(t,i,h);const u=c.bb(t,i);i+=4;const g=[];for(let c=0;c<u;c++)i=a.k.read(t,i,g);return new d(s,n,r,o,l,h,g)}}class u{get type(){return 0}get resource(){return o.r.isUri(this.model)?this.model:this.model.uri}constructor(e,t,i,s){this.label=e,this.code=t,this.model=i,this._data=d.create(i,s)}toString(){return(this._data instanceof d?this._data:d.deserialize(this._data)).changes.map((e=>e.toString())).join(", ")}matchesResource(e){return(o.r.isUri(this.model)?this.model:this.model.uri).toString()===e.toString()}setModel(e){this.model=e}canAppend(e){return this.model===e&&this._data instanceof d}append(e,t,i,s,n){this._data instanceof d&&this._data.append(e,t,i,s,n)}close(){this._data instanceof d&&(this._data=this._data.serialize())}open(){this._data instanceof d||(this._data=d.deserialize(this._data))}undo(){if(o.r.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof d&&(this._data=this._data.serialize());const e=d.deserialize(this._data);this.model._applyUndo(e.changes,e.beforeEOL,e.beforeVersionId,e.beforeCursorState)}redo(){if(o.r.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof d&&(this._data=this._data.serialize());const e=d.deserialize(this._data);this.model._applyRedo(e.changes,e.afterEOL,e.afterVersionId,e.afterCursorState)}heapSize(){return this._data instanceof d&&(this._data=this._data.serialize()),this._data.byteLength+168}}class g{get resources(){return this._editStackElementsArr.map((e=>e.resource))}constructor(e,t,i){this.label=e,this.code=t,this.type=1,this._isOpen=!0,this._editStackElementsArr=i.slice(0),this._editStackElementsMap=new Map;for(const s of this._editStackElementsArr){const e=h(s.resource);this._editStackElementsMap.set(e,s)}this._delegate=null}prepareUndoRedo(){if(this._delegate)return this._delegate.prepareUndoRedo(this)}matchesResource(e){const t=h(e);return this._editStackElementsMap.has(t)}setModel(e){const t=h(o.r.isUri(e)?e:e.uri);this._editStackElementsMap.has(t)&&this._editStackElementsMap.get(t).setModel(e)}canAppend(e){if(!this._isOpen)return!1;const t=h(e.uri);if(this._editStackElementsMap.has(t)){return this._editStackElementsMap.get(t).canAppend(e)}return!1}append(e,t,i,s,n){const r=h(e.uri);this._editStackElementsMap.get(r).append(e,t,i,s,n)}close(){this._isOpen=!1}open(){}undo(){this._isOpen=!1;for(const e of this._editStackElementsArr)e.undo()}redo(){for(const e of this._editStackElementsArr)e.redo()}heapSize(e){const t=h(e);if(this._editStackElementsMap.has(t)){return this._editStackElementsMap.get(t).heapSize()}return 0}split(){return this._editStackElementsArr}toString(){const e=[];for(const t of this._editStackElementsArr)e.push(`${(0,l.P8)(t.resource)}: ${t}`);return`{${e.join(", ")}}`}}function p(e){return"\n"===e.getEOL()?0:1}function m(e){return!!e&&(e instanceof u||e instanceof g)}class f{constructor(e,t){this._model=e,this._undoRedoService=t}pushStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);m(e)&&e.close()}popStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);m(e)&&e.open()}clear(){this._undoRedoService.removeElements(this._model.uri)}_getOrCreateEditStackElement(e,t){const i=this._undoRedoService.getLastElement(this._model.uri);if(m(i)&&i.canAppend(this._model))return i;const n=new u(s.kg("edit","Typing"),"undoredo.textBufferEdit",this._model,e);return this._undoRedoService.pushElement(n,t),n}pushEOL(e){const t=this._getOrCreateEditStackElement(null,void 0);this._model.setEOL(e),t.append(this._model,[],p(this._model),this._model.getAlternativeVersionId(),null)}pushEditOperation(e,t,i,s){const n=this._getOrCreateEditStackElement(e,s),r=this._model.applyEdits(t,!0),o=f._computeCursorState(i,r),a=r.map(((e,t)=>({index:t,textChange:e.textChange})));return a.sort(((e,t)=>e.textChange.oldPosition===t.textChange.oldPosition?e.index-t.index:e.textChange.oldPosition-t.textChange.oldPosition)),n.append(this._model,a.map((e=>e.textChange)),p(this._model),this._model.getAlternativeVersionId(),o),o}static _computeCursorState(e,t){try{return e?e(t):null}catch(i){return(0,n.dz)(i),null}}}},53450:(e,t,i)=>{"use strict";i.d(t,{P:()=>d,k:()=>u});var s=i(46041),n=i(91508),r=i(1245),o=i(36677),a=i(20761),c=i(78049),l=i(84739),h=i(64383);class d extends a._{constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t}getLanguageConfiguration(e){return this.languageConfigurationService.getLanguageConfiguration(e)}_computeIndentLevel(e){return(0,c.G)(this.textModel.getLineContent(e+1),this.textModel.getOptions().tabSize)}getActiveIndentGuide(e,t,i){this.assertNotDisposed();const s=this.textModel.getLineCount();if(e<1||e>s)throw new h.D7("Illegal value for lineNumber");const n=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,r=Boolean(n&&n.offSide);let o=-2,a=-1,c=-2,l=-1;const d=e=>{if(-1!==o&&(-2===o||o>e-1)){o=-1,a=-1;for(let t=e-2;t>=0;t--){const e=this._computeIndentLevel(t);if(e>=0){o=t,a=e;break}}}if(-2===c){c=-1,l=-1;for(let t=e;t<s;t++){const e=this._computeIndentLevel(t);if(e>=0){c=t,l=e;break}}}};let u=-2,g=-1,p=-2,m=-1;const f=e=>{if(-2===u){u=-1,g=-1;for(let t=e-2;t>=0;t--){const e=this._computeIndentLevel(t);if(e>=0){u=t,g=e;break}}}if(-1!==p&&(-2===p||p<e-1)){p=-1,m=-1;for(let t=e;t<s;t++){const e=this._computeIndentLevel(t);if(e>=0){p=t,m=e;break}}}};let _=0,v=!0,C=0,E=!0,b=0,S=0;for(let h=0;v||E;h++){const n=e-h,o=e+h;h>1&&(n<1||n<t)&&(v=!1),h>1&&(o>s||o>i)&&(E=!1),h>5e4&&(v=!1,E=!1);let p=-1;if(v&&n>=1){const e=this._computeIndentLevel(n-1);e>=0?(c=n-1,l=e,p=Math.ceil(e/this.textModel.getOptions().indentSize)):(d(n),p=this._getIndentLevelForWhitespaceLine(r,a,l))}let y=-1;if(E&&o<=s){const e=this._computeIndentLevel(o-1);e>=0?(u=o-1,g=e,y=Math.ceil(e/this.textModel.getOptions().indentSize)):(f(o),y=this._getIndentLevelForWhitespaceLine(r,g,m))}if(0!==h){if(1===h){if(o<=s&&y>=0&&S+1===y){v=!1,_=o,C=o,b=y;continue}if(n>=1&&p>=0&&p-1===S){E=!1,_=n,C=n,b=p;continue}if(_=e,C=e,b=S,0===b)return{startLineNumber:_,endLineNumber:C,indent:b}}v&&(p>=b?_=n:v=!1),E&&(y>=b?C=o:E=!1)}else S=p}return{startLineNumber:_,endLineNumber:C,indent:b}}getLinesBracketGuides(e,t,i,r){const a=[];for(let s=e;s<=t;s++)a.push([]);const c=!0,h=this.textModel.bracketPairs.getBracketPairsInRangeWithMinIndentation(new o.Q(e,1,t,this.textModel.getLineMaxColumn(t))).toArray();let d;if(i&&h.length>0){const n=(e<=i.lineNumber&&i.lineNumber<=t?h:this.textModel.bracketPairs.getBracketPairsInRange(o.Q.fromPositions(i)).toArray()).filter((e=>o.Q.strictContainsPosition(e.range,i)));d=(0,s.Uk)(n,(e=>c))?.range}const g=this.textModel.getOptions().bracketPairColorizationOptions.independentColorPoolPerBracketType,p=new u;for(const s of h){if(!s.closingBracketRange)continue;const i=d&&s.range.equalsRange(d);if(!i&&!r.includeInactive)continue;const o=p.getInlineClassName(s.nestingLevel,s.nestingLevelOfEqualBracketType,g)+(r.highlightActive&&i?" "+p.activeClassName:""),c=s.openingBracketRange.getStartPosition(),h=s.closingBracketRange.getStartPosition(),u=r.horizontalGuides===l.N6.Enabled||r.horizontalGuides===l.N6.EnabledForActive&&i;if(s.range.startLineNumber===s.range.endLineNumber){u&&a[s.range.startLineNumber-e].push(new l.TH(-1,s.openingBracketRange.getEndPosition().column,o,new l.pv(!1,h.column),-1,-1));continue}const m=this.getVisibleColumnFromPosition(h),f=this.getVisibleColumnFromPosition(s.openingBracketRange.getStartPosition()),_=Math.min(f,m,s.minVisibleColumnIndentation+1);let v=!1;n.HG(this.textModel.getLineContent(s.closingBracketRange.startLineNumber))<s.closingBracketRange.startColumn-1&&(v=!0);const C=Math.max(c.lineNumber,e),E=Math.min(h.lineNumber,t),b=v?1:0;for(let t=C;t<E+b;t++)a[t-e].push(new l.TH(_,-1,o,null,t===c.lineNumber?c.column:-1,t===h.lineNumber?h.column:-1));u&&(c.lineNumber>=e&&f>_&&a[c.lineNumber-e].push(new l.TH(_,-1,o,new l.pv(!1,c.column),-1,-1)),h.lineNumber<=t&&m>_&&a[h.lineNumber-e].push(new l.TH(_,-1,o,new l.pv(!v,h.column),-1,-1)))}for(const s of a)s.sort(((e,t)=>e.visibleColumn-t.visibleColumn));return a}getVisibleColumnFromPosition(e){return r.A.visibleColumnFromColumn(this.textModel.getLineContent(e.lineNumber),e.column,this.textModel.getOptions().tabSize)+1}getLinesIndentGuides(e,t){this.assertNotDisposed();const i=this.textModel.getLineCount();if(e<1||e>i)throw new Error("Illegal value for startLineNumber");if(t<1||t>i)throw new Error("Illegal value for endLineNumber");const s=this.textModel.getOptions(),n=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,r=Boolean(n&&n.offSide),o=new Array(t-e+1);let a=-2,c=-1,l=-2,h=-1;for(let d=e;d<=t;d++){const t=d-e,n=this._computeIndentLevel(d-1);if(n>=0)a=d-1,c=n,o[t]=Math.ceil(n/s.indentSize);else{if(-2===a){a=-1,c=-1;for(let e=d-2;e>=0;e--){const t=this._computeIndentLevel(e);if(t>=0){a=e,c=t;break}}}if(-1!==l&&(-2===l||l<d-1)){l=-1,h=-1;for(let e=d;e<i;e++){const t=this._computeIndentLevel(e);if(t>=0){l=e,h=t;break}}}o[t]=this._getIndentLevelForWhitespaceLine(r,c,h)}}return o}_getIndentLevelForWhitespaceLine(e,t,i){const s=this.textModel.getOptions();return-1===t||-1===i?0:t<i?1+Math.floor(t/s.indentSize):t===i||e?Math.ceil(i/s.indentSize):1+Math.floor(i/s.indentSize)}}class u{constructor(){this.activeClassName="indent-active"}getInlineClassName(e,t,i){return this.getInlineClassNameOfLevel(i?t:e)}getInlineClassNameOfLevel(e){return"bracket-indent-guide lvl-"+e%30}}},27414:(e,t,i)=>{"use strict";i.d(t,{N:()=>r,c2:()=>o});var s=i(25890),n=i(85152);class r{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=(0,n.j)(e);const i=this.values,s=this.prefixSum,r=t.length;return 0!==r&&(this.values=new Uint32Array(i.length+r),this.values.set(i.subarray(0,e),0),this.values.set(i.subarray(e),e+r),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(s.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,t){return e=(0,n.j)(e),t=(0,n.j)(t),this.values[e]!==t&&(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,t){e=(0,n.j)(e),t=(0,n.j)(t);const i=this.values,s=this.prefixSum;if(e>=i.length)return!1;const r=i.length-e;return t>=r&&(t=r),0!==t&&(this.values=new Uint32Array(i.length-t),this.values.set(i.subarray(0,e),0),this.values.set(i.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(s.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=(0,n.j)(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let i=t;i<=e;i++)this.prefixSum[i]=this.prefixSum[i-1]+this.values[i];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let t=0,i=this.values.length-1,s=0,n=0,r=0;for(;t<=i;)if(s=t+(i-t)/2|0,n=this.prefixSum[s],r=n-this.values[s],e<r)i=s-1;else{if(!(e>=n))break;t=s+1}return new a(s,e-r)}}class o{constructor(e){this._values=e,this._isValid=!1,this._validEndIndex=-1,this._prefixSum=[],this._indexBySum=[]}getTotalSum(){return this._ensureValid(),this._indexBySum.length}getPrefixSum(e){return this._ensureValid(),0===e?0:this._prefixSum[e-1]}getIndexOf(e){this._ensureValid();const t=this._indexBySum[e],i=t>0?this._prefixSum[t-1]:0;return new a(t,e-i)}removeValues(e,t){this._values.splice(e,t),this._invalidate(e)}insertValues(e,t){this._values=(0,s.nK)(this._values,e,t),this._invalidate(e)}_invalidate(e){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,e-1)}_ensureValid(){if(!this._isValid){for(let e=this._validEndIndex+1,t=this._values.length;e<t;e++){const t=this._values[e],i=e>0?this._prefixSum[e-1]:0;this._prefixSum[e]=i+t;for(let s=0;s<t;s++)this._indexBySum[i+s]=e}this._prefixSum.length=this._values.length,this._indexBySum.length=this._prefixSum[this._prefixSum.length-1],this._isValid=!0,this._validEndIndex=this._values.length-1}}setValue(e,t){this._values[e]!==t&&(this._values[e]=t,this._invalidate(e))}}class a{constructor(e,t){this.index=e,this.remainder=t,this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=t}}},87289:(e,t,i)=>{"use strict";i.d(t,{Ho:()=>Qt,kI:()=>Xt,Bz:()=>Wt});var s=i(25890),n=i(47661),r=i(64383),o=i(41234),a=i(5662),c=i(91508),l=i(79400),h=i(64454),d=i(93895),u=i(83069),g=i(36677),p=i(75326),m=i(24329),f=i(10154),_=i(17469),v=i(16223),C=i(12296),E=i(56772);class b{constructor(e,t,i,s){this.range=e,this.nestingLevel=t,this.nestingLevelOfEqualBracketType=i,this.isInvalid=s}}class S{constructor(e,t,i,s,n,r){this.range=e,this.openingBracketRange=t,this.closingBracketRange=i,this.nestingLevel=s,this.nestingLevelOfEqualBracketType=n,this.bracketPairNode=r}get openingBracketInfo(){return this.bracketPairNode.openingBracket.bracketInfo}}class y extends S{constructor(e,t,i,s,n,r,o){super(e,t,i,s,n,r),this.minVisibleColumnIndentation=o}}var w=i(94650),R=i(93630),L=i(19131),T=i(19562),x=i(32956),k=i(51934),A=i(84084);class N extends a.jG{didLanguageChange(e){return this.brackets.didLanguageChange(e)}constructor(e,t){if(super(),this.textModel=e,this.getLanguageConfiguration=t,this.didChangeEmitter=new o.vl,this.denseKeyProvider=new x.Mg,this.brackets=new R.Z(this.denseKeyProvider,this.getLanguageConfiguration),this.onDidChange=this.didChangeEmitter.event,this.queuedTextEditsForInitialAstWithoutTokens=[],this.queuedTextEdits=[],e.tokenization.hasTokens)2===e.tokenization.backgroundTokenizationState?(this.initialAstWithoutTokens=void 0,this.astWithTokens=this.parseDocumentFromTextBuffer([],void 0,!1)):(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer([],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens);else{const e=this.brackets.getSingleLanguageBracketTokens(this.textModel.getLanguageId()),t=new k._(this.textModel.getValue(),e);this.initialAstWithoutTokens=(0,T.T)(t,[],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens}}handleDidChangeBackgroundTokenizationState(){if(2===this.textModel.tokenization.backgroundTokenizationState){const e=void 0===this.initialAstWithoutTokens;this.initialAstWithoutTokens=void 0,e||this.didChangeEmitter.fire()}}handleDidChangeTokens({ranges:e}){const t=e.map((e=>new w.c((0,L.qe)(e.fromLineNumber-1,0),(0,L.qe)(e.toLineNumber,0),(0,L.qe)(e.toLineNumber-e.fromLineNumber+1,0))));this.handleEdits(t,!0),this.initialAstWithoutTokens||this.didChangeEmitter.fire()}handleContentChanged(e){const t=w.c.fromModelContentChanges(e.changes);this.handleEdits(t,!1)}handleEdits(e,t){const i=(0,A.M)(this.queuedTextEdits,e);this.queuedTextEdits=i,this.initialAstWithoutTokens&&!t&&(this.queuedTextEditsForInitialAstWithoutTokens=(0,A.M)(this.queuedTextEditsForInitialAstWithoutTokens,e))}flushQueue(){this.queuedTextEdits.length>0&&(this.astWithTokens=this.parseDocumentFromTextBuffer(this.queuedTextEdits,this.astWithTokens,!1),this.queuedTextEdits=[]),this.queuedTextEditsForInitialAstWithoutTokens.length>0&&(this.initialAstWithoutTokens&&(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer(this.queuedTextEditsForInitialAstWithoutTokens,this.initialAstWithoutTokens,!1)),this.queuedTextEditsForInitialAstWithoutTokens=[])}parseDocumentFromTextBuffer(e,t,i){const s=t,n=new k.tk(this.textModel,this.brackets);return(0,T.T)(n,e,s,i)}getBracketsInRange(e,t){this.flushQueue();const i=(0,L.qe)(e.startLineNumber-1,e.startColumn-1),n=(0,L.qe)(e.endLineNumber-1,e.endColumn-1);return new s.c1((e=>{const s=this.initialAstWithoutTokens||this.astWithTokens;D(s,L.Vp,s.length,i,n,e,0,0,new Map,t)}))}getBracketPairsInRange(e,t){this.flushQueue();const i=(0,L.VL)(e.getStartPosition()),n=(0,L.VL)(e.getEndPosition());return new s.c1((e=>{const s=this.initialAstWithoutTokens||this.astWithTokens,r=new M(e,t,this.textModel);P(s,L.Vp,s.length,i,n,r,0,new Map)}))}getFirstBracketAfter(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return O(t,L.Vp,t.length,(0,L.VL)(e))}getFirstBracketBefore(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return I(t,L.Vp,t.length,(0,L.VL)(e))}}function I(e,t,i,s){if(4===e.kind||2===e.kind){const n=[];for(const s of e.children)i=(0,L.QB)(t,s.length),n.push({nodeOffsetStart:t,nodeOffsetEnd:i}),t=i;for(let t=n.length-1;t>=0;t--){const{nodeOffsetStart:i,nodeOffsetEnd:r}=n[t];if((0,L.zG)(i,s)){const n=I(e.children[t],i,r,s);if(n)return n}}return null}if(3===e.kind)return null;if(1===e.kind){const s=(0,L.Qx)(t,i);return{bracketInfo:e.bracketInfo,range:s}}return null}function O(e,t,i,s){if(4===e.kind||2===e.kind){for(const n of e.children){if(i=(0,L.QB)(t,n.length),(0,L.zG)(s,i)){const e=O(n,t,i,s);if(e)return e}t=i}return null}if(3===e.kind)return null;if(1===e.kind){const s=(0,L.Qx)(t,i);return{bracketInfo:e.bracketInfo,range:s}}return null}function D(e,t,i,s,n,r,o,a,c,l,h=!1){if(o>200)return!0;e:for(;;)switch(e.kind){case 4:{const a=e.childrenLength;for(let h=0;h<a;h++){const a=e.getChild(h);if(a){if(i=(0,L.QB)(t,a.length),(0,L.vr)(t,n)&&(0,L.o0)(i,s)){if((0,L.o0)(i,n)){e=a;continue e}if(!D(a,t,i,s,n,r,o,0,c,l))return!1}t=i}}return!0}case 2:{const h=!l||!e.closingBracket||e.closingBracket.bracketInfo.closesColorized(e.openingBracket.bracketInfo);let d=0;if(c){let t=c.get(e.openingBracket.text);void 0===t&&(t=0),d=t,h&&(t++,c.set(e.openingBracket.text,t))}const u=e.childrenLength;for(let g=0;g<u;g++){const u=e.getChild(g);if(u){if(i=(0,L.QB)(t,u.length),(0,L.vr)(t,n)&&(0,L.o0)(i,s)){if((0,L.o0)(i,n)&&1!==u.kind){e=u,h?(o++,a=d+1):a=d;continue e}if(h||1!==u.kind||!e.closingBracket){if(!D(u,t,i,s,n,r,h?o+1:o,h?d+1:d,c,l,!e.closingBracket))return!1}}t=i}}return c?.set(e.openingBracket.text,d),!0}case 3:{const e=(0,L.Qx)(t,i);return r(new b(e,o-1,0,!0))}case 1:{const e=(0,L.Qx)(t,i);return r(new b(e,o-1,a-1,h))}case 0:return!0}}class M{constructor(e,t,i){this.push=e,this.includeMinIndentation=t,this.textModel=i}}function P(e,t,i,s,n,r,o,a){if(o>200)return!0;let c=!0;if(2===e.kind){let l=0;if(a){let t=a.get(e.openingBracket.text);void 0===t&&(t=0),l=t,t++,a.set(e.openingBracket.text,t)}const h=(0,L.QB)(t,e.openingBracket.length);let d=-1;if(r.includeMinIndentation&&(d=e.computeMinIndentation(t,r.textModel)),c=r.push(new y((0,L.Qx)(t,i),(0,L.Qx)(t,h),e.closingBracket?(0,L.Qx)((0,L.QB)(h,e.child?.length||L.Vp),i):void 0,o,l,e,d)),t=h,c&&e.child){const l=e.child;if(i=(0,L.QB)(t,l.length),(0,L.vr)(t,n)&&(0,L.o0)(i,s)&&(c=P(l,t,i,s,n,r,o+1,a),!c))return!1}a?.set(e.openingBracket.text,l)}else{let i=t;for(const t of e.children){const e=i;if(i=(0,L.QB)(i,t.length),(0,L.vr)(e,n)&&(0,L.vr)(s,i)&&(c=P(t,e,i,s,n,r,o,a),!c))return!1}}return c}class F extends a.jG{get canBuildAST(){return this.textModel.getValueLength()<=5e6}constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t,this.bracketPairsTree=this._register(new a.HE),this.onDidChangeEmitter=new o.vl,this.onDidChange=this.onDidChangeEmitter.event,this.bracketsRequested=!1}handleLanguageConfigurationServiceChange(e){e.languageId&&!this.bracketPairsTree.value?.object.didLanguageChange(e.languageId)||(this.bracketPairsTree.clear(),this.updateBracketPairsTree())}handleDidChangeOptions(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeLanguage(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeContent(e){this.bracketPairsTree.value?.object.handleContentChanged(e)}handleDidChangeBackgroundTokenizationState(){this.bracketPairsTree.value?.object.handleDidChangeBackgroundTokenizationState()}handleDidChangeTokens(e){this.bracketPairsTree.value?.object.handleDidChangeTokens(e)}updateBracketPairsTree(){if(this.bracketsRequested&&this.canBuildAST){if(!this.bracketPairsTree.value){const i=new a.Cm;this.bracketPairsTree.value=(e=i.add(new N(this.textModel,(e=>this.languageConfigurationService.getLanguageConfiguration(e)))),t=i,{object:e,dispose:()=>t?.dispose()}),i.add(this.bracketPairsTree.value.object.onDidChange((e=>this.onDidChangeEmitter.fire(e)))),this.onDidChangeEmitter.fire()}}else this.bracketPairsTree.value&&(this.bracketPairsTree.clear(),this.onDidChangeEmitter.fire());var e,t}getBracketPairsInRange(e){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketPairsInRange(e,!1)||s.c1.empty}getBracketPairsInRangeWithMinIndentation(e){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketPairsInRange(e,!0)||s.c1.empty}getBracketsInRange(e,t=!1){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketsInRange(e,t)||s.c1.empty}findMatchingBracketUp(e,t,i){const s=this.textModel.validatePosition(t),n=this.textModel.getLanguageIdAtPosition(s.lineNumber,s.column);if(this.canBuildAST){const i=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew.getClosingBracketInfo(e);if(!i)return null;const s=this.getBracketPairsInRange(g.Q.fromPositions(t,t)).findLast((e=>i.closes(e.openingBracketInfo)));return s?s.openingBracketRange:null}{const t=e.toLowerCase(),r=this.languageConfigurationService.getLanguageConfiguration(n).brackets;if(!r)return null;const o=r.textIsBracket[t];return o?B(this._findMatchingBracketUp(o,s,U(i))):null}}matchBracket(e,t){if(this.canBuildAST){const t=this.getBracketPairsInRange(g.Q.fromPositions(e,e)).filter((t=>void 0!==t.closingBracketRange&&(t.openingBracketRange.containsPosition(e)||t.closingBracketRange.containsPosition(e)))).findLastMaxBy((0,s.VE)((t=>t.openingBracketRange.containsPosition(e)?t.openingBracketRange:t.closingBracketRange),g.Q.compareRangesUsingStarts));return t?[t.openingBracketRange,t.closingBracketRange]:null}{const i=U(t);return this._matchBracket(this.textModel.validatePosition(e),i)}}_establishBracketSearchOffsets(e,t,i,s){const n=t.getCount(),r=t.getLanguageId(s);let o=Math.max(0,e.column-1-i.maxBracketLength);for(let c=s-1;c>=0;c--){const e=t.getEndOffset(c);if(e<=o)break;if((0,C.Yo)(t.getStandardTokenType(c))||t.getLanguageId(c)!==r){o=e;break}}let a=Math.min(t.getLineContent().length,e.column-1+i.maxBracketLength);for(let c=s+1;c<n;c++){const e=t.getStartOffset(c);if(e>=a)break;if((0,C.Yo)(t.getStandardTokenType(c))||t.getLanguageId(c)!==r){a=e;break}}return{searchStartOffset:o,searchEndOffset:a}}_matchBracket(e,t){const i=e.lineNumber,s=this.textModel.tokenization.getLineTokens(i),n=this.textModel.getLineContent(i),r=s.findTokenIndexAtOffset(e.column-1);if(r<0)return null;const o=this.languageConfigurationService.getLanguageConfiguration(s.getLanguageId(r)).brackets;if(o&&!(0,C.Yo)(s.getStandardTokenType(r))){let{searchStartOffset:a,searchEndOffset:c}=this._establishBracketSearchOffsets(e,s,o,r),l=null;for(;;){const s=E.Fu.findNextBracketInRange(o.forwardRegex,i,n,a,c);if(!s)break;if(s.startColumn<=e.column&&e.column<=s.endColumn){const e=n.substring(s.startColumn-1,s.endColumn-1).toLowerCase(),i=this._matchFoundBracket(s,o.textIsBracket[e],o.textIsOpenBracket[e],t);if(i){if(i instanceof H)return null;l=i}}a=s.endColumn-1}if(l)return l}if(r>0&&s.getStartOffset(r)===e.column-1){const o=r-1,a=this.languageConfigurationService.getLanguageConfiguration(s.getLanguageId(o)).brackets;if(a&&!(0,C.Yo)(s.getStandardTokenType(o))){const{searchStartOffset:r,searchEndOffset:c}=this._establishBracketSearchOffsets(e,s,a,o),l=E.Fu.findPrevBracketInRange(a.reversedRegex,i,n,r,c);if(l&&l.startColumn<=e.column&&e.column<=l.endColumn){const e=n.substring(l.startColumn-1,l.endColumn-1).toLowerCase(),i=this._matchFoundBracket(l,a.textIsBracket[e],a.textIsOpenBracket[e],t);if(i)return i instanceof H?null:i}}}return null}_matchFoundBracket(e,t,i,s){if(!t)return null;const n=i?this._findMatchingBracketDown(t,e.getEndPosition(),s):this._findMatchingBracketUp(t,e.getStartPosition(),s);return n?n instanceof H?n:[e,n]:null}_findMatchingBracketUp(e,t,i){const s=e.languageId,n=e.reversedRegex;let r=-1,o=0;const a=(t,s,a,c)=>{for(;;){if(i&&++o%100===0&&!i())return H.INSTANCE;const l=E.Fu.findPrevBracketInRange(n,t,s,a,c);if(!l)break;const h=s.substring(l.startColumn-1,l.endColumn-1).toLowerCase();if(e.isOpen(h)?r++:e.isClose(h)&&r--,0===r)return l;c=l.startColumn-1}return null};for(let c=t.lineNumber;c>=1;c--){const e=this.textModel.tokenization.getLineTokens(c),i=e.getCount(),n=this.textModel.getLineContent(c);let r=i-1,o=n.length,l=n.length;c===t.lineNumber&&(r=e.findTokenIndexAtOffset(t.column-1),o=t.column-1,l=t.column-1);let h=!0;for(;r>=0;r--){const t=e.getLanguageId(r)===s&&!(0,C.Yo)(e.getStandardTokenType(r));if(t)h?o=e.getStartOffset(r):(o=e.getStartOffset(r),l=e.getEndOffset(r));else if(h&&o!==l){const e=a(c,n,o,l);if(e)return e}h=t}if(h&&o!==l){const e=a(c,n,o,l);if(e)return e}}return null}_findMatchingBracketDown(e,t,i){const s=e.languageId,n=e.forwardRegex;let r=1,o=0;const a=(t,s,a,c)=>{for(;;){if(i&&++o%100===0&&!i())return H.INSTANCE;const l=E.Fu.findNextBracketInRange(n,t,s,a,c);if(!l)break;const h=s.substring(l.startColumn-1,l.endColumn-1).toLowerCase();if(e.isOpen(h)?r++:e.isClose(h)&&r--,0===r)return l;a=l.endColumn-1}return null},c=this.textModel.getLineCount();for(let l=t.lineNumber;l<=c;l++){const e=this.textModel.tokenization.getLineTokens(l),i=e.getCount(),n=this.textModel.getLineContent(l);let r=0,o=0,c=0;l===t.lineNumber&&(r=e.findTokenIndexAtOffset(t.column-1),o=t.column-1,c=t.column-1);let h=!0;for(;r<i;r++){const t=e.getLanguageId(r)===s&&!(0,C.Yo)(e.getStandardTokenType(r));if(t)h||(o=e.getStartOffset(r)),c=e.getEndOffset(r);else if(h&&o!==c){const e=a(l,n,o,c);if(e)return e}h=t}if(h&&o!==c){const e=a(l,n,o,c);if(e)return e}}return null}findPrevBracket(e){const t=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getFirstBracketBefore(t)||null;let i=null,s=null,n=null;for(let r=t.lineNumber;r>=1;r--){const e=this.textModel.tokenization.getLineTokens(r),o=e.getCount(),a=this.textModel.getLineContent(r);let c=o-1,l=a.length,h=a.length;if(r===t.lineNumber){c=e.findTokenIndexAtOffset(t.column-1),l=t.column-1,h=t.column-1;const r=e.getLanguageId(c);i!==r&&(i=r,s=this.languageConfigurationService.getLanguageConfiguration(i).brackets,n=this.languageConfigurationService.getLanguageConfiguration(i).bracketsNew)}let d=!0;for(;c>=0;c--){const t=e.getLanguageId(c);if(i!==t){if(s&&n&&d&&l!==h){const e=E.Fu.findPrevBracketInRange(s.reversedRegex,r,a,l,h);if(e)return this._toFoundBracket(n,e);d=!1}i=t,s=this.languageConfigurationService.getLanguageConfiguration(i).brackets,n=this.languageConfigurationService.getLanguageConfiguration(i).bracketsNew}const o=!!s&&!(0,C.Yo)(e.getStandardTokenType(c));if(o)d?l=e.getStartOffset(c):(l=e.getStartOffset(c),h=e.getEndOffset(c));else if(n&&s&&d&&l!==h){const e=E.Fu.findPrevBracketInRange(s.reversedRegex,r,a,l,h);if(e)return this._toFoundBracket(n,e)}d=o}if(n&&s&&d&&l!==h){const e=E.Fu.findPrevBracketInRange(s.reversedRegex,r,a,l,h);if(e)return this._toFoundBracket(n,e)}}return null}findNextBracket(e){const t=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getFirstBracketAfter(t)||null;const i=this.textModel.getLineCount();let s=null,n=null,r=null;for(let o=t.lineNumber;o<=i;o++){const e=this.textModel.tokenization.getLineTokens(o),i=e.getCount(),a=this.textModel.getLineContent(o);let c=0,l=0,h=0;if(o===t.lineNumber){c=e.findTokenIndexAtOffset(t.column-1),l=t.column-1,h=t.column-1;const i=e.getLanguageId(c);s!==i&&(s=i,n=this.languageConfigurationService.getLanguageConfiguration(s).brackets,r=this.languageConfigurationService.getLanguageConfiguration(s).bracketsNew)}let d=!0;for(;c<i;c++){const t=e.getLanguageId(c);if(s!==t){if(r&&n&&d&&l!==h){const e=E.Fu.findNextBracketInRange(n.forwardRegex,o,a,l,h);if(e)return this._toFoundBracket(r,e);d=!1}s=t,n=this.languageConfigurationService.getLanguageConfiguration(s).brackets,r=this.languageConfigurationService.getLanguageConfiguration(s).bracketsNew}const i=!!n&&!(0,C.Yo)(e.getStandardTokenType(c));if(i)d||(l=e.getStartOffset(c)),h=e.getEndOffset(c);else if(r&&n&&d&&l!==h){const e=E.Fu.findNextBracketInRange(n.forwardRegex,o,a,l,h);if(e)return this._toFoundBracket(r,e)}d=i}if(r&&n&&d&&l!==h){const e=E.Fu.findNextBracketInRange(n.forwardRegex,o,a,l,h);if(e)return this._toFoundBracket(r,e)}}return null}findEnclosingBrackets(e,t){const i=this.textModel.validatePosition(e);if(this.canBuildAST){const e=g.Q.fromPositions(i),t=this.getBracketPairsInRange(g.Q.fromPositions(i,i)).findLast((t=>void 0!==t.closingBracketRange&&t.range.strictContainsRange(e)));return t?[t.openingBracketRange,t.closingBracketRange]:null}const s=U(t),n=this.textModel.getLineCount(),r=new Map;let o=[];const a=(e,t)=>{if(!r.has(e)){const i=[];for(let e=0,s=t?t.brackets.length:0;e<s;e++)i[e]=0;r.set(e,i)}o=r.get(e)};let c=0;const l=(e,t,i,n,r)=>{for(;;){if(s&&++c%100===0&&!s())return H.INSTANCE;const a=E.Fu.findNextBracketInRange(e.forwardRegex,t,i,n,r);if(!a)break;const l=i.substring(a.startColumn-1,a.endColumn-1).toLowerCase(),h=e.textIsBracket[l];if(h&&(h.isOpen(l)?o[h.index]++:h.isClose(l)&&o[h.index]--,-1===o[h.index]))return this._matchFoundBracket(a,h,!1,s);n=a.endColumn-1}return null};let h=null,d=null;for(let u=i.lineNumber;u<=n;u++){const e=this.textModel.tokenization.getLineTokens(u),t=e.getCount(),s=this.textModel.getLineContent(u);let n=0,r=0,o=0;if(u===i.lineNumber){n=e.findTokenIndexAtOffset(i.column-1),r=i.column-1,o=i.column-1;const t=e.getLanguageId(n);h!==t&&(h=t,d=this.languageConfigurationService.getLanguageConfiguration(h).brackets,a(h,d))}let c=!0;for(;n<t;n++){const t=e.getLanguageId(n);if(h!==t){if(d&&c&&r!==o){const e=l(d,u,s,r,o);if(e)return B(e);c=!1}h=t,d=this.languageConfigurationService.getLanguageConfiguration(h).brackets,a(h,d)}const i=!!d&&!(0,C.Yo)(e.getStandardTokenType(n));if(i)c||(r=e.getStartOffset(n)),o=e.getEndOffset(n);else if(d&&c&&r!==o){const e=l(d,u,s,r,o);if(e)return B(e)}c=i}if(d&&c&&r!==o){const e=l(d,u,s,r,o);if(e)return B(e)}}return null}_toFoundBracket(e,t){if(!t)return null;let i=this.textModel.getValueInRange(t);i=i.toLowerCase();const s=e.getBracketInfo(i);return s?{range:t,bracketInfo:s}:null}}function U(e){if("undefined"===typeof e)return()=>!0;{const t=Date.now();return()=>Date.now()-t<=e}}class H{static{this.INSTANCE=new H}constructor(){this._searchCanceledBrand=void 0}}function B(e){return e instanceof H?null:e}var W=i(87119),V=i(47612);class z extends a.jG{constructor(e){super(),this.textModel=e,this.colorProvider=new G,this.onDidChangeEmitter=new o.vl,this.onDidChange=this.onDidChangeEmitter.event,this.colorizationOptions=e.getOptions().bracketPairColorizationOptions,this._register(e.bracketPairs.onDidChange((e=>{this.onDidChangeEmitter.fire()})))}handleDidChangeOptions(e){this.colorizationOptions=this.textModel.getOptions().bracketPairColorizationOptions}getDecorationsInRange(e,t,i,s){if(s)return[];if(void 0===t)return[];if(!this.colorizationOptions.enabled)return[];return this.textModel.bracketPairs.getBracketsInRange(e,!0).map((e=>({id:`bracket${e.range.toString()}-${e.nestingLevel}`,options:{description:"BracketPairColorization",inlineClassName:this.colorProvider.getInlineClassName(e,this.colorizationOptions.independentColorPoolPerBracketType)},ownerId:0,range:e.range}))).toArray()}getAllDecorations(e,t){return void 0===e?[]:this.colorizationOptions.enabled?this.getDecorationsInRange(new g.Q(1,1,this.textModel.getLineCount(),1),e,t):[]}}class G{constructor(){this.unexpectedClosingBracketClassName="unexpected-closing-bracket"}getInlineClassName(e,t){return e.isInvalid?this.unexpectedClosingBracketClassName:this.getInlineClassNameOfLevel(t?e.nestingLevelOfEqualBracketType:e.nestingLevel)}getInlineClassNameOfLevel(e){return"bracket-highlighting-"+e%30}}(0,V.zy)(((e,t)=>{const i=[W.sN,W.lQ,W.ss,W.l5,W.sH,W.zp],s=new G;t.addRule(`.monaco-editor .${s.unexpectedClosingBracketClassName} { color: ${e.getColor(W.s7)}; }`);const n=i.map((t=>e.getColor(t))).filter((e=>!!e)).filter((e=>!e.isTransparent()));for(let r=0;r<30;r++){const e=n[r%n.length];t.addRule(`.monaco-editor .${s.getInlineClassNameOfLevel(r)} { color: ${e}; }`)}}));var j=i(26656),K=i(53450);class Y{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}}function q(e,t,i,s,n){let r;for(n.spacesDiff=0,n.looksLikeAlignment=!1,r=0;r<t&&r<s;r++){if(e.charCodeAt(r)!==i.charCodeAt(r))break}let o=0,a=0;for(let u=r;u<t;u++){32===e.charCodeAt(u)?o++:a++}let c=0,l=0;for(let u=r;u<s;u++){32===i.charCodeAt(u)?c++:l++}if(o>0&&a>0)return;if(c>0&&l>0)return;const h=Math.abs(a-l),d=Math.abs(o-c);if(0===h)return n.spacesDiff=d,void(d>0&&0<=c-1&&c-1<e.length&&c<i.length&&32!==i.charCodeAt(c)&&32===e.charCodeAt(c-1)&&44===e.charCodeAt(e.length-1)&&(n.looksLikeAlignment=!0));d%h!==0||(n.spacesDiff=d/h)}function $(e,t,i){const s=Math.min(e.getLineCount(),1e4);let n=0,r=0,o="",a=0;const c=[2,4,6,8,3,5,7],l=[0,0,0,0,0,0,0,0,0],h=new Y;for(let g=1;g<=s;g++){const s=e.getLineLength(g),c=e.getLineContent(g),d=s<=65536;let u=!1,p=0,m=0,f=0;for(let t=0,i=s;t<i;t++){const i=d?c.charCodeAt(t):e.getLineCharCode(g,t);if(9===i)f++;else{if(32!==i){u=!0,p=t;break}m++}}if(!u)continue;if(f>0?n++:m>1&&r++,q(o,a,c,p,h),h.looksLikeAlignment&&(!i||t!==h.spacesDiff))continue;const _=h.spacesDiff;_<=8&&l[_]++,o=c,a=p}let d=i;n!==r&&(d=n<r);let u=t;if(d){let e=d?0:.1*s;c.forEach((t=>{const i=l[t];i>e&&(e=i,u=t)})),4===u&&l[4]>0&&l[2]>0&&l[2]>=l[4]/2&&(u=2)}return{insertSpaces:d,tabSize:u}}function Q(e){return(1&e.metadata)>>>0}function X(e,t){e.metadata=254&e.metadata|t}function Z(e){return(2&e.metadata)>>>1===1}function J(e,t){e.metadata=253&e.metadata|(t?1:0)<<1}function ee(e){return(4&e.metadata)>>>2===1}function te(e,t){e.metadata=251&e.metadata|(t?1:0)<<2}function ie(e){return(64&e.metadata)>>>6===1}function se(e,t){e.metadata=191&e.metadata|(t?1:0)<<6}function ne(e,t){e.metadata=231&e.metadata|t<<3}function re(e,t){e.metadata=223&e.metadata|(t?1:0)<<5}class oe{constructor(e,t,i){this.metadata=0,this.parent=this,this.left=this,this.right=this,X(this,1),this.start=t,this.end=i,this.delta=0,this.maxEnd=i,this.id=e,this.ownerId=0,this.options=null,te(this,!1),se(this,!1),ne(this,1),re(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=i,this.range=null,J(this,!1)}reset(e,t,i,s){this.start=t,this.end=i,this.maxEnd=i,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=i,this.range=s}setOptions(e){this.options=e;const t=this.options.className;te(this,"squiggly-error"===t||"squiggly-warning"===t||"squiggly-info"===t),se(this,null!==this.options.glyphMarginClassName),ne(this,this.options.stickiness),re(this,this.options.collapseOnReplaceEdit)}setCachedOffsets(e,t,i){this.cachedVersionId!==i&&(this.range=null),this.cachedVersionId=i,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t}detach(){this.parent=null,this.left=null,this.right=null}}const ae=new oe(null,0,0);ae.parent=ae,ae.left=ae,ae.right=ae,X(ae,0);class ce{constructor(){this.root=ae,this.requestNormalizeDelta=!1}intervalSearch(e,t,i,s,n,r){return this.root===ae?[]:function(e,t,i,s,n,r,o){let a=e.root,c=0,l=0,h=0,d=0;const u=[];let g=0;for(;a!==ae;)if(Z(a))J(a.left,!1),J(a.right,!1),a===a.parent.right&&(c-=a.parent.delta),a=a.parent;else{if(!Z(a.left)){if(l=c+a.maxEnd,l<t){J(a,!0);continue}if(a.left!==ae){a=a.left;continue}}if(h=c+a.start,h>i)J(a,!0);else{if(d=c+a.end,d>=t){a.setCachedOffsets(h,d,r);let e=!0;s&&a.ownerId&&a.ownerId!==s&&(e=!1),n&&ee(a)&&(e=!1),o&&!ie(a)&&(e=!1),e&&(u[g++]=a)}J(a,!0),a.right===ae||Z(a.right)||(c+=a.delta,a=a.right)}}return J(e.root,!1),u}(this,e,t,i,s,n,r)}search(e,t,i,s){return this.root===ae?[]:function(e,t,i,s,n){let r=e.root,o=0,a=0,c=0;const l=[];let h=0;for(;r!==ae;){if(Z(r)){J(r.left,!1),J(r.right,!1),r===r.parent.right&&(o-=r.parent.delta),r=r.parent;continue}if(r.left!==ae&&!Z(r.left)){r=r.left;continue}a=o+r.start,c=o+r.end,r.setCachedOffsets(a,c,s);let e=!0;t&&r.ownerId&&r.ownerId!==t&&(e=!1),i&&ee(r)&&(e=!1),n&&!ie(r)&&(e=!1),e&&(l[h++]=r),J(r,!0),r.right===ae||Z(r.right)||(o+=r.delta,r=r.right)}return J(e.root,!1),l}(this,e,t,i,s)}collectNodesFromOwner(e){return function(e,t){let i=e.root;const s=[];let n=0;for(;i!==ae;)Z(i)?(J(i.left,!1),J(i.right,!1),i=i.parent):i.left===ae||Z(i.left)?(i.ownerId===t&&(s[n++]=i),J(i,!0),i.right===ae||Z(i.right)||(i=i.right)):i=i.left;return J(e.root,!1),s}(this,e)}collectNodesPostOrder(){return function(e){let t=e.root;const i=[];let s=0;for(;t!==ae;)Z(t)?(J(t.left,!1),J(t.right,!1),t=t.parent):t.left===ae||Z(t.left)?t.right===ae||Z(t.right)?(i[s++]=t,J(t,!0)):t=t.right:t=t.left;return J(e.root,!1),i}(this)}insert(e){de(this,e),this._normalizeDeltaIfNecessary()}delete(e){ue(this,e),this._normalizeDeltaIfNecessary()}resolveNode(e,t){const i=e;let s=0;for(;e!==this.root;)e===e.parent.right&&(s+=e.parent.delta),e=e.parent;const n=i.start+s,r=i.end+s;i.setCachedOffsets(n,r,t)}acceptReplace(e,t,i,s){const n=function(e,t,i){let s=e.root,n=0,r=0,o=0,a=0;const c=[];let l=0;for(;s!==ae;)if(Z(s))J(s.left,!1),J(s.right,!1),s===s.parent.right&&(n-=s.parent.delta),s=s.parent;else{if(!Z(s.left)){if(r=n+s.maxEnd,r<t){J(s,!0);continue}if(s.left!==ae){s=s.left;continue}}o=n+s.start,o>i?J(s,!0):(a=n+s.end,a>=t&&(s.setCachedOffsets(o,a,0),c[l++]=s),J(s,!0),s.right===ae||Z(s.right)||(n+=s.delta,s=s.right))}return J(e.root,!1),c}(this,e,e+t);for(let r=0,o=n.length;r<o;r++){ue(this,n[r])}this._normalizeDeltaIfNecessary(),function(e,t,i,s){let n=e.root,r=0,o=0,a=0;const c=s-(i-t);for(;n!==ae;)if(Z(n))J(n.left,!1),J(n.right,!1),n===n.parent.right&&(r-=n.parent.delta),_e(n),n=n.parent;else{if(!Z(n.left)){if(o=r+n.maxEnd,o<t){J(n,!0);continue}if(n.left!==ae){n=n.left;continue}}a=r+n.start,a>i?(n.start+=c,n.end+=c,n.delta+=c,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),J(n,!0)):(J(n,!0),n.right===ae||Z(n.right)||(r+=n.delta,n=n.right))}J(e.root,!1)}(this,e,e+t,i),this._normalizeDeltaIfNecessary();for(let r=0,o=n.length;r<o;r++){const o=n[r];o.start=o.cachedAbsoluteStart,o.end=o.cachedAbsoluteEnd,he(o,e,e+t,i,s),o.maxEnd=o.end,de(this,o)}this._normalizeDeltaIfNecessary()}_normalizeDeltaIfNecessary(){this.requestNormalizeDelta&&(this.requestNormalizeDelta=!1,function(e){let t=e.root,i=0;for(;t!==ae;)t.left===ae||Z(t.left)?t.right===ae||Z(t.right)?(t.start=i+t.start,t.end=i+t.end,t.delta=0,_e(t),J(t,!0),J(t.left,!1),J(t.right,!1),t===t.parent.right&&(i-=t.parent.delta),t=t.parent):(i+=t.delta,t=t.right):t=t.left;J(e.root,!1)}(this))}}function le(e,t,i,s){return e<i||!(e>i)&&(1!==s&&(2===s||t))}function he(e,t,i,s,n){const r=function(e){return(24&e.metadata)>>>3}(e),o=0===r||2===r,a=1===r||2===r,c=i-t,l=s,h=Math.min(c,l),d=e.start;let u=!1;const g=e.end;let p=!1;t<=d&&g<=i&&function(e){return(32&e.metadata)>>>5===1}(e)&&(e.start=t,u=!0,e.end=t,p=!0);{const e=n?1:c>0?2:0;!u&&le(d,o,t,e)&&(u=!0),!p&&le(g,a,t,e)&&(p=!0)}if(h>0&&!n){const e=c>l?2:0;!u&&le(d,o,t+h,e)&&(u=!0),!p&&le(g,a,t+h,e)&&(p=!0)}{const s=n?1:0;!u&&le(d,o,i,s)&&(e.start=t+l,u=!0),!p&&le(g,a,i,s)&&(e.end=t+l,p=!0)}const m=l-c;u||(e.start=Math.max(0,d+m)),p||(e.end=Math.max(0,g+m)),e.start>e.end&&(e.end=e.start)}function de(e,t){if(e.root===ae)return t.parent=ae,t.left=ae,t.right=ae,X(t,0),e.root=t,e.root;!function(e,t){let i=0,s=e.root;const n=t.start,r=t.end;for(;;){if(Ce(n,r,s.start+i,s.end+i)<0){if(s.left===ae){t.start-=i,t.end-=i,t.maxEnd-=i,s.left=t;break}s=s.left}else{if(s.right===ae){t.start-=i+s.delta,t.end-=i+s.delta,t.maxEnd-=i+s.delta,s.right=t;break}i+=s.delta,s=s.right}}t.parent=s,t.left=ae,t.right=ae,X(t,1)}(e,t),ve(t.parent);let i=t;for(;i!==e.root&&1===Q(i.parent);)if(i.parent===i.parent.parent.left){const t=i.parent.parent.right;1===Q(t)?(X(i.parent,0),X(t,0),X(i.parent.parent,1),i=i.parent.parent):(i===i.parent.right&&(i=i.parent,pe(e,i)),X(i.parent,0),X(i.parent.parent,1),me(e,i.parent.parent))}else{const t=i.parent.parent.left;1===Q(t)?(X(i.parent,0),X(t,0),X(i.parent.parent,1),i=i.parent.parent):(i===i.parent.left&&(i=i.parent,me(e,i)),X(i.parent,0),X(i.parent.parent,1),pe(e,i.parent.parent))}return X(e.root,0),t}function ue(e,t){let i,s;if(t.left===ae?(i=t.right,s=t,i.delta+=t.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0),i.start+=t.delta,i.end+=t.delta):t.right===ae?(i=t.left,s=t):(s=function(e){for(;e.left!==ae;)e=e.left;return e}(t.right),i=s.right,i.start+=s.delta,i.end+=s.delta,i.delta+=s.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0),s.start+=t.delta,s.end+=t.delta,s.delta=t.delta,(s.delta<-1073741824||s.delta>1073741824)&&(e.requestNormalizeDelta=!0)),s===e.root)return e.root=i,X(i,0),t.detach(),ge(),_e(i),void(e.root.parent=ae);const n=1===Q(s);if(s===s.parent.left?s.parent.left=i:s.parent.right=i,s===t?i.parent=s.parent:(s.parent===t?i.parent=s:i.parent=s.parent,s.left=t.left,s.right=t.right,s.parent=t.parent,X(s,Q(t)),t===e.root?e.root=s:t===t.parent.left?t.parent.left=s:t.parent.right=s,s.left!==ae&&(s.left.parent=s),s.right!==ae&&(s.right.parent=s)),t.detach(),n)return ve(i.parent),s!==t&&(ve(s),ve(s.parent)),void ge();let r;for(ve(i),ve(i.parent),s!==t&&(ve(s),ve(s.parent));i!==e.root&&0===Q(i);)i===i.parent.left?(r=i.parent.right,1===Q(r)&&(X(r,0),X(i.parent,1),pe(e,i.parent),r=i.parent.right),0===Q(r.left)&&0===Q(r.right)?(X(r,1),i=i.parent):(0===Q(r.right)&&(X(r.left,0),X(r,1),me(e,r),r=i.parent.right),X(r,Q(i.parent)),X(i.parent,0),X(r.right,0),pe(e,i.parent),i=e.root)):(r=i.parent.left,1===Q(r)&&(X(r,0),X(i.parent,1),me(e,i.parent),r=i.parent.left),0===Q(r.left)&&0===Q(r.right)?(X(r,1),i=i.parent):(0===Q(r.left)&&(X(r.right,0),X(r,1),pe(e,r),r=i.parent.left),X(r,Q(i.parent)),X(i.parent,0),X(r.left,0),me(e,i.parent),i=e.root));X(i,0),ge()}function ge(){ae.parent=ae,ae.delta=0,ae.start=0,ae.end=0}function pe(e,t){const i=t.right;i.delta+=t.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0),i.start+=t.delta,i.end+=t.delta,t.right=i.left,i.left!==ae&&(i.left.parent=t),i.parent=t.parent,t.parent===ae?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left=t,t.parent=i,_e(t),_e(i)}function me(e,t){const i=t.left;t.delta-=i.delta,(t.delta<-1073741824||t.delta>1073741824)&&(e.requestNormalizeDelta=!0),t.start-=i.delta,t.end-=i.delta,t.left=i.right,i.right!==ae&&(i.right.parent=t),i.parent=t.parent,t.parent===ae?e.root=i:t===t.parent.right?t.parent.right=i:t.parent.left=i,i.right=t,t.parent=i,_e(t),_e(i)}function fe(e){let t=e.end;if(e.left!==ae){const i=e.left.maxEnd;i>t&&(t=i)}if(e.right!==ae){const i=e.right.maxEnd+e.delta;i>t&&(t=i)}return t}function _e(e){e.maxEnd=fe(e)}function ve(e){for(;e!==ae;){const t=fe(e);if(e.maxEnd===t)return;e.maxEnd=t,e=e.parent}}function Ce(e,t,i,s){return e===i?t-s:e-i}class Ee{constructor(e,t){this.piece=e,this.color=t,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}next(){if(this.right!==be)return Se(this.right);let e=this;for(;e.parent!==be&&e.parent.left!==e;)e=e.parent;return e.parent===be?be:e.parent}prev(){if(this.left!==be)return ye(this.left);let e=this;for(;e.parent!==be&&e.parent.right!==e;)e=e.parent;return e.parent===be?be:e.parent}detach(){this.parent=null,this.left=null,this.right=null}}const be=new Ee(null,0);function Se(e){for(;e.left!==be;)e=e.left;return e}function ye(e){for(;e.right!==be;)e=e.right;return e}function we(e){return e===be?0:e.size_left+e.piece.length+we(e.right)}function Re(e){return e===be?0:e.lf_left+e.piece.lineFeedCnt+Re(e.right)}function Le(){be.parent=be}function Te(e,t){const i=t.right;i.size_left+=t.size_left+(t.piece?t.piece.length:0),i.lf_left+=t.lf_left+(t.piece?t.piece.lineFeedCnt:0),t.right=i.left,i.left!==be&&(i.left.parent=t),i.parent=t.parent,t.parent===be?e.root=i:t.parent.left===t?t.parent.left=i:t.parent.right=i,i.left=t,t.parent=i}function xe(e,t){const i=t.left;t.left=i.right,i.right!==be&&(i.right.parent=t),i.parent=t.parent,t.size_left-=i.size_left+(i.piece?i.piece.length:0),t.lf_left-=i.lf_left+(i.piece?i.piece.lineFeedCnt:0),t.parent===be?e.root=i:t===t.parent.right?t.parent.right=i:t.parent.left=i,i.right=t,t.parent=i}function ke(e,t){let i,s;if(t.left===be?(s=t,i=s.right):t.right===be?(s=t,i=s.left):(s=Se(t.right),i=s.right),s===e.root)return e.root=i,i.color=0,t.detach(),Le(),void(e.root.parent=be);const n=1===s.color;if(s===s.parent.left?s.parent.left=i:s.parent.right=i,s===t?(i.parent=s.parent,Ie(e,i)):(s.parent===t?i.parent=s:i.parent=s.parent,Ie(e,i),s.left=t.left,s.right=t.right,s.parent=t.parent,s.color=t.color,t===e.root?e.root=s:t===t.parent.left?t.parent.left=s:t.parent.right=s,s.left!==be&&(s.left.parent=s),s.right!==be&&(s.right.parent=s),s.size_left=t.size_left,s.lf_left=t.lf_left,Ie(e,s)),t.detach(),i.parent.left===i){const t=we(i),s=Re(i);if(t!==i.parent.size_left||s!==i.parent.lf_left){const n=t-i.parent.size_left,r=s-i.parent.lf_left;i.parent.size_left=t,i.parent.lf_left=s,Ne(e,i.parent,n,r)}}if(Ie(e,i.parent),n)return void Le();let r;for(;i!==e.root&&0===i.color;)i===i.parent.left?(r=i.parent.right,1===r.color&&(r.color=0,i.parent.color=1,Te(e,i.parent),r=i.parent.right),0===r.left.color&&0===r.right.color?(r.color=1,i=i.parent):(0===r.right.color&&(r.left.color=0,r.color=1,xe(e,r),r=i.parent.right),r.color=i.parent.color,i.parent.color=0,r.right.color=0,Te(e,i.parent),i=e.root)):(r=i.parent.left,1===r.color&&(r.color=0,i.parent.color=1,xe(e,i.parent),r=i.parent.left),0===r.left.color&&0===r.right.color?(r.color=1,i=i.parent):(0===r.left.color&&(r.right.color=0,r.color=1,Te(e,r),r=i.parent.left),r.color=i.parent.color,i.parent.color=0,r.left.color=0,xe(e,i.parent),i=e.root));i.color=0,Le()}function Ae(e,t){for(Ie(e,t);t!==e.root&&1===t.parent.color;)if(t.parent===t.parent.parent.left){const i=t.parent.parent.right;1===i.color?(t.parent.color=0,i.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.right&&Te(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,xe(e,t.parent.parent))}else{const i=t.parent.parent.left;1===i.color?(t.parent.color=0,i.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.left&&xe(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,Te(e,t.parent.parent))}e.root.color=0}function Ne(e,t,i,s){for(;t!==e.root&&t!==be;)t.parent.left===t&&(t.parent.size_left+=i,t.parent.lf_left+=s),t=t.parent}function Ie(e,t){let i=0,s=0;if(t!==e.root){for(;t!==e.root&&t===t.parent.right;)t=t.parent;if(t!==e.root)for(i=we((t=t.parent).left)-t.size_left,s=Re(t.left)-t.lf_left,t.size_left+=i,t.lf_left+=s;t!==e.root&&(0!==i||0!==s);)t.parent.left===t&&(t.parent.size_left+=i,t.parent.lf_left+=s),t=t.parent}}be.parent=be,be.left=be,be.right=be,be.color=0;var Oe=i(43264);const De=65535;function Me(e){let t;return t=e[e.length-1]<65536?new Uint16Array(e.length):new Uint32Array(e.length),t.set(e,0),t}class Pe{constructor(e,t,i,s,n){this.lineStarts=e,this.cr=t,this.lf=i,this.crlf=s,this.isBasicASCII=n}}function Fe(e,t=!0){const i=[0];let s=1;for(let n=0,r=e.length;n<r;n++){const t=e.charCodeAt(n);13===t?n+1<r&&10===e.charCodeAt(n+1)?(i[s++]=n+2,n++):i[s++]=n+1:10===t&&(i[s++]=n+1)}return t?Me(i):i}class Ue{constructor(e,t,i,s,n){this.bufferIndex=e,this.start=t,this.end=i,this.lineFeedCnt=s,this.length=n}}class He{constructor(e,t){this.buffer=e,this.lineStarts=t}}class Be{constructor(e,t){this._pieces=[],this._tree=e,this._BOM=t,this._index=0,e.root!==be&&e.iterate(e.root,(e=>(e!==be&&this._pieces.push(e.piece),!0)))}read(){return 0===this._pieces.length?0===this._index?(this._index++,this._BOM):null:this._index>this._pieces.length-1?null:0===this._index?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])}}class We{constructor(e){this._limit=e,this._cache=[]}get(e){for(let t=this._cache.length-1;t>=0;t--){const i=this._cache[t];if(i.nodeStartOffset<=e&&i.nodeStartOffset+i.node.piece.length>=e)return i}return null}get2(e){for(let t=this._cache.length-1;t>=0;t--){const i=this._cache[t];if(i.nodeStartLineNumber&&i.nodeStartLineNumber<e&&i.nodeStartLineNumber+i.node.piece.lineFeedCnt>=e)return i}return null}set(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)}validate(e){let t=!1;const i=this._cache;for(let s=0;s<i.length;s++){const n=i[s];(null===n.node.parent||n.nodeStartOffset>=e)&&(i[s]=null,t=!0)}if(t){const e=[];for(const t of i)null!==t&&e.push(t);this._cache=e}}}class Ve{constructor(e,t,i){this.create(e,t,i)}create(e,t,i){this._buffers=[new He("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=be,this._lineCnt=1,this._length=0,this._EOL=t,this._EOLLength=t.length,this._EOLNormalized=i;let s=null;for(let n=0,r=e.length;n<r;n++)if(e[n].buffer.length>0){e[n].lineStarts||(e[n].lineStarts=Fe(e[n].buffer));const t=new Ue(n+1,{line:0,column:0},{line:e[n].lineStarts.length-1,column:e[n].buffer.length-e[n].lineStarts[e[n].lineStarts.length-1]},e[n].lineStarts.length-1,e[n].buffer.length);this._buffers.push(e[n]),s=this.rbInsertRight(s,t)}this._searchCache=new We(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()}normalizeEOL(e){const t=De,i=t-Math.floor(21845),s=2*i;let n="",r=0;const o=[];if(this.iterate(this.root,(t=>{const a=this.getNodeContent(t),c=a.length;if(r<=i||r+c<s)return n+=a,r+=c,!0;const l=n.replace(/\r\n|\r|\n/g,e);return o.push(new He(l,Fe(l))),n=a,r=c,!0})),r>0){const t=n.replace(/\r\n|\r|\n/g,e);o.push(new He(t,Fe(t)))}this.create(o,e,!0)}getEOL(){return this._EOL}setEOL(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)}createSnapshot(e){return new Be(this,e)}getOffsetAt(e,t){let i=0,s=this.root;for(;s!==be;)if(s.left!==be&&s.lf_left+1>=e)s=s.left;else{if(s.lf_left+s.piece.lineFeedCnt+1>=e){i+=s.size_left;return i+(this.getAccumulatedValue(s,e-s.lf_left-2)+t-1)}e-=s.lf_left+s.piece.lineFeedCnt,i+=s.size_left+s.piece.length,s=s.right}return i}getPositionAt(e){e=Math.floor(e),e=Math.max(0,e);let t=this.root,i=0;const s=e;for(;t!==be;)if(0!==t.size_left&&t.size_left>=e)t=t.left;else{if(t.size_left+t.piece.length>=e){const n=this.getIndexOf(t,e-t.size_left);if(i+=t.lf_left+n.index,0===n.index){const e=s-this.getOffsetAt(i+1,1);return new u.y(i+1,e+1)}return new u.y(i+1,n.remainder+1)}if(e-=t.size_left+t.piece.length,i+=t.lf_left+t.piece.lineFeedCnt,t.right===be){const t=s-e-this.getOffsetAt(i+1,1);return new u.y(i+1,t+1)}t=t.right}return new u.y(1,1)}getValueInRange(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";const i=this.nodeAt2(e.startLineNumber,e.startColumn),s=this.nodeAt2(e.endLineNumber,e.endColumn),n=this.getValueInRange2(i,s);return t?t===this._EOL&&this._EOLNormalized&&t===this.getEOL()&&this._EOLNormalized?n:n.replace(/\r\n|\r|\n/g,t):n}getValueInRange2(e,t){if(e.node===t.node){const i=e.node,s=this._buffers[i.piece.bufferIndex].buffer,n=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return s.substring(n+e.remainder,n+t.remainder)}let i=e.node;const s=this._buffers[i.piece.bufferIndex].buffer,n=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);let r=s.substring(n+e.remainder,n+i.piece.length);for(i=i.next();i!==be;){const e=this._buffers[i.piece.bufferIndex].buffer,s=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);if(i===t.node){r+=e.substring(s,s+t.remainder);break}r+=e.substr(s,i.piece.length),i=i.next()}return r}getLinesContent(){const e=[];let t=0,i="",s=!1;return this.iterate(this.root,(n=>{if(n===be)return!0;const r=n.piece;let o=r.length;if(0===o)return!0;const a=this._buffers[r.bufferIndex].buffer,c=this._buffers[r.bufferIndex].lineStarts,l=r.start.line,h=r.end.line;let d=c[l]+r.start.column;if(s&&(10===a.charCodeAt(d)&&(d++,o--),e[t++]=i,i="",s=!1,0===o))return!0;if(l===h)return this._EOLNormalized||13!==a.charCodeAt(d+o-1)?i+=a.substr(d,o):(s=!0,i+=a.substr(d,o-1)),!0;i+=this._EOLNormalized?a.substring(d,Math.max(d,c[l+1]-this._EOLLength)):a.substring(d,c[l+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=i;for(let s=l+1;s<h;s++)i=this._EOLNormalized?a.substring(c[s],c[s+1]-this._EOLLength):a.substring(c[s],c[s+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=i;return this._EOLNormalized||13!==a.charCodeAt(c[h]+r.end.column-1)?i=a.substr(c[h],r.end.column):(s=!0,0===r.end.column?t--:i=a.substr(c[h],r.end.column-1)),!0})),s&&(e[t++]=i,i=""),e[t++]=i,e}getLength(){return this._length}getLineCount(){return this._lineCnt}getLineContent(e){return this._lastVisitedLine.lineNumber===e||(this._lastVisitedLine.lineNumber=e,e===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(e):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(e,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(e).replace(/(\r\n|\r|\n)$/,"")),this._lastVisitedLine.value}_getCharCode(e){if(e.remainder===e.node.piece.length){const t=e.node.next();if(!t)return 0;const i=this._buffers[t.piece.bufferIndex],s=this.offsetInBuffer(t.piece.bufferIndex,t.piece.start);return i.buffer.charCodeAt(s)}{const t=this._buffers[e.node.piece.bufferIndex],i=this.offsetInBuffer(e.node.piece.bufferIndex,e.node.piece.start)+e.remainder;return t.buffer.charCodeAt(i)}}getLineCharCode(e,t){const i=this.nodeAt2(e,t+1);return this._getCharCode(i)}getLineLength(e){if(e===this.getLineCount()){const t=this.getOffsetAt(e,1);return this.getLength()-t}return this.getOffsetAt(e+1,1)-this.getOffsetAt(e,1)-this._EOLLength}findMatchesInNode(e,t,i,s,n,r,o,a,c,l,h){const d=this._buffers[e.piece.bufferIndex],u=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start),p=this.offsetInBuffer(e.piece.bufferIndex,n),m=this.offsetInBuffer(e.piece.bufferIndex,r);let f;const _={line:0,column:0};let v,C;t._wordSeparators?(v=d.buffer.substring(p,m),C=e=>e+p,t.reset(0)):(v=d.buffer,C=e=>e,t.reset(p));do{if(f=t.next(v),f){if(C(f.index)>=m)return l;this.positionInBuffer(e,C(f.index)-u,_);const t=this.getLineFeedCnt(e.piece.bufferIndex,n,_),r=_.line===n.line?_.column-n.column+s:_.column+1,o=r+f[0].length;if(h[l++]=(0,Oe.dr)(new g.Q(i+t,r,i+t,o),f,a),C(f.index)+f[0].length>=m)return l;if(l>=c)return l}}while(f);return l}findMatchesLineByLine(e,t,i,s){const n=[];let r=0;const o=new Oe.W5(t.wordSeparators,t.regex);let a=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===a)return[];const c=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===c)return[];let l=this.positionInBuffer(a.node,a.remainder);const h=this.positionInBuffer(c.node,c.remainder);if(a.node===c.node)return this.findMatchesInNode(a.node,o,e.startLineNumber,e.startColumn,l,h,t,i,s,r,n),n;let d=e.startLineNumber,u=a.node;for(;u!==c.node;){const c=this.getLineFeedCnt(u.piece.bufferIndex,l,u.piece.end);if(c>=1){const a=this._buffers[u.piece.bufferIndex].lineStarts,h=this.offsetInBuffer(u.piece.bufferIndex,u.piece.start),g=a[l.line+c],p=d===e.startLineNumber?e.startColumn:1;if(r=this.findMatchesInNode(u,o,d,p,l,this.positionInBuffer(u,g-h),t,i,s,r,n),r>=s)return n;d+=c}const h=d===e.startLineNumber?e.startColumn-1:0;if(d===e.endLineNumber){const a=this.getLineContent(d).substring(h,e.endColumn-1);return r=this._findMatchesInLine(t,o,a,e.endLineNumber,h,r,n,i,s),n}if(r=this._findMatchesInLine(t,o,this.getLineContent(d).substr(h),d,h,r,n,i,s),r>=s)return n;d++,a=this.nodeAt2(d,1),u=a.node,l=this.positionInBuffer(a.node,a.remainder)}if(d===e.endLineNumber){const a=d===e.startLineNumber?e.startColumn-1:0,c=this.getLineContent(d).substring(a,e.endColumn-1);return r=this._findMatchesInLine(t,o,c,e.endLineNumber,a,r,n,i,s),n}const g=d===e.startLineNumber?e.startColumn:1;return r=this.findMatchesInNode(c.node,o,d,g,l,h,t,i,s,r,n),n}_findMatchesInLine(e,t,i,s,n,r,o,a,c){const l=e.wordSeparators;if(!a&&e.simpleSearch){const t=e.simpleSearch,a=t.length,h=i.length;let d=-a;for(;-1!==(d=i.indexOf(t,d+a));)if((!l||(0,Oe.wC)(l,i,h,d,a))&&(o[r++]=new v.Dg(new g.Q(s,d+1+n,s,d+1+a+n),null),r>=c))return r;return r}let h;t.reset(0);do{if(h=t.next(i),h&&(o[r++]=(0,Oe.dr)(new g.Q(s,h.index+1+n,s,h.index+1+h[0].length+n),h,a),r>=c))return r}while(h);return r}insert(e,t,i=!1){if(this._EOLNormalized=this._EOLNormalized&&i,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==be){const{node:i,remainder:s,nodeStartOffset:n}=this.nodeAt(e),r=i.piece,o=r.bufferIndex,a=this.positionInBuffer(i,s);if(0===i.piece.bufferIndex&&r.end.line===this._lastChangeBufferPos.line&&r.end.column===this._lastChangeBufferPos.column&&n+r.length===e&&t.length<De)return this.appendToNode(i,t),void this.computeBufferMetadata();if(n===e)this.insertContentToNodeLeft(t,i),this._searchCache.validate(e);else if(n+i.piece.length>e){const e=[];let n=new Ue(r.bufferIndex,a,r.end,this.getLineFeedCnt(r.bufferIndex,a,r.end),this.offsetInBuffer(o,r.end)-this.offsetInBuffer(o,a));if(this.shouldCheckCRLF()&&this.endWithCR(t)){if(10===this.nodeCharCodeAt(i,s)){const e={line:n.start.line+1,column:0};n=new Ue(n.bufferIndex,e,n.end,this.getLineFeedCnt(n.bufferIndex,e,n.end),n.length-1),t+="\n"}}if(this.shouldCheckCRLF()&&this.startWithLF(t)){if(13===this.nodeCharCodeAt(i,s-1)){const n=this.positionInBuffer(i,s-1);this.deleteNodeTail(i,n),t="\r"+t,0===i.piece.length&&e.push(i)}else this.deleteNodeTail(i,a)}else this.deleteNodeTail(i,a);const c=this.createNewPieces(t);n.length>0&&this.rbInsertRight(i,n);let l=i;for(let t=0;t<c.length;t++)l=this.rbInsertRight(l,c[t]);this.deleteNodes(e)}else this.insertContentToNodeRight(t,i)}else{const e=this.createNewPieces(t);let i=this.rbInsertLeft(null,e[0]);for(let t=1;t<e.length;t++)i=this.rbInsertRight(i,e[t])}this.computeBufferMetadata()}delete(e,t){if(this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",t<=0||this.root===be)return;const i=this.nodeAt(e),s=this.nodeAt(e+t),n=i.node,r=s.node;if(n===r){const r=this.positionInBuffer(n,i.remainder),o=this.positionInBuffer(n,s.remainder);if(i.nodeStartOffset===e){if(t===n.piece.length){const e=n.next();return ke(this,n),this.validateCRLFWithPrevNode(e),void this.computeBufferMetadata()}return this.deleteNodeHead(n,o),this._searchCache.validate(e),this.validateCRLFWithPrevNode(n),void this.computeBufferMetadata()}return i.nodeStartOffset+n.piece.length===e+t?(this.deleteNodeTail(n,r),this.validateCRLFWithNextNode(n),void this.computeBufferMetadata()):(this.shrinkNode(n,r,o),void this.computeBufferMetadata())}const o=[],a=this.positionInBuffer(n,i.remainder);this.deleteNodeTail(n,a),this._searchCache.validate(e),0===n.piece.length&&o.push(n);const c=this.positionInBuffer(r,s.remainder);this.deleteNodeHead(r,c),0===r.piece.length&&o.push(r);for(let h=n.next();h!==be&&h!==r;h=h.next())o.push(h);const l=0===n.piece.length?n.prev():n;this.deleteNodes(o),this.validateCRLFWithNextNode(l),this.computeBufferMetadata()}insertContentToNodeLeft(e,t){const i=[];if(this.shouldCheckCRLF()&&this.endWithCR(e)&&this.startWithLF(t)){const s=t.piece,n={line:s.start.line+1,column:0},r=new Ue(s.bufferIndex,n,s.end,this.getLineFeedCnt(s.bufferIndex,n,s.end),s.length-1);t.piece=r,e+="\n",Ne(this,t,-1,-1),0===t.piece.length&&i.push(t)}const s=this.createNewPieces(e);let n=this.rbInsertLeft(t,s[s.length-1]);for(let r=s.length-2;r>=0;r--)n=this.rbInsertLeft(n,s[r]);this.validateCRLFWithPrevNode(n),this.deleteNodes(i)}insertContentToNodeRight(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+="\n");const i=this.createNewPieces(e),s=this.rbInsertRight(t,i[0]);let n=s;for(let r=1;r<i.length;r++)n=this.rbInsertRight(n,i[r]);this.validateCRLFWithPrevNode(s)}positionInBuffer(e,t,i){const s=e.piece,n=e.piece.bufferIndex,r=this._buffers[n].lineStarts,o=r[s.start.line]+s.start.column+t;let a=s.start.line,c=s.end.line,l=0,h=0,d=0;for(;a<=c&&(l=a+(c-a)/2|0,d=r[l],l!==c);)if(h=r[l+1],o<d)c=l-1;else{if(!(o>=h))break;a=l+1}return i?(i.line=l,i.column=o-d,null):{line:l,column:o-d}}getLineFeedCnt(e,t,i){if(0===i.column)return i.line-t.line;const s=this._buffers[e].lineStarts;if(i.line===s.length-1)return i.line-t.line;const n=s[i.line+1],r=s[i.line]+i.column;if(n>r+1)return i.line-t.line;const o=r-1;return 13===this._buffers[e].buffer.charCodeAt(o)?i.line-t.line+1:i.line-t.line}offsetInBuffer(e,t){return this._buffers[e].lineStarts[t.line]+t.column}deleteNodes(e){for(let t=0;t<e.length;t++)ke(this,e[t])}createNewPieces(e){if(e.length>De){const t=[];for(;e.length>De;){const i=e.charCodeAt(65534);let s;13===i||i>=55296&&i<=56319?(s=e.substring(0,65534),e=e.substring(65534)):(s=e.substring(0,De),e=e.substring(De));const n=Fe(s);t.push(new Ue(this._buffers.length,{line:0,column:0},{line:n.length-1,column:s.length-n[n.length-1]},n.length-1,s.length)),this._buffers.push(new He(s,n))}const i=Fe(e);return t.push(new Ue(this._buffers.length,{line:0,column:0},{line:i.length-1,column:e.length-i[i.length-1]},i.length-1,e.length)),this._buffers.push(new He(e,i)),t}let t=this._buffers[0].buffer.length;const i=Fe(e,!1);let s=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===t&&0!==t&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},s=this._lastChangeBufferPos;for(let e=0;e<i.length;e++)i[e]+=t+1;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(i.slice(1)),this._buffers[0].buffer+="_"+e,t+=1}else{if(0!==t)for(let e=0;e<i.length;e++)i[e]+=t;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(i.slice(1)),this._buffers[0].buffer+=e}const n=this._buffers[0].buffer.length,r=this._buffers[0].lineStarts.length-1,o={line:r,column:n-this._buffers[0].lineStarts[r]},a=new Ue(0,s,o,this.getLineFeedCnt(0,s,o),n-t);return this._lastChangeBufferPos=o,[a]}getLineRawContent(e,t=0){let i=this.root,s="";const n=this._searchCache.get2(e);if(n){i=n.node;const r=this.getAccumulatedValue(i,e-n.nodeStartLineNumber-1),o=this._buffers[i.piece.bufferIndex].buffer,a=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);if(n.nodeStartLineNumber+i.piece.lineFeedCnt!==e){const s=this.getAccumulatedValue(i,e-n.nodeStartLineNumber);return o.substring(a+r,a+s-t)}s=o.substring(a+r,a+i.piece.length)}else{let n=0;const r=e;for(;i!==be;)if(i.left!==be&&i.lf_left>=e-1)i=i.left;else{if(i.lf_left+i.piece.lineFeedCnt>e-1){const s=this.getAccumulatedValue(i,e-i.lf_left-2),o=this.getAccumulatedValue(i,e-i.lf_left-1),a=this._buffers[i.piece.bufferIndex].buffer,c=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return n+=i.size_left,this._searchCache.set({node:i,nodeStartOffset:n,nodeStartLineNumber:r-(e-1-i.lf_left)}),a.substring(c+s,c+o-t)}if(i.lf_left+i.piece.lineFeedCnt===e-1){const t=this.getAccumulatedValue(i,e-i.lf_left-2),n=this._buffers[i.piece.bufferIndex].buffer,r=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);s=n.substring(r+t,r+i.piece.length);break}e-=i.lf_left+i.piece.lineFeedCnt,n+=i.size_left+i.piece.length,i=i.right}}for(i=i.next();i!==be;){const e=this._buffers[i.piece.bufferIndex].buffer;if(i.piece.lineFeedCnt>0){const n=this.getAccumulatedValue(i,0),r=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return s+=e.substring(r,r+n-t),s}{const t=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);s+=e.substr(t,i.piece.length)}i=i.next()}return s}computeBufferMetadata(){let e=this.root,t=1,i=0;for(;e!==be;)t+=e.lf_left+e.piece.lineFeedCnt,i+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=i,this._searchCache.validate(this._length)}getIndexOf(e,t){const i=e.piece,s=this.positionInBuffer(e,t),n=s.line-i.start.line;if(this.offsetInBuffer(i.bufferIndex,i.end)-this.offsetInBuffer(i.bufferIndex,i.start)===t){const t=this.getLineFeedCnt(e.piece.bufferIndex,i.start,s);if(t!==n)return{index:t,remainder:0}}return{index:n,remainder:s.column}}getAccumulatedValue(e,t){if(t<0)return 0;const i=e.piece,s=this._buffers[i.bufferIndex].lineStarts,n=i.start.line+t+1;return n>i.end.line?s[i.end.line]+i.end.column-s[i.start.line]-i.start.column:s[n]-s[i.start.line]-i.start.column}deleteNodeTail(e,t){const i=e.piece,s=i.lineFeedCnt,n=this.offsetInBuffer(i.bufferIndex,i.end),r=t,o=this.offsetInBuffer(i.bufferIndex,r),a=this.getLineFeedCnt(i.bufferIndex,i.start,r),c=a-s,l=o-n,h=i.length+l;e.piece=new Ue(i.bufferIndex,i.start,r,a,h),Ne(this,e,l,c)}deleteNodeHead(e,t){const i=e.piece,s=i.lineFeedCnt,n=this.offsetInBuffer(i.bufferIndex,i.start),r=t,o=this.getLineFeedCnt(i.bufferIndex,r,i.end),a=o-s,c=n-this.offsetInBuffer(i.bufferIndex,r),l=i.length+c;e.piece=new Ue(i.bufferIndex,r,i.end,o,l),Ne(this,e,c,a)}shrinkNode(e,t,i){const s=e.piece,n=s.start,r=s.end,o=s.length,a=s.lineFeedCnt,c=t,l=this.getLineFeedCnt(s.bufferIndex,s.start,c),h=this.offsetInBuffer(s.bufferIndex,t)-this.offsetInBuffer(s.bufferIndex,n);e.piece=new Ue(s.bufferIndex,s.start,c,l,h),Ne(this,e,h-o,l-a);const d=new Ue(s.bufferIndex,i,r,this.getLineFeedCnt(s.bufferIndex,i,r),this.offsetInBuffer(s.bufferIndex,r)-this.offsetInBuffer(s.bufferIndex,i)),u=this.rbInsertRight(e,d);this.validateCRLFWithPrevNode(u)}appendToNode(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+="\n");const i=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),s=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;const n=Fe(t,!1);for(let d=0;d<n.length;d++)n[d]+=s;if(i){const e=this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-2];this._buffers[0].lineStarts.pop(),this._lastChangeBufferPos={line:this._lastChangeBufferPos.line-1,column:s-e}}this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(n.slice(1));const r=this._buffers[0].lineStarts.length-1,o={line:r,column:this._buffers[0].buffer.length-this._buffers[0].lineStarts[r]},a=e.piece.length+t.length,c=e.piece.lineFeedCnt,l=this.getLineFeedCnt(0,e.piece.start,o),h=l-c;e.piece=new Ue(e.piece.bufferIndex,e.piece.start,o,l,a),this._lastChangeBufferPos=o,Ne(this,e,t.length,h)}nodeAt(e){let t=this.root;const i=this._searchCache.get(e);if(i)return{node:i.node,nodeStartOffset:i.nodeStartOffset,remainder:e-i.nodeStartOffset};let s=0;for(;t!==be;)if(t.size_left>e)t=t.left;else{if(t.size_left+t.piece.length>=e){s+=t.size_left;const i={node:t,remainder:e-t.size_left,nodeStartOffset:s};return this._searchCache.set(i),i}e-=t.size_left+t.piece.length,s+=t.size_left+t.piece.length,t=t.right}return null}nodeAt2(e,t){let i=this.root,s=0;for(;i!==be;)if(i.left!==be&&i.lf_left>=e-1)i=i.left;else{if(i.lf_left+i.piece.lineFeedCnt>e-1){const n=this.getAccumulatedValue(i,e-i.lf_left-2),r=this.getAccumulatedValue(i,e-i.lf_left-1);return s+=i.size_left,{node:i,remainder:Math.min(n+t-1,r),nodeStartOffset:s}}if(i.lf_left+i.piece.lineFeedCnt===e-1){const n=this.getAccumulatedValue(i,e-i.lf_left-2);if(n+t-1<=i.piece.length)return{node:i,remainder:n+t-1,nodeStartOffset:s};t-=i.piece.length-n;break}e-=i.lf_left+i.piece.lineFeedCnt,s+=i.size_left+i.piece.length,i=i.right}for(i=i.next();i!==be;){if(i.piece.lineFeedCnt>0){const e=this.getAccumulatedValue(i,0),s=this.offsetOfNode(i);return{node:i,remainder:Math.min(t-1,e),nodeStartOffset:s}}if(i.piece.length>=t-1){return{node:i,remainder:t-1,nodeStartOffset:this.offsetOfNode(i)}}t-=i.piece.length,i=i.next()}return null}nodeCharCodeAt(e,t){if(e.piece.lineFeedCnt<1)return-1;const i=this._buffers[e.piece.bufferIndex],s=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return i.buffer.charCodeAt(s)}offsetOfNode(e){if(!e)return 0;let t=e.size_left;for(;e!==this.root;)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t}shouldCheckCRLF(){return!(this._EOLNormalized&&"\n"===this._EOL)}startWithLF(e){if("string"===typeof e)return 10===e.charCodeAt(0);if(e===be||0===e.piece.lineFeedCnt)return!1;const t=e.piece,i=this._buffers[t.bufferIndex].lineStarts,s=t.start.line,n=i[s]+t.start.column;if(s===i.length-1)return!1;return!(i[s+1]>n+1)&&10===this._buffers[t.bufferIndex].buffer.charCodeAt(n)}endWithCR(e){return"string"===typeof e?13===e.charCodeAt(e.length-1):e!==be&&0!==e.piece.lineFeedCnt&&13===this.nodeCharCodeAt(e,e.piece.length-1)}validateCRLFWithPrevNode(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){const t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}}validateCRLFWithNextNode(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}}fixCRLF(e,t){const i=[],s=this._buffers[e.piece.bufferIndex].lineStarts;let n;n=0===e.piece.end.column?{line:e.piece.end.line-1,column:s[e.piece.end.line]-s[e.piece.end.line-1]-1}:{line:e.piece.end.line,column:e.piece.end.column-1};const r=e.piece.length-1,o=e.piece.lineFeedCnt-1;e.piece=new Ue(e.piece.bufferIndex,e.piece.start,n,o,r),Ne(this,e,-1,-1),0===e.piece.length&&i.push(e);const a={line:t.piece.start.line+1,column:0},c=t.piece.length-1,l=this.getLineFeedCnt(t.piece.bufferIndex,a,t.piece.end);t.piece=new Ue(t.piece.bufferIndex,a,t.piece.end,l,c),Ne(this,t,-1,-1),0===t.piece.length&&i.push(t);const h=this.createNewPieces("\r\n");this.rbInsertRight(e,h[0]);for(let d=0;d<i.length;d++)ke(this,i[d])}adjustCarriageReturnFromNext(e,t){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const i=t.next();if(this.startWithLF(i)){if(e+="\n",1===i.piece.length)ke(this,i);else{const e=i.piece,t={line:e.start.line+1,column:0},s=e.length-1,n=this.getLineFeedCnt(e.bufferIndex,t,e.end);i.piece=new Ue(e.bufferIndex,t,e.end,n,s),Ne(this,i,-1,-1)}return!0}}return!1}iterate(e,t){if(e===be)return t(be);const i=this.iterate(e.left,t);return i?t(e)&&this.iterate(e.right,t):i}getNodeContent(e){if(e===be)return"";const t=this._buffers[e.piece.bufferIndex],i=e.piece,s=this.offsetInBuffer(i.bufferIndex,i.start),n=this.offsetInBuffer(i.bufferIndex,i.end);return t.buffer.substring(s,n)}getPieceContent(e){const t=this._buffers[e.bufferIndex],i=this.offsetInBuffer(e.bufferIndex,e.start),s=this.offsetInBuffer(e.bufferIndex,e.end);return t.buffer.substring(i,s)}rbInsertRight(e,t){const i=new Ee(t,1);i.left=be,i.right=be,i.parent=be,i.size_left=0,i.lf_left=0;if(this.root===be)this.root=i,i.color=0;else if(e.right===be)e.right=i,i.parent=e;else{const t=Se(e.right);t.left=i,i.parent=t}return Ae(this,i),i}rbInsertLeft(e,t){const i=new Ee(t,1);if(i.left=be,i.right=be,i.parent=be,i.size_left=0,i.lf_left=0,this.root===be)this.root=i,i.color=0;else if(e.left===be)e.left=i,i.parent=e;else{const t=ye(e.left);t.right=i,i.parent=t}return Ae(this,i),i}}var ze=i(64829);class Ge extends a.jG{constructor(e,t,i,s,n,r,a){super(),this._onDidChangeContent=this._register(new o.vl),this._BOM=t,this._mightContainNonBasicASCII=!r,this._mightContainRTL=s,this._mightContainUnusualLineTerminators=n,this._pieceTree=new Ve(e,i,a)}mightContainRTL(){return this._mightContainRTL}mightContainUnusualLineTerminators(){return this._mightContainUnusualLineTerminators}resetMightContainUnusualLineTerminators(){this._mightContainUnusualLineTerminators=!1}mightContainNonBasicASCII(){return this._mightContainNonBasicASCII}getBOM(){return this._BOM}getEOL(){return this._pieceTree.getEOL()}createSnapshot(e){return this._pieceTree.createSnapshot(e?this._BOM:"")}getOffsetAt(e,t){return this._pieceTree.getOffsetAt(e,t)}getPositionAt(e){return this._pieceTree.getPositionAt(e)}getRangeAt(e,t){const i=e+t,s=this.getPositionAt(e),n=this.getPositionAt(i);return new g.Q(s.lineNumber,s.column,n.lineNumber,n.column)}getValueInRange(e,t=0){if(e.isEmpty())return"";const i=this._getEndOfLine(t);return this._pieceTree.getValueInRange(e,i)}getValueLengthInRange(e,t=0){if(e.isEmpty())return 0;if(e.startLineNumber===e.endLineNumber)return e.endColumn-e.startColumn;const i=this.getOffsetAt(e.startLineNumber,e.startColumn),s=this.getOffsetAt(e.endLineNumber,e.endColumn);let n=0;const r=this._getEndOfLine(t),o=this.getEOL();if(r.length!==o.length){n=(r.length-o.length)*(e.endLineNumber-e.startLineNumber)}return s-i+n}getCharacterCountInRange(e,t=0){if(this._mightContainNonBasicASCII){let i=0;const s=e.startLineNumber,n=e.endLineNumber;for(let t=s;t<=n;t++){const r=this.getLineContent(t),o=t===s?e.startColumn-1:0,a=t===n?e.endColumn-1:r.length;for(let e=o;e<a;e++)c.pc(r.charCodeAt(e))?(i+=1,e+=1):i+=1}return i+=this._getEndOfLine(t).length*(n-s),i}return this.getValueLengthInRange(e,t)}getLength(){return this._pieceTree.getLength()}getLineCount(){return this._pieceTree.getLineCount()}getLinesContent(){return this._pieceTree.getLinesContent()}getLineContent(e){return this._pieceTree.getLineContent(e)}getLineCharCode(e,t){return this._pieceTree.getLineCharCode(e,t)}getLineLength(e){return this._pieceTree.getLineLength(e)}getLineFirstNonWhitespaceColumn(e){const t=c.HG(this.getLineContent(e));return-1===t?0:t+1}getLineLastNonWhitespaceColumn(e){const t=c.lT(this.getLineContent(e));return-1===t?0:t+2}_getEndOfLine(e){switch(e){case 1:return"\n";case 2:return"\r\n";case 0:return this.getEOL();default:throw new Error("Unknown EOL preference")}}setEOL(e){this._pieceTree.setEOL(e)}applyEdits(e,t,i){let s=this._mightContainRTL,n=this._mightContainUnusualLineTerminators,r=this._mightContainNonBasicASCII,o=!0,a=[];for(let f=0;f<e.length;f++){const t=e[f];o&&t._isTracked&&(o=!1);const i=t.range;if(t.text){let e=!0;r||(e=!c.aC(t.text),r=e),!s&&e&&(s=c.E_(t.text)),!n&&e&&(n=c.$X(t.text))}let l="",d=0,u=0,g=0;if(t.text){let e;[d,u,g,e]=(0,h.W)(t.text);const i=this.getEOL();l=0===e||e===("\r\n"===i?2:1)?t.text:t.text.replace(/\r\n|\r|\n/g,i)}a[f]={sortIndex:f,identifier:t.identifier||null,range:i,rangeOffset:this.getOffsetAt(i.startLineNumber,i.startColumn),rangeLength:this.getValueLengthInRange(i),text:l,eolCount:d,firstLineLength:u,lastLineLength:g,forceMoveMarkers:Boolean(t.forceMoveMarkers),isAutoWhitespaceEdit:t.isAutoWhitespaceEdit||!1}}a.sort(Ge._sortOpsAscending);let l=!1;for(let c=0,h=a.length-1;c<h;c++){const e=a[c].range.getEndPosition(),t=a[c+1].range.getStartPosition();if(t.isBeforeOrEqual(e)){if(t.isBefore(e))throw new Error("Overlapping ranges are not allowed!");l=!0}}o&&(a=this._reduceOperations(a));const d=i||t?Ge._getInverseEditRanges(a):[],u=[];if(t)for(let h=0;h<a.length;h++){const e=a[h],t=d[h];if(e.isAutoWhitespaceEdit&&e.range.isEmpty())for(let i=t.startLineNumber;i<=t.endLineNumber;i++){let s="";i===t.startLineNumber&&(s=this.getLineContent(e.range.startLineNumber),-1!==c.HG(s))||u.push({lineNumber:i,oldContent:s})}}let g=null;if(i){let e=0;g=[];for(let t=0;t<a.length;t++){const i=a[t],s=d[t],n=this.getValueInRange(i.range),r=i.rangeOffset+e;e+=i.text.length-n.length,g[t]={sortIndex:i.sortIndex,identifier:i.identifier,range:s,text:n,textChange:new ze.k(i.rangeOffset,n,r,i.text)}}l||g.sort(((e,t)=>e.sortIndex-t.sortIndex))}this._mightContainRTL=s,this._mightContainUnusualLineTerminators=n,this._mightContainNonBasicASCII=r;const p=this._doApplyEdits(a);let m=null;if(t&&u.length>0){u.sort(((e,t)=>t.lineNumber-e.lineNumber)),m=[];for(let e=0,t=u.length;e<t;e++){const t=u[e].lineNumber;if(e>0&&u[e-1].lineNumber===t)continue;const i=u[e].oldContent,s=this.getLineContent(t);0!==s.length&&s!==i&&-1===c.HG(s)&&m.push(t)}}return this._onDidChangeContent.fire(),new v.F4(g,p,m)}_reduceOperations(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]}_toSingleEditOperation(e){let t=!1;const i=e[0].range,s=e[e.length-1].range,n=new g.Q(i.startLineNumber,i.startColumn,s.endLineNumber,s.endColumn);let r=i.startLineNumber,o=i.startColumn;const a=[];for(let h=0,p=e.length;h<p;h++){const i=e[h],s=i.range;t=t||i.forceMoveMarkers,a.push(this.getValueInRange(new g.Q(r,o,s.startLineNumber,s.startColumn))),i.text.length>0&&a.push(i.text),r=s.endLineNumber,o=s.endColumn}const c=a.join(""),[l,d,u]=(0,h.W)(c);return{sortIndex:0,identifier:e[0].identifier,range:n,rangeOffset:this.getOffsetAt(n.startLineNumber,n.startColumn),rangeLength:this.getValueLengthInRange(n,0),text:c,eolCount:l,firstLineLength:d,lastLineLength:u,forceMoveMarkers:t,isAutoWhitespaceEdit:!1}}_doApplyEdits(e){e.sort(Ge._sortOpsDescending);const t=[];for(let i=0;i<e.length;i++){const s=e[i],n=s.range.startLineNumber,r=s.range.startColumn,o=s.range.endLineNumber,a=s.range.endColumn;if(n===o&&r===a&&0===s.text.length)continue;s.text?(this._pieceTree.delete(s.rangeOffset,s.rangeLength),this._pieceTree.insert(s.rangeOffset,s.text,!0)):this._pieceTree.delete(s.rangeOffset,s.rangeLength);const c=new g.Q(n,r,o,a);t.push({range:c,rangeLength:s.rangeLength,text:s.text,rangeOffset:s.rangeOffset,forceMoveMarkers:s.forceMoveMarkers})}return t}findMatchesLineByLine(e,t,i,s){return this._pieceTree.findMatchesLineByLine(e,t,i,s)}static _getInverseEditRanges(e){const t=[];let i=0,s=0,n=null;for(let r=0,o=e.length;r<o;r++){const o=e[r];let a,c,l;if(n?n.range.endLineNumber===o.range.startLineNumber?(a=i,c=s+(o.range.startColumn-n.range.endColumn)):(a=i+(o.range.startLineNumber-n.range.endLineNumber),c=o.range.startColumn):(a=o.range.startLineNumber,c=o.range.startColumn),o.text.length>0){const e=o.eolCount+1;l=1===e?new g.Q(a,c,a,c+o.firstLineLength):new g.Q(a,c,a+e-1,o.lastLineLength+1)}else l=new g.Q(a,c,a,c);i=l.endLineNumber,s=l.endColumn,t.push(l),n=o}return t}static _sortOpsAscending(e,t){const i=g.Q.compareRangesUsingEnds(e.range,t.range);return 0===i?e.sortIndex-t.sortIndex:i}static _sortOpsDescending(e,t){const i=g.Q.compareRangesUsingEnds(e.range,t.range);return 0===i?t.sortIndex-e.sortIndex:-i}}class je{constructor(e,t,i,s,n,r,o,a,c){this._chunks=e,this._bom=t,this._cr=i,this._lf=s,this._crlf=n,this._containsRTL=r,this._containsUnusualLineTerminators=o,this._isBasicASCII=a,this._normalizeEOL=c}_getEOL(e){const t=this._cr+this._lf+this._crlf,i=this._cr+this._crlf;return 0===t?1===e?"\n":"\r\n":i>t/2?"\r\n":"\n"}create(e){const t=this._getEOL(e),i=this._chunks;if(this._normalizeEOL&&("\r\n"===t&&(this._cr>0||this._lf>0)||"\n"===t&&(this._cr>0||this._crlf>0)))for(let n=0,r=i.length;n<r;n++){const e=i[n].buffer.replace(/\r\n|\r|\n/g,t),s=Fe(e);i[n]=new He(e,s)}const s=new Ge(i,this._bom,t,this._containsRTL,this._containsUnusualLineTerminators,this._isBasicASCII,this._normalizeEOL);return{textBuffer:s,disposable:s}}}class Ke{constructor(){this.chunks=[],this.BOM="",this._hasPreviousChar=!1,this._previousChar=0,this._tmpLineStarts=[],this.cr=0,this.lf=0,this.crlf=0,this.containsRTL=!1,this.containsUnusualLineTerminators=!1,this.isBasicASCII=!0}acceptChunk(e){if(0===e.length)return;0===this.chunks.length&&c.LU(e)&&(this.BOM=c.r_,e=e.substr(1));const t=e.charCodeAt(e.length-1);13===t||t>=55296&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0,this._previousChar=t):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1,this._previousChar=t)}_acceptChunk1(e,t){(t||0!==e.length)&&(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))}_acceptChunk2(e){const t=function(e,t){e.length=0,e[0]=0;let i=1,s=0,n=0,r=0,o=!0;for(let c=0,l=t.length;c<l;c++){const a=t.charCodeAt(c);13===a?c+1<l&&10===t.charCodeAt(c+1)?(r++,e[i++]=c+2,c++):(s++,e[i++]=c+1):10===a?(n++,e[i++]=c+1):o&&9!==a&&(a<32||a>126)&&(o=!1)}const a=new Pe(Me(e),s,n,r,o);return e.length=0,a}(this._tmpLineStarts,e);this.chunks.push(new He(e,t.lineStarts)),this.cr+=t.cr,this.lf+=t.lf,this.crlf+=t.crlf,t.isBasicASCII||(this.isBasicASCII=!1,this.containsRTL||(this.containsRTL=c.E_(e)),this.containsUnusualLineTerminators||(this.containsUnusualLineTerminators=c.$X(e)))}finish(e=!0){return this._finish(),new je(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,e)}_finish(){if(0===this.chunks.length&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;const e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);const t=Fe(e.buffer);e.lineStarts=t,13===this._previousChar&&this.cr++}}}var Ye=i(86571),qe=i(26486),$e=i(62083),Qe=i(20761),Xe=i(90766),Ze=i(98067),Je=i(78381),et=i(74444),tt=i(20788);class it{constructor(e){this._default=e,this._store=[]}get(e){return e<this._store.length?this._store[e]:this._default}set(e,t){for(;e>=this._store.length;)this._store[this._store.length]=this._default;this._store[e]=t}replace(e,t,i){if(e>=this._store.length)return;if(0===t)return void this.insert(e,i);if(0===i)return void this.delete(e,t);const s=this._store.slice(0,e),n=this._store.slice(e+t),r=function(e,t){const i=[];for(let s=0;s<e;s++)i[s]=t;return i}(i,this._default);this._store=s.concat(r,n)}delete(e,t){0===t||e>=this._store.length||this._store.splice(e,t)}insert(e,t){if(0===t||e>=this._store.length)return;const i=[];for(let s=0;s<t;s++)i[s]=this._default;this._store=(0,s.nK)(this._store,e,i)}}class st{get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._startLineNumber+this._tokens.length-1}constructor(e,t){this._startLineNumber=e,this._tokens=t}getLineTokens(e){return this._tokens[e-this._startLineNumber]}appendLineTokens(e){this._tokens.push(e)}}class nt{constructor(){this._tokens=[]}add(e,t){if(this._tokens.length>0){const i=this._tokens[this._tokens.length-1];if(i.endLineNumber+1===e)return void i.appendLineTokens(t)}this._tokens.push(new st(e,[t]))}finalize(){return this._tokens}}var rt=i(87469);class ot{constructor(e,t){this.tokenizationSupport=t,this.initialState=this.tokenizationSupport.getInitialState(),this.store=new ct(e)}getStartState(e){return this.store.getStartState(e,this.initialState)}getFirstInvalidLine(){return this.store.getFirstInvalidLine(this.initialState)}}class at extends ot{constructor(e,t,i,s){super(e,t),this._textModel=i,this._languageIdCodec=s}updateTokensUntilLine(e,t){const i=this._textModel.getLanguageId();for(;;){const s=this.getFirstInvalidLine();if(!s||s.lineNumber>t)break;const n=this._textModel.getLineContent(s.lineNumber),r=dt(this._languageIdCodec,i,this.tokenizationSupport,n,!0,s.startState);e.add(s.lineNumber,r.tokens),this.store.setEndState(s.lineNumber,r.endState)}}getTokenTypeIfInsertingCharacter(e,t){const i=this.getStartState(e.lineNumber);if(!i)return 0;const s=this._textModel.getLanguageId(),n=this._textModel.getLineContent(e.lineNumber),r=n.substring(0,e.column-1)+t+n.substring(e.column-1),o=dt(this._languageIdCodec,s,this.tokenizationSupport,r,!0,i),a=new rt.f(o.tokens,r,this._languageIdCodec);if(0===a.getCount())return 0;const c=a.findTokenIndexAtOffset(e.column-1);return a.getStandardTokenType(c)}tokenizeLineWithEdit(e,t,i){const s=e.lineNumber,n=e.column,r=this.getStartState(s);if(!r)return null;const o=this._textModel.getLineContent(s),a=o.substring(0,n-1)+i+o.substring(n-1+t),c=this._textModel.getLanguageIdAtPosition(s,0),l=dt(this._languageIdCodec,c,this.tokenizationSupport,a,!0,r);return new rt.f(l.tokens,a,this._languageIdCodec)}hasAccurateTokensForLine(e){return e<this.store.getFirstInvalidEndStateLineNumberOrMax()}isCheapToTokenize(e){const t=this.store.getFirstInvalidEndStateLineNumberOrMax();return e<t||e===t&&this._textModel.getLineLength(e)<2048}tokenizeHeuristically(e,t,i){if(i<=this.store.getFirstInvalidEndStateLineNumberOrMax())return{heuristicTokens:!1};if(t<=this.store.getFirstInvalidEndStateLineNumberOrMax())return this.updateTokensUntilLine(e,i),{heuristicTokens:!1};let s=this.guessStartState(t);const n=this._textModel.getLanguageId();for(let r=t;r<=i;r++){const t=this._textModel.getLineContent(r),i=dt(this._languageIdCodec,n,this.tokenizationSupport,t,!0,s);e.add(r,i.tokens),s=i.endState}return{heuristicTokens:!0}}guessStartState(e){let t=this._textModel.getLineFirstNonWhitespaceColumn(e);const i=[];let s=null;for(let o=e-1;t>1&&o>=1;o--){const e=this._textModel.getLineFirstNonWhitespaceColumn(o);if(0!==e&&(e<t&&(i.push(this._textModel.getLineContent(o)),t=e,s=this.getStartState(o),s)))break}s||(s=this.tokenizationSupport.getInitialState()),i.reverse();const n=this._textModel.getLanguageId();let r=s;for(const o of i){r=dt(this._languageIdCodec,n,this.tokenizationSupport,o,!1,r).endState}return r}}class ct{constructor(e){this.lineCount=e,this._tokenizationStateStore=new lt,this._invalidEndStatesLineNumbers=new ht,this._invalidEndStatesLineNumbers.addRange(new et.L(1,e+1))}getEndState(e){return this._tokenizationStateStore.getEndState(e)}setEndState(e,t){if(!t)throw new r.D7("Cannot set null/undefined state");this._invalidEndStatesLineNumbers.delete(e);const i=this._tokenizationStateStore.setEndState(e,t);return i&&e<this.lineCount&&this._invalidEndStatesLineNumbers.addRange(new et.L(e+1,e+2)),i}acceptChange(e,t){this.lineCount+=t-e.length,this._tokenizationStateStore.acceptChange(e,t),this._invalidEndStatesLineNumbers.addRangeAndResize(new et.L(e.startLineNumber,e.endLineNumberExclusive),t)}acceptChanges(e){for(const t of e){const[e]=(0,h.W)(t.text);this.acceptChange(new Ye.M(t.range.startLineNumber,t.range.endLineNumber+1),e+1)}}invalidateEndStateRange(e){this._invalidEndStatesLineNumbers.addRange(new et.L(e.startLineNumber,e.endLineNumberExclusive))}getFirstInvalidEndStateLineNumber(){return this._invalidEndStatesLineNumbers.min}getFirstInvalidEndStateLineNumberOrMax(){return this.getFirstInvalidEndStateLineNumber()||Number.MAX_SAFE_INTEGER}allStatesValid(){return null===this._invalidEndStatesLineNumbers.min}getStartState(e,t){return 1===e?t:this.getEndState(e-1)}getFirstInvalidLine(e){const t=this.getFirstInvalidEndStateLineNumber();if(null===t)return null;const i=this.getStartState(t,e);if(!i)throw new r.D7("Start state must be defined");return{lineNumber:t,startState:i}}}class lt{constructor(){this._lineEndStates=new it(null)}getEndState(e){return this._lineEndStates.get(e)}setEndState(e,t){const i=this._lineEndStates.get(e);return(!i||!i.equals(t))&&(this._lineEndStates.set(e,t),!0)}acceptChange(e,t){let i=e.length;t>0&&i>0&&(i--,t--),this._lineEndStates.replace(e.startLineNumber,i,t)}}class ht{constructor(){this._ranges=[]}get min(){return 0===this._ranges.length?null:this._ranges[0].start}delete(e){const t=this._ranges.findIndex((t=>t.contains(e)));if(-1!==t){const i=this._ranges[t];i.start===e?i.endExclusive===e+1?this._ranges.splice(t,1):this._ranges[t]=new et.L(e+1,i.endExclusive):i.endExclusive===e+1?this._ranges[t]=new et.L(i.start,e):this._ranges.splice(t,1,new et.L(i.start,e),new et.L(e+1,i.endExclusive))}}addRange(e){et.L.addRange(e,this._ranges)}addRangeAndResize(e,t){let i=0;for(;!(i>=this._ranges.length||e.start<=this._ranges[i].endExclusive);)i++;let s=i;for(;!(s>=this._ranges.length||e.endExclusive<this._ranges[s].start);)s++;const n=t-e.length;for(let r=s;r<this._ranges.length;r++)this._ranges[r]=this._ranges[r].delta(n);if(i===s){const s=new et.L(e.start,e.start+t);s.isEmpty||this._ranges.splice(i,0,s)}else{const t=Math.min(e.start,this._ranges[i].start),r=Math.max(e.endExclusive,this._ranges[s-1].endExclusive),o=new et.L(t,r+n);o.isEmpty?this._ranges.splice(i,s-i):this._ranges.splice(i,s-i,o)}}toString(){return this._ranges.map((e=>e.toString())).join(" + ")}}function dt(e,t,i,s,n,o){let a=null;if(i)try{a=i.tokenizeEncoded(s,n,o.clone())}catch(c){(0,r.dz)(c)}return a||(a=(0,tt.Lh)(e.encodeLanguageId(t),o)),rt.f.convertToEndOffset(a.tokens,s.length),a}class ut{constructor(e,t){this._tokenizerWithStateStore=e,this._backgroundTokenStore=t,this._isDisposed=!1,this._isScheduled=!1}dispose(){this._isDisposed=!0}handleChanges(){this._beginBackgroundTokenization()}_beginBackgroundTokenization(){!this._isScheduled&&this._tokenizerWithStateStore._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&(this._isScheduled=!0,(0,Xe.$6)((e=>{this._isScheduled=!1,this._backgroundTokenizeWithDeadline(e)})))}_backgroundTokenizeWithDeadline(e){const t=Date.now()+e.timeRemaining(),i=()=>{!this._isDisposed&&this._tokenizerWithStateStore._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&(this._backgroundTokenizeForAtLeast1ms(),Date.now()<t?(0,Ze._p)(i):this._beginBackgroundTokenization())};i()}_backgroundTokenizeForAtLeast1ms(){const e=this._tokenizerWithStateStore._textModel.getLineCount(),t=new nt,i=Je.W.create(!1);do{if(i.elapsed()>1)break;if(this._tokenizeOneInvalidLine(t)>=e)break}while(this._hasLinesToTokenize());this._backgroundTokenStore.setTokens(t.finalize()),this.checkFinished()}_hasLinesToTokenize(){return!!this._tokenizerWithStateStore&&!this._tokenizerWithStateStore.store.allStatesValid()}_tokenizeOneInvalidLine(e){const t=this._tokenizerWithStateStore?.getFirstInvalidLine();return t?(this._tokenizerWithStateStore.updateTokensUntilLine(e,t.lineNumber),t.lineNumber):this._tokenizerWithStateStore._textModel.getLineCount()+1}checkFinished(){this._isDisposed||this._tokenizerWithStateStore.store.allStatesValid()&&this._backgroundTokenStore.backgroundTokenizationFinished()}requestTokens(e,t){this._tokenizerWithStateStore.store.invalidateEndStateRange(new Ye.M(e,t))}}class gt{constructor(){this._onDidChangeVisibleRanges=new o.vl,this.onDidChangeVisibleRanges=this._onDidChangeVisibleRanges.event,this._views=new Set}attachView(){const e=new pt((t=>{this._onDidChangeVisibleRanges.fire({view:e,state:t})}));return this._views.add(e),e}detachView(e){this._views.delete(e),this._onDidChangeVisibleRanges.fire({view:e,state:void 0})}}class pt{constructor(e){this.handleStateChange=e}setVisibleLines(e,t){const i=e.map((e=>new Ye.M(e.startLineNumber,e.endLineNumber+1)));this.handleStateChange({visibleLineRanges:i,stabilized:t})}}class mt extends a.jG{get lineRanges(){return this._lineRanges}constructor(e){super(),this._refreshTokens=e,this.runner=this._register(new Xe.uC((()=>this.update()),50)),this._computedLineRanges=[],this._lineRanges=[]}update(){(0,s.aI)(this._computedLineRanges,this._lineRanges,((e,t)=>e.equals(t)))||(this._computedLineRanges=this._lineRanges,this._refreshTokens())}handleStateChange(e){this._lineRanges=e.visibleLineRanges,e.stabilized?(this.runner.cancel(),this.update()):this.runner.schedule()}}class ft extends a.jG{get backgroundTokenizationState(){return this._backgroundTokenizationState}constructor(e,t,i){super(),this._languageIdCodec=e,this._textModel=t,this.getLanguageId=i,this._backgroundTokenizationState=1,this._onDidChangeBackgroundTokenizationState=this._register(new o.vl),this.onDidChangeBackgroundTokenizationState=this._onDidChangeBackgroundTokenizationState.event,this._onDidChangeTokens=this._register(new o.vl),this.onDidChangeTokens=this._onDidChangeTokens.event}tokenizeIfCheap(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)}}class _t extends ft{constructor(e,t,i,s){super(t,i,s),this._treeSitterService=e,this._tokenizationSupport=null,this._initialize()}_initialize(){const e=this.getLanguageId();this._tokenizationSupport&&this._lastLanguageId===e||(this._lastLanguageId=e,this._tokenizationSupport=$e.OB.get(e))}getLineTokens(e){const t=this._textModel.getLineContent(e);if(this._tokenizationSupport){const i=this._tokenizationSupport.tokenizeEncoded(e,this._textModel);if(i)return new rt.f(i,t,this._languageIdCodec)}return rt.f.createEmpty(t,this._languageIdCodec)}resetTokenization(e=!0){e&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]}),this._initialize()}handleDidChangeAttached(){}handleDidChangeContent(e){e.isFlush&&this.resetTokenization(!1)}forceTokenization(e){}hasAccurateTokensForLine(e){return!0}isCheapToTokenize(e){return!0}getTokenTypeIfInsertingCharacter(e,t,i){return 0}tokenizeLineWithEdit(e,t,i){return null}get hasTokens(){return void 0!==this._treeSitterService.getParseResult(this._textModel)}}var vt=i(44432);const Ct=new Uint32Array(0).buffer;class Et{static deleteBeginning(e,t){return null===e||e===Ct?e:Et.delete(e,0,t)}static deleteEnding(e,t){if(null===e||e===Ct)return e;const i=bt(e),s=i[i.length-2];return Et.delete(e,t,s)}static delete(e,t,i){if(null===e||e===Ct||t===i)return e;const s=bt(e),n=s.length>>>1;if(0===t&&s[s.length-2]===i)return Ct;const r=rt.f.findIndexInTokensArray(s,t),o=r>0?s[r-1<<1]:0;if(i<s[r<<1]){const o=i-t;for(let e=r;e<n;e++)s[e<<1]-=o;return e}let a,c;o!==t?(s[r<<1]=t,a=r+1<<1,c=t):(a=r<<1,c=o);const l=i-t;for(let d=r+1;d<n;d++){const e=s[d<<1]-l;e>c&&(s[a++]=e,s[a++]=s[1+(d<<1)],c=e)}if(a===s.length)return e;const h=new Uint32Array(a);return h.set(s.subarray(0,a),0),h.buffer}static append(e,t){if(t===Ct)return e;if(e===Ct)return t;if(null===e)return e;if(null===t)return null;const i=bt(e),s=bt(t),n=s.length>>>1,r=new Uint32Array(i.length+s.length);r.set(i,0);let o=i.length;const a=i[i.length-2];for(let c=0;c<n;c++)r[o++]=s[c<<1]+a,r[o++]=s[1+(c<<1)];return r.buffer}static insert(e,t,i){if(null===e||e===Ct)return e;const s=bt(e),n=s.length>>>1;let r=rt.f.findIndexInTokensArray(s,t);if(r>0){s[r-1<<1]===t&&r--}for(let o=r;o<n;o++)s[o<<1]+=i;return e}}function bt(e){return e instanceof Uint32Array?e:new Uint32Array(e)}var St=i(25982);class yt{constructor(e){this._lineTokens=[],this._len=0,this._languageIdCodec=e}flush(){this._lineTokens=[],this._len=0}get hasTokens(){return this._lineTokens.length>0}getTokens(e,t,i){let s=null;if(t<this._len&&(s=this._lineTokens[t]),null!==s&&s!==Ct)return new rt.f(bt(s),i,this._languageIdCodec);const n=new Uint32Array(2);return n[0]=i.length,n[1]=wt(this._languageIdCodec.encodeLanguageId(e)),new rt.f(n,i,this._languageIdCodec)}static _massageTokens(e,t,i){const s=i?bt(i):null;if(0===t){let t=!1;if(s&&s.length>1&&(t=St.x.getLanguageId(s[1])!==e),!t)return Ct}if(!s||0===s.length){const i=new Uint32Array(2);return i[0]=t,i[1]=wt(e),i.buffer}return s[s.length-2]=t,0===s.byteOffset&&s.byteLength===s.buffer.byteLength?s.buffer:s}_ensureLine(e){for(;e>=this._len;)this._lineTokens[this._len]=null,this._len++}_deleteLines(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._lineTokens.splice(e,t),this._len-=t)}_insertLines(e,t){if(0===t)return;const i=[];for(let s=0;s<t;s++)i[s]=null;this._lineTokens=s.nK(this._lineTokens,e,i),this._len+=t}setTokens(e,t,i,s,n){const r=yt._massageTokens(this._languageIdCodec.encodeLanguageId(e),i,s);this._ensureLine(t);const o=this._lineTokens[t];return this._lineTokens[t]=r,!!n&&!yt._equals(o,r)}static _equals(e,t){if(!e||!t)return!e&&!t;const i=bt(e),s=bt(t);if(i.length!==s.length)return!1;for(let n=0,r=i.length;n<r;n++)if(i[n]!==s[n])return!1;return!0}acceptEdit(e,t,i){this._acceptDeleteRange(e),this._acceptInsertText(new u.y(e.startLineNumber,e.startColumn),t,i)}_acceptDeleteRange(e){const t=e.startLineNumber-1;if(t>=this._len)return;if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;return void(this._lineTokens[t]=Et.delete(this._lineTokens[t],e.startColumn-1,e.endColumn-1))}this._lineTokens[t]=Et.deleteEnding(this._lineTokens[t],e.startColumn-1);const i=e.endLineNumber-1;let s=null;i<this._len&&(s=Et.deleteBeginning(this._lineTokens[i],e.endColumn-1)),this._lineTokens[t]=Et.append(this._lineTokens[t],s),this._deleteLines(e.startLineNumber,e.endLineNumber-e.startLineNumber)}_acceptInsertText(e,t,i){if(0===t&&0===i)return;const s=e.lineNumber-1;s>=this._len||(0!==t?(this._lineTokens[s]=Et.deleteEnding(this._lineTokens[s],e.column-1),this._lineTokens[s]=Et.insert(this._lineTokens[s],e.column-1,i),this._insertLines(e.lineNumber,t)):this._lineTokens[s]=Et.insert(this._lineTokens[s],e.column-1,i))}setMultilineTokens(e,t){if(0===e.length)return{changes:[]};const i=[];for(let s=0,n=e.length;s<n;s++){const n=e[s];let r=0,o=0,a=!1;for(let e=n.startLineNumber;e<=n.endLineNumber;e++)if(a)this.setTokens(t.getLanguageId(),e-1,t.getLineLength(e),n.getLineTokens(e),!1),o=e;else{this.setTokens(t.getLanguageId(),e-1,t.getLineLength(e),n.getLineTokens(e),!0)&&(a=!0,r=e,o=e)}a&&i.push({fromLineNumber:r,toLineNumber:o})}return{changes:i}}}function wt(e){return(32768|e|2<<24|1024)>>>0}class Rt{constructor(e){this._pieces=[],this._isComplete=!1,this._languageIdCodec=e}flush(){this._pieces=[],this._isComplete=!1}isEmpty(){return 0===this._pieces.length}set(e,t){this._pieces=e||[],this._isComplete=t}setPartial(e,t){let i=e;if(t.length>0){const s=t[0].getRange(),n=t[t.length-1].getRange();if(!s||!n)return e;i=e.plusRange(s).plusRange(n)}let n=null;for(let s=0,r=this._pieces.length;s<r;s++){const e=this._pieces[s];if(e.endLineNumber<i.startLineNumber)continue;if(e.startLineNumber>i.endLineNumber){n=n||{index:s};break}if(e.removeTokens(i),e.isEmpty()){this._pieces.splice(s,1),s--,r--;continue}if(e.endLineNumber<i.startLineNumber)continue;if(e.startLineNumber>i.endLineNumber){n=n||{index:s};continue}const[t,o]=e.split(i);t.isEmpty()?n=n||{index:s}:o.isEmpty()||(this._pieces.splice(s,1,t,o),s++,r++,n=n||{index:s})}return n=n||{index:this._pieces.length},t.length>0&&(this._pieces=s.nK(this._pieces,n.index,t)),i}isComplete(){return this._isComplete}addSparseTokens(e,t){if(0===t.getLineContent().length)return t;const i=this._pieces;if(0===i.length)return t;const s=i[Rt._findFirstPieceWithLine(i,e)].getLineTokens(e);if(!s)return t;const n=t.getCount(),r=s.getCount();let o=0;const a=[];let c=0,l=0;const h=(e,t)=>{e!==l&&(l=e,a[c++]=e,a[c++]=t)};for(let d=0;d<r;d++){const e=s.getStartCharacter(d),i=s.getEndCharacter(d),r=s.getMetadata(d),a=((1&r?2048:0)|(2&r?4096:0)|(4&r?8192:0)|(8&r?16384:0)|(16&r?16744448:0)|(32&r?4278190080:0))>>>0,c=~a>>>0;for(;o<n&&t.getEndOffset(o)<=e;)h(t.getEndOffset(o),t.getMetadata(o)),o++;for(o<n&&t.getStartOffset(o)<e&&h(e,t.getMetadata(o));o<n&&t.getEndOffset(o)<i;)h(t.getEndOffset(o),t.getMetadata(o)&c|r&a),o++;if(o<n)h(i,t.getMetadata(o)&c|r&a),t.getEndOffset(o)===i&&o++;else{const e=Math.min(Math.max(0,o-1),n-1);h(i,t.getMetadata(e)&c|r&a)}}for(;o<n;)h(t.getEndOffset(o),t.getMetadata(o)),o++;return new rt.f(new Uint32Array(a),t.getLineContent(),this._languageIdCodec)}static _findFirstPieceWithLine(e,t){let i=0,s=e.length-1;for(;i<s;){let n=i+Math.floor((s-i)/2);if(e[n].endLineNumber<t)i=n+1;else{if(!(e[n].startLineNumber>t)){for(;n>i&&e[n-1].startLineNumber<=t&&t<=e[n-1].endLineNumber;)n--;return n}s=n-1}}return i}acceptEdit(e,t,i,s,n){for(const r of this._pieces)r.acceptEdit(e,t,i,s,n)}}var Lt,Tt=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},xt=function(e,t){return function(i,s){t(i,s,e)}};let kt=Lt=class extends Qe._{constructor(e,t,i,s,n,r,c){super(),this._textModel=e,this._bracketPairsTextModelPart=t,this._languageId=i,this._attachedViews=s,this._languageService=n,this._languageConfigurationService=r,this._treeSitterService=c,this._semanticTokens=new Rt(this._languageService.languageIdCodec),this._onDidChangeLanguage=this._register(new o.vl),this.onDidChangeLanguage=this._onDidChangeLanguage.event,this._onDidChangeLanguageConfiguration=this._register(new o.vl),this.onDidChangeLanguageConfiguration=this._onDidChangeLanguageConfiguration.event,this._onDidChangeTokens=this._register(new o.vl),this.onDidChangeTokens=this._onDidChangeTokens.event,this._tokensDisposables=this._register(new a.Cm),this._register(this._languageConfigurationService.onDidChange((e=>{e.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})}))),this._register(o.Jh.filter($e.OB.onDidChange,(e=>e.changedLanguages.includes(this._languageId)))((()=>{this.createPreferredTokenProvider()}))),this.createPreferredTokenProvider()}createGrammarTokens(){return this._register(new At(this._languageService.languageIdCodec,this._textModel,(()=>this._languageId),this._attachedViews))}createTreeSitterTokens(){return this._register(new _t(this._treeSitterService,this._languageService.languageIdCodec,this._textModel,(()=>this._languageId)))}createTokens(e){const t=void 0!==this._tokens;this._tokens?.dispose(),this._tokens=e?this.createTreeSitterTokens():this.createGrammarTokens(),this._tokensDisposables.clear(),this._tokensDisposables.add(this._tokens.onDidChangeTokens((e=>{this._emitModelTokensChangedEvent(e)}))),this._tokensDisposables.add(this._tokens.onDidChangeBackgroundTokenizationState((e=>{this._bracketPairsTextModelPart.handleDidChangeBackgroundTokenizationState()}))),t&&this._tokens.resetTokenization()}createPreferredTokenProvider(){$e.OB.get(this._languageId)?this._tokens instanceof _t||this.createTokens(!0):this._tokens instanceof At||this.createTokens(!1)}handleLanguageConfigurationServiceChange(e){e.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})}handleDidChangeContent(e){if(e.isFlush)this._semanticTokens.flush();else if(!e.isEolChange)for(const t of e.changes){const[e,i,s]=(0,h.W)(t.text);this._semanticTokens.acceptEdit(t.range,e,i,s,t.text.length>0?t.text.charCodeAt(0):0)}this._tokens.handleDidChangeContent(e)}handleDidChangeAttached(){this._tokens.handleDidChangeAttached()}getLineTokens(e){this.validateLineNumber(e);const t=this._tokens.getLineTokens(e);return this._semanticTokens.addSparseTokens(e,t)}_emitModelTokensChangedEvent(e){this._textModel._isDisposing()||(this._bracketPairsTextModelPart.handleDidChangeTokens(e),this._onDidChangeTokens.fire(e))}validateLineNumber(e){if(e<1||e>this._textModel.getLineCount())throw new r.D7("Illegal value for lineNumber")}get hasTokens(){return this._tokens.hasTokens}resetTokenization(){this._tokens.resetTokenization()}get backgroundTokenizationState(){return this._tokens.backgroundTokenizationState}forceTokenization(e){this.validateLineNumber(e),this._tokens.forceTokenization(e)}hasAccurateTokensForLine(e){return this.validateLineNumber(e),this._tokens.hasAccurateTokensForLine(e)}isCheapToTokenize(e){return this.validateLineNumber(e),this._tokens.isCheapToTokenize(e)}tokenizeIfCheap(e){this.validateLineNumber(e),this._tokens.tokenizeIfCheap(e)}getTokenTypeIfInsertingCharacter(e,t,i){return this._tokens.getTokenTypeIfInsertingCharacter(e,t,i)}tokenizeLineWithEdit(e,t,i){return this._tokens.tokenizeLineWithEdit(e,t,i)}setSemanticTokens(e,t){this._semanticTokens.set(e,t),this._emitModelTokensChangedEvent({semanticTokensApplied:null!==e,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]})}hasCompleteSemanticTokens(){return this._semanticTokens.isComplete()}hasSomeSemanticTokens(){return!this._semanticTokens.isEmpty()}setPartialSemanticTokens(e,t){if(this.hasCompleteSemanticTokens())return;const i=this._textModel.validateRange(this._semanticTokens.setPartial(e,t));this._emitModelTokensChangedEvent({semanticTokensApplied:!0,ranges:[{fromLineNumber:i.startLineNumber,toLineNumber:i.endLineNumber}]})}getWordAtPosition(e){this.assertNotDisposed();const t=this._textModel.validatePosition(e),i=this._textModel.getLineContent(t.lineNumber),s=this.getLineTokens(t.lineNumber),n=s.findTokenIndexAtOffset(t.column-1),[r,o]=Lt._findLanguageBoundaries(s,n),a=(0,qe.Th)(t.column,this.getLanguageConfiguration(s.getLanguageId(n)).getWordDefinition(),i.substring(r,o),r);if(a&&a.startColumn<=e.column&&e.column<=a.endColumn)return a;if(n>0&&r===t.column-1){const[r,o]=Lt._findLanguageBoundaries(s,n-1),a=(0,qe.Th)(t.column,this.getLanguageConfiguration(s.getLanguageId(n-1)).getWordDefinition(),i.substring(r,o),r);if(a&&a.startColumn<=e.column&&e.column<=a.endColumn)return a}return null}getLanguageConfiguration(e){return this._languageConfigurationService.getLanguageConfiguration(e)}static _findLanguageBoundaries(e,t){const i=e.getLanguageId(t);let s=0;for(let r=t;r>=0&&e.getLanguageId(r)===i;r--)s=e.getStartOffset(r);let n=e.getLineContent().length;for(let r=t,o=e.getCount();r<o&&e.getLanguageId(r)===i;r++)n=e.getEndOffset(r);return[s,n]}getWordUntilPosition(e){const t=this.getWordAtPosition(e);return t?{word:t.word.substr(0,e.column-t.startColumn),startColumn:t.startColumn,endColumn:e.column}:{word:"",startColumn:e.column,endColumn:e.column}}getLanguageId(){return this._languageId}getLanguageIdAtPosition(e,t){const i=this._textModel.validatePosition(new u.y(e,t)),s=this.getLineTokens(i.lineNumber);return s.getLanguageId(s.findTokenIndexAtOffset(i.column-1))}setLanguageId(e,t="api"){if(this._languageId===e)return;const i={oldLanguage:this._languageId,newLanguage:e,source:t};this._languageId=e,this._bracketPairsTextModelPart.handleDidChangeLanguage(i),this._tokens.resetTokenization(),this.createPreferredTokenProvider(),this._onDidChangeLanguage.fire(i),this._onDidChangeLanguageConfiguration.fire({})}};kt=Lt=Tt([xt(4,f.L),xt(5,_.JZ),xt(6,vt.ITreeSitterParserService)],kt);class At extends ft{constructor(e,t,i,s){super(e,t,i),this._tokenizer=null,this._defaultBackgroundTokenizer=null,this._backgroundTokenizer=this._register(new a.HE),this._tokens=new yt(this._languageIdCodec),this._debugBackgroundTokenizer=this._register(new a.HE),this._attachedViewStates=this._register(new a.$w),this._register($e.dG.onDidChange((e=>{const t=this.getLanguageId();-1!==e.changedLanguages.indexOf(t)&&this.resetTokenization()}))),this.resetTokenization(),this._register(s.onDidChangeVisibleRanges((({view:e,state:t})=>{if(t){let i=this._attachedViewStates.get(e);i||(i=new mt((()=>this.refreshRanges(i.lineRanges))),this._attachedViewStates.set(e,i)),i.handleStateChange(t)}else this._attachedViewStates.deleteAndDispose(e)})))}resetTokenization(e=!0){this._tokens.flush(),this._debugBackgroundTokens?.flush(),this._debugBackgroundStates&&(this._debugBackgroundStates=new ct(this._textModel.getLineCount())),e&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]});const[t,i]=(()=>{if(this._textModel.isTooLargeForTokenization())return[null,null];const e=$e.dG.get(this.getLanguageId());if(!e)return[null,null];let t;try{t=e.getInitialState()}catch(i){return(0,r.dz)(i),[null,null]}return[e,t]})();if(this._tokenizer=t&&i?new at(this._textModel.getLineCount(),t,this._textModel,this._languageIdCodec):null,this._backgroundTokenizer.clear(),this._defaultBackgroundTokenizer=null,this._tokenizer){const e={setTokens:e=>{this.setTokens(e)},backgroundTokenizationFinished:()=>{if(2===this._backgroundTokenizationState)return;this._backgroundTokenizationState=2,this._onDidChangeBackgroundTokenizationState.fire()},setEndState:(e,t)=>{if(!this._tokenizer)return;const i=this._tokenizer.store.getFirstInvalidEndStateLineNumber();null!==i&&e>=i&&this._tokenizer?.store.setEndState(e,t)}};t&&t.createBackgroundTokenizer&&!t.backgroundTokenizerShouldOnlyVerifyTokens&&(this._backgroundTokenizer.value=t.createBackgroundTokenizer(this._textModel,e)),this._backgroundTokenizer.value||this._textModel.isTooLargeForTokenization()||(this._backgroundTokenizer.value=this._defaultBackgroundTokenizer=new ut(this._tokenizer,e),this._defaultBackgroundTokenizer.handleChanges()),t?.backgroundTokenizerShouldOnlyVerifyTokens&&t.createBackgroundTokenizer?(this._debugBackgroundTokens=new yt(this._languageIdCodec),this._debugBackgroundStates=new ct(this._textModel.getLineCount()),this._debugBackgroundTokenizer.clear(),this._debugBackgroundTokenizer.value=t.createBackgroundTokenizer(this._textModel,{setTokens:e=>{this._debugBackgroundTokens?.setMultilineTokens(e,this._textModel)},backgroundTokenizationFinished(){},setEndState:(e,t)=>{this._debugBackgroundStates?.setEndState(e,t)}})):(this._debugBackgroundTokens=void 0,this._debugBackgroundStates=void 0,this._debugBackgroundTokenizer.value=void 0)}this.refreshAllVisibleLineTokens()}handleDidChangeAttached(){this._defaultBackgroundTokenizer?.handleChanges()}handleDidChangeContent(e){if(e.isFlush)this.resetTokenization(!1);else if(!e.isEolChange){for(const t of e.changes){const[e,i]=(0,h.W)(t.text);this._tokens.acceptEdit(t.range,e,i),this._debugBackgroundTokens?.acceptEdit(t.range,e,i)}this._debugBackgroundStates?.acceptChanges(e.changes),this._tokenizer&&this._tokenizer.store.acceptChanges(e.changes),this._defaultBackgroundTokenizer?.handleChanges()}}setTokens(e){const{changes:t}=this._tokens.setMultilineTokens(e,this._textModel);return t.length>0&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:t}),{changes:t}}refreshAllVisibleLineTokens(){const e=Ye.M.joinMany([...this._attachedViewStates].map((([e,t])=>t.lineRanges)));this.refreshRanges(e)}refreshRanges(e){for(const t of e)this.refreshRange(t.startLineNumber,t.endLineNumberExclusive-1)}refreshRange(e,t){if(!this._tokenizer)return;e=Math.max(1,Math.min(this._textModel.getLineCount(),e)),t=Math.min(this._textModel.getLineCount(),t);const i=new nt,{heuristicTokens:s}=this._tokenizer.tokenizeHeuristically(i,e,t),n=this.setTokens(i.finalize());if(s)for(const r of n.changes)this._backgroundTokenizer.value?.requestTokens(r.fromLineNumber,r.toLineNumber+1);this._defaultBackgroundTokenizer?.checkFinished()}forceTokenization(e){const t=new nt;this._tokenizer?.updateTokensUntilLine(t,e),this.setTokens(t.finalize()),this._defaultBackgroundTokenizer?.checkFinished()}hasAccurateTokensForLine(e){return!this._tokenizer||this._tokenizer.hasAccurateTokensForLine(e)}isCheapToTokenize(e){return!this._tokenizer||this._tokenizer.isCheapToTokenize(e)}getLineTokens(e){const t=this._textModel.getLineContent(e),i=this._tokens.getTokens(this._textModel.getLanguageId(),e-1,t);if(this._debugBackgroundTokens&&this._debugBackgroundStates&&this._tokenizer&&this._debugBackgroundStates.getFirstInvalidEndStateLineNumberOrMax()>e&&this._tokenizer.store.getFirstInvalidEndStateLineNumberOrMax()>e){const s=this._debugBackgroundTokens.getTokens(this._textModel.getLanguageId(),e-1,t);!i.equals(s)&&this._debugBackgroundTokenizer.value?.reportMismatchingTokens&&this._debugBackgroundTokenizer.value.reportMismatchingTokens(e)}return i}getTokenTypeIfInsertingCharacter(e,t,i){if(!this._tokenizer)return 0;const s=this._textModel.validatePosition(new u.y(e,t));return this.forceTokenization(s.lineNumber),this._tokenizer.getTokenTypeIfInsertingCharacter(s,i)}tokenizeLineWithEdit(e,t,i){if(!this._tokenizer)return null;const s=this._textModel.validatePosition(e);return this.forceTokenization(s.lineNumber),this._tokenizer.tokenizeLineWithEdit(s,t,i)}get hasTokens(){return this._tokens.hasTokens}}var Nt,It=i(64727),Ot=i(63591),Dt=i(47579),Mt=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Pt=function(e,t){return function(i,s){t(i,s,e)}};function Ft(e,t){let i;return i="string"===typeof e?function(e){const t=new Ke;return t.acceptChunk(e),t.finish()}(e):v.nk(e)?function(e){const t=new Ke;let i;for(;"string"===typeof(i=e.read());)t.acceptChunk(i);return t.finish()}(e):e,i.create(t)}let Ut=0;class Ht{constructor(e){this._source=e,this._eos=!1}read(){if(this._eos)return null;const e=[];let t=0,i=0;for(;;){const s=this._source.read();if(null===s)return this._eos=!0,0===t?null:e.join("");if(s.length>0&&(e[t++]=s,i+=s.length),i>=65536)return e.join("")}}}const Bt=()=>{throw new Error("Invalid change accessor")};let Wt=class extends a.jG{static{Nt=this}static{this._MODEL_SYNC_LIMIT=52428800}static{this.LARGE_FILE_SIZE_THRESHOLD=20971520}static{this.LARGE_FILE_LINE_COUNT_THRESHOLD=3e5}static{this.LARGE_FILE_HEAP_OPERATION_THRESHOLD=268435456}static{this.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:m.R.tabSize,indentSize:m.R.indentSize,insertSpaces:m.R.insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:m.R.trimAutoWhitespace,largeFileOptimizations:m.R.largeFileOptimizations,bracketPairColorizationOptions:m.R.bracketPairColorizationOptions}}static resolveOptions(e,t){if(t.detectIndentation){const i=$(e,t.tabSize,t.insertSpaces);return new v.X2({tabSize:i.tabSize,indentSize:"tabSize",insertSpaces:i.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL,bracketPairColorizationOptions:t.bracketPairColorizationOptions})}return new v.X2(t)}get onDidChangeLanguage(){return this._tokenizationTextModelPart.onDidChangeLanguage}get onDidChangeLanguageConfiguration(){return this._tokenizationTextModelPart.onDidChangeLanguageConfiguration}get onDidChangeTokens(){return this._tokenizationTextModelPart.onDidChangeTokens}onDidChangeContent(e){return this._eventEmitter.slowEvent((t=>e(t.contentChangedEvent)))}onDidChangeContentOrInjectedText(e){return(0,a.qE)(this._eventEmitter.fastEvent((t=>e(t))),this._onDidChangeInjectedText.event((t=>e(t))))}_isDisposing(){return this.__isDisposing}get tokenization(){return this._tokenizationTextModelPart}get bracketPairs(){return this._bracketPairs}get guides(){return this._guidesTextModelPart}constructor(e,t,i,s=null,n,r,h,d){super(),this._undoRedoService=n,this._languageService=r,this._languageConfigurationService=h,this.instantiationService=d,this._onWillDispose=this._register(new o.vl),this.onWillDispose=this._onWillDispose.event,this._onDidChangeDecorations=this._register(new ei((e=>this.handleBeforeFireDecorationsChangedEvent(e)))),this.onDidChangeDecorations=this._onDidChangeDecorations.event,this._onDidChangeOptions=this._register(new o.vl),this.onDidChangeOptions=this._onDidChangeOptions.event,this._onDidChangeAttached=this._register(new o.vl),this.onDidChangeAttached=this._onDidChangeAttached.event,this._onDidChangeInjectedText=this._register(new o.vl),this._eventEmitter=this._register(new ti),this._languageSelectionListener=this._register(new a.HE),this._deltaDecorationCallCnt=0,this._attachedViews=new gt,Ut++,this.id="$model"+Ut,this.isForSimpleWidget=i.isForSimpleWidget,this._associatedResource="undefined"===typeof s||null===s?l.r.parse("inmemory://model/"+Ut):s,this._attachedEditorCount=0;const{textBuffer:u,disposable:p}=Ft(e,i.defaultEOL);this._buffer=u,this._bufferDisposable=p,this._options=Nt.resolveOptions(this._buffer,i);const m="string"===typeof t?t:t.languageId;"string"!==typeof t&&(this._languageSelectionListener.value=t.onDidChange((()=>this._setLanguage(t.languageId)))),this._bracketPairs=this._register(new F(this,this._languageConfigurationService)),this._guidesTextModelPart=this._register(new K.P(this,this._languageConfigurationService)),this._decorationProvider=this._register(new z(this)),this._tokenizationTextModelPart=this.instantiationService.createInstance(kt,this,this._bracketPairs,m,this._attachedViews);const f=this._buffer.getLineCount(),_=this._buffer.getValueLengthInRange(new g.Q(1,1,f,this._buffer.getLineLength(f)+1),0);i.largeFileOptimizations?(this._isTooLargeForTokenization=_>Nt.LARGE_FILE_SIZE_THRESHOLD||f>Nt.LARGE_FILE_LINE_COUNT_THRESHOLD,this._isTooLargeForHeapOperation=_>Nt.LARGE_FILE_HEAP_OPERATION_THRESHOLD):(this._isTooLargeForTokenization=!1,this._isTooLargeForHeapOperation=!1),this._isTooLargeForSyncing=_>Nt._MODEL_SYNC_LIMIT,this._versionId=1,this._alternativeVersionId=1,this._initialUndoRedoSnapshot=null,this._isDisposed=!1,this.__isDisposing=!1,this._instanceId=c.tk(Ut),this._lastDecorationId=0,this._decorations=Object.create(null),this._decorationsTree=new Gt,this._commandManager=new j.z8(this,this._undoRedoService),this._isUndoing=!1,this._isRedoing=!1,this._trimAutoWhitespaceLines=null,this._register(this._decorationProvider.onDidChange((()=>{this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._onDidChangeDecorations.endDeferredEmit()}))),this._languageService.requestRichLanguageFeatures(m),this._register(this._languageConfigurationService.onDidChange((e=>{this._bracketPairs.handleLanguageConfigurationServiceChange(e),this._tokenizationTextModelPart.handleLanguageConfigurationServiceChange(e)})))}dispose(){this.__isDisposing=!0,this._onWillDispose.fire(),this._tokenizationTextModelPart.dispose(),this._isDisposed=!0,super.dispose(),this._bufferDisposable.dispose(),this.__isDisposing=!1;const e=new Ge([],"","\n",!1,!1,!0,!0);e.dispose(),this._buffer=e,this._bufferDisposable=a.jG.None}_assertNotDisposed(){if(this._isDisposed)throw new r.D7("Model is disposed!")}_emitContentChangedEvent(e,t){this.__isDisposing||(this._tokenizationTextModelPart.handleDidChangeContent(t),this._bracketPairs.handleDidChangeContent(t),this._eventEmitter.fire(new It.Ic(e,t)))}setValue(e){if(this._assertNotDisposed(),null===e||void 0===e)throw(0,r.Qg)();const{textBuffer:t,disposable:i}=Ft(e,this._options.defaultEOL);this._setValueFromTextBuffer(t,i)}_createContentChanged2(e,t,i,s,n,r,o,a){return{changes:[{range:e,rangeOffset:t,rangeLength:i,text:s}],eol:this._buffer.getEOL(),isEolChange:a,versionId:this.getVersionId(),isUndoing:n,isRedoing:r,isFlush:o}}_setValueFromTextBuffer(e,t){this._assertNotDisposed();const i=this.getFullModelRange(),s=this.getValueLengthInRange(i),n=this.getLineCount(),r=this.getLineMaxColumn(n);this._buffer=e,this._bufferDisposable.dispose(),this._bufferDisposable=t,this._increaseVersionId(),this._decorations=Object.create(null),this._decorationsTree=new Gt,this._commandManager.clear(),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new It.HP([new It.Wn],this._versionId,!1,!1),this._createContentChanged2(new g.Q(1,1,n,r),0,s,this.getValue(),!1,!1,!0,!1))}setEOL(e){this._assertNotDisposed();const t=1===e?"\r\n":"\n";if(this._buffer.getEOL()===t)return;const i=this.getFullModelRange(),s=this.getValueLengthInRange(i),n=this.getLineCount(),r=this.getLineMaxColumn(n);this._onBeforeEOLChange(),this._buffer.setEOL(t),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new It.HP([new It.mS],this._versionId,!1,!1),this._createContentChanged2(new g.Q(1,1,n,r),0,s,this.getValue(),!1,!1,!1,!0))}_onBeforeEOLChange(){this._decorationsTree.ensureAllNodesHaveRanges(this)}_onAfterEOLChange(){const e=this.getVersionId(),t=this._decorationsTree.collectNodesPostOrder();for(let i=0,s=t.length;i<s;i++){const s=t[i],n=s.range,r=s.cachedAbsoluteStart-s.start,o=this._buffer.getOffsetAt(n.startLineNumber,n.startColumn),a=this._buffer.getOffsetAt(n.endLineNumber,n.endColumn);s.cachedAbsoluteStart=o,s.cachedAbsoluteEnd=a,s.cachedVersionId=e,s.start=o-r,s.end=a-r,_e(s)}}onBeforeAttached(){return this._attachedEditorCount++,1===this._attachedEditorCount&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0)),this._attachedViews.attachView()}onBeforeDetached(e){this._attachedEditorCount--,0===this._attachedEditorCount&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0)),this._attachedViews.detachView(e)}isAttachedToEditor(){return this._attachedEditorCount>0}getAttachedEditorCount(){return this._attachedEditorCount}isTooLargeForSyncing(){return this._isTooLargeForSyncing}isTooLargeForTokenization(){return this._isTooLargeForTokenization}isTooLargeForHeapOperation(){return this._isTooLargeForHeapOperation}isDisposed(){return this._isDisposed}isDominatedByLongLines(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;let e=0,t=0;const i=this._buffer.getLineCount();for(let s=1;s<=i;s++){const i=this._buffer.getLineLength(s);i>=1e4?t+=i:e+=i}return t>e}get uri(){return this._associatedResource}getOptions(){return this._assertNotDisposed(),this._options}getFormattingOptions(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}}updateOptions(e){this._assertNotDisposed();const t="undefined"!==typeof e.tabSize?e.tabSize:this._options.tabSize,i="undefined"!==typeof e.indentSize?e.indentSize:this._options.originalIndentSize,s="undefined"!==typeof e.insertSpaces?e.insertSpaces:this._options.insertSpaces,n="undefined"!==typeof e.trimAutoWhitespace?e.trimAutoWhitespace:this._options.trimAutoWhitespace,r="undefined"!==typeof e.bracketColorizationOptions?e.bracketColorizationOptions:this._options.bracketPairColorizationOptions,o=new v.X2({tabSize:t,indentSize:i,insertSpaces:s,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:n,bracketPairColorizationOptions:r});if(this._options.equals(o))return;const a=this._options.createChangeEvent(o);this._options=o,this._bracketPairs.handleDidChangeOptions(a),this._decorationProvider.handleDidChangeOptions(a),this._onDidChangeOptions.fire(a)}detectIndentation(e,t){this._assertNotDisposed();const i=$(this._buffer,t,e);this.updateOptions({insertSpaces:i.insertSpaces,tabSize:i.tabSize,indentSize:i.tabSize})}normalizeIndentation(e){return this._assertNotDisposed(),(0,d.P)(e,this._options.indentSize,this._options.insertSpaces)}getVersionId(){return this._assertNotDisposed(),this._versionId}mightContainRTL(){return this._buffer.mightContainRTL()}mightContainUnusualLineTerminators(){return this._buffer.mightContainUnusualLineTerminators()}removeUnusualLineTerminators(e=null){const t=this.findMatches(c._J.source,!1,!0,!1,null,!1,1073741824);this._buffer.resetMightContainUnusualLineTerminators(),this.pushEditOperations(e,t.map((e=>({range:e.range,text:null}))),(()=>null))}mightContainNonBasicASCII(){return this._buffer.mightContainNonBasicASCII()}getAlternativeVersionId(){return this._assertNotDisposed(),this._alternativeVersionId}getInitialUndoRedoSnapshot(){return this._assertNotDisposed(),this._initialUndoRedoSnapshot}getOffsetAt(e){this._assertNotDisposed();const t=this._validatePosition(e.lineNumber,e.column,0);return this._buffer.getOffsetAt(t.lineNumber,t.column)}getPositionAt(e){this._assertNotDisposed();const t=Math.min(this._buffer.getLength(),Math.max(0,e));return this._buffer.getPositionAt(t)}_increaseVersionId(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId}_overwriteVersionId(e){this._versionId=e}_overwriteAlternativeVersionId(e){this._alternativeVersionId=e}_overwriteInitialUndoRedoSnapshot(e){this._initialUndoRedoSnapshot=e}getValue(e,t=!1){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new r.D7("Operation would exceed heap memory limits");const i=this.getFullModelRange(),s=this.getValueInRange(i,e);return t?this._buffer.getBOM()+s:s}createSnapshot(e=!1){return new Ht(this._buffer.createSnapshot(e))}getValueLength(e,t=!1){this._assertNotDisposed();const i=this.getFullModelRange(),s=this.getValueLengthInRange(i,e);return t?this._buffer.getBOM().length+s:s}getValueInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(e),t)}getValueLengthInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(e),t)}getCharacterCountInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(e),t)}getLineCount(){return this._assertNotDisposed(),this._buffer.getLineCount()}getLineContent(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new r.D7("Illegal value for lineNumber");return this._buffer.getLineContent(e)}getLineLength(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new r.D7("Illegal value for lineNumber");return this._buffer.getLineLength(e)}getLinesContent(){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new r.D7("Operation would exceed heap memory limits");return this._buffer.getLinesContent()}getEOL(){return this._assertNotDisposed(),this._buffer.getEOL()}getEndOfLineSequence(){return this._assertNotDisposed(),"\n"===this._buffer.getEOL()?0:1}getLineMinColumn(e){return this._assertNotDisposed(),1}getLineMaxColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new r.D7("Illegal value for lineNumber");return this._buffer.getLineLength(e)+1}getLineFirstNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new r.D7("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)}getLineLastNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new r.D7("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)}_validateRangeRelaxedNoAllocations(e){const t=this._buffer.getLineCount(),i=e.startLineNumber,s=e.startColumn;let n=Math.floor("number"!==typeof i||isNaN(i)?1:i),r=Math.floor("number"!==typeof s||isNaN(s)?1:s);if(n<1)n=1,r=1;else if(n>t)n=t,r=this.getLineMaxColumn(n);else if(r<=1)r=1;else{const e=this.getLineMaxColumn(n);r>=e&&(r=e)}const o=e.endLineNumber,a=e.endColumn;let c=Math.floor("number"!==typeof o||isNaN(o)?1:o),l=Math.floor("number"!==typeof a||isNaN(a)?1:a);if(c<1)c=1,l=1;else if(c>t)c=t,l=this.getLineMaxColumn(c);else if(l<=1)l=1;else{const e=this.getLineMaxColumn(c);l>=e&&(l=e)}return i===n&&s===r&&o===c&&a===l&&e instanceof g.Q&&!(e instanceof p.L)?e:new g.Q(n,r,c,l)}_isValidPosition(e,t,i){if("number"!==typeof e||"number"!==typeof t)return!1;if(isNaN(e)||isNaN(t))return!1;if(e<1||t<1)return!1;if((0|e)!==e||(0|t)!==t)return!1;if(e>this._buffer.getLineCount())return!1;if(1===t)return!0;if(t>this.getLineMaxColumn(e))return!1;if(1===i){const i=this._buffer.getLineCharCode(e,t-2);if(c.pc(i))return!1}return!0}_validatePosition(e,t,i){const s=Math.floor("number"!==typeof e||isNaN(e)?1:e),n=Math.floor("number"!==typeof t||isNaN(t)?1:t),r=this._buffer.getLineCount();if(s<1)return new u.y(1,1);if(s>r)return new u.y(r,this.getLineMaxColumn(r));if(n<=1)return new u.y(s,1);const o=this.getLineMaxColumn(s);if(n>=o)return new u.y(s,o);if(1===i){const e=this._buffer.getLineCharCode(s,n-2);if(c.pc(e))return new u.y(s,n-1)}return new u.y(s,n)}validatePosition(e){return this._assertNotDisposed(),e instanceof u.y&&this._isValidPosition(e.lineNumber,e.column,1)?e:this._validatePosition(e.lineNumber,e.column,1)}_isValidRange(e,t){const i=e.startLineNumber,s=e.startColumn,n=e.endLineNumber,r=e.endColumn;if(!this._isValidPosition(i,s,0))return!1;if(!this._isValidPosition(n,r,0))return!1;if(1===t){const e=s>1?this._buffer.getLineCharCode(i,s-2):0,t=r>1&&r<=this._buffer.getLineLength(n)?this._buffer.getLineCharCode(n,r-2):0,o=c.pc(e),a=c.pc(t);return!o&&!a}return!0}validateRange(e){if(this._assertNotDisposed(),e instanceof g.Q&&!(e instanceof p.L)&&this._isValidRange(e,1))return e;const t=this._validatePosition(e.startLineNumber,e.startColumn,0),i=this._validatePosition(e.endLineNumber,e.endColumn,0),s=t.lineNumber,n=t.column,r=i.lineNumber,o=i.column;{const e=n>1?this._buffer.getLineCharCode(s,n-2):0,t=o>1&&o<=this._buffer.getLineLength(r)?this._buffer.getLineCharCode(r,o-2):0,i=c.pc(e),a=c.pc(t);return i||a?s===r&&n===o?new g.Q(s,n-1,r,o-1):i&&a?new g.Q(s,n-1,r,o+1):i?new g.Q(s,n-1,r,o):new g.Q(s,n,r,o+1):new g.Q(s,n,r,o)}}modifyPosition(e,t){this._assertNotDisposed();const i=this.getOffsetAt(e)+t;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,i)))}getFullModelRange(){this._assertNotDisposed();const e=this.getLineCount();return new g.Q(1,1,e,this.getLineMaxColumn(e))}findMatchesLineByLine(e,t,i,s){return this._buffer.findMatchesLineByLine(e,t,i,s)}findMatches(e,t,i,s,n,r,o=999){this._assertNotDisposed();let a=null;null!==t&&(Array.isArray(t)||(t=[t]),t.every((e=>g.Q.isIRange(e)))&&(a=t.map((e=>this.validateRange(e))))),null===a&&(a=[this.getFullModelRange()]),a=a.sort(((e,t)=>e.startLineNumber-t.startLineNumber||e.startColumn-t.startColumn));const c=[];let l;if(c.push(a.reduce(((e,t)=>g.Q.areIntersecting(e,t)?e.plusRange(t):(c.push(e),t)))),!i&&e.indexOf("\n")<0){const t=new Oe.lt(e,i,s,n).parseSearchRequest();if(!t)return[];l=e=>this.findMatchesLineByLine(e,t,r,o)}else l=t=>Oe.hB.findMatches(this,new Oe.lt(e,i,s,n),t,r,o);return c.map(l).reduce(((e,t)=>e.concat(t)),[])}findNextMatch(e,t,i,s,n,r){this._assertNotDisposed();const o=this.validatePosition(t);if(!i&&e.indexOf("\n")<0){const t=new Oe.lt(e,i,s,n).parseSearchRequest();if(!t)return null;const a=this.getLineCount();let c=new g.Q(o.lineNumber,o.column,a,this.getLineMaxColumn(a)),l=this.findMatchesLineByLine(c,t,r,1);return Oe.hB.findNextMatch(this,new Oe.lt(e,i,s,n),o,r),l.length>0?l[0]:(c=new g.Q(1,1,o.lineNumber,this.getLineMaxColumn(o.lineNumber)),l=this.findMatchesLineByLine(c,t,r,1),l.length>0?l[0]:null)}return Oe.hB.findNextMatch(this,new Oe.lt(e,i,s,n),o,r)}findPreviousMatch(e,t,i,s,n,r){this._assertNotDisposed();const o=this.validatePosition(t);return Oe.hB.findPreviousMatch(this,new Oe.lt(e,i,s,n),o,r)}pushStackElement(){this._commandManager.pushStackElement()}popStackElement(){this._commandManager.popStackElement()}pushEOL(e){if(("\n"===this.getEOL()?0:1)!==e)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEOL(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_validateEditOperation(e){return e instanceof v.Wo?e:new v.Wo(e.identifier||null,this.validateRange(e.range),e.text,e.forceMoveMarkers||!1,e.isAutoWhitespaceEdit||!1,e._isTracked||!1)}_validateEditOperations(e){const t=[];for(let i=0,s=e.length;i<s;i++)t[i]=this._validateEditOperation(e[i]);return t}pushEditOperations(e,t,i,s){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(e,this._validateEditOperations(t),i,s)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_pushEditOperations(e,t,i,s){if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){const i=t.map((e=>({range:this.validateRange(e.range),text:e.text})));let s=!0;if(e)for(let t=0,n=e.length;t<n;t++){const n=e[t];let r=!1;for(let e=0,t=i.length;e<t;e++){const t=i[e].range,s=t.startLineNumber>n.endLineNumber,o=n.startLineNumber>t.endLineNumber;if(!s&&!o){r=!0;break}}if(!r){s=!1;break}}if(s)for(let e=0,n=this._trimAutoWhitespaceLines.length;e<n;e++){const s=this._trimAutoWhitespaceLines[e],n=this.getLineMaxColumn(s);let r=!0;for(let e=0,t=i.length;e<t;e++){const t=i[e].range,o=i[e].text;if(!(s<t.startLineNumber||s>t.endLineNumber)&&(!(s===t.startLineNumber&&t.startColumn===n&&t.isEmpty()&&o&&o.length>0&&"\n"===o.charAt(0))&&!(s===t.startLineNumber&&1===t.startColumn&&t.isEmpty()&&o&&o.length>0&&"\n"===o.charAt(o.length-1)))){r=!1;break}}if(r){const e=new g.Q(s,1,s,n);t.push(new v.Wo(null,e,null,!1,!1,!1))}}this._trimAutoWhitespaceLines=null}return null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEditOperation(e,t,i,s)}_applyUndo(e,t,i,s){const n=e.map((e=>{const t=this.getPositionAt(e.newPosition),i=this.getPositionAt(e.newEnd);return{range:new g.Q(t.lineNumber,t.column,i.lineNumber,i.column),text:e.oldText}}));this._applyUndoRedoEdits(n,t,!0,!1,i,s)}_applyRedo(e,t,i,s){const n=e.map((e=>{const t=this.getPositionAt(e.oldPosition),i=this.getPositionAt(e.oldEnd);return{range:new g.Q(t.lineNumber,t.column,i.lineNumber,i.column),text:e.newText}}));this._applyUndoRedoEdits(n,t,!1,!0,i,s)}_applyUndoRedoEdits(e,t,i,s,n,r){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._isUndoing=i,this._isRedoing=s,this.applyEdits(e,!1),this.setEOL(t),this._overwriteAlternativeVersionId(n)}finally{this._isUndoing=!1,this._isRedoing=!1,this._eventEmitter.endDeferredEmit(r),this._onDidChangeDecorations.endDeferredEmit()}}applyEdits(e,t=!1){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit();const i=this._validateEditOperations(e);return this._doApplyEdits(i,t)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_doApplyEdits(e,t){const i=this._buffer.getLineCount(),n=this._buffer.applyEdits(e,this._options.trimAutoWhitespace,t),r=this._buffer.getLineCount(),o=n.changes;if(this._trimAutoWhitespaceLines=n.trimAutoWhitespaceLineNumbers,0!==o.length){for(let i=0,s=o.length;i<s;i++){const e=o[i];this._decorationsTree.acceptReplace(e.rangeOffset,e.rangeLength,e.text.length,e.forceMoveMarkers)}const e=[];this._increaseVersionId();let t=i;for(let i=0,n=o.length;i<n;i++){const n=o[i],[a]=(0,h.W)(n.text);this._onDidChangeDecorations.fire();const c=n.range.startLineNumber,l=n.range.endLineNumber,d=l-c,g=a,p=Math.min(d,g),m=g-d,f=r-t-m+c,_=f,v=f+g,C=this._decorationsTree.getInjectedTextInInterval(this,this.getOffsetAt(new u.y(_,1)),this.getOffsetAt(new u.y(v,this.getLineMaxColumn(v))),0),E=It.uK.fromDecorations(C),b=new s.j3(E);for(let t=p;t>=0;t--){const i=c+t,s=f+t;b.takeFromEndWhile((e=>e.lineNumber>s));const n=b.takeFromEndWhile((e=>e.lineNumber===s));e.push(new It.U0(i,this.getLineContent(s),n))}if(p<d){const t=c+p;e.push(new It.E$(t+1,l))}if(p<g){const i=new s.j3(E),n=c+p,o=g-p,a=r-t-o+n+1,l=[],h=[];for(let e=0;e<o;e++){const t=a+e;h[e]=this.getLineContent(t),i.takeWhile((e=>e.lineNumber<t)),l[e]=i.takeWhile((e=>e.lineNumber===t))}e.push(new It.bg(n+1,c+g,h,l))}t+=m}this._emitContentChangedEvent(new It.HP(e,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:o,eol:this._buffer.getEOL(),isEolChange:!1,versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return null===n.reverseEdits?void 0:n.reverseEdits}undo(){return this._undoRedoService.undo(this.uri)}canUndo(){return this._undoRedoService.canUndo(this.uri)}redo(){return this._undoRedoService.redo(this.uri)}canRedo(){return this._undoRedoService.canRedo(this.uri)}handleBeforeFireDecorationsChangedEvent(e){if(null===e||0===e.size)return;const t=Array.from(e).map((e=>new It.U0(e,this.getLineContent(e),this._getInjectedTextInLine(e))));this._onDidChangeInjectedText.fire(new It.vn(t))}changeDecorations(e,t=0){this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(t,e)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_changeDecorations(e,t){const i={addDecoration:(t,i)=>this._deltaDecorationsImpl(e,[],[{range:t,options:i}])[0],changeDecoration:(e,t)=>{this._changeDecorationImpl(e,t)},changeDecorationOptions:(e,t)=>{this._changeDecorationOptionsImpl(e,Jt(t))},removeDecoration:t=>{this._deltaDecorationsImpl(e,[t],[])},deltaDecorations:(t,i)=>0===t.length&&0===i.length?[]:this._deltaDecorationsImpl(e,t,i)};let s=null;try{s=t(i)}catch(n){(0,r.dz)(n)}return i.addDecoration=Bt,i.changeDecoration=Bt,i.changeDecorationOptions=Bt,i.removeDecoration=Bt,i.deltaDecorations=Bt,s}deltaDecorations(e,t,i=0){if(this._assertNotDisposed(),e||(e=[]),0===e.length&&0===t.length)return[];try{return this._deltaDecorationCallCnt++,this._deltaDecorationCallCnt>1&&(console.warn("Invoking deltaDecorations recursively could lead to leaking decorations."),(0,r.dz)(new Error("Invoking deltaDecorations recursively could lead to leaking decorations."))),this._onDidChangeDecorations.beginDeferredEmit(),this._deltaDecorationsImpl(i,e,t)}finally{this._onDidChangeDecorations.endDeferredEmit(),this._deltaDecorationCallCnt--}}_getTrackedRange(e){return this.getDecorationRange(e)}_setTrackedRange(e,t,i){const s=e?this._decorations[e]:null;if(!s)return t?this._deltaDecorationsImpl(0,[],[{range:t,options:Zt[i]}],!0)[0]:null;if(!t)return this._decorationsTree.delete(s),delete this._decorations[s.id],null;const n=this._validateRangeRelaxedNoAllocations(t),r=this._buffer.getOffsetAt(n.startLineNumber,n.startColumn),o=this._buffer.getOffsetAt(n.endLineNumber,n.endColumn);return this._decorationsTree.delete(s),s.reset(this.getVersionId(),r,o,n),s.setOptions(Zt[i]),this._decorationsTree.insert(s),s.id}removeAllDecorationsWithOwnerId(e){if(this._isDisposed)return;const t=this._decorationsTree.collectNodesFromOwner(e);for(let i=0,s=t.length;i<s;i++){const e=t[i];this._decorationsTree.delete(e),delete this._decorations[e.id]}}getDecorationOptions(e){const t=this._decorations[e];return t?t.options:null}getDecorationRange(e){const t=this._decorations[e];return t?this._decorationsTree.getNodeRange(this,t):null}getLineDecorations(e,t=0,i=!1){return e<1||e>this.getLineCount()?[]:this.getLinesDecorations(e,e,t,i)}getLinesDecorations(e,t,i=0,n=!1,r=!1){const o=this.getLineCount(),a=Math.min(o,Math.max(1,e)),c=Math.min(o,Math.max(1,t)),l=this.getLineMaxColumn(c),h=new g.Q(a,1,c,l),d=this._getDecorationsInRange(h,i,n,r);return(0,s.E4)(d,this._decorationProvider.getDecorationsInRange(h,i,n)),d}getDecorationsInRange(e,t=0,i=!1,n=!1,r=!1){const o=this.validateRange(e),a=this._getDecorationsInRange(o,t,i,r);return(0,s.E4)(a,this._decorationProvider.getDecorationsInRange(o,t,i,n)),a}getOverviewRulerDecorations(e=0,t=!1){return this._decorationsTree.getAll(this,e,t,!0,!1)}getInjectedTextDecorations(e=0){return this._decorationsTree.getAllInjectedText(this,e)}_getInjectedTextInLine(e){const t=this._buffer.getOffsetAt(e,1),i=t+this._buffer.getLineLength(e),s=this._decorationsTree.getInjectedTextInInterval(this,t,i,0);return It.uK.fromDecorations(s).filter((t=>t.lineNumber===e))}getAllDecorations(e=0,t=!1){let i=this._decorationsTree.getAll(this,e,t,!1,!1);return i=i.concat(this._decorationProvider.getAllDecorations(e,t)),i}getAllMarginDecorations(e=0){return this._decorationsTree.getAll(this,e,!1,!1,!0)}_getDecorationsInRange(e,t,i,s){const n=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),r=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn);return this._decorationsTree.getAllInInterval(this,n,r,t,i,s)}getRangeAt(e,t){return this._buffer.getRangeAt(e,t-e)}_changeDecorationImpl(e,t){const i=this._decorations[e];if(!i)return;if(i.options.after){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.endLineNumber)}if(i.options.before){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.startLineNumber)}const s=this._validateRangeRelaxedNoAllocations(t),n=this._buffer.getOffsetAt(s.startLineNumber,s.startColumn),r=this._buffer.getOffsetAt(s.endLineNumber,s.endColumn);this._decorationsTree.delete(i),i.reset(this.getVersionId(),n,r,s),this._decorationsTree.insert(i),this._onDidChangeDecorations.checkAffectedAndFire(i.options),i.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(s.endLineNumber),i.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(s.startLineNumber)}_changeDecorationOptionsImpl(e,t){const i=this._decorations[e];if(!i)return;const s=!(!i.options.overviewRuler||!i.options.overviewRuler.color),n=!(!t.overviewRuler||!t.overviewRuler.color);if(this._onDidChangeDecorations.checkAffectedAndFire(i.options),this._onDidChangeDecorations.checkAffectedAndFire(t),i.options.after||t.after){const e=this._decorationsTree.getNodeRange(this,i);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(i.options.before||t.before){const e=this._decorationsTree.getNodeRange(this,i);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}const r=s!==n,o=function(e){return!!e.after||!!e.before}(t)!==zt(i);r||o?(this._decorationsTree.delete(i),i.setOptions(t),this._decorationsTree.insert(i)):i.setOptions(t)}_deltaDecorationsImpl(e,t,i,s=!1){const n=this.getVersionId(),r=t.length;let o=0;const a=i.length;let c=0;this._onDidChangeDecorations.beginDeferredEmit();try{const l=new Array(a);for(;o<r||c<a;){let h=null;if(o<r){do{h=this._decorations[t[o++]]}while(!h&&o<r);if(h){if(h.options.after){const e=this._decorationsTree.getNodeRange(this,h);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(h.options.before){const e=this._decorationsTree.getNodeRange(this,h);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}this._decorationsTree.delete(h),s||this._onDidChangeDecorations.checkAffectedAndFire(h.options)}}if(c<a){if(!h){const e=++this._lastDecorationId,t=`${this._instanceId};${e}`;h=new oe(t,0,0),this._decorations[t]=h}const t=i[c],r=this._validateRangeRelaxedNoAllocations(t.range),o=Jt(t.options),a=this._buffer.getOffsetAt(r.startLineNumber,r.startColumn),d=this._buffer.getOffsetAt(r.endLineNumber,r.endColumn);h.ownerId=e,h.reset(n,a,d,r),h.setOptions(o),h.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(r.endLineNumber),h.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(r.startLineNumber),s||this._onDidChangeDecorations.checkAffectedAndFire(o),this._decorationsTree.insert(h),l[c]=h.id,c++}else h&&delete this._decorations[h.id]}return l}finally{this._onDidChangeDecorations.endDeferredEmit()}}getLanguageId(){return this.tokenization.getLanguageId()}setLanguage(e,t){"string"===typeof e?(this._languageSelectionListener.clear(),this._setLanguage(e,t)):(this._languageSelectionListener.value=e.onDidChange((()=>this._setLanguage(e.languageId,t))),this._setLanguage(e.languageId,t))}_setLanguage(e,t){this.tokenization.setLanguageId(e,t),this._languageService.requestRichLanguageFeatures(e)}getLanguageIdAtPosition(e,t){return this.tokenization.getLanguageIdAtPosition(e,t)}getWordAtPosition(e){return this._tokenizationTextModelPart.getWordAtPosition(e)}getWordUntilPosition(e){return this._tokenizationTextModelPart.getWordUntilPosition(e)}normalizePosition(e,t){return e}getLineIndentColumn(e){return function(e){let t=0;for(const i of e){if(" "!==i&&"\t"!==i)break;t++}return t}(this.getLineContent(e))+1}};function Vt(e){return!(!e.options.overviewRuler||!e.options.overviewRuler.color)}function zt(e){return!!e.options.after||!!e.options.before}Wt=Nt=Mt([Pt(4,Dt.$D),Pt(5,f.L),Pt(6,_.JZ),Pt(7,Ot._Y)],Wt);class Gt{constructor(){this._decorationsTree0=new ce,this._decorationsTree1=new ce,this._injectedTextDecorationsTree=new ce}ensureAllNodesHaveRanges(e){this.getAll(e,0,!1,!1,!1)}_ensureNodesHaveRanges(e,t){for(const i of t)null===i.range&&(i.range=e.getRangeAt(i.cachedAbsoluteStart,i.cachedAbsoluteEnd));return t}getAllInInterval(e,t,i,s,n,r){const o=e.getVersionId(),a=this._intervalSearch(t,i,s,n,o,r);return this._ensureNodesHaveRanges(e,a)}_intervalSearch(e,t,i,s,n,r){const o=this._decorationsTree0.intervalSearch(e,t,i,s,n,r),a=this._decorationsTree1.intervalSearch(e,t,i,s,n,r),c=this._injectedTextDecorationsTree.intervalSearch(e,t,i,s,n,r);return o.concat(a).concat(c)}getInjectedTextInInterval(e,t,i,s){const n=e.getVersionId(),r=this._injectedTextDecorationsTree.intervalSearch(t,i,s,!1,n,!1);return this._ensureNodesHaveRanges(e,r).filter((e=>e.options.showIfCollapsed||!e.range.isEmpty()))}getAllInjectedText(e,t){const i=e.getVersionId(),s=this._injectedTextDecorationsTree.search(t,!1,i,!1);return this._ensureNodesHaveRanges(e,s).filter((e=>e.options.showIfCollapsed||!e.range.isEmpty()))}getAll(e,t,i,s,n){const r=e.getVersionId(),o=this._search(t,i,s,r,n);return this._ensureNodesHaveRanges(e,o)}_search(e,t,i,s,n){if(i)return this._decorationsTree1.search(e,t,s,n);{const i=this._decorationsTree0.search(e,t,s,n),r=this._decorationsTree1.search(e,t,s,n),o=this._injectedTextDecorationsTree.search(e,t,s,n);return i.concat(r).concat(o)}}collectNodesFromOwner(e){const t=this._decorationsTree0.collectNodesFromOwner(e),i=this._decorationsTree1.collectNodesFromOwner(e),s=this._injectedTextDecorationsTree.collectNodesFromOwner(e);return t.concat(i).concat(s)}collectNodesPostOrder(){const e=this._decorationsTree0.collectNodesPostOrder(),t=this._decorationsTree1.collectNodesPostOrder(),i=this._injectedTextDecorationsTree.collectNodesPostOrder();return e.concat(t).concat(i)}insert(e){zt(e)?this._injectedTextDecorationsTree.insert(e):Vt(e)?this._decorationsTree1.insert(e):this._decorationsTree0.insert(e)}delete(e){zt(e)?this._injectedTextDecorationsTree.delete(e):Vt(e)?this._decorationsTree1.delete(e):this._decorationsTree0.delete(e)}getNodeRange(e,t){const i=e.getVersionId();return t.cachedVersionId!==i&&this._resolveNode(t,i),null===t.range&&(t.range=e.getRangeAt(t.cachedAbsoluteStart,t.cachedAbsoluteEnd)),t.range}_resolveNode(e,t){zt(e)?this._injectedTextDecorationsTree.resolveNode(e,t):Vt(e)?this._decorationsTree1.resolveNode(e,t):this._decorationsTree0.resolveNode(e,t)}acceptReplace(e,t,i,s){this._decorationsTree0.acceptReplace(e,t,i,s),this._decorationsTree1.acceptReplace(e,t,i,s),this._injectedTextDecorationsTree.acceptReplace(e,t,i,s)}}function jt(e){return e.replace(/[^a-z0-9\-_]/gi," ")}class Kt{constructor(e){this.color=e.color||"",this.darkColor=e.darkColor||""}}class Yt extends Kt{constructor(e){super(e),this._resolvedColor=null,this.position="number"===typeof e.position?e.position:v.A5.Center}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=null}_resolveColor(e,t){if("string"===typeof e)return e;const i=e?t.getColor(e.id):null;return i?i.toString():""}}class qt{constructor(e){this.position=e?.position??v.ZS.Center,this.persistLane=e?.persistLane}}class $t extends Kt{constructor(e){super(e),this.position=e.position,this.sectionHeaderStyle=e.sectionHeaderStyle??null,this.sectionHeaderText=e.sectionHeaderText??null}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=void 0}_resolveColor(e,t){return"string"===typeof e?n.Q1.fromHex(e):t.getColor(e.id)}}class Qt{static from(e){return e instanceof Qt?e:new Qt(e)}constructor(e){this.content=e.content||"",this.inlineClassName=e.inlineClassName||null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.attachedData=e.attachedData||null,this.cursorStops=e.cursorStops||null}}class Xt{static register(e){return new Xt(e)}static createDynamic(e){return new Xt(e)}constructor(e){this.description=e.description,this.blockClassName=e.blockClassName?jt(e.blockClassName):null,this.blockDoesNotCollapse=e.blockDoesNotCollapse??null,this.blockIsAfterEnd=e.blockIsAfterEnd??null,this.blockPadding=e.blockPadding??null,this.stickiness=e.stickiness||0,this.zIndex=e.zIndex||0,this.className=e.className?jt(e.className):null,this.shouldFillLineOnLineBreak=e.shouldFillLineOnLineBreak??null,this.hoverMessage=e.hoverMessage||null,this.glyphMarginHoverMessage=e.glyphMarginHoverMessage||null,this.lineNumberHoverMessage=e.lineNumberHoverMessage||null,this.isWholeLine=e.isWholeLine||!1,this.showIfCollapsed=e.showIfCollapsed||!1,this.collapseOnReplaceEdit=e.collapseOnReplaceEdit||!1,this.overviewRuler=e.overviewRuler?new Yt(e.overviewRuler):null,this.minimap=e.minimap?new $t(e.minimap):null,this.glyphMargin=e.glyphMarginClassName?new qt(e.glyphMargin):null,this.glyphMarginClassName=e.glyphMarginClassName?jt(e.glyphMarginClassName):null,this.linesDecorationsClassName=e.linesDecorationsClassName?jt(e.linesDecorationsClassName):null,this.lineNumberClassName=e.lineNumberClassName?jt(e.lineNumberClassName):null,this.linesDecorationsTooltip=e.linesDecorationsTooltip?c.jy(e.linesDecorationsTooltip):null,this.firstLineDecorationClassName=e.firstLineDecorationClassName?jt(e.firstLineDecorationClassName):null,this.marginClassName=e.marginClassName?jt(e.marginClassName):null,this.inlineClassName=e.inlineClassName?jt(e.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=e.beforeContentClassName?jt(e.beforeContentClassName):null,this.afterContentClassName=e.afterContentClassName?jt(e.afterContentClassName):null,this.after=e.after?Qt.from(e.after):null,this.before=e.before?Qt.from(e.before):null,this.hideInCommentTokens=e.hideInCommentTokens??!1,this.hideInStringTokens=e.hideInStringTokens??!1}}Xt.EMPTY=Xt.register({description:"empty"});const Zt=[Xt.register({description:"tracked-range-always-grows-when-typing-at-edges",stickiness:0}),Xt.register({description:"tracked-range-never-grows-when-typing-at-edges",stickiness:1}),Xt.register({description:"tracked-range-grows-only-when-typing-before",stickiness:2}),Xt.register({description:"tracked-range-grows-only-when-typing-after",stickiness:3})];function Jt(e){return e instanceof Xt?e:Xt.createDynamic(e)}class ei extends a.jG{constructor(e){super(),this.handleBeforeFire=e,this._actual=this._register(new o.vl),this.event=this._actual.event,this._affectedInjectedTextLines=null,this._deferredCnt=0,this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._affectsLineNumber=!1}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(){this._deferredCnt--,0===this._deferredCnt&&(this._shouldFireDeferred&&this.doFire(),this._affectedInjectedTextLines?.clear(),this._affectedInjectedTextLines=null)}recordLineAffectedByInjectedText(e){this._affectedInjectedTextLines||(this._affectedInjectedTextLines=new Set),this._affectedInjectedTextLines.add(e)}checkAffectedAndFire(e){this._affectsMinimap||=!!e.minimap?.position,this._affectsOverviewRuler||=!!e.overviewRuler?.color,this._affectsGlyphMargin||=!!e.glyphMarginClassName,this._affectsLineNumber||=!!e.lineNumberClassName,this.tryFire()}fire(){this._affectsMinimap=!0,this._affectsOverviewRuler=!0,this._affectsGlyphMargin=!0,this.tryFire()}tryFire(){0===this._deferredCnt?this.doFire():this._shouldFireDeferred=!0}doFire(){this.handleBeforeFire(this._affectedInjectedTextLines);const e={affectsMinimap:this._affectsMinimap,affectsOverviewRuler:this._affectsOverviewRuler,affectsGlyphMargin:this._affectsGlyphMargin,affectsLineNumber:this._affectsLineNumber};this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._actual.fire(e)}}class ti extends a.jG{constructor(){super(),this._fastEmitter=this._register(new o.vl),this.fastEvent=this._fastEmitter.event,this._slowEmitter=this._register(new o.vl),this.slowEvent=this._slowEmitter.event,this._deferredCnt=0,this._deferredEvent=null}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(e=null){if(this._deferredCnt--,0===this._deferredCnt&&null!==this._deferredEvent){this._deferredEvent.rawContentChangedEvent.resultingSelection=e;const t=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(t),this._slowEmitter.fire(t)}}fire(e){this._deferredCnt>0?this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e:(this._fastEmitter.fire(e),this._slowEmitter.fire(e))}}},20761:(e,t,i)=>{"use strict";i.d(t,{_:()=>n});var s=i(5662);class n extends s.jG{constructor(){super(...arguments),this._isDisposed=!1}dispose(){super.dispose(),this._isDisposed=!0}assertNotDisposed(){if(this._isDisposed)throw new Error("TextModelPart is disposed!")}}},43264:(e,t,i)=>{"use strict";i.d(t,{W5:()=>g,dr:()=>l,hB:()=>d,lt:()=>c,wC:()=>u});var s=i(91508),n=i(81782),r=i(83069),o=i(36677),a=i(16223);class c{constructor(e,t,i,s){this.searchString=e,this.isRegex=t,this.matchCase=i,this.wordSeparators=s}parseSearchRequest(){if(""===this.searchString)return null;let e;e=this.isRegex?function(e){if(!e||0===e.length)return!1;for(let t=0,i=e.length;t<i;t++){const s=e.charCodeAt(t);if(10===s)return!0;if(92===s){if(t++,t>=i)break;const s=e.charCodeAt(t);if(110===s||114===s||87===s)return!0}}return!1}(this.searchString):this.searchString.indexOf("\n")>=0;let t=null;try{t=s.OS(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0,unicode:!0})}catch(r){return null}if(!t)return null;let i=!this.isRegex&&!e;return i&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(i=this.matchCase),new a.L5(t,this.wordSeparators?(0,n.i)(this.wordSeparators,[]):null,i?this.searchString:null)}}function l(e,t,i){if(!i)return new a.Dg(e,null);const s=[];for(let n=0,r=t.length;n<r;n++)s[n]=t[n];return new a.Dg(e,s)}class h{constructor(e){const t=[];let i=0;for(let s=0,n=e.length;s<n;s++)10===e.charCodeAt(s)&&(t[i++]=s);this._lineFeedsOffsets=t}findLineFeedCountBeforeOffset(e){const t=this._lineFeedsOffsets;let i=0,s=t.length-1;if(-1===s)return 0;if(e<=t[0])return 0;for(;i<s;){const n=i+((s-i)/2|0);t[n]>=e?s=n-1:t[n+1]>=e?(i=n,s=n):i=n+1}return i+1}}class d{static findMatches(e,t,i,s,n){const r=t.parseSearchRequest();return r?r.regex.multiline?this._doFindMatchesMultiline(e,i,new g(r.wordSeparators,r.regex),s,n):this._doFindMatchesLineByLine(e,i,r,s,n):[]}static _getMultilineMatchRange(e,t,i,s,n,r){let a,c,l=0;if(s?(l=s.findLineFeedCountBeforeOffset(n),a=t+n+l):a=t+n,s){const e=s.findLineFeedCountBeforeOffset(n+r.length)-l;c=a+r.length+e}else c=a+r.length;const h=e.getPositionAt(a),d=e.getPositionAt(c);return new o.Q(h.lineNumber,h.column,d.lineNumber,d.column)}static _doFindMatchesMultiline(e,t,i,s,n){const r=e.getOffsetAt(t.getStartPosition()),o=e.getValueInRange(t,1),a="\r\n"===e.getEOL()?new h(o):null,c=[];let d,u=0;for(i.reset(0);d=i.next(o);)if(c[u++]=l(this._getMultilineMatchRange(e,r,o,a,d.index,d[0]),d,s),u>=n)return c;return c}static _doFindMatchesLineByLine(e,t,i,s,n){const r=[];let o=0;if(t.startLineNumber===t.endLineNumber){const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return o=this._findMatchesInLine(i,a,t.startLineNumber,t.startColumn-1,o,r,s,n),r}const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);o=this._findMatchesInLine(i,a,t.startLineNumber,t.startColumn-1,o,r,s,n);for(let c=t.startLineNumber+1;c<t.endLineNumber&&o<n;c++)o=this._findMatchesInLine(i,e.getLineContent(c),c,0,o,r,s,n);if(o<n){const a=e.getLineContent(t.endLineNumber).substring(0,t.endColumn-1);o=this._findMatchesInLine(i,a,t.endLineNumber,0,o,r,s,n)}return r}static _findMatchesInLine(e,t,i,s,n,r,c,h){const d=e.wordSeparators;if(!c&&e.simpleSearch){const c=e.simpleSearch,l=c.length,g=t.length;let p=-l;for(;-1!==(p=t.indexOf(c,p+l));)if((!d||u(d,t,g,p,l))&&(r[n++]=new a.Dg(new o.Q(i,p+1+s,i,p+1+l+s),null),n>=h))return n;return n}const p=new g(e.wordSeparators,e.regex);let m;p.reset(0);do{if(m=p.next(t),m&&(r[n++]=l(new o.Q(i,m.index+1+s,i,m.index+1+m[0].length+s),m,c),n>=h))return n}while(m);return n}static findNextMatch(e,t,i,s){const n=t.parseSearchRequest();if(!n)return null;const r=new g(n.wordSeparators,n.regex);return n.regex.multiline?this._doFindNextMatchMultiline(e,i,r,s):this._doFindNextMatchLineByLine(e,i,r,s)}static _doFindNextMatchMultiline(e,t,i,s){const n=new r.y(t.lineNumber,1),a=e.getOffsetAt(n),c=e.getLineCount(),d=e.getValueInRange(new o.Q(n.lineNumber,n.column,c,e.getLineMaxColumn(c)),1),u="\r\n"===e.getEOL()?new h(d):null;i.reset(t.column-1);const g=i.next(d);return g?l(this._getMultilineMatchRange(e,a,d,u,g.index,g[0]),g,s):1!==t.lineNumber||1!==t.column?this._doFindNextMatchMultiline(e,new r.y(1,1),i,s):null}static _doFindNextMatchLineByLine(e,t,i,s){const n=e.getLineCount(),r=t.lineNumber,o=e.getLineContent(r),a=this._findFirstMatchInLine(i,o,r,t.column,s);if(a)return a;for(let c=1;c<=n;c++){const t=(r+c-1)%n,o=e.getLineContent(t+1),a=this._findFirstMatchInLine(i,o,t+1,1,s);if(a)return a}return null}static _findFirstMatchInLine(e,t,i,s,n){e.reset(s-1);const r=e.next(t);return r?l(new o.Q(i,r.index+1,i,r.index+1+r[0].length),r,n):null}static findPreviousMatch(e,t,i,s){const n=t.parseSearchRequest();if(!n)return null;const r=new g(n.wordSeparators,n.regex);return n.regex.multiline?this._doFindPreviousMatchMultiline(e,i,r,s):this._doFindPreviousMatchLineByLine(e,i,r,s)}static _doFindPreviousMatchMultiline(e,t,i,s){const n=this._doFindMatchesMultiline(e,new o.Q(1,1,t.lineNumber,t.column),i,s,9990);if(n.length>0)return n[n.length-1];const a=e.getLineCount();return t.lineNumber!==a||t.column!==e.getLineMaxColumn(a)?this._doFindPreviousMatchMultiline(e,new r.y(a,e.getLineMaxColumn(a)),i,s):null}static _doFindPreviousMatchLineByLine(e,t,i,s){const n=e.getLineCount(),r=t.lineNumber,o=e.getLineContent(r).substring(0,t.column-1),a=this._findLastMatchInLine(i,o,r,s);if(a)return a;for(let c=1;c<=n;c++){const t=(n+r-c-1)%n,o=e.getLineContent(t+1),a=this._findLastMatchInLine(i,o,t+1,s);if(a)return a}return null}static _findLastMatchInLine(e,t,i,s){let n,r=null;for(e.reset(0);n=e.next(t);)r=l(new o.Q(i,n.index+1,i,n.index+1+n[0].length),n,s);return r}}function u(e,t,i,s,n){return function(e,t,i,s,n){if(0===s)return!0;const r=t.charCodeAt(s-1);if(0!==e.get(r))return!0;if(13===r||10===r)return!0;if(n>0){const i=t.charCodeAt(s);if(0!==e.get(i))return!0}return!1}(e,t,0,s,n)&&function(e,t,i,s,n){if(s+n===i)return!0;const r=t.charCodeAt(s+n);if(0!==e.get(r))return!0;if(13===r||10===r)return!0;if(n>0){const i=t.charCodeAt(s+n-1);if(0!==e.get(i))return!0}return!1}(e,t,i,s,n)}class g{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){const t=e.length;let i;do{if(this._prevMatchStartIndex+this._prevMatchLength===t)return null;if(i=this._searchRegex.exec(e),!i)return null;const n=i.index,r=i[0].length;if(n===this._prevMatchStartIndex&&r===this._prevMatchLength){if(0===r){s.Z5(e,t,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=n,this._prevMatchLength=r,!this._wordSeparators||u(this._wordSeparators,e,t,n,r))return i}while(i);return null}}},78049:(e,t,i)=>{"use strict";function s(e,t){let i=0,s=0;const n=e.length;for(;s<n;){const n=e.charCodeAt(s);if(32===n)i++;else{if(9!==n)break;i=i-i%t+t}s++}return s===n?-1:i}i.d(t,{G:()=>s})},73848:(e,t,i)=>{"use strict";i.r(t),i.d(t,{KeyMod:()=>u,createMonacoBaseAPI:()=>g});var s=i(18447),n=i(41234),r=i(24939),o=i(79400),a=i(83069),c=i(36677),l=i(75326),h=i(62083),d=i(35015);class u{static{this.CtrlCmd=2048}static{this.Shift=1024}static{this.Alt=512}static{this.WinCtrl=256}static chord(e,t){return(0,r.m5)(e,t)}}function g(){return{editor:void 0,languages:void 0,CancellationTokenSource:s.Qi,Emitter:n.vl,KeyCode:d.DD,KeyMod:u,Position:a.y,Range:c.Q,Selection:l.L,SelectionDirection:d.SB,MarkerSeverity:d.cj,MarkerTag:d.d_,Uri:o.r,Token:h.ou}}},16545:(e,t,i)=>{"use strict";i.r(t),i.d(t,{BaseEditorSimpleWorker:()=>Y,EditorSimpleWorker:()=>q,create:()=>$});var s=i(83993),n=i(36677),r=i(60534);class o{constructor(e,t,i){const s=new Uint8Array(e*t);for(let n=0,r=e*t;n<r;n++)s[n]=i;this._data=s,this.rows=e,this.cols=t}get(e,t){return this._data[e*this.cols+t]}set(e,t,i){this._data[e*this.cols+t]=i}}class a{constructor(e){let t=0,i=0;for(let n=0,r=e.length;n<r;n++){const[s,r,o]=e[n];r>t&&(t=r),s>i&&(i=s),o>i&&(i=o)}t++,i++;const s=new o(i,t,0);for(let n=0,r=e.length;n<r;n++){const[t,i,r]=e[n];s.set(t,i,r)}this._states=s,this._maxCharCode=t}nextState(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)}}let c=null;let l=null;class h{static _createLink(e,t,i,s,n){let r=n-1;do{const i=t.charCodeAt(r);if(2!==e.get(i))break;r--}while(r>s);if(s>0){const e=t.charCodeAt(s-1),i=t.charCodeAt(r);(40===e&&41===i||91===e&&93===i||123===e&&125===i)&&r--}return{range:{startLineNumber:i,startColumn:s+1,endLineNumber:i,endColumn:r+2},url:t.substring(s,r+1)}}static computeLinks(e,t=function(){return null===c&&(c=new a([[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]])),c}()){const i=function(){if(null===l){l=new r.V(0);const e=" \t<>'\"\u3001\u3002\uff61\uff64\uff0c\uff0e\uff1a\uff1b\u2018\u3008\u300c\u300e\u3014\uff08\uff3b\uff5b\uff62\uff63\uff5d\uff3d\uff09\u3015\u300f\u300d\u3009\u2019\uff40\uff5e\u2026";for(let i=0;i<e.length;i++)l.set(e.charCodeAt(i),1);const t=".,;:";for(let i=0;i<t.length;i++)l.set(t.charCodeAt(i),2)}return l}(),s=[];for(let n=1,r=e.getLineCount();n<=r;n++){const r=e.getLineContent(n),o=r.length;let a=0,c=0,l=0,d=1,u=!1,g=!1,p=!1,m=!1;for(;a<o;){let e=!1;const o=r.charCodeAt(a);if(13===d){let t;switch(o){case 40:u=!0,t=0;break;case 41:t=u?0:1;break;case 91:p=!0,g=!0,t=0;break;case 93:p=!1,t=g?0:1;break;case 123:m=!0,t=0;break;case 125:t=m?0:1;break;case 39:case 34:case 96:t=l===o?1:39===l||34===l||96===l?0:1;break;case 42:t=42===l?1:0;break;case 124:t=124===l?1:0;break;case 32:t=p?0:1;break;default:t=i.get(o)}1===t&&(s.push(h._createLink(i,r,n,c,a)),e=!0)}else if(12===d){let t;91===o?(g=!0,t=0):t=i.get(o),1===t?e=!0:d=13}else d=t.nextState(d,o),0===d&&(e=!0);e&&(d=1,u=!1,g=!1,m=!1,c=a+1,l=o),a++}13===d&&s.push(h._createLink(i,r,n,c,o))}return s}}class d{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}static{this.INSTANCE=new d}navigateValueSet(e,t,i,s,n){if(e&&t){const i=this.doNavigateValueSet(t,n);if(i)return{range:e,value:i}}if(i&&s){const e=this.doNavigateValueSet(s,n);if(e)return{range:i,value:e}}return null}doNavigateValueSet(e,t){const i=this.numberReplace(e,t);return null!==i?i:this.textReplace(e,t)}numberReplace(e,t){const i=Math.pow(10,e.length-(e.lastIndexOf(".")+1));let s=Number(e);const n=parseFloat(e);return isNaN(s)||isNaN(n)||s!==n?null:0!==s||t?(s=Math.floor(s*i),s+=t?i:-i,String(s/i)):null}textReplace(e,t){return this.valueSetsReplace(this._defaultValueSet,e,t)}valueSetsReplace(e,t,i){let s=null;for(let n=0,r=e.length;null===s&&n<r;n++)s=this.valueSetReplace(e[n],t,i);return s}valueSetReplace(e,t,i){let s=e.indexOf(t);return s>=0?(s+=i?1:-1,s<0?s=e.length-1:s%=e.length,e[s]):null}}var u=i(73848),g=i(80718),p=i(78381),m=i(74855),f=i(41845),_=i(87723),v=i(91508),C=i(66782),E=i(86571);class b{computeDiff(e,t,i){const s=new T(e,t,{maxComputationTime:i.maxComputationTimeMs,shouldIgnoreTrimWhitespace:i.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),r=[];let o=null;for(const a of s.changes){let e,t;e=0===a.originalEndLineNumber?new E.M(a.originalStartLineNumber+1,a.originalStartLineNumber+1):new E.M(a.originalStartLineNumber,a.originalEndLineNumber+1),t=0===a.modifiedEndLineNumber?new E.M(a.modifiedStartLineNumber+1,a.modifiedStartLineNumber+1):new E.M(a.modifiedStartLineNumber,a.modifiedEndLineNumber+1);let i=new _.wm(e,t,a.charChanges?.map((e=>new _.q6(new n.Q(e.originalStartLineNumber,e.originalStartColumn,e.originalEndLineNumber,e.originalEndColumn),new n.Q(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)))));o&&(o.modified.endLineNumberExclusive!==i.modified.startLineNumber&&o.original.endLineNumberExclusive!==i.original.startLineNumber||(i=new _.wm(o.original.join(i.original),o.modified.join(i.modified),o.innerChanges&&i.innerChanges?o.innerChanges.concat(i.innerChanges):void 0),r.pop())),r.push(i),o=i}return(0,C.Ft)((()=>(0,C.Xo)(r,((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 f.p(r,[],s.quitEarly)}}function S(e,t,i,n){return new s.uP(e,t,i).ComputeDiff(n)}class y{constructor(e){const t=[],i=[];for(let s=0,n=e.length;s<n;s++)t[s]=x(e[s],1),i[s]=k(e[s],1);this.lines=e,this._startColumns=t,this._endColumns=i}getElements(){const e=[];for(let t=0,i=this.lines.length;t<i;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,i){const s=[],n=[],r=[];let o=0;for(let a=t;a<=i;a++){const t=this.lines[a],c=e?this._startColumns[a]:1,l=e?this._endColumns[a]:t.length+1;for(let e=c;e<l;e++)s[o]=t.charCodeAt(e-1),n[o]=a+1,r[o]=e,o++;!e&&a<i&&(s[o]=10,n[o]=a+1,r[o]=t.length+1,o++)}return new w(s,n,r)}}class w{constructor(e,t,i){this._charCodes=e,this._lineNumbers=t,this._columns=i}toString(){return"["+this._charCodes.map(((e,t)=>(10===e?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[t]},${this._columns[t]})`)).join(", ")+"]"}_assertIndex(e,t){if(e<0||e>=t.length)throw new 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-1===e?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),10===this._charCodes[e]?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-1===e?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),10===this._charCodes[e]?1:this._columns[e]+1)}}class R{constructor(e,t,i,s,n,r,o,a){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=i,this.originalEndColumn=s,this.modifiedStartLineNumber=n,this.modifiedStartColumn=r,this.modifiedEndLineNumber=o,this.modifiedEndColumn=a}static createFromDiffChange(e,t,i){const s=t.getStartLineNumber(e.originalStart),n=t.getStartColumn(e.originalStart),r=t.getEndLineNumber(e.originalStart+e.originalLength-1),o=t.getEndColumn(e.originalStart+e.originalLength-1),a=i.getStartLineNumber(e.modifiedStart),c=i.getStartColumn(e.modifiedStart),l=i.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),h=i.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new R(s,n,r,o,a,c,l,h)}}class L{constructor(e,t,i,s,n){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=i,this.modifiedEndLineNumber=s,this.charChanges=n}static createFromDiffResult(e,t,i,s,n,r,o){let a,c,l,h,d;if(0===t.originalLength?(a=i.getStartLineNumber(t.originalStart)-1,c=0):(a=i.getStartLineNumber(t.originalStart),c=i.getEndLineNumber(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(l=s.getStartLineNumber(t.modifiedStart)-1,h=0):(l=s.getStartLineNumber(t.modifiedStart),h=s.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),r&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&n()){const r=i.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),a=s.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);if(r.getElements().length>0&&a.getElements().length>0){let e=S(r,a,n,!0).changes;o&&(e=function(e){if(e.length<=1)return e;const t=[e[0]];let i=t[0];for(let s=1,n=e.length;s<n;s++){const n=e[s],r=n.originalStart-(i.originalStart+i.originalLength),o=n.modifiedStart-(i.modifiedStart+i.modifiedLength);Math.min(r,o)<3?(i.originalLength=n.originalStart+n.originalLength-i.originalStart,i.modifiedLength=n.modifiedStart+n.modifiedLength-i.modifiedStart):(t.push(n),i=n)}return t}(e)),d=[];for(let t=0,i=e.length;t<i;t++)d.push(R.createFromDiffChange(e[t],r,a))}}return new L(a,c,l,h,d)}}class T{constructor(e,t,i){this.shouldComputeCharChanges=i.shouldComputeCharChanges,this.shouldPostProcessCharChanges=i.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=i.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=i.shouldMakePrettyDiff,this.originalLines=e,this.modifiedLines=t,this.original=new y(e),this.modified=new y(t),this.continueLineDiff=A(i.maxComputationTime),this.continueCharDiff=A(0===i.maxComputationTime?0:Math.min(i.maxComputationTime,5e3))}computeDiff(){if(1===this.original.lines.length&&0===this.original.lines[0].length)return 1===this.modified.lines.length&&0===this.modified.lines[0].length?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(1===this.modified.lines.length&&0===this.modified.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const e=S(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=e.changes,i=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){const e=[];for(let i=0,s=t.length;i<s;i++)e.push(L.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[i],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:i,changes:e}}const s=[];let n=0,r=0;for(let o=-1,a=t.length;o<a;o++){const e=o+1<a?t[o+1]:null,i=e?e.originalStart:this.originalLines.length,c=e?e.modifiedStart:this.modifiedLines.length;for(;n<i&&r<c;){const e=this.originalLines[n],t=this.modifiedLines[r];if(e!==t){{let i=x(e,1),o=x(t,1);for(;i>1&&o>1;){if(e.charCodeAt(i-2)!==t.charCodeAt(o-2))break;i--,o--}(i>1||o>1)&&this._pushTrimWhitespaceCharChange(s,n+1,1,i,r+1,1,o)}{let i=k(e,1),o=k(t,1);const a=e.length+1,c=t.length+1;for(;i<a&&o<c;){if(e.charCodeAt(i-1)!==e.charCodeAt(o-1))break;i++,o++}(i<a||o<c)&&this._pushTrimWhitespaceCharChange(s,n+1,i,a,r+1,o,c)}}n++,r++}e&&(s.push(L.createFromDiffResult(this.shouldIgnoreTrimWhitespace,e,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),n+=e.originalLength,r+=e.modifiedLength)}return{quitEarly:i,changes:s}}_pushTrimWhitespaceCharChange(e,t,i,s,n,r,o){if(this._mergeTrimWhitespaceCharChange(e,t,i,s,n,r,o))return;let a;this.shouldComputeCharChanges&&(a=[new R(t,i,t,s,n,r,n,o)]),e.push(new L(t,t,n,n,a))}_mergeTrimWhitespaceCharChange(e,t,i,s,n,r,o){const a=e.length;if(0===a)return!1;const c=e[a-1];return 0!==c.originalEndLineNumber&&0!==c.modifiedEndLineNumber&&(c.originalEndLineNumber===t&&c.modifiedEndLineNumber===n?(this.shouldComputeCharChanges&&c.charChanges&&c.charChanges.push(new R(t,i,t,s,n,r,n,o)),!0):c.originalEndLineNumber+1===t&&c.modifiedEndLineNumber+1===n&&(c.originalEndLineNumber=t,c.modifiedEndLineNumber=n,this.shouldComputeCharChanges&&c.charChanges&&c.charChanges.push(new R(t,i,t,s,n,r,n,o)),!0))}}function x(e,t){const i=v.HG(e);return-1===i?t:i+1}function k(e,t){const i=v.lT(e);return-1===i?t:i+2}function A(e){if(0===e)return()=>!0;const t=Date.now();return()=>Date.now()-t<e}var N=i(26746);const I=()=>new b,O=()=>new N.D8;var D=i(10146),M=i(36456),P=i(47661);function F(e){const t=[];for(const i of e){const e=Number(i);(e||0===e&&""!==i.replace(/\s/g,""))&&t.push(e)}return t}function U(e,t,i,s){return{red:e/255,blue:i/255,green:t/255,alpha:s}}function H(e,t){const i=t.index,s=t[0].length;if(!i)return;const n=e.positionAt(i);return{startLineNumber:n.lineNumber,startColumn:n.column,endLineNumber:n.lineNumber,endColumn:n.column+s}}function B(e,t){if(!e)return;const i=P.Q1.Format.CSS.parseHex(t);return i?{range:e,color:U(i.rgba.r,i.rgba.g,i.rgba.b,i.rgba.a)}:void 0}function W(e,t,i){if(!e||1!==t.length)return;const s=F(t[0].values());return{range:e,color:U(s[0],s[1],s[2],i?s[3]:1)}}function V(e,t,i){if(!e||1!==t.length)return;const s=F(t[0].values()),n=new P.Q1(new P.hB(s[0],s[1]/100,s[2]/100,i?s[3]:1));return{range:e,color:U(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}}function z(e,t){return"string"===typeof e?[...e.matchAll(t)]:e.findMatches(t)}function G(e){return e&&"function"===typeof e.getValue&&"function"===typeof e.positionAt?function(e){const t=[],i=z(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/gm);if(i.length>0)for(const s of i){const i=s.filter((e=>void 0!==e)),n=i[1],r=i[2];if(!r)continue;let o;if("rgb"===n){const t=/^\(\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;o=W(H(e,s),z(r,t),!1)}else if("rgba"===n){const t=/^\(\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;o=W(H(e,s),z(r,t),!0)}else if("hsl"===n){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;o=V(H(e,s),z(r,t),!1)}else if("hsla"===n){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;o=V(H(e,s),z(r,t),!0)}else"#"===n&&(o=B(H(e,s),n+r));o&&t.push(o)}return t}(e):[]}var j=i(56691),K=i(47443);class Y{constructor(){this._workerTextModelSyncServer=new K.WorkerTextModelSyncServer}dispose(){}_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,i){const s=this._getModel(e);return s?m.UnicodeTextModelHighlighter.computeUnicodeHighlights(s,t,i):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async $findSectionHeaders(e,t){const i=this._getModel(e);return i?(0,j.findSectionHeaders)(i,t):[]}async $computeDiff(e,t,i,s){const n=this._getModel(e),r=this._getModel(t);if(!n||!r)return null;return q.computeDiff(n,r,i,s)}static computeDiff(e,t,i,s){const n="advanced"===s?O():I(),r=e.getLinesContent(),o=t.getLinesContent(),a=n.computeDiff(r,o,i);function c(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:!(a.changes.length>0)&&this._modelsAreIdentical(e,t),quitEarly:a.hitTimeout,changes:c(a.changes),moves:a.moves.map((e=>[e.lineRangeMapping.original.startLineNumber,e.lineRangeMapping.original.endLineNumberExclusive,e.lineRangeMapping.modified.startLineNumber,e.lineRangeMapping.modified.endLineNumberExclusive,c(e.changes)]))}}static _modelsAreIdentical(e,t){const i=e.getLineCount();if(i!==t.getLineCount())return!1;for(let s=1;s<=i;s++){if(e.getLineContent(s)!==t.getLineContent(s))return!1}return!0}static{this._diffLimit=1e5}async $computeMoreMinimalEdits(e,t,i){const r=this._getModel(e);if(!r)return t;const o=[];let a;t=t.slice(0).sort(((e,t)=>{if(e.range&&t.range)return n.Q.compareRangesUsingStarts(e.range,t.range);return(e.range?0:1)-(t.range?0:1)}));let c=0;for(let s=1;s<t.length;s++)n.Q.getEndPosition(t[c].range).equals(n.Q.getStartPosition(t[s].range))?(t[c].range=n.Q.fromPositions(n.Q.getStartPosition(t[c].range),n.Q.getEndPosition(t[s].range)),t[c].text+=t[s].text):(c++,t[c]=t[s]);t.length=c+1;for(let{range:l,text:h,eol:d}of t){if("number"===typeof d&&(a=d),n.Q.isEmpty(l)&&!h)continue;const e=r.getValueInRange(l);if(h=h.replace(/\r\n|\n|\r/g,r.eol),e===h)continue;if(Math.max(h.length,e.length)>q._diffLimit){o.push({range:l,text:h});continue}const t=(0,s.F1)(e,h,i),c=r.offsetAt(n.Q.lift(l).getStartPosition());for(const i of t){const e=r.positionAt(c+i.originalStart),t=r.positionAt(c+i.originalStart+i.originalLength),s={text:h.substr(i.modifiedStart,i.modifiedLength),range:{startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:t.lineNumber,endColumn:t.column}};r.getValueInRange(s.range)!==s.text&&o.push(s)}}return"number"===typeof a&&o.push({eol:a,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),o}async $computeLinks(e){const t=this._getModel(e);return t?function(e){return e&&"function"===typeof e.getLineCount&&"function"===typeof e.getLineContent?h.computeLinks(e):[]}(t):null}async $computeDefaultDocumentColors(e){const t=this._getModel(e);return t?G(t):null}static{this._suggestionsLimit=1e4}async $textualSuggest(e,t,i,s){const n=new p.W,r=new RegExp(i,s),o=new Set;e:for(const a of e){const e=this._getModel(a);if(e)for(const i of e.words(r))if(i!==t&&isNaN(Number(i))&&(o.add(i),o.size>q._suggestionsLimit))break e}return{words:Array.from(o),duration:n.elapsed()}}async $computeWordRanges(e,t,i,s){const n=this._getModel(e);if(!n)return Object.create(null);const r=new RegExp(i,s),o=Object.create(null);for(let a=t.startLineNumber;a<t.endLineNumber;a++){const e=n.getLineWords(a,r);for(const t of e){if(!isNaN(Number(t.word)))continue;let e=o[t.word];e||(e=[],o[t.word]=e),e.push({startLineNumber:a,startColumn:t.startColumn,endLineNumber:a,endColumn:t.endColumn})}}return o}async $navigateValueSet(e,t,i,s,n){const r=this._getModel(e);if(!r)return null;const o=new RegExp(s,n);t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1});const a=r.getValueInRange(t),c=r.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},o);if(!c)return null;const l=r.getValueInRange(c);return d.INSTANCE.navigateValueSet(t,a,c,l,i)}}class q extends Y{constructor(e,t){super(),this._host=e,this._foreignModuleFactory=t,this._foreignModule=null}async $ping(){return"pong"}$loadForeignModule(e,t,s){const n={host:(0,D.kT)(s,((e,t)=>this._host.$fhr(e,t))),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(n,t),Promise.resolve((0,D.V0)(this._foreignModule))):new Promise(((s,r)=>{const o=e=>{this._foreignModule=e.create(n,t),s((0,D.V0)(this._foreignModule))};{const t=M.zl.asBrowserUri(`${e}.js`).toString(!0);i(9204)(`${t}`).then(o).catch(r)}}))}$fmr(e,t){if(!this._foreignModule||"function"!==typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(i){return Promise.reject(i)}}}function $(e){return new q(g.EditorWorkerHost.getChannel(e),null)}"function"===typeof importScripts&&(globalThis.monaco=(0,u.createMonacoBaseAPI)())},10920:(e,t,i)=>{"use strict";i.r(t),i.d(t,{IEditorWorkerService:()=>s});const s=(0,i(63591).u1)("editorWorkerService")},80718:(e,t,i)=>{"use strict";i.r(t),i.d(t,{EditorWorkerHost:()=>s});class s{static{this.CHANNEL_NAME="editorWorkerHost"}static getChannel(e){return e.getChannel(s.CHANNEL_NAME)}static setChannel(e,t){e.setChannel(s.CHANNEL_NAME,t)}}},56691:(e,t,i)=>{"use strict";i.r(t),i.d(t,{findSectionHeaders:()=>r});const s=new RegExp("\\bMARK:\\s*(.*)$","d"),n=/^-+|-+$/g;function r(e,t){let i=[];if(t.findRegionSectionHeaders&&t.foldingRules?.markers){const s=function(e,t){const i=[],s=e.getLineCount();for(let n=1;n<=s;n++){const s=e.getLineContent(n),r=s.match(t.foldingRules.markers.start);if(r){const e={startLineNumber:n,startColumn:r[0].length+1,endLineNumber:n,endColumn:s.length+1};if(e.endColumn>e.startColumn){const t={range:e,...a(s.substring(r[0].length)),shouldBeInComments:!1};(t.text||t.hasSeparatorLine)&&i.push(t)}}}return i}(e,t);i=i.concat(s)}if(t.findMarkSectionHeaders){const t=function(e){const t=[],i=e.getLineCount();for(let s=1;s<=i;s++){o(e.getLineContent(s),s,t)}return t}(e);i=i.concat(t)}return i}function o(e,t,i){s.lastIndex=0;const n=s.exec(e);if(n){const e={startLineNumber:t,startColumn:n.indices[1][0]+1,endLineNumber:t,endColumn:n.indices[1][1]+1};if(e.endColumn>e.startColumn){const t={range:e,...a(n[1]),shouldBeInComments:!0};(t.text||t.hasSeparatorLine)&&i.push(t)}}}function a(e){const t=(e=e.trim()).startsWith("-");return{text:e=e.replace(n,""),hasSeparatorLine:t}}},53068:(e,t,i)=>{"use strict";i.r(t),i.d(t,{getIconClasses:()=>h});var s=i(36456),n=i(89403),r=i(79400),o=i(83941),a=i(7291),c=i(25689);const l=/(?:\/|^)(?:([^\/]+)\/)?([^\/]+)$/;function h(e,t,i,h,u){if(c.L.isThemeIcon(u))return[`codicon-${u.id}`,"predefined-file-icon"];if(r.r.isUri(u))return[];const g=h===a.p.ROOT_FOLDER?["rootfolder-icon"]:h===a.p.FOLDER?["folder-icon"]:["file-icon"];if(i){let r;if(i.scheme===s.ny.data){r=n.B6.parseMetaData(i).get(n.B6.META_DATA_LABEL)}else{const e=i.path.match(l);e?(r=d(e[2].toLowerCase()),e[1]&&g.push(`${d(e[1].toLowerCase())}-name-dir-icon`)):r=d(i.authority.toLowerCase())}if(h===a.p.ROOT_FOLDER)g.push(`${r}-root-name-folder-icon`);else if(h===a.p.FOLDER)g.push(`${r}-name-folder-icon`);else{if(r){if(g.push(`${r}-name-file-icon`),g.push("name-file-icon"),r.length<=255){const e=r.split(".");for(let t=1;t<e.length;t++)g.push(`${e.slice(t).join(".")}-ext-file-icon`)}g.push("ext-file-icon")}const a=function(e,t,i){if(!i)return null;let r=null;if(i.scheme===s.ny.data){const e=n.B6.parseMetaData(i).get(n.B6.META_DATA_MIME);e&&(r=t.getLanguageIdByMimeType(e))}else{const t=e.getModel(i);t&&(r=t.getLanguageId())}if(r&&r!==o.vH)return r;return t.guessLanguageIdByFilepathOrFirstLine(i)}(e,t,i);a&&g.push(`${d(a)}-lang-file-icon`)}}return g}function d(e){return e.replace(/[\s]/g,"/")}},32500:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ILanguageFeatureDebounceService:()=>g,LanguageFeatureDebounceService:()=>_});var s=i(85600),n=i(74320),r=i(1592),o=i(97035),a=i(14718),c=i(63591),l=i(18801),h=i(36456),d=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},u=function(e,t){return function(i,s){t(i,s,e)}};const g=(0,c.u1)("ILanguageFeatureDebounceService");var p;!function(e){const t=new WeakMap;let i=0;e.of=function(e){let s=t.get(e);return void 0===s&&(s=++i,t.set(e,s)),s}}(p||(p={}));class m{constructor(e){this._default=e}get(e){return this._default}update(e,t){return this._default}default(){return this._default}}class f{constructor(e,t,i,s,r,o){this._logService=e,this._name=t,this._registry=i,this._default=s,this._min=r,this._max=o,this._cache=new n.qK(50,.7)}_key(e){return e.id+this._registry.all(e).reduce(((e,t)=>(0,s.sN)(p.of(t),e)),0)}get(e){const t=this._key(e),i=this._cache.get(t);return i?(0,r.qE)(i.value,this._min,this._max):this.default()}update(e,t){const i=this._key(e);let s=this._cache.get(i);s||(s=new r.mu(6),this._cache.set(i,s));const n=(0,r.qE)(s.update(t),this._min,this._max);return(0,h.v$)(e.uri,"output")||this._logService.trace(`[DEBOUNCE: ${this._name}] for ${e.uri.toString()} is ${n}ms`),n}_overall(){const e=new r.Uq;for(const[,t]of this._cache)e.update(t.value);return e.value}default(){const e=0|this._overall()||this._default;return(0,r.qE)(e,this._min,this._max)}}let _=class{constructor(e,t){this._logService=e,this._data=new Map,this._isDev=t.isExtensionDevelopment||!t.isBuilt}for(e,t,i){const s=i?.min??50,n=i?.max??s**2,r=i?.key??void 0,o=`${p.of(e)},${s}${r?","+r:""}`;let a=this._data.get(o);return a||(this._isDev?(this._logService.debug(`[DEBOUNCE: ${t}] is disabled in developed mode`),a=new m(1.5*s)):a=new f(this._logService,t,e,0|this._overallAverage()||1.5*s,s,n),this._data.set(o,a)),a}_overallAverage(){const e=new r.Uq;for(const t of this._data.values())e.update(t.default());return e.value}};_=d([u(0,l.rr),u(1,o.k)],_),(0,a.v)(g,_,1)},56942:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ILanguageFeaturesService:()=>s});const s=(0,i(63591).u1)("ILanguageFeaturesService")},76007:(e,t,i)=>{"use strict";i.r(t),i.d(t,{LanguageFeaturesService:()=>g});var s=i(41234),n=i(5662),r=i(16223),o=i(54459);function a(e){return"string"!==typeof e&&(Array.isArray(e)?e.every(a):!!e.exclusive)}class c{constructor(e,t,i,s,n){this.uri=e,this.languageId=t,this.notebookUri=i,this.notebookType=s,this.recursive=n}equals(e){return this.notebookType===e.notebookType&&this.languageId===e.languageId&&this.uri.toString()===e.uri.toString()&&this.notebookUri?.toString()===e.notebookUri?.toString()&&this.recursive===e.recursive}}class l{constructor(e){this._notebookInfoResolver=e,this._clock=0,this._entries=[],this._onDidChange=new s.vl,this.onDidChange=this._onDidChange.event}register(e,t){let i={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(i),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),(0,n.s)((()=>{if(i){const e=this._entries.indexOf(i);e>=0&&(this._entries.splice(e,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),i=void 0)}}))}has(e){return this.all(e).length>0}all(e){if(!e)return[];this._updateScores(e,!1);const t=[];for(const i of this._entries)i._score>0&&t.push(i.provider);return t}ordered(e,t=!1){const i=[];return this._orderedForEach(e,t,(e=>i.push(e.provider))),i}orderedGroups(e){const t=[];let i,s;return this._orderedForEach(e,!1,(e=>{i&&s===e._score?i.push(e.provider):(s=e._score,i=[e.provider],t.push(i))})),t}_orderedForEach(e,t,i){this._updateScores(e,t);for(const s of this._entries)s._score>0&&i(s)}_updateScores(e,t){const i=this._notebookInfoResolver?.(e.uri),s=i?new c(e.uri,e.getLanguageId(),i.uri,i.type,t):new c(e.uri,e.getLanguageId(),void 0,void 0,t);if(!this._lastCandidate?.equals(s)){this._lastCandidate=s;for(const i of this._entries)if(i._score=(0,o.f)(i.selector,s.uri,s.languageId,(0,r.vd)(e),s.notebookUri,s.notebookType),a(i.selector)&&i._score>0){if(!t){for(const e of this._entries)e._score=0;i._score=1e3;break}i._score=0}this._entries.sort(l._compareByScoreAndTime)}}static _compareByScoreAndTime(e,t){return e._score<t._score?1:e._score>t._score?-1:h(e.selector)&&!h(t.selector)?1:!h(e.selector)&&h(t.selector)?-1:e._time<t._time?1:e._time>t._time?-1:0}}function h(e){return"string"!==typeof e&&(Array.isArray(e)?e.some(h):Boolean(e.isBuiltin))}var d=i(56942),u=i(14718);class g{constructor(){this.referenceProvider=new l(this._score.bind(this)),this.renameProvider=new l(this._score.bind(this)),this.newSymbolNamesProvider=new l(this._score.bind(this)),this.codeActionProvider=new l(this._score.bind(this)),this.definitionProvider=new l(this._score.bind(this)),this.typeDefinitionProvider=new l(this._score.bind(this)),this.declarationProvider=new l(this._score.bind(this)),this.implementationProvider=new l(this._score.bind(this)),this.documentSymbolProvider=new l(this._score.bind(this)),this.inlayHintsProvider=new l(this._score.bind(this)),this.colorProvider=new l(this._score.bind(this)),this.codeLensProvider=new l(this._score.bind(this)),this.documentFormattingEditProvider=new l(this._score.bind(this)),this.documentRangeFormattingEditProvider=new l(this._score.bind(this)),this.onTypeFormattingEditProvider=new l(this._score.bind(this)),this.signatureHelpProvider=new l(this._score.bind(this)),this.hoverProvider=new l(this._score.bind(this)),this.documentHighlightProvider=new l(this._score.bind(this)),this.multiDocumentHighlightProvider=new l(this._score.bind(this)),this.selectionRangeProvider=new l(this._score.bind(this)),this.foldingRangeProvider=new l(this._score.bind(this)),this.linkProvider=new l(this._score.bind(this)),this.inlineCompletionsProvider=new l(this._score.bind(this)),this.inlineEditProvider=new l(this._score.bind(this)),this.completionProvider=new l(this._score.bind(this)),this.linkedEditingRangeProvider=new l(this._score.bind(this)),this.documentRangeSemanticTokensProvider=new l(this._score.bind(this)),this.documentSemanticTokensProvider=new l(this._score.bind(this)),this.documentDropEditProvider=new l(this._score.bind(this)),this.documentPasteEditProvider=new l(this._score.bind(this))}_score(e){return this._notebookTypeResolver?.(e)}}(0,u.v)(d.ILanguageFeaturesService,g,1)},17890:(e,t,i)=>{"use strict";i.r(t),i.d(t,{LanguageService:()=>h});var s=i(41234),n=i(5662),r=i(69259),o=i(25890),a=i(62083),c=i(83941),l=i(31308);class h extends n.jG{static{this.instanceCount=0}constructor(e=!1){super(),this._onDidRequestBasicLanguageFeatures=this._register(new s.vl),this.onDidRequestBasicLanguageFeatures=this._onDidRequestBasicLanguageFeatures.event,this._onDidRequestRichLanguageFeatures=this._register(new s.vl),this.onDidRequestRichLanguageFeatures=this._onDidRequestRichLanguageFeatures.event,this._onDidChange=this._register(new s.vl({leakWarningThreshold:200})),this.onDidChange=this._onDidChange.event,this._requestedBasicLanguages=new Set,this._requestedRichLanguages=new Set,h.instanceCount++,this._registry=this._register(new r.LanguagesRegistry(!0,e)),this.languageIdCodec=this._registry.languageIdCodec,this._register(this._registry.onDidChange((()=>this._onDidChange.fire())))}dispose(){h.instanceCount--,super.dispose()}isRegisteredLanguageId(e){return this._registry.isRegisteredLanguageId(e)}getLanguageIdByLanguageName(e){return this._registry.getLanguageIdByLanguageName(e)}getLanguageIdByMimeType(e){return this._registry.getLanguageIdByMimeType(e)}guessLanguageIdByFilepathOrFirstLine(e,t){const i=this._registry.guessLanguageIdByFilepathOrFirstLine(e,t);return(0,o.Fy)(i,null)}createById(e){return new d(this.onDidChange,(()=>this._createAndGetLanguageIdentifier(e)))}createByFilepathOrFirstLine(e,t){return new d(this.onDidChange,(()=>{const i=this.guessLanguageIdByFilepathOrFirstLine(e,t);return this._createAndGetLanguageIdentifier(i)}))}_createAndGetLanguageIdentifier(e){return e&&this.isRegisteredLanguageId(e)||(e=c.vH),e}requestBasicLanguageFeatures(e){this._requestedBasicLanguages.has(e)||(this._requestedBasicLanguages.add(e),this._onDidRequestBasicLanguageFeatures.fire(e))}requestRichLanguageFeatures(e){this._requestedRichLanguages.has(e)||(this._requestedRichLanguages.add(e),this.requestBasicLanguageFeatures(e),a.dG.getOrCreate(e),this._onDidRequestRichLanguageFeatures.fire(e))}}class d{constructor(e,t){this._value=(0,l.y0)(this,e,(()=>t())),this.onDidChange=s.Jh.fromObservable(this._value)}get languageId(){return this._value.get()}}},99908:(e,t,i)=>{"use strict";i.r(t),i.d(t,{clearPlatformLanguageAssociations:()=>p,getLanguageIds:()=>m,registerPlatformLanguageAssociation:()=>g});var s=i(46958),n=i(44320),r=i(36456),o=i(74027),a=i(89403),c=i(91508),l=i(83941);let h=[],d=[],u=[];function g(e,t=!1){!function(e,t,i){const n=function(e,t){return{id:e.id,mime:e.mime,filename:e.filename,extension:e.extension,filepattern:e.filepattern,firstline:e.firstline,userConfigured:t,filenameLowercase:e.filename?e.filename.toLowerCase():void 0,extensionLowercase:e.extension?e.extension.toLowerCase():void 0,filepatternLowercase:e.filepattern?(0,s.qg)(e.filepattern.toLowerCase()):void 0,filepatternOnPath:!!e.filepattern&&e.filepattern.indexOf(o.SA.sep)>=0}}(e,t);h.push(n),n.userConfigured?u.push(n):d.push(n);i&&!n.userConfigured&&h.forEach((e=>{e.mime===n.mime||e.userConfigured||(n.extension&&e.extension===n.extension&&console.warn(`Overwriting extension <<${n.extension}>> to now point to mime <<${n.mime}>>`),n.filename&&e.filename===n.filename&&console.warn(`Overwriting filename <<${n.filename}>> to now point to mime <<${n.mime}>>`),n.filepattern&&e.filepattern===n.filepattern&&console.warn(`Overwriting filepattern <<${n.filepattern}>> to now point to mime <<${n.mime}>>`),n.firstline&&e.firstline===n.firstline&&console.warn(`Overwriting firstline <<${n.firstline}>> to now point to mime <<${n.mime}>>`))}))}(e,!1,t)}function p(){h=h.filter((e=>e.userConfigured)),d=[]}function m(e,t){return function(e,t){let i;if(e)switch(e.scheme){case r.ny.file:i=e.fsPath;break;case r.ny.data:i=a.B6.parseMetaData(e).get(a.B6.META_DATA_LABEL);break;case r.ny.vscodeNotebookCell:i=void 0;break;default:i=e.path}if(!i)return[{id:"unknown",mime:n.K.unknown}];i=i.toLowerCase();const s=(0,o.P8)(i),g=f(i,s,u);if(g)return[g,{id:l.vH,mime:n.K.text}];const p=f(i,s,d);if(p)return[p,{id:l.vH,mime:n.K.text}];if(t){const e=function(e){(0,c.LU)(e)&&(e=e.substr(1));if(e.length>0)for(let t=h.length-1;t>=0;t--){const i=h[t];if(!i.firstline)continue;const s=e.match(i.firstline);if(s&&s.length>0)return i}return}(t);if(e)return[e,{id:l.vH,mime:n.K.text}]}return[{id:"unknown",mime:n.K.unknown}]}(e,t).map((e=>e.id))}function f(e,t,i){let s,n,r;for(let o=i.length-1;o>=0;o--){const a=i[o];if(t===a.filenameLowercase){s=a;break}if(a.filepattern&&(!n||a.filepattern.length>n.filepattern.length)){const i=a.filepatternOnPath?e:t;a.filepatternLowercase?.(i)&&(n=a)}a.extension&&(!r||a.extension.length>r.extension.length)&&t.endsWith(a.extensionLowercase)&&(r=a)}return s||(n||(r||void 0))}},69259:(e,t,i)=>{"use strict";i.r(t),i.d(t,{LanguageIdCodec:()=>u,LanguagesRegistry:()=>g});var s=i(41234),n=i(5662),r=i(91508),o=i(99908),a=i(83941),c=i(1646),l=i(46359);const h=Object.prototype.hasOwnProperty,d="vs.editor.nullLanguage";class u{constructor(){this._languageIdToLanguage=[],this._languageToLanguageId=new Map,this._register(d,0),this._register(a.vH,1),this._nextLanguageId=2}_register(e,t){this._languageIdToLanguage[t]=e,this._languageToLanguageId.set(e,t)}register(e){if(this._languageToLanguageId.has(e))return;const t=this._nextLanguageId++;this._register(e,t)}encodeLanguageId(e){return this._languageToLanguageId.get(e)||0}decodeLanguageId(e){return this._languageIdToLanguage[e]||d}}class g extends n.jG{static{this.instanceCount=0}constructor(e=!0,t=!1){super(),this._onDidChange=this._register(new s.vl),this.onDidChange=this._onDidChange.event,g.instanceCount++,this._warnOnOverwrite=t,this.languageIdCodec=new u,this._dynamicLanguages=[],this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},e&&(this._initializeFromRegistry(),this._register(a.W6.onDidChangeLanguages((e=>{this._initializeFromRegistry()}))))}dispose(){g.instanceCount--,super.dispose()}_initializeFromRegistry(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},(0,o.clearPlatformLanguageAssociations)();const e=[].concat(a.W6.getLanguages()).concat(this._dynamicLanguages);this._registerLanguages(e)}_registerLanguages(e){for(const t of e)this._registerLanguage(t);this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach((e=>{const t=this._languages[e];t.name&&(this._nameMap[t.name]=t.identifier),t.aliases.forEach((e=>{this._lowercaseNameMap[e.toLowerCase()]=t.identifier})),t.mimetypes.forEach((e=>{this._mimeTypesMap[e]=t.identifier}))})),l.O.as(c.Fd.Configuration).registerOverrideIdentifiers(this.getRegisteredLanguageIds()),this._onDidChange.fire()}_registerLanguage(e){const t=e.id;let i;h.call(this._languages,t)?i=this._languages[t]:(this.languageIdCodec.register(t),i={identifier:t,name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[],icons:[]},this._languages[t]=i),this._mergeLanguage(i,e)}_mergeLanguage(e,t){const i=t.id;let s=null;if(Array.isArray(t.mimetypes)&&t.mimetypes.length>0&&(e.mimetypes.push(...t.mimetypes),s=t.mimetypes[0]),s||(s=`text/x-${i}`,e.mimetypes.push(s)),Array.isArray(t.extensions)){t.configuration?e.extensions=t.extensions.concat(e.extensions):e.extensions=e.extensions.concat(t.extensions);for(const e of t.extensions)(0,o.registerPlatformLanguageAssociation)({id:i,mime:s,extension:e},this._warnOnOverwrite)}if(Array.isArray(t.filenames))for(const r of t.filenames)(0,o.registerPlatformLanguageAssociation)({id:i,mime:s,filename:r},this._warnOnOverwrite),e.filenames.push(r);if(Array.isArray(t.filenamePatterns))for(const r of t.filenamePatterns)(0,o.registerPlatformLanguageAssociation)({id:i,mime:s,filepattern:r},this._warnOnOverwrite);if("string"===typeof t.firstLine&&t.firstLine.length>0){let e=t.firstLine;"^"!==e.charAt(0)&&(e="^"+e);try{const t=new RegExp(e);(0,r.eY)(t)||(0,o.registerPlatformLanguageAssociation)({id:i,mime:s,firstline:t},this._warnOnOverwrite)}catch(c){console.warn(`[${t.id}]: Invalid regular expression \`${e}\`: `,c)}}e.aliases.push(i);let n=null;if("undefined"!==typeof t.aliases&&Array.isArray(t.aliases)&&(n=0===t.aliases.length?[null]:t.aliases),null!==n)for(const r of n)r&&0!==r.length&&e.aliases.push(r);const a=null!==n&&n.length>0;if(a&&null===n[0]);else{const t=(a?n[0]:null)||i;!a&&e.name||(e.name=t)}t.configuration&&e.configurationFiles.push(t.configuration),t.icon&&e.icons.push(t.icon)}isRegisteredLanguageId(e){return!!e&&h.call(this._languages,e)}getRegisteredLanguageIds(){return Object.keys(this._languages)}getLanguageIdByLanguageName(e){const t=e.toLowerCase();return h.call(this._lowercaseNameMap,t)?this._lowercaseNameMap[t]:null}getLanguageIdByMimeType(e){return e&&h.call(this._mimeTypesMap,e)?this._mimeTypesMap[e]:null}guessLanguageIdByFilepathOrFirstLine(e,t){return e||t?(0,o.getLanguageIds)(e,t):[]}}},37550:(e,t,i)=>{"use strict";i.r(t),i.d(t,{IMarkerDecorationsService:()=>s});const s=(0,i(63591).u1)("markerDecorationsService")},30707:(e,t,i)=>{"use strict";i.r(t),i.d(t,{MarkerDecorationsService:()=>_});var s=i(75147),n=i(5662),r=i(16223),o=i(47612),a=i(87119),c=i(23750),l=i(36677),h=i(36456),d=i(41234),u=i(66261),g=i(74320),p=i(48495),m=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},f=function(e,t){return function(i,s){t(i,s,e)}};let _=class extends n.jG{constructor(e,t){super(),this._markerService=t,this._onDidChangeMarker=this._register(new d.vl),this._markerDecorations=new g.fT,e.getModels().forEach((e=>this._onModelAdded(e))),this._register(e.onModelAdded(this._onModelAdded,this)),this._register(e.onModelRemoved(this._onModelRemoved,this)),this._register(this._markerService.onMarkerChanged(this._handleMarkerChange,this))}dispose(){super.dispose(),this._markerDecorations.forEach((e=>e.dispose())),this._markerDecorations.clear()}getMarker(e,t){const i=this._markerDecorations.get(e);return i&&i.getMarker(t)||null}_handleMarkerChange(e){e.forEach((e=>{const t=this._markerDecorations.get(e);t&&this._updateDecorations(t)}))}_onModelAdded(e){const t=new v(e);this._markerDecorations.set(e.uri,t),this._updateDecorations(t)}_onModelRemoved(e){const t=this._markerDecorations.get(e.uri);t&&(t.dispose(),this._markerDecorations.delete(e.uri)),e.uri.scheme!==h.ny.inMemory&&e.uri.scheme!==h.ny.internal&&e.uri.scheme!==h.ny.vscode||this._markerService?.read({resource:e.uri}).map((e=>e.owner)).forEach((t=>this._markerService.remove(t,[e.uri])))}_updateDecorations(e){const t=this._markerService.read({resource:e.model.uri,take:500});e.update(t)&&this._onDidChangeMarker.fire(e.model)}};_=m([f(0,c.IModelService),f(1,s.DR)],_);class v extends n.jG{constructor(e){super(),this.model=e,this._map=new g.cO,this._register((0,n.s)((()=>{this.model.deltaDecorations([...this._map.values()],[]),this._map.clear()})))}update(e){const{added:t,removed:i}=(0,p.Z)(new Set(this._map.keys()),new Set(e));if(0===t.length&&0===i.length)return!1;const s=i.map((e=>this._map.get(e))),n=t.map((e=>({range:this._createDecorationRange(this.model,e),options:this._createDecorationOption(e)}))),r=this.model.deltaDecorations(s,n);for(const o of i)this._map.delete(o);for(let o=0;o<r.length;o++)this._map.set(t[o],r[o]);return!0}getMarker(e){return this._map.getKey(e.id)}_createDecorationRange(e,t){let i=l.Q.lift(t);if(t.severity!==s.cj.Hint||this._hasMarkerTag(t,1)||this._hasMarkerTag(t,2)||(i=i.setEndPosition(i.startLineNumber,i.startColumn+2)),i=e.validateRange(i),i.isEmpty()){const t=e.getLineLastNonWhitespaceColumn(i.startLineNumber)||e.getLineMaxColumn(i.startLineNumber);if(1===t||i.endColumn>=t)return i;const s=e.getWordAtPosition(i.getStartPosition());s&&(i=new l.Q(i.startLineNumber,s.startColumn,i.endLineNumber,s.endColumn))}else if(t.endColumn===Number.MAX_VALUE&&1===t.startColumn&&i.startLineNumber===i.endLineNumber){const s=e.getLineFirstNonWhitespaceColumn(t.startLineNumber);s<i.endColumn&&(i=new l.Q(i.startLineNumber,s,i.endLineNumber,i.endColumn),t.startColumn=s)}return i}_createDecorationOption(e){let t,i,n,c,l;switch(e.severity){case s.cj.Hint:t=this._hasMarkerTag(e,2)?void 0:this._hasMarkerTag(e,1)?"squiggly-unnecessary":"squiggly-hint",n=0;break;case s.cj.Info:t="squiggly-info",i=(0,o.Yf)(a.AQ),n=10,l={color:(0,o.Yf)(u.KoI),position:1};break;case s.cj.Warning:t="squiggly-warning",i=(0,o.Yf)(a.aZ),n=20,l={color:(0,o.Yf)(u.uMG),position:1};break;case s.cj.Error:default:t="squiggly-error",i=(0,o.Yf)(a.yI),n=30,l={color:(0,o.Yf)(u.yLC),position:1}}return e.tags&&(-1!==e.tags.indexOf(1)&&(c="squiggly-inline-unnecessary"),-1!==e.tags.indexOf(2)&&(c="squiggly-inline-deprecated")),{description:"marker-decoration",stickiness:1,className:t,showIfCollapsed:!0,overviewRuler:{color:i,position:r.A5.Right},minimap:l,zIndex:n,inlineClassName:c}}_hasMarkerTag(e,t){return!!e.tags&&e.tags.indexOf(t)>=0}}},23750:(e,t,i)=>{"use strict";i.r(t),i.d(t,{IModelService:()=>s});const s=(0,i(63591).u1)("modelService")},16363:(e,t,i)=>{"use strict";i.r(t),i.d(t,{DefaultModelSHA1Computer:()=>R,ModelService:()=>w});var s,n=i(41234),r=i(5662),o=i(98067),a=i(87289),c=i(24329),l=i(83941),h=i(90360),d=i(84001),u=i(47579),g=i(85600),p=i(26656),m=i(36456),f=i(10146),_=i(63591),v=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},C=function(e,t){return function(i,s){t(i,s,e)}};function E(e){return e.toString()}class b{constructor(e,t,i){this.model=e,this._modelEventListeners=new r.Cm,this.model=e,this._modelEventListeners.add(e.onWillDispose((()=>t(e)))),this._modelEventListeners.add(e.onDidChangeLanguage((t=>i(e,t))))}dispose(){this._modelEventListeners.dispose()}}const S=o.j9||o.zx?1:2;class y{constructor(e,t,i,s,n,r,o,a){this.uri=e,this.initialUndoRedoSnapshot=t,this.time=i,this.sharesUndoRedoStack=s,this.heapSize=n,this.sha1=r,this.versionId=o,this.alternativeVersionId=a}}let w=class extends r.jG{static{s=this}static{this.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK=20971520}constructor(e,t,i,s){super(),this._configurationService=e,this._resourcePropertiesService=t,this._undoRedoService=i,this._instantiationService=s,this._onModelAdded=this._register(new n.vl),this.onModelAdded=this._onModelAdded.event,this._onModelRemoved=this._register(new n.vl),this.onModelRemoved=this._onModelRemoved.event,this._onModelModeChanged=this._register(new n.vl),this.onModelLanguageChanged=this._onModelModeChanged.event,this._modelCreationOptionsByLanguageAndResource=Object.create(null),this._models={},this._disposedModels=new Map,this._disposedModelsHeapSize=0,this._register(this._configurationService.onDidChangeConfiguration((e=>this._updateModelOptions(e)))),this._updateModelOptions(void 0)}static _readModelOptions(e,t){let i=c.R.tabSize;if(e.editor&&"undefined"!==typeof e.editor.tabSize){const t=parseInt(e.editor.tabSize,10);isNaN(t)||(i=t),i<1&&(i=1)}let s="tabSize";if(e.editor&&"undefined"!==typeof e.editor.indentSize&&"tabSize"!==e.editor.indentSize){const t=parseInt(e.editor.indentSize,10);isNaN(t)||(s=Math.max(t,1))}let n=c.R.insertSpaces;e.editor&&"undefined"!==typeof e.editor.insertSpaces&&(n="false"!==e.editor.insertSpaces&&Boolean(e.editor.insertSpaces));let r=S;const o=e.eol;"\r\n"===o?r=2:"\n"===o&&(r=1);let a=c.R.trimAutoWhitespace;e.editor&&"undefined"!==typeof e.editor.trimAutoWhitespace&&(a="false"!==e.editor.trimAutoWhitespace&&Boolean(e.editor.trimAutoWhitespace));let l=c.R.detectIndentation;e.editor&&"undefined"!==typeof e.editor.detectIndentation&&(l="false"!==e.editor.detectIndentation&&Boolean(e.editor.detectIndentation));let h=c.R.largeFileOptimizations;e.editor&&"undefined"!==typeof e.editor.largeFileOptimizations&&(h="false"!==e.editor.largeFileOptimizations&&Boolean(e.editor.largeFileOptimizations));let d=c.R.bracketPairColorizationOptions;return e.editor?.bracketPairColorization&&"object"===typeof e.editor.bracketPairColorization&&(d={enabled:!!e.editor.bracketPairColorization.enabled,independentColorPoolPerBracketType:!!e.editor.bracketPairColorization.independentColorPoolPerBracketType}),{isForSimpleWidget:t,tabSize:i,indentSize:s,insertSpaces:n,detectIndentation:l,defaultEOL:r,trimAutoWhitespace:a,largeFileOptimizations:h,bracketPairColorizationOptions:d}}_getEOL(e,t){if(e)return this._resourcePropertiesService.getEOL(e,t);const i=this._configurationService.getValue("files.eol",{overrideIdentifier:t});return i&&"string"===typeof i&&"auto"!==i?i:3===o.OS||2===o.OS?"\n":"\r\n"}_shouldRestoreUndoStack(){const e=this._configurationService.getValue("files.restoreUndoStack");return"boolean"!==typeof e||e}getCreationOptions(e,t,i){const n="string"===typeof e?e:e.languageId;let r=this._modelCreationOptionsByLanguageAndResource[n+t];if(!r){const e=this._configurationService.getValue("editor",{overrideIdentifier:n,resource:t}),o=this._getEOL(t,n);r=s._readModelOptions({editor:e,eol:o},i),this._modelCreationOptionsByLanguageAndResource[n+t]=r}return r}_updateModelOptions(e){const t=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);const i=Object.keys(this._models);for(let n=0,r=i.length;n<r;n++){const r=i[n],o=this._models[r],a=o.model.getLanguageId(),c=o.model.uri;if(e&&!e.affectsConfiguration("editor",{overrideIdentifier:a,resource:c})&&!e.affectsConfiguration("files.eol",{overrideIdentifier:a,resource:c}))continue;const l=t[a+c],h=this.getCreationOptions(a,c,o.model.isForSimpleWidget);s._setModelOptionsForModel(o.model,h,l)}}static _setModelOptionsForModel(e,t,i){i&&i.defaultEOL!==t.defaultEOL&&1===e.getLineCount()&&e.setEOL(1===t.defaultEOL?0:1),i&&i.detectIndentation===t.detectIndentation&&i.insertSpaces===t.insertSpaces&&i.tabSize===t.tabSize&&i.indentSize===t.indentSize&&i.trimAutoWhitespace===t.trimAutoWhitespace&&(0,f.aI)(i.bracketPairColorizationOptions,t.bracketPairColorizationOptions)||(t.detectIndentation?(e.detectIndentation(t.insertSpaces,t.tabSize),e.updateOptions({trimAutoWhitespace:t.trimAutoWhitespace,bracketColorizationOptions:t.bracketPairColorizationOptions})):e.updateOptions({insertSpaces:t.insertSpaces,tabSize:t.tabSize,indentSize:t.indentSize,trimAutoWhitespace:t.trimAutoWhitespace,bracketColorizationOptions:t.bracketPairColorizationOptions}))}_insertDisposedModel(e){this._disposedModels.set(E(e.uri),e),this._disposedModelsHeapSize+=e.heapSize}_removeDisposedModel(e){const t=this._disposedModels.get(E(e));return t&&(this._disposedModelsHeapSize-=t.heapSize),this._disposedModels.delete(E(e)),t}_ensureDisposedModelsHeapSize(e){if(this._disposedModelsHeapSize>e){const t=[];for(this._disposedModels.forEach((e=>{e.sharesUndoRedoStack||t.push(e)})),t.sort(((e,t)=>e.time-t.time));t.length>0&&this._disposedModelsHeapSize>e;){const e=t.shift();this._removeDisposedModel(e.uri),null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}}}_createModelData(e,t,i,s){const n=this.getCreationOptions(t,i,s),r=this._instantiationService.createInstance(a.Bz,e,t,n,i);if(i&&this._disposedModels.has(E(i))){const e=this._removeDisposedModel(i),t=this._undoRedoService.getElements(i),s=this._getSHA1Computer(),n=!!s.canComputeSHA1(r)&&s.computeSHA1(r)===e.sha1;if(n||e.sharesUndoRedoStack){for(const e of t.past)(0,p.Th)(e)&&e.matchesResource(i)&&e.setModel(r);for(const e of t.future)(0,p.Th)(e)&&e.matchesResource(i)&&e.setModel(r);this._undoRedoService.setElementsValidFlag(i,!0,(e=>(0,p.Th)(e)&&e.matchesResource(i))),n&&(r._overwriteVersionId(e.versionId),r._overwriteAlternativeVersionId(e.alternativeVersionId),r._overwriteInitialUndoRedoSnapshot(e.initialUndoRedoSnapshot))}else null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}const o=E(r.uri);if(this._models[o])throw new Error("ModelService: Cannot add model because it already exists!");const c=new b(r,(e=>this._onWillDispose(e)),((e,t)=>this._onDidChangeLanguage(e,t)));return this._models[o]=c,c}createModel(e,t,i,s=!1){let n;return n=t?this._createModelData(e,t,i,s):this._createModelData(e,l.vH,i,s),this._onModelAdded.fire(n.model),n.model}getModels(){const e=[],t=Object.keys(this._models);for(let i=0,s=t.length;i<s;i++){const s=t[i];e.push(this._models[s].model)}return e}getModel(e){const t=E(e),i=this._models[t];return i?i.model:null}_schemaShouldMaintainUndoRedoElements(e){return e.scheme===m.ny.file||e.scheme===m.ny.vscodeRemote||e.scheme===m.ny.vscodeUserData||e.scheme===m.ny.vscodeNotebookCell||"fake-fs"===e.scheme}_onWillDispose(e){const t=E(e.uri),i=this._models[t],n=this._undoRedoService.getUriComparisonKey(e.uri)!==e.uri.toString();let r=!1,o=0;if(n||this._shouldRestoreUndoStack()&&this._schemaShouldMaintainUndoRedoElements(e.uri)){const t=this._undoRedoService.getElements(e.uri);if(t.past.length>0||t.future.length>0){for(const i of t.past)(0,p.Th)(i)&&i.matchesResource(e.uri)&&(r=!0,o+=i.heapSize(e.uri),i.setModel(e.uri));for(const i of t.future)(0,p.Th)(i)&&i.matchesResource(e.uri)&&(r=!0,o+=i.heapSize(e.uri),i.setModel(e.uri))}}const a=s.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK,c=this._getSHA1Computer();if(r)if(n||!(o>a)&&c.canComputeSHA1(e))this._ensureDisposedModelsHeapSize(a-o),this._undoRedoService.setElementsValidFlag(e.uri,!1,(t=>(0,p.Th)(t)&&t.matchesResource(e.uri))),this._insertDisposedModel(new y(e.uri,i.model.getInitialUndoRedoSnapshot(),Date.now(),n,o,c.computeSHA1(e),e.getVersionId(),e.getAlternativeVersionId()));else{const e=i.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}else if(!n){const e=i.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}delete this._models[t],i.dispose(),delete this._modelCreationOptionsByLanguageAndResource[e.getLanguageId()+e.uri],this._onModelRemoved.fire(e)}_onDidChangeLanguage(e,t){const i=t.oldLanguage,n=e.getLanguageId(),r=this.getCreationOptions(i,e.uri,e.isForSimpleWidget),o=this.getCreationOptions(n,e.uri,e.isForSimpleWidget);s._setModelOptionsForModel(e,o,r),this._onModelModeChanged.fire({model:e,oldLanguageId:i})}_getSHA1Computer(){return new R}};w=s=v([C(0,d.pG),C(1,h.ITextResourcePropertiesService),C(2,u.$D),C(3,_._Y)],w);class R{static{this.MAX_MODEL_SIZE=10485760}canComputeSHA1(e){return e.getValueLength()<=R.MAX_MODEL_SIZE}computeSHA1(e){const t=new g.v7,i=e.createSnapshot();let s;for(;s=i.read();)t.update(s);return t.digest()}}},18938:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ITextModelService:()=>s});const s=(0,i(63591).u1)("textModelService")},98232:(e,t,i)=>{"use strict";i.r(t),i.d(t,{encodeSemanticTokensDto:()=>r});var s=i(81674),n=i(98067);function r(e){const t=new Uint32Array(function(e){let t=0;if(t+=2,"full"===e.type)t+=1+e.data.length;else{t+=1,t+=3*e.deltas.length;for(const i of e.deltas)i.data&&(t+=i.data.length)}return t}(e));let i=0;if(t[i++]=e.id,"full"===e.type)t[i++]=1,t[i++]=e.data.length,t.set(e.data,i),i+=e.data.length;else{t[i++]=2,t[i++]=e.deltas.length;for(const s of e.deltas)t[i++]=s.start,t[i++]=s.deleteCount,s.data?(t[i++]=s.data.length,t.set(s.data,i),i+=s.data.length):t[i++]=0}return function(e){const t=new Uint8Array(e.buffer,e.byteOffset,4*e.length);return n.cm()||function(e){for(let t=0,i=e.length;t<i;t+=4){const i=e[t+0],s=e[t+1],n=e[t+2],r=e[t+3];e[t+0]=r,e[t+1]=n,e[t+2]=s,e[t+3]=i}}(t),s.MB.wrap(t)}(t)}},45538:(e,t,i)=>{"use strict";i.r(t),i.d(t,{SemanticTokensProviderStyling:()=>m,toMultilineTokens2:()=>f});i(25982);var s=i(47612),n=i(18801),r=i(83069),o=i(36677),a=i(64454);class c{static create(e,t){return new c(e,new l(t))}get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._endLineNumber}constructor(e,t){this._startLineNumber=e,this._tokens=t,this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}toString(){return this._tokens.toString(this._startLineNumber)}_updateEndLineNumber(){this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}isEmpty(){return this._tokens.isEmpty()}getLineTokens(e){return this._startLineNumber<=e&&e<=this._endLineNumber?this._tokens.getLineTokens(e-this._startLineNumber):null}getRange(){const e=this._tokens.getRange();return e?new o.Q(this._startLineNumber+e.startLineNumber,e.startColumn,this._startLineNumber+e.endLineNumber,e.endColumn):e}removeTokens(e){const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber;this._startLineNumber+=this._tokens.removeTokens(t,e.startColumn-1,i,e.endColumn-1),this._updateEndLineNumber()}split(e){const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber,[s,n,r]=this._tokens.split(t,e.startColumn-1,i,e.endColumn-1);return[new c(this._startLineNumber,s),new c(this._startLineNumber+r,n)]}applyEdit(e,t){const[i,s,n]=(0,a.W)(t);this.acceptEdit(e,i,s,n,t.length>0?t.charCodeAt(0):0)}acceptEdit(e,t,i,s,n){this._acceptDeleteRange(e),this._acceptInsertText(new r.y(e.startLineNumber,e.startColumn),t,i,s,n),this._updateEndLineNumber()}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return;const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber;if(i<0){const e=i-t;return void(this._startLineNumber-=e)}const s=this._tokens.getMaxDeltaLine();if(!(t>=s+1)){if(t<0&&i>=s+1)return this._startLineNumber=0,void this._tokens.clear();if(t<0){const s=-t;this._startLineNumber-=s,this._tokens.acceptDeleteRange(e.startColumn-1,0,0,i,e.endColumn-1)}else this._tokens.acceptDeleteRange(0,t,e.startColumn-1,i,e.endColumn-1)}}_acceptInsertText(e,t,i,s,n){if(0===t&&0===i)return;const r=e.lineNumber-this._startLineNumber;if(r<0)return void(this._startLineNumber+=t);r>=this._tokens.getMaxDeltaLine()+1||this._tokens.acceptInsertText(r,e.column-1,t,i,s,n)}}class l{constructor(e){this._tokens=e,this._tokenCount=e.length/4}toString(e){const t=[];for(let i=0;i<this._tokenCount;i++)t.push(`(${this._getDeltaLine(i)+e},${this._getStartCharacter(i)}-${this._getEndCharacter(i)})`);return`[${t.join(",")}]`}getMaxDeltaLine(){const e=this._getTokenCount();return 0===e?-1:this._getDeltaLine(e-1)}getRange(){const e=this._getTokenCount();if(0===e)return null;const t=this._getStartCharacter(0),i=this._getDeltaLine(e-1),s=this._getEndCharacter(e-1);return new o.Q(0,t+1,i,s+1)}_getTokenCount(){return this._tokenCount}_getDeltaLine(e){return this._tokens[4*e]}_getStartCharacter(e){return this._tokens[4*e+1]}_getEndCharacter(e){return this._tokens[4*e+2]}isEmpty(){return 0===this._getTokenCount()}getLineTokens(e){let t=0,i=this._getTokenCount()-1;for(;t<i;){const s=t+Math.floor((i-t)/2),n=this._getDeltaLine(s);if(n<e)t=s+1;else{if(!(n>e)){let n=s;for(;n>t&&this._getDeltaLine(n-1)===e;)n--;let r=s;for(;r<i&&this._getDeltaLine(r+1)===e;)r++;return new h(this._tokens.subarray(4*n,4*r+4))}i=s-1}}return this._getDeltaLine(t)===e?new h(this._tokens.subarray(4*t,4*t+4)):null}clear(){this._tokenCount=0}removeTokens(e,t,i,s){const n=this._tokens,r=this._tokenCount;let o=0,a=!1,c=0;for(let l=0;l<r;l++){const r=4*l,h=n[r],d=n[r+1],u=n[r+2],g=n[r+3];if((h>e||h===e&&u>=t)&&(h<i||h===i&&d<=s))a=!0;else{if(0===o&&(c=h),a){const e=4*o;n[e]=h-c,n[e+1]=d,n[e+2]=u,n[e+3]=g}o++}}return this._tokenCount=o,c}split(e,t,i,s){const n=this._tokens,r=this._tokenCount,o=[],a=[];let c=o,h=0,d=0;for(let l=0;l<r;l++){const r=4*l,o=n[r],u=n[r+1],g=n[r+2],p=n[r+3];if(o>e||o===e&&g>=t){if(o<i||o===i&&u<=s)continue;c!==a&&(c=a,h=0,d=o)}c[h++]=o-d,c[h++]=u,c[h++]=g,c[h++]=p}return[new l(new Uint32Array(o)),new l(new Uint32Array(a)),d]}acceptDeleteRange(e,t,i,s,n){const r=this._tokens,o=this._tokenCount,a=s-t;let c=0,l=!1;for(let h=0;h<o;h++){const d=4*h;let u=r[d],g=r[d+1],p=r[d+2];const m=r[d+3];if(u<t||u===t&&p<=i){c++;continue}if(u===t&&g<i)u===s&&p>n?p-=n-i:p=i;else if(u===t&&g===i){if(!(u===s&&p>n)){l=!0;continue}p-=n-i}else if(u<s||u===s&&g<n){if(!(u===s&&p>n)){l=!0;continue}u=t,g=i,p=g+(p-n)}else if(u>s){if(0===a&&!l){c=o;break}u-=a}else{if(!(u===s&&g>=n))throw new Error("Not possible!");e&&0===u&&(g+=e,p+=e),u-=a,g-=n-i,p-=n-i}const f=4*c;r[f]=u,r[f+1]=g,r[f+2]=p,r[f+3]=m,c++}this._tokenCount=c}acceptInsertText(e,t,i,s,n,r){const o=0===i&&1===s&&(r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122),a=this._tokens,c=this._tokenCount;for(let l=0;l<c;l++){const r=4*l;let c=a[r],h=a[r+1],d=a[r+2];if(!(c<e||c===e&&d<t)){if(c===e&&d===t){if(!o)continue;d+=1}else if(c===e&&h<t&&t<d)0===i?d+=s:d=t;else{if(c===e&&h===t&&o)continue;if(c===e)if(c+=i,0===i)h+=s,d+=s;else{const e=d-h;h=n+(h-t),d=h+e}else c+=i}a[r]=c,a[r+1]=h,a[r+2]=d}}}}class h{constructor(e){this._tokens=e}getCount(){return this._tokens.length/4}getStartCharacter(e){return this._tokens[4*e+1]}getEndCharacter(e){return this._tokens[4*e+2]}getMetadata(e){return this._tokens[4*e+3]}}var d=i(10154),u=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},g=function(e,t){return function(i,s){t(i,s,e)}};const p=!1;let m=class{constructor(e,t,i,s){this._legend=e,this._themeService=t,this._languageService=i,this._logService=s,this._hasWarnedOverlappingTokens=!1,this._hasWarnedInvalidLengthTokens=!1,this._hasWarnedInvalidEditStart=!1,this._hashTable=new v}getMetadata(e,t,i){const s=this._languageService.languageIdCodec.encodeLanguageId(i),n=this._hashTable.get(e,t,s);let r;if(n)r=n.metadata;else{let n=this._legend.tokenTypes[e];const o=[];if(n){let e=t;for(let t=0;e>0&&t<this._legend.tokenModifiers.length;t++)1&e&&o.push(this._legend.tokenModifiers[t]),e>>=1;p;const s=this._themeService.getColorTheme().getTokenStyleMetadata(n,o,i);if("undefined"===typeof s)r=2147483647;else{if(r=0,"undefined"!==typeof s.italic){r|=1|(s.italic?1:0)<<11}if("undefined"!==typeof s.bold){r|=2|(s.bold?2:0)<<11}if("undefined"!==typeof s.underline){r|=4|(s.underline?4:0)<<11}if("undefined"!==typeof s.strikethrough){r|=8|(s.strikethrough?8:0)<<11}if(s.foreground){r|=16|s.foreground<<15}0===r&&(r=2147483647)}}else r=2147483647,n="not-in-legend";this._hashTable.add(e,t,s,r)}return r}warnOverlappingSemanticTokens(e,t){this._hasWarnedOverlappingTokens||(this._hasWarnedOverlappingTokens=!0,this._logService.warn(`Overlapping semantic tokens detected at lineNumber ${e}, column ${t}`))}warnInvalidLengthSemanticTokens(e,t){this._hasWarnedInvalidLengthTokens||(this._hasWarnedInvalidLengthTokens=!0,this._logService.warn(`Semantic token with invalid length detected at lineNumber ${e}, column ${t}`))}warnInvalidEditStart(e,t,i,s,n){this._hasWarnedInvalidEditStart||(this._hasWarnedInvalidEditStart=!0,this._logService.warn(`Invalid semantic tokens edit detected (previousResultId: ${e}, resultId: ${t}) at edit #${i}: The provided start offset ${s} is outside the previous data (length ${n}).`))}};function f(e,t,i){const s=e.data,n=e.data.length/5|0,r=Math.max(Math.ceil(n/1024),400),o=[];let a=0,l=1,h=0;for(;a<n;){const e=a;let d=Math.min(e+r,n);if(d<n){let t=d;for(;t-1>e&&0===s[5*t];)t--;if(t-1===e){let e=d;for(;e+1<n&&0===s[5*e];)e++;d=e}else d=t}let u=new Uint32Array(4*(d-e)),g=0,p=0,m=0,f=0;for(;a<d;){const e=5*a,n=s[e],r=s[e+1],o=l+n|0,c=0===n?h+r|0:r,d=c+s[e+2]|0,_=s[e+3],v=s[e+4];if(d<=c)t.warnInvalidLengthSemanticTokens(o,c+1);else if(m===o&&f>c)t.warnOverlappingSemanticTokens(o,c+1);else{const e=t.getMetadata(_,v,i);2147483647!==e&&(0===p&&(p=o),u[g]=o-p,u[g+1]=c,u[g+2]=d,u[g+3]=e,g+=4,m=o,f=d)}l=o,h=c,a++}g!==u.length&&(u=u.subarray(0,g));const _=c.create(p,u);o.push(_)}return o}m=u([g(1,s.Gy),g(2,d.L),g(3,n.rr)],m);class _{constructor(e,t,i,s){this.tokenTypeIndex=e,this.tokenModifierSet=t,this.languageId=i,this.metadata=s,this.next=null}}class v{static{this._SIZES=[3,7,13,31,61,127,251,509,1021,2039,4093,8191,16381,32749,65521,131071,262139,524287,1048573,2097143]}constructor(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=v._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<v._SIZES.length?2/3*this._currentLength:0),this._elements=[],v._nullOutEntries(this._elements,this._currentLength)}static _nullOutEntries(e,t){for(let i=0;i<t;i++)e[i]=null}_hash2(e,t){return(e<<5)-e+t|0}_hashFunc(e,t,i){return this._hash2(this._hash2(e,t),i)%this._currentLength}get(e,t,i){const s=this._hashFunc(e,t,i);let n=this._elements[s];for(;n;){if(n.tokenTypeIndex===e&&n.tokenModifierSet===t&&n.languageId===i)return n;n=n.next}return null}add(e,t,i,s){if(this._elementsCount++,0!==this._growCount&&this._elementsCount>=this._growCount){const e=this._elements;this._currentLengthIndex++,this._currentLength=v._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<v._SIZES.length?2/3*this._currentLength:0),this._elements=[],v._nullOutEntries(this._elements,this._currentLength);for(const t of e){let e=t;for(;e;){const t=e.next;e.next=null,this._add(e),e=t}}}this._add(new _(e,t,i,s))}_add(e){const t=this._hashFunc(e.tokenTypeIndex,e.tokenModifierSet,e.languageId);e.next=this._elements[t],this._elements[t]=e}}},74243:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ISemanticTokensStylingService:()=>s});const s=(0,i(63591).u1)("semanticTokensStylingService")},27004:(e,t,i)=>{"use strict";i.r(t),i.d(t,{SemanticTokensStylingService:()=>u});var s=i(5662),n=i(10154),r=i(47612),o=i(18801),a=i(45538),c=i(74243),l=i(14718),h=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},d=function(e,t){return function(i,s){t(i,s,e)}};let u=class extends s.jG{constructor(e,t,i){super(),this._themeService=e,this._logService=t,this._languageService=i,this._caches=new WeakMap,this._register(this._themeService.onDidColorThemeChange((()=>{this._caches=new WeakMap})))}getStyling(e){return this._caches.has(e)||this._caches.set(e,new a.SemanticTokensProviderStyling(e.getLegend(),this._themeService,this._languageService,this._logService)),this._caches.get(e)}};u=h([d(0,r.Gy),d(1,o.rr),d(2,n.L)],u),(0,l.v)(c.ISemanticTokensStylingService,u,1)},47443:(e,t,i)=>{"use strict";i.r(t),i.d(t,{MirrorModel:()=>m,STOP_SYNC_MODEL_DELTA_TIME_MS:()=>u,WorkerTextModelSyncClient:()=>g,WorkerTextModelSyncServer:()=>p});var s=i(90766),n=i(5662),r=i(79400),o=i(83069),a=i(36677),c=i(26486),l=i(91508),h=i(27414);class d{constructor(e,t,i,s){this._uri=e,this._lines=t,this._eol=i,this._versionId=s,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const t=e.changes;for(const i of t)this._acceptDeleteRange(i.range),this._acceptInsertText(new o.y(i.range.startLineNumber,i.range.startColumn),i.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,t=this._lines.length,i=new Uint32Array(t);for(let s=0;s<t;s++)i[s]=this._lines[s].length+e;this._lineStarts=new h.N(i)}}_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)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);else{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))}}_acceptInsertText(e,t){if(0===t.length)return;const i=(0,l.uz)(t);if(1===i.length)return void this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+i[0]+this._lines[e.lineNumber-1].substring(e.column-1));i[i.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)+i[0]);const s=new Uint32Array(i.length-1);for(let n=1;n<i.length;n++)this._lines.splice(e.lineNumber+n-1,0,i[n]),s[n-1]=i[n].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,s)}}const u=6e4;class g extends n.jG{constructor(e,t,i=!1){if(super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=e,this._modelService=t,!i){const e=new s.vb;e.cancelAndSet((()=>this._checkStopModelSync()),Math.round(u/2)),this._register(e)}}dispose(){for(const e in this._syncedModels)(0,n.AS)(this._syncedModels[e]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(e,t=!1){for(const i of e){const e=i.toString();this._syncedModels[e]||this._beginModelSync(i,t),this._syncedModels[e]&&(this._syncedModelsLastUsedTime[e]=(new Date).getTime())}}_checkStopModelSync(){const e=(new Date).getTime(),t=[];for(const i in this._syncedModelsLastUsedTime){e-this._syncedModelsLastUsedTime[i]>u&&t.push(i)}for(const i of t)this._stopModelSync(i)}_beginModelSync(e,t){const i=this._modelService.getModel(e);if(!i)return;if(!t&&i.isTooLargeForSyncing())return;const s=e.toString();this._proxy.$acceptNewModel({url:i.uri.toString(),lines:i.getLinesContent(),EOL:i.getEOL(),versionId:i.getVersionId()});const r=new n.Cm;r.add(i.onDidChangeContent((e=>{this._proxy.$acceptModelChanged(s.toString(),e)}))),r.add(i.onWillDispose((()=>{this._stopModelSync(s)}))),r.add((0,n.s)((()=>{this._proxy.$acceptRemovedModel(s)}))),this._syncedModels[s]=r}_stopModelSync(e){const t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],(0,n.AS)(t)}}class p{constructor(){this._models=Object.create(null)}getModel(e){return this._models[e]}getModels(){const e=[];return Object.keys(this._models).forEach((t=>e.push(this._models[t]))),e}$acceptNewModel(e){this._models[e.url]=new m(r.r.parse(e.url),e.lines,e.EOL,e.versionId)}$acceptModelChanged(e,t){if(!this._models[e])return;this._models[e].onEvents(t)}$acceptRemovedModel(e){this._models[e]&&delete this._models[e]}}class m extends d{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){const t=[];for(let i=0;i<this._lines.length;i++){const s=this._lines[i],n=this.offsetAt(new o.y(i+1,1)),r=s.matchAll(e);for(const e of r)(e.index||0===e.index)&&(e.index=e.index+n),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){const i=(0,c.Th)(e.column,(0,c.Io)(t),this._lines[e.lineNumber-1],0);return i?new a.Q(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn):null}words(e){const t=this._lines,i=this._wordenize.bind(this);let s=0,n="",r=0,o=[];return{*[Symbol.iterator](){for(;;)if(r<o.length){const e=n.substring(o[r].start,o[r].end);r+=1,yield e}else{if(!(s<t.length))break;n=t[s],o=i(n,e),r=0,s+=1}}}}getLineWords(e,t){const i=this._lines[e-1],s=this._wordenize(i,t),n=[];for(const r of s)n.push({word:i.substring(r.start,r.end),startColumn:r.start+1,endColumn:r.end+1});return n}_wordenize(e,t){const i=[];let s;for(t.lastIndex=0;(s=t.exec(e))&&0!==s[0].length;)i.push({start:s.index,end:s.index+s[0].length});return i}getValueInRange(e){if((e=this._validateRange(e)).startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);const t=this._eol,i=e.startLineNumber-1,s=e.endLineNumber-1,n=[];n.push(this._lines[i].substring(e.startColumn-1));for(let r=i+1;r<s;r++)n.push(this._lines[r]);return n.push(this._lines[s].substring(0,e.endColumn-1)),n.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();const t=this._lineStarts.getIndexOf(e),i=this._lines[t.index].length;return{lineNumber:1+t.index,column:1+Math.min(t.remainder,i)}}_validateRange(e){const t=this._validatePosition({lineNumber:e.startLineNumber,column:e.startColumn}),i=this._validatePosition({lineNumber:e.endLineNumber,column:e.endColumn});return t.lineNumber!==e.startLineNumber||t.column!==e.startColumn||i.lineNumber!==e.endLineNumber||i.column!==e.endColumn?{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:i.lineNumber,endColumn:i.column}:e}_validatePosition(e){if(!o.y.isIPosition(e))throw new Error("bad position");let{lineNumber:t,column:i}=e,s=!1;if(t<1)t=1,i=1,s=!0;else if(t>this._lines.length)t=this._lines.length,i=this._lines[t-1].length+1,s=!0;else{const e=this._lines[t-1].length+1;i<1?(i=1,s=!0):i>e&&(i=e,s=!0)}return s?{lineNumber:t,column:i}:e}}},90360:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ITextResourceConfigurationService:()=>n,ITextResourcePropertiesService:()=>r});var s=i(63591);const n=(0,s.u1)("textResourceConfigurationService"),r=(0,s.u1)("textResourcePropertiesService")},44432:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ITreeSitterParserService:()=>s});const s=(0,i(63591).u1)("treeSitterParserService")},36723:(e,t,i)=>{"use strict";i.r(t),i.d(t,{DraggedTreeItemsIdentifier:()=>n,TreeViewsDnDService:()=>s});class s{constructor(){this._dragOperations=new Map}removeDragOperationTransfer(e){if(e&&this._dragOperations.has(e)){const t=this._dragOperations.get(e);return this._dragOperations.delete(e),t}}}class n{constructor(e){this.identifier=e}}},29100:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ITreeViewsDnDService:()=>o});var s=i(14718),n=i(63591),r=i(36723);const o=(0,n.u1)("treeViewsDndService");(0,s.v)(o,r.TreeViewsDnDService,1)},74855:(e,t,i)=>{"use strict";i.r(t),i.d(t,{UnicodeTextModelHighlighter:()=>c});var s=i(36677),n=i(43264),r=i(91508),o=i(66782),a=i(26486);class c{static computeUnicodeHighlights(e,t,i){const c=i?i.startLineNumber:1,h=i?i.endLineNumber:e.getLineCount(),d=new l(t),u=d.getCandidateCodePoints();let g;var p;g="allNonBasicAscii"===u?new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):new RegExp(""+(p=Array.from(u),`[${r.bm(p.map((e=>String.fromCodePoint(e))).join(""))}]`),"g");const m=new n.W5(null,g),f=[];let _,v=!1,C=0,E=0,b=0;e:for(let n=c,l=h;n<=l;n++){const t=e.getLineContent(n),i=t.length;m.reset(0);do{if(_=m.next(t),_){let e=_.index,c=_.index+_[0].length;if(e>0){const i=t.charCodeAt(e-1);r.pc(i)&&e--}if(c+1<i){const e=t.charCodeAt(c-1);r.pc(e)&&c++}const l=t.substring(e,c);let h=(0,a.Th)(e+1,a.Ld,t,0);h&&h.endColumn<=e+1&&(h=null);const u=d.shouldHighlightNonBasicASCII(l,h?h.word:null);if(0!==u){3===u?C++:2===u?E++:1===u?b++:(0,o.xb)(u);const t=1e3;if(f.length>=t){v=!0;break e}f.push(new s.Q(n,e+1,n,c+1))}}}while(_)}return{ranges:f,hasMore:v,ambiguousCharacterCount:C,invisibleCharacterCount:E,nonBasicAsciiCharacterCount:b}}static computeUnicodeHighlightReason(e,t){const i=new l(t);switch(i.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const s=e.codePointAt(0),n=i.ambiguousCharacters.getPrimaryConfusable(s),o=r.tl.getLocales().filter((e=>!r.tl.getInstance(new Set([...t.allowedLocales,e])).isAmbiguous(s)));return{kind:0,confusableWith:String.fromCodePoint(n),notAmbiguousInLocales:o}}case 1:return{kind:2}}}}class l{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=r.tl.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const t of r.y_.codePoints)h(String.fromCodePoint(t))||e.add(t);if(this.options.ambiguousCharacters)for(const t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(const t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e,t){const i=e.codePointAt(0);if(this.allowedCodePoints.has(i))return 0;if(this.options.nonBasicASCII)return 1;let s=!1,n=!1;if(t)for(const o of t){const e=o.codePointAt(0),t=r.aC(o);s=s||t,t||this.ambiguousCharacters.isAmbiguous(e)||r.y_.isInvisibleCharacter(e)||(n=!0)}return!s&&n?0:this.options.invisibleCharacters&&!h(e)&&r.y_.isInvisibleCharacter(i)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(i)?3:0}}function h(e){return" "===e||"\n"===e||"\t"===e}},35015:(e,t,i)=>{"use strict";var s,n,r,o,a,c,l,h,d,u,g,p,m,f,_,v,C,E,b,S,y,w,R,L,T,x,k,A,N,I,O,D,M,P,F,U,H,B,W,V,z,G,j,K,Y,q;i.d(t,{A5:()=>O,Ah:()=>D,DD:()=>w,DO:()=>P,Gn:()=>s,H_:()=>G,Ic:()=>M,Io:()=>o,Kb:()=>u,M$:()=>v,OV:()=>A,QP:()=>a,Qj:()=>l,R3:()=>T,SB:()=>B,U7:()=>j,VW:()=>E,VX:()=>x,WA:()=>V,WU:()=>f,XR:()=>H,YT:()=>N,ZS:()=>_,_E:()=>r,cj:()=>R,dE:()=>I,d_:()=>L,e0:()=>g,h5:()=>h,hS:()=>k,hW:()=>F,jT:()=>W,kK:()=>Y,kf:()=>m,l:()=>C,m9:()=>K,of:()=>d,ok:()=>n,ov:()=>U,p2:()=>p,qw:()=>S,r4:()=>b,sm:()=>y,t7:()=>c,tJ:()=>q,v0:()=>z}),function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"}(s||(s={})),function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"}(n||(n={})),function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(r||(r={})),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.Snippet=27]="Snippet"}(o||(o={})),function(e){e[e.Deprecated=1]="Deprecated"}(a||(a={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(c||(c={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(l||(l={})),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"}(h||(h={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(d||(d={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(u||(u={})),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"}(g||(g={})),function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.ariaRequired=5]="ariaRequired",e[e.autoClosingBrackets=6]="autoClosingBrackets",e[e.autoClosingComments=7]="autoClosingComments",e[e.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=9]="autoClosingDelete",e[e.autoClosingOvertype=10]="autoClosingOvertype",e[e.autoClosingQuotes=11]="autoClosingQuotes",e[e.autoIndent=12]="autoIndent",e[e.automaticLayout=13]="automaticLayout",e[e.autoSurround=14]="autoSurround",e[e.bracketPairColorization=15]="bracketPairColorization",e[e.guides=16]="guides",e[e.codeLens=17]="codeLens",e[e.codeLensFontFamily=18]="codeLensFontFamily",e[e.codeLensFontSize=19]="codeLensFontSize",e[e.colorDecorators=20]="colorDecorators",e[e.colorDecoratorsLimit=21]="colorDecoratorsLimit",e[e.columnSelection=22]="columnSelection",e[e.comments=23]="comments",e[e.contextmenu=24]="contextmenu",e[e.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",e[e.cursorBlinking=26]="cursorBlinking",e[e.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",e[e.cursorStyle=28]="cursorStyle",e[e.cursorSurroundingLines=29]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",e[e.cursorWidth=31]="cursorWidth",e[e.disableLayerHinting=32]="disableLayerHinting",e[e.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",e[e.domReadOnly=34]="domReadOnly",e[e.dragAndDrop=35]="dragAndDrop",e[e.dropIntoEditor=36]="dropIntoEditor",e[e.emptySelectionClipboard=37]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",e[e.extraEditorClassName=39]="extraEditorClassName",e[e.fastScrollSensitivity=40]="fastScrollSensitivity",e[e.find=41]="find",e[e.fixedOverflowWidgets=42]="fixedOverflowWidgets",e[e.folding=43]="folding",e[e.foldingStrategy=44]="foldingStrategy",e[e.foldingHighlight=45]="foldingHighlight",e[e.foldingImportsByDefault=46]="foldingImportsByDefault",e[e.foldingMaximumRegions=47]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=49]="fontFamily",e[e.fontInfo=50]="fontInfo",e[e.fontLigatures=51]="fontLigatures",e[e.fontSize=52]="fontSize",e[e.fontWeight=53]="fontWeight",e[e.fontVariations=54]="fontVariations",e[e.formatOnPaste=55]="formatOnPaste",e[e.formatOnType=56]="formatOnType",e[e.glyphMargin=57]="glyphMargin",e[e.gotoLocation=58]="gotoLocation",e[e.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",e[e.hover=60]="hover",e[e.inDiffEditor=61]="inDiffEditor",e[e.inlineSuggest=62]="inlineSuggest",e[e.inlineEdit=63]="inlineEdit",e[e.letterSpacing=64]="letterSpacing",e[e.lightbulb=65]="lightbulb",e[e.lineDecorationsWidth=66]="lineDecorationsWidth",e[e.lineHeight=67]="lineHeight",e[e.lineNumbers=68]="lineNumbers",e[e.lineNumbersMinChars=69]="lineNumbersMinChars",e[e.linkedEditing=70]="linkedEditing",e[e.links=71]="links",e[e.matchBrackets=72]="matchBrackets",e[e.minimap=73]="minimap",e[e.mouseStyle=74]="mouseStyle",e[e.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=76]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",e[e.multiCursorModifier=78]="multiCursorModifier",e[e.multiCursorPaste=79]="multiCursorPaste",e[e.multiCursorLimit=80]="multiCursorLimit",e[e.occurrencesHighlight=81]="occurrencesHighlight",e[e.overviewRulerBorder=82]="overviewRulerBorder",e[e.overviewRulerLanes=83]="overviewRulerLanes",e[e.padding=84]="padding",e[e.pasteAs=85]="pasteAs",e[e.parameterHints=86]="parameterHints",e[e.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",e[e.placeholder=88]="placeholder",e[e.definitionLinkOpensInPeek=89]="definitionLinkOpensInPeek",e[e.quickSuggestions=90]="quickSuggestions",e[e.quickSuggestionsDelay=91]="quickSuggestionsDelay",e[e.readOnly=92]="readOnly",e[e.readOnlyMessage=93]="readOnlyMessage",e[e.renameOnType=94]="renameOnType",e[e.renderControlCharacters=95]="renderControlCharacters",e[e.renderFinalNewline=96]="renderFinalNewline",e[e.renderLineHighlight=97]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=98]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=99]="renderValidationDecorations",e[e.renderWhitespace=100]="renderWhitespace",e[e.revealHorizontalRightPadding=101]="revealHorizontalRightPadding",e[e.roundedSelection=102]="roundedSelection",e[e.rulers=103]="rulers",e[e.scrollbar=104]="scrollbar",e[e.scrollBeyondLastColumn=105]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=106]="scrollBeyondLastLine",e[e.scrollPredominantAxis=107]="scrollPredominantAxis",e[e.selectionClipboard=108]="selectionClipboard",e[e.selectionHighlight=109]="selectionHighlight",e[e.selectOnLineNumbers=110]="selectOnLineNumbers",e[e.showFoldingControls=111]="showFoldingControls",e[e.showUnused=112]="showUnused",e[e.snippetSuggestions=113]="snippetSuggestions",e[e.smartSelect=114]="smartSelect",e[e.smoothScrolling=115]="smoothScrolling",e[e.stickyScroll=116]="stickyScroll",e[e.stickyTabStops=117]="stickyTabStops",e[e.stopRenderingLineAfter=118]="stopRenderingLineAfter",e[e.suggest=119]="suggest",e[e.suggestFontSize=120]="suggestFontSize",e[e.suggestLineHeight=121]="suggestLineHeight",e[e.suggestOnTriggerCharacters=122]="suggestOnTriggerCharacters",e[e.suggestSelection=123]="suggestSelection",e[e.tabCompletion=124]="tabCompletion",e[e.tabIndex=125]="tabIndex",e[e.unicodeHighlighting=126]="unicodeHighlighting",e[e.unusualLineTerminators=127]="unusualLineTerminators",e[e.useShadowDOM=128]="useShadowDOM",e[e.useTabStops=129]="useTabStops",e[e.wordBreak=130]="wordBreak",e[e.wordSegmenterLocales=131]="wordSegmenterLocales",e[e.wordSeparators=132]="wordSeparators",e[e.wordWrap=133]="wordWrap",e[e.wordWrapBreakAfterCharacters=134]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=135]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=136]="wordWrapColumn",e[e.wordWrapOverride1=137]="wordWrapOverride1",e[e.wordWrapOverride2=138]="wordWrapOverride2",e[e.wrappingIndent=139]="wrappingIndent",e[e.wrappingStrategy=140]="wrappingStrategy",e[e.showDeprecated=141]="showDeprecated",e[e.inlayHints=142]="inlayHints",e[e.editorClassName=143]="editorClassName",e[e.pixelRatio=144]="pixelRatio",e[e.tabFocusMode=145]="tabFocusMode",e[e.layoutInfo=146]="layoutInfo",e[e.wrappingInfo=147]="wrappingInfo",e[e.defaultColorDecorators=148]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=149]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=150]="inlineCompletionsAccessibilityVerbose"}(p||(p={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(m||(m={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}(f||(f={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(_||(_={})),function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(v||(v={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(C||(C={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(E||(E={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(b||(b={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(S||(S={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(y||(y={})),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"}(w||(w={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(R||(R={})),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(L||(L={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(T||(T={})),function(e){e[e.Normal=1]="Normal",e[e.Underlined=2]="Underlined"}(x||(x={})),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"}(k||(k={})),function(e){e[e.AIGenerated=1]="AIGenerated"}(A||(A={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(N||(N={})),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"}(I||(I={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(O||(O={})),function(e){e[e.Word=0]="Word",e[e.Line=1]="Line",e[e.Suggest=2]="Suggest"}(D||(D={})),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"}(M||(M={})),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"}(P||(P={})),function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"}(F||(F={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"}(U||(U={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(H||(H={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(B||(B={})),function(e){e.Off="off",e.OnCode="onCode",e.On="on"}(W||(W={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(V||(V={})),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"}(z||(z={})),function(e){e[e.Deprecated=1]="Deprecated"}(G||(G={})),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"}(j||(j={})),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"}(K||(K={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(Y||(Y={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(q||(q={}))},51861:(e,t,i)=>{"use strict";i.d(t,{E6:()=>l,Hw:()=>n,YN:()=>s,gf:()=>o,n9:()=>a,oq:()=>r,tu:()=>h,vp:()=>c});var s,n,r,o,a,c,l,h,d=i(78209);!function(e){e.inspectTokensAction=d.kg("inspectTokens","Developer: Inspect Tokens")}(s||(s={})),function(e){e.gotoLineActionLabel=d.kg("gotoLineActionLabel","Go to Line/Column...")}(n||(n={})),function(e){e.helpQuickAccessActionLabel=d.kg("helpQuickAccess","Show all Quick Access Providers")}(r||(r={})),function(e){e.quickCommandActionLabel=d.kg("quickCommandActionLabel","Command Palette"),e.quickCommandHelp=d.kg("quickCommandActionHelp","Show And Run Commands")}(o||(o={})),function(e){e.quickOutlineActionLabel=d.kg("quickOutlineActionLabel","Go to Symbol..."),e.quickOutlineByCategoryActionLabel=d.kg("quickOutlineByCategoryActionLabel","Go to Symbol by Category...")}(a||(a={})),function(e){e.editorViewAccessibleLabel=d.kg("editorViewAccessibleLabel","Editor content")}(c||(c={})),function(e){e.toggleHighContrast=d.kg("toggleHighContrast","Toggle High Contrast Theme")}(l||(l={})),function(e){e.bulkEditServiceSummary=d.kg("bulkEditServiceSummary","Made {0} edits in {1} files")}(h||(h={}))},64727:(e,t,i)=>{"use strict";i.d(t,{E$:()=>o,HP:()=>l,Ic:()=>d,U0:()=>r,Wn:()=>s,bg:()=>a,mS:()=>c,uK:()=>n,vn:()=>h});class s{constructor(){this.changeType=1}}class n{static applyInjectedText(e,t){if(!t||0===t.length)return e;let i="",s=0;for(const n of t)i+=e.substring(s,n.column-1),s=n.column-1,i+=n.options.content;return i+=e.substring(s),i}static fromDecorations(e){const t=[];for(const i of e)i.options.before&&i.options.before.content.length>0&&t.push(new n(i.ownerId,i.range.startLineNumber,i.range.startColumn,i.options.before,0)),i.options.after&&i.options.after.content.length>0&&t.push(new n(i.ownerId,i.range.endLineNumber,i.range.endColumn,i.options.after,1));return t.sort(((e,t)=>e.lineNumber===t.lineNumber?e.column===t.column?e.order-t.order:e.column-t.column:e.lineNumber-t.lineNumber)),t}constructor(e,t,i,s,n){this.ownerId=e,this.lineNumber=t,this.column=i,this.options=s,this.order=n}}class r{constructor(e,t,i){this.changeType=2,this.lineNumber=e,this.detail=t,this.injectedText=i}}class o{constructor(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t}}class a{constructor(e,t,i,s){this.changeType=4,this.injectedTexts=s,this.fromLineNumber=e,this.toLineNumber=t,this.detail=i}}class c{constructor(){this.changeType=5}}class l{constructor(e,t,i,s){this.changes=e,this.versionId=t,this.isUndoing=i,this.isRedoing=s,this.resultingSelection=null}containsEvent(e){for(let t=0,i=this.changes.length;t<i;t++){if(this.changes[t].changeType===e)return!0}return!1}static merge(e,t){const i=[].concat(e.changes).concat(t.changes),s=t.versionId,n=e.isUndoing||t.isUndoing,r=e.isRedoing||t.isRedoing;return new l(i,s,n,r)}}class h{constructor(e){this.changes=e}}class d{constructor(e,t){this.rawContentChangedEvent=e,this.contentChangedEvent=t}merge(e){const t=l.merge(this.rawContentChangedEvent,e.rawContentChangedEvent),i=d._mergeChangeEvents(this.contentChangedEvent,e.contentChangedEvent);return new d(t,i)}static _mergeChangeEvents(e,t){const i=[].concat(e.changes).concat(t.changes),s=t.eol,n=t.versionId,r=e.isUndoing||t.isUndoing,o=e.isRedoing||t.isRedoing,a=e.isFlush||t.isFlush;return{changes:i,eol:s,isEolChange:e.isEolChange&&t.isEolChange,versionId:n,isUndoing:r,isRedoing:o,isFlush:a}}}},84739:(e,t,i)=>{"use strict";var s;i.d(t,{N6:()=>s,TH:()=>n,pv:()=>r}),function(e){e[e.Disabled=0]="Disabled",e[e.EnabledForActive=1]="EnabledForActive",e[e.Enabled=2]="Enabled"}(s||(s={}));class n{constructor(e,t,i,s,n,r){if(this.visibleColumn=e,this.column=t,this.className=i,this.horizontalLine=s,this.forWrappedLinesAfterColumn=n,this.forWrappedLinesBeforeOrAtColumn=r,-1!==e===(-1!==t))throw new Error}}class r{constructor(e,t){this.top=e,this.endColumn=t}}},87469:(e,t,i)=>{"use strict";i.d(t,{T:()=>o,f:()=>n});var s=i(25982);class n{static{this.defaultTokenMetadata=33587200}static createEmpty(e,t){const i=n.defaultTokenMetadata,s=new Uint32Array(2);return s[0]=e.length,s[1]=i,new n(s,e,t)}static createFromTextAndMetadata(e,t){let i=0,s="";const r=new Array;for(const{text:n,metadata:o}of e)r.push(i+n.length,o),i+=n.length,s+=n;return new n(new Uint32Array(r),s,t)}constructor(e,t,i){this._lineTokensBrand=void 0,this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t,this.languageIdCodec=i}equals(e){return e instanceof n&&this.slicedEquals(e,0,this._tokensCount)}slicedEquals(e,t,i){if(this._text!==e._text)return!1;if(this._tokensCount!==e._tokensCount)return!1;const s=t<<1,n=s+(i<<1);for(let r=s;r<n;r++)if(this._tokens[r]!==e._tokens[r])return!1;return!0}getLineContent(){return this._text}getCount(){return this._tokensCount}getStartOffset(e){return e>0?this._tokens[e-1<<1]:0}getMetadata(e){return this._tokens[1+(e<<1)]}getLanguageId(e){const t=this._tokens[1+(e<<1)],i=s.x.getLanguageId(t);return this.languageIdCodec.decodeLanguageId(i)}getStandardTokenType(e){const t=this._tokens[1+(e<<1)];return s.x.getTokenType(t)}getForeground(e){const t=this._tokens[1+(e<<1)];return s.x.getForeground(t)}getClassName(e){const t=this._tokens[1+(e<<1)];return s.x.getClassNameFromMetadata(t)}getInlineStyle(e,t){const i=this._tokens[1+(e<<1)];return s.x.getInlineStyleFromMetadata(i,t)}getPresentation(e){const t=this._tokens[1+(e<<1)];return s.x.getPresentationFromMetadata(t)}getEndOffset(e){return this._tokens[e<<1]}findTokenIndexAtOffset(e){return n.findIndexInTokensArray(this._tokens,e)}inflate(){return this}sliceAndInflate(e,t,i){return new r(this,e,t,i)}static convertToEndOffset(e,t){const i=(e.length>>>1)-1;for(let s=0;s<i;s++)e[s<<1]=e[s+1<<1];e[i<<1]=t}static findIndexInTokensArray(e,t){if(e.length<=2)return 0;let i=0,s=(e.length>>>1)-1;for(;i<s;){const n=i+Math.floor((s-i)/2),r=e[n<<1];if(r===t)return n+1;r<t?i=n+1:r>t&&(s=n)}return i}withInserted(e){if(0===e.length)return this;let t=0,i=0,s="";const r=new Array;let o=0;for(;;){const n=t<this._tokensCount?this._tokens[t<<1]:-1,a=i<e.length?e[i]:null;if(-1!==n&&(null===a||n<=a.offset)){s+=this._text.substring(o,n);const e=this._tokens[1+(t<<1)];r.push(s.length,e),t++,o=n}else{if(!a)break;if(a.offset>o){s+=this._text.substring(o,a.offset);const e=this._tokens[1+(t<<1)];r.push(s.length,e),o=a.offset}s+=a.text,r.push(s.length,a.tokenMetadata),i++}}return new n(new Uint32Array(r),s,this.languageIdCodec)}getTokenText(e){const t=this.getStartOffset(e),i=this.getEndOffset(e);return this._text.substring(t,i)}forEach(e){const t=this.getCount();for(let i=0;i<t;i++)e(i)}}class r{constructor(e,t,i,s){this._source=e,this._startOffset=t,this._endOffset=i,this._deltaOffset=s,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this.languageIdCodec=e.languageIdCodec,this._tokensCount=0;for(let n=this._firstTokenIndex,r=e.getCount();n<r;n++){if(e.getStartOffset(n)>=i)break;this._tokensCount++}}getMetadata(e){return this._source.getMetadata(this._firstTokenIndex+e)}getLanguageId(e){return this._source.getLanguageId(this._firstTokenIndex+e)}getLineContent(){return this._source.getLineContent().substring(this._startOffset,this._endOffset)}equals(e){return e instanceof r&&(this._startOffset===e._startOffset&&this._endOffset===e._endOffset&&this._deltaOffset===e._deltaOffset&&this._source.slicedEquals(e._source,this._firstTokenIndex,this._tokensCount))}getCount(){return this._tokensCount}getStandardTokenType(e){return this._source.getStandardTokenType(this._firstTokenIndex+e)}getForeground(e){return this._source.getForeground(this._firstTokenIndex+e)}getEndOffset(e){const t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset}getClassName(e){return this._source.getClassName(this._firstTokenIndex+e)}getInlineStyle(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)}getPresentation(e){return this._source.getPresentation(this._firstTokenIndex+e)}findTokenIndexAtOffset(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex}getTokenText(e){const t=this._firstTokenIndex+e,i=this._source.getStartOffset(t),s=this._source.getEndOffset(t);let n=this._source.getTokenText(t);return i<this._startOffset&&(n=n.substring(this._startOffset-i)),s>this._endOffset&&(n=n.substring(0,n.length-(s-this._endOffset))),n}forEach(e){for(let t=0;t<this.getCount();t++)e(t)}}function o(e,t){const i=t.lineNumber;if(!e.tokenization.isCheapToTokenize(i))return;e.tokenization.forceTokenization(i);const s=e.tokenization.getLineTokens(i),n=s.findTokenIndexAtOffset(t.column-1);return s.getStandardTokenType(n)}},25521:(e,t,i)=>{"use strict";i.d(t,{Bs:()=>a,d:()=>n});var s=i(91508);class n{constructor(e,t,i,s){this.startColumn=e,this.endColumn=t,this.className=i,this.type=s,this._lineDecorationBrand=void 0}static _equals(e,t){return e.startColumn===t.startColumn&&e.endColumn===t.endColumn&&e.className===t.className&&e.type===t.type}static equalsArr(e,t){const i=e.length;if(i!==t.length)return!1;for(let s=0;s<i;s++)if(!n._equals(e[s],t[s]))return!1;return!0}static extractWrapped(e,t,i){if(0===e.length)return e;const s=t+1,r=i+1,o=i-t,a=[];let c=0;for(const l of e)l.endColumn<=s||l.startColumn>=r||(a[c++]=new n(Math.max(1,l.startColumn-s+1),Math.min(o+1,l.endColumn-s+1),l.className,l.type));return a}static filter(e,t,i,s){if(0===e.length)return[];const r=[];let o=0;for(let a=0,c=e.length;a<c;a++){const c=e[a],l=c.range;if(l.endLineNumber<t||l.startLineNumber>t)continue;if(l.isEmpty()&&(0===c.type||3===c.type))continue;const h=l.startLineNumber===t?l.startColumn:i,d=l.endLineNumber===t?l.endColumn:s;r[o++]=new n(h,d,c.inlineClassName,c.type)}return r}static _typeCompare(e,t){const i=[2,0,1,3];return i[e]-i[t]}static compare(e,t){if(e.startColumn!==t.startColumn)return e.startColumn-t.startColumn;if(e.endColumn!==t.endColumn)return e.endColumn-t.endColumn;const i=n._typeCompare(e.type,t.type);return 0!==i?i:e.className!==t.className?e.className<t.className?-1:1:0}}class r{constructor(e,t,i,s){this.startOffset=e,this.endOffset=t,this.className=i,this.metadata=s}}class o{constructor(){this.stopOffsets=[],this.classNames=[],this.metadata=[],this.count=0}static _metadata(e){let t=0;for(let i=0,s=e.length;i<s;i++)t|=e[i];return t}consumeLowerThan(e,t,i){for(;this.count>0&&this.stopOffsets[0]<e;){let e=0;for(;e+1<this.count&&this.stopOffsets[e]===this.stopOffsets[e+1];)e++;i.push(new r(t,this.stopOffsets[e],this.classNames.join(" "),o._metadata(this.metadata))),t=this.stopOffsets[e]+1,this.stopOffsets.splice(0,e+1),this.classNames.splice(0,e+1),this.metadata.splice(0,e+1),this.count-=e+1}return this.count>0&&t<e&&(i.push(new r(t,e-1,this.classNames.join(" "),o._metadata(this.metadata))),t=e),t}insert(e,t,i){if(0===this.count||this.stopOffsets[this.count-1]<=e)this.stopOffsets.push(e),this.classNames.push(t),this.metadata.push(i);else for(let s=0;s<this.count;s++)if(this.stopOffsets[s]>=e){this.stopOffsets.splice(s,0,e),this.classNames.splice(s,0,t),this.metadata.splice(s,0,i);break}this.count++}}class a{static normalize(e,t){if(0===t.length)return[];const i=[],n=new o;let r=0;for(let o=0,a=t.length;o<a;o++){const a=t[o];let c=a.startColumn,l=a.endColumn;const h=a.className,d=1===a.type?2:2===a.type?4:0;if(c>1){const t=e.charCodeAt(c-2);s.pc(t)&&c--}if(l>1){const t=e.charCodeAt(l-2);s.pc(t)&&l--}const u=c-1,g=l-2;r=n.consumeLowerThan(u,r,i),0===n.count&&(r=u),n.insert(g,h,d)}return n.consumeLowerThan(1073741824,r,i),i}}},35600:(e,t,i)=>{"use strict";i.d(t,{wZ:()=>h,MT:()=>c,zL:()=>l,UW:()=>g,Md:()=>m});var s=i(78209),n=i(91508),r=i(99020),o=i(25521);class a{constructor(e,t,i,s){this.endIndex=e,this.type=t,this.metadata=i,this.containsRTL=s,this._linePartBrand=void 0}isWhitespace(){return!!(1&this.metadata)}isPseudoAfter(){return!!(4&this.metadata)}}class c{constructor(e,t){this.startOffset=e,this.endOffset=t}equals(e){return this.startOffset===e.startOffset&&this.endOffset===e.endOffset}}class l{constructor(e,t,i,s,n,r,a,c,l,h,d,u,g,p,m,f,_,v,C){this.useMonospaceOptimizations=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=i,this.continuesWithWrappedLine=s,this.isBasicASCII=n,this.containsRTL=r,this.fauxIndentLength=a,this.lineTokens=c,this.lineDecorations=l.sort(o.d.compare),this.tabSize=h,this.startVisibleColumn=d,this.spaceWidth=u,this.stopRenderingLineAfter=m,this.renderWhitespace="all"===f?4:"boundary"===f?1:"selection"===f?2:"trailing"===f?3:0,this.renderControlCharacters=_,this.fontLigatures=v,this.selectionsOnLine=C&&C.sort(((e,t)=>e.startOffset<t.startOffset?-1:1));Math.abs(p-u)<Math.abs(g-u)?(this.renderSpaceWidth=p,this.renderSpaceCharCode=11825):(this.renderSpaceWidth=g,this.renderSpaceCharCode=183)}sameSelection(e){if(null===this.selectionsOnLine)return null===e;if(null===e)return!1;if(e.length!==this.selectionsOnLine.length)return!1;for(let t=0;t<this.selectionsOnLine.length;t++)if(!this.selectionsOnLine[t].equals(e[t]))return!1;return!0}equals(e){return this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineContent===e.lineContent&&this.continuesWithWrappedLine===e.continuesWithWrappedLine&&this.isBasicASCII===e.isBasicASCII&&this.containsRTL===e.containsRTL&&this.fauxIndentLength===e.fauxIndentLength&&this.tabSize===e.tabSize&&this.startVisibleColumn===e.startVisibleColumn&&this.spaceWidth===e.spaceWidth&&this.renderSpaceWidth===e.renderSpaceWidth&&this.renderSpaceCharCode===e.renderSpaceCharCode&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.fontLigatures===e.fontLigatures&&o.d.equalsArr(this.lineDecorations,e.lineDecorations)&&this.lineTokens.equals(e.lineTokens)&&this.sameSelection(e.selectionsOnLine)}}class h{constructor(e,t){this.partIndex=e,this.charIndex=t}}class d{static getPartIndex(e){return(4294901760&e)>>>16}static getCharIndex(e){return(65535&e)>>>0}constructor(e,t){this.length=e,this._data=new Uint32Array(this.length),this._horizontalOffset=new Uint32Array(this.length)}setColumnInfo(e,t,i,s){const n=(t<<16|i)>>>0;this._data[e-1]=n,this._horizontalOffset[e-1]=s}getHorizontalOffset(e){return 0===this._horizontalOffset.length?0:this._horizontalOffset[e-1]}charOffsetToPartData(e){return 0===this.length?0:e<0?this._data[0]:e>=this.length?this._data[this.length-1]:this._data[e]}getDomPosition(e){const t=this.charOffsetToPartData(e-1),i=d.getPartIndex(t),s=d.getCharIndex(t);return new h(i,s)}getColumn(e,t){return this.partDataToCharOffset(e.partIndex,t,e.charIndex)+1}partDataToCharOffset(e,t,i){if(0===this.length)return 0;const s=(e<<16|i)>>>0;let n=0,r=this.length-1;for(;n+1<r;){const e=n+r>>>1,t=this._data[e];if(t===s)return e;t>s?r=e:n=e}if(n===r)return n;const o=this._data[n],a=this._data[r];if(o===s)return n;if(a===s)return r;const c=d.getPartIndex(o),l=d.getCharIndex(o);let h;h=c!==d.getPartIndex(a)?t:d.getCharIndex(a);return i-l<=h-i?n:r}}class u{constructor(e,t,i){this._renderLineOutputBrand=void 0,this.characterMapping=e,this.containsRTL=t,this.containsForeignElements=i}}function g(e,t){if(0===e.lineContent.length){if(e.lineDecorations.length>0){t.appendString("<span>");let i=0,s=0,n=0;for(const o of e.lineDecorations)1!==o.type&&2!==o.type||(t.appendString('<span class="'),t.appendString(o.className),t.appendString('"></span>'),1===o.type&&(n|=1,i++),2===o.type&&(n|=2,s++));t.appendString("</span>");const r=new d(1,i+s);return r.setColumnInfo(1,i,0,0),new u(r,!1,n)}return t.appendString("<span><span></span></span>"),new u(new d(0,0),!1,0)}return function(e,t){const i=e.fontIsMonospace,r=e.canUseHalfwidthRightwardsArrow,o=e.containsForeignElements,a=e.lineContent,c=e.len,l=e.isOverflowing,h=e.overflowingCharCount,g=e.parts,p=e.fauxIndentLength,m=e.tabSize,f=e.startVisibleColumn,C=e.containsRTL,E=e.spaceWidth,b=e.renderSpaceCharCode,S=e.renderWhitespace,y=e.renderControlCharacters,w=new d(c+1,g.length);let R=!1,L=0,T=f,x=0,k=0,A=0;C?t.appendString('<span dir="ltr">'):t.appendString("<span>");for(let s=0,d=g.length;s<d;s++){const e=g[s],l=e.endIndex,h=e.type,d=e.containsRTL,u=0!==S&&e.isWhitespace(),f=u&&!i&&("mtkw"===h||!o),C=L===l&&e.isPseudoAfter();if(x=0,t.appendString("<span "),d&&t.appendString('style="unicode-bidi:isolate" '),t.appendString('class="'),t.appendString(f?"mtkz":h),t.appendASCIICharCode(34),u){let e=0;{let t=L,i=T;for(;t<l;t++){const s=0|(9===a.charCodeAt(t)?m-i%m:1);e+=s,t>=p&&(i+=s)}}for(f&&(t.appendString(' style="width:'),t.appendString(String(E*e)),t.appendString('px"')),t.appendASCIICharCode(62);L<l;L++){w.setColumnInfo(L+1,s-A,x,k),A=0;let e,i;if(9===a.charCodeAt(L)){e=m-T%m|0,i=e,!r||i>1?t.appendCharCode(8594):t.appendCharCode(65515);for(let e=2;e<=i;e++)t.appendCharCode(160)}else e=2,i=1,t.appendCharCode(b),t.appendCharCode(8204);x+=e,k+=i,L>=p&&(T+=i)}}else for(t.appendASCIICharCode(62);L<l;L++){w.setColumnInfo(L+1,s-A,x,k),A=0;const e=a.charCodeAt(L);let i=1,r=1;switch(e){case 9:i=m-T%m,r=i;for(let e=1;e<=i;e++)t.appendCharCode(160);break;case 32:t.appendCharCode(160);break;case 60:t.appendString("<");break;case 62:t.appendString(">");break;case 38:t.appendString("&");break;case 0:y?t.appendCharCode(9216):t.appendString("�");break;case 65279:case 8232:case 8233:case 133:t.appendCharCode(65533);break;default:n.ne(e)&&r++,y&&e<32?t.appendCharCode(9216+e):y&&127===e?t.appendCharCode(9249):y&&_(e)?(t.appendString("[U+"),t.appendString(v(e)),t.appendString("]"),i=8,r=i):t.appendCharCode(e)}x+=i,k+=r,L>=p&&(T+=r)}C?A++:A=0,L>=c&&!R&&e.isPseudoAfter()&&(R=!0,w.setColumnInfo(L+1,s,x,k)),t.appendString("</span>")}R||w.setColumnInfo(c+1,g.length-1,x,k);l&&(t.appendString('<span class="mtkoverflow">'),t.appendString(s.kg("showMore","Show more ({0})",function(e){if(e<1024)return s.kg("overflow.chars","{0} chars",e);if(e<1048576)return`${(e/1024).toFixed(1)} KB`;return`${(e/1024/1024).toFixed(1)} MB`}(h))),t.appendString("</span>"));return t.appendString("</span>"),new u(w,C,o)}(function(e){const t=e.lineContent;let i,s,r;-1!==e.stopRenderingLineAfter&&e.stopRenderingLineAfter<t.length?(i=!0,s=t.length-e.stopRenderingLineAfter,r=e.stopRenderingLineAfter):(i=!1,s=0,r=t.length);let c=function(e,t,i,s,r){const o=[];let c=0;s>0&&(o[c++]=new a(s,"",0,!1));let l=s;for(let h=0,d=i.getCount();h<d;h++){const d=i.getEndOffset(h);if(d<=s)continue;const u=i.getClassName(h);if(d>=r){const i=!!t&&n.E_(e.substring(l,r));o[c++]=new a(r,u,0,i);break}const g=!!t&&n.E_(e.substring(l,d));o[c++]=new a(d,u,0,g),l=d}return o}(t,e.containsRTL,e.lineTokens,e.fauxIndentLength,r);e.renderControlCharacters&&!e.isBasicASCII&&(c=function(e,t){const i=[];let s=new a(0,"",0,!1),n=0;for(const r of t){const t=r.endIndex;for(;n<t;n++){_(e.charCodeAt(n))&&(n>s.endIndex&&(s=new a(n,r.type,r.metadata,r.containsRTL),i.push(s)),s=new a(n+1,"mtkcontrol",r.metadata,!1),i.push(s))}n>s.endIndex&&(s=new a(t,r.type,r.metadata,r.containsRTL),i.push(s))}return i}(t,c));(4===e.renderWhitespace||1===e.renderWhitespace||2===e.renderWhitespace&&e.selectionsOnLine||3===e.renderWhitespace&&!e.continuesWithWrappedLine)&&(c=function(e,t,i,s){const r=e.continuesWithWrappedLine,o=e.fauxIndentLength,c=e.tabSize,l=e.startVisibleColumn,h=e.useMonospaceOptimizations,d=e.selectionsOnLine,u=1===e.renderWhitespace,g=3===e.renderWhitespace,p=e.renderSpaceWidth!==e.spaceWidth,m=[];let f=0,_=0,v=s[_].type,C=s[_].containsRTL,E=s[_].endIndex;const b=s.length;let S,y=!1,w=n.HG(t);-1===w?(y=!0,w=i,S=i):S=n.lT(t);let R=!1,L=0,T=d&&d[L],x=l%c;for(let A=o;A<i;A++){const e=t.charCodeAt(A);let r;if(T&&A>=T.endOffset&&(L++,T=d&&d[L]),A<w||A>S)r=!0;else if(9===e)r=!0;else if(32===e)if(u)if(R)r=!0;else{const e=A+1<i?t.charCodeAt(A+1):0;r=32===e||9===e}else r=!0;else r=!1;if(r&&d&&(r=!!T&&T.startOffset<=A&&T.endOffset>A),r&&g&&(r=y||A>S),r&&C&&A>=w&&A<=S&&(r=!1),R){if(!r||!h&&x>=c){if(p){for(let e=(f>0?m[f-1].endIndex:o)+1;e<=A;e++)m[f++]=new a(e,"mtkw",1,!1)}else m[f++]=new a(A,"mtkw",1,!1);x%=c}}else(A===E||r&&A>o)&&(m[f++]=new a(A,v,0,C),x%=c);for(9===e?x=c:n.ne(e)?x+=2:x++,R=r;A===E&&(_++,_<b);)v=s[_].type,C=s[_].containsRTL,E=s[_].endIndex}let k=!1;if(R)if(r&&u){const e=i>0?t.charCodeAt(i-1):0,s=i>1?t.charCodeAt(i-2):0;32===e&&32!==s&&9!==s||(k=!0)}else k=!0;if(k)if(p){for(let e=(f>0?m[f-1].endIndex:o)+1;e<=i;e++)m[f++]=new a(e,"mtkw",1,!1)}else m[f++]=new a(i,"mtkw",1,!1);else m[f++]=new a(i,v,0,C);return m}(e,t,r,c));let l=0;if(e.lineDecorations.length>0){for(let t=0,i=e.lineDecorations.length;t<i;t++){const i=e.lineDecorations[t];3===i.type||1===i.type?l|=1:2===i.type&&(l|=2)}c=function(e,t,i,s){s.sort(o.d.compare);const n=o.Bs.normalize(e,s),r=n.length;let c=0;const l=[];let h=0,d=0;for(let o=0,g=i.length;o<g;o++){const e=i[o],t=e.endIndex,s=e.type,u=e.metadata,g=e.containsRTL;for(;c<r&&n[c].startOffset<t;){const e=n[c];if(e.startOffset>d&&(d=e.startOffset,l[h++]=new a(d,s,u,g)),!(e.endOffset+1<=t)){d=t,l[h++]=new a(d,s+" "+e.className,u|e.metadata,g);break}d=e.endOffset+1,l[h++]=new a(d,s+" "+e.className,u|e.metadata,g),c++}t>d&&(d=t,l[h++]=new a(d,s,u,g))}const u=i[i.length-1].endIndex;if(c<r&&n[c].startOffset===u)for(;c<r&&n[c].startOffset===u;){const e=n[c];l[h++]=new a(d,e.className,e.metadata,!1),c++}return l}(t,0,c,e.lineDecorations)}e.containsRTL||(c=function(e,t,i){let s=0;const n=[];let r=0;if(i)for(let o=0,c=t.length;o<c;o++){const i=t[o],c=i.endIndex;if(s+50<c){const t=i.type,o=i.metadata,l=i.containsRTL;let h=-1,d=s;for(let i=s;i<c;i++)32===e.charCodeAt(i)&&(h=i),-1!==h&&i-d>=50&&(n[r++]=new a(h+1,t,o,l),d=h+1,h=-1);d!==c&&(n[r++]=new a(c,t,o,l))}else n[r++]=i;s=c}else for(let o=0,c=t.length;o<c;o++){const e=t[o],i=e.endIndex,c=i-s;if(c>50){const t=e.type,o=e.metadata,l=e.containsRTL,h=Math.ceil(c/50);for(let e=1;e<h;e++){const i=s+50*e;n[r++]=new a(i,t,o,l)}n[r++]=new a(i,t,o,l)}else n[r++]=e;s=i}return n}(t,c,!e.isBasicASCII||e.fontLigatures));return new f(e.useMonospaceOptimizations,e.canUseHalfwidthRightwardsArrow,t,r,i,s,c,l,e.fauxIndentLength,e.tabSize,e.startVisibleColumn,e.containsRTL,e.spaceWidth,e.renderSpaceCharCode,e.renderWhitespace,e.renderControlCharacters)}(e),t)}class p{constructor(e,t,i,s){this.characterMapping=e,this.html=t,this.containsRTL=i,this.containsForeignElements=s}}function m(e){const t=new r.fe(1e4),i=g(e,t);return new p(i.characterMapping,t.build(),i.containsRTL,i.containsForeignElements)}class f{constructor(e,t,i,s,n,r,o,a,c,l,h,d,u,g,p,m){this.fontIsMonospace=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=i,this.len=s,this.isOverflowing=n,this.overflowingCharCount=r,this.parts=o,this.containsForeignElements=a,this.fauxIndentLength=c,this.tabSize=l,this.startVisibleColumn=h,this.containsRTL=d,this.spaceWidth=u,this.renderSpaceCharCode=g,this.renderWhitespace=p,this.renderControlCharacters=m}}function _(e){return e<32?9!==e:127===e||(e>=8234&&e<=8238||e>=8294&&e<=8297||e>=8206&&e<=8207||1564===e)}function v(e){return e.toString(16).toUpperCase().padStart(4,"0")}},92896:(e,t,i)=>{"use strict";i.d(t,{GP:()=>c,LM:()=>o,Uv:()=>g,kI:()=>h,nt:()=>a,or:()=>d,qL:()=>l,vo:()=>u});var s=i(25890),n=i(91508),r=i(36677);class o{constructor(e,t,i,s){this._viewportBrand=void 0,this.top=0|e,this.left=0|t,this.width=0|i,this.height=0|s}}class a{constructor(e,t){this.tabSize=e,this.data=t}}class c{constructor(e,t,i,s,n,r,o){this._viewLineDataBrand=void 0,this.content=e,this.continuesWithWrappedLine=t,this.minColumn=i,this.maxColumn=s,this.startVisibleColumn=n,this.tokens=r,this.inlineDecorations=o}}class l{constructor(e,t,i,s,n,r,o,a,c,h){this.minColumn=e,this.maxColumn=t,this.content=i,this.continuesWithWrappedLine=s,this.isBasicASCII=l.isBasicASCII(i,r),this.containsRTL=l.containsRTL(i,this.isBasicASCII,n),this.tokens=o,this.inlineDecorations=a,this.tabSize=c,this.startVisibleColumn=h}static isBasicASCII(e,t){return!t||n.aC(e)}static containsRTL(e,t,i){return!(t||!i)&&n.E_(e)}}class h{constructor(e,t,i){this.range=e,this.inlineClassName=t,this.type=i}}class d{constructor(e,t,i,s){this.startOffset=e,this.endOffset=t,this.inlineClassName=i,this.inlineClassNameAffectsLetterSpacing=s}toInlineDecoration(e){return new h(new r.Q(e,this.startOffset+1,e,this.endOffset+1),this.inlineClassName,this.inlineClassNameAffectsLetterSpacing?3:0)}}class u{constructor(e,t){this._viewModelDecorationBrand=void 0,this.range=e,this.options=t}}class g{constructor(e,t,i){this.color=e,this.zIndex=t,this.data=i}static compareByRenderingProps(e,t){return e.zIndex===t.zIndex?e.color<t.color?-1:e.color>t.color?1:0:e.zIndex-t.zIndex}static equals(e,t){return e.color===t.color&&e.zIndex===t.zIndex&&s.aI(e.data,t.data)}static equalsArr(e,t){return s.aI(e,t,g.equals)}}},19531:(e,t,i)=>{"use strict";i.d(t,{iE:()=>n,rW:()=>r});class s{constructor(e,t,i){this._colorZoneBrand=void 0,this.from=0|e,this.to=0|t,this.colorId=0|i}static compare(e,t){return e.colorId===t.colorId?e.from===t.from?e.to-t.to:e.from-t.from:e.colorId-t.colorId}}class n{constructor(e,t,i,s){this._overviewRulerZoneBrand=void 0,this.startLineNumber=e,this.endLineNumber=t,this.heightInLines=i,this.color=s,this._colorZone=null}static compare(e,t){return e.color===t.color?e.startLineNumber===t.startLineNumber?e.heightInLines===t.heightInLines?e.endLineNumber-t.endLineNumber:e.heightInLines-t.heightInLines:e.startLineNumber-t.startLineNumber:e.color<t.color?-1:1}setColorZone(e){this._colorZone=e}getColorZones(){return this._colorZone}}class r{constructor(e){this._getVerticalOffsetForLine=e,this._zones=[],this._colorZonesInvalid=!1,this._lineHeight=0,this._domWidth=0,this._domHeight=0,this._outerHeight=0,this._pixelRatio=1,this._lastAssignedId=0,this._color2Id=Object.create(null),this._id2Color=[]}getId2Color(){return this._id2Color}setZones(e){this._zones=e,this._zones.sort(n.compare)}setLineHeight(e){return this._lineHeight!==e&&(this._lineHeight=e,this._colorZonesInvalid=!0,!0)}setPixelRatio(e){this._pixelRatio=e,this._colorZonesInvalid=!0}getDOMWidth(){return this._domWidth}getCanvasWidth(){return this._domWidth*this._pixelRatio}setDOMWidth(e){return this._domWidth!==e&&(this._domWidth=e,this._colorZonesInvalid=!0,!0)}getDOMHeight(){return this._domHeight}getCanvasHeight(){return this._domHeight*this._pixelRatio}setDOMHeight(e){return this._domHeight!==e&&(this._domHeight=e,this._colorZonesInvalid=!0,!0)}getOuterHeight(){return this._outerHeight}setOuterHeight(e){return this._outerHeight!==e&&(this._outerHeight=e,this._colorZonesInvalid=!0,!0)}resolveColorZones(){const e=this._colorZonesInvalid,t=Math.floor(this._lineHeight),i=Math.floor(this.getCanvasHeight()),n=i/Math.floor(this._outerHeight),r=Math.floor(4*this._pixelRatio/2),o=[];for(let a=0,c=this._zones.length;a<c;a++){const c=this._zones[a];if(!e){const e=c.getColorZones();if(e){o.push(e);continue}}const l=this._getVerticalOffsetForLine(c.startLineNumber),h=0===c.heightInLines?this._getVerticalOffsetForLine(c.endLineNumber)+t:l+c.heightInLines*t,d=Math.floor(n*l),u=Math.floor(n*h);let g=Math.floor((d+u)/2),p=u-g;p<r&&(p=r),g-p<0&&(g=p),g+p>i&&(g=i-p);const m=c.color;let f=this._color2Id[m];f||(f=++this._lastAssignedId,this._color2Id[m]=f,this._id2Color[f]=m);const _=new s(g-p,g+p,f);c.setColorZone(_),o.push(_)}return this._colorZonesInvalid=!1,o.sort(s.compare),o}}},32398:(e,t,i)=>{"use strict";i.d(t,{GN:()=>c,UB:()=>a,a6:()=>l,wc:()=>h});var s=i(83069),n=i(36677),r=i(92896),o=i(87908);class a{constructor(e,t,i,s,n){this.editorId=e,this.model=t,this.configuration=i,this._linesCollection=s,this._coordinatesConverter=n,this._decorationsCache=Object.create(null),this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}_clearCachedModelDecorationsResolver(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}dispose(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}reset(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onModelDecorationsChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onLineMappingChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}_getOrCreateViewModelDecoration(e){const t=e.id;let i=this._decorationsCache[t];if(!i){const o=e.range,a=e.options;let c;if(a.isWholeLine){const e=this._coordinatesConverter.convertModelPositionToViewPosition(new s.y(o.startLineNumber,1),0,!1,!0),t=this._coordinatesConverter.convertModelPositionToViewPosition(new s.y(o.endLineNumber,this.model.getLineMaxColumn(o.endLineNumber)),1);c=new n.Q(e.lineNumber,e.column,t.lineNumber,t.column)}else c=this._coordinatesConverter.convertModelRangeToViewRange(o,1);i=new r.vo(c,a),this._decorationsCache[t]=i}return i}getMinimapDecorationsInRange(e){return this._getDecorationsInRange(e,!0,!1).decorations}getDecorationsViewportData(e){let t=null!==this._cachedModelDecorationsResolver;return t=t&&e.equalsRange(this._cachedModelDecorationsResolverViewRange),t||(this._cachedModelDecorationsResolver=this._getDecorationsInRange(e,!1,!1),this._cachedModelDecorationsResolverViewRange=e),this._cachedModelDecorationsResolver}getInlineDecorationsOnLine(e,t=!1,i=!1){const s=new n.Q(e,this._linesCollection.getViewLineMinColumn(e),e,this._linesCollection.getViewLineMaxColumn(e));return this._getDecorationsInRange(s,t,i).inlineDecorations[0]}_getDecorationsInRange(e,t,i){const s=this._linesCollection.getDecorationsInRange(e,this.editorId,(0,o.$C)(this.configuration.options),t,i),a=e.startLineNumber,l=e.endLineNumber,h=[];let d=0;const u=[];for(let n=a;n<=l;n++)u[n-a]=[];for(let o=0,g=s.length;o<g;o++){const e=s[o],t=e.options;if(!c(this.model,e))continue;const i=this._getOrCreateViewModelDecoration(e),g=i.range;if(h[d++]=i,t.inlineClassName){const e=new r.kI(g,t.inlineClassName,t.inlineClassNameAffectsLetterSpacing?3:0),i=Math.max(a,g.startLineNumber),s=Math.min(l,g.endLineNumber);for(let t=i;t<=s;t++)u[t-a].push(e)}if(t.beforeContentClassName&&a<=g.startLineNumber&&g.startLineNumber<=l){const e=new r.kI(new n.Q(g.startLineNumber,g.startColumn,g.startLineNumber,g.startColumn),t.beforeContentClassName,1);u[g.startLineNumber-a].push(e)}if(t.afterContentClassName&&a<=g.endLineNumber&&g.endLineNumber<=l){const e=new r.kI(new n.Q(g.endLineNumber,g.endColumn,g.endLineNumber,g.endColumn),t.afterContentClassName,2);u[g.endLineNumber-a].push(e)}}return{decorations:h,inlineDecorations:u}}}function c(e,t){return(!t.options.hideInCommentTokens||!l(e,t))&&(!t.options.hideInStringTokens||!h(e,t))}function l(e,t){return d(e,t.range,(e=>1===e))}function h(e,t){return d(e,t.range,(e=>2===e))}function d(e,t,i){for(let s=t.startLineNumber;s<=t.endLineNumber;s++){const n=e.tokenization.getLineTokens(s),r=s===t.startLineNumber,o=s===t.endLineNumber;let a=r?n.findTokenIndexAtOffset(t.startColumn-1):0;for(;a<n.getCount();){if(o){if(n.getStartOffset(a)>t.endColumn-1)break}if(!i(n.getStandardTokenType(a)))return!1;a++}}return!0}},44915:(e,t,i)=>{"use strict";var s,n=i(11007),r=i(16980),o=i(24939),a=i(31450),c=i(75326),l=i(60002),h=i(78209),d=i(32848),u=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},g=function(e,t){return function(i,s){t(i,s,e)}};const p=new d.N1("selectionAnchorSet",!1);let m=class{static{s=this}static{this.ID="editor.contrib.selectionAnchorController"}static get(e){return e.getContribution(s.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=p.bindTo(t),this.modelChangeListener=e.onDidChangeModel((()=>this.selectionAnchorSetContextKey.reset()))}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations((t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(c.L.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:(new r.Bc).appendText((0,h.kg)("selectionAnchor","Selection Anchor")),className:"selection-anchor"})})),this.selectionAnchorSetContextKey.set(!!this.decorationId),(0,n.xE)((0,h.kg)("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(c.L.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations((t=>{t.removeDecoration(e),this.decorationId=void 0})),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};m=s=u([g(1,d.fN)],m);class f extends a.ks{constructor(){super({id:"editor.action.setSelectionAnchor",label:(0,h.kg)("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:l.R.editorTextFocus,primary:(0,o.m5)(2089,2080),weight:100}})}async run(e,t){m.get(t)?.setSelectionAnchor()}}class _ extends a.ks{constructor(){super({id:"editor.action.goToSelectionAnchor",label:(0,h.kg)("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:p})}async run(e,t){m.get(t)?.goToSelectionAnchor()}}class v extends a.ks{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:(0,h.kg)("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:p,kbOpts:{kbExpr:l.R.editorTextFocus,primary:(0,o.m5)(2089,2089),weight:100}})}async run(e,t){m.get(t)?.selectFromAnchorToCursor()}}class C extends a.ks{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:(0,h.kg)("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:p,kbOpts:{kbExpr:l.R.editorTextFocus,primary:9,weight:100}})}async run(e,t){m.get(t)?.cancelSelectionAnchor()}}(0,a.HW)(m.ID,m,4),(0,a.Fl)(f),(0,a.Fl)(_),(0,a.Fl)(v),(0,a.Fl)(C)},88952:(e,t,i)=>{"use strict";var s=i(90766),n=i(5662),r=i(31450),o=i(83069),a=i(36677),c=i(75326),l=i(60002),h=i(16223),d=i(87289),u=i(78209),g=i(27195),p=i(66261),m=i(47612);const f=(0,p.x1A)("editorOverviewRuler.bracketMatchForeground","#A0A0A0",u.kg("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class _ extends r.ks{constructor(){super({id:"editor.action.jumpToBracket",label:u.kg("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:l.R.editorTextFocus,primary:3165,weight:100}})}run(e,t){b.get(t)?.jumpToBracket()}}class v extends r.ks{constructor(){super({id:"editor.action.selectToBracket",label:u.kg("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,metadata:{description:u.aS("smartSelect.selectToBracketDescription","Select the text inside and including the brackets or curly braces"),args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){let s=!0;i&&!1===i.selectBrackets&&(s=!1),b.get(t)?.selectToBracket(s)}}class C extends r.ks{constructor(){super({id:"editor.action.removeBrackets",label:u.kg("smartSelect.removeBrackets","Remove Brackets"),alias:"Remove Brackets",precondition:void 0,kbOpts:{kbExpr:l.R.editorTextFocus,primary:2561,weight:100}})}run(e,t){b.get(t)?.removeBrackets(this.id)}}class E{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}class b extends n.jG{static{this.ID="editor.contrib.bracketMatchingController"}static get(e){return e.getContribution(b.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new s.uC((()=>this._updateBrackets()),50)),this._matchBrackets=this._editor.getOption(72),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition((e=>{"never"!==this._matchBrackets&&this._updateBracketsSoon.schedule()}))),this._register(e.onDidChangeModelContent((e=>{this._updateBracketsSoon.schedule()}))),this._register(e.onDidChangeModel((e=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()}))),this._register(e.onDidChangeModelLanguageConfiguration((e=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()}))),this._register(e.onDidChangeConfiguration((e=>{e.hasChanged(72)&&(this._matchBrackets=this._editor.getOption(72),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())}))),this._register(e.onDidBlurEditorWidget((()=>{this._updateBracketsSoon.schedule()}))),this._register(e.onDidFocusEditorWidget((()=>{this._updateBracketsSoon.schedule()})))}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map((t=>{const i=t.getStartPosition(),s=e.bracketPairs.matchBracket(i);let n=null;if(s)s[0].containsPosition(i)&&!s[1].containsPosition(i)?n=s[1].getStartPosition():s[1].containsPosition(i)&&(n=s[0].getStartPosition());else{const t=e.bracketPairs.findEnclosingBrackets(i);if(t)n=t[1].getStartPosition();else{const t=e.bracketPairs.findNextBracket(i);t&&t.range&&(n=t.range.getStartPosition())}}return n?new c.L(n.lineNumber,n.column,n.lineNumber,n.column):new c.L(i.lineNumber,i.column,i.lineNumber,i.column)}));this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach((s=>{const n=s.getStartPosition();let r=t.bracketPairs.matchBracket(n);if(!r&&(r=t.bracketPairs.findEnclosingBrackets(n),!r)){const e=t.bracketPairs.findNextBracket(n);e&&e.range&&(r=t.bracketPairs.matchBracket(e.range.getStartPosition()))}let o=null,l=null;if(r){r.sort(a.Q.compareRangesUsingStarts);const[t,i]=r;if(o=e?t.getStartPosition():t.getEndPosition(),l=e?i.getEndPosition():i.getStartPosition(),i.containsPosition(n)){const e=o;o=l,l=e}}o&&l&&i.push(new c.L(o.lineNumber,o.column,l.lineNumber,l.column))})),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}removeBrackets(e){if(!this._editor.hasModel())return;const t=this._editor.getModel();this._editor.getSelections().forEach((i=>{const s=i.getPosition();let n=t.bracketPairs.matchBracket(s);n||(n=t.bracketPairs.findEnclosingBrackets(s)),n&&(this._editor.pushUndoStop(),this._editor.executeEdits(e,[{range:n[0],text:""},{range:n[1],text:""}]),this._editor.pushUndoStop())}))}static{this._DECORATION_OPTIONS_WITH_OVERVIEW_RULER=d.kI.register({description:"bracket-match-overview",stickiness:1,className:"bracket-match",overviewRuler:{color:(0,m.Yf)(f),position:h.A5.Center}})}static{this._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=d.kI.register({description:"bracket-match-no-overview",stickiness:1,className:"bracket-match"})}_updateBrackets(){if("never"===this._matchBrackets)return;this._recomputeBrackets();const e=[];let t=0;for(const i of this._lastBracketsData){const s=i.brackets;s&&(e[t++]={range:s[0],options:i.options},e[t++]={range:s[1],options:i.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus())return this._lastBracketsData=[],void(this._lastVersionId=0);const e=this._editor.getSelections();if(e.length>100)return this._lastBracketsData=[],void(this._lastVersionId=0);const t=this._editor.getModel(),i=t.getVersionId();let s=[];this._lastVersionId===i&&(s=this._lastBracketsData);const n=[];let r=0;for(let o=0,d=e.length;o<d;o++){const t=e[o];t.isEmpty()&&(n[r++]=t.getStartPosition())}n.length>1&&n.sort(o.y.compare);const a=[];let c=0,l=0;const h=s.length;for(let o=0,d=n.length;o<d;o++){const e=n[o];for(;l<h&&s[l].position.isBefore(e);)l++;if(l<h&&s[l].position.equals(e))a[c++]=s[l];else{let i=t.bracketPairs.matchBracket(e,20),s=b._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;i||"always"!==this._matchBrackets||(i=t.bracketPairs.findEnclosingBrackets(e,20),s=b._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),a[c++]=new E(e,i,s)}}this._lastBracketsData=a,this._lastVersionId=i}}(0,r.HW)(b.ID,b,1),(0,r.Fl)(v),(0,r.Fl)(_),(0,r.Fl)(C),g.ZG.appendMenuItem(g.D8.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:u.kg({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2})},58590:(e,t,i)=>{"use strict";var s=i(31450),n=i(60002),r=i(36677),o=i(75326);class a{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;const i=this._selection.startLineNumber,s=this._selection.startColumn,n=this._selection.endColumn;if((!this._isMovingLeft||1!==s)&&(this._isMovingLeft||n!==e.getLineMaxColumn(i)))if(this._isMovingLeft){const o=new r.Q(i,s-1,i,s),a=e.getValueInRange(o);t.addEditOperation(o,null),t.addEditOperation(new r.Q(i,n,i,n),a)}else{const o=new r.Q(i,n,i,n+1),a=e.getValueInRange(o);t.addEditOperation(o,null),t.addEditOperation(new r.Q(i,s,i,s),a)}}computeCursorState(e,t){return this._isMovingLeft?new o.L(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new o.L(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}var c=i(78209);class l extends s.ks{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;const i=[],s=t.getSelections();for(const n of s)i.push(new a(n,this.left));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}(0,s.Fl)(class extends l{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:c.kg("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:n.R.writable})}}),(0,s.Fl)(class extends l{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:c.kg("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:n.R.writable})}})},6438:(e,t,i)=>{"use strict";var s=i(31450),n=i(15092),r=i(94564),o=i(36677),a=i(60002),c=i(78209);class l extends s.ks{constructor(){super({id:"editor.action.transposeLetters",label:c.kg("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:a.R.writable,kbOpts:{kbExpr:a.R.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;const i=t.getModel(),s=[],a=t.getSelections();for(const c of a){if(!c.isEmpty())continue;const e=c.startLineNumber,t=c.startColumn,a=i.getLineMaxColumn(e);if(1===e&&(1===t||2===t&&2===a))continue;const l=t===a?c.getPosition():r.I.rightPosition(i,c.getPosition().lineNumber,c.getPosition().column),h=r.I.leftPosition(i,l),d=r.I.leftPosition(i,h),u=i.getValueInRange(o.Q.fromPositions(d,h)),g=i.getValueInRange(o.Q.fromPositions(h,l)),p=o.Q.fromPositions(d,l);s.push(new n.iu(p,g+u))}s.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop())}}(0,s.Fl)(l)},94908:(e,t,i)=>{"use strict";var s=i(60413),n=i(8597),r=i(98067),o=i(68792),a=i(31450),c=i(80301),l=i(60002),h=i(55433),d=i(78209),u=i(27195),g=i(54770),p=i(32848);const m="9_cutcopypaste",f=r.ib||document.queryCommandSupported("cut"),_=r.ib||document.queryCommandSupported("copy"),v="undefined"!==typeof navigator.clipboard&&!s.gm||document.queryCommandSupported("paste");function C(e){return e.register(),e}const E=f?C(new a.fE({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:r.ib?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:u.D8.MenubarEditMenu,group:"2_ccp",title:d.kg({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:u.D8.EditorContext,group:m,title:d.kg("actions.clipboard.cutLabel","Cut"),when:l.R.writable,order:1},{menuId:u.D8.CommandPalette,group:"",title:d.kg("actions.clipboard.cutLabel","Cut"),order:1},{menuId:u.D8.SimpleEditorContext,group:m,title:d.kg("actions.clipboard.cutLabel","Cut"),when:l.R.writable,order:1}]})):void 0,b=_?C(new a.fE({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:r.ib?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:u.D8.MenubarEditMenu,group:"2_ccp",title:d.kg({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:u.D8.EditorContext,group:m,title:d.kg("actions.clipboard.copyLabel","Copy"),order:2},{menuId:u.D8.CommandPalette,group:"",title:d.kg("actions.clipboard.copyLabel","Copy"),order:1},{menuId:u.D8.SimpleEditorContext,group:m,title:d.kg("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;u.ZG.appendMenuItem(u.D8.MenubarEditMenu,{submenu:u.D8.MenubarCopy,title:d.aS("copy as","Copy As"),group:"2_ccp",order:3}),u.ZG.appendMenuItem(u.D8.EditorContext,{submenu:u.D8.EditorContextCopy,title:d.aS("copy as","Copy As"),group:m,order:3}),u.ZG.appendMenuItem(u.D8.EditorContext,{submenu:u.D8.EditorContextShare,title:d.aS("share","Share"),group:"11_share",order:-1,when:p.M$.and(p.M$.notEquals("resourceScheme","output"),l.R.editorTextFocus)}),u.ZG.appendMenuItem(u.D8.ExplorerContext,{submenu:u.D8.ExplorerContextShare,title:d.aS("share","Share"),group:"11_share",order:-1});const S=v?C(new a.fE({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:r.ib?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:u.D8.MenubarEditMenu,group:"2_ccp",title:d.kg({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:u.D8.EditorContext,group:m,title:d.kg("actions.clipboard.pasteLabel","Paste"),when:l.R.writable,order:4},{menuId:u.D8.CommandPalette,group:"",title:d.kg("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:u.D8.SimpleEditorContext,group:m,title:d.kg("actions.clipboard.pasteLabel","Paste"),when:l.R.writable,order:4}]})):void 0;class y extends a.ks{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:d.kg("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:l.R.textInputFocus,primary:0,weight:100}})}run(e,t){if(!t.hasModel())return;!t.getOption(37)&&t.getSelection().isEmpty()||(o.Eq.forceCopyWithSyntaxHighlighting=!0,t.focus(),t.getContainerDomNode().ownerDocument.execCommand("copy"),o.Eq.forceCopyWithSyntaxHighlighting=!1)}}function w(e,t){e&&(e.addImplementation(1e4,"code-editor",((e,i)=>{const s=e.get(c.T).getFocusedCodeEditor();if(s&&s.hasTextFocus()){const e=s.getOption(37),i=s.getSelection();return i&&i.isEmpty()&&!e||s.getContainerDomNode().ownerDocument.execCommand(t),!0}return!1})),e.addImplementation(0,"generic-dom",((e,i)=>((0,n.a)().execCommand(t),!0))))}w(E,"cut"),w(b,"copy"),S&&(S.addImplementation(1e4,"code-editor",((e,t)=>{const i=e.get(c.T),s=e.get(g.h),n=i.getFocusedCodeEditor();if(n&&n.hasTextFocus()){return n.getContainerDomNode().ownerDocument.execCommand("paste")?h.Rj.get(n)?.finishedPaste()??Promise.resolve():!r.HZ||(async()=>{const e=await s.readText();if(""!==e){const t=o.bs.INSTANCE.get(e);let i=!1,s=null,r=null;t&&(i=n.getOption(37)&&!!t.isFromEmptySelection,s="undefined"!==typeof t.multicursorText?t.multicursorText:null,r=t.mode),n.trigger("keyboard","paste",{text:e,pasteOnNewLine:i,multicursorText:s,mode:r})}})()}return!1})),S.addImplementation(0,"generic-dom",((e,t)=>((0,n.a)().execCommand("paste"),!0)))),_&&(0,a.Fl)(y)},55130:(e,t,i)=>{"use strict";i.d(t,{C9:()=>R,Qp:()=>I,Rw:()=>T,Uy:()=>L,W4:()=>O,Xj:()=>w,dU:()=>A,k_:()=>b,pQ:()=>S,pR:()=>y});var s=i(25890),n=i(18447),r=i(64383),o=i(5662),a=i(79400),c=i(80537),l=i(36677),h=i(75326),d=i(56942),u=i(23750),g=i(50868),p=i(78209),m=i(50091),f=i(58591),_=i(73823),v=i(90651),C=i(61407),E=i(8995);const b="editor.action.codeAction",S="editor.action.quickFix",y="editor.action.autoFix",w="editor.action.refactor",R="editor.action.sourceAction",L="editor.action.organizeImports",T="editor.action.fixAll";class x extends o.jG{static codeActionsPreferredComparator(e,t){return e.isPreferred&&!t.isPreferred?-1:!e.isPreferred&&t.isPreferred?1:0}static codeActionsComparator({action:e},{action:t}){return e.isAI&&!t.isAI?1:!e.isAI&&t.isAI?-1:(0,s.EI)(e.diagnostics)?(0,s.EI)(t.diagnostics)?x.codeActionsPreferredComparator(e,t):-1:(0,s.EI)(t.diagnostics)?1:x.codeActionsPreferredComparator(e,t)}constructor(e,t,i){super(),this.documentation=t,this._register(i),this.allActions=[...e].sort(x.codeActionsComparator),this.validActions=this.allActions.filter((({action:e})=>!e.disabled))}get hasAutoFix(){return this.validActions.some((({action:e})=>!!e.kind&&C.gB.QuickFix.contains(new E.k(e.kind))&&!!e.isPreferred))}get hasAIFix(){return this.validActions.some((({action:e})=>!!e.isAI))}get allAIFixes(){return this.validActions.every((({action:e})=>!!e.isAI))}}const k={actions:[],documentation:void 0};async function A(e,t,i,n,a,c){const l=n.filter||{},h={...l,excludes:[...l.excludes||[],C.gB.Notebook]},d={only:l.include?.value,trigger:n.type},u=new g.ER(t,c),p=2===n.type,m=function(e,t,i){return e.all(t).filter((e=>!e.providedCodeActionKinds||e.providedCodeActionKinds.some((e=>(0,C.uJ)(i,new E.k(e))))))}(e,t,p?h:l),f=new o.Cm,_=m.map((async e=>{try{a.report(e);const s=await e.provideCodeActions(t,i,d,u.token);if(s&&f.add(s),u.token.isCancellationRequested)return k;const n=(s?.actions||[]).filter((e=>e&&(0,C.aF)(l,e))),r=function(e,t,i){if(!e.documentation)return;const s=e.documentation.map((e=>({kind:new E.k(e.kind),command:e.command})));if(i){let e;for(const t of s)t.kind.contains(i)&&(e?e.kind.contains(t.kind)&&(e=t):e=t);if(e)return e?.command}for(const n of t)if(n.kind)for(const e of s)if(e.kind.contains(new E.k(n.kind)))return e.command;return}(e,n,l.include);return{actions:n.map((t=>new C.Vi(t,e))),documentation:r}}catch(s){if((0,r.MB)(s))throw s;return(0,r.M_)(s),k}})),v=e.onDidChange((()=>{const i=e.all(t);(0,s.aI)(i,m)||u.cancel()}));try{const i=await Promise.all(_),r=i.map((e=>e.actions)).flat(),o=[...(0,s.Yc)(i.map((e=>e.documentation))),...N(e,t,n,r)];return new x(r,o,f)}finally{v.dispose(),u.dispose()}}function*N(e,t,i,s){if(t&&s.length)for(const n of e.all(t))n._getAdditionalMenuItems&&(yield*n._getAdditionalMenuItems?.({trigger:i.type,only:i.filter?.include?.value},s.map((e=>e.action))))}var I;async function O(e,t,i,s,r=n.XO.None){const o=e.get(c.nu),a=e.get(m.d),l=e.get(v.k),h=e.get(f.Ot);if(l.publicLog2("codeAction.applyCodeAction",{codeActionTitle:t.action.title,codeActionKind:t.action.kind,codeActionIsPreferred:!!t.action.isPreferred,reason:i}),await t.resolve(r),!r.isCancellationRequested){if(t.action.edit?.edits.length){if(!(await o.apply(t.action.edit,{editor:s?.editor,label:t.action.title,quotableLabel:t.action.title,code:"undoredo.codeAction",respectAutoSaveConfig:i!==I.OnSave,showPreview:s?.preview})).isApplied)return}if(t.action.command)try{await a.executeCommand(t.action.command.id,...t.action.command.arguments||[])}catch(d){const e=function(e){return"string"===typeof e?e:e instanceof Error&&"string"===typeof e.message?e.message:void 0}(d);h.error("string"===typeof e?e:p.kg("applyCodeActionFailed","An unknown error occurred while applying the code action"))}}}!function(e){e.OnSave="onSave",e.FromProblemsView="fromProblemsView",e.FromCodeActions="fromCodeActions",e.FromAILightbulb="fromAILightbulb"}(I||(I={})),m.w.registerCommand("_executeCodeActionProvider",(async function(e,t,i,s,o){if(!(t instanceof a.r))throw(0,r.Qg)();const{codeActionProvider:c}=e.get(d.ILanguageFeaturesService),g=e.get(u.IModelService).getModel(t);if(!g)throw(0,r.Qg)();const p=h.L.isISelection(i)?h.L.liftSelection(i):l.Q.isIRange(i)?g.validateRange(i):void 0;if(!p)throw(0,r.Qg)();const m="string"===typeof s?new E.k(s):void 0,f=await A(c,g,p,{type:1,triggerAction:C.fo.Default,filter:{includeSourceActions:!0,include:m}},_.ke.None,n.XO.None),v=[],b=Math.min(f.validActions.length,"number"===typeof o?o:0);for(let r=0;r<b;r++)v.push(f.validActions[r].resolve(n.XO.None));try{return await Promise.all(v),f.validActions.map((e=>e.action))}finally{setTimeout((()=>f.dispose()),100)}}))},4836:(e,t,i)=>{"use strict";var s=i(31450),n=i(94371),r=i(8995),o=i(91508),a=i(60002),c=i(55130),l=i(78209),h=i(32848),d=i(61407),u=i(71933),g=i(59473);function p(e){return h.M$.regex(g.D_.keys()[0],new RegExp("(\\s|^)"+(0,o.bm)(e.value)+"\\b"))}const m={type:"object",defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:l.kg("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:l.kg("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[l.kg("args.schema.apply.first","Always apply the first returned code action."),l.kg("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),l.kg("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:l.kg("args.schema.preferred","Controls if only preferred code actions should be returned.")}}};function f(e,t,i,s,n=d.fo.Default){if(e.hasModel()){const r=u.C.get(e);r?.manualTriggerAtCurrentPosition(t,n,i,s)}}class _ extends s.ks{constructor(){super({id:c.pQ,label:l.kg("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:h.M$.and(a.R.writable,a.R.hasCodeActionsProvider),kbOpts:{kbExpr:a.R.textInputFocus,primary:2137,weight:100}})}run(e,t){return f(t,l.kg("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0,d.fo.QuickFix)}}class v extends s.DX{constructor(){super({id:c.k_,precondition:h.M$.and(a.R.writable,a.R.hasCodeActionsProvider),metadata:{description:"Trigger a code action",args:[{name:"args",schema:m}]}})}runEditorCommand(e,t,i){const s=d.QA.fromUser(i,{kind:r.k.Empty,apply:"ifSingle"});return f(t,"string"===typeof i?.kind?s.preferred?l.kg("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",i.kind):l.kg("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",i.kind):s.preferred?l.kg("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):l.kg("editor.action.codeAction.noneMessage","No code actions available"),{include:s.kind,includeSourceActions:!0,onlyIncludePreferredActions:s.preferred},s.apply)}}class C extends s.ks{constructor(){super({id:c.Xj,label:l.kg("refactor.label","Refactor..."),alias:"Refactor...",precondition:h.M$.and(a.R.writable,a.R.hasCodeActionsProvider),kbOpts:{kbExpr:a.R.textInputFocus,primary:3120,mac:{primary:1328},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:h.M$.and(a.R.writable,p(d.gB.Refactor))},metadata:{description:"Refactor...",args:[{name:"args",schema:m}]}})}run(e,t,i){const s=d.QA.fromUser(i,{kind:d.gB.Refactor,apply:"never"});return f(t,"string"===typeof i?.kind?s.preferred?l.kg("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",i.kind):l.kg("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",i.kind):s.preferred?l.kg("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):l.kg("editor.action.refactor.noneMessage","No refactorings available"),{include:d.gB.Refactor.contains(s.kind)?s.kind:r.k.None,onlyIncludePreferredActions:s.preferred},s.apply,d.fo.Refactor)}}class E extends s.ks{constructor(){super({id:c.C9,label:l.kg("source.label","Source Action..."),alias:"Source Action...",precondition:h.M$.and(a.R.writable,a.R.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:h.M$.and(a.R.writable,p(d.gB.Source))},metadata:{description:"Source Action...",args:[{name:"args",schema:m}]}})}run(e,t,i){const s=d.QA.fromUser(i,{kind:d.gB.Source,apply:"never"});return f(t,"string"===typeof i?.kind?s.preferred?l.kg("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",i.kind):l.kg("editor.action.source.noneMessage.kind","No source actions for '{0}' available",i.kind):s.preferred?l.kg("editor.action.source.noneMessage.preferred","No preferred source actions available"):l.kg("editor.action.source.noneMessage","No source actions available"),{include:d.gB.Source.contains(s.kind)?s.kind:r.k.None,includeSourceActions:!0,onlyIncludePreferredActions:s.preferred},s.apply,d.fo.SourceAction)}}class b extends s.ks{constructor(){super({id:c.Uy,label:l.kg("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:h.M$.and(a.R.writable,p(d.gB.SourceOrganizeImports)),kbOpts:{kbExpr:a.R.textInputFocus,primary:1581,weight:100}})}run(e,t){return f(t,l.kg("editor.action.organize.noneMessage","No organize imports action available"),{include:d.gB.SourceOrganizeImports,includeSourceActions:!0},"ifSingle",d.fo.OrganizeImports)}}class S extends s.ks{constructor(){super({id:c.Rw,label:l.kg("fixAll.label","Fix All"),alias:"Fix All",precondition:h.M$.and(a.R.writable,p(d.gB.SourceFixAll))})}run(e,t){return f(t,l.kg("fixAll.noneMessage","No fix all action available"),{include:d.gB.SourceFixAll,includeSourceActions:!0},"ifSingle",d.fo.FixAll)}}class y extends s.ks{constructor(){super({id:c.pR,label:l.kg("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:h.M$.and(a.R.writable,p(d.gB.QuickFix)),kbOpts:{kbExpr:a.R.textInputFocus,primary:1625,mac:{primary:2649},weight:100}})}run(e,t){return f(t,l.kg("editor.action.autoFix.noneMessage","No auto fixes available"),{include:d.gB.QuickFix,onlyIncludePreferredActions:!0},"ifSingle",d.fo.AutoFix)}}var w=i(96758),R=i(1646),L=i(46359);(0,s.HW)(u.C.ID,u.C,3),(0,s.HW)(w.E.ID,w.E,4),(0,s.Fl)(_),(0,s.Fl)(C),(0,s.Fl)(E),(0,s.Fl)(b),(0,s.Fl)(y),(0,s.Fl)(S),(0,s.E_)(new v),L.O.as(R.Fd.Configuration).registerConfiguration({...n.JJ,properties:{"editor.codeActionWidget.showHeaders":{type:"boolean",scope:5,description:l.kg("showCodeActionHeaders","Enable/disable showing group headers in the Code Action menu."),default:!0}}}),L.O.as(R.Fd.Configuration).registerConfiguration({...n.JJ,properties:{"editor.codeActionWidget.includeNearbyQuickFixes":{type:"boolean",scope:5,description:l.kg("includeNearbyQuickFixes","Enable/disable showing nearest Quick Fix within a line when not currently on a diagnostic."),default:!0}}}),L.O.as(R.Fd.Configuration).registerConfiguration({...n.JJ,properties:{"editor.codeActions.triggerOnFocusChange":{type:"boolean",scope:5,markdownDescription:l.kg("triggerOnFocusChange","Enable triggering {0} when {1} is set to {2}. Code Actions must be set to {3} to be triggered for window and focus changes.","`#editor.codeActionsOnSave#`","`#files.autoSave#`","`afterDelay`","`always`"),default:!1}}})},71933:(e,t,i)=>{"use strict";i.d(t,{C:()=>ue});var s,n=i(8597),r=i(11007),o=i(64383),a=i(91090),c=i(5662),l=i(83069),h=i(87289),d=i(56942),u=i(55130),g=i(8995),p=i(61407),m=i(98031),f=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},_=function(e,t){return function(i,s){t(i,s,e)}};let v=class{static{s=this}static{this.codeActionCommands=[u.Xj,u.k_,u.C9,u.Uy,u.Rw]}constructor(e){this.keybindingService=e}getResolver(){const e=new a.d((()=>this.keybindingService.getKeybindings().filter((e=>s.codeActionCommands.indexOf(e.command)>=0)).filter((e=>e.resolvedKeybinding)).map((e=>{let t=e.commandArgs;return e.command===u.Uy?t={kind:p.gB.SourceOrganizeImports.value}:e.command===u.Rw&&(t={kind:p.gB.SourceFixAll.value}),{resolvedKeybinding:e.resolvedKeybinding,...p.QA.fromUser(t,{kind:g.k.None,apply:"never"})}}))));return t=>{if(t.kind){const i=this.bestKeybindingForCodeAction(t,e.value);return i?.resolvedKeybinding}}}bestKeybindingForCodeAction(e,t){if(!e.kind)return;const i=new g.k(e.kind);return t.filter((e=>e.kind.contains(i))).filter((t=>!t.preferred||e.isPreferred)).reduceRight(((e,t)=>e?e.kind.contains(t.kind)?t:e:t),void 0)}};v=s=f([_(0,m.b)],v);i(97791);var C=i(10350),E=(i(93409),i(78209));const b=Object.freeze({kind:g.k.Empty,title:(0,E.kg)("codeAction.widget.id.more","More Actions...")}),S=Object.freeze([{kind:p.gB.QuickFix,title:(0,E.kg)("codeAction.widget.id.quickfix","Quick Fix")},{kind:p.gB.RefactorExtract,title:(0,E.kg)("codeAction.widget.id.extract","Extract"),icon:C.W.wrench},{kind:p.gB.RefactorInline,title:(0,E.kg)("codeAction.widget.id.inline","Inline"),icon:C.W.wrench},{kind:p.gB.RefactorRewrite,title:(0,E.kg)("codeAction.widget.id.convert","Rewrite"),icon:C.W.wrench},{kind:p.gB.RefactorMove,title:(0,E.kg)("codeAction.widget.id.move","Move"),icon:C.W.wrench},{kind:p.gB.SurroundWith,title:(0,E.kg)("codeAction.widget.id.surround","Surround With"),icon:C.W.surroundWith},{kind:p.gB.Source,title:(0,E.kg)("codeAction.widget.id.source","Source Action"),icon:C.W.symbolFile},b]);var y=i(96758),w=i(99645),R=i(11799),L=i(47625),T=i(93090),x=i(18447),k=i(98067),A=i(25689),N=i(47508),I=i(19070),O=i(66261),D=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},M=function(e,t){return function(i,s){t(i,s,e)}};const P="acceptSelectedCodeAction",F="previewSelectedCodeAction";class U{get templateId(){return"header"}renderTemplate(e){e.classList.add("group-header");const t=document.createElement("span");return e.append(t),{container:e,text:t}}renderElement(e,t,i){i.text.textContent=e.group?.title??""}disposeTemplate(e){}}let H=class{get templateId(){return"action"}constructor(e,t){this._supportsPreview=e,this._keybindingService=t}renderTemplate(e){e.classList.add(this.templateId);const t=document.createElement("div");t.className="icon",e.append(t);const i=document.createElement("span");i.className="title",e.append(i);return{container:e,icon:t,text:i,keybinding:new L.x(e,k.OS)}}renderElement(e,t,i){if(e.group?.icon?(i.icon.className=A.L.asClassName(e.group.icon),e.group.icon.color&&(i.icon.style.color=(0,O.GuP)(e.group.icon.color.id))):(i.icon.className=A.L.asClassName(C.W.lightBulb),i.icon.style.color="var(--vscode-editorLightBulb-foreground)"),!e.item||!e.label)return;i.text.textContent=G(e.label),i.keybinding.set(e.keybinding),n.bo(!!e.keybinding,i.keybinding.element);const s=this._keybindingService.lookupKeybinding(P)?.getLabel(),r=this._keybindingService.lookupKeybinding(F)?.getLabel();i.container.classList.toggle("option-disabled",e.disabled),e.disabled?i.container.title=e.label:s&&r?this._supportsPreview&&e.canPreview?i.container.title=(0,E.kg)({key:"label-preview",comment:['placeholders are keybindings, e.g "F2 to Apply, Shift+F2 to Preview"']},"{0} to Apply, {1} to Preview",s,r):i.container.title=(0,E.kg)({key:"label",comment:['placeholder is a keybinding, e.g "F2 to Apply"']},"{0} to Apply",s):i.container.title=""}disposeTemplate(e){e.keybinding.dispose()}};H=D([M(1,m.b)],H);class B extends UIEvent{constructor(){super("acceptSelectedAction")}}class W extends UIEvent{constructor(){super("previewSelectedAction")}}function V(e){if("action"===e.kind)return e.label}let z=class extends c.jG{constructor(e,t,i,s,n,r){super(),this._delegate=s,this._contextViewService=n,this._keybindingService=r,this._actionLineHeight=24,this._headerLineHeight=26,this.cts=this._register(new x.Qi),this.domNode=document.createElement("div"),this.domNode.classList.add("actionList");const o={getHeight:e=>"header"===e.kind?this._headerLineHeight:this._actionLineHeight,getTemplateId:e=>e.kind};this._list=this._register(new T.B8(e,this.domNode,o,[new H(t,this._keybindingService),new U],{keyboardSupport:!1,typeNavigationEnabled:!0,keyboardNavigationLabelProvider:{getKeyboardNavigationLabel:V},accessibilityProvider:{getAriaLabel:e=>{if("action"===e.kind){let t=e.label?G(e?.label):"";return e.disabled&&(t=(0,E.kg)({key:"customQuickFixWidget.labels",comment:["Action widget labels for accessibility."]},"{0}, Disabled Reason: {1}",t,e.disabled)),t}return null},getWidgetAriaLabel:()=>(0,E.kg)({key:"customQuickFixWidget",comment:["An action widget option"]},"Action Widget"),getRole:e=>"action"===e.kind?"option":"separator",getWidgetRole:()=>"listbox"}})),this._list.style(I.IN),this._register(this._list.onMouseClick((e=>this.onListClick(e)))),this._register(this._list.onMouseOver((e=>this.onListHover(e)))),this._register(this._list.onDidChangeFocus((()=>this.onFocus()))),this._register(this._list.onDidChangeSelection((e=>this.onListSelection(e)))),this._allMenuItems=i,this._list.splice(0,this._list.length,this._allMenuItems),this._list.length&&this.focusNext()}focusCondition(e){return!e.disabled&&"action"===e.kind}hide(e){this._delegate.onHide(e),this.cts.cancel(),this._contextViewService.hideContextView()}layout(e){const t=this._allMenuItems.filter((e=>"header"===e.kind)).length,i=this._allMenuItems.length*this._actionLineHeight+t*this._headerLineHeight-t*this._actionLineHeight;this._list.layout(i);let s=e;if(this._allMenuItems.length>=50)s=380;else{const t=this._allMenuItems.map(((e,t)=>{const i=this.domNode.ownerDocument.getElementById(this._list.getElementID(t));if(i){i.style.width="auto";const e=i.getBoundingClientRect().width;return i.style.width="",e}return 0}));s=Math.max(...t,e)}const n=Math.min(i,.7*this.domNode.ownerDocument.body.clientHeight);return this._list.layout(n,s),this.domNode.style.height=`${n}px`,this._list.domFocus(),s}focusPrevious(){this._list.focusPrevious(1,!0,void 0,this.focusCondition)}focusNext(){this._list.focusNext(1,!0,void 0,this.focusCondition)}acceptSelected(e){const t=this._list.getFocus();if(0===t.length)return;const i=t[0],s=this._list.element(i);if(!this.focusCondition(s))return;const n=e?new W:new B;this._list.setSelection([i],n)}onListSelection(e){if(!e.elements.length)return;const t=e.elements[0];t.item&&this.focusCondition(t)?this._delegate.onSelect(t.item,e.browserEvent instanceof W):this._list.setSelection([])}onFocus(){const e=this._list.getFocus();if(0===e.length)return;const t=e[0],i=this._list.element(t);this._delegate.onFocus?.(i.item)}async onListHover(e){const t=e.element;if(t&&t.item&&this.focusCondition(t)){if(this._delegate.onHover&&!t.disabled&&"action"===t.kind){const e=await this._delegate.onHover(t.item,this.cts.token);t.canPreview=e?e.canPreview:void 0}e.index&&this._list.splice(e.index,1,[t])}this._list.setFocus("number"===typeof e.index?[e.index]:[])}onListClick(e){e.element&&this.focusCondition(e.element)&&this._list.setFocus([])}};function G(e){return e.replace(/\r\n|\r|\n/g," ")}z=D([M(4,N.l),M(5,m.b)],z);var j=i(27195),K=i(32848),Y=i(14718),q=i(63591),$=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Q=function(e,t){return function(i,s){t(i,s,e)}};(0,O.x1A)("actionBar.toggledBackground",O.c1f,(0,E.kg)("actionBar.toggledBackground","Background color for toggled action items in action bar."));const X={Visible:new K.N1("codeActionMenuVisible",!1,(0,E.kg)("codeActionMenuVisible","Whether the action widget list is visible"))},Z=(0,q.u1)("actionWidgetService");let J=class extends c.jG{get isVisible(){return X.Visible.getValue(this._contextKeyService)||!1}constructor(e,t,i){super(),this._contextViewService=e,this._contextKeyService=t,this._instantiationService=i,this._list=this._register(new c.HE)}show(e,t,i,s,n,r,o){const a=X.Visible.bindTo(this._contextKeyService),c=this._instantiationService.createInstance(z,e,t,i,s);this._contextViewService.showContextView({getAnchor:()=>n,render:e=>(a.set(!0),this._renderWidget(e,c,o??[])),onHide:e=>{a.reset(),this._onWidgetClosed(e)}},r,!1)}acceptSelected(e){this._list.value?.acceptSelected(e)}focusPrevious(){this._list?.value?.focusPrevious()}focusNext(){this._list?.value?.focusNext()}hide(e){this._list.value?.hide(e),this._list.clear()}_renderWidget(e,t,i){const s=document.createElement("div");if(s.classList.add("action-widget"),e.appendChild(s),this._list.value=t,!this._list.value)throw new Error("List has no value");s.appendChild(this._list.value.domNode);const r=new c.Cm,o=document.createElement("div"),a=e.appendChild(o);a.classList.add("context-view-block"),r.add(n.ko(a,n.Bx.MOUSE_DOWN,(e=>e.stopPropagation())));const l=document.createElement("div"),h=e.appendChild(l);h.classList.add("context-view-pointerBlock"),r.add(n.ko(h,n.Bx.POINTER_MOVE,(()=>h.remove()))),r.add(n.ko(h,n.Bx.MOUSE_DOWN,(()=>h.remove())));let d=0;if(i.length){const e=this._createActionBar(".action-widget-action-bar",i);e&&(s.appendChild(e.getContainer().parentElement),r.add(e),d=e.getContainer().offsetWidth)}const u=this._list.value?.layout(d);s.style.width=`${u}px`;const g=r.add(n.w5(e));return r.add(g.onDidBlur((()=>this.hide(!0)))),r}_createActionBar(e,t){if(!t.length)return;const i=n.$(e),s=new R.E(i);return s.push(t,{icon:!1,label:!0}),s}_onWidgetClosed(e){this._list.value?.hide(e)}};J=$([Q(0,N.l),Q(1,K.fN),Q(2,q._Y)],J),(0,Y.v)(Z,J,1);const ee=1100;(0,j.ug)(class extends j.L{constructor(){super({id:"hideCodeActionWidget",title:(0,E.aS)("hideCodeActionWidget.title","Hide action widget"),precondition:X.Visible,keybinding:{weight:ee,primary:9,secondary:[1033]}})}run(e){e.get(Z).hide(!0)}}),(0,j.ug)(class extends j.L{constructor(){super({id:"selectPrevCodeAction",title:(0,E.aS)("selectPrevCodeAction.title","Select previous action"),precondition:X.Visible,keybinding:{weight:ee,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})}run(e){const t=e.get(Z);t instanceof J&&t.focusPrevious()}}),(0,j.ug)(class extends j.L{constructor(){super({id:"selectNextCodeAction",title:(0,E.aS)("selectNextCodeAction.title","Select next action"),precondition:X.Visible,keybinding:{weight:ee,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})}run(e){const t=e.get(Z);t instanceof J&&t.focusNext()}}),(0,j.ug)(class extends j.L{constructor(){super({id:P,title:(0,E.aS)("acceptSelected.title","Accept selected action"),precondition:X.Visible,keybinding:{weight:ee,primary:3,secondary:[2137]}})}run(e){const t=e.get(Z);t instanceof J&&t.acceptSelected()}}),(0,j.ug)(class extends j.L{constructor(){super({id:F,title:(0,E.aS)("previewSelected.title","Preview selected action"),precondition:X.Visible,keybinding:{weight:ee,primary:2051}})}run(e){const t=e.get(Z);t instanceof J&&t.acceptSelected(!0)}});var te,ie=i(50091),se=i(84001),ne=i(75147),re=i(73823),oe=i(86723),ae=i(47612),ce=i(59473),le=i(90651),he=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},de=function(e,t){return function(i,s){t(i,s,e)}};let ue=class extends c.jG{static{te=this}static{this.ID="editor.contrib.codeActionController"}static get(e){return e.getContribution(te.ID)}constructor(e,t,i,s,n,r,o,l,h,d,u){super(),this._commandService=o,this._configurationService=l,this._actionWidgetService=h,this._instantiationService=d,this._telemetryService=u,this._activeCodeActions=this._register(new c.HE),this._showDisabled=!1,this._disposed=!1,this._editor=e,this._model=this._register(new ce.Dc(this._editor,n.codeActionProvider,t,i,r,l,this._telemetryService)),this._register(this._model.onDidChangeState((e=>this.update(e)))),this._lightBulbWidget=new a.d((()=>{const e=this._editor.getContribution(y.E.ID);return e&&this._register(e.onClick((e=>this.showCodeActionsFromLightbulb(e.actions,e)))),e})),this._resolver=s.createInstance(v),this._register(this._editor.onDidLayoutChange((()=>this._actionWidgetService.hide())))}dispose(){this._disposed=!0,super.dispose()}async showCodeActionsFromLightbulb(e,t){if(e.allAIFixes&&1===e.validActions.length){const t=e.validActions[0],i=t.action.command;return i&&"inlineChat.start"===i.id&&i.arguments&&i.arguments.length>=1&&(i.arguments[0]={...i.arguments[0],autoSend:!1}),void await this._applyCodeAction(t,!1,!1,u.Qp.FromAILightbulb)}await this.showCodeActionList(e,t,{includeDisabledActions:!1,fromLightbulb:!0})}showCodeActions(e,t,i){return this.showCodeActionList(t,i,{includeDisabledActions:!1,fromLightbulb:!1})}manualTriggerAtCurrentPosition(e,t,i,s){if(!this._editor.hasModel())return;w.k.get(this._editor)?.closeMessage();const n=this._editor.getPosition();this._trigger({type:1,triggerAction:t,filter:i,autoApply:s,context:{notAvailableMessage:e,position:n}})}_trigger(e){return this._model.trigger(e)}async _applyCodeAction(e,t,i,s){try{await this._instantiationService.invokeFunction(u.W4,e,s,{preview:i,editor:this._editor})}finally{t&&this._trigger({type:2,triggerAction:p.fo.QuickFix,filter:{}})}}hideLightBulbWidget(){this._lightBulbWidget.rawValue?.hide(),this._lightBulbWidget.rawValue?.gutterHide()}async update(e){if(1!==e.type)return void this.hideLightBulbWidget();let t;try{t=await e.actions}catch(s){return void(0,o.dz)(s)}if(this._disposed)return;const i=this._editor.getSelection();if(i?.startLineNumber===e.position.lineNumber)if(this._lightBulbWidget.value?.update(t,e.trigger,e.position),1===e.trigger.type){if(e.trigger.filter?.include){const i=this.tryGetValidActionToApply(e.trigger,t);if(i){try{this.hideLightBulbWidget(),await this._applyCodeAction(i,!1,!1,u.Qp.FromCodeActions)}finally{t.dispose()}return}if(e.trigger.context){const i=this.getInvalidActionThatWouldHaveBeenApplied(e.trigger,t);if(i&&i.action.disabled)return w.k.get(this._editor)?.showMessage(i.action.disabled,e.trigger.context.position),void t.dispose()}}const i=!!e.trigger.filter?.include;if(e.trigger.context&&(!t.allActions.length||!i&&!t.validActions.length))return w.k.get(this._editor)?.showMessage(e.trigger.context.notAvailableMessage,e.trigger.context.position),this._activeCodeActions.value=t,void t.dispose();this._activeCodeActions.value=t,this.showCodeActionList(t,this.toCoords(e.position),{includeDisabledActions:i,fromLightbulb:!1})}else this._actionWidgetService.isVisible?t.dispose():this._activeCodeActions.value=t}getInvalidActionThatWouldHaveBeenApplied(e,t){if(t.allActions.length)return"first"===e.autoApply&&0===t.validActions.length||"ifSingle"===e.autoApply&&1===t.allActions.length?t.allActions.find((({action:e})=>e.disabled)):void 0}tryGetValidActionToApply(e,t){if(t.validActions.length)return"first"===e.autoApply&&t.validActions.length>0||"ifSingle"===e.autoApply&&1===t.validActions.length?t.validActions[0]:void 0}static{this.DECORATION=h.kI.register({description:"quickfix-highlight",className:"quickfix-edit-highlight"})}async showCodeActionList(e,t,i){const s=this._editor.createDecorationsCollection(),n=this._editor.getDomNode();if(!n)return;const o=i.includeDisabledActions&&(this._showDisabled||0===e.validActions.length)?e.allActions:e.validActions;if(!o.length)return;const a=l.y.isIPosition(t)?this.toCoords(t):t,c={onSelect:async(e,t)=>{this._applyCodeAction(e,!0,!!t,i.fromLightbulb?u.Qp.FromAILightbulb:u.Qp.FromCodeActions),this._actionWidgetService.hide(!1),s.clear()},onHide:e=>{this._editor?.focus(),s.clear()},onHover:async(e,t)=>{if(t.isCancellationRequested)return;let i=!1;const s=e.action.kind;if(s){const e=new g.k(s);i=[p.gB.RefactorExtract,p.gB.RefactorInline,p.gB.RefactorRewrite,p.gB.RefactorMove,p.gB.Source].some((t=>t.contains(e)))}return{canPreview:i||!!e.action.edit?.edits.length}},onFocus:e=>{if(e&&e.action){const t=e.action.ranges,i=e.action.diagnostics;if(s.clear(),t&&t.length>0){const e=i&&i?.length>1?i.map((e=>({range:e,options:te.DECORATION}))):t.map((e=>({range:e,options:te.DECORATION})));s.set(e)}else if(i&&i.length>0){const e=i.map((e=>({range:e,options:te.DECORATION})));s.set(e);const t=i[0];if(t.startLineNumber&&t.startColumn){const e=this._editor.getModel()?.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn})?.word;r.h5((0,E.kg)("editingNewSelection","Context: {0} at line {1} and column {2}.",e,t.startLineNumber,t.startColumn))}}}else s.clear()}};this._actionWidgetService.show("codeActionWidget",!0,function(e,t,i){if(!t)return e.map((e=>({kind:"action",item:e,group:b,disabled:!!e.action.disabled,label:e.action.disabled||e.action.title,canPreview:!!e.action.edit?.edits.length})));const s=S.map((e=>({group:e,actions:[]})));for(const r of e){const e=r.action.kind?new g.k(r.action.kind):g.k.None;for(const t of s)if(t.group.kind.contains(e)){t.actions.push(r);break}}const n=[];for(const r of s)if(r.actions.length){n.push({kind:"header",group:r.group});for(const e of r.actions){const t=r.group;n.push({kind:"action",item:e,group:e.action.isAI?{title:t.title,kind:t.kind,icon:C.W.sparkle}:t,label:e.action.title,disabled:!!e.action.disabled,keybinding:i(e.action)})}}return n}(o,this._shouldShowHeaders(),this._resolver.getResolver()),c,a,n,this._getActionBarActions(e,t,i))}toCoords(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();const t=this._editor.getScrolledVisiblePosition(e),i=(0,n.BK)(this._editor.getDomNode());return{x:i.left+t.left,y:i.top+t.top+t.height}}_shouldShowHeaders(){const e=this._editor?.getModel();return this._configurationService.getValue("editor.codeActionWidget.showHeaders",{resource:e?.uri})}_getActionBarActions(e,t,i){if(i.fromLightbulb)return[];const s=e.documentation.map((e=>({id:e.id,label:e.title,tooltip:e.tooltip??"",class:void 0,enabled:!0,run:()=>this._commandService.executeCommand(e.id,...e.arguments??[])})));return i.includeDisabledActions&&e.validActions.length>0&&e.allActions.length!==e.validActions.length&&s.push(this._showDisabled?{id:"hideMoreActions",label:(0,E.kg)("hideMoreActions","Hide Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!1,this.showCodeActionList(e,t,i))}:{id:"showMoreActions",label:(0,E.kg)("showMoreActions","Show Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!0,this.showCodeActionList(e,t,i))}),s}};ue=te=he([de(1,ne.DR),de(2,K.fN),de(3,q._Y),de(4,d.ILanguageFeaturesService),de(5,re.N8),de(6,ie.d),de(7,se.pG),de(8,Z),de(9,q._Y),de(10,le.k)],ue),(0,ae.zy)(((e,t)=>{var i,s;i=".quickfix-edit-highlight",(s=e.getColor(O.Ubg))&&t.addRule(`.monaco-editor ${i} { background-color: ${s}; }`);const n=e.getColor(O.ECk);n&&t.addRule(`.monaco-editor .quickfix-edit-highlight { border: 1px ${(0,oe.Bb)(e.type)?"dotted":"solid"} ${n}; box-sizing: border-box; }`)}))},59473:(e,t,i)=>{"use strict";i.d(t,{D_:()=>_,Dc:()=>S});var s=i(90766),n=i(64383),r=i(41234),o=i(5662),a=i(89403),c=i(87908),l=i(83069),h=i(75326),d=i(32848),u=i(73823),g=i(61407),p=i(55130),m=i(8995),f=i(78381);const _=new d.N1("supportedCodeAction",""),v="_typescript.applyFixAllCodeAction";class C extends o.jG{constructor(e,t,i,n=250){super(),this._editor=e,this._markerService=t,this._signalChange=i,this._delay=n,this._autoTriggerTimer=this._register(new s.pc),this._register(this._markerService.onMarkerChanged((e=>this._onMarkerChanges(e)))),this._register(this._editor.onDidChangeCursorPosition((()=>this._tryAutoTrigger())))}trigger(e){const t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);this._signalChange(t?{trigger:e,selection:t}:void 0)}_onMarkerChanges(e){const t=this._editor.getModel();t&&e.some((e=>(0,a.n4)(e,t.uri)))&&this._tryAutoTrigger()}_tryAutoTrigger(){this._autoTriggerTimer.cancelAndSet((()=>{this.trigger({type:2,triggerAction:g.fo.Default})}),this._delay)}_getRangeOfSelectionUnlessWhitespaceEnclosed(e){if(!this._editor.hasModel())return;const t=this._editor.getSelection();if(1===e.type)return t;const i=this._editor.getOption(65).enabled;if(i!==c.jT.Off){if(i===c.jT.On)return t;if(i===c.jT.OnCode){if(!t.isEmpty())return t;const e=this._editor.getModel(),{lineNumber:i,column:s}=t.getPosition(),n=e.getLineContent(i);if(0===n.length)return;if(1===s){if(/\s/.test(n[0]))return}else if(s===e.getLineMaxColumn(i)){if(/\s/.test(n[n.length-1]))return}else if(/\s/.test(n[s-2])&&/\s/.test(n[s-1]))return}return t}}}var E;!function(e){e.Empty={type:0};e.Triggered=class{constructor(e,t,i){this.trigger=e,this.position=t,this._cancellablePromise=i,this.type=1,this.actions=i.catch((e=>{if((0,n.MB)(e))return b;throw e}))}cancel(){this._cancellablePromise.cancel()}}}(E||(E={}));const b=Object.freeze({allActions:[],validActions:[],dispose:()=>{},documentation:[],hasAutoFix:!1,hasAIFix:!1,allAIFixes:!1});class S extends o.jG{constructor(e,t,i,s,n,a,c){super(),this._editor=e,this._registry=t,this._markerService=i,this._progressService=n,this._configurationService=a,this._telemetryService=c,this._codeActionOracle=this._register(new o.HE),this._state=E.Empty,this._onDidChangeState=this._register(new r.vl),this.onDidChangeState=this._onDidChangeState.event,this._disposed=!1,this._supportedCodeActions=_.bindTo(s),this._register(this._editor.onDidChangeModel((()=>this._update()))),this._register(this._editor.onDidChangeModelLanguage((()=>this._update()))),this._register(this._registry.onDidChange((()=>this._update()))),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(65)&&this._update()}))),this._update()}dispose(){this._disposed||(this._disposed=!0,super.dispose(),this.setState(E.Empty,!0))}_settingEnabledNearbyQuickfixes(){const e=this._editor?.getModel();return!!this._configurationService&&this._configurationService.getValue("editor.codeActionWidget.includeNearbyQuickFixes",{resource:e?.uri})}_update(){if(this._disposed)return;this._codeActionOracle.value=void 0,this.setState(E.Empty);const e=this._editor.getModel();if(e&&this._registry.has(e)&&!this._editor.getOption(92)){const t=this._registry.all(e).flatMap((e=>e.providedCodeActionKinds??[]));this._supportedCodeActions.set(t.join(" ")),this._codeActionOracle.value=new C(this._editor,this._markerService,(t=>{if(!t)return void this.setState(E.Empty);const i=t.selection.getStartPosition(),n=(0,s.SS)((async i=>{if(this._settingEnabledNearbyQuickfixes()&&1===t.trigger.type&&(t.trigger.triggerAction===g.fo.QuickFix||t.trigger.filter?.include?.contains(g.gB.QuickFix))){const s=await(0,p.dU)(this._registry,e,t.selection,t.trigger,u.ke.None,i),n=[...s.allActions];if(i.isCancellationRequested)return b;const r=s.validActions?.some((e=>!!e.action.kind&&g.gB.QuickFix.contains(new m.k(e.action.kind)))),o=this._markerService.read({resource:e.uri});if(r){for(const e of s.validActions)e.action.command?.arguments?.some((e=>"string"===typeof e&&e.includes(v)))&&(e.action.diagnostics=[...o.filter((e=>e.relatedInformation))]);return{validActions:s.validActions,allActions:n,documentation:s.documentation,hasAutoFix:s.hasAutoFix,hasAIFix:s.hasAIFix,allAIFixes:s.allAIFixes,dispose:()=>{s.dispose()}}}if(!r&&o.length>0){const r=t.selection.getPosition();let a=r,c=Number.MAX_VALUE;const d=[...s.validActions];for(const f of o){const m=f.endColumn,_=f.endLineNumber,C=f.startLineNumber;if(_===r.lineNumber||C===r.lineNumber){a=new l.y(_,m);const f={type:t.trigger.type,triggerAction:t.trigger.triggerAction,filter:{include:t.trigger.filter?.include?t.trigger.filter?.include:g.gB.QuickFix},autoApply:t.trigger.autoApply,context:{notAvailableMessage:t.trigger.context?.notAvailableMessage||"",position:a}},C=new h.L(a.lineNumber,a.column,a.lineNumber,a.column),E=await(0,p.dU)(this._registry,e,C,f,u.ke.None,i);if(0!==E.validActions.length){for(const e of E.validActions)e.action.command?.arguments?.some((e=>"string"===typeof e&&e.includes(v)))&&(e.action.diagnostics=[...o.filter((e=>e.relatedInformation))]);0===s.allActions.length&&n.push(...E.allActions),Math.abs(r.column-m)<c?d.unshift(...E.validActions):d.push(...E.validActions)}c=Math.abs(r.column-m)}}const m=d.filter(((e,t,i)=>i.findIndex((t=>t.action.title===e.action.title))===t));return m.sort(((e,t)=>e.action.isPreferred&&!t.action.isPreferred?-1:!e.action.isPreferred&&t.action.isPreferred||e.action.isAI&&!t.action.isAI?1:!e.action.isAI&&t.action.isAI?-1:0)),{validActions:m,allActions:n,documentation:s.documentation,hasAutoFix:s.hasAutoFix,hasAIFix:s.hasAIFix,allAIFixes:s.allAIFixes,dispose:()=>{s.dispose()}}}}if(1===t.trigger.type){const s=new f.W,n=await(0,p.dU)(this._registry,e,t.selection,t.trigger,u.ke.None,i);return this._telemetryService&&this._telemetryService.publicLog2("codeAction.invokedDurations",{codeActions:n.validActions.length,duration:s.elapsed()}),n}return(0,p.dU)(this._registry,e,t.selection,t.trigger,u.ke.None,i)}));1===t.trigger.type&&this._progressService?.showWhile(n,250);const r=new E.Triggered(t.trigger,i,n);let o=!1;1===this._state.type&&(o=1===this._state.trigger.type&&1===r.type&&2===r.trigger.type&&this._state.position!==r.position),o?setTimeout((()=>{this.setState(r)}),500):this.setState(r)}),void 0),this._codeActionOracle.value.trigger({type:2,triggerAction:g.fo.Default})}else this._supportedCodeActions.reset()}trigger(e){this._codeActionOracle.value?.trigger(e)}setState(e,t){e!==this._state&&(1===this._state.type&&this._state.cancel(),this._state=e,t||this._disposed||this._onDidChangeState.fire(e))}}},96758:(e,t,i)=>{"use strict";i.d(t,{E:()=>L});var s,n=i(8597),r=i(25154),o=i(10350),a=i(41234),c=i(5662),l=i(25689),h=i(16223),d=i(87289),u=i(78049),g=i(55130),p=i(78209),m=i(98031),f=i(61394),_=i(36677),v=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},C=function(e,t){return function(i,s){t(i,s,e)}};const E=(0,f.pU)("gutter-lightbulb",o.W.lightBulb,p.kg("gutterLightbulbWidget","Icon which spawns code actions menu from the gutter when there is no space in the editor.")),b=(0,f.pU)("gutter-lightbulb-auto-fix",o.W.lightbulbAutofix,p.kg("gutterLightbulbAutoFixWidget","Icon which spawns code actions menu from the gutter when there is no space in the editor and a quick fix is available.")),S=(0,f.pU)("gutter-lightbulb-sparkle",o.W.lightbulbSparkle,p.kg("gutterLightbulbAIFixWidget","Icon which spawns code actions menu from the gutter when there is no space in the editor and an AI fix is available.")),y=(0,f.pU)("gutter-lightbulb-aifix-auto-fix",o.W.lightbulbSparkleAutofix,p.kg("gutterLightbulbAIFixAutoFixWidget","Icon which spawns code actions menu from the gutter when there is no space in the editor and an AI fix and a quick fix is available.")),w=(0,f.pU)("gutter-lightbulb-sparkle-filled",o.W.sparkleFilled,p.kg("gutterLightbulbSparkleFilledWidget","Icon which spawns code actions menu from the gutter when there is no space in the editor and an AI fix and a quick fix is available."));var R;!function(e){e.Hidden={type:0};e.Showing=class{constructor(e,t,i,s){this.actions=e,this.trigger=t,this.editorPosition=i,this.widgetPosition=s,this.type=1}}}(R||(R={}));let L=class extends c.jG{static{s=this}static{this.GUTTER_DECORATION=d.kI.register({description:"codicon-gutter-lightbulb-decoration",glyphMarginClassName:l.L.asClassName(o.W.lightBulb),glyphMargin:{position:h.ZS.Left},stickiness:1})}static{this.ID="editor.contrib.lightbulbWidget"}static{this._posPref=[0]}constructor(e,t){super(),this._editor=e,this._keybindingService=t,this._onClick=this._register(new a.vl),this.onClick=this._onClick.event,this._state=R.Hidden,this._gutterState=R.Hidden,this._iconClasses=[],this.lightbulbClasses=["codicon-"+E.id,"codicon-"+y.id,"codicon-"+b.id,"codicon-"+S.id,"codicon-"+w.id],this.gutterDecoration=s.GUTTER_DECORATION,this._domNode=n.$("div.lightBulbWidget"),this._domNode.role="listbox",this._register(r.q.ignoreTarget(this._domNode)),this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent((e=>{const t=this._editor.getModel();(1!==this.state.type||!t||this.state.editorPosition.lineNumber>=t.getLineCount())&&this.hide(),(1!==this.gutterState.type||!t||this.gutterState.editorPosition.lineNumber>=t.getLineCount())&&this.gutterHide()}))),this._register(n.Xc(this._domNode,(e=>{if(1!==this.state.type)return;this._editor.focus(),e.preventDefault();const{top:t,height:i}=n.BK(this._domNode),s=this._editor.getOption(67);let r=Math.floor(s/3);null!==this.state.widgetPosition.position&&this.state.widgetPosition.position.lineNumber<this.state.editorPosition.lineNumber&&(r+=s),this._onClick.fire({x:e.posx,y:t+i+r,actions:this.state.actions,trigger:this.state.trigger})}))),this._register(n.ko(this._domNode,"mouseenter",(e=>{1===(1&e.buttons)&&this.hide()}))),this._register(a.Jh.runAndSubscribe(this._keybindingService.onDidUpdateKeybindings,(()=>{this._preferredKbLabel=this._keybindingService.lookupKeybinding(g.pR)?.getLabel()??void 0,this._quickFixKbLabel=this._keybindingService.lookupKeybinding(g.pQ)?.getLabel()??void 0,this._updateLightBulbTitleAndIcon()}))),this._register(this._editor.onMouseDown((async e=>{if(!e.target.element||!this.lightbulbClasses.some((t=>e.target.element&&e.target.element.classList.contains(t))))return;if(1!==this.gutterState.type)return;this._editor.focus();const{top:t,height:i}=n.BK(e.target.element),s=this._editor.getOption(67);let r=Math.floor(s/3);null!==this.gutterState.widgetPosition.position&&this.gutterState.widgetPosition.position.lineNumber<this.gutterState.editorPosition.lineNumber&&(r+=s),this._onClick.fire({x:e.event.posx,y:t+i+r,actions:this.gutterState.actions,trigger:this.gutterState.trigger})})))}dispose(){super.dispose(),this._editor.removeContentWidget(this),this._gutterDecorationID&&this._removeGutterDecoration(this._gutterDecorationID)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return 1===this._state.type?this._state.widgetPosition:null}update(e,t,i){if(e.validActions.length<=0)return this.gutterHide(),this.hide();if(!this._editor.hasTextFocus())return this.gutterHide(),this.hide();if(!this._editor.getOptions().get(65).enabled)return this.gutterHide(),this.hide();const n=this._editor.getModel();if(!n)return this.gutterHide(),this.hide();const{lineNumber:r,column:o}=n.validatePosition(i),a=n.getOptions().tabSize,c=this._editor.getOptions().get(50),l=n.getLineContent(r),h=(0,u.G)(l,a),d=c.spaceWidth*h>22,g=e=>e>2&&this._editor.getTopForLineNumber(e)===this._editor.getTopForLineNumber(e-1),p=this._editor.getLineDecorations(r);let m=!1;if(p)for(const s of p){const e=s.options.glyphMarginClassName;if(e&&!this.lightbulbClasses.some((t=>e.includes(t)))){m=!0;break}}let f=r,_=1;if(!d){const a=e=>{const t=n.getLineContent(e);return/^\s*$|^\s+/.test(t)||t.length<=_};if(r>1&&!g(r-1)){const o=r===n.getLineCount(),c=r>1&&a(r-1),l=!o&&a(r+1),h=a(r),d=!l&&!c;if(!(l||c||m))return this.gutterState=new R.Showing(e,t,i,{position:{lineNumber:f,column:_},preference:s._posPref}),this.renderGutterLightbub(),this.hide();c||o||c&&!h?f-=1:(l||d&&h)&&(f+=1)}else if(1!==r||r!==n.getLineCount()&&(a(r+1)||a(r))){if(r<n.getLineCount()&&!g(r+1))f+=1;else if(o*c.spaceWidth<22)return this.hide()}else{if(this.gutterState=new R.Showing(e,t,i,{position:{lineNumber:f,column:_},preference:s._posPref}),!m)return this.renderGutterLightbub(),this.hide();this.gutterHide()}_=/^\S\s*$/.test(n.getLineContent(f))?2:1}this.state=new R.Showing(e,t,i,{position:{lineNumber:f,column:_},preference:s._posPref}),this._gutterDecorationID&&(this._removeGutterDecoration(this._gutterDecorationID),this.gutterHide());const v=e.validActions,C=e.validActions[0].action.kind;v.length,this._editor.layoutContentWidget(this)}hide(){this.state!==R.Hidden&&(this.state=R.Hidden,this._editor.layoutContentWidget(this))}gutterHide(){this.gutterState!==R.Hidden&&(this._gutterDecorationID&&this._removeGutterDecoration(this._gutterDecorationID),this.gutterState=R.Hidden)}get state(){return this._state}set state(e){this._state=e,this._updateLightBulbTitleAndIcon()}get gutterState(){return this._gutterState}set gutterState(e){this._gutterState=e,this._updateGutterLightBulbTitleAndIcon()}_updateLightBulbTitleAndIcon(){if(this._domNode.classList.remove(...this._iconClasses),this._iconClasses=[],1!==this.state.type)return;let e,t=!1;this.state.actions.allAIFixes?(e=o.W.sparkleFilled,1===this.state.actions.validActions.length&&(t=!0)):e=this.state.actions.hasAutoFix?this.state.actions.hasAIFix?o.W.lightbulbSparkleAutofix:o.W.lightbulbAutofix:this.state.actions.hasAIFix?o.W.lightbulbSparkle:o.W.lightBulb,this._updateLightbulbTitle(this.state.actions.hasAutoFix,t),this._iconClasses=l.L.asClassNameArray(e),this._domNode.classList.add(...this._iconClasses)}_updateGutterLightBulbTitleAndIcon(){if(1!==this.gutterState.type)return;let e,t=!1;this.gutterState.actions.allAIFixes?(e=w,1===this.gutterState.actions.validActions.length&&(t=!0)):e=this.gutterState.actions.hasAutoFix?this.gutterState.actions.hasAIFix?y:b:this.gutterState.actions.hasAIFix?S:E,this._updateLightbulbTitle(this.gutterState.actions.hasAutoFix,t);const i=d.kI.register({description:"codicon-gutter-lightbulb-decoration",glyphMarginClassName:l.L.asClassName(e),glyphMargin:{position:h.ZS.Left},stickiness:1});this.gutterDecoration=i}renderGutterLightbub(){const e=this._editor.getSelection();e&&(void 0===this._gutterDecorationID?this._addGutterDecoration(e.startLineNumber):this._updateGutterDecoration(this._gutterDecorationID,e.startLineNumber))}_addGutterDecoration(e){this._editor.changeDecorations((t=>{this._gutterDecorationID=t.addDecoration(new _.Q(e,0,e,0),this.gutterDecoration)}))}_removeGutterDecoration(e){this._editor.changeDecorations((t=>{t.removeDecoration(e),this._gutterDecorationID=void 0}))}_updateGutterDecoration(e,t){this._editor.changeDecorations((i=>{i.changeDecoration(e,new _.Q(t,0,t,0)),i.changeDecorationOptions(e,this.gutterDecoration)}))}_updateLightbulbTitle(e,t){1===this.state.type&&(t?this.title=p.kg("codeActionAutoRun","Run: {0}",this.state.actions.validActions[0].action.title):e&&this._preferredKbLabel?this.title=p.kg("preferredcodeActionWithKb","Show Code Actions. Preferred Quick Fix Available ({0})",this._preferredKbLabel):!e&&this._quickFixKbLabel?this.title=p.kg("codeActionWithKb","Show Code Actions ({0})",this._quickFixKbLabel):e||(this.title=p.kg("codeAction","Show Code Actions")))}set title(e){this._domNode.title=e}};L=s=v([C(1,m.b)],L)},61407:(e,t,i)=>{"use strict";i.d(t,{QA:()=>h,Vi:()=>d,aF:()=>c,fo:()=>o,gB:()=>r,uJ:()=>a});var s=i(64383),n=i(8995);const r=new class{constructor(){this.QuickFix=new n.k("quickfix"),this.Refactor=new n.k("refactor"),this.RefactorExtract=this.Refactor.append("extract"),this.RefactorInline=this.Refactor.append("inline"),this.RefactorMove=this.Refactor.append("move"),this.RefactorRewrite=this.Refactor.append("rewrite"),this.Notebook=new n.k("notebook"),this.Source=new n.k("source"),this.SourceOrganizeImports=this.Source.append("organizeImports"),this.SourceFixAll=this.Source.append("fixAll"),this.SurroundWith=this.Refactor.append("surround")}};var o;function a(e,t){return!(e.include&&!e.include.intersects(t))&&((!e.excludes||!e.excludes.some((i=>l(t,i,e.include))))&&!(!e.includeSourceActions&&r.Source.contains(t)))}function c(e,t){const i=t.kind?new n.k(t.kind):void 0;return!!(!e.include||i&&e.include.contains(i))&&(!(e.excludes&&i&&e.excludes.some((t=>l(i,t,e.include))))&&(!(!e.includeSourceActions&&i&&r.Source.contains(i))&&!(e.onlyIncludePreferredActions&&!t.isPreferred)))}function l(e,t,i){return!!t.contains(e)&&(!i||!t.contains(i))}!function(e){e.Refactor="refactor",e.RefactorPreview="refactor preview",e.Lightbulb="lightbulb",e.Default="other (default)",e.SourceAction="source action",e.QuickFix="quick fix action",e.FixAll="fix all",e.OrganizeImports="organize imports",e.AutoFix="auto fix",e.QuickFixHover="quick fix hover window",e.OnSave="save participants",e.ProblemsView="problems view"}(o||(o={}));class h{static fromUser(e,t){return e&&"object"===typeof e?new h(h.getKindFromUser(e,t.kind),h.getApplyFromUser(e,t.apply),h.getPreferredUser(e)):new h(t.kind,t.apply,!1)}static getApplyFromUser(e,t){switch("string"===typeof e.apply?e.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}}static getKindFromUser(e,t){return"string"===typeof e.kind?new n.k(e.kind):t}static getPreferredUser(e){return"boolean"===typeof e.preferred&&e.preferred}constructor(e,t,i){this.kind=e,this.apply=t,this.preferred=i}}class d{constructor(e,t,i){this.action=e,this.provider=t,this.highlightRange=i}async resolve(e){if(this.provider?.resolveCodeAction&&!this.action.edit){let i;try{i=await this.provider.resolveCodeAction(this.action,e)}catch(t){(0,s.M_)(t)}i&&(this.action.edit=i.edit)}return this}}},64215:(e,t,i)=>{"use strict";var s=i(90766),n=i(64383),r=i(5662),o=i(55190),a=i(31450),c=i(87908),l=i(60002),h=i(18447),d=i(631),u=i(79400),g=i(23750),p=i(50091),m=i(56942);class f{constructor(){this.lenses=[],this._disposables=new r.Cm}dispose(){this._disposables.dispose()}get isDisposed(){return this._disposables.isDisposed}add(e,t){this._disposables.add(e);for(const i of e.lenses)this.lenses.push({symbol:i,provider:t})}}async function _(e,t,i){const s=e.ordered(t),r=new Map,o=new f,a=s.map((async(e,s)=>{r.set(e,s);try{const s=await Promise.resolve(e.provideCodeLenses(t,i));s&&o.add(s,e)}catch(a){(0,n.M_)(a)}}));return await Promise.all(a),o.lenses=o.lenses.sort(((e,t)=>e.symbol.range.startLineNumber<t.symbol.range.startLineNumber?-1:e.symbol.range.startLineNumber>t.symbol.range.startLineNumber?1:r.get(e.provider)<r.get(t.provider)?-1:r.get(e.provider)>r.get(t.provider)?1:e.symbol.range.startColumn<t.symbol.range.startColumn?-1:e.symbol.range.startColumn>t.symbol.range.startColumn?1:0)),o}p.w.registerCommand("_executeCodeLensProvider",(function(e,...t){let[i,s]=t;(0,d.j)(u.r.isUri(i)),(0,d.j)("number"===typeof s||!s);const{codeLensProvider:o}=e.get(m.ILanguageFeaturesService),a=e.get(g.IModelService).getModel(i);if(!a)throw(0,n.Qg)();const c=[],l=new r.Cm;return _(o,a,h.XO.None).then((e=>{l.add(e);const t=[];for(const i of e.lenses)void 0===s||null===s||Boolean(i.symbol.command)?c.push(i.symbol):s-- >0&&i.provider.resolveCodeLens&&t.push(Promise.resolve(i.provider.resolveCodeLens(a,i.symbol,h.XO.None)).then((e=>c.push(e||i.symbol))));return Promise.all(t)})).then((()=>c)).finally((()=>{setTimeout((()=>l.dispose()),100)}))}));var v=i(41234),C=i(74320),E=i(36677),b=i(14718),S=i(63591),y=i(9711),w=i(25893),R=i(8597),L=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},T=function(e,t){return function(i,s){t(i,s,e)}};const x=(0,S.u1)("ICodeLensCache");class k{constructor(e,t){this.lineCount=e,this.data=t}}let A=class{constructor(e){this._fakeProvider=new class{provideCodeLenses(){throw new Error("not supported")}},this._cache=new C.qK(20,.75);(0,R.U3)(w.G,(()=>e.remove("codelens/cache",1)));const t="codelens/cache2",i=e.get(t,1,"{}");this._deserialize(i);const s=v.Jh.filter(e.onWillSaveState,(e=>e.reason===y.LP.SHUTDOWN));v.Jh.once(s)((i=>{e.store(t,this._serialize(),1,1)}))}put(e,t){const i=t.lenses.map((e=>({range:e.symbol.range,command:e.symbol.command&&{id:"",title:e.symbol.command?.title}}))),s=new f;s.add({lenses:i,dispose:()=>{}},this._fakeProvider);const n=new k(e.getLineCount(),s);this._cache.set(e.uri.toString(),n)}get(e){const t=this._cache.get(e.uri.toString());return t&&t.lineCount===e.getLineCount()?t.data:void 0}delete(e){this._cache.delete(e.uri.toString())}_serialize(){const e=Object.create(null);for(const[t,i]of this._cache){const s=new Set;for(const e of i.data.lenses)s.add(e.symbol.range.startLineNumber);e[t]={lineCount:i.lineCount,lines:[...s.values()]}}return JSON.stringify(e)}_deserialize(e){try{const t=JSON.parse(e);for(const e in t){const i=t[e],s=[];for(const e of i.lines)s.push({range:new E.Q(e,1,e,11)});const n=new f;n.add({lenses:s,dispose(){}},this._fakeProvider),this._cache.set(e,new k(i.lineCount,n))}}catch{}}};A=L([T(0,y.CS)],A),(0,b.v)(x,A,1);var N=i(20370),I=i(87289);class O{constructor(e,t,i){this.afterColumn=1073741824,this.afterLineNumber=e,this.heightInPx=t,this._onHeight=i,this.suppressMouseDown=!0,this.domNode=document.createElement("div")}onComputedHeight(e){void 0===this._lastHeight?this._lastHeight=e:this._lastHeight!==e&&(this._lastHeight=e,this._onHeight())}isVisible(){return 0!==this._lastHeight&&this.domNode.hasAttribute("monaco-visible-view-zone")}}class D{static{this._idPool=0}constructor(e,t){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._isEmpty=!0,this._editor=e,this._id="codelens.widget-"+D._idPool++,this.updatePosition(t),this._domNode=document.createElement("span"),this._domNode.className="codelens-decoration"}withCommands(e,t){this._commands.clear();const i=[];let s=!1;for(let n=0;n<e.length;n++){const t=e[n];if(t&&(s=!0,t.command)){const s=(0,N.n)(t.command.title.trim());if(t.command.id){const e="c"+D._idPool++;i.push(R.$("a",{id:e,title:t.command.tooltip,role:"button"},...s)),this._commands.set(e,t.command)}else i.push(R.$("span",{title:t.command.tooltip},...s));n+1<e.length&&i.push(R.$("span",void 0,"\xa0|\xa0"))}}s?(R.Ln(this._domNode,...i),this._isEmpty&&t&&this._domNode.classList.add("fadein"),this._isEmpty=!1):R.Ln(this._domNode,R.$("span",void 0,"no commands"))}getCommand(e){return e.parentElement===this._domNode?this._commands.get(e.id):void 0}getId(){return this._id}getDomNode(){return this._domNode}updatePosition(e){const t=this._editor.getModel().getLineFirstNonWhitespaceColumn(e);this._widgetPosition={position:{lineNumber:e,column:t},preference:[1]}}getPosition(){return this._widgetPosition||null}}class M{constructor(){this._removeDecorations=[],this._addDecorations=[],this._addDecorationsCallbacks=[]}addDecoration(e,t){this._addDecorations.push(e),this._addDecorationsCallbacks.push(t)}removeDecoration(e){this._removeDecorations.push(e)}commit(e){const t=e.deltaDecorations(this._removeDecorations,this._addDecorations);for(let i=0,s=t.length;i<s;i++)this._addDecorationsCallbacks[i](t[i])}}const P=I.kI.register({collapseOnReplaceEdit:!0,description:"codelens"});class F{constructor(e,t,i,s,n,r){let o;this._isDisposed=!1,this._editor=t,this._data=e,this._decorationIds=[];const a=[];this._data.forEach(((e,t)=>{e.symbol.command&&a.push(e.symbol),i.addDecoration({range:e.symbol.range,options:P},(e=>this._decorationIds[t]=e)),o=o?E.Q.plusRange(o,e.symbol.range):E.Q.lift(e.symbol.range)})),this._viewZone=new O(o.startLineNumber-1,n,r),this._viewZoneId=s.addZone(this._viewZone),a.length>0&&(this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(a,!1))}_createContentWidgetIfNecessary(){this._contentWidget?this._editor.layoutContentWidget(this._contentWidget):(this._contentWidget=new D(this._editor,this._viewZone.afterLineNumber+1),this._editor.addContentWidget(this._contentWidget))}dispose(e,t){this._decorationIds.forEach(e.removeDecoration,e),this._decorationIds=[],t?.removeZone(this._viewZoneId),this._contentWidget&&(this._editor.removeContentWidget(this._contentWidget),this._contentWidget=void 0),this._isDisposed=!0}isDisposed(){return this._isDisposed}isValid(){return this._decorationIds.some(((e,t)=>{const i=this._editor.getModel().getDecorationRange(e),s=this._data[t].symbol;return!(!i||E.Q.isEmpty(s.range)!==i.isEmpty())}))}updateCodeLensSymbols(e,t){this._decorationIds.forEach(t.removeDecoration,t),this._decorationIds=[],this._data=e,this._data.forEach(((e,i)=>{t.addDecoration({range:e.symbol.range,options:P},(e=>this._decorationIds[i]=e))}))}updateHeight(e,t){this._viewZone.heightInPx=e,t.layoutZone(this._viewZoneId),this._contentWidget&&this._editor.layoutContentWidget(this._contentWidget)}computeIfNecessary(e){if(!this._viewZone.isVisible())return null;for(let t=0;t<this._decorationIds.length;t++){const i=e.getDecorationRange(this._decorationIds[t]);i&&(this._data[t].symbol.range=i)}return this._data}updateCommands(e){this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(e,!0);for(let t=0;t<this._data.length;t++){const i=e[t];if(i){const{symbol:e}=this._data[t];e.command=i.command||e.command}}}getCommand(e){return this._contentWidget?.getCommand(e)}getLineNumber(){const e=this._editor.getModel().getDecorationRange(this._decorationIds[0]);return e?e.startLineNumber:-1}update(e){if(this.isValid()){const t=this._editor.getModel().getDecorationRange(this._decorationIds[0]);t&&(this._viewZone.afterLineNumber=t.startLineNumber-1,e.layoutZone(this._viewZoneId),this._contentWidget&&(this._contentWidget.updatePosition(t.startLineNumber),this._editor.layoutContentWidget(this._contentWidget)))}}}var U=i(78209),H=i(58591),B=i(51467),W=i(32500),V=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},z=function(e,t){return function(i,s){t(i,s,e)}};let G=class{static{this.ID="css.editor.codeLens"}constructor(e,t,i,n,o,a){this._editor=e,this._languageFeaturesService=t,this._commandService=n,this._notificationService=o,this._codeLensCache=a,this._disposables=new r.Cm,this._localToDispose=new r.Cm,this._lenses=[],this._oldCodeLensModels=new r.Cm,this._provideCodeLensDebounce=i.for(t.codeLensProvider,"CodeLensProvide",{min:250}),this._resolveCodeLensesDebounce=i.for(t.codeLensProvider,"CodeLensResolve",{min:250,salt:"resolve"}),this._resolveCodeLensesScheduler=new s.uC((()=>this._resolveCodeLensesInViewport()),this._resolveCodeLensesDebounce.default()),this._disposables.add(this._editor.onDidChangeModel((()=>this._onModelChange()))),this._disposables.add(this._editor.onDidChangeModelLanguage((()=>this._onModelChange()))),this._disposables.add(this._editor.onDidChangeConfiguration((e=>{(e.hasChanged(50)||e.hasChanged(19)||e.hasChanged(18))&&this._updateLensStyle(),e.hasChanged(17)&&this._onModelChange()}))),this._disposables.add(t.codeLensProvider.onDidChange(this._onModelChange,this)),this._onModelChange(),this._updateLensStyle()}dispose(){this._localDispose(),this._disposables.dispose(),this._oldCodeLensModels.dispose(),this._currentCodeLensModel?.dispose()}_getLayoutInfo(){const e=Math.max(1.3,this._editor.getOption(67)/this._editor.getOption(52));let t=this._editor.getOption(19);return(!t||t<5)&&(t=.9*this._editor.getOption(52)|0),{fontSize:t,codeLensHeight:t*e|0}}_updateLensStyle(){const{codeLensHeight:e,fontSize:t}=this._getLayoutInfo(),i=this._editor.getOption(18),s=this._editor.getOption(50),{style:n}=this._editor.getContainerDomNode();n.setProperty("--vscode-editorCodeLens-lineHeight",`${e}px`),n.setProperty("--vscode-editorCodeLens-fontSize",`${t}px`),n.setProperty("--vscode-editorCodeLens-fontFeatureSettings",s.fontFeatureSettings),i&&(n.setProperty("--vscode-editorCodeLens-fontFamily",i),n.setProperty("--vscode-editorCodeLens-fontFamilyDefault",c.jU.fontFamily)),this._editor.changeViewZones((t=>{for(const i of this._lenses)i.updateHeight(e,t)}))}_localDispose(){this._getCodeLensModelPromise?.cancel(),this._getCodeLensModelPromise=void 0,this._resolveCodeLensesPromise?.cancel(),this._resolveCodeLensesPromise=void 0,this._localToDispose.clear(),this._oldCodeLensModels.clear(),this._currentCodeLensModel?.dispose()}_onModelChange(){this._localDispose();const e=this._editor.getModel();if(!e)return;if(!this._editor.getOption(17)||e.isTooLargeForTokenization())return;const t=this._codeLensCache.get(e);if(t&&this._renderCodeLensSymbols(t),!this._languageFeaturesService.codeLensProvider.has(e))return void(t&&(0,s.EQ)((()=>{const i=this._codeLensCache.get(e);t===i&&(this._codeLensCache.delete(e),this._onModelChange())}),3e4,this._localToDispose));for(const s of this._languageFeaturesService.codeLensProvider.all(e))if("function"===typeof s.onDidChange){const e=s.onDidChange((()=>i.schedule()));this._localToDispose.add(e)}const i=new s.uC((()=>{const t=Date.now();this._getCodeLensModelPromise?.cancel(),this._getCodeLensModelPromise=(0,s.SS)((t=>_(this._languageFeaturesService.codeLensProvider,e,t))),this._getCodeLensModelPromise.then((s=>{this._currentCodeLensModel&&this._oldCodeLensModels.add(this._currentCodeLensModel),this._currentCodeLensModel=s,this._codeLensCache.put(e,s);const n=this._provideCodeLensDebounce.update(e,Date.now()-t);i.delay=n,this._renderCodeLensSymbols(s),this._resolveCodeLensesInViewportSoon()}),n.dz)}),this._provideCodeLensDebounce.get(e));this._localToDispose.add(i),this._localToDispose.add((0,r.s)((()=>this._resolveCodeLensesScheduler.cancel()))),this._localToDispose.add(this._editor.onDidChangeModelContent((()=>{this._editor.changeDecorations((e=>{this._editor.changeViewZones((t=>{const i=[];let s=-1;this._lenses.forEach((e=>{e.isValid()&&s!==e.getLineNumber()?(e.update(t),s=e.getLineNumber()):i.push(e)}));const n=new M;i.forEach((e=>{e.dispose(n,t),this._lenses.splice(this._lenses.indexOf(e),1)})),n.commit(e)}))})),i.schedule(),this._resolveCodeLensesScheduler.cancel(),this._resolveCodeLensesPromise?.cancel(),this._resolveCodeLensesPromise=void 0}))),this._localToDispose.add(this._editor.onDidFocusEditorText((()=>{i.schedule()}))),this._localToDispose.add(this._editor.onDidBlurEditorText((()=>{i.cancel()}))),this._localToDispose.add(this._editor.onDidScrollChange((e=>{e.scrollTopChanged&&this._lenses.length>0&&this._resolveCodeLensesInViewportSoon()}))),this._localToDispose.add(this._editor.onDidLayoutChange((()=>{this._resolveCodeLensesInViewportSoon()}))),this._localToDispose.add((0,r.s)((()=>{if(this._editor.getModel()){const e=o.D.capture(this._editor);this._editor.changeDecorations((e=>{this._editor.changeViewZones((t=>{this._disposeAllLenses(e,t)}))})),e.restore(this._editor)}else this._disposeAllLenses(void 0,void 0)}))),this._localToDispose.add(this._editor.onMouseDown((e=>{if(9!==e.target.type)return;let t=e.target.element;if("SPAN"===t?.tagName&&(t=t.parentElement),"A"===t?.tagName)for(const i of this._lenses){const e=i.getCommand(t);if(e){this._commandService.executeCommand(e.id,...e.arguments||[]).catch((e=>this._notificationService.error(e)));break}}}))),i.schedule()}_disposeAllLenses(e,t){const i=new M;for(const s of this._lenses)s.dispose(i,t);e&&i.commit(e),this._lenses.length=0}_renderCodeLensSymbols(e){if(!this._editor.hasModel())return;const t=this._editor.getModel().getLineCount(),i=[];let s;for(const o of e.lenses){const e=o.symbol.range.startLineNumber;e<1||e>t||(s&&s[s.length-1].symbol.range.startLineNumber===e?s.push(o):(s=[o],i.push(s)))}if(!i.length&&!this._lenses.length)return;const n=o.D.capture(this._editor),r=this._getLayoutInfo();this._editor.changeDecorations((e=>{this._editor.changeViewZones((t=>{const s=new M;let n=0,o=0;for(;o<i.length&&n<this._lenses.length;){const e=i[o][0].symbol.range.startLineNumber,a=this._lenses[n].getLineNumber();a<e?(this._lenses[n].dispose(s,t),this._lenses.splice(n,1)):a===e?(this._lenses[n].updateCodeLensSymbols(i[o],s),o++,n++):(this._lenses.splice(n,0,new F(i[o],this._editor,s,t,r.codeLensHeight,(()=>this._resolveCodeLensesInViewportSoon()))),n++,o++)}for(;n<this._lenses.length;)this._lenses[n].dispose(s,t),this._lenses.splice(n,1);for(;o<i.length;)this._lenses.push(new F(i[o],this._editor,s,t,r.codeLensHeight,(()=>this._resolveCodeLensesInViewportSoon()))),o++;s.commit(e)}))})),n.restore(this._editor)}_resolveCodeLensesInViewportSoon(){this._editor.getModel()&&this._resolveCodeLensesScheduler.schedule()}_resolveCodeLensesInViewport(){this._resolveCodeLensesPromise?.cancel(),this._resolveCodeLensesPromise=void 0;const e=this._editor.getModel();if(!e)return;const t=[],i=[];if(this._lenses.forEach((s=>{const n=s.computeIfNecessary(e);n&&(t.push(n),i.push(s))})),0===t.length)return;const r=Date.now(),o=(0,s.SS)((s=>{const r=t.map(((t,r)=>{const o=new Array(t.length),a=t.map(((t,i)=>t.symbol.command||"function"!==typeof t.provider.resolveCodeLens?(o[i]=t.symbol,Promise.resolve(void 0)):Promise.resolve(t.provider.resolveCodeLens(e,t.symbol,s)).then((e=>{o[i]=e}),n.M_)));return Promise.all(a).then((()=>{s.isCancellationRequested||i[r].isDisposed()||i[r].updateCommands(o)}))}));return Promise.all(r)}));this._resolveCodeLensesPromise=o,this._resolveCodeLensesPromise.then((()=>{const t=this._resolveCodeLensesDebounce.update(e,Date.now()-r);this._resolveCodeLensesScheduler.delay=t,this._currentCodeLensModel&&this._codeLensCache.put(e,this._currentCodeLensModel),this._oldCodeLensModels.clear(),o===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)}),(e=>{(0,n.dz)(e),o===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)}))}async getModel(){return await this._getCodeLensModelPromise,await this._resolveCodeLensesPromise,this._currentCodeLensModel?.isDisposed?void 0:this._currentCodeLensModel}};G=V([z(1,m.ILanguageFeaturesService),z(2,W.ILanguageFeatureDebounceService),z(3,p.d),z(4,H.Ot),z(5,x)],G),(0,a.HW)(G.ID,G,1),(0,a.Fl)(class extends a.ks{constructor(){super({id:"codelens.showLensesInCurrentLine",precondition:l.R.hasCodeLensProvider,label:(0,U.kg)("showLensOnLine","Show CodeLens Commands For Current Line"),alias:"Show CodeLens Commands For Current Line"})}async run(e,t){if(!t.hasModel())return;const i=e.get(B.GK),s=e.get(p.d),n=e.get(H.Ot),r=t.getSelection().positionLineNumber,o=t.getContribution(G.ID);if(!o)return;const a=await o.getModel();if(!a)return;const c=[];for(const u of a.lenses)u.symbol.command&&u.symbol.range.startLineNumber===r&&c.push({label:u.symbol.command.title,command:u.symbol.command});if(0===c.length)return;const l=await i.pick(c,{canPickMany:!1,placeHolder:(0,U.kg)("placeHolder","Select a command")});if(!l)return;let h=l.command;if(a.isDisposed){const e=await o.getModel(),t=e?.lenses.find((e=>e.symbol.range.startLineNumber===r&&e.symbol.command?.title===h.title));if(!t||!t.symbol.command)return;h=t.symbol.command}try{await s.executeCommand(h.id,...h.arguments||[])}catch(d){n.error(d)}}})},68310:(e,t,i)=>{"use strict";i.d(t,{R:()=>g,j:()=>u});var s=i(18447),n=i(64383),r=i(79400),o=i(36677),a=i(23750),c=i(50091),l=i(56942),h=i(52363),d=i(84001);async function u(e,t,i,s=!0){return _(new p,e,t,i,s)}function g(e,t,i,s){return Promise.resolve(i.provideColorPresentations(e,t,s))}class p{constructor(){}async compute(e,t,i,s){const n=await e.provideDocumentColors(t,i);if(Array.isArray(n))for(const r of n)s.push({colorInfo:r,provider:e});return Array.isArray(n)}}class m{constructor(){}async compute(e,t,i,s){const n=await e.provideDocumentColors(t,i);if(Array.isArray(n))for(const r of n)s.push({range:r.range,color:[r.color.red,r.color.green,r.color.blue,r.color.alpha]});return Array.isArray(n)}}class f{constructor(e){this.colorInfo=e}async compute(e,t,i,n){const r=await e.provideColorPresentations(t,this.colorInfo,s.XO.None);return Array.isArray(r)&&n.push(...r),Array.isArray(r)}}async function _(e,t,i,s,r){let o,a=!1;const c=[],l=t.ordered(i);for(let u=l.length-1;u>=0;u--){const t=l[u];if(t instanceof h.L)o=t;else try{await e.compute(t,i,s,c)&&(a=!0)}catch(d){(0,n.M_)(d)}}return a?c:o&&r?(await e.compute(o,i,s,c),c):[]}function v(e,t){const{colorProvider:i}=e.get(l.ILanguageFeaturesService),s=e.get(a.IModelService).getModel(t);if(!s)throw(0,n.Qg)();return{model:s,colorProviderRegistry:i,isDefaultColorDecoratorsEnabled:e.get(d.pG).getValue("editor.defaultColorDecorators",{resource:t})}}c.w.registerCommand("_executeDocumentColorProvider",(function(e,...t){const[i]=t;if(!(i instanceof r.r))throw(0,n.Qg)();const{model:o,colorProviderRegistry:a,isDefaultColorDecoratorsEnabled:c}=v(e,i);return _(new m,a,o,s.XO.None,c)})),c.w.registerCommand("_executeColorPresentationProvider",(function(e,...t){const[i,a]=t,{uri:c,range:l}=a;if(!(c instanceof r.r)||!Array.isArray(i)||4!==i.length||!o.Q.isIRange(l))throw(0,n.Qg)();const{model:h,colorProviderRegistry:d,isDefaultColorDecoratorsEnabled:u}=v(e,c),[g,p,m,C]=i;return _(new f({range:l,color:{red:g,green:p,blue:m,alpha:C}}),d,h,s.XO.None,u)}))},31659:(e,t,i)=>{"use strict";var s=i(5662),n=i(31450),r=i(36677),o=i(9772),a=i(28712),c=i(77011),l=i(57039);class h extends s.jG{static{this.ID="editor.contrib.colorContribution"}constructor(e){super(),this._editor=e,this._register(e.onMouseDown((e=>this.onMouseDown(e))))}dispose(){super.dispose()}onMouseDown(e){const t=this._editor.getOption(149);if("click"!==t&&"clickAndHover"!==t)return;const i=e.target;if(6!==i.type)return;if(!i.detail.injectedText)return;if(i.detail.injectedText.options.attachedData!==o.nM)return;if(!i.range)return;const s=this._editor.getContribution(c.A.ID);if(s&&!s.isColorPickerVisible){const e=new r.Q(i.range.startLineNumber,i.range.startColumn+1,i.range.endLineNumber,i.range.endColumn+1);s.showContentHover(e,1,0,!1,!0)}}}(0,n.HW)(h.ID,h,2),l.B2.register(a.BJ)},9772:(e,t,i)=>{"use strict";i.d(t,{mn:()=>S,nM:()=>b});var s,n=i(90766),r=i(47661),o=i(64383),a=i(41234),c=i(5662),l=i(78381),h=i(91508),d=i(37734),u=i(31450),g=i(36677),p=i(87289),m=i(32500),f=i(56942),_=i(68310),v=i(84001),C=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},E=function(e,t){return function(i,s){t(i,s,e)}};const b=Object.create({});let S=class extends c.jG{static{s=this}static{this.ID="editor.contrib.colorDetector"}static{this.RECOMPUTE_TIME=1e3}constructor(e,t,i,n){super(),this._editor=e,this._configurationService=t,this._languageFeaturesService=i,this._localToDispose=this._register(new c.Cm),this._decorationsIds=[],this._colorDatas=new Map,this._colorDecoratorIds=this._editor.createDecorationsCollection(),this._ruleFactory=new d.Qn(this._editor),this._decoratorLimitReporter=new y,this._colorDecorationClassRefs=this._register(new c.Cm),this._debounceInformation=n.for(i.colorProvider,"Document Colors",{min:s.RECOMPUTE_TIME}),this._register(e.onDidChangeModel((()=>{this._isColorDecoratorsEnabled=this.isEnabled(),this.updateColors()}))),this._register(e.onDidChangeModelLanguage((()=>this.updateColors()))),this._register(i.colorProvider.onDidChange((()=>this.updateColors()))),this._register(e.onDidChangeConfiguration((e=>{const t=this._isColorDecoratorsEnabled;this._isColorDecoratorsEnabled=this.isEnabled(),this._isDefaultColorDecoratorsEnabled=this._editor.getOption(148);const i=t!==this._isColorDecoratorsEnabled||e.hasChanged(21),s=e.hasChanged(148);(i||s)&&(this._isColorDecoratorsEnabled?this.updateColors():this.removeAllDecorations())}))),this._timeoutTimer=null,this._computePromise=null,this._isColorDecoratorsEnabled=this.isEnabled(),this._isDefaultColorDecoratorsEnabled=this._editor.getOption(148),this.updateColors()}isEnabled(){const e=this._editor.getModel();if(!e)return!1;const t=e.getLanguageId(),i=this._configurationService.getValue(t);if(i&&"object"===typeof i){const e=i.colorDecorators;if(e&&void 0!==e.enable&&!e.enable)return e.enable}return this._editor.getOption(20)}static get(e){return e.getContribution(this.ID)}dispose(){this.stop(),this.removeAllDecorations(),super.dispose()}updateColors(){if(this.stop(),!this._isColorDecoratorsEnabled)return;const e=this._editor.getModel();e&&this._languageFeaturesService.colorProvider.has(e)&&(this._localToDispose.add(this._editor.onDidChangeModelContent((()=>{this._timeoutTimer||(this._timeoutTimer=new n.pc,this._timeoutTimer.cancelAndSet((()=>{this._timeoutTimer=null,this.beginCompute()}),this._debounceInformation.get(e)))}))),this.beginCompute())}async beginCompute(){this._computePromise=(0,n.SS)((async e=>{const t=this._editor.getModel();if(!t)return[];const i=new l.W(!1),s=await(0,_.j)(this._languageFeaturesService.colorProvider,t,e,this._isDefaultColorDecoratorsEnabled);return this._debounceInformation.update(t,i.elapsed()),s}));try{const e=await this._computePromise;this.updateDecorations(e),this.updateColorDecorators(e),this._computePromise=null}catch(e){(0,o.dz)(e)}}stop(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()}updateDecorations(e){const t=e.map((e=>({range:{startLineNumber:e.colorInfo.range.startLineNumber,startColumn:e.colorInfo.range.startColumn,endLineNumber:e.colorInfo.range.endLineNumber,endColumn:e.colorInfo.range.endColumn},options:p.kI.EMPTY})));this._editor.changeDecorations((i=>{this._decorationsIds=i.deltaDecorations(this._decorationsIds,t),this._colorDatas=new Map,this._decorationsIds.forEach(((t,i)=>this._colorDatas.set(t,e[i])))}))}updateColorDecorators(e){this._colorDecorationClassRefs.clear();const t=[],i=this._editor.getOption(21);for(let n=0;n<e.length&&t.length<i;n++){const{red:i,green:s,blue:o,alpha:a}=e[n].colorInfo.color,c=new r.bU(Math.round(255*i),Math.round(255*s),Math.round(255*o),a),l=`rgba(${c.r}, ${c.g}, ${c.b}, ${c.a})`,d=this._colorDecorationClassRefs.add(this._ruleFactory.createClassNameRef({backgroundColor:l}));t.push({range:{startLineNumber:e[n].colorInfo.range.startLineNumber,startColumn:e[n].colorInfo.range.startColumn,endLineNumber:e[n].colorInfo.range.endLineNumber,endColumn:e[n].colorInfo.range.endColumn},options:{description:"colorDetector",before:{content:h.S8,inlineClassName:`${d.className} colorpicker-color-decoration`,inlineClassNameAffectsLetterSpacing:!0,attachedData:b}}})}const s=i<e.length&&i;this._decoratorLimitReporter.update(e.length,s),this._colorDecoratorIds.set(t)}removeAllDecorations(){this._editor.removeDecorations(this._decorationsIds),this._decorationsIds=[],this._colorDecoratorIds.clear(),this._colorDecorationClassRefs.clear()}getColorData(e){const t=this._editor.getModel();if(!t)return null;const i=t.getDecorationsInRange(g.Q.fromPositions(e,e)).filter((e=>this._colorDatas.has(e.id)));return 0===i.length?null:this._colorDatas.get(i[0].id)}isColorDecoration(e){return this._colorDecoratorIds.has(e)}};S=s=C([E(1,v.pG),E(2,f.ILanguageFeaturesService),E(3,m.ILanguageFeatureDebounceService)],S);class y{constructor(){this._onDidChange=new a.vl,this._computed=0,this._limited=!1}update(e,t){e===this._computed&&t===this._limited||(this._computed=e,this._limited=t,this._onDidChange.fire())}}(0,u.HW)(S.ID,S,1)},28712:(e,t,i)=>{"use strict";i.d(t,{BJ:()=>P,WE:()=>U});var s=i(90766),n=i(18447),r=i(47661),o=i(5662),a=i(36677),c=i(68310),l=i(9772),h=i(41234);class d{get color(){return this._color}set color(e){this._color.equals(e)||(this._color=e,this._onDidChangeColor.fire(e))}get presentation(){return this.colorPresentations[this.presentationIndex]}get colorPresentations(){return this._colorPresentations}set colorPresentations(e){this._colorPresentations=e,this.presentationIndex>e.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)}constructor(e,t,i){this.presentationIndex=i,this._onColorFlushed=new h.vl,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new h.vl,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new h.vl,this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=e,this._color=e,this._colorPresentations=t}selectNextColorPresentation(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)}guessColorPresentation(e,t){let i=-1;for(let s=0;s<this.colorPresentations.length;s++)if(t.toLowerCase()===this.colorPresentations[s].label){i=s;break}if(-1===i){const e=t.split("(")[0].toLowerCase();for(let t=0;t<this.colorPresentations.length;t++)if(this.colorPresentations[t].label.toLowerCase().startsWith(e)){i=t;break}}-1!==i&&i!==this.presentationIndex&&(this.presentationIndex=i,this._onDidChangePresentation.fire(this.presentation))}flushColor(){this._onColorFlushed.fire(this._color)}}var u=i(94106),g=i(8597),p=i(34072),m=i(17390),f=i(10350),_=i(25689),v=(i(53396),i(78209)),C=i(66261),E=i(61394);const b=g.$;class S extends o.jG{constructor(e,t,i,s=!1){super(),this.model=t,this.showingStandaloneColorPicker=s,this._closeButton=null,this._domNode=b(".colorpicker-header"),g.BC(e,this._domNode),this._pickedColorNode=g.BC(this._domNode,b(".picked-color")),g.BC(this._pickedColorNode,b("span.codicon.codicon-color-mode")),this._pickedColorPresentation=g.BC(this._pickedColorNode,document.createElement("span")),this._pickedColorPresentation.classList.add("picked-color-presentation");const n=(0,v.kg)("clickToToggleColorOptions","Click to toggle color options (rgb/hsl/hex)");this._pickedColorNode.setAttribute("title",n),this._originalColorNode=g.BC(this._domNode,b(".original-color")),this._originalColorNode.style.backgroundColor=r.Q1.Format.CSS.format(this.model.originalColor)||"",this.backgroundColor=i.getColorTheme().getColor(C.WfR)||r.Q1.white,this._register(i.onDidColorThemeChange((e=>{this.backgroundColor=e.getColor(C.WfR)||r.Q1.white}))),this._register(g.ko(this._pickedColorNode,g.Bx.CLICK,(()=>this.model.selectNextColorPresentation()))),this._register(g.ko(this._originalColorNode,g.Bx.CLICK,(()=>{this.model.color=this.model.originalColor,this.model.flushColor()}))),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this._register(t.onDidChangePresentation(this.onDidChangePresentation,this)),this._pickedColorNode.style.backgroundColor=r.Q1.Format.CSS.format(t.color)||"",this._pickedColorNode.classList.toggle("light",t.color.rgba.a<.5?this.backgroundColor.isLighter():t.color.isLighter()),this.onDidChangeColor(this.model.color),this.showingStandaloneColorPicker&&(this._domNode.classList.add("standalone-colorpicker"),this._closeButton=this._register(new y(this._domNode)))}get closeButton(){return this._closeButton}get pickedColorNode(){return this._pickedColorNode}get originalColorNode(){return this._originalColorNode}onDidChangeColor(e){this._pickedColorNode.style.backgroundColor=r.Q1.Format.CSS.format(e)||"",this._pickedColorNode.classList.toggle("light",e.rgba.a<.5?this.backgroundColor.isLighter():e.isLighter()),this.onDidChangePresentation()}onDidChangePresentation(){this._pickedColorPresentation.textContent=this.model.presentation?this.model.presentation.label:""}}class y extends o.jG{constructor(e){super(),this._onClicked=this._register(new h.vl),this.onClicked=this._onClicked.event,this._button=document.createElement("div"),this._button.classList.add("close-button"),g.BC(e,this._button);const t=document.createElement("div");t.classList.add("close-button-inner-div"),g.BC(this._button,t);g.BC(t,b(".button"+_.L.asCSSSelector((0,E.pU)("color-picker-close",f.W.close,(0,v.kg)("closeIcon","Icon to close the color picker"))))).classList.add("close-icon"),this._register(g.ko(this._button,g.Bx.CLICK,(()=>{this._onClicked.fire()})))}}class w extends o.jG{constructor(e,t,i,s=!1){super(),this.model=t,this.pixelRatio=i,this._insertButton=null,this._domNode=b(".colorpicker-body"),g.BC(e,this._domNode),this._saturationBox=new R(this._domNode,this.model,this.pixelRatio),this._register(this._saturationBox),this._register(this._saturationBox.onDidChange(this.onDidSaturationValueChange,this)),this._register(this._saturationBox.onColorFlushed(this.flushColor,this)),this._opacityStrip=new T(this._domNode,this.model,s),this._register(this._opacityStrip),this._register(this._opacityStrip.onDidChange(this.onDidOpacityChange,this)),this._register(this._opacityStrip.onColorFlushed(this.flushColor,this)),this._hueStrip=new x(this._domNode,this.model,s),this._register(this._hueStrip),this._register(this._hueStrip.onDidChange(this.onDidHueChange,this)),this._register(this._hueStrip.onColorFlushed(this.flushColor,this)),s&&(this._insertButton=this._register(new k(this._domNode)),this._domNode.classList.add("standalone-colorpicker"))}flushColor(){this.model.flushColor()}onDidSaturationValueChange({s:e,v:t}){const i=this.model.color.hsva;this.model.color=new r.Q1(new r.$J(i.h,e,t,i.a))}onDidOpacityChange(e){const t=this.model.color.hsva;this.model.color=new r.Q1(new r.$J(t.h,t.s,t.v,e))}onDidHueChange(e){const t=this.model.color.hsva,i=360*(1-e);this.model.color=new r.Q1(new r.$J(360===i?0:i,t.s,t.v,t.a))}get domNode(){return this._domNode}get saturationBox(){return this._saturationBox}get enterButton(){return this._insertButton}layout(){this._saturationBox.layout(),this._opacityStrip.layout(),this._hueStrip.layout()}}class R extends o.jG{constructor(e,t,i){super(),this.model=t,this.pixelRatio=i,this._onDidChange=new h.vl,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new h.vl,this.onColorFlushed=this._onColorFlushed.event,this._domNode=b(".saturation-wrap"),g.BC(e,this._domNode),this._canvas=document.createElement("canvas"),this._canvas.className="saturation-box",g.BC(this._domNode,this._canvas),this.selection=b(".saturation-selection"),g.BC(this._domNode,this.selection),this.layout(),this._register(g.ko(this._domNode,g.Bx.POINTER_DOWN,(e=>this.onPointerDown(e)))),this._register(this.model.onDidChangeColor(this.onDidChangeColor,this)),this.monitor=null}get domNode(){return this._domNode}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;this.monitor=this._register(new p._);const t=g.BK(this._domNode);e.target!==this.selection&&this.onDidChangePosition(e.offsetX,e.offsetY),this.monitor.startMonitoring(e.target,e.pointerId,e.buttons,(e=>this.onDidChangePosition(e.pageX-t.left,e.pageY-t.top)),(()=>null));const i=g.ko(e.target.ownerDocument,g.Bx.POINTER_UP,(()=>{this._onColorFlushed.fire(),i.dispose(),this.monitor&&(this.monitor.stopMonitoring(!0),this.monitor=null)}),!0)}onDidChangePosition(e,t){const i=Math.max(0,Math.min(1,e/this.width)),s=Math.max(0,Math.min(1,1-t/this.height));this.paintSelection(i,s),this._onDidChange.fire({s:i,v:s})}layout(){this.width=this._domNode.offsetWidth,this.height=this._domNode.offsetHeight,this._canvas.width=this.width*this.pixelRatio,this._canvas.height=this.height*this.pixelRatio,this.paint();const e=this.model.color.hsva;this.paintSelection(e.s,e.v)}paint(){const e=this.model.color.hsva,t=new r.Q1(new r.$J(e.h,1,1,1)),i=this._canvas.getContext("2d"),s=i.createLinearGradient(0,0,this._canvas.width,0);s.addColorStop(0,"rgba(255, 255, 255, 1)"),s.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),s.addColorStop(1,"rgba(255, 255, 255, 0)");const n=i.createLinearGradient(0,0,0,this._canvas.height);n.addColorStop(0,"rgba(0, 0, 0, 0)"),n.addColorStop(1,"rgba(0, 0, 0, 1)"),i.rect(0,0,this._canvas.width,this._canvas.height),i.fillStyle=r.Q1.Format.CSS.format(t),i.fill(),i.fillStyle=s,i.fill(),i.fillStyle=n,i.fill()}paintSelection(e,t){this.selection.style.left=e*this.width+"px",this.selection.style.top=this.height-t*this.height+"px"}onDidChangeColor(e){if(this.monitor&&this.monitor.isMonitoring())return;this.paint();const t=e.hsva;this.paintSelection(t.s,t.v)}}class L extends o.jG{constructor(e,t,i=!1){super(),this.model=t,this._onDidChange=new h.vl,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new h.vl,this.onColorFlushed=this._onColorFlushed.event,i?(this.domNode=g.BC(e,b(".standalone-strip")),this.overlay=g.BC(this.domNode,b(".standalone-overlay"))):(this.domNode=g.BC(e,b(".strip")),this.overlay=g.BC(this.domNode,b(".overlay"))),this.slider=g.BC(this.domNode,b(".slider")),this.slider.style.top="0px",this._register(g.ko(this.domNode,g.Bx.POINTER_DOWN,(e=>this.onPointerDown(e)))),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this.layout()}layout(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;const e=this.getValue(this.model.color);this.updateSliderPosition(e)}onDidChangeColor(e){const t=this.getValue(e);this.updateSliderPosition(t)}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;const t=this._register(new p._),i=g.BK(this.domNode);this.domNode.classList.add("grabbing"),e.target!==this.slider&&this.onDidChangeTop(e.offsetY),t.startMonitoring(e.target,e.pointerId,e.buttons,(e=>this.onDidChangeTop(e.pageY-i.top)),(()=>null));const s=g.ko(e.target.ownerDocument,g.Bx.POINTER_UP,(()=>{this._onColorFlushed.fire(),s.dispose(),t.stopMonitoring(!0),this.domNode.classList.remove("grabbing")}),!0)}onDidChangeTop(e){const t=Math.max(0,Math.min(1,1-e/this.height));this.updateSliderPosition(t),this._onDidChange.fire(t)}updateSliderPosition(e){this.slider.style.top=(1-e)*this.height+"px"}}class T extends L{constructor(e,t,i=!1){super(e,t,i),this.domNode.classList.add("opacity-strip"),this.onDidChangeColor(this.model.color)}onDidChangeColor(e){super.onDidChangeColor(e);const{r:t,g:i,b:s}=e.rgba,n=new r.Q1(new r.bU(t,i,s,1)),o=new r.Q1(new r.bU(t,i,s,0));this.overlay.style.background=`linear-gradient(to bottom, ${n} 0%, ${o} 100%)`}getValue(e){return e.hsva.a}}class x extends L{constructor(e,t,i=!1){super(e,t,i),this.domNode.classList.add("hue-strip")}getValue(e){return 1-e.hsva.h/360}}class k extends o.jG{constructor(e){super(),this._onClicked=this._register(new h.vl),this.onClicked=this._onClicked.event,this._button=g.BC(e,document.createElement("button")),this._button.classList.add("insert-button"),this._button.textContent="Insert",this._register(g.ko(this._button,g.Bx.CLICK,(()=>{this._onClicked.fire()})))}get button(){return this._button}}class A extends m.x{constructor(e,t,i,s,n=!1){super(),this.model=t,this.pixelRatio=i,this._register(u.c.getInstance(g.zk(e)).onDidChange((()=>this.layout()))),this._domNode=b(".colorpicker-widget"),e.appendChild(this._domNode),this.header=this._register(new S(this._domNode,this.model,s,n)),this.body=this._register(new w(this._domNode,this.model,this.pixelRatio,n))}layout(){this.body.layout()}get domNode(){return this._domNode}}var N=i(57039),I=i(47612),O=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},D=function(e,t){return function(i,s){t(i,s,e)}};class M{constructor(e,t,i,s){this.owner=e,this.range=t,this.model=i,this.provider=s,this.forceShowAtRange=!0}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let P=class{constructor(e,t){this._editor=e,this._themeService=t,this.hoverOrdinal=2}computeSync(e,t){return[]}computeAsync(e,t,i){return s.AE.fromPromise(this._computeAsync(e,t,i))}async _computeAsync(e,t,i){if(!this._editor.hasModel())return[];const s=l.mn.get(this._editor);if(!s)return[];for(const n of t){if(!s.isColorDecoration(n))continue;const e=s.getColorData(n.range.getStartPosition());if(e){return[await H(this,this._editor.getModel(),e.colorInfo,e.provider)]}}return[]}renderHoverParts(e,t){const i=B(this,this._editor,this._themeService,t,e);if(!i)return new N.Ke([]);this._colorPicker=i.colorPicker;const s={hoverPart:i.hoverPart,hoverElement:this._colorPicker.domNode,dispose(){i.disposables.dispose()}};return new N.Ke([s])}handleResize(){this._colorPicker?.layout()}isColorPickerVisible(){return!!this._colorPicker}};P=O([D(1,I.Gy)],P);class F{constructor(e,t,i,s){this.owner=e,this.range=t,this.model=i,this.provider=s}}let U=class{constructor(e,t){this._editor=e,this._themeService=t,this._color=null}async createColorHover(e,t,i){if(!this._editor.hasModel())return null;if(!l.mn.get(this._editor))return null;const s=await(0,c.j)(i,this._editor.getModel(),n.XO.None);let r=null,o=null;for(const n of s){const t=n.colorInfo;a.Q.containsRange(t.range,e.range)&&(r=t,o=n.provider)}const h=r??e,d=o??t,u=!!r;return{colorHover:await H(this,this._editor.getModel(),h,d),foundInEditor:u}}async updateEditorModel(e){if(!this._editor.hasModel())return;const t=e.model;let i=new a.Q(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn);this._color&&(await V(this._editor.getModel(),t,this._color,i,e),i=W(this._editor,i,t))}renderHoverParts(e,t){return B(this,this._editor,this._themeService,t,e)}set color(e){this._color=e}get color(){return this._color}};async function H(e,t,i,s){const o=t.getValueInRange(i.range),{red:l,green:h,blue:u,alpha:g}=i.color,p=new r.bU(Math.round(255*l),Math.round(255*h),Math.round(255*u),g),m=new r.Q1(p),f=await(0,c.R)(t,i,s,n.XO.None),_=new d(m,[],0);return _.colorPresentations=f||[],_.guessColorPresentation(m,o),e instanceof P?new M(e,a.Q.lift(i.range),_,s):new F(e,a.Q.lift(i.range),_,s)}function B(e,t,i,s,n){if(0===s.length||!t.hasModel())return;if(n.setMinimumDimensions){const e=t.getOption(67)+8;n.setMinimumDimensions(new g.fg(302,e))}const r=new o.Cm,c=s[0],l=t.getModel(),h=c.model,d=r.add(new A(n.fragment,h,t.getOption(144),i,e instanceof U));let u=!1,p=new a.Q(c.range.startLineNumber,c.range.startColumn,c.range.endLineNumber,c.range.endColumn);if(e instanceof U){const t=c.model.color;e.color=t,V(l,h,t,p,c),r.add(h.onColorFlushed((t=>{e.color=t})))}else r.add(h.onColorFlushed((async e=>{await V(l,h,e,p,c),u=!0,p=W(t,p,h)})));return r.add(h.onDidChangeColor((e=>{V(l,h,e,p,c)}))),r.add(t.onDidChangeModelContent((e=>{u?u=!1:(n.hide(),t.focus())}))),{hoverPart:c,colorPicker:d,disposables:r}}function W(e,t,i){const s=[],n=i.presentation.textEdit??{range:t,text:i.presentation.label,forceMoveMarkers:!1};s.push(n),i.presentation.additionalTextEdits&&s.push(...i.presentation.additionalTextEdits);const r=a.Q.lift(n.range),o=e.getModel()._setTrackedRange(null,r,3);return e.executeEdits("colorpicker",s),e.pushUndoStop(),e.getModel()._getTrackedRange(o)??r}async function V(e,t,i,s,r){const o=await(0,c.R)(e,{range:s,color:{red:i.rgba.r/255,green:i.rgba.g/255,blue:i.rgba.b/255,alpha:i.rgba.a}},r.provider,n.XO.None);t.colorPresentations=o||[]}U=O([D(1,I.Gy)],U)},52363:(e,t,i)=>{"use strict";i.d(t,{L:()=>h});var s=i(47661),n=i(5662),r=i(56942),o=i(72466),a=i(10920),c=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},l=function(e,t){return function(i,s){t(i,s,e)}};let h=class{constructor(e){this._editorWorkerService=e}async provideDocumentColors(e,t){return this._editorWorkerService.computeDefaultDocumentColors(e.uri)}provideColorPresentations(e,t,i){const n=t.range,r=t.color,o=r.alpha,a=new s.Q1(new s.bU(Math.round(255*r.red),Math.round(255*r.green),Math.round(255*r.blue),o)),c=o?s.Q1.Format.CSS.formatRGB(a):s.Q1.Format.CSS.formatRGBA(a),l=o?s.Q1.Format.CSS.formatHSL(a):s.Q1.Format.CSS.formatHSLA(a),h=o?s.Q1.Format.CSS.formatHex(a):s.Q1.Format.CSS.formatHexA(a),d=[];return d.push({label:c,textEdit:{range:n,text:c}}),d.push({label:l,textEdit:{range:n,text:l}}),d.push({label:h,textEdit:{range:n,text:h}}),d}};h=c([l(0,a.IEditorWorkerService)],h);let d=class extends n.jG{constructor(e,t){super(),this._register(e.colorProvider.register("*",new h(t)))}};d=c([l(0,r.ILanguageFeaturesService),l(1,a.IEditorWorkerService)],d),(0,o.x)(d)},99822:(e,t,i)=>{"use strict";var s,n,r=i(31450),o=i(78209),a=i(5662),c=i(28712),l=i(63591),h=i(9270),d=i(98031),u=i(41234),g=i(56942),p=i(60002),m=i(32848),f=i(52363),_=i(8597),v=(i(53396),i(10920)),C=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},E=function(e,t){return function(i,s){t(i,s,e)}};let b=class extends a.jG{static{s=this}static{this.ID="editor.contrib.standaloneColorPickerController"}constructor(e,t,i){super(),this._editor=e,this._instantiationService=i,this._standaloneColorPickerWidget=null,this._standaloneColorPickerVisible=p.R.standaloneColorPickerVisible.bindTo(t),this._standaloneColorPickerFocused=p.R.standaloneColorPickerFocused.bindTo(t)}showOrFocus(){this._editor.hasModel()&&(this._standaloneColorPickerVisible.get()?this._standaloneColorPickerFocused.get()||this._standaloneColorPickerWidget?.focus():this._standaloneColorPickerWidget=this._instantiationService.createInstance(S,this._editor,this._standaloneColorPickerVisible,this._standaloneColorPickerFocused))}hide(){this._standaloneColorPickerFocused.set(!1),this._standaloneColorPickerVisible.set(!1),this._standaloneColorPickerWidget?.hide(),this._editor.focus()}insertColor(){this._standaloneColorPickerWidget?.updateEditor(),this.hide()}static get(e){return e.getContribution(s.ID)}};b=s=C([E(1,m.fN),E(2,l._Y)],b),(0,r.HW)(b.ID,b,1);let S=class extends a.jG{static{n=this}static{this.ID="editor.contrib.standaloneColorPickerWidget"}constructor(e,t,i,s,n,r,o){super(),this._editor=e,this._standaloneColorPickerVisible=t,this._standaloneColorPickerFocused=i,this._keybindingService=n,this._languageFeaturesService=r,this._editorWorkerService=o,this.allowEditorOverflow=!0,this._position=void 0,this._body=document.createElement("div"),this._colorHover=null,this._selectionSetInEditor=!1,this._onResult=this._register(new u.vl),this.onResult=this._onResult.event,this._standaloneColorPickerVisible.set(!0),this._standaloneColorPickerParticipant=s.createInstance(c.WE,this._editor),this._position=this._editor._getViewModel()?.getPrimaryCursorState().modelState.position;const a=this._editor.getSelection(),l=a?{startLineNumber:a.startLineNumber,startColumn:a.startColumn,endLineNumber:a.endLineNumber,endColumn:a.endColumn}:{startLineNumber:0,endLineNumber:0,endColumn:0,startColumn:0},h=this._register(_.w5(this._body));this._register(h.onDidBlur((e=>{this.hide()}))),this._register(h.onDidFocus((e=>{this.focus()}))),this._register(this._editor.onDidChangeCursorPosition((()=>{this._selectionSetInEditor?this._selectionSetInEditor=!1:this.hide()}))),this._register(this._editor.onMouseMove((e=>{const t=e.target.element?.classList;t&&t.contains("colorpicker-color-decoration")&&this.hide()}))),this._register(this.onResult((e=>{this._render(e.value,e.foundInEditor)}))),this._start(l),this._body.style.zIndex="50",this._editor.addContentWidget(this)}updateEditor(){this._colorHover&&this._standaloneColorPickerParticipant.updateEditorModel(this._colorHover)}getId(){return n.ID}getDomNode(){return this._body}getPosition(){if(!this._position)return null;const e=this._editor.getOption(60).above;return{position:this._position,secondaryPosition:this._position,preference:e?[1,2]:[2,1],positionAffinity:2}}hide(){this.dispose(),this._standaloneColorPickerVisible.set(!1),this._standaloneColorPickerFocused.set(!1),this._editor.removeContentWidget(this),this._editor.focus()}focus(){this._standaloneColorPickerFocused.set(!0),this._body.focus()}async _start(e){const t=await this._computeAsync(e);t&&this._onResult.fire(new y(t.result,t.foundInEditor))}async _computeAsync(e){if(!this._editor.hasModel())return null;const t={range:e,color:{red:0,green:0,blue:0,alpha:1}},i=await this._standaloneColorPickerParticipant.createColorHover(t,new f.L(this._editorWorkerService),this._languageFeaturesService.colorProvider);return i?{result:i.colorHover,foundInEditor:i.foundInEditor}:null}_render(e,t){const i=document.createDocumentFragment(),s={fragment:i,statusBar:this._register(new h.L(this._keybindingService)),onContentsChanged:()=>{},hide:()=>this.hide()};this._colorHover=e;const n=this._standaloneColorPickerParticipant.renderHoverParts(s,[e]);if(!n)return;this._register(n.disposables);const r=n.colorPicker;this._body.classList.add("standalone-colorpicker-body"),this._body.style.maxHeight=Math.max(this._editor.getLayoutInfo().height/4,250)+"px",this._body.style.maxWidth=Math.max(.66*this._editor.getLayoutInfo().width,500)+"px",this._body.tabIndex=0,this._body.appendChild(i),r.layout();const o=r.body,a=o.saturationBox.domNode.clientWidth,c=o.domNode.clientWidth-a-22-8,l=r.body.enterButton;l?.onClicked((()=>{this.updateEditor(),this.hide()}));const d=r.header;d.pickedColorNode.style.width=a+8+"px";d.originalColorNode.style.width=c+"px";const u=r.header.closeButton;u?.onClicked((()=>{this.hide()})),t&&(l&&(l.button.textContent="Replace"),this._selectionSetInEditor=!0,this._editor.setSelection(e.range)),this._editor.layoutContentWidget(this)}};S=n=C([E(3,l._Y),E(4,d.b),E(5,g.ILanguageFeaturesService),E(6,v.IEditorWorkerService)],S);class y{constructor(e,t){this.value=e,this.foundInEditor=t}}var w=i(27195);class R extends r.qO{constructor(){super({id:"editor.action.showOrFocusStandaloneColorPicker",title:{...(0,o.aS)("showOrFocusStandaloneColorPicker","Show or Focus Standalone Color Picker"),mnemonicTitle:(0,o.kg)({key:"mishowOrFocusStandaloneColorPicker",comment:["&& denotes a mnemonic"]},"&&Show or Focus Standalone Color Picker")},precondition:void 0,menu:[{id:w.D8.CommandPalette}],metadata:{description:(0,o.aS)("showOrFocusStandaloneColorPickerDescription","Show or focus a standalone color picker which uses the default color provider. It displays hex/rgb/hsl colors.")}})}runEditorCommand(e,t){b.get(t)?.showOrFocus()}}class L extends r.ks{constructor(){super({id:"editor.action.hideColorPicker",label:(0,o.kg)({key:"hideColorPicker",comment:["Action that hides the color picker"]},"Hide the Color Picker"),alias:"Hide the Color Picker",precondition:p.R.standaloneColorPickerVisible.isEqualTo(!0),kbOpts:{primary:9,weight:100},metadata:{description:(0,o.aS)("hideColorPickerDescription","Hide the standalone color picker.")}})}run(e,t){b.get(t)?.hide()}}class T extends r.ks{constructor(){super({id:"editor.action.insertColorWithStandaloneColorPicker",label:(0,o.kg)({key:"insertColorWithStandaloneColorPicker",comment:["Action that inserts color with standalone color picker"]},"Insert Color with Standalone Color Picker"),alias:"Insert Color with Standalone Color Picker",precondition:p.R.standaloneColorPickerFocused.isEqualTo(!0),kbOpts:{primary:3,weight:100},metadata:{description:(0,o.aS)("insertColorWithStandaloneColorPickerDescription","Insert hex/rgb/hsl colors with the focused standalone color picker.")}})}run(e,t){b.get(t)?.insertColor()}}(0,r.Fl)(L),(0,r.Fl)(T),(0,w.ug)(R)},40142:(e,t,i)=>{"use strict";var s=i(24939),n=i(31450),r=i(36677),o=i(60002),a=i(17469),c=i(7085),l=i(83069),h=i(75326);class d{constructor(e,t,i){this.languageConfigurationService=i,this._selection=e,this._insertSpace=t,this._usedEndToken=null}static _haystackHasNeedleAtOffset(e,t,i){if(i<0)return!1;const s=t.length;if(i+s>e.length)return!1;for(let n=0;n<s;n++){const s=e.charCodeAt(i+n),r=t.charCodeAt(n);if(s!==r&&(!(s>=65&&s<=90&&s+32===r)&&!(r>=65&&r<=90&&r+32===s)))return!1}return!0}_createOperationsForBlockComment(e,t,i,s,n,o){const a=e.startLineNumber,c=e.startColumn,l=e.endLineNumber,h=e.endColumn,u=n.getLineContent(a),g=n.getLineContent(l);let p,m=u.lastIndexOf(t,c-1+t.length),f=g.indexOf(i,h-1-i.length);if(-1!==m&&-1!==f)if(a===l){u.substring(m+t.length,f).indexOf(i)>=0&&(m=-1,f=-1)}else{const e=u.substring(m+t.length),s=g.substring(0,f);(e.indexOf(i)>=0||s.indexOf(i)>=0)&&(m=-1,f=-1)}-1!==m&&-1!==f?(s&&m+t.length<u.length&&32===u.charCodeAt(m+t.length)&&(t+=" "),s&&f>0&&32===g.charCodeAt(f-1)&&(i=" "+i,f-=1),p=d._createRemoveBlockCommentOperations(new r.Q(a,m+t.length+1,l,f+1),t,i)):(p=d._createAddBlockCommentOperations(e,t,i,this._insertSpace),this._usedEndToken=1===p.length?i:null);for(const r of p)o.addTrackedEditOperation(r.range,r.text)}static _createRemoveBlockCommentOperations(e,t,i){const s=[];return r.Q.isEmpty(e)?s.push(c.k.delete(new r.Q(e.startLineNumber,e.startColumn-t.length,e.endLineNumber,e.endColumn+i.length))):(s.push(c.k.delete(new r.Q(e.startLineNumber,e.startColumn-t.length,e.startLineNumber,e.startColumn))),s.push(c.k.delete(new r.Q(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn+i.length)))),s}static _createAddBlockCommentOperations(e,t,i,s){const n=[];return r.Q.isEmpty(e)?n.push(c.k.replace(new r.Q(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),t+" "+i)):(n.push(c.k.insert(new l.y(e.startLineNumber,e.startColumn),t+(s?" ":""))),n.push(c.k.insert(new l.y(e.endLineNumber,e.endColumn),(s?" ":"")+i))),n}getEditOperations(e,t){const i=this._selection.startLineNumber,s=this._selection.startColumn;e.tokenization.tokenizeIfCheap(i);const n=e.getLanguageIdAtPosition(i,s),r=this.languageConfigurationService.getLanguageConfiguration(n).comments;r&&r.blockCommentStartToken&&r.blockCommentEndToken&&this._createOperationsForBlockComment(this._selection,r.blockCommentStartToken,r.blockCommentEndToken,this._insertSpace,e,t)}computeCursorState(e,t){const i=t.getInverseEditOperations();if(2===i.length){const e=i[0],t=i[1];return new h.L(e.range.endLineNumber,e.range.endColumn,t.range.startLineNumber,t.range.startColumn)}{const e=i[0].range,t=this._usedEndToken?-this._usedEndToken.length-1:0;return new h.L(e.endLineNumber,e.endColumn+t,e.endLineNumber,e.endColumn+t)}}}var u=i(91508);class g{constructor(e,t,i,s,n,r,o){this.languageConfigurationService=e,this._selection=t,this._indentSize=i,this._type=s,this._insertSpace=n,this._selectionId=null,this._deltaColumn=0,this._moveEndPositionDown=!1,this._ignoreEmptyLines=r,this._ignoreFirstLine=o||!1}static _gatherPreflightCommentStrings(e,t,i,s){e.tokenization.tokenizeIfCheap(t);const n=e.getLanguageIdAtPosition(t,1),r=s.getLanguageConfiguration(n).comments,o=r?r.lineCommentToken:null;if(!o)return null;const a=[];for(let c=0,l=i-t+1;c<l;c++)a[c]={ignore:!1,commentStr:o,commentStrOffset:0,commentStrLength:o.length};return a}static _analyzeLines(e,t,i,s,n,r,o,a){let c,l=!0;c=0===e||1!==e;for(let h=0,g=s.length;h<g;h++){const a=s[h],g=n+h;if(g===n&&o){a.ignore=!0;continue}const p=i.getLineContent(g),m=u.HG(p);if(-1!==m){if(l=!1,a.ignore=!1,a.commentStrOffset=m,c&&!d._haystackHasNeedleAtOffset(p,a.commentStr,m)&&(0===e?c=!1:1===e||(a.ignore=!0)),c&&t){const e=m+a.commentStrLength;e<p.length&&32===p.charCodeAt(e)&&(a.commentStrLength+=1)}}else a.ignore=r,a.commentStrOffset=p.length}if(0===e&&l){c=!1;for(let e=0,t=s.length;e<t;e++)s[e].ignore=!1}return{supported:!0,shouldRemoveComments:c,lines:s}}static _gatherPreflightData(e,t,i,s,n,r,o,a){const c=g._gatherPreflightCommentStrings(i,s,n,a);return null===c?{supported:!1}:g._analyzeLines(e,t,i,c,s,r,o,a)}_executeLineComments(e,t,i,s){let n;i.shouldRemoveComments?n=g._createRemoveLineCommentsOperations(i.lines,s.startLineNumber):(g._normalizeInsertionPoint(e,i.lines,s.startLineNumber,this._indentSize),n=this._createAddLineCommentsOperations(i.lines,s.startLineNumber));const o=new l.y(s.positionLineNumber,s.positionColumn);for(let a=0,c=n.length;a<c;a++)if(t.addEditOperation(n[a].range,n[a].text),r.Q.isEmpty(n[a].range)&&r.Q.getStartPosition(n[a].range).equals(o)){e.getLineContent(o.lineNumber).length+1===o.column&&(this._deltaColumn=(n[a].text||"").length)}this._selectionId=t.trackSelection(s)}_attemptRemoveBlockComment(e,t,i,s){let n=t.startLineNumber,o=t.endLineNumber;const a=s.length+Math.max(e.getLineFirstNonWhitespaceColumn(t.startLineNumber),t.startColumn);let c=e.getLineContent(n).lastIndexOf(i,a-1),l=e.getLineContent(o).indexOf(s,t.endColumn-1-i.length);return-1!==c&&-1===l&&(l=e.getLineContent(n).indexOf(s,c+i.length),o=n),-1===c&&-1!==l&&(c=e.getLineContent(o).lastIndexOf(i,l),n=o),!t.isEmpty()||-1!==c&&-1!==l||(c=e.getLineContent(n).indexOf(i),-1!==c&&(l=e.getLineContent(n).indexOf(s,c+i.length))),-1!==c&&32===e.getLineContent(n).charCodeAt(c+i.length)&&(i+=" "),-1!==l&&32===e.getLineContent(o).charCodeAt(l-1)&&(s=" "+s,l-=1),-1!==c&&-1!==l?d._createRemoveBlockCommentOperations(new r.Q(n,c+i.length+1,o,l+1),i,s):null}_executeBlockComment(e,t,i){e.tokenization.tokenizeIfCheap(i.startLineNumber);const s=e.getLanguageIdAtPosition(i.startLineNumber,1),n=this.languageConfigurationService.getLanguageConfiguration(s).comments;if(!n||!n.blockCommentStartToken||!n.blockCommentEndToken)return;const o=n.blockCommentStartToken,a=n.blockCommentEndToken;let c=this._attemptRemoveBlockComment(e,i,o,a);if(!c){if(i.isEmpty()){const t=e.getLineContent(i.startLineNumber);let s=u.HG(t);-1===s&&(s=t.length),c=d._createAddBlockCommentOperations(new r.Q(i.startLineNumber,s+1,i.startLineNumber,t.length+1),o,a,this._insertSpace)}else c=d._createAddBlockCommentOperations(new r.Q(i.startLineNumber,e.getLineFirstNonWhitespaceColumn(i.startLineNumber),i.endLineNumber,e.getLineMaxColumn(i.endLineNumber)),o,a,this._insertSpace);1===c.length&&(this._deltaColumn=o.length+1)}this._selectionId=t.trackSelection(i);for(const r of c)t.addEditOperation(r.range,r.text)}getEditOperations(e,t){let i=this._selection;if(this._moveEndPositionDown=!1,i.startLineNumber===i.endLineNumber&&this._ignoreFirstLine)return t.addEditOperation(new r.Q(i.startLineNumber,e.getLineMaxColumn(i.startLineNumber),i.startLineNumber+1,1),i.startLineNumber===e.getLineCount()?"":"\n"),void(this._selectionId=t.trackSelection(i));i.startLineNumber<i.endLineNumber&&1===i.endColumn&&(this._moveEndPositionDown=!0,i=i.setEndPosition(i.endLineNumber-1,e.getLineMaxColumn(i.endLineNumber-1)));const s=g._gatherPreflightData(this._type,this._insertSpace,e,i.startLineNumber,i.endLineNumber,this._ignoreEmptyLines,this._ignoreFirstLine,this.languageConfigurationService);return s.supported?this._executeLineComments(e,t,s,i):this._executeBlockComment(e,t,i)}computeCursorState(e,t){let i=t.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(i=i.setEndPosition(i.endLineNumber+1,1)),new h.L(i.selectionStartLineNumber,i.selectionStartColumn+this._deltaColumn,i.positionLineNumber,i.positionColumn+this._deltaColumn)}static _createRemoveLineCommentsOperations(e,t){const i=[];for(let s=0,n=e.length;s<n;s++){const n=e[s];n.ignore||i.push(c.k.delete(new r.Q(t+s,n.commentStrOffset+1,t+s,n.commentStrOffset+n.commentStrLength+1)))}return i}_createAddLineCommentsOperations(e,t){const i=[],s=this._insertSpace?" ":"";for(let n=0,r=e.length;n<r;n++){const r=e[n];r.ignore||i.push(c.k.insert(new l.y(t+n,r.commentStrOffset+1),r.commentStr+s))}return i}static nextVisibleColumn(e,t,i,s){return i?e+(t-e%t):e+s}static _normalizeInsertionPoint(e,t,i,s){let n,r,o=1073741824;for(let a=0,c=t.length;a<c;a++){if(t[a].ignore)continue;const n=e.getLineContent(i+a);let r=0;for(let e=0,i=t[a].commentStrOffset;r<o&&e<i;e++)r=g.nextVisibleColumn(r,s,9===n.charCodeAt(e),1);r<o&&(o=r)}o=Math.floor(o/s)*s;for(let a=0,c=t.length;a<c;a++){if(t[a].ignore)continue;const c=e.getLineContent(i+a);let l=0;for(n=0,r=t[a].commentStrOffset;l<o&&n<r;n++)l=g.nextVisibleColumn(l,s,9===c.charCodeAt(n),1);t[a].commentStrOffset=l>o?n-1:n}}}var p=i(78209),m=i(27195);class f extends n.ks{constructor(e,t){super(t),this._type=e}run(e,t){const i=e.get(a.JZ);if(!t.hasModel())return;const s=[],n=t.getModel().getOptions(),o=t.getOption(23),c=t.getSelections().map(((e,t)=>({selection:e,index:t,ignoreFirstLine:!1})));c.sort(((e,t)=>r.Q.compareRangesUsingStarts(e.selection,t.selection)));let l=c[0];for(let r=1;r<c.length;r++){const e=c[r];l.selection.endLineNumber===e.selection.startLineNumber&&(l.index<e.index?e.ignoreFirstLine=!0:(l.ignoreFirstLine=!0,l=e))}for(const r of c)s.push(new g(i,r.selection,n.indentSize,this._type,o.insertSpace,o.ignoreEmptyLines,r.ignoreFirstLine));t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop()}}class _ extends n.ks{constructor(){super({id:"editor.action.blockComment",label:p.kg("comment.block","Toggle Block Comment"),alias:"Toggle Block Comment",precondition:o.R.writable,kbOpts:{kbExpr:o.R.editorTextFocus,primary:1567,linux:{primary:3103},weight:100},menuOpts:{menuId:m.D8.MenubarEditMenu,group:"5_insert",title:p.kg({key:"miToggleBlockComment",comment:["&& denotes a mnemonic"]},"Toggle &&Block Comment"),order:2}})}run(e,t){const i=e.get(a.JZ);if(!t.hasModel())return;const s=t.getOption(23),n=[],r=t.getSelections();for(const o of r)n.push(new d(o,s.insertSpace,i));t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}}(0,n.Fl)(class extends f{constructor(){super(0,{id:"editor.action.commentLine",label:p.kg("comment.line","Toggle Line Comment"),alias:"Toggle Line Comment",precondition:o.R.writable,kbOpts:{kbExpr:o.R.editorTextFocus,primary:2138,weight:100},menuOpts:{menuId:m.D8.MenubarEditMenu,group:"5_insert",title:p.kg({key:"miToggleLineComment",comment:["&& denotes a mnemonic"]},"&&Toggle Line Comment"),order:1}})}}),(0,n.Fl)(class extends f{constructor(){super(1,{id:"editor.action.addCommentLine",label:p.kg("comment.line.add","Add Line Comment"),alias:"Add Line Comment",precondition:o.R.writable,kbOpts:{kbExpr:o.R.editorTextFocus,primary:(0,s.m5)(2089,2081),weight:100}})}}),(0,n.Fl)(class extends f{constructor(){super(2,{id:"editor.action.removeCommentLine",label:p.kg("comment.line.remove","Remove Line Comment"),alias:"Remove Line Comment",precondition:o.R.writable,kbOpts:{kbExpr:o.R.editorTextFocus,primary:(0,s.m5)(2089,2099),weight:100}})}}),(0,n.Fl)(_)},18864:(e,t,i)=>{"use strict";i.d(t,{d:()=>E});var s,n=i(8597),r=i(5646),o=i(36921),a=i(5662),c=i(98067),l=i(31450),h=i(60002),d=i(78209),u=i(27195),g=i(32848),p=i(47508),m=i(98031),f=i(84001),_=i(37227),v=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},C=function(e,t){return function(i,s){t(i,s,e)}};let E=class{static{s=this}static{this.ID="editor.contrib.contextmenu"}static get(e){return e.getContribution(s.ID)}constructor(e,t,i,s,r,o,c,l){this._contextMenuService=t,this._contextViewService=i,this._contextKeyService=s,this._keybindingService=r,this._menuService=o,this._configurationService=c,this._workspaceContextService=l,this._toDispose=new a.Cm,this._contextMenuIsBeingShownCount=0,this._editor=e,this._toDispose.add(this._editor.onContextMenu((e=>this._onContextMenu(e)))),this._toDispose.add(this._editor.onMouseWheel((e=>{if(this._contextMenuIsBeingShownCount>0){const t=this._contextViewService.getContextViewElement(),i=e.srcElement;i.shadowRoot&&n.jG(t)===i.shadowRoot||this._contextViewService.hideContextView()}}))),this._toDispose.add(this._editor.onKeyDown((e=>{this._editor.getOption(24)&&58===e.keyCode&&(e.preventDefault(),e.stopPropagation(),this.showContextMenu())})))}_onContextMenu(e){if(!this._editor.hasModel())return;if(!this._editor.getOption(24))return this._editor.focus(),void(e.target.position&&!this._editor.getSelection().containsPosition(e.target.position)&&this._editor.setPosition(e.target.position));if(12===e.target.type)return;if(6===e.target.type&&e.target.detail.injectedText)return;if(e.event.preventDefault(),e.event.stopPropagation(),11===e.target.type)return this._showScrollbarContextMenu(e.event);if(6!==e.target.type&&7!==e.target.type&&1!==e.target.type)return;if(this._editor.focus(),e.target.position){let t=!1;for(const i of this._editor.getSelections())if(i.containsPosition(e.target.position)){t=!0;break}t||this._editor.setPosition(e.target.position)}let t=null;1!==e.target.type&&(t=e.event),this.showContextMenu(t)}showContextMenu(e){if(!this._editor.getOption(24))return;if(!this._editor.hasModel())return;const t=this._getMenuActions(this._editor.getModel(),this._editor.contextMenuId);t.length>0&&this._doShowContextMenu(t,e)}_getMenuActions(e,t){const i=[],s=this._menuService.getMenuActions(t,this._contextKeyService,{arg:e.uri});for(const n of s){const[,t]=n;let s=0;for(const n of t)if(n instanceof u.nI){const t=this._getMenuActions(e,n.item.submenu);t.length>0&&(i.push(new o.YH(n.id,n.label,t)),s++)}else i.push(n),s++;s&&i.push(new o.wv)}return i.length&&i.pop(),i}_doShowContextMenu(e,t=null){if(!this._editor.hasModel())return;const i=this._editor.getOption(60);this._editor.updateOptions({hover:{enabled:!1}});let s=t;if(!s){this._editor.revealPosition(this._editor.getPosition(),1),this._editor.render();const e=this._editor.getScrolledVisiblePosition(this._editor.getPosition()),t=n.BK(this._editor.getDomNode()),i=t.left+e.left,r=t.top+e.top+e.height;s={x:i,y:r}}const o=this._editor.getOption(128)&&!c.un;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:o?this._editor.getOverflowWidgetsDomNode()??this._editor.getDomNode():void 0,getAnchor:()=>s,getActions:()=>e,getActionViewItem:e=>{const t=this._keybindingFor(e);if(t)return new r.Z4(e,e,{label:!0,keybinding:t.getLabel(),isMenu:!0});const i=e;return"function"===typeof i.getActionViewItem?i.getActionViewItem():new r.Z4(e,e,{icon:!0,label:!0,isMenu:!0})},getKeyBinding:e=>this._keybindingFor(e),onHide:e=>{this._contextMenuIsBeingShownCount--,this._editor.updateOptions({hover:i})}})}_showScrollbarContextMenu(e){if(!this._editor.hasModel())return;if((0,_.ct)(this._workspaceContextService.getWorkspace()))return;const t=this._editor.getOption(73);let i=0;const s=e=>({id:"menu-action-"+ ++i,label:e.label,tooltip:"",class:void 0,enabled:"undefined"===typeof e.enabled||e.enabled,checked:e.checked,run:e.run}),n=(e,t,n,r,a)=>{if(!t)return s({label:e,enabled:t,run:()=>{}});const c=e=>()=>{this._configurationService.updateValue(n,e)},l=[];for(const i of a)l.push(s({label:i.label,checked:r===i.value,run:c(i.value)}));return((e,t)=>new o.YH("menu-action-"+ ++i,e,t,void 0))(e,l)},r=[];r.push(s({label:d.kg("context.minimap.minimap","Minimap"),checked:t.enabled,run:()=>{this._configurationService.updateValue("editor.minimap.enabled",!t.enabled)}})),r.push(new o.wv),r.push(s({label:d.kg("context.minimap.renderCharacters","Render Characters"),enabled:t.enabled,checked:t.renderCharacters,run:()=>{this._configurationService.updateValue("editor.minimap.renderCharacters",!t.renderCharacters)}})),r.push(n(d.kg("context.minimap.size","Vertical size"),t.enabled,"editor.minimap.size",t.size,[{label:d.kg("context.minimap.size.proportional","Proportional"),value:"proportional"},{label:d.kg("context.minimap.size.fill","Fill"),value:"fill"},{label:d.kg("context.minimap.size.fit","Fit"),value:"fit"}])),r.push(n(d.kg("context.minimap.slider","Slider"),t.enabled,"editor.minimap.showSlider",t.showSlider,[{label:d.kg("context.minimap.slider.mouseover","Mouse Over"),value:"mouseover"},{label:d.kg("context.minimap.slider.always","Always"),value:"always"}]));const a=this._editor.getOption(128)&&!c.un;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:a?this._editor.getDomNode():void 0,getAnchor:()=>e,getActions:()=>r,onHide:e=>{this._contextMenuIsBeingShownCount--,this._editor.focus()}})}_keybindingFor(e){return this._keybindingService.lookupKeybinding(e.id)}dispose(){this._contextMenuIsBeingShownCount>0&&this._contextViewService.hideContextView(),this._toDispose.dispose()}};E=s=v([C(1,p.Z),C(2,p.l),C(3,g.fN),C(4,m.b),C(5,u.ez),C(6,f.pG),C(7,_.VR)],E);class b extends l.ks{constructor(){super({id:"editor.action.showContextMenu",label:d.kg("action.showContextMenu.label","Show Editor Context Menu"),alias:"Show Editor Context Menu",precondition:void 0,kbOpts:{kbExpr:h.R.textInputFocus,primary:1092,weight:100}})}run(e,t){E.get(t)?.showContextMenu()}}(0,l.HW)(E.ID,E,2),(0,l.Fl)(b)},32516:(e,t,i)=>{"use strict";var s=i(5662),n=i(31450),r=i(60002),o=i(78209);class a{constructor(e){this.selections=e}equals(e){const t=this.selections.length;if(t!==e.selections.length)return!1;for(let i=0;i<t;i++)if(!this.selections[i].equalsSelection(e.selections[i]))return!1;return!0}}class c{constructor(e,t,i){this.cursorState=e,this.scrollTop=t,this.scrollLeft=i}}class l extends s.jG{static{this.ID="editor.contrib.cursorUndoRedoController"}static get(e){return e.getContribution(l.ID)}constructor(e){super(),this._editor=e,this._isCursorUndoRedo=!1,this._undoStack=[],this._redoStack=[],this._register(e.onDidChangeModel((e=>{this._undoStack=[],this._redoStack=[]}))),this._register(e.onDidChangeModelContent((e=>{this._undoStack=[],this._redoStack=[]}))),this._register(e.onDidChangeCursorSelection((t=>{if(this._isCursorUndoRedo)return;if(!t.oldSelections)return;if(t.oldModelVersionId!==t.modelVersionId)return;const i=new a(t.oldSelections);this._undoStack.length>0&&this._undoStack[this._undoStack.length-1].cursorState.equals(i)||(this._undoStack.push(new c(i,e.getScrollTop(),e.getScrollLeft())),this._redoStack=[],this._undoStack.length>50&&this._undoStack.shift())})))}cursorUndo(){this._editor.hasModel()&&0!==this._undoStack.length&&(this._redoStack.push(new c(new a(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._undoStack.pop()))}cursorRedo(){this._editor.hasModel()&&0!==this._redoStack.length&&(this._undoStack.push(new c(new a(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._redoStack.pop()))}_applyState(e){this._isCursorUndoRedo=!0,this._editor.setSelections(e.cursorState.selections),this._editor.setScrollPosition({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),this._isCursorUndoRedo=!1}}class h extends n.ks{constructor(){super({id:"cursorUndo",label:o.kg("cursor.undo","Cursor Undo"),alias:"Cursor Undo",precondition:void 0,kbOpts:{kbExpr:r.R.textInputFocus,primary:2099,weight:100}})}run(e,t,i){l.get(t)?.cursorUndo()}}class d extends n.ks{constructor(){super({id:"cursorRedo",label:o.kg("cursor.redo","Cursor Redo"),alias:"Cursor Redo",precondition:void 0})}run(e,t,i){l.get(t)?.cursorRedo()}}(0,n.HW)(l.ID,l,0),(0,n.Fl)(h),(0,n.Fl)(d)},40800:(e,t,i)=>{"use strict";var s=i(25890),n=i(31308),r=i(34309),o=i(92368),a=i(56942),c=i(29999),l=i(5662),h=i(41234),d=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},u=function(e,t){return function(i,s){t(i,s,e)}};let g=class extends l.jG{constructor(e,t,i){super(),this._textModel=e,this._languageFeaturesService=t,this._outlineModelService=i,this._currentModel=(0,n.FY)(this,void 0);const s=(0,n.yQ)("documentSymbolProvider.onDidChange",this._languageFeaturesService.documentSymbolProvider.onDidChange),r=(0,n.yQ)("_textModel.onDidChangeContent",h.Jh.debounce((e=>this._textModel.onDidChangeContent(e)),(()=>{}),100));this._register((0,n.yC)((async(e,t)=>{s.read(e),r.read(e);const i=t.add(new o.MZ),n=await this._outlineModelService.getOrCreate(this._textModel,i.token);t.isDisposed||this._currentModel.set(n,void 0)})))}getBreadcrumbItems(e,t){const i=this._currentModel.read(t);if(!i)return[];const n=i.asListOfDocumentSymbols().filter((t=>e.contains(t.range.startLineNumber)&&!e.contains(t.range.endLineNumber)));return n.sort((0,s.Hw)((0,s.VE)((e=>e.range.endLineNumber-e.range.startLineNumber),s.U9))),n.map((e=>({name:e.name,kind:e.kind,startLineNumber:e.range.startLineNumber})))}};g=d([u(1,a.ILanguageFeaturesService),u(2,c.gW)],g),r.N.setBreadcrumbsSourceFactory(((e,t)=>t.createInstance(g,e)))},2183:(e,t,i)=>{"use strict";var s=i(5662),n=i(98067),r=i(31450),o=i(83069),a=i(36677),c=i(75326),l=i(87289);class h{constructor(e,t,i){this.selection=e,this.targetPosition=t,this.copy=i,this.targetSelection=null}getEditOperations(e,t){const i=e.getValueInRange(this.selection);this.copy||t.addEditOperation(this.selection,null),t.addEditOperation(new a.Q(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),i),!this.selection.containsPosition(this.targetPosition)||this.copy&&(this.selection.getEndPosition().equals(this.targetPosition)||this.selection.getStartPosition().equals(this.targetPosition))?this.copy?this.targetSelection=new c.L(this.targetPosition.lineNumber,this.targetPosition.column,this.selection.endLineNumber-this.selection.startLineNumber+this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.targetPosition.lineNumber>this.selection.endLineNumber?this.targetSelection=new c.L(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.targetPosition.lineNumber<this.selection.endLineNumber?this.targetSelection=new c.L(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber+this.selection.endLineNumber-this.selection.startLineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.selection.endColumn<=this.targetPosition.column?this.targetSelection=new c.L(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,(this.selection.startLineNumber,this.selection.endLineNumber,this.targetPosition.column-this.selection.endColumn+this.selection.startColumn),this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column:this.selection.endColumn):this.targetSelection=new c.L(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column+this.selection.endColumn-this.selection.startColumn):this.targetSelection=this.selection}computeCursorState(e,t){return this.targetSelection}}function d(e){return n.zx?e.altKey:e.ctrlKey}class u extends s.jG{static{this.ID="editor.contrib.dragAndDrop"}static{this.TRIGGER_KEY_VALUE=n.zx?6:5}constructor(e){super(),this._editor=e,this._dndDecorationIds=this._editor.createDecorationsCollection(),this._register(this._editor.onMouseDown((e=>this._onEditorMouseDown(e)))),this._register(this._editor.onMouseUp((e=>this._onEditorMouseUp(e)))),this._register(this._editor.onMouseDrag((e=>this._onEditorMouseDrag(e)))),this._register(this._editor.onMouseDrop((e=>this._onEditorMouseDrop(e)))),this._register(this._editor.onMouseDropCanceled((()=>this._onEditorMouseDropCanceled()))),this._register(this._editor.onKeyDown((e=>this.onEditorKeyDown(e)))),this._register(this._editor.onKeyUp((e=>this.onEditorKeyUp(e)))),this._register(this._editor.onDidBlurEditorWidget((()=>this.onEditorBlur()))),this._register(this._editor.onDidBlurEditorText((()=>this.onEditorBlur()))),this._mouseDown=!1,this._modifierPressed=!1,this._dragSelection=null}onEditorBlur(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1}onEditorKeyDown(e){this._editor.getOption(35)&&!this._editor.getOption(22)&&(d(e)&&(this._modifierPressed=!0),this._mouseDown&&d(e)&&this._editor.updateOptions({mouseStyle:"copy"}))}onEditorKeyUp(e){this._editor.getOption(35)&&!this._editor.getOption(22)&&(d(e)&&(this._modifierPressed=!1),this._mouseDown&&e.keyCode===u.TRIGGER_KEY_VALUE&&this._editor.updateOptions({mouseStyle:"default"}))}_onEditorMouseDown(e){this._mouseDown=!0}_onEditorMouseUp(e){this._mouseDown=!1,this._editor.updateOptions({mouseStyle:"text"})}_onEditorMouseDrag(e){const t=e.target;if(null===this._dragSelection){const e=(this._editor.getSelections()||[]).filter((e=>t.position&&e.containsPosition(t.position)));if(1!==e.length)return;this._dragSelection=e[0]}d(e.event)?this._editor.updateOptions({mouseStyle:"copy"}):this._editor.updateOptions({mouseStyle:"default"}),t.position&&(this._dragSelection.containsPosition(t.position)?this._removeDecoration():this.showAt(t.position))}_onEditorMouseDropCanceled(){this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}_onEditorMouseDrop(e){if(e.target&&(this._hitContent(e.target)||this._hitMargin(e.target))&&e.target.position){const t=new o.y(e.target.position.lineNumber,e.target.position.column);if(null===this._dragSelection){let i=null;if(e.event.shiftKey){const e=this._editor.getSelection();if(e){const{selectionStartLineNumber:s,selectionStartColumn:n}=e;i=[new c.L(s,n,t.lineNumber,t.column)]}}else i=(this._editor.getSelections()||[]).map((e=>e.containsPosition(t)?new c.L(t.lineNumber,t.column,t.lineNumber,t.column):e));this._editor.setSelections(i||[],"mouse",3)}else(!this._dragSelection.containsPosition(t)||(d(e.event)||this._modifierPressed)&&(this._dragSelection.getEndPosition().equals(t)||this._dragSelection.getStartPosition().equals(t)))&&(this._editor.pushUndoStop(),this._editor.executeCommand(u.ID,new h(this._dragSelection,t,d(e.event)||this._modifierPressed)),this._editor.pushUndoStop())}this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}static{this._DECORATION_OPTIONS=l.kI.register({description:"dnd-target",className:"dnd-target"})}showAt(e){this._dndDecorationIds.set([{range:new a.Q(e.lineNumber,e.column,e.lineNumber,e.column),options:u._DECORATION_OPTIONS}]),this._editor.revealPosition(e,1)}_removeDecoration(){this._dndDecorationIds.clear()}_hitContent(e){return 6===e.type||7===e.type}_hitMargin(e){return 2===e.type||3===e.type||4===e.type}dispose(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1,super.dispose()}}(0,r.HW)(u.ID,u,2)},58568:(e,t,i)=>{"use strict";var s=i(18447),n=i(631),r=i(79400),o=i(18938),a=i(29999);i(50091).w.registerCommand("_executeDocumentSymbolProvider",(async function(e,...t){const[i]=t;(0,n.j)(r.r.isUri(i));const c=e.get(a.gW),l=e.get(o.ITextModelService),h=await l.createModelReference(i);try{return(await c.getOrCreate(h.object.textEditorModel,s.XO.None)).getTopLevelSymbols()}finally{h.dispose()}}))},29999:(e,t,i)=>{"use strict";i.d(t,{LC:()=>C,e0:()=>E,gW:()=>S,i9:()=>b});var s=i(25890),n=i(18447),r=i(64383),o=i(42522),a=i(74320),c=i(83069),l=i(36677),h=i(32500),d=i(63591),u=i(14718),g=i(23750),p=i(5662),m=i(56942),f=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},_=function(e,t){return function(i,s){t(i,s,e)}};class v{remove(){this.parent?.children.delete(this.id)}static findId(e,t){let i;"string"===typeof e?i=`${t.id}/${e}`:(i=`${t.id}/${e.name}`,void 0!==t.children.get(i)&&(i=`${t.id}/${e.name}_${e.range.startLineNumber}_${e.range.startColumn}`));let s=i;for(let n=0;void 0!==t.children.get(s);n++)s=`${i}_${n}`;return s}static empty(e){return 0===e.children.size}}class C extends v{constructor(e,t,i){super(),this.id=e,this.parent=t,this.symbol=i,this.children=new Map}}class E extends v{constructor(e,t,i,s){super(),this.id=e,this.parent=t,this.label=i,this.order=s,this.children=new Map}}class b extends v{static create(e,t,i){const o=new n.Qi(i),a=new b(t.uri),c=e.ordered(t),l=c.map(((e,i)=>{const s=v.findId(`provider_${i}`,a),n=new E(s,a,e.displayName??"Unknown Outline Provider",i);return Promise.resolve(e.provideDocumentSymbols(t,o.token)).then((e=>{for(const t of e||[])b._makeOutlineElement(t,n);return n}),(e=>((0,r.M_)(e),n))).then((e=>{v.empty(e)?e.remove():a._groups.set(s,e)}))})),h=e.onDidChange((()=>{const i=e.ordered(t);(0,s.aI)(i,c)||o.cancel()}));return Promise.all(l).then((()=>o.token.isCancellationRequested&&!i.isCancellationRequested?b.create(e,t,i):a._compact())).finally((()=>{o.dispose(),h.dispose(),o.dispose()}))}static _makeOutlineElement(e,t){const i=v.findId(e,t),s=new C(i,t,e);if(e.children)for(const n of e.children)b._makeOutlineElement(n,s);t.children.set(s.id,s)}constructor(e){super(),this.uri=e,this.id="root",this.parent=void 0,this._groups=new Map,this.children=new Map,this.id="root",this.parent=void 0}_compact(){let e=0;for(const[t,i]of this._groups)0===i.children.size?this._groups.delete(t):e+=1;if(1!==e)this.children=this._groups;else{const e=o.f.first(this._groups.values());for(const[,t]of e.children)t.parent=this,this.children.set(t.id,t)}return this}getTopLevelSymbols(){const e=[];for(const t of this.children.values())t instanceof C?e.push(t.symbol):e.push(...o.f.map(t.children.values(),(e=>e.symbol)));return e.sort(((e,t)=>l.Q.compareRangesUsingStarts(e.range,t.range)))}asListOfDocumentSymbols(){const e=this.getTopLevelSymbols(),t=[];return b._flattenDocumentSymbols(t,e,""),t.sort(((e,t)=>c.y.compare(l.Q.getStartPosition(e.range),l.Q.getStartPosition(t.range))||c.y.compare(l.Q.getEndPosition(t.range),l.Q.getEndPosition(e.range))))}static _flattenDocumentSymbols(e,t,i){for(const s of t)e.push({kind:s.kind,tags:s.tags,name:s.name,detail:s.detail,containerName:s.containerName||i,range:s.range,selectionRange:s.selectionRange,children:void 0}),s.children&&b._flattenDocumentSymbols(e,s.children,s.name)}}const S=(0,d.u1)("IOutlineModelService");let y=class{constructor(e,t,i){this._languageFeaturesService=e,this._disposables=new p.Cm,this._cache=new a.qK(10,.7),this._debounceInformation=t.for(e.documentSymbolProvider,"DocumentSymbols",{min:350}),this._disposables.add(i.onModelRemoved((e=>{this._cache.delete(e.id)})))}dispose(){this._disposables.dispose()}async getOrCreate(e,t){const i=this._languageFeaturesService.documentSymbolProvider,r=i.ordered(e);let o=this._cache.get(e.id);if(!o||o.versionId!==e.getVersionId()||!(0,s.aI)(o.provider,r)){const t=new n.Qi;o={versionId:e.getVersionId(),provider:r,promiseCnt:0,source:t,promise:b.create(i,e,t.token),model:void 0},this._cache.set(e.id,o);const s=Date.now();o.promise.then((t=>{o.model=t,this._debounceInformation.update(e,Date.now()-s)})).catch((t=>{this._cache.delete(e.id)}))}if(o.model)return o.model;o.promiseCnt+=1;const a=t.onCancellationRequested((()=>{0===--o.promiseCnt&&(o.source.cancel(),this._cache.delete(e.id))}));try{return await o.promise}finally{a.dispose()}}};y=f([_(0,m.ILanguageFeaturesService),_(1,h.ILanguageFeatureDebounceService),_(2,g.IModelService)],y),(0,u.v)(S,y,1)},63867:(e,t,i)=>{"use strict";var s=i(8995),n=i(31450),r=i(60002),o=i(72466),a=i(55433),c=i(90208),l=i(78209);(0,n.HW)(a.Rj.ID,a.Rj,0),(0,o.x)(c.L9),(0,n.E_)(new class extends n.DX{constructor(){super({id:a.qs,precondition:a.lr,kbOpts:{weight:100,primary:2137}})}runEditorCommand(e,t){return a.Rj.get(t)?.changePasteType()}}),(0,n.E_)(new class extends n.DX{constructor(){super({id:"editor.hidePasteWidget",precondition:a.lr,kbOpts:{weight:100,primary:9}})}runEditorCommand(e,t){a.Rj.get(t)?.clearWidgets()}}),(0,n.Fl)(class e extends n.ks{static{this.argsSchema={type:"object",properties:{kind:{type:"string",description:l.kg("pasteAs.kind","The kind of the paste edit to try applying. If not provided or there are multiple edits for this kind, the editor will show a picker.")}}}}constructor(){super({id:"editor.action.pasteAs",label:l.kg("pasteAs","Paste As..."),alias:"Paste As...",precondition:r.R.writable,metadata:{description:"Paste as",args:[{name:"args",schema:e.argsSchema}]}})}run(e,t,i){let n="string"===typeof i?.kind?i.kind:void 0;return!n&&i&&(n="string"===typeof i.id?i.id:void 0),a.Rj.get(t)?.pasteAs(n?new s.k(n):void 0)}}),(0,n.Fl)(class extends n.ks{constructor(){super({id:"editor.action.pasteAsText",label:l.kg("pasteAsText","Paste as Text"),alias:"Paste as Text",precondition:r.R.writable})}run(e,t){return a.Rj.get(t)?.pasteAs({providerId:c.LR.id})}})},55433:(e,t,i)=>{"use strict";i.d(t,{Rj:()=>U,lr:()=>P,qs:()=>M});var s,n=i(8597),r=i(25890),o=i(90766),a=i(18447),c=i(17799),l=i(8995),h=i(5662),d=i(44320),u=i(98067),g=i(58255),p=i(68792),m=i(85411),f=i(80537),_=i(36677),v=i(62083),C=i(56942),E=i(90208),b=i(85541),S=i(50868),y=i(9948),w=i(99645),R=i(78209),L=i(54770),T=i(32848),x=i(63591),k=i(73823),A=i(51467),N=i(56687),I=i(64383),O=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},D=function(e,t){return function(i,s){t(i,s,e)}};const M="editor.changePasteType",P=new T.N1("pasteWidgetVisible",!1,(0,R.kg)("pasteWidgetVisible","Whether the paste widget is showing")),F="application/vnd.code.copyMetadata";let U=class extends h.jG{static{s=this}static{this.ID="editor.contrib.copyPasteActionController"}static get(e){return e.getContribution(s.ID)}constructor(e,t,i,s,r,o,a){super(),this._bulkEditService=i,this._clipboardService=s,this._languageFeaturesService=r,this._quickInputService=o,this._progressService=a,this._editor=e;const c=e.getContainerDomNode();this._register((0,n.ko)(c,"copy",(e=>this.handleCopy(e)))),this._register((0,n.ko)(c,"cut",(e=>this.handleCopy(e)))),this._register((0,n.ko)(c,"paste",(e=>this.handlePaste(e)),!0)),this._pasteProgressManager=this._register(new y.I("pasteIntoEditor",e,t)),this._postPasteWidgetManager=this._register(t.createInstance(N.G,"pasteIntoEditor",e,P,{id:M,label:(0,R.kg)("postPasteWidgetTitle","Show paste options...")}))}changePasteType(){this._postPasteWidgetManager.tryShowSelector()}pasteAs(e){this._editor.focus();try{this._pasteAsActionContext={preferred:e},(0,n.a)().execCommand("paste")}finally{this._pasteAsActionContext=void 0}}clearWidgets(){this._postPasteWidgetManager.clear()}isPasteAsEnabled(){return this._editor.getOption(85).enabled}async finishedPaste(){await this._currentPasteOperation}handleCopy(e){if(!this._editor.hasTextFocus())return;if(this._clipboardService.clearInternalState?.(),!e.clipboardData||!this.isPasteAsEnabled())return;const t=this._editor.getModel(),i=this._editor.getSelections();if(!t||!i?.length)return;const n=this._editor.getOption(37);let a=i;const c=1===i.length&&i[0].isEmpty();if(c){if(!n)return;a=[new _.Q(a[0].startLineNumber,1,a[0].startLineNumber,1+t.getLineLength(a[0].startLineNumber))]}const l=this._editor._getViewModel()?.getPlainTextToCopy(i,n,u.uF),h={multicursorText:Array.isArray(l)?l:null,pasteOnNewLine:c,mode:null},d=this._languageFeaturesService.documentPasteEditProvider.ordered(t).filter((e=>!!e.prepareDocumentPaste));if(!d.length)return void this.setCopyMetadata(e.clipboardData,{defaultPastePayload:h});const p=(0,m.q)(e.clipboardData),f=d.flatMap((e=>e.copyMimeTypes??[])),v=(0,g.b)();this.setCopyMetadata(e.clipboardData,{id:v,providerCopyMimeTypes:f,defaultPastePayload:h});const C=(0,o.SS)((async e=>{const i=(0,r.Yc)(await Promise.all(d.map((async i=>{try{return await i.prepareDocumentPaste(t,a,p,e)}catch(s){return void console.error(s)}}))));i.reverse();for(const t of i)for(const[e,i]of t)p.replace(e,i);return p}));s._currentCopyOperation?.dataTransferPromise.cancel(),s._currentCopyOperation={handle:v,dataTransferPromise:C}}async handlePaste(e){if(!e.clipboardData||!this._editor.hasTextFocus())return;w.k.get(this._editor)?.closeMessage(),this._currentPasteOperation?.cancel(),this._currentPasteOperation=void 0;const t=this._editor.getModel(),i=this._editor.getSelections();if(!i?.length||!t)return;if(this._editor.getOption(92)||!this.isPasteAsEnabled()&&!this._pasteAsActionContext)return;const s=this.fetchCopyMetadata(e),n=(0,m.l)(e.clipboardData);n.delete(F);const r=[...e.clipboardData.types,...s?.providerCopyMimeTypes??[],d.K.uriList],o=this._languageFeaturesService.documentPasteEditProvider.ordered(t).filter((e=>{const t=this._pasteAsActionContext?.preferred;return!(t&&e.providedPasteEditKinds&&!this.providerMatchesPreference(e,t))&&e.pasteMimeTypes?.some((e=>(0,c.Y)(e,r)))}));o.length?(e.preventDefault(),e.stopImmediatePropagation(),this._pasteAsActionContext?this.showPasteAsPick(this._pasteAsActionContext.preferred,o,i,n,s):this.doPasteInline(o,i,n,s,e)):this._pasteAsActionContext?.preferred&&this.showPasteAsNoEditMessage(i,this._pasteAsActionContext.preferred)}showPasteAsNoEditMessage(e,t){w.k.get(this._editor)?.showMessage((0,R.kg)("pasteAsError","No paste edits for '{0}' found",t instanceof l.k?t.value:t.providerId),e[0].getStartPosition())}doPasteInline(e,t,i,s,n){const r=this._editor;if(!r.hasModel())return;const c=new S.gI(r,3,void 0),l=(0,o.SS)((async r=>{const d=this._editor;if(!d.hasModel())return;const u=d.getModel(),g=new h.Cm,p=g.add(new a.Qi(r));g.add(c.token.onCancellationRequested((()=>p.cancel())));const m=p.token;try{if(await this.mergeInDataFromCopy(i,s,m),m.isCancellationRequested)return;const r=e.filter((e=>this.isSupportedPasteProvider(e,i)));if(!r.length||1===r.length&&r[0]instanceof E.LR)return this.applyDefaultPasteHandler(i,s,m,n);const a={triggerKind:v.FX.Automatic},c=await this.getPasteEdits(r,i,u,t,a,m);if(g.add(c),m.isCancellationRequested)return;if(1===c.edits.length&&c.edits[0].provider instanceof E.LR)return this.applyDefaultPasteHandler(i,s,m,n);if(c.edits.length){const e="afterPaste"===d.getOption(85).showPasteSelector;return this._postPasteWidgetManager.applyEditAndShowIfNeeded(t,{activeEditIndex:0,allEdits:c.edits},e,((e,i)=>new Promise(((s,n)=>{(async()=>{try{const r=e.provider.resolveDocumentPasteEdit?.(e,i),a=new o.Zv,c=r&&await this._pasteProgressManager.showWhile(t[0].getEndPosition(),(0,R.kg)("resolveProcess","Resolving paste edit. Click to cancel"),Promise.race([a.p,r]),{cancel:()=>(a.cancel(),n(new I.AL))},0);return c&&(e.additionalEdit=c.additionalEdit),s(e)}catch(r){return n(r)}})()}))),m)}await this.applyDefaultPasteHandler(i,s,m,n)}finally{g.dispose(),this._currentPasteOperation===l&&(this._currentPasteOperation=void 0)}}));this._pasteProgressManager.showWhile(t[0].getEndPosition(),(0,R.kg)("pasteIntoEditorProgress","Running paste handlers. Click to cancel and do basic paste"),l,{cancel:async()=>{try{if(l.cancel(),c.token.isCancellationRequested)return;await this.applyDefaultPasteHandler(i,s,c.token,n)}finally{c.dispose()}}}).then((()=>{c.dispose()})),this._currentPasteOperation=l}showPasteAsPick(e,t,i,s,n){const r=(0,o.SS)((async o=>{const a=this._editor;if(!a.hasModel())return;const c=a.getModel(),d=new h.Cm,u=d.add(new S.gI(a,3,void 0,o));try{if(await this.mergeInDataFromCopy(s,n,u.token),u.token.isCancellationRequested)return;let r=t.filter((t=>this.isSupportedPasteProvider(t,s,e)));e&&(r=r.filter((t=>this.providerMatchesPreference(t,e))));const o={triggerKind:v.FX.PasteAs,only:e&&e instanceof l.k?e:void 0};let a,h=d.add(await this.getPasteEdits(r,s,c,i,o,u.token));if(u.token.isCancellationRequested)return;if(e&&(h={edits:h.edits.filter((t=>e instanceof l.k?e.contains(t.kind):e.providerId===t.provider.id)),dispose:h.dispose}),!h.edits.length)return void(o.only&&this.showPasteAsNoEditMessage(i,o.only));if(e)a=h.edits.at(0);else{const e=await this._quickInputService.pick(h.edits.map((e=>({label:e.title,description:e.kind?.value,edit:e}))),{placeHolder:(0,R.kg)("pasteAsPickerPlaceholder","Select Paste Action")});a=e?.edit}if(!a)return;const g=(0,b.v)(c.uri,i,a);await this._bulkEditService.apply(g,{editor:this._editor})}finally{d.dispose(),this._currentPasteOperation===r&&(this._currentPasteOperation=void 0)}}));this._progressService.withProgress({location:10,title:(0,R.kg)("pasteAsProgress","Running paste handlers")},(()=>r))}setCopyMetadata(e,t){e.setData(F,JSON.stringify(t))}fetchCopyMetadata(e){if(!e.clipboardData)return;const t=e.clipboardData.getData(F);if(t)try{return JSON.parse(t)}catch{return}const[i,s]=p.Mz.getTextData(e.clipboardData);return s?{defaultPastePayload:{mode:s.mode,multicursorText:s.multicursorText??null,pasteOnNewLine:!!s.isFromEmptySelection}}:void 0}async mergeInDataFromCopy(e,t,i){if(t?.id&&s._currentCopyOperation?.handle===t.id){const t=await s._currentCopyOperation.dataTransferPromise;if(i.isCancellationRequested)return;for(const[i,s]of t)e.replace(i,s)}if(!e.has(d.K.uriList)){const t=await this._clipboardService.readResources();if(i.isCancellationRequested)return;t.length&&e.append(d.K.uriList,(0,c.gf)(c.jt.create(t)))}}async getPasteEdits(e,t,i,s,n,a){const c=new h.Cm,l=await(0,o.PK)(Promise.all(e.map((async e=>{try{const r=await(e.provideDocumentPasteEdits?.(i,s,t,n,a));return r&&c.add(r),r?.edits?.map((t=>({...t,provider:e})))}catch(r){return void((0,I.MB)(r)||console.error(r))}}))),a),d=(0,r.Yc)(l??[]).flat().filter((e=>!n.only||n.only.contains(e.kind)));return{edits:(0,b.H)(d),dispose:()=>c.dispose()}}async applyDefaultPasteHandler(e,t,i,s){const n=e.get(d.K.text)??e.get("text"),r=await(n?.asString())??"";if(i.isCancellationRequested)return;const o={clipboardEvent:s,text:r,pasteOnNewLine:t?.defaultPastePayload.pasteOnNewLine??!1,multicursorText:t?.defaultPastePayload.multicursorText??null,mode:null};this._editor.trigger("keyboard","paste",o)}isSupportedPasteProvider(e,t,i){return!!e.pasteMimeTypes?.some((e=>t.matches(e)))&&(!i||this.providerMatchesPreference(e,i))}providerMatchesPreference(e,t){return t instanceof l.k?!e.providedPasteEditKinds||e.providedPasteEditKinds.some((e=>t.contains(e))):e.id===t.providerId}};U=s=O([D(1,x._Y),D(2,f.nu),D(3,L.h),D(4,C.ILanguageFeaturesService),D(5,A.GK),D(6,k.G5)],U)},90208:(e,t,i)=>{"use strict";i.d(t,{L9:()=>w,LR:()=>v,ZR:()=>y});var s=i(25890),n=i(17799),r=i(8995),o=i(5662),a=i(44320),c=i(36456),l=i(89403),h=i(79400),d=i(62083),u=i(56942),g=i(78209),p=i(37227),m=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},f=function(e,t){return function(i,s){t(i,s,e)}};class _{async provideDocumentPasteEdits(e,t,i,s,n){const r=await this.getEdit(i,n);if(r)return{edits:[{insertText:r.insertText,title:r.title,kind:r.kind,handledMimeType:r.handledMimeType,yieldTo:r.yieldTo}],dispose(){}}}async provideDocumentDropEdits(e,t,i,s){const n=await this.getEdit(i,s);if(n)return{edits:[{insertText:n.insertText,title:n.title,kind:n.kind,handledMimeType:n.handledMimeType,yieldTo:n.yieldTo}],dispose(){}}}}class v extends _{constructor(){super(...arguments),this.kind=v.kind,this.dropMimeTypes=[a.K.text],this.pasteMimeTypes=[a.K.text]}static{this.id="text"}static{this.kind=new r.k("text.plain")}async getEdit(e,t){const i=e.get(a.K.text);if(!i)return;if(e.has(a.K.uriList))return;const s=await i.asString();return{handledMimeType:a.K.text,title:(0,g.kg)("text.label","Insert Plain Text"),insertText:s,kind:this.kind}}}class C extends _{constructor(){super(...arguments),this.kind=new r.k("uri.absolute"),this.dropMimeTypes=[a.K.uriList],this.pasteMimeTypes=[a.K.uriList]}async getEdit(e,t){const i=await S(e);if(!i.length||t.isCancellationRequested)return;let s=0;const n=i.map((({uri:e,originalText:t})=>e.scheme===c.ny.file?e.fsPath:(s++,t))).join(" ");let r;return r=s>0?i.length>1?(0,g.kg)("defaultDropProvider.uriList.uris","Insert Uris"):(0,g.kg)("defaultDropProvider.uriList.uri","Insert Uri"):i.length>1?(0,g.kg)("defaultDropProvider.uriList.paths","Insert Paths"):(0,g.kg)("defaultDropProvider.uriList.path","Insert Path"),{handledMimeType:a.K.uriList,insertText:n,title:r,kind:this.kind}}}let E=class extends _{constructor(e){super(),this._workspaceContextService=e,this.kind=new r.k("uri.relative"),this.dropMimeTypes=[a.K.uriList],this.pasteMimeTypes=[a.K.uriList]}async getEdit(e,t){const i=await S(e);if(!i.length||t.isCancellationRequested)return;const n=(0,s.Yc)(i.map((({uri:e})=>{const t=this._workspaceContextService.getWorkspaceFolder(e);return t?(0,l.iZ)(t.uri,e):void 0})));return n.length?{handledMimeType:a.K.uriList,insertText:n.join(" "),title:i.length>1?(0,g.kg)("defaultDropProvider.uriList.relativePaths","Insert Relative Paths"):(0,g.kg)("defaultDropProvider.uriList.relativePath","Insert Relative Path"),kind:this.kind}:void 0}};E=m([f(0,p.VR)],E);class b{constructor(){this.kind=new r.k("html"),this.pasteMimeTypes=["text/html"],this._yieldTo=[{mimeType:a.K.text}]}async provideDocumentPasteEdits(e,t,i,s,n){if(s.triggerKind!==d.FX.PasteAs&&!s.only?.contains(this.kind))return;const r=i.get("text/html"),o=await(r?.asString());return o&&!n.isCancellationRequested?{dispose(){},edits:[{insertText:o,yieldTo:this._yieldTo,title:(0,g.kg)("pasteHtmlLabel","Insert HTML"),kind:this.kind}]}:void 0}}async function S(e){const t=e.get(a.K.uriList);if(!t)return[];const i=await t.asString(),s=[];for(const r of n.jt.parse(i))try{s.push({uri:h.r.parse(r),originalText:r})}catch{}return s}let y=class extends o.jG{constructor(e,t){super(),this._register(e.documentDropEditProvider.register("*",new v)),this._register(e.documentDropEditProvider.register("*",new C)),this._register(e.documentDropEditProvider.register("*",new E(t)))}};y=m([f(0,u.ILanguageFeaturesService),f(1,p.VR)],y);let w=class extends o.jG{constructor(e,t){super(),this._register(e.documentPasteEditProvider.register("*",new v)),this._register(e.documentPasteEditProvider.register("*",new C)),this._register(e.documentPasteEditProvider.register("*",new E(t))),this._register(e.documentPasteEditProvider.register("*",new b))}};w=m([f(0,u.ILanguageFeaturesService),f(1,p.VR)],w)},61731:(e,t,i)=>{"use strict";var s,n=i(31450),r=i(94371),o=i(72466),a=i(90208),c=i(78209),l=i(1646),h=i(46359),d=i(25890),u=i(90766),g=i(17799),p=i(8995),m=i(5662),f=i(85411),_=i(36677),v=i(56942),C=i(36723),E=i(29100),b=i(50868),S=i(9948),y=i(84001),w=i(32848),R=i(61292),L=i(63591),T=i(85541),x=i(56687),k=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},A=function(e,t){return function(i,s){t(i,s,e)}};const N="editor.experimental.dropIntoEditor.defaultProvider",I="editor.changeDropType",O=new w.N1("dropWidgetVisible",!1,(0,c.kg)("dropWidgetVisible","Whether the drop widget is showing"));let D=class extends m.jG{static{s=this}static{this.ID="editor.contrib.dropIntoEditorController"}static get(e){return e.getContribution(s.ID)}constructor(e,t,i,s,n){super(),this._configService=i,this._languageFeaturesService=s,this._treeViewsDragAndDropService=n,this.treeItemsTransfer=R.PD.getInstance(),this._dropProgressManager=this._register(t.createInstance(S.I,"dropIntoEditor",e)),this._postDropWidgetManager=this._register(t.createInstance(x.G,"dropIntoEditor",e,O,{id:I,label:(0,c.kg)("postDropWidgetTitle","Show drop options...")})),this._register(e.onDropIntoEditor((t=>this.onDropIntoEditor(e,t.position,t.event))))}clearWidgets(){this._postDropWidgetManager.clear()}changeDropType(){this._postDropWidgetManager.tryShowSelector()}async onDropIntoEditor(e,t,i){if(!i.dataTransfer||!e.hasModel())return;this._currentOperation?.cancel(),e.focus(),e.setPosition(t);const s=(0,u.SS)((async n=>{const r=new m.Cm,o=r.add(new b.gI(e,1,void 0,n));try{const s=await this.extractDataTransferData(i);if(0===s.size||o.token.isCancellationRequested)return;const a=e.getModel();if(!a)return;const c=this._languageFeaturesService.documentDropEditProvider.ordered(a).filter((e=>!e.dropMimeTypes||e.dropMimeTypes.some((e=>s.matches(e))))),l=r.add(await this.getDropEdits(c,a,t,s,o));if(o.token.isCancellationRequested)return;if(l.edits.length){const i=this.getInitialActiveEditIndex(a,l.edits),s="afterDrop"===e.getOption(36).showDropSelector;await this._postDropWidgetManager.applyEditAndShowIfNeeded([_.Q.fromPositions(t)],{activeEditIndex:i,allEdits:l.edits},s,(async e=>e),n)}}finally{r.dispose(),this._currentOperation===s&&(this._currentOperation=void 0)}}));this._dropProgressManager.showWhile(t,(0,c.kg)("dropIntoEditorProgress","Running drop handlers. Click to cancel"),s,{cancel:()=>s.cancel()}),this._currentOperation=s}async getDropEdits(e,t,i,s,n){const r=new m.Cm,o=await(0,u.PK)(Promise.all(e.map((async e=>{try{const o=await e.provideDocumentDropEdits(t,i,s,n.token);return o&&r.add(o),o?.edits.map((t=>({...t,providerId:e.id})))}catch(o){console.error(o)}}))),n.token),a=(0,d.Yc)(o??[]).flat();return{edits:(0,T.H)(a),dispose:()=>r.dispose()}}getInitialActiveEditIndex(e,t){const i=this._configService.getValue(N,{resource:e.uri});for(const[s,n]of Object.entries(i)){const e=new p.k(n),i=t.findIndex((t=>e.value===t.providerId&&t.handledMimeType&&(0,g.Y)(s,[t.handledMimeType])));if(i>=0)return i}return 0}async extractDataTransferData(e){if(!e.dataTransfer)return new g.Vq;const t=(0,f.l)(e.dataTransfer);if(this.treeItemsTransfer.hasData(C.DraggedTreeItemsIdentifier.prototype)){const e=this.treeItemsTransfer.getData(C.DraggedTreeItemsIdentifier.prototype);if(Array.isArray(e))for(const i of e){const e=await this._treeViewsDragAndDropService.removeDragOperationTransfer(i.identifier);if(e)for(const[i,s]of e)t.replace(i,s)}}return t}};D=s=k([A(1,L._Y),A(2,y.pG),A(3,v.ILanguageFeaturesService),A(4,E.ITreeViewsDnDService)],D),(0,n.HW)(D.ID,D,2),(0,o.x)(a.ZR),(0,n.E_)(new class extends n.DX{constructor(){super({id:I,precondition:O,kbOpts:{weight:100,primary:2137}})}runEditorCommand(e,t,i){D.get(t)?.changeDropType()}}),(0,n.E_)(new class extends n.DX{constructor(){super({id:"editor.hideDropWidget",precondition:O,kbOpts:{weight:100,primary:9}})}runEditorCommand(e,t,i){D.get(t)?.clearWidgets()}}),h.O.as(l.Fd.Configuration).registerConfiguration({...r.JJ,properties:{[N]:{type:"object",scope:5,description:c.kg("defaultProviderDescription","Configures the default drop provider to use for content of a given mime type."),default:{},additionalProperties:{type:"string"}}}})},85541:(e,t,i)=>{"use strict";i.d(t,{H:()=>o,v:()=>r});var s=i(80537),n=i(29319);function r(e,t,i){return("string"===typeof i.insertText?""===i.insertText:""===i.insertText.snippet)?{edits:i.additionalEdit?.edits??[]}:{edits:[...t.map((t=>new s.cw(e,{range:t,text:"string"===typeof i.insertText?n.fr.escape(i.insertText)+"$0":i.insertText.snippet,insertAsSnippet:!0}))),...i.additionalEdit?.edits??[]]}}function o(e){function t(e,t){return"mimeType"in e?e.mimeType===t.handledMimeType:!!t.kind&&e.kind.contains(t.kind)}const i=new Map;for(const r of e)for(const s of r.yieldTo??[])for(const n of e)if(n!==r&&t(s,n)){let e=i.get(r);e||(e=[],i.set(r,e)),e.push(n)}if(!i.size)return Array.from(e);const s=new Set,n=[];return function e(t){if(!t.length)return[];const r=t[0];if(n.includes(r))return console.warn("Yield to cycle detected",r),t;if(s.has(r))return e(t.slice(1));let o=[];const a=i.get(r);return a&&(n.push(r),o=e(a),n.pop()),s.add(r),[...o,r,...e(t.slice(1))]}(Array.from(e))}},56687:(e,t,i)=>{"use strict";i.d(t,{G:()=>S});var s,n=i(8597),r=i(62890),o=i(36921),a=i(70125),c=i(64383),l=i(41234),h=i(5662),d=i(80537),u=i(85541),g=i(78209),p=i(32848),m=i(47508),f=i(63591),_=i(98031),v=i(58591),C=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},E=function(e,t){return function(i,s){t(i,s,e)}};let b=class extends h.jG{static{s=this}static{this.baseId="editor.widget.postEditWidget"}constructor(e,t,i,s,n,r,o,a,c,d){super(),this.typeId=e,this.editor=t,this.showCommand=s,this.range=n,this.edits=r,this.onSelectNewEdit=o,this._contextMenuService=a,this._keybindingService=d,this.allowEditorOverflow=!0,this.suppressMouseDown=!0,this.create(),this.visibleContext=i.bindTo(c),this.visibleContext.set(!0),this._register((0,h.s)((()=>this.visibleContext.reset()))),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this),this._register((0,h.s)((()=>this.editor.removeContentWidget(this)))),this._register(this.editor.onDidChangeCursorPosition((e=>{n.containsPosition(e.position)||this.dispose()}))),this._register(l.Jh.runAndSubscribe(d.onDidUpdateKeybindings,(()=>{this._updateButtonTitle()})))}_updateButtonTitle(){const e=this._keybindingService.lookupKeybinding(this.showCommand.id)?.getLabel();this.button.element.title=this.showCommand.label+(e?` (${e})`:"")}create(){this.domNode=n.$(".post-edit-widget"),this.button=this._register(new r.$(this.domNode,{supportIcons:!0})),this.button.label="$(insert)",this._register(n.ko(this.domNode,n.Bx.CLICK,(()=>this.showSelector())))}getId(){return s.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:this.range.getEndPosition(),preference:[2]}}showSelector(){this._contextMenuService.showContextMenu({getAnchor:()=>{const e=n.BK(this.button.element);return{x:e.left+e.width,y:e.top+e.height}},getActions:()=>this.edits.allEdits.map(((e,t)=>(0,o.ih)({id:"",label:e.title,checked:t===this.edits.activeEditIndex,run:()=>{if(t!==this.edits.activeEditIndex)return this.onSelectNewEdit(t)}})))})}};b=s=C([E(7,m.Z),E(8,p.fN),E(9,_.b)],b);let S=class extends h.jG{constructor(e,t,i,s,n,r,o){super(),this._id=e,this._editor=t,this._visibleContext=i,this._showCommand=s,this._instantiationService=n,this._bulkEditService=r,this._notificationService=o,this._currentWidget=this._register(new h.HE),this._register(l.Jh.any(t.onDidChangeModel,t.onDidChangeModelContent)((()=>this.clear())))}async applyEditAndShowIfNeeded(e,t,i,s,n){const r=this._editor.getModel();if(!r||!e.length)return;const o=t.allEdits.at(t.activeEditIndex);if(!o)return;const l=async r=>{const o=this._editor.getModel();o&&(await o.undo(),this.applyEditAndShowIfNeeded(e,{activeEditIndex:r,allEdits:t.allEdits},i,s,n))},h=(s,n)=>{(0,c.MB)(s)||(this._notificationService.error(n),i&&this.show(e[0],t,l))};let d;try{d=await s(o,n)}catch(C){return h(C,(0,g.kg)("resolveError","Error resolving edit '{0}':\n{1}",o.title,(0,a.r)(C)))}if(n.isCancellationRequested)return;const p=(0,u.v)(r.uri,e,d),m=e[0],f=r.deltaDecorations([],[{range:m,options:{description:"paste-line-suffix",stickiness:0}}]);let _,v;this._editor.focus();try{_=await this._bulkEditService.apply(p,{editor:this._editor,token:n}),v=r.getDecorationRange(f[0])}catch(C){return h(C,(0,g.kg)("applyError","Error applying edit '{0}':\n{1}",o.title,(0,a.r)(C)))}finally{r.deltaDecorations(f,[])}n.isCancellationRequested||i&&_.isApplied&&t.allEdits.length>1&&this.show(v??m,t,l)}show(e,t,i){this.clear(),this._editor.hasModel()&&(this._currentWidget.value=this._instantiationService.createInstance(b,this._id,this._editor,this._visibleContext,this._showCommand,e,t,i))}clear(){this._currentWidget.clear()}tryShowSelector(){this._currentWidget.value?.showSelector()}};S=C([E(4,f._Y),E(5,d.nu),E(6,v.Ot)],S)},50868:(e,t,i)=>{"use strict";i.d(t,{$t:()=>f,gI:()=>_,ER:()=>v});var s=i(91508),n=i(36677),r=i(18447),o=i(5662),a=i(31450),c=i(32848),l=i(58925),h=i(63591),d=i(14718),u=i(78209);const g=(0,h.u1)("IEditorCancelService"),p=new c.N1("cancellableOperation",!1,(0,u.kg)("cancellableOperation","Whether the editor runs a cancellable operation, e.g. like 'Peek References'"));(0,d.v)(g,class{constructor(){this._tokens=new WeakMap}add(e,t){let i,s=this._tokens.get(e);return s||(s=e.invokeWithinContext((e=>({key:p.bindTo(e.get(c.fN)),tokens:new l.w}))),this._tokens.set(e,s)),s.key.set(!0),i=s.tokens.push(t),()=>{i&&(i(),s.key.set(!s.tokens.isEmpty()),i=void 0)}}cancel(e){const t=this._tokens.get(e);if(!t)return;const i=t.tokens.pop();i&&(i.cancel(),t.key.set(!t.tokens.isEmpty()))}},1);class m extends r.Qi{constructor(e,t){super(t),this.editor=e,this._unregister=e.invokeWithinContext((t=>t.get(g).add(e,this)))}dispose(){this._unregister(),super.dispose()}}(0,a.E_)(new class extends a.DX{constructor(){super({id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:p})}runEditorCommand(e,t){e.get(g).cancel(t)}});class f{constructor(e,t){if(this.flags=t,0!==(1&this.flags)){const t=e.getModel();this.modelVersionId=t?s.GP("{0}#{1}",t.uri.toString(),t.getVersionId()):null}else this.modelVersionId=null;0!==(4&this.flags)?this.position=e.getPosition():this.position=null,0!==(2&this.flags)?this.selection=e.getSelection():this.selection=null,0!==(8&this.flags)?(this.scrollLeft=e.getScrollLeft(),this.scrollTop=e.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}_equals(e){if(!(e instanceof f))return!1;const t=e;return this.modelVersionId===t.modelVersionId&&(this.scrollLeft===t.scrollLeft&&this.scrollTop===t.scrollTop&&(!(!this.position&&t.position||this.position&&!t.position||this.position&&t.position&&!this.position.equals(t.position))&&!(!this.selection&&t.selection||this.selection&&!t.selection||this.selection&&t.selection&&!this.selection.equalsRange(t.selection))))}validate(e){return this._equals(new f(e,this.flags))}}class _ extends m{constructor(e,t,i,s){super(e,s),this._listener=new o.Cm,4&t&&this._listener.add(e.onDidChangeCursorPosition((e=>{i&&n.Q.containsPosition(i,e.position)||this.cancel()}))),2&t&&this._listener.add(e.onDidChangeCursorSelection((e=>{i&&n.Q.containsRange(i,e.selection)||this.cancel()}))),8&t&&this._listener.add(e.onDidScrollChange((e=>this.cancel()))),1&t&&(this._listener.add(e.onDidChangeModel((e=>this.cancel()))),this._listener.add(e.onDidChangeModelContent((e=>this.cancel()))))}dispose(){this._listener.dispose(),super.dispose()}}class v extends r.Qi{constructor(e,t){super(t),this._listener=e.onDidChangeContent((()=>this.cancel()))}dispose(){this._listener.dispose(),super.dispose()}}},34175:(e,t,i)=>{"use strict";i.d(t,{z0:()=>mt});var s=i(90766),n=i(5662),r=i(91508),o=i(31450),a=i(87119),c=i(60002),l=i(16223),h=i(46041),d=i(15092),u=i(83069),g=i(36677),p=i(75326),m=i(43264),f=i(87289),_=i(66261),v=i(47612);class C{constructor(e){this._editor=e,this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null,this._startPosition=this._editor.getPosition()}dispose(){this._editor.removeDecorations(this._allDecorations()),this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}reset(){this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}getCount(){return this._decorations.length}getFindScope(){return this._findScopeDecorationIds[0]?this._editor.getModel().getDecorationRange(this._findScopeDecorationIds[0]):null}getFindScopes(){if(this._findScopeDecorationIds.length){const e=this._findScopeDecorationIds.map((e=>this._editor.getModel().getDecorationRange(e))).filter((e=>!!e));if(e.length)return e}return null}getStartPosition(){return this._startPosition}setStartPosition(e){this._startPosition=e,this.setCurrentFindMatch(null)}_getDecorationIndex(e){const t=this._decorations.indexOf(e);return t>=0?t+1:1}getDecorationRangeAt(e){const t=e<this._decorations.length?this._decorations[e]:null;return t?this._editor.getModel().getDecorationRange(t):null}getCurrentMatchesPosition(e){const t=this._editor.getModel().getDecorationsInRange(e);for(const i of t){const e=i.options;if(e===C._FIND_MATCH_DECORATION||e===C._CURRENT_FIND_MATCH_DECORATION)return this._getDecorationIndex(i.id)}return 0}setCurrentFindMatch(e){let t=null,i=0;if(e)for(let s=0,n=this._decorations.length;s<n;s++){const n=this._editor.getModel().getDecorationRange(this._decorations[s]);if(e.equalsRange(n)){t=this._decorations[s],i=s+1;break}}return null===this._highlightedDecorationId&&null===t||this._editor.changeDecorations((e=>{if(null!==this._highlightedDecorationId&&(e.changeDecorationOptions(this._highlightedDecorationId,C._FIND_MATCH_DECORATION),this._highlightedDecorationId=null),null!==t&&(this._highlightedDecorationId=t,e.changeDecorationOptions(this._highlightedDecorationId,C._CURRENT_FIND_MATCH_DECORATION)),null!==this._rangeHighlightDecorationId&&(e.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),null!==t){let i=this._editor.getModel().getDecorationRange(t);if(i.startLineNumber!==i.endLineNumber&&1===i.endColumn){const e=i.endLineNumber-1,t=this._editor.getModel().getLineMaxColumn(e);i=new g.Q(i.startLineNumber,i.startColumn,e,t)}this._rangeHighlightDecorationId=e.addDecoration(i,C._RANGE_HIGHLIGHT_DECORATION)}})),i}set(e,t){this._editor.changeDecorations((i=>{let s=C._FIND_MATCH_DECORATION;const n=[];if(e.length>1e3){s=C._FIND_MATCH_NO_OVERVIEW_DECORATION;const t=this._editor.getModel().getLineCount(),i=this._editor.getLayoutInfo().height/t,r=Math.max(2,Math.ceil(3/i));let o=e[0].range.startLineNumber,a=e[0].range.endLineNumber;for(let s=1,c=e.length;s<c;s++){const t=e[s].range;a+r>=t.startLineNumber?t.endLineNumber>a&&(a=t.endLineNumber):(n.push({range:new g.Q(o,1,a,1),options:C._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),o=t.startLineNumber,a=t.endLineNumber)}n.push({range:new g.Q(o,1,a,1),options:C._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}const r=new Array(e.length);for(let t=0,o=e.length;t<o;t++)r[t]={range:e[t].range,options:s};this._decorations=i.deltaDecorations(this._decorations,r),this._overviewRulerApproximateDecorations=i.deltaDecorations(this._overviewRulerApproximateDecorations,n),this._rangeHighlightDecorationId&&(i.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),this._findScopeDecorationIds.length&&(this._findScopeDecorationIds.forEach((e=>i.removeDecoration(e))),this._findScopeDecorationIds=[]),t?.length&&(this._findScopeDecorationIds=t.map((e=>i.addDecoration(e,C._FIND_SCOPE_DECORATION))))}))}matchBeforePosition(e){if(0===this._decorations.length)return null;for(let t=this._decorations.length-1;t>=0;t--){const i=this._decorations[t],s=this._editor.getModel().getDecorationRange(i);if(s&&!(s.endLineNumber>e.lineNumber)){if(s.endLineNumber<e.lineNumber)return s;if(!(s.endColumn>e.column))return s}}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])}matchAfterPosition(e){if(0===this._decorations.length)return null;for(let t=0,i=this._decorations.length;t<i;t++){const i=this._decorations[t],s=this._editor.getModel().getDecorationRange(i);if(s&&!(s.startLineNumber<e.lineNumber)){if(s.startLineNumber>e.lineNumber)return s;if(!(s.startColumn<e.column))return s}}return this._editor.getModel().getDecorationRange(this._decorations[0])}_allDecorations(){let e=[];return e=e.concat(this._decorations),e=e.concat(this._overviewRulerApproximateDecorations),this._findScopeDecorationIds.length&&e.push(...this._findScopeDecorationIds),this._rangeHighlightDecorationId&&e.push(this._rangeHighlightDecorationId),e}static{this._CURRENT_FIND_MATCH_DECORATION=f.kI.register({description:"current-find-match",stickiness:1,zIndex:13,className:"currentFindMatch",inlineClassName:"currentFindMatchInline",showIfCollapsed:!0,overviewRuler:{color:(0,v.Yf)(_.fAP),position:l.A5.Center},minimap:{color:(0,v.Yf)(_.AjU),position:1}})}static{this._FIND_MATCH_DECORATION=f.kI.register({description:"find-match",stickiness:1,zIndex:10,className:"findMatch",inlineClassName:"findMatchInline",showIfCollapsed:!0,overviewRuler:{color:(0,v.Yf)(_.fAP),position:l.A5.Center},minimap:{color:(0,v.Yf)(_.AjU),position:1}})}static{this._FIND_MATCH_NO_OVERVIEW_DECORATION=f.kI.register({description:"find-match-no-overview",stickiness:1,className:"findMatch",showIfCollapsed:!0})}static{this._FIND_MATCH_ONLY_OVERVIEW_DECORATION=f.kI.register({description:"find-match-only-overview",stickiness:1,overviewRuler:{color:(0,v.Yf)(_.fAP),position:l.A5.Center}})}static{this._RANGE_HIGHLIGHT_DECORATION=f.kI.register({description:"find-range-highlight",stickiness:1,className:"rangeHighlight",isWholeLine:!0})}static{this._FIND_SCOPE_DECORATION=f.kI.register({description:"find-scope",className:"findScope",isWholeLine:!0})}}class E{constructor(e,t,i){this._editorSelection=e,this._ranges=t,this._replaceStrings=i,this._trackedEditorSelectionId=null}getEditOperations(e,t){if(this._ranges.length>0){const e=[];for(let t=0;t<this._ranges.length;t++)e.push({range:this._ranges[t],text:this._replaceStrings[t]});e.sort(((e,t)=>g.Q.compareRangesUsingStarts(e.range,t.range)));const i=[];let s=e[0];for(let t=1;t<e.length;t++)s.range.endLineNumber===e[t].range.startLineNumber&&s.range.endColumn===e[t].range.startColumn?(s.range=s.range.plusRange(e[t].range),s.text=s.text+e[t].text):(i.push(s),s=e[t]);i.push(s);for(const n of i)t.addEditOperation(n.range,n.text)}this._trackedEditorSelectionId=t.trackSelection(this._editorSelection)}computeCursorState(e,t){return t.getTrackedSelection(this._trackedEditorSelectionId)}}function b(e,t){if(e&&""!==e[0]){const i=S(e,t,"-"),s=S(e,t,"_");return i&&!s?y(e,t,"-"):!i&&s?y(e,t,"_"):e[0].toUpperCase()===e[0]?t.toUpperCase():e[0].toLowerCase()===e[0]?t.toLowerCase():r.zY(e[0][0])&&t.length>0?t[0].toUpperCase()+t.substr(1):e[0][0].toUpperCase()!==e[0][0]&&t.length>0?t[0].toLowerCase()+t.substr(1):t}return t}function S(e,t,i){return-1!==e[0].indexOf(i)&&-1!==t.indexOf(i)&&e[0].split(i).length===t.split(i).length}function y(e,t,i){const s=t.split(i),n=e[0].split(i);let r="";return s.forEach(((e,t)=>{r+=b([n[t]],e)+i})),r.slice(0,-1)}class w{constructor(e){this.staticValue=e,this.kind=0}}class R{constructor(e){this.pieces=e,this.kind=1}}class L{static fromStaticValue(e){return new L([T.staticValue(e)])}get hasReplacementPatterns(){return 1===this._state.kind}constructor(e){e&&0!==e.length?1===e.length&&null!==e[0].staticValue?this._state=new w(e[0].staticValue):this._state=new R(e):this._state=new w("")}buildReplaceString(e,t){if(0===this._state.kind)return t?b(e,this._state.staticValue):this._state.staticValue;let i="";for(let s=0,n=this._state.pieces.length;s<n;s++){const t=this._state.pieces[s];if(null!==t.staticValue){i+=t.staticValue;continue}let n=L._substitute(t.matchIndex,e);if(null!==t.caseOps&&t.caseOps.length>0){const e=[],i=t.caseOps.length;let s=0;for(let r=0,o=n.length;r<o;r++){if(s>=i){e.push(n.slice(r));break}switch(t.caseOps[s]){case"U":e.push(n[r].toUpperCase());break;case"u":e.push(n[r].toUpperCase()),s++;break;case"L":e.push(n[r].toLowerCase());break;case"l":e.push(n[r].toLowerCase()),s++;break;default:e.push(n[r])}}n=e.join("")}i+=n}return i}static _substitute(e,t){if(null===t)return"";if(0===e)return t[0];let i="";for(;e>0;){if(e<t.length){return(t[e]||"")+i}i=String(e%10)+i,e=Math.floor(e/10)}return"$"+i}}class T{static staticValue(e){return new T(e,-1,null)}static caseOps(e,t){return new T(null,e,t)}constructor(e,t,i){this.staticValue=e,this.matchIndex=t,i&&0!==i.length?this.caseOps=i.slice(0):this.caseOps=null}}class x{constructor(e){this._source=e,this._lastCharIndex=0,this._result=[],this._resultLen=0,this._currentStaticPiece=""}emitUnchanged(e){this._emitStatic(this._source.substring(this._lastCharIndex,e)),this._lastCharIndex=e}emitStatic(e,t){this._emitStatic(e),this._lastCharIndex=t}_emitStatic(e){0!==e.length&&(this._currentStaticPiece+=e)}emitMatchIndex(e,t,i){0!==this._currentStaticPiece.length&&(this._result[this._resultLen++]=T.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),this._result[this._resultLen++]=T.caseOps(e,i),this._lastCharIndex=t}finalize(){return this.emitUnchanged(this._source.length),0!==this._currentStaticPiece.length&&(this._result[this._resultLen++]=T.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),new L(this._result)}}var k=i(32848);const A=new k.N1("findWidgetVisible",!1),N=(A.toNegated(),new k.N1("findInputFocussed",!1)),I=new k.N1("replaceInputFocussed",!1),O={primary:545,mac:{primary:2593}},D={primary:565,mac:{primary:2613}},M={primary:560,mac:{primary:2608}},P={primary:554,mac:{primary:2602}},F={primary:558,mac:{primary:2606}},U="actions.find",H="actions.findWithSelection",B="editor.actions.findWithArgs",W="editor.action.nextMatchFindAction",V="editor.action.previousMatchFindAction",z="editor.action.goToMatchFindAction",G="editor.action.nextSelectionMatchFindAction",j="editor.action.previousSelectionMatchFindAction",K="editor.action.startFindReplaceAction",Y="closeFindWidget",q="toggleFindCaseSensitive",$="toggleFindWholeWord",Q="toggleFindRegex",X="toggleFindInSelection",Z="togglePreserveCase",J="editor.action.replaceOne",ee="editor.action.replaceAll",te="editor.action.selectAllMatches",ie=19999;class se{constructor(e,t){this._toDispose=new n.Cm,this._editor=e,this._state=t,this._isDisposed=!1,this._startSearchingTimer=new s.pc,this._decorations=new C(e),this._toDispose.add(this._decorations),this._updateDecorationsScheduler=new s.uC((()=>{if(this._editor.hasModel())return this.research(!1)}),100),this._toDispose.add(this._updateDecorationsScheduler),this._toDispose.add(this._editor.onDidChangeCursorPosition((e=>{3!==e.reason&&5!==e.reason&&6!==e.reason||this._decorations.setStartPosition(this._editor.getPosition())}))),this._ignoreModelContentChanged=!1,this._toDispose.add(this._editor.onDidChangeModelContent((e=>{this._ignoreModelContentChanged||(e.isFlush&&this._decorations.reset(),this._decorations.setStartPosition(this._editor.getPosition()),this._updateDecorationsScheduler.schedule())}))),this._toDispose.add(this._state.onFindReplaceStateChange((e=>this._onStateChanged(e)))),this.research(!1,this._state.searchScope)}dispose(){this._isDisposed=!0,(0,n.AS)(this._startSearchingTimer),this._toDispose.dispose()}_onStateChanged(e){if(!this._isDisposed&&this._editor.hasModel()&&(e.searchString||e.isReplaceRevealed||e.isRegex||e.wholeWord||e.matchCase||e.searchScope)){this._editor.getModel().isTooLargeForSyncing()?(this._startSearchingTimer.cancel(),this._startSearchingTimer.setIfNotSet((()=>{e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor)}),240)):e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor)}}static _getSearchRange(e,t){return t||e.getFullModelRange()}research(e,t){let i=null;"undefined"!==typeof t?null!==t&&(i=Array.isArray(t)?t:[t]):i=this._decorations.getFindScopes(),null!==i&&(i=i.map((e=>{if(e.startLineNumber!==e.endLineNumber){let t=e.endLineNumber;return 1===e.endColumn&&(t-=1),new g.Q(e.startLineNumber,1,t,this._editor.getModel().getLineMaxColumn(t))}return e})));const s=this._findMatches(i,!1,ie);this._decorations.set(s,i);const n=this._editor.getSelection();let r=this._decorations.getCurrentMatchesPosition(n);if(0===r&&s.length>0){const e=(0,h.hw)(s.map((e=>e.range)),(e=>g.Q.compareRangesUsingStarts(e,n)>=0));r=e>0?e-1+1:r}this._state.changeMatchInfo(r,this._decorations.getCount(),void 0),e&&this._editor.getOption(41).cursorMoveOnType&&this._moveToNextMatch(this._decorations.getStartPosition())}_hasMatches(){return this._state.matchesCount>0}_cannotFind(){if(!this._hasMatches()){const e=this._decorations.getFindScope();return e&&this._editor.revealRangeInCenterIfOutsideViewport(e,0),!0}return!1}_setCurrentFindMatch(e){const t=this._decorations.setCurrentFindMatch(e);this._state.changeMatchInfo(t,this._decorations.getCount(),e),this._editor.setSelection(e),this._editor.revealRangeInCenterIfOutsideViewport(e,0)}_prevSearchPosition(e){const t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0);let{lineNumber:i,column:s}=e;const n=this._editor.getModel();return t||1===s?(1===i?i=n.getLineCount():i--,s=n.getLineMaxColumn(i)):s--,new u.y(i,s)}_moveToPrevMatch(e,t=!1){if(!this._state.canNavigateBack()){const t=this._decorations.matchAfterPosition(e);return void(t&&this._setCurrentFindMatch(t))}if(this._decorations.getCount()<ie){let t=this._decorations.matchBeforePosition(e);return t&&t.isEmpty()&&t.getStartPosition().equals(e)&&(e=this._prevSearchPosition(e),t=this._decorations.matchBeforePosition(e)),void(t&&this._setCurrentFindMatch(t))}if(this._cannotFind())return;const i=this._decorations.getFindScope(),s=se._getSearchRange(this._editor.getModel(),i);s.getEndPosition().isBefore(e)&&(e=s.getEndPosition()),e.isBefore(s.getStartPosition())&&(e=s.getEndPosition());const{lineNumber:n,column:r}=e,o=this._editor.getModel();let a=new u.y(n,r),c=o.findPreviousMatch(this._state.searchString,a,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(132):null,!1);return c&&c.range.isEmpty()&&c.range.getStartPosition().equals(a)&&(a=this._prevSearchPosition(a),c=o.findPreviousMatch(this._state.searchString,a,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(132):null,!1)),c?t||s.containsRange(c.range)?void this._setCurrentFindMatch(c.range):this._moveToPrevMatch(c.range.getStartPosition(),!0):void 0}moveToPrevMatch(){this._moveToPrevMatch(this._editor.getSelection().getStartPosition())}_nextSearchPosition(e){const t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0);let{lineNumber:i,column:s}=e;const n=this._editor.getModel();return t||s===n.getLineMaxColumn(i)?(i===n.getLineCount()?i=1:i++,s=1):s++,new u.y(i,s)}_moveToNextMatch(e){if(!this._state.canNavigateForward()){const t=this._decorations.matchBeforePosition(e);return void(t&&this._setCurrentFindMatch(t))}if(this._decorations.getCount()<ie){let t=this._decorations.matchAfterPosition(e);return t&&t.isEmpty()&&t.getStartPosition().equals(e)&&(e=this._nextSearchPosition(e),t=this._decorations.matchAfterPosition(e)),void(t&&this._setCurrentFindMatch(t))}const t=this._getNextMatch(e,!1,!0);t&&this._setCurrentFindMatch(t.range)}_getNextMatch(e,t,i,s=!1){if(this._cannotFind())return null;const n=this._decorations.getFindScope(),r=se._getSearchRange(this._editor.getModel(),n);r.getEndPosition().isBefore(e)&&(e=r.getStartPosition()),e.isBefore(r.getStartPosition())&&(e=r.getStartPosition());const{lineNumber:o,column:a}=e,c=this._editor.getModel();let l=new u.y(o,a),h=c.findNextMatch(this._state.searchString,l,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(132):null,t);return i&&h&&h.range.isEmpty()&&h.range.getStartPosition().equals(l)&&(l=this._nextSearchPosition(l),h=c.findNextMatch(this._state.searchString,l,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(132):null,t)),h?s||r.containsRange(h.range)?h:this._getNextMatch(h.range.getEndPosition(),t,i,!0):null}moveToNextMatch(){this._moveToNextMatch(this._editor.getSelection().getEndPosition())}_moveToMatch(e){const t=this._decorations.getDecorationRangeAt(e);t&&this._setCurrentFindMatch(t)}moveToMatch(e){this._moveToMatch(e)}_getReplacePattern(){return this._state.isRegex?function(e){if(!e||0===e.length)return new L(null);const t=[],i=new x(e);for(let s=0,n=e.length;s<n;s++){const r=e.charCodeAt(s);if(92!==r){if(36===r){if(s++,s>=n)break;const r=e.charCodeAt(s);if(36===r){i.emitUnchanged(s-1),i.emitStatic("$",s+1);continue}if(48===r||38===r){i.emitUnchanged(s-1),i.emitMatchIndex(0,s+1,t),t.length=0;continue}if(49<=r&&r<=57){let o=r-48;if(s+1<n){const n=e.charCodeAt(s+1);if(48<=n&&n<=57){s++,o=10*o+(n-48),i.emitUnchanged(s-2),i.emitMatchIndex(o,s+1,t),t.length=0;continue}}i.emitUnchanged(s-1),i.emitMatchIndex(o,s+1,t),t.length=0;continue}}}else{if(s++,s>=n)break;const r=e.charCodeAt(s);switch(r){case 92:i.emitUnchanged(s-1),i.emitStatic("\\",s+1);break;case 110:i.emitUnchanged(s-1),i.emitStatic("\n",s+1);break;case 116:i.emitUnchanged(s-1),i.emitStatic("\t",s+1);break;case 117:case 85:case 108:case 76:i.emitUnchanged(s-1),i.emitStatic("",s+1),t.push(String.fromCharCode(r))}}}return i.finalize()}(this._state.replaceString):L.fromStaticValue(this._state.replaceString)}replace(){if(!this._hasMatches())return;const e=this._getReplacePattern(),t=this._editor.getSelection(),i=this._getNextMatch(t.getStartPosition(),!0,!1);if(i)if(t.equalsRange(i.range)){const s=e.buildReplaceString(i.matches,this._state.preserveCase),n=new d.iu(t,s);this._executeEditorCommand("replace",n),this._decorations.setStartPosition(new u.y(t.startLineNumber,t.startColumn+s.length)),this.research(!0)}else this._decorations.setStartPosition(this._editor.getPosition()),this._setCurrentFindMatch(i.range)}_findMatches(e,t,i){const s=(e||[null]).map((e=>se._getSearchRange(this._editor.getModel(),e)));return this._editor.getModel().findMatches(this._state.searchString,s,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(132):null,t,i)}replaceAll(){if(!this._hasMatches())return;const e=this._decorations.getFindScopes();null===e&&this._state.matchesCount>=ie?this._largeReplaceAll():this._regularReplaceAll(e),this.research(!1)}_largeReplaceAll(){const e=new m.lt(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(132):null).parseSearchRequest();if(!e)return;let t=e.regex;if(!t.multiline){let e="mu";t.ignoreCase&&(e+="i"),t.global&&(e+="g"),t=new RegExp(t.source,e)}const i=this._editor.getModel(),s=i.getValue(1),n=i.getFullModelRange(),r=this._getReplacePattern();let o;const a=this._state.preserveCase;o=r.hasReplacementPatterns||a?s.replace(t,(function(){return r.buildReplaceString(arguments,a)})):s.replace(t,r.buildReplaceString(null,a));const c=new d.ui(n,o,this._editor.getSelection());this._executeEditorCommand("replaceAll",c)}_regularReplaceAll(e){const t=this._getReplacePattern(),i=this._findMatches(e,t.hasReplacementPatterns||this._state.preserveCase,1073741824),s=[];for(let r=0,o=i.length;r<o;r++)s[r]=t.buildReplaceString(i[r].matches,this._state.preserveCase);const n=new E(this._editor.getSelection(),i.map((e=>e.range)),s);this._executeEditorCommand("replaceAll",n)}selectAllMatches(){if(!this._hasMatches())return;const e=this._decorations.getFindScopes();let t=this._findMatches(e,!1,1073741824).map((e=>new p.L(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn)));const i=this._editor.getSelection();for(let s=0,n=t.length;s<n;s++){if(t[s].equalsRange(i)){t=[i].concat(t.slice(0,s)).concat(t.slice(s+1));break}}this._editor.setSelections(t)}_executeEditorCommand(e,t){try{this._ignoreModelContentChanged=!0,this._editor.pushUndoStop(),this._editor.executeCommand(e,t),this._editor.pushUndoStop()}finally{this._ignoreModelContentChanged=!1}}}var ne=i(8597),re=i(23034),oe=i(17390),ae=i(42904);class ce extends oe.x{static{this.ID="editor.contrib.findOptionsWidget"}constructor(e,t,i){super(),this._hideSoon=this._register(new s.uC((()=>this._hide()),2e3)),this._isVisible=!1,this._editor=e,this._state=t,this._keybindingService=i,this._domNode=document.createElement("div"),this._domNode.className="findOptionsWidget",this._domNode.style.display="none",this._domNode.style.top="10px",this._domNode.style.zIndex="12",this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true");const n={inputActiveOptionBorder:(0,_.GuP)(_.uNK),inputActiveOptionForeground:(0,_.GuP)(_.$$0),inputActiveOptionBackground:(0,_.GuP)(_.c1f)},r=this._register((0,ae.bW)());this.caseSensitive=this._register(new re.bc({appendTitle:this._keybindingLabelFor(q),isChecked:this._state.matchCase,hoverDelegate:r,...n})),this._domNode.appendChild(this.caseSensitive.domNode),this._register(this.caseSensitive.onChange((()=>{this._state.change({matchCase:this.caseSensitive.checked},!1)}))),this.wholeWords=this._register(new re.nV({appendTitle:this._keybindingLabelFor($),isChecked:this._state.wholeWord,hoverDelegate:r,...n})),this._domNode.appendChild(this.wholeWords.domNode),this._register(this.wholeWords.onChange((()=>{this._state.change({wholeWord:this.wholeWords.checked},!1)}))),this.regex=this._register(new re.Ix({appendTitle:this._keybindingLabelFor(Q),isChecked:this._state.isRegex,hoverDelegate:r,...n})),this._domNode.appendChild(this.regex.domNode),this._register(this.regex.onChange((()=>{this._state.change({isRegex:this.regex.checked},!1)}))),this._editor.addOverlayWidget(this),this._register(this._state.onFindReplaceStateChange((e=>{let t=!1;e.isRegex&&(this.regex.checked=this._state.isRegex,t=!0),e.wholeWord&&(this.wholeWords.checked=this._state.wholeWord,t=!0),e.matchCase&&(this.caseSensitive.checked=this._state.matchCase,t=!0),!this._state.isRevealed&&t&&this._revealTemporarily()}))),this._register(ne.ko(this._domNode,ne.Bx.MOUSE_LEAVE,(e=>this._onMouseLeave()))),this._register(ne.ko(this._domNode,"mouseover",(e=>this._onMouseOver())))}_keybindingLabelFor(e){const t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return ce.ID}getDomNode(){return this._domNode}getPosition(){return{preference:0}}highlightFindOptions(){this._revealTemporarily()}_revealTemporarily(){this._show(),this._hideSoon.schedule()}_onMouseLeave(){this._hideSoon.schedule()}_onMouseOver(){this._hideSoon.cancel()}_show(){this._isVisible||(this._isVisible=!0,this._domNode.style.display="block")}_hide(){this._isVisible&&(this._isVisible=!1,this._domNode.style.display="none")}}var le=i(41234);function he(e,t){return 1===e||2!==e&&t}class de extends n.jG{get searchString(){return this._searchString}get replaceString(){return this._replaceString}get isRevealed(){return this._isRevealed}get isReplaceRevealed(){return this._isReplaceRevealed}get isRegex(){return he(this._isRegexOverride,this._isRegex)}get wholeWord(){return he(this._wholeWordOverride,this._wholeWord)}get matchCase(){return he(this._matchCaseOverride,this._matchCase)}get preserveCase(){return he(this._preserveCaseOverride,this._preserveCase)}get actualIsRegex(){return this._isRegex}get actualWholeWord(){return this._wholeWord}get actualMatchCase(){return this._matchCase}get actualPreserveCase(){return this._preserveCase}get searchScope(){return this._searchScope}get matchesPosition(){return this._matchesPosition}get matchesCount(){return this._matchesCount}get currentMatch(){return this._currentMatch}constructor(){super(),this._onFindReplaceStateChange=this._register(new le.vl),this.onFindReplaceStateChange=this._onFindReplaceStateChange.event,this._searchString="",this._replaceString="",this._isRevealed=!1,this._isReplaceRevealed=!1,this._isRegex=!1,this._isRegexOverride=0,this._wholeWord=!1,this._wholeWordOverride=0,this._matchCase=!1,this._matchCaseOverride=0,this._preserveCase=!1,this._preserveCaseOverride=0,this._searchScope=null,this._matchesPosition=0,this._matchesCount=0,this._currentMatch=null,this._loop=!0,this._isSearching=!1,this._filters=null}changeMatchInfo(e,t,i){const s={moveCursor:!1,updateHistory:!1,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1,isSearching:!1,filters:!1};let n=!1;0===t&&(e=0),e>t&&(e=t),this._matchesPosition!==e&&(this._matchesPosition=e,s.matchesPosition=!0,n=!0),this._matchesCount!==t&&(this._matchesCount=t,s.matchesCount=!0,n=!0),"undefined"!==typeof i&&(g.Q.equalsRange(this._currentMatch,i)||(this._currentMatch=i,s.currentMatch=!0,n=!0)),n&&this._onFindReplaceStateChange.fire(s)}change(e,t,i=!0){const s={moveCursor:t,updateHistory:i,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1,isSearching:!1,filters:!1};let n=!1;const r=this.isRegex,o=this.wholeWord,a=this.matchCase,c=this.preserveCase;"undefined"!==typeof e.searchString&&this._searchString!==e.searchString&&(this._searchString=e.searchString,s.searchString=!0,n=!0),"undefined"!==typeof e.replaceString&&this._replaceString!==e.replaceString&&(this._replaceString=e.replaceString,s.replaceString=!0,n=!0),"undefined"!==typeof e.isRevealed&&this._isRevealed!==e.isRevealed&&(this._isRevealed=e.isRevealed,s.isRevealed=!0,n=!0),"undefined"!==typeof e.isReplaceRevealed&&this._isReplaceRevealed!==e.isReplaceRevealed&&(this._isReplaceRevealed=e.isReplaceRevealed,s.isReplaceRevealed=!0,n=!0),"undefined"!==typeof e.isRegex&&(this._isRegex=e.isRegex),"undefined"!==typeof e.wholeWord&&(this._wholeWord=e.wholeWord),"undefined"!==typeof e.matchCase&&(this._matchCase=e.matchCase),"undefined"!==typeof e.preserveCase&&(this._preserveCase=e.preserveCase),"undefined"!==typeof e.searchScope&&(e.searchScope?.every((e=>this._searchScope?.some((t=>!g.Q.equalsRange(t,e)))))||(this._searchScope=e.searchScope,s.searchScope=!0,n=!0)),"undefined"!==typeof e.loop&&this._loop!==e.loop&&(this._loop=e.loop,s.loop=!0,n=!0),"undefined"!==typeof e.isSearching&&this._isSearching!==e.isSearching&&(this._isSearching=e.isSearching,s.isSearching=!0,n=!0),"undefined"!==typeof e.filters&&(this._filters?this._filters.update(e.filters):this._filters=e.filters,s.filters=!0,n=!0),this._isRegexOverride="undefined"!==typeof e.isRegexOverride?e.isRegexOverride:0,this._wholeWordOverride="undefined"!==typeof e.wholeWordOverride?e.wholeWordOverride:0,this._matchCaseOverride="undefined"!==typeof e.matchCaseOverride?e.matchCaseOverride:0,this._preserveCaseOverride="undefined"!==typeof e.preserveCaseOverride?e.preserveCaseOverride:0,r!==this.isRegex&&(n=!0,s.isRegex=!0),o!==this.wholeWord&&(n=!0,s.wholeWord=!0),a!==this.matchCase&&(n=!0,s.matchCase=!0),c!==this.preserveCase&&(n=!0,s.preserveCase=!0),n&&this._onFindReplaceStateChange.fire(s)}canNavigateBack(){return this.canNavigateInLoop()||1!==this.matchesPosition}canNavigateForward(){return this.canNavigateInLoop()||this.matchesPosition<this.matchesCount}canNavigateInLoop(){return this._loop||this.matchesCount>=ie}}var ue=i(11007),ge=i(35315),pe=i(92403),me=i(10350),fe=i(64383),_e=i(98067),ve=i(78209),Ce=i(89100);function Ee(e){return"Up"===e.lookupKeybinding("history.showPrevious")?.getElectronAccelerator()&&"Down"===e.lookupKeybinding("history.showNext")?.getElectronAccelerator()}var be=i(61394),Se=i(25689),ye=i(86723),we=i(631),Re=i(19070);const Le=(0,be.pU)("find-collapsed",me.W.chevronRight,ve.kg("findCollapsedIcon","Icon to indicate that the editor find widget is collapsed.")),Te=(0,be.pU)("find-expanded",me.W.chevronDown,ve.kg("findExpandedIcon","Icon to indicate that the editor find widget is expanded.")),xe=(0,be.pU)("find-selection",me.W.selection,ve.kg("findSelectionIcon","Icon for 'Find in Selection' in the editor find widget.")),ke=(0,be.pU)("find-replace",me.W.replace,ve.kg("findReplaceIcon","Icon for 'Replace' in the editor find widget.")),Ae=(0,be.pU)("find-replace-all",me.W.replaceAll,ve.kg("findReplaceAllIcon","Icon for 'Replace All' in the editor find widget.")),Ne=(0,be.pU)("find-previous-match",me.W.arrowUp,ve.kg("findPreviousMatchIcon","Icon for 'Find Previous' in the editor find widget.")),Ie=(0,be.pU)("find-next-match",me.W.arrowDown,ve.kg("findNextMatchIcon","Icon for 'Find Next' in the editor find widget.")),Oe=ve.kg("label.findDialog","Find / Replace"),De=ve.kg("label.find","Find"),Me=ve.kg("placeholder.find","Find"),Pe=ve.kg("label.previousMatchButton","Previous Match"),Fe=ve.kg("label.nextMatchButton","Next Match"),Ue=ve.kg("label.toggleSelectionFind","Find in Selection"),He=ve.kg("label.closeButton","Close"),Be=ve.kg("label.replace","Replace"),We=ve.kg("placeholder.replace","Replace"),Ve=ve.kg("label.replaceButton","Replace"),ze=ve.kg("label.replaceAllButton","Replace All"),Ge=ve.kg("label.toggleReplaceButton","Toggle Replace"),je=ve.kg("title.matchesCountLimit","Only the first {0} results are highlighted, but all find operations work on the entire text.",ie),Ke=ve.kg("label.matchesLocation","{0} of {1}"),Ye=ve.kg("label.noResults","No results"),qe=419;let $e=69;const Qe="ctrlEnterReplaceAll.windows.donotask",Xe=_e.zx?256:2048;class Ze{constructor(e){this.afterLineNumber=e,this.heightInPx=33,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"}}function Je(e,t,i){const s=!!t.match(/\n/);i&&s&&i.selectionStart>0&&e.stopPropagation()}function et(e,t,i){const s=!!t.match(/\n/);i&&s&&i.selectionEnd<i.value.length&&e.stopPropagation()}class tt extends oe.x{static{this.ID="editor.contrib.findWidget"}constructor(e,t,i,r,o,a,c,l,h,d){super(),this._hoverService=d,this._cachedHeight=null,this._revealTimeouts=[],this._codeEditor=e,this._controller=t,this._state=i,this._contextViewProvider=r,this._keybindingService=o,this._contextKeyService=a,this._storageService=l,this._notificationService=h,this._ctrlEnterReplaceAllWarningPrompted=!!l.getBoolean(Qe,0),this._isVisible=!1,this._isReplaceVisible=!1,this._ignoreChangeEvent=!1,this._updateHistoryDelayer=new s.ve(500),this._register((0,n.s)((()=>this._updateHistoryDelayer.cancel()))),this._register(this._state.onFindReplaceStateChange((e=>this._onStateChanged(e)))),this._buildDomNode(),this._updateButtons(),this._tryUpdateWidgetWidth(),this._findInput.inputBox.layout(),this._register(this._codeEditor.onDidChangeConfiguration((e=>{if(e.hasChanged(92)&&(this._codeEditor.getOption(92)&&this._state.change({isReplaceRevealed:!1},!1),this._updateButtons()),e.hasChanged(146)&&this._tryUpdateWidgetWidth(),e.hasChanged(2)&&this.updateAccessibilitySupport(),e.hasChanged(41)){const e=this._codeEditor.getOption(41).loop;this._state.change({loop:e},!1);const t=this._codeEditor.getOption(41).addExtraSpaceOnTop;t&&!this._viewZone&&(this._viewZone=new Ze(0),this._showViewZone()),!t&&this._viewZone&&this._removeViewZone()}}))),this.updateAccessibilitySupport(),this._register(this._codeEditor.onDidChangeCursorSelection((()=>{this._isVisible&&this._updateToggleSelectionFindButton()}))),this._register(this._codeEditor.onDidFocusEditorWidget((async()=>{if(this._isVisible){const e=await this._controller.getGlobalBufferTerm();e&&e!==this._state.searchString&&(this._state.change({searchString:e},!1),this._findInput.select())}}))),this._findInputFocused=N.bindTo(a),this._findFocusTracker=this._register(ne.w5(this._findInput.inputBox.inputElement)),this._register(this._findFocusTracker.onDidFocus((()=>{this._findInputFocused.set(!0),this._updateSearchScope()}))),this._register(this._findFocusTracker.onDidBlur((()=>{this._findInputFocused.set(!1)}))),this._replaceInputFocused=I.bindTo(a),this._replaceFocusTracker=this._register(ne.w5(this._replaceInput.inputBox.inputElement)),this._register(this._replaceFocusTracker.onDidFocus((()=>{this._replaceInputFocused.set(!0),this._updateSearchScope()}))),this._register(this._replaceFocusTracker.onDidBlur((()=>{this._replaceInputFocused.set(!1)}))),this._codeEditor.addOverlayWidget(this),this._codeEditor.getOption(41).addExtraSpaceOnTop&&(this._viewZone=new Ze(0)),this._register(this._codeEditor.onDidChangeModel((()=>{this._isVisible&&(this._viewZoneId=void 0)}))),this._register(this._codeEditor.onDidScrollChange((e=>{e.scrollTopChanged?this._layoutViewZone():setTimeout((()=>{this._layoutViewZone()}),0)})))}getId(){return tt.ID}getDomNode(){return this._domNode}getPosition(){return this._isVisible?{preference:0}:null}_onStateChanged(e){if(e.searchString){try{this._ignoreChangeEvent=!0,this._findInput.setValue(this._state.searchString)}finally{this._ignoreChangeEvent=!1}this._updateButtons()}if(e.replaceString&&(this._replaceInput.inputBox.value=this._state.replaceString),e.isRevealed&&(this._state.isRevealed?this._reveal():this._hide(!0)),e.isReplaceRevealed&&(this._state.isReplaceRevealed?this._codeEditor.getOption(92)||this._isReplaceVisible||(this._isReplaceVisible=!0,this._replaceInput.width=ne.Tr(this._findInput.domNode),this._updateButtons(),this._replaceInput.inputBox.layout()):this._isReplaceVisible&&(this._isReplaceVisible=!1,this._updateButtons())),(e.isRevealed||e.isReplaceRevealed)&&(this._state.isRevealed||this._state.isReplaceRevealed)&&this._tryUpdateHeight()&&this._showViewZone(),e.isRegex&&this._findInput.setRegex(this._state.isRegex),e.wholeWord&&this._findInput.setWholeWords(this._state.wholeWord),e.matchCase&&this._findInput.setCaseSensitive(this._state.matchCase),e.preserveCase&&this._replaceInput.setPreserveCase(this._state.preserveCase),e.searchScope&&(this._state.searchScope?this._toggleSelectionFind.checked=!0:this._toggleSelectionFind.checked=!1,this._updateToggleSelectionFindButton()),e.searchString||e.matchesCount||e.matchesPosition){const e=this._state.searchString.length>0&&0===this._state.matchesCount;this._domNode.classList.toggle("no-results",e),this._updateMatchesCount(),this._updateButtons()}(e.searchString||e.currentMatch)&&this._layoutViewZone(),e.updateHistory&&this._delayedUpdateHistory(),e.loop&&this._updateButtons()}_delayedUpdateHistory(){this._updateHistoryDelayer.trigger(this._updateHistory.bind(this)).then(void 0,fe.dz)}_updateHistory(){this._state.searchString&&this._findInput.inputBox.addToHistory(),this._state.replaceString&&this._replaceInput.inputBox.addToHistory()}_updateMatchesCount(){let e;if(this._matchesCount.style.minWidth=$e+"px",this._state.matchesCount>=ie?this._matchesCount.title=je:this._matchesCount.title="",this._matchesCount.firstChild?.remove(),this._state.matchesCount>0){let t=String(this._state.matchesCount);this._state.matchesCount>=ie&&(t+="+");let i=String(this._state.matchesPosition);"0"===i&&(i="?"),e=r.GP(Ke,i,t)}else e=Ye;this._matchesCount.appendChild(document.createTextNode(e)),(0,ue.xE)(this._getAriaLabel(e,this._state.currentMatch,this._state.searchString)),$e=Math.max($e,this._matchesCount.clientWidth)}_getAriaLabel(e,t,i){if(e===Ye)return""===i?ve.kg("ariaSearchNoResultEmpty","{0} found",e):ve.kg("ariaSearchNoResult","{0} found for '{1}'",e,i);if(t){const s=ve.kg("ariaSearchNoResultWithLineNum","{0} found for '{1}', at {2}",e,i,t.startLineNumber+":"+t.startColumn),n=this._codeEditor.getModel();if(n&&t.startLineNumber<=n.getLineCount()&&t.startLineNumber>=1){return`${n.getLineContent(t.startLineNumber)}, ${s}`}return s}return ve.kg("ariaSearchNoResultWithLineNumNoCurrentMatch","{0} found for '{1}'",e,i)}_updateToggleSelectionFindButton(){const e=this._codeEditor.getSelection(),t=!!e&&(e.startLineNumber!==e.endLineNumber||e.startColumn!==e.endColumn),i=this._toggleSelectionFind.checked;this._isVisible&&(i||t)?this._toggleSelectionFind.enable():this._toggleSelectionFind.disable()}_updateButtons(){this._findInput.setEnabled(this._isVisible),this._replaceInput.setEnabled(this._isVisible&&this._isReplaceVisible),this._updateToggleSelectionFindButton(),this._closeBtn.setEnabled(this._isVisible);const e=this._state.searchString.length>0,t=!!this._state.matchesCount;this._prevBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateBack()),this._nextBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateForward()),this._replaceBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._replaceAllBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._domNode.classList.toggle("replaceToggled",this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible);const i=!this._codeEditor.getOption(92);this._toggleReplaceBtn.setEnabled(this._isVisible&&i)}_reveal(){if(this._revealTimeouts.forEach((e=>{clearTimeout(e)})),this._revealTimeouts=[],!this._isVisible){this._isVisible=!0;const e=this._codeEditor.getSelection();switch(this._codeEditor.getOption(41).autoFindInSelection){case"always":this._toggleSelectionFind.checked=!0;break;case"never":this._toggleSelectionFind.checked=!1;break;case"multiline":{const t=!!e&&e.startLineNumber!==e.endLineNumber;this._toggleSelectionFind.checked=t;break}}this._tryUpdateWidgetWidth(),this._updateButtons(),this._revealTimeouts.push(setTimeout((()=>{this._domNode.classList.add("visible"),this._domNode.setAttribute("aria-hidden","false")}),0)),this._revealTimeouts.push(setTimeout((()=>{this._findInput.validate()}),200)),this._codeEditor.layoutOverlayWidget(this);let t=!0;if(this._codeEditor.getOption(41).seedSearchStringFromSelection&&e){const i=this._codeEditor.getDomNode();if(i){const s=ne.BK(i),n=this._codeEditor.getScrolledVisiblePosition(e.getStartPosition()),r=s.left+(n?n.left:0),o=n?n.top:0;if(this._viewZone&&o<this._viewZone.heightInPx){e.endLineNumber>e.startLineNumber&&(t=!1);const i=ne.cL(this._domNode).left;r>i&&(t=!1);const n=this._codeEditor.getScrolledVisiblePosition(e.getEndPosition());s.left+(n?n.left:0)>i&&(t=!1)}}}this._showViewZone(t)}}_hide(e){this._revealTimeouts.forEach((e=>{clearTimeout(e)})),this._revealTimeouts=[],this._isVisible&&(this._isVisible=!1,this._updateButtons(),this._domNode.classList.remove("visible"),this._domNode.setAttribute("aria-hidden","true"),this._findInput.clearMessage(),e&&this._codeEditor.focus(),this._codeEditor.layoutOverlayWidget(this),this._removeViewZone())}_layoutViewZone(e){if(!this._codeEditor.getOption(41).addExtraSpaceOnTop)return void this._removeViewZone();if(!this._isVisible)return;const t=this._viewZone;void 0===this._viewZoneId&&t&&this._codeEditor.changeViewZones((i=>{t.heightInPx=this._getHeight(),this._viewZoneId=i.addZone(t),this._codeEditor.setScrollTop(e||this._codeEditor.getScrollTop()+t.heightInPx)}))}_showViewZone(e=!0){if(!this._isVisible)return;if(!this._codeEditor.getOption(41).addExtraSpaceOnTop)return;void 0===this._viewZone&&(this._viewZone=new Ze(0));const t=this._viewZone;this._codeEditor.changeViewZones((i=>{if(void 0!==this._viewZoneId){const s=this._getHeight();if(s===t.heightInPx)return;const n=s-t.heightInPx;return t.heightInPx=s,i.layoutZone(this._viewZoneId),void(e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+n))}{let s=this._getHeight();if(s-=this._codeEditor.getOption(84).top,s<=0)return;t.heightInPx=s,this._viewZoneId=i.addZone(t),e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+s)}}))}_removeViewZone(){this._codeEditor.changeViewZones((e=>{void 0!==this._viewZoneId&&(e.removeZone(this._viewZoneId),this._viewZoneId=void 0,this._viewZone&&(this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()-this._viewZone.heightInPx),this._viewZone=void 0))}))}_tryUpdateWidgetWidth(){if(!this._isVisible)return;if(!this._domNode.isConnected)return;const e=this._codeEditor.getLayoutInfo();if(e.contentWidth<=0)return void this._domNode.classList.add("hiddenEditor");this._domNode.classList.contains("hiddenEditor")&&this._domNode.classList.remove("hiddenEditor");const t=e.width,i=e.minimap.minimapWidth;let s=!1,n=!1,r=!1;if(this._resized){if(ne.Tr(this._domNode)>qe)return this._domNode.style.maxWidth=t-28-i-15+"px",void(this._replaceInput.width=ne.Tr(this._findInput.domNode))}if(447+i>=t&&(n=!0),447+i-$e>=t&&(r=!0),447+i-$e>=t+50&&(s=!0),this._domNode.classList.toggle("collapsed-find-widget",s),this._domNode.classList.toggle("narrow-find-widget",r),this._domNode.classList.toggle("reduced-find-widget",n),r||s||(this._domNode.style.maxWidth=t-28-i-15+"px"),this._findInput.layout({collapsedFindWidget:s,narrowFindWidget:r,reducedFindWidget:n}),this._resized){const e=this._findInput.inputBox.element.clientWidth;e>0&&(this._replaceInput.width=e)}else this._isReplaceVisible&&(this._replaceInput.width=ne.Tr(this._findInput.domNode))}_getHeight(){let e=0;return e+=4,e+=this._findInput.inputBox.height+2,this._isReplaceVisible&&(e+=4,e+=this._replaceInput.inputBox.height+2),e+=4,e}_tryUpdateHeight(){const e=this._getHeight();return(null===this._cachedHeight||this._cachedHeight!==e)&&(this._cachedHeight=e,this._domNode.style.height=`${e}px`,!0)}focusFindInput(){this._findInput.select(),this._findInput.focus()}focusReplaceInput(){this._replaceInput.select(),this._replaceInput.focus()}highlightFindOptions(){this._findInput.highlightFindOptions()}_updateSearchScope(){if(this._codeEditor.hasModel()&&this._toggleSelectionFind.checked){const e=this._codeEditor.getSelections();e.map((e=>{1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(e.endLineNumber-1)));const t=this._state.currentMatch;return e.startLineNumber===e.endLineNumber||g.Q.equalsRange(e,t)?null:e})).filter((e=>!!e)),e.length&&this._state.change({searchScope:e},!0)}}_onFindInputMouseDown(e){e.middleButton&&e.stopPropagation()}_onFindInputKeyDown(e){return e.equals(3|Xe)?(this._keybindingService.dispatchEvent(e,e.target)||this._findInput.inputBox.insertAtCursor("\n"),void e.preventDefault()):e.equals(2)?(this._isReplaceVisible?this._replaceInput.focus():this._findInput.focusOnCaseSensitive(),void e.preventDefault()):e.equals(2066)?(this._codeEditor.focus(),void e.preventDefault()):e.equals(16)?Je(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):e.equals(18)?et(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):void 0}_onReplaceInputKeyDown(e){return e.equals(3|Xe)?(this._keybindingService.dispatchEvent(e,e.target)||(_e.uF&&_e.ib&&!this._ctrlEnterReplaceAllWarningPrompted&&(this._notificationService.info(ve.kg("ctrlEnter.keybindingChanged","Ctrl+Enter now inserts line break instead of replacing all. You can modify the keybinding for editor.action.replaceAll to override this behavior.")),this._ctrlEnterReplaceAllWarningPrompted=!0,this._storageService.store(Qe,!0,0,0)),this._replaceInput.inputBox.insertAtCursor("\n")),void e.preventDefault()):e.equals(2)?(this._findInput.focusOnCaseSensitive(),void e.preventDefault()):e.equals(1026)?(this._findInput.focus(),void e.preventDefault()):e.equals(2066)?(this._codeEditor.focus(),void e.preventDefault()):e.equals(16)?Je(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):e.equals(18)?et(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):void 0}getVerticalSashLeft(e){return 0}_keybindingLabelFor(e){const t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}_buildDomNode(){const e=!0,t=!0;this._findInput=this._register(new Ce.pG(null,this._contextViewProvider,{width:221,label:De,placeholder:Me,appendCaseSensitiveLabel:this._keybindingLabelFor(q),appendWholeWordsLabel:this._keybindingLabelFor($),appendRegexLabel:this._keybindingLabelFor(Q),validation:e=>{if(0===e.length||!this._findInput.getRegex())return null;try{return new RegExp(e,"gu"),null}catch(t){return{content:t.message}}},flexibleHeight:e,flexibleWidth:t,flexibleMaxHeight:118,showCommonFindToggles:!0,showHistoryHint:()=>Ee(this._keybindingService),inputBoxStyles:Re.ho,toggleStyles:Re.mk},this._contextKeyService)),this._findInput.setRegex(!!this._state.isRegex),this._findInput.setCaseSensitive(!!this._state.matchCase),this._findInput.setWholeWords(!!this._state.wholeWord),this._register(this._findInput.onKeyDown((e=>this._onFindInputKeyDown(e)))),this._register(this._findInput.inputBox.onDidChange((()=>{this._ignoreChangeEvent||this._state.change({searchString:this._findInput.getValue()},!0)}))),this._register(this._findInput.onDidOptionChange((()=>{this._state.change({isRegex:this._findInput.getRegex(),wholeWord:this._findInput.getWholeWords(),matchCase:this._findInput.getCaseSensitive()},!0)}))),this._register(this._findInput.onCaseSensitiveKeyDown((e=>{e.equals(1026)&&this._isReplaceVisible&&(this._replaceInput.focus(),e.preventDefault())}))),this._register(this._findInput.onRegexKeyDown((e=>{e.equals(2)&&this._isReplaceVisible&&(this._replaceInput.focusOnPreserve(),e.preventDefault())}))),this._register(this._findInput.inputBox.onDidHeightChange((e=>{this._tryUpdateHeight()&&this._showViewZone()}))),_e.j9&&this._register(this._findInput.onMouseDown((e=>this._onFindInputMouseDown(e)))),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount();const i=this._register((0,ae.bW)());this._prevBtn=this._register(new it({label:Pe+this._keybindingLabelFor(V),icon:Ne,hoverDelegate:i,onTrigger:()=>{(0,we.eU)(this._codeEditor.getAction(V)).run().then(void 0,fe.dz)}},this._hoverService)),this._nextBtn=this._register(new it({label:Fe+this._keybindingLabelFor(W),icon:Ie,hoverDelegate:i,onTrigger:()=>{(0,we.eU)(this._codeEditor.getAction(W)).run().then(void 0,fe.dz)}},this._hoverService));const s=document.createElement("div");s.className="find-part",s.appendChild(this._findInput.domNode);const n=document.createElement("div");n.className="find-actions",s.appendChild(n),n.appendChild(this._matchesCount),n.appendChild(this._prevBtn.domNode),n.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new ge.l({icon:xe,title:Ue+this._keybindingLabelFor(X),isChecked:!1,hoverDelegate:i,inputActiveOptionBackground:(0,_.GuP)(_.c1f),inputActiveOptionBorder:(0,_.GuP)(_.uNK),inputActiveOptionForeground:(0,_.GuP)(_.$$0)})),this._register(this._toggleSelectionFind.onChange((()=>{if(this._toggleSelectionFind.checked){if(this._codeEditor.hasModel()){let e=this._codeEditor.getSelections();e=e.map((e=>(1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(e.endLineNumber-1))),e.isEmpty()?null:e))).filter((e=>!!e)),e.length&&this._state.change({searchScope:e},!0)}}else this._state.change({searchScope:null},!0)}))),n.appendChild(this._toggleSelectionFind.domNode),this._closeBtn=this._register(new it({label:He+this._keybindingLabelFor(Y),icon:be.$_,hoverDelegate:i,onTrigger:()=>{this._state.change({isRevealed:!1,searchScope:null},!1)},onKeyDown:e=>{e.equals(2)&&this._isReplaceVisible&&(this._replaceBtn.isEnabled()?this._replaceBtn.focus():this._codeEditor.focus(),e.preventDefault())}},this._hoverService)),this._replaceInput=this._register(new Ce._Q(null,void 0,{label:Be,placeholder:We,appendPreserveCaseLabel:this._keybindingLabelFor(Z),history:[],flexibleHeight:e,flexibleWidth:t,flexibleMaxHeight:118,showHistoryHint:()=>Ee(this._keybindingService),inputBoxStyles:Re.ho,toggleStyles:Re.mk},this._contextKeyService,!0)),this._replaceInput.setPreserveCase(!!this._state.preserveCase),this._register(this._replaceInput.onKeyDown((e=>this._onReplaceInputKeyDown(e)))),this._register(this._replaceInput.inputBox.onDidChange((()=>{this._state.change({replaceString:this._replaceInput.inputBox.value},!1)}))),this._register(this._replaceInput.inputBox.onDidHeightChange((e=>{this._isReplaceVisible&&this._tryUpdateHeight()&&this._showViewZone()}))),this._register(this._replaceInput.onDidOptionChange((()=>{this._state.change({preserveCase:this._replaceInput.getPreserveCase()},!0)}))),this._register(this._replaceInput.onPreserveCaseKeyDown((e=>{e.equals(2)&&(this._prevBtn.isEnabled()?this._prevBtn.focus():this._nextBtn.isEnabled()?this._nextBtn.focus():this._toggleSelectionFind.enabled?this._toggleSelectionFind.focus():this._closeBtn.isEnabled()&&this._closeBtn.focus(),e.preventDefault())})));const r=this._register((0,ae.bW)());this._replaceBtn=this._register(new it({label:Ve+this._keybindingLabelFor(J),icon:ke,hoverDelegate:r,onTrigger:()=>{this._controller.replace()},onKeyDown:e=>{e.equals(1026)&&(this._closeBtn.focus(),e.preventDefault())}},this._hoverService)),this._replaceAllBtn=this._register(new it({label:ze+this._keybindingLabelFor(ee),icon:Ae,hoverDelegate:r,onTrigger:()=>{this._controller.replaceAll()}},this._hoverService));const o=document.createElement("div");o.className="replace-part",o.appendChild(this._replaceInput.domNode);const a=document.createElement("div");a.className="replace-actions",o.appendChild(a),a.appendChild(this._replaceBtn.domNode),a.appendChild(this._replaceAllBtn.domNode),this._toggleReplaceBtn=this._register(new it({label:Ge,className:"codicon toggle left",onTrigger:()=>{this._state.change({isReplaceRevealed:!this._isReplaceVisible},!1),this._isReplaceVisible&&(this._replaceInput.width=ne.Tr(this._findInput.domNode),this._replaceInput.inputBox.layout()),this._showViewZone()}},this._hoverService)),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible),this._domNode=document.createElement("div"),this._domNode.className="editor-widget find-widget",this._domNode.setAttribute("aria-hidden","true"),this._domNode.ariaLabel=Oe,this._domNode.role="dialog",this._domNode.style.width="419px",this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(s),this._domNode.appendChild(this._closeBtn.domNode),this._domNode.appendChild(o),this._resizeSash=this._register(new pe.m(this._domNode,this,{orientation:0,size:2})),this._resized=!1;let c=qe;this._register(this._resizeSash.onDidStart((()=>{c=ne.Tr(this._domNode)}))),this._register(this._resizeSash.onDidChange((e=>{this._resized=!0;const t=c+e.startX-e.currentX;if(t<qe)return;t>(parseFloat(ne.L9(this._domNode).maxWidth)||0)||(this._domNode.style.width=`${t}px`,this._isReplaceVisible&&(this._replaceInput.width=ne.Tr(this._findInput.domNode)),this._findInput.inputBox.layout(),this._tryUpdateHeight())}))),this._register(this._resizeSash.onDidReset((()=>{const e=ne.Tr(this._domNode);if(e<qe)return;let t=qe;if(!this._resized||e===qe){const e=this._codeEditor.getLayoutInfo();t=e.width-28-e.minimap.minimapWidth-15,this._resized=!0}this._domNode.style.width=`${t}px`,this._isReplaceVisible&&(this._replaceInput.width=ne.Tr(this._findInput.domNode)),this._findInput.inputBox.layout()})))}updateAccessibilitySupport(){const e=this._codeEditor.getOption(2);this._findInput.setFocusInputOnOptionClick(2!==e)}}class it extends oe.x{constructor(e,t){super(),this._opts=e;let i="button";this._opts.className&&(i=i+" "+this._opts.className),this._opts.icon&&(i=i+" "+Se.L.asClassName(this._opts.icon)),this._domNode=document.createElement("div"),this._domNode.tabIndex=0,this._domNode.className=i,this._domNode.setAttribute("role","button"),this._domNode.setAttribute("aria-label",this._opts.label),this._register(t.setupManagedHover(e.hoverDelegate??(0,ae.nZ)("element"),this._domNode,this._opts.label)),this.onclick(this._domNode,(e=>{this._opts.onTrigger(),e.preventDefault()})),this.onkeydown(this._domNode,(e=>{if(e.equals(10)||e.equals(3))return this._opts.onTrigger(),void e.preventDefault();this._opts.onKeyDown?.(e)}))}get domNode(){return this._domNode}isEnabled(){return this._domNode.tabIndex>=0}focus(){this._domNode.focus()}setEnabled(e){this._domNode.classList.toggle("disabled",!e),this._domNode.setAttribute("aria-disabled",String(!e)),this._domNode.tabIndex=e?0:-1}setExpanded(e){this._domNode.setAttribute("aria-expanded",String(!!e)),e?(this._domNode.classList.remove(...Se.L.asClassNameArray(Le)),this._domNode.classList.add(...Se.L.asClassNameArray(Te))):(this._domNode.classList.remove(...Se.L.asClassNameArray(Te)),this._domNode.classList.add(...Se.L.asClassNameArray(Le)))}}(0,v.zy)(((e,t)=>{const i=e.getColor(_.ECk);i&&t.addRule(`.monaco-editor .findMatch { border: 1px ${(0,ye.Bb)(e.type)?"dotted":"solid"} ${i}; box-sizing: border-box; }`);const s=e.getColor(_.S5J);s&&t.addRule(`.monaco-editor .findScope { border: 1px ${(0,ye.Bb)(e.type)?"dashed":"solid"} ${s}; }`);const n=e.getColor(_.b1q);n&&t.addRule(`.monaco-editor .find-widget { border: 1px solid ${n}; }`);const r=e.getColor(_.f3U);r&&t.addRule(`.monaco-editor .findMatchInline { color: ${r}; }`);const o=e.getColor(_.p8Y);o&&t.addRule(`.monaco-editor .currentFindMatchInline { color: ${o}; }`)}));var st,nt=i(27195),rt=i(54770),ot=i(47508),at=i(98031),ct=i(58591),lt=i(51467),ht=i(9711),dt=i(67220),ut=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},gt=function(e,t){return function(i,s){t(i,s,e)}};function pt(e,t="single",i=!1){if(!e.hasModel())return null;const s=e.getSelection();if("single"===t&&s.startLineNumber===s.endLineNumber||"multiple"===t)if(s.isEmpty()){const t=e.getConfiguredWordAtPosition(s.getStartPosition());if(t&&!1===i)return t.word}else if(e.getModel().getValueLengthInRange(s)<524288)return e.getModel().getValueInRange(s);return null}let mt=class extends n.jG{static{st=this}static{this.ID="editor.contrib.findController"}get editor(){return this._editor}static get(e){return e.getContribution(st.ID)}constructor(e,t,i,n,r,o){super(),this._editor=e,this._findWidgetVisible=A.bindTo(t),this._contextKeyService=t,this._storageService=i,this._clipboardService=n,this._notificationService=r,this._hoverService=o,this._updateHistoryDelayer=new s.ve(500),this._state=this._register(new de),this.loadQueryState(),this._register(this._state.onFindReplaceStateChange((e=>this._onStateChanged(e)))),this._model=null,this._register(this._editor.onDidChangeModel((()=>{const e=this._editor.getModel()&&this._state.isRevealed;this.disposeModel(),this._state.change({searchScope:null,matchCase:this._storageService.getBoolean("editor.matchCase",1,!1),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,!1),isRegex:this._storageService.getBoolean("editor.isRegex",1,!1),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,!1)},!1),e&&this._start({forceRevealReplace:!1,seedSearchStringFromSelection:"none",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!1,updateSearchScope:!1,loop:this._editor.getOption(41).loop})})))}dispose(){this.disposeModel(),super.dispose()}disposeModel(){this._model&&(this._model.dispose(),this._model=null)}_onStateChanged(e){this.saveQueryState(e),e.isRevealed&&(this._state.isRevealed?this._findWidgetVisible.set(!0):(this._findWidgetVisible.reset(),this.disposeModel())),e.searchString&&this.setGlobalBufferTerm(this._state.searchString)}saveQueryState(e){e.isRegex&&this._storageService.store("editor.isRegex",this._state.actualIsRegex,1,1),e.wholeWord&&this._storageService.store("editor.wholeWord",this._state.actualWholeWord,1,1),e.matchCase&&this._storageService.store("editor.matchCase",this._state.actualMatchCase,1,1),e.preserveCase&&this._storageService.store("editor.preserveCase",this._state.actualPreserveCase,1,1)}loadQueryState(){this._state.change({matchCase:this._storageService.getBoolean("editor.matchCase",1,this._state.matchCase),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,this._state.wholeWord),isRegex:this._storageService.getBoolean("editor.isRegex",1,this._state.isRegex),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,this._state.preserveCase)},!1)}isFindInputFocused(){return!!N.getValue(this._contextKeyService)}getState(){return this._state}closeFindWidget(){this._state.change({isRevealed:!1,searchScope:null},!1),this._editor.focus()}toggleCaseSensitive(){this._state.change({matchCase:!this._state.matchCase},!1),this._state.isRevealed||this.highlightFindOptions()}toggleWholeWords(){this._state.change({wholeWord:!this._state.wholeWord},!1),this._state.isRevealed||this.highlightFindOptions()}toggleRegex(){this._state.change({isRegex:!this._state.isRegex},!1),this._state.isRevealed||this.highlightFindOptions()}togglePreserveCase(){this._state.change({preserveCase:!this._state.preserveCase},!1),this._state.isRevealed||this.highlightFindOptions()}toggleSearchScope(){if(this._state.searchScope)this._state.change({searchScope:null},!0);else if(this._editor.hasModel()){let e=this._editor.getSelections();e=e.map((e=>(1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._editor.getModel().getLineMaxColumn(e.endLineNumber-1))),e.isEmpty()?null:e))).filter((e=>!!e)),e.length&&this._state.change({searchScope:e},!0)}}setSearchString(e){this._state.isRegex&&(e=r.bm(e)),this._state.change({searchString:e},!1)}highlightFindOptions(e=!1){}async _start(e,t){if(this.disposeModel(),!this._editor.hasModel())return;const i={...t,isRevealed:!0};if("single"===e.seedSearchStringFromSelection){const t=pt(this._editor,e.seedSearchStringFromSelection,e.seedSearchStringFromNonEmptySelection);t&&(this._state.isRegex?i.searchString=r.bm(t):i.searchString=t)}else if("multiple"===e.seedSearchStringFromSelection&&!e.updateSearchScope){const t=pt(this._editor,e.seedSearchStringFromSelection);t&&(i.searchString=t)}if(!i.searchString&&e.seedSearchStringFromGlobalClipboard){const e=await this.getGlobalBufferTerm();if(!this._editor.hasModel())return;e&&(i.searchString=e)}if(e.forceRevealReplace||i.isReplaceRevealed?i.isReplaceRevealed=!0:this._findWidgetVisible.get()||(i.isReplaceRevealed=!1),e.updateSearchScope){const e=this._editor.getSelections();e.some((e=>!e.isEmpty()))&&(i.searchScope=e)}i.loop=e.loop,this._state.change(i,!1),this._model||(this._model=new se(this._editor,this._state))}start(e,t){return this._start(e,t)}moveToNextMatch(){return!!this._model&&(this._model.moveToNextMatch(),!0)}moveToPrevMatch(){return!!this._model&&(this._model.moveToPrevMatch(),!0)}goToMatch(e){return!!this._model&&(this._model.moveToMatch(e),!0)}replace(){return!!this._model&&(this._model.replace(),!0)}replaceAll(){return!!this._model&&(this._editor.getModel()?.isTooLargeForHeapOperation()?(this._notificationService.warn(ve.kg("too.large.for.replaceall","The file is too large to perform a replace all operation.")),!1):(this._model.replaceAll(),!0))}selectAllMatches(){return!!this._model&&(this._model.selectAllMatches(),this._editor.focus(),!0)}async getGlobalBufferTerm(){return this._editor.getOption(41).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()?this._clipboardService.readFindText():""}setGlobalBufferTerm(e){this._editor.getOption(41).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()&&this._clipboardService.writeFindText(e)}};mt=st=ut([gt(1,k.fN),gt(2,ht.CS),gt(3,rt.h),gt(4,ct.Ot),gt(5,dt.TN)],mt);let ft=class extends mt{constructor(e,t,i,s,n,r,o,a,c){super(e,i,o,a,r,c),this._contextViewService=t,this._keybindingService=s,this._themeService=n,this._widget=null,this._findOptionsWidget=null}async _start(e,t){this._widget||this._createFindWidget();const i=this._editor.getSelection();let s=!1;switch(this._editor.getOption(41).autoFindInSelection){case"always":s=!0;break;case"never":s=!1;break;case"multiline":s=!!i&&i.startLineNumber!==i.endLineNumber;break}e.updateSearchScope=e.updateSearchScope||s,await super._start(e,t),this._widget&&(2===e.shouldFocus?this._widget.focusReplaceInput():1===e.shouldFocus&&this._widget.focusFindInput())}highlightFindOptions(e=!1){this._widget||this._createFindWidget(),this._state.isRevealed&&!e?this._widget.highlightFindOptions():this._findOptionsWidget.highlightFindOptions()}_createFindWidget(){this._widget=this._register(new tt(this._editor,this,this._state,this._contextViewService,this._keybindingService,this._contextKeyService,this._themeService,this._storageService,this._notificationService,this._hoverService)),this._findOptionsWidget=this._register(new ce(this._editor,this._state,this._keybindingService))}};ft=ut([gt(1,ot.l),gt(2,k.fN),gt(3,at.b),gt(4,v.Gy),gt(5,ct.Ot),gt(6,ht.CS),gt(7,rt.h),gt(8,dt.TN)],ft);(0,o.gW)(new o.PF({id:U,label:ve.kg("startFindAction","Find"),alias:"Find",precondition:k.M$.or(c.R.focus,k.M$.has("editorIsOpen")),kbOpts:{kbExpr:null,primary:2084,weight:100},menuOpts:{menuId:nt.D8.MenubarEditMenu,group:"3_find",title:ve.kg({key:"miFind",comment:["&& denotes a mnemonic"]},"&&Find"),order:1}})).addImplementation(0,((e,t,i)=>{const s=mt.get(t);return!!s&&s.start({forceRevealReplace:!1,seedSearchStringFromSelection:"never"!==t.getOption(41).seedSearchStringFromSelection?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(41).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:t.getOption(41).globalFindClipboard,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(41).loop})}));const _t={description:"Open a new In-Editor Find Widget.",args:[{name:"Open a new In-Editor Find Widget args",schema:{properties:{searchString:{type:"string"},replaceString:{type:"string"},isRegex:{type:"boolean"},matchWholeWord:{type:"boolean"},isCaseSensitive:{type:"boolean"},preserveCase:{type:"boolean"},findInSelection:{type:"boolean"}}}}]};class vt extends o.ks{constructor(){super({id:B,label:ve.kg("startFindWithArgsAction","Find With Arguments"),alias:"Find With Arguments",precondition:void 0,kbOpts:{kbExpr:null,primary:0,weight:100},metadata:_t})}async run(e,t,i){const s=mt.get(t);if(s){const e=i?{searchString:i.searchString,replaceString:i.replaceString,isReplaceRevealed:void 0!==i.replaceString,isRegex:i.isRegex,wholeWord:i.matchWholeWord,matchCase:i.isCaseSensitive,preserveCase:i.preserveCase}:{};await s.start({forceRevealReplace:!1,seedSearchStringFromSelection:0===s.getState().searchString.length&&"never"!==t.getOption(41).seedSearchStringFromSelection?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(41).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:1,shouldAnimate:!0,updateSearchScope:i?.findInSelection||!1,loop:t.getOption(41).loop},e),s.setGlobalBufferTerm(s.getState().searchString)}}}class Ct extends o.ks{constructor(){super({id:H,label:ve.kg("startFindWithSelectionAction","Find With Selection"),alias:"Find With Selection",precondition:void 0,kbOpts:{kbExpr:null,primary:0,mac:{primary:2083},weight:100}})}async run(e,t){const i=mt.get(t);i&&(await i.start({forceRevealReplace:!1,seedSearchStringFromSelection:"multiple",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(41).loop}),i.setGlobalBufferTerm(i.getState().searchString))}}class Et extends o.ks{async run(e,t){const i=mt.get(t);i&&!this._run(i)&&(await i.start({forceRevealReplace:!1,seedSearchStringFromSelection:0===i.getState().searchString.length&&"never"!==t.getOption(41).seedSearchStringFromSelection?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(41).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(41).loop}),this._run(i))}}class bt extends o.ks{constructor(){super({id:z,label:ve.kg("findMatchAction.goToMatch","Go to Match..."),alias:"Go to Match...",precondition:A}),this._highlightDecorations=[]}run(e,t,i){const s=mt.get(t);if(!s)return;const r=s.getState().matchesCount;if(r<1){return void e.get(ct.Ot).notify({severity:ct.AI.Warning,message:ve.kg("findMatchAction.noResults","No matches. Try searching for something else.")})}const o=e.get(lt.GK),a=new n.Cm,c=a.add(o.createInputBox());c.placeholder=ve.kg("findMatchAction.inputPlaceHolder","Type a number to go to a specific match (between 1 and {0})",r);const l=e=>{const t=parseInt(e);if(isNaN(t))return;const i=s.getState().matchesCount;return t>0&&t<=i?t-1:t<0&&t>=-i?i+t:void 0},h=e=>{const i=l(e);if("number"===typeof i){c.validationMessage=void 0,s.goToMatch(i);const e=s.getState().currentMatch;e&&this.addDecorations(t,e)}else c.validationMessage=ve.kg("findMatchAction.inputValidationMessage","Please type a number between 1 and {0}",s.getState().matchesCount),this.clearDecorations(t)};a.add(c.onDidChangeValue((e=>{h(e)}))),a.add(c.onDidAccept((()=>{const e=l(c.value);"number"===typeof e?(s.goToMatch(e),c.hide()):c.validationMessage=ve.kg("findMatchAction.inputValidationMessage","Please type a number between 1 and {0}",s.getState().matchesCount)}))),a.add(c.onDidHide((()=>{this.clearDecorations(t),a.dispose()}))),c.show()}clearDecorations(e){e.changeDecorations((e=>{this._highlightDecorations=e.deltaDecorations(this._highlightDecorations,[])}))}addDecorations(e,t){e.changeDecorations((e=>{this._highlightDecorations=e.deltaDecorations(this._highlightDecorations,[{range:t,options:{description:"find-match-quick-access-range-highlight",className:"rangeHighlight",isWholeLine:!0}},{range:t,options:{description:"find-match-quick-access-range-highlight-overview",overviewRuler:{color:(0,v.Yf)(a.vp),position:l.A5.Full}}}])}))}}class St extends o.ks{async run(e,t){const i=mt.get(t);if(!i)return;const s=pt(t,"single",!1);s&&i.setSearchString(s),this._run(i)||(await i.start({forceRevealReplace:!1,seedSearchStringFromSelection:"none",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(41).loop}),this._run(i))}}(0,o.gW)(new o.PF({id:K,label:ve.kg("startReplace","Replace"),alias:"Replace",precondition:k.M$.or(c.R.focus,k.M$.has("editorIsOpen")),kbOpts:{kbExpr:null,primary:2086,mac:{primary:2596},weight:100},menuOpts:{menuId:nt.D8.MenubarEditMenu,group:"3_find",title:ve.kg({key:"miReplace",comment:["&& denotes a mnemonic"]},"&&Replace"),order:2}})).addImplementation(0,((e,t,i)=>{if(!t.hasModel()||t.getOption(92))return!1;const s=mt.get(t);if(!s)return!1;const n=t.getSelection(),r=s.isFindInputFocused(),o=!n.isEmpty()&&n.startLineNumber===n.endLineNumber&&"never"!==t.getOption(41).seedSearchStringFromSelection&&!r,a=r||o?2:1;return s.start({forceRevealReplace:!0,seedSearchStringFromSelection:o?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(41).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:"never"!==t.getOption(41).seedSearchStringFromSelection,shouldFocus:a,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(41).loop})})),(0,o.HW)(mt.ID,ft,0),(0,o.Fl)(vt),(0,o.Fl)(Ct),(0,o.Fl)(class extends Et{constructor(){super({id:W,label:ve.kg("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:[{kbExpr:c.R.focus,primary:61,mac:{primary:2085,secondary:[61]},weight:100},{kbExpr:k.M$.and(c.R.focus,N),primary:3,weight:100}]})}_run(e){return!!e.moveToNextMatch()&&(e.editor.pushUndoStop(),!0)}}),(0,o.Fl)(class extends Et{constructor(){super({id:V,label:ve.kg("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:[{kbExpr:c.R.focus,primary:1085,mac:{primary:3109,secondary:[1085]},weight:100},{kbExpr:k.M$.and(c.R.focus,N),primary:1027,weight:100}]})}_run(e){return e.moveToPrevMatch()}}),(0,o.Fl)(bt),(0,o.Fl)(class extends St{constructor(){super({id:G,label:ve.kg("nextSelectionMatchFindAction","Find Next Selection"),alias:"Find Next Selection",precondition:void 0,kbOpts:{kbExpr:c.R.focus,primary:2109,weight:100}})}_run(e){return e.moveToNextMatch()}}),(0,o.Fl)(class extends St{constructor(){super({id:j,label:ve.kg("previousSelectionMatchFindAction","Find Previous Selection"),alias:"Find Previous Selection",precondition:void 0,kbOpts:{kbExpr:c.R.focus,primary:3133,weight:100}})}_run(e){return e.moveToPrevMatch()}});const yt=o.DX.bindToContribution(mt.get);(0,o.E_)(new yt({id:Y,precondition:A,handler:e=>e.closeFindWidget(),kbOpts:{weight:105,kbExpr:k.M$.and(c.R.focus,k.M$.not("isComposing")),primary:9,secondary:[1033]}})),(0,o.E_)(new yt({id:q,precondition:void 0,handler:e=>e.toggleCaseSensitive(),kbOpts:{weight:105,kbExpr:c.R.focus,primary:O.primary,mac:O.mac,win:O.win,linux:O.linux}})),(0,o.E_)(new yt({id:$,precondition:void 0,handler:e=>e.toggleWholeWords(),kbOpts:{weight:105,kbExpr:c.R.focus,primary:D.primary,mac:D.mac,win:D.win,linux:D.linux}})),(0,o.E_)(new yt({id:Q,precondition:void 0,handler:e=>e.toggleRegex(),kbOpts:{weight:105,kbExpr:c.R.focus,primary:M.primary,mac:M.mac,win:M.win,linux:M.linux}})),(0,o.E_)(new yt({id:X,precondition:void 0,handler:e=>e.toggleSearchScope(),kbOpts:{weight:105,kbExpr:c.R.focus,primary:P.primary,mac:P.mac,win:P.win,linux:P.linux}})),(0,o.E_)(new yt({id:Z,precondition:void 0,handler:e=>e.togglePreserveCase(),kbOpts:{weight:105,kbExpr:c.R.focus,primary:F.primary,mac:F.mac,win:F.win,linux:F.linux}})),(0,o.E_)(new yt({id:J,precondition:A,handler:e=>e.replace(),kbOpts:{weight:105,kbExpr:c.R.focus,primary:3094}})),(0,o.E_)(new yt({id:J,precondition:A,handler:e=>e.replace(),kbOpts:{weight:105,kbExpr:k.M$.and(c.R.focus,I),primary:3}})),(0,o.E_)(new yt({id:ee,precondition:A,handler:e=>e.replaceAll(),kbOpts:{weight:105,kbExpr:c.R.focus,primary:2563}})),(0,o.E_)(new yt({id:ee,precondition:A,handler:e=>e.replaceAll(),kbOpts:{weight:105,kbExpr:k.M$.and(c.R.focus,I),primary:void 0,mac:{primary:2051}}})),(0,o.E_)(new yt({id:te,precondition:A,handler:e=>e.selectAllMatches(),kbOpts:{weight:105,kbExpr:c.R.focus,primary:515}}))},44588:(e,t,i)=>{"use strict";i.d(t,{WR:()=>B,BP:()=>W});var s=i(90766),n=i(18447),r=i(64383),o=i(24939),a=i(5662),c=i(91508),l=i(631),h=i(55190),d=i(31450),u=i(60002),g=i(62083),p=i(17469),m=i(52903),f=i(46041),_=i(41234),v=i(36677),C=i(64454);class E{get onDidChange(){return this._updateEventEmitter.event}get hiddenRanges(){return this._hiddenRanges}constructor(e){this._updateEventEmitter=new _.vl,this._hasLineChanges=!1,this._foldingModel=e,this._foldingModelListener=e.onDidChange((e=>this.updateHiddenRanges())),this._hiddenRanges=[],e.regions.length&&this.updateHiddenRanges()}notifyChangeModelContent(e){this._hiddenRanges.length&&!this._hasLineChanges&&(this._hasLineChanges=e.changes.some((e=>e.range.endLineNumber!==e.range.startLineNumber||0!==(0,C.W)(e.text)[0])))}updateHiddenRanges(){let e=!1;const t=[];let i=0,s=0,n=Number.MAX_VALUE,r=-1;const o=this._foldingModel.regions;for(;i<o.length;i++){if(!o.isCollapsed(i))continue;const a=o.getStartLineNumber(i)+1,c=o.getEndLineNumber(i);n<=a&&c<=r||(!e&&s<this._hiddenRanges.length&&this._hiddenRanges[s].startLineNumber===a&&this._hiddenRanges[s].endLineNumber===c?(t.push(this._hiddenRanges[s]),s++):(e=!0,t.push(new v.Q(a,1,c,1))),n=a,r=c)}(this._hasLineChanges||e||s<this._hiddenRanges.length)&&this.applyHiddenRanges(t)}applyHiddenRanges(e){this._hiddenRanges=e,this._hasLineChanges=!1,this._updateEventEmitter.fire(e)}hasRanges(){return this._hiddenRanges.length>0}isHidden(e){return null!==b(this._hiddenRanges,e)}adjustSelections(e){let t=!1;const i=this._foldingModel.textModel;let s=null;const n=e=>(s&&function(e,t){return e>=t.startLineNumber&&e<=t.endLineNumber}(e,s)||(s=b(this._hiddenRanges,e)),s?s.startLineNumber-1:null);for(let r=0,o=e.length;r<o;r++){let s=e[r];const o=n(s.startLineNumber);o&&(s=s.setStartPosition(o,i.getLineMaxColumn(o)),t=!0);const a=n(s.endLineNumber);a&&(s=s.setEndPosition(a,i.getLineMaxColumn(a)),t=!0),e[r]=s}return t}dispose(){this.hiddenRanges.length>0&&(this._hiddenRanges=[],this._updateEventEmitter.fire(this._hiddenRanges)),this._foldingModelListener&&(this._foldingModelListener.dispose(),this._foldingModelListener=null)}}function b(e,t){const i=(0,f.hw)(e,(e=>t<e.startLineNumber))-1;return i>=0&&e[i].endLineNumber>=t?e[i]:null}var S,y=i(76495),w=i(78209),R=i(32848),L=i(46109),T=i(44026),x=i(87784),k=i(58591),A=i(32500),N=i(78381),I=i(56942),O=i(50091),D=i(79400),M=i(23750),P=i(84001),F=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},U=function(e,t){return function(i,s){t(i,s,e)}};const H=new R.N1("foldingEnabled",!1);let B=class extends a.jG{static{S=this}static{this.ID="editor.contrib.folding"}static get(e){return e.getContribution(S.ID)}static getFoldingRangeProviders(e,t){const i=e.foldingRangeProvider.ordered(t);return S._foldingRangeSelector?.(i,t)??i}constructor(e,t,i,s,n,r){super(),this.contextKeyService=t,this.languageConfigurationService=i,this.languageFeaturesService=r,this.localToDispose=this._register(new a.Cm),this.editor=e,this._foldingLimitReporter=new W(e);const o=this.editor.getOptions();this._isEnabled=o.get(43),this._useFoldingProviders="indentation"!==o.get(44),this._unfoldOnClickAfterEndOfLine=o.get(48),this._restoringViewState=!1,this._currentModelHasFoldedImports=!1,this._foldingImportsByDefault=o.get(46),this.updateDebounceInfo=n.for(r.foldingRangeProvider,"Folding",{min:200}),this.foldingModel=null,this.hiddenRangeModel=null,this.rangeProvider=null,this.foldingRegionPromise=null,this.foldingModelPromise=null,this.updateScheduler=null,this.cursorChangedScheduler=null,this.mouseDownInfo=null,this.foldingDecorationProvider=new L.rv(e),this.foldingDecorationProvider.showFoldingControls=o.get(111),this.foldingDecorationProvider.showFoldingHighlights=o.get(45),this.foldingEnabled=H.bindTo(this.contextKeyService),this.foldingEnabled.set(this._isEnabled),this._register(this.editor.onDidChangeModel((()=>this.onModelChanged()))),this._register(this.editor.onDidChangeConfiguration((e=>{if(e.hasChanged(43)&&(this._isEnabled=this.editor.getOptions().get(43),this.foldingEnabled.set(this._isEnabled),this.onModelChanged()),e.hasChanged(47)&&this.onModelChanged(),e.hasChanged(111)||e.hasChanged(45)){const e=this.editor.getOptions();this.foldingDecorationProvider.showFoldingControls=e.get(111),this.foldingDecorationProvider.showFoldingHighlights=e.get(45),this.triggerFoldingModelChanged()}e.hasChanged(44)&&(this._useFoldingProviders="indentation"!==this.editor.getOptions().get(44),this.onFoldingStrategyChanged()),e.hasChanged(48)&&(this._unfoldOnClickAfterEndOfLine=this.editor.getOptions().get(48)),e.hasChanged(46)&&(this._foldingImportsByDefault=this.editor.getOptions().get(46))}))),this.onModelChanged()}saveViewState(){const e=this.editor.getModel();if(!e||!this._isEnabled||e.isTooLargeForTokenization())return{};if(this.foldingModel){const t=this.foldingModel.getMemento(),i=this.rangeProvider?this.rangeProvider.id:void 0;return{collapsedRegions:t,lineCount:e.getLineCount(),provider:i,foldedImports:this._currentModelHasFoldedImports}}}restoreViewState(e){const t=this.editor.getModel();if(t&&this._isEnabled&&!t.isTooLargeForTokenization()&&this.hiddenRangeModel&&e&&(this._currentModelHasFoldedImports=!!e.foldedImports,e.collapsedRegions&&e.collapsedRegions.length>0&&this.foldingModel)){this._restoringViewState=!0;try{this.foldingModel.applyMemento(e.collapsedRegions)}finally{this._restoringViewState=!1}}}onModelChanged(){this.localToDispose.clear();const e=this.editor.getModel();this._isEnabled&&e&&!e.isTooLargeForTokenization()&&(this._currentModelHasFoldedImports=!1,this.foldingModel=new m.pN(e,this.foldingDecorationProvider),this.localToDispose.add(this.foldingModel),this.hiddenRangeModel=new E(this.foldingModel),this.localToDispose.add(this.hiddenRangeModel),this.localToDispose.add(this.hiddenRangeModel.onDidChange((e=>this.onHiddenRangesChanges(e)))),this.updateScheduler=new s.ve(this.updateDebounceInfo.get(e)),this.cursorChangedScheduler=new s.uC((()=>this.revealCursor()),200),this.localToDispose.add(this.cursorChangedScheduler),this.localToDispose.add(this.languageFeaturesService.foldingRangeProvider.onDidChange((()=>this.onFoldingStrategyChanged()))),this.localToDispose.add(this.editor.onDidChangeModelLanguageConfiguration((()=>this.onFoldingStrategyChanged()))),this.localToDispose.add(this.editor.onDidChangeModelContent((e=>this.onDidChangeModelContent(e)))),this.localToDispose.add(this.editor.onDidChangeCursorPosition((()=>this.onCursorPositionChanged()))),this.localToDispose.add(this.editor.onMouseDown((e=>this.onEditorMouseDown(e)))),this.localToDispose.add(this.editor.onMouseUp((e=>this.onEditorMouseUp(e)))),this.localToDispose.add({dispose:()=>{this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),this.updateScheduler?.cancel(),this.updateScheduler=null,this.foldingModel=null,this.foldingModelPromise=null,this.hiddenRangeModel=null,this.cursorChangedScheduler=null,this.rangeProvider?.dispose(),this.rangeProvider=null}}),this.triggerFoldingModelChanged())}onFoldingStrategyChanged(){this.rangeProvider?.dispose(),this.rangeProvider=null,this.triggerFoldingModelChanged()}getRangeProvider(e){if(this.rangeProvider)return this.rangeProvider;const t=new y.hW(e,this.languageConfigurationService,this._foldingLimitReporter);if(this.rangeProvider=t,this._useFoldingProviders&&this.foldingModel){const i=S.getFoldingRangeProviders(this.languageFeaturesService,e);i.length>0&&(this.rangeProvider=new x.M(e,i,(()=>this.triggerFoldingModelChanged()),this._foldingLimitReporter,t))}return this.rangeProvider}getFoldingModel(){return this.foldingModelPromise}onDidChangeModelContent(e){this.hiddenRangeModel?.notifyChangeModelContent(e),this.triggerFoldingModelChanged()}triggerFoldingModelChanged(){this.updateScheduler&&(this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),this.foldingModelPromise=this.updateScheduler.trigger((()=>{const e=this.foldingModel;if(!e)return null;const t=new N.W,i=this.getRangeProvider(e.textModel),n=this.foldingRegionPromise=(0,s.SS)((e=>i.compute(e)));return n.then((i=>{if(i&&n===this.foldingRegionPromise){let s;if(this._foldingImportsByDefault&&!this._currentModelHasFoldedImports){const e=i.setCollapsedAllOfType(g.lO.Imports.value,!0);e&&(s=h.D.capture(this.editor),this._currentModelHasFoldedImports=e)}const n=this.editor.getSelections();e.update(i,function(e){if(!e||0===e.length)return{startsInside:()=>!1};return{startsInside(t,i){for(const s of e){const e=s.startLineNumber;if(e>=t&&e<=i)return!0}return!1}}}(n)),s?.restore(this.editor);const r=this.updateDebounceInfo.update(e.textModel,t.elapsed());this.updateScheduler&&(this.updateScheduler.defaultDelay=r)}return e}))})).then(void 0,(e=>((0,r.dz)(e),null))))}onHiddenRangesChanges(e){if(this.hiddenRangeModel&&e.length&&!this._restoringViewState){const e=this.editor.getSelections();e&&this.hiddenRangeModel.adjustSelections(e)&&this.editor.setSelections(e)}this.editor.setHiddenAreas(e,this)}onCursorPositionChanged(){this.hiddenRangeModel&&this.hiddenRangeModel.hasRanges()&&this.cursorChangedScheduler.schedule()}revealCursor(){const e=this.getFoldingModel();e&&e.then((e=>{if(e){const t=this.editor.getSelections();if(t&&t.length>0){const i=[];for(const s of t){const t=s.selectionStartLineNumber;this.hiddenRangeModel&&this.hiddenRangeModel.isHidden(t)&&i.push(...e.getAllRegionsAtLine(t,(e=>e.isCollapsed&&t>e.startLineNumber)))}i.length&&(e.toggleCollapseState(i),this.reveal(t[0].getPosition()))}}})).then(void 0,r.dz)}onEditorMouseDown(e){if(this.mouseDownInfo=null,!this.hiddenRangeModel||!e.target||!e.target.range)return;if(!e.event.leftButton&&!e.event.middleButton)return;const t=e.target.range;let i=!1;switch(e.target.type){case 4:{const t=e.target.detail,s=e.target.element.offsetLeft;if(t.offsetX-s<4)return;i=!0;break}case 7:if(this._unfoldOnClickAfterEndOfLine&&this.hiddenRangeModel.hasRanges()){if(!e.target.detail.isAfterLines)break}return;case 6:if(this.hiddenRangeModel.hasRanges()){const e=this.editor.getModel();if(e&&t.startColumn===e.getLineMaxColumn(t.startLineNumber))break}return;default:return}this.mouseDownInfo={lineNumber:t.startLineNumber,iconClicked:i}}onEditorMouseUp(e){const t=this.foldingModel;if(!t||!this.mouseDownInfo||!e.target)return;const i=this.mouseDownInfo.lineNumber,s=this.mouseDownInfo.iconClicked,n=e.target.range;if(!n||n.startLineNumber!==i)return;if(s){if(4!==e.target.type)return}else{const e=this.editor.getModel();if(!e||n.startColumn!==e.getLineMaxColumn(i))return}const r=t.getRegionAtLine(i);if(r&&r.startLineNumber===i){const n=r.isCollapsed;if(s||n){let s=[];if(e.event.altKey){const e=e=>!e.containedBy(r)&&!r.containedBy(e),i=t.getRegionsInside(null,e);for(const t of i)t.isCollapsed&&s.push(t);0===s.length&&(s=i)}else{const i=e.event.middleButton||e.event.shiftKey;if(i)for(const e of t.getRegionsInside(r))e.isCollapsed===n&&s.push(e);!n&&i&&0!==s.length||s.push(r)}t.toggleCollapseState(s),this.reveal({lineNumber:i,column:1})}}}reveal(e){this.editor.revealPositionInCenterIfOutsideViewport(e,0)}};B=S=F([U(1,R.fN),U(2,p.JZ),U(3,k.Ot),U(4,A.ILanguageFeatureDebounceService),U(5,I.ILanguageFeaturesService)],B);class W{constructor(e){this.editor=e,this._onDidChange=new _.vl,this._computed=0,this._limited=!1}get limit(){return this.editor.getOptions().get(47)}update(e,t){e===this._computed&&t===this._limited||(this._computed=e,this._limited=t,this._onDidChange.fire())}}class V extends d.ks{runEditorCommand(e,t,i){const s=e.get(p.JZ),n=B.get(t);if(!n)return;const r=n.getFoldingModel();return r?(this.reportTelemetry(e,t),r.then((e=>{if(e){this.invoke(n,e,t,i,s);const r=t.getSelection();r&&n.reveal(r.getStartPosition())}}))):void 0}getSelectedLines(e){const t=e.getSelections();return t?t.map((e=>e.startLineNumber)):[]}getLineNumbers(e,t){return e&&e.selectionLines?e.selectionLines.map((e=>e+1)):this.getSelectedLines(t)}run(e,t){}}function z(e){if(!l.b0(e)){if(!l.Gv(e))return!1;const t=e;if(!l.b0(t.levels)&&!l.Et(t.levels))return!1;if(!l.b0(t.direction)&&!l.Kg(t.direction))return!1;if(!l.b0(t.selectionLines)&&(!Array.isArray(t.selectionLines)||!t.selectionLines.every(l.Et)))return!1}return!0}class G extends V{static{this.ID_PREFIX="editor.foldLevel"}static{this.ID=e=>G.ID_PREFIX+e}getFoldingLevel(){return parseInt(this.id.substr(G.ID_PREFIX.length))}invoke(e,t,i){(0,m.sO)(t,this.getFoldingLevel(),!0,this.getSelectedLines(i))}}(0,d.HW)(B.ID,B,0),(0,d.Fl)(class extends V{constructor(){super({id:"editor.unfold",label:w.kg("unfoldAction.label","Unfold"),alias:"Unfold",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:3166,mac:{primary:2654},weight:100},metadata:{description:"Unfold the content in the editor",args:[{name:"Unfold editor argument",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t\t* 'levels': Number of levels to unfold. If not set, defaults to 1.\n\t\t\t\t\t\t* 'direction': If 'up', unfold given number of levels up otherwise unfolds down.\n\t\t\t\t\t\t* 'selectionLines': Array of the start lines (0-based) of the editor selections to apply the unfold action to. If not set, the active selection(s) will be used.\n\t\t\t\t\t\t",constraint:z,schema:{type:"object",properties:{levels:{type:"number",default:1},direction:{type:"string",enum:["up","down"],default:"down"},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(e,t,i,s){const n=s&&s.levels||1,r=this.getLineNumbers(s,i);s&&"up"===s.direction?(0,m.dN)(t,!1,n,r):(0,m.uV)(t,!1,n,r)}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.unfoldRecursively",label:w.kg("unFoldRecursivelyAction.label","Unfold Recursively"),alias:"Unfold Recursively",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2142),weight:100}})}invoke(e,t,i,s){(0,m.uV)(t,!1,Number.MAX_VALUE,this.getSelectedLines(i))}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.fold",label:w.kg("foldAction.label","Fold"),alias:"Fold",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:3164,mac:{primary:2652},weight:100},metadata:{description:"Fold the content in the editor",args:[{name:"Fold editor argument",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t\t\t* 'levels': Number of levels to fold.\n\t\t\t\t\t\t\t* 'direction': If 'up', folds given number of levels up otherwise folds down.\n\t\t\t\t\t\t\t* 'selectionLines': Array of the start lines (0-based) of the editor selections to apply the fold action to. If not set, the active selection(s) will be used.\n\t\t\t\t\t\t\tIf no levels or direction is set, folds the region at the locations or if already collapsed, the first uncollapsed parent instead.\n\t\t\t\t\t\t",constraint:z,schema:{type:"object",properties:{levels:{type:"number"},direction:{type:"string",enum:["up","down"]},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(e,t,i,s){const n=this.getLineNumbers(s,i),r=s&&s.levels,o=s&&s.direction;"number"!==typeof r&&"string"!==typeof o?(0,m.W8)(t,!0,n):"up"===o?(0,m.dN)(t,!0,r||1,n):(0,m.uV)(t,!0,r||1,n)}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.foldRecursively",label:w.kg("foldRecursivelyAction.label","Fold Recursively"),alias:"Fold Recursively",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2140),weight:100}})}invoke(e,t,i){const s=this.getSelectedLines(i);(0,m.uV)(t,!0,Number.MAX_VALUE,s)}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.toggleFoldRecursively",label:w.kg("toggleFoldRecursivelyAction.label","Toggle Fold Recursively"),alias:"Toggle Fold Recursively",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,3114),weight:100}})}invoke(e,t,i){const s=this.getSelectedLines(i);(0,m.bC)(t,Number.MAX_VALUE,s)}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.foldAll",label:w.kg("foldAllAction.label","Fold All"),alias:"Fold All",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2069),weight:100}})}invoke(e,t,i){(0,m.uV)(t,!0)}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.unfoldAll",label:w.kg("unfoldAllAction.label","Unfold All"),alias:"Unfold All",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2088),weight:100}})}invoke(e,t,i){(0,m.uV)(t,!1)}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.foldAllBlockComments",label:w.kg("foldAllBlockComments.label","Fold All Block Comments"),alias:"Fold All Block Comments",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2138),weight:100}})}invoke(e,t,i,s,n){if(t.regions.hasTypes())(0,m.cL)(t,g.lO.Comment.value,!0);else{const e=i.getModel();if(!e)return;const s=n.getLanguageConfiguration(e.getLanguageId()).comments;if(s&&s.blockCommentStartToken){const e=new RegExp("^\\s*"+(0,c.bm)(s.blockCommentStartToken));(0,m.AI)(t,e,!0)}}}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.foldAllMarkerRegions",label:w.kg("foldAllMarkerRegions.label","Fold All Regions"),alias:"Fold All Regions",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2077),weight:100}})}invoke(e,t,i,s,n){if(t.regions.hasTypes())(0,m.cL)(t,g.lO.Region.value,!0);else{const e=i.getModel();if(!e)return;const s=n.getLanguageConfiguration(e.getLanguageId()).foldingRules;if(s&&s.markers&&s.markers.start){const e=new RegExp(s.markers.start);(0,m.AI)(t,e,!0)}}}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.unfoldAllMarkerRegions",label:w.kg("unfoldAllMarkerRegions.label","Unfold All Regions"),alias:"Unfold All Regions",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2078),weight:100}})}invoke(e,t,i,s,n){if(t.regions.hasTypes())(0,m.cL)(t,g.lO.Region.value,!1);else{const e=i.getModel();if(!e)return;const s=n.getLanguageConfiguration(e.getLanguageId()).foldingRules;if(s&&s.markers&&s.markers.start){const e=new RegExp(s.markers.start);(0,m.AI)(t,e,!1)}}}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.foldAllExcept",label:w.kg("foldAllExcept.label","Fold All Except Selected"),alias:"Fold All Except Selected",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2136),weight:100}})}invoke(e,t,i){const s=this.getSelectedLines(i);(0,m.GR)(t,!0,s)}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.unfoldAllExcept",label:w.kg("unfoldAllExcept.label","Unfold All Except Selected"),alias:"Unfold All Except Selected",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2134),weight:100}})}invoke(e,t,i){const s=this.getSelectedLines(i);(0,m.GR)(t,!1,s)}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.toggleFold",label:w.kg("toggleFoldAction.label","Toggle Fold"),alias:"Toggle Fold",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2090),weight:100}})}invoke(e,t,i){const s=this.getSelectedLines(i);(0,m.bC)(t,1,s)}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.gotoParentFold",label:w.kg("gotoParentFold.label","Go to Parent Fold"),alias:"Go to Parent Fold",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,weight:100}})}invoke(e,t,i){const s=this.getSelectedLines(i);if(s.length>0){const e=(0,m.kK)(s[0],t);null!==e&&i.setSelection({startLineNumber:e,startColumn:1,endLineNumber:e,endColumn:1})}}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.gotoPreviousFold",label:w.kg("gotoPreviousFold.label","Go to Previous Folding Range"),alias:"Go to Previous Folding Range",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,weight:100}})}invoke(e,t,i){const s=this.getSelectedLines(i);if(s.length>0){const e=(0,m.JX)(s[0],t);null!==e&&i.setSelection({startLineNumber:e,startColumn:1,endLineNumber:e,endColumn:1})}}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.gotoNextFold",label:w.kg("gotoNextFold.label","Go to Next Folding Range"),alias:"Go to Next Folding Range",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,weight:100}})}invoke(e,t,i){const s=this.getSelectedLines(i);if(s.length>0){const e=(0,m.pr)(s[0],t);null!==e&&i.setSelection({startLineNumber:e,startColumn:1,endLineNumber:e,endColumn:1})}}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.createFoldingRangeFromSelection",label:w.kg("createManualFoldRange.label","Create Folding Range from Selection"),alias:"Create Folding Range from Selection",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2135),weight:100}})}invoke(e,t,i){const s=[],n=i.getSelections();if(n){for(const e of n){let t=e.endLineNumber;1===e.endColumn&&--t,t>e.startLineNumber&&(s.push({startLineNumber:e.startLineNumber,endLineNumber:t,type:void 0,isCollapsed:!0,source:1}),i.setSelection({startLineNumber:e.startLineNumber,startColumn:1,endLineNumber:e.startLineNumber,endColumn:1}))}if(s.length>0){s.sort(((e,t)=>e.startLineNumber-t.startLineNumber));const e=T.tz.sanitizeAndMerge(t.regions,s,i.getModel()?.getLineCount());t.updatePost(T.tz.fromFoldRanges(e))}}}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.removeManualFoldingRanges",label:w.kg("removeManualFoldingRanges.label","Remove Manual Folding Ranges"),alias:"Remove Manual Folding Ranges",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2137),weight:100}})}invoke(e,t,i){const s=i.getSelections();if(s){const i=[];for(const e of s){const{startLineNumber:t,endLineNumber:s}=e;i.push(s>=t?{startLineNumber:t,endLineNumber:s}:{endLineNumber:s,startLineNumber:t})}t.removeManualRanges(i),e.triggerFoldingModelChanged()}}});for(let j=1;j<=7;j++)(0,d.xX)(new G({id:G.ID(j),label:w.kg("foldLevelAction.label","Fold Level {0}",j),alias:`Fold Level ${j}`,precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2048|21+j),weight:100}}));O.w.registerCommand("_executeFoldingRangeProvider",(async function(e,...t){const[i]=t;if(!(i instanceof D.r))throw(0,r.Qg)();const s=e.get(I.ILanguageFeaturesService),o=e.get(M.IModelService).getModel(i);if(!o)throw(0,r.Qg)();const a=e.get(P.pG);if(!a.getValue("editor.folding",{resource:i}))return[];const c=e.get(p.JZ),l=a.getValue("editor.foldingStrategy",{resource:i}),h={get limit(){return a.getValue("editor.foldingMaximumRegions",{resource:i})},update:(e,t)=>{}},d=new y.hW(o,c,h);let u=d;if("indentation"!==l){const e=B.getFoldingRangeProviders(s,o);e.length&&(u=new x.M(o,e,(()=>{}),h,d))}const m=await u.compute(n.XO.None),f=[];try{if(m)for(let e=0;e<m.length;e++){const t=m.getType(e);f.push({start:m.getStartLineNumber(e),end:m.getEndLineNumber(e),kind:t?g.lO.fromValue(t):void 0})}return f}finally{u.dispose()}}))},46109:(e,t,i)=>{"use strict";i.d(t,{E0:()=>d,k0:()=>u,rv:()=>v});var s=i(10350),n=i(87289),r=i(78209),o=i(66261),a=i(61394),c=i(47612),l=i(25689);const h=(0,o.x1A)("editor.foldBackground",{light:(0,o.JO0)(o.seu,.3),dark:(0,o.JO0)(o.seu,.3),hcDark:null,hcLight:null},(0,r.kg)("foldBackgroundBackground","Background color behind folded ranges. The color must not be opaque so as not to hide underlying decorations."),!0);(0,o.x1A)("editor.foldPlaceholderForeground",{light:"#808080",dark:"#808080",hcDark:null,hcLight:null},(0,r.kg)("collapsedTextColor","Color of the collapsed text after the first line of a folded range.")),(0,o.x1A)("editorGutter.foldingControlForeground",o.t4B,(0,r.kg)("editorGutter.foldingControlForeground","Color of the folding control in the editor gutter."));const d=(0,a.pU)("folding-expanded",s.W.chevronDown,(0,r.kg)("foldingExpandedIcon","Icon for expanded ranges in the editor glyph margin.")),u=(0,a.pU)("folding-collapsed",s.W.chevronRight,(0,r.kg)("foldingCollapsedIcon","Icon for collapsed ranges in the editor glyph margin.")),g=(0,a.pU)("folding-manual-collapsed",u,(0,r.kg)("foldingManualCollapedIcon","Icon for manually collapsed ranges in the editor glyph margin.")),p=(0,a.pU)("folding-manual-expanded",d,(0,r.kg)("foldingManualExpandedIcon","Icon for manually expanded ranges in the editor glyph margin.")),m={color:(0,c.Yf)(h),position:1},f=(0,r.kg)("linesCollapsed","Click to expand the range."),_=(0,r.kg)("linesExpanded","Click to collapse the range.");class v{static{this.COLLAPSED_VISUAL_DECORATION=n.kI.register({description:"folding-collapsed-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,linesDecorationsTooltip:f,firstLineDecorationClassName:l.L.asClassName(u)})}static{this.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=n.kI.register({description:"folding-collapsed-highlighted-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:m,isWholeLine:!0,linesDecorationsTooltip:f,firstLineDecorationClassName:l.L.asClassName(u)})}static{this.MANUALLY_COLLAPSED_VISUAL_DECORATION=n.kI.register({description:"folding-manually-collapsed-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,linesDecorationsTooltip:f,firstLineDecorationClassName:l.L.asClassName(g)})}static{this.MANUALLY_COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=n.kI.register({description:"folding-manually-collapsed-highlighted-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:m,isWholeLine:!0,linesDecorationsTooltip:f,firstLineDecorationClassName:l.L.asClassName(g)})}static{this.NO_CONTROLS_COLLAPSED_RANGE_DECORATION=n.kI.register({description:"folding-no-controls-range-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,linesDecorationsTooltip:f})}static{this.NO_CONTROLS_COLLAPSED_HIGHLIGHTED_RANGE_DECORATION=n.kI.register({description:"folding-no-controls-range-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:m,isWholeLine:!0,linesDecorationsTooltip:f})}static{this.EXPANDED_VISUAL_DECORATION=n.kI.register({description:"folding-expanded-visual-decoration",stickiness:1,isWholeLine:!0,firstLineDecorationClassName:"alwaysShowFoldIcons "+l.L.asClassName(d),linesDecorationsTooltip:_})}static{this.EXPANDED_AUTO_HIDE_VISUAL_DECORATION=n.kI.register({description:"folding-expanded-auto-hide-visual-decoration",stickiness:1,isWholeLine:!0,firstLineDecorationClassName:l.L.asClassName(d),linesDecorationsTooltip:_})}static{this.MANUALLY_EXPANDED_VISUAL_DECORATION=n.kI.register({description:"folding-manually-expanded-visual-decoration",stickiness:0,isWholeLine:!0,firstLineDecorationClassName:"alwaysShowFoldIcons "+l.L.asClassName(p),linesDecorationsTooltip:_})}static{this.MANUALLY_EXPANDED_AUTO_HIDE_VISUAL_DECORATION=n.kI.register({description:"folding-manually-expanded-auto-hide-visual-decoration",stickiness:0,isWholeLine:!0,firstLineDecorationClassName:l.L.asClassName(p),linesDecorationsTooltip:_})}static{this.NO_CONTROLS_EXPANDED_RANGE_DECORATION=n.kI.register({description:"folding-no-controls-range-decoration",stickiness:0,isWholeLine:!0})}static{this.HIDDEN_RANGE_DECORATION=n.kI.register({description:"folding-hidden-range-decoration",stickiness:1})}constructor(e){this.editor=e,this.showFoldingControls="mouseover",this.showFoldingHighlights=!0}getDecorationOption(e,t,i){return t?v.HIDDEN_RANGE_DECORATION:"never"===this.showFoldingControls?e?this.showFoldingHighlights?v.NO_CONTROLS_COLLAPSED_HIGHLIGHTED_RANGE_DECORATION:v.NO_CONTROLS_COLLAPSED_RANGE_DECORATION:v.NO_CONTROLS_EXPANDED_RANGE_DECORATION:e?i?this.showFoldingHighlights?v.MANUALLY_COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:v.MANUALLY_COLLAPSED_VISUAL_DECORATION:this.showFoldingHighlights?v.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:v.COLLAPSED_VISUAL_DECORATION:"mouseover"===this.showFoldingControls?i?v.MANUALLY_EXPANDED_AUTO_HIDE_VISUAL_DECORATION:v.EXPANDED_AUTO_HIDE_VISUAL_DECORATION:i?v.MANUALLY_EXPANDED_VISUAL_DECORATION:v.EXPANDED_VISUAL_DECORATION}changeDecorations(e){return this.editor.changeDecorations(e)}removeDecorations(e){this.editor.removeDecorations(e)}}},52903:(e,t,i)=>{"use strict";i.d(t,{AI:()=>g,GR:()=>u,JX:()=>f,W8:()=>h,bC:()=>a,cL:()=>p,dN:()=>l,kK:()=>m,pN:()=>o,pr:()=>_,sO:()=>d,uV:()=>c});var s=i(41234),n=i(44026),r=i(85600);class o{get regions(){return this._regions}get textModel(){return this._textModel}constructor(e,t){this._updateEventEmitter=new s.vl,this.onDidChange=this._updateEventEmitter.event,this._textModel=e,this._decorationProvider=t,this._regions=new n.tz(new Uint32Array(0),new Uint32Array(0)),this._editorDecorationIds=[]}toggleCollapseState(e){if(!e.length)return;e=e.sort(((e,t)=>e.regionIndex-t.regionIndex));const t={};this._decorationProvider.changeDecorations((i=>{let s=0,n=-1,r=-1;const o=e=>{for(;s<e;){const e=this._regions.getEndLineNumber(s),t=this._regions.isCollapsed(s);if(e<=n){const n=0!==this.regions.getSource(s);i.changeDecorationOptions(this._editorDecorationIds[s],this._decorationProvider.getDecorationOption(t,e<=r,n))}t&&e>r&&(r=e),s++}};for(const a of e){const e=a.regionIndex,i=this._editorDecorationIds[e];if(i&&!t[i]){t[i]=!0,o(e);const s=!this._regions.isCollapsed(e);this._regions.setCollapsed(e,s),n=Math.max(n,this._regions.getEndLineNumber(e))}}o(this._regions.length)})),this._updateEventEmitter.fire({model:this,collapseStateChanged:e})}removeManualRanges(e){const t=new Array,i=t=>{for(const i of e)if(!(i.startLineNumber>t.endLineNumber||t.startLineNumber>i.endLineNumber))return!0;return!1};for(let s=0;s<this._regions.length;s++){const e=this._regions.toFoldRange(s);0!==e.source&&i(e)||t.push(e)}this.updatePost(n.tz.fromFoldRanges(t))}update(e,t){const i=this._currentFoldedOrManualRanges(t),s=n.tz.sanitizeAndMerge(e,i,this._textModel.getLineCount(),t);this.updatePost(n.tz.fromFoldRanges(s))}updatePost(e){const t=[];let i=-1;for(let s=0,n=e.length;s<n;s++){const n=e.getStartLineNumber(s),r=e.getEndLineNumber(s),o=e.isCollapsed(s),a=0!==e.getSource(s),c={startLineNumber:n,startColumn:this._textModel.getLineMaxColumn(n),endLineNumber:r,endColumn:this._textModel.getLineMaxColumn(r)+1};t.push({range:c,options:this._decorationProvider.getDecorationOption(o,r<=i,a)}),o&&r>i&&(i=r)}this._decorationProvider.changeDecorations((e=>this._editorDecorationIds=e.deltaDecorations(this._editorDecorationIds,t))),this._regions=e,this._updateEventEmitter.fire({model:this})}_currentFoldedOrManualRanges(e){const t=[];for(let i=0,s=this._regions.length;i<s;i++){let s=this.regions.isCollapsed(i);const n=this.regions.getSource(i);if(s||0!==n){const r=this._regions.toFoldRange(i),o=this._textModel.getDecorationRange(this._editorDecorationIds[i]);o&&(s&&e?.startsInside(o.startLineNumber+1,o.endLineNumber)&&(s=!1),t.push({startLineNumber:o.startLineNumber,endLineNumber:o.endLineNumber,type:r.type,isCollapsed:s,source:n}))}}return t}getMemento(){const e=this._currentFoldedOrManualRanges(),t=[],i=this._textModel.getLineCount();for(let s=0,n=e.length;s<n;s++){const n=e[s];if(n.startLineNumber>=n.endLineNumber||n.startLineNumber<1||n.endLineNumber>i)continue;const r=this._getLinesChecksum(n.startLineNumber+1,n.endLineNumber);t.push({startLineNumber:n.startLineNumber,endLineNumber:n.endLineNumber,isCollapsed:n.isCollapsed,source:n.source,checksum:r})}return t.length>0?t:void 0}applyMemento(e){if(!Array.isArray(e))return;const t=[],i=this._textModel.getLineCount();for(const n of e){if(n.startLineNumber>=n.endLineNumber||n.startLineNumber<1||n.endLineNumber>i)continue;const e=this._getLinesChecksum(n.startLineNumber+1,n.endLineNumber);n.checksum&&e!==n.checksum||t.push({startLineNumber:n.startLineNumber,endLineNumber:n.endLineNumber,type:void 0,isCollapsed:n.isCollapsed??!0,source:n.source??0})}const s=n.tz.sanitizeAndMerge(this._regions,t,i);this.updatePost(n.tz.fromFoldRanges(s))}_getLinesChecksum(e,t){return(0,r.tW)(this._textModel.getLineContent(e)+this._textModel.getLineContent(t))%1e6}dispose(){this._decorationProvider.removeDecorations(this._editorDecorationIds)}getAllRegionsAtLine(e,t){const i=[];if(this._regions){let s=this._regions.findRange(e),n=1;for(;s>=0;){const e=this._regions.toRegion(s);t&&!t(e,n)||i.push(e),n++,s=e.parentIndex}}return i}getRegionAtLine(e){if(this._regions){const t=this._regions.findRange(e);if(t>=0)return this._regions.toRegion(t)}return null}getRegionsInside(e,t){const i=[],s=e?e.regionIndex+1:0,n=e?e.endLineNumber:Number.MAX_VALUE;if(t&&2===t.length){const e=[];for(let r=s,o=this._regions.length;r<o;r++){const s=this._regions.toRegion(r);if(!(this._regions.getStartLineNumber(r)<n))break;for(;e.length>0&&!s.containedBy(e[e.length-1]);)e.pop();e.push(s),t(s,e.length)&&i.push(s)}}else for(let r=s,o=this._regions.length;r<o;r++){const e=this._regions.toRegion(r);if(!(this._regions.getStartLineNumber(r)<n))break;t&&!t(e)||i.push(e)}return i}}function a(e,t,i){const s=[];for(const n of i){const i=e.getRegionAtLine(n);if(i){const n=!i.isCollapsed;if(s.push(i),t>1){const r=e.getRegionsInside(i,((e,i)=>e.isCollapsed!==n&&i<t));s.push(...r)}}}e.toggleCollapseState(s)}function c(e,t,i=Number.MAX_VALUE,s){const n=[];if(s&&s.length>0)for(const r of s){const s=e.getRegionAtLine(r);if(s&&(s.isCollapsed!==t&&n.push(s),i>1)){const r=e.getRegionsInside(s,((e,s)=>e.isCollapsed!==t&&s<i));n.push(...r)}}else{const s=e.getRegionsInside(null,((e,s)=>e.isCollapsed!==t&&s<i));n.push(...s)}e.toggleCollapseState(n)}function l(e,t,i,s){const n=[];for(const r of s){const s=e.getAllRegionsAtLine(r,((e,s)=>e.isCollapsed!==t&&s<=i));n.push(...s)}e.toggleCollapseState(n)}function h(e,t,i){const s=[];for(const n of i){const i=e.getAllRegionsAtLine(n,(e=>e.isCollapsed!==t));i.length>0&&s.push(i[0])}e.toggleCollapseState(s)}function d(e,t,i,s){const n=e.getRegionsInside(null,((e,n)=>n===t&&e.isCollapsed!==i&&!s.some((t=>e.containsLine(t)))));e.toggleCollapseState(n)}function u(e,t,i){const s=[];for(const r of i){const t=e.getAllRegionsAtLine(r,void 0);t.length>0&&s.push(t[0])}const n=e.getRegionsInside(null,(e=>s.every((t=>!t.containedBy(e)&&!e.containedBy(t)))&&e.isCollapsed!==t));e.toggleCollapseState(n)}function g(e,t,i){const s=e.textModel,n=e.regions,r=[];for(let o=n.length-1;o>=0;o--)if(i!==n.isCollapsed(o)){const e=n.getStartLineNumber(o);t.test(s.getLineContent(e))&&r.push(n.toRegion(o))}e.toggleCollapseState(r)}function p(e,t,i){const s=e.regions,n=[];for(let r=s.length-1;r>=0;r--)i!==s.isCollapsed(r)&&t===s.getType(r)&&n.push(s.toRegion(r));e.toggleCollapseState(n)}function m(e,t){let i=null;const s=t.getRegionAtLine(e);if(null!==s&&(i=s.startLineNumber,e===i)){const e=s.parentIndex;i=-1!==e?t.regions.getStartLineNumber(e):null}return i}function f(e,t){let i=t.getRegionAtLine(e);if(null!==i&&i.startLineNumber===e){if(e!==i.startLineNumber)return i.startLineNumber;{const e=i.parentIndex;let s=0;for(-1!==e&&(s=t.regions.getStartLineNumber(i.parentIndex));null!==i;){if(!(i.regionIndex>0))return null;if(i=t.regions.toRegion(i.regionIndex-1),i.startLineNumber<=s)return null;if(i.parentIndex===e)return i.startLineNumber}}}else if(t.regions.length>0)for(i=t.regions.toRegion(t.regions.length-1);null!==i;){if(i.startLineNumber<e)return i.startLineNumber;i=i.regionIndex>0?t.regions.toRegion(i.regionIndex-1):null}return null}function _(e,t){let i=t.getRegionAtLine(e);if(null!==i&&i.startLineNumber===e){const e=i.parentIndex;let s=0;if(-1!==e)s=t.regions.getEndLineNumber(i.parentIndex);else{if(0===t.regions.length)return null;s=t.regions.getEndLineNumber(t.regions.length-1)}for(;null!==i;){if(!(i.regionIndex<t.regions.length))return null;if(i=t.regions.toRegion(i.regionIndex+1),i.startLineNumber>=s)return null;if(i.parentIndex===e)return i.startLineNumber}}else if(t.regions.length>0)for(i=t.regions.toRegion(0);null!==i;){if(i.startLineNumber>e)return i.startLineNumber;i=i.regionIndex<t.regions.length?t.regions.toRegion(i.regionIndex+1):null}return null}},44026:(e,t,i)=>{"use strict";i.d(t,{tz:()=>a,yy:()=>n});const s={0:" ",1:"u",2:"r"},n=16777215,r=4278190080;class o{constructor(e){const t=Math.ceil(e/32);this._states=new Uint32Array(t)}get(e){const t=e/32|0,i=e%32;return 0!==(this._states[t]&1<<i)}set(e,t){const i=e/32|0,s=e%32,n=this._states[i];this._states[i]=t?n|1<<s:n&~(1<<s)}}class a{constructor(e,t,i){if(e.length!==t.length||e.length>65535)throw new Error("invalid startIndexes or endIndexes size");this._startIndexes=e,this._endIndexes=t,this._collapseStates=new o(e.length),this._userDefinedStates=new o(e.length),this._recoveredStates=new o(e.length),this._types=i,this._parentsComputed=!1}ensureParentIndices(){if(!this._parentsComputed){this._parentsComputed=!0;const e=[],t=(t,i)=>{const s=e[e.length-1];return this.getStartLineNumber(s)<=t&&this.getEndLineNumber(s)>=i};for(let i=0,s=this._startIndexes.length;i<s;i++){const s=this._startIndexes[i],r=this._endIndexes[i];if(s>n||r>n)throw new Error("startLineNumber or endLineNumber must not exceed "+n);for(;e.length>0&&!t(s,r);)e.pop();const o=e.length>0?e[e.length-1]:-1;e.push(i),this._startIndexes[i]=s+((255&o)<<24),this._endIndexes[i]=r+((65280&o)<<16)}}}get length(){return this._startIndexes.length}getStartLineNumber(e){return this._startIndexes[e]&n}getEndLineNumber(e){return this._endIndexes[e]&n}getType(e){return this._types?this._types[e]:void 0}hasTypes(){return!!this._types}isCollapsed(e){return this._collapseStates.get(e)}setCollapsed(e,t){this._collapseStates.set(e,t)}isUserDefined(e){return this._userDefinedStates.get(e)}setUserDefined(e,t){return this._userDefinedStates.set(e,t)}isRecovered(e){return this._recoveredStates.get(e)}setRecovered(e,t){return this._recoveredStates.set(e,t)}getSource(e){return this.isUserDefined(e)?1:this.isRecovered(e)?2:0}setSource(e,t){1===t?(this.setUserDefined(e,!0),this.setRecovered(e,!1)):2===t?(this.setUserDefined(e,!1),this.setRecovered(e,!0)):(this.setUserDefined(e,!1),this.setRecovered(e,!1))}setCollapsedAllOfType(e,t){let i=!1;if(this._types)for(let s=0;s<this._types.length;s++)this._types[s]===e&&(this.setCollapsed(s,t),i=!0);return i}toRegion(e){return new c(this,e)}getParentIndex(e){this.ensureParentIndices();const t=((this._startIndexes[e]&r)>>>24)+((this._endIndexes[e]&r)>>>16);return 65535===t?-1:t}contains(e,t){return this.getStartLineNumber(e)<=t&&this.getEndLineNumber(e)>=t}findIndex(e){let t=0,i=this._startIndexes.length;if(0===i)return-1;for(;t<i;){const s=Math.floor((t+i)/2);e<this.getStartLineNumber(s)?i=s:t=s+1}return t-1}findRange(e){let t=this.findIndex(e);if(t>=0){if(this.getEndLineNumber(t)>=e)return t;for(t=this.getParentIndex(t);-1!==t;){if(this.contains(t,e))return t;t=this.getParentIndex(t)}}return-1}toString(){const e=[];for(let t=0;t<this.length;t++)e[t]=`[${s[this.getSource(t)]}${this.isCollapsed(t)?"+":"-"}] ${this.getStartLineNumber(t)}/${this.getEndLineNumber(t)}`;return e.join(", ")}toFoldRange(e){return{startLineNumber:this._startIndexes[e]&n,endLineNumber:this._endIndexes[e]&n,type:this._types?this._types[e]:void 0,isCollapsed:this.isCollapsed(e),source:this.getSource(e)}}static fromFoldRanges(e){const t=e.length,i=new Uint32Array(t),s=new Uint32Array(t);let n=[],r=!1;for(let a=0;a<t;a++){const t=e[a];i[a]=t.startLineNumber,s[a]=t.endLineNumber,n.push(t.type),t.type&&(r=!0)}r||(n=void 0);const o=new a(i,s,n);for(let a=0;a<t;a++)e[a].isCollapsed&&o.setCollapsed(a,!0),o.setSource(a,e[a].source);return o}static sanitizeAndMerge(e,t,i,s){i=i??Number.MAX_VALUE;const n=(e,t)=>Array.isArray(e)?i=>i<t?e[i]:void 0:i=>i<t?e.toFoldRange(i):void 0,r=n(e,e.length),o=n(t,t.length);let a=0,c=0,l=r(0),h=o(0);const d=[];let u,g=0;const p=[];for(;l||h;){let e;if(h&&(!l||l.startLineNumber>=h.startLineNumber))l&&l.startLineNumber===h.startLineNumber?(1===h.source?e=h:(e=l,e.isCollapsed=h.isCollapsed&&(l.endLineNumber===h.endLineNumber||!s?.startsInside(l.startLineNumber+1,l.endLineNumber+1)),e.source=0),l=r(++a)):(e=h,h.isCollapsed&&0===h.source&&(e.source=2)),h=o(++c);else{let t=c,i=h;for(;;){if(!i||i.startLineNumber>l.endLineNumber){e=l;break}if(1===i.source&&i.endLineNumber>l.endLineNumber)break;i=o(++t)}l=r(++a)}if(e){for(;u&&u.endLineNumber<e.startLineNumber;)u=d.pop();e.endLineNumber>e.startLineNumber&&e.startLineNumber>g&&e.endLineNumber<=i&&(!u||u.endLineNumber>=e.endLineNumber)&&(p.push(e),g=e.startLineNumber,u&&d.push(u),u=e)}}return p}}class c{constructor(e,t){this.ranges=e,this.index=t}get startLineNumber(){return this.ranges.getStartLineNumber(this.index)}get endLineNumber(){return this.ranges.getEndLineNumber(this.index)}get regionIndex(){return this.index}get parentIndex(){return this.ranges.getParentIndex(this.index)}get isCollapsed(){return this.ranges.isCollapsed(this.index)}containedBy(e){return e.startLineNumber<=this.startLineNumber&&e.endLineNumber>=this.endLineNumber}containsLine(e){return this.startLineNumber<=e&&e<=this.endLineNumber}}},76495:(e,t,i)=>{"use strict";i.d(t,{hW:()=>r});var s=i(78049),n=i(44026);class r{constructor(e,t,i){this.editorModel=e,this.languageConfigurationService=t,this.foldingRangesLimit=i,this.id="indent"}dispose(){}compute(e){const t=this.languageConfigurationService.getLanguageConfiguration(this.editorModel.getLanguageId()).foldingRules,i=t&&!!t.offSide,n=t&&t.markers;return Promise.resolve(function(e,t,i,n=a){const r=e.getOptions().tabSize,c=new o(n);let l;i&&(l=new RegExp(`(${i.start.source})|(?:${i.end.source})`));const h=[],d=e.getLineCount()+1;h.push({indent:-1,endAbove:d,line:d});for(let o=e.getLineCount();o>0;o--){const i=e.getLineContent(o),n=(0,s.G)(i,r);let a,d=h[h.length-1];if(-1!==n){if(l&&(a=i.match(l))){if(!a[1]){h.push({indent:-2,endAbove:o,line:o});continue}{let e=h.length-1;for(;e>0&&-2!==h[e].indent;)e--;if(e>0){h.length=e+1,d=h[e],c.insertFirst(o,d.line,n),d.line=o,d.indent=n,d.endAbove=o;continue}}}if(d.indent>n){do{h.pop(),d=h[h.length-1]}while(d.indent>n);const e=d.endAbove-1;e-o>=1&&c.insertFirst(o,e,n)}d.indent===n?d.endAbove=o:h.push({indent:n,endAbove:o,line:o})}else t&&(d.endAbove=o)}return c.toIndentRanges(e)}(this.editorModel,i,n,this.foldingRangesLimit))}}class o{constructor(e){this._startIndexes=[],this._endIndexes=[],this._indentOccurrences=[],this._length=0,this._foldingRangesLimit=e}insertFirst(e,t,i){if(e>n.yy||t>n.yy)return;const s=this._length;this._startIndexes[s]=e,this._endIndexes[s]=t,this._length++,i<1e3&&(this._indentOccurrences[i]=(this._indentOccurrences[i]||0)+1)}toIndentRanges(e){const t=this._foldingRangesLimit.limit;if(this._length<=t){this._foldingRangesLimit.update(this._length,!1);const e=new Uint32Array(this._length),t=new Uint32Array(this._length);for(let i=this._length-1,s=0;i>=0;i--,s++)e[s]=this._startIndexes[i],t[s]=this._endIndexes[i];return new n.tz(e,t)}{this._foldingRangesLimit.update(this._length,t);let i=0,r=this._indentOccurrences.length;for(let e=0;e<this._indentOccurrences.length;e++){const s=this._indentOccurrences[e];if(s){if(s+i>t){r=e;break}i+=s}}const o=e.getOptions().tabSize,a=new Uint32Array(t),c=new Uint32Array(t);for(let n=this._length-1,l=0;n>=0;n--){const h=this._startIndexes[n],d=e.getLineContent(h),u=(0,s.G)(d,o);(u<r||u===r&&i++<t)&&(a[l]=h,c[l]=this._endIndexes[n],l++)}return new n.tz(a,c)}}}const a={limit:5e3,update:()=>{}}},87784:(e,t,i)=>{"use strict";i.d(t,{M:()=>a});var s=i(64383),n=i(5662),r=i(44026);const o={};class a{constructor(e,t,i,s,r){this.editorModel=e,this.providers=t,this.handleFoldingRangesChange=i,this.foldingRangesLimit=s,this.fallbackRangeProvider=r,this.id="syntax",this.disposables=new n.Cm,r&&this.disposables.add(r);for(const n of t)"function"===typeof n.onDidChange&&this.disposables.add(n.onDidChange(i))}compute(e){return function(e,t,i){let n=null;const r=e.map(((e,r)=>Promise.resolve(e.provideFoldingRanges(t,o,i)).then((e=>{if(!i.isCancellationRequested&&Array.isArray(e)){Array.isArray(n)||(n=[]);const i=t.getLineCount();for(const t of e)t.start>0&&t.end>t.start&&t.end<=i&&n.push({start:t.start,end:t.end,rank:r,kind:t.kind})}}),s.M_)));return Promise.all(r).then((e=>n))}(this.providers,this.editorModel,e).then((t=>{if(t){return function(e,t){const i=e.sort(((e,t)=>{let i=e.start-t.start;return 0===i&&(i=e.rank-t.rank),i})),s=new c(t);let n;const r=[];for(const o of i)if(n){if(o.start>n.start)if(o.end<=n.end)r.push(n),n=o,s.add(o.start,o.end,o.kind&&o.kind.value,r.length);else{if(o.start>n.end){do{n=r.pop()}while(n&&o.start>n.end);n&&r.push(n),n=o}s.add(o.start,o.end,o.kind&&o.kind.value,r.length)}}else n=o,s.add(o.start,o.end,o.kind&&o.kind.value,r.length);return s.toIndentRanges()}(t,this.foldingRangesLimit)}return this.fallbackRangeProvider?.compute(e)??null}))}dispose(){this.disposables.dispose()}}class c{constructor(e){this._startIndexes=[],this._endIndexes=[],this._nestingLevels=[],this._nestingLevelCounts=[],this._types=[],this._length=0,this._foldingRangesLimit=e}add(e,t,i,s){if(e>r.yy||t>r.yy)return;const n=this._length;this._startIndexes[n]=e,this._endIndexes[n]=t,this._nestingLevels[n]=s,this._types[n]=i,this._length++,s<30&&(this._nestingLevelCounts[s]=(this._nestingLevelCounts[s]||0)+1)}toIndentRanges(){const e=this._foldingRangesLimit.limit;if(this._length<=e){this._foldingRangesLimit.update(this._length,!1);const e=new Uint32Array(this._length),t=new Uint32Array(this._length);for(let i=0;i<this._length;i++)e[i]=this._startIndexes[i],t[i]=this._endIndexes[i];return new r.tz(e,t,this._types)}{this._foldingRangesLimit.update(this._length,e);let t=0,i=this._nestingLevelCounts.length;for(let r=0;r<this._nestingLevelCounts.length;r++){const s=this._nestingLevelCounts[r];if(s){if(s+t>e){i=r;break}t+=s}}const s=new Uint32Array(e),n=new Uint32Array(e),o=[];for(let r=0,a=0;r<this._length;r++){const c=this._nestingLevels[r];(c<i||c===i&&t++<e)&&(s[a]=this._startIndexes[r],n[a]=this._endIndexes[r],o[a]=this._types[r],a++)}return new r.tz(s,n,o)}}}},70552:(e,t,i)=>{"use strict";var s=i(31450),n=i(79027),r=i(78209);class o extends s.ks{constructor(){super({id:"editor.action.fontZoomIn",label:r.kg("EditorFontZoomIn.label","Increase Editor Font Size"),alias:"Increase Editor Font Size",precondition:void 0})}run(e,t){n.D.setZoomLevel(n.D.getZoomLevel()+1)}}class a extends s.ks{constructor(){super({id:"editor.action.fontZoomOut",label:r.kg("EditorFontZoomOut.label","Decrease Editor Font Size"),alias:"Decrease Editor Font Size",precondition:void 0})}run(e,t){n.D.setZoomLevel(n.D.getZoomLevel()-1)}}class c extends s.ks{constructor(){super({id:"editor.action.fontZoomReset",label:r.kg("EditorFontZoomReset.label","Reset Editor Font Size"),alias:"Reset Editor Font Size",precondition:void 0})}run(e,t){n.D.setZoomLevel(0)}}(0,s.Fl)(o),(0,s.Fl)(a),(0,s.Fl)(c)},49079:(e,t,i)=>{"use strict";i.d(t,{Pj:()=>L,jX:()=>T,vg:()=>k,_V:()=>N});var s=i(25890),n=i(18447),r=i(64383),o=i(42522),a=i(58925),c=i(631),l=i(79400),h=i(50868),d=i(34326),u=i(83069),g=i(36677),p=i(75326),m=i(10920),f=i(18938),_=i(36998),v=i(50091);class C{constructor(e){this.value=e,this._lower=e.toLowerCase()}static toKey(e){return"string"===typeof e?e.toLowerCase():e._lower}}class E{constructor(e){if(this._set=new Set,e)for(const t of e)this.add(t)}add(e){this._set.add(C.toKey(e))}has(e){return this._set.has(C.toKey(e))}}var b=i(63591),S=i(56942),y=i(18801),w=i(87213);function R(e,t,i){const s=[],n=new E,r=e.ordered(i);for(const a of r)s.push(a),a.extensionId&&n.add(a.extensionId);const o=t.ordered(i);for(const a of o){if(a.extensionId){if(n.has(a.extensionId))continue;n.add(a.extensionId)}s.push({displayName:a.displayName,extensionId:a.extensionId,provideDocumentFormattingEdits:(e,t,i)=>a.provideDocumentRangeFormattingEdits(e,e.getFullModelRange(),t,i)})}return s}class L{static{this._selectors=new a.w}static setFormatterSelector(e){return{dispose:L._selectors.unshift(e)}}static async select(e,t,i,s){if(0===e.length)return;const n=o.f.first(L._selectors);return n?await n(e,t,i,s):void 0}}async function T(e,t,i,s,n,r,o){const a=e.get(b._Y),{documentRangeFormattingEditProvider:c}=e.get(S.ILanguageFeaturesService),l=(0,d.z9)(t)?t.getModel():t,h=c.ordered(l),u=await L.select(h,l,s,2);u&&(n.report(u),await a.invokeFunction(x,u,t,i,r,o))}async function x(e,t,i,n,r,o){const a=e.get(m.IEditorWorkerService),c=e.get(y.rr),l=e.get(w.Nt);let u,f;(0,d.z9)(i)?(u=i.getModel(),f=new h.gI(i,5,void 0,r)):(u=i,f=new h.ER(i,r));const v=[];let C=0;for(const h of(0,s._j)(n).sort(g.Q.compareRangesUsingStarts))C>0&&g.Q.areIntersectingOrTouching(v[C-1],h)?v[C-1]=g.Q.fromPositions(v[C-1].getStartPosition(),h.getEndPosition()):C=v.push(h);const E=async e=>{c.trace("[format][provideDocumentRangeFormattingEdits] (request)",t.extensionId?.value,e);const i=await t.provideDocumentRangeFormattingEdits(u,e,u.getFormattingOptions(),f.token)||[];return c.trace("[format][provideDocumentRangeFormattingEdits] (response)",t.extensionId?.value,i),i},b=(e,t)=>{if(!e.length||!t.length)return!1;const i=e.reduce(((e,t)=>g.Q.plusRange(e,t.range)),e[0].range);if(!t.some((e=>g.Q.intersectRanges(i,e.range))))return!1;for(const s of e)for(const e of t)if(g.Q.intersectRanges(s.range,e.range))return!0;return!1},S=[],R=[];try{if("function"===typeof t.provideDocumentRangesFormattingEdits){c.trace("[format][provideDocumentRangeFormattingEdits] (request)",t.extensionId?.value,v);const e=await t.provideDocumentRangesFormattingEdits(u,v,u.getFormattingOptions(),f.token)||[];c.trace("[format][provideDocumentRangeFormattingEdits] (response)",t.extensionId?.value,e),R.push(e)}else{for(const e of v){if(f.token.isCancellationRequested)return!0;R.push(await E(e))}for(let e=0;e<v.length;++e)for(let t=e+1;t<v.length;++t){if(f.token.isCancellationRequested)return!0;if(b(R[e],R[t])){const i=g.Q.plusRange(v[e],v[t]),s=await E(i);v.splice(t,1),v.splice(e,1),v.push(i),R.splice(t,1),R.splice(e,1),R.push(s),e=0,t=0}}}for(const e of R){if(f.token.isCancellationRequested)return!0;const t=await a.computeMoreMinimalEdits(u.uri,e);t&&S.push(...t)}}finally{f.dispose()}if(0===S.length)return!1;if((0,d.z9)(i))_.c.execute(i,S,!0),i.revealPositionInCenterIfOutsideViewport(i.getPosition(),1);else{const[{range:e}]=S,t=new p.L(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn);u.pushEditOperations([t],S.map((e=>({text:e.text,range:g.Q.lift(e.range),forceMoveMarkers:!0}))),(e=>{for(const{range:i}of e)if(g.Q.areIntersectingOrTouching(i,t))return[new p.L(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn)];return null}))}return l.playSignal(w.Rh.format,{userGesture:o}),!0}async function k(e,t,i,s,n,r){const o=e.get(b._Y),a=e.get(S.ILanguageFeaturesService),c=(0,d.z9)(t)?t.getModel():t,l=R(a.documentFormattingEditProvider,a.documentRangeFormattingEditProvider,c),h=await L.select(l,c,i,1);h&&(s.report(h),await o.invokeFunction(A,h,t,i,n,r))}async function A(e,t,i,s,n,r){const o=e.get(m.IEditorWorkerService),a=e.get(w.Nt);let c,l,u;(0,d.z9)(i)?(c=i.getModel(),l=new h.gI(i,5,void 0,n)):(c=i,l=new h.ER(i,n));try{const e=await t.provideDocumentFormattingEdits(c,c.getFormattingOptions(),l.token);if(u=await o.computeMoreMinimalEdits(c.uri,e),l.token.isCancellationRequested)return!0}finally{l.dispose()}if(!u||0===u.length)return!1;if((0,d.z9)(i))_.c.execute(i,u,2!==s),2!==s&&i.revealPositionInCenterIfOutsideViewport(i.getPosition(),1);else{const[{range:e}]=u,t=new p.L(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn);c.pushEditOperations([t],u.map((e=>({text:e.text,range:g.Q.lift(e.range),forceMoveMarkers:!0}))),(e=>{for(const{range:i}of e)if(g.Q.areIntersectingOrTouching(i,t))return[new p.L(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn)];return null}))}return a.playSignal(w.Rh.format,{userGesture:r}),!0}function N(e,t,i,s,n,o,a){const c=t.onTypeFormattingEditProvider.ordered(i);return 0===c.length||c[0].autoFormatTriggerCharacters.indexOf(n)<0?Promise.resolve(void 0):Promise.resolve(c[0].provideOnTypeFormattingEdits(i,s,n,o,a)).catch(r.M_).then((t=>e.computeMoreMinimalEdits(i.uri,t)))}v.w.registerCommand("_executeFormatRangeProvider",(async function(e,...t){const[i,o,a]=t;(0,c.j)(l.r.isUri(i)),(0,c.j)(g.Q.isIRange(o));const h=e.get(f.ITextModelService),d=e.get(m.IEditorWorkerService),u=e.get(S.ILanguageFeaturesService),p=await h.createModelReference(i);try{return async function(e,t,i,n,o,a){const c=t.documentRangeFormattingEditProvider.ordered(i);for(const l of c){const t=await Promise.resolve(l.provideDocumentRangeFormattingEdits(i,n,o,a)).catch(r.M_);if((0,s.EI)(t))return await e.computeMoreMinimalEdits(i.uri,t)}}(d,u,p.object.textEditorModel,g.Q.lift(o),a,n.XO.None)}finally{p.dispose()}})),v.w.registerCommand("_executeFormatDocumentProvider",(async function(e,...t){const[i,o]=t;(0,c.j)(l.r.isUri(i));const a=e.get(f.ITextModelService),h=e.get(m.IEditorWorkerService),d=e.get(S.ILanguageFeaturesService),u=await a.createModelReference(i);try{return async function(e,t,i,n,o){const a=R(t.documentFormattingEditProvider,t.documentRangeFormattingEditProvider,i);for(const c of a){const t=await Promise.resolve(c.provideDocumentFormattingEdits(i,n,o)).catch(r.M_);if((0,s.EI)(t))return await e.computeMoreMinimalEdits(i.uri,t)}}(h,d,u.object.textEditorModel,o,n.XO.None)}finally{u.dispose()}})),v.w.registerCommand("_executeFormatOnTypeProvider",(async function(e,...t){const[i,s,r,o]=t;(0,c.j)(l.r.isUri(i)),(0,c.j)(u.y.isIPosition(s)),(0,c.j)("string"===typeof r);const a=e.get(f.ITextModelService),h=e.get(m.IEditorWorkerService),d=e.get(S.ILanguageFeaturesService),g=await a.createModelReference(i);try{return N(h,d,g.object.textEditorModel,u.y.lift(s),r,o,n.XO.None)}finally{g.dispose()}}))},48279:(e,t,i)=>{"use strict";var s=i(25890),n=i(18447),r=i(64383),o=i(24939),a=i(5662),c=i(31450),l=i(80301),h=i(60534),d=i(36677),u=i(60002),g=i(10920),p=i(56942),m=i(49079),f=i(36998),_=i(78209),v=i(87213),C=i(50091),E=i(32848),b=i(63591),S=i(73823),y=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},w=function(e,t){return function(i,s){t(i,s,e)}};let R=class{static{this.ID="editor.contrib.autoFormat"}constructor(e,t,i,s){this._editor=e,this._languageFeaturesService=t,this._workerService=i,this._accessibilitySignalService=s,this._disposables=new a.Cm,this._sessionDisposables=new a.Cm,this._disposables.add(t.onTypeFormattingEditProvider.onDidChange(this._update,this)),this._disposables.add(e.onDidChangeModel((()=>this._update()))),this._disposables.add(e.onDidChangeModelLanguage((()=>this._update()))),this._disposables.add(e.onDidChangeConfiguration((e=>{e.hasChanged(56)&&this._update()}))),this._update()}dispose(){this._disposables.dispose(),this._sessionDisposables.dispose()}_update(){if(this._sessionDisposables.clear(),!this._editor.getOption(56))return;if(!this._editor.hasModel())return;const e=this._editor.getModel(),[t]=this._languageFeaturesService.onTypeFormattingEditProvider.ordered(e);if(!t||!t.autoFormatTriggerCharacters)return;const i=new h.y;for(const s of t.autoFormatTriggerCharacters)i.add(s.charCodeAt(0));this._sessionDisposables.add(this._editor.onDidType((e=>{const t=e.charCodeAt(e.length-1);i.has(t)&&this._trigger(String.fromCharCode(t))})))}_trigger(e){if(!this._editor.hasModel())return;if(this._editor.getSelections().length>1||!this._editor.getSelection().isEmpty())return;const t=this._editor.getModel(),i=this._editor.getPosition(),r=new n.Qi,o=this._editor.onDidChangeModelContent((e=>{if(e.isFlush)return r.cancel(),void o.dispose();for(let t=0,s=e.changes.length;t<s;t++){if(e.changes[t].range.endLineNumber<=i.lineNumber)return r.cancel(),void o.dispose()}}));(0,m._V)(this._workerService,this._languageFeaturesService,t,i,e,t.getFormattingOptions(),r.token).then((e=>{r.token.isCancellationRequested||(0,s.EI)(e)&&(this._accessibilitySignalService.playSignal(v.Rh.format,{userGesture:!1}),f.c.execute(this._editor,e,!0))})).finally((()=>{o.dispose()}))}};R=y([w(1,p.ILanguageFeaturesService),w(2,g.IEditorWorkerService),w(3,v.Nt)],R);let L=class{static{this.ID="editor.contrib.formatOnPaste"}constructor(e,t,i){this.editor=e,this._languageFeaturesService=t,this._instantiationService=i,this._callOnDispose=new a.Cm,this._callOnModel=new a.Cm,this._callOnDispose.add(e.onDidChangeConfiguration((()=>this._update()))),this._callOnDispose.add(e.onDidChangeModel((()=>this._update()))),this._callOnDispose.add(e.onDidChangeModelLanguage((()=>this._update()))),this._callOnDispose.add(t.documentRangeFormattingEditProvider.onDidChange(this._update,this))}dispose(){this._callOnDispose.dispose(),this._callOnModel.dispose()}_update(){this._callOnModel.clear(),this.editor.getOption(55)&&this.editor.hasModel()&&this._languageFeaturesService.documentRangeFormattingEditProvider.has(this.editor.getModel())&&this._callOnModel.add(this.editor.onDidPaste((({range:e})=>this._trigger(e))))}_trigger(e){this.editor.hasModel()&&(this.editor.getSelections().length>1||this._instantiationService.invokeFunction(m.jX,this.editor,e,2,S.ke.None,n.XO.None,!1).catch(r.dz))}};L=y([w(1,p.ILanguageFeaturesService),w(2,b._Y)],L);class T extends c.ks{constructor(){super({id:"editor.action.formatDocument",label:_.kg("formatDocument.label","Format Document"),alias:"Format Document",precondition:E.M$.and(u.R.notInCompositeEditor,u.R.writable,u.R.hasDocumentFormattingProvider),kbOpts:{kbExpr:u.R.editorTextFocus,primary:1572,linux:{primary:3111},weight:100},contextMenuOpts:{group:"1_modification",order:1.3}})}async run(e,t){if(t.hasModel()){const i=e.get(b._Y),s=e.get(S.N8);await s.showWhile(i.invokeFunction(m.vg,t,1,S.ke.None,n.XO.None,!0),250)}}}class x extends c.ks{constructor(){super({id:"editor.action.formatSelection",label:_.kg("formatSelection.label","Format Selection"),alias:"Format Selection",precondition:E.M$.and(u.R.writable,u.R.hasDocumentSelectionFormattingProvider),kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2084),weight:100},contextMenuOpts:{when:u.R.hasNonEmptySelection,group:"1_modification",order:1.31}})}async run(e,t){if(!t.hasModel())return;const i=e.get(b._Y),s=t.getModel(),r=t.getSelections().map((e=>e.isEmpty()?new d.Q(e.startLineNumber,1,e.startLineNumber,s.getLineMaxColumn(e.startLineNumber)):e)),o=e.get(S.N8);await o.showWhile(i.invokeFunction(m.jX,t,r,1,S.ke.None,n.XO.None,!0),250)}}(0,c.HW)(R.ID,R,2),(0,c.HW)(L.ID,L,2),(0,c.Fl)(T),(0,c.Fl)(x),C.w.registerCommand("editor.action.format",(async e=>{const t=e.get(l.T).getFocusedCodeEditor();if(!t||!t.hasModel())return;const i=e.get(C.d);t.getSelection().isEmpty()?await i.executeCommand("editor.action.formatDocument"):await i.executeCommand("editor.action.formatSelection")}))},36998:(e,t,i)=>{"use strict";i.d(t,{c:()=>o});var s=i(7085),n=i(36677),r=i(55190);class o{static _handleEolEdits(e,t){let i;const s=[];for(const n of t)"number"===typeof n.eol&&(i=n.eol),n.range&&"string"===typeof n.text&&s.push(n);return"number"===typeof i&&e.hasModel()&&e.getModel().pushEOL(i),s}static _isFullModelReplaceEdit(e,t){if(!e.hasModel())return!1;const i=e.getModel(),s=i.validateRange(t.range);return i.getFullModelRange().equalsRange(s)}static execute(e,t,i){i&&e.pushUndoStop();const a=r.D.capture(e),c=o._handleEolEdits(e,t);1===c.length&&o._isFullModelReplaceEdit(e,c[0])?e.executeEdits("formatEditsCommand",c.map((e=>s.k.replace(n.Q.lift(e.range),e.text)))):e.executeEdits("formatEditsCommand",c.map((e=>s.k.replaceMove(n.Q.lift(e.range),e.text)))),i&&e.pushUndoStop(),a.restoreRelativeVerticalPositionOfCursor(e)}}},65877:(e,t,i)=>{"use strict";i.d(t,{j:()=>oe,i:()=>ce});var s=i(10350),n=i(5662),r=i(31450),o=i(80301),a=i(83069),c=i(36677),l=i(60002),h=i(25890),d=i(41234),u=i(58925),g=i(91508),p=i(79400),m=i(14718),f=i(63591),_=i(75147),v=i(84001),C=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},E=function(e,t){return function(i,s){t(i,s,e)}};class b{constructor(e,t,i){this.marker=e,this.index=t,this.total=i}}let S=class{constructor(e,t,i){this._markerService=t,this._configService=i,this._onDidChange=new d.vl,this.onDidChange=this._onDidChange.event,this._dispoables=new n.Cm,this._markers=[],this._nextIdx=-1,p.r.isUri(e)?this._resourceFilter=t=>t.toString()===e.toString():e&&(this._resourceFilter=e);const s=this._configService.getValue("problems.sortOrder"),r=(e,t)=>{let i=(0,g.UD)(e.resource.toString(),t.resource.toString());return 0===i&&(i="position"===s?c.Q.compareRangesUsingStarts(e,t)||_.cj.compare(e.severity,t.severity):_.cj.compare(e.severity,t.severity)||c.Q.compareRangesUsingStarts(e,t)),i},o=()=>{this._markers=this._markerService.read({resource:p.r.isUri(e)?e:void 0,severities:_.cj.Error|_.cj.Warning|_.cj.Info}),"function"===typeof e&&(this._markers=this._markers.filter((e=>this._resourceFilter(e.resource)))),this._markers.sort(r)};o(),this._dispoables.add(t.onMarkerChanged((e=>{this._resourceFilter&&!e.some((e=>this._resourceFilter(e)))||(o(),this._nextIdx=-1,this._onDidChange.fire())})))}dispose(){this._dispoables.dispose(),this._onDidChange.dispose()}matches(e){return!this._resourceFilter&&!e||!(!this._resourceFilter||!e)&&this._resourceFilter(e)}get selected(){const e=this._markers[this._nextIdx];return e&&new b(e,this._nextIdx+1,this._markers.length)}_initIdx(e,t,i){let s=!1,n=this._markers.findIndex((t=>t.resource.toString()===e.uri.toString()));n<0&&(n=(0,h.El)(this._markers,{resource:e.uri},((e,t)=>(0,g.UD)(e.resource.toString(),t.resource.toString()))),n<0&&(n=~n));for(let r=n;r<this._markers.length;r++){let i=c.Q.lift(this._markers[r]);if(i.isEmpty()){const t=e.getWordAtPosition(i.getStartPosition());t&&(i=new c.Q(i.startLineNumber,t.startColumn,i.startLineNumber,t.endColumn))}if(t&&(i.containsPosition(t)||t.isBeforeOrEqual(i.getStartPosition()))){this._nextIdx=r,s=!0;break}if(this._markers[r].resource.toString()!==e.uri.toString())break}s||(this._nextIdx=i?0:this._markers.length-1),this._nextIdx<0&&(this._nextIdx=this._markers.length-1)}resetIndex(){this._nextIdx=-1}move(e,t,i){if(0===this._markers.length)return!1;const s=this._nextIdx;return-1===this._nextIdx?this._initIdx(t,i,e):e?this._nextIdx=(this._nextIdx+1)%this._markers.length:e||(this._nextIdx=(this._nextIdx-1+this._markers.length)%this._markers.length),s!==this._nextIdx}find(e,t){let i=this._markers.findIndex((t=>t.resource.toString()===e.toString()));if(!(i<0))for(;i<this._markers.length;i++)if(c.Q.containsPosition(this._markers[i],t))return new b(this._markers[i],i+1,this._markers.length)}};S=C([E(1,_.DR),E(2,v.pG)],S);const y=(0,f.u1)("IMarkerNavigationService");let w=class{constructor(e,t){this._markerService=e,this._configService=t,this._provider=new u.w}getMarkerList(e){for(const t of this._provider){const i=t.getMarkerList(e);if(i)return i}return new S(e,this._markerService,this._configService)}};w=C([E(0,_.DR),E(1,v.pG)],w),(0,m.v)(y,w,1);var R,L=i(78209),T=i(27195),x=i(32848),k=i(61394),A=i(8597),N=i(31295),I=i(47661),O=i(89403),D=i(84226),M=i(57629),P=i(67841),F=i(49099),U=i(25689),H=i(42291);!function(e){e.className=function(e){switch(e){case H.A.Ignore:return"severity-ignore "+U.L.asClassName(s.W.info);case H.A.Info:return U.L.asClassName(s.W.info);case H.A.Warning:return U.L.asClassName(s.W.warning);case H.A.Error:return U.L.asClassName(s.W.error);default:return""}}}(R||(R={}));var B,W=i(66261),V=i(47612),z=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},G=function(e,t){return function(i,s){t(i,s,e)}};class j{constructor(e,t,i,s,r){this._openerService=s,this._labelService=r,this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new n.Cm,this._editor=t;const o=document.createElement("div");o.className="descriptioncontainer",this._messageBlock=document.createElement("div"),this._messageBlock.classList.add("message"),this._messageBlock.setAttribute("aria-live","assertive"),this._messageBlock.setAttribute("role","alert"),o.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),o.appendChild(this._relatedBlock),this._disposables.add(A.b2(this._relatedBlock,"click",(e=>{e.preventDefault();const t=this._relatedDiagnostics.get(e.target);t&&i(t)}))),this._scrollable=new N.Se(o,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:6,verticalScrollbarSize:6}),e.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll((e=>{o.style.left=`-${e.scrollLeft}px`,o.style.top=`-${e.scrollTop}px`}))),this._disposables.add(this._scrollable)}dispose(){(0,n.AS)(this._disposables)}update(e){const{source:t,message:i,relatedInformation:s,code:n}=e;let r=(t?.length||0)+2;n&&(r+="string"===typeof n?n.length:n.value.length);const o=(0,g.uz)(i);this._lines=o.length,this._longestLineLength=0;for(const h of o)this._longestLineLength=Math.max(h.length+r,this._longestLineLength);A.w_(this._messageBlock),this._messageBlock.setAttribute("aria-label",this.getAriaLabel(e)),this._editor.applyFontInfo(this._messageBlock);let a=this._messageBlock;for(const h of o)a=document.createElement("div"),a.innerText=h,""===h&&(a.style.height=this._messageBlock.style.lineHeight),this._messageBlock.appendChild(a);if(t||n){const e=document.createElement("span");if(e.classList.add("details"),a.appendChild(e),t){const i=document.createElement("span");i.innerText=t,i.classList.add("source"),e.appendChild(i)}if(n)if("string"===typeof n){const t=document.createElement("span");t.innerText=`(${n})`,t.classList.add("code"),e.appendChild(t)}else{this._codeLink=A.$("a.code-link"),this._codeLink.setAttribute("href",`${n.target.toString()}`),this._codeLink.onclick=e=>{this._openerService.open(n.target,{allowCommands:!0}),e.preventDefault(),e.stopPropagation()};A.BC(this._codeLink,A.$("span")).innerText=n.value,e.appendChild(this._codeLink)}}if(A.w_(this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),(0,h.EI)(s)){const e=this._relatedBlock.appendChild(document.createElement("div"));e.style.paddingTop=`${Math.floor(.66*this._editor.getOption(67))}px`,this._lines+=1;for(const t of s){const i=document.createElement("div"),s=document.createElement("a");s.classList.add("filename"),s.innerText=`${this._labelService.getUriBasenameLabel(t.resource)}(${t.startLineNumber}, ${t.startColumn}): `,s.title=this._labelService.getUriLabel(t.resource),this._relatedDiagnostics.set(s,t);const n=document.createElement("span");n.innerText=t.message,i.appendChild(s),i.appendChild(n),this._lines+=1,e.appendChild(i)}}const c=this._editor.getOption(50),l=Math.ceil(c.typicalFullwidthCharacterWidth*this._longestLineLength*.75),d=c.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:l,scrollHeight:d})}layout(e,t){this._scrollable.getDomNode().style.height=`${e}px`,this._scrollable.getDomNode().style.width=`${t}px`,this._scrollable.setScrollDimensions({width:t,height:e})}getHeightInLines(){return Math.min(17,this._lines)}getAriaLabel(e){let t="";switch(e.severity){case _.cj.Error:t=L.kg("Error","Error");break;case _.cj.Warning:t=L.kg("Warning","Warning");break;case _.cj.Info:t=L.kg("Info","Info");break;case _.cj.Hint:t=L.kg("Hint","Hint")}let i=L.kg("marker aria","{0} at {1}. ",t,e.startLineNumber+":"+e.startColumn);const s=this._editor.getModel();if(s&&e.startLineNumber<=s.getLineCount()&&e.startLineNumber>=1){i=`${s.getLineContent(e.startLineNumber)}, ${i}`}return i}}let K=class extends D.j6{static{B=this}static{this.TitleMenu=new T.D8("gotoErrorTitleMenu")}constructor(e,t,i,s,r,o,a){super(e,{showArrow:!0,showFrame:!0,isAccessible:!0,frameWidth:1},r),this._themeService=t,this._openerService=i,this._menuService=s,this._contextKeyService=o,this._labelService=a,this._callOnDispose=new n.Cm,this._onDidSelectRelatedInformation=new d.vl,this.onDidSelectRelatedInformation=this._onDidSelectRelatedInformation.event,this._severity=_.cj.Warning,this._backgroundColor=I.Q1.white,this._applyTheme(t.getColorTheme()),this._callOnDispose.add(t.onDidColorThemeChange(this._applyTheme.bind(this))),this.create()}_applyTheme(e){this._backgroundColor=e.getColor(ie);let t=Q,i=X;this._severity===_.cj.Warning?(t=Z,i=J):this._severity===_.cj.Info&&(t=ee,i=te);const s=e.getColor(t),n=e.getColor(i);this.style({arrowColor:s,frameColor:s,headerBackgroundColor:n,primaryHeadingColor:e.getColor(D._X),secondaryHeadingColor:e.getColor(D.e3)})}_applyStyles(){this._parentContainer&&(this._parentContainer.style.backgroundColor=this._backgroundColor?this._backgroundColor.toString():""),super._applyStyles()}dispose(){this._callOnDispose.dispose(),super.dispose()}_fillHead(e){super._fillHead(e),this._disposables.add(this._actionbarWidget.actionRunner.onWillRun((e=>this.editor.focus())));const t=[],i=this._menuService.getMenuActions(B.TitleMenu,this._contextKeyService);(0,M.Ot)(i,t),this._actionbarWidget.push(t,{label:!1,icon:!0,index:0})}_fillTitleIcon(e){this._icon=A.BC(e,A.$(""))}_fillBody(e){this._parentContainer=e,e.classList.add("marker-widget"),this._parentContainer.tabIndex=0,this._parentContainer.setAttribute("role","tooltip"),this._container=document.createElement("div"),e.appendChild(this._container),this._message=new j(this._container,this.editor,(e=>this._onDidSelectRelatedInformation.fire(e)),this._openerService,this._labelService),this._disposables.add(this._message)}show(){throw new Error("call showAtMarker")}showAtMarker(e,t,i){this._container.classList.remove("stale"),this._message.update(e),this._severity=e.severity,this._applyTheme(this._themeService.getColorTheme());const s=c.Q.lift(e),n=this.editor.getPosition(),r=n&&s.containsPosition(n)?n:s.getStartPosition();super.show(r,this.computeRequiredHeight());const o=this.editor.getModel();if(o){const e=i>1?L.kg("problems","{0} of {1} problems",t,i):L.kg("change","{0} of {1} problem",t,i);this.setTitle((0,O.P8)(o.uri),e)}this._icon.className=`codicon ${R.className(_.cj.toSeverity(this._severity))}`,this.editor.revealPositionNearTop(r,0),this.editor.focus()}updateMarker(e){this._container.classList.remove("stale"),this._message.update(e)}showStale(){this._container.classList.add("stale"),this._relayout()}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._heightInPixel=e,this._message.layout(e,t),this._container.style.height=`${e}px`}_onWidth(e){this._message.layout(this._heightInPixel,e)}_relayout(){super._relayout(this.computeRequiredHeight())}computeRequiredHeight(){return 3+this._message.getHeightInLines()}};K=B=z([G(1,V.Gy),G(2,F.C),G(3,T.ez),G(4,f._Y),G(5,x.fN),G(6,P.L)],K);const Y=(0,W.yLr)(W.Rbi,W.AN$),q=(0,W.yLr)(W.Hng,W.Stt),$=(0,W.yLr)(W.pOz,W.IIb),Q=(0,W.x1A)("editorMarkerNavigationError.background",{dark:Y,light:Y,hcDark:W.b1q,hcLight:W.b1q},L.kg("editorMarkerNavigationError","Editor marker navigation widget error color.")),X=(0,W.x1A)("editorMarkerNavigationError.headerBackground",{dark:(0,W.JO0)(Q,.1),light:(0,W.JO0)(Q,.1),hcDark:null,hcLight:null},L.kg("editorMarkerNavigationErrorHeaderBackground","Editor marker navigation widget error heading background.")),Z=(0,W.x1A)("editorMarkerNavigationWarning.background",{dark:q,light:q,hcDark:W.b1q,hcLight:W.b1q},L.kg("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),J=(0,W.x1A)("editorMarkerNavigationWarning.headerBackground",{dark:(0,W.JO0)(Z,.1),light:(0,W.JO0)(Z,.1),hcDark:"#0C141F",hcLight:(0,W.JO0)(Z,.2)},L.kg("editorMarkerNavigationWarningBackground","Editor marker navigation widget warning heading background.")),ee=(0,W.x1A)("editorMarkerNavigationInfo.background",{dark:$,light:$,hcDark:W.b1q,hcLight:W.b1q},L.kg("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),te=(0,W.x1A)("editorMarkerNavigationInfo.headerBackground",{dark:(0,W.JO0)(ee,.1),light:(0,W.JO0)(ee,.1),hcDark:null,hcLight:null},L.kg("editorMarkerNavigationInfoHeaderBackground","Editor marker navigation widget info heading background.")),ie=(0,W.x1A)("editorMarkerNavigation.background",W.YtV,L.kg("editorMarkerNavigationBackground","Editor marker navigation widget background."));var se,ne=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},re=function(e,t){return function(i,s){t(i,s,e)}};let oe=class{static{se=this}static{this.ID="editor.contrib.markerController"}static get(e){return e.getContribution(se.ID)}constructor(e,t,i,s,r){this._markerNavigationService=t,this._contextKeyService=i,this._editorService=s,this._instantiationService=r,this._sessionDispoables=new n.Cm,this._editor=e,this._widgetVisible=he.bindTo(this._contextKeyService)}dispose(){this._cleanUp(),this._sessionDispoables.dispose()}_cleanUp(){this._widgetVisible.reset(),this._sessionDispoables.clear(),this._widget=void 0,this._model=void 0}_getOrCreateModel(e){if(this._model&&this._model.matches(e))return this._model;let t=!1;return this._model&&(t=!0,this._cleanUp()),this._model=this._markerNavigationService.getMarkerList(e),t&&this._model.move(!0,this._editor.getModel(),this._editor.getPosition()),this._widget=this._instantiationService.createInstance(K,this._editor),this._widget.onDidClose((()=>this.close()),this,this._sessionDispoables),this._widgetVisible.set(!0),this._sessionDispoables.add(this._model),this._sessionDispoables.add(this._widget),this._sessionDispoables.add(this._editor.onDidChangeCursorPosition((e=>{this._model?.selected&&c.Q.containsPosition(this._model?.selected.marker,e.position)||this._model?.resetIndex()}))),this._sessionDispoables.add(this._model.onDidChange((()=>{if(!this._widget||!this._widget.position||!this._model)return;const e=this._model.find(this._editor.getModel().uri,this._widget.position);e?this._widget.updateMarker(e.marker):this._widget.showStale()}))),this._sessionDispoables.add(this._widget.onDidSelectRelatedInformation((e=>{this._editorService.openCodeEditor({resource:e.resource,options:{pinned:!0,revealIfOpened:!0,selection:c.Q.lift(e).collapseToStart()}},this._editor),this.close(!1)}))),this._sessionDispoables.add(this._editor.onDidChangeModel((()=>this._cleanUp()))),this._model}close(e=!0){this._cleanUp(),e&&this._editor.focus()}showAtMarker(e){if(this._editor.hasModel()){const t=this._getOrCreateModel(this._editor.getModel().uri);t.resetIndex(),t.move(!0,this._editor.getModel(),new a.y(e.startLineNumber,e.startColumn)),t.selected&&this._widget.showAtMarker(t.selected.marker,t.selected.index,t.selected.total)}}async nagivate(e,t){if(this._editor.hasModel()){const i=this._getOrCreateModel(t?void 0:this._editor.getModel().uri);if(i.move(e,this._editor.getModel(),this._editor.getPosition()),!i.selected)return;if(i.selected.marker.resource.toString()!==this._editor.getModel().uri.toString()){this._cleanUp();const s=await this._editorService.openCodeEditor({resource:i.selected.marker.resource,options:{pinned:!1,revealIfOpened:!0,selectionRevealType:2,selection:i.selected.marker}},this._editor);s&&(se.get(s)?.close(),se.get(s)?.nagivate(e,t))}else this._widget.showAtMarker(i.selected.marker,i.selected.index,i.selected.total)}}};oe=se=ne([re(1,y),re(2,x.fN),re(3,o.T),re(4,f._Y)],oe);class ae extends r.ks{constructor(e,t,i){super(i),this._next=e,this._multiFile=t}async run(e,t){t.hasModel()&&oe.get(t)?.nagivate(this._next,this._multiFile)}}class ce extends ae{static{this.ID="editor.action.marker.next"}static{this.LABEL=L.kg("markerAction.next.label","Go to Next Problem (Error, Warning, Info)")}constructor(){super(!0,!1,{id:ce.ID,label:ce.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:l.R.focus,primary:578,weight:100},menuOpts:{menuId:K.TitleMenu,title:ce.LABEL,icon:(0,k.pU)("marker-navigation-next",s.W.arrowDown,L.kg("nextMarkerIcon","Icon for goto next marker.")),group:"navigation",order:1}})}}class le extends ae{static{this.ID="editor.action.marker.prev"}static{this.LABEL=L.kg("markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)")}constructor(){super(!1,!1,{id:le.ID,label:le.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:l.R.focus,primary:1602,weight:100},menuOpts:{menuId:K.TitleMenu,title:le.LABEL,icon:(0,k.pU)("marker-navigation-previous",s.W.arrowUp,L.kg("previousMarkerIcon","Icon for goto previous marker.")),group:"navigation",order:2}})}}(0,r.HW)(oe.ID,oe,4),(0,r.Fl)(ce),(0,r.Fl)(le),(0,r.Fl)(class extends ae{constructor(){super(!0,!0,{id:"editor.action.marker.nextInFiles",label:L.kg("markerAction.nextInFiles.label","Go to Next Problem in Files (Error, Warning, Info)"),alias:"Go to Next Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:l.R.focus,primary:66,weight:100},menuOpts:{menuId:T.D8.MenubarGoMenu,title:L.kg({key:"miGotoNextProblem",comment:["&& denotes a mnemonic"]},"Next &&Problem"),group:"6_problem_nav",order:1}})}}),(0,r.Fl)(class extends ae{constructor(){super(!1,!0,{id:"editor.action.marker.prevInFiles",label:L.kg("markerAction.previousInFiles.label","Go to Previous Problem in Files (Error, Warning, Info)"),alias:"Go to Previous Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:l.R.focus,primary:1090,weight:100},menuOpts:{menuId:T.D8.MenubarGoMenu,title:L.kg({key:"miGotoPreviousProblem",comment:["&& denotes a mnemonic"]},"Previous &&Problem"),group:"6_problem_nav",order:2}})}});const he=new x.N1("markersNavigationVisible",!1),de=r.DX.bindToContribution(oe.get);(0,r.E_)(new de({id:"closeMarkersNavigation",precondition:he,handler:e=>e.close(),kbOpts:{weight:150,kbExpr:l.R.focus,primary:9,secondary:[1033]}}))},99312:(e,t,i)=>{"use strict";i.d(t,{mR:()=>K,bn:()=>j,QS:()=>G});var s=i(11007),n=i(90766),r=i(24939),o=i(631),a=i(79400),c=i(50868),l=i(34326),h=i(31450),d=i(80301),u=i(29163),g=i(83069),p=i(36677),m=i(60002),f=i(62083),_=i(23646),v=i(79614),C=i(41234),E=i(5662),b=i(89403),S=i(78209),y=i(32848),w=i(14718),R=i(63591),L=i(98031),T=i(59261),x=i(58591),k=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},A=function(e,t){return function(i,s){t(i,s,e)}};const N=new y.N1("hasSymbols",!1,(0,S.kg)("hasSymbols","Whether there are symbol locations that can be navigated via keyboard-only.")),I=(0,R.u1)("ISymbolNavigationService");let O=class{constructor(e,t,i,s){this._editorService=t,this._notificationService=i,this._keybindingService=s,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=N.bindTo(e)}reset(){this._ctxHasSymbols.reset(),this._currentState?.dispose(),this._currentMessage?.dispose(),this._currentModel=void 0,this._currentIdx=-1}put(e){const t=e.parent.parent;if(t.references.length<=1)return void this.reset();this._currentModel=t,this._currentIdx=t.references.indexOf(e),this._ctxHasSymbols.set(!0),this._showMessage();const i=new D(this._editorService),s=i.onDidChange((e=>{if(this._ignoreEditorChange)return;const i=this._editorService.getActiveCodeEditor();if(!i)return;const s=i.getModel(),n=i.getPosition();if(!s||!n)return;let r=!1,o=!1;for(const a of t.references)if((0,b.n4)(a.uri,s.uri))r=!0,o=o||p.Q.containsPosition(a.range,n);else if(r)break;r&&o||this.reset()}));this._currentState=(0,E.qE)(i,s)}revealNext(e){if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;const t=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:t.uri,options:{selection:p.Q.collapseToStart(t.range),selectionRevealType:3}},e).finally((()=>{this._ignoreEditorChange=!1}))}_showMessage(){this._currentMessage?.dispose();const e=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),t=e?(0,S.kg)("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,e.getLabel()):(0,S.kg)("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(t)}};O=k([A(0,y.fN),A(1,d.T),A(2,x.Ot),A(3,L.b)],O),(0,w.v)(I,O,1),(0,h.E_)(new class extends h.DX{constructor(){super({id:"editor.gotoNextSymbolFromResult",precondition:N,kbOpts:{weight:100,primary:70}})}runEditorCommand(e,t){return e.get(I).revealNext(t)}}),T.f.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:N,primary:9,handler(e){e.get(I).reset()}});let D=class{constructor(e){this._listener=new Map,this._disposables=new E.Cm,this._onDidChange=new C.vl,this.onDidChange=this._onDidChange.event,this._disposables.add(e.onCodeEditorRemove(this._onDidRemoveEditor,this)),this._disposables.add(e.onCodeEditorAdd(this._onDidAddEditor,this)),e.listCodeEditors().forEach(this._onDidAddEditor,this)}dispose(){this._disposables.dispose(),this._onDidChange.dispose(),(0,E.AS)(this._listener.values())}_onDidAddEditor(e){this._listener.set(e,(0,E.qE)(e.onDidChangeCursorPosition((t=>this._onDidChange.fire({editor:e}))),e.onDidChangeModelContent((t=>this._onDidChange.fire({editor:e})))))}_onDidRemoveEditor(e){this._listener.get(e)?.dispose(),this._listener.delete(e)}};D=k([A(0,d.T)],D);var M=i(99645),P=i(84226),F=i(27195),U=i(50091),H=i(73823),B=i(80538),W=i(56942),V=i(42522),z=i(28290);F.ZG.appendMenuItem(F.D8.EditorContext,{submenu:F.D8.EditorContextPeek,title:S.kg("peek.submenu","Peek"),group:"navigation",order:100});class G{static is(e){return!(!e||"object"!==typeof e)&&(e instanceof G||!(!g.y.isIPosition(e.position)||!e.model))}constructor(e,t){this.model=e,this.position=t}}class j extends h.qO{static{this._allSymbolNavigationCommands=new Map}static{this._activeAlternativeCommands=new Set}static all(){return j._allSymbolNavigationCommands.values()}static _patchConfig(e){const t={...e,f1:!0};if(t.menu)for(const i of V.f.wrap(t.menu))i.id!==F.D8.EditorContext&&i.id!==F.D8.EditorContextPeek||(i.when=y.M$.and(e.precondition,i.when));return t}constructor(e,t){super(j._patchConfig(t)),this.configuration=e,j._allSymbolNavigationCommands.set(t.id,this)}runEditorCommand(e,t,i,r){if(!t.hasModel())return Promise.resolve(void 0);const o=e.get(x.Ot),a=e.get(d.T),l=e.get(H.N8),h=e.get(I),u=e.get(W.ILanguageFeaturesService),g=e.get(R._Y),p=t.getModel(),m=t.getPosition(),f=G.is(i)?i:new G(p,m),_=new c.gI(t,5),v=(0,n.PK)(this._getLocationModel(u,f.model,f.position,_.token),_.token).then((async e=>{if(!e||_.token.isCancellationRequested)return;let n;if((0,s.xE)(e.ariaMessage),e.referenceAt(p.uri,m)){const e=this._getAlternativeCommand(t);!j._activeAlternativeCommands.has(e)&&j._allSymbolNavigationCommands.has(e)&&(n=j._allSymbolNavigationCommands.get(e))}const o=e.references.length;if(0===o){if(!this.configuration.muteMessage){const e=p.getWordAtPosition(m);M.k.get(t)?.showMessage(this._getNoResultFoundMessage(e),m)}}else{if(1!==o||!n)return this._onResult(a,h,t,e,r);j._activeAlternativeCommands.add(this.desc.id),g.invokeFunction((e=>n.runEditorCommand(e,t,i,r).finally((()=>{j._activeAlternativeCommands.delete(this.desc.id)}))))}}),(e=>{o.error(e)})).finally((()=>{_.dispose()}));return l.showWhile(v,250),v}async _onResult(e,t,i,s,n){const r=this._getGoToPreference(i);if(i instanceof u.t||!(this.configuration.openInPeek||"peek"===r&&s.references.length>1)){const o=s.firstReference(),a=s.references.length>1&&"gotoAndPeek"===r,c=await this._openReference(i,e,o,this.configuration.openToSide,!a);a&&c?this._openInPeek(c,s,n):s.dispose(),"goto"===r&&t.put(o)}else this._openInPeek(i,s,n)}async _openReference(e,t,i,s,n){let r;if((0,f.Iu)(i)&&(r=i.targetSelectionRange),r||(r=i.range),!r)return;const o=await t.openCodeEditor({resource:i.uri,options:{selection:p.Q.collapseToStart(r),selectionRevealType:3,selectionSource:"code.jump"}},e,s);if(o){if(n){const e=o.getModel(),t=o.createDecorationsCollection([{range:r,options:{description:"symbol-navigate-action-highlight",className:"symbolHighlight"}}]);setTimeout((()=>{o.getModel()===e&&t.clear()}),350)}return o}}_openInPeek(e,t,i){const s=_.X.get(e);s&&e.hasModel()?s.toggleWidget(i??e.getSelection(),(0,n.SS)((e=>Promise.resolve(t))),this.configuration.openInPeek):t.dispose()}}class K extends j{async _getLocationModel(e,t,i,s){return new v.y4(await(0,B.hE)(e.definitionProvider,t,i,!1,s),S.kg("def.title","Definitions"))}_getNoResultFoundMessage(e){return e&&e.word?S.kg("noResultWord","No definition found for '{0}'",e.word):S.kg("generic.noResults","No definition found")}_getAlternativeCommand(e){return e.getOption(58).alternativeDefinitionCommand}_getGoToPreference(e){return e.getOption(58).multipleDefinitions}}(0,F.ug)(class e extends K{static{this.id="editor.action.revealDefinition"}constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:e.id,title:{...S.aS("actions.goToDecl.label","Go to Definition"),mnemonicTitle:S.kg({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")},precondition:m.R.hasDefinitionProvider,keybinding:[{when:m.R.editorTextFocus,primary:70,weight:100},{when:y.M$.and(m.R.editorTextFocus,z.W0),primary:2118,weight:100}],menu:[{id:F.D8.EditorContext,group:"navigation",order:1.1},{id:F.D8.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:2}]}),U.w.registerCommandAlias("editor.action.goToDeclaration",e.id)}}),(0,F.ug)(class e extends K{static{this.id="editor.action.revealDefinitionAside"}constructor(){super({openToSide:!0,openInPeek:!1,muteMessage:!1},{id:e.id,title:S.aS("actions.goToDeclToSide.label","Open Definition to the Side"),precondition:y.M$.and(m.R.hasDefinitionProvider,m.R.isInEmbeddedEditor.toNegated()),keybinding:[{when:m.R.editorTextFocus,primary:(0,r.m5)(2089,70),weight:100},{when:y.M$.and(m.R.editorTextFocus,z.W0),primary:(0,r.m5)(2089,2118),weight:100}]}),U.w.registerCommandAlias("editor.action.openDeclarationToTheSide",e.id)}}),(0,F.ug)(class e extends K{static{this.id="editor.action.peekDefinition"}constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:e.id,title:S.aS("actions.previewDecl.label","Peek Definition"),precondition:y.M$.and(m.R.hasDefinitionProvider,P.x2.notInPeekEditor,m.R.isInEmbeddedEditor.toNegated()),keybinding:{when:m.R.editorTextFocus,primary:582,linux:{primary:3140},weight:100},menu:{id:F.D8.EditorContextPeek,group:"peek",order:2}}),U.w.registerCommandAlias("editor.action.previewDeclaration",e.id)}});class Y extends j{async _getLocationModel(e,t,i,s){return new v.y4(await(0,B.sv)(e.declarationProvider,t,i,!1,s),S.kg("decl.title","Declarations"))}_getNoResultFoundMessage(e){return e&&e.word?S.kg("decl.noResultWord","No declaration found for '{0}'",e.word):S.kg("decl.generic.noResults","No declaration found")}_getAlternativeCommand(e){return e.getOption(58).alternativeDeclarationCommand}_getGoToPreference(e){return e.getOption(58).multipleDeclarations}}(0,F.ug)(class e extends Y{static{this.id="editor.action.revealDeclaration"}constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:e.id,title:{...S.aS("actions.goToDeclaration.label","Go to Declaration"),mnemonicTitle:S.kg({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")},precondition:y.M$.and(m.R.hasDeclarationProvider,m.R.isInEmbeddedEditor.toNegated()),menu:[{id:F.D8.EditorContext,group:"navigation",order:1.3},{id:F.D8.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}_getNoResultFoundMessage(e){return e&&e.word?S.kg("decl.noResultWord","No declaration found for '{0}'",e.word):S.kg("decl.generic.noResults","No declaration found")}}),(0,F.ug)(class extends Y{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",title:S.aS("actions.peekDecl.label","Peek Declaration"),precondition:y.M$.and(m.R.hasDeclarationProvider,P.x2.notInPeekEditor,m.R.isInEmbeddedEditor.toNegated()),menu:{id:F.D8.EditorContextPeek,group:"peek",order:3}})}});class q extends j{async _getLocationModel(e,t,i,s){return new v.y4(await(0,B.f9)(e.typeDefinitionProvider,t,i,!1,s),S.kg("typedef.title","Type Definitions"))}_getNoResultFoundMessage(e){return e&&e.word?S.kg("goToTypeDefinition.noResultWord","No type definition found for '{0}'",e.word):S.kg("goToTypeDefinition.generic.noResults","No type definition found")}_getAlternativeCommand(e){return e.getOption(58).alternativeTypeDefinitionCommand}_getGoToPreference(e){return e.getOption(58).multipleTypeDefinitions}}(0,F.ug)(class e extends q{static{this.ID="editor.action.goToTypeDefinition"}constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:e.ID,title:{...S.aS("actions.goToTypeDefinition.label","Go to Type Definition"),mnemonicTitle:S.kg({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")},precondition:m.R.hasTypeDefinitionProvider,keybinding:{when:m.R.editorTextFocus,primary:0,weight:100},menu:[{id:F.D8.EditorContext,group:"navigation",order:1.4},{id:F.D8.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}}),(0,F.ug)(class e extends q{static{this.ID="editor.action.peekTypeDefinition"}constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:e.ID,title:S.aS("actions.peekTypeDefinition.label","Peek Type Definition"),precondition:y.M$.and(m.R.hasTypeDefinitionProvider,P.x2.notInPeekEditor,m.R.isInEmbeddedEditor.toNegated()),menu:{id:F.D8.EditorContextPeek,group:"peek",order:4}})}});class $ extends j{async _getLocationModel(e,t,i,s){return new v.y4(await(0,B.eS)(e.implementationProvider,t,i,!1,s),S.kg("impl.title","Implementations"))}_getNoResultFoundMessage(e){return e&&e.word?S.kg("goToImplementation.noResultWord","No implementation found for '{0}'",e.word):S.kg("goToImplementation.generic.noResults","No implementation found")}_getAlternativeCommand(e){return e.getOption(58).alternativeImplementationCommand}_getGoToPreference(e){return e.getOption(58).multipleImplementations}}(0,F.ug)(class e extends ${static{this.ID="editor.action.goToImplementation"}constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:e.ID,title:{...S.aS("actions.goToImplementation.label","Go to Implementations"),mnemonicTitle:S.kg({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},precondition:m.R.hasImplementationProvider,keybinding:{when:m.R.editorTextFocus,primary:2118,weight:100},menu:[{id:F.D8.EditorContext,group:"navigation",order:1.45},{id:F.D8.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:4}]})}}),(0,F.ug)(class e extends ${static{this.ID="editor.action.peekImplementation"}constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:e.ID,title:S.aS("actions.peekImplementation.label","Peek Implementations"),precondition:y.M$.and(m.R.hasImplementationProvider,P.x2.notInPeekEditor,m.R.isInEmbeddedEditor.toNegated()),keybinding:{when:m.R.editorTextFocus,primary:3142,weight:100},menu:{id:F.D8.EditorContextPeek,group:"peek",order:5}})}});class Q extends j{_getNoResultFoundMessage(e){return e?S.kg("references.no","No references found for '{0}'",e.word):S.kg("references.noGeneric","No references found")}_getAlternativeCommand(e){return e.getOption(58).alternativeReferenceCommand}_getGoToPreference(e){return e.getOption(58).multipleReferences}}(0,F.ug)(class extends Q{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",title:{...S.aS("goToReferences.label","Go to References"),mnemonicTitle:S.kg({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")},precondition:y.M$.and(m.R.hasReferenceProvider,P.x2.notInPeekEditor,m.R.isInEmbeddedEditor.toNegated()),keybinding:{when:m.R.editorTextFocus,primary:1094,weight:100},menu:[{id:F.D8.EditorContext,group:"navigation",order:1.45},{id:F.D8.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:5}]})}async _getLocationModel(e,t,i,s){return new v.y4(await(0,B.NN)(e.referenceProvider,t,i,!0,!1,s),S.kg("ref.title","References"))}}),(0,F.ug)(class extends Q{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",title:S.aS("references.action.label","Peek References"),precondition:y.M$.and(m.R.hasReferenceProvider,P.x2.notInPeekEditor,m.R.isInEmbeddedEditor.toNegated()),menu:{id:F.D8.EditorContextPeek,group:"peek",order:6}})}async _getLocationModel(e,t,i,s){return new v.y4(await(0,B.NN)(e.referenceProvider,t,i,!1,!1,s),S.kg("ref.title","References"))}});class X extends j{constructor(e,t,i){super(e,{id:"editor.action.goToLocation",title:S.aS("label.generic","Go to Any Symbol"),precondition:y.M$.and(P.x2.notInPeekEditor,m.R.isInEmbeddedEditor.toNegated())}),this._references=t,this._gotoMultipleBehaviour=i}async _getLocationModel(e,t,i,s){return new v.y4(this._references,S.kg("generic.title","Locations"))}_getNoResultFoundMessage(e){return e&&S.kg("generic.noResult","No results for '{0}'",e.word)||""}_getGoToPreference(e){return this._gotoMultipleBehaviour??e.getOption(58).multipleReferences}_getAlternativeCommand(){return""}}U.w.registerCommand({id:"editor.action.goToLocations",metadata:{description:"Go to locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:a.r},{name:"position",description:"The position at which to start",constraint:g.y.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto`"},{name:"noResultsMessage",description:"Human readable message that shows when locations is empty."}]},handler:async(e,t,i,s,n,r,c)=>{(0,o.j)(a.r.isUri(t)),(0,o.j)(g.y.isIPosition(i)),(0,o.j)(Array.isArray(s)),(0,o.j)("undefined"===typeof n||"string"===typeof n),(0,o.j)("undefined"===typeof c||"boolean"===typeof c);const h=e.get(d.T),u=await h.openCodeEditor({resource:t},h.getFocusedCodeEditor());if((0,l.z9)(u))return u.setPosition(i),u.revealPositionInCenterIfOutsideViewport(i,0),u.invokeWithinContext((e=>{const t=new class extends X{_getNoResultFoundMessage(e){return r||super._getNoResultFoundMessage(e)}}({muteMessage:!Boolean(r),openInPeek:Boolean(c),openToSide:!1},s,n);e.get(R._Y).invokeFunction(t.run.bind(t),u)}))}}),U.w.registerCommand({id:"editor.action.peekLocations",metadata:{description:"Peek locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:a.r},{name:"position",description:"The position at which to start",constraint:g.y.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto`"}]},handler:async(e,t,i,s,n)=>{e.get(U.d).executeCommand("editor.action.goToLocations",t,i,s,n,void 0,!0)}}),U.w.registerCommand({id:"editor.action.findReferences",handler:(e,t,i)=>{(0,o.j)(a.r.isUri(t)),(0,o.j)(g.y.isIPosition(i));const s=e.get(W.ILanguageFeaturesService),r=e.get(d.T);return r.openCodeEditor({resource:t},r.getFocusedCodeEditor()).then((e=>{if(!(0,l.z9)(e)||!e.hasModel())return;const t=_.X.get(e);if(!t)return;const r=(0,n.SS)((t=>(0,B.NN)(s.referenceProvider,e.getModel(),g.y.lift(i),!1,!1,t).then((e=>new v.y4(e,S.kg("ref.title","References")))))),o=new p.Q(i.lineNumber,i.column,i.lineNumber,i.column);return Promise.resolve(t.toggleWidget(o,r,!1))}))}}),U.w.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations")},80538:(e,t,i)=>{"use strict";i.d(t,{NN:()=>f,eS:()=>p,f9:()=>m,hE:()=>u,sv:()=>g});var s=i(25890),n=i(18447),r=i(64383),o=i(36456),a=i(31450),c=i(56942),l=i(79614);function h(e,t){return t.uri.scheme===e.uri.scheme||!(0,o.fV)(t.uri,o.ny.walkThroughSnippet,o.ny.vscodeChatCodeBlock,o.ny.vscodeChatCodeCompareBlock)}async function d(e,t,i,n,o){const a=i.ordered(e,n).map((i=>Promise.resolve(o(i,e,t)).then(void 0,(e=>{(0,r.M_)(e)})))),c=await Promise.all(a);return(0,s.Yc)(c.flat()).filter((t=>h(e,t)))}function u(e,t,i,s,n){return d(t,i,e,s,((e,t,i)=>e.provideDefinition(t,i,n)))}function g(e,t,i,s,n){return d(t,i,e,s,((e,t,i)=>e.provideDeclaration(t,i,n)))}function p(e,t,i,s,n){return d(t,i,e,s,((e,t,i)=>e.provideImplementation(t,i,n)))}function m(e,t,i,s,n){return d(t,i,e,s,((e,t,i)=>e.provideTypeDefinition(t,i,n)))}function f(e,t,i,s,n,r){return d(t,i,e,n,(async(e,t,i)=>{const n=(await e.provideReferences(t,i,{includeDeclaration:!0},r))?.filter((e=>h(t,e)));if(!s||!n||2!==n.length)return n;const o=(await e.provideReferences(t,i,{includeDeclaration:!1},r))?.filter((e=>h(t,e)));return o&&1===o.length?o:n}))}async function _(e){const t=await e(),i=new l.y4(t,""),s=i.references.map((e=>e.link));return i.dispose(),s}(0,a.ke)("_executeDefinitionProvider",((e,t,i)=>{const s=u(e.get(c.ILanguageFeaturesService).definitionProvider,t,i,!1,n.XO.None);return _((()=>s))})),(0,a.ke)("_executeDefinitionProvider_recursive",((e,t,i)=>{const s=u(e.get(c.ILanguageFeaturesService).definitionProvider,t,i,!0,n.XO.None);return _((()=>s))})),(0,a.ke)("_executeTypeDefinitionProvider",((e,t,i)=>{const s=m(e.get(c.ILanguageFeaturesService).typeDefinitionProvider,t,i,!1,n.XO.None);return _((()=>s))})),(0,a.ke)("_executeTypeDefinitionProvider_recursive",((e,t,i)=>{const s=m(e.get(c.ILanguageFeaturesService).typeDefinitionProvider,t,i,!0,n.XO.None);return _((()=>s))})),(0,a.ke)("_executeDeclarationProvider",((e,t,i)=>{const s=g(e.get(c.ILanguageFeaturesService).declarationProvider,t,i,!1,n.XO.None);return _((()=>s))})),(0,a.ke)("_executeDeclarationProvider_recursive",((e,t,i)=>{const s=g(e.get(c.ILanguageFeaturesService).declarationProvider,t,i,!0,n.XO.None);return _((()=>s))})),(0,a.ke)("_executeReferenceProvider",((e,t,i)=>{const s=f(e.get(c.ILanguageFeaturesService).referenceProvider,t,i,!1,!1,n.XO.None);return _((()=>s))})),(0,a.ke)("_executeReferenceProvider_recursive",((e,t,i)=>{const s=f(e.get(c.ILanguageFeaturesService).referenceProvider,t,i,!1,!0,n.XO.None);return _((()=>s))})),(0,a.ke)("_executeImplementationProvider",((e,t,i)=>{const s=p(e.get(c.ILanguageFeaturesService).implementationProvider,t,i,!1,n.XO.None);return _((()=>s))})),(0,a.ke)("_executeImplementationProvider_recursive",((e,t,i)=>{const s=p(e.get(c.ILanguageFeaturesService).implementationProvider,t,i,!0,n.XO.None);return _((()=>s))}))},37927:(e,t,i)=>{"use strict";i.d(t,{gi:()=>d});var s=i(41234),n=i(5662),r=i(98067);function o(e,t){return!!e[t]}class a{constructor(e,t){this.target=e.target,this.isLeftClick=e.event.leftButton,this.isMiddleClick=e.event.middleButton,this.isRightClick=e.event.rightButton,this.hasTriggerModifier=o(e.event,t.triggerModifier),this.hasSideBySideModifier=o(e.event,t.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=e.event.detail<=1}}class c{constructor(e,t){this.keyCodeIsTriggerKey=e.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=e.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=o(e,t.triggerModifier)}}class l{constructor(e,t,i,s){this.triggerKey=e,this.triggerModifier=t,this.triggerSideBySideKey=i,this.triggerSideBySideModifier=s}equals(e){return this.triggerKey===e.triggerKey&&this.triggerModifier===e.triggerModifier&&this.triggerSideBySideKey===e.triggerSideBySideKey&&this.triggerSideBySideModifier===e.triggerSideBySideModifier}}function h(e){return"altKey"===e?r.zx?new l(57,"metaKey",6,"altKey"):new l(5,"ctrlKey",6,"altKey"):r.zx?new l(6,"altKey",57,"metaKey"):new l(6,"altKey",5,"ctrlKey")}class d extends n.jG{constructor(e,t){super(),this._onMouseMoveOrRelevantKeyDown=this._register(new s.vl),this.onMouseMoveOrRelevantKeyDown=this._onMouseMoveOrRelevantKeyDown.event,this._onExecute=this._register(new s.vl),this.onExecute=this._onExecute.event,this._onCancel=this._register(new s.vl),this.onCancel=this._onCancel.event,this._editor=e,this._extractLineNumberFromMouseEvent=t?.extractLineNumberFromMouseEvent??(e=>e.target.position?e.target.position.lineNumber:0),this._opts=h(this._editor.getOption(78)),this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._register(this._editor.onDidChangeConfiguration((e=>{if(e.hasChanged(78)){const e=h(this._editor.getOption(78));if(this._opts.equals(e))return;this._opts=e,this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._onCancel.fire()}}))),this._register(this._editor.onMouseMove((e=>this._onEditorMouseMove(new a(e,this._opts))))),this._register(this._editor.onMouseDown((e=>this._onEditorMouseDown(new a(e,this._opts))))),this._register(this._editor.onMouseUp((e=>this._onEditorMouseUp(new a(e,this._opts))))),this._register(this._editor.onKeyDown((e=>this._onEditorKeyDown(new c(e,this._opts))))),this._register(this._editor.onKeyUp((e=>this._onEditorKeyUp(new c(e,this._opts))))),this._register(this._editor.onMouseDrag((()=>this._resetHandler()))),this._register(this._editor.onDidChangeCursorSelection((e=>this._onDidChangeCursorSelection(e)))),this._register(this._editor.onDidChangeModel((e=>this._resetHandler()))),this._register(this._editor.onDidChangeModelContent((()=>this._resetHandler()))),this._register(this._editor.onDidScrollChange((e=>{(e.scrollTopChanged||e.scrollLeftChanged)&&this._resetHandler()})))}_onDidChangeCursorSelection(e){e.selection&&e.selection.startColumn!==e.selection.endColumn&&this._resetHandler()}_onEditorMouseMove(e){this._lastMouseMoveEvent=e,this._onMouseMoveOrRelevantKeyDown.fire([e,null])}_onEditorMouseDown(e){this._hasTriggerKeyOnMouseDown=e.hasTriggerModifier,this._lineNumberOnMouseDown=this._extractLineNumberFromMouseEvent(e)}_onEditorMouseUp(e){const t=this._extractLineNumberFromMouseEvent(e);this._hasTriggerKeyOnMouseDown&&this._lineNumberOnMouseDown&&this._lineNumberOnMouseDown===t&&this._onExecute.fire(e)}_onEditorKeyDown(e){this._lastMouseMoveEvent&&(e.keyCodeIsTriggerKey||e.keyCodeIsSideBySideKey&&e.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this._lastMouseMoveEvent,e]):e.hasTriggerModifier&&this._onCancel.fire()}_onEditorKeyUp(e){e.keyCodeIsTriggerKey&&this._onCancel.fire()}_resetHandler(){this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()}}},62427:(e,t,i)=>{"use strict";i.d(t,{k:()=>y});var s,n=i(90766),r=i(64383),o=i(16980),a=i(5662),c=i(50868),l=i(31450),h=i(36677),d=i(10154),u=i(18938),g=i(37927),p=i(84226),m=i(78209),f=i(32848),_=i(99312),v=i(80538),C=i(56942),E=i(87289),b=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},S=function(e,t){return function(i,s){t(i,s,e)}};let y=class{static{s=this}static{this.ID="editor.contrib.gotodefinitionatposition"}static{this.MAX_SOURCE_PREVIEW_LINES=8}constructor(e,t,i,s){this.textModelResolverService=t,this.languageService=i,this.languageFeaturesService=s,this.toUnhook=new a.Cm,this.toUnhookForKeyboard=new a.Cm,this.currentWordAtPosition=null,this.previousPromise=null,this.editor=e,this.linkDecorations=this.editor.createDecorationsCollection();const n=new g.gi(e);this.toUnhook.add(n),this.toUnhook.add(n.onMouseMoveOrRelevantKeyDown((([e,t])=>{this.startFindDefinitionFromMouse(e,t??void 0)}))),this.toUnhook.add(n.onExecute((e=>{this.isEnabled(e)&&this.gotoDefinition(e.target.position,e.hasSideBySideModifier).catch((e=>{(0,r.dz)(e)})).finally((()=>{this.removeLinkDecorations()}))}))),this.toUnhook.add(n.onCancel((()=>{this.removeLinkDecorations(),this.currentWordAtPosition=null})))}static get(e){return e.getContribution(s.ID)}async startFindDefinitionFromCursor(e){await this.startFindDefinition(e),this.toUnhookForKeyboard.add(this.editor.onDidChangeCursorPosition((()=>{this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear()}))),this.toUnhookForKeyboard.add(this.editor.onKeyDown((e=>{e&&(this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear())})))}startFindDefinitionFromMouse(e,t){if(9===e.target.type&&this.linkDecorations.length>0)return;if(!this.editor.hasModel()||!this.isEnabled(e,t))return this.currentWordAtPosition=null,void this.removeLinkDecorations();const i=e.target.position;this.startFindDefinition(i)}async startFindDefinition(e){this.toUnhookForKeyboard.clear();const t=e?this.editor.getModel()?.getWordAtPosition(e):null;if(!t)return this.currentWordAtPosition=null,void this.removeLinkDecorations();if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===t.startColumn&&this.currentWordAtPosition.endColumn===t.endColumn&&this.currentWordAtPosition.word===t.word)return;this.currentWordAtPosition=t;const i=new c.$t(this.editor,15);let s;this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=(0,n.SS)((t=>this.findDefinition(e,t)));try{s=await this.previousPromise}catch(l){return void(0,r.dz)(l)}if(!s||!s.length||!i.validate(this.editor))return void this.removeLinkDecorations();const a=s[0].originSelectionRange?h.Q.lift(s[0].originSelectionRange):new h.Q(e.lineNumber,t.startColumn,e.lineNumber,t.endColumn);if(s.length>1){let e=a;for(const{originSelectionRange:t}of s)t&&(e=h.Q.plusRange(e,t));this.addDecoration(e,(new o.Bc).appendText(m.kg("multipleResults","Click to show {0} definitions.",s.length)))}else{const e=s[0];if(!e.uri)return;this.textModelResolverService.createModelReference(e.uri).then((t=>{if(!t.object||!t.object.textEditorModel)return void t.dispose();const{object:{textEditorModel:i}}=t,{startLineNumber:s}=e.range;if(s<1||s>i.getLineCount())return void t.dispose();const n=this.getPreviewValue(i,s,e),r=this.languageService.guessLanguageIdByFilepathOrFirstLine(i.uri);this.addDecoration(a,n?(new o.Bc).appendCodeblock(r||"",n):void 0),t.dispose()}))}}getPreviewValue(e,t,i){let n=i.range;n.endLineNumber-n.startLineNumber>=s.MAX_SOURCE_PREVIEW_LINES&&(n=this.getPreviewRangeBasedOnIndentation(e,t));return this.stripIndentationFromPreviewRange(e,t,n)}stripIndentationFromPreviewRange(e,t,i){let s=e.getLineFirstNonWhitespaceColumn(t);for(let n=t+1;n<i.endLineNumber;n++){const t=e.getLineFirstNonWhitespaceColumn(n);s=Math.min(s,t)}return e.getValueInRange(i).replace(new RegExp(`^\\s{${s-1}}`,"gm"),"").trim()}getPreviewRangeBasedOnIndentation(e,t){const i=e.getLineFirstNonWhitespaceColumn(t),n=Math.min(e.getLineCount(),t+s.MAX_SOURCE_PREVIEW_LINES);let r=t+1;for(;r<n;r++){if(i===e.getLineFirstNonWhitespaceColumn(r))break}return new h.Q(t,1,r+1,1)}addDecoration(e,t){const i={range:e,options:{description:"goto-definition-link",inlineClassName:"goto-definition-link",hoverMessage:t}};this.linkDecorations.set([i])}removeLinkDecorations(){this.linkDecorations.clear()}isEnabled(e,t){return this.editor.hasModel()&&e.isLeftClick&&e.isNoneOrSingleMouseDown&&6===e.target.type&&!(e.target.detail.injectedText?.options instanceof E.Ho)&&(e.hasTriggerModifier||!!t&&t.keyCodeIsTriggerKey)&&this.languageFeaturesService.definitionProvider.has(this.editor.getModel())}findDefinition(e,t){const i=this.editor.getModel();return i?(0,v.hE)(this.languageFeaturesService.definitionProvider,i,e,!1,t):Promise.resolve(null)}gotoDefinition(e,t){return this.editor.setPosition(e),this.editor.invokeWithinContext((e=>{const i=!t&&this.editor.getOption(89)&&!this.isInPeekEditor(e);return new _.mR({openToSide:t,openInPeek:i,muteMessage:!0},{title:{value:"",original:""},id:"",precondition:void 0}).run(e)}))}isInPeekEditor(e){const t=e.get(f.fN);return p.x2.inPeekEditor.getValue(t)}dispose(){this.toUnhook.dispose(),this.toUnhookForKeyboard.dispose()}};y=s=b([S(1,u.ITextModelService),S(2,d.L),S(3,C.ILanguageFeaturesService)],y),(0,l.HW)(y.ID,y,2)},23646:(e,t,i)=>{"use strict";i.d(t,{X:()=>le});var s,n=i(90766),r=i(64383),o=i(24939),a=i(5662),c=i(80301),l=i(83069),h=i(36677),d=i(84226),u=i(78209),g=i(50091),p=i(84001),m=i(32848),f=i(63591),_=i(59261),v=i(36584),C=i(58591),E=i(9711),b=i(79614),S=i(8597),y=i(35151),w=i(47661),R=i(41234),L=i(36456),T=i(89403),x=i(29163),k=i(87289),A=i(83941),N=i(18938),I=i(3828),O=i(37479),D=i(21852),M=i(26690),P=i(98031),F=i(67841),U=i(19070),H=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},B=function(e,t){return function(i,s){t(i,s,e)}};let W=class{constructor(e){this._resolverService=e}hasChildren(e){return e instanceof b.y4||e instanceof b.$L}getChildren(e){if(e instanceof b.y4)return e.groups;if(e instanceof b.$L)return e.resolve(this._resolverService).then((e=>e.children));throw new Error("bad tree")}};W=H([B(0,N.ITextModelService)],W);class V{getHeight(){return 23}getTemplateId(e){return e instanceof b.$L?K.id:q.id}}let z=class{constructor(e){this._keybindingService=e}getKeyboardNavigationLabel(e){if(e instanceof b.yc){const t=e.parent.getPreview(e)?.preview(e.range);if(t)return t.value}return(0,T.P8)(e.uri)}};z=H([B(0,P.b)],z);class G{getId(e){return e instanceof b.yc?e.id:e.uri}}let j=class extends a.jG{constructor(e,t){super(),this._labelService=t;const i=document.createElement("div");i.classList.add("reference-file"),this.file=this._register(new D.s(i,{supportHighlights:!0})),this.badge=new I.x(S.BC(i,S.$(".count")),{},U.m$),e.appendChild(i)}set(e,t){const i=(0,T.pD)(e.uri);this.file.setLabel(this._labelService.getUriBasenameLabel(e.uri),this._labelService.getUriLabel(i,{relative:!0}),{title:this._labelService.getUriLabel(e.uri),matches:t});const s=e.children.length;this.badge.setCount(s),s>1?this.badge.setTitleFormat((0,u.kg)("referencesCount","{0} references",s)):this.badge.setTitleFormat((0,u.kg)("referenceCount","{0} reference",s))}};j=H([B(1,F.L)],j);let K=class{static{s=this}static{this.id="FileReferencesRenderer"}constructor(e){this._instantiationService=e,this.templateId=s.id}renderTemplate(e){return this._instantiationService.createInstance(j,e)}renderElement(e,t,i){i.set(e.element,(0,M.WJ)(e.filterData))}disposeTemplate(e){e.dispose()}};K=s=H([B(0,f._Y)],K);class Y extends a.jG{constructor(e){super(),this.label=this._register(new O._(e))}set(e,t){const i=e.parent.getPreview(e)?.preview(e.range);if(i&&i.value){const{value:e,highlight:s}=i;t&&!M.ne.isDefault(t)?(this.label.element.classList.toggle("referenceMatch",!1),this.label.set(e,(0,M.WJ)(t))):(this.label.element.classList.toggle("referenceMatch",!0),this.label.set(e,[s]))}else this.label.set(`${(0,T.P8)(e.uri)}:${e.range.startLineNumber+1}:${e.range.startColumn+1}`)}}class q{constructor(){this.templateId=q.id}static{this.id="OneReferenceRenderer"}renderTemplate(e){return new Y(e)}renderElement(e,t,i){i.set(e.element,e.filterData)}disposeTemplate(e){e.dispose()}}class ${getWidgetAriaLabel(){return(0,u.kg)("treeAriaLabel","References")}getAriaLabel(e){return e.ariaMessage}}var Q=i(47612),X=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Z=function(e,t){return function(i,s){t(i,s,e)}};class J{static{this.DecorationOptions=k.kI.register({description:"reference-decoration",stickiness:1,className:"reference-decoration"})}constructor(e,t){this._editor=e,this._model=t,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new a.Cm,this._callOnModelChange=new a.Cm,this._callOnDispose.add(this._editor.onDidChangeModel((()=>this._onModelChanged()))),this._onModelChanged()}dispose(){this._callOnModelChange.dispose(),this._callOnDispose.dispose(),this.removeDecorations()}_onModelChanged(){this._callOnModelChange.clear();const e=this._editor.getModel();if(e)for(const t of this._model.references)if(t.uri.toString()===e.uri.toString())return void this._addDecorations(t.parent)}_addDecorations(e){if(!this._editor.hasModel())return;this._callOnModelChange.add(this._editor.getModel().onDidChangeDecorations((()=>this._onDecorationChanged())));const t=[],i=[];for(let s=0,n=e.children.length;s<n;s++){const n=e.children[s];this._decorationIgnoreSet.has(n.id)||n.uri.toString()===this._editor.getModel().uri.toString()&&(t.push({range:n.range,options:J.DecorationOptions}),i.push(s))}this._editor.changeDecorations((s=>{const n=s.deltaDecorations([],t);for(let t=0;t<n.length;t++)this._decorations.set(n[t],e.children[i[t]])}))}_onDecorationChanged(){const e=[],t=this._editor.getModel();if(t){for(const[i,s]of this._decorations){const n=t.getDecorationRange(i);if(!n)continue;let r=!1;if(!h.Q.equalsRange(n,s.range)){if(h.Q.spansMultipleLines(n))r=!0;else{s.range.endColumn-s.range.startColumn!==n.endColumn-n.startColumn&&(r=!0)}r?(this._decorationIgnoreSet.add(s.id),e.push(i)):s.range=n}}for(let t=0,i=e.length;t<i;t++)this._decorations.delete(e[t]);this._editor.removeDecorations(e)}}removeDecorations(){this._editor.removeDecorations([...this._decorations.keys()]),this._decorations.clear()}}class ee{constructor(){this.ratio=.7,this.heightInLines=18}static fromJSON(e){let t,i;try{const s=JSON.parse(e);t=s.ratio,i=s.heightInLines}catch{}return{ratio:t||.7,heightInLines:i||18}}}class te extends v.er{}let ie=class extends d.j6{constructor(e,t,i,s,n,r,o,c,l){super(e,{showFrame:!1,showArrow:!0,isResizeable:!0,isAccessible:!0,supportOnTitleClick:!0},r),this._defaultTreeKeyboardSupport=t,this.layoutData=i,this._textModelResolverService=n,this._instantiationService=r,this._peekViewService=o,this._uriLabel=c,this._keybindingService=l,this._disposeOnNewModel=new a.Cm,this._callOnDispose=new a.Cm,this._onDidSelectReference=new R.vl,this.onDidSelectReference=this._onDidSelectReference.event,this._dim=new S.fg(0,0),this._isClosing=!1,this._applyTheme(s.getColorTheme()),this._callOnDispose.add(s.onDidColorThemeChange(this._applyTheme.bind(this))),this._peekViewService.addExclusiveWidget(e,this),this.create()}get isClosing(){return this._isClosing}dispose(){this._isClosing=!0,this.setModel(void 0),this._callOnDispose.dispose(),this._disposeOnNewModel.dispose(),(0,a.AS)(this._preview),(0,a.AS)(this._previewNotAvailableMessage),(0,a.AS)(this._tree),(0,a.AS)(this._previewModelReference),this._splitView.dispose(),super.dispose()}_applyTheme(e){const t=e.getColor(d.zl)||w.Q1.transparent;this.style({arrowColor:t,frameColor:t,headerBackgroundColor:e.getColor(d.z0)||w.Q1.transparent,primaryHeadingColor:e.getColor(d._X),secondaryHeadingColor:e.getColor(d.e3)})}show(e){super.show(e,this.layoutData.heightInLines||18)}focusOnReferenceTree(){this._tree.domFocus()}focusOnPreviewEditor(){this._preview.focus()}isPreviewEditorFocused(){return this._preview.hasTextFocus()}_onTitleClick(e){this._preview&&this._preview.getModel()&&this._onDidSelectReference.fire({element:this._getFocusedReference(),kind:e.ctrlKey||e.metaKey||e.altKey?"side":"open",source:"title"})}_fillBody(e){this.setCssClass("reference-zone-widget"),this._messageContainer=S.BC(e,S.$("div.messages")),S.jD(this._messageContainer),this._splitView=new y.U(e,{orientation:1}),this._previewContainer=S.BC(e,S.$("div.preview.inline"));this._preview=this._instantiationService.createInstance(x.t,this._previewContainer,{scrollBeyondLastLine:!1,scrollbar:{verticalScrollbarSize:14,horizontal:"auto",useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,alwaysConsumeMouseWheel:!0},overviewRulerLanes:2,fixedOverflowWidgets:!0,minimap:{enabled:!1}},{},this.editor),S.jD(this._previewContainer),this._previewNotAvailableMessage=this._instantiationService.createInstance(k.Bz,u.kg("missingPreviewMessage","no preview available"),A.vH,k.Bz.DEFAULT_CREATION_OPTIONS,null),this._treeContainer=S.BC(e,S.$("div.ref-tree.inline"));const t={keyboardSupport:this._defaultTreeKeyboardSupport,accessibilityProvider:new $,keyboardNavigationLabelProvider:this._instantiationService.createInstance(z),identityProvider:new G,openOnSingleClick:!0,selectionNavigation:!0,overrideStyles:{listBackground:d.n6}};this._defaultTreeKeyboardSupport&&this._callOnDispose.add(S.b2(this._treeContainer,"keydown",(e=>{e.equals(9)&&(this._keybindingService.dispatchEvent(e,e.target),e.stopPropagation())}),!0)),this._tree=this._instantiationService.createInstance(te,"ReferencesWidget",this._treeContainer,new V,[this._instantiationService.createInstance(K),this._instantiationService.createInstance(q)],this._instantiationService.createInstance(W),t),this._splitView.addView({onDidChange:R.Jh.None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:e=>{this._preview.layout({height:this._dim.height,width:e})}},y.X.Distribute),this._splitView.addView({onDidChange:R.Jh.None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:e=>{this._treeContainer.style.height=`${this._dim.height}px`,this._treeContainer.style.width=`${e}px`,this._tree.layout(this._dim.height,e)}},y.X.Distribute),this._disposables.add(this._splitView.onDidSashChange((()=>{this._dim.width&&(this.layoutData.ratio=this._splitView.getViewSize(0)/this._dim.width)}),void 0));const i=(e,t)=>{e instanceof b.yc&&("show"===t&&this._revealReference(e,!1),this._onDidSelectReference.fire({element:e,kind:t,source:"tree"}))};this._disposables.add(this._tree.onDidOpen((e=>{e.sideBySide?i(e.element,"side"):e.editorOptions.pinned?i(e.element,"goto"):i(e.element,"show")}))),S.jD(this._treeContainer)}_onWidth(e){this._dim&&this._doLayoutBody(this._dim.height,e)}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._dim=new S.fg(t,e),this.layoutData.heightInLines=this._viewZone?this._viewZone.heightInLines:this.layoutData.heightInLines,this._splitView.layout(t),this._splitView.resizeView(0,t*this.layoutData.ratio)}setSelection(e){return this._revealReference(e,!0).then((()=>{this._model&&(this._tree.setSelection([e]),this._tree.setFocus([e]))}))}setModel(e){return this._disposeOnNewModel.clear(),this._model=e,this._model?this._onNewModel():Promise.resolve()}_onNewModel(){return this._model?this._model.isEmpty?(this.setTitle(""),this._messageContainer.innerText=u.kg("noResults","No results"),S.WU(this._messageContainer),Promise.resolve(void 0)):(S.jD(this._messageContainer),this._decorationsManager=new J(this._preview,this._model),this._disposeOnNewModel.add(this._decorationsManager),this._disposeOnNewModel.add(this._model.onDidChangeReferenceRange((e=>this._tree.rerender(e)))),this._disposeOnNewModel.add(this._preview.onMouseDown((e=>{const{event:t,target:i}=e;if(2!==t.detail)return;const s=this._getFocusedReference();s&&this._onDidSelectReference.fire({element:{uri:s.uri,range:i.range},kind:t.ctrlKey||t.metaKey||t.altKey?"side":"open",source:"editor"})}))),this.container.classList.add("results-loaded"),S.WU(this._treeContainer),S.WU(this._previewContainer),this._splitView.layout(this._dim.width),this.focusOnReferenceTree(),this._tree.setInput(1===this._model.groups.length?this._model.groups[0]:this._model)):Promise.resolve(void 0)}_getFocusedReference(){const[e]=this._tree.getFocus();return e instanceof b.yc?e:e instanceof b.$L&&e.children.length>0?e.children[0]:void 0}async revealReference(e){await this._revealReference(e,!1),this._onDidSelectReference.fire({element:e,kind:"goto",source:"tree"})}async _revealReference(e,t){if(this._revealedReference===e)return;this._revealedReference=e,e.uri.scheme!==L.ny.inMemory?this.setTitle((0,T.Pi)(e.uri),this._uriLabel.getUriLabel((0,T.pD)(e.uri))):this.setTitle(u.kg("peekView.alternateTitle","References"));const i=this._textModelResolverService.createModelReference(e.uri);this._tree.getInput()===e.parent||(t&&this._tree.reveal(e.parent),await this._tree.expand(e.parent)),this._tree.reveal(e);const s=await i;if(!this._model)return void s.dispose();(0,a.AS)(this._previewModelReference);const n=s.object;if(n){const t=this._preview.getModel()===n.textEditorModel?0:1,i=h.Q.lift(e.range).collapseToStart();this._previewModelReference=s,this._preview.setModel(n.textEditorModel),this._preview.setSelection(i),this._preview.revealRangeInCenter(i,t)}else this._preview.setModel(this._previewNotAvailableMessage),s.dispose()}};ie=X([Z(3,Q.Gy),Z(4,N.ITextModelService),Z(5,f._Y),Z(6,d.zn),Z(7,F.L),Z(8,P.b)],ie);var se,ne=i(60002),re=i(28290),oe=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},ae=function(e,t){return function(i,s){t(i,s,e)}};const ce=new m.N1("referenceSearchVisible",!1,u.kg("referenceSearchVisible","Whether reference peek is visible, like 'Peek References' or 'Peek Definition'"));let le=class{static{se=this}static{this.ID="editor.contrib.referencesController"}static get(e){return e.getContribution(se.ID)}constructor(e,t,i,s,n,r,o,c){this._defaultTreeKeyboardSupport=e,this._editor=t,this._editorService=s,this._notificationService=n,this._instantiationService=r,this._storageService=o,this._configurationService=c,this._disposables=new a.Cm,this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=ce.bindTo(i)}dispose(){this._referenceSearchVisible.reset(),this._disposables.dispose(),this._widget?.dispose(),this._model?.dispose(),this._widget=void 0,this._model=void 0}toggleWidget(e,t,i){let s;if(this._widget&&(s=this._widget.position),this.closeWidget(),s&&e.containsPosition(s))return;this._peekMode=i,this._referenceSearchVisible.set(!0),this._disposables.add(this._editor.onDidChangeModelLanguage((()=>{this.closeWidget()}))),this._disposables.add(this._editor.onDidChangeModel((()=>{this._ignoreModelChangeEvent||this.closeWidget()})));const n="peekViewLayout",r=ee.fromJSON(this._storageService.get(n,0,"{}"));this._widget=this._instantiationService.createInstance(ie,this._editor,this._defaultTreeKeyboardSupport,r),this._widget.setTitle(u.kg("labelLoading","Loading...")),this._widget.show(e),this._disposables.add(this._widget.onDidClose((()=>{t.cancel(),this._widget?(this._storageService.store(n,JSON.stringify(this._widget.layoutData),0,1),this._widget.isClosing||this.closeWidget(),this._widget=void 0):this.closeWidget()}))),this._disposables.add(this._widget.onDidSelectReference((e=>{const{element:t,kind:s}=e;if(t)switch(s){case"open":"editor"===e.source&&this._configurationService.getValue("editor.stablePeek")||this.openReference(t,!1,!1);break;case"side":this.openReference(t,!0,!1);break;case"goto":i?this._gotoReference(t,!0):this.openReference(t,!1,!0)}})));const o=++this._requestIdPool;t.then((t=>{if(o===this._requestIdPool&&this._widget)return this._model?.dispose(),this._model=t,this._widget.setModel(this._model).then((()=>{if(this._widget&&this._model&&this._editor.hasModel()){this._model.isEmpty?this._widget.setMetaTitle(""):this._widget.setMetaTitle(u.kg("metaTitle.N","{0} ({1})",this._model.title,this._model.references.length));const t=this._editor.getModel().uri,i=new l.y(e.startLineNumber,e.startColumn),s=this._model.nearestReference(t,i);if(s)return this._widget.setSelection(s).then((()=>{this._widget&&"editor"===this._editor.getOption(87)&&this._widget.focusOnPreviewEditor()}))}}));t.dispose()}),(e=>{this._notificationService.error(e)}))}changeFocusBetweenPreviewAndReferences(){this._widget&&(this._widget.isPreviewEditorFocused()?this._widget.focusOnReferenceTree():this._widget.focusOnPreviewEditor())}async goToNextOrPreviousReference(e){if(!this._editor.hasModel()||!this._model||!this._widget)return;const t=this._widget.position;if(!t)return;const i=this._model.nearestReference(this._editor.getModel().uri,t);if(!i)return;const s=this._model.nextOrPreviousReference(i,e),n=this._editor.hasTextFocus(),r=this._widget.isPreviewEditorFocused();await this._widget.setSelection(s),await this._gotoReference(s,!1),n?this._editor.focus():this._widget&&r&&this._widget.focusOnPreviewEditor()}async revealReference(e){this._editor.hasModel()&&this._model&&this._widget&&await this._widget.revealReference(e)}closeWidget(e=!0){this._widget?.dispose(),this._model?.dispose(),this._referenceSearchVisible.reset(),this._disposables.clear(),this._widget=void 0,this._model=void 0,e&&this._editor.focus(),this._requestIdPool+=1}_gotoReference(e,t){this._widget?.hide(),this._ignoreModelChangeEvent=!0;const i=h.Q.lift(e.range).collapseToStart();return this._editorService.openCodeEditor({resource:e.uri,options:{selection:i,selectionSource:"code.jump",pinned:t}},this._editor).then((e=>{if(this._ignoreModelChangeEvent=!1,e&&this._widget)if(this._editor===e)this._widget.show(i),this._widget.focusOnReferenceTree();else{const t=se.get(e),s=this._model.clone();this.closeWidget(),e.focus(),t?.toggleWidget(i,(0,n.SS)((e=>Promise.resolve(s))),this._peekMode??!1)}else this.closeWidget()}),(e=>{this._ignoreModelChangeEvent=!1,(0,r.dz)(e)}))}openReference(e,t,i){t||this.closeWidget();const{uri:s,range:n}=e;this._editorService.openCodeEditor({resource:s,options:{selection:n,selectionSource:"code.jump",pinned:i}},this._editor,t)}};function he(e,t){const i=(0,d.RL)(e);if(!i)return;const s=le.get(i);s&&t(s)}le=se=oe([ae(2,m.fN),ae(3,c.T),ae(4,C.Ot),ae(5,f._Y),ae(6,E.CS),ae(7,p.pG)],le),_.f.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:(0,o.m5)(2089,60),when:m.M$.or(ce,d.x2.inPeekEditor),handler(e){he(e,(e=>{e.changeFocusBetweenPreviewAndReferences()}))}}),_.f.registerCommandAndKeybindingRule({id:"goToNextReference",weight:90,primary:62,secondary:[70],when:m.M$.or(ce,d.x2.inPeekEditor),handler(e){he(e,(e=>{e.goToNextOrPreviousReference(!0)}))}}),_.f.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:90,primary:1086,secondary:[1094],when:m.M$.or(ce,d.x2.inPeekEditor),handler(e){he(e,(e=>{e.goToNextOrPreviousReference(!1)}))}}),g.w.registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference"),g.w.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference"),g.w.registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch"),g.w.registerCommand("closeReferenceSearch",(e=>he(e,(e=>e.closeWidget())))),_.f.registerKeybindingRule({id:"closeReferenceSearch",weight:-1,primary:9,secondary:[1033],when:m.M$.and(d.x2.inPeekEditor,m.M$.not("config.editor.stablePeek"))}),_.f.registerKeybindingRule({id:"closeReferenceSearch",weight:250,primary:9,secondary:[1033],when:m.M$.and(ce,m.M$.not("config.editor.stablePeek"),m.M$.or(ne.R.editorTextFocus,re.J7.negate()))}),_.f.registerCommandAndKeybindingRule({id:"revealReference",weight:200,primary:3,mac:{primary:3,secondary:[2066]},when:m.M$.and(ce,v.YD,v.Nf.negate(),v.cH.negate()),handler(e){const t=e.get(v.PE),i=t.lastFocusedList?.getFocus();Array.isArray(i)&&i[0]instanceof b.yc&&he(e,(e=>e.revealReference(i[0])))}}),_.f.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:m.M$.and(ce,v.YD,v.Nf.negate(),v.cH.negate()),handler(e){const t=e.get(v.PE),i=t.lastFocusedList?.getFocus();Array.isArray(i)&&i[0]instanceof b.yc&&he(e,(e=>e.openReference(i[0],!0,!0)))}}),g.w.registerCommand("openReference",(e=>{const t=e.get(v.PE),i=t.lastFocusedList?.getFocus();Array.isArray(i)&&i[0]instanceof b.yc&&he(e,(e=>e.openReference(i[0],!1,!0)))}))},79614:(e,t,i)=>{"use strict";i.d(t,{$L:()=>p,y4:()=>m,yc:()=>u});var s=i(64383),n=i(41234),r=i(96032),o=i(5662),a=i(74320),c=i(89403),l=i(91508),h=i(36677),d=i(78209);class u{constructor(e,t,i,s){this.isProviderFirst=e,this.parent=t,this.link=i,this._rangeCallback=s,this.id=r.r.nextId()}get uri(){return this.link.uri}get range(){return this._range??this.link.targetSelectionRange??this.link.range}set range(e){this._range=e,this._rangeCallback(this)}get ariaMessage(){const e=this.parent.getPreview(this)?.preview(this.range);return e?(0,d.kg)({key:"aria.oneReference.preview",comment:["Placeholders are: 0: filename, 1:line number, 2: column number, 3: preview snippet of source code"]},"{0} in {1} on line {2} at column {3}",e.value,(0,c.P8)(this.uri),this.range.startLineNumber,this.range.startColumn):(0,d.kg)("aria.oneReference","in {0} on line {1} at column {2}",(0,c.P8)(this.uri),this.range.startLineNumber,this.range.startColumn)}}class g{constructor(e){this._modelReference=e}dispose(){this._modelReference.dispose()}preview(e,t=8){const i=this._modelReference.object.textEditorModel;if(!i)return;const{startLineNumber:s,startColumn:n,endLineNumber:r,endColumn:o}=e,a=i.getWordUntilPosition({lineNumber:s,column:n-t}),c=new h.Q(s,a.startColumn,s,n),l=new h.Q(r,o,r,1073741824),d=i.getValueInRange(c).replace(/^\s+/,""),u=i.getValueInRange(e);return{value:d+u+i.getValueInRange(l).replace(/\s+$/,""),highlight:{start:d.length,end:d.length+u.length}}}}class p{constructor(e,t){this.parent=e,this.uri=t,this.children=[],this._previews=new a.fT}dispose(){(0,o.AS)(this._previews.values()),this._previews.clear()}getPreview(e){return this._previews.get(e.uri)}get ariaMessage(){const e=this.children.length;return 1===e?(0,d.kg)("aria.fileReferences.1","1 symbol in {0}, full path {1}",(0,c.P8)(this.uri),this.uri.fsPath):(0,d.kg)("aria.fileReferences.N","{0} symbols in {1}, full path {2}",e,(0,c.P8)(this.uri),this.uri.fsPath)}async resolve(e){if(0!==this._previews.size)return this;for(const i of this.children)if(!this._previews.has(i.uri))try{const t=await e.createModelReference(i.uri);this._previews.set(i.uri,new g(t))}catch(t){(0,s.dz)(t)}return this}}class m{constructor(e,t){this.groups=[],this.references=[],this._onDidChangeReferenceRange=new n.vl,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=e,this._title=t;const[i]=e;let s;e.sort(m._compareReferences);for(const n of e)if(s&&c.er.isEqual(s.uri,n.uri,!0)||(s=new p(this,n.uri),this.groups.push(s)),0===s.children.length||0!==m._compareReferences(n,s.children[s.children.length-1])){const e=new u(i===n,s,n,(e=>this._onDidChangeReferenceRange.fire(e)));this.references.push(e),s.children.push(e)}}dispose(){(0,o.AS)(this.groups),this._onDidChangeReferenceRange.dispose(),this.groups.length=0}clone(){return new m(this._links,this._title)}get title(){return this._title}get isEmpty(){return 0===this.groups.length}get ariaMessage(){return this.isEmpty?(0,d.kg)("aria.result.0","No results found"):1===this.references.length?(0,d.kg)("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):1===this.groups.length?(0,d.kg)("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):(0,d.kg)("aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length)}nextOrPreviousReference(e,t){const{parent:i}=e;let s=i.children.indexOf(e);const n=i.children.length,r=i.parent.groups.length;return 1===r||t&&s+1<n||!t&&s>0?(s=t?(s+1)%n:(s+n-1)%n,i.children[s]):(s=i.parent.groups.indexOf(i),t?(s=(s+1)%r,i.parent.groups[s].children[0]):(s=(s+r-1)%r,i.parent.groups[s].children[i.parent.groups[s].children.length-1]))}nearestReference(e,t){const i=this.references.map(((i,s)=>({idx:s,prefixLen:l.Qp(i.uri.toString(),e.toString()),offsetDist:100*Math.abs(i.range.startLineNumber-t.lineNumber)+Math.abs(i.range.startColumn-t.column)}))).sort(((e,t)=>e.prefixLen>t.prefixLen?-1:e.prefixLen<t.prefixLen?1:e.offsetDist<t.offsetDist?-1:e.offsetDist>t.offsetDist?1:0))[0];if(i)return this.references[i.idx]}referenceAt(e,t){for(const i of this.references)if(i.uri.toString()===e.toString()&&h.Q.containsPosition(i.range,t))return i}firstReference(){for(const e of this.references)if(e.isProviderFirst)return e;return this.references[0]}static _compareReferences(e,t){return c.er.compare(e.uri,t.uri)||h.Q.compareRangesUsingStarts(e.range,t.range)}}},77011:(e,t,i)=>{"use strict";i.d(t,{A:()=>q});var s=i(87758),n=i(5662),r=i(63591),o=i(64317),a=i(98031),c=i(90766),l=i(51219),h=i(8597),d=i(62083),u=i(12143),g=i(57039),p=i(88807),m=i(83069);class f extends n.jG{constructor(e,t=new h.fg(10,10)){super(),this._editor=e,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._resizableNode=this._register(new p.v),this._contentPosition=null,this._isResizing=!1,this._resizableNode.domNode.style.position="absolute",this._resizableNode.minSize=h.fg.lift(t),this._resizableNode.layout(t.height,t.width),this._resizableNode.enableSashes(!0,!0,!0,!0),this._register(this._resizableNode.onDidResize((e=>{this._resize(new h.fg(e.dimension.width,e.dimension.height)),e.done&&(this._isResizing=!1)}))),this._register(this._resizableNode.onDidWillResize((()=>{this._isResizing=!0})))}get isResizing(){return this._isResizing}getDomNode(){return this._resizableNode.domNode}getPosition(){return this._contentPosition}get position(){return this._contentPosition?.position?m.y.lift(this._contentPosition.position):void 0}_availableVerticalSpaceAbove(e){const t=this._editor.getDomNode(),i=this._editor.getScrolledVisiblePosition(e);if(!t||!i)return;return h.BK(t).top+i.top-30}_availableVerticalSpaceBelow(e){const t=this._editor.getDomNode(),i=this._editor.getScrolledVisiblePosition(e);if(!t||!i)return;const s=h.BK(t),n=h.tG(t.ownerDocument.body),r=s.top+i.top+i.height;return n.height-r-24}_findPositionPreference(e,t){const i=Math.min(this._availableVerticalSpaceBelow(t)??1/0,e),s=Math.min(this._availableVerticalSpaceAbove(t)??1/0,e),n=Math.min(Math.max(s,i),e),r=Math.min(e,n);let o;return o=this._editor.getOption(60).above?r<=s?1:2:r<=i?2:1,1===o?this._resizableNode.enableSashes(!0,!0,!1,!1):this._resizableNode.enableSashes(!1,!0,!0,!1),o}_resize(e){this._resizableNode.layout(e.height,e.width)}}var _,v=i(32848),C=i(84001),E=i(253),b=i(60002),S=i(52776),y=i(41234),w=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},R=function(e,t){return function(i,s){t(i,s,e)}};let L=class extends f{static{_=this}static{this.ID="editor.contrib.resizableContentHoverWidget"}static{this._lastDimensions=new h.fg(0,0)}get isVisibleFromKeyboard(){return 1===this._renderedHover?.source}get isVisible(){return this._hoverVisibleKey.get()??!1}get isFocused(){return this._hoverFocusedKey.get()??!1}constructor(e,t,i,s,n){const r=e.getOption(67)+8,o=new h.fg(150,r);super(e,o),this._configurationService=i,this._accessibilityService=s,this._keybindingService=n,this._hover=this._register(new S.N4),this._onDidResize=this._register(new y.vl),this.onDidResize=this._onDidResize.event,this._minimumSize=o,this._hoverVisibleKey=b.R.hoverVisible.bindTo(t),this._hoverFocusedKey=b.R.hoverFocused.bindTo(t),h.BC(this._resizableNode.domNode,this._hover.containerDomNode),this._resizableNode.domNode.style.zIndex="50",this._register(this._editor.onDidLayoutChange((()=>{this.isVisible&&this._updateMaxDimensions()}))),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(50)&&this._updateFont()})));const a=this._register(h.w5(this._resizableNode.domNode));this._register(a.onDidFocus((()=>{this._hoverFocusedKey.set(!0)}))),this._register(a.onDidBlur((()=>{this._hoverFocusedKey.set(!1)}))),this._setRenderedHover(void 0),this._editor.addContentWidget(this)}dispose(){super.dispose(),this._renderedHover?.dispose(),this._editor.removeContentWidget(this)}getId(){return _.ID}static _applyDimensions(e,t,i){const s="number"===typeof t?`${t}px`:t,n="number"===typeof i?`${i}px`:i;e.style.width=s,e.style.height=n}_setContentsDomNodeDimensions(e,t){const i=this._hover.contentsDomNode;return _._applyDimensions(i,e,t)}_setContainerDomNodeDimensions(e,t){const i=this._hover.containerDomNode;return _._applyDimensions(i,e,t)}_setHoverWidgetDimensions(e,t){this._setContentsDomNodeDimensions(e,t),this._setContainerDomNodeDimensions(e,t),this._layoutContentWidget()}static _applyMaxDimensions(e,t,i){const s="number"===typeof t?`${t}px`:t,n="number"===typeof i?`${i}px`:i;e.style.maxWidth=s,e.style.maxHeight=n}_setHoverWidgetMaxDimensions(e,t){_._applyMaxDimensions(this._hover.contentsDomNode,e,t),_._applyMaxDimensions(this._hover.containerDomNode,e,t),this._hover.containerDomNode.style.setProperty("--vscode-hover-maxWidth","number"===typeof e?`${e}px`:e),this._layoutContentWidget()}_setAdjustedHoverWidgetDimensions(e){this._setHoverWidgetMaxDimensions("none","none");const t=e.width,i=e.height;this._setHoverWidgetDimensions(t,i)}_updateResizableNodeMaxDimensions(){const e=this._findMaximumRenderingWidth()??1/0,t=this._findMaximumRenderingHeight()??1/0;this._resizableNode.maxSize=new h.fg(e,t),this._setHoverWidgetMaxDimensions(e,t)}_resize(e){_._lastDimensions=new h.fg(e.width,e.height),this._setAdjustedHoverWidgetDimensions(e),this._resizableNode.layout(e.height,e.width),this._updateResizableNodeMaxDimensions(),this._hover.scrollbar.scanDomNode(),this._editor.layoutContentWidget(this),this._onDidResize.fire()}_findAvailableSpaceVertically(){const e=this._renderedHover?.showAtPosition;if(e)return 1===this._positionPreference?this._availableVerticalSpaceAbove(e):this._availableVerticalSpaceBelow(e)}_findMaximumRenderingHeight(){const e=this._findAvailableSpaceVertically();if(!e)return;let t=6;return Array.from(this._hover.contentsDomNode.children).forEach((e=>{t+=e.clientHeight})),Math.min(e,t)}_isHoverTextOverflowing(){this._hover.containerDomNode.style.setProperty("--vscode-hover-whiteSpace","nowrap"),this._hover.containerDomNode.style.setProperty("--vscode-hover-sourceWhiteSpace","nowrap");const e=Array.from(this._hover.contentsDomNode.children).some((e=>e.scrollWidth>e.clientWidth));return this._hover.containerDomNode.style.removeProperty("--vscode-hover-whiteSpace"),this._hover.containerDomNode.style.removeProperty("--vscode-hover-sourceWhiteSpace"),e}_findMaximumRenderingWidth(){if(!this._editor||!this._editor.hasModel())return;const e=this._isHoverTextOverflowing(),t="undefined"===typeof this._contentWidth?0:this._contentWidth-2;if(e||this._hover.containerDomNode.clientWidth<t){return h.tG(this._hover.containerDomNode.ownerDocument.body).width-14}return this._hover.containerDomNode.clientWidth+2}isMouseGettingCloser(e,t){if(!this._renderedHover)return!1;if(void 0===this._renderedHover.initialMousePosX||void 0===this._renderedHover.initialMousePosY)return this._renderedHover.initialMousePosX=e,this._renderedHover.initialMousePosY=t,!1;const i=h.BK(this.getDomNode());void 0===this._renderedHover.closestMouseDistance&&(this._renderedHover.closestMouseDistance=T(this._renderedHover.initialMousePosX,this._renderedHover.initialMousePosY,i.left,i.top,i.width,i.height));const s=T(e,t,i.left,i.top,i.width,i.height);return!(s>this._renderedHover.closestMouseDistance+4)&&(this._renderedHover.closestMouseDistance=Math.min(this._renderedHover.closestMouseDistance,s),!0)}_setRenderedHover(e){this._renderedHover?.dispose(),this._renderedHover=e,this._hoverVisibleKey.set(!!e),this._hover.containerDomNode.classList.toggle("hidden",!e)}_updateFont(){const{fontSize:e,lineHeight:t}=this._editor.getOption(50),i=this._hover.contentsDomNode;i.style.fontSize=`${e}px`,i.style.lineHeight=""+t/e;Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach((e=>this._editor.applyFontInfo(e)))}_updateContent(e){const t=this._hover.contentsDomNode;t.style.paddingBottom="",t.textContent="",t.appendChild(e)}_layoutContentWidget(){this._editor.layoutContentWidget(this),this._hover.onContentsChanged()}_updateMaxDimensions(){const e=Math.max(this._editor.getLayoutInfo().height/4,250,_._lastDimensions.height),t=Math.max(.66*this._editor.getLayoutInfo().width,500,_._lastDimensions.width);this._setHoverWidgetMaxDimensions(t,e)}_render(e){this._setRenderedHover(e),this._updateFont(),this._updateContent(e.domNode),this._updateMaxDimensions(),this.onContentsChanged(),this._editor.render()}getPosition(){return this._renderedHover?{position:this._renderedHover.showAtPosition,secondaryPosition:this._renderedHover.showAtSecondaryPosition,positionAffinity:this._renderedHover.shouldAppearBeforeContent?3:void 0,preference:[this._positionPreference??1]}:null}show(e){if(!this._editor||!this._editor.hasModel())return;this._render(e);const t=h.OK(this._hover.containerDomNode),i=e.showAtPosition;this._positionPreference=this._findPositionPreference(t,i)??1,this.onContentsChanged(),e.shouldFocus&&this._hover.containerDomNode.focus(),this._onDidResize.fire();const s=this._hover.containerDomNode.ownerDocument.activeElement===this._hover.containerDomNode&&(0,S.vr)(!0===this._configurationService.getValue("accessibility.verbosity.hover")&&this._accessibilityService.isScreenReaderOptimized(),this._keybindingService.lookupKeybinding("editor.action.accessibleView")?.getAriaLabel()??"");s&&(this._hover.contentsDomNode.ariaLabel=this._hover.contentsDomNode.textContent+", "+s)}hide(){if(!this._renderedHover)return;const e=this._renderedHover.shouldFocus||this._hoverFocusedKey.get();this._setRenderedHover(void 0),this._resizableNode.maxSize=new h.fg(1/0,1/0),this._resizableNode.clearSashHoverState(),this._hoverFocusedKey.set(!1),this._editor.layoutContentWidget(this),e&&this._editor.focus()}_removeConstraintsRenderNormally(){const e=this._editor.getLayoutInfo();this._resizableNode.layout(e.height,e.width),this._setHoverWidgetDimensions("auto","auto")}setMinimumDimensions(e){this._minimumSize=new h.fg(Math.max(this._minimumSize.width,e.width),Math.max(this._minimumSize.height,e.height)),this._updateMinimumWidth()}_updateMinimumWidth(){const e="undefined"===typeof this._contentWidth?this._minimumSize.width:Math.min(this._contentWidth,this._minimumSize.width);this._resizableNode.minSize=new h.fg(e,this._minimumSize.height)}onContentsChanged(){this._removeConstraintsRenderNormally();const e=this._hover.containerDomNode;let t=h.OK(e),i=h.Tr(e);if(this._resizableNode.layout(t,i),this._setHoverWidgetDimensions(i,t),t=h.OK(e),i=h.Tr(e),this._contentWidth=i,this._updateMinimumWidth(),this._resizableNode.layout(t,i),this._renderedHover?.showAtPosition){const e=h.OK(this._hover.containerDomNode);this._positionPreference=this._findPositionPreference(e,this._renderedHover.showAtPosition)}this._layoutContentWidget()}focus(){this._hover.containerDomNode.focus()}scrollUp(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._editor.getOption(50);this._hover.scrollbar.setScrollPosition({scrollTop:e-t.lineHeight})}scrollDown(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._editor.getOption(50);this._hover.scrollbar.setScrollPosition({scrollTop:e+t.lineHeight})}scrollLeft(){const e=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:e-30})}scrollRight(){const e=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:e+30})}pageUp(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:e-t})}pageDown(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:e+t})}goToTop(){this._hover.scrollbar.setScrollPosition({scrollTop:0})}goToBottom(){this._hover.scrollbar.setScrollPosition({scrollTop:this._hover.scrollbar.getScrollDimensions().scrollHeight})}};function T(e,t,i,s,n,r){const o=i+n/2,a=s+r/2,c=Math.max(Math.abs(e-o)-n/2,0),l=Math.max(Math.abs(t-a)-r/2,0);return Math.sqrt(c*c+l*l)}L=_=w([R(1,v.fN),R(2,C.pG),R(3,E.j),R(4,a.b)],L);var x=i(25890);class k{get anchor(){return this._anchor}set anchor(e){this._anchor=e}get shouldFocus(){return this._shouldFocus}set shouldFocus(e){this._shouldFocus=e}get source(){return this._source}set source(e){this._source=e}get insistOnKeepingHoverVisible(){return this._insistOnKeepingHoverVisible}set insistOnKeepingHoverVisible(e){this._insistOnKeepingHoverVisible=e}constructor(e,t){this._editor=e,this._participants=t,this._anchor=null,this._shouldFocus=!1,this._source=0,this._insistOnKeepingHoverVisible=!1}static _getLineDecorations(e,t){if(1!==t.type&&!t.supportsMarkerHover)return[];const i=e.getModel(),s=t.range.startLineNumber;if(s>i.getLineCount())return[];const n=i.getLineMaxColumn(s);return e.getLineDecorations(s).filter((e=>{if(e.options.isWholeLine)return!0;const i=e.range.startLineNumber===s?e.range.startColumn:1,r=e.range.endLineNumber===s?e.range.endColumn:n;if(e.options.showIfCollapsed){if(i>t.range.startColumn+1||t.range.endColumn-1>r)return!1}else if(i>t.range.startColumn||t.range.endColumn>r)return!1;return!0}))}computeAsync(e){const t=this._anchor;if(!this._editor.hasModel()||!t)return c.AE.EMPTY;const i=k._getLineDecorations(this._editor,t);return c.AE.merge(this._participants.map((s=>s.computeAsync?s.computeAsync(t,i,e):c.AE.EMPTY)))}computeSync(){if(!this._editor.hasModel()||!this._anchor)return[];const e=k._getLineDecorations(this._editor,this._anchor);let t=[];for(const i of this._participants)t=t.concat(i.computeSync(this._anchor,e));return(0,x.Yc)(t)}}class A{constructor(e,t,i){this.anchor=e,this.hoverParts=t,this.isComplete=i}filter(e){const t=this.hoverParts.filter((t=>t.isValidForHoverAnchor(e)));return t.length===this.hoverParts.length?this:new N(this,this.anchor,t,this.isComplete)}}class N extends A{constructor(e,t,i,s){super(t,i,s),this.original=e}filter(e){return this.original.filter(e)}}var I=i(9270),O=i(87289),D=i(36677),M=i(57286),P=i(28712),F=i(68250),U=i(64383);class H extends n.jG{constructor(e,t,i,s,n,r){super();const o=t.anchor,a=t.hoverParts;this._renderedHoverParts=this._register(new W(e,i,a,r,n));const{showAtPosition:c,showAtSecondaryPosition:l}=H.computeHoverPositions(e,o.range,a);this.shouldAppearBeforeContent=a.some((e=>e.isBeforeContent)),this.showAtPosition=c,this.showAtSecondaryPosition=l,this.initialMousePosX=o.initialMousePosX,this.initialMousePosY=o.initialMousePosY,this.shouldFocus=s.shouldFocus,this.source=s.source}get domNode(){return this._renderedHoverParts.domNode}get domNodeHasChildren(){return this._renderedHoverParts.domNodeHasChildren}get focusedHoverPartIndex(){return this._renderedHoverParts.focusedHoverPartIndex}async updateHoverVerbosityLevel(e,t,i){this._renderedHoverParts.updateHoverVerbosityLevel(e,t,i)}isColorPickerVisible(){return this._renderedHoverParts.isColorPickerVisible()}static computeHoverPositions(e,t,i){let s=1;if(e.hasModel()){const i=e._getViewModel(),n=i.coordinatesConverter,r=n.convertModelRangeToViewRange(t),o=i.getLineMinColumn(r.startLineNumber),a=new m.y(r.startLineNumber,o);s=n.convertViewPositionToModelPosition(a).column}const n=t.startLineNumber;let r,o,a,c=t.startColumn;for(const l of i){const e=l.range,t=e.startLineNumber===n,i=e.endLineNumber===n;if(t&&i){const t=e.startColumn,i=Math.min(c,t);c=Math.max(i,s)}l.forceShowAtRange&&(r=e)}if(r){const e=r.getStartPosition();o=e,a=e}else o=t.getStartPosition(),a=new m.y(n,c);return{showAtPosition:o,showAtSecondaryPosition:a}}}class B{constructor(e,t){this._statusBar=t,e.appendChild(this._statusBar.hoverElement)}get hoverElement(){return this._statusBar.hoverElement}get actions(){return this._statusBar.actions}dispose(){this._statusBar.dispose()}}class W extends n.jG{static{this._DECORATION_OPTIONS=O.kI.register({description:"content-hover-highlight",className:"hoverHighlight"})}constructor(e,t,i,s,n){super(),this._renderedParts=[],this._focusedHoverPartIndex=-1,this._context=n,this._fragment=document.createDocumentFragment(),this._register(this._renderParts(t,i,n,s)),this._register(this._registerListenersOnRenderedParts()),this._register(this._createEditorDecorations(e,i)),this._updateMarkdownAndColorParticipantInfo(t)}_createEditorDecorations(e,t){if(0===t.length)return n.jG.None;let i=t[0].range;for(const n of t){const e=n.range;i=D.Q.plusRange(i,e)}const s=e.createDecorationsCollection();return s.set([{range:i,options:W._DECORATION_OPTIONS}]),(0,n.s)((()=>{s.clear()}))}_renderParts(e,t,i,s){const r=new I.L(s),o={fragment:this._fragment,statusBar:r,...i},a=new n.Cm;for(const n of e){const e=this._renderHoverPartsForParticipant(t,n,o);a.add(e);for(const t of e.renderedHoverParts)this._renderedParts.push({type:"hoverPart",participant:n,hoverPart:t.hoverPart,hoverElement:t.hoverElement})}const c=this._renderStatusBar(this._fragment,r);return c&&(a.add(c),this._renderedParts.push({type:"statusBar",hoverElement:c.hoverElement,actions:c.actions})),(0,n.s)((()=>{a.dispose()}))}_renderHoverPartsForParticipant(e,t,i){const s=e.filter((e=>e.owner===t));return s.length>0?t.renderHoverParts(i,s):new g.Ke([])}_renderStatusBar(e,t){if(t.hasContent)return new B(e,t)}_registerListenersOnRenderedParts(){const e=new n.Cm;return this._renderedParts.forEach(((t,i)=>{const s=t.hoverElement;s.tabIndex=0,e.add(h.ko(s,h.Bx.FOCUS_IN,(e=>{e.stopPropagation(),this._focusedHoverPartIndex=i}))),e.add(h.ko(s,h.Bx.FOCUS_OUT,(e=>{e.stopPropagation(),this._focusedHoverPartIndex=-1})))})),e}_updateMarkdownAndColorParticipantInfo(e){const t=e.find((e=>e instanceof M.xJ&&!(e instanceof F.u)));t&&(this._markdownHoverParticipant=t),this._colorHoverParticipant=e.find((e=>e instanceof P.BJ))}async updateHoverVerbosityLevel(e,t,i){if(!this._markdownHoverParticipant)return;const s=this._normalizedIndexToMarkdownHoverIndexRange(this._markdownHoverParticipant,t);if(void 0===s)return;const n=await this._markdownHoverParticipant.updateMarkdownHoverVerbosityLevel(e,s,i);n&&(this._renderedParts[t]={type:"hoverPart",participant:this._markdownHoverParticipant,hoverPart:n.hoverPart,hoverElement:n.hoverElement},this._context.onContentsChanged())}isColorPickerVisible(){return this._colorHoverParticipant?.isColorPickerVisible()??!1}_normalizedIndexToMarkdownHoverIndexRange(e,t){const i=this._renderedParts[t];if(!i||"hoverPart"!==i.type)return;if(!(i.participant===e))return;const s=this._renderedParts.findIndex((t=>"hoverPart"===t.type&&t.participant===e));if(-1===s)throw new U.D7;return t-s}get domNode(){return this._fragment}get domNodeHasChildren(){return this._fragment.hasChildNodes()}get focusedHoverPartIndex(){return this._focusedHoverPartIndex}}var V=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},z=function(e,t){return function(i,s){t(i,s,e)}};let G=class extends n.jG{constructor(e,t,i){super(),this._editor=e,this._instantiationService=t,this._keybindingService=i,this._currentResult=null,this._onContentsChanged=this._register(new y.vl),this.onContentsChanged=this._onContentsChanged.event,this._contentHoverWidget=this._register(this._instantiationService.createInstance(L,this._editor)),this._participants=this._initializeHoverParticipants(),this._computer=new k(this._editor,this._participants),this._hoverOperation=this._register(new u.w(this._editor,this._computer)),this._registerListeners()}_initializeHoverParticipants(){const e=[];for(const t of g.B2.getAll()){const i=this._instantiationService.createInstance(t,this._editor);e.push(i)}return e.sort(((e,t)=>e.hoverOrdinal-t.hoverOrdinal)),this._register(this._contentHoverWidget.onDidResize((()=>{this._participants.forEach((e=>e.handleResize?.()))}))),e}_registerListeners(){this._register(this._hoverOperation.onResult((e=>{if(!this._computer.anchor)return;const t=e.hasLoadingMessage?this._addLoadingMessage(e.value):e.value;this._withResult(new A(this._computer.anchor,t,e.isComplete))})));const e=this._contentHoverWidget.getDomNode();this._register(h.b2(e,"keydown",(e=>{e.equals(9)&&this.hide()}))),this._register(h.b2(e,"mouseleave",(e=>{this._onMouseLeave(e)}))),this._register(d.dG.onDidChange((()=>{this._contentHoverWidget.position&&this._currentResult&&this._setCurrentResult(this._currentResult)})))}_startShowingOrUpdateHover(e,t,i,s,n){if(!(this._contentHoverWidget.position&&this._currentResult))return!!e&&(this._startHoverOperationIfNecessary(e,t,i,s,!1),!0);const r=this._editor.getOption(60).sticky,o=n&&this._contentHoverWidget.isMouseGettingCloser(n.event.posx,n.event.posy);if(r&&o)return e&&this._startHoverOperationIfNecessary(e,t,i,s,!0),!0;if(!e)return this._setCurrentResult(null),!1;if(this._currentResult.anchor.equals(e))return!0;return e.canAdoptVisibleHover(this._currentResult.anchor,this._contentHoverWidget.position)?(this._setCurrentResult(this._currentResult.filter(e)),this._startHoverOperationIfNecessary(e,t,i,s,!1),!0):(this._setCurrentResult(null),this._startHoverOperationIfNecessary(e,t,i,s,!1),!0)}_startHoverOperationIfNecessary(e,t,i,s,n){this._computer.anchor&&this._computer.anchor.equals(e)||(this._hoverOperation.cancel(),this._computer.anchor=e,this._computer.shouldFocus=s,this._computer.source=i,this._computer.insistOnKeepingHoverVisible=n,this._hoverOperation.start(t))}_setCurrentResult(e){let t=e;if(this._currentResult===t)return;t&&0===t.hoverParts.length&&(t=null),this._currentResult=t,this._currentResult?this._showHover(this._currentResult):this._hideHover()}_addLoadingMessage(e){if(!this._computer.anchor)return e;for(const t of this._participants){if(!t.createLoadingMessage)continue;const i=t.createLoadingMessage(this._computer.anchor);if(i)return e.slice(0).concat([i])}return e}_withResult(e){this._contentHoverWidget.position&&this._currentResult&&this._currentResult.isComplete||this._setCurrentResult(e);if(!e.isComplete)return;const t=0===e.hoverParts.length,i=this._computer.insistOnKeepingHoverVisible;t&&i||this._setCurrentResult(e)}_showHover(e){const t=this._getHoverContext();this._renderedContentHover=new H(this._editor,e,this._participants,this._computer,t,this._keybindingService),this._renderedContentHover.domNodeHasChildren?this._contentHoverWidget.show(this._renderedContentHover):this._renderedContentHover.dispose()}_hideHover(){this._contentHoverWidget.hide()}_getHoverContext(){return{hide:()=>{this.hide()},onContentsChanged:()=>{this._onContentsChanged.fire(),this._contentHoverWidget.onContentsChanged()},setMinimumDimensions:e=>{this._contentHoverWidget.setMinimumDimensions(e)}}}showsOrWillShow(e){if(this._contentHoverWidget.isResizing)return!0;const t=this._findHoverAnchorCandidates(e);if(!(t.length>0))return this._startShowingOrUpdateHover(null,0,0,!1,e);const i=t[0];return this._startShowingOrUpdateHover(i,0,0,!1,e)}_findHoverAnchorCandidates(e){const t=[];for(const s of this._participants){if(!s.suggestHoverAnchor)continue;const i=s.suggestHoverAnchor(e);i&&t.push(i)}const i=e.target;switch(i.type){case 6:t.push(new g.hx(0,i.range,e.event.posx,e.event.posy));break;case 7:{const s=this._editor.getOption(50).typicalHalfwidthCharacterWidth/2;if(!(!i.detail.isAfterLines&&"number"===typeof i.detail.horizontalDistanceToText&&i.detail.horizontalDistanceToText<s))break;t.push(new g.hx(0,i.range,e.event.posx,e.event.posy));break}}return t.sort(((e,t)=>t.priority-e.priority)),t}_onMouseLeave(e){const t=this._editor.getDomNode();(!t||!(0,l.U)(t,e.x,e.y))&&this.hide()}startShowingAtRange(e,t,i,s){this._startShowingOrUpdateHover(new g.hx(0,e,void 0,void 0),t,i,s,null)}async updateHoverVerbosityLevel(e,t,i){this._renderedContentHover?.updateHoverVerbosityLevel(e,t,i)}focusedHoverPartIndex(){return this._renderedContentHover?.focusedHoverPartIndex??-1}containsNode(e){return!!e&&this._contentHoverWidget.getDomNode().contains(e)}focus(){this._contentHoverWidget.focus()}scrollUp(){this._contentHoverWidget.scrollUp()}scrollDown(){this._contentHoverWidget.scrollDown()}scrollLeft(){this._contentHoverWidget.scrollLeft()}scrollRight(){this._contentHoverWidget.scrollRight()}pageUp(){this._contentHoverWidget.pageUp()}pageDown(){this._contentHoverWidget.pageDown()}goToTop(){this._contentHoverWidget.goToTop()}goToBottom(){this._contentHoverWidget.goToBottom()}hide(){this._computer.anchor=null,this._hoverOperation.cancel(),this._setCurrentResult(null)}getDomNode(){return this._contentHoverWidget.getDomNode()}get isColorPickerVisible(){return this._renderedContentHover?.isColorPickerVisible()??!1}get isVisibleFromKeyboard(){return this._contentHoverWidget.isVisibleFromKeyboard}get isVisible(){return this._contentHoverWidget.isVisible}get isFocused(){return this._contentHoverWidget.isFocused}get isResizing(){return this._contentHoverWidget.isResizing}get widget(){return this._contentHoverWidget}};G=V([z(1,r._Y),z(2,a.b)],G);i(82320);var j,K=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Y=function(e,t){return function(i,s){t(i,s,e)}};let q=class extends n.jG{static{j=this}static{this.ID="editor.contrib.contentHover"}constructor(e,t,i){super(),this._editor=e,this._instantiationService=t,this._keybindingService=i,this._onHoverContentsChanged=this._register(new y.vl),this.shouldKeepOpenOnEditorMouseMoveOrLeave=!1,this._listenersStore=new n.Cm,this._hoverState={mouseDown:!1,activatedByDecoratorClick:!1},this._reactToEditorMouseMoveRunner=this._register(new c.uC((()=>this._reactToEditorMouseMove(this._mouseMoveEvent)),0)),this._hookListeners(),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(60)&&(this._unhookListeners(),this._hookListeners())})))}static get(e){return e.getContribution(j.ID)}_hookListeners(){const e=this._editor.getOption(60);this._hoverSettings={enabled:e.enabled,sticky:e.sticky,hidingDelay:e.hidingDelay},e.enabled?(this._listenersStore.add(this._editor.onMouseDown((e=>this._onEditorMouseDown(e)))),this._listenersStore.add(this._editor.onMouseUp((()=>this._onEditorMouseUp()))),this._listenersStore.add(this._editor.onMouseMove((e=>this._onEditorMouseMove(e)))),this._listenersStore.add(this._editor.onKeyDown((e=>this._onKeyDown(e))))):(this._listenersStore.add(this._editor.onMouseMove((e=>this._onEditorMouseMove(e)))),this._listenersStore.add(this._editor.onKeyDown((e=>this._onKeyDown(e))))),this._listenersStore.add(this._editor.onMouseLeave((e=>this._onEditorMouseLeave(e)))),this._listenersStore.add(this._editor.onDidChangeModel((()=>{this._cancelScheduler(),this._hideWidgets()}))),this._listenersStore.add(this._editor.onDidChangeModelContent((()=>this._cancelScheduler()))),this._listenersStore.add(this._editor.onDidScrollChange((e=>this._onEditorScrollChanged(e))))}_unhookListeners(){this._listenersStore.clear()}_cancelScheduler(){this._mouseMoveEvent=void 0,this._reactToEditorMouseMoveRunner.cancel()}_onEditorScrollChanged(e){(e.scrollTopChanged||e.scrollLeftChanged)&&this._hideWidgets()}_onEditorMouseDown(e){this._hoverState.mouseDown=!0;this._shouldNotHideCurrentHoverWidget(e)||this._hideWidgets()}_shouldNotHideCurrentHoverWidget(e){return this._isMouseOnContentHoverWidget(e)||this._isContentWidgetResizing()}_isMouseOnContentHoverWidget(e){const t=this._contentWidget?.getDomNode();return!!t&&(0,l.U)(t,e.event.posx,e.event.posy)}_onEditorMouseUp(){this._hoverState.mouseDown=!1}_onEditorMouseLeave(e){if(this.shouldKeepOpenOnEditorMouseMoveOrLeave)return;this._cancelScheduler();this._shouldNotHideCurrentHoverWidget(e)||this._hideWidgets()}_shouldNotRecomputeCurrentHoverWidget(e){const t=this._hoverSettings.sticky;return((e,t)=>{const i=this._isMouseOnContentHoverWidget(e);return t&&i})(e,t)||(e=>{const t=this._isMouseOnContentHoverWidget(e),i=this._contentWidget?.isColorPickerVisible??!1;return t&&i})(e)||((e,t)=>(t&&this._contentWidget?.containsNode(e.event.browserEvent.view?.document.activeElement)&&!e.event.browserEvent.view?.getSelection()?.isCollapsed)??!1)(e,t)}_onEditorMouseMove(e){if(this.shouldKeepOpenOnEditorMouseMoveOrLeave)return;if(this._mouseMoveEvent=e,this._contentWidget?.isFocused||this._contentWidget?.isResizing)return;const t=this._hoverSettings.sticky;if(t&&this._contentWidget?.isVisibleFromKeyboard)return;if(this._shouldNotRecomputeCurrentHoverWidget(e))return void this._reactToEditorMouseMoveRunner.cancel();const i=this._hoverSettings.hidingDelay,s=this._contentWidget?.isVisible;s&&t&&i>0?this._reactToEditorMouseMoveRunner.isScheduled()||this._reactToEditorMouseMoveRunner.schedule(i):this._reactToEditorMouseMove(e)}_reactToEditorMouseMove(e){if(!e)return;const t=e.target,i=t.element?.classList.contains("colorpicker-color-decoration"),s=this._editor.getOption(149),n=this._hoverSettings.enabled,r=this._hoverState.activatedByDecoratorClick;if(i&&("click"===s&&!r||"hover"===s&&!n||"clickAndHover"===s&&!n&&!r)||!i&&!n&&!r)return void this._hideWidgets();this._tryShowHoverWidget(e)||this._hideWidgets()}_tryShowHoverWidget(e){return this._getOrCreateContentWidget().showsOrWillShow(e)}_onKeyDown(e){if(!this._editor.hasModel())return;const t=this._keybindingService.softDispatch(e,this._editor.getDomNode()),i=1===t.kind||2===t.kind&&(t.commandId===s.jA||t.commandId===s.jq||t.commandId===s.Zp)&&this._contentWidget?.isVisible;5===e.keyCode||6===e.keyCode||57===e.keyCode||4===e.keyCode||i||this._hideWidgets()}_hideWidgets(){this._hoverState.mouseDown&&this._contentWidget?.isColorPickerVisible||o.bo.dropDownVisible||(this._hoverState.activatedByDecoratorClick=!1,this._contentWidget?.hide())}_getOrCreateContentWidget(){return this._contentWidget||(this._contentWidget=this._instantiationService.createInstance(G,this._editor),this._listenersStore.add(this._contentWidget.onContentsChanged((()=>this._onHoverContentsChanged.fire())))),this._contentWidget}showContentHover(e,t,i,s,n=!1){this._hoverState.activatedByDecoratorClick=n,this._getOrCreateContentWidget().startShowingAtRange(e,t,i,s)}_isContentWidgetResizing(){return this._contentWidget?.widget.isResizing||!1}focusedHoverPartIndex(){return this._getOrCreateContentWidget().focusedHoverPartIndex()}updateHoverVerbosityLevel(e,t,i){this._getOrCreateContentWidget().updateHoverVerbosityLevel(e,t,i)}focus(){this._contentWidget?.focus()}scrollUp(){this._contentWidget?.scrollUp()}scrollDown(){this._contentWidget?.scrollDown()}scrollLeft(){this._contentWidget?.scrollLeft()}scrollRight(){this._contentWidget?.scrollRight()}pageUp(){this._contentWidget?.pageUp()}pageDown(){this._contentWidget?.pageDown()}goToTop(){this._contentWidget?.goToTop()}goToBottom(){this._contentWidget?.goToBottom()}get isColorPickerVisible(){return this._contentWidget?.isColorPickerVisible}get isHoverVisible(){return this._contentWidget?.isVisible}dispose(){super.dispose(),this._unhookListeners(),this._listenersStore.dispose(),this._contentWidget?.dispose()}};q=j=K([Y(1,r._Y),Y(2,a.b)],q)},9270:(e,t,i)=>{"use strict";i.d(t,{L:()=>h});var s=i(8597),n=i(52776),r=i(5662),o=i(98031),a=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},c=function(e,t){return function(i,s){t(i,s,e)}};const l=s.$;let h=class extends r.jG{get hasContent(){return this._hasContent}constructor(e){super(),this._keybindingService=e,this.actions=[],this._hasContent=!1,this.hoverElement=l("div.hover-row.status-bar"),this.hoverElement.tabIndex=0,this.actionsElement=s.BC(this.hoverElement,l("div.actions"))}addAction(e){const t=this._keybindingService.lookupKeybinding(e.commandId),i=t?t.getLabel():null;this._hasContent=!0;const s=this._register(n.jQ.render(this.actionsElement,e,i));return this.actions.push(s),s}append(e){const t=s.BC(this.actionsElement,e);return this._hasContent=!0,t}};h=a([c(0,o.b)],h)},7142:(e,t,i)=>{"use strict";i.d(t,{U:()=>l});var s=i(90766),n=i(18447),r=i(64383),o=i(31450),a=i(56942);class c{constructor(e,t,i){this.provider=e,this.hover=t,this.ordinal=i}}function l(e,t,i,n,o=!1){const a=e.ordered(t,o).map(((e,s)=>async function(e,t,i,s,n){const o=await Promise.resolve(e.provideHover(i,s,n)).catch(r.M_);if(o&&function(e){const t="undefined"!==typeof e.range,i="undefined"!==typeof e.contents&&e.contents&&e.contents.length>0;return t&&i}(o))return new c(e,o,t)}(e,s,t,i,n)));return s.AE.fromPromises(a).coalesce()}function h(e,t,i,s,n=!1){return l(e,t,i,s,n).map((e=>e.hover)).toPromise()}(0,o.ke)("_executeHoverProvider",((e,t,i)=>h(e.get(a.ILanguageFeaturesService).hoverProvider,t,i,n.XO.None))),(0,o.ke)("_executeHoverProvider_recursive",((e,t,i)=>h(e.get(a.ILanguageFeaturesService).hoverProvider,t,i,n.XO.None,!0)))},87758:(e,t,i)=>{"use strict";i.d(t,{G8:()=>_,Hm:()=>d,Hp:()=>a,K6:()=>o,MB:()=>c,Xp:()=>u,Zp:()=>f,dV:()=>r,iM:()=>m,ih:()=>h,jA:()=>n,jq:()=>p,vf:()=>l,vx:()=>g});var s=i(78209);const n="editor.action.showHover",r="editor.action.showDefinitionPreviewHover",o="editor.action.scrollUpHover",a="editor.action.scrollDownHover",c="editor.action.scrollLeftHover",l="editor.action.scrollRightHover",h="editor.action.pageUpHover",d="editor.action.pageDownHover",u="editor.action.goToTopHover",g="editor.action.goToBottomHover",p="editor.action.increaseHoverVerbosityLevel",m=s.kg({key:"increaseHoverVerbosityLevel",comment:["Label for action that will increase the hover verbosity level."]},"Increase Hover Verbosity Level"),f="editor.action.decreaseHoverVerbosityLevel",_=s.kg({key:"decreaseHoverVerbosityLevel",comment:["Label for action that will decrease the hover verbosity level."]},"Decrease Hover Verbosity Level")},58466:(e,t,i)=>{"use strict";var s,n=i(87758),r=i(24939),o=i(31450),a=i(36677),c=i(60002),l=i(62427),h=i(77011),d=i(62083),u=i(78209);i(82320);!function(e){e.NoAutoFocus="noAutoFocus",e.FocusIfVisible="focusIfVisible",e.AutoFocusImmediately="autoFocusImmediately"}(s||(s={}));class g extends o.ks{constructor(){super({id:n.jA,label:u.kg({key:"showOrFocusHover",comment:["Label for action that will trigger the showing/focusing of a hover in the editor.","If the hover is not visible, it will show the hover.","This allows for users to show the hover without using the mouse."]},"Show or Focus Hover"),metadata:{description:u.aS("showOrFocusHoverDescription","Show or focus the editor hover which shows documentation, references, and other content for a symbol at the current cursor position."),args:[{name:"args",schema:{type:"object",properties:{focus:{description:"Controls if and when the hover should take focus upon being triggered by this action.",enum:[s.NoAutoFocus,s.FocusIfVisible,s.AutoFocusImmediately],enumDescriptions:[u.kg("showOrFocusHover.focus.noAutoFocus","The hover will not automatically take focus."),u.kg("showOrFocusHover.focus.focusIfVisible","The hover will take focus only if it is already visible."),u.kg("showOrFocusHover.focus.autoFocusImmediately","The hover will automatically take focus when it appears.")],default:s.FocusIfVisible}}}}]},alias:"Show or Focus Hover",precondition:void 0,kbOpts:{kbExpr:c.R.editorTextFocus,primary:(0,r.m5)(2089,2087),weight:100}})}run(e,t,i){if(!t.hasModel())return;const n=h.A.get(t);if(!n)return;const r=i?.focus;let o=s.FocusIfVisible;Object.values(s).includes(r)?o=r:"boolean"===typeof r&&r&&(o=s.AutoFocusImmediately);const c=e=>{const i=t.getPosition(),s=new a.Q(i.lineNumber,i.column,i.lineNumber,i.column);n.showContentHover(s,1,1,e)},l=2===t.getOption(2);n.isHoverVisible?o!==s.NoAutoFocus?n.focus():c(l):c(l||o===s.AutoFocusImmediately)}}class p extends o.ks{constructor(){super({id:n.dV,label:u.kg({key:"showDefinitionPreviewHover",comment:["Label for action that will trigger the showing of definition preview hover in the editor.","This allows for users to show the definition preview hover without using the mouse."]},"Show Definition Preview Hover"),alias:"Show Definition Preview Hover",precondition:void 0,metadata:{description:u.aS("showDefinitionPreviewHoverDescription","Show the definition preview hover in the editor.")}})}run(e,t){const i=h.A.get(t);if(!i)return;const s=t.getPosition();if(!s)return;const n=new a.Q(s.lineNumber,s.column,s.lineNumber,s.column),r=l.k.get(t);if(!r)return;r.startFindDefinitionFromCursor(s).then((()=>{i.showContentHover(n,1,1,!0)}))}}class m extends o.ks{constructor(){super({id:n.K6,label:u.kg({key:"scrollUpHover",comment:["Action that allows to scroll up in the hover widget with the up arrow when the hover widget is focused."]},"Scroll Up Hover"),alias:"Scroll Up Hover",precondition:c.R.hoverFocused,kbOpts:{kbExpr:c.R.hoverFocused,primary:16,weight:100},metadata:{description:u.aS("scrollUpHoverDescription","Scroll up the editor hover.")}})}run(e,t){const i=h.A.get(t);i&&i.scrollUp()}}class f extends o.ks{constructor(){super({id:n.Hp,label:u.kg({key:"scrollDownHover",comment:["Action that allows to scroll down in the hover widget with the up arrow when the hover widget is focused."]},"Scroll Down Hover"),alias:"Scroll Down Hover",precondition:c.R.hoverFocused,kbOpts:{kbExpr:c.R.hoverFocused,primary:18,weight:100},metadata:{description:u.aS("scrollDownHoverDescription","Scroll down the editor hover.")}})}run(e,t){const i=h.A.get(t);i&&i.scrollDown()}}class _ extends o.ks{constructor(){super({id:n.MB,label:u.kg({key:"scrollLeftHover",comment:["Action that allows to scroll left in the hover widget with the left arrow when the hover widget is focused."]},"Scroll Left Hover"),alias:"Scroll Left Hover",precondition:c.R.hoverFocused,kbOpts:{kbExpr:c.R.hoverFocused,primary:15,weight:100},metadata:{description:u.aS("scrollLeftHoverDescription","Scroll left the editor hover.")}})}run(e,t){const i=h.A.get(t);i&&i.scrollLeft()}}class v extends o.ks{constructor(){super({id:n.vf,label:u.kg({key:"scrollRightHover",comment:["Action that allows to scroll right in the hover widget with the right arrow when the hover widget is focused."]},"Scroll Right Hover"),alias:"Scroll Right Hover",precondition:c.R.hoverFocused,kbOpts:{kbExpr:c.R.hoverFocused,primary:17,weight:100},metadata:{description:u.aS("scrollRightHoverDescription","Scroll right the editor hover.")}})}run(e,t){const i=h.A.get(t);i&&i.scrollRight()}}class C extends o.ks{constructor(){super({id:n.ih,label:u.kg({key:"pageUpHover",comment:["Action that allows to page up in the hover widget with the page up command when the hover widget is focused."]},"Page Up Hover"),alias:"Page Up Hover",precondition:c.R.hoverFocused,kbOpts:{kbExpr:c.R.hoverFocused,primary:11,secondary:[528],weight:100},metadata:{description:u.aS("pageUpHoverDescription","Page up the editor hover.")}})}run(e,t){const i=h.A.get(t);i&&i.pageUp()}}class E extends o.ks{constructor(){super({id:n.Hm,label:u.kg({key:"pageDownHover",comment:["Action that allows to page down in the hover widget with the page down command when the hover widget is focused."]},"Page Down Hover"),alias:"Page Down Hover",precondition:c.R.hoverFocused,kbOpts:{kbExpr:c.R.hoverFocused,primary:12,secondary:[530],weight:100},metadata:{description:u.aS("pageDownHoverDescription","Page down the editor hover.")}})}run(e,t){const i=h.A.get(t);i&&i.pageDown()}}class b extends o.ks{constructor(){super({id:n.Xp,label:u.kg({key:"goToTopHover",comment:["Action that allows to go to the top of the hover widget with the home command when the hover widget is focused."]},"Go To Top Hover"),alias:"Go To Bottom Hover",precondition:c.R.hoverFocused,kbOpts:{kbExpr:c.R.hoverFocused,primary:14,secondary:[2064],weight:100},metadata:{description:u.aS("goToTopHoverDescription","Go to the top of the editor hover.")}})}run(e,t){const i=h.A.get(t);i&&i.goToTop()}}class S extends o.ks{constructor(){super({id:n.vx,label:u.kg({key:"goToBottomHover",comment:["Action that allows to go to the bottom in the hover widget with the end command when the hover widget is focused."]},"Go To Bottom Hover"),alias:"Go To Bottom Hover",precondition:c.R.hoverFocused,kbOpts:{kbExpr:c.R.hoverFocused,primary:13,secondary:[2066],weight:100},metadata:{description:u.aS("goToBottomHoverDescription","Go to the bottom of the editor hover.")}})}run(e,t){const i=h.A.get(t);i&&i.goToBottom()}}class y extends o.ks{constructor(){super({id:n.jq,label:n.iM,alias:"Increase Hover Verbosity Level",precondition:c.R.hoverVisible})}run(e,t,i){const s=h.A.get(t);if(!s)return;const n=void 0!==i?.index?i.index:s.focusedHoverPartIndex();s.updateHoverVerbosityLevel(d.M$.Increase,n,i?.focus)}}class w extends o.ks{constructor(){super({id:n.Zp,label:n.G8,alias:"Decrease Hover Verbosity Level",precondition:c.R.hoverVisible})}run(e,t,i){const s=h.A.get(t);if(!s)return;const n=void 0!==i?.index?i.index:s.focusedHoverPartIndex();h.A.get(t)?.updateHoverVerbosityLevel(d.M$.Decrease,n,i?.focus)}}var R=i(66261),L=i(47612),T=i(57039),x=i(57286),k=i(8597),A=i(25890),N=i(90766),I=i(64383),O=i(5662),D=i(89403),M=i(56942),P=i(37550),F=i(55130),U=i(71933),H=i(61407),B=i(65877),W=i(75147),V=i(49099),z=i(73823),G=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},j=function(e,t){return function(i,s){t(i,s,e)}};const K=k.$;class Y{constructor(e,t,i){this.owner=e,this.range=t,this.marker=i}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}const q={type:1,filter:{include:H.gB.QuickFix},triggerAction:H.fo.QuickFixHover};let $=class{constructor(e,t,i,s){this._editor=e,this._markerDecorationsService=t,this._openerService=i,this._languageFeaturesService=s,this.hoverOrdinal=1,this.recentMarkerCodeActionsInfo=void 0}computeSync(e,t){if(!this._editor.hasModel()||1!==e.type&&!e.supportsMarkerHover)return[];const i=this._editor.getModel(),s=e.range.startLineNumber,n=i.getLineMaxColumn(s),r=[];for(const o of t){const t=o.range.startLineNumber===s?o.range.startColumn:1,c=o.range.endLineNumber===s?o.range.endColumn:n,l=this._markerDecorationsService.getMarker(i.uri,o);if(!l)continue;const h=new a.Q(e.range.startLineNumber,t,e.range.startLineNumber,c);r.push(new Y(this,h,l))}return r}renderHoverParts(e,t){if(!t.length)return new T.Ke([]);const i=new O.Cm,s=[];t.forEach((t=>{const i=this._renderMarkerHover(t);e.fragment.appendChild(i.hoverElement),s.push(i)}));const n=1===t.length?t[0]:t.sort(((e,t)=>W.cj.compare(e.marker.severity,t.marker.severity)))[0];return this.renderMarkerStatusbar(e,n,i),new T.Ke(s)}_renderMarkerHover(e){const t=new O.Cm,i=K("div.hover-row"),s=k.BC(i,K("div.marker.hover-contents")),{source:n,message:r,code:o,relatedInformation:a}=e.marker;this._editor.applyFontInfo(s);const c=k.BC(s,K("span"));if(c.style.whiteSpace="pre-wrap",c.innerText=r,n||o)if(o&&"string"!==typeof o){const e=K("span");if(n){k.BC(e,K("span")).innerText=n}const i=k.BC(e,K("a.code-link"));i.setAttribute("href",o.target.toString()),t.add(k.ko(i,"click",(e=>{this._openerService.open(o.target,{allowCommands:!0}),e.preventDefault(),e.stopPropagation()})));k.BC(i,K("span")).innerText=o.value;const r=k.BC(s,e);r.style.opacity="0.6",r.style.paddingLeft="6px"}else{const e=k.BC(s,K("span"));e.style.opacity="0.6",e.style.paddingLeft="6px",e.innerText=n&&o?`${n}(${o})`:n||`(${o})`}if((0,A.EI)(a))for(const{message:l,resource:h,startLineNumber:d,startColumn:u}of a){const e=k.BC(s,K("div"));e.style.marginTop="8px";const i=k.BC(e,K("a"));i.innerText=`${(0,D.P8)(h)}(${d}, ${u}): `,i.style.cursor="pointer",t.add(k.ko(i,"click",(e=>{if(e.stopPropagation(),e.preventDefault(),this._openerService){const e={selection:{startLineNumber:d,startColumn:u}};this._openerService.open(h,{fromUserGesture:!0,editorOptions:e}).catch(I.dz)}})));const n=k.BC(e,K("span"));n.innerText=l,this._editor.applyFontInfo(n)}return{hoverPart:e,hoverElement:i,dispose:()=>t.dispose()}}renderMarkerStatusbar(e,t,i){if(t.marker.severity===W.cj.Error||t.marker.severity===W.cj.Warning||t.marker.severity===W.cj.Info){const i=B.j.get(this._editor);i&&e.statusBar.addAction({label:u.kg("view problem","View Problem"),commandId:B.i.ID,run:()=>{e.hide(),i.showAtMarker(t.marker),this._editor.focus()}})}if(!this._editor.getOption(92)){const s=e.statusBar.append(K("div"));this.recentMarkerCodeActionsInfo&&(W.oc.makeKey(this.recentMarkerCodeActionsInfo.marker)===W.oc.makeKey(t.marker)?this.recentMarkerCodeActionsInfo.hasCodeActions||(s.textContent=u.kg("noQuickFixes","No quick fixes available")):this.recentMarkerCodeActionsInfo=void 0);const n=this.recentMarkerCodeActionsInfo&&!this.recentMarkerCodeActionsInfo.hasCodeActions?O.jG.None:(0,N.EQ)((()=>s.textContent=u.kg("checkingForQuickFixes","Checking for quick fixes...")),200,i);s.textContent||(s.textContent=String.fromCharCode(160));const r=this.getCodeActions(t.marker);i.add((0,O.s)((()=>r.cancel()))),r.then((r=>{if(n.dispose(),this.recentMarkerCodeActionsInfo={marker:t.marker,hasCodeActions:r.validActions.length>0},!this.recentMarkerCodeActionsInfo.hasCodeActions)return r.dispose(),void(s.textContent=u.kg("noQuickFixes","No quick fixes available"));s.style.display="none";let o=!1;i.add((0,O.s)((()=>{o||r.dispose()}))),e.statusBar.addAction({label:u.kg("quick fixes","Quick Fix..."),commandId:F.pQ,run:t=>{o=!0;const i=U.C.get(this._editor),s=k.BK(t);e.hide(),i?.showCodeActions(q,r,{x:s.left,y:s.top,width:s.width,height:s.height})}})}),I.dz)}}getCodeActions(e){return(0,N.SS)((t=>(0,F.dU)(this._languageFeaturesService.codeActionProvider,this._editor.getModel(),new a.Q(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),q,z.ke.None,t)))}};$=G([j(1,P.IMarkerDecorationsService),j(2,V.C),j(3,M.ILanguageFeaturesService)],$);var Q=i(63591),X=i(51219),Z=i(20492),J=i(10154),ee=i(12143),te=i(52776),ie=i(16980),se=i(16223);class ne{get lineNumber(){return this._lineNumber}set lineNumber(e){this._lineNumber=e}get lane(){return this._laneOrLine}set lane(e){this._laneOrLine=e}constructor(e){this._editor=e,this._lineNumber=-1,this._laneOrLine=se.ZS.Center}computeSync(){const e=e=>({value:e}),t=this._editor.getLineDecorations(this._lineNumber),i=[],s="lineNo"===this._laneOrLine;if(!t)return i;for(const n of t){const t=n.options.glyphMargin?.position??se.ZS.Center;if(!s&&t!==this._laneOrLine)continue;const r=s?n.options.lineNumberHoverMessage:n.options.glyphMarginHoverMessage;r&&!(0,ie.it)(r)&&i.push(...(0,A._j)(r).map(e))}return i}}var re,oe=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},ae=function(e,t){return function(i,s){t(i,s,e)}};const ce=k.$;let le=class extends O.jG{static{re=this}static{this.ID="editor.contrib.modesGlyphHoverWidget"}constructor(e,t,i){super(),this._renderDisposeables=this._register(new O.Cm),this._editor=e,this._isVisible=!1,this._messages=[],this._hover=this._register(new te.N4),this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible),this._markdownRenderer=this._register(new Z.T({editor:this._editor},t,i)),this._computer=new ne(this._editor),this._hoverOperation=this._register(new ee.w(this._editor,this._computer)),this._register(this._hoverOperation.onResult((e=>{this._withResult(e.value)}))),this._register(this._editor.onDidChangeModelDecorations((()=>this._onModelDecorationsChanged()))),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(50)&&this._updateFont()}))),this._register(k.b2(this._hover.containerDomNode,"mouseleave",(e=>{this._onMouseLeave(e)}))),this._editor.addOverlayWidget(this)}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return re.ID}getDomNode(){return this._hover.containerDomNode}getPosition(){return null}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach((e=>this._editor.applyFontInfo(e)))}_onModelDecorationsChanged(){this._isVisible&&(this._hoverOperation.cancel(),this._hoverOperation.start(0))}showsOrWillShow(e){const t=e.target;return 2===t.type&&t.detail.glyphMarginLane?(this._startShowingAt(t.position.lineNumber,t.detail.glyphMarginLane),!0):3===t.type&&(this._startShowingAt(t.position.lineNumber,"lineNo"),!0)}_startShowingAt(e,t){this._computer.lineNumber===e&&this._computer.lane===t||(this._hoverOperation.cancel(),this.hide(),this._computer.lineNumber=e,this._computer.lane=t,this._hoverOperation.start(0))}hide(){this._computer.lineNumber=-1,this._hoverOperation.cancel(),this._isVisible&&(this._isVisible=!1,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible))}_withResult(e){this._messages=e,this._messages.length>0?this._renderMessages(this._computer.lineNumber,this._messages):this.hide()}_renderMessages(e,t){this._renderDisposeables.clear();const i=document.createDocumentFragment();for(const s of t){const e=ce("div.hover-row.markdown-hover"),t=k.BC(e,ce("div.hover-contents")),n=this._renderDisposeables.add(this._markdownRenderer.render(s.value));t.appendChild(n.element),i.appendChild(e)}this._updateContents(i),this._showAt(e)}_updateContents(e){this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this._updateFont()}_showAt(e){this._isVisible||(this._isVisible=!0,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible));const t=this._editor.getLayoutInfo(),i=this._editor.getTopForLineNumber(e),s=this._editor.getScrollTop(),n=this._editor.getOption(67),r=i-s-(this._hover.containerDomNode.clientHeight-n)/2,o=t.glyphMarginLeft+t.glyphMarginWidth+("lineNo"===this._computer.lane?t.lineNumbersWidth:0);this._hover.containerDomNode.style.left=`${o}px`,this._hover.containerDomNode.style.top=`${Math.max(Math.round(r),0)}px`}_onMouseLeave(e){const t=this._editor.getDomNode();(!t||!(0,X.U)(t,e.x,e.y))&&this.hide()}};le=re=oe([ae(1,J.L),ae(2,V.C)],le);var he=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},de=function(e,t){return function(i,s){t(i,s,e)}};let ue=class extends O.jG{static{this.ID="editor.contrib.marginHover"}constructor(e,t){super(),this._editor=e,this._instantiationService=t,this.shouldKeepOpenOnEditorMouseMoveOrLeave=!1,this._listenersStore=new O.Cm,this._hoverState={mouseDown:!1},this._reactToEditorMouseMoveRunner=this._register(new N.uC((()=>this._reactToEditorMouseMove(this._mouseMoveEvent)),0)),this._hookListeners(),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(60)&&(this._unhookListeners(),this._hookListeners())})))}_hookListeners(){const e=this._editor.getOption(60);this._hoverSettings={enabled:e.enabled,sticky:e.sticky,hidingDelay:e.hidingDelay},e.enabled?(this._listenersStore.add(this._editor.onMouseDown((e=>this._onEditorMouseDown(e)))),this._listenersStore.add(this._editor.onMouseUp((()=>this._onEditorMouseUp()))),this._listenersStore.add(this._editor.onMouseMove((e=>this._onEditorMouseMove(e)))),this._listenersStore.add(this._editor.onKeyDown((e=>this._onKeyDown(e))))):(this._listenersStore.add(this._editor.onMouseMove((e=>this._onEditorMouseMove(e)))),this._listenersStore.add(this._editor.onKeyDown((e=>this._onKeyDown(e))))),this._listenersStore.add(this._editor.onMouseLeave((e=>this._onEditorMouseLeave(e)))),this._listenersStore.add(this._editor.onDidChangeModel((()=>{this._cancelScheduler(),this._hideWidgets()}))),this._listenersStore.add(this._editor.onDidChangeModelContent((()=>this._cancelScheduler()))),this._listenersStore.add(this._editor.onDidScrollChange((e=>this._onEditorScrollChanged(e))))}_unhookListeners(){this._listenersStore.clear()}_cancelScheduler(){this._mouseMoveEvent=void 0,this._reactToEditorMouseMoveRunner.cancel()}_onEditorScrollChanged(e){(e.scrollTopChanged||e.scrollLeftChanged)&&this._hideWidgets()}_onEditorMouseDown(e){this._hoverState.mouseDown=!0;this._isMouseOnMarginHoverWidget(e)||this._hideWidgets()}_isMouseOnMarginHoverWidget(e){const t=this._glyphWidget?.getDomNode();return!!t&&(0,X.U)(t,e.event.posx,e.event.posy)}_onEditorMouseUp(){this._hoverState.mouseDown=!1}_onEditorMouseLeave(e){if(this.shouldKeepOpenOnEditorMouseMoveOrLeave)return;this._cancelScheduler();this._isMouseOnMarginHoverWidget(e)||this._hideWidgets()}_shouldNotRecomputeCurrentHoverWidget(e){const t=this._hoverSettings.sticky,i=this._isMouseOnMarginHoverWidget(e);return t&&i}_onEditorMouseMove(e){if(this.shouldKeepOpenOnEditorMouseMoveOrLeave)return;this._mouseMoveEvent=e;this._shouldNotRecomputeCurrentHoverWidget(e)?this._reactToEditorMouseMoveRunner.cancel():this._reactToEditorMouseMove(e)}_reactToEditorMouseMove(e){if(!e)return;this._tryShowHoverWidget(e)||this._hideWidgets()}_tryShowHoverWidget(e){return this._getOrCreateGlyphWidget().showsOrWillShow(e)}_onKeyDown(e){this._editor.hasModel()&&5!==e.keyCode&&6!==e.keyCode&&57!==e.keyCode&&4!==e.keyCode&&this._hideWidgets()}_hideWidgets(){this._glyphWidget?.hide()}_getOrCreateGlyphWidget(){return this._glyphWidget||(this._glyphWidget=this._instantiationService.createInstance(le,this._editor)),this._glyphWidget}dispose(){super.dispose(),this._unhookListeners(),this._listenersStore.dispose(),this._glyphWidget?.dispose()}};ue=he([de(1,Q._Y)],ue);var ge=i(96282);(0,o.HW)(h.A.ID,h.A,2),(0,o.HW)(ue.ID,ue,2),(0,o.Fl)(g),(0,o.Fl)(p),(0,o.Fl)(m),(0,o.Fl)(f),(0,o.Fl)(_),(0,o.Fl)(v),(0,o.Fl)(C),(0,o.Fl)(E),(0,o.Fl)(b),(0,o.Fl)(S),(0,o.Fl)(y),(0,o.Fl)(w),T.B2.register(x.xJ),T.B2.register($),(0,L.zy)(((e,t)=>{const i=e.getColor(R.oZ8);i&&(t.addRule(`.monaco-editor .monaco-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${i.transparent(.5)}; }`),t.addRule(`.monaco-editor .monaco-hover hr { border-top: 1px solid ${i.transparent(.5)}; }`),t.addRule(`.monaco-editor .monaco-hover hr { border-bottom: 0px solid ${i.transparent(.5)}; }`))})),ge.Z.register(new class{}),ge.Z.register(new class{}),ge.Z.register(new class{})},12143:(e,t,i)=>{"use strict";i.d(t,{w:()=>c});var s=i(90766),n=i(64383),r=i(41234),o=i(5662);class a{constructor(e,t,i){this.value=e,this.isComplete=t,this.hasLoadingMessage=i}}class c extends o.jG{constructor(e,t){super(),this._editor=e,this._computer=t,this._onResult=this._register(new r.vl),this.onResult=this._onResult.event,this._firstWaitScheduler=this._register(new s.uC((()=>this._triggerAsyncComputation()),0)),this._secondWaitScheduler=this._register(new s.uC((()=>this._triggerSyncComputation()),0)),this._loadingMessageScheduler=this._register(new s.uC((()=>this._triggerLoadingMessage()),0)),this._state=0,this._asyncIterable=null,this._asyncIterableDone=!1,this._result=[]}dispose(){this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),super.dispose()}get _hoverTime(){return this._editor.getOption(60).delay}get _firstWaitTime(){return this._hoverTime/2}get _secondWaitTime(){return this._hoverTime-this._firstWaitTime}get _loadingMessageTime(){return 3*this._hoverTime}_setState(e,t=!0){this._state=e,t&&this._fireResult()}_triggerAsyncComputation(){this._setState(2),this._secondWaitScheduler.schedule(this._secondWaitTime),this._computer.computeAsync?(this._asyncIterableDone=!1,this._asyncIterable=(0,s.bI)((e=>this._computer.computeAsync(e))),(async()=>{try{for await(const e of this._asyncIterable)e&&(this._result.push(e),this._fireResult());this._asyncIterableDone=!0,3!==this._state&&4!==this._state||this._setState(0)}catch(e){(0,n.dz)(e)}})()):this._asyncIterableDone=!0}_triggerSyncComputation(){this._computer.computeSync&&(this._result=this._result.concat(this._computer.computeSync())),this._setState(this._asyncIterableDone?0:3)}_triggerLoadingMessage(){3===this._state&&this._setState(4)}_fireResult(){if(1===this._state||2===this._state)return;const e=0===this._state,t=4===this._state;this._onResult.fire(new a(this._result.slice(0),e,t))}start(e){if(0===e)0===this._state&&(this._setState(1),this._firstWaitScheduler.schedule(this._firstWaitTime),this._loadingMessageScheduler.schedule(this._loadingMessageTime));else switch(this._state){case 0:this._triggerAsyncComputation(),this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break;case 2:this._secondWaitScheduler.cancel(),this._triggerSyncComputation()}}cancel(){this._firstWaitScheduler.cancel(),this._secondWaitScheduler.cancel(),this._loadingMessageScheduler.cancel(),this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),this._result=[],this._setState(0,!1)}}},57039:(e,t,i)=>{"use strict";i.d(t,{B2:()=>o,Ke:()=>r,hx:()=>s,mm:()=>n});class s{constructor(e,t,i,s){this.priority=e,this.range=t,this.initialMousePosX=i,this.initialMousePosY=s,this.type=1}equals(e){return 1===e.type&&this.range.equalsRange(e.range)}canAdoptVisibleHover(e,t){return 1===e.type&&t.lineNumber===this.range.startLineNumber}}class n{constructor(e,t,i,s,n,r){this.priority=e,this.owner=t,this.range=i,this.initialMousePosX=s,this.initialMousePosY=n,this.supportsMarkerHover=r,this.type=2}equals(e){return 2===e.type&&this.owner===e.owner}canAdoptVisibleHover(e,t){return 2===e.type&&this.owner===e.owner}}class r{constructor(e){this.renderedHoverParts=e}dispose(){for(const e of this.renderedHoverParts)e.dispose()}}const o=new class{constructor(){this._participants=[]}register(e){this._participants.push(e)}getAll(){return this._participants}}},51219:(e,t,i)=>{"use strict";i.d(t,{U:()=>n});var s=i(8597);function n(e,t,i){const n=s.BK(e);return!(t<n.left||t>n.left+n.width||i<n.top||i>n.top+n.height)}},57286:(e,t,i)=>{"use strict";i.d(t,{eH:()=>O,fm:()=>U,xJ:()=>M});var s=i(8597),n=i(25890),r=i(18447),o=i(16980),a=i(5662),c=i(20492),l=i(87758),h=i(36677),d=i(10154),u=i(57039),g=i(78209),p=i(84001),m=i(49099),f=i(56942),_=i(62083),v=i(61394),C=i(10350),E=i(25689),b=i(64383),S=i(98031),y=i(52776),w=i(67220),R=i(90766),L=i(7142),T=i(50091),x=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},k=function(e,t){return function(i,s){t(i,s,e)}};const A=s.$,N=(0,v.pU)("hover-increase-verbosity",C.W.add,g.kg("increaseHoverVerbosity","Icon for increaseing hover verbosity.")),I=(0,v.pU)("hover-decrease-verbosity",C.W.remove,g.kg("decreaseHoverVerbosity","Icon for decreasing hover verbosity."));class O{constructor(e,t,i,s,n,r=void 0){this.owner=e,this.range=t,this.contents=i,this.isBeforeContent=s,this.ordinal=n,this.source=r}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}class D{constructor(e,t,i){this.hover=e,this.hoverProvider=t,this.hoverPosition=i}supportsVerbosityAction(e){switch(e){case _.M$.Increase:return this.hover.canIncreaseVerbosity??!1;case _.M$.Decrease:return this.hover.canDecreaseVerbosity??!1}}}let M=class{constructor(e,t,i,s,n,r,o,a){this._editor=e,this._languageService=t,this._openerService=i,this._configurationService=s,this._languageFeaturesService=n,this._keybindingService=r,this._hoverService=o,this._commandService=a,this.hoverOrdinal=3}createLoadingMessage(e){return new O(this,e.range,[(new o.Bc).appendText(g.kg("modesContentHover.loading","Loading..."))],!1,2e3)}computeSync(e,t){if(!this._editor.hasModel()||1!==e.type)return[];const i=this._editor.getModel(),s=e.range.startLineNumber,r=i.getLineMaxColumn(s),a=[];let c=1e3;const l=i.getLineLength(s),d=i.getLanguageIdAtPosition(e.range.startLineNumber,e.range.startColumn),u=this._editor.getOption(118),p=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:d});let m=!1;u>=0&&l>u&&e.range.startColumn>=u&&(m=!0,a.push(new O(this,e.range,[{value:g.kg("stopped rendering","Rendering paused for long line for performance reasons. This can be configured via `editor.stopRenderingLineAfter`.")}],!1,c++))),!m&&"number"===typeof p&&l>=p&&a.push(new O(this,e.range,[{value:g.kg("too many characters","Tokenization is skipped for long lines for performance reasons. This can be configured via `editor.maxTokenizationLineLength`.")}],!1,c++));let f=!1;for(const g of t){const t=g.range.startLineNumber===s?g.range.startColumn:1,i=g.range.endLineNumber===s?g.range.endColumn:r,l=g.options.hoverMessage;if(!l||(0,o.it)(l))continue;g.options.beforeContentClassName&&(f=!0);const d=new h.Q(e.range.startLineNumber,t,e.range.startLineNumber,i);a.push(new O(this,d,(0,n._j)(l),f,c++))}return a}computeAsync(e,t,i){if(!this._editor.hasModel()||1!==e.type)return R.AE.EMPTY;const s=this._editor.getModel(),n=this._languageFeaturesService.hoverProvider;if(!n.has(s))return R.AE.EMPTY;return this._getMarkdownHovers(n,s,e,i)}_getMarkdownHovers(e,t,i,s){const n=i.range.getStartPosition();return(0,L.U)(e,t,n,s).filter((e=>!(0,o.it)(e.hover.contents))).map((e=>{const t=e.hover.range?h.Q.lift(e.hover.range):i.range,s=new D(e.hover,e.provider,n);return new O(this,t,e.hover.contents,!1,e.ordinal,s)}))}renderHoverParts(e,t){return this._renderedHoverParts=new F(t,e.fragment,this,this._editor,this._languageService,this._openerService,this._commandService,this._keybindingService,this._hoverService,this._configurationService,e.onContentsChanged),this._renderedHoverParts}updateMarkdownHoverVerbosityLevel(e,t,i){return Promise.resolve(this._renderedHoverParts?.updateMarkdownHoverPartVerbosityLevel(e,t,i))}};M=x([k(1,d.L),k(2,m.C),k(3,p.pG),k(4,f.ILanguageFeaturesService),k(5,S.b),k(6,w.TN),k(7,T.d)],M);class P{constructor(e,t,i){this.hoverPart=e,this.hoverElement=t,this.disposables=i}dispose(){this.disposables.dispose()}}class F{constructor(e,t,i,s,n,r,o,c,l,h,d){this._hoverParticipant=i,this._editor=s,this._languageService=n,this._openerService=r,this._commandService=o,this._keybindingService=c,this._hoverService=l,this._configurationService=h,this._onFinishedRendering=d,this._ongoingHoverOperations=new Map,this._disposables=new a.Cm,this.renderedHoverParts=this._renderHoverParts(e,t,this._onFinishedRendering),this._disposables.add((0,a.s)((()=>{this.renderedHoverParts.forEach((e=>{e.dispose()})),this._ongoingHoverOperations.forEach((e=>{e.tokenSource.dispose(!0)}))})))}_renderHoverParts(e,t,i){return e.sort((0,n.VE)((e=>e.ordinal),n.U9)),e.map((e=>{const s=this._renderHoverPart(e,i);return t.appendChild(s.hoverElement),s}))}_renderHoverPart(e,t){const i=this._renderMarkdownHover(e,t),s=i.hoverElement,n=e.source,r=new a.Cm;if(r.add(i),!n)return new P(e,s,r);const o=n.supportsVerbosityAction(_.M$.Increase),c=n.supportsVerbosityAction(_.M$.Decrease);if(!o&&!c)return new P(e,s,r);const l=A("div.verbosity-actions");return s.prepend(l),r.add(this._renderHoverExpansionAction(l,_.M$.Increase,o)),r.add(this._renderHoverExpansionAction(l,_.M$.Decrease,c)),new P(e,s,r)}_renderMarkdownHover(e,t){return H(this._editor,e,this._languageService,this._openerService,t)}_renderHoverExpansionAction(e,t,i){const n=new a.Cm,r=t===_.M$.Increase,o=s.BC(e,A(E.L.asCSSSelector(r?N:I)));o.tabIndex=0;const c=new w.fO("mouse",!1,{target:e,position:{hoverPosition:0}},this._configurationService,this._hoverService);if(n.add(this._hoverService.setupManagedHover(c,o,function(e,t){switch(t){case _.M$.Increase:{const t=e.lookupKeybinding(l.jq);return t?g.kg("increaseVerbosityWithKb","Increase Hover Verbosity ({0})",t.getLabel()):g.kg("increaseVerbosity","Increase Hover Verbosity")}case _.M$.Decrease:{const t=e.lookupKeybinding(l.Zp);return t?g.kg("decreaseVerbosityWithKb","Decrease Hover Verbosity ({0})",t.getLabel()):g.kg("decreaseVerbosity","Decrease Hover Verbosity")}}}(this._keybindingService,t))),!i)return o.classList.add("disabled"),n;o.classList.add("enabled");const h=()=>this._commandService.executeCommand(t===_.M$.Increase?l.jq:l.Zp);return n.add(new y.vV(o,h)),n.add(new y.M4(o,h,[3,10])),n}async updateMarkdownHoverPartVerbosityLevel(e,t,i=!0){const s=this._editor.getModel();if(!s)return;const n=this._getRenderedHoverPartAtIndex(t),r=n?.hoverPart.source;if(!n||!r?.supportsVerbosityAction(e))return;const o=await this._fetchHover(r,s,e);if(!o)return;const a=new D(o,r.hoverProvider,r.hoverPosition),c=n.hoverPart,l=new O(this._hoverParticipant,c.range,o.contents,c.isBeforeContent,c.ordinal,a),h=this._renderHoverPart(l,this._onFinishedRendering);return this._replaceRenderedHoverPartAtIndex(t,h,l),i&&this._focusOnHoverPartWithIndex(t),{hoverPart:l,hoverElement:h.hoverElement}}async _fetchHover(e,t,i){let s=i===_.M$.Increase?1:-1;const n=e.hoverProvider,o=this._ongoingHoverOperations.get(n);o&&(o.tokenSource.cancel(),s+=o.verbosityDelta);const a=new r.Qi;this._ongoingHoverOperations.set(n,{verbosityDelta:s,tokenSource:a});const c={verbosityRequest:{verbosityDelta:s,previousHover:e.hover}};let l;try{l=await Promise.resolve(n.provideHover(t,e.hoverPosition,a.token,c))}catch(h){(0,b.M_)(h)}return a.dispose(),this._ongoingHoverOperations.delete(n),l}_replaceRenderedHoverPartAtIndex(e,t,i){if(e>=this.renderedHoverParts.length||e<0)return;const s=this.renderedHoverParts[e],n=s.hoverElement,r=t.hoverElement,o=Array.from(r.children);n.replaceChildren(...o);const a=new P(i,n,t.disposables);n.focus(),s.dispose(),this.renderedHoverParts[e]=a}_focusOnHoverPartWithIndex(e){this.renderedHoverParts[e].hoverElement.focus()}_getRenderedHoverPartAtIndex(e){return this.renderedHoverParts[e]}dispose(){this._disposables.dispose()}}function U(e,t,i,s,r){t.sort((0,n.VE)((e=>e.ordinal),n.U9));const o=[];for(const n of t)o.push(H(i,n,s,r,e.onContentsChanged));return new u.Ke(o)}function H(e,t,i,n,r){const l=new a.Cm,h=A("div.hover-row"),d=A("div.hover-row-contents");h.appendChild(d);const u=t.contents;for(const a of u){if((0,o.it)(a))continue;const t=A("div.markdown-hover"),h=s.BC(t,A("div.hover-contents")),u=l.add(new c.T({editor:e},i,n));l.add(u.onDidRenderAsync((()=>{h.className="hover-contents code-hover-contents",r()})));const g=l.add(u.render(a));h.appendChild(g.element),d.appendChild(t)}return{hoverPart:t,hoverElement:h,dispose(){l.dispose()}}}},28449:(e,t,i)=>{"use strict";var s=i(90766),n=i(64383),r=i(50868),o=i(31450),a=i(36677),c=i(75326),l=i(60002),h=i(87289),d=i(10920),u=i(78209);class g{constructor(e,t,i){this._editRange=e,this._originalSelection=t,this._text=i}getEditOperations(e,t){t.addTrackedEditOperation(this._editRange,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return this._originalSelection.isEmpty()?new c.L(i.endLineNumber,Math.min(this._originalSelection.positionColumn,i.endColumn),i.endLineNumber,Math.min(this._originalSelection.positionColumn,i.endColumn)):new c.L(i.endLineNumber,i.endColumn-this._text.length,i.endLineNumber,i.endColumn)}}var p,m=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},f=function(e,t){return function(i,s){t(i,s,e)}};let _=class{static{p=this}static{this.ID="editor.contrib.inPlaceReplaceController"}static get(e){return e.getContribution(p.ID)}static{this.DECORATION=h.kI.register({description:"in-place-replace",className:"valueSetReplacement"})}constructor(e,t){this.editor=e,this.editorWorkerService=t,this.decorations=this.editor.createDecorationsCollection()}dispose(){}run(e,t){this.currentRequest?.cancel();const i=this.editor.getSelection(),o=this.editor.getModel();if(!o||!i)return;let l=i;if(l.startLineNumber!==l.endLineNumber)return;const h=new r.$t(this.editor,5),d=o.uri;return this.editorWorkerService.canNavigateValueSet(d)?(this.currentRequest=(0,s.SS)((e=>this.editorWorkerService.navigateValueSet(d,l,t))),this.currentRequest.then((t=>{if(!t||!t.range||!t.value)return;if(!h.validate(this.editor))return;const i=a.Q.lift(t.range);let r=t.range;const o=t.value.length-(l.endColumn-l.startColumn);r={startLineNumber:r.startLineNumber,startColumn:r.startColumn,endLineNumber:r.endLineNumber,endColumn:r.startColumn+t.value.length},o>1&&(l=new c.L(l.startLineNumber,l.startColumn,l.endLineNumber,l.endColumn+o-1));const d=new g(i,l,t.value);this.editor.pushUndoStop(),this.editor.executeCommand(e,d),this.editor.pushUndoStop(),this.decorations.set([{range:r,options:p.DECORATION}]),this.decorationRemover?.cancel(),this.decorationRemover=(0,s.wR)(350),this.decorationRemover.then((()=>this.decorations.clear())).catch(n.dz)})).catch(n.dz)):Promise.resolve(void 0)}};_=p=m([f(1,d.IEditorWorkerService)],_);class v extends o.ks{constructor(){super({id:"editor.action.inPlaceReplace.up",label:u.kg("InPlaceReplaceAction.previous.label","Replace with Previous Value"),alias:"Replace with Previous Value",precondition:l.R.writable,kbOpts:{kbExpr:l.R.editorTextFocus,primary:3159,weight:100}})}run(e,t){const i=_.get(t);return i?i.run(this.id,!1):Promise.resolve(void 0)}}class C extends o.ks{constructor(){super({id:"editor.action.inPlaceReplace.down",label:u.kg("InPlaceReplaceAction.next.label","Replace with Next Value"),alias:"Replace with Next Value",precondition:l.R.writable,kbOpts:{kbExpr:l.R.editorTextFocus,primary:3161,weight:100}})}run(e,t){const i=_.get(t);return i?i.run(this.id,!0):Promise.resolve(void 0)}}(0,o.HW)(_.ID,_,4),(0,o.Fl)(v),(0,o.Fl)(C)},57244:(e,t,i)=>{"use strict";var s=i(5662),n=i(91508),r=i(31450),o=i(7936),a=i(36677),c=i(60002),l=i(17469),h=i(23750),d=i(64395),u=i(78209),g=i(51467),p=i(82365),m=i(7085),f=i(93895),_=i(75326),v=i(27760);function C(e,t,i,s){if(1===e.getLineCount()&&1===e.getLineMaxColumn(1))return[];const r=t.getLanguageConfiguration(e.getLanguageId()).indentRulesSupport;if(!r)return[];const a=new v.no(e,r,t);for(s=Math.min(s,e.getLineCount());i<=s&&a.shouldIgnore(i);)i++;if(i>s-1)return[];const{tabSize:c,indentSize:l,insertSpaces:h}=e.getOptions(),d=(e,t)=>(t=t||1,o.Y.shiftIndent(e,e.length+t,c,l,h)),u=(e,t)=>(t=t||1,o.Y.unshiftIndent(e,e.length+t,c,l,h)),g=[],p=e.getLineContent(i);let C=n.UU(p),b=C;a.shouldIncrease(i)?(b=d(b),C=d(C)):a.shouldIndentNextLine(i)&&(b=d(b));for(let o=++i;o<=s;o++){if(E(e,o))continue;const t=e.getLineContent(o),i=n.UU(t),s=b;a.shouldDecrease(o,s)&&(b=u(b),C=u(C)),i!==b&&g.push(m.k.replaceMove(new _.L(o,1,o,i.length+1),(0,f.P)(b,l,h))),a.shouldIgnore(o)||(a.shouldIncrease(o,s)?(C=d(C),b=C):b=a.shouldIndentNextLine(o,s)?d(b):C)}return g}function E(e,t){if(!e.tokenization.isCheapToTokenize(t))return!1;return 2===e.tokenization.getLineTokens(t).getStandardTokenType(0)}var b=i(87469),S=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},y=function(e,t){return function(i,s){t(i,s,e)}};class w extends r.ks{static{this.ID="editor.action.indentationToSpaces"}constructor(){super({id:w.ID,label:u.kg("indentationToSpaces","Convert Indentation to Spaces"),alias:"Convert Indentation to Spaces",precondition:c.R.writable,metadata:{description:u.aS("indentationToSpacesDescription","Convert the tab indentation to spaces.")}})}run(e,t){const i=t.getModel();if(!i)return;const s=i.getOptions(),n=t.getSelection();if(!n)return;const r=new P(n,s.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[r]),t.pushUndoStop(),i.updateOptions({insertSpaces:!0})}}class R extends r.ks{static{this.ID="editor.action.indentationToTabs"}constructor(){super({id:R.ID,label:u.kg("indentationToTabs","Convert Indentation to Tabs"),alias:"Convert Indentation to Tabs",precondition:c.R.writable,metadata:{description:u.aS("indentationToTabsDescription","Convert the spaces indentation to tabs.")}})}run(e,t){const i=t.getModel();if(!i)return;const s=i.getOptions(),n=t.getSelection();if(!n)return;const r=new F(n,s.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[r]),t.pushUndoStop(),i.updateOptions({insertSpaces:!1})}}class L extends r.ks{constructor(e,t,i){super(i),this.insertSpaces=e,this.displaySizeOnly=t}run(e,t){const i=e.get(g.GK),s=e.get(h.IModelService),n=t.getModel();if(!n)return;const r=s.getCreationOptions(n.getLanguageId(),n.uri,n.isForSimpleWidget),o=n.getOptions(),a=[1,2,3,4,5,6,7,8].map((e=>({id:e.toString(),label:e.toString(),description:e===r.tabSize&&e===o.tabSize?u.kg("configuredTabSize","Configured Tab Size"):e===r.tabSize?u.kg("defaultTabSize","Default Tab Size"):e===o.tabSize?u.kg("currentTabSize","Current Tab Size"):void 0}))),c=Math.min(n.getOptions().tabSize-1,7);setTimeout((()=>{i.pick(a,{placeHolder:u.kg({key:"selectTabWidth",comment:["Tab corresponds to the tab key"]},"Select Tab Size for Current File"),activeItem:a[c]}).then((e=>{if(e&&n&&!n.isDisposed()){const t=parseInt(e.label,10);this.displaySizeOnly?n.updateOptions({tabSize:t}):n.updateOptions({tabSize:t,indentSize:t,insertSpaces:this.insertSpaces})}}))}),50)}}class T extends L{static{this.ID="editor.action.indentUsingTabs"}constructor(){super(!1,!1,{id:T.ID,label:u.kg("indentUsingTabs","Indent Using Tabs"),alias:"Indent Using Tabs",precondition:void 0,metadata:{description:u.aS("indentUsingTabsDescription","Use indentation with tabs.")}})}}class x extends L{static{this.ID="editor.action.indentUsingSpaces"}constructor(){super(!0,!1,{id:x.ID,label:u.kg("indentUsingSpaces","Indent Using Spaces"),alias:"Indent Using Spaces",precondition:void 0,metadata:{description:u.aS("indentUsingSpacesDescription","Use indentation with spaces.")}})}}class k extends L{static{this.ID="editor.action.changeTabDisplaySize"}constructor(){super(!0,!0,{id:k.ID,label:u.kg("changeTabDisplaySize","Change Tab Display Size"),alias:"Change Tab Display Size",precondition:void 0,metadata:{description:u.aS("changeTabDisplaySizeDescription","Change the space size equivalent of the tab.")}})}}class A extends r.ks{static{this.ID="editor.action.detectIndentation"}constructor(){super({id:A.ID,label:u.kg("detectIndentation","Detect Indentation from Content"),alias:"Detect Indentation from Content",precondition:void 0,metadata:{description:u.aS("detectIndentationDescription","Detect the indentation from content.")}})}run(e,t){const i=e.get(h.IModelService),s=t.getModel();if(!s)return;const n=i.getCreationOptions(s.getLanguageId(),s.uri,s.isForSimpleWidget);s.detectIndentation(n.insertSpaces,n.tabSize)}}class N extends r.ks{constructor(){super({id:"editor.action.reindentlines",label:u.kg("editor.reindentlines","Reindent Lines"),alias:"Reindent Lines",precondition:c.R.writable,metadata:{description:u.aS("editor.reindentlinesDescription","Reindent the lines of the editor.")}})}run(e,t){const i=e.get(l.JZ),s=t.getModel();if(!s)return;const n=C(s,i,1,s.getLineCount());n.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,n),t.pushUndoStop())}}class I extends r.ks{constructor(){super({id:"editor.action.reindentselectedlines",label:u.kg("editor.reindentselectedlines","Reindent Selected Lines"),alias:"Reindent Selected Lines",precondition:c.R.writable,metadata:{description:u.aS("editor.reindentselectedlinesDescription","Reindent the selected lines of the editor.")}})}run(e,t){const i=e.get(l.JZ),s=t.getModel();if(!s)return;const n=t.getSelections();if(null===n)return;const r=[];for(const o of n){let e=o.startLineNumber,t=o.endLineNumber;if(e!==t&&1===o.endColumn&&t--,1===e){if(e===t)continue}else e--;const n=C(s,i,e,t);r.push(...n)}r.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,r),t.pushUndoStop())}}class O{constructor(e,t){this._initialSelection=t,this._edits=[],this._selectionId=null;for(const i of e)i.range&&"string"===typeof i.text&&this._edits.push(i)}getEditOperations(e,t){for(const s of this._edits)t.addEditOperation(a.Q.lift(s.range),s.text);let i=!1;Array.isArray(this._edits)&&1===this._edits.length&&this._initialSelection.isEmpty()&&(this._edits[0].range.startColumn===this._initialSelection.endColumn&&this._edits[0].range.startLineNumber===this._initialSelection.endLineNumber?(i=!0,this._selectionId=t.trackSelection(this._initialSelection,!0)):this._edits[0].range.endColumn===this._initialSelection.startColumn&&this._edits[0].range.endLineNumber===this._initialSelection.startLineNumber&&(i=!0,this._selectionId=t.trackSelection(this._initialSelection,!1))),i||(this._selectionId=t.trackSelection(this._initialSelection))}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}let D=class{static{this.ID="editor.contrib.autoIndentOnPaste"}constructor(e,t){this.editor=e,this._languageConfigurationService=t,this.callOnDispose=new s.Cm,this.callOnModel=new s.Cm,this.callOnDispose.add(e.onDidChangeConfiguration((()=>this.update()))),this.callOnDispose.add(e.onDidChangeModel((()=>this.update()))),this.callOnDispose.add(e.onDidChangeModelLanguage((()=>this.update())))}update(){this.callOnModel.clear(),this.editor.getOption(12)<4||this.editor.getOption(55)||this.editor.hasModel()&&this.callOnModel.add(this.editor.onDidPaste((({range:e})=>{this.trigger(e)})))}trigger(e){const t=this.editor.getSelections();if(null===t||t.length>1)return;const i=this.editor.getModel();if(!i)return;if(this.rangeContainsOnlyWhitespaceCharacters(i,e))return;if(function(e,t){const i=t=>2===(0,b.T)(e,t);return i(t.getStartPosition())||i(t.getEndPosition())}(i,e))return;if(!i.tokenization.isCheapToTokenize(e.getStartPosition().lineNumber))return;const s=this.editor.getOption(12),{tabSize:r,indentSize:c,insertSpaces:l}=i.getOptions(),h=[],u={shiftIndent:e=>o.Y.shiftIndent(e,e.length+1,r,c,l),unshiftIndent:e=>o.Y.unshiftIndent(e,e.length+1,r,c,l)};let g=e.startLineNumber;for(;g<=e.endLineNumber&&this.shouldIgnoreLine(i,g);)g++;if(g>e.endLineNumber)return;let m=i.getLineContent(g);if(!/\S/.test(m.substring(0,e.startColumn-1))){const e=(0,p.$f)(s,i,i.getLanguageId(),g,u,this._languageConfigurationService);if(null!==e){const t=n.UU(m),s=d.c(e,r);if(s!==d.c(t,r)){const e=d.k(s,r,l);h.push({range:new a.Q(g,1,g,t.length+1),text:e}),m=e+m.substring(t.length)}else{const e=(0,p.Yb)(i,g,this._languageConfigurationService);if(0===e||8===e)return}}}const f=g;for(;g<e.endLineNumber&&!/\S/.test(i.getLineContent(g+1));)g++;if(g!==e.endLineNumber){const t={tokenization:{getLineTokens:e=>i.tokenization.getLineTokens(e),getLanguageId:()=>i.getLanguageId(),getLanguageIdAtPosition:(e,t)=>i.getLanguageIdAtPosition(e,t)},getLineContent:e=>e===f?m:i.getLineContent(e)},o=(0,p.$f)(s,t,i.getLanguageId(),g+1,u,this._languageConfigurationService);if(null!==o){const t=d.c(o,r),s=d.c(n.UU(i.getLineContent(g+1)),r);if(t!==s){const o=t-s;for(let t=g+1;t<=e.endLineNumber;t++){const e=i.getLineContent(t),s=n.UU(e),c=d.c(s,r)+o,u=d.k(c,r,l);u!==s&&h.push({range:new a.Q(t,1,t,s.length+1),text:u})}}}}if(h.length>0){this.editor.pushUndoStop();const e=new O(h,this.editor.getSelection());this.editor.executeCommand("autoIndentOnPaste",e),this.editor.pushUndoStop()}}rangeContainsOnlyWhitespaceCharacters(e,t){const i=e=>0===e.trim().length;let s=!0;if(t.startLineNumber===t.endLineNumber){s=i(e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1))}else for(let n=t.startLineNumber;n<=t.endLineNumber;n++){const r=e.getLineContent(n);if(n===t.startLineNumber){s=i(r.substring(t.startColumn-1))}else if(n===t.endLineNumber){s=i(r.substring(0,t.endColumn-1))}else s=0===e.getLineFirstNonWhitespaceColumn(n);if(!s)break}return s}shouldIgnoreLine(e,t){e.tokenization.forceTokenization(t);const i=e.getLineFirstNonWhitespaceColumn(t);if(0===i)return!0;const s=e.tokenization.getLineTokens(t);if(s.getCount()>0){const e=s.findTokenIndexAtOffset(i);if(e>=0&&1===s.getStandardTokenType(e))return!0}return!1}dispose(){this.callOnDispose.dispose(),this.callOnModel.dispose()}};function M(e,t,i,s){if(1===e.getLineCount()&&1===e.getLineMaxColumn(1))return;let n="";for(let o=0;o<i;o++)n+=" ";const r=new RegExp(n,"gi");for(let o=1,c=e.getLineCount();o<=c;o++){let i=e.getLineFirstNonWhitespaceColumn(o);if(0===i&&(i=e.getLineMaxColumn(o)),1===i)continue;const c=new a.Q(o,1,o,i),l=e.getValueInRange(c),h=s?l.replace(/\t/gi,n):l.replace(r,"\t");t.addEditOperation(c,h)}}D=S([y(1,l.JZ)],D);class P{constructor(e,t){this.selection=e,this.tabSize=t,this.selectionId=null}getEditOperations(e,t){this.selectionId=t.trackSelection(this.selection),M(e,t,this.tabSize,!0)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}}class F{constructor(e,t){this.selection=e,this.tabSize=t,this.selectionId=null}getEditOperations(e,t){this.selectionId=t.trackSelection(this.selection),M(e,t,this.tabSize,!1)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}}(0,r.HW)(D.ID,D,2),(0,r.Fl)(w),(0,r.Fl)(R),(0,r.Fl)(T),(0,r.Fl)(x),(0,r.Fl)(k),(0,r.Fl)(A),(0,r.Fl)(N),(0,r.Fl)(I)},64395:(e,t,i)=>{"use strict";function s(e,t){let i=0;for(let s=0;s<e.length;s++)"\t"===e.charAt(s)?i+=t:i++;return i}function n(e,t,i){e=e<0?0:e;let s="";if(!i){const i=Math.floor(e/t);e%=t;for(let e=0;e<i;e++)s+="\t"}for(let n=0;n<e;n++)s+=" ";return s}i.d(t,{c:()=>s,k:()=>n})},3730:(e,t,i)=>{"use strict";i.d(t,{CN:()=>u,EP:()=>l,P8:()=>d});var s=i(64383),n=i(5662),r=i(83069),o=i(36677),a=i(36456),c=i(79400);class l{constructor(e,t){this.range=e,this.direction=t}}class h{constructor(e,t,i){this.hint=e,this.anchor=t,this.provider=i,this._isResolved=!1}with(e){const t=new h(this.hint,e.anchor,this.provider);return t._isResolved=this._isResolved,t._currentResolve=this._currentResolve,t}async resolve(e){if("function"===typeof this.provider.resolveInlayHint){if(this._currentResolve){if(await this._currentResolve,e.isCancellationRequested)return;return this.resolve(e)}this._isResolved||(this._currentResolve=this._doResolve(e).finally((()=>this._currentResolve=void 0))),await this._currentResolve}}async _doResolve(e){try{const t=await Promise.resolve(this.provider.resolveInlayHint(this.hint,e));this.hint.tooltip=t?.tooltip??this.hint.tooltip,this.hint.label=t?.label??this.hint.label,this.hint.textEdits=t?.textEdits??this.hint.textEdits,this._isResolved=!0}catch(t){(0,s.M_)(t),this._isResolved=!1}}}class d{static{this._emptyInlayHintList=Object.freeze({dispose(){},hints:[]})}static async create(e,t,i,n){const r=[],o=e.ordered(t).reverse().map((e=>i.map((async i=>{try{const s=await e.provideInlayHints(t,i,n);(s?.hints.length||e.onDidChangeInlayHints)&&r.push([s??d._emptyInlayHintList,e])}catch(o){(0,s.M_)(o)}}))));if(await Promise.all(o.flat()),n.isCancellationRequested||t.isDisposed())throw new s.AL;return new d(i,r,t)}constructor(e,t,i){this._disposables=new n.Cm,this.ranges=e,this.provider=new Set;const s=[];for(const[n,r]of t){this._disposables.add(n),this.provider.add(r);for(const e of n.hints){const t=i.validatePosition(e.position);let n="before";const a=d._getRangeAtPosition(i,t);let c;a.getStartPosition().isBefore(t)?(c=o.Q.fromPositions(a.getStartPosition(),t),n="after"):(c=o.Q.fromPositions(t,a.getEndPosition()),n="before"),s.push(new h(e,new l(c,n),r))}}this.items=s.sort(((e,t)=>r.y.compare(e.hint.position,t.hint.position)))}dispose(){this._disposables.dispose()}static _getRangeAtPosition(e,t){const i=t.lineNumber,s=e.getWordAtPosition(t);if(s)return new o.Q(i,s.startColumn,i,s.endColumn);e.tokenization.tokenizeIfCheap(i);const n=e.tokenization.getLineTokens(i),r=t.column-1,a=n.findTokenIndexAtOffset(r);let c=n.getStartOffset(a),l=n.getEndOffset(a);return l-c===1&&(c===r&&a>1?(c=n.getStartOffset(a-1),l=n.getEndOffset(a-1)):l===r&&a<n.getCount()-1&&(c=n.getStartOffset(a+1),l=n.getEndOffset(a+1))),new o.Q(i,c+1,i,l+1)}}function u(e){return c.r.from({scheme:a.ny.command,path:e.id,query:e.arguments&&encodeURIComponent(JSON.stringify(e.arguments))}).toString()}},76440:(e,t,i)=>{"use strict";var s=i(31450),n=i(57039),r=i(21478),o=i(68250);(0,s.HW)(r.M.ID,r.M,1),n.B2.register(o.u)},21478:(e,t,i)=>{"use strict";i.d(t,{M:()=>H,z:()=>F});var s,n=i(8597),r=i(25890),o=i(90766),a=i(18447),c=i(64383),l=i(5662),h=i(74320),d=i(631),u=i(79400),g=i(37734),p=i(55190),m=i(87908),f=i(7085),_=i(36677),v=i(62083),C=i(16223),E=i(87289),b=i(32500),S=i(56942),y=i(18938),w=i(37927),R=i(3730),L=i(60952),T=i(50091),x=i(14718),k=i(63591),A=i(58591),N=i(66261),I=i(47612),O=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},D=function(e,t){return function(i,s){t(i,s,e)}};class M{constructor(){this._entries=new h.qK(50)}get(e){const t=M._key(e);return this._entries.get(t)}set(e,t){const i=M._key(e);this._entries.set(i,t)}static _key(e){return`${e.uri.toString()}/${e.getVersionId()}`}}const P=(0,k.u1)("IInlayHintsCache");(0,x.v)(P,M,1);class F{constructor(e,t){this.item=e,this.index=t}get part(){const e=this.item.hint.label;return"string"===typeof e?{label:e}:e[this.index]}}class U{constructor(e,t){this.part=e,this.hasTriggerModifier=t}}let H=class{static{s=this}static{this.ID="editor.contrib.InlayHints"}static{this._MAX_DECORATORS=1500}static{this._MAX_LABEL_LEN=43}static get(e){return e.getContribution(s.ID)??void 0}constructor(e,t,i,s,n,r,o){this._editor=e,this._languageFeaturesService=t,this._inlayHintsCache=s,this._commandService=n,this._notificationService=r,this._instaService=o,this._disposables=new l.Cm,this._sessionDisposables=new l.Cm,this._decorationsMetadata=new Map,this._ruleFactory=new g.Qn(this._editor),this._activeRenderMode=0,this._debounceInfo=i.for(t.inlayHintsProvider,"InlayHint",{min:25}),this._disposables.add(t.inlayHintsProvider.onDidChange((()=>this._update()))),this._disposables.add(e.onDidChangeModel((()=>this._update()))),this._disposables.add(e.onDidChangeModelLanguage((()=>this._update()))),this._disposables.add(e.onDidChangeConfiguration((e=>{e.hasChanged(142)&&this._update()}))),this._update()}dispose(){this._sessionDisposables.dispose(),this._removeAllDecorations(),this._disposables.dispose()}_update(){this._sessionDisposables.clear(),this._removeAllDecorations();const e=this._editor.getOption(142);if("off"===e.enabled)return;const t=this._editor.getModel();if(!t||!this._languageFeaturesService.inlayHintsProvider.has(t))return;if("on"===e.enabled)this._activeRenderMode=0;else{let t,i;"onUnlessPressed"===e.enabled?(t=0,i=1):(t=1,i=0),this._activeRenderMode=t,this._sessionDisposables.add(n.Di.getInstance().event((e=>{if(!this._editor.hasModel())return;const s=e.altKey&&e.ctrlKey&&!e.shiftKey&&!e.metaKey?i:t;if(s!==this._activeRenderMode){this._activeRenderMode=s;const e=this._editor.getModel(),t=this._copyInlayHintsWithCurrentAnchor(e);this._updateHintsDecorators([e.getFullModelRange()],t),h.schedule(0)}})))}const i=this._inlayHintsCache.get(t);let s;i&&this._updateHintsDecorators([t.getFullModelRange()],i),this._sessionDisposables.add((0,l.s)((()=>{t.isDisposed()||this._cacheHintsForFastRestore(t)})));const r=new Set,h=new o.uC((async()=>{const e=Date.now();s?.dispose(!0),s=new a.Qi;const i=t.onWillDispose((()=>s?.cancel()));try{const i=s.token,n=await R.P8.create(this._languageFeaturesService.inlayHintsProvider,t,this._getHintsRanges(),i);if(h.delay=this._debounceInfo.update(t,Date.now()-e),i.isCancellationRequested)return void n.dispose();for(const e of n.provider)"function"!==typeof e.onDidChangeInlayHints||r.has(e)||(r.add(e),this._sessionDisposables.add(e.onDidChangeInlayHints((()=>{h.isScheduled()||h.schedule()}))));this._sessionDisposables.add(n),this._updateHintsDecorators(n.ranges,n.items),this._cacheHintsForFastRestore(t)}catch(n){(0,c.dz)(n)}finally{s.dispose(),i.dispose()}}),this._debounceInfo.get(t));this._sessionDisposables.add(h),this._sessionDisposables.add((0,l.s)((()=>s?.dispose(!0)))),h.schedule(0),this._sessionDisposables.add(this._editor.onDidScrollChange((e=>{!e.scrollTopChanged&&h.isScheduled()||h.schedule()}))),this._sessionDisposables.add(this._editor.onDidChangeModelContent((e=>{s?.cancel();const t=Math.max(h.delay,1250);h.schedule(t)}))),this._sessionDisposables.add(this._installDblClickGesture((()=>h.schedule(0)))),this._sessionDisposables.add(this._installLinkGesture()),this._sessionDisposables.add(this._installContextMenu())}_installLinkGesture(){const e=new l.Cm,t=e.add(new w.gi(this._editor)),i=new l.Cm;return e.add(i),e.add(t.onMouseMoveOrRelevantKeyDown((e=>{const[t]=e,s=this._getInlayHintLabelPart(t),n=this._editor.getModel();if(!s||!n)return void i.clear();const r=new a.Qi;i.add((0,l.s)((()=>r.dispose(!0)))),s.item.resolve(r.token),this._activeInlayHintPart=s.part.command||s.part.location?new U(s,t.hasTriggerModifier):void 0;const o=n.validatePosition(s.item.hint.position).lineNumber,c=new _.Q(o,1,o,n.getLineMaxColumn(o)),h=this._getInlineHintsForRange(c);this._updateHintsDecorators([c],h),i.add((0,l.s)((()=>{this._activeInlayHintPart=void 0,this._updateHintsDecorators([c],h)})))}))),e.add(t.onCancel((()=>i.clear()))),e.add(t.onExecute((async e=>{const t=this._getInlayHintLabelPart(e);if(t){const i=t.part;i.location?this._instaService.invokeFunction(L.U,e,this._editor,i.location):v.uB.is(i.command)&&await this._invokeCommand(i.command,t.item)}}))),e}_getInlineHintsForRange(e){const t=new Set;for(const i of this._decorationsMetadata.values())e.containsRange(i.item.anchor.range)&&t.add(i.item);return Array.from(t)}_installDblClickGesture(e){return this._editor.onMouseUp((async t=>{if(2!==t.event.detail)return;const i=this._getInlayHintLabelPart(t);if(i&&(t.event.preventDefault(),await i.item.resolve(a.XO.None),(0,r.EI)(i.item.hint.textEdits))){const t=i.item.hint.textEdits.map((e=>f.k.replace(_.Q.lift(e.range),e.text)));this._editor.executeEdits("inlayHint.default",t),e()}}))}_installContextMenu(){return this._editor.onContextMenu((async e=>{if(!(0,n.sb)(e.event.target))return;const t=this._getInlayHintLabelPart(e);t&&await this._instaService.invokeFunction(L.h,this._editor,e.event.target,t)}))}_getInlayHintLabelPart(e){if(6!==e.target.type)return;const t=e.target.detail.injectedText?.options;return t instanceof E.Ho&&t?.attachedData instanceof F?t.attachedData:void 0}async _invokeCommand(e,t){try{await this._commandService.executeCommand(e.id,...e.arguments??[])}catch(i){this._notificationService.notify({severity:A.AI.Error,source:t.provider.displayName,message:i})}}_cacheHintsForFastRestore(e){const t=this._copyInlayHintsWithCurrentAnchor(e);this._inlayHintsCache.set(e,t)}_copyInlayHintsWithCurrentAnchor(e){const t=new Map;for(const[i,s]of this._decorationsMetadata){if(t.has(s.item))continue;const n=e.getDecorationRange(i);if(n){const e=new R.EP(n,s.item.anchor.direction),i=s.item.with({anchor:e});t.set(s.item,i)}}return Array.from(t.values())}_getHintsRanges(){const e=this._editor.getModel(),t=this._editor.getVisibleRangesPlusViewportAboveBelow(),i=[];for(const s of t.sort(_.Q.compareRangesUsingStarts)){const t=e.validateRange(new _.Q(s.startLineNumber-30,s.startColumn,s.endLineNumber+30,s.endColumn));0!==i.length&&_.Q.areIntersectingOrTouching(i[i.length-1],t)?i[i.length-1]=_.Q.plusRange(i[i.length-1],t):i.push(t)}return i}_updateHintsDecorators(e,t){const i=[],n=(e,t,s,n,r)=>{const o={content:s,inlineClassNameAffectsLetterSpacing:!0,inlineClassName:t.className,cursorStops:n,attachedData:r};i.push({item:e,classNameRef:t,decoration:{range:e.anchor.range,options:{description:"InlayHint",showIfCollapsed:e.anchor.range.isEmpty(),collapseOnReplaceEdit:!e.anchor.range.isEmpty(),stickiness:0,[e.anchor.direction]:0===this._activeRenderMode?o:void 0}}})},o=(e,t)=>{const i=this._ruleFactory.createClassNameRef({width:(a/3|0)+"px",display:"inline-block"});n(e,i,"\u200a",t?C.VW.Right:C.VW.None)},{fontSize:a,fontFamily:c,padding:l,isUniform:h}=this._getLayoutInfo(),d="--code-editorInlayHintsFontFamily";this._editor.getContainerDomNode().style.setProperty(d,c);let u={line:0,totalLen:0};for(const p of t){if(u.line!==p.anchor.range.startLineNumber&&(u={line:p.anchor.range.startLineNumber,totalLen:0}),u.totalLen>s._MAX_LABEL_LEN)continue;p.hint.paddingLeft&&o(p,!1);const e="string"===typeof p.hint.label?[{label:p.hint.label}]:p.hint.label;for(let t=0;t<e.length;t++){const i=e[t],o=0===t,c=t===e.length-1,g={fontSize:`${a}px`,fontFamily:`var(${d}), ${m.jU.fontFamily}`,verticalAlign:h?"baseline":"middle",unicodeBidi:"isolate"};(0,r.EI)(p.hint.textEdits)&&(g.cursor="default"),this._fillInColors(g,p.hint),(i.command||i.location)&&this._activeInlayHintPart?.part.item===p&&this._activeInlayHintPart.part.index===t&&(g.textDecoration="underline",this._activeInlayHintPart.hasTriggerModifier&&(g.color=(0,I.Yf)(N.Ztu),g.cursor="pointer")),l&&(o&&c?(g.padding=`1px ${0|Math.max(1,a/4)}px`,g.borderRadius=(a/4|0)+"px"):o?(g.padding=`1px 0 1px ${0|Math.max(1,a/4)}px`,g.borderRadius=`${a/4|0}px 0 0 ${a/4|0}px`):c?(g.padding=`1px ${0|Math.max(1,a/4)}px 1px 0`,g.borderRadius=`0 ${a/4|0}px ${a/4|0}px 0`):g.padding="1px 0 1px 0");let f=i.label;u.totalLen+=f.length;let _=!1;const v=u.totalLen-s._MAX_LABEL_LEN;if(v>0&&(f=f.slice(0,-v)+"\u2026",_=!0),n(p,this._ruleFactory.createClassNameRef(g),B(f),c&&!p.hint.paddingRight?C.VW.Right:C.VW.None,new F(p,t)),_)break}if(p.hint.paddingRight&&o(p,!0),i.length>s._MAX_DECORATORS)break}const g=[];for(const[s,r]of this._decorationsMetadata){const t=this._editor.getModel()?.getDecorationRange(s);t&&e.some((e=>e.containsRange(t)))&&(g.push(s),r.classNameRef.dispose(),this._decorationsMetadata.delete(s))}const f=p.D.capture(this._editor);this._editor.changeDecorations((e=>{const t=e.deltaDecorations(g,i.map((e=>e.decoration)));for(let s=0;s<t.length;s++){const e=i[s];this._decorationsMetadata.set(t[s],e)}})),f.restore(this._editor)}_fillInColors(e,t){t.kind===v.r4.Parameter?(e.backgroundColor=(0,I.Yf)(N.B2L),e.color=(0,I.Yf)(N.sjA)):t.kind===v.r4.Type?(e.backgroundColor=(0,I.Yf)(N._pU),e.color=(0,I.Yf)(N.HwT)):(e.backgroundColor=(0,I.Yf)(N.WL6),e.color=(0,I.Yf)(N.P6i))}_getLayoutInfo(){const e=this._editor.getOption(142),t=e.padding,i=this._editor.getOption(52),s=this._editor.getOption(49);let n=e.fontSize;(!n||n<5||n>i)&&(n=i);const r=e.fontFamily||s;return{fontSize:n,fontFamily:r,padding:t,isUniform:!t&&r===s&&n===i}}_removeAllDecorations(){this._editor.removeDecorations(Array.from(this._decorationsMetadata.keys()));for(const e of this._decorationsMetadata.values())e.classNameRef.dispose();this._decorationsMetadata.clear()}};function B(e){return e.replace(/[ \t]/g,"\xa0")}H=s=O([D(1,S.ILanguageFeaturesService),D(2,b.ILanguageFeatureDebounceService),D(3,P),D(4,T.d),D(5,A.Ot),D(6,k._Y)],H),T.w.registerCommand("_executeInlayHintProvider",(async(e,...t)=>{const[i,s]=t;(0,d.j)(u.r.isUri(i)),(0,d.j)(_.Q.isIRange(s));const{inlayHintsProvider:n}=e.get(S.ILanguageFeaturesService),r=await e.get(y.ITextModelService).createModelReference(i);try{const e=await R.P8.create(n,r.object.textEditorModel,[_.Q.lift(s)],a.XO.None),t=e.items.map((e=>e.hint));return setTimeout((()=>e.dispose()),0),t}finally{r.dispose()}}))},68250:(e,t,i)=>{"use strict";i.d(t,{u:()=>L});var s=i(90766),n=i(16980),r=i(83069),o=i(87289),a=i(57039),c=i(10154),l=i(18938),h=i(7142),d=i(57286),u=i(21478),g=i(84001),p=i(49099),m=i(56942),f=i(78209),_=i(98067),v=i(3730),C=i(25890),E=i(98031),b=i(67220),S=i(50091),y=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},w=function(e,t){return function(i,s){t(i,s,e)}};class R extends a.mm{constructor(e,t,i,s){super(10,t,e.item.anchor.range,i,s,!0),this.part=e}}let L=class extends d.xJ{constructor(e,t,i,s,n,r,o,a,c){super(e,t,i,r,a,s,n,c),this._resolverService=o,this.hoverOrdinal=6}suggestHoverAnchor(e){if(!u.M.get(this._editor))return null;if(6!==e.target.type)return null;const t=e.target.detail.injectedText?.options;return t instanceof o.Ho&&t.attachedData instanceof u.z?new R(t.attachedData,this,e.event.posx,e.event.posy):null}computeSync(){return[]}computeAsync(e,t,i){return e instanceof R?new s.AE((async t=>{const{part:s}=e;if(await s.item.resolve(i),i.isCancellationRequested)return;let r,o;if("string"===typeof s.item.hint.tooltip?r=(new n.Bc).appendText(s.item.hint.tooltip):s.item.hint.tooltip&&(r=s.item.hint.tooltip),r&&t.emitOne(new d.eH(this,e.range,[r],!1,0)),(0,C.EI)(s.item.hint.textEdits)&&t.emitOne(new d.eH(this,e.range,[(new n.Bc).appendText((0,f.kg)("hint.dbl","Double-click to insert"))],!1,10001)),"string"===typeof s.part.tooltip?o=(new n.Bc).appendText(s.part.tooltip):s.part.tooltip&&(o=s.part.tooltip),o&&t.emitOne(new d.eH(this,e.range,[o],!1,1)),s.part.location||s.part.command){let i;const r="altKey"===this._editor.getOption(78)?_.zx?(0,f.kg)("links.navigate.kb.meta.mac","cmd + click"):(0,f.kg)("links.navigate.kb.meta","ctrl + click"):_.zx?(0,f.kg)("links.navigate.kb.alt.mac","option + click"):(0,f.kg)("links.navigate.kb.alt","alt + click");s.part.location&&s.part.command?i=(new n.Bc).appendText((0,f.kg)("hint.defAndCommand","Go to Definition ({0}), right click for more",r)):s.part.location?i=(new n.Bc).appendText((0,f.kg)("hint.def","Go to Definition ({0})",r)):s.part.command&&(i=new n.Bc(`[${(0,f.kg)("hint.cmd","Execute Command")}](${(0,v.CN)(s.part.command)} "${s.part.command.title}") (${r})`,{isTrusted:!0})),i&&t.emitOne(new d.eH(this,e.range,[i],!1,1e4))}const a=await this._resolveInlayHintLabelPartHover(s,i);for await(const e of a)t.emitOne(e)})):s.AE.EMPTY}async _resolveInlayHintLabelPartHover(e,t){if(!e.part.location)return s.AE.EMPTY;const{uri:i,range:o}=e.part.location,a=await this._resolverService.createModelReference(i);try{const i=a.object.textEditorModel;return this._languageFeaturesService.hoverProvider.has(i)?(0,h.U)(this._languageFeaturesService.hoverProvider,i,new r.y(o.startLineNumber,o.startColumn),t).filter((e=>!(0,n.it)(e.hover.contents))).map((t=>new d.eH(this,e.item.anchor.range,t.hover.contents,!1,2+t.ordinal))):s.AE.EMPTY}finally{a.dispose()}}};L=y([w(1,c.L),w(2,p.C),w(3,E.b),w(4,b.TN),w(5,g.pG),w(6,l.ITextModelService),w(7,m.ILanguageFeaturesService),w(8,S.d)],L)},60952:(e,t,i)=>{"use strict";i.d(t,{U:()=>v,h:()=>_});var s=i(8597),n=i(36921),r=i(18447),o=i(58255),a=i(36677),c=i(18938),l=i(99312),h=i(84226),d=i(27195),u=i(50091),g=i(32848),p=i(47508),m=i(63591),f=i(58591);async function _(e,t,i,h){const g=e.get(c.ITextModelService),_=e.get(p.Z),v=e.get(u.d),C=e.get(m._Y),E=e.get(f.Ot);if(await h.item.resolve(r.XO.None),!h.part.location)return;const b=h.part.location,S=[],y=new Set(d.ZG.getMenuItems(d.D8.EditorContext).map((e=>(0,d.is)(e)?e.command.id:(0,o.b)())));for(const s of l.bn.all())y.has(s.desc.id)&&S.push(new n.rc(s.desc.id,d.Xe.label(s.desc,{renderShortTitle:!0}),void 0,!0,(async()=>{const e=await g.createModelReference(b.uri);try{const i=new l.QS(e.object.textEditorModel,a.Q.getStartPosition(b.range)),n=h.item.anchor.range;await C.invokeFunction(s.runEditorCommand.bind(s),t,i,n)}finally{e.dispose()}})));if(h.part.command){const{command:e}=h.part;S.push(new n.wv),S.push(new n.rc(e.id,e.title,void 0,!0,(async()=>{try{await v.executeCommand(e.id,...e.arguments??[])}catch(t){E.notify({severity:f.AI.Error,source:h.item.provider.displayName,message:t})}})))}const w=t.getOption(128);_.showContextMenu({domForShadowRoot:w?t.getDomNode()??void 0:void 0,getAnchor:()=>{const e=s.BK(i);return{x:e.left,y:e.top+e.height+8}},getActions:()=>S,onHide:()=>{t.focus()},autoSelectFirstItem:!0})}async function v(e,t,i,s){const n=e.get(c.ITextModelService),r=await n.createModelReference(s.uri);await i.invokeWithinContext((async e=>{const n=t.hasSideBySideModifier,o=e.get(g.fN),c=h.x2.inPeekEditor.getValue(o),d=!n&&i.getOption(89)&&!c;return new l.mR({openToSide:n,openInPeek:d,muteMessage:!0},{title:{value:"",original:""},id:"",precondition:void 0}).run(e,new l.QS(r.object.textEditorModel,a.Q.getStartPosition(s.range)),a.Q.lift(s.range))})),r.dispose()}},78244:(e,t,i)=>{"use strict";i.d(t,{PA:()=>r,Vl:()=>n,Wt:()=>s});const s="editor.action.inlineSuggest.commit",n="editor.action.inlineSuggest.showPrevious",r="editor.action.inlineSuggest.showNext"},62051:(e,t,i)=>{"use strict";i.d(t,{p:()=>l});var s=i(31308),n=i(91508),r=i(1245),o=i(32848),a=i(5662),c=i(78209);class l extends a.jG{static{this.inlineSuggestionVisible=new o.N1("inlineSuggestionVisible",!1,(0,c.kg)("inlineSuggestionVisible","Whether an inline suggestion is visible"))}static{this.inlineSuggestionHasIndentation=new o.N1("inlineSuggestionHasIndentation",!1,(0,c.kg)("inlineSuggestionHasIndentation","Whether the inline suggestion starts with whitespace"))}static{this.inlineSuggestionHasIndentationLessThanTabSize=new o.N1("inlineSuggestionHasIndentationLessThanTabSize",!0,(0,c.kg)("inlineSuggestionHasIndentationLessThanTabSize","Whether the inline suggestion starts with whitespace that is less than what would be inserted by tab"))}static{this.suppressSuggestions=new o.N1("inlineSuggestionSuppressSuggestions",void 0,(0,c.kg)("suppressSuggestions","Whether suggestions should be suppressed for the current suggestion"))}constructor(e,t){super(),this.contextKeyService=e,this.model=t,this.inlineCompletionVisible=l.inlineSuggestionVisible.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentation=l.inlineSuggestionHasIndentation.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentationLessThanTabSize=l.inlineSuggestionHasIndentationLessThanTabSize.bindTo(this.contextKeyService),this.suppressSuggestions=l.suppressSuggestions.bindTo(this.contextKeyService),this._register((0,s.fm)((e=>{const t=this.model.read(e),i=t?.state.read(e),s=!!i?.inlineCompletion&&void 0!==i?.primaryGhostText&&!i?.primaryGhostText.isEmpty();this.inlineCompletionVisible.set(s),i?.primaryGhostText&&i?.inlineCompletion&&this.suppressSuggestions.set(i.inlineCompletion.inlineCompletion.source.inlineCompletions.suppressSuggestions)}))),this._register((0,s.fm)((e=>{const t=this.model.read(e);let i=!1,s=!0;const o=t?.primaryGhostText.read(e);if(t?.selectedSuggestItem&&o&&o.parts.length>0){const{column:e,lines:a}=o.parts[0],c=a[0];if(e<=t.textModel.getLineIndentColumn(o.lineNumber)){let e=(0,n.HG)(c);-1===e&&(e=c.length-1),i=e>0;const o=t.textModel.getOptions().tabSize;s=r.A.visibleColumnFromColumn(c,e+1,o)<o}}this.inlineCompletionSuggestsIndentation.set(i),this.inlineCompletionSuggestsIndentationLessThanTabSize.set(s)})))}}},64317:(e,t,i)=>{"use strict";i.d(t,{Pm:()=>I,bo:()=>M});var s,n=i(8597),r=i(5646),o=i(47625),a=i(36921),c=i(25890),l=i(90766),h=i(10350),d=i(5662),u=i(31308),g=i(87958),p=i(98067),m=i(25689),f=i(83069),_=i(62083),v=i(78244),C=i(78209),E=i(57629),b=i(65644),S=i(27195),y=i(50091),w=i(32848),R=i(47508),L=i(63591),T=i(98031),x=i(90651),k=i(61394),A=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},N=function(e,t){return function(i,s){t(i,s,e)}};let I=class extends d.jG{constructor(e,t,i){super(),this.editor=e,this.model=t,this.instantiationService=i,this.alwaysShowToolbar=(0,u.y0)(this,this.editor.onDidChangeConfiguration,(()=>"always"===this.editor.getOption(62).showToolbar)),this.sessionPosition=void 0,this.position=(0,u.un)(this,(e=>{const t=this.model.read(e)?.primaryGhostText.read(e);if(!this.alwaysShowToolbar.read(e)||!t||0===t.parts.length)return this.sessionPosition=void 0,null;const i=t.parts[0].column;this.sessionPosition&&this.sessionPosition.lineNumber!==t.lineNumber&&(this.sessionPosition=void 0);const s=new f.y(t.lineNumber,Math.min(i,this.sessionPosition?.column??Number.MAX_SAFE_INTEGER));return this.sessionPosition=s,s})),this._register((0,u.yC)(((t,i)=>{const s=this.model.read(t);if(!s||!this.alwaysShowToolbar.read(t))return;const n=(0,g.rm)(((t,i)=>{const n=i.add(this.instantiationService.createInstance(M,this.editor,!0,this.position,s.selectedInlineCompletionIndex,s.inlineCompletionsCount,s.activeCommands));return e.addContentWidget(n),i.add((0,d.s)((()=>e.removeContentWidget(n)))),i.add((0,u.fm)((e=>{this.position.read(e)&&s.lastTriggerKind.read(e)!==_.qw.Explicit&&s.triggerExplicitly()}))),n})),r=(0,u.ZX)(this,((e,t)=>!!this.position.read(e)||!!t));i.add((0,u.fm)((e=>{r.read(e)&&n.read(e)})))})))}};I=A([N(2,L._Y)],I);const O=(0,k.pU)("inline-suggestion-hints-next",h.W.chevronRight,(0,C.kg)("parameterHintsNextIcon","Icon for show next parameter hint.")),D=(0,k.pU)("inline-suggestion-hints-previous",h.W.chevronLeft,(0,C.kg)("parameterHintsPreviousIcon","Icon for show previous parameter hint."));let M=class extends d.jG{static{s=this}static{this._dropDownVisible=!1}static get dropDownVisible(){return this._dropDownVisible}static{this.id=0}createCommandAction(e,t,i){const s=new a.rc(e,t,i,!0,(()=>this._commandService.executeCommand(e))),n=this.keybindingService.lookupKeybinding(e,this._contextKeyService);let r=t;return n&&(r=(0,C.kg)({key:"content",comment:["A label","A keybinding"]},"{0} ({1})",t,n.getLabel())),s.tooltip=r,s}constructor(e,t,i,r,o,c,h,d,g,p,f){super(),this.editor=e,this.withBorder=t,this._position=i,this._currentSuggestionIdx=r,this._suggestionCount=o,this._extraCommands=c,this._commandService=h,this.keybindingService=g,this._contextKeyService=p,this._menuService=f,this.id="InlineSuggestionHintsContentWidget"+s.id++,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.nodes=(0,n.h)("div.inlineSuggestionsHints",{className:this.withBorder?".withBorder":""},[(0,n.h)("div@toolBar")]),this.previousAction=this.createCommandAction(v.Vl,(0,C.kg)("previous","Previous"),m.L.asClassName(D)),this.availableSuggestionCountAction=new a.rc("inlineSuggestionHints.availableSuggestionCount","",void 0,!1),this.nextAction=this.createCommandAction(v.PA,(0,C.kg)("next","Next"),m.L.asClassName(O)),this.inlineCompletionsActionsMenus=this._register(this._menuService.createMenu(S.D8.InlineCompletionsActions,this._contextKeyService)),this.clearAvailableSuggestionCountLabelDebounced=this._register(new l.uC((()=>{this.availableSuggestionCountAction.label=""}),100)),this.disableButtonsDebounced=this._register(new l.uC((()=>{this.previousAction.enabled=this.nextAction.enabled=!1}),100)),this.toolBar=this._register(d.createInstance(U,this.nodes.toolBar,S.D8.InlineSuggestionToolbar,{menuOptions:{renderShortTitle:!0},toolbarOptions:{primaryGroup:e=>e.startsWith("primary")},actionViewItemProvider:(e,t)=>{if(e instanceof S.Xe)return d.createInstance(F,e,void 0);if(e===this.availableSuggestionCountAction){const t=new P(void 0,e,{label:!0,icon:!1});return t.setClass("availableSuggestionCount"),t}},telemetrySource:"InlineSuggestionToolbar"})),this.toolBar.setPrependedPrimaryActions([this.previousAction,this.availableSuggestionCountAction,this.nextAction]),this._register(this.toolBar.onDidChangeDropdownVisibility((e=>{s._dropDownVisible=e}))),this._register((0,u.fm)((e=>{this._position.read(e),this.editor.layoutContentWidget(this)}))),this._register((0,u.fm)((e=>{const t=this._suggestionCount.read(e),i=this._currentSuggestionIdx.read(e);void 0!==t?(this.clearAvailableSuggestionCountLabelDebounced.cancel(),this.availableSuggestionCountAction.label=`${i+1}/${t}`):this.clearAvailableSuggestionCountLabelDebounced.schedule(),void 0!==t&&t>1?(this.disableButtonsDebounced.cancel(),this.previousAction.enabled=this.nextAction.enabled=!0):this.disableButtonsDebounced.schedule()}))),this._register((0,u.fm)((e=>{const t=this._extraCommands.read(e).map((e=>({class:void 0,id:e.id,enabled:!0,tooltip:e.tooltip||"",label:e.title,run:t=>this._commandService.executeCommand(e.id)})));for(const[i,s]of this.inlineCompletionsActionsMenus.getActions())for(const e of s)e instanceof S.Xe&&t.push(e);t.length>0&&t.unshift(new a.wv),this.toolBar.setAdditionalSecondaryActions(t)})))}getId(){return this.id}getDomNode(){return this.nodes.root}getPosition(){return{position:this._position.get(),preference:[1,2],positionAffinity:3}}};M=s=A([N(6,y.d),N(7,L._Y),N(8,T.b),N(9,w.fN),N(10,S.ez)],M);class P extends r.Z4{constructor(){super(...arguments),this._className=void 0}setClass(e){this._className=e}render(e){super.render(e),this._className&&e.classList.add(this._className)}updateTooltip(){}}class F extends E.oq{updateLabel(){const e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();if(this.label){const t=(0,n.h)("div.keybinding").root;this._register(new o.x(t,p.OS,{disableTitle:!0,...o.l})).set(e),this.label.textContent=this._action.label,this.label.appendChild(t),this.label.classList.add("inlineSuggestionStatusBarItemLabel")}}updateTooltip(){}}let U=class extends b.p{constructor(e,t,i,s,n,r,o,a,c){super(e,{resetMenu:t,...i},s,n,r,o,a,c),this.menuId=t,this.options2=i,this.menuService=s,this.contextKeyService=n,this.menu=this._store.add(this.menuService.createMenu(this.menuId,this.contextKeyService,{emitEventsForSubmenuChanges:!0})),this.additionalActions=[],this.prependedPrimaryActions=[],this._store.add(this.menu.onDidChange((()=>this.updateToolbar()))),this.updateToolbar()}updateToolbar(){const e=[],t=[];(0,E.Ot)(this.menu,this.options2?.menuOptions,{primary:e,secondary:t},this.options2?.toolbarOptions?.primaryGroup,this.options2?.toolbarOptions?.shouldInlineSubmenu,this.options2?.toolbarOptions?.useSeparatorsInPrimaryActions),t.push(...this.additionalActions),e.unshift(...this.prependedPrimaryActions),this.setActions(e,t)}setPrependedPrimaryActions(e){(0,c.aI)(this.prependedPrimaryActions,e,((e,t)=>e===t))||(this.prependedPrimaryActions=e,this.updateToolbar())}setAdditionalSecondaryActions(e){(0,c.aI)(this.additionalActions,e,((e,t)=>e===t))||(this.additionalActions=e,this.updateToolbar())}};U=A([N(3,S.ez),N(4,w.fN),N(5,R.Z),N(6,T.b),N(7,y.d),N(8,x.k)],U)},80409:(e,t,i)=>{"use strict";var s=i(31450),n=i(57039),r=i(31308),o=i(49154),a=i(60002),c=i(78244),l=i(62051),h=i(8597),d=i(5662);var u=i(11007),g=i(90766),p=i(18447),m=i(87958),f=i(13850),_=i(631),v=i(36999),C=i(38844),E=i(83069),b=i(32500),S=i(56942),y=i(80789),w=i(41234),R=i(91508),L=i(73157),T=i(87908),x=i(36677),k=i(99020),A=i(10154),N=i(16223),I=i(87469),O=i(25521),D=i(35600),M=i(92674),P=i(73401),F=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},U=function(e,t){return function(i,s){t(i,s,e)}};const H="ghost-text";let B=class extends d.jG{constructor(e,t,i){super(),this.editor=e,this.model=t,this.languageService=i,this.isDisposed=(0,r.FY)(this,!1),this.currentTextModel=(0,r.y0)(this,this.editor.onDidChangeModel,(()=>this.editor.getModel())),this.uiState=(0,r.un)(this,(e=>{if(this.isDisposed.read(e))return;const t=this.currentTextModel.read(e);if(t!==this.model.targetTextModel.read(e))return;const i=this.model.ghostText.read(e);if(!i)return;const s=i instanceof M.Vs?i.columnRange:void 0,n=[],r=[];function o(e,t){if(r.length>0){const i=r[r.length-1];t&&i.decorations.push(new O.d(i.content.length+1,i.content.length+1+e[0].length,t,0)),i.content+=e[0],e=e.slice(1)}for(const i of e)r.push({content:i,decorations:t?[new O.d(1,i.length+1,t,0)]:[]})}const a=t.getLineContent(i.lineNumber);let c,l=0;for(const d of i.parts){let e=d.lines;void 0===c?(n.push({column:d.column,text:e[0],preview:d.preview}),e=e.slice(1)):o([a.substring(l,d.column-1)],void 0),e.length>0&&(o(e,H),void 0===c&&d.column<=a.length&&(c=d.column)),l=d.column-1}void 0!==c&&o([a.substring(l)],void 0);const h=void 0!==c?new P.GM(c,a.length+1):void 0;return{replacedRange:s,inlineTexts:n,additionalLines:r,hiddenRange:h,lineNumber:i.lineNumber,additionalReservedLineCount:this.model.minReservedLineCount.read(e),targetTextModel:t}})),this.decorations=(0,r.un)(this,(e=>{const t=this.uiState.read(e);if(!t)return[];const i=[];t.replacedRange&&i.push({range:t.replacedRange.toRange(t.lineNumber),options:{inlineClassName:"inline-completion-text-to-replace",description:"GhostTextReplacement"}}),t.hiddenRange&&i.push({range:t.hiddenRange.toRange(t.lineNumber),options:{inlineClassName:"ghost-text-hidden",description:"ghost-text-hidden"}});for(const s of t.inlineTexts)i.push({range:x.Q.fromPositions(new E.y(t.lineNumber,s.column)),options:{description:H,after:{content:s.text,inlineClassName:s.preview?"ghost-text-decoration-preview":"ghost-text-decoration",cursorStops:N.VW.Left},showIfCollapsed:!0}});return i})),this.additionalLinesWidget=this._register(new W(this.editor,this.languageService.languageIdCodec,(0,r.un)((e=>{const t=this.uiState.read(e);return t?{lineNumber:t.lineNumber,additionalLines:t.additionalLines,minReservedLineCount:t.additionalReservedLineCount,targetTextModel:t.targetTextModel}:void 0})))),this._register((0,d.s)((()=>{this.isDisposed.set(!0,void 0)}))),this._register((0,P.pY)(this.editor,this.decorations))}ownsViewZone(e){return this.additionalLinesWidget.viewZoneId===e}};B=F([U(2,A.L)],B);class W extends d.jG{get viewZoneId(){return this._viewZoneId}constructor(e,t,i){super(),this.editor=e,this.languageIdCodec=t,this.lines=i,this._viewZoneId=void 0,this.editorOptionsChanged=(0,r.yQ)("editorOptionChanged",w.Jh.filter(this.editor.onDidChangeConfiguration,(e=>e.hasChanged(33)||e.hasChanged(118)||e.hasChanged(100)||e.hasChanged(95)||e.hasChanged(51)||e.hasChanged(50)||e.hasChanged(67)))),this._register((0,r.fm)((e=>{const t=this.lines.read(e);this.editorOptionsChanged.read(e),t?this.updateLines(t.lineNumber,t.additionalLines,t.minReservedLineCount):this.clear()})))}dispose(){super.dispose(),this.clear()}clear(){this.editor.changeViewZones((e=>{this._viewZoneId&&(e.removeZone(this._viewZoneId),this._viewZoneId=void 0)}))}updateLines(e,t,i){const s=this.editor.getModel();if(!s)return;const{tabSize:n}=s.getOptions();this.editor.changeViewZones((s=>{this._viewZoneId&&(s.removeZone(this._viewZoneId),this._viewZoneId=void 0);const r=Math.max(t.length,i);if(r>0){const i=document.createElement("div");!function(e,t,i,s,n){const r=s.get(33),o=s.get(118),a="none",c=s.get(95),l=s.get(51),h=s.get(50),d=s.get(67),u=new k.fe(1e4);u.appendString('<div class="suggest-preview-text">');for(let m=0,f=i.length;m<f;m++){const e=i[m],s=e.content;u.appendString('<div class="view-line'),u.appendString('" style="top:'),u.appendString(String(m*d)),u.appendString('px;width:1000000px;">');const g=R.aC(s),p=R.E_(s),f=I.f.createEmpty(s,n);(0,D.UW)(new D.zL(h.isMonospace&&!r,h.canUseHalfwidthRightwardsArrow,s,!1,g,p,0,f,e.decorations,t,0,h.spaceWidth,h.middotWidth,h.wsmiddotWidth,o,a,c,l!==T.Bc.OFF,null),u),u.appendString("</div>")}u.appendString("</div>"),(0,L.M)(e,h);const g=u.build(),p=V?V.createHTML(g):g;e.innerHTML=p}(i,n,t,this.editor.getOptions(),this.languageIdCodec),this._viewZoneId=s.addZone({afterLineNumber:e,heightInLines:r,domNode:i,afterColumnAffinity:1})}}))}}const V=(0,y.H)("editorGhostText",{createHTML:e=>e});var z=i(64317),G=i(25890),j=i(46041),K=i(51241),Y=i(64383),q=i(7085),$=i(75326),Q=i(75295),X=i(50973),Z=i(62083),J=i(17469),ee=i(26690),te=i(20940),ie=i(83993);function se(e,t,i){const s=i?e.range.intersectRanges(i):e.range;if(!s)return e;const n=t.getValueInRange(s,1),r=(0,R.Qp)(n,e.text),o=X.W.ofText(n.substring(0,r)).addToPosition(e.range.getStartPosition()),a=e.text.substring(r),c=x.Q.fromPositions(o,e.range.getEndPosition());return new Q.WR(c,a)}function ne(e,t){return e.text.startsWith(t.text)&&(i=e.range,(s=t.range).getStartPosition().equals(i.getStartPosition())&&s.getEndPosition().isBeforeOrEqual(i.getEndPosition()));var i,s}function re(e,t,i,s,n=0){let r=se(e,t);if(r.range.endLineNumber!==r.range.startLineNumber)return;const o=t.getLineContent(r.range.startLineNumber),a=(0,R.UU)(o).length;if(r.range.startColumn-1<=a){const e=(0,R.UU)(r.text).length,t=o.substring(r.range.startColumn-1,a),[i,s]=[r.range.getStartPosition(),r.range.getEndPosition()],n=i.column+t.length<=s.column?i.delta(0,t.length):s,c=x.Q.fromPositions(n,s),l=r.text.startsWith(t)?r.text.substring(t.length):r.text.substring(e);r=new Q.WR(c,l)}const c=t.getValueInRange(r.range),l=function(e,t){if(oe?.originalValue===e&&oe?.newValue===t)return oe?.changes;{let i=ce(e,t,!0);if(i){const s=ae(i);if(s>0){const n=ce(e,t,!1);n&&ae(n)<s&&(i=n)}}return oe={originalValue:e,newValue:t,changes:i},i}}(c,r.text);if(!l)return;const h=r.range.startLineNumber,d=new Array;if("prefix"===i){const e=l.filter((e=>0===e.originalLength));if(e.length>1||1===e.length&&e[0].originalStart!==c.length)return}const u=r.text.length-n;for(const g of l){const e=r.range.startColumn+g.originalStart+g.originalLength;if("subwordSmart"===i&&s&&s.lineNumber===r.range.startLineNumber&&e<s.column)return;if(g.originalLength>0)return;if(0===g.modifiedLength)continue;const t=g.modifiedStart+g.modifiedLength,n=Math.max(g.modifiedStart,Math.min(t,u)),o=r.text.substring(g.modifiedStart,n),a=r.text.substring(n,Math.max(g.modifiedStart,t));o.length>0&&d.push(new M.yP(e,o,!1)),a.length>0&&d.push(new M.yP(e,a,!0))}return new M.xD(h,d)}let oe;function ae(e){let t=0;for(const i of e)t+=i.originalLength;return t}function ce(e,t,i){if(e.length>5e3||t.length>5e3)return;function s(e){let t=0;for(let i=0,s=e.length;i<s;i++){const s=e.charCodeAt(i);s>t&&(t=s)}return t}const n=Math.max(s(e),s(t));function r(e){if(e<0)throw new Error("unexpected");return n+e+1}function o(e){let t=0,s=0;const n=new Int32Array(e.length);for(let o=0,a=e.length;o<a;o++)if(i&&"("===e[o]){const e=100*s+t;n[o]=r(2*e),t++}else if(i&&")"===e[o]){t=Math.max(t-1,0);const e=100*s+t;n[o]=r(2*e+1),0===t&&s++}else n[o]=e.charCodeAt(o);return n}const a=o(e),c=o(t);return new ie.uP({getElements:()=>a},{getElements:()=>c}).ComputeDiff(!1).changes}var le=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},he=function(e,t){return function(i,s){t(i,s,e)}};let de=class extends d.jG{constructor(e,t,i,s,n){super(),this.textModel=e,this.versionId=t,this._debounceValue=i,this.languageFeaturesService=s,this.languageConfigurationService=n,this._updateOperation=this._register(new d.HE),this.inlineCompletions=(0,r.X2)("inlineCompletions",void 0),this.suggestWidgetInlineCompletions=(0,r.X2)("suggestWidgetInlineCompletions",void 0),this._register(this.textModel.onDidChangeContent((()=>{this._updateOperation.clear()})))}fetch(e,t,i){const s=new ue(e,t,this.textModel.getVersionId()),n=t.selectedSuggestionInfo?this.suggestWidgetInlineCompletions:this.inlineCompletions;if(this._updateOperation.value?.request.satisfies(s))return this._updateOperation.value.promise;if(n.get()?.request.satisfies(s))return Promise.resolve(!0);const o=!!this._updateOperation.value;this._updateOperation.clear();const a=new p.Qi,c=(async()=>{var c,l;if((o||t.triggerKind===Z.qw.Automatic)&&await(c=this._debounceValue.get(this.textModel),l=a.token,new Promise((e=>{let t;const i=setTimeout((()=>{t&&t.dispose(),e()}),c);l&&(t=l.onCancellationRequested((()=>{clearTimeout(i),t&&t.dispose(),e()})))}))),a.token.isCancellationRequested||this._store.isDisposed||this.textModel.getVersionId()!==s.versionId)return!1;const h=new Date,d=await(0,te.Yk)(this.languageFeaturesService.inlineCompletionsProvider,e,this.textModel,t,a.token,this.languageConfigurationService);if(a.token.isCancellationRequested||this._store.isDisposed||this.textModel.getVersionId()!==s.versionId)return!1;const u=new Date;this._debounceValue.update(this.textModel,u.getTime()-h.getTime());const g=new pe(d,s,this.textModel,this.versionId);if(i){const t=i.toInlineCompletion(void 0);i.canBeReused(this.textModel,e)&&!d.has(t)&&g.prepend(i.inlineCompletion,t.range,!0)}return this._updateOperation.clear(),(0,r.Rn)((e=>{n.set(g,e)})),!0})(),l=new ge(s,a,c);return this._updateOperation.value=l,c}clear(e){this._updateOperation.clear(),this.inlineCompletions.set(void 0,e),this.suggestWidgetInlineCompletions.set(void 0,e)}clearSuggestWidgetInlineCompletions(e){this._updateOperation.value?.request.context.selectedSuggestionInfo&&this._updateOperation.clear(),this.suggestWidgetInlineCompletions.set(void 0,e)}cancelUpdate(){this._updateOperation.clear()}};de=le([he(3,S.ILanguageFeaturesService),he(4,J.JZ)],de);class ue{constructor(e,t,i){this.position=e,this.context=t,this.versionId=i}satisfies(e){return this.position.equals(e.position)&&(0,K.KC)(this.context.selectedSuggestionInfo,e.context.selectedSuggestionInfo,(0,K.r)())&&(e.context.triggerKind===Z.qw.Automatic||this.context.triggerKind===Z.qw.Explicit)&&this.versionId===e.versionId}}class ge{constructor(e,t,i){this.request=e,this.cancellationTokenSource=t,this.promise=i}dispose(){this.cancellationTokenSource.cancel()}}class pe{get inlineCompletions(){return this._inlineCompletions}constructor(e,t,i,s){this.inlineCompletionProviderResult=e,this.request=t,this._textModel=i,this._versionId=s,this._refCount=1,this._prependedInlineCompletionItems=[];const n=i.deltaDecorations([],e.completions.map((e=>({range:e.range,options:{description:"inline-completion-tracking-range"}}))));this._inlineCompletions=e.completions.map(((e,t)=>new me(e,n[t],this._textModel,this._versionId)))}clone(){return this._refCount++,this}dispose(){if(this._refCount--,0===this._refCount){setTimeout((()=>{this._textModel.isDisposed()||this._textModel.deltaDecorations(this._inlineCompletions.map((e=>e.decorationId)),[])}),0),this.inlineCompletionProviderResult.dispose();for(const e of this._prependedInlineCompletionItems)e.source.removeRef()}}prepend(e,t,i){i&&e.source.addRef();const s=this._textModel.deltaDecorations([],[{range:t,options:{description:"inline-completion-tracking-range"}}])[0];this._inlineCompletions.unshift(new me(e,s,this._textModel,this._versionId)),this._prependedInlineCompletionItems.push(e)}}class me{get forwardStable(){return this.inlineCompletion.source.inlineCompletions.enableForwardStability??!1}constructor(e,t,i,s){this.inlineCompletion=e,this.decorationId=t,this._textModel=i,this._modelVersion=s,this.semanticId=JSON.stringify([this.inlineCompletion.filterText,this.inlineCompletion.insertText,this.inlineCompletion.range.getStartPosition().toString()]),this._updatedRange=(0,r.C)({owner:this,equalsFn:x.Q.equalsRange},(e=>(this._modelVersion.read(e),this._textModel.getDecorationRange(this.decorationId))))}toInlineCompletion(e){return this.inlineCompletion.withRange(this._updatedRange.read(e)??fe)}toSingleTextEdit(e){return new Q.WR(this._updatedRange.read(e)??fe,this.inlineCompletion.insertText)}isVisible(e,t,i){const s=se(this._toFilterTextReplacement(i),e),n=this._updatedRange.read(i);if(!n||!this.inlineCompletion.range.getStartPosition().equals(n.getStartPosition())||t.lineNumber!==s.range.startLineNumber)return!1;const r=e.getValueInRange(s.range,1),o=s.text,a=Math.max(0,t.column-s.range.startColumn);let c=o.substring(0,a),l=o.substring(a),h=r.substring(0,a),d=r.substring(a);const u=e.getLineIndentColumn(s.range.startLineNumber);return s.range.startColumn<=u&&(h=h.trimStart(),0===h.length&&(d=d.trimStart()),c=c.trimStart(),0===c.length&&(l=l.trimStart())),c.startsWith(h)&&!!(0,ee.dE)(d,l)}canBeReused(e,t){const i=this._updatedRange.read(void 0);return!!i&&i.containsPosition(t)&&this.isVisible(e,t,void 0)&&X.W.ofRange(i).isGreaterThanOrEqualTo(X.W.ofRange(this.inlineCompletion.range))}_toFilterTextReplacement(e){return new Q.WR(this._updatedRange.read(e)??fe,this.inlineCompletion.filterText)}}const fe=new x.Q(1,1,1,1);var _e=i(30936),ve=i(50091),Ce=i(63591),Ee=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},be=function(e,t){return function(i,s){t(i,s,e)}};let Se=class extends d.jG{get isAcceptingPartially(){return this._isAcceptingPartially}constructor(e,t,i,s,n,o,a,c,l,h,d,u){let g;super(),this.textModel=e,this.selectedSuggestItem=t,this._textModelVersionId=i,this._positions=s,this._debounceValue=n,this._suggestPreviewEnabled=o,this._suggestPreviewMode=a,this._inlineSuggestMode=c,this._enabled=l,this._instantiationService=h,this._commandService=d,this._languageConfigurationService=u,this._source=this._register(this._instantiationService.createInstance(de,this.textModel,this._textModelVersionId,this._debounceValue)),this._isActive=(0,r.FY)(this,!1),this._forceUpdateExplicitlySignal=(0,r.Yd)(this),this._selectedInlineCompletionId=(0,r.FY)(this,void 0),this._primaryPosition=(0,r.un)(this,(e=>this._positions.read(e)[0]??new E.y(1,1))),this._isAcceptingPartially=!1,this._preserveCurrentCompletionReasons=new Set([ye.Redo,ye.Undo,ye.AcceptWord]),this._fetchInlineCompletionsPromise=(0,r.nb)({owner:this,createEmptyChangeSummary:()=>({preserveCurrentCompletion:!1,inlineCompletionTriggerKind:Z.qw.Automatic}),handleChange:(e,t)=>(e.didChange(this._textModelVersionId)&&this._preserveCurrentCompletionReasons.has(this._getReason(e.change))?t.preserveCurrentCompletion=!0:e.didChange(this._forceUpdateExplicitlySignal)&&(t.inlineCompletionTriggerKind=Z.qw.Explicit),!0)},((e,t)=>{this._forceUpdateExplicitlySignal.read(e);if(!(this._enabled.read(e)&&this.selectedSuggestItem.read(e)||this._isActive.read(e)))return void this._source.cancelUpdate();this._textModelVersionId.read(e);const i=this._source.suggestWidgetInlineCompletions.get(),s=this.selectedSuggestItem.read(e);if(i&&!s){const e=this._source.inlineCompletions.get();(0,r.Rn)((t=>{(!e||i.request.versionId>e.request.versionId)&&this._source.inlineCompletions.set(i.clone(),t),this._source.clearSuggestWidgetInlineCompletions(t)}))}const n=this._primaryPosition.read(e),o={triggerKind:t.inlineCompletionTriggerKind,selectedSuggestionInfo:s?.toSelectedSuggestionInfo()},a=this.selectedInlineCompletion.get(),c=t.preserveCurrentCompletion||a?.forwardStable?a:void 0;return this._source.fetch(n,o,c)})),this._filteredInlineCompletionItems=(0,r.C)({owner:this,equalsFn:(0,K.S3)()},(e=>{const t=this._source.inlineCompletions.read(e);if(!t)return[];const i=this._primaryPosition.read(e),s=t.inlineCompletions.filter((t=>t.isVisible(this.textModel,i,e)));return s})),this.selectedInlineCompletionIndex=(0,r.un)(this,(e=>{const t=this._selectedInlineCompletionId.read(e),i=this._filteredInlineCompletionItems.read(e),s=void 0===this._selectedInlineCompletionId?-1:i.findIndex((e=>e.semanticId===t));return-1===s?(this._selectedInlineCompletionId.set(void 0,void 0),0):s})),this.selectedInlineCompletion=(0,r.un)(this,(e=>this._filteredInlineCompletionItems.read(e)[this.selectedInlineCompletionIndex.read(e)])),this.activeCommands=(0,r.C)({owner:this,equalsFn:(0,K.S3)()},(e=>this.selectedInlineCompletion.read(e)?.inlineCompletion.source.inlineCompletions.commands??[])),this.lastTriggerKind=this._source.inlineCompletions.map(this,(e=>e?.request.context.triggerKind)),this.inlineCompletionsCount=(0,r.un)(this,(e=>this.lastTriggerKind.read(e)===Z.qw.Explicit?this._filteredInlineCompletionItems.read(e).length:void 0)),this.state=(0,r.C)({owner:this,equalsFn:(e,t)=>e&&t?(0,M.AL)(e.ghostTexts,t.ghostTexts)&&e.inlineCompletion===t.inlineCompletion&&e.suggestItem===t.suggestItem:e===t},(e=>{const t=this.textModel,i=this.selectedSuggestItem.read(e);if(i){const s=se(i.toSingleTextEdit(),t),n=this._computeAugmentation(s,e);if(!this._suggestPreviewEnabled.read(e)&&!n)return;const r=n?.edit??s,o=n?n.edit.text.length-s.text.length:0,a=this._suggestPreviewMode.read(e),c=this._positions.read(e),l=[r,...we(this.textModel,c,r)],h=l.map(((e,i)=>re(e,t,a,c[i],o))).filter(_.O9);return{edits:l,primaryGhostText:h[0]??new M.xD(r.range.endLineNumber,[]),ghostTexts:h,inlineCompletion:n?.completion,suggestItem:i}}{if(!this._isActive.read(e))return;const i=this.selectedInlineCompletion.read(e);if(!i)return;const s=i.toSingleTextEdit(e),n=this._inlineSuggestMode.read(e),r=this._positions.read(e),o=[s,...we(this.textModel,r,s)],a=o.map(((e,i)=>re(e,t,n,r[i],0))).filter(_.O9);if(!a[0])return;return{edits:o,primaryGhostText:a[0],ghostTexts:a,inlineCompletion:i,suggestItem:void 0}}})),this.ghostTexts=(0,r.C)({owner:this,equalsFn:M.AL},(e=>{const t=this.state.read(e);if(t)return t.ghostTexts})),this.primaryGhostText=(0,r.C)({owner:this,equalsFn:M.x9},(e=>{const t=this.state.read(e);if(t)return t?.primaryGhostText})),this._register((0,r.OI)(this._fetchInlineCompletionsPromise)),this._register((0,r.fm)((e=>{const t=this.state.read(e),i=t?.inlineCompletion;if(i?.semanticId!==g?.semanticId&&(g=i,i)){const e=i.inlineCompletion,t=e.source;t.provider.handleItemDidShow?.(t.inlineCompletions,e.sourceInlineCompletion,e.insertText)}})))}_getReason(e){return e?.isUndoing?ye.Undo:e?.isRedoing?ye.Redo:this.isAcceptingPartially?ye.AcceptWord:ye.Other}async trigger(e){this._isActive.set(!0,e),await this._fetchInlineCompletionsPromise.get()}async triggerExplicitly(e){(0,r.PO)(e,(e=>{this._isActive.set(!0,e),this._forceUpdateExplicitlySignal.trigger(e)})),await this._fetchInlineCompletionsPromise.get()}stop(e){(0,r.PO)(e,(e=>{this._isActive.set(!1,e),this._source.clear(e)}))}_computeAugmentation(e,t){const i=this.textModel,s=this._source.suggestWidgetInlineCompletions.read(t),n=s?s.inlineCompletions:[this.selectedInlineCompletion.read(t)].filter(_.O9);return(0,j.oH)(n,(s=>{let n=s.toSingleTextEdit(t);return n=se(n,i,x.Q.fromPositions(n.range.getStartPosition(),e.range.getEndPosition())),ne(n,e)?{completion:s,edit:n}:void 0}))}async _deltaSelectedInlineCompletionIndex(e){await this.triggerExplicitly();const t=this._filteredInlineCompletionItems.get()||[];if(t.length>0){const i=(this.selectedInlineCompletionIndex.get()+e+t.length)%t.length;this._selectedInlineCompletionId.set(t[i].semanticId,void 0)}else this._selectedInlineCompletionId.set(void 0,void 0)}async next(){await this._deltaSelectedInlineCompletionIndex(1)}async previous(){await this._deltaSelectedInlineCompletionIndex(-1)}async accept(e){if(e.getModel()!==this.textModel)throw new Y.D7;const t=this.state.get();if(!t||t.primaryGhostText.isEmpty()||!t.inlineCompletion)return;const i=t.inlineCompletion.toInlineCompletion(void 0);if(i.command&&i.source.addRef(),e.pushUndoStop(),i.snippetInfo)e.executeEdits("inlineSuggestion.accept",[q.k.replace(i.range,""),...i.additionalTextEdits]),e.setPosition(i.snippetInfo.range.getStartPosition(),"inlineCompletionAccept"),_e.O.get(e)?.insert(i.snippetInfo.snippet,{undoStopBefore:!1});else{const s=t.edits,n=Re(s).map((e=>$.L.fromPositions(e)));e.executeEdits("inlineSuggestion.accept",[...s.map((e=>q.k.replace(e.range,e.text))),...i.additionalTextEdits]),e.setSelections(n,"inlineCompletionAccept")}this.stop(),i.command&&(await this._commandService.executeCommand(i.command.id,...i.command.arguments||[]).then(void 0,Y.M_),i.source.removeRef())}async acceptNextWord(e){await this._acceptNext(e,((e,t)=>{const i=this.textModel.getLanguageIdAtPosition(e.lineNumber,e.column),s=this._languageConfigurationService.getLanguageConfiguration(i),n=new RegExp(s.wordDefinition.source,s.wordDefinition.flags.replace("g","")),r=t.match(n);let o=0;o=r&&void 0!==r.index?0===r.index?r[0].length:r.index:t.length;const a=/\s+/g.exec(t);return a&&void 0!==a.index&&a.index+a[0].length<o&&(o=a.index+a[0].length),o}),0)}async acceptNextLine(e){await this._acceptNext(e,((e,t)=>{const i=t.match(/\n/);return i&&void 0!==i.index?i.index+1:t.length}),1)}async _acceptNext(e,t,i){if(e.getModel()!==this.textModel)throw new Y.D7;const s=this.state.get();if(!s||s.primaryGhostText.isEmpty()||!s.inlineCompletion)return;const n=s.primaryGhostText,r=s.inlineCompletion.toInlineCompletion(void 0);if(r.snippetInfo||r.filterText!==r.insertText)return void await this.accept(e);const o=n.parts[0],a=new E.y(n.lineNumber,o.column),c=o.text,l=t(a,c);if(l===c.length&&1===n.parts.length)return void this.accept(e);const h=c.substring(0,l),d=this._positions.get(),u=d[0];r.source.addRef();try{this._isAcceptingPartially=!0;try{e.pushUndoStop();const t=x.Q.fromPositions(u,a),i=e.getModel().getValueInRange(t)+h,s=new Q.WR(t,i),n=[s,...we(this.textModel,d,s)],r=Re(n).map((e=>$.L.fromPositions(e)));e.executeEdits("inlineSuggestion.accept",n.map((e=>q.k.replace(e.range,e.text)))),e.setSelections(r,"inlineCompletionPartialAccept"),e.revealPositionInCenterIfOutsideViewport(e.getPosition(),1)}finally{this._isAcceptingPartially=!1}if(r.source.provider.handlePartialAccept){const t=x.Q.fromPositions(r.range.getStartPosition(),X.W.ofText(h).addToPosition(a)),s=e.getModel().getValueInRange(t,1);r.source.provider.handlePartialAccept(r.source.inlineCompletions,r.sourceInlineCompletion,s.length,{kind:i})}}finally{r.source.removeRef()}}handleSuggestAccepted(e){const t=se(e.toSingleTextEdit(),this.textModel),i=this._computeAugmentation(t,void 0);if(!i)return;const s=i.completion.inlineCompletion;s.source.provider.handlePartialAccept?.(s.source.inlineCompletions,s.sourceInlineCompletion,t.text.length,{kind:2})}};var ye;function we(e,t,i){if(1===t.length)return[];const s=t[0],n=t.slice(1),r=i.range.getStartPosition(),o=i.range.getEndPosition(),a=e.getValueInRange(x.Q.fromPositions(s,o)),c=(0,P.tN)(s,r);if(c.lineNumber<1)return(0,Y.dz)(new Y.D7(`positionWithinTextEdit line number should be bigger than 0.\n\t\t\tInvalid subtraction between ${s.toString()} and ${r.toString()}`)),[];const l=function(e,t){let i="";const s=(0,R.en)(e);for(let n=t.lineNumber-1;n<s.length;n++)i+=s[n].substring(n===t.lineNumber-1?t.column-1:0);return i}(i.text,c);return n.map((t=>{const i=(0,P.OA)((0,P.tN)(t,r),o),s=e.getValueInRange(x.Q.fromPositions(t,i)),n=(0,R.Qp)(a,s),c=x.Q.fromPositions(t,t.delta(0,n));return new Q.WR(c,l)}))}function Re(e){const t=G.t9.createSortPermutation(e,(0,G.VE)((e=>e.range),x.Q.compareRangesUsingStarts)),i=new Q.mF(t.apply(e)).getNewRanges();return t.inverse().apply(i).map((e=>e.getEndPosition()))}Se=Ee([be(9,Ce._Y),be(10,ve.d),be(11,J.JZ)],Se),function(e){e[e.Undo=0]="Undo",e[e.Redo=1]="Redo",e[e.AcceptWord=2]="AcceptWord",e[e.Other=3]="Other"}(ye||(ye={}));var Le=i(29319),Te=i(38280),xe=i(90870);class ke extends d.jG{get selectedItem(){return this._currentSuggestItemInfo}constructor(e,t,i){super(),this.editor=e,this.suggestControllerPreselector=t,this.onWillAccept=i,this.isSuggestWidgetVisible=!1,this.isShiftKeyPressed=!1,this._isActive=!1,this._currentSuggestItemInfo=void 0,this._onDidSelectedItemChange=this._register(new w.vl),this.onDidSelectedItemChange=this._onDidSelectedItemChange.event,this._register(e.onKeyDown((e=>{e.shiftKey&&!this.isShiftKeyPressed&&(this.isShiftKeyPressed=!0,this.update(this._isActive))}))),this._register(e.onKeyUp((e=>{e.shiftKey&&this.isShiftKeyPressed&&(this.isShiftKeyPressed=!1,this.update(this._isActive))})));const s=xe.D.get(this.editor);if(s){this._register(s.registerSelector({priority:100,select:(e,t,i)=>{const n=this.editor.getModel();if(!n)return-1;const r=this.suggestControllerPreselector(),o=r?se(r,n):void 0;if(!o)return-1;const a=E.y.lift(t),c=i.map(((e,t)=>{const i=se(Ae.fromSuggestion(s,n,a,e,this.isShiftKeyPressed).toSingleTextEdit(),n);return{index:t,valid:ne(o,i),prefixLength:i.text.length,suggestItem:e}})).filter((e=>e&&e.valid&&e.prefixLength>0)),l=(0,j.Cn)(c,(0,G.VE)((e=>e.prefixLength),G.U9));return l?l.index:-1}}));let e=!1;const t=()=>{e||(e=!0,this._register(s.widget.value.onDidShow((()=>{this.isSuggestWidgetVisible=!0,this.update(!0)}))),this._register(s.widget.value.onDidHide((()=>{this.isSuggestWidgetVisible=!1,this.update(!1)}))),this._register(s.widget.value.onDidFocus((()=>{this.isSuggestWidgetVisible=!0,this.update(!0)}))))};this._register(w.Jh.once(s.model.onDidTrigger)((e=>{t()}))),this._register(s.onWillInsertSuggestItem((e=>{const t=this.editor.getPosition(),i=this.editor.getModel();if(!t||!i)return;const n=Ae.fromSuggestion(s,i,t,e.item,this.isShiftKeyPressed);this.onWillAccept(n)})))}this.update(this._isActive)}update(e){const t=this.getSuggestItemInfo();this._isActive===e&&function(e,t){if(e===t)return!0;if(!e||!t)return!1;return e.equals(t)}(this._currentSuggestItemInfo,t)||(this._isActive=e,this._currentSuggestItemInfo=t,this._onDidSelectedItemChange.fire())}getSuggestItemInfo(){const e=xe.D.get(this.editor);if(!e||!this.isSuggestWidgetVisible)return;const t=e.widget.value.getFocusedItem(),i=this.editor.getPosition(),s=this.editor.getModel();return t&&i&&s?Ae.fromSuggestion(e,s,i,t.item,this.isShiftKeyPressed):void 0}stopForceRenderingAbove(){const e=xe.D.get(this.editor);e?.stopForceRenderingAbove()}forceRenderingAbove(){const e=xe.D.get(this.editor);e?.forceRenderingAbove()}}class Ae{static fromSuggestion(e,t,i,s,n){let{insertText:r}=s.completion,o=!1;if(4&s.completion.insertTextRules){const e=(new Le.fr).parse(r);e.children.length<100&&Te.O.adjustWhitespace(t,i,!0,e),r=e.toString(),o=!0}const a=e.getOverwriteInfo(s,n);return new Ae(x.Q.fromPositions(i.delta(0,-a.overwriteBefore),i.delta(0,Math.max(a.overwriteAfter,0))),r,s.completion.kind,o)}constructor(e,t,i,s){this.range=e,this.insertText=t,this.completionItemKind=i,this.isSnippetText=s}equals(e){return this.range.equalsRange(e.range)&&this.insertText===e.insertText&&this.completionItemKind===e.completionItemKind&&this.isSnippetText===e.isSnippetText}toSelectedSuggestionInfo(){return new Z.GE(this.range,this.insertText,this.completionItemKind,this.isSnippetText)}toSingleTextEdit(){return new Q.WR(this.range,this.insertText)}}var Ne,Ie=i(78209),Oe=i(253),De=i(87213),Me=i(84001),Pe=i(32848),Fe=i(98031),Ue=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},He=function(e,t){return function(i,s){t(i,s,e)}};let Be=class extends d.jG{static{Ne=this}static{this.ID="editor.contrib.inlineCompletionsController"}static get(e){return e.getContribution(Ne.ID)}constructor(e,t,i,s,n,o,a,u,b,S){super(),this.editor=e,this._instantiationService=t,this._contextKeyService=i,this._configurationService=s,this._commandService=n,this._debounceService=o,this._languageFeaturesService=a,this._accessibilitySignalService=u,this._keybindingService=b,this._accessibilityService=S,this._editorObs=(0,C.Ud)(this.editor),this._positions=(0,r.un)(this,(e=>this._editorObs.selections.read(e)?.map((e=>e.getEndPosition()))??[new E.y(1,1)])),this._suggestWidgetAdaptor=this._register(new ke(this.editor,(()=>(this._editorObs.forceUpdate(),this.model.get()?.selectedInlineCompletion.get()?.toSingleTextEdit(void 0))),(e=>this._editorObs.forceUpdate((t=>{this.model.get()?.handleSuggestAccepted(e)}))))),this._suggestWidgetSelectedItem=(0,r.y0)(this,(e=>this._suggestWidgetAdaptor.onDidSelectedItemChange((()=>{this._editorObs.forceUpdate((t=>e(void 0)))}))),(()=>this._suggestWidgetAdaptor.selectedItem)),this._enabledInConfig=(0,r.y0)(this,this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(62).enabled)),this._isScreenReaderEnabled=(0,r.y0)(this,this._accessibilityService.onDidChangeScreenReaderOptimized,(()=>this._accessibilityService.isScreenReaderOptimized())),this._editorDictationInProgress=(0,r.y0)(this,this._contextKeyService.onDidChangeContext,(()=>!0===this._contextKeyService.getContext(this.editor.getDomNode()).getValue("editorDictation.inProgress"))),this._enabled=(0,r.un)(this,(e=>this._enabledInConfig.read(e)&&(!this._isScreenReaderEnabled.read(e)||!this._editorDictationInProgress.read(e)))),this._debounceValue=this._debounceService.for(this._languageFeaturesService.inlineCompletionsProvider,"InlineCompletionsDebounce",{min:50,max:50}),this.model=(0,m.a0)(this,(e=>{if(this._editorObs.isReadonly.read(e))return;const t=this._editorObs.model.read(e);if(!t)return;return this._instantiationService.createInstance(Se,t,this._suggestWidgetSelectedItem,this._editorObs.versionId,this._positions,this._debounceValue,(0,r.y0)(this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(119).preview)),(0,r.y0)(this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(119).previewMode)),(0,r.y0)(this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(62).mode)),this._enabled)})).recomputeInitiallyAndOnChange(this._store),this._ghostTexts=(0,r.un)(this,(e=>{const t=this.model.read(e);return t?.ghostTexts.read(e)??[]})),this._stablizedGhostTexts=function(e,t){const i=(0,r.FY)("result",[]),s=[];return t.add((0,r.fm)((t=>{const n=e.read(t);(0,r.Rn)((e=>{if(n.length!==s.length){s.length=n.length;for(let e=0;e<s.length;e++)s[e]||(s[e]=(0,r.FY)("item",n[e]));i.set([...s],e)}s.forEach(((t,i)=>t.set(n[i],e)))}))}))),i}(this._ghostTexts,this._store),this._ghostTextWidgets=(0,f.Rl)(this,this._stablizedGhostTexts,((e,t)=>t.add(this._instantiationService.createInstance(B,this.editor,{ghostText:e,minReservedLineCount:(0,r.lk)(0),targetTextModel:this.model.map((e=>e?.textModel))})))).recomputeInitiallyAndOnChange(this._store),this._playAccessibilitySignal=(0,r.Yd)(this),this._fontFamily=(0,r.y0)(this,this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(62).fontFamily)),this._register(new l.p(this._contextKeyService,this.model)),this._register((0,C.jD)(this._editorObs.onDidType,((e,t)=>{this._enabled.get()&&this.model.get()?.trigger()}))),this._register(this._commandService.onDidExecuteCommand((t=>{new Set([v.Yh.Tab.id,v.Yh.DeleteLeft.id,v.Yh.DeleteRight.id,c.Wt,"acceptSelectedSuggestion"]).has(t.commandId)&&e.hasTextFocus()&&this._enabled.get()&&this._editorObs.forceUpdate((e=>{this.model.get()?.trigger(e)}))}))),this._register((0,C.jD)(this._editorObs.selections,((e,t)=>{t.some((e=>3===e.reason||"api"===e.source))&&this.model.get()?.stop()}))),this._register(this.editor.onDidBlurEditorWidget((()=>{this._contextKeyService.getContextKeyValue("accessibleViewIsShown")||this._configurationService.getValue("editor.inlineSuggest.keepOnBlur")||e.getOption(62).keepOnBlur||z.bo.dropDownVisible||(0,r.Rn)((e=>{this.model.get()?.stop(e)}))}))),this._register((0,r.fm)((e=>{const t=this.model.read(e)?.state.read(e);t?.suggestItem?t.primaryGhostText.lineCount>=2&&this._suggestWidgetAdaptor.forceRenderingAbove():this._suggestWidgetAdaptor.stopForceRenderingAbove()}))),this._register((0,d.s)((()=>{this._suggestWidgetAdaptor.stopForceRenderingAbove()})));const y=(0,f.ZX)(this,((e,t)=>{const i=this.model.read(e),s=i?.state.read(e);return this._suggestWidgetSelectedItem.get()?t:s?.inlineCompletion?.semanticId}));this._register((0,C.Qg)((0,r.un)((e=>(this._playAccessibilitySignal.read(e),y.read(e),{}))),(async(e,t,i)=>{const s=this.model.get(),n=s?.state.get();if(!n||!s)return;const o=s.textModel.getLineContent(n.primaryGhostText.lineNumber);await(0,g.wR)(50,(0,p.bs)(i)),await(0,r.oJ)(this._suggestWidgetSelectedItem,_.b0,(()=>!1),(0,p.bs)(i)),await this._accessibilitySignalService.playSignal(De.Rh.inlineSuggestion),this.editor.getOption(8)&&this._provideScreenReaderUpdate(n.primaryGhostText.renderForScreenReader(o))}))),this._register(new z.Pm(this.editor,this.model,this._instantiationService)),this._register(function(e){const t=new d.Cm,i=t.add((0,h.jh)());return t.add((0,r.fm)((t=>{i.setStyle(e.read(t))}))),t}((0,r.un)((e=>{const t=this._fontFamily.read(e);return""===t||"default"===t?"":`\n.monaco-editor .ghost-text-decoration,\n.monaco-editor .ghost-text-decoration-preview,\n.monaco-editor .ghost-text {\n\tfont-family: ${t};\n}`})))),this._register(this._configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration("accessibility.verbosity.inlineCompletions")&&this.editor.updateOptions({inlineCompletionsAccessibilityVerbose:this._configurationService.getValue("accessibility.verbosity.inlineCompletions")})}))),this.editor.updateOptions({inlineCompletionsAccessibilityVerbose:this._configurationService.getValue("accessibility.verbosity.inlineCompletions")})}playAccessibilitySignal(e){this._playAccessibilitySignal.trigger(e)}_provideScreenReaderUpdate(e){const t=this._contextKeyService.getContextKeyValue("accessibleViewIsShown"),i=this._keybindingService.lookupKeybinding("editor.action.accessibleView");let s;!t&&i&&this.editor.getOption(150)&&(s=(0,Ie.kg)("showAccessibleViewHint","Inspect this in the accessible view ({0})",i.getAriaLabel())),(0,u.xE)(s?e+", "+s:e)}shouldShowHoverAt(e){const t=this.model.get()?.primaryGhostText.get();return!!t&&t.parts.some((i=>e.containsPosition(new E.y(t.lineNumber,i.column))))}shouldShowHoverAtViewZone(e){return this._ghostTextWidgets.get()[0]?.ownsViewZone(e)??!1}};Be=Ne=Ue([He(1,Ce._Y),He(2,Pe.fN),He(3,Me.pG),He(4,ve.d),He(5,b.ILanguageFeatureDebounceService),He(6,S.ILanguageFeaturesService),He(7,De.Nt),He(8,Fe.b),He(9,Oe.j)],Be);var We=i(48116),Ve=i(27195);class ze extends s.ks{static{this.ID=c.PA}constructor(){super({id:ze.ID,label:Ie.kg("action.inlineSuggest.showNext","Show Next Inline Suggestion"),alias:"Show Next Inline Suggestion",precondition:Pe.M$.and(a.R.writable,l.p.inlineSuggestionVisible),kbOpts:{weight:100,primary:606}})}async run(e,t){const i=Be.get(t);i?.model.get()?.next()}}class Ge extends s.ks{static{this.ID=c.Vl}constructor(){super({id:Ge.ID,label:Ie.kg("action.inlineSuggest.showPrevious","Show Previous Inline Suggestion"),alias:"Show Previous Inline Suggestion",precondition:Pe.M$.and(a.R.writable,l.p.inlineSuggestionVisible),kbOpts:{weight:100,primary:604}})}async run(e,t){const i=Be.get(t);i?.model.get()?.previous()}}class je extends s.ks{constructor(){super({id:"editor.action.inlineSuggest.trigger",label:Ie.kg("action.inlineSuggest.trigger","Trigger Inline Suggestion"),alias:"Trigger Inline Suggestion",precondition:a.R.writable})}async run(e,t){const i=Be.get(t);await(0,o.fL)((async e=>{await(i?.model.get()?.triggerExplicitly(e)),i?.playAccessibilitySignal(e)}))}}class Ke extends s.ks{constructor(){super({id:"editor.action.inlineSuggest.acceptNextWord",label:Ie.kg("action.inlineSuggest.acceptNextWord","Accept Next Word Of Inline Suggestion"),alias:"Accept Next Word Of Inline Suggestion",precondition:Pe.M$.and(a.R.writable,l.p.inlineSuggestionVisible),kbOpts:{weight:101,primary:2065,kbExpr:Pe.M$.and(a.R.writable,l.p.inlineSuggestionVisible)},menuOpts:[{menuId:Ve.D8.InlineSuggestionToolbar,title:Ie.kg("acceptWord","Accept Word"),group:"primary",order:2}]})}async run(e,t){const i=Be.get(t);await(i?.model.get()?.acceptNextWord(i.editor))}}class Ye extends s.ks{constructor(){super({id:"editor.action.inlineSuggest.acceptNextLine",label:Ie.kg("action.inlineSuggest.acceptNextLine","Accept Next Line Of Inline Suggestion"),alias:"Accept Next Line Of Inline Suggestion",precondition:Pe.M$.and(a.R.writable,l.p.inlineSuggestionVisible),kbOpts:{weight:101},menuOpts:[{menuId:Ve.D8.InlineSuggestionToolbar,title:Ie.kg("acceptLine","Accept Line"),group:"secondary",order:2}]})}async run(e,t){const i=Be.get(t);await(i?.model.get()?.acceptNextLine(i.editor))}}class qe extends s.ks{constructor(){super({id:c.Wt,label:Ie.kg("action.inlineSuggest.accept","Accept Inline Suggestion"),alias:"Accept Inline Suggestion",precondition:l.p.inlineSuggestionVisible,menuOpts:[{menuId:Ve.D8.InlineSuggestionToolbar,title:Ie.kg("accept","Accept"),group:"primary",order:1}],kbOpts:{primary:2,weight:200,kbExpr:Pe.M$.and(l.p.inlineSuggestionVisible,a.R.tabMovesFocus.toNegated(),l.p.inlineSuggestionHasIndentationLessThanTabSize,We.ob.Visible.toNegated(),a.R.hoverFocused.toNegated())}})}async run(e,t){const i=Be.get(t);i&&(i.model.get()?.accept(i.editor),i.editor.focus())}}class $e extends s.ks{static{this.ID="editor.action.inlineSuggest.hide"}constructor(){super({id:$e.ID,label:Ie.kg("action.inlineSuggest.hide","Hide Inline Suggestion"),alias:"Hide Inline Suggestion",precondition:l.p.inlineSuggestionVisible,kbOpts:{weight:100,primary:9}})}async run(e,t){const i=Be.get(t);(0,r.Rn)((e=>{i?.model.get()?.stop(e)}))}}class Qe extends Ve.L{static{this.ID="editor.action.inlineSuggest.toggleAlwaysShowToolbar"}constructor(){super({id:Qe.ID,title:Ie.kg("action.inlineSuggest.alwaysShowToolbar","Always Show Toolbar"),f1:!1,precondition:void 0,menu:[{id:Ve.D8.InlineSuggestionToolbar,group:"secondary",order:10}],toggled:Pe.M$.equals("config.editor.inlineSuggest.showToolbar","always")})}async run(e,t){const i=e.get(Me.pG),s="always"===i.getValue("editor.inlineSuggest.showToolbar")?"onHover":"always";i.updateValue("editor.inlineSuggest.showToolbar",s)}}var Xe=i(16980),Ze=i(20492),Je=i(49099),et=i(90651),tt=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},it=function(e,t){return function(i,s){t(i,s,e)}};class st{constructor(e,t,i){this.owner=e,this.range=t,this.controller=i}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let nt=class{constructor(e,t,i,s,n,r){this._editor=e,this._languageService=t,this._openerService=i,this.accessibilityService=s,this._instantiationService=n,this._telemetryService=r,this.hoverOrdinal=4}suggestHoverAnchor(e){const t=Be.get(this._editor);if(!t)return null;const i=e.target;if(8===i.type){const s=i.detail;if(t.shouldShowHoverAtViewZone(s.viewZoneId))return new n.mm(1e3,this,x.Q.fromPositions(this._editor.getModel().validatePosition(s.positionBefore||s.position)),e.event.posx,e.event.posy,!1)}if(7===i.type&&t.shouldShowHoverAt(i.range))return new n.mm(1e3,this,i.range,e.event.posx,e.event.posy,!1);if(6===i.type){if(i.detail.mightBeForeignElement&&t.shouldShowHoverAt(i.range))return new n.mm(1e3,this,i.range,e.event.posx,e.event.posy,!1)}return null}computeSync(e,t){if("onHover"!==this._editor.getOption(62).showToolbar)return[];const i=Be.get(this._editor);return i&&i.shouldShowHoverAt(e.range)?[new st(this,e.range,i)]:[]}renderHoverParts(e,t){const i=new d.Cm,s=t[0];this._telemetryService.publicLog2("inlineCompletionHover.shown"),this.accessibilityService.isScreenReaderOptimized()&&!this._editor.getOption(8)&&i.add(this.renderScreenReaderText(e,s));const o=s.controller.model.get(),a=this._instantiationService.createInstance(z.bo,this._editor,!1,(0,r.lk)(null),o.selectedInlineCompletionIndex,o.inlineCompletionsCount,o.activeCommands),c=a.getDomNode();e.fragment.appendChild(c),o.triggerExplicitly(),i.add(a);const l={hoverPart:s,hoverElement:c,dispose(){i.dispose()}};return new n.Ke([l])}renderScreenReaderText(e,t){const i=new d.Cm,s=h.$,n=s("div.hover-row.markdown-hover"),o=h.BC(n,s("div.hover-contents",{"aria-live":"assertive"})),a=i.add(new Ze.T({editor:this._editor},this._languageService,this._openerService));return i.add((0,r.fm)((s=>{const n=t.controller.model.read(s)?.primaryGhostText.read(s);if(n){const t=this._editor.getModel().getLineContent(n.lineNumber);(t=>{i.add(a.onDidRenderAsync((()=>{o.className="hover-contents code-hover-contents",e.onContentsChanged()})));const s=Ie.kg("inlineSuggestionFollows","Suggestion:"),n=i.add(a.render((new Xe.Bc).appendText(s).appendCodeblock("text",t)));o.replaceChildren(n.element)})(n.renderForScreenReader(t))}else h.Ln(o)}))),e.fragment.appendChild(n),i}};nt=tt([it(1,A.L),it(2,Je.C),it(3,Oe.j),it(4,Ce._Y),it(5,et.k)],nt);var rt=i(96282);(0,s.HW)(Be.ID,Be,3),(0,s.Fl)(je),(0,s.Fl)(ze),(0,s.Fl)(Ge),(0,s.Fl)(Ke),(0,s.Fl)(Ye),(0,s.Fl)(qe),(0,s.Fl)($e),(0,Ve.ug)(Qe),n.B2.register(nt),rt.Z.register(new class{})},92674:(e,t,i)=>{"use strict";i.d(t,{AL:()=>d,Vs:()=>h,x9:()=>u,xD:()=>c,yP:()=>l});var s=i(25890),n=i(91508),r=i(83069),o=i(36677),a=i(75295);class c{constructor(e,t){this.lineNumber=e,this.parts=t}equals(e){return this.lineNumber===e.lineNumber&&this.parts.length===e.parts.length&&this.parts.every(((t,i)=>t.equals(e.parts[i])))}renderForScreenReader(e){if(0===this.parts.length)return"";const t=this.parts[this.parts.length-1],i=e.substr(0,t.column-1);return new a.mF([...this.parts.map((e=>new a.WR(o.Q.fromPositions(new r.y(1,e.column)),e.lines.join("\n"))))]).applyToString(i).substring(this.parts[0].column-1)}isEmpty(){return this.parts.every((e=>0===e.lines.length))}get lineCount(){return 1+this.parts.reduce(((e,t)=>e+t.lines.length-1),0)}}class l{constructor(e,t,i){this.column=e,this.text=t,this.preview=i,this.lines=(0,n.uz)(this.text)}equals(e){return this.column===e.column&&this.lines.length===e.lines.length&&this.lines.every(((t,i)=>t===e.lines[i]))}}class h{constructor(e,t,i,s=0){this.lineNumber=e,this.columnRange=t,this.text=i,this.additionalReservedLineCount=s,this.parts=[new l(this.columnRange.endColumnExclusive,this.text,!1)],this.newLines=(0,n.uz)(this.text)}renderForScreenReader(e){return this.newLines.join("\n")}get lineCount(){return this.newLines.length}isEmpty(){return this.parts.every((e=>0===e.lines.length))}equals(e){return this.lineNumber===e.lineNumber&&this.columnRange.equals(e.columnRange)&&this.newLines.length===e.newLines.length&&this.newLines.every(((t,i)=>t===e.newLines[i]))&&this.additionalReservedLineCount===e.additionalReservedLineCount}}function d(e,t){return(0,s.aI)(e,t,u)}function u(e,t){return e===t||!(!e||!t)&&((e instanceof c&&t instanceof c||e instanceof h&&t instanceof h)&&e.equals(t))}},20940:(e,t,i)=>{"use strict";i.d(t,{Yk:()=>C});var s=i(66782),n=i(90766),r=i(18447),o=i(74320),a=i(64383),c=i(83069),l=i(36677),h=i(93630),d=i(19131),u=i(19562),g=i(32956),p=i(51934);class m{constructor(e){this.lines=e,this.tokenization={getLineTokens:e=>this.lines[e-1]}}getLineCount(){return this.lines.length}getLineLength(e){return this.lines[e-1].getLineContent().length}}var f=i(75295),_=i(73401),v=i(29319);async function C(e,t,i,s,h=r.XO.None,d){const u=t instanceof c.y?function(e,t){const i=t.getWordAtPosition(e),s=t.getLineMaxColumn(e.lineNumber);return i?new l.Q(e.lineNumber,i.startColumn,e.lineNumber,s):l.Q.fromPositions(e,e.with(void 0,s))}(t,i):t,g=e.all(i),p=new o.db;for(const n of g)n.groupId&&p.add(n.groupId,n);function m(e){if(!e.yieldsToGroupIds)return[];const t=[];for(const i of e.yieldsToGroupIds||[]){const e=p.get(i);for(const i of e)t.push(i)}return t}const f=new Map,_=new Set;function v(e,t){if(t=[...t,e],_.has(e))return t;_.add(e);try{const i=m(e);for(const e of i){const i=v(e,t);if(i)return i}}finally{_.delete(e)}}function C(e){const r=f.get(e);if(r)return r;const o=v(e,[]);o&&(0,a.M_)(new Error(`Inline completions: cyclic yield-to dependency detected. Path: ${o.map((e=>e.toString?e.toString():""+e)).join(" -> ")}`));const l=new n.Zv;return f.set(e,l.p),(async()=>{if(!o){const t=m(e);for(const e of t){const t=await C(e);if(t&&t.items.length>0)return}}try{if(t instanceof c.y){return await e.provideInlineCompletions(i,t,s,h)}return await(e.provideInlineEdits?.(i,t,s,h))}catch(n){return void(0,a.M_)(n)}})().then((e=>l.complete(e)),(e=>l.error(e))),l.p}const y=await Promise.all(g.map((async e=>({provider:e,completions:await C(e)})))),w=new Map,R=[];for(const n of y){const e=n.completions;if(!e)continue;const t=new b(e,n.provider);R.push(t);for(const s of e.items){const e=S.from(s,t,u,i,d);w.set(e.hash(),e)}}return new E(Array.from(w.values()),new Set(w.keys()),R)}class E{constructor(e,t,i){this.completions=e,this.hashs=t,this.providerResults=i}has(e){return this.hashs.has(e.hash())}dispose(){for(const e of this.providerResults)e.removeRef()}}class b{constructor(e,t){this.inlineCompletions=e,this.provider=t,this.refCount=1}addRef(){this.refCount++}removeRef(){this.refCount--,0===this.refCount&&this.provider.freeInlineCompletions(this.inlineCompletions)}}class S{static from(e,t,i,n,r){let o,a,c=e.range?l.Q.lift(e.range):i;if("string"===typeof e.insertText){if(o=e.insertText,r&&e.completeBracketPairs){o=y(o,c.getStartPosition(),n,r);const t=o.length-e.insertText.length;0!==t&&(c=new l.Q(c.startLineNumber,c.startColumn,c.endLineNumber,c.endColumn+t))}a=void 0}else if("snippet"in e.insertText){const t=e.insertText.snippet.length;if(r&&e.completeBracketPairs){e.insertText.snippet=y(e.insertText.snippet,c.getStartPosition(),n,r);const i=e.insertText.snippet.length-t;0!==i&&(c=new l.Q(c.startLineNumber,c.startColumn,c.endLineNumber,c.endColumn+i))}const i=(new v.fr).parse(e.insertText.snippet);1===i.children.length&&i.children[0]instanceof v.EY?(o=i.children[0].value,a=void 0):(o=i.toString(),a={snippet:e.insertText.snippet,range:c})}else(0,s.xb)(e.insertText);return new S(o,e.command,c,o,a,e.additionalTextEdits||(0,_.zk)(),e,t)}constructor(e,t,i,s,n,r,o,a){this.filterText=e,this.command=t,this.range=i,this.insertText=s,this.snippetInfo=n,this.additionalTextEdits=r,this.sourceInlineCompletion=o,this.source=a,s=(e=e.replace(/\r\n|\r/g,"\n")).replace(/\r\n|\r/g,"\n")}withRange(e){return new S(this.filterText,this.command,e,this.insertText,this.snippetInfo,this.additionalTextEdits,this.sourceInlineCompletion,this.source)}hash(){return JSON.stringify({insertText:this.insertText,range:this.range.toString()})}toSingleTextEdit(){return new f.WR(this.range,this.insertText)}}function y(e,t,i,s){const n=i.getLineContent(t.lineNumber).substring(0,t.column-1)+e,r=i.tokenization.tokenizeLineWithEdit(t,n.length-(t.column-1),e),o=r?.sliceAndInflate(t.column-1,n.length,0);if(!o)return e;const a=function(e,t){const i=new g.Mg,s=new h.Z(i,(e=>t.getLanguageConfiguration(e))),n=new p.tk(new m([e]),s),r=(0,u.T)(n,[],void 0,!0);let o="";const a=e.getLineContent();return function e(t,i){if(2===t.kind)if(e(t.openingBracket,i),i=(0,d.QB)(i,t.openingBracket.length),t.child&&(e(t.child,i),i=(0,d.QB)(i,t.child.length)),t.closingBracket)e(t.closingBracket,i),i=(0,d.QB)(i,t.closingBracket.length);else{const e=s.getSingleLanguageBracketTokens(t.openingBracket.languageId).findClosingTokenText(t.openingBracket.bracketIds);o+=e}else if(3===t.kind);else if(0===t.kind||1===t.kind)o+=a.substring((0,d.sS)(i),(0,d.sS)((0,d.QB)(i,t.length)));else if(4===t.kind)for(const s of t.children)e(s,i),i=(0,d.QB)(i,s.length)}(r,d.Vp),o}(o,s);return a}},73401:(e,t,i)=>{"use strict";i.d(t,{GM:()=>h,OA:()=>u,pY:()=>d,tN:()=>g,zk:()=>l});var s=i(64383),n=i(5662),r=i(31308),o=i(83069),a=i(36677);const c=[];function l(){return c}class h{constructor(e,t){if(this.startColumn=e,this.endColumnExclusive=t,e>t)throw new s.D7(`startColumn ${e} cannot be after endColumnExclusive ${t}`)}toRange(e){return new a.Q(e,this.startColumn,e,this.endColumnExclusive)}equals(e){return this.startColumn===e.startColumn&&this.endColumnExclusive===e.endColumnExclusive}}function d(e,t){const i=new n.Cm,s=e.createDecorationsCollection();return i.add((0,r.zL)({debugName:()=>`Apply decorations from ${t.debugName}`},(e=>{const i=t.read(e);s.set(i)}))),i.add({dispose:()=>{s.clear()}}),i}function u(e,t){return new o.y(e.lineNumber+t.lineNumber-1,1===t.lineNumber?e.column+t.column-1:t.column)}function g(e,t){return new o.y(e.lineNumber-t.lineNumber+1,e.lineNumber-t.lineNumber===0?e.column-t.column+1:e.column)}},58145:(e,t,i)=>{"use strict";var s=i(31450),n=i(60002);var r=i(5662),o=i(31308),a=i(7085),c=i(83069),l=i(36677),h=i(10154),d=i(16223),u=i(25521),g=i(73401),p=i(10691),m=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},f=function(e,t){return function(i,s){t(i,s,e)}};const _="inline-edit";let v=class extends r.jG{constructor(e,t,i){super(),this.editor=e,this.model=t,this.languageService=i,this.isDisposed=(0,o.FY)(this,!1),this.currentTextModel=(0,o.y0)(this,this.editor.onDidChangeModel,(()=>this.editor.getModel())),this.uiState=(0,o.un)(this,(e=>{if(this.isDisposed.read(e))return;const t=this.currentTextModel.read(e);if(t!==this.model.targetTextModel.read(e))return;const i=this.model.ghostText.read(e);if(!i)return;let s=this.model.range?.read(e);s&&s.startLineNumber===s.endLineNumber&&s.startColumn===s.endColumn&&(s=void 0);const n=(!s||s.startLineNumber===s.endLineNumber)&&1===i.parts.length&&1===i.parts[0].lines.length,r=1===i.parts.length&&i.parts[0].lines.every((e=>0===e.length)),o=[],a=[];function c(e,t){if(a.length>0){const i=a[a.length-1];t&&i.decorations.push(new u.d(i.content.length+1,i.content.length+1+e[0].length,t,0)),i.content+=e[0],e=e.slice(1)}for(const i of e)a.push({content:i,decorations:t?[new u.d(1,i.length+1,t,0)]:[]})}const l=t.getLineContent(i.lineNumber);let h,d=0;if(!r&&(n||!s)){for(const e of i.parts){let t=e.lines;s&&!n&&(c(t,_),t=[]),void 0===h?(o.push({column:e.column,text:t[0],preview:e.preview}),t=t.slice(1)):c([l.substring(d,e.column-1)],void 0),t.length>0&&(c(t,_),void 0===h&&e.column<=l.length&&(h=e.column)),d=e.column-1}void 0!==h&&c([l.substring(d)],void 0)}const p=void 0!==h?new g.GM(h,l.length+1):void 0,m=n||!s?i.lineNumber:s.endLineNumber-1;return{inlineTexts:o,additionalLines:a,hiddenRange:p,lineNumber:m,additionalReservedLineCount:this.model.minReservedLineCount.read(e),targetTextModel:t,range:s,isSingleLine:n,isPureRemove:r}})),this.decorations=(0,o.un)(this,(e=>{const t=this.uiState.read(e);if(!t)return[];const i=[];if(t.hiddenRange&&i.push({range:t.hiddenRange.toRange(t.lineNumber),options:{inlineClassName:"inline-edit-hidden",description:"inline-edit-hidden"}}),t.range){const e=[];if(t.isSingleLine)e.push(t.range);else if(!t.isPureRemove){const i=t.range.endLineNumber-t.range.startLineNumber;for(let s=0;s<i;s++){const i=t.range.startLineNumber+s,n=t.targetTextModel.getLineFirstNonWhitespaceColumn(i),r=t.targetTextModel.getLineLastNonWhitespaceColumn(i),o=new l.Q(i,n,i,r);e.push(o)}}for(const t of e)i.push({range:t,options:p.Zb})}if(t.range&&!t.isSingleLine&&t.isPureRemove){const e=new l.Q(t.range.startLineNumber,1,t.range.endLineNumber-1,1);i.push({range:e,options:p.Ob})}for(const s of t.inlineTexts)i.push({range:l.Q.fromPositions(new c.y(t.lineNumber,s.column)),options:{description:_,after:{content:s.text,inlineClassName:s.preview?"inline-edit-decoration-preview":"inline-edit-decoration",cursorStops:d.VW.Left},showIfCollapsed:!0}});return i})),this._register((0,r.s)((()=>{this.isDisposed.set(!0,void 0)}))),this._register((0,g.pY)(this.editor,this.decorations))}};v=m([f(2,h.L)],v);var C,E=i(32848),b=i(63591),S=i(62083),y=i(56942),w=i(18447),R=i(92674),L=i(50091),T=i(8597),x=i(47625),k=i(36921),A=i(25890),N=i(98067),I=i(57629),O=i(65644),D=i(27195),M=i(47508),P=i(98031),F=i(90651),U=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},H=function(e,t){return function(i,s){t(i,s,e)}};let B=class extends r.jG{constructor(e,t,i){super(),this.editor=e,this.model=t,this.instantiationService=i,this.alwaysShowToolbar=(0,o.y0)(this,this.editor.onDidChangeConfiguration,(()=>"always"===this.editor.getOption(63).showToolbar)),this.sessionPosition=void 0,this.position=(0,o.un)(this,(e=>{const t=this.model.read(e)?.model.ghostText.read(e);if(!this.alwaysShowToolbar.read(e)||!t||0===t.parts.length)return this.sessionPosition=void 0,null;const i=t.parts[0].column;this.sessionPosition&&this.sessionPosition.lineNumber!==t.lineNumber&&(this.sessionPosition=void 0);const s=new c.y(t.lineNumber,Math.min(i,this.sessionPosition?.column??Number.MAX_SAFE_INTEGER));return this.sessionPosition=s,s})),this._register((0,o.yC)(((t,i)=>{if(!this.model.read(t)||!this.alwaysShowToolbar.read(t))return;const s=i.add(this.instantiationService.createInstance(W,this.editor,!0,this.position));e.addContentWidget(s),i.add((0,r.s)((()=>e.removeContentWidget(s))))})))}};B=U([H(2,b._Y)],B);let W=class extends r.jG{static{C=this}static{this._dropDownVisible=!1}static{this.id=0}constructor(e,t,i,s,n,r){super(),this.editor=e,this.withBorder=t,this._position=i,this._contextKeyService=n,this._menuService=r,this.id="InlineEditHintsContentWidget"+C.id++,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.nodes=(0,T.h)("div.inlineEditHints",{className:this.withBorder?".withBorder":""},[(0,T.h)("div@toolBar")]),this.inlineCompletionsActionsMenus=this._register(this._menuService.createMenu(D.D8.InlineEditActions,this._contextKeyService)),this.toolBar=this._register(s.createInstance(z,this.nodes.toolBar,this.editor,D.D8.InlineEditToolbar,{menuOptions:{renderShortTitle:!0},toolbarOptions:{primaryGroup:e=>e.startsWith("primary")},actionViewItemProvider:(e,t)=>{if(e instanceof D.Xe)return s.createInstance(V,e,void 0)},telemetrySource:"InlineEditToolbar"})),this._register(this.toolBar.onDidChangeDropdownVisibility((e=>{C._dropDownVisible=e}))),this._register((0,o.fm)((e=>{this._position.read(e),this.editor.layoutContentWidget(this)}))),this._register((0,o.fm)((e=>{const t=[];for(const[i,s]of this.inlineCompletionsActionsMenus.getActions())for(const e of s)e instanceof D.Xe&&t.push(e);t.length>0&&t.unshift(new k.wv),this.toolBar.setAdditionalSecondaryActions(t)})))}getId(){return this.id}getDomNode(){return this.nodes.root}getPosition(){return{position:this._position.get(),preference:[1,2],positionAffinity:3}}};W=C=U([H(3,b._Y),H(4,E.fN),H(5,D.ez)],W);class V extends I.oq{updateLabel(){const e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();if(this.label){const t=(0,T.h)("div.keybinding").root;this._register(new x.x(t,N.OS,{disableTitle:!0,...x.l})).set(e),this.label.textContent=this._action.label,this.label.appendChild(t),this.label.classList.add("inlineEditStatusBarItemLabel")}}updateTooltip(){}}let z=class extends O.p{constructor(e,t,i,s,n,r,o,a,c,l){super(e,{resetMenu:i,...s},n,r,o,a,c,l),this.editor=t,this.menuId=i,this.options2=s,this.menuService=n,this.contextKeyService=r,this.menu=this._store.add(this.menuService.createMenu(this.menuId,this.contextKeyService,{emitEventsForSubmenuChanges:!0})),this.additionalActions=[],this.prependedPrimaryActions=[],this._store.add(this.menu.onDidChange((()=>this.updateToolbar()))),this._store.add(this.editor.onDidChangeCursorPosition((()=>this.updateToolbar()))),this.updateToolbar()}updateToolbar(){const e=[],t=[];(0,I.Ot)(this.menu,this.options2?.menuOptions,{primary:e,secondary:t},this.options2?.toolbarOptions?.primaryGroup,this.options2?.toolbarOptions?.shouldInlineSubmenu,this.options2?.toolbarOptions?.useSeparatorsInPrimaryActions),t.push(...this.additionalActions),e.unshift(...this.prependedPrimaryActions),this.setActions(e,t)}setAdditionalSecondaryActions(e){(0,A.aI)(this.additionalActions,e,((e,t)=>e===t))||(this.additionalActions=e,this.updateToolbar())}};z=U([H(4,D.ez),H(5,E.fN),H(6,M.Z),H(7,P.b),H(8,L.d),H(9,F.k)],z);var G,j,K=i(84001),Y=i(64383),q=i(87958),$=i(79400),Q=i(38844),X=i(29163),Z=i(94746),J=i(83941),ee=i(87289),te=i(23750),ie=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},se=function(e,t){return function(i,s){t(i,s,e)}};function ne(e){const t=e[0].match(/^\s*/)?.[0]??"",i=t.length;return{text:e.map((e=>e.replace(new RegExp("^"+t),""))),shift:i}}let re=class extends r.jG{static{G=this}static{this._modelId=0}static _createUniqueUri(){return $.r.from({scheme:"inline-edit-widget",path:(new Date).toString()+String(G._modelId++)})}constructor(e,t,i,s,n){super(),this._editor=e,this._model=t,this._instantiationService=i,this._diffProviderFactoryService=s,this._modelService=n,this._position=(0,o.un)(this,(e=>{const t=this._model.read(e);if(!t||0===t.text.length)return null;if(t.range.startLineNumber===t.range.endLineNumber&&(t.range.startColumn!==t.range.endColumn||1!==t.range.startColumn))return null;const i=this._editor.getModel();if(!i)return null;const s=Array.from(function*(e,t,i=1){void 0===t&&([t,e]=[e,0]);for(let s=e;s<t;s+=i)yield s}(t.range.startLineNumber,t.range.endLineNumber+1)),n=s.map((e=>i.getLineLastNonWhitespaceColumn(e))),r=Math.max(...n),o=s[n.indexOf(r)],a=new c.y(o,r);return{top:t.range.startLineNumber,left:a}})),this._text=(0,o.un)(this,(e=>{const t=this._model.read(e);if(!t)return{text:"",shift:0};const i=ne(t.text.split("\n"));return{text:i.text.join("\n"),shift:i.shift}})),this._originalModel=(0,q.a0)((()=>this._modelService.createModel("",null,G._createUniqueUri()))).keepObserved(this._store),this._modifiedModel=(0,q.a0)((()=>this._modelService.createModel("",null,G._createUniqueUri()))).keepObserved(this._store),this._diff=(0,o.un)(this,(e=>this._diffPromise.read(e)?.promiseResult.read(e)?.data)),this._diffPromise=(0,o.un)(this,(e=>{const t=this._model.read(e);if(!t)return;const i=this._editor.getModel();if(!i)return;const s=ne(i.getValueInRange(t.range).split("\n")).text.join("\n"),n=ne(t.text.split("\n")).text.join("\n");this._originalModel.get().setValue(s),this._modifiedModel.get().setValue(n);const r=this._diffProviderFactoryService.createDiffProvider({diffAlgorithm:"advanced"});return o.BK.fromFn((async()=>{const e=await r.computeDiff(this._originalModel.get(),this._modifiedModel.get(),{computeMoves:!1,ignoreTrimWhitespace:!1,maxComputationTimeMs:1e3},w.XO.None);if(!e.identical)return e.changes}))})),this._register((0,o.yC)(((t,i)=>{if(!this._model.read(t))return;if(null===this._position.get())return;const s=i.add(this._instantiationService.createInstance(oe,this._editor,this._position,this._text.map((e=>e.text)),this._text.map((e=>e.shift)),this._diff));e.addOverlayWidget(s),i.add((0,r.s)((()=>e.removeOverlayWidget(s))))})))}};re=G=ie([se(2,b._Y),se(3,Z.Hg),se(4,te.IModelService)],re);let oe=class extends r.jG{static{j=this}static{this.id=0}constructor(e,t,i,s,n,r){super(),this._editor=e,this._position=t,this._text=i,this._shift=s,this._diff=n,this._instantiationService=r,this.id="InlineEditSideBySideContentWidget"+j.id++,this.allowEditorOverflow=!1,this._nodes=(0,T.$)("div.inlineEditSideBySide",void 0),this._scrollChanged=(0,o.yQ)("editor.onDidScrollChange",this._editor.onDidScrollChange),this._previewEditor=this._register(this._instantiationService.createInstance(X.t,this._nodes,{glyphMargin:!1,lineNumbers:"off",minimap:{enabled:!1},guides:{indentation:!1,bracketPairs:!1,bracketPairsHorizontal:!1,highlightActiveIndentation:!1},folding:!1,selectOnLineNumbers:!1,selectionHighlight:!1,columnSelection:!1,overviewRulerBorder:!1,overviewRulerLanes:0,lineDecorationsWidth:0,lineNumbersMinChars:0,scrollbar:{vertical:"hidden",horizontal:"hidden",alwaysConsumeMouseWheel:!1,handleMouseWheel:!1},readOnly:!0,wordWrap:"off",wordWrapOverride1:"off",wordWrapOverride2:"off",wrappingIndent:"none",wrappingStrategy:void 0},{contributions:[],isSimpleWidget:!0},this._editor)),this._previewEditorObs=(0,Q.Ud)(this._previewEditor),this._editorObs=(0,Q.Ud)(this._editor),this._previewTextModel=this._register(this._instantiationService.createInstance(ee.Bz,"",this._editor.getModel()?.getLanguageId()??J.vH,ee.Bz.DEFAULT_CREATION_OPTIONS,null)),this._setText=(0,o.un)((e=>{const t=this._text.read(e);t&&this._previewTextModel.setValue(t)})).recomputeInitiallyAndOnChange(this._store),this._decorations=(0,o.un)(this,(e=>{this._setText.read(e);const t=this._position.read(e);if(!t)return{org:[],mod:[]};const i=this._diff.read(e);if(!i)return{org:[],mod:[]};const s=[],n=[];if(1===i.length&&i[0].innerChanges[0].modifiedRange.equalsRange(this._previewTextModel.getFullModelRange()))return{org:[],mod:[]};const r=this._shift.get(),o=e=>new l.Q(e.startLineNumber+t.top-1,e.startColumn+r,e.endLineNumber+t.top-1,e.endColumn+r);for(const a of i)if(a.original.isEmpty||s.push({range:o(a.original.toInclusiveRange()),options:p.Ob}),a.modified.isEmpty||n.push({range:a.modified.toInclusiveRange(),options:p.Kl}),a.modified.isEmpty||a.original.isEmpty)a.original.isEmpty||s.push({range:o(a.original.toInclusiveRange()),options:p.KL}),a.modified.isEmpty||n.push({range:a.modified.toInclusiveRange(),options:p.Ou});else for(const e of a.innerChanges||[])a.original.contains(e.originalRange.startLineNumber)&&s.push({range:o(e.originalRange),options:e.originalRange.isEmpty()?p.wp:p.Zb}),a.modified.contains(e.modifiedRange.startLineNumber)&&n.push({range:e.modifiedRange,options:e.modifiedRange.isEmpty()?p.GM:p.bk});return{org:s,mod:n}})),this._originalDecorations=(0,o.un)(this,(e=>this._decorations.read(e).org)),this._modifiedDecorations=(0,o.un)(this,(e=>this._decorations.read(e).mod)),this._previewEditor.setModel(this._previewTextModel),this._register(this._editorObs.setDecorations(this._originalDecorations)),this._register(this._previewEditorObs.setDecorations(this._modifiedDecorations)),this._register((0,o.fm)((e=>{const t=this._previewEditorObs.contentWidth.read(e),i=this._text.read(e).split("\n").length-1,s=this._editor.getOption(67)*i;t<=0||this._previewEditor.layout({height:s,width:t})}))),this._register((0,o.fm)((e=>{this._position.read(e),this._editor.layoutOverlayWidget(this)}))),this._register((0,o.fm)((e=>{this._scrollChanged.read(e);this._position.read(e)&&this._editor.layoutOverlayWidget(this)})))}getId(){return this.id}getDomNode(){return this._nodes}getPosition(){const e=this._position.get();if(!e)return null;const t=this._editor.getLayoutInfo(),i=this._editor.getScrolledVisiblePosition(new c.y(e.top,1));if(!i)return null;const s=i.top-1,n=this._editor.getOffsetForColumn(e.left.lineNumber,e.left.column);return{preference:{left:t.contentLeft+n+10,top:s}}}};oe=j=ie([se(5,b._Y)],oe);var ae,ce=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},le=function(e,t){return function(i,s){t(i,s,e)}};let he=class extends r.jG{static{ae=this}static{this.ID="editor.contrib.inlineEditController"}static{this.inlineEditVisibleKey="inlineEditVisible"}static{this.inlineEditVisibleContext=new E.N1(this.inlineEditVisibleKey,!1)}static{this.cursorAtInlineEditKey="cursorAtInlineEdit"}static{this.cursorAtInlineEditContext=new E.N1(this.cursorAtInlineEditKey,!1)}static get(e){return e.getContribution(ae.ID)}constructor(e,t,i,s,n,r,a,c){super(),this.editor=e,this.instantiationService=t,this.contextKeyService=i,this.languageFeaturesService=s,this._commandService=n,this._configurationService=r,this._diffProviderFactoryService=a,this._modelService=c,this._isVisibleContext=ae.inlineEditVisibleContext.bindTo(this.contextKeyService),this._isCursorAtInlineEditContext=ae.cursorAtInlineEditContext.bindTo(this.contextKeyService),this._currentEdit=(0,o.FY)(this,void 0),this._currentWidget=(0,q.a0)(this._currentEdit,(e=>{const t=this._currentEdit.read(e);if(!t)return;const i=t.range.endLineNumber,s=t.range.endColumn,n=!t.text.endsWith("\n")||t.range.startLineNumber===t.range.endLineNumber&&t.range.startColumn===t.range.endColumn?t.text:t.text.slice(0,-1),r=new R.xD(i,[new R.yP(s,n,!1)]),a=t.range.startLineNumber===t.range.endLineNumber&&1===r.parts.length&&1===r.parts[0].lines.length,c=""===t.text;if(!a&&!c)return;return this.instantiationService.createInstance(v,this.editor,{ghostText:(0,o.lk)(r),minReservedLineCount:(0,o.lk)(0),targetTextModel:(0,o.lk)(this.editor.getModel()??void 0),range:(0,o.lk)(t.range)})})),this._isAccepting=(0,o.FY)(this,!1),this._enabled=(0,o.y0)(this,this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(63).enabled)),this._fontFamily=(0,o.y0)(this,this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(63).fontFamily));const l=(0,o.yQ)("InlineEditController.modelContentChangedSignal",e.onDidChangeModelContent);this._register((0,o.fm)((t=>{this._enabled.read(t)&&(l.read(t),this._isAccepting.read(t)||this.getInlineEdit(e,!0))})));const h=(0,o.y0)(this,e.onDidChangeCursorPosition,(()=>e.getPosition()));this._register((0,o.fm)((e=>{if(!this._enabled.read(e))return;const t=h.read(e);t&&this.checkCursorPosition(t)}))),this._register((0,o.fm)((t=>{const i=this._currentEdit.read(t);if(this._isCursorAtInlineEditContext.set(!1),!i)return void this._isVisibleContext.set(!1);this._isVisibleContext.set(!0);const s=e.getPosition();s&&this.checkCursorPosition(s)})));const d=(0,o.yQ)("InlineEditController.editorBlurSignal",e.onDidBlurEditorWidget);this._register((0,o.fm)((async t=>{this._enabled.read(t)&&(d.read(t),this._configurationService.getValue("editor.experimentalInlineEdit.keepOnBlur")||e.getOption(63).keepOnBlur||(this._currentRequestCts?.dispose(!0),this._currentRequestCts=void 0,await this.clear(!1)))})));const u=(0,o.yQ)("InlineEditController.editorFocusSignal",e.onDidFocusEditorText);this._register((0,o.fm)((t=>{this._enabled.read(t)&&(u.read(t),this.getInlineEdit(e,!0))})));const g=this._register((0,T.jh)());this._register((0,o.fm)((e=>{const t=this._fontFamily.read(e);g.setStyle(""===t||"default"===t?"":`\n.monaco-editor .inline-edit-decoration,\n.monaco-editor .inline-edit-decoration-preview,\n.monaco-editor .inline-edit {\n\tfont-family: ${t};\n}`)}))),this._register(new B(this.editor,this._currentWidget,this.instantiationService)),this._register(new re(this.editor,this._currentEdit,this.instantiationService,this._diffProviderFactoryService,this._modelService))}checkCursorPosition(e){if(!this._currentEdit)return void this._isCursorAtInlineEditContext.set(!1);const t=this._currentEdit.get();t?this._isCursorAtInlineEditContext.set(l.Q.containsPosition(t.range,e)):this._isCursorAtInlineEditContext.set(!1)}validateInlineEdit(e,t){if(t.text.includes("\n")&&t.range.startLineNumber!==t.range.endLineNumber&&t.range.startColumn!==t.range.endColumn){if(1!==t.range.startColumn)return!1;const i=t.range.endLineNumber;if(t.range.endColumn!==(e.getModel()?.getLineLength(i)??0)+1)return!1}return!0}async fetchInlineEdit(e,t){this._currentRequestCts&&this._currentRequestCts.dispose(!0);const i=e.getModel();if(!i)return;const s=i.getVersionId(),n=this.languageFeaturesService.inlineEditProvider.all(i);if(0===n.length)return;const r=n[0];this._currentRequestCts=new w.Qi;const o=this._currentRequestCts.token,a=t?S.sm.Automatic:S.sm.Invoke;var c,l;if(t&&await(c=50,l=o,new Promise((e=>{let t;const i=setTimeout((()=>{t&&t.dispose(),e()}),c);l&&(t=l.onCancellationRequested((()=>{clearTimeout(i),t&&t.dispose(),e()})))}))),o.isCancellationRequested||i.isDisposed()||i.getVersionId()!==s)return;const h=await r.provideInlineEdit(i,{triggerKind:a},o);return h&&!o.isCancellationRequested&&!i.isDisposed()&&i.getVersionId()===s&&this.validateInlineEdit(e,h)?h:void 0}async getInlineEdit(e,t){this._isCursorAtInlineEditContext.set(!1),await this.clear();const i=await this.fetchInlineEdit(e,t);i&&this._currentEdit.set(i,void 0)}async trigger(){await this.getInlineEdit(this.editor,!1)}async jumpBack(){this._jumpBackPosition&&(this.editor.setPosition(this._jumpBackPosition),this.editor.revealPositionInCenterIfOutsideViewport(this._jumpBackPosition))}async accept(){this._isAccepting.set(!0,void 0);const e=this._currentEdit.get();if(!e)return;let t=e.text;e.text.startsWith("\n")&&(t=e.text.substring(1)),this.editor.pushUndoStop(),this.editor.executeEdits("acceptCurrent",[a.k.replace(l.Q.lift(e.range),t)]),e.accepted&&await this._commandService.executeCommand(e.accepted.id,...e.accepted.arguments||[]).then(void 0,Y.M_),this.freeEdit(e),(0,o.Rn)((e=>{this._currentEdit.set(void 0,e),this._isAccepting.set(!1,e)}))}jumpToCurrent(){this._jumpBackPosition=this.editor.getSelection()?.getStartPosition();const e=this._currentEdit.get();if(!e)return;const t=c.y.lift({lineNumber:e.range.startLineNumber,column:e.range.startColumn});this.editor.setPosition(t),this.editor.revealPositionInCenterIfOutsideViewport(t)}async clear(e=!0){const t=this._currentEdit.get();t&&t?.rejected&&e&&await this._commandService.executeCommand(t.rejected.id,...t.rejected.arguments||[]).then(void 0,Y.M_),t&&this.freeEdit(t),this._currentEdit.set(void 0,void 0)}freeEdit(e){const t=this.editor.getModel();if(!t)return;const i=this.languageFeaturesService.inlineEditProvider.all(t);0!==i.length&&i[0].freeInlineEdit(e)}};he=ae=ce([le(1,b._Y),le(2,E.fN),le(3,y.ILanguageFeaturesService),le(4,L.d),le(5,K.pG),le(6,Z.Hg),le(7,te.IModelService)],he);class de extends s.ks{constructor(){super({id:"editor.action.inlineEdit.accept",label:"Accept Inline Edit",alias:"Accept Inline Edit",precondition:E.M$.and(n.R.writable,he.inlineEditVisibleContext),kbOpts:[{weight:101,primary:2,kbExpr:E.M$.and(n.R.writable,he.inlineEditVisibleContext,he.cursorAtInlineEditContext)}],menuOpts:[{menuId:D.D8.InlineEditToolbar,title:"Accept",group:"primary",order:1}]})}async run(e,t){const i=he.get(t);await(i?.accept())}}class ue extends s.ks{constructor(){const e=E.M$.and(n.R.writable,E.M$.not(he.inlineEditVisibleKey));super({id:"editor.action.inlineEdit.trigger",label:"Trigger Inline Edit",alias:"Trigger Inline Edit",precondition:e,kbOpts:{weight:101,primary:2646,kbExpr:e}})}async run(e,t){const i=he.get(t);i?.trigger()}}class ge extends s.ks{constructor(){const e=E.M$.and(n.R.writable,he.inlineEditVisibleContext,E.M$.not(he.cursorAtInlineEditKey));super({id:"editor.action.inlineEdit.jumpTo",label:"Jump to Inline Edit",alias:"Jump to Inline Edit",precondition:e,kbOpts:{weight:101,primary:2646,kbExpr:e},menuOpts:[{menuId:D.D8.InlineEditToolbar,title:"Jump To Edit",group:"primary",order:3,when:e}]})}async run(e,t){const i=he.get(t);i?.jumpToCurrent()}}class pe extends s.ks{constructor(){const e=E.M$.and(n.R.writable,he.cursorAtInlineEditContext);super({id:"editor.action.inlineEdit.jumpBack",label:"Jump Back from Inline Edit",alias:"Jump Back from Inline Edit",precondition:e,kbOpts:{weight:110,primary:2646,kbExpr:e},menuOpts:[{menuId:D.D8.InlineEditToolbar,title:"Jump Back",group:"primary",order:3,when:e}]})}async run(e,t){const i=he.get(t);i?.jumpBack()}}class me extends s.ks{constructor(){const e=E.M$.and(n.R.writable,he.inlineEditVisibleContext);super({id:"editor.action.inlineEdit.reject",label:"Reject Inline Edit",alias:"Reject Inline Edit",precondition:e,kbOpts:{weight:100,primary:9,kbExpr:e},menuOpts:[{menuId:D.D8.InlineEditToolbar,title:"Reject",group:"secondary",order:2}]})}async run(e,t){const i=he.get(t);await(i?.clear())}}(0,s.Fl)(de),(0,s.Fl)(me),(0,s.Fl)(ge),(0,s.Fl)(pe),(0,s.Fl)(ue),(0,s.HW)(he.ID,he,3)},40677:(e,t,i)=>{"use strict";var s=i(31450),n=i(10350),r=i(31308),o=i(49154),a=i(29163),c=i(60002),l=i(78209),h=i(32848);const d=new h.N1("inlineEditsVisible",!1,(0,l.kg)("inlineEditsVisible","Whether an inline edit is visible")),u=new h.N1("inlineEditsIsPinned",!1,(0,l.kg)("isPinned","Whether an inline edit is visible"));var g=i(5662),p=i(87958),m=i(38844),f=i(41127),_=i(75326),v=i(32500),C=i(56942),E=i(90766),b=i(18447),S=i(51241),y=i(64383),w=i(79400),R=i(94746),L=i(86571),T=i(62083),x=i(23750),k=i(20940),A=i(8597),N=i(49435),I=i(10691),O=i(92368),D=i(83941),M=i(87289),P=i(18864),F=i(1098),U=i(90870),H=i(63591),B=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},W=function(e,t){return function(i,s){t(i,s,e)}};class V{constructor(e,t,i){this.range=e,this.newLines=t,this.changes=i}}let z=class extends g.jG{constructor(e,t,i,n){super(),this._editor=e,this._edit=t,this._userPrompt=i,this._instantiationService=n,this._editorObs=(0,m.Ud)(this._editor),this._elements=(0,A.h)("div.inline-edits-widget",{style:{position:"absolute",overflow:"visible",top:"0px",left:"0px"}},[(0,A.h)("div@editorContainer",{style:{position:"absolute",top:"0px",left:"0px",width:"500px",height:"500px"}},[(0,A.h)("div.toolbar@toolbar",{style:{position:"absolute",top:"-25px",left:"0px"}}),(0,A.h)("div.promptEditor@promptEditor",{style:{position:"absolute",top:"-25px",left:"80px",width:"300px",height:"22px"}}),(0,A.h)("div.preview@editor",{style:{position:"absolute",top:"0px",left:"0px"}})]),(0,A.Mc)("svg",{style:{overflow:"visible",pointerEvents:"none"}},[(0,A.Mc)("defs",[(0,A.Mc)("linearGradient",{id:"Gradient2",x1:"0",y1:"0",x2:"1",y2:"0"},[(0,A.Mc)("stop",{offset:"0%",class:"gradient-stop"}),(0,A.Mc)("stop",{offset:"100%",class:"gradient-stop"})])]),(0,A.Mc)("path@path",{d:"",fill:"url(#Gradient2)"})])]),this._previewTextModel=this._register(this._instantiationService.createInstance(M.Bz,"",D.vH,M.Bz.DEFAULT_CREATION_OPTIONS,null)),this._setText=(0,r.un)((e=>{const t=this._edit.read(e);t&&this._previewTextModel.setValue(t.newLines.join("\n"))})).recomputeInitiallyAndOnChange(this._store),this._promptTextModel=this._register(this._instantiationService.createInstance(M.Bz,"",D.vH,M.Bz.DEFAULT_CREATION_OPTIONS,null)),this._promptEditor=this._register(this._instantiationService.createInstance(a.t,this._elements.promptEditor,{glyphMargin:!1,lineNumbers:"off",minimap:{enabled:!1},guides:{indentation:!1,bracketPairs:!1,bracketPairsHorizontal:!1,highlightActiveIndentation:!1},folding:!1,selectOnLineNumbers:!1,selectionHighlight:!1,columnSelection:!1,overviewRulerBorder:!1,overviewRulerLanes:0,lineDecorationsWidth:0,lineNumbersMinChars:0,placeholder:"Describe the change you want...",fontFamily:N.z},{contributions:s.dS.getSomeEditorContributions([U.D.ID,F.X.ID,P.d.ID]),isSimpleWidget:!0},this._editor)),this._previewEditor=this._register(this._instantiationService.createInstance(a.t,this._elements.editor,{glyphMargin:!1,lineNumbers:"off",minimap:{enabled:!1},guides:{indentation:!1,bracketPairs:!1,bracketPairsHorizontal:!1,highlightActiveIndentation:!1},folding:!1,selectOnLineNumbers:!1,selectionHighlight:!1,columnSelection:!1,overviewRulerBorder:!1,overviewRulerLanes:0,lineDecorationsWidth:0,lineNumbersMinChars:0},{contributions:[]},this._editor)),this._previewEditorObs=(0,m.Ud)(this._previewEditor),this._decorations=(0,r.un)(this,(e=>{this._setText.read(e);const t=this._edit.read(e)?.changes;if(!t)return[];const i=[],s=[];if(1===t.length&&t[0].innerChanges[0].modifiedRange.equalsRange(this._previewTextModel.getFullModelRange()))return[];for(const n of t)if(n.original.isEmpty||i.push({range:n.original.toInclusiveRange(),options:I.Ob}),n.modified.isEmpty||s.push({range:n.modified.toInclusiveRange(),options:I.Kl}),n.modified.isEmpty||n.original.isEmpty)n.original.isEmpty||i.push({range:n.original.toInclusiveRange(),options:I.KL}),n.modified.isEmpty||s.push({range:n.modified.toInclusiveRange(),options:I.Ou});else for(const e of n.innerChanges||[])n.original.contains(e.originalRange.startLineNumber)&&i.push({range:e.originalRange,options:e.originalRange.isEmpty()?I.wp:I.Zb}),n.modified.contains(e.modifiedRange.startLineNumber)&&s.push({range:e.modifiedRange,options:e.modifiedRange.isEmpty()?I.GM:I.bk});return s})),this._layout1=(0,r.un)(this,(e=>{const t=this._editor.getModel(),i=this._edit.read(e);if(!i)return null;const s=i.range;let n=0;for(let r=s.startLineNumber;r<s.endLineNumberExclusive;r++){const e=t.getLineMaxColumn(r),i=this._editor.getOffsetForColumn(r,e);n=Math.max(n,i)}return{left:this._editor.getLayoutInfo().contentLeft+n}})),this._layout=(0,r.un)(this,(e=>{const t=this._edit.read(e);if(!t)return null;const i=t.range,s=this._editorObs.scrollLeft.read(e),n=this._layout1.read(e).left+20-s,r=this._editor.getTopForLineNumber(i.startLineNumber)-this._editorObs.scrollTop.read(e),o=this._editor.getTopForLineNumber(i.endLineNumberExclusive)-this._editorObs.scrollTop.read(e),a=new G(n,r),c=new G(n,o),l=o-r,h=this._editor.getOption(67)*t.newLines.length,d=l-h;return{topCode:a,bottomCode:c,codeHeight:l,topEdit:new G(n+50,r+d/2),bottomEdit:new G(n+50,o-d/2),editHeight:h}}));const o=(0,r.un)(this,(e=>void 0!==this._edit.read(e)||void 0!==this._userPrompt.read(e)));var c,l,h;this._register((0,O.AV)(this._elements.root,{display:(0,r.un)(this,(e=>o.read(e)?"block":"none"))})),this._register((0,O.rX)(this._editor.getDomNode(),this._elements.root)),this._register((0,m.Ud)(e).createOverlayWidget({domNode:this._elements.root,position:(0,r.lk)(null),allowEditorOverflow:!1,minContentWidthInPx:(0,r.un)((e=>{const t=this._layout1.read(e)?.left;if(void 0===t)return 0;return t+this._previewEditorObs.contentWidth.read(e)}))})),this._previewEditor.setModel(this._previewTextModel),this._register(this._previewEditorObs.setDecorations(this._decorations)),this._register((0,r.fm)((e=>{const t=this._layout.read(e);if(!t)return;const{topCode:i,bottomCode:s,topEdit:n,bottomEdit:r,editHeight:o}=t,a=(new j).moveTo(i).lineTo(i.deltaX(10)).curveTo(i.deltaX(50),n.deltaX(-40),n.deltaX(-0)).lineTo(n).lineTo(r).lineTo(r.deltaX(-0)).curveTo(r.deltaX(-40),s.deltaX(50),s.deltaX(10)).lineTo(s).build();this._elements.path.setAttribute("d",a),this._elements.editorContainer.style.top=`${n.y}px`,this._elements.editorContainer.style.left=`${n.x}px`,this._elements.editorContainer.style.height=`${o}px`;const c=this._previewEditorObs.contentWidth.read(e);this._previewEditor.layout({height:o,width:c})}))),this._promptEditor.setModel(this._promptTextModel),this._promptEditor.layout(),this._register(function(e,t){const i=new g.Cm;return i.add((0,r.fm)((i=>{const s=e.read(i);t.set(s,void 0)}))),i.add((0,r.fm)((i=>{const s=t.read(i);e.set(s,void 0)}))),i}((c=this._userPrompt,l=e=>e??"",h=e=>e,(0,p.dQ)(void 0,(e=>l(c.read(e))),((e,t)=>c.set(h(e),t)))),(0,m.Ud)(this._promptEditor).value)),this._register((0,r.fm)((e=>{const t=(0,m.Ud)(this._promptEditor).isFocused.read(e);this._elements.root.classList.toggle("focused",t)})))}};z=B([W(3,H._Y)],z);class G{constructor(e,t){this.x=e,this.y=t}deltaX(e){return new G(this.x+e,this.y)}}class j{constructor(){this._data=""}moveTo(e){return this._data+=`M ${e.x} ${e.y} `,this}lineTo(e){return this._data+=`L ${e.x} ${e.y} `,this}curveTo(e,t,i){return this._data+=`C ${e.x} ${e.y} ${t.x} ${t.y} ${i.x} ${i.y} `,this}build(){return this._data}}var K,Y=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},q=function(e,t){return function(i,s){t(i,s,e)}};let $=class extends g.jG{static{K=this}static{this._modelId=0}static _createUniqueUri(){return w.r.from({scheme:"inline-edits",path:(new Date).toString()+String(K._modelId++)})}constructor(e,t,i,s,n,o,a){super(),this.textModel=e,this._textModelVersionId=t,this._selection=i,this._debounceValue=s,this.languageFeaturesService=n,this._diffProviderFactoryService=o,this._modelService=a,this._forceUpdateExplicitlySignal=(0,r.Yd)(this),this._selectedInlineCompletionId=(0,r.FY)(this,void 0),this._isActive=(0,r.FY)(this,!1),this._originalModel=(0,p.a0)((()=>this._modelService.createModel("",null,K._createUniqueUri()))).keepObserved(this._store),this._modifiedModel=(0,p.a0)((()=>this._modelService.createModel("",null,K._createUniqueUri()))).keepObserved(this._store),this._pinnedRange=new X(this.textModel,this._textModelVersionId),this.isPinned=this._pinnedRange.range.map((e=>!!e)),this.userPrompt=(0,r.FY)(this,void 0),this.inlineEdit=(0,r.un)(this,(e=>this._inlineEdit.read(e)?.promiseResult.read(e)?.data)),this._inlineEdit=(0,r.un)(this,(e=>{const t=this.selectedInlineEdit.read(e);if(!t)return;const i=t.inlineCompletion.range;if(""===t.inlineCompletion.insertText.trim())return;let s=t.inlineCompletion.insertText.split(/\r\n|\r|\n/);function n(e){const t=e[0].match(/^\s*/)?.[0]??"";return e.map((e=>e.replace(new RegExp("^"+t),"")))}s=n(s);let o=this.textModel.getValueInRange(i).split(/\r\n|\r|\n/);o=n(o),this._originalModel.get().setValue(o.join("\n")),this._modifiedModel.get().setValue(s.join("\n"));const a=this._diffProviderFactoryService.createDiffProvider({diffAlgorithm:"advanced"});return r.BK.fromFn((async()=>{const e=await a.computeDiff(this._originalModel.get(),this._modifiedModel.get(),{computeMoves:!1,ignoreTrimWhitespace:!1,maxComputationTimeMs:1e3},b.XO.None);if(!e.identical)return new V(L.M.fromRangeInclusive(i),n(s),e.changes)}))})),this._fetchStore=this._register(new g.Cm),this._inlineEditsFetchResult=(0,r.X2)(this,void 0),this._inlineEdits=(0,r.C)({owner:this,equalsFn:S.dB},(e=>this._inlineEditsFetchResult.read(e)?.completions.map((e=>new Q(e)))??[])),this._fetchInlineEditsPromise=(0,r.nb)({owner:this,createEmptyChangeSummary:()=>({inlineCompletionTriggerKind:T.qw.Automatic}),handleChange:(e,t)=>(e.didChange(this._forceUpdateExplicitlySignal)&&(t.inlineCompletionTriggerKind=T.qw.Explicit),!0)},(async(e,t)=>{this._fetchStore.clear(),this._forceUpdateExplicitlySignal.read(e),this._textModelVersionId.read(e);const i=this._pinnedRange.range.read(e)??(s=this._selection.read(e),(e=>e.isEmpty()?void 0:e)(s));var s;if(!i)return this._inlineEditsFetchResult.set(void 0,void 0),void this.userPrompt.set(void 0,void 0);const n={triggerKind:t.inlineCompletionTriggerKind,selectedSuggestionInfo:void 0,userPrompt:this.userPrompt.read(e)},r=(0,b.bs)(this._fetchStore);await(0,E.wR)(200,r);const o=await(0,k.Yk)(this.languageFeaturesService.inlineCompletionsProvider,i,this.textModel,n,r);r.isCancellationRequested||this._inlineEditsFetchResult.set(o,void 0)})),this._filteredInlineEditItems=(0,r.C)({owner:this,equalsFn:(0,S.S3)()},(e=>this._inlineEdits.read(e))),this.selectedInlineCompletionIndex=(0,r.un)(this,(e=>{const t=this._selectedInlineCompletionId.read(e),i=this._filteredInlineEditItems.read(e),s=void 0===this._selectedInlineCompletionId?-1:i.findIndex((e=>e.semanticId===t));return-1===s?(this._selectedInlineCompletionId.set(void 0,void 0),0):s})),this.selectedInlineEdit=(0,r.un)(this,(e=>this._filteredInlineEditItems.read(e)[this.selectedInlineCompletionIndex.read(e)])),this._register((0,r.OI)(this._fetchInlineEditsPromise))}async triggerExplicitly(e){(0,r.PO)(e,(e=>{this._isActive.set(!0,e),this._forceUpdateExplicitlySignal.trigger(e)})),await this._fetchInlineEditsPromise.get()}stop(e){(0,r.PO)(e,(e=>{this.userPrompt.set(void 0,e),this._isActive.set(!1,e),this._inlineEditsFetchResult.set(void 0,e),this._pinnedRange.setRange(void 0,e)}))}async _deltaSelectedInlineCompletionIndex(e){await this.triggerExplicitly();const t=this._filteredInlineEditItems.get()||[];if(t.length>0){const i=(this.selectedInlineCompletionIndex.get()+e+t.length)%t.length;this._selectedInlineCompletionId.set(t[i].semanticId,void 0)}else this._selectedInlineCompletionId.set(void 0,void 0)}async next(){await this._deltaSelectedInlineCompletionIndex(1)}async previous(){await this._deltaSelectedInlineCompletionIndex(-1)}async accept(e){if(e.getModel()!==this.textModel)throw new y.D7;const t=this.selectedInlineEdit.get();t&&(e.pushUndoStop(),e.executeEdits("inlineSuggestion.accept",[t.inlineCompletion.toSingleTextEdit().toSingleEditOperation()]),this.stop())}};$=K=Y([q(4,C.ILanguageFeaturesService),q(5,R.Hg),q(6,x.IModelService)],$);class Q{constructor(e){this.inlineCompletion=e,this.semanticId=this.inlineCompletion.hash()}}class X extends g.jG{constructor(e,t){super(),this._textModel=e,this._versionId=t,this._decorations=(0,r.FY)(this,[]),this.range=(0,r.un)(this,(e=>{this._versionId.read(e);const t=this._decorations.read(e)[0];return t?this._textModel.getDecorationRange(t)??null:null})),this._register((0,g.s)((()=>{this._textModel.deltaDecorations(this._decorations.get(),[])})))}setRange(e,t){this._decorations.set(this._textModel.deltaDecorations(this._decorations.get(),e?[{range:e,options:{description:"trackedRange"}}]:[]),t)}}var Z,J=i(84001),ee=i(71319),te=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},ie=function(e,t){return function(i,s){t(i,s,e)}};let se=class extends g.jG{static{Z=this}static{this.ID="editor.contrib.inlineEditsController"}static get(e){return e.getContribution(Z.ID)}constructor(e,t,i,s,n,o){super(),this.editor=e,this._instantiationService=t,this._contextKeyService=i,this._debounceService=s,this._languageFeaturesService=n,this._configurationService=o,this._enabled=(0,ee.V)("editor.inlineEdits.enabled",!1,this._configurationService),this._editorObs=(0,m.Ud)(this.editor),this._selection=(0,r.un)(this,(e=>this._editorObs.cursorSelection.read(e)??new _.L(1,1,1,1))),this._debounceValue=this._debounceService.for(this._languageFeaturesService.inlineCompletionsProvider,"InlineEditsDebounce",{min:50,max:50}),this.model=(0,p.a0)(this,(e=>{if(!this._enabled.read(e))return;if(this._editorObs.isReadonly.read(e))return;const t=this._editorObs.model.read(e);if(!t)return;return this._instantiationService.createInstance((0,f.b)($,e),t,this._editorObs.versionId,this._selection,this._debounceValue)})),this._hadInlineEdit=(0,r.ZX)(this,((e,t)=>t||void 0!==this.model.read(e)?.inlineEdit.read(e))),this._widget=(0,p.a0)(this,(e=>{var t;if(this._hadInlineEdit.read(e))return this._instantiationService.createInstance((0,f.b)(z,e),this.editor,this.model.map(((e,t)=>e?.inlineEdit.read(t))),(t=e=>this.model.read(e)?.userPrompt??(0,r.FY)("empty",""),(0,p.dQ)(void 0,(e=>t(e).read(e)),((e,i)=>{t(void 0).set(e,i)}))))})),this._register((0,ee.w)(d,this._contextKeyService,(e=>!!this.model.read(e)?.inlineEdit.read(e)))),this._register((0,ee.w)(u,this._contextKeyService,(e=>!!this.model.read(e)?.isPinned.read(e)))),this.model.recomputeInitiallyAndOnChange(this._store),this._widget.recomputeInitiallyAndOnChange(this._store)}};se=Z=te([ie(1,H._Y),ie(2,h.fN),ie(3,v.ILanguageFeatureDebounceService),ie(4,C.ILanguageFeaturesService),ie(5,J.pG)],se);var ne=i(27195);function re(e){return{label:e.value,alias:e.original}}class oe extends s.ks{static{this.ID="editor.action.inlineEdits.showNext"}constructor(){super({id:oe.ID,...re(l.aS("action.inlineEdits.showNext","Show Next Inline Edit")),precondition:h.M$.and(c.R.writable,d),kbOpts:{weight:100,primary:606}})}async run(e,t){const i=se.get(t);i?.model.get()?.next()}}class ae extends s.ks{static{this.ID="editor.action.inlineEdits.showPrevious"}constructor(){super({id:ae.ID,...re(l.aS("action.inlineEdits.showPrevious","Show Previous Inline Edit")),precondition:h.M$.and(c.R.writable,d),kbOpts:{weight:100,primary:604}})}async run(e,t){const i=se.get(t);i?.model.get()?.previous()}}class ce extends s.ks{constructor(){super({id:"editor.action.inlineEdits.trigger",...re(l.aS("action.inlineEdits.trigger","Trigger Inline Edit")),precondition:c.R.writable})}async run(e,t){const i=se.get(t);await(0,o.fL)((async e=>{await(i?.model.get()?.triggerExplicitly(e))}))}}class le extends s.ks{constructor(){super({id:"editor.action.inlineEdits.accept",...re(l.aS("action.inlineEdits.accept","Accept Inline Edit")),precondition:d,menuOpts:{menuId:ne.D8.InlineEditsActions,title:l.kg("inlineEditsActions","Accept Inline Edit"),group:"primary",order:1,icon:n.W.check},kbOpts:{primary:2058,weight:2e4,kbExpr:d}})}async run(e,t){t instanceof a.t&&(t=t.getParentEditor());const i=se.get(t);i&&(i.model.get()?.accept(i.editor),i.editor.focus())}}class he extends s.ks{static{this.ID="editor.action.inlineEdits.hide"}constructor(){super({id:he.ID,...re(l.aS("action.inlineEdits.hide","Hide Inline Edit")),precondition:d,kbOpts:{weight:100,primary:9}})}async run(e,t){const i=se.get(t);(0,r.Rn)((e=>{i?.model.get()?.stop(e)}))}}(0,s.HW)(se.ID,se,3),(0,s.Fl)(ce),(0,s.Fl)(oe),(0,s.Fl)(ae),(0,s.Fl)(le),(0,s.Fl)(he)},9948:(e,t,i)=>{"use strict";i.d(t,{I:()=>f});var s=i(8597),n=i(90766),r=i(10350),o=i(5662),a=i(91508),c=i(25689),l=i(36677),h=i(87289),d=i(63591),u=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},g=function(e,t){return function(i,s){t(i,s,e)}};const p=h.kI.register({description:"inline-progress-widget",stickiness:1,showIfCollapsed:!0,after:{content:a.S8,inlineClassName:"inline-editor-progress-decoration",inlineClassNameAffectsLetterSpacing:!0}});class m extends o.jG{static{this.baseId="editor.widget.inlineProgressWidget"}constructor(e,t,i,s,n){super(),this.typeId=e,this.editor=t,this.range=i,this.delegate=n,this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this.create(s),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this)}create(e){this.domNode=s.$(".inline-progress-widget"),this.domNode.role="button",this.domNode.title=e;const t=s.$("span.icon");this.domNode.append(t),t.classList.add(...c.L.asClassNameArray(r.W.loading),"codicon-modifier-spin");const i=()=>{const e=this.editor.getOption(67);this.domNode.style.height=`${e}px`,this.domNode.style.width=`${Math.ceil(.8*e)}px`};i(),this._register(this.editor.onDidChangeConfiguration((e=>{(e.hasChanged(52)||e.hasChanged(67))&&i()}))),this._register(s.ko(this.domNode,s.Bx.CLICK,(e=>{this.delegate.cancel()})))}getId(){return m.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:{lineNumber:this.range.startLineNumber,column:this.range.startColumn},preference:[0]}}dispose(){super.dispose(),this.editor.removeContentWidget(this)}}let f=class extends o.jG{constructor(e,t,i){super(),this.id=e,this._editor=t,this._instantiationService=i,this._showDelay=500,this._showPromise=this._register(new o.HE),this._currentWidget=this._register(new o.HE),this._operationIdPool=0,this._currentDecorations=t.createDecorationsCollection()}dispose(){super.dispose(),this._currentDecorations.clear()}async showWhile(e,t,i,s,r){const o=this._operationIdPool++;this._currentOperation=o,this.clear(),this._showPromise.value=(0,n.EQ)((()=>{const i=l.Q.fromPositions(e);this._currentDecorations.set([{range:i,options:p}]).length>0&&(this._currentWidget.value=this._instantiationService.createInstance(m,this.id,this._editor,i,t,s))}),r??this._showDelay);try{return await i}finally{this._currentOperation===o&&(this.clear(),this._currentOperation=void 0)}}clear(){this._showPromise.clear(),this._currentDecorations.clear(),this._currentWidget.clear()}};f=u([g(2,d._Y)],f)},15040:(e,t,i)=>{"use strict";var s=i(31450),n=i(50672),r=i(60002),o=i(78209);class a extends s.ks{constructor(){super({id:"expandLineSelection",label:o.kg("expandLineSelection","Expand Line Selection"),alias:"Expand Line Selection",precondition:void 0,kbOpts:{weight:0,kbExpr:r.R.textInputFocus,primary:2090}})}run(e,t,i){if(i=i||{},!t.hasModel())return;const s=t._getViewModel();s.model.pushStackElement(),s.setCursorStates(i.source,3,n.c.expandLineSelection(s,s.getCursorStates())),s.revealAllCursors(i.source,!0)}}(0,s.Fl)(a)},75639:(e,t,i)=>{"use strict";var s=i(24939),n=i(36999),r=i(31450),o=i(15092),a=i(91508),c=i(7085),l=i(36677);class h{constructor(e,t,i){this._selection=e,this._cursors=t,this._selectionId=null,this._trimInRegexesAndStrings=i}getEditOperations(e,t){const i=function(e,t,i){t.sort(((e,t)=>e.lineNumber===t.lineNumber?e.column-t.column:e.lineNumber-t.lineNumber));for(let a=t.length-2;a>=0;a--)t[a].lineNumber===t[a+1].lineNumber&&t.splice(a,1);const s=[];let n=0,r=0;const o=t.length;for(let h=1,d=e.getLineCount();h<=d;h++){const d=e.getLineContent(h),u=d.length+1;let g=0;if(r<o&&t[r].lineNumber===h&&(g=t[r].column,r++,g===u))continue;if(0===d.length)continue;const p=a.lT(d);let m=0;if(-1===p)m=1;else{if(p===d.length-1)continue;m=p+2}if(!i){if(!e.tokenization.hasAccurateTokensForLine(h))continue;const t=e.tokenization.getLineTokens(h),i=t.getStandardTokenType(t.findTokenIndexAtOffset(m));if(2===i||3===i)continue}m=Math.max(g,m),s[n++]=c.k.delete(new l.Q(h,m,h,u))}return s}(e,this._cursors,this._trimInRegexesAndStrings);for(let s=0,n=i.length;s<n;s++){const e=i[s];t.addEditOperation(e.range,e.text)}this._selectionId=t.trackSelection(this._selection)}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}var d=i(49265),u=i(26685),g=i(83069),p=i(75326),m=i(60002);class f{constructor(e,t,i){this._selection=e,this._isCopyingDown=t,this._noop=i||!1,this._selectionDirection=0,this._selectionId=null,this._startLineNumberDelta=0,this._endLineNumberDelta=0}getEditOperations(e,t){let i=this._selection;this._startLineNumberDelta=0,this._endLineNumberDelta=0,i.startLineNumber<i.endLineNumber&&1===i.endColumn&&(this._endLineNumberDelta=1,i=i.setEndPosition(i.endLineNumber-1,e.getLineMaxColumn(i.endLineNumber-1)));const s=[];for(let r=i.startLineNumber;r<=i.endLineNumber;r++)s.push(e.getLineContent(r));const n=s.join("\n");""===n&&this._isCopyingDown&&(this._startLineNumberDelta++,this._endLineNumberDelta++),this._noop?t.addEditOperation(new l.Q(i.endLineNumber,e.getLineMaxColumn(i.endLineNumber),i.endLineNumber+1,1),i.endLineNumber===e.getLineCount()?"":"\n"):this._isCopyingDown?t.addEditOperation(new l.Q(i.startLineNumber,1,i.startLineNumber,1),n+"\n"):t.addEditOperation(new l.Q(i.endLineNumber,e.getLineMaxColumn(i.endLineNumber),i.endLineNumber,e.getLineMaxColumn(i.endLineNumber)),"\n"+n),this._selectionId=t.trackSelection(i),this._selectionDirection=this._selection.getDirection()}computeCursorState(e,t){let i=t.getTrackedSelection(this._selectionId);if(0!==this._startLineNumberDelta||0!==this._endLineNumberDelta){let e=i.startLineNumber,t=i.startColumn,s=i.endLineNumber,n=i.endColumn;0!==this._startLineNumberDelta&&(e+=this._startLineNumberDelta,t=1),0!==this._endLineNumberDelta&&(s+=this._endLineNumberDelta,n=1),i=p.L.createWithDirection(e,t,s,n,this._selectionDirection)}return i}}var _=i(7936),v=i(38566),C=i(17469),E=i(64395),b=i(82365),S=i(63346),y=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},w=function(e,t){return function(i,s){t(i,s,e)}};let R=class{constructor(e,t,i,s){this._languageConfigurationService=s,this._selection=e,this._isMovingDown=t,this._autoIndent=i,this._selectionId=null,this._moveEndLineSelectionShrink=!1}getEditOperations(e,t){const i=()=>e.getLanguageId(),s=(t,i)=>e.getLanguageIdAtPosition(t,i),n=e.getLineCount();if(this._isMovingDown&&this._selection.endLineNumber===n)return void(this._selectionId=t.trackSelection(this._selection));if(!this._isMovingDown&&1===this._selection.startLineNumber)return void(this._selectionId=t.trackSelection(this._selection));this._moveEndPositionDown=!1;let r=this._selection;r.startLineNumber<r.endLineNumber&&1===r.endColumn&&(this._moveEndPositionDown=!0,r=r.setEndPosition(r.endLineNumber-1,e.getLineMaxColumn(r.endLineNumber-1)));const{tabSize:o,indentSize:c,insertSpaces:h}=e.getOptions(),d=this.buildIndentConverter(o,c,h);if(r.startLineNumber===r.endLineNumber&&1===e.getLineMaxColumn(r.startLineNumber)){const i=r.startLineNumber,s=this._isMovingDown?i+1:i-1;1===e.getLineMaxColumn(s)?t.addEditOperation(new l.Q(1,1,1,1),null):(t.addEditOperation(new l.Q(i,1,i,1),e.getLineContent(s)),t.addEditOperation(new l.Q(s,1,s,e.getLineMaxColumn(s)),null)),r=new p.L(s,1,s,1)}else{let n,c;if(this._isMovingDown){n=r.endLineNumber+1,c=e.getLineContent(n),t.addEditOperation(new l.Q(n-1,e.getLineMaxColumn(n-1),n,e.getLineMaxColumn(n)),null);let u=c;if(this.shouldAutoIndent(e,r)){const g=this.matchEnterRule(e,d,o,n,r.startLineNumber-1);if(null!==g){const t=a.UU(e.getLineContent(n)),i=g+E.c(t,o),s=E.k(i,o,h);u=s+this.trimStart(c)}else{const t={tokenization:{getLineTokens:t=>t===r.startLineNumber?e.tokenization.getLineTokens(n):e.tokenization.getLineTokens(t),getLanguageId:i,getLanguageIdAtPosition:s},getLineContent:t=>t===r.startLineNumber?e.getLineContent(n):e.getLineContent(t)},l=(0,b.$f)(this._autoIndent,t,e.getLanguageIdAtPosition(n,1),r.startLineNumber,d,this._languageConfigurationService);if(null!==l){const t=a.UU(e.getLineContent(n)),i=E.c(l,o);if(i!==E.c(t,o)){const e=E.k(i,o,h);u=e+this.trimStart(c)}}}t.addEditOperation(new l.Q(r.startLineNumber,1,r.startLineNumber,1),u+"\n");const p=this.matchEnterRuleMovingDown(e,d,o,r.startLineNumber,n,u);if(null!==p)0!==p&&this.getIndentEditsOfMovingBlock(e,t,r,o,h,p);else{const c={tokenization:{getLineTokens:t=>t===r.startLineNumber?e.tokenization.getLineTokens(n):t>=r.startLineNumber+1&&t<=r.endLineNumber+1?e.tokenization.getLineTokens(t-1):e.tokenization.getLineTokens(t),getLanguageId:i,getLanguageIdAtPosition:s},getLineContent:t=>t===r.startLineNumber?u:t>=r.startLineNumber+1&&t<=r.endLineNumber+1?e.getLineContent(t-1):e.getLineContent(t)},l=(0,b.$f)(this._autoIndent,c,e.getLanguageIdAtPosition(n,1),r.startLineNumber+1,d,this._languageConfigurationService);if(null!==l){const i=a.UU(e.getLineContent(r.startLineNumber)),s=E.c(l,o),n=E.c(i,o);if(s!==n){const i=s-n;this.getIndentEditsOfMovingBlock(e,t,r,o,h,i)}}}}else t.addEditOperation(new l.Q(r.startLineNumber,1,r.startLineNumber,1),u+"\n")}else if(n=r.startLineNumber-1,c=e.getLineContent(n),t.addEditOperation(new l.Q(n,1,n+1,1),null),t.addEditOperation(new l.Q(r.endLineNumber,e.getLineMaxColumn(r.endLineNumber),r.endLineNumber,e.getLineMaxColumn(r.endLineNumber)),"\n"+c),this.shouldAutoIndent(e,r)){const c={tokenization:{getLineTokens:t=>t===n?e.tokenization.getLineTokens(r.startLineNumber):e.tokenization.getLineTokens(t),getLanguageId:i,getLanguageIdAtPosition:s},getLineContent:t=>t===n?e.getLineContent(r.startLineNumber):e.getLineContent(t)},l=this.matchEnterRule(e,d,o,r.startLineNumber,r.startLineNumber-2);if(null!==l)0!==l&&this.getIndentEditsOfMovingBlock(e,t,r,o,h,l);else{const i=(0,b.$f)(this._autoIndent,c,e.getLanguageIdAtPosition(r.startLineNumber,1),n,d,this._languageConfigurationService);if(null!==i){const s=a.UU(e.getLineContent(r.startLineNumber)),n=E.c(i,o),c=E.c(s,o);if(n!==c){const i=n-c;this.getIndentEditsOfMovingBlock(e,t,r,o,h,i)}}}}}this._selectionId=t.trackSelection(r)}buildIndentConverter(e,t,i){return{shiftIndent:s=>_.Y.shiftIndent(s,s.length+1,e,t,i),unshiftIndent:s=>_.Y.unshiftIndent(s,s.length+1,e,t,i)}}parseEnterResult(e,t,i,s,n){if(n){let r=n.indentation;n.indentAction===v.l.None||n.indentAction===v.l.Indent?r=n.indentation+n.appendText:n.indentAction===v.l.IndentOutdent?r=n.indentation:n.indentAction===v.l.Outdent&&(r=t.unshiftIndent(n.indentation)+n.appendText);const o=e.getLineContent(s);if(this.trimStart(o).indexOf(this.trimStart(r))>=0){const n=a.UU(e.getLineContent(s));let o=a.UU(r);const c=(0,b.Yb)(e,s,this._languageConfigurationService);null!==c&&2&c&&(o=t.unshiftIndent(o));return E.c(o,i)-E.c(n,i)}}return null}matchEnterRuleMovingDown(e,t,i,s,n,r){if(a.lT(r)>=0){const r=e.getLineMaxColumn(n),o=(0,S.h)(this._autoIndent,e,new l.Q(n,r,n,r),this._languageConfigurationService);return this.parseEnterResult(e,t,i,s,o)}{let n=s-1;for(;n>=1;){const t=e.getLineContent(n);if(a.lT(t)>=0)break;n--}if(n<1||s>e.getLineCount())return null;const r=e.getLineMaxColumn(n),o=(0,S.h)(this._autoIndent,e,new l.Q(n,r,n,r),this._languageConfigurationService);return this.parseEnterResult(e,t,i,s,o)}}matchEnterRule(e,t,i,s,n,r){let o=n;for(;o>=1;){let t;t=o===n&&void 0!==r?r:e.getLineContent(o);if(a.lT(t)>=0)break;o--}if(o<1||s>e.getLineCount())return null;const c=e.getLineMaxColumn(o),h=(0,S.h)(this._autoIndent,e,new l.Q(o,c,o,c),this._languageConfigurationService);return this.parseEnterResult(e,t,i,s,h)}trimStart(e){return e.replace(/^\s+/,"")}shouldAutoIndent(e,t){if(this._autoIndent<4)return!1;if(!e.tokenization.isCheapToTokenize(t.startLineNumber))return!1;const i=e.getLanguageIdAtPosition(t.startLineNumber,1);return i===e.getLanguageIdAtPosition(t.endLineNumber,1)&&null!==this._languageConfigurationService.getLanguageConfiguration(i).indentRulesSupport}getIndentEditsOfMovingBlock(e,t,i,s,n,r){for(let o=i.startLineNumber;o<=i.endLineNumber;o++){const c=e.getLineContent(o),h=a.UU(c),d=E.c(h,s)+r,u=E.k(d,s,n);u!==h&&(t.addEditOperation(new l.Q(o,1,o,h.length+1),u),o===i.endLineNumber&&i.endColumn<=h.length+1&&""===u&&(this._moveEndLineSelectionShrink=!0))}}computeCursorState(e,t){let i=t.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(i=i.setEndPosition(i.endLineNumber+1,1)),this._moveEndLineSelectionShrink&&i.startLineNumber<i.endLineNumber&&(i=i.setEndPosition(i.endLineNumber,2)),i}};R=y([w(3,C.JZ)],R);class L{static{this._COLLATOR=null}static getCollator(){return L._COLLATOR||(L._COLLATOR=new Intl.Collator),L._COLLATOR}constructor(e,t){this.selection=e,this.descending=t,this.selectionId=null}getEditOperations(e,t){const i=function(e,t,i){const s=T(e,t,i);if(!s)return null;return c.k.replace(new l.Q(s.startLineNumber,1,s.endLineNumber,e.getLineMaxColumn(s.endLineNumber)),s.after.join("\n"))}(e,this.selection,this.descending);i&&t.addEditOperation(i.range,i.text),this.selectionId=t.trackSelection(this.selection)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}static canRun(e,t,i){if(null===e)return!1;const s=T(e,t,i);if(!s)return!1;for(let n=0,r=s.before.length;n<r;n++)if(s.before[n]!==s.after[n])return!0;return!1}}function T(e,t,i){const s=t.startLineNumber;let n=t.endLineNumber;if(1===t.endColumn&&n--,s>=n)return null;const r=[];for(let a=s;a<=n;a++)r.push(e.getLineContent(a));let o=r.slice(0);return o.sort(L.getCollator().compare),!0===i&&(o=o.reverse()),{startLineNumber:s,endLineNumber:n,before:r,after:o}}var x=i(78209),k=i(27195),A=i(84001);class N extends r.ks{constructor(e,t){super(t),this.down=e}run(e,t){if(!t.hasModel())return;const i=t.getSelections().map(((e,t)=>({selection:e,index:t,ignore:!1})));i.sort(((e,t)=>l.Q.compareRangesUsingStarts(e.selection,t.selection)));let s=i[0];for(let r=1;r<i.length;r++){const e=i[r];s.selection.endLineNumber===e.selection.startLineNumber&&(s.index<e.index?e.ignore=!0:(s.ignore=!0,s=e))}const n=[];for(const r of i)n.push(new f(r.selection,this.down,r.ignore));t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}}class I extends r.ks{constructor(){super({id:"editor.action.duplicateSelection",label:x.kg("duplicateSelection","Duplicate Selection"),alias:"Duplicate Selection",precondition:m.R.writable,menuOpts:{menuId:k.D8.MenubarSelectionMenu,group:"2_line",title:x.kg({key:"miDuplicateSelection",comment:["&& denotes a mnemonic"]},"&&Duplicate Selection"),order:5}})}run(e,t,i){if(!t.hasModel())return;const s=[],n=t.getSelections(),r=t.getModel();for(const a of n)if(a.isEmpty())s.push(new f(a,!0));else{const e=new p.L(a.endLineNumber,a.endColumn,a.endLineNumber,a.endColumn);s.push(new o.tA(e,r.getValueInRange(a)))}t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop()}}class O extends r.ks{constructor(e,t){super(t),this.down=e}run(e,t){const i=e.get(C.JZ),s=[],n=t.getSelections()||[],r=t.getOption(12);for(const o of n)s.push(new R(o,this.down,r,i));t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop()}}class D extends r.ks{constructor(e,t){super(t),this.descending=e}run(e,t){if(!t.hasModel())return;const i=t.getModel();let s=t.getSelections();1===s.length&&s[0].isEmpty()&&(s=[new p.L(1,1,i.getLineCount(),i.getLineMaxColumn(i.getLineCount()))]);for(const r of s)if(!L.canRun(t.getModel(),r,this.descending))return;const n=[];for(let r=0,o=s.length;r<o;r++)n[r]=new L(s[r],this.descending);t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}}class M extends r.ks{constructor(){super({id:"editor.action.removeDuplicateLines",label:x.kg("lines.deleteDuplicates","Delete Duplicate Lines"),alias:"Delete Duplicate Lines",precondition:m.R.writable})}run(e,t){if(!t.hasModel())return;const i=t.getModel();if(1===i.getLineCount()&&1===i.getLineMaxColumn(1))return;const s=[],n=[];let r=0,o=!0,a=t.getSelections();1===a.length&&a[0].isEmpty()&&(a=[new p.L(1,1,i.getLineCount(),i.getLineMaxColumn(i.getLineCount()))],o=!1);for(const l of a){const e=new Set,t=[];for(let s=l.startLineNumber;s<=l.endLineNumber;s++){const n=i.getLineContent(s);e.has(n)||(t.push(n),e.add(n))}const o=new p.L(l.startLineNumber,1,l.endLineNumber,i.getLineMaxColumn(l.endLineNumber)),a=l.startLineNumber-r,h=new p.L(a,1,a+t.length-1,t[t.length-1].length);s.push(c.k.replace(o,t.join("\n"))),n.push(h),r+=l.endLineNumber-l.startLineNumber+1-t.length}t.pushUndoStop(),t.executeEdits(this.id,s,o?n:void 0),t.pushUndoStop()}}class P extends r.ks{static{this.ID="editor.action.trimTrailingWhitespace"}constructor(){super({id:P.ID,label:x.kg("lines.trimTrailingWhitespace","Trim Trailing Whitespace"),alias:"Trim Trailing Whitespace",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:(0,s.m5)(2089,2102),weight:100}})}run(e,t,i){let s=[];"auto-save"===i.reason&&(s=(t.getSelections()||[]).map((e=>new g.y(e.positionLineNumber,e.positionColumn))));const n=t.getSelection();if(null===n)return;const r=e.get(A.pG),o=t.getModel(),a=r.getValue("files.trimTrailingWhitespaceInRegexAndStrings",{overrideIdentifier:o?.getLanguageId(),resource:o?.uri}),c=new h(n,s,a);t.pushUndoStop(),t.executeCommands(this.id,[c]),t.pushUndoStop()}}class F extends r.ks{constructor(){super({id:"editor.action.deleteLines",label:x.kg("lines.delete","Delete Line"),alias:"Delete Line",precondition:m.R.writable,kbOpts:{kbExpr:m.R.textInputFocus,primary:3113,weight:100}})}run(e,t){if(!t.hasModel())return;const i=this._getLinesToRemove(t),s=t.getModel();if(1===s.getLineCount()&&1===s.getLineMaxColumn(1))return;let n=0;const r=[],o=[];for(let a=0,l=i.length;a<l;a++){const e=i[a];let t=e.startLineNumber,l=e.endLineNumber,h=1,d=s.getLineMaxColumn(l);l<s.getLineCount()?(l+=1,d=1):t>1&&(t-=1,h=s.getLineMaxColumn(t)),r.push(c.k.replace(new p.L(t,h,l,d),"")),o.push(new p.L(t-n,e.positionColumn,t-n,e.positionColumn)),n+=e.endLineNumber-e.startLineNumber+1}t.pushUndoStop(),t.executeEdits(this.id,r,o),t.pushUndoStop()}_getLinesToRemove(e){const t=e.getSelections().map((e=>{let t=e.endLineNumber;return e.startLineNumber<e.endLineNumber&&1===e.endColumn&&(t-=1),{startLineNumber:e.startLineNumber,selectionStartColumn:e.selectionStartColumn,endLineNumber:t,positionColumn:e.positionColumn}}));t.sort(((e,t)=>e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber));const i=[];let s=t[0];for(let n=1;n<t.length;n++)s.endLineNumber+1>=t[n].startLineNumber?s.endLineNumber=t[n].endLineNumber:(i.push(s),s=t[n]);return i.push(s),i}}class U extends r.ks{constructor(){super({id:"editor.action.indentLines",label:x.kg("lines.indent","Indent Line"),alias:"Indent Line",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:2142,weight:100}})}run(e,t){const i=t._getViewModel();i&&(t.pushUndoStop(),t.executeCommands(this.id,d.T.indent(i.cursorConfig,t.getModel(),t.getSelections())),t.pushUndoStop())}}class H extends r.ks{constructor(){super({id:"editor.action.outdentLines",label:x.kg("lines.outdent","Outdent Line"),alias:"Outdent Line",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:2140,weight:100}})}run(e,t){n.Yh.Outdent.runEditorCommand(e,t,null)}}class B extends r.ks{constructor(){super({id:"editor.action.insertLineBefore",label:x.kg("lines.insertBefore","Insert Line Above"),alias:"Insert Line Above",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:3075,weight:100}})}run(e,t){const i=t._getViewModel();i&&(t.pushUndoStop(),t.executeCommands(this.id,u.AO.lineInsertBefore(i.cursorConfig,t.getModel(),t.getSelections())))}}class W extends r.ks{constructor(){super({id:"editor.action.insertLineAfter",label:x.kg("lines.insertAfter","Insert Line Below"),alias:"Insert Line Below",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:2051,weight:100}})}run(e,t){const i=t._getViewModel();i&&(t.pushUndoStop(),t.executeCommands(this.id,u.AO.lineInsertAfter(i.cursorConfig,t.getModel(),t.getSelections())))}}class V extends r.ks{run(e,t){if(!t.hasModel())return;const i=t.getSelection(),s=this._getRangesToDelete(t),n=[];for(let a=0,c=s.length-1;a<c;a++){const e=s[a],t=s[a+1];null===l.Q.intersectRanges(e,t)?n.push(e):s[a+1]=l.Q.plusRange(e,t)}n.push(s[s.length-1]);const r=this._getEndCursorState(i,n),o=n.map((e=>c.k.replace(e,"")));t.pushUndoStop(),t.executeEdits(this.id,o,r),t.pushUndoStop()}}class z extends r.ks{constructor(){super({id:"editor.action.joinLines",label:x.kg("lines.joinLines","Join Lines"),alias:"Join Lines",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:0,mac:{primary:296},weight:100}})}run(e,t){const i=t.getSelections();if(null===i)return;let s=t.getSelection();if(null===s)return;i.sort(l.Q.compareRangesUsingStarts);const n=[],r=i.reduce(((e,t)=>e.isEmpty()?e.endLineNumber===t.startLineNumber?(s.equalsSelection(e)&&(s=t),t):t.startLineNumber>e.endLineNumber+1?(n.push(e),t):new p.L(e.startLineNumber,e.startColumn,t.endLineNumber,t.endColumn):t.startLineNumber>e.endLineNumber?(n.push(e),t):new p.L(e.startLineNumber,e.startColumn,t.endLineNumber,t.endColumn)));n.push(r);const o=t.getModel();if(null===o)return;const a=[],h=[];let d=s,u=0;for(let g=0,m=n.length;g<m;g++){const e=n[g],t=e.startLineNumber,i=1;let r,m,f=0;const _=o.getLineLength(e.endLineNumber)-e.endColumn;if(e.isEmpty()||e.startLineNumber===e.endLineNumber){const i=e.getStartPosition();i.lineNumber<o.getLineCount()?(r=t+1,m=o.getLineMaxColumn(r)):(r=i.lineNumber,m=o.getLineMaxColumn(i.lineNumber))}else r=e.endLineNumber,m=o.getLineMaxColumn(r);let v=o.getLineContent(t);for(let s=t+1;s<=r;s++){const e=o.getLineContent(s),t=o.getLineFirstNonWhitespaceColumn(s);if(t>=1){let i=!0;""===v&&(i=!1),!i||" "!==v.charAt(v.length-1)&&"\t"!==v.charAt(v.length-1)||(i=!1,v=v.replace(/[\s\uFEFF\xA0]+$/g," "));const s=e.substr(t-1);v+=(i?" ":"")+s,f=i?s.length+1:s.length}else f=0}const C=new l.Q(t,i,r,m);if(!C.isEmpty()){let i;e.isEmpty()?(a.push(c.k.replace(C,v)),i=new p.L(C.startLineNumber-u,v.length-f+1,t-u,v.length-f+1)):e.startLineNumber===e.endLineNumber?(a.push(c.k.replace(C,v)),i=new p.L(e.startLineNumber-u,e.startColumn,e.endLineNumber-u,e.endColumn)):(a.push(c.k.replace(C,v)),i=new p.L(e.startLineNumber-u,e.startColumn,e.startLineNumber-u,v.length-_)),null!==l.Q.intersectRanges(C,s)?d=i:h.push(i)}u+=C.endLineNumber-C.startLineNumber}h.unshift(d),t.pushUndoStop(),t.executeEdits(this.id,a,h),t.pushUndoStop()}}class G extends r.ks{constructor(){super({id:"editor.action.transpose",label:x.kg("editor.transpose","Transpose Characters around the Cursor"),alias:"Transpose Characters around the Cursor",precondition:m.R.writable})}run(e,t){const i=t.getSelections();if(null===i)return;const s=t.getModel();if(null===s)return;const n=[];for(let r=0,a=i.length;r<a;r++){const e=i[r];if(!e.isEmpty())continue;const t=e.getStartPosition(),a=s.getLineMaxColumn(t.lineNumber);if(t.column>=a){if(t.lineNumber===s.getLineCount())continue;const e=new l.Q(t.lineNumber,Math.max(1,t.column-1),t.lineNumber+1,1),i=s.getValueInRange(e).split("").reverse().join("");n.push(new o.iu(new p.L(t.lineNumber,Math.max(1,t.column-1),t.lineNumber+1,1),i))}else{const e=new l.Q(t.lineNumber,Math.max(1,t.column-1),t.lineNumber,t.column+1),i=s.getValueInRange(e).split("").reverse().join("");n.push(new o.ui(e,i,new p.L(t.lineNumber,t.column+1,t.lineNumber,t.column+1)))}}t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}}class j extends r.ks{run(e,t){const i=t.getSelections();if(null===i)return;const s=t.getModel();if(null===s)return;const n=t.getOption(132),r=[];for(const o of i)if(o.isEmpty()){const e=o.getStartPosition(),i=t.getConfiguredWordAtPosition(e);if(!i)continue;const a=new l.Q(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn),h=s.getValueInRange(a);r.push(c.k.replace(a,this._modifyText(h,n)))}else{const e=s.getValueInRange(o);r.push(c.k.replace(o,this._modifyText(e,n)))}t.pushUndoStop(),t.executeEdits(this.id,r),t.pushUndoStop()}}class K{constructor(e,t){this._pattern=e,this._flags=t,this._actual=null,this._evaluated=!1}get(){if(!this._evaluated){this._evaluated=!0;try{this._actual=new RegExp(this._pattern,this._flags)}catch(e){}}return this._actual}isSupported(){return null!==this.get()}}class Y extends j{static{this.titleBoundary=new K("(^|[^\\p{L}\\p{N}']|((^|\\P{L})'))\\p{L}","gmu")}constructor(){super({id:"editor.action.transformToTitlecase",label:x.kg("editor.transformToTitlecase","Transform to Title Case"),alias:"Transform to Title Case",precondition:m.R.writable})}_modifyText(e,t){const i=Y.titleBoundary.get();return i?e.toLocaleLowerCase().replace(i,(e=>e.toLocaleUpperCase())):e}}class q extends j{static{this.caseBoundary=new K("(\\p{Ll})(\\p{Lu})","gmu")}static{this.singleLetters=new K("(\\p{Lu}|\\p{N})(\\p{Lu})(\\p{Ll})","gmu")}constructor(){super({id:"editor.action.transformToSnakecase",label:x.kg("editor.transformToSnakecase","Transform to Snake Case"),alias:"Transform to Snake Case",precondition:m.R.writable})}_modifyText(e,t){const i=q.caseBoundary.get(),s=q.singleLetters.get();return i&&s?e.replace(i,"$1_$2").replace(s,"$1_$2$3").toLocaleLowerCase():e}}class $ extends j{static{this.wordBoundary=new K("[_\\s-]","gm")}constructor(){super({id:"editor.action.transformToCamelcase",label:x.kg("editor.transformToCamelcase","Transform to Camel Case"),alias:"Transform to Camel Case",precondition:m.R.writable})}_modifyText(e,t){const i=$.wordBoundary.get();if(!i)return e;const s=e.split(i);return s.shift()+s.map((e=>e.substring(0,1).toLocaleUpperCase()+e.substring(1))).join("")}}class Q extends j{static{this.wordBoundary=new K("[_\\s-]","gm")}static{this.wordBoundaryToMaintain=new K("(?<=\\.)","gm")}constructor(){super({id:"editor.action.transformToPascalcase",label:x.kg("editor.transformToPascalcase","Transform to Pascal Case"),alias:"Transform to Pascal Case",precondition:m.R.writable})}_modifyText(e,t){const i=Q.wordBoundary.get(),s=Q.wordBoundaryToMaintain.get();if(!i||!s)return e;return e.split(s).map((e=>e.split(i))).flat().map((e=>e.substring(0,1).toLocaleUpperCase()+e.substring(1))).join("")}}class X extends j{static isSupported(){return[this.caseBoundary,this.singleLetters,this.underscoreBoundary].every((e=>e.isSupported()))}static{this.caseBoundary=new K("(\\p{Ll})(\\p{Lu})","gmu")}static{this.singleLetters=new K("(\\p{Lu}|\\p{N})(\\p{Lu}\\p{Ll})","gmu")}static{this.underscoreBoundary=new K("(\\S)(_)(\\S)","gm")}constructor(){super({id:"editor.action.transformToKebabcase",label:x.kg("editor.transformToKebabcase","Transform to Kebab Case"),alias:"Transform to Kebab Case",precondition:m.R.writable})}_modifyText(e,t){const i=X.caseBoundary.get(),s=X.singleLetters.get(),n=X.underscoreBoundary.get();return i&&s&&n?e.replace(n,"$1-$3").replace(i,"$1-$2").replace(s,"$1-$2").toLocaleLowerCase():e}}(0,r.Fl)(class extends N{constructor(){super(!1,{id:"editor.action.copyLinesUpAction",label:x.kg("lines.copyUp","Copy Line Up"),alias:"Copy Line Up",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:1552,linux:{primary:3600},weight:100},menuOpts:{menuId:k.D8.MenubarSelectionMenu,group:"2_line",title:x.kg({key:"miCopyLinesUp",comment:["&& denotes a mnemonic"]},"&&Copy Line Up"),order:1}})}}),(0,r.Fl)(class extends N{constructor(){super(!0,{id:"editor.action.copyLinesDownAction",label:x.kg("lines.copyDown","Copy Line Down"),alias:"Copy Line Down",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:1554,linux:{primary:3602},weight:100},menuOpts:{menuId:k.D8.MenubarSelectionMenu,group:"2_line",title:x.kg({key:"miCopyLinesDown",comment:["&& denotes a mnemonic"]},"Co&&py Line Down"),order:2}})}}),(0,r.Fl)(I),(0,r.Fl)(class extends O{constructor(){super(!1,{id:"editor.action.moveLinesUpAction",label:x.kg("lines.moveUp","Move Line Up"),alias:"Move Line Up",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:528,linux:{primary:528},weight:100},menuOpts:{menuId:k.D8.MenubarSelectionMenu,group:"2_line",title:x.kg({key:"miMoveLinesUp",comment:["&& denotes a mnemonic"]},"Mo&&ve Line Up"),order:3}})}}),(0,r.Fl)(class extends O{constructor(){super(!0,{id:"editor.action.moveLinesDownAction",label:x.kg("lines.moveDown","Move Line Down"),alias:"Move Line Down",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:530,linux:{primary:530},weight:100},menuOpts:{menuId:k.D8.MenubarSelectionMenu,group:"2_line",title:x.kg({key:"miMoveLinesDown",comment:["&& denotes a mnemonic"]},"Move &&Line Down"),order:4}})}}),(0,r.Fl)(class extends D{constructor(){super(!1,{id:"editor.action.sortLinesAscending",label:x.kg("lines.sortAscending","Sort Lines Ascending"),alias:"Sort Lines Ascending",precondition:m.R.writable})}}),(0,r.Fl)(class extends D{constructor(){super(!0,{id:"editor.action.sortLinesDescending",label:x.kg("lines.sortDescending","Sort Lines Descending"),alias:"Sort Lines Descending",precondition:m.R.writable})}}),(0,r.Fl)(M),(0,r.Fl)(P),(0,r.Fl)(F),(0,r.Fl)(U),(0,r.Fl)(H),(0,r.Fl)(B),(0,r.Fl)(W),(0,r.Fl)(class extends V{constructor(){super({id:"deleteAllLeft",label:x.kg("lines.deleteAllLeft","Delete All Left"),alias:"Delete All Left",precondition:m.R.writable,kbOpts:{kbExpr:m.R.textInputFocus,primary:0,mac:{primary:2049},weight:100}})}_getEndCursorState(e,t){let i=null;const s=[];let n=0;return t.forEach((t=>{let r;if(1===t.endColumn&&n>0){const e=t.startLineNumber-n;r=new p.L(e,t.startColumn,e,t.startColumn)}else r=new p.L(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn);n+=t.endLineNumber-t.startLineNumber,t.intersectRanges(e)?i=r:s.push(r)})),i&&s.unshift(i),s}_getRangesToDelete(e){const t=e.getSelections();if(null===t)return[];let i=t;const s=e.getModel();return null===s?[]:(i.sort(l.Q.compareRangesUsingStarts),i=i.map((e=>{if(e.isEmpty()){if(1===e.startColumn){const t=Math.max(1,e.startLineNumber-1),i=1===e.startLineNumber?1:s.getLineLength(t)+1;return new l.Q(t,i,e.startLineNumber,1)}return new l.Q(e.startLineNumber,1,e.startLineNumber,e.startColumn)}return new l.Q(e.startLineNumber,1,e.endLineNumber,e.endColumn)})),i)}}),(0,r.Fl)(class extends V{constructor(){super({id:"deleteAllRight",label:x.kg("lines.deleteAllRight","Delete All Right"),alias:"Delete All Right",precondition:m.R.writable,kbOpts:{kbExpr:m.R.textInputFocus,primary:0,mac:{primary:297,secondary:[2068]},weight:100}})}_getEndCursorState(e,t){let i=null;const s=[];for(let n=0,r=t.length,o=0;n<r;n++){const r=t[n],a=new p.L(r.startLineNumber-o,r.startColumn,r.startLineNumber-o,r.startColumn);r.intersectRanges(e)?i=a:s.push(a)}return i&&s.unshift(i),s}_getRangesToDelete(e){const t=e.getModel();if(null===t)return[];const i=e.getSelections();if(null===i)return[];const s=i.map((e=>{if(e.isEmpty()){const i=t.getLineMaxColumn(e.startLineNumber);return e.startColumn===i?new l.Q(e.startLineNumber,e.startColumn,e.startLineNumber+1,1):new l.Q(e.startLineNumber,e.startColumn,e.startLineNumber,i)}return e}));return s.sort(l.Q.compareRangesUsingStarts),s}}),(0,r.Fl)(z),(0,r.Fl)(G),(0,r.Fl)(class extends j{constructor(){super({id:"editor.action.transformToUppercase",label:x.kg("editor.transformToUppercase","Transform to Uppercase"),alias:"Transform to Uppercase",precondition:m.R.writable})}_modifyText(e,t){return e.toLocaleUpperCase()}}),(0,r.Fl)(class extends j{constructor(){super({id:"editor.action.transformToLowercase",label:x.kg("editor.transformToLowercase","Transform to Lowercase"),alias:"Transform to Lowercase",precondition:m.R.writable})}_modifyText(e,t){return e.toLocaleLowerCase()}}),q.caseBoundary.isSupported()&&q.singleLetters.isSupported()&&(0,r.Fl)(q),$.wordBoundary.isSupported()&&(0,r.Fl)($),Q.wordBoundary.isSupported()&&(0,r.Fl)(Q),Y.titleBoundary.isSupported()&&(0,r.Fl)(Y),X.isSupported()&&(0,r.Fl)(X)},85117:(e,t,i)=>{"use strict";var s,n=i(25890),r=i(90766),o=i(18447),a=i(47661),c=i(64383),l=i(41234),h=i(5662),d=i(91508),u=i(79400),g=i(31450),p=i(80301),m=i(83069),f=i(36677),_=i(60002),v=i(87289),C=i(17469),E=i(78209),b=i(32848),S=i(56942),y=i(66261),w=i(32500),R=i(78381),L=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},T=function(e,t){return function(i,s){t(i,s,e)}};const x=new b.N1("LinkedEditingInputVisible",!1);let k=class extends h.jG{static{s=this}static{this.ID="editor.contrib.linkedEditing"}static{this.DECORATION=v.kI.register({description:"linked-editing",stickiness:0,className:"linked-editing-decoration"})}static get(e){return e.getContribution(s.ID)}constructor(e,t,i,s,n){super(),this.languageConfigurationService=s,this._syncRangesToken=0,this._localToDispose=this._register(new h.Cm),this._editor=e,this._providers=i.linkedEditingRangeProvider,this._enabled=!1,this._visibleContextKey=x.bindTo(t),this._debounceInformation=n.for(this._providers,"Linked Editing",{max:200}),this._currentDecorations=this._editor.createDecorationsCollection(),this._languageWordPattern=null,this._currentWordPattern=null,this._ignoreChangeEvent=!1,this._localToDispose=this._register(new h.Cm),this._rangeUpdateTriggerPromise=null,this._rangeSyncTriggerPromise=null,this._currentRequestCts=null,this._currentRequestPosition=null,this._currentRequestModelVersion=null,this._register(this._editor.onDidChangeModel((()=>this.reinitialize(!0)))),this._register(this._editor.onDidChangeConfiguration((e=>{(e.hasChanged(70)||e.hasChanged(94))&&this.reinitialize(!1)}))),this._register(this._providers.onDidChange((()=>this.reinitialize(!1)))),this._register(this._editor.onDidChangeModelLanguage((()=>this.reinitialize(!0)))),this.reinitialize(!0)}reinitialize(e){const t=this._editor.getModel(),i=null!==t&&(this._editor.getOption(70)||this._editor.getOption(94))&&this._providers.has(t);if(i===this._enabled&&!e)return;if(this._enabled=i,this.clearRanges(),this._localToDispose.clear(),!i||null===t)return;this._localToDispose.add(l.Jh.runAndSubscribe(t.onDidChangeLanguageConfiguration,(()=>{this._languageWordPattern=this.languageConfigurationService.getLanguageConfiguration(t.getLanguageId()).getWordDefinition()})));const s=new r.ve(this._debounceInformation.get(t)),n=()=>{this._rangeUpdateTriggerPromise=s.trigger((()=>this.updateRanges()),this._debounceDuration??this._debounceInformation.get(t))},o=new r.ve(0),a=e=>{this._rangeSyncTriggerPromise=o.trigger((()=>this._syncRanges(e)))};this._localToDispose.add(this._editor.onDidChangeCursorPosition((()=>{n()}))),this._localToDispose.add(this._editor.onDidChangeModelContent((e=>{if(!this._ignoreChangeEvent&&this._currentDecorations.length>0){const t=this._currentDecorations.getRange(0);if(t&&e.changes.every((e=>t.intersectRanges(e.range))))return void a(this._syncRangesToken)}n()}))),this._localToDispose.add({dispose:()=>{s.dispose(),o.dispose()}}),this.updateRanges()}_syncRanges(e){if(!this._editor.hasModel()||e!==this._syncRangesToken||0===this._currentDecorations.length)return;const t=this._editor.getModel(),i=this._currentDecorations.getRange(0);if(!i||i.startLineNumber!==i.endLineNumber)return this.clearRanges();const s=t.getValueInRange(i);if(this._currentWordPattern){const e=s.match(this._currentWordPattern);if((e?e[0].length:0)!==s.length)return this.clearRanges()}const n=[];for(let r=1,o=this._currentDecorations.length;r<o;r++){const e=this._currentDecorations.getRange(r);if(e)if(e.startLineNumber!==e.endLineNumber)n.push({range:e,text:s});else{let i=t.getValueInRange(e),r=s,o=e.startColumn,a=e.endColumn;const c=d.Qp(i,r);o+=c,i=i.substr(c),r=r.substr(c);const l=d.Vi(i,r);a-=l,i=i.substr(0,i.length-l),r=r.substr(0,r.length-l),o===a&&0===r.length||n.push({range:new f.Q(e.startLineNumber,o,e.endLineNumber,a),text:r})}}if(0!==n.length)try{this._editor.popUndoStop(),this._ignoreChangeEvent=!0;const e=this._editor._getViewModel().getPrevEditOperationType();this._editor.executeEdits("linkedEditing",n),this._editor._getViewModel().setPrevEditOperationType(e)}finally{this._ignoreChangeEvent=!1}}dispose(){this.clearRanges(),super.dispose()}clearRanges(){this._visibleContextKey.set(!1),this._currentDecorations.clear(),this._currentRequestCts&&(this._currentRequestCts.cancel(),this._currentRequestCts=null,this._currentRequestPosition=null)}async updateRanges(e=!1){if(!this._editor.hasModel())return void this.clearRanges();const t=this._editor.getPosition();if(!this._enabled&&!e||this._editor.getSelections().length>1)return void this.clearRanges();const i=this._editor.getModel(),n=i.getVersionId();if(this._currentRequestPosition&&this._currentRequestModelVersion===n){if(t.equals(this._currentRequestPosition))return;if(this._currentDecorations.length>0){const e=this._currentDecorations.getRange(0);if(e&&e.containsPosition(t))return}}this.clearRanges(),this._currentRequestPosition=t,this._currentRequestModelVersion=n;const r=this._currentRequestCts=new o.Qi;try{const e=new R.W(!1),o=await I(this._providers,i,t,r.token);if(this._debounceInformation.update(i,e.elapsed()),r!==this._currentRequestCts)return;if(this._currentRequestCts=null,n!==i.getVersionId())return;let a=[];o?.ranges&&(a=o.ranges),this._currentWordPattern=o?.wordPattern||this._languageWordPattern;let c=!1;for(let i=0,s=a.length;i<s;i++)if(f.Q.containsPosition(a[i],t)){if(c=!0,0!==i){const e=a[i];a.splice(i,1),a.unshift(e)}break}if(!c)return void this.clearRanges();const l=a.map((e=>({range:e,options:s.DECORATION})));this._visibleContextKey.set(!0),this._currentDecorations.set(l),this._syncRangesToken++}catch(a){(0,c.MB)(a)||(0,c.dz)(a),this._currentRequestCts!==r&&this._currentRequestCts||this.clearRanges()}}};k=s=L([T(1,b.fN),T(2,S.ILanguageFeaturesService),T(3,C.JZ),T(4,w.ILanguageFeatureDebounceService)],k);class A extends g.ks{constructor(){super({id:"editor.action.linkedEditing",label:E.kg("linkedEditing.label","Start Linked Editing"),alias:"Start Linked Editing",precondition:b.M$.and(_.R.writable,_.R.hasRenameProvider),kbOpts:{kbExpr:_.R.editorTextFocus,primary:3132,weight:100}})}runCommand(e,t){const i=e.get(p.T),[s,n]=Array.isArray(t)&&t||[void 0,void 0];return u.r.isUri(s)&&m.y.isIPosition(n)?i.openCodeEditor({resource:s},i.getActiveCodeEditor()).then((e=>{e&&(e.setPosition(n),e.invokeWithinContext((t=>(this.reportTelemetry(t,e),this.run(t,e)))))}),c.dz):super.runCommand(e,t)}run(e,t){const i=k.get(t);return i?Promise.resolve(i.updateRanges(!0)):Promise.resolve()}}const N=g.DX.bindToContribution(k.get);function I(e,t,i,s){const o=e.ordered(t);return(0,r.$1)(o.map((e=>async()=>{try{return await e.provideLinkedEditingRanges(t,i,s)}catch(n){return void(0,c.M_)(n)}})),(e=>!!e&&n.EI(e?.ranges)))}(0,g.E_)(new N({id:"cancelLinkedEditingInput",precondition:x,handler:e=>e.clearRanges(),kbOpts:{kbExpr:_.R.editorTextFocus,weight:199,primary:9,secondary:[1033]}}));(0,y.x1A)("editor.linkedEditingBackground",{dark:a.Q1.fromHex("#f00").transparent(.3),light:a.Q1.fromHex("#f00").transparent(.3),hcDark:a.Q1.fromHex("#f00").transparent(.3),hcLight:a.Q1.white},E.kg("editorLinkedEditingBackground","Background color when the editor auto renames on type."));(0,g.ke)("_executeLinkedEditingProvider",((e,t,i)=>{const{linkedEditingRangeProvider:s}=e.get(S.ILanguageFeaturesService);return I(s,t,i,o.XO.None)})),(0,g.HW)(k.ID,k,1),(0,g.Fl)(A)},14614:(e,t,i)=>{"use strict";var s=i(90766),n=i(18447),r=i(64383),o=i(16980),a=i(5662),c=i(36456),l=i(98067),h=i(89403),d=i(78381),u=i(79400),g=i(31450),p=i(87289),m=i(32500),f=i(56942),_=i(37927),v=i(25890),C=i(631),E=i(36677),b=i(23750),S=i(50091);class y{constructor(e,t){this._link=e,this._provider=t}toJSON(){return{range:this.range,url:this.url,tooltip:this.tooltip}}get range(){return this._link.range}get url(){return this._link.url}get tooltip(){return this._link.tooltip}async resolve(e){return this._link.url?this._link.url:"function"===typeof this._provider.resolveLink?Promise.resolve(this._provider.resolveLink(this._link,e)).then((t=>(this._link=t||this._link,this._link.url?this.resolve(e):Promise.reject(new Error("missing"))))):Promise.reject(new Error("missing"))}}class w{constructor(e){this._disposables=new a.Cm;let t=[];for(const[i,s]of e){const e=i.links.map((e=>new y(e,s)));t=w._union(t,e),(0,a.Xm)(i)&&this._disposables.add(i)}this.links=t}dispose(){this._disposables.dispose(),this.links.length=0}static _union(e,t){const i=[];let s,n,r,o;for(s=0,r=0,n=e.length,o=t.length;s<n&&r<o;){const n=e[s],o=t[r];if(E.Q.areIntersectingOrTouching(n.range,o.range)){s++;continue}E.Q.compareRangesUsingStarts(n.range,o.range)<0?(i.push(n),s++):(i.push(o),r++)}for(;s<n;s++)i.push(e[s]);for(;r<o;r++)i.push(t[r]);return i}}function R(e,t,i){const s=[],n=e.ordered(t).reverse().map(((e,n)=>Promise.resolve(e.provideLinks(t,i)).then((t=>{t&&(s[n]=[t,e])}),r.M_)));return Promise.all(n).then((()=>{const e=new w((0,v.Yc)(s));return i.isCancellationRequested?(e.dispose(),new w([])):e}))}S.w.registerCommand("_executeLinkProvider",(async(e,...t)=>{let[i,s]=t;(0,C.j)(i instanceof u.r),"number"!==typeof s&&(s=0);const{linkProvider:r}=e.get(f.ILanguageFeaturesService),o=e.get(b.IModelService).getModel(i);if(!o)return[];const a=await R(r,o,n.XO.None);if(!a)return[];for(let l=0;l<Math.min(s,a.links.length);l++)await a.links[l].resolve(n.XO.None);const c=a.links.slice(0);return a.dispose(),c}));var L,T=i(78209),x=i(58591),k=i(49099),A=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},N=function(e,t){return function(i,s){t(i,s,e)}};let I=class extends a.jG{static{L=this}static{this.ID="editor.linkDetector"}static get(e){return e.getContribution(L.ID)}constructor(e,t,i,n,r){super(),this.editor=e,this.openerService=t,this.notificationService=i,this.languageFeaturesService=n,this.providers=this.languageFeaturesService.linkProvider,this.debounceInformation=r.for(this.providers,"Links",{min:1e3,max:4e3}),this.computeLinks=this._register(new s.uC((()=>this.computeLinksNow()),1e3)),this.computePromise=null,this.activeLinksList=null,this.currentOccurrences={},this.activeLinkDecorationId=null;const o=this._register(new _.gi(e));this._register(o.onMouseMoveOrRelevantKeyDown((([e,t])=>{this._onEditorMouseMove(e,t)}))),this._register(o.onExecute((e=>{this.onEditorMouseUp(e)}))),this._register(o.onCancel((e=>{this.cleanUpActiveLinkDecoration()}))),this._register(e.onDidChangeConfiguration((e=>{e.hasChanged(71)&&(this.updateDecorations([]),this.stop(),this.computeLinks.schedule(0))}))),this._register(e.onDidChangeModelContent((e=>{this.editor.hasModel()&&this.computeLinks.schedule(this.debounceInformation.get(this.editor.getModel()))}))),this._register(e.onDidChangeModel((e=>{this.currentOccurrences={},this.activeLinkDecorationId=null,this.stop(),this.computeLinks.schedule(0)}))),this._register(e.onDidChangeModelLanguage((e=>{this.stop(),this.computeLinks.schedule(0)}))),this._register(this.providers.onDidChange((e=>{this.stop(),this.computeLinks.schedule(0)}))),this.computeLinks.schedule(0)}async computeLinksNow(){if(!this.editor.hasModel()||!this.editor.getOption(71))return;const e=this.editor.getModel();if(!e.isTooLargeForSyncing()&&this.providers.has(e)){this.activeLinksList&&(this.activeLinksList.dispose(),this.activeLinksList=null),this.computePromise=(0,s.SS)((t=>R(this.providers,e,t)));try{const t=new d.W(!1);if(this.activeLinksList=await this.computePromise,this.debounceInformation.update(e,t.elapsed()),e.isDisposed())return;this.updateDecorations(this.activeLinksList.links)}catch(t){(0,r.dz)(t)}finally{this.computePromise=null}}}updateDecorations(e){const t="altKey"===this.editor.getOption(78),i=[],s=Object.keys(this.currentOccurrences);for(const r of s){const e=this.currentOccurrences[r];i.push(e.decorationId)}const n=[];if(e)for(const r of e)n.push(M.decoration(r,t));this.editor.changeDecorations((t=>{const s=t.deltaDecorations(i,n);this.currentOccurrences={},this.activeLinkDecorationId=null;for(let i=0,n=s.length;i<n;i++){const t=new M(e[i],s[i]);this.currentOccurrences[t.decorationId]=t}}))}_onEditorMouseMove(e,t){const i="altKey"===this.editor.getOption(78);if(this.isEnabled(e,t)){this.cleanUpActiveLinkDecoration();const t=this.getLinkOccurrence(e.target.position);t&&this.editor.changeDecorations((e=>{t.activate(e,i),this.activeLinkDecorationId=t.decorationId}))}else this.cleanUpActiveLinkDecoration()}cleanUpActiveLinkDecoration(){const e="altKey"===this.editor.getOption(78);if(this.activeLinkDecorationId){const t=this.currentOccurrences[this.activeLinkDecorationId];t&&this.editor.changeDecorations((i=>{t.deactivate(i,e)})),this.activeLinkDecorationId=null}}onEditorMouseUp(e){if(!this.isEnabled(e))return;const t=this.getLinkOccurrence(e.target.position);t&&this.openLinkOccurrence(t,e.hasSideBySideModifier,!0)}openLinkOccurrence(e,t,i=!1){if(!this.openerService)return;const{link:s}=e;s.resolve(n.XO.None).then((e=>{if("string"===typeof e&&this.editor.hasModel()){const t=this.editor.getModel().uri;if(t.scheme===c.ny.file&&e.startsWith(`${c.ny.file}:`)){const i=u.r.parse(e);if(i.scheme===c.ny.file){const s=h.su(i);let n=null;s.startsWith("/./")||s.startsWith("\\.\\")?n=`.${s.substr(1)}`:(s.startsWith("//./")||s.startsWith("\\\\.\\"))&&(n=`.${s.substr(2)}`),n&&(e=h.uJ(t,n))}}}return this.openerService.open(e,{openToSide:t,fromUserGesture:i,allowContributedOpeners:!0,allowCommands:!0,fromWorkspace:!0})}),(e=>{const t=e instanceof Error?e.message:e;"invalid"===t?this.notificationService.warn(T.kg("invalid.url","Failed to open this link because it is not well-formed: {0}",s.url.toString())):"missing"===t?this.notificationService.warn(T.kg("missing.url","Failed to open this link because its target is missing.")):(0,r.dz)(e)}))}getLinkOccurrence(e){if(!this.editor.hasModel()||!e)return null;const t=this.editor.getModel().getDecorationsInRange({startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:e.lineNumber,endColumn:e.column},0,!0);for(const i of t){const e=this.currentOccurrences[i.id];if(e)return e}return null}isEnabled(e,t){return Boolean(6===e.target.type&&(e.hasTriggerModifier||t&&t.keyCodeIsTriggerKey))}stop(){this.computeLinks.cancel(),this.activeLinksList&&(this.activeLinksList?.dispose(),this.activeLinksList=null),this.computePromise&&(this.computePromise.cancel(),this.computePromise=null)}dispose(){super.dispose(),this.stop()}};I=L=A([N(1,k.C),N(2,x.Ot),N(3,f.ILanguageFeaturesService),N(4,m.ILanguageFeatureDebounceService)],I);const O=p.kI.register({description:"detected-link",stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link"}),D=p.kI.register({description:"detected-link-active",stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link-active"});class M{static decoration(e,t){return{range:e.range,options:M._getOptions(e,t,!1)}}static _getOptions(e,t,i){const s={...i?D:O};return s.hoverMessage=function(e,t){const i=e.url&&/^command:/i.test(e.url.toString()),s=e.tooltip?e.tooltip:i?T.kg("links.navigate.executeCmd","Execute command"):T.kg("links.navigate.follow","Follow link"),n=t?l.zx?T.kg("links.navigate.kb.meta.mac","cmd + click"):T.kg("links.navigate.kb.meta","ctrl + click"):l.zx?T.kg("links.navigate.kb.alt.mac","option + click"):T.kg("links.navigate.kb.alt","alt + click");if(e.url){let t="";if(/^command:/i.test(e.url.toString())){const i=e.url.toString().match(/^command:([^?#]+)/);if(i){const e=i[1];t=T.kg("tooltip.explanation","Execute command {0}",e)}}return new o.Bc("",!0).appendLink(e.url.toString(!0).replace(/ /g,"%20"),s,t).appendMarkdown(` (${n})`)}return(new o.Bc).appendText(`${s} (${n})`)}(e,t),s}constructor(e,t){this.link=e,this.decorationId=t}activate(e,t){e.changeDecorationOptions(this.decorationId,M._getOptions(this.link,t,!0))}deactivate(e,t){e.changeDecorationOptions(this.decorationId,M._getOptions(this.link,t,!1))}}class P extends g.ks{constructor(){super({id:"editor.action.openLink",label:T.kg("label","Open Link"),alias:"Open Link",precondition:void 0})}run(e,t){const i=I.get(t);if(!i)return;if(!t.hasModel())return;const s=t.getSelections();for(const n of s){const e=i.getLinkOccurrence(n.getEndPosition());e&&i.openLinkOccurrence(e,!1)}}}(0,g.HW)(I.ID,I,1),(0,g.Fl)(P)},95200:(e,t,i)=>{"use strict";var s=i(5662),n=i(31450);class r extends s.jG{static{this.ID="editor.contrib.longLinesHelper"}constructor(e){super(),this._editor=e,this._register(this._editor.onMouseDown((e=>{const t=this._editor.getOption(118);t>=0&&6===e.target.type&&e.target.position.column>=t&&this._editor.updateOptions({stopRenderingLineAfter:-1})})))}}(0,n.HW)(r.ID,r,2)},99645:(e,t,i)=>{"use strict";i.d(t,{k:()=>v});var s,n=i(68214),r=i(11007),o=i(41234),a=i(16980),c=i(5662),l=i(31450),h=i(36677),d=i(20492),u=i(78209),g=i(32848),p=i(49099),m=i(8597),f=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},_=function(e,t){return function(i,s){t(i,s,e)}};let v=class{static{s=this}static{this.ID="editor.contrib.messageController"}static{this.MESSAGE_VISIBLE=new g.N1("messageVisible",!1,u.kg("messageVisible","Whether the editor is currently showing an inline message"))}static get(e){return e.getContribution(s.ID)}constructor(e,t,i){this._openerService=i,this._messageWidget=new c.HE,this._messageListeners=new c.Cm,this._mouseOverMessage=!1,this._editor=e,this._visible=s.MESSAGE_VISIBLE.bindTo(t)}dispose(){this._message?.dispose(),this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){let i;(0,r.xE)((0,a.VS)(e)?e.value:e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._message=(0,a.VS)(e)?(0,n.Gc)(e,{actionHandler:{callback:t=>{this.closeMessage(),(0,d.i)(this._openerService,t,(0,a.VS)(e)?e.isTrusted:void 0)},disposables:this._messageListeners}}):void 0,this._messageWidget.value=new E(this._editor,t,"string"===typeof e?e:this._message.element),this._messageListeners.add(o.Jh.debounce(this._editor.onDidBlurEditorText,((e,t)=>t),0)((()=>{this._mouseOverMessage||this._messageWidget.value&&m.QX(m.bq(),this._messageWidget.value.getDomNode())||this.closeMessage()}))),this._messageListeners.add(this._editor.onDidChangeCursorPosition((()=>this.closeMessage()))),this._messageListeners.add(this._editor.onDidDispose((()=>this.closeMessage()))),this._messageListeners.add(this._editor.onDidChangeModel((()=>this.closeMessage()))),this._messageListeners.add(m.ko(this._messageWidget.value.getDomNode(),m.Bx.MOUSE_ENTER,(()=>this._mouseOverMessage=!0),!0)),this._messageListeners.add(m.ko(this._messageWidget.value.getDomNode(),m.Bx.MOUSE_LEAVE,(()=>this._mouseOverMessage=!1),!0)),this._messageListeners.add(this._editor.onMouseMove((e=>{e.target.position&&(i?i.containsPosition(e.target.position)||this.closeMessage():i=new h.Q(t.lineNumber-3,1,e.target.position.lineNumber+3,1))})))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(E.fadeOut(this._messageWidget.value))}};v=s=f([_(1,g.fN),_(2,p.C)],v);const C=l.DX.bindToContribution(v.get);(0,l.E_)(new C({id:"leaveEditorMessage",precondition:v.MESSAGE_VISIBLE,handler:e=>e.closeMessage(),kbOpts:{weight:130,primary:9}}));class E{static fadeOut(e){const t=()=>{e.dispose(),clearTimeout(i),e.getDomNode().removeEventListener("animationend",t)},i=setTimeout(t,110);return e.getDomNode().addEventListener("animationend",t),e.getDomNode().classList.add("fadeOut"),{dispose:t}}constructor(e,{lineNumber:t,column:i},s){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:i},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";const n=document.createElement("div");n.classList.add("anchor","top"),this._domNode.appendChild(n);const r=document.createElement("div");"string"===typeof s?(r.classList.add("message"),r.textContent=s):(s.classList.add("message"),r.appendChild(s)),this._domNode.appendChild(r);const o=document.createElement("div");o.classList.add("anchor","below"),this._domNode.appendChild(o),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2],positionAffinity:1}}afterRender(e){this._domNode.classList.toggle("below",2===e)}}(0,l.HW)(v.ID,v,4)},50352:(e,t,i)=>{"use strict";var s,n=i(11007),r=i(90766),o=i(24939),a=i(5662),c=i(31450),l=i(50672),h=i(36677),d=i(75326),u=i(60002),g=i(34175),p=i(78209),m=i(27195),f=i(32848),_=i(56942),v=i(13864),C=i(63591),E=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},b=function(e,t){return function(i,s){t(i,s,e)}};function S(e,t){const i=t.filter((t=>!e.find((e=>e.equals(t)))));if(i.length>=1){const e=i.map((e=>`line ${e.viewState.position.lineNumber} column ${e.viewState.position.column}`)).join(", "),t=1===i.length?p.kg("cursorAdded","Cursor added: {0}",e):p.kg("cursorsAdded","Cursors added: {0}",e);(0,n.h5)(t)}}class y extends c.ks{constructor(){super({id:"editor.action.insertCursorAbove",label:p.kg("mutlicursor.insertAbove","Add Cursor Above"),alias:"Add Cursor Above",precondition:void 0,kbOpts:{kbExpr:u.R.editorTextFocus,primary:2576,linux:{primary:1552,secondary:[3088]},weight:100},menuOpts:{menuId:m.D8.MenubarSelectionMenu,group:"3_multi",title:p.kg({key:"miInsertCursorAbove",comment:["&& denotes a mnemonic"]},"&&Add Cursor Above"),order:2}})}run(e,t,i){if(!t.hasModel())return;let s=!0;i&&!1===i.logicalLine&&(s=!1);const n=t._getViewModel();if(n.cursorConfig.readOnly)return;n.model.pushStackElement();const r=n.getCursorStates();n.setCursorStates(i.source,3,l.c.addCursorUp(n,r,s)),n.revealTopMostCursor(i.source),S(r,n.getCursorStates())}}class w extends c.ks{constructor(){super({id:"editor.action.insertCursorBelow",label:p.kg("mutlicursor.insertBelow","Add Cursor Below"),alias:"Add Cursor Below",precondition:void 0,kbOpts:{kbExpr:u.R.editorTextFocus,primary:2578,linux:{primary:1554,secondary:[3090]},weight:100},menuOpts:{menuId:m.D8.MenubarSelectionMenu,group:"3_multi",title:p.kg({key:"miInsertCursorBelow",comment:["&& denotes a mnemonic"]},"A&&dd Cursor Below"),order:3}})}run(e,t,i){if(!t.hasModel())return;let s=!0;i&&!1===i.logicalLine&&(s=!1);const n=t._getViewModel();if(n.cursorConfig.readOnly)return;n.model.pushStackElement();const r=n.getCursorStates();n.setCursorStates(i.source,3,l.c.addCursorDown(n,r,s)),n.revealBottomMostCursor(i.source),S(r,n.getCursorStates())}}class R extends c.ks{constructor(){super({id:"editor.action.insertCursorAtEndOfEachLineSelected",label:p.kg("mutlicursor.insertAtEndOfEachLineSelected","Add Cursors to Line Ends"),alias:"Add Cursors to Line Ends",precondition:void 0,kbOpts:{kbExpr:u.R.editorTextFocus,primary:1575,weight:100},menuOpts:{menuId:m.D8.MenubarSelectionMenu,group:"3_multi",title:p.kg({key:"miInsertCursorAtEndOfEachLineSelected",comment:["&& denotes a mnemonic"]},"Add C&&ursors to Line Ends"),order:4}})}getCursorsForSelection(e,t,i){if(!e.isEmpty()){for(let s=e.startLineNumber;s<e.endLineNumber;s++){const e=t.getLineMaxColumn(s);i.push(new d.L(s,e,s,e))}e.endColumn>1&&i.push(new d.L(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn))}}run(e,t){if(!t.hasModel())return;const i=t.getModel(),s=t.getSelections(),n=t._getViewModel(),r=n.getCursorStates(),o=[];s.forEach((e=>this.getCursorsForSelection(e,i,o))),o.length>0&&t.setSelections(o),S(r,n.getCursorStates())}}class L extends c.ks{constructor(){super({id:"editor.action.addCursorsToBottom",label:p.kg("mutlicursor.addCursorsToBottom","Add Cursors To Bottom"),alias:"Add Cursors To Bottom",precondition:void 0})}run(e,t){if(!t.hasModel())return;const i=t.getSelections(),s=t.getModel().getLineCount(),n=[];for(let a=i[0].startLineNumber;a<=s;a++)n.push(new d.L(a,i[0].startColumn,a,i[0].endColumn));const r=t._getViewModel(),o=r.getCursorStates();n.length>0&&t.setSelections(n),S(o,r.getCursorStates())}}class T extends c.ks{constructor(){super({id:"editor.action.addCursorsToTop",label:p.kg("mutlicursor.addCursorsToTop","Add Cursors To Top"),alias:"Add Cursors To Top",precondition:void 0})}run(e,t){if(!t.hasModel())return;const i=t.getSelections(),s=[];for(let o=i[0].startLineNumber;o>=1;o--)s.push(new d.L(o,i[0].startColumn,o,i[0].endColumn));const n=t._getViewModel(),r=n.getCursorStates();s.length>0&&t.setSelections(s),S(r,n.getCursorStates())}}class x{constructor(e,t,i){this.selections=e,this.revealRange=t,this.revealScrollType=i}}class k{static create(e,t){if(!e.hasModel())return null;const i=t.getState();if(!e.hasTextFocus()&&i.isRevealed&&i.searchString.length>0)return new k(e,t,!1,i.searchString,i.wholeWord,i.matchCase,null);let s,n,r=!1;const o=e.getSelections();1===o.length&&o[0].isEmpty()?(r=!0,s=!0,n=!0):(s=i.wholeWord,n=i.matchCase);const a=e.getSelection();let c,l=null;if(a.isEmpty()){const t=e.getConfiguredWordAtPosition(a.getStartPosition());if(!t)return null;c=t.word,l=new d.L(a.startLineNumber,t.startColumn,a.startLineNumber,t.endColumn)}else c=e.getModel().getValueInRange(a).replace(/\r\n/g,"\n");return new k(e,t,r,c,s,n,l)}constructor(e,t,i,s,n,r,o){this._editor=e,this.findController=t,this.isDisconnectedFromFindController=i,this.searchText=s,this.wholeWord=n,this.matchCase=r,this.currentMatch=o}addSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;const e=this._getNextMatch();if(!e)return null;const t=this._editor.getSelections();return new x(t.concat(e),e,0)}moveSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;const e=this._getNextMatch();if(!e)return null;const t=this._editor.getSelections();return new x(t.slice(0,t.length-1).concat(e),e,0)}_getNextMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){const e=this.currentMatch;return this.currentMatch=null,e}this.findController.highlightFindOptions();const e=this._editor.getSelections(),t=e[e.length-1],i=this._editor.getModel().findNextMatch(this.searchText,t.getEndPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(132):null,!1);return i?new d.L(i.range.startLineNumber,i.range.startColumn,i.range.endLineNumber,i.range.endColumn):null}addSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;const e=this._getPreviousMatch();if(!e)return null;const t=this._editor.getSelections();return new x(t.concat(e),e,0)}moveSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;const e=this._getPreviousMatch();if(!e)return null;const t=this._editor.getSelections();return new x(t.slice(0,t.length-1).concat(e),e,0)}_getPreviousMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){const e=this.currentMatch;return this.currentMatch=null,e}this.findController.highlightFindOptions();const e=this._editor.getSelections(),t=e[e.length-1],i=this._editor.getModel().findPreviousMatch(this.searchText,t.getStartPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(132):null,!1);return i?new d.L(i.range.startLineNumber,i.range.startColumn,i.range.endLineNumber,i.range.endColumn):null}selectAll(e){if(!this._editor.hasModel())return[];this.findController.highlightFindOptions();const t=this._editor.getModel();return e?t.findMatches(this.searchText,e,!1,this.matchCase,this.wholeWord?this._editor.getOption(132):null,!1,1073741824):t.findMatches(this.searchText,!0,!1,this.matchCase,this.wholeWord?this._editor.getOption(132):null,!1,1073741824)}}class A extends a.jG{static{this.ID="editor.contrib.multiCursorController"}static get(e){return e.getContribution(A.ID)}constructor(e){super(),this._sessionDispose=this._register(new a.Cm),this._editor=e,this._ignoreSelectionChange=!1,this._session=null}dispose(){this._endSession(),super.dispose()}_beginSessionIfNeeded(e){if(!this._session){const t=k.create(this._editor,e);if(!t)return;this._session=t;const i={searchString:this._session.searchText};this._session.isDisconnectedFromFindController&&(i.wholeWordOverride=1,i.matchCaseOverride=1,i.isRegexOverride=2),e.getState().change(i,!1),this._sessionDispose.add(this._editor.onDidChangeCursorSelection((e=>{this._ignoreSelectionChange||this._endSession()}))),this._sessionDispose.add(this._editor.onDidBlurEditorText((()=>{this._endSession()}))),this._sessionDispose.add(e.getState().onFindReplaceStateChange((e=>{(e.matchCase||e.wholeWord)&&this._endSession()})))}}_endSession(){if(this._sessionDispose.clear(),this._session&&this._session.isDisconnectedFromFindController){const e={wholeWordOverride:0,matchCaseOverride:0,isRegexOverride:0};this._session.findController.getState().change(e,!1)}this._session=null}_setSelections(e){this._ignoreSelectionChange=!0,this._editor.setSelections(e),this._ignoreSelectionChange=!1}_expandEmptyToWord(e,t){if(!t.isEmpty())return t;const i=this._editor.getConfiguredWordAtPosition(t.getStartPosition());return i?new d.L(t.startLineNumber,i.startColumn,t.startLineNumber,i.endColumn):t}_applySessionResult(e){e&&(this._setSelections(e.selections),e.revealRange&&this._editor.revealRangeInCenterIfOutsideViewport(e.revealRange,e.revealScrollType))}getSession(e){return this._session}addSelectionToNextFindMatch(e){if(this._editor.hasModel()){if(!this._session){const t=this._editor.getSelections();if(t.length>1){const i=e.getState().matchCase;if(!D(this._editor.getModel(),t,i)){const e=this._editor.getModel(),i=[];for(let s=0,n=t.length;s<n;s++)i[s]=this._expandEmptyToWord(e,t[s]);return void this._editor.setSelections(i)}}}this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.addSelectionToNextFindMatch())}}addSelectionToPreviousFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.addSelectionToPreviousFindMatch())}moveSelectionToNextFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.moveSelectionToNextFindMatch())}moveSelectionToPreviousFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.moveSelectionToPreviousFindMatch())}selectAll(e){if(!this._editor.hasModel())return;let t=null;const i=e.getState();if(i.isRevealed&&i.searchString.length>0&&i.isRegex){const e=this._editor.getModel();t=i.searchScope?e.findMatches(i.searchString,i.searchScope,i.isRegex,i.matchCase,i.wholeWord?this._editor.getOption(132):null,!1,1073741824):e.findMatches(i.searchString,!0,i.isRegex,i.matchCase,i.wholeWord?this._editor.getOption(132):null,!1,1073741824)}else{if(this._beginSessionIfNeeded(e),!this._session)return;t=this._session.selectAll(i.searchScope)}if(t.length>0){const e=this._editor.getSelection();for(let i=0,s=t.length;i<s;i++){const s=t[i];if(s.range.intersectRanges(e)){t[i]=t[0],t[0]=s;break}}this._setSelections(t.map((e=>new d.L(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn))))}}}class N extends c.ks{run(e,t){const i=A.get(t);if(!i)return;const s=t._getViewModel();if(s){const n=s.getCursorStates(),r=g.z0.get(t);if(r)this._run(i,r);else{const s=e.get(C._Y).createInstance(g.z0,t);this._run(i,s),s.dispose()}S(n,s.getCursorStates())}}}class I{constructor(e,t,i,s,n){this._model=e,this._searchText=t,this._matchCase=i,this._wordSeparators=s,this._modelVersionId=this._model.getVersionId(),this._cachedFindMatches=null,n&&this._model===n._model&&this._searchText===n._searchText&&this._matchCase===n._matchCase&&this._wordSeparators===n._wordSeparators&&this._modelVersionId===n._modelVersionId&&(this._cachedFindMatches=n._cachedFindMatches)}findMatches(){return null===this._cachedFindMatches&&(this._cachedFindMatches=this._model.findMatches(this._searchText,!0,!1,this._matchCase,this._wordSeparators,!1).map((e=>e.range)),this._cachedFindMatches.sort(h.Q.compareRangesUsingStarts)),this._cachedFindMatches}}let O=class extends a.jG{static{s=this}static{this.ID="editor.contrib.selectionHighlighter"}constructor(e,t){super(),this._languageFeaturesService=t,this.editor=e,this._isEnabled=e.getOption(109),this._decorations=e.createDecorationsCollection(),this.updateSoon=this._register(new r.uC((()=>this._update()),300)),this.state=null,this._register(e.onDidChangeConfiguration((t=>{this._isEnabled=e.getOption(109)}))),this._register(e.onDidChangeCursorSelection((e=>{this._isEnabled&&(e.selection.isEmpty()?3===e.reason?(this.state&&this._setState(null),this.updateSoon.schedule()):this._setState(null):this._update())}))),this._register(e.onDidChangeModel((e=>{this._setState(null)}))),this._register(e.onDidChangeModelContent((e=>{this._isEnabled&&this.updateSoon.schedule()})));const i=g.z0.get(e);i&&this._register(i.getState().onFindReplaceStateChange((e=>{this._update()}))),this.updateSoon.schedule()}_update(){this._setState(s._createState(this.state,this._isEnabled,this.editor))}static _createState(e,t,i){if(!t)return null;if(!i.hasModel())return null;const s=i.getSelection();if(s.startLineNumber!==s.endLineNumber)return null;const n=A.get(i);if(!n)return null;const r=g.z0.get(i);if(!r)return null;let o=n.getSession(r);if(!o){const e=i.getSelections();if(e.length>1){const t=r.getState().matchCase;if(!D(i.getModel(),e,t))return null}o=k.create(i,r)}if(!o)return null;if(o.currentMatch)return null;if(/^[ \t]+$/.test(o.searchText))return null;if(o.searchText.length>200)return null;const a=r.getState(),c=a.matchCase;if(a.isRevealed){let e=a.searchString;c||(e=e.toLowerCase());let t=o.searchText;if(c||(t=t.toLowerCase()),e===t&&o.matchCase===a.matchCase&&o.wholeWord===a.wholeWord&&!a.isRegex)return null}return new I(i.getModel(),o.searchText,o.matchCase,o.wholeWord?i.getOption(132):null,e)}_setState(e){if(this.state=e,!this.state)return void this._decorations.clear();if(!this.editor.hasModel())return;const t=this.editor.getModel();if(t.isTooLargeForTokenization())return;const i=this.state.findMatches(),s=this.editor.getSelections();s.sort(h.Q.compareRangesUsingStarts);const n=[];for(let c=0,l=0,d=i.length,u=s.length;c<d;){const e=i[c];if(l>=u)n.push(e),c++;else{const t=h.Q.compareRangesUsingStarts(e,s[l]);t<0?(!s[l].isEmpty()&&h.Q.areIntersecting(e,s[l])||n.push(e),c++):(t>0||c++,l++)}}const r="off"!==this.editor.getOption(81),o=this._languageFeaturesService.documentHighlightProvider.has(t)&&r,a=n.map((e=>({range:e,options:(0,v.v)(o)})));this._decorations.set(a)}dispose(){this._setState(null),super.dispose()}};function D(e,t,i){const s=M(e,t[0],!i);for(let n=1,r=t.length;n<r;n++){const r=t[n];if(r.isEmpty())return!1;if(s!==M(e,r,!i))return!1}return!0}function M(e,t,i){const s=e.getValueInRange(t);return i?s.toLowerCase():s}O=s=E([b(1,_.ILanguageFeaturesService)],O);class P extends c.ks{constructor(){super({id:"editor.action.focusNextCursor",label:p.kg("mutlicursor.focusNextCursor","Focus Next Cursor"),metadata:{description:p.kg("mutlicursor.focusNextCursor.description","Focuses the next cursor"),args:[]},alias:"Focus Next Cursor",precondition:void 0})}run(e,t,i){if(!t.hasModel())return;const s=t._getViewModel();if(s.cursorConfig.readOnly)return;s.model.pushStackElement();const n=Array.from(s.getCursorStates()),r=n.shift();r&&(n.push(r),s.setCursorStates(i.source,3,n),s.revealPrimaryCursor(i.source,!0),S(n,s.getCursorStates()))}}class F extends c.ks{constructor(){super({id:"editor.action.focusPreviousCursor",label:p.kg("mutlicursor.focusPreviousCursor","Focus Previous Cursor"),metadata:{description:p.kg("mutlicursor.focusPreviousCursor.description","Focuses the previous cursor"),args:[]},alias:"Focus Previous Cursor",precondition:void 0})}run(e,t,i){if(!t.hasModel())return;const s=t._getViewModel();if(s.cursorConfig.readOnly)return;s.model.pushStackElement();const n=Array.from(s.getCursorStates()),r=n.pop();r&&(n.unshift(r),s.setCursorStates(i.source,3,n),s.revealPrimaryCursor(i.source,!0),S(n,s.getCursorStates()))}}(0,c.HW)(A.ID,A,4),(0,c.HW)(O.ID,O,1),(0,c.Fl)(y),(0,c.Fl)(w),(0,c.Fl)(R),(0,c.Fl)(class extends N{constructor(){super({id:"editor.action.addSelectionToNextFindMatch",label:p.kg("addSelectionToNextFindMatch","Add Selection To Next Find Match"),alias:"Add Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:u.R.focus,primary:2082,weight:100},menuOpts:{menuId:m.D8.MenubarSelectionMenu,group:"3_multi",title:p.kg({key:"miAddSelectionToNextFindMatch",comment:["&& denotes a mnemonic"]},"Add &&Next Occurrence"),order:5}})}_run(e,t){e.addSelectionToNextFindMatch(t)}}),(0,c.Fl)(class extends N{constructor(){super({id:"editor.action.addSelectionToPreviousFindMatch",label:p.kg("addSelectionToPreviousFindMatch","Add Selection To Previous Find Match"),alias:"Add Selection To Previous Find Match",precondition:void 0,menuOpts:{menuId:m.D8.MenubarSelectionMenu,group:"3_multi",title:p.kg({key:"miAddSelectionToPreviousFindMatch",comment:["&& denotes a mnemonic"]},"Add P&&revious Occurrence"),order:6}})}_run(e,t){e.addSelectionToPreviousFindMatch(t)}}),(0,c.Fl)(class extends N{constructor(){super({id:"editor.action.moveSelectionToNextFindMatch",label:p.kg("moveSelectionToNextFindMatch","Move Last Selection To Next Find Match"),alias:"Move Last Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:u.R.focus,primary:(0,o.m5)(2089,2082),weight:100}})}_run(e,t){e.moveSelectionToNextFindMatch(t)}}),(0,c.Fl)(class extends N{constructor(){super({id:"editor.action.moveSelectionToPreviousFindMatch",label:p.kg("moveSelectionToPreviousFindMatch","Move Last Selection To Previous Find Match"),alias:"Move Last Selection To Previous Find Match",precondition:void 0})}_run(e,t){e.moveSelectionToPreviousFindMatch(t)}}),(0,c.Fl)(class extends N{constructor(){super({id:"editor.action.selectHighlights",label:p.kg("selectAllOccurrencesOfFindMatch","Select All Occurrences of Find Match"),alias:"Select All Occurrences of Find Match",precondition:void 0,kbOpts:{kbExpr:u.R.focus,primary:3114,weight:100},menuOpts:{menuId:m.D8.MenubarSelectionMenu,group:"3_multi",title:p.kg({key:"miSelectHighlights",comment:["&& denotes a mnemonic"]},"Select All &&Occurrences"),order:7}})}_run(e,t){e.selectAll(t)}}),(0,c.Fl)(class extends N{constructor(){super({id:"editor.action.changeAll",label:p.kg("changeAll.label","Change All Occurrences"),alias:"Change All Occurrences",precondition:f.M$.and(u.R.writable,u.R.editorTextFocus),kbOpts:{kbExpr:u.R.editorTextFocus,primary:2108,weight:100},contextMenuOpts:{group:"1_modification",order:1.2}})}_run(e,t){e.selectAll(t)}}),(0,c.Fl)(L),(0,c.Fl)(T),(0,c.Fl)(P),(0,c.Fl)(F)},4519:(e,t,i)=>{"use strict";var s=i(91090),n=i(5662),r=i(31450),o=i(60002),a=i(62083),c=i(56942),l=i(90766),h=i(64383),d=i(41234),u=i(60534),g=i(18447),p=i(631),m=i(79400),f=i(83069),_=i(18938),v=i(50091),C=i(32848);const E={Visible:new C.N1("parameterHintsVisible",!1),MultipleSignatures:new C.N1("parameterHintsMultipleSignatures",!1)};async function b(e,t,i,s,n){const r=e.ordered(t);for(const a of r)try{const e=await a.provideSignatureHelp(t,i,n,s);if(e)return e}catch(o){(0,h.M_)(o)}}var S;v.w.registerCommand("_executeSignatureHelpProvider",(async(e,...t)=>{const[i,s,n]=t;(0,p.j)(m.r.isUri(i)),(0,p.j)(f.y.isIPosition(s)),(0,p.j)("string"===typeof n||!n);const r=e.get(c.ILanguageFeaturesService),o=await e.get(_.ITextModelService).createModelReference(i);try{const e=await b(r.signatureHelpProvider,o.object.textEditorModel,f.y.lift(s),{triggerKind:a.WA.Invoke,isRetrigger:!1,triggerCharacter:n},g.XO.None);if(!e)return;return setTimeout((()=>e.dispose()),0),e.value}finally{o.dispose()}})),function(e){e.Default={type:0};e.Pending=class{constructor(e,t){this.request=e,this.previouslyActiveHints=t,this.type=2}};e.Active=class{constructor(e){this.hints=e,this.type=1}}}(S||(S={}));class y extends n.jG{static{this.DEFAULT_DELAY=120}constructor(e,t,i=y.DEFAULT_DELAY){super(),this._onChangedHints=this._register(new d.vl),this.onChangedHints=this._onChangedHints.event,this.triggerOnType=!1,this._state=S.Default,this._pendingTriggers=[],this._lastSignatureHelpResult=this._register(new n.HE),this.triggerChars=new u.y,this.retriggerChars=new u.y,this.triggerId=0,this.editor=e,this.providers=t,this.throttledDelayer=new l.ve(i),this._register(this.editor.onDidBlurEditorWidget((()=>this.cancel()))),this._register(this.editor.onDidChangeConfiguration((()=>this.onEditorConfigurationChange()))),this._register(this.editor.onDidChangeModel((e=>this.onModelChanged()))),this._register(this.editor.onDidChangeModelLanguage((e=>this.onModelChanged()))),this._register(this.editor.onDidChangeCursorSelection((e=>this.onCursorChange(e)))),this._register(this.editor.onDidChangeModelContent((e=>this.onModelContentChange()))),this._register(this.providers.onDidChange(this.onModelChanged,this)),this._register(this.editor.onDidType((e=>this.onDidType(e)))),this.onEditorConfigurationChange(),this.onModelChanged()}get state(){return this._state}set state(e){2===this._state.type&&this._state.request.cancel(),this._state=e}cancel(e=!1){this.state=S.Default,this.throttledDelayer.cancel(),e||this._onChangedHints.fire(void 0)}trigger(e,t){const i=this.editor.getModel();if(!i||!this.providers.has(i))return;const s=++this.triggerId;this._pendingTriggers.push(e),this.throttledDelayer.trigger((()=>this.doTrigger(s)),t).catch(h.dz)}next(){if(1!==this.state.type)return;const e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,i=t%e===e-1,s=this.editor.getOption(86).cycle;!(e<2||i)||s?this.updateActiveSignature(i&&s?0:t+1):this.cancel()}previous(){if(1!==this.state.type)return;const e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,i=0===t,s=this.editor.getOption(86).cycle;!(e<2||i)||s?this.updateActiveSignature(i&&s?e-1:t-1):this.cancel()}updateActiveSignature(e){1===this.state.type&&(this.state=new S.Active({...this.state.hints,activeSignature:e}),this._onChangedHints.fire(this.state.hints))}async doTrigger(e){const t=1===this.state.type||2===this.state.type,i=this.getLastActiveHints();if(this.cancel(!0),0===this._pendingTriggers.length)return!1;const s=this._pendingTriggers.reduce(w);this._pendingTriggers=[];const n={triggerKind:s.triggerKind,triggerCharacter:s.triggerCharacter,isRetrigger:t,activeSignatureHelp:i};if(!this.editor.hasModel())return!1;const r=this.editor.getModel(),o=this.editor.getPosition();this.state=new S.Pending((0,l.SS)((e=>b(this.providers,r,o,n,e))),i);try{const t=await this.state.request;return e!==this.triggerId?(t?.dispose(),!1):t&&t.value.signatures&&0!==t.value.signatures.length?(this.state=new S.Active(t.value),this._lastSignatureHelpResult.value=t,this._onChangedHints.fire(this.state.hints),!0):(t?.dispose(),this._lastSignatureHelpResult.clear(),this.cancel(),!1)}catch(a){return e===this.triggerId&&(this.state=S.Default),(0,h.dz)(a),!1}}getLastActiveHints(){switch(this.state.type){case 1:return this.state.hints;case 2:return this.state.previouslyActiveHints;default:return}}get isTriggered(){return 1===this.state.type||2===this.state.type||this.throttledDelayer.isTriggered()}onModelChanged(){this.cancel(),this.triggerChars.clear(),this.retriggerChars.clear();const e=this.editor.getModel();if(e)for(const t of this.providers.ordered(e)){for(const e of t.signatureHelpTriggerCharacters||[])if(e.length){const t=e.charCodeAt(0);this.triggerChars.add(t),this.retriggerChars.add(t)}for(const e of t.signatureHelpRetriggerCharacters||[])e.length&&this.retriggerChars.add(e.charCodeAt(0))}}onDidType(e){if(!this.triggerOnType)return;const t=e.length-1,i=e.charCodeAt(t);(this.triggerChars.has(i)||this.isTriggered&&this.retriggerChars.has(i))&&this.trigger({triggerKind:a.WA.TriggerCharacter,triggerCharacter:e.charAt(t)})}onCursorChange(e){"mouse"===e.source?this.cancel():this.isTriggered&&this.trigger({triggerKind:a.WA.ContentChange})}onModelContentChange(){this.isTriggered&&this.trigger({triggerKind:a.WA.ContentChange})}onEditorConfigurationChange(){this.triggerOnType=this.editor.getOption(86).enabled,this.triggerOnType||this.cancel()}dispose(){this.cancel(!0),super.dispose()}}function w(e,t){switch(t.triggerKind){case a.WA.Invoke:return t;case a.WA.ContentChange:return e;case a.WA.TriggerCharacter:default:return t}}var R,L=i(78209),T=i(63591),x=i(8597),k=i(11007),A=i(31295),N=i(10350),I=i(91508),O=i(87908),D=i(10154),M=i(20492),P=i(49099),F=i(66261),U=i(61394),H=i(25689),B=i(78381),W=i(90651),V=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},z=function(e,t){return function(i,s){t(i,s,e)}};const G=x.$,j=(0,U.pU)("parameter-hints-next",N.W.chevronDown,L.kg("parameterHintsNextIcon","Icon for show next parameter hint.")),K=(0,U.pU)("parameter-hints-previous",N.W.chevronUp,L.kg("parameterHintsPreviousIcon","Icon for show previous parameter hint."));let Y=class extends n.jG{static{R=this}static{this.ID="editor.widget.parameterHintsWidget"}constructor(e,t,i,s,r,o){super(),this.editor=e,this.model=t,this.telemetryService=o,this.renderDisposeables=this._register(new n.Cm),this.visible=!1,this.announcedLabel=null,this.allowEditorOverflow=!0,this.markdownRenderer=this._register(new M.T({editor:e},r,s)),this.keyVisible=E.Visible.bindTo(i),this.keyMultipleSignatures=E.MultipleSignatures.bindTo(i)}createParameterHintDOMNodes(){const e=G(".editor-widget.parameter-hints-widget"),t=x.BC(e,G(".phwrapper"));t.tabIndex=-1;const i=x.BC(t,G(".controls")),s=x.BC(i,G(".button"+H.L.asCSSSelector(K))),n=x.BC(i,G(".overloads")),r=x.BC(i,G(".button"+H.L.asCSSSelector(j)));this._register(x.ko(s,"click",(e=>{x.fs.stop(e),this.previous()}))),this._register(x.ko(r,"click",(e=>{x.fs.stop(e),this.next()})));const o=G(".body"),a=new A.MU(o,{alwaysConsumeMouseWheel:!0});this._register(a),t.appendChild(a.getDomNode());const c=x.BC(o,G(".signature")),l=x.BC(o,G(".docs"));e.style.userSelect="text",this.domNodes={element:e,signature:c,overloads:n,docs:l,scrollbar:a},this.editor.addContentWidget(this),this.hide(),this._register(this.editor.onDidChangeCursorSelection((e=>{this.visible&&this.editor.layoutContentWidget(this)})));const h=()=>{if(!this.domNodes)return;const e=this.editor.getOption(50),t=this.domNodes.element;t.style.fontSize=`${e.fontSize}px`,t.style.lineHeight=""+e.lineHeight/e.fontSize,t.style.setProperty("--vscode-parameterHintsWidget-editorFontFamily",e.fontFamily),t.style.setProperty("--vscode-parameterHintsWidget-editorFontFamilyDefault",O.jU.fontFamily)};h(),this._register(d.Jh.chain(this.editor.onDidChangeConfiguration.bind(this.editor),(e=>e.filter((e=>e.hasChanged(50)))))(h)),this._register(this.editor.onDidLayoutChange((e=>this.updateMaxHeight()))),this.updateMaxHeight()}show(){this.visible||(this.domNodes||this.createParameterHintDOMNodes(),this.keyVisible.set(!0),this.visible=!0,setTimeout((()=>{this.domNodes?.element.classList.add("visible")}),100),this.editor.layoutContentWidget(this))}hide(){this.renderDisposeables.clear(),this.visible&&(this.keyVisible.reset(),this.visible=!1,this.announcedLabel=null,this.domNodes?.element.classList.remove("visible"),this.editor.layoutContentWidget(this))}getPosition(){return this.visible?{position:this.editor.getPosition(),preference:[1,2]}:null}render(e){if(this.renderDisposeables.clear(),!this.domNodes)return;const t=e.signatures.length>1;this.domNodes.element.classList.toggle("multiple",t),this.keyMultipleSignatures.set(t),this.domNodes.signature.innerText="",this.domNodes.docs.innerText="";const i=e.signatures[e.activeSignature];if(!i)return;const s=x.BC(this.domNodes.signature,G(".code")),n=i.parameters.length>0,r=i.activeParameter??e.activeParameter;if(n)this.renderParameters(s,i,r);else{x.BC(s,G("span")).textContent=i.label}const o=i.parameters[r];if(o?.documentation){const e=G("span.documentation");if("string"===typeof o.documentation)e.textContent=o.documentation;else{const t=this.renderMarkdownDocs(o.documentation);e.appendChild(t.element)}x.BC(this.domNodes.docs,G("p",{},e))}if(void 0===i.documentation);else if("string"===typeof i.documentation)x.BC(this.domNodes.docs,G("p",{},i.documentation));else{const e=this.renderMarkdownDocs(i.documentation);x.BC(this.domNodes.docs,e.element)}const a=this.hasDocs(i,o);if(this.domNodes.signature.classList.toggle("has-docs",a),this.domNodes.docs.classList.toggle("empty",!a),this.domNodes.overloads.textContent=String(e.activeSignature+1).padStart(e.signatures.length.toString().length,"0")+"/"+e.signatures.length,o){let e="";const t=i.parameters[r];e=Array.isArray(t.label)?i.label.substring(t.label[0],t.label[1]):t.label,t.documentation&&(e+="string"===typeof t.documentation?`, ${t.documentation}`:`, ${t.documentation.value}`),i.documentation&&(e+="string"===typeof i.documentation?`, ${i.documentation}`:`, ${i.documentation.value}`),this.announcedLabel!==e&&(k.xE(L.kg("hint","{0}, hint",e)),this.announcedLabel=e)}this.editor.layoutContentWidget(this),this.domNodes.scrollbar.scanDomNode()}renderMarkdownDocs(e){const t=new B.W,i=this.renderDisposeables.add(this.markdownRenderer.render(e,{asyncRenderCallback:()=>{this.domNodes?.scrollbar.scanDomNode()}}));i.element.classList.add("markdown-docs");const s=t.elapsed();return s>300&&this.telemetryService.publicLog2("parameterHints.parseMarkdown",{renderDuration:s}),i}hasDocs(e,t){return!!(t&&"string"===typeof t.documentation&&(0,p.eU)(t.documentation).length>0)||(!!(t&&"object"===typeof t.documentation&&(0,p.eU)(t.documentation).value.length>0)||(!!(e.documentation&&"string"===typeof e.documentation&&(0,p.eU)(e.documentation).length>0)||!!(e.documentation&&"object"===typeof e.documentation&&(0,p.eU)(e.documentation.value).length>0)))}renderParameters(e,t,i){const[s,n]=this.getParameterLabelOffsets(t,i),r=document.createElement("span");r.textContent=t.label.substring(0,s);const o=document.createElement("span");o.textContent=t.label.substring(s,n),o.className="parameter active";const a=document.createElement("span");a.textContent=t.label.substring(n),x.BC(e,r,o,a)}getParameterLabelOffsets(e,t){const i=e.parameters[t];if(i){if(Array.isArray(i.label))return i.label;if(i.label.length){const t=new RegExp(`(\\W|^)${(0,I.bm)(i.label)}(?=\\W|$)`,"g");t.test(e.label);const s=t.lastIndex-i.label.length;return s>=0?[s,t.lastIndex]:[0,0]}return[0,0]}return[0,0]}next(){this.editor.focus(),this.model.next()}previous(){this.editor.focus(),this.model.previous()}getDomNode(){return this.domNodes||this.createParameterHintDOMNodes(),this.domNodes.element}getId(){return R.ID}updateMaxHeight(){if(!this.domNodes)return;const e=`${Math.max(this.editor.getLayoutInfo().height/4,250)}px`;this.domNodes.element.style.maxHeight=e;const t=this.domNodes.element.getElementsByClassName("phwrapper");t.length&&(t[0].style.maxHeight=e)}};Y=R=V([z(2,C.fN),z(3,P.C),z(4,D.L),z(5,W.k)],Y),(0,F.x1A)("editorHoverWidget.highlightForeground",F.QI5,L.kg("editorHoverWidgetHighlightForeground","Foreground color of the active item in the parameter hint."));var q,$=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Q=function(e,t){return function(i,s){t(i,s,e)}};let X=class extends n.jG{static{q=this}static{this.ID="editor.controller.parameterHints"}static get(e){return e.getContribution(q.ID)}constructor(e,t,i){super(),this.editor=e,this.model=this._register(new y(e,i.signatureHelpProvider)),this._register(this.model.onChangedHints((e=>{e?(this.widget.value.show(),this.widget.value.render(e)):this.widget.rawValue?.hide()}))),this.widget=new s.d((()=>this._register(t.createInstance(Y,this.editor,this.model))))}cancel(){this.model.cancel()}previous(){this.widget.rawValue?.previous()}next(){this.widget.rawValue?.next()}trigger(e){this.model.trigger(e,0)}};X=q=$([Q(1,T._Y),Q(2,c.ILanguageFeaturesService)],X);class Z extends r.ks{constructor(){super({id:"editor.action.triggerParameterHints",label:L.kg("parameterHints.trigger.label","Trigger Parameter Hints"),alias:"Trigger Parameter Hints",precondition:o.R.hasSignatureHelpProvider,kbOpts:{kbExpr:o.R.editorTextFocus,primary:3082,weight:100}})}run(e,t){const i=X.get(t);i?.trigger({triggerKind:a.WA.Invoke})}}(0,r.HW)(X.ID,X,2),(0,r.Fl)(Z);const J=r.DX.bindToContribution(X.get);(0,r.E_)(new J({id:"closeParameterHints",precondition:E.Visible,handler:e=>e.cancel(),kbOpts:{weight:175,kbExpr:o.R.focus,primary:9,secondary:[1033]}})),(0,r.E_)(new J({id:"showPrevParameterHint",precondition:C.M$.and(E.Visible,E.MultipleSignatures),handler:e=>e.previous(),kbOpts:{weight:175,kbExpr:o.R.focus,primary:16,secondary:[528],mac:{primary:16,secondary:[528,302]}}})),(0,r.E_)(new J({id:"showNextParameterHint",precondition:C.M$.and(E.Visible,E.MultipleSignatures),handler:e=>e.next(),kbOpts:{weight:175,kbExpr:o.R.focus,primary:18,secondary:[530],mac:{primary:18,secondary:[530,300]}}}))},84226:(e,t,i)=>{"use strict";i.d(t,{zn:()=>O,x2:()=>D,j6:()=>U,RL:()=>P,zl:()=>V,n6:()=>z,z0:()=>H,_X:()=>B,e3:()=>W});var s=i(8597),n=i(11799),r=i(36921),o=i(10350),a=i(25689),c=i(47661),l=i(41234),h=i(10146),d=i(31450),u=i(80301),g=i(29163),p=i(92403),m=i(96032),f=i(5662),_=i(36677),v=i(87289);const C=new c.Q1(new c.bU(0,122,204)),E={showArrow:!0,showFrame:!0,className:"",frameColor:C,arrowColor:C,keepEditorSelection:!1};class b{constructor(e,t,i,s,n,r,o,a){this.id="",this.domNode=e,this.afterLineNumber=t,this.afterColumn=i,this.heightInLines=s,this.showInHiddenAreas=o,this.ordinal=a,this._onDomNodeTop=n,this._onComputedHeight=r}onDomNodeTop(e){this._onDomNodeTop(e)}onComputedHeight(e){this._onComputedHeight(e)}}class S{constructor(e,t){this._id=e,this._domNode=t}getId(){return this._id}getDomNode(){return this._domNode}getPosition(){return null}}class y{static{this._IdGenerator=new m.n(".arrow-decoration-")}constructor(e){this._editor=e,this._ruleName=y._IdGenerator.nextId(),this._decorations=this._editor.createDecorationsCollection(),this._color=null,this._height=-1}dispose(){this.hide(),s.U2(this._ruleName)}set color(e){this._color!==e&&(this._color=e,this._updateStyle())}set height(e){this._height!==e&&(this._height=e,this._updateStyle())}_updateStyle(){s.U2(this._ruleName),s.Wt(`.monaco-editor ${this._ruleName}`,`border-style: solid; border-color: transparent; border-bottom-color: ${this._color}; border-width: ${this._height}px; bottom: -${this._height}px !important; margin-left: -${this._height}px; `)}show(e){1===e.column&&(e={lineNumber:e.lineNumber,column:2}),this._decorations.set([{range:_.Q.fromPositions(e),options:{description:"zone-widget-arrow",className:this._ruleName,stickiness:1}}])}hide(){this._decorations.clear()}}class w{constructor(e,t={}){this._arrow=null,this._overlayWidget=null,this._resizeSash=null,this._viewZone=null,this._disposables=new f.Cm,this.container=null,this._isShowing=!1,this.editor=e,this._positionMarkerId=this.editor.createDecorationsCollection(),this.options=h.Go(t),h.co(this.options,E,!1),this.domNode=document.createElement("div"),this.options.isAccessible||(this.domNode.setAttribute("aria-hidden","true"),this.domNode.setAttribute("role","presentation")),this._disposables.add(this.editor.onDidLayoutChange((e=>{const t=this._getWidth(e);this.domNode.style.width=t+"px",this.domNode.style.left=this._getLeft(e)+"px",this._onWidth(t)})))}dispose(){this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._viewZone&&this.editor.changeViewZones((e=>{this._viewZone&&e.removeZone(this._viewZone.id),this._viewZone=null})),this._positionMarkerId.clear(),this._disposables.dispose()}create(){this.domNode.classList.add("zone-widget"),this.options.className&&this.domNode.classList.add(this.options.className),this.container=document.createElement("div"),this.container.classList.add("zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new y(this.editor),this._disposables.add(this._arrow)),this._fillContainer(this.container),this._initSash(),this._applyStyles()}style(e){e.frameColor&&(this.options.frameColor=e.frameColor),e.arrowColor&&(this.options.arrowColor=e.arrowColor),this._applyStyles()}_applyStyles(){if(this.container&&this.options.frameColor){const e=this.options.frameColor.toString();this.container.style.borderTopColor=e,this.container.style.borderBottomColor=e}if(this._arrow&&this.options.arrowColor){const e=this.options.arrowColor.toString();this._arrow.color=e}}_getWidth(e){return e.width-e.minimap.minimapWidth-e.verticalScrollbarWidth}_getLeft(e){return e.minimap.minimapWidth>0&&0===e.minimap.minimapLeft?e.minimap.minimapWidth:0}_onViewZoneTop(e){this.domNode.style.top=e+"px"}_onViewZoneHeight(e){if(this.domNode.style.height=`${e}px`,this.container){const t=e-this._decoratingElementsHeight();this.container.style.height=`${t}px`;const i=this.editor.getLayoutInfo();this._doLayout(t,this._getWidth(i))}this._resizeSash?.layout()}get position(){const e=this._positionMarkerId.getRange(0);if(e)return e.getStartPosition()}show(e,t){const i=_.Q.isIRange(e)?_.Q.lift(e):_.Q.fromPositions(e);this._isShowing=!0,this._showImpl(i,t),this._isShowing=!1,this._positionMarkerId.set([{range:i,options:v.kI.EMPTY}])}hide(){this._viewZone&&(this.editor.changeViewZones((e=>{this._viewZone&&e.removeZone(this._viewZone.id)})),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._arrow?.hide(),this._positionMarkerId.clear()}_decoratingElementsHeight(){const e=this.editor.getOption(67);let t=0;if(this.options.showArrow){t+=2*Math.round(e/3)}if(this.options.showFrame){t+=2*Math.round(e/9)}return t}_showImpl(e,t){const i=e.getStartPosition(),s=this.editor.getLayoutInfo(),n=this._getWidth(s);this.domNode.style.width=`${n}px`,this.domNode.style.left=this._getLeft(s)+"px";const r=document.createElement("div");r.style.overflow="hidden";const o=this.editor.getOption(67);if(!this.options.allowUnlimitedHeight){const e=Math.max(12,this.editor.getLayoutInfo().height/o*.8);t=Math.min(t,e)}let a=0,c=0;if(this._arrow&&this.options.showArrow&&(a=Math.round(o/3),this._arrow.height=a,this._arrow.show(i)),this.options.showFrame&&(c=Math.round(o/9)),this.editor.changeViewZones((e=>{this._viewZone&&e.removeZone(this._viewZone.id),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this.domNode.style.top="-1000px",this._viewZone=new b(r,i.lineNumber,i.column,t,(e=>this._onViewZoneTop(e)),(e=>this._onViewZoneHeight(e)),this.options.showInHiddenAreas,this.options.ordinal),this._viewZone.id=e.addZone(this._viewZone),this._overlayWidget=new S("vs.editor.contrib.zoneWidget"+this._viewZone.id,this.domNode),this.editor.addOverlayWidget(this._overlayWidget)})),this.container&&this.options.showFrame){const e=this.options.frameWidth?this.options.frameWidth:c;this.container.style.borderTopWidth=e+"px",this.container.style.borderBottomWidth=e+"px"}const l=t*o-this._decoratingElementsHeight();this.container&&(this.container.style.top=a+"px",this.container.style.height=l+"px",this.container.style.overflow="hidden"),this._doLayout(l,n),this.options.keepEditorSelection||this.editor.setSelection(e);const h=this.editor.getModel();if(h){const t=h.validateRange(new _.Q(e.startLineNumber,1,e.endLineNumber+1,1));this.revealRange(t,t.startLineNumber===h.getLineCount())}}revealRange(e,t){t?this.editor.revealLineNearTop(e.endLineNumber,0):this.editor.revealRange(e,0)}setCssClass(e,t){this.container&&(t&&this.container.classList.remove(t),this.container.classList.add(e))}_onWidth(e){}_doLayout(e,t){}_relayout(e){this._viewZone&&this._viewZone.heightInLines!==e&&this.editor.changeViewZones((t=>{this._viewZone&&(this._viewZone.heightInLines=e,t.layoutZone(this._viewZone.id))}))}_initSash(){if(this._resizeSash)return;let e;this._resizeSash=this._disposables.add(new p.m(this.domNode,this,{orientation:1})),this.options.isResizeable||(this._resizeSash.state=0),this._disposables.add(this._resizeSash.onDidStart((t=>{this._viewZone&&(e={startY:t.startY,heightInLines:this._viewZone.heightInLines})}))),this._disposables.add(this._resizeSash.onDidEnd((()=>{e=void 0}))),this._disposables.add(this._resizeSash.onDidChange((t=>{if(e){const i=(t.currentY-e.startY)/this.editor.getOption(67),s=i<0?Math.ceil(i):Math.floor(i),n=e.heightInLines+s;n>5&&n<35&&this._relayout(n)}})))}getHorizontalSashLeft(){return 0}getHorizontalSashTop(){return(null===this.domNode.style.height?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2}getHorizontalSashWidth(){const e=this.editor.getLayoutInfo();return e.width-e.minimap.minimapWidth}}var R=i(78209),L=i(57629),T=i(32848),x=i(14718),k=i(63591),A=i(66261),N=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},I=function(e,t){return function(i,s){t(i,s,e)}};const O=(0,k.u1)("IPeekViewService");var D;(0,x.v)(O,class{constructor(){this._widgets=new Map}addExclusiveWidget(e,t){const i=this._widgets.get(e);i&&(i.listener.dispose(),i.widget.dispose());this._widgets.set(e,{widget:t,listener:t.onDidClose((()=>{const i=this._widgets.get(e);i&&i.widget===t&&(i.listener.dispose(),this._widgets.delete(e))}))})}},1),function(e){e.inPeekEditor=new T.N1("inReferenceSearchEditor",!0,R.kg("inReferenceSearchEditor","Whether the current code editor is embedded inside peek")),e.notInPeekEditor=e.inPeekEditor.toNegated()}(D||(D={}));let M=class{static{this.ID="editor.contrib.referenceController"}constructor(e,t){e instanceof g.t&&D.inPeekEditor.bindTo(t)}dispose(){}};function P(e){const t=e.get(u.T).getFocusedCodeEditor();return t instanceof g.t?t.getParentEditor():t}M=N([I(1,T.fN)],M),(0,d.HW)(M.ID,M,0);const F={headerBackgroundColor:c.Q1.white,primaryHeadingColor:c.Q1.fromHex("#333333"),secondaryHeadingColor:c.Q1.fromHex("#6c6c6cb3")};let U=class extends w{constructor(e,t,i){super(e,t),this.instantiationService=i,this._onDidClose=new l.vl,this.onDidClose=this._onDidClose.event,h.co(this.options,F,!1)}dispose(){this.disposed||(this.disposed=!0,super.dispose(),this._onDidClose.fire(this))}style(e){const t=this.options;e.headerBackgroundColor&&(t.headerBackgroundColor=e.headerBackgroundColor),e.primaryHeadingColor&&(t.primaryHeadingColor=e.primaryHeadingColor),e.secondaryHeadingColor&&(t.secondaryHeadingColor=e.secondaryHeadingColor),super.style(e)}_applyStyles(){super._applyStyles();const e=this.options;this._headElement&&e.headerBackgroundColor&&(this._headElement.style.backgroundColor=e.headerBackgroundColor.toString()),this._primaryHeading&&e.primaryHeadingColor&&(this._primaryHeading.style.color=e.primaryHeadingColor.toString()),this._secondaryHeading&&e.secondaryHeadingColor&&(this._secondaryHeading.style.color=e.secondaryHeadingColor.toString()),this._bodyElement&&e.frameColor&&(this._bodyElement.style.borderColor=e.frameColor.toString())}_fillContainer(e){this.setCssClass("peekview-widget"),this._headElement=s.$(".head"),this._bodyElement=s.$(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),e.appendChild(this._headElement),e.appendChild(this._bodyElement)}_fillHead(e,t){this._titleElement=s.$(".peekview-title"),this.options.supportOnTitleClick&&(this._titleElement.classList.add("clickable"),s.b2(this._titleElement,"click",(e=>this._onTitleClick(e)))),s.BC(this._headElement,this._titleElement),this._fillTitleIcon(this._titleElement),this._primaryHeading=s.$("span.filename"),this._secondaryHeading=s.$("span.dirname"),this._metaHeading=s.$("span.meta"),s.BC(this._titleElement,this._primaryHeading,this._secondaryHeading,this._metaHeading);const i=s.$(".peekview-actions");s.BC(this._headElement,i);const c=this._getActionBarOptions();this._actionbarWidget=new n.E(i,c),this._disposables.add(this._actionbarWidget),t||this._actionbarWidget.push(new r.rc("peekview.close",R.kg("label.close","Close"),a.L.asClassName(o.W.close),!0,(()=>(this.dispose(),Promise.resolve()))),{label:!1,icon:!0})}_fillTitleIcon(e){}_getActionBarOptions(){return{actionViewItemProvider:L.rN.bind(void 0,this.instantiationService),orientation:0}}_onTitleClick(e){}setTitle(e,t){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerText=e,this._primaryHeading.setAttribute("title",e),t?this._secondaryHeading.innerText=t:s.w_(this._secondaryHeading))}setMetaTitle(e){this._metaHeading&&(e?(this._metaHeading.innerText=e,s.WU(this._metaHeading)):s.jD(this._metaHeading))}_doLayout(e,t){if(!this._isShowing&&e<0)return void this.dispose();const i=Math.ceil(1.2*this.editor.getOption(67)),s=Math.round(e-(i+2));this._doLayoutHead(i,t),this._doLayoutBody(s,t)}_doLayoutHead(e,t){this._headElement&&(this._headElement.style.height=`${e}px`,this._headElement.style.lineHeight=this._headElement.style.height)}_doLayoutBody(e,t){this._bodyElement&&(this._bodyElement.style.height=`${e}px`)}};U=N([I(2,k._Y)],U);const H=(0,A.x1A)("peekViewTitle.background",{dark:"#252526",light:"#F3F3F3",hcDark:c.Q1.black,hcLight:c.Q1.white},R.kg("peekViewTitleBackground","Background color of the peek view title area.")),B=(0,A.x1A)("peekViewTitleLabel.foreground",{dark:c.Q1.white,light:c.Q1.black,hcDark:c.Q1.white,hcLight:A.By2},R.kg("peekViewTitleForeground","Color of the peek view title.")),W=(0,A.x1A)("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161",hcDark:"#FFFFFF99",hcLight:"#292929"},R.kg("peekViewTitleInfoForeground","Color of the peek view title info.")),V=(0,A.x1A)("peekView.border",{dark:A.pOz,light:A.pOz,hcDark:A.b1q,hcLight:A.b1q},R.kg("peekViewBorder","Color of the peek view borders and arrow.")),z=(0,A.x1A)("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hcDark:c.Q1.black,hcLight:c.Q1.white},R.kg("peekViewResultsBackground","Background color of the peek view result list.")),G=((0,A.x1A)("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hcDark:c.Q1.white,hcLight:A.By2},R.kg("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list.")),(0,A.x1A)("peekViewResult.fileForeground",{dark:c.Q1.white,light:"#1E1E1E",hcDark:c.Q1.white,hcLight:A.By2},R.kg("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list.")),(0,A.x1A)("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hcDark:null,hcLight:null},R.kg("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list.")),(0,A.x1A)("peekViewResult.selectionForeground",{dark:c.Q1.white,light:"#6C6C6C",hcDark:c.Q1.white,hcLight:A.By2},R.kg("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list.")),(0,A.x1A)("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hcDark:c.Q1.black,hcLight:c.Q1.white},R.kg("peekViewEditorBackground","Background color of the peek view editor.")));(0,A.x1A)("peekViewEditorGutter.background",G,R.kg("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor.")),(0,A.x1A)("peekViewEditorStickyScroll.background",G,R.kg("peekViewEditorStickScrollBackground","Background color of sticky scroll in the peek view editor.")),(0,A.x1A)("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hcDark:null,hcLight:null},R.kg("peekViewResultsMatchHighlight","Match highlight color in the peek view result list.")),(0,A.x1A)("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hcDark:null,hcLight:null},R.kg("peekViewEditorMatchHighlight","Match highlight color in the peek view editor.")),(0,A.x1A)("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hcDark:A.buw,hcLight:A.buw},R.kg("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."))},85646:(e,t,i)=>{"use strict";var s=i(31450),n=i(87119),r=i(78209),o=i(83844),a=i(1098),c=i(30076),l=i(41127),h=i(31308),d=i(63591),u=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},g=function(e,t){return function(i,s){t(i,s,e)}};class p{constructor(e){this.instantiationService=e}init(...e){}}let m=class extends p{constructor(e,t){super(t),this.init(e)}};var f;m=u([g(1,d._Y)],m),(0,s.HW)(a.X.ID,(f=()=>a.X,(0,c.e)()?function(e,t){return class extends t{constructor(){super(...arguments),this._autorun=void 0}init(...t){this._autorun=(0,h.yC)(((i,s)=>{const n=(0,l.b)(e(),i);s.add(this.instantiationService.createInstance(n,...t))}))}dispose(){this._autorun?.dispose()}}}(f,m):f()),0),(0,o.x1)("editor.placeholder.foreground",n.Ek,(0,r.kg)("placeholderForeground","Foreground color of the placeholder text in the editor."))},1098:(e,t,i)=>{"use strict";i.d(t,{X:()=>l});var s=i(8597),n=i(51241),r=i(5662),o=i(31308),a=i(87958),c=i(38844);class l extends r.jG{static{this.ID="editor.contrib.placeholderText"}constructor(e){var t,i;super(),this._editor=e,this._editorObs=(0,c.Ud)(this._editor),this._placeholderText=this._editorObs.getOption(88),this._state=(0,o.C)({owner:this,equalsFn:n.dB},(e=>{const t=this._placeholderText.read(e);if(t&&this._editorObs.valueIsEmpty.read(e))return{placeholder:t}})),this._shouldViewBeAlive=(t=this,i=e=>void 0!==this._state.read(e)?.placeholder,(0,o.ZX)(t,((e,t)=>!0===t||i(e)))),this._view=(0,a.rm)(((e,t)=>{if(!this._shouldViewBeAlive.read(e))return;const i=(0,s.h)("div.editorPlaceholder");t.add((0,o.fm)((e=>{const t=this._state.read(e),s=void 0!==t?.placeholder;i.root.style.display=s?"block":"none",i.root.innerText=t?.placeholder??""}))),t.add((0,o.fm)((e=>{const t=this._editorObs.layoutInfo.read(e);i.root.style.left=`${t.contentLeft}px`,i.root.style.width=t.contentWidth-t.verticalScrollbarWidth+"px",i.root.style.top=`${this._editor.getTopForLineNumber(0)}px`}))),t.add((0,o.fm)((e=>{i.root.style.fontFamily=this._editorObs.getOption(49).read(e),i.root.style.fontSize=this._editorObs.getOption(52).read(e)+"px",i.root.style.lineHeight=this._editorObs.getOption(67).read(e)+"px"}))),t.add(this._editorObs.createOverlayWidget({allowEditorOverflow:!1,minContentWidthInPx:(0,o.lk)(0),position:(0,o.lk)(null),domNode:i.root}))})),this._view.recomputeInitiallyAndOnChange(this._store)}}},12437:(e,t,i)=>{"use strict";i.d(t,{o:()=>h});var s=i(6921),n=i(5662),r=i(34326),o=i(16223),a=i(87119),c=i(47612),l=i(11007);class h{constructor(e){this.options=e,this.rangeHighlightDecorationId=void 0}provide(e,t,i){const s=new n.Cm;e.canAcceptInBackground=!!this.options?.canAcceptInBackground,e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;const r=s.add(new n.HE);return r.value=this.doProvide(e,t,i),s.add(this.onDidActiveTextEditorControlChange((()=>{r.value=void 0,r.value=this.doProvide(e,t)}))),s}doProvide(e,t,i){const o=new n.Cm,a=this.activeTextEditorControl;if(a&&this.canProvideWithTextEditor(a)){const c={editor:a},l=(0,r.jA)(a);if(l){let e=a.saveViewState()??void 0;o.add(l.onDidChangeCursorPosition((()=>{e=a.saveViewState()??void 0}))),c.restoreViewState=()=>{e&&a===this.activeTextEditorControl&&a.restoreViewState(e)},o.add((0,s.P)(t.onCancellationRequested)((()=>c.restoreViewState?.())))}o.add((0,n.s)((()=>this.clearDecorations(a)))),o.add(this.provideWithTextEditor(c,e,t,i))}else o.add(this.provideWithoutTextEditor(e,t));return o}canProvideWithTextEditor(e){return!0}gotoLocation({editor:e},t){e.setSelection(t.range,"code.jump"),e.revealRangeInCenter(t.range,0),t.preserveFocus||e.focus();const i=e.getModel();i&&"getLineContent"in i&&(0,l.h5)(`${i.getLineContent(t.range.startLineNumber)}`)}getModel(e){return(0,r.Np)(e)?e.getModel()?.modified:e.getModel()}addDecorations(e,t){e.changeDecorations((e=>{const i=[];this.rangeHighlightDecorationId&&(i.push(this.rangeHighlightDecorationId.overviewRulerDecorationId),i.push(this.rangeHighlightDecorationId.rangeHighlightId),this.rangeHighlightDecorationId=void 0);const s=[{range:t,options:{description:"quick-access-range-highlight",className:"rangeHighlight",isWholeLine:!0}},{range:t,options:{description:"quick-access-range-highlight-overview",overviewRuler:{color:(0,c.Yf)(a.vp),position:o.A5.Full}}}],[n,r]=e.deltaDecorations(i,s);this.rangeHighlightDecorationId={rangeHighlightId:n,overviewRulerDecorationId:r}}))}clearDecorations(e){const t=this.rangeHighlightDecorationId;t&&(e.changeDecorations((e=>{e.deltaDecorations([t.overviewRulerDecorationId,t.rangeHighlightId],[])})),this.rangeHighlightDecorationId=void 0)}}},59731:(e,t,i)=>{"use strict";var s=i(16980),n=i(5662),r=i(31450),o=i(99645),a=i(78209);class c extends n.jG{static{this.ID="editor.contrib.readOnlyMessageController"}constructor(e){super(),this.editor=e,this._register(this.editor.onDidAttemptReadOnlyEdit((()=>this._onDidAttemptReadOnlyEdit())))}_onDidAttemptReadOnlyEdit(){const e=o.k.get(this.editor);if(e&&this.editor.hasModel()){let t=this.editor.getOptions().get(93);t||(t=this.editor.isSimpleWidget?new s.Bc(a.kg("editor.simple.readonly","Cannot edit in read-only input")):new s.Bc(a.kg("editor.readonly","Cannot edit in read-only editor"))),e.showMessage(t,this.editor.getPosition())}}}(0,r.HW)(c.ID,c,2)},50071:(e,t,i)=>{"use strict";var s=i(11007),n=i(90766),r=i(18447),o=i(64383),a=i(16980),c=i(5662),l=i(631),h=i(79400),d=i(31450),u=i(80537),g=i(80301),p=i(83069),m=i(36677),f=i(60002),_=i(62083),v=i(56942),C=i(90360),E=i(50868),b=i(99645),S=i(78209),y=i(27195),w=i(1646),R=i(32848),L=i(63591),T=i(18801),x=i(58591),k=i(73823),A=i(46359),N=i(90651),I=i(8597),O=i(72962),D=i(48196),M=i(42904),P=i(20370),F=i(93090),U=i(25890),H=i(10350),B=i(41234),W=i(78381),V=i(73157),z=i(98031),G=i(19070),j=i(66261),K=i(47612),Y=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},q=function(e,t){return function(i,s){t(i,s,e)}};const $=new R.N1("renameInputVisible",!1,S.kg("renameInputVisible","Whether the rename input widget is visible"));new R.N1("renameInputFocused",!1,S.kg("renameInputFocused","Whether the rename input widget is focused"));let Q=class{constructor(e,t,i,s,n,r){this._editor=e,this._acceptKeybindings=t,this._themeService=i,this._keybindingService=s,this._logService=r,this.allowEditorOverflow=!0,this._disposables=new c.Cm,this._visibleContextKey=$.bindTo(n),this._isEditingRenameCandidate=!1,this._nRenameSuggestionsInvocations=0,this._hadAutomaticRenameSuggestionsInvocation=!1,this._candidates=new Set,this._beforeFirstInputFieldEditSW=new W.W,this._inputWithButton=new Z,this._disposables.add(this._inputWithButton),this._editor.addContentWidget(this),this._disposables.add(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(50)&&this._updateFont()}))),this._disposables.add(i.onDidColorThemeChange(this._updateStyles,this))}dispose(){this._disposables.dispose(),this._editor.removeContentWidget(this)}getId(){return"__renameInputWidget"}getDomNode(){return this._domNode||(this._domNode=document.createElement("div"),this._domNode.className="monaco-editor rename-box",this._domNode.appendChild(this._inputWithButton.domNode),this._renameCandidateListView=this._disposables.add(new X(this._domNode,{fontInfo:this._editor.getOption(50),onFocusChange:e=>{this._inputWithButton.input.value=e,this._isEditingRenameCandidate=!1},onSelectionChange:()=>{this._isEditingRenameCandidate=!1,this.acceptInput(!1)}})),this._disposables.add(this._inputWithButton.onDidInputChange((()=>{void 0!==this._renameCandidateListView?.focusedCandidate&&(this._isEditingRenameCandidate=!0),this._timeBeforeFirstInputFieldEdit??=this._beforeFirstInputFieldEditSW.elapsed(),!1===this._renameCandidateProvidersCts?.token.isCancellationRequested&&this._renameCandidateProvidersCts.cancel(),this._renameCandidateListView?.clearFocus()}))),this._label=document.createElement("div"),this._label.className="rename-label",this._domNode.appendChild(this._label),this._updateFont(),this._updateStyles(this._themeService.getColorTheme())),this._domNode}_updateStyles(e){if(!this._domNode)return;const t=e.getColor(j.f9l),i=e.getColor(j.DSL);this._domNode.style.backgroundColor=String(e.getColor(j.CgL)??""),this._domNode.style.boxShadow=t?` 0 0 8px 2px ${t}`:"",this._domNode.style.border=i?`1px solid ${i}`:"",this._domNode.style.color=String(e.getColor(j.cws)??"");const s=e.getColor(j.Zgs);this._inputWithButton.domNode.style.backgroundColor=String(e.getColor(j.L4c)??""),this._inputWithButton.input.style.backgroundColor=String(e.getColor(j.L4c)??""),this._inputWithButton.domNode.style.borderWidth=s?"1px":"0px",this._inputWithButton.domNode.style.borderStyle=s?"solid":"none",this._inputWithButton.domNode.style.borderColor=s?.toString()??"none"}_updateFont(){if(void 0===this._domNode)return;(0,l.j)(void 0!==this._label,"RenameWidget#_updateFont: _label must not be undefined given _domNode is defined"),this._editor.applyFontInfo(this._inputWithButton.input);const e=this._editor.getOption(50);this._label.style.fontSize=`${this._computeLabelFontSize(e.fontSize)}px`}_computeLabelFontSize(e){return.8*e}getPosition(){if(!this._visible)return null;if(!this._editor.hasModel()||!this._editor.getDomNode())return null;const e=I.tG(this.getDomNode().ownerDocument.body),t=I.BK(this._editor.getDomNode()),i=this._getTopForPosition();this._nPxAvailableAbove=i+t.top,this._nPxAvailableBelow=e.height-this._nPxAvailableAbove;const s=this._editor.getOption(67),{totalHeight:n}=J.getLayoutInfo({lineHeight:s}),r=this._nPxAvailableBelow>6*n?[2,1]:[1,2];return{position:this._position,preference:r}}beforeRender(){const[e,t]=this._acceptKeybindings;return this._label.innerText=S.kg({key:"label",comment:['placeholders are keybindings, e.g "F2 to Rename, Shift+F2 to Preview"']},"{0} to Rename, {1} to Preview",this._keybindingService.lookupKeybinding(e)?.getLabel(),this._keybindingService.lookupKeybinding(t)?.getLabel()),this._domNode.style.minWidth="200px",null}afterRender(e){if(null===e)return void this.cancelInput(!0,"afterRender (because position is null)");if(!this._editor.hasModel()||!this._editor.getDomNode())return;(0,l.j)(this._renameCandidateListView),(0,l.j)(void 0!==this._nPxAvailableAbove),(0,l.j)(void 0!==this._nPxAvailableBelow);const t=I.OK(this._inputWithButton.domNode),i=I.OK(this._label);let s;s=2===e?this._nPxAvailableBelow:this._nPxAvailableAbove,this._renameCandidateListView.layout({height:s-i-t,width:I.Tr(this._inputWithButton.domNode)})}acceptInput(e){this._trace("invoking acceptInput"),this._currentAcceptInput?.(e)}cancelInput(e,t){this._currentCancelInput?.(e)}focusNextRenameSuggestion(){this._renameCandidateListView?.focusNext()||(this._inputWithButton.input.value=this._currentName)}focusPreviousRenameSuggestion(){this._renameCandidateListView?.focusPrevious()||(this._inputWithButton.input.value=this._currentName)}getInput(e,t,i,s,r){const{start:o,end:a}=this._getSelection(e,t);this._renameCts=r;const h=new c.Cm;this._nRenameSuggestionsInvocations=0,this._hadAutomaticRenameSuggestionsInvocation=!1,void 0===s?this._inputWithButton.button.style.display="none":(this._inputWithButton.button.style.display="flex",this._requestRenameCandidatesOnce=s,this._requestRenameCandidates(t,!1),h.add(I.ko(this._inputWithButton.button,"click",(()=>this._requestRenameCandidates(t,!0)))),h.add(I.ko(this._inputWithButton.button,I.Bx.KEY_DOWN,(e=>{const i=new O.Z(e);(i.equals(3)||i.equals(10))&&(i.stopPropagation(),i.preventDefault(),this._requestRenameCandidates(t,!0))})))),this._isEditingRenameCandidate=!1,this._domNode.classList.toggle("preview",i),this._position=new p.y(e.startLineNumber,e.startColumn),this._currentName=t,this._inputWithButton.input.value=t,this._inputWithButton.input.setAttribute("selectionStart",o.toString()),this._inputWithButton.input.setAttribute("selectionEnd",a.toString()),this._inputWithButton.input.size=Math.max(1.1*(e.endColumn-e.startColumn),20),this._beforeFirstInputFieldEditSW.reset(),h.add((0,c.s)((()=>{this._renameCts=void 0,r.dispose(!0)}))),h.add((0,c.s)((()=>{void 0!==this._renameCandidateProvidersCts&&(this._renameCandidateProvidersCts.dispose(!0),this._renameCandidateProvidersCts=void 0)}))),h.add((0,c.s)((()=>this._candidates.clear())));const d=new n.Zv;return d.p.finally((()=>{h.dispose(),this._hide()})),this._currentCancelInput=e=>(this._trace("invoking _currentCancelInput"),this._currentAcceptInput=void 0,this._currentCancelInput=void 0,this._renameCandidateListView?.clearCandidates(),d.complete(e),!0),this._currentAcceptInput=e=>{this._trace("invoking _currentAcceptInput"),(0,l.j)(void 0!==this._renameCandidateListView);const s=this._renameCandidateListView.nCandidates;let n,r;const o=this._renameCandidateListView.focusedCandidate;void 0!==o?(this._trace("using new name from renameSuggestion"),n=o,r={k:"renameSuggestion"}):(this._trace("using new name from inputField"),n=this._inputWithButton.input.value,r=this._isEditingRenameCandidate?{k:"userEditedRenameSuggestion"}:{k:"inputField"}),n!==t&&0!==n.trim().length?(this._currentAcceptInput=void 0,this._currentCancelInput=void 0,this._renameCandidateListView.clearCandidates(),d.complete({newName:n,wantsPreview:i&&e,stats:{source:r,nRenameSuggestions:s,timeBeforeFirstInputFieldEdit:this._timeBeforeFirstInputFieldEdit,nRenameSuggestionsInvocations:this._nRenameSuggestionsInvocations,hadAutomaticRenameSuggestionsInvocation:this._hadAutomaticRenameSuggestionsInvocation}})):this.cancelInput(!0,"_currentAcceptInput (because newName === value || newName.trim().length === 0)")},h.add(r.token.onCancellationRequested((()=>this.cancelInput(!0,"cts.token.onCancellationRequested")))),h.add(this._editor.onDidBlurEditorWidget((()=>this.cancelInput(!this._domNode?.ownerDocument.hasFocus(),"editor.onDidBlurEditorWidget")))),this._show(),d.p}_requestRenameCandidates(e,t){if(void 0!==this._requestRenameCandidatesOnce&&(void 0!==this._renameCandidateProvidersCts&&this._renameCandidateProvidersCts.dispose(!0),(0,l.j)(this._renameCts),"stop"!==this._inputWithButton.buttonState)){this._renameCandidateProvidersCts=new r.Qi;const i=t?_.YT.Invoke:_.YT.Automatic,s=this._requestRenameCandidatesOnce(i,this._renameCandidateProvidersCts.token);if(0===s.length)return void this._inputWithButton.setSparkleButton();t||(this._hadAutomaticRenameSuggestionsInvocation=!0),this._nRenameSuggestionsInvocations+=1,this._inputWithButton.setStopButton(),this._updateRenameCandidates(s,e,this._renameCts.token)}}_getSelection(e,t){(0,l.j)(this._editor.hasModel());const i=this._editor.getSelection();let s=0,n=t.length;return m.Q.isEmpty(i)||m.Q.spansMultipleLines(i)||!m.Q.containsRange(e,i)||(s=Math.max(0,i.startColumn-e.startColumn),n=Math.min(e.endColumn,i.endColumn)-e.startColumn),{start:s,end:n}}_show(){this._trace("invoking _show"),this._editor.revealLineInCenterIfOutsideViewport(this._position.lineNumber,0),this._visible=!0,this._visibleContextKey.set(!0),this._editor.layoutContentWidget(this),setTimeout((()=>{this._inputWithButton.input.focus(),this._inputWithButton.input.setSelectionRange(parseInt(this._inputWithButton.input.getAttribute("selectionStart")),parseInt(this._inputWithButton.input.getAttribute("selectionEnd")))}),100)}async _updateRenameCandidates(e,t,i){const s=(...e)=>this._trace("_updateRenameCandidates",...e);s("start");const r=await(0,n.PK)(Promise.allSettled(e),i);if(this._inputWithButton.setSparkleButton(),void 0===r)return void s("returning early - received updateRenameCandidates results - undefined");const o=r.flatMap((e=>"fulfilled"===e.status&&(0,l.O9)(e.value)?e.value:[]));s(`received updateRenameCandidates results - total (unfiltered) ${o.length} candidates.`);const a=U.dM(o,(e=>e.newSymbolName));s(`distinct candidates - ${a.length} candidates.`);const c=a.filter((({newSymbolName:e})=>e.trim().length>0&&e!==this._inputWithButton.input.value&&e!==t&&!this._candidates.has(e)));s(`valid distinct candidates - ${o.length} candidates.`),c.forEach((e=>this._candidates.add(e.newSymbolName))),c.length<1?s("returning early - no valid distinct candidates"):(s("setting candidates"),this._renameCandidateListView.setCandidates(c),s("asking editor to re-layout"),this._editor.layoutContentWidget(this))}_hide(){this._trace("invoked _hide"),this._visible=!1,this._visibleContextKey.reset(),this._editor.layoutContentWidget(this)}_getTopForPosition(){const e=this._editor.getVisibleRanges();let t;return e.length>0?t=e[0].startLineNumber:(this._logService.warn("RenameWidget#_getTopForPosition: this should not happen - visibleRanges is empty"),t=Math.max(1,this._position.lineNumber-5)),this._editor.getTopForLineNumber(this._position.lineNumber)-this._editor.getTopForLineNumber(t)}_trace(...e){this._logService.trace("RenameWidget",...e)}};Q=Y([q(2,K.Gy),q(3,z.b),q(4,R.fN),q(5,T.rr)],Q);class X{constructor(e,t){this._disposables=new c.Cm,this._availableHeight=0,this._minimumWidth=0,this._lineHeight=t.fontInfo.lineHeight,this._typicalHalfwidthCharacterWidth=t.fontInfo.typicalHalfwidthCharacterWidth,this._listContainer=document.createElement("div"),this._listContainer.className="rename-box rename-candidate-list-container",e.appendChild(this._listContainer),this._listWidget=X._createListWidget(this._listContainer,this._candidateViewHeight,t.fontInfo),this._listWidget.onDidChangeFocus((e=>{1===e.elements.length&&t.onFocusChange(e.elements[0].newSymbolName)}),this._disposables),this._listWidget.onDidChangeSelection((e=>{1===e.elements.length&&t.onSelectionChange()}),this._disposables),this._disposables.add(this._listWidget.onDidBlur((e=>{this._listWidget.setFocus([])}))),this._listWidget.style((0,G.t8)({listInactiveFocusForeground:j.nH,listInactiveFocusBackground:j.AlL}))}dispose(){this._listWidget.dispose(),this._disposables.dispose()}layout({height:e,width:t}){this._availableHeight=e,this._minimumWidth=t}setCandidates(e){this._listWidget.splice(0,0,e);const t=this._pickListHeight(this._listWidget.length),i=this._pickListWidth(e);this._listWidget.layout(t,i),this._listContainer.style.height=`${t}px`,this._listContainer.style.width=`${i}px`,s.h5(S.kg("renameSuggestionsReceivedAria","Received {0} rename suggestions",e.length))}clearCandidates(){this._listContainer.style.height="0px",this._listContainer.style.width="0px",this._listWidget.splice(0,this._listWidget.length,[])}get nCandidates(){return this._listWidget.length}get focusedCandidate(){if(0===this._listWidget.length)return;const e=this._listWidget.getSelectedElements()[0];if(void 0!==e)return e.newSymbolName;const t=this._listWidget.getFocusedElements()[0];return void 0!==t?t.newSymbolName:void 0}focusNext(){if(0===this._listWidget.length)return!1;const e=this._listWidget.getFocus();if(0===e.length)return this._listWidget.focusFirst(),this._listWidget.reveal(0),!0;if(e[0]===this._listWidget.length-1)return this._listWidget.setFocus([]),this._listWidget.reveal(0),!1;{this._listWidget.focusNext();const e=this._listWidget.getFocus()[0];return this._listWidget.reveal(e),!0}}focusPrevious(){if(0===this._listWidget.length)return!1;const e=this._listWidget.getFocus();if(0===e.length){this._listWidget.focusLast();const e=this._listWidget.getFocus()[0];return this._listWidget.reveal(e),!0}if(0===e[0])return this._listWidget.setFocus([]),!1;{this._listWidget.focusPrevious();const e=this._listWidget.getFocus()[0];return this._listWidget.reveal(e),!0}}clearFocus(){this._listWidget.setFocus([])}get _candidateViewHeight(){const{totalHeight:e}=J.getLayoutInfo({lineHeight:this._lineHeight});return e}_pickListHeight(e){const t=this._candidateViewHeight*e;return Math.min(t,this._availableHeight,7*this._candidateViewHeight)}_pickListWidth(e){const t=Math.ceil(Math.max(...e.map((e=>e.newSymbolName.length)))*this._typicalHalfwidthCharacterWidth);return Math.max(this._minimumWidth,25+t+10)}static _createListWidget(e,t,i){const s=new class{getTemplateId(e){return"candidate"}getHeight(e){return t}},n=new class{constructor(){this.templateId="candidate"}renderTemplate(e){return new J(e,i)}renderElement(e,t,i){i.populate(e)}disposeTemplate(e){e.dispose()}};return new F.B8("NewSymbolNameCandidates",e,s,[n],{keyboardSupport:!1,mouseSupport:!0,multipleSelectionSupport:!1})}}class Z{constructor(){this._onDidInputChange=new B.vl,this.onDidInputChange=this._onDidInputChange.event,this._disposables=new c.Cm}get domNode(){return this._domNode||(this._domNode=document.createElement("div"),this._domNode.className="rename-input-with-button",this._domNode.style.display="flex",this._domNode.style.flexDirection="row",this._domNode.style.alignItems="center",this._inputNode=document.createElement("input"),this._inputNode.className="rename-input",this._inputNode.type="text",this._inputNode.style.border="none",this._inputNode.setAttribute("aria-label",S.kg("renameAriaLabel","Rename input. Type new name and press Enter to commit.")),this._domNode.appendChild(this._inputNode),this._buttonNode=document.createElement("div"),this._buttonNode.className="rename-suggestions-button",this._buttonNode.setAttribute("tabindex","0"),this._buttonGenHoverText=S.kg("generateRenameSuggestionsButton","Generate new name suggestions"),this._buttonCancelHoverText=S.kg("cancelRenameSuggestionsButton","Cancel"),this._buttonHover=(0,D.i)().setupManagedHover((0,M.nZ)("element"),this._buttonNode,this._buttonGenHoverText),this._disposables.add(this._buttonHover),this._domNode.appendChild(this._buttonNode),this._disposables.add(I.ko(this.input,I.Bx.INPUT,(()=>this._onDidInputChange.fire()))),this._disposables.add(I.ko(this.input,I.Bx.KEY_DOWN,(e=>{const t=new O.Z(e);15!==t.keyCode&&17!==t.keyCode||this._onDidInputChange.fire()}))),this._disposables.add(I.ko(this.input,I.Bx.CLICK,(()=>this._onDidInputChange.fire()))),this._disposables.add(I.ko(this.input,I.Bx.FOCUS,(()=>{this.domNode.style.outlineWidth="1px",this.domNode.style.outlineStyle="solid",this.domNode.style.outlineOffset="-1px",this.domNode.style.outlineColor="var(--vscode-focusBorder)"}))),this._disposables.add(I.ko(this.input,I.Bx.BLUR,(()=>{this.domNode.style.outline="none"})))),this._domNode}get input(){return(0,l.j)(this._inputNode),this._inputNode}get button(){return(0,l.j)(this._buttonNode),this._buttonNode}get buttonState(){return this._buttonState}setSparkleButton(){this._buttonState="sparkle",this._sparkleIcon??=(0,P.s)(H.W.sparkle),I.w_(this.button),this.button.appendChild(this._sparkleIcon),this.button.setAttribute("aria-label","Generating new name suggestions"),this._buttonHover?.update(this._buttonGenHoverText),this.input.focus()}setStopButton(){this._buttonState="stop",this._stopIcon??=(0,P.s)(H.W.primitiveSquare),I.w_(this.button),this.button.appendChild(this._stopIcon),this.button.setAttribute("aria-label","Cancel generating new name suggestions"),this._buttonHover?.update(this._buttonCancelHoverText),this.input.focus()}dispose(){this._disposables.dispose()}}class J{static{this._PADDING=2}constructor(e,t){this._domNode=document.createElement("div"),this._domNode.className="rename-box rename-candidate",this._domNode.style.display="flex",this._domNode.style.columnGap="5px",this._domNode.style.alignItems="center",this._domNode.style.height=`${t.lineHeight}px`,this._domNode.style.padding=`${J._PADDING}px`;const i=document.createElement("div");i.style.display="flex",i.style.alignItems="center",i.style.width=i.style.height=.8*t.lineHeight+"px",this._domNode.appendChild(i),this._icon=(0,P.s)(H.W.sparkle),this._icon.style.display="none",i.appendChild(this._icon),this._label=document.createElement("div"),V.M(this._label,t),this._domNode.appendChild(this._label),e.appendChild(this._domNode)}populate(e){this._updateIcon(e),this._updateLabel(e)}_updateIcon(e){const t=!!e.tags?.includes(_.OV.AIGenerated);this._icon.style.display=t?"inherit":"none"}_updateLabel(e){this._label.innerText=e.newSymbolName}static getLayoutInfo({lineHeight:e}){return{totalHeight:e+2*J._PADDING}}dispose(){}}var ee,te=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},ie=function(e,t){return function(i,s){t(i,s,e)}};class se{constructor(e,t,i){this.model=e,this.position=t,this._providerRenameIdx=0,this._providers=i.ordered(e)}hasProvider(){return this._providers.length>0}async resolveRenameLocation(e){const t=[];for(this._providerRenameIdx=0;this._providerRenameIdx<this._providers.length;this._providerRenameIdx++){const i=this._providers[this._providerRenameIdx];if(!i.resolveRenameLocation)break;const s=await i.resolveRenameLocation(this.model,this.position,e);if(s){if(!s.rejectReason)return s;t.push(s.rejectReason)}}this._providerRenameIdx=0;const i=this.model.getWordAtPosition(this.position);return i?{range:new m.Q(this.position.lineNumber,i.startColumn,this.position.lineNumber,i.endColumn),text:i.word,rejectReason:t.length>0?t.join("\n"):void 0}:{range:m.Q.fromPositions(this.position),text:"",rejectReason:t.length>0?t.join("\n"):void 0}}async provideRenameEdits(e,t){return this._provideRenameEdits(e,this._providerRenameIdx,[],t)}async _provideRenameEdits(e,t,i,s){const n=this._providers[t];if(!n)return{edits:[],rejectReason:i.join("\n")};const r=await n.provideRenameEdits(this.model,this.position,e,s);return r?r.rejectReason?this._provideRenameEdits(e,t+1,i.concat(r.rejectReason),s):r:this._provideRenameEdits(e,t+1,i.concat(S.kg("no result","No result.")),s)}}let ne=class{static{ee=this}static{this.ID="editor.contrib.renameController"}static get(e){return e.getContribution(ee.ID)}constructor(e,t,i,s,n,o,a,l,h){this.editor=e,this._instaService=t,this._notificationService=i,this._bulkEditService=s,this._progressService=n,this._logService=o,this._configService=a,this._languageFeaturesService=l,this._telemetryService=h,this._disposableStore=new c.Cm,this._cts=new r.Qi,this._renameWidget=this._disposableStore.add(this._instaService.createInstance(Q,this.editor,["acceptRenameInput","acceptRenameInputWithPreview"]))}dispose(){this._disposableStore.dispose(),this._cts.dispose(!0)}async run(){const e=this._logService.trace.bind(this._logService,"[rename]");if(this._cts.dispose(!0),this._cts=new r.Qi,!this.editor.hasModel())return void e("editor has no model");const t=this.editor.getPosition(),i=new se(this.editor.getModel(),t,this._languageFeaturesService.renameProvider);if(!i.hasProvider())return void e("skeleton has no provider");const c=new E.gI(this.editor,5,void 0,this._cts.token);let l;try{e("resolving rename location");const t=i.resolveRenameLocation(c.token);this._progressService.showWhile(t,250),l=await t,e("resolved rename location")}catch(C){return void(C instanceof o.AL?e("resolve rename location cancelled",JSON.stringify(C,null,"\t")):(e("resolve rename location failed",C instanceof Error?C:JSON.stringify(C,null,"\t")),("string"===typeof C||(0,a.VS)(C))&&b.k.get(this.editor)?.showMessage(C||S.kg("resolveRenameLocationFailed","An unknown error occurred while resolving rename location"),t)))}finally{c.dispose()}if(!l)return void e("returning early - no loc");if(l.rejectReason)return e(`returning early - rejected with reason: ${l.rejectReason}`,l.rejectReason),void b.k.get(this.editor)?.showMessage(l.rejectReason,t);if(c.token.isCancellationRequested)return void e("returning early - cts1 cancelled");const h=new E.gI(this.editor,5,l.range,this._cts.token),d=this.editor.getModel(),u=this._languageFeaturesService.newSymbolNamesProvider.all(d),g=await Promise.all(u.map((async e=>[e,await e.supportsAutomaticNewSymbolNamesTriggerKind??!1])));e("creating rename input field and awaiting its result");const p=this._bulkEditService.hasPreviewHandler()&&this._configService.getValue(this.editor.getModel().uri,"editor.rename.enablePreview"),f=await this._renameWidget.getInput(l.range,l.text,p,u.length>0?(e,t)=>{let i=g.slice();return e===_.YT.Automatic&&(i=i.filter((([e,t])=>t))),i.map((([i])=>i.provideNewSymbolNames(d,l.range,e,t)))}:void 0,h);if(e("received response from rename input field"),u.length>0&&this._reportTelemetry(u.length,d.getLanguageId(),f),"boolean"===typeof f)return e(`returning early - rename input field response - ${f}`),f&&this.editor.focus(),void h.dispose();this.editor.focus(),e("requesting rename edits");const v=(0,n.PK)(i.provideRenameEdits(f.newName,h.token),h.token).then((async t=>{if(t)if(this.editor.hasModel()){if(t.rejectReason)return e(`returning early - rejected with reason: ${t.rejectReason}`),void this._notificationService.info(t.rejectReason);this.editor.setSelection(m.Q.fromPositions(this.editor.getSelection().getPosition())),e("applying edits"),this._bulkEditService.apply(t,{editor:this.editor,showPreview:f.wantsPreview,label:S.kg("label","Renaming '{0}' to '{1}'",l?.text,f.newName),code:"undoredo.rename",quotableLabel:S.kg("quotableLabel","Renaming {0} to {1}",l?.text,f.newName),respectAutoSaveConfig:!0}).then((t=>{e("edits applied"),t.ariaSummary&&(0,s.xE)(S.kg("aria","Successfully renamed '{0}' to '{1}'. Summary: {2}",l.text,f.newName,t.ariaSummary))})).catch((t=>{e(`error when applying edits ${JSON.stringify(t,null,"\t")}`),this._notificationService.error(S.kg("rename.failedApply","Rename failed to apply edits")),this._logService.error(t)}))}else e("returning early - no model after rename edits are provided");else e("returning early - no rename edits result")}),(t=>{e("error when providing rename edits",JSON.stringify(t,null,"\t")),this._notificationService.error(S.kg("rename.failed","Rename failed to compute edits")),this._logService.error(t)})).finally((()=>{h.dispose()}));return e("returning rename operation"),this._progressService.showWhile(v,250),v}acceptRenameInput(e){this._renameWidget.acceptInput(e)}cancelRenameInput(){this._renameWidget.cancelInput(!0,"cancelRenameInput command")}focusNextRenameSuggestion(){this._renameWidget.focusNextRenameSuggestion()}focusPreviousRenameSuggestion(){this._renameWidget.focusPreviousRenameSuggestion()}_reportTelemetry(e,t,i){const s="boolean"===typeof i?{kind:"cancelled",languageId:t,nRenameSuggestionProviders:e}:{kind:"accepted",languageId:t,nRenameSuggestionProviders:e,source:i.stats.source.k,nRenameSuggestions:i.stats.nRenameSuggestions,timeBeforeFirstInputFieldEdit:i.stats.timeBeforeFirstInputFieldEdit,wantsPreview:i.wantsPreview,nRenameSuggestionsInvocations:i.stats.nRenameSuggestionsInvocations,hadAutomaticRenameSuggestionsInvocation:i.stats.hadAutomaticRenameSuggestionsInvocation};this._telemetryService.publicLog2("renameInvokedEvent",s)}};ne=ee=te([ie(1,L._Y),ie(2,x.Ot),ie(3,u.nu),ie(4,k.N8),ie(5,T.rr),ie(6,C.ITextResourceConfigurationService),ie(7,v.ILanguageFeaturesService),ie(8,N.k)],ne);class re extends d.ks{constructor(){super({id:"editor.action.rename",label:S.kg("rename.label","Rename Symbol"),alias:"Rename Symbol",precondition:R.M$.and(f.R.writable,f.R.hasRenameProvider),kbOpts:{kbExpr:f.R.editorTextFocus,primary:60,weight:100},contextMenuOpts:{group:"1_modification",order:1.1}})}runCommand(e,t){const i=e.get(g.T),[s,n]=Array.isArray(t)&&t||[void 0,void 0];return h.r.isUri(s)&&p.y.isIPosition(n)?i.openCodeEditor({resource:s},i.getActiveCodeEditor()).then((e=>{e&&(e.setPosition(n),e.invokeWithinContext((t=>(this.reportTelemetry(t,e),this.run(t,e)))))}),o.dz):super.runCommand(e,t)}run(e,t){const i=e.get(T.rr),s=ne.get(t);return s?(i.trace("[RenameAction] got controller, running..."),s.run()):(i.trace("[RenameAction] returning early - controller missing"),Promise.resolve())}}(0,d.HW)(ne.ID,ne,4),(0,d.Fl)(re);const oe=d.DX.bindToContribution(ne.get);(0,d.E_)(new oe({id:"acceptRenameInput",precondition:$,handler:e=>e.acceptRenameInput(!1),kbOpts:{weight:199,kbExpr:R.M$.and(f.R.focus,R.M$.not("isComposing")),primary:3}})),(0,d.E_)(new oe({id:"acceptRenameInputWithPreview",precondition:R.M$.and($,R.M$.has("config.editor.rename.enablePreview")),handler:e=>e.acceptRenameInput(!0),kbOpts:{weight:199,kbExpr:R.M$.and(f.R.focus,R.M$.not("isComposing")),primary:2051}})),(0,d.E_)(new oe({id:"cancelRenameInput",precondition:$,handler:e=>e.cancelRenameInput(),kbOpts:{weight:199,kbExpr:f.R.focus,primary:9,secondary:[1033]}})),(0,y.ug)(class extends y.L{constructor(){super({id:"focusNextRenameSuggestion",title:{...S.aS("focusNextRenameSuggestion","Focus Next Rename Suggestion")},precondition:$,keybinding:[{primary:18,weight:199}]})}run(e){const t=e.get(g.T).getFocusedCodeEditor();if(!t)return;const i=ne.get(t);i&&i.focusNextRenameSuggestion()}}),(0,y.ug)(class extends y.L{constructor(){super({id:"focusPreviousRenameSuggestion",title:{...S.aS("focusPreviousRenameSuggestion","Focus Previous Rename Suggestion")},precondition:$,keybinding:[{primary:16,weight:199}]})}run(e){const t=e.get(g.T).getFocusedCodeEditor();if(!t)return;const i=ne.get(t);i&&i.focusPreviousRenameSuggestion()}}),(0,d.ke)("_executeDocumentRenameProvider",(function(e,t,i,...s){const[n]=s;(0,l.j)("string"===typeof n);const{renameProvider:o}=e.get(v.ILanguageFeaturesService);return async function(e,t,i,s){const n=new se(t,i,e),o=await n.resolveRenameLocation(r.XO.None);return o?.rejectReason?{edits:[],rejectReason:o.rejectReason}:n.provideRenameEdits(s,r.XO.None)}(o,t,i,n)})),(0,d.ke)("_executePrepareRename",(async function(e,t,i){const{renameProvider:s}=e.get(v.ILanguageFeaturesService),n=new se(t,i,s),o=await n.resolveRenameLocation(r.XO.None);if(o?.rejectReason)throw new Error(o.rejectReason);return o})),A.O.as(w.Fd.Configuration).registerConfiguration({id:"editor",properties:{"editor.rename.enablePreview":{scope:5,description:S.kg("enablePreview","Enable/disable the ability to preview changes before renaming"),default:!0,type:"boolean"}}})},18278:(e,t,i)=>{"use strict";var s=i(90766),n=i(5662),r=i(31450),o=i(17469),a=i(87289),c=i(10920),l=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},h=function(e,t){return function(i,s){t(i,s,e)}};let d=class extends n.jG{static{this.ID="editor.sectionHeaderDetector"}constructor(e,t,i){super(),this.editor=e,this.languageConfigurationService=t,this.editorWorkerService=i,this.decorations=this.editor.createDecorationsCollection(),this.options=this.createOptions(e.getOption(73)),this.computePromise=null,this.currentOccurrences={},this._register(e.onDidChangeModel((t=>{this.currentOccurrences={},this.options=this.createOptions(e.getOption(73)),this.stop(),this.computeSectionHeaders.schedule(0)}))),this._register(e.onDidChangeModelLanguage((t=>{this.currentOccurrences={},this.options=this.createOptions(e.getOption(73)),this.stop(),this.computeSectionHeaders.schedule(0)}))),this._register(t.onDidChange((t=>{const i=this.editor.getModel()?.getLanguageId();i&&t.affects(i)&&(this.currentOccurrences={},this.options=this.createOptions(e.getOption(73)),this.stop(),this.computeSectionHeaders.schedule(0))}))),this._register(e.onDidChangeConfiguration((t=>{this.options&&!t.hasChanged(73)||(this.options=this.createOptions(e.getOption(73)),this.updateDecorations([]),this.stop(),this.computeSectionHeaders.schedule(0))}))),this._register(this.editor.onDidChangeModelContent((e=>{this.computeSectionHeaders.schedule()}))),this._register(e.onDidChangeModelTokens((e=>{this.computeSectionHeaders.isScheduled()||this.computeSectionHeaders.schedule(1e3)}))),this.computeSectionHeaders=this._register(new s.uC((()=>{this.findSectionHeaders()}),250)),this.computeSectionHeaders.schedule(0)}createOptions(e){if(!e||!this.editor.hasModel())return;const t=this.editor.getModel().getLanguageId();if(!t)return;const i=this.languageConfigurationService.getLanguageConfiguration(t).comments,s=this.languageConfigurationService.getLanguageConfiguration(t).foldingRules;return i||s?.markers?{foldingRules:s,findMarkSectionHeaders:e.showMarkSectionHeaders,findRegionSectionHeaders:e.showRegionSectionHeaders}:void 0}findSectionHeaders(){if(!this.editor.hasModel()||!this.options?.findMarkSectionHeaders&&!this.options?.findRegionSectionHeaders)return;const e=this.editor.getModel();if(e.isDisposed()||e.isTooLargeForSyncing())return;const t=e.getVersionId();this.editorWorkerService.findSectionHeaders(e.uri,this.options).then((i=>{e.isDisposed()||e.getVersionId()!==t||this.updateDecorations(i)}))}updateDecorations(e){const t=this.editor.getModel();t&&(e=e.filter((e=>{if(!e.shouldBeInComments)return!0;const i=t.validateRange(e.range),s=t.tokenization.getLineTokens(i.startLineNumber),n=s.findTokenIndexAtOffset(i.startColumn-1),r=s.getStandardTokenType(n);return s.getLanguageId(n)===t.getLanguageId()&&1===r})));const i=Object.values(this.currentOccurrences).map((e=>e.decorationId)),s=e.map((e=>function(e){return{range:e.range,options:a.kI.createDynamic({description:"section-header",stickiness:3,collapseOnReplaceEdit:!0,minimap:{color:void 0,position:1,sectionHeaderStyle:e.hasSeparatorLine?2:1,sectionHeaderText:e.text}})}}(e)));this.editor.changeDecorations((t=>{const n=t.deltaDecorations(i,s);this.currentOccurrences={};for(let i=0,s=n.length;i<s;i++){const t={sectionHeader:e[i],decorationId:n[i]};this.currentOccurrences[t.decorationId]=t}}))}stop(){this.computeSectionHeaders.cancel(),this.computePromise&&(this.computePromise.cancel(),this.computePromise=null)}dispose(){super.dispose(),this.stop(),this.decorations.clear()}};d=l([h(1,o.JZ),h(2,c.IEditorWorkerService)],d),(0,r.HW)(d.ID,d,1)},98745:(e,t,i)=>{"use strict";var s,n=i(5662),r=i(64383),o=i(23750),a=i(84001),c=i(90766),l=i(18447),h=i(47612),d=i(45538),u=i(32371),g=i(32500),p=i(78381),m=i(56942),f=i(74243),_=i(72466),v=i(84585),C=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},E=function(e,t){return function(i,s){t(i,s,e)}};let b=class extends n.jG{constructor(e,t,i,s,n,r){super(),this._watchers=Object.create(null);const o=t=>{this._watchers[t.uri.toString()]=new S(t,e,i,n,r)},a=(e,t)=>{t.dispose(),delete this._watchers[e.uri.toString()]},c=()=>{for(const e of t.getModels()){const t=this._watchers[e.uri.toString()];(0,v.K)(e,i,s)?t||o(e):t&&a(e,t)}};t.getModels().forEach((e=>{(0,v.K)(e,i,s)&&o(e)})),this._register(t.onModelAdded((e=>{(0,v.K)(e,i,s)&&o(e)}))),this._register(t.onModelRemoved((e=>{const t=this._watchers[e.uri.toString()];t&&a(e,t)}))),this._register(s.onDidChangeConfiguration((e=>{e.affectsConfiguration(v.r)&&c()}))),this._register(i.onDidColorThemeChange(c))}dispose(){for(const e of Object.values(this._watchers))e.dispose();super.dispose()}};b=C([E(0,f.ISemanticTokensStylingService),E(1,o.IModelService),E(2,h.Gy),E(3,a.pG),E(4,g.ILanguageFeatureDebounceService),E(5,m.ILanguageFeaturesService)],b);let S=class extends n.jG{static{s=this}static{this.REQUEST_MIN_DELAY=300}static{this.REQUEST_MAX_DELAY=2e3}constructor(e,t,i,r,o){super(),this._semanticTokensStylingService=t,this._isDisposed=!1,this._model=e,this._provider=o.documentSemanticTokensProvider,this._debounceInformation=r.for(this._provider,"DocumentSemanticTokens",{min:s.REQUEST_MIN_DELAY,max:s.REQUEST_MAX_DELAY}),this._fetchDocumentSemanticTokens=this._register(new c.uC((()=>this._fetchDocumentSemanticTokensNow()),s.REQUEST_MIN_DELAY)),this._currentDocumentResponse=null,this._currentDocumentRequestCancellationTokenSource=null,this._documentProvidersChangeListeners=[],this._providersChangedDuringRequest=!1,this._register(this._model.onDidChangeContent((()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))}))),this._register(this._model.onDidChangeAttached((()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))}))),this._register(this._model.onDidChangeLanguage((()=>{this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(0)})));const a=()=>{(0,n.AS)(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[];for(const t of this._provider.all(e))"function"===typeof t.onDidChange&&this._documentProvidersChangeListeners.push(t.onDidChange((()=>{this._currentDocumentRequestCancellationTokenSource?this._providersChangedDuringRequest=!0:this._fetchDocumentSemanticTokens.schedule(0)})))};a(),this._register(this._provider.onDidChange((()=>{a(),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))}))),this._register(i.onDidColorThemeChange((e=>{this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))}))),this._fetchDocumentSemanticTokens.schedule(0)}dispose(){this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),(0,n.AS)(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[],this._setDocumentSemanticTokens(null,null,null,[]),this._isDisposed=!0,super.dispose()}_fetchDocumentSemanticTokensNow(){if(this._currentDocumentRequestCancellationTokenSource)return;if(!(0,u.br)(this._provider,this._model))return void(this._currentDocumentResponse&&this._model.tokenization.setSemanticTokens(null,!1));if(!this._model.isAttachedToEditor())return;const e=new l.Qi,t=this._currentDocumentResponse?this._currentDocumentResponse.provider:null,i=this._currentDocumentResponse&&this._currentDocumentResponse.resultId||null,s=(0,u.aw)(this._provider,this._model,t,i,e.token);this._currentDocumentRequestCancellationTokenSource=e,this._providersChangedDuringRequest=!1;const n=[],o=this._model.onDidChangeContent((e=>{n.push(e)})),a=new p.W(!1);s.then((e=>{if(this._debounceInformation.update(this._model,a.elapsed()),this._currentDocumentRequestCancellationTokenSource=null,o.dispose(),e){const{provider:t,tokens:i}=e,s=this._semanticTokensStylingService.getStyling(t);this._setDocumentSemanticTokens(t,i||null,s,n)}else this._setDocumentSemanticTokens(null,null,null,n)}),(e=>{e&&(r.MB(e)||"string"===typeof e.message&&-1!==e.message.indexOf("busy"))||r.dz(e),this._currentDocumentRequestCancellationTokenSource=null,o.dispose(),(n.length>0||this._providersChangedDuringRequest)&&(this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model)))}))}static _copy(e,t,i,s,n){n=Math.min(n,i.length-s,e.length-t);for(let r=0;r<n;r++)i[s+r]=e[t+r]}_setDocumentSemanticTokens(e,t,i,n){const r=this._currentDocumentResponse,o=()=>{(n.length>0||this._providersChangedDuringRequest)&&!this._fetchDocumentSemanticTokens.isScheduled()&&this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))};if(this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._isDisposed)e&&t&&e.releaseDocumentSemanticTokens(t.resultId);else if(e&&i){if(!t)return this._model.tokenization.setSemanticTokens(null,!0),void o();if((0,u.yS)(t)){if(!r)return void this._model.tokenization.setSemanticTokens(null,!0);if(0===t.edits.length)t={resultId:t.resultId,data:r.data};else{let e=0;for(const i of t.edits)e+=(i.data?i.data.length:0)-i.deleteCount;const n=r.data,o=new Uint32Array(n.length+e);let a=n.length,c=o.length;for(let l=t.edits.length-1;l>=0;l--){const e=t.edits[l];if(e.start>n.length)return i.warnInvalidEditStart(r.resultId,t.resultId,l,e.start,n.length),void this._model.tokenization.setSemanticTokens(null,!0);const h=a-(e.start+e.deleteCount);h>0&&(s._copy(n,a-h,o,c-h,h),c-=h),e.data&&(s._copy(e.data,0,o,c-e.data.length,e.data.length),c-=e.data.length),a=e.start}a>0&&s._copy(n,0,o,0,a),t={resultId:t.resultId,data:o}}}if((0,u.BB)(t)){this._currentDocumentResponse=new y(e,t.resultId,t.data);const s=(0,d.toMultilineTokens2)(t,i,this._model.getLanguageId());if(n.length>0)for(const e of n)for(const t of s)for(const i of e.changes)t.applyEdit(i.range,i.text);this._model.tokenization.setSemanticTokens(s,!0)}else this._model.tokenization.setSemanticTokens(null,!0);o()}else this._model.tokenization.setSemanticTokens(null,!1)}};S=s=C([E(1,f.ISemanticTokensStylingService),E(2,h.Gy),E(3,g.ILanguageFeatureDebounceService),E(4,m.ILanguageFeaturesService)],S);class y{constructor(e,t,i){this.provider=e,this.resultId=t,this.data=i}dispose(){this.provider.releaseDocumentSemanticTokens(this.resultId)}}(0,_.x)(b)},44798:(e,t,i)=>{"use strict";var s=i(90766),n=i(5662),r=i(31450),o=i(32371),a=i(84585),c=i(45538),l=i(84001),h=i(47612),d=i(32500),u=i(78381),g=i(56942),p=i(74243),m=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},f=function(e,t){return function(i,s){t(i,s,e)}};let _=class extends n.jG{static{this.ID="editor.contrib.viewportSemanticTokens"}constructor(e,t,i,n,r,o){super(),this._semanticTokensStylingService=t,this._themeService=i,this._configurationService=n,this._editor=e,this._provider=o.documentRangeSemanticTokensProvider,this._debounceInformation=r.for(this._provider,"DocumentRangeSemanticTokens",{min:100,max:500}),this._tokenizeViewport=this._register(new s.uC((()=>this._tokenizeViewportNow()),100)),this._outstandingRequests=[];const c=()=>{this._editor.hasModel()&&this._tokenizeViewport.schedule(this._debounceInformation.get(this._editor.getModel()))};this._register(this._editor.onDidScrollChange((()=>{c()}))),this._register(this._editor.onDidChangeModel((()=>{this._cancelAll(),c()}))),this._register(this._editor.onDidChangeModelContent((e=>{this._cancelAll(),c()}))),this._register(this._provider.onDidChange((()=>{this._cancelAll(),c()}))),this._register(this._configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration(a.r)&&(this._cancelAll(),c())}))),this._register(this._themeService.onDidColorThemeChange((()=>{this._cancelAll(),c()}))),c()}_cancelAll(){for(const e of this._outstandingRequests)e.cancel();this._outstandingRequests=[]}_removeOutstandingRequest(e){for(let t=0,i=this._outstandingRequests.length;t<i;t++)if(this._outstandingRequests[t]===e)return void this._outstandingRequests.splice(t,1)}_tokenizeViewportNow(){if(!this._editor.hasModel())return;const e=this._editor.getModel();if(e.tokenization.hasCompleteSemanticTokens())return;if(!(0,a.K)(e,this._themeService,this._configurationService))return void(e.tokenization.hasSomeSemanticTokens()&&e.tokenization.setSemanticTokens(null,!1));if(!(0,o.WG)(this._provider,e))return void(e.tokenization.hasSomeSemanticTokens()&&e.tokenization.setSemanticTokens(null,!1));const t=this._editor.getVisibleRangesPlusViewportAboveBelow();this._outstandingRequests=this._outstandingRequests.concat(t.map((t=>this._requestRange(e,t))))}_requestRange(e,t){const i=e.getVersionId(),n=(0,s.SS)((i=>Promise.resolve((0,o.nZ)(this._provider,e,t,i)))),r=new u.W(!1);return n.then((s=>{if(this._debounceInformation.update(e,r.elapsed()),!s||!s.tokens||e.isDisposed()||e.getVersionId()!==i)return;const{provider:n,tokens:o}=s,a=this._semanticTokensStylingService.getStyling(n);e.tokenization.setPartialSemanticTokens(t,(0,c.toMultilineTokens2)(o,a,e.getLanguageId()))})).then((()=>this._removeOutstandingRequest(n)),(()=>this._removeOutstandingRequest(n))),n}};_=m([f(1,p.ISemanticTokensStylingService),f(2,h.Gy),f(3,l.pG),f(4,d.ILanguageFeatureDebounceService),f(5,g.ILanguageFeaturesService)],_),(0,r.HW)(_.ID,_,1)},32371:(e,t,i)=>{"use strict";i.d(t,{BB:()=>u,WG:()=>v,aw:()=>f,br:()=>m,nZ:()=>E,yS:()=>g});var s=i(18447),n=i(64383),r=i(79400),o=i(23750),a=i(50091),c=i(631),l=i(98232),h=i(36677),d=i(56942);function u(e){return e&&!!e.data}function g(e){return e&&Array.isArray(e.edits)}class p{constructor(e,t,i){this.provider=e,this.tokens=t,this.error=i}}function m(e,t){return e.has(t)}async function f(e,t,i,s,n){const r=function(e,t){const i=e.orderedGroups(t);return i.length>0?i[0]:[]}(e,t),o=await Promise.all(r.map((async e=>{let r,o=null;try{r=await e.provideDocumentSemanticTokens(t,e===i?s:null,n)}catch(a){o=a,r=null}return r&&(u(r)||g(r))||(r=null),new p(e,r,o)})));for(const a of o){if(a.error)throw a.error;if(a.tokens)return a}return o.length>0?o[0]:null}class _{constructor(e,t){this.provider=e,this.tokens=t}}function v(e,t){return e.has(t)}function C(e,t){const i=e.orderedGroups(t);return i.length>0?i[0]:[]}async function E(e,t,i,s){const r=C(e,t),o=await Promise.all(r.map((async e=>{let r;try{r=await e.provideDocumentRangeSemanticTokens(t,i,s)}catch(o){(0,n.M_)(o),r=null}return r&&u(r)||(r=null),new _(e,r)})));for(const n of o)if(n.tokens)return n;return o.length>0?o[0]:null}a.w.registerCommand("_provideDocumentSemanticTokensLegend",(async(e,...t)=>{const[i]=t;(0,c.j)(i instanceof r.r);const s=e.get(o.IModelService).getModel(i);if(!s)return;const{documentSemanticTokensProvider:n}=e.get(d.ILanguageFeaturesService),l=function(e,t){const i=e.orderedGroups(t);return i.length>0?i[0]:null}(n,s);return l?l[0].getLegend():e.get(a.d).executeCommand("_provideDocumentRangeSemanticTokensLegend",i)})),a.w.registerCommand("_provideDocumentSemanticTokens",(async(e,...t)=>{const[i]=t;(0,c.j)(i instanceof r.r);const n=e.get(o.IModelService).getModel(i);if(!n)return;const{documentSemanticTokensProvider:h}=e.get(d.ILanguageFeaturesService);if(!m(h,n))return e.get(a.d).executeCommand("_provideDocumentRangeSemanticTokens",i,n.getFullModelRange());const g=await f(h,n,null,null,s.XO.None);if(!g)return;const{provider:p,tokens:_}=g;if(!_||!u(_))return;const v=(0,l.encodeSemanticTokensDto)({id:0,type:"full",data:_.data});return _.resultId&&p.releaseDocumentSemanticTokens(_.resultId),v})),a.w.registerCommand("_provideDocumentRangeSemanticTokensLegend",(async(e,...t)=>{const[i,n]=t;(0,c.j)(i instanceof r.r);const a=e.get(o.IModelService).getModel(i);if(!a)return;const{documentRangeSemanticTokensProvider:l}=e.get(d.ILanguageFeaturesService),u=C(l,a);if(0===u.length)return;if(1===u.length)return u[0].getLegend();if(!n||!h.Q.isIRange(n))return console.warn("provideDocumentRangeSemanticTokensLegend might be out-of-sync with provideDocumentRangeSemanticTokens unless a range argument is passed in"),u[0].getLegend();const g=await E(l,a,h.Q.lift(n),s.XO.None);return g?g.provider.getLegend():void 0})),a.w.registerCommand("_provideDocumentRangeSemanticTokens",(async(e,...t)=>{const[i,n]=t;(0,c.j)(i instanceof r.r),(0,c.j)(h.Q.isIRange(n));const a=e.get(o.IModelService).getModel(i);if(!a)return;const{documentRangeSemanticTokensProvider:u}=e.get(d.ILanguageFeaturesService),g=await E(u,a,h.Q.lift(n),s.XO.None);return g&&g.tokens?(0,l.encodeSemanticTokensDto)({id:0,type:"full",data:g.tokens.data}):void 0}))},84585:(e,t,i)=>{"use strict";i.d(t,{K:()=>n,r:()=>s});const s="editor.semanticHighlighting";function n(e,t,i){const n=i.getValue(s,{overrideIdentifier:e.getLanguageId(),resource:e.uri})?.enabled;return"boolean"===typeof n?n:t.getColorTheme().semanticHighlighting}},39286:(e,t,i)=>{"use strict";i.d(t,{n:()=>o});var s=i(58925),n=i(83069),r=i(36677);class o{async provideSelectionRanges(e,t){const i=[];for(const s of t){const t=[];i.push(t);const n=new Map;await new Promise((t=>o._bracketsRightYield(t,0,e,s,n))),await new Promise((i=>o._bracketsLeftYield(i,0,e,s,n,t)))}return i}static{this._maxDuration=30}static{this._maxRounds=2}static _bracketsRightYield(e,t,i,n,r){const a=new Map,c=Date.now();for(;;){if(t>=o._maxRounds){e();break}if(!n){e();break}const l=i.bracketPairs.findNextBracket(n);if(!l){e();break}if(Date.now()-c>o._maxDuration){setTimeout((()=>o._bracketsRightYield(e,t+1,i,n,r)));break}if(l.bracketInfo.isOpeningBracket){const e=l.bracketInfo.bracketText,t=a.has(e)?a.get(e):0;a.set(e,t+1)}else{const e=l.bracketInfo.getOpeningBrackets()[0].bracketText;let t=a.has(e)?a.get(e):0;if(t-=1,a.set(e,Math.max(0,t)),t<0){let t=r.get(e);t||(t=new s.w,r.set(e,t)),t.push(l.range)}}n=l.range.getEndPosition()}}static _bracketsLeftYield(e,t,i,s,n,a){const c=new Map,l=Date.now();for(;;){if(t>=o._maxRounds&&0===n.size){e();break}if(!s){e();break}const h=i.bracketPairs.findPrevBracket(s);if(!h){e();break}if(Date.now()-l>o._maxDuration){setTimeout((()=>o._bracketsLeftYield(e,t+1,i,s,n,a)));break}if(h.bracketInfo.isOpeningBracket){const e=h.bracketInfo.bracketText;let t=c.has(e)?c.get(e):0;if(t-=1,c.set(e,Math.max(0,t)),t<0){const t=n.get(e);if(t){const s=t.shift();0===t.size&&n.delete(e);const c=r.Q.fromPositions(h.range.getEndPosition(),s.getStartPosition()),l=r.Q.fromPositions(h.range.getStartPosition(),s.getEndPosition());a.push({range:c}),a.push({range:l}),o._addBracketLeading(i,l,a)}}}else{const e=h.bracketInfo.getOpeningBrackets()[0].bracketText,t=c.has(e)?c.get(e):0;c.set(e,t+1)}s=h.range.getStartPosition()}}static _addBracketLeading(e,t,i){if(t.startLineNumber===t.endLineNumber)return;const s=t.startLineNumber,o=e.getLineFirstNonWhitespaceColumn(s);0!==o&&o!==t.startColumn&&(i.push({range:r.Q.fromPositions(new n.y(s,o),t.getEndPosition())}),i.push({range:r.Q.fromPositions(new n.y(s,1),t.getEndPosition())}));const a=s-1;if(a>0){const s=e.getLineFirstNonWhitespaceColumn(a);s===t.startColumn&&s!==e.getLineLastNonWhitespaceColumn(a)&&(i.push({range:r.Q.fromPositions(new n.y(a,s),t.getEndPosition())}),i.push({range:r.Q.fromPositions(new n.y(a,1),t.getEndPosition())}))}}}},10617:(e,t,i)=>{"use strict";var s=i(25890),n=i(18447),r=i(64383),o=i(31450),a=i(83069),c=i(36677),l=i(75326),h=i(60002),d=i(39286),u=i(91508);class g{constructor(e=!0){this.selectSubwords=e}provideSelectionRanges(e,t){const i=[];for(const s of t){const t=[];i.push(t),this.selectSubwords&&this._addInWordRanges(t,e,s),this._addWordRanges(t,e,s),this._addWhitespaceLine(t,e,s),t.push({range:e.getFullModelRange()})}return i}_addInWordRanges(e,t,i){const s=t.getWordAtPosition(i);if(!s)return;const{word:n,startColumn:r}=s,o=i.column-r;let a=o,l=o,h=0;for(;a>=0;a--){const e=n.charCodeAt(a);if(a!==o&&(95===e||45===e))break;if((0,u.Lv)(e)&&(0,u.Wv)(h))break;h=e}for(a+=1;l<n.length;l++){const e=n.charCodeAt(l);if((0,u.Wv)(e)&&(0,u.Lv)(h))break;if(95===e||45===e)break;h=e}a<l&&e.push({range:new c.Q(i.lineNumber,r+a,i.lineNumber,r+l)})}_addWordRanges(e,t,i){const s=t.getWordAtPosition(i);s&&e.push({range:new c.Q(i.lineNumber,s.startColumn,i.lineNumber,s.endColumn)})}_addWhitespaceLine(e,t,i){t.getLineLength(i.lineNumber)>0&&0===t.getLineFirstNonWhitespaceColumn(i.lineNumber)&&0===t.getLineLastNonWhitespaceColumn(i.lineNumber)&&e.push({range:new c.Q(i.lineNumber,1,i.lineNumber,t.getLineMaxColumn(i.lineNumber))})}}var p,m=i(78209),f=i(27195),_=i(50091),v=i(56942),C=i(18938),E=i(631),b=i(79400),S=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},y=function(e,t){return function(i,s){t(i,s,e)}};class w{constructor(e,t){this.index=e,this.ranges=t}mov(e){const t=this.index+(e?1:-1);if(t<0||t>=this.ranges.length)return this;const i=new w(t,this.ranges);return i.ranges[t].equalsRange(this.ranges[this.index])?i.mov(e):i}}let R=class{static{p=this}static{this.ID="editor.contrib.smartSelectController"}static get(e){return e.getContribution(p.ID)}constructor(e,t){this._editor=e,this._languageFeaturesService=t,this._ignoreSelection=!1}dispose(){this._selectionListener?.dispose()}async run(e){if(!this._editor.hasModel())return;const t=this._editor.getSelections(),i=this._editor.getModel();if(this._state||await T(this._languageFeaturesService.selectionRangeProvider,i,t.map((e=>e.getPosition())),this._editor.getOption(114),n.XO.None).then((e=>{if(s.EI(e)&&e.length===t.length&&this._editor.hasModel()&&s.aI(this._editor.getSelections(),t,((e,t)=>e.equalsSelection(t)))){for(let i=0;i<e.length;i++)e[i]=e[i].filter((e=>e.containsPosition(t[i].getStartPosition())&&e.containsPosition(t[i].getEndPosition()))),e[i].unshift(t[i]);this._state=e.map((e=>new w(0,e))),this._selectionListener?.dispose(),this._selectionListener=this._editor.onDidChangeCursorPosition((()=>{this._ignoreSelection||(this._selectionListener?.dispose(),this._state=void 0)}))}})),!this._state)return;this._state=this._state.map((t=>t.mov(e)));const r=this._state.map((e=>l.L.fromPositions(e.ranges[e.index].getStartPosition(),e.ranges[e.index].getEndPosition())));this._ignoreSelection=!0;try{this._editor.setSelections(r)}finally{this._ignoreSelection=!1}}};R=p=S([y(1,v.ILanguageFeaturesService)],R);class L extends o.ks{constructor(e,t){super(t),this._forward=e}async run(e,t){const i=R.get(t);i&&await i.run(this._forward)}}_.w.registerCommandAlias("editor.action.smartSelect.grow","editor.action.smartSelect.expand");async function T(e,t,i,n,o){const l=e.all(t).concat(new g(n.selectSubwords));1===l.length&&l.unshift(new d.n);const h=[],u=[];for(const a of l)h.push(Promise.resolve(a.provideSelectionRanges(t,i,o)).then((e=>{if(s.EI(e)&&e.length===i.length)for(let t=0;t<i.length;t++){u[t]||(u[t]=[]);for(const s of e[t])c.Q.isIRange(s.range)&&c.Q.containsPosition(s.range,i[t])&&u[t].push(c.Q.lift(s.range))}}),r.M_));return await Promise.all(h),u.map((e=>{if(0===e.length)return[];e.sort(((e,t)=>a.y.isBefore(e.getStartPosition(),t.getStartPosition())?1:a.y.isBefore(t.getStartPosition(),e.getStartPosition())||a.y.isBefore(e.getEndPosition(),t.getEndPosition())?-1:a.y.isBefore(t.getEndPosition(),e.getEndPosition())?1:0));const i=[];let s;for(const t of e)(!s||c.Q.containsRange(t,s)&&!c.Q.equalsRange(t,s))&&(i.push(t),s=t);if(!n.selectLeadingAndTrailingWhitespace)return i;const r=[i[0]];for(let n=1;n<i.length;n++){const e=i[n-1],s=i[n];if(s.startLineNumber!==e.startLineNumber||s.endLineNumber!==e.endLineNumber){const i=new c.Q(e.startLineNumber,t.getLineFirstNonWhitespaceColumn(e.startLineNumber),e.endLineNumber,t.getLineLastNonWhitespaceColumn(e.endLineNumber));i.containsRange(e)&&!i.equalsRange(e)&&s.containsRange(i)&&!s.equalsRange(i)&&r.push(i);const n=new c.Q(e.startLineNumber,1,e.endLineNumber,t.getLineMaxColumn(e.endLineNumber));n.containsRange(e)&&!n.equalsRange(i)&&s.containsRange(n)&&!s.equalsRange(n)&&r.push(n)}r.push(s)}return r}))}(0,o.HW)(R.ID,R,4),(0,o.Fl)(class extends L{constructor(){super(!0,{id:"editor.action.smartSelect.expand",label:m.kg("smartSelect.expand","Expand Selection"),alias:"Expand Selection",precondition:void 0,kbOpts:{kbExpr:h.R.editorTextFocus,primary:1553,mac:{primary:3345,secondary:[1297]},weight:100},menuOpts:{menuId:f.D8.MenubarSelectionMenu,group:"1_basic",title:m.kg({key:"miSmartSelectGrow",comment:["&& denotes a mnemonic"]},"&&Expand Selection"),order:2}})}}),(0,o.Fl)(class extends L{constructor(){super(!1,{id:"editor.action.smartSelect.shrink",label:m.kg("smartSelect.shrink","Shrink Selection"),alias:"Shrink Selection",precondition:void 0,kbOpts:{kbExpr:h.R.editorTextFocus,primary:1551,mac:{primary:3343,secondary:[1295]},weight:100},menuOpts:{menuId:f.D8.MenubarSelectionMenu,group:"1_basic",title:m.kg({key:"miSmartSelectShrink",comment:["&& denotes a mnemonic"]},"&&Shrink Selection"),order:3}})}}),_.w.registerCommand("_executeSelectionRangeProvider",(async function(e,...t){const[i,s]=t;(0,E.j)(b.r.isUri(i));const r=e.get(v.ILanguageFeaturesService).selectionRangeProvider,o=await e.get(C.ITextModelService).createModelReference(i);try{return T(r,o.object.textEditorModel,s,{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},n.XO.None)}finally{o.dispose()}}))},30936:(e,t,i)=>{"use strict";i.d(t,{O:()=>C});var s,n=i(5662),r=i(631),o=i(31450),a=i(83069),c=i(60002),l=i(17469),h=i(56942),d=i(48116),u=i(78209),g=i(32848),p=i(18801),m=i(38280),f=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},_=function(e,t){return function(i,s){t(i,s,e)}};const v={overwriteBefore:0,overwriteAfter:0,undoStopBefore:!0,undoStopAfter:!0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0};let C=class{static{s=this}static{this.ID="snippetController2"}static get(e){return e.getContribution(s.ID)}static{this.InSnippetMode=new g.N1("inSnippetMode",!1,(0,u.kg)("inSnippetMode","Whether the editor in current in snippet mode"))}static{this.HasNextTabstop=new g.N1("hasNextTabstop",!1,(0,u.kg)("hasNextTabstop","Whether there is a next tab stop when in snippet mode"))}static{this.HasPrevTabstop=new g.N1("hasPrevTabstop",!1,(0,u.kg)("hasPrevTabstop","Whether there is a previous tab stop when in snippet mode"))}constructor(e,t,i,r,o){this._editor=e,this._logService=t,this._languageFeaturesService=i,this._languageConfigurationService=o,this._snippetListener=new n.Cm,this._modelVersionId=-1,this._inSnippet=s.InSnippetMode.bindTo(r),this._hasNextTabstop=s.HasNextTabstop.bindTo(r),this._hasPrevTabstop=s.HasPrevTabstop.bindTo(r)}dispose(){this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),this._session?.dispose(),this._snippetListener.dispose()}insert(e,t){try{this._doInsert(e,"undefined"===typeof t?v:{...v,...t})}catch(i){this.cancel(),this._logService.error(i),this._logService.error("snippet_error"),this._logService.error("insert_template=",e),this._logService.error("existing_template=",this._session?this._session._logInfo():"<no_session>")}}_doInsert(e,t){if(this._editor.hasModel()){if(this._snippetListener.clear(),t.undoStopBefore&&this._editor.getModel().pushStackElement(),this._session&&"string"!==typeof e&&this.cancel(),this._session?((0,r.j)("string"===typeof e),this._session.merge(e,t)):(this._modelVersionId=this._editor.getModel().getAlternativeVersionId(),this._session=new m.O(this._editor,e,t,this._languageConfigurationService),this._session.insert()),t.undoStopAfter&&this._editor.getModel().pushStackElement(),this._session?.hasChoice){const e={_debugDisplayName:"snippetChoiceCompletions",provideCompletionItems:(e,t)=>{if(!this._session||e!==this._editor.getModel()||!a.y.equals(this._editor.getPosition(),t))return;const{activeChoice:i}=this._session;if(!i||0===i.choice.options.length)return;const s=e.getValueInRange(i.range),n=Boolean(i.choice.options.find((e=>e.value===s))),r=[];for(let o=0;o<i.choice.options.length;o++){const e=i.choice.options[o];r.push({kind:13,label:e.value,insertText:e.value,sortText:"a".repeat(o+1),range:i.range,filterText:n?`${s}_${e.value}`:void 0,command:{id:"jumpToNextSnippetPlaceholder",title:(0,u.kg)("next","Go to next placeholder...")}})}return{suggestions:r}}},t=this._editor.getModel();let i,s=!1;const n=()=>{i?.dispose(),s=!1},r=()=>{s||(i=this._languageFeaturesService.completionProvider.register({language:t.getLanguageId(),pattern:t.uri.fsPath,scheme:t.uri.scheme,exclusive:!0},e),this._snippetListener.add(i),s=!0)};this._choiceCompletions={provider:e,enable:r,disable:n}}this._updateState(),this._snippetListener.add(this._editor.onDidChangeModelContent((e=>e.isFlush&&this.cancel()))),this._snippetListener.add(this._editor.onDidChangeModel((()=>this.cancel()))),this._snippetListener.add(this._editor.onDidChangeCursorSelection((()=>this._updateState())))}}_updateState(){if(this._session&&this._editor.hasModel()){if(this._modelVersionId===this._editor.getModel().getAlternativeVersionId())return this.cancel();if(!this._session.hasPlaceholder)return this.cancel();if(this._session.isAtLastPlaceholder||!this._session.isSelectionWithinPlaceholders())return this._editor.getModel().pushStackElement(),this.cancel();this._inSnippet.set(!0),this._hasPrevTabstop.set(!this._session.isAtFirstPlaceholder),this._hasNextTabstop.set(!this._session.isAtLastPlaceholder),this._handleChoice()}}_handleChoice(){if(!this._session||!this._editor.hasModel())return void(this._currentChoice=void 0);const{activeChoice:e}=this._session;if(!e||!this._choiceCompletions)return this._choiceCompletions?.disable(),void(this._currentChoice=void 0);this._currentChoice!==e.choice&&(this._currentChoice=e.choice,this._choiceCompletions.enable(),queueMicrotask((()=>{(0,d.p3)(this._editor,this._choiceCompletions.provider)})))}finish(){for(;this._inSnippet.get();)this.next()}cancel(e=!1){this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),this._snippetListener.clear(),this._currentChoice=void 0,this._session?.dispose(),this._session=void 0,this._modelVersionId=-1,e&&this._editor.setSelections([this._editor.getSelection()])}prev(){this._session?.prev(),this._updateState()}next(){this._session?.next(),this._updateState()}isInSnippet(){return Boolean(this._inSnippet.get())}};C=s=f([_(1,p.rr),_(2,h.ILanguageFeaturesService),_(3,g.fN),_(4,l.JZ)],C),(0,o.HW)(C.ID,C,4);const E=o.DX.bindToContribution(C.get);(0,o.E_)(new E({id:"jumpToNextSnippetPlaceholder",precondition:g.M$.and(C.InSnippetMode,C.HasNextTabstop),handler:e=>e.next(),kbOpts:{weight:130,kbExpr:c.R.textInputFocus,primary:2}})),(0,o.E_)(new E({id:"jumpToPrevSnippetPlaceholder",precondition:g.M$.and(C.InSnippetMode,C.HasPrevTabstop),handler:e=>e.prev(),kbOpts:{weight:130,kbExpr:c.R.textInputFocus,primary:1026}})),(0,o.E_)(new E({id:"leaveSnippet",precondition:C.InSnippetMode,handler:e=>e.cancel(!0),kbOpts:{weight:130,kbExpr:c.R.textInputFocus,primary:9,secondary:[1033]}})),(0,o.E_)(new E({id:"acceptSnippet",precondition:C.InSnippetMode,handler:e=>e.finish()}))},29319:(e,t,i)=>{"use strict";i.d(t,{EY:()=>r,GR:()=>c,Or:()=>a,fr:()=>p,mQ:()=>g});class s{constructor(){this.value="",this.pos=0}static{this._table={36:0,58:1,44:2,123:3,125:4,92:5,47:6,124:7,43:11,45:12,63:13}}static isDigitCharacter(e){return e>=48&&e<=57}static isVariableCharacter(e){return 95===e||e>=97&&e<=122||e>=65&&e<=90}text(e){this.value=e,this.pos=0}tokenText(e){return this.value.substr(e.pos,e.len)}next(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};const e=this.pos;let t,i=0,n=this.value.charCodeAt(e);if(t=s._table[n],"number"===typeof t)return this.pos+=1,{type:t,pos:e,len:1};if(s.isDigitCharacter(n)){t=8;do{i+=1,n=this.value.charCodeAt(e+i)}while(s.isDigitCharacter(n));return this.pos+=i,{type:t,pos:e,len:i}}if(s.isVariableCharacter(n)){t=9;do{n=this.value.charCodeAt(e+ ++i)}while(s.isVariableCharacter(n)||s.isDigitCharacter(n));return this.pos+=i,{type:t,pos:e,len:i}}t=10;do{i+=1,n=this.value.charCodeAt(e+i)}while(!isNaN(n)&&"undefined"===typeof s._table[n]&&!s.isDigitCharacter(n)&&!s.isVariableCharacter(n));return this.pos+=i,{type:t,pos:e,len:i}}}class n{constructor(){this._children=[]}appendChild(e){return e instanceof r&&this._children[this._children.length-1]instanceof r?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}replace(e,t){const{parent:i}=e,s=i.children.indexOf(e),n=i.children.slice(0);n.splice(s,1,...t),i._children=n,function e(t,i){for(const s of t)s.parent=i,e(s.children,s)}(t,i)}get children(){return this._children}get rightMostDescendant(){return this._children.length>0?this._children[this._children.length-1].rightMostDescendant:this}get snippet(){let e=this;for(;;){if(!e)return;if(e instanceof g)return e;e=e.parent}}toString(){return this.children.reduce(((e,t)=>e+t.toString()),"")}len(){return 0}}class r extends n{constructor(e){super(),this.value=e}toString(){return this.value}len(){return this.value.length}clone(){return new r(this.value)}}class o extends n{}class a extends o{static compareByIndex(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop||e.index<t.index?-1:e.index>t.index?1:0}constructor(e){super(),this.index=e}get isFinalTabstop(){return 0===this.index}get choice(){return 1===this._children.length&&this._children[0]instanceof c?this._children[0]:void 0}clone(){const e=new a(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map((e=>e.clone())),e}}class c extends n{constructor(){super(...arguments),this.options=[]}appendChild(e){return e instanceof r&&(e.parent=this,this.options.push(e)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){const e=new c;return this.options.forEach(e.appendChild,e),e}}class l extends n{constructor(){super(...arguments),this.regexp=new RegExp("")}resolve(e){const t=this;let i=!1,s=e.replace(this.regexp,(function(){return i=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))}));return!i&&this._children.some((e=>e instanceof h&&Boolean(e.elseValue)))&&(s=this._replace([])),s}_replace(e){let t="";for(const i of this._children)if(i instanceof h){let s=e[i.index]||"";s=i.resolve(s),t+=s}else t+=i.toString();return t}toString(){return""}clone(){const e=new l;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map((e=>e.clone())),e}}class h extends n{constructor(e,t,i,s){super(),this.index=e,this.shorthandName=t,this.ifValue=i,this.elseValue=s}resolve(e){return"upcase"===this.shorthandName?e?e.toLocaleUpperCase():"":"downcase"===this.shorthandName?e?e.toLocaleLowerCase():"":"capitalize"===this.shorthandName?e?e[0].toLocaleUpperCase()+e.substr(1):"":"pascalcase"===this.shorthandName?e?this._toPascalCase(e):"":"camelcase"===this.shorthandName?e?this._toCamelCase(e):"":Boolean(e)&&"string"===typeof this.ifValue?this.ifValue:Boolean(e)||"string"!==typeof this.elseValue?e||"":this.elseValue}_toPascalCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map((e=>e.charAt(0).toUpperCase()+e.substr(1))).join(""):e}_toCamelCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map(((e,t)=>0===t?e.charAt(0).toLowerCase()+e.substr(1):e.charAt(0).toUpperCase()+e.substr(1))).join(""):e}clone(){return new h(this.index,this.shorthandName,this.ifValue,this.elseValue)}}class d extends o{constructor(e){super(),this.name=e}resolve(e){let t=e.resolve(this);return this.transform&&(t=this.transform.resolve(t||"")),void 0!==t&&(this._children=[new r(t)],!0)}clone(){const e=new d(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map((e=>e.clone())),e}}function u(e,t){const i=[...e];for(;i.length>0;){const e=i.shift();if(!t(e))break;i.unshift(...e.children)}}class g extends n{get placeholderInfo(){if(!this._placeholders){const e=[];let t;this.walk((function(i){return i instanceof a&&(e.push(i),t=!t||t.index<i.index?i:t),!0})),this._placeholders={all:e,last:t}}return this._placeholders}get placeholders(){const{all:e}=this.placeholderInfo;return e}offset(e){let t=0,i=!1;return this.walk((s=>s===e?(i=!0,!1):(t+=s.len(),!0))),i?t:-1}fullLen(e){let t=0;return u([e],(e=>(t+=e.len(),!0))),t}enclosingPlaceholders(e){const t=[];let{parent:i}=e;for(;i;)i instanceof a&&t.push(i),i=i.parent;return t}resolveVariables(e){return this.walk((t=>(t instanceof d&&t.resolve(e)&&(this._placeholders=void 0),!0))),this}appendChild(e){return this._placeholders=void 0,super.appendChild(e)}replace(e,t){return this._placeholders=void 0,super.replace(e,t)}clone(){const e=new g;return this._children=this.children.map((e=>e.clone())),e}walk(e){u(this.children,e)}}class p{constructor(){this._scanner=new s,this._token={type:14,pos:0,len:0}}static escape(e){return e.replace(/\$|}|\\/g,"\\$&")}static guessNeedsClipboard(e){return/\${?CLIPBOARD/.test(e)}parse(e,t,i){const s=new g;return this.parseFragment(e,s),this.ensureFinalTabstop(s,i??!1,t??!1),s}parseFragment(e,t){const i=t.children.length;for(this._scanner.text(e),this._token=this._scanner.next();this._parse(t););const s=new Map,n=[];t.walk((e=>(e instanceof a&&(e.isFinalTabstop?s.set(0,void 0):!s.has(e.index)&&e.children.length>0?s.set(e.index,e.children):n.push(e)),!0)));const r=(e,i)=>{const n=s.get(e.index);if(!n)return;const o=new a(e.index);o.transform=e.transform;for(const t of n){const e=t.clone();o.appendChild(e),e instanceof a&&s.has(e.index)&&!i.has(e.index)&&(i.add(e.index),r(e,i),i.delete(e.index))}t.replace(e,[o])},o=new Set;for(const a of n)r(a,o);return t.children.slice(i)}ensureFinalTabstop(e,t,i){if(t||i&&e.placeholders.length>0){e.placeholders.find((e=>0===e.index))||e.appendChild(new a(0))}}_accept(e,t){if(void 0===e||this._token.type===e){const e=!t||this._scanner.tokenText(this._token);return this._token=this._scanner.next(),e}return!1}_backTo(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}_until(e){const t=this._token;for(;this._token.type!==e;){if(14===this._token.type)return!1;if(5===this._token.type){const e=this._scanner.next();if(0!==e.type&&4!==e.type&&5!==e.type)return!1}this._token=this._scanner.next()}const i=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),i}_parse(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)}_parseEscaped(e){let t;return!!(t=this._accept(5,!0))&&(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||t,e.appendChild(new r(t)),!0)}_parseTabstopOrVariableName(e){let t;const i=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new a(Number(t)):new d(t)),!0):this._backTo(i)}_parseComplexPlaceholder(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(i);const s=new a(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(s),!0;if(!this._parse(s))return e.appendChild(new r("${"+t+":")),s.children.forEach(e.appendChild,e),!0}else{if(!(s.index>0&&this._accept(7)))return this._accept(6)?this._parseTransform(s)?(e.appendChild(s),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(s),!0):this._backTo(i);{const t=new c;for(;;){if(this._parseChoiceElement(t)){if(this._accept(2))continue;if(this._accept(7)&&(s.appendChild(t),this._accept(4)))return e.appendChild(s),!0}return this._backTo(i),!1}}}}_parseChoiceElement(e){const t=this._token,i=[];for(;2!==this._token.type&&7!==this._token.type;){let e;if(e=(e=this._accept(5,!0))?this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||e:this._accept(void 0,!0),!e)return this._backTo(t),!1;i.push(e)}return 0===i.length?(this._backTo(t),!1):(e.appendChild(new r(i.join(""))),!0)}_parseComplexVariable(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(i);const s=new d(t);if(!this._accept(1))return this._accept(6)?this._parseTransform(s)?(e.appendChild(s),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(s),!0):this._backTo(i);for(;;){if(this._accept(4))return e.appendChild(s),!0;if(!this._parse(s))return e.appendChild(new r("${"+t+":")),s.children.forEach(e.appendChild,e),!0}}_parseTransform(e){const t=new l;let i="",s="";for(;!this._accept(6);){let e;if(e=this._accept(5,!0))e=this._accept(6,!0)||e,i+=e;else{if(14===this._token.type)return!1;i+=this._accept(void 0,!0)}}for(;!this._accept(6);){let e;if(e=this._accept(5,!0))e=this._accept(5,!0)||this._accept(6,!0)||e,t.appendChild(new r(e));else if(!this._parseFormatString(t)&&!this._parseAnything(t))return!1}for(;!this._accept(4);){if(14===this._token.type)return!1;s+=this._accept(void 0,!0)}try{t.regexp=new RegExp(i,s)}catch(n){return!1}return e.transform=t,!0}_parseFormatString(e){const t=this._token;if(!this._accept(0))return!1;let i=!1;this._accept(3)&&(i=!0);const s=this._accept(8,!0);if(!s)return this._backTo(t),!1;if(!i)return e.appendChild(new h(Number(s))),!0;if(this._accept(4))return e.appendChild(new h(Number(s))),!0;if(!this._accept(1))return this._backTo(t),!1;if(this._accept(6)){const i=this._accept(9,!0);return i&&this._accept(4)?(e.appendChild(new h(Number(s),i)),!0):(this._backTo(t),!1)}if(this._accept(11)){const t=this._until(4);if(t)return e.appendChild(new h(Number(s),void 0,t,void 0)),!0}else if(this._accept(12)){const t=this._until(4);if(t)return e.appendChild(new h(Number(s),void 0,void 0,t)),!0}else if(this._accept(13)){const t=this._until(1);if(t){const i=this._until(4);if(i)return e.appendChild(new h(Number(s),void 0,t,i)),!0}}else{const t=this._until(4);if(t)return e.appendChild(new h(Number(s),void 0,void 0,t)),!0}return this._backTo(t),!1}_parseAnything(e){return 14!==this._token.type&&(e.appendChild(new r(this._scanner.tokenText(this._token))),this._accept(void 0),!0)}}},38280:(e,t,i)=>{"use strict";i.d(t,{O:()=>P});var s=i(25890),n=i(5662),r=i(91508),o=i(7085),a=i(36677),c=i(75326),l=i(17469),h=i(87289),d=i(67841),u=i(37227),g=i(29319),p=i(79326),m=i(98067);function f(e,t=m.uF){return(0,p.No)(e,t)?e.charAt(0).toUpperCase()+e.slice(1):e}Object.create(null);var _=i(74027),v=i(89403),C=i(58255),E=i(78209),b=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},S=function(e,t){return function(i,s){t(i,s,e)}};Object.freeze({CURRENT_YEAR:!0,CURRENT_YEAR_SHORT:!0,CURRENT_MONTH:!0,CURRENT_DATE:!0,CURRENT_HOUR:!0,CURRENT_MINUTE:!0,CURRENT_SECOND:!0,CURRENT_DAY_NAME:!0,CURRENT_DAY_NAME_SHORT:!0,CURRENT_MONTH_NAME:!0,CURRENT_MONTH_NAME_SHORT:!0,CURRENT_SECONDS_UNIX:!0,CURRENT_TIMEZONE_OFFSET:!0,SELECTION:!0,CLIPBOARD:!0,TM_SELECTED_TEXT:!0,TM_CURRENT_LINE:!0,TM_CURRENT_WORD:!0,TM_LINE_INDEX:!0,TM_LINE_NUMBER:!0,TM_FILENAME:!0,TM_FILENAME_BASE:!0,TM_DIRECTORY:!0,TM_FILEPATH:!0,CURSOR_INDEX:!0,CURSOR_NUMBER:!0,RELATIVE_FILEPATH:!0,BLOCK_COMMENT_START:!0,BLOCK_COMMENT_END:!0,LINE_COMMENT:!0,WORKSPACE_NAME:!0,WORKSPACE_FOLDER:!0,RANDOM:!0,RANDOM_HEX:!0,UUID:!0});class y{constructor(e){this._delegates=e}resolve(e){for(const t of this._delegates){const i=t.resolve(e);if(void 0!==i)return i}}}class w{constructor(e,t,i,s){this._model=e,this._selection=t,this._selectionIdx=i,this._overtypingCapturer=s}resolve(e){const{name:t}=e;if("SELECTION"===t||"TM_SELECTED_TEXT"===t){let t=this._model.getValueInRange(this._selection)||void 0,i=this._selection.startLineNumber!==this._selection.endLineNumber;if(!t&&this._overtypingCapturer){const e=this._overtypingCapturer.getLastOvertypedInfo(this._selectionIdx);e&&(t=e.value,i=e.multiline)}if(t&&i&&e.snippet){const i=this._model.getLineContent(this._selection.startLineNumber),s=(0,r.UU)(i,0,this._selection.startColumn-1);let n=s;e.snippet.walk((t=>t!==e&&(t instanceof g.EY&&(n=(0,r.UU)((0,r.uz)(t.value).pop())),!0)));const o=(0,r.Qp)(n,s);t=t.replace(/(\r\n|\r|\n)(.*)/g,((e,t,i)=>`${t}${n.substr(o)}${i}`))}return t}if("TM_CURRENT_LINE"===t)return this._model.getLineContent(this._selection.positionLineNumber);if("TM_CURRENT_WORD"===t){const e=this._model.getWordAtPosition({lineNumber:this._selection.positionLineNumber,column:this._selection.positionColumn});return e&&e.word||void 0}return"TM_LINE_INDEX"===t?String(this._selection.positionLineNumber-1):"TM_LINE_NUMBER"===t?String(this._selection.positionLineNumber):"CURSOR_INDEX"===t?String(this._selectionIdx):"CURSOR_NUMBER"===t?String(this._selectionIdx+1):void 0}}class R{constructor(e,t){this._labelService=e,this._model=t}resolve(e){const{name:t}=e;if("TM_FILENAME"===t)return _.P8(this._model.uri.fsPath);if("TM_FILENAME_BASE"===t){const e=_.P8(this._model.uri.fsPath),t=e.lastIndexOf(".");return t<=0?e:e.slice(0,t)}return"TM_DIRECTORY"===t?"."===_.pD(this._model.uri.fsPath)?"":this._labelService.getUriLabel((0,v.pD)(this._model.uri)):"TM_FILEPATH"===t?this._labelService.getUriLabel(this._model.uri):"RELATIVE_FILEPATH"===t?this._labelService.getUriLabel(this._model.uri,{relative:!0,noPrefix:!0}):void 0}}class L{constructor(e,t,i,s){this._readClipboardText=e,this._selectionIdx=t,this._selectionCount=i,this._spread=s}resolve(e){if("CLIPBOARD"!==e.name)return;const t=this._readClipboardText();if(t){if(this._spread){const e=t.split(/\r\n|\n|\r/).filter((e=>!(0,r.AV)(e)));if(e.length===this._selectionCount)return e[this._selectionIdx]}return t}}}let T=class{constructor(e,t,i){this._model=e,this._selection=t,this._languageConfigurationService=i}resolve(e){const{name:t}=e,i=this._model.getLanguageIdAtPosition(this._selection.selectionStartLineNumber,this._selection.selectionStartColumn),s=this._languageConfigurationService.getLanguageConfiguration(i).comments;if(s)return"LINE_COMMENT"===t?s.lineCommentToken||void 0:"BLOCK_COMMENT_START"===t?s.blockCommentStartToken||void 0:"BLOCK_COMMENT_END"===t&&s.blockCommentEndToken||void 0}};T=b([S(2,l.JZ)],T);class x{constructor(){this._date=new Date}static{this.dayNames=[E.kg("Sunday","Sunday"),E.kg("Monday","Monday"),E.kg("Tuesday","Tuesday"),E.kg("Wednesday","Wednesday"),E.kg("Thursday","Thursday"),E.kg("Friday","Friday"),E.kg("Saturday","Saturday")]}static{this.dayNamesShort=[E.kg("SundayShort","Sun"),E.kg("MondayShort","Mon"),E.kg("TuesdayShort","Tue"),E.kg("WednesdayShort","Wed"),E.kg("ThursdayShort","Thu"),E.kg("FridayShort","Fri"),E.kg("SaturdayShort","Sat")]}static{this.monthNames=[E.kg("January","January"),E.kg("February","February"),E.kg("March","March"),E.kg("April","April"),E.kg("May","May"),E.kg("June","June"),E.kg("July","July"),E.kg("August","August"),E.kg("September","September"),E.kg("October","October"),E.kg("November","November"),E.kg("December","December")]}static{this.monthNamesShort=[E.kg("JanuaryShort","Jan"),E.kg("FebruaryShort","Feb"),E.kg("MarchShort","Mar"),E.kg("AprilShort","Apr"),E.kg("MayShort","May"),E.kg("JuneShort","Jun"),E.kg("JulyShort","Jul"),E.kg("AugustShort","Aug"),E.kg("SeptemberShort","Sep"),E.kg("OctoberShort","Oct"),E.kg("NovemberShort","Nov"),E.kg("DecemberShort","Dec")]}resolve(e){const{name:t}=e;if("CURRENT_YEAR"===t)return String(this._date.getFullYear());if("CURRENT_YEAR_SHORT"===t)return String(this._date.getFullYear()).slice(-2);if("CURRENT_MONTH"===t)return String(this._date.getMonth().valueOf()+1).padStart(2,"0");if("CURRENT_DATE"===t)return String(this._date.getDate().valueOf()).padStart(2,"0");if("CURRENT_HOUR"===t)return String(this._date.getHours().valueOf()).padStart(2,"0");if("CURRENT_MINUTE"===t)return String(this._date.getMinutes().valueOf()).padStart(2,"0");if("CURRENT_SECOND"===t)return String(this._date.getSeconds().valueOf()).padStart(2,"0");if("CURRENT_DAY_NAME"===t)return x.dayNames[this._date.getDay()];if("CURRENT_DAY_NAME_SHORT"===t)return x.dayNamesShort[this._date.getDay()];if("CURRENT_MONTH_NAME"===t)return x.monthNames[this._date.getMonth()];if("CURRENT_MONTH_NAME_SHORT"===t)return x.monthNamesShort[this._date.getMonth()];if("CURRENT_SECONDS_UNIX"===t)return String(Math.floor(this._date.getTime()/1e3));if("CURRENT_TIMEZONE_OFFSET"===t){const e=this._date.getTimezoneOffset(),t=e>0?"-":"+",i=Math.trunc(Math.abs(e/60)),s=i<10?"0"+i:i,n=Math.abs(e)-60*i;return t+s+":"+(n<10?"0"+n:n)}}}class k{constructor(e){this._workspaceService=e}resolve(e){if(!this._workspaceService)return;const t=(0,u.Q_)(this._workspaceService.getWorkspace());return(0,u.A7)(t)?void 0:"WORKSPACE_NAME"===e.name?this._resolveWorkspaceName(t):"WORKSPACE_FOLDER"===e.name?this._resoveWorkspacePath(t):void 0}_resolveWorkspaceName(e){if((0,u.jB)(e))return _.P8(e.uri.path);let t=_.P8(e.configPath.path);return t.endsWith(u.kF)&&(t=t.substr(0,t.length-u.kF.length-1)),t}_resoveWorkspacePath(e){if((0,u.jB)(e))return f(e.uri.fsPath);const t=_.P8(e.configPath.path);let i=e.configPath.fsPath;return i.endsWith(t)&&(i=i.substr(0,i.length-t.length-1)),i?f(i):"/"}}class A{resolve(e){const{name:t}=e;return"RANDOM"===t?Math.random().toString().slice(-6):"RANDOM_HEX"===t?Math.random().toString(16).slice(-6):"UUID"===t?(0,C.b)():void 0}}var N,I=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},O=function(e,t){return function(i,s){t(i,s,e)}};class D{static{this._decor={active:h.kI.register({description:"snippet-placeholder-1",stickiness:0,className:"snippet-placeholder"}),inactive:h.kI.register({description:"snippet-placeholder-2",stickiness:1,className:"snippet-placeholder"}),activeFinal:h.kI.register({description:"snippet-placeholder-3",stickiness:1,className:"finish-snippet-placeholder"}),inactiveFinal:h.kI.register({description:"snippet-placeholder-4",stickiness:1,className:"finish-snippet-placeholder"})}}constructor(e,t,i){this._editor=e,this._snippet=t,this._snippetLineLeadingWhitespace=i,this._offset=-1,this._nestingLevel=1,this._placeholderGroups=(0,s.$z)(t.placeholders,g.Or.compareByIndex),this._placeholderGroupsIdx=-1}initialize(e){this._offset=e.newPosition}dispose(){this._placeholderDecorations&&this._editor.removeDecorations([...this._placeholderDecorations.values()]),this._placeholderGroups.length=0}_initDecorations(){if(-1===this._offset)throw new Error("Snippet not initialized!");if(this._placeholderDecorations)return;this._placeholderDecorations=new Map;const e=this._editor.getModel();this._editor.changeDecorations((t=>{for(const i of this._snippet.placeholders){const s=this._snippet.offset(i),n=this._snippet.fullLen(i),r=a.Q.fromPositions(e.getPositionAt(this._offset+s),e.getPositionAt(this._offset+s+n)),o=i.isFinalTabstop?D._decor.inactiveFinal:D._decor.inactive,c=t.addDecoration(r,o);this._placeholderDecorations.set(i,c)}}))}move(e){if(!this._editor.hasModel())return[];if(this._initDecorations(),this._placeholderGroupsIdx>=0){const e=[];for(const t of this._placeholderGroups[this._placeholderGroupsIdx])if(t.transform){const i=this._placeholderDecorations.get(t),s=this._editor.getModel().getDecorationRange(i),n=this._editor.getModel().getValueInRange(s),r=t.transform.resolve(n).split(/\r\n|\r|\n/);for(let e=1;e<r.length;e++)r[e]=this._editor.getModel().normalizeIndentation(this._snippetLineLeadingWhitespace+r[e]);e.push(o.k.replace(s,r.join(this._editor.getModel().getEOL())))}e.length>0&&this._editor.executeEdits("snippet.placeholderTransform",e)}let t=!1;!0===e&&this._placeholderGroupsIdx<this._placeholderGroups.length-1?(this._placeholderGroupsIdx+=1,t=!0):!1===e&&this._placeholderGroupsIdx>0&&(this._placeholderGroupsIdx-=1,t=!0);const i=this._editor.getModel().changeDecorations((e=>{const i=new Set,s=[];for(const n of this._placeholderGroups[this._placeholderGroupsIdx]){const r=this._placeholderDecorations.get(n),o=this._editor.getModel().getDecorationRange(r);s.push(new c.L(o.startLineNumber,o.startColumn,o.endLineNumber,o.endColumn)),t=t&&this._hasPlaceholderBeenCollapsed(n),e.changeDecorationOptions(r,n.isFinalTabstop?D._decor.activeFinal:D._decor.active),i.add(n);for(const t of this._snippet.enclosingPlaceholders(n)){const s=this._placeholderDecorations.get(t);e.changeDecorationOptions(s,t.isFinalTabstop?D._decor.activeFinal:D._decor.active),i.add(t)}}for(const[t,n]of this._placeholderDecorations)i.has(t)||e.changeDecorationOptions(n,t.isFinalTabstop?D._decor.inactiveFinal:D._decor.inactive);return s}));return t?this.move(e):i??[]}_hasPlaceholderBeenCollapsed(e){let t=e;for(;t;){if(t instanceof g.Or){const e=this._placeholderDecorations.get(t);if(this._editor.getModel().getDecorationRange(e).isEmpty()&&t.toString().length>0)return!0}t=t.parent}return!1}get isAtFirstPlaceholder(){return this._placeholderGroupsIdx<=0||0===this._placeholderGroups.length}get isAtLastPlaceholder(){return this._placeholderGroupsIdx===this._placeholderGroups.length-1}get hasPlaceholder(){return this._snippet.placeholders.length>0}get isTrivialSnippet(){if(0===this._snippet.placeholders.length)return!0;if(1===this._snippet.placeholders.length){const[e]=this._snippet.placeholders;if(e.isFinalTabstop&&this._snippet.rightMostDescendant===e)return!0}return!1}computePossibleSelections(){const e=new Map;for(const t of this._placeholderGroups){let i;for(const s of t){if(s.isFinalTabstop)break;i||(i=[],e.set(s.index,i));const t=this._placeholderDecorations.get(s),n=this._editor.getModel().getDecorationRange(t);if(!n){e.delete(s.index);break}i.push(n)}}return e}get activeChoice(){if(!this._placeholderDecorations)return;const e=this._placeholderGroups[this._placeholderGroupsIdx][0];if(!e?.choice)return;const t=this._placeholderDecorations.get(e);if(!t)return;const i=this._editor.getModel().getDecorationRange(t);return i?{range:i,choice:e.choice}:void 0}get hasChoice(){let e=!1;return this._snippet.walk((t=>(e=t instanceof g.GR,!e))),e}merge(e){const t=this._editor.getModel();this._nestingLevel*=10,this._editor.changeDecorations((i=>{for(const s of this._placeholderGroups[this._placeholderGroupsIdx]){const n=e.shift();console.assert(-1!==n._offset),console.assert(!n._placeholderDecorations);const r=n._snippet.placeholderInfo.last.index;for(const e of n._snippet.placeholderInfo.all)e.isFinalTabstop?e.index=s.index+(r+1)/this._nestingLevel:e.index=s.index+e.index/this._nestingLevel;this._snippet.replace(s,n._snippet.children);const o=this._placeholderDecorations.get(s);i.removeDecoration(o),this._placeholderDecorations.delete(s);for(const e of n._snippet.placeholders){const s=n._snippet.offset(e),r=n._snippet.fullLen(e),o=a.Q.fromPositions(t.getPositionAt(n._offset+s),t.getPositionAt(n._offset+s+r)),c=i.addDecoration(o,D._decor.inactive);this._placeholderDecorations.set(e,c)}}this._placeholderGroups=(0,s.$z)(this._snippet.placeholders,g.Or.compareByIndex)}))}}const M={overwriteBefore:0,overwriteAfter:0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0};let P=N=class{static adjustWhitespace(e,t,i,s,n){const o=e.getLineContent(t.lineNumber),a=(0,r.UU)(o,0,t.column-1);let c;return s.walk((t=>{if(!(t instanceof g.EY)||t.parent instanceof g.GR)return!0;if(n&&!n.has(t))return!0;const r=t.value.split(/\r\n|\r|\n/);if(i){const i=s.offset(t);if(0===i)r[0]=e.normalizeIndentation(r[0]);else{c=c??s.toString();const t=c.charCodeAt(i-1);10!==t&&13!==t||(r[0]=e.normalizeIndentation(a+r[0]))}for(let t=1;t<r.length;t++)r[t]=e.normalizeIndentation(a+r[t])}const o=r.join(e.getEOL());return o!==t.value&&(t.parent.replace(t,[new g.EY(o)]),c=void 0),!0})),a}static adjustSelection(e,t,i,s){if(0!==i||0!==s){const{positionLineNumber:n,positionColumn:r}=t,o=r-i,a=r+s,l=e.validateRange({startLineNumber:n,startColumn:o,endLineNumber:n,endColumn:a});t=c.L.createWithDirection(l.startLineNumber,l.startColumn,l.endLineNumber,l.endColumn,t.getDirection())}return t}static createEditsAndSnippetsFromSelections(e,t,i,s,n,r,c,l,h){const p=[],m=[];if(!e.hasModel())return{edits:p,snippets:m};const f=e.getModel(),_=e.invokeWithinContext((e=>e.get(u.VR))),v=e.invokeWithinContext((e=>new R(e.get(d.L),f))),C=()=>c,E=f.getValueInRange(N.adjustSelection(f,e.getSelection(),i,0)),b=f.getValueInRange(N.adjustSelection(f,e.getSelection(),0,s)),S=f.getLineFirstNonWhitespaceColumn(e.getSelection().positionLineNumber),I=e.getSelections().map(((e,t)=>({selection:e,idx:t}))).sort(((e,t)=>a.Q.compareRangesUsingStarts(e.selection,t.selection)));for(const{selection:a,idx:d}of I){let c=N.adjustSelection(f,a,i,0),u=N.adjustSelection(f,a,0,s);E!==f.getValueInRange(c)&&(c=a),b!==f.getValueInRange(u)&&(u=a);const R=a.setStartPosition(c.startLineNumber,c.startColumn).setEndPosition(u.endLineNumber,u.endColumn),O=(new g.fr).parse(t,!0,n),M=R.getStartPosition(),P=N.adjustWhitespace(f,M,r||d>0&&S!==f.getLineFirstNonWhitespaceColumn(a.positionLineNumber),O);O.resolveVariables(new y([v,new L(C,d,I.length,"spread"===e.getOption(79)),new w(f,a,d,l),new T(f,a,h),new x,new k(_),new A])),p[d]=o.k.replace(R,O.toString()),p[d].identifier={major:d,minor:0},p[d]._isTracked=!0,m[d]=new D(e,O,P)}return{edits:p,snippets:m}}static createEditsAndSnippetsFromEdits(e,t,i,s,n,r,c){if(!e.hasModel()||0===t.length)return{edits:[],snippets:[]};const l=[],h=e.getModel(),p=new g.fr,m=new g.mQ,f=new y([e.invokeWithinContext((e=>new R(e.get(d.L),h))),new L((()=>n),0,e.getSelections().length,"spread"===e.getOption(79)),new w(h,e.getSelection(),0,r),new T(h,e.getSelection(),c),new x,new k(e.invokeWithinContext((e=>e.get(u.VR)))),new A]);t=t.sort(((e,t)=>a.Q.compareRangesUsingStarts(e.range,t.range)));let _=0;for(let d=0;d<t.length;d++){const{range:e,template:i}=t[d];if(d>0){const i=t[d-1].range,s=a.Q.fromPositions(i.getEndPosition(),e.getStartPosition()),n=new g.EY(h.getValueInRange(s));m.appendChild(n),_+=n.value.length}const s=p.parseFragment(i,m);N.adjustWhitespace(h,e.getStartPosition(),!0,m,new Set(s)),m.resolveVariables(f);const n=m.toString(),r=n.slice(_);_=n.length;const c=o.k.replace(e,r);c.identifier={major:d,minor:0},c._isTracked=!0,l.push(c)}return p.ensureFinalTabstop(m,i,!0),{edits:l,snippets:[new D(e,m,"")]}}constructor(e,t,i=M,s){this._editor=e,this._template=t,this._options=i,this._languageConfigurationService=s,this._templateMerges=[],this._snippets=[]}dispose(){(0,n.AS)(this._snippets)}_logInfo(){return`template="${this._template}", merged_templates="${this._templateMerges.join(" -> ")}"`}insert(){if(!this._editor.hasModel())return;const{edits:e,snippets:t}="string"===typeof this._template?N.createEditsAndSnippetsFromSelections(this._editor,this._template,this._options.overwriteBefore,this._options.overwriteAfter,!1,this._options.adjustWhitespace,this._options.clipboardText,this._options.overtypingCapturer,this._languageConfigurationService):N.createEditsAndSnippetsFromEdits(this._editor,this._template,!1,this._options.adjustWhitespace,this._options.clipboardText,this._options.overtypingCapturer,this._languageConfigurationService);this._snippets=t,this._editor.executeEdits("snippet",e,(e=>{const i=e.filter((e=>!!e.identifier));for(let s=0;s<t.length;s++)t[s].initialize(i[s].textChange);return this._snippets[0].hasPlaceholder?this._move(!0):i.map((e=>c.L.fromPositions(e.range.getEndPosition())))})),this._editor.revealRange(this._editor.getSelections()[0])}merge(e,t=M){if(!this._editor.hasModel())return;this._templateMerges.push([this._snippets[0]._nestingLevel,this._snippets[0]._placeholderGroupsIdx,e]);const{edits:i,snippets:s}=N.createEditsAndSnippetsFromSelections(this._editor,e,t.overwriteBefore,t.overwriteAfter,!0,t.adjustWhitespace,t.clipboardText,t.overtypingCapturer,this._languageConfigurationService);this._editor.executeEdits("snippet",i,(e=>{const t=e.filter((e=>!!e.identifier));for(let n=0;n<s.length;n++)s[n].initialize(t[n].textChange);const i=s[0].isTrivialSnippet;if(!i){for(const e of this._snippets)e.merge(s);console.assert(0===s.length)}return this._snippets[0].hasPlaceholder&&!i?this._move(void 0):t.map((e=>c.L.fromPositions(e.range.getEndPosition())))}))}next(){const e=this._move(!0);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())}prev(){const e=this._move(!1);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())}_move(e){const t=[];for(const i of this._snippets){const s=i.move(e);t.push(...s)}return t}get isAtFirstPlaceholder(){return this._snippets[0].isAtFirstPlaceholder}get isAtLastPlaceholder(){return this._snippets[0].isAtLastPlaceholder}get hasPlaceholder(){return this._snippets[0].hasPlaceholder}get hasChoice(){return this._snippets[0].hasChoice}get activeChoice(){return this._snippets[0].activeChoice}isSelectionWithinPlaceholders(){if(!this.hasPlaceholder)return!1;const e=this._editor.getSelections();if(e.length<this._snippets.length)return!1;const t=new Map;for(const i of this._snippets){const s=i.computePossibleSelections();if(0===t.size)for(const[i,n]of s){n.sort(a.Q.compareRangesUsingStarts);for(const s of e)if(n[0].containsRange(s)){t.set(i,[]);break}}if(0===t.size)return!1;t.forEach(((e,t)=>{e.push(...s.get(t))}))}e.sort(a.Q.compareRangesUsingStarts);for(const[i,s]of t)if(s.length===e.length){s.sort(a.Q.compareRangesUsingStarts);for(let n=0;n<s.length;n++)s[n].containsRange(e[n])||t.delete(i)}else t.delete(i);return t.size>0}};P=N=I([O(3,l.JZ)],P)},57197:(e,t,i)=>{"use strict";var s=i(31450),n=i(78209);const r=Object.freeze({View:(0,n.aS)("view","View"),Help:(0,n.aS)("help","Help"),Test:(0,n.aS)("test","Test"),File:(0,n.aS)("file","File"),Preferences:(0,n.aS)("preferences","Preferences"),Developer:(0,n.aS)({key:"developer",comment:["A developer on Code itself or someone diagnosing issues in Code"]},"Developer")});var o=i(27195),a=i(84001),c=i(32848),l=i(60002),h=i(5662),d=i(56942),u=i(8597),g=i(80789),p=i(25890),m=i(25689),f=i(92473),_=i(29163),v=i(83069),C=i(99020),E=i(25521),b=i(35600),S=i(46109);class y{constructor(e,t,i,s=null){this.startLineNumbers=e,this.endLineNumbers=t,this.lastLineRelativePosition=i,this.showEndForLine=s}equals(e){return!!e&&this.lastLineRelativePosition===e.lastLineRelativePosition&&this.showEndForLine===e.showEndForLine&&(0,p.aI)(this.startLineNumbers,e.startLineNumbers)&&(0,p.aI)(this.endLineNumbers,e.endLineNumbers)}static get Empty(){return new y([],[],0)}}const w=(0,g.H)("stickyScrollViewLayer",{createHTML:e=>e}),R="data-sticky-line-index",L="data-sticky-is-line",T="data-sticky-is-folding-icon";class x extends h.jG{constructor(e){super(),this._editor=e,this._foldingIconStore=new h.Cm,this._rootDomNode=document.createElement("div"),this._lineNumbersDomNode=document.createElement("div"),this._linesDomNodeScrollable=document.createElement("div"),this._linesDomNode=document.createElement("div"),this._lineHeight=this._editor.getOption(67),this._renderedStickyLines=[],this._lineNumbers=[],this._lastLineRelativePosition=0,this._minContentWidthInPx=0,this._isOnGlyphMargin=!1,this._lineNumbersDomNode.className="sticky-widget-line-numbers",this._lineNumbersDomNode.setAttribute("role","none"),this._linesDomNode.className="sticky-widget-lines",this._linesDomNode.setAttribute("role","list"),this._linesDomNodeScrollable.className="sticky-widget-lines-scrollable",this._linesDomNodeScrollable.appendChild(this._linesDomNode),this._rootDomNode.className="sticky-widget",this._rootDomNode.classList.toggle("peek",e instanceof _.t),this._rootDomNode.appendChild(this._lineNumbersDomNode),this._rootDomNode.appendChild(this._linesDomNodeScrollable);const t=()=>{this._linesDomNode.style.left=this._editor.getOption(116).scrollWithEditor?`-${this._editor.getScrollLeft()}px`:"0px"};this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(116)&&t(),e.hasChanged(67)&&(this._lineHeight=this._editor.getOption(67))}))),this._register(this._editor.onDidScrollChange((e=>{e.scrollLeftChanged&&t(),e.scrollWidthChanged&&this._updateWidgetWidth()}))),this._register(this._editor.onDidChangeModel((()=>{t(),this._updateWidgetWidth()}))),this._register(this._foldingIconStore),t(),this._register(this._editor.onDidLayoutChange((e=>{this._updateWidgetWidth()}))),this._updateWidgetWidth()}get lineNumbers(){return this._lineNumbers}get lineNumberCount(){return this._lineNumbers.length}getRenderedStickyLine(e){return this._renderedStickyLines.find((t=>t.lineNumber===e))}getCurrentLines(){return this._lineNumbers}setState(e,t,i){if(void 0===i&&(!this._previousState&&!e||this._previousState&&this._previousState.equals(e)))return;const s=this._isWidgetHeightZero(e),n=s?void 0:e,r=s?0:this._findLineToRebuildWidgetFrom(e,i);this._renderRootNode(n,t,r),this._previousState=e}_isWidgetHeightZero(e){if(!e)return!0;const t=e.startLineNumbers.length*this._lineHeight+e.lastLineRelativePosition;if(t>0){this._lastLineRelativePosition=e.lastLineRelativePosition;const t=[...e.startLineNumbers];null!==e.showEndForLine&&(t[e.showEndForLine]=e.endLineNumbers[e.showEndForLine]),this._lineNumbers=t}else this._lastLineRelativePosition=0,this._lineNumbers=[];return 0===t}_findLineToRebuildWidgetFrom(e,t){if(!e||!this._previousState)return 0;if(void 0!==t)return t;const i=this._previousState,s=e.startLineNumbers.findIndex((e=>!i.startLineNumbers.includes(e)));return-1===s?0:s}_updateWidgetWidth(){const e=this._editor.getLayoutInfo(),t=e.contentLeft;this._lineNumbersDomNode.style.width=`${t}px`,this._linesDomNodeScrollable.style.setProperty("--vscode-editorStickyScroll-scrollableWidth",this._editor.getScrollWidth()-e.verticalScrollbarWidth+"px"),this._rootDomNode.style.width=e.width-e.verticalScrollbarWidth+"px"}_clearStickyLinesFromLine(e){this._foldingIconStore.clear();for(let t=e;t<this._renderedStickyLines.length;t++){const e=this._renderedStickyLines[t];e.lineNumberDomNode.remove(),e.lineDomNode.remove()}this._renderedStickyLines=this._renderedStickyLines.slice(0,e),this._rootDomNode.style.display="none"}_useFoldingOpacityTransition(e){this._lineNumbersDomNode.style.setProperty("--vscode-editorStickyScroll-foldingOpacityTransition",`opacity ${e?.5:0}s`)}_setFoldingIconsVisibility(e){for(const t of this._renderedStickyLines){const i=t.foldingIcon;i&&i.setVisible(!!e||i.isCollapsed)}}async _renderRootNode(e,t,i){if(this._clearStickyLinesFromLine(i),!e)return;for(const o of this._renderedStickyLines)this._updateTopAndZIndexOfStickyLine(o);const s=this._editor.getLayoutInfo(),n=this._lineNumbers.slice(i);for(const[o,a]of n.entries()){const e=this._renderChildNode(o+i,a,t,s);e&&(this._linesDomNode.appendChild(e.lineDomNode),this._lineNumbersDomNode.appendChild(e.lineNumberDomNode),this._renderedStickyLines.push(e))}t&&(this._setFoldingHoverListeners(),this._useFoldingOpacityTransition(!this._isOnGlyphMargin));const r=this._lineNumbers.length*this._lineHeight+this._lastLineRelativePosition;this._rootDomNode.style.display="block",this._lineNumbersDomNode.style.height=`${r}px`,this._linesDomNodeScrollable.style.height=`${r}px`,this._rootDomNode.style.height=`${r}px`,this._rootDomNode.style.marginLeft="0px",this._minContentWidthInPx=Math.max(...this._renderedStickyLines.map((e=>e.scrollWidth)))+s.verticalScrollbarWidth,this._editor.layoutOverlayWidget(this)}_setFoldingHoverListeners(){"mouseover"===this._editor.getOption(111)&&(this._foldingIconStore.add(u.ko(this._lineNumbersDomNode,u.Bx.MOUSE_ENTER,(()=>{this._isOnGlyphMargin=!0,this._setFoldingIconsVisibility(!0)}))),this._foldingIconStore.add(u.ko(this._lineNumbersDomNode,u.Bx.MOUSE_LEAVE,(()=>{this._isOnGlyphMargin=!1,this._useFoldingOpacityTransition(!0),this._setFoldingIconsVisibility(!1)}))))}_renderChildNode(e,t,i,s){const n=this._editor._getViewModel();if(!n)return;const r=n.coordinatesConverter.convertModelPositionToViewPosition(new v.y(t,1)).lineNumber,o=n.getViewLineRenderingData(r),a=this._editor.getOption(68);let c;try{c=E.d.filter(o.inlineDecorations,r,o.minColumn,o.maxColumn)}catch(y){c=[]}const l=new b.zL(!0,!0,o.content,o.continuesWithWrappedLine,o.isBasicASCII,o.containsRTL,0,o.tokens,c,o.tabSize,o.startVisibleColumn,1,1,1,500,"none",!0,!0,null),h=new C.fe(2e3),d=(0,b.UW)(l,h);let u;u=w?w.createHTML(h.build()):h.build();const g=document.createElement("span");g.setAttribute(R,String(e)),g.setAttribute(L,""),g.setAttribute("role","listitem"),g.tabIndex=0,g.className="sticky-line-content",g.classList.add(`stickyLine${t}`),g.style.lineHeight=`${this._lineHeight}px`,g.innerHTML=u;const p=document.createElement("span");p.setAttribute(R,String(e)),p.setAttribute("data-sticky-is-line-number",""),p.className="sticky-line-number",p.style.lineHeight=`${this._lineHeight}px`;const m=s.contentLeft;p.style.width=`${m}px`;const f=document.createElement("span");1===a.renderType||3===a.renderType&&t%10===0?f.innerText=t.toString():2===a.renderType&&(f.innerText=Math.abs(t-this._editor.getPosition().lineNumber).toString()),f.className="sticky-line-number-inner",f.style.lineHeight=`${this._lineHeight}px`,f.style.width=`${s.lineNumbersWidth}px`,f.style.paddingLeft=`${s.lineNumbersLeft}px`,p.appendChild(f);const _=this._renderFoldingIconForLine(i,t);_&&p.appendChild(_.domNode),this._editor.applyFontInfo(g),this._editor.applyFontInfo(f),p.style.lineHeight=`${this._lineHeight}px`,g.style.lineHeight=`${this._lineHeight}px`,p.style.height=`${this._lineHeight}px`,g.style.height=`${this._lineHeight}px`;const S=new k(e,t,g,p,_,d.characterMapping,g.scrollWidth);return this._updateTopAndZIndexOfStickyLine(S)}_updateTopAndZIndexOfStickyLine(e){const t=e.index,i=e.lineDomNode,s=e.lineNumberDomNode,n=t===this._lineNumbers.length-1;i.style.zIndex=n?"0":"1",s.style.zIndex=n?"0":"1";const r=`${t*this._lineHeight+this._lastLineRelativePosition+(e.foldingIcon?.isCollapsed?1:0)}px`,o=t*this._lineHeight+"px";return i.style.top=n?r:o,s.style.top=n?r:o,e}_renderFoldingIconForLine(e,t){const i=this._editor.getOption(111);if(!e||"never"===i)return;const s=e.regions,n=s.findRange(t),r=s.getStartLineNumber(n);if(!(t===r))return;const o=s.isCollapsed(n),a=new A(o,r,s.getEndLineNumber(n),this._lineHeight);return a.setVisible(!!this._isOnGlyphMargin||(o||"always"===i)),a.domNode.setAttribute(T,""),a}getId(){return"editor.contrib.stickyScrollWidget"}getDomNode(){return this._rootDomNode}getPosition(){return{preference:2,stackOridinal:10}}getMinContentWidthInPx(){return this._minContentWidthInPx}focusLineWithIndex(e){0<=e&&e<this._renderedStickyLines.length&&this._renderedStickyLines[e].lineDomNode.focus()}getEditorPositionFromNode(e){if(!e||e.children.length>0)return null;const t=this._getRenderedStickyLineFromChildDomNode(e);if(!t)return null;const i=(0,f.rk)(t.characterMapping,e,0);return new v.y(t.lineNumber,i)}getLineNumberFromChildDomNode(e){return this._getRenderedStickyLineFromChildDomNode(e)?.lineNumber??null}_getRenderedStickyLineFromChildDomNode(e){const t=this.getLineIndexFromChildDomNode(e);return null===t||t<0||t>=this._renderedStickyLines.length?null:this._renderedStickyLines[t]}getLineIndexFromChildDomNode(e){const t=this._getAttributeValue(e,R);return t?parseInt(t,10):null}isInStickyLine(e){return void 0!==this._getAttributeValue(e,L)}isInFoldingIconDomNode(e){return void 0!==this._getAttributeValue(e,T)}_getAttributeValue(e,t){for(;e&&e!==this._rootDomNode;){const i=e.getAttribute(t);if(null!==i)return i;e=e.parentElement}}}class k{constructor(e,t,i,s,n,r,o){this.index=e,this.lineNumber=t,this.lineDomNode=i,this.lineNumberDomNode=s,this.foldingIcon=n,this.characterMapping=r,this.scrollWidth=o}}class A{constructor(e,t,i,s){this.isCollapsed=e,this.foldingStartLine=t,this.foldingEndLine=i,this.dimension=s,this.domNode=document.createElement("div"),this.domNode.style.width=`${s}px`,this.domNode.style.height=`${s}px`,this.domNode.className=m.L.asClassName(e?S.k0:S.E0)}setVisible(e){this.domNode.style.cursor=e?"pointer":"default",this.domNode.style.opacity=e?"1":"0"}}var N=i(18447),I=i(90766),O=i(41234),D=i(17469),M=i(29999),P=i(44588),F=i(87784),U=i(76495),H=i(64383);class B{constructor(e,t){this.startLineNumber=e,this.endLineNumber=t}}class W{constructor(e,t,i){this.range=e,this.children=t,this.parent=i}}class V{constructor(e,t,i,s){this.uri=e,this.version=t,this.element=i,this.outlineProviderId=s}}var z,G,j=i(42522),K=i(63591),Y=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},q=function(e,t){return function(i,s){t(i,s,e)}};!function(e){e.OUTLINE_MODEL="outlineModel",e.FOLDING_PROVIDER_MODEL="foldingProviderModel",e.INDENTATION_MODEL="indentationModel"}(z||(z={})),function(e){e[e.VALID=0]="VALID",e[e.INVALID=1]="INVALID",e[e.CANCELED=2]="CANCELED"}(G||(G={}));let $=class extends h.jG{constructor(e,t,i,s){switch(super(),this._editor=e,this._modelProviders=[],this._modelPromise=null,this._updateScheduler=this._register(new I.ve(300)),this._updateOperation=this._register(new h.Cm),this._editor.getOption(116).defaultModel){case z.OUTLINE_MODEL:this._modelProviders.push(new X(this._editor,s));case z.FOLDING_PROVIDER_MODEL:this._modelProviders.push(new ee(this._editor,t,s));case z.INDENTATION_MODEL:this._modelProviders.push(new J(this._editor,i))}}dispose(){this._modelProviders.forEach((e=>e.dispose())),this._updateOperation.clear(),this._cancelModelPromise(),super.dispose()}_cancelModelPromise(){this._modelPromise&&(this._modelPromise.cancel(),this._modelPromise=null)}async update(e){return this._updateOperation.clear(),this._updateOperation.add({dispose:()=>{this._cancelModelPromise(),this._updateScheduler.cancel()}}),this._cancelModelPromise(),await this._updateScheduler.trigger((async()=>{for(const t of this._modelProviders){const{statusPromise:i,modelPromise:s}=t.computeStickyModel(e);this._modelPromise=s;const n=await i;if(this._modelPromise!==s)return null;switch(n){case G.CANCELED:return this._updateOperation.clear(),null;case G.VALID:return t.stickyModel}}return null})).catch((e=>((0,H.dz)(e),null)))}};$=Y([q(2,K._Y),q(3,d.ILanguageFeaturesService)],$);class Q extends h.jG{constructor(e){super(),this._editor=e,this._stickyModel=null}get stickyModel(){return this._stickyModel}_invalid(){return this._stickyModel=null,G.INVALID}computeStickyModel(e){if(e.isCancellationRequested||!this.isProviderValid())return{statusPromise:this._invalid(),modelPromise:null};const t=(0,I.SS)((e=>this.createModelFromProvider(e)));return{statusPromise:t.then((t=>this.isModelValid(t)?e.isCancellationRequested?G.CANCELED:(this._stickyModel=this.createStickyModel(e,t),G.VALID):this._invalid())).then(void 0,(e=>((0,H.dz)(e),G.CANCELED))),modelPromise:t}}isModelValid(e){return!0}isProviderValid(){return!0}}let X=class extends Q{constructor(e,t){super(e),this._languageFeaturesService=t}createModelFromProvider(e){return M.i9.create(this._languageFeaturesService.documentSymbolProvider,this._editor.getModel(),e)}createStickyModel(e,t){const{stickyOutlineElement:i,providerID:s}=this._stickyModelFromOutlineModel(t,this._stickyModel?.outlineProviderId),n=this._editor.getModel();return new V(n.uri,n.getVersionId(),i,s)}isModelValid(e){return e&&e.children.size>0}_stickyModelFromOutlineModel(e,t){let i;if(j.f.first(e.children.values())instanceof M.e0){const s=j.f.find(e.children.values(),(e=>e.id===t));if(s)i=s.children;else{let s,n="",r=-1;for(const[t,i]of e.children.entries()){const e=this._findSumOfRangesOfGroup(i);e>r&&(s=i,r=e,n=i.id)}t=n,i=s.children}}else i=e.children;const s=[],n=Array.from(i.values()).sort(((e,t)=>{const i=new B(e.symbol.range.startLineNumber,e.symbol.range.endLineNumber),s=new B(t.symbol.range.startLineNumber,t.symbol.range.endLineNumber);return this._comparator(i,s)}));for(const r of n)s.push(this._stickyModelFromOutlineElement(r,r.symbol.selectionRange.startLineNumber));return{stickyOutlineElement:new W(void 0,s,void 0),providerID:t}}_stickyModelFromOutlineElement(e,t){const i=[];for(const n of e.children.values())if(n.symbol.selectionRange.startLineNumber!==n.symbol.range.endLineNumber)if(n.symbol.selectionRange.startLineNumber!==t)i.push(this._stickyModelFromOutlineElement(n,n.symbol.selectionRange.startLineNumber));else for(const e of n.children.values())i.push(this._stickyModelFromOutlineElement(e,n.symbol.selectionRange.startLineNumber));i.sort(((e,t)=>this._comparator(e.range,t.range)));const s=new B(e.symbol.selectionRange.startLineNumber,e.symbol.range.endLineNumber);return new W(s,i,void 0)}_comparator(e,t){return e.startLineNumber!==t.startLineNumber?e.startLineNumber-t.startLineNumber:t.endLineNumber-e.endLineNumber}_findSumOfRangesOfGroup(e){let t=0;for(const i of e.children.values())t+=this._findSumOfRangesOfGroup(i);return e instanceof M.LC?t+e.symbol.range.endLineNumber-e.symbol.selectionRange.startLineNumber:t}};X=Y([q(1,d.ILanguageFeaturesService)],X);class Z extends Q{constructor(e){super(e),this._foldingLimitReporter=new P.BP(e)}createStickyModel(e,t){const i=this._fromFoldingRegions(t),s=this._editor.getModel();return new V(s.uri,s.getVersionId(),i,void 0)}isModelValid(e){return null!==e}_fromFoldingRegions(e){const t=e.length,i=[],s=new W(void 0,[],void 0);for(let n=0;n<t;n++){const t=e.getParentIndex(n);let r;r=-1!==t?i[t]:s;const o=new W(new B(e.getStartLineNumber(n),e.getEndLineNumber(n)+1),[],r);r.children.push(o),i.push(o)}return s}}let J=class extends Z{constructor(e,t){super(e),this._languageConfigurationService=t,this.provider=this._register(new U.hW(e.getModel(),this._languageConfigurationService,this._foldingLimitReporter))}async createModelFromProvider(e){return this.provider.compute(e)}};J=Y([q(1,D.JZ)],J);let ee=class extends Z{constructor(e,t,i){super(e),this._languageFeaturesService=i;const s=P.WR.getFoldingRangeProviders(this._languageFeaturesService,e.getModel());s.length>0&&(this.provider=this._register(new F.M(e.getModel(),s,t,this._foldingLimitReporter,void 0)))}isProviderValid(){return void 0!==this.provider}async createModelFromProvider(e){return this.provider?.compute(e)??null}};ee=Y([q(2,d.ILanguageFeaturesService)],ee);var te=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},ie=function(e,t){return function(i,s){t(i,s,e)}};class se{constructor(e,t,i){this.startLineNumber=e,this.endLineNumber=t,this.nestingDepth=i}}let ne=class extends h.jG{constructor(e,t,i){super(),this._languageFeaturesService=t,this._languageConfigurationService=i,this._onDidChangeStickyScroll=this._register(new O.vl),this.onDidChangeStickyScroll=this._onDidChangeStickyScroll.event,this._model=null,this._cts=null,this._stickyModelProvider=null,this._editor=e,this._sessionStore=this._register(new h.Cm),this._updateSoon=this._register(new I.uC((()=>this.update()),50)),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(116)&&this.readConfiguration()}))),this.readConfiguration()}readConfiguration(){this._sessionStore.clear();this._editor.getOption(116).enabled&&(this._sessionStore.add(this._editor.onDidChangeModel((()=>{this._model=null,this.updateStickyModelProvider(),this._onDidChangeStickyScroll.fire(),this.update()}))),this._sessionStore.add(this._editor.onDidChangeHiddenAreas((()=>this.update()))),this._sessionStore.add(this._editor.onDidChangeModelContent((()=>this._updateSoon.schedule()))),this._sessionStore.add(this._languageFeaturesService.documentSymbolProvider.onDidChange((()=>this.update()))),this._sessionStore.add((0,h.s)((()=>{this._stickyModelProvider?.dispose(),this._stickyModelProvider=null}))),this.updateStickyModelProvider(),this.update())}getVersionId(){return this._model?.version}updateStickyModelProvider(){this._stickyModelProvider?.dispose(),this._stickyModelProvider=null;const e=this._editor;e.hasModel()&&(this._stickyModelProvider=new $(e,(()=>this._updateSoon.schedule()),this._languageConfigurationService,this._languageFeaturesService))}async update(){this._cts?.dispose(!0),this._cts=new N.Qi,await this.updateStickyModel(this._cts.token),this._onDidChangeStickyScroll.fire()}async updateStickyModel(e){if(!this._editor.hasModel()||!this._stickyModelProvider||this._editor.getModel().isTooLargeForTokenization())return void(this._model=null);const t=await this._stickyModelProvider.update(e);e.isCancellationRequested||(this._model=t)}updateIndex(e){return-1===e?e=0:e<0&&(e=-e-2),e}getCandidateStickyLinesIntersectingFromStickyModel(e,t,i,s,n){if(0===t.children.length)return;let r=n;const o=[];for(let l=0;l<t.children.length;l++){const e=t.children[l];e.range&&o.push(e.range.startLineNumber)}const a=this.updateIndex((0,p.El)(o,e.startLineNumber,((e,t)=>e-t))),c=this.updateIndex((0,p.El)(o,e.startLineNumber+s,((e,t)=>e-t)));for(let l=a;l<=c;l++){const o=t.children[l];if(!o)return;if(o.range){const t=o.range.startLineNumber,n=o.range.endLineNumber;e.startLineNumber<=n+1&&t-1<=e.endLineNumber&&t!==r&&(r=t,i.push(new se(t,n-1,s+1)),this.getCandidateStickyLinesIntersectingFromStickyModel(e,o,i,s+1,t))}else this.getCandidateStickyLinesIntersectingFromStickyModel(e,o,i,s,n)}}getCandidateStickyLinesIntersecting(e){if(!this._model?.element)return[];let t=[];this.getCandidateStickyLinesIntersectingFromStickyModel(e,this._model.element,t,0,-1);const i=this._editor._getViewModel()?.getHiddenAreas();if(i)for(const s of i)t=t.filter((e=>!(e.startLineNumber>=s.startLineNumber&&e.endLineNumber<=s.endLineNumber+1)));return t}};ne=te([ie(1,d.ILanguageFeaturesService),ie(2,D.JZ)],ne);var re,oe=i(47508),ae=i(37927),ce=i(36677),le=i(80538),he=i(60952),de=i(32500),ue=i(47358),ge=i(52903),pe=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},me=function(e,t){return function(i,s){t(i,s,e)}};let fe=class extends h.jG{static{re=this}static{this.ID="store.contrib.stickyScrollController"}constructor(e,t,i,s,n,r,o){super(),this._editor=e,this._contextMenuService=t,this._languageFeaturesService=i,this._instaService=s,this._contextKeyService=o,this._sessionStore=new h.Cm,this._maxStickyLines=Number.MAX_SAFE_INTEGER,this._candidateDefinitionsLength=-1,this._focusedStickyElementIndex=-1,this._enabled=!1,this._focused=!1,this._positionRevealed=!1,this._onMouseDown=!1,this._endLineNumbers=[],this._stickyScrollWidget=new x(this._editor),this._stickyLineCandidateProvider=new ne(this._editor,i,n),this._register(this._stickyScrollWidget),this._register(this._stickyLineCandidateProvider),this._widgetState=y.Empty,this._onDidResize(),this._readConfiguration();const a=this._stickyScrollWidget.getDomNode();this._register(this._editor.onDidChangeConfiguration((e=>{this._readConfigurationChange(e)}))),this._register(u.ko(a,u.Bx.CONTEXT_MENU,(async e=>{this._onContextMenu(u.zk(a),e)}))),this._stickyScrollFocusedContextKey=l.R.stickyScrollFocused.bindTo(this._contextKeyService),this._stickyScrollVisibleContextKey=l.R.stickyScrollVisible.bindTo(this._contextKeyService);const c=this._register(u.w5(a));this._register(c.onDidBlur((e=>{!1===this._positionRevealed&&0===a.clientHeight?(this._focusedStickyElementIndex=-1,this.focus()):this._disposeFocusStickyScrollStore()}))),this._register(c.onDidFocus((e=>{this.focus()}))),this._registerMouseListeners(),this._register(u.ko(a,u.Bx.MOUSE_DOWN,(e=>{this._onMouseDown=!0})))}static get(e){return e.getContribution(re.ID)}_disposeFocusStickyScrollStore(){this._stickyScrollFocusedContextKey.set(!1),this._focusDisposableStore?.dispose(),this._focused=!1,this._positionRevealed=!1,this._onMouseDown=!1}focus(){if(this._onMouseDown)return this._onMouseDown=!1,void this._editor.focus();!0!==this._stickyScrollFocusedContextKey.get()&&(this._focused=!0,this._focusDisposableStore=new h.Cm,this._stickyScrollFocusedContextKey.set(!0),this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumbers.length-1,this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex))}focusNext(){this._focusedStickyElementIndex<this._stickyScrollWidget.lineNumberCount-1&&this._focusNav(!0)}focusPrevious(){this._focusedStickyElementIndex>0&&this._focusNav(!1)}selectEditor(){this._editor.focus()}_focusNav(e){this._focusedStickyElementIndex=e?this._focusedStickyElementIndex+1:this._focusedStickyElementIndex-1,this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex)}goToFocused(){const e=this._stickyScrollWidget.lineNumbers;this._disposeFocusStickyScrollStore(),this._revealPosition({lineNumber:e[this._focusedStickyElementIndex],column:1})}_revealPosition(e){this._reveaInEditor(e,(()=>this._editor.revealPosition(e)))}_revealLineInCenterIfOutsideViewport(e){this._reveaInEditor(e,(()=>this._editor.revealLineInCenterIfOutsideViewport(e.lineNumber,0)))}_reveaInEditor(e,t){this._focused&&this._disposeFocusStickyScrollStore(),this._positionRevealed=!0,t(),this._editor.setSelection(ce.Q.fromPositions(e)),this._editor.focus()}_registerMouseListeners(){const e=this._register(new h.Cm),t=this._register(new ae.gi(this._editor,{extractLineNumberFromMouseEvent:e=>{const t=this._stickyScrollWidget.getEditorPositionFromNode(e.target.element);return t?t.lineNumber:0}})),i=e=>{if(!this._editor.hasModel())return null;if(12!==e.target.type||e.target.detail!==this._stickyScrollWidget.getId())return null;const t=e.target.element;if(!t||t.innerText!==t.innerHTML)return null;const i=this._stickyScrollWidget.getEditorPositionFromNode(t);return i?{range:new ce.Q(i.lineNumber,i.column,i.lineNumber,i.column+t.innerText.length),textElement:t}:null},s=this._stickyScrollWidget.getDomNode();this._register(u.b2(s,u.Bx.CLICK,(e=>{if(e.ctrlKey||e.altKey||e.metaKey)return;if(!e.leftButton)return;if(e.shiftKey){const t=this._stickyScrollWidget.getLineIndexFromChildDomNode(e.target);if(null===t)return;const i=new v.y(this._endLineNumbers[t],1);return void this._revealLineInCenterIfOutsideViewport(i)}if(this._stickyScrollWidget.isInFoldingIconDomNode(e.target)){const t=this._stickyScrollWidget.getLineNumberFromChildDomNode(e.target);return void this._toggleFoldingRegionForLine(t)}if(!this._stickyScrollWidget.isInStickyLine(e.target))return;let t=this._stickyScrollWidget.getEditorPositionFromNode(e.target);if(!t){const i=this._stickyScrollWidget.getLineNumberFromChildDomNode(e.target);if(null===i)return;t=new v.y(i,1)}this._revealPosition(t)}))),this._register(u.b2(s,u.Bx.MOUSE_MOVE,(e=>{if(e.shiftKey){const t=this._stickyScrollWidget.getLineIndexFromChildDomNode(e.target);if(null===t||null!==this._showEndForLine&&this._showEndForLine===t)return;return this._showEndForLine=t,void this._renderStickyScroll()}void 0!==this._showEndForLine&&(this._showEndForLine=void 0,this._renderStickyScroll())}))),this._register(u.ko(s,u.Bx.MOUSE_LEAVE,(e=>{void 0!==this._showEndForLine&&(this._showEndForLine=void 0,this._renderStickyScroll())}))),this._register(t.onMouseMoveOrRelevantKeyDown((([t,s])=>{const n=i(t);if(!n||!t.hasTriggerModifier||!this._editor.hasModel())return void e.clear();const{range:r,textElement:o}=n;if(r.equalsRange(this._stickyRangeProjectedOnEditor)){if("underline"===o.style.textDecoration)return}else this._stickyRangeProjectedOnEditor=r,e.clear();const a=new N.Qi;let c;e.add((0,h.s)((()=>a.dispose(!0)))),(0,le.hE)(this._languageFeaturesService.definitionProvider,this._editor.getModel(),new v.y(r.startLineNumber,r.startColumn+1),!1,a.token).then((t=>{if(!a.token.isCancellationRequested)if(0!==t.length){this._candidateDefinitionsLength=t.length;const i=o;c!==i?(e.clear(),c=i,c.style.textDecoration="underline",e.add((0,h.s)((()=>{c.style.textDecoration="none"})))):c||(c=i,c.style.textDecoration="underline",e.add((0,h.s)((()=>{c.style.textDecoration="none"}))))}else e.clear()}))}))),this._register(t.onCancel((()=>{e.clear()}))),this._register(t.onExecute((async e=>{if(12!==e.target.type||e.target.detail!==this._stickyScrollWidget.getId())return;const t=this._stickyScrollWidget.getEditorPositionFromNode(e.target.element);t&&this._editor.hasModel()&&this._stickyRangeProjectedOnEditor&&(this._candidateDefinitionsLength>1&&(this._focused&&this._disposeFocusStickyScrollStore(),this._revealPosition({lineNumber:t.lineNumber,column:1})),this._instaService.invokeFunction(he.U,e,this._editor,{uri:this._editor.getModel().uri,range:this._stickyRangeProjectedOnEditor}))})))}_onContextMenu(e,t){const i=new ue.P(e,t);this._contextMenuService.showContextMenu({menuId:o.D8.StickyScrollContext,getAnchor:()=>i})}_toggleFoldingRegionForLine(e){if(!this._foldingModel||null===e)return;const t=this._stickyScrollWidget.getRenderedStickyLine(e),i=t?.foldingIcon;if(!i)return;(0,ge.bC)(this._foldingModel,Number.MAX_VALUE,[e]),i.isCollapsed=!i.isCollapsed;const s=(i.isCollapsed?this._editor.getTopForLineNumber(i.foldingEndLine):this._editor.getTopForLineNumber(i.foldingStartLine))-this._editor.getOption(67)*t.index+1;this._editor.setScrollTop(s),this._renderStickyScroll(e)}_readConfiguration(){const e=this._editor.getOption(116);if(!1===e.enabled)return this._editor.removeOverlayWidget(this._stickyScrollWidget),this._sessionStore.clear(),void(this._enabled=!1);e.enabled&&!this._enabled&&(this._editor.addOverlayWidget(this._stickyScrollWidget),this._sessionStore.add(this._editor.onDidScrollChange((e=>{e.scrollTopChanged&&(this._showEndForLine=void 0,this._renderStickyScroll())}))),this._sessionStore.add(this._editor.onDidLayoutChange((()=>this._onDidResize()))),this._sessionStore.add(this._editor.onDidChangeModelTokens((e=>this._onTokensChange(e)))),this._sessionStore.add(this._stickyLineCandidateProvider.onDidChangeStickyScroll((()=>{this._showEndForLine=void 0,this._renderStickyScroll()}))),this._enabled=!0);2===this._editor.getOption(68).renderType&&this._sessionStore.add(this._editor.onDidChangeCursorPosition((()=>{this._showEndForLine=void 0,this._renderStickyScroll(0)})))}_readConfigurationChange(e){(e.hasChanged(116)||e.hasChanged(73)||e.hasChanged(67)||e.hasChanged(111)||e.hasChanged(68))&&this._readConfiguration(),e.hasChanged(68)&&this._renderStickyScroll(0)}_needsUpdate(e){const t=this._stickyScrollWidget.getCurrentLines();for(const i of t)for(const t of e.ranges)if(i>=t.fromLineNumber&&i<=t.toLineNumber)return!0;return!1}_onTokensChange(e){this._needsUpdate(e)&&this._renderStickyScroll(0)}_onDidResize(){const e=this._editor.getLayoutInfo().height/this._editor.getOption(67);this._maxStickyLines=Math.round(.25*e)}async _renderStickyScroll(e){const t=this._editor.getModel();if(!t||t.isTooLargeForTokenization())return void this._resetState();const i=this._updateAndGetMinRebuildFromLine(e),s=this._stickyLineCandidateProvider.getVersionId();if(void 0===s||s===t.getVersionId())if(this._focused)if(-1===this._focusedStickyElementIndex)await this._updateState(i),this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumberCount-1,-1!==this._focusedStickyElementIndex&&this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex);else{const e=this._stickyScrollWidget.lineNumbers[this._focusedStickyElementIndex];if(await this._updateState(i),0===this._stickyScrollWidget.lineNumberCount)this._focusedStickyElementIndex=-1;else{this._stickyScrollWidget.lineNumbers.includes(e)||(this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumberCount-1),this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex)}}else await this._updateState(i)}_updateAndGetMinRebuildFromLine(e){if(void 0!==e){const t=void 0!==this._minRebuildFromLine?this._minRebuildFromLine:1/0;this._minRebuildFromLine=Math.min(e,t)}return this._minRebuildFromLine}async _updateState(e){this._minRebuildFromLine=void 0,this._foldingModel=await(P.WR.get(this._editor)?.getFoldingModel())??void 0,this._widgetState=this.findScrollWidgetState();const t=this._widgetState.startLineNumbers.length>0;this._stickyScrollVisibleContextKey.set(t),this._stickyScrollWidget.setState(this._widgetState,this._foldingModel,e)}async _resetState(){this._minRebuildFromLine=void 0,this._foldingModel=void 0,this._widgetState=y.Empty,this._stickyScrollVisibleContextKey.set(!1),this._stickyScrollWidget.setState(void 0,void 0)}findScrollWidgetState(){const e=this._editor.getOption(67),t=Math.min(this._maxStickyLines,this._editor.getOption(116).maxLineCount),i=this._editor.getScrollTop();let s=0;const n=[],r=[],o=this._editor.getVisibleRanges();if(0!==o.length){const a=new B(o[0].startLineNumber,o[o.length-1].endLineNumber),c=this._stickyLineCandidateProvider.getCandidateStickyLinesIntersecting(a);for(const o of c){const a=o.startLineNumber,c=o.endLineNumber,l=o.nestingDepth;if(c-a>0){const o=(l-1)*e,h=l*e,d=this._editor.getBottomForLineNumber(a)-i,u=this._editor.getTopForLineNumber(c)-i,g=this._editor.getBottomForLineNumber(c)-i;if(o>u&&o<=g){n.push(a),r.push(c+1),s=g-h;break}if(h>d&&h<=g&&(n.push(a),r.push(c+1)),n.length===t)break}}}return this._endLineNumbers=r,new y(n,r,s,this._showEndForLine)}dispose(){super.dispose(),this._sessionStore.dispose()}};fe=re=pe([me(1,oe.Z),me(2,d.ILanguageFeaturesService),me(3,K._Y),me(4,D.JZ),me(5,de.ILanguageFeatureDebounceService),me(6,c.fN)],fe);class _e extends o.L{constructor(){super({id:"editor.action.toggleStickyScroll",title:{...(0,n.aS)("toggleEditorStickyScroll","Toggle Editor Sticky Scroll"),mnemonicTitle:(0,n.kg)({key:"mitoggleStickyScroll",comment:["&& denotes a mnemonic"]},"&&Toggle Editor Sticky Scroll")},metadata:{description:(0,n.aS)("toggleEditorStickyScroll.description","Toggle/enable the editor sticky scroll which shows the nested scopes at the top of the viewport")},category:r.View,toggled:{condition:c.M$.equals("config.editor.stickyScroll.enabled",!0),title:(0,n.kg)("stickyScroll","Sticky Scroll"),mnemonicTitle:(0,n.kg)({key:"miStickyScroll",comment:["&& denotes a mnemonic"]},"&&Sticky Scroll")},menu:[{id:o.D8.CommandPalette},{id:o.D8.MenubarAppearanceMenu,group:"4_editor",order:3},{id:o.D8.StickyScrollContext}]})}async run(e){const t=e.get(a.pG),i=!t.getValue("editor.stickyScroll.enabled");return t.updateValue("editor.stickyScroll.enabled",i)}}const ve=100;class Ce extends s.qO{constructor(){super({id:"editor.action.focusStickyScroll",title:{...(0,n.aS)("focusStickyScroll","Focus on the editor sticky scroll"),mnemonicTitle:(0,n.kg)({key:"mifocusStickyScroll",comment:["&& denotes a mnemonic"]},"&&Focus Sticky Scroll")},precondition:c.M$.and(c.M$.has("config.editor.stickyScroll.enabled"),l.R.stickyScrollVisible),menu:[{id:o.D8.CommandPalette}]})}runEditorCommand(e,t){fe.get(t)?.focus()}}class Ee extends s.qO{constructor(){super({id:"editor.action.selectNextStickyScrollLine",title:(0,n.aS)("selectNextStickyScrollLine.title","Select the next editor sticky scroll line"),precondition:l.R.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:ve,primary:18}})}runEditorCommand(e,t){fe.get(t)?.focusNext()}}class be extends s.qO{constructor(){super({id:"editor.action.selectPreviousStickyScrollLine",title:(0,n.aS)("selectPreviousStickyScrollLine.title","Select the previous sticky scroll line"),precondition:l.R.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:ve,primary:16}})}runEditorCommand(e,t){fe.get(t)?.focusPrevious()}}class Se extends s.qO{constructor(){super({id:"editor.action.goToFocusedStickyScrollLine",title:(0,n.aS)("goToFocusedStickyScrollLine.title","Go to the focused sticky scroll line"),precondition:l.R.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:ve,primary:3}})}runEditorCommand(e,t){fe.get(t)?.goToFocused()}}class ye extends s.qO{constructor(){super({id:"editor.action.selectEditor",title:(0,n.aS)("selectEditor.title","Select Editor"),precondition:l.R.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:ve,primary:9}})}runEditorCommand(e,t){fe.get(t)?.selectEditor()}}(0,s.HW)(fe.ID,fe,1),(0,o.ug)(_e),(0,o.ug)(Ce),(0,o.ug)(be),(0,o.ug)(Ee),(0,o.ug)(Se),(0,o.ug)(ye)},51173:(e,t,i)=>{"use strict";i.d(t,{C:()=>a,O:()=>o});var s=i(25890),n=i(26690),r=i(91508);class o{constructor(e,t){this.leadingLineContent=e,this.characterCountDelta=t}}class a{constructor(e,t,i,s,r,o,c=n.Nd.default,l=void 0){this.clipboardText=l,this._snippetCompareFn=a._compareCompletionItems,this._items=e,this._column=t,this._wordDistance=s,this._options=r,this._refilterKind=1,this._lineContext=i,this._fuzzyScoreOptions=c,"top"===o?this._snippetCompareFn=a._compareCompletionItemsSnippetsUp:"bottom"===o&&(this._snippetCompareFn=a._compareCompletionItemsSnippetsDown)}get lineContext(){return this._lineContext}set lineContext(e){this._lineContext.leadingLineContent===e.leadingLineContent&&this._lineContext.characterCountDelta===e.characterCountDelta||(this._refilterKind=this._lineContext.characterCountDelta<e.characterCountDelta&&this._filteredItems?2:1,this._lineContext=e)}get items(){return this._ensureCachedState(),this._filteredItems}getItemsByProvider(){return this._ensureCachedState(),this._itemsByProvider}getIncompleteProvider(){this._ensureCachedState();const e=new Set;for(const[t,i]of this.getItemsByProvider())i.length>0&&i[0].container.incomplete&&e.add(t);return e}get stats(){return this._ensureCachedState(),this._stats}_ensureCachedState(){0!==this._refilterKind&&this._createCachedState()}_createCachedState(){this._itemsByProvider=new Map;const e=[],{leadingLineContent:t,characterCountDelta:i}=this._lineContext;let o="",a="";const c=1===this._refilterKind?this._items:this._filteredItems,l=[],h=!this._options.filterGraceful||c.length>2e3?n.dt:n.uU;for(let s=0;s<c.length;s++){const d=c[s];if(d.isInvalid)continue;const u=this._itemsByProvider.get(d.provider);u?u.push(d):this._itemsByProvider.set(d.provider,[d]);const g=d.position.column-d.editStart.column,p=g+i-(d.position.column-this._column);if(o.length!==p&&(o=0===p?"":t.slice(-p),a=o.toLowerCase()),d.word=o,0===p)d.score=n.ne.Default;else{let e=0;for(;e<g;){const t=o.charCodeAt(e);if(32!==t&&9!==t)break;e+=1}if(e>=p)d.score=n.ne.Default;else if("string"===typeof d.completion.filterText){const t=h(o,a,e,d.completion.filterText,d.filterTextLow,0,this._fuzzyScoreOptions);if(!t)continue;0===(0,r.W1)(d.completion.filterText,d.textLabel)?d.score=t:(d.score=(0,n.Jo)(o,a,e,d.textLabel,d.labelLow,0),d.score[0]=t[0])}else{const t=h(o,a,e,d.textLabel,d.labelLow,0,this._fuzzyScoreOptions);if(!t)continue;d.score=t}}d.idx=s,d.distance=this._wordDistance.distance(d.position,d.completion),l.push(d),e.push(d.textLabel.length)}this._filteredItems=l.sort(this._snippetCompareFn),this._refilterKind=0,this._stats={pLabelLen:e.length?(0,s.SO)(e.length-.85,e,((e,t)=>e-t)):0}}static _compareCompletionItems(e,t){return e.score[0]>t.score[0]?-1:e.score[0]<t.score[0]?1:e.distance<t.distance?-1:e.distance>t.distance?1:e.idx<t.idx?-1:e.idx>t.idx?1:0}static _compareCompletionItemsSnippetsDown(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return 1;if(27===t.completion.kind)return-1}return a._compareCompletionItems(e,t)}static _compareCompletionItemsSnippetsUp(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return-1;if(27===t.completion.kind)return 1}return a._compareCompletionItems(e,t)}}},48116:(e,t,i)=>{"use strict";i.d(t,{aR:()=>L,dt:()=>E,f3:()=>w,l1:()=>S,ob:()=>C,p3:()=>k,r3:()=>A});var s=i(18447),n=i(64383),r=i(26690),o=i(5662),a=i(78381),c=i(631),l=i(79400),h=i(83069),d=i(36677),u=i(18938),g=i(29319),p=i(78209),m=i(27195),f=i(50091),_=i(32848),v=i(56942);const C={Visible:i(89100).dg,HasFocusedSuggestion:new _.N1("suggestWidgetHasFocusedSuggestion",!1,(0,p.kg)("suggestWidgetHasSelection","Whether any suggestion is focused")),DetailsVisible:new _.N1("suggestWidgetDetailsVisible",!1,(0,p.kg)("suggestWidgetDetailsVisible","Whether suggestion details are visible")),MultipleSuggestions:new _.N1("suggestWidgetMultipleSuggestions",!1,(0,p.kg)("suggestWidgetMultipleSuggestions","Whether there are multiple suggestions to pick from")),MakesTextEdit:new _.N1("suggestionMakesTextEdit",!0,(0,p.kg)("suggestionMakesTextEdit","Whether inserting the current suggestion yields in a change or has everything already been typed")),AcceptSuggestionsOnEnter:new _.N1("acceptSuggestionOnEnter",!0,(0,p.kg)("acceptSuggestionOnEnter","Whether suggestions are inserted when pressing Enter")),HasInsertAndReplaceRange:new _.N1("suggestionHasInsertAndReplaceRange",!1,(0,p.kg)("suggestionHasInsertAndReplaceRange","Whether the current suggestion has insert and replace behaviour")),InsertMode:new _.N1("suggestionInsertMode",void 0,{type:"string",description:(0,p.kg)("suggestionInsertMode","Whether the default behaviour is to insert or replace")}),CanResolve:new _.N1("suggestionCanResolve",!1,(0,p.kg)("suggestionCanResolve","Whether the current suggestion supports to resolve further details"))},E=new m.D8("suggestWidgetStatusBar");class b{constructor(e,t,i,s){this.position=e,this.completion=t,this.container=i,this.provider=s,this.isInvalid=!1,this.score=r.ne.Default,this.distance=0,this.textLabel="string"===typeof t.label?t.label:t.label?.label,this.labelLow=this.textLabel.toLowerCase(),this.isInvalid=!this.textLabel,this.sortTextLow=t.sortText&&t.sortText.toLowerCase(),this.filterTextLow=t.filterText&&t.filterText.toLowerCase(),this.extensionId=t.extensionId,d.Q.isIRange(t.range)?(this.editStart=new h.y(t.range.startLineNumber,t.range.startColumn),this.editInsertEnd=new h.y(t.range.endLineNumber,t.range.endColumn),this.editReplaceEnd=new h.y(t.range.endLineNumber,t.range.endColumn),this.isInvalid=this.isInvalid||d.Q.spansMultipleLines(t.range)||t.range.startLineNumber!==e.lineNumber):(this.editStart=new h.y(t.range.insert.startLineNumber,t.range.insert.startColumn),this.editInsertEnd=new h.y(t.range.insert.endLineNumber,t.range.insert.endColumn),this.editReplaceEnd=new h.y(t.range.replace.endLineNumber,t.range.replace.endColumn),this.isInvalid=this.isInvalid||d.Q.spansMultipleLines(t.range.insert)||d.Q.spansMultipleLines(t.range.replace)||t.range.insert.startLineNumber!==e.lineNumber||t.range.replace.startLineNumber!==e.lineNumber||t.range.insert.startColumn!==t.range.replace.startColumn),"function"!==typeof s.resolveCompletionItem&&(this._resolveCache=Promise.resolve(),this._resolveDuration=0)}get isResolved(){return void 0!==this._resolveDuration}get resolveDuration(){return void 0!==this._resolveDuration?this._resolveDuration:-1}async resolve(e){if(!this._resolveCache){const t=e.onCancellationRequested((()=>{this._resolveCache=void 0,this._resolveDuration=void 0})),i=new a.W(!0);this._resolveCache=Promise.resolve(this.provider.resolveCompletionItem(this.completion,e)).then((e=>{Object.assign(this.completion,e),this._resolveDuration=i.elapsed()}),(e=>{(0,n.MB)(e)&&(this._resolveCache=void 0,this._resolveDuration=void 0)})).finally((()=>{t.dispose()}))}return this._resolveCache}}class S{static{this.default=new S}constructor(e=2,t=new Set,i=new Set,s=new Map,n=!0){this.snippetSortOrder=e,this.kindFilter=t,this.providerFilter=i,this.providerItemsToReuse=s,this.showDeprecated=n}}let y;function w(){return y}class R{constructor(e,t,i,s){this.items=e,this.needsClipboard=t,this.durations=i,this.disposable=s}}async function L(e,t,i,r=S.default,c={triggerKind:0},l=s.XO.None){const h=new a.W;i=i.clone();const u=t.getWordAtPosition(i),p=u?new d.Q(i.lineNumber,u.startColumn,i.lineNumber,u.endColumn):d.Q.fromPositions(i),m={replace:p,insert:p.setEndPosition(i.lineNumber,i.column)},f=[],_=new o.Cm,v=[];let C=!1;const E=(e,t,s)=>{let n=!1;if(!t)return n;for(const o of t.suggestions)if(!r.kindFilter.has(o.kind)){if(!r.showDeprecated&&o?.tags?.includes(1))continue;o.range||(o.range=m),o.sortText||(o.sortText="string"===typeof o.label?o.label:o.label.label),!C&&o.insertTextRules&&4&o.insertTextRules&&(C=g.fr.guessNeedsClipboard(o.insertText)),f.push(new b(i,o,t,e)),n=!0}return(0,o.Xm)(t)&&_.add(t),v.push({providerName:e._debugDisplayName??"unknown_provider",elapsedProvider:t.duration??-1,elapsedOverall:s.elapsed()}),n},w=(async()=>{if(!y||r.kindFilter.has(27))return;const e=r.providerItemsToReuse.get(y);if(e)return void e.forEach((e=>f.push(e)));if(r.providerFilter.size>0&&!r.providerFilter.has(y))return;const s=new a.W,n=await y.provideCompletionItems(t,i,c,l);E(y,n,s)})();for(const s of e.orderedGroups(t)){let e=!1;if(await Promise.all(s.map((async s=>{if(r.providerItemsToReuse.has(s)){const t=r.providerItemsToReuse.get(s);return t.forEach((e=>f.push(e))),void(e=e||t.length>0)}if(!(r.providerFilter.size>0)||r.providerFilter.has(s))try{const n=new a.W,r=await s.provideCompletionItems(t,i,c,l);e=E(s,r,n)||e}catch(o){(0,n.M_)(o)}}))),e||l.isCancellationRequested)break}return await w,l.isCancellationRequested?(_.dispose(),Promise.reject(new n.AL)):new R(f.sort((L=r.snippetSortOrder,x.get(L))),C,{entries:v,elapsed:h.elapsed()},_);var L}function T(e,t){if(e.sortTextLow&&t.sortTextLow){if(e.sortTextLow<t.sortTextLow)return-1;if(e.sortTextLow>t.sortTextLow)return 1}return e.textLabel<t.textLabel?-1:e.textLabel>t.textLabel?1:e.completion.kind-t.completion.kind}const x=new Map;function k(e,t){e.getContribution("editor.contrib.suggestController")?.triggerSuggest((new Set).add(t),void 0,!0)}x.set(0,(function(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return-1;if(27===t.completion.kind)return 1}return T(e,t)})),x.set(2,(function(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return 1;if(27===t.completion.kind)return-1}return T(e,t)})),x.set(1,T),f.w.registerCommand("_executeCompletionItemProvider",(async(e,...t)=>{const[i,n,r,o]=t;(0,c.j)(l.r.isUri(i)),(0,c.j)(h.y.isIPosition(n)),(0,c.j)("string"===typeof r||!r),(0,c.j)("number"===typeof o||!o);const{completionProvider:a}=e.get(v.ILanguageFeaturesService),d=await e.get(u.ITextModelService).createModelReference(i);try{const e={incomplete:!1,suggestions:[]},t=[],i=d.object.textEditorModel.validatePosition(n),c=await L(a,d.object.textEditorModel,i,void 0,{triggerCharacter:r??void 0,triggerKind:r?1:0});for(const n of c.items)t.length<(o??0)&&t.push(n.resolve(s.XO.None)),e.incomplete=e.incomplete||n.container.incomplete,e.suggestions.push(n.completion);try{return await Promise.all(t),e}finally{setTimeout((()=>c.disposable.dispose()),100)}}finally{d.dispose()}}));class A{static isAllOff(e){return"off"===e.other&&"off"===e.comments&&"off"===e.strings}static isAllOn(e){return"on"===e.other&&"on"===e.comments&&"on"===e.strings}static valueFor(e,t){switch(t){case 1:return e.comments;case 2:return e.strings;default:return e.other}}}},90870:(e,t,i)=>{"use strict";i.d(t,{D:()=>je});var s,n=i(11007),r=i(25890),o=i(18447),a=i(64383),c=i(41234),l=i(42539),h=i(5662),d=i(98067),u=i(78381),g=i(631),p=i(55190),m=i(31450),f=i(7085),_=i(83069),v=i(36677),C=i(60002),E=i(30936),b=i(29319),S=i(88415),y=i(32848),w=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},R=function(e,t){return function(i,s){t(i,s,e)}};let L=class{static{s=this}static{this.AtEnd=new y.N1("atEndOfWord",!1)}constructor(e,t){this._editor=e,this._enabled=!1,this._ckAtEnd=s.AtEnd.bindTo(t),this._configListener=this._editor.onDidChangeConfiguration((e=>e.hasChanged(124)&&this._update())),this._update()}dispose(){this._configListener.dispose(),this._selectionListener?.dispose(),this._ckAtEnd.reset()}_update(){const e="on"===this._editor.getOption(124);if(this._enabled!==e)if(this._enabled=e,this._enabled){const e=()=>{if(!this._editor.hasModel())return void this._ckAtEnd.set(!1);const e=this._editor.getModel(),t=this._editor.getSelection(),i=e.getWordAtPosition(t.getStartPosition());i?this._ckAtEnd.set(i.endColumn===t.getStartPosition().column):this._ckAtEnd.set(!1)};this._selectionListener=this._editor.onDidChangeCursorSelection(e),e()}else this._selectionListener&&(this._ckAtEnd.reset(),this._selectionListener.dispose(),this._selectionListener=void 0)}};L=s=w([R(1,y.fN)],L);var T,x=i(78209),k=i(50091),A=i(63591),N=i(18801),I=i(48116),O=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},D=function(e,t){return function(i,s){t(i,s,e)}};let M=class{static{T=this}static{this.OtherSuggestions=new y.N1("hasOtherSuggestions",!1)}constructor(e,t){this._editor=e,this._index=0,this._ckOtherSuggestions=T.OtherSuggestions.bindTo(t)}dispose(){this.reset()}reset(){this._ckOtherSuggestions.reset(),this._listener?.dispose(),this._model=void 0,this._acceptNext=void 0,this._ignore=!1}set({model:e,index:t},i){if(0===e.items.length)return void this.reset();T._moveIndex(!0,e,t)!==t?(this._acceptNext=i,this._model=e,this._index=t,this._listener=this._editor.onDidChangeCursorPosition((()=>{this._ignore||this.reset()})),this._ckOtherSuggestions.set(!0)):this.reset()}static _moveIndex(e,t,i){let s=i;for(let n=t.items.length;n>0&&(s=(s+t.items.length+(e?1:-1))%t.items.length,s!==i)&&t.items[s].completion.additionalTextEdits;n--);return s}next(){this._move(!0)}prev(){this._move(!1)}_move(e){if(this._model)try{this._ignore=!0,this._index=T._moveIndex(e,this._model,this._index),this._acceptNext({index:this._index,item:this._model.items[this._index],model:this._model})}finally{this._ignore=!1}}};M=T=O([D(1,y.fN)],M);var P=i(60534);class F{constructor(e,t,i,s){this._disposables=new h.Cm,this._disposables.add(i.onDidSuggest((e=>{0===e.completionModel.items.length&&this.reset()}))),this._disposables.add(i.onDidCancel((e=>{this.reset()}))),this._disposables.add(t.onDidShow((()=>this._onItem(t.getFocusedItem())))),this._disposables.add(t.onDidFocus(this._onItem,this)),this._disposables.add(t.onDidHide(this.reset,this)),this._disposables.add(e.onWillType((n=>{if(this._active&&!t.isFrozen()&&0!==i.state){const t=n.charCodeAt(n.length-1);this._active.acceptCharacters.has(t)&&e.getOption(0)&&s(this._active.item)}})))}_onItem(e){if(!e||!(0,r.EI)(e.item.completion.commitCharacters))return void this.reset();if(this._active&&this._active.item.item===e.item)return;const t=new P.y;for(const i of e.item.completion.commitCharacters)i.length>0&&t.add(i.charCodeAt(0));this._active={acceptCharacters:t,item:e}}reset(){this._active=void 0}dispose(){this._disposables.dispose()}}var U=i(96299);class H{static{this._maxSelectionLength=51200}constructor(e,t){this._disposables=new h.Cm,this._lastOvertyped=[],this._locked=!1,this._disposables.add(e.onWillType((()=>{if(this._locked||!e.hasModel())return;const t=e.getSelections(),i=t.length;let s=!1;for(let e=0;e<i;e++)if(!t[e].isEmpty()){s=!0;break}if(!s)return void(0!==this._lastOvertyped.length&&(this._lastOvertyped.length=0));this._lastOvertyped=[];const n=e.getModel();for(let e=0;e<i;e++){const i=t[e];if(n.getValueLengthInRange(i)>H._maxSelectionLength)return;this._lastOvertyped[e]={value:n.getValueInRange(i),multiline:i.startLineNumber!==i.endLineNumber}}}))),this._disposables.add(t.onDidTrigger((e=>{this._locked=!0}))),this._disposables.add(t.onDidCancel((e=>{this._locked=!1})))}getLastOvertypedInfo(e){if(e>=0&&e<this._lastOvertyped.length)return this._lastOvertyped[e]}dispose(){this._disposables.dispose()}}var B=i(8597),W=(i(97791),i(93090)),V=i(90766),z=i(1592),G=i(91508),j=i(29163),K=i(11799),Y=i(57629),q=i(27195),$=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Q=function(e,t){return function(i,s){t(i,s,e)}};let X=class{constructor(e,t,i,s,n){this._menuId=t,this._menuService=s,this._contextKeyService=n,this._menuDisposables=new h.Cm,this.element=B.BC(e,B.$(".suggest-status-bar"));const r=e=>e instanceof q.Xe?i.createInstance(Y.rr,e,{useComma:!0}):void 0;this._leftActions=new K.E(this.element,{actionViewItemProvider:r}),this._rightActions=new K.E(this.element,{actionViewItemProvider:r}),this._leftActions.domNode.classList.add("left"),this._rightActions.domNode.classList.add("right")}dispose(){this._menuDisposables.dispose(),this._leftActions.dispose(),this._rightActions.dispose(),this.element.remove()}show(){const e=this._menuService.createMenu(this._menuId,this._contextKeyService),t=()=>{const t=[],i=[];for(const[s,n]of e.getActions())"left"===s?t.push(...n):i.push(...n);this._leftActions.clear(),this._leftActions.push(t),this._rightActions.clear(),this._rightActions.push(i)};this._menuDisposables.add(e.onDidChange((()=>t()))),this._menuDisposables.add(e)}hide(){this._menuDisposables.clear()}};X=$([Q(2,A._Y),Q(3,q.ez),Q(4,y.fN)],X);i(93409);var Z=i(9711),J=i(66261),ee=i(86723),te=i(47612),ie=i(88807),se=i(31295),ne=i(10350),re=i(25689),oe=i(16980),ae=i(20492),ce=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},le=function(e,t){return function(i,s){t(i,s,e)}};function he(e){return!!e&&Boolean(e.completion.documentation||e.completion.detail&&e.completion.detail!==e.completion.label)}let de=class{constructor(e,t){this._editor=e,this._onDidClose=new c.vl,this.onDidClose=this._onDidClose.event,this._onDidChangeContents=new c.vl,this.onDidChangeContents=this._onDidChangeContents.event,this._disposables=new h.Cm,this._renderDisposeable=new h.Cm,this._borderWidth=1,this._size=new B.fg(330,0),this.domNode=B.$(".suggest-details"),this.domNode.classList.add("no-docs"),this._markdownRenderer=t.createInstance(ae.T,{editor:e}),this._body=B.$(".body"),this._scrollbar=new se.MU(this._body,{alwaysConsumeMouseWheel:!0}),B.BC(this.domNode,this._scrollbar.getDomNode()),this._disposables.add(this._scrollbar),this._header=B.BC(this._body,B.$(".header")),this._close=B.BC(this._header,B.$("span"+re.L.asCSSSelector(ne.W.close))),this._close.title=x.kg("details.close","Close"),this._type=B.BC(this._header,B.$("p.type")),this._docs=B.BC(this._body,B.$("p.docs")),this._configureFont(),this._disposables.add(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(50)&&this._configureFont()})))}dispose(){this._disposables.dispose(),this._renderDisposeable.dispose()}_configureFont(){const e=this._editor.getOptions(),t=e.get(50),i=t.getMassagedFontFamily(),s=e.get(120)||t.fontSize,n=e.get(121)||t.lineHeight,r=t.fontWeight,o=`${s}px`,a=`${n}px`;this.domNode.style.fontSize=o,this.domNode.style.lineHeight=""+n/s,this.domNode.style.fontWeight=r,this.domNode.style.fontFeatureSettings=t.fontFeatureSettings,this._type.style.fontFamily=i,this._close.style.height=a,this._close.style.width=a}getLayoutInfo(){const e=this._editor.getOption(121)||this._editor.getOption(50).lineHeight,t=this._borderWidth;return{lineHeight:e,borderWidth:t,borderHeight:2*t,verticalPadding:22,horizontalPadding:14}}renderLoading(){this._type.textContent=x.kg("loading","Loading..."),this._docs.textContent="",this.domNode.classList.remove("no-docs","no-type"),this.layout(this.size.width,2*this.getLayoutInfo().lineHeight),this._onDidChangeContents.fire(this)}renderItem(e,t){this._renderDisposeable.clear();let{detail:i,documentation:s}=e.completion;if(t){let t="";t+=`score: ${e.score[0]}\n`,t+=`prefix: ${e.word??"(no prefix)"}\n`,t+=`word: ${e.completion.filterText?e.completion.filterText+" (filterText)":e.textLabel}\n`,t+=`distance: ${e.distance} (localityBonus-setting)\n`,t+=`index: ${e.idx}, based on ${e.completion.sortText&&`sortText: "${e.completion.sortText}"`||"label"}\n`,t+=`commit_chars: ${e.completion.commitCharacters?.join("")}\n`,s=(new oe.Bc).appendCodeblock("empty",t),i=`Provider: ${e.provider._debugDisplayName}`}if(t||he(e)){if(this.domNode.classList.remove("no-docs","no-type"),i){const e=i.length>1e5?`${i.substr(0,1e5)}\u2026`:i;this._type.textContent=e,this._type.title=e,B.WU(this._type),this._type.classList.toggle("auto-wrap",!/\r?\n^\s+/gim.test(e))}else B.w_(this._type),this._type.title="",B.jD(this._type),this.domNode.classList.add("no-type");if(B.w_(this._docs),"string"===typeof s)this._docs.classList.remove("markdown-docs"),this._docs.textContent=s;else if(s){this._docs.classList.add("markdown-docs"),B.w_(this._docs);const e=this._markdownRenderer.render(s);this._docs.appendChild(e.element),this._renderDisposeable.add(e),this._renderDisposeable.add(this._markdownRenderer.onDidRenderAsync((()=>{this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)})))}this.domNode.style.userSelect="text",this.domNode.tabIndex=-1,this._close.onmousedown=e=>{e.preventDefault(),e.stopPropagation()},this._close.onclick=e=>{e.preventDefault(),e.stopPropagation(),this._onDidClose.fire()},this._body.scrollTop=0,this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)}else this.clearContents()}clearContents(){this.domNode.classList.add("no-docs"),this._type.textContent="",this._docs.textContent=""}get isEmpty(){return this.domNode.classList.contains("no-docs")}get size(){return this._size}layout(e,t){const i=new B.fg(e,t);B.fg.equals(i,this._size)||(this._size=i,B.Ej(this.domNode,e,t)),this._scrollbar.scanDomNode()}scrollDown(e=8){this._body.scrollTop+=e}scrollUp(e=8){this._body.scrollTop-=e}scrollTop(){this._body.scrollTop=0}scrollBottom(){this._body.scrollTop=this._body.scrollHeight}pageDown(){this.scrollDown(80)}pageUp(){this.scrollUp(80)}set borderWidth(e){this._borderWidth=e}get borderWidth(){return this._borderWidth}};de=ce([le(1,A._Y)],de);class ue{constructor(e,t){let i,s;this.widget=e,this._editor=t,this.allowEditorOverflow=!0,this._disposables=new h.Cm,this._added=!1,this._preferAlignAtTop=!0,this._resizable=new ie.v,this._resizable.domNode.classList.add("suggest-details-container"),this._resizable.domNode.appendChild(e.domNode),this._resizable.enableSashes(!1,!0,!0,!1);let n=0,r=0;this._disposables.add(this._resizable.onDidWillResize((()=>{i=this._topLeft,s=this._resizable.size}))),this._disposables.add(this._resizable.onDidResize((e=>{if(i&&s){this.widget.layout(e.dimension.width,e.dimension.height);let t=!1;e.west&&(r=s.width-e.dimension.width,t=!0),e.north&&(n=s.height-e.dimension.height,t=!0),t&&this._applyTopLeft({top:i.top+n,left:i.left+r})}e.done&&(i=void 0,s=void 0,n=0,r=0,this._userSize=e.dimension)}))),this._disposables.add(this.widget.onDidChangeContents((()=>{this._anchorBox&&this._placeAtAnchor(this._anchorBox,this._userSize??this.widget.size,this._preferAlignAtTop)})))}dispose(){this._resizable.dispose(),this._disposables.dispose(),this.hide()}getId(){return"suggest.details"}getDomNode(){return this._resizable.domNode}getPosition(){return this._topLeft?{preference:this._topLeft}:null}show(){this._added||(this._editor.addOverlayWidget(this),this._added=!0)}hide(e=!1){this._resizable.clearSashHoverState(),this._added&&(this._editor.removeOverlayWidget(this),this._added=!1,this._anchorBox=void 0,this._topLeft=void 0),e&&(this._userSize=void 0,this.widget.clearContents())}placeAtAnchor(e,t){const i=e.getBoundingClientRect();this._anchorBox=i,this._preferAlignAtTop=t,this._placeAtAnchor(this._anchorBox,this._userSize??this.widget.size,t)}_placeAtAnchor(e,t,i){const s=B.tG(this.getDomNode().ownerDocument.body),n=this.widget.getLayoutInfo(),r=new B.fg(220,2*n.lineHeight),o=e.top,a=function(){const i=s.width-(e.left+e.width+n.borderWidth+n.horizontalPadding),a=-n.borderWidth+e.left+e.width,c=new B.fg(i,s.height-e.top-n.borderHeight-n.verticalPadding),l=c.with(void 0,e.top+e.height-n.borderHeight-n.verticalPadding);return{top:o,left:a,fit:i-t.width,maxSizeTop:c,maxSizeBottom:l,minSize:r.with(Math.min(i,r.width))}}(),c=function(){const i=e.left-n.borderWidth-n.horizontalPadding,a=Math.max(n.horizontalPadding,e.left-t.width-n.borderWidth),c=new B.fg(i,s.height-e.top-n.borderHeight-n.verticalPadding),l=c.with(void 0,e.top+e.height-n.borderHeight-n.verticalPadding);return{top:o,left:a,fit:i-t.width,maxSizeTop:c,maxSizeBottom:l,minSize:r.with(Math.min(i,r.width))}}(),l=function(){const i=e.left,o=-n.borderWidth+e.top+e.height,a=new B.fg(e.width-n.borderHeight,s.height-e.top-e.height-n.verticalPadding);return{top:o,left:i,fit:a.height-t.height,maxSizeBottom:a,maxSizeTop:a,minSize:r.with(a.width)}}(),h=[a,c,l],d=h.find((e=>e.fit>=0))??h.sort(((e,t)=>t.fit-e.fit))[0],u=e.top+e.height-n.borderHeight;let g,p=t.height;const m=Math.max(d.maxSizeTop.height,d.maxSizeBottom.height);let f;p>m&&(p=m),i?p<=d.maxSizeTop.height?(g=!0,f=d.maxSizeTop):(g=!1,f=d.maxSizeBottom):p<=d.maxSizeBottom.height?(g=!1,f=d.maxSizeBottom):(g=!0,f=d.maxSizeTop);let{top:_,left:v}=d;!g&&p>e.height&&(_=u-p);const C=this._editor.getDomNode();if(C){const e=C.getBoundingClientRect();_-=e.top,v-=e.left}this._applyTopLeft({left:v,top:_}),this._resizable.enableSashes(!g,d===a,g,d!==a),this._resizable.minSize=d.minSize,this._resizable.maxSize=f,this._resizable.layout(p,Math.min(f.width,t.width)),this.widget.layout(this._resizable.size.width,this._resizable.size.height)}_applyTopLeft(e){this._topLeft=e,this._editor.layoutOverlayWidget(this)}}var ge=i(21852),pe=i(26690),me=i(79400),fe=i(62083),_e=i(53068),ve=i(23750),Ce=i(10154),Ee=i(7291),be=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Se=function(e,t){return function(i,s){t(i,s,e)}};function ye(e){return`suggest-aria-id:${e}`}const we=(0,i(61394).pU)("suggest-more-info",ne.W.chevronRight,x.kg("suggestMoreInfoIcon","Icon for more information in the suggest widget.")),Re=new class e{static{this._regexRelaxed=/(#([\da-fA-F]{3}){1,2}|(rgb|hsl)a\(\s*(\d{1,3}%?\s*,\s*){3}(1|0?\.\d+)\)|(rgb|hsl)\(\s*\d{1,3}%?(\s*,\s*\d{1,3}%?){2}\s*\))/}static{this._regexStrict=new RegExp(`^${e._regexRelaxed.source}$`,"i")}extract(t,i){if(t.textLabel.match(e._regexStrict))return i[0]=t.textLabel,!0;if(t.completion.detail&&t.completion.detail.match(e._regexStrict))return i[0]=t.completion.detail,!0;if(t.completion.documentation){const s="string"===typeof t.completion.documentation?t.completion.documentation:t.completion.documentation.value,n=e._regexRelaxed.exec(s);if(n&&(0===n.index||n.index+n[0].length===s.length))return i[0]=n[0],!0}return!1}};let Le=class{constructor(e,t,i,s){this._editor=e,this._modelService=t,this._languageService=i,this._themeService=s,this._onDidToggleDetails=new c.vl,this.onDidToggleDetails=this._onDidToggleDetails.event,this.templateId="suggestion"}dispose(){this._onDidToggleDetails.dispose()}renderTemplate(e){const t=new h.Cm,i=e;i.classList.add("show-file-icons");const s=(0,B.BC)(e,(0,B.$)(".icon")),n=(0,B.BC)(s,(0,B.$)("span.colorspan")),r=(0,B.BC)(e,(0,B.$)(".contents")),o=(0,B.BC)(r,(0,B.$)(".main")),a=(0,B.BC)(o,(0,B.$)(".icon-label.codicon")),c=(0,B.BC)(o,(0,B.$)("span.left")),l=(0,B.BC)(o,(0,B.$)("span.right")),d=new ge.s(c,{supportHighlights:!0,supportIcons:!0});t.add(d);const u=(0,B.BC)(c,(0,B.$)("span.signature-label")),g=(0,B.BC)(c,(0,B.$)("span.qualifier-label")),p=(0,B.BC)(l,(0,B.$)("span.details-label")),m=(0,B.BC)(l,(0,B.$)("span.readMore"+re.L.asCSSSelector(we)));m.title=x.kg("readMore","Read More");return{root:i,left:c,right:l,icon:s,colorspan:n,iconLabel:d,iconContainer:a,parametersLabel:u,qualifierLabel:g,detailsLabel:p,readMore:m,disposables:t,configureFont:()=>{const e=this._editor.getOptions(),t=e.get(50),n=t.getMassagedFontFamily(),r=t.fontFeatureSettings,a=e.get(120)||t.fontSize,c=e.get(121)||t.lineHeight,l=t.fontWeight,h=`${a}px`,d=`${c}px`,u=`${t.letterSpacing}px`;i.style.fontSize=h,i.style.fontWeight=l,i.style.letterSpacing=u,o.style.fontFamily=n,o.style.fontFeatureSettings=r,o.style.lineHeight=d,s.style.height=d,s.style.width=d,m.style.height=d,m.style.width=d}}}renderElement(e,t,i){i.configureFont();const{completion:s}=e;i.root.id=ye(t),i.colorspan.style.backgroundColor="";const n={labelEscapeNewLines:!0,matches:(0,pe.WJ)(e.score)},r=[];if(19===s.kind&&Re.extract(e,r))i.icon.className="icon customcolor",i.iconContainer.className="icon hide",i.colorspan.style.backgroundColor=r[0];else if(20===s.kind&&this._themeService.getFileIconTheme().hasFileIcons){i.icon.className="icon hide",i.iconContainer.className="icon hide";const t=(0,_e.getIconClasses)(this._modelService,this._languageService,me.r.from({scheme:"fake",path:e.textLabel}),Ee.p.FILE),r=(0,_e.getIconClasses)(this._modelService,this._languageService,me.r.from({scheme:"fake",path:s.detail}),Ee.p.FILE);n.extraClasses=t.length>r.length?t:r}else 23===s.kind&&this._themeService.getFileIconTheme().hasFolderIcons?(i.icon.className="icon hide",i.iconContainer.className="icon hide",n.extraClasses=[(0,_e.getIconClasses)(this._modelService,this._languageService,me.r.from({scheme:"fake",path:e.textLabel}),Ee.p.FOLDER),(0,_e.getIconClasses)(this._modelService,this._languageService,me.r.from({scheme:"fake",path:s.detail}),Ee.p.FOLDER)].flat()):(i.icon.className="icon hide",i.iconContainer.className="",i.iconContainer.classList.add("suggest-icon",...re.L.asClassNameArray(fe.HC.toIcon(s.kind))));s.tags&&s.tags.indexOf(1)>=0&&(n.extraClasses=(n.extraClasses||[]).concat(["deprecated"]),n.matches=[]),i.iconLabel.setLabel(e.textLabel,void 0,n),"string"===typeof s.label?(i.parametersLabel.textContent="",i.detailsLabel.textContent=Te(s.detail||""),i.root.classList.add("string-label")):(i.parametersLabel.textContent=Te(s.label.detail||""),i.detailsLabel.textContent=Te(s.label.description||""),i.root.classList.remove("string-label")),this._editor.getOption(119).showInlineDetails?(0,B.WU)(i.detailsLabel):(0,B.jD)(i.detailsLabel),he(e)?(i.right.classList.add("can-expand-details"),(0,B.WU)(i.readMore),i.readMore.onmousedown=e=>{e.stopPropagation(),e.preventDefault()},i.readMore.onclick=e=>{e.stopPropagation(),e.preventDefault(),this._onDidToggleDetails.fire()}):(i.right.classList.remove("can-expand-details"),(0,B.jD)(i.readMore),i.readMore.onmousedown=null,i.readMore.onclick=null)}disposeTemplate(e){e.disposables.dispose()}};function Te(e){return e.replace(/\r\n|\r|\n/g,"")}Le=be([Se(1,ve.IModelService),Se(2,Ce.L),Se(3,te.Gy)],Le);var xe,ke=i(19070),Ae=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Ne=function(e,t){return function(i,s){t(i,s,e)}};(0,J.x1A)("editorSuggestWidget.background",J.CgL,x.kg("editorSuggestWidgetBackground","Background color of the suggest widget.")),(0,J.x1A)("editorSuggestWidget.border",J.sIe,x.kg("editorSuggestWidgetBorder","Border color of the suggest widget."));const Ie=(0,J.x1A)("editorSuggestWidget.foreground",J.By2,x.kg("editorSuggestWidgetForeground","Foreground color of the suggest widget."));(0,J.x1A)("editorSuggestWidget.selectedForeground",J.nH,x.kg("editorSuggestWidgetSelectedForeground","Foreground color of the selected entry in the suggest widget.")),(0,J.x1A)("editorSuggestWidget.selectedIconForeground",J.c7i,x.kg("editorSuggestWidgetSelectedIconForeground","Icon foreground color of the selected entry in the suggest widget."));const Oe=(0,J.x1A)("editorSuggestWidget.selectedBackground",J.AlL,x.kg("editorSuggestWidgetSelectedBackground","Background color of the selected entry in the suggest widget."));(0,J.x1A)("editorSuggestWidget.highlightForeground",J.QI5,x.kg("editorSuggestWidgetHighlightForeground","Color of the match highlights in the suggest widget.")),(0,J.x1A)("editorSuggestWidget.focusHighlightForeground",J.eMz,x.kg("editorSuggestWidgetFocusHighlightForeground","Color of the match highlights in the suggest widget when an item is focused.")),(0,J.x1A)("editorSuggestWidgetStatus.foreground",(0,J.JO0)(Ie,.5),x.kg("editorSuggestWidgetStatusForeground","Foreground color of the suggest widget status."));class De{constructor(e,t){this._service=e,this._key=`suggestWidget.size/${t.getEditorType()}/${t instanceof j.t}`}restore(){const e=this._service.get(this._key,0)??"";try{const t=JSON.parse(e);if(B.fg.is(t))return B.fg.lift(t)}catch{}}store(e){this._service.store(this._key,JSON.stringify(e),0,1)}reset(){this._service.remove(this._key,0)}}let Me=class{static{xe=this}static{this.LOADING_MESSAGE=x.kg("suggestWidget.loading","Loading...")}static{this.NO_SUGGESTIONS_MESSAGE=x.kg("suggestWidget.noSuggestions","No suggestions.")}constructor(e,t,i,s,n){this.editor=e,this._storageService=t,this._state=0,this._isAuto=!1,this._pendingLayout=new h.HE,this._pendingShowDetails=new h.HE,this._ignoreFocusEvents=!1,this._forceRenderingAbove=!1,this._explainMode=!1,this._showTimeout=new V.pc,this._disposables=new h.Cm,this._onDidSelect=new c.fV,this._onDidFocus=new c.fV,this._onDidHide=new c.vl,this._onDidShow=new c.vl,this.onDidSelect=this._onDidSelect.event,this.onDidFocus=this._onDidFocus.event,this.onDidHide=this._onDidHide.event,this.onDidShow=this._onDidShow.event,this._onDetailsKeydown=new c.vl,this.onDetailsKeyDown=this._onDetailsKeydown.event,this.element=new ie.v,this.element.domNode.classList.add("editor-widget","suggest-widget"),this._contentWidget=new Pe(this,e),this._persistedSize=new De(t,e);class r{constructor(e,t,i=!1,s=!1){this.persistedSize=e,this.currentSize=t,this.persistHeight=i,this.persistWidth=s}}let o;this._disposables.add(this.element.onDidWillResize((()=>{this._contentWidget.lockPreference(),o=new r(this._persistedSize.restore(),this.element.size)}))),this._disposables.add(this.element.onDidResize((e=>{if(this._resize(e.dimension.width,e.dimension.height),o&&(o.persistHeight=o.persistHeight||!!e.north||!!e.south,o.persistWidth=o.persistWidth||!!e.east||!!e.west),e.done){if(o){const{itemHeight:e,defaultSize:t}=this.getLayoutInfo(),i=Math.round(e/2);let{width:s,height:n}=this.element.size;(!o.persistHeight||Math.abs(o.currentSize.height-n)<=i)&&(n=o.persistedSize?.height??t.height),(!o.persistWidth||Math.abs(o.currentSize.width-s)<=i)&&(s=o.persistedSize?.width??t.width),this._persistedSize.store(new B.fg(s,n))}this._contentWidget.unlockPreference(),o=void 0}}))),this._messageElement=B.BC(this.element.domNode,B.$(".message")),this._listElement=B.BC(this.element.domNode,B.$(".tree"));const a=this._disposables.add(n.createInstance(de,this.editor));a.onDidClose(this.toggleDetails,this,this._disposables),this._details=new ue(a,this.editor);const l=()=>this.element.domNode.classList.toggle("no-icons",!this.editor.getOption(119).showIcons);l();const d=n.createInstance(Le,this.editor);this._disposables.add(d),this._disposables.add(d.onDidToggleDetails((()=>this.toggleDetails()))),this._list=new W.B8("SuggestWidget",this._listElement,{getHeight:e=>this.getLayoutInfo().itemHeight,getTemplateId:e=>"suggestion"},[d],{alwaysConsumeMouseWheel:!0,useShadows:!1,mouseSupport:!1,multipleSelectionSupport:!1,accessibilityProvider:{getRole:()=>"option",getWidgetAriaLabel:()=>x.kg("suggest","Suggest"),getWidgetRole:()=>"listbox",getAriaLabel:e=>{let t=e.textLabel;if("string"!==typeof e.completion.label){const{detail:i,description:s}=e.completion.label;i&&s?t=x.kg("label.full","{0} {1}, {2}",t,i,s):i?t=x.kg("label.detail","{0} {1}",t,i):s&&(t=x.kg("label.desc","{0}, {1}",t,s))}if(!e.isResolved||!this._isDetailsVisible())return t;const{documentation:i,detail:s}=e.completion,n=G.GP("{0}{1}",s||"",i?"string"===typeof i?i:i.value:"");return x.kg("ariaCurrenttSuggestionReadDetails","{0}, docs: {1}",t,n)}}}),this._list.style((0,ke.t8)({listInactiveFocusBackground:Oe,listInactiveFocusOutline:J.buw})),this._status=n.createInstance(X,this.element.domNode,I.dt);const u=()=>this.element.domNode.classList.toggle("with-status-bar",this.editor.getOption(119).showStatusBar);u(),this._disposables.add(s.onDidColorThemeChange((e=>this._onThemeChange(e)))),this._onThemeChange(s.getColorTheme()),this._disposables.add(this._list.onMouseDown((e=>this._onListMouseDownOrTap(e)))),this._disposables.add(this._list.onTap((e=>this._onListMouseDownOrTap(e)))),this._disposables.add(this._list.onDidChangeSelection((e=>this._onListSelection(e)))),this._disposables.add(this._list.onDidChangeFocus((e=>this._onListFocus(e)))),this._disposables.add(this.editor.onDidChangeCursorSelection((()=>this._onCursorSelectionChanged()))),this._disposables.add(this.editor.onDidChangeConfiguration((e=>{e.hasChanged(119)&&(u(),l()),this._completionModel&&(e.hasChanged(50)||e.hasChanged(120)||e.hasChanged(121))&&this._list.splice(0,this._list.length,this._completionModel.items)}))),this._ctxSuggestWidgetVisible=I.ob.Visible.bindTo(i),this._ctxSuggestWidgetDetailsVisible=I.ob.DetailsVisible.bindTo(i),this._ctxSuggestWidgetMultipleSuggestions=I.ob.MultipleSuggestions.bindTo(i),this._ctxSuggestWidgetHasFocusedSuggestion=I.ob.HasFocusedSuggestion.bindTo(i),this._disposables.add(B.b2(this._details.widget.domNode,"keydown",(e=>{this._onDetailsKeydown.fire(e)}))),this._disposables.add(this.editor.onMouseDown((e=>this._onEditorMouseDown(e))))}dispose(){this._details.widget.dispose(),this._details.dispose(),this._list.dispose(),this._status.dispose(),this._disposables.dispose(),this._loadingTimeout?.dispose(),this._pendingLayout.dispose(),this._pendingShowDetails.dispose(),this._showTimeout.dispose(),this._contentWidget.dispose(),this.element.dispose()}_onEditorMouseDown(e){this._details.widget.domNode.contains(e.target.element)?this._details.widget.domNode.focus():this.element.domNode.contains(e.target.element)&&this.editor.focus()}_onCursorSelectionChanged(){0!==this._state&&this._contentWidget.layout()}_onListMouseDownOrTap(e){"undefined"!==typeof e.element&&"undefined"!==typeof e.index&&(e.browserEvent.preventDefault(),e.browserEvent.stopPropagation(),this._select(e.element,e.index))}_onListSelection(e){e.elements.length&&this._select(e.elements[0],e.indexes[0])}_select(e,t){const i=this._completionModel;i&&(this._onDidSelect.fire({item:e,index:t,model:i}),this.editor.focus())}_onThemeChange(e){this._details.widget.borderWidth=(0,ee.Bb)(e.type)?2:1}_onListFocus(e){if(this._ignoreFocusEvents)return;if(!e.elements.length)return this._currentSuggestionDetails&&(this._currentSuggestionDetails.cancel(),this._currentSuggestionDetails=void 0,this._focusedItem=void 0),this.editor.setAriaOptions({activeDescendant:void 0}),void this._ctxSuggestWidgetHasFocusedSuggestion.set(!1);if(!this._completionModel)return;this._ctxSuggestWidgetHasFocusedSuggestion.set(!0);const t=e.elements[0],i=e.indexes[0];t!==this._focusedItem&&(this._currentSuggestionDetails?.cancel(),this._currentSuggestionDetails=void 0,this._focusedItem=t,this._list.reveal(i),this._currentSuggestionDetails=(0,V.SS)((async e=>{const i=(0,V.EQ)((()=>{this._isDetailsVisible()&&this.showDetails(!0)}),250),s=e.onCancellationRequested((()=>i.dispose()));try{return await t.resolve(e)}finally{i.dispose(),s.dispose()}})),this._currentSuggestionDetails.then((()=>{i>=this._list.length||t!==this._list.element(i)||(this._ignoreFocusEvents=!0,this._list.splice(i,1,[t]),this._list.setFocus([i]),this._ignoreFocusEvents=!1,this._isDetailsVisible()?this.showDetails(!1):this.element.domNode.classList.remove("docs-side"),this.editor.setAriaOptions({activeDescendant:ye(i)}))})).catch(a.dz)),this._onDidFocus.fire({item:t,index:i,model:this._completionModel})}_setState(e){if(this._state!==e)switch(this._state=e,this.element.domNode.classList.toggle("frozen",4===e),this.element.domNode.classList.remove("message"),e){case 0:B.jD(this._messageElement,this._listElement,this._status.element),this._details.hide(!0),this._status.hide(),this._contentWidget.hide(),this._ctxSuggestWidgetVisible.reset(),this._ctxSuggestWidgetMultipleSuggestions.reset(),this._ctxSuggestWidgetHasFocusedSuggestion.reset(),this._showTimeout.cancel(),this.element.domNode.classList.remove("visible"),this._list.splice(0,this._list.length),this._focusedItem=void 0,this._cappedHeight=void 0,this._explainMode=!1;break;case 1:this.element.domNode.classList.add("message"),this._messageElement.textContent=xe.LOADING_MESSAGE,B.jD(this._listElement,this._status.element),B.WU(this._messageElement),this._details.hide(),this._show(),this._focusedItem=void 0,(0,n.h5)(xe.LOADING_MESSAGE);break;case 2:this.element.domNode.classList.add("message"),this._messageElement.textContent=xe.NO_SUGGESTIONS_MESSAGE,B.jD(this._listElement,this._status.element),B.WU(this._messageElement),this._details.hide(),this._show(),this._focusedItem=void 0,(0,n.h5)(xe.NO_SUGGESTIONS_MESSAGE);break;case 3:case 4:B.jD(this._messageElement),B.WU(this._listElement,this._status.element),this._show();break;case 5:B.jD(this._messageElement),B.WU(this._listElement,this._status.element),this._details.show(),this._show()}}_show(){this._status.show(),this._contentWidget.show(),this._layout(this._persistedSize.restore()),this._ctxSuggestWidgetVisible.set(!0),this._showTimeout.cancelAndSet((()=>{this.element.domNode.classList.add("visible"),this._onDidShow.fire(this)}),100)}showTriggered(e,t){0===this._state&&(this._contentWidget.setPosition(this.editor.getPosition()),this._isAuto=!!e,this._isAuto||(this._loadingTimeout=(0,V.EQ)((()=>this._setState(1)),t)))}showSuggestions(e,t,i,s,n){if(this._contentWidget.setPosition(this.editor.getPosition()),this._loadingTimeout?.dispose(),this._currentSuggestionDetails?.cancel(),this._currentSuggestionDetails=void 0,this._completionModel!==e&&(this._completionModel=e),i&&2!==this._state&&0!==this._state)return void this._setState(4);const r=this._completionModel.items.length,o=0===r;if(this._ctxSuggestWidgetMultipleSuggestions.set(r>1),o)return this._setState(s?0:2),void(this._completionModel=void 0);this._focusedItem=void 0,this._onDidFocus.pause(),this._onDidSelect.pause();try{this._list.splice(0,this._list.length,this._completionModel.items),this._setState(i?4:3),this._list.reveal(t,0),this._list.setFocus(n?[]:[t])}finally{this._onDidFocus.resume(),this._onDidSelect.resume()}this._pendingLayout.value=B.Oq(B.zk(this.element.domNode),(()=>{this._pendingLayout.clear(),this._layout(this.element.size),this._details.widget.domNode.classList.remove("focused")}))}focusSelected(){this._list.length>0&&this._list.setFocus([0])}selectNextPage(){switch(this._state){case 0:return!1;case 5:return this._details.widget.pageDown(),!0;case 1:return!this._isAuto;default:return this._list.focusNextPage(),!0}}selectNext(){switch(this._state){case 0:return!1;case 1:return!this._isAuto;default:return this._list.focusNext(1,!0),!0}}selectLast(){switch(this._state){case 0:return!1;case 5:return this._details.widget.scrollBottom(),!0;case 1:return!this._isAuto;default:return this._list.focusLast(),!0}}selectPreviousPage(){switch(this._state){case 0:return!1;case 5:return this._details.widget.pageUp(),!0;case 1:return!this._isAuto;default:return this._list.focusPreviousPage(),!0}}selectPrevious(){switch(this._state){case 0:return!1;case 1:return!this._isAuto;default:return this._list.focusPrevious(1,!0),!1}}selectFirst(){switch(this._state){case 0:return!1;case 5:return this._details.widget.scrollTop(),!0;case 1:return!this._isAuto;default:return this._list.focusFirst(),!0}}getFocusedItem(){if(0!==this._state&&2!==this._state&&1!==this._state&&this._completionModel&&this._list.getFocus().length>0)return{item:this._list.getFocusedElements()[0],index:this._list.getFocus()[0],model:this._completionModel}}toggleDetailsFocus(){5===this._state?(this._setState(3),this._details.widget.domNode.classList.remove("focused")):3===this._state&&this._isDetailsVisible()&&(this._setState(5),this._details.widget.domNode.classList.add("focused"))}toggleDetails(){this._isDetailsVisible()?(this._pendingShowDetails.clear(),this._ctxSuggestWidgetDetailsVisible.set(!1),this._setDetailsVisible(!1),this._details.hide(),this.element.domNode.classList.remove("shows-details")):!he(this._list.getFocusedElements()[0])&&!this._explainMode||3!==this._state&&5!==this._state&&4!==this._state||(this._ctxSuggestWidgetDetailsVisible.set(!0),this._setDetailsVisible(!0),this.showDetails(!1))}showDetails(e){this._pendingShowDetails.value=B.Oq(B.zk(this.element.domNode),(()=>{this._pendingShowDetails.clear(),this._details.show(),e?this._details.widget.renderLoading():this._details.widget.renderItem(this._list.getFocusedElements()[0],this._explainMode),this._details.widget.isEmpty?this._details.hide():(this._positionDetails(),this.element.domNode.classList.add("shows-details")),this.editor.focus()}))}toggleExplainMode(){this._list.getFocusedElements()[0]&&(this._explainMode=!this._explainMode,this._isDetailsVisible()?this.showDetails(!1):this.toggleDetails())}resetPersistedSize(){this._persistedSize.reset()}hideWidget(){this._pendingLayout.clear(),this._pendingShowDetails.clear(),this._loadingTimeout?.dispose(),this._setState(0),this._onDidHide.fire(this),this.element.clearSashHoverState();const e=this._persistedSize.restore(),t=Math.ceil(4.3*this.getLayoutInfo().itemHeight);e&&e.height<t&&this._persistedSize.store(e.with(void 0,t))}isFrozen(){return 4===this._state}_afterRender(e){null!==e?2!==this._state&&1!==this._state&&(this._isDetailsVisible()&&!this._details.widget.isEmpty&&this._details.show(),this._positionDetails()):this._isDetailsVisible()&&this._details.hide()}_layout(e){if(!this.editor.hasModel())return;if(!this.editor.getDomNode())return;const t=B.tG(this.element.domNode.ownerDocument.body),i=this.getLayoutInfo();e||(e=i.defaultSize);let s=e.height,n=e.width;if(this._status.element.style.height=`${i.itemHeight}px`,2===this._state||1===this._state)s=i.itemHeight+i.borderHeight,n=i.defaultSize.width/2,this.element.enableSashes(!1,!1,!1,!1),this.element.minSize=this.element.maxSize=new B.fg(n,s),this._contentWidget.setPreference(2);else{const r=t.width-i.borderHeight-2*i.horizontalPadding;n>r&&(n=r);const o=this._completionModel?this._completionModel.stats.pLabelLen*i.typicalHalfwidthCharacterWidth:n,a=i.statusBarHeight+this._list.contentHeight+i.borderHeight,c=i.itemHeight+i.statusBarHeight,l=B.BK(this.editor.getDomNode()),h=this.editor.getScrolledVisiblePosition(this.editor.getPosition()),d=l.top+h.top+h.height,u=Math.min(t.height-d-i.verticalPadding,a),g=l.top+h.top-i.verticalPadding,p=Math.min(g,a);let m=Math.min(Math.max(p,u)+i.borderHeight,a);s===this._cappedHeight?.capped&&(s=this._cappedHeight.wanted),s<c&&(s=c),s>m&&(s=m);const f=150;s>u||this._forceRenderingAbove&&g>f?(this._contentWidget.setPreference(1),this.element.enableSashes(!0,!0,!1,!1),m=p):(this._contentWidget.setPreference(2),this.element.enableSashes(!1,!0,!0,!1),m=u),this.element.preferredSize=new B.fg(o,i.defaultSize.height),this.element.maxSize=new B.fg(r,m),this.element.minSize=new B.fg(220,c),this._cappedHeight=s===a?{wanted:this._cappedHeight?.wanted??e.height,capped:s}:void 0}this._resize(n,s)}_resize(e,t){const{width:i,height:s}=this.element.maxSize;e=Math.min(i,e),t=Math.min(s,t);const{statusBarHeight:n}=this.getLayoutInfo();this._list.layout(t-n,e),this._listElement.style.height=t-n+"px",this.element.layout(t,e),this._contentWidget.layout(),this._positionDetails()}_positionDetails(){this._isDetailsVisible()&&this._details.placeAtAnchor(this.element.domNode,2===this._contentWidget.getPosition()?.preference[0])}getLayoutInfo(){const e=this.editor.getOption(50),t=(0,z.qE)(this.editor.getOption(121)||e.lineHeight,8,1e3),i=this.editor.getOption(119).showStatusBar&&2!==this._state&&1!==this._state?t:0,s=this._details.widget.borderWidth,n=2*s;return{itemHeight:t,statusBarHeight:i,borderWidth:s,borderHeight:n,typicalHalfwidthCharacterWidth:e.typicalHalfwidthCharacterWidth,verticalPadding:22,horizontalPadding:14,defaultSize:new B.fg(430,i+12*t+n)}}_isDetailsVisible(){return this._storageService.getBoolean("expandSuggestionDocs",0,!1)}_setDetailsVisible(e){this._storageService.store("expandSuggestionDocs",e,0,0)}forceRenderingAbove(){this._forceRenderingAbove||(this._forceRenderingAbove=!0,this._layout(this._persistedSize.restore()))}stopForceRenderingAbove(){this._forceRenderingAbove=!1}};Me=xe=Ae([Ne(1,Z.CS),Ne(2,y.fN),Ne(3,te.Gy),Ne(4,A._Y)],Me);class Pe{constructor(e,t){this._widget=e,this._editor=t,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._preferenceLocked=!1,this._added=!1,this._hidden=!1}dispose(){this._added&&(this._added=!1,this._editor.removeContentWidget(this))}getId(){return"editor.widget.suggestWidget"}getDomNode(){return this._widget.element.domNode}show(){this._hidden=!1,this._added||(this._added=!0,this._editor.addContentWidget(this))}hide(){this._hidden||(this._hidden=!0,this.layout())}layout(){this._editor.layoutContentWidget(this)}getPosition(){return!this._hidden&&this._position&&this._preference?{position:this._position,preference:[this._preference]}:null}beforeRender(){const{height:e,width:t}=this._widget.element.size,{borderWidth:i,horizontalPadding:s}=this._widget.getLayoutInfo();return new B.fg(t+2*i+s,e+2*i)}afterRender(e){this._widget._afterRender(e)}setPreference(e){this._preferenceLocked||(this._preference=e)}lockPreference(){this._preferenceLocked=!0}unlockPreference(){this._preferenceLocked=!1}setPosition(e){this._position=e}}var Fe,Ue=i(90651),He=i(89403),Be=i(85600),We=i(87289),Ve=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},ze=function(e,t){return function(i,s){t(i,s,e)}};class Ge{constructor(e,t){this._model=e,this._position=t,this._decorationOptions=We.kI.register({description:"suggest-line-suffix",stickiness:1});if(e.getLineMaxColumn(t.lineNumber)!==t.column){const i=e.getOffsetAt(t),s=e.getPositionAt(i+1);e.changeDecorations((e=>{this._marker&&e.removeDecoration(this._marker),this._marker=e.addDecoration(v.Q.fromPositions(t,s),this._decorationOptions)}))}}dispose(){this._marker&&!this._model.isDisposed()&&this._model.changeDecorations((e=>{e.removeDecoration(this._marker),this._marker=void 0}))}delta(e){if(this._model.isDisposed()||this._position.lineNumber!==e.lineNumber)return 0;if(this._marker){const t=this._model.getDecorationRange(this._marker);return this._model.getOffsetAt(t.getStartPosition())-this._model.getOffsetAt(e)}return this._model.getLineMaxColumn(e.lineNumber)-e.column}}let je=class{static{Fe=this}static{this.ID="editor.contrib.suggestController"}static get(e){return e.getContribution(Fe.ID)}constructor(e,t,i,s,n,r,o){this._memoryService=t,this._commandService=i,this._contextKeyService=s,this._instantiationService=n,this._logService=r,this._telemetryService=o,this._lineSuffix=new h.HE,this._toDispose=new h.Cm,this._selectors=new Ke((e=>e.priority)),this._onWillInsertSuggestItem=new c.vl,this.onWillInsertSuggestItem=this._onWillInsertSuggestItem.event,this.editor=e,this.model=n.createInstance(U.Y,this.editor),this._selectors.register({priority:0,select:(e,t,i)=>this._memoryService.select(e,t,i)});const a=I.ob.InsertMode.bindTo(s);a.set(e.getOption(119).insertMode),this._toDispose.add(this.model.onDidTrigger((()=>a.set(e.getOption(119).insertMode)))),this.widget=this._toDispose.add(new B.Ij((0,B.zk)(e.getDomNode()),(()=>{const e=this._instantiationService.createInstance(Me,this.editor);this._toDispose.add(e),this._toDispose.add(e.onDidSelect((e=>this._insertSuggestion(e,0)),this));const t=new F(this.editor,e,this.model,(e=>this._insertSuggestion(e,2)));this._toDispose.add(t);const i=I.ob.MakesTextEdit.bindTo(this._contextKeyService),s=I.ob.HasInsertAndReplaceRange.bindTo(this._contextKeyService),n=I.ob.CanResolve.bindTo(this._contextKeyService);return this._toDispose.add((0,h.s)((()=>{i.reset(),s.reset(),n.reset()}))),this._toDispose.add(e.onDidFocus((({item:e})=>{const t=this.editor.getPosition(),r=e.editStart.column,o=t.column;let a=!0;if("smart"===this.editor.getOption(1)&&2===this.model.state&&!e.completion.additionalTextEdits&&!(4&e.completion.insertTextRules)&&o-r===e.completion.insertText.length){a=this.editor.getModel().getValueInRange({startLineNumber:t.lineNumber,startColumn:r,endLineNumber:t.lineNumber,endColumn:o})!==e.completion.insertText}i.set(a),s.set(!_.y.equals(e.editInsertEnd,e.editReplaceEnd)),n.set(Boolean(e.provider.resolveCompletionItem)||Boolean(e.completion.documentation)||e.completion.detail!==e.completion.label)}))),this._toDispose.add(e.onDetailsKeyDown((e=>{e.toKeyCodeChord().equals(new l.dG(!0,!1,!1,!1,33))||d.zx&&e.toKeyCodeChord().equals(new l.dG(!1,!1,!1,!0,33))?e.stopPropagation():e.toKeyCodeChord().isModifierKey()||this.editor.focus()}))),e}))),this._overtypingCapturer=this._toDispose.add(new B.Ij((0,B.zk)(e.getDomNode()),(()=>this._toDispose.add(new H(this.editor,this.model))))),this._alternatives=this._toDispose.add(new B.Ij((0,B.zk)(e.getDomNode()),(()=>this._toDispose.add(new M(this.editor,this._contextKeyService))))),this._toDispose.add(n.createInstance(L,e)),this._toDispose.add(this.model.onDidTrigger((e=>{this.widget.value.showTriggered(e.auto,e.shy?250:50),this._lineSuffix.value=new Ge(this.editor.getModel(),e.position)}))),this._toDispose.add(this.model.onDidSuggest((e=>{if(e.triggerOptions.shy)return;let t=-1;for(const s of this._selectors.itemsOrderedByPriorityDesc)if(t=s.select(this.editor.getModel(),this.editor.getPosition(),e.completionModel.items),-1!==t)break;if(-1===t&&(t=0),0===this.model.state)return;let i=!1;if(e.triggerOptions.auto){const t=this.editor.getOption(119);"never"===t.selectionMode||"always"===t.selectionMode?i="never"===t.selectionMode:"whenTriggerCharacter"===t.selectionMode?i=1!==e.triggerOptions.triggerKind:"whenQuickSuggestion"===t.selectionMode&&(i=1===e.triggerOptions.triggerKind&&!e.triggerOptions.refilter)}this.widget.value.showSuggestions(e.completionModel,t,e.isFrozen,e.triggerOptions.auto,i)}))),this._toDispose.add(this.model.onDidCancel((e=>{e.retrigger||this.widget.value.hideWidget()}))),this._toDispose.add(this.editor.onDidBlurEditorWidget((()=>{this.model.cancel(),this.model.clear()})));const u=I.ob.AcceptSuggestionsOnEnter.bindTo(s),g=()=>{const e=this.editor.getOption(1);u.set("on"===e||"smart"===e)};this._toDispose.add(this.editor.onDidChangeConfiguration((()=>g()))),g()}dispose(){this._alternatives.dispose(),this._toDispose.dispose(),this.widget.dispose(),this.model.dispose(),this._lineSuffix.dispose(),this._onWillInsertSuggestItem.dispose()}_insertSuggestion(e,t){if(!e||!e.item)return this._alternatives.value.reset(),this.model.cancel(),void this.model.clear();if(!this.editor.hasModel())return;const i=E.O.get(this.editor);if(!i)return;this._onWillInsertSuggestItem.fire({item:e.item});const s=this.editor.getModel(),n=s.getAlternativeVersionId(),{item:r}=e,c=[],l=new o.Qi;1&t||this.editor.pushUndoStop();const h=this.getOverwriteInfo(r,Boolean(8&t));this._memoryService.memorize(s,this.editor.getPosition(),r);const d=r.isResolved;let g=-1,m=-1;if(Array.isArray(r.completion.additionalTextEdits)){this.model.cancel();const e=p.D.capture(this.editor);this.editor.executeEdits("suggestController.additionalTextEdits.sync",r.completion.additionalTextEdits.map((e=>{let t=v.Q.lift(e.range);if(t.startLineNumber===r.position.lineNumber&&t.startColumn>r.position.column){const e=this.editor.getPosition().column-r.position.column,i=e,s=v.Q.spansMultipleLines(t)?0:e;t=new v.Q(t.startLineNumber,t.startColumn+i,t.endLineNumber,t.endColumn+s)}return f.k.replaceMove(t,e.text)}))),e.restoreRelativeVerticalPositionOfCursor(this.editor)}else if(!d){const e=new u.W;let i;const n=s.onDidChangeContent((e=>{if(e.isFlush)return l.cancel(),void n.dispose();for(const t of e.changes){const e=v.Q.getEndPosition(t.range);i&&!_.y.isBefore(e,i)||(i=e)}})),o=t;t|=2;let a=!1;const h=this.editor.onWillType((()=>{h.dispose(),a=!0,2&o||this.editor.pushUndoStop()}));c.push(r.resolve(l.token).then((()=>{if(!r.completion.additionalTextEdits||l.token.isCancellationRequested)return;if(i&&r.completion.additionalTextEdits.some((e=>_.y.isBefore(i,v.Q.getStartPosition(e.range)))))return!1;a&&this.editor.pushUndoStop();const e=p.D.capture(this.editor);return this.editor.executeEdits("suggestController.additionalTextEdits.async",r.completion.additionalTextEdits.map((e=>f.k.replaceMove(v.Q.lift(e.range),e.text)))),e.restoreRelativeVerticalPositionOfCursor(this.editor),!a&&2&o||this.editor.pushUndoStop(),!0})).then((t=>{this._logService.trace("[suggest] async resolving of edits DONE (ms, applied?)",e.elapsed(),t),m=!0===t?1:!1===t?0:-2})).finally((()=>{n.dispose(),h.dispose()})))}let{insertText:C}=r.completion;if(4&r.completion.insertTextRules||(C=b.fr.escape(C)),this.model.cancel(),i.insert(C,{overwriteBefore:h.overwriteBefore,overwriteAfter:h.overwriteAfter,undoStopBefore:!1,undoStopAfter:!1,adjustWhitespace:!(1&r.completion.insertTextRules),clipboardText:e.model.clipboardText,overtypingCapturer:this._overtypingCapturer.value}),2&t||this.editor.pushUndoStop(),r.completion.command)if(r.completion.command.id===Ye.id)this.model.trigger({auto:!0,retrigger:!0});else{const e=new u.W;c.push(this._commandService.executeCommand(r.completion.command.id,...r.completion.command.arguments?[...r.completion.command.arguments]:[]).catch((e=>{r.completion.extensionId?(0,a.M_)(e):(0,a.dz)(e)})).finally((()=>{g=e.elapsed()})))}4&t&&this._alternatives.value.set(e,(e=>{for(l.cancel();s.canUndo();){n!==s.getAlternativeVersionId()&&s.undo(),this._insertSuggestion(e,3|(8&t?8:0));break}})),this._alertCompletionItem(r),Promise.all(c).finally((()=>{this._reportSuggestionAcceptedTelemetry(r,s,d,g,m,e.index,e.model.items),this.model.clear(),l.dispose()}))}_reportSuggestionAcceptedTelemetry(e,t,i,s,n,r,o){if(0===Math.floor(100*Math.random()))return;const a=new Map;for(let h=0;h<Math.min(30,o.length);h++){const e=o[h].textLabel;a.has(e)?a.get(e).push(h):a.set(e,[h])}const c=a.get(e.textLabel),l=c&&c.length>1?c[0]:-1;this._telemetryService.publicLog2("suggest.acceptedSuggestion",{extensionId:e.extensionId?.value??"unknown",providerId:e.provider._debugDisplayName??"unknown",kind:e.completion.kind,basenameHash:(0,Be.tW)((0,He.P8)(t.uri)).toString(16),languageId:t.getLanguageId(),fileExtension:(0,He.LC)(t.uri),resolveInfo:e.provider.resolveCompletionItem?i?1:0:-1,resolveDuration:e.resolveDuration,commandDuration:s,additionalEditsAsync:n,index:r,firstIndex:l})}getOverwriteInfo(e,t){(0,g.j)(this.editor.hasModel());let i="replace"===this.editor.getOption(119).insertMode;t&&(i=!i);const s=e.position.column-e.editStart.column,n=(i?e.editReplaceEnd.column:e.editInsertEnd.column)-e.position.column;return{overwriteBefore:s+(this.editor.getPosition().column-e.position.column),overwriteAfter:n+(this._lineSuffix.value?this._lineSuffix.value.delta(this.editor.getPosition()):0)}}_alertCompletionItem(e){if((0,r.EI)(e.completion.additionalTextEdits)){const t=x.kg("aria.alert.snippet","Accepting '{0}' made {1} additional edits",e.textLabel,e.completion.additionalTextEdits.length);(0,n.xE)(t)}}triggerSuggest(e,t,i){this.editor.hasModel()&&(this.model.trigger({auto:t??!1,completionOptions:{providerFilter:e,kindFilter:i?new Set:void 0}}),this.editor.revealPosition(this.editor.getPosition(),0),this.editor.focus())}triggerSuggestAndAcceptBest(e){if(!this.editor.hasModel())return;const t=this.editor.getPosition(),i=()=>{t.equals(this.editor.getPosition())&&this._commandService.executeCommand(e.fallback)},s=e=>{if(4&e.completion.insertTextRules||e.completion.additionalTextEdits)return!0;const t=this.editor.getPosition(),i=e.editStart.column,s=t.column;if(s-i!==e.completion.insertText.length)return!0;return this.editor.getModel().getValueInRange({startLineNumber:t.lineNumber,startColumn:i,endLineNumber:t.lineNumber,endColumn:s})!==e.completion.insertText};c.Jh.once(this.model.onDidTrigger)((e=>{const t=[];c.Jh.any(this.model.onDidTrigger,this.model.onDidCancel)((()=>{(0,h.AS)(t),i()}),void 0,t),this.model.onDidSuggest((({completionModel:e})=>{if((0,h.AS)(t),0===e.items.length)return void i();const n=this._memoryService.select(this.editor.getModel(),this.editor.getPosition(),e.items),r=e.items[n];s(r)?(this.editor.pushUndoStop(),this._insertSuggestion({index:n,item:r,model:e},7)):i()}),void 0,t)})),this.model.trigger({auto:!1,shy:!0}),this.editor.revealPosition(t,0),this.editor.focus()}acceptSelectedSuggestion(e,t){const i=this.widget.value.getFocusedItem();let s=0;e&&(s|=4),t&&(s|=8),this._insertSuggestion(i,s)}acceptNextSuggestion(){this._alternatives.value.next()}acceptPrevSuggestion(){this._alternatives.value.prev()}cancelSuggestWidget(){this.model.cancel(),this.model.clear(),this.widget.value.hideWidget()}focusSuggestion(){this.widget.value.focusSelected()}selectNextSuggestion(){this.widget.value.selectNext()}selectNextPageSuggestion(){this.widget.value.selectNextPage()}selectLastSuggestion(){this.widget.value.selectLast()}selectPrevSuggestion(){this.widget.value.selectPrevious()}selectPrevPageSuggestion(){this.widget.value.selectPreviousPage()}selectFirstSuggestion(){this.widget.value.selectFirst()}toggleSuggestionDetails(){this.widget.value.toggleDetails()}toggleExplainMode(){this.widget.value.toggleExplainMode()}toggleSuggestionFocus(){this.widget.value.toggleDetailsFocus()}resetWidgetSize(){this.widget.value.resetPersistedSize()}forceRenderingAbove(){this.widget.value.forceRenderingAbove()}stopForceRenderingAbove(){this.widget.isInitialized&&this.widget.value.stopForceRenderingAbove()}registerSelector(e){return this._selectors.register(e)}};je=Fe=Ve([ze(1,S.GS),ze(2,k.d),ze(3,y.fN),ze(4,A._Y),ze(5,N.rr),ze(6,Ue.k)],je);class Ke{constructor(e){this.prioritySelector=e,this._items=new Array}register(e){if(-1!==this._items.indexOf(e))throw new Error("Value is already registered");return this._items.push(e),this._items.sort(((e,t)=>this.prioritySelector(t)-this.prioritySelector(e))),{dispose:()=>{const t=this._items.indexOf(e);t>=0&&this._items.splice(t,1)}}}get itemsOrderedByPriorityDesc(){return this._items}}class Ye extends m.ks{static{this.id="editor.action.triggerSuggest"}constructor(){super({id:Ye.id,label:x.kg("suggest.trigger.label","Trigger Suggest"),alias:"Trigger Suggest",precondition:y.M$.and(C.R.writable,C.R.hasCompletionItemProvider,I.ob.Visible.toNegated()),kbOpts:{kbExpr:C.R.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[521,2087]},weight:100}})}run(e,t,i){const s=je.get(t);if(!s)return;let n;i&&"object"===typeof i&&!0===i.auto&&(n=!0),s.triggerSuggest(void 0,n,void 0)}}(0,m.HW)(je.ID,je,2),(0,m.Fl)(Ye);const qe=190,$e=m.DX.bindToContribution(je.get);(0,m.E_)(new $e({id:"acceptSelectedSuggestion",precondition:y.M$.and(I.ob.Visible,I.ob.HasFocusedSuggestion),handler(e){e.acceptSelectedSuggestion(!0,!1)},kbOpts:[{primary:2,kbExpr:y.M$.and(I.ob.Visible,C.R.textInputFocus),weight:qe},{primary:3,kbExpr:y.M$.and(I.ob.Visible,C.R.textInputFocus,I.ob.AcceptSuggestionsOnEnter,I.ob.MakesTextEdit),weight:qe}],menuOpts:[{menuId:I.dt,title:x.kg("accept.insert","Insert"),group:"left",order:1,when:I.ob.HasInsertAndReplaceRange.toNegated()},{menuId:I.dt,title:x.kg("accept.insert","Insert"),group:"left",order:1,when:y.M$.and(I.ob.HasInsertAndReplaceRange,I.ob.InsertMode.isEqualTo("insert"))},{menuId:I.dt,title:x.kg("accept.replace","Replace"),group:"left",order:1,when:y.M$.and(I.ob.HasInsertAndReplaceRange,I.ob.InsertMode.isEqualTo("replace"))}]})),(0,m.E_)(new $e({id:"acceptAlternativeSelectedSuggestion",precondition:y.M$.and(I.ob.Visible,C.R.textInputFocus,I.ob.HasFocusedSuggestion),kbOpts:{weight:qe,kbExpr:C.R.textInputFocus,primary:1027,secondary:[1026]},handler(e){e.acceptSelectedSuggestion(!1,!0)},menuOpts:[{menuId:I.dt,group:"left",order:2,when:y.M$.and(I.ob.HasInsertAndReplaceRange,I.ob.InsertMode.isEqualTo("insert")),title:x.kg("accept.replace","Replace")},{menuId:I.dt,group:"left",order:2,when:y.M$.and(I.ob.HasInsertAndReplaceRange,I.ob.InsertMode.isEqualTo("replace")),title:x.kg("accept.insert","Insert")}]})),k.w.registerCommandAlias("acceptSelectedSuggestionOnEnter","acceptSelectedSuggestion"),(0,m.E_)(new $e({id:"hideSuggestWidget",precondition:I.ob.Visible,handler:e=>e.cancelSuggestWidget(),kbOpts:{weight:qe,kbExpr:C.R.textInputFocus,primary:9,secondary:[1033]}})),(0,m.E_)(new $e({id:"selectNextSuggestion",precondition:y.M$.and(I.ob.Visible,y.M$.or(I.ob.MultipleSuggestions,I.ob.HasFocusedSuggestion.negate())),handler:e=>e.selectNextSuggestion(),kbOpts:{weight:qe,kbExpr:C.R.textInputFocus,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})),(0,m.E_)(new $e({id:"selectNextPageSuggestion",precondition:y.M$.and(I.ob.Visible,y.M$.or(I.ob.MultipleSuggestions,I.ob.HasFocusedSuggestion.negate())),handler:e=>e.selectNextPageSuggestion(),kbOpts:{weight:qe,kbExpr:C.R.textInputFocus,primary:12,secondary:[2060]}})),(0,m.E_)(new $e({id:"selectLastSuggestion",precondition:y.M$.and(I.ob.Visible,y.M$.or(I.ob.MultipleSuggestions,I.ob.HasFocusedSuggestion.negate())),handler:e=>e.selectLastSuggestion()})),(0,m.E_)(new $e({id:"selectPrevSuggestion",precondition:y.M$.and(I.ob.Visible,y.M$.or(I.ob.MultipleSuggestions,I.ob.HasFocusedSuggestion.negate())),handler:e=>e.selectPrevSuggestion(),kbOpts:{weight:qe,kbExpr:C.R.textInputFocus,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})),(0,m.E_)(new $e({id:"selectPrevPageSuggestion",precondition:y.M$.and(I.ob.Visible,y.M$.or(I.ob.MultipleSuggestions,I.ob.HasFocusedSuggestion.negate())),handler:e=>e.selectPrevPageSuggestion(),kbOpts:{weight:qe,kbExpr:C.R.textInputFocus,primary:11,secondary:[2059]}})),(0,m.E_)(new $e({id:"selectFirstSuggestion",precondition:y.M$.and(I.ob.Visible,y.M$.or(I.ob.MultipleSuggestions,I.ob.HasFocusedSuggestion.negate())),handler:e=>e.selectFirstSuggestion()})),(0,m.E_)(new $e({id:"focusSuggestion",precondition:y.M$.and(I.ob.Visible,I.ob.HasFocusedSuggestion.negate()),handler:e=>e.focusSuggestion(),kbOpts:{weight:qe,kbExpr:C.R.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[2087]}}})),(0,m.E_)(new $e({id:"focusAndAcceptSuggestion",precondition:y.M$.and(I.ob.Visible,I.ob.HasFocusedSuggestion.negate()),handler:e=>{e.focusSuggestion(),e.acceptSelectedSuggestion(!0,!1)}})),(0,m.E_)(new $e({id:"toggleSuggestionDetails",precondition:y.M$.and(I.ob.Visible,I.ob.HasFocusedSuggestion),handler:e=>e.toggleSuggestionDetails(),kbOpts:{weight:qe,kbExpr:C.R.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[2087]}},menuOpts:[{menuId:I.dt,group:"right",order:1,when:y.M$.and(I.ob.DetailsVisible,I.ob.CanResolve),title:x.kg("detail.more","Show Less")},{menuId:I.dt,group:"right",order:1,when:y.M$.and(I.ob.DetailsVisible.toNegated(),I.ob.CanResolve),title:x.kg("detail.less","Show More")}]})),(0,m.E_)(new $e({id:"toggleExplainMode",precondition:I.ob.Visible,handler:e=>e.toggleExplainMode(),kbOpts:{weight:100,primary:2138}})),(0,m.E_)(new $e({id:"toggleSuggestionFocus",precondition:I.ob.Visible,handler:e=>e.toggleSuggestionFocus(),kbOpts:{weight:qe,kbExpr:C.R.textInputFocus,primary:2570,mac:{primary:778}}})),(0,m.E_)(new $e({id:"insertBestCompletion",precondition:y.M$.and(C.R.textInputFocus,y.M$.equals("config.editor.tabCompletion","on"),L.AtEnd,I.ob.Visible.toNegated(),M.OtherSuggestions.toNegated(),E.O.InSnippetMode.toNegated()),handler:(e,t)=>{e.triggerSuggestAndAcceptBest((0,g.Gv)(t)?{fallback:"tab",...t}:{fallback:"tab"})},kbOpts:{weight:qe,primary:2}})),(0,m.E_)(new $e({id:"insertNextSuggestion",precondition:y.M$.and(C.R.textInputFocus,y.M$.equals("config.editor.tabCompletion","on"),M.OtherSuggestions,I.ob.Visible.toNegated(),E.O.InSnippetMode.toNegated()),handler:e=>e.acceptNextSuggestion(),kbOpts:{weight:qe,kbExpr:C.R.textInputFocus,primary:2}})),(0,m.E_)(new $e({id:"insertPrevSuggestion",precondition:y.M$.and(C.R.textInputFocus,y.M$.equals("config.editor.tabCompletion","on"),M.OtherSuggestions,I.ob.Visible.toNegated(),E.O.InSnippetMode.toNegated()),handler:e=>e.acceptPrevSuggestion(),kbOpts:{weight:qe,kbExpr:C.R.textInputFocus,primary:1026}})),(0,m.Fl)(class extends m.ks{constructor(){super({id:"editor.action.resetSuggestSize",label:x.kg("suggest.reset.label","Reset Suggest Widget Size"),alias:"Reset Suggest Widget Size",precondition:void 0})}run(e,t){je.get(t)?.resetWidgetSize()}})},10846:(e,t,i)=>{"use strict";var s=i(18447),n=i(26690),r=i(42522),o=i(5662),a=i(80301),c=i(36677),l=i(72466),h=i(56942),d=i(51173),u=i(48116),g=i(88415),p=i(96299),m=i(14055),f=i(54770),_=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},v=function(e,t){return function(i,s){t(i,s,e)}};class C{constructor(e,t,i,s,n,r){this.range=e,this.insertText=t,this.filterText=i,this.additionalTextEdits=s,this.command=n,this.completion=r}}let E=class extends o.mp{constructor(e,t,i,s,n,r){super(n.disposable),this.model=e,this.line=t,this.word=i,this.completionModel=s,this._suggestMemoryService=r}canBeReused(e,t,i){return this.model===e&&this.line===t&&this.word.word.length>0&&this.word.startColumn===i.startColumn&&this.word.endColumn<i.endColumn&&0===this.completionModel.getIncompleteProvider().size}get items(){const e=[],{items:t}=this.completionModel,i=this._suggestMemoryService.select(this.model,{lineNumber:this.line,column:this.word.endColumn+this.completionModel.lineContext.characterCountDelta},t),o=r.f.slice(t,i),a=r.f.slice(t,0,i);let l=5;for(const h of r.f.concat(o,a)){if(h.score===n.ne.Default)continue;const t=new c.Q(h.editStart.lineNumber,h.editStart.column,h.editInsertEnd.lineNumber,h.editInsertEnd.column+this.completionModel.lineContext.characterCountDelta),i=h.completion.insertTextRules&&4&h.completion.insertTextRules?{snippet:h.completion.insertText}:h.completion.insertText;e.push(new C(t,i,h.filterTextLow??h.labelLow,h.completion.additionalTextEdits,h.completion.command,h)),l-- >=0&&h.resolve(s.XO.None)}return e}};E=_([v(5,g.GS)],E);let b=class extends o.jG{constructor(e,t,i,s){super(),this._languageFeatureService=e,this._clipboardService=t,this._suggestMemoryService=i,this._editorService=s,this._store.add(e.inlineCompletionsProvider.register("*",this))}async provideInlineCompletions(e,t,i,s){if(i.selectedSuggestionInfo)return;let n;for(const c of this._editorService.listCodeEditors())if(c.getModel()===e){n=c;break}if(!n)return;const r=n.getOption(90);if(u.r3.isAllOff(r))return;e.tokenization.tokenizeIfCheap(t.lineNumber);const o=e.tokenization.getLineTokens(t.lineNumber),a=o.getStandardTokenType(o.findTokenIndexAtOffset(Math.max(t.column-1-1,0)));if("inline"!==u.r3.valueFor(r,a))return;let l,h,g=e.getWordAtPosition(t);if(g?.word||(l=this._getTriggerCharacterInfo(e,t)),!g?.word&&!l)return;if(g||(g=e.getWordUntilPosition(t)),g.endColumn!==t.column)return;const f=e.getValueInRange(new c.Q(t.lineNumber,1,t.lineNumber,t.column));if(!l&&this._lastResult?.canBeReused(e,t.lineNumber,g)){const e=new d.O(f,t.column-this._lastResult.word.endColumn);this._lastResult.completionModel.lineContext=e,this._lastResult.acquire(),h=this._lastResult}else{const i=await(0,u.aR)(this._languageFeatureService.completionProvider,e,t,new u.l1(void 0,p.Y.createSuggestFilter(n).itemKind,l?.providers),l&&{triggerKind:1,triggerCharacter:l.ch},s);let r;i.needsClipboard&&(r=await this._clipboardService.readText());const o=new d.C(i.items,t.column,new d.O(f,0),m.S.None,n.getOption(119),n.getOption(113),{boostFullMatch:!1,firstMatchCanBeWeak:!1},r);h=new E(e,t.lineNumber,g,o,i,this._suggestMemoryService)}return this._lastResult=h,h}handleItemDidShow(e,t){t.completion.resolve(s.XO.None)}freeInlineCompletions(e){e.release()}_getTriggerCharacterInfo(e,t){const i=e.getValueInRange(c.Q.fromPositions({lineNumber:t.lineNumber,column:t.column-1},t)),s=new Set;for(const n of this._languageFeatureService.completionProvider.all(e))n.triggerCharacters?.includes(i)&&s.add(n);if(0!==s.size)return{providers:s,ch:i}}};b=_([v(0,h.ILanguageFeaturesService),v(1,f.h),v(2,g.GS),v(3,a.T)],b),(0,l.x)(b)},88415:(e,t,i)=>{"use strict";i.d(t,{GS:()=>E});var s,n=i(90766),r=i(5662),o=i(74320),a=i(4853),c=i(62083),l=i(84001),h=i(14718),d=i(63591),u=i(9711),g=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},p=function(e,t){return function(i,s){t(i,s,e)}};class m{constructor(e){this.name=e}select(e,t,i){if(0===i.length)return 0;const s=i[0].score[0];for(let n=0;n<i.length;n++){const{score:e,completion:t}=i[n];if(e[0]!==s)break;if(t.preselect)return n}return 0}}class f extends m{constructor(){super("first")}memorize(e,t,i){}toJSON(){}fromJSON(){}}class _ extends m{constructor(){super("recentlyUsed"),this._cache=new o.qK(300,.66),this._seq=0}memorize(e,t,i){const s=`${e.getLanguageId()}/${i.textLabel}`;this._cache.set(s,{touch:this._seq++,type:i.completion.kind,insertText:i.completion.insertText})}select(e,t,i){if(0===i.length)return 0;const s=e.getLineContent(t.lineNumber).substr(t.column-10,t.column-1);if(/\s$/.test(s))return super.select(e,t,i);const n=i[0].score[0];let r=-1,o=-1,a=-1;for(let c=0;c<i.length&&i[c].score[0]===n;c++){const t=`${e.getLanguageId()}/${i[c].textLabel}`,s=this._cache.peek(t);if(s&&s.touch>a&&s.type===i[c].completion.kind&&s.insertText===i[c].completion.insertText&&(a=s.touch,o=c),i[c].completion.preselect&&-1===r)return c}return-1!==o?o:-1!==r?r:0}toJSON(){return this._cache.toJSON()}fromJSON(e){this._cache.clear();for(const[t,i]of e)i.touch=0,i.type="number"===typeof i.type?i.type:c.HC.fromString(i.type),this._cache.set(t,i);this._seq=this._cache.size}}class v extends m{constructor(){super("recentlyUsedByPrefix"),this._trie=a.cB.forStrings(),this._seq=0}memorize(e,t,i){const{word:s}=e.getWordUntilPosition(t),n=`${e.getLanguageId()}/${s}`;this._trie.set(n,{type:i.completion.kind,insertText:i.completion.insertText,touch:this._seq++})}select(e,t,i){const{word:s}=e.getWordUntilPosition(t);if(!s)return super.select(e,t,i);const n=`${e.getLanguageId()}/${s}`;let r=this._trie.get(n);if(r||(r=this._trie.findSubstr(n)),r)for(let o=0;o<i.length;o++){const{kind:e,insertText:t}=i[o].completion;if(e===r.type&&t===r.insertText)return o}return super.select(e,t,i)}toJSON(){const e=[];return this._trie.forEach(((t,i)=>e.push([i,t]))),e.sort(((e,t)=>-(e[1].touch-t[1].touch))).forEach(((e,t)=>e[1].touch=t)),e.slice(0,200)}fromJSON(e){if(this._trie.clear(),e.length>0){this._seq=e[0][1].touch+1;for(const[t,i]of e)i.type="number"===typeof i.type?i.type:c.HC.fromString(i.type),this._trie.set(t,i)}}}let C=class{static{s=this}static{this._strategyCtors=new Map([["recentlyUsedByPrefix",v],["recentlyUsed",_],["first",f]])}static{this._storagePrefix="suggest/memories"}constructor(e,t){this._storageService=e,this._configService=t,this._disposables=new r.Cm,this._persistSoon=new n.uC((()=>this._saveState()),500),this._disposables.add(e.onWillSaveState((e=>{e.reason===u.LP.SHUTDOWN&&this._saveState()})))}dispose(){this._disposables.dispose(),this._persistSoon.dispose()}memorize(e,t,i){this._withStrategy(e,t).memorize(e,t,i),this._persistSoon.schedule()}select(e,t,i){return this._withStrategy(e,t).select(e,t,i)}_withStrategy(e,t){const i=this._configService.getValue("editor.suggestSelection",{overrideIdentifier:e.getLanguageIdAtPosition(t.lineNumber,t.column),resource:e.uri});if(this._strategy?.name!==i){this._saveState();const e=s._strategyCtors.get(i)||f;this._strategy=new e;try{const e=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,t=this._storageService.get(`${s._storagePrefix}/${i}`,e);t&&this._strategy.fromJSON(JSON.parse(t))}catch(n){}}return this._strategy}_saveState(){if(this._strategy){const e=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,t=JSON.stringify(this._strategy);this._storageService.store(`${s._storagePrefix}/${this._strategy.name}`,t,e,1)}}};C=s=g([p(0,u.CS),p(1,l.pG)],C);const E=(0,d.u1)("ISuggestMemories");(0,h.v)(E,C,1)},96299:(e,t,i)=>{"use strict";i.d(t,{Y:()=>k});var s,n=i(90766),r=i(18447),o=i(64383),a=i(41234),c=i(5662),l=i(91508),h=i(75326),d=i(10920),u=i(14055),g=i(54770),p=i(84001),m=i(32848),f=i(18801),_=i(90651),v=i(51173),C=i(48116),E=i(56942),b=i(26690),S=i(631),y=i(62051),w=i(30936),R=i(97035),L=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},T=function(e,t){return function(i,s){t(i,s,e)}};class x{static shouldAutoTrigger(e){if(!e.hasModel())return!1;const t=e.getModel(),i=e.getPosition();t.tokenization.tokenizeIfCheap(i.lineNumber);const s=t.getWordAtPosition(i);return!!s&&((s.endColumn===i.column||s.startColumn+1===i.column)&&!!isNaN(Number(s.word)))}constructor(e,t,i){this.leadingLineContent=e.getLineContent(t.lineNumber).substr(0,t.column-1),this.leadingWord=e.getWordUntilPosition(t),this.lineNumber=t.lineNumber,this.column=t.column,this.triggerOptions=i}}let k=s=class{constructor(e,t,i,s,r,o,l,d,u){this._editor=e,this._editorWorkerService=t,this._clipboardService=i,this._telemetryService=s,this._logService=r,this._contextKeyService=o,this._configurationService=l,this._languageFeaturesService=d,this._envService=u,this._toDispose=new c.Cm,this._triggerCharacterListener=new c.Cm,this._triggerQuickSuggest=new n.pc,this._triggerState=void 0,this._completionDisposables=new c.Cm,this._onDidCancel=new a.vl,this._onDidTrigger=new a.vl,this._onDidSuggest=new a.vl,this.onDidCancel=this._onDidCancel.event,this.onDidTrigger=this._onDidTrigger.event,this.onDidSuggest=this._onDidSuggest.event,this._telemetryGate=0,this._currentSelection=this._editor.getSelection()||new h.L(1,1,1,1),this._toDispose.add(this._editor.onDidChangeModel((()=>{this._updateTriggerCharacters(),this.cancel()}))),this._toDispose.add(this._editor.onDidChangeModelLanguage((()=>{this._updateTriggerCharacters(),this.cancel()}))),this._toDispose.add(this._editor.onDidChangeConfiguration((()=>{this._updateTriggerCharacters()}))),this._toDispose.add(this._languageFeaturesService.completionProvider.onDidChange((()=>{this._updateTriggerCharacters(),this._updateActiveSuggestSession()})));let g=!1;this._toDispose.add(this._editor.onDidCompositionStart((()=>{g=!0}))),this._toDispose.add(this._editor.onDidCompositionEnd((()=>{g=!1,this._onCompositionEnd()}))),this._toDispose.add(this._editor.onDidChangeCursorSelection((e=>{g||this._onCursorChange(e)}))),this._toDispose.add(this._editor.onDidChangeModelContent((()=>{g||void 0===this._triggerState||this._refilterCompletionItems()}))),this._updateTriggerCharacters()}dispose(){(0,c.AS)(this._triggerCharacterListener),(0,c.AS)([this._onDidCancel,this._onDidSuggest,this._onDidTrigger,this._triggerQuickSuggest]),this._toDispose.dispose(),this._completionDisposables.dispose(),this.cancel()}_updateTriggerCharacters(){if(this._triggerCharacterListener.clear(),this._editor.getOption(92)||!this._editor.hasModel()||!this._editor.getOption(122))return;const e=new Map;for(const i of this._languageFeaturesService.completionProvider.all(this._editor.getModel()))for(const t of i.triggerCharacters||[]){let s=e.get(t);if(!s){s=new Set;const i=(0,C.f3)();i&&s.add(i),e.set(t,s)}s.add(i)}const t=t=>{if(!function(e,t){if(!Boolean(t.getContextKeyValue("inlineSuggestionVisible")))return!0;const i=t.getContextKeyValue(y.p.suppressSuggestions.key);return void 0!==i?!i:!e.getOption(62).suppressSuggestions}(this._editor,this._contextKeyService,this._configurationService))return;if(x.shouldAutoTrigger(this._editor))return;if(!t){const e=this._editor.getPosition();t=this._editor.getModel().getLineContent(e.lineNumber).substr(0,e.column-1)}let i="";(0,l.LJ)(t.charCodeAt(t.length-1))?(0,l.pc)(t.charCodeAt(t.length-2))&&(i=t.substr(t.length-2)):i=t.charAt(t.length-1);const s=e.get(i);if(s){const e=new Map;if(this._completionModel)for(const[t,i]of this._completionModel.getItemsByProvider())s.has(t)||e.set(t,i);this.trigger({auto:!0,triggerKind:1,triggerCharacter:i,retrigger:Boolean(this._completionModel),clipboardText:this._completionModel?.clipboardText,completionOptions:{providerFilter:s,providerItemsToReuse:e}})}};this._triggerCharacterListener.add(this._editor.onDidType(t)),this._triggerCharacterListener.add(this._editor.onDidCompositionEnd((()=>t())))}get state(){return this._triggerState?this._triggerState.auto?2:1:0}cancel(e=!1){void 0!==this._triggerState&&(this._triggerQuickSuggest.cancel(),this._requestToken?.cancel(),this._requestToken=void 0,this._triggerState=void 0,this._completionModel=void 0,this._context=void 0,this._onDidCancel.fire({retrigger:e}))}clear(){this._completionDisposables.clear()}_updateActiveSuggestSession(){void 0!==this._triggerState&&(this._editor.hasModel()&&this._languageFeaturesService.completionProvider.has(this._editor.getModel())?this.trigger({auto:this._triggerState.auto,retrigger:!0}):this.cancel())}_onCursorChange(e){if(!this._editor.hasModel())return;const t=this._currentSelection;this._currentSelection=this._editor.getSelection(),!e.selection.isEmpty()||0!==e.reason&&3!==e.reason||"keyboard"!==e.source&&"deleteLeft"!==e.source?this.cancel():void 0===this._triggerState&&0===e.reason?(t.containsRange(this._currentSelection)||t.getEndPosition().isBeforeOrEqual(this._currentSelection.getPosition()))&&this._doTriggerQuickSuggest():void 0!==this._triggerState&&3===e.reason&&this._refilterCompletionItems()}_onCompositionEnd(){void 0===this._triggerState?this._doTriggerQuickSuggest():this._refilterCompletionItems()}_doTriggerQuickSuggest(){C.r3.isAllOff(this._editor.getOption(90))||this._editor.getOption(119).snippetsPreventQuickSuggestions&&w.O.get(this._editor)?.isInSnippet()||(this.cancel(),this._triggerQuickSuggest.cancelAndSet((()=>{if(void 0!==this._triggerState)return;if(!x.shouldAutoTrigger(this._editor))return;if(!this._editor.hasModel()||!this._editor.hasWidgetFocus())return;const e=this._editor.getModel(),t=this._editor.getPosition(),i=this._editor.getOption(90);if(!C.r3.isAllOff(i)){if(!C.r3.isAllOn(i)){e.tokenization.tokenizeIfCheap(t.lineNumber);const s=e.tokenization.getLineTokens(t.lineNumber),n=s.getStandardTokenType(s.findTokenIndexAtOffset(Math.max(t.column-1-1,0)));if("on"!==C.r3.valueFor(i,n))return}(function(e,t){if(!Boolean(t.getContextKeyValue(y.p.inlineSuggestionVisible.key)))return!0;const i=t.getContextKeyValue(y.p.suppressSuggestions.key);return void 0!==i?!i:!e.getOption(62).suppressSuggestions})(this._editor,this._contextKeyService,this._configurationService)&&this._languageFeaturesService.completionProvider.has(e)&&this.trigger({auto:!0})}}),this._editor.getOption(91)))}_refilterCompletionItems(){(0,S.j)(this._editor.hasModel()),(0,S.j)(void 0!==this._triggerState);const e=this._editor.getModel(),t=this._editor.getPosition(),i=new x(e,t,{...this._triggerState,refilter:!0});this._onNewContext(i)}trigger(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=new x(t,this._editor.getPosition(),e);this.cancel(e.retrigger),this._triggerState=e,this._onDidTrigger.fire({auto:e.auto,shy:e.shy??!1,position:this._editor.getPosition()}),this._context=i;let n={triggerKind:e.triggerKind??0};e.triggerCharacter&&(n={triggerKind:1,triggerCharacter:e.triggerCharacter}),this._requestToken=new r.Qi;let a=1;switch(this._editor.getOption(113)){case"top":a=0;break;case"bottom":a=2}const{itemKind:c,showDeprecated:l}=s.createSuggestFilter(this._editor),h=new C.l1(a,e.completionOptions?.kindFilter??c,e.completionOptions?.providerFilter,e.completionOptions?.providerItemsToReuse,l),d=u.S.create(this._editorWorkerService,this._editor),g=(0,C.aR)(this._languageFeaturesService.completionProvider,t,this._editor.getPosition(),h,n,this._requestToken.token);Promise.all([g,d]).then((async([t,i])=>{if(this._requestToken?.dispose(),!this._editor.hasModel())return;let s=e?.clipboardText;if(!s&&t.needsClipboard&&(s=await this._clipboardService.readText()),void 0===this._triggerState)return;const n=this._editor.getModel(),r=new x(n,this._editor.getPosition(),e),o={...b.Nd.default,firstMatchCanBeWeak:!this._editor.getOption(119).matchOnWordStartOnly};if(this._completionModel=new v.C(t.items,this._context.column,{leadingLineContent:r.leadingLineContent,characterCountDelta:r.column-this._context.column},i,this._editor.getOption(119),this._editor.getOption(113),o,s),this._completionDisposables.add(t.disposable),this._onNewContext(r),this._reportDurationsTelemetry(t.durations),!this._envService.isBuilt||this._envService.isExtensionDevelopment)for(const e of t.items)e.isInvalid&&this._logService.warn(`[suggest] did IGNORE invalid completion item from ${e.provider._debugDisplayName}`,e.completion)})).catch(o.dz)}_reportDurationsTelemetry(e){this._telemetryGate++%230===0&&setTimeout((()=>{this._telemetryService.publicLog2("suggest.durations.json",{data:JSON.stringify(e)}),this._logService.debug("suggest.durations.json",e)}))}static createSuggestFilter(e){const t=new Set;"none"===e.getOption(113)&&t.add(27);const i=e.getOption(119);return i.showMethods||t.add(0),i.showFunctions||t.add(1),i.showConstructors||t.add(2),i.showFields||t.add(3),i.showVariables||t.add(4),i.showClasses||t.add(5),i.showStructs||t.add(6),i.showInterfaces||t.add(7),i.showModules||t.add(8),i.showProperties||t.add(9),i.showEvents||t.add(10),i.showOperators||t.add(11),i.showUnits||t.add(12),i.showValues||t.add(13),i.showConstants||t.add(14),i.showEnums||t.add(15),i.showEnumMembers||t.add(16),i.showKeywords||t.add(17),i.showWords||t.add(18),i.showColors||t.add(19),i.showFiles||t.add(20),i.showReferences||t.add(21),i.showColors||t.add(22),i.showFolders||t.add(23),i.showTypeParameters||t.add(24),i.showSnippets||t.add(27),i.showUsers||t.add(25),i.showIssues||t.add(26),{itemKind:t,showDeprecated:i.showDeprecated}}_onNewContext(e){if(this._context)if(e.lineNumber===this._context.lineNumber)if((0,l.UU)(e.leadingLineContent)===(0,l.UU)(this._context.leadingLineContent)){if(e.column<this._context.column)e.leadingWord.word?this.trigger({auto:this._context.triggerOptions.auto,retrigger:!0}):this.cancel();else if(this._completionModel)if(0!==e.leadingWord.word.length&&e.leadingWord.startColumn>this._context.leadingWord.startColumn){if(x.shouldAutoTrigger(this._editor)&&this._context){const e=this._completionModel.getItemsByProvider();this.trigger({auto:this._context.triggerOptions.auto,retrigger:!0,clipboardText:this._completionModel.clipboardText,completionOptions:{providerItemsToReuse:e}})}}else if(e.column>this._context.column&&this._completionModel.getIncompleteProvider().size>0&&0!==e.leadingWord.word.length){const e=new Map,t=new Set;for(const[i,s]of this._completionModel.getItemsByProvider())s.length>0&&s[0].container.incomplete?t.add(i):e.set(i,s);this.trigger({auto:this._context.triggerOptions.auto,triggerKind:2,retrigger:!0,clipboardText:this._completionModel.clipboardText,completionOptions:{providerFilter:t,providerItemsToReuse:e}})}else{const t=this._completionModel.lineContext;let i=!1;if(this._completionModel.lineContext={leadingLineContent:e.leadingLineContent,characterCountDelta:e.column-this._context.column},0===this._completionModel.items.length){const s=x.shouldAutoTrigger(this._editor);if(!this._context)return void this.cancel();if(s&&this._context.leadingWord.endColumn<e.leadingWord.startColumn)return void this.trigger({auto:this._context.triggerOptions.auto,retrigger:!0});if(this._context.triggerOptions.auto)return void this.cancel();if(this._completionModel.lineContext=t,i=this._completionModel.items.length>0,i&&0===e.leadingWord.word.length)return void this.cancel()}this._onDidSuggest.fire({completionModel:this._completionModel,triggerOptions:e.triggerOptions,isFrozen:i})}}else this.cancel();else this.cancel()}};k=s=L([T(1,d.IEditorWorkerService),T(2,g.h),T(3,_.k),T(4,f.rr),T(5,m.fN),T(6,p.pG),T(7,E.ILanguageFeaturesService),T(8,R.k)],k)},14055:(e,t,i)=>{"use strict";i.d(t,{S:()=>o});var s=i(25890),n=i(36677),r=i(39286);class o{static{this.None=new class extends o{distance(){return 0}}}static async create(e,t){if(!t.getOption(119).localityBonus)return o.None;if(!t.hasModel())return o.None;const i=t.getModel(),a=t.getPosition();if(!e.canComputeWordRanges(i.uri))return o.None;const[c]=await(new r.n).provideSelectionRanges(i,[a]);if(0===c.length)return o.None;const l=await e.computeWordRanges(i.uri,c[0].range);if(!l)return o.None;const h=i.getWordUntilPosition(a);return delete l[h.word],new class extends o{distance(e,i){if(!a.equals(t.getPosition()))return 0;if(17===i.kind)return 2<<20;const r="string"===typeof i.label?i.label:i.label.label,o=l[r];if((0,s.Ct)(o))return 2<<20;const h=(0,s.El)(o,n.Q.fromPositions(e),n.Q.compareRangesUsingStarts),d=h>=0?o[h]:o[Math.max(0,~h-1)];let u=c.length;for(const t of c){if(!n.Q.containsRange(t.range,d))break;u-=1}return u}}}}},93409:(e,t,i)=>{"use strict";var s=i(78209),n=i(66261);(0,n.x1A)("symbolIcon.arrayForeground",n.CU6,(0,s.kg)("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.booleanForeground",n.CU6,(0,s.kg)("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,s.kg)("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.colorForeground",n.CU6,(0,s.kg)("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.constantForeground",n.CU6,(0,s.kg)("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,s.kg)("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,s.kg)("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,s.kg)("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,s.kg)("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,s.kg)("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.fileForeground",n.CU6,(0,s.kg)("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.folderForeground",n.CU6,(0,s.kg)("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,s.kg)("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,s.kg)("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.keyForeground",n.CU6,(0,s.kg)("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.keywordForeground",n.CU6,(0,s.kg)("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,s.kg)("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.moduleForeground",n.CU6,(0,s.kg)("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.namespaceForeground",n.CU6,(0,s.kg)("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.nullForeground",n.CU6,(0,s.kg)("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.numberForeground",n.CU6,(0,s.kg)("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.objectForeground",n.CU6,(0,s.kg)("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.operatorForeground",n.CU6,(0,s.kg)("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.packageForeground",n.CU6,(0,s.kg)("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.propertyForeground",n.CU6,(0,s.kg)("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.referenceForeground",n.CU6,(0,s.kg)("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.snippetForeground",n.CU6,(0,s.kg)("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.stringForeground",n.CU6,(0,s.kg)("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.structForeground",n.CU6,(0,s.kg)("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.textForeground",n.CU6,(0,s.kg)("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.typeParameterForeground",n.CU6,(0,s.kg)("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.unitForeground",n.CU6,(0,s.kg)("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,s.kg)("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."))},98472:(e,t,i)=>{"use strict";var s=i(11007),n=i(77163),r=i(78209),o=i(27195);class a extends o.L{static{this.ID="editor.action.toggleTabFocusMode"}constructor(){super({id:a.ID,title:r.aS({key:"toggle.tabMovesFocus",comment:["Turn on/off use of tab key for moving focus around VS Code"]},"Toggle Tab Key Moves Focus"),precondition:void 0,keybinding:{primary:2091,mac:{primary:1323},weight:100},metadata:{description:r.aS("tabMovesFocusDescriptions","Determines whether the tab key moves focus around the workbench or inserts the tab character in the current editor. This is also called tab trapping, tab navigation, or tab focus mode.")},f1:!0})}run(){const e=!n.M.getTabFocusMode();n.M.setTabFocusMode(e),e?(0,s.xE)(r.kg("toggle.tabMovesFocus.on","Pressing Tab will now move focus to the next focusable element")):(0,s.xE)(r.kg("toggle.tabMovesFocus.off","Pressing Tab will now insert the tab character"))}}(0,o.ug)(a)},50166:(e,t,i)=>{"use strict";var s=i(78381),n=i(31450),r=i(78209);class o extends n.ks{constructor(){super({id:"editor.action.forceRetokenize",label:r.kg("forceRetokenize","Developer: Force Retokenize"),alias:"Developer: Force Retokenize",precondition:void 0})}run(e,t){if(!t.hasModel())return;const i=t.getModel();i.tokenization.resetTokenization();const n=new s.W;i.tokenization.forceTokenization(i.getLineCount()),n.stop(),console.log(`tokenization took ${n.elapsed()}`)}}(0,n.Fl)(o)},68887:(e,t,i)=>{"use strict";var s=i(90766),n=i(10350),r=i(16980),o=i(5662),a=i(98067),c=i(91508),l=i(31450),h=i(87908),d=i(87289),u=i(74855),g=i(10920),p=i(10154),m=i(32398),f=i(57039),_=i(57286),v=i(8597),C=i(11799),E=i(36921),b=i(20492),S=i(63591),y=i(56245),w=i(72962),R=i(25154),L=i(41234),T=i(49099),x=i(42904),k=i(67220),A=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},N=function(e,t){return function(i,s){t(i,s,e)}};let I=class extends o.jG{get enabled(){return this._enabled}set enabled(e){e?(this.el.setAttribute("aria-disabled","false"),this.el.tabIndex=0,this.el.style.pointerEvents="auto",this.el.style.opacity="1",this.el.style.cursor="pointer",this._enabled=!1):(this.el.setAttribute("aria-disabled","true"),this.el.tabIndex=-1,this.el.style.pointerEvents="none",this.el.style.opacity="0.4",this.el.style.cursor="default",this._enabled=!0),this._enabled=e}constructor(e,t,i={},s,n){super(),this._link=t,this._hoverService=s,this._enabled=!0,this.el=(0,v.BC)(e,(0,v.$)("a.monaco-link",{tabIndex:t.tabIndex??0,href:t.href},t.label)),this.hoverDelegate=i.hoverDelegate??(0,x.nZ)("mouse"),this.setTooltip(t.title),this.el.setAttribute("role","button");const r=this._register(new y.f(this.el,"click")),o=this._register(new y.f(this.el,"keypress")),a=L.Jh.chain(o.event,(e=>e.map((e=>new w.Z(e))).filter((e=>3===e.keyCode)))),c=this._register(new y.f(this.el,R.B.Tap)).event;this._register(R.q.addTarget(this.el));const l=L.Jh.any(r.event,a,c);this._register(l((e=>{this.enabled&&(v.fs.stop(e,!0),i?.opener?i.opener(this._link.href):n.open(this._link.href,{allowCommands:!0}))}))),this.enabled=!0}setTooltip(e){this.hoverDelegate.showNativeHover?this.el.title=e??"":!this.hover&&e?this.hover=this._register(this._hoverService.setupManagedHover(this.hoverDelegate,this.el,e)):this.hover&&this.hover.update(e)}};I=A([N(3,k.TN),N(4,T.C)],I);var O=i(61394),D=i(25689),M=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},P=function(e,t){return function(i,s){t(i,s,e)}};let F=class extends o.jG{constructor(e,t){super(),this._editor=e,this.instantiationService=t,this.banner=this._register(this.instantiationService.createInstance(U))}hide(){this._editor.setBanner(null,0),this.banner.clear()}show(e){this.banner.show({...e,onClose:()=>{this.hide(),e.onClose?.()}}),this._editor.setBanner(this.banner.element,26)}};F=M([P(1,S._Y)],F);let U=class extends o.jG{constructor(e){super(),this.instantiationService=e,this.markdownRenderer=this.instantiationService.createInstance(b.T,{}),this.element=(0,v.$)("div.editor-banner"),this.element.tabIndex=0}getAriaLabel(e){return e.ariaLabel?e.ariaLabel:"string"===typeof e.message?e.message:void 0}getBannerMessage(e){if("string"===typeof e){const t=(0,v.$)("span");return t.innerText=e,t}return this.markdownRenderer.render(e).element}clear(){(0,v.w_)(this.element)}show(e){(0,v.w_)(this.element);const t=this.getAriaLabel(e);t&&this.element.setAttribute("aria-label",t);const i=(0,v.BC)(this.element,(0,v.$)("div.icon-container"));i.setAttribute("aria-hidden","true"),e.icon&&i.appendChild((0,v.$)(`div${D.L.asCSSSelector(e.icon)}`));const s=(0,v.BC)(this.element,(0,v.$)("div.message-container"));if(s.setAttribute("aria-hidden","true"),s.appendChild(this.getBannerMessage(e.message)),this.messageActionsContainer=(0,v.BC)(this.element,(0,v.$)("div.message-actions-container")),e.actions)for(const r of e.actions)this._register(this.instantiationService.createInstance(I,this.messageActionsContainer,{...r,tabIndex:-1},{}));const n=(0,v.BC)(this.element,(0,v.$)("div.action-container"));this.actionBar=this._register(new C.E(n)),this.actionBar.push(this._register(new E.rc("banner.close","Close Banner",D.L.asClassName(O.$_),!0,(()=>{"function"===typeof e.onClose&&e.onClose()}))),{icon:!0,label:!1}),this.actionBar.setFocusable(!1)}};U=M([P(0,S._Y)],U);var H=i(78209),B=i(84001),W=i(51467),V=i(51465),z=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},G=function(e,t){return function(i,s){t(i,s,e)}};const j=(0,O.pU)("extensions-warning-message",n.W.warning,H.kg("warningIcon","Icon shown with a warning message in the extensions editor."));let K=class extends o.jG{static{this.ID="editor.contrib.unicodeHighlighter"}constructor(e,t,i,s){super(),this._editor=e,this._editorWorkerService=t,this._workspaceTrustService=i,this._highlighter=null,this._bannerClosed=!1,this._updateState=e=>{if(e&&e.hasMore){if(this._bannerClosed)return;const t=Math.max(e.ambiguousCharacterCount,e.nonBasicAsciiCharacterCount,e.invisibleCharacterCount);let i;if(e.nonBasicAsciiCharacterCount>=t)i={message:H.kg("unicodeHighlighting.thisDocumentHasManyNonBasicAsciiUnicodeCharacters","This document contains many non-basic ASCII unicode characters"),command:new re};else if(e.ambiguousCharacterCount>=t)i={message:H.kg("unicodeHighlighting.thisDocumentHasManyAmbiguousUnicodeCharacters","This document contains many ambiguous unicode characters"),command:new se};else{if(!(e.invisibleCharacterCount>=t))throw new Error("Unreachable");i={message:H.kg("unicodeHighlighting.thisDocumentHasManyInvisibleUnicodeCharacters","This document contains many invisible unicode characters"),command:new ne}}this._bannerController.show({id:"unicodeHighlightBanner",message:i.message,icon:j,actions:[{label:i.command.shortLabel,href:`command:${i.command.id}`}],onClose:()=>{this._bannerClosed=!0}})}else this._bannerController.hide()},this._bannerController=this._register(s.createInstance(F,e)),this._register(this._editor.onDidChangeModel((()=>{this._bannerClosed=!1,this._updateHighlighter()}))),this._options=e.getOption(126),this._register(i.onDidChangeTrust((e=>{this._updateHighlighter()}))),this._register(e.onDidChangeConfiguration((t=>{t.hasChanged(126)&&(this._options=e.getOption(126),this._updateHighlighter())}))),this._updateHighlighter()}dispose(){this._highlighter&&(this._highlighter.dispose(),this._highlighter=null),super.dispose()}_updateHighlighter(){if(this._updateState(null),this._highlighter&&(this._highlighter.dispose(),this._highlighter=null),!this._editor.hasModel())return;const e=function(e,t){return{nonBasicASCII:t.nonBasicASCII===h.XR?!e:t.nonBasicASCII,ambiguousCharacters:t.ambiguousCharacters,invisibleCharacters:t.invisibleCharacters,includeComments:t.includeComments===h.XR?!e:t.includeComments,includeStrings:t.includeStrings===h.XR?!e:t.includeStrings,allowedCharacters:t.allowedCharacters,allowedLocales:t.allowedLocales}}(this._workspaceTrustService.isWorkspaceTrusted(),this._options);if([e.nonBasicASCII,e.ambiguousCharacters,e.invisibleCharacters].every((e=>!1===e)))return;const t={nonBasicASCII:e.nonBasicASCII,ambiguousCharacters:e.ambiguousCharacters,invisibleCharacters:e.invisibleCharacters,includeComments:e.includeComments,includeStrings:e.includeStrings,allowedCodePoints:Object.keys(e.allowedCharacters).map((e=>e.codePointAt(0))),allowedLocales:Object.keys(e.allowedLocales).map((e=>{if("_os"===e){return(new Intl.NumberFormat).resolvedOptions().locale}return"_vscode"===e?a.BH:e}))};this._editorWorkerService.canComputeUnicodeHighlights(this._editor.getModel().uri)?this._highlighter=new Y(this._editor,t,this._updateState,this._editorWorkerService):this._highlighter=new q(this._editor,t,this._updateState)}getDecorationInfo(e){return this._highlighter?this._highlighter.getDecorationInfo(e):null}};K=z([G(1,g.IEditorWorkerService),G(2,V.L),G(3,S._Y)],K);let Y=class extends o.jG{constructor(e,t,i,n){super(),this._editor=e,this._options=t,this._updateState=i,this._editorWorkerService=n,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new s.uC((()=>this._update()),250)),this._register(this._editor.onDidChangeModelContent((()=>{this._updateSoon.schedule()}))),this._updateSoon.schedule()}dispose(){this._decorations.clear(),super.dispose()}_update(){if(this._model.isDisposed())return;if(!this._model.mightContainNonBasicASCII())return void this._decorations.clear();const e=this._model.getVersionId();this._editorWorkerService.computedUnicodeHighlights(this._model.uri,this._options).then((t=>{if(this._model.isDisposed())return;if(this._model.getVersionId()!==e)return;this._updateState(t);const i=[];if(!t.hasMore)for(const e of t.ranges)i.push({range:e,options:ee.instance.getDecorationFromOptions(this._options)});this._decorations.set(i)}))}getDecorationInfo(e){if(!this._decorations.has(e))return null;const t=this._editor.getModel();if(!(0,m.GN)(t,e))return null;return{reason:J(t.getValueInRange(e.range),this._options),inComment:(0,m.a6)(t,e),inString:(0,m.wc)(t,e)}}};Y=z([G(3,g.IEditorWorkerService)],Y);class q extends o.jG{constructor(e,t,i){super(),this._editor=e,this._options=t,this._updateState=i,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new s.uC((()=>this._update()),250)),this._register(this._editor.onDidLayoutChange((()=>{this._updateSoon.schedule()}))),this._register(this._editor.onDidScrollChange((()=>{this._updateSoon.schedule()}))),this._register(this._editor.onDidChangeHiddenAreas((()=>{this._updateSoon.schedule()}))),this._register(this._editor.onDidChangeModelContent((()=>{this._updateSoon.schedule()}))),this._updateSoon.schedule()}dispose(){this._decorations.clear(),super.dispose()}_update(){if(this._model.isDisposed())return;if(!this._model.mightContainNonBasicASCII())return void this._decorations.clear();const e=this._editor.getVisibleRanges(),t=[],i={ranges:[],ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0,hasMore:!1};for(const s of e){const e=u.UnicodeTextModelHighlighter.computeUnicodeHighlights(this._model,this._options,s);for(const t of e.ranges)i.ranges.push(t);i.ambiguousCharacterCount+=i.ambiguousCharacterCount,i.invisibleCharacterCount+=i.invisibleCharacterCount,i.nonBasicAsciiCharacterCount+=i.nonBasicAsciiCharacterCount,i.hasMore=i.hasMore||e.hasMore}if(!i.hasMore)for(const s of i.ranges)t.push({range:s,options:ee.instance.getDecorationFromOptions(this._options)});this._updateState(i),this._decorations.set(t)}getDecorationInfo(e){if(!this._decorations.has(e))return null;const t=this._editor.getModel(),i=t.getValueInRange(e.range);return(0,m.GN)(t,e)?{reason:J(i,this._options),inComment:(0,m.a6)(t,e),inString:(0,m.wc)(t,e)}:null}}const $=H.kg("unicodeHighlight.configureUnicodeHighlightOptions","Configure Unicode Highlight Options");let Q=class{constructor(e,t,i){this._editor=e,this._languageService=t,this._openerService=i,this.hoverOrdinal=5}computeSync(e,t){if(!this._editor.hasModel()||1!==e.type)return[];const i=this._editor.getModel(),s=this._editor.getContribution(K.ID);if(!s)return[];const n=[],o=new Set;let a=300;for(const l of t){const e=s.getDecorationInfo(l);if(!e)continue;const t=i.getValueInRange(l.range).codePointAt(0),h=Z(t);let d;switch(e.reason.kind){case 0:d=(0,c.aC)(e.reason.confusableWith)?H.kg("unicodeHighlight.characterIsAmbiguousASCII","The character {0} could be confused with the ASCII character {1}, which is more common in source code.",h,Z(e.reason.confusableWith.codePointAt(0))):H.kg("unicodeHighlight.characterIsAmbiguous","The character {0} could be confused with the character {1}, which is more common in source code.",h,Z(e.reason.confusableWith.codePointAt(0)));break;case 1:d=H.kg("unicodeHighlight.characterIsInvisible","The character {0} is invisible.",h);break;case 2:d=H.kg("unicodeHighlight.characterIsNonBasicAscii","The character {0} is not a basic ASCII character.",h)}if(o.has(d))continue;o.add(d);const u={codePoint:t,reason:e.reason,inComment:e.inComment,inString:e.inString},g=H.kg("unicodeHighlight.adjustSettings","Adjust settings"),p=`command:${oe.ID}?${encodeURIComponent(JSON.stringify(u))}`,m=new r.Bc("",!0).appendMarkdown(d).appendText(" ").appendLink(p,g,$);n.push(new _.eH(this,l.range,[m],!1,a++))}return n}renderHoverParts(e,t){return(0,_.fm)(e,t,this._editor,this._languageService,this._openerService)}};function X(e){return`U+${e.toString(16).padStart(4,"0")}`}function Z(e){let t=`\`${X(e)}\``;return c.y_.isInvisibleCharacter(e)||(t+=` "${function(e){if(96===e)return"`` ` ``";return"`"+String.fromCodePoint(e)+"`"}(e)}"`),t}function J(e,t){return u.UnicodeTextModelHighlighter.computeUnicodeHighlightReason(e,t)}Q=z([G(1,p.L),G(2,T.C)],Q);class ee{constructor(){this.map=new Map}static{this.instance=new ee}getDecorationFromOptions(e){return this.getDecoration(!e.includeComments,!e.includeStrings)}getDecoration(e,t){const i=`${e}${t}`;let s=this.map.get(i);return s||(s=d.kI.createDynamic({description:"unicode-highlight",stickiness:1,className:"unicode-highlight",showIfCollapsed:!0,overviewRuler:null,minimap:null,hideInCommentTokens:e,hideInStringTokens:t}),this.map.set(i,s)),s}}class te extends l.ks{constructor(){super({id:se.ID,label:H.kg("action.unicodeHighlight.disableHighlightingInComments","Disable highlighting of characters in comments"),alias:"Disable highlighting of characters in comments",precondition:void 0}),this.shortLabel=H.kg("unicodeHighlight.disableHighlightingInComments.shortLabel","Disable Highlight In Comments")}async run(e,t,i){const s=e?.get(B.pG);s&&this.runAction(s)}async runAction(e){await e.updateValue(h.Of.includeComments,!1,2)}}class ie extends l.ks{constructor(){super({id:se.ID,label:H.kg("action.unicodeHighlight.disableHighlightingInStrings","Disable highlighting of characters in strings"),alias:"Disable highlighting of characters in strings",precondition:void 0}),this.shortLabel=H.kg("unicodeHighlight.disableHighlightingInStrings.shortLabel","Disable Highlight In Strings")}async run(e,t,i){const s=e?.get(B.pG);s&&this.runAction(s)}async runAction(e){await e.updateValue(h.Of.includeStrings,!1,2)}}class se extends l.ks{static{this.ID="editor.action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters"}constructor(){super({id:se.ID,label:H.kg("action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters","Disable highlighting of ambiguous characters"),alias:"Disable highlighting of ambiguous characters",precondition:void 0}),this.shortLabel=H.kg("unicodeHighlight.disableHighlightingOfAmbiguousCharacters.shortLabel","Disable Ambiguous Highlight")}async run(e,t,i){const s=e?.get(B.pG);s&&this.runAction(s)}async runAction(e){await e.updateValue(h.Of.ambiguousCharacters,!1,2)}}class ne extends l.ks{static{this.ID="editor.action.unicodeHighlight.disableHighlightingOfInvisibleCharacters"}constructor(){super({id:ne.ID,label:H.kg("action.unicodeHighlight.disableHighlightingOfInvisibleCharacters","Disable highlighting of invisible characters"),alias:"Disable highlighting of invisible characters",precondition:void 0}),this.shortLabel=H.kg("unicodeHighlight.disableHighlightingOfInvisibleCharacters.shortLabel","Disable Invisible Highlight")}async run(e,t,i){const s=e?.get(B.pG);s&&this.runAction(s)}async runAction(e){await e.updateValue(h.Of.invisibleCharacters,!1,2)}}class re extends l.ks{static{this.ID="editor.action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters"}constructor(){super({id:re.ID,label:H.kg("action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters","Disable highlighting of non basic ASCII characters"),alias:"Disable highlighting of non basic ASCII characters",precondition:void 0}),this.shortLabel=H.kg("unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters.shortLabel","Disable Non ASCII Highlight")}async run(e,t,i){const s=e?.get(B.pG);s&&this.runAction(s)}async runAction(e){await e.updateValue(h.Of.nonBasicASCII,!1,2)}}class oe extends l.ks{static{this.ID="editor.action.unicodeHighlight.showExcludeOptions"}constructor(){super({id:oe.ID,label:H.kg("action.unicodeHighlight.showExcludeOptions","Show Exclude Options"),alias:"Show Exclude Options",precondition:void 0})}async run(e,t,i){const{codePoint:s,reason:n,inString:r,inComment:o}=i,a=String.fromCodePoint(s),l=e.get(W.GK),d=e.get(B.pG);const u=[];if(0===n.kind)for(const c of n.notAmbiguousInLocales)u.push({label:H.kg("unicodeHighlight.allowCommonCharactersInLanguage",'Allow unicode characters that are more common in the language "{0}".',c),run:async()=>{ae(d,[c])}});if(u.push({label:function(e){return c.y_.isInvisibleCharacter(e)?H.kg("unicodeHighlight.excludeInvisibleCharFromBeingHighlighted","Exclude {0} (invisible character) from being highlighted",X(e)):H.kg("unicodeHighlight.excludeCharFromBeingHighlighted","Exclude {0} from being highlighted",`${X(e)} "${a}"`)}(s),run:()=>async function(e,t){const i=e.getValue(h.Of.allowedCharacters);let s;s="object"===typeof i&&i?i:{};for(const n of t)s[String.fromCodePoint(n)]=!0;await e.updateValue(h.Of.allowedCharacters,s,2)}(d,[s])}),o){const e=new te;u.push({label:e.label,run:async()=>e.runAction(d)})}else if(r){const e=new ie;u.push({label:e.label,run:async()=>e.runAction(d)})}if(0===n.kind){const e=new se;u.push({label:e.label,run:async()=>e.runAction(d)})}else if(1===n.kind){const e=new ne;u.push({label:e.label,run:async()=>e.runAction(d)})}else if(2===n.kind){const e=new re;u.push({label:e.label,run:async()=>e.runAction(d)})}else!function(e){throw new Error(`Unexpected value: ${e}`)}(n);const g=await l.pick(u,{title:$});g&&await g.run()}}async function ae(e,t){const i=e.inspect(h.Of.allowedLocales).user?.value;let s;s="object"===typeof i&&i?Object.assign({},i):{};for(const n of t)s[n]=!0;await e.updateValue(h.Of.allowedLocales,s,2)}(0,l.Fl)(se),(0,l.Fl)(ne),(0,l.Fl)(re),(0,l.Fl)(oe),(0,l.HW)(K.ID,K,1),f.B2.register(Q)},47210:(e,t,i)=>{"use strict";var s=i(5662),n=i(89403),r=i(31450),o=i(80301),a=i(78209),c=i(59599),l=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},h=function(e,t){return function(i,s){t(i,s,e)}};const d="ignoreUnusualLineTerminators";let u=class extends s.jG{static{this.ID="editor.contrib.unusualLineTerminatorsDetector"}constructor(e,t,i){super(),this._editor=e,this._dialogService=t,this._codeEditorService=i,this._isPresentingDialog=!1,this._config=this._editor.getOption(127),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(127)&&(this._config=this._editor.getOption(127),this._checkForUnusualLineTerminators())}))),this._register(this._editor.onDidChangeModel((()=>{this._checkForUnusualLineTerminators()}))),this._register(this._editor.onDidChangeModelContent((e=>{e.isUndoing||this._checkForUnusualLineTerminators()}))),this._checkForUnusualLineTerminators()}async _checkForUnusualLineTerminators(){if("off"===this._config)return;if(!this._editor.hasModel())return;const e=this._editor.getModel();if(!e.mightContainUnusualLineTerminators())return;const t=function(e,t){return e.getModelProperty(t.uri,d)}(this._codeEditorService,e);if(!0===t)return;if(this._editor.getOption(92))return;if("auto"===this._config)return void e.removeUnusualLineTerminators(this._editor.getSelections());if(this._isPresentingDialog)return;let i;try{this._isPresentingDialog=!0,i=await this._dialogService.confirm({title:a.kg("unusualLineTerminators.title","Unusual Line Terminators"),message:a.kg("unusualLineTerminators.message","Detected unusual line terminators"),detail:a.kg("unusualLineTerminators.detail","The file '{0}' contains one or more unusual line terminator characters, like Line Separator (LS) or Paragraph Separator (PS).\n\nIt is recommended to remove them from the file. This can be configured via `editor.unusualLineTerminators`.",(0,n.P8)(e.uri)),primaryButton:a.kg({key:"unusualLineTerminators.fix",comment:["&& denotes a mnemonic"]},"&&Remove Unusual Line Terminators"),cancelButton:a.kg("unusualLineTerminators.ignore","Ignore")})}finally{this._isPresentingDialog=!1}i.confirmed?e.removeUnusualLineTerminators(this._editor.getSelections()):function(e,t,i){e.setModelProperty(t.uri,d,i)}(this._codeEditorService,e,!0)}};u=l([h(1,c.X),h(2,o.T)],u),(0,r.HW)(u.ID,u,1)},13864:(e,t,i)=>{"use strict";i.d(t,{P:()=>C,v:()=>E});var s=i(16223),n=i(87289),r=i(62083),o=i(78209),a=i(66261),c=i(47612);const l=(0,a.x1A)("editor.wordHighlightBackground",{dark:"#575757B8",light:"#57575740",hcDark:null,hcLight:null},o.kg("wordHighlight","Background color of a symbol during read-access, like reading a variable. The color must not be opaque so as not to hide underlying decorations."),!0);(0,a.x1A)("editor.wordHighlightStrongBackground",{dark:"#004972B8",light:"#0e639c40",hcDark:null,hcLight:null},o.kg("wordHighlightStrong","Background color of a symbol during write-access, like writing to a variable. The color must not be opaque so as not to hide underlying decorations."),!0),(0,a.x1A)("editor.wordHighlightTextBackground",l,o.kg("wordHighlightText","Background color of a textual occurrence for a symbol. The color must not be opaque so as not to hide underlying decorations."),!0);const h=(0,a.x1A)("editor.wordHighlightBorder",{light:null,dark:null,hcDark:a.buw,hcLight:a.buw},o.kg("wordHighlightBorder","Border color of a symbol during read-access, like reading a variable."));(0,a.x1A)("editor.wordHighlightStrongBorder",{light:null,dark:null,hcDark:a.buw,hcLight:a.buw},o.kg("wordHighlightStrongBorder","Border color of a symbol during write-access, like writing to a variable.")),(0,a.x1A)("editor.wordHighlightTextBorder",h,o.kg("wordHighlightTextBorder","Border color of a textual occurrence for a symbol."));const d=(0,a.x1A)("editorOverviewRuler.wordHighlightForeground","#A0A0A0CC",o.kg("overviewRulerWordHighlightForeground","Overview ruler marker color for symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),u=(0,a.x1A)("editorOverviewRuler.wordHighlightStrongForeground","#C0A0C0CC",o.kg("overviewRulerWordHighlightStrongForeground","Overview ruler marker color for write-access symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),g=(0,a.x1A)("editorOverviewRuler.wordHighlightTextForeground",a.z5H,o.kg("overviewRulerWordHighlightTextForeground","Overview ruler marker color of a textual occurrence for a symbol. The color must not be opaque so as not to hide underlying decorations."),!0),p=n.kI.register({description:"word-highlight-strong",stickiness:1,className:"wordHighlightStrong",overviewRuler:{color:(0,c.Yf)(u),position:s.A5.Center},minimap:{color:(0,c.Yf)(a.Xp1),position:1}}),m=n.kI.register({description:"word-highlight-text",stickiness:1,className:"wordHighlightText",overviewRuler:{color:(0,c.Yf)(g),position:s.A5.Center},minimap:{color:(0,c.Yf)(a.Xp1),position:1}}),f=n.kI.register({description:"selection-highlight-overview",stickiness:1,className:"selectionHighlight",overviewRuler:{color:(0,c.Yf)(a.z5H),position:s.A5.Center},minimap:{color:(0,c.Yf)(a.Xp1),position:1}}),_=n.kI.register({description:"selection-highlight",stickiness:1,className:"selectionHighlight"}),v=n.kI.register({description:"word-highlight",stickiness:1,className:"wordHighlight",overviewRuler:{color:(0,c.Yf)(d),position:s.A5.Center},minimap:{color:(0,c.Yf)(a.Xp1),position:1}});function C(e){return e===r.Kb.Write?p:e===r.Kb.Text?m:v}function E(e){return e?_:f}(0,c.zy)(((e,t)=>{const i=e.getColor(a.QwA);i&&t.addRule(`.monaco-editor .selectionHighlight { background-color: ${i.transparent(.5)}; }`)}))},79907:(e,t,i)=>{"use strict";var s=i(78209),n=i(11007),r=i(90766),o=i(18447),a=i(64383),c=i(5662),l=i(34326),h=i(31450),d=i(80301),u=i(36677),g=i(60002),p=i(16223),m=i(56942),f=i(13864),_=i(32848),v=i(36456),C=i(74320),E=i(54459),b=i(89403),S=i(26486),y=i(62083),w=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},R=function(e,t){return function(i,s){t(i,s,e)}};class L{constructor(){this.selector={language:"*"}}provideDocumentHighlights(e,t,i){const s=[],n=e.getWordAtPosition({lineNumber:t.lineNumber,column:t.column});if(!n)return Promise.resolve(s);if(e.isDisposed())return;return e.findMatches(n.word,!0,!1,!0,S.J3,!1).map((e=>({range:e.range,kind:y.Kb.Text})))}provideMultiDocumentHighlights(e,t,i,s){const n=new C.fT,r=e.getWordAtPosition({lineNumber:t.lineNumber,column:t.column});if(!r)return Promise.resolve(n);for(const o of[e,...i]){if(o.isDisposed())continue;const e=o.findMatches(r.word,!0,!1,!0,S.J3,!1).map((e=>({range:e.range,kind:y.Kb.Text})));e&&n.set(o.uri,e)}return n}}let T=class extends c.jG{constructor(e){super(),this._register(e.documentHighlightProvider.register("*",new L)),this._register(e.multiDocumentHighlightProvider.register("*",new L))}};T=w([R(0,m.ILanguageFeaturesService)],T);var x,k,A=i(72466),N=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},I=function(e,t){return function(i,s){t(i,s,e)}};const O=new _.N1("hasWordHighlights",!1);function D(e,t,i,s){const n=e.ordered(t);return(0,r.$1)(n.map((e=>()=>Promise.resolve(e.provideDocumentHighlights(t,i,s)).then(void 0,a.M_))),(e=>void 0!==e&&null!==e)).then((e=>{if(e){const i=new C.fT;return i.set(t.uri,e),i}return new C.fT}))}class M{constructor(e,t,i){this._model=e,this._selection=t,this._wordSeparators=i,this._wordRange=this._getCurrentWordRange(e,t),this._result=null}get result(){return this._result||(this._result=(0,r.SS)((e=>this._compute(this._model,this._selection,this._wordSeparators,e)))),this._result}_getCurrentWordRange(e,t){const i=e.getWordAtPosition(t.getPosition());return i?new u.Q(t.startLineNumber,i.startColumn,t.startLineNumber,i.endColumn):null}isValid(e,t,i){const s=t.startLineNumber,n=t.startColumn,r=t.endColumn,o=this._getCurrentWordRange(e,t);let a=Boolean(this._wordRange&&this._wordRange.equalsRange(o));for(let c=0,l=i.length;!a&&c<l;c++){const e=i.getRange(c);e&&e.startLineNumber===s&&e.startColumn<=n&&e.endColumn>=r&&(a=!0)}return a}cancel(){this.result.cancel()}}class P extends M{constructor(e,t,i,s){super(e,t,i),this._providers=s}_compute(e,t,i,s){return D(this._providers,e,t.getPosition(),s).then((e=>e||new C.fT))}}class F extends M{constructor(e,t,i,s,n){super(e,t,i),this._providers=s,this._otherModels=n}_compute(e,t,i,s){return function(e,t,i,s,n,o){const c=e.ordered(t);return(0,r.$1)(c.map((e=>()=>{const s=o.filter((e=>(0,p.vd)(e))).filter((t=>(0,E.f)(e.selector,t.uri,t.getLanguageId(),!0,void 0,void 0)>0));return Promise.resolve(e.provideMultiDocumentHighlights(t,i,s,n)).then(void 0,a.M_)})),(e=>void 0!==e&&null!==e))}(this._providers,e,t.getPosition(),0,s,this._otherModels).then((e=>e||new C.fT))}}(0,h.ke)("_executeDocumentHighlights",(async(e,t,i)=>{const s=e.get(m.ILanguageFeaturesService),n=await D(s.documentHighlightProvider,t,i,o.XO.None);return n?.get(t.uri)}));let U=class{static{x=this}static{this.storedDecorationIDs=new C.fT}static{this.query=null}constructor(e,t,i,s,n){this.toUnhook=new c.Cm,this.workerRequestTokenId=0,this.workerRequestCompleted=!1,this.workerRequestValue=new C.fT,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,this.runDelayer=this.toUnhook.add(new r.ve(50)),this.editor=e,this.providers=t,this.multiDocumentProviders=i,this.codeEditorService=n,this._hasWordHighlights=O.bindTo(s),this._ignorePositionChangeEvent=!1,this.occurrencesHighlight=this.editor.getOption(81),this.model=this.editor.getModel(),this.toUnhook.add(e.onDidChangeCursorPosition((e=>{this._ignorePositionChangeEvent||"off"!==this.occurrencesHighlight&&this.runDelayer.trigger((()=>{this._onPositionChanged(e)}))}))),this.toUnhook.add(e.onDidFocusEditorText((e=>{"off"!==this.occurrencesHighlight&&(this.workerRequest||this.runDelayer.trigger((()=>{this._run()})))}))),this.toUnhook.add(e.onDidChangeModelContent((e=>{(0,v.v$)(this.model.uri,"output")||this._stopAll()}))),this.toUnhook.add(e.onDidChangeModel((e=>{!e.newModelUrl&&e.oldModelUrl?this._stopSingular():x.query&&this._run()}))),this.toUnhook.add(e.onDidChangeConfiguration((e=>{const t=this.editor.getOption(81);if(this.occurrencesHighlight!==t)switch(this.occurrencesHighlight=t,t){case"off":this._stopAll();break;case"singleFile":this._stopAll(x.query?.modelInfo?.model);break;case"multiFile":x.query&&this._run(!0);break;default:console.warn("Unknown occurrencesHighlight setting value:",t)}}))),this.decorations=this.editor.createDecorationsCollection(),this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,x.query&&this._run()}hasDecorations(){return this.decorations.length>0}restore(){"off"!==this.occurrencesHighlight&&(this.runDelayer.cancel(),this._run())}_getSortedHighlights(){return this.decorations.getRanges().sort(u.Q.compareRangesUsingStarts)}moveNext(){const e=this._getSortedHighlights(),t=e.findIndex((e=>e.containsPosition(this.editor.getPosition()))),i=(t+1)%e.length,s=e[i];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(s.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(s);const t=this._getWord();if(t){const r=this.editor.getModel().getLineContent(s.startLineNumber);(0,n.xE)(`${r}, ${i+1} of ${e.length} for '${t.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}moveBack(){const e=this._getSortedHighlights(),t=e.findIndex((e=>e.containsPosition(this.editor.getPosition()))),i=(t-1+e.length)%e.length,s=e[i];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(s.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(s);const t=this._getWord();if(t){const r=this.editor.getModel().getLineContent(s.startLineNumber);(0,n.xE)(`${r}, ${i+1} of ${e.length} for '${t.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}_removeSingleDecorations(){if(!this.editor.hasModel())return;const e=x.storedDecorationIDs.get(this.editor.getModel().uri);e&&(this.editor.removeDecorations(e),x.storedDecorationIDs.delete(this.editor.getModel().uri),this.decorations.length>0&&(this.decorations.clear(),this._hasWordHighlights.set(!1)))}_removeAllDecorations(e){const t=this.codeEditorService.listCodeEditors(),i=[];for(const s of t){if(!s.hasModel()||(0,b.n4)(s.getModel().uri,e?.uri))continue;const t=x.storedDecorationIDs.get(s.getModel().uri);if(!t)continue;s.removeDecorations(t),i.push(s.getModel().uri);const n=H.get(s);n?.wordHighlighter&&(n.wordHighlighter.decorations.length>0&&(n.wordHighlighter.decorations.clear(),n.wordHighlighter.workerRequest=null,n.wordHighlighter._hasWordHighlights.set(!1)))}for(const s of i)x.storedDecorationIDs.delete(s)}_stopSingular(){this._removeSingleDecorations(),this.editor.hasTextFocus()&&(this.editor.getModel()?.uri.scheme!==v.ny.vscodeNotebookCell&&x.query?.modelInfo?.model.uri.scheme!==v.ny.vscodeNotebookCell?(x.query=null,this._run()):x.query?.modelInfo&&(x.query.modelInfo=null)),-1!==this.renderDecorationsTimer&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),null!==this.workerRequest&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0)}_stopAll(e){this._removeAllDecorations(e),-1!==this.renderDecorationsTimer&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),null!==this.workerRequest&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0)}_onPositionChanged(e){"off"!==this.occurrencesHighlight&&(3===e.reason||this.editor.getModel()?.uri.scheme===v.ny.vscodeNotebookCell)?this._run():this._stopAll()}_getWord(){const e=this.editor.getSelection(),t=e.startLineNumber,i=e.startColumn;return this.model.isDisposed()?null:this.model.getWordAtPosition({lineNumber:t,column:i})}getOtherModelsToHighlight(e){if(!e)return[];if(e.uri.scheme===v.ny.vscodeNotebookCell){const t=[],i=this.codeEditorService.listCodeEditors();for(const s of i){const i=s.getModel();i&&i!==e&&i.uri.scheme===v.ny.vscodeNotebookCell&&t.push(i)}return t}const t=[],i=this.codeEditorService.listCodeEditors();for(const s of i){if(!(0,l.Np)(s))continue;const i=s.getModel();i&&(e===i.modified&&t.push(i.modified))}if(t.length)return t;if("singleFile"===this.occurrencesHighlight)return[];for(const s of i){const i=s.getModel();i&&i!==e&&t.push(i)}return t}_run(e){let t;if(this.editor.hasTextFocus()){const e=this.editor.getSelection();if(!e||e.startLineNumber!==e.endLineNumber)return x.query=null,void this._stopAll();const i=e.startColumn,s=e.endColumn,n=this._getWord();if(!n||n.startColumn>i||n.endColumn<s)return x.query=null,void this._stopAll();t=this.workerRequest&&this.workerRequest.isValid(this.model,e,this.decorations),x.query={modelInfo:{model:this.model,selection:e},word:n}}else if(!x.query)return void this._stopAll();if(this.lastCursorPositionChangeTime=(new Date).getTime(),t)this.workerRequestCompleted&&-1!==this.renderDecorationsTimer&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1,this._beginRenderDecorations());else if((0,b.n4)(this.editor.getModel().uri,x.query.modelInfo?.model.uri)){if(!e){const e=this.decorations.getRanges();for(const t of e)if(t.containsPosition(this.editor.getPosition()))return}this._stopAll(e?this.model:void 0);const t=++this.workerRequestTokenId;this.workerRequestCompleted=!1;const i=this.getOtherModelsToHighlight(this.editor.getModel());if(!x.query||!x.query.modelInfo||x.query.modelInfo.model.isDisposed())return;this.workerRequest=this.computeWithModel(x.query.modelInfo.model,x.query.modelInfo.selection,x.query.word,i),this.workerRequest?.result.then((e=>{t===this.workerRequestTokenId&&(this.workerRequestCompleted=!0,this.workerRequestValue=e||[],this._beginRenderDecorations())}),a.dz)}}computeWithModel(e,t,i,s){return s.length?function(e,t,i,s,n,r){return new F(t,i,n,e,r)}(this.multiDocumentProviders,e,t,0,this.editor.getOption(132),s):function(e,t,i,s,n){return new P(t,i,n,e)}(this.providers,e,t,0,this.editor.getOption(132))}_beginRenderDecorations(){const e=(new Date).getTime(),t=this.lastCursorPositionChangeTime+250;e>=t?(this.renderDecorationsTimer=-1,this.renderDecorations()):this.renderDecorationsTimer=setTimeout((()=>{this.renderDecorations()}),t-e)}renderDecorations(){this.renderDecorationsTimer=-1;const e=this.codeEditorService.listCodeEditors();for(const t of e){const e=H.get(t);if(!e)continue;const i=[],s=t.getModel()?.uri;if(s&&this.workerRequestValue.has(s)){const n=x.storedDecorationIDs.get(s),r=this.workerRequestValue.get(s);if(r)for(const e of r)e.range&&i.push({range:e.range,options:(0,f.P)(e.kind)});let o=[];t.changeDecorations((e=>{o=e.deltaDecorations(n??[],i)})),x.storedDecorationIDs=x.storedDecorationIDs.set(s,o),i.length>0&&(e.wordHighlighter?.decorations.set(i),e.wordHighlighter?._hasWordHighlights.set(!0))}}}dispose(){this._stopSingular(),this.toUnhook.dispose()}};U=x=N([I(4,d.T)],U);let H=class extends c.jG{static{k=this}static{this.ID="editor.contrib.wordHighlighter"}static get(e){return e.getContribution(k.ID)}constructor(e,t,i,s){super(),this._wordHighlighter=null;const n=()=>{e.hasModel()&&!e.getModel().isTooLargeForTokenization()&&(this._wordHighlighter=new U(e,i.documentHighlightProvider,i.multiDocumentHighlightProvider,t,s))};this._register(e.onDidChangeModel((e=>{this._wordHighlighter&&(this._wordHighlighter.dispose(),this._wordHighlighter=null),n()}))),n()}get wordHighlighter(){return this._wordHighlighter}saveViewState(){return!(!this._wordHighlighter||!this._wordHighlighter.hasDecorations())}moveNext(){this._wordHighlighter?.moveNext()}moveBack(){this._wordHighlighter?.moveBack()}restoreViewState(e){this._wordHighlighter&&e&&this._wordHighlighter.restore()}dispose(){this._wordHighlighter&&(this._wordHighlighter.dispose(),this._wordHighlighter=null),super.dispose()}};H=k=N([I(1,_.fN),I(2,m.ILanguageFeaturesService),I(3,d.T)],H);class B extends h.ks{constructor(e,t){super(t),this._isNext=e}run(e,t){const i=H.get(t);i&&(this._isNext?i.moveNext():i.moveBack())}}class W extends h.ks{constructor(){super({id:"editor.action.wordHighlight.trigger",label:s.kg("wordHighlight.trigger.label","Trigger Symbol Highlight"),alias:"Trigger Symbol Highlight",precondition:void 0,kbOpts:{kbExpr:g.R.editorTextFocus,primary:0,weight:100}})}run(e,t,i){const s=H.get(t);s&&s.restoreViewState(!0)}}(0,h.HW)(H.ID,H,0),(0,h.Fl)(class extends B{constructor(){super(!0,{id:"editor.action.wordHighlight.next",label:s.kg("wordHighlight.next.label","Go to Next Symbol Highlight"),alias:"Go to Next Symbol Highlight",precondition:O,kbOpts:{kbExpr:g.R.editorTextFocus,primary:65,weight:100}})}}),(0,h.Fl)(class extends B{constructor(){super(!1,{id:"editor.action.wordHighlight.prev",label:s.kg("wordHighlight.previous.label","Go to Previous Symbol Highlight"),alias:"Go to Previous Symbol Highlight",precondition:O,kbOpts:{kbExpr:g.R.editorTextFocus,primary:1089,weight:100}})}}),(0,h.Fl)(W),(0,A.x)(T)},38728:(e,t,i)=>{"use strict";i.d(t,{Jk:()=>v,R7:()=>b});var s=i(31450),n=i(15092),r=i(87908),o=i(32799),a=i(97681),c=i(81782),l=i(83069),h=i(36677),d=i(75326),u=i(60002),g=i(17469),p=i(78209),m=i(253),f=i(32848),_=i(28290);class v extends s.DX{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,i){if(!t.hasModel())return;const s=(0,c.i)(t.getOption(132),t.getOption(131)),n=t.getModel(),r=t.getSelections(),a=r.length>1,h=r.map((e=>{const t=new l.y(e.positionLineNumber,e.positionColumn),i=this._move(s,n,t,this._wordNavigationType,a);return this._moveTo(e,i,this._inSelectionMode)}));if(n.pushStackElement(),t._getViewModel().setCursorStates("moveWordCommand",3,h.map((e=>o.MF.fromModelSelection(e)))),1===h.length){const e=new l.y(h[0].positionLineNumber,h[0].positionColumn);t.revealPosition(e,0)}}_moveTo(e,t,i){return i?new d.L(e.selectionStartLineNumber,e.selectionStartColumn,t.lineNumber,t.column):new d.L(t.lineNumber,t.column,t.lineNumber,t.column)}}class C extends v{_move(e,t,i,s,n){return a.z.moveWordLeft(e,t,i,s,n)}}class E extends v{_move(e,t,i,s,n){return a.z.moveWordRight(e,t,i,s)}}class b extends s.DX{constructor(e){super(e),this._whitespaceHeuristics=e.whitespaceHeuristics,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,i){const s=e.get(g.JZ);if(!t.hasModel())return;const r=(0,c.i)(t.getOption(132),t.getOption(131)),o=t.getModel(),a=t.getSelections(),l=t.getOption(6),h=t.getOption(11),d=s.getLanguageConfiguration(o.getLanguageId()).getAutoClosingPairs(),u=t._getViewModel(),p=a.map((e=>{const i=this._delete({wordSeparators:r,model:o,selection:e,whitespaceHeuristics:this._whitespaceHeuristics,autoClosingDelete:t.getOption(9),autoClosingBrackets:l,autoClosingQuotes:h,autoClosingPairs:d,autoClosedCharacters:u.getCursorAutoClosedCharacters()},this._wordNavigationType);return new n.iu(i,"")}));t.pushUndoStop(),t.executeCommands(this.id,p),t.pushUndoStop()}}class S extends b{_delete(e,t){const i=a.z.deleteWordLeft(e,t);return i||new h.Q(1,1,1,1)}}class y extends b{_delete(e,t){const i=a.z.deleteWordRight(e,t);if(i)return i;const s=e.model.getLineCount(),n=e.model.getLineMaxColumn(s);return new h.Q(s,n,s,n)}}class w extends s.ks{constructor(){super({id:"deleteInsideWord",precondition:u.R.writable,label:p.kg("deleteInsideWord","Delete Word"),alias:"Delete Word"})}run(e,t,i){if(!t.hasModel())return;const s=(0,c.i)(t.getOption(132),t.getOption(131)),r=t.getModel(),o=t.getSelections().map((e=>{const t=a.z.deleteInsideWord(s,r,e);return new n.iu(t,"")}));t.pushUndoStop(),t.executeCommands(this.id,o),t.pushUndoStop()}}(0,s.E_)(new class extends C{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartLeft",precondition:void 0})}}),(0,s.E_)(new class extends C{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndLeft",precondition:void 0})}}),(0,s.E_)(new class extends C{constructor(){super({inSelectionMode:!1,wordNavigationType:1,id:"cursorWordLeft",precondition:void 0,kbOpts:{kbExpr:f.M$.and(u.R.textInputFocus,f.M$.and(m.f,_.nd)?.negate()),primary:2063,mac:{primary:527},weight:100}})}}),(0,s.E_)(new class extends C{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartLeftSelect",precondition:void 0})}}),(0,s.E_)(new class extends C{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndLeftSelect",precondition:void 0})}}),(0,s.E_)(new class extends C{constructor(){super({inSelectionMode:!0,wordNavigationType:1,id:"cursorWordLeftSelect",precondition:void 0,kbOpts:{kbExpr:f.M$.and(u.R.textInputFocus,f.M$.and(m.f,_.nd)?.negate()),primary:3087,mac:{primary:1551},weight:100}})}}),(0,s.E_)(new class extends E{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartRight",precondition:void 0})}}),(0,s.E_)(new class extends E{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndRight",precondition:void 0,kbOpts:{kbExpr:f.M$.and(u.R.textInputFocus,f.M$.and(m.f,_.nd)?.negate()),primary:2065,mac:{primary:529},weight:100}})}}),(0,s.E_)(new class extends E{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordRight",precondition:void 0})}}),(0,s.E_)(new class extends E{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartRightSelect",precondition:void 0})}}),(0,s.E_)(new class extends E{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndRightSelect",precondition:void 0,kbOpts:{kbExpr:f.M$.and(u.R.textInputFocus,f.M$.and(m.f,_.nd)?.negate()),primary:3089,mac:{primary:1553},weight:100}})}}),(0,s.E_)(new class extends E{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordRightSelect",precondition:void 0})}}),(0,s.E_)(new class extends C{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityLeft",precondition:void 0})}_move(e,t,i,s,n){return super._move((0,c.i)(r.qB.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,s,n)}}),(0,s.E_)(new class extends C{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityLeftSelect",precondition:void 0})}_move(e,t,i,s,n){return super._move((0,c.i)(r.qB.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,s,n)}}),(0,s.E_)(new class extends E{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityRight",precondition:void 0})}_move(e,t,i,s,n){return super._move((0,c.i)(r.qB.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,s,n)}}),(0,s.E_)(new class extends E{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityRightSelect",precondition:void 0})}_move(e,t,i,s,n){return super._move((0,c.i)(r.qB.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,s,n)}}),(0,s.E_)(new class extends S{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartLeft",precondition:u.R.writable})}}),(0,s.E_)(new class extends S{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndLeft",precondition:u.R.writable})}}),(0,s.E_)(new class extends S{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordLeft",precondition:u.R.writable,kbOpts:{kbExpr:u.R.textInputFocus,primary:2049,mac:{primary:513},weight:100}})}}),(0,s.E_)(new class extends y{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartRight",precondition:u.R.writable})}}),(0,s.E_)(new class extends y{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndRight",precondition:u.R.writable})}}),(0,s.E_)(new class extends y{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordRight",precondition:u.R.writable,kbOpts:{kbExpr:u.R.textInputFocus,primary:2068,mac:{primary:532},weight:100}})}}),(0,s.Fl)(w)},46606:(e,t,i)=>{"use strict";var s=i(31450),n=i(97681),r=i(36677),o=i(60002),a=i(38728),c=i(50091);class l extends a.R7{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordPartLeft",precondition:o.R.writable,kbOpts:{kbExpr:o.R.textInputFocus,primary:0,mac:{primary:769},weight:100}})}_delete(e,t){const i=n.c.deleteWordPartLeft(e);return i||new r.Q(1,1,1,1)}}class h extends a.R7{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordPartRight",precondition:o.R.writable,kbOpts:{kbExpr:o.R.textInputFocus,primary:0,mac:{primary:788},weight:100}})}_delete(e,t){const i=n.c.deleteWordPartRight(e);if(i)return i;const s=e.model.getLineCount(),o=e.model.getLineMaxColumn(s);return new r.Q(s,o,s,o)}}class d extends a.Jk{_move(e,t,i,s,r){return n.c.moveWordPartLeft(e,t,i,r)}}c.w.registerCommandAlias("cursorWordPartStartLeft","cursorWordPartLeft");c.w.registerCommandAlias("cursorWordPartStartLeftSelect","cursorWordPartLeftSelect");class u extends a.Jk{_move(e,t,i,s,r){return n.c.moveWordPartRight(e,t,i)}}(0,s.E_)(new l),(0,s.E_)(new h),(0,s.E_)(new class extends d{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordPartLeft",precondition:void 0,kbOpts:{kbExpr:o.R.textInputFocus,primary:0,mac:{primary:783},weight:100}})}}),(0,s.E_)(new class extends d{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordPartLeftSelect",precondition:void 0,kbOpts:{kbExpr:o.R.textInputFocus,primary:0,mac:{primary:1807},weight:100}})}}),(0,s.E_)(new class extends u{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordPartRight",precondition:void 0,kbOpts:{kbExpr:o.R.textInputFocus,primary:0,mac:{primary:785},weight:100}})}}),(0,s.E_)(new class extends u{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordPartRightSelect",precondition:void 0,kbOpts:{kbExpr:o.R.textInputFocus,primary:0,mac:{primary:1809},weight:100}})}})},56800:(e,t,i)=>{"use strict";var s=i(8597),n=i(5662),r=i(31450),o=i(98067);class a extends n.jG{static{this.ID="editor.contrib.iPadShowKeyboard"}constructor(e){super(),this.editor=e,this.widget=null,o.un&&(this._register(e.onDidChangeConfiguration((()=>this.update()))),this.update())}update(){const e=!this.editor.getOption(92);!this.widget&&e?this.widget=new c(this.editor):this.widget&&!e&&(this.widget.dispose(),this.widget=null)}dispose(){super.dispose(),this.widget&&(this.widget.dispose(),this.widget=null)}}class c extends n.jG{static{this.ID="editor.contrib.ShowKeyboardWidget"}constructor(e){super(),this.editor=e,this._domNode=document.createElement("textarea"),this._domNode.className="iPadShowKeyboard",this._register(s.ko(this._domNode,"touchstart",(e=>{this.editor.focus()}))),this._register(s.ko(this._domNode,"focus",(e=>{this.editor.focus()}))),this.editor.addOverlayWidget(this)}dispose(){this.editor.removeOverlayWidget(this),super.dispose()}getId(){return c.ID}getDomNode(){return this._domNode}getPosition(){return{preference:1}}}(0,r.HW)(a.ID,a,3)},84325:(e,t,i)=>{"use strict";var s,n=i(8597),r=i(47661),o=i(5662),a=i(31450),c=i(62083),l=i(25982),h=i(20788),d=i(10154),u=i(24520),g=i(51861),p=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},m=function(e,t){return function(i,s){t(i,s,e)}};let f=class extends o.jG{static{s=this}static{this.ID="editor.contrib.inspectTokens"}static get(e){return e.getContribution(s.ID)}constructor(e,t,i){super(),this._editor=e,this._languageService=i,this._widget=null,this._register(this._editor.onDidChangeModel((e=>this.stop()))),this._register(this._editor.onDidChangeModelLanguage((e=>this.stop()))),this._register(c.dG.onDidChange((e=>this.stop()))),this._register(this._editor.onKeyUp((e=>9===e.keyCode&&this.stop())))}dispose(){this.stop(),super.dispose()}launch(){this._widget||this._editor.hasModel()&&(this._widget=new v(this._editor,this._languageService))}stop(){this._widget&&(this._widget.dispose(),this._widget=null)}};f=s=p([m(1,u.L),m(2,d.L)],f);class _ extends a.ks{constructor(){super({id:"editor.action.inspectTokens",label:g.YN.inspectTokensAction,alias:"Developer: Inspect Tokens",precondition:void 0})}run(e,t){const i=f.get(t);i?.launch()}}class v extends o.jG{static{this._ID="editor.contrib.inspectTokensWidget"}constructor(e,t){super(),this.allowEditorOverflow=!0,this._editor=e,this._languageService=t,this._model=this._editor.getModel(),this._domNode=document.createElement("div"),this._domNode.className="tokens-inspect-widget",this._tokenizationSupport=function(e,t){const i=c.dG.get(t);if(i)return i;const s=e.encodeLanguageId(t);return{getInitialState:()=>h.r3,tokenize:(e,i,s)=>(0,h.$H)(t,s),tokenizeEncoded:(e,t,i)=>(0,h.Lh)(s,i)}}(this._languageService.languageIdCodec,this._model.getLanguageId()),this._compute(this._editor.getPosition()),this._register(this._editor.onDidChangeCursorPosition((e=>this._compute(this._editor.getPosition())))),this._editor.addContentWidget(this)}dispose(){this._editor.removeContentWidget(this),super.dispose()}getId(){return v._ID}_compute(e){const t=this._getTokensAtLine(e.lineNumber);let i=0;for(let n=t.tokens1.length-1;n>=0;n--){const s=t.tokens1[n];if(e.column-1>=s.offset){i=n;break}}let s=0;for(let n=t.tokens2.length>>>1;n>=0;n--)if(e.column-1>=t.tokens2[n<<1]){s=n;break}const o=this._model.getLineContent(e.lineNumber);let a="";if(i<t.tokens1.length){const e=t.tokens1[i].offset,s=i+1<t.tokens1.length?t.tokens1[i+1].offset:o.length;a=o.substring(e,s)}(0,n.Ln)(this._domNode,(0,n.$)("h2.tm-token",void 0,function(e){let t="";for(let i=0,s=e.length;i<s;i++){const s=e.charCodeAt(i);switch(s){case 9:t+="\u2192";break;case 32:t+="\xb7";break;default:t+=String.fromCharCode(s)}}return t}(a),(0,n.$)("span.tm-token-length",void 0,`${a.length} ${1===a.length?"char":"chars"}`))),(0,n.BC)(this._domNode,(0,n.$)("hr.tokens-inspect-separator",{style:"clear:both"}));const c=1+(s<<1)<t.tokens2.length?this._decodeMetadata(t.tokens2[1+(s<<1)]):null;(0,n.BC)(this._domNode,(0,n.$)("table.tm-metadata-table",void 0,(0,n.$)("tbody",void 0,(0,n.$)("tr",void 0,(0,n.$)("td.tm-metadata-key",void 0,"language"),(0,n.$)("td.tm-metadata-value",void 0,`${c?c.languageId:"-?-"}`)),(0,n.$)("tr",void 0,(0,n.$)("td.tm-metadata-key",void 0,"token type"),(0,n.$)("td.tm-metadata-value",void 0,`${c?this._tokenTypeToString(c.tokenType):"-?-"}`)),(0,n.$)("tr",void 0,(0,n.$)("td.tm-metadata-key",void 0,"font style"),(0,n.$)("td.tm-metadata-value",void 0,`${c?this._fontStyleToString(c.fontStyle):"-?-"}`)),(0,n.$)("tr",void 0,(0,n.$)("td.tm-metadata-key",void 0,"foreground"),(0,n.$)("td.tm-metadata-value",void 0,`${c?r.Q1.Format.CSS.formatHex(c.foreground):"-?-"}`)),(0,n.$)("tr",void 0,(0,n.$)("td.tm-metadata-key",void 0,"background"),(0,n.$)("td.tm-metadata-value",void 0,`${c?r.Q1.Format.CSS.formatHex(c.background):"-?-"}`))))),(0,n.BC)(this._domNode,(0,n.$)("hr.tokens-inspect-separator")),i<t.tokens1.length&&(0,n.BC)(this._domNode,(0,n.$)("span.tm-token-type",void 0,t.tokens1[i].type)),this._editor.layoutContentWidget(this)}_decodeMetadata(e){const t=c.dG.getColorMap(),i=l.x.getLanguageId(e),s=l.x.getTokenType(e),n=l.x.getFontStyle(e),r=l.x.getForeground(e),o=l.x.getBackground(e);return{languageId:this._languageService.languageIdCodec.decodeLanguageId(i),tokenType:s,fontStyle:n,foreground:t[r],background:t[o]}}_tokenTypeToString(e){switch(e){case 0:return"Other";case 1:return"Comment";case 2:return"String";case 3:return"RegEx";default:return"??"}}_fontStyleToString(e){let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),8&e&&(t+="strikethrough "),0===t.length&&(t="---"),t}_getTokensAtLine(e){const t=this._getStateBeforeLine(e),i=this._tokenizationSupport.tokenize(this._model.getLineContent(e),!0,t),s=this._tokenizationSupport.tokenizeEncoded(this._model.getLineContent(e),!0,t);return{startState:t,tokens1:i.tokens,tokens2:s.tokens,endState:i.endState}}_getStateBeforeLine(e){let t=this._tokenizationSupport.getInitialState();for(let i=1;i<e;i++){t=this._tokenizationSupport.tokenize(this._model.getLineContent(i),!0,t).endState}return t}getDomNode(){return this._domNode}getPosition(){return{position:this._editor.getPosition(),preference:[2,1]}}}(0,a.HW)(f.ID,f,4),(0,a.Fl)(_)},77047:(e,t,i)=>{"use strict";var s=i(46359),n=i(71597),r=i(51861),o=i(80301),a=i(37882),c=i(73983),l=i(70125),h=i(64383),d=i(26690),u=i(6921),g=i(5662),p=i(74320);class m{constructor(){this.chunkCount=0,this.chunkOccurrences=new Map,this.documents=new Map}calculateScores(e,t){const i=this.computeEmbedding(e),s=new Map,n=[];for(const[r,o]of this.documents){if(t.isCancellationRequested)return[];for(const e of o.chunks){const t=this.computeSimilarityScore(e,i,s);t>0&&n.push({key:r,score:t})}}return n}static termFrequencies(e){return function(e){const t=new Map;for(const i of e)t.set(i,(t.get(i)??0)+1);return t}(m.splitTerms(e))}static*splitTerms(e){const t=e=>e.toLowerCase();for(const[i]of e.matchAll(/\b\p{Letter}[\p{Letter}\d]{2,}\b/gu)){yield t(i);const e=i.replace(/([a-z])([A-Z])/g,"$1 $2").split(/\s+/g);if(e.length>1)for(const i of e)i.length>2&&/\p{Letter}{3,}/gu.test(i)&&(yield t(i))}}updateDocuments(e){for(const{key:t}of e)this.deleteDocument(t);for(const t of e){const e=[];for(const i of t.textChunks){const t=m.termFrequencies(i);for(const e of t.keys())this.chunkOccurrences.set(e,(this.chunkOccurrences.get(e)??0)+1);e.push({text:i,tf:t})}this.chunkCount+=e.length,this.documents.set(t.key,{chunks:e})}return this}deleteDocument(e){const t=this.documents.get(e);if(t){this.documents.delete(e),this.chunkCount-=t.chunks.length;for(const e of t.chunks)for(const t of e.tf.keys()){const e=this.chunkOccurrences.get(t);if("number"===typeof e){const i=e-1;i<=0?this.chunkOccurrences.delete(t):this.chunkOccurrences.set(t,i)}}}}computeSimilarityScore(e,t,i){let s=0;for(const[n,r]of Object.entries(t)){const t=e.tf.get(n);if(!t)continue;let o=i.get(n);"number"!==typeof o&&(o=this.computeIdf(n),i.set(n,o));s+=t*o*r}return s}computeEmbedding(e){const t=m.termFrequencies(e);return this.computeTfidf(t)}computeIdf(e){const t=this.chunkOccurrences.get(e)??0;return t>0?Math.log((this.chunkCount+1)/t):0}computeTfidf(e){const t=Object.create(null);for(const[i,s]of e){const e=this.computeIdf(i);e>0&&(t[i]=s*e)}return t}}var f,_=i(78209),v=i(50091),C=i(84001),E=i(59599),b=i(63591),S=i(98031),y=i(18801),w=i(90766),R=i(18447),L=i(631);function T(e){const t=e;return Array.isArray(t.items)}function x(e){const t=e;return!!t.picks&&t.additionalPicks instanceof Promise}!function(e){e[e.NO_ACTION=0]="NO_ACTION",e[e.CLOSE_PICKER=1]="CLOSE_PICKER",e[e.REFRESH_PICKER=2]="REFRESH_PICKER",e[e.REMOVE_ITEM=3]="REMOVE_ITEM"}(f||(f={}));class k extends g.jG{constructor(e,t){super(),this.prefix=e,this.options=t}provide(e,t,i){const s=new g.Cm;let n;e.canAcceptInBackground=!!this.options?.canAcceptInBackground,e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;const r=s.add(new g.HE),o=async()=>{const s=r.value=new g.Cm;n?.dispose(!0),e.busy=!1,n=new R.Qi(t);const o=n.token;let a=e.value.substring(this.prefix.length);this.options?.shouldSkipTrimPickFilter||(a=a.trim());const c=this._getPicks(a,s,o,i),l=(t,i)=>{let s,n;if(T(t)?(s=t.items,n=t.active):s=t,0===s.length){if(i)return!1;(a.length>0||e.hideInput)&&this.options?.noResultsPick&&(s=(0,L.Tn)(this.options.noResultsPick)?[this.options.noResultsPick(a)]:[this.options.noResultsPick])}return e.items=s,n&&(e.activeItems=[n]),!0},h=async t=>{let i=!1,s=!1;await Promise.all([(async()=>{"number"===typeof t.mergeDelay&&(await(0,w.wR)(t.mergeDelay),o.isCancellationRequested)||s||(i=l(t.picks,!0))})(),(async()=>{e.busy=!0;try{const s=await t.additionalPicks;if(o.isCancellationRequested)return;let n,r,a,c;if(T(t.picks)?(n=t.picks.items,r=t.picks.active):n=t.picks,T(s)?(a=s.items,c=s.active):a=s,a.length>0||!i){let t;if(!r&&!c){const i=e.activeItems[0];i&&-1!==n.indexOf(i)&&(t=i)}l({items:[...n,...a],active:r||c||t})}}finally{o.isCancellationRequested||(e.busy=!1),s=!0}})()])};if(null===c);else if(x(c))await h(c);else if(c instanceof Promise){e.busy=!0;try{const e=await c;if(o.isCancellationRequested)return;x(e)?await h(e):l(e)}finally{o.isCancellationRequested||(e.busy=!1)}}else l(c)};s.add(e.onDidChangeValue((()=>o()))),o(),s.add(e.onDidAccept((t=>{if(i?.handleAccept)return t.inBackground||e.hide(),void i.handleAccept?.(e.activeItems[0]);const[s]=e.selectedItems;"function"===typeof s?.accept&&(t.inBackground||e.hide(),s.accept(e.keyMods,t))})));const a=async(i,s)=>{if("function"!==typeof s.trigger)return;const n=s.buttons?.indexOf(i)??-1;if(n>=0){const i=s.trigger(n,e.keyMods),r="number"===typeof i?i:await i;if(t.isCancellationRequested)return;switch(r){case f.NO_ACTION:break;case f.CLOSE_PICKER:e.hide();break;case f.REFRESH_PICKER:o();break;case f.REMOVE_ITEM:{const t=e.items.indexOf(s);if(-1!==t){const i=e.items.slice(),s=i.splice(t,1),n=e.activeItems.filter((e=>e!==s[0])),r=e.keepScrollPosition;e.keepScrollPosition=!0,e.items=i,n&&(e.activeItems=n),e.keepScrollPosition=r}break}}}};return s.add(e.onDidTriggerItemButton((({button:e,item:t})=>a(e,t)))),s.add(e.onDidTriggerSeparatorButton((({button:e,separator:t})=>a(e,t)))),s}}var A,N,I=i(9711),O=i(90651),D=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},M=function(e,t){return function(i,s){t(i,s,e)}};let P=class extends k{static{A=this}static{this.PREFIX=">"}static{this.TFIDF_THRESHOLD=.5}static{this.TFIDF_MAX_RESULTS=5}static{this.WORD_FILTER=(0,d.or)(d.WP,d.J1,d.Tt)}constructor(e,t,i,s,n,r){super(A.PREFIX,e),this.instantiationService=t,this.keybindingService=i,this.commandService=s,this.telemetryService=n,this.dialogService=r,this.commandsHistory=this._register(this.instantiationService.createInstance(F)),this.options=e}async _getPicks(e,t,i,s){const n=await this.getCommandPicks(i);if(i.isCancellationRequested)return[];const r=(0,u.P)((()=>{const t=new m;t.updateDocuments(n.map((e=>({key:e.commandId,textChunks:[this.getTfIdfChunk(e)]}))));return function(e){const t=e.slice(0);t.sort(((e,t)=>t.score-e.score));const i=t[0]?.score??0;if(i>0)for(const s of t)s.score/=i;return t}(t.calculateScores(e,i)).filter((e=>e.score>A.TFIDF_THRESHOLD)).slice(0,A.TFIDF_MAX_RESULTS)})),o=[];for(const u of n){const t=A.WORD_FILTER(e,u.label)??void 0,s=u.commandAlias?A.WORD_FILTER(e,u.commandAlias)??void 0:void 0;if(t||s)u.highlights={label:t,detail:this.options.showAlias?s:void 0},o.push(u);else if(e===u.commandId)o.push(u);else if(e.length>=3){const e=r();if(i.isCancellationRequested)return[];const t=e.find((e=>e.key===u.commandId));t&&(u.tfIdfScore=t.score,o.push(u))}}const a=new Map;for(const u of o){const e=a.get(u.label);e?(u.description=u.commandId,e.description=e.commandId):a.set(u.label,u)}o.sort(((e,t)=>{if(e.tfIdfScore&&t.tfIdfScore)return e.tfIdfScore===t.tfIdfScore?e.label.localeCompare(t.label):t.tfIdfScore-e.tfIdfScore;if(e.tfIdfScore)return 1;if(t.tfIdfScore)return-1;const i=this.commandsHistory.peek(e.commandId),s=this.commandsHistory.peek(t.commandId);if(i&&s)return i>s?-1:1;if(i)return-1;if(s)return 1;if(this.options.suggestedCommandIds){const i=this.options.suggestedCommandIds.has(e.commandId),s=this.options.suggestedCommandIds.has(t.commandId);if(i&&s)return 0;if(i)return-1;if(s)return 1}return e.label.localeCompare(t.label)}));const c=[];let l=!1,h=!0,d=!!this.options.suggestedCommandIds;for(let u=0;u<o.length;u++){const e=o[u];0===u&&this.commandsHistory.peek(e.commandId)&&(c.push({type:"separator",label:(0,_.kg)("recentlyUsed","recently used")}),l=!0),h&&void 0!==e.tfIdfScore&&(c.push({type:"separator",label:(0,_.kg)("suggested","similar commands")}),h=!1),d&&void 0===e.tfIdfScore&&!this.commandsHistory.peek(e.commandId)&&this.options.suggestedCommandIds?.has(e.commandId)&&(c.push({type:"separator",label:(0,_.kg)("commonlyUsed","commonly used")}),l=!0,d=!1),!l||void 0!==e.tfIdfScore||this.commandsHistory.peek(e.commandId)||this.options.suggestedCommandIds?.has(e.commandId)||(c.push({type:"separator",label:(0,_.kg)("morecCommands","other commands")}),l=!1),c.push(this.toCommandPick(e,s))}return this.hasAdditionalCommandPicks(e,i)?{picks:c,additionalPicks:(async()=>{const t=await this.getAdditionalCommandPicks(n,o,e,i);if(i.isCancellationRequested)return[];const r=t.map((e=>this.toCommandPick(e,s)));return h&&"separator"!==r[0]?.type&&r.unshift({type:"separator",label:(0,_.kg)("suggested","similar commands")}),r})()}:c}toCommandPick(e,t){if("separator"===e.type)return e;const i=this.keybindingService.lookupKeybinding(e.commandId),s=i?(0,_.kg)("commandPickAriaLabelWithKeybinding","{0}, {1}",e.label,i.getAriaLabel()):e.label;return{...e,ariaLabel:s,detail:this.options.showAlias&&e.commandAlias!==e.label?e.commandAlias:void 0,keybinding:i,accept:async()=>{this.commandsHistory.push(e.commandId),this.telemetryService.publicLog2("workbenchActionExecuted",{id:e.commandId,from:t?.from??"quick open"});try{e.args?.length?await this.commandService.executeCommand(e.commandId,...e.args):await this.commandService.executeCommand(e.commandId)}catch(i){(0,h.MB)(i)||this.dialogService.error((0,_.kg)("canNotRun","Command '{0}' resulted in an error",e.label),(0,l.r)(i))}}}}getTfIdfChunk({label:e,commandAlias:t,commandDescription:i}){let s=e;return t&&t!==e&&(s+=` - ${t}`),i&&i.value!==e&&(s+=` - ${i.value===i.original?i.value:`${i.value} (${i.original})`}`),s}};P=A=D([M(1,b._Y),M(2,S.b),M(3,v.d),M(4,O.k),M(5,E.X)],P);let F=class extends g.jG{static{N=this}static{this.DEFAULT_COMMANDS_HISTORY_LENGTH=50}static{this.PREF_KEY_CACHE="commandPalette.mru.cache"}static{this.PREF_KEY_COUNTER="commandPalette.mru.counter"}static{this.counter=1}static{this.hasChanges=!1}constructor(e,t,i){super(),this.storageService=e,this.configurationService=t,this.logService=i,this.configuredCommandsHistoryLength=0,this.updateConfiguration(),this.load(),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration((e=>this.updateConfiguration(e)))),this._register(this.storageService.onWillSaveState((e=>{e.reason===I.LP.SHUTDOWN&&this.saveState()})))}updateConfiguration(e){e&&!e.affectsConfiguration("workbench.commandPalette.history")||(this.configuredCommandsHistoryLength=N.getConfiguredCommandHistoryLength(this.configurationService),N.cache&&N.cache.limit!==this.configuredCommandsHistoryLength&&(N.cache.limit=this.configuredCommandsHistoryLength,N.hasChanges=!0))}load(){const e=this.storageService.get(N.PREF_KEY_CACHE,0);let t;if(e)try{t=JSON.parse(e)}catch(s){this.logService.error(`[CommandsHistory] invalid data: ${s}`)}const i=N.cache=new p.qK(this.configuredCommandsHistoryLength,1);if(t){let e;e=t.usesLRU?t.entries:t.entries.sort(((e,t)=>e.value-t.value)),e.forEach((e=>i.set(e.key,e.value)))}N.counter=this.storageService.getNumber(N.PREF_KEY_COUNTER,0,N.counter)}push(e){N.cache&&(N.cache.set(e,N.counter++),N.hasChanges=!0)}peek(e){return N.cache?.peek(e)}saveState(){if(!N.cache)return;if(!N.hasChanges)return;const e={usesLRU:!0,entries:[]};N.cache.forEach(((t,i)=>e.entries.push({key:i,value:t}))),this.storageService.store(N.PREF_KEY_CACHE,JSON.stringify(e),0,0),this.storageService.store(N.PREF_KEY_COUNTER,N.counter,0,0),N.hasChanges=!1}static getConfiguredCommandHistoryLength(e){const t=e.getValue(),i=t.workbench?.commandPalette?.history;return"number"===typeof i?i:N.DEFAULT_COMMANDS_HISTORY_LENGTH}};F=N=D([M(0,I.CS),M(1,C.pG),M(2,y.rr)],F);class U extends P{constructor(e,t,i,s,n,r){super(e,t,i,s,n,r)}getCodeEditorCommandPicks(){const e=this.activeTextEditorControl;if(!e)return[];const t=[];for(const i of e.getSupportedActions()){let e;i.metadata?.description&&(e=(0,c.f)(i.metadata.description)?i.metadata.description:{original:i.metadata.description,value:i.metadata.description}),t.push({commandId:i.id,commandAlias:i.alias,commandDescription:e,label:(0,a.pS)(i.label)||i.id})}return t}}var H=i(31450),B=i(60002),W=i(51467),V=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},z=function(e,t){return function(i,s){t(i,s,e)}};let G=class extends U{get activeTextEditorControl(){return this.codeEditorService.getFocusedCodeEditor()??void 0}constructor(e,t,i,s,n,r){super({showAlias:!1},e,i,s,n,r),this.codeEditorService=t}async getCommandPicks(){return this.getCodeEditorCommandPicks()}hasAdditionalCommandPicks(){return!1}async getAdditionalCommandPicks(){return[]}};G=V([z(0,b._Y),z(1,o.T),z(2,S.b),z(3,v.d),z(4,O.k),z(5,E.X)],G);class j extends H.ks{static{this.ID="editor.action.quickCommand"}constructor(){super({id:j.ID,label:r.gf.quickCommandActionLabel,alias:"Command Palette",precondition:void 0,kbOpts:{kbExpr:B.R.focus,primary:59,weight:100},contextMenuOpts:{group:"z_commands",order:1}})}run(e){e.get(W.GK).quickAccess.show(G.PREFIX)}}(0,H.Fl)(j),s.O.as(n.Fd.Quickaccess).registerQuickAccessProvider({ctor:G,prefix:G.PREFIX,helpEntries:[{description:r.gf.quickCommandHelp,commandId:j.ID}]})},81091:(e,t,i)=>{"use strict";var s=i(5662),n=i(34326),r=i(12437),o=i(78209);class a extends r.o{static{this.PREFIX=":"}constructor(){super({canAcceptInBackground:!0})}provideWithoutTextEditor(e){const t=(0,o.kg)("cannotRunGotoLine","Open a text editor first to go to a line.");return e.items=[{label:t}],e.ariaLabel=t,s.jG.None}provideWithTextEditor(e,t,i){const r=e.editor,o=new s.Cm;o.add(t.onDidAccept((i=>{const[s]=t.selectedItems;if(s){if(!this.isValidLineNumber(r,s.lineNumber))return;this.gotoLocation(e,{range:this.toRange(s.lineNumber,s.column),keyMods:t.keyMods,preserveFocus:i.inBackground}),i.inBackground||t.hide()}})));const c=()=>{const e=this.parsePosition(r,t.value.trim().substr(a.PREFIX.length)),i=this.getPickLabel(r,e.lineNumber,e.column);if(t.items=[{lineNumber:e.lineNumber,column:e.column,label:i}],t.ariaLabel=i,!this.isValidLineNumber(r,e.lineNumber))return void this.clearDecorations(r);const s=this.toRange(e.lineNumber,e.column);r.revealRangeInCenter(s,0),this.addDecorations(r,s)};c(),o.add(t.onDidChangeValue((()=>c())));const l=(0,n.jA)(r);if(l){2===l.getOptions().get(68).renderType&&(l.updateOptions({lineNumbers:"on"}),o.add((0,s.s)((()=>l.updateOptions({lineNumbers:"relative"})))))}return o}toRange(e=1,t=1){return{startLineNumber:e,startColumn:t,endLineNumber:e,endColumn:t}}parsePosition(e,t){const i=t.split(/,|:|#/).map((e=>parseInt(e,10))).filter((e=>!isNaN(e))),s=this.lineCount(e)+1;return{lineNumber:i[0]>0?i[0]:s+i[0],column:i[1]}}getPickLabel(e,t,i){if(this.isValidLineNumber(e,t))return this.isValidColumn(e,t,i)?(0,o.kg)("gotoLineColumnLabel","Go to line {0} and character {1}.",t,i):(0,o.kg)("gotoLineLabel","Go to line {0}.",t);const s=e.getPosition()||{lineNumber:1,column:1},n=this.lineCount(e);return n>1?(0,o.kg)("gotoLineLabelEmptyWithLimit","Current Line: {0}, Character: {1}. Type a line number between 1 and {2} to navigate to.",s.lineNumber,s.column,n):(0,o.kg)("gotoLineLabelEmpty","Current Line: {0}, Character: {1}. Type a line number to navigate to.",s.lineNumber,s.column)}isValidLineNumber(e,t){return!(!t||"number"!==typeof t)&&(t>0&&t<=this.lineCount(e))}isValidColumn(e,t,i){if(!i||"number"!==typeof i)return!1;const s=this.getModel(e);if(!s)return!1;const n={lineNumber:t,column:i};return s.validatePosition(n).equals(n)}lineCount(e){return this.getModel(e)?.getLineCount()??0}}var c=i(46359),l=i(71597),h=i(80301),d=i(51861),u=i(41234),g=i(31450),p=i(60002),m=i(51467),f=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},_=function(e,t){return function(i,s){t(i,s,e)}};let v=class extends a{constructor(e){super(),this.editorService=e,this.onDidActiveTextEditorControlChange=u.Jh.None}get activeTextEditorControl(){return this.editorService.getFocusedCodeEditor()??void 0}};v=f([_(0,h.T)],v);class C extends g.ks{static{this.ID="editor.action.gotoLine"}constructor(){super({id:C.ID,label:d.Hw.gotoLineActionLabel,alias:"Go to Line/Column...",precondition:void 0,kbOpts:{kbExpr:p.R.focus,primary:2085,mac:{primary:293},weight:100}})}run(e){e.get(m.GK).quickAccess.show(v.PREFIX)}}(0,g.Fl)(C),c.O.as(l.Fd.Quickaccess).registerQuickAccessProvider({ctor:v,prefix:v.PREFIX,helpEntries:[{description:d.Hw.gotoLineActionLabel,commandId:C.ID}]})},28211:(e,t,i)=>{"use strict";i(97791),i(93409);var s=i(90766),n=i(18447),r=i(10350),o=i(25689),a=i(26690),c=i(74027),l=i(98067),h=i(91508);const d=[void 0,[]];function u(e,t,i=0,s=0){const n=t;return n.values&&n.values.length>1?function(e,t,i,s){let n=0;const r=[];for(const o of t){const[t,a]=g(e,o,i,s);if("number"!==typeof t)return d;n+=t,r.push(...a)}return[n,p(r)]}(e,n.values,i,s):g(e,t,i,s)}function g(e,t,i,s){const n=(0,a.dt)(t.original,t.originalLowercase,i,e,e.toLowerCase(),s,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return n?[n[0],(0,a.WJ)(n)]:d}Object.freeze({score:0});function p(e){const t=e.sort(((e,t)=>e.start-t.start)),i=[];let s;for(const n of t)s&&m(s,n)?(s.start=Math.min(s.start,n.start),s.end=Math.max(s.end,n.end)):(s=n,i.push(n));return i}function m(e,t){return!(e.end<t.start)&&!(t.end<e.start)}function f(e){return e.startsWith('"')&&e.endsWith('"')}function _(e){"string"!==typeof e&&(e="");const t=e.toLowerCase(),{pathNormalized:i,normalized:s,normalizedLowercase:n}=v(e),r=i.indexOf(c.Vn)>=0,o=f(e);let a;const l=e.split(" ");if(l.length>1)for(const c of l){const e=f(c),{pathNormalized:t,normalized:i,normalizedLowercase:s}=v(c);i&&(a||(a=[]),a.push({original:c,originalLowercase:c.toLowerCase(),pathNormalized:t,normalized:i,normalizedLowercase:s,expectContiguousMatch:e}))}return{original:e,originalLowercase:t,pathNormalized:i,normalized:s,normalizedLowercase:n,values:a,containsPathSeparator:r,expectContiguousMatch:o}}function v(e){let t;t=l.uF?e.replace(/\//g,c.Vn):e.replace(/\\/g,c.Vn);const i=(0,h.wB)(t).replace(/\s|"/g,"");return{pathNormalized:t,normalized:i,normalizedLowercase:i.toLowerCase()}}function C(e){return Array.isArray(e)?_(e.map((e=>e.original)).join(" ")):_(e.original)}var E,b=i(5662),S=i(36677),y=i(62083),w=i(29999),R=i(12437),L=i(78209),T=i(56942),x=i(46041),k=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},A=function(e,t){return function(i,s){t(i,s,e)}};let N=class extends R.o{static{E=this}static{this.PREFIX="@"}static{this.SCOPE_PREFIX=":"}static{this.PREFIX_BY_CATEGORY=`${this.PREFIX}${this.SCOPE_PREFIX}`}constructor(e,t,i=Object.create(null)){super(i),this._languageFeaturesService=e,this._outlineModelService=t,this.options=i,this.options.canAcceptInBackground=!0}provideWithoutTextEditor(e){return this.provideLabelPick(e,(0,L.kg)("cannotRunGotoSymbolWithoutEditor","To go to a symbol, first open a text editor with symbol information.")),b.jG.None}provideWithTextEditor(e,t,i,s){const n=e.editor,r=this.getModel(n);return r?this._languageFeaturesService.documentSymbolProvider.has(r)?this.doProvideWithEditorSymbols(e,r,t,i,s):this.doProvideWithoutEditorSymbols(e,r,t,i):b.jG.None}doProvideWithoutEditorSymbols(e,t,i,s){const n=new b.Cm;return this.provideLabelPick(i,(0,L.kg)("cannotRunGotoSymbolWithoutSymbolProvider","The active text editor does not provide symbol information.")),(async()=>{await this.waitForLanguageSymbolRegistry(t,n)&&!s.isCancellationRequested&&n.add(this.doProvideWithEditorSymbols(e,t,i,s))})(),n}provideLabelPick(e,t){e.items=[{label:t,index:0,kind:14}],e.ariaLabel=t}async waitForLanguageSymbolRegistry(e,t){if(this._languageFeaturesService.documentSymbolProvider.has(e))return!0;const i=new s.Zv,n=t.add(this._languageFeaturesService.documentSymbolProvider.onDidChange((()=>{this._languageFeaturesService.documentSymbolProvider.has(e)&&(n.dispose(),i.complete(!0))})));return t.add((0,b.s)((()=>i.complete(!1)))),i.p}doProvideWithEditorSymbols(e,t,i,s,r){const o=e.editor,a=new b.Cm;a.add(i.onDidAccept((t=>{const[s]=i.selectedItems;s&&s.range&&(this.gotoLocation(e,{range:s.range.selection,keyMods:i.keyMods,preserveFocus:t.inBackground}),r?.handleAccept?.(s),t.inBackground||i.hide())}))),a.add(i.onDidTriggerItemButton((({item:t})=>{t&&t.range&&(this.gotoLocation(e,{range:t.range.selection,keyMods:i.keyMods,forceSideBySide:!0}),i.hide())})));const c=this.getDocumentSymbols(t,s);let l;const h=async e=>{l?.dispose(!0),i.busy=!1,l=new n.Qi(s),i.busy=!0;try{const n=_(i.value.substr(E.PREFIX.length).trim()),r=await this.doGetSymbolPicks(c,n,void 0,l.token,t);if(s.isCancellationRequested)return;if(r.length>0){if(i.items=r,e&&0===n.original.length){const t=(0,x.Uk)(r,(t=>Boolean("separator"!==t.type&&t.range&&S.Q.containsPosition(t.range.decoration,e))));t&&(i.activeItems=[t])}}else n.original.length>0?this.provideLabelPick(i,(0,L.kg)("noMatchingSymbolResults","No matching editor symbols")):this.provideLabelPick(i,(0,L.kg)("noSymbolResults","No editor symbols"))}finally{s.isCancellationRequested||(i.busy=!1)}};return a.add(i.onDidChangeValue((()=>h(void 0)))),h(o.getSelection()?.getPosition()),a.add(i.onDidChangeActive((()=>{const[e]=i.activeItems;e&&e.range&&(o.revealRangeInCenter(e.range.selection,0),this.addDecorations(o,e.range.decoration))}))),a}async doGetSymbolPicks(e,t,i,s,n){const a=await e;if(s.isCancellationRequested)return[];const c=0===t.original.indexOf(E.SCOPE_PREFIX),l=c?1:0;let d,g,p;t.values&&t.values.length>1?(d=C(t.values[0]),g=C(t.values.slice(1))):d=t;const m=this.options?.openSideBySideDirection?.();m&&(p=[{iconClass:"right"===m?o.L.asClassName(r.W.splitHorizontal):o.L.asClassName(r.W.splitVertical),tooltip:"right"===m?(0,L.kg)("openToSide","Open to the Side"):(0,L.kg)("openToBottom","Open to the Bottom")}]);const f=[];for(let b=0;b<a.length;b++){const w=a[b],R=(0,h.Bq)(w.name),T=`$(${y.gP.toIcon(w.kind).id}) ${R}`,x=T.length-R.length;let k,A,N,D,M=w.containerName;if(i?.extraContainerLabel&&(M=M?`${i.extraContainerLabel} \u2022 ${M}`:i.extraContainerLabel),t.original.length>l){let F=!1;if(d!==t&&([k,A]=u(T,{...t,values:void 0},l,x),"number"===typeof k&&(F=!0)),"number"!==typeof k&&([k,A]=u(T,d,l,x),"number"!==typeof k))continue;if(!F&&g){if(M&&g.original.length>0&&([N,D]=u(M,g)),"number"!==typeof N)continue;"number"===typeof k&&(k+=N)}}const P=w.tags&&w.tags.indexOf(1)>=0;f.push({index:b,kind:w.kind,score:k,label:T,ariaLabel:(0,y.PK)(w.name,w.kind),description:M,highlights:P?void 0:{label:A,description:D},range:{selection:S.Q.collapseToStart(w.selectionRange),decoration:w.range},uri:n.uri,symbolName:R,strikethrough:P,buttons:p})}const _=f.sort(((e,t)=>c?this.compareByKindAndScore(e,t):this.compareByScore(e,t)));let v=[];if(c){let U,H,B=0;function W(){H&&"number"===typeof U&&B>0&&(H.label=(0,h.GP)(O[U]||I,B))}for(const V of _)U!==V.kind?(W(),U=V.kind,B=1,H={type:"separator"},v.push(H)):B++,v.push(V);W()}else _.length>0&&(v=[{label:(0,L.kg)("symbols","symbols ({0})",f.length),type:"separator"},..._]);return v}compareByScore(e,t){if("number"!==typeof e.score&&"number"===typeof t.score)return 1;if("number"===typeof e.score&&"number"!==typeof t.score)return-1;if("number"===typeof e.score&&"number"===typeof t.score){if(e.score>t.score)return-1;if(e.score<t.score)return 1}return e.index<t.index?-1:e.index>t.index?1:0}compareByKindAndScore(e,t){const i=O[e.kind]||I,s=O[t.kind]||I,n=i.localeCompare(s);return 0===n?this.compareByScore(e,t):n}async getDocumentSymbols(e,t){const i=await this._outlineModelService.getOrCreate(e,t);return t.isCancellationRequested?[]:i.asListOfDocumentSymbols()}};N=E=k([A(0,T.ILanguageFeaturesService),A(1,w.gW)],N);const I=(0,L.kg)("property","properties ({0})"),O={5:(0,L.kg)("method","methods ({0})"),11:(0,L.kg)("function","functions ({0})"),8:(0,L.kg)("_constructor","constructors ({0})"),12:(0,L.kg)("variable","variables ({0})"),4:(0,L.kg)("class","classes ({0})"),22:(0,L.kg)("struct","structs ({0})"),23:(0,L.kg)("event","events ({0})"),24:(0,L.kg)("operator","operators ({0})"),10:(0,L.kg)("interface","interfaces ({0})"),2:(0,L.kg)("namespace","namespaces ({0})"),3:(0,L.kg)("package","packages ({0})"),25:(0,L.kg)("typeParameter","type parameters ({0})"),1:(0,L.kg)("modules","modules ({0})"),6:(0,L.kg)("property","properties ({0})"),9:(0,L.kg)("enum","enumerations ({0})"),21:(0,L.kg)("enumMember","enumeration members ({0})"),14:(0,L.kg)("string","strings ({0})"),0:(0,L.kg)("file","files ({0})"),17:(0,L.kg)("array","arrays ({0})"),15:(0,L.kg)("number","numbers ({0})"),16:(0,L.kg)("boolean","booleans ({0})"),18:(0,L.kg)("object","objects ({0})"),19:(0,L.kg)("key","keys ({0})"),7:(0,L.kg)("field","fields ({0})"),13:(0,L.kg)("constant","constants ({0})")};var D=i(46359),M=i(71597),P=i(80301),F=i(51861),U=i(41234),H=i(31450),B=i(60002),W=i(51467),V=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},z=function(e,t){return function(i,s){t(i,s,e)}};let G=class extends N{constructor(e,t,i){super(t,i),this.editorService=e,this.onDidActiveTextEditorControlChange=U.Jh.None}get activeTextEditorControl(){return this.editorService.getFocusedCodeEditor()??void 0}};G=V([z(0,P.T),z(1,T.ILanguageFeaturesService),z(2,w.gW)],G);class j extends H.ks{static{this.ID="editor.action.quickOutline"}constructor(){super({id:j.ID,label:F.n9.quickOutlineActionLabel,alias:"Go to Symbol...",precondition:B.R.hasDocumentSymbolProvider,kbOpts:{kbExpr:B.R.focus,primary:3117,weight:100},contextMenuOpts:{group:"navigation",order:3}})}run(e){e.get(W.GK).quickAccess.show(N.PREFIX,{itemActivation:W.C1.NONE})}}(0,H.Fl)(j),D.O.as(M.Fd.Quickaccess).registerQuickAccessProvider({ctor:G,prefix:N.PREFIX,helpEntries:[{description:F.n9.quickOutlineActionLabel,prefix:N.PREFIX,commandId:j.ID},{description:F.n9.quickOutlineByCategoryActionLabel,prefix:N.PREFIX_BY_CATEGORY}]})},6429:(e,t,i)=>{"use strict";var s,n=i(46359),r=i(71597),o=i(51861),a=i(78209),c=i(5662),l=i(98031),h=i(51467),d=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},u=function(e,t){return function(i,s){t(i,s,e)}};let g=class{static{s=this}static{this.PREFIX="?"}constructor(e,t){this.quickInputService=e,this.keybindingService=t,this.registry=n.O.as(r.Fd.Quickaccess)}provide(e){const t=new c.Cm;return t.add(e.onDidAccept((()=>{const[t]=e.selectedItems;t&&this.quickInputService.quickAccess.show(t.prefix,{preserveValue:!0})}))),t.add(e.onDidChangeValue((e=>{const t=this.registry.getQuickAccessProvider(e.substr(s.PREFIX.length));t&&t.prefix&&t.prefix!==s.PREFIX&&this.quickInputService.quickAccess.show(t.prefix,{preserveValue:!0})}))),e.items=this.getQuickAccessProviders().filter((e=>e.prefix!==s.PREFIX)),t}getQuickAccessProviders(){return this.registry.getQuickAccessProviders().sort(((e,t)=>e.prefix.localeCompare(t.prefix))).flatMap((e=>this.createPicks(e)))}createPicks(e){return e.helpEntries.map((t=>{const i=t.prefix||e.prefix,s=i||"\u2026";return{prefix:i,label:s,keybinding:t.commandId?this.keybindingService.lookupKeybinding(t.commandId):void 0,ariaLabel:(0,a.kg)("helpPickAriaLabel","{0}, {1}",s,t.description),description:t.description}}))}};g=s=d([u(0,h.GK),u(1,l.b)],g),n.O.as(r.Fd.Quickaccess).registerQuickAccessProvider({ctor:g,prefix:"",helpEntries:[{description:o.oq.helpQuickAccessActionLabel}]})},57377:(e,t,i)=>{"use strict";var s=i(31450),n=i(80301),r=i(23646),o=i(84001),a=i(32848),c=i(63591),l=i(58591),h=i(9711),d=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},u=function(e,t){return function(i,s){t(i,s,e)}};let g=class extends r.X{constructor(e,t,i,s,n,r,o){super(!0,e,t,i,s,n,r,o)}};g=d([u(1,a.fN),u(2,n.T),u(3,l.Ot),u(4,c._Y),u(5,h.CS),u(6,o.pG)],g),(0,s.HW)(r.X.ID,g,4)},10424:(e,t,i)=>{"use strict";i.d(t,{aQ:()=>I,nr:()=>O,Sx:()=>B,po:()=>N,tj:()=>A});var s=i(8597),n=i(60413),r=i(47661),o=i(41234),a=i(62083),c=i(25982);class l{constructor(e,t,i,s,n){this._parsedThemeRuleBrand=void 0,this.token=e,this.index=t,this.fontStyle=i,this.foreground=s,this.background=n}}const h=/^#?([0-9A-Fa-f]{6})([0-9A-Fa-f]{2})?$/;class d{constructor(){this._lastColorId=0,this._id2color=[],this._color2id=new Map}getId(e){if(null===e)return 0;const t=e.match(h);if(!t)throw new Error("Illegal value for token color: "+e);e=t[1].toUpperCase();let i=this._color2id.get(e);return i||(i=++this._lastColorId,this._color2id.set(e,i),this._id2color[i]=r.Q1.fromHex("#"+e),i)}getColorMap(){return this._id2color.slice(0)}}class u{static createFromRawTokenTheme(e,t){return this.createFromParsedTokenTheme(function(e){if(!e||!Array.isArray(e))return[];const t=[];let i=0;for(let s=0,n=e.length;s<n;s++){const n=e[s];let r=-1;if("string"===typeof n.fontStyle){r=0;const e=n.fontStyle.split(" ");for(let t=0,i=e.length;t<i;t++)switch(e[t]){case"italic":r|=1;break;case"bold":r|=2;break;case"underline":r|=4;break;case"strikethrough":r|=8}}let o=null;"string"===typeof n.foreground&&(o=n.foreground);let a=null;"string"===typeof n.background&&(a=n.background),t[i++]=new l(n.token||"",s,r,o,a)}return t}(e),t)}static createFromParsedTokenTheme(e,t){return function(e,t){e.sort(((e,t)=>{const i=function(e,t){return e<t?-1:e>t?1:0}(e.token,t.token);return 0!==i?i:e.index-t.index}));let i=0,s="000000",n="ffffff";for(;e.length>=1&&""===e[0].token;){const t=e.shift();-1!==t.fontStyle&&(i=t.fontStyle),null!==t.foreground&&(s=t.foreground),null!==t.background&&(n=t.background)}const r=new d;for(const h of t)r.getId(h);const o=r.getId(s),a=r.getId(n),c=new p(i,o,a),l=new m(c);for(let h=0,d=e.length;h<d;h++){const t=e[h];l.insert(t.token,t.fontStyle,r.getId(t.foreground),r.getId(t.background))}return new u(r,l)}(e,t)}constructor(e,t){this._colorMap=e,this._root=t,this._cache=new Map}getColorMap(){return this._colorMap.getColorMap()}_match(e){return this._root.match(e)}match(e,t){let i=this._cache.get(t);if("undefined"===typeof i){const e=this._match(t),s=function(e){const t=e.match(g);if(!t)return 0;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":case"regexp":return 3}throw new Error("Unexpected match for standard token type!")}(t);i=(e.metadata|s<<8)>>>0,this._cache.set(t,i)}return(i|e)>>>0}}const g=/\b(comment|string|regex|regexp)\b/;class p{constructor(e,t,i){this._themeTrieElementRuleBrand=void 0,this._fontStyle=e,this._foreground=t,this._background=i,this.metadata=(this._fontStyle<<11|this._foreground<<15|this._background<<24)>>>0}clone(){return new p(this._fontStyle,this._foreground,this._background)}acceptOverwrite(e,t,i){-1!==e&&(this._fontStyle=e),0!==t&&(this._foreground=t),0!==i&&(this._background=i),this.metadata=(this._fontStyle<<11|this._foreground<<15|this._background<<24)>>>0}}class m{constructor(e){this._themeTrieElementBrand=void 0,this._mainRule=e,this._children=new Map}match(e){if(""===e)return this._mainRule;const t=e.indexOf(".");let i,s;-1===t?(i=e,s=""):(i=e.substring(0,t),s=e.substring(t+1));const n=this._children.get(i);return"undefined"!==typeof n?n.match(s):this._mainRule}insert(e,t,i,s){if(""===e)return void this._mainRule.acceptOverwrite(t,i,s);const n=e.indexOf(".");let r,o;-1===n?(r=e,o=""):(r=e.substring(0,n),o=e.substring(n+1));let a=this._children.get(r);"undefined"===typeof a&&(a=new m(this._mainRule.clone()),this._children.set(r,a)),a.insert(o,t,i,s)}}var f=i(87119),_=i(66261);const v={base:"vs",inherit:!1,rules:[{token:"",foreground:"000000",background:"fffffe"},{token:"invalid",foreground:"cd3131"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"001188"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"098658"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"delimiter.xml",foreground:"0000FF"},{token:"tag",foreground:"800000"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"FF0000"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"FF0000"},{token:"attribute.value",foreground:"0451A5"},{token:"attribute.value.number",foreground:"098658"},{token:"attribute.value.unit",foreground:"098658"},{token:"attribute.value.html",foreground:"0000FF"},{token:"attribute.value.xml",foreground:"0000FF"},{token:"string",foreground:"A31515"},{token:"string.html",foreground:"0000FF"},{token:"string.sql",foreground:"FF0000"},{token:"string.yaml",foreground:"0451A5"},{token:"keyword",foreground:"0000FF"},{token:"keyword.json",foreground:"0451A5"},{token:"keyword.flow",foreground:"AF00DB"},{token:"keyword.flow.scss",foreground:"0000FF"},{token:"operator.scss",foreground:"666666"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"C700C7"}],colors:{[_.YtV]:"#FFFFFE",[_.By2]:"#000000",[_.tan]:"#E5EBF1",[f.vV]:"#D3D3D3",[f.H0]:"#939393",[_.QwA]:"#ADD6FF4D"}},C={base:"vs-dark",inherit:!1,rules:[{token:"",foreground:"D4D4D4",background:"1E1E1E"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"74B0DF"},{token:"variable.predefined",foreground:"4864AA"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"B5CEA8"},{token:"number.hex",foreground:"5BB498"},{token:"regexp",foreground:"B46695"},{token:"annotation",foreground:"cc6666"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"DCDCDC"},{token:"delimiter.html",foreground:"808080"},{token:"delimiter.xml",foreground:"808080"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"A79873"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"DD6A6F"},{token:"metatag.content.html",foreground:"9CDCFE"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key.json",foreground:"9CDCFE"},{token:"string.value.json",foreground:"CE9178"},{token:"attribute.name",foreground:"9CDCFE"},{token:"attribute.value",foreground:"CE9178"},{token:"attribute.value.number.css",foreground:"B5CEA8"},{token:"attribute.value.unit.css",foreground:"B5CEA8"},{token:"attribute.value.hex.css",foreground:"D4D4D4"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"keyword.json",foreground:"CE9178"},{token:"keyword.flow.scss",foreground:"569CD6"},{token:"operator.scss",foreground:"909090"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:{[_.YtV]:"#1E1E1E",[_.By2]:"#D4D4D4",[_.tan]:"#3A3D41",[f.vV]:"#404040",[f.H0]:"#707070",[_.QwA]:"#ADD6FF26"}},E={base:"hc-black",inherit:!1,rules:[{token:"",foreground:"FFFFFF",background:"000000"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"1AEBFF"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"FFFFFF"},{token:"regexp",foreground:"C0C0C0"},{token:"annotation",foreground:"569CD6"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"FFFF00"},{token:"delimiter.html",foreground:"FFFF00"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta",foreground:"D4D4D4"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"569CD6"},{token:"metatag.content.html",foreground:"1AEBFF"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key",foreground:"9CDCFE"},{token:"string.value",foreground:"CE9178"},{token:"attribute.name",foreground:"569CD6"},{token:"attribute.value",foreground:"3FF23F"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:{[_.YtV]:"#000000",[_.By2]:"#FFFFFF",[f.vV]:"#FFFFFF",[f.H0]:"#FFFFFF"}},b={base:"hc-light",inherit:!1,rules:[{token:"",foreground:"292929",background:"FFFFFF"},{token:"invalid",foreground:"B5200D"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"264F70"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"098658"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"tag",foreground:"800000"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"B5200D"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"264F78"},{token:"attribute.value",foreground:"0451A5"},{token:"string",foreground:"A31515"},{token:"string.sql",foreground:"B5200D"},{token:"keyword",foreground:"0000FF"},{token:"keyword.flow",foreground:"AF00DB"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"C700C7"}],colors:{[_.YtV]:"#FFFFFF",[_.By2]:"#292929",[f.vV]:"#292929",[f.H0]:"#292929"}};var S=i(46359),y=i(47612),w=i(5662),R=i(86723),L=i(25689),T=i(61394);class x{getIcon(e){const t=(0,T.HT)();let i=e.defaults;for(;L.L.isThemeIcon(i);){const e=t.getIcon(i.id);if(!e)return;i=e.defaults}return i}}var k=i(25893);const A="vs",N="vs-dark",I="hc-black",O="hc-light",D=S.O.as(_.FdG.ColorContribution),M=S.O.as(y.Fd.ThemingContribution);class P{constructor(e,t){this.semanticHighlighting=!1,this.themeData=t;const i=t.base;e.length>0?(F(e)?this.id=e:this.id=i+" "+e,this.themeName=e):(this.id=i,this.themeName=i),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}get base(){return this.themeData.base}notifyBaseUpdated(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)}getColors(){if(!this.colors){const e=new Map;for(const t in this.themeData.colors)e.set(t,r.Q1.fromHex(this.themeData.colors[t]));if(this.themeData.inherit){const t=U(this.themeData.base);for(const i in t.colors)e.has(i)||e.set(i,r.Q1.fromHex(t.colors[i]))}this.colors=e}return this.colors}getColor(e,t){const i=this.getColors().get(e);return i||(!1!==t?this.getDefault(e):void 0)}getDefault(e){let t=this.defaultColors[e];return t||(t=D.resolveDefaultColor(e,this),this.defaultColors[e]=t,t)}defines(e){return this.getColors().has(e)}get type(){switch(this.base){case A:return R.zM.LIGHT;case I:return R.zM.HIGH_CONTRAST_DARK;case O:return R.zM.HIGH_CONTRAST_LIGHT;default:return R.zM.DARK}}get tokenTheme(){if(!this._tokenTheme){let e=[],t=[];if(this.themeData.inherit){const i=U(this.themeData.base);e=i.rules,i.encodedTokensColors&&(t=i.encodedTokensColors)}const i=this.themeData.colors["editor.foreground"],s=this.themeData.colors["editor.background"];if(i||s){const t={token:""};i&&(t.foreground=i),s&&(t.background=s),e.push(t)}e=e.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(t=this.themeData.encodedTokensColors),this._tokenTheme=u.createFromRawTokenTheme(e,t)}return this._tokenTheme}getTokenStyleMetadata(e,t,i){const s=this.tokenTheme._match([e].concat(t).join(".")).metadata,n=c.x.getForeground(s),r=c.x.getFontStyle(s);return{foreground:n,italic:Boolean(1&r),bold:Boolean(2&r),underline:Boolean(4&r),strikethrough:Boolean(8&r)}}}function F(e){return e===A||e===N||e===I||e===O}function U(e){switch(e){case A:return v;case N:return C;case I:return E;case O:return b}}function H(e){const t=U(e);return new P(e,t)}class B extends w.jG{constructor(){super(),this._onColorThemeChange=this._register(new o.vl),this.onDidColorThemeChange=this._onColorThemeChange.event,this._onProductIconThemeChange=this._register(new o.vl),this.onDidProductIconThemeChange=this._onProductIconThemeChange.event,this._environment=Object.create(null),this._builtInProductIconTheme=new x,this._autoDetectHighContrast=!0,this._knownThemes=new Map,this._knownThemes.set(A,H(A)),this._knownThemes.set(N,H(N)),this._knownThemes.set(I,H(I)),this._knownThemes.set(O,H(O));const e=this._register(function(e){const t=new w.Cm,i=t.add(new o.vl),n=(0,T.HT)();return t.add(n.onDidChange((()=>i.fire()))),e&&t.add(e.onDidProductIconThemeChange((()=>i.fire()))),{dispose:()=>t.dispose(),onDidChange:i.event,getCSS(){const t=e?e.getProductIconTheme():new x,i={},r=[],o=[];for(const e of n.getIcons()){const n=t.getIcon(e);if(!n)continue;const a=n.font,c=`--vscode-icon-${e.id}-font-family`,l=`--vscode-icon-${e.id}-content`;a?(i[a.id]=a.definition,o.push(`${c}: ${(0,s.yt)(a.id)};`,`${l}: '${n.fontCharacter}';`),r.push(`.codicon-${e.id}:before { content: '${n.fontCharacter}'; font-family: ${(0,s.yt)(a.id)}; }`)):(o.push(`${l}: '${n.fontCharacter}'; ${c}: 'codicon';`),r.push(`.codicon-${e.id}:before { content: '${n.fontCharacter}'; }`))}for(const e in i){const t=i[e],n=t.weight?`font-weight: ${t.weight};`:"",o=t.style?`font-style: ${t.style};`:"",a=t.src.map((e=>`${(0,s.Tf)(e.location)} format('${e.format}')`)).join(", ");r.push(`@font-face { src: ${a}; font-family: ${(0,s.yt)(e)};${n}${o} font-display: block; }`)}return r.push(`:root { ${o.join(" ")} }`),r.join("\n")}}}(this));this._codiconCSS=e.getCSS(),this._themeCSS="",this._allCSS=`${this._codiconCSS}\n${this._themeCSS}`,this._globalStyleElement=null,this._styleElements=[],this._colorMapOverride=null,this.setTheme(A),this._onOSSchemeChanged(),this._register(e.onDidChange((()=>{this._codiconCSS=e.getCSS(),this._updateCSS()}))),(0,n.Dy)(k.G,"(forced-colors: active)",(()=>{this._onOSSchemeChanged()}))}registerEditorContainer(e){return s.Cl(e)?this._registerShadowDomContainer(e):this._registerRegularEditorContainer()}_registerRegularEditorContainer(){return this._globalStyleElement||(this._globalStyleElement=s.li(void 0,(e=>{e.className="monaco-colors",e.textContent=this._allCSS})),this._styleElements.push(this._globalStyleElement)),w.jG.None}_registerShadowDomContainer(e){const t=s.li(e,(e=>{e.className="monaco-colors",e.textContent=this._allCSS}));return this._styleElements.push(t),{dispose:()=>{for(let e=0;e<this._styleElements.length;e++)if(this._styleElements[e]===t)return void this._styleElements.splice(e,1)}}}defineTheme(e,t){if(!/^[a-z0-9\-]+$/i.test(e))throw new Error("Illegal theme name!");if(!F(t.base)&&!F(e))throw new Error("Illegal theme base!");this._knownThemes.set(e,new P(e,t)),F(e)&&this._knownThemes.forEach((t=>{t.base===e&&t.notifyBaseUpdated()})),this._theme.themeName===e&&this.setTheme(e)}getColorTheme(){return this._theme}setColorMapOverride(e){this._colorMapOverride=e,this._updateThemeOrColorMap()}setTheme(e){let t;t=this._knownThemes.has(e)?this._knownThemes.get(e):this._knownThemes.get(A),this._updateActualTheme(t)}_updateActualTheme(e){e&&this._theme!==e&&(this._theme=e,this._updateThemeOrColorMap())}_onOSSchemeChanged(){if(this._autoDetectHighContrast){const e=k.G.matchMedia("(forced-colors: active)").matches;if(e!==(0,R.Bb)(this._theme.type)){let t;t=(0,R.HD)(this._theme.type)?e?I:N:e?O:A,this._updateActualTheme(this._knownThemes.get(t))}}}setAutoDetectHighContrast(e){this._autoDetectHighContrast=e,this._onOSSchemeChanged()}_updateThemeOrColorMap(){const e=[],t={},i={addRule:i=>{t[i]||(e.push(i),t[i]=!0)}};M.getThemingParticipants().forEach((e=>e(this._theme,i,this._environment)));const s=[];for(const r of D.getColors()){const e=this._theme.getColor(r.id,!0);e&&s.push(`${(0,_.Bbc)(r.id)}: ${e.toString()};`)}i.addRule(`.monaco-editor, .monaco-diff-editor, .monaco-component { ${s.join("\n")} }`);const n=this._colorMapOverride||this._theme.tokenTheme.getColorMap();i.addRule(function(e){const t=[];for(let i=1,s=e.length;i<s;i++){const s=e[i];t[i]=`.mtk${i} { color: ${s}; }`}return t.push(".mtki { font-style: italic; }"),t.push(".mtkb { font-weight: bold; }"),t.push(".mtku { text-decoration: underline; text-underline-position: under; }"),t.push(".mtks { text-decoration: line-through; }"),t.push(".mtks.mtku { text-decoration: underline line-through; text-underline-position: under; }"),t.join("\n")}(n)),this._themeCSS=e.join("\n"),this._updateCSS(),a.dG.setColorMap(n),this._onColorThemeChange.fire(this._theme)}_updateCSS(){this._allCSS=`${this._codiconCSS}\n${this._themeCSS}`,this._styleElements.forEach((e=>e.textContent=this._allCSS))}getFileIconTheme(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1}}getProductIconTheme(){return this._builtInProductIconTheme}}},22890:(e,t,i)=>{"use strict";var s=i(31450),n=i(24520),r=i(51861),o=i(86723),a=i(10424);class c extends s.ks{constructor(){super({id:"editor.action.toggleHighContrast",label:r.E6.toggleHighContrast,alias:"Toggle High Contrast Theme",precondition:void 0}),this._originalThemeName=null}run(e,t){const i=e.get(n.L),s=i.getColorTheme();(0,o.Bb)(s.type)?(i.setTheme(this._originalThemeName||((0,o.HD)(s.type)?a.po:a.tj)),this._originalThemeName=null):(i.setTheme((0,o.HD)(s.type)?a.aQ:a.nr),this._originalThemeName=s.themeName)}}(0,s.Fl)(c)},24520:(e,t,i)=>{"use strict";i.d(t,{L:()=>s});const s=(0,i(63591).u1)("themeService")},11272:(e,t,i)=>{"use strict";var s,n,r=i(80781),o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,h=(e,t,i,s)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let n of c(t))l.call(e,n)||n===i||o(e,n,{get:()=>t[n],enumerable:!(s=a(t,n))||s.enumerable});return e},d={};h(d,s=r,"default"),n&&h(n,s,"default");var u=class{constructor(e,t,i){this._onDidChange=new d.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(e){this.setOptions(e)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},g={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},p={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},m=new u("css",g,p),f=new u("scss",g,p),_=new u("less",g,p);function v(){return i.e(225).then(i.bind(i,70225))}d.languages.css={cssDefaults:m,lessDefaults:_,scssDefaults:f},d.languages.onLanguage("less",(()=>{v().then((e=>e.setupMode(_)))})),d.languages.onLanguage("scss",(()=>{v().then((e=>e.setupMode(f)))})),d.languages.onLanguage("css",(()=>{v().then((e=>e.setupMode(m)))}))},89518:(e,t,i)=>{"use strict";var s,n,r=i(80781),o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,h=(e,t,i,s)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let n of c(t))l.call(e,n)||n===i||o(e,n,{get:()=>t[n],enumerable:!(s=a(t,n))||s.enumerable});return e},d={};h(d,s=r,"default"),n&&h(n,s,"default");var u=class{constructor(e,t,i){this._onDidChange=new d.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},g={format:{tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},suggest:{},data:{useDefaultDataProvider:!0}};function p(e){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:e===m,documentFormattingEdits:e===m,documentRangeFormattingEdits:e===m}}var m="html",f="handlebars",_="razor",v=w(m,g,p(m)),C=v.defaults,E=w(f,g,p(f)),b=E.defaults,S=w(_,g,p(_)),y=S.defaults;function w(e,t=g,s=p(e)){const n=new u(e,t,s);let r;const o=d.languages.onLanguage(e,(async()=>{r=(await i.e(8821).then(i.bind(i,68821))).setupMode(n)}));return{defaults:n,dispose(){o.dispose(),r?.dispose(),r=void 0}}}d.languages.html={htmlDefaults:C,razorDefaults:y,handlebarDefaults:b,htmlLanguageService:v,handlebarLanguageService:E,razorLanguageService:S,registerHTMLLanguageService:w}},99669:(e,t,i)=>{"use strict";var s,n,r=i(80781),o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,h=(e,t,i,s)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let n of c(t))l.call(e,n)||n===i||o(e,n,{get:()=>t[n],enumerable:!(s=a(t,n))||s.enumerable});return e},d={};h(d,s=r,"default"),n&&h(n,s,"default");var u=new class{constructor(e,t,i){this._onDidChange=new d.Emitter,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}}("json",{validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},{documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0});function g(){return i.e(6447).then(i.bind(i,66447))}d.languages.json={jsonDefaults:u,getWorker:()=>g().then((e=>e.getWorker()))},d.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]}),d.languages.onLanguage("json",(()=>{g().then((e=>e.setupMode(u)))}))},24152:(e,t,i)=>{"use strict";i.d(t,{IF:()=>C});var s,n,r=i(80781),o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,h=(e,t,i,s)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let n of c(t))l.call(e,n)||n===i||o(e,n,{get:()=>t[n],enumerable:!(s=a(t,n))||s.enumerable});return e},d={};h(d,s=r,"default"),n&&h(n,s,"default");var u=(e=>(e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ESNext=99]="ESNext",e))(u||{}),g=(e=>(e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative",e[e.ReactJSX=4]="ReactJSX",e[e.ReactJSXDev=5]="ReactJSXDev",e))(g||{}),p=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(p||{}),m=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(m||{}),f=(e=>(e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs",e))(f||{}),_=class{constructor(e,t,i,s,n){this._onDidChange=new d.Emitter,this._onDidExtraLibsChange=new d.Emitter,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(e),this.setDiagnosticsOptions(t),this.setWorkerOptions(i),this.setInlayHintsOptions(s),this.setModeConfiguration(n),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get modeConfiguration(){return this._modeConfiguration}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(e,t){let i;if(i="undefined"===typeof t?`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t,this._extraLibs[i]&&this._extraLibs[i].content===e)return{dispose:()=>{}};let s=1;return this._removedExtraLibs[i]&&(s=this._removedExtraLibs[i]+1),this._extraLibs[i]&&(s=this._extraLibs[i].version+1),this._extraLibs[i]={content:e,version:s},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let e=this._extraLibs[i];e&&e.version===s&&(delete this._extraLibs[i],this._removedExtraLibs[i]=s,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(e){for(const t in this._extraLibs)this._removedExtraLibs[t]=this._extraLibs[t].version;if(this._extraLibs=Object.create(null),e&&e.length>0)for(const t of e){const e=t.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=t.content;let s=1;this._removedExtraLibs[e]&&(s=this._removedExtraLibs[e]+1),this._extraLibs[e]={content:i,version:s}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){-1===this._onDidExtraLibsChangeTimeout&&(this._onDidExtraLibsChangeTimeout=window.setTimeout((()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)}),0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(e){this._compilerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(e){this._workerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(e){this._inlayHintsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(e){}setEagerModelSync(e){this._eagerModelSync=e}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(void 0)}},v={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,diagnostics:!0,documentRangeFormattingEdits:!0,signatureHelp:!0,onTypeFormattingEdits:!0,codeActions:!0,inlayHints:!0},C=new _({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},v),E=new _({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},v);function b(){return i.e(8979).then(i.bind(i,78979))}d.languages.typescript={ModuleKind:u,JsxEmit:g,NewLineKind:p,ScriptTarget:m,ModuleResolutionKind:f,typescriptVersion:"5.4.5",typescriptDefaults:C,javascriptDefaults:E,getTypeScriptWorker:()=>b().then((e=>e.getTypeScriptWorker())),getJavaScriptWorker:()=>b().then((e=>e.getJavaScriptWorker()))},d.languages.onLanguage("typescript",(()=>b().then((e=>e.setupTypeScript(C))))),d.languages.onLanguage("javascript",(()=>b().then((e=>e.setupJavaScript(E)))))},78209:(e,t,i)=>{"use strict";function s(){return globalThis._VSCODE_NLS_MESSAGES}function n(){return globalThis._VSCODE_NLS_LANGUAGE}i.d(t,{i8:()=>n,Ec:()=>s,kg:()=>a,aS:()=>l});const r="pseudo"===n()||"undefined"!==typeof document&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function o(e,t){let i;return i=0===t.length?e:e.replace(/\{(\d+)\}/g,((e,i)=>{const s=i[0],n=t[s];let r=e;return"string"===typeof n?r=n:"number"!==typeof n&&"boolean"!==typeof n&&void 0!==n&&null!==n||(r=String(n)),r})),r&&(i="\uff3b"+i.replace(/[aouei]/g,"$&$&")+"\uff3d"),i}function a(e,t,...i){return o("number"===typeof e?c(e,t):t,i)}function c(e,t){const i=s()?.[e];if("string"!==typeof i){if("string"===typeof t)return t;throw new Error(`!!! NLS MISSING: ${e} !!!`)}return i}function l(e,t,...i){let s;s="number"===typeof e?c(e,t):t;const n=o(s,i);return{value:n,original:t===s?n:o(t,i)}}},96282:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});const s=new class{constructor(){this._implementations=[]}register(e){return this._implementations.push(e),{dispose:()=>{const t=this._implementations.indexOf(e);-1!==t&&this._implementations.splice(t,1)}}}getImplementations(){return this._implementations}}},253:(e,t,i)=>{"use strict";i.d(t,{f:()=>r,j:()=>n});var s=i(32848);const n=(0,i(63591).u1)("accessibilityService"),r=new s.N1("accessibilityModeEnabled",!1)},87213:(e,t,i)=>{"use strict";i.d(t,{Nt:()=>n,Rh:()=>a});var s=i(78209);const n=(0,i(63591).u1)("accessibilitySignalService");Symbol("AcknowledgeDocCommentsToken");class r{static register(e){return new r(e.fileName)}static{this.error=r.register({fileName:"error.mp3"})}static{this.warning=r.register({fileName:"warning.mp3"})}static{this.success=r.register({fileName:"success.mp3"})}static{this.foldedArea=r.register({fileName:"foldedAreas.mp3"})}static{this.break=r.register({fileName:"break.mp3"})}static{this.quickFixes=r.register({fileName:"quickFixes.mp3"})}static{this.taskCompleted=r.register({fileName:"taskCompleted.mp3"})}static{this.taskFailed=r.register({fileName:"taskFailed.mp3"})}static{this.terminalBell=r.register({fileName:"terminalBell.mp3"})}static{this.diffLineInserted=r.register({fileName:"diffLineInserted.mp3"})}static{this.diffLineDeleted=r.register({fileName:"diffLineDeleted.mp3"})}static{this.diffLineModified=r.register({fileName:"diffLineModified.mp3"})}static{this.chatRequestSent=r.register({fileName:"chatRequestSent.mp3"})}static{this.chatResponseReceived1=r.register({fileName:"chatResponseReceived1.mp3"})}static{this.chatResponseReceived2=r.register({fileName:"chatResponseReceived2.mp3"})}static{this.chatResponseReceived3=r.register({fileName:"chatResponseReceived3.mp3"})}static{this.chatResponseReceived4=r.register({fileName:"chatResponseReceived4.mp3"})}static{this.clear=r.register({fileName:"clear.mp3"})}static{this.save=r.register({fileName:"save.mp3"})}static{this.format=r.register({fileName:"format.mp3"})}static{this.voiceRecordingStarted=r.register({fileName:"voiceRecordingStarted.mp3"})}static{this.voiceRecordingStopped=r.register({fileName:"voiceRecordingStopped.mp3"})}static{this.progress=r.register({fileName:"progress.mp3"})}constructor(e){this.fileName=e}}class o{constructor(e){this.randomOneOf=e}}class a{constructor(e,t,i,s,n,r){this.sound=e,this.name=t,this.legacySoundSettingsKey=i,this.settingsKey=s,this.legacyAnnouncementSettingsKey=n,this.announcementMessage=r}static{this._signals=new Set}static register(e){const t=new o("randomOneOf"in e.sound?e.sound.randomOneOf:[e.sound]),i=new a(t,e.name,e.legacySoundSettingsKey,e.settingsKey,e.legacyAnnouncementSettingsKey,e.announcementMessage);return a._signals.add(i),i}static{this.errorAtPosition=a.register({name:(0,s.kg)("accessibilitySignals.positionHasError.name","Error at Position"),sound:r.error,announcementMessage:(0,s.kg)("accessibility.signals.positionHasError","Error"),settingsKey:"accessibility.signals.positionHasError",delaySettingsKey:"accessibility.signalOptions.delays.errorAtPosition"})}static{this.warningAtPosition=a.register({name:(0,s.kg)("accessibilitySignals.positionHasWarning.name","Warning at Position"),sound:r.warning,announcementMessage:(0,s.kg)("accessibility.signals.positionHasWarning","Warning"),settingsKey:"accessibility.signals.positionHasWarning",delaySettingsKey:"accessibility.signalOptions.delays.warningAtPosition"})}static{this.errorOnLine=a.register({name:(0,s.kg)("accessibilitySignals.lineHasError.name","Error on Line"),sound:r.error,legacySoundSettingsKey:"audioCues.lineHasError",legacyAnnouncementSettingsKey:"accessibility.alert.error",announcementMessage:(0,s.kg)("accessibility.signals.lineHasError","Error on Line"),settingsKey:"accessibility.signals.lineHasError"})}static{this.warningOnLine=a.register({name:(0,s.kg)("accessibilitySignals.lineHasWarning.name","Warning on Line"),sound:r.warning,legacySoundSettingsKey:"audioCues.lineHasWarning",legacyAnnouncementSettingsKey:"accessibility.alert.warning",announcementMessage:(0,s.kg)("accessibility.signals.lineHasWarning","Warning on Line"),settingsKey:"accessibility.signals.lineHasWarning"})}static{this.foldedArea=a.register({name:(0,s.kg)("accessibilitySignals.lineHasFoldedArea.name","Folded Area on Line"),sound:r.foldedArea,legacySoundSettingsKey:"audioCues.lineHasFoldedArea",legacyAnnouncementSettingsKey:"accessibility.alert.foldedArea",announcementMessage:(0,s.kg)("accessibility.signals.lineHasFoldedArea","Folded"),settingsKey:"accessibility.signals.lineHasFoldedArea"})}static{this.break=a.register({name:(0,s.kg)("accessibilitySignals.lineHasBreakpoint.name","Breakpoint on Line"),sound:r.break,legacySoundSettingsKey:"audioCues.lineHasBreakpoint",legacyAnnouncementSettingsKey:"accessibility.alert.breakpoint",announcementMessage:(0,s.kg)("accessibility.signals.lineHasBreakpoint","Breakpoint"),settingsKey:"accessibility.signals.lineHasBreakpoint"})}static{this.inlineSuggestion=a.register({name:(0,s.kg)("accessibilitySignals.lineHasInlineSuggestion.name","Inline Suggestion on Line"),sound:r.quickFixes,legacySoundSettingsKey:"audioCues.lineHasInlineSuggestion",settingsKey:"accessibility.signals.lineHasInlineSuggestion"})}static{this.terminalQuickFix=a.register({name:(0,s.kg)("accessibilitySignals.terminalQuickFix.name","Terminal Quick Fix"),sound:r.quickFixes,legacySoundSettingsKey:"audioCues.terminalQuickFix",legacyAnnouncementSettingsKey:"accessibility.alert.terminalQuickFix",announcementMessage:(0,s.kg)("accessibility.signals.terminalQuickFix","Quick Fix"),settingsKey:"accessibility.signals.terminalQuickFix"})}static{this.onDebugBreak=a.register({name:(0,s.kg)("accessibilitySignals.onDebugBreak.name","Debugger Stopped on Breakpoint"),sound:r.break,legacySoundSettingsKey:"audioCues.onDebugBreak",legacyAnnouncementSettingsKey:"accessibility.alert.onDebugBreak",announcementMessage:(0,s.kg)("accessibility.signals.onDebugBreak","Breakpoint"),settingsKey:"accessibility.signals.onDebugBreak"})}static{this.noInlayHints=a.register({name:(0,s.kg)("accessibilitySignals.noInlayHints","No Inlay Hints on Line"),sound:r.error,legacySoundSettingsKey:"audioCues.noInlayHints",legacyAnnouncementSettingsKey:"accessibility.alert.noInlayHints",announcementMessage:(0,s.kg)("accessibility.signals.noInlayHints","No Inlay Hints"),settingsKey:"accessibility.signals.noInlayHints"})}static{this.taskCompleted=a.register({name:(0,s.kg)("accessibilitySignals.taskCompleted","Task Completed"),sound:r.taskCompleted,legacySoundSettingsKey:"audioCues.taskCompleted",legacyAnnouncementSettingsKey:"accessibility.alert.taskCompleted",announcementMessage:(0,s.kg)("accessibility.signals.taskCompleted","Task Completed"),settingsKey:"accessibility.signals.taskCompleted"})}static{this.taskFailed=a.register({name:(0,s.kg)("accessibilitySignals.taskFailed","Task Failed"),sound:r.taskFailed,legacySoundSettingsKey:"audioCues.taskFailed",legacyAnnouncementSettingsKey:"accessibility.alert.taskFailed",announcementMessage:(0,s.kg)("accessibility.signals.taskFailed","Task Failed"),settingsKey:"accessibility.signals.taskFailed"})}static{this.terminalCommandFailed=a.register({name:(0,s.kg)("accessibilitySignals.terminalCommandFailed","Terminal Command Failed"),sound:r.error,legacySoundSettingsKey:"audioCues.terminalCommandFailed",legacyAnnouncementSettingsKey:"accessibility.alert.terminalCommandFailed",announcementMessage:(0,s.kg)("accessibility.signals.terminalCommandFailed","Command Failed"),settingsKey:"accessibility.signals.terminalCommandFailed"})}static{this.terminalCommandSucceeded=a.register({name:(0,s.kg)("accessibilitySignals.terminalCommandSucceeded","Terminal Command Succeeded"),sound:r.success,announcementMessage:(0,s.kg)("accessibility.signals.terminalCommandSucceeded","Command Succeeded"),settingsKey:"accessibility.signals.terminalCommandSucceeded"})}static{this.terminalBell=a.register({name:(0,s.kg)("accessibilitySignals.terminalBell","Terminal Bell"),sound:r.terminalBell,legacySoundSettingsKey:"audioCues.terminalBell",legacyAnnouncementSettingsKey:"accessibility.alert.terminalBell",announcementMessage:(0,s.kg)("accessibility.signals.terminalBell","Terminal Bell"),settingsKey:"accessibility.signals.terminalBell"})}static{this.notebookCellCompleted=a.register({name:(0,s.kg)("accessibilitySignals.notebookCellCompleted","Notebook Cell Completed"),sound:r.taskCompleted,legacySoundSettingsKey:"audioCues.notebookCellCompleted",legacyAnnouncementSettingsKey:"accessibility.alert.notebookCellCompleted",announcementMessage:(0,s.kg)("accessibility.signals.notebookCellCompleted","Notebook Cell Completed"),settingsKey:"accessibility.signals.notebookCellCompleted"})}static{this.notebookCellFailed=a.register({name:(0,s.kg)("accessibilitySignals.notebookCellFailed","Notebook Cell Failed"),sound:r.taskFailed,legacySoundSettingsKey:"audioCues.notebookCellFailed",legacyAnnouncementSettingsKey:"accessibility.alert.notebookCellFailed",announcementMessage:(0,s.kg)("accessibility.signals.notebookCellFailed","Notebook Cell Failed"),settingsKey:"accessibility.signals.notebookCellFailed"})}static{this.diffLineInserted=a.register({name:(0,s.kg)("accessibilitySignals.diffLineInserted","Diff Line Inserted"),sound:r.diffLineInserted,legacySoundSettingsKey:"audioCues.diffLineInserted",settingsKey:"accessibility.signals.diffLineInserted"})}static{this.diffLineDeleted=a.register({name:(0,s.kg)("accessibilitySignals.diffLineDeleted","Diff Line Deleted"),sound:r.diffLineDeleted,legacySoundSettingsKey:"audioCues.diffLineDeleted",settingsKey:"accessibility.signals.diffLineDeleted"})}static{this.diffLineModified=a.register({name:(0,s.kg)("accessibilitySignals.diffLineModified","Diff Line Modified"),sound:r.diffLineModified,legacySoundSettingsKey:"audioCues.diffLineModified",settingsKey:"accessibility.signals.diffLineModified"})}static{this.chatRequestSent=a.register({name:(0,s.kg)("accessibilitySignals.chatRequestSent","Chat Request Sent"),sound:r.chatRequestSent,legacySoundSettingsKey:"audioCues.chatRequestSent",legacyAnnouncementSettingsKey:"accessibility.alert.chatRequestSent",announcementMessage:(0,s.kg)("accessibility.signals.chatRequestSent","Chat Request Sent"),settingsKey:"accessibility.signals.chatRequestSent"})}static{this.chatResponseReceived=a.register({name:(0,s.kg)("accessibilitySignals.chatResponseReceived","Chat Response Received"),legacySoundSettingsKey:"audioCues.chatResponseReceived",sound:{randomOneOf:[r.chatResponseReceived1,r.chatResponseReceived2,r.chatResponseReceived3,r.chatResponseReceived4]},settingsKey:"accessibility.signals.chatResponseReceived"})}static{this.progress=a.register({name:(0,s.kg)("accessibilitySignals.progress","Progress"),sound:r.progress,legacySoundSettingsKey:"audioCues.chatResponsePending",legacyAnnouncementSettingsKey:"accessibility.alert.progress",announcementMessage:(0,s.kg)("accessibility.signals.progress","Progress"),settingsKey:"accessibility.signals.progress"})}static{this.clear=a.register({name:(0,s.kg)("accessibilitySignals.clear","Clear"),sound:r.clear,legacySoundSettingsKey:"audioCues.clear",legacyAnnouncementSettingsKey:"accessibility.alert.clear",announcementMessage:(0,s.kg)("accessibility.signals.clear","Clear"),settingsKey:"accessibility.signals.clear"})}static{this.save=a.register({name:(0,s.kg)("accessibilitySignals.save","Save"),sound:r.save,legacySoundSettingsKey:"audioCues.save",legacyAnnouncementSettingsKey:"accessibility.alert.save",announcementMessage:(0,s.kg)("accessibility.signals.save","Save"),settingsKey:"accessibility.signals.save"})}static{this.format=a.register({name:(0,s.kg)("accessibilitySignals.format","Format"),sound:r.format,legacySoundSettingsKey:"audioCues.format",legacyAnnouncementSettingsKey:"accessibility.alert.format",announcementMessage:(0,s.kg)("accessibility.signals.format","Format"),settingsKey:"accessibility.signals.format"})}static{this.voiceRecordingStarted=a.register({name:(0,s.kg)("accessibilitySignals.voiceRecordingStarted","Voice Recording Started"),sound:r.voiceRecordingStarted,legacySoundSettingsKey:"audioCues.voiceRecordingStarted",settingsKey:"accessibility.signals.voiceRecordingStarted"})}static{this.voiceRecordingStopped=a.register({name:(0,s.kg)("accessibilitySignals.voiceRecordingStopped","Voice Recording Stopped"),sound:r.voiceRecordingStopped,legacySoundSettingsKey:"audioCues.voiceRecordingStopped",settingsKey:"accessibility.signals.voiceRecordingStopped"})}}},73983:(e,t,i)=>{"use strict";function s(e){return e&&"object"===typeof e&&"string"===typeof e.original&&"string"===typeof e.value}function n(e){return!!e&&void 0!==e.condition}i.d(t,{N:()=>n,f:()=>s})},57629:(e,t,i)=>{"use strict";i.d(t,{oq:()=>I,rr:()=>O,rN:()=>F,Ot:()=>A,$u:()=>k});var s=i(8597),n=i(72962),r=i(5646),o=i(89506),a=i(36921),c=i(83619),l=i(5662),h=i(98067),d=i(78209),u=i(27195),g=i(73983),p=i(32848),m=i(47508),f=i(63591),_=i(98031),v=i(58591),C=i(9711),E=i(47612),b=i(25689),S=i(86723),y=i(631),w=i(66261),R=i(19070),L=i(253),T=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},x=function(e,t){return function(i,s){t(i,s,e)}};function k(e,t,i,n){let r,o,a;if(Array.isArray(e))a=e,r=t,o=i;else{const s=t;a=e.getActions(s),r=i,o=n}const c=s.Di.getInstance();N(a,r,c.keyStatus.altKey||(h.uF||h.j9)&&c.keyStatus.shiftKey,o?e=>e===o:e=>"navigation"===e)}function A(e,t,i,s,n,r){let o,a,c,l,h;if(Array.isArray(e))h=e,o=t,a=i,c=s,l=n;else{const d=t;h=e.getActions(d),o=i,a=s,c=n,l=r}N(h,o,!1,"string"===typeof a?e=>e===a:a,c,l)}function N(e,t,i,s=e=>"navigation"===e,n=()=>!1,r=!1){let o,c;Array.isArray(t)?(o=t,c=t):(o=t.primary,c=t.secondary);const l=new Set;for(const[h,d]of e){let e;s(h)?(e=o,e.length>0&&r&&e.push(new a.wv)):(e=c,e.length>0&&e.push(new a.wv));for(let t of d){i&&(t=t instanceof u.Xe&&t.alt?t.alt:t);const s=e.push(t);t instanceof a.YH&&l.add({group:h,action:t,index:s-1})}}for(const{group:a,action:h,index:d}of l){const e=s(a)?o:c,t=h.actions;n(h,a,e.length)&&e.splice(d,1,...t)}}let I=class extends r.Z4{constructor(e,t,i,n,r,o,a,c){super(void 0,e,{icon:!(!e.class&&!e.item.icon),label:!e.class&&!e.item.icon,draggable:t?.draggable,keybinding:t?.keybinding,hoverDelegate:t?.hoverDelegate}),this._options=t,this._keybindingService=i,this._notificationService=n,this._contextKeyService=r,this._themeService=o,this._contextMenuService=a,this._accessibilityService=c,this._wantsAltCommand=!1,this._itemClassDispose=this._register(new l.HE),this._altKey=s.Di.getInstance()}get _menuItemAction(){return this._action}get _commandAction(){return this._wantsAltCommand&&this._menuItemAction.alt||this._menuItemAction}async onClick(e){e.preventDefault(),e.stopPropagation();try{await this.actionRunner.run(this._commandAction,this._context)}catch(t){this._notificationService.error(t)}}render(e){if(super.render(e),e.classList.add("menu-entry"),this.options.icon&&this._updateItemClass(this._menuItemAction.item),this._menuItemAction.alt){let t=!1;const i=()=>{const e=!!this._menuItemAction.alt?.enabled&&(!this._accessibilityService.isMotionReduced()||t)&&(this._altKey.keyStatus.altKey||this._altKey.keyStatus.shiftKey&&t);e!==this._wantsAltCommand&&(this._wantsAltCommand=e,this.updateLabel(),this.updateTooltip(),this.updateClass())};this._register(this._altKey.event(i)),this._register((0,s.ko)(e,"mouseleave",(e=>{t=!1,i()}))),this._register((0,s.ko)(e,"mouseenter",(e=>{t=!0,i()}))),i()}}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this._commandAction.label)}getTooltip(){const e=this._keybindingService.lookupKeybinding(this._commandAction.id,this._contextKeyService),t=e&&e.getLabel(),i=this._commandAction.tooltip||this._commandAction.label;let s=t?(0,d.kg)("titleAndKb","{0} ({1})",i,t):i;if(!this._wantsAltCommand&&this._menuItemAction.alt?.enabled){const e=this._menuItemAction.alt.tooltip||this._menuItemAction.alt.label,t=this._keybindingService.lookupKeybinding(this._menuItemAction.alt.id,this._contextKeyService),i=t&&t.getLabel(),n=i?(0,d.kg)("titleAndKb","{0} ({1})",e,i):e;s=(0,d.kg)("titleAndKbAndAlt","{0}\n[{1}] {2}",s,c.Of.modifierLabels[h.OS].altKey,n)}return s}updateClass(){this.options.icon&&(this._commandAction!==this._menuItemAction?this._menuItemAction.alt&&this._updateItemClass(this._menuItemAction.alt.item):this._updateItemClass(this._menuItemAction.item))}_updateItemClass(e){this._itemClassDispose.value=void 0;const{element:t,label:i}=this;if(!t||!i)return;const n=this._commandAction.checked&&(0,g.N)(e.toggled)&&e.toggled.icon?e.toggled.icon:e.icon;if(n)if(b.L.isThemeIcon(n)){const e=b.L.asClassNameArray(n);i.classList.add(...e),this._itemClassDispose.value=(0,l.s)((()=>{i.classList.remove(...e)}))}else i.style.backgroundImage=(0,S.HD)(this._themeService.getColorTheme().type)?(0,s.Tf)(n.dark):(0,s.Tf)(n.light),i.classList.add("icon"),this._itemClassDispose.value=(0,l.qE)((0,l.s)((()=>{i.style.backgroundImage="",i.classList.remove("icon")})),this._themeService.onDidColorThemeChange((()=>{this.updateClass()})))}};I=T([x(2,_.b),x(3,v.Ot),x(4,p.fN),x(5,E.Gy),x(6,m.Z),x(7,L.j)],I);class O extends I{render(e){this.options.label=!0,this.options.icon=!1,super.render(e),e.classList.add("text-only"),e.classList.toggle("use-comma",this._options?.useComma??!1)}updateLabel(){const e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();if(this.label){const t=O._symbolPrintEnter(e);this._options?.conversational?this.label.textContent=(0,d.kg)({key:"content2",comment:['A label with keybindg like "ESC to dismiss"']},"{1} to {0}",this._action.label,t):this.label.textContent=(0,d.kg)({key:"content",comment:["A label","A keybinding"]},"{0} ({1})",this._action.label,t)}}static _symbolPrintEnter(e){return e.getLabel()?.replace(/\benter\b/gi,"\u23ce").replace(/\bEscape\b/gi,"Esc")}}let D=class extends o.d{constructor(e,t,i,s,n){const r={...t,menuAsChild:t?.menuAsChild??!1,classNames:t?.classNames??(b.L.isThemeIcon(e.item.icon)?b.L.asClassName(e.item.icon):void 0),keybindingProvider:t?.keybindingProvider??(e=>i.lookupKeybinding(e.id))};super(e,{getActions:()=>e.actions},s,r),this._keybindingService=i,this._contextMenuService=s,this._themeService=n}render(e){super.render(e),(0,y.j)(this.element),e.classList.add("menu-entry");const t=this._action,{icon:i}=t.item;if(i&&!b.L.isThemeIcon(i)){this.element.classList.add("icon");const e=()=>{this.element&&(this.element.style.backgroundImage=(0,S.HD)(this._themeService.getColorTheme().type)?(0,s.Tf)(i.dark):(0,s.Tf)(i.light))};e(),this._register(this._themeService.onDidColorThemeChange((()=>{e()})))}}};D=T([x(2,_.b),x(3,m.Z),x(4,E.Gy)],D);let M=class extends r.EH{constructor(e,t,i,s,n,r,c,l){let h;super(null,e),this._keybindingService=i,this._notificationService=s,this._contextMenuService=n,this._menuService=r,this._instaService=c,this._storageService=l,this._container=null,this._options=t,this._storageKey=`${e.item.submenu.id}_lastActionId`;const d=t?.persistLastActionId?l.get(this._storageKey,1):void 0;d&&(h=e.actions.find((e=>d===e.id))),h||(h=e.actions[0]),this._defaultAction=this._instaService.createInstance(I,h,{keybinding:this._getDefaultActionKeybindingLabel(h)});const g={keybindingProvider:e=>this._keybindingService.lookupKeybinding(e.id),...t,menuAsChild:t?.menuAsChild??!0,classNames:t?.classNames??["codicon","codicon-chevron-down"],actionRunner:t?.actionRunner??new a.LN};this._dropdown=new o.d(e,e.actions,this._contextMenuService,g),this._register(this._dropdown.actionRunner.onDidRun((e=>{e.action instanceof u.Xe&&this.update(e.action)})))}update(e){this._options?.persistLastActionId&&this._storageService.store(this._storageKey,e.id,1,1),this._defaultAction.dispose(),this._defaultAction=this._instaService.createInstance(I,e,{keybinding:this._getDefaultActionKeybindingLabel(e)}),this._defaultAction.actionRunner=new class extends a.LN{async runAction(e,t){await e.run(void 0)}},this._container&&this._defaultAction.render((0,s.Hs)(this._container,(0,s.$)(".action-container")))}_getDefaultActionKeybindingLabel(e){let t;if(this._options?.renderKeybindingWithDefaultActionLabel){const i=this._keybindingService.lookupKeybinding(e.id);i&&(t=`(${i.getLabel()})`)}return t}setActionContext(e){super.setActionContext(e),this._defaultAction.setActionContext(e),this._dropdown.setActionContext(e)}render(e){this._container=e,super.render(this._container),this._container.classList.add("monaco-dropdown-with-default");const t=(0,s.$)(".action-container");this._defaultAction.render((0,s.BC)(this._container,t)),this._register((0,s.ko)(t,s.Bx.KEY_DOWN,(e=>{const t=new n.Z(e);t.equals(17)&&(this._defaultAction.element.tabIndex=-1,this._dropdown.focus(),t.stopPropagation())})));const i=(0,s.$)(".dropdown-action-container");this._dropdown.render((0,s.BC)(this._container,i)),this._register((0,s.ko)(i,s.Bx.KEY_DOWN,(e=>{const t=new n.Z(e);t.equals(15)&&(this._defaultAction.element.tabIndex=0,this._dropdown.setFocusable(!1),this._defaultAction.element?.focus(),t.stopPropagation())})))}focus(e){e?this._dropdown.focus():(this._defaultAction.element.tabIndex=0,this._defaultAction.element.focus())}blur(){this._defaultAction.element.tabIndex=-1,this._dropdown.blur(),this._container.blur()}setFocusable(e){e?this._defaultAction.element.tabIndex=0:(this._defaultAction.element.tabIndex=-1,this._dropdown.setFocusable(!1))}dispose(){this._defaultAction.dispose(),this._dropdown.dispose(),super.dispose()}};M=T([x(2,_.b),x(3,v.Ot),x(4,m.Z),x(5,u.ez),x(6,f._Y),x(7,C.CS)],M);let P=class extends r.XF{constructor(e,t){super(null,e,e.actions.map((e=>({text:e.id===a.wv.ID?"\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500":e.label,isDisabled:!e.enabled}))),0,t,R.RE,{ariaLabel:e.tooltip,optionsAsChildren:!0}),this.select(Math.max(0,e.actions.findIndex((e=>e.checked))))}render(e){super.render(e),e.style.borderColor=(0,w.GuP)(w.HcB)}runAction(e,t){const i=this.action.actions[t];i&&this.actionRunner.run(i)}};function F(e,t,i){return t instanceof u.Xe?e.createInstance(I,t,i):t instanceof u.nI?t.item.isSelection?e.createInstance(P,t):t.item.rememberDefaultAction?e.createInstance(M,t,{...i,persistLastActionId:!0}):e.createInstance(D,t,i):void 0}P=T([x(1,m.l)],P)},65644:(e,t,i)=>{"use strict";i.d(t,{m:()=>N,p:()=>A});var s=i(8597),n=i(47358),r=i(11799),o=i(89506),a=i(36921),c=i(10350),l=i(25689),h=i(41234),d=i(5662),u=i(78209),g=i(42904);class p extends d.jG{constructor(e,t,i={orientation:0}){super(),this.submenuActionViewItems=[],this.hasSecondaryActions=!1,this._onDidChangeDropdownVisibility=this._register(new h._B),this.onDidChangeDropdownVisibility=this._onDidChangeDropdownVisibility.event,this.disposables=this._register(new d.Cm),i.hoverDelegate=i.hoverDelegate??this._register((0,g.bW)()),this.options=i,this.toggleMenuAction=this._register(new m((()=>this.toggleMenuActionViewItem?.show()),i.toggleMenuTitle)),this.element=document.createElement("div"),this.element.className="monaco-toolbar",e.appendChild(this.element),this.actionBar=this._register(new r.E(this.element,{orientation:i.orientation,ariaLabel:i.ariaLabel,actionRunner:i.actionRunner,allowContextMenu:i.allowContextMenu,highlightToggledItems:i.highlightToggledItems,hoverDelegate:i.hoverDelegate,actionViewItemProvider:(e,s)=>{if(e.id===m.ID)return this.toggleMenuActionViewItem=new o.d(e,e.menuActions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:l.L.asClassNameArray(i.moreIcon??c.W.toolBarMore),anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement,skipTelemetry:this.options.skipTelemetry,isMenu:!0,hoverDelegate:this.options.hoverDelegate}),this.toggleMenuActionViewItem.setActionContext(this.actionBar.context),this.disposables.add(this._onDidChangeDropdownVisibility.add(this.toggleMenuActionViewItem.onDidChangeVisibility)),this.toggleMenuActionViewItem;if(i.actionViewItemProvider){const t=i.actionViewItemProvider(e,s);if(t)return t}if(e instanceof a.YH){const i=new o.d(e,e.actions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:e.class,anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement,skipTelemetry:this.options.skipTelemetry,hoverDelegate:this.options.hoverDelegate});return i.setActionContext(this.actionBar.context),this.submenuActionViewItems.push(i),this.disposables.add(this._onDidChangeDropdownVisibility.add(i.onDidChangeVisibility)),i}}}))}set actionRunner(e){this.actionBar.actionRunner=e}get actionRunner(){return this.actionBar.actionRunner}getElement(){return this.element}getItemAction(e){return this.actionBar.getAction(e)}setActions(e,t){this.clear();const i=e?e.slice(0):[];this.hasSecondaryActions=!!(t&&t.length>0),this.hasSecondaryActions&&t&&(this.toggleMenuAction.menuActions=t.slice(0),i.push(this.toggleMenuAction)),i.forEach((e=>{this.actionBar.push(e,{icon:this.options.icon??!0,label:this.options.label??!1,keybinding:this.getKeybindingLabel(e)})}))}getKeybindingLabel(e){const t=this.options.getKeyBinding?.(e);return t?.getLabel()??void 0}clear(){this.submenuActionViewItems=[],this.disposables.clear(),this.actionBar.clear()}dispose(){this.clear(),this.disposables.dispose(),super.dispose()}}class m extends a.rc{static{this.ID="toolbar.toggle.more"}constructor(e,t){t=t||u.kg("moreActions","More Actions..."),super(m.ID,t,void 0,!0),this._menuActions=[],this.toggleDropdownMenu=e}async run(){this.toggleDropdownMenu()}get menuActions(){return this._menuActions}set menuActions(e){this._menuActions=e}}var f=i(25890),_=i(48495),v=i(64383),C=i(42522),E=i(57629),b=i(27195),S=i(60858),y=i(50091),w=i(32848),R=i(47508),L=i(98031),T=i(90651),x=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},k=function(e,t){return function(i,s){t(i,s,e)}};let A=class extends p{constructor(e,t,i,s,n,r,o,a){super(e,n,{getKeyBinding:e=>r.lookupKeybinding(e.id)??void 0,...t,allowContextMenu:!0,skipTelemetry:"string"===typeof t?.telemetrySource}),this._options=t,this._menuService=i,this._contextKeyService=s,this._contextMenuService=n,this._keybindingService=r,this._commandService=o,this._sessionDisposables=this._store.add(new d.Cm);const c=t?.telemetrySource;c&&this._store.add(this.actionBar.onDidRun((e=>a.publicLog2("workbenchActionExecuted",{id:e.action.id,from:c}))))}setActions(e,t=[],i){this._sessionDisposables.clear();const r=e.slice(),o=t.slice(),c=[];let l=0;const h=[];let d=!1;if(-1!==this._options?.hiddenItemStrategy)for(let s=0;s<r.length;s++){const e=r[s];(e instanceof b.Xe||e instanceof b.nI)&&(e.hideActions&&(c.push(e.hideActions.toggle),e.hideActions.toggle.checked&&l++,e.hideActions.isHidden&&(d=!0,r[s]=void 0,0!==this._options?.hiddenItemStrategy&&(h[s]=e))))}if(void 0!==this._options?.overflowBehavior){const e=(0,_.E)(new Set(this._options.overflowBehavior.exempted),C.f.map(r,(e=>e?.id))),t=this._options.overflowBehavior.maxItems-e.size;let i=0;for(let s=0;s<r.length;s++){const n=r[s];n&&(i++,e.has(n.id)||i>=t&&(r[s]=void 0,h[s]=n))}}(0,f.SK)(r),(0,f.SK)(h),super.setActions(r,a.wv.join(h,o)),(c.length>0||r.length>0)&&this._sessionDisposables.add((0,s.ko)(this.getElement(),"contextmenu",(e=>{const t=new n.P((0,s.zk)(this.getElement()),e),r=this.getItemAction(t.target);if(!r)return;t.preventDefault(),t.stopPropagation();const o=[];if(r instanceof b.Xe&&r.menuKeybinding)o.push(r.menuKeybinding);else if(!(r instanceof b.nI||r instanceof m)){const e=!!this._keybindingService.lookupKeybinding(r.id);o.push((0,S.D)(this._commandService,this._keybindingService,r.id,void 0,e))}if(c.length>0){let e=!1;if(1===l&&0===this._options?.hiddenItemStrategy){e=!0;for(let e=0;e<c.length;e++)if(c[e].checked){c[e]=(0,a.ih)({id:r.id,label:r.label,checked:!0,enabled:!1,run(){}});break}}if(!e&&(r instanceof b.Xe||r instanceof b.nI)){if(!r.hideActions)return;o.push(r.hideActions.hide)}else o.push((0,a.ih)({id:"label",label:(0,u.kg)("hide","Hide"),enabled:!1,run(){}}))}const h=a.wv.join(o,c);this._options?.resetMenu&&!i&&(i=[this._options.resetMenu]),d&&i&&(h.push(new a.wv),h.push((0,a.ih)({id:"resetThisMenu",label:(0,u.kg)("resetThisMenu","Reset Menu"),run:()=>this._menuService.resetHiddenStates(i)}))),0!==h.length&&this._contextMenuService.showContextMenu({getAnchor:()=>t,getActions:()=>h,menuId:this._options?.contextMenu,menuActionOptions:{renderShortTitle:!0,...this._options?.menuOptions},skipTelemetry:"string"===typeof this._options?.telemetrySource,contextKeyService:this._contextKeyService})})))}};A=x([k(2,b.ez),k(3,w.fN),k(4,R.Z),k(5,L.b),k(6,y.d),k(7,T.k)],A);let N=class extends A{constructor(e,t,i,s,n,r,o,a,c){super(e,{resetMenu:t,...i},s,n,r,o,a,c),this._onDidChangeMenuItems=this._store.add(new h.vl),this.onDidChangeMenuItems=this._onDidChangeMenuItems.event;const l=this._store.add(s.createMenu(t,n,{emitEventsForSubmenuChanges:!0})),d=()=>{const t=[],s=[];(0,E.Ot)(l,i?.menuOptions,{primary:t,secondary:s},i?.toolbarOptions?.primaryGroup,i?.toolbarOptions?.shouldInlineSubmenu,i?.toolbarOptions?.useSeparatorsInPrimaryActions),e.classList.toggle("has-no-actions",0===t.length&&0===s.length),super.setActions(t,s)};this._store.add(l.onDidChange((()=>{d(),this._onDidChangeMenuItems.fire(this)}))),d()}setActions(){throw new v.D7("This toolbar is populated from a menu.")}};N=x([k(3,b.ez),k(4,w.fN),k(5,R.Z),k(6,L.b),k(7,y.d),k(8,T.k)],N)},27195:(e,t,i)=>{"use strict";i.d(t,{D8:()=>_,L:()=>y,Xe:()=>S,ZG:()=>E,ez:()=>v,i1:()=>f,is:()=>m,nI:()=>b,ug:()=>w});var s,n=i(36921),r=i(25689),o=i(41234),a=i(5662),c=i(58925),l=i(50091),h=i(32848),d=i(63591),u=i(59261),g=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},p=function(e,t){return function(i,s){t(i,s,e)}};function m(e){return void 0!==e.command}function f(e){return void 0!==e.submenu}class _{static{this._instances=new Map}static{this.CommandPalette=new _("CommandPalette")}static{this.DebugBreakpointsContext=new _("DebugBreakpointsContext")}static{this.DebugCallStackContext=new _("DebugCallStackContext")}static{this.DebugConsoleContext=new _("DebugConsoleContext")}static{this.DebugVariablesContext=new _("DebugVariablesContext")}static{this.NotebookVariablesContext=new _("NotebookVariablesContext")}static{this.DebugHoverContext=new _("DebugHoverContext")}static{this.DebugWatchContext=new _("DebugWatchContext")}static{this.DebugToolBar=new _("DebugToolBar")}static{this.DebugToolBarStop=new _("DebugToolBarStop")}static{this.DebugCallStackToolbar=new _("DebugCallStackToolbar")}static{this.DebugCreateConfiguration=new _("DebugCreateConfiguration")}static{this.EditorContext=new _("EditorContext")}static{this.SimpleEditorContext=new _("SimpleEditorContext")}static{this.EditorContent=new _("EditorContent")}static{this.EditorLineNumberContext=new _("EditorLineNumberContext")}static{this.EditorContextCopy=new _("EditorContextCopy")}static{this.EditorContextPeek=new _("EditorContextPeek")}static{this.EditorContextShare=new _("EditorContextShare")}static{this.EditorTitle=new _("EditorTitle")}static{this.EditorTitleRun=new _("EditorTitleRun")}static{this.EditorTitleContext=new _("EditorTitleContext")}static{this.EditorTitleContextShare=new _("EditorTitleContextShare")}static{this.EmptyEditorGroup=new _("EmptyEditorGroup")}static{this.EmptyEditorGroupContext=new _("EmptyEditorGroupContext")}static{this.EditorTabsBarContext=new _("EditorTabsBarContext")}static{this.EditorTabsBarShowTabsSubmenu=new _("EditorTabsBarShowTabsSubmenu")}static{this.EditorTabsBarShowTabsZenModeSubmenu=new _("EditorTabsBarShowTabsZenModeSubmenu")}static{this.EditorActionsPositionSubmenu=new _("EditorActionsPositionSubmenu")}static{this.ExplorerContext=new _("ExplorerContext")}static{this.ExplorerContextShare=new _("ExplorerContextShare")}static{this.ExtensionContext=new _("ExtensionContext")}static{this.GlobalActivity=new _("GlobalActivity")}static{this.CommandCenter=new _("CommandCenter")}static{this.CommandCenterCenter=new _("CommandCenterCenter")}static{this.LayoutControlMenuSubmenu=new _("LayoutControlMenuSubmenu")}static{this.LayoutControlMenu=new _("LayoutControlMenu")}static{this.MenubarMainMenu=new _("MenubarMainMenu")}static{this.MenubarAppearanceMenu=new _("MenubarAppearanceMenu")}static{this.MenubarDebugMenu=new _("MenubarDebugMenu")}static{this.MenubarEditMenu=new _("MenubarEditMenu")}static{this.MenubarCopy=new _("MenubarCopy")}static{this.MenubarFileMenu=new _("MenubarFileMenu")}static{this.MenubarGoMenu=new _("MenubarGoMenu")}static{this.MenubarHelpMenu=new _("MenubarHelpMenu")}static{this.MenubarLayoutMenu=new _("MenubarLayoutMenu")}static{this.MenubarNewBreakpointMenu=new _("MenubarNewBreakpointMenu")}static{this.PanelAlignmentMenu=new _("PanelAlignmentMenu")}static{this.PanelPositionMenu=new _("PanelPositionMenu")}static{this.ActivityBarPositionMenu=new _("ActivityBarPositionMenu")}static{this.MenubarPreferencesMenu=new _("MenubarPreferencesMenu")}static{this.MenubarRecentMenu=new _("MenubarRecentMenu")}static{this.MenubarSelectionMenu=new _("MenubarSelectionMenu")}static{this.MenubarShare=new _("MenubarShare")}static{this.MenubarSwitchEditorMenu=new _("MenubarSwitchEditorMenu")}static{this.MenubarSwitchGroupMenu=new _("MenubarSwitchGroupMenu")}static{this.MenubarTerminalMenu=new _("MenubarTerminalMenu")}static{this.MenubarViewMenu=new _("MenubarViewMenu")}static{this.MenubarHomeMenu=new _("MenubarHomeMenu")}static{this.OpenEditorsContext=new _("OpenEditorsContext")}static{this.OpenEditorsContextShare=new _("OpenEditorsContextShare")}static{this.ProblemsPanelContext=new _("ProblemsPanelContext")}static{this.SCMInputBox=new _("SCMInputBox")}static{this.SCMChangesSeparator=new _("SCMChangesSeparator")}static{this.SCMChangesContext=new _("SCMChangesContext")}static{this.SCMIncomingChanges=new _("SCMIncomingChanges")}static{this.SCMIncomingChangesContext=new _("SCMIncomingChangesContext")}static{this.SCMIncomingChangesSetting=new _("SCMIncomingChangesSetting")}static{this.SCMOutgoingChanges=new _("SCMOutgoingChanges")}static{this.SCMOutgoingChangesContext=new _("SCMOutgoingChangesContext")}static{this.SCMOutgoingChangesSetting=new _("SCMOutgoingChangesSetting")}static{this.SCMIncomingChangesAllChangesContext=new _("SCMIncomingChangesAllChangesContext")}static{this.SCMIncomingChangesHistoryItemContext=new _("SCMIncomingChangesHistoryItemContext")}static{this.SCMOutgoingChangesAllChangesContext=new _("SCMOutgoingChangesAllChangesContext")}static{this.SCMOutgoingChangesHistoryItemContext=new _("SCMOutgoingChangesHistoryItemContext")}static{this.SCMChangeContext=new _("SCMChangeContext")}static{this.SCMResourceContext=new _("SCMResourceContext")}static{this.SCMResourceContextShare=new _("SCMResourceContextShare")}static{this.SCMResourceFolderContext=new _("SCMResourceFolderContext")}static{this.SCMResourceGroupContext=new _("SCMResourceGroupContext")}static{this.SCMSourceControl=new _("SCMSourceControl")}static{this.SCMSourceControlInline=new _("SCMSourceControlInline")}static{this.SCMSourceControlTitle=new _("SCMSourceControlTitle")}static{this.SCMHistoryTitle=new _("SCMHistoryTitle")}static{this.SCMTitle=new _("SCMTitle")}static{this.SearchContext=new _("SearchContext")}static{this.SearchActionMenu=new _("SearchActionContext")}static{this.StatusBarWindowIndicatorMenu=new _("StatusBarWindowIndicatorMenu")}static{this.StatusBarRemoteIndicatorMenu=new _("StatusBarRemoteIndicatorMenu")}static{this.StickyScrollContext=new _("StickyScrollContext")}static{this.TestItem=new _("TestItem")}static{this.TestItemGutter=new _("TestItemGutter")}static{this.TestProfilesContext=new _("TestProfilesContext")}static{this.TestMessageContext=new _("TestMessageContext")}static{this.TestMessageContent=new _("TestMessageContent")}static{this.TestPeekElement=new _("TestPeekElement")}static{this.TestPeekTitle=new _("TestPeekTitle")}static{this.TestCallStack=new _("TestCallStack")}static{this.TouchBarContext=new _("TouchBarContext")}static{this.TitleBarContext=new _("TitleBarContext")}static{this.TitleBarTitleContext=new _("TitleBarTitleContext")}static{this.TunnelContext=new _("TunnelContext")}static{this.TunnelPrivacy=new _("TunnelPrivacy")}static{this.TunnelProtocol=new _("TunnelProtocol")}static{this.TunnelPortInline=new _("TunnelInline")}static{this.TunnelTitle=new _("TunnelTitle")}static{this.TunnelLocalAddressInline=new _("TunnelLocalAddressInline")}static{this.TunnelOriginInline=new _("TunnelOriginInline")}static{this.ViewItemContext=new _("ViewItemContext")}static{this.ViewContainerTitle=new _("ViewContainerTitle")}static{this.ViewContainerTitleContext=new _("ViewContainerTitleContext")}static{this.ViewTitle=new _("ViewTitle")}static{this.ViewTitleContext=new _("ViewTitleContext")}static{this.CommentEditorActions=new _("CommentEditorActions")}static{this.CommentThreadTitle=new _("CommentThreadTitle")}static{this.CommentThreadActions=new _("CommentThreadActions")}static{this.CommentThreadAdditionalActions=new _("CommentThreadAdditionalActions")}static{this.CommentThreadTitleContext=new _("CommentThreadTitleContext")}static{this.CommentThreadCommentContext=new _("CommentThreadCommentContext")}static{this.CommentTitle=new _("CommentTitle")}static{this.CommentActions=new _("CommentActions")}static{this.CommentsViewThreadActions=new _("CommentsViewThreadActions")}static{this.InteractiveToolbar=new _("InteractiveToolbar")}static{this.InteractiveCellTitle=new _("InteractiveCellTitle")}static{this.InteractiveCellDelete=new _("InteractiveCellDelete")}static{this.InteractiveCellExecute=new _("InteractiveCellExecute")}static{this.InteractiveInputExecute=new _("InteractiveInputExecute")}static{this.InteractiveInputConfig=new _("InteractiveInputConfig")}static{this.ReplInputExecute=new _("ReplInputExecute")}static{this.IssueReporter=new _("IssueReporter")}static{this.NotebookToolbar=new _("NotebookToolbar")}static{this.NotebookStickyScrollContext=new _("NotebookStickyScrollContext")}static{this.NotebookCellTitle=new _("NotebookCellTitle")}static{this.NotebookCellDelete=new _("NotebookCellDelete")}static{this.NotebookCellInsert=new _("NotebookCellInsert")}static{this.NotebookCellBetween=new _("NotebookCellBetween")}static{this.NotebookCellListTop=new _("NotebookCellTop")}static{this.NotebookCellExecute=new _("NotebookCellExecute")}static{this.NotebookCellExecuteGoTo=new _("NotebookCellExecuteGoTo")}static{this.NotebookCellExecutePrimary=new _("NotebookCellExecutePrimary")}static{this.NotebookDiffCellInputTitle=new _("NotebookDiffCellInputTitle")}static{this.NotebookDiffCellMetadataTitle=new _("NotebookDiffCellMetadataTitle")}static{this.NotebookDiffCellOutputsTitle=new _("NotebookDiffCellOutputsTitle")}static{this.NotebookOutputToolbar=new _("NotebookOutputToolbar")}static{this.NotebookOutlineFilter=new _("NotebookOutlineFilter")}static{this.NotebookOutlineActionMenu=new _("NotebookOutlineActionMenu")}static{this.NotebookEditorLayoutConfigure=new _("NotebookEditorLayoutConfigure")}static{this.NotebookKernelSource=new _("NotebookKernelSource")}static{this.BulkEditTitle=new _("BulkEditTitle")}static{this.BulkEditContext=new _("BulkEditContext")}static{this.TimelineItemContext=new _("TimelineItemContext")}static{this.TimelineTitle=new _("TimelineTitle")}static{this.TimelineTitleContext=new _("TimelineTitleContext")}static{this.TimelineFilterSubMenu=new _("TimelineFilterSubMenu")}static{this.AccountsContext=new _("AccountsContext")}static{this.SidebarTitle=new _("SidebarTitle")}static{this.PanelTitle=new _("PanelTitle")}static{this.AuxiliaryBarTitle=new _("AuxiliaryBarTitle")}static{this.AuxiliaryBarHeader=new _("AuxiliaryBarHeader")}static{this.TerminalInstanceContext=new _("TerminalInstanceContext")}static{this.TerminalEditorInstanceContext=new _("TerminalEditorInstanceContext")}static{this.TerminalNewDropdownContext=new _("TerminalNewDropdownContext")}static{this.TerminalTabContext=new _("TerminalTabContext")}static{this.TerminalTabEmptyAreaContext=new _("TerminalTabEmptyAreaContext")}static{this.TerminalStickyScrollContext=new _("TerminalStickyScrollContext")}static{this.WebviewContext=new _("WebviewContext")}static{this.InlineCompletionsActions=new _("InlineCompletionsActions")}static{this.InlineEditsActions=new _("InlineEditsActions")}static{this.InlineEditActions=new _("InlineEditActions")}static{this.NewFile=new _("NewFile")}static{this.MergeInput1Toolbar=new _("MergeToolbar1Toolbar")}static{this.MergeInput2Toolbar=new _("MergeToolbar2Toolbar")}static{this.MergeBaseToolbar=new _("MergeBaseToolbar")}static{this.MergeInputResultToolbar=new _("MergeToolbarResultToolbar")}static{this.InlineSuggestionToolbar=new _("InlineSuggestionToolbar")}static{this.InlineEditToolbar=new _("InlineEditToolbar")}static{this.ChatContext=new _("ChatContext")}static{this.ChatCodeBlock=new _("ChatCodeblock")}static{this.ChatCompareBlock=new _("ChatCompareBlock")}static{this.ChatMessageTitle=new _("ChatMessageTitle")}static{this.ChatExecute=new _("ChatExecute")}static{this.ChatExecuteSecondary=new _("ChatExecuteSecondary")}static{this.ChatInputSide=new _("ChatInputSide")}static{this.AccessibleView=new _("AccessibleView")}static{this.MultiDiffEditorFileToolbar=new _("MultiDiffEditorFileToolbar")}static{this.DiffEditorHunkToolbar=new _("DiffEditorHunkToolbar")}static{this.DiffEditorSelectionToolbar=new _("DiffEditorSelectionToolbar")}constructor(e){if(_._instances.has(e))throw new TypeError(`MenuId with identifier '${e}' already exists. Use MenuId.for(ident) or a unique identifier`);_._instances.set(e,this),this.id=e}}const v=(0,d.u1)("menuService");class C{static{this._all=new Map}static for(e){let t=this._all.get(e);return t||(t=new C(e),this._all.set(e,t)),t}static merge(e){const t=new Set;for(const i of e)i instanceof C&&t.add(i.id);return t}constructor(e){this.id=e,this.has=t=>t===e}}const E=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new o.QT({merge:C.merge}),this.onDidChangeMenu=this._onDidChangeMenu.event}addCommand(e){return this._commands.set(e.id,e),this._onDidChangeMenu.fire(C.for(_.CommandPalette)),(0,a.s)((()=>{this._commands.delete(e.id)&&this._onDidChangeMenu.fire(C.for(_.CommandPalette))}))}getCommand(e){return this._commands.get(e)}getCommands(){const e=new Map;return this._commands.forEach(((t,i)=>e.set(i,t))),e}appendMenuItem(e,t){let i=this._menuItems.get(e);i||(i=new c.w,this._menuItems.set(e,i));const s=i.push(t);return this._onDidChangeMenu.fire(C.for(e)),(0,a.s)((()=>{s(),this._onDidChangeMenu.fire(C.for(e))}))}appendMenuItems(e){const t=new a.Cm;for(const{id:i,item:s}of e)t.add(this.appendMenuItem(i,s));return t}getMenuItems(e){let t;return t=this._menuItems.has(e)?[...this._menuItems.get(e)]:[],e===_.CommandPalette&&this._appendImplicitItems(t),t}_appendImplicitItems(e){const t=new Set;for(const i of e)m(i)&&(t.add(i.command.id),i.alt&&t.add(i.alt.id));this._commands.forEach(((i,s)=>{t.has(s)||e.push({command:i})}))}};class b extends n.YH{constructor(e,t,i){super(`submenuitem.${e.submenu.id}`,"string"===typeof e.title?e.title:e.title.value,i,"submenu"),this.item=e,this.hideActions=t}}let S=s=class{static label(e,t){return t?.renderShortTitle&&e.shortTitle?"string"===typeof e.shortTitle?e.shortTitle:e.shortTitle.value:"string"===typeof e.title?e.title:e.title.value}constructor(e,t,i,n,o,a,c){let l;if(this.hideActions=n,this.menuKeybinding=o,this._commandService=c,this.id=e.id,this.label=s.label(e,i),this.tooltip=("string"===typeof e.tooltip?e.tooltip:e.tooltip?.value)??"",this.enabled=!e.precondition||a.contextMatchesRules(e.precondition),this.checked=void 0,e.toggled){const t=e.toggled.condition?e.toggled:{condition:e.toggled};this.checked=a.contextMatchesRules(t.condition),this.checked&&t.tooltip&&(this.tooltip="string"===typeof t.tooltip?t.tooltip:t.tooltip.value),this.checked&&r.L.isThemeIcon(t.icon)&&(l=t.icon),this.checked&&t.title&&(this.label="string"===typeof t.title?t.title:t.title.value)}l||(l=r.L.isThemeIcon(e.icon)?e.icon:void 0),this.item=e,this.alt=t?new s(t,void 0,i,n,void 0,a,c):void 0,this._options=i,this.class=l&&r.L.asClassName(l)}run(...e){let t=[];return this._options?.arg&&(t=[...t,this._options.arg]),this._options?.shouldForwardArgs&&(t=[...t,...e]),this._commandService.executeCommand(this.id,...t)}};S=s=g([p(5,h.fN),p(6,l.d)],S);class y{constructor(e){this.desc=e}}function w(e){const t=[],i=new e,{f1:s,menu:n,keybinding:r,...o}=i.desc;if(l.w.getCommand(o.id))throw new Error(`Cannot register two commands with the same id: ${o.id}`);if(t.push(l.w.registerCommand({id:o.id,handler:(e,...t)=>i.run(e,...t),metadata:o.metadata})),Array.isArray(n))for(const a of n)t.push(E.appendMenuItem(a.id,{command:{...o,precondition:null===a.precondition?void 0:o.precondition},...a}));else n&&t.push(E.appendMenuItem(n.id,{command:{...o,precondition:null===n.precondition?void 0:o.precondition},...n}));if(s&&(t.push(E.appendMenuItem(_.CommandPalette,{command:o,when:o.precondition})),t.push(E.addCommand(o))),Array.isArray(r))for(const a of r)t.push(u.f.registerKeybindingRule({...a,id:o.id,when:o.precondition?h.M$.and(o.precondition,a.when):a.when}));else r&&t.push(u.f.registerKeybindingRule({...r,id:o.id,when:o.precondition?h.M$.and(o.precondition,r.when):r.when}));return{dispose(){(0,a.AS)(t)}}}},60858:(e,t,i)=>{"use strict";i.d(t,{$:()=>v,D:()=>w});var s,n,r=i(90766),o=i(41234),a=i(5662),c=i(27195),l=i(50091),h=i(32848),d=i(36921),u=i(9711),g=i(25890),p=i(78209),m=i(98031),f=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},_=function(e,t){return function(i,s){t(i,s,e)}};let v=class{constructor(e,t,i){this._commandService=e,this._keybindingService=t,this._hiddenStates=new C(i)}createMenu(e,t,i){return new S(e,this._hiddenStates,{emitEventsForSubmenuChanges:!1,eventDebounceDelay:50,...i},this._commandService,this._keybindingService,t)}getMenuActions(e,t,i){const s=new S(e,this._hiddenStates,{emitEventsForSubmenuChanges:!1,eventDebounceDelay:50,...i},this._commandService,this._keybindingService,t),n=s.getActions(i);return s.dispose(),n}resetHiddenStates(e){this._hiddenStates.reset(e)}};v=f([_(0,l.d),_(1,m.b),_(2,u.CS)],v);let C=class{static{s=this}static{this._key="menu.hiddenCommands"}constructor(e){this._storageService=e,this._disposables=new a.Cm,this._onDidChange=new o.vl,this.onDidChange=this._onDidChange.event,this._ignoreChangeEvent=!1,this._hiddenByDefaultCache=new Map;try{const t=e.get(s._key,0,"{}");this._data=JSON.parse(t)}catch(t){this._data=Object.create(null)}this._disposables.add(e.onDidChangeValue(0,s._key,this._disposables)((()=>{if(!this._ignoreChangeEvent)try{const t=e.get(s._key,0,"{}");this._data=JSON.parse(t)}catch(t){console.log("FAILED to read storage after UPDATE",t)}this._onDidChange.fire()})))}dispose(){this._onDidChange.dispose(),this._disposables.dispose()}_isHiddenByDefault(e,t){return this._hiddenByDefaultCache.get(`${e.id}/${t}`)??!1}setDefaultState(e,t,i){this._hiddenByDefaultCache.set(`${e.id}/${t}`,i)}isHidden(e,t){const i=this._isHiddenByDefault(e,t),s=this._data[e.id]?.includes(t)??!1;return i?!s:s}updateHidden(e,t,i){this._isHiddenByDefault(e,t)&&(i=!i);const s=this._data[e.id];if(i)if(s){s.indexOf(t)<0&&s.push(t)}else this._data[e.id]=[t];else if(s){const i=s.indexOf(t);i>=0&&(0,g.UH)(s,i),0===s.length&&delete this._data[e.id]}this._persist()}reset(e){if(void 0===e)this._data=Object.create(null),this._persist();else{for(const{id:t}of e)this._data[t]&&delete this._data[t];this._persist()}}_persist(){try{this._ignoreChangeEvent=!0;const e=JSON.stringify(this._data);this._storageService.store(s._key,e,0,0)}finally{this._ignoreChangeEvent=!1}}};C=s=f([_(0,u.CS)],C);class E{constructor(e,t){this._id=e,this._collectContextKeysForSubmenus=t,this._menuGroups=[],this._allMenuIds=new Set,this._structureContextKeys=new Set,this._preconditionContextKeys=new Set,this._toggledContextKeys=new Set,this.refresh()}get allMenuIds(){return this._allMenuIds}get structureContextKeys(){return this._structureContextKeys}get preconditionContextKeys(){return this._preconditionContextKeys}get toggledContextKeys(){return this._toggledContextKeys}refresh(){this._menuGroups.length=0,this._allMenuIds.clear(),this._structureContextKeys.clear(),this._preconditionContextKeys.clear(),this._toggledContextKeys.clear();const e=this._sort(c.ZG.getMenuItems(this._id));let t;for(const i of e){const e=i.group||"";t&&t[0]===e||(t=[e,[]],this._menuGroups.push(t)),t[1].push(i),this._collectContextKeysAndSubmenuIds(i)}this._allMenuIds.add(this._id)}_sort(e){return e}_collectContextKeysAndSubmenuIds(e){if(E._fillInKbExprKeys(e.when,this._structureContextKeys),(0,c.is)(e)){if(e.command.precondition&&E._fillInKbExprKeys(e.command.precondition,this._preconditionContextKeys),e.command.toggled){const t=e.command.toggled.condition||e.command.toggled;E._fillInKbExprKeys(t,this._toggledContextKeys)}}else this._collectContextKeysForSubmenus&&(c.ZG.getMenuItems(e.submenu).forEach(this._collectContextKeysAndSubmenuIds,this),this._allMenuIds.add(e.submenu))}static _fillInKbExprKeys(e,t){if(e)for(const i of e.keys())t.add(i)}}let b=n=class extends E{constructor(e,t,i,s,n,r){super(e,i),this._hiddenStates=t,this._commandService=s,this._keybindingService=n,this._contextKeyService=r,this.refresh()}createActionGroups(e){const t=[];for(const i of this._menuGroups){const[s,r]=i;let o;for(const t of r)if(this._contextKeyService.contextMatchesRules(t.when)){const i=(0,c.is)(t);i&&this._hiddenStates.setDefaultState(this._id,t.command.id,!!t.isHiddenByDefault);const s=y(this._id,i?t.command:t,this._hiddenStates);if(i){const i=w(this._commandService,this._keybindingService,t.command.id,t.when);(o??=[]).push(new c.Xe(t.command,t.alt,e,s,i,this._contextKeyService,this._commandService))}else{const i=new n(t.submenu,this._hiddenStates,this._collectContextKeysForSubmenus,this._commandService,this._keybindingService,this._contextKeyService).createActionGroups(e),r=d.wv.join(...i.map((e=>e[1])));r.length>0&&(o??=[]).push(new c.nI(t,s,r))}}o&&o.length>0&&t.push([s,o])}return t}_sort(e){return e.sort(n._compareMenuItems)}static _compareMenuItems(e,t){const i=e.group,s=t.group;if(i!==s){if(!i)return 1;if(!s)return-1;if("navigation"===i)return-1;if("navigation"===s)return 1;const e=i.localeCompare(s);if(0!==e)return e}const r=e.order||0,o=t.order||0;return r<o?-1:r>o?1:n._compareTitles((0,c.is)(e)?e.command.title:e.title,(0,c.is)(t)?t.command.title:t.title)}static _compareTitles(e,t){const i="string"===typeof e?e:e.original,s="string"===typeof t?t:t.original;return i.localeCompare(s)}};b=n=f([_(3,l.d),_(4,m.b),_(5,h.fN)],b);let S=class{constructor(e,t,i,s,n,l){this._disposables=new a.Cm,this._menuInfo=new b(e,t,i.emitEventsForSubmenuChanges,s,n,l);const h=new r.uC((()=>{this._menuInfo.refresh(),this._onDidChange.fire({menu:this,isStructuralChange:!0,isEnablementChange:!0,isToggleChange:!0})}),i.eventDebounceDelay);this._disposables.add(h),this._disposables.add(c.ZG.onDidChangeMenu((e=>{for(const t of this._menuInfo.allMenuIds)if(e.has(t)){h.schedule();break}})));const d=this._disposables.add(new a.Cm);this._onDidChange=new o.uI({onWillAddFirstListener:()=>{d.add(l.onDidChangeContext((e=>{const t=e.affectsSome(this._menuInfo.structureContextKeys),i=e.affectsSome(this._menuInfo.preconditionContextKeys),s=e.affectsSome(this._menuInfo.toggledContextKeys);(t||i||s)&&this._onDidChange.fire({menu:this,isStructuralChange:t,isEnablementChange:i,isToggleChange:s})}))),d.add(t.onDidChange((e=>{this._onDidChange.fire({menu:this,isStructuralChange:!0,isEnablementChange:!1,isToggleChange:!1})})))},onDidRemoveLastListener:d.clear.bind(d),delay:i.eventDebounceDelay,merge:e=>{let t=!1,i=!1,s=!1;for(const n of e)if(t=t||n.isStructuralChange,i=i||n.isEnablementChange,s=s||n.isToggleChange,t&&i&&s)break;return{menu:this,isStructuralChange:t,isEnablementChange:i,isToggleChange:s}}}),this.onDidChange=this._onDidChange.event}getActions(e){return this._menuInfo.createActionGroups(e)}dispose(){this._disposables.dispose(),this._onDidChange.dispose()}};function y(e,t,i){const s=(0,c.i1)(t)?t.submenu.id:t.id,n="string"===typeof t.title?t.title:t.title.value,r=(0,d.ih)({id:`hide/${e.id}/${s}`,label:(0,p.kg)("hide.label","Hide '{0}'",n),run(){i.updateHidden(e,s,!0)}}),o=(0,d.ih)({id:`toggle/${e.id}/${s}`,label:n,get checked(){return!i.isHidden(e,s)},run(){i.updateHidden(e,s,!!this.checked)}});return{hide:r,toggle:o,get isHidden(){return!o.checked}}}function w(e,t,i,s=void 0,n=!0){return(0,d.ih)({id:`configureKeybinding/${i}`,label:(0,p.kg)("configure keybinding","Configure Keybinding"),enabled:n,run(){const n=!!!t.lookupKeybinding(i)&&s?s.serialize():void 0;e.executeCommand("workbench.action.openGlobalKeybindings",`@command:${i}`+(n?` +when:${n}`:""))}})}S=f([_(3,l.d),_(4,m.b),_(5,h.fN)],S)},54770:(e,t,i)=>{"use strict";i.d(t,{h:()=>s});const s=(0,i(63591).u1)("clipboardService")},50091:(e,t,i)=>{"use strict";i.d(t,{d:()=>c,w:()=>l});var s=i(41234),n=i(42522),r=i(5662),o=i(58925),a=i(631);const c=(0,i(63591).u1)("commandService"),l=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new s.vl,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(e,t){if(!e)throw new Error("invalid command");if("string"===typeof e){if(!t)throw new Error("invalid command");return this.registerCommand({id:e,handler:t})}if(e.metadata&&Array.isArray(e.metadata.args)){const t=[];for(const s of e.metadata.args)t.push(s.constraint);const i=e.handler;e.handler=function(e,...s){return(0,a.jx)(s,t),i(e,...s)}}const{id:i}=e;let s=this._commands.get(i);s||(s=new o.w,this._commands.set(i,s));const n=s.unshift(e),c=(0,r.s)((()=>{n();const e=this._commands.get(i);e?.isEmpty()&&this._commands.delete(i)}));return this._onDidRegisterCommand.fire(i),c}registerCommandAlias(e,t){return l.registerCommand(e,((e,...i)=>e.get(c).executeCommand(t,...i)))}getCommand(e){const t=this._commands.get(e);if(t&&!t.isEmpty())return n.f.first(t)}getCommands(){const e=new Map;for(const t of this._commands.keys()){const i=this.getCommand(t);i&&e.set(t,i)}return e}};l.registerCommand("noop",(()=>{}))},84001:(e,t,i)=>{"use strict";i.d(t,{Mo:()=>l,ad:()=>n,gD:()=>c,iB:()=>o,kW:()=>r,pG:()=>s});const s=(0,i(63591).u1)("configurationService");function n(e,t){const i=Object.create(null);for(const s in e)r(i,s,e[s],t);return i}function r(e,t,i,s){const n=t.split("."),r=n.pop();let o=e;for(let c=0;c<n.length;c++){const e=n[c];let i=o[e];switch(typeof i){case"undefined":i=o[e]=Object.create(null);break;case"object":if(null===i)return void s(`Ignoring ${t} as ${n.slice(0,c+1).join(".")} is null`);break;default:return void s(`Ignoring ${t} as ${n.slice(0,c+1).join(".")} is ${JSON.stringify(i)}`)}o=i}if("object"===typeof o&&null!==o)try{o[r]=i}catch(a){s(`Ignoring ${t} as ${n.join(".")} is ${JSON.stringify(o)}`)}else s(`Ignoring ${t} as ${n.join(".")} is ${JSON.stringify(o)}`)}function o(e,t){a(e,t.split("."))}function a(e,t){const i=t.shift();if(0!==t.length){if(-1!==Object.keys(e).indexOf(i)){const s=e[i];"object"!==typeof s||Array.isArray(s)||(a(s,t),0===Object.keys(s).length&&delete e[i])}}else delete e[i]}function c(e,t,i){const s=function(e,t){let i=e;for(const s of t){if("object"!==typeof i||null===i)return;i=i[s]}return i}(e,t.split("."));return"undefined"===typeof s?i:s}function l(e){return e.replace(/[\[\]]/g,"")}},1646:(e,t,i)=>{"use strict";i.d(t,{Fd:()=>h,Gv:()=>y,rC:()=>S});var s=i(25890),n=i(41234),r=i(631),o=i(78209),a=i(84001),c=i(78748),l=i(46359);const h={Configuration:"base.contributions.configuration"},d={properties:{},patternProperties:{}},u={properties:{},patternProperties:{}},g={properties:{},patternProperties:{}},p={properties:{},patternProperties:{}},m={properties:{},patternProperties:{}},f={properties:{},patternProperties:{}},_="vscode://schemas/settings/resourceLanguage",v=l.O.as(c.F.JSONContribution);const C="\\[([^\\]]+)\\]",E=new RegExp(C,"g"),b=`^(${C})+$`,S=new RegExp(b);function y(e){const t=[];if(S.test(e)){let i=E.exec(e);for(;i?.length;){const s=i[1].trim();s&&t.push(s),i=E.exec(e)}}return(0,s.dM)(t)}const w=new class{constructor(){this.registeredConfigurationDefaults=[],this.overrideIdentifiers=new Set,this._onDidSchemaChange=new n.vl,this._onDidUpdateConfiguration=new n.vl,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:o.kg("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!0,allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.policyConfigurations=new Map,this.excludedConfigurationProperties={},v.registerSchema(_,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(e,t=!0){this.registerConfigurations([e],t)}registerConfigurations(e,t=!0){const i=new Set;this.doRegisterConfigurations(e,t,i),v.registerSchema(_,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:i})}registerDefaultConfigurations(e){const t=new Set;this.doRegisterDefaultConfigurations(e,t),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:t,defaultsOverrides:!0})}doRegisterDefaultConfigurations(e,t){this.registeredConfigurationDefaults.push(...e);const i=[];for(const{overrides:s,source:n}of e)for(const e in s){t.add(e);const r=this.configurationDefaultsOverrides.get(e)??this.configurationDefaultsOverrides.set(e,{configurationDefaultOverrides:[]}).get(e),o=s[e];if(r.configurationDefaultOverrides.push({value:o,source:n}),S.test(e)){const t=this.mergeDefaultConfigurationsForOverrideIdentifier(e,o,n,r.configurationDefaultOverrideValue);if(!t)continue;r.configurationDefaultOverrideValue=t,this.updateDefaultOverrideProperty(e,t,n),i.push(...y(e))}else{const t=this.mergeDefaultConfigurationsForConfigurationProperty(e,o,n,r.configurationDefaultOverrideValue);if(!t)continue;r.configurationDefaultOverrideValue=t;const i=this.configurationProperties[e];i&&(this.updatePropertyDefaultValue(e,i),this.updateSchema(e,i))}}this.doRegisterOverrideIdentifiers(i)}updateDefaultOverrideProperty(e,t,i){const s={type:"object",default:t.value,description:o.kg("defaultLanguageConfiguration.description","Configure settings to be overridden for the {0} language.",(0,a.Mo)(e)),$ref:_,defaultDefaultValue:t.value,source:i,defaultValueSource:i};this.configurationProperties[e]=s,this.defaultLanguageConfigurationOverridesNode.properties[e]=s}mergeDefaultConfigurationsForOverrideIdentifier(e,t,i,s){const n=s?.value||{},o=s?.source??new Map;if(o instanceof Map){for(const e of Object.keys(t)){const s=t[e];if(r.Gv(s)&&(r.b0(n[e])||r.Gv(n[e]))){if(n[e]={...n[e]??{},...s},i)for(const t in s)o.set(`${e}.${t}`,i)}else n[e]=s,i?o.set(e,i):o.delete(e)}return{value:n,source:o}}console.error("objectConfigurationSources is not a Map")}mergeDefaultConfigurationsForConfigurationProperty(e,t,i,s){const n=this.configurationProperties[e],o=s?.value??n?.defaultDefaultValue;let a=i;if(r.Gv(t)&&(void 0!==n&&"object"===n.type||void 0===n&&(r.b0(o)||r.Gv(o)))){if(a=s?.source??new Map,!(a instanceof Map))return void console.error("defaultValueSource is not a Map");for(const s in t)i&&a.set(`${e}.${s}`,i);t={...r.Gv(o)?o:{},...t}}return{value:t,source:a}}registerOverrideIdentifiers(e){this.doRegisterOverrideIdentifiers(e),this._onDidSchemaChange.fire()}doRegisterOverrideIdentifiers(e){for(const t of e)this.overrideIdentifiers.add(t);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(e,t,i){e.forEach((e=>{this.validateAndRegisterProperties(e,t,e.extensionInfo,e.restrictedProperties,void 0,i),this.configurationContributors.push(e),this.registerJSONConfiguration(e)}))}validateAndRegisterProperties(e,t=!0,i,s,n=3,o){n=r.z(e.scope)?n:e.scope;const a=e.properties;if(a)for(const l in a){const e=a[l];t&&R(l,e)?delete a[l]:(e.source=i,e.defaultDefaultValue=a[l].default,this.updatePropertyDefaultValue(l,e),S.test(l)?e.scope=void 0:(e.scope=r.z(e.scope)?n:e.scope,e.restricted=r.z(e.restricted)?!!s?.includes(l):e.restricted),!a[l].hasOwnProperty("included")||a[l].included?(this.configurationProperties[l]=a[l],a[l].policy?.name&&this.policyConfigurations.set(a[l].policy.name,l),!a[l].deprecationMessage&&a[l].markdownDeprecationMessage&&(a[l].deprecationMessage=a[l].markdownDeprecationMessage),o.add(l)):(this.excludedConfigurationProperties[l]=a[l],delete a[l]))}const c=e.allOf;if(c)for(const r of c)this.validateAndRegisterProperties(r,t,i,s,n,o)}getConfigurationProperties(){return this.configurationProperties}getPolicyConfigurations(){return this.policyConfigurations}registerJSONConfiguration(e){const t=e=>{const i=e.properties;if(i)for(const t in i)this.updateSchema(t,i[t]);const s=e.allOf;s?.forEach(t)};t(e)}updateSchema(e,t){switch(d.properties[e]=t,t.scope){case 1:u.properties[e]=t;break;case 2:g.properties[e]=t;break;case 6:p.properties[e]=t;break;case 3:m.properties[e]=t;break;case 4:f.properties[e]=t;break;case 5:f.properties[e]=t,this.resourceLanguageSettingsSchema.properties[e]=t}}updateOverridePropertyPatternKey(){for(const e of this.overrideIdentifiers.values()){const t=`[${e}]`,i={type:"object",description:o.kg("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:o.kg("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:_};this.updatePropertyDefaultValue(t,i),d.properties[t]=i,u.properties[t]=i,g.properties[t]=i,p.properties[t]=i,m.properties[t]=i,f.properties[t]=i}}registerOverridePropertyPatternKey(){const e={type:"object",description:o.kg("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:o.kg("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:_};d.patternProperties[b]=e,u.patternProperties[b]=e,g.patternProperties[b]=e,p.patternProperties[b]=e,m.patternProperties[b]=e,f.patternProperties[b]=e,this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,t){const i=this.configurationDefaultsOverrides.get(e)?.configurationDefaultOverrideValue;let s,n;!i||t.disallowConfigurationDefault&&i.source||(s=i.value,n=i.source),r.b0(s)&&(s=t.defaultDefaultValue,n=void 0),r.b0(s)&&(s=function(e){switch(Array.isArray(e)?e[0]:e){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}(t.type)),t.default=s,t.defaultValueSource=n}};function R(e,t){return e.trim()?S.test(e)?o.kg("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e):void 0!==w.getConfigurationProperties()[e]?o.kg("config.property.duplicate","Cannot register '{0}'. This property is already registered.",e):t.policy?.name&&void 0!==w.getPolicyConfigurations().get(t.policy?.name)?o.kg("config.policy.duplicate","Cannot register '{0}'. The associated policy {1} is already registered with {2}.",e,t.policy?.name,w.getPolicyConfigurations().get(t.policy?.name)):null:o.kg("config.property.empty","Cannot register an empty property")}l.O.add(h.Configuration,w)},32848:(e,t,i)=>{"use strict";i.d(t,{f1:()=>A,M$:()=>w,fN:()=>K,N1:()=>j,jQ:()=>R,M0:()=>$});var s=i(98067),n=i(91508),r=i(64383),o=i(78209);function a(...e){switch(e.length){case 1:return(0,o.kg)("contextkey.scanner.hint.didYouMean1","Did you mean {0}?",e[0]);case 2:return(0,o.kg)("contextkey.scanner.hint.didYouMean2","Did you mean {0} or {1}?",e[0],e[1]);case 3:return(0,o.kg)("contextkey.scanner.hint.didYouMean3","Did you mean {0}, {1} or {2}?",e[0],e[1],e[2]);default:return}}const c=(0,o.kg)("contextkey.scanner.hint.didYouForgetToOpenOrCloseQuote","Did you forget to open or close the quote?"),l=(0,o.kg)("contextkey.scanner.hint.didYouForgetToEscapeSlash","Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'.");class h{constructor(){this._input="",this._start=0,this._current=0,this._tokens=[],this._errors=[],this.stringRe=/[a-zA-Z0-9_<>\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(e){switch(e.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return e.isTripleEq?"===":"==";case 4:return e.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:case 8:return">=";case 9:return"=~";case 10:case 17:case 18:case 19:return e.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 20:return"EOF";default:throw(0,r.iH)(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}static{this._regexFlags=new Set(["i","g","s","m","y","u"].map((e=>e.charCodeAt(0))))}static{this._keywords=new Map([["not",14],["in",13],["false",12],["true",11]])}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();){this._start=this._current;switch(this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){const e=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:e})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){const e=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:e})}else this._match(126)?this._addToken(9):this._error(a("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(a("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(a("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return!this._isAtEnd()&&(this._input.charCodeAt(this._current)===e&&(this._current++,!0))}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){const t=this._start,i=this._input.substring(this._start,this._current),s={type:19,offset:this._start,lexeme:i};this._errors.push({offset:t,lexeme:i,additionalInfo:e}),this._tokens.push(s)}_string(){this.stringRe.lastIndex=this._start;const e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;const t=this._input.substring(this._start,this._current),i=h._keywords.get(t);i?this._addToken(i):this._tokens.push({type:17,lexeme:t,offset:this._start})}}_quotedString(){for(;39!==this._peek()&&!this._isAtEnd();)this._advance();this._isAtEnd()?this._error(c):(this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1}))}_regex(){let e=this._current,t=!1,i=!1;for(;;){if(e>=this._input.length)return this._current=e,void this._error(l);const s=this._input.charCodeAt(e);if(t)t=!1;else{if(47===s&&!i){e++;break}91===s?i=!0:92===s?t=!0:93===s&&(i=!1)}e++}for(;e<this._input.length&&h._regexFlags.has(this._input.charCodeAt(e));)e++;this._current=e;const s=this._input.substring(this._start,this._current);this._tokens.push({type:10,lexeme:s,offset:this._start})}_isAtEnd(){return this._current>=this._input.length}}var d=i(63591);const u=new Map;u.set("false",!1),u.set("true",!0),u.set("isMac",s.zx),u.set("isLinux",s.j9),u.set("isWindows",s.uF),u.set("isWeb",s.HZ),u.set("isMacNative",s.zx&&!s.HZ),u.set("isEdge",s.UP),u.set("isFirefox",s.gm),u.set("isChrome",s.H8),u.set("isSafari",s.nr);const g=Object.prototype.hasOwnProperty,p={regexParsingWithErrorRecovery:!0},m=(0,o.kg)("contextkey.parser.error.emptyString","Empty context key expression"),f=(0,o.kg)("contextkey.parser.error.emptyString.hint","Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),_=(0,o.kg)("contextkey.parser.error.noInAfterNot","'in' after 'not'."),v=(0,o.kg)("contextkey.parser.error.closingParenthesis","closing parenthesis ')'"),C=(0,o.kg)("contextkey.parser.error.unexpectedToken","Unexpected token"),E=(0,o.kg)("contextkey.parser.error.unexpectedToken.hint","Did you forget to put && or || before the token?"),b=(0,o.kg)("contextkey.parser.error.unexpectedEOF","Unexpected end of expression"),S=(0,o.kg)("contextkey.parser.error.unexpectedEOF.hint","Did you forget to put a context key?");class y{static{this._parseError=new Error}constructor(e=p){this._config=e,this._scanner=new h,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(""!==e){this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{const e=this._expr();if(!this._isAtEnd()){const e=this._peek(),t=17===e.type?E:void 0;throw this._parsingErrors.push({message:C,offset:e.offset,lexeme:h.getLexeme(e),additionalInfo:t}),y._parseError}return e}catch(t){if(t!==y._parseError)throw t;return}}else this._parsingErrors.push({message:m,offset:0,lexeme:"",additionalInfo:f})}_expr(){return this._or()}_or(){const e=[this._and()];for(;this._matchOne(16);){const t=this._and();e.push(t)}return 1===e.length?e[0]:w.or(...e)}_and(){const e=[this._term()];for(;this._matchOne(15);){const t=this._term();e.push(t)}return 1===e.length?e[0]:w.and(...e)}_term(){if(this._matchOne(2)){const e=this._peek();switch(e.type){case 11:return this._advance(),T.INSTANCE;case 12:return this._advance(),x.INSTANCE;case 0:{this._advance();const e=this._expr();return this._consume(1,v),e?.negate()}case 17:return this._advance(),D.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){const e=this._peek();switch(e.type){case 11:return this._advance(),w.true();case 12:return this._advance(),w.false();case 0:{this._advance();const e=this._expr();return this._consume(1,v),e}case 17:{const s=e.lexeme;if(this._advance(),this._matchOne(9)){const e=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),10!==e.type)throw this._errExpectedButGot("REGEX",e);const i=e.lexeme,n=i.lastIndexOf("/"),r=n===i.length-1?void 0:this._removeFlagsGY(i.substring(n+1));let o;try{o=new RegExp(i.substring(1,n),r)}catch(t){throw this._errExpectedButGot("REGEX",e)}return B.create(s,o)}switch(e.type){case 10:case 19:{const i=[e.lexeme];this._advance();let n=this._peek(),r=0;for(let t=0;t<e.lexeme.length;t++)40===e.lexeme.charCodeAt(t)?r++:41===e.lexeme.charCodeAt(t)&&r--;for(;!this._isAtEnd()&&15!==n.type&&16!==n.type;){switch(n.type){case 0:r++;break;case 1:r--;break;case 10:case 18:for(let t=0;t<n.lexeme.length;t++)40===n.lexeme.charCodeAt(t)?r++:41===e.lexeme.charCodeAt(t)&&r--}if(r<0)break;i.push(h.getLexeme(n)),this._advance(),n=this._peek()}const o=i.join(""),a=o.lastIndexOf("/"),c=a===o.length-1?void 0:this._removeFlagsGY(o.substring(a+1));let l;try{l=new RegExp(o.substring(1,a),c)}catch(t){throw this._errExpectedButGot("REGEX",e)}return w.regex(s,l)}case 18:{const t=e.lexeme;this._advance();let r=null;if(!(0,n.AV)(t)){const s=t.indexOf("/"),n=t.lastIndexOf("/");if(s!==n&&s>=0){const o=t.slice(s+1,n),a="i"===t[n+1]?"i":"";try{r=new RegExp(o,a)}catch(i){throw this._errExpectedButGot("REGEX",e)}}}if(null===r)throw this._errExpectedButGot("REGEX",e);return B.create(s,r)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,_);const e=this._value();return w.notIn(s,e)}switch(this._peek().type){case 3:{this._advance();const e=this._value();if(18===this._previous().type)return w.equals(s,e);switch(e){case"true":return w.has(s);case"false":return w.not(s);default:return w.equals(s,e)}}case 4:{this._advance();const e=this._value();if(18===this._previous().type)return w.notEquals(s,e);switch(e){case"true":return w.not(s);case"false":return w.has(s);default:return w.notEquals(s,e)}}case 5:return this._advance(),U.create(s,this._value());case 6:return this._advance(),H.create(s,this._value());case 7:return this._advance(),P.create(s,this._value());case 8:return this._advance(),F.create(s,this._value());case 13:return this._advance(),w.in(s,this._value());default:return w.has(s)}}case 20:throw this._parsingErrors.push({message:b,offset:e.offset,lexeme:"",additionalInfo:S}),y._parseError;default:throw this._errExpectedButGot("true | false | KEY \n\t| KEY '=~' REGEX \n\t| KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value",this._peek())}}_value(){const e=this._peek();switch(e.type){case 17:case 18:return this._advance(),e.lexeme;case 11:return this._advance(),"true";case 12:return this._advance(),"false";case 13:return this._advance(),"in";default:return""}}_removeFlagsGY(e){return e.replaceAll(this._flagsGYRe,"")}_previous(){return this._tokens[this._current-1]}_matchOne(e){return!!this._check(e)&&(this._advance(),!0)}_advance(){return this._isAtEnd()||this._current++,this._previous()}_consume(e,t){if(this._check(e))return this._advance();throw this._errExpectedButGot(t,this._peek())}_errExpectedButGot(e,t,i){const s=(0,o.kg)("contextkey.parser.error.expectedButGot","Expected: {0}\nReceived: '{1}'.",e,h.getLexeme(t)),n=t.offset,r=h.getLexeme(t);return this._parsingErrors.push({message:s,offset:n,lexeme:r,additionalInfo:i}),y._parseError}_check(e){return this._peek().type===e}_peek(){return this._tokens[this._current]}_isAtEnd(){return 20===this._peek().type}}class w{static false(){return T.INSTANCE}static true(){return x.INSTANCE}static has(e){return k.create(e)}static equals(e,t){return A.create(e,t)}static notEquals(e,t){return O.create(e,t)}static regex(e,t){return B.create(e,t)}static in(e,t){return N.create(e,t)}static notIn(e,t){return I.create(e,t)}static not(e){return D.create(e)}static and(...e){return z.create(e,null,!0)}static or(...e){return G.create(e,null,!0)}static{this._parser=new y({regexParsingWithErrorRecovery:!1})}static deserialize(e){if(void 0===e||null===e)return;return this._parser.parse(e)}}function R(e,t){const i=e?e.substituteConstants():void 0,s=t?t.substituteConstants():void 0;return!i&&!s||!(!i||!s)&&i.equals(s)}function L(e,t){return e.cmp(t)}class T{static{this.INSTANCE=new T}constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!1}serialize(){return"false"}keys(){return[]}negate(){return x.INSTANCE}}class x{static{this.INSTANCE=new x}constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!0}serialize(){return"true"}keys(){return[]}negate(){return T.INSTANCE}}class k{static create(e,t=null){const i=u.get(e);return"boolean"===typeof i?i?x.INSTANCE:T.INSTANCE:new k(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=2}cmp(e){return e.type!==this.type?this.type-e.type:Y(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=u.get(this.key);return"boolean"===typeof e?e?x.INSTANCE:T.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=D.create(this.key,this)),this.negated}}class A{static create(e,t,i=null){if("boolean"===typeof t)return t?k.create(e,i):D.create(e,i);const s=u.get(e);if("boolean"===typeof s){return t===(s?"true":"false")?x.INSTANCE:T.INSTANCE}return new A(e,t,i)}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=4}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=u.get(this.key);if("boolean"===typeof e){const t=e?"true":"false";return this.value===t?x.INSTANCE:T.INSTANCE}return this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=O.create(this.key,this.value,this)),this.negated}}class N{static create(e,t){return new N(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=10,this.negated=null}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type&&(this.key===e.key&&this.valueKey===e.valueKey)}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.valueKey),i=e.getValue(this.key);return Array.isArray(t)?t.includes(i):"string"===typeof i&&"object"===typeof t&&null!==t&&g.call(t,i)}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=I.create(this.key,this.valueKey)),this.negated}}class I{static create(e,t){return new I(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=11,this._negated=N.create(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:this._negated.cmp(e._negated)}equals(e){return e.type===this.type&&this._negated.equals(e._negated)}substituteConstants(){return this}evaluate(e){return!this._negated.evaluate(e)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}negate(){return this._negated}}class O{static create(e,t,i=null){if("boolean"===typeof t)return t?D.create(e,i):k.create(e,i);const s=u.get(e);if("boolean"===typeof s){return t===(s?"true":"false")?T.INSTANCE:x.INSTANCE}return new O(e,t,i)}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=5}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=u.get(this.key);if("boolean"===typeof e){const t=e?"true":"false";return this.value===t?T.INSTANCE:x.INSTANCE}return this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=A.create(this.key,this.value,this)),this.negated}}class D{static create(e,t=null){const i=u.get(e);return"boolean"===typeof i?i?T.INSTANCE:x.INSTANCE:new D(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=3}cmp(e){return e.type!==this.type?this.type-e.type:Y(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=u.get(this.key);return"boolean"===typeof e?e?T.INSTANCE:x.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=k.create(this.key,this)),this.negated}}function M(e,t){if("string"===typeof e){const t=parseFloat(e);isNaN(t)||(e=t)}return"string"===typeof e||"number"===typeof e?t(e):T.INSTANCE}class P{static create(e,t,i=null){return M(t,(t=>new P(e,t,i)))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=12}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=H.create(this.key,this.value,this)),this.negated}}class F{static create(e,t,i=null){return M(t,(t=>new F(e,t,i)))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=13}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=U.create(this.key,this.value,this)),this.negated}}class U{static create(e,t,i=null){return M(t,(t=>new U(e,t,i)))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=14}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=F.create(this.key,this.value,this)),this.negated}}class H{static create(e,t,i=null){return M(t,(t=>new H(e,t,i)))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=15}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=P.create(this.key,this.value,this)),this.negated}}class B{static create(e,t){return new B(e,t)}constructor(e,t){this.key=e,this.regexp=t,this.type=7,this.negated=null}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.key<e.key)return-1;if(this.key>e.key)return 1;const t=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return t<i?-1:t>i?1:0}equals(e){if(e.type===this.type){const t=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return this.key===e.key&&t===i}return!1}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.key);return!!this.regexp&&this.regexp.test(t)}serialize(){const e=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=W.create(this)),this.negated}}class W{static create(e){return new W(e)}constructor(e){this._actual=e,this.type=8}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type&&this._actual.equals(e._actual)}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){return`!(${this._actual.serialize()})`}keys(){return this._actual.keys()}negate(){return this._actual}}function V(e){let t=null;for(let i=0,s=e.length;i<s;i++){const s=e[i].substituteConstants();if(e[i]!==s&&null===t){t=[];for(let s=0;s<i;s++)t[s]=e[s]}null!==t&&(t[i]=s)}return null===t?e:t}class z{static create(e,t,i){return z._normalizeArr(e,t,i)}constructor(e,t){this.expr=e,this.negated=t,this.type=6}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,i=this.expr.length;t<i;t++){const i=L(this.expr[t],e.expr[t]);if(0!==i)return i}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,i=this.expr.length;t<i;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){const e=V(this.expr);return e===this.expr?this:z.create(e,this.negated,!1)}evaluate(e){for(let t=0,i=this.expr.length;t<i;t++)if(!this.expr[t].evaluate(e))return!1;return!0}static _normalizeArr(e,t,i){const s=[];let n=!1;for(const r of e)if(r)if(1!==r.type){if(0===r.type)return T.INSTANCE;6!==r.type?s.push(r):s.push(...r.expr)}else n=!0;if(0===s.length&&n)return x.INSTANCE;if(0!==s.length){if(1===s.length)return s[0];s.sort(L);for(let e=1;e<s.length;e++)s[e-1].equals(s[e])&&(s.splice(e,1),e--);if(1===s.length)return s[0];for(;s.length>1;){const e=s[s.length-1];if(9!==e.type)break;s.pop();const t=s.pop(),n=0===s.length,r=G.create(e.expr.map((e=>z.create([e,t],null,i))),null,n);r&&(s.push(r),s.sort(L))}if(1===s.length)return s[0];if(i){for(let e=0;e<s.length;e++)for(let t=e+1;t<s.length;t++)if(s[e].negate().equals(s[t]))return T.INSTANCE;if(1===s.length)return s[0]}return new z(s,t)}}serialize(){return this.expr.map((e=>e.serialize())).join(" && ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());this.negated=G.create(e,this,!0)}return this.negated}}class G{static create(e,t,i){return G._normalizeArr(e,t,i)}constructor(e,t){this.expr=e,this.negated=t,this.type=9}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,i=this.expr.length;t<i;t++){const i=L(this.expr[t],e.expr[t]);if(0!==i)return i}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,i=this.expr.length;t<i;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){const e=V(this.expr);return e===this.expr?this:G.create(e,this.negated,!1)}evaluate(e){for(let t=0,i=this.expr.length;t<i;t++)if(this.expr[t].evaluate(e))return!0;return!1}static _normalizeArr(e,t,i){let s=[],n=!1;if(e){for(let t=0,i=e.length;t<i;t++){const i=e[t];if(i)if(0!==i.type){if(1===i.type)return x.INSTANCE;9!==i.type?s.push(i):s=s.concat(i.expr)}else n=!0}if(0===s.length&&n)return T.INSTANCE;s.sort(L)}if(0!==s.length){if(1===s.length)return s[0];for(let e=1;e<s.length;e++)s[e-1].equals(s[e])&&(s.splice(e,1),e--);if(1===s.length)return s[0];if(i){for(let e=0;e<s.length;e++)for(let t=e+1;t<s.length;t++)if(s[e].negate().equals(s[t]))return x.INSTANCE;if(1===s.length)return s[0]}return new G(s,t)}}serialize(){return this.expr.map((e=>e.serialize())).join(" || ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());for(;e.length>1;){const t=e.shift(),i=e.shift(),s=[];for(const e of X(t))for(const t of X(i))s.push(z.create([e,t],null,!1));e.unshift(G.create(s,null,!1))}this.negated=G.create(e,this,!0)}return this.negated}}class j extends k{static{this._info=[]}static all(){return j._info.values()}constructor(e,t,i){super(e,null),this._defaultValue=t,"object"===typeof i?j._info.push({...i,key:e}):!0!==i&&j._info.push({key:e,description:i,type:null!==t&&void 0!==t?typeof t:void 0})}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return A.create(this.key,e)}}const K=(0,d.u1)("contextKeyService");function Y(e,t){return e<t?-1:e>t?1:0}function q(e,t,i,s){return e<i?-1:e>i?1:t<s?-1:t>s?1:0}function $(e,t){if(0===e.type||1===t.type)return!0;if(9===e.type)return 9===t.type&&Q(e.expr,t.expr);if(9===t.type){for(const i of t.expr)if($(e,i))return!0;return!1}if(6===e.type){if(6===t.type)return Q(t.expr,e.expr);for(const i of e.expr)if($(i,t))return!0;return!1}return e.equals(t)}function Q(e,t){let i=0,s=0;for(;i<e.length&&s<t.length;){const n=e[i].cmp(t[s]);if(n<0)return!1;0===n?(i++,s++):s++}return i===e.length}function X(e){return 9===e.type?e.expr:[e]}},28290:(e,t,i)=>{"use strict";i.d(t,{J7:()=>l,W0:()=>a,aV:()=>c,nd:()=>o});var s=i(98067),n=i(78209),r=i(32848);new r.N1("isMac",s.zx,(0,n.kg)("isMac","Whether the operating system is macOS")),new r.N1("isLinux",s.j9,(0,n.kg)("isLinux","Whether the operating system is Linux"));const o=new r.N1("isWindows",s.uF,(0,n.kg)("isWindows","Whether the operating system is Windows")),a=new r.N1("isWeb",s.HZ,(0,n.kg)("isWeb","Whether the platform is a web browser")),c=(new r.N1("isMacNative",s.zx&&!s.HZ,(0,n.kg)("isMacNative","Whether the operating system is macOS on a non-browser platform")),new r.N1("isIOS",s.un,(0,n.kg)("isIOS","Whether the operating system is iOS")),new r.N1("isMobile",s.Fr,(0,n.kg)("isMobile","Whether the platform is a mobile web browser")),new r.N1("isDevelopment",!1,!0),new r.N1("productQualityType","",(0,n.kg)("productQualityType","Quality type of VS Code")),"inputFocus"),l=new r.N1(c,!1,(0,n.kg)("inputFocus","Whether keyboard focus is inside an input box"))},47508:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r,l:()=>n});var s=i(63591);const n=(0,s.u1)("contextViewService"),r=(0,s.u1)("contextMenuService")},59599:(e,t,i)=>{"use strict";i.d(t,{X:()=>s});const s=(0,i(63591).u1)("dialogService")},61292:(e,t,i)=>{"use strict";i.d(t,{PD:()=>r,sV:()=>n});var s=i(46359);const n={EDITORS:"CodeEditors",FILES:"CodeFiles"};s.O.add("workbench.contributions.dragAndDrop",new class{});class r{static{this.INSTANCE=new r}constructor(){}static getInstance(){return r.INSTANCE}hasData(e){return e&&e===this.proto}getData(e){if(this.hasData(e))return this.data}}},97035:(e,t,i)=>{"use strict";i.d(t,{k:()=>s});const s=(0,i(63591).u1)("environmentService")},7291:(e,t,i)=>{"use strict";var s;i.d(t,{p:()=>s}),function(e){e[e.FILE=0]="FILE",e[e.FOLDER=1]="FOLDER",e[e.ROOT_FOLDER=2]="ROOT_FOLDER"}(s||(s={}))},89100:(e,t,i)=>{"use strict";i.d(t,{pG:()=>x,_Q:()=>k,dg:()=>b});var s=i(88443),n=i(8597),r=i(35315),o=i(91581),a=i(17390),c=i(10350),l=i(41234),h=(i(10713),i(78209)),d=i(42904);const u=h.kg("defaultLabel","input"),g=h.kg("label.preserveCaseToggle","Preserve Case");class p extends r.l{constructor(e){super({icon:c.W.preserveCase,title:g+e.appendTitle,isChecked:e.isChecked,hoverDelegate:e.hoverDelegate??(0,d.nZ)("element"),inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class m extends a.x{constructor(e,t,i,s){super(),this._showOptionButtons=i,this.fixFocusOnOptionClickEnabled=!0,this.cachedOptionsWidth=0,this._onDidOptionChange=this._register(new l.vl),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new l.vl),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new l.vl),this._onInput=this._register(new l.vl),this._onKeyUp=this._register(new l.vl),this._onPreserveCaseKeyDown=this._register(new l.vl),this.onPreserveCaseKeyDown=this._onPreserveCaseKeyDown.event,this.contextViewProvider=t,this.placeholder=s.placeholder||"",this.validation=s.validation,this.label=s.label||u;const r=s.appendPreserveCaseLabel||"",a=s.history||[],c=!!s.flexibleHeight,h=!!s.flexibleWidth,d=s.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new o.mJ(this.domNode,this.contextViewProvider,{ariaLabel:this.label||"",placeholder:this.placeholder||"",validationOptions:{validation:this.validation},history:a,showHistoryHint:s.showHistoryHint,flexibleHeight:c,flexibleWidth:h,flexibleMaxHeight:d,inputBoxStyles:s.inputBoxStyles})),this.preserveCase=this._register(new p({appendTitle:r,isChecked:!1,...s.toggleStyles})),this._register(this.preserveCase.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()}))),this._register(this.preserveCase.onKeyDown((e=>{this._onPreserveCaseKeyDown.fire(e)}))),this._showOptionButtons?this.cachedOptionsWidth=this.preserveCase.width():this.cachedOptionsWidth=0;const g=[this.preserveCase.domNode];this.onkeydown(this.domNode,(e=>{if(e.equals(15)||e.equals(17)||e.equals(9)){const t=g.indexOf(this.domNode.ownerDocument.activeElement);if(t>=0){let i=-1;e.equals(17)?i=(t+1)%g.length:e.equals(15)&&(i=0===t?g.length-1:t-1),e.equals(9)?(g[t].blur(),this.inputBox.focus()):i>=0&&g[i].focus(),n.fs.stop(e,!0)}}}));const m=document.createElement("div");m.className="controls",m.style.display=this._showOptionButtons?"block":"none",m.appendChild(this.preserveCase.domNode),this.domNode.appendChild(m),e?.appendChild(this.domNode),this.onkeydown(this.inputBox.inputElement,(e=>this._onKeyDown.fire(e))),this.onkeyup(this.inputBox.inputElement,(e=>this._onKeyUp.fire(e))),this.oninput(this.inputBox.inputElement,(e=>this._onInput.fire())),this.onmousedown(this.inputBox.inputElement,(e=>this._onMouseDown.fire(e)))}enable(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.preserveCase.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.preserveCase.disable()}setEnabled(e){e?this.enable():this.disable()}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getPreserveCase(){return this.preserveCase.checked}setPreserveCase(e){this.preserveCase.checked=e}focusOnPreserve(){this.preserveCase.focus()}validate(){this.inputBox?.validate()}set width(e){this.inputBox.paddingRight=this.cachedOptionsWidth,this.domNode.style.width=e+"px"}dispose(){super.dispose()}}var f=i(32848),_=i(59261),v=i(5662),C=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},E=function(e,t){return function(i,s){t(i,s,e)}};const b=new f.N1("suggestWidgetVisible",!1,(0,h.kg)("suggestWidgetVisible","Whether suggestion are visible")),S="historyNavigationWidgetFocus",y="historyNavigationForwardsEnabled",w="historyNavigationBackwardsEnabled";let R;const L=[];function T(e,t){if(L.includes(t))throw new Error("Cannot register the same widget multiple times");L.push(t);const i=new v.Cm,s=new f.N1(S,!1).bindTo(e),r=new f.N1(y,!0).bindTo(e),o=new f.N1(w,!0).bindTo(e),a=()=>{s.set(!0),R=t},c=()=>{s.set(!1),R===t&&(R=void 0)};return(0,n.X7)(t.element)&&a(),i.add(t.onDidFocus((()=>a()))),i.add(t.onDidBlur((()=>c()))),i.add((0,v.s)((()=>{L.splice(L.indexOf(t),1),c()}))),{historyNavigationForwardsEnablement:r,historyNavigationBackwardsEnablement:o,dispose(){i.dispose()}}}let x=class extends s.c{constructor(e,t,i,s){super(e,t,i);const n=this._register(s.createScoped(this.inputBox.element));this._register(T(n,this.inputBox))}};x=C([E(3,f.fN)],x);let k=class extends m{constructor(e,t,i,s,n=!1){super(e,t,n,i);const r=this._register(s.createScoped(this.inputBox.element));this._register(T(r,this.inputBox))}};k=C([E(3,f.fN)],k),_.f.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:f.M$.and(f.M$.has(S),f.M$.equals(w,!0),f.M$.not("isComposing"),b.isEqualTo(!1)),primary:16,secondary:[528],handler:e=>{R?.showPreviousValue()}}),_.f.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:f.M$.and(f.M$.has(S),f.M$.equals(y,!0),f.M$.not("isComposing"),b.isEqualTo(!1)),primary:18,secondary:[530],handler:e=>{R?.showNextValue()}})},67220:(e,t,i)=>{"use strict";i.d(t,{TN:()=>l,fO:()=>h});var s=i(63591),n=i(5662),r=i(84001),o=i(8597),a=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},c=function(e,t){return function(i,s){t(i,s,e)}};const l=(0,s.u1)("hoverService");let h=class extends n.jG{get delay(){return this.isInstantlyHovering()?0:this._delay}constructor(e,t,i={},s,r){super(),this.placement=e,this.instantHover=t,this.overrideOptions=i,this.configurationService=s,this.hoverService=r,this.lastHoverHideTime=0,this.timeLimit=200,this.hoverDisposables=this._register(new n.Cm),this._delay=this.configurationService.getValue("workbench.hover.delay"),this._register(this.configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration("workbench.hover.delay")&&(this._delay=this.configurationService.getValue("workbench.hover.delay"))})))}showHover(e,t){const i="function"===typeof this.overrideOptions?this.overrideOptions(e,t):this.overrideOptions;this.hoverDisposables.clear();const s=(0,o.sb)(e.target)?[e.target]:e.target.targetElements;for(const r of s)this.hoverDisposables.add((0,o.b2)(r,"keydown",(e=>{e.equals(9)&&this.hoverService.hideHover()})));const n=(0,o.sb)(e.content)?void 0:e.content.toString();return this.hoverService.showHover({...e,...i,persistence:{hideOnKeyDown:!0,...i.persistence},id:n,appearance:{...e.appearance,compact:!0,skipFadeInAnimation:this.isInstantlyHovering(),...i.appearance}},t)}isInstantlyHovering(){return this.instantHover&&Date.now()-this.lastHoverHideTime<this.timeLimit}onDidHideHover(){this.hoverDisposables.clear(),this.instantHover&&(this.lastHoverHideTime=Date.now())}};h=a([c(3,r.pG),c(4,l)],h)},84040:(e,t,i)=>{"use strict";i.d(t,{d:()=>s});class s{constructor(e,t=[],i=!1){this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=i}}},14718:(e,t,i)=>{"use strict";i.d(t,{N:()=>o,v:()=>r});var s=i(84040);const n=[];function r(e,t,i){t instanceof s.d||(t=new s.d(t,[],Boolean(i))),n.push([e,t])}function o(){return n}},63591:(e,t,i)=>{"use strict";var s;i.d(t,{_$:()=>s,_Y:()=>n,u1:()=>r}),function(e){e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=function(t){return t[e.DI_DEPENDENCIES]||[]}}(s||(s={}));const n=r("instantiationService");function r(e){if(s.serviceIds.has(e))return s.serviceIds.get(e);const t=function(e,i,n){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");!function(e,t,i){t[s.DI_TARGET]===t?t[s.DI_DEPENDENCIES].push({id:e,index:i}):(t[s.DI_DEPENDENCIES]=[{id:e,index:i}],t[s.DI_TARGET]=t)}(t,e,n)};return t.toString=()=>e,s.serviceIds.set(e,t),t}},58345:(e,t,i)=>{"use strict";i.d(t,{a:()=>s});class s{constructor(...e){this._entries=new Map;for(const[t,i]of e)this.set(t,i)}set(e,t){const i=this._entries.get(e);return this._entries.set(e,t),i}get(e){return this._entries.get(e)}}},78748:(e,t,i)=>{"use strict";i.d(t,{F:()=>r});var s=i(41234),n=i(46359);const r={JSONContribution:"base.contributions.json"};const o=new class{constructor(){this._onDidChangeSchema=new s.vl,this.schemasById={}}registerSchema(e,t){var i;this.schemasById[(i=e,i.length>0&&"#"===i.charAt(i.length-1)?i.substring(0,i.length-1):i)]=t,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}};n.O.add(r.JSONContribution,o)},98031:(e,t,i)=>{"use strict";i.d(t,{b:()=>s});const s=(0,i(63591).u1)("keybindingService")},59261:(e,t,i)=>{"use strict";i.d(t,{f:()=>h});var s=i(42539),n=i(98067),r=i(50091),o=i(46359),a=i(5662),c=i(58925);class l{constructor(){this._coreKeybindings=new c.w,this._extensionKeybindings=[],this._cachedMergedKeybindings=null}static bindToCurrentPlatform(e){if(1===n.OS){if(e&&e.win)return e.win}else if(2===n.OS){if(e&&e.mac)return e.mac}else if(e&&e.linux)return e.linux;return e}registerKeybindingRule(e){const t=l.bindToCurrentPlatform(e),i=new a.Cm;if(t&&t.primary){const r=(0,s.Zv)(t.primary,n.OS);r&&i.add(this._registerDefaultKeybinding(r,e.id,e.args,e.weight,0,e.when))}if(t&&Array.isArray(t.secondary))for(let r=0,o=t.secondary.length;r<o;r++){const o=t.secondary[r],a=(0,s.Zv)(o,n.OS);a&&i.add(this._registerDefaultKeybinding(a,e.id,e.args,e.weight,-r-1,e.when))}return i}registerCommandAndKeybindingRule(e){return(0,a.qE)(this.registerKeybindingRule(e),r.w.registerCommand(e))}_registerDefaultKeybinding(e,t,i,s,n,r){const o=this._coreKeybindings.push({keybinding:e,command:t,commandArgs:i,when:r,weight1:s,weight2:n,extensionId:null,isBuiltinExtension:!1});return this._cachedMergedKeybindings=null,(0,a.s)((()=>{o(),this._cachedMergedKeybindings=null}))}getDefaultKeybindings(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=Array.from(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(d)),this._cachedMergedKeybindings.slice(0)}}const h=new l;function d(e,t){if(e.weight1!==t.weight1)return e.weight1-t.weight1;if(e.command&&t.command){if(e.command<t.command)return-1;if(e.command>t.command)return 1}return e.weight2-t.weight2}o.O.add("platform.keybindingsRegistry",h)},67841:(e,t,i)=>{"use strict";i.d(t,{L:()=>s});const s=(0,i(63591).u1)("labelService")},36584:(e,t,i)=>{"use strict";i.d(t,{PE:()=>Ce,aG:()=>Ee,er:()=>ft,YD:()=>Re,zL:()=>gt,Nf:()=>Ne,cH:()=>Oe});var s=i(8597),n=i(25890),r=i(18447),o=i(41234),a=i(5662),c=(i(48215),i(93090));class l{get templateId(){return this.renderer.templateId}constructor(e,t){this.renderer=e,this.modelProvider=t}renderTemplate(e){return{data:this.renderer.renderTemplate(e),disposable:a.jG.None}}renderElement(e,t,i,s){if(i.disposable?.dispose(),!i.data)return;const n=this.modelProvider();if(n.isResolved(e))return this.renderer.renderElement(n.get(e),e,i.data,s);const o=new r.Qi,a=n.resolve(e,o.token);i.disposable={dispose:()=>o.cancel()},this.renderer.renderPlaceholder(e,i.data),a.then((t=>this.renderer.renderElement(t,e,i.data,s)))}disposeTemplate(e){e.disposable&&(e.disposable.dispose(),e.disposable=void 0),e.data&&(this.renderer.disposeTemplate(e.data),e.data=void 0)}}class h{constructor(e,t){this.modelProvider=e,this.accessibilityProvider=t}getWidgetAriaLabel(){return this.accessibilityProvider.getWidgetAriaLabel()}getAriaLabel(e){const t=this.modelProvider();return t.isResolved(e)?this.accessibilityProvider.getAriaLabel(t.get(e)):null}}class d{constructor(e,t,i,s,n={}){const r=()=>this.model,o=s.map((e=>new l(e,r)));this.list=new c.B8(e,t,i,o,function(e,t){return{...t,accessibilityProvider:t.accessibilityProvider&&new h(e,t.accessibilityProvider)}}(r,n))}updateOptions(e){this.list.updateOptions(e)}getHTMLElement(){return this.list.getHTMLElement()}get onDidFocus(){return this.list.onDidFocus}get widget(){return this.list}get onDidDispose(){return this.list.onDidDispose}get onMouseDblClick(){return o.Jh.map(this.list.onMouseDblClick,(({element:e,index:t,browserEvent:i})=>({element:void 0===e?void 0:this._model.get(e),index:t,browserEvent:i})))}get onPointer(){return o.Jh.map(this.list.onPointer,(({element:e,index:t,browserEvent:i})=>({element:void 0===e?void 0:this._model.get(e),index:t,browserEvent:i})))}get onDidChangeSelection(){return o.Jh.map(this.list.onDidChangeSelection,(({elements:e,indexes:t,browserEvent:i})=>({elements:e.map((e=>this._model.get(e))),indexes:t,browserEvent:i})))}get model(){return this._model}set model(e){this._model=e,this.list.splice(0,this.list.length,(0,n.y1)(e.length))}getFocus(){return this.list.getFocus()}getSelection(){return this.list.getSelection()}getSelectedElements(){return this.getSelection().map((e=>this.model.get(e)))}style(e){this.list.style(e)}dispose(){this.list.dispose()}}var u=i(48196),g=i(42904),p=i(35151);class m{static{this.TemplateId="row"}constructor(e,t,i){this.columns=e,this.getColumnSize=i,this.templateId=m.TemplateId,this.renderedTemplates=new Set;const s=new Map(t.map((e=>[e.templateId,e])));this.renderers=[];for(const n of e){const e=s.get(n.templateId);if(!e)throw new Error(`Table cell renderer for template id ${n.templateId} not found.`);this.renderers.push(e)}}renderTemplate(e){const t=(0,s.BC)(e,(0,s.$)(".monaco-table-tr")),i=[],n=[];for(let o=0;o<this.columns.length;o++){const e=this.renderers[o],r=(0,s.BC)(t,(0,s.$)(".monaco-table-td",{"data-col-index":o}));r.style.width=`${this.getColumnSize(o)}px`,i.push(r),n.push(e.renderTemplate(r))}const r={container:e,cellContainers:i,cellTemplateData:n};return this.renderedTemplates.add(r),r}renderElement(e,t,i,s){for(let n=0;n<this.columns.length;n++){const r=this.columns[n].project(e);this.renderers[n].renderElement(r,t,i.cellTemplateData[n],s)}}disposeElement(e,t,i,s){for(let n=0;n<this.columns.length;n++){const r=this.renderers[n];if(r.disposeElement){const o=this.columns[n].project(e);r.disposeElement(o,t,i.cellTemplateData[n],s)}}}disposeTemplate(e){for(let t=0;t<this.columns.length;t++){this.renderers[t].disposeTemplate(e.cellTemplateData[t])}(0,s.w_)(e.container),this.renderedTemplates.delete(e)}layoutColumn(e,t){for(const{cellContainers:i}of this.renderedTemplates)i[e].style.width=`${t}px`}}class f extends a.jG{get minimumSize(){return this.column.minimumWidth??120}get maximumSize(){return this.column.maximumWidth??Number.POSITIVE_INFINITY}get onDidChange(){return this.column.onDidChangeWidthConstraints??o.Jh.None}constructor(e,t){super(),this.column=e,this.index=t,this._onDidLayout=new o.vl,this.onDidLayout=this._onDidLayout.event,this.element=(0,s.$)(".monaco-table-th",{"data-col-index":t},e.label),e.tooltip&&this._register((0,u.i)().setupManagedHover((0,g.nZ)("mouse"),this.element,e.tooltip))}layout(e){this._onDidLayout.fire([this.index,e])}}class _{static{this.InstanceCount=0}get onDidChangeFocus(){return this.list.onDidChangeFocus}get onDidChangeSelection(){return this.list.onDidChangeSelection}get onDidScroll(){return this.list.onDidScroll}get onMouseDblClick(){return this.list.onMouseDblClick}get onPointer(){return this.list.onPointer}get onDidFocus(){return this.list.onDidFocus}get scrollTop(){return this.list.scrollTop}set scrollTop(e){this.list.scrollTop=e}get scrollHeight(){return this.list.scrollHeight}get renderHeight(){return this.list.renderHeight}get onDidDispose(){return this.list.onDidDispose}constructor(e,t,i,n,r,l){this.virtualDelegate=i,this.columns=n,this.domId="table_id_"+ ++_.InstanceCount,this.disposables=new a.Cm,this.cachedWidth=0,this.cachedHeight=0,this.domNode=(0,s.BC)(t,(0,s.$)(`.monaco-table.${this.domId}`));const h=n.map(((e,t)=>this.disposables.add(new f(e,t)))),d={size:h.reduce(((e,t)=>e+t.column.weight),0),views:h.map((e=>({size:e.column.weight,view:e})))};this.splitview=this.disposables.add(new p.U(this.domNode,{orientation:1,scrollbarVisibility:2,getSashOrthogonalSize:()=>this.cachedHeight,descriptor:d})),this.splitview.el.style.height=`${i.headerRowHeight}px`,this.splitview.el.style.lineHeight=`${i.headerRowHeight}px`;const u=new m(n,r,(e=>this.splitview.getViewSize(e)));var g;this.list=this.disposables.add(new c.B8(e,this.domNode,(g=i,{getHeight:e=>g.getHeight(e),getTemplateId:()=>m.TemplateId}),[u],l)),o.Jh.any(...h.map((e=>e.onDidLayout)))((([e,t])=>u.layoutColumn(e,t)),null,this.disposables),this.splitview.onDidSashReset((e=>{const t=n.reduce(((e,t)=>e+t.weight),0),i=n[e].weight/t*this.cachedWidth;this.splitview.resizeView(e,i)}),null,this.disposables),this.styleElement=(0,s.li)(this.domNode),this.style(c.bG)}updateOptions(e){this.list.updateOptions(e)}splice(e,t,i=[]){this.list.splice(e,t,i)}getHTMLElement(){return this.domNode}style(e){const t=[];t.push(`.monaco-table.${this.domId} > .monaco-split-view2 .monaco-sash.vertical::before {\n\t\t\ttop: ${this.virtualDelegate.headerRowHeight+1}px;\n\t\t\theight: calc(100% - ${this.virtualDelegate.headerRowHeight}px);\n\t\t}`),this.styleElement.textContent=t.join("\n"),this.list.style(e)}getSelectedElements(){return this.list.getSelectedElements()}getSelection(){return this.list.getSelection()}getFocus(){return this.list.getFocus()}dispose(){this.disposables.dispose()}}var v=i(19466),C=i(66700),E=i(37472),b=i(84565),S=i(42522);class y{constructor(e,t,i={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new E.G6(e,t,null,i),this.onDidSplice=this.model.onDidSplice,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,i.sorter&&(this.sorter={compare:(e,t)=>i.sorter.compare(e.element,t.element)}),this.identityProvider=i.identityProvider}setChildren(e,t=S.f.empty(),i={}){const s=this.getElementLocation(e);this._setChildren(s,this.preserveCollapseState(t),i)}_setChildren(e,t=S.f.empty(),i){const s=new Set,n=new Set;this.model.splice([...e,0],Number.MAX_VALUE,t,{...i,onDidCreateNode:e=>{if(null===e.element)return;const t=e;if(s.add(t.element),this.nodes.set(t.element,t),this.identityProvider){const e=this.identityProvider.getId(t.element).toString();n.add(e),this.nodesByIdentity.set(e,t)}i.onDidCreateNode?.(t)},onDidDeleteNode:e=>{if(null===e.element)return;const t=e;if(s.has(t.element)||this.nodes.delete(t.element),this.identityProvider){const e=this.identityProvider.getId(t.element).toString();n.has(e)||this.nodesByIdentity.delete(e)}i.onDidDeleteNode?.(t)}})}preserveCollapseState(e=S.f.empty()){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),S.f.map(e,(e=>{let t=this.nodes.get(e.element);if(!t&&this.identityProvider){const i=this.identityProvider.getId(e.element).toString();t=this.nodesByIdentity.get(i)}if(!t){let t;return t="undefined"===typeof e.collapsed?void 0:e.collapsed===b.Yo.Collapsed||e.collapsed===b.Yo.PreserveOrCollapsed||e.collapsed!==b.Yo.Expanded&&e.collapsed!==b.Yo.PreserveOrExpanded&&Boolean(e.collapsed),{...e,children:this.preserveCollapseState(e.children),collapsed:t}}const i="boolean"===typeof e.collapsible?e.collapsible:t.collapsible;let s;return s="undefined"===typeof e.collapsed||e.collapsed===b.Yo.PreserveOrCollapsed||e.collapsed===b.Yo.PreserveOrExpanded?t.collapsed:e.collapsed===b.Yo.Collapsed||e.collapsed!==b.Yo.Expanded&&Boolean(e.collapsed),{...e,collapsible:i,collapsed:s,children:this.preserveCollapseState(e.children)}}))}rerender(e){const t=this.getElementLocation(e);this.model.rerender(t)}getFirstElementChild(e=null){const t=this.getElementLocation(e);return this.model.getFirstElementChild(t)}has(e){return this.nodes.has(e)}getListIndex(e){const t=this.getElementLocation(e);return this.model.getListIndex(t)}getListRenderCount(e){const t=this.getElementLocation(e);return this.model.getListRenderCount(t)}isCollapsible(e){const t=this.getElementLocation(e);return this.model.isCollapsible(t)}setCollapsible(e,t){const i=this.getElementLocation(e);return this.model.setCollapsible(i,t)}isCollapsed(e){const t=this.getElementLocation(e);return this.model.isCollapsed(t)}setCollapsed(e,t,i){const s=this.getElementLocation(e);return this.model.setCollapsed(s,t,i)}expandTo(e){const t=this.getElementLocation(e);this.model.expandTo(t)}refilter(){this.model.refilter()}getNode(e=null){if(null===e)return this.model.getNode(this.model.rootRef);const t=this.nodes.get(e);if(!t)throw new b.jh(this.user,`Tree element not found: ${e}`);return t}getNodeLocation(e){return e.element}getParentNodeLocation(e){if(null===e)throw new b.jh(this.user,"Invalid getParentNodeLocation call");const t=this.nodes.get(e);if(!t)throw new b.jh(this.user,`Tree element not found: ${e}`);const i=this.model.getNodeLocation(t),s=this.model.getParentNodeLocation(i);return this.model.getNode(s).element}getElementLocation(e){if(null===e)return[];const t=this.nodes.get(e);if(!t)throw new b.jh(this.user,`Tree element not found: ${e}`);return this.model.getNodeLocation(t)}}function w(e){return{element:{elements:[e.element],incompressible:e.incompressible||!1},children:S.f.map(S.f.from(e.children),w),collapsible:e.collapsible,collapsed:e.collapsed}}function R(e){const t=[e.element],i=e.incompressible||!1;let s,n;for(;[n,s]=S.f.consume(S.f.from(e.children),2),1===n.length&&!n[0].incompressible;)e=n[0],t.push(e.element);return{element:{elements:t,incompressible:i},children:S.f.map(S.f.concat(n,s),R),collapsible:e.collapsible,collapsed:e.collapsed}}function L(e,t=0){let i;return i=t<e.element.elements.length-1?[L(e,t+1)]:S.f.map(S.f.from(e.children),(e=>L(e,0))),0===t&&e.element.incompressible?{element:e.element.elements[t],children:i,incompressible:!0,collapsible:e.collapsible,collapsed:e.collapsed}:{element:e.element.elements[t],children:i,collapsible:e.collapsible,collapsed:e.collapsed}}function T(e){return L(e,0)}function x(e,t,i){return e.element===t?{...e,children:i}:{...e,children:S.f.map(S.f.from(e.children),(e=>x(e,t,i)))}}class k{get onDidSplice(){return this.model.onDidSplice}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get onDidChangeRenderNodeCount(){return this.model.onDidChangeRenderNodeCount}constructor(e,t,i={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.model=new y(e,t,i),this.enabled="undefined"===typeof i.compressionEnabled||i.compressionEnabled,this.identityProvider=i.identityProvider}setChildren(e,t=S.f.empty(),i){const s=i.diffIdentityProvider&&(r=i.diffIdentityProvider,{getId:e=>e.elements.map((e=>r.getId(e).toString())).join("\0")});var r;if(null===e){const e=S.f.map(t,this.enabled?R:w);return void this._setChildren(null,e,{diffIdentityProvider:s,diffDepth:1/0})}const o=this.nodes.get(e);if(!o)throw new b.jh(this.user,"Unknown compressed tree node");const a=this.model.getNode(o),c=this.model.getParentNodeLocation(o),l=this.model.getNode(c),h=x(T(a),e,t),d=(this.enabled?R:w)(h),u=i.diffIdentityProvider?(e,t)=>i.diffIdentityProvider.getId(e)===i.diffIdentityProvider.getId(t):void 0;if((0,n.aI)(d.element.elements,a.element.elements,u))return void this._setChildren(o,d.children||S.f.empty(),{diffIdentityProvider:s,diffDepth:1});const g=l.children.map((e=>e===a?d:e));this._setChildren(l.element,g,{diffIdentityProvider:s,diffDepth:a.depth-l.depth})}isCompressionEnabled(){return this.enabled}setCompressionEnabled(e){if(e===this.enabled)return;this.enabled=e;const t=this.model.getNode().children,i=S.f.map(t,T),s=S.f.map(i,e?R:w);this._setChildren(null,s,{diffIdentityProvider:this.identityProvider,diffDepth:1/0})}_setChildren(e,t,i){const s=new Set;this.model.setChildren(e,t,{...i,onDidCreateNode:e=>{for(const t of e.element.elements)s.add(t),this.nodes.set(t,e.element)},onDidDeleteNode:e=>{for(const t of e.element.elements)s.has(t)||this.nodes.delete(t)}})}has(e){return this.nodes.has(e)}getListIndex(e){const t=this.getCompressedNode(e);return this.model.getListIndex(t)}getListRenderCount(e){const t=this.getCompressedNode(e);return this.model.getListRenderCount(t)}getNode(e){if("undefined"===typeof e)return this.model.getNode();const t=this.getCompressedNode(e);return this.model.getNode(t)}getNodeLocation(e){const t=this.model.getNodeLocation(e);return null===t?null:t.elements[t.elements.length-1]}getParentNodeLocation(e){const t=this.getCompressedNode(e),i=this.model.getParentNodeLocation(t);return null===i?null:i.elements[i.elements.length-1]}getFirstElementChild(e){const t=this.getCompressedNode(e);return this.model.getFirstElementChild(t)}isCollapsible(e){const t=this.getCompressedNode(e);return this.model.isCollapsible(t)}setCollapsible(e,t){const i=this.getCompressedNode(e);return this.model.setCollapsible(i,t)}isCollapsed(e){const t=this.getCompressedNode(e);return this.model.isCollapsed(t)}setCollapsed(e,t,i){const s=this.getCompressedNode(e);return this.model.setCollapsed(s,t,i)}expandTo(e){const t=this.getCompressedNode(e);this.model.expandTo(t)}rerender(e){const t=this.getCompressedNode(e);this.model.rerender(t)}refilter(){this.model.refilter()}getCompressedNode(e){if(null===e)return null;const t=this.nodes.get(e);if(!t)throw new b.jh(this.user,`Tree element not found: ${e}`);return t}}const A=e=>e[e.length-1];class N{get element(){return null===this.node.element?null:this.unwrapper(this.node.element)}get children(){return this.node.children.map((e=>new N(this.unwrapper,e)))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}constructor(e,t){this.unwrapper=e,this.node=t}}class I{get onDidSplice(){return o.Jh.map(this.model.onDidSplice,(({insertedNodes:e,deletedNodes:t})=>({insertedNodes:e.map((e=>this.nodeMapper.map(e))),deletedNodes:t.map((e=>this.nodeMapper.map(e)))})))}get onDidChangeCollapseState(){return o.Jh.map(this.model.onDidChangeCollapseState,(({node:e,deep:t})=>({node:this.nodeMapper.map(e),deep:t})))}get onDidChangeRenderNodeCount(){return o.Jh.map(this.model.onDidChangeRenderNodeCount,(e=>this.nodeMapper.map(e)))}constructor(e,t,i={}){this.rootRef=null,this.elementMapper=i.elementMapper||A;const s=e=>this.elementMapper(e.elements);this.nodeMapper=new b.y2((e=>new N(s,e))),this.model=new k(e,function(e,t){return{splice(i,s,n){t.splice(i,s,n.map((t=>e.map(t))))},updateElementHeight(e,i){t.updateElementHeight(e,i)}}}(this.nodeMapper,t),function(e,t){return{...t,identityProvider:t.identityProvider&&{getId:i=>t.identityProvider.getId(e(i))},sorter:t.sorter&&{compare:(e,i)=>t.sorter.compare(e.elements[0],i.elements[0])},filter:t.filter&&{filter:(i,s)=>t.filter.filter(e(i),s)}}}(s,i))}setChildren(e,t=S.f.empty(),i={}){this.model.setChildren(e,t,i)}isCompressionEnabled(){return this.model.isCompressionEnabled()}setCompressionEnabled(e){this.model.setCompressionEnabled(e)}has(e){return this.model.has(e)}getListIndex(e){return this.model.getListIndex(e)}getListRenderCount(e){return this.model.getListRenderCount(e)}getNode(e){return this.nodeMapper.map(this.model.getNode(e))}getNodeLocation(e){return e.element}getParentNodeLocation(e){return this.model.getParentNodeLocation(e)}getFirstElementChild(e){const t=this.model.getFirstElementChild(e);return null===t||"undefined"===typeof t?t:this.elementMapper(t.elements)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,t){return this.model.setCollapsible(e,t)}isCollapsed(e){return this.model.isCollapsed(e)}setCollapsed(e,t,i){return this.model.setCollapsed(e,t,i)}expandTo(e){return this.model.expandTo(e)}rerender(e){return this.model.rerender(e)}refilter(){return this.model.refilter()}getCompressedTreeNode(e=null){return this.model.getNode(e)}}var O=i(58694),D=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class M extends v.DO{get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}constructor(e,t,i,s,n={}){super(e,t,i,s,n),this.user=e}setChildren(e,t=S.f.empty(),i){this.model.setChildren(e,t,i)}rerender(e){void 0!==e?this.model.rerender(e):this.view.rerender()}hasElement(e){return this.model.has(e)}createModel(e,t,i){return new y(e,t,i)}}class P{get compressedTreeNodeProvider(){return this._compressedTreeNodeProvider()}constructor(e,t,i){this._compressedTreeNodeProvider=e,this.stickyScrollDelegate=t,this.renderer=i,this.templateId=i.templateId,i.onDidChangeTwistieState&&(this.onDidChangeTwistieState=i.onDidChangeTwistieState)}renderTemplate(e){return{compressedTreeNode:void 0,data:this.renderer.renderTemplate(e)}}renderElement(e,t,i,s){let n=this.stickyScrollDelegate.getCompressedNode(e);n||(n=this.compressedTreeNodeProvider.getCompressedTreeNode(e.element)),1===n.element.elements.length?(i.compressedTreeNode=void 0,this.renderer.renderElement(e,t,i.data,s)):(i.compressedTreeNode=n,this.renderer.renderCompressedElements(n,t,i.data,s))}disposeElement(e,t,i,s){i.compressedTreeNode?this.renderer.disposeCompressedElements?.(i.compressedTreeNode,t,i.data,s):this.renderer.disposeElement?.(e,t,i.data,s)}disposeTemplate(e){this.renderer.disposeTemplate(e.data)}renderTwistie(e,t){return!!this.renderer.renderTwistie&&this.renderer.renderTwistie(e,t)}}D([O.B],P.prototype,"compressedTreeNodeProvider",null);class F{constructor(e){this.modelProvider=e,this.compressedStickyNodes=new Map}getCompressedNode(e){return this.compressedStickyNodes.get(e)}constrainStickyScrollNodes(e,t,i){if(this.compressedStickyNodes.clear(),0===e.length)return[];for(let s=0;s<e.length;s++){const n=e[s],r=n.position+n.height;if(s+1<e.length&&r+e[s+1].height>i||s>=t-1&&t<e.length){const t=e.slice(0,s),i=e.slice(s);return[...t,this.compressStickyNodes(i)]}}return e}compressStickyNodes(e){if(0===e.length)throw new Error("Can't compress empty sticky nodes");const t=this.modelProvider();if(!t.isCompressionEnabled())return e[0];const i=[];for(let c=0;c<e.length;c++){const s=e[c],n=t.getCompressedTreeNode(s.node.element);if(n.element){if(0!==c&&n.element.incompressible)break;i.push(...n.element.elements)}}if(i.length<2)return e[0];const s=e[e.length-1],n={elements:i,incompressible:!1},r={...s.node,children:[],element:n},o=new Proxy(e[0].node,{}),a={node:o,startIndex:e[0].startIndex,endIndex:s.endIndex,position:e[0].position,height:e[0].height};return this.compressedStickyNodes.set(o,r),a}}function U(e,t){return t&&{...t,keyboardNavigationLabelProvider:t.keyboardNavigationLabelProvider&&{getKeyboardNavigationLabel(i){let s;try{s=e().getCompressedTreeNode(i)}catch{return t.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(i)}return 1===s.element.elements.length?t.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(i):t.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(s.element.elements)}}}}class H extends M{constructor(e,t,i,s,n={}){const r=()=>this,o=new F((()=>this.model));super(e,t,i,s.map((e=>new P(r,o,e))),{...U(r,n),stickyScrollDelegate:o})}setChildren(e,t=S.f.empty(),i){this.model.setChildren(e,t,i)}createModel(e,t,i){return new I(e,t,i)}updateOptions(e={}){super.updateOptions(e),"undefined"!==typeof e.compressionEnabled&&this.model.setCompressionEnabled(e.compressionEnabled)}getCompressedTreeNode(e=null){return this.model.getCompressedTreeNode(e)}}var B=i(90766),W=i(10350),V=i(25689),z=i(64383),G=i(631);function j(e){return{...e,children:[],refreshPromise:void 0,stale:!0,slow:!1,forceExpanded:!1}}function K(e,t){return!!t.parent&&(t.parent===e||K(e,t.parent))}class Y{get element(){return this.node.element.element}get children(){return this.node.children.map((e=>new Y(e)))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}constructor(e){this.node=e}}class q{constructor(e,t,i){this.renderer=e,this.nodeMapper=t,this.onDidChangeTwistieState=i,this.renderedNodes=new Map,this.templateId=e.templateId}renderTemplate(e){return{templateData:this.renderer.renderTemplate(e)}}renderElement(e,t,i,s){this.renderer.renderElement(this.nodeMapper.map(e),t,i.templateData,s)}renderTwistie(e,t){return e.slow?(t.classList.add(...V.L.asClassNameArray(W.W.treeItemLoading)),!0):(t.classList.remove(...V.L.asClassNameArray(W.W.treeItemLoading)),!1)}disposeElement(e,t,i,s){this.renderer.disposeElement?.(this.nodeMapper.map(e),t,i.templateData,s)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear()}}function $(e){return{browserEvent:e.browserEvent,elements:e.elements.map((e=>e.element))}}function Q(e){return{browserEvent:e.browserEvent,element:e.element&&e.element.element,target:e.target}}class X extends C.ur{constructor(e){super(e.elements.map((e=>e.element))),this.data=e}}function Z(e){return e instanceof C.ur?new X(e):e}class J{constructor(e){this.dnd=e}getDragURI(e){return this.dnd.getDragURI(e.element)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map((e=>e.element)),t)}onDragStart(e,t){this.dnd.onDragStart?.(Z(e),t)}onDragOver(e,t,i,s,n,r=!0){return this.dnd.onDragOver(Z(e),t&&t.element,i,s,n)}drop(e,t,i,s,n){this.dnd.drop(Z(e),t&&t.element,i,s,n)}onDragEnd(e){this.dnd.onDragEnd?.(e)}dispose(){this.dnd.dispose()}}function ee(e){return e&&{...e,collapseByDefault:!0,identityProvider:e.identityProvider&&{getId:t=>e.identityProvider.getId(t.element)},dnd:e.dnd&&new J(e.dnd),multipleSelectionController:e.multipleSelectionController&&{isSelectionSingleChangeEvent:t=>e.multipleSelectionController.isSelectionSingleChangeEvent({...t,element:t.element}),isSelectionRangeChangeEvent:t=>e.multipleSelectionController.isSelectionRangeChangeEvent({...t,element:t.element})},accessibilityProvider:e.accessibilityProvider&&{...e.accessibilityProvider,getPosInSet:void 0,getSetSize:void 0,getRole:e.accessibilityProvider.getRole?t=>e.accessibilityProvider.getRole(t.element):()=>"treeitem",isChecked:e.accessibilityProvider.isChecked?t=>!!e.accessibilityProvider?.isChecked(t.element):void 0,getAriaLabel:t=>e.accessibilityProvider.getAriaLabel(t.element),getWidgetAriaLabel:()=>e.accessibilityProvider.getWidgetAriaLabel(),getWidgetRole:e.accessibilityProvider.getWidgetRole?()=>e.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:e.accessibilityProvider.getAriaLevel&&(t=>e.accessibilityProvider.getAriaLevel(t.element)),getActiveDescendantId:e.accessibilityProvider.getActiveDescendantId&&(t=>e.accessibilityProvider.getActiveDescendantId(t.element))},filter:e.filter&&{filter:(t,i)=>e.filter.filter(t.element,i)},keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&{...e.keyboardNavigationLabelProvider,getKeyboardNavigationLabel:t=>e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t.element)},sorter:void 0,expandOnlyOnTwistieClick:"undefined"===typeof e.expandOnlyOnTwistieClick?void 0:"function"!==typeof e.expandOnlyOnTwistieClick?e.expandOnlyOnTwistieClick:t=>e.expandOnlyOnTwistieClick(t.element),defaultFindVisibility:t=>t.hasChildren&&t.stale?1:"number"===typeof e.defaultFindVisibility?e.defaultFindVisibility:"undefined"===typeof e.defaultFindVisibility?2:e.defaultFindVisibility(t.element)}}function te(e,t){t(e),e.children.forEach((e=>te(e,t)))}class ie{get onDidScroll(){return this.tree.onDidScroll}get onDidChangeFocus(){return o.Jh.map(this.tree.onDidChangeFocus,$)}get onDidChangeSelection(){return o.Jh.map(this.tree.onDidChangeSelection,$)}get onMouseDblClick(){return o.Jh.map(this.tree.onMouseDblClick,Q)}get onPointer(){return o.Jh.map(this.tree.onPointer,Q)}get onDidFocus(){return this.tree.onDidFocus}get onDidChangeModel(){return this.tree.onDidChangeModel}get onDidChangeCollapseState(){return this.tree.onDidChangeCollapseState}get onDidChangeFindOpenState(){return this.tree.onDidChangeFindOpenState}get onDidChangeStickyScrollFocused(){return this.tree.onDidChangeStickyScrollFocused}get onDidDispose(){return this.tree.onDidDispose}constructor(e,t,i,s,n,r={}){this.user=e,this.dataSource=n,this.nodes=new Map,this.subTreeRefreshPromises=new Map,this.refreshPromises=new Map,this._onDidRender=new o.vl,this._onDidChangeNodeSlowState=new o.vl,this.nodeMapper=new b.y2((e=>new Y(e))),this.disposables=new a.Cm,this.identityProvider=r.identityProvider,this.autoExpandSingleChildren="undefined"!==typeof r.autoExpandSingleChildren&&r.autoExpandSingleChildren,this.sorter=r.sorter,this.getDefaultCollapseState=e=>r.collapseByDefault?r.collapseByDefault(e)?b.Yo.PreserveOrCollapsed:b.Yo.PreserveOrExpanded:void 0,this.tree=this.createTree(e,t,i,s,r),this.onDidChangeFindMode=this.tree.onDidChangeFindMode,this.onDidChangeFindMatchType=this.tree.onDidChangeFindMatchType,this.root=j({element:void 0,parent:null,hasChildren:!0,defaultCollapseState:void 0}),this.identityProvider&&(this.root={...this.root,id:null}),this.nodes.set(null,this.root),this.tree.onDidChangeCollapseState(this._onDidChangeCollapseState,this,this.disposables)}createTree(e,t,i,s,n){const r=new v.w0(i),o=s.map((e=>new q(e,this.nodeMapper,this._onDidChangeNodeSlowState.event))),a=ee(n)||{};return new M(e,t,r,o,a)}updateOptions(e={}){this.tree.updateOptions(e)}getHTMLElement(){return this.tree.getHTMLElement()}get scrollTop(){return this.tree.scrollTop}set scrollTop(e){this.tree.scrollTop=e}get scrollHeight(){return this.tree.scrollHeight}get renderHeight(){return this.tree.renderHeight}domFocus(){this.tree.domFocus()}layout(e,t){this.tree.layout(e,t)}style(e){this.tree.style(e)}getInput(){return this.root.element}async setInput(e,t){this.refreshPromises.forEach((e=>e.cancel())),this.refreshPromises.clear(),this.root.element=e;const i=t&&{viewState:t,focus:[],selection:[]};await this._updateChildren(e,!0,!1,i),i&&(this.tree.setFocus(i.focus),this.tree.setSelection(i.selection)),t&&"number"===typeof t.scrollTop&&(this.scrollTop=t.scrollTop)}async _updateChildren(e=this.root.element,t=!0,i=!1,s,n){if("undefined"===typeof this.root.element)throw new b.jh(this.user,"Tree input not set");this.root.refreshPromise&&(await this.root.refreshPromise,await o.Jh.toPromise(this._onDidRender.event));const r=this.getDataNode(e);if(await this.refreshAndRenderNode(r,t,s,n),i)try{this.tree.rerender(r)}catch{}}rerender(e){if(void 0===e||e===this.root.element)return void this.tree.rerender();const t=this.getDataNode(e);this.tree.rerender(t)}getNode(e=this.root.element){const t=this.getDataNode(e),i=this.tree.getNode(t===this.root?null:t);return this.nodeMapper.map(i)}collapse(e,t=!1){const i=this.getDataNode(e);return this.tree.collapse(i===this.root?null:i,t)}async expand(e,t=!1){if("undefined"===typeof this.root.element)throw new b.jh(this.user,"Tree input not set");this.root.refreshPromise&&(await this.root.refreshPromise,await o.Jh.toPromise(this._onDidRender.event));const i=this.getDataNode(e);if(this.tree.hasElement(i)&&!this.tree.isCollapsible(i))return!1;if(i.refreshPromise&&(await this.root.refreshPromise,await o.Jh.toPromise(this._onDidRender.event)),i!==this.root&&!i.refreshPromise&&!this.tree.isCollapsed(i))return!1;const s=this.tree.expand(i===this.root?null:i,t);return i.refreshPromise&&(await this.root.refreshPromise,await o.Jh.toPromise(this._onDidRender.event)),s}setSelection(e,t){const i=e.map((e=>this.getDataNode(e)));this.tree.setSelection(i,t)}getSelection(){return this.tree.getSelection().map((e=>e.element))}setFocus(e,t){const i=e.map((e=>this.getDataNode(e)));this.tree.setFocus(i,t)}getFocus(){return this.tree.getFocus().map((e=>e.element))}reveal(e,t){this.tree.reveal(this.getDataNode(e),t)}getParentElement(e){const t=this.tree.getParentElement(this.getDataNode(e));return t&&t.element}getFirstElementChild(e=this.root.element){const t=this.getDataNode(e),i=this.tree.getFirstElementChild(t===this.root?null:t);return i&&i.element}getDataNode(e){const t=this.nodes.get(e===this.root.element?null:e);if(!t)throw new b.jh(this.user,`Data tree node not found: ${e}`);return t}async refreshAndRenderNode(e,t,i,s){await this.refreshNode(e,t,i),this.disposables.isDisposed||this.render(e,i,s)}async refreshNode(e,t,i){let s;if(this.subTreeRefreshPromises.forEach(((n,r)=>{!s&&function(e,t){return e===t||K(e,t)||K(t,e)}(r,e)&&(s=n.then((()=>this.refreshNode(e,t,i))))})),s)return s;if(e!==this.root){if(this.tree.getNode(e).collapsed)return e.hasChildren=!!this.dataSource.hasChildren(e.element),e.stale=!0,void this.setChildren(e,[],t,i)}return this.doRefreshSubTree(e,t,i)}async doRefreshSubTree(e,t,i){let s;e.refreshPromise=new Promise((e=>s=e)),this.subTreeRefreshPromises.set(e,e.refreshPromise),e.refreshPromise.finally((()=>{e.refreshPromise=void 0,this.subTreeRefreshPromises.delete(e)}));try{const s=await this.doRefreshNode(e,t,i);e.stale=!1,await B.HC.settled(s.map((e=>this.doRefreshSubTree(e,t,i))))}finally{s()}}async doRefreshNode(e,t,i){let s;if(e.hasChildren=!!this.dataSource.hasChildren(e.element),e.hasChildren){const t=this.doGetChildren(e);if((0,G.xZ)(t))s=Promise.resolve(t);else{const i=(0,B.wR)(800);i.then((()=>{e.slow=!0,this._onDidChangeNodeSlowState.fire(e)}),(e=>null)),s=t.finally((()=>i.cancel()))}}else s=Promise.resolve(S.f.empty());try{const n=await s;return this.setChildren(e,n,t,i)}catch(n){if(e!==this.root&&this.tree.hasElement(e)&&this.tree.collapse(e),(0,z.MB)(n))return[];throw n}finally{e.slow&&(e.slow=!1,this._onDidChangeNodeSlowState.fire(e))}}doGetChildren(e){let t=this.refreshPromises.get(e);if(t)return t;const i=this.dataSource.getChildren(e.element);return(0,G.xZ)(i)?this.processChildren(i):(t=(0,B.SS)((async()=>this.processChildren(await i))),this.refreshPromises.set(e,t),t.finally((()=>{this.refreshPromises.delete(e)})))}_onDidChangeCollapseState({node:e,deep:t}){null!==e.element&&!e.collapsed&&e.element.stale&&(t?this.collapse(e.element.element):this.refreshAndRenderNode(e.element,!1).catch(z.dz))}setChildren(e,t,i,s){const n=[...t];if(0===e.children.length&&0===n.length)return[];const r=new Map,o=new Map;for(const l of e.children)r.set(l.element,l),this.identityProvider&&o.set(l.id,{node:l,collapsed:this.tree.hasElement(l)&&this.tree.isCollapsed(l)});const a=[],c=n.map((t=>{const n=!!this.dataSource.hasChildren(t);if(!this.identityProvider){const i=j({element:t,parent:e,hasChildren:n,defaultCollapseState:this.getDefaultCollapseState(t)});return n&&i.defaultCollapseState===b.Yo.PreserveOrExpanded&&a.push(i),i}const c=this.identityProvider.getId(t).toString(),l=o.get(c);if(l){const e=l.node;return r.delete(e.element),this.nodes.delete(e.element),this.nodes.set(t,e),e.element=t,e.hasChildren=n,i?l.collapsed?(e.children.forEach((e=>te(e,(e=>this.nodes.delete(e.element))))),e.children.splice(0,e.children.length),e.stale=!0):a.push(e):n&&!l.collapsed&&a.push(e),e}const h=j({element:t,parent:e,id:c,hasChildren:n,defaultCollapseState:this.getDefaultCollapseState(t)});return s&&s.viewState.focus&&s.viewState.focus.indexOf(c)>-1&&s.focus.push(h),s&&s.viewState.selection&&s.viewState.selection.indexOf(c)>-1&&s.selection.push(h),(s&&s.viewState.expanded&&s.viewState.expanded.indexOf(c)>-1||n&&h.defaultCollapseState===b.Yo.PreserveOrExpanded)&&a.push(h),h}));for(const l of r.values())te(l,(e=>this.nodes.delete(e.element)));for(const l of c)this.nodes.set(l.element,l);return e.children.splice(0,e.children.length,...c),e!==this.root&&this.autoExpandSingleChildren&&1===c.length&&0===a.length&&(c[0].forceExpanded=!0,a.push(c[0])),a}render(e,t,i){const s=e.children.map((e=>this.asTreeElement(e,t))),n=i&&{...i,diffIdentityProvider:i.diffIdentityProvider&&{getId:e=>i.diffIdentityProvider.getId(e.element)}};this.tree.setChildren(e===this.root?null:e,s,n),e!==this.root&&this.tree.setCollapsible(e,e.hasChildren),this._onDidRender.fire()}asTreeElement(e,t){if(e.stale)return{element:e,collapsible:e.hasChildren,collapsed:!0};let i;return t&&t.viewState.expanded&&e.id&&t.viewState.expanded.indexOf(e.id)>-1?i=!1:e.forceExpanded?(i=!1,e.forceExpanded=!1):i=e.defaultCollapseState,{element:e,children:e.hasChildren?S.f.map(e.children,(e=>this.asTreeElement(e,t))):[],collapsible:e.hasChildren,collapsed:i}}processChildren(e){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),e}dispose(){this.disposables.dispose(),this.tree.dispose()}}class se{get element(){return{elements:this.node.element.elements.map((e=>e.element)),incompressible:this.node.element.incompressible}}get children(){return this.node.children.map((e=>new se(e)))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}constructor(e){this.node=e}}class ne{constructor(e,t,i,s){this.renderer=e,this.nodeMapper=t,this.compressibleNodeMapperProvider=i,this.onDidChangeTwistieState=s,this.renderedNodes=new Map,this.disposables=[],this.templateId=e.templateId}renderTemplate(e){return{templateData:this.renderer.renderTemplate(e)}}renderElement(e,t,i,s){this.renderer.renderElement(this.nodeMapper.map(e),t,i.templateData,s)}renderCompressedElements(e,t,i,s){this.renderer.renderCompressedElements(this.compressibleNodeMapperProvider().map(e),t,i.templateData,s)}renderTwistie(e,t){return e.slow?(t.classList.add(...V.L.asClassNameArray(W.W.treeItemLoading)),!0):(t.classList.remove(...V.L.asClassNameArray(W.W.treeItemLoading)),!1)}disposeElement(e,t,i,s){this.renderer.disposeElement?.(this.nodeMapper.map(e),t,i.templateData,s)}disposeCompressedElements(e,t,i,s){this.renderer.disposeCompressedElements?.(this.compressibleNodeMapperProvider().map(e),t,i.templateData,s)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear(),this.disposables=(0,a.AS)(this.disposables)}}class re extends ie{constructor(e,t,i,s,n,r,o={}){super(e,t,i,n,r,o),this.compressionDelegate=s,this.compressibleNodeMapper=new b.y2((e=>new se(e))),this.filter=o.filter}createTree(e,t,i,s,n){const r=new v.w0(i),o=s.map((e=>new ne(e,this.nodeMapper,(()=>this.compressibleNodeMapper),this._onDidChangeNodeSlowState.event))),a=function(e){const t=e&&ee(e);return t&&{...t,keyboardNavigationLabelProvider:t.keyboardNavigationLabelProvider&&{...t.keyboardNavigationLabelProvider,getCompressedNodeKeyboardNavigationLabel:t=>e.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(t.map((e=>e.element)))}}}(n)||{};return new H(e,t,r,o,a)}asTreeElement(e,t){return{incompressible:this.compressionDelegate.isIncompressible(e.element),...super.asTreeElement(e,t)}}updateOptions(e={}){this.tree.updateOptions(e)}render(e,t,i){if(!this.identityProvider)return super.render(e,t);const s=e=>this.identityProvider.getId(e).toString(),n=e=>{const t=new Set;for(const i of e){const e=this.tree.getCompressedTreeNode(i===this.root?null:i);if(e.element)for(const i of e.element.elements)t.add(s(i.element))}return t},r=n(this.tree.getSelection()),o=n(this.tree.getFocus());super.render(e,t,i);const a=this.getSelection();let c=!1;const l=this.getFocus();let h=!1;const d=e=>{const t=e.element;if(t)for(let i=0;i<t.elements.length;i++){const e=s(t.elements[i].element),n=t.elements[t.elements.length-1].element;r.has(e)&&-1===a.indexOf(n)&&(a.push(n),c=!0),o.has(e)&&-1===l.indexOf(n)&&(l.push(n),h=!0)}e.children.forEach(d)};d(this.tree.getCompressedTreeNode(e===this.root?null:e)),c&&this.setSelection(a),h&&this.setFocus(l)}processChildren(e){return this.filter&&(e=S.f.filter(e,(e=>{const t=this.filter.filter(e,1),i="boolean"===typeof(s=t)?s?1:0:(0,E.iZ)(s)?(0,E.Mn)(s.visibility):(0,E.Mn)(s);var s;if(2===i)throw new Error("Recursive tree visibility not supported in async data compressed trees");return 1===i}))),super.processChildren(e)}}class oe extends v.DO{constructor(e,t,i,s,n,r={}){super(e,t,i,s,r),this.user=e,this.dataSource=n,this.identityProvider=r.identityProvider}createModel(e,t,i){return new y(e,t,i)}}var ae=i(78209),ce=i(84001),le=i(1646),he=i(32848),de=i(28290),ue=i(47508),ge=i(63591),pe=i(98031),me=i(46359),fe=i(19070),_e=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},ve=function(e,t){return function(i,s){t(i,s,e)}};const Ce=(0,ge.u1)("listService");class Ee{get lastFocusedList(){return this._lastFocusedWidget}constructor(){this.disposables=new a.Cm,this.lists=[],this._lastFocusedWidget=void 0,this._hasCreatedStyleController=!1}setLastFocusedList(e){e!==this._lastFocusedWidget&&(this._lastFocusedWidget?.getHTMLElement().classList.remove("last-focused"),this._lastFocusedWidget=e,this._lastFocusedWidget?.getHTMLElement().classList.add("last-focused"))}register(e,t){if(!this._hasCreatedStyleController){this._hasCreatedStyleController=!0;new c.hb((0,s.li)(),"").style(fe.IN)}if(this.lists.some((t=>t.widget===e)))throw new Error("Cannot register the same widget multiple times");const i={widget:e,extraContextKeys:t};return this.lists.push(i),(0,s.X7)(e.getHTMLElement())&&this.setLastFocusedList(e),(0,a.qE)(e.onDidFocus((()=>this.setLastFocusedList(e))),(0,a.s)((()=>this.lists.splice(this.lists.indexOf(i),1))),e.onDidDispose((()=>{this.lists=this.lists.filter((e=>e!==i)),this._lastFocusedWidget===e&&this.setLastFocusedList(void 0)})))}dispose(){this.disposables.dispose()}}const be=new he.N1("listScrollAtBoundary","none"),Se=(he.M$.or(be.isEqualTo("top"),be.isEqualTo("both")),he.M$.or(be.isEqualTo("bottom"),be.isEqualTo("both")),new he.N1("listFocus",!0)),ye=new he.N1("treestickyScrollFocused",!1),we=new he.N1("listSupportsMultiselect",!0),Re=he.M$.and(Se,he.M$.not(de.aV),ye.negate()),Le=new he.N1("listHasSelectionOrFocus",!1),Te=new he.N1("listDoubleSelection",!1),xe=new he.N1("listMultiSelection",!1),ke=new he.N1("listSelectionNavigation",!1),Ae=new he.N1("listSupportsFind",!0),Ne=new he.N1("treeElementCanCollapse",!1),Ie=new he.N1("treeElementHasParent",!1),Oe=new he.N1("treeElementCanExpand",!1),De=new he.N1("treeElementHasChild",!1),Me=new he.N1("treeFindOpen",!1),Pe="listTypeNavigationMode",Fe="listAutomaticKeyboardNavigation";function Ue(e,t){const i=e.createScoped(t.getHTMLElement());return Se.bindTo(i),i}function He(e,t){const i=be.bindTo(e),s=()=>{const e=0===t.scrollTop,s=t.scrollHeight-t.renderHeight-t.scrollTop<1;e&&s?i.set("both"):e?i.set("top"):s?i.set("bottom"):i.set("none")};return s(),t.onDidScroll(s)}const Be="workbench.list.multiSelectModifier",We="workbench.list.openMode",Ve="workbench.list.horizontalScrolling",ze="workbench.list.defaultFindMode",Ge="workbench.list.typeNavigationMode",je="workbench.list.keyboardNavigation",Ke="workbench.list.scrollByPage",Ye="workbench.list.defaultFindMatchType",qe="workbench.tree.indent",$e="workbench.tree.renderIndentGuides",Qe="workbench.list.smoothScrolling",Xe="workbench.list.mouseWheelScrollSensitivity",Ze="workbench.list.fastScrollSensitivity",Je="workbench.tree.expandMode",et="workbench.tree.enableStickyScroll",tt="workbench.tree.stickyScrollMaxItemCount";function it(e){return"alt"===e.getValue(Be)}class st extends a.jG{constructor(e){super(),this.configurationService=e,this.useAltAsMultipleSelectionModifier=it(e),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration(Be)&&(this.useAltAsMultipleSelectionModifier=it(this.configurationService))})))}isSelectionSingleChangeEvent(e){return this.useAltAsMultipleSelectionModifier?e.browserEvent.altKey:(0,c.tX)(e)}isSelectionRangeChangeEvent(e){return(0,c.mh)(e)}}function nt(e,t){const i=e.get(ce.pG),s=e.get(pe.b),n=new a.Cm;return[{...t,keyboardNavigationDelegate:{mightProducePrintableCharacter:e=>s.mightProducePrintableCharacter(e)},smoothScrolling:Boolean(i.getValue(Qe)),mouseWheelScrollSensitivity:i.getValue(Xe),fastScrollSensitivity:i.getValue(Ze),multipleSelectionController:t.multipleSelectionController??n.add(new st(i)),keyboardNavigationEventFilter:ut(s),scrollByPage:Boolean(i.getValue(Ke))},n]}let rt=class extends c.B8{constructor(e,t,i,s,n,r,o,a,c){const l="undefined"!==typeof n.horizontalScrolling?n.horizontalScrolling:Boolean(a.getValue(Ve)),[h,d]=c.invokeFunction(nt,n);super(e,t,i,s,{keyboardSupport:!1,...h,horizontalScrolling:l}),this.disposables.add(d),this.contextKeyService=Ue(r,this),this.disposables.add(He(this.contextKeyService,this)),this.listSupportsMultiSelect=we.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==n.multipleSelectionSupport);ke.bindTo(this.contextKeyService).set(Boolean(n.selectionNavigation)),this.listHasSelectionOrFocus=Le.bindTo(this.contextKeyService),this.listDoubleSelection=Te.bindTo(this.contextKeyService),this.listMultiSelection=xe.bindTo(this.contextKeyService),this.horizontalScrolling=n.horizontalScrolling,this._useAltAsMultipleSelectionModifier=it(a),this.disposables.add(this.contextKeyService),this.disposables.add(o.register(this)),this.updateStyles(n.overrideStyles),this.disposables.add(this.onDidChangeSelection((()=>{const e=this.getSelection(),t=this.getFocus();this.contextKeyService.bufferChangeEvents((()=>{this.listHasSelectionOrFocus.set(e.length>0||t.length>0),this.listMultiSelection.set(e.length>1),this.listDoubleSelection.set(2===e.length)}))}))),this.disposables.add(this.onDidChangeFocus((()=>{const e=this.getSelection(),t=this.getFocus();this.listHasSelectionOrFocus.set(e.length>0||t.length>0)}))),this.disposables.add(a.onDidChangeConfiguration((e=>{e.affectsConfiguration(Be)&&(this._useAltAsMultipleSelectionModifier=it(a));let t={};if(e.affectsConfiguration(Ve)&&void 0===this.horizontalScrolling){const e=Boolean(a.getValue(Ve));t={...t,horizontalScrolling:e}}if(e.affectsConfiguration(Ke)){const e=Boolean(a.getValue(Ke));t={...t,scrollByPage:e}}if(e.affectsConfiguration(Qe)){const e=Boolean(a.getValue(Qe));t={...t,smoothScrolling:e}}if(e.affectsConfiguration(Xe)){const e=a.getValue(Xe);t={...t,mouseWheelScrollSensitivity:e}}if(e.affectsConfiguration(Ze)){const e=a.getValue(Ze);t={...t,fastScrollSensitivity:e}}Object.keys(t).length>0&&this.updateOptions(t)}))),this.navigator=new lt(this,{configurationService:a,...n}),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),void 0!==e.overrideStyles&&this.updateStyles(e.overrideStyles),void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){this.style(e?(0,fe.t8)(e):fe.IN)}};rt=_e([ve(5,he.fN),ve(6,Ce),ve(7,ce.pG),ve(8,ge._Y)],rt);let ot=class extends d{constructor(e,t,i,s,n,r,o,c,l){const h="undefined"!==typeof n.horizontalScrolling?n.horizontalScrolling:Boolean(c.getValue(Ve)),[d,u]=l.invokeFunction(nt,n);super(e,t,i,s,{keyboardSupport:!1,...d,horizontalScrolling:h}),this.disposables=new a.Cm,this.disposables.add(u),this.contextKeyService=Ue(r,this),this.disposables.add(He(this.contextKeyService,this.widget)),this.horizontalScrolling=n.horizontalScrolling,this.listSupportsMultiSelect=we.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==n.multipleSelectionSupport);ke.bindTo(this.contextKeyService).set(Boolean(n.selectionNavigation)),this._useAltAsMultipleSelectionModifier=it(c),this.disposables.add(this.contextKeyService),this.disposables.add(o.register(this)),this.updateStyles(n.overrideStyles),this.disposables.add(c.onDidChangeConfiguration((e=>{e.affectsConfiguration(Be)&&(this._useAltAsMultipleSelectionModifier=it(c));let t={};if(e.affectsConfiguration(Ve)&&void 0===this.horizontalScrolling){const e=Boolean(c.getValue(Ve));t={...t,horizontalScrolling:e}}if(e.affectsConfiguration(Ke)){const e=Boolean(c.getValue(Ke));t={...t,scrollByPage:e}}if(e.affectsConfiguration(Qe)){const e=Boolean(c.getValue(Qe));t={...t,smoothScrolling:e}}if(e.affectsConfiguration(Xe)){const e=c.getValue(Xe);t={...t,mouseWheelScrollSensitivity:e}}if(e.affectsConfiguration(Ze)){const e=c.getValue(Ze);t={...t,fastScrollSensitivity:e}}Object.keys(t).length>0&&this.updateOptions(t)}))),this.navigator=new lt(this,{configurationService:c,...n}),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),void 0!==e.overrideStyles&&this.updateStyles(e.overrideStyles),void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){this.style(e?(0,fe.t8)(e):fe.IN)}dispose(){this.disposables.dispose(),super.dispose()}};ot=_e([ve(5,he.fN),ve(6,Ce),ve(7,ce.pG),ve(8,ge._Y)],ot);let at=class extends _{constructor(e,t,i,s,n,r,o,a,c,l){const h="undefined"!==typeof r.horizontalScrolling?r.horizontalScrolling:Boolean(c.getValue(Ve)),[d,u]=l.invokeFunction(nt,r);super(e,t,i,s,n,{keyboardSupport:!1,...d,horizontalScrolling:h}),this.disposables.add(u),this.contextKeyService=Ue(o,this),this.disposables.add(He(this.contextKeyService,this)),this.listSupportsMultiSelect=we.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==r.multipleSelectionSupport);ke.bindTo(this.contextKeyService).set(Boolean(r.selectionNavigation)),this.listHasSelectionOrFocus=Le.bindTo(this.contextKeyService),this.listDoubleSelection=Te.bindTo(this.contextKeyService),this.listMultiSelection=xe.bindTo(this.contextKeyService),this.horizontalScrolling=r.horizontalScrolling,this._useAltAsMultipleSelectionModifier=it(c),this.disposables.add(this.contextKeyService),this.disposables.add(a.register(this)),this.updateStyles(r.overrideStyles),this.disposables.add(this.onDidChangeSelection((()=>{const e=this.getSelection(),t=this.getFocus();this.contextKeyService.bufferChangeEvents((()=>{this.listHasSelectionOrFocus.set(e.length>0||t.length>0),this.listMultiSelection.set(e.length>1),this.listDoubleSelection.set(2===e.length)}))}))),this.disposables.add(this.onDidChangeFocus((()=>{const e=this.getSelection(),t=this.getFocus();this.listHasSelectionOrFocus.set(e.length>0||t.length>0)}))),this.disposables.add(c.onDidChangeConfiguration((e=>{e.affectsConfiguration(Be)&&(this._useAltAsMultipleSelectionModifier=it(c));let t={};if(e.affectsConfiguration(Ve)&&void 0===this.horizontalScrolling){const e=Boolean(c.getValue(Ve));t={...t,horizontalScrolling:e}}if(e.affectsConfiguration(Ke)){const e=Boolean(c.getValue(Ke));t={...t,scrollByPage:e}}if(e.affectsConfiguration(Qe)){const e=Boolean(c.getValue(Qe));t={...t,smoothScrolling:e}}if(e.affectsConfiguration(Xe)){const e=c.getValue(Xe);t={...t,mouseWheelScrollSensitivity:e}}if(e.affectsConfiguration(Ze)){const e=c.getValue(Ze);t={...t,fastScrollSensitivity:e}}Object.keys(t).length>0&&this.updateOptions(t)}))),this.navigator=new ht(this,{configurationService:c,...r}),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),void 0!==e.overrideStyles&&this.updateStyles(e.overrideStyles),void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){this.style(e?(0,fe.t8)(e):fe.IN)}dispose(){this.disposables.dispose(),super.dispose()}};at=_e([ve(6,he.fN),ve(7,Ce),ve(8,ce.pG),ve(9,ge._Y)],at);class ct extends a.jG{constructor(e,t){super(),this.widget=e,this._onDidOpen=this._register(new o.vl),this.onDidOpen=this._onDidOpen.event,this._register(o.Jh.filter(this.widget.onDidChangeSelection,(e=>(0,s.kx)(e.browserEvent)))((e=>this.onSelectionFromKeyboard(e)))),this._register(this.widget.onPointer((e=>this.onPointer(e.element,e.browserEvent)))),this._register(this.widget.onMouseDblClick((e=>this.onMouseDblClick(e.element,e.browserEvent)))),"boolean"!==typeof t?.openOnSingleClick&&t?.configurationService?(this.openOnSingleClick="doubleClick"!==t?.configurationService.getValue(We),this._register(t?.configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration(We)&&(this.openOnSingleClick="doubleClick"!==t?.configurationService.getValue(We))})))):this.openOnSingleClick=t?.openOnSingleClick??!0}onSelectionFromKeyboard(e){if(1!==e.elements.length)return;const t=e.browserEvent,i="boolean"!==typeof t.preserveFocus||t.preserveFocus,s="boolean"===typeof t.pinned?t.pinned:!i;this._open(this.getSelectedElement(),i,s,!1,e.browserEvent)}onPointer(e,t){if(!this.openOnSingleClick)return;if(2===t.detail)return;const i=1===t.button,s=t.ctrlKey||t.metaKey||t.altKey;this._open(e,!0,i,s,t)}onMouseDblClick(e,t){if(!t)return;const i=t.target;if(i.classList.contains("monaco-tl-twistie")||i.classList.contains("monaco-icon-label")&&i.classList.contains("folder-icon")&&t.offsetX<16)return;const s=t.ctrlKey||t.metaKey||t.altKey;this._open(e,!1,!0,s,t)}_open(e,t,i,s,n){e&&this._onDidOpen.fire({editorOptions:{preserveFocus:t,pinned:i,revealIfVisible:!0},sideBySide:s,element:e,browserEvent:n})}}class lt extends ct{constructor(e,t){super(e,t),this.widget=e}getSelectedElement(){return this.widget.getSelectedElements()[0]}}class ht extends ct{constructor(e,t){super(e,t)}getSelectedElement(){return this.widget.getSelectedElements()[0]}}class dt extends ct{constructor(e,t){super(e,t)}getSelectedElement(){return this.widget.getSelection()[0]??void 0}}function ut(e){let t=!1;return i=>{if(i.toKeyCodeChord().isModifierKey())return!1;if(t)return t=!1,!1;const s=e.softDispatch(i,i.target);return 1===s.kind?(t=!0,!1):(t=!1,0===s.kind)}}let gt=class extends M{constructor(e,t,i,s,n,r,o,a,c){const{options:l,getTypeNavigationMode:h,disposable:d}=r.invokeFunction(Et,n);super(e,t,i,s,l),this.disposables.add(d),this.internals=new bt(this,n,h,n.overrideStyles,o,a,c),this.disposables.add(this.internals)}updateOptions(e){super.updateOptions(e),this.internals.updateOptions(e)}};gt=_e([ve(5,ge._Y),ve(6,he.fN),ve(7,Ce),ve(8,ce.pG)],gt);let pt=class extends H{constructor(e,t,i,s,n,r,o,a,c){const{options:l,getTypeNavigationMode:h,disposable:d}=r.invokeFunction(Et,n);super(e,t,i,s,l),this.disposables.add(d),this.internals=new bt(this,n,h,n.overrideStyles,o,a,c),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};pt=_e([ve(5,ge._Y),ve(6,he.fN),ve(7,Ce),ve(8,ce.pG)],pt);let mt=class extends oe{constructor(e,t,i,s,n,r,o,a,c,l){const{options:h,getTypeNavigationMode:d,disposable:u}=o.invokeFunction(Et,r);super(e,t,i,s,n,h),this.disposables.add(u),this.internals=new bt(this,r,d,r.overrideStyles,a,c,l),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),void 0!==e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};mt=_e([ve(6,ge._Y),ve(7,he.fN),ve(8,Ce),ve(9,ce.pG)],mt);let ft=class extends ie{get onDidOpen(){return this.internals.onDidOpen}constructor(e,t,i,s,n,r,o,a,c,l){const{options:h,getTypeNavigationMode:d,disposable:u}=o.invokeFunction(Et,r);super(e,t,i,s,n,h),this.disposables.add(u),this.internals=new bt(this,r,d,r.overrideStyles,a,c,l),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};ft=_e([ve(6,ge._Y),ve(7,he.fN),ve(8,Ce),ve(9,ce.pG)],ft);let _t=class extends re{constructor(e,t,i,s,n,r,o,a,c,l,h){const{options:d,getTypeNavigationMode:u,disposable:g}=a.invokeFunction(Et,o);super(e,t,i,s,n,r,d),this.disposables.add(g),this.internals=new bt(this,o,u,o.overrideStyles,c,l,h),this.disposables.add(this.internals)}updateOptions(e){super.updateOptions(e),this.internals.updateOptions(e)}};function vt(e){const t=e.getValue(ze);if("highlight"===t)return v.vD.Highlight;if("filter"===t)return v.vD.Filter;const i=e.getValue(je);return"simple"===i||"highlight"===i?v.vD.Highlight:"filter"===i?v.vD.Filter:void 0}function Ct(e){const t=e.getValue(Ye);return"fuzzy"===t?v.RD.Fuzzy:"contiguous"===t?v.RD.Contiguous:void 0}function Et(e,t){const i=e.get(ce.pG),s=e.get(ue.l),n=e.get(he.fN),r=e.get(ge._Y),o=void 0!==t.horizontalScrolling?t.horizontalScrolling:Boolean(i.getValue(Ve)),[a,l]=r.invokeFunction(nt,t),h=t.paddingBottom,d=void 0!==t.renderIndentGuides?t.renderIndentGuides:i.getValue($e);return{getTypeNavigationMode:()=>{const e=n.getContextKeyValue(Pe);if("automatic"===e)return c._C.Automatic;if("trigger"===e)return c._C.Trigger;if(!1===n.getContextKeyValue(Fe))return c._C.Trigger;const t=i.getValue(Ge);return"automatic"===t?c._C.Automatic:"trigger"===t?c._C.Trigger:void 0},disposable:l,options:{keyboardSupport:!1,...a,indent:"number"===typeof i.getValue(qe)?i.getValue(qe):void 0,renderIndentGuides:d,smoothScrolling:Boolean(i.getValue(Qe)),defaultFindMode:vt(i),defaultFindMatchType:Ct(i),horizontalScrolling:o,scrollByPage:Boolean(i.getValue(Ke)),paddingBottom:h,hideTwistiesOfChildlessElements:t.hideTwistiesOfChildlessElements,expandOnlyOnTwistieClick:t.expandOnlyOnTwistieClick??"doubleClick"===i.getValue(Je),contextViewProvider:s,findWidgetStyles:fe.Dk,enableStickyScroll:Boolean(i.getValue(et)),stickyScrollMaxItemCount:Number(i.getValue(tt))}}}_t=_e([ve(7,ge._Y),ve(8,he.fN),ve(9,Ce),ve(10,ce.pG)],_t);let bt=class{get onDidOpen(){return this.navigator.onDidOpen}constructor(e,t,i,s,n,r,o){this.tree=e,this.disposables=[],this.contextKeyService=Ue(n,e),this.disposables.push(He(this.contextKeyService,e)),this.listSupportsMultiSelect=we.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==t.multipleSelectionSupport);ke.bindTo(this.contextKeyService).set(Boolean(t.selectionNavigation)),this.listSupportFindWidget=Ae.bindTo(this.contextKeyService),this.listSupportFindWidget.set(t.findWidgetEnabled??!0),this.hasSelectionOrFocus=Le.bindTo(this.contextKeyService),this.hasDoubleSelection=Te.bindTo(this.contextKeyService),this.hasMultiSelection=xe.bindTo(this.contextKeyService),this.treeElementCanCollapse=Ne.bindTo(this.contextKeyService),this.treeElementHasParent=Ie.bindTo(this.contextKeyService),this.treeElementCanExpand=Oe.bindTo(this.contextKeyService),this.treeElementHasChild=De.bindTo(this.contextKeyService),this.treeFindOpen=Me.bindTo(this.contextKeyService),this.treeStickyScrollFocused=ye.bindTo(this.contextKeyService),this._useAltAsMultipleSelectionModifier=it(o),this.updateStyleOverrides(s);const a=()=>{const t=e.getFocus()[0];if(!t)return;const i=e.getNode(t);this.treeElementCanCollapse.set(i.collapsible&&!i.collapsed),this.treeElementHasParent.set(!!e.getParentElement(t)),this.treeElementCanExpand.set(i.collapsible&&i.collapsed),this.treeElementHasChild.set(!!e.getFirstElementChild(t))},c=new Set;c.add(Pe),c.add(Fe),this.disposables.push(this.contextKeyService,r.register(e),e.onDidChangeSelection((()=>{const t=e.getSelection(),i=e.getFocus();this.contextKeyService.bufferChangeEvents((()=>{this.hasSelectionOrFocus.set(t.length>0||i.length>0),this.hasMultiSelection.set(t.length>1),this.hasDoubleSelection.set(2===t.length)}))})),e.onDidChangeFocus((()=>{const t=e.getSelection(),i=e.getFocus();this.hasSelectionOrFocus.set(t.length>0||i.length>0),a()})),e.onDidChangeCollapseState(a),e.onDidChangeModel(a),e.onDidChangeFindOpenState((e=>this.treeFindOpen.set(e))),e.onDidChangeStickyScrollFocused((e=>this.treeStickyScrollFocused.set(e))),o.onDidChangeConfiguration((s=>{let n={};if(s.affectsConfiguration(Be)&&(this._useAltAsMultipleSelectionModifier=it(o)),s.affectsConfiguration(qe)){const e=o.getValue(qe);n={...n,indent:e}}if(s.affectsConfiguration($e)&&void 0===t.renderIndentGuides){const e=o.getValue($e);n={...n,renderIndentGuides:e}}if(s.affectsConfiguration(Qe)){const e=Boolean(o.getValue(Qe));n={...n,smoothScrolling:e}}if(s.affectsConfiguration(ze)||s.affectsConfiguration(je)){const e=vt(o);n={...n,defaultFindMode:e}}if(s.affectsConfiguration(Ge)||s.affectsConfiguration(je)){const e=i();n={...n,typeNavigationMode:e}}if(s.affectsConfiguration(Ye)){const e=Ct(o);n={...n,defaultFindMatchType:e}}if(s.affectsConfiguration(Ve)&&void 0===t.horizontalScrolling){const e=Boolean(o.getValue(Ve));n={...n,horizontalScrolling:e}}if(s.affectsConfiguration(Ke)){const e=Boolean(o.getValue(Ke));n={...n,scrollByPage:e}}if(s.affectsConfiguration(Je)&&void 0===t.expandOnlyOnTwistieClick&&(n={...n,expandOnlyOnTwistieClick:"doubleClick"===o.getValue(Je)}),s.affectsConfiguration(et)){const e=o.getValue(et);n={...n,enableStickyScroll:e}}if(s.affectsConfiguration(tt)){const e=Math.max(1,o.getValue(tt));n={...n,stickyScrollMaxItemCount:e}}if(s.affectsConfiguration(Xe)){const e=o.getValue(Xe);n={...n,mouseWheelScrollSensitivity:e}}if(s.affectsConfiguration(Ze)){const e=o.getValue(Ze);n={...n,fastScrollSensitivity:e}}Object.keys(n).length>0&&e.updateOptions(n)})),this.contextKeyService.onDidChangeContext((t=>{t.affectsSome(c)&&e.updateOptions({typeNavigationMode:i()})}))),this.navigator=new dt(e,{configurationService:o,...t}),this.disposables.push(this.navigator)}updateOptions(e){void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyleOverrides(e){this.tree.style(e?(0,fe.t8)(e):fe.IN)}dispose(){this.disposables=(0,a.AS)(this.disposables)}};bt=_e([ve(4,he.fN),ve(5,Ce),ve(6,ce.pG)],bt);me.O.as(le.Fd.Configuration).registerConfiguration({id:"workbench",order:7,title:(0,ae.kg)("workbenchConfigurationTitle","Workbench"),type:"object",properties:{[Be]:{type:"string",enum:["ctrlCmd","alt"],markdownEnumDescriptions:[(0,ae.kg)("multiSelectModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),(0,ae.kg)("multiSelectModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:(0,ae.kg)({key:"multiSelectModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add an item in trees and lists to a multi-selection with the mouse (for example in the explorer, open editors and scm view). The 'Open to Side' mouse gestures - if supported - will adapt such that they do not conflict with the multiselect modifier.")},[We]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:(0,ae.kg)({key:"openModeModifier",comment:["`singleClick` and `doubleClick` refers to a value the setting can take and should not be localized."]},"Controls how to open items in trees and lists using the mouse (if supported). Note that some trees and lists might choose to ignore this setting if it is not applicable.")},[Ve]:{type:"boolean",default:!1,description:(0,ae.kg)("horizontalScrolling setting","Controls whether lists and trees support horizontal scrolling in the workbench. Warning: turning on this setting has a performance implication.")},[Ke]:{type:"boolean",default:!1,description:(0,ae.kg)("list.scrollByPage","Controls whether clicks in the scrollbar scroll page by page.")},[qe]:{type:"number",default:8,minimum:4,maximum:40,description:(0,ae.kg)("tree indent setting","Controls tree indentation in pixels.")},[$e]:{type:"string",enum:["none","onHover","always"],default:"onHover",description:(0,ae.kg)("render tree indent guides","Controls whether the tree should render indent guides.")},[Qe]:{type:"boolean",default:!1,description:(0,ae.kg)("list smoothScrolling setting","Controls whether lists and trees have smooth scrolling.")},[Xe]:{type:"number",default:1,markdownDescription:(0,ae.kg)("Mouse Wheel Scroll Sensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")},[Ze]:{type:"number",default:5,markdownDescription:(0,ae.kg)("Fast Scroll Sensitivity","Scrolling speed multiplier when pressing `Alt`.")},[ze]:{type:"string",enum:["highlight","filter"],enumDescriptions:[(0,ae.kg)("defaultFindModeSettingKey.highlight","Highlight elements when searching. Further up and down navigation will traverse only the highlighted elements."),(0,ae.kg)("defaultFindModeSettingKey.filter","Filter elements when searching.")],default:"highlight",description:(0,ae.kg)("defaultFindModeSettingKey","Controls the default find mode for lists and trees in the workbench.")},[je]:{type:"string",enum:["simple","highlight","filter"],enumDescriptions:[(0,ae.kg)("keyboardNavigationSettingKey.simple","Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),(0,ae.kg)("keyboardNavigationSettingKey.highlight","Highlight keyboard navigation highlights elements which match the keyboard input. Further up and down navigation will traverse only the highlighted elements."),(0,ae.kg)("keyboardNavigationSettingKey.filter","Filter keyboard navigation will filter out and hide all the elements which do not match the keyboard input.")],default:"highlight",description:(0,ae.kg)("keyboardNavigationSettingKey","Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter."),deprecated:!0,deprecationMessage:(0,ae.kg)("keyboardNavigationSettingKeyDeprecated","Please use 'workbench.list.defaultFindMode' and\t'workbench.list.typeNavigationMode' instead.")},[Ye]:{type:"string",enum:["fuzzy","contiguous"],enumDescriptions:[(0,ae.kg)("defaultFindMatchTypeSettingKey.fuzzy","Use fuzzy matching when searching."),(0,ae.kg)("defaultFindMatchTypeSettingKey.contiguous","Use contiguous matching when searching.")],default:"fuzzy",description:(0,ae.kg)("defaultFindMatchTypeSettingKey","Controls the type of matching used when searching lists and trees in the workbench.")},[Je]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:(0,ae.kg)("expand mode","Controls how tree folders are expanded when clicking the folder names. Note that some trees and lists might choose to ignore this setting if it is not applicable.")},[et]:{type:"boolean",default:!0,description:(0,ae.kg)("sticky scroll","Controls whether sticky scrolling is enabled in trees.")},[tt]:{type:"number",minimum:1,default:7,markdownDescription:(0,ae.kg)("sticky scroll maximum items","Controls the number of sticky elements displayed in the tree when {0} is enabled.","`#workbench.tree.enableStickyScroll#`")},[Ge]:{type:"string",enum:["automatic","trigger"],default:"automatic",markdownDescription:(0,ae.kg)("typeNavigationMode2","Controls how type navigation works in lists and trees in the workbench. When set to `trigger`, type navigation begins once the `list.triggerTypeNavigation` command is run.")}}})},18801:(e,t,i)=>{"use strict";i.d(t,{$b:()=>a,Cr:()=>h,Dk:()=>d,rr:()=>o});var s=i(41234),n=i(5662),r=i(32848);const o=(0,i(63591).u1)("logService");var a;!function(e){e[e.Off=0]="Off",e[e.Trace=1]="Trace",e[e.Debug=2]="Debug",e[e.Info=3]="Info",e[e.Warning=4]="Warning",e[e.Error=5]="Error"}(a||(a={}));const c=a.Info;class l extends n.jG{constructor(){super(...arguments),this.level=c,this._onDidChangeLogLevel=this._register(new s.vl),this.onDidChangeLogLevel=this._onDidChangeLogLevel.event}setLevel(e){this.level!==e&&(this.level=e,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}checkLogLevel(e){return this.level!==a.Off&&this.level<=e}}class h extends l{constructor(e=c,t=!0){super(),this.useColors=t,this.setLevel(e)}trace(e,...t){this.checkLogLevel(a.Trace)&&(this.useColors?console.log("%cTRACE","color: #888",e,...t):console.log(e,...t))}debug(e,...t){this.checkLogLevel(a.Debug)&&(this.useColors?console.log("%cDEBUG","background: #eee; color: #888",e,...t):console.log(e,...t))}info(e,...t){this.checkLogLevel(a.Info)&&(this.useColors?console.log("%c INFO","color: #33f",e,...t):console.log(e,...t))}warn(e,...t){this.checkLogLevel(a.Warning)&&(this.useColors?console.log("%c WARN","color: #993",e,...t):console.log(e,...t))}error(e,...t){this.checkLogLevel(a.Error)&&(this.useColors?console.log("%c ERR","color: #f33",e,...t):console.error(e,...t))}}class d extends l{constructor(e){super(),this.loggers=e,e.length&&this.setLevel(e[0].getLevel())}setLevel(e){for(const t of this.loggers)t.setLevel(e);super.setLevel(e)}trace(e,...t){for(const i of this.loggers)i.trace(e,...t)}debug(e,...t){for(const i of this.loggers)i.debug(e,...t)}info(e,...t){for(const i of this.loggers)i.info(e,...t)}warn(e,...t){for(const i of this.loggers)i.warn(e,...t)}error(e,...t){for(const i of this.loggers)i.error(e,...t)}dispose(){for(const e of this.loggers)e.dispose();super.dispose()}}new r.N1("logLevel",function(e){switch(e){case a.Trace:return"trace";case a.Debug:return"debug";case a.Info:return"info";case a.Warning:return"warn";case a.Error:return"error";case a.Off:return"off"}}(a.Info))},75147:(e,t,i)=>{"use strict";i.d(t,{DR:()=>c,cj:()=>s,oc:()=>n});var s,n,r=i(42291),o=i(78209),a=i(63591);!function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(s||(s={})),function(e){e.compare=function(e,t){return t-e};const t=Object.create(null);t[e.Error]=(0,o.kg)("sev.error","Error"),t[e.Warning]=(0,o.kg)("sev.warning","Warning"),t[e.Info]=(0,o.kg)("sev.info","Info"),e.toString=function(e){return t[e]||""},e.fromSeverity=function(t){switch(t){case r.A.Error:return e.Error;case r.A.Warning:return e.Warning;case r.A.Info:return e.Info;case r.A.Ignore:return e.Hint}},e.toSeverity=function(t){switch(t){case e.Error:return r.A.Error;case e.Warning:return r.A.Warning;case e.Info:return r.A.Info;case e.Hint:return r.A.Ignore}}}(s||(s={})),function(e){const t="";function i(e,i){const n=[t];return e.source?n.push(e.source.replace("\xa6","\\\xa6")):n.push(t),e.code?"string"===typeof e.code?n.push(e.code.replace("\xa6","\\\xa6")):n.push(e.code.value.replace("\xa6","\\\xa6")):n.push(t),void 0!==e.severity&&null!==e.severity?n.push(s.toString(e.severity)):n.push(t),e.message&&i?n.push(e.message.replace("\xa6","\\\xa6")):n.push(t),void 0!==e.startLineNumber&&null!==e.startLineNumber?n.push(e.startLineNumber.toString()):n.push(t),void 0!==e.startColumn&&null!==e.startColumn?n.push(e.startColumn.toString()):n.push(t),void 0!==e.endLineNumber&&null!==e.endLineNumber?n.push(e.endLineNumber.toString()):n.push(t),void 0!==e.endColumn&&null!==e.endColumn?n.push(e.endColumn.toString()):n.push(t),n.push(t),n.join("\xa6")}e.makeKey=function(e){return i(e,!0)},e.makeKeyOptionalMessage=i}(n||(n={}));const c=(0,a.u1)("markerService")},58591:(e,t,i)=>{"use strict";i.d(t,{AI:()=>r,Kz:()=>a,Ot:()=>o});var s=i(42291),n=i(63591),r=s.A;const o=(0,n.u1)("notificationService");class a{}},71319:(e,t,i)=>{"use strict";i.d(t,{V:()=>r,w:()=>o});var s=i(31308),n=i(13850);function r(e,t,i){return(0,n.eP)({debugName:()=>`Configuration Key "${e}"`},(t=>i.onDidChangeConfiguration((i=>{i.affectsConfiguration(e)&&t(i)}))),(()=>i.getValue(e)??t))}function o(e,t,i){const n=e.bindTo(t);return(0,s.zL)({debugName:()=>`Set Context Key "${e.key}"`},(e=>{n.set(i(e))}))}},49099:(e,t,i)=>{"use strict";i.d(t,{C:()=>s,e:()=>n});const s=(0,i(63591).u1)("openerService");function n(e){let t;const i=/^L?(\d+)(?:,(\d+))?(-L?(\d+)(?:,(\d+))?)?/.exec(e.fragment);return i&&(t={startLineNumber:parseInt(i[1]),startColumn:i[2]?parseInt(i[2]):1,endLineNumber:i[4]?parseInt(i[4]):void 0,endColumn:i[4]?i[5]?parseInt(i[5]):1:void 0},e=e.with({fragment:""})),{selection:t,uri:e}}},73823:(e,t,i)=>{"use strict";i.d(t,{G5:()=>n,N8:()=>o,ke:()=>r});var s=i(63591);const n=(0,s.u1)("progressService");Object.freeze({total(){},worked(){},done(){}});class r{static{this.None=Object.freeze({report(){}})}constructor(e){this.callback=e}report(e){this._value=e,this.callback(this._value)}}const o=(0,s.u1)("editorProgressService")},71597:(e,t,i)=>{"use strict";i.d(t,{Fd:()=>a,aJ:()=>s});var s,n=i(25890),r=i(5662),o=i(46359);!function(e){e[e.PRESERVE=0]="PRESERVE",e[e.LAST=1]="LAST"}(s||(s={}));const a={Quickaccess:"workbench.contributions.quickaccess"};o.O.add(a.Quickaccess,new class{constructor(){this.providers=[],this.defaultProvider=void 0}registerQuickAccessProvider(e){return 0===e.prefix.length?this.defaultProvider=e:this.providers.push(e),this.providers.sort(((e,t)=>t.prefix.length-e.prefix.length)),(0,r.s)((()=>{this.providers.splice(this.providers.indexOf(e),1),this.defaultProvider===e&&(this.defaultProvider=void 0)}))}getQuickAccessProviders(){return(0,n.Yc)([this.defaultProvider,...this.providers])}getQuickAccessProvider(e){return e&&this.providers.find((t=>e.startsWith(t.prefix)))||void 0||this.defaultProvider}})},51467:(e,t,i)=>{"use strict";i.d(t,{C1:()=>o,Fp:()=>a,GK:()=>l,Ym:()=>n,dH:()=>c,kF:()=>r});var s=i(63591);const n={ctrlCmd:!1,alt:!1};var r,o,a,c;!function(e){e[e.Blur=1]="Blur",e[e.Gesture=2]="Gesture",e[e.Other=3]="Other"}(r||(r={})),function(e){e[e.NONE=0]="NONE",e[e.FIRST=1]="FIRST",e[e.SECOND=2]="SECOND",e[e.LAST=3]="LAST"}(o||(o={})),function(e){e[e.First=1]="First",e[e.Second=2]="Second",e[e.Last=3]="Last",e[e.Next=4]="Next",e[e.Previous=5]="Previous",e[e.NextPage=6]="NextPage",e[e.PreviousPage=7]="PreviousPage",e[e.NextSeparator=8]="NextSeparator",e[e.PreviousSeparator=9]="PreviousSeparator"}(a||(a={})),function(e){e[e.Title=1]="Title",e[e.Inline=2]="Inline"}(c||(c={}));new class{constructor(e){this.options=e}};const l=(0,s.u1)("quickInputService")},46359:(e,t,i)=>{"use strict";i.d(t,{O:()=>r});var s=i(66782),n=i(631);const r=new class{constructor(){this.data=new Map}add(e,t){s.ok(n.Kg(e)),s.ok(n.Gv(t)),s.ok(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)}as(e){return this.data.get(e)||null}}},9711:(e,t,i)=>{"use strict";i.d(t,{CS:()=>p,pc:()=>_,LP:()=>m});var s,n,r=i(41234),o=i(5662),a=i(631),c=i(90766),l=i(908);!function(e){e[e.STORAGE_DOES_NOT_EXIST=0]="STORAGE_DOES_NOT_EXIST",e[e.STORAGE_IN_MEMORY=1]="STORAGE_IN_MEMORY"}(s||(s={})),function(e){e[e.None=0]="None",e[e.Initialized=1]="Initialized",e[e.Closed=2]="Closed"}(n||(n={}));class h extends o.jG{static{this.DEFAULT_FLUSH_DELAY=100}constructor(e,t=Object.create(null)){super(),this.database=e,this.options=t,this._onDidChangeStorage=this._register(new r.fV),this.onDidChangeStorage=this._onDidChangeStorage.event,this.state=n.None,this.cache=new Map,this.flushDelayer=this._register(new c.Th(h.DEFAULT_FLUSH_DELAY)),this.pendingDeletes=new Set,this.pendingInserts=new Map,this.whenFlushedCallbacks=[],this.registerListeners()}registerListeners(){this._register(this.database.onDidChangeItemsExternal((e=>this.onDidChangeItemsExternal(e))))}onDidChangeItemsExternal(e){this._onDidChangeStorage.pause();try{e.changed?.forEach(((e,t)=>this.acceptExternal(t,e))),e.deleted?.forEach((e=>this.acceptExternal(e,void 0)))}finally{this._onDidChangeStorage.resume()}}acceptExternal(e,t){if(this.state===n.Closed)return;let i=!1;if((0,a.z)(t))i=this.cache.delete(e);else{this.cache.get(e)!==t&&(this.cache.set(e,t),i=!0)}i&&this._onDidChangeStorage.fire({key:e,external:!0})}get(e,t){const i=this.cache.get(e);return(0,a.z)(i)?t:i}getBoolean(e,t){const i=this.get(e);return(0,a.z)(i)?t:"true"===i}getNumber(e,t){const i=this.get(e);return(0,a.z)(i)?t:parseInt(i,10)}async set(e,t,i=!1){if(this.state===n.Closed)return;if((0,a.z)(t))return this.delete(e,i);const s=(0,a.Gv)(t)||Array.isArray(t)?(0,l.As)(t):String(t);return this.cache.get(e)!==s?(this.cache.set(e,s),this.pendingInserts.set(e,s),this.pendingDeletes.delete(e),this._onDidChangeStorage.fire({key:e,external:i}),this.doFlush()):void 0}async delete(e,t=!1){if(this.state===n.Closed)return;return this.cache.delete(e)?(this.pendingDeletes.has(e)||this.pendingDeletes.add(e),this.pendingInserts.delete(e),this._onDidChangeStorage.fire({key:e,external:t}),this.doFlush()):void 0}get hasPending(){return this.pendingInserts.size>0||this.pendingDeletes.size>0}async flushPending(){if(!this.hasPending)return;const e={insert:this.pendingInserts,delete:this.pendingDeletes};return this.pendingDeletes=new Set,this.pendingInserts=new Map,this.database.updateItems(e).finally((()=>{if(!this.hasPending)for(;this.whenFlushedCallbacks.length;)this.whenFlushedCallbacks.pop()?.()}))}async doFlush(e){return this.options.hint===s.STORAGE_IN_MEMORY?this.flushPending():this.flushDelayer.trigger((()=>this.flushPending()),e)}}class d{constructor(){this.onDidChangeItemsExternal=r.Jh.None,this.items=new Map}async updateItems(e){e.insert?.forEach(((e,t)=>this.items.set(t,e))),e.delete?.forEach((e=>this.items.delete(e)))}}var u=i(63591);const g="__$__targetStorageMarker",p=(0,u.u1)("storageService");var m;!function(e){e[e.NONE=0]="NONE",e[e.SHUTDOWN=1]="SHUTDOWN"}(m||(m={}));class f extends o.jG{static{this.DEFAULT_FLUSH_INTERVAL=6e4}constructor(e={flushInterval:f.DEFAULT_FLUSH_INTERVAL}){super(),this.options=e,this._onDidChangeValue=this._register(new r.fV),this._onDidChangeTarget=this._register(new r.fV),this._onWillSaveState=this._register(new r.vl),this.onWillSaveState=this._onWillSaveState.event,this._workspaceKeyTargets=void 0,this._profileKeyTargets=void 0,this._applicationKeyTargets=void 0}onDidChangeValue(e,t,i){return r.Jh.filter(this._onDidChangeValue.event,(i=>i.scope===e&&(void 0===t||i.key===t)),i)}emitDidChangeValue(e,t){const{key:i,external:s}=t;if(i===g){switch(e){case-1:this._applicationKeyTargets=void 0;break;case 0:this._profileKeyTargets=void 0;break;case 1:this._workspaceKeyTargets=void 0}this._onDidChangeTarget.fire({scope:e})}else this._onDidChangeValue.fire({scope:e,key:i,target:this.getKeyTargets(e)[i],external:s})}get(e,t,i){return this.getStorage(t)?.get(e,i)}getBoolean(e,t,i){return this.getStorage(t)?.getBoolean(e,i)}getNumber(e,t,i){return this.getStorage(t)?.getNumber(e,i)}store(e,t,i,s,n=!1){(0,a.z)(t)?this.remove(e,i,n):this.withPausedEmitters((()=>{this.updateKeyTarget(e,i,s),this.getStorage(i)?.set(e,t,n)}))}remove(e,t,i=!1){this.withPausedEmitters((()=>{this.updateKeyTarget(e,t,void 0),this.getStorage(t)?.delete(e,i)}))}withPausedEmitters(e){this._onDidChangeValue.pause(),this._onDidChangeTarget.pause();try{e()}finally{this._onDidChangeValue.resume(),this._onDidChangeTarget.resume()}}updateKeyTarget(e,t,i,s=!1){const n=this.getKeyTargets(t);"number"===typeof i?n[e]!==i&&(n[e]=i,this.getStorage(t)?.set(g,JSON.stringify(n),s)):"number"===typeof n[e]&&(delete n[e],this.getStorage(t)?.set(g,JSON.stringify(n),s))}get workspaceKeyTargets(){return this._workspaceKeyTargets||(this._workspaceKeyTargets=this.loadKeyTargets(1)),this._workspaceKeyTargets}get profileKeyTargets(){return this._profileKeyTargets||(this._profileKeyTargets=this.loadKeyTargets(0)),this._profileKeyTargets}get applicationKeyTargets(){return this._applicationKeyTargets||(this._applicationKeyTargets=this.loadKeyTargets(-1)),this._applicationKeyTargets}getKeyTargets(e){switch(e){case-1:return this.applicationKeyTargets;case 0:return this.profileKeyTargets;default:return this.workspaceKeyTargets}}loadKeyTargets(e){const t=this.getStorage(e);return t?function(e){const t=e.get(g);if(t)try{return JSON.parse(t)}catch(i){}return Object.create(null)}(t):Object.create(null)}}class _ extends f{constructor(){super(),this.applicationStorage=this._register(new h(new d,{hint:s.STORAGE_IN_MEMORY})),this.profileStorage=this._register(new h(new d,{hint:s.STORAGE_IN_MEMORY})),this.workspaceStorage=this._register(new h(new d,{hint:s.STORAGE_IN_MEMORY})),this._register(this.workspaceStorage.onDidChangeStorage((e=>this.emitDidChangeValue(1,e)))),this._register(this.profileStorage.onDidChangeStorage((e=>this.emitDidChangeValue(0,e)))),this._register(this.applicationStorage.onDidChangeStorage((e=>this.emitDidChangeValue(-1,e))))}getStorage(e){switch(e){case-1:return this.applicationStorage;case 0:return this.profileStorage;default:return this.workspaceStorage}}}},90651:(e,t,i)=>{"use strict";i.d(t,{k:()=>s});const s=(0,i(63591).u1)("telemetryService")},19070:(e,t,i)=>{"use strict";i.d(t,{Dk:()=>h,IN:()=>u,RE:()=>p,XS:()=>m,cv:()=>o,ho:()=>l,ir:()=>r,m$:()=>d,mk:()=>c,oJ:()=>a,t8:()=>g});var s=i(66261),n=i(47661);const r={keybindingLabelBackground:(0,s.GuP)(s.HDX),keybindingLabelForeground:(0,s.GuP)(s.eUu),keybindingLabelBorder:(0,s.GuP)(s.zUX),keybindingLabelBottomBorder:(0,s.GuP)(s.Qfh),keybindingLabelShadow:(0,s.GuP)(s.f9l)},o={buttonForeground:(0,s.GuP)(s.G_h),buttonSeparator:(0,s.GuP)(s.Q1$),buttonBackground:(0,s.GuP)(s.XJc),buttonHoverBackground:(0,s.GuP)(s.T9h),buttonSecondaryForeground:(0,s.GuP)(s.Inn),buttonSecondaryBackground:(0,s.GuP)(s.xOA),buttonSecondaryHoverBackground:(0,s.GuP)(s.nZG),buttonBorder:(0,s.GuP)(s.raQ)},a={progressBarBackground:(0,s.GuP)(s.BTi)},c={inputActiveOptionBorder:(0,s.GuP)(s.uNK),inputActiveOptionForeground:(0,s.GuP)(s.$$0),inputActiveOptionBackground:(0,s.GuP)(s.c1f)},l=((0,s.GuP)(s.jOE),(0,s.GuP)(s.Ukx),(0,s.GuP)(s.Ips),(0,s.GuP)(s.kPT),(0,s.GuP)(s.xWN),(0,s.GuP)(s.ZBU),(0,s.GuP)(s.jr9),(0,s.GuP)(s.OcU),(0,s.GuP)(s.C5U),(0,s.GuP)(s.t0B),(0,s.GuP)(s.CgL),(0,s.GuP)(s.FiB),(0,s.GuP)(s.f9l),(0,s.GuP)(s.b1q),(0,s.GuP)(s.tYX),(0,s.GuP)(s.JPj),(0,s.GuP)(s.bNw),(0,s.GuP)(s.vwp),{inputBackground:(0,s.GuP)(s.L4c),inputForeground:(0,s.GuP)(s.cws),inputBorder:(0,s.GuP)(s.Zgs),inputValidationInfoBorder:(0,s.GuP)(s.YSW),inputValidationInfoBackground:(0,s.GuP)(s.I$A),inputValidationInfoForeground:(0,s.GuP)(s.L9Z),inputValidationWarningBorder:(0,s.GuP)(s.C1n),inputValidationWarningBackground:(0,s.GuP)(s.ULt),inputValidationWarningForeground:(0,s.GuP)(s.T5N),inputValidationErrorBorder:(0,s.GuP)(s.eYZ),inputValidationErrorBackground:(0,s.GuP)(s._$n),inputValidationErrorForeground:(0,s.GuP)(s.h9z)}),h={listFilterWidgetBackground:(0,s.GuP)(s.pnl),listFilterWidgetOutline:(0,s.GuP)(s.fiM),listFilterWidgetNoMatchesOutline:(0,s.GuP)(s.P9Z),listFilterWidgetShadow:(0,s.GuP)(s.H8q),inputBoxStyles:l,toggleStyles:c},d={badgeBackground:(0,s.GuP)(s.WMx),badgeForeground:(0,s.GuP)(s.zRE),badgeBorder:(0,s.GuP)(s.b1q)},u=((0,s.GuP)(s.vV$),(0,s.GuP)(s.mc0),(0,s.GuP)(s.etE),(0,s.GuP)(s.etE),(0,s.GuP)(s.sAS),{listBackground:void 0,listInactiveFocusForeground:void 0,listFocusBackground:(0,s.GuP)(s.VFX),listFocusForeground:(0,s.GuP)(s.efJ),listFocusOutline:(0,s.GuP)(s.p7Y),listActiveSelectionBackground:(0,s.GuP)(s.Rjz),listActiveSelectionForeground:(0,s.GuP)(s.GVV),listActiveSelectionIconForeground:(0,s.GuP)(s.fED),listFocusAndSelectionOutline:(0,s.GuP)(s.gtq),listFocusAndSelectionBackground:(0,s.GuP)(s.Rjz),listFocusAndSelectionForeground:(0,s.GuP)(s.GVV),listInactiveSelectionBackground:(0,s.GuP)(s.uNx),listInactiveSelectionIconForeground:(0,s.GuP)(s.C9U),listInactiveSelectionForeground:(0,s.GuP)(s.f4y),listInactiveFocusBackground:(0,s.GuP)(s.CQ3),listInactiveFocusOutline:(0,s.GuP)(s.ijf),listHoverBackground:(0,s.GuP)(s.lO1),listHoverForeground:(0,s.GuP)(s.QRv),listDropOverBackground:(0,s.GuP)(s.Yoe),listDropBetweenBackground:(0,s.GuP)(s.yIp),listSelectionOutline:(0,s.GuP)(s.buw),listHoverOutline:(0,s.GuP)(s.buw),treeIndentGuidesStroke:(0,s.GuP)(s.U4U),treeInactiveIndentGuidesStroke:(0,s.GuP)(s.pft),treeStickyScrollBackground:void 0,treeStickyScrollBorder:void 0,treeStickyScrollShadow:(0,s.GuP)(s.bXl),tableColumnsBorder:(0,s.GuP)(s.k5u),tableOddRowsBackgroundColor:(0,s.GuP)(s.sbQ)});function g(e){return function(e,t){const i={...t};for(const n in e){const t=e[n];i[n]=void 0!==t?(0,s.GuP)(t):void 0}return i}(e,u)}const p={selectBackground:(0,s.GuP)(s.rvE),selectListBackground:(0,s.GuP)(s.lWP),selectForeground:(0,s.GuP)(s.yqq),decoratorRightForeground:(0,s.GuP)(s.NBf),selectBorder:(0,s.GuP)(s.HcB),focusBorder:(0,s.GuP)(s.tAP),listFocusBackground:(0,s.GuP)(s.AlL),listInactiveSelectionIconForeground:(0,s.GuP)(s.c7i),listFocusForeground:(0,s.GuP)(s.nH),listFocusOutline:(0,s.HP_)(s.buw,n.Q1.transparent.toString()),listHoverBackground:(0,s.GuP)(s.lO1),listHoverForeground:(0,s.GuP)(s.QRv),listHoverOutline:(0,s.GuP)(s.buw),selectListBorder:(0,s.GuP)(s.sIe),listBackground:void 0,listActiveSelectionBackground:void 0,listActiveSelectionForeground:void 0,listActiveSelectionIconForeground:void 0,listFocusAndSelectionBackground:void 0,listDropOverBackground:void 0,listDropBetweenBackground:void 0,listInactiveSelectionBackground:void 0,listInactiveSelectionForeground:void 0,listInactiveFocusBackground:void 0,listInactiveFocusOutline:void 0,listSelectionOutline:void 0,listFocusAndSelectionForeground:void 0,listFocusAndSelectionOutline:void 0,listInactiveFocusForeground:void 0,tableColumnsBorder:void 0,tableOddRowsBackgroundColor:void 0,treeIndentGuidesStroke:void 0,treeInactiveIndentGuidesStroke:void 0,treeStickyScrollBackground:void 0,treeStickyScrollBorder:void 0,treeStickyScrollShadow:void 0},m={shadowColor:(0,s.GuP)(s.f9l),borderColor:(0,s.GuP)(s.g$2),foregroundColor:(0,s.GuP)(s.dd_),backgroundColor:(0,s.GuP)(s.c6Y),selectionForegroundColor:(0,s.GuP)(s.pmr),selectionBackgroundColor:(0,s.GuP)(s.Ux$),selectionBorderColor:(0,s.GuP)(s.SNb),separatorColor:(0,s.GuP)(s.D7X),scrollbarShadow:(0,s.GuP)(s.bXl),scrollbarSliderBackground:(0,s.GuP)(s.gnV),scrollbarSliderHoverBackground:(0,s.GuP)(s.cI_),scrollbarSliderActiveBackground:(0,s.GuP)(s.mhZ)}},66261:(e,t,i)=>{"use strict";i.d(t,{FdG:()=>s.Fd,buw:()=>h,GuP:()=>s.Gu,Bbc:()=>s.Bb,HP_:()=>s.HP,WMx:()=>u,zRE:()=>g,sAS:()=>le,vV$:()=>ae,etE:()=>ce,mc0:()=>oe,XJc:()=>Ze,raQ:()=>et,G_h:()=>Qe,T9h:()=>Je,xOA:()=>it,Inn:()=>tt,nZG:()=>st,Q1$:()=>Xe,OcU:()=>dt,C5U:()=>gt,t0B:()=>ut,b1q:()=>l,EY1:()=>X,ZEf:()=>Z,Gj6:()=>J,ld8:()=>te,$BZ:()=>ie,GNm:()=>ee,Ztu:()=>I,YtV:()=>C,AN$:()=>R,Rbi:()=>w,f3U:()=>F,Ubg:()=>U,ECk:()=>B,p8Y:()=>H,S5J:()=>W,By2:()=>E,i61:()=>N,WfR:()=>V,oZ8:()=>z,tan:()=>M,IIb:()=>A,pOz:()=>k,WL6:()=>j,P6i:()=>G,B2L:()=>$,sjA:()=>q,_pU:()=>Y,HwT:()=>K,seu:()=>O,rm4:()=>D,QwA:()=>P,whs:()=>L,Stt:()=>x,Hng:()=>T,CgL:()=>b,sIe:()=>y,FiB:()=>S,tAP:()=>c,CU6:()=>o,t4B:()=>a,c1f:()=>Me,uNK:()=>Oe,$$0:()=>Pe,L4c:()=>Ae,Zgs:()=>Ie,cws:()=>Ne,_$n:()=>ze,eYZ:()=>je,h9z:()=>Ge,I$A:()=>Fe,YSW:()=>He,L9Z:()=>Ue,ULt:()=>Be,C1n:()=>Ve,T5N:()=>We,HDX:()=>pt,zUX:()=>ft,Qfh:()=>_t,eUu:()=>mt,Rjz:()=>St,GVV:()=>yt,fED:()=>wt,yIp:()=>Ot,Yoe:()=>It,pnl:()=>Pt,P9Z:()=>Ut,fiM:()=>Ft,H8q:()=>Ht,gtq:()=>bt,VFX:()=>vt,efJ:()=>Ct,eMz:()=>Mt,p7Y:()=>Et,QI5:()=>Dt,lO1:()=>At,QRv:()=>Nt,CQ3:()=>xt,ijf:()=>kt,uNx:()=>Rt,f4y:()=>Lt,C9U:()=>Tt,c6Y:()=>Kt,g$2:()=>Gt,dd_:()=>jt,Ux$:()=>qt,SNb:()=>$t,pmr:()=>Yt,D7X:()=>Qt,ILr:()=>xe,yLC:()=>Te,AjU:()=>Se,K1Z:()=>ke,KoI:()=>Re,yr0:()=>we,Xp1:()=>ye,uMG:()=>Le,yLr:()=>s.yL,fAP:()=>_e,z5H:()=>ve,iwL:()=>ti,NBf:()=>ei,tYX:()=>Ce,bNw:()=>be,JPj:()=>Ee,BTi:()=>v,ELA:()=>Xt,HJZ:()=>Zt,AlL:()=>ri,nH:()=>si,c7i:()=>ni,er1:()=>Jt,Ukx:()=>rt,Ips:()=>ot,jOE:()=>nt,xWN:()=>ct,ZBU:()=>lt,kPT:()=>at,jr9:()=>ht,x1A:()=>s.x1,bXl:()=>p,mhZ:()=>_,gnV:()=>m,cI_:()=>f,rvE:()=>Ke,HcB:()=>$e,yqq:()=>qe,lWP:()=>Ye,k5u:()=>Vt,sbQ:()=>zt,vwp:()=>d,JO0:()=>s.JO,pft:()=>Wt,U4U:()=>Bt,DSL:()=>ne,f9l:()=>se});var s=i(83844),n=i(78209),r=i(47661);const o=(0,s.x1)("foreground",{dark:"#CCCCCC",light:"#616161",hcDark:"#FFFFFF",hcLight:"#292929"},n.kg("foreground","Overall foreground color. This color is only used if not overridden by a component.")),a=((0,s.x1)("disabledForeground",{dark:"#CCCCCC80",light:"#61616180",hcDark:"#A5A5A5",hcLight:"#7F7F7F"},n.kg("disabledForeground","Overall foreground for disabled elements. This color is only used if not overridden by a component.")),(0,s.x1)("errorForeground",{dark:"#F48771",light:"#A1260D",hcDark:"#F48771",hcLight:"#B5200D"},n.kg("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),(0,s.x1)("descriptionForeground",{light:"#717171",dark:(0,s.JO)(o,.7),hcDark:(0,s.JO)(o,.7),hcLight:(0,s.JO)(o,.7)},n.kg("descriptionForeground","Foreground color for description text providing additional information, for example for a label.")),(0,s.x1)("icon.foreground",{dark:"#C5C5C5",light:"#424242",hcDark:"#FFFFFF",hcLight:"#292929"},n.kg("iconForeground","The default color for icons in the workbench."))),c=(0,s.x1)("focusBorder",{dark:"#007FD4",light:"#0090F1",hcDark:"#F38518",hcLight:"#006BBD"},n.kg("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),l=(0,s.x1)("contrastBorder",{light:null,dark:null,hcDark:"#6FC3DF",hcLight:"#0F4A85"},n.kg("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),h=(0,s.x1)("contrastActiveBorder",{light:null,dark:null,hcDark:c,hcLight:c},n.kg("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),d=((0,s.x1)("selection.background",null,n.kg("selectionBackground","The background color of text selections in the workbench (e.g. for input fields or text areas). Note that this does not apply to selections within the editor.")),(0,s.x1)("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},n.kg("textLinkForeground","Foreground color for links in text."))),u=((0,s.x1)("textLink.activeForeground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},n.kg("textLinkActiveForeground","Foreground color for links in text when clicked on and on mouse hover.")),(0,s.x1)("textSeparator.foreground",{light:"#0000002e",dark:"#ffffff2e",hcDark:r.Q1.black,hcLight:"#292929"},n.kg("textSeparatorForeground","Color for text separators.")),(0,s.x1)("textPreformat.foreground",{light:"#A31515",dark:"#D7BA7D",hcDark:"#000000",hcLight:"#FFFFFF"},n.kg("textPreformatForeground","Foreground color for preformatted text segments.")),(0,s.x1)("textPreformat.background",{light:"#0000001A",dark:"#FFFFFF1A",hcDark:"#FFFFFF",hcLight:"#09345f"},n.kg("textPreformatBackground","Background color for preformatted text segments.")),(0,s.x1)("textBlockQuote.background",{light:"#f2f2f2",dark:"#222222",hcDark:null,hcLight:"#F2F2F2"},n.kg("textBlockQuoteBackground","Background color for block quotes in text.")),(0,s.x1)("textBlockQuote.border",{light:"#007acc80",dark:"#007acc80",hcDark:r.Q1.white,hcLight:"#292929"},n.kg("textBlockQuoteBorder","Border color for block quotes in text.")),(0,s.x1)("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hcDark:r.Q1.black,hcLight:"#F2F2F2"},n.kg("textCodeBlockBackground","Background color for code blocks in text.")),(0,s.x1)("sash.hoverBorder",c,n.kg("sashActiveBorder","Border color of active sashes.")),(0,s.x1)("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hcDark:r.Q1.black,hcLight:"#0F4A85"},n.kg("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count."))),g=(0,s.x1)("badge.foreground",{dark:r.Q1.white,light:"#333",hcDark:r.Q1.white,hcLight:r.Q1.white},n.kg("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),p=(0,s.x1)("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hcDark:null,hcLight:null},n.kg("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled.")),m=(0,s.x1)("scrollbarSlider.background",{dark:r.Q1.fromHex("#797979").transparent(.4),light:r.Q1.fromHex("#646464").transparent(.4),hcDark:(0,s.JO)(l,.6),hcLight:(0,s.JO)(l,.4)},n.kg("scrollbarSliderBackground","Scrollbar slider background color.")),f=(0,s.x1)("scrollbarSlider.hoverBackground",{dark:r.Q1.fromHex("#646464").transparent(.7),light:r.Q1.fromHex("#646464").transparent(.7),hcDark:(0,s.JO)(l,.8),hcLight:(0,s.JO)(l,.8)},n.kg("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),_=(0,s.x1)("scrollbarSlider.activeBackground",{dark:r.Q1.fromHex("#BFBFBF").transparent(.4),light:r.Q1.fromHex("#000000").transparent(.6),hcDark:l,hcLight:l},n.kg("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),v=(0,s.x1)("progressBar.background",{dark:r.Q1.fromHex("#0E70C0"),light:r.Q1.fromHex("#0E70C0"),hcDark:l,hcLight:l},n.kg("progressBarBackground","Background color of the progress bar that can show for long running operations.")),C=(0,s.x1)("editor.background",{light:"#ffffff",dark:"#1E1E1E",hcDark:r.Q1.black,hcLight:r.Q1.white},n.kg("editorBackground","Editor background color.")),E=(0,s.x1)("editor.foreground",{light:"#333333",dark:"#BBBBBB",hcDark:r.Q1.white,hcLight:o},n.kg("editorForeground","Editor default foreground color.")),b=((0,s.x1)("editorStickyScroll.background",C,n.kg("editorStickyScrollBackground","Background color of sticky scroll in the editor")),(0,s.x1)("editorStickyScrollHover.background",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:null,hcLight:r.Q1.fromHex("#0F4A85").transparent(.1)},n.kg("editorStickyScrollHoverBackground","Background color of sticky scroll on hover in the editor")),(0,s.x1)("editorStickyScroll.border",{dark:null,light:null,hcDark:l,hcLight:l},n.kg("editorStickyScrollBorder","Border color of sticky scroll in the editor")),(0,s.x1)("editorStickyScroll.shadow",p,n.kg("editorStickyScrollShadow"," Shadow color of sticky scroll in the editor")),(0,s.x1)("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hcDark:"#0C141F",hcLight:r.Q1.white},n.kg("editorWidgetBackground","Background color of editor widgets, such as find/replace."))),S=(0,s.x1)("editorWidget.foreground",o,n.kg("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),y=(0,s.x1)("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hcDark:l,hcLight:l},n.kg("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),w=((0,s.x1)("editorWidget.resizeBorder",null,n.kg("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),(0,s.x1)("editorError.background",null,n.kg("editorError.background","Background color of error text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1)("editorError.foreground",{dark:"#F14C4C",light:"#E51400",hcDark:"#F48771",hcLight:"#B5200D"},n.kg("editorError.foreground","Foreground color of error squigglies in the editor."))),R=(0,s.x1)("editorError.border",{dark:null,light:null,hcDark:r.Q1.fromHex("#E47777").transparent(.8),hcLight:"#B5200D"},n.kg("errorBorder","If set, color of double underlines for errors in the editor.")),L=(0,s.x1)("editorWarning.background",null,n.kg("editorWarning.background","Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),T=(0,s.x1)("editorWarning.foreground",{dark:"#CCA700",light:"#BF8803",hcDark:"#FFD370",hcLight:"#895503"},n.kg("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),x=(0,s.x1)("editorWarning.border",{dark:null,light:null,hcDark:r.Q1.fromHex("#FFCC00").transparent(.8),hcLight:r.Q1.fromHex("#FFCC00").transparent(.8)},n.kg("warningBorder","If set, color of double underlines for warnings in the editor.")),k=((0,s.x1)("editorInfo.background",null,n.kg("editorInfo.background","Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1)("editorInfo.foreground",{dark:"#3794FF",light:"#1a85ff",hcDark:"#3794FF",hcLight:"#1a85ff"},n.kg("editorInfo.foreground","Foreground color of info squigglies in the editor."))),A=(0,s.x1)("editorInfo.border",{dark:null,light:null,hcDark:r.Q1.fromHex("#3794FF").transparent(.8),hcLight:"#292929"},n.kg("infoBorder","If set, color of double underlines for infos in the editor.")),N=(0,s.x1)("editorHint.foreground",{dark:r.Q1.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hcDark:null,hcLight:null},n.kg("editorHint.foreground","Foreground color of hint squigglies in the editor.")),I=((0,s.x1)("editorHint.border",{dark:null,light:null,hcDark:r.Q1.fromHex("#eeeeee").transparent(.8),hcLight:"#292929"},n.kg("hintBorder","If set, color of double underlines for hints in the editor.")),(0,s.x1)("editorLink.activeForeground",{dark:"#4E94CE",light:r.Q1.blue,hcDark:r.Q1.cyan,hcLight:"#292929"},n.kg("activeLinkForeground","Color of active links."))),O=(0,s.x1)("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hcDark:"#f3f518",hcLight:"#0F4A85"},n.kg("editorSelectionBackground","Color of the editor selection.")),D=(0,s.x1)("editor.selectionForeground",{light:null,dark:null,hcDark:"#000000",hcLight:r.Q1.white},n.kg("editorSelectionForeground","Color of the selected text for high contrast.")),M=(0,s.x1)("editor.inactiveSelectionBackground",{light:(0,s.JO)(O,.5),dark:(0,s.JO)(O,.5),hcDark:(0,s.JO)(O,.7),hcLight:(0,s.JO)(O,.5)},n.kg("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),P=(0,s.x1)("editor.selectionHighlightBackground",{light:(0,s.oG)(O,C,.3,.6),dark:(0,s.oG)(O,C,.3,.6),hcDark:null,hcLight:null},n.kg("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),F=((0,s.x1)("editor.selectionHighlightBorder",{light:null,dark:null,hcDark:h,hcLight:h},n.kg("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),(0,s.x1)("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hcDark:null,hcLight:null},n.kg("editorFindMatch","Color of the current search match.")),(0,s.x1)("editor.findMatchForeground",null,n.kg("editorFindMatchForeground","Text color of the current search match."))),U=(0,s.x1)("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hcDark:null,hcLight:null},n.kg("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0),H=(0,s.x1)("editor.findMatchHighlightForeground",null,n.kg("findMatchHighlightForeground","Foreground color of the other search matches."),!0),B=((0,s.x1)("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hcDark:null,hcLight:null},n.kg("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1)("editor.findMatchBorder",{light:null,dark:null,hcDark:h,hcLight:h},n.kg("editorFindMatchBorder","Border color of the current search match.")),(0,s.x1)("editor.findMatchHighlightBorder",{light:null,dark:null,hcDark:h,hcLight:h},n.kg("findMatchHighlightBorder","Border color of the other search matches."))),W=(0,s.x1)("editor.findRangeHighlightBorder",{dark:null,light:null,hcDark:(0,s.JO)(h,.4),hcLight:(0,s.JO)(h,.4)},n.kg("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),V=((0,s.x1)("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hcDark:"#ADD6FF26",hcLight:null},n.kg("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1)("editorHoverWidget.background",b,n.kg("hoverBackground","Background color of the editor hover."))),z=((0,s.x1)("editorHoverWidget.foreground",S,n.kg("hoverForeground","Foreground color of the editor hover.")),(0,s.x1)("editorHoverWidget.border",y,n.kg("hoverBorder","Border color of the editor hover."))),G=((0,s.x1)("editorHoverWidget.statusBarBackground",{dark:(0,s.a)(V,.2),light:(0,s.e$)(V,.05),hcDark:b,hcLight:b},n.kg("statusBarBackground","Background color of the editor hover status bar.")),(0,s.x1)("editorInlayHint.foreground",{dark:"#969696",light:"#969696",hcDark:r.Q1.white,hcLight:r.Q1.black},n.kg("editorInlayHintForeground","Foreground color of inline hints"))),j=(0,s.x1)("editorInlayHint.background",{dark:(0,s.JO)(u,.1),light:(0,s.JO)(u,.1),hcDark:(0,s.JO)(r.Q1.white,.1),hcLight:(0,s.JO)(u,.1)},n.kg("editorInlayHintBackground","Background color of inline hints")),K=(0,s.x1)("editorInlayHint.typeForeground",G,n.kg("editorInlayHintForegroundTypes","Foreground color of inline hints for types")),Y=(0,s.x1)("editorInlayHint.typeBackground",j,n.kg("editorInlayHintBackgroundTypes","Background color of inline hints for types")),q=(0,s.x1)("editorInlayHint.parameterForeground",G,n.kg("editorInlayHintForegroundParameter","Foreground color of inline hints for parameters")),$=(0,s.x1)("editorInlayHint.parameterBackground",j,n.kg("editorInlayHintBackgroundParameter","Background color of inline hints for parameters")),Q=(0,s.x1)("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hcDark:"#FFCC00",hcLight:"#007ACC"},n.kg("editorLightBulbForeground","The color used for the lightbulb actions icon.")),X=((0,s.x1)("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},n.kg("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),(0,s.x1)("editorLightBulbAi.foreground",Q,n.kg("editorLightBulbAiForeground","The color used for the lightbulb AI icon.")),(0,s.x1)("editor.snippetTabstopHighlightBackground",{dark:new r.Q1(new r.bU(124,124,124,.3)),light:new r.Q1(new r.bU(10,50,100,.2)),hcDark:new r.Q1(new r.bU(124,124,124,.3)),hcLight:new r.Q1(new r.bU(10,50,100,.2))},n.kg("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),(0,s.x1)("editor.snippetTabstopHighlightBorder",null,n.kg("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),(0,s.x1)("editor.snippetFinalTabstopHighlightBackground",null,n.kg("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),(0,s.x1)("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new r.Q1(new r.bU(10,50,100,.5)),hcDark:"#525252",hcLight:"#292929"},n.kg("snippetFinalTabstopHighlightBorder","Highlight border color of the final tabstop of a snippet.")),new r.Q1(new r.bU(155,185,85,.2))),Z=new r.Q1(new r.bU(255,0,0,.2)),J=(0,s.x1)("diffEditor.insertedTextBackground",{dark:"#9ccc2c33",light:"#9ccc2c40",hcDark:null,hcLight:null},n.kg("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),ee=(0,s.x1)("diffEditor.removedTextBackground",{dark:"#ff000033",light:"#ff000033",hcDark:null,hcLight:null},n.kg("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),te=((0,s.x1)("diffEditor.insertedLineBackground",{dark:X,light:X,hcDark:null,hcLight:null},n.kg("diffEditorInsertedLines","Background color for lines that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1)("diffEditor.removedLineBackground",{dark:Z,light:Z,hcDark:null,hcLight:null},n.kg("diffEditorRemovedLines","Background color for lines that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1)("diffEditorGutter.insertedLineBackground",null,n.kg("diffEditorInsertedLineGutter","Background color for the margin where lines got inserted.")),(0,s.x1)("diffEditorGutter.removedLineBackground",null,n.kg("diffEditorRemovedLineGutter","Background color for the margin where lines got removed.")),(0,s.x1)("diffEditorOverview.insertedForeground",null,n.kg("diffEditorOverviewInserted","Diff overview ruler foreground for inserted content."))),ie=(0,s.x1)("diffEditorOverview.removedForeground",null,n.kg("diffEditorOverviewRemoved","Diff overview ruler foreground for removed content.")),se=((0,s.x1)("diffEditor.insertedTextBorder",{dark:null,light:null,hcDark:"#33ff2eff",hcLight:"#374E06"},n.kg("diffEditorInsertedOutline","Outline color for the text that got inserted.")),(0,s.x1)("diffEditor.removedTextBorder",{dark:null,light:null,hcDark:"#FF008F",hcLight:"#AD0707"},n.kg("diffEditorRemovedOutline","Outline color for text that got removed.")),(0,s.x1)("diffEditor.border",{dark:null,light:null,hcDark:l,hcLight:l},n.kg("diffEditorBorder","Border color between the two text editors.")),(0,s.x1)("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hcDark:null,hcLight:null},n.kg("diffDiagonalFill","Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.")),(0,s.x1)("diffEditor.unchangedRegionBackground","sideBar.background",n.kg("diffEditor.unchangedRegionBackground","The background color of unchanged blocks in the diff editor.")),(0,s.x1)("diffEditor.unchangedRegionForeground","foreground",n.kg("diffEditor.unchangedRegionForeground","The foreground color of unchanged blocks in the diff editor.")),(0,s.x1)("diffEditor.unchangedCodeBackground",{dark:"#74747429",light:"#b8b8b829",hcDark:null,hcLight:null},n.kg("diffEditor.unchangedCodeBackground","The background color of unchanged code in the diff editor.")),(0,s.x1)("widget.shadow",{dark:(0,s.JO)(r.Q1.black,.36),light:(0,s.JO)(r.Q1.black,.16),hcDark:null,hcLight:null},n.kg("widgetShadow","Shadow color of widgets such as find/replace inside the editor."))),ne=(0,s.x1)("widget.border",{dark:null,light:null,hcDark:l,hcLight:l},n.kg("widgetBorder","Border color of widgets such as find/replace inside the editor.")),re=(0,s.x1)("toolbar.hoverBackground",{dark:"#5a5d5e50",light:"#b8b8b850",hcDark:null,hcLight:null},n.kg("toolbarHoverBackground","Toolbar background when hovering over actions using the mouse")),oe=((0,s.x1)("toolbar.hoverOutline",{dark:null,light:null,hcDark:h,hcLight:h},n.kg("toolbarHoverOutline","Toolbar outline when hovering over actions using the mouse")),(0,s.x1)("toolbar.activeBackground",{dark:(0,s.a)(re,.1),light:(0,s.e$)(re,.1),hcDark:null,hcLight:null},n.kg("toolbarActiveBackground","Toolbar background when holding the mouse over actions")),(0,s.x1)("breadcrumb.foreground",(0,s.JO)(o,.8),n.kg("breadcrumbsFocusForeground","Color of focused breadcrumb items."))),ae=(0,s.x1)("breadcrumb.background",C,n.kg("breadcrumbsBackground","Background color of breadcrumb items.")),ce=(0,s.x1)("breadcrumb.focusForeground",{light:(0,s.e$)(o,.2),dark:(0,s.a)(o,.1),hcDark:(0,s.a)(o,.1),hcLight:(0,s.a)(o,.1)},n.kg("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),le=(0,s.x1)("breadcrumb.activeSelectionForeground",{light:(0,s.e$)(o,.2),dark:(0,s.a)(o,.1),hcDark:(0,s.a)(o,.1),hcLight:(0,s.a)(o,.1)},n.kg("breadcrumbsSelectedForeground","Color of selected breadcrumb items.")),he=((0,s.x1)("breadcrumbPicker.background",b,n.kg("breadcrumbsSelectedBackground","Background color of breadcrumb item picker.")),r.Q1.fromHex("#40C8AE").transparent(.5)),de=r.Q1.fromHex("#40A6FF").transparent(.5),ue=r.Q1.fromHex("#606060").transparent(.4),ge=(0,s.x1)("merge.currentHeaderBackground",{dark:he,light:he,hcDark:null,hcLight:null},n.kg("mergeCurrentHeaderBackground","Current header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),pe=((0,s.x1)("merge.currentContentBackground",(0,s.JO)(ge,.4),n.kg("mergeCurrentContentBackground","Current content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1)("merge.incomingHeaderBackground",{dark:de,light:de,hcDark:null,hcLight:null},n.kg("mergeIncomingHeaderBackground","Incoming header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0)),me=((0,s.x1)("merge.incomingContentBackground",(0,s.JO)(pe,.4),n.kg("mergeIncomingContentBackground","Incoming content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1)("merge.commonHeaderBackground",{dark:ue,light:ue,hcDark:null,hcLight:null},n.kg("mergeCommonHeaderBackground","Common ancestor header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0)),fe=((0,s.x1)("merge.commonContentBackground",(0,s.JO)(me,.4),n.kg("mergeCommonContentBackground","Common ancestor content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1)("merge.border",{dark:null,light:null,hcDark:"#C3DF6F",hcLight:"#007ACC"},n.kg("mergeBorder","Border color on headers and the splitter in inline merge-conflicts."))),_e=((0,s.x1)("editorOverviewRuler.currentContentForeground",{dark:(0,s.JO)(ge,1),light:(0,s.JO)(ge,1),hcDark:fe,hcLight:fe},n.kg("overviewRulerCurrentContentForeground","Current overview ruler foreground for inline merge-conflicts.")),(0,s.x1)("editorOverviewRuler.incomingContentForeground",{dark:(0,s.JO)(pe,1),light:(0,s.JO)(pe,1),hcDark:fe,hcLight:fe},n.kg("overviewRulerIncomingContentForeground","Incoming overview ruler foreground for inline merge-conflicts.")),(0,s.x1)("editorOverviewRuler.commonContentForeground",{dark:(0,s.JO)(me,1),light:(0,s.JO)(me,1),hcDark:fe,hcLight:fe},n.kg("overviewRulerCommonContentForeground","Common ancestor overview ruler foreground for inline merge-conflicts.")),(0,s.x1)("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hcDark:"#AB5A00",hcLight:"#AB5A00"},n.kg("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0)),ve=(0,s.x1)("editorOverviewRuler.selectionHighlightForeground","#A0A0A0CC",n.kg("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),Ce=(0,s.x1)("problemsErrorIcon.foreground",w,n.kg("problemsErrorIconForeground","The color used for the problems error icon.")),Ee=(0,s.x1)("problemsWarningIcon.foreground",T,n.kg("problemsWarningIconForeground","The color used for the problems warning icon.")),be=(0,s.x1)("problemsInfoIcon.foreground",k,n.kg("problemsInfoIconForeground","The color used for the problems info icon.")),Se=(0,s.x1)("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hcDark:"#AB5A00",hcLight:"#0F4A85"},n.kg("minimapFindMatchHighlight","Minimap marker color for find matches."),!0),ye=(0,s.x1)("minimap.selectionOccurrenceHighlight",{light:"#c9c9c9",dark:"#676767",hcDark:"#ffffff",hcLight:"#0F4A85"},n.kg("minimapSelectionOccurrenceHighlight","Minimap marker color for repeating editor selections."),!0),we=(0,s.x1)("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hcDark:"#ffffff",hcLight:"#0F4A85"},n.kg("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),Re=(0,s.x1)("minimap.infoHighlight",{dark:k,light:k,hcDark:A,hcLight:A},n.kg("minimapInfo","Minimap marker color for infos.")),Le=(0,s.x1)("minimap.warningHighlight",{dark:T,light:T,hcDark:x,hcLight:x},n.kg("overviewRuleWarning","Minimap marker color for warnings.")),Te=(0,s.x1)("minimap.errorHighlight",{dark:new r.Q1(new r.bU(255,18,18,.7)),light:new r.Q1(new r.bU(255,18,18,.7)),hcDark:new r.Q1(new r.bU(255,50,50,1)),hcLight:"#B5200D"},n.kg("minimapError","Minimap marker color for errors.")),xe=(0,s.x1)("minimap.background",null,n.kg("minimapBackground","Minimap background color.")),ke=(0,s.x1)("minimap.foregroundOpacity",r.Q1.fromHex("#000f"),n.kg("minimapForegroundOpacity",'Opacity of foreground elements rendered in the minimap. For example, "#000000c0" will render the elements with 75% opacity.')),Ae=((0,s.x1)("minimapSlider.background",(0,s.JO)(m,.5),n.kg("minimapSliderBackground","Minimap slider background color.")),(0,s.x1)("minimapSlider.hoverBackground",(0,s.JO)(f,.5),n.kg("minimapSliderHoverBackground","Minimap slider background color when hovering.")),(0,s.x1)("minimapSlider.activeBackground",(0,s.JO)(_,.5),n.kg("minimapSliderActiveBackground","Minimap slider background color when clicked on.")),(0,s.x1)("charts.foreground",o,n.kg("chartsForeground","The foreground color used in charts.")),(0,s.x1)("charts.lines",(0,s.JO)(o,.5),n.kg("chartsLines","The color used for horizontal lines in charts.")),(0,s.x1)("charts.red",w,n.kg("chartsRed","The red color used in chart visualizations.")),(0,s.x1)("charts.blue",k,n.kg("chartsBlue","The blue color used in chart visualizations.")),(0,s.x1)("charts.yellow",T,n.kg("chartsYellow","The yellow color used in chart visualizations.")),(0,s.x1)("charts.orange",Se,n.kg("chartsOrange","The orange color used in chart visualizations.")),(0,s.x1)("charts.green",{dark:"#89D185",light:"#388A34",hcDark:"#89D185",hcLight:"#374e06"},n.kg("chartsGreen","The green color used in chart visualizations.")),(0,s.x1)("charts.purple",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},n.kg("chartsPurple","The purple color used in chart visualizations.")),(0,s.x1)("input.background",{dark:"#3C3C3C",light:r.Q1.white,hcDark:r.Q1.black,hcLight:r.Q1.white},n.kg("inputBoxBackground","Input box background."))),Ne=(0,s.x1)("input.foreground",o,n.kg("inputBoxForeground","Input box foreground.")),Ie=(0,s.x1)("input.border",{dark:null,light:null,hcDark:l,hcLight:l},n.kg("inputBoxBorder","Input box border.")),Oe=(0,s.x1)("inputOption.activeBorder",{dark:"#007ACC",light:"#007ACC",hcDark:l,hcLight:l},n.kg("inputBoxActiveOptionBorder","Border color of activated options in input fields.")),De=(0,s.x1)("inputOption.hoverBackground",{dark:"#5a5d5e80",light:"#b8b8b850",hcDark:null,hcLight:null},n.kg("inputOption.hoverBackground","Background color of activated options in input fields.")),Me=(0,s.x1)("inputOption.activeBackground",{dark:(0,s.JO)(c,.4),light:(0,s.JO)(c,.2),hcDark:r.Q1.transparent,hcLight:r.Q1.transparent},n.kg("inputOption.activeBackground","Background hover color of options in input fields.")),Pe=(0,s.x1)("inputOption.activeForeground",{dark:r.Q1.white,light:r.Q1.black,hcDark:o,hcLight:o},n.kg("inputOption.activeForeground","Foreground color of activated options in input fields.")),Fe=((0,s.x1)("input.placeholderForeground",{light:(0,s.JO)(o,.5),dark:(0,s.JO)(o,.5),hcDark:(0,s.JO)(o,.7),hcLight:(0,s.JO)(o,.7)},n.kg("inputPlaceholderForeground","Input box foreground color for placeholder text.")),(0,s.x1)("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hcDark:r.Q1.black,hcLight:r.Q1.white},n.kg("inputValidationInfoBackground","Input validation background color for information severity."))),Ue=(0,s.x1)("inputValidation.infoForeground",{dark:null,light:null,hcDark:null,hcLight:o},n.kg("inputValidationInfoForeground","Input validation foreground color for information severity.")),He=(0,s.x1)("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hcDark:l,hcLight:l},n.kg("inputValidationInfoBorder","Input validation border color for information severity.")),Be=(0,s.x1)("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hcDark:r.Q1.black,hcLight:r.Q1.white},n.kg("inputValidationWarningBackground","Input validation background color for warning severity.")),We=(0,s.x1)("inputValidation.warningForeground",{dark:null,light:null,hcDark:null,hcLight:o},n.kg("inputValidationWarningForeground","Input validation foreground color for warning severity.")),Ve=(0,s.x1)("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hcDark:l,hcLight:l},n.kg("inputValidationWarningBorder","Input validation border color for warning severity.")),ze=(0,s.x1)("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hcDark:r.Q1.black,hcLight:r.Q1.white},n.kg("inputValidationErrorBackground","Input validation background color for error severity.")),Ge=(0,s.x1)("inputValidation.errorForeground",{dark:null,light:null,hcDark:null,hcLight:o},n.kg("inputValidationErrorForeground","Input validation foreground color for error severity.")),je=(0,s.x1)("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hcDark:l,hcLight:l},n.kg("inputValidationErrorBorder","Input validation border color for error severity.")),Ke=(0,s.x1)("dropdown.background",{dark:"#3C3C3C",light:r.Q1.white,hcDark:r.Q1.black,hcLight:r.Q1.white},n.kg("dropdownBackground","Dropdown background.")),Ye=(0,s.x1)("dropdown.listBackground",{dark:null,light:null,hcDark:r.Q1.black,hcLight:r.Q1.white},n.kg("dropdownListBackground","Dropdown list background.")),qe=(0,s.x1)("dropdown.foreground",{dark:"#F0F0F0",light:o,hcDark:r.Q1.white,hcLight:o},n.kg("dropdownForeground","Dropdown foreground.")),$e=(0,s.x1)("dropdown.border",{dark:Ke,light:"#CECECE",hcDark:l,hcLight:l},n.kg("dropdownBorder","Dropdown border.")),Qe=(0,s.x1)("button.foreground",r.Q1.white,n.kg("buttonForeground","Button foreground color.")),Xe=(0,s.x1)("button.separator",(0,s.JO)(Qe,.4),n.kg("buttonSeparator","Button separator color.")),Ze=(0,s.x1)("button.background",{dark:"#0E639C",light:"#007ACC",hcDark:null,hcLight:"#0F4A85"},n.kg("buttonBackground","Button background color.")),Je=(0,s.x1)("button.hoverBackground",{dark:(0,s.a)(Ze,.2),light:(0,s.e$)(Ze,.2),hcDark:Ze,hcLight:Ze},n.kg("buttonHoverBackground","Button background color when hovering.")),et=(0,s.x1)("button.border",l,n.kg("buttonBorder","Button border color.")),tt=(0,s.x1)("button.secondaryForeground",{dark:r.Q1.white,light:r.Q1.white,hcDark:r.Q1.white,hcLight:o},n.kg("buttonSecondaryForeground","Secondary button foreground color.")),it=(0,s.x1)("button.secondaryBackground",{dark:"#3A3D41",light:"#5F6A79",hcDark:null,hcLight:r.Q1.white},n.kg("buttonSecondaryBackground","Secondary button background color.")),st=(0,s.x1)("button.secondaryHoverBackground",{dark:(0,s.a)(it,.2),light:(0,s.e$)(it,.2),hcDark:null,hcLight:null},n.kg("buttonSecondaryHoverBackground","Secondary button background color when hovering.")),nt=(0,s.x1)("radio.activeForeground",Pe,n.kg("radioActiveForeground","Foreground color of active radio option.")),rt=(0,s.x1)("radio.activeBackground",Me,n.kg("radioBackground","Background color of active radio option.")),ot=(0,s.x1)("radio.activeBorder",Oe,n.kg("radioActiveBorder","Border color of the active radio option.")),at=(0,s.x1)("radio.inactiveForeground",null,n.kg("radioInactiveForeground","Foreground color of inactive radio option.")),ct=(0,s.x1)("radio.inactiveBackground",null,n.kg("radioInactiveBackground","Background color of inactive radio option.")),lt=(0,s.x1)("radio.inactiveBorder",{light:(0,s.JO)(nt,.2),dark:(0,s.JO)(nt,.2),hcDark:(0,s.JO)(nt,.4),hcLight:(0,s.JO)(nt,.2)},n.kg("radioInactiveBorder","Border color of the inactive radio option.")),ht=(0,s.x1)("radio.inactiveHoverBackground",De,n.kg("radioHoverBackground","Background color of inactive active radio option when hovering.")),dt=(0,s.x1)("checkbox.background",Ke,n.kg("checkbox.background","Background color of checkbox widget.")),ut=((0,s.x1)("checkbox.selectBackground",b,n.kg("checkbox.select.background","Background color of checkbox widget when the element it's in is selected.")),(0,s.x1)("checkbox.foreground",qe,n.kg("checkbox.foreground","Foreground color of checkbox widget."))),gt=(0,s.x1)("checkbox.border",$e,n.kg("checkbox.border","Border color of checkbox widget.")),pt=((0,s.x1)("checkbox.selectBorder",a,n.kg("checkbox.select.border","Border color of checkbox widget when the element it's in is selected.")),(0,s.x1)("keybindingLabel.background",{dark:new r.Q1(new r.bU(128,128,128,.17)),light:new r.Q1(new r.bU(221,221,221,.4)),hcDark:r.Q1.transparent,hcLight:r.Q1.transparent},n.kg("keybindingLabelBackground","Keybinding label background color. The keybinding label is used to represent a keyboard shortcut."))),mt=(0,s.x1)("keybindingLabel.foreground",{dark:r.Q1.fromHex("#CCCCCC"),light:r.Q1.fromHex("#555555"),hcDark:r.Q1.white,hcLight:o},n.kg("keybindingLabelForeground","Keybinding label foreground color. The keybinding label is used to represent a keyboard shortcut.")),ft=(0,s.x1)("keybindingLabel.border",{dark:new r.Q1(new r.bU(51,51,51,.6)),light:new r.Q1(new r.bU(204,204,204,.4)),hcDark:new r.Q1(new r.bU(111,195,223)),hcLight:l},n.kg("keybindingLabelBorder","Keybinding label border color. The keybinding label is used to represent a keyboard shortcut.")),_t=(0,s.x1)("keybindingLabel.bottomBorder",{dark:new r.Q1(new r.bU(68,68,68,.6)),light:new r.Q1(new r.bU(187,187,187,.4)),hcDark:new r.Q1(new r.bU(111,195,223)),hcLight:o},n.kg("keybindingLabelBottomBorder","Keybinding label border bottom color. The keybinding label is used to represent a keyboard shortcut.")),vt=(0,s.x1)("list.focusBackground",null,n.kg("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Ct=(0,s.x1)("list.focusForeground",null,n.kg("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Et=(0,s.x1)("list.focusOutline",{dark:c,light:c,hcDark:h,hcLight:h},n.kg("listFocusOutline","List/Tree outline color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),bt=(0,s.x1)("list.focusAndSelectionOutline",null,n.kg("listFocusAndSelectionOutline","List/Tree outline color for the focused item when the list/tree is active and selected. An active list/tree has keyboard focus, an inactive does not.")),St=(0,s.x1)("list.activeSelectionBackground",{dark:"#04395E",light:"#0060C0",hcDark:null,hcLight:r.Q1.fromHex("#0F4A85").transparent(.1)},n.kg("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),yt=(0,s.x1)("list.activeSelectionForeground",{dark:r.Q1.white,light:r.Q1.white,hcDark:null,hcLight:null},n.kg("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),wt=(0,s.x1)("list.activeSelectionIconForeground",null,n.kg("listActiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Rt=(0,s.x1)("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hcDark:null,hcLight:r.Q1.fromHex("#0F4A85").transparent(.1)},n.kg("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),Lt=(0,s.x1)("list.inactiveSelectionForeground",null,n.kg("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),Tt=(0,s.x1)("list.inactiveSelectionIconForeground",null,n.kg("listInactiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),xt=(0,s.x1)("list.inactiveFocusBackground",null,n.kg("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),kt=(0,s.x1)("list.inactiveFocusOutline",null,n.kg("listInactiveFocusOutline","List/Tree outline color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),At=(0,s.x1)("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:r.Q1.white.transparent(.1),hcLight:r.Q1.fromHex("#0F4A85").transparent(.1)},n.kg("listHoverBackground","List/Tree background when hovering over items using the mouse.")),Nt=(0,s.x1)("list.hoverForeground",null,n.kg("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),It=(0,s.x1)("list.dropBackground",{dark:"#062F4A",light:"#D6EBFF",hcDark:null,hcLight:null},n.kg("listDropBackground","List/Tree drag and drop background when moving items over other items when using the mouse.")),Ot=(0,s.x1)("list.dropBetweenBackground",{dark:a,light:a,hcDark:null,hcLight:null},n.kg("listDropBetweenBackground","List/Tree drag and drop border color when moving items between items when using the mouse.")),Dt=(0,s.x1)("list.highlightForeground",{dark:"#2AAAFF",light:"#0066BF",hcDark:c,hcLight:c},n.kg("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")),Mt=(0,s.x1)("list.focusHighlightForeground",{dark:Dt,light:(0,s.Hz)(St,Dt,"#BBE7FF"),hcDark:Dt,hcLight:Dt},n.kg("listFocusHighlightForeground","List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree.")),Pt=((0,s.x1)("list.invalidItemForeground",{dark:"#B89500",light:"#B89500",hcDark:"#B89500",hcLight:"#B5200D"},n.kg("invalidItemForeground","List/Tree foreground color for invalid items, for example an unresolved root in explorer.")),(0,s.x1)("list.errorForeground",{dark:"#F88070",light:"#B01011",hcDark:null,hcLight:null},n.kg("listErrorForeground","Foreground color of list items containing errors.")),(0,s.x1)("list.warningForeground",{dark:"#CCA700",light:"#855F00",hcDark:null,hcLight:null},n.kg("listWarningForeground","Foreground color of list items containing warnings.")),(0,s.x1)("listFilterWidget.background",{light:(0,s.e$)(b,0),dark:(0,s.a)(b,0),hcDark:b,hcLight:b},n.kg("listFilterWidgetBackground","Background color of the type filter widget in lists and trees."))),Ft=(0,s.x1)("listFilterWidget.outline",{dark:r.Q1.transparent,light:r.Q1.transparent,hcDark:"#f38518",hcLight:"#007ACC"},n.kg("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),Ut=(0,s.x1)("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hcDark:l,hcLight:l},n.kg("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),Ht=(0,s.x1)("listFilterWidget.shadow",se,n.kg("listFilterWidgetShadow","Shadow color of the type filter widget in lists and trees.")),Bt=((0,s.x1)("list.filterMatchBackground",{dark:U,light:U,hcDark:null,hcLight:null},n.kg("listFilterMatchHighlight","Background color of the filtered match.")),(0,s.x1)("list.filterMatchBorder",{dark:B,light:B,hcDark:l,hcLight:h},n.kg("listFilterMatchHighlightBorder","Border color of the filtered match.")),(0,s.x1)("list.deemphasizedForeground",{dark:"#8C8C8C",light:"#8E8E90",hcDark:"#A7A8A9",hcLight:"#666666"},n.kg("listDeemphasizedForeground","List/Tree foreground color for items that are deemphasized.")),(0,s.x1)("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hcDark:"#a9a9a9",hcLight:"#a5a5a5"},n.kg("treeIndentGuidesStroke","Tree stroke color for the indentation guides."))),Wt=(0,s.x1)("tree.inactiveIndentGuidesStroke",(0,s.JO)(Bt,.4),n.kg("treeInactiveIndentGuidesStroke","Tree stroke color for the indentation guides that are not active.")),Vt=(0,s.x1)("tree.tableColumnsBorder",{dark:"#CCCCCC20",light:"#61616120",hcDark:null,hcLight:null},n.kg("tableColumnsBorder","Table border color between columns.")),zt=(0,s.x1)("tree.tableOddRowsBackground",{dark:(0,s.JO)(o,.04),light:(0,s.JO)(o,.04),hcDark:null,hcLight:null},n.kg("tableOddRowsBackgroundColor","Background color for odd table rows.")),Gt=((0,s.x1)("editorActionList.background",b,n.kg("editorActionListBackground","Action List background color.")),(0,s.x1)("editorActionList.foreground",S,n.kg("editorActionListForeground","Action List foreground color.")),(0,s.x1)("editorActionList.focusForeground",yt,n.kg("editorActionListFocusForeground","Action List foreground color for the focused item.")),(0,s.x1)("editorActionList.focusBackground",St,n.kg("editorActionListFocusBackground","Action List background color for the focused item.")),(0,s.x1)("menu.border",{dark:null,light:null,hcDark:l,hcLight:l},n.kg("menuBorder","Border color of menus."))),jt=(0,s.x1)("menu.foreground",qe,n.kg("menuForeground","Foreground color of menu items.")),Kt=(0,s.x1)("menu.background",Ke,n.kg("menuBackground","Background color of menu items.")),Yt=(0,s.x1)("menu.selectionForeground",yt,n.kg("menuSelectionForeground","Foreground color of the selected menu item in menus.")),qt=(0,s.x1)("menu.selectionBackground",St,n.kg("menuSelectionBackground","Background color of the selected menu item in menus.")),$t=(0,s.x1)("menu.selectionBorder",{dark:null,light:null,hcDark:h,hcLight:h},n.kg("menuSelectionBorder","Border color of the selected menu item in menus.")),Qt=(0,s.x1)("menu.separatorBackground",{dark:"#606060",light:"#D4D4D4",hcDark:l,hcLight:l},n.kg("menuSeparatorBackground","Color of a separator menu item in menus.")),Xt=(0,s.x1)("quickInput.background",b,n.kg("pickerBackground","Quick picker background color. The quick picker widget is the container for pickers like the command palette.")),Zt=(0,s.x1)("quickInput.foreground",S,n.kg("pickerForeground","Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")),Jt=(0,s.x1)("quickInputTitle.background",{dark:new r.Q1(new r.bU(255,255,255,.105)),light:new r.Q1(new r.bU(0,0,0,.06)),hcDark:"#000000",hcLight:r.Q1.white},n.kg("pickerTitleBackground","Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")),ei=(0,s.x1)("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hcDark:r.Q1.white,hcLight:"#0F4A85"},n.kg("pickerGroupForeground","Quick picker color for grouping labels.")),ti=(0,s.x1)("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hcDark:r.Q1.white,hcLight:"#0F4A85"},n.kg("pickerGroupBorder","Quick picker color for grouping borders.")),ii=(0,s.x1)("quickInput.list.focusBackground",null,"",void 0,n.kg("quickInput.list.focusBackground deprecation","Please use quickInputList.focusBackground instead")),si=(0,s.x1)("quickInputList.focusForeground",yt,n.kg("quickInput.listFocusForeground","Quick picker foreground color for the focused item.")),ni=(0,s.x1)("quickInputList.focusIconForeground",wt,n.kg("quickInput.listFocusIconForeground","Quick picker icon foreground color for the focused item.")),ri=(0,s.x1)("quickInputList.focusBackground",{dark:(0,s.yL)(ii,St),light:(0,s.yL)(ii,St),hcDark:null,hcLight:null},n.kg("quickInput.listFocusBackground","Quick picker background color for the focused item."));(0,s.x1)("search.resultsInfoForeground",{light:o,dark:(0,s.JO)(o,.65),hcDark:o,hcLight:o},n.kg("search.resultsInfoForeground","Color of the text in the search viewlet's completion message.")),(0,s.x1)("searchEditor.findMatchBackground",{light:(0,s.JO)(U,.66),dark:(0,s.JO)(U,.66),hcDark:U,hcLight:U},n.kg("searchEditor.queryMatch","Color of the Search Editor query matches.")),(0,s.x1)("searchEditor.findMatchBorder",{light:(0,s.JO)(B,.66),dark:(0,s.JO)(B,.66),hcDark:B,hcLight:B},n.kg("searchEditor.editorFindMatchBorder","Border color of the Search Editor query matches."))},83844:(e,t,i)=>{"use strict";i.d(t,{Bb:()=>h,Fd:()=>g,Gu:()=>d,HP:()=>u,Hz:()=>E,JO:()=>v,a:()=>_,e$:()=>f,oG:()=>b,x1:()=>m,yL:()=>C});var s=i(66782),n=i(90766),r=i(47661),o=i(41234),a=i(78748),c=i(46359),l=i(78209);function h(e){return`--vscode-${e.replace(/\./g,"-")}`}function d(e){return`var(${h(e)})`}function u(e,t){return`var(${h(e)}, ${t})`}const g={ColorContribution:"base.contributions.colors"};const p=new class{constructor(){this._onDidChangeSchema=new o.vl,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}registerColor(e,t,i,s=!1,n){const r={id:e,description:i,defaults:t,needsTransparency:s,deprecationMessage:n};this.colorsById[e]=r;const o={type:"string",format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return n&&(o.deprecationMessage=n),s&&(o.pattern="^#(?:(?<rgba>[0-9a-fA-f]{3}[0-9a-eA-E])|(?:[0-9a-fA-F]{6}(?:(?![fF]{2})(?:[0-9a-fA-F]{2}))))?$",o.patternErrorMessage=l.kg("transparecyRequired","This color must be transparent or it will obscure content")),this.colorSchema.properties[e]={description:i,oneOf:[o,{type:"string",const:"default",description:l.kg("useDefault","Use the default color.")}]},this.colorReferenceSchema.enum.push(e),this.colorReferenceSchema.enumDescriptions.push(i),this._onDidChangeSchema.fire(),e}getColors(){return Object.keys(this.colorsById).map((e=>this.colorsById[e]))}resolveDefaultColor(e,t){const i=this.colorsById[e];if(i?.defaults){return S(null!==(s=i.defaults)&&"object"===typeof s&&"light"in s&&"dark"in s?i.defaults[t.type]:i.defaults,t)}var s}getColorSchema(){return this.colorSchema}toString(){return Object.keys(this.colorsById).sort(((e,t)=>{const i=-1===e.indexOf(".")?0:1,s=-1===t.indexOf(".")?0:1;return i!==s?i-s:e.localeCompare(t)})).map((e=>`- \`${e}\`: ${this.colorsById[e].description}`)).join("\n")}};function m(e,t,i,s,n){return p.registerColor(e,t,i,s,n)}function f(e,t){return{op:0,value:e,factor:t}}function _(e,t){return{op:1,value:e,factor:t}}function v(e,t){return{op:2,value:e,factor:t}}function C(...e){return{op:4,values:e}}function E(e,t,i){return{op:6,if:e,then:t,else:i}}function b(e,t,i,s){return{op:5,value:e,background:t,factor:i,transparency:s}}function S(e,t){if(null!==e)return"string"===typeof e?"#"===e[0]?r.Q1.fromHex(e):t.getColor(e):e instanceof r.Q1?e:"object"===typeof e?function(e,t){switch(e.op){case 0:return S(e.value,t)?.darken(e.factor);case 1:return S(e.value,t)?.lighten(e.factor);case 2:return S(e.value,t)?.transparent(e.factor);case 3:{const i=S(e.background,t);return i?S(e.value,t)?.makeOpaque(i):S(e.value,t)}case 4:for(const i of e.values){const e=S(i,t);if(e)return e}return;case 6:return S(t.defines(e.if)?e.then:e.else,t);case 5:{const i=S(e.value,t);if(!i)return;const s=S(e.background,t);return s?i.isDarkerThan(s)?r.Q1.getLighterColor(i,s,e.factor).transparent(e.transparency):r.Q1.getDarkerColor(i,s,e.factor).transparent(e.transparency):i.transparent(e.factor*e.transparency)}default:throw(0,s.xb)(e)}}(e,t):void 0}c.O.add(g.ColorContribution,p);const y="vscode://schemas/workbench-colors",w=c.O.as(a.F.JSONContribution);w.registerSchema(y,p.getColorSchema());const R=new n.uC((()=>w.notifySchemaChanged(y)),200);p.onDidChangeSchema((()=>{R.isScheduled()||R.schedule()}))},61394:(e,t,i)=>{"use strict";i.d(t,{$_:()=>b,HT:()=>_,pU:()=>f});var s=i(90766),n=i(10350),r=i(18956),o=i(25689),a=i(41234),c=i(631),l=i(79400),h=i(78209),d=i(78748),u=i(46359);var g,p;!function(e){e.getDefinition=function(e,t){let i=e.defaults;for(;o.L.isThemeIcon(i);){const e=m.getIcon(i.id);if(!e)return;i=e.defaults}return i}}(g||(g={})),function(e){e.toJSONObject=function(e){return{weight:e.weight,style:e.style,src:e.src.map((e=>({format:e.format,location:e.location.toString()})))}},e.fromJSONObject=function(e){const t=e=>(0,c.Kg)(e)?e:void 0;if(e&&Array.isArray(e.src)&&e.src.every((e=>(0,c.Kg)(e.format)&&(0,c.Kg)(e.location))))return{weight:t(e.weight),style:t(e.style),src:e.src.map((e=>({format:e.format,location:l.r.parse(e.location)})))}}}(p||(p={}));const m=new class{constructor(){this._onDidChange=new a.vl,this.onDidChange=this._onDidChange.event,this.iconSchema={definitions:{icons:{type:"object",properties:{fontId:{type:"string",description:(0,h.kg)("iconDefinition.fontId","The id of the font to use. If not set, the font that is defined first is used.")},fontCharacter:{type:"string",description:(0,h.kg)("iconDefinition.fontCharacter","The font character associated with the icon definition.")}},additionalProperties:!1,defaultSnippets:[{body:{fontCharacter:"\\\\e030"}}]}},type:"object",properties:{}},this.iconReferenceSchema={type:"string",pattern:`^${o.L.iconNameExpression}$`,enum:[],enumDescriptions:[]},this.iconsById={},this.iconFontsById={}}registerIcon(e,t,i,s){const n=this.iconsById[e];if(n){if(i&&!n.description){n.description=i,this.iconSchema.properties[e].markdownDescription=`${i} $(${e})`;const t=this.iconReferenceSchema.enum.indexOf(e);-1!==t&&(this.iconReferenceSchema.enumDescriptions[t]=i),this._onDidChange.fire()}return n}const r={id:e,description:i,defaults:t,deprecationMessage:s};this.iconsById[e]=r;const o={$ref:"#/definitions/icons"};return s&&(o.deprecationMessage=s),i&&(o.markdownDescription=`${i}: $(${e})`),this.iconSchema.properties[e]=o,this.iconReferenceSchema.enum.push(e),this.iconReferenceSchema.enumDescriptions.push(i||""),this._onDidChange.fire(),{id:e}}getIcons(){return Object.keys(this.iconsById).map((e=>this.iconsById[e]))}getIcon(e){return this.iconsById[e]}getIconSchema(){return this.iconSchema}toString(){const e=(e,t)=>e.id.localeCompare(t.id),t=e=>{for(;o.L.isThemeIcon(e.defaults);)e=this.iconsById[e.defaults.id];return`codicon codicon-${e?e.id:""}`},i=[];i.push("| preview | identifier | default codicon ID | description"),i.push("| ----------- | --------------------------------- | --------------------------------- | --------------------------------- |");const s=Object.keys(this.iconsById).map((e=>this.iconsById[e]));for(const n of s.filter((e=>!!e.description)).sort(e))i.push(`|<i class="${t(n)}"></i>|${n.id}|${o.L.isThemeIcon(n.defaults)?n.defaults.id:n.id}|${n.description||""}|`);i.push("| preview | identifier "),i.push("| ----------- | --------------------------------- |");for(const n of s.filter((e=>!o.L.isThemeIcon(e.defaults))).sort(e))i.push(`|<i class="${t(n)}"></i>|${n.id}|`);return i.join("\n")}};function f(e,t,i,s){return m.registerIcon(e,t,i,s)}function _(){return m}u.O.add("base.contributions.icons",m),function(){const e=(0,r.J)();for(const t in e){const i="\\"+e[t].toString(16);m.registerIcon(t,{fontCharacter:i})}}();const v="vscode://schemas/icons",C=u.O.as(d.F.JSONContribution);C.registerSchema(v,m.getIconSchema());const E=new s.uC((()=>C.notifySchemaChanged(v)),200);m.onDidChange((()=>{E.isScheduled()||E.schedule()}));const b=f("widget-close",n.W.close,(0,h.kg)("widgetClose","Icon for the close action in widgets."));f("goto-previous-location",n.W.arrowUp,(0,h.kg)("previousChangeIcon","Icon for goto previous editor location.")),f("goto-next-location",n.W.arrowDown,(0,h.kg)("nextChangeIcon","Icon for goto next editor location.")),o.L.modify(n.W.sync,"spin"),o.L.modify(n.W.loading,"spin")},86723:(e,t,i)=>{"use strict";var s;function n(e){return e===s.HIGH_CONTRAST_DARK||e===s.HIGH_CONTRAST_LIGHT}function r(e){return e===s.DARK||e===s.HIGH_CONTRAST_DARK}i.d(t,{Bb:()=>n,HD:()=>r,zM:()=>s}),function(e){e.DARK="dark",e.LIGHT="light",e.HIGH_CONTRAST_DARK="hcDark",e.HIGH_CONTRAST_LIGHT="hcLight"}(s||(s={}))},47612:(e,t,i)=>{"use strict";i.d(t,{Fd:()=>d,Gy:()=>c,Pz:()=>h,Yf:()=>l,lR:()=>p,zy:()=>g});var s=i(41234),n=i(5662),r=i(63591),o=i(46359),a=i(86723);const c=(0,r.u1)("themeService");function l(e){return{id:e}}function h(e){switch(e){case a.zM.DARK:return"vs-dark";case a.zM.HIGH_CONTRAST_DARK:return"hc-black";case a.zM.HIGH_CONTRAST_LIGHT:return"hc-light";default:return"vs"}}const d={ThemingContribution:"base.contributions.theming"};const u=new class{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new s.vl}onColorThemeChange(e){return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),(0,n.s)((()=>{const t=this.themingParticipants.indexOf(e);this.themingParticipants.splice(t,1)}))}getThemingParticipants(){return this.themingParticipants}};function g(e){return u.onColorThemeChange(e)}o.O.add(d.ThemingContribution,u);class p extends n.jG{constructor(e){super(),this.themeService=e,this.theme=e.getColorTheme(),this._register(this.themeService.onDidColorThemeChange((e=>this.onThemeChange(e))))}onThemeChange(e){this.theme=e,this.updateStyles()}updateStyles(){}}},47579:(e,t,i)=>{"use strict";i.d(t,{$D:()=>s,I_:()=>r,To:()=>n,Ym:()=>o});const s=(0,i(63591).u1)("undoRedoService");class n{constructor(e,t){this.resource=e,this.elements=t}}class r{static{this._ID=0}constructor(){this.id=r._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}static{this.None=new r}}class o{static{this._ID=0}constructor(){this.id=o._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}static{this.None=new o}}},37227:(e,t,i)=>{"use strict";i.d(t,{A7:()=>c,Q_:()=>d,VR:()=>o,cn:()=>p,ct:()=>m,jB:()=>a,kF:()=>g,mX:()=>u});var s=i(78209),n=i(74027),r=(i(4853),i(79400));const o=(0,i(63591).u1)("contextService");function a(e){const t=e;return"string"===typeof t?.id&&r.r.isUri(t.uri)}function c(e){const t=e;return"string"===typeof t?.id&&!a(e)&&!function(e){const t=e;return"string"===typeof t?.id&&r.r.isUri(t.configPath)}(e)}const l={id:"ext-dev"},h={id:"empty-window"};function d(e,t){if("string"===typeof e||"undefined"===typeof e)return"string"===typeof e?{id:(0,n.P8)(e)}:t?l:h;const i=e;return i.configuration?{id:i.id,configPath:i.configuration}:1===i.folders.length?{id:i.id,uri:i.folders[0].uri}:{id:i.id}}class u{constructor(e,t){this.raw=t,this.uri=e.uri,this.index=e.index,this.name=e.name}toJSON(){return{uri:this.uri,name:this.name,index:this.index}}}const g="code-workspace",p=((0,s.kg)("codeWorkspace","Code Workspace"),"4064f6ec-cb38-4ad0-af64-ee6467e63c82");function m(e){return e.id===p}},51465:(e,t,i)=>{"use strict";i.d(t,{L:()=>s});const s=(0,i(63591).u1)("workspaceTrustManagementService")},61850:(e,t,i)=>{"use strict";i.d(t,{IK:()=>h,bC:()=>u,RQ:()=>d,KV:()=>c});const s=new RegExp("^[$A-Z_\\s]+$");var n=i(92727);const r={},o={};class a{static getOrCreate(e){return o[e]||(o[e]=new a(e)),o[e]}constructor(e){this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise(((e,t)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=t}))}whenLoaded(){return this._lazyLoadPromise}load(){return this._loadingTriggered||(this._loadingTriggered=!0,r[this._languageId].loader().then((e=>this._lazyLoadPromiseResolve(e)),(e=>this._lazyLoadPromiseReject(e)))),this._lazyLoadPromise}}function c(e){const t=e.id;r[t]=e,n.eo.register(e);const i=a.getOrCreate(t);n.eo.setMonarchTokensProvider(t,i.whenLoaded().then((e=>e.language))),n.eo.onLanguage(t,(()=>{i.load().then((e=>{n.eo.setLanguageConfiguration(t,e.conf)}))})),i.whenLoaded().then((e=>{e.completions&&l(t,e.completions)}))}function l(e,t){const i=[];const r=n.eo[e];r&&!r.modeConfiguration.completionItems||i.push(n.eo.registerCompletionItemProvider(e,function(e,t){const i=[];for(const n in t)if(!isNaN(Number(n))){const r=`${t[n].toLowerCase()}List`;if(r in e)for(const t of e[r])i.push({label:t,filterText:s.test(t)?t.toLowerCase():t,insertText:t,kind:Number(n),range:{startLineNumber:1,startColumn:1,endLineNumber:1,endColumn:1}})}return i.sort(((e,t)=>e.filterText.localeCompare(t.filterText))),{provideCompletionItems(e,t,s,n){const r=e.getWordUntilPosition(t),o={startLineNumber:t.lineNumber,startColumn:r.startColumn,endLineNumber:t.lineNumber,endColumn:r.endColumn};return{suggestions:i.map((e=>Object.assign(Object.assign({},e),{range:o})))}}}}(t,n.eo.CompletionItemKind))),r&&i.push(r.onDidChange((()=>{!function(){for(var e;i.length>0;)null===(e=i.pop())||void 0===e||e.dispose()}(),l(e,t)})))}class h{constructor(e,t,i){this._onDidChange=new n.vl,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}}const d={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},u={validate:!0}},92727:(e,t,i)=>{"use strict";i.d(t,{EN:()=>s.editor,eo:()=>s.languages,vl:()=>s.Emitter});var s=i(80781)},23934:(e,t,i)=>{"use strict";var s=i(61850),n=i(92727);const r="clickhouse";(0,s.KV)({id:r,extensions:[],loader:()=>i.e(6397).then(i.bind(i,66397)).then((e=>({conf:e.conf,language:e.language,completions:e.completionLists})))});const o=new s.IK(r,s.bC,s.RQ);n.eo[r]=o;(0,s.KV)({id:"s-expression",extensions:[],loader:()=>i.e(5475).then(i.bind(i,5475))}),n.EN.defineTheme("vs",{base:"vs",inherit:!0,rules:[{token:"string.tablepath",foreground:"338186"},{token:"constant.yql",foreground:"608b4e"},{token:"keyword.type",foreground:"4d932d"},{token:"string.sql",foreground:"a31515"},{token:"support.function",foreground:"7a3e9d"},{token:"constant.other.color",foreground:"7a3e9d"},{token:"comment",foreground:"969896"}],colors:{"editor.lineHighlightBackground":"#EFEFEF"}}),n.EN.defineTheme("vs-dark",{base:"vs-dark",inherit:!0,rules:[{token:"string.tablepath",foreground:"338186"},{token:"constant.yql",foreground:"608b4e"},{token:"storage.type",foreground:"6A8759"},{token:"string.sql",foreground:"ce9178"},{token:"support.function",foreground:"9e7bb0"},{token:"constant.other.color",foreground:"9e7bb0"},{token:"comment",foreground:"969896"}],colors:{"editor.lineHighlightBackground":"#282A2E"}});i(23195);(0,s.KV)({id:"yql_ansi",extensions:[],loader:()=>i.e(9507).then(i.bind(i,19507)).then((e=>({conf:e.conf,language:e.getLanguage({ansi:!0})})))});i(43733)},23195:(e,t,i)=>{"use strict";i.d(t,{l:()=>n});var s=i(61850);const n="yql";(0,s.KV)({id:n,extensions:[],loader:()=>i.e(9507).then(i.bind(i,19507)).then((e=>({conf:e.conf,language:e.getLanguage()})))})},6376:(e,t,i)=>{"use strict";i.r(t),i.d(t,{MonacoDiffEditor:()=>l,default:()=>g,monaco:()=>s});var s=i(80781),n=i(59284);function r(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}function o(){}var a=function(){return a=Object.assign||function(e){for(var t,i=1,s=arguments.length;i<s;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},a.apply(this,arguments)};function c(e){var t=e.width,i=e.height,o=e.value,c=e.defaultValue,l=e.language,h=e.theme,d=e.options,u=e.overrideServices,g=e.editorWillMount,p=e.editorDidMount,m=e.editorWillUnmount,f=e.onChange,_=e.className,v=e.original,C=e.originalUri,E=e.modifiedUri,b=(0,n.useRef)(null),S=(0,n.useRef)(null),y=(0,n.useRef)(null),w=(0,n.useRef)(null),R=r(t),L=r(i),T=(0,n.useMemo)((function(){return{width:R,height:L}}),[R,L]);return(0,n.useEffect)((function(){b.current&&(g(s),S.current=s.editor.createDiffEditor(b.current,a(a(a({},_?{extraEditorClassName:_}:{}),d),h?{theme:h}:{}),u),function(){var e=null!=o?o:c,t=null===C||void 0===C?void 0:C(s),i=null===E||void 0===E?void 0:E(s),n=t&&s.editor.getModel(t),r=i&&s.editor.getModel(i);n?(n.setValue(v),s.editor.setModelLanguage(n,l)):n=s.editor.createModel(e,l,t),r?(n.setValue(e),s.editor.setModelLanguage(r,l)):r=s.editor.createModel(e,l,i),S.current.setModel({original:n,modified:r})}(),function(){p(S.current,s);var e=S.current.getModel().modified;y.current=e.onDidChangeContent((function(t){w.current||f(e.getValue(),t)}))}())}),[]),(0,n.useEffect)((function(){S.current&&S.current.updateOptions(a(a({},_?{extraEditorClassName:_}:{}),d))}),[_,d]),(0,n.useEffect)((function(){S.current&&S.current.layout()}),[t,i]),(0,n.useEffect)((function(){if(S.current){var e=S.current.getModel(),t=e.original,i=e.modified;s.editor.setModelLanguage(t,l),s.editor.setModelLanguage(i,l)}}),[l]),(0,n.useEffect)((function(){if(S.current){var e=S.current.getModel().modified;w.current=!0,S.current.getModifiedEditor().pushUndoStop(),e.pushEditOperations([],[{range:e.getFullModelRange(),text:o}]),S.current.getModifiedEditor().pushUndoStop(),w.current=!1}}),[o]),(0,n.useEffect)((function(){s.editor.setTheme(h)}),[h]),(0,n.useEffect)((function(){if(S.current){var e=S.current.getModel().original;v!==e.getValue()&&e.setValue(v)}}),[v]),(0,n.useEffect)((function(){return function(){if(S.current){m(S.current,s),S.current.dispose();var e=S.current.getModel(),t=e.original,i=e.modified;t&&t.dispose(),i&&i.dispose()}y.current&&y.current.dispose()}}),[]),n.createElement("div",{ref:b,style:T,className:"react-monaco-editor-container"})}c.defaultProps={width:"100%",height:"100%",original:null,value:null,defaultValue:"",language:"javascript",theme:null,options:{},overrideServices:{},editorWillMount:o,editorDidMount:o,editorWillUnmount:o,onChange:o,className:null},c.displayName="MonacoDiffEditor";const l=c;var h=function(){return h=Object.assign||function(e){for(var t,i=1,s=arguments.length;i<s;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},h.apply(this,arguments)},d=function(e,t){var i={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(i[s]=e[s]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var n=0;for(s=Object.getOwnPropertySymbols(e);n<s.length;n++)t.indexOf(s[n])<0&&Object.prototype.propertyIsEnumerable.call(e,s[n])&&(i[s[n]]=e[s[n]])}return i};function u(e){var t=e.width,i=e.height,o=e.value,a=e.defaultValue,c=e.language,l=e.theme,u=e.options,g=e.overrideServices,p=e.editorWillMount,m=e.editorDidMount,f=e.editorWillUnmount,_=e.onChange,v=e.className,C=e.uri,E=(0,n.useRef)(null),b=(0,n.useRef)(null),S=(0,n.useRef)(null),y=(0,n.useRef)(null),w=r(t),R=r(i),L=(0,n.useRef)(_);L.current=_;var T=(0,n.useMemo)((function(){return{width:w,height:R}}),[w,R]);return(0,n.useEffect)((function(){var e=null!==o?o:a;if(E.current){var t=h(h({},u),p(s)||{}),i=null===C||void 0===C?void 0:C(s),n=i&&s.editor.getModel(i);n?(n.setValue(e),s.editor.setModelLanguage(n,c)):n=s.editor.createModel(e,c,i),b.current=s.editor.create(E.current,h(h(h({model:n},v?{extraEditorClassName:v}:{}),t),l?{theme:l}:{}),g),m(b.current,s),S.current=b.current.onDidChangeModelContent((function(e){var t;y.current||null===(t=L.current)||void 0===t||t.call(L,b.current.getValue(),e)}))}}),[]),(0,n.useEffect)((function(){if(b.current){if(o===b.current.getValue())return;var e=b.current.getModel();y.current=!0,b.current.pushUndoStop(),e.pushEditOperations([],[{range:e.getFullModelRange(),text:o}],void 0),b.current.pushUndoStop(),y.current=!1}}),[o]),(0,n.useEffect)((function(){if(b.current){var e=b.current.getModel();s.editor.setModelLanguage(e,c)}}),[c]),(0,n.useEffect)((function(){if(b.current){u.model;var e=d(u,["model"]);b.current.updateOptions(h(h({},v?{extraEditorClassName:v}:{}),e))}}),[v,u]),(0,n.useEffect)((function(){b.current&&b.current.layout()}),[t,i]),(0,n.useEffect)((function(){s.editor.setTheme(l)}),[l]),(0,n.useEffect)((function(){return function(){b.current&&(f(b.current,s),b.current.dispose()),S.current&&S.current.dispose()}}),[]),n.createElement("div",{ref:E,style:T,className:"react-monaco-editor-container"})}u.defaultProps={width:"100%",height:"100%",value:null,defaultValue:"",language:"javascript",theme:null,options:{},overrideServices:{},editorWillMount:o,editorDidMount:o,editorWillUnmount:o,onChange:o,className:null},u.displayName="MonacoEditor";const g=u},61283:(e,t,i)=>{"use strict";i.d(t,{A:()=>x});var s=i(59284),n=i(13260),r=i.n(n),o="undefined"!==typeof window?window:null,a=null===o,c=a?void 0:o.document,l="addEventListener",h="removeEventListener",d="getBoundingClientRect",u="_a",g="_b",p="_c",m="horizontal",f=function(){return!1},_=a?"calc":["","-webkit-","-moz-","-o-"].filter((function(e){var t=c.createElement("div");return t.style.cssText="width:"+e+"calc(9px)",!!t.style.length})).shift()+"calc",v=function(e){return"string"===typeof e||e instanceof String},C=function(e){if(v(e)){var t=c.querySelector(e);if(!t)throw new Error("Selector "+e+" did not match a DOM element");return t}return e},E=function(e,t,i){var s=e[t];return void 0!==s?s:i},b=function(e,t,i,s){if(t){if("end"===s)return 0;if("center"===s)return e/2}else if(i){if("start"===s)return 0;if("center"===s)return e/2}return e},S=function(e,t){var i=c.createElement("div");return i.className="gutter gutter-"+t,i},y=function(e,t,i){var s={};return v(t)?s[e]=t:s[e]=_+"("+t+"% - "+i+"px)",s},w=function(e,t){var i;return(i={})[e]=t+"px",i};const R=function(e,t){if(void 0===t&&(t={}),a)return{};var i,s,n,r,_,v,R=e;Array.from&&(R=Array.from(R));var L=C(R[0]).parentNode,T=getComputedStyle?getComputedStyle(L):null,x=T?T.flexDirection:null,k=E(t,"sizes")||R.map((function(){return 100/R.length})),A=E(t,"minSize",100),N=Array.isArray(A)?A:R.map((function(){return A})),I=E(t,"maxSize",1/0),O=Array.isArray(I)?I:R.map((function(){return I})),D=E(t,"expandToMin",!1),M=E(t,"gutterSize",10),P=E(t,"gutterAlign","center"),F=E(t,"snapOffset",30),U=Array.isArray(F)?F:R.map((function(){return F})),H=E(t,"dragInterval",1),B=E(t,"direction",m),W=E(t,"cursor",B===m?"col-resize":"row-resize"),V=E(t,"gutter",S),z=E(t,"elementStyle",y),G=E(t,"gutterStyle",w);function j(e,t,s,n){var r=z(i,t,s,n);Object.keys(r).forEach((function(t){e.style[t]=r[t]}))}function K(){return v.map((function(e){return e.size}))}function Y(e){return"touches"in e?e.touches[0][s]:e[s]}function q(e){var t=v[this.a],i=v[this.b],s=t.size+i.size;t.size=e/this.size*s,i.size=s-e/this.size*s,j(t.element,t.size,this[g],t.i),j(i.element,i.size,this[p],i.i)}function $(e){var i,s=v[this.a],n=v[this.b];this.dragging&&(i=Y(e)-this.start+(this[g]-this.dragOffset),H>1&&(i=Math.round(i/H)*H),i<=s.minSize+s.snapOffset+this[g]?i=s.minSize+this[g]:i>=this.size-(n.minSize+n.snapOffset+this[p])&&(i=this.size-(n.minSize+this[p])),i>=s.maxSize-s.snapOffset+this[g]?i=s.maxSize+this[g]:i<=this.size-(n.maxSize-n.snapOffset+this[p])&&(i=this.size-(n.maxSize+this[p])),q.call(this,i),E(t,"onDrag",f)(K()))}function Q(){var e=v[this.a].element,t=v[this.b].element,s=e[d](),o=t[d]();this.size=s[i]+o[i]+this[g]+this[p],this.start=s[n],this.end=s[r]}function X(e){var t=function(e){if(!getComputedStyle)return null;var t=getComputedStyle(e);if(!t)return null;var i=e[_];return 0===i?null:i-=B===m?parseFloat(t.paddingLeft)+parseFloat(t.paddingRight):parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)}(L);if(null===t)return e;if(N.reduce((function(e,t){return e+t}),0)>t)return e;var i=0,s=[],n=e.map((function(n,r){var o=t*n/100,a=b(M,0===r,r===e.length-1,P),c=N[r]+a;return o<c?(i+=c-o,s.push(0),c):(s.push(o-c),o)}));return 0===i?e:n.map((function(e,n){var r=e;if(i>0&&s[n]-i>0){var o=Math.min(i,s[n]-i);i-=o,r=e-o}return r/t*100}))}function Z(){var e=this,i=v[e.a].element,s=v[e.b].element;e.dragging&&E(t,"onDragEnd",f)(K()),e.dragging=!1,o[h]("mouseup",e.stop),o[h]("touchend",e.stop),o[h]("touchcancel",e.stop),o[h]("mousemove",e.move),o[h]("touchmove",e.move),e.stop=null,e.move=null,i[h]("selectstart",f),i[h]("dragstart",f),s[h]("selectstart",f),s[h]("dragstart",f),i.style.userSelect="",i.style.webkitUserSelect="",i.style.MozUserSelect="",i.style.pointerEvents="",s.style.userSelect="",s.style.webkitUserSelect="",s.style.MozUserSelect="",s.style.pointerEvents="",e.gutter.style.cursor="",e.parent.style.cursor="",c.body.style.cursor=""}function J(e){if(!("button"in e)||0===e.button){var i=this,s=v[i.a].element,n=v[i.b].element;i.dragging||E(t,"onDragStart",f)(K()),e.preventDefault(),i.dragging=!0,i.move=$.bind(i),i.stop=Z.bind(i),o[l]("mouseup",i.stop),o[l]("touchend",i.stop),o[l]("touchcancel",i.stop),o[l]("mousemove",i.move),o[l]("touchmove",i.move),s[l]("selectstart",f),s[l]("dragstart",f),n[l]("selectstart",f),n[l]("dragstart",f),s.style.userSelect="none",s.style.webkitUserSelect="none",s.style.MozUserSelect="none",s.style.pointerEvents="none",n.style.userSelect="none",n.style.webkitUserSelect="none",n.style.MozUserSelect="none",n.style.pointerEvents="none",i.gutter.style.cursor=W,i.parent.style.cursor=W,c.body.style.cursor=W,Q.call(i),i.dragOffset=Y(e)-i.end}}B===m?(i="width",s="clientX",n="left",r="right",_="clientWidth"):"vertical"===B&&(i="height",s="clientY",n="top",r="bottom",_="clientHeight"),k=X(k);var ee=[];function te(e){var t=e.i===ee.length,i=t?ee[e.i-1]:ee[e.i];Q.call(i);var s=t?i.size-e.minSize-i[p]:e.minSize+i[g];q.call(i,s)}return(v=R.map((function(e,t){var s,n={element:C(e),size:k[t],minSize:N[t],maxSize:O[t],snapOffset:U[t],i:t};if(t>0&&((s={a:t-1,b:t,dragging:!1,direction:B,parent:L})[g]=b(M,t-1===0,!1,P),s[p]=b(M,!1,t===R.length-1,P),"row-reverse"===x||"column-reverse"===x)){var r=s.a;s.a=s.b,s.b=r}if(t>0){var o=V(t,B,n.element);!function(e,t,s){var n=G(i,t,s);Object.keys(n).forEach((function(t){e.style[t]=n[t]}))}(o,M,t),s[u]=J.bind(s),o[l]("mousedown",s[u]),o[l]("touchstart",s[u]),L.insertBefore(o,n.element),s.gutter=o}return j(n.element,n.size,b(M,0===t,t===R.length-1,P),t),t>0&&ee.push(s),n}))).forEach((function(e){var t=e.element[d]()[i];t<e.minSize&&(D?te(e):e.minSize=t)})),{setSizes:function(e){var t=X(e);t.forEach((function(e,i){if(i>0){var s=ee[i-1],n=v[s.a],r=v[s.b];n.size=t[i-1],r.size=e,j(n.element,n.size,s[g],n.i),j(r.element,r.size,s[p],r.i)}}))},getSizes:K,collapse:function(e){te(v[e])},destroy:function(e,t){ee.forEach((function(s){if(!0!==t?s.parent.removeChild(s.gutter):(s.gutter[h]("mousedown",s[u]),s.gutter[h]("touchstart",s[u])),!0!==e){var n=z(i,s.a.size,s[g]);Object.keys(n).forEach((function(e){v[s.a].element.style[e]="",v[s.b].element.style[e]=""}))}}))},parent:L,pairs:ee}};function L(e,t){var i={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&-1===t.indexOf(s)&&(i[s]=e[s]);return i}var T=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.componentDidMount=function(){var e=this.props;e.children;var t=e.gutter,i=L(e,["children","gutter"]);i.gutter=function(e,i){var s;return t?s=t(e,i):(s=document.createElement("div")).className="gutter gutter-"+i,s.__isSplitGutter=!0,s},this.split=R(this.parent.children,i)},t.prototype.componentDidUpdate=function(e){var t=this,i=this.props;i.children;var s=i.minSize,n=i.sizes,r=i.collapsed,o=L(i,["children","minSize","sizes","collapsed"]),a=e.minSize,c=e.sizes,l=e.collapsed,h=["maxSize","expandToMin","gutterSize","gutterAlign","snapOffset","dragInterval","direction","cursor"].map((function(i){return t.props[i]!==e[i]})).reduce((function(e,t){return e||t}),!1);if(Array.isArray(s)&&Array.isArray(a)){var d=!1;s.forEach((function(e,t){d=d||e!==a[t]})),h=h||d}else h=!(!Array.isArray(s)&&!Array.isArray(a))||(h||s!==a);if(h)o.minSize=s,o.sizes=n||this.split.getSizes(),this.split.destroy(!0,!0),o.gutter=function(e,t,i){return i.previousSibling},this.split=R(Array.from(this.parent.children).filter((function(e){return!e.__isSplitGutter})),o);else if(n){var u=!1;n.forEach((function(e,t){u=u||e!==c[t]})),u&&this.split.setSizes(this.props.sizes)}Number.isInteger(r)&&(r!==l||h)&&this.split.collapse(r)},t.prototype.componentWillUnmount=function(){this.split.destroy(),delete this.split},t.prototype.render=function(){var e=this,t=this.props;t.sizes,t.minSize,t.maxSize,t.expandToMin,t.gutterSize,t.gutterAlign,t.snapOffset,t.dragInterval,t.direction,t.cursor,t.gutter,t.elementStyle,t.gutterStyle,t.onDrag,t.onDragStart,t.onDragEnd,t.collapsed;var i=t.children,n=L(t,["sizes","minSize","maxSize","expandToMin","gutterSize","gutterAlign","snapOffset","dragInterval","direction","cursor","gutter","elementStyle","gutterStyle","onDrag","onDragStart","onDragEnd","collapsed","children"]);return s.createElement("div",Object.assign({},{ref:function(t){e.parent=t}},n),i)},t}(s.Component);T.propTypes={sizes:r().arrayOf(r().number),minSize:r().oneOfType([r().number,r().arrayOf(r().number)]),maxSize:r().oneOfType([r().number,r().arrayOf(r().number)]),expandToMin:r().bool,gutterSize:r().number,gutterAlign:r().string,snapOffset:r().oneOfType([r().number,r().arrayOf(r().number)]),dragInterval:r().number,direction:r().string,cursor:r().string,gutter:r().func,elementStyle:r().func,gutterStyle:r().func,onDrag:r().func,onDragStart:r().func,onDragEnd:r().func,collapsed:r().number,children:r().arrayOf(r().element)},T.defaultProps={sizes:void 0,minSize:void 0,maxSize:void 0,expandToMin:void 0,gutterSize:void 0,gutterAlign:void 0,snapOffset:void 0,dragInterval:void 0,direction:void 0,cursor:void 0,gutter:void 0,elementStyle:void 0,gutterStyle:void 0,onDrag:void 0,onDragStart:void 0,onDragEnd:void 0,collapsed:void 0,children:void 0};const x=T},72093:(e,t,i)=>{"use strict";i.d(t,{A:()=>h});const s={randomUUID:"undefined"!==typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};var n,r=new Uint8Array(16);function o(){if(!n&&!(n="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(r)}for(var a=[],c=0;c<256;++c)a.push((c+256).toString(16).slice(1));function l(e,t=0){return(a[e[t+0]]+a[e[t+1]]+a[e[t+2]]+a[e[t+3]]+"-"+a[e[t+4]]+a[e[t+5]]+"-"+a[e[t+6]]+a[e[t+7]]+"-"+a[e[t+8]]+a[e[t+9]]+"-"+a[e[t+10]]+a[e[t+11]]+a[e[t+12]]+a[e[t+13]]+a[e[t+14]]+a[e[t+15]]).toLowerCase()}const h=function(e,t,i){if(s.randomUUID&&!t&&!e)return s.randomUUID();var n=(e=e||{}).random||(e.rng||o)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){i=i||0;for(var r=0;r<16;++r)t[i+r]=n[r];return t}return l(n)}},57949:(e,t,i)=>{"use strict";i.d(t,{F:()=>B});var s=i(60712),n=i(59284),r=i(56993),o=i.n(r),a=i(53302),c=i(63126),l=i(72837);const h=JSON.parse('{"label_error":"Error","label_empty":"No data"}'),d=JSON.parse('{"label_error":"\u041e\u0448\u0438\u0431\u043a\u0430","label_empty":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445"}'),u=(0,l.N)({en:h,ru:d},"ydb-navigation-tree"),g=(0,a.o)("ydb-navigation-tree-view-empty");function p({level:e}){return(0,s.jsx)(c.G,{name:(0,s.jsx)("span",{className:g(),children:u("label_empty")}),level:e})}const m=(0,a.o)("ydb-navigation-tree-view-error");function f({level:e}){return(0,s.jsx)(c.G,{name:(0,s.jsx)("span",{className:m(),children:u("label_error")}),level:e})}var _=i(80953);const v=(0,a.o)("ydb-navigation-tree-view-loader");function C({level:e}){return(0,s.jsx)(c.G,{name:(0,s.jsx)("div",{className:v(),children:(0,s.jsx)(_.t,{size:"xs"})}),level:e})}function E(e){return(0,s.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.22 15.03s-.001 0 0 0a.75.75 0 0 0 1.06-1.06l-.47-.47H10a3.016 3.016 0 0 0 1.507-.405A2.999 2.999 0 0 0 13 10.5V7.896h.003a2.735 2.735 0 0 0 .785-.366 2.75 2.75 0 1 0-2.288.366V10.5A1.5 1.5 0 0 1 10 12h-.19l.47-.47s0 .001 0 0a.75.75 0 0 0-1.06-1.06l-.47.47-1.28 1.28a.75.75 0 0 0 0 1.06l1.75 1.75ZM5.72 2.97a.75.75 0 0 1 1.06 0l.47.47 1.28 1.28a.748.748 0 0 1 0 1.06L6.78 7.53c.001 0 0 0 0 0a.751.751 0 0 1-1.06-1.06L6.19 6H6a1.5 1.5 0 0 0-1.5 1.5v2.604a2.757 2.757 0 0 1 2 2.646 2.738 2.738 0 0 1-1.212 2.28 2.737 2.737 0 0 1-1.538.47A2.747 2.747 0 0 1 1 12.75a2.751 2.751 0 0 1 2-2.646V7.5a2.999 2.999 0 0 1 3-3h.19l-.47-.47a.75.75 0 0 1 0-1.06Zm-.908 9.121A1.246 1.246 0 0 1 5 12.75a1.25 1.25 0 1 1-.188-.659ZM11 5.25a1.25 1.25 0 1 1 2.5 0 1.25 1.25 0 0 1-2.5 0Z"})}))}function b(e){return(0,s.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.01033 3.79551C2.11275 2.787 2.96447 2 4 2H5.5H7H9H10.5H12C13.1046 2 14 2.89543 14 4V5.5V12C14 13.1046 13.1046 14 12 14H10.5H9H7H5.5H4C2.89543 14 2 13.1046 2 12V5.5V4C2 3.93096 2.0035 3.86275 2.01033 3.79551ZM10.5 12.5H11.5C12.0523 12.5 12.5 12.0523 12.5 11.5V5.5H10.5L10.5 12.5ZM9 5.5L9 12.5H7L7 5.5H9ZM3.5 5.5H5.5L5.5 12.5H4.5C3.94772 12.5 3.5 12.0523 3.5 11.5V5.5Z"})}))}function S(e){return(0,s.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",fill:"currentColor"},e,{children:(0,s.jsx)("path",{d:"M448 80V128C448 172.2 347.7 208 224 208C100.3 208 0 172.2 0 128V80C0 35.82 100.3 0 224 0C347.7 0 448 35.82 448 80zM393.2 214.7C413.1 207.3 433.1 197.8 448 186.1V288C448 332.2 347.7 368 224 368C100.3 368 0 332.2 0 288V186.1C14.93 197.8 34.02 207.3 54.85 214.7C99.66 230.7 159.5 240 224 240C288.5 240 348.3 230.7 393.2 214.7V214.7zM54.85 374.7C99.66 390.7 159.5 400 224 400C288.5 400 348.3 390.7 393.2 374.7C413.1 367.3 433.1 357.8 448 346.1V432C448 476.2 347.7 512 224 512C100.3 512 0 476.2 0 432V346.1C14.93 357.8 34.02 367.3 54.85 374.7z"})}))}function y(e){return(0,s.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 6.75C0 6.35156 0.338542 6 0.722222 6L3.61111 6V3L0.722222 3C0.338542 3 0 2.67188 0 2.25C0 1.85156 0.338542 1.5 0.722222 1.5L3.61111 1.5V0.750001C3.61111 0.351563 3.94965 0 4.33333 0C4.73958 0 5.05556 0.351563 5.05556 0.750001H5.77778C7.53819 0.750001 8.98264 2.03906 9.32118 3.75H12V5.25H9.32118C9.29095 5.4049 9.25189 5.55606 9.20457 5.70291C9.10459 5.73587 9.00778 5.77066 8.9144 5.80723C8.505 5.96755 8.12646 6.17556 7.83841 6.44187C7.5498 6.70871 7.3 7.08678 7.3 7.56255V7.90902C6.83862 8.12843 6.32337 8.25 5.77778 8.25H5.05556C5.05556 8.67188 4.73958 9 4.33333 9C3.94965 9 3.61111 8.67188 3.61111 8.25V7.5L0.722222 7.5C0.338542 7.5 0 7.17188 0 6.75ZM16 8.5V7.5625C16 6.70312 14.1964 6 12 6C9.78571 6 8 6.70312 8 7.5625V8.5C8 9.37891 9.78571 10.0625 12 10.0625C14.1964 10.0625 16 9.37891 16 8.5ZM16 9.65234C15.7321 9.86719 15.375 10.0625 15.0179 10.1992C14.2143 10.5117 13.1429 10.6875 12 10.6875C10.8393 10.6875 9.76786 10.5117 8.96429 10.1992C8.60714 10.0625 8.25 9.86719 8 9.65234V11.625C8 12.5039 9.78571 13.1875 12 13.1875C14.1964 13.1875 16 12.5039 16 11.625V9.65234ZM12 13.8125C10.8393 13.8125 9.76786 13.6367 8.96429 13.3242C8.60714 13.1875 8.25 12.9922 8 12.7773V14.4375C8 15.3164 9.78571 16 12 16C14.1964 16 16 15.3164 16 14.4375V12.7773C15.7321 12.9922 15.375 13.1875 15.0179 13.3242C14.2143 13.6367 13.1429 13.8125 12 13.8125Z"})}))}function w(e){return(0,s.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 6.75C0 6.35156 0.351562 6 0.75 6L3.75 6V3L0.75 3C0.351562 3 0 2.67188 0 2.25C0 1.85156 0.351562 1.5 0.75 1.5L3.75 1.5V0.750001C3.75 0.351563 4.10156 0 4.5 0C4.92188 0 5.25 0.351563 5.25 0.750001H6C7.82812 0.750001 9.32812 2.03906 9.67969 3.75H12V5.25H9.67969C9.60376 5.62455 9.47428 5.97724 9.2995 6.30005H7.19969C6.09701 6.30005 5.26846 7.20143 5.25 8.25C5.25 8.67188 4.92188 9 4.5 9C4.10156 9 3.75 8.67188 3.75 8.25V7.5L0.75 7.5C0.351562 7.5 0 7.17188 0 6.75ZM16 8.28571C16 7.58259 15.4336 7 14.75 7H7.25C6.54688 7 6 7.58259 6 8.28571V14.7143C6 15.4375 6.54688 16 7.25 16H14.75C15.4336 16 16 15.4375 16 14.7143V8.28571ZM10.375 9.57143V11.5H7.25V9.57143H10.375ZM7.25 14.7143V12.7857H10.375V14.7143H7.25ZM14.75 14.7143H11.625V12.7857H14.75V14.7143ZM14.75 9.57143V11.5H11.625V9.57143H14.75Z"})}))}function R(e){return(0,s.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,s.jsx)("path",{d:"M13.2812 4.875H8.40625L6.78125 3.25H2.71875C2.0332 3.25 1.5 3.80859 1.5 4.46875V11.7812C1.5 12.4668 2.0332 13 2.71875 13H13.2812C13.9414 13 14.5 12.4668 14.5 11.7812V6.09375C14.5 5.43359 13.9414 4.875 13.2812 4.875Z"})}))}function L(e){return(0,s.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,s.jsx)("path",{d:"M15.2109 9.06445C15.4648 8.6582 15.1602 8.125 14.6777 8.125H4.54688C4.01367 8.125 3.37891 8.50586 3.125 8.9375L1.29688 12.0859C1.04297 12.4922 1.34766 13 1.83008 13H11.9609C12.4941 13 13.1289 12.6445 13.3828 12.2129L15.2109 9.06445ZM4.54688 7.3125H12.875V6.09375C12.875 5.43359 12.3164 4.875 11.6562 4.875H7.59375L5.96875 3.25H1.90625C1.2207 3.25 0.6875 3.80859 0.6875 4.46875V11.5527L2.43945 8.53125C2.87109 7.79492 3.6582 7.3125 4.54688 7.3125Z"})}))}function T(e){return(0,s.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.24935 2.94323L8.5 9.5H12.1L11.1446 14.2772C11.0322 14.839 11.7994 15.1177 12.0738 14.6147L15.9111 7.57956C16.1765 7.09311 15.8244 6.5 15.2703 6.5H12.9L13.5325 3.33728C13.6192 2.90413 13.2879 2.5 12.8461 2.5H9.74611C9.49194 2.5 9.27821 2.69069 9.24935 2.94323ZM7.40003 10.5L8.25717 3H1.625C0.710938 3 0 3.73633 0 4.625V12.75C0 13.6641 0.710938 14.375 1.625 14.375H10.1517C10.1538 14.2803 10.1646 14.1822 10.1848 14.0811L10.901 10.5H7.40003ZM5.6875 8.6875V6.25H1.625V8.6875H5.6875ZM1.625 10.3125V12.75H5.6875V10.3125H1.625Z"})}))}function x(e){return(0,s.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.01033 3.79551C2.11275 2.787 2.96447 2 4 2H7.3H8.8H12C13.1046 2 14 2.89543 14 4V5.5V8.2002V9.7002V12C14 13.1046 13.1046 14 12 14H8.8H7.3H4C2.89543 14 2 13.1046 2 12V9.7002V8.2002V5.5V4C2 3.93096 2.0035 3.86275 2.01033 3.79551ZM8.8 12.5H11.5C12.0523 12.5 12.5 12.0523 12.5 11.5V9.7002H8.8V12.5ZM7.3 9.7002V12.5H4.5C3.94772 12.5 3.5 12.0523 3.5 11.5V9.7002H7.3ZM8.8 8.2002H12.5V5.5H8.8L8.8 8.2002ZM7.3 5.5L7.3 8.2002H3.5V5.5H7.3Z"})}))}function k(e){return(0,s.jsxs)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:[(0,s.jsx)("rect",{x:"2",y:"2.20001",width:"9",height:"2.5",rx:"0.5"}),(0,s.jsx)("rect",{x:"5",y:"6.70001",width:"9",height:"2.5",rx:"0.5"}),(0,s.jsx)("rect",{x:"2",y:"11.2",width:"9",height:"2.5",rx:"0.5"})]}))}function A(e){return(0,s.jsxs)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:[(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.625 2H7.49951C6.47457 2.77006 5.7552 3.92488 5.55588 5.25H1.625V7.6875H5.79193C6.48417 9.6186 8.33076 11 10.5 11C10.877 11 11.2443 10.9583 11.5974 10.8792L12.7748 12.5799C12.4905 13.0601 11.9665 13.375 11.375 13.375H1.625C0.710938 13.375 0 12.6641 0 11.75V3.625C0 2.73633 0.710938 2 1.625 2ZM1.625 11.75V9.3125H5.6875V11.75H1.625Z"}),(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.4411 8.71106C14.0985 7.9983 14.5 7.04604 14.5 6C14.5 3.79086 12.7091 2 10.5 2C8.29086 2 6.5 3.79086 6.5 6C6.5 8.20914 8.29086 10 10.5 10C11.0316 10 11.5389 9.89631 12.0029 9.70806L14.2807 12.9981C14.5557 13.3955 15.1008 13.4946 15.4981 13.2195C15.8955 12.9444 15.9946 12.3993 15.7195 12.002L13.4411 8.71106ZM12.5 6C12.5 7.10457 11.6046 8 10.5 8C9.39543 8 8.5 7.10457 8.5 6C8.5 4.89543 9.39543 4 10.5 4C11.6046 4 12.5 4.89543 12.5 6Z"})]}))}function N(e){return"status"in e}function I(e,t,i,s=0){const n=e[t];if(n&&(i(n,s,t,e),!n.collapsed))for(const r of n.children)I(e,`${t}/${r}`,i,s+1)}var O;function D(e){return Object.assign(Object.assign(Object.assign({},{collapsed:!0,loading:!1,loaded:!1,error:!1,children:[]}),{expandable:"database"===e.type||"directory"===e.type}),e)}function M(e={},t){var i,s;switch(t.type){case O.ToggleCollapsed:return Object.assign(Object.assign({},e),{[t.payload.path]:Object.assign(Object.assign({},e[t.payload.path]),{collapsed:!e[t.payload.path].collapsed})});case O.StartLoading:return Object.assign(Object.assign({},e),{[t.payload.path]:Object.assign(Object.assign({},e[t.payload.path]),{loading:!0,loaded:!1,error:!1,children:[]})});case O.FinishLoading:{const n=Object.assign(Object.assign({},e),{[t.payload.path]:Object.assign(Object.assign({},e[t.payload.path]),{loading:!1,loaded:Boolean(t.payload.data),error:!1})});if(t.payload.data){n[t.payload.path].children=t.payload.data.map((({name:e})=>e));for(const r of t.payload.data){const o=`${t.payload.path}/${r.name}`,{activePath:a=""}=t.payload,c=null!==(s=null===(i=e[o])||void 0===i?void 0:i.collapsed)&&void 0!==s?s:!a.startsWith(`${o}/`);n[o]=D(Object.assign(Object.assign({},r),{collapsed:c,path:o}))}}return t.payload.data&&0!==t.payload.data.length||(n[t.payload.path]=Object.assign(Object.assign({},n[t.payload.path]),{expandable:!1,collapsed:!0})),n}case O.ErrorLoading:return Object.assign(Object.assign({},e),{[t.payload.path]:Object.assign(Object.assign({},e[t.payload.path]),{loading:!1,loaded:!1,error:!0})});case O.ResetNode:return Object.assign(Object.assign({},e),{[t.payload.path]:Object.assign(Object.assign({},e[t.payload.path]),{collapsed:!0,loading:!1,loaded:!1,error:!1,children:[]})});default:return e}}function P(e,t){const i=[];return I(e,t,((e,t)=>{i.push(Object.assign(Object.assign({},e),{level:t}));const s=function(e,t){if(!e.collapsed)return e.loading?{path:e.path,status:"loading",level:t+1}:e.error?{path:e.path,status:"error",level:t+1}:e.loaded&&0===e.children.length?{path:e.path,status:"empty",level:t+1}:void 0}(e,t);s&&i.push(s)})),i}function F(e,t){switch(e){case"async_replication":return(0,s.jsx)(E,{height:16});case"database":return(0,s.jsx)(S,{height:14});case"directory":return t?(0,s.jsx)(R,{height:16}):(0,s.jsx)(L,{height:16});case"index":return(0,s.jsx)(T,{height:16});case"table":case"index_table":return(0,s.jsx)(x,{height:16});case"column_table":return(0,s.jsx)(b,{height:16});case"stream":case"topic":return(0,s.jsx)(k,{height:16});case"external_table":return(0,s.jsx)(w,{height:16});case"external_data_source":return(0,s.jsx)(y,{height:16});case"view":return(0,s.jsx)(A,{height:16});default:return null}}function U({path:e,fetchPath:t,activePath:i,state:r,level:o,dispatch:a,children:l,onActivate:h,getActions:d,onActionsOpenToggle:u,renderAdditionalNodeElements:g,cache:p}){const m=r[e];n.useEffect((()=>{m.collapsed?p||a({type:O.ResetNode,payload:{path:e}}):m.loaded||m.loading||(a({type:O.StartLoading,payload:{path:e}}),t(e).then((t=>{a({type:O.FinishLoading,payload:{path:e,activePath:i,data:t}})})).catch((t=>{a({type:O.ErrorLoading,payload:{path:e,error:t}})})))}),[m.collapsed]);const f=n.useCallback((()=>{h&&h(e)}),[e,h]),_=n.useCallback((()=>{a({type:O.ToggleCollapsed,payload:{path:e}})}),[a,e]),v=n.useMemo((()=>null===g||void 0===g?void 0:g(m.path,m.type)),[g,m]),C=n.useMemo((()=>null===d||void 0===d?void 0:d(m.path,m.type)),[d,m]),E=n.useCallback((e=>{null===u||void 0===u||u({path:m.path,type:m.type,isOpen:e})}),[m.path,m.type,u]);return(0,s.jsx)(c.G,{name:m.name,icon:F(m.type,m.collapsed),collapsed:m.collapsed,active:m.path===i,actions:C,additionalNodeElements:v,hasArrow:m.expandable,onClick:f,onArrowClick:_,onActionsOpenToggle:E,level:o,children:l})}!function(e){e.ToggleCollapsed="toggle-collapsed",e.StartLoading="start-loading",e.FinishLoading="finish-loading",e.ErrorLoading="error-loading",e.ResetNode="reset-node"}(O||(O={}));const H=e=>{const t=`${e.path}|${e.status}`;return"loading"===e.status?(0,s.jsx)(C,{level:e.level},t):"error"===e.status?(0,s.jsx)(f,{level:e.level},t):(0,s.jsx)(p,{level:e.level},t)};function B({rootState:e,fetchPath:t,getActions:i,renderAdditionalNodeElements:r,activePath:a,onActionsOpenToggle:c,onActivePathUpdate:l,cache:h=!0,virtualize:d=!1}){const[u,g]=n.useReducer(M,{[e.path]:D(e)}),p=n.useMemo((()=>P(u,e.path)),[e.path,u]),m=e=>(0,s.jsx)(U,{state:u,path:e.path,activePath:a,fetchPath:t,dispatch:g,onActivate:l,getActions:i,onActionsOpenToggle:c,renderAdditionalNodeElements:r,cache:h,level:e.level},e.path);return d?(0,s.jsx)(o(),{type:"uniform",length:p.length,useStaticSize:!0,itemRenderer:e=>{const t=p[e];return N(t)?H(t):m(t)}}):(0,s.jsx)(n.Fragment,{children:p.map((e=>N(e)?H(e):m(e)))})}},63126:(e,t,i)=>{"use strict";i.d(t,{G:()=>l});var s=i(60712),n=i(59284),r=i(40569),o=i(53302);const a="--ydb-tree-view-level",c=(0,o.o)("ydb-tree-view");function l({children:e,name:t,title:i,icon:o,collapsed:l=!0,active:h=!1,onClick:d,onArrowClick:u,onActionsOpenToggle:g,hasArrow:p=!1,actions:m,additionalNodeElements:f,level:_}){const v=n.useCallback((e=>{if(!d)return;e.nativeEvent.composedPath().some((e=>e instanceof HTMLElement&&("BUTTON"===e.nodeName&&!e.hasAttribute("disabled")||e.hasAttribute("tabindex")&&e.tabIndex>-1)))||d()}),[d]),C=u||d;let E="tree-view_arrow",b="tree-view_children";return l&&(E+=" tree-view_arrow-collapsed",b+=" tree-view_children-collapsed"),(0,s.jsx)("div",{className:c(),style:{[a]:_},children:(0,s.jsxs)("div",{className:"tree-view",children:[(0,s.jsxs)("div",{className:`tree-view_item ${c("item",{active:h})}`,onClick:v,children:[(0,s.jsx)("button",{type:"button",className:`${E} ${c("arrow",{collapsed:l,hidden:!p})}`,disabled:!C,onClick:C}),(0,s.jsxs)("div",{className:c("content"),children:[o&&(0,s.jsx)("div",{className:c("icon"),children:o}),(0,s.jsx)("div",{className:c("text"),title:i,children:t}),m&&m.length>0&&(0,s.jsxs)("div",{className:c("actions"),children:[f,(0,s.jsx)(r.r,{onOpenToggle:g,defaultSwitcherProps:{view:"flat-secondary",size:"s",pin:"brick-brick"},items:m})]})]})]}),(0,s.jsx)("div",{className:`${b} ${c("container",{collapsed:l})}`,children:l?null:e})]})})}},53302:(e,t,i)=>{"use strict";i.d(t,{o:()=>s});const s=(0,i(82435).withNaming)({e:"__",m:"_"})},62469:()=>{},10713:()=>{},48215:()=>{},53396:()=>{},82320:()=>{},41614:(e,t,i)=>{"use strict";i.d(t,{parseYqlQuery:()=>Au,kh:()=>ku});var s,n,r,o,a=Object.defineProperty,c=(e,t)=>a(e,"name",{value:t,configurable:!0});(n=s||(s={})).EOF=-1,n.UNKNOWN_SOURCE_NAME="<unknown>",(o=r||(r={})).INVALID_TYPE=0,o.EPSILON=-2,o.MIN_USER_TOKEN_TYPE=1,o.EOF=s.EOF,o.DEFAULT_CHANNEL=0,o.HIDDEN_CHANNEL=1,o.MIN_USER_CHANNEL_VALUE=2;var l=c((e=>{const t=e;return void 0!==t.tokenSource&&void 0!==t.channel}),"isToken"),h=class{static{c(this,"BitSet")}data;constructor(e){this.data=e?new Uint32Array(e.map((e=>e>>>0))):new Uint32Array(1)}[Symbol.iterator](){const e=this.data.length;let t=0,i=this.data[t];const s=this.data;return{[Symbol.iterator](){return this},next:c((()=>{for(;t<e;){if(0!==i){const e=i&-i,s=(t<<5)+this.bitCount(e-1);return i^=e,{done:!1,value:s}}t++,t<e&&(i=s[t])}return{done:!0,value:void 0}}),"next")}}clear(e){void 0===e?this.data=new Uint32Array:(this.resize(e),this.data[e>>>5]&=~(1<<e))}or(e){const t=Math.min(this.data.length,e.data.length);for(let i=0;i<t;++i)this.data[i]|=e.data[i];if(this.data.length<e.data.length){this.resize((e.data.length<<5)-1);const i=e.data.length;for(let s=t;s<i;++s)this.data[s]=e.data[s]}}get(e){if(e<0)throw new RangeError("index cannot be negative");const t=e>>>5;return!(t>=this.data.length)&&0!==(this.data[t]&1<<e%32)}get length(){let e=0;const t=this.data.length,i=this.data;for(let s=0;s<t;s++)e+=this.bitCount(i[s]);return e}values(){const e=new Array(this.length);let t=0;const i=this.data.length;for(let s=0;s<i;++s){let i=this.data[s];for(;0!==i;){const n=i&-i;e[t++]=(s<<5)+this.bitCount(n-1),i^=n}}return e}nextSetBit(e){if(e<0)throw new RangeError("index cannot be negative");for(const t of this)if(t>=e)return t}set(e){if(e<0)throw new RangeError("index cannot be negative");this.resize(e),this.data[e>>>5]|=1<<e%32}toString(){return"{"+this.values().join(", ")+"}"}resize(e){const t=e+32>>>5;if(t<=this.data.length)return;const i=new Uint32Array(t);i.set(this.data),i.fill(0,this.data.length),this.data=i}bitCount(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,63&(e+=e>>16)}},d=class e{static{c(this,"MurmurHash")}static defaultSeed=701;constructor(){}static initialize(t=e.defaultSeed){return t}static updateFromComparable(e,t){return this.update(e,t?.hashCode()??0)}static update(e,t){return t=(t=Math.imul(t,3432918353))<<15|t>>>17,e=(e^=t=Math.imul(t,461845907))<<13|e>>>19,e=Math.imul(e,5)+3864292196}static finish(e,t){return e^=4*t,e^=e>>>16,e=Math.imul(e,2246822507),e^=e>>>13,e=Math.imul(e,3266489909),e^=e>>>16}static hashCode(t,i){return e.finish(e.update(i??e.defaultSeed,t),1)}},u=class e{static{c(this,"ObjectEqualityComparator")}static instance=new e;hashCode(e){return null==e?0:e.hashCode()}equals(e,t){return null==e?null==t:e.equals(t)}},g=class e{static{c(this,"DefaultEqualityComparator")}static instance=new e;hashCode(e){return null==e?0:u.instance.hashCode(e)}equals(e,t){return null==e?null==t:"string"===typeof e||"number"===typeof e?e===t:u.instance.equals(e,t)}},p=class e{static{c(this,"HashSet")}static defaultLoadFactor=.75;static initialCapacity=16;comparator;buckets;threshold;itemCount=0;constructor(t,i=e.initialCapacity){if(t instanceof e){this.comparator=t.comparator,this.buckets=t.buckets.slice(0);for(let e=0;e<this.buckets.length;e++){const t=this.buckets[e];t&&(this.buckets[e]=t.slice(0))}this.itemCount=t.itemCount,this.threshold=t.threshold}else this.comparator=t??g.instance,this.buckets=this.createBuckets(i),this.threshold=Math.floor(e.initialCapacity*e.defaultLoadFactor)}getOrAdd(e){this.itemCount>this.threshold&&this.expand();const t=this.getBucket(e);let i=this.buckets[t];if(!i)return i=[e],this.buckets[t]=i,++this.itemCount,e;for(const s of i)if(this.comparator.equals(s,e))return s;return i.push(e),++this.itemCount,e}get(e){if(null==e)return e;const t=this.getBucket(e),i=this.buckets[t];if(i)for(const s of i)if(this.comparator.equals(s,e))return s}remove(e){if(null==e)return!1;const t=this.getBucket(e),i=this.buckets[t];if(!i)return!1;for(let s=0;s<i.length;s++){const t=i[s];if(this.comparator.equals(t,e))return i.splice(s,1),--this.itemCount,!0}return!1}hashCode(){let e=d.initialize();for(const t of this.buckets)if(null!=t)for(const i of t){if(null==i)break;e=d.update(e,this.comparator.hashCode(i))}return e=d.finish(e,this.size),e}equals(t){return t===this||t instanceof e&&(t.size===this.size&&this.containsAll(t))}add(e){return this.getOrAdd(e)===e}contains(e){return this.containsFast(e)}containsFast(e){return null!=e&&void 0!==this.get(e)}*[Symbol.iterator](){yield*this.toArray()}toArray(){const e=new Array(this.size);let t=0;for(const i of this.buckets)if(null!=i)for(const s of i){if(null==s)break;e[t++]=s}return e}containsAll(t){if(t instanceof e){for(const e of t.buckets)if(null!=e)for(const t of e){if(null==t)break;if(!this.containsFast(t))return!1}}else for(const e of t)if(!this.containsFast(e))return!1;return!0}addAll(e){let t=!1;for(const i of e){this.getOrAdd(i)!==i&&(t=!0)}return t}clear(){this.buckets=this.createBuckets(e.initialCapacity),this.itemCount=0,this.threshold=Math.floor(e.initialCapacity*e.defaultLoadFactor)}toString(){if(0===this.size)return"{}";let e="{",t=!0;for(const i of this.buckets)if(null!=i)for(const s of i){if(null==s)break;t?t=!1:e+=", ",e+=s.toString()}return e+="}",e}toTableString(){let e="";for(const t of this.buckets){if(null==t){e+="null\n";continue}e+="[";let i=!0;for(const s of t)i?i=!1:e+=" ",e+=null==s?"_":s.toString();e+="]\n"}return e}getBucket(e){return this.comparator.hashCode(e)&this.buckets.length-1}expand(){const t=this.buckets,i=2*this.buckets.length,s=this.createBuckets(i);this.buckets=s,this.threshold=Math.floor(i*e.defaultLoadFactor);for(const e of t)if(e)for(const t of e){const e=this.getBucket(t);let i=this.buckets[e];i||(i=[],this.buckets[e]=i),i.push(t)}}get size(){return this.itemCount}get isEmpty(){return 0===this.itemCount}createBuckets(e){return new Array(e)}},m=class e{static{c(this,"Interval")}static INVALID_INTERVAL=new e(-1,-2);static INTERVAL_POOL_MAX_VALUE=1e3;static cache=[];start;stop;cachedHashCode;constructor(e,t){this.start=e,this.stop=t,this.cachedHashCode=Math.imul(651+e,31)+t}static of(t,i){return t!==i||t<0||t>e.INTERVAL_POOL_MAX_VALUE?new e(t,i):(e.cache[t]||(e.cache[t]=new e(t,t)),e.cache[t])}equals(e){return this.start===e.start&&this.stop===e.stop}hashCode(){return this.cachedHashCode}startsBeforeDisjoint(e){return this.start<e.start&&this.stop<e.start}startsBeforeNonDisjoint(e){return this.start<=e.start&&this.stop>=e.start}startsAfter(e){return this.start>e.start}startsAfterDisjoint(e){return this.start>e.stop}startsAfterNonDisjoint(e){return this.start>e.start&&this.start<=e.stop}disjoint(e){return this.startsBeforeDisjoint(e)||this.startsAfterDisjoint(e)}adjacent(e){return this.start===e.stop+1||this.stop===e.start-1}properlyContains(e){return e.start>=this.start&&e.stop<=this.stop}union(t){return e.of(Math.min(this.start,t.start),Math.max(this.stop,t.stop))}intersection(t){return e.of(Math.max(this.start,t.start),Math.min(this.stop,t.stop))}differenceNotProperlyContained(t){let i=null;return t.startsBeforeNonDisjoint(this)?i=e.of(Math.max(this.start,t.stop+1),this.stop):t.startsAfterNonDisjoint(this)&&(i=e.of(this.start,t.start-1)),i}toString(){return`${this.start}..${this.stop}`}get length(){return this.stop<this.start?0:this.stop-this.start+1}},f=class e{static{c(this,"Vocabulary")}static EMPTY_NAMES=[];static EMPTY_VOCABULARY=new e(e.EMPTY_NAMES,e.EMPTY_NAMES,e.EMPTY_NAMES);maxTokenType;literalNames;symbolicNames;displayNames;constructor(t,i,s){this.literalNames=t??e.EMPTY_NAMES,this.symbolicNames=i??e.EMPTY_NAMES,this.displayNames=s??e.EMPTY_NAMES,this.maxTokenType=Math.max(this.displayNames.length,Math.max(this.literalNames.length,this.symbolicNames.length))-1}static fromTokenNames(t){if(null==t||0===t.length)return e.EMPTY_VOCABULARY;const i=[...t],s=[...t];for(let e=0;e<t.length;e++){const n=t[e];if(null!=n){if(n.length>0){const t=n.codePointAt(0);if(39===t){s[e]=null;continue}if(t>=65&&t<=90){i[e]=null;continue}}i[e]=null,s[e]=null}}return new e(i,s,t)}getMaxTokenType(){return this.maxTokenType}getLiteralName(e){return e>=0&&e<this.literalNames.length?this.literalNames[e]:null}getSymbolicName(e){return e>=0&&e<this.symbolicNames.length?this.symbolicNames[e]:e===r.EOF?"EOF":null}getDisplayName(e){if(e>=0&&e<this.displayNames.length){const t=this.displayNames[e];if(null!=t)return t}const t=this.getLiteralName(e);if(null!=t)return t;const i=this.getSymbolicName(e);return null!=i?i:`${e}`}getLiteralNames(){return this.literalNames}getSymbolicNames(){return this.symbolicNames}getDisplayNames(){return this.displayNames}},_=class e{static{c(this,"IntervalSet")}intervals=[];cachedHashCode;constructor(e){if(e)if(Array.isArray(e))for(const t of e)this.addOne(t);else this.addSet(e)}static of(t,i){const s=new e;return s.addRange(t,i),s}static or(t){const i=new e;for(const e of t)i.addSet(e);return i}[Symbol.iterator](){return this.intervals[Symbol.iterator]()}get(e){return this.intervals[e]}get minElement(){return 0===this.intervals.length?r.INVALID_TYPE:this.intervals[0].start}get maxElement(){return 0===this.intervals.length?r.INVALID_TYPE:this.intervals[this.intervals.length-1].stop}clear(){this.cachedHashCode=void 0,this.intervals=[]}addOne(e){this.addInterval(new m(e,e))}addRange(e,t){this.addInterval(new m(e,t))}addInterval(e){if(this.cachedHashCode=void 0,0===this.intervals.length)this.intervals.push(e);else{for(let t=0;t<this.intervals.length;t++){const i=this.intervals[t];if(e.equals(i))return;if(e.adjacent(i)||!e.disjoint(i)){const s=e.union(i);this.intervals[t]=s;for(let e=t+1;e<this.intervals.length;){const i=this.intervals[e];if(!s.adjacent(i)&&s.disjoint(i))break;this.intervals.splice(e,1),this.intervals[t]=s.union(i)}return}if(e.startsBeforeDisjoint(i))return void this.intervals.splice(t,0,e)}this.intervals.push(e)}}addSet(e){return e.intervals.forEach((e=>this.addInterval(e)),this),this}complementWithVocabulary(t){const i=new e;return t?0===t.length?i:(i.addSet(t),i.subtract(this)):i}complement(t,i){const s=new e;return s.addInterval(new m(t,i)),s.subtract(this)}or(t){const i=new e;return i.addSet(this),t.forEach((e=>i.addSet(e))),i}and(t){if(0===t.length)return new e;const i=this.intervals,s=t.intervals;let n;const r=i.length,o=s.length;let a=0,c=0;for(;a<r&&c<o;){const t=i[a],r=s[c];t.startsBeforeDisjoint(r)?a++:r.startsBeforeDisjoint(t)?c++:t.properlyContains(r)?(n||(n=new e),n.addInterval(t.intersection(r)),c++):r.properlyContains(t)?(n||(n=new e),n.addInterval(t.intersection(r)),a++):t.disjoint(r)||(n||(n=new e),n.addInterval(t.intersection(r)),t.startsAfterNonDisjoint(r)?c++:r.startsAfterNonDisjoint(t)&&a++)}return n||new e}subtract(t){if(0===this.length)return new e;const i=new e(this);if(0===t.length)return i;let s=0,n=0;for(;s<i.intervals.length&&n<t.intervals.length;){const e=i.intervals[s],r=t.intervals[n];if(r.stop<e.start){n++;continue}if(r.start>e.stop){s++;continue}let o,a;r.start>e.start&&(o=new m(e.start,r.start-1)),r.stop<e.stop&&(a=new m(r.stop+1,e.stop)),o?a?(i.intervals[s]=o,i.intervals.splice(s+1,0,a),s++,n++):(i.intervals[s]=o,s++):a?(i.intervals[s]=a,n++):i.intervals.splice(s,1)}return i}contains(e){let t=0,i=this.intervals.length-1;for(;t<=i;){const s=Math.floor((t+i)/2),n=this.intervals[s];if(n.stop<e)t=s+1;else{if(!(n.start>e))return!0;i=s-1}}return!1}removeRange(e){if(this.cachedHashCode=void 0,e.start===e.stop)this.removeOne(e.start);else if(null!==this.intervals){let t=0;for(const i of this.intervals){if(e.stop<=i.start)return;if(e.start>i.start&&e.stop<i.stop){this.intervals[t]=new m(i.start,e.start);const s=new m(e.stop,i.stop);return void this.intervals.splice(t,0,s)}e.start<=i.start&&e.stop>=i.stop?(this.intervals.splice(t,1),t-=1):e.start<i.stop?this.intervals[t]=new m(i.start,e.start):e.stop<i.stop&&(this.intervals[t]=new m(e.stop,i.stop)),t+=1}}}removeOne(e){this.cachedHashCode=void 0;for(let t=0;t<this.intervals.length;t++){const i=this.intervals[t];if(e<i.start)return;if(e===i.start&&e===i.stop)return void this.intervals.splice(t,1);if(e===i.start)return void(this.intervals[t]=new m(i.start+1,i.stop));if(e===i.stop)return void(this.intervals[t]=new m(i.start,i.stop-1));if(e<i.stop){const s=new m(i.start,e-1);return this.intervals[t]=new m(e+1,i.stop),void this.intervals.splice(t,0,s)}}}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize();for(const t of this.intervals)e=d.update(e,t.start),e=d.update(e,t.stop);this.cachedHashCode=d.finish(e,2*this.intervals.length)}return this.cachedHashCode}equals(e){if(this===e)return!0;if(this.intervals.length!==e.intervals.length)return!1;for(let t=0;t<this.intervals.length;t++)if(!this.intervals[t].equals(e.intervals[t]))return!1;return!0}toString(e){if(0===this.intervals.length)return"{}";let t="";this.length>1&&(t+="{");for(let i=0;i<this.intervals.length;++i){const s=this.intervals[i],n=s.start,o=s.stop;n===o?n===r.EOF?t+="<EOF>":t+=e?"'"+String.fromCodePoint(n)+"'":n:t+=e?"'"+String.fromCodePoint(n)+"'..'"+String.fromCodePoint(o)+"'":n+".."+o,i<this.intervals.length-1&&(t+=", ")}return this.length>1&&(t+="}"),t}toStringWithVocabulary(e){if(0===this.intervals.length)return"{}";let t="";this.length>1&&(t+="{");for(let i=0;i<this.intervals.length;++i){const s=this.intervals[i],n=s.start,o=s.stop;if(n===o)n===r.EOF?t+="<EOF>":t+=this.elementName(e,n);else for(let i=n;i<=o;++i)i>n&&(t+=", "),t+=this.elementName(e,i);i<this.intervals.length-1&&(t+=", ")}return this.length>1&&(t+="}"),t}toStringWithRuleNames(e){if(0===this.intervals.length)return"{}";let t="";this.length>1&&(t+="{");const i=f.fromTokenNames(e);for(let s=0;s<this.intervals.length;++s){const e=this.intervals[s],n=e.start,o=e.stop;if(n===o)n===r.EOF?t+="<EOF>":t+=this.elementName(i,n);else for(let s=n;s<=o;++s)s>n&&(t+=", "),t+=this.elementName(i,s);s<this.intervals.length-1&&(t+=", ")}return this.length>1&&(t+="}"),t}toArray(){const e=[];for(const t of this.intervals)for(let i=t.start;i<=t.stop;i++)e.push(i);return e}get length(){let e=0;for(const t of this.intervals)e+=t.length;return e}elementName(e,t){return t===r.EOF?"<EOF>":t===r.EPSILON?"<EPSILON>":e.getDisplayName(t)}},v=c((e=>null===e?"null":e),"valueToString"),C=c((e=>Array.isArray(e)?"["+e.map(v).join(", ")+"]":"null"),"arrayToString"),E=c(((e,t)=>{if(e===t)return!0;if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++){const s=e[i],n=t[i];if(s!==n&&(!s||!s.equals(n)))return!1}return!0}),"equalArrays"),b=c(((e,t)=>{if(e===t)return!0;if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}),"equalNumberArrays"),S=c(((e,t=!1)=>(e=e.replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r"),t&&(e=e.replace(/ /g,"\xb7")),e)),"escapeWhitespace"),y=class e{static{c(this,"SemanticContext")}cachedHashCode;static andContext(t,i){if(null===t||t===e.NONE)return i;if(null===i||i===e.NONE)return t;const s=new w(t,i);return 1===s.operands.length?s.operands[0]:s}static orContext(t,i){if(null===t)return i;if(null===i)return t;if(t===e.NONE||i===e.NONE)return e.NONE;const s=new R(t,i);return 1===s.operands.length?s.operands[0]:s}static filterPrecedencePredicates(t){const i=[];for(const s of t)s instanceof e.PrecedencePredicate&&i.push(s);return i}evalPrecedence(e,t){return this}},w=class e extends y{static{c(this,"AND")}operands;constructor(t,i){super();const s=new p;t instanceof e?t.operands.forEach((e=>{s.add(e)})):s.add(t),i instanceof e?i.operands.forEach((e=>{s.add(e)})):s.add(i);const n=y.filterPrecedencePredicates(s);if(n.length>0){let e=null;n.forEach((t=>{(null===e||t.precedence<e.precedence)&&(e=t)})),e&&s.add(e)}this.operands=s.toArray()}equals(t){return this===t||t instanceof e&&E(this.operands,t.operands)}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize();for(const t of this.operands)e=d.updateFromComparable(e,t);e=d.update(e,3813686060),this.cachedHashCode=d.finish(e,this.operands.length+1)}return this.cachedHashCode}evaluate(e,t){for(const i of this.operands)if(!i.evaluate(e,t))return!1;return!0}evalPrecedence(e,t){let i=!1;const s=[];for(const r of this.operands){const n=r.evalPrecedence(e,t);if(i||=n!==r,null===n)return null;n!==y.NONE&&s.push(n)}if(!i)return this;if(0===s.length)return y.NONE;let n=null;return s.forEach((e=>{n=null===n?e:y.andContext(n,e)})),n}toString(){const e=this.operands.map((e=>e.toString()));return(e.length>3?e.slice(3):e).join("&&")}},R=class e extends y{static{c(this,"OR")}operands;constructor(t,i){super();const s=new p;t instanceof e?t.operands.forEach((e=>{s.add(e)})):s.add(t),i instanceof e?i.operands.forEach((e=>{s.add(e)})):s.add(i);const n=y.filterPrecedencePredicates(s);if(n.length>0){const e=n.sort(((e,t)=>e.compareTo(t))),t=e[e.length-1];s.add(t)}this.operands=s.toArray()}equals(t){return this===t||t instanceof e&&E(this.operands,t.operands)}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize();for(const t of this.operands)e=d.updateFromComparable(e,t);e=d.update(e,3383313031),this.cachedHashCode=d.finish(e,this.operands.length+1)}return this.cachedHashCode}evaluate(e,t){for(const i of this.operands)if(i.evaluate(e,t))return!0;return!1}evalPrecedence(e,t){let i=!1;const s=[];for(const r of this.operands){const n=r.evalPrecedence(e,t);if(i||=n!==r,n===y.NONE)return y.NONE;null!==n&&s.push(n)}if(!i)return this;if(0===s.length)return null;let n=null;return s.forEach((e=>{n=null===n?e:y.orContext(n,e)})),n}toString(){const e=this.operands.map((e=>e.toString()));return(e.length>3?e.slice(3):e).join("||")}};(e=>{class t extends e{static{c(this,"Predicate")}ruleIndex;predIndex;isCtxDependent;constructor(e,t,i){super(),this.ruleIndex=e??-1,this.predIndex=t??-1,this.isCtxDependent=i??!1}evaluate(e,t){const i=this.isCtxDependent?t:null;return e.sempred(i,this.ruleIndex,this.predIndex)}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize();e=d.update(e,this.ruleIndex),e=d.update(e,this.predIndex),e=d.update(e,this.isCtxDependent?1:0),e=d.finish(e,3),this.cachedHashCode=e}return this.cachedHashCode}equals(e){return this===e||this.ruleIndex===e.ruleIndex&&this.predIndex===e.predIndex&&this.isCtxDependent===e.isCtxDependent}toString(){return"{"+this.ruleIndex+":"+this.predIndex+"}?"}}e.Predicate=t;class i extends e{static{c(this,"PrecedencePredicate")}precedence;constructor(e){super(),this.precedence=e??0}evaluate(e,t){return e.precpred(t,this.precedence)}evalPrecedence(t,i){return t.precpred(i??null,this.precedence)?e.NONE:null}compareTo(e){return this.precedence-e.precedence}hashCode(){return 31+this.precedence}equals(e){return this===e||this.precedence===e.precedence}toString(){return"{"+this.precedence+">=prec}?"}}e.PrecedencePredicate=i,e.NONE=new t})(y||(y={}));var L,T=class e{static{c(this,"ATNConfig")}state;alt;reachesIntoOuterContext=!1;precedenceFilterSuppressed=!1;get semanticContext(){return this.#e}cachedHashCode;#t=null;#e;constructor(e,t,i,s){this.state=t,this.alt=e.alt,this.context=i,this.#e=s??y.NONE,this.reachesIntoOuterContext=e.reachesIntoOuterContext,void 0!==e.precedenceFilterSuppressed&&(this.precedenceFilterSuppressed=e.precedenceFilterSuppressed)}static duplicate(t,i){return new e(t,t.state,t.context,i??t.semanticContext)}static createWithContext(t,i,s,n){return new e({alt:i},t,s,n)}static createWithConfig(t,i,s){return new e(i,t,s??i.context,i.semanticContext)}static createWithSemanticContext(t,i,s){return new e(i,t??i.state,i.context,s)}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize(7);e=d.update(e,this.state.stateNumber),e=d.update(e,this.alt),e=d.updateFromComparable(e,this.#t),e=d.updateFromComparable(e,this.semanticContext),e=d.finish(e,4),this.cachedHashCode=e}return this.cachedHashCode}get context(){return this.#t}set context(e){this.#t=e,this.cachedHashCode=void 0}equals(e){return this===e||this.state.stateNumber===e.state.stateNumber&&this.alt===e.alt&&(null===this.context?null===e.context:this.context.equals(e.context))&&this.semanticContext.equals(e.semanticContext)&&this.precedenceFilterSuppressed===e.precedenceFilterSuppressed}toString(e,t=!0){let i="";return t&&(i=","+this.alt),"("+this.state+i+(null!==this.context?",["+this.context.toString()+"]":"")+(this.semanticContext!==y.NONE?","+this.semanticContext.toString():"")+(this.reachesIntoOuterContext?",up="+this.reachesIntoOuterContext:"")+")"}},x=class e{static{c(this,"ATNState")}static INVALID_STATE_NUMBER=-1;static INVALID_TYPE=0;static BASIC=1;static RULE_START=2;static BLOCK_START=3;static PLUS_BLOCK_START=4;static STAR_BLOCK_START=5;static TOKEN_START=6;static RULE_STOP=7;static BLOCK_END=8;static STAR_LOOP_BACK=9;static STAR_LOOP_ENTRY=10;static PLUS_LOOP_BACK=11;static LOOP_END=12;static stateType=e.INVALID_STATE_NUMBER;stateNumber=0;ruleIndex=0;epsilonOnlyTransitions=!1;nextTokenWithinRule;transitions=[];hashCode(){return this.stateNumber}equals(e){return this.stateNumber===e.stateNumber}toString(){return`${this.stateNumber}`}addTransitionAtIndex(e,t){0===this.transitions.length?this.epsilonOnlyTransitions=t.isEpsilon:this.epsilonOnlyTransitions!==t.isEpsilon&&(this.epsilonOnlyTransitions=!1),this.transitions.splice(e,1,t)}addTransition(e){0===this.transitions.length?this.epsilonOnlyTransitions=e.isEpsilon:this.epsilonOnlyTransitions!==e.isEpsilon&&(this.epsilonOnlyTransitions=!1),this.transitions.push(e)}setTransition(e,t){this.transitions.splice(e,1,t)}removeTransition(e){return this.transitions.splice(e,1)[0]}},k=class e{static{c(this,"PredictionContext")}static EMPTY_RETURN_STATE=2147483647;static traceATNSimulator=!1;cachedHashCode;constructor(e){this.cachedHashCode=e}static calculateEmptyHashCode(){let e=d.initialize(31);return e=d.finish(e,0),e}static calculateHashCodeSingle(e,t){let i=d.initialize(31);return i=d.updateFromComparable(i,e),i=d.update(i,t),i=d.finish(i,2),i}static calculateHashCodeList(e,t){let i=d.initialize(31);for(const s of e)i=d.updateFromComparable(i,s);for(const s of t)i=d.update(i,s);return i=d.finish(i,2*e.length),i}isEmpty(){return!1}hasEmptyPath(){return this.getReturnState(this.length-1)===e.EMPTY_RETURN_STATE}hashCode(){return this.cachedHashCode}toString(e){return""}},A=class e extends k{static{c(this,"SingletonPredictionContext")}parent;returnState;constructor(e,t){super(e?k.calculateHashCodeSingle(e,t):k.calculateEmptyHashCode()),this.parent=e??null,this.returnState=t}getParent(e){return this.parent}getReturnState(e){return this.returnState}equals(t){return this===t||t instanceof e&&(this.hashCode()===t.hashCode()&&(this.returnState===t.returnState&&(null==this.parent?null==t.parent:this.parent.equals(t.parent))))}toString(){const e=null===this.parent?"":this.parent.toString();return 0===e.length?this.returnState===k.EMPTY_RETURN_STATE?"$":""+this.returnState:this.returnState+" "+e}get length(){return 1}},N=class e extends A{static{c(this,"EmptyPredictionContext")}static instance=new e;constructor(){super(void 0,k.EMPTY_RETURN_STATE)}isEmpty(){return!0}getParent(){return null}getReturnState(){return this.returnState}equals(e){return this===e}toString(){return"$"}},I=class{static{c(this,"Transition")}static INVALID=0;static EPSILON=1;static RANGE=2;static RULE=3;static PREDICATE=4;static ATOM=5;static ACTION=6;static SET=7;static NOT_SET=8;static WILDCARD=9;static PRECEDENCE=10;target;constructor(e){this.target=e}get isEpsilon(){return!1}get label(){return null}toString(){return""}},O=class extends I{static{c(this,"SetTransition")}set;constructor(e,t){super(e),this.set=t||_.of(r.INVALID_TYPE,r.INVALID_TYPE)}get transitionType(){return I.SET}get label(){return this.set}matches(e,t,i){return this.set.contains(e)}toString(){return this.set.toString()}},D=class extends O{static{c(this,"NotSetTransition")}get transitionType(){return I.NOT_SET}matches(e,t,i){return e>=t&&e<=i&&!super.matches(e,t,i)}toString(){return"~"+super.toString()}},M=class{static{c(this,"MapKeyEqualityComparator")}keyComparator;constructor(e){this.keyComparator=e}hashCode(e){return this.keyComparator.hashCode(e.key)}equals(e,t){return this.keyComparator.equals(e.key,t.key)}},P=class e{static{c(this,"HashMap")}backingStore;constructor(t){t instanceof e?this.backingStore=new p(t.backingStore):(t=t??g.instance,this.backingStore=new p(new M(t)))}clear(){this.backingStore.clear()}containsKey(e){return this.backingStore.contains({key:e})}get(e){const t=this.backingStore.get({key:e});if(t)return t.value}get isEmpty(){return this.backingStore.isEmpty}set(e,t){const i=this.backingStore.get({key:e,value:t});let s;return i?(s=i.value,i.value=t):this.backingStore.add({key:e,value:t}),s}setIfAbsent(e,t){const i=this.backingStore.get({key:e,value:t});let s;return i?s=i.value:this.backingStore.add({key:e,value:t}),s}keys(){return this.backingStore.toArray().map((e=>e.key))}values(){return this.backingStore.toArray().map((e=>e.value))}get size(){return this.backingStore.size}hashCode(){return this.backingStore.hashCode()}equals(e){return this.backingStore.equals(e.backingStore)}},F=class{static{c(this,"TerminalNode")}parent=null;symbol;constructor(e){this.symbol=e}getChild(e){return null}getSymbol(){return this.symbol}getPayload(){return this.symbol}getSourceInterval(){if(null===this.symbol)return m.INVALID_INTERVAL;const e=this.symbol.tokenIndex;return new m(e,e)}getChildCount(){return 0}accept(e){return e.visitTerminal(this)}getText(){return this.symbol?.text??""}toString(){return this.symbol?.type===r.EOF?"<EOF>":this.symbol?.text??""}toStringTree(){return this.toString()}},U=class extends F{static{c(this,"ErrorNode")}accept(e){return e.visitErrorNode(this)}},H=class e{static{c(this,"CommonToken")}static EMPTY_SOURCE=[null,null];source;tokenIndex;start;stop;type;line;column;channel;#i;constructor(e){this.type=e.type,this.source=e.source,this.tokenIndex=e.tokenIndex??-1,this.line=e.line??0,this.column=e.column??-1,this.channel=e.channel??r.DEFAULT_CHANNEL,this.start=e.start??0,this.stop=e.stop??0,this.#i=e.text,void 0===e.line&&null!==e.source[0]&&(this.line=e.source[0].line),void 0===e.column&&null!==e.source[0]&&(this.column=e.source[0].column)}static fromToken(t){const i=[t.tokenSource,t.inputStream];return new e({type:t.type,line:t.line,tokenIndex:t.tokenIndex,column:t.column,channel:t.channel,start:t.start,stop:t.stop,text:t.text,source:i})}static fromType(t,i){return new e({type:t,text:i,source:e.EMPTY_SOURCE})}static fromSource(t,i,s,n,r){return new e({type:i,channel:s,start:n,stop:r,source:t})}get tokenSource(){return this.source[0]}get inputStream(){return this.source[1]}set inputStream(e){this.source[1]=e}clone(){return new e({source:this.source,type:this.type,channel:this.channel,start:this.start,stop:this.stop,tokenIndex:this.tokenIndex,line:this.line,column:this.column,text:this.#i})}toString(e){let t="";this.channel>0&&(t=",channel="+this.channel);let i=this.text;i?(i=i.replace(/\n/g,"\\n"),i=i.replace(/\r/g,"\\r"),i=i.replace(/\t/g,"\\t")):i="<no text>";let s=String(this.type);return e&&(s=e.vocabulary.getDisplayName(this.type)??"<unknown>"),"[@"+this.tokenIndex+","+this.start+":"+this.stop+"='"+i+"',<"+s+">"+t+","+this.line+":"+this.column+"]"}get text(){if(void 0!==this.#i)return this.#i;const e=this.inputStream;if(!e)return;const t=e.size;return this.start<t&&this.stop<t?e.getTextFromRange(this.start,this.stop):"<EOF>"}set text(e){this.#i=e}setText(e){this.#i=e}setType(e){this.type=e}setLine(e){this.line=e}setCharPositionInLine(e){this.column=e}setChannel(e){this.channel=e}setTokenIndex(e){this.tokenIndex=e}},B=class e{static{c(this,"Trees")}static toStringTree(t,i,s){i=i??null,s&&(i=s.ruleNames);let n=e.getNodeText(t,i);n=S(n,!1);const r=t.getChildCount();if(0===r)return n;let o="("+n+" ";r>0&&(n=e.toStringTree(t.getChild(0),i),o=o.concat(n));for(let a=1;a<r;a++)n=e.toStringTree(t.getChild(a),i),o=o.concat(" "+n);return o=o.concat(")"),o}static getNodeText(e,t,i){if(t=t??null,i&&(t=i.ruleNames),null!==t){if(e instanceof W){const i=e.ruleContext.getAltNumber();return 0!==i?t[e.ruleIndex]+":"+i:t[e.ruleIndex]}if(e instanceof U)return e.toString();if(e instanceof F)return e.symbol.text}const s=e.getPayload();return l(s)?s.text:String(e.getPayload())}static getChildren(e){const t=[];for(let i=0;i<e.getChildCount();i++)t.push(e.getChild(i));return t}static getAncestors(e){if(null===e.parent)return[];let t=[],i=e.parent;for(;null!==i;)t=[i].concat(t),i=i.parent;return t}static isAncestorOf(e,t){if(null===e||null===t||null===e.parent)return!1;let i=t.parent;for(;null!==i;){if(e===i)return!0;i=i.parent}return!1}static findAllTokenNodes(t,i){return e.findAllNodes(t,i,!0)}static findAllRuleNodes(t,i){return e.findAllNodes(t,i,!1)}static findAllNodes(t,i,s){const n=[];return e.doFindAllNodes(t,i,s,n),n}static descendants(t){let i=[t];for(let s=0;s<t.getChildCount();s++)i=i.concat(e.descendants(t.getChild(s)));return i}static getRootOfSubtreeEnclosingRegion(e,t,i){const s=e.getChildCount();for(let n=0;n<s;n++){const s=e.getChild(n),r=this.getRootOfSubtreeEnclosingRegion(s,t,i);if(null!==r)return r}return e instanceof W&&t>=e.start.tokenIndex&&(null===e.stop||i<=e.stop.tokenIndex)?e:null}static stripChildrenOutOfRange(e,t,i,s){if(null!==e)for(let n=0;n<e.getChildCount();n++){const o=e.getChild(n),a=o.getSourceInterval();if(e instanceof W&&(a.stop<i||a.start>s)&&this.isAncestorOf(o,t)){const t=H.fromType(r.INVALID_TYPE,"...");e.children[n]=new F(t)}}}static doFindAllNodes(t,i,s,n){s&&t instanceof F?t.symbol?.type===i&&n.push(t):!s&&t instanceof W&&t.ruleIndex===i&&n.push(t);for(let r=0;r<t.getChildCount();r++)e.doFindAllNodes(t.getChild(r),i,s,n)}},W=class e{static{c(this,"ParserRuleContext")}static empty=new e(null);start=null;stop=null;children=[];invokingState;parent;constructor(e,t=-1){this.parent=e,this.invokingState=t}copyFrom(e){this.parent=e.parent,this.invokingState=e.invokingState,this.children.slice(0,this.children.length),this.start=e.start,this.stop=e.stop,e.children&&e.children.forEach((e=>{e instanceof U&&(this.children.push(e),e.parent=this)}))}enterRule(e){}exitRule(e){}addChild(e){return this.children.push(e),e}removeLastChild(){this.children.pop()}addTokenNode(e){const t=new F(e);return this.children.push(t),t.parent=this,t}addErrorNode(e){return e.parent=this,this.children.push(e),e}getChild(e,t){if(e<0||e>=this.children.length)return null;if(!t)return this.children[e];for(const i of this.children)if(i instanceof t){if(0===e)return i;e-=1}return null}getToken(e,t){if(t<0||t>=this.children.length)return null;for(const i of this.children)if("symbol"in i&&i.symbol?.type===e){if(0===t)return i;t-=1}return null}getTokens(e){const t=[];for(const i of this.children)"symbol"in i&&i.symbol?.type===e&&t.push(i);return t}getRuleContext(e,t){return this.getChild(e,t)}getRuleContexts(e){const t=[];for(const i of this.children)i instanceof e&&t.push(i);return t}getChildCount(){return this.children.length}getSourceInterval(){return null===this.start?m.INVALID_INTERVAL:null===this.stop||this.stop.tokenIndex<this.start.tokenIndex?new m(this.start.tokenIndex,this.start.tokenIndex-1):new m(this.start.tokenIndex,this.stop.tokenIndex)}depth(){let e=0,t=this;for(;null!==t;)t=t.parent,e+=1;return e}isEmpty(){return-1===this.invokingState}get ruleContext(){return this}get ruleIndex(){return-1}getPayload(){return this}getText(){return 0===this.children.length?"":this.children.map((e=>e.getText())).join("")}getAltNumber(){return Z.INVALID_ALT_NUMBER}setAltNumber(e){}accept(e){return e.visitChildren(this)}toStringTree(...e){return e.length<2?B.toStringTree(this,null,e[0]):B.toStringTree(this,e[0],e[1])}toString(e,t){e=e??null,t=t??null;let i=this,s="[";for(;null!==i&&i!==t;){if(null===e)i.isEmpty()||(s+=i.invokingState);else{const t=i.ruleIndex;s+=t>=0&&t<e.length?e[t]:""+t}null===i.parent||null===e&&i.parent.isEmpty()||(s+=" "),i=i.parent}return s+="]",s}},V=class e extends k{static{c(this,"ArrayPredictionContext")}parents=[];returnStates=[];constructor(e,t){return super(k.calculateHashCodeList(e,t)),this.parents=e,this.returnStates=t,this}isEmpty(){return this.returnStates[0]===k.EMPTY_RETURN_STATE}get length(){return this.returnStates.length}getParent(e){return this.parents[e]}getReturnState(e){return this.returnStates[e]}equals(t){return this===t||t instanceof e&&this.hashCode()===t.hashCode()&&(b(this.returnStates,t.returnStates)&&E(this.parents,t.parents))}toString(){if(this.isEmpty())return"[]";const e=[];for(let t=0;t<this.returnStates.length;t++)this.returnStates[t]!==k.EMPTY_RETURN_STATE?(e.push(this.returnStates[t].toString()),this.parents[t]?e.push(this.parents[t].toString()):e.push("null")):e.push("$");return`[${e.join(", ")}]`}},z=c(((e,t)=>t===k.EMPTY_RETURN_STATE&&null===e?N.instance:new A(e,t)),"createSingletonPredictionContext"),G=c(((e,t)=>{if(t||(t=W.empty),!t.parent||t===W.empty)return N.instance;const i=G(e,t.parent),s=e.states[t.invokingState].transitions[0];return z(i,s.followState.stateNumber)}),"predictionContextFromRuleContext"),j=c(((e,t,i)=>{if(e.isEmpty())return e;let s=i.get(e);if(s)return s;if(s=t.get(e),s)return i.set(e,s),s;let n,r=!1,o=[];for(let a=0;a<o.length;a++){const s=j(e.getParent(a),t,i);if(r||s!==e.getParent(a)){if(!r){o=[];for(let t=0;t<e.length;t++)o[t]=e.getParent(t);r=!0}o[a]=s}}return r?(n=0===o.length?N.instance:1===o.length?z(o[0]??void 0,e.getReturnState(0)):new V(o,e.returnStates),t.add(n),i.set(n,n),i.set(e,n),n):(t.add(e),i.set(e,e),e)}),"getCachedPredictionContext"),K=c(((e,t,i,s)=>{if(e===t||e.equals(t))return e;if(e instanceof A&&t instanceof A)return $(e,t,i,s);if(i){if(e instanceof N)return e;if(t instanceof N)return t}return e instanceof A&&(e=new V([e.parent],[e.returnState])),t instanceof A&&(t=new V([t.parent],[t.returnState])),Y(e,t,i,s)}),"merge"),Y=c(((e,t,i,s)=>{if(s){let i=s.get(e,t);if(i)return i;if(i=s.get(t,e),i)return i}let n=0,r=0,o=0,a=new Array(e.returnStates.length+t.returnStates.length).fill(0),c=new Array(e.returnStates.length+t.returnStates.length).fill(null);for(;n<e.returnStates.length&&r<t.returnStates.length;){const l=e.parents[n],h=t.parents[r];if(e.returnStates[n]===t.returnStates[r]){const t=e.returnStates[n];t===k.EMPTY_RETURN_STATE&&null===l&&null===h||null!==l&&null!==h&&l===h?(c[o]=l,a[o]=t):(c[o]=K(l,h,i,s),a[o]=t),n+=1,r+=1}else e.returnStates[n]<t.returnStates[r]?(c[o]=l,a[o]=e.returnStates[n],n+=1):(c[o]=h,a[o]=t.returnStates[r],r+=1);o+=1}if(n<e.returnStates.length)for(let h=n;h<e.returnStates.length;h++)c[o]=e.parents[h],a[o]=e.returnStates[h],o+=1;else for(let h=r;h<t.returnStates.length;h++)c[o]=t.parents[h],a[o]=t.returnStates[h],o+=1;if(o<c.length){if(1===o){const i=z(c[0]??void 0,a[0]);return null!==s&&s.set(e,t,i),i}c=c.slice(0,o),a=a.slice(0,o)}const l=new V(c,a);return l.equals(e)?(null!==s&&s.set(e,t,e),k.traceATNSimulator&&console.log("mergeArrays a="+e+",b="+t+" -> a"),e):l.equals(t)?(null!==s&&s.set(e,t,t),t):(q(c),null!==s&&s.set(e,t,l),k.traceATNSimulator&&console.log("mergeArrays a="+e+",b="+t+" -> "+l),l)}),"mergeArrays"),q=c((e=>{const t=new P(u.instance);for(const i of e)i&&(t.containsKey(i)||t.set(i,i));for(let i=0;i<e.length;i++)e[i]&&(e[i]=t.get(e[i])??null)}),"combineCommonParents"),$=c(((e,t,i,s)=>{if(null!==s){let i=s.get(e,t);if(null!==i)return i;if(i=s.get(t,e),null!==i)return i}const n=Q(e,t,i);if(null!==n)return null!==s&&s.set(e,t,n),n;if(e.returnState===t.returnState){const n=K(e.parent,t.parent,i,s);if(n===e.parent)return e;if(n===t.parent)return t;const r=z(n,e.returnState);return null!==s&&s.set(e,t,r),r}{let i=null;if((e===t||null!==e.parent&&e.parent.equals(t.parent))&&(i=e.parent),null!==i){const n=[e.returnState,t.returnState];e.returnState>t.returnState&&(n[0]=t.returnState,n[1]=e.returnState);const r=new V([i,i],n);return null!==s&&s.set(e,t,r),r}const n=[e.returnState,t.returnState];let r=[e.parent,t.parent];e.returnState>t.returnState&&(n[0]=t.returnState,n[1]=e.returnState,r=[t.parent,e.parent]);const o=new V(r,n);return null!==s&&s.set(e,t,o),o}}),"mergeSingletons"),Q=c(((e,t,i)=>{if(i){if(e===N.instance||t===N.instance)return N.instance}else{if(e===N.instance&&t===N.instance)return N.instance;if(e===N.instance){const e=[t.returnState,k.EMPTY_RETURN_STATE],i=[t.parent,null];return new V(i,e)}if(t===N.instance){const t=[e.returnState,k.EMPTY_RETURN_STATE],i=[e.parent,null];return new V(i,t)}}return null}),"mergeRoot"),X=class e{constructor(e){this.atn=e}static{c(this,"LL1Analyzer")}static hitPredicate=r.INVALID_TYPE;getDecisionLookahead(t){if(!t)return;const i=t.transitions.length,s=new Array(i);for(let n=0;n<i;n++){const i=new _,r=new p;this.doLook(t.transitions[n].target,void 0,N.instance,i,r,new h,!1,!1),i.length>0&&!i.contains(e.hitPredicate)&&(s[n]=i)}return s}look(e,t,i){const s=new _,n=i?G(this.atn,i):null;return this.doLook(e,t,n,s,new p,new h,!0,!0),s}doLook(t,i,s,n,o,a,c,l){const h=T.createWithContext(t,0,s);if(!o.get(h)){if(o.add(h),t===i){if(!s)return void n.addOne(r.EPSILON);if(s.isEmpty()&&l)return void n.addOne(r.EOF)}if(t.constructor.stateType===x.RULE_STOP){if(!s)return void n.addOne(r.EPSILON);if(s.isEmpty()&&l)return void n.addOne(r.EOF);if(s!==N.instance){const e=a.get(t.ruleIndex);try{a.clear(t.ruleIndex);for(let e=0;e<s.length;e++){const t=this.atn.states[s.getReturnState(e)];this.doLook(t,i,s.getParent(e),n,o,a,c,l)}}finally{e&&a.set(t.ruleIndex)}return}}for(const h of t.transitions)switch(h.transitionType){case I.RULE:{if(a.get(h.target.ruleIndex))continue;const e=z(s??void 0,h.followState.stateNumber);try{a.set(h.target.ruleIndex),this.doLook(h.target,i,e,n,o,a,c,l)}finally{a.clear(h.target.ruleIndex)}break}case I.PREDICATE:case I.PRECEDENCE:c?this.doLook(h.target,i,s,n,o,a,c,l):n.addOne(e.hitPredicate);break;case I.WILDCARD:n.addRange(r.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType);break;default:if(h.isEpsilon)this.doLook(h.target,i,s,n,o,a,c,l);else{let e=h.label;e&&(h instanceof D&&(e=e.complement(r.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType)),n.addSet(e))}}}}},Z=class{static{c(this,"ATN")}static INVALID_ALT_NUMBER=0;static LEXER=0;static PARSER=1;grammarType;maxTokenType;states=[];decisionToState=[];ruleToStartState=[];ruleToStopState=[];modeNameToStartState=new Map;ruleToTokenType=[];lexerActions=[];modeToStartState=[];analyzer;constructor(e,t){this.grammarType=e,this.maxTokenType=t,this.analyzer=new X(this)}nextTokens(e,t){if(!t&&e.nextTokenWithinRule)return e.nextTokenWithinRule;const i=this.analyzer.look(e,void 0,t);return t||(e.nextTokenWithinRule=i),i}addState(e){e&&(e.stateNumber=this.states.length),this.states.push(e)}removeState(e){this.states[e.stateNumber]=null}defineDecisionState(e){return this.decisionToState.push(e),e.decision=this.decisionToState.length-1,e.decision}getDecisionState(e){return 0===this.decisionToState.length?null:this.decisionToState[e]}getNumberOfDecisions(){return this.decisionToState.length}getExpectedTokens(e,t){if(e<0||e>=this.states.length)throw new Error("Invalid state number.");const i=this.states[e];let s=this.nextTokens(i);if(!s.contains(r.EPSILON))return s;let n=t;const o=new _;for(o.addSet(s),o.removeOne(r.EPSILON);null!==n&&n.invokingState>=0&&s.contains(r.EPSILON);){const e=this.states[n.invokingState].transitions[0];s=this.nextTokens(e.followState),o.addSet(s),o.removeOne(r.EPSILON),n=n.parent}return s.contains(r.EPSILON)&&o.addOne(r.EOF),o}},J=class e{static{c(this,"KeyTypeEqualityComparer")}static instance=new e;hashCode(e){let t=7;return t=31*t+e.state.stateNumber,t=31*t+e.alt,t=31*t+e.semanticContext.hashCode(),t}equals(e,t){return e===t||e.state.stateNumber===t.state.stateNumber&&e.alt===t.alt&&e.semanticContext.equals(t.semanticContext)}},ee=class{static{c(this,"ATNConfigSet")}configLookup=new p(J.instance);configs=[];uniqueAlt=0;hasSemanticContext=!1;dipsIntoOuterContext=!1;fullCtx=!1;readOnly=!1;conflictingAlts=null;firstStopState;#s=-1;constructor(e){if(void 0!==e)if("boolean"===typeof e)this.fullCtx=e??!0;else{const t=e;this.addAll(t.configs),this.uniqueAlt=t.uniqueAlt,this.conflictingAlts=t.conflictingAlts,this.hasSemanticContext=t.hasSemanticContext,this.dipsIntoOuterContext=t.dipsIntoOuterContext}}[Symbol.iterator](){return this.configs[Symbol.iterator]()}add(e,t=null){if(this.readOnly)throw new Error("This set is readonly");this.firstStopState||e.state.constructor.stateType!==x.RULE_STOP||(this.firstStopState=e),this.hasSemanticContext||=e.semanticContext!==y.NONE,this.dipsIntoOuterContext||=e.reachesIntoOuterContext;const i=this.configLookup.getOrAdd(e);if(i===e)return this.#s=-1,void this.configs.push(e);const s=!this.fullCtx,n=K(i.context,e.context,s,t);i.reachesIntoOuterContext||=e.reachesIntoOuterContext,i.precedenceFilterSuppressed||=e.precedenceFilterSuppressed,i.context=n}get elements(){return this.configs}getAlts(){const e=new h;for(const t of this.configs)e.set(t.alt);return e}getPredicates(){const e=[];for(const t of this.configs)t.semanticContext!==y.NONE&&e.push(t.semanticContext);return e}getStates(){const e=new p;for(const t of this.configs)e.add(t.state);return e}optimizeConfigs(e){if(this.readOnly)throw new Error("This set is readonly");if(0!==this.configLookup.size)for(const t of this.configs)t.context=e.getCachedContext(t.context)}addAll(e){for(const t of e)this.add(t);return!1}equals(e){return this===e||!(this.fullCtx!==e.fullCtx||this.uniqueAlt!==e.uniqueAlt||this.conflictingAlts!==e.conflictingAlts||this.hasSemanticContext!==e.hasSemanticContext||this.dipsIntoOuterContext!==e.dipsIntoOuterContext||!E(this.configs,e.configs))}hashCode(){return-1===this.#s&&(this.#s=this.computeHashCode()),this.#s}get length(){return this.configs.length}isEmpty(){return 0===this.configs.length}contains(e){if(null===this.configLookup)throw new Error("This method is not implemented for readonly sets.");return this.configLookup.contains(e)}containsFast(e){if(null===this.configLookup)throw new Error("This method is not implemented for readonly sets.");return this.configLookup.contains(e)}clear(){if(this.readOnly)throw new Error("This set is readonly");this.configs=[],this.#s=-1,this.configLookup=new p(J.instance)}setReadonly(e){this.readOnly=e,e&&(this.configLookup=null)}toString(){return C(this.configs)+(this.hasSemanticContext?",hasSemanticContext="+this.hasSemanticContext:"")+(this.uniqueAlt!==Z.INVALID_ALT_NUMBER?",uniqueAlt="+this.uniqueAlt:"")+(null!==this.conflictingAlts?",conflictingAlts="+this.conflictingAlts:"")+(this.dipsIntoOuterContext?",dipsIntoOuterContext":"")}computeHashCode(){let e=d.initialize();return this.configs.forEach((t=>{e=d.update(e,t.hashCode())})),e=d.finish(e,this.configs.length),e}},te=class extends x{static{c(this,"BasicState")}static stateType=x.BASIC},ie=class extends x{static{c(this,"DecisionState")}decision=-1;nonGreedy=!1},se=class extends ie{static{c(this,"BlockStartState")}endState},ne=class extends x{static{c(this,"BlockEndState")}static stateType=x.BLOCK_END;startState},re=class extends x{static{c(this,"LoopEndState")}static stateType=x.LOOP_END;loopBackState},oe=class extends x{static{c(this,"RuleStartState")}static stateType=x.RULE_START;stopState;isLeftRecursiveRule=!1},ae=class extends x{static{c(this,"RuleStopState")}static stateType=x.RULE_STOP},ce=class extends ie{static{c(this,"TokensStartState")}static stateType=x.TOKEN_START},le=class extends ie{static{c(this,"PlusLoopbackState")}static stateType=x.PLUS_LOOP_BACK},he=class extends x{static{c(this,"StarLoopbackState")}static stateType=x.STAR_LOOP_BACK},de=class extends ie{static{c(this,"StarLoopEntryState")}static stateType=x.STAR_LOOP_ENTRY;loopBackState;precedenceRuleDecision=!1},ue=class extends se{static{c(this,"PlusBlockStartState")}static stateType=x.PLUS_BLOCK_START;loopBackState},ge=class extends se{static{c(this,"StarBlockStartState")}static stateType=x.STAR_BLOCK_START},pe=class extends se{static{c(this,"BasicBlockStartState")}static stateType=x.BLOCK_START},me=class extends I{static{c(this,"AtomTransition")}labelValue;#n;constructor(e,t){super(e),this.labelValue=t,this.#n=_.of(t,t)}get label(){return this.#n}get transitionType(){return I.ATOM}matches(e){return this.labelValue===e}toString(){return this.labelValue.toString()}},fe=class extends I{static{c(this,"RuleTransition")}ruleIndex;precedence;followState;constructor(e,t,i,s){super(e),this.ruleIndex=t,this.precedence=i,this.followState=s}get isEpsilon(){return!0}get transitionType(){return I.RULE}matches(e,t,i){return!1}},_e=class extends I{static{c(this,"RangeTransition")}start;stop;#n=new _;constructor(e,t,i){super(e),this.start=t,this.stop=i,this.#n.addRange(t,i)}get label(){return this.#n}get transitionType(){return I.RANGE}matches(e,t,i){return e>=this.start&&e<=this.stop}toString(){return"'"+String.fromCharCode(this.start)+"'..'"+String.fromCharCode(this.stop)+"'"}},ve=class extends I{static{c(this,"ActionTransition")}ruleIndex;actionIndex;isCtxDependent;constructor(e,t,i,s){super(e),this.ruleIndex=t,this.actionIndex=i??-1,this.isCtxDependent=s??!1}get isEpsilon(){return!0}get transitionType(){return I.ACTION}matches(e,t,i){return!1}toString(){return"action_"+this.ruleIndex+":"+this.actionIndex}},Ce=class extends I{static{c(this,"EpsilonTransition")}#r;constructor(e,t=-1){super(e),this.#r=t}get outermostPrecedenceReturn(){return this.#r}get isEpsilon(){return!0}get transitionType(){return I.EPSILON}matches(){return!1}toString(){return"epsilon"}},Ee=class extends I{static{c(this,"WildcardTransition")}get transitionType(){return I.WILDCARD}matches(e,t,i){return e>=t&&e<=i}toString(){return"."}},be=class extends I{static{c(this,"AbstractPredicateTransition")}constructor(e){super(e)}},Se=class extends be{static{c(this,"PredicateTransition")}ruleIndex;predIndex;isCtxDependent;constructor(e,t,i,s){super(e),this.ruleIndex=t,this.predIndex=i,this.isCtxDependent=s}get isEpsilon(){return!0}matches(e,t,i){return!1}get transitionType(){return I.PREDICATE}getPredicate(){return new y.Predicate(this.ruleIndex,this.predIndex,this.isCtxDependent)}toString(){return"pred_"+this.ruleIndex+":"+this.predIndex}},ye=class extends be{static{c(this,"PrecedencePredicateTransition")}precedence;constructor(e,t){super(e),this.precedence=t}get isEpsilon(){return!0}matches(e,t,i){return!1}getPredicate(){return new y.PrecedencePredicate(this.precedence)}get transitionType(){return I.PRECEDENCE}toString(){return this.precedence+" >= _p"}},we=0,Re=1,Le=2,Te=3,xe=4,ke=5,Ae=6,Ne=7,Ie=class e{static{c(this,"LexerSkipAction")}static instance=new e;actionType;isPositionDependent=!1;constructor(){this.actionType=Ae}equals(e){return e===this}hashCode(){return Ae}execute(e){e.skip()}toString(){return"skip"}},Oe=class e{static{c(this,"LexerChannelAction")}channel;actionType;isPositionDependent=!1;cachedHashCode;constructor(e){this.actionType=we,this.channel=e}execute(e){e.channel=this.channel}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize();e=d.update(e,this.actionType),e=d.update(e,this.channel),this.cachedHashCode=d.finish(e,2)}return this.cachedHashCode}equals(t){return this===t||t instanceof e&&this.channel===t.channel}toString(){return"channel("+this.channel+")"}},De=class e{static{c(this,"LexerCustomAction")}ruleIndex;actionIndex;actionType;isPositionDependent=!0;cachedHashCode;constructor(e,t){this.actionType=Re,this.ruleIndex=e,this.actionIndex=t}execute(e){e.action(null,this.ruleIndex,this.actionIndex)}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize();e=d.update(e,this.actionType),e=d.update(e,this.ruleIndex),e=d.update(e,this.actionIndex),this.cachedHashCode=d.finish(e,3)}return this.cachedHashCode}equals(t){return this===t||t instanceof e&&(this.ruleIndex===t.ruleIndex&&this.actionIndex===t.actionIndex)}},Me=class e{static{c(this,"LexerMoreAction")}static instance=new e;actionType;isPositionDependent=!1;constructor(){this.actionType=Te}equals(e){return e===this}hashCode(){return Te}execute(e){e.more()}toString(){return"more"}},Pe=class e{static{c(this,"LexerTypeAction")}type;actionType;isPositionDependent=!1;cachedHashCode;constructor(e){this.actionType=Ne,this.type=e}execute(e){e.type=this.type}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize();e=d.update(e,this.actionType),e=d.update(e,this.type),this.cachedHashCode=d.finish(e,2)}return this.cachedHashCode}equals(t){return this===t||t instanceof e&&this.type===t.type}toString(){return"type("+this.type+")"}},Fe=class e{static{c(this,"LexerPushModeAction")}mode;actionType;isPositionDependent=!1;cachedHashCode;constructor(e){this.actionType=ke,this.mode=e}execute(e){e.pushMode(this.mode)}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize();e=d.update(e,this.actionType),e=d.update(e,this.mode),this.cachedHashCode=d.finish(e,2)}return this.cachedHashCode}equals(t){return this===t||t instanceof e&&this.mode===t.mode}toString(){return"pushMode("+this.mode+")"}},Ue=class e{static{c(this,"LexerPopModeAction")}static instance=new e;actionType;isPositionDependent=!1;constructor(){this.actionType=xe}equals(e){return e===this}hashCode(){return xe}execute(e){e.popMode()}toString(){return"popMode"}},He=class e{static{c(this,"LexerModeAction")}mode;actionType;isPositionDependent=!1;cachedHashCode;constructor(e){this.actionType=Le,this.mode=e}execute(e){e.mode=this.mode}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize();e=d.update(e,this.actionType),e=d.update(e,this.mode),this.cachedHashCode=d.finish(e,2)}return this.cachedHashCode}equals(t){return this===t||t instanceof e&&this.mode===t.mode}toString(){return"mode("+this.mode+")"}},Be=class e{static{c(this,"ATNDeserializer")}static SERIALIZED_VERSION=4;static stateTypeMapper=new Map([[x.INVALID_TYPE,void 0],[x.BASIC,te],[x.RULE_START,oe],[x.BLOCK_START,pe],[x.PLUS_BLOCK_START,ue],[x.STAR_BLOCK_START,ge],[x.TOKEN_START,ce],[x.RULE_STOP,ae],[x.BLOCK_END,ne],[x.STAR_LOOP_BACK,he],[x.STAR_LOOP_ENTRY,de],[x.PLUS_LOOP_BACK,le],[x.LOOP_END,re]]);static lexerActionFactoryMapper=new Map([[we,e=>new Oe(e)],[Re,(e,t)=>new De(e,t)],[Le,e=>new He(e)],[Te,()=>Me.instance],[xe,()=>Ue.instance],[ke,e=>new Fe(e)],[Ae,()=>Ie.instance],[Ne,e=>new Pe(e)]]);data=[];pos=0;deserializationOptions;actionFactories;constructor(e){e||(e={readOnly:!1,verifyATN:!0,generateRuleBypassTransitions:!1}),this.deserializationOptions=e}deserialize(e){this.data=e,this.checkVersion();const t=this.readATN();this.readStates(t),this.readRules(t),this.readModes(t);const i=[];return this.readSets(t,i),this.readEdges(t,i),this.readDecisions(t),this.readLexerActions(t),this.markPrecedenceDecisions(t),this.verifyATN(t),this.deserializationOptions.generateRuleBypassTransitions&&t.grammarType===Z.PARSER&&(this.generateRuleBypassTransitions(t),this.verifyATN(t)),t}checkVersion(){const t=this.data[this.pos++];if(t!==e.SERIALIZED_VERSION)throw new Error("Could not deserialize ATN with version "+t+" (expected "+e.SERIALIZED_VERSION+").")}readATN(){const e=this.data[this.pos++],t=this.data[this.pos++];return new Z(e,t)}readStates(e){let t,i;const s=[],n=[],r=this.data[this.pos++];for(let c=0;c<r;c++){const t=this.data[this.pos++];if(t===x.INVALID_TYPE){e.addState(null);continue}const i=this.data[this.pos++],r=this.stateFactory(t,i);if(t===x.LOOP_END){const e=this.data[this.pos++];s.push([r,e])}else if(r instanceof se){const e=this.data[this.pos++];n.push([r,e])}e.addState(r)}for(t=0;t<s.length;t++){const i=s[t];i[0].loopBackState=e.states[i[1]]??void 0}for(t=0;t<n.length;t++){const i=n[t];i[0].endState=e.states[i[1]]}const o=this.data[this.pos++];for(t=0;t<o;t++)i=this.data[this.pos++],e.states[i].nonGreedy=!0;const a=this.data[this.pos++];for(t=0;t<a;t++)i=this.data[this.pos++],e.states[i].isLeftRecursiveRule=!0}readRules(e){let t;const i=this.data[this.pos++];for(e.grammarType===Z.LEXER&&(e.ruleToTokenType=new Array(i),e.ruleToTokenType.fill(0)),e.ruleToStartState=new Array(i),e.ruleToStartState.fill(null),t=0;t<i;t++){const i=this.data[this.pos++];if(e.ruleToStartState[t]=e.states[i],e.grammarType===Z.LEXER){const i=this.data[this.pos++];e.ruleToTokenType[t]=i}}for(e.ruleToStopState=new Array(i),e.ruleToStopState.fill(null),t=0;t<e.states.length;t++){const i=e.states[t];i instanceof ae&&(e.ruleToStopState[i.ruleIndex]=i,e.ruleToStartState[i.ruleIndex].stopState=i)}}readModes(e){const t=this.data[this.pos++];for(let i=0;i<t;i++){const t=this.data[this.pos++];e.modeToStartState.push(e.states[t])}}readSets(e,t){const i=this.data[this.pos++];for(let s=0;s<i;s++){const e=new _;t.push(e);const i=this.data[this.pos++];0!==this.data[this.pos++]&&e.addOne(-1);for(let t=0;t<i;t++){const t=this.data[this.pos++],i=this.data[this.pos++];e.addRange(t,i)}}}readEdges(e,t){let i,s,n,r,o;const a=this.data[this.pos++];for(i=0;i<a;i++){const i=this.data[this.pos++],s=this.data[this.pos++],n=this.data[this.pos++],o=this.data[this.pos++],a=this.data[this.pos++],c=this.data[this.pos++];r=this.edgeFactory(e,n,s,o,a,c,t);e.states[i].addTransition(r)}for(i=0;i<e.states.length;i++)for(n=e.states[i],s=0;s<n.transitions.length;s++){const t=n.transitions[s];if(!(t instanceof fe))continue;let i=-1;e.ruleToStartState[t.target.ruleIndex].isLeftRecursiveRule&&0===t.precedence&&(i=t.target.ruleIndex),r=new Ce(t.followState,i),e.ruleToStopState[t.target.ruleIndex].addTransition(r)}for(i=0;i<e.states.length;i++){if(n=e.states[i],n instanceof se){if(!n.endState)throw new Error("IllegalState");if(n.endState.startState)throw new Error("IllegalState");n.endState.startState=n}if(n instanceof le)for(s=0;s<n.transitions.length;s++)o=n.transitions[s].target,o instanceof ue&&(o.loopBackState=n);else if(n instanceof he)for(s=0;s<n.transitions.length;s++)o=n.transitions[s].target,o instanceof de&&(o.loopBackState=n)}}readDecisions(e){const t=this.data[this.pos++];for(let i=0;i<t;i++){const t=this.data[this.pos++],s=e.states[t];e.decisionToState.push(s),s.decision=i}}readLexerActions(e){if(e.grammarType===Z.LEXER){const t=this.data[this.pos++];e.lexerActions=[];for(let i=0;i<t;i++){const t=this.data[this.pos++],i=this.data[this.pos++],s=this.data[this.pos++];e.lexerActions.push(this.lexerActionFactory(t,i,s))}}}generateRuleBypassTransitions(e){let t;const i=e.ruleToStartState.length;for(t=0;t<i;t++)e.ruleToTokenType[t]=e.maxTokenType+t+1;for(t=0;t<i;t++)this.generateRuleBypassTransition(e,t)}generateRuleBypassTransition(e,t){let i,s;const n=new pe;n.ruleIndex=t,e.addState(n);const r=new ne;r.ruleIndex=t,e.addState(r),n.endState=r,e.defineDecisionState(n),r.startState=n;let o=null,a=null;if(e.ruleToStartState[t].isLeftRecursiveRule){for(a=null,i=0;i<e.states.length;i++)if(s=e.states[i],this.stateIsEndStateFor(s,t)){a=s,o=s.loopBackState.transitions[0];break}if(null===o)throw new Error("Couldn't identify final state of the precedence rule prefix section.")}else a=e.ruleToStopState[t];for(i=0;i<e.states.length;i++){s=e.states[i];for(const e of s.transitions)e!==o&&e.target===a&&(e.target=r)}const c=e.ruleToStartState[t];for(;c.transitions.length>0;){const e=c.removeTransition(c.transitions.length-1);n.addTransition(e)}e.ruleToStartState[t].addTransition(new Ce(n)),a&&r.addTransition(new Ce(a));const l=new te;e.addState(l),l.addTransition(new me(r,e.ruleToTokenType[t])),n.addTransition(new Ce(l))}stateIsEndStateFor(e,t){if(e.ruleIndex!==t)return null;if(!(e instanceof de))return null;const i=e.transitions[e.transitions.length-1].target;return i instanceof re&&i.epsilonOnlyTransitions&&i.transitions[0].target instanceof ae?e:null}markPrecedenceDecisions(e){for(const t of e.states)if(t instanceof de&&e.ruleToStartState[t.ruleIndex].isLeftRecursiveRule){const e=t.transitions[t.transitions.length-1].target;e instanceof re&&e.epsilonOnlyTransitions&&e.transitions[0].target instanceof ae&&(t.precedenceRuleDecision=!0)}}verifyATN(e){if(this.deserializationOptions.verifyATN)for(const t of e.states)if(null!==t)if(this.checkCondition(t.epsilonOnlyTransitions||t.transitions.length<=1),t instanceof ue)this.checkCondition(null!==t.loopBackState);else if(t instanceof de)if(this.checkCondition(null!==t.loopBackState),this.checkCondition(2===t.transitions.length),t.transitions[0].target instanceof ge)this.checkCondition(t.transitions[1].target instanceof re),this.checkCondition(!t.nonGreedy);else{if(!(t.transitions[0].target instanceof re))throw new Error("IllegalState");this.checkCondition(t.transitions[1].target instanceof ge),this.checkCondition(t.nonGreedy)}else t instanceof he?(this.checkCondition(1===t.transitions.length),this.checkCondition(t.transitions[0].target instanceof de)):t instanceof re?this.checkCondition(null!==t.loopBackState):t instanceof oe?this.checkCondition(null!==t.stopState):t instanceof se?this.checkCondition(null!==t.endState):t instanceof ne?this.checkCondition(null!==t.startState):t instanceof ie?this.checkCondition(t.transitions.length<=1||t.decision>=0):this.checkCondition(t.transitions.length<=1||t instanceof ae)}checkCondition(e,t){if(!e)throw void 0!==t&&null!==t||(t="IllegalState"),t}edgeFactory(e,t,i,s,n,o,a){const c=e.states[i];switch(t){case I.EPSILON:return new Ce(c);case I.RANGE:return new _e(c,0!==o?r.EOF:s,n);case I.RULE:return new fe(e.states[s],n,o,c);case I.PREDICATE:return new Se(c,s,n,0!==o);case I.PRECEDENCE:return new ye(c,s);case I.ATOM:return new me(c,0!==o?r.EOF:s);case I.ACTION:return new ve(c,s,n,0!==o);case I.SET:return new O(c,a[s]);case I.NOT_SET:return new D(c,a[s]);case I.WILDCARD:return new Ee(c);default:throw new Error("The specified transition type: "+t+" is not valid.")}}stateFactory(t,i){const s=e.stateTypeMapper.get(t);if(!s)throw new Error("The specified state type "+t+" is not valid.");const n=new s;return n.ruleIndex=i,n}lexerActionFactory(t,i,s){const n=e.lexerActionFactoryMapper.get(t);if(!n)throw new Error("The specified lexer action type "+t+" is not valid.");return n(i,s)}},We=class e extends P{static{c(this,"OrderedHashMap")}#o=[];clear(){super.clear(),this.#o=[]}get(e){return super.get(e)}set(e,t){const i=super.set(e,t);return void 0===i&&this.#o.push(e),i}setIfAbsent(e,t){const i=super.setIfAbsent(e,t);return void 0===i&&this.#o.push(e),i}values(){return{[Symbol.iterator]:()=>{let e=0;return{next:c((()=>e<this.#o.length?{done:!1,value:super.get(this.#o[e++])}:{done:!0,value:void 0}),"next")}}}}keys(){return this.#o[Symbol.iterator]()}equals(t){return t instanceof e&&super.equals(t)}},Ve=(class e{static{c(this,"ATNSerializer")}atn;data=[];sets=new We(u.instance);nonGreedyStates=[];precedenceStates=[];constructor(e){this.atn=e}static getSerialized(t){return new e(t).serialize()}static serializeSets(e,t){e.push(t.length);for(const i of t){const t=i.contains(r.EOF),s=[...i];t&&s[0].stop===r.EOF?e.push(s.length-1):e.push(s.length),e.push(t?1:0);for(const i of s){if(i.start===r.EOF){if(i.stop===r.EOF)continue;e.push(0)}else e.push(i.start);e.push(i.stop)}}}serialize(){this.addPreamble();const e=this.addEdges();this.addNonGreedyStates(),this.addPrecedenceStates(),this.addRuleStatesAndLexerTokenTypes(),this.addModeStartStates();const t=this.addSets();return this.addEdges(e,t),this.addDecisionStartStates(),this.addLexerActions(),this.data}addPreamble(){this.data.push(Be.SERIALIZED_VERSION),this.data.push(this.atn.grammarType),this.data.push(this.atn.maxTokenType)}addLexerActions(){if(this.atn.grammarType===Z.LEXER){this.data.push(this.atn.lexerActions.length);for(const e of this.atn.lexerActions)switch(this.data.push(e.actionType),e.actionType){case we:{const t=e.channel;this.data.push(t),this.data.push(0);break}case Re:{const t=e.ruleIndex,i=e.actionIndex;this.data.push(t),this.data.push(i);break}case Le:{const t=e.mode;this.data.push(t),this.data.push(0);break}case Te:case xe:this.data.push(0),this.data.push(0);break;case ke:{const t=e.mode;this.data.push(t),this.data.push(0);break}case Ae:this.data.push(0),this.data.push(0);break;case Ne:{const t=e.type;this.data.push(t),this.data.push(0);break}default:throw new Error(`The specified lexer action type ${e.actionType} is not valid.`)}}}addDecisionStartStates(){this.data.push(this.atn.decisionToState.length);for(const e of this.atn.decisionToState)this.data.push(e.stateNumber)}addEdges(...e){switch(e.length){case 0:{let e=0;this.data.push(this.atn.states.length);for(const t of this.atn.states){if(null===t){this.data.push(x.INVALID_TYPE);continue}const i=t.constructor.stateType;t instanceof ie&&t.nonGreedy&&this.nonGreedyStates.push(t.stateNumber),t instanceof oe&&t.isLeftRecursiveRule&&this.precedenceStates.push(t.stateNumber),this.data.push(i),this.data.push(t.ruleIndex),t.constructor.stateType===x.LOOP_END?this.data.push(t.loopBackState.stateNumber):t instanceof se&&this.data.push(t.endState.stateNumber),t.constructor.stateType!==x.RULE_STOP&&(e+=t.transitions.length);for(const e of t.transitions){const t=e.transitionType;if(t===I.SET||t===I.NOT_SET){const t=e;this.sets.set(t.set,!0)}}}return e}case 2:{const[t,i]=e;this.data.push(t);for(const e of this.atn.states)if(null!==e&&e.constructor.stateType!==x.RULE_STOP)for(const t of e.transitions){if(null===this.atn.states[t.target.stateNumber])throw new Error("Cannot serialize a transition to a removed state.");const s=e.stateNumber;let n=t.target.stateNumber;const o=t.transitionType;let a=0,c=0,l=0;switch(o){case I.RULE:n=t.followState.stateNumber,a=t.target.stateNumber,c=t.ruleIndex,l=t.precedence;break;case I.PRECEDENCE:a=t.precedence;break;case I.PREDICATE:{const e=t;a=e.ruleIndex,c=e.predIndex,l=e.isCtxDependent?1:0;break}case I.RANGE:a=t.start,c=t.stop,a===r.EOF&&(a=0,l=1);break;case I.ATOM:a=t.labelValue,a===r.EOF&&(a=0,l=1);break;case I.ACTION:{const e=t;a=e.ruleIndex,c=e.actionIndex,l=e.isCtxDependent?1:0;break}case I.SET:case I.NOT_SET:a=i.get(t.set)}this.data.push(s),this.data.push(n),this.data.push(o),this.data.push(a),this.data.push(c),this.data.push(l)}break}default:throw new Error("Invalid number of arguments")}}addSets(){e.serializeSets(this.data,[...this.sets.keys()]);const t=new P;let i=0;for(const e of this.sets.keys())t.set(e,i++);return t}addModeStartStates(){const e=this.atn.modeToStartState.length;if(this.data.push(e),e>0)for(const t of this.atn.modeToStartState)this.data.push(t.stateNumber)}addRuleStatesAndLexerTokenTypes(){const e=this.atn.ruleToStartState.length;this.data.push(e);for(let t=0;t<e;t++){const e=this.atn.ruleToStartState[t];this.data.push(e.stateNumber),this.atn.grammarType===Z.LEXER&&this.data.push(this.atn.ruleToTokenType[t])}}addPrecedenceStates(){this.data.push(this.precedenceStates.length);for(const e of this.precedenceStates)this.data.push(e)}addNonGreedyStates(){this.data.push(this.nonGreedyStates.length);for(const e of this.nonGreedyStates)this.data.push(e)}},class e{static{c(this,"DFAState")}stateNumber=-1;configs;edges=[];isAcceptState=!1;prediction=-1;lexerActionExecutor=null;requiresFullContext=!1;predicates=null;constructor(e){e&&(this.configs=e)}static fromState(t){const i=new e;return i.stateNumber=t,i}static fromConfigs(t){return new e(t)}static hashCode(e){return e.configs.hashCode()}static equals(e,t){return e.configs.equals(t.configs)}getAltSet(){const e=new Set;for(const t of this.configs)e.add(t.alt);return 0===e.size?null:e}toString(){let e="";return e+=this.stateNumber,e+=":",e+=this.configs?this.configs.toString():"",this.isAcceptState&&(e+="=>",this.predicates?e+=C(this.predicates):e+=this.prediction),e.toString()}}),ze=class{static{c(this,"ATNSimulator")}static ERROR=Ve.fromState(2147483647);atn;sharedContextCache;constructor(e,t){return this.atn=e,this.sharedContextCache=t,this}getCachedContext(e){if(!this.sharedContextCache)return e;const t=new P(u.instance);return j(e,this.sharedContextCache,t)}},Ge=(class e{static{c(this,"CodePointTransitions")}static createWithCodePoint(t,i){return e.createWithCodePointRange(t,i,i)}static createWithCodePointRange(e,t,i){return t===i?new me(e,t):new _e(e,t,i)}},class{static{c(this,"DecisionInfo")}decision=0;invocations=0;timeInPrediction=0;sllTotalLook=0;sllMinLook=0;sllMaxLook=0;sllMaxLookEvent;llTotalLook=0;llMinLook=0;llMaxLook=0;llMaxLookEvent;contextSensitivities;errors;ambiguities;predicateEvals;sllATNTransitions=0;sllDFATransitions=0;llFallback=0;llATNTransitions=0;llDFATransitions=0;constructor(e){this.decision=e,this.contextSensitivities=[],this.errors=[],this.ambiguities=[],this.predicateEvals=[]}toString(){return"{decision="+this.decision+", contextSensitivities="+this.contextSensitivities.length+", errors="+this.errors.length+", ambiguities="+this.ambiguities.length+", sllLookahead="+this.sllTotalLook+", sllATNTransitions="+this.sllATNTransitions+", sllDFATransitions="+this.sllDFATransitions+", llFallback="+this.llFallback+", llLookahead="+this.llTotalLook+", llATNTransitions="+this.llATNTransitions+"}"}}),je=class e extends T{static{c(this,"LexerATNConfig")}lexerActionExecutor;passedThroughNonGreedyDecision;constructor(t,i,s,n){return super(t,i,s??t.context,s?y.NONE:t.semanticContext),this.lexerActionExecutor=s?n:t.lexerActionExecutor??null,this.passedThroughNonGreedyDecision=e.checkNonGreedyDecision(t,this.state),this}static createWithExecutor(t,i,s){return new e(t,i,t.context,s)}static createWithConfig(t,i,s){return new e(i,t,s??null,i.lexerActionExecutor)}static createWithContext(t,i,s){return new e({alt:i},t,s,null)}static checkNonGreedyDecision(e,t){return e.passedThroughNonGreedyDecision||"nonGreedy"in t&&t.nonGreedy}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize(7);e=d.update(e,this.state.stateNumber),e=d.update(e,this.alt),e=d.updateFromComparable(e,this.context),e=d.updateFromComparable(e,this.semanticContext),e=d.update(e,this.passedThroughNonGreedyDecision?1:0),e=d.updateFromComparable(e,this.lexerActionExecutor),e=d.finish(e,6),this.cachedHashCode=e}return this.cachedHashCode}equals(e){return this===e||this.passedThroughNonGreedyDecision===e.passedThroughNonGreedyDecision&&(this.lexerActionExecutor&&e.lexerActionExecutor?this.lexerActionExecutor.equals(e.lexerActionExecutor):!e.lexerActionExecutor)&&super.equals(e)}},Ke=class{static{c(this,"BaseErrorListener")}syntaxError(e,t,i,s,n,r){}reportAmbiguity(e,t,i,s,n,r,o){}reportAttemptingFullContext(e,t,i,s,n,r){}reportContextSensitivity(e,t,i,s,n,r){}},Ye=class e extends Ke{static{c(this,"ConsoleErrorListener")}static instance=new e;syntaxError(e,t,i,s,n,r){console.error("line "+i+":"+s+" "+n)}},qe=class extends Ke{constructor(e){return super(),this.delegates=e,this}static{c(this,"ProxyErrorListener")}syntaxError(e,t,i,s,n,r){this.delegates.forEach((o=>{o.syntaxError(e,t,i,s,n,r)}))}reportAmbiguity(e,t,i,s,n,r,o){this.delegates.forEach((a=>{a.reportAmbiguity(e,t,i,s,n,r,o)}))}reportAttemptingFullContext(e,t,i,s,n,r){this.delegates.forEach((o=>{o.reportAttemptingFullContext(e,t,i,s,n,r)}))}reportContextSensitivity(e,t,i,s,n,r){this.delegates.forEach((o=>{o.reportContextSensitivity(e,t,i,s,n,r)}))}},$e=class e{static{c(this,"Recognizer")}static EOF=-1;static tokenTypeMapCache=new Map;static ruleIndexMapCache=new Map;interpreter;listeners=[Ye.instance];stateNumber=-1;checkVersion(e){const t="4.13.1";t!==e&&console.error("ANTLR runtime and generated code versions disagree: "+t+"!="+e)}addErrorListener(e){this.listeners.push(e)}removeErrorListeners(){this.listeners=[]}removeErrorListener(e){for(let t=0;t<this.listeners.length;t++)if(this.listeners[t]===e)return void this.listeners.splice(t,1)}getErrorListeners(){return this.listeners}getTokenTypeMap(){const t=this.vocabulary;let i=e.tokenTypeMapCache.get(t);if(!i){i=new Map;for(let e=0;e<=this.atn.maxTokenType;e++){const s=t.getLiteralName(e);s&&i.set(s,e);const n=t.getSymbolicName(e);n&&i.set(n,e)}i.set("EOF",r.EOF),e.tokenTypeMapCache.set(t,i)}return i}getRuleIndexMap(){const t=this.ruleNames;let i=e.ruleIndexMapCache.get(t);return i||(i=new Map,t.forEach(((e,t)=>i.set(e,t))),e.ruleIndexMapCache.set(t,i)),i}getTokenType(e){const t=this.getTokenTypeMap().get(e);return t||r.INVALID_TYPE}getErrorHeader(e){const t=e.offendingToken?.line,i=e.offendingToken?.column;return"line "+t+":"+i}get errorListenerDispatch(){return new qe(this.listeners)}sempred(e,t,i){return!0}precpred(e,t){return!0}action(e,t,i){}get atn(){return this.interpreter.atn}get state(){return this.stateNumber}set state(e){this.stateNumber=e}getParseInfo(){}},Qe=class e{static{c(this,"CommonTokenFactory")}static DEFAULT=new e;copyText=!1;constructor(e){this.copyText=e??!1}create(e,t,i,s,n,r,o,a){const c=H.fromSource(e,t,s,n,r);return c.line=o,c.column=a,i?c.text=i:this.copyText&&null!==e[1]&&(c.text=e[1].getTextFromRange(n,r)),c}},Xe=class e extends Error{static{c(this,"RecognitionException")}ctx;offendingToken=null;offendingState=-1;recognizer;input;constructor(t){super(t.message),Error.captureStackTrace&&Error.captureStackTrace(this,e),this.message=t.message,this.recognizer=t.recognizer,this.input=t.input,this.ctx=t.ctx,null!==this.recognizer&&(this.offendingState=this.recognizer.state)}getExpectedTokens(){return null!==this.recognizer&&null!==this.ctx?this.recognizer.atn.getExpectedTokens(this.offendingState,this.ctx):null}toString(){return this.message}},Ze=class extends Xe{static{c(this,"LexerNoViableAltException")}startIndex;deadEndConfigs;constructor(e,t,i,s){super({message:"",recognizer:e,input:t,ctx:null}),this.startIndex=i,this.deadEndConfigs=s}toString(){let e="";return this.input&&this.startIndex>=0&&this.startIndex<this.input.size&&(e=this.input.getTextFromRange(this.startIndex,this.startIndex)),`LexerNoViableAltException(${e})`}},Je=class e extends $e{static{c(this,"Lexer")}static DEFAULT_MODE=0;static MORE=-2;static SKIP=-3;static DEFAULT_TOKEN_CHANNEL=r.DEFAULT_CHANNEL;static HIDDEN=r.HIDDEN_CHANNEL;options={minDFAEdge:0,maxDFAEdge:256,minCodePoint:0,maxCodePoint:1114111};tokenStartCharIndex=-1;channel=0;type=0;mode=e.DEFAULT_MODE;currentTokenColumn=0;currentTokenStartLine=0;input;token=null;hitEOF=!1;factory;#a=[];#i;constructor(e,t){super(),this.options={...this.options,...t},this.input=e,this.factory=Qe.DEFAULT}reset(t=!0){t&&this.input.seek(0),this.token=null,this.type=r.INVALID_TYPE,this.channel=r.DEFAULT_CHANNEL,this.tokenStartCharIndex=-1,this.currentTokenColumn=-1,this.currentTokenStartLine=-1,this.#i=void 0,this.hitEOF=!1,this.mode=e.DEFAULT_MODE,this.#a=[],this.interpreter.reset()}nextToken(){if(null===this.input)throw new Error("nextToken requires a non-null input stream.");const t=this.input.mark();try{for(;;){if(this.hitEOF)return this.emitEOF(),this.token;this.token=null,this.channel=r.DEFAULT_CHANNEL,this.tokenStartCharIndex=this.input.index,this.currentTokenColumn=this.interpreter.column,this.currentTokenStartLine=this.interpreter.line,this.#i=void 0;let t=!1;for(;;){this.type=r.INVALID_TYPE;let s=e.SKIP;try{s=this.interpreter.match(this.input,this.mode)}catch(i){if(!(i instanceof Ze))throw i;this.notifyListeners(i),this.recover(i)}if(this.input.LA(1)===r.EOF&&(this.hitEOF=!0),this.type===r.INVALID_TYPE&&(this.type=s),this.type===e.SKIP){t=!0;break}if(this.type!==e.MORE)break}if(!t)return null===this.token&&this.emit(),this.token}}finally{this.input.release(t)}}skip(){this.type=e.SKIP}more(){this.type=e.MORE}pushMode(e){at.debug&&console.log("pushMode "+e),this.#a.push(this.mode),this.mode=e}popMode(){if(0===this.#a.length)throw new Error("Empty Stack");return at.debug&&console.log("popMode back to "+this.#a.slice(0,-1)),this.mode=this.#a.pop(),this.mode}get modeStack(){return this.#a}emitToken(e){this.token=e}emit(){const e=this.factory.create([this,this.input],this.type,this.#i,this.channel,this.tokenStartCharIndex,this.getCharIndex()-1,this.currentTokenStartLine,this.currentTokenColumn);return this.emitToken(e),e}emitEOF(){const e=this.factory.create([this,this.input],r.EOF,void 0,r.DEFAULT_CHANNEL,this.input.index,this.input.index-1,this.line,this.column);return this.emitToken(e),e}getCharIndex(){return this.input.index}getAllTokens(){const e=[];let t=this.nextToken();for(;t.type!==r.EOF;)e.push(t),t=this.nextToken();return e}notifyListeners(e){const t=this.tokenStartCharIndex,i=this.input.index,s=this.input.getTextFromRange(t,i),n="token recognition error at: '"+this.getErrorDisplay(s)+"'";this.errorListenerDispatch.syntaxError(this,null,this.currentTokenStartLine,this.currentTokenColumn,n,e)}getErrorDisplay(e){return e}getErrorDisplayForChar(e){return e.charCodeAt(0)===r.EOF?"<EOF>":"\n"===e?"\\n":"\t"===e?"\\t":"\r"===e?"\\r":e}getCharErrorDisplay(e){return"'"+this.getErrorDisplayForChar(e)+"'"}recover(e){this.input.LA(1)!==r.EOF&&(e instanceof Ze?this.interpreter.consume(this.input):this.input.consume())}get inputStream(){return this.input}set inputStream(e){this.reset(!1),this.input=e}set tokenFactory(e){this.factory=e}get tokenFactory(){return this.factory}get sourceName(){return this.input.getSourceName()}get line(){return this.interpreter.line}set line(e){this.interpreter.line=e}get column(){return this.interpreter.column}set column(e){this.interpreter.column=e}get text(){return this.#i?this.#i:this.interpreter.getText(this.input)}set text(e){this.#i=e}},et=class{static{c(this,"DFASerializer")}dfa;vocabulary;constructor(e,t){this.dfa=e,this.vocabulary=t}toString(){if(!this.dfa.s0)return"";let e="";const t=this.dfa.getStates();for(const i of t){let t=0;t=i.edges.length;for(let s=0;s<t;s++){const t=i.edges[s];if(t&&2147483647!==t.stateNumber){e+=this.getStateString(i);e+="-",e+=this.getEdgeLabel(s),e+="->",e+=this.getStateString(t),e+="\n"}}}return e}getEdgeLabel(e){return`${this.vocabulary.getDisplayName(e-1)}`}getStateString(e){const t=e.stateNumber,i=(e.isAcceptState?":":"")+"s"+t+(e.requiresFullContext?"^":"");return e.isAcceptState?null!==e.predicates?`${i}=>${e.predicates.toString()}`:`${i}=>${e.prediction}`:`${i}`}},tt=class extends et{static{c(this,"LexerDFASerializer")}constructor(e){super(e,f.EMPTY_VOCABULARY)}getEdgeLabel=c((e=>"'"+String.fromCharCode(e)+"'"),"getEdgeLabel")},it=class{static{c(this,"DFA")}s0;decision;atnStartState;isPrecedenceDfa;states=new Map;constructor(e,t){this.atnStartState=e,this.decision=t??0;let i=!1;e instanceof de&&e.precedenceRuleDecision&&(i=!0,this.s0=Ve.fromState(-1)),this.isPrecedenceDfa=i}[Symbol.iterator]=()=>this.states.values()[Symbol.iterator]();getPrecedenceStartState=c((e=>{if(!this.isPrecedenceDfa)throw new Error("Only precedence DFAs may contain a precedence start state.");if(!(!this.s0||!this.s0.edges||e<0||e>=this.s0.edges.length))return this.s0.edges[e]}),"getPrecedenceStartState");setPrecedenceStartState=c(((e,t)=>{if(!this.isPrecedenceDfa)throw new Error("Only precedence DFAs may contain a precedence start state.");e<0||!this.s0||(this.s0.edges[e]=t)}),"setPrecedenceStartState");getStates(){const e=[...this.states.values()];return e.sort(((e,t)=>e.stateNumber-t.stateNumber)),e}getState(e){return this.states.get(e.configs.hashCode())??null}getStateForConfigs(e){return this.states.get(e.hashCode())??null}addState(e){const t=e.configs.hashCode();this.states.has(t)||(this.states.set(t,e),e.stateNumber=this.states.size-1)}toString(e){if(!e)return this.toString(f.EMPTY_VOCABULARY);if(!this.s0)return"";return new et(this,e).toString()??""}toLexerString(){if(!this.s0)return"";return new tt(this).toString()??""}get length(){return this.states.size}},st=class e{static{c(this,"LexerIndexedCustomAction")}offset;action;actionType;isPositionDependent=!0;cachedHashCode;constructor(e,t){this.actionType=t.actionType,this.offset=e,this.action=t}execute(e){this.action.execute(e)}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize();e=d.update(e,this.offset),e=d.updateFromComparable(e,this.action),this.cachedHashCode=d.finish(e,2)}return this.cachedHashCode}equals(t){return this===t||t instanceof e&&(this.offset===t.offset&&this.action===t.action)}},nt=class e{static{c(this,"LexerActionExecutor")}lexerActions;actionType;isPositionDependent=!1;cachedHashCode;constructor(e){return this.actionType=-1,this.lexerActions=e??[],this}static append(t,i){if(null===t)return new e([i]);const s=t.lexerActions.concat([i]);return new e(s)}fixOffsetBeforeMatch(t){let i=null;for(let e=0;e<this.lexerActions.length;e++)!this.lexerActions[e].isPositionDependent||this.lexerActions[e]instanceof st||(null===i&&(i=this.lexerActions.concat([])),i[e]=new st(t,this.lexerActions[e]));return null===i?this:new e(i)}execute(e,t,i){if(void 0===t||void 0===i)return;let s=!1;const n=t.index;try{for(const r of this.lexerActions){let o=r;if(r instanceof st){const e=r.offset;t.seek(i+e),o=r.action,s=i+e!==n}else r.isPositionDependent&&(t.seek(n),s=!1);o.execute(e)}}finally{s&&t.seek(n)}}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize(7);for(const t of this.lexerActions)e=d.update(e,t.hashCode());this.cachedHashCode=d.finish(e,this.lexerActions.length)}return this.cachedHashCode}equals(e){return this===e||this.cachedHashCode===e.cachedHashCode&&(this.lexerActions.length===e.lexerActions.length&&this.lexerActions.every(((t,i)=>t.equals(e.lexerActions[i]))))}},rt=class e extends p{static{c(this,"OrderedHashSet")}elements=[];getOrAdd(e){const t=this.size,i=super.getOrAdd(e);return this.size>t&&this.elements.push(e),i}equals(t){return t instanceof e&&super.equals(t)}clear(){super.clear(),this.elements=[]}*[Symbol.iterator](){yield*this.elements}toArray(){return this.elements.slice(0)}},ot=class extends ee{static{c(this,"OrderedATNConfigSet")}constructor(){super(),this.configLookup=new rt}},at=class e extends ze{static{c(this,"LexerATNSimulator")}static debug=!1;decisionToDFA;recognizer=null;startIndex=-1;line=1;column=0;mode=Je.DEFAULT_MODE;prevAccept;options;lexerATNConfigFactory;constructor(e,t,i,s){super(t,s),this.decisionToDFA=i,this.recognizer=e,this.options=e?e.options:{minDFAEdge:0,maxDFAEdge:256,minCodePoint:0,maxCodePoint:1114111}}match(e,t){this.mode=t;const i=e.mark();try{this.startIndex=e.index,this.prevAccept=void 0;const i=this.decisionToDFA[t];return i.s0?this.execATN(e,i.s0):this.matchATN(e)}finally{e.release(i)}}reset(){this.prevAccept=void 0,this.startIndex=-1,this.line=1,this.column=0,this.mode=Je.DEFAULT_MODE}clearDFA(){for(let e=0;e<this.decisionToDFA.length;e++)this.decisionToDFA[e]=new it(this.atn.getDecisionState(e),e)}getDFA(e){return this.decisionToDFA[e]}getText(e){return e.getTextFromRange(this.startIndex,e.index-1)}consume(e){e.LA(1)==="\n".charCodeAt(0)?(this.line+=1,this.column=0):this.column+=1,e.consume()}getTokenName(e){return e===r.EOF?"EOF":"'"+String.fromCharCode(e)+"'"}matchATN(t){const i=this.atn.modeToStartState[this.mode];e.debug&&console.log("matchATN mode "+this.mode+" start: "+i);const s=this.mode,n=this.computeStartState(t,i),r=n.hasSemanticContext;n.hasSemanticContext=!1;const o=this.addDFAState(n);r||(this.decisionToDFA[this.mode].s0=o);const a=this.execATN(t,o);return e.debug&&console.log("DFA after matchATN: "+this.decisionToDFA[s].toLexerString()),a}execATN(t,i){e.debug&&console.log("start state closure="+i.configs),i.isAcceptState&&this.captureSimState(t,i);let s=t.LA(1);for(;;){e.debug&&console.log("execATN loop starting closure: "+i.configs);let n=this.getExistingTargetState(i,s);if(n||(n=this.computeTargetState(t,i,s)),n===ze.ERROR)break;if(s!==r.EOF&&this.consume(t),n.isAcceptState&&(this.captureSimState(t,n),s===r.EOF))break;s=t.LA(1),i=n}return this.failOrAccept(t,i.configs,s)}getExistingTargetState(t,i){if(i>=this.options.minDFAEdge&&i<=this.options.maxDFAEdge){const s=t.edges[i-this.options.minDFAEdge];return e.debug&&s&&console.log("reuse state "+t.stateNumber+" edge to "+s.stateNumber),s}}computeTargetState(e,t,i){const s=new ot;return this.getReachableConfigSet(e,t.configs,s,i),0===s.length?(s.hasSemanticContext||this.addDFAEdge(t,i,ze.ERROR),ze.ERROR):this.addDFAEdge(t,i,null,s)}failOrAccept(e,t,i){if(this.prevAccept?.dfaState){const{dfaState:t,index:i,line:s,column:n}=this.prevAccept;return this.accept(e,t.lexerActionExecutor,this.startIndex,i,s,n),t.prediction}if(i===r.EOF&&e.index===this.startIndex)return r.EOF;throw new Ze(this.recognizer,e,this.startIndex,t)}getReachableConfigSet(t,i,s,n){let o=Z.INVALID_ALT_NUMBER;for(const a of i){const i=a.alt===o;if(!i||!a.passedThroughNonGreedyDecision){e.debug&&console.log("testing %s at %s\n",this.getTokenName(n),a.toString(this.recognizer,!0));for(const e of a.state.transitions){const c=this.getReachableTarget(e,n);if(c){let e=a.lexerActionExecutor;e&&(e=e.fixOffsetBeforeMatch(t.index-this.startIndex));const l=n===r.EOF,h=je.createWithExecutor(a,c,e);this.closure(t,h,s,i,!0,l)&&(o=a.alt)}}}}}accept(t,i,s,n,r,o){e.debug&&console.log("ACTION %s\n",i),t.seek(n),this.line=r,this.column=o,i&&this.recognizer&&i.execute(this.recognizer,t,s)}getReachableTarget(e,t){return e.matches(t,this.options.minCodePoint,this.options.maxCodePoint)?e.target:void 0}computeStartState(e,t){const i=N.instance,s=new ot;for(let n=0;n<t.transitions.length;n++){const r=t.transitions[n].target,o=je.createWithContext(r,n+1,i);this.closure(e,o,s,!1,!1,!1)}return s}closure(t,i,s,n,r,o){let a=null;if(e.debug&&console.log("closure("+i.toString(this.recognizer,!0)+")"),i.state.constructor.stateType===x.RULE_STOP){if(e.debug&&(null!==this.recognizer?console.log("closure at %s rule stop %s\n",this.recognizer.ruleNames[i.state.ruleIndex],i):console.log("closure at rule stop %s\n",i)),!i.context||i.context.hasEmptyPath()){if(!i.context||i.context.isEmpty())return s.add(i),!0;s.add(je.createWithConfig(i.state,i,N.instance)),n=!0}if(i.context&&!i.context.isEmpty())for(let e=0;e<i.context.length;e++)if(i.context.getReturnState(e)!==k.EMPTY_RETURN_STATE){const c=i.context.getParent(e),l=this.atn.states[i.context.getReturnState(e)];a=je.createWithConfig(l,i,c),n=this.closure(t,a,s,n,r,o)}return n}i.state.epsilonOnlyTransitions||n&&i.passedThroughNonGreedyDecision||s.add(i);for(const e of i.state.transitions)a=this.getEpsilonTarget(t,i,e,s,r,o),a&&(n=this.closure(t,a,s,n,r,o));return n}getEpsilonTarget(e,t,i,s,n,r){this.lexerATNConfigFactory||this.setupATNFactoryLookup();const o=this.lexerATNConfigFactory[i.transitionType];return o?o(e,t,i,s,n,r):null}setupATNFactoryLookup(){this.lexerATNConfigFactory=[],this.lexerATNConfigFactory[I.RULE]=(e,t,i)=>{const s=z(t.context??void 0,i.followState.stateNumber);return je.createWithConfig(i.target,t,s)},this.lexerATNConfigFactory[I.PRECEDENCE]=()=>{throw new Error("Precedence predicates are not supported in lexers.")},this.lexerATNConfigFactory[I.PREDICATE]=(t,i,s,n,r)=>{const o=s;return e.debug&&console.log("EVAL rule "+o.ruleIndex+":"+o.predIndex),n.hasSemanticContext=!0,this.evaluatePredicate(t,o.ruleIndex,o.predIndex,r)?je.createWithConfig(s.target,i):null},this.lexerATNConfigFactory[I.ACTION]=(e,t,i)=>{if(null===t.context||t.context.hasEmptyPath()){const e=nt.append(t.lexerActionExecutor,this.atn.lexerActions[i.actionIndex]);return je.createWithExecutor(t,i.target,e)}return je.createWithConfig(i.target,t)},this.lexerATNConfigFactory[I.EPSILON]=(e,t,i)=>je.createWithConfig(i.target,t);const t=c(((e,t,i,s,n,o)=>o&&i.matches(r.EOF,this.options.minCodePoint,this.options.maxCodePoint)?je.createWithConfig(i.target,t):null),"simple");this.lexerATNConfigFactory[I.ATOM]=t,this.lexerATNConfigFactory[I.RANGE]=t,this.lexerATNConfigFactory[I.SET]=t}evaluatePredicate(e,t,i,s){if(!this.recognizer)return!0;if(!s)return this.recognizer.sempred(null,t,i);const n=this.column,r=this.line,o=e.index,a=e.mark();try{return this.consume(e),this.recognizer.sempred(null,t,i)}finally{this.column=n,this.line=r,e.seek(o),e.release(a)}}captureSimState(e,t){this.prevAccept={index:e.index,line:this.line,column:this.column,dfaState:t}}addDFAEdge(t,i,s,n){if(!s&&n){const e=n.hasSemanticContext;if(n.hasSemanticContext=!1,s=this.addDFAState(n),e)return s}return i<this.options.minDFAEdge||i>this.options.maxDFAEdge||(e.debug&&console.log("EDGE "+t+" -> "+s+" upon "+i),t.edges[i-this.options.minDFAEdge]=s),s}addDFAState(e){const t=this.decisionToDFA[this.mode],i=t.getStateForConfigs(e);if(i)return i;const s=Ve.fromConfigs(e),n=e.firstStopState;return n&&(s.isAcceptState=!0,s.lexerActionExecutor=n.lexerActionExecutor,s.prediction=this.atn.ruleToTokenType[n.state.ruleIndex]),e.setReadonly(!0),t.addState(s),s}},ct=class{static{c(this,"ParseInfo")}atnSimulator;constructor(e){this.atnSimulator=e}getDecisionInfo(){return this.atnSimulator.getDecisionInfo()}getLLDecisions(){const e=this.atnSimulator.getDecisionInfo(),t=new Array;for(let i=0;i<e.length;i++){e[i].llFallback>0&&t.push(i)}return t}getTotalTimeInPrediction(){const e=this.atnSimulator.getDecisionInfo();let t=0;for(const i of e)t+=i.timeInPrediction;return t}getTotalSLLLookaheadOps(){const e=this.atnSimulator.getDecisionInfo();let t=0;for(const i of e)t+=i.sllTotalLook;return t}getTotalLLLookaheadOps(){const e=this.atnSimulator.getDecisionInfo();let t=0;for(const i of e)t+=i.llTotalLook;return t}getTotalSLLATNLookaheadOps(){const e=this.atnSimulator.getDecisionInfo();let t=0;for(const i of e)t+=i.sllATNTransitions;return t}getTotalLLATNLookaheadOps(){const e=this.atnSimulator.getDecisionInfo();let t=0;for(const i of e)t+=i.llATNTransitions;return t}getTotalATNLookaheadOps(){const e=this.atnSimulator.getDecisionInfo();let t=0;for(const i of e)t+=i.sllATNTransitions,t+=i.llATNTransitions;return t}getDFASize(e){if(void 0===e){let e=0;const t=this.atnSimulator.decisionToDFA;for(let i=0;i<t.length;i++)e+=this.getDFASize(i);return e}return this.atnSimulator.decisionToDFA[e].length}},lt=class extends Xe{static{c(this,"NoViableAltException")}deadEndConfigs=null;startToken;constructor(e,t=null,i=null,s=null,n=null,r=null){r=r??e.context,s=s??e.getCurrentToken(),i=i??e.getCurrentToken(),super({message:"",recognizer:e,input:t=t??e.inputStream,ctx:r}),this.deadEndConfigs=n,this.startToken=i,this.offendingToken=s}},ht=class{static{c(this,"DoubleDict")}cacheMap;constructor(){this.cacheMap=new P}get(e,t){const i=this.cacheMap.get(e)??null;return null===i?null:i.get(t)??null}set(e,t,i){let s=this.cacheMap.get(e);s||(s=new P,this.cacheMap.set(e,s)),s.set(t,i)}},dt=class e{static{c(this,"SubsetEqualityComparer")}static instance=new e;hashCode(e){let t=d.initialize(7);return t=d.update(t,e.state.stateNumber),t=d.updateFromComparable(t,e.context),t=d.finish(t,2),t}equals(e,t){return e.state.stateNumber===t.state.stateNumber&&(e.context?.equals(t.context)??!0)}},ut=class e{static{c(this,"PredictionMode")}static SLL=0;static LL=1;static LL_EXACT_AMBIG_DETECTION=2;static hasSLLConflictTerminatingPrediction(t,i){if(e.allConfigsInRuleStopStates(i))return!0;if(t===e.SLL&&i.hasSemanticContext){const e=new ee;for(let t of i)t=T.duplicate(t,y.NONE),e.add(t);i=e}const s=e.getConflictingAltSubsets(i);return e.hasConflictingAltSet(s)&&!e.hasStateAssociatedWithOneAlt(i)}static hasConfigInRuleStopState(e){for(const t of e)if(t.state instanceof ae)return!0;return!1}static allConfigsInRuleStopStates(e){for(const t of e)if(!(t.state instanceof ae))return!1;return!0}static resolvesToJustOneViableAlt(t){return e.getSingleViableAlt(t)}static allSubsetsConflict(t){return!e.hasNonConflictingAltSet(t)}static hasNonConflictingAltSet(e){for(const t of e)if(1===t.length)return!0;return!1}static hasConflictingAltSet(e){for(const t of e)if(t.length>1)return!0;return!1}static allSubsetsEqual(e){let t=null;for(const i of e)if(null===t)t=i;else if(i!==t)return!1;return!0}static getUniqueAlt(t){const i=e.getAlts(t);return 1===i.length?i.nextSetBit(0):Z.INVALID_ALT_NUMBER}static getAlts(e){const t=new h;return e.forEach((e=>{t.or(e)})),t}static getConflictingAltSubsets(e){const t=new P(dt.instance);for(const i of e){let e=t.get(i);e||(e=new h,t.set(i,e)),e.set(i.alt)}return Array.from(t.values())}static getStateToAltMap(e){const t=new P(u.instance);for(const i of e){let e=t.get(i.state);e||(e=new h,t.set(i.state,e)),e.set(i.alt)}return t}static hasStateAssociatedWithOneAlt(e){const t={};for(const i of e){const e=i.state.stateNumber;t[e]||(t[e]=0),t[e]++}return Object.values(t).some((e=>1===e))}static getSingleViableAlt(e){let t=null;for(const i of e){const e=i.nextSetBit(0);if(null===t)t=e;else if(t!==e)return Z.INVALID_ALT_NUMBER}return t??0}},gt=class e extends ze{static{c(this,"ParserATNSimulator")}static traceATNSimulator=!1;static debug;static debugAdd=!1;static debugClosure=!1;static dfaDebug=!1;static retryDebug=!1;predictionMode;decisionToDFA;parser;mergeCache=new ht;predictionState;constructor(e,t,i,s){super(t,s),this.parser=e,this.decisionToDFA=i}static getUniqueAlt(e){let t=Z.INVALID_ALT_NUMBER;for(const i of e)if(t===Z.INVALID_ALT_NUMBER)t=i.alt;else if(i.alt!==t)return Z.INVALID_ALT_NUMBER;return t}reset(){}clearDFA(){for(let e=0;e<this.decisionToDFA.length;e++)this.decisionToDFA[e]=new it(this.atn.getDecisionState(e),e)}adaptivePredict(t,i,s){(e.debug||e.traceATNSimulator)&&console.log("adaptivePredict decision "+i+" exec LA(1)=="+this.getLookaheadName(t)+" line "+t.LT(1).line+":"+t.LT(1).column);const n=this.decisionToDFA[i];this.predictionState={input:t,startIndex:t.index,outerContext:s??void 0,dfa:n};const r=t.mark(),o=t.index;try{let i;if(i=n.isPrecedenceDfa?n.getPrecedenceStartState(this.parser.getPrecedence()):n.s0,!i){s||(s=W.empty),e.debug&&console.log("predictATN decision "+n.decision+" exec LA(1)=="+this.getLookaheadName(t)+", outerContext="+s.toString(this.parser.ruleNames));const r=!1;let o=this.computeStartState(n.atnStartState,W.empty,r);n.isPrecedenceDfa?(o=this.applyPrecedenceFilter(o),i=this.addDFAState(n,Ve.fromConfigs(o)),n.setPrecedenceStartState(this.parser.getPrecedence(),i)):(i=this.addDFAState(n,Ve.fromConfigs(o)),n.s0=i)}const r=this.execATN(n,i,t,o,s);return e.debug&&console.log("DFA after predictATN: "+n.toString(this.parser.vocabulary)),r}finally{this.predictionState.dfa=void 0,this.mergeCache=new ht,t.seek(o),t.release(r)}}execATN(t,i,s,n,o){let a;(e.debug||e.traceATNSimulator)&&console.log("execATN decision "+t.decision+", DFA state "+i+", LA(1)=="+this.getLookaheadName(s)+" line "+s.LT(1).line+":"+s.LT(1).column);let c=i,l=s.LA(1);for(;;){let i=this.getExistingTargetState(c,l);if(i||(i=this.computeTargetState(t,c,l)),i===ze.ERROR){const e=this.noViableAlt(s,o,c.configs,n);if(s.seek(n),a=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(c.configs,o),a!==Z.INVALID_ALT_NUMBER)return a;throw e}if(i.requiresFullContext&&this.predictionMode!==ut.SLL){let r=null;if(null!==i.predicates){e.debug&&console.log("DFA state has preds in DFA sim LL failover");const t=s.index;if(t!==n&&s.seek(n),r=this.evalSemanticContext(i.predicates,o,!0),1===r.length)return e.debug&&console.log("Full LL avoided"),r.nextSetBit(0);t!==n&&s.seek(t)}e.dfaDebug&&console.log("ctx sensitive state "+o+" in "+i);const c=!0,l=this.computeStartState(t.atnStartState,o,c);return this.reportAttemptingFullContext(t,r,i.configs,n,s.index),a=this.execATNWithFullContext(t,i,l,s,n,o),a}if(i.isAcceptState){if(null===i.predicates)return i.prediction;const e=s.index;s.seek(n);const r=this.evalSemanticContext(i.predicates,o,!0);if(0===r.length)throw this.noViableAlt(s,o,i.configs,n);return 1===r.length||this.reportAmbiguity(t,i,n,e,!1,r,i.configs),r.nextSetBit(0)}c=i,l!==r.EOF&&(s.consume(),l=s.LA(1))}}getExistingTargetState(e,t){return e.edges[t+1]}computeTargetState(t,i,s){const n=this.computeReachSet(i.configs,s,!1);if(null===n)return this.addDFAEdge(t,i,s,ze.ERROR),ze.ERROR;let r=Ve.fromConfigs(n);const o=e.getUniqueAlt(n);if(e.debug){const e=ut.getConflictingAltSubsets(n);console.log("SLL altSubSets="+C(e)+", configs="+n+", predict="+o+", allSubsetsConflict="+ut.allSubsetsConflict(e)+", conflictingAlts="+this.getConflictingAlts(n))}return o!==Z.INVALID_ALT_NUMBER?(r.isAcceptState=!0,r.configs.uniqueAlt=o,r.prediction=o):ut.hasSLLConflictTerminatingPrediction(this.predictionMode,n)&&(r.configs.conflictingAlts=this.getConflictingAlts(n),r.requiresFullContext=!0,r.isAcceptState=!0,r.prediction=r.configs.conflictingAlts.nextSetBit(0)),r.isAcceptState&&r.configs.hasSemanticContext&&(this.predicateDFAState(r,this.atn.getDecisionState(t.decision)),null!==r.predicates&&(r.prediction=Z.INVALID_ALT_NUMBER)),r=this.addDFAEdge(t,i,s,r),r}getRuleName(e){return null!==this.parser&&e>=0?this.parser.ruleNames[e]:"<rule "+e+">"}getTokenName(e){if(e===r.EOF)return"EOF";const t=(this.parser?.vocabulary??f.EMPTY_VOCABULARY).getDisplayName(e);return t===e.toString()?t:t+"<"+e+">"}getLookaheadName(e){return this.getTokenName(e.LA(1))}dumpDeadEndConfigs(e){console.log("dead end configs: ");const t=e.deadEndConfigs;for(const i of t){let e="no edges";if(i.state.transitions.length>0){const t=i.state.transitions[0];if(t instanceof me)e="Atom "+this.getTokenName(t.labelValue);else if(t instanceof O){e=(t instanceof D?"~":"")+"Set "+t.label}}console.error(i.toString(this.parser,!0)+":"+e)}}predicateDFAState(e,t){const i=t.transitions.length,s=this.getConflictingAltsOrUniqueAlt(e.configs),n=this.getPredsForAmbigAlts(s,e.configs,i);null!==n?(e.predicates=this.getPredicatePredictions(s,n),e.prediction=Z.INVALID_ALT_NUMBER):e.prediction=s.nextSetBit(0)}execATNWithFullContext(t,i,s,n,o,a){(e.debug||e.traceATNSimulator)&&console.log("execATNWithFullContext "+s);let c,l=!1,h=s;n.seek(o);let d=n.LA(1),u=-1;for(;;){if(c=this.computeReachSet(h,d,true),null===c){const e=this.noViableAlt(n,a,h,o);n.seek(o);const t=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(h,a);if(t!==Z.INVALID_ALT_NUMBER)return t;throw e}const t=ut.getConflictingAltSubsets(c);if(e.debug&&console.log("LL altSubSets="+t+", predict="+ut.getUniqueAlt(t)+", resolvesToJustOneViableAlt="+ut.resolvesToJustOneViableAlt(t)),c.uniqueAlt=e.getUniqueAlt(c),c.uniqueAlt!==Z.INVALID_ALT_NUMBER){u=c.uniqueAlt;break}if(this.predictionMode!==ut.LL_EXACT_AMBIG_DETECTION){if(u=ut.resolvesToJustOneViableAlt(t),u!==Z.INVALID_ALT_NUMBER)break}else if(ut.allSubsetsConflict(t)&&ut.allSubsetsEqual(t)){l=!0,u=ut.getSingleViableAlt(t);break}h=c,d!==r.EOF&&(n.consume(),d=n.LA(1))}return c.uniqueAlt!==Z.INVALID_ALT_NUMBER?(this.reportContextSensitivity(t,u,c,o,n.index),u):(this.reportAmbiguity(t,i,o,n.index,l,c.getAlts(),c),u)}computeReachSet(t,i,s){e.debug&&console.log("in computeReachSet, starting closure: "+t);const n=new ee(s);let o=null;for(const c of t)if(e.debug&&console.log("testing "+this.getTokenName(i)+" at "+c),c.state instanceof ae)(s||i===r.EOF)&&(null===o&&(o=[]),o.push(c));else for(const t of c.state.transitions){const s=this.getReachableTarget(t,i);if(null!==s){const t=T.createWithConfig(s,c);n.add(t,this.mergeCache),e.debugAdd&&console.log("added "+t+" to intermediate")}}let a=null;if(null===o&&i!==r.EOF&&(1===n.length||e.getUniqueAlt(n)!==Z.INVALID_ALT_NUMBER)&&(a=n),null===a){a=new ee(s);const e=new p,t=i===r.EOF;for(const i of n)this.closure(i,a,e,!1,s,t)}if(i===r.EOF&&(a=this.removeAllConfigsNotInRuleStopState(a,a===n)),null!==o&&(!s||!ut.hasConfigInRuleStopState(a)))for(const e of o)a.add(e,this.mergeCache);return e.traceATNSimulator&&console.log("computeReachSet "+t+" -> "+a),0===a.length?null:a}removeAllConfigsNotInRuleStopState(e,t){if(ut.allConfigsInRuleStopStates(e))return e;const i=new ee(e.fullCtx);for(const s of e)if(s.state instanceof ae)i.add(s,this.mergeCache);else if(t&&s.state.epsilonOnlyTransitions){if(this.atn.nextTokens(s.state).contains(r.EPSILON)){const e=this.atn.ruleToStopState[s.state.ruleIndex];i.add(T.createWithConfig(e,s),this.mergeCache)}}return i}computeStartState(t,i,s){const n=G(this.atn,i),r=new ee(s);e.traceATNSimulator&&console.log("computeStartState from ATN state "+t+" initialContext="+n.toString(this.parser));for(let e=0;e<t.transitions.length;e++){const i=t.transitions[e].target,o=T.createWithContext(i,e+1,n),a=new p;this.closure(o,r,a,!0,s,!1)}return r}applyPrecedenceFilter(e){const t=[],i=new ee(e.fullCtx);for(const s of e){if(1!==s.alt)continue;const e=s.semanticContext.evalPrecedence(this.parser,this.predictionState.outerContext);null!==e&&(t[s.state.stateNumber]=s.context,e!==s.semanticContext?i.add(T.duplicate(s,e),this.mergeCache):i.add(s,this.mergeCache))}for(const s of e)if(1!==s.alt){if(!s.precedenceFilterSuppressed){const e=t[s.state.stateNumber]||null;if(null!==e&&e.equals(s.context))continue}i.add(s,this.mergeCache)}return i}getReachableTarget(e,t){return e.matches(t,0,this.atn.maxTokenType)?e.target:null}getPredsForAmbigAlts(t,i,s){let n=[];for(const e of i)t.get(e.alt)&&(n[e.alt]=y.orContext(n[e.alt]??null,e.semanticContext));let r=0;for(let e=1;e<s+1;e++){const t=n[e]??null;null===t?n[e]=y.NONE:t!==y.NONE&&(r+=1)}return 0===r&&(n=null),e.debug&&console.log("getPredsForAmbigAlts result "+C(n)),n}getPredicatePredictions(e,t){const i=[];let s=!1;for(let n=1;n<t.length;n++){const r=t[n];e.get(n)&&i.push({pred:r,alt:n}),r!==y.NONE&&(s=!0)}return s?i:null}getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(e,t){const i=this.splitAccordingToSemanticValidity(e,t),s=i[0],n=i[1];let r=this.getAltThatFinishedDecisionEntryRule(s);return r!==Z.INVALID_ALT_NUMBER||n.length>0&&(r=this.getAltThatFinishedDecisionEntryRule(n),r!==Z.INVALID_ALT_NUMBER)?r:Z.INVALID_ALT_NUMBER}getAltThatFinishedDecisionEntryRule(e){const t=[];for(const i of e)(i.reachesIntoOuterContext||i.state instanceof ae&&i.context.hasEmptyPath())&&t.indexOf(i.alt)<0&&t.push(i.alt);return 0===t.length?Z.INVALID_ALT_NUMBER:Math.min(...t)}splitAccordingToSemanticValidity(e,t){const i=new ee(e.fullCtx),s=new ee(e.fullCtx);for(const n of e)if(n.semanticContext!==y.NONE){n.semanticContext.evaluate(this.parser,t)?i.add(n):s.add(n)}else i.add(n);return[i,s]}evalSemanticContext(t,i,s){const n=new h;for(const r of t){if(r.pred===y.NONE){if(n.set(r.alt),!s)break;continue}const t=r.pred.evaluate(this.parser,i);if((e.debug||e.dfaDebug)&&console.log("eval pred "+r+"="+t),t&&(n.set(r.alt),!s))break}return n}closure(e,t,i,s,n,r){this.closureCheckingStopState(e,t,i,s,n,0,r)}closureCheckingStopState(t,i,s,n,r,o,a){if((e.traceATNSimulator||e.debugClosure)&&console.log("closure("+t.toString(this.parser,!0)+")"),t.state instanceof ae){if(t.context&&!t.context.isEmpty()){for(let c=0;c<t.context.length;c++){if(t.context.getReturnState(c)===k.EMPTY_RETURN_STATE){if(r){i.add(T.createWithConfig(t.state,t,N.instance),this.mergeCache);continue}e.debug&&console.log("FALLING off rule "+this.getRuleName(t.state.ruleIndex)),this.closure_(t,i,s,n,r,o,a);continue}const l=this.atn.states[t.context.getReturnState(c)],h=t.context.getParent(c),d=T.createWithContext(l,t.alt,h,t.semanticContext);d.reachesIntoOuterContext=t.reachesIntoOuterContext,this.closureCheckingStopState(d,i,s,n,r,o-1,a)}return}if(r)return void i.add(t,this.mergeCache);e.debug&&console.log("FALLING off rule "+this.getRuleName(t.state.ruleIndex))}this.closure_(t,i,s,n,r,o,a)}closure_(t,i,s,n,r,o,a){const c=t.state;c.epsilonOnlyTransitions||i.add(t,this.mergeCache);for(let l=0;l<c.transitions.length;l++){if(0===l&&this.canDropLoopEntryEdgeInLeftRecursiveRule(t))continue;const h=c.transitions[l],d=n&&!(h instanceof ve),u=this.getEpsilonTarget(t,h,d,0===o,r,a);if(u){let n=o;if(t.state.constructor.stateType===x.RULE_STOP){if(this.predictionState.dfa&&this.predictionState?.dfa.isPrecedenceDfa){h.outermostPrecedenceReturn===this.predictionState?.dfa.atnStartState?.ruleIndex&&(u.precedenceFilterSuppressed=!0)}if(u.reachesIntoOuterContext=!0,s.getOrAdd(u)!==u)continue;i.dipsIntoOuterContext=!0,n-=1,e.debug&&console.log("dips into outer ctx: "+u)}else{if(!h.isEpsilon&&s.getOrAdd(u)!==u)continue;h instanceof fe&&n>=0&&(n+=1)}this.closureCheckingStopState(u,i,s,d,r,n,a)}}}canDropLoopEntryEdgeInLeftRecursiveRule(e){const t=e.state;if(t.constructor.stateType!==x.STAR_LOOP_ENTRY||!e.context)return!1;if(!t.precedenceRuleDecision||e.context.isEmpty()||e.context.hasEmptyPath())return!1;const i=e.context.length;for(let r=0;r<i;r++){if(this.atn.states[e.context.getReturnState(r)].ruleIndex!==t.ruleIndex)return!1}const s=t.transitions[0].target.endState.stateNumber,n=this.atn.states[s];for(let r=0;r<i;r++){const i=e.context.getReturnState(r),s=this.atn.states[i];if(1!==s.transitions.length||!s.transitions[0].isEpsilon)return!1;const o=s.transitions[0].target;if((s.constructor.stateType!==x.BLOCK_END||o!==t)&&(s!==n&&o!==n&&(o.constructor.stateType!==x.BLOCK_END||1!==o.transitions.length||!o.transitions[0].isEpsilon||o.transitions[0].target!==t)))return!1}return!0}getEpsilonTarget(t,i,s,n,o,a){switch(i.transitionType){case I.RULE:return this.ruleTransition(t,i);case I.PRECEDENCE:return this.precedenceTransition(t,i,s,n,o);case I.PREDICATE:return this.predTransition(t,i,s,n,o);case I.ACTION:if(e.debug){const e=i,t=-1===e.actionIndex?65535:e.actionIndex;console.log("ACTION edge "+e.ruleIndex+":"+t)}return T.createWithConfig(i.target,t);case I.EPSILON:return T.createWithConfig(i.target,t);case I.ATOM:case I.RANGE:case I.SET:return a&&i.matches(r.EOF,0,1)?T.createWithConfig(i.target,t):null;default:return null}}precedenceTransition(t,i,s,n,r){e.debug&&(console.log("PRED (collectPredicates="+s+") "+i.precedence+">=_p, ctx dependent=true"),null!==this.parser&&console.log("context surrounding pred is "+C(this.parser.getRuleInvocationStack())));let o=null;if(s&&n)if(r&&this.predictionState?.input){const e=this.predictionState.input.index;this.predictionState.input.seek(this.predictionState.startIndex);const s=i.getPredicate().evaluate(this.parser,this.predictionState.outerContext);this.predictionState.input.seek(e),s&&(o=T.createWithConfig(i.target,t))}else{const e=y.andContext(t.semanticContext,i.getPredicate());o=T.createWithSemanticContext(i.target,t,e)}else o=T.createWithConfig(i.target,t);return e.debug&&console.log("config from pred transition="+o),o}predTransition(t,i,s,n,r){e.debug&&(console.log("PRED (collectPredicates="+s+") "+i.ruleIndex+":"+i.predIndex+", ctx dependent="+i.isCtxDependent),null!==this.parser&&console.log("context surrounding pred is "+C(this.parser.getRuleInvocationStack())));let o=null;if(s&&(i.isCtxDependent&&n||!i.isCtxDependent))if(r&&this.predictionState?.input){const e=this.predictionState.input.index;this.predictionState.input.seek(this.predictionState.startIndex);const s=i.getPredicate().evaluate(this.parser,this.predictionState.outerContext);this.predictionState.input.seek(e),s&&(o=T.createWithConfig(i.target,t))}else{const e=y.andContext(t.semanticContext,i.getPredicate());o=T.createWithSemanticContext(i.target,t,e)}else o=T.createWithConfig(i.target,t);return e.debug&&console.log("config from pred transition="+o),o}ruleTransition(t,i){e.debug&&console.log("CALL rule "+this.getRuleName(i.target.ruleIndex)+", ctx="+t.context);const s=i.followState,n=z(t.context??void 0,s.stateNumber);return T.createWithConfig(i.target,t,n)}getConflictingAlts(e){const t=ut.getConflictingAltSubsets(e);return ut.getAlts(t)}getConflictingAltsOrUniqueAlt(e){let t;return e.uniqueAlt!==Z.INVALID_ALT_NUMBER?(t=new h,t.set(e.uniqueAlt)):t=e.conflictingAlts,t}noViableAlt(e,t,i,s){return new lt(this.parser,e,e.get(s),e.LT(1),i,t)}addDFAEdge(t,i,s,n){return e.debug&&console.log("EDGE "+i+" -> "+n+" upon "+this.getTokenName(s)),n=this.addDFAState(t,n),s<-1||s>this.atn.maxTokenType||(e.debug&&console.log("DFA=\n"+t.toString(null!=this.parser?this.parser.vocabulary:f.EMPTY_VOCABULARY)),i.edges[s+1]=n),n}addDFAState(t,i){if(i===ze.ERROR)return i;const s=t.getState(i);return null!==s?s:(i.configs.readOnly||(i.configs.optimizeConfigs(this),i.configs.setReadonly(!0)),e.traceATNSimulator&&console.log("addDFAState new "+i),t.addState(i),i)}reportAttemptingFullContext(t,i,s,n,r){if(e.debug||e.retryDebug){const e=new m(n,r+1);console.log("reportAttemptingFullContext decision="+t.decision+":"+s+", input="+this.parser.tokenStream.getTextFromInterval(e))}this.parser.errorListenerDispatch.reportAttemptingFullContext(this.parser,t,n,r,i,s)}reportContextSensitivity(t,i,s,n,r){if(e.debug||e.retryDebug){const e=new m(n,r+1);console.log("reportContextSensitivity decision="+t.decision+":"+s+", input="+this.parser.tokenStream.getTextFromInterval(e))}this.parser.errorListenerDispatch.reportContextSensitivity(this.parser,t,n,r,i,s)}reportAmbiguity(t,i,s,n,r,o,a){if(e.debug||e.retryDebug){const e=new m(s,n+1);console.log("reportAmbiguity "+o+":"+a+", input="+this.parser.tokenStream.getTextFromInterval(e))}this.parser.errorListenerDispatch.reportAmbiguity(this.parser,t,s,n,r,o,a)}},pt=class{static{c(this,"PredictionContextCache")}cache=new P(u.instance);add(e){if(e===N.instance)return e;const t=this.cache.get(e);return t||(this.cache.set(e,e),e)}get(e){return this.cache.get(e)}get length(){return this.cache.size}},mt=class extends gt{static{c(this,"ProfilingATNSimulator")}decisions;numDecisions=0;currentDecision=0;currentState;conflictingAltResolvedBySLL;sllStopIndex=0;llStopIndex=0;constructor(e){const t=e.interpreter.sharedContextCache;if(super(e,e.interpreter.atn,e.interpreter.decisionToDFA,t),t){this.numDecisions=this.atn.decisionToState.length,this.decisions=new Array(this.numDecisions);for(let e=0;e<this.numDecisions;e++)this.decisions[e]=new Ge(e)}}adaptivePredict(e,t,i){try{this.sllStopIndex=-1,this.llStopIndex=-1,this.currentDecision=t;const s=performance.now(),n=super.adaptivePredict(e,t,i),r=performance.now();this.decisions[t].timeInPrediction+=r-s,this.decisions[t].invocations++;const o=this.sllStopIndex-this.predictionState.startIndex+1;if(this.decisions[t].sllTotalLook+=o,this.decisions[t].sllMinLook=0===this.decisions[t].sllMinLook?o:Math.min(this.decisions[t].sllMinLook,o),o>this.decisions[t].sllMaxLook&&(this.decisions[t].sllMaxLook=o,this.decisions[t].sllMaxLookEvent={decision:t,configs:null,predictedAlt:n,input:e,startIndex:this.predictionState.startIndex,stopIndex:this.sllStopIndex,fullCtx:!1}),this.llStopIndex>=0){const i=this.llStopIndex-this.predictionState.startIndex+1;this.decisions[t].llTotalLook+=i,this.decisions[t].llMinLook=0===this.decisions[t].llMinLook?i:Math.min(this.decisions[t].llMinLook,i),i>this.decisions[t].llMaxLook&&(this.decisions[t].llMaxLook=i,this.decisions[t].llMaxLookEvent={decision:t,configs:null,predictedAlt:n,input:e,startIndex:this.predictionState.startIndex,stopIndex:this.llStopIndex,fullCtx:!0})}return n}finally{this.currentDecision=-1}}getExistingTargetState(e,t){this.sllStopIndex=this.predictionState.input.index;const i=super.getExistingTargetState(e,t);return void 0!==i&&(this.decisions[this.currentDecision].sllDFATransitions++,i===ze.ERROR&&this.decisions[this.currentDecision].errors.push({decision:this.currentDecision,configs:e.configs,input:this.predictionState.input,startIndex:this.predictionState.startIndex,stopIndex:this.sllStopIndex,fullCtx:!1})),this.currentState=i,i}computeTargetState(e,t,i){const s=super.computeTargetState(e,t,i);return this.currentState=s,s}computeReachSet(e,t,i){i&&this.predictionState?.input&&(this.llStopIndex=this.predictionState.input.index);const s=super.computeReachSet(e,t,i);return this.predictionState?.input&&(i?(this.decisions[this.currentDecision].llATNTransitions++,null===s&&this.decisions[this.currentDecision].errors.push({decision:this.currentDecision,configs:e,input:this.predictionState.input,startIndex:this.predictionState.startIndex,stopIndex:this.sllStopIndex,fullCtx:!0})):(this.decisions[this.currentDecision].sllATNTransitions++,null===s&&this.decisions[this.currentDecision].errors.push({decision:this.currentDecision,configs:e,input:this.predictionState.input,startIndex:this.predictionState.startIndex,stopIndex:this.sllStopIndex,fullCtx:!1}))),s}reportAttemptingFullContext(e,t,i,s,n){this.conflictingAltResolvedBySLL=null!==t?t.nextSetBit(0):i.getAlts().nextSetBit(0),this.decisions[this.currentDecision].llFallback++,t&&super.reportAttemptingFullContext(e,t,i,s,n)}reportContextSensitivity(e,t,i,s,n){t!==this.conflictingAltResolvedBySLL&&this.predictionState.input&&this.decisions[this.currentDecision].contextSensitivities.push({decision:this.currentDecision,configs:i,input:this.predictionState.input,startIndex:s,stopIndex:n,fullCtx:!0}),super.reportContextSensitivity(e,t,i,s,n)}reportAmbiguity(e,t,i,s,n,r,o){let a;a=r?r.nextSetBit(0):o.getAlts().nextSetBit(0),this.predictionState?.input&&(o.fullCtx&&a!==this.conflictingAltResolvedBySLL&&this.decisions[this.currentDecision].contextSensitivities.push({decision:this.currentDecision,configs:o,input:this.predictionState.input,startIndex:i,stopIndex:s,fullCtx:!0}),this.decisions[this.currentDecision].ambiguities.push({ambigAlts:r,decision:this.currentDecision,configs:o,input:this.predictionState.input,startIndex:i,stopIndex:s,fullCtx:o.fullCtx})),super.reportAmbiguity(e,t,i,s,n,r,o)}getDecisionInfo(){return this.decisions}getCurrentState(){return this.currentState}};(L||(L={})).toString=c((e=>`(${e.pred}, ${e.alt})`),"toString");var ft,_t=class extends Error{static{c(this,"ParseCancellationException")}constructor(e){super(),this.cause=e}},vt=(class{static{c(this,"InterpreterDataReader")}static parseInterpreterData(e){const t=[],i=[],s=[],n=[],r=[],o=e.split("\n");let a=0,c=o[a++];if("token literal names:"!==c)throw new Error("Unexpected data entry");for(;;){if(c=o[a++],0===c.length)break;n.push("null"===c?null:c)}if(c=o[a++],"token symbolic names:"!==c)throw new Error("Unexpected data entry");for(;;){if(c=o[a++],0===c.length)break;r.push("null"===c?null:c)}if(c=o[a++],"rule names:"!==c)throw new Error("Unexpected data entry");for(;;){if(c=o[a++],0===c.length)break;t.push(c)}if(c=o[a++],"channel names:"===c){for(;;){if(c=o[a++],0===c.length)break;i.push(c)}if(c=o[a++],"mode names:"!==c)throw new Error("Unexpected data entry");for(;;){if(c=o[a++],0===c.length)break;s.push(c)}}if(c=o[a++],"atn:"!==c)throw new Error("Unexpected data entry");c=o[a++];const l=c.split(",");let h;const d=[];for(let u=0;u<l.length;++u){const e=l[u];h=e.startsWith("[")?Number(e.substring(1).trim()):e.endsWith("]")?Number(e.substring(0,e.length-1).trim()):Number(e.trim()),d[u]=h}return{atn:(new Be).deserialize(d),vocabulary:new f(n,r,[]),ruleNames:t,channels:i.length>0?i:void 0,modes:s.length>0?s:void 0}}},class{static{c(this,"AbstractParseTreeVisitor")}visit(e){return e.accept(this)}visitChildren(e){let t=this.defaultResult();const i=e.getChildCount();for(let s=0;s<i&&this.shouldVisitNextChild(e,t);s++){const i=e.getChild(s);if(i){const e=i.accept(this);t=this.aggregateResult(t,e)}}return t}visitTerminal(e){return this.defaultResult()}visitErrorNode(e){return this.defaultResult()}defaultResult(){return null}shouldVisitNextChild(e,t){return!0}aggregateResult(e,t){return t}});(class e{static{c(this,"ParseTreeWalker")}static DEFAULT=new e;walk(e,t){if(t instanceof U)e.visitErrorNode(t);else if(t instanceof F)e.visitTerminal(t);else{const i=t;this.enterRule(e,i);for(let s=0;s<t.getChildCount();s++)this.walk(e,t.getChild(s));this.exitRule(e,i)}}enterRule(e,t){const i=t.ruleContext;e.enterEveryRule(i),i.enterRule(e)}exitRule(e,t){const i=t.ruleContext;i.exitRule(e),e.exitEveryRule(i)}});(ft||(ft={})).fromString=c((e=>new Ct(e)),"fromString");var Ct=class{static{c(this,"CharStreamImpl")}name="";index=0;data;constructor(e){const t=[];for(const i of e)t.push(i.codePointAt(0));this.data=new Uint32Array(t)}reset(){this.index=0}consume(){if(this.index>=this.data.length)throw new Error("cannot consume EOF");this.index+=1}LA(e){if(0===e)return 0;e<0&&(e+=1);const t=this.index+e-1;return t<0||t>=this.data.length?r.EOF:this.data[t]}mark(){return-1}release(e){}seek(e){e<=this.index?this.index=e:this.index=Math.min(e,this.data.length)}getTextFromRange(e,t){return(t=t??this.data.length-1)>=this.data.length&&(t=this.data.length-1),e>=this.data.length?"":this.stringFromRange(e,t+1)}getTextFromInterval(e){const t=e.start;let i=e.stop;return i>=this.data.length&&(i=this.data.length-1),t>=this.data.length?"":this.stringFromRange(t,i+1)}toString(){return this.stringFromRange(0)}get size(){return this.data.length}getSourceName(){return this.name?this.name:s.UNKNOWN_SOURCE_NAME}stringFromRange(e,t){const i=this.data.slice(e,t);let s="";return i.forEach((e=>{s+=String.fromCodePoint(e)})),s}},Et=c((e=>void 0!==e.setText),"isWritableToken"),bt=class{static{c(this,"BufferedTokenStream")}tokenSource;tokens=[];p=-1;fetchedEOF=!1;constructor(e){this.tokenSource=e}mark(){return 0}release(e){}reset(){this.seek(0)}seek(e){this.lazyInit(),this.p=this.adjustSeekIndex(e)}get size(){return this.tokens.length}get index(){return this.p}get(e){return this.lazyInit(),this.tokens[e]}consume(){let e=!1;if(e=this.p>=0&&(this.fetchedEOF?this.p<this.tokens.length-1:this.p<this.tokens.length),!e&&this.LA(1)===r.EOF)throw new Error("cannot consume EOF");this.sync(this.p+1)&&(this.p=this.adjustSeekIndex(this.p+1))}sync(e){const t=e-this.tokens.length+1;if(t>0){return this.fetch(t)>=t}return!0}fetch(e){if(this.fetchedEOF)return 0;for(let t=0;t<e;t++){const e=this.tokenSource.nextToken();if(Et(e)&&(e.tokenIndex=this.tokens.length),this.tokens.push(e),e.type===r.EOF)return this.fetchedEOF=!0,t+1}return e}getTokens(e,t,i){if(this.lazyInit(),void 0===e&&void 0===t)return this.tokens;if(e??=0,void 0===t&&(t=this.tokens.length-1),e<0||t>=this.tokens.length||t<0||e>=this.tokens.length)throw new RangeError("start "+e+" or stop "+t+" not in 0.."+(this.tokens.length-1));if(e>t)return[];if(void 0===i)return this.tokens.slice(e,t+1);const s=[];t>=this.tokens.length&&(t=this.tokens.length-1);for(let n=e;n<t;n++){const e=this.tokens[n];if(e.type===r.EOF){s.push(e);break}i.has(e.type)&&s.push(e)}return s}LA(e){return this.LT(e)?.type??r.INVALID_TYPE}LB(e){return this.p-e<0?null:this.tokens[this.p-e]}LT(e){if(this.lazyInit(),0===e)return null;if(e<0)return this.LB(-e);const t=this.p+e-1;return this.sync(t),t>=this.tokens.length?this.tokens[this.tokens.length-1]:this.tokens[t]}adjustSeekIndex(e){return e}lazyInit(){-1===this.p&&this.setup()}setup(){this.sync(0),this.p=this.adjustSeekIndex(0)}setTokenSource(e){this.tokenSource=e,this.tokens=[],this.p=-1,this.fetchedEOF=!1}nextTokenOnChannel(e,t){if(this.sync(e),e>=this.tokens.length)return-1;let i=this.tokens[e];for(;i.channel!==t;){if(i.type===r.EOF)return-1;e+=1,this.sync(e),i=this.tokens[e]}return e}previousTokenOnChannel(e,t){if(e>=this.tokens.length)return this.tokens.length-1;for(;e>=0;){const i=this.tokens[e];if(i.type===r.EOF||i.channel===t)return e;--e}return e}getHiddenTokensToRight(e,t){if(void 0===t&&(t=-1),this.lazyInit(),e<0||e>=this.tokens.length)throw new Error(`${e} not in 0..${this.tokens.length-1}`);const i=this.nextTokenOnChannel(e+1,Je.DEFAULT_TOKEN_CHANNEL),s=e+1,n=-1===i?this.tokens.length-1:i;return this.filterForChannel(s,n,t)}getHiddenTokensToLeft(e,t){if(void 0===t&&(t=-1),this.lazyInit(),e<0||e>=this.tokens.length)throw new Error(`${e} not in 0..${this.tokens.length-1}`);const i=this.previousTokenOnChannel(e-1,Je.DEFAULT_TOKEN_CHANNEL);if(i===e-1)return;const s=i+1,n=e-1;return this.filterForChannel(s,n,t)}filterForChannel(e,t,i){const s=[];for(let n=e;n<t+1;n++){const e=this.tokens[n];-1===i?e.channel!==Je.DEFAULT_TOKEN_CHANNEL&&s.push(e):e.channel===i&&s.push(e)}if(0!==s.length)return s}getSourceName(){return this.tokenSource.sourceName}getText(){return this.getTextFromInterval(m.of(0,this.size-1))}getTextFromInterval(e){const t=e.start;let i=e.stop;if(t<0||i<0)return"";this.sync(i),i>=this.tokens.length&&(i=this.tokens.length-1);let s="";for(let n=t;n<=i;++n){const e=this.tokens[n];if(e.type===r.EOF)break;s+=e.text}return s}getTextFromContext(e){return this.getTextFromInterval(e.getSourceInterval())}getTextFromRange(e,t){return null!==e&&null!==t?this.getTextFromInterval(m.of(e.tokenIndex,t.tokenIndex)):""}fill(){for(this.lazyInit();1e3===this.fetch(1e3););}setLine(e){this.tokenSource.line=e}setColumn(e){this.tokenSource.column=e}},St=class extends bt{static{c(this,"CommonTokenStream")}channel=r.DEFAULT_CHANNEL;constructor(e,t){super(e),this.channel=t??r.DEFAULT_CHANNEL}adjustSeekIndex(e){return this.nextTokenOnChannel(e,this.channel)}LB(e){if(0===e||this.index-e<0)return null;let t=this.index,i=1;for(;i<=e;)t=this.previousTokenOnChannel(t-1,this.channel),i+=1;return t<0?null:this.tokens[t]}LT(e){if(this.lazyInit(),0===e)return null;if(e<0)return this.LB(-e);let t=this.index,i=1;for(;i<e;)this.sync(t+1)&&(t=this.nextTokenOnChannel(t+1,this.channel)),i+=1;return this.tokens[t]}getNumberOfOnChannelTokens(){let e=0;this.fill();for(const t of this.tokens)if(t.channel===this.channel&&(e+=1),t.type===r.EOF)break;return e}},yt=class e extends Je{static{c(this,"XPathLexer")}static TOKEN_REF=1;static RULE_REF=2;static ANYWHERE=3;static ROOT=4;static WILDCARD=5;static BANG=6;static ID=7;static STRING=8;static channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"];static literalNames=[null,null,null,"'//'","'/'","'*'","'!'"];static symbolicNames=[null,"TOKEN_REF","RULE_REF","ANYWHERE","ROOT","WILDCARD","BANG","ID","STRING"];static modeNames=["DEFAULT_MODE"];static ruleNames=["ANYWHERE","ROOT","WILDCARD","BANG","ID","NameChar","NameStartChar","STRING"];constructor(t){super(t),this.interpreter=new at(this,e._ATN,e.decisionsToDFA,new pt)}get grammarFileName(){return"XPathLexer.g4"}get literalNames(){return e.literalNames}get symbolicNames(){return e.symbolicNames}get ruleNames(){return e.ruleNames}get serializedATN(){return e._serializedATN}get channelNames(){return e.channelNames}get modeNames(){return e.modeNames}action(e,t,i){if(4===t)this.ID_action(e,i)}ID_action(t,i){if(0===i){const t=this.text;t.charAt(0)===t.charAt(0).toUpperCase()?this.type=e.TOKEN_REF:this.type=e.RULE_REF}}static _serializedATN=[4,0,8,48,6,-1,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,1,0,1,0,1,0,1,1,1,1,1,2,1,2,1,3,1,3,1,4,1,4,5,4,29,8,4,10,4,12,4,32,9,4,1,4,1,4,1,5,1,5,1,6,1,6,1,7,1,7,5,7,42,8,7,10,7,12,7,45,9,7,1,7,1,7,1,43,0,8,1,3,3,4,5,5,7,6,9,7,11,0,13,0,15,8,1,0,2,784,0,0,8,14,27,48,57,65,90,95,95,97,122,127,159,170,170,173,173,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1536,1541,1552,1562,1564,1564,1568,1641,1646,1747,1749,1757,1759,1768,1770,1788,1791,1791,1807,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2160,2183,2185,2190,2192,2193,2200,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2901,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3132,3140,3142,3144,3146,3149,3157,3158,3160,3162,3165,3165,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3293,3294,3296,3299,3302,3311,3313,3315,3328,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3457,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3790,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5909,5919,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6847,6862,6912,6988,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8203,8207,8234,8238,8255,8256,8276,8276,8288,8292,8294,8303,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43047,43052,43052,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65279,65279,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65529,65531,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69248,69289,69291,69292,69296,69297,69373,69404,69415,69415,69424,69456,69488,69509,69552,69572,69600,69622,69632,69702,69734,69749,69759,69818,69821,69821,69826,69826,69837,69837,69840,69864,69872,69881,69888,69940,69942,69951,69956,69959,69968,70003,70006,70006,70016,70084,70089,70092,70094,70106,70108,70108,70144,70161,70163,70199,70206,70209,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70753,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71488,71494,71680,71738,71840,71913,71935,71942,71945,71945,71948,71955,71957,71958,71960,71989,71991,71992,71995,72003,72016,72025,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72368,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73472,73488,73490,73530,73534,73538,73552,73561,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78933,82944,83526,92160,92728,92736,92766,92768,92777,92784,92862,92864,92873,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94180,94192,94193,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,113824,113827,118528,118573,118576,118598,119141,119145,119149,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122624,122654,122661,122666,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,122928,122989,123023,123023,123136,123180,123184,123197,123200,123209,123214,123214,123536,123566,123584,123641,124112,124153,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,130032,130041,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,194560,195101,196608,201546,201552,205743,917505,917505,917536,917631,917760,917999,662,0,65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2160,2183,2185,2190,2208,2249,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3165,3165,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3293,3294,3296,3297,3313,3314,3332,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5905,5919,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6276,6279,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6988,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69248,69289,69296,69297,69376,69404,69415,69415,69424,69445,69488,69505,69552,69572,69600,69622,69635,69687,69745,69746,69749,69749,69763,69807,69840,69864,69891,69926,69956,69956,69959,69959,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70207,70208,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70753,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71488,71494,71680,71723,71840,71903,71935,71942,71945,71945,71948,71955,71957,71958,71960,71983,71999,71999,72001,72001,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72368,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73474,73474,73476,73488,73490,73523,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78913,78918,82944,83526,92160,92728,92736,92766,92784,92862,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,122624,122654,122661,122666,122928,122989,123136,123180,123191,123197,123214,123214,123536,123565,123584,123627,124112,124139,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,194560,195101,196608,201546,201552,205743,47,0,1,1,0,0,0,0,3,1,0,0,0,0,5,1,0,0,0,0,7,1,0,0,0,0,9,1,0,0,0,0,15,1,0,0,0,1,17,1,0,0,0,3,20,1,0,0,0,5,22,1,0,0,0,7,24,1,0,0,0,9,26,1,0,0,0,11,35,1,0,0,0,13,37,1,0,0,0,15,39,1,0,0,0,17,18,5,47,0,0,18,19,5,47,0,0,19,2,1,0,0,0,20,21,5,47,0,0,21,4,1,0,0,0,22,23,5,42,0,0,23,6,1,0,0,0,24,25,5,33,0,0,25,8,1,0,0,0,26,30,3,13,6,0,27,29,3,11,5,0,28,27,1,0,0,0,29,32,1,0,0,0,30,28,1,0,0,0,30,31,1,0,0,0,31,33,1,0,0,0,32,30,1,0,0,0,33,34,6,4,0,0,34,10,1,0,0,0,35,36,7,0,0,0,36,12,1,0,0,0,37,38,7,1,0,0,38,14,1,0,0,0,39,43,5,39,0,0,40,42,9,0,0,0,41,40,1,0,0,0,42,45,1,0,0,0,43,44,1,0,0,0,43,41,1,0,0,0,44,46,1,0,0,0,45,43,1,0,0,0,46,47,5,39,0,0,47,16,1,0,0,0,3,0,30,43,1,1,4,0];static __ATN;static get _ATN(){return e.__ATN||(e.__ATN=(new Be).deserialize(e._serializedATN)),e.__ATN}static vocabulary=new f(e.literalNames,e.symbolicNames,[]);get vocabulary(){return e.vocabulary}static decisionsToDFA=e._ATN.decisionToState.map(((e,t)=>new it(e,t)))},wt=class extends Ke{static{c(this,"XPathLexerErrorListener")}syntaxError(e,t,i,s,n,r){}},Rt=class{static{c(this,"XPathElement")}invert;nodeName;constructor(e){this.nodeName=e,this.invert=!1}toString(){return"XPathElement["+(this.invert?"!":"")+this.nodeName+"]"}},Lt=class extends Rt{static{c(this,"XPathRuleAnywhereElement")}ruleIndex;constructor(e,t){super(e),this.ruleIndex=t}evaluate(e){return B.findAllRuleNodes(e,this.ruleIndex)}toString(){return"XPathRuleAnywhereElement["+(this.invert?"!":"")+this.nodeName+"]"}},Tt=class extends Rt{static{c(this,"XPathRuleElement")}ruleIndex;constructor(e,t){super(e),this.ruleIndex=t}evaluate(e){const t=[];for(const i of B.getChildren(e))i instanceof W&&(i.ruleIndex===this.ruleIndex&&!this.invert||i.ruleIndex!==this.ruleIndex&&this.invert)&&t.push(i);return t}toString(){return"XPathRuleElement["+(this.invert?"!":"")+this.nodeName+"]"}},xt=class extends Rt{static{c(this,"XPathTokenAnywhereElement")}tokenType;constructor(e,t){super(e),this.tokenType=t}evaluate(e){return B.findAllTokenNodes(e,this.tokenType)}toString(){return"XPathTokenAnywhereElement["+(this.invert?"!":"")+this.nodeName+"]"}},kt=class extends Rt{static{c(this,"XPathTokenElement")}tokenType;constructor(e,t){super(e),this.tokenType=t}evaluate(e){const t=[];for(const i of B.getChildren(e))i instanceof F&&i.symbol&&(i.symbol.type===this.tokenType&&!this.invert||i.symbol.type!==this.tokenType&&this.invert)&&t.push(i);return t}toString(){return"XPathTokenElement["+(this.invert?"!":"")+this.nodeName+"]"}},At=class extends Rt{static{c(this,"XPathWildcardAnywhereElement")}constructor(){super(It.WILDCARD)}evaluate(e){return this.invert?[]:B.descendants(e)}toString(){return"XPathWildcardAnywhereElement["+(this.invert?"!":"")+this.nodeName+"]"}},Nt=class extends Rt{static{c(this,"XPathWildcardElement")}constructor(){super(It.WILDCARD)}evaluate(e){const t=[];if(this.invert)return t;for(const i of B.getChildren(e))t.push(i);return t}toString(){return"XPathWildcardElement["+(this.invert?"!":"")+this.nodeName+"]"}},It=class e{static{c(this,"XPath")}static WILDCARD="*";static NOT="!";path;elements;parser;constructor(e,t){this.parser=e,this.path=t,this.elements=this.split(t)}static findAll(t,i,s){return new e(s,i).evaluate(t)}split(e){const t=new yt(ft.fromString(e));t.recover=e=>{throw e},t.removeErrorListeners(),t.addErrorListener(new wt);const i=new St(t);try{i.fill()}catch(c){if(c instanceof Ze){const i="Invalid tokens or characters at index "+t.column+" in path '"+e+"' -- "+c.message;throw new RangeError(i)}throw c}const s=i.getTokens(),n=[],o=s.length;let a=0;e:for(;a<o;){const e=s[a];let t;switch(e.type){case yt.ROOT:case yt.ANYWHERE:const i=e.type===yt.ANYWHERE;a++,t=s[a];const o=t.type===yt.BANG;o&&(a++,t=s[a]);const c=this.getXPathElement(t,i);c.invert=o,n.push(c),a++;break;case yt.TOKEN_REF:case yt.RULE_REF:case yt.WILDCARD:n.push(this.getXPathElement(e,!1)),++a;break;case r.EOF:break e;default:throw new Error("Unknown path element "+e)}}return n}evaluate(e){const t=new W(null);t.addChild(e);let i=new Set([t]),s=0;for(;s<this.elements.length;){const e=new Set;for(const t of i)if(t.getChildCount()>0){this.elements[s].evaluate(t).forEach((t=>{e.add(t)}),e)}s++,i=e}return i}getXPathElement(e,t){if(e.type===r.EOF)throw new Error("Missing path element at end of path");const i=e.text;if(null==i)throw new Error("Expected wordToken to have text content.");const s=this.parser.getTokenType(i),n=this.parser.getRuleIndex(i);switch(e.type){case yt.WILDCARD:return t?new At:new Nt;case yt.TOKEN_REF:case yt.STRING:if(s===r.INVALID_TYPE)throw new Error(i+" at index "+e.start+" isn't a valid token name");return t?new xt(i,s):new kt(i,s);default:if(-1===n)throw new Error(i+" at index "+e.start+" isn't a valid rule name");return t?new Lt(i,n):new Tt(i,n)}}},Ot=class{static{c(this,"Chunk")}},Dt=class{static{c(this,"ParseTreeMatch")}tree;pattern;labels;mismatchedNode;constructor(e,t,i,s){this.tree=e,this.pattern=t,this.labels=i,this.mismatchedNode=s}get(e){const t=this.labels.get(e);return t&&0!==t.length?t[t.length-1]:null}getAll(e){return this.labels.get(e)??[]}getLabels(){return this.labels}getMismatchedNode(){return this.mismatchedNode}succeeded(){return!this.mismatchedNode}getPattern(){return this.pattern}getTree(){return this.tree}toString(){return`Match ${this.succeeded()?"succeeded":"failed"}; found ${this.getLabels().size} labels`}},Mt=class{static{c(this,"ParseTreePattern")}patternRuleIndex;pattern;patternTree;matcher;constructor(e,t,i,s){this.matcher=e,this.patternRuleIndex=i,this.pattern=t,this.patternTree=s}match(e){return this.matcher.match(e,this)}matches(e){return this.matcher.match(e,this).succeeded()}findAll(e,t){const i=It.findAll(e,t,this.matcher.getParser()),s=new Array;for(const n of i){const e=this.match(n);e.succeeded()&&s.push(e)}return s}getMatcher(){return this.matcher}getPattern(){return this.pattern}getPatternRuleIndex(){return this.patternRuleIndex}getPatternTree(){return this.patternTree}},Pt=class extends Xe{static{c(this,"InputMismatchException")}constructor(e){super({message:"",recognizer:e,input:e.inputStream,ctx:e.context}),this.offendingToken=e.getCurrentToken()}},Ft=class extends Xe{static{c(this,"FailedPredicateException")}ruleIndex=0;predicateIndex=0;predicate;constructor(e,t,i=null){super({message:Ut(t??"no predicate",i??null),recognizer:e,input:e.inputStream,ctx:e.context});const s=e.atn.states[e.state].transitions[0];s instanceof Se?(this.ruleIndex=s.ruleIndex,this.predicateIndex=s.predIndex):(this.ruleIndex=0,this.predicateIndex=0),this.predicate=t,this.offendingToken=e.getCurrentToken()}},Ut=c(((e,t)=>null!==t?t:"failed predicate: {"+e+"}?"),"formatMessage"),Ht=class{static{c(this,"DefaultErrorStrategy")}errorRecoveryMode=!1;lastErrorIndex=-1;lastErrorStates=new _;nextTokensContext=null;nextTokenState=0;reset(e){this.endErrorCondition(e)}beginErrorCondition(e){this.errorRecoveryMode=!0}inErrorRecoveryMode(e){return this.errorRecoveryMode}endErrorCondition(e){this.errorRecoveryMode=!1,this.lastErrorStates=new _,this.lastErrorIndex=-1}reportMatch(e){this.endErrorCondition(e)}reportError(e,t){this.inErrorRecoveryMode(e)||(this.beginErrorCondition(e),t instanceof lt?this.reportNoViableAlternative(e,t):t instanceof Pt?this.reportInputMismatch(e,t):t instanceof Ft?this.reportFailedPredicate(e,t):e.notifyErrorListeners(t.message,t.offendingToken,t))}recover(e,t){this.lastErrorIndex===e.inputStream?.index&&this.lastErrorStates.contains(e.state)&&e.consume(),this.lastErrorIndex=e.inputStream?.index??0,this.lastErrorStates.addOne(e.state);const i=this.getErrorRecoverySet(e);this.consumeUntil(e,i)}sync(e){if(this.inErrorRecoveryMode(e))return;const t=e.atn.states[e.state],i=e.tokenStream.LA(1),s=e.atn.nextTokens(t);if(s.contains(i))return this.nextTokensContext=null,void(this.nextTokenState=x.INVALID_STATE_NUMBER);if(s.contains(r.EPSILON))null===this.nextTokensContext&&(this.nextTokensContext=e.context,this.nextTokenState=e.state);else switch(t.constructor.stateType){case x.BLOCK_START:case x.STAR_BLOCK_START:case x.PLUS_BLOCK_START:case x.STAR_LOOP_ENTRY:if(null!==this.singleTokenDeletion(e))return;throw new Pt(e);case x.PLUS_LOOP_BACK:case x.STAR_LOOP_BACK:{this.reportUnwantedToken(e);const t=new _;t.addSet(e.getExpectedTokens());const i=t.addSet(this.getErrorRecoverySet(e));this.consumeUntil(e,i);break}}}reportNoViableAlternative(e,t){if(t.message.length>0)return void e.notifyErrorListeners(t.message,t.offendingToken,t);const i=e.tokenStream;let s;s=null!==i&&t.startToken?t.startToken.type===r.EOF?"<EOF>":i.getTextFromRange(t.startToken,t.offendingToken):"<unknown input>";const n="no viable alternative at input "+this.escapeWSAndQuote(s);e.notifyErrorListeners(n,t.offendingToken,t)}reportInputMismatch(e,t){if(t.message.length>0)return void e.notifyErrorListeners(t.message,t.offendingToken,t);const i="mismatched input "+this.getTokenErrorDisplay(t.offendingToken)+" expecting "+t.getExpectedTokens().toStringWithVocabulary(e.vocabulary);e.notifyErrorListeners(i,t.offendingToken,t)}reportFailedPredicate(e,t){const i="rule "+e.ruleNames[e.context.ruleIndex]+" "+t.message;e.notifyErrorListeners(i,t.offendingToken,t)}reportUnwantedToken(e){if(this.inErrorRecoveryMode(e))return;this.beginErrorCondition(e);const t=e.getCurrentToken(),i="extraneous input "+this.getTokenErrorDisplay(t)+" expecting "+this.getExpectedTokens(e).toStringWithVocabulary(e.vocabulary);e.notifyErrorListeners(i,t,null)}reportMissingToken(e){if(this.inErrorRecoveryMode(e))return;this.beginErrorCondition(e);const t=e.getCurrentToken(),i="missing "+this.getExpectedTokens(e).toStringWithVocabulary(e.vocabulary)+" at "+this.getTokenErrorDisplay(t);e.notifyErrorListeners(i,t,null)}recoverInline(e){const t=this.singleTokenDeletion(e);if(t)return e.consume(),t;if(this.singleTokenInsertion(e))return this.getMissingSymbol(e);throw new Pt(e)}singleTokenInsertion(e){const t=e.tokenStream?.LA(1)??-1,i=e.atn,s=i.states[e.state].transitions[0].target;return!!i.nextTokens(s,e.context??void 0).contains(t)&&(this.reportMissingToken(e),!0)}singleTokenDeletion(e){const t=e.tokenStream?.LA(2)??-1;if(this.getExpectedTokens(e).contains(t)){this.reportUnwantedToken(e),e.consume();const t=e.getCurrentToken();return this.reportMatch(e),t}return null}getMissingSymbol(e){const t=e.getCurrentToken(),i=this.getExpectedTokens(e);let s,n=r.INVALID_TYPE;0!==i.length&&(n=i.minElement),s=n===r.EOF?"<missing EOF>":"<missing "+e.vocabulary.getDisplayName(n)+">";let o=t;const a=e.tokenStream?.LT(-1);return o.type===r.EOF&&null!==a&&(o=a),e.getTokenFactory().create(o.source,n,s,r.DEFAULT_CHANNEL,-1,-1,o.line,o.column)}getExpectedTokens(e){return e.getExpectedTokens()}getTokenErrorDisplay(e){if(null===e)return"<no token>";let t=e.text;return t||(t=e.type===r.EOF?"<EOF>":"<"+e.type+">"),this.escapeWSAndQuote(t)}escapeWSAndQuote(e){return"'"+(e=(e=(e=e.replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace(/\t/g,"\\t"))+"'"}getErrorRecoverySet(e){const t=e.atn;let i=e.context;const s=new _;for(;null!==i&&i.invokingState>=0;){const e=t.states[i.invokingState].transitions[0],n=t.nextTokens(e.followState);s.addSet(n),i=i.parent}return s.removeOne(r.EPSILON),s}consumeUntil(e,t){let i=e.tokenStream?.LA(1)??-1;for(;i!==r.EOF&&!t.contains(i);)e.consume(),i=e.tokenStream?.LA(1)??-1}},Bt=class extends Ht{static{c(this,"BailErrorStrategy")}recover(e,t){throw new _t(t)}recoverInline(e){const t=new Pt(e);throw new _t(t)}sync(e){}},Wt=class{static{c(this,"ListTokenSource")}sourceName;tokenFactory=Qe.DEFAULT;tokens=[];i=0;eofToken=null;constructor(e,t){this.tokens=e,this.sourceName=t??""}get column(){if(this.i<this.tokens.length)return this.tokens[this.i].column;if(null!==this.eofToken)return this.eofToken.column;if(this.tokens.length>0){const e=this.tokens[this.tokens.length-1],t=e.text;if(t){const e=t.lastIndexOf("\n");if(e>=0)return t.length-e-1}return e.column+e.stop-e.start+1}return 0}nextToken(){if(this.i>=this.tokens.length){if(null===this.eofToken){let e=-1;if(this.tokens.length>0){const t=this.tokens[this.tokens.length-1].stop;-1!==t&&(e=t+1)}const t=Math.max(-1,e-1);this.eofToken=this.tokenFactory.create([this,this.inputStream],r.EOF,"EOF",r.DEFAULT_CHANNEL,e,t,this.line,this.column)}return this.eofToken}const e=this.tokens[this.i];return this.i===this.tokens.length-1&&e.type===r.EOF&&(this.eofToken=e),this.i++,e}get line(){if(this.i<this.tokens.length)return this.tokens[this.i].line;if(null!==this.eofToken)return this.eofToken.line;if(this.tokens.length>0){const e=this.tokens[this.tokens.length-1];let t=e.line;const i=e.text;if(i)for(const s of i)"\n"===s&&t++;return t}return 1}get inputStream(){return this.i<this.tokens.length?this.tokens[this.i].inputStream:null!==this.eofToken?this.eofToken.inputStream:this.tokens.length>0?this.tokens[this.tokens.length-1].inputStream:null}getSourceName(){if(null!==this.sourceName)return this.sourceName;const e=this.inputStream;return null!==e?e.getSourceName():"List"}},Vt=class extends W{static{c(this,"InterpreterRuleContext")}#c;constructor(e,t,i){super(t,i),this.#c=e}get ruleIndex(){return this.#c}},zt=class{static{c(this,"TraceListener")}parser;constructor(e){this.parser=e}enterEveryRule(e){console.log("enter "+this.parser.ruleNames[e.ruleIndex]+", LT(1)="+this.parser.inputStream?.LT(1)?.text)}visitTerminal(e){console.log("consume "+e.getSymbol()+" rule "+this.parser.ruleNames[this.parser.context.ruleIndex])}exitEveryRule(e){console.log("exit "+this.parser.ruleNames[e.ruleIndex]+", LT(1)="+this.parser.inputStream?.LT(1)?.text)}visitErrorNode(e){}},Gt=class extends $e{static{c(this,"Parser")}printer=null;buildParseTrees=!0;errorHandler=new Ht;context=null;precedenceStack=[];parseListeners=null;syntaxErrors=0;matchedEOF=!1;tracer=null;bypassAltsAtnCache=null;#l;constructor(e){super(),this.precedenceStack.push(0),this.syntaxErrors=0,this.#l=e}reset(e=!0){e&&this.inputStream.seek(0),this.errorHandler.reset(this),this.context=null,this.syntaxErrors=0,this.matchedEOF=!1,this.setTrace(!1),this.precedenceStack=[],this.precedenceStack.push(0),this.interpreter&&this.interpreter.reset()}match(e){let t=this.getCurrentToken();return t.type===e?(e===r.EOF&&(this.matchedEOF=!0),this.errorHandler.reportMatch(this),this.consume()):(t=this.errorHandler.recoverInline(this),this.buildParseTrees&&-1===t.tokenIndex&&this.context.addErrorNode(this.createErrorNode(this.context,t))),t}matchWildcard(){let e=this.getCurrentToken();return e.type>0?(this.errorHandler.reportMatch(this),this.consume()):(e=this.errorHandler.recoverInline(this),this.buildParseTrees&&-1===e.tokenIndex&&this.context.addErrorNode(this.createErrorNode(this.context,e))),e}getParseListeners(){return this.parseListeners??[]}addParseListener(e){if(null===e)throw new Error("listener");null===this.parseListeners&&(this.parseListeners=[]),this.parseListeners.push(e)}removeParseListener(e){if(null!==this.parseListeners&&null!==e){const t=this.parseListeners.indexOf(e);t>=0&&this.parseListeners.splice(t,1),0===this.parseListeners.length&&(this.parseListeners=null)}}removeParseListeners(){this.parseListeners=null}triggerEnterRuleEvent(){if(null!==this.parseListeners){const e=this.context;this.parseListeners.forEach((t=>{t.enterEveryRule(e),e.enterRule(t)}))}}triggerExitRuleEvent(){if(null!==this.parseListeners){const e=this.context;this.parseListeners.slice(0).reverse().forEach((t=>{e.exitRule(t),t.exitEveryRule(e)}))}}getTokenFactory(){return this.inputStream.tokenSource.tokenFactory}setTokenFactory(e){this.inputStream.tokenSource.tokenFactory=e}compileParseTreePattern(e,t,i){if(!i&&null!==this.tokenStream){const e=this.tokenStream.tokenSource;e instanceof Je&&(i=e)}if(!i)throw new Error("Parser can't discover a lexer to use");return new Jt(i,this).compile(e,t)}getATNWithBypassAlts(){const e=this.serializedATN;if(null===e)throw new Error("The current parser does not support an ATN with bypass alternatives.");if(null!==this.bypassAltsAtnCache)return this.bypassAltsAtnCache;return this.bypassAltsAtnCache=new Be({readOnly:!1,verifyATN:!0,generateRuleBypassTransitions:!0}).deserialize(e),this.bypassAltsAtnCache}get numberOfSyntaxErrors(){return this.syntaxErrors}get inputStream(){return this.#l}set inputStream(e){this.tokenStream=e}get tokenStream(){return this.#l}set tokenStream(e){this.reset(!1),this.#l=e}getCurrentToken(){return this.inputStream.LT(1)}notifyErrorListeners(e,t,i){i=i??null,null===(t=t??null)&&(t=this.getCurrentToken()),this.syntaxErrors+=1;const s=t.line,n=t.column;this.errorListenerDispatch.syntaxError(this,t,s,n,e,i)}consume(){const e=this.getCurrentToken();e.type!==r.EOF&&this.tokenStream.consume();const t=null!==this.parseListeners&&this.parseListeners.length>0;if(this.buildParseTrees||t){let i;i=this.errorHandler.inErrorRecoveryMode(this)?this.context.addErrorNode(this.createErrorNode(this.context,e)):this.context.addTokenNode(e),t&&this.parseListeners.forEach((e=>{i instanceof U?e.visitErrorNode(i):e.visitTerminal(i)}))}return e}addContextToParseTree(){this.context?.parent&&this.context.parent.addChild(this.context)}enterRule(e,t,i){this.state=t,this.context=e,this.context.start=this.inputStream.LT(1),this.buildParseTrees&&this.addContextToParseTree(),this.triggerEnterRuleEvent()}exitRule(){this.matchedEOF?this.context.stop=this.inputStream.LT(1):this.context.stop=this.inputStream.LT(-1),this.triggerExitRuleEvent(),this.state=this.context.invokingState,this.context=this.context.parent}enterOuterAlt(e,t){e.setAltNumber(t),this.buildParseTrees&&this.context!==e&&this.context?.parent&&(this.context.parent.removeLastChild(),this.context.parent.addChild(e)),this.context=e}getPrecedence(){return 0===this.precedenceStack.length?-1:this.precedenceStack[this.precedenceStack.length-1]}enterRecursionRule(e,t,i,s){this.state=t,this.precedenceStack.push(s),this.context=e,this.context.start=this.inputStream.LT(1),this.triggerEnterRuleEvent()}pushNewRecursionContext(e,t,i){const s=this.context;s.parent=e,s.invokingState=t,s.stop=this.inputStream.LT(-1),this.context=e,this.context.start=s.start,this.buildParseTrees&&this.context.addChild(s),this.triggerEnterRuleEvent()}unrollRecursionContexts(e){this.precedenceStack.pop(),this.context.stop=this.inputStream.LT(-1);const t=this.context,i=this.getParseListeners();if(null!==i&&i.length>0)for(;this.context!==e;)this.triggerExitRuleEvent(),this.context=this.context.parent;else this.context=e;t.parent=e,this.buildParseTrees&&null!==e&&e.addChild(t)}getInvokingContext(e){let t=this.context;for(;null!==t;){if(t.ruleIndex===e)return t;t=t.parent}return null}precpred(e,t){return t>=this.precedenceStack[this.precedenceStack.length-1]}isExpectedToken(e){const t=this.interpreter.atn;let i=this.context;const s=t.states[this.state];let n=t.nextTokens(s);if(n.contains(e))return!0;if(!n.contains(r.EPSILON))return!1;for(;null!==i&&i.invokingState>=0&&n.contains(r.EPSILON);){const s=t.states[i.invokingState].transitions[0];if(n=t.nextTokens(s.followState),n.contains(e))return!0;i=i.parent}return!(!n.contains(r.EPSILON)||e!==r.EOF)}getExpectedTokens(){return this.interpreter.atn.getExpectedTokens(this.state,this.context)}getExpectedTokensWithinCurrentRule(){const e=this.interpreter.atn,t=e.states[this.state];return e.nextTokens(t)}getRuleIndex(e){return this.getRuleIndexMap().get(e)??-1}getRuleInvocationStack(e){null===(e=e??null)&&(e=this.context);const t=[];for(;null!==e;){const i=e.ruleIndex;i<0?t.push("n/a"):t.push(this.ruleNames[i]),e=e.parent}return t}getDFAStrings(){return this.interpreter.decisionToDFA.toString()}dumpDFA(){let e=!1;for(const t of this.interpreter.decisionToDFA)t.length>0&&(e&&console.log(),this.printer&&(this.printer.println("Decision "+t.decision+":"),this.printer.print(t.toString(this.vocabulary))),e=!0)}getSourceName(){return this.inputStream.getSourceName()}getParseInfo(){const e=this.interpreter;if(e instanceof mt)return new ct(e)}setProfile(e){const t=this.interpreter,i=t.predictionMode;if(e)t instanceof mt||(this.interpreter=new mt(this));else if(t instanceof mt){const e=t.sharedContextCache;if(e){const i=new gt(this,this.atn,t.decisionToDFA,e);this.interpreter=i}}this.interpreter.predictionMode=i}setTrace(e){e?(null!==this.tracer&&this.removeParseListener(this.tracer),this.tracer=new zt(this),this.addParseListener(this.tracer)):(this.removeParseListener(this.tracer),this.tracer=null)}createTerminalNode(e,t){return new F(t)}createErrorNode(e,t){return new U(t)}},jt=class extends Gt{static{c(this,"ParserInterpreter")}rootContext;overrideDecisionRoot=null;parentContextStack=[];overrideDecisionAlt=-1;overrideDecisionReached=!1;decisionToDFA;sharedContextCache=new pt;pushRecursionContextStates;#h=-1;#d=-1;#u;#g;#p;#m;constructor(e,t,i,s,n){super(n),this.#u=e,this.#g=s,this.#p=i.slice(0),this.#m=t,this.pushRecursionContextStates=new h;for(const r of s.states)r instanceof de&&r.precedenceRuleDecision&&this.pushRecursionContextStates.set(r.stateNumber);this.decisionToDFA=s.decisionToState.map(((e,t)=>new it(e,t))),this.interpreter=new gt(this,s,this.decisionToDFA,this.sharedContextCache)}reset(){super.reset(),this.overrideDecisionReached=!1,this.overrideDecisionRoot=null}get atn(){return this.#g}get vocabulary(){return this.#m}get ruleNames(){return this.#p}get grammarFileName(){return this.#u}get atnState(){return this.#g.states[this.state]}parse(e){const t=this.#g.ruleToStartState[e];for(this.rootContext=this.createInterpreterRuleContext(null,x.INVALID_STATE_NUMBER,e),t.isLeftRecursiveRule?this.enterRecursionRule(this.rootContext,t.stateNumber,e,0):this.enterRule(this.rootContext,t.stateNumber,e);;){const e=this.atnState;if(e.constructor.stateType===x.RULE_STOP){if(this.context?.isEmpty()){if(t.isLeftRecursiveRule){const e=this.context,t=this.parentContextStack.pop();return this.unrollRecursionContexts(t[0]),e}return this.exitRule(),this.rootContext}this.visitRuleStopState(e)}else try{this.visitState(e)}catch(i){if(!(i instanceof Xe))throw i;this.state=this.#g.ruleToStopState[e.ruleIndex].stateNumber,this.errorHandler.reportError(this,i),this.recover(i)}}}addDecisionOverride(e,t,i){this.#h=e,this.#d=t,this.overrideDecisionAlt=i}get overrideDecision(){return this.#h}get overrideDecisionInputIndex(){return this.#d}enterRecursionRule(e,t,i,s){this.parentContextStack.push([this.context,e.invokingState]),super.enterRecursionRule(e,t,i,s)}get serializedATN(){throw new Error("The ParserInterpreter does not support the serializedATN property.")}visitState(e){let t=1;e instanceof ie&&(t=this.visitDecisionState(e));const i=e.transitions[t-1];switch(i.transitionType){case I.EPSILON:if(this.pushRecursionContextStates.get(e.stateNumber)&&i.target.constructor.stateType!==x.LOOP_END){const t=this.parentContextStack[this.parentContextStack.length-1],i=this.createInterpreterRuleContext(t[0],t[1],this.context.ruleIndex);this.pushNewRecursionContext(i,this.#g.ruleToStartState[e.ruleIndex].stateNumber,this.context.ruleIndex)}break;case I.ATOM:this.match(i.label.minElement);break;case I.RANGE:case I.SET:case I.NOT_SET:i.matches(this.inputStream.LA(1),r.MIN_USER_TOKEN_TYPE,65535)||this.recoverInline(),this.matchWildcard();break;case I.WILDCARD:this.matchWildcard();break;case I.RULE:const t=i.target,s=t.ruleIndex,n=this.createInterpreterRuleContext(this.context,e.stateNumber,s);t.isLeftRecursiveRule?this.enterRecursionRule(n,t.stateNumber,s,i.precedence):this.enterRule(n,i.target.stateNumber,s);break;case I.PREDICATE:const o=i;if(!this.sempred(this.context,o.ruleIndex,o.predIndex))throw new Ft(this);break;case I.ACTION:const a=i;this.action(this.context,a.ruleIndex,a.actionIndex);break;case I.PRECEDENCE:if(!this.precpred(this.context,i.precedence)){const e=i.precedence;throw new Ft(this,`precpred(_ctx, ${e})`)}break;default:throw new Error("UnsupportedOperationException: Unrecognized ATN transition type.")}this.state=i.target.stateNumber}visitDecisionState(e){let t=1;if(e.transitions.length>1){this.errorHandler.sync(this);const i=e.decision;i!==this.#h||this.inputStream.index!==this.#d||this.overrideDecisionReached?t=this.interpreter.adaptivePredict(this.inputStream,i,this.context):(t=this.overrideDecisionAlt,this.overrideDecisionReached=!0)}return t}createInterpreterRuleContext(e,t,i){return new Vt(i,e,t)}visitRuleStopState(e){if(this.#g.ruleToStartState[e.ruleIndex].isLeftRecursiveRule){const[e,t]=this.parentContextStack.pop();this.unrollRecursionContexts(e),this.state=t}else this.exitRule();const t=this.#g.states[this.state].transitions[0];this.state=t.followState.stateNumber}recover(e){const t=this.inputStream.index;if(this.errorHandler.recover(this,e),this.inputStream.index===t){const t=e.offendingToken;if(!t)throw new Error("Expected exception to have an offending token");const i=t.tokenSource,s=[i,i?.inputStream??null];if(e instanceof Pt){const i=e.getExpectedTokens();if(!i)throw new Error("Expected the exception to provide expected tokens");let n=r.INVALID_TYPE;0!==i.length&&(n=i.minElement);const o=this.getTokenFactory().create(s,n,t.text,r.DEFAULT_CHANNEL,-1,-1,t.line,t.column);this.context.addErrorNode(this.createErrorNode(this.context,o))}else{const e=this.getTokenFactory().create(s,r.INVALID_TYPE,t.text,r.DEFAULT_CHANNEL,-1,-1,t.line,t.column);this.context.addErrorNode(this.createErrorNode(this.context,e))}}}recoverInline(){return this.errorHandler.recoverInline(this)}},Kt=class extends Map{static{c(this,"MultiMap")}map(e,t){let i=this.get(e);i||(i=new Array,this.set(e,i)),i.push(t)}getPairs(){const e=new Array;for(const t of this.keys()){const i=this.get(t)??[];for(const s of i)e.push([t,s])}return e}toString(){const e=[];return this.forEach(((t,i)=>{e.push(`${i}=[${t.join(", ")}]`)})),`{${e.join(", ")}}`}},Yt=class extends Error{static{c(this,"CannotInvokeStartRuleError")}constructor(e){super(),this.cause=e}},qt=class{static{c(this,"RuleTagToken")}label;ruleName;bypassTokenType;constructor(e,t,i){this.ruleName=e,this.bypassTokenType=t,this.label=i}get channel(){return r.DEFAULT_CHANNEL}get text(){return void 0!==this.label?"<"+this.label+":"+this.ruleName+">":"<"+this.ruleName+">"}get type(){return this.bypassTokenType}get line(){return 0}get column(){return-1}get tokenIndex(){return-1}get start(){return-1}get stop(){return-1}get tokenSource(){return null}get inputStream(){return null}toString(){return this.ruleName+":"+this.bypassTokenType}},$t=class extends Error{static{c(this,"StartRuleDoesNotConsumeFullPatternError")}},Qt=class extends Ot{static{c(this,"TagChunk")}tag;label;constructor(...e){let t,i;if(1===e.length?i=e[0]:(t=e[0],i=e[1]),super(),!i)throw new Error("tag cannot be null or empty");this.label=t,this.tag=i}toString(){return void 0!==this.label?this.label+":"+this.tag:this.tag}},Xt=class extends Ot{static{c(this,"TextChunk")}text;constructor(e){super(),this.text=e}toString(){return"'"+this.text+"'"}},Zt=class extends H{static{c(this,"TokenTagToken")}tokenName;label;constructor(e,t,i){super({type:t,source:H.EMPTY_SOURCE}),this.tokenName=e,this.label=i}get text(){return void 0!==this.label?"<"+this.label+":"+this.tokenName+">":"<"+this.tokenName+">"}toString(){return this.tokenName+":"+this.type}},Jt=class{static{c(this,"ParseTreePatternMatcher")}start="<";stop=">";escape="\\";lexer;parser;constructor(e,t){this.lexer=e,this.parser=t}setDelimiters(e,t,i){if(null===e||0===e.length)throw new Error("start cannot be null or empty");if(null===t||0===t.length)throw new Error("stop cannot be null or empty");this.start=e,this.stop=t,this.escape=i}matches(...e){switch(e.length){case 2:{const[t,i]=e,s=new Kt;return null===this.matchImpl(t,i.getPatternTree(),s)}case 3:{const[t,i,s]=e,n=this.compile(i,s);return this.matches(t,n)}default:throw new Error("Invalid number of arguments")}}match(...e){switch(e.length){case 2:{const[t,i]=e,s=new Kt,n=this.matchImpl(t,i.getPatternTree(),s);return new Dt(t,i,s,n)}case 3:{const[t,i,s]=e,n=this.compile(i,s);return this.match(t,n)}default:throw new Error("Invalid number of arguments")}}compile(e,t){const i=this.tokenize(e),s=new Wt(i),n=new St(s),o=new jt(this.parser.grammarFileName,this.parser.vocabulary,this.parser.ruleNames,this.parser.getATNWithBypassAlts(),n);o.removeErrorListeners();let a=null;try{o.errorHandler=new Bt,a=o.parse(t)}catch(c){throw c instanceof _t?c.cause:c instanceof Xe?c:c instanceof Error?new Yt(c):c}if(n.LA(1)!==r.EOF)throw new $t;return new Mt(this,e,t,a)}getLexer(){return this.lexer}getParser(){return this.parser}tokenize(e){const t=this.split(e),i=new Array;for(const s of t)if(s instanceof Qt){const t=s,n=t.tag[0];if(n===n.toUpperCase()){const s=this.parser.getTokenType(t.tag);if(s===r.INVALID_TYPE)throw new Error("Unknown token "+t.tag+" in pattern: "+e);const n=new Zt(t.tag,s,t.label);i.push(n)}else{if(n!==n.toLowerCase())throw new Error("invalid tag: "+t.tag+" in pattern: "+e);{const s=this.parser.getRuleIndex(t.tag);if(-1===s)throw new Error("Unknown rule "+t.tag+" in pattern: "+e);const n=this.parser.getATNWithBypassAlts().ruleToTokenType[s];i.push(new qt(t.tag,n,t.label))}}}else{const e=s,t=ft.fromString(e.text);this.lexer.inputStream=t;let n=this.lexer.nextToken();for(;n.type!==r.EOF;)i.push(n),n=this.lexer.nextToken()}return i}split(e){let t=0;const i=e.length,s=new Array,n=new Array,r=new Array;for(;t<i;)t===e.indexOf(this.escape+this.start,t)?t+=this.escape.length+this.start.length:t===e.indexOf(this.escape+this.stop,t)?t+=this.escape.length+this.stop.length:t===e.indexOf(this.start,t)?(n.push(t),t+=this.start.length):t===e.indexOf(this.stop,t)?(r.push(t),t+=this.stop.length):t++;if(n.length>r.length)throw new Error("unterminated tag in pattern: "+e);if(n.length<r.length)throw new Error("missing start tag in pattern: "+e);const o=n.length;for(let a=0;a<o;a++)if(n[a]>=r[a])throw new Error("tag delimiters out of order in pattern: "+e);if(0===o){const t=e.substring(0,i);s.push(new Xt(t))}if(o>0&&n[0]>0){const t=e.substring(0,n[0]);s.push(new Xt(t))}for(let a=0;a<o;a++){const t=e.substring(n[a]+this.start.length,r[a]);let i,c=t;const l=t.indexOf(":");if(l>=0&&(i=t.substring(0,l),c=t.substring(l+1,t.length)),s.push(new Qt(i,c)),a+1<o){const t=e.substring(r[a]+this.stop.length,n[a+1]);s.push(new Xt(t))}}if(o>0){const t=r[o-1]+this.stop.length;if(t<i){const n=e.substring(t,i);s.push(new Xt(n))}}for(let a=0;a<s.length;a++){const e=s[a];if(e instanceof Xt){const t=e,i=t.text.replaceAll(this.escape,"");i.length<t.text.length&&(s[a]=new Xt(i))}}return s}matchImpl(e,t,i){if(e instanceof F&&t instanceof F){const s=e,n=t;let r;if(s.getSymbol().type===n.getSymbol().type)if(n.getSymbol()instanceof Zt){const t=n.getSymbol();i.map(t.tokenName,e),void 0!==t.label&&i.map(t.label,e)}else s.getText()===n.getText()||r||(r=s);else r||(r=s);return r}if(e instanceof W&&t instanceof W){let s;const n=this.getRuleTagToken(t);if(n)return e.ruleIndex===t.ruleIndex?(i.map(n.ruleName,e),n.label&&i.map(n.label,e)):s||(s=e),s;if(e.getChildCount()!==t.getChildCount())return s||(s=e),s;const r=e.getChildCount();for(let o=0;o<r;o++){const s=this.matchImpl(e.getChild(o),t.getChild(o),i);if(s)return s}return s}return e}getRuleTagToken(e){if(e instanceof W&&1===e.getChildCount()&&e.getChild(0)instanceof F){const t=e.getChild(0);if(t.getSymbol()instanceof qt)return t.getSymbol()}}},ei=(class extends Ke{static{c(this,"DiagnosticErrorListener")}exactOnly;constructor(e){super(),this.exactOnly=e??!0}reportAmbiguity=c(((e,t,i,s,n,r,o)=>{if(this.exactOnly&&!n)return;const a=this.getDecisionDescription(e,t),c=this.getConflictingAlts(r,o),l=e.tokenStream?.getTextFromInterval(m.of(i,s)),h=`reportAmbiguity d=${a}: ambigAlts=${c}, input='${l}'`;e.notifyErrorListeners(h,null,null)}),"reportAmbiguity");reportAttemptingFullContext=c(((e,t,i,s,n,r)=>{const o=this.getDecisionDescription(e,t),a=e.tokenStream?.getTextFromInterval(m.of(i,s)),c=`reportAttemptingFullContext d=${o}, input='${a}'`;e.notifyErrorListeners(c,null,null)}),"reportAttemptingFullContext");reportContextSensitivity=c(((e,t,i,s,n,r)=>{const o=this.getDecisionDescription(e,t),a=e.tokenStream?.getTextFromInterval(m.of(i,s)),c=`reportContextSensitivity d=${o}, input='${a}'`;e.notifyErrorListeners(c,null,null)}),"reportContextSensitivity");getDecisionDescription=c(((e,t)=>{const i=t.decision,s=t.atnStartState.ruleIndex,n=e.ruleNames;if(s<0||s>=n.length)return i.toString();const r=n[s];return 0===r.length?i.toString():`${i} (${r})`}),"getDecisionDescription");getConflictingAlts=c(((e,t)=>{if(e)return e;const i=new h;for(let s=0;s<t.configs.length;s++)i.set(t.configs[s].alt);return i}),"getConflictingAlts")},class extends Je{static{c(this,"LexerInterpreter")}decisionToDFA;sharedContextCache=new pt;#u;#g;#p;#f;#_;#m;constructor(e,t,i,s,n,r,o){if(super(o),r.grammarType!==Z.LEXER)throw new Error("IllegalArgumentException: The ATN must be a lexer ATN.");this.#u=e,this.#g=r,this.#p=i.slice(0),this.#f=s.slice(0),this.#_=n.slice(0),this.#m=t,this.decisionToDFA=r.decisionToState.map(((e,t)=>new it(e,t))),this.interpreter=new at(this,r,this.decisionToDFA,this.sharedContextCache)}get atn(){return this.#g}get grammarFileName(){return this.#u}get ruleNames(){return this.#p}get channelNames(){return this.#f}get modeNames(){return this.#_}get vocabulary(){return this.#m}get serializedATN(){throw new Error("The LexerInterpreter does not support the serializedATN property.")}},class e{static{c(this,"RuntimeMetaData")}static VERSION="4.13.1";static getRuntimeVersion(){return e.VERSION}static checkVersion(t,i){const s=e.VERSION;let n=!1,r=!1;n=s!==t&&e.getMajorMinorVersion(s)!==e.getMajorMinorVersion(t),r=s!==i&&e.getMajorMinorVersion(s)!==e.getMajorMinorVersion(i),n&&console.error(`ANTLR Tool version ${t} used for code generation does not match the current runtime version ${s}`),r&&console.error(`ANTLR Runtime version ${i} used for parser compilation does not match the current runtime version ${s}`)}static getMajorMinorVersion(e){const t=e.indexOf("."),i=t>=0?e.indexOf(".",t+1):-1,s=e.indexOf("-");let n=e.length;return i>=0&&(n=Math.min(n,i)),s>=0&&(n=Math.min(n,s)),e.substring(0,n)}},class e{static{c(this,"TokenStreamRewriter")}static DEFAULT_PROGRAM_NAME="default";static PROGRAM_INIT_SIZE=100;static MIN_TOKEN_INDEX=0;tokens;programs=new Map;lastRewriteTokenIndexes;constructor(e){this.tokens=e}getTokenStream(){return this.tokens}insertAfter(t,i,s=e.DEFAULT_PROGRAM_NAME){let n;n="number"===typeof t?t:t.tokenIndex;const r=this.getProgram(s),o=new ii(this.tokens,n,r.length,i);r.push(o)}insertBefore(t,i,s=e.DEFAULT_PROGRAM_NAME){let n;n="number"===typeof t?t:t.tokenIndex;const r=this.getProgram(s),o=new ti(this.tokens,n,r.length,i);r.push(o)}replaceSingle(t,i,s=e.DEFAULT_PROGRAM_NAME){this.replace(t,t,i,s)}replace(t,i,s,n=e.DEFAULT_PROGRAM_NAME){if("number"!==typeof t&&(t=t.tokenIndex),"number"!==typeof i&&(i=i.tokenIndex),t>i||t<0||i<0||i>=this.tokens.size)throw new RangeError(`replace: range invalid: ${t}..${i}(size=${this.tokens.size})`);const r=this.getProgram(n),o=new si(this.tokens,t,i,r.length,s);r.push(o)}delete(t,i,s=e.DEFAULT_PROGRAM_NAME){null==i&&(i=t),this.replace(t,i,null,s)}getProgram(e){let t=this.programs.get(e);return null==t&&(t=this.initializeProgram(e)),t}initializeProgram(e){const t=[];return this.programs.set(e,t),t}getText(t,i=e.DEFAULT_PROGRAM_NAME){let s;s=t instanceof m?t:new m(0,this.tokens.size-1),"string"===typeof t&&(i=t);const n=this.programs.get(i);let o=s.start,a=s.stop;if(a>this.tokens.size-1&&(a=this.tokens.size-1),o<0&&(o=0),null==n||0===n.length)return this.tokens.getTextFromInterval(new m(o,a));const c=[],l=this.reduceToSingleOperationPerIndex(n);let h=o;for(;h<=a&&h<this.tokens.size;){const e=l.get(h);l.delete(h);const t=this.tokens.get(h);null==e?(t.type!==r.EOF&&c.push(String(t.text)),h++):h=e.execute(c)}if(a===this.tokens.size-1)for(const e of l.values())e&&e.index>=this.tokens.size-1&&c.push(String(e.text));return c.join("")}reduceToSingleOperationPerIndex(e){for(let i=0;i<e.length;i++){const t=e[i];if(null==t)continue;if(!(t instanceof si))continue;const s=t,n=this.getKindOfOps(e,ti,i);for(const i of n)i.index===s.index?(e[i.instructionIndex]=null,s.text=String(i.text)+(null!=s.text?s.text.toString():"")):i.index>s.index&&i.index<=s.lastIndex&&(e[i.instructionIndex]=null);const r=this.getKindOfOps(e,si,i);for(const i of r){if(i.index>=s.index&&i.lastIndex<=s.lastIndex){e[i.instructionIndex]=null;continue}const t=i.lastIndex<s.index||i.index>s.lastIndex;if(null!=i.text||null!=s.text||t){if(!t)throw new Error(`replace op boundaries of ${s} overlap with previous ${i}`)}else e[i.instructionIndex]=null,s.index=Math.min(i.index,s.index),s.lastIndex=Math.max(i.lastIndex,s.lastIndex)}}for(let i=0;i<e.length;i++){const t=e[i];if(null==t)continue;if(!(t instanceof ti))continue;const s=t,n=this.getKindOfOps(e,ti,i);for(const i of n)i.index===s.index&&(i instanceof ii?(s.text=this.catOpText(i.text,s.text),e[i.instructionIndex]=null):i instanceof ti&&(s.text=this.catOpText(s.text,i.text),e[i.instructionIndex]=null));const r=this.getKindOfOps(e,si,i);for(const o of r)if(s.index!==o.index){if(s.index>=o.index&&s.index<=o.lastIndex)throw new Error(`insert op ${s} within boundaries of previous ${o}`)}else o.text=this.catOpText(s.text,o.text),e[i]=null}const t=new Map;for(const i of e)if(null!=i){if(null!=t.get(i.index))throw new Error("should only be one op per index");t.set(i.index,i)}return t}catOpText(e,t){let i="",s="";return null!=e&&(i=e.toString()),null!=t&&(s=t.toString()),i+s}getKindOfOps(e,t,i){return e.slice(0,i).filter((e=>e&&e instanceof t))}},class{static{c(this,"RewriteOperation")}instructionIndex;index;text;tokens;constructor(e,t,i,s){this.tokens=e,this.instructionIndex=i,this.index=t,this.text=void 0===s?"":s}execute(e){return this.index}toString(){return"<RewriteOperation@"+this.tokens.get(this.index)+':"'+this.text+'">'}}),ti=class extends ei{static{c(this,"InsertBeforeOp")}constructor(e,t,i,s){super(e,t,i,s)}execute(e){return this.text&&e.push(this.text.toString()),this.tokens.get(this.index).type!==r.EOF&&e.push(String(this.tokens.get(this.index).text)),this.index+1}toString(){return"<InsertBeforeOp@"+this.tokens.get(this.index)+':"'+this.text+'">'}},ii=class extends ti{static{c(this,"InsertAfterOp")}constructor(e,t,i,s){super(e,t+1,i,s)}toString(){return"<InsertAfterOp@"+this.tokens.get(this.index)+':"'+this.text+'">'}},si=class extends ei{static{c(this,"ReplaceOp")}lastIndex;constructor(e,t,i,s,n){super(e,t,s,n),this.lastIndex=i}execute(e){return this.text&&e.push(this.text.toString()),this.lastIndex+1}toString(){return null==this.text?"<DeleteOp@"+this.tokens.get(this.index)+".."+this.tokens.get(this.lastIndex)+">":"<ReplaceOp@"+this.tokens.get(this.index)+".."+this.tokens.get(this.lastIndex)+':"'+this.text+'">'}},ni=(class{static{c(this,"UnbufferedTokenStream")}tokenSource;tokens;n;p=0;numMarkers=0;lastToken;lastTokenBufferStart;currentTokenIndex=0;constructor(e,t){this.tokenSource=e,t=t??256,this.tokens=new Array(t),this.n=0,this.fill(1)}get(e){const t=this.getBufferStartIndex();if(e<t||e>=t+this.n)throw new Error("get("+e+") outside buffer: "+t+".."+(t+this.n));return this.tokens[e-t]}LT(e){if(-1===e)return this.lastToken;this.sync(e);const t=this.p+e-1;if(t<0)throw new Error("LT("+e+") gives negative index");return t>=this.n?this.tokens[this.n-1]:this.tokens[t]}LA(e){return this.LT(e).type}getText(){return""}getTextFromContext(e){return this.getTextFromInterval(e.getSourceInterval())}getTextFromInterval(e){const t=this.getBufferStartIndex(),i=t+this.tokens.length-1,s=e.start,n=e.stop;if(s<t||n>i)throw new Error("interval "+e+" not in token buffer window: "+t+".."+i);const r=n-t;let o="";for(let a=s-t;a<=r;a++){o+=this.tokens[a].text}return o}getTextFromRange(e,t){return this.getTextFromInterval(m.of(e.tokenIndex,t.tokenIndex))}consume(){if(this.LA(1)===r.EOF)throw new Error("cannot consume EOF");this.lastToken=this.tokens[this.p],this.p===this.n-1&&0===this.numMarkers&&(this.n=0,this.p=-1,this.lastTokenBufferStart=this.lastToken),this.p++,this.currentTokenIndex++,this.sync(1)}mark(){0===this.numMarkers&&(this.lastTokenBufferStart=this.lastToken);const e=-this.numMarkers-1;return this.numMarkers++,e}release(e){if(e!==-this.numMarkers)throw new Error("release() called with an invalid marker.");this.numMarkers--,0===this.numMarkers&&(this.p>0&&(this.tokens.copyWithin(0,this.p,this.n),this.n=this.n-this.p,this.p=0),this.lastTokenBufferStart=this.lastToken)}get index(){return this.currentTokenIndex}seek(e){if(e===this.currentTokenIndex)return;e>this.currentTokenIndex&&(this.sync(e-this.currentTokenIndex),e=Math.min(e,this.getBufferStartIndex()+this.n-1));const t=this.getBufferStartIndex(),i=e-t;if(i<0)throw new Error("cannot seek to negative index "+e);if(i>=this.n)throw new Error("seek to index outside buffer: "+e+" not in "+t+".."+(t+this.n));this.p=i,this.currentTokenIndex=e,0===this.p?this.lastToken=this.lastTokenBufferStart:this.lastToken=this.tokens[this.p-1]}get size(){throw new Error("Unbuffered stream cannot know its size")}getSourceName(){return this.tokenSource.sourceName}setLine(e){this.tokenSource.line=e}setColumn(e){this.tokenSource.column=e}sync(e){const t=this.p+e-1-this.n+1;t>0&&this.fill(t)}fill(e){for(let t=0;t<e;t++){if(this.n>0&&this.tokens[this.n-1].type===r.EOF)return t;const e=this.tokenSource.nextToken();this.add(e)}return e}add(e){this.n>=this.tokens.length&&(this.tokens.length=2*this.tokens.length),Et(e)&&e.setTokenIndex(this.getBufferStartIndex()+this.n),this.tokens[this.n++]=e}getBufferStartIndex(){return this.currentTokenIndex-this.p}},Object.defineProperty),ri=(e,t)=>ni(e,"name",{value:t,configurable:!0}),oi=class{static{ri(this,"BaseSymbol")}name;context;modifiers=new Set;visibility=0;#v;constructor(e=""){this.name=e}get parent(){return this.#v}get firstSibling(){if(this.#v)return this.#v?.firstChild}get previousSibling(){if(this.#v)return this.#v?this.#v.previousSiblingOf(this):this}get nextSibling(){return this.#v?.nextSiblingOf(this)}get lastSibling(){return this.#v?.lastChild}get next(){return this.#v?.nextOf(this)}get root(){let e=this.#v;for(;e;){if(!e.parent||this.isSymbolTable(e.parent))return e;e=e.parent}return e}get symbolTable(){if(this.isSymbolTable(this))return this;let e=this.#v;for(;e;){if(this.isSymbolTable(e))return e;e=e.parent}}get symbolPath(){const e=[];let t=this;for(;t&&(e.push(t),t.parent);)t=t.parent;return e}setParent(e){this.#v=e}removeFromParent(){this.#v?.removeSymbol(this),this.#v=void 0}async resolve(e,t=!1){return this.#v?.resolve(e,t)}resolveSync(e,t=!1){return this.#v?.resolveSync(e,t)}getParentOfType(e){let t=this.#v;for(;t;){if(t instanceof e)return t;t=t.parent}}qualifiedName(e=".",t=!1,i=!1){if(!i&&0===this.name.length)return"";let s=0===this.name.length?"<anonymous>":this.name,n=this.#v;for(;n&&((i||n.name.length>0)&&(s=(0===n.name.length?"<anonymous>":n.name)+e+s),t&&n.parent);)n=n.parent;return s}isSymbolTable(e){return void 0!==e.info}},ai=(class extends oi{static{ri(this,"ArrayType")}elementType;size;referenceKind;constructor(e,t,i,s=0){super(e),this.referenceKind=t,this.elementType=i,this.size=s}get baseTypes(){return[]}get kind(){return 9}get reference(){return this.referenceKind}},class extends Error{static{ri(this,"DuplicateSymbolError")}}),ci=class e extends oi{static{ri(this,"ScopedSymbol")}#C=[];#E=new Map;constructor(e=""){super(e)}get directScopes(){return this.getSymbolsOfType(e)}get children(){return this.#C}get firstChild(){if(this.#C.length>0)return this.#C[0]}get lastChild(){if(this.#C.length>0)return this.#C[this.#C.length-1]}clear(){this.#C=[],this.#E.clear()}addSymbol(e){e.removeFromParent();const t=this.symbolTable,i=this.#E.get(e.name);if(t&&t.options.allowDuplicateSymbols)this.#E.set(e.name,void 0===i?1:i+1);else{if(void 0!==i)throw new ai("Attempt to add duplicate symbol '"+(e.name??"<anonymous>")+"'");this.#E.set(e.name,1);if(this.#C.indexOf(e)>-1)throw new ai("Attempt to add duplicate symbol '"+(e.name??"<anonymous>")+"'")}this.#C.push(e),e.setParent(this)}removeSymbol(e){const t=this.#C.indexOf(e);if(t>-1){this.#C.splice(t,1),e.setParent(void 0);const i=this.#E.get(e.name);void 0!==i&&(1===i?this.#E.delete(e.name):this.#E.set(e.name,i-1))}}async getNestedSymbolsOfType(t){const i=[],s=[];this.#C.forEach((n=>{n instanceof t&&i.push(n),n instanceof e&&s.push(n.getNestedSymbolsOfType(t))}));return(await Promise.all(s)).forEach((e=>{i.push(...e)})),i}getNestedSymbolsOfTypeSync(t){const i=[];return this.#C.forEach((s=>{s instanceof t&&i.push(s),s instanceof e&&i.push(...s.getNestedSymbolsOfTypeSync(t))})),i}async getAllNestedSymbols(t){const i=[],s=[];this.#C.forEach((n=>{t&&n.name!==t||i.push(n),n instanceof e&&s.push(n.getAllNestedSymbols(t))}));return(await Promise.all(s)).forEach((e=>{i.push(...e)})),i}getAllNestedSymbolsSync(t){const i=[];return this.#C.forEach((s=>{t&&s.name!==t||i.push(s),s instanceof e&&i.push(...s.getAllNestedSymbolsSync(t))})),i}getSymbolsOfType(e){return new Promise((t=>{const i=[];this.#C.forEach((t=>{t instanceof e&&i.push(t)})),t(i)}))}async getAllSymbols(e,t=!1){const i=[];for(const s of this.#C)if(s instanceof e&&i.push(s),this.isNamespace(s)){const t=await s.getAllSymbols(e,!0);i.push(...t)}if(!t&&this.parent){const t=await this.getAllSymbols(e,!0);i.push(...t)}return i}getAllSymbolsSync(e,t=!1){const i=[];for(const s of this.#C)if(s instanceof e&&i.push(s),this.isNamespace(s)){const t=s.getAllSymbolsSync(e,!0);i.push(...t)}if(!t&&this.parent){const t=this.getAllSymbolsSync(e,!0);i.push(...t)}return i}async resolve(e,t=!1){return new Promise((i=>{for(const t of this.#C)if(t.name===e)return void i(t);t||!this.parent?i(void 0):i(this.parent.resolve(e,!1))}))}resolveSync(e,t=!1){for(const i of this.#C)if(i.name===e)return i;if(!t&&this.parent)return this.parent.resolveSync(e,!1)}symbolFromPath(t,i="."){const s=t.split(i);let n=0;s[0]!==this.name&&0!==s[0].length||++n;let r=this;for(;n<s.length;){if(!(r instanceof e))return;const t=r.children.find((e=>e.name===s[n]));if(!t)return;r=t,++n}return r}indexOfChild(e){return this.#C.findIndex((t=>t===e))}nextSiblingOf(e){const t=this.indexOfChild(e);if(!(-1===t||t>=this.#C.length-1))return this.#C[t+1]}previousSiblingOf(e){const t=this.indexOfChild(e);if(!(t<1))return this.#C[t-1]}nextOf(t){if(!t.parent)return;if(t.parent!==this)return t.parent.nextOf(t);if(t instanceof e&&t.children.length>0)return t.children[0];const i=this.nextSiblingOf(t);return i||this.parent.nextOf(this)}isNamespace(e){return void 0!==e.inline&&void 0!==e.attributes}},li=(class extends ci{static{ri(this,"BlockSymbol")}},class extends oi{static{ri(this,"TypedSymbol")}type;constructor(e,t){super(e),this.type=t}}),hi=class extends li{static{ri(this,"VariableSymbol")}value;constructor(e,t,i){super(e,i),this.value=t}},di=class extends hi{static{ri(this,"FieldSymbol")}setter;getter},ui=class extends hi{static{ri(this,"ParameterSymbol")}},gi=class extends ci{static{ri(this,"RoutineSymbol")}returnType;constructor(e,t){super(e),this.returnType=t}getVariables(e=!0){return this.getSymbolsOfType(hi)}getParameters(e=!0){return this.getSymbolsOfType(ui)}},pi=class extends gi{static{ri(this,"MethodSymbol")}methodFlags=0},mi=(class extends ci{static{ri(this,"ClassSymbol")}isStruct=!1;reference=0;extends;implements;constructor(e,t,i){super(e),this.extends=t,this.implements=i}get baseTypes(){return this.extends}get kind(){return 7}getMethods(e=!1){return this.getSymbolsOfType(pi)}getFields(e=!1){return this.getSymbolsOfType(di)}},class e{static{ri(this,"FundamentalType")}static integerType=new e("int",1,3);static floatType=new e("float",2,3);static stringType=new e("string",4,3);static boolType=new e("bool",6,3);name;typeKind;referenceKind;constructor(e,t=0,i=0){this.name=e,this.typeKind=t,this.referenceKind=i}get baseTypes(){return[]}get kind(){return this.typeKind}get reference(){return this.referenceKind}},class extends ci{static{ri(this,"InterfaceSymbol")}reference=0;extends;constructor(e,t){super(e),this.extends=t}get baseTypes(){return this.extends}get kind(){return 8}getMethods(e=!1){return this.getSymbolsOfType(pi)}getFields(e=!1){return this.getSymbolsOfType(di)}},class extends li{static{ri(this,"LiteralSymbol")}value;constructor(e,t,i){super(e,i),this.value=t}},class extends ci{static{ri(this,"NamespaceSymbol")}inline;attributes;constructor(e,t=!1,i=[]){super(e),this.inline=t,this.attributes=i}}),fi=(class extends oi{static{ri(this,"TypeAlias")}targetType;constructor(e,t){super(e),this.targetType=t}get baseTypes(){return[this.targetType]}get kind(){return 12}get reference(){return 0}},ri(((e,t)=>{if(!e||!t)return[];let i;for(i=0;i<Math.min(e.length,t.length)&&e[i]===t[i];i++);return e.slice(0,i)}),"longestCommonPrefix")),_i=class{static{ri(this,"CandidatesCollection")}tokens=new Map;rules=new Map},vi=class{static{ri(this,"FollowSetWithPath")}intervals;path=[];following=[]},Ci=class e{static{ri(this,"CodeCompletionCore")}static followSetsByATN=new Map;static atnStateTypeMap=["invalid","basic","rule start","block start","plus block start","star block start","token start","rule stop","block end","star loop back","star loop entry","plus loop back","loop end"];showResult=!1;showDebugOutput=!1;debugOutputWithTransitions=!1;showRuleStack=!1;ignoredTokens;preferredRules;translateRulesTopDown=!1;parser;atn;vocabulary;ruleNames;tokens;precedenceStack;tokenStartIndex=0;statesProcessed=0;shortcutMap=new Map;candidates=new _i;constructor(e){this.parser=e,this.atn=e.atn,this.vocabulary=e.vocabulary,this.ruleNames=e.ruleNames,this.ignoredTokens=new Set,this.preferredRules=new Set}collectCandidates(e,t){this.shortcutMap.clear(),this.candidates.rules.clear(),this.candidates.tokens.clear(),this.statesProcessed=0,this.precedenceStack=[],this.tokenStartIndex=t?.start?t.start.tokenIndex:0;const i=this.parser.tokenStream;this.tokens=[];let s=this.tokenStartIndex;for(;;){const t=i.get(s++);if(!t)break;if(t.channel===r.DEFAULT_CHANNEL&&(this.tokens.push(t),t.tokenIndex>=e||t.type===r.EOF))break;if(t.type===r.EOF)break}const n=t?t.ruleIndex:0;if(this.processRule(this.atn.ruleToStartState[n],0,[],0,0),this.showResult){console.log(`States processed: ${this.statesProcessed}`),console.log("\n\nCollected rules:\n");for(const t of this.candidates.rules){let e="";for(const i of t[1].ruleList)e+=this.ruleNames[i]+" ";console.log(this.ruleNames[t[0]]+", path: ",e)}const e=new Set;for(const t of this.candidates.tokens){let i=this.vocabulary.getDisplayName(t[0])??"";for(const e of t[1])i+=" "+this.vocabulary.getDisplayName(e);e.add(i)}console.log("\n\nCollected tokens:\n");for(const t of e)console.log(t);console.log("\n\n")}return this.candidates}checkPredicate(e){return e.getPredicate().evaluate(this.parser,W.empty)}translateStackToRuleIndex(e){if(0===this.preferredRules.size)return!1;if(this.translateRulesTopDown){for(let t=e.length-1;t>=0;t--)if(this.translateToRuleIndex(t,e))return!0}else for(let t=0;t<e.length;t++)if(this.translateToRuleIndex(t,e))return!0;return!1}translateToRuleIndex(e,t){const{ruleIndex:i,startTokenIndex:s}=t[e];if(this.preferredRules.has(i)){const n=t.slice(0,e).map((({ruleIndex:e})=>e));let r=!0;for(const e of this.candidates.rules)if(e[0]===i&&e[1].ruleList.length===n.length&&n.every(((t,i)=>t===e[1].ruleList[i]))){r=!1;break}return r&&(this.candidates.rules.set(i,{startTokenIndex:s,ruleList:n}),this.showDebugOutput&&console.log("=====> collected: ",this.ruleNames[i])),!0}return!1}getFollowingTokens(e){const t=[],i=[e.target];for(;i.length>0;){const e=i.pop();e&&e.transitions.forEach((e=>{if(e.transitionType===I.ATOM)if(e.isEpsilon)i.push(e.target);else{const s=e.label.toArray();1!==s.length||this.ignoredTokens.has(s[0])||(t.push(s[0]),i.push(e.target))}}))}return t}determineFollowSets(e,t){const i=[],s=this.collectFollowSets(e,t,i,[],[]),n=new _;for(const r of i)n.addSet(r.intervals);return{sets:i,isExhaustive:s,combined:n}}collectFollowSets(e,t,i,s,n){if(s.find((t=>t===e)))return!0;if(s.push(e),e===t||e.constructor.stateType===x.RULE_STOP)return s.pop(),!1;let o=!0;for(const a of e.transitions)if(a.transitionType===I.RULE){const e=a;if(-1!==n.indexOf(e.target.ruleIndex))continue;n.push(e.target.ruleIndex);const r=this.collectFollowSets(a.target,t,i,s,n);if(n.pop(),!r){const r=this.collectFollowSets(e.followState,t,i,s,n);o&&=r}}else if(a.transitionType===I.PREDICATE){if(this.checkPredicate(a)){const e=this.collectFollowSets(a.target,t,i,s,n);o&&=e}}else if(a.isEpsilon){const e=this.collectFollowSets(a.target,t,i,s,n);o&&=e}else if(a.transitionType===I.WILDCARD){const e=new vi;e.intervals=_.of(r.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType),e.path=n.slice(),i.push(e)}else{let e=a.label;if(e&&e.length>0){a.transitionType===I.NOT_SET&&(e=e.complement(r.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType));const t=new vi;t.intervals=e??new _,t.path=n.slice(),t.following=this.getFollowingTokens(a),i.push(t)}}return s.pop(),o}processRule(t,i,s,n,o){let a=this.shortcutMap.get(t.ruleIndex);if(a){if(a.has(i))return this.showDebugOutput&&console.log("=====> shortcut"),a.get(i)}else a=new Map,this.shortcutMap.set(t.ruleIndex,a);const c=new Set;let l=e.followSetsByATN.get(this.parser.constructor.name);l||(l=new Map,e.followSetsByATN.set(this.parser.constructor.name,l));let h=l.get(t.stateNumber);if(!h){const e=this.atn.ruleToStopState[t.ruleIndex];h=this.determineFollowSets(t,e),l.set(t.stateNumber,h)}const d=this.tokens[i].tokenIndex;if(s.push({startTokenIndex:d,ruleIndex:t.ruleIndex}),i>=this.tokens.length-1){if(this.preferredRules.has(t.ruleIndex))this.translateStackToRuleIndex(s);else for(const e of h.sets){const t=s.slice(),i=e.path.map((e=>({startTokenIndex:d,ruleIndex:e})));if(t.push(...i),!this.translateStackToRuleIndex(t))for(const s of e.intervals.toArray())this.ignoredTokens.has(s)||(this.showDebugOutput&&console.log("=====> collected: ",this.vocabulary.getDisplayName(s)),this.candidates.tokens.has(s)?this.candidates.tokens.get(s)!==e.following&&this.candidates.tokens.set(s,[]):this.candidates.tokens.set(s,e.following))}return h.isExhaustive||c.add(i),s.pop(),c}{const e=this.tokens[i].type;if(h.isExhaustive&&!h.combined.contains(e))return s.pop(),c}t.isPrecedenceRule&&this.precedenceStack.push(n);const u=[];let g;for(u.push({state:t,tokenListIndex:i});u.length>0;){g=u.pop(),++this.statesProcessed;const e=this.tokens[g.tokenListIndex].type,t=g.tokenListIndex>=this.tokens.length-1;if(this.showDebugOutput&&(this.printDescription(o,g.state,this.generateBaseDescription(g.state),g.tokenListIndex),this.showRuleStack&&this.printRuleState(s)),g.state.constructor.stateType===x.RULE_STOP){c.add(g.tokenListIndex);continue}const i=g.state.transitions;for(const n of i)switch(n.transitionType){case I.RULE:{const e=n,t=this.processRule(n.target,g.tokenListIndex,s,e.precedence,o+1);for(const i of t)u.push({state:n.followState,tokenListIndex:i});break}case I.PREDICATE:this.checkPredicate(n)&&u.push({state:n.target,tokenListIndex:g.tokenListIndex});break;case I.PRECEDENCE:n.precedence>=this.precedenceStack[this.precedenceStack.length-1]&&u.push({state:n.target,tokenListIndex:g.tokenListIndex});break;case I.WILDCARD:if(t){if(!this.translateStackToRuleIndex(s))for(const e of _.of(r.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType).toArray())this.ignoredTokens.has(e)||this.candidates.tokens.set(e,[])}else u.push({state:n.target,tokenListIndex:g.tokenListIndex+1});break;default:{if(n.isEpsilon){u.push({state:n.target,tokenListIndex:g.tokenListIndex});continue}let i=n.label;if(i&&i.length>0)if(n.transitionType===I.NOT_SET&&(i=i.complement(r.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType)),t){if(!this.translateStackToRuleIndex(s)){const e=i.toArray(),t=1===e.length;for(const i of e)if(!this.ignoredTokens.has(i)){this.showDebugOutput&&console.log("=====> collected: ",this.vocabulary.getDisplayName(i));const e=t?this.getFollowingTokens(n):[];this.candidates.tokens.has(i)?this.candidates.tokens.set(i,fi(e,this.candidates.tokens.get(i))):this.candidates.tokens.set(i,e)}}}else i.contains(e)&&(this.showDebugOutput&&console.log("=====> consumed: ",this.vocabulary.getDisplayName(e)),u.push({state:n.target,tokenListIndex:g.tokenListIndex+1}))}}}return s.pop(),t.isPrecedenceRule&&this.precedenceStack.pop(),a.set(i,c),c}generateBaseDescription(t){return`[${t.stateNumber===x.INVALID_STATE_NUMBER?"Invalid":t.stateNumber} ${e.atnStateTypeMap[t.constructor.stateType]}] in ${this.ruleNames[t.ruleIndex]}`}printDescription(t,i,s,n){const r=" ".repeat(t);let o=r,a="";if(this.debugOutputWithTransitions)for(const c of i.transitions){let t="";const i=c.label?c.label.toArray():[];if(i.length>2)t=this.vocabulary.getDisplayName(i[0])+" .. "+this.vocabulary.getDisplayName(i[i.length-1]);else for(const e of i)t.length>0&&(t+=", "),t+=this.vocabulary.getDisplayName(e);0===t.length&&(t="\u03b5");const s=e.atnStateTypeMap[c.target.constructor.stateType];a+=`\n${r}\t(${t}) [${c.target.stateNumber} ${s}] in ${this.ruleNames[c.target.ruleIndex]}`}n>=this.tokens.length-1?o+=`<<${this.tokenStartIndex+n}>> `:o+=`<${this.tokenStartIndex+n}> `,console.log(o+"Current state: "+s+a)}printRuleState(e){if(0!==e.length)for(const t of e)console.log(this.ruleNames[t.ruleIndex]);else console.log("<empty stack>")}},Ei=class extends ci{constructor(e,t){super(e),this.options=t}static{ri(this,"SymbolTable")}dependencies=new Set;get info(){return{dependencyCount:this.dependencies.size,symbolCount:this.children.length}}clear(){super.clear(),this.dependencies.clear()}addDependencies(...e){e.forEach((e=>{this.dependencies.add(e)}))}removeDependency(e){this.dependencies.has(e)&&this.dependencies.delete(e)}addNewSymbolOfType(e,t,...i){const s=new e(...i);return t&&t!==this?t.addSymbol(s):this.addSymbol(s),s}async addNewNamespaceFromPath(e,t,i="."){const s=t.split(i);let n=0,r=void 0===e?this:e;for(;n<s.length-1;){let e=await r.resolve(s[n],!0);void 0===e&&(e=this.addNewSymbolOfType(mi,r,s[n])),r=e,++n}return this.addNewSymbolOfType(mi,r,s[s.length-1])}addNewNamespaceFromPathSync(e,t,i="."){const s=t.split(i);let n=0,r=void 0===e?this:e;for(;n<s.length-1;){let e=r.resolveSync(s[n],!0);void 0===e&&(e=this.addNewSymbolOfType(mi,r,s[n])),r=e,++n}return this.addNewSymbolOfType(mi,r,s[s.length-1])}async getAllSymbols(e,t=!1){const i=await super.getAllSymbols(e,t);if(!t){(await Promise.all([...this.dependencies].map((i=>i.getAllSymbols(e,t))))).forEach((e=>{i.push(...e)}))}return i}getAllSymbolsSync(e,t=!1){const i=super.getAllSymbolsSync(e,t);return t||this.dependencies.forEach((s=>{i.push(...s.getAllSymbolsSync(e,t))})),i}async symbolWithContext(e){const t=ri((i=>{if(i.context===e)return i;if(i instanceof ci)for(const e of i.children){const i=t(e);if(i)return i}}),"findRecursive");let i=await this.getAllSymbols(oi);for(const s of i){const e=t(s);if(e)return e}for(const s of this.dependencies){i=await s.getAllSymbols(oi);for(const e of i){const i=t(e);if(i)return i}}}symbolWithContextSync(e){const t=ri((i=>{if(i.context===e)return i;if(i instanceof ci)for(const e of i.children){const i=t(e);if(i)return i}}),"findRecursive");let i=this.getAllSymbolsSync(oi);for(const s of i){const e=t(s);if(e)return e}for(const s of this.dependencies){i=s.getAllSymbolsSync(oi);for(const e of i){const i=t(e);if(i)return i}}}async resolve(e,t=!1){let i=await super.resolve(e,t);if(!i&&!t)for(const s of this.dependencies)if(i=await s.resolve(e,!1),i)return i;return i}resolveSync(e,t=!1){let i=super.resolveSync(e,t);if(!i&&!t)for(const s of this.dependencies)if(i=s.resolveSync(e,!1),i)return i;return i}},bi=(Object.create,Object.defineProperty),Si=(Object.getOwnPropertyDescriptor,Object.getOwnPropertyNames,Object.getPrototypeOf,Object.prototype.hasOwnProperty,(e,t)=>bi(e,"name",{value:t,configurable:!0})),yi=/[\w]$/,wi=/\r\n|\n|\r/g;function Ri(e,t){let i=e.column,s=e.column+(e.text?.length||0),n=e.line;return{startColumn:i,startLine:n,endColumn:s,endLine:e.type===t&&e.text?n+(e.text.match(wi)?.length||0):n}}function Li(e,t,i,s){let n=t.column-1;for(let r=0;r<e.size;r++){let o=e.get(r),{startColumn:a,startLine:c,endColumn:l,endLine:h}=Ri(o,i);if(h>t.line||c===t.line&&l>n)return s?r:r>0&&c===t.line&&a===n&&yi.test(e.get(r-1).text||"")?r-1:e.get(r).type===i?r+1:r}}function Ti(e,t){let i=e.split(wi),s=e.match(wi),n="";s&&(n=s[0]);let r=0;return i.reduce(((e,i,s)=>(t.line-1===s&&(r=e.length?e.length+t.column:t.column-1),0===s?i:e+n+i)),""),r}function xi(e,t){return e===t.startTokenIndex}function ki(e,t){let i=e.slice(0,t-1),s=e.slice(t-1),n=i.lastIndexOf(";"),r=s.indexOf(";"),o=n>-1?n+1:0,a=r>-1?r+i.length:e.length;return{statement:e.slice(o,a),cursorIndex:t-o}}Si(Ri,"getTokenPosition"),Si(Li,"findCursorTokenIndex"),Si(Ti,"getCursorIndex"),Si(xi,"isStartingToWriteRule"),Si(ki,"getCurrentStatement");var Ai="(\\s|\r\n|\n|\r)+",Ni=new RegExp(`^(${Ai})?explain${Ai}$`),Ii=new RegExp(`^(${Ai})?\\S+${Ai}`);function Oi(e,t){let i=Ti(e,t),s=ki(e,i),n=s.statement.slice(0,s.cursorIndex).toLowerCase();return!(0!==i&&n.match(Ii)&&!n.match(Ni))}function Di(e,t,i){let s=new e(ft.fromString(i)),n=new t(new St(s));return n.removeErrorListeners(),n}function Mi(e,t){return new e(ft.fromString(t))}Si(Oi,"shouldSuggestTemplates"),Si(Di,"createParser"),Si(Mi,"createLexer");var Pi,Fi=class{static{Si(this,"SqlErrorListener")}constructor(e){this.errors=[],this.whitespaceToken=e}syntaxError(e,t,i,s,n){if(t){let e=Ri(t,this.whitespaceToken);this.errors.push({message:n,...e})}else this.errors.push({message:n,startLine:i,startColumn:s,endLine:i,endColumn:s})}reportAmbiguity(){}reportAttemptingFullContext(){}reportContextSensitivity(){}},Ui=((Pi=Ui||{}).Autocomplete="autocomplete",Pi.Tokens="tokens",Pi);function Hi(e,t,i,s,n,r,o,a){let c=Di(t,i,e),{tokenStream:l}=c,h=new Fi(s);c.removeErrorListeners(),c.addErrorListener(h),a(c);let d=Wi(c,l,o,r);return d.length?{statementPositions:d,strategy:"autocomplete"}:{statementPositions:Bi(l,n,r),strategy:"tokens"}}function Bi(e,t,i){let s=0,n=!1,r=e.size-2,o=[];for(let a=0;a<=r;a++){let c=e.get(a),l=c.type===i,h=t.includes(c.type);if(n||!h)if(n||(n=!0,s=c.start),l&&s===c.start)n=!1;else{if(l||a===r){let e=c.text?.length||0,t={startIndex:s,endIndex:c.start+e};o.push(t)}l&&(n=!1)}}return o}function Wi(e,t,i,s){let n=new Ci(e);n.preferredRules=new Set([i]);let r=t.get(t.size-2),o=[];for(;r?.tokenIndex>0;){let e,a=n.collectCandidates(r.tokenIndex).rules;!a.size&&r.type===s&&(a=n.collectCandidates(r.tokenIndex-1).rules);for(let[s,{startTokenIndex:n}]of a)if(s===i){e=t.get(n);break}if(!e)break;e.tokenIndex>r.tokenIndex?r=t.get(r.tokenIndex-1):(o.push({startIndex:e.start,endIndex:r.start+(r.text?.length||0)}),r=t.get(e.tokenIndex-1))}return o.reverse(),o}Si(Hi,"extractStatementPositionsFromQuery"),Si(Bi,"extractStatementsUsingTokens"),Si(Wi,"extractStatementsUsingAutocomplete");function Vi(e,t,i,s){let n=Mi(e,s),r=new Fi(i);n.removeErrorListeners(),n.addErrorListener(r);let o=[],a=!1;do{let e=n.nextToken();if(null===e||-1===e.type)a=!0;else{let i=t[e.type];i&&o.push({ruleName:i,startIndex:e.start,column:e.column,line:e.line,type:e.type,text:e.text})}}while(!a);return{tokens:o,errors:r.errors}}function zi(e,t,i,s,n){let r=Di(e,t,n),o=new Fi(i);return r.removeErrorListeners(),r.addErrorListener(o),s(r),{errors:o.errors}}Si(Vi,"tokenize"),Si(zi,"parseQueryWithoutCursor");var Gi=/^'(.*)'$/;function ji(e,t,i,s,n,r,o,a,c,l){let h=Di(e,t,a),{tokenStream:d}=h,u=new Fi(i);h.removeErrorListeners(),h.addErrorListener(u),r(h);let g=new Ci(h);g.ignoredTokens=s,g.preferredRules=n;let p=Li(d,c,i);if(void 0===p)throw new Error(`Could not find cursor token index for line: ${c.line}, column: ${c.column}`);let m=[],{tokens:f,rules:_}=g.collectCandidates(p,l);return f.forEach(((e,t)=>{let i=h.vocabulary.getLiteralName(t)?.replace(Gi,"$1")||h.vocabulary.getSymbolicName(t);if(!i)throw new Error(`Could not get name for token ${t}`);m.push({value:i})})),o({errors:u.errors,suggestKeywords:m},_,d,p,c,a)}function Ki(e){let t,i=e.split(wi);for(let h=0;h<i.length;h++)if(i[h]?.includes("|")){t=h;break}if(void 0===t)throw new Error(`Cursor not provided for query ${e}`);let s=i[t];if(!s)throw new Error(`Line ${t} not found`);let[n,r,...o]=e.split("|"),[a,c,...l]=s.split("|");if(o.length>0||l.length>0)throw new Error(`Multiple cursors not allowed, but present in query ${e}`);if(void 0===n||void 0===r||void 0===a||void 0===c)throw new Error(`Cursor not provided for query ${e}`);return[n+r,{line:t+1,column:a.length+1}]}Si(ji,"parseQuery"),Si(Ki,"separateQueryAndCursor");var Yi=class extends li{static{Si(this,"TableSymbol")}constructor(e,t,i,s){super(e,s),this.name=e,this.alias=t,this.columns=i}},qi=class extends hi{static{Si(this,"VariableSymbol")}};function $i(e=[]){let t=e.reduce(((e,t)=>{let i=e[t.name]?.aliases??new Set;return t.alias&&i.add(t.alias),e[t.name]={aliases:i,columns:t.columns},e}),{});return Object.keys(t).reduce(((e,i)=>{let s=t[i]?.aliases,n=t[i]?.columns;return s&&s.size>0?s?.forEach((t=>{e.push({name:i,alias:t,columns:n})})):e.push({name:i,columns:n}),e}),[])}function Qi(e){return $i(e.symbolTable.getNestedSymbolsOfTypeSync(Yi))}Si($i,"getUniqueTableSuggestions"),Si(Qi,"getTablesFromSymbolTable");var Xi=class extends li{static{Si(this,"ColumnAliasSymbol")}constructor(e,t){super(e,t),this.name=e}};function Zi(e){return e.symbolTable.getNestedSymbolsOfTypeSync(Xi).map((({name:e})=>({name:e})))}function Ji(e,t){let i=t.symbolWithContextSync(e);return i||(e.parent?Ji(e.parent,t):void 0)}function es(e,t,i){let s=t;for(;s<e.size;){let t=e.get(s);if(t.type===i.CLOSING_BRACKET||t.type===i.SEMICOLON)return{cursorIndex:t.start,tokenIndex:s};if(t.type===i.OPENING_BRACKET)return;s++}let n=e.size-1;return{cursorIndex:e.get(n).start,tokenIndex:n}}function ts(e,t,i){let s=e.get(e.size-1).start,n=t,r=!1;for(;n>=0&&n<e.size;){let s=e.get(n);if(s.type===i.OPENING_BRACKET||s.type===i.CLOSING_BRACKET||s.type===i.SEMICOLON){if(r)break;n=t,r=!0}if(s.type===i.FROM){let r=es(e,t,i);if(!r)break;let o=is(e,n,r.tokenIndex,i),a=o?{start:o,end:r.cursorIndex}:void 0,c=ss(e,i,r.tokenIndex,i.SELECT),l=c?{start:c.start,end:r.cursorIndex}:void 0;return{start:s.start,end:r.cursorIndex,type:"from",joinTableQueryPosition:a,selectTableQueryPosition:l}}r?n++:n--,-1===n&&(n=t,r=!0)}for(n=t;n>=0;){let t=e.get(n);if(t.type===i.SEMICOLON)return;if(t.type===i.ALTER&&!ss(e,i,n,i.ALTER))return{start:t.start,end:s,type:"alter"};if(t.type===i.INSERT||t.type===i.UPSERT)return{start:t.start,end:s,type:"insert"};if(t.type===i.UPDATE)return{start:t.start,end:s,type:"update"};n--}}function is(e,t,i,s){let n=t;for(;n<i;){let t=e.get(n);if(t.type===s.JOIN)return t.stop+1;n++}}function ss(e,t,i,s){let n=i-1;for(;n>-1;){let i=e.get(n);if(i.type===t.SEMICOLON)return;if(i.type===s)return i;n--}}Si(Zi,"getColumnAliasesFromSymbolTable"),Si(Ji,"getScope"),Si(es,"getClosingBracketIndex"),Si(ts,"getTableQueryPosition"),Si(is,"getJoinIndex"),Si(ss,"getPreviousToken"),Si((function(e,t,i,s,n,r,o,a,c){let l=Li(r,o,s.SPACE,!0);if(!l)throw new Error(`Could not find actualCursorTokenIndex at Ln ${o.line}, Col ${o.column}`);let h={},d=ts(r,l,s);if(d){let s=n(Di(e,t,a.slice(d.start,d.end)),d.type);if(i.visit(s),c&&d.joinTableQueryPosition){let s=n(Di(e,t,a.slice(d.joinTableQueryPosition.start,d.joinTableQueryPosition.end)),"from");i.visit(s)}if(d.selectTableQueryPosition){let s=n(Di(e,t,a.slice(d.selectTableQueryPosition.start,d.selectTableQueryPosition.end)),"select");i.visit(s)}let r=Qi(i);r.length&&(h.tableContextSuggestion={tables:r});let o=Zi(i);o.length&&(h.suggestColumnAliases=o.map((({name:e})=>({name:e}))))}return h}),"getContextSuggestions");var ns=class e extends Je{static{Si(this,"YQLLexer")}static{this.EQUALS=1}static{this.EQUALS2=2}static{this.NOT_EQUALS=3}static{this.NOT_EQUALS2=4}static{this.LESS=5}static{this.LESS_OR_EQ=6}static{this.GREATER=7}static{this.GREATER_OR_EQ=8}static{this.SHIFT_LEFT=9}static{this.ROT_LEFT=10}static{this.AMPERSAND=11}static{this.PIPE=12}static{this.DOUBLE_PIPE=13}static{this.STRUCT_OPEN=14}static{this.STRUCT_CLOSE=15}static{this.PLUS=16}static{this.MINUS=17}static{this.TILDA=18}static{this.ASTERISK=19}static{this.SLASH=20}static{this.PERCENT=21}static{this.SEMICOLON=22}static{this.DOT=23}static{this.COMMA=24}static{this.LPAREN=25}static{this.RPAREN=26}static{this.QUESTION=27}static{this.COLON=28}static{this.COMMAT=29}static{this.DOLLAR=30}static{this.LBRACE_CURLY=31}static{this.RBRACE_CURLY=32}static{this.CARET=33}static{this.NAMESPACE=34}static{this.ARROW=35}static{this.RBRACE_SQUARE=36}static{this.LBRACE_SQUARE=37}static{this.ABORT=38}static{this.ACTION=39}static{this.ADD=40}static{this.AFTER=41}static{this.ALL=42}static{this.ALTER=43}static{this.ANALYZE=44}static{this.AND=45}static{this.ANSI=46}static{this.ANY=47}static{this.ARRAY=48}static{this.AS=49}static{this.ASC=50}static{this.ASSUME=51}static{this.ASYMMETRIC=52}static{this.ASYNC=53}static{this.AT=54}static{this.ATTACH=55}static{this.ATTRIBUTES=56}static{this.AUTOINCREMENT=57}static{this.AUTOMAP=58}static{this.BACKUP=59}static{this.BATCH=60}static{this.COLLECTION=61}static{this.BEFORE=62}static{this.BEGIN=63}static{this.BERNOULLI=64}static{this.BETWEEN=65}static{this.BITCAST=66}static{this.BY=67}static{this.CALLABLE=68}static{this.CASCADE=69}static{this.CASE=70}static{this.CAST=71}static{this.CHANGEFEED=72}static{this.CHECK=73}static{this.CLASSIFIER=74}static{this.COLLATE=75}static{this.COLUMN=76}static{this.COLUMNS=77}static{this.COMMIT=78}static{this.COMPACT=79}static{this.CONDITIONAL=80}static{this.CONFLICT=81}static{this.CONNECT=82}static{this.CONSTRAINT=83}static{this.CONSUMER=84}static{this.COVER=85}static{this.CREATE=86}static{this.CROSS=87}static{this.CUBE=88}static{this.CURRENT=89}static{this.CURRENT_DATE=90}static{this.CURRENT_TIME=91}static{this.CURRENT_TIMESTAMP=92}static{this.DATA=93}static{this.DATABASE=94}static{this.DECIMAL=95}static{this.DECLARE=96}static{this.DEFAULT=97}static{this.DEFERRABLE=98}static{this.DEFERRED=99}static{this.DEFINE=100}static{this.DELETE=101}static{this.DESC=102}static{this.DESCRIBE=103}static{this.DETACH=104}static{this.DICT=105}static{this.DIRECTORY=106}static{this.DISABLE=107}static{this.DISCARD=108}static{this.DISTINCT=109}static{this.DO=110}static{this.DROP=111}static{this.EACH=112}static{this.ELSE=113}static{this.EMPTY=114}static{this.EMPTY_ACTION=115}static{this.ENCRYPTED=116}static{this.END=117}static{this.ENUM=118}static{this.ERASE=119}static{this.ERROR=120}static{this.ESCAPE=121}static{this.EVALUATE=122}static{this.EXCEPT=123}static{this.EXCLUDE=124}static{this.EXCLUSION=125}static{this.EXCLUSIVE=126}static{this.EXISTS=127}static{this.EXPLAIN=128}static{this.EXPORT=129}static{this.EXTERNAL=130}static{this.FAIL=131}static{this.FALSE=132}static{this.FAMILY=133}static{this.FILTER=134}static{this.FIRST=135}static{this.FLATTEN=136}static{this.FLOW=137}static{this.FOLLOWING=138}static{this.FOR=139}static{this.FOREIGN=140}static{this.FROM=141}static{this.FULL=142}static{this.FUNCTION=143}static{this.GLOB=144}static{this.GLOBAL=145}static{this.GRANT=146}static{this.GROUP=147}static{this.GROUPING=148}static{this.GROUPS=149}static{this.HASH=150}static{this.HAVING=151}static{this.HOP=152}static{this.IF=153}static{this.IGNORE=154}static{this.ILIKE=155}static{this.IMMEDIATE=156}static{this.IMPORT=157}static{this.IN=158}static{this.INCREMENT=159}static{this.INCREMENTAL=160}static{this.INDEX=161}static{this.INDEXED=162}static{this.INHERITS=163}static{this.INITIAL=164}static{this.INITIALLY=165}static{this.INNER=166}static{this.INSERT=167}static{this.INSTEAD=168}static{this.INTERSECT=169}static{this.INTO=170}static{this.IS=171}static{this.ISNULL=172}static{this.JOIN=173}static{this.JSON_EXISTS=174}static{this.JSON_QUERY=175}static{this.JSON_VALUE=176}static{this.KEY=177}static{this.LAST=178}static{this.LEFT=179}static{this.LEGACY=180}static{this.LIKE=181}static{this.LIMIT=182}static{this.LIST=183}static{this.LOCAL=184}static{this.LOGIN=185}static{this.MANAGE=186}static{this.MATCH=187}static{this.MATCHES=188}static{this.MATCH_RECOGNIZE=189}static{this.MEASURES=190}static{this.MICROSECONDS=191}static{this.MILLISECONDS=192}static{this.MODIFY=193}static{this.NANOSECONDS=194}static{this.NATURAL=195}static{this.NEXT=196}static{this.NO=197}static{this.NOLOGIN=198}static{this.NOT=199}static{this.NOTNULL=200}static{this.NULL=201}static{this.NULLS=202}static{this.OBJECT=203}static{this.OF=204}static{this.OFFSET=205}static{this.OMIT=206}static{this.ON=207}static{this.ONE=208}static{this.ONLY=209}static{this.OPTION=210}static{this.OPTIONAL=211}static{this.OR=212}static{this.ORDER=213}static{this.OTHERS=214}static{this.OUTER=215}static{this.OVER=216}static{this.PARALLEL=217}static{this.PARTITION=218}static{this.PASSING=219}static{this.PASSWORD=220}static{this.PAST=221}static{this.PATTERN=222}static{this.PER=223}static{this.PERMUTE=224}static{this.PLAN=225}static{this.POOL=226}static{this.PRAGMA=227}static{this.PRECEDING=228}static{this.PRESORT=229}static{this.PRIMARY=230}static{this.PRIVILEGES=231}static{this.PROCESS=232}static{this.QUERY=233}static{this.QUEUE=234}static{this.RAISE=235}static{this.RANGE=236}static{this.REDUCE=237}static{this.REFERENCES=238}static{this.REGEXP=239}static{this.REINDEX=240}static{this.RELEASE=241}static{this.REMOVE=242}static{this.RENAME=243}static{this.REPEATABLE=244}static{this.REPLACE=245}static{this.REPLICATION=246}static{this.RESET=247}static{this.RESOURCE=248}static{this.RESPECT=249}static{this.RESTART=250}static{this.RESTORE=251}static{this.RESTRICT=252}static{this.RESULT=253}static{this.RETURN=254}static{this.RETURNING=255}static{this.REVERT=256}static{this.REVOKE=257}static{this.RIGHT=258}static{this.RLIKE=259}static{this.ROLLBACK=260}static{this.ROLLUP=261}static{this.ROW=262}static{this.ROWS=263}static{this.SAMPLE=264}static{this.SAVEPOINT=265}static{this.SCHEMA=266}static{this.SECONDS=267}static{this.SEEK=268}static{this.SELECT=269}static{this.SEMI=270}static{this.SET=271}static{this.SETS=272}static{this.SHOW=273}static{this.TSKIP=274}static{this.SEQUENCE=275}static{this.SOURCE=276}static{this.START=277}static{this.STREAM=278}static{this.STRUCT=279}static{this.SUBQUERY=280}static{this.SUBSET=281}static{this.SYMBOLS=282}static{this.SYMMETRIC=283}static{this.SYNC=284}static{this.SYSTEM=285}static{this.TABLE=286}static{this.TABLES=287}static{this.TABLESAMPLE=288}static{this.TABLESTORE=289}static{this.TAGGED=290}static{this.TEMP=291}static{this.TEMPORARY=292}static{this.THEN=293}static{this.TIES=294}static{this.TO=295}static{this.TOPIC=296}static{this.TRANSACTION=297}static{this.TRANSFER=298}static{this.TRIGGER=299}static{this.TRUE=300}static{this.TUPLE=301}static{this.TYPE=302}static{this.UNBOUNDED=303}static{this.UNCONDITIONAL=304}static{this.UNION=305}static{this.UNIQUE=306}static{this.UNKNOWN=307}static{this.UNMATCHED=308}static{this.UPDATE=309}static{this.UPSERT=310}static{this.USE=311}static{this.USER=312}static{this.USING=313}static{this.VACUUM=314}static{this.VALUES=315}static{this.VARIANT=316}static{this.VIEW=317}static{this.VIRTUAL=318}static{this.WHEN=319}static{this.WHERE=320}static{this.WINDOW=321}static{this.WITH=322}static{this.WITHOUT=323}static{this.WRAPPER=324}static{this.XOR=325}static{this.STRING_VALUE=326}static{this.ID_PLAIN=327}static{this.ID_QUOTED=328}static{this.DIGITS=329}static{this.INTEGER_VALUE=330}static{this.REAL=331}static{this.BLOB=332}static{this.WS=333}static{this.COMMENT=334}static{this.channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"]}static{this.literalNames=[null,"'='","'=='","'!='","'<>'","'<'","'<='","'>'","'>='","'<<'","'|<<'","'&'","'|'","'||'","'<|'","'|>'","'+'","'-'","'~'","'*'","'/'","'%'","';'","'.'","','","'('","')'","'?'","':'","'@'","'$'","'{'","'}'","'^'","'::'","'->'","']'","'['"]}static{this.symbolicNames=[null,"EQUALS","EQUALS2","NOT_EQUALS","NOT_EQUALS2","LESS","LESS_OR_EQ","GREATER","GREATER_OR_EQ","SHIFT_LEFT","ROT_LEFT","AMPERSAND","PIPE","DOUBLE_PIPE","STRUCT_OPEN","STRUCT_CLOSE","PLUS","MINUS","TILDA","ASTERISK","SLASH","PERCENT","SEMICOLON","DOT","COMMA","LPAREN","RPAREN","QUESTION","COLON","COMMAT","DOLLAR","LBRACE_CURLY","RBRACE_CURLY","CARET","NAMESPACE","ARROW","RBRACE_SQUARE","LBRACE_SQUARE","ABORT","ACTION","ADD","AFTER","ALL","ALTER","ANALYZE","AND","ANSI","ANY","ARRAY","AS","ASC","ASSUME","ASYMMETRIC","ASYNC","AT","ATTACH","ATTRIBUTES","AUTOINCREMENT","AUTOMAP","BACKUP","BATCH","COLLECTION","BEFORE","BEGIN","BERNOULLI","BETWEEN","BITCAST","BY","CALLABLE","CASCADE","CASE","CAST","CHANGEFEED","CHECK","CLASSIFIER","COLLATE","COLUMN","COLUMNS","COMMIT","COMPACT","CONDITIONAL","CONFLICT","CONNECT","CONSTRAINT","CONSUMER","COVER","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATA","DATABASE","DECIMAL","DECLARE","DEFAULT","DEFERRABLE","DEFERRED","DEFINE","DELETE","DESC","DESCRIBE","DETACH","DICT","DIRECTORY","DISABLE","DISCARD","DISTINCT","DO","DROP","EACH","ELSE","EMPTY","EMPTY_ACTION","ENCRYPTED","END","ENUM","ERASE","ERROR","ESCAPE","EVALUATE","EXCEPT","EXCLUDE","EXCLUSION","EXCLUSIVE","EXISTS","EXPLAIN","EXPORT","EXTERNAL","FAIL","FALSE","FAMILY","FILTER","FIRST","FLATTEN","FLOW","FOLLOWING","FOR","FOREIGN","FROM","FULL","FUNCTION","GLOB","GLOBAL","GRANT","GROUP","GROUPING","GROUPS","HASH","HAVING","HOP","IF","IGNORE","ILIKE","IMMEDIATE","IMPORT","IN","INCREMENT","INCREMENTAL","INDEX","INDEXED","INHERITS","INITIAL","INITIALLY","INNER","INSERT","INSTEAD","INTERSECT","INTO","IS","ISNULL","JOIN","JSON_EXISTS","JSON_QUERY","JSON_VALUE","KEY","LAST","LEFT","LEGACY","LIKE","LIMIT","LIST","LOCAL","LOGIN","MANAGE","MATCH","MATCHES","MATCH_RECOGNIZE","MEASURES","MICROSECONDS","MILLISECONDS","MODIFY","NANOSECONDS","NATURAL","NEXT","NO","NOLOGIN","NOT","NOTNULL","NULL","NULLS","OBJECT","OF","OFFSET","OMIT","ON","ONE","ONLY","OPTION","OPTIONAL","OR","ORDER","OTHERS","OUTER","OVER","PARALLEL","PARTITION","PASSING","PASSWORD","PAST","PATTERN","PER","PERMUTE","PLAN","POOL","PRAGMA","PRECEDING","PRESORT","PRIMARY","PRIVILEGES","PROCESS","QUERY","QUEUE","RAISE","RANGE","REDUCE","REFERENCES","REGEXP","REINDEX","RELEASE","REMOVE","RENAME","REPEATABLE","REPLACE","REPLICATION","RESET","RESOURCE","RESPECT","RESTART","RESTORE","RESTRICT","RESULT","RETURN","RETURNING","REVERT","REVOKE","RIGHT","RLIKE","ROLLBACK","ROLLUP","ROW","ROWS","SAMPLE","SAVEPOINT","SCHEMA","SECONDS","SEEK","SELECT","SEMI","SET","SETS","SHOW","TSKIP","SEQUENCE","SOURCE","START","STREAM","STRUCT","SUBQUERY","SUBSET","SYMBOLS","SYMMETRIC","SYNC","SYSTEM","TABLE","TABLES","TABLESAMPLE","TABLESTORE","TAGGED","TEMP","TEMPORARY","THEN","TIES","TO","TOPIC","TRANSACTION","TRANSFER","TRIGGER","TRUE","TUPLE","TYPE","UNBOUNDED","UNCONDITIONAL","UNION","UNIQUE","UNKNOWN","UNMATCHED","UPDATE","UPSERT","USE","USER","USING","VACUUM","VALUES","VARIANT","VIEW","VIRTUAL","WHEN","WHERE","WINDOW","WITH","WITHOUT","WRAPPER","XOR","STRING_VALUE","ID_PLAIN","ID_QUOTED","DIGITS","INTEGER_VALUE","REAL","BLOB","WS","COMMENT"]}static{this.modeNames=["DEFAULT_MODE"]}static{this.ruleNames=["EQUALS","EQUALS2","NOT_EQUALS","NOT_EQUALS2","LESS","LESS_OR_EQ","GREATER","GREATER_OR_EQ","SHIFT_LEFT","ROT_LEFT","AMPERSAND","PIPE","DOUBLE_PIPE","STRUCT_OPEN","STRUCT_CLOSE","PLUS","MINUS","TILDA","ASTERISK","SLASH","PERCENT","SEMICOLON","DOT","COMMA","LPAREN","RPAREN","QUESTION","COLON","COMMAT","DOLLAR","LBRACE_CURLY","RBRACE_CURLY","CARET","NAMESPACE","ARROW","RBRACE_SQUARE","LBRACE_SQUARE","BACKSLASH","QUOTE_DOUBLE","QUOTE_SINGLE","BACKTICK","DOUBLE_COMMAT","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","ABORT","ACTION","ADD","AFTER","ALL","ALTER","ANALYZE","AND","ANSI","ANY","ARRAY","AS","ASC","ASSUME","ASYMMETRIC","ASYNC","AT","ATTACH","ATTRIBUTES","AUTOINCREMENT","AUTOMAP","BACKUP","BATCH","COLLECTION","BEFORE","BEGIN","BERNOULLI","BETWEEN","BITCAST","BY","CALLABLE","CASCADE","CASE","CAST","CHANGEFEED","CHECK","CLASSIFIER","COLLATE","COLUMN","COLUMNS","COMMIT","COMPACT","CONDITIONAL","CONFLICT","CONNECT","CONSTRAINT","CONSUMER","COVER","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATA","DATABASE","DECIMAL","DECLARE","DEFAULT","DEFERRABLE","DEFERRED","DEFINE","DELETE","DESC","DESCRIBE","DETACH","DICT","DIRECTORY","DISABLE","DISCARD","DISTINCT","DO","DROP","EACH","ELSE","EMPTY","EMPTY_ACTION","ENCRYPTED","END","ENUM","ERASE","ERROR","ESCAPE","EVALUATE","EXCEPT","EXCLUDE","EXCLUSION","EXCLUSIVE","EXISTS","EXPLAIN","EXPORT","EXTERNAL","FAIL","FALSE","FAMILY","FILTER","FIRST","FLATTEN","FLOW","FOLLOWING","FOR","FOREIGN","FROM","FULL","FUNCTION","GLOB","GLOBAL","GRANT","GROUP","GROUPING","GROUPS","HASH","HAVING","HOP","IF","IGNORE","ILIKE","IMMEDIATE","IMPORT","IN","INCREMENT","INCREMENTAL","INDEX","INDEXED","INHERITS","INITIAL","INITIALLY","INNER","INSERT","INSTEAD","INTERSECT","INTO","IS","ISNULL","JOIN","JSON_EXISTS","JSON_QUERY","JSON_VALUE","KEY","LAST","LEFT","LEGACY","LIKE","LIMIT","LIST","LOCAL","LOGIN","MANAGE","MATCH","MATCHES","MATCH_RECOGNIZE","MEASURES","MICROSECONDS","MILLISECONDS","MODIFY","NANOSECONDS","NATURAL","NEXT","NO","NOLOGIN","NOT","NOTNULL","NULL","NULLS","OBJECT","OF","OFFSET","OMIT","ON","ONE","ONLY","OPTION","OPTIONAL","OR","ORDER","OTHERS","OUTER","OVER","PARALLEL","PARTITION","PASSING","PASSWORD","PAST","PATTERN","PER","PERMUTE","PLAN","POOL","PRAGMA","PRECEDING","PRESORT","PRIMARY","PRIVILEGES","PROCESS","QUERY","QUEUE","RAISE","RANGE","REDUCE","REFERENCES","REGEXP","REINDEX","RELEASE","REMOVE","RENAME","REPEATABLE","REPLACE","REPLICATION","RESET","RESOURCE","RESPECT","RESTART","RESTORE","RESTRICT","RESULT","RETURN","RETURNING","REVERT","REVOKE","RIGHT","RLIKE","ROLLBACK","ROLLUP","ROW","ROWS","SAMPLE","SAVEPOINT","SCHEMA","SECONDS","SEEK","SELECT","SEMI","SET","SETS","SHOW","TSKIP","SEQUENCE","SOURCE","START","STREAM","STRUCT","SUBQUERY","SUBSET","SYMBOLS","SYMMETRIC","SYNC","SYSTEM","TABLE","TABLES","TABLESAMPLE","TABLESTORE","TAGGED","TEMP","TEMPORARY","THEN","TIES","TO","TOPIC","TRANSACTION","TRANSFER","TRIGGER","TRUE","TUPLE","TYPE","UNBOUNDED","UNCONDITIONAL","UNION","UNIQUE","UNKNOWN","UNMATCHED","UPDATE","UPSERT","USE","USER","USING","VACUUM","VALUES","VARIANT","VIEW","VIRTUAL","WHEN","WHERE","WINDOW","WITH","WITHOUT","WRAPPER","XOR","STRING_CORE_SINGLE","STRING_CORE_DOUBLE","STRING_SINGLE","STRING_DOUBLE","STRING_MULTILINE","STRING_VALUE","ID_PLAIN","ID_QUOTED_CORE","ID_QUOTED","DIGIT","HEXDIGIT","HEXDIGITS","OCTDIGITS","BINDIGITS","DECDIGITS","DIGITS","INTEGER_VALUE","FLOAT_EXP","REAL","BLOB","MULTILINE_COMMENT","LINE_COMMENT","WS","COMMENT"]}constructor(t){super(t),this.interpreter=new at(this,e._ATN,e.decisionsToDFA,new pt)}get grammarFileName(){return"YQL.g4"}get literalNames(){return e.literalNames}get symbolicNames(){return e.symbolicNames}get ruleNames(){return e.ruleNames}get serializedATN(){return e._serializedATN}get channelNames(){return e.channelNames}get modeNames(){return e.modeNames}static{this._serializedATN=[4,0,334,3207,6,-1,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27,7,27,2,28,7,28,2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,32,2,33,7,33,2,34,7,34,2,35,7,35,2,36,7,36,2,37,7,37,2,38,7,38,2,39,7,39,2,40,7,40,2,41,7,41,2,42,7,42,2,43,7,43,2,44,7,44,2,45,7,45,2,46,7,46,2,47,7,47,2,48,7,48,2,49,7,49,2,50,7,50,2,51,7,51,2,52,7,52,2,53,7,53,2,54,7,54,2,55,7,55,2,56,7,56,2,57,7,57,2,58,7,58,2,59,7,59,2,60,7,60,2,61,7,61,2,62,7,62,2,63,7,63,2,64,7,64,2,65,7,65,2,66,7,66,2,67,7,67,2,68,7,68,2,69,7,69,2,70,7,70,2,71,7,71,2,72,7,72,2,73,7,73,2,74,7,74,2,75,7,75,2,76,7,76,2,77,7,77,2,78,7,78,2,79,7,79,2,80,7,80,2,81,7,81,2,82,7,82,2,83,7,83,2,84,7,84,2,85,7,85,2,86,7,86,2,87,7,87,2,88,7,88,2,89,7,89,2,90,7,90,2,91,7,91,2,92,7,92,2,93,7,93,2,94,7,94,2,95,7,95,2,96,7,96,2,97,7,97,2,98,7,98,2,99,7,99,2,100,7,100,2,101,7,101,2,102,7,102,2,103,7,103,2,104,7,104,2,105,7,105,2,106,7,106,2,107,7,107,2,108,7,108,2,109,7,109,2,110,7,110,2,111,7,111,2,112,7,112,2,113,7,113,2,114,7,114,2,115,7,115,2,116,7,116,2,117,7,117,2,118,7,118,2,119,7,119,2,120,7,120,2,121,7,121,2,122,7,122,2,123,7,123,2,124,7,124,2,125,7,125,2,126,7,126,2,127,7,127,2,128,7,128,2,129,7,129,2,130,7,130,2,131,7,131,2,132,7,132,2,133,7,133,2,134,7,134,2,135,7,135,2,136,7,136,2,137,7,137,2,138,7,138,2,139,7,139,2,140,7,140,2,141,7,141,2,142,7,142,2,143,7,143,2,144,7,144,2,145,7,145,2,146,7,146,2,147,7,147,2,148,7,148,2,149,7,149,2,150,7,150,2,151,7,151,2,152,7,152,2,153,7,153,2,154,7,154,2,155,7,155,2,156,7,156,2,157,7,157,2,158,7,158,2,159,7,159,2,160,7,160,2,161,7,161,2,162,7,162,2,163,7,163,2,164,7,164,2,165,7,165,2,166,7,166,2,167,7,167,2,168,7,168,2,169,7,169,2,170,7,170,2,171,7,171,2,172,7,172,2,173,7,173,2,174,7,174,2,175,7,175,2,176,7,176,2,177,7,177,2,178,7,178,2,179,7,179,2,180,7,180,2,181,7,181,2,182,7,182,2,183,7,183,2,184,7,184,2,185,7,185,2,186,7,186,2,187,7,187,2,188,7,188,2,189,7,189,2,190,7,190,2,191,7,191,2,192,7,192,2,193,7,193,2,194,7,194,2,195,7,195,2,196,7,196,2,197,7,197,2,198,7,198,2,199,7,199,2,200,7,200,2,201,7,201,2,202,7,202,2,203,7,203,2,204,7,204,2,205,7,205,2,206,7,206,2,207,7,207,2,208,7,208,2,209,7,209,2,210,7,210,2,211,7,211,2,212,7,212,2,213,7,213,2,214,7,214,2,215,7,215,2,216,7,216,2,217,7,217,2,218,7,218,2,219,7,219,2,220,7,220,2,221,7,221,2,222,7,222,2,223,7,223,2,224,7,224,2,225,7,225,2,226,7,226,2,227,7,227,2,228,7,228,2,229,7,229,2,230,7,230,2,231,7,231,2,232,7,232,2,233,7,233,2,234,7,234,2,235,7,235,2,236,7,236,2,237,7,237,2,238,7,238,2,239,7,239,2,240,7,240,2,241,7,241,2,242,7,242,2,243,7,243,2,244,7,244,2,245,7,245,2,246,7,246,2,247,7,247,2,248,7,248,2,249,7,249,2,250,7,250,2,251,7,251,2,252,7,252,2,253,7,253,2,254,7,254,2,255,7,255,2,256,7,256,2,257,7,257,2,258,7,258,2,259,7,259,2,260,7,260,2,261,7,261,2,262,7,262,2,263,7,263,2,264,7,264,2,265,7,265,2,266,7,266,2,267,7,267,2,268,7,268,2,269,7,269,2,270,7,270,2,271,7,271,2,272,7,272,2,273,7,273,2,274,7,274,2,275,7,275,2,276,7,276,2,277,7,277,2,278,7,278,2,279,7,279,2,280,7,280,2,281,7,281,2,282,7,282,2,283,7,283,2,284,7,284,2,285,7,285,2,286,7,286,2,287,7,287,2,288,7,288,2,289,7,289,2,290,7,290,2,291,7,291,2,292,7,292,2,293,7,293,2,294,7,294,2,295,7,295,2,296,7,296,2,297,7,297,2,298,7,298,2,299,7,299,2,300,7,300,2,301,7,301,2,302,7,302,2,303,7,303,2,304,7,304,2,305,7,305,2,306,7,306,2,307,7,307,2,308,7,308,2,309,7,309,2,310,7,310,2,311,7,311,2,312,7,312,2,313,7,313,2,314,7,314,2,315,7,315,2,316,7,316,2,317,7,317,2,318,7,318,2,319,7,319,2,320,7,320,2,321,7,321,2,322,7,322,2,323,7,323,2,324,7,324,2,325,7,325,2,326,7,326,2,327,7,327,2,328,7,328,2,329,7,329,2,330,7,330,2,331,7,331,2,332,7,332,2,333,7,333,2,334,7,334,2,335,7,335,2,336,7,336,2,337,7,337,2,338,7,338,2,339,7,339,2,340,7,340,2,341,7,341,2,342,7,342,2,343,7,343,2,344,7,344,2,345,7,345,2,346,7,346,2,347,7,347,2,348,7,348,2,349,7,349,2,350,7,350,2,351,7,351,2,352,7,352,2,353,7,353,2,354,7,354,2,355,7,355,2,356,7,356,2,357,7,357,2,358,7,358,2,359,7,359,2,360,7,360,2,361,7,361,2,362,7,362,2,363,7,363,2,364,7,364,2,365,7,365,2,366,7,366,2,367,7,367,2,368,7,368,2,369,7,369,2,370,7,370,2,371,7,371,2,372,7,372,2,373,7,373,2,374,7,374,2,375,7,375,2,376,7,376,2,377,7,377,2,378,7,378,2,379,7,379,1,0,1,0,1,1,1,1,1,1,1,2,1,2,1,2,1,3,1,3,1,3,1,4,1,4,1,5,1,5,1,5,1,6,1,6,1,7,1,7,1,7,1,8,1,8,1,8,1,9,1,9,1,9,1,9,1,10,1,10,1,11,1,11,1,12,1,12,1,12,1,13,1,13,1,13,1,14,1,14,1,14,1,15,1,15,1,16,1,16,1,17,1,17,1,18,1,18,1,19,1,19,1,20,1,20,1,21,1,21,1,22,1,22,1,23,1,23,1,24,1,24,1,25,1,25,1,26,1,26,1,27,1,27,1,28,1,28,1,29,1,29,1,30,1,30,1,31,1,31,1,32,1,32,1,33,1,33,1,33,1,34,1,34,1,34,1,35,1,35,1,36,1,36,1,37,1,37,1,38,1,38,1,39,1,39,1,40,1,40,1,41,1,41,1,41,1,42,1,42,1,43,1,43,1,44,1,44,1,45,1,45,1,46,1,46,1,47,1,47,1,48,1,48,1,49,1,49,1,50,1,50,1,51,1,51,1,52,1,52,1,53,1,53,1,54,1,54,1,55,1,55,1,56,1,56,1,57,1,57,1,58,1,58,1,59,1,59,1,60,1,60,1,61,1,61,1,62,1,62,1,63,1,63,1,64,1,64,1,65,1,65,1,66,1,66,1,67,1,67,1,68,1,68,1,68,1,68,1,68,1,68,1,69,1,69,1,69,1,69,1,69,1,69,1,69,1,70,1,70,1,70,1,70,1,71,1,71,1,71,1,71,1,71,1,71,1,72,1,72,1,72,1,72,1,73,1,73,1,73,1,73,1,73,1,73,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,75,1,75,1,75,1,75,1,76,1,76,1,76,1,76,1,76,1,77,1,77,1,77,1,77,1,78,1,78,1,78,1,78,1,78,1,78,1,79,1,79,1,79,1,80,1,80,1,80,1,80,1,81,1,81,1,81,1,81,1,81,1,81,1,81,1,82,1,82,1,82,1,82,1,82,1,82,1,82,1,82,1,82,1,82,1,82,1,83,1,83,1,83,1,83,1,83,1,83,1,84,1,84,1,84,1,85,1,85,1,85,1,85,1,85,1,85,1,85,1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,89,1,89,1,89,1,89,1,89,1,89,1,89,1,90,1,90,1,90,1,90,1,90,1,90,1,91,1,91,1,91,1,91,1,91,1,91,1,91,1,91,1,91,1,91,1,91,1,92,1,92,1,92,1,92,1,92,1,92,1,92,1,93,1,93,1,93,1,93,1,93,1,93,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,96,1,96,1,96,1,96,1,96,1,96,1,96,1,96,1,97,1,97,1,97,1,98,1,98,1,98,1,98,1,98,1,98,1,98,1,98,1,98,1,99,1,99,1,99,1,99,1,99,1,99,1,99,1,99,1,100,1,100,1,100,1,100,1,100,1,101,1,101,1,101,1,101,1,101,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,103,1,103,1,103,1,103,1,103,1,103,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,105,1,105,1,105,1,105,1,105,1,105,1,105,1,105,1,106,1,106,1,106,1,106,1,106,1,106,1,106,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,109,1,109,1,109,1,109,1,109,1,109,1,109,1,109,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,115,1,115,1,115,1,115,1,115,1,115,1,116,1,116,1,116,1,116,1,116,1,116,1,116,1,117,1,117,1,117,1,117,1,117,1,117,1,118,1,118,1,118,1,118,1,118,1,119,1,119,1,119,1,119,1,119,1,119,1,119,1,119,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,123,1,123,1,123,1,123,1,123,1,124,1,124,1,124,1,124,1,124,1,124,1,124,1,124,1,124,1,125,1,125,1,125,1,125,1,125,1,125,1,125,1,125,1,126,1,126,1,126,1,126,1,126,1,126,1,126,1,126,1,127,1,127,1,127,1,127,1,127,1,127,1,127,1,127,1,128,1,128,1,128,1,128,1,128,1,128,1,128,1,128,1,128,1,128,1,128,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,130,1,130,1,130,1,130,1,130,1,130,1,130,1,131,1,131,1,131,1,131,1,131,1,131,1,131,1,132,1,132,1,132,1,132,1,132,1,133,1,133,1,133,1,133,1,133,1,133,1,133,1,133,1,133,1,134,1,134,1,134,1,134,1,134,1,134,1,134,1,135,1,135,1,135,1,135,1,135,1,136,1,136,1,136,1,136,1,136,1,136,1,136,1,136,1,136,1,136,1,137,1,137,1,137,1,137,1,137,1,137,1,137,1,137,1,138,1,138,1,138,1,138,1,138,1,138,1,138,1,138,1,139,1,139,1,139,1,139,1,139,1,139,1,139,1,139,1,139,1,140,1,140,1,140,1,141,1,141,1,141,1,141,1,141,1,142,1,142,1,142,1,142,1,142,1,143,1,143,1,143,1,143,1,143,1,144,1,144,1,144,1,144,1,144,1,144,1,145,1,145,1,145,1,145,1,145,1,145,1,145,1,145,1,145,1,145,1,145,1,145,1,145,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,147,1,147,1,147,1,147,1,148,1,148,1,148,1,148,1,148,1,149,1,149,1,149,1,149,1,149,1,149,1,150,1,150,1,150,1,150,1,150,1,150,1,151,1,151,1,151,1,151,1,151,1,151,1,151,1,152,1,152,1,152,1,152,1,152,1,152,1,152,1,152,1,152,1,153,1,153,1,153,1,153,1,153,1,153,1,153,1,154,1,154,1,154,1,154,1,154,1,154,1,154,1,154,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,156,1,156,1,156,1,156,1,156,1,156,1,156,1,156,1,156,1,156,1,157,1,157,1,157,1,157,1,157,1,157,1,157,1,158,1,158,1,158,1,158,1,158,1,158,1,158,1,158,1,159,1,159,1,159,1,159,1,159,1,159,1,159,1,160,1,160,1,160,1,160,1,160,1,160,1,160,1,160,1,160,1,161,1,161,1,161,1,161,1,161,1,162,1,162,1,162,1,162,1,162,1,162,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,164,1,164,1,164,1,164,1,164,1,164,1,164,1,165,1,165,1,165,1,165,1,165,1,165,1,166,1,166,1,166,1,166,1,166,1,166,1,166,1,166,1,167,1,167,1,167,1,167,1,167,1,168,1,168,1,168,1,168,1,168,1,168,1,168,1,168,1,168,1,168,1,169,1,169,1,169,1,169,1,170,1,170,1,170,1,170,1,170,1,170,1,170,1,170,1,171,1,171,1,171,1,171,1,171,1,172,1,172,1,172,1,172,1,172,1,173,1,173,1,173,1,173,1,173,1,173,1,173,1,173,1,173,1,174,1,174,1,174,1,174,1,174,1,175,1,175,1,175,1,175,1,175,1,175,1,175,1,176,1,176,1,176,1,176,1,176,1,176,1,177,1,177,1,177,1,177,1,177,1,177,1,178,1,178,1,178,1,178,1,178,1,178,1,178,1,178,1,178,1,179,1,179,1,179,1,179,1,179,1,179,1,179,1,180,1,180,1,180,1,180,1,180,1,181,1,181,1,181,1,181,1,181,1,181,1,181,1,182,1,182,1,182,1,182,1,183,1,183,1,183,1,184,1,184,1,184,1,184,1,184,1,184,1,184,1,185,1,185,1,185,1,185,1,185,1,185,1,186,1,186,1,186,1,186,1,186,1,186,1,186,1,186,1,186,1,186,1,187,1,187,1,187,1,187,1,187,1,187,1,187,1,188,1,188,1,188,1,189,1,189,1,189,1,189,1,189,1,189,1,189,1,189,1,189,1,189,1,190,1,190,1,190,1,190,1,190,1,190,1,190,1,190,1,190,1,190,1,190,1,190,1,191,1,191,1,191,1,191,1,191,1,191,1,192,1,192,1,192,1,192,1,192,1,192,1,192,1,192,1,193,1,193,1,193,1,193,1,193,1,193,1,193,1,193,1,193,1,194,1,194,1,194,1,194,1,194,1,194,1,194,1,194,1,195,1,195,1,195,1,195,1,195,1,195,1,195,1,195,1,195,1,195,1,196,1,196,1,196,1,196,1,196,1,196,1,197,1,197,1,197,1,197,1,197,1,197,1,197,1,198,1,198,1,198,1,198,1,198,1,198,1,198,1,198,1,199,1,199,1,199,1,199,1,199,1,199,1,199,1,199,1,199,1,199,1,200,1,200,1,200,1,200,1,200,1,201,1,201,1,201,1,202,1,202,1,202,1,202,1,202,1,202,1,202,1,203,1,203,1,203,1,203,1,203,1,204,1,204,1,204,1,204,1,204,1,204,1,204,1,204,1,204,1,204,1,204,1,204,1,205,1,205,1,205,1,205,1,205,1,205,1,205,1,205,1,205,1,205,1,205,1,206,1,206,1,206,1,206,1,206,1,206,1,206,1,206,1,206,1,206,1,206,1,207,1,207,1,207,1,207,1,208,1,208,1,208,1,208,1,208,1,209,1,209,1,209,1,209,1,209,1,210,1,210,1,210,1,210,1,210,1,210,1,210,1,211,1,211,1,211,1,211,1,211,1,212,1,212,1,212,1,212,1,212,1,212,1,213,1,213,1,213,1,213,1,213,1,214,1,214,1,214,1,214,1,214,1,214,1,215,1,215,1,215,1,215,1,215,1,215,1,216,1,216,1,216,1,216,1,216,1,216,1,216,1,217,1,217,1,217,1,217,1,217,1,217,1,218,1,218,1,218,1,218,1,218,1,218,1,218,1,218,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,221,1,221,1,221,1,221,1,221,1,221,1,221,1,221,1,221,1,221,1,221,1,221,1,221,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,223,1,223,1,223,1,223,1,223,1,223,1,223,1,224,1,224,1,224,1,224,1,224,1,224,1,224,1,224,1,224,1,224,1,224,1,224,1,225,1,225,1,225,1,225,1,225,1,225,1,225,1,225,1,226,1,226,1,226,1,226,1,226,1,227,1,227,1,227,1,228,1,228,1,228,1,228,1,228,1,228,1,228,1,228,1,229,1,229,1,229,1,229,1,230,1,230,1,230,1,230,1,230,1,230,1,230,1,230,1,231,1,231,1,231,1,231,1,231,1,232,1,232,1,232,1,232,1,232,1,232,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,234,1,234,1,234,1,235,1,235,1,235,1,235,1,235,1,235,1,235,1,236,1,236,1,236,1,236,1,236,1,237,1,237,1,237,1,238,1,238,1,238,1,238,1,239,1,239,1,239,1,239,1,239,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,241,1,241,1,241,1,241,1,241,1,241,1,241,1,241,1,241,1,242,1,242,1,242,1,243,1,243,1,243,1,243,1,243,1,243,1,244,1,244,1,244,1,244,1,244,1,244,1,244,1,245,1,245,1,245,1,245,1,245,1,245,1,246,1,246,1,246,1,246,1,246,1,247,1,247,1,247,1,247,1,247,1,247,1,247,1,247,1,247,1,248,1,248,1,248,1,248,1,248,1,248,1,248,1,248,1,248,1,248,1,249,1,249,1,249,1,249,1,249,1,249,1,249,1,249,1,250,1,250,1,250,1,250,1,250,1,250,1,250,1,250,1,250,1,251,1,251,1,251,1,251,1,251,1,252,1,252,1,252,1,252,1,252,1,252,1,252,1,252,1,253,1,253,1,253,1,253,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,255,1,255,1,255,1,255,1,255,1,256,1,256,1,256,1,256,1,256,1,257,1,257,1,257,1,257,1,257,1,257,1,257,1,258,1,258,1,258,1,258,1,258,1,258,1,258,1,258,1,258,1,258,1,259,1,259,1,259,1,259,1,259,1,259,1,259,1,259,1,260,1,260,1,260,1,260,1,260,1,260,1,260,1,260,1,261,1,261,1,261,1,261,1,261,1,261,1,261,1,261,1,261,1,261,1,261,1,262,1,262,1,262,1,262,1,262,1,262,1,262,1,262,1,263,1,263,1,263,1,263,1,263,1,263,1,264,1,264,1,264,1,264,1,264,1,264,1,265,1,265,1,265,1,265,1,265,1,265,1,266,1,266,1,266,1,266,1,266,1,266,1,267,1,267,1,267,1,267,1,267,1,267,1,267,1,268,1,268,1,268,1,268,1,268,1,268,1,268,1,268,1,268,1,268,1,268,1,269,1,269,1,269,1,269,1,269,1,269,1,269,1,270,1,270,1,270,1,270,1,270,1,270,1,270,1,270,1,271,1,271,1,271,1,271,1,271,1,271,1,271,1,271,1,272,1,272,1,272,1,272,1,272,1,272,1,272,1,273,1,273,1,273,1,273,1,273,1,273,1,273,1,274,1,274,1,274,1,274,1,274,1,274,1,274,1,274,1,274,1,274,1,274,1,275,1,275,1,275,1,275,1,275,1,275,1,275,1,275,1,276,1,276,1,276,1,276,1,276,1,276,1,276,1,276,1,276,1,276,1,276,1,276,1,277,1,277,1,277,1,277,1,277,1,277,1,278,1,278,1,278,1,278,1,278,1,278,1,278,1,278,1,278,1,279,1,279,1,279,1,279,1,279,1,279,1,279,1,279,1,280,1,280,1,280,1,280,1,280,1,280,1,280,1,280,1,281,1,281,1,281,1,281,1,281,1,281,1,281,1,281,1,282,1,282,1,282,1,282,1,282,1,282,1,282,1,282,1,282,1,283,1,283,1,283,1,283,1,283,1,283,1,283,1,284,1,284,1,284,1,284,1,284,1,284,1,284,1,285,1,285,1,285,1,285,1,285,1,285,1,285,1,285,1,285,1,285,1,286,1,286,1,286,1,286,1,286,1,286,1,286,1,287,1,287,1,287,1,287,1,287,1,287,1,287,1,288,1,288,1,288,1,288,1,288,1,288,1,289,1,289,1,289,1,289,1,289,1,289,1,290,1,290,1,290,1,290,1,290,1,290,1,290,1,290,1,290,1,291,1,291,1,291,1,291,1,291,1,291,1,291,1,292,1,292,1,292,1,292,1,293,1,293,1,293,1,293,1,293,1,294,1,294,1,294,1,294,1,294,1,294,1,294,1,295,1,295,1,295,1,295,1,295,1,295,1,295,1,295,1,295,1,295,1,296,1,296,1,296,1,296,1,296,1,296,1,296,1,297,1,297,1,297,1,297,1,297,1,297,1,297,1,297,1,298,1,298,1,298,1,298,1,298,1,299,1,299,1,299,1,299,1,299,1,299,1,299,1,300,1,300,1,300,1,300,1,300,1,301,1,301,1,301,1,301,1,302,1,302,1,302,1,302,1,302,1,303,1,303,1,303,1,303,1,303,1,304,1,304,1,304,1,304,1,304,1,305,1,305,1,305,1,305,1,305,1,305,1,305,1,305,1,305,1,306,1,306,1,306,1,306,1,306,1,306,1,306,1,307,1,307,1,307,1,307,1,307,1,307,1,308,1,308,1,308,1,308,1,308,1,308,1,308,1,309,1,309,1,309,1,309,1,309,1,309,1,309,1,310,1,310,1,310,1,310,1,310,1,310,1,310,1,310,1,310,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,312,1,312,1,312,1,312,1,312,1,312,1,312,1,312,1,313,1,313,1,313,1,313,1,313,1,313,1,313,1,313,1,313,1,313,1,314,1,314,1,314,1,314,1,314,1,315,1,315,1,315,1,315,1,315,1,315,1,315,1,316,1,316,1,316,1,316,1,316,1,316,1,317,1,317,1,317,1,317,1,317,1,317,1,317,1,318,1,318,1,318,1,318,1,318,1,318,1,318,1,318,1,318,1,318,1,318,1,318,1,319,1,319,1,319,1,319,1,319,1,319,1,319,1,319,1,319,1,319,1,319,1,320,1,320,1,320,1,320,1,320,1,320,1,320,1,321,1,321,1,321,1,321,1,321,1,322,1,322,1,322,1,322,1,322,1,322,1,322,1,322,1,322,1,322,1,323,1,323,1,323,1,323,1,323,1,324,1,324,1,324,1,324,1,324,1,325,1,325,1,325,1,326,1,326,1,326,1,326,1,326,1,326,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,328,1,328,1,328,1,328,1,328,1,328,1,328,1,328,1,328,1,329,1,329,1,329,1,329,1,329,1,329,1,329,1,329,1,330,1,330,1,330,1,330,1,330,1,331,1,331,1,331,1,331,1,331,1,331,1,332,1,332,1,332,1,332,1,332,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,334,1,334,1,334,1,334,1,334,1,334,1,334,1,334,1,334,1,334,1,334,1,334,1,334,1,334,1,335,1,335,1,335,1,335,1,335,1,335,1,336,1,336,1,336,1,336,1,336,1,336,1,336,1,337,1,337,1,337,1,337,1,337,1,337,1,337,1,337,1,338,1,338,1,338,1,338,1,338,1,338,1,338,1,338,1,338,1,338,1,339,1,339,1,339,1,339,1,339,1,339,1,339,1,340,1,340,1,340,1,340,1,340,1,340,1,340,1,341,1,341,1,341,1,341,1,342,1,342,1,342,1,342,1,342,1,343,1,343,1,343,1,343,1,343,1,343,1,344,1,344,1,344,1,344,1,344,1,344,1,344,1,345,1,345,1,345,1,345,1,345,1,345,1,345,1,346,1,346,1,346,1,346,1,346,1,346,1,346,1,346,1,347,1,347,1,347,1,347,1,347,1,348,1,348,1,348,1,348,1,348,1,348,1,348,1,348,1,349,1,349,1,349,1,349,1,349,1,350,1,350,1,350,1,350,1,350,1,350,1,351,1,351,1,351,1,351,1,351,1,351,1,351,1,352,1,352,1,352,1,352,1,352,1,353,1,353,1,353,1,353,1,353,1,353,1,353,1,353,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,355,1,355,1,355,1,355,1,356,1,356,1,356,1,356,3,356,2996,8,356,1,357,1,357,1,357,1,357,3,357,3002,8,357,1,358,1,358,5,358,3006,8,358,10,358,12,358,3009,9,358,1,358,1,358,1,359,1,359,5,359,3015,8,359,10,359,12,359,3018,9,359,1,359,1,359,1,360,1,360,5,360,3024,8,360,10,360,12,360,3027,9,360,1,360,1,360,4,360,3031,8,360,11,360,12,360,3032,1,360,3,360,3036,8,360,1,361,1,361,1,361,3,361,3041,8,361,1,361,1,361,1,361,1,361,1,361,1,361,1,361,1,361,3,361,3051,8,361,3,361,3053,8,361,1,362,1,362,1,362,5,362,3058,8,362,10,362,12,362,3061,9,362,1,363,1,363,1,363,1,363,1,363,3,363,3068,8,363,1,364,1,364,5,364,3072,8,364,10,364,12,364,3075,9,364,1,364,1,364,1,365,1,365,1,366,1,366,1,367,1,367,1,367,4,367,3086,8,367,11,367,12,367,3087,1,368,1,368,1,368,4,368,3093,8,368,11,368,12,368,3094,1,369,1,369,1,369,4,369,3100,8,369,11,369,12,369,3101,1,370,4,370,3105,8,370,11,370,12,370,3106,1,371,1,371,1,371,1,371,3,371,3113,8,371,1,372,1,372,1,372,3,372,3118,8,372,1,372,1,372,1,372,1,372,1,372,1,372,3,372,3126,8,372,1,373,1,373,1,373,3,373,3131,8,373,1,373,1,373,1,374,1,374,1,374,5,374,3138,8,374,10,374,12,374,3141,9,374,1,374,3,374,3144,8,374,1,374,1,374,1,374,3,374,3149,8,374,1,374,1,374,1,374,1,374,1,374,1,374,3,374,3157,8,374,3,374,3159,8,374,1,375,1,375,1,375,4,375,3164,8,375,11,375,12,375,3165,1,375,1,375,1,376,1,376,1,376,1,376,5,376,3174,8,376,10,376,12,376,3177,9,376,1,376,1,376,1,376,1,377,1,377,1,377,1,377,5,377,3186,8,377,10,377,12,377,3189,9,377,1,377,1,377,3,377,3193,8,377,1,377,3,377,3196,8,377,1,378,1,378,1,378,1,378,1,379,1,379,3,379,3204,8,379,1,379,1,379,2,3025,3175,0,380,1,1,3,2,5,3,7,4,9,5,11,6,13,7,15,8,17,9,19,10,21,11,23,12,25,13,27,14,29,15,31,16,33,17,35,18,37,19,39,20,41,21,43,22,45,23,47,24,49,25,51,26,53,27,55,28,57,29,59,30,61,31,63,32,65,33,67,34,69,35,71,36,73,37,75,0,77,0,79,0,81,0,83,0,85,0,87,0,89,0,91,0,93,0,95,0,97,0,99,0,101,0,103,0,105,0,107,0,109,0,111,0,113,0,115,0,117,0,119,0,121,0,123,0,125,0,127,0,129,0,131,0,133,0,135,0,137,38,139,39,141,40,143,41,145,42,147,43,149,44,151,45,153,46,155,47,157,48,159,49,161,50,163,51,165,52,167,53,169,54,171,55,173,56,175,57,177,58,179,59,181,60,183,61,185,62,187,63,189,64,191,65,193,66,195,67,197,68,199,69,201,70,203,71,205,72,207,73,209,74,211,75,213,76,215,77,217,78,219,79,221,80,223,81,225,82,227,83,229,84,231,85,233,86,235,87,237,88,239,89,241,90,243,91,245,92,247,93,249,94,251,95,253,96,255,97,257,98,259,99,261,100,263,101,265,102,267,103,269,104,271,105,273,106,275,107,277,108,279,109,281,110,283,111,285,112,287,113,289,114,291,115,293,116,295,117,297,118,299,119,301,120,303,121,305,122,307,123,309,124,311,125,313,126,315,127,317,128,319,129,321,130,323,131,325,132,327,133,329,134,331,135,333,136,335,137,337,138,339,139,341,140,343,141,345,142,347,143,349,144,351,145,353,146,355,147,357,148,359,149,361,150,363,151,365,152,367,153,369,154,371,155,373,156,375,157,377,158,379,159,381,160,383,161,385,162,387,163,389,164,391,165,393,166,395,167,397,168,399,169,401,170,403,171,405,172,407,173,409,174,411,175,413,176,415,177,417,178,419,179,421,180,423,181,425,182,427,183,429,184,431,185,433,186,435,187,437,188,439,189,441,190,443,191,445,192,447,193,449,194,451,195,453,196,455,197,457,198,459,199,461,200,463,201,465,202,467,203,469,204,471,205,473,206,475,207,477,208,479,209,481,210,483,211,485,212,487,213,489,214,491,215,493,216,495,217,497,218,499,219,501,220,503,221,505,222,507,223,509,224,511,225,513,226,515,227,517,228,519,229,521,230,523,231,525,232,527,233,529,234,531,235,533,236,535,237,537,238,539,239,541,240,543,241,545,242,547,243,549,244,551,245,553,246,555,247,557,248,559,249,561,250,563,251,565,252,567,253,569,254,571,255,573,256,575,257,577,258,579,259,581,260,583,261,585,262,587,263,589,264,591,265,593,266,595,267,597,268,599,269,601,270,603,271,605,272,607,273,609,274,611,275,613,276,615,277,617,278,619,279,621,280,623,281,625,282,627,283,629,284,631,285,633,286,635,287,637,288,639,289,641,290,643,291,645,292,647,293,649,294,651,295,653,296,655,297,657,298,659,299,661,300,663,301,665,302,667,303,669,304,671,305,673,306,675,307,677,308,679,309,681,310,683,311,685,312,687,313,689,314,691,315,693,316,695,317,697,318,699,319,701,320,703,321,705,322,707,323,709,324,711,325,713,0,715,0,717,0,719,0,721,0,723,326,725,327,727,0,729,328,731,0,733,0,735,0,737,0,739,0,741,0,743,329,745,330,747,0,749,331,751,332,753,0,755,0,757,333,759,334,1,0,35,2,0,65,65,97,97,2,0,66,66,98,98,2,0,67,67,99,99,2,0,68,68,100,100,2,0,69,69,101,101,2,0,70,70,102,102,2,0,71,71,103,103,2,0,72,72,104,104,2,0,73,73,105,105,2,0,74,74,106,106,2,0,75,75,107,107,2,0,76,76,108,108,2,0,77,77,109,109,2,0,78,78,110,110,2,0,79,79,111,111,2,0,80,80,112,112,2,0,81,81,113,113,2,0,82,82,114,114,2,0,83,83,115,115,2,0,84,84,116,116,2,0,85,85,117,117,2,0,86,86,118,118,2,0,87,87,119,119,2,0,88,88,120,120,2,0,89,89,121,121,2,0,90,90,122,122,2,0,39,39,92,92,2,0,34,34,92,92,3,0,65,90,95,95,97,122,2,0,92,92,96,96,3,0,48,57,65,70,97,102,2,0,52,52,56,56,2,0,10,10,13,13,1,1,10,10,3,0,9,10,12,13,32,32,3212,0,1,1,0,0,0,0,3,1,0,0,0,0,5,1,0,0,0,0,7,1,0,0,0,0,9,1,0,0,0,0,11,1,0,0,0,0,13,1,0,0,0,0,15,1,0,0,0,0,17,1,0,0,0,0,19,1,0,0,0,0,21,1,0,0,0,0,23,1,0,0,0,0,25,1,0,0,0,0,27,1,0,0,0,0,29,1,0,0,0,0,31,1,0,0,0,0,33,1,0,0,0,0,35,1,0,0,0,0,37,1,0,0,0,0,39,1,0,0,0,0,41,1,0,0,0,0,43,1,0,0,0,0,45,1,0,0,0,0,47,1,0,0,0,0,49,1,0,0,0,0,51,1,0,0,0,0,53,1,0,0,0,0,55,1,0,0,0,0,57,1,0,0,0,0,59,1,0,0,0,0,61,1,0,0,0,0,63,1,0,0,0,0,65,1,0,0,0,0,67,1,0,0,0,0,69,1,0,0,0,0,71,1,0,0,0,0,73,1,0,0,0,0,137,1,0,0,0,0,139,1,0,0,0,0,141,1,0,0,0,0,143,1,0,0,0,0,145,1,0,0,0,0,147,1,0,0,0,0,149,1,0,0,0,0,151,1,0,0,0,0,153,1,0,0,0,0,155,1,0,0,0,0,157,1,0,0,0,0,159,1,0,0,0,0,161,1,0,0,0,0,163,1,0,0,0,0,165,1,0,0,0,0,167,1,0,0,0,0,169,1,0,0,0,0,171,1,0,0,0,0,173,1,0,0,0,0,175,1,0,0,0,0,177,1,0,0,0,0,179,1,0,0,0,0,181,1,0,0,0,0,183,1,0,0,0,0,185,1,0,0,0,0,187,1,0,0,0,0,189,1,0,0,0,0,191,1,0,0,0,0,193,1,0,0,0,0,195,1,0,0,0,0,197,1,0,0,0,0,199,1,0,0,0,0,201,1,0,0,0,0,203,1,0,0,0,0,205,1,0,0,0,0,207,1,0,0,0,0,209,1,0,0,0,0,211,1,0,0,0,0,213,1,0,0,0,0,215,1,0,0,0,0,217,1,0,0,0,0,219,1,0,0,0,0,221,1,0,0,0,0,223,1,0,0,0,0,225,1,0,0,0,0,227,1,0,0,0,0,229,1,0,0,0,0,231,1,0,0,0,0,233,1,0,0,0,0,235,1,0,0,0,0,237,1,0,0,0,0,239,1,0,0,0,0,241,1,0,0,0,0,243,1,0,0,0,0,245,1,0,0,0,0,247,1,0,0,0,0,249,1,0,0,0,0,251,1,0,0,0,0,253,1,0,0,0,0,255,1,0,0,0,0,257,1,0,0,0,0,259,1,0,0,0,0,261,1,0,0,0,0,263,1,0,0,0,0,265,1,0,0,0,0,267,1,0,0,0,0,269,1,0,0,0,0,271,1,0,0,0,0,273,1,0,0,0,0,275,1,0,0,0,0,277,1,0,0,0,0,279,1,0,0,0,0,281,1,0,0,0,0,283,1,0,0,0,0,285,1,0,0,0,0,287,1,0,0,0,0,289,1,0,0,0,0,291,1,0,0,0,0,293,1,0,0,0,0,295,1,0,0,0,0,297,1,0,0,0,0,299,1,0,0,0,0,301,1,0,0,0,0,303,1,0,0,0,0,305,1,0,0,0,0,307,1,0,0,0,0,309,1,0,0,0,0,311,1,0,0,0,0,313,1,0,0,0,0,315,1,0,0,0,0,317,1,0,0,0,0,319,1,0,0,0,0,321,1,0,0,0,0,323,1,0,0,0,0,325,1,0,0,0,0,327,1,0,0,0,0,329,1,0,0,0,0,331,1,0,0,0,0,333,1,0,0,0,0,335,1,0,0,0,0,337,1,0,0,0,0,339,1,0,0,0,0,341,1,0,0,0,0,343,1,0,0,0,0,345,1,0,0,0,0,347,1,0,0,0,0,349,1,0,0,0,0,351,1,0,0,0,0,353,1,0,0,0,0,355,1,0,0,0,0,357,1,0,0,0,0,359,1,0,0,0,0,361,1,0,0,0,0,363,1,0,0,0,0,365,1,0,0,0,0,367,1,0,0,0,0,369,1,0,0,0,0,371,1,0,0,0,0,373,1,0,0,0,0,375,1,0,0,0,0,377,1,0,0,0,0,379,1,0,0,0,0,381,1,0,0,0,0,383,1,0,0,0,0,385,1,0,0,0,0,387,1,0,0,0,0,389,1,0,0,0,0,391,1,0,0,0,0,393,1,0,0,0,0,395,1,0,0,0,0,397,1,0,0,0,0,399,1,0,0,0,0,401,1,0,0,0,0,403,1,0,0,0,0,405,1,0,0,0,0,407,1,0,0,0,0,409,1,0,0,0,0,411,1,0,0,0,0,413,1,0,0,0,0,415,1,0,0,0,0,417,1,0,0,0,0,419,1,0,0,0,0,421,1,0,0,0,0,423,1,0,0,0,0,425,1,0,0,0,0,427,1,0,0,0,0,429,1,0,0,0,0,431,1,0,0,0,0,433,1,0,0,0,0,435,1,0,0,0,0,437,1,0,0,0,0,439,1,0,0,0,0,441,1,0,0,0,0,443,1,0,0,0,0,445,1,0,0,0,0,447,1,0,0,0,0,449,1,0,0,0,0,451,1,0,0,0,0,453,1,0,0,0,0,455,1,0,0,0,0,457,1,0,0,0,0,459,1,0,0,0,0,461,1,0,0,0,0,463,1,0,0,0,0,465,1,0,0,0,0,467,1,0,0,0,0,469,1,0,0,0,0,471,1,0,0,0,0,473,1,0,0,0,0,475,1,0,0,0,0,477,1,0,0,0,0,479,1,0,0,0,0,481,1,0,0,0,0,483,1,0,0,0,0,485,1,0,0,0,0,487,1,0,0,0,0,489,1,0,0,0,0,491,1,0,0,0,0,493,1,0,0,0,0,495,1,0,0,0,0,497,1,0,0,0,0,499,1,0,0,0,0,501,1,0,0,0,0,503,1,0,0,0,0,505,1,0,0,0,0,507,1,0,0,0,0,509,1,0,0,0,0,511,1,0,0,0,0,513,1,0,0,0,0,515,1,0,0,0,0,517,1,0,0,0,0,519,1,0,0,0,0,521,1,0,0,0,0,523,1,0,0,0,0,525,1,0,0,0,0,527,1,0,0,0,0,529,1,0,0,0,0,531,1,0,0,0,0,533,1,0,0,0,0,535,1,0,0,0,0,537,1,0,0,0,0,539,1,0,0,0,0,541,1,0,0,0,0,543,1,0,0,0,0,545,1,0,0,0,0,547,1,0,0,0,0,549,1,0,0,0,0,551,1,0,0,0,0,553,1,0,0,0,0,555,1,0,0,0,0,557,1,0,0,0,0,559,1,0,0,0,0,561,1,0,0,0,0,563,1,0,0,0,0,565,1,0,0,0,0,567,1,0,0,0,0,569,1,0,0,0,0,571,1,0,0,0,0,573,1,0,0,0,0,575,1,0,0,0,0,577,1,0,0,0,0,579,1,0,0,0,0,581,1,0,0,0,0,583,1,0,0,0,0,585,1,0,0,0,0,587,1,0,0,0,0,589,1,0,0,0,0,591,1,0,0,0,0,593,1,0,0,0,0,595,1,0,0,0,0,597,1,0,0,0,0,599,1,0,0,0,0,601,1,0,0,0,0,603,1,0,0,0,0,605,1,0,0,0,0,607,1,0,0,0,0,609,1,0,0,0,0,611,1,0,0,0,0,613,1,0,0,0,0,615,1,0,0,0,0,617,1,0,0,0,0,619,1,0,0,0,0,621,1,0,0,0,0,623,1,0,0,0,0,625,1,0,0,0,0,627,1,0,0,0,0,629,1,0,0,0,0,631,1,0,0,0,0,633,1,0,0,0,0,635,1,0,0,0,0,637,1,0,0,0,0,639,1,0,0,0,0,641,1,0,0,0,0,643,1,0,0,0,0,645,1,0,0,0,0,647,1,0,0,0,0,649,1,0,0,0,0,651,1,0,0,0,0,653,1,0,0,0,0,655,1,0,0,0,0,657,1,0,0,0,0,659,1,0,0,0,0,661,1,0,0,0,0,663,1,0,0,0,0,665,1,0,0,0,0,667,1,0,0,0,0,669,1,0,0,0,0,671,1,0,0,0,0,673,1,0,0,0,0,675,1,0,0,0,0,677,1,0,0,0,0,679,1,0,0,0,0,681,1,0,0,0,0,683,1,0,0,0,0,685,1,0,0,0,0,687,1,0,0,0,0,689,1,0,0,0,0,691,1,0,0,0,0,693,1,0,0,0,0,695,1,0,0,0,0,697,1,0,0,0,0,699,1,0,0,0,0,701,1,0,0,0,0,703,1,0,0,0,0,705,1,0,0,0,0,707,1,0,0,0,0,709,1,0,0,0,0,711,1,0,0,0,0,723,1,0,0,0,0,725,1,0,0,0,0,729,1,0,0,0,0,743,1,0,0,0,0,745,1,0,0,0,0,749,1,0,0,0,0,751,1,0,0,0,0,757,1,0,0,0,0,759,1,0,0,0,1,761,1,0,0,0,3,763,1,0,0,0,5,766,1,0,0,0,7,769,1,0,0,0,9,772,1,0,0,0,11,774,1,0,0,0,13,777,1,0,0,0,15,779,1,0,0,0,17,782,1,0,0,0,19,785,1,0,0,0,21,789,1,0,0,0,23,791,1,0,0,0,25,793,1,0,0,0,27,796,1,0,0,0,29,799,1,0,0,0,31,802,1,0,0,0,33,804,1,0,0,0,35,806,1,0,0,0,37,808,1,0,0,0,39,810,1,0,0,0,41,812,1,0,0,0,43,814,1,0,0,0,45,816,1,0,0,0,47,818,1,0,0,0,49,820,1,0,0,0,51,822,1,0,0,0,53,824,1,0,0,0,55,826,1,0,0,0,57,828,1,0,0,0,59,830,1,0,0,0,61,832,1,0,0,0,63,834,1,0,0,0,65,836,1,0,0,0,67,838,1,0,0,0,69,841,1,0,0,0,71,844,1,0,0,0,73,846,1,0,0,0,75,848,1,0,0,0,77,850,1,0,0,0,79,852,1,0,0,0,81,854,1,0,0,0,83,856,1,0,0,0,85,859,1,0,0,0,87,861,1,0,0,0,89,863,1,0,0,0,91,865,1,0,0,0,93,867,1,0,0,0,95,869,1,0,0,0,97,871,1,0,0,0,99,873,1,0,0,0,101,875,1,0,0,0,103,877,1,0,0,0,105,879,1,0,0,0,107,881,1,0,0,0,109,883,1,0,0,0,111,885,1,0,0,0,113,887,1,0,0,0,115,889,1,0,0,0,117,891,1,0,0,0,119,893,1,0,0,0,121,895,1,0,0,0,123,897,1,0,0,0,125,899,1,0,0,0,127,901,1,0,0,0,129,903,1,0,0,0,131,905,1,0,0,0,133,907,1,0,0,0,135,909,1,0,0,0,137,911,1,0,0,0,139,917,1,0,0,0,141,924,1,0,0,0,143,928,1,0,0,0,145,934,1,0,0,0,147,938,1,0,0,0,149,944,1,0,0,0,151,952,1,0,0,0,153,956,1,0,0,0,155,961,1,0,0,0,157,965,1,0,0,0,159,971,1,0,0,0,161,974,1,0,0,0,163,978,1,0,0,0,165,985,1,0,0,0,167,996,1,0,0,0,169,1002,1,0,0,0,171,1005,1,0,0,0,173,1012,1,0,0,0,175,1023,1,0,0,0,177,1037,1,0,0,0,179,1045,1,0,0,0,181,1052,1,0,0,0,183,1058,1,0,0,0,185,1069,1,0,0,0,187,1076,1,0,0,0,189,1082,1,0,0,0,191,1092,1,0,0,0,193,1100,1,0,0,0,195,1108,1,0,0,0,197,1111,1,0,0,0,199,1120,1,0,0,0,201,1128,1,0,0,0,203,1133,1,0,0,0,205,1138,1,0,0,0,207,1149,1,0,0,0,209,1155,1,0,0,0,211,1166,1,0,0,0,213,1174,1,0,0,0,215,1181,1,0,0,0,217,1189,1,0,0,0,219,1196,1,0,0,0,221,1204,1,0,0,0,223,1216,1,0,0,0,225,1225,1,0,0,0,227,1233,1,0,0,0,229,1244,1,0,0,0,231,1253,1,0,0,0,233,1259,1,0,0,0,235,1266,1,0,0,0,237,1272,1,0,0,0,239,1277,1,0,0,0,241,1285,1,0,0,0,243,1298,1,0,0,0,245,1311,1,0,0,0,247,1329,1,0,0,0,249,1334,1,0,0,0,251,1343,1,0,0,0,253,1351,1,0,0,0,255,1359,1,0,0,0,257,1367,1,0,0,0,259,1378,1,0,0,0,261,1387,1,0,0,0,263,1394,1,0,0,0,265,1401,1,0,0,0,267,1406,1,0,0,0,269,1415,1,0,0,0,271,1422,1,0,0,0,273,1427,1,0,0,0,275,1437,1,0,0,0,277,1445,1,0,0,0,279,1453,1,0,0,0,281,1462,1,0,0,0,283,1465,1,0,0,0,285,1470,1,0,0,0,287,1475,1,0,0,0,289,1480,1,0,0,0,291,1486,1,0,0,0,293,1499,1,0,0,0,295,1509,1,0,0,0,297,1513,1,0,0,0,299,1518,1,0,0,0,301,1524,1,0,0,0,303,1530,1,0,0,0,305,1537,1,0,0,0,307,1546,1,0,0,0,309,1553,1,0,0,0,311,1561,1,0,0,0,313,1571,1,0,0,0,315,1581,1,0,0,0,317,1588,1,0,0,0,319,1596,1,0,0,0,321,1603,1,0,0,0,323,1612,1,0,0,0,325,1617,1,0,0,0,327,1623,1,0,0,0,329,1630,1,0,0,0,331,1637,1,0,0,0,333,1643,1,0,0,0,335,1651,1,0,0,0,337,1656,1,0,0,0,339,1666,1,0,0,0,341,1670,1,0,0,0,343,1678,1,0,0,0,345,1683,1,0,0,0,347,1688,1,0,0,0,349,1697,1,0,0,0,351,1702,1,0,0,0,353,1709,1,0,0,0,355,1715,1,0,0,0,357,1721,1,0,0,0,359,1730,1,0,0,0,361,1737,1,0,0,0,363,1742,1,0,0,0,365,1749,1,0,0,0,367,1753,1,0,0,0,369,1756,1,0,0,0,371,1763,1,0,0,0,373,1769,1,0,0,0,375,1779,1,0,0,0,377,1786,1,0,0,0,379,1789,1,0,0,0,381,1799,1,0,0,0,383,1811,1,0,0,0,385,1817,1,0,0,0,387,1825,1,0,0,0,389,1834,1,0,0,0,391,1842,1,0,0,0,393,1852,1,0,0,0,395,1858,1,0,0,0,397,1865,1,0,0,0,399,1873,1,0,0,0,401,1883,1,0,0,0,403,1888,1,0,0,0,405,1891,1,0,0,0,407,1898,1,0,0,0,409,1903,1,0,0,0,411,1915,1,0,0,0,413,1926,1,0,0,0,415,1937,1,0,0,0,417,1941,1,0,0,0,419,1946,1,0,0,0,421,1951,1,0,0,0,423,1958,1,0,0,0,425,1963,1,0,0,0,427,1969,1,0,0,0,429,1974,1,0,0,0,431,1980,1,0,0,0,433,1986,1,0,0,0,435,1993,1,0,0,0,437,1999,1,0,0,0,439,2007,1,0,0,0,441,2023,1,0,0,0,443,2032,1,0,0,0,445,2045,1,0,0,0,447,2058,1,0,0,0,449,2065,1,0,0,0,451,2077,1,0,0,0,453,2085,1,0,0,0,455,2090,1,0,0,0,457,2093,1,0,0,0,459,2101,1,0,0,0,461,2105,1,0,0,0,463,2113,1,0,0,0,465,2118,1,0,0,0,467,2124,1,0,0,0,469,2131,1,0,0,0,471,2134,1,0,0,0,473,2141,1,0,0,0,475,2146,1,0,0,0,477,2149,1,0,0,0,479,2153,1,0,0,0,481,2158,1,0,0,0,483,2165,1,0,0,0,485,2174,1,0,0,0,487,2177,1,0,0,0,489,2183,1,0,0,0,491,2190,1,0,0,0,493,2196,1,0,0,0,495,2201,1,0,0,0,497,2210,1,0,0,0,499,2220,1,0,0,0,501,2228,1,0,0,0,503,2237,1,0,0,0,505,2242,1,0,0,0,507,2250,1,0,0,0,509,2254,1,0,0,0,511,2262,1,0,0,0,513,2267,1,0,0,0,515,2272,1,0,0,0,517,2279,1,0,0,0,519,2289,1,0,0,0,521,2297,1,0,0,0,523,2305,1,0,0,0,525,2316,1,0,0,0,527,2324,1,0,0,0,529,2330,1,0,0,0,531,2336,1,0,0,0,533,2342,1,0,0,0,535,2348,1,0,0,0,537,2355,1,0,0,0,539,2366,1,0,0,0,541,2373,1,0,0,0,543,2381,1,0,0,0,545,2389,1,0,0,0,547,2396,1,0,0,0,549,2403,1,0,0,0,551,2414,1,0,0,0,553,2422,1,0,0,0,555,2434,1,0,0,0,557,2440,1,0,0,0,559,2449,1,0,0,0,561,2457,1,0,0,0,563,2465,1,0,0,0,565,2473,1,0,0,0,567,2482,1,0,0,0,569,2489,1,0,0,0,571,2496,1,0,0,0,573,2506,1,0,0,0,575,2513,1,0,0,0,577,2520,1,0,0,0,579,2526,1,0,0,0,581,2532,1,0,0,0,583,2541,1,0,0,0,585,2548,1,0,0,0,587,2552,1,0,0,0,589,2557,1,0,0,0,591,2564,1,0,0,0,593,2574,1,0,0,0,595,2581,1,0,0,0,597,2589,1,0,0,0,599,2594,1,0,0,0,601,2601,1,0,0,0,603,2606,1,0,0,0,605,2610,1,0,0,0,607,2615,1,0,0,0,609,2620,1,0,0,0,611,2625,1,0,0,0,613,2634,1,0,0,0,615,2641,1,0,0,0,617,2647,1,0,0,0,619,2654,1,0,0,0,621,2661,1,0,0,0,623,2670,1,0,0,0,625,2677,1,0,0,0,627,2685,1,0,0,0,629,2695,1,0,0,0,631,2700,1,0,0,0,633,2707,1,0,0,0,635,2713,1,0,0,0,637,2720,1,0,0,0,639,2732,1,0,0,0,641,2743,1,0,0,0,643,2750,1,0,0,0,645,2755,1,0,0,0,647,2765,1,0,0,0,649,2770,1,0,0,0,651,2775,1,0,0,0,653,2778,1,0,0,0,655,2784,1,0,0,0,657,2796,1,0,0,0,659,2805,1,0,0,0,661,2813,1,0,0,0,663,2818,1,0,0,0,665,2824,1,0,0,0,667,2829,1,0,0,0,669,2839,1,0,0,0,671,2853,1,0,0,0,673,2859,1,0,0,0,675,2866,1,0,0,0,677,2874,1,0,0,0,679,2884,1,0,0,0,681,2891,1,0,0,0,683,2898,1,0,0,0,685,2902,1,0,0,0,687,2907,1,0,0,0,689,2913,1,0,0,0,691,2920,1,0,0,0,693,2927,1,0,0,0,695,2935,1,0,0,0,697,2940,1,0,0,0,699,2948,1,0,0,0,701,2953,1,0,0,0,703,2959,1,0,0,0,705,2966,1,0,0,0,707,2971,1,0,0,0,709,2979,1,0,0,0,711,2987,1,0,0,0,713,2995,1,0,0,0,715,3001,1,0,0,0,717,3003,1,0,0,0,719,3012,1,0,0,0,721,3030,1,0,0,0,723,3040,1,0,0,0,725,3054,1,0,0,0,727,3067,1,0,0,0,729,3069,1,0,0,0,731,3078,1,0,0,0,733,3080,1,0,0,0,735,3082,1,0,0,0,737,3089,1,0,0,0,739,3096,1,0,0,0,741,3104,1,0,0,0,743,3112,1,0,0,0,745,3114,1,0,0,0,747,3127,1,0,0,0,749,3148,1,0,0,0,751,3160,1,0,0,0,753,3169,1,0,0,0,755,3181,1,0,0,0,757,3197,1,0,0,0,759,3203,1,0,0,0,761,762,5,61,0,0,762,2,1,0,0,0,763,764,5,61,0,0,764,765,5,61,0,0,765,4,1,0,0,0,766,767,5,33,0,0,767,768,5,61,0,0,768,6,1,0,0,0,769,770,5,60,0,0,770,771,5,62,0,0,771,8,1,0,0,0,772,773,5,60,0,0,773,10,1,0,0,0,774,775,5,60,0,0,775,776,5,61,0,0,776,12,1,0,0,0,777,778,5,62,0,0,778,14,1,0,0,0,779,780,5,62,0,0,780,781,5,61,0,0,781,16,1,0,0,0,782,783,5,60,0,0,783,784,5,60,0,0,784,18,1,0,0,0,785,786,5,124,0,0,786,787,5,60,0,0,787,788,5,60,0,0,788,20,1,0,0,0,789,790,5,38,0,0,790,22,1,0,0,0,791,792,5,124,0,0,792,24,1,0,0,0,793,794,5,124,0,0,794,795,5,124,0,0,795,26,1,0,0,0,796,797,5,60,0,0,797,798,5,124,0,0,798,28,1,0,0,0,799,800,5,124,0,0,800,801,5,62,0,0,801,30,1,0,0,0,802,803,5,43,0,0,803,32,1,0,0,0,804,805,5,45,0,0,805,34,1,0,0,0,806,807,5,126,0,0,807,36,1,0,0,0,808,809,5,42,0,0,809,38,1,0,0,0,810,811,5,47,0,0,811,40,1,0,0,0,812,813,5,37,0,0,813,42,1,0,0,0,814,815,5,59,0,0,815,44,1,0,0,0,816,817,5,46,0,0,817,46,1,0,0,0,818,819,5,44,0,0,819,48,1,0,0,0,820,821,5,40,0,0,821,50,1,0,0,0,822,823,5,41,0,0,823,52,1,0,0,0,824,825,5,63,0,0,825,54,1,0,0,0,826,827,5,58,0,0,827,56,1,0,0,0,828,829,5,64,0,0,829,58,1,0,0,0,830,831,5,36,0,0,831,60,1,0,0,0,832,833,5,123,0,0,833,62,1,0,0,0,834,835,5,125,0,0,835,64,1,0,0,0,836,837,5,94,0,0,837,66,1,0,0,0,838,839,5,58,0,0,839,840,5,58,0,0,840,68,1,0,0,0,841,842,5,45,0,0,842,843,5,62,0,0,843,70,1,0,0,0,844,845,5,93,0,0,845,72,1,0,0,0,846,847,5,91,0,0,847,74,1,0,0,0,848,849,5,92,0,0,849,76,1,0,0,0,850,851,5,34,0,0,851,78,1,0,0,0,852,853,5,39,0,0,853,80,1,0,0,0,854,855,5,96,0,0,855,82,1,0,0,0,856,857,5,64,0,0,857,858,5,64,0,0,858,84,1,0,0,0,859,860,7,0,0,0,860,86,1,0,0,0,861,862,7,1,0,0,862,88,1,0,0,0,863,864,7,2,0,0,864,90,1,0,0,0,865,866,7,3,0,0,866,92,1,0,0,0,867,868,7,4,0,0,868,94,1,0,0,0,869,870,7,5,0,0,870,96,1,0,0,0,871,872,7,6,0,0,872,98,1,0,0,0,873,874,7,7,0,0,874,100,1,0,0,0,875,876,7,8,0,0,876,102,1,0,0,0,877,878,7,9,0,0,878,104,1,0,0,0,879,880,7,10,0,0,880,106,1,0,0,0,881,882,7,11,0,0,882,108,1,0,0,0,883,884,7,12,0,0,884,110,1,0,0,0,885,886,7,13,0,0,886,112,1,0,0,0,887,888,7,14,0,0,888,114,1,0,0,0,889,890,7,15,0,0,890,116,1,0,0,0,891,892,7,16,0,0,892,118,1,0,0,0,893,894,7,17,0,0,894,120,1,0,0,0,895,896,7,18,0,0,896,122,1,0,0,0,897,898,7,19,0,0,898,124,1,0,0,0,899,900,7,20,0,0,900,126,1,0,0,0,901,902,7,21,0,0,902,128,1,0,0,0,903,904,7,22,0,0,904,130,1,0,0,0,905,906,7,23,0,0,906,132,1,0,0,0,907,908,7,24,0,0,908,134,1,0,0,0,909,910,7,25,0,0,910,136,1,0,0,0,911,912,3,85,42,0,912,913,3,87,43,0,913,914,3,113,56,0,914,915,3,119,59,0,915,916,3,123,61,0,916,138,1,0,0,0,917,918,3,85,42,0,918,919,3,89,44,0,919,920,3,123,61,0,920,921,3,101,50,0,921,922,3,113,56,0,922,923,3,111,55,0,923,140,1,0,0,0,924,925,3,85,42,0,925,926,3,91,45,0,926,927,3,91,45,0,927,142,1,0,0,0,928,929,3,85,42,0,929,930,3,95,47,0,930,931,3,123,61,0,931,932,3,93,46,0,932,933,3,119,59,0,933,144,1,0,0,0,934,935,3,85,42,0,935,936,3,107,53,0,936,937,3,107,53,0,937,146,1,0,0,0,938,939,3,85,42,0,939,940,3,107,53,0,940,941,3,123,61,0,941,942,3,93,46,0,942,943,3,119,59,0,943,148,1,0,0,0,944,945,3,85,42,0,945,946,3,111,55,0,946,947,3,85,42,0,947,948,3,107,53,0,948,949,3,133,66,0,949,950,3,135,67,0,950,951,3,93,46,0,951,150,1,0,0,0,952,953,3,85,42,0,953,954,3,111,55,0,954,955,3,91,45,0,955,152,1,0,0,0,956,957,3,85,42,0,957,958,3,111,55,0,958,959,3,121,60,0,959,960,3,101,50,0,960,154,1,0,0,0,961,962,3,85,42,0,962,963,3,111,55,0,963,964,3,133,66,0,964,156,1,0,0,0,965,966,3,85,42,0,966,967,3,119,59,0,967,968,3,119,59,0,968,969,3,85,42,0,969,970,3,133,66,0,970,158,1,0,0,0,971,972,3,85,42,0,972,973,3,121,60,0,973,160,1,0,0,0,974,975,3,85,42,0,975,976,3,121,60,0,976,977,3,89,44,0,977,162,1,0,0,0,978,979,3,85,42,0,979,980,3,121,60,0,980,981,3,121,60,0,981,982,3,125,62,0,982,983,3,109,54,0,983,984,3,93,46,0,984,164,1,0,0,0,985,986,3,85,42,0,986,987,3,121,60,0,987,988,3,133,66,0,988,989,3,109,54,0,989,990,3,109,54,0,990,991,3,93,46,0,991,992,3,123,61,0,992,993,3,119,59,0,993,994,3,101,50,0,994,995,3,89,44,0,995,166,1,0,0,0,996,997,3,85,42,0,997,998,3,121,60,0,998,999,3,133,66,0,999,1e3,3,111,55,0,1e3,1001,3,89,44,0,1001,168,1,0,0,0,1002,1003,3,85,42,0,1003,1004,3,123,61,0,1004,170,1,0,0,0,1005,1006,3,85,42,0,1006,1007,3,123,61,0,1007,1008,3,123,61,0,1008,1009,3,85,42,0,1009,1010,3,89,44,0,1010,1011,3,99,49,0,1011,172,1,0,0,0,1012,1013,3,85,42,0,1013,1014,3,123,61,0,1014,1015,3,123,61,0,1015,1016,3,119,59,0,1016,1017,3,101,50,0,1017,1018,3,87,43,0,1018,1019,3,125,62,0,1019,1020,3,123,61,0,1020,1021,3,93,46,0,1021,1022,3,121,60,0,1022,174,1,0,0,0,1023,1024,3,85,42,0,1024,1025,3,125,62,0,1025,1026,3,123,61,0,1026,1027,3,113,56,0,1027,1028,3,101,50,0,1028,1029,3,111,55,0,1029,1030,3,89,44,0,1030,1031,3,119,59,0,1031,1032,3,93,46,0,1032,1033,3,109,54,0,1033,1034,3,93,46,0,1034,1035,3,111,55,0,1035,1036,3,123,61,0,1036,176,1,0,0,0,1037,1038,3,85,42,0,1038,1039,3,125,62,0,1039,1040,3,123,61,0,1040,1041,3,113,56,0,1041,1042,3,109,54,0,1042,1043,3,85,42,0,1043,1044,3,115,57,0,1044,178,1,0,0,0,1045,1046,3,87,43,0,1046,1047,3,85,42,0,1047,1048,3,89,44,0,1048,1049,3,105,52,0,1049,1050,3,125,62,0,1050,1051,3,115,57,0,1051,180,1,0,0,0,1052,1053,3,87,43,0,1053,1054,3,85,42,0,1054,1055,3,123,61,0,1055,1056,3,89,44,0,1056,1057,3,99,49,0,1057,182,1,0,0,0,1058,1059,3,89,44,0,1059,1060,3,113,56,0,1060,1061,3,107,53,0,1061,1062,3,107,53,0,1062,1063,3,93,46,0,1063,1064,3,89,44,0,1064,1065,3,123,61,0,1065,1066,3,101,50,0,1066,1067,3,113,56,0,1067,1068,3,111,55,0,1068,184,1,0,0,0,1069,1070,3,87,43,0,1070,1071,3,93,46,0,1071,1072,3,95,47,0,1072,1073,3,113,56,0,1073,1074,3,119,59,0,1074,1075,3,93,46,0,1075,186,1,0,0,0,1076,1077,3,87,43,0,1077,1078,3,93,46,0,1078,1079,3,97,48,0,1079,1080,3,101,50,0,1080,1081,3,111,55,0,1081,188,1,0,0,0,1082,1083,3,87,43,0,1083,1084,3,93,46,0,1084,1085,3,119,59,0,1085,1086,3,111,55,0,1086,1087,3,113,56,0,1087,1088,3,125,62,0,1088,1089,3,107,53,0,1089,1090,3,107,53,0,1090,1091,3,101,50,0,1091,190,1,0,0,0,1092,1093,3,87,43,0,1093,1094,3,93,46,0,1094,1095,3,123,61,0,1095,1096,3,129,64,0,1096,1097,3,93,46,0,1097,1098,3,93,46,0,1098,1099,3,111,55,0,1099,192,1,0,0,0,1100,1101,3,87,43,0,1101,1102,3,101,50,0,1102,1103,3,123,61,0,1103,1104,3,89,44,0,1104,1105,3,85,42,0,1105,1106,3,121,60,0,1106,1107,3,123,61,0,1107,194,1,0,0,0,1108,1109,3,87,43,0,1109,1110,3,133,66,0,1110,196,1,0,0,0,1111,1112,3,89,44,0,1112,1113,3,85,42,0,1113,1114,3,107,53,0,1114,1115,3,107,53,0,1115,1116,3,85,42,0,1116,1117,3,87,43,0,1117,1118,3,107,53,0,1118,1119,3,93,46,0,1119,198,1,0,0,0,1120,1121,3,89,44,0,1121,1122,3,85,42,0,1122,1123,3,121,60,0,1123,1124,3,89,44,0,1124,1125,3,85,42,0,1125,1126,3,91,45,0,1126,1127,3,93,46,0,1127,200,1,0,0,0,1128,1129,3,89,44,0,1129,1130,3,85,42,0,1130,1131,3,121,60,0,1131,1132,3,93,46,0,1132,202,1,0,0,0,1133,1134,3,89,44,0,1134,1135,3,85,42,0,1135,1136,3,121,60,0,1136,1137,3,123,61,0,1137,204,1,0,0,0,1138,1139,3,89,44,0,1139,1140,3,99,49,0,1140,1141,3,85,42,0,1141,1142,3,111,55,0,1142,1143,3,97,48,0,1143,1144,3,93,46,0,1144,1145,3,95,47,0,1145,1146,3,93,46,0,1146,1147,3,93,46,0,1147,1148,3,91,45,0,1148,206,1,0,0,0,1149,1150,3,89,44,0,1150,1151,3,99,49,0,1151,1152,3,93,46,0,1152,1153,3,89,44,0,1153,1154,3,105,52,0,1154,208,1,0,0,0,1155,1156,3,89,44,0,1156,1157,3,107,53,0,1157,1158,3,85,42,0,1158,1159,3,121,60,0,1159,1160,3,121,60,0,1160,1161,3,101,50,0,1161,1162,3,95,47,0,1162,1163,3,101,50,0,1163,1164,3,93,46,0,1164,1165,3,119,59,0,1165,210,1,0,0,0,1166,1167,3,89,44,0,1167,1168,3,113,56,0,1168,1169,3,107,53,0,1169,1170,3,107,53,0,1170,1171,3,85,42,0,1171,1172,3,123,61,0,1172,1173,3,93,46,0,1173,212,1,0,0,0,1174,1175,3,89,44,0,1175,1176,3,113,56,0,1176,1177,3,107,53,0,1177,1178,3,125,62,0,1178,1179,3,109,54,0,1179,1180,3,111,55,0,1180,214,1,0,0,0,1181,1182,3,89,44,0,1182,1183,3,113,56,0,1183,1184,3,107,53,0,1184,1185,3,125,62,0,1185,1186,3,109,54,0,1186,1187,3,111,55,0,1187,1188,3,121,60,0,1188,216,1,0,0,0,1189,1190,3,89,44,0,1190,1191,3,113,56,0,1191,1192,3,109,54,0,1192,1193,3,109,54,0,1193,1194,3,101,50,0,1194,1195,3,123,61,0,1195,218,1,0,0,0,1196,1197,3,89,44,0,1197,1198,3,113,56,0,1198,1199,3,109,54,0,1199,1200,3,115,57,0,1200,1201,3,85,42,0,1201,1202,3,89,44,0,1202,1203,3,123,61,0,1203,220,1,0,0,0,1204,1205,3,89,44,0,1205,1206,3,113,56,0,1206,1207,3,111,55,0,1207,1208,3,91,45,0,1208,1209,3,101,50,0,1209,1210,3,123,61,0,1210,1211,3,101,50,0,1211,1212,3,113,56,0,1212,1213,3,111,55,0,1213,1214,3,85,42,0,1214,1215,3,107,53,0,1215,222,1,0,0,0,1216,1217,3,89,44,0,1217,1218,3,113,56,0,1218,1219,3,111,55,0,1219,1220,3,95,47,0,1220,1221,3,107,53,0,1221,1222,3,101,50,0,1222,1223,3,89,44,0,1223,1224,3,123,61,0,1224,224,1,0,0,0,1225,1226,3,89,44,0,1226,1227,3,113,56,0,1227,1228,3,111,55,0,1228,1229,3,111,55,0,1229,1230,3,93,46,0,1230,1231,3,89,44,0,1231,1232,3,123,61,0,1232,226,1,0,0,0,1233,1234,3,89,44,0,1234,1235,3,113,56,0,1235,1236,3,111,55,0,1236,1237,3,121,60,0,1237,1238,3,123,61,0,1238,1239,3,119,59,0,1239,1240,3,85,42,0,1240,1241,3,101,50,0,1241,1242,3,111,55,0,1242,1243,3,123,61,0,1243,228,1,0,0,0,1244,1245,3,89,44,0,1245,1246,3,113,56,0,1246,1247,3,111,55,0,1247,1248,3,121,60,0,1248,1249,3,125,62,0,1249,1250,3,109,54,0,1250,1251,3,93,46,0,1251,1252,3,119,59,0,1252,230,1,0,0,0,1253,1254,3,89,44,0,1254,1255,3,113,56,0,1255,1256,3,127,63,0,1256,1257,3,93,46,0,1257,1258,3,119,59,0,1258,232,1,0,0,0,1259,1260,3,89,44,0,1260,1261,3,119,59,0,1261,1262,3,93,46,0,1262,1263,3,85,42,0,1263,1264,3,123,61,0,1264,1265,3,93,46,0,1265,234,1,0,0,0,1266,1267,3,89,44,0,1267,1268,3,119,59,0,1268,1269,3,113,56,0,1269,1270,3,121,60,0,1270,1271,3,121,60,0,1271,236,1,0,0,0,1272,1273,3,89,44,0,1273,1274,3,125,62,0,1274,1275,3,87,43,0,1275,1276,3,93,46,0,1276,238,1,0,0,0,1277,1278,3,89,44,0,1278,1279,3,125,62,0,1279,1280,3,119,59,0,1280,1281,3,119,59,0,1281,1282,3,93,46,0,1282,1283,3,111,55,0,1283,1284,3,123,61,0,1284,240,1,0,0,0,1285,1286,3,89,44,0,1286,1287,3,125,62,0,1287,1288,3,119,59,0,1288,1289,3,119,59,0,1289,1290,3,93,46,0,1290,1291,3,111,55,0,1291,1292,3,123,61,0,1292,1293,5,95,0,0,1293,1294,3,91,45,0,1294,1295,3,85,42,0,1295,1296,3,123,61,0,1296,1297,3,93,46,0,1297,242,1,0,0,0,1298,1299,3,89,44,0,1299,1300,3,125,62,0,1300,1301,3,119,59,0,1301,1302,3,119,59,0,1302,1303,3,93,46,0,1303,1304,3,111,55,0,1304,1305,3,123,61,0,1305,1306,5,95,0,0,1306,1307,3,123,61,0,1307,1308,3,101,50,0,1308,1309,3,109,54,0,1309,1310,3,93,46,0,1310,244,1,0,0,0,1311,1312,3,89,44,0,1312,1313,3,125,62,0,1313,1314,3,119,59,0,1314,1315,3,119,59,0,1315,1316,3,93,46,0,1316,1317,3,111,55,0,1317,1318,3,123,61,0,1318,1319,5,95,0,0,1319,1320,3,123,61,0,1320,1321,3,101,50,0,1321,1322,3,109,54,0,1322,1323,3,93,46,0,1323,1324,3,121,60,0,1324,1325,3,123,61,0,1325,1326,3,85,42,0,1326,1327,3,109,54,0,1327,1328,3,115,57,0,1328,246,1,0,0,0,1329,1330,3,91,45,0,1330,1331,3,85,42,0,1331,1332,3,123,61,0,1332,1333,3,85,42,0,1333,248,1,0,0,0,1334,1335,3,91,45,0,1335,1336,3,85,42,0,1336,1337,3,123,61,0,1337,1338,3,85,42,0,1338,1339,3,87,43,0,1339,1340,3,85,42,0,1340,1341,3,121,60,0,1341,1342,3,93,46,0,1342,250,1,0,0,0,1343,1344,3,91,45,0,1344,1345,3,93,46,0,1345,1346,3,89,44,0,1346,1347,3,101,50,0,1347,1348,3,109,54,0,1348,1349,3,85,42,0,1349,1350,3,107,53,0,1350,252,1,0,0,0,1351,1352,3,91,45,0,1352,1353,3,93,46,0,1353,1354,3,89,44,0,1354,1355,3,107,53,0,1355,1356,3,85,42,0,1356,1357,3,119,59,0,1357,1358,3,93,46,0,1358,254,1,0,0,0,1359,1360,3,91,45,0,1360,1361,3,93,46,0,1361,1362,3,95,47,0,1362,1363,3,85,42,0,1363,1364,3,125,62,0,1364,1365,3,107,53,0,1365,1366,3,123,61,0,1366,256,1,0,0,0,1367,1368,3,91,45,0,1368,1369,3,93,46,0,1369,1370,3,95,47,0,1370,1371,3,93,46,0,1371,1372,3,119,59,0,1372,1373,3,119,59,0,1373,1374,3,85,42,0,1374,1375,3,87,43,0,1375,1376,3,107,53,0,1376,1377,3,93,46,0,1377,258,1,0,0,0,1378,1379,3,91,45,0,1379,1380,3,93,46,0,1380,1381,3,95,47,0,1381,1382,3,93,46,0,1382,1383,3,119,59,0,1383,1384,3,119,59,0,1384,1385,3,93,46,0,1385,1386,3,91,45,0,1386,260,1,0,0,0,1387,1388,3,91,45,0,1388,1389,3,93,46,0,1389,1390,3,95,47,0,1390,1391,3,101,50,0,1391,1392,3,111,55,0,1392,1393,3,93,46,0,1393,262,1,0,0,0,1394,1395,3,91,45,0,1395,1396,3,93,46,0,1396,1397,3,107,53,0,1397,1398,3,93,46,0,1398,1399,3,123,61,0,1399,1400,3,93,46,0,1400,264,1,0,0,0,1401,1402,3,91,45,0,1402,1403,3,93,46,0,1403,1404,3,121,60,0,1404,1405,3,89,44,0,1405,266,1,0,0,0,1406,1407,3,91,45,0,1407,1408,3,93,46,0,1408,1409,3,121,60,0,1409,1410,3,89,44,0,1410,1411,3,119,59,0,1411,1412,3,101,50,0,1412,1413,3,87,43,0,1413,1414,3,93,46,0,1414,268,1,0,0,0,1415,1416,3,91,45,0,1416,1417,3,93,46,0,1417,1418,3,123,61,0,1418,1419,3,85,42,0,1419,1420,3,89,44,0,1420,1421,3,99,49,0,1421,270,1,0,0,0,1422,1423,3,91,45,0,1423,1424,3,101,50,0,1424,1425,3,89,44,0,1425,1426,3,123,61,0,1426,272,1,0,0,0,1427,1428,3,91,45,0,1428,1429,3,101,50,0,1429,1430,3,119,59,0,1430,1431,3,93,46,0,1431,1432,3,89,44,0,1432,1433,3,123,61,0,1433,1434,3,113,56,0,1434,1435,3,119,59,0,1435,1436,3,133,66,0,1436,274,1,0,0,0,1437,1438,3,91,45,0,1438,1439,3,101,50,0,1439,1440,3,121,60,0,1440,1441,3,85,42,0,1441,1442,3,87,43,0,1442,1443,3,107,53,0,1443,1444,3,93,46,0,1444,276,1,0,0,0,1445,1446,3,91,45,0,1446,1447,3,101,50,0,1447,1448,3,121,60,0,1448,1449,3,89,44,0,1449,1450,3,85,42,0,1450,1451,3,119,59,0,1451,1452,3,91,45,0,1452,278,1,0,0,0,1453,1454,3,91,45,0,1454,1455,3,101,50,0,1455,1456,3,121,60,0,1456,1457,3,123,61,0,1457,1458,3,101,50,0,1458,1459,3,111,55,0,1459,1460,3,89,44,0,1460,1461,3,123,61,0,1461,280,1,0,0,0,1462,1463,3,91,45,0,1463,1464,3,113,56,0,1464,282,1,0,0,0,1465,1466,3,91,45,0,1466,1467,3,119,59,0,1467,1468,3,113,56,0,1468,1469,3,115,57,0,1469,284,1,0,0,0,1470,1471,3,93,46,0,1471,1472,3,85,42,0,1472,1473,3,89,44,0,1473,1474,3,99,49,0,1474,286,1,0,0,0,1475,1476,3,93,46,0,1476,1477,3,107,53,0,1477,1478,3,121,60,0,1478,1479,3,93,46,0,1479,288,1,0,0,0,1480,1481,3,93,46,0,1481,1482,3,109,54,0,1482,1483,3,115,57,0,1483,1484,3,123,61,0,1484,1485,3,133,66,0,1485,290,1,0,0,0,1486,1487,3,93,46,0,1487,1488,3,109,54,0,1488,1489,3,115,57,0,1489,1490,3,123,61,0,1490,1491,3,133,66,0,1491,1492,5,95,0,0,1492,1493,3,85,42,0,1493,1494,3,89,44,0,1494,1495,3,123,61,0,1495,1496,3,101,50,0,1496,1497,3,113,56,0,1497,1498,3,111,55,0,1498,292,1,0,0,0,1499,1500,3,93,46,0,1500,1501,3,111,55,0,1501,1502,3,89,44,0,1502,1503,3,119,59,0,1503,1504,3,133,66,0,1504,1505,3,115,57,0,1505,1506,3,123,61,0,1506,1507,3,93,46,0,1507,1508,3,91,45,0,1508,294,1,0,0,0,1509,1510,3,93,46,0,1510,1511,3,111,55,0,1511,1512,3,91,45,0,1512,296,1,0,0,0,1513,1514,3,93,46,0,1514,1515,3,111,55,0,1515,1516,3,125,62,0,1516,1517,3,109,54,0,1517,298,1,0,0,0,1518,1519,3,93,46,0,1519,1520,3,119,59,0,1520,1521,3,85,42,0,1521,1522,3,121,60,0,1522,1523,3,93,46,0,1523,300,1,0,0,0,1524,1525,3,93,46,0,1525,1526,3,119,59,0,1526,1527,3,119,59,0,1527,1528,3,113,56,0,1528,1529,3,119,59,0,1529,302,1,0,0,0,1530,1531,3,93,46,0,1531,1532,3,121,60,0,1532,1533,3,89,44,0,1533,1534,3,85,42,0,1534,1535,3,115,57,0,1535,1536,3,93,46,0,1536,304,1,0,0,0,1537,1538,3,93,46,0,1538,1539,3,127,63,0,1539,1540,3,85,42,0,1540,1541,3,107,53,0,1541,1542,3,125,62,0,1542,1543,3,85,42,0,1543,1544,3,123,61,0,1544,1545,3,93,46,0,1545,306,1,0,0,0,1546,1547,3,93,46,0,1547,1548,3,131,65,0,1548,1549,3,89,44,0,1549,1550,3,93,46,0,1550,1551,3,115,57,0,1551,1552,3,123,61,0,1552,308,1,0,0,0,1553,1554,3,93,46,0,1554,1555,3,131,65,0,1555,1556,3,89,44,0,1556,1557,3,107,53,0,1557,1558,3,125,62,0,1558,1559,3,91,45,0,1559,1560,3,93,46,0,1560,310,1,0,0,0,1561,1562,3,93,46,0,1562,1563,3,131,65,0,1563,1564,3,89,44,0,1564,1565,3,107,53,0,1565,1566,3,125,62,0,1566,1567,3,121,60,0,1567,1568,3,101,50,0,1568,1569,3,113,56,0,1569,1570,3,111,55,0,1570,312,1,0,0,0,1571,1572,3,93,46,0,1572,1573,3,131,65,0,1573,1574,3,89,44,0,1574,1575,3,107,53,0,1575,1576,3,125,62,0,1576,1577,3,121,60,0,1577,1578,3,101,50,0,1578,1579,3,127,63,0,1579,1580,3,93,46,0,1580,314,1,0,0,0,1581,1582,3,93,46,0,1582,1583,3,131,65,0,1583,1584,3,101,50,0,1584,1585,3,121,60,0,1585,1586,3,123,61,0,1586,1587,3,121,60,0,1587,316,1,0,0,0,1588,1589,3,93,46,0,1589,1590,3,131,65,0,1590,1591,3,115,57,0,1591,1592,3,107,53,0,1592,1593,3,85,42,0,1593,1594,3,101,50,0,1594,1595,3,111,55,0,1595,318,1,0,0,0,1596,1597,3,93,46,0,1597,1598,3,131,65,0,1598,1599,3,115,57,0,1599,1600,3,113,56,0,1600,1601,3,119,59,0,1601,1602,3,123,61,0,1602,320,1,0,0,0,1603,1604,3,93,46,0,1604,1605,3,131,65,0,1605,1606,3,123,61,0,1606,1607,3,93,46,0,1607,1608,3,119,59,0,1608,1609,3,111,55,0,1609,1610,3,85,42,0,1610,1611,3,107,53,0,1611,322,1,0,0,0,1612,1613,3,95,47,0,1613,1614,3,85,42,0,1614,1615,3,101,50,0,1615,1616,3,107,53,0,1616,324,1,0,0,0,1617,1618,3,95,47,0,1618,1619,3,85,42,0,1619,1620,3,107,53,0,1620,1621,3,121,60,0,1621,1622,3,93,46,0,1622,326,1,0,0,0,1623,1624,3,95,47,0,1624,1625,3,85,42,0,1625,1626,3,109,54,0,1626,1627,3,101,50,0,1627,1628,3,107,53,0,1628,1629,3,133,66,0,1629,328,1,0,0,0,1630,1631,3,95,47,0,1631,1632,3,101,50,0,1632,1633,3,107,53,0,1633,1634,3,123,61,0,1634,1635,3,93,46,0,1635,1636,3,119,59,0,1636,330,1,0,0,0,1637,1638,3,95,47,0,1638,1639,3,101,50,0,1639,1640,3,119,59,0,1640,1641,3,121,60,0,1641,1642,3,123,61,0,1642,332,1,0,0,0,1643,1644,3,95,47,0,1644,1645,3,107,53,0,1645,1646,3,85,42,0,1646,1647,3,123,61,0,1647,1648,3,123,61,0,1648,1649,3,93,46,0,1649,1650,3,111,55,0,1650,334,1,0,0,0,1651,1652,3,95,47,0,1652,1653,3,107,53,0,1653,1654,3,113,56,0,1654,1655,3,129,64,0,1655,336,1,0,0,0,1656,1657,3,95,47,0,1657,1658,3,113,56,0,1658,1659,3,107,53,0,1659,1660,3,107,53,0,1660,1661,3,113,56,0,1661,1662,3,129,64,0,1662,1663,3,101,50,0,1663,1664,3,111,55,0,1664,1665,3,97,48,0,1665,338,1,0,0,0,1666,1667,3,95,47,0,1667,1668,3,113,56,0,1668,1669,3,119,59,0,1669,340,1,0,0,0,1670,1671,3,95,47,0,1671,1672,3,113,56,0,1672,1673,3,119,59,0,1673,1674,3,93,46,0,1674,1675,3,101,50,0,1675,1676,3,97,48,0,1676,1677,3,111,55,0,1677,342,1,0,0,0,1678,1679,3,95,47,0,1679,1680,3,119,59,0,1680,1681,3,113,56,0,1681,1682,3,109,54,0,1682,344,1,0,0,0,1683,1684,3,95,47,0,1684,1685,3,125,62,0,1685,1686,3,107,53,0,1686,1687,3,107,53,0,1687,346,1,0,0,0,1688,1689,3,95,47,0,1689,1690,3,125,62,0,1690,1691,3,111,55,0,1691,1692,3,89,44,0,1692,1693,3,123,61,0,1693,1694,3,101,50,0,1694,1695,3,113,56,0,1695,1696,3,111,55,0,1696,348,1,0,0,0,1697,1698,3,97,48,0,1698,1699,3,107,53,0,1699,1700,3,113,56,0,1700,1701,3,87,43,0,1701,350,1,0,0,0,1702,1703,3,97,48,0,1703,1704,3,107,53,0,1704,1705,3,113,56,0,1705,1706,3,87,43,0,1706,1707,3,85,42,0,1707,1708,3,107,53,0,1708,352,1,0,0,0,1709,1710,3,97,48,0,1710,1711,3,119,59,0,1711,1712,3,85,42,0,1712,1713,3,111,55,0,1713,1714,3,123,61,0,1714,354,1,0,0,0,1715,1716,3,97,48,0,1716,1717,3,119,59,0,1717,1718,3,113,56,0,1718,1719,3,125,62,0,1719,1720,3,115,57,0,1720,356,1,0,0,0,1721,1722,3,97,48,0,1722,1723,3,119,59,0,1723,1724,3,113,56,0,1724,1725,3,125,62,0,1725,1726,3,115,57,0,1726,1727,3,101,50,0,1727,1728,3,111,55,0,1728,1729,3,97,48,0,1729,358,1,0,0,0,1730,1731,3,97,48,0,1731,1732,3,119,59,0,1732,1733,3,113,56,0,1733,1734,3,125,62,0,1734,1735,3,115,57,0,1735,1736,3,121,60,0,1736,360,1,0,0,0,1737,1738,3,99,49,0,1738,1739,3,85,42,0,1739,1740,3,121,60,0,1740,1741,3,99,49,0,1741,362,1,0,0,0,1742,1743,3,99,49,0,1743,1744,3,85,42,0,1744,1745,3,127,63,0,1745,1746,3,101,50,0,1746,1747,3,111,55,0,1747,1748,3,97,48,0,1748,364,1,0,0,0,1749,1750,3,99,49,0,1750,1751,3,113,56,0,1751,1752,3,115,57,0,1752,366,1,0,0,0,1753,1754,3,101,50,0,1754,1755,3,95,47,0,1755,368,1,0,0,0,1756,1757,3,101,50,0,1757,1758,3,97,48,0,1758,1759,3,111,55,0,1759,1760,3,113,56,0,1760,1761,3,119,59,0,1761,1762,3,93,46,0,1762,370,1,0,0,0,1763,1764,3,101,50,0,1764,1765,3,107,53,0,1765,1766,3,101,50,0,1766,1767,3,105,52,0,1767,1768,3,93,46,0,1768,372,1,0,0,0,1769,1770,3,101,50,0,1770,1771,3,109,54,0,1771,1772,3,109,54,0,1772,1773,3,93,46,0,1773,1774,3,91,45,0,1774,1775,3,101,50,0,1775,1776,3,85,42,0,1776,1777,3,123,61,0,1777,1778,3,93,46,0,1778,374,1,0,0,0,1779,1780,3,101,50,0,1780,1781,3,109,54,0,1781,1782,3,115,57,0,1782,1783,3,113,56,0,1783,1784,3,119,59,0,1784,1785,3,123,61,0,1785,376,1,0,0,0,1786,1787,3,101,50,0,1787,1788,3,111,55,0,1788,378,1,0,0,0,1789,1790,3,101,50,0,1790,1791,3,111,55,0,1791,1792,3,89,44,0,1792,1793,3,119,59,0,1793,1794,3,93,46,0,1794,1795,3,109,54,0,1795,1796,3,93,46,0,1796,1797,3,111,55,0,1797,1798,3,123,61,0,1798,380,1,0,0,0,1799,1800,3,101,50,0,1800,1801,3,111,55,0,1801,1802,3,89,44,0,1802,1803,3,119,59,0,1803,1804,3,93,46,0,1804,1805,3,109,54,0,1805,1806,3,93,46,0,1806,1807,3,111,55,0,1807,1808,3,123,61,0,1808,1809,3,85,42,0,1809,1810,3,107,53,0,1810,382,1,0,0,0,1811,1812,3,101,50,0,1812,1813,3,111,55,0,1813,1814,3,91,45,0,1814,1815,3,93,46,0,1815,1816,3,131,65,0,1816,384,1,0,0,0,1817,1818,3,101,50,0,1818,1819,3,111,55,0,1819,1820,3,91,45,0,1820,1821,3,93,46,0,1821,1822,3,131,65,0,1822,1823,3,93,46,0,1823,1824,3,91,45,0,1824,386,1,0,0,0,1825,1826,3,101,50,0,1826,1827,3,111,55,0,1827,1828,3,99,49,0,1828,1829,3,93,46,0,1829,1830,3,119,59,0,1830,1831,3,101,50,0,1831,1832,3,123,61,0,1832,1833,3,121,60,0,1833,388,1,0,0,0,1834,1835,3,101,50,0,1835,1836,3,111,55,0,1836,1837,3,101,50,0,1837,1838,3,123,61,0,1838,1839,3,101,50,0,1839,1840,3,85,42,0,1840,1841,3,107,53,0,1841,390,1,0,0,0,1842,1843,3,101,50,0,1843,1844,3,111,55,0,1844,1845,3,101,50,0,1845,1846,3,123,61,0,1846,1847,3,101,50,0,1847,1848,3,85,42,0,1848,1849,3,107,53,0,1849,1850,3,107,53,0,1850,1851,3,133,66,0,1851,392,1,0,0,0,1852,1853,3,101,50,0,1853,1854,3,111,55,0,1854,1855,3,111,55,0,1855,1856,3,93,46,0,1856,1857,3,119,59,0,1857,394,1,0,0,0,1858,1859,3,101,50,0,1859,1860,3,111,55,0,1860,1861,3,121,60,0,1861,1862,3,93,46,0,1862,1863,3,119,59,0,1863,1864,3,123,61,0,1864,396,1,0,0,0,1865,1866,3,101,50,0,1866,1867,3,111,55,0,1867,1868,3,121,60,0,1868,1869,3,123,61,0,1869,1870,3,93,46,0,1870,1871,3,85,42,0,1871,1872,3,91,45,0,1872,398,1,0,0,0,1873,1874,3,101,50,0,1874,1875,3,111,55,0,1875,1876,3,123,61,0,1876,1877,3,93,46,0,1877,1878,3,119,59,0,1878,1879,3,121,60,0,1879,1880,3,93,46,0,1880,1881,3,89,44,0,1881,1882,3,123,61,0,1882,400,1,0,0,0,1883,1884,3,101,50,0,1884,1885,3,111,55,0,1885,1886,3,123,61,0,1886,1887,3,113,56,0,1887,402,1,0,0,0,1888,1889,3,101,50,0,1889,1890,3,121,60,0,1890,404,1,0,0,0,1891,1892,3,101,50,0,1892,1893,3,121,60,0,1893,1894,3,111,55,0,1894,1895,3,125,62,0,1895,1896,3,107,53,0,1896,1897,3,107,53,0,1897,406,1,0,0,0,1898,1899,3,103,51,0,1899,1900,3,113,56,0,1900,1901,3,101,50,0,1901,1902,3,111,55,0,1902,408,1,0,0,0,1903,1904,3,103,51,0,1904,1905,3,121,60,0,1905,1906,3,113,56,0,1906,1907,3,111,55,0,1907,1908,5,95,0,0,1908,1909,3,93,46,0,1909,1910,3,131,65,0,1910,1911,3,101,50,0,1911,1912,3,121,60,0,1912,1913,3,123,61,0,1913,1914,3,121,60,0,1914,410,1,0,0,0,1915,1916,3,103,51,0,1916,1917,3,121,60,0,1917,1918,3,113,56,0,1918,1919,3,111,55,0,1919,1920,5,95,0,0,1920,1921,3,117,58,0,1921,1922,3,125,62,0,1922,1923,3,93,46,0,1923,1924,3,119,59,0,1924,1925,3,133,66,0,1925,412,1,0,0,0,1926,1927,3,103,51,0,1927,1928,3,121,60,0,1928,1929,3,113,56,0,1929,1930,3,111,55,0,1930,1931,5,95,0,0,1931,1932,3,127,63,0,1932,1933,3,85,42,0,1933,1934,3,107,53,0,1934,1935,3,125,62,0,1935,1936,3,93,46,0,1936,414,1,0,0,0,1937,1938,3,105,52,0,1938,1939,3,93,46,0,1939,1940,3,133,66,0,1940,416,1,0,0,0,1941,1942,3,107,53,0,1942,1943,3,85,42,0,1943,1944,3,121,60,0,1944,1945,3,123,61,0,1945,418,1,0,0,0,1946,1947,3,107,53,0,1947,1948,3,93,46,0,1948,1949,3,95,47,0,1949,1950,3,123,61,0,1950,420,1,0,0,0,1951,1952,3,107,53,0,1952,1953,3,93,46,0,1953,1954,3,97,48,0,1954,1955,3,85,42,0,1955,1956,3,89,44,0,1956,1957,3,133,66,0,1957,422,1,0,0,0,1958,1959,3,107,53,0,1959,1960,3,101,50,0,1960,1961,3,105,52,0,1961,1962,3,93,46,0,1962,424,1,0,0,0,1963,1964,3,107,53,0,1964,1965,3,101,50,0,1965,1966,3,109,54,0,1966,1967,3,101,50,0,1967,1968,3,123,61,0,1968,426,1,0,0,0,1969,1970,3,107,53,0,1970,1971,3,101,50,0,1971,1972,3,121,60,0,1972,1973,3,123,61,0,1973,428,1,0,0,0,1974,1975,3,107,53,0,1975,1976,3,113,56,0,1976,1977,3,89,44,0,1977,1978,3,85,42,0,1978,1979,3,107,53,0,1979,430,1,0,0,0,1980,1981,3,107,53,0,1981,1982,3,113,56,0,1982,1983,3,97,48,0,1983,1984,3,101,50,0,1984,1985,3,111,55,0,1985,432,1,0,0,0,1986,1987,3,109,54,0,1987,1988,3,85,42,0,1988,1989,3,111,55,0,1989,1990,3,85,42,0,1990,1991,3,97,48,0,1991,1992,3,93,46,0,1992,434,1,0,0,0,1993,1994,3,109,54,0,1994,1995,3,85,42,0,1995,1996,3,123,61,0,1996,1997,3,89,44,0,1997,1998,3,99,49,0,1998,436,1,0,0,0,1999,2e3,3,109,54,0,2e3,2001,3,85,42,0,2001,2002,3,123,61,0,2002,2003,3,89,44,0,2003,2004,3,99,49,0,2004,2005,3,93,46,0,2005,2006,3,121,60,0,2006,438,1,0,0,0,2007,2008,3,109,54,0,2008,2009,3,85,42,0,2009,2010,3,123,61,0,2010,2011,3,89,44,0,2011,2012,3,99,49,0,2012,2013,5,95,0,0,2013,2014,3,119,59,0,2014,2015,3,93,46,0,2015,2016,3,89,44,0,2016,2017,3,113,56,0,2017,2018,3,97,48,0,2018,2019,3,111,55,0,2019,2020,3,101,50,0,2020,2021,3,135,67,0,2021,2022,3,93,46,0,2022,440,1,0,0,0,2023,2024,3,109,54,0,2024,2025,3,93,46,0,2025,2026,3,85,42,0,2026,2027,3,121,60,0,2027,2028,3,125,62,0,2028,2029,3,119,59,0,2029,2030,3,93,46,0,2030,2031,3,121,60,0,2031,442,1,0,0,0,2032,2033,3,109,54,0,2033,2034,3,101,50,0,2034,2035,3,89,44,0,2035,2036,3,119,59,0,2036,2037,3,113,56,0,2037,2038,3,121,60,0,2038,2039,3,93,46,0,2039,2040,3,89,44,0,2040,2041,3,113,56,0,2041,2042,3,111,55,0,2042,2043,3,91,45,0,2043,2044,3,121,60,0,2044,444,1,0,0,0,2045,2046,3,109,54,0,2046,2047,3,101,50,0,2047,2048,3,107,53,0,2048,2049,3,107,53,0,2049,2050,3,101,50,0,2050,2051,3,121,60,0,2051,2052,3,93,46,0,2052,2053,3,89,44,0,2053,2054,3,113,56,0,2054,2055,3,111,55,0,2055,2056,3,91,45,0,2056,2057,3,121,60,0,2057,446,1,0,0,0,2058,2059,3,109,54,0,2059,2060,3,113,56,0,2060,2061,3,91,45,0,2061,2062,3,101,50,0,2062,2063,3,95,47,0,2063,2064,3,133,66,0,2064,448,1,0,0,0,2065,2066,3,111,55,0,2066,2067,3,85,42,0,2067,2068,3,111,55,0,2068,2069,3,113,56,0,2069,2070,3,121,60,0,2070,2071,3,93,46,0,2071,2072,3,89,44,0,2072,2073,3,113,56,0,2073,2074,3,111,55,0,2074,2075,3,91,45,0,2075,2076,3,121,60,0,2076,450,1,0,0,0,2077,2078,3,111,55,0,2078,2079,3,85,42,0,2079,2080,3,123,61,0,2080,2081,3,125,62,0,2081,2082,3,119,59,0,2082,2083,3,85,42,0,2083,2084,3,107,53,0,2084,452,1,0,0,0,2085,2086,3,111,55,0,2086,2087,3,93,46,0,2087,2088,3,131,65,0,2088,2089,3,123,61,0,2089,454,1,0,0,0,2090,2091,3,111,55,0,2091,2092,3,113,56,0,2092,456,1,0,0,0,2093,2094,3,111,55,0,2094,2095,3,113,56,0,2095,2096,3,107,53,0,2096,2097,3,113,56,0,2097,2098,3,97,48,0,2098,2099,3,101,50,0,2099,2100,3,111,55,0,2100,458,1,0,0,0,2101,2102,3,111,55,0,2102,2103,3,113,56,0,2103,2104,3,123,61,0,2104,460,1,0,0,0,2105,2106,3,111,55,0,2106,2107,3,113,56,0,2107,2108,3,123,61,0,2108,2109,3,111,55,0,2109,2110,3,125,62,0,2110,2111,3,107,53,0,2111,2112,3,107,53,0,2112,462,1,0,0,0,2113,2114,3,111,55,0,2114,2115,3,125,62,0,2115,2116,3,107,53,0,2116,2117,3,107,53,0,2117,464,1,0,0,0,2118,2119,3,111,55,0,2119,2120,3,125,62,0,2120,2121,3,107,53,0,2121,2122,3,107,53,0,2122,2123,3,121,60,0,2123,466,1,0,0,0,2124,2125,3,113,56,0,2125,2126,3,87,43,0,2126,2127,3,103,51,0,2127,2128,3,93,46,0,2128,2129,3,89,44,0,2129,2130,3,123,61,0,2130,468,1,0,0,0,2131,2132,3,113,56,0,2132,2133,3,95,47,0,2133,470,1,0,0,0,2134,2135,3,113,56,0,2135,2136,3,95,47,0,2136,2137,3,95,47,0,2137,2138,3,121,60,0,2138,2139,3,93,46,0,2139,2140,3,123,61,0,2140,472,1,0,0,0,2141,2142,3,113,56,0,2142,2143,3,109,54,0,2143,2144,3,101,50,0,2144,2145,3,123,61,0,2145,474,1,0,0,0,2146,2147,3,113,56,0,2147,2148,3,111,55,0,2148,476,1,0,0,0,2149,2150,3,113,56,0,2150,2151,3,111,55,0,2151,2152,3,93,46,0,2152,478,1,0,0,0,2153,2154,3,113,56,0,2154,2155,3,111,55,0,2155,2156,3,107,53,0,2156,2157,3,133,66,0,2157,480,1,0,0,0,2158,2159,3,113,56,0,2159,2160,3,115,57,0,2160,2161,3,123,61,0,2161,2162,3,101,50,0,2162,2163,3,113,56,0,2163,2164,3,111,55,0,2164,482,1,0,0,0,2165,2166,3,113,56,0,2166,2167,3,115,57,0,2167,2168,3,123,61,0,2168,2169,3,101,50,0,2169,2170,3,113,56,0,2170,2171,3,111,55,0,2171,2172,3,85,42,0,2172,2173,3,107,53,0,2173,484,1,0,0,0,2174,2175,3,113,56,0,2175,2176,3,119,59,0,2176,486,1,0,0,0,2177,2178,3,113,56,0,2178,2179,3,119,59,0,2179,2180,3,91,45,0,2180,2181,3,93,46,0,2181,2182,3,119,59,0,2182,488,1,0,0,0,2183,2184,3,113,56,0,2184,2185,3,123,61,0,2185,2186,3,99,49,0,2186,2187,3,93,46,0,2187,2188,3,119,59,0,2188,2189,3,121,60,0,2189,490,1,0,0,0,2190,2191,3,113,56,0,2191,2192,3,125,62,0,2192,2193,3,123,61,0,2193,2194,3,93,46,0,2194,2195,3,119,59,0,2195,492,1,0,0,0,2196,2197,3,113,56,0,2197,2198,3,127,63,0,2198,2199,3,93,46,0,2199,2200,3,119,59,0,2200,494,1,0,0,0,2201,2202,3,115,57,0,2202,2203,3,85,42,0,2203,2204,3,119,59,0,2204,2205,3,85,42,0,2205,2206,3,107,53,0,2206,2207,3,107,53,0,2207,2208,3,93,46,0,2208,2209,3,107,53,0,2209,496,1,0,0,0,2210,2211,3,115,57,0,2211,2212,3,85,42,0,2212,2213,3,119,59,0,2213,2214,3,123,61,0,2214,2215,3,101,50,0,2215,2216,3,123,61,0,2216,2217,3,101,50,0,2217,2218,3,113,56,0,2218,2219,3,111,55,0,2219,498,1,0,0,0,2220,2221,3,115,57,0,2221,2222,3,85,42,0,2222,2223,3,121,60,0,2223,2224,3,121,60,0,2224,2225,3,101,50,0,2225,2226,3,111,55,0,2226,2227,3,97,48,0,2227,500,1,0,0,0,2228,2229,3,115,57,0,2229,2230,3,85,42,0,2230,2231,3,121,60,0,2231,2232,3,121,60,0,2232,2233,3,129,64,0,2233,2234,3,113,56,0,2234,2235,3,119,59,0,2235,2236,3,91,45,0,2236,502,1,0,0,0,2237,2238,3,115,57,0,2238,2239,3,85,42,0,2239,2240,3,121,60,0,2240,2241,3,123,61,0,2241,504,1,0,0,0,2242,2243,3,115,57,0,2243,2244,3,85,42,0,2244,2245,3,123,61,0,2245,2246,3,123,61,0,2246,2247,3,93,46,0,2247,2248,3,119,59,0,2248,2249,3,111,55,0,2249,506,1,0,0,0,2250,2251,3,115,57,0,2251,2252,3,93,46,0,2252,2253,3,119,59,0,2253,508,1,0,0,0,2254,2255,3,115,57,0,2255,2256,3,93,46,0,2256,2257,3,119,59,0,2257,2258,3,109,54,0,2258,2259,3,125,62,0,2259,2260,3,123,61,0,2260,2261,3,93,46,0,2261,510,1,0,0,0,2262,2263,3,115,57,0,2263,2264,3,107,53,0,2264,2265,3,85,42,0,2265,2266,3,111,55,0,2266,512,1,0,0,0,2267,2268,3,115,57,0,2268,2269,3,113,56,0,2269,2270,3,113,56,0,2270,2271,3,107,53,0,2271,514,1,0,0,0,2272,2273,3,115,57,0,2273,2274,3,119,59,0,2274,2275,3,85,42,0,2275,2276,3,97,48,0,2276,2277,3,109,54,0,2277,2278,3,85,42,0,2278,516,1,0,0,0,2279,2280,3,115,57,0,2280,2281,3,119,59,0,2281,2282,3,93,46,0,2282,2283,3,89,44,0,2283,2284,3,93,46,0,2284,2285,3,91,45,0,2285,2286,3,101,50,0,2286,2287,3,111,55,0,2287,2288,3,97,48,0,2288,518,1,0,0,0,2289,2290,3,115,57,0,2290,2291,3,119,59,0,2291,2292,3,93,46,0,2292,2293,3,121,60,0,2293,2294,3,113,56,0,2294,2295,3,119,59,0,2295,2296,3,123,61,0,2296,520,1,0,0,0,2297,2298,3,115,57,0,2298,2299,3,119,59,0,2299,2300,3,101,50,0,2300,2301,3,109,54,0,2301,2302,3,85,42,0,2302,2303,3,119,59,0,2303,2304,3,133,66,0,2304,522,1,0,0,0,2305,2306,3,115,57,0,2306,2307,3,119,59,0,2307,2308,3,101,50,0,2308,2309,3,127,63,0,2309,2310,3,101,50,0,2310,2311,3,107,53,0,2311,2312,3,93,46,0,2312,2313,3,97,48,0,2313,2314,3,93,46,0,2314,2315,3,121,60,0,2315,524,1,0,0,0,2316,2317,3,115,57,0,2317,2318,3,119,59,0,2318,2319,3,113,56,0,2319,2320,3,89,44,0,2320,2321,3,93,46,0,2321,2322,3,121,60,0,2322,2323,3,121,60,0,2323,526,1,0,0,0,2324,2325,3,117,58,0,2325,2326,3,125,62,0,2326,2327,3,93,46,0,2327,2328,3,119,59,0,2328,2329,3,133,66,0,2329,528,1,0,0,0,2330,2331,3,117,58,0,2331,2332,3,125,62,0,2332,2333,3,93,46,0,2333,2334,3,125,62,0,2334,2335,3,93,46,0,2335,530,1,0,0,0,2336,2337,3,119,59,0,2337,2338,3,85,42,0,2338,2339,3,101,50,0,2339,2340,3,121,60,0,2340,2341,3,93,46,0,2341,532,1,0,0,0,2342,2343,3,119,59,0,2343,2344,3,85,42,0,2344,2345,3,111,55,0,2345,2346,3,97,48,0,2346,2347,3,93,46,0,2347,534,1,0,0,0,2348,2349,3,119,59,0,2349,2350,3,93,46,0,2350,2351,3,91,45,0,2351,2352,3,125,62,0,2352,2353,3,89,44,0,2353,2354,3,93,46,0,2354,536,1,0,0,0,2355,2356,3,119,59,0,2356,2357,3,93,46,0,2357,2358,3,95,47,0,2358,2359,3,93,46,0,2359,2360,3,119,59,0,2360,2361,3,93,46,0,2361,2362,3,111,55,0,2362,2363,3,89,44,0,2363,2364,3,93,46,0,2364,2365,3,121,60,0,2365,538,1,0,0,0,2366,2367,3,119,59,0,2367,2368,3,93,46,0,2368,2369,3,97,48,0,2369,2370,3,93,46,0,2370,2371,3,131,65,0,2371,2372,3,115,57,0,2372,540,1,0,0,0,2373,2374,3,119,59,0,2374,2375,3,93,46,0,2375,2376,3,101,50,0,2376,2377,3,111,55,0,2377,2378,3,91,45,0,2378,2379,3,93,46,0,2379,2380,3,131,65,0,2380,542,1,0,0,0,2381,2382,3,119,59,0,2382,2383,3,93,46,0,2383,2384,3,107,53,0,2384,2385,3,93,46,0,2385,2386,3,85,42,0,2386,2387,3,121,60,0,2387,2388,3,93,46,0,2388,544,1,0,0,0,2389,2390,3,119,59,0,2390,2391,3,93,46,0,2391,2392,3,109,54,0,2392,2393,3,113,56,0,2393,2394,3,127,63,0,2394,2395,3,93,46,0,2395,546,1,0,0,0,2396,2397,3,119,59,0,2397,2398,3,93,46,0,2398,2399,3,111,55,0,2399,2400,3,85,42,0,2400,2401,3,109,54,0,2401,2402,3,93,46,0,2402,548,1,0,0,0,2403,2404,3,119,59,0,2404,2405,3,93,46,0,2405,2406,3,115,57,0,2406,2407,3,93,46,0,2407,2408,3,85,42,0,2408,2409,3,123,61,0,2409,2410,3,85,42,0,2410,2411,3,87,43,0,2411,2412,3,107,53,0,2412,2413,3,93,46,0,2413,550,1,0,0,0,2414,2415,3,119,59,0,2415,2416,3,93,46,0,2416,2417,3,115,57,0,2417,2418,3,107,53,0,2418,2419,3,85,42,0,2419,2420,3,89,44,0,2420,2421,3,93,46,0,2421,552,1,0,0,0,2422,2423,3,119,59,0,2423,2424,3,93,46,0,2424,2425,3,115,57,0,2425,2426,3,107,53,0,2426,2427,3,101,50,0,2427,2428,3,89,44,0,2428,2429,3,85,42,0,2429,2430,3,123,61,0,2430,2431,3,101,50,0,2431,2432,3,113,56,0,2432,2433,3,111,55,0,2433,554,1,0,0,0,2434,2435,3,119,59,0,2435,2436,3,93,46,0,2436,2437,3,121,60,0,2437,2438,3,93,46,0,2438,2439,3,123,61,0,2439,556,1,0,0,0,2440,2441,3,119,59,0,2441,2442,3,93,46,0,2442,2443,3,121,60,0,2443,2444,3,113,56,0,2444,2445,3,125,62,0,2445,2446,3,119,59,0,2446,2447,3,89,44,0,2447,2448,3,93,46,0,2448,558,1,0,0,0,2449,2450,3,119,59,0,2450,2451,3,93,46,0,2451,2452,3,121,60,0,2452,2453,3,115,57,0,2453,2454,3,93,46,0,2454,2455,3,89,44,0,2455,2456,3,123,61,0,2456,560,1,0,0,0,2457,2458,3,119,59,0,2458,2459,3,93,46,0,2459,2460,3,121,60,0,2460,2461,3,123,61,0,2461,2462,3,85,42,0,2462,2463,3,119,59,0,2463,2464,3,123,61,0,2464,562,1,0,0,0,2465,2466,3,119,59,0,2466,2467,3,93,46,0,2467,2468,3,121,60,0,2468,2469,3,123,61,0,2469,2470,3,113,56,0,2470,2471,3,119,59,0,2471,2472,3,93,46,0,2472,564,1,0,0,0,2473,2474,3,119,59,0,2474,2475,3,93,46,0,2475,2476,3,121,60,0,2476,2477,3,123,61,0,2477,2478,3,119,59,0,2478,2479,3,101,50,0,2479,2480,3,89,44,0,2480,2481,3,123,61,0,2481,566,1,0,0,0,2482,2483,3,119,59,0,2483,2484,3,93,46,0,2484,2485,3,121,60,0,2485,2486,3,125,62,0,2486,2487,3,107,53,0,2487,2488,3,123,61,0,2488,568,1,0,0,0,2489,2490,3,119,59,0,2490,2491,3,93,46,0,2491,2492,3,123,61,0,2492,2493,3,125,62,0,2493,2494,3,119,59,0,2494,2495,3,111,55,0,2495,570,1,0,0,0,2496,2497,3,119,59,0,2497,2498,3,93,46,0,2498,2499,3,123,61,0,2499,2500,3,125,62,0,2500,2501,3,119,59,0,2501,2502,3,111,55,0,2502,2503,3,101,50,0,2503,2504,3,111,55,0,2504,2505,3,97,48,0,2505,572,1,0,0,0,2506,2507,3,119,59,0,2507,2508,3,93,46,0,2508,2509,3,127,63,0,2509,2510,3,93,46,0,2510,2511,3,119,59,0,2511,2512,3,123,61,0,2512,574,1,0,0,0,2513,2514,3,119,59,0,2514,2515,3,93,46,0,2515,2516,3,127,63,0,2516,2517,3,113,56,0,2517,2518,3,105,52,0,2518,2519,3,93,46,0,2519,576,1,0,0,0,2520,2521,3,119,59,0,2521,2522,3,101,50,0,2522,2523,3,97,48,0,2523,2524,3,99,49,0,2524,2525,3,123,61,0,2525,578,1,0,0,0,2526,2527,3,119,59,0,2527,2528,3,107,53,0,2528,2529,3,101,50,0,2529,2530,3,105,52,0,2530,2531,3,93,46,0,2531,580,1,0,0,0,2532,2533,3,119,59,0,2533,2534,3,113,56,0,2534,2535,3,107,53,0,2535,2536,3,107,53,0,2536,2537,3,87,43,0,2537,2538,3,85,42,0,2538,2539,3,89,44,0,2539,2540,3,105,52,0,2540,582,1,0,0,0,2541,2542,3,119,59,0,2542,2543,3,113,56,0,2543,2544,3,107,53,0,2544,2545,3,107,53,0,2545,2546,3,125,62,0,2546,2547,3,115,57,0,2547,584,1,0,0,0,2548,2549,3,119,59,0,2549,2550,3,113,56,0,2550,2551,3,129,64,0,2551,586,1,0,0,0,2552,2553,3,119,59,0,2553,2554,3,113,56,0,2554,2555,3,129,64,0,2555,2556,3,121,60,0,2556,588,1,0,0,0,2557,2558,3,121,60,0,2558,2559,3,85,42,0,2559,2560,3,109,54,0,2560,2561,3,115,57,0,2561,2562,3,107,53,0,2562,2563,3,93,46,0,2563,590,1,0,0,0,2564,2565,3,121,60,0,2565,2566,3,85,42,0,2566,2567,3,127,63,0,2567,2568,3,93,46,0,2568,2569,3,115,57,0,2569,2570,3,113,56,0,2570,2571,3,101,50,0,2571,2572,3,111,55,0,2572,2573,3,123,61,0,2573,592,1,0,0,0,2574,2575,3,121,60,0,2575,2576,3,89,44,0,2576,2577,3,99,49,0,2577,2578,3,93,46,0,2578,2579,3,109,54,0,2579,2580,3,85,42,0,2580,594,1,0,0,0,2581,2582,3,121,60,0,2582,2583,3,93,46,0,2583,2584,3,89,44,0,2584,2585,3,113,56,0,2585,2586,3,111,55,0,2586,2587,3,91,45,0,2587,2588,3,121,60,0,2588,596,1,0,0,0,2589,2590,3,121,60,0,2590,2591,3,93,46,0,2591,2592,3,93,46,0,2592,2593,3,105,52,0,2593,598,1,0,0,0,2594,2595,3,121,60,0,2595,2596,3,93,46,0,2596,2597,3,107,53,0,2597,2598,3,93,46,0,2598,2599,3,89,44,0,2599,2600,3,123,61,0,2600,600,1,0,0,0,2601,2602,3,121,60,0,2602,2603,3,93,46,0,2603,2604,3,109,54,0,2604,2605,3,101,50,0,2605,602,1,0,0,0,2606,2607,3,121,60,0,2607,2608,3,93,46,0,2608,2609,3,123,61,0,2609,604,1,0,0,0,2610,2611,3,121,60,0,2611,2612,3,93,46,0,2612,2613,3,123,61,0,2613,2614,3,121,60,0,2614,606,1,0,0,0,2615,2616,3,121,60,0,2616,2617,3,99,49,0,2617,2618,3,113,56,0,2618,2619,3,129,64,0,2619,608,1,0,0,0,2620,2621,3,121,60,0,2621,2622,3,105,52,0,2622,2623,3,101,50,0,2623,2624,3,115,57,0,2624,610,1,0,0,0,2625,2626,3,121,60,0,2626,2627,3,93,46,0,2627,2628,3,117,58,0,2628,2629,3,125,62,0,2629,2630,3,93,46,0,2630,2631,3,111,55,0,2631,2632,3,89,44,0,2632,2633,3,93,46,0,2633,612,1,0,0,0,2634,2635,3,121,60,0,2635,2636,3,113,56,0,2636,2637,3,125,62,0,2637,2638,3,119,59,0,2638,2639,3,89,44,0,2639,2640,3,93,46,0,2640,614,1,0,0,0,2641,2642,3,121,60,0,2642,2643,3,123,61,0,2643,2644,3,85,42,0,2644,2645,3,119,59,0,2645,2646,3,123,61,0,2646,616,1,0,0,0,2647,2648,3,121,60,0,2648,2649,3,123,61,0,2649,2650,3,119,59,0,2650,2651,3,93,46,0,2651,2652,3,85,42,0,2652,2653,3,109,54,0,2653,618,1,0,0,0,2654,2655,3,121,60,0,2655,2656,3,123,61,0,2656,2657,3,119,59,0,2657,2658,3,125,62,0,2658,2659,3,89,44,0,2659,2660,3,123,61,0,2660,620,1,0,0,0,2661,2662,3,121,60,0,2662,2663,3,125,62,0,2663,2664,3,87,43,0,2664,2665,3,117,58,0,2665,2666,3,125,62,0,2666,2667,3,93,46,0,2667,2668,3,119,59,0,2668,2669,3,133,66,0,2669,622,1,0,0,0,2670,2671,3,121,60,0,2671,2672,3,125,62,0,2672,2673,3,87,43,0,2673,2674,3,121,60,0,2674,2675,3,93,46,0,2675,2676,3,123,61,0,2676,624,1,0,0,0,2677,2678,3,121,60,0,2678,2679,3,133,66,0,2679,2680,3,109,54,0,2680,2681,3,87,43,0,2681,2682,3,113,56,0,2682,2683,3,107,53,0,2683,2684,3,121,60,0,2684,626,1,0,0,0,2685,2686,3,121,60,0,2686,2687,3,133,66,0,2687,2688,3,109,54,0,2688,2689,3,109,54,0,2689,2690,3,93,46,0,2690,2691,3,123,61,0,2691,2692,3,119,59,0,2692,2693,3,101,50,0,2693,2694,3,89,44,0,2694,628,1,0,0,0,2695,2696,3,121,60,0,2696,2697,3,133,66,0,2697,2698,3,111,55,0,2698,2699,3,89,44,0,2699,630,1,0,0,0,2700,2701,3,121,60,0,2701,2702,3,133,66,0,2702,2703,3,121,60,0,2703,2704,3,123,61,0,2704,2705,3,93,46,0,2705,2706,3,109,54,0,2706,632,1,0,0,0,2707,2708,3,123,61,0,2708,2709,3,85,42,0,2709,2710,3,87,43,0,2710,2711,3,107,53,0,2711,2712,3,93,46,0,2712,634,1,0,0,0,2713,2714,3,123,61,0,2714,2715,3,85,42,0,2715,2716,3,87,43,0,2716,2717,3,107,53,0,2717,2718,3,93,46,0,2718,2719,3,121,60,0,2719,636,1,0,0,0,2720,2721,3,123,61,0,2721,2722,3,85,42,0,2722,2723,3,87,43,0,2723,2724,3,107,53,0,2724,2725,3,93,46,0,2725,2726,3,121,60,0,2726,2727,3,85,42,0,2727,2728,3,109,54,0,2728,2729,3,115,57,0,2729,2730,3,107,53,0,2730,2731,3,93,46,0,2731,638,1,0,0,0,2732,2733,3,123,61,0,2733,2734,3,85,42,0,2734,2735,3,87,43,0,2735,2736,3,107,53,0,2736,2737,3,93,46,0,2737,2738,3,121,60,0,2738,2739,3,123,61,0,2739,2740,3,113,56,0,2740,2741,3,119,59,0,2741,2742,3,93,46,0,2742,640,1,0,0,0,2743,2744,3,123,61,0,2744,2745,3,85,42,0,2745,2746,3,97,48,0,2746,2747,3,97,48,0,2747,2748,3,93,46,0,2748,2749,3,91,45,0,2749,642,1,0,0,0,2750,2751,3,123,61,0,2751,2752,3,93,46,0,2752,2753,3,109,54,0,2753,2754,3,115,57,0,2754,644,1,0,0,0,2755,2756,3,123,61,0,2756,2757,3,93,46,0,2757,2758,3,109,54,0,2758,2759,3,115,57,0,2759,2760,3,113,56,0,2760,2761,3,119,59,0,2761,2762,3,85,42,0,2762,2763,3,119,59,0,2763,2764,3,133,66,0,2764,646,1,0,0,0,2765,2766,3,123,61,0,2766,2767,3,99,49,0,2767,2768,3,93,46,0,2768,2769,3,111,55,0,2769,648,1,0,0,0,2770,2771,3,123,61,0,2771,2772,3,101,50,0,2772,2773,3,93,46,0,2773,2774,3,121,60,0,2774,650,1,0,0,0,2775,2776,3,123,61,0,2776,2777,3,113,56,0,2777,652,1,0,0,0,2778,2779,3,123,61,0,2779,2780,3,113,56,0,2780,2781,3,115,57,0,2781,2782,3,101,50,0,2782,2783,3,89,44,0,2783,654,1,0,0,0,2784,2785,3,123,61,0,2785,2786,3,119,59,0,2786,2787,3,85,42,0,2787,2788,3,111,55,0,2788,2789,3,121,60,0,2789,2790,3,85,42,0,2790,2791,3,89,44,0,2791,2792,3,123,61,0,2792,2793,3,101,50,0,2793,2794,3,113,56,0,2794,2795,3,111,55,0,2795,656,1,0,0,0,2796,2797,3,123,61,0,2797,2798,3,119,59,0,2798,2799,3,85,42,0,2799,2800,3,111,55,0,2800,2801,3,121,60,0,2801,2802,3,95,47,0,2802,2803,3,93,46,0,2803,2804,3,119,59,0,2804,658,1,0,0,0,2805,2806,3,123,61,0,2806,2807,3,119,59,0,2807,2808,3,101,50,0,2808,2809,3,97,48,0,2809,2810,3,97,48,0,2810,2811,3,93,46,0,2811,2812,3,119,59,0,2812,660,1,0,0,0,2813,2814,3,123,61,0,2814,2815,3,119,59,0,2815,2816,3,125,62,0,2816,2817,3,93,46,0,2817,662,1,0,0,0,2818,2819,3,123,61,0,2819,2820,3,125,62,0,2820,2821,3,115,57,0,2821,2822,3,107,53,0,2822,2823,3,93,46,0,2823,664,1,0,0,0,2824,2825,3,123,61,0,2825,2826,3,133,66,0,2826,2827,3,115,57,0,2827,2828,3,93,46,0,2828,666,1,0,0,0,2829,2830,3,125,62,0,2830,2831,3,111,55,0,2831,2832,3,87,43,0,2832,2833,3,113,56,0,2833,2834,3,125,62,0,2834,2835,3,111,55,0,2835,2836,3,91,45,0,2836,2837,3,93,46,0,2837,2838,3,91,45,0,2838,668,1,0,0,0,2839,2840,3,125,62,0,2840,2841,3,111,55,0,2841,2842,3,89,44,0,2842,2843,3,113,56,0,2843,2844,3,111,55,0,2844,2845,3,91,45,0,2845,2846,3,101,50,0,2846,2847,3,123,61,0,2847,2848,3,101,50,0,2848,2849,3,113,56,0,2849,2850,3,111,55,0,2850,2851,3,85,42,0,2851,2852,3,107,53,0,2852,670,1,0,0,0,2853,2854,3,125,62,0,2854,2855,3,111,55,0,2855,2856,3,101,50,0,2856,2857,3,113,56,0,2857,2858,3,111,55,0,2858,672,1,0,0,0,2859,2860,3,125,62,0,2860,2861,3,111,55,0,2861,2862,3,101,50,0,2862,2863,3,117,58,0,2863,2864,3,125,62,0,2864,2865,3,93,46,0,2865,674,1,0,0,0,2866,2867,3,125,62,0,2867,2868,3,111,55,0,2868,2869,3,105,52,0,2869,2870,3,111,55,0,2870,2871,3,113,56,0,2871,2872,3,129,64,0,2872,2873,3,111,55,0,2873,676,1,0,0,0,2874,2875,3,125,62,0,2875,2876,3,111,55,0,2876,2877,3,109,54,0,2877,2878,3,85,42,0,2878,2879,3,123,61,0,2879,2880,3,89,44,0,2880,2881,3,99,49,0,2881,2882,3,93,46,0,2882,2883,3,91,45,0,2883,678,1,0,0,0,2884,2885,3,125,62,0,2885,2886,3,115,57,0,2886,2887,3,91,45,0,2887,2888,3,85,42,0,2888,2889,3,123,61,0,2889,2890,3,93,46,0,2890,680,1,0,0,0,2891,2892,3,125,62,0,2892,2893,3,115,57,0,2893,2894,3,121,60,0,2894,2895,3,93,46,0,2895,2896,3,119,59,0,2896,2897,3,123,61,0,2897,682,1,0,0,0,2898,2899,3,125,62,0,2899,2900,3,121,60,0,2900,2901,3,93,46,0,2901,684,1,0,0,0,2902,2903,3,125,62,0,2903,2904,3,121,60,0,2904,2905,3,93,46,0,2905,2906,3,119,59,0,2906,686,1,0,0,0,2907,2908,3,125,62,0,2908,2909,3,121,60,0,2909,2910,3,101,50,0,2910,2911,3,111,55,0,2911,2912,3,97,48,0,2912,688,1,0,0,0,2913,2914,3,127,63,0,2914,2915,3,85,42,0,2915,2916,3,89,44,0,2916,2917,3,125,62,0,2917,2918,3,125,62,0,2918,2919,3,109,54,0,2919,690,1,0,0,0,2920,2921,3,127,63,0,2921,2922,3,85,42,0,2922,2923,3,107,53,0,2923,2924,3,125,62,0,2924,2925,3,93,46,0,2925,2926,3,121,60,0,2926,692,1,0,0,0,2927,2928,3,127,63,0,2928,2929,3,85,42,0,2929,2930,3,119,59,0,2930,2931,3,101,50,0,2931,2932,3,85,42,0,2932,2933,3,111,55,0,2933,2934,3,123,61,0,2934,694,1,0,0,0,2935,2936,3,127,63,0,2936,2937,3,101,50,0,2937,2938,3,93,46,0,2938,2939,3,129,64,0,2939,696,1,0,0,0,2940,2941,3,127,63,0,2941,2942,3,101,50,0,2942,2943,3,119,59,0,2943,2944,3,123,61,0,2944,2945,3,125,62,0,2945,2946,3,85,42,0,2946,2947,3,107,53,0,2947,698,1,0,0,0,2948,2949,3,129,64,0,2949,2950,3,99,49,0,2950,2951,3,93,46,0,2951,2952,3,111,55,0,2952,700,1,0,0,0,2953,2954,3,129,64,0,2954,2955,3,99,49,0,2955,2956,3,93,46,0,2956,2957,3,119,59,0,2957,2958,3,93,46,0,2958,702,1,0,0,0,2959,2960,3,129,64,0,2960,2961,3,101,50,0,2961,2962,3,111,55,0,2962,2963,3,91,45,0,2963,2964,3,113,56,0,2964,2965,3,129,64,0,2965,704,1,0,0,0,2966,2967,3,129,64,0,2967,2968,3,101,50,0,2968,2969,3,123,61,0,2969,2970,3,99,49,0,2970,706,1,0,0,0,2971,2972,3,129,64,0,2972,2973,3,101,50,0,2973,2974,3,123,61,0,2974,2975,3,99,49,0,2975,2976,3,113,56,0,2976,2977,3,125,62,0,2977,2978,3,123,61,0,2978,708,1,0,0,0,2979,2980,3,129,64,0,2980,2981,3,119,59,0,2981,2982,3,85,42,0,2982,2983,3,115,57,0,2983,2984,3,115,57,0,2984,2985,3,93,46,0,2985,2986,3,119,59,0,2986,710,1,0,0,0,2987,2988,3,131,65,0,2988,2989,3,113,56,0,2989,2990,3,119,59,0,2990,712,1,0,0,0,2991,2996,8,26,0,0,2992,2993,3,75,37,0,2993,2994,9,0,0,0,2994,2996,1,0,0,0,2995,2991,1,0,0,0,2995,2992,1,0,0,0,2996,714,1,0,0,0,2997,3002,8,27,0,0,2998,2999,3,75,37,0,2999,3e3,9,0,0,0,3e3,3002,1,0,0,0,3001,2997,1,0,0,0,3001,2998,1,0,0,0,3002,716,1,0,0,0,3003,3007,3,79,39,0,3004,3006,3,713,356,0,3005,3004,1,0,0,0,3006,3009,1,0,0,0,3007,3005,1,0,0,0,3007,3008,1,0,0,0,3008,3010,1,0,0,0,3009,3007,1,0,0,0,3010,3011,3,79,39,0,3011,718,1,0,0,0,3012,3016,3,77,38,0,3013,3015,3,715,357,0,3014,3013,1,0,0,0,3015,3018,1,0,0,0,3016,3014,1,0,0,0,3016,3017,1,0,0,0,3017,3019,1,0,0,0,3018,3016,1,0,0,0,3019,3020,3,77,38,0,3020,720,1,0,0,0,3021,3025,3,83,41,0,3022,3024,9,0,0,0,3023,3022,1,0,0,0,3024,3027,1,0,0,0,3025,3026,1,0,0,0,3025,3023,1,0,0,0,3026,3028,1,0,0,0,3027,3025,1,0,0,0,3028,3029,3,83,41,0,3029,3031,1,0,0,0,3030,3021,1,0,0,0,3031,3032,1,0,0,0,3032,3030,1,0,0,0,3032,3033,1,0,0,0,3033,3035,1,0,0,0,3034,3036,3,57,28,0,3035,3034,1,0,0,0,3035,3036,1,0,0,0,3036,722,1,0,0,0,3037,3041,3,717,358,0,3038,3041,3,719,359,0,3039,3041,3,721,360,0,3040,3037,1,0,0,0,3040,3038,1,0,0,0,3040,3039,1,0,0,0,3041,3052,1,0,0,0,3042,3053,3,121,60,0,3043,3053,3,125,62,0,3044,3053,3,133,66,0,3045,3053,3,103,51,0,3046,3050,3,115,57,0,3047,3051,3,123,61,0,3048,3051,3,87,43,0,3049,3051,3,127,63,0,3050,3047,1,0,0,0,3050,3048,1,0,0,0,3050,3049,1,0,0,0,3050,3051,1,0,0,0,3051,3053,1,0,0,0,3052,3042,1,0,0,0,3052,3043,1,0,0,0,3052,3044,1,0,0,0,3052,3045,1,0,0,0,3052,3046,1,0,0,0,3052,3053,1,0,0,0,3053,724,1,0,0,0,3054,3059,7,28,0,0,3055,3058,7,28,0,0,3056,3058,3,731,365,0,3057,3055,1,0,0,0,3057,3056,1,0,0,0,3058,3061,1,0,0,0,3059,3057,1,0,0,0,3059,3060,1,0,0,0,3060,726,1,0,0,0,3061,3059,1,0,0,0,3062,3063,5,92,0,0,3063,3068,9,0,0,0,3064,3065,5,96,0,0,3065,3068,5,96,0,0,3066,3068,8,29,0,0,3067,3062,1,0,0,0,3067,3064,1,0,0,0,3067,3066,1,0,0,0,3068,728,1,0,0,0,3069,3073,3,81,40,0,3070,3072,3,727,363,0,3071,3070,1,0,0,0,3072,3075,1,0,0,0,3073,3071,1,0,0,0,3073,3074,1,0,0,0,3074,3076,1,0,0,0,3075,3073,1,0,0,0,3076,3077,3,81,40,0,3077,730,1,0,0,0,3078,3079,2,48,57,0,3079,732,1,0,0,0,3080,3081,7,30,0,0,3081,734,1,0,0,0,3082,3083,5,48,0,0,3083,3085,3,131,65,0,3084,3086,3,733,366,0,3085,3084,1,0,0,0,3086,3087,1,0,0,0,3087,3085,1,0,0,0,3087,3088,1,0,0,0,3088,736,1,0,0,0,3089,3090,5,48,0,0,3090,3092,3,113,56,0,3091,3093,2,48,56,0,3092,3091,1,0,0,0,3093,3094,1,0,0,0,3094,3092,1,0,0,0,3094,3095,1,0,0,0,3095,738,1,0,0,0,3096,3097,5,48,0,0,3097,3099,3,87,43,0,3098,3100,2,48,49,0,3099,3098,1,0,0,0,3100,3101,1,0,0,0,3101,3099,1,0,0,0,3101,3102,1,0,0,0,3102,740,1,0,0,0,3103,3105,3,731,365,0,3104,3103,1,0,0,0,3105,3106,1,0,0,0,3106,3104,1,0,0,0,3106,3107,1,0,0,0,3107,742,1,0,0,0,3108,3113,3,741,370,0,3109,3113,3,735,367,0,3110,3113,3,737,368,0,3111,3113,3,739,369,0,3112,3108,1,0,0,0,3112,3109,1,0,0,0,3112,3110,1,0,0,0,3112,3111,1,0,0,0,3113,744,1,0,0,0,3114,3117,3,743,371,0,3115,3118,3,115,57,0,3116,3118,3,125,62,0,3117,3115,1,0,0,0,3117,3116,1,0,0,0,3117,3118,1,0,0,0,3118,3125,1,0,0,0,3119,3126,3,107,53,0,3120,3126,3,121,60,0,3121,3126,3,123,61,0,3122,3126,3,101,50,0,3123,3126,3,87,43,0,3124,3126,3,111,55,0,3125,3119,1,0,0,0,3125,3120,1,0,0,0,3125,3121,1,0,0,0,3125,3122,1,0,0,0,3125,3123,1,0,0,0,3125,3124,1,0,0,0,3125,3126,1,0,0,0,3126,746,1,0,0,0,3127,3130,3,93,46,0,3128,3131,3,31,15,0,3129,3131,3,33,16,0,3130,3128,1,0,0,0,3130,3129,1,0,0,0,3130,3131,1,0,0,0,3131,3132,1,0,0,0,3132,3133,3,741,370,0,3133,748,1,0,0,0,3134,3135,3,741,370,0,3135,3139,3,45,22,0,3136,3138,3,731,365,0,3137,3136,1,0,0,0,3138,3141,1,0,0,0,3139,3137,1,0,0,0,3139,3140,1,0,0,0,3140,3143,1,0,0,0,3141,3139,1,0,0,0,3142,3144,3,747,373,0,3143,3142,1,0,0,0,3143,3144,1,0,0,0,3144,3149,1,0,0,0,3145,3146,3,741,370,0,3146,3147,3,747,373,0,3147,3149,1,0,0,0,3148,3134,1,0,0,0,3148,3145,1,0,0,0,3149,3158,1,0,0,0,3150,3159,3,95,47,0,3151,3156,3,115,57,0,3152,3153,3,95,47,0,3153,3154,7,31,0,0,3154,3157,1,0,0,0,3155,3157,3,111,55,0,3156,3152,1,0,0,0,3156,3155,1,0,0,0,3156,3157,1,0,0,0,3157,3159,1,0,0,0,3158,3150,1,0,0,0,3158,3151,1,0,0,0,3158,3159,1,0,0,0,3159,750,1,0,0,0,3160,3161,3,131,65,0,3161,3163,3,79,39,0,3162,3164,3,733,366,0,3163,3162,1,0,0,0,3164,3165,1,0,0,0,3165,3163,1,0,0,0,3165,3166,1,0,0,0,3166,3167,1,0,0,0,3167,3168,3,79,39,0,3168,752,1,0,0,0,3169,3170,5,47,0,0,3170,3171,5,42,0,0,3171,3175,1,0,0,0,3172,3174,9,0,0,0,3173,3172,1,0,0,0,3174,3177,1,0,0,0,3175,3176,1,0,0,0,3175,3173,1,0,0,0,3176,3178,1,0,0,0,3177,3175,1,0,0,0,3178,3179,5,42,0,0,3179,3180,5,47,0,0,3180,754,1,0,0,0,3181,3182,5,45,0,0,3182,3183,5,45,0,0,3183,3187,1,0,0,0,3184,3186,8,32,0,0,3185,3184,1,0,0,0,3186,3189,1,0,0,0,3187,3185,1,0,0,0,3187,3188,1,0,0,0,3188,3195,1,0,0,0,3189,3187,1,0,0,0,3190,3192,5,13,0,0,3191,3193,5,10,0,0,3192,3191,1,0,0,0,3192,3193,1,0,0,0,3193,3196,1,0,0,0,3194,3196,7,33,0,0,3195,3190,1,0,0,0,3195,3194,1,0,0,0,3196,756,1,0,0,0,3197,3198,7,34,0,0,3198,3199,1,0,0,0,3199,3200,6,378,0,0,3200,758,1,0,0,0,3201,3204,3,753,376,0,3202,3204,3,755,377,0,3203,3201,1,0,0,0,3203,3202,1,0,0,0,3204,3205,1,0,0,0,3205,3206,6,379,1,0,3206,760,1,0,0,0,34,0,2995,3001,3007,3016,3025,3032,3035,3040,3050,3052,3057,3059,3067,3073,3087,3094,3101,3106,3112,3117,3125,3130,3139,3143,3148,3156,3158,3165,3175,3187,3192,3195,3203,2,0,1,0,6,0,0]}static get _ATN(){return e.__ATN||(e.__ATN=(new Be).deserialize(e._serializedATN)),e.__ATN}static{this.vocabulary=new f(e.literalNames,e.symbolicNames,[])}get vocabulary(){return e.vocabulary}static{this.decisionsToDFA=e._ATN.decisionToState.map(((e,t)=>new it(e,t)))}},rs=class e extends Gt{static{Si(this,"YQLParser")}static{this.EQUALS=1}static{this.EQUALS2=2}static{this.NOT_EQUALS=3}static{this.NOT_EQUALS2=4}static{this.LESS=5}static{this.LESS_OR_EQ=6}static{this.GREATER=7}static{this.GREATER_OR_EQ=8}static{this.SHIFT_LEFT=9}static{this.ROT_LEFT=10}static{this.AMPERSAND=11}static{this.PIPE=12}static{this.DOUBLE_PIPE=13}static{this.STRUCT_OPEN=14}static{this.STRUCT_CLOSE=15}static{this.PLUS=16}static{this.MINUS=17}static{this.TILDA=18}static{this.ASTERISK=19}static{this.SLASH=20}static{this.PERCENT=21}static{this.SEMICOLON=22}static{this.DOT=23}static{this.COMMA=24}static{this.LPAREN=25}static{this.RPAREN=26}static{this.QUESTION=27}static{this.COLON=28}static{this.COMMAT=29}static{this.DOLLAR=30}static{this.LBRACE_CURLY=31}static{this.RBRACE_CURLY=32}static{this.CARET=33}static{this.NAMESPACE=34}static{this.ARROW=35}static{this.RBRACE_SQUARE=36}static{this.LBRACE_SQUARE=37}static{this.ABORT=38}static{this.ACTION=39}static{this.ADD=40}static{this.AFTER=41}static{this.ALL=42}static{this.ALTER=43}static{this.ANALYZE=44}static{this.AND=45}static{this.ANSI=46}static{this.ANY=47}static{this.ARRAY=48}static{this.AS=49}static{this.ASC=50}static{this.ASSUME=51}static{this.ASYMMETRIC=52}static{this.ASYNC=53}static{this.AT=54}static{this.ATTACH=55}static{this.ATTRIBUTES=56}static{this.AUTOINCREMENT=57}static{this.AUTOMAP=58}static{this.BACKUP=59}static{this.BATCH=60}static{this.COLLECTION=61}static{this.BEFORE=62}static{this.BEGIN=63}static{this.BERNOULLI=64}static{this.BETWEEN=65}static{this.BITCAST=66}static{this.BY=67}static{this.CALLABLE=68}static{this.CASCADE=69}static{this.CASE=70}static{this.CAST=71}static{this.CHANGEFEED=72}static{this.CHECK=73}static{this.CLASSIFIER=74}static{this.COLLATE=75}static{this.COLUMN=76}static{this.COLUMNS=77}static{this.COMMIT=78}static{this.COMPACT=79}static{this.CONDITIONAL=80}static{this.CONFLICT=81}static{this.CONNECT=82}static{this.CONSTRAINT=83}static{this.CONSUMER=84}static{this.COVER=85}static{this.CREATE=86}static{this.CROSS=87}static{this.CUBE=88}static{this.CURRENT=89}static{this.CURRENT_DATE=90}static{this.CURRENT_TIME=91}static{this.CURRENT_TIMESTAMP=92}static{this.DATA=93}static{this.DATABASE=94}static{this.DECIMAL=95}static{this.DECLARE=96}static{this.DEFAULT=97}static{this.DEFERRABLE=98}static{this.DEFERRED=99}static{this.DEFINE=100}static{this.DELETE=101}static{this.DESC=102}static{this.DESCRIBE=103}static{this.DETACH=104}static{this.DICT=105}static{this.DIRECTORY=106}static{this.DISABLE=107}static{this.DISCARD=108}static{this.DISTINCT=109}static{this.DO=110}static{this.DROP=111}static{this.EACH=112}static{this.ELSE=113}static{this.EMPTY=114}static{this.EMPTY_ACTION=115}static{this.ENCRYPTED=116}static{this.END=117}static{this.ENUM=118}static{this.ERASE=119}static{this.ERROR=120}static{this.ESCAPE=121}static{this.EVALUATE=122}static{this.EXCEPT=123}static{this.EXCLUDE=124}static{this.EXCLUSION=125}static{this.EXCLUSIVE=126}static{this.EXISTS=127}static{this.EXPLAIN=128}static{this.EXPORT=129}static{this.EXTERNAL=130}static{this.FAIL=131}static{this.FALSE=132}static{this.FAMILY=133}static{this.FILTER=134}static{this.FIRST=135}static{this.FLATTEN=136}static{this.FLOW=137}static{this.FOLLOWING=138}static{this.FOR=139}static{this.FOREIGN=140}static{this.FROM=141}static{this.FULL=142}static{this.FUNCTION=143}static{this.GLOB=144}static{this.GLOBAL=145}static{this.GRANT=146}static{this.GROUP=147}static{this.GROUPING=148}static{this.GROUPS=149}static{this.HASH=150}static{this.HAVING=151}static{this.HOP=152}static{this.IF=153}static{this.IGNORE=154}static{this.ILIKE=155}static{this.IMMEDIATE=156}static{this.IMPORT=157}static{this.IN=158}static{this.INCREMENT=159}static{this.INCREMENTAL=160}static{this.INDEX=161}static{this.INDEXED=162}static{this.INHERITS=163}static{this.INITIAL=164}static{this.INITIALLY=165}static{this.INNER=166}static{this.INSERT=167}static{this.INSTEAD=168}static{this.INTERSECT=169}static{this.INTO=170}static{this.IS=171}static{this.ISNULL=172}static{this.JOIN=173}static{this.JSON_EXISTS=174}static{this.JSON_QUERY=175}static{this.JSON_VALUE=176}static{this.KEY=177}static{this.LAST=178}static{this.LEFT=179}static{this.LEGACY=180}static{this.LIKE=181}static{this.LIMIT=182}static{this.LIST=183}static{this.LOCAL=184}static{this.LOGIN=185}static{this.MANAGE=186}static{this.MATCH=187}static{this.MATCHES=188}static{this.MATCH_RECOGNIZE=189}static{this.MEASURES=190}static{this.MICROSECONDS=191}static{this.MILLISECONDS=192}static{this.MODIFY=193}static{this.NANOSECONDS=194}static{this.NATURAL=195}static{this.NEXT=196}static{this.NO=197}static{this.NOLOGIN=198}static{this.NOT=199}static{this.NOTNULL=200}static{this.NULL=201}static{this.NULLS=202}static{this.OBJECT=203}static{this.OF=204}static{this.OFFSET=205}static{this.OMIT=206}static{this.ON=207}static{this.ONE=208}static{this.ONLY=209}static{this.OPTION=210}static{this.OPTIONAL=211}static{this.OR=212}static{this.ORDER=213}static{this.OTHERS=214}static{this.OUTER=215}static{this.OVER=216}static{this.PARALLEL=217}static{this.PARTITION=218}static{this.PASSING=219}static{this.PASSWORD=220}static{this.PAST=221}static{this.PATTERN=222}static{this.PER=223}static{this.PERMUTE=224}static{this.PLAN=225}static{this.POOL=226}static{this.PRAGMA=227}static{this.PRECEDING=228}static{this.PRESORT=229}static{this.PRIMARY=230}static{this.PRIVILEGES=231}static{this.PROCESS=232}static{this.QUERY=233}static{this.QUEUE=234}static{this.RAISE=235}static{this.RANGE=236}static{this.REDUCE=237}static{this.REFERENCES=238}static{this.REGEXP=239}static{this.REINDEX=240}static{this.RELEASE=241}static{this.REMOVE=242}static{this.RENAME=243}static{this.REPEATABLE=244}static{this.REPLACE=245}static{this.REPLICATION=246}static{this.RESET=247}static{this.RESOURCE=248}static{this.RESPECT=249}static{this.RESTART=250}static{this.RESTORE=251}static{this.RESTRICT=252}static{this.RESULT=253}static{this.RETURN=254}static{this.RETURNING=255}static{this.REVERT=256}static{this.REVOKE=257}static{this.RIGHT=258}static{this.RLIKE=259}static{this.ROLLBACK=260}static{this.ROLLUP=261}static{this.ROW=262}static{this.ROWS=263}static{this.SAMPLE=264}static{this.SAVEPOINT=265}static{this.SCHEMA=266}static{this.SECONDS=267}static{this.SEEK=268}static{this.SELECT=269}static{this.SEMI=270}static{this.SET=271}static{this.SETS=272}static{this.SHOW=273}static{this.TSKIP=274}static{this.SEQUENCE=275}static{this.SOURCE=276}static{this.START=277}static{this.STREAM=278}static{this.STRUCT=279}static{this.SUBQUERY=280}static{this.SUBSET=281}static{this.SYMBOLS=282}static{this.SYMMETRIC=283}static{this.SYNC=284}static{this.SYSTEM=285}static{this.TABLE=286}static{this.TABLES=287}static{this.TABLESAMPLE=288}static{this.TABLESTORE=289}static{this.TAGGED=290}static{this.TEMP=291}static{this.TEMPORARY=292}static{this.THEN=293}static{this.TIES=294}static{this.TO=295}static{this.TOPIC=296}static{this.TRANSACTION=297}static{this.TRANSFER=298}static{this.TRIGGER=299}static{this.TRUE=300}static{this.TUPLE=301}static{this.TYPE=302}static{this.UNBOUNDED=303}static{this.UNCONDITIONAL=304}static{this.UNION=305}static{this.UNIQUE=306}static{this.UNKNOWN=307}static{this.UNMATCHED=308}static{this.UPDATE=309}static{this.UPSERT=310}static{this.USE=311}static{this.USER=312}static{this.USING=313}static{this.VACUUM=314}static{this.VALUES=315}static{this.VARIANT=316}static{this.VIEW=317}static{this.VIRTUAL=318}static{this.WHEN=319}static{this.WHERE=320}static{this.WINDOW=321}static{this.WITH=322}static{this.WITHOUT=323}static{this.WRAPPER=324}static{this.XOR=325}static{this.STRING_VALUE=326}static{this.ID_PLAIN=327}static{this.ID_QUOTED=328}static{this.DIGITS=329}static{this.INTEGER_VALUE=330}static{this.REAL=331}static{this.BLOB=332}static{this.WS=333}static{this.COMMENT=334}static{this.RULE_sql_query=0}static{this.RULE_sql_stmt_list=1}static{this.RULE_ansi_sql_stmt_list=2}static{this.RULE_lambda_body=3}static{this.RULE_lambda_stmt=4}static{this.RULE_sql_stmt=5}static{this.RULE_sql_stmt_core=6}static{this.RULE_expr=7}static{this.RULE_or_subexpr=8}static{this.RULE_and_subexpr=9}static{this.RULE_xor_subexpr=10}static{this.RULE_distinct_from_op=11}static{this.RULE_cond_expr=12}static{this.RULE_match_op=13}static{this.RULE_eq_subexpr=14}static{this.RULE_shift_right=15}static{this.RULE_rot_right=16}static{this.RULE_double_question=17}static{this.RULE_neq_subexpr=18}static{this.RULE_bit_subexpr=19}static{this.RULE_add_subexpr=20}static{this.RULE_mul_subexpr=21}static{this.RULE_con_subexpr=22}static{this.RULE_unary_op=23}static{this.RULE_unary_subexpr_suffix=24}static{this.RULE_unary_casual_subexpr=25}static{this.RULE_in_unary_casual_subexpr=26}static{this.RULE_unary_subexpr=27}static{this.RULE_in_unary_subexpr=28}static{this.RULE_list_literal=29}static{this.RULE_expr_dict_list=30}static{this.RULE_dict_literal=31}static{this.RULE_expr_struct_list=32}static{this.RULE_struct_literal=33}static{this.RULE_atom_expr=34}static{this.RULE_in_atom_expr=35}static{this.RULE_cast_expr=36}static{this.RULE_bitcast_expr=37}static{this.RULE_exists_expr=38}static{this.RULE_case_expr=39}static{this.RULE_lambda=40}static{this.RULE_in_expr=41}static{this.RULE_json_api_expr=42}static{this.RULE_jsonpath_spec=43}static{this.RULE_json_variable_name=44}static{this.RULE_json_variable=45}static{this.RULE_json_variables=46}static{this.RULE_json_common_args=47}static{this.RULE_json_case_handler=48}static{this.RULE_json_value=49}static{this.RULE_json_exists_handler=50}static{this.RULE_json_exists=51}static{this.RULE_json_query_wrapper=52}static{this.RULE_json_query_handler=53}static{this.RULE_json_query=54}static{this.RULE_smart_parenthesis=55}static{this.RULE_expr_list=56}static{this.RULE_pure_column_list=57}static{this.RULE_pure_column_or_named=58}static{this.RULE_pure_column_or_named_list=59}static{this.RULE_column_name=60}static{this.RULE_without_column_name=61}static{this.RULE_column_list=62}static{this.RULE_without_column_list=63}static{this.RULE_named_expr=64}static{this.RULE_named_expr_list=65}static{this.RULE_invoke_expr=66}static{this.RULE_invoke_expr_tail=67}static{this.RULE_using_call_expr=68}static{this.RULE_key_expr=69}static{this.RULE_when_expr=70}static{this.RULE_literal_value=71}static{this.RULE_bind_parameter=72}static{this.RULE_opt_bind_parameter=73}static{this.RULE_bind_parameter_list=74}static{this.RULE_named_bind_parameter=75}static{this.RULE_named_bind_parameter_list=76}static{this.RULE_signed_number=77}static{this.RULE_type_name_simple=78}static{this.RULE_integer_or_bind=79}static{this.RULE_type_name_tag=80}static{this.RULE_struct_arg=81}static{this.RULE_struct_arg_positional=82}static{this.RULE_variant_arg=83}static{this.RULE_callable_arg=84}static{this.RULE_callable_arg_list=85}static{this.RULE_type_name_decimal=86}static{this.RULE_type_name_optional=87}static{this.RULE_type_name_tuple=88}static{this.RULE_type_name_struct=89}static{this.RULE_type_name_variant=90}static{this.RULE_type_name_list=91}static{this.RULE_type_name_stream=92}static{this.RULE_type_name_flow=93}static{this.RULE_type_name_dict=94}static{this.RULE_type_name_set=95}static{this.RULE_type_name_enum=96}static{this.RULE_type_name_resource=97}static{this.RULE_type_name_tagged=98}static{this.RULE_type_name_callable=99}static{this.RULE_type_name_composite=100}static{this.RULE_type_name=101}static{this.RULE_type_name_or_bind=102}static{this.RULE_value_constructor_literal=103}static{this.RULE_value_constructor=104}static{this.RULE_declare_stmt=105}static{this.RULE_module_path=106}static{this.RULE_import_stmt=107}static{this.RULE_export_stmt=108}static{this.RULE_call_action=109}static{this.RULE_inline_action=110}static{this.RULE_do_stmt=111}static{this.RULE_pragma_stmt=112}static{this.RULE_pragma_value=113}static{this.RULE_sort_specification=114}static{this.RULE_sort_specification_list=115}static{this.RULE_select_stmt=116}static{this.RULE_select_unparenthesized_stmt=117}static{this.RULE_select_kind_parenthesis=118}static{this.RULE_select_op=119}static{this.RULE_select_kind_partial=120}static{this.RULE_select_kind=121}static{this.RULE_process_core=122}static{this.RULE_external_call_param=123}static{this.RULE_external_call_settings=124}static{this.RULE_reduce_core=125}static{this.RULE_opt_set_quantifier=126}static{this.RULE_select_core=127}static{this.RULE_row_pattern_recognition_clause=128}static{this.RULE_row_pattern_rows_per_match=129}static{this.RULE_row_pattern_empty_match_handling=130}static{this.RULE_row_pattern_measures=131}static{this.RULE_row_pattern_measure_list=132}static{this.RULE_row_pattern_measure_definition=133}static{this.RULE_row_pattern_common_syntax=134}static{this.RULE_row_pattern_skip_to=135}static{this.RULE_row_pattern_skip_to_variable_name=136}static{this.RULE_row_pattern_initial_or_seek=137}static{this.RULE_row_pattern=138}static{this.RULE_row_pattern_term=139}static{this.RULE_row_pattern_factor=140}static{this.RULE_row_pattern_quantifier=141}static{this.RULE_row_pattern_primary=142}static{this.RULE_row_pattern_primary_variable_name=143}static{this.RULE_row_pattern_permute=144}static{this.RULE_row_pattern_subset_clause=145}static{this.RULE_row_pattern_subset_list=146}static{this.RULE_row_pattern_subset_item=147}static{this.RULE_row_pattern_subset_item_variable_name=148}static{this.RULE_row_pattern_subset_rhs=149}static{this.RULE_row_pattern_subset_rhs_variable_name=150}static{this.RULE_row_pattern_definition_list=151}static{this.RULE_row_pattern_definition=152}static{this.RULE_row_pattern_definition_variable_name=153}static{this.RULE_row_pattern_definition_search_condition=154}static{this.RULE_search_condition=155}static{this.RULE_row_pattern_variable_name=156}static{this.RULE_order_by_clause=157}static{this.RULE_ext_order_by_clause=158}static{this.RULE_group_by_clause=159}static{this.RULE_grouping_element_list=160}static{this.RULE_grouping_element=161}static{this.RULE_ordinary_grouping_set=162}static{this.RULE_ordinary_grouping_set_list=163}static{this.RULE_rollup_list=164}static{this.RULE_cube_list=165}static{this.RULE_grouping_sets_specification=166}static{this.RULE_hopping_window_specification=167}static{this.RULE_result_column=168}static{this.RULE_join_source=169}static{this.RULE_named_column=170}static{this.RULE_flatten_by_arg=171}static{this.RULE_flatten_source=172}static{this.RULE_named_single_source=173}static{this.RULE_single_source=174}static{this.RULE_sample_clause=175}static{this.RULE_tablesample_clause=176}static{this.RULE_sampling_mode=177}static{this.RULE_repeatable_clause=178}static{this.RULE_join_op=179}static{this.RULE_join_constraint=180}static{this.RULE_returning_columns_list=181}static{this.RULE_into_table_stmt=182}static{this.RULE_into_table_stmt_yq=183}static{this.RULE_into_values_source=184}static{this.RULE_values_stmt=185}static{this.RULE_values_source=186}static{this.RULE_values_source_row_list=187}static{this.RULE_values_source_row=188}static{this.RULE_simple_values_source=189}static{this.RULE_create_external_data_source_stmt=190}static{this.RULE_alter_external_data_source_stmt=191}static{this.RULE_alter_external_data_source_action=192}static{this.RULE_drop_external_data_source_stmt=193}static{this.RULE_create_view_stmt=194}static{this.RULE_drop_view_stmt=195}static{this.RULE_upsert_object_stmt=196}static{this.RULE_create_object_stmt=197}static{this.RULE_create_object_features=198}static{this.RULE_alter_object_stmt=199}static{this.RULE_alter_object_features=200}static{this.RULE_drop_object_stmt=201}static{this.RULE_drop_object_features=202}static{this.RULE_object_feature_value=203}static{this.RULE_object_feature_kv=204}static{this.RULE_object_feature_flag=205}static{this.RULE_object_feature=206}static{this.RULE_object_features=207}static{this.RULE_object_type_ref=208}static{this.RULE_create_table_stmt=209}static{this.RULE_create_table_entry=210}static{this.RULE_create_backup_collection_stmt=211}static{this.RULE_alter_backup_collection_stmt=212}static{this.RULE_drop_backup_collection_stmt=213}static{this.RULE_create_backup_collection_entries=214}static{this.RULE_create_backup_collection_entries_many=215}static{this.RULE_table_list=216}static{this.RULE_alter_backup_collection_actions=217}static{this.RULE_alter_backup_collection_action=218}static{this.RULE_alter_backup_collection_entries=219}static{this.RULE_alter_backup_collection_entry=220}static{this.RULE_backup_collection=221}static{this.RULE_backup_collection_settings=222}static{this.RULE_backup_collection_settings_entry=223}static{this.RULE_backup_stmt=224}static{this.RULE_restore_stmt=225}static{this.RULE_table_inherits=226}static{this.RULE_table_partition_by=227}static{this.RULE_with_table_settings=228}static{this.RULE_table_tablestore=229}static{this.RULE_table_settings_entry=230}static{this.RULE_table_as_source=231}static{this.RULE_alter_table_stmt=232}static{this.RULE_alter_table_action=233}static{this.RULE_alter_external_table_stmt=234}static{this.RULE_alter_external_table_action=235}static{this.RULE_alter_table_store_stmt=236}static{this.RULE_alter_table_store_action=237}static{this.RULE_alter_table_add_column=238}static{this.RULE_alter_table_drop_column=239}static{this.RULE_alter_table_alter_column=240}static{this.RULE_alter_table_alter_column_drop_not_null=241}static{this.RULE_alter_table_add_column_family=242}static{this.RULE_alter_table_alter_column_family=243}static{this.RULE_alter_table_set_table_setting_uncompat=244}static{this.RULE_alter_table_set_table_setting_compat=245}static{this.RULE_alter_table_reset_table_setting=246}static{this.RULE_alter_table_add_index=247}static{this.RULE_alter_table_drop_index=248}static{this.RULE_alter_table_rename_to=249}static{this.RULE_alter_table_rename_index_to=250}static{this.RULE_alter_table_add_changefeed=251}static{this.RULE_alter_table_alter_changefeed=252}static{this.RULE_alter_table_drop_changefeed=253}static{this.RULE_alter_table_alter_index=254}static{this.RULE_column_schema=255}static{this.RULE_family_relation=256}static{this.RULE_opt_column_constraints=257}static{this.RULE_column_order_by_specification=258}static{this.RULE_table_constraint=259}static{this.RULE_table_index=260}static{this.RULE_table_index_type=261}static{this.RULE_global_index=262}static{this.RULE_local_index=263}static{this.RULE_index_subtype=264}static{this.RULE_with_index_settings=265}static{this.RULE_index_setting_entry=266}static{this.RULE_index_setting_value=267}static{this.RULE_changefeed=268}static{this.RULE_changefeed_settings=269}static{this.RULE_changefeed_settings_entry=270}static{this.RULE_changefeed_setting_value=271}static{this.RULE_changefeed_alter_settings=272}static{this.RULE_alter_table_setting_entry=273}static{this.RULE_table_setting_value=274}static{this.RULE_ttl_tier_list=275}static{this.RULE_ttl_tier_action=276}static{this.RULE_family_entry=277}static{this.RULE_family_settings=278}static{this.RULE_family_settings_entry=279}static{this.RULE_family_setting_value=280}static{this.RULE_split_boundaries=281}static{this.RULE_literal_value_list=282}static{this.RULE_alter_table_alter_index_action=283}static{this.RULE_drop_table_stmt=284}static{this.RULE_create_user_stmt=285}static{this.RULE_alter_user_stmt=286}static{this.RULE_create_group_stmt=287}static{this.RULE_alter_group_stmt=288}static{this.RULE_drop_role_stmt=289}static{this.RULE_role_name=290}static{this.RULE_user_option=291}static{this.RULE_authentication_option=292}static{this.RULE_password_option=293}static{this.RULE_hash_option=294}static{this.RULE_login_option=295}static{this.RULE_grant_permissions_stmt=296}static{this.RULE_revoke_permissions_stmt=297}static{this.RULE_permission_id=298}static{this.RULE_permission_name=299}static{this.RULE_permission_name_target=300}static{this.RULE_create_resource_pool_stmt=301}static{this.RULE_alter_resource_pool_stmt=302}static{this.RULE_alter_resource_pool_action=303}static{this.RULE_drop_resource_pool_stmt=304}static{this.RULE_create_resource_pool_classifier_stmt=305}static{this.RULE_alter_resource_pool_classifier_stmt=306}static{this.RULE_alter_resource_pool_classifier_action=307}static{this.RULE_drop_resource_pool_classifier_stmt=308}static{this.RULE_create_replication_stmt=309}static{this.RULE_replication_target=310}static{this.RULE_replication_settings=311}static{this.RULE_replication_settings_entry=312}static{this.RULE_alter_replication_stmt=313}static{this.RULE_alter_replication_action=314}static{this.RULE_alter_replication_set_setting=315}static{this.RULE_drop_replication_stmt=316}static{this.RULE_lambda_or_parameter=317}static{this.RULE_create_transfer_stmt=318}static{this.RULE_transfer_settings=319}static{this.RULE_transfer_settings_entry=320}static{this.RULE_alter_transfer_stmt=321}static{this.RULE_alter_transfer_action=322}static{this.RULE_alter_transfer_set_setting=323}static{this.RULE_alter_transfer_set_using=324}static{this.RULE_drop_transfer_stmt=325}static{this.RULE_action_or_subquery_args=326}static{this.RULE_define_action_or_subquery_stmt=327}static{this.RULE_define_action_or_subquery_body=328}static{this.RULE_if_stmt=329}static{this.RULE_for_stmt=330}static{this.RULE_table_ref=331}static{this.RULE_table_key=332}static{this.RULE_table_arg=333}static{this.RULE_table_hints=334}static{this.RULE_table_hint=335}static{this.RULE_object_ref=336}static{this.RULE_simple_table_ref_core=337}static{this.RULE_simple_table_ref=338}static{this.RULE_into_simple_table_ref=339}static{this.RULE_delete_stmt=340}static{this.RULE_update_stmt=341}static{this.RULE_set_clause_choice=342}static{this.RULE_set_clause_list=343}static{this.RULE_set_clause=344}static{this.RULE_set_target=345}static{this.RULE_multiple_column_assignment=346}static{this.RULE_set_target_list=347}static{this.RULE_create_topic_stmt=348}static{this.RULE_create_topic_entries=349}static{this.RULE_create_topic_entry=350}static{this.RULE_with_topic_settings=351}static{this.RULE_alter_topic_stmt=352}static{this.RULE_alter_topic_action=353}static{this.RULE_alter_topic_add_consumer=354}static{this.RULE_topic_create_consumer_entry=355}static{this.RULE_alter_topic_alter_consumer=356}static{this.RULE_alter_topic_alter_consumer_entry=357}static{this.RULE_alter_topic_drop_consumer=358}static{this.RULE_topic_alter_consumer_set=359}static{this.RULE_topic_alter_consumer_reset=360}static{this.RULE_alter_topic_set_settings=361}static{this.RULE_alter_topic_reset_settings=362}static{this.RULE_drop_topic_stmt=363}static{this.RULE_topic_settings=364}static{this.RULE_topic_settings_entry=365}static{this.RULE_topic_setting_value=366}static{this.RULE_topic_consumer_with_settings=367}static{this.RULE_topic_consumer_settings=368}static{this.RULE_topic_consumer_settings_entry=369}static{this.RULE_topic_consumer_setting_value=370}static{this.RULE_topic_ref=371}static{this.RULE_topic_consumer_ref=372}static{this.RULE_null_treatment=373}static{this.RULE_filter_clause=374}static{this.RULE_window_name_or_specification=375}static{this.RULE_window_name=376}static{this.RULE_window_clause=377}static{this.RULE_window_definition_list=378}static{this.RULE_window_definition=379}static{this.RULE_new_window_name=380}static{this.RULE_window_specification=381}static{this.RULE_window_specification_details=382}static{this.RULE_existing_window_name=383}static{this.RULE_window_partition_clause=384}static{this.RULE_window_order_clause=385}static{this.RULE_window_frame_clause=386}static{this.RULE_window_frame_units=387}static{this.RULE_window_frame_extent=388}static{this.RULE_window_frame_between=389}static{this.RULE_window_frame_bound=390}static{this.RULE_window_frame_exclusion=391}static{this.RULE_use_stmt=392}static{this.RULE_subselect_stmt=393}static{this.RULE_named_nodes_stmt=394}static{this.RULE_commit_stmt=395}static{this.RULE_rollback_stmt=396}static{this.RULE_analyze_table=397}static{this.RULE_analyze_table_list=398}static{this.RULE_analyze_stmt=399}static{this.RULE_alter_sequence_stmt=400}static{this.RULE_alter_sequence_action=401}static{this.RULE_identifier=402}static{this.RULE_id=403}static{this.RULE_id_schema=404}static{this.RULE_id_expr=405}static{this.RULE_id_expr_in=406}static{this.RULE_id_window=407}static{this.RULE_id_table=408}static{this.RULE_id_without=409}static{this.RULE_id_hint=410}static{this.RULE_id_as_compat=411}static{this.RULE_an_id=412}static{this.RULE_an_id_or_type=413}static{this.RULE_an_id_schema=414}static{this.RULE_an_id_expr=415}static{this.RULE_an_id_expr_in=416}static{this.RULE_an_id_window=417}static{this.RULE_an_id_table=418}static{this.RULE_an_id_without=419}static{this.RULE_an_id_hint=420}static{this.RULE_an_id_pure=421}static{this.RULE_an_id_as_compat=422}static{this.RULE_view_name=423}static{this.RULE_opt_id_prefix=424}static{this.RULE_cluster_expr=425}static{this.RULE_id_or_type=426}static{this.RULE_opt_id_prefix_or_type=427}static{this.RULE_id_or_at=428}static{this.RULE_id_table_or_type=429}static{this.RULE_id_table_or_at=430}static{this.RULE_keyword=431}static{this.RULE_keyword_expr_uncompat=432}static{this.RULE_keyword_table_uncompat=433}static{this.RULE_keyword_select_uncompat=434}static{this.RULE_keyword_alter_uncompat=435}static{this.RULE_keyword_in_uncompat=436}static{this.RULE_keyword_window_uncompat=437}static{this.RULE_keyword_hint_uncompat=438}static{this.RULE_keyword_as_compat=439}static{this.RULE_keyword_compat=440}static{this.RULE_type_id=441}static{this.RULE_bool_value=442}static{this.RULE_real=443}static{this.RULE_integer=444}static{this.RULE_sql_query_yq=445}static{this.RULE_sql_stmt_list_yq=446}static{this.RULE_sql_stmt_yq=447}static{this.RULE_sql_stmt_core_yq=448}static{this.RULE_replication_name=449}static{this.RULE_where_expr=450}static{this.literalNames=[null,"'='","'=='","'!='","'<>'","'<'","'<='","'>'","'>='","'<<'","'|<<'","'&'","'|'","'||'","'<|'","'|>'","'+'","'-'","'~'","'*'","'/'","'%'","';'","'.'","','","'('","')'","'?'","':'","'@'","'$'","'{'","'}'","'^'","'::'","'->'","']'","'['"]}static{this.symbolicNames=[null,"EQUALS","EQUALS2","NOT_EQUALS","NOT_EQUALS2","LESS","LESS_OR_EQ","GREATER","GREATER_OR_EQ","SHIFT_LEFT","ROT_LEFT","AMPERSAND","PIPE","DOUBLE_PIPE","STRUCT_OPEN","STRUCT_CLOSE","PLUS","MINUS","TILDA","ASTERISK","SLASH","PERCENT","SEMICOLON","DOT","COMMA","LPAREN","RPAREN","QUESTION","COLON","COMMAT","DOLLAR","LBRACE_CURLY","RBRACE_CURLY","CARET","NAMESPACE","ARROW","RBRACE_SQUARE","LBRACE_SQUARE","ABORT","ACTION","ADD","AFTER","ALL","ALTER","ANALYZE","AND","ANSI","ANY","ARRAY","AS","ASC","ASSUME","ASYMMETRIC","ASYNC","AT","ATTACH","ATTRIBUTES","AUTOINCREMENT","AUTOMAP","BACKUP","BATCH","COLLECTION","BEFORE","BEGIN","BERNOULLI","BETWEEN","BITCAST","BY","CALLABLE","CASCADE","CASE","CAST","CHANGEFEED","CHECK","CLASSIFIER","COLLATE","COLUMN","COLUMNS","COMMIT","COMPACT","CONDITIONAL","CONFLICT","CONNECT","CONSTRAINT","CONSUMER","COVER","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATA","DATABASE","DECIMAL","DECLARE","DEFAULT","DEFERRABLE","DEFERRED","DEFINE","DELETE","DESC","DESCRIBE","DETACH","DICT","DIRECTORY","DISABLE","DISCARD","DISTINCT","DO","DROP","EACH","ELSE","EMPTY","EMPTY_ACTION","ENCRYPTED","END","ENUM","ERASE","ERROR","ESCAPE","EVALUATE","EXCEPT","EXCLUDE","EXCLUSION","EXCLUSIVE","EXISTS","EXPLAIN","EXPORT","EXTERNAL","FAIL","FALSE","FAMILY","FILTER","FIRST","FLATTEN","FLOW","FOLLOWING","FOR","FOREIGN","FROM","FULL","FUNCTION","GLOB","GLOBAL","GRANT","GROUP","GROUPING","GROUPS","HASH","HAVING","HOP","IF","IGNORE","ILIKE","IMMEDIATE","IMPORT","IN","INCREMENT","INCREMENTAL","INDEX","INDEXED","INHERITS","INITIAL","INITIALLY","INNER","INSERT","INSTEAD","INTERSECT","INTO","IS","ISNULL","JOIN","JSON_EXISTS","JSON_QUERY","JSON_VALUE","KEY","LAST","LEFT","LEGACY","LIKE","LIMIT","LIST","LOCAL","LOGIN","MANAGE","MATCH","MATCHES","MATCH_RECOGNIZE","MEASURES","MICROSECONDS","MILLISECONDS","MODIFY","NANOSECONDS","NATURAL","NEXT","NO","NOLOGIN","NOT","NOTNULL","NULL","NULLS","OBJECT","OF","OFFSET","OMIT","ON","ONE","ONLY","OPTION","OPTIONAL","OR","ORDER","OTHERS","OUTER","OVER","PARALLEL","PARTITION","PASSING","PASSWORD","PAST","PATTERN","PER","PERMUTE","PLAN","POOL","PRAGMA","PRECEDING","PRESORT","PRIMARY","PRIVILEGES","PROCESS","QUERY","QUEUE","RAISE","RANGE","REDUCE","REFERENCES","REGEXP","REINDEX","RELEASE","REMOVE","RENAME","REPEATABLE","REPLACE","REPLICATION","RESET","RESOURCE","RESPECT","RESTART","RESTORE","RESTRICT","RESULT","RETURN","RETURNING","REVERT","REVOKE","RIGHT","RLIKE","ROLLBACK","ROLLUP","ROW","ROWS","SAMPLE","SAVEPOINT","SCHEMA","SECONDS","SEEK","SELECT","SEMI","SET","SETS","SHOW","TSKIP","SEQUENCE","SOURCE","START","STREAM","STRUCT","SUBQUERY","SUBSET","SYMBOLS","SYMMETRIC","SYNC","SYSTEM","TABLE","TABLES","TABLESAMPLE","TABLESTORE","TAGGED","TEMP","TEMPORARY","THEN","TIES","TO","TOPIC","TRANSACTION","TRANSFER","TRIGGER","TRUE","TUPLE","TYPE","UNBOUNDED","UNCONDITIONAL","UNION","UNIQUE","UNKNOWN","UNMATCHED","UPDATE","UPSERT","USE","USER","USING","VACUUM","VALUES","VARIANT","VIEW","VIRTUAL","WHEN","WHERE","WINDOW","WITH","WITHOUT","WRAPPER","XOR","STRING_VALUE","ID_PLAIN","ID_QUOTED","DIGITS","INTEGER_VALUE","REAL","BLOB","WS","COMMENT"]}static{this.ruleNames=["sql_query","sql_stmt_list","ansi_sql_stmt_list","lambda_body","lambda_stmt","sql_stmt","sql_stmt_core","expr","or_subexpr","and_subexpr","xor_subexpr","distinct_from_op","cond_expr","match_op","eq_subexpr","shift_right","rot_right","double_question","neq_subexpr","bit_subexpr","add_subexpr","mul_subexpr","con_subexpr","unary_op","unary_subexpr_suffix","unary_casual_subexpr","in_unary_casual_subexpr","unary_subexpr","in_unary_subexpr","list_literal","expr_dict_list","dict_literal","expr_struct_list","struct_literal","atom_expr","in_atom_expr","cast_expr","bitcast_expr","exists_expr","case_expr","lambda","in_expr","json_api_expr","jsonpath_spec","json_variable_name","json_variable","json_variables","json_common_args","json_case_handler","json_value","json_exists_handler","json_exists","json_query_wrapper","json_query_handler","json_query","smart_parenthesis","expr_list","pure_column_list","pure_column_or_named","pure_column_or_named_list","column_name","without_column_name","column_list","without_column_list","named_expr","named_expr_list","invoke_expr","invoke_expr_tail","using_call_expr","key_expr","when_expr","literal_value","bind_parameter","opt_bind_parameter","bind_parameter_list","named_bind_parameter","named_bind_parameter_list","signed_number","type_name_simple","integer_or_bind","type_name_tag","struct_arg","struct_arg_positional","variant_arg","callable_arg","callable_arg_list","type_name_decimal","type_name_optional","type_name_tuple","type_name_struct","type_name_variant","type_name_list","type_name_stream","type_name_flow","type_name_dict","type_name_set","type_name_enum","type_name_resource","type_name_tagged","type_name_callable","type_name_composite","type_name","type_name_or_bind","value_constructor_literal","value_constructor","declare_stmt","module_path","import_stmt","export_stmt","call_action","inline_action","do_stmt","pragma_stmt","pragma_value","sort_specification","sort_specification_list","select_stmt","select_unparenthesized_stmt","select_kind_parenthesis","select_op","select_kind_partial","select_kind","process_core","external_call_param","external_call_settings","reduce_core","opt_set_quantifier","select_core","row_pattern_recognition_clause","row_pattern_rows_per_match","row_pattern_empty_match_handling","row_pattern_measures","row_pattern_measure_list","row_pattern_measure_definition","row_pattern_common_syntax","row_pattern_skip_to","row_pattern_skip_to_variable_name","row_pattern_initial_or_seek","row_pattern","row_pattern_term","row_pattern_factor","row_pattern_quantifier","row_pattern_primary","row_pattern_primary_variable_name","row_pattern_permute","row_pattern_subset_clause","row_pattern_subset_list","row_pattern_subset_item","row_pattern_subset_item_variable_name","row_pattern_subset_rhs","row_pattern_subset_rhs_variable_name","row_pattern_definition_list","row_pattern_definition","row_pattern_definition_variable_name","row_pattern_definition_search_condition","search_condition","row_pattern_variable_name","order_by_clause","ext_order_by_clause","group_by_clause","grouping_element_list","grouping_element","ordinary_grouping_set","ordinary_grouping_set_list","rollup_list","cube_list","grouping_sets_specification","hopping_window_specification","result_column","join_source","named_column","flatten_by_arg","flatten_source","named_single_source","single_source","sample_clause","tablesample_clause","sampling_mode","repeatable_clause","join_op","join_constraint","returning_columns_list","into_table_stmt","into_table_stmt_yq","into_values_source","values_stmt","values_source","values_source_row_list","values_source_row","simple_values_source","create_external_data_source_stmt","alter_external_data_source_stmt","alter_external_data_source_action","drop_external_data_source_stmt","create_view_stmt","drop_view_stmt","upsert_object_stmt","create_object_stmt","create_object_features","alter_object_stmt","alter_object_features","drop_object_stmt","drop_object_features","object_feature_value","object_feature_kv","object_feature_flag","object_feature","object_features","object_type_ref","create_table_stmt","create_table_entry","create_backup_collection_stmt","alter_backup_collection_stmt","drop_backup_collection_stmt","create_backup_collection_entries","create_backup_collection_entries_many","table_list","alter_backup_collection_actions","alter_backup_collection_action","alter_backup_collection_entries","alter_backup_collection_entry","backup_collection","backup_collection_settings","backup_collection_settings_entry","backup_stmt","restore_stmt","table_inherits","table_partition_by","with_table_settings","table_tablestore","table_settings_entry","table_as_source","alter_table_stmt","alter_table_action","alter_external_table_stmt","alter_external_table_action","alter_table_store_stmt","alter_table_store_action","alter_table_add_column","alter_table_drop_column","alter_table_alter_column","alter_table_alter_column_drop_not_null","alter_table_add_column_family","alter_table_alter_column_family","alter_table_set_table_setting_uncompat","alter_table_set_table_setting_compat","alter_table_reset_table_setting","alter_table_add_index","alter_table_drop_index","alter_table_rename_to","alter_table_rename_index_to","alter_table_add_changefeed","alter_table_alter_changefeed","alter_table_drop_changefeed","alter_table_alter_index","column_schema","family_relation","opt_column_constraints","column_order_by_specification","table_constraint","table_index","table_index_type","global_index","local_index","index_subtype","with_index_settings","index_setting_entry","index_setting_value","changefeed","changefeed_settings","changefeed_settings_entry","changefeed_setting_value","changefeed_alter_settings","alter_table_setting_entry","table_setting_value","ttl_tier_list","ttl_tier_action","family_entry","family_settings","family_settings_entry","family_setting_value","split_boundaries","literal_value_list","alter_table_alter_index_action","drop_table_stmt","create_user_stmt","alter_user_stmt","create_group_stmt","alter_group_stmt","drop_role_stmt","role_name","user_option","authentication_option","password_option","hash_option","login_option","grant_permissions_stmt","revoke_permissions_stmt","permission_id","permission_name","permission_name_target","create_resource_pool_stmt","alter_resource_pool_stmt","alter_resource_pool_action","drop_resource_pool_stmt","create_resource_pool_classifier_stmt","alter_resource_pool_classifier_stmt","alter_resource_pool_classifier_action","drop_resource_pool_classifier_stmt","create_replication_stmt","replication_target","replication_settings","replication_settings_entry","alter_replication_stmt","alter_replication_action","alter_replication_set_setting","drop_replication_stmt","lambda_or_parameter","create_transfer_stmt","transfer_settings","transfer_settings_entry","alter_transfer_stmt","alter_transfer_action","alter_transfer_set_setting","alter_transfer_set_using","drop_transfer_stmt","action_or_subquery_args","define_action_or_subquery_stmt","define_action_or_subquery_body","if_stmt","for_stmt","table_ref","table_key","table_arg","table_hints","table_hint","object_ref","simple_table_ref_core","simple_table_ref","into_simple_table_ref","delete_stmt","update_stmt","set_clause_choice","set_clause_list","set_clause","set_target","multiple_column_assignment","set_target_list","create_topic_stmt","create_topic_entries","create_topic_entry","with_topic_settings","alter_topic_stmt","alter_topic_action","alter_topic_add_consumer","topic_create_consumer_entry","alter_topic_alter_consumer","alter_topic_alter_consumer_entry","alter_topic_drop_consumer","topic_alter_consumer_set","topic_alter_consumer_reset","alter_topic_set_settings","alter_topic_reset_settings","drop_topic_stmt","topic_settings","topic_settings_entry","topic_setting_value","topic_consumer_with_settings","topic_consumer_settings","topic_consumer_settings_entry","topic_consumer_setting_value","topic_ref","topic_consumer_ref","null_treatment","filter_clause","window_name_or_specification","window_name","window_clause","window_definition_list","window_definition","new_window_name","window_specification","window_specification_details","existing_window_name","window_partition_clause","window_order_clause","window_frame_clause","window_frame_units","window_frame_extent","window_frame_between","window_frame_bound","window_frame_exclusion","use_stmt","subselect_stmt","named_nodes_stmt","commit_stmt","rollback_stmt","analyze_table","analyze_table_list","analyze_stmt","alter_sequence_stmt","alter_sequence_action","identifier","id","id_schema","id_expr","id_expr_in","id_window","id_table","id_without","id_hint","id_as_compat","an_id","an_id_or_type","an_id_schema","an_id_expr","an_id_expr_in","an_id_window","an_id_table","an_id_without","an_id_hint","an_id_pure","an_id_as_compat","view_name","opt_id_prefix","cluster_expr","id_or_type","opt_id_prefix_or_type","id_or_at","id_table_or_type","id_table_or_at","keyword","keyword_expr_uncompat","keyword_table_uncompat","keyword_select_uncompat","keyword_alter_uncompat","keyword_in_uncompat","keyword_window_uncompat","keyword_hint_uncompat","keyword_as_compat","keyword_compat","type_id","bool_value","real","integer","sql_query_yq","sql_stmt_list_yq","sql_stmt_yq","sql_stmt_core_yq","replication_name","where_expr"]}get grammarFileName(){return"YQL.g4"}get literalNames(){return e.literalNames}get symbolicNames(){return e.symbolicNames}get ruleNames(){return e.ruleNames}get serializedATN(){return e._serializedATN}createFailedPredicateException(e,t){return new Ft(this,e,t)}constructor(t){super(t),this.interpreter=new gt(this,e._ATN,e.decisionsToDFA,new pt)}sql_query(){let t=new os(this.context,this.state);this.enterRule(t,0,e.RULE_sql_query);try{switch(this.state=907,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,0,this.context)){case 1:this.enterOuterAlt(t,1),this.state=902,this.sql_stmt_list();break;case 2:this.enterOuterAlt(t,2),this.state=903,this.match(e.PRAGMA),this.state=904,this.match(e.ANSI),this.state=905,this.match(e.DIGITS),this.state=906,this.ansi_sql_stmt_list()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}sql_stmt_list(){let t,i=new as(this.context,this.state);this.enterRule(i,2,e.RULE_sql_stmt_list);try{let s;for(this.enterOuterAlt(i,1),this.state=912,this.errorHandler.sync(this),t=this.tokenStream.LA(1);22===t;)this.state=909,this.match(e.SEMICOLON),this.state=914,this.errorHandler.sync(this),t=this.tokenStream.LA(1);for(this.state=915,this.sql_stmt(),this.state=924,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,3,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;){if(1===s){this.state=917,this.errorHandler.sync(this),t=this.tokenStream.LA(1);do{this.state=916,this.match(e.SEMICOLON),this.state=919,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}while(22===t);this.state=921,this.sql_stmt()}this.state=926,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,3,this.context)}for(this.state=930,this.errorHandler.sync(this),t=this.tokenStream.LA(1);22===t;)this.state=927,this.match(e.SEMICOLON),this.state=932,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=933,this.match(e.EOF)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}ansi_sql_stmt_list(){let t,i=new cs(this.context,this.state);this.enterRule(i,4,e.RULE_ansi_sql_stmt_list);try{for(this.enterOuterAlt(i,1),this.state=938,this.errorHandler.sync(this),t=this.tokenStream.LA(1);22===t;)this.state=935,this.match(e.SEMICOLON),this.state=940,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=941,this.match(e.EOF)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}lambda_body(){let t,i=new ls(this.context,this.state);this.enterRule(i,6,e.RULE_lambda_body);try{for(this.enterOuterAlt(i,1),this.state=946,this.errorHandler.sync(this),t=this.tokenStream.LA(1);22===t;)this.state=943,this.match(e.SEMICOLON),this.state=948,this.errorHandler.sync(this),t=this.tokenStream.LA(1);for(this.state=957,this.errorHandler.sync(this),t=this.tokenStream.LA(1);30===t||157===t;){this.state=949,this.lambda_stmt(),this.state=951,this.errorHandler.sync(this),t=this.tokenStream.LA(1);do{this.state=950,this.match(e.SEMICOLON),this.state=953,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}while(22===t);this.state=959,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}for(this.state=960,this.match(e.RETURN),this.state=961,this.expr(),this.state=965,this.errorHandler.sync(this),t=this.tokenStream.LA(1);22===t;)this.state=962,this.match(e.SEMICOLON),this.state=967,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}lambda_stmt(){let t=new hs(this.context,this.state);this.enterRule(t,8,e.RULE_lambda_stmt);try{switch(this.state=970,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DOLLAR:this.enterOuterAlt(t,1),this.state=968,this.named_nodes_stmt();break;case e.IMPORT:this.enterOuterAlt(t,2),this.state=969,this.import_stmt();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}sql_stmt(){let t,i=new ds(this.context,this.state);this.enterRule(i,10,e.RULE_sql_stmt);try{this.enterOuterAlt(i,1),this.state=977,this.errorHandler.sync(this),t=this.tokenStream.LA(1),128===t&&(this.state=972,this.match(e.EXPLAIN),this.state=975,this.errorHandler.sync(this),t=this.tokenStream.LA(1),233===t&&(this.state=973,this.match(e.QUERY),this.state=974,this.match(e.PLAN))),this.state=979,this.sql_stmt_core()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}sql_stmt_core(){let t=new us(this.context,this.state);this.enterRule(t,12,e.RULE_sql_stmt_core);try{switch(this.state=1041,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,13,this.context)){case 1:this.enterOuterAlt(t,1),this.state=981,this.pragma_stmt();break;case 2:this.enterOuterAlt(t,2),this.state=982,this.select_stmt();break;case 3:this.enterOuterAlt(t,3),this.state=983,this.named_nodes_stmt();break;case 4:this.enterOuterAlt(t,4),this.state=984,this.create_table_stmt();break;case 5:this.enterOuterAlt(t,5),this.state=985,this.drop_table_stmt();break;case 6:this.enterOuterAlt(t,6),this.state=986,this.use_stmt();break;case 7:this.enterOuterAlt(t,7),this.state=987,this.into_table_stmt();break;case 8:this.enterOuterAlt(t,8),this.state=988,this.commit_stmt();break;case 9:this.enterOuterAlt(t,9),this.state=989,this.update_stmt();break;case 10:this.enterOuterAlt(t,10),this.state=990,this.delete_stmt();break;case 11:this.enterOuterAlt(t,11),this.state=991,this.rollback_stmt();break;case 12:this.enterOuterAlt(t,12),this.state=992,this.declare_stmt();break;case 13:this.enterOuterAlt(t,13),this.state=993,this.import_stmt();break;case 14:this.enterOuterAlt(t,14),this.state=994,this.export_stmt();break;case 15:this.enterOuterAlt(t,15),this.state=995,this.alter_table_stmt();break;case 16:this.enterOuterAlt(t,16),this.state=996,this.alter_external_table_stmt();break;case 17:this.enterOuterAlt(t,17),this.state=997,this.do_stmt();break;case 18:this.enterOuterAlt(t,18),this.state=998,this.define_action_or_subquery_stmt();break;case 19:this.enterOuterAlt(t,19),this.state=999,this.if_stmt();break;case 20:this.enterOuterAlt(t,20),this.state=1e3,this.for_stmt();break;case 21:this.enterOuterAlt(t,21),this.state=1001,this.values_stmt();break;case 22:this.enterOuterAlt(t,22),this.state=1002,this.create_user_stmt();break;case 23:this.enterOuterAlt(t,23),this.state=1003,this.alter_user_stmt();break;case 24:this.enterOuterAlt(t,24),this.state=1004,this.create_group_stmt();break;case 25:this.enterOuterAlt(t,25),this.state=1005,this.alter_group_stmt();break;case 26:this.enterOuterAlt(t,26),this.state=1006,this.drop_role_stmt();break;case 27:this.enterOuterAlt(t,27),this.state=1007,this.create_object_stmt();break;case 28:this.enterOuterAlt(t,28),this.state=1008,this.alter_object_stmt();break;case 29:this.enterOuterAlt(t,29),this.state=1009,this.drop_object_stmt();break;case 30:this.enterOuterAlt(t,30),this.state=1010,this.create_external_data_source_stmt();break;case 31:this.enterOuterAlt(t,31),this.state=1011,this.alter_external_data_source_stmt();break;case 32:this.enterOuterAlt(t,32),this.state=1012,this.drop_external_data_source_stmt();break;case 33:this.enterOuterAlt(t,33),this.state=1013,this.create_replication_stmt();break;case 34:this.enterOuterAlt(t,34),this.state=1014,this.drop_replication_stmt();break;case 35:this.enterOuterAlt(t,35),this.state=1015,this.create_topic_stmt();break;case 36:this.enterOuterAlt(t,36),this.state=1016,this.alter_topic_stmt();break;case 37:this.enterOuterAlt(t,37),this.state=1017,this.drop_topic_stmt();break;case 38:this.enterOuterAlt(t,38),this.state=1018,this.grant_permissions_stmt();break;case 39:this.enterOuterAlt(t,39),this.state=1019,this.revoke_permissions_stmt();break;case 40:this.enterOuterAlt(t,40),this.state=1020,this.alter_table_store_stmt();break;case 41:this.enterOuterAlt(t,41),this.state=1021,this.upsert_object_stmt();break;case 42:this.enterOuterAlt(t,42),this.state=1022,this.create_view_stmt();break;case 43:this.enterOuterAlt(t,43),this.state=1023,this.drop_view_stmt();break;case 44:this.enterOuterAlt(t,44),this.state=1024,this.alter_replication_stmt();break;case 45:this.enterOuterAlt(t,45),this.state=1025,this.create_resource_pool_stmt();break;case 46:this.enterOuterAlt(t,46),this.state=1026,this.alter_resource_pool_stmt();break;case 47:this.enterOuterAlt(t,47),this.state=1027,this.drop_resource_pool_stmt();break;case 48:this.enterOuterAlt(t,48),this.state=1028,this.create_backup_collection_stmt();break;case 49:this.enterOuterAlt(t,49),this.state=1029,this.alter_backup_collection_stmt();break;case 50:this.enterOuterAlt(t,50),this.state=1030,this.drop_backup_collection_stmt();break;case 51:this.enterOuterAlt(t,51),this.state=1031,this.analyze_stmt();break;case 52:this.enterOuterAlt(t,52),this.state=1032,this.create_resource_pool_classifier_stmt();break;case 53:this.enterOuterAlt(t,53),this.state=1033,this.alter_resource_pool_classifier_stmt();break;case 54:this.enterOuterAlt(t,54),this.state=1034,this.drop_resource_pool_classifier_stmt();break;case 55:this.enterOuterAlt(t,55),this.state=1035,this.backup_stmt();break;case 56:this.enterOuterAlt(t,56),this.state=1036,this.restore_stmt();break;case 57:this.enterOuterAlt(t,57),this.state=1037,this.alter_sequence_stmt();break;case 58:this.enterOuterAlt(t,58),this.state=1038,this.create_transfer_stmt();break;case 59:this.enterOuterAlt(t,59),this.state=1039,this.alter_transfer_stmt();break;case 60:this.enterOuterAlt(t,60),this.state=1040,this.drop_transfer_stmt()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}expr(){let t=new gs(this.context,this.state);this.enterRule(t,14,e.RULE_expr);try{let i;switch(this.state=1052,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,15,this.context)){case 1:for(this.enterOuterAlt(t,1),this.state=1043,this.or_subexpr(),this.state=1048,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,14,this.context);2!==i&&i!==Z.INVALID_ALT_NUMBER;)1===i&&(this.state=1044,this.match(e.OR),this.state=1045,this.or_subexpr()),this.state=1050,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,14,this.context);break;case 2:this.enterOuterAlt(t,2),this.state=1051,this.type_name_composite()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}or_subexpr(){let t=new ps(this.context,this.state);this.enterRule(t,16,e.RULE_or_subexpr);try{let i;for(this.enterOuterAlt(t,1),this.state=1054,this.and_subexpr(),this.state=1059,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,16,this.context);2!==i&&i!==Z.INVALID_ALT_NUMBER;)1===i&&(this.state=1055,this.match(e.AND),this.state=1056,this.and_subexpr()),this.state=1061,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,16,this.context)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}and_subexpr(){let t=new ms(this.context,this.state);this.enterRule(t,18,e.RULE_and_subexpr);try{let i;for(this.enterOuterAlt(t,1),this.state=1062,this.xor_subexpr(),this.state=1067,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,17,this.context);2!==i&&i!==Z.INVALID_ALT_NUMBER;)1===i&&(this.state=1063,this.match(e.XOR),this.state=1064,this.xor_subexpr()),this.state=1069,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,17,this.context)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}xor_subexpr(){let t=new fs(this.context,this.state);this.enterRule(t,20,e.RULE_xor_subexpr);try{if(1===(this.enterOuterAlt(t,1),this.state=1070,this.eq_subexpr(),this.state=1072,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,18,this.context)))this.state=1071,this.cond_expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}distinct_from_op(){let t,i=new _s(this.context,this.state);this.enterRule(i,22,e.RULE_distinct_from_op);try{this.enterOuterAlt(i,1),this.state=1074,this.match(e.IS),this.state=1076,this.errorHandler.sync(this),t=this.tokenStream.LA(1),199===t&&(this.state=1075,this.match(e.NOT)),this.state=1078,this.match(e.DISTINCT),this.state=1079,this.match(e.FROM)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}cond_expr(){let t,i=new vs(this.context,this.state);this.enterRule(i,24,e.RULE_cond_expr);try{let s;switch(this.state=1132,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,30,this.context)){case 1:if(1===(this.enterOuterAlt(i,1),this.state=1082,this.errorHandler.sync(this),t=this.tokenStream.LA(1),199===t&&(this.state=1081,this.match(e.NOT)),this.state=1084,this.match_op(),this.state=1085,this.eq_subexpr(),this.state=1088,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,21,this.context)))this.state=1086,this.match(e.ESCAPE),this.state=1087,this.eq_subexpr();break;case 2:if(this.enterOuterAlt(i,2),1===(this.state=1091,this.errorHandler.sync(this),t=this.tokenStream.LA(1),199===t&&(this.state=1090,this.match(e.NOT)),this.state=1093,this.match(e.IN),this.state=1095,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,23,this.context)))this.state=1094,this.match(e.COMPACT);this.state=1097,this.in_expr();break;case 3:switch(this.enterOuterAlt(i,3),this.state=1107,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,25,this.context)){case 1:this.state=1098,this.match(e.ISNULL);break;case 2:this.state=1099,this.match(e.NOTNULL);break;case 3:this.state=1100,this.match(e.IS),this.state=1101,this.match(e.NULL);break;case 4:this.state=1103,this.errorHandler.sync(this),t=this.tokenStream.LA(1),171===t&&(this.state=1102,this.match(e.IS)),this.state=1105,this.match(e.NOT),this.state=1106,this.match(e.NULL)}break;case 4:if(this.enterOuterAlt(i,4),1===(this.state=1110,this.errorHandler.sync(this),t=this.tokenStream.LA(1),199===t&&(this.state=1109,this.match(e.NOT)),this.state=1112,this.match(e.BETWEEN),this.state=1114,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,27,this.context)))this.state=1113,t=this.tokenStream.LA(1),52===t||283===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this);this.state=1116,this.eq_subexpr(),this.state=1117,this.match(e.AND),this.state=1118,this.eq_subexpr();break;case 5:this.enterOuterAlt(i,5),this.state=1128,this.errorHandler.sync(this),s=1;do{if(1!==s)throw new lt(this);switch(this.state=1125,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.EQUALS:this.state=1120,this.match(e.EQUALS);break;case e.EQUALS2:this.state=1121,this.match(e.EQUALS2);break;case e.NOT_EQUALS:this.state=1122,this.match(e.NOT_EQUALS);break;case e.NOT_EQUALS2:this.state=1123,this.match(e.NOT_EQUALS2);break;case e.IS:this.state=1124,this.distinct_from_op();break;default:throw new lt(this)}this.state=1127,this.eq_subexpr(),this.state=1130,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,29,this.context)}while(2!==s&&s!==Z.INVALID_ALT_NUMBER)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}match_op(){let t,i=new Cs(this.context,this.state);this.enterRule(i,26,e.RULE_match_op);try{this.enterOuterAlt(i,1),this.state=1134,t=this.tokenStream.LA(1),144===t||155===t||181===t||187===t||239===t||259===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}eq_subexpr(){let t,i=new Es(this.context,this.state);this.enterRule(i,28,e.RULE_eq_subexpr);try{for(this.enterOuterAlt(i,1),this.state=1136,this.neq_subexpr(),this.state=1141,this.errorHandler.sync(this),t=this.tokenStream.LA(1);!(-32&t)&&1<<t&480;)this.state=1137,t=this.tokenStream.LA(1),!(-32&t)&&1<<t&480?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1138,this.neq_subexpr(),this.state=1143,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}shift_right(){let t=new bs(this.context,this.state);this.enterRule(t,30,e.RULE_shift_right);try{this.enterOuterAlt(t,1),this.state=1144,this.match(e.GREATER),this.state=1145,this.match(e.GREATER)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}rot_right(){let t=new Ss(this.context,this.state);this.enterRule(t,32,e.RULE_rot_right);try{this.enterOuterAlt(t,1),this.state=1147,this.match(e.GREATER),this.state=1148,this.match(e.GREATER),this.state=1149,this.match(e.PIPE)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}double_question(){let t=new ys(this.context,this.state);this.enterRule(t,34,e.RULE_double_question);try{this.enterOuterAlt(t,1),this.state=1151,this.match(e.QUESTION),this.state=1152,this.match(e.QUESTION)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}neq_subexpr(){let t,i=new ws(this.context,this.state);this.enterRule(i,36,e.RULE_neq_subexpr);try{let s;for(this.enterOuterAlt(i,1),this.state=1154,this.bit_subexpr(),this.state=1167,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,33,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;){if(1===s){switch(this.state=1162,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,32,this.context)){case 1:this.state=1155,this.match(e.SHIFT_LEFT);break;case 2:this.state=1156,this.shift_right();break;case 3:this.state=1157,this.match(e.ROT_LEFT);break;case 4:this.state=1158,this.rot_right();break;case 5:this.state=1159,this.match(e.AMPERSAND);break;case 6:this.state=1160,this.match(e.PIPE);break;case 7:this.state=1161,this.match(e.CARET)}this.state=1164,this.bit_subexpr()}this.state=1169,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,33,this.context)}switch(this.state=1178,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,35,this.context)){case 1:this.state=1170,this.double_question(),this.state=1171,this.neq_subexpr();break;case 2:this.state=1174,this.errorHandler.sync(this),t=this.tokenStream.LA(1);do{this.state=1173,this.match(e.QUESTION),this.state=1176,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}while(27===t)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}bit_subexpr(){let t,i=new Rs(this.context,this.state);this.enterRule(i,38,e.RULE_bit_subexpr);try{for(this.enterOuterAlt(i,1),this.state=1180,this.add_subexpr(),this.state=1185,this.errorHandler.sync(this),t=this.tokenStream.LA(1);16===t||17===t;)this.state=1181,t=this.tokenStream.LA(1),16===t||17===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1182,this.add_subexpr(),this.state=1187,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}add_subexpr(){let t,i=new Ls(this.context,this.state);this.enterRule(i,40,e.RULE_add_subexpr);try{for(this.enterOuterAlt(i,1),this.state=1188,this.mul_subexpr(),this.state=1193,this.errorHandler.sync(this),t=this.tokenStream.LA(1);!(-32&t)&&1<<t&3670016;)this.state=1189,t=this.tokenStream.LA(1),!(-32&t)&&1<<t&3670016?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1190,this.mul_subexpr(),this.state=1195,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}mul_subexpr(){let t,i=new Ts(this.context,this.state);this.enterRule(i,42,e.RULE_mul_subexpr);try{for(this.enterOuterAlt(i,1),this.state=1196,this.con_subexpr(),this.state=1201,this.errorHandler.sync(this),t=this.tokenStream.LA(1);13===t;)this.state=1197,this.match(e.DOUBLE_PIPE),this.state=1198,this.con_subexpr(),this.state=1203,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}con_subexpr(){let t=new xs(this.context,this.state);this.enterRule(t,44,e.RULE_con_subexpr);try{switch(this.state=1208,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,39,this.context)){case 1:this.enterOuterAlt(t,1),this.state=1204,this.unary_subexpr();break;case 2:this.enterOuterAlt(t,2),this.state=1205,this.unary_op(),this.state=1206,this.unary_subexpr()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}unary_op(){let t,i=new ks(this.context,this.state);this.enterRule(i,46,e.RULE_unary_op);try{this.enterOuterAlt(i,1),this.state=1210,t=this.tokenStream.LA(1),!(-32&t)&&1<<t&458752||199===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}unary_subexpr_suffix(){let t,i=new As(this.context,this.state);this.enterRule(i,48,e.RULE_unary_subexpr_suffix);try{for(this.enterOuterAlt(i,1),this.state=1224,this.errorHandler.sync(this),t=this.tokenStream.LA(1);!(t-23&-32)&&1<<t-23&16389;){switch(this.state=1220,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.LBRACE_SQUARE:this.state=1212,this.key_expr();break;case e.LPAREN:this.state=1213,this.invoke_expr();break;case e.DOT:switch(this.state=1214,this.match(e.DOT),this.state=1218,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DOLLAR:this.state=1215,this.bind_parameter();break;case e.DIGITS:this.state=1216,this.match(e.DIGITS);break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CALLABLE:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DICT:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ENUM:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FLOW:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LIST:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OPTIONAL:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESOURCE:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SET:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.STRUCT:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TAGGED:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TUPLE:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VARIANT:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.state=1217,this.an_id_or_type();break;default:throw new lt(this)}break;default:throw new lt(this)}this.state=1226,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}this.state=1229,this.errorHandler.sync(this),t=this.tokenStream.LA(1),75===t&&(this.state=1227,this.match(e.COLLATE),this.state=1228,this.an_id())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}unary_casual_subexpr(){let t=new Ns(this.context,this.state);this.enterRule(t,50,e.RULE_unary_casual_subexpr);try{switch(this.enterOuterAlt(t,1),this.state=1233,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,44,this.context)){case 1:this.state=1231,this.id_expr();break;case 2:this.state=1232,this.atom_expr()}this.state=1235,this.unary_subexpr_suffix()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}in_unary_casual_subexpr(){let t=new Is(this.context,this.state);this.enterRule(t,52,e.RULE_in_unary_casual_subexpr);try{switch(this.enterOuterAlt(t,1),this.state=1239,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,45,this.context)){case 1:this.state=1237,this.id_expr_in();break;case 2:this.state=1238,this.in_atom_expr()}this.state=1241,this.unary_subexpr_suffix()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}unary_subexpr(){let t=new Os(this.context,this.state);this.enterRule(t,54,e.RULE_unary_subexpr);try{switch(this.state=1245,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,46,this.context)){case 1:this.enterOuterAlt(t,1),this.state=1243,this.unary_casual_subexpr();break;case 2:this.enterOuterAlt(t,2),this.state=1244,this.json_api_expr()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}in_unary_subexpr(){let t=new Ds(this.context,this.state);this.enterRule(t,56,e.RULE_in_unary_subexpr);try{switch(this.state=1249,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,47,this.context)){case 1:this.enterOuterAlt(t,1),this.state=1247,this.in_unary_casual_subexpr();break;case 2:this.enterOuterAlt(t,2),this.state=1248,this.json_api_expr()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}list_literal(){let t,i=new Ms(this.context,this.state);this.enterRule(i,58,e.RULE_list_literal);try{this.enterOuterAlt(i,1),this.state=1251,this.match(e.LBRACE_SQUARE),this.state=1253,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(!(t-14&-32)&&1<<t-14&4286777373||!(t-46&-32)&&1<<t-46&4294963199||!(t-78&-32)&&1<<t-78&4294967295||!(t-110&-32)&&1<<t-110&4294967295||!(t-142&-32)&&1<<t-142&4294967295||!(t-174&-32)&&1<<t-174&4294967295||!(t-206&-32)&&1<<t-206&4294967295||!(t-238&-32)&&1<<t-238&4294967231||!(t-270&-32)&&1<<t-270&4294967295||!(t-302&-32)&&1<<t-302&2147483647)&&(this.state=1252,this.expr_list()),this.state=1256,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=1255,this.match(e.COMMA)),this.state=1258,this.match(e.RBRACE_SQUARE)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}expr_dict_list(){let t,i=new Ps(this.context,this.state);this.enterRule(i,60,e.RULE_expr_dict_list);try{let s;for(this.enterOuterAlt(i,1),this.state=1260,this.expr(),this.state=1263,this.errorHandler.sync(this),t=this.tokenStream.LA(1),28===t&&(this.state=1261,this.match(e.COLON),this.state=1262,this.expr()),this.state=1273,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,52,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=1265,this.match(e.COMMA),this.state=1266,this.expr(),this.state=1269,this.errorHandler.sync(this),t=this.tokenStream.LA(1),28===t&&(this.state=1267,this.match(e.COLON),this.state=1268,this.expr())),this.state=1275,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,52,this.context)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}dict_literal(){let t,i=new Fs(this.context,this.state);this.enterRule(i,62,e.RULE_dict_literal);try{this.enterOuterAlt(i,1),this.state=1276,this.match(e.LBRACE_CURLY),this.state=1278,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(!(t-14&-32)&&1<<t-14&4286777373||!(t-46&-32)&&1<<t-46&4294963199||!(t-78&-32)&&1<<t-78&4294967295||!(t-110&-32)&&1<<t-110&4294967295||!(t-142&-32)&&1<<t-142&4294967295||!(t-174&-32)&&1<<t-174&4294967295||!(t-206&-32)&&1<<t-206&4294967295||!(t-238&-32)&&1<<t-238&4294967231||!(t-270&-32)&&1<<t-270&4294967295||!(t-302&-32)&&1<<t-302&2147483647)&&(this.state=1277,this.expr_dict_list()),this.state=1281,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=1280,this.match(e.COMMA)),this.state=1283,this.match(e.RBRACE_CURLY)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}expr_struct_list(){let t=new Us(this.context,this.state);this.enterRule(t,64,e.RULE_expr_struct_list);try{let i;for(this.enterOuterAlt(t,1),this.state=1285,this.expr(),this.state=1286,this.match(e.COLON),this.state=1287,this.expr(),this.state=1295,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,55,this.context);2!==i&&i!==Z.INVALID_ALT_NUMBER;)1===i&&(this.state=1288,this.match(e.COMMA),this.state=1289,this.expr(),this.state=1290,this.match(e.COLON),this.state=1291,this.expr()),this.state=1297,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,55,this.context)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}struct_literal(){let t,i=new Hs(this.context,this.state);this.enterRule(i,66,e.RULE_struct_literal);try{this.enterOuterAlt(i,1),this.state=1298,this.match(e.STRUCT_OPEN),this.state=1300,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(!(t-14&-32)&&1<<t-14&4286777373||!(t-46&-32)&&1<<t-46&4294963199||!(t-78&-32)&&1<<t-78&4294967295||!(t-110&-32)&&1<<t-110&4294967295||!(t-142&-32)&&1<<t-142&4294967295||!(t-174&-32)&&1<<t-174&4294967295||!(t-206&-32)&&1<<t-206&4294967295||!(t-238&-32)&&1<<t-238&4294967231||!(t-270&-32)&&1<<t-270&4294967295||!(t-302&-32)&&1<<t-302&2147483647)&&(this.state=1299,this.expr_struct_list()),this.state=1303,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=1302,this.match(e.COMMA)),this.state=1305,this.match(e.STRUCT_CLOSE)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}atom_expr(){let t=new Bs(this.context,this.state);this.enterRule(t,68,e.RULE_atom_expr);try{switch(this.state=1324,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,59,this.context)){case 1:this.enterOuterAlt(t,1),this.state=1307,this.literal_value();break;case 2:this.enterOuterAlt(t,2),this.state=1308,this.bind_parameter();break;case 3:this.enterOuterAlt(t,3),this.state=1309,this.lambda();break;case 4:this.enterOuterAlt(t,4),this.state=1310,this.cast_expr();break;case 5:this.enterOuterAlt(t,5),this.state=1311,this.exists_expr();break;case 6:this.enterOuterAlt(t,6),this.state=1312,this.case_expr();break;case 7:switch(this.enterOuterAlt(t,7),this.state=1313,this.an_id_or_type(),this.state=1314,this.match(e.NAMESPACE),this.state=1317,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CALLABLE:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DICT:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ENUM:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FLOW:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LIST:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OPTIONAL:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESOURCE:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SET:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.STRUCT:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TAGGED:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TUPLE:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VARIANT:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.state=1315,this.id_or_type();break;case e.STRING_VALUE:this.state=1316,this.match(e.STRING_VALUE);break;default:throw new lt(this)}break;case 8:this.enterOuterAlt(t,8),this.state=1319,this.value_constructor();break;case 9:this.enterOuterAlt(t,9),this.state=1320,this.bitcast_expr();break;case 10:this.enterOuterAlt(t,10),this.state=1321,this.list_literal();break;case 11:this.enterOuterAlt(t,11),this.state=1322,this.dict_literal();break;case 12:this.enterOuterAlt(t,12),this.state=1323,this.struct_literal()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}in_atom_expr(){let t=new Ws(this.context,this.state);this.enterRule(t,70,e.RULE_in_atom_expr);try{switch(this.state=1346,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,61,this.context)){case 1:this.enterOuterAlt(t,1),this.state=1326,this.literal_value();break;case 2:this.enterOuterAlt(t,2),this.state=1327,this.bind_parameter();break;case 3:this.enterOuterAlt(t,3),this.state=1328,this.lambda();break;case 4:this.enterOuterAlt(t,4),this.state=1329,this.cast_expr();break;case 5:this.enterOuterAlt(t,5),this.state=1330,this.case_expr();break;case 6:switch(this.enterOuterAlt(t,6),this.state=1331,this.an_id_or_type(),this.state=1332,this.match(e.NAMESPACE),this.state=1335,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CALLABLE:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DICT:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ENUM:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FLOW:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LIST:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OPTIONAL:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESOURCE:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SET:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.STRUCT:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TAGGED:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TUPLE:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VARIANT:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.state=1333,this.id_or_type();break;case e.STRING_VALUE:this.state=1334,this.match(e.STRING_VALUE);break;default:throw new lt(this)}break;case 7:this.enterOuterAlt(t,7),this.state=1337,this.match(e.LPAREN),this.state=1338,this.select_stmt(),this.state=1339,this.match(e.RPAREN);break;case 8:this.enterOuterAlt(t,8),this.state=1341,this.value_constructor();break;case 9:this.enterOuterAlt(t,9),this.state=1342,this.bitcast_expr();break;case 10:this.enterOuterAlt(t,10),this.state=1343,this.list_literal();break;case 11:this.enterOuterAlt(t,11),this.state=1344,this.dict_literal();break;case 12:this.enterOuterAlt(t,12),this.state=1345,this.struct_literal()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}cast_expr(){let t=new Vs(this.context,this.state);this.enterRule(t,72,e.RULE_cast_expr);try{this.enterOuterAlt(t,1),this.state=1348,this.match(e.CAST),this.state=1349,this.match(e.LPAREN),this.state=1350,this.expr(),this.state=1351,this.match(e.AS),this.state=1352,this.type_name_or_bind(),this.state=1353,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}bitcast_expr(){let t=new zs(this.context,this.state);this.enterRule(t,74,e.RULE_bitcast_expr);try{this.enterOuterAlt(t,1),this.state=1355,this.match(e.BITCAST),this.state=1356,this.match(e.LPAREN),this.state=1357,this.expr(),this.state=1358,this.match(e.AS),this.state=1359,this.type_name_simple(),this.state=1360,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}exists_expr(){let t=new Gs(this.context,this.state);this.enterRule(t,76,e.RULE_exists_expr);try{switch(this.enterOuterAlt(t,1),this.state=1362,this.match(e.EXISTS),this.state=1363,this.match(e.LPAREN),this.state=1366,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.LPAREN:case e.DISCARD:case e.FROM:case e.PROCESS:case e.REDUCE:case e.SELECT:this.state=1364,this.select_stmt();break;case e.VALUES:this.state=1365,this.values_stmt();break;default:throw new lt(this)}this.state=1368,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}case_expr(){let t,i=new js(this.context,this.state);this.enterRule(i,78,e.RULE_case_expr);try{if(this.enterOuterAlt(i,1),1===(this.state=1370,this.match(e.CASE),this.state=1372,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,63,this.context)))this.state=1371,this.expr();this.state=1375,this.errorHandler.sync(this),t=this.tokenStream.LA(1);do{this.state=1374,this.when_expr(),this.state=1377,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}while(319===t);this.state=1381,this.errorHandler.sync(this),t=this.tokenStream.LA(1),113===t&&(this.state=1379,this.match(e.ELSE),this.state=1380,this.expr()),this.state=1383,this.match(e.END)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}lambda(){let t,i=new Ks(this.context,this.state);this.enterRule(i,80,e.RULE_lambda);try{if(this.enterOuterAlt(i,1),this.state=1385,this.smart_parenthesis(),this.state=1397,this.errorHandler.sync(this),t=this.tokenStream.LA(1),35===t)switch(this.state=1386,this.match(e.ARROW),this.state=1395,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.LPAREN:this.state=1387,this.match(e.LPAREN),this.state=1388,this.expr(),this.state=1389,this.match(e.RPAREN);break;case e.LBRACE_CURLY:this.state=1391,this.match(e.LBRACE_CURLY),this.state=1392,this.lambda_body(),this.state=1393,this.match(e.RBRACE_CURLY);break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}in_expr(){let t=new Ys(this.context,this.state);this.enterRule(t,82,e.RULE_in_expr);try{this.enterOuterAlt(t,1),this.state=1399,this.in_unary_subexpr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}json_api_expr(){let t=new qs(this.context,this.state);this.enterRule(t,84,e.RULE_json_api_expr);try{switch(this.state=1404,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.JSON_VALUE:this.enterOuterAlt(t,1),this.state=1401,this.json_value();break;case e.JSON_EXISTS:this.enterOuterAlt(t,2),this.state=1402,this.json_exists();break;case e.JSON_QUERY:this.enterOuterAlt(t,3),this.state=1403,this.json_query();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}jsonpath_spec(){let t=new $s(this.context,this.state);this.enterRule(t,86,e.RULE_jsonpath_spec);try{this.enterOuterAlt(t,1),this.state=1406,this.match(e.STRING_VALUE)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}json_variable_name(){let t=new Qs(this.context,this.state);this.enterRule(t,88,e.RULE_json_variable_name);try{switch(this.state=1410,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=1408,this.id_expr();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=1409,this.match(e.STRING_VALUE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}json_variable(){let t=new Xs(this.context,this.state);this.enterRule(t,90,e.RULE_json_variable);try{this.enterOuterAlt(t,1),this.state=1412,this.expr(),this.state=1413,this.match(e.AS),this.state=1414,this.json_variable_name()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}json_variables(){let t,i=new Zs(this.context,this.state);this.enterRule(i,92,e.RULE_json_variables);try{for(this.enterOuterAlt(i,1),this.state=1416,this.json_variable(),this.state=1421,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=1417,this.match(e.COMMA),this.state=1418,this.json_variable(),this.state=1423,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}json_common_args(){let t,i=new Js(this.context,this.state);this.enterRule(i,94,e.RULE_json_common_args);try{this.enterOuterAlt(i,1),this.state=1424,this.expr(),this.state=1425,this.match(e.COMMA),this.state=1426,this.jsonpath_spec(),this.state=1429,this.errorHandler.sync(this),t=this.tokenStream.LA(1),219===t&&(this.state=1427,this.match(e.PASSING),this.state=1428,this.json_variables())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}json_case_handler(){let t=new en(this.context,this.state);this.enterRule(t,96,e.RULE_json_case_handler);try{switch(this.state=1435,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ERROR:this.enterOuterAlt(t,1),this.state=1431,this.match(e.ERROR);break;case e.NULL:this.enterOuterAlt(t,2),this.state=1432,this.match(e.NULL);break;case e.DEFAULT:this.enterOuterAlt(t,3),this.state=1433,this.match(e.DEFAULT),this.state=1434,this.expr();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}json_value(){let t,i=new tn(this.context,this.state);this.enterRule(i,98,e.RULE_json_value);try{for(this.enterOuterAlt(i,1),this.state=1437,this.match(e.JSON_VALUE),this.state=1438,this.match(e.LPAREN),this.state=1439,this.json_common_args(),this.state=1442,this.errorHandler.sync(this),t=this.tokenStream.LA(1),255===t&&(this.state=1440,this.match(e.RETURNING),this.state=1441,this.type_name_simple()),this.state=1450,this.errorHandler.sync(this),t=this.tokenStream.LA(1);97===t||120===t||201===t;)this.state=1444,this.json_case_handler(),this.state=1445,this.match(e.ON),this.state=1446,t=this.tokenStream.LA(1),114===t||120===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1452,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=1453,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}json_exists_handler(){let t,i=new sn(this.context,this.state);this.enterRule(i,100,e.RULE_json_exists_handler);try{this.enterOuterAlt(i,1),this.state=1455,t=this.tokenStream.LA(1),120===t||132===t||300===t||307===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1456,this.match(e.ON),this.state=1457,this.match(e.ERROR)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}json_exists(){let t,i=new nn(this.context,this.state);this.enterRule(i,102,e.RULE_json_exists);try{this.enterOuterAlt(i,1),this.state=1459,this.match(e.JSON_EXISTS),this.state=1460,this.match(e.LPAREN),this.state=1461,this.json_common_args(),this.state=1463,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(120===t||132===t||300===t||307===t)&&(this.state=1462,this.json_exists_handler()),this.state=1465,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}json_query_wrapper(){let t,i=new rn(this.context,this.state);this.enterRule(i,104,e.RULE_json_query_wrapper);try{switch(this.state=1478,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.WITHOUT:this.enterOuterAlt(i,1),this.state=1467,this.match(e.WITHOUT),this.state=1469,this.errorHandler.sync(this),t=this.tokenStream.LA(1),48===t&&(this.state=1468,this.match(e.ARRAY));break;case e.WITH:this.enterOuterAlt(i,2),this.state=1471,this.match(e.WITH),this.state=1473,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(80===t||304===t)&&(this.state=1472,t=this.tokenStream.LA(1),80===t||304===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)),this.state=1476,this.errorHandler.sync(this),t=this.tokenStream.LA(1),48===t&&(this.state=1475,this.match(e.ARRAY));break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}json_query_handler(){let t=new on(this.context,this.state);this.enterRule(t,106,e.RULE_json_query_handler);try{switch(this.state=1486,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,80,this.context)){case 1:this.enterOuterAlt(t,1),this.state=1480,this.match(e.ERROR);break;case 2:this.enterOuterAlt(t,2),this.state=1481,this.match(e.NULL);break;case 3:this.enterOuterAlt(t,3),this.state=1482,this.match(e.EMPTY),this.state=1483,this.match(e.ARRAY);break;case 4:this.enterOuterAlt(t,4),this.state=1484,this.match(e.EMPTY),this.state=1485,this.match(e.OBJECT)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}json_query(){let t,i=new an(this.context,this.state);this.enterRule(i,108,e.RULE_json_query);try{if(this.enterOuterAlt(i,1),1===(this.state=1488,this.match(e.JSON_QUERY),this.state=1489,this.match(e.LPAREN),this.state=1490,this.json_common_args(),this.state=1494,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(322===t||323===t)&&(this.state=1491,this.json_query_wrapper(),this.state=1492,this.match(e.WRAPPER)),this.state=1500,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,82,this.context)))this.state=1496,this.json_query_handler(),this.state=1497,this.match(e.ON),this.state=1498,this.match(e.EMPTY);this.state=1506,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(114===t||120===t||201===t)&&(this.state=1502,this.json_query_handler(),this.state=1503,this.match(e.ON),this.state=1504,this.match(e.ERROR)),this.state=1508,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}smart_parenthesis(){let t,i=new cn(this.context,this.state);this.enterRule(i,110,e.RULE_smart_parenthesis);try{this.enterOuterAlt(i,1),this.state=1510,this.match(e.LPAREN),this.state=1512,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(!(t-14&-32)&&1<<t-14&4286777373||!(t-46&-32)&&1<<t-46&4294963199||!(t-78&-32)&&1<<t-78&4294967295||!(t-110&-32)&&1<<t-110&4294967295||!(t-142&-32)&&1<<t-142&4294967295||!(t-174&-32)&&1<<t-174&4294967295||!(t-206&-32)&&1<<t-206&4294967295||!(t-238&-32)&&1<<t-238&4294967231||!(t-270&-32)&&1<<t-270&4294967295||!(t-302&-32)&&1<<t-302&2147483647)&&(this.state=1511,this.named_expr_list()),this.state=1515,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=1514,this.match(e.COMMA)),this.state=1517,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}expr_list(){let t=new ln(this.context,this.state);this.enterRule(t,112,e.RULE_expr_list);try{let i;for(this.enterOuterAlt(t,1),this.state=1519,this.expr(),this.state=1524,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,86,this.context);2!==i&&i!==Z.INVALID_ALT_NUMBER;)1===i&&(this.state=1520,this.match(e.COMMA),this.state=1521,this.expr()),this.state=1526,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,86,this.context)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}pure_column_list(){let t,i=new hn(this.context,this.state);this.enterRule(i,114,e.RULE_pure_column_list);try{for(this.enterOuterAlt(i,1),this.state=1527,this.match(e.LPAREN),this.state=1528,this.an_id(),this.state=1533,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=1529,this.match(e.COMMA),this.state=1530,this.an_id(),this.state=1535,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=1536,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}pure_column_or_named(){let t=new dn(this.context,this.state);this.enterRule(t,116,e.RULE_pure_column_or_named);try{switch(this.state=1540,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DOLLAR:this.enterOuterAlt(t,1),this.state=1538,this.bind_parameter();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,2),this.state=1539,this.an_id();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}pure_column_or_named_list(){let t,i=new un(this.context,this.state);this.enterRule(i,118,e.RULE_pure_column_or_named_list);try{for(this.enterOuterAlt(i,1),this.state=1542,this.match(e.LPAREN),this.state=1543,this.pure_column_or_named(),this.state=1548,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=1544,this.match(e.COMMA),this.state=1545,this.pure_column_or_named(),this.state=1550,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=1551,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}column_name(){let t=new gn(this.context,this.state);this.enterRule(t,120,e.RULE_column_name);try{this.enterOuterAlt(t,1),this.state=1553,this.opt_id_prefix(),this.state=1554,this.an_id()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}without_column_name(){let t=new pn(this.context,this.state);this.enterRule(t,122,e.RULE_without_column_name);try{switch(this.state=1561,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,90,this.context)){case 1:this.enterOuterAlt(t,1),this.state=1556,this.an_id(),this.state=1557,this.match(e.DOT),this.state=1558,this.an_id();break;case 2:this.enterOuterAlt(t,2),this.state=1560,this.an_id_without()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}column_list(){let t,i=new mn(this.context,this.state);this.enterRule(i,124,e.RULE_column_list);try{let s;for(this.enterOuterAlt(i,1),this.state=1563,this.column_name(),this.state=1568,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,91,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=1564,this.match(e.COMMA),this.state=1565,this.column_name()),this.state=1570,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,91,this.context);this.state=1572,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=1571,this.match(e.COMMA))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}without_column_list(){let t,i=new fn(this.context,this.state);this.enterRule(i,126,e.RULE_without_column_list);try{let s;for(this.enterOuterAlt(i,1),this.state=1574,this.without_column_name(),this.state=1579,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,93,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=1575,this.match(e.COMMA),this.state=1576,this.without_column_name()),this.state=1581,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,93,this.context);this.state=1583,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=1582,this.match(e.COMMA))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}named_expr(){let t,i=new _n(this.context,this.state);this.enterRule(i,128,e.RULE_named_expr);try{this.enterOuterAlt(i,1),this.state=1585,this.expr(),this.state=1588,this.errorHandler.sync(this),t=this.tokenStream.LA(1),49===t&&(this.state=1586,this.match(e.AS),this.state=1587,this.an_id_or_type())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}named_expr_list(){let t=new vn(this.context,this.state);this.enterRule(t,130,e.RULE_named_expr_list);try{let i;for(this.enterOuterAlt(t,1),this.state=1590,this.named_expr(),this.state=1595,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,96,this.context);2!==i&&i!==Z.INVALID_ALT_NUMBER;)1===i&&(this.state=1591,this.match(e.COMMA),this.state=1592,this.named_expr()),this.state=1597,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,96,this.context)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}invoke_expr(){let t,i=new Cn(this.context,this.state);this.enterRule(i,132,e.RULE_invoke_expr);try{switch(this.enterOuterAlt(i,1),this.state=1598,this.match(e.LPAREN),this.state=1605,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.STRUCT_OPEN:case e.PLUS:case e.MINUS:case e.TILDA:case e.LPAREN:case e.DOLLAR:case e.LBRACE_CURLY:case e.LBRACE_SQUARE:case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CALLABLE:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DICT:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ENUM:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FALSE:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FLOW:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LIST:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OPTIONAL:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESOURCE:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SET:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.STRUCT:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TAGGED:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TRUE:case e.TUPLE:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VARIANT:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:case e.DIGITS:case e.INTEGER_VALUE:case e.REAL:case e.BLOB:this.state=1599,this.opt_set_quantifier(),this.state=1600,this.named_expr_list(),this.state=1602,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=1601,this.match(e.COMMA));break;case e.ASTERISK:this.state=1604,this.match(e.ASTERISK);case e.RPAREN:}this.state=1607,this.match(e.RPAREN),this.state=1608,this.invoke_expr_tail()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}invoke_expr_tail(){let t,i=new En(this.context,this.state);this.enterRule(i,134,e.RULE_invoke_expr_tail);try{switch(this.enterOuterAlt(i,1),this.state=1612,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,99,this.context)){case 1:this.state=1610,this.null_treatment();break;case 2:this.state=1611,this.filter_clause()}this.state=1616,this.errorHandler.sync(this),t=this.tokenStream.LA(1),216===t&&(this.state=1614,this.match(e.OVER),this.state=1615,this.window_name_or_specification())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}using_call_expr(){let t=new bn(this.context,this.state);this.enterRule(t,136,e.RULE_using_call_expr);try{switch(this.enterOuterAlt(t,1),this.state=1626,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,101,this.context)){case 1:this.state=1618,this.an_id_or_type(),this.state=1619,this.match(e.NAMESPACE),this.state=1620,this.an_id_or_type();break;case 2:this.state=1622,this.an_id_expr();break;case 3:this.state=1623,this.bind_parameter();break;case 4:this.state=1624,this.match(e.EXTERNAL),this.state=1625,this.match(e.FUNCTION)}this.state=1628,this.invoke_expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}key_expr(){let t=new Sn(this.context,this.state);this.enterRule(t,138,e.RULE_key_expr);try{this.enterOuterAlt(t,1),this.state=1630,this.match(e.LBRACE_SQUARE),this.state=1631,this.expr(),this.state=1632,this.match(e.RBRACE_SQUARE)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}when_expr(){let t=new yn(this.context,this.state);this.enterRule(t,140,e.RULE_when_expr);try{this.enterOuterAlt(t,1),this.state=1634,this.match(e.WHEN),this.state=1635,this.expr(),this.state=1636,this.match(e.THEN),this.state=1637,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}literal_value(){let t=new wn(this.context,this.state);this.enterRule(t,142,e.RULE_literal_value);try{switch(this.state=1649,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DIGITS:case e.INTEGER_VALUE:this.enterOuterAlt(t,1),this.state=1639,this.integer();break;case e.REAL:this.enterOuterAlt(t,2),this.state=1640,this.real();break;case e.STRING_VALUE:this.enterOuterAlt(t,3),this.state=1641,this.match(e.STRING_VALUE);break;case e.BLOB:this.enterOuterAlt(t,4),this.state=1642,this.match(e.BLOB);break;case e.NULL:this.enterOuterAlt(t,5),this.state=1643,this.match(e.NULL);break;case e.CURRENT_TIME:this.enterOuterAlt(t,6),this.state=1644,this.match(e.CURRENT_TIME);break;case e.CURRENT_DATE:this.enterOuterAlt(t,7),this.state=1645,this.match(e.CURRENT_DATE);break;case e.CURRENT_TIMESTAMP:this.enterOuterAlt(t,8),this.state=1646,this.match(e.CURRENT_TIMESTAMP);break;case e.FALSE:case e.TRUE:this.enterOuterAlt(t,9),this.state=1647,this.bool_value();break;case e.EMPTY_ACTION:this.enterOuterAlt(t,10),this.state=1648,this.match(e.EMPTY_ACTION);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}bind_parameter(){let t=new Rn(this.context,this.state);this.enterRule(t,144,e.RULE_bind_parameter);try{switch(this.enterOuterAlt(t,1),this.state=1651,this.match(e.DOLLAR),this.state=1655,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CALLABLE:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DICT:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ENUM:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FLOW:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LIST:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OPTIONAL:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESOURCE:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SET:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.STRUCT:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TAGGED:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TUPLE:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VARIANT:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.state=1652,this.an_id_or_type();break;case e.TRUE:this.state=1653,this.match(e.TRUE);break;case e.FALSE:this.state=1654,this.match(e.FALSE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}opt_bind_parameter(){let t,i=new Ln(this.context,this.state);this.enterRule(i,146,e.RULE_opt_bind_parameter);try{this.enterOuterAlt(i,1),this.state=1657,this.bind_parameter(),this.state=1659,this.errorHandler.sync(this),t=this.tokenStream.LA(1),27===t&&(this.state=1658,this.match(e.QUESTION))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}bind_parameter_list(){let t,i=new Tn(this.context,this.state);this.enterRule(i,148,e.RULE_bind_parameter_list);try{for(this.enterOuterAlt(i,1),this.state=1661,this.bind_parameter(),this.state=1666,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=1662,this.match(e.COMMA),this.state=1663,this.bind_parameter(),this.state=1668,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}named_bind_parameter(){let t,i=new xn(this.context,this.state);this.enterRule(i,150,e.RULE_named_bind_parameter);try{this.enterOuterAlt(i,1),this.state=1669,this.bind_parameter(),this.state=1672,this.errorHandler.sync(this),t=this.tokenStream.LA(1),49===t&&(this.state=1670,this.match(e.AS),this.state=1671,this.bind_parameter())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}named_bind_parameter_list(){let t,i=new kn(this.context,this.state);this.enterRule(i,152,e.RULE_named_bind_parameter_list);try{for(this.enterOuterAlt(i,1),this.state=1674,this.named_bind_parameter(),this.state=1679,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=1675,this.match(e.COMMA),this.state=1676,this.named_bind_parameter(),this.state=1681,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}signed_number(){let t,i=new An(this.context,this.state);this.enterRule(i,154,e.RULE_signed_number);try{switch(this.enterOuterAlt(i,1),this.state=1683,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(16===t||17===t)&&(this.state=1682,t=this.tokenStream.LA(1),16===t||17===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)),this.state=1687,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DIGITS:case e.INTEGER_VALUE:this.state=1685,this.integer();break;case e.REAL:this.state=1686,this.real();break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}type_name_simple(){let t=new Nn(this.context,this.state);this.enterRule(t,156,e.RULE_type_name_simple);try{this.enterOuterAlt(t,1),this.state=1689,this.an_id_pure()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}integer_or_bind(){let t=new In(this.context,this.state);this.enterRule(t,158,e.RULE_integer_or_bind);try{switch(this.state=1693,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DIGITS:case e.INTEGER_VALUE:this.enterOuterAlt(t,1),this.state=1691,this.integer();break;case e.DOLLAR:this.enterOuterAlt(t,2),this.state=1692,this.bind_parameter();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}type_name_tag(){let t=new On(this.context,this.state);this.enterRule(t,160,e.RULE_type_name_tag);try{switch(this.state=1698,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=1695,this.id();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=1696,this.match(e.STRING_VALUE);break;case e.DOLLAR:this.enterOuterAlt(t,3),this.state=1697,this.bind_parameter();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}struct_arg(){let t=new Dn(this.context,this.state);this.enterRule(t,162,e.RULE_struct_arg);try{this.enterOuterAlt(t,1),this.state=1700,this.type_name_tag(),this.state=1701,this.match(e.COLON),this.state=1702,this.type_name_or_bind()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}struct_arg_positional(){let t,i=new Mn(this.context,this.state);this.enterRule(i,164,e.RULE_struct_arg_positional);try{switch(this.state=1716,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,114,this.context)){case 1:this.enterOuterAlt(i,1),this.state=1704,this.type_name_tag(),this.state=1705,this.type_name_or_bind(),this.state=1710,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(199===t||201===t)&&(this.state=1707,this.errorHandler.sync(this),t=this.tokenStream.LA(1),199===t&&(this.state=1706,this.match(e.NOT)),this.state=1709,this.match(e.NULL));break;case 2:this.enterOuterAlt(i,2),this.state=1712,this.type_name_or_bind(),this.state=1713,this.match(e.AS),this.state=1714,this.type_name_tag()}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}variant_arg(){let t=new Pn(this.context,this.state);this.enterRule(t,166,e.RULE_variant_arg);try{if(this.enterOuterAlt(t,1),1===(this.state=1721,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,115,this.context)))this.state=1718,this.type_name_tag(),this.state=1719,this.match(e.COLON);this.state=1723,this.type_name_or_bind()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}callable_arg(){let t,i=new Fn(this.context,this.state);this.enterRule(i,168,e.RULE_callable_arg);try{this.enterOuterAlt(i,1),this.state=1725,this.variant_arg(),this.state=1729,this.errorHandler.sync(this),t=this.tokenStream.LA(1),31===t&&(this.state=1726,this.match(e.LBRACE_CURLY),this.state=1727,this.match(e.AUTOMAP),this.state=1728,this.match(e.RBRACE_CURLY))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}callable_arg_list(){let t=new Un(this.context,this.state);this.enterRule(t,170,e.RULE_callable_arg_list);try{let i;for(this.enterOuterAlt(t,1),this.state=1731,this.callable_arg(),this.state=1736,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,117,this.context);2!==i&&i!==Z.INVALID_ALT_NUMBER;)1===i&&(this.state=1732,this.match(e.COMMA),this.state=1733,this.callable_arg()),this.state=1738,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,117,this.context)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}type_name_decimal(){let t=new Hn(this.context,this.state);this.enterRule(t,172,e.RULE_type_name_decimal);try{this.enterOuterAlt(t,1),this.state=1739,this.match(e.DECIMAL),this.state=1740,this.match(e.LPAREN),this.state=1741,this.integer_or_bind(),this.state=1742,this.match(e.COMMA),this.state=1743,this.integer_or_bind(),this.state=1744,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}type_name_optional(){let t=new Bn(this.context,this.state);this.enterRule(t,174,e.RULE_type_name_optional);try{this.enterOuterAlt(t,1),this.state=1746,this.match(e.OPTIONAL),this.state=1747,this.match(e.LESS),this.state=1748,this.type_name_or_bind(),this.state=1749,this.match(e.GREATER)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}type_name_tuple(){let t,i=new Wn(this.context,this.state);this.enterRule(i,176,e.RULE_type_name_tuple);try{let s;switch(this.enterOuterAlt(i,1),this.state=1751,this.match(e.TUPLE),this.state=1768,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.LESS:if(this.state=1752,this.match(e.LESS),this.state=1764,this.errorHandler.sync(this),t=this.tokenStream.LA(1),30===t||68===t||95===t||105===t||118===t||137===t||183===t||211===t||!(t-248&-32)&&1<<t-248&3229614081||!(t-290&-32)&&1<<t-290&67110913||!(t-326&-32)&&1<<t-326&7){for(this.state=1753,this.type_name_or_bind(),this.state=1758,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,118,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=1754,this.match(e.COMMA),this.state=1755,this.type_name_or_bind()),this.state=1760,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,118,this.context);this.state=1762,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=1761,this.match(e.COMMA))}this.state=1766,this.match(e.GREATER);break;case e.NOT_EQUALS2:this.state=1767,this.match(e.NOT_EQUALS2);break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}type_name_struct(){let t,i=new Vn(this.context,this.state);this.enterRule(i,178,e.RULE_type_name_struct);try{let s;switch(this.enterOuterAlt(i,1),this.state=1770,this.match(e.STRUCT),this.state=1787,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.LESS:if(this.state=1771,this.match(e.LESS),this.state=1783,this.errorHandler.sync(this),t=this.tokenStream.LA(1),!(t-30&-32)&&1<<t-30&4026531585||!(t-62&-32)&&1<<t-62&4294967231||!(t-94&-32)&&1<<t-94&4278188031||!(t-126&-32)&&1<<t-126&4294965183||!(t-158&-32)&&1<<t-158&4261412863||!(t-190&-32)&&1<<t-190&4292870143||!(t-222&-32)&&1<<t-222&4223664127||!(t-254&-32)&&1<<t-254&4261281791||!(t-286&-32)&&1<<t-286&3221176303||!(t-318&-32)&&1<<t-318&2047){for(this.state=1772,this.struct_arg(),this.state=1777,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,122,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=1773,this.match(e.COMMA),this.state=1774,this.struct_arg()),this.state=1779,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,122,this.context);this.state=1781,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=1780,this.match(e.COMMA))}this.state=1785,this.match(e.GREATER);break;case e.NOT_EQUALS2:this.state=1786,this.match(e.NOT_EQUALS2);break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}type_name_variant(){let t,i=new zn(this.context,this.state);this.enterRule(i,180,e.RULE_type_name_variant);try{let s;for(this.enterOuterAlt(i,1),this.state=1789,this.match(e.VARIANT),this.state=1790,this.match(e.LESS),this.state=1791,this.variant_arg(),this.state=1796,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,126,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=1792,this.match(e.COMMA),this.state=1793,this.variant_arg()),this.state=1798,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,126,this.context);this.state=1800,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=1799,this.match(e.COMMA)),this.state=1802,this.match(e.GREATER)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}type_name_list(){let t=new Gn(this.context,this.state);this.enterRule(t,182,e.RULE_type_name_list);try{this.enterOuterAlt(t,1),this.state=1804,this.match(e.LIST),this.state=1805,this.match(e.LESS),this.state=1806,this.type_name_or_bind(),this.state=1807,this.match(e.GREATER)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}type_name_stream(){let t=new jn(this.context,this.state);this.enterRule(t,184,e.RULE_type_name_stream);try{this.enterOuterAlt(t,1),this.state=1809,this.match(e.STREAM),this.state=1810,this.match(e.LESS),this.state=1811,this.type_name_or_bind(),this.state=1812,this.match(e.GREATER)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}type_name_flow(){let t=new Kn(this.context,this.state);this.enterRule(t,186,e.RULE_type_name_flow);try{this.enterOuterAlt(t,1),this.state=1814,this.match(e.FLOW),this.state=1815,this.match(e.LESS),this.state=1816,this.type_name_or_bind(),this.state=1817,this.match(e.GREATER)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}type_name_dict(){let t=new Yn(this.context,this.state);this.enterRule(t,188,e.RULE_type_name_dict);try{this.enterOuterAlt(t,1),this.state=1819,this.match(e.DICT),this.state=1820,this.match(e.LESS),this.state=1821,this.type_name_or_bind(),this.state=1822,this.match(e.COMMA),this.state=1823,this.type_name_or_bind(),this.state=1824,this.match(e.GREATER)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}type_name_set(){let t=new qn(this.context,this.state);this.enterRule(t,190,e.RULE_type_name_set);try{this.enterOuterAlt(t,1),this.state=1826,this.match(e.SET),this.state=1827,this.match(e.LESS),this.state=1828,this.type_name_or_bind(),this.state=1829,this.match(e.GREATER)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}type_name_enum(){let t,i=new $n(this.context,this.state);this.enterRule(i,192,e.RULE_type_name_enum);try{let s;for(this.enterOuterAlt(i,1),this.state=1831,this.match(e.ENUM),this.state=1832,this.match(e.LESS),this.state=1833,this.type_name_tag(),this.state=1838,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,128,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=1834,this.match(e.COMMA),this.state=1835,this.type_name_tag()),this.state=1840,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,128,this.context);this.state=1842,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=1841,this.match(e.COMMA)),this.state=1844,this.match(e.GREATER)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}type_name_resource(){let t=new Qn(this.context,this.state);this.enterRule(t,194,e.RULE_type_name_resource);try{this.enterOuterAlt(t,1),this.state=1846,this.match(e.RESOURCE),this.state=1847,this.match(e.LESS),this.state=1848,this.type_name_tag(),this.state=1849,this.match(e.GREATER)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}type_name_tagged(){let t=new Xn(this.context,this.state);this.enterRule(t,196,e.RULE_type_name_tagged);try{this.enterOuterAlt(t,1),this.state=1851,this.match(e.TAGGED),this.state=1852,this.match(e.LESS),this.state=1853,this.type_name_or_bind(),this.state=1854,this.match(e.COMMA),this.state=1855,this.type_name_tag(),this.state=1856,this.match(e.GREATER)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}type_name_callable(){let t,i=new Zn(this.context,this.state);this.enterRule(i,198,e.RULE_type_name_callable);try{this.enterOuterAlt(i,1),this.state=1858,this.match(e.CALLABLE),this.state=1859,this.match(e.LESS),this.state=1860,this.match(e.LPAREN),this.state=1862,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(!(t-30&-32)&&1<<t-30&4026531585||!(t-62&-32)&&1<<t-62&4294967295||!(t-94&-32)&&1<<t-94&4294967295||!(t-126&-32)&&1<<t-126&4294967231||!(t-158&-32)&&1<<t-158&4294967295||!(t-190&-32)&&1<<t-190&4294967295||!(t-222&-32)&&1<<t-222&4290772991||!(t-254&-32)&&1<<t-254&4294967295||!(t-286&-32)&&1<<t-286&4294950911||!(t-318&-32)&&1<<t-318&2047)&&(this.state=1861,this.callable_arg_list()),this.state=1865,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=1864,this.match(e.COMMA)),this.state=1871,this.errorHandler.sync(this),t=this.tokenStream.LA(1),37===t&&(this.state=1867,this.match(e.LBRACE_SQUARE),this.state=1868,this.callable_arg_list(),this.state=1869,this.match(e.RBRACE_SQUARE)),this.state=1873,this.match(e.RPAREN),this.state=1874,this.match(e.ARROW),this.state=1875,this.type_name_or_bind(),this.state=1876,this.match(e.GREATER)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}type_name_composite(){let t,i=new Jn(this.context,this.state);this.enterRule(i,200,e.RULE_type_name_composite);try{switch(this.enterOuterAlt(i,1),this.state=1891,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.OPTIONAL:this.state=1878,this.type_name_optional();break;case e.TUPLE:this.state=1879,this.type_name_tuple();break;case e.STRUCT:this.state=1880,this.type_name_struct();break;case e.VARIANT:this.state=1881,this.type_name_variant();break;case e.LIST:this.state=1882,this.type_name_list();break;case e.STREAM:this.state=1883,this.type_name_stream();break;case e.FLOW:this.state=1884,this.type_name_flow();break;case e.DICT:this.state=1885,this.type_name_dict();break;case e.SET:this.state=1886,this.type_name_set();break;case e.ENUM:this.state=1887,this.type_name_enum();break;case e.RESOURCE:this.state=1888,this.type_name_resource();break;case e.TAGGED:this.state=1889,this.type_name_tagged();break;case e.CALLABLE:this.state=1890,this.type_name_callable();break;default:throw new lt(this)}for(this.state=1896,this.errorHandler.sync(this),t=this.tokenStream.LA(1);27===t;)this.state=1893,this.match(e.QUESTION),this.state=1898,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}type_name(){let t,i=new er(this.context,this.state);this.enterRule(i,202,e.RULE_type_name);try{switch(this.state=1910,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.CALLABLE:case e.DICT:case e.ENUM:case e.FLOW:case e.LIST:case e.OPTIONAL:case e.RESOURCE:case e.SET:case e.STREAM:case e.STRUCT:case e.TAGGED:case e.TUPLE:case e.VARIANT:this.enterOuterAlt(i,1),this.state=1899,this.type_name_composite();break;case e.DECIMAL:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:switch(this.enterOuterAlt(i,2),this.state=1902,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DECIMAL:this.state=1900,this.type_name_decimal();break;case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.state=1901,this.type_name_simple();break;default:throw new lt(this)}for(this.state=1907,this.errorHandler.sync(this),t=this.tokenStream.LA(1);27===t;)this.state=1904,this.match(e.QUESTION),this.state=1909,this.errorHandler.sync(this),t=this.tokenStream.LA(1);break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}type_name_or_bind(){let t=new tr(this.context,this.state);this.enterRule(t,204,e.RULE_type_name_or_bind);try{switch(this.state=1914,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.CALLABLE:case e.DECIMAL:case e.DICT:case e.ENUM:case e.FLOW:case e.LIST:case e.OPTIONAL:case e.RESOURCE:case e.SET:case e.STREAM:case e.STRUCT:case e.TAGGED:case e.TUPLE:case e.VARIANT:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=1912,this.type_name();break;case e.DOLLAR:this.enterOuterAlt(t,2),this.state=1913,this.bind_parameter();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}value_constructor_literal(){let t=new ir(this.context,this.state);this.enterRule(t,206,e.RULE_value_constructor_literal);try{this.enterOuterAlt(t,1),this.state=1916,this.match(e.STRING_VALUE)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}value_constructor(){let t=new sr(this.context,this.state);this.enterRule(t,208,e.RULE_value_constructor);try{switch(this.state=1941,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.VARIANT:this.enterOuterAlt(t,1),this.state=1918,this.match(e.VARIANT),this.state=1919,this.match(e.LPAREN),this.state=1920,this.expr(),this.state=1921,this.match(e.COMMA),this.state=1922,this.expr(),this.state=1923,this.match(e.COMMA),this.state=1924,this.expr(),this.state=1925,this.match(e.RPAREN);break;case e.ENUM:this.enterOuterAlt(t,2),this.state=1927,this.match(e.ENUM),this.state=1928,this.match(e.LPAREN),this.state=1929,this.expr(),this.state=1930,this.match(e.COMMA),this.state=1931,this.expr(),this.state=1932,this.match(e.RPAREN);break;case e.CALLABLE:this.enterOuterAlt(t,3),this.state=1934,this.match(e.CALLABLE),this.state=1935,this.match(e.LPAREN),this.state=1936,this.expr(),this.state=1937,this.match(e.COMMA),this.state=1938,this.expr(),this.state=1939,this.match(e.RPAREN);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}declare_stmt(){let t,i=new nr(this.context,this.state);this.enterRule(i,210,e.RULE_declare_stmt);try{this.enterOuterAlt(i,1),this.state=1943,this.match(e.DECLARE),this.state=1944,this.bind_parameter(),this.state=1945,this.match(e.AS),this.state=1946,this.type_name(),this.state=1949,this.errorHandler.sync(this),t=this.tokenStream.LA(1),1===t&&(this.state=1947,this.match(e.EQUALS),this.state=1948,this.literal_value())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}module_path(){let t,i=new rr(this.context,this.state);this.enterRule(i,212,e.RULE_module_path);try{for(this.enterOuterAlt(i,1),this.state=1952,this.errorHandler.sync(this),t=this.tokenStream.LA(1),23===t&&(this.state=1951,this.match(e.DOT)),this.state=1954,this.an_id(),this.state=1959,this.errorHandler.sync(this),t=this.tokenStream.LA(1);23===t;)this.state=1955,this.match(e.DOT),this.state=1956,this.an_id(),this.state=1961,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}import_stmt(){let t=new or(this.context,this.state);this.enterRule(t,214,e.RULE_import_stmt);try{this.enterOuterAlt(t,1),this.state=1962,this.match(e.IMPORT),this.state=1963,this.module_path(),this.state=1964,this.match(e.SYMBOLS),this.state=1965,this.named_bind_parameter_list()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}export_stmt(){let t=new ar(this.context,this.state);this.enterRule(t,216,e.RULE_export_stmt);try{this.enterOuterAlt(t,1),this.state=1967,this.match(e.EXPORT),this.state=1968,this.bind_parameter_list()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}call_action(){let t,i=new cr(this.context,this.state);this.enterRule(i,218,e.RULE_call_action);try{switch(this.enterOuterAlt(i,1),this.state=1972,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DOLLAR:this.state=1970,this.bind_parameter();break;case e.EMPTY_ACTION:this.state=1971,this.match(e.EMPTY_ACTION);break;default:throw new lt(this)}this.state=1974,this.match(e.LPAREN),this.state=1976,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(!(t-14&-32)&&1<<t-14&4286777373||!(t-46&-32)&&1<<t-46&4294963199||!(t-78&-32)&&1<<t-78&4294967295||!(t-110&-32)&&1<<t-110&4294967295||!(t-142&-32)&&1<<t-142&4294967295||!(t-174&-32)&&1<<t-174&4294967295||!(t-206&-32)&&1<<t-206&4294967295||!(t-238&-32)&&1<<t-238&4294967231||!(t-270&-32)&&1<<t-270&4294967295||!(t-302&-32)&&1<<t-302&2147483647)&&(this.state=1975,this.expr_list()),this.state=1978,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}inline_action(){let t=new lr(this.context,this.state);this.enterRule(t,220,e.RULE_inline_action);try{this.enterOuterAlt(t,1),this.state=1980,this.match(e.BEGIN),this.state=1981,this.define_action_or_subquery_body(),this.state=1982,this.match(e.END),this.state=1983,this.match(e.DO)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}do_stmt(){let t=new hr(this.context,this.state);this.enterRule(t,222,e.RULE_do_stmt);try{switch(this.enterOuterAlt(t,1),this.state=1985,this.match(e.DO),this.state=1988,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DOLLAR:case e.EMPTY_ACTION:this.state=1986,this.call_action();break;case e.BEGIN:this.state=1987,this.inline_action();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}pragma_stmt(){let t,i=new dr(this.context,this.state);this.enterRule(i,224,e.RULE_pragma_stmt);try{switch(this.enterOuterAlt(i,1),this.state=1990,this.match(e.PRAGMA),this.state=1991,this.opt_id_prefix_or_type(),this.state=1992,this.an_id(),this.state=2006,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.EQUALS:this.state=1993,this.match(e.EQUALS),this.state=1994,this.pragma_value();break;case e.LPAREN:for(this.state=1995,this.match(e.LPAREN),this.state=1996,this.pragma_value(),this.state=2001,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=1997,this.match(e.COMMA),this.state=1998,this.pragma_value(),this.state=2003,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=2004,this.match(e.RPAREN);case e.EOF:case e.SEMICOLON:case e.END:}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}pragma_value(){let t=new ur(this.context,this.state);this.enterRule(t,226,e.RULE_pragma_value);try{switch(this.state=2013,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.PLUS:case e.MINUS:case e.DIGITS:case e.INTEGER_VALUE:case e.REAL:this.enterOuterAlt(t,1),this.state=2008,this.signed_number();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,2),this.state=2009,this.id();break;case e.STRING_VALUE:this.enterOuterAlt(t,3),this.state=2010,this.match(e.STRING_VALUE);break;case e.FALSE:case e.TRUE:this.enterOuterAlt(t,4),this.state=2011,this.bool_value();break;case e.DOLLAR:this.enterOuterAlt(t,5),this.state=2012,this.bind_parameter();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}sort_specification(){let t,i=new gr(this.context,this.state);this.enterRule(i,228,e.RULE_sort_specification);try{this.enterOuterAlt(i,1),this.state=2015,this.expr(),this.state=2017,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(50===t||102===t)&&(this.state=2016,t=this.tokenStream.LA(1),50===t||102===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}sort_specification_list(){let t,i=new pr(this.context,this.state);this.enterRule(i,230,e.RULE_sort_specification_list);try{for(this.enterOuterAlt(i,1),this.state=2019,this.sort_specification(),this.state=2024,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2020,this.match(e.COMMA),this.state=2021,this.sort_specification(),this.state=2026,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}select_stmt(){let t,i=new mr(this.context,this.state);this.enterRule(i,232,e.RULE_select_stmt);try{for(this.enterOuterAlt(i,1),this.state=2027,this.select_kind_parenthesis(),this.state=2033,this.errorHandler.sync(this),t=this.tokenStream.LA(1);123===t||169===t||305===t;)this.state=2028,this.select_op(),this.state=2029,this.select_kind_parenthesis(),this.state=2035,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}select_unparenthesized_stmt(){let t,i=new fr(this.context,this.state);this.enterRule(i,234,e.RULE_select_unparenthesized_stmt);try{for(this.enterOuterAlt(i,1),this.state=2036,this.select_kind_partial(),this.state=2042,this.errorHandler.sync(this),t=this.tokenStream.LA(1);123===t||169===t||305===t;)this.state=2037,this.select_op(),this.state=2038,this.select_kind_parenthesis(),this.state=2044,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}select_kind_parenthesis(){let t=new _r(this.context,this.state);this.enterRule(t,236,e.RULE_select_kind_parenthesis);try{switch(this.state=2050,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DISCARD:case e.FROM:case e.PROCESS:case e.REDUCE:case e.SELECT:this.enterOuterAlt(t,1),this.state=2045,this.select_kind_partial();break;case e.LPAREN:this.enterOuterAlt(t,2),this.state=2046,this.match(e.LPAREN),this.state=2047,this.select_kind_partial(),this.state=2048,this.match(e.RPAREN);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}select_op(){let t,i=new vr(this.context,this.state);this.enterRule(i,238,e.RULE_select_op);try{switch(this.state=2058,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.UNION:this.enterOuterAlt(i,1),this.state=2052,this.match(e.UNION),this.state=2054,this.errorHandler.sync(this),t=this.tokenStream.LA(1),42===t&&(this.state=2053,this.match(e.ALL));break;case e.INTERSECT:this.enterOuterAlt(i,2),this.state=2056,this.match(e.INTERSECT);break;case e.EXCEPT:this.enterOuterAlt(i,3),this.state=2057,this.match(e.EXCEPT);break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}select_kind_partial(){let t,i=new Cr(this.context,this.state);this.enterRule(i,240,e.RULE_select_kind_partial);try{this.enterOuterAlt(i,1),this.state=2060,this.select_kind(),this.state=2067,this.errorHandler.sync(this),t=this.tokenStream.LA(1),182===t&&(this.state=2061,this.match(e.LIMIT),this.state=2062,this.expr(),this.state=2065,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(24===t||205===t)&&(this.state=2063,t=this.tokenStream.LA(1),24===t||205===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=2064,this.expr()))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}select_kind(){let t,i=new Er(this.context,this.state);this.enterRule(i,242,e.RULE_select_kind);try{switch(this.enterOuterAlt(i,1),this.state=2070,this.errorHandler.sync(this),t=this.tokenStream.LA(1),108===t&&(this.state=2069,this.match(e.DISCARD)),this.state=2075,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.PROCESS:this.state=2072,this.process_core();break;case e.REDUCE:this.state=2073,this.reduce_core();break;case e.FROM:case e.SELECT:this.state=2074,this.select_core();break;default:throw new lt(this)}this.state=2080,this.errorHandler.sync(this),t=this.tokenStream.LA(1),170===t&&(this.state=2077,this.match(e.INTO),this.state=2078,this.match(e.RESULT),this.state=2079,this.pure_column_or_named())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}process_core(){let t,i=new br(this.context,this.state);this.enterRule(i,244,e.RULE_process_core);try{if(this.enterOuterAlt(i,1),1===(this.state=2082,this.match(e.PROCESS),this.state=2084,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,161,this.context)))this.state=2083,this.match(e.STREAM);for(this.state=2086,this.named_single_source(),this.state=2091,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2087,this.match(e.COMMA),this.state=2088,this.named_single_source(),this.state=2093,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=2115,this.errorHandler.sync(this),t=this.tokenStream.LA(1),313===t&&(this.state=2094,this.match(e.USING),this.state=2095,this.using_call_expr(),this.state=2098,this.errorHandler.sync(this),t=this.tokenStream.LA(1),49===t&&(this.state=2096,this.match(e.AS),this.state=2097,this.an_id()),this.state=2102,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=2100,this.match(e.WITH),this.state=2101,this.external_call_settings()),this.state=2105,this.errorHandler.sync(this),t=this.tokenStream.LA(1),320===t&&(this.state=2104,this.where_expr()),this.state=2109,this.errorHandler.sync(this),t=this.tokenStream.LA(1),151===t&&(this.state=2107,this.match(e.HAVING),this.state=2108,this.expr()),this.state=2113,this.errorHandler.sync(this),t=this.tokenStream.LA(1),51===t&&(this.state=2111,this.match(e.ASSUME),this.state=2112,this.order_by_clause()))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}external_call_param(){let t=new Sr(this.context,this.state);this.enterRule(t,246,e.RULE_external_call_param);try{this.enterOuterAlt(t,1),this.state=2117,this.an_id(),this.state=2118,this.match(e.EQUALS),this.state=2119,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}external_call_settings(){let t,i=new yr(this.context,this.state);this.enterRule(i,248,e.RULE_external_call_settings);try{for(this.enterOuterAlt(i,1),this.state=2121,this.external_call_param(),this.state=2126,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2122,this.match(e.COMMA),this.state=2123,this.external_call_param(),this.state=2128,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}reduce_core(){let t,i=new wr(this.context,this.state);this.enterRule(i,250,e.RULE_reduce_core);try{for(this.enterOuterAlt(i,1),this.state=2129,this.match(e.REDUCE),this.state=2130,this.named_single_source(),this.state=2135,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2131,this.match(e.COMMA),this.state=2132,this.named_single_source(),this.state=2137,this.errorHandler.sync(this),t=this.tokenStream.LA(1);if(1===(this.state=2140,this.errorHandler.sync(this),t=this.tokenStream.LA(1),229===t&&(this.state=2138,this.match(e.PRESORT),this.state=2139,this.sort_specification_list()),this.state=2142,this.match(e.ON),this.state=2143,this.column_list(),this.state=2144,this.match(e.USING),this.state=2146,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,172,this.context)))this.state=2145,this.match(e.ALL);this.state=2148,this.using_call_expr(),this.state=2151,this.errorHandler.sync(this),t=this.tokenStream.LA(1),49===t&&(this.state=2149,this.match(e.AS),this.state=2150,this.an_id()),this.state=2154,this.errorHandler.sync(this),t=this.tokenStream.LA(1),320===t&&(this.state=2153,this.where_expr()),this.state=2158,this.errorHandler.sync(this),t=this.tokenStream.LA(1),151===t&&(this.state=2156,this.match(e.HAVING),this.state=2157,this.expr()),this.state=2162,this.errorHandler.sync(this),t=this.tokenStream.LA(1),51===t&&(this.state=2160,this.match(e.ASSUME),this.state=2161,this.order_by_clause())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}opt_set_quantifier(){let t,i=new Rr(this.context,this.state);this.enterRule(i,252,e.RULE_opt_set_quantifier);try{if(1===(this.enterOuterAlt(i,1),this.state=2165,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,177,this.context)))this.state=2164,t=this.tokenStream.LA(1),42===t||109===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}select_core(){let t,i=new Lr(this.context,this.state);this.enterRule(i,254,e.RULE_select_core);try{let s;if(this.enterOuterAlt(i,1),1===(this.state=2169,this.errorHandler.sync(this),t=this.tokenStream.LA(1),141===t&&(this.state=2167,this.match(e.FROM),this.state=2168,this.join_source()),this.state=2171,this.match(e.SELECT),this.state=2173,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,179,this.context)))this.state=2172,this.match(e.STREAM);for(this.state=2175,this.opt_set_quantifier(),this.state=2176,this.result_column(),this.state=2181,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,180,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=2177,this.match(e.COMMA),this.state=2178,this.result_column()),this.state=2183,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,180,this.context);this.state=2185,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=2184,this.match(e.COMMA)),this.state=2189,this.errorHandler.sync(this),t=this.tokenStream.LA(1),323===t&&(this.state=2187,this.match(e.WITHOUT),this.state=2188,this.without_column_list()),this.state=2193,this.errorHandler.sync(this),t=this.tokenStream.LA(1),141===t&&(this.state=2191,this.match(e.FROM),this.state=2192,this.join_source()),this.state=2196,this.errorHandler.sync(this),t=this.tokenStream.LA(1),320===t&&(this.state=2195,this.where_expr()),this.state=2199,this.errorHandler.sync(this),t=this.tokenStream.LA(1),147===t&&(this.state=2198,this.group_by_clause()),this.state=2203,this.errorHandler.sync(this),t=this.tokenStream.LA(1),151===t&&(this.state=2201,this.match(e.HAVING),this.state=2202,this.expr()),this.state=2206,this.errorHandler.sync(this),t=this.tokenStream.LA(1),321===t&&(this.state=2205,this.window_clause()),this.state=2209,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(51===t||213===t)&&(this.state=2208,this.ext_order_by_clause())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_recognition_clause(){let t,i=new Tr(this.context,this.state);this.enterRule(i,256,e.RULE_row_pattern_recognition_clause);try{this.enterOuterAlt(i,1),this.state=2211,this.match(e.MATCH_RECOGNIZE),this.state=2212,this.match(e.LPAREN),this.state=2214,this.errorHandler.sync(this),t=this.tokenStream.LA(1),218===t&&(this.state=2213,this.window_partition_clause()),this.state=2217,this.errorHandler.sync(this),t=this.tokenStream.LA(1),213===t&&(this.state=2216,this.order_by_clause()),this.state=2220,this.errorHandler.sync(this),t=this.tokenStream.LA(1),190===t&&(this.state=2219,this.row_pattern_measures()),this.state=2223,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(42===t||208===t)&&(this.state=2222,this.row_pattern_rows_per_match()),this.state=2225,this.row_pattern_common_syntax(),this.state=2226,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_rows_per_match(){let t,i=new xr(this.context,this.state);this.enterRule(i,258,e.RULE_row_pattern_rows_per_match);try{switch(this.state=2239,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ONE:this.enterOuterAlt(i,1),this.state=2228,this.match(e.ONE),this.state=2229,this.match(e.ROW),this.state=2230,this.match(e.PER),this.state=2231,this.match(e.MATCH);break;case e.ALL:this.enterOuterAlt(i,2),this.state=2232,this.match(e.ALL),this.state=2233,this.match(e.ROWS),this.state=2234,this.match(e.PER),this.state=2235,this.match(e.MATCH),this.state=2237,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(206===t||273===t||322===t)&&(this.state=2236,this.row_pattern_empty_match_handling());break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_empty_match_handling(){let t=new kr(this.context,this.state);this.enterRule(t,260,e.RULE_row_pattern_empty_match_handling);try{switch(this.state=2250,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.SHOW:this.enterOuterAlt(t,1),this.state=2241,this.match(e.SHOW),this.state=2242,this.match(e.EMPTY),this.state=2243,this.match(e.MATCHES);break;case e.OMIT:this.enterOuterAlt(t,2),this.state=2244,this.match(e.OMIT),this.state=2245,this.match(e.EMPTY),this.state=2246,this.match(e.MATCHES);break;case e.WITH:this.enterOuterAlt(t,3),this.state=2247,this.match(e.WITH),this.state=2248,this.match(e.UNMATCHED),this.state=2249,this.match(e.ROWS);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_measures(){let t=new Ar(this.context,this.state);this.enterRule(t,262,e.RULE_row_pattern_measures);try{this.enterOuterAlt(t,1),this.state=2252,this.match(e.MEASURES),this.state=2253,this.row_pattern_measure_list()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_measure_list(){let t,i=new Nr(this.context,this.state);this.enterRule(i,264,e.RULE_row_pattern_measure_list);try{for(this.enterOuterAlt(i,1),this.state=2255,this.row_pattern_measure_definition(),this.state=2260,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2256,this.match(e.COMMA),this.state=2257,this.row_pattern_measure_definition(),this.state=2262,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_measure_definition(){let t=new Ir(this.context,this.state);this.enterRule(t,266,e.RULE_row_pattern_measure_definition);try{this.enterOuterAlt(t,1),this.state=2263,this.expr(),this.state=2264,this.match(e.AS),this.state=2265,this.an_id()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_common_syntax(){let t,i=new Or(this.context,this.state);this.enterRule(i,268,e.RULE_row_pattern_common_syntax);try{this.enterOuterAlt(i,1),this.state=2270,this.errorHandler.sync(this),t=this.tokenStream.LA(1),41===t&&(this.state=2267,this.match(e.AFTER),this.state=2268,this.match(e.MATCH),this.state=2269,this.row_pattern_skip_to()),this.state=2273,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(164===t||268===t)&&(this.state=2272,this.row_pattern_initial_or_seek()),this.state=2275,this.match(e.PATTERN),this.state=2276,this.match(e.LPAREN),this.state=2277,this.row_pattern(),this.state=2278,this.match(e.RPAREN),this.state=2280,this.errorHandler.sync(this),t=this.tokenStream.LA(1),281===t&&(this.state=2279,this.row_pattern_subset_clause()),this.state=2282,this.match(e.DEFINE),this.state=2283,this.row_pattern_definition_list()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_skip_to(){let t=new Dr(this.context,this.state);this.enterRule(t,270,e.RULE_row_pattern_skip_to);try{switch(this.state=2304,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,200,this.context)){case 1:this.enterOuterAlt(t,1),this.state=2285,this.match(e.TSKIP),this.state=2286,this.match(e.TO),this.state=2287,this.match(e.NEXT),this.state=2288,this.match(e.ROW);break;case 2:this.enterOuterAlt(t,2),this.state=2289,this.match(e.TSKIP),this.state=2290,this.match(e.PAST),this.state=2291,this.match(e.LAST),this.state=2292,this.match(e.ROW);break;case 3:this.enterOuterAlt(t,3),this.state=2293,this.match(e.TSKIP),this.state=2294,this.match(e.TO),this.state=2295,this.match(e.FIRST),this.state=2296,this.row_pattern_skip_to_variable_name();break;case 4:this.enterOuterAlt(t,4),this.state=2297,this.match(e.TSKIP),this.state=2298,this.match(e.TO),this.state=2299,this.match(e.LAST),this.state=2300,this.row_pattern_skip_to_variable_name();break;case 5:this.enterOuterAlt(t,5),this.state=2301,this.match(e.TSKIP),this.state=2302,this.match(e.TO),this.state=2303,this.row_pattern_skip_to_variable_name()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_skip_to_variable_name(){let t=new Mr(this.context,this.state);this.enterRule(t,272,e.RULE_row_pattern_skip_to_variable_name);try{this.enterOuterAlt(t,1),this.state=2306,this.row_pattern_variable_name()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_initial_or_seek(){let t,i=new Pr(this.context,this.state);this.enterRule(i,274,e.RULE_row_pattern_initial_or_seek);try{this.enterOuterAlt(i,1),this.state=2308,t=this.tokenStream.LA(1),164===t||268===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern(){let t,i=new Fr(this.context,this.state);this.enterRule(i,276,e.RULE_row_pattern);try{for(this.enterOuterAlt(i,1),this.state=2310,this.row_pattern_term(),this.state=2315,this.errorHandler.sync(this),t=this.tokenStream.LA(1);12===t;)this.state=2311,this.match(e.PIPE),this.state=2312,this.row_pattern_term(),this.state=2317,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_term(){let t,i=new Ur(this.context,this.state);this.enterRule(i,278,e.RULE_row_pattern_term);try{this.enterOuterAlt(i,1),this.state=2319,this.errorHandler.sync(this),t=this.tokenStream.LA(1);do{this.state=2318,this.row_pattern_factor(),this.state=2321,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}while(!(t-25&-32)&&1<<t-25&353||224===t||327===t||328===t)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_factor(){let t=new Hr(this.context,this.state);this.enterRule(t,280,e.RULE_row_pattern_factor);try{if(1===(this.enterOuterAlt(t,1),this.state=2323,this.row_pattern_primary(),this.state=2325,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,203,this.context)))this.state=2324,this.row_pattern_quantifier()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_quantifier(){let t,i=new Br(this.context,this.state);this.enterRule(i,282,e.RULE_row_pattern_quantifier);try{switch(this.state=2355,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,210,this.context)){case 1:this.enterOuterAlt(i,1),this.state=2327,this.match(e.ASTERISK),this.state=2329,this.errorHandler.sync(this),t=this.tokenStream.LA(1),27===t&&(this.state=2328,this.match(e.QUESTION));break;case 2:this.enterOuterAlt(i,2),this.state=2331,this.match(e.PLUS),this.state=2333,this.errorHandler.sync(this),t=this.tokenStream.LA(1),27===t&&(this.state=2332,this.match(e.QUESTION));break;case 3:this.enterOuterAlt(i,3),this.state=2335,this.match(e.QUESTION),this.state=2337,this.errorHandler.sync(this),t=this.tokenStream.LA(1),27===t&&(this.state=2336,this.match(e.QUESTION));break;case 4:this.enterOuterAlt(i,4),this.state=2339,this.match(e.LBRACE_CURLY),this.state=2341,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(329===t||330===t)&&(this.state=2340,this.integer()),this.state=2343,this.match(e.COMMA),this.state=2345,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(329===t||330===t)&&(this.state=2344,this.integer()),this.state=2347,this.match(e.RBRACE_CURLY),this.state=2349,this.errorHandler.sync(this),t=this.tokenStream.LA(1),27===t&&(this.state=2348,this.match(e.QUESTION));break;case 5:this.enterOuterAlt(i,5),this.state=2351,this.match(e.LBRACE_CURLY),this.state=2352,this.integer(),this.state=2353,this.match(e.RBRACE_CURLY)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_primary(){let t,i=new Wr(this.context,this.state);this.enterRule(i,284,e.RULE_row_pattern_primary);try{switch(this.state=2372,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(i,1),this.state=2357,this.row_pattern_primary_variable_name();break;case e.DOLLAR:this.enterOuterAlt(i,2),this.state=2358,this.match(e.DOLLAR);break;case e.CARET:this.enterOuterAlt(i,3),this.state=2359,this.match(e.CARET);break;case e.LPAREN:this.enterOuterAlt(i,4),this.state=2360,this.match(e.LPAREN),this.state=2362,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(!(t-25&-32)&&1<<t-25&353||224===t||327===t||328===t)&&(this.state=2361,this.row_pattern()),this.state=2364,this.match(e.RPAREN);break;case e.LBRACE_CURLY:this.enterOuterAlt(i,5),this.state=2365,this.match(e.LBRACE_CURLY),this.state=2366,this.match(e.MINUS),this.state=2367,this.row_pattern(),this.state=2368,this.match(e.MINUS),this.state=2369,this.match(e.RBRACE_CURLY);break;case e.PERMUTE:this.enterOuterAlt(i,6),this.state=2371,this.row_pattern_permute();break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_primary_variable_name(){let t=new Vr(this.context,this.state);this.enterRule(t,286,e.RULE_row_pattern_primary_variable_name);try{this.enterOuterAlt(t,1),this.state=2374,this.row_pattern_variable_name()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_permute(){let t,i=new zr(this.context,this.state);this.enterRule(i,288,e.RULE_row_pattern_permute);try{for(this.enterOuterAlt(i,1),this.state=2376,this.match(e.PERMUTE),this.state=2377,this.match(e.LPAREN),this.state=2378,this.row_pattern(),this.state=2383,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2379,this.match(e.COMMA),this.state=2380,this.row_pattern(),this.state=2385,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=2386,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_subset_clause(){let t=new Gr(this.context,this.state);this.enterRule(t,290,e.RULE_row_pattern_subset_clause);try{this.enterOuterAlt(t,1),this.state=2388,this.match(e.SUBSET),this.state=2389,this.row_pattern_subset_list()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_subset_list(){let t,i=new jr(this.context,this.state);this.enterRule(i,292,e.RULE_row_pattern_subset_list);try{for(this.enterOuterAlt(i,1),this.state=2391,this.row_pattern_subset_item(),this.state=2396,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2392,this.match(e.COMMA),this.state=2393,this.row_pattern_subset_item(),this.state=2398,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_subset_item(){let t=new Kr(this.context,this.state);this.enterRule(t,294,e.RULE_row_pattern_subset_item);try{this.enterOuterAlt(t,1),this.state=2399,this.row_pattern_subset_item_variable_name(),this.state=2400,this.match(e.EQUALS),this.state=2401,this.match(e.LPAREN),this.state=2402,this.row_pattern_subset_rhs(),this.state=2403,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_subset_item_variable_name(){let t=new Yr(this.context,this.state);this.enterRule(t,296,e.RULE_row_pattern_subset_item_variable_name);try{this.enterOuterAlt(t,1),this.state=2405,this.row_pattern_variable_name()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_subset_rhs(){let t,i=new qr(this.context,this.state);this.enterRule(i,298,e.RULE_row_pattern_subset_rhs);try{for(this.enterOuterAlt(i,1),this.state=2407,this.row_pattern_subset_rhs_variable_name(),this.state=2412,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2408,this.match(e.COMMA),this.state=2409,this.row_pattern_subset_rhs_variable_name(),this.state=2414,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_subset_rhs_variable_name(){let t=new $r(this.context,this.state);this.enterRule(t,300,e.RULE_row_pattern_subset_rhs_variable_name);try{this.enterOuterAlt(t,1),this.state=2415,this.row_pattern_variable_name()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_definition_list(){let t,i=new Qr(this.context,this.state);this.enterRule(i,302,e.RULE_row_pattern_definition_list);try{for(this.enterOuterAlt(i,1),this.state=2417,this.row_pattern_definition(),this.state=2422,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2418,this.match(e.COMMA),this.state=2419,this.row_pattern_definition(),this.state=2424,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_definition(){let t=new Xr(this.context,this.state);this.enterRule(t,304,e.RULE_row_pattern_definition);try{this.enterOuterAlt(t,1),this.state=2425,this.row_pattern_definition_variable_name(),this.state=2426,this.match(e.AS),this.state=2427,this.row_pattern_definition_search_condition()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_definition_variable_name(){let t=new Zr(this.context,this.state);this.enterRule(t,306,e.RULE_row_pattern_definition_variable_name);try{this.enterOuterAlt(t,1),this.state=2429,this.row_pattern_variable_name()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_definition_search_condition(){let t=new Jr(this.context,this.state);this.enterRule(t,308,e.RULE_row_pattern_definition_search_condition);try{this.enterOuterAlt(t,1),this.state=2431,this.search_condition()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}search_condition(){let t=new eo(this.context,this.state);this.enterRule(t,310,e.RULE_search_condition);try{this.enterOuterAlt(t,1),this.state=2433,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_variable_name(){let t=new to(this.context,this.state);this.enterRule(t,312,e.RULE_row_pattern_variable_name);try{this.enterOuterAlt(t,1),this.state=2435,this.identifier()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}order_by_clause(){let t=new io(this.context,this.state);this.enterRule(t,314,e.RULE_order_by_clause);try{this.enterOuterAlt(t,1),this.state=2437,this.match(e.ORDER),this.state=2438,this.match(e.BY),this.state=2439,this.sort_specification_list()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}ext_order_by_clause(){let t,i=new so(this.context,this.state);this.enterRule(i,316,e.RULE_ext_order_by_clause);try{this.enterOuterAlt(i,1),this.state=2442,this.errorHandler.sync(this),t=this.tokenStream.LA(1),51===t&&(this.state=2441,this.match(e.ASSUME)),this.state=2444,this.order_by_clause()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}group_by_clause(){let t,i=new no(this.context,this.state);this.enterRule(i,318,e.RULE_group_by_clause);try{this.enterOuterAlt(i,1),this.state=2446,this.match(e.GROUP),this.state=2448,this.errorHandler.sync(this),t=this.tokenStream.LA(1),79===t&&(this.state=2447,this.match(e.COMPACT)),this.state=2450,this.match(e.BY),this.state=2451,this.opt_set_quantifier(),this.state=2452,this.grouping_element_list(),this.state=2455,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=2453,this.match(e.WITH),this.state=2454,this.an_id())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}grouping_element_list(){let t,i=new ro(this.context,this.state);this.enterRule(i,320,e.RULE_grouping_element_list);try{for(this.enterOuterAlt(i,1),this.state=2457,this.grouping_element(),this.state=2462,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2458,this.match(e.COMMA),this.state=2459,this.grouping_element(),this.state=2464,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}grouping_element(){let t=new oo(this.context,this.state);this.enterRule(t,322,e.RULE_grouping_element);try{switch(this.state=2470,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,221,this.context)){case 1:this.enterOuterAlt(t,1),this.state=2465,this.ordinary_grouping_set();break;case 2:this.enterOuterAlt(t,2),this.state=2466,this.rollup_list();break;case 3:this.enterOuterAlt(t,3),this.state=2467,this.cube_list();break;case 4:this.enterOuterAlt(t,4),this.state=2468,this.grouping_sets_specification();break;case 5:this.enterOuterAlt(t,5),this.state=2469,this.hopping_window_specification()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}ordinary_grouping_set(){let t=new ao(this.context,this.state);this.enterRule(t,324,e.RULE_ordinary_grouping_set);try{this.enterOuterAlt(t,1),this.state=2472,this.named_expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}ordinary_grouping_set_list(){let t,i=new co(this.context,this.state);this.enterRule(i,326,e.RULE_ordinary_grouping_set_list);try{for(this.enterOuterAlt(i,1),this.state=2474,this.ordinary_grouping_set(),this.state=2479,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2475,this.match(e.COMMA),this.state=2476,this.ordinary_grouping_set(),this.state=2481,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}rollup_list(){let t=new lo(this.context,this.state);this.enterRule(t,328,e.RULE_rollup_list);try{this.enterOuterAlt(t,1),this.state=2482,this.match(e.ROLLUP),this.state=2483,this.match(e.LPAREN),this.state=2484,this.ordinary_grouping_set_list(),this.state=2485,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}cube_list(){let t=new ho(this.context,this.state);this.enterRule(t,330,e.RULE_cube_list);try{this.enterOuterAlt(t,1),this.state=2487,this.match(e.CUBE),this.state=2488,this.match(e.LPAREN),this.state=2489,this.ordinary_grouping_set_list(),this.state=2490,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}grouping_sets_specification(){let t=new uo(this.context,this.state);this.enterRule(t,332,e.RULE_grouping_sets_specification);try{this.enterOuterAlt(t,1),this.state=2492,this.match(e.GROUPING),this.state=2493,this.match(e.SETS),this.state=2494,this.match(e.LPAREN),this.state=2495,this.grouping_element_list(),this.state=2496,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}hopping_window_specification(){let t=new go(this.context,this.state);this.enterRule(t,334,e.RULE_hopping_window_specification);try{this.enterOuterAlt(t,1),this.state=2498,this.match(e.HOP),this.state=2499,this.match(e.LPAREN),this.state=2500,this.expr(),this.state=2501,this.match(e.COMMA),this.state=2502,this.expr(),this.state=2503,this.match(e.COMMA),this.state=2504,this.expr(),this.state=2505,this.match(e.COMMA),this.state=2506,this.expr(),this.state=2507,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}result_column(){let t=new po(this.context,this.state);this.enterRule(t,336,e.RULE_result_column);try{switch(this.state=2518,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,224,this.context)){case 1:this.enterOuterAlt(t,1),this.state=2509,this.opt_id_prefix(),this.state=2510,this.match(e.ASTERISK);break;case 2:switch(this.enterOuterAlt(t,2),this.state=2512,this.expr(),this.state=2516,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,223,this.context)){case 1:this.state=2513,this.match(e.AS),this.state=2514,this.an_id_or_type();break;case 2:this.state=2515,this.an_id_as_compat()}}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}join_source(){let t,i=new mo(this.context,this.state);this.enterRule(i,338,e.RULE_join_source);try{if(this.enterOuterAlt(i,1),1===(this.state=2521,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,225,this.context)))this.state=2520,this.match(e.ANY);for(this.state=2523,this.flatten_source(),this.state=2534,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t||87===t||125===t||142===t||!(t-166&-32)&&1<<t-166&536879233||215===t||258===t;){if(1===(this.state=2524,this.join_op(),this.state=2526,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,226,this.context)))this.state=2525,this.match(e.ANY);this.state=2528,this.flatten_source(),this.state=2530,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(207===t||313===t)&&(this.state=2529,this.join_constraint()),this.state=2536,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}named_column(){let t,i=new fo(this.context,this.state);this.enterRule(i,340,e.RULE_named_column);try{this.enterOuterAlt(i,1),this.state=2537,this.column_name(),this.state=2540,this.errorHandler.sync(this),t=this.tokenStream.LA(1),49===t&&(this.state=2538,this.match(e.AS),this.state=2539,this.an_id())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}flatten_by_arg(){let t,i=new _o(this.context,this.state);this.enterRule(i,342,e.RULE_flatten_by_arg);try{switch(this.state=2550,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(i,1),this.state=2542,this.named_column();break;case e.LPAREN:this.enterOuterAlt(i,2),this.state=2543,this.match(e.LPAREN),this.state=2544,this.named_expr_list(),this.state=2546,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=2545,this.match(e.COMMA)),this.state=2548,this.match(e.RPAREN);break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}flatten_source(){let t,i=new vo(this.context,this.state);this.enterRule(i,344,e.RULE_flatten_source);try{if(this.enterOuterAlt(i,1),this.state=2552,this.named_single_source(),this.state=2562,this.errorHandler.sync(this),t=this.tokenStream.LA(1),136===t)switch(this.state=2553,this.match(e.FLATTEN),this.state=2560,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.BY:case e.DICT:case e.LIST:case e.OPTIONAL:this.state=2555,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(105===t||183===t||211===t)&&(this.state=2554,t=this.tokenStream.LA(1),105===t||183===t||211===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)),this.state=2557,this.match(e.BY),this.state=2558,this.flatten_by_arg();break;case e.COLUMNS:this.state=2559,this.match(e.COLUMNS);break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}named_single_source(){let t,i=new Co(this.context,this.state);this.enterRule(i,346,e.RULE_named_single_source);try{if(this.enterOuterAlt(i,1),1===(this.state=2564,this.single_source(),this.state=2566,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,235,this.context)))this.state=2565,this.row_pattern_recognition_clause();if(1===(this.state=2576,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,238,this.context))){switch(this.state=2571,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.AS:this.state=2568,this.match(e.AS),this.state=2569,this.an_id();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.LAST:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.OTHERS:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.REVERT:case e.REVOKE:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.VACUUM:case e.VALUES:case e.VIRTUAL:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.state=2570,this.an_id_as_compat();break;default:throw new lt(this)}this.state=2574,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=2573,this.pure_column_list())}switch(this.state=2580,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.SAMPLE:this.state=2578,this.sample_clause();break;case e.TABLESAMPLE:this.state=2579,this.tablesample_clause();case e.EOF:case e.SEMICOLON:case e.COMMA:case e.RPAREN:case e.ASSUME:case e.CROSS:case e.END:case e.EXCEPT:case e.EXCLUSION:case e.FLATTEN:case e.FULL:case e.GROUP:case e.HAVING:case e.INNER:case e.INTERSECT:case e.INTO:case e.JOIN:case e.LEFT:case e.LIMIT:case e.NATURAL:case e.ON:case e.ORDER:case e.OUTER:case e.PRESORT:case e.RETURNING:case e.RIGHT:case e.SELECT:case e.UNION:case e.USING:case e.WHERE:case e.WINDOW:}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}single_source(){let t=new Eo(this.context,this.state);this.enterRule(t,348,e.RULE_single_source);try{switch(this.state=2591,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,240,this.context)){case 1:this.enterOuterAlt(t,1),this.state=2582,this.table_ref();break;case 2:this.enterOuterAlt(t,2),this.state=2583,this.match(e.LPAREN),this.state=2584,this.select_stmt(),this.state=2585,this.match(e.RPAREN);break;case 3:this.enterOuterAlt(t,3),this.state=2587,this.match(e.LPAREN),this.state=2588,this.values_stmt(),this.state=2589,this.match(e.RPAREN)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}sample_clause(){let t=new bo(this.context,this.state);this.enterRule(t,350,e.RULE_sample_clause);try{this.enterOuterAlt(t,1),this.state=2593,this.match(e.SAMPLE),this.state=2594,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}tablesample_clause(){let t,i=new So(this.context,this.state);this.enterRule(i,352,e.RULE_tablesample_clause);try{this.enterOuterAlt(i,1),this.state=2596,this.match(e.TABLESAMPLE),this.state=2597,this.sampling_mode(),this.state=2598,this.match(e.LPAREN),this.state=2599,this.expr(),this.state=2600,this.match(e.RPAREN),this.state=2602,this.errorHandler.sync(this),t=this.tokenStream.LA(1),244===t&&(this.state=2601,this.repeatable_clause())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}sampling_mode(){let t,i=new yo(this.context,this.state);this.enterRule(i,354,e.RULE_sampling_mode);try{this.enterOuterAlt(i,1),this.state=2604,t=this.tokenStream.LA(1),64===t||285===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}repeatable_clause(){let t=new wo(this.context,this.state);this.enterRule(t,356,e.RULE_repeatable_clause);try{this.enterOuterAlt(t,1),this.state=2606,this.match(e.REPEATABLE),this.state=2607,this.match(e.LPAREN),this.state=2608,this.expr(),this.state=2609,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}join_op(){let t,i=new Ro(this.context,this.state);this.enterRule(i,358,e.RULE_join_op);try{switch(this.state=2635,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.COMMA:this.enterOuterAlt(i,1),this.state=2611,this.match(e.COMMA);break;case e.CROSS:case e.EXCLUSION:case e.FULL:case e.INNER:case e.JOIN:case e.LEFT:case e.NATURAL:case e.OUTER:case e.RIGHT:switch(this.enterOuterAlt(i,2),this.state=2613,this.errorHandler.sync(this),t=this.tokenStream.LA(1),195===t&&(this.state=2612,this.match(e.NATURAL)),this.state=2632,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.EXCLUSION:case e.FULL:case e.JOIN:case e.LEFT:case e.OUTER:case e.RIGHT:switch(this.state=2625,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.LEFT:this.state=2615,this.match(e.LEFT),this.state=2617,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(209===t||270===t)&&(this.state=2616,t=this.tokenStream.LA(1),209===t||270===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this));break;case e.RIGHT:this.state=2619,this.match(e.RIGHT),this.state=2621,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(209===t||270===t)&&(this.state=2620,t=this.tokenStream.LA(1),209===t||270===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this));break;case e.EXCLUSION:this.state=2623,this.match(e.EXCLUSION);break;case e.FULL:this.state=2624,this.match(e.FULL);case e.JOIN:case e.OUTER:}this.state=2628,this.errorHandler.sync(this),t=this.tokenStream.LA(1),215===t&&(this.state=2627,this.match(e.OUTER));break;case e.INNER:this.state=2630,this.match(e.INNER);break;case e.CROSS:this.state=2631,this.match(e.CROSS);break;default:throw new lt(this)}this.state=2634,this.match(e.JOIN);break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}join_constraint(){let t=new Lo(this.context,this.state);this.enterRule(t,360,e.RULE_join_constraint);try{switch(this.state=2641,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ON:this.enterOuterAlt(t,1),this.state=2637,this.match(e.ON),this.state=2638,this.expr();break;case e.USING:this.enterOuterAlt(t,2),this.state=2639,this.match(e.USING),this.state=2640,this.pure_column_or_named_list();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}returning_columns_list(){let t,i=new To(this.context,this.state);this.enterRule(i,362,e.RULE_returning_columns_list);try{switch(this.enterOuterAlt(i,1),this.state=2643,this.match(e.RETURNING),this.state=2653,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ASTERISK:this.state=2644,this.match(e.ASTERISK);break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:for(this.state=2645,this.an_id(),this.state=2650,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2646,this.match(e.COMMA),this.state=2647,this.an_id(),this.state=2652,this.errorHandler.sync(this),t=this.tokenStream.LA(1);break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}into_table_stmt(){let t,i=new xo(this.context,this.state);this.enterRule(i,364,e.RULE_into_table_stmt);try{switch(this.enterOuterAlt(i,1),this.state=2667,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,252,this.context)){case 1:this.state=2655,this.match(e.INSERT);break;case 2:this.state=2656,this.match(e.INSERT),this.state=2657,this.match(e.OR),this.state=2658,this.match(e.ABORT);break;case 3:this.state=2659,this.match(e.INSERT),this.state=2660,this.match(e.OR),this.state=2661,this.match(e.REVERT);break;case 4:this.state=2662,this.match(e.INSERT),this.state=2663,this.match(e.OR),this.state=2664,this.match(e.IGNORE);break;case 5:this.state=2665,this.match(e.UPSERT);break;case 6:this.state=2666,this.match(e.REPLACE)}this.state=2669,this.match(e.INTO),this.state=2670,this.into_simple_table_ref(),this.state=2671,this.into_values_source(),this.state=2673,this.errorHandler.sync(this),t=this.tokenStream.LA(1),255===t&&(this.state=2672,this.returning_columns_list())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}into_table_stmt_yq(){let t=new ko(this.context,this.state);this.enterRule(t,366,e.RULE_into_table_stmt_yq);try{switch(this.enterOuterAlt(t,1),this.state=2686,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,254,this.context)){case 1:this.state=2675,this.match(e.INSERT);break;case 2:this.state=2676,this.match(e.INSERT),this.state=2677,this.match(e.OR),this.state=2678,this.match(e.ABORT);break;case 3:this.state=2679,this.match(e.INSERT),this.state=2680,this.match(e.OR),this.state=2681,this.match(e.REVERT);break;case 4:this.state=2682,this.match(e.INSERT),this.state=2683,this.match(e.OR),this.state=2684,this.match(e.IGNORE);break;case 5:this.state=2685,this.match(e.REPLACE)}this.state=2688,this.match(e.INTO),this.state=2689,this.into_simple_table_ref(),this.state=2690,this.into_values_source()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}into_values_source(){let t=new Ao(this.context,this.state);this.enterRule(t,368,e.RULE_into_values_source);try{switch(this.state=2698,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.LPAREN:case e.DISCARD:case e.FROM:case e.PROCESS:case e.REDUCE:case e.SELECT:case e.VALUES:if(this.enterOuterAlt(t,1),1===(this.state=2693,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,255,this.context)))this.state=2692,this.pure_column_list();this.state=2695,this.values_source();break;case e.DEFAULT:this.enterOuterAlt(t,2),this.state=2696,this.match(e.DEFAULT),this.state=2697,this.match(e.VALUES);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}values_stmt(){let t=new No(this.context,this.state);this.enterRule(t,370,e.RULE_values_stmt);try{this.enterOuterAlt(t,1),this.state=2700,this.match(e.VALUES),this.state=2701,this.values_source_row_list()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}values_source(){let t=new Io(this.context,this.state);this.enterRule(t,372,e.RULE_values_source);try{switch(this.state=2705,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.VALUES:this.enterOuterAlt(t,1),this.state=2703,this.values_stmt();break;case e.LPAREN:case e.DISCARD:case e.FROM:case e.PROCESS:case e.REDUCE:case e.SELECT:this.enterOuterAlt(t,2),this.state=2704,this.select_stmt();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}values_source_row_list(){let t,i=new Oo(this.context,this.state);this.enterRule(i,374,e.RULE_values_source_row_list);try{for(this.enterOuterAlt(i,1),this.state=2707,this.values_source_row(),this.state=2712,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2708,this.match(e.COMMA),this.state=2709,this.values_source_row(),this.state=2714,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}values_source_row(){let t=new Do(this.context,this.state);this.enterRule(t,376,e.RULE_values_source_row);try{this.enterOuterAlt(t,1),this.state=2715,this.match(e.LPAREN),this.state=2716,this.expr_list(),this.state=2717,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}simple_values_source(){let t=new Mo(this.context,this.state);this.enterRule(t,378,e.RULE_simple_values_source);try{switch(this.state=2721,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,259,this.context)){case 1:this.enterOuterAlt(t,1),this.state=2719,this.expr_list();break;case 2:this.enterOuterAlt(t,2),this.state=2720,this.select_stmt()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}create_external_data_source_stmt(){let t,i=new Po(this.context,this.state);this.enterRule(i,380,e.RULE_create_external_data_source_stmt);try{if(this.enterOuterAlt(i,1),1===(this.state=2723,this.match(e.CREATE),this.state=2726,this.errorHandler.sync(this),t=this.tokenStream.LA(1),212===t&&(this.state=2724,this.match(e.OR),this.state=2725,this.match(e.REPLACE)),this.state=2728,this.match(e.EXTERNAL),this.state=2729,this.match(e.DATA),this.state=2730,this.match(e.SOURCE),this.state=2734,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,261,this.context)))this.state=2731,this.match(e.IF),this.state=2732,this.match(e.NOT),this.state=2733,this.match(e.EXISTS);this.state=2736,this.object_ref(),this.state=2737,this.with_table_settings()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_external_data_source_stmt(){let t,i=new Fo(this.context,this.state);this.enterRule(i,382,e.RULE_alter_external_data_source_stmt);try{for(this.enterOuterAlt(i,1),this.state=2739,this.match(e.ALTER),this.state=2740,this.match(e.EXTERNAL),this.state=2741,this.match(e.DATA),this.state=2742,this.match(e.SOURCE),this.state=2743,this.object_ref(),this.state=2744,this.alter_external_data_source_action(),this.state=2749,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2745,this.match(e.COMMA),this.state=2746,this.alter_external_data_source_action(),this.state=2751,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_external_data_source_action(){let t=new Uo(this.context,this.state);this.enterRule(t,384,e.RULE_alter_external_data_source_action);try{switch(this.state=2755,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,263,this.context)){case 1:this.enterOuterAlt(t,1),this.state=2752,this.alter_table_set_table_setting_uncompat();break;case 2:this.enterOuterAlt(t,2),this.state=2753,this.alter_table_set_table_setting_compat();break;case 3:this.enterOuterAlt(t,3),this.state=2754,this.alter_table_reset_table_setting()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}drop_external_data_source_stmt(){let t=new Ho(this.context,this.state);this.enterRule(t,386,e.RULE_drop_external_data_source_stmt);try{if(this.enterOuterAlt(t,1),1===(this.state=2757,this.match(e.DROP),this.state=2758,this.match(e.EXTERNAL),this.state=2759,this.match(e.DATA),this.state=2760,this.match(e.SOURCE),this.state=2763,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,264,this.context)))this.state=2761,this.match(e.IF),this.state=2762,this.match(e.EXISTS);this.state=2765,this.object_ref()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}create_view_stmt(){let t,i=new Bo(this.context,this.state);this.enterRule(i,388,e.RULE_create_view_stmt);try{if(this.enterOuterAlt(i,1),1===(this.state=2767,this.match(e.CREATE),this.state=2768,this.match(e.VIEW),this.state=2772,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,265,this.context)))this.state=2769,this.match(e.IF),this.state=2770,this.match(e.NOT),this.state=2771,this.match(e.EXISTS);this.state=2774,this.object_ref(),this.state=2776,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=2775,this.create_object_features()),this.state=2778,this.match(e.AS),this.state=2779,this.select_stmt()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}drop_view_stmt(){let t=new Wo(this.context,this.state);this.enterRule(t,390,e.RULE_drop_view_stmt);try{if(this.enterOuterAlt(t,1),1===(this.state=2781,this.match(e.DROP),this.state=2782,this.match(e.VIEW),this.state=2785,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,267,this.context)))this.state=2783,this.match(e.IF),this.state=2784,this.match(e.EXISTS);this.state=2787,this.object_ref()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}upsert_object_stmt(){let t,i=new Vo(this.context,this.state);this.enterRule(i,392,e.RULE_upsert_object_stmt);try{this.enterOuterAlt(i,1),this.state=2789,this.match(e.UPSERT),this.state=2790,this.match(e.OBJECT),this.state=2791,this.object_ref(),this.state=2792,this.match(e.LPAREN),this.state=2793,this.match(e.TYPE),this.state=2794,this.object_type_ref(),this.state=2795,this.match(e.RPAREN),this.state=2797,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=2796,this.create_object_features())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}create_object_stmt(){let t,i=new zo(this.context,this.state);this.enterRule(i,394,e.RULE_create_object_stmt);try{if(this.enterOuterAlt(i,1),1===(this.state=2799,this.match(e.CREATE),this.state=2800,this.match(e.OBJECT),this.state=2804,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,269,this.context)))this.state=2801,this.match(e.IF),this.state=2802,this.match(e.NOT),this.state=2803,this.match(e.EXISTS);this.state=2806,this.object_ref(),this.state=2807,this.match(e.LPAREN),this.state=2808,this.match(e.TYPE),this.state=2809,this.object_type_ref(),this.state=2810,this.match(e.RPAREN),this.state=2812,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=2811,this.create_object_features())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}create_object_features(){let t=new Go(this.context,this.state);this.enterRule(t,396,e.RULE_create_object_features);try{this.enterOuterAlt(t,1),this.state=2814,this.match(e.WITH),this.state=2815,this.object_features()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_object_stmt(){let t=new jo(this.context,this.state);this.enterRule(t,398,e.RULE_alter_object_stmt);try{this.enterOuterAlt(t,1),this.state=2817,this.match(e.ALTER),this.state=2818,this.match(e.OBJECT),this.state=2819,this.object_ref(),this.state=2820,this.match(e.LPAREN),this.state=2821,this.match(e.TYPE),this.state=2822,this.object_type_ref(),this.state=2823,this.match(e.RPAREN),this.state=2824,this.alter_object_features()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_object_features(){let t=new Ko(this.context,this.state);this.enterRule(t,400,e.RULE_alter_object_features);try{this.enterOuterAlt(t,1),this.state=2826,this.match(e.SET),this.state=2827,this.object_features()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}drop_object_stmt(){let t,i=new Yo(this.context,this.state);this.enterRule(i,402,e.RULE_drop_object_stmt);try{if(this.enterOuterAlt(i,1),1===(this.state=2829,this.match(e.DROP),this.state=2830,this.match(e.OBJECT),this.state=2833,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,271,this.context)))this.state=2831,this.match(e.IF),this.state=2832,this.match(e.EXISTS);this.state=2835,this.object_ref(),this.state=2836,this.match(e.LPAREN),this.state=2837,this.match(e.TYPE),this.state=2838,this.object_type_ref(),this.state=2839,this.match(e.RPAREN),this.state=2841,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=2840,this.drop_object_features())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}drop_object_features(){let t=new qo(this.context,this.state);this.enterRule(t,404,e.RULE_drop_object_features);try{this.enterOuterAlt(t,1),this.state=2843,this.match(e.WITH),this.state=2844,this.object_features()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}object_feature_value(){let t=new $o(this.context,this.state);this.enterRule(t,406,e.RULE_object_feature_value);try{switch(this.state=2850,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CALLABLE:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DICT:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ENUM:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FLOW:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LIST:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OPTIONAL:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESOURCE:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SET:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.STRUCT:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TAGGED:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TUPLE:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VARIANT:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=2846,this.id_or_type();break;case e.DOLLAR:this.enterOuterAlt(t,2),this.state=2847,this.bind_parameter();break;case e.STRING_VALUE:this.enterOuterAlt(t,3),this.state=2848,this.match(e.STRING_VALUE);break;case e.FALSE:case e.TRUE:this.enterOuterAlt(t,4),this.state=2849,this.bool_value();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}object_feature_kv(){let t=new Qo(this.context,this.state);this.enterRule(t,408,e.RULE_object_feature_kv);try{this.enterOuterAlt(t,1),this.state=2852,this.an_id_or_type(),this.state=2853,this.match(e.EQUALS),this.state=2854,this.object_feature_value()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}object_feature_flag(){let t=new Xo(this.context,this.state);this.enterRule(t,410,e.RULE_object_feature_flag);try{this.enterOuterAlt(t,1),this.state=2856,this.an_id_or_type()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}object_feature(){let t=new Zo(this.context,this.state);this.enterRule(t,412,e.RULE_object_feature);try{switch(this.state=2860,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,274,this.context)){case 1:this.enterOuterAlt(t,1),this.state=2858,this.object_feature_kv();break;case 2:this.enterOuterAlt(t,2),this.state=2859,this.object_feature_flag()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}object_features(){let t,i=new Jo(this.context,this.state);this.enterRule(i,414,e.RULE_object_features);try{switch(this.state=2874,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CALLABLE:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DICT:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ENUM:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FLOW:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LIST:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OPTIONAL:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESOURCE:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SET:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.STRUCT:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TAGGED:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TUPLE:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VARIANT:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(i,1),this.state=2862,this.object_feature();break;case e.LPAREN:for(this.enterOuterAlt(i,2),this.state=2863,this.match(e.LPAREN),this.state=2864,this.object_feature(),this.state=2869,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2865,this.match(e.COMMA),this.state=2866,this.object_feature(),this.state=2871,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=2872,this.match(e.RPAREN);break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}object_type_ref(){let t=new ea(this.context,this.state);this.enterRule(t,416,e.RULE_object_type_ref);try{this.enterOuterAlt(t,1),this.state=2876,this.an_id_or_type()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}create_table_stmt(){let t,i=new ta(this.context,this.state);this.enterRule(i,418,e.RULE_create_table_stmt);try{let s;switch(this.enterOuterAlt(i,1),this.state=2878,this.match(e.CREATE),this.state=2881,this.errorHandler.sync(this),t=this.tokenStream.LA(1),212===t&&(this.state=2879,this.match(e.OR),this.state=2880,this.match(e.REPLACE)),this.state=2891,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.TABLE:this.state=2883,this.match(e.TABLE);break;case e.TABLESTORE:this.state=2884,this.match(e.TABLESTORE);break;case e.EXTERNAL:this.state=2885,this.match(e.EXTERNAL),this.state=2886,this.match(e.TABLE);break;case e.TEMP:this.state=2887,this.match(e.TEMP),this.state=2888,this.match(e.TABLE);break;case e.TEMPORARY:this.state=2889,this.match(e.TEMPORARY),this.state=2890,this.match(e.TABLE);break;default:throw new lt(this)}if(1===(this.state=2896,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,279,this.context)))this.state=2893,this.match(e.IF),this.state=2894,this.match(e.NOT),this.state=2895,this.match(e.EXISTS);for(this.state=2898,this.simple_table_ref(),this.state=2899,this.match(e.LPAREN),this.state=2900,this.create_table_entry(),this.state=2905,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,280,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=2901,this.match(e.COMMA),this.state=2902,this.create_table_entry()),this.state=2907,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,280,this.context);this.state=2909,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=2908,this.match(e.COMMA)),this.state=2911,this.match(e.RPAREN),this.state=2913,this.errorHandler.sync(this),t=this.tokenStream.LA(1),163===t&&(this.state=2912,this.table_inherits()),this.state=2916,this.errorHandler.sync(this),t=this.tokenStream.LA(1),218===t&&(this.state=2915,this.table_partition_by()),this.state=2919,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=2918,this.with_table_settings()),this.state=2922,this.errorHandler.sync(this),t=this.tokenStream.LA(1),289===t&&(this.state=2921,this.table_tablestore()),this.state=2925,this.errorHandler.sync(this),t=this.tokenStream.LA(1),49===t&&(this.state=2924,this.table_as_source())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}create_table_entry(){let t=new ia(this.context,this.state);this.enterRule(t,420,e.RULE_create_table_entry);try{switch(this.state=2933,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,287,this.context)){case 1:this.enterOuterAlt(t,1),this.state=2927,this.column_schema();break;case 2:this.enterOuterAlt(t,2),this.state=2928,this.table_constraint();break;case 3:this.enterOuterAlt(t,3),this.state=2929,this.table_index();break;case 4:this.enterOuterAlt(t,4),this.state=2930,this.family_entry();break;case 5:this.enterOuterAlt(t,5),this.state=2931,this.changefeed();break;case 6:this.enterOuterAlt(t,6),this.state=2932,this.an_id_schema()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}create_backup_collection_stmt(){let t,i=new sa(this.context,this.state);this.enterRule(i,422,e.RULE_create_backup_collection_stmt);try{this.enterOuterAlt(i,1),this.state=2935,this.match(e.CREATE),this.state=2936,this.backup_collection(),this.state=2938,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(25===t||94===t)&&(this.state=2937,this.create_backup_collection_entries()),this.state=2940,this.match(e.WITH),this.state=2941,this.match(e.LPAREN),this.state=2942,this.backup_collection_settings(),this.state=2943,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_backup_collection_stmt(){let t=new na(this.context,this.state);this.enterRule(t,424,e.RULE_alter_backup_collection_stmt);try{switch(this.enterOuterAlt(t,1),this.state=2945,this.match(e.ALTER),this.state=2946,this.backup_collection(),this.state=2949,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.RESET:case e.SET:this.state=2947,this.alter_backup_collection_actions();break;case e.ADD:case e.DROP:this.state=2948,this.alter_backup_collection_entries();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}drop_backup_collection_stmt(){let t=new ra(this.context,this.state);this.enterRule(t,426,e.RULE_drop_backup_collection_stmt);try{this.enterOuterAlt(t,1),this.state=2951,this.match(e.DROP),this.state=2952,this.backup_collection()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}create_backup_collection_entries(){let t=new oa(this.context,this.state);this.enterRule(t,428,e.RULE_create_backup_collection_entries);try{switch(this.state=2956,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DATABASE:this.enterOuterAlt(t,1),this.state=2954,this.match(e.DATABASE);break;case e.LPAREN:this.enterOuterAlt(t,2),this.state=2955,this.create_backup_collection_entries_many();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}create_backup_collection_entries_many(){let t=new aa(this.context,this.state);this.enterRule(t,430,e.RULE_create_backup_collection_entries_many);try{this.enterOuterAlt(t,1),this.state=2958,this.match(e.LPAREN),this.state=2959,this.table_list(),this.state=2960,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}table_list(){let t,i=new ca(this.context,this.state);this.enterRule(i,432,e.RULE_table_list);try{for(this.enterOuterAlt(i,1),this.state=2962,this.match(e.TABLE),this.state=2963,this.an_id_table(),this.state=2969,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2964,this.match(e.COMMA),this.state=2965,this.match(e.TABLE),this.state=2966,this.an_id_table(),this.state=2971,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_backup_collection_actions(){let t,i=new la(this.context,this.state);this.enterRule(i,434,e.RULE_alter_backup_collection_actions);try{for(this.enterOuterAlt(i,1),this.state=2972,this.alter_backup_collection_action(),this.state=2977,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2973,this.match(e.COMMA),this.state=2974,this.alter_backup_collection_action(),this.state=2979,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_backup_collection_action(){let t=new ha(this.context,this.state);this.enterRule(t,436,e.RULE_alter_backup_collection_action);try{switch(this.state=2982,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.SET:this.enterOuterAlt(t,1),this.state=2980,this.alter_table_set_table_setting_compat();break;case e.RESET:this.enterOuterAlt(t,2),this.state=2981,this.alter_table_reset_table_setting();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_backup_collection_entries(){let t,i=new da(this.context,this.state);this.enterRule(i,438,e.RULE_alter_backup_collection_entries);try{for(this.enterOuterAlt(i,1),this.state=2984,this.alter_backup_collection_entry(),this.state=2989,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2985,this.match(e.COMMA),this.state=2986,this.alter_backup_collection_entry(),this.state=2991,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_backup_collection_entry(){let t=new ua(this.context,this.state);this.enterRule(t,440,e.RULE_alter_backup_collection_entry);try{switch(this.state=3002,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,295,this.context)){case 1:this.enterOuterAlt(t,1),this.state=2992,this.match(e.ADD),this.state=2993,this.match(e.DATABASE);break;case 2:this.enterOuterAlt(t,2),this.state=2994,this.match(e.DROP),this.state=2995,this.match(e.DATABASE);break;case 3:this.enterOuterAlt(t,3),this.state=2996,this.match(e.ADD),this.state=2997,this.match(e.TABLE),this.state=2998,this.an_id_table();break;case 4:this.enterOuterAlt(t,4),this.state=2999,this.match(e.DROP),this.state=3e3,this.match(e.TABLE),this.state=3001,this.an_id_table()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}backup_collection(){let t=new ga(this.context,this.state);this.enterRule(t,442,e.RULE_backup_collection);try{this.enterOuterAlt(t,1),this.state=3004,this.match(e.BACKUP),this.state=3005,this.match(e.COLLECTION),this.state=3006,this.object_ref()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}backup_collection_settings(){let t,i=new pa(this.context,this.state);this.enterRule(i,444,e.RULE_backup_collection_settings);try{for(this.enterOuterAlt(i,1),this.state=3008,this.backup_collection_settings_entry(),this.state=3013,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3009,this.match(e.COMMA),this.state=3010,this.backup_collection_settings_entry(),this.state=3015,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}backup_collection_settings_entry(){let t=new ma(this.context,this.state);this.enterRule(t,446,e.RULE_backup_collection_settings_entry);try{this.enterOuterAlt(t,1),this.state=3016,this.an_id(),this.state=3017,this.match(e.EQUALS),this.state=3018,this.table_setting_value()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}backup_stmt(){let t,i=new fa(this.context,this.state);this.enterRule(i,448,e.RULE_backup_stmt);try{this.enterOuterAlt(i,1),this.state=3020,this.match(e.BACKUP),this.state=3021,this.object_ref(),this.state=3023,this.errorHandler.sync(this),t=this.tokenStream.LA(1),160===t&&(this.state=3022,this.match(e.INCREMENTAL))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}restore_stmt(){let t,i=new _a(this.context,this.state);this.enterRule(i,450,e.RULE_restore_stmt);try{this.enterOuterAlt(i,1),this.state=3025,this.match(e.RESTORE),this.state=3026,this.object_ref(),this.state=3029,this.errorHandler.sync(this),t=this.tokenStream.LA(1),54===t&&(this.state=3027,this.match(e.AT),this.state=3028,this.match(e.STRING_VALUE))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}table_inherits(){let t,i=new va(this.context,this.state);this.enterRule(i,452,e.RULE_table_inherits);try{for(this.enterOuterAlt(i,1),this.state=3031,this.match(e.INHERITS),this.state=3032,this.match(e.LPAREN),this.state=3033,this.simple_table_ref_core(),this.state=3038,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3034,this.match(e.COMMA),this.state=3035,this.simple_table_ref_core(),this.state=3040,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3041,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}table_partition_by(){let t=new Ca(this.context,this.state);this.enterRule(t,454,e.RULE_table_partition_by);try{this.enterOuterAlt(t,1),this.state=3043,this.match(e.PARTITION),this.state=3044,this.match(e.BY),this.state=3045,this.match(e.HASH),this.state=3046,this.pure_column_list()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}with_table_settings(){let t,i=new Ea(this.context,this.state);this.enterRule(i,456,e.RULE_with_table_settings);try{for(this.enterOuterAlt(i,1),this.state=3048,this.match(e.WITH),this.state=3049,this.match(e.LPAREN),this.state=3050,this.table_settings_entry(),this.state=3055,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3051,this.match(e.COMMA),this.state=3052,this.table_settings_entry(),this.state=3057,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3058,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}table_tablestore(){let t=new ba(this.context,this.state);this.enterRule(t,458,e.RULE_table_tablestore);try{this.enterOuterAlt(t,1),this.state=3060,this.match(e.TABLESTORE),this.state=3061,this.simple_table_ref_core()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}table_settings_entry(){let t=new Sa(this.context,this.state);this.enterRule(t,460,e.RULE_table_settings_entry);try{this.enterOuterAlt(t,1),this.state=3063,this.an_id(),this.state=3064,this.match(e.EQUALS),this.state=3065,this.table_setting_value()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}table_as_source(){let t=new ya(this.context,this.state);this.enterRule(t,462,e.RULE_table_as_source);try{this.enterOuterAlt(t,1),this.state=3067,this.match(e.AS),this.state=3068,this.values_source()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_stmt(){let t,i=new wa(this.context,this.state);this.enterRule(i,464,e.RULE_alter_table_stmt);try{for(this.enterOuterAlt(i,1),this.state=3070,this.match(e.ALTER),this.state=3071,this.match(e.TABLE),this.state=3072,this.simple_table_ref(),this.state=3073,this.alter_table_action(),this.state=3078,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3074,this.match(e.COMMA),this.state=3075,this.alter_table_action(),this.state=3080,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_table_action(){let t=new Ra(this.context,this.state);this.enterRule(t,466,e.RULE_alter_table_action);try{switch(this.state=3098,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,302,this.context)){case 1:this.enterOuterAlt(t,1),this.state=3081,this.alter_table_add_column();break;case 2:this.enterOuterAlt(t,2),this.state=3082,this.alter_table_drop_column();break;case 3:this.enterOuterAlt(t,3),this.state=3083,this.alter_table_alter_column();break;case 4:this.enterOuterAlt(t,4),this.state=3084,this.alter_table_add_column_family();break;case 5:this.enterOuterAlt(t,5),this.state=3085,this.alter_table_alter_column_family();break;case 6:this.enterOuterAlt(t,6),this.state=3086,this.alter_table_set_table_setting_uncompat();break;case 7:this.enterOuterAlt(t,7),this.state=3087,this.alter_table_set_table_setting_compat();break;case 8:this.enterOuterAlt(t,8),this.state=3088,this.alter_table_reset_table_setting();break;case 9:this.enterOuterAlt(t,9),this.state=3089,this.alter_table_add_index();break;case 10:this.enterOuterAlt(t,10),this.state=3090,this.alter_table_drop_index();break;case 11:this.enterOuterAlt(t,11),this.state=3091,this.alter_table_rename_to();break;case 12:this.enterOuterAlt(t,12),this.state=3092,this.alter_table_add_changefeed();break;case 13:this.enterOuterAlt(t,13),this.state=3093,this.alter_table_alter_changefeed();break;case 14:this.enterOuterAlt(t,14),this.state=3094,this.alter_table_drop_changefeed();break;case 15:this.enterOuterAlt(t,15),this.state=3095,this.alter_table_rename_index_to();break;case 16:this.enterOuterAlt(t,16),this.state=3096,this.alter_table_alter_index();break;case 17:this.enterOuterAlt(t,17),this.state=3097,this.alter_table_alter_column_drop_not_null()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_external_table_stmt(){let t,i=new La(this.context,this.state);this.enterRule(i,468,e.RULE_alter_external_table_stmt);try{for(this.enterOuterAlt(i,1),this.state=3100,this.match(e.ALTER),this.state=3101,this.match(e.EXTERNAL),this.state=3102,this.match(e.TABLE),this.state=3103,this.simple_table_ref(),this.state=3104,this.alter_external_table_action(),this.state=3109,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3105,this.match(e.COMMA),this.state=3106,this.alter_external_table_action(),this.state=3111,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_external_table_action(){let t=new Ta(this.context,this.state);this.enterRule(t,470,e.RULE_alter_external_table_action);try{switch(this.state=3117,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,304,this.context)){case 1:this.enterOuterAlt(t,1),this.state=3112,this.alter_table_add_column();break;case 2:this.enterOuterAlt(t,2),this.state=3113,this.alter_table_drop_column();break;case 3:this.enterOuterAlt(t,3),this.state=3114,this.alter_table_set_table_setting_uncompat();break;case 4:this.enterOuterAlt(t,4),this.state=3115,this.alter_table_set_table_setting_compat();break;case 5:this.enterOuterAlt(t,5),this.state=3116,this.alter_table_reset_table_setting()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_store_stmt(){let t,i=new xa(this.context,this.state);this.enterRule(i,472,e.RULE_alter_table_store_stmt);try{for(this.enterOuterAlt(i,1),this.state=3119,this.match(e.ALTER),this.state=3120,this.match(e.TABLESTORE),this.state=3121,this.object_ref(),this.state=3122,this.alter_table_store_action(),this.state=3127,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3123,this.match(e.COMMA),this.state=3124,this.alter_table_store_action(),this.state=3129,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_table_store_action(){let t=new ka(this.context,this.state);this.enterRule(t,474,e.RULE_alter_table_store_action);try{switch(this.state=3132,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ADD:this.enterOuterAlt(t,1),this.state=3130,this.alter_table_add_column();break;case e.DROP:this.enterOuterAlt(t,2),this.state=3131,this.alter_table_drop_column();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_add_column(){let t,i=new Aa(this.context,this.state);this.enterRule(i,476,e.RULE_alter_table_add_column);try{this.enterOuterAlt(i,1),this.state=3134,this.match(e.ADD),this.state=3136,this.errorHandler.sync(this),t=this.tokenStream.LA(1),76===t&&(this.state=3135,this.match(e.COLUMN)),this.state=3138,this.column_schema()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_table_drop_column(){let t=new Na(this.context,this.state);this.enterRule(t,478,e.RULE_alter_table_drop_column);try{if(this.enterOuterAlt(t,1),1===(this.state=3140,this.match(e.DROP),this.state=3142,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,308,this.context)))this.state=3141,this.match(e.COLUMN);this.state=3144,this.an_id()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_alter_column(){let t=new Ia(this.context,this.state);this.enterRule(t,480,e.RULE_alter_table_alter_column);try{this.enterOuterAlt(t,1),this.state=3146,this.match(e.ALTER),this.state=3147,this.match(e.COLUMN),this.state=3148,this.an_id(),this.state=3149,this.match(e.SET),this.state=3150,this.family_relation()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_alter_column_drop_not_null(){let t=new Oa(this.context,this.state);this.enterRule(t,482,e.RULE_alter_table_alter_column_drop_not_null);try{this.enterOuterAlt(t,1),this.state=3152,this.match(e.ALTER),this.state=3153,this.match(e.COLUMN),this.state=3154,this.an_id(),this.state=3155,this.match(e.DROP),this.state=3156,this.match(e.NOT),this.state=3157,this.match(e.NULL)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_add_column_family(){let t=new Da(this.context,this.state);this.enterRule(t,484,e.RULE_alter_table_add_column_family);try{this.enterOuterAlt(t,1),this.state=3159,this.match(e.ADD),this.state=3160,this.family_entry()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_alter_column_family(){let t=new Ma(this.context,this.state);this.enterRule(t,486,e.RULE_alter_table_alter_column_family);try{this.enterOuterAlt(t,1),this.state=3162,this.match(e.ALTER),this.state=3163,this.match(e.FAMILY),this.state=3164,this.an_id(),this.state=3165,this.match(e.SET),this.state=3166,this.an_id(),this.state=3167,this.family_setting_value()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_set_table_setting_uncompat(){let t=new Pa(this.context,this.state);this.enterRule(t,488,e.RULE_alter_table_set_table_setting_uncompat);try{this.enterOuterAlt(t,1),this.state=3169,this.match(e.SET),this.state=3170,this.an_id(),this.state=3171,this.table_setting_value()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_set_table_setting_compat(){let t,i=new Fa(this.context,this.state);this.enterRule(i,490,e.RULE_alter_table_set_table_setting_compat);try{for(this.enterOuterAlt(i,1),this.state=3173,this.match(e.SET),this.state=3174,this.match(e.LPAREN),this.state=3175,this.alter_table_setting_entry(),this.state=3180,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3176,this.match(e.COMMA),this.state=3177,this.alter_table_setting_entry(),this.state=3182,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3183,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_table_reset_table_setting(){let t,i=new Ua(this.context,this.state);this.enterRule(i,492,e.RULE_alter_table_reset_table_setting);try{for(this.enterOuterAlt(i,1),this.state=3185,this.match(e.RESET),this.state=3186,this.match(e.LPAREN),this.state=3187,this.an_id(),this.state=3192,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3188,this.match(e.COMMA),this.state=3189,this.an_id(),this.state=3194,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3195,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_table_add_index(){let t=new Ha(this.context,this.state);this.enterRule(t,494,e.RULE_alter_table_add_index);try{this.enterOuterAlt(t,1),this.state=3197,this.match(e.ADD),this.state=3198,this.table_index()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_drop_index(){let t=new Ba(this.context,this.state);this.enterRule(t,496,e.RULE_alter_table_drop_index);try{this.enterOuterAlt(t,1),this.state=3200,this.match(e.DROP),this.state=3201,this.match(e.INDEX),this.state=3202,this.an_id()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_rename_to(){let t=new Wa(this.context,this.state);this.enterRule(t,498,e.RULE_alter_table_rename_to);try{this.enterOuterAlt(t,1),this.state=3204,this.match(e.RENAME),this.state=3205,this.match(e.TO),this.state=3206,this.an_id_table()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_rename_index_to(){let t=new Va(this.context,this.state);this.enterRule(t,500,e.RULE_alter_table_rename_index_to);try{this.enterOuterAlt(t,1),this.state=3208,this.match(e.RENAME),this.state=3209,this.match(e.INDEX),this.state=3210,this.an_id(),this.state=3211,this.match(e.TO),this.state=3212,this.an_id()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_add_changefeed(){let t=new za(this.context,this.state);this.enterRule(t,502,e.RULE_alter_table_add_changefeed);try{this.enterOuterAlt(t,1),this.state=3214,this.match(e.ADD),this.state=3215,this.changefeed()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_alter_changefeed(){let t=new Ga(this.context,this.state);this.enterRule(t,504,e.RULE_alter_table_alter_changefeed);try{this.enterOuterAlt(t,1),this.state=3217,this.match(e.ALTER),this.state=3218,this.match(e.CHANGEFEED),this.state=3219,this.an_id(),this.state=3220,this.changefeed_alter_settings()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_drop_changefeed(){let t=new ja(this.context,this.state);this.enterRule(t,506,e.RULE_alter_table_drop_changefeed);try{this.enterOuterAlt(t,1),this.state=3222,this.match(e.DROP),this.state=3223,this.match(e.CHANGEFEED),this.state=3224,this.an_id()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_alter_index(){let t=new Ka(this.context,this.state);this.enterRule(t,508,e.RULE_alter_table_alter_index);try{this.enterOuterAlt(t,1),this.state=3226,this.match(e.ALTER),this.state=3227,this.match(e.INDEX),this.state=3228,this.an_id(),this.state=3229,this.alter_table_alter_index_action()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}column_schema(){let t,i=new Ya(this.context,this.state);this.enterRule(i,510,e.RULE_column_schema);try{this.enterOuterAlt(i,1),this.state=3231,this.an_id_schema(),this.state=3232,this.type_name_or_bind(),this.state=3234,this.errorHandler.sync(this),t=this.tokenStream.LA(1),133===t&&(this.state=3233,this.family_relation()),this.state=3236,this.opt_column_constraints()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}family_relation(){let t=new qa(this.context,this.state);this.enterRule(t,512,e.RULE_family_relation);try{this.enterOuterAlt(t,1),this.state=3238,this.match(e.FAMILY),this.state=3239,this.an_id()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}opt_column_constraints(){let t,i=new $a(this.context,this.state);this.enterRule(i,514,e.RULE_opt_column_constraints);try{this.enterOuterAlt(i,1),this.state=3245,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(199===t||201===t)&&(this.state=3242,this.errorHandler.sync(this),t=this.tokenStream.LA(1),199===t&&(this.state=3241,this.match(e.NOT)),this.state=3244,this.match(e.NULL)),this.state=3249,this.errorHandler.sync(this),t=this.tokenStream.LA(1),97===t&&(this.state=3247,this.match(e.DEFAULT),this.state=3248,this.expr())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}column_order_by_specification(){let t,i=new Qa(this.context,this.state);this.enterRule(i,516,e.RULE_column_order_by_specification);try{this.enterOuterAlt(i,1),this.state=3251,this.an_id(),this.state=3253,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(50===t||102===t)&&(this.state=3252,t=this.tokenStream.LA(1),50===t||102===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}table_constraint(){let t,i=new Xa(this.context,this.state);this.enterRule(i,518,e.RULE_table_constraint);try{switch(this.state=3294,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.PRIMARY:for(this.enterOuterAlt(i,1),this.state=3255,this.match(e.PRIMARY),this.state=3256,this.match(e.KEY),this.state=3257,this.match(e.LPAREN),this.state=3258,this.an_id(),this.state=3263,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3259,this.match(e.COMMA),this.state=3260,this.an_id(),this.state=3265,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3266,this.match(e.RPAREN);break;case e.PARTITION:for(this.enterOuterAlt(i,2),this.state=3268,this.match(e.PARTITION),this.state=3269,this.match(e.BY),this.state=3270,this.match(e.LPAREN),this.state=3271,this.an_id(),this.state=3276,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3272,this.match(e.COMMA),this.state=3273,this.an_id(),this.state=3278,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3279,this.match(e.RPAREN);break;case e.ORDER:for(this.enterOuterAlt(i,3),this.state=3281,this.match(e.ORDER),this.state=3282,this.match(e.BY),this.state=3283,this.match(e.LPAREN),this.state=3284,this.column_order_by_specification(),this.state=3289,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3285,this.match(e.COMMA),this.state=3286,this.column_order_by_specification(),this.state=3291,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3292,this.match(e.RPAREN);break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}table_index(){let t,i=new Za(this.context,this.state);this.enterRule(i,520,e.RULE_table_index);try{for(this.enterOuterAlt(i,1),this.state=3296,this.match(e.INDEX),this.state=3297,this.an_id(),this.state=3298,this.table_index_type(),this.state=3299,this.match(e.ON),this.state=3300,this.match(e.LPAREN),this.state=3301,this.an_id_schema(),this.state=3306,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3302,this.match(e.COMMA),this.state=3303,this.an_id_schema(),this.state=3308,this.errorHandler.sync(this),t=this.tokenStream.LA(1);if(this.state=3309,this.match(e.RPAREN),this.state=3322,this.errorHandler.sync(this),t=this.tokenStream.LA(1),85===t){for(this.state=3310,this.match(e.COVER),this.state=3311,this.match(e.LPAREN),this.state=3312,this.an_id_schema(),this.state=3317,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3313,this.match(e.COMMA),this.state=3314,this.an_id_schema(),this.state=3319,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3320,this.match(e.RPAREN)}this.state=3325,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=3324,this.with_index_settings())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}table_index_type(){let t,i=new Ja(this.context,this.state);this.enterRule(i,522,e.RULE_table_index_type);try{switch(this.enterOuterAlt(i,1),this.state=3329,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.GLOBAL:this.state=3327,this.global_index();break;case e.LOCAL:this.state=3328,this.local_index();break;default:throw new lt(this)}this.state=3333,this.errorHandler.sync(this),t=this.tokenStream.LA(1),313===t&&(this.state=3331,this.match(e.USING),this.state=3332,this.index_subtype())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}global_index(){let t,i=new ec(this.context,this.state);this.enterRule(i,524,e.RULE_global_index);try{this.enterOuterAlt(i,1),this.state=3335,this.match(e.GLOBAL),this.state=3337,this.errorHandler.sync(this),t=this.tokenStream.LA(1),306===t&&(this.state=3336,this.match(e.UNIQUE)),this.state=3340,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(53===t||284===t)&&(this.state=3339,t=this.tokenStream.LA(1),53===t||284===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}local_index(){let t=new tc(this.context,this.state);this.enterRule(t,526,e.RULE_local_index);try{this.enterOuterAlt(t,1),this.state=3342,this.match(e.LOCAL)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}index_subtype(){let t=new ic(this.context,this.state);this.enterRule(t,528,e.RULE_index_subtype);try{this.enterOuterAlt(t,1),this.state=3344,this.an_id()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}with_index_settings(){let t,i=new sc(this.context,this.state);this.enterRule(i,530,e.RULE_with_index_settings);try{let s;for(this.enterOuterAlt(i,1),this.state=3346,this.match(e.WITH),this.state=3347,this.match(e.LPAREN),this.state=3348,this.index_setting_entry(),this.state=3353,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,328,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=3349,this.match(e.COMMA),this.state=3350,this.index_setting_entry()),this.state=3355,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,328,this.context);this.state=3357,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=3356,this.match(e.COMMA)),this.state=3359,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}index_setting_entry(){let t=new nc(this.context,this.state);this.enterRule(t,532,e.RULE_index_setting_entry);try{this.enterOuterAlt(t,1),this.state=3361,this.an_id(),this.state=3362,this.match(e.EQUALS),this.state=3363,this.index_setting_value()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}index_setting_value(){let t=new rc(this.context,this.state);this.enterRule(t,534,e.RULE_index_setting_value);try{switch(this.state=3369,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CALLABLE:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DICT:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ENUM:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FLOW:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LIST:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OPTIONAL:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESOURCE:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SET:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.STRUCT:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TAGGED:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TUPLE:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VARIANT:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=3365,this.id_or_type();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=3366,this.match(e.STRING_VALUE);break;case e.DIGITS:case e.INTEGER_VALUE:this.enterOuterAlt(t,3),this.state=3367,this.integer();break;case e.FALSE:case e.TRUE:this.enterOuterAlt(t,4),this.state=3368,this.bool_value();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}changefeed(){let t=new oc(this.context,this.state);this.enterRule(t,536,e.RULE_changefeed);try{this.enterOuterAlt(t,1),this.state=3371,this.match(e.CHANGEFEED),this.state=3372,this.an_id(),this.state=3373,this.match(e.WITH),this.state=3374,this.match(e.LPAREN),this.state=3375,this.changefeed_settings(),this.state=3376,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}changefeed_settings(){let t,i=new ac(this.context,this.state);this.enterRule(i,538,e.RULE_changefeed_settings);try{for(this.enterOuterAlt(i,1),this.state=3378,this.changefeed_settings_entry(),this.state=3383,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3379,this.match(e.COMMA),this.state=3380,this.changefeed_settings_entry(),this.state=3385,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}changefeed_settings_entry(){let t=new cc(this.context,this.state);this.enterRule(t,540,e.RULE_changefeed_settings_entry);try{this.enterOuterAlt(t,1),this.state=3386,this.an_id(),this.state=3387,this.match(e.EQUALS),this.state=3388,this.changefeed_setting_value()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}changefeed_setting_value(){let t=new lc(this.context,this.state);this.enterRule(t,542,e.RULE_changefeed_setting_value);try{this.enterOuterAlt(t,1),this.state=3390,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}changefeed_alter_settings(){let t=new hc(this.context,this.state);this.enterRule(t,544,e.RULE_changefeed_alter_settings);try{switch(this.state=3398,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DISABLE:this.enterOuterAlt(t,1),this.state=3392,this.match(e.DISABLE);break;case e.SET:this.enterOuterAlt(t,2),this.state=3393,this.match(e.SET),this.state=3394,this.match(e.LPAREN),this.state=3395,this.changefeed_settings(),this.state=3396,this.match(e.RPAREN);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_setting_entry(){let t=new dc(this.context,this.state);this.enterRule(t,546,e.RULE_alter_table_setting_entry);try{this.enterOuterAlt(t,1),this.state=3400,this.an_id(),this.state=3401,this.match(e.EQUALS),this.state=3402,this.table_setting_value()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}table_setting_value(){let t,i=new uc(this.context,this.state);this.enterRule(i,548,e.RULE_table_setting_value);try{switch(this.state=3416,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,334,this.context)){case 1:this.enterOuterAlt(i,1),this.state=3404,this.id();break;case 2:this.enterOuterAlt(i,2),this.state=3405,this.match(e.STRING_VALUE);break;case 3:this.enterOuterAlt(i,3),this.state=3406,this.integer();break;case 4:this.enterOuterAlt(i,4),this.state=3407,this.split_boundaries();break;case 5:this.enterOuterAlt(i,5),this.state=3408,this.ttl_tier_list(),this.state=3409,this.match(e.ON),this.state=3410,this.an_id(),this.state=3413,this.errorHandler.sync(this),t=this.tokenStream.LA(1),49===t&&(this.state=3411,this.match(e.AS),this.state=3412,t=this.tokenStream.LA(1),!(t-191&-32)&&1<<t-191&11||267===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this));break;case 6:this.enterOuterAlt(i,6),this.state=3415,this.bool_value()}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}ttl_tier_list(){let t,i=new gc(this.context,this.state);this.enterRule(i,550,e.RULE_ttl_tier_list);try{if(this.enterOuterAlt(i,1),this.state=3418,this.expr(),this.state=3429,this.errorHandler.sync(this),t=this.tokenStream.LA(1),101===t||295===t)for(this.state=3419,this.ttl_tier_action(),this.state=3426,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3420,this.match(e.COMMA),this.state=3421,this.expr(),this.state=3422,this.ttl_tier_action(),this.state=3428,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}ttl_tier_action(){let t=new pc(this.context,this.state);this.enterRule(t,552,e.RULE_ttl_tier_action);try{switch(this.state=3437,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.TO:this.enterOuterAlt(t,1),this.state=3431,this.match(e.TO),this.state=3432,this.match(e.EXTERNAL),this.state=3433,this.match(e.DATA),this.state=3434,this.match(e.SOURCE),this.state=3435,this.an_id();break;case e.DELETE:this.enterOuterAlt(t,2),this.state=3436,this.match(e.DELETE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}family_entry(){let t=new mc(this.context,this.state);this.enterRule(t,554,e.RULE_family_entry);try{this.enterOuterAlt(t,1),this.state=3439,this.match(e.FAMILY),this.state=3440,this.an_id(),this.state=3441,this.family_settings()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}family_settings(){let t,i=new fc(this.context,this.state);this.enterRule(i,556,e.RULE_family_settings);try{if(this.enterOuterAlt(i,1),this.state=3443,this.match(e.LPAREN),this.state=3452,this.errorHandler.sync(this),t=this.tokenStream.LA(1),!(t-38&-32)&&1<<t-38&3220176895||!(t-70&-32)&&1<<t-70&4294967295||!(t-102&-32)&&1<<t-102&3221159927||!(t-134&-32)&&1<<t-134&4294967287||!(t-166&-32)&&1<<t-166&4294836223||!(t-198&-32)&&1<<t-198&4294959103||!(t-230&-32)&&1<<t-230&4294688767||!(t-262&-32)&&1<<t-262&4026400255||!(t-294&-32)&&1<<t-294&4290772799||!(t-326&-32)&&1<<t-326&7)for(this.state=3444,this.family_settings_entry(),this.state=3449,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3445,this.match(e.COMMA),this.state=3446,this.family_settings_entry(),this.state=3451,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3454,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}family_settings_entry(){let t=new _c(this.context,this.state);this.enterRule(t,558,e.RULE_family_settings_entry);try{this.enterOuterAlt(t,1),this.state=3456,this.an_id(),this.state=3457,this.match(e.EQUALS),this.state=3458,this.family_setting_value()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}family_setting_value(){let t=new vc(this.context,this.state);this.enterRule(t,560,e.RULE_family_setting_value);try{switch(this.state=3462,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.STRING_VALUE:this.enterOuterAlt(t,1),this.state=3460,this.match(e.STRING_VALUE);break;case e.DIGITS:case e.INTEGER_VALUE:this.enterOuterAlt(t,2),this.state=3461,this.integer();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}split_boundaries(){let t,i=new Cc(this.context,this.state);this.enterRule(i,562,e.RULE_split_boundaries);try{switch(this.state=3476,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,342,this.context)){case 1:for(this.enterOuterAlt(i,1),this.state=3464,this.match(e.LPAREN),this.state=3465,this.literal_value_list(),this.state=3470,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3466,this.match(e.COMMA),this.state=3467,this.literal_value_list(),this.state=3472,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3473,this.match(e.RPAREN);break;case 2:this.enterOuterAlt(i,2),this.state=3475,this.literal_value_list()}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}literal_value_list(){let t,i=new Ec(this.context,this.state);this.enterRule(i,564,e.RULE_literal_value_list);try{for(this.enterOuterAlt(i,1),this.state=3478,this.match(e.LPAREN),this.state=3479,this.literal_value(),this.state=3484,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3480,this.match(e.COMMA),this.state=3481,this.literal_value(),this.state=3486,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3487,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_table_alter_index_action(){let t=new bc(this.context,this.state);this.enterRule(t,566,e.RULE_alter_table_alter_index_action);try{switch(this.state=3492,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,344,this.context)){case 1:this.enterOuterAlt(t,1),this.state=3489,this.alter_table_set_table_setting_uncompat();break;case 2:this.enterOuterAlt(t,2),this.state=3490,this.alter_table_set_table_setting_compat();break;case 3:this.enterOuterAlt(t,3),this.state=3491,this.alter_table_reset_table_setting()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}drop_table_stmt(){let t=new Sc(this.context,this.state);this.enterRule(t,568,e.RULE_drop_table_stmt);try{switch(this.enterOuterAlt(t,1),this.state=3494,this.match(e.DROP),this.state=3499,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.TABLE:this.state=3495,this.match(e.TABLE);break;case e.TABLESTORE:this.state=3496,this.match(e.TABLESTORE);break;case e.EXTERNAL:this.state=3497,this.match(e.EXTERNAL),this.state=3498,this.match(e.TABLE);break;default:throw new lt(this)}if(1===(this.state=3503,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,346,this.context)))this.state=3501,this.match(e.IF),this.state=3502,this.match(e.EXISTS);this.state=3505,this.simple_table_ref()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}create_user_stmt(){let t,i=new yc(this.context,this.state);this.enterRule(i,570,e.RULE_create_user_stmt);try{for(this.enterOuterAlt(i,1),this.state=3507,this.match(e.CREATE),this.state=3508,this.match(e.USER),this.state=3509,this.role_name(),this.state=3513,this.errorHandler.sync(this),t=this.tokenStream.LA(1);116===t||150===t||185===t||198===t||220===t;)this.state=3510,this.user_option(),this.state=3515,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_user_stmt(){let t,i=new wc(this.context,this.state);this.enterRule(i,572,e.RULE_alter_user_stmt);try{switch(this.enterOuterAlt(i,1),this.state=3516,this.match(e.ALTER),this.state=3517,this.match(e.USER),this.state=3518,this.role_name(),this.state=3530,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ENCRYPTED:case e.HASH:case e.LOGIN:case e.NOLOGIN:case e.PASSWORD:case e.WITH:this.state=3520,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=3519,this.match(e.WITH)),this.state=3523,this.errorHandler.sync(this),t=this.tokenStream.LA(1);do{this.state=3522,this.user_option(),this.state=3525,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}while(116===t||150===t||185===t||198===t||220===t);break;case e.RENAME:this.state=3527,this.match(e.RENAME),this.state=3528,this.match(e.TO),this.state=3529,this.role_name();break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}create_group_stmt(){let t,i=new Rc(this.context,this.state);this.enterRule(i,574,e.RULE_create_group_stmt);try{let s;if(this.enterOuterAlt(i,1),this.state=3532,this.match(e.CREATE),this.state=3533,this.match(e.GROUP),this.state=3534,this.role_name(),this.state=3548,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t){for(this.state=3535,this.match(e.WITH),this.state=3536,this.match(e.USER),this.state=3537,this.role_name(),this.state=3542,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,351,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=3538,this.match(e.COMMA),this.state=3539,this.role_name()),this.state=3544,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,351,this.context);this.state=3546,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=3545,this.match(e.COMMA))}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_group_stmt(){let t,i=new Lc(this.context,this.state);this.enterRule(i,576,e.RULE_alter_group_stmt);try{let s;switch(this.enterOuterAlt(i,1),this.state=3550,this.match(e.ALTER),this.state=3551,this.match(e.GROUP),this.state=3552,this.role_name(),this.state=3569,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ADD:case e.DROP:for(this.state=3553,t=this.tokenStream.LA(1),40===t||111===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3554,this.match(e.USER),this.state=3555,this.role_name(),this.state=3560,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,354,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=3556,this.match(e.COMMA),this.state=3557,this.role_name()),this.state=3562,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,354,this.context);this.state=3564,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=3563,this.match(e.COMMA));break;case e.RENAME:this.state=3566,this.match(e.RENAME),this.state=3567,this.match(e.TO),this.state=3568,this.role_name();break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}drop_role_stmt(){let t,i=new Tc(this.context,this.state);this.enterRule(i,578,e.RULE_drop_role_stmt);try{let s;if(this.enterOuterAlt(i,1),1===(this.state=3571,this.match(e.DROP),this.state=3572,t=this.tokenStream.LA(1),147===t||312===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3575,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,357,this.context)))this.state=3573,this.match(e.IF),this.state=3574,this.match(e.EXISTS);for(this.state=3577,this.role_name(),this.state=3582,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,358,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=3578,this.match(e.COMMA),this.state=3579,this.role_name()),this.state=3584,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,358,this.context);this.state=3586,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=3585,this.match(e.COMMA))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}role_name(){let t=new xc(this.context,this.state);this.enterRule(t,580,e.RULE_role_name);try{switch(this.state=3590,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CALLABLE:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DICT:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ENUM:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FLOW:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LIST:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OPTIONAL:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESOURCE:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SET:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.STRUCT:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TAGGED:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TUPLE:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VARIANT:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=3588,this.an_id_or_type();break;case e.DOLLAR:this.enterOuterAlt(t,2),this.state=3589,this.bind_parameter();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}user_option(){let t=new kc(this.context,this.state);this.enterRule(t,582,e.RULE_user_option);try{switch(this.state=3594,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ENCRYPTED:case e.HASH:case e.PASSWORD:this.enterOuterAlt(t,1),this.state=3592,this.authentication_option();break;case e.LOGIN:case e.NOLOGIN:this.enterOuterAlt(t,2),this.state=3593,this.login_option();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}authentication_option(){let t=new Ac(this.context,this.state);this.enterRule(t,584,e.RULE_authentication_option);try{switch(this.state=3598,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ENCRYPTED:case e.PASSWORD:this.enterOuterAlt(t,1),this.state=3596,this.password_option();break;case e.HASH:this.enterOuterAlt(t,2),this.state=3597,this.hash_option();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}password_option(){let t,i=new Nc(this.context,this.state);this.enterRule(i,586,e.RULE_password_option);try{this.enterOuterAlt(i,1),this.state=3601,this.errorHandler.sync(this),t=this.tokenStream.LA(1),116===t&&(this.state=3600,this.match(e.ENCRYPTED)),this.state=3603,this.match(e.PASSWORD),this.state=3604,this.expr()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}hash_option(){let t=new Ic(this.context,this.state);this.enterRule(t,588,e.RULE_hash_option);try{this.enterOuterAlt(t,1),this.state=3606,this.match(e.HASH),this.state=3607,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}login_option(){let t,i=new Oc(this.context,this.state);this.enterRule(i,590,e.RULE_login_option);try{this.enterOuterAlt(i,1),this.state=3609,t=this.tokenStream.LA(1),185===t||198===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}grant_permissions_stmt(){let t,i=new Dc(this.context,this.state);this.enterRule(i,592,e.RULE_grant_permissions_stmt);try{let s;for(this.enterOuterAlt(i,1),this.state=3611,this.match(e.GRANT),this.state=3612,this.permission_name_target(),this.state=3613,this.match(e.ON),this.state=3614,this.an_id_schema(),this.state=3619,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3615,this.match(e.COMMA),this.state=3616,this.an_id_schema(),this.state=3621,this.errorHandler.sync(this),t=this.tokenStream.LA(1);for(this.state=3622,this.match(e.TO),this.state=3623,this.role_name(),this.state=3628,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,365,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=3624,this.match(e.COMMA),this.state=3625,this.role_name()),this.state=3630,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,365,this.context);this.state=3632,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=3631,this.match(e.COMMA)),this.state=3637,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=3634,this.match(e.WITH),this.state=3635,this.match(e.GRANT),this.state=3636,this.match(e.OPTION))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}revoke_permissions_stmt(){let t,i=new Mc(this.context,this.state);this.enterRule(i,594,e.RULE_revoke_permissions_stmt);try{if(this.enterOuterAlt(i,1),1===(this.state=3639,this.match(e.REVOKE),this.state=3643,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,368,this.context)))this.state=3640,this.match(e.GRANT),this.state=3641,this.match(e.OPTION),this.state=3642,this.match(e.FOR);for(this.state=3645,this.permission_name_target(),this.state=3646,this.match(e.ON),this.state=3647,this.an_id_schema(),this.state=3652,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3648,this.match(e.COMMA),this.state=3649,this.an_id_schema(),this.state=3654,this.errorHandler.sync(this),t=this.tokenStream.LA(1);for(this.state=3655,this.match(e.FROM),this.state=3656,this.role_name(),this.state=3661,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3657,this.match(e.COMMA),this.state=3658,this.role_name(),this.state=3663,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}permission_id(){let t,i=new Pc(this.context,this.state);this.enterRule(i,596,e.RULE_permission_id);try{switch(this.state=3688,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.CONNECT:this.enterOuterAlt(i,1),this.state=3664,this.match(e.CONNECT);break;case e.LIST:this.enterOuterAlt(i,2),this.state=3665,this.match(e.LIST);break;case e.INSERT:this.enterOuterAlt(i,3),this.state=3666,this.match(e.INSERT);break;case e.MANAGE:this.enterOuterAlt(i,4),this.state=3667,this.match(e.MANAGE);break;case e.DROP:this.enterOuterAlt(i,5),this.state=3668,this.match(e.DROP);break;case e.GRANT:this.enterOuterAlt(i,6),this.state=3669,this.match(e.GRANT);break;case e.MODIFY:this.enterOuterAlt(i,7),this.state=3670,this.match(e.MODIFY),this.state=3671,t=this.tokenStream.LA(1),56===t||287===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this);break;case e.ERASE:case e.UPDATE:this.enterOuterAlt(i,8),this.state=3672,t=this.tokenStream.LA(1),119===t||309===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3673,this.match(e.ROW);break;case e.ALTER:case e.DESCRIBE:case e.REMOVE:this.enterOuterAlt(i,9),this.state=3674,t=this.tokenStream.LA(1),43===t||103===t||242===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3675,this.match(e.SCHEMA);break;case e.SELECT:this.enterOuterAlt(i,10),this.state=3676,this.match(e.SELECT),this.state=3678,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(56===t||262===t||287===t)&&(this.state=3677,t=this.tokenStream.LA(1),56===t||262===t||287===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this));break;case e.FULL:case e.USE:this.enterOuterAlt(i,11),this.state=3680,t=this.tokenStream.LA(1),142===t||311===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3682,this.errorHandler.sync(this),t=this.tokenStream.LA(1),180===t&&(this.state=3681,this.match(e.LEGACY));break;case e.CREATE:this.enterOuterAlt(i,12),this.state=3684,this.match(e.CREATE),this.state=3686,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(106===t||234===t||286===t)&&(this.state=3685,t=this.tokenStream.LA(1),106===t||234===t||286===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this));break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}permission_name(){let t=new Fc(this.context,this.state);this.enterRule(t,598,e.RULE_permission_name);try{switch(this.state=3692,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ALTER:case e.CONNECT:case e.CREATE:case e.DESCRIBE:case e.DROP:case e.ERASE:case e.FULL:case e.GRANT:case e.INSERT:case e.LIST:case e.MANAGE:case e.MODIFY:case e.REMOVE:case e.SELECT:case e.UPDATE:case e.USE:this.enterOuterAlt(t,1),this.state=3690,this.permission_id();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=3691,this.match(e.STRING_VALUE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}permission_name_target(){let t,i=new Uc(this.context,this.state);this.enterRule(i,600,e.RULE_permission_name_target);try{let s;switch(this.state=3709,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ALTER:case e.CONNECT:case e.CREATE:case e.DESCRIBE:case e.DROP:case e.ERASE:case e.FULL:case e.GRANT:case e.INSERT:case e.LIST:case e.MANAGE:case e.MODIFY:case e.REMOVE:case e.SELECT:case e.UPDATE:case e.USE:case e.STRING_VALUE:for(this.enterOuterAlt(i,1),this.state=3694,this.permission_name(),this.state=3699,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,376,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=3695,this.match(e.COMMA),this.state=3696,this.permission_name()),this.state=3701,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,376,this.context);this.state=3703,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=3702,this.match(e.COMMA));break;case e.ALL:this.enterOuterAlt(i,2),this.state=3705,this.match(e.ALL),this.state=3707,this.errorHandler.sync(this),t=this.tokenStream.LA(1),231===t&&(this.state=3706,this.match(e.PRIVILEGES));break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}create_resource_pool_stmt(){let t=new Hc(this.context,this.state);this.enterRule(t,602,e.RULE_create_resource_pool_stmt);try{this.enterOuterAlt(t,1),this.state=3711,this.match(e.CREATE),this.state=3712,this.match(e.RESOURCE),this.state=3713,this.match(e.POOL),this.state=3714,this.object_ref(),this.state=3715,this.with_table_settings()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_resource_pool_stmt(){let t,i=new Bc(this.context,this.state);this.enterRule(i,604,e.RULE_alter_resource_pool_stmt);try{for(this.enterOuterAlt(i,1),this.state=3717,this.match(e.ALTER),this.state=3718,this.match(e.RESOURCE),this.state=3719,this.match(e.POOL),this.state=3720,this.object_ref(),this.state=3721,this.alter_resource_pool_action(),this.state=3726,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3722,this.match(e.COMMA),this.state=3723,this.alter_resource_pool_action(),this.state=3728,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_resource_pool_action(){let t=new Wc(this.context,this.state);this.enterRule(t,606,e.RULE_alter_resource_pool_action);try{switch(this.state=3731,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.SET:this.enterOuterAlt(t,1),this.state=3729,this.alter_table_set_table_setting_compat();break;case e.RESET:this.enterOuterAlt(t,2),this.state=3730,this.alter_table_reset_table_setting();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}drop_resource_pool_stmt(){let t=new Vc(this.context,this.state);this.enterRule(t,608,e.RULE_drop_resource_pool_stmt);try{this.enterOuterAlt(t,1),this.state=3733,this.match(e.DROP),this.state=3734,this.match(e.RESOURCE),this.state=3735,this.match(e.POOL),this.state=3736,this.object_ref()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}create_resource_pool_classifier_stmt(){let t=new zc(this.context,this.state);this.enterRule(t,610,e.RULE_create_resource_pool_classifier_stmt);try{this.enterOuterAlt(t,1),this.state=3738,this.match(e.CREATE),this.state=3739,this.match(e.RESOURCE),this.state=3740,this.match(e.POOL),this.state=3741,this.match(e.CLASSIFIER),this.state=3742,this.object_ref(),this.state=3743,this.with_table_settings()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_resource_pool_classifier_stmt(){let t,i=new Gc(this.context,this.state);this.enterRule(i,612,e.RULE_alter_resource_pool_classifier_stmt);try{for(this.enterOuterAlt(i,1),this.state=3745,this.match(e.ALTER),this.state=3746,this.match(e.RESOURCE),this.state=3747,this.match(e.POOL),this.state=3748,this.match(e.CLASSIFIER),this.state=3749,this.object_ref(),this.state=3750,this.alter_resource_pool_classifier_action(),this.state=3755,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3751,this.match(e.COMMA),this.state=3752,this.alter_resource_pool_classifier_action(),this.state=3757,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_resource_pool_classifier_action(){let t=new jc(this.context,this.state);this.enterRule(t,614,e.RULE_alter_resource_pool_classifier_action);try{switch(this.state=3760,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.SET:this.enterOuterAlt(t,1),this.state=3758,this.alter_table_set_table_setting_compat();break;case e.RESET:this.enterOuterAlt(t,2),this.state=3759,this.alter_table_reset_table_setting();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}drop_resource_pool_classifier_stmt(){let t=new Kc(this.context,this.state);this.enterRule(t,616,e.RULE_drop_resource_pool_classifier_stmt);try{this.enterOuterAlt(t,1),this.state=3762,this.match(e.DROP),this.state=3763,this.match(e.RESOURCE),this.state=3764,this.match(e.POOL),this.state=3765,this.match(e.CLASSIFIER),this.state=3766,this.object_ref()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}create_replication_stmt(){let t,i=new Yc(this.context,this.state);this.enterRule(i,618,e.RULE_create_replication_stmt);try{for(this.enterOuterAlt(i,1),this.state=3768,this.match(e.CREATE),this.state=3769,this.match(e.ASYNC),this.state=3770,this.match(e.REPLICATION),this.state=3771,this.object_ref(),this.state=3772,this.match(e.FOR),this.state=3773,this.replication_target(),this.state=3778,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3774,this.match(e.COMMA),this.state=3775,this.replication_target(),this.state=3780,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3781,this.match(e.WITH),this.state=3782,this.match(e.LPAREN),this.state=3783,this.replication_settings(),this.state=3784,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}replication_target(){let t=new qc(this.context,this.state);this.enterRule(t,620,e.RULE_replication_target);try{this.enterOuterAlt(t,1),this.state=3786,this.object_ref(),this.state=3787,this.replication_name()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}replication_settings(){let t,i=new $c(this.context,this.state);this.enterRule(i,622,e.RULE_replication_settings);try{for(this.enterOuterAlt(i,1),this.state=3789,this.replication_settings_entry(),this.state=3794,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3790,this.match(e.COMMA),this.state=3791,this.replication_settings_entry(),this.state=3796,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}replication_settings_entry(){let t=new Qc(this.context,this.state);this.enterRule(t,624,e.RULE_replication_settings_entry);try{this.enterOuterAlt(t,1),this.state=3797,this.an_id(),this.state=3798,this.match(e.EQUALS),this.state=3799,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_replication_stmt(){let t,i=new Xc(this.context,this.state);this.enterRule(i,626,e.RULE_alter_replication_stmt);try{for(this.enterOuterAlt(i,1),this.state=3801,this.match(e.ALTER),this.state=3802,this.match(e.ASYNC),this.state=3803,this.match(e.REPLICATION),this.state=3804,this.object_ref(),this.state=3805,this.alter_replication_action(),this.state=3810,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3806,this.match(e.COMMA),this.state=3807,this.alter_replication_action(),this.state=3812,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_replication_action(){let t=new Zc(this.context,this.state);this.enterRule(t,628,e.RULE_alter_replication_action);try{this.enterOuterAlt(t,1),this.state=3813,this.alter_replication_set_setting()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_replication_set_setting(){let t=new Jc(this.context,this.state);this.enterRule(t,630,e.RULE_alter_replication_set_setting);try{this.enterOuterAlt(t,1),this.state=3815,this.match(e.SET),this.state=3816,this.match(e.LPAREN),this.state=3817,this.replication_settings(),this.state=3818,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}drop_replication_stmt(){let t,i=new el(this.context,this.state);this.enterRule(i,632,e.RULE_drop_replication_stmt);try{this.enterOuterAlt(i,1),this.state=3820,this.match(e.DROP),this.state=3821,this.match(e.ASYNC),this.state=3822,this.match(e.REPLICATION),this.state=3823,this.object_ref(),this.state=3825,this.errorHandler.sync(this),t=this.tokenStream.LA(1),69===t&&(this.state=3824,this.match(e.CASCADE))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}lambda_or_parameter(){let t=new tl(this.context,this.state);this.enterRule(t,634,e.RULE_lambda_or_parameter);try{switch(this.state=3829,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.LPAREN:this.enterOuterAlt(t,1),this.state=3827,this.lambda();break;case e.DOLLAR:this.enterOuterAlt(t,2),this.state=3828,this.bind_parameter();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}create_transfer_stmt(){let t,i=new il(this.context,this.state);this.enterRule(i,636,e.RULE_create_transfer_stmt);try{this.enterOuterAlt(i,1),this.state=3831,this.match(e.CREATE),this.state=3832,this.match(e.TRANSFER),this.state=3833,this.object_ref(),this.state=3834,this.match(e.FROM),this.state=3835,this.object_ref(),this.state=3836,this.match(e.TO),this.state=3837,this.object_ref(),this.state=3840,this.errorHandler.sync(this),t=this.tokenStream.LA(1),313===t&&(this.state=3838,this.match(e.USING),this.state=3839,this.lambda_or_parameter()),this.state=3842,this.match(e.WITH),this.state=3843,this.match(e.LPAREN),this.state=3844,this.transfer_settings(),this.state=3845,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}transfer_settings(){let t,i=new sl(this.context,this.state);this.enterRule(i,638,e.RULE_transfer_settings);try{for(this.enterOuterAlt(i,1),this.state=3847,this.transfer_settings_entry(),this.state=3852,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3848,this.match(e.COMMA),this.state=3849,this.transfer_settings_entry(),this.state=3854,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}transfer_settings_entry(){let t=new nl(this.context,this.state);this.enterRule(t,640,e.RULE_transfer_settings_entry);try{this.enterOuterAlt(t,1),this.state=3855,this.an_id(),this.state=3856,this.match(e.EQUALS),this.state=3857,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_transfer_stmt(){let t,i=new rl(this.context,this.state);this.enterRule(i,642,e.RULE_alter_transfer_stmt);try{for(this.enterOuterAlt(i,1),this.state=3859,this.match(e.ALTER),this.state=3860,this.match(e.TRANSFER),this.state=3861,this.object_ref(),this.state=3862,this.alter_transfer_action(),this.state=3867,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3863,this.match(e.COMMA),this.state=3864,this.alter_transfer_action(),this.state=3869,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_transfer_action(){let t=new ol(this.context,this.state);this.enterRule(t,644,e.RULE_alter_transfer_action);try{switch(this.state=3872,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,392,this.context)){case 1:this.enterOuterAlt(t,1),this.state=3870,this.alter_transfer_set_setting();break;case 2:this.enterOuterAlt(t,2),this.state=3871,this.alter_transfer_set_using()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_transfer_set_setting(){let t=new al(this.context,this.state);this.enterRule(t,646,e.RULE_alter_transfer_set_setting);try{this.enterOuterAlt(t,1),this.state=3874,this.match(e.SET),this.state=3875,this.match(e.LPAREN),this.state=3876,this.transfer_settings(),this.state=3877,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_transfer_set_using(){let t=new cl(this.context,this.state);this.enterRule(t,648,e.RULE_alter_transfer_set_using);try{this.enterOuterAlt(t,1),this.state=3879,this.match(e.SET),this.state=3880,this.match(e.USING),this.state=3881,this.lambda_or_parameter()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}drop_transfer_stmt(){let t,i=new ll(this.context,this.state);this.enterRule(i,650,e.RULE_drop_transfer_stmt);try{this.enterOuterAlt(i,1),this.state=3883,this.match(e.DROP),this.state=3884,this.match(e.TRANSFER),this.state=3885,this.object_ref(),this.state=3887,this.errorHandler.sync(this),t=this.tokenStream.LA(1),69===t&&(this.state=3886,this.match(e.CASCADE))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}action_or_subquery_args(){let t,i=new hl(this.context,this.state);this.enterRule(i,652,e.RULE_action_or_subquery_args);try{for(this.enterOuterAlt(i,1),this.state=3889,this.opt_bind_parameter(),this.state=3894,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3890,this.match(e.COMMA),this.state=3891,this.opt_bind_parameter(),this.state=3896,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}define_action_or_subquery_stmt(){let t,i=new dl(this.context,this.state);this.enterRule(i,654,e.RULE_define_action_or_subquery_stmt);try{this.enterOuterAlt(i,1),this.state=3897,this.match(e.DEFINE),this.state=3898,t=this.tokenStream.LA(1),39===t||280===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3899,this.bind_parameter(),this.state=3900,this.match(e.LPAREN),this.state=3902,this.errorHandler.sync(this),t=this.tokenStream.LA(1),30===t&&(this.state=3901,this.action_or_subquery_args()),this.state=3904,this.match(e.RPAREN),this.state=3905,this.match(e.AS),this.state=3906,this.define_action_or_subquery_body(),this.state=3907,this.match(e.END),this.state=3908,this.match(e.DEFINE)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}define_action_or_subquery_body(){let t,i=new ul(this.context,this.state);this.enterRule(i,656,e.RULE_define_action_or_subquery_body);try{let s;for(this.enterOuterAlt(i,1),this.state=3913,this.errorHandler.sync(this),t=this.tokenStream.LA(1);22===t;)this.state=3910,this.match(e.SEMICOLON),this.state=3915,this.errorHandler.sync(this),t=this.tokenStream.LA(1);if(this.state=3934,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t||30===t||!(t-43&-32)&&1<<t-43&196611||!(t-78&-32)&&1<<t-78&1086587137||!(t-110&-32)&&1<<t-110&2684882947||!(t-146&-32)&&1<<t-146&2099329||!(t-217&-32)&&1<<t-217&269517825||!(t-251&-32)&&1<<t-251&262721||!(t-309&-32)&&1<<t-309&71){for(this.state=3916,this.sql_stmt_core(),this.state=3925,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,398,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;){if(1===s){this.state=3918,this.errorHandler.sync(this),t=this.tokenStream.LA(1);do{this.state=3917,this.match(e.SEMICOLON),this.state=3920,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}while(22===t);this.state=3922,this.sql_stmt_core()}this.state=3927,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,398,this.context)}for(this.state=3931,this.errorHandler.sync(this),t=this.tokenStream.LA(1);22===t;)this.state=3928,this.match(e.SEMICOLON),this.state=3933,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}if_stmt(){let t,i=new gl(this.context,this.state);this.enterRule(i,658,e.RULE_if_stmt);try{this.enterOuterAlt(i,1),this.state=3937,this.errorHandler.sync(this),t=this.tokenStream.LA(1),122===t&&(this.state=3936,this.match(e.EVALUATE)),this.state=3939,this.match(e.IF),this.state=3940,this.expr(),this.state=3941,this.do_stmt(),this.state=3944,this.errorHandler.sync(this),t=this.tokenStream.LA(1),113===t&&(this.state=3942,this.match(e.ELSE),this.state=3943,this.do_stmt())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}for_stmt(){let t,i=new pl(this.context,this.state);this.enterRule(i,660,e.RULE_for_stmt);try{this.enterOuterAlt(i,1),this.state=3947,this.errorHandler.sync(this),t=this.tokenStream.LA(1),122===t&&(this.state=3946,this.match(e.EVALUATE)),this.state=3950,this.errorHandler.sync(this),t=this.tokenStream.LA(1),217===t&&(this.state=3949,this.match(e.PARALLEL)),this.state=3952,this.match(e.FOR),this.state=3953,this.bind_parameter(),this.state=3954,this.match(e.IN),this.state=3955,this.expr(),this.state=3956,this.do_stmt(),this.state=3959,this.errorHandler.sync(this),t=this.tokenStream.LA(1),113===t&&(this.state=3957,this.match(e.ELSE),this.state=3958,this.do_stmt())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}table_ref(){let t,i=new ml(this.context,this.state);this.enterRule(i,662,e.RULE_table_ref);try{let s;if(this.enterOuterAlt(i,1),1===(this.state=3964,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,406,this.context)))this.state=3961,this.cluster_expr(),this.state=3962,this.match(e.DOT);switch(this.state=3967,this.errorHandler.sync(this),t=this.tokenStream.LA(1),29===t&&(this.state=3966,this.match(e.COMMAT)),this.state=3999,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,414,this.context)){case 1:this.state=3969,this.table_key();break;case 2:if(this.state=3970,this.an_id_expr(),this.state=3971,this.match(e.LPAREN),this.state=3983,this.errorHandler.sync(this),t=this.tokenStream.LA(1),!(t-14&-32)&&1<<t-14&4286810141||!(t-46&-32)&&1<<t-46&4294963199||!(t-78&-32)&&1<<t-78&4294967295||!(t-110&-32)&&1<<t-110&4294967295||!(t-142&-32)&&1<<t-142&4294967295||!(t-174&-32)&&1<<t-174&4294967295||!(t-206&-32)&&1<<t-206&4294967295||!(t-238&-32)&&1<<t-238&4294967231||!(t-270&-32)&&1<<t-270&4294967295||!(t-302&-32)&&1<<t-302&2147483647){for(this.state=3972,this.table_arg(),this.state=3977,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,408,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=3973,this.match(e.COMMA),this.state=3974,this.table_arg()),this.state=3979,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,408,this.context);this.state=3981,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=3980,this.match(e.COMMA))}this.state=3985,this.match(e.RPAREN);break;case 3:this.state=3987,this.bind_parameter(),this.state=3993,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=3988,this.match(e.LPAREN),this.state=3990,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(!(t-14&-32)&&1<<t-14&4286777373||!(t-46&-32)&&1<<t-46&4294963199||!(t-78&-32)&&1<<t-78&4294967295||!(t-110&-32)&&1<<t-110&4294967295||!(t-142&-32)&&1<<t-142&4294967295||!(t-174&-32)&&1<<t-174&4294967295||!(t-206&-32)&&1<<t-206&4294967295||!(t-238&-32)&&1<<t-238&4294967231||!(t-270&-32)&&1<<t-270&4294967295||!(t-302&-32)&&1<<t-302&2147483647)&&(this.state=3989,this.expr_list()),this.state=3992,this.match(e.RPAREN)),this.state=3997,this.errorHandler.sync(this),t=this.tokenStream.LA(1),317===t&&(this.state=3995,this.match(e.VIEW),this.state=3996,this.view_name())}this.state=4002,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=4001,this.table_hints())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}table_key(){let t,i=new fl(this.context,this.state);this.enterRule(i,664,e.RULE_table_key);try{this.enterOuterAlt(i,1),this.state=4004,this.id_table_or_type(),this.state=4007,this.errorHandler.sync(this),t=this.tokenStream.LA(1),317===t&&(this.state=4005,this.match(e.VIEW),this.state=4006,this.view_name())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}table_arg(){let t,i=new _l(this.context,this.state);this.enterRule(i,666,e.RULE_table_arg);try{this.enterOuterAlt(i,1),this.state=4010,this.errorHandler.sync(this),t=this.tokenStream.LA(1),29===t&&(this.state=4009,this.match(e.COMMAT)),this.state=4012,this.named_expr(),this.state=4015,this.errorHandler.sync(this),t=this.tokenStream.LA(1),317===t&&(this.state=4013,this.match(e.VIEW),this.state=4014,this.view_name())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}table_hints(){let t,i=new vl(this.context,this.state);this.enterRule(i,668,e.RULE_table_hints);try{switch(this.enterOuterAlt(i,1),this.state=4017,this.match(e.WITH),this.state=4030,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.state=4018,this.table_hint();break;case e.LPAREN:for(this.state=4019,this.match(e.LPAREN),this.state=4020,this.table_hint(),this.state=4025,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=4021,this.match(e.COMMA),this.state=4022,this.table_hint(),this.state=4027,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=4028,this.match(e.RPAREN);break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}table_hint(){let t,i=new Cl(this.context,this.state);this.enterRule(i,670,e.RULE_table_hint);try{let s;switch(this.state=4077,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,430,this.context)){case 1:if(this.enterOuterAlt(i,1),this.state=4032,this.an_id_hint(),this.state=4051,this.errorHandler.sync(this),t=this.tokenStream.LA(1),1===t)switch(this.state=4033,this.match(e.EQUALS),this.state=4049,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DOLLAR:case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.state=4034,this.type_name_tag();break;case e.LPAREN:for(this.state=4035,this.match(e.LPAREN),this.state=4036,this.type_name_tag(),this.state=4041,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,421,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=4037,this.match(e.COMMA),this.state=4038,this.type_name_tag()),this.state=4043,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,421,this.context);this.state=4045,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=4044,this.match(e.COMMA)),this.state=4047,this.match(e.RPAREN);break;default:throw new lt(this)}break;case 2:this.enterOuterAlt(i,2),this.state=4053,t=this.tokenStream.LA(1),77===t||266===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=4055,this.errorHandler.sync(this),t=this.tokenStream.LA(1),1===t&&(this.state=4054,this.match(e.EQUALS)),this.state=4057,this.type_name_or_bind();break;case 3:if(this.enterOuterAlt(i,3),this.state=4058,this.match(e.SCHEMA),this.state=4060,this.errorHandler.sync(this),t=this.tokenStream.LA(1),1===t&&(this.state=4059,this.match(e.EQUALS)),this.state=4062,this.match(e.LPAREN),this.state=4071,this.errorHandler.sync(this),t=this.tokenStream.LA(1),!(t-30&-32)&&1<<t-30&4026531585||!(t-62&-32)&&1<<t-62&4294967295||!(t-94&-32)&&1<<t-94&4294967295||!(t-126&-32)&&1<<t-126&4294967231||!(t-158&-32)&&1<<t-158&4294967295||!(t-190&-32)&&1<<t-190&4294967295||!(t-222&-32)&&1<<t-222&4290772991||!(t-254&-32)&&1<<t-254&4294967295||!(t-286&-32)&&1<<t-286&4294950911||!(t-318&-32)&&1<<t-318&2047)for(this.state=4063,this.struct_arg_positional(),this.state=4068,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,427,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=4064,this.match(e.COMMA),this.state=4065,this.struct_arg_positional()),this.state=4070,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,427,this.context);this.state=4074,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=4073,this.match(e.COMMA)),this.state=4076,this.match(e.RPAREN)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}object_ref(){let t=new El(this.context,this.state);this.enterRule(t,672,e.RULE_object_ref);try{if(this.enterOuterAlt(t,1),1===(this.state=4082,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,431,this.context)))this.state=4079,this.cluster_expr(),this.state=4080,this.match(e.DOT);this.state=4084,this.id_or_at()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}simple_table_ref_core(){let t,i=new bl(this.context,this.state);this.enterRule(i,674,e.RULE_simple_table_ref_core);try{switch(this.state=4091,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,433,this.context)){case 1:this.enterOuterAlt(i,1),this.state=4086,this.object_ref();break;case 2:this.enterOuterAlt(i,2),this.state=4088,this.errorHandler.sync(this),t=this.tokenStream.LA(1),29===t&&(this.state=4087,this.match(e.COMMAT)),this.state=4090,this.bind_parameter()}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}simple_table_ref(){let t,i=new Sl(this.context,this.state);this.enterRule(i,676,e.RULE_simple_table_ref);try{this.enterOuterAlt(i,1),this.state=4093,this.simple_table_ref_core(),this.state=4095,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=4094,this.table_hints())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}into_simple_table_ref(){let t,i=new yl(this.context,this.state);this.enterRule(i,678,e.RULE_into_simple_table_ref);try{this.enterOuterAlt(i,1),this.state=4097,this.simple_table_ref(),this.state=4101,this.errorHandler.sync(this),t=this.tokenStream.LA(1),119===t&&(this.state=4098,this.match(e.ERASE),this.state=4099,this.match(e.BY),this.state=4100,this.pure_column_list())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}delete_stmt(){let t,i=new wl(this.context,this.state);this.enterRule(i,680,e.RULE_delete_stmt);try{switch(this.enterOuterAlt(i,1),this.state=4104,this.errorHandler.sync(this),t=this.tokenStream.LA(1),60===t&&(this.state=4103,this.match(e.BATCH)),this.state=4106,this.match(e.DELETE),this.state=4107,this.match(e.FROM),this.state=4108,this.simple_table_ref(),this.state=4112,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.WHERE:this.state=4109,this.where_expr();break;case e.ON:this.state=4110,this.match(e.ON),this.state=4111,this.into_values_source();case e.EOF:case e.SEMICOLON:case e.END:case e.RETURNING:}this.state=4115,this.errorHandler.sync(this),t=this.tokenStream.LA(1),255===t&&(this.state=4114,this.returning_columns_list())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}update_stmt(){let t,i=new Rl(this.context,this.state);this.enterRule(i,682,e.RULE_update_stmt);try{switch(this.enterOuterAlt(i,1),this.state=4118,this.errorHandler.sync(this),t=this.tokenStream.LA(1),60===t&&(this.state=4117,this.match(e.BATCH)),this.state=4120,this.match(e.UPDATE),this.state=4121,this.simple_table_ref(),this.state=4129,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.SET:this.state=4122,this.match(e.SET),this.state=4123,this.set_clause_choice(),this.state=4125,this.errorHandler.sync(this),t=this.tokenStream.LA(1),320===t&&(this.state=4124,this.where_expr());break;case e.ON:this.state=4127,this.match(e.ON),this.state=4128,this.into_values_source();break;default:throw new lt(this)}this.state=4132,this.errorHandler.sync(this),t=this.tokenStream.LA(1),255===t&&(this.state=4131,this.returning_columns_list())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}set_clause_choice(){let t=new Ll(this.context,this.state);this.enterRule(t,684,e.RULE_set_clause_choice);try{switch(this.state=4136,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4134,this.set_clause_list();break;case e.LPAREN:this.enterOuterAlt(t,2),this.state=4135,this.multiple_column_assignment();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}set_clause_list(){let t,i=new Tl(this.context,this.state);this.enterRule(i,686,e.RULE_set_clause_list);try{for(this.enterOuterAlt(i,1),this.state=4138,this.set_clause(),this.state=4143,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=4139,this.match(e.COMMA),this.state=4140,this.set_clause(),this.state=4145,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}set_clause(){let t=new xl(this.context,this.state);this.enterRule(t,688,e.RULE_set_clause);try{this.enterOuterAlt(t,1),this.state=4146,this.set_target(),this.state=4147,this.match(e.EQUALS),this.state=4148,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}set_target(){let t=new kl(this.context,this.state);this.enterRule(t,690,e.RULE_set_target);try{this.enterOuterAlt(t,1),this.state=4150,this.column_name()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}multiple_column_assignment(){let t=new Al(this.context,this.state);this.enterRule(t,692,e.RULE_multiple_column_assignment);try{this.enterOuterAlt(t,1),this.state=4152,this.set_target_list(),this.state=4153,this.match(e.EQUALS),this.state=4154,this.match(e.LPAREN),this.state=4155,this.simple_values_source(),this.state=4156,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}set_target_list(){let t,i=new Nl(this.context,this.state);this.enterRule(i,694,e.RULE_set_target_list);try{for(this.enterOuterAlt(i,1),this.state=4158,this.match(e.LPAREN),this.state=4159,this.set_target(),this.state=4164,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=4160,this.match(e.COMMA),this.state=4161,this.set_target(),this.state=4166,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=4167,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}create_topic_stmt(){let t,i=new Il(this.context,this.state);this.enterRule(i,696,e.RULE_create_topic_stmt);try{if(this.enterOuterAlt(i,1),1===(this.state=4169,this.match(e.CREATE),this.state=4170,this.match(e.TOPIC),this.state=4174,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,446,this.context)))this.state=4171,this.match(e.IF),this.state=4172,this.match(e.NOT),this.state=4173,this.match(e.EXISTS);this.state=4176,this.topic_ref(),this.state=4178,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=4177,this.create_topic_entries()),this.state=4181,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=4180,this.with_topic_settings())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}create_topic_entries(){let t,i=new Ol(this.context,this.state);this.enterRule(i,698,e.RULE_create_topic_entries);try{for(this.enterOuterAlt(i,1),this.state=4183,this.match(e.LPAREN),this.state=4184,this.create_topic_entry(),this.state=4189,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=4185,this.match(e.COMMA),this.state=4186,this.create_topic_entry(),this.state=4191,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=4192,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}create_topic_entry(){let t=new Dl(this.context,this.state);this.enterRule(t,700,e.RULE_create_topic_entry);try{this.enterOuterAlt(t,1),this.state=4194,this.topic_create_consumer_entry()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}with_topic_settings(){let t=new Ml(this.context,this.state);this.enterRule(t,702,e.RULE_with_topic_settings);try{this.enterOuterAlt(t,1),this.state=4196,this.match(e.WITH),this.state=4197,this.match(e.LPAREN),this.state=4198,this.topic_settings(),this.state=4199,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_topic_stmt(){let t,i=new Pl(this.context,this.state);this.enterRule(i,704,e.RULE_alter_topic_stmt);try{if(this.enterOuterAlt(i,1),1===(this.state=4201,this.match(e.ALTER),this.state=4202,this.match(e.TOPIC),this.state=4205,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,450,this.context)))this.state=4203,this.match(e.IF),this.state=4204,this.match(e.EXISTS);for(this.state=4207,this.topic_ref(),this.state=4208,this.alter_topic_action(),this.state=4213,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=4209,this.match(e.COMMA),this.state=4210,this.alter_topic_action(),this.state=4215,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_topic_action(){let t=new Fl(this.context,this.state);this.enterRule(t,706,e.RULE_alter_topic_action);try{switch(this.state=4221,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ADD:this.enterOuterAlt(t,1),this.state=4216,this.alter_topic_add_consumer();break;case e.ALTER:this.enterOuterAlt(t,2),this.state=4217,this.alter_topic_alter_consumer();break;case e.DROP:this.enterOuterAlt(t,3),this.state=4218,this.alter_topic_drop_consumer();break;case e.SET:this.enterOuterAlt(t,4),this.state=4219,this.alter_topic_set_settings();break;case e.RESET:this.enterOuterAlt(t,5),this.state=4220,this.alter_topic_reset_settings();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_topic_add_consumer(){let t=new Ul(this.context,this.state);this.enterRule(t,708,e.RULE_alter_topic_add_consumer);try{this.enterOuterAlt(t,1),this.state=4223,this.match(e.ADD),this.state=4224,this.topic_create_consumer_entry()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}topic_create_consumer_entry(){let t,i=new Hl(this.context,this.state);this.enterRule(i,710,e.RULE_topic_create_consumer_entry);try{this.enterOuterAlt(i,1),this.state=4226,this.match(e.CONSUMER),this.state=4227,this.an_id(),this.state=4229,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=4228,this.topic_consumer_with_settings())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_topic_alter_consumer(){let t=new Bl(this.context,this.state);this.enterRule(t,712,e.RULE_alter_topic_alter_consumer);try{this.enterOuterAlt(t,1),this.state=4231,this.match(e.ALTER),this.state=4232,this.match(e.CONSUMER),this.state=4233,this.topic_consumer_ref(),this.state=4234,this.alter_topic_alter_consumer_entry()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_topic_alter_consumer_entry(){let t=new Wl(this.context,this.state);this.enterRule(t,714,e.RULE_alter_topic_alter_consumer_entry);try{switch(this.state=4238,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.SET:this.enterOuterAlt(t,1),this.state=4236,this.topic_alter_consumer_set();break;case e.RESET:this.enterOuterAlt(t,2),this.state=4237,this.topic_alter_consumer_reset();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_topic_drop_consumer(){let t=new Vl(this.context,this.state);this.enterRule(t,716,e.RULE_alter_topic_drop_consumer);try{this.enterOuterAlt(t,1),this.state=4240,this.match(e.DROP),this.state=4241,this.match(e.CONSUMER),this.state=4242,this.topic_consumer_ref()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}topic_alter_consumer_set(){let t=new zl(this.context,this.state);this.enterRule(t,718,e.RULE_topic_alter_consumer_set);try{this.enterOuterAlt(t,1),this.state=4244,this.match(e.SET),this.state=4245,this.match(e.LPAREN),this.state=4246,this.topic_consumer_settings(),this.state=4247,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}topic_alter_consumer_reset(){let t,i=new Gl(this.context,this.state);this.enterRule(i,720,e.RULE_topic_alter_consumer_reset);try{for(this.enterOuterAlt(i,1),this.state=4249,this.match(e.RESET),this.state=4250,this.match(e.LPAREN),this.state=4251,this.an_id(),this.state=4256,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=4252,this.match(e.COMMA),this.state=4253,this.an_id(),this.state=4258,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=4259,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_topic_set_settings(){let t=new jl(this.context,this.state);this.enterRule(t,722,e.RULE_alter_topic_set_settings);try{this.enterOuterAlt(t,1),this.state=4261,this.match(e.SET),this.state=4262,this.match(e.LPAREN),this.state=4263,this.topic_settings(),this.state=4264,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_topic_reset_settings(){let t,i=new Kl(this.context,this.state);this.enterRule(i,724,e.RULE_alter_topic_reset_settings);try{for(this.enterOuterAlt(i,1),this.state=4266,this.match(e.RESET),this.state=4267,this.match(e.LPAREN),this.state=4268,this.an_id(),this.state=4273,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=4269,this.match(e.COMMA),this.state=4270,this.an_id_pure(),this.state=4275,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=4276,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}drop_topic_stmt(){let t=new Yl(this.context,this.state);this.enterRule(t,726,e.RULE_drop_topic_stmt);try{if(this.enterOuterAlt(t,1),1===(this.state=4278,this.match(e.DROP),this.state=4279,this.match(e.TOPIC),this.state=4282,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,457,this.context)))this.state=4280,this.match(e.IF),this.state=4281,this.match(e.EXISTS);this.state=4284,this.topic_ref()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}topic_settings(){let t,i=new ql(this.context,this.state);this.enterRule(i,728,e.RULE_topic_settings);try{for(this.enterOuterAlt(i,1),this.state=4286,this.topic_settings_entry(),this.state=4291,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=4287,this.match(e.COMMA),this.state=4288,this.topic_settings_entry(),this.state=4293,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}topic_settings_entry(){let t=new $l(this.context,this.state);this.enterRule(t,730,e.RULE_topic_settings_entry);try{this.enterOuterAlt(t,1),this.state=4294,this.an_id(),this.state=4295,this.match(e.EQUALS),this.state=4296,this.topic_setting_value()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}topic_setting_value(){let t=new Ql(this.context,this.state);this.enterRule(t,732,e.RULE_topic_setting_value);try{this.enterOuterAlt(t,1),this.state=4298,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}topic_consumer_with_settings(){let t=new Xl(this.context,this.state);this.enterRule(t,734,e.RULE_topic_consumer_with_settings);try{this.enterOuterAlt(t,1),this.state=4300,this.match(e.WITH),this.state=4301,this.match(e.LPAREN),this.state=4302,this.topic_consumer_settings(),this.state=4303,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}topic_consumer_settings(){let t,i=new Zl(this.context,this.state);this.enterRule(i,736,e.RULE_topic_consumer_settings);try{for(this.enterOuterAlt(i,1),this.state=4305,this.topic_consumer_settings_entry(),this.state=4310,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=4306,this.match(e.COMMA),this.state=4307,this.topic_consumer_settings_entry(),this.state=4312,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}topic_consumer_settings_entry(){let t=new Jl(this.context,this.state);this.enterRule(t,738,e.RULE_topic_consumer_settings_entry);try{this.enterOuterAlt(t,1),this.state=4313,this.an_id(),this.state=4314,this.match(e.EQUALS),this.state=4315,this.topic_consumer_setting_value()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}topic_consumer_setting_value(){let t=new eh(this.context,this.state);this.enterRule(t,740,e.RULE_topic_consumer_setting_value);try{this.enterOuterAlt(t,1),this.state=4317,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}topic_ref(){let t=new th(this.context,this.state);this.enterRule(t,742,e.RULE_topic_ref);try{if(this.enterOuterAlt(t,1),1===(this.state=4322,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,460,this.context)))this.state=4319,this.cluster_expr(),this.state=4320,this.match(e.DOT);this.state=4324,this.an_id()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}topic_consumer_ref(){let t=new ih(this.context,this.state);this.enterRule(t,744,e.RULE_topic_consumer_ref);try{this.enterOuterAlt(t,1),this.state=4326,this.an_id_pure()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}null_treatment(){let t=new sh(this.context,this.state);this.enterRule(t,746,e.RULE_null_treatment);try{switch(this.state=4332,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.RESPECT:this.enterOuterAlt(t,1),this.state=4328,this.match(e.RESPECT),this.state=4329,this.match(e.NULLS);break;case e.IGNORE:this.enterOuterAlt(t,2),this.state=4330,this.match(e.IGNORE),this.state=4331,this.match(e.NULLS);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}filter_clause(){let t=new nh(this.context,this.state);this.enterRule(t,748,e.RULE_filter_clause);try{this.enterOuterAlt(t,1),this.state=4334,this.match(e.FILTER),this.state=4335,this.match(e.LPAREN),this.state=4336,this.where_expr(),this.state=4337,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}window_name_or_specification(){let t=new rh(this.context,this.state);this.enterRule(t,750,e.RULE_window_name_or_specification);try{switch(this.state=4341,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4339,this.window_name();break;case e.LPAREN:this.enterOuterAlt(t,2),this.state=4340,this.window_specification();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}window_name(){let t=new oh(this.context,this.state);this.enterRule(t,752,e.RULE_window_name);try{this.enterOuterAlt(t,1),this.state=4343,this.an_id_window()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}window_clause(){let t=new ah(this.context,this.state);this.enterRule(t,754,e.RULE_window_clause);try{this.enterOuterAlt(t,1),this.state=4345,this.match(e.WINDOW),this.state=4346,this.window_definition_list()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}window_definition_list(){let t,i=new ch(this.context,this.state);this.enterRule(i,756,e.RULE_window_definition_list);try{for(this.enterOuterAlt(i,1),this.state=4348,this.window_definition(),this.state=4353,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=4349,this.match(e.COMMA),this.state=4350,this.window_definition(),this.state=4355,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}window_definition(){let t=new lh(this.context,this.state);this.enterRule(t,758,e.RULE_window_definition);try{this.enterOuterAlt(t,1),this.state=4356,this.new_window_name(),this.state=4357,this.match(e.AS),this.state=4358,this.window_specification()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}new_window_name(){let t=new hh(this.context,this.state);this.enterRule(t,760,e.RULE_new_window_name);try{this.enterOuterAlt(t,1),this.state=4360,this.window_name()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}window_specification(){let t=new dh(this.context,this.state);this.enterRule(t,762,e.RULE_window_specification);try{this.enterOuterAlt(t,1),this.state=4362,this.match(e.LPAREN),this.state=4363,this.window_specification_details(),this.state=4364,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}window_specification_details(){let t,i=new uh(this.context,this.state);this.enterRule(i,764,e.RULE_window_specification_details);try{if(this.enterOuterAlt(i,1),1===(this.state=4367,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,464,this.context)))this.state=4366,this.existing_window_name();this.state=4370,this.errorHandler.sync(this),t=this.tokenStream.LA(1),218===t&&(this.state=4369,this.window_partition_clause()),this.state=4373,this.errorHandler.sync(this),t=this.tokenStream.LA(1),213===t&&(this.state=4372,this.window_order_clause()),this.state=4376,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(149===t||236===t||263===t)&&(this.state=4375,this.window_frame_clause())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}existing_window_name(){let t=new gh(this.context,this.state);this.enterRule(t,766,e.RULE_existing_window_name);try{this.enterOuterAlt(t,1),this.state=4378,this.window_name()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}window_partition_clause(){let t,i=new ph(this.context,this.state);this.enterRule(i,768,e.RULE_window_partition_clause);try{this.enterOuterAlt(i,1),this.state=4380,this.match(e.PARTITION),this.state=4382,this.errorHandler.sync(this),t=this.tokenStream.LA(1),79===t&&(this.state=4381,this.match(e.COMPACT)),this.state=4384,this.match(e.BY),this.state=4385,this.named_expr_list()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}window_order_clause(){let t=new mh(this.context,this.state);this.enterRule(t,770,e.RULE_window_order_clause);try{this.enterOuterAlt(t,1),this.state=4387,this.order_by_clause()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}window_frame_clause(){let t,i=new fh(this.context,this.state);this.enterRule(i,772,e.RULE_window_frame_clause);try{this.enterOuterAlt(i,1),this.state=4389,this.window_frame_units(),this.state=4390,this.window_frame_extent(),this.state=4392,this.errorHandler.sync(this),t=this.tokenStream.LA(1),124===t&&(this.state=4391,this.window_frame_exclusion())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}window_frame_units(){let t,i=new _h(this.context,this.state);this.enterRule(i,774,e.RULE_window_frame_units);try{this.enterOuterAlt(i,1),this.state=4394,t=this.tokenStream.LA(1),149===t||236===t||263===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}window_frame_extent(){let t=new vh(this.context,this.state);this.enterRule(t,776,e.RULE_window_frame_extent);try{switch(this.state=4398,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,470,this.context)){case 1:this.enterOuterAlt(t,1),this.state=4396,this.window_frame_bound();break;case 2:this.enterOuterAlt(t,2),this.state=4397,this.window_frame_between()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}window_frame_between(){let t=new Ch(this.context,this.state);this.enterRule(t,778,e.RULE_window_frame_between);try{this.enterOuterAlt(t,1),this.state=4400,this.match(e.BETWEEN),this.state=4401,this.window_frame_bound(),this.state=4402,this.match(e.AND),this.state=4403,this.window_frame_bound()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}window_frame_bound(){let t,i=new Eh(this.context,this.state);this.enterRule(i,780,e.RULE_window_frame_bound);try{switch(this.state=4412,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,472,this.context)){case 1:this.enterOuterAlt(i,1),this.state=4405,this.match(e.CURRENT),this.state=4406,this.match(e.ROW);break;case 2:switch(this.enterOuterAlt(i,2),this.state=4409,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,471,this.context)){case 1:this.state=4407,this.expr();break;case 2:this.state=4408,this.match(e.UNBOUNDED)}this.state=4411,t=this.tokenStream.LA(1),138===t||228===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}window_frame_exclusion(){let t=new bh(this.context,this.state);this.enterRule(t,782,e.RULE_window_frame_exclusion);try{switch(this.state=4424,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,473,this.context)){case 1:this.enterOuterAlt(t,1),this.state=4414,this.match(e.EXCLUDE),this.state=4415,this.match(e.CURRENT),this.state=4416,this.match(e.ROW);break;case 2:this.enterOuterAlt(t,2),this.state=4417,this.match(e.EXCLUDE),this.state=4418,this.match(e.GROUP);break;case 3:this.enterOuterAlt(t,3),this.state=4419,this.match(e.EXCLUDE),this.state=4420,this.match(e.TIES);break;case 4:this.enterOuterAlt(t,4),this.state=4421,this.match(e.EXCLUDE),this.state=4422,this.match(e.NO),this.state=4423,this.match(e.OTHERS)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}use_stmt(){let t=new Sh(this.context,this.state);this.enterRule(t,784,e.RULE_use_stmt);try{this.enterOuterAlt(t,1),this.state=4426,this.match(e.USE),this.state=4427,this.cluster_expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}subselect_stmt(){let t=new yh(this.context,this.state);this.enterRule(t,786,e.RULE_subselect_stmt);try{switch(this.enterOuterAlt(t,1),this.state=4434,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.LPAREN:this.state=4429,this.match(e.LPAREN),this.state=4430,this.select_stmt(),this.state=4431,this.match(e.RPAREN);break;case e.DISCARD:case e.FROM:case e.PROCESS:case e.REDUCE:case e.SELECT:this.state=4433,this.select_unparenthesized_stmt();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}named_nodes_stmt(){let t=new wh(this.context,this.state);this.enterRule(t,788,e.RULE_named_nodes_stmt);try{switch(this.enterOuterAlt(t,1),this.state=4436,this.bind_parameter_list(),this.state=4437,this.match(e.EQUALS),this.state=4440,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,475,this.context)){case 1:this.state=4438,this.expr();break;case 2:this.state=4439,this.subselect_stmt()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}commit_stmt(){let t=new Rh(this.context,this.state);this.enterRule(t,790,e.RULE_commit_stmt);try{this.enterOuterAlt(t,1),this.state=4442,this.match(e.COMMIT)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}rollback_stmt(){let t=new Lh(this.context,this.state);this.enterRule(t,792,e.RULE_rollback_stmt);try{this.enterOuterAlt(t,1),this.state=4444,this.match(e.ROLLBACK)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}analyze_table(){let t,i=new Th(this.context,this.state);this.enterRule(i,794,e.RULE_analyze_table);try{this.enterOuterAlt(i,1),this.state=4446,this.simple_table_ref(),this.state=4451,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=4447,this.match(e.LPAREN),this.state=4448,this.column_list(),this.state=4449,this.match(e.RPAREN))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}analyze_table_list(){let t,i=new xh(this.context,this.state);this.enterRule(i,796,e.RULE_analyze_table_list);try{let s;for(this.enterOuterAlt(i,1),this.state=4453,this.analyze_table(),this.state=4458,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,477,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=4454,this.match(e.COMMA),this.state=4455,this.analyze_table()),this.state=4460,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,477,this.context);this.state=4462,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=4461,this.match(e.COMMA))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}analyze_stmt(){let t=new kh(this.context,this.state);this.enterRule(t,798,e.RULE_analyze_stmt);try{this.enterOuterAlt(t,1),this.state=4464,this.match(e.ANALYZE),this.state=4465,this.analyze_table_list()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_sequence_stmt(){let t,i=new Ah(this.context,this.state);this.enterRule(i,800,e.RULE_alter_sequence_stmt);try{if(this.enterOuterAlt(i,1),1===(this.state=4467,this.match(e.ALTER),this.state=4468,this.match(e.SEQUENCE),this.state=4471,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,479,this.context)))this.state=4469,this.match(e.IF),this.state=4470,this.match(e.EXISTS);this.state=4473,this.object_ref(),this.state=4475,this.errorHandler.sync(this),t=this.tokenStream.LA(1);do{this.state=4474,this.alter_sequence_action(),this.state=4477,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}while(159===t||250===t||277===t)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_sequence_action(){let t,i=new Nh(this.context,this.state);this.enterRule(i,802,e.RULE_alter_sequence_action);try{switch(this.state=4495,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,484,this.context)){case 1:this.enterOuterAlt(i,1),this.state=4479,this.match(e.START),this.state=4481,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=4480,this.match(e.WITH)),this.state=4483,this.integer();break;case 2:this.enterOuterAlt(i,2),this.state=4484,this.match(e.RESTART),this.state=4486,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=4485,this.match(e.WITH)),this.state=4488,this.integer();break;case 3:this.enterOuterAlt(i,3),this.state=4489,this.match(e.RESTART);break;case 4:this.enterOuterAlt(i,4),this.state=4490,this.match(e.INCREMENT),this.state=4492,this.errorHandler.sync(this),t=this.tokenStream.LA(1),67===t&&(this.state=4491,this.match(e.BY)),this.state=4494,this.integer()}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}identifier(){let t,i=new Ih(this.context,this.state);this.enterRule(i,804,e.RULE_identifier);try{this.enterOuterAlt(i,1),this.state=4497,t=this.tokenStream.LA(1),327===t||328===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}id(){let t=new Oh(this.context,this.state);this.enterRule(t,806,e.RULE_id);try{switch(this.state=4501,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4499,this.identifier();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:this.enterOuterAlt(t,2),this.state=4500,this.keyword();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}id_schema(){let t=new Dh(this.context,this.state);this.enterRule(t,808,e.RULE_id_schema);try{switch(this.state=4510,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4503,this.identifier();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.SAMPLE:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:this.enterOuterAlt(t,2),this.state=4504,this.keyword_compat();break;case e.ASYMMETRIC:case e.BETWEEN:case e.BITCAST:case e.CASE:case e.CAST:case e.CUBE:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.EMPTY_ACTION:case e.EXISTS:case e.FROM:case e.FULL:case e.HOP:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.NOT:case e.NULL:case e.PROCESS:case e.REDUCE:case e.RETURN:case e.RETURNING:case e.ROLLUP:case e.SELECT:case e.SYMMETRIC:case e.UNBOUNDED:case e.WHEN:case e.WHERE:this.enterOuterAlt(t,3),this.state=4505,this.keyword_expr_uncompat();break;case e.ALL:case e.AS:case e.ASSUME:case e.DISTINCT:case e.EXCEPT:case e.HAVING:case e.INTERSECT:case e.LIMIT:case e.UNION:case e.WINDOW:case e.WITHOUT:this.enterOuterAlt(t,4),this.state=4506,this.keyword_select_uncompat();break;case e.COMPACT:this.enterOuterAlt(t,5),this.state=4507,this.keyword_in_uncompat();break;case e.GROUPS:case e.RANGE:case e.ROWS:this.enterOuterAlt(t,6),this.state=4508,this.keyword_window_uncompat();break;case e.COLUMNS:case e.SCHEMA:this.enterOuterAlt(t,7),this.state=4509,this.keyword_hint_uncompat();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}id_expr(){let t=new Mh(this.context,this.state);this.enterRule(t,810,e.RULE_id_expr);try{switch(this.state=4518,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4512,this.identifier();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.SAMPLE:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:this.enterOuterAlt(t,2),this.state=4513,this.keyword_compat();break;case e.COLUMN:this.enterOuterAlt(t,3),this.state=4514,this.keyword_alter_uncompat();break;case e.COMPACT:this.enterOuterAlt(t,4),this.state=4515,this.keyword_in_uncompat();break;case e.GROUPS:case e.RANGE:case e.ROWS:this.enterOuterAlt(t,5),this.state=4516,this.keyword_window_uncompat();break;case e.COLUMNS:case e.SCHEMA:this.enterOuterAlt(t,6),this.state=4517,this.keyword_hint_uncompat();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}id_expr_in(){let t=new Ph(this.context,this.state);this.enterRule(t,812,e.RULE_id_expr_in);try{switch(this.state=4525,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4520,this.identifier();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.SAMPLE:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:this.enterOuterAlt(t,2),this.state=4521,this.keyword_compat();break;case e.COLUMN:this.enterOuterAlt(t,3),this.state=4522,this.keyword_alter_uncompat();break;case e.GROUPS:case e.RANGE:case e.ROWS:this.enterOuterAlt(t,4),this.state=4523,this.keyword_window_uncompat();break;case e.COLUMNS:case e.SCHEMA:this.enterOuterAlt(t,5),this.state=4524,this.keyword_hint_uncompat();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}id_window(){let t=new Fh(this.context,this.state);this.enterRule(t,814,e.RULE_id_window);try{switch(this.state=4535,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4527,this.identifier();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.SAMPLE:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:this.enterOuterAlt(t,2),this.state=4528,this.keyword_compat();break;case e.ASYMMETRIC:case e.BETWEEN:case e.BITCAST:case e.CASE:case e.CAST:case e.CUBE:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.EMPTY_ACTION:case e.EXISTS:case e.FROM:case e.FULL:case e.HOP:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.NOT:case e.NULL:case e.PROCESS:case e.REDUCE:case e.RETURN:case e.RETURNING:case e.ROLLUP:case e.SELECT:case e.SYMMETRIC:case e.UNBOUNDED:case e.WHEN:case e.WHERE:this.enterOuterAlt(t,3),this.state=4529,this.keyword_expr_uncompat();break;case e.ANY:case e.ERASE:case e.STREAM:this.enterOuterAlt(t,4),this.state=4530,this.keyword_table_uncompat();break;case e.ALL:case e.AS:case e.ASSUME:case e.DISTINCT:case e.EXCEPT:case e.HAVING:case e.INTERSECT:case e.LIMIT:case e.UNION:case e.WINDOW:case e.WITHOUT:this.enterOuterAlt(t,5),this.state=4531,this.keyword_select_uncompat();break;case e.COLUMN:this.enterOuterAlt(t,6),this.state=4532,this.keyword_alter_uncompat();break;case e.COMPACT:this.enterOuterAlt(t,7),this.state=4533,this.keyword_in_uncompat();break;case e.COLUMNS:case e.SCHEMA:this.enterOuterAlt(t,8),this.state=4534,this.keyword_hint_uncompat();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}id_table(){let t=new Uh(this.context,this.state);this.enterRule(t,816,e.RULE_id_table);try{switch(this.state=4544,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4537,this.identifier();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.SAMPLE:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:this.enterOuterAlt(t,2),this.state=4538,this.keyword_compat();break;case e.ASYMMETRIC:case e.BETWEEN:case e.BITCAST:case e.CASE:case e.CAST:case e.CUBE:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.EMPTY_ACTION:case e.EXISTS:case e.FROM:case e.FULL:case e.HOP:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.NOT:case e.NULL:case e.PROCESS:case e.REDUCE:case e.RETURN:case e.RETURNING:case e.ROLLUP:case e.SELECT:case e.SYMMETRIC:case e.UNBOUNDED:case e.WHEN:case e.WHERE:this.enterOuterAlt(t,3),this.state=4539,this.keyword_expr_uncompat();break;case e.ALL:case e.AS:case e.ASSUME:case e.DISTINCT:case e.EXCEPT:case e.HAVING:case e.INTERSECT:case e.LIMIT:case e.UNION:case e.WINDOW:case e.WITHOUT:this.enterOuterAlt(t,4),this.state=4540,this.keyword_select_uncompat();break;case e.COMPACT:this.enterOuterAlt(t,5),this.state=4541,this.keyword_in_uncompat();break;case e.GROUPS:case e.RANGE:case e.ROWS:this.enterOuterAlt(t,6),this.state=4542,this.keyword_window_uncompat();break;case e.COLUMNS:case e.SCHEMA:this.enterOuterAlt(t,7),this.state=4543,this.keyword_hint_uncompat();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}id_without(){let t=new Hh(this.context,this.state);this.enterRule(t,818,e.RULE_id_without);try{switch(this.state=4553,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4546,this.identifier();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.SAMPLE:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:this.enterOuterAlt(t,2),this.state=4547,this.keyword_compat();break;case e.ANY:case e.ERASE:case e.STREAM:this.enterOuterAlt(t,3),this.state=4548,this.keyword_table_uncompat();break;case e.COLUMN:this.enterOuterAlt(t,4),this.state=4549,this.keyword_alter_uncompat();break;case e.COMPACT:this.enterOuterAlt(t,5),this.state=4550,this.keyword_in_uncompat();break;case e.GROUPS:case e.RANGE:case e.ROWS:this.enterOuterAlt(t,6),this.state=4551,this.keyword_window_uncompat();break;case e.COLUMNS:case e.SCHEMA:this.enterOuterAlt(t,7),this.state=4552,this.keyword_hint_uncompat();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}id_hint(){let t=new Bh(this.context,this.state);this.enterRule(t,820,e.RULE_id_hint);try{switch(this.state=4563,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4555,this.identifier();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.SAMPLE:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:this.enterOuterAlt(t,2),this.state=4556,this.keyword_compat();break;case e.ASYMMETRIC:case e.BETWEEN:case e.BITCAST:case e.CASE:case e.CAST:case e.CUBE:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.EMPTY_ACTION:case e.EXISTS:case e.FROM:case e.FULL:case e.HOP:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.NOT:case e.NULL:case e.PROCESS:case e.REDUCE:case e.RETURN:case e.RETURNING:case e.ROLLUP:case e.SELECT:case e.SYMMETRIC:case e.UNBOUNDED:case e.WHEN:case e.WHERE:this.enterOuterAlt(t,3),this.state=4557,this.keyword_expr_uncompat();break;case e.ANY:case e.ERASE:case e.STREAM:this.enterOuterAlt(t,4),this.state=4558,this.keyword_table_uncompat();break;case e.ALL:case e.AS:case e.ASSUME:case e.DISTINCT:case e.EXCEPT:case e.HAVING:case e.INTERSECT:case e.LIMIT:case e.UNION:case e.WINDOW:case e.WITHOUT:this.enterOuterAlt(t,5),this.state=4559,this.keyword_select_uncompat();break;case e.COLUMN:this.enterOuterAlt(t,6),this.state=4560,this.keyword_alter_uncompat();break;case e.COMPACT:this.enterOuterAlt(t,7),this.state=4561,this.keyword_in_uncompat();break;case e.GROUPS:case e.RANGE:case e.ROWS:this.enterOuterAlt(t,8),this.state=4562,this.keyword_window_uncompat();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}id_as_compat(){let t=new Wh(this.context,this.state);this.enterRule(t,822,e.RULE_id_as_compat);try{switch(this.state=4567,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4565,this.identifier();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.LAST:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.OTHERS:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.REVERT:case e.REVOKE:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.VACUUM:case e.VALUES:case e.VIRTUAL:case e.WRAPPER:case e.XOR:this.enterOuterAlt(t,2),this.state=4566,this.keyword_as_compat();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}an_id(){let t=new Vh(this.context,this.state);this.enterRule(t,824,e.RULE_an_id);try{switch(this.state=4571,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4569,this.id();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4570,this.match(e.STRING_VALUE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}an_id_or_type(){let t=new zh(this.context,this.state);this.enterRule(t,826,e.RULE_an_id_or_type);try{switch(this.state=4575,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CALLABLE:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DICT:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ENUM:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FLOW:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LIST:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OPTIONAL:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESOURCE:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SET:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.STRUCT:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TAGGED:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TUPLE:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VARIANT:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4573,this.id_or_type();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4574,this.match(e.STRING_VALUE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}an_id_schema(){let t=new Gh(this.context,this.state);this.enterRule(t,828,e.RULE_an_id_schema);try{switch(this.state=4579,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4577,this.id_schema();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4578,this.match(e.STRING_VALUE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}an_id_expr(){let t=new jh(this.context,this.state);this.enterRule(t,830,e.RULE_an_id_expr);try{switch(this.state=4583,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4581,this.id_expr();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4582,this.match(e.STRING_VALUE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}an_id_expr_in(){let t=new Kh(this.context,this.state);this.enterRule(t,832,e.RULE_an_id_expr_in);try{switch(this.state=4587,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4585,this.id_expr_in();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4586,this.match(e.STRING_VALUE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}an_id_window(){let t=new Yh(this.context,this.state);this.enterRule(t,834,e.RULE_an_id_window);try{switch(this.state=4591,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4589,this.id_window();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4590,this.match(e.STRING_VALUE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}an_id_table(){let t=new qh(this.context,this.state);this.enterRule(t,836,e.RULE_an_id_table);try{switch(this.state=4595,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4593,this.id_table();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4594,this.match(e.STRING_VALUE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}an_id_without(){let t=new $h(this.context,this.state);this.enterRule(t,838,e.RULE_an_id_without);try{switch(this.state=4599,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4597,this.id_without();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4598,this.match(e.STRING_VALUE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}an_id_hint(){let t=new Qh(this.context,this.state);this.enterRule(t,840,e.RULE_an_id_hint);try{switch(this.state=4603,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4601,this.id_hint();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4602,this.match(e.STRING_VALUE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}an_id_pure(){let t=new Xh(this.context,this.state);this.enterRule(t,842,e.RULE_an_id_pure);try{switch(this.state=4607,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4605,this.identifier();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4606,this.match(e.STRING_VALUE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}an_id_as_compat(){let t=new Zh(this.context,this.state);this.enterRule(t,844,e.RULE_an_id_as_compat);try{switch(this.state=4611,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.LAST:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.OTHERS:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.REVERT:case e.REVOKE:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.VACUUM:case e.VALUES:case e.VIRTUAL:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4609,this.id_as_compat();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4610,this.match(e.STRING_VALUE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}view_name(){let t=new Jh(this.context,this.state);this.enterRule(t,846,e.RULE_view_name);try{switch(this.state=4616,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,505,this.context)){case 1:this.enterOuterAlt(t,1),this.state=4613,this.an_id();break;case 2:this.enterOuterAlt(t,2),this.state=4614,this.match(e.PRIMARY),this.state=4615,this.match(e.KEY)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}opt_id_prefix(){let t=new ed(this.context,this.state);this.enterRule(t,848,e.RULE_opt_id_prefix);try{if(1===(this.enterOuterAlt(t,1),this.state=4621,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,506,this.context)))this.state=4618,this.an_id(),this.state=4619,this.match(e.DOT)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}cluster_expr(){let t=new td(this.context,this.state);this.enterRule(t,850,e.RULE_cluster_expr);try{if(this.enterOuterAlt(t,1),1===(this.state=4626,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,507,this.context)))this.state=4623,this.an_id(),this.state=4624,this.match(e.COLON);switch(this.state=4630,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DOLLAR:case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.state=4628,this.pure_column_or_named();break;case e.ASTERISK:this.state=4629,this.match(e.ASTERISK);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}id_or_type(){let t=new id(this.context,this.state);this.enterRule(t,852,e.RULE_id_or_type);try{switch(this.state=4634,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4632,this.id();break;case e.CALLABLE:case e.DICT:case e.ENUM:case e.FLOW:case e.LIST:case e.OPTIONAL:case e.RESOURCE:case e.SET:case e.STRUCT:case e.TAGGED:case e.TUPLE:case e.VARIANT:this.enterOuterAlt(t,2),this.state=4633,this.type_id();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}opt_id_prefix_or_type(){let t=new sd(this.context,this.state);this.enterRule(t,854,e.RULE_opt_id_prefix_or_type);try{if(1===(this.enterOuterAlt(t,1),this.state=4639,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,510,this.context)))this.state=4636,this.an_id_or_type(),this.state=4637,this.match(e.DOT)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}id_or_at(){let t,i=new nd(this.context,this.state);this.enterRule(i,856,e.RULE_id_or_at);try{this.enterOuterAlt(i,1),this.state=4642,this.errorHandler.sync(this),t=this.tokenStream.LA(1),29===t&&(this.state=4641,this.match(e.COMMAT)),this.state=4644,this.an_id_or_type()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}id_table_or_type(){let t=new rd(this.context,this.state);this.enterRule(t,858,e.RULE_id_table_or_type);try{switch(this.state=4648,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4646,this.an_id_table();break;case e.CALLABLE:case e.DICT:case e.ENUM:case e.FLOW:case e.LIST:case e.OPTIONAL:case e.RESOURCE:case e.SET:case e.STRUCT:case e.TAGGED:case e.TUPLE:case e.VARIANT:this.enterOuterAlt(t,2),this.state=4647,this.type_id();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}id_table_or_at(){let t,i=new od(this.context,this.state);this.enterRule(i,860,e.RULE_id_table_or_at);try{this.enterOuterAlt(i,1),this.state=4651,this.errorHandler.sync(this),t=this.tokenStream.LA(1),29===t&&(this.state=4650,this.match(e.COMMAT)),this.state=4653,this.id_table_or_type()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}keyword(){let t=new ad(this.context,this.state);this.enterRule(t,862,e.RULE_keyword);try{switch(this.state=4663,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.SAMPLE:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:this.enterOuterAlt(t,1),this.state=4655,this.keyword_compat();break;case e.ASYMMETRIC:case e.BETWEEN:case e.BITCAST:case e.CASE:case e.CAST:case e.CUBE:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.EMPTY_ACTION:case e.EXISTS:case e.FROM:case e.FULL:case e.HOP:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.NOT:case e.NULL:case e.PROCESS:case e.REDUCE:case e.RETURN:case e.RETURNING:case e.ROLLUP:case e.SELECT:case e.SYMMETRIC:case e.UNBOUNDED:case e.WHEN:case e.WHERE:this.enterOuterAlt(t,2),this.state=4656,this.keyword_expr_uncompat();break;case e.ANY:case e.ERASE:case e.STREAM:this.enterOuterAlt(t,3),this.state=4657,this.keyword_table_uncompat();break;case e.ALL:case e.AS:case e.ASSUME:case e.DISTINCT:case e.EXCEPT:case e.HAVING:case e.INTERSECT:case e.LIMIT:case e.UNION:case e.WINDOW:case e.WITHOUT:this.enterOuterAlt(t,4),this.state=4658,this.keyword_select_uncompat();break;case e.COLUMN:this.enterOuterAlt(t,5),this.state=4659,this.keyword_alter_uncompat();break;case e.COMPACT:this.enterOuterAlt(t,6),this.state=4660,this.keyword_in_uncompat();break;case e.GROUPS:case e.RANGE:case e.ROWS:this.enterOuterAlt(t,7),this.state=4661,this.keyword_window_uncompat();break;case e.COLUMNS:case e.SCHEMA:this.enterOuterAlt(t,8),this.state=4662,this.keyword_hint_uncompat();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}keyword_expr_uncompat(){let t,i=new cd(this.context,this.state);this.enterRule(i,864,e.RULE_keyword_expr_uncompat);try{this.enterOuterAlt(i,1),this.state=4665,t=this.tokenStream.LA(1),!(t-52&-32)&&1<<t-52&811009||!(t-88&-32)&&1<<t-88&134217757||!(t-127&-32)&&1<<t-127&33603585||!(t-174&-32)&&1<<t-174&167772167||!(t-232&-32)&&1<<t-232&549453857||269===t||283===t||!(t-303&-32)&&1<<t-303&196609?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}keyword_table_uncompat(){let t,i=new ld(this.context,this.state);this.enterRule(i,866,e.RULE_keyword_table_uncompat);try{this.enterOuterAlt(i,1),this.state=4667,t=this.tokenStream.LA(1),47===t||119===t||278===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}keyword_select_uncompat(){let t,i=new hd(this.context,this.state);this.enterRule(i,868,e.RULE_keyword_select_uncompat);try{this.enterOuterAlt(i,1),this.state=4669,t=this.tokenStream.LA(1),!(t-42&-32)&&1<<t-42&641||109===t||123===t||!(t-151&-32)&&1<<t-151&2147745793||!(t-305&-32)&&1<<t-305&327681?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}keyword_alter_uncompat(){let t=new dd(this.context,this.state);this.enterRule(t,870,e.RULE_keyword_alter_uncompat);try{this.enterOuterAlt(t,1),this.state=4671,this.match(e.COLUMN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}keyword_in_uncompat(){let t=new ud(this.context,this.state);this.enterRule(t,872,e.RULE_keyword_in_uncompat);try{this.enterOuterAlt(t,1),this.state=4673,this.match(e.COMPACT)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}keyword_window_uncompat(){let t,i=new gd(this.context,this.state);this.enterRule(i,874,e.RULE_keyword_window_uncompat);try{this.enterOuterAlt(i,1),this.state=4675,t=this.tokenStream.LA(1),149===t||236===t||263===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}keyword_hint_uncompat(){let t,i=new pd(this.context,this.state);this.enterRule(i,876,e.RULE_keyword_hint_uncompat);try{this.enterOuterAlt(i,1),this.state=4677,t=this.tokenStream.LA(1),77===t||266===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}keyword_as_compat(){let t,i=new md(this.context,this.state);this.enterRule(i,878,e.RULE_keyword_as_compat);try{this.enterOuterAlt(i,1),this.state=4679,t=this.tokenStream.LA(1),!(t-38&-32)&&1<<t-38&2817496559||!(t-72&-32)&&1<<t-72&4024598343||!(t-104&-32)&&1<<t-104&4015470493||!(t-136&-32)&&1<<t-136&3221118877||!(t-168&-32)&&1<<t-168&2013213709||!(t-202&-32)&&1<<t-202&3086980575||!(t-234&-32)&&1<<t-234&2529672179||!(t-267&-32)&&1<<t-267&4286506979||!(t-299&-32)&&1<<t-299&101302185?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}keyword_compat(){let t,i=new fd(this.context,this.state);this.enterRule(i,880,e.RULE_keyword_compat);try{this.enterOuterAlt(i,1),this.state=4681,t=this.tokenStream.LA(1),!(t-38&-32)&&1<<t-38&2817496559||!(t-72&-32)&&1<<t-72&4293066575||!(t-104&-32)&&1<<t-104&4017567709||!(t-136&-32)&&1<<t-136&4294860701||!(t-168&-32)&&1<<t-168&2147434045||!(t-200&-32)&&1<<t-200&4294965245||!(t-233&-32)&&1<<t-233&2946463719||!(t-265&-32)&&1<<t-265&4261126061||!(t-297&-32)&&1<<t-297&439877287?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}type_id(){let t,i=new _d(this.context,this.state);this.enterRule(i,882,e.RULE_type_id);try{this.enterOuterAlt(i,1),this.state=4683,t=this.tokenStream.LA(1),68===t||105===t||118===t||137===t||183===t||211===t||!(t-248&-32)&&1<<t-248&2155872257||!(t-290&-32)&&1<<t-290&67110913?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}bool_value(){let t,i=new vd(this.context,this.state);this.enterRule(i,884,e.RULE_bool_value);try{this.enterOuterAlt(i,1),this.state=4685,t=this.tokenStream.LA(1),132===t||300===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}real(){let t=new Cd(this.context,this.state);this.enterRule(t,886,e.RULE_real);try{this.enterOuterAlt(t,1),this.state=4687,this.match(e.REAL)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}integer(){let t,i=new Ed(this.context,this.state);this.enterRule(i,888,e.RULE_integer);try{this.enterOuterAlt(i,1),this.state=4689,t=this.tokenStream.LA(1),329===t||330===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}sql_query_yq(){let t=new bd(this.context,this.state);this.enterRule(t,890,e.RULE_sql_query_yq);try{switch(this.state=4696,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,515,this.context)){case 1:this.enterOuterAlt(t,1),this.state=4691,this.sql_stmt_list_yq();break;case 2:this.enterOuterAlt(t,2),this.state=4692,this.match(e.PRAGMA),this.state=4693,this.match(e.ANSI),this.state=4694,this.match(e.DIGITS),this.state=4695,this.ansi_sql_stmt_list()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}sql_stmt_list_yq(){let t,i=new Sd(this.context,this.state);this.enterRule(i,892,e.RULE_sql_stmt_list_yq);try{let s;for(this.enterOuterAlt(i,1),this.state=4701,this.errorHandler.sync(this),t=this.tokenStream.LA(1);22===t;)this.state=4698,this.match(e.SEMICOLON),this.state=4703,this.errorHandler.sync(this),t=this.tokenStream.LA(1);for(this.state=4704,this.sql_stmt_yq(),this.state=4713,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,518,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;){if(1===s){this.state=4706,this.errorHandler.sync(this),t=this.tokenStream.LA(1);do{this.state=4705,this.match(e.SEMICOLON),this.state=4708,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}while(22===t);this.state=4710,this.sql_stmt_yq()}this.state=4715,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,518,this.context)}for(this.state=4719,this.errorHandler.sync(this),t=this.tokenStream.LA(1);22===t;)this.state=4716,this.match(e.SEMICOLON),this.state=4721,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=4722,this.match(e.EOF)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}sql_stmt_yq(){let t,i=new yd(this.context,this.state);this.enterRule(i,894,e.RULE_sql_stmt_yq);try{this.enterOuterAlt(i,1),this.state=4729,this.errorHandler.sync(this),t=this.tokenStream.LA(1),128===t&&(this.state=4724,this.match(e.EXPLAIN),this.state=4727,this.errorHandler.sync(this),t=this.tokenStream.LA(1),233===t&&(this.state=4725,this.match(e.QUERY),this.state=4726,this.match(e.PLAN))),this.state=4731,this.sql_stmt_core_yq()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}sql_stmt_core_yq(){let t=new wd(this.context,this.state);this.enterRule(t,896,e.RULE_sql_stmt_core_yq);try{switch(this.state=4746,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,522,this.context)){case 1:this.enterOuterAlt(t,1),this.state=4733,this.pragma_stmt();break;case 2:this.enterOuterAlt(t,2),this.state=4734,this.select_stmt();break;case 3:this.enterOuterAlt(t,3),this.state=4735,this.named_nodes_stmt();break;case 4:this.enterOuterAlt(t,4),this.state=4736,this.use_stmt();break;case 5:this.enterOuterAlt(t,5),this.state=4737,this.into_table_stmt_yq();break;case 6:this.enterOuterAlt(t,6),this.state=4738,this.declare_stmt();break;case 7:this.enterOuterAlt(t,7),this.state=4739,this.import_stmt();break;case 8:this.enterOuterAlt(t,8),this.state=4740,this.export_stmt();break;case 9:this.enterOuterAlt(t,9),this.state=4741,this.do_stmt();break;case 10:this.enterOuterAlt(t,10),this.state=4742,this.define_action_or_subquery_stmt();break;case 11:this.enterOuterAlt(t,11),this.state=4743,this.if_stmt();break;case 12:this.enterOuterAlt(t,12),this.state=4744,this.for_stmt();break;case 13:this.enterOuterAlt(t,13),this.state=4745,this.values_stmt()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}replication_name(){let t=new Rd(this.context,this.state);this.enterRule(t,898,e.RULE_replication_name);try{this.enterOuterAlt(t,1),this.state=4748,this.match(e.AS),this.state=4749,this.object_ref()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}where_expr(){let t=new Ld(this.context,this.state);this.enterRule(t,900,e.RULE_where_expr);try{this.enterOuterAlt(t,1),this.state=4751,this.match(e.WHERE),this.state=4752,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}static{this._serializedATN=[4,1,334,4755,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27,7,27,2,28,7,28,2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,32,2,33,7,33,2,34,7,34,2,35,7,35,2,36,7,36,2,37,7,37,2,38,7,38,2,39,7,39,2,40,7,40,2,41,7,41,2,42,7,42,2,43,7,43,2,44,7,44,2,45,7,45,2,46,7,46,2,47,7,47,2,48,7,48,2,49,7,49,2,50,7,50,2,51,7,51,2,52,7,52,2,53,7,53,2,54,7,54,2,55,7,55,2,56,7,56,2,57,7,57,2,58,7,58,2,59,7,59,2,60,7,60,2,61,7,61,2,62,7,62,2,63,7,63,2,64,7,64,2,65,7,65,2,66,7,66,2,67,7,67,2,68,7,68,2,69,7,69,2,70,7,70,2,71,7,71,2,72,7,72,2,73,7,73,2,74,7,74,2,75,7,75,2,76,7,76,2,77,7,77,2,78,7,78,2,79,7,79,2,80,7,80,2,81,7,81,2,82,7,82,2,83,7,83,2,84,7,84,2,85,7,85,2,86,7,86,2,87,7,87,2,88,7,88,2,89,7,89,2,90,7,90,2,91,7,91,2,92,7,92,2,93,7,93,2,94,7,94,2,95,7,95,2,96,7,96,2,97,7,97,2,98,7,98,2,99,7,99,2,100,7,100,2,101,7,101,2,102,7,102,2,103,7,103,2,104,7,104,2,105,7,105,2,106,7,106,2,107,7,107,2,108,7,108,2,109,7,109,2,110,7,110,2,111,7,111,2,112,7,112,2,113,7,113,2,114,7,114,2,115,7,115,2,116,7,116,2,117,7,117,2,118,7,118,2,119,7,119,2,120,7,120,2,121,7,121,2,122,7,122,2,123,7,123,2,124,7,124,2,125,7,125,2,126,7,126,2,127,7,127,2,128,7,128,2,129,7,129,2,130,7,130,2,131,7,131,2,132,7,132,2,133,7,133,2,134,7,134,2,135,7,135,2,136,7,136,2,137,7,137,2,138,7,138,2,139,7,139,2,140,7,140,2,141,7,141,2,142,7,142,2,143,7,143,2,144,7,144,2,145,7,145,2,146,7,146,2,147,7,147,2,148,7,148,2,149,7,149,2,150,7,150,2,151,7,151,2,152,7,152,2,153,7,153,2,154,7,154,2,155,7,155,2,156,7,156,2,157,7,157,2,158,7,158,2,159,7,159,2,160,7,160,2,161,7,161,2,162,7,162,2,163,7,163,2,164,7,164,2,165,7,165,2,166,7,166,2,167,7,167,2,168,7,168,2,169,7,169,2,170,7,170,2,171,7,171,2,172,7,172,2,173,7,173,2,174,7,174,2,175,7,175,2,176,7,176,2,177,7,177,2,178,7,178,2,179,7,179,2,180,7,180,2,181,7,181,2,182,7,182,2,183,7,183,2,184,7,184,2,185,7,185,2,186,7,186,2,187,7,187,2,188,7,188,2,189,7,189,2,190,7,190,2,191,7,191,2,192,7,192,2,193,7,193,2,194,7,194,2,195,7,195,2,196,7,196,2,197,7,197,2,198,7,198,2,199,7,199,2,200,7,200,2,201,7,201,2,202,7,202,2,203,7,203,2,204,7,204,2,205,7,205,2,206,7,206,2,207,7,207,2,208,7,208,2,209,7,209,2,210,7,210,2,211,7,211,2,212,7,212,2,213,7,213,2,214,7,214,2,215,7,215,2,216,7,216,2,217,7,217,2,218,7,218,2,219,7,219,2,220,7,220,2,221,7,221,2,222,7,222,2,223,7,223,2,224,7,224,2,225,7,225,2,226,7,226,2,227,7,227,2,228,7,228,2,229,7,229,2,230,7,230,2,231,7,231,2,232,7,232,2,233,7,233,2,234,7,234,2,235,7,235,2,236,7,236,2,237,7,237,2,238,7,238,2,239,7,239,2,240,7,240,2,241,7,241,2,242,7,242,2,243,7,243,2,244,7,244,2,245,7,245,2,246,7,246,2,247,7,247,2,248,7,248,2,249,7,249,2,250,7,250,2,251,7,251,2,252,7,252,2,253,7,253,2,254,7,254,2,255,7,255,2,256,7,256,2,257,7,257,2,258,7,258,2,259,7,259,2,260,7,260,2,261,7,261,2,262,7,262,2,263,7,263,2,264,7,264,2,265,7,265,2,266,7,266,2,267,7,267,2,268,7,268,2,269,7,269,2,270,7,270,2,271,7,271,2,272,7,272,2,273,7,273,2,274,7,274,2,275,7,275,2,276,7,276,2,277,7,277,2,278,7,278,2,279,7,279,2,280,7,280,2,281,7,281,2,282,7,282,2,283,7,283,2,284,7,284,2,285,7,285,2,286,7,286,2,287,7,287,2,288,7,288,2,289,7,289,2,290,7,290,2,291,7,291,2,292,7,292,2,293,7,293,2,294,7,294,2,295,7,295,2,296,7,296,2,297,7,297,2,298,7,298,2,299,7,299,2,300,7,300,2,301,7,301,2,302,7,302,2,303,7,303,2,304,7,304,2,305,7,305,2,306,7,306,2,307,7,307,2,308,7,308,2,309,7,309,2,310,7,310,2,311,7,311,2,312,7,312,2,313,7,313,2,314,7,314,2,315,7,315,2,316,7,316,2,317,7,317,2,318,7,318,2,319,7,319,2,320,7,320,2,321,7,321,2,322,7,322,2,323,7,323,2,324,7,324,2,325,7,325,2,326,7,326,2,327,7,327,2,328,7,328,2,329,7,329,2,330,7,330,2,331,7,331,2,332,7,332,2,333,7,333,2,334,7,334,2,335,7,335,2,336,7,336,2,337,7,337,2,338,7,338,2,339,7,339,2,340,7,340,2,341,7,341,2,342,7,342,2,343,7,343,2,344,7,344,2,345,7,345,2,346,7,346,2,347,7,347,2,348,7,348,2,349,7,349,2,350,7,350,2,351,7,351,2,352,7,352,2,353,7,353,2,354,7,354,2,355,7,355,2,356,7,356,2,357,7,357,2,358,7,358,2,359,7,359,2,360,7,360,2,361,7,361,2,362,7,362,2,363,7,363,2,364,7,364,2,365,7,365,2,366,7,366,2,367,7,367,2,368,7,368,2,369,7,369,2,370,7,370,2,371,7,371,2,372,7,372,2,373,7,373,2,374,7,374,2,375,7,375,2,376,7,376,2,377,7,377,2,378,7,378,2,379,7,379,2,380,7,380,2,381,7,381,2,382,7,382,2,383,7,383,2,384,7,384,2,385,7,385,2,386,7,386,2,387,7,387,2,388,7,388,2,389,7,389,2,390,7,390,2,391,7,391,2,392,7,392,2,393,7,393,2,394,7,394,2,395,7,395,2,396,7,396,2,397,7,397,2,398,7,398,2,399,7,399,2,400,7,400,2,401,7,401,2,402,7,402,2,403,7,403,2,404,7,404,2,405,7,405,2,406,7,406,2,407,7,407,2,408,7,408,2,409,7,409,2,410,7,410,2,411,7,411,2,412,7,412,2,413,7,413,2,414,7,414,2,415,7,415,2,416,7,416,2,417,7,417,2,418,7,418,2,419,7,419,2,420,7,420,2,421,7,421,2,422,7,422,2,423,7,423,2,424,7,424,2,425,7,425,2,426,7,426,2,427,7,427,2,428,7,428,2,429,7,429,2,430,7,430,2,431,7,431,2,432,7,432,2,433,7,433,2,434,7,434,2,435,7,435,2,436,7,436,2,437,7,437,2,438,7,438,2,439,7,439,2,440,7,440,2,441,7,441,2,442,7,442,2,443,7,443,2,444,7,444,2,445,7,445,2,446,7,446,2,447,7,447,2,448,7,448,2,449,7,449,2,450,7,450,1,0,1,0,1,0,1,0,1,0,3,0,908,8,0,1,1,5,1,911,8,1,10,1,12,1,914,9,1,1,1,1,1,4,1,918,8,1,11,1,12,1,919,1,1,5,1,923,8,1,10,1,12,1,926,9,1,1,1,5,1,929,8,1,10,1,12,1,932,9,1,1,1,1,1,1,2,5,2,937,8,2,10,2,12,2,940,9,2,1,2,1,2,1,3,5,3,945,8,3,10,3,12,3,948,9,3,1,3,1,3,4,3,952,8,3,11,3,12,3,953,5,3,956,8,3,10,3,12,3,959,9,3,1,3,1,3,1,3,5,3,964,8,3,10,3,12,3,967,9,3,1,4,1,4,3,4,971,8,4,1,5,1,5,1,5,3,5,976,8,5,3,5,978,8,5,1,5,1,5,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,3,6,1042,8,6,1,7,1,7,1,7,5,7,1047,8,7,10,7,12,7,1050,9,7,1,7,3,7,1053,8,7,1,8,1,8,1,8,5,8,1058,8,8,10,8,12,8,1061,9,8,1,9,1,9,1,9,5,9,1066,8,9,10,9,12,9,1069,9,9,1,10,1,10,3,10,1073,8,10,1,11,1,11,3,11,1077,8,11,1,11,1,11,1,11,1,12,3,12,1083,8,12,1,12,1,12,1,12,1,12,3,12,1089,8,12,1,12,3,12,1092,8,12,1,12,1,12,3,12,1096,8,12,1,12,1,12,1,12,1,12,1,12,1,12,3,12,1104,8,12,1,12,1,12,3,12,1108,8,12,1,12,3,12,1111,8,12,1,12,1,12,3,12,1115,8,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,3,12,1126,8,12,1,12,4,12,1129,8,12,11,12,12,12,1130,3,12,1133,8,12,1,13,1,13,1,14,1,14,1,14,5,14,1140,8,14,10,14,12,14,1143,9,14,1,15,1,15,1,15,1,16,1,16,1,16,1,16,1,17,1,17,1,17,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,3,18,1163,8,18,1,18,5,18,1166,8,18,10,18,12,18,1169,9,18,1,18,1,18,1,18,1,18,4,18,1175,8,18,11,18,12,18,1176,3,18,1179,8,18,1,19,1,19,1,19,5,19,1184,8,19,10,19,12,19,1187,9,19,1,20,1,20,1,20,5,20,1192,8,20,10,20,12,20,1195,9,20,1,21,1,21,1,21,5,21,1200,8,21,10,21,12,21,1203,9,21,1,22,1,22,1,22,1,22,3,22,1209,8,22,1,23,1,23,1,24,1,24,1,24,1,24,1,24,1,24,3,24,1219,8,24,3,24,1221,8,24,5,24,1223,8,24,10,24,12,24,1226,9,24,1,24,1,24,3,24,1230,8,24,1,25,1,25,3,25,1234,8,25,1,25,1,25,1,26,1,26,3,26,1240,8,26,1,26,1,26,1,27,1,27,3,27,1246,8,27,1,28,1,28,3,28,1250,8,28,1,29,1,29,3,29,1254,8,29,1,29,3,29,1257,8,29,1,29,1,29,1,30,1,30,1,30,3,30,1264,8,30,1,30,1,30,1,30,1,30,3,30,1270,8,30,5,30,1272,8,30,10,30,12,30,1275,9,30,1,31,1,31,3,31,1279,8,31,1,31,3,31,1282,8,31,1,31,1,31,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,5,32,1294,8,32,10,32,12,32,1297,9,32,1,33,1,33,3,33,1301,8,33,1,33,3,33,1304,8,33,1,33,1,33,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,3,34,1318,8,34,1,34,1,34,1,34,1,34,1,34,3,34,1325,8,34,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,3,35,1336,8,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,3,35,1347,8,35,1,36,1,36,1,36,1,36,1,36,1,36,1,36,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,38,1,38,1,38,1,38,3,38,1367,8,38,1,38,1,38,1,39,1,39,3,39,1373,8,39,1,39,4,39,1376,8,39,11,39,12,39,1377,1,39,1,39,3,39,1382,8,39,1,39,1,39,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,40,3,40,1396,8,40,3,40,1398,8,40,1,41,1,41,1,42,1,42,1,42,3,42,1405,8,42,1,43,1,43,1,44,1,44,3,44,1411,8,44,1,45,1,45,1,45,1,45,1,46,1,46,1,46,5,46,1420,8,46,10,46,12,46,1423,9,46,1,47,1,47,1,47,1,47,1,47,3,47,1430,8,47,1,48,1,48,1,48,1,48,3,48,1436,8,48,1,49,1,49,1,49,1,49,1,49,3,49,1443,8,49,1,49,1,49,1,49,1,49,5,49,1449,8,49,10,49,12,49,1452,9,49,1,49,1,49,1,50,1,50,1,50,1,50,1,51,1,51,1,51,1,51,3,51,1464,8,51,1,51,1,51,1,52,1,52,3,52,1470,8,52,1,52,1,52,3,52,1474,8,52,1,52,3,52,1477,8,52,3,52,1479,8,52,1,53,1,53,1,53,1,53,1,53,1,53,3,53,1487,8,53,1,54,1,54,1,54,1,54,1,54,1,54,3,54,1495,8,54,1,54,1,54,1,54,1,54,3,54,1501,8,54,1,54,1,54,1,54,1,54,3,54,1507,8,54,1,54,1,54,1,55,1,55,3,55,1513,8,55,1,55,3,55,1516,8,55,1,55,1,55,1,56,1,56,1,56,5,56,1523,8,56,10,56,12,56,1526,9,56,1,57,1,57,1,57,1,57,5,57,1532,8,57,10,57,12,57,1535,9,57,1,57,1,57,1,58,1,58,3,58,1541,8,58,1,59,1,59,1,59,1,59,5,59,1547,8,59,10,59,12,59,1550,9,59,1,59,1,59,1,60,1,60,1,60,1,61,1,61,1,61,1,61,1,61,3,61,1562,8,61,1,62,1,62,1,62,5,62,1567,8,62,10,62,12,62,1570,9,62,1,62,3,62,1573,8,62,1,63,1,63,1,63,5,63,1578,8,63,10,63,12,63,1581,9,63,1,63,3,63,1584,8,63,1,64,1,64,1,64,3,64,1589,8,64,1,65,1,65,1,65,5,65,1594,8,65,10,65,12,65,1597,9,65,1,66,1,66,1,66,1,66,3,66,1603,8,66,1,66,3,66,1606,8,66,1,66,1,66,1,66,1,67,1,67,3,67,1613,8,67,1,67,1,67,3,67,1617,8,67,1,68,1,68,1,68,1,68,1,68,1,68,1,68,1,68,3,68,1627,8,68,1,68,1,68,1,69,1,69,1,69,1,69,1,70,1,70,1,70,1,70,1,70,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,3,71,1650,8,71,1,72,1,72,1,72,1,72,3,72,1656,8,72,1,73,1,73,3,73,1660,8,73,1,74,1,74,1,74,5,74,1665,8,74,10,74,12,74,1668,9,74,1,75,1,75,1,75,3,75,1673,8,75,1,76,1,76,1,76,5,76,1678,8,76,10,76,12,76,1681,9,76,1,77,3,77,1684,8,77,1,77,1,77,3,77,1688,8,77,1,78,1,78,1,79,1,79,3,79,1694,8,79,1,80,1,80,1,80,3,80,1699,8,80,1,81,1,81,1,81,1,81,1,82,1,82,1,82,3,82,1708,8,82,1,82,3,82,1711,8,82,1,82,1,82,1,82,1,82,3,82,1717,8,82,1,83,1,83,1,83,3,83,1722,8,83,1,83,1,83,1,84,1,84,1,84,1,84,3,84,1730,8,84,1,85,1,85,1,85,5,85,1735,8,85,10,85,12,85,1738,9,85,1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,87,1,87,1,87,1,87,1,87,1,88,1,88,1,88,1,88,1,88,5,88,1757,8,88,10,88,12,88,1760,9,88,1,88,3,88,1763,8,88,3,88,1765,8,88,1,88,1,88,3,88,1769,8,88,1,89,1,89,1,89,1,89,1,89,5,89,1776,8,89,10,89,12,89,1779,9,89,1,89,3,89,1782,8,89,3,89,1784,8,89,1,89,1,89,3,89,1788,8,89,1,90,1,90,1,90,1,90,1,90,5,90,1795,8,90,10,90,12,90,1798,9,90,1,90,3,90,1801,8,90,1,90,1,90,1,91,1,91,1,91,1,91,1,91,1,92,1,92,1,92,1,92,1,92,1,93,1,93,1,93,1,93,1,93,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,95,1,95,1,95,1,95,1,95,1,96,1,96,1,96,1,96,1,96,5,96,1837,8,96,10,96,12,96,1840,9,96,1,96,3,96,1843,8,96,1,96,1,96,1,97,1,97,1,97,1,97,1,97,1,98,1,98,1,98,1,98,1,98,1,98,1,98,1,99,1,99,1,99,1,99,3,99,1863,8,99,1,99,3,99,1866,8,99,1,99,1,99,1,99,1,99,3,99,1872,8,99,1,99,1,99,1,99,1,99,1,99,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,3,100,1892,8,100,1,100,5,100,1895,8,100,10,100,12,100,1898,9,100,1,101,1,101,1,101,3,101,1903,8,101,1,101,5,101,1906,8,101,10,101,12,101,1909,9,101,3,101,1911,8,101,1,102,1,102,3,102,1915,8,102,1,103,1,103,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,3,104,1942,8,104,1,105,1,105,1,105,1,105,1,105,1,105,3,105,1950,8,105,1,106,3,106,1953,8,106,1,106,1,106,1,106,5,106,1958,8,106,10,106,12,106,1961,9,106,1,107,1,107,1,107,1,107,1,107,1,108,1,108,1,108,1,109,1,109,3,109,1973,8,109,1,109,1,109,3,109,1977,8,109,1,109,1,109,1,110,1,110,1,110,1,110,1,110,1,111,1,111,1,111,3,111,1989,8,111,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,112,5,112,2e3,8,112,10,112,12,112,2003,9,112,1,112,1,112,3,112,2007,8,112,1,113,1,113,1,113,1,113,1,113,3,113,2014,8,113,1,114,1,114,3,114,2018,8,114,1,115,1,115,1,115,5,115,2023,8,115,10,115,12,115,2026,9,115,1,116,1,116,1,116,1,116,5,116,2032,8,116,10,116,12,116,2035,9,116,1,117,1,117,1,117,1,117,5,117,2041,8,117,10,117,12,117,2044,9,117,1,118,1,118,1,118,1,118,1,118,3,118,2051,8,118,1,119,1,119,3,119,2055,8,119,1,119,1,119,3,119,2059,8,119,1,120,1,120,1,120,1,120,1,120,3,120,2066,8,120,3,120,2068,8,120,1,121,3,121,2071,8,121,1,121,1,121,1,121,3,121,2076,8,121,1,121,1,121,1,121,3,121,2081,8,121,1,122,1,122,3,122,2085,8,122,1,122,1,122,1,122,5,122,2090,8,122,10,122,12,122,2093,9,122,1,122,1,122,1,122,1,122,3,122,2099,8,122,1,122,1,122,3,122,2103,8,122,1,122,3,122,2106,8,122,1,122,1,122,3,122,2110,8,122,1,122,1,122,3,122,2114,8,122,3,122,2116,8,122,1,123,1,123,1,123,1,123,1,124,1,124,1,124,5,124,2125,8,124,10,124,12,124,2128,9,124,1,125,1,125,1,125,1,125,5,125,2134,8,125,10,125,12,125,2137,9,125,1,125,1,125,3,125,2141,8,125,1,125,1,125,1,125,1,125,3,125,2147,8,125,1,125,1,125,1,125,3,125,2152,8,125,1,125,3,125,2155,8,125,1,125,1,125,3,125,2159,8,125,1,125,1,125,3,125,2163,8,125,1,126,3,126,2166,8,126,1,127,1,127,3,127,2170,8,127,1,127,1,127,3,127,2174,8,127,1,127,1,127,1,127,1,127,5,127,2180,8,127,10,127,12,127,2183,9,127,1,127,3,127,2186,8,127,1,127,1,127,3,127,2190,8,127,1,127,1,127,3,127,2194,8,127,1,127,3,127,2197,8,127,1,127,3,127,2200,8,127,1,127,1,127,3,127,2204,8,127,1,127,3,127,2207,8,127,1,127,3,127,2210,8,127,1,128,1,128,1,128,3,128,2215,8,128,1,128,3,128,2218,8,128,1,128,3,128,2221,8,128,1,128,3,128,2224,8,128,1,128,1,128,1,128,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,129,3,129,2238,8,129,3,129,2240,8,129,1,130,1,130,1,130,1,130,1,130,1,130,1,130,1,130,1,130,3,130,2251,8,130,1,131,1,131,1,131,1,132,1,132,1,132,5,132,2259,8,132,10,132,12,132,2262,9,132,1,133,1,133,1,133,1,133,1,134,1,134,1,134,3,134,2271,8,134,1,134,3,134,2274,8,134,1,134,1,134,1,134,1,134,1,134,3,134,2281,8,134,1,134,1,134,1,134,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,3,135,2305,8,135,1,136,1,136,1,137,1,137,1,138,1,138,1,138,5,138,2314,8,138,10,138,12,138,2317,9,138,1,139,4,139,2320,8,139,11,139,12,139,2321,1,140,1,140,3,140,2326,8,140,1,141,1,141,3,141,2330,8,141,1,141,1,141,3,141,2334,8,141,1,141,1,141,3,141,2338,8,141,1,141,1,141,3,141,2342,8,141,1,141,1,141,3,141,2346,8,141,1,141,1,141,3,141,2350,8,141,1,141,1,141,1,141,1,141,3,141,2356,8,141,1,142,1,142,1,142,1,142,1,142,3,142,2363,8,142,1,142,1,142,1,142,1,142,1,142,1,142,1,142,1,142,3,142,2373,8,142,1,143,1,143,1,144,1,144,1,144,1,144,1,144,5,144,2382,8,144,10,144,12,144,2385,9,144,1,144,1,144,1,145,1,145,1,145,1,146,1,146,1,146,5,146,2395,8,146,10,146,12,146,2398,9,146,1,147,1,147,1,147,1,147,1,147,1,147,1,148,1,148,1,149,1,149,1,149,5,149,2411,8,149,10,149,12,149,2414,9,149,1,150,1,150,1,151,1,151,1,151,5,151,2421,8,151,10,151,12,151,2424,9,151,1,152,1,152,1,152,1,152,1,153,1,153,1,154,1,154,1,155,1,155,1,156,1,156,1,157,1,157,1,157,1,157,1,158,3,158,2443,8,158,1,158,1,158,1,159,1,159,3,159,2449,8,159,1,159,1,159,1,159,1,159,1,159,3,159,2456,8,159,1,160,1,160,1,160,5,160,2461,8,160,10,160,12,160,2464,9,160,1,161,1,161,1,161,1,161,1,161,3,161,2471,8,161,1,162,1,162,1,163,1,163,1,163,5,163,2478,8,163,10,163,12,163,2481,9,163,1,164,1,164,1,164,1,164,1,164,1,165,1,165,1,165,1,165,1,165,1,166,1,166,1,166,1,166,1,166,1,166,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,168,1,168,1,168,1,168,1,168,1,168,1,168,3,168,2517,8,168,3,168,2519,8,168,1,169,3,169,2522,8,169,1,169,1,169,1,169,3,169,2527,8,169,1,169,1,169,3,169,2531,8,169,5,169,2533,8,169,10,169,12,169,2536,9,169,1,170,1,170,1,170,3,170,2541,8,170,1,171,1,171,1,171,1,171,3,171,2547,8,171,1,171,1,171,3,171,2551,8,171,1,172,1,172,1,172,3,172,2556,8,172,1,172,1,172,1,172,3,172,2561,8,172,3,172,2563,8,172,1,173,1,173,3,173,2567,8,173,1,173,1,173,1,173,3,173,2572,8,173,1,173,3,173,2575,8,173,3,173,2577,8,173,1,173,1,173,3,173,2581,8,173,1,174,1,174,1,174,1,174,1,174,1,174,1,174,1,174,1,174,3,174,2592,8,174,1,175,1,175,1,175,1,176,1,176,1,176,1,176,1,176,1,176,3,176,2603,8,176,1,177,1,177,1,178,1,178,1,178,1,178,1,178,1,179,1,179,3,179,2614,8,179,1,179,1,179,3,179,2618,8,179,1,179,1,179,3,179,2622,8,179,1,179,1,179,3,179,2626,8,179,1,179,3,179,2629,8,179,1,179,1,179,3,179,2633,8,179,1,179,3,179,2636,8,179,1,180,1,180,1,180,1,180,3,180,2642,8,180,1,181,1,181,1,181,1,181,1,181,5,181,2649,8,181,10,181,12,181,2652,9,181,3,181,2654,8,181,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,3,182,2668,8,182,1,182,1,182,1,182,1,182,3,182,2674,8,182,1,183,1,183,1,183,1,183,1,183,1,183,1,183,1,183,1,183,1,183,1,183,3,183,2687,8,183,1,183,1,183,1,183,1,183,1,184,3,184,2694,8,184,1,184,1,184,1,184,3,184,2699,8,184,1,185,1,185,1,185,1,186,1,186,3,186,2706,8,186,1,187,1,187,1,187,5,187,2711,8,187,10,187,12,187,2714,9,187,1,188,1,188,1,188,1,188,1,189,1,189,3,189,2722,8,189,1,190,1,190,1,190,3,190,2727,8,190,1,190,1,190,1,190,1,190,1,190,1,190,3,190,2735,8,190,1,190,1,190,1,190,1,191,1,191,1,191,1,191,1,191,1,191,1,191,1,191,5,191,2748,8,191,10,191,12,191,2751,9,191,1,192,1,192,1,192,3,192,2756,8,192,1,193,1,193,1,193,1,193,1,193,1,193,3,193,2764,8,193,1,193,1,193,1,194,1,194,1,194,1,194,1,194,3,194,2773,8,194,1,194,1,194,3,194,2777,8,194,1,194,1,194,1,194,1,195,1,195,1,195,1,195,3,195,2786,8,195,1,195,1,195,1,196,1,196,1,196,1,196,1,196,1,196,1,196,1,196,3,196,2798,8,196,1,197,1,197,1,197,1,197,1,197,3,197,2805,8,197,1,197,1,197,1,197,1,197,1,197,1,197,3,197,2813,8,197,1,198,1,198,1,198,1,199,1,199,1,199,1,199,1,199,1,199,1,199,1,199,1,199,1,200,1,200,1,200,1,201,1,201,1,201,1,201,3,201,2834,8,201,1,201,1,201,1,201,1,201,1,201,1,201,3,201,2842,8,201,1,202,1,202,1,202,1,203,1,203,1,203,1,203,3,203,2851,8,203,1,204,1,204,1,204,1,204,1,205,1,205,1,206,1,206,3,206,2861,8,206,1,207,1,207,1,207,1,207,1,207,5,207,2868,8,207,10,207,12,207,2871,9,207,1,207,1,207,3,207,2875,8,207,1,208,1,208,1,209,1,209,1,209,3,209,2882,8,209,1,209,1,209,1,209,1,209,1,209,1,209,1,209,1,209,3,209,2892,8,209,1,209,1,209,1,209,3,209,2897,8,209,1,209,1,209,1,209,1,209,1,209,5,209,2904,8,209,10,209,12,209,2907,9,209,1,209,3,209,2910,8,209,1,209,1,209,3,209,2914,8,209,1,209,3,209,2917,8,209,1,209,3,209,2920,8,209,1,209,3,209,2923,8,209,1,209,3,209,2926,8,209,1,210,1,210,1,210,1,210,1,210,1,210,3,210,2934,8,210,1,211,1,211,1,211,3,211,2939,8,211,1,211,1,211,1,211,1,211,1,211,1,212,1,212,1,212,1,212,3,212,2950,8,212,1,213,1,213,1,213,1,214,1,214,3,214,2957,8,214,1,215,1,215,1,215,1,215,1,216,1,216,1,216,1,216,1,216,5,216,2968,8,216,10,216,12,216,2971,9,216,1,217,1,217,1,217,5,217,2976,8,217,10,217,12,217,2979,9,217,1,218,1,218,3,218,2983,8,218,1,219,1,219,1,219,5,219,2988,8,219,10,219,12,219,2991,9,219,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,220,3,220,3003,8,220,1,221,1,221,1,221,1,221,1,222,1,222,1,222,5,222,3012,8,222,10,222,12,222,3015,9,222,1,223,1,223,1,223,1,223,1,224,1,224,1,224,3,224,3024,8,224,1,225,1,225,1,225,1,225,3,225,3030,8,225,1,226,1,226,1,226,1,226,1,226,5,226,3037,8,226,10,226,12,226,3040,9,226,1,226,1,226,1,227,1,227,1,227,1,227,1,227,1,228,1,228,1,228,1,228,1,228,5,228,3054,8,228,10,228,12,228,3057,9,228,1,228,1,228,1,229,1,229,1,229,1,230,1,230,1,230,1,230,1,231,1,231,1,231,1,232,1,232,1,232,1,232,1,232,1,232,5,232,3077,8,232,10,232,12,232,3080,9,232,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,3,233,3099,8,233,1,234,1,234,1,234,1,234,1,234,1,234,1,234,5,234,3108,8,234,10,234,12,234,3111,9,234,1,235,1,235,1,235,1,235,1,235,3,235,3118,8,235,1,236,1,236,1,236,1,236,1,236,1,236,5,236,3126,8,236,10,236,12,236,3129,9,236,1,237,1,237,3,237,3133,8,237,1,238,1,238,3,238,3137,8,238,1,238,1,238,1,239,1,239,3,239,3143,8,239,1,239,1,239,1,240,1,240,1,240,1,240,1,240,1,240,1,241,1,241,1,241,1,241,1,241,1,241,1,241,1,242,1,242,1,242,1,243,1,243,1,243,1,243,1,243,1,243,1,243,1,244,1,244,1,244,1,244,1,245,1,245,1,245,1,245,1,245,5,245,3179,8,245,10,245,12,245,3182,9,245,1,245,1,245,1,246,1,246,1,246,1,246,1,246,5,246,3191,8,246,10,246,12,246,3194,9,246,1,246,1,246,1,247,1,247,1,247,1,248,1,248,1,248,1,248,1,249,1,249,1,249,1,249,1,250,1,250,1,250,1,250,1,250,1,250,1,251,1,251,1,251,1,252,1,252,1,252,1,252,1,252,1,253,1,253,1,253,1,253,1,254,1,254,1,254,1,254,1,254,1,255,1,255,1,255,3,255,3235,8,255,1,255,1,255,1,256,1,256,1,256,1,257,3,257,3243,8,257,1,257,3,257,3246,8,257,1,257,1,257,3,257,3250,8,257,1,258,1,258,3,258,3254,8,258,1,259,1,259,1,259,1,259,1,259,1,259,5,259,3262,8,259,10,259,12,259,3265,9,259,1,259,1,259,1,259,1,259,1,259,1,259,1,259,1,259,5,259,3275,8,259,10,259,12,259,3278,9,259,1,259,1,259,1,259,1,259,1,259,1,259,1,259,1,259,5,259,3288,8,259,10,259,12,259,3291,9,259,1,259,1,259,3,259,3295,8,259,1,260,1,260,1,260,1,260,1,260,1,260,1,260,1,260,5,260,3305,8,260,10,260,12,260,3308,9,260,1,260,1,260,1,260,1,260,1,260,1,260,5,260,3316,8,260,10,260,12,260,3319,9,260,1,260,1,260,3,260,3323,8,260,1,260,3,260,3326,8,260,1,261,1,261,3,261,3330,8,261,1,261,1,261,3,261,3334,8,261,1,262,1,262,3,262,3338,8,262,1,262,3,262,3341,8,262,1,263,1,263,1,264,1,264,1,265,1,265,1,265,1,265,1,265,5,265,3352,8,265,10,265,12,265,3355,9,265,1,265,3,265,3358,8,265,1,265,1,265,1,266,1,266,1,266,1,266,1,267,1,267,1,267,1,267,3,267,3370,8,267,1,268,1,268,1,268,1,268,1,268,1,268,1,268,1,269,1,269,1,269,5,269,3382,8,269,10,269,12,269,3385,9,269,1,270,1,270,1,270,1,270,1,271,1,271,1,272,1,272,1,272,1,272,1,272,1,272,3,272,3399,8,272,1,273,1,273,1,273,1,273,1,274,1,274,1,274,1,274,1,274,1,274,1,274,1,274,1,274,3,274,3414,8,274,1,274,3,274,3417,8,274,1,275,1,275,1,275,1,275,1,275,1,275,5,275,3425,8,275,10,275,12,275,3428,9,275,3,275,3430,8,275,1,276,1,276,1,276,1,276,1,276,1,276,3,276,3438,8,276,1,277,1,277,1,277,1,277,1,278,1,278,1,278,1,278,5,278,3448,8,278,10,278,12,278,3451,9,278,3,278,3453,8,278,1,278,1,278,1,279,1,279,1,279,1,279,1,280,1,280,3,280,3463,8,280,1,281,1,281,1,281,1,281,5,281,3469,8,281,10,281,12,281,3472,9,281,1,281,1,281,1,281,3,281,3477,8,281,1,282,1,282,1,282,1,282,5,282,3483,8,282,10,282,12,282,3486,9,282,1,282,1,282,1,283,1,283,1,283,3,283,3493,8,283,1,284,1,284,1,284,1,284,1,284,3,284,3500,8,284,1,284,1,284,3,284,3504,8,284,1,284,1,284,1,285,1,285,1,285,1,285,5,285,3512,8,285,10,285,12,285,3515,9,285,1,286,1,286,1,286,1,286,3,286,3521,8,286,1,286,4,286,3524,8,286,11,286,12,286,3525,1,286,1,286,1,286,3,286,3531,8,286,1,287,1,287,1,287,1,287,1,287,1,287,1,287,1,287,5,287,3541,8,287,10,287,12,287,3544,9,287,1,287,3,287,3547,8,287,3,287,3549,8,287,1,288,1,288,1,288,1,288,1,288,1,288,1,288,1,288,5,288,3559,8,288,10,288,12,288,3562,9,288,1,288,3,288,3565,8,288,1,288,1,288,1,288,3,288,3570,8,288,1,289,1,289,1,289,1,289,3,289,3576,8,289,1,289,1,289,1,289,5,289,3581,8,289,10,289,12,289,3584,9,289,1,289,3,289,3587,8,289,1,290,1,290,3,290,3591,8,290,1,291,1,291,3,291,3595,8,291,1,292,1,292,3,292,3599,8,292,1,293,3,293,3602,8,293,1,293,1,293,1,293,1,294,1,294,1,294,1,295,1,295,1,296,1,296,1,296,1,296,1,296,1,296,5,296,3618,8,296,10,296,12,296,3621,9,296,1,296,1,296,1,296,1,296,5,296,3627,8,296,10,296,12,296,3630,9,296,1,296,3,296,3633,8,296,1,296,1,296,1,296,3,296,3638,8,296,1,297,1,297,1,297,1,297,3,297,3644,8,297,1,297,1,297,1,297,1,297,1,297,5,297,3651,8,297,10,297,12,297,3654,9,297,1,297,1,297,1,297,1,297,5,297,3660,8,297,10,297,12,297,3663,9,297,1,298,1,298,1,298,1,298,1,298,1,298,1,298,1,298,1,298,1,298,1,298,1,298,1,298,1,298,3,298,3679,8,298,1,298,1,298,3,298,3683,8,298,1,298,1,298,3,298,3687,8,298,3,298,3689,8,298,1,299,1,299,3,299,3693,8,299,1,300,1,300,1,300,5,300,3698,8,300,10,300,12,300,3701,9,300,1,300,3,300,3704,8,300,1,300,1,300,3,300,3708,8,300,3,300,3710,8,300,1,301,1,301,1,301,1,301,1,301,1,301,1,302,1,302,1,302,1,302,1,302,1,302,1,302,5,302,3725,8,302,10,302,12,302,3728,9,302,1,303,1,303,3,303,3732,8,303,1,304,1,304,1,304,1,304,1,304,1,305,1,305,1,305,1,305,1,305,1,305,1,305,1,306,1,306,1,306,1,306,1,306,1,306,1,306,1,306,5,306,3754,8,306,10,306,12,306,3757,9,306,1,307,1,307,3,307,3761,8,307,1,308,1,308,1,308,1,308,1,308,1,308,1,309,1,309,1,309,1,309,1,309,1,309,1,309,1,309,5,309,3777,8,309,10,309,12,309,3780,9,309,1,309,1,309,1,309,1,309,1,309,1,310,1,310,1,310,1,311,1,311,1,311,5,311,3793,8,311,10,311,12,311,3796,9,311,1,312,1,312,1,312,1,312,1,313,1,313,1,313,1,313,1,313,1,313,1,313,5,313,3809,8,313,10,313,12,313,3812,9,313,1,314,1,314,1,315,1,315,1,315,1,315,1,315,1,316,1,316,1,316,1,316,1,316,3,316,3826,8,316,1,317,1,317,3,317,3830,8,317,1,318,1,318,1,318,1,318,1,318,1,318,1,318,1,318,1,318,3,318,3841,8,318,1,318,1,318,1,318,1,318,1,318,1,319,1,319,1,319,5,319,3851,8,319,10,319,12,319,3854,9,319,1,320,1,320,1,320,1,320,1,321,1,321,1,321,1,321,1,321,1,321,5,321,3866,8,321,10,321,12,321,3869,9,321,1,322,1,322,3,322,3873,8,322,1,323,1,323,1,323,1,323,1,323,1,324,1,324,1,324,1,324,1,325,1,325,1,325,1,325,3,325,3888,8,325,1,326,1,326,1,326,5,326,3893,8,326,10,326,12,326,3896,9,326,1,327,1,327,1,327,1,327,1,327,3,327,3903,8,327,1,327,1,327,1,327,1,327,1,327,1,327,1,328,5,328,3912,8,328,10,328,12,328,3915,9,328,1,328,1,328,4,328,3919,8,328,11,328,12,328,3920,1,328,5,328,3924,8,328,10,328,12,328,3927,9,328,1,328,5,328,3930,8,328,10,328,12,328,3933,9,328,3,328,3935,8,328,1,329,3,329,3938,8,329,1,329,1,329,1,329,1,329,1,329,3,329,3945,8,329,1,330,3,330,3948,8,330,1,330,3,330,3951,8,330,1,330,1,330,1,330,1,330,1,330,1,330,1,330,3,330,3960,8,330,1,331,1,331,1,331,3,331,3965,8,331,1,331,3,331,3968,8,331,1,331,1,331,1,331,1,331,1,331,1,331,5,331,3976,8,331,10,331,12,331,3979,9,331,1,331,3,331,3982,8,331,3,331,3984,8,331,1,331,1,331,1,331,1,331,1,331,3,331,3991,8,331,1,331,3,331,3994,8,331,1,331,1,331,3,331,3998,8,331,3,331,4e3,8,331,1,331,3,331,4003,8,331,1,332,1,332,1,332,3,332,4008,8,332,1,333,3,333,4011,8,333,1,333,1,333,1,333,3,333,4016,8,333,1,334,1,334,1,334,1,334,1,334,1,334,5,334,4024,8,334,10,334,12,334,4027,9,334,1,334,1,334,3,334,4031,8,334,1,335,1,335,1,335,1,335,1,335,1,335,1,335,5,335,4040,8,335,10,335,12,335,4043,9,335,1,335,3,335,4046,8,335,1,335,1,335,3,335,4050,8,335,3,335,4052,8,335,1,335,1,335,3,335,4056,8,335,1,335,1,335,1,335,3,335,4061,8,335,1,335,1,335,1,335,1,335,5,335,4067,8,335,10,335,12,335,4070,9,335,3,335,4072,8,335,1,335,3,335,4075,8,335,1,335,3,335,4078,8,335,1,336,1,336,1,336,3,336,4083,8,336,1,336,1,336,1,337,1,337,3,337,4089,8,337,1,337,3,337,4092,8,337,1,338,1,338,3,338,4096,8,338,1,339,1,339,1,339,1,339,3,339,4102,8,339,1,340,3,340,4105,8,340,1,340,1,340,1,340,1,340,1,340,1,340,3,340,4113,8,340,1,340,3,340,4116,8,340,1,341,3,341,4119,8,341,1,341,1,341,1,341,1,341,1,341,3,341,4126,8,341,1,341,1,341,3,341,4130,8,341,1,341,3,341,4133,8,341,1,342,1,342,3,342,4137,8,342,1,343,1,343,1,343,5,343,4142,8,343,10,343,12,343,4145,9,343,1,344,1,344,1,344,1,344,1,345,1,345,1,346,1,346,1,346,1,346,1,346,1,346,1,347,1,347,1,347,1,347,5,347,4163,8,347,10,347,12,347,4166,9,347,1,347,1,347,1,348,1,348,1,348,1,348,1,348,3,348,4175,8,348,1,348,1,348,3,348,4179,8,348,1,348,3,348,4182,8,348,1,349,1,349,1,349,1,349,5,349,4188,8,349,10,349,12,349,4191,9,349,1,349,1,349,1,350,1,350,1,351,1,351,1,351,1,351,1,351,1,352,1,352,1,352,1,352,3,352,4206,8,352,1,352,1,352,1,352,1,352,5,352,4212,8,352,10,352,12,352,4215,9,352,1,353,1,353,1,353,1,353,1,353,3,353,4222,8,353,1,354,1,354,1,354,1,355,1,355,1,355,3,355,4230,8,355,1,356,1,356,1,356,1,356,1,356,1,357,1,357,3,357,4239,8,357,1,358,1,358,1,358,1,358,1,359,1,359,1,359,1,359,1,359,1,360,1,360,1,360,1,360,1,360,5,360,4255,8,360,10,360,12,360,4258,9,360,1,360,1,360,1,361,1,361,1,361,1,361,1,361,1,362,1,362,1,362,1,362,1,362,5,362,4272,8,362,10,362,12,362,4275,9,362,1,362,1,362,1,363,1,363,1,363,1,363,3,363,4283,8,363,1,363,1,363,1,364,1,364,1,364,5,364,4290,8,364,10,364,12,364,4293,9,364,1,365,1,365,1,365,1,365,1,366,1,366,1,367,1,367,1,367,1,367,1,367,1,368,1,368,1,368,5,368,4309,8,368,10,368,12,368,4312,9,368,1,369,1,369,1,369,1,369,1,370,1,370,1,371,1,371,1,371,3,371,4323,8,371,1,371,1,371,1,372,1,372,1,373,1,373,1,373,1,373,3,373,4333,8,373,1,374,1,374,1,374,1,374,1,374,1,375,1,375,3,375,4342,8,375,1,376,1,376,1,377,1,377,1,377,1,378,1,378,1,378,5,378,4352,8,378,10,378,12,378,4355,9,378,1,379,1,379,1,379,1,379,1,380,1,380,1,381,1,381,1,381,1,381,1,382,3,382,4368,8,382,1,382,3,382,4371,8,382,1,382,3,382,4374,8,382,1,382,3,382,4377,8,382,1,383,1,383,1,384,1,384,3,384,4383,8,384,1,384,1,384,1,384,1,385,1,385,1,386,1,386,1,386,3,386,4393,8,386,1,387,1,387,1,388,1,388,3,388,4399,8,388,1,389,1,389,1,389,1,389,1,389,1,390,1,390,1,390,1,390,3,390,4410,8,390,1,390,3,390,4413,8,390,1,391,1,391,1,391,1,391,1,391,1,391,1,391,1,391,1,391,1,391,3,391,4425,8,391,1,392,1,392,1,392,1,393,1,393,1,393,1,393,1,393,3,393,4435,8,393,1,394,1,394,1,394,1,394,3,394,4441,8,394,1,395,1,395,1,396,1,396,1,397,1,397,1,397,1,397,1,397,3,397,4452,8,397,1,398,1,398,1,398,5,398,4457,8,398,10,398,12,398,4460,9,398,1,398,3,398,4463,8,398,1,399,1,399,1,399,1,400,1,400,1,400,1,400,3,400,4472,8,400,1,400,1,400,4,400,4476,8,400,11,400,12,400,4477,1,401,1,401,3,401,4482,8,401,1,401,1,401,1,401,3,401,4487,8,401,1,401,1,401,1,401,1,401,3,401,4493,8,401,1,401,3,401,4496,8,401,1,402,1,402,1,403,1,403,3,403,4502,8,403,1,404,1,404,1,404,1,404,1,404,1,404,1,404,3,404,4511,8,404,1,405,1,405,1,405,1,405,1,405,1,405,3,405,4519,8,405,1,406,1,406,1,406,1,406,1,406,3,406,4526,8,406,1,407,1,407,1,407,1,407,1,407,1,407,1,407,1,407,3,407,4536,8,407,1,408,1,408,1,408,1,408,1,408,1,408,1,408,3,408,4545,8,408,1,409,1,409,1,409,1,409,1,409,1,409,1,409,3,409,4554,8,409,1,410,1,410,1,410,1,410,1,410,1,410,1,410,1,410,3,410,4564,8,410,1,411,1,411,3,411,4568,8,411,1,412,1,412,3,412,4572,8,412,1,413,1,413,3,413,4576,8,413,1,414,1,414,3,414,4580,8,414,1,415,1,415,3,415,4584,8,415,1,416,1,416,3,416,4588,8,416,1,417,1,417,3,417,4592,8,417,1,418,1,418,3,418,4596,8,418,1,419,1,419,3,419,4600,8,419,1,420,1,420,3,420,4604,8,420,1,421,1,421,3,421,4608,8,421,1,422,1,422,3,422,4612,8,422,1,423,1,423,1,423,3,423,4617,8,423,1,424,1,424,1,424,3,424,4622,8,424,1,425,1,425,1,425,3,425,4627,8,425,1,425,1,425,3,425,4631,8,425,1,426,1,426,3,426,4635,8,426,1,427,1,427,1,427,3,427,4640,8,427,1,428,3,428,4643,8,428,1,428,1,428,1,429,1,429,3,429,4649,8,429,1,430,3,430,4652,8,430,1,430,1,430,1,431,1,431,1,431,1,431,1,431,1,431,1,431,1,431,3,431,4664,8,431,1,432,1,432,1,433,1,433,1,434,1,434,1,435,1,435,1,436,1,436,1,437,1,437,1,438,1,438,1,439,1,439,1,440,1,440,1,441,1,441,1,442,1,442,1,443,1,443,1,444,1,444,1,445,1,445,1,445,1,445,1,445,3,445,4697,8,445,1,446,5,446,4700,8,446,10,446,12,446,4703,9,446,1,446,1,446,4,446,4707,8,446,11,446,12,446,4708,1,446,5,446,4712,8,446,10,446,12,446,4715,9,446,1,446,5,446,4718,8,446,10,446,12,446,4721,9,446,1,446,1,446,1,447,1,447,1,447,3,447,4728,8,447,3,447,4730,8,447,1,447,1,447,1,448,1,448,1,448,1,448,1,448,1,448,1,448,1,448,1,448,1,448,1,448,1,448,1,448,3,448,4747,8,448,1,449,1,449,1,449,1,450,1,450,1,450,1,450,0,0,451,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,118,120,122,124,126,128,130,132,134,136,138,140,142,144,146,148,150,152,154,156,158,160,162,164,166,168,170,172,174,176,178,180,182,184,186,188,190,192,194,196,198,200,202,204,206,208,210,212,214,216,218,220,222,224,226,228,230,232,234,236,238,240,242,244,246,248,250,252,254,256,258,260,262,264,266,268,270,272,274,276,278,280,282,284,286,288,290,292,294,296,298,300,302,304,306,308,310,312,314,316,318,320,322,324,326,328,330,332,334,336,338,340,342,344,346,348,350,352,354,356,358,360,362,364,366,368,370,372,374,376,378,380,382,384,386,388,390,392,394,396,398,400,402,404,406,408,410,412,414,416,418,420,422,424,426,428,430,432,434,436,438,440,442,444,446,448,450,452,454,456,458,460,462,464,466,468,470,472,474,476,478,480,482,484,486,488,490,492,494,496,498,500,502,504,506,508,510,512,514,516,518,520,522,524,526,528,530,532,534,536,538,540,542,544,546,548,550,552,554,556,558,560,562,564,566,568,570,572,574,576,578,580,582,584,586,588,590,592,594,596,598,600,602,604,606,608,610,612,614,616,618,620,622,624,626,628,630,632,634,636,638,640,642,644,646,648,650,652,654,656,658,660,662,664,666,668,670,672,674,676,678,680,682,684,686,688,690,692,694,696,698,700,702,704,706,708,710,712,714,716,718,720,722,724,726,728,730,732,734,736,738,740,742,744,746,748,750,752,754,756,758,760,762,764,766,768,770,772,774,776,778,780,782,784,786,788,790,792,794,796,798,800,802,804,806,808,810,812,814,816,818,820,822,824,826,828,830,832,834,836,838,840,842,844,846,848,850,852,854,856,858,860,862,864,866,868,870,872,874,876,878,880,882,884,886,888,890,892,894,896,898,900,0,40,2,0,52,52,283,283,6,0,144,144,155,155,181,181,187,187,239,239,259,259,1,0,5,8,1,0,16,17,1,0,19,21,2,0,16,18,199,199,2,0,114,114,120,120,4,0,120,120,132,132,300,300,307,307,2,0,80,80,304,304,2,0,50,50,102,102,2,0,24,24,205,205,2,0,42,42,109,109,2,0,164,164,268,268,3,0,105,105,183,183,211,211,2,0,64,64,285,285,2,0,209,209,270,270,2,0,53,53,284,284,3,0,191,192,194,194,267,267,2,0,40,40,111,111,2,0,147,147,312,312,2,0,185,185,198,198,2,0,56,56,287,287,2,0,119,119,309,309,3,0,43,43,103,103,242,242,3,0,56,56,262,262,287,287,2,0,142,142,311,311,3,0,106,106,234,234,286,286,2,0,39,39,280,280,2,0,77,77,266,266,3,0,149,149,236,236,263,263,2,0,138,138,228,228,1,0,327,328,20,0,52,52,65,66,70,71,88,88,90,92,115,115,127,127,141,142,152,152,174,176,199,199,201,201,232,232,237,237,254,255,261,261,269,269,283,283,303,303,319,320,3,0,47,47,119,119,278,278,11,0,42,42,49,49,51,51,109,109,123,123,151,151,169,169,182,182,305,305,321,321,323,323,57,0,38,41,43,46,48,48,50,50,53,57,59,64,67,67,69,69,72,74,78,78,80,86,89,89,93,99,101,104,106,108,111,114,116,117,120,122,124,124,126,126,128,131,133,136,138,140,143,148,150,150,153,165,167,168,170,171,178,178,180,181,184,194,196,198,202,206,208,210,212,212,214,214,217,228,230,231,233,235,238,243,245,247,249,252,256,257,259,260,262,262,265,265,267,268,272,277,280,282,284,289,291,299,302,302,304,304,306,312,314,315,318,318,324,325,49,0,38,41,43,46,48,48,50,50,53,57,59,64,67,67,69,69,72,75,78,78,80,87,89,89,93,104,106,108,110,114,116,117,120,122,124,126,128,131,133,136,138,140,143,148,150,150,153,168,170,173,177,181,184,198,200,200,202,210,212,231,233,235,238,243,245,247,249,253,256,260,262,262,264,265,267,268,270,270,272,277,280,282,284,289,291,299,302,302,304,304,306,315,317,318,322,322,324,325,12,0,68,68,105,105,118,118,137,137,183,183,211,211,248,248,271,271,279,279,290,290,301,301,316,316,2,0,132,132,300,300,1,0,329,330,5094,0,907,1,0,0,0,2,912,1,0,0,0,4,938,1,0,0,0,6,946,1,0,0,0,8,970,1,0,0,0,10,977,1,0,0,0,12,1041,1,0,0,0,14,1052,1,0,0,0,16,1054,1,0,0,0,18,1062,1,0,0,0,20,1070,1,0,0,0,22,1074,1,0,0,0,24,1132,1,0,0,0,26,1134,1,0,0,0,28,1136,1,0,0,0,30,1144,1,0,0,0,32,1147,1,0,0,0,34,1151,1,0,0,0,36,1154,1,0,0,0,38,1180,1,0,0,0,40,1188,1,0,0,0,42,1196,1,0,0,0,44,1208,1,0,0,0,46,1210,1,0,0,0,48,1224,1,0,0,0,50,1233,1,0,0,0,52,1239,1,0,0,0,54,1245,1,0,0,0,56,1249,1,0,0,0,58,1251,1,0,0,0,60,1260,1,0,0,0,62,1276,1,0,0,0,64,1285,1,0,0,0,66,1298,1,0,0,0,68,1324,1,0,0,0,70,1346,1,0,0,0,72,1348,1,0,0,0,74,1355,1,0,0,0,76,1362,1,0,0,0,78,1370,1,0,0,0,80,1385,1,0,0,0,82,1399,1,0,0,0,84,1404,1,0,0,0,86,1406,1,0,0,0,88,1410,1,0,0,0,90,1412,1,0,0,0,92,1416,1,0,0,0,94,1424,1,0,0,0,96,1435,1,0,0,0,98,1437,1,0,0,0,100,1455,1,0,0,0,102,1459,1,0,0,0,104,1478,1,0,0,0,106,1486,1,0,0,0,108,1488,1,0,0,0,110,1510,1,0,0,0,112,1519,1,0,0,0,114,1527,1,0,0,0,116,1540,1,0,0,0,118,1542,1,0,0,0,120,1553,1,0,0,0,122,1561,1,0,0,0,124,1563,1,0,0,0,126,1574,1,0,0,0,128,1585,1,0,0,0,130,1590,1,0,0,0,132,1598,1,0,0,0,134,1612,1,0,0,0,136,1626,1,0,0,0,138,1630,1,0,0,0,140,1634,1,0,0,0,142,1649,1,0,0,0,144,1651,1,0,0,0,146,1657,1,0,0,0,148,1661,1,0,0,0,150,1669,1,0,0,0,152,1674,1,0,0,0,154,1683,1,0,0,0,156,1689,1,0,0,0,158,1693,1,0,0,0,160,1698,1,0,0,0,162,1700,1,0,0,0,164,1716,1,0,0,0,166,1721,1,0,0,0,168,1725,1,0,0,0,170,1731,1,0,0,0,172,1739,1,0,0,0,174,1746,1,0,0,0,176,1751,1,0,0,0,178,1770,1,0,0,0,180,1789,1,0,0,0,182,1804,1,0,0,0,184,1809,1,0,0,0,186,1814,1,0,0,0,188,1819,1,0,0,0,190,1826,1,0,0,0,192,1831,1,0,0,0,194,1846,1,0,0,0,196,1851,1,0,0,0,198,1858,1,0,0,0,200,1891,1,0,0,0,202,1910,1,0,0,0,204,1914,1,0,0,0,206,1916,1,0,0,0,208,1941,1,0,0,0,210,1943,1,0,0,0,212,1952,1,0,0,0,214,1962,1,0,0,0,216,1967,1,0,0,0,218,1972,1,0,0,0,220,1980,1,0,0,0,222,1985,1,0,0,0,224,1990,1,0,0,0,226,2013,1,0,0,0,228,2015,1,0,0,0,230,2019,1,0,0,0,232,2027,1,0,0,0,234,2036,1,0,0,0,236,2050,1,0,0,0,238,2058,1,0,0,0,240,2060,1,0,0,0,242,2070,1,0,0,0,244,2082,1,0,0,0,246,2117,1,0,0,0,248,2121,1,0,0,0,250,2129,1,0,0,0,252,2165,1,0,0,0,254,2169,1,0,0,0,256,2211,1,0,0,0,258,2239,1,0,0,0,260,2250,1,0,0,0,262,2252,1,0,0,0,264,2255,1,0,0,0,266,2263,1,0,0,0,268,2270,1,0,0,0,270,2304,1,0,0,0,272,2306,1,0,0,0,274,2308,1,0,0,0,276,2310,1,0,0,0,278,2319,1,0,0,0,280,2323,1,0,0,0,282,2355,1,0,0,0,284,2372,1,0,0,0,286,2374,1,0,0,0,288,2376,1,0,0,0,290,2388,1,0,0,0,292,2391,1,0,0,0,294,2399,1,0,0,0,296,2405,1,0,0,0,298,2407,1,0,0,0,300,2415,1,0,0,0,302,2417,1,0,0,0,304,2425,1,0,0,0,306,2429,1,0,0,0,308,2431,1,0,0,0,310,2433,1,0,0,0,312,2435,1,0,0,0,314,2437,1,0,0,0,316,2442,1,0,0,0,318,2446,1,0,0,0,320,2457,1,0,0,0,322,2470,1,0,0,0,324,2472,1,0,0,0,326,2474,1,0,0,0,328,2482,1,0,0,0,330,2487,1,0,0,0,332,2492,1,0,0,0,334,2498,1,0,0,0,336,2518,1,0,0,0,338,2521,1,0,0,0,340,2537,1,0,0,0,342,2550,1,0,0,0,344,2552,1,0,0,0,346,2564,1,0,0,0,348,2591,1,0,0,0,350,2593,1,0,0,0,352,2596,1,0,0,0,354,2604,1,0,0,0,356,2606,1,0,0,0,358,2635,1,0,0,0,360,2641,1,0,0,0,362,2643,1,0,0,0,364,2667,1,0,0,0,366,2686,1,0,0,0,368,2698,1,0,0,0,370,2700,1,0,0,0,372,2705,1,0,0,0,374,2707,1,0,0,0,376,2715,1,0,0,0,378,2721,1,0,0,0,380,2723,1,0,0,0,382,2739,1,0,0,0,384,2755,1,0,0,0,386,2757,1,0,0,0,388,2767,1,0,0,0,390,2781,1,0,0,0,392,2789,1,0,0,0,394,2799,1,0,0,0,396,2814,1,0,0,0,398,2817,1,0,0,0,400,2826,1,0,0,0,402,2829,1,0,0,0,404,2843,1,0,0,0,406,2850,1,0,0,0,408,2852,1,0,0,0,410,2856,1,0,0,0,412,2860,1,0,0,0,414,2874,1,0,0,0,416,2876,1,0,0,0,418,2878,1,0,0,0,420,2933,1,0,0,0,422,2935,1,0,0,0,424,2945,1,0,0,0,426,2951,1,0,0,0,428,2956,1,0,0,0,430,2958,1,0,0,0,432,2962,1,0,0,0,434,2972,1,0,0,0,436,2982,1,0,0,0,438,2984,1,0,0,0,440,3002,1,0,0,0,442,3004,1,0,0,0,444,3008,1,0,0,0,446,3016,1,0,0,0,448,3020,1,0,0,0,450,3025,1,0,0,0,452,3031,1,0,0,0,454,3043,1,0,0,0,456,3048,1,0,0,0,458,3060,1,0,0,0,460,3063,1,0,0,0,462,3067,1,0,0,0,464,3070,1,0,0,0,466,3098,1,0,0,0,468,3100,1,0,0,0,470,3117,1,0,0,0,472,3119,1,0,0,0,474,3132,1,0,0,0,476,3134,1,0,0,0,478,3140,1,0,0,0,480,3146,1,0,0,0,482,3152,1,0,0,0,484,3159,1,0,0,0,486,3162,1,0,0,0,488,3169,1,0,0,0,490,3173,1,0,0,0,492,3185,1,0,0,0,494,3197,1,0,0,0,496,3200,1,0,0,0,498,3204,1,0,0,0,500,3208,1,0,0,0,502,3214,1,0,0,0,504,3217,1,0,0,0,506,3222,1,0,0,0,508,3226,1,0,0,0,510,3231,1,0,0,0,512,3238,1,0,0,0,514,3245,1,0,0,0,516,3251,1,0,0,0,518,3294,1,0,0,0,520,3296,1,0,0,0,522,3329,1,0,0,0,524,3335,1,0,0,0,526,3342,1,0,0,0,528,3344,1,0,0,0,530,3346,1,0,0,0,532,3361,1,0,0,0,534,3369,1,0,0,0,536,3371,1,0,0,0,538,3378,1,0,0,0,540,3386,1,0,0,0,542,3390,1,0,0,0,544,3398,1,0,0,0,546,3400,1,0,0,0,548,3416,1,0,0,0,550,3418,1,0,0,0,552,3437,1,0,0,0,554,3439,1,0,0,0,556,3443,1,0,0,0,558,3456,1,0,0,0,560,3462,1,0,0,0,562,3476,1,0,0,0,564,3478,1,0,0,0,566,3492,1,0,0,0,568,3494,1,0,0,0,570,3507,1,0,0,0,572,3516,1,0,0,0,574,3532,1,0,0,0,576,3550,1,0,0,0,578,3571,1,0,0,0,580,3590,1,0,0,0,582,3594,1,0,0,0,584,3598,1,0,0,0,586,3601,1,0,0,0,588,3606,1,0,0,0,590,3609,1,0,0,0,592,3611,1,0,0,0,594,3639,1,0,0,0,596,3688,1,0,0,0,598,3692,1,0,0,0,600,3709,1,0,0,0,602,3711,1,0,0,0,604,3717,1,0,0,0,606,3731,1,0,0,0,608,3733,1,0,0,0,610,3738,1,0,0,0,612,3745,1,0,0,0,614,3760,1,0,0,0,616,3762,1,0,0,0,618,3768,1,0,0,0,620,3786,1,0,0,0,622,3789,1,0,0,0,624,3797,1,0,0,0,626,3801,1,0,0,0,628,3813,1,0,0,0,630,3815,1,0,0,0,632,3820,1,0,0,0,634,3829,1,0,0,0,636,3831,1,0,0,0,638,3847,1,0,0,0,640,3855,1,0,0,0,642,3859,1,0,0,0,644,3872,1,0,0,0,646,3874,1,0,0,0,648,3879,1,0,0,0,650,3883,1,0,0,0,652,3889,1,0,0,0,654,3897,1,0,0,0,656,3913,1,0,0,0,658,3937,1,0,0,0,660,3947,1,0,0,0,662,3964,1,0,0,0,664,4004,1,0,0,0,666,4010,1,0,0,0,668,4017,1,0,0,0,670,4077,1,0,0,0,672,4082,1,0,0,0,674,4091,1,0,0,0,676,4093,1,0,0,0,678,4097,1,0,0,0,680,4104,1,0,0,0,682,4118,1,0,0,0,684,4136,1,0,0,0,686,4138,1,0,0,0,688,4146,1,0,0,0,690,4150,1,0,0,0,692,4152,1,0,0,0,694,4158,1,0,0,0,696,4169,1,0,0,0,698,4183,1,0,0,0,700,4194,1,0,0,0,702,4196,1,0,0,0,704,4201,1,0,0,0,706,4221,1,0,0,0,708,4223,1,0,0,0,710,4226,1,0,0,0,712,4231,1,0,0,0,714,4238,1,0,0,0,716,4240,1,0,0,0,718,4244,1,0,0,0,720,4249,1,0,0,0,722,4261,1,0,0,0,724,4266,1,0,0,0,726,4278,1,0,0,0,728,4286,1,0,0,0,730,4294,1,0,0,0,732,4298,1,0,0,0,734,4300,1,0,0,0,736,4305,1,0,0,0,738,4313,1,0,0,0,740,4317,1,0,0,0,742,4322,1,0,0,0,744,4326,1,0,0,0,746,4332,1,0,0,0,748,4334,1,0,0,0,750,4341,1,0,0,0,752,4343,1,0,0,0,754,4345,1,0,0,0,756,4348,1,0,0,0,758,4356,1,0,0,0,760,4360,1,0,0,0,762,4362,1,0,0,0,764,4367,1,0,0,0,766,4378,1,0,0,0,768,4380,1,0,0,0,770,4387,1,0,0,0,772,4389,1,0,0,0,774,4394,1,0,0,0,776,4398,1,0,0,0,778,4400,1,0,0,0,780,4412,1,0,0,0,782,4424,1,0,0,0,784,4426,1,0,0,0,786,4434,1,0,0,0,788,4436,1,0,0,0,790,4442,1,0,0,0,792,4444,1,0,0,0,794,4446,1,0,0,0,796,4453,1,0,0,0,798,4464,1,0,0,0,800,4467,1,0,0,0,802,4495,1,0,0,0,804,4497,1,0,0,0,806,4501,1,0,0,0,808,4510,1,0,0,0,810,4518,1,0,0,0,812,4525,1,0,0,0,814,4535,1,0,0,0,816,4544,1,0,0,0,818,4553,1,0,0,0,820,4563,1,0,0,0,822,4567,1,0,0,0,824,4571,1,0,0,0,826,4575,1,0,0,0,828,4579,1,0,0,0,830,4583,1,0,0,0,832,4587,1,0,0,0,834,4591,1,0,0,0,836,4595,1,0,0,0,838,4599,1,0,0,0,840,4603,1,0,0,0,842,4607,1,0,0,0,844,4611,1,0,0,0,846,4616,1,0,0,0,848,4621,1,0,0,0,850,4626,1,0,0,0,852,4634,1,0,0,0,854,4639,1,0,0,0,856,4642,1,0,0,0,858,4648,1,0,0,0,860,4651,1,0,0,0,862,4663,1,0,0,0,864,4665,1,0,0,0,866,4667,1,0,0,0,868,4669,1,0,0,0,870,4671,1,0,0,0,872,4673,1,0,0,0,874,4675,1,0,0,0,876,4677,1,0,0,0,878,4679,1,0,0,0,880,4681,1,0,0,0,882,4683,1,0,0,0,884,4685,1,0,0,0,886,4687,1,0,0,0,888,4689,1,0,0,0,890,4696,1,0,0,0,892,4701,1,0,0,0,894,4729,1,0,0,0,896,4746,1,0,0,0,898,4748,1,0,0,0,900,4751,1,0,0,0,902,908,3,2,1,0,903,904,5,227,0,0,904,905,5,46,0,0,905,906,5,329,0,0,906,908,3,4,2,0,907,902,1,0,0,0,907,903,1,0,0,0,908,1,1,0,0,0,909,911,5,22,0,0,910,909,1,0,0,0,911,914,1,0,0,0,912,910,1,0,0,0,912,913,1,0,0,0,913,915,1,0,0,0,914,912,1,0,0,0,915,924,3,10,5,0,916,918,5,22,0,0,917,916,1,0,0,0,918,919,1,0,0,0,919,917,1,0,0,0,919,920,1,0,0,0,920,921,1,0,0,0,921,923,3,10,5,0,922,917,1,0,0,0,923,926,1,0,0,0,924,922,1,0,0,0,924,925,1,0,0,0,925,930,1,0,0,0,926,924,1,0,0,0,927,929,5,22,0,0,928,927,1,0,0,0,929,932,1,0,0,0,930,928,1,0,0,0,930,931,1,0,0,0,931,933,1,0,0,0,932,930,1,0,0,0,933,934,5,0,0,1,934,3,1,0,0,0,935,937,5,22,0,0,936,935,1,0,0,0,937,940,1,0,0,0,938,936,1,0,0,0,938,939,1,0,0,0,939,941,1,0,0,0,940,938,1,0,0,0,941,942,5,0,0,1,942,5,1,0,0,0,943,945,5,22,0,0,944,943,1,0,0,0,945,948,1,0,0,0,946,944,1,0,0,0,946,947,1,0,0,0,947,957,1,0,0,0,948,946,1,0,0,0,949,951,3,8,4,0,950,952,5,22,0,0,951,950,1,0,0,0,952,953,1,0,0,0,953,951,1,0,0,0,953,954,1,0,0,0,954,956,1,0,0,0,955,949,1,0,0,0,956,959,1,0,0,0,957,955,1,0,0,0,957,958,1,0,0,0,958,960,1,0,0,0,959,957,1,0,0,0,960,961,5,254,0,0,961,965,3,14,7,0,962,964,5,22,0,0,963,962,1,0,0,0,964,967,1,0,0,0,965,963,1,0,0,0,965,966,1,0,0,0,966,7,1,0,0,0,967,965,1,0,0,0,968,971,3,788,394,0,969,971,3,214,107,0,970,968,1,0,0,0,970,969,1,0,0,0,971,9,1,0,0,0,972,975,5,128,0,0,973,974,5,233,0,0,974,976,5,225,0,0,975,973,1,0,0,0,975,976,1,0,0,0,976,978,1,0,0,0,977,972,1,0,0,0,977,978,1,0,0,0,978,979,1,0,0,0,979,980,3,12,6,0,980,11,1,0,0,0,981,1042,3,224,112,0,982,1042,3,232,116,0,983,1042,3,788,394,0,984,1042,3,418,209,0,985,1042,3,568,284,0,986,1042,3,784,392,0,987,1042,3,364,182,0,988,1042,3,790,395,0,989,1042,3,682,341,0,990,1042,3,680,340,0,991,1042,3,792,396,0,992,1042,3,210,105,0,993,1042,3,214,107,0,994,1042,3,216,108,0,995,1042,3,464,232,0,996,1042,3,468,234,0,997,1042,3,222,111,0,998,1042,3,654,327,0,999,1042,3,658,329,0,1e3,1042,3,660,330,0,1001,1042,3,370,185,0,1002,1042,3,570,285,0,1003,1042,3,572,286,0,1004,1042,3,574,287,0,1005,1042,3,576,288,0,1006,1042,3,578,289,0,1007,1042,3,394,197,0,1008,1042,3,398,199,0,1009,1042,3,402,201,0,1010,1042,3,380,190,0,1011,1042,3,382,191,0,1012,1042,3,386,193,0,1013,1042,3,618,309,0,1014,1042,3,632,316,0,1015,1042,3,696,348,0,1016,1042,3,704,352,0,1017,1042,3,726,363,0,1018,1042,3,592,296,0,1019,1042,3,594,297,0,1020,1042,3,472,236,0,1021,1042,3,392,196,0,1022,1042,3,388,194,0,1023,1042,3,390,195,0,1024,1042,3,626,313,0,1025,1042,3,602,301,0,1026,1042,3,604,302,0,1027,1042,3,608,304,0,1028,1042,3,422,211,0,1029,1042,3,424,212,0,1030,1042,3,426,213,0,1031,1042,3,798,399,0,1032,1042,3,610,305,0,1033,1042,3,612,306,0,1034,1042,3,616,308,0,1035,1042,3,448,224,0,1036,1042,3,450,225,0,1037,1042,3,800,400,0,1038,1042,3,636,318,0,1039,1042,3,642,321,0,1040,1042,3,650,325,0,1041,981,1,0,0,0,1041,982,1,0,0,0,1041,983,1,0,0,0,1041,984,1,0,0,0,1041,985,1,0,0,0,1041,986,1,0,0,0,1041,987,1,0,0,0,1041,988,1,0,0,0,1041,989,1,0,0,0,1041,990,1,0,0,0,1041,991,1,0,0,0,1041,992,1,0,0,0,1041,993,1,0,0,0,1041,994,1,0,0,0,1041,995,1,0,0,0,1041,996,1,0,0,0,1041,997,1,0,0,0,1041,998,1,0,0,0,1041,999,1,0,0,0,1041,1e3,1,0,0,0,1041,1001,1,0,0,0,1041,1002,1,0,0,0,1041,1003,1,0,0,0,1041,1004,1,0,0,0,1041,1005,1,0,0,0,1041,1006,1,0,0,0,1041,1007,1,0,0,0,1041,1008,1,0,0,0,1041,1009,1,0,0,0,1041,1010,1,0,0,0,1041,1011,1,0,0,0,1041,1012,1,0,0,0,1041,1013,1,0,0,0,1041,1014,1,0,0,0,1041,1015,1,0,0,0,1041,1016,1,0,0,0,1041,1017,1,0,0,0,1041,1018,1,0,0,0,1041,1019,1,0,0,0,1041,1020,1,0,0,0,1041,1021,1,0,0,0,1041,1022,1,0,0,0,1041,1023,1,0,0,0,1041,1024,1,0,0,0,1041,1025,1,0,0,0,1041,1026,1,0,0,0,1041,1027,1,0,0,0,1041,1028,1,0,0,0,1041,1029,1,0,0,0,1041,1030,1,0,0,0,1041,1031,1,0,0,0,1041,1032,1,0,0,0,1041,1033,1,0,0,0,1041,1034,1,0,0,0,1041,1035,1,0,0,0,1041,1036,1,0,0,0,1041,1037,1,0,0,0,1041,1038,1,0,0,0,1041,1039,1,0,0,0,1041,1040,1,0,0,0,1042,13,1,0,0,0,1043,1048,3,16,8,0,1044,1045,5,212,0,0,1045,1047,3,16,8,0,1046,1044,1,0,0,0,1047,1050,1,0,0,0,1048,1046,1,0,0,0,1048,1049,1,0,0,0,1049,1053,1,0,0,0,1050,1048,1,0,0,0,1051,1053,3,200,100,0,1052,1043,1,0,0,0,1052,1051,1,0,0,0,1053,15,1,0,0,0,1054,1059,3,18,9,0,1055,1056,5,45,0,0,1056,1058,3,18,9,0,1057,1055,1,0,0,0,1058,1061,1,0,0,0,1059,1057,1,0,0,0,1059,1060,1,0,0,0,1060,17,1,0,0,0,1061,1059,1,0,0,0,1062,1067,3,20,10,0,1063,1064,5,325,0,0,1064,1066,3,20,10,0,1065,1063,1,0,0,0,1066,1069,1,0,0,0,1067,1065,1,0,0,0,1067,1068,1,0,0,0,1068,19,1,0,0,0,1069,1067,1,0,0,0,1070,1072,3,28,14,0,1071,1073,3,24,12,0,1072,1071,1,0,0,0,1072,1073,1,0,0,0,1073,21,1,0,0,0,1074,1076,5,171,0,0,1075,1077,5,199,0,0,1076,1075,1,0,0,0,1076,1077,1,0,0,0,1077,1078,1,0,0,0,1078,1079,5,109,0,0,1079,1080,5,141,0,0,1080,23,1,0,0,0,1081,1083,5,199,0,0,1082,1081,1,0,0,0,1082,1083,1,0,0,0,1083,1084,1,0,0,0,1084,1085,3,26,13,0,1085,1088,3,28,14,0,1086,1087,5,121,0,0,1087,1089,3,28,14,0,1088,1086,1,0,0,0,1088,1089,1,0,0,0,1089,1133,1,0,0,0,1090,1092,5,199,0,0,1091,1090,1,0,0,0,1091,1092,1,0,0,0,1092,1093,1,0,0,0,1093,1095,5,158,0,0,1094,1096,5,79,0,0,1095,1094,1,0,0,0,1095,1096,1,0,0,0,1096,1097,1,0,0,0,1097,1133,3,82,41,0,1098,1108,5,172,0,0,1099,1108,5,200,0,0,1100,1101,5,171,0,0,1101,1108,5,201,0,0,1102,1104,5,171,0,0,1103,1102,1,0,0,0,1103,1104,1,0,0,0,1104,1105,1,0,0,0,1105,1106,5,199,0,0,1106,1108,5,201,0,0,1107,1098,1,0,0,0,1107,1099,1,0,0,0,1107,1100,1,0,0,0,1107,1103,1,0,0,0,1108,1133,1,0,0,0,1109,1111,5,199,0,0,1110,1109,1,0,0,0,1110,1111,1,0,0,0,1111,1112,1,0,0,0,1112,1114,5,65,0,0,1113,1115,7,0,0,0,1114,1113,1,0,0,0,1114,1115,1,0,0,0,1115,1116,1,0,0,0,1116,1117,3,28,14,0,1117,1118,5,45,0,0,1118,1119,3,28,14,0,1119,1133,1,0,0,0,1120,1126,5,1,0,0,1121,1126,5,2,0,0,1122,1126,5,3,0,0,1123,1126,5,4,0,0,1124,1126,3,22,11,0,1125,1120,1,0,0,0,1125,1121,1,0,0,0,1125,1122,1,0,0,0,1125,1123,1,0,0,0,1125,1124,1,0,0,0,1126,1127,1,0,0,0,1127,1129,3,28,14,0,1128,1125,1,0,0,0,1129,1130,1,0,0,0,1130,1128,1,0,0,0,1130,1131,1,0,0,0,1131,1133,1,0,0,0,1132,1082,1,0,0,0,1132,1091,1,0,0,0,1132,1107,1,0,0,0,1132,1110,1,0,0,0,1132,1128,1,0,0,0,1133,25,1,0,0,0,1134,1135,7,1,0,0,1135,27,1,0,0,0,1136,1141,3,36,18,0,1137,1138,7,2,0,0,1138,1140,3,36,18,0,1139,1137,1,0,0,0,1140,1143,1,0,0,0,1141,1139,1,0,0,0,1141,1142,1,0,0,0,1142,29,1,0,0,0,1143,1141,1,0,0,0,1144,1145,5,7,0,0,1145,1146,5,7,0,0,1146,31,1,0,0,0,1147,1148,5,7,0,0,1148,1149,5,7,0,0,1149,1150,5,12,0,0,1150,33,1,0,0,0,1151,1152,5,27,0,0,1152,1153,5,27,0,0,1153,35,1,0,0,0,1154,1167,3,38,19,0,1155,1163,5,9,0,0,1156,1163,3,30,15,0,1157,1163,5,10,0,0,1158,1163,3,32,16,0,1159,1163,5,11,0,0,1160,1163,5,12,0,0,1161,1163,5,33,0,0,1162,1155,1,0,0,0,1162,1156,1,0,0,0,1162,1157,1,0,0,0,1162,1158,1,0,0,0,1162,1159,1,0,0,0,1162,1160,1,0,0,0,1162,1161,1,0,0,0,1163,1164,1,0,0,0,1164,1166,3,38,19,0,1165,1162,1,0,0,0,1166,1169,1,0,0,0,1167,1165,1,0,0,0,1167,1168,1,0,0,0,1168,1178,1,0,0,0,1169,1167,1,0,0,0,1170,1171,3,34,17,0,1171,1172,3,36,18,0,1172,1179,1,0,0,0,1173,1175,5,27,0,0,1174,1173,1,0,0,0,1175,1176,1,0,0,0,1176,1174,1,0,0,0,1176,1177,1,0,0,0,1177,1179,1,0,0,0,1178,1170,1,0,0,0,1178,1174,1,0,0,0,1178,1179,1,0,0,0,1179,37,1,0,0,0,1180,1185,3,40,20,0,1181,1182,7,3,0,0,1182,1184,3,40,20,0,1183,1181,1,0,0,0,1184,1187,1,0,0,0,1185,1183,1,0,0,0,1185,1186,1,0,0,0,1186,39,1,0,0,0,1187,1185,1,0,0,0,1188,1193,3,42,21,0,1189,1190,7,4,0,0,1190,1192,3,42,21,0,1191,1189,1,0,0,0,1192,1195,1,0,0,0,1193,1191,1,0,0,0,1193,1194,1,0,0,0,1194,41,1,0,0,0,1195,1193,1,0,0,0,1196,1201,3,44,22,0,1197,1198,5,13,0,0,1198,1200,3,44,22,0,1199,1197,1,0,0,0,1200,1203,1,0,0,0,1201,1199,1,0,0,0,1201,1202,1,0,0,0,1202,43,1,0,0,0,1203,1201,1,0,0,0,1204,1209,3,54,27,0,1205,1206,3,46,23,0,1206,1207,3,54,27,0,1207,1209,1,0,0,0,1208,1204,1,0,0,0,1208,1205,1,0,0,0,1209,45,1,0,0,0,1210,1211,7,5,0,0,1211,47,1,0,0,0,1212,1221,3,138,69,0,1213,1221,3,132,66,0,1214,1218,5,23,0,0,1215,1219,3,144,72,0,1216,1219,5,329,0,0,1217,1219,3,826,413,0,1218,1215,1,0,0,0,1218,1216,1,0,0,0,1218,1217,1,0,0,0,1219,1221,1,0,0,0,1220,1212,1,0,0,0,1220,1213,1,0,0,0,1220,1214,1,0,0,0,1221,1223,1,0,0,0,1222,1220,1,0,0,0,1223,1226,1,0,0,0,1224,1222,1,0,0,0,1224,1225,1,0,0,0,1225,1229,1,0,0,0,1226,1224,1,0,0,0,1227,1228,5,75,0,0,1228,1230,3,824,412,0,1229,1227,1,0,0,0,1229,1230,1,0,0,0,1230,49,1,0,0,0,1231,1234,3,810,405,0,1232,1234,3,68,34,0,1233,1231,1,0,0,0,1233,1232,1,0,0,0,1234,1235,1,0,0,0,1235,1236,3,48,24,0,1236,51,1,0,0,0,1237,1240,3,812,406,0,1238,1240,3,70,35,0,1239,1237,1,0,0,0,1239,1238,1,0,0,0,1240,1241,1,0,0,0,1241,1242,3,48,24,0,1242,53,1,0,0,0,1243,1246,3,50,25,0,1244,1246,3,84,42,0,1245,1243,1,0,0,0,1245,1244,1,0,0,0,1246,55,1,0,0,0,1247,1250,3,52,26,0,1248,1250,3,84,42,0,1249,1247,1,0,0,0,1249,1248,1,0,0,0,1250,57,1,0,0,0,1251,1253,5,37,0,0,1252,1254,3,112,56,0,1253,1252,1,0,0,0,1253,1254,1,0,0,0,1254,1256,1,0,0,0,1255,1257,5,24,0,0,1256,1255,1,0,0,0,1256,1257,1,0,0,0,1257,1258,1,0,0,0,1258,1259,5,36,0,0,1259,59,1,0,0,0,1260,1263,3,14,7,0,1261,1262,5,28,0,0,1262,1264,3,14,7,0,1263,1261,1,0,0,0,1263,1264,1,0,0,0,1264,1273,1,0,0,0,1265,1266,5,24,0,0,1266,1269,3,14,7,0,1267,1268,5,28,0,0,1268,1270,3,14,7,0,1269,1267,1,0,0,0,1269,1270,1,0,0,0,1270,1272,1,0,0,0,1271,1265,1,0,0,0,1272,1275,1,0,0,0,1273,1271,1,0,0,0,1273,1274,1,0,0,0,1274,61,1,0,0,0,1275,1273,1,0,0,0,1276,1278,5,31,0,0,1277,1279,3,60,30,0,1278,1277,1,0,0,0,1278,1279,1,0,0,0,1279,1281,1,0,0,0,1280,1282,5,24,0,0,1281,1280,1,0,0,0,1281,1282,1,0,0,0,1282,1283,1,0,0,0,1283,1284,5,32,0,0,1284,63,1,0,0,0,1285,1286,3,14,7,0,1286,1287,5,28,0,0,1287,1295,3,14,7,0,1288,1289,5,24,0,0,1289,1290,3,14,7,0,1290,1291,5,28,0,0,1291,1292,3,14,7,0,1292,1294,1,0,0,0,1293,1288,1,0,0,0,1294,1297,1,0,0,0,1295,1293,1,0,0,0,1295,1296,1,0,0,0,1296,65,1,0,0,0,1297,1295,1,0,0,0,1298,1300,5,14,0,0,1299,1301,3,64,32,0,1300,1299,1,0,0,0,1300,1301,1,0,0,0,1301,1303,1,0,0,0,1302,1304,5,24,0,0,1303,1302,1,0,0,0,1303,1304,1,0,0,0,1304,1305,1,0,0,0,1305,1306,5,15,0,0,1306,67,1,0,0,0,1307,1325,3,142,71,0,1308,1325,3,144,72,0,1309,1325,3,80,40,0,1310,1325,3,72,36,0,1311,1325,3,76,38,0,1312,1325,3,78,39,0,1313,1314,3,826,413,0,1314,1317,5,34,0,0,1315,1318,3,852,426,0,1316,1318,5,326,0,0,1317,1315,1,0,0,0,1317,1316,1,0,0,0,1318,1325,1,0,0,0,1319,1325,3,208,104,0,1320,1325,3,74,37,0,1321,1325,3,58,29,0,1322,1325,3,62,31,0,1323,1325,3,66,33,0,1324,1307,1,0,0,0,1324,1308,1,0,0,0,1324,1309,1,0,0,0,1324,1310,1,0,0,0,1324,1311,1,0,0,0,1324,1312,1,0,0,0,1324,1313,1,0,0,0,1324,1319,1,0,0,0,1324,1320,1,0,0,0,1324,1321,1,0,0,0,1324,1322,1,0,0,0,1324,1323,1,0,0,0,1325,69,1,0,0,0,1326,1347,3,142,71,0,1327,1347,3,144,72,0,1328,1347,3,80,40,0,1329,1347,3,72,36,0,1330,1347,3,78,39,0,1331,1332,3,826,413,0,1332,1335,5,34,0,0,1333,1336,3,852,426,0,1334,1336,5,326,0,0,1335,1333,1,0,0,0,1335,1334,1,0,0,0,1336,1347,1,0,0,0,1337,1338,5,25,0,0,1338,1339,3,232,116,0,1339,1340,5,26,0,0,1340,1347,1,0,0,0,1341,1347,3,208,104,0,1342,1347,3,74,37,0,1343,1347,3,58,29,0,1344,1347,3,62,31,0,1345,1347,3,66,33,0,1346,1326,1,0,0,0,1346,1327,1,0,0,0,1346,1328,1,0,0,0,1346,1329,1,0,0,0,1346,1330,1,0,0,0,1346,1331,1,0,0,0,1346,1337,1,0,0,0,1346,1341,1,0,0,0,1346,1342,1,0,0,0,1346,1343,1,0,0,0,1346,1344,1,0,0,0,1346,1345,1,0,0,0,1347,71,1,0,0,0,1348,1349,5,71,0,0,1349,1350,5,25,0,0,1350,1351,3,14,7,0,1351,1352,5,49,0,0,1352,1353,3,204,102,0,1353,1354,5,26,0,0,1354,73,1,0,0,0,1355,1356,5,66,0,0,1356,1357,5,25,0,0,1357,1358,3,14,7,0,1358,1359,5,49,0,0,1359,1360,3,156,78,0,1360,1361,5,26,0,0,1361,75,1,0,0,0,1362,1363,5,127,0,0,1363,1366,5,25,0,0,1364,1367,3,232,116,0,1365,1367,3,370,185,0,1366,1364,1,0,0,0,1366,1365,1,0,0,0,1367,1368,1,0,0,0,1368,1369,5,26,0,0,1369,77,1,0,0,0,1370,1372,5,70,0,0,1371,1373,3,14,7,0,1372,1371,1,0,0,0,1372,1373,1,0,0,0,1373,1375,1,0,0,0,1374,1376,3,140,70,0,1375,1374,1,0,0,0,1376,1377,1,0,0,0,1377,1375,1,0,0,0,1377,1378,1,0,0,0,1378,1381,1,0,0,0,1379,1380,5,113,0,0,1380,1382,3,14,7,0,1381,1379,1,0,0,0,1381,1382,1,0,0,0,1382,1383,1,0,0,0,1383,1384,5,117,0,0,1384,79,1,0,0,0,1385,1397,3,110,55,0,1386,1395,5,35,0,0,1387,1388,5,25,0,0,1388,1389,3,14,7,0,1389,1390,5,26,0,0,1390,1396,1,0,0,0,1391,1392,5,31,0,0,1392,1393,3,6,3,0,1393,1394,5,32,0,0,1394,1396,1,0,0,0,1395,1387,1,0,0,0,1395,1391,1,0,0,0,1396,1398,1,0,0,0,1397,1386,1,0,0,0,1397,1398,1,0,0,0,1398,81,1,0,0,0,1399,1400,3,56,28,0,1400,83,1,0,0,0,1401,1405,3,98,49,0,1402,1405,3,102,51,0,1403,1405,3,108,54,0,1404,1401,1,0,0,0,1404,1402,1,0,0,0,1404,1403,1,0,0,0,1405,85,1,0,0,0,1406,1407,5,326,0,0,1407,87,1,0,0,0,1408,1411,3,810,405,0,1409,1411,5,326,0,0,1410,1408,1,0,0,0,1410,1409,1,0,0,0,1411,89,1,0,0,0,1412,1413,3,14,7,0,1413,1414,5,49,0,0,1414,1415,3,88,44,0,1415,91,1,0,0,0,1416,1421,3,90,45,0,1417,1418,5,24,0,0,1418,1420,3,90,45,0,1419,1417,1,0,0,0,1420,1423,1,0,0,0,1421,1419,1,0,0,0,1421,1422,1,0,0,0,1422,93,1,0,0,0,1423,1421,1,0,0,0,1424,1425,3,14,7,0,1425,1426,5,24,0,0,1426,1429,3,86,43,0,1427,1428,5,219,0,0,1428,1430,3,92,46,0,1429,1427,1,0,0,0,1429,1430,1,0,0,0,1430,95,1,0,0,0,1431,1436,5,120,0,0,1432,1436,5,201,0,0,1433,1434,5,97,0,0,1434,1436,3,14,7,0,1435,1431,1,0,0,0,1435,1432,1,0,0,0,1435,1433,1,0,0,0,1436,97,1,0,0,0,1437,1438,5,176,0,0,1438,1439,5,25,0,0,1439,1442,3,94,47,0,1440,1441,5,255,0,0,1441,1443,3,156,78,0,1442,1440,1,0,0,0,1442,1443,1,0,0,0,1443,1450,1,0,0,0,1444,1445,3,96,48,0,1445,1446,5,207,0,0,1446,1447,7,6,0,0,1447,1449,1,0,0,0,1448,1444,1,0,0,0,1449,1452,1,0,0,0,1450,1448,1,0,0,0,1450,1451,1,0,0,0,1451,1453,1,0,0,0,1452,1450,1,0,0,0,1453,1454,5,26,0,0,1454,99,1,0,0,0,1455,1456,7,7,0,0,1456,1457,5,207,0,0,1457,1458,5,120,0,0,1458,101,1,0,0,0,1459,1460,5,174,0,0,1460,1461,5,25,0,0,1461,1463,3,94,47,0,1462,1464,3,100,50,0,1463,1462,1,0,0,0,1463,1464,1,0,0,0,1464,1465,1,0,0,0,1465,1466,5,26,0,0,1466,103,1,0,0,0,1467,1469,5,323,0,0,1468,1470,5,48,0,0,1469,1468,1,0,0,0,1469,1470,1,0,0,0,1470,1479,1,0,0,0,1471,1473,5,322,0,0,1472,1474,7,8,0,0,1473,1472,1,0,0,0,1473,1474,1,0,0,0,1474,1476,1,0,0,0,1475,1477,5,48,0,0,1476,1475,1,0,0,0,1476,1477,1,0,0,0,1477,1479,1,0,0,0,1478,1467,1,0,0,0,1478,1471,1,0,0,0,1479,105,1,0,0,0,1480,1487,5,120,0,0,1481,1487,5,201,0,0,1482,1483,5,114,0,0,1483,1487,5,48,0,0,1484,1485,5,114,0,0,1485,1487,5,203,0,0,1486,1480,1,0,0,0,1486,1481,1,0,0,0,1486,1482,1,0,0,0,1486,1484,1,0,0,0,1487,107,1,0,0,0,1488,1489,5,175,0,0,1489,1490,5,25,0,0,1490,1494,3,94,47,0,1491,1492,3,104,52,0,1492,1493,5,324,0,0,1493,1495,1,0,0,0,1494,1491,1,0,0,0,1494,1495,1,0,0,0,1495,1500,1,0,0,0,1496,1497,3,106,53,0,1497,1498,5,207,0,0,1498,1499,5,114,0,0,1499,1501,1,0,0,0,1500,1496,1,0,0,0,1500,1501,1,0,0,0,1501,1506,1,0,0,0,1502,1503,3,106,53,0,1503,1504,5,207,0,0,1504,1505,5,120,0,0,1505,1507,1,0,0,0,1506,1502,1,0,0,0,1506,1507,1,0,0,0,1507,1508,1,0,0,0,1508,1509,5,26,0,0,1509,109,1,0,0,0,1510,1512,5,25,0,0,1511,1513,3,130,65,0,1512,1511,1,0,0,0,1512,1513,1,0,0,0,1513,1515,1,0,0,0,1514,1516,5,24,0,0,1515,1514,1,0,0,0,1515,1516,1,0,0,0,1516,1517,1,0,0,0,1517,1518,5,26,0,0,1518,111,1,0,0,0,1519,1524,3,14,7,0,1520,1521,5,24,0,0,1521,1523,3,14,7,0,1522,1520,1,0,0,0,1523,1526,1,0,0,0,1524,1522,1,0,0,0,1524,1525,1,0,0,0,1525,113,1,0,0,0,1526,1524,1,0,0,0,1527,1528,5,25,0,0,1528,1533,3,824,412,0,1529,1530,5,24,0,0,1530,1532,3,824,412,0,1531,1529,1,0,0,0,1532,1535,1,0,0,0,1533,1531,1,0,0,0,1533,1534,1,0,0,0,1534,1536,1,0,0,0,1535,1533,1,0,0,0,1536,1537,5,26,0,0,1537,115,1,0,0,0,1538,1541,3,144,72,0,1539,1541,3,824,412,0,1540,1538,1,0,0,0,1540,1539,1,0,0,0,1541,117,1,0,0,0,1542,1543,5,25,0,0,1543,1548,3,116,58,0,1544,1545,5,24,0,0,1545,1547,3,116,58,0,1546,1544,1,0,0,0,1547,1550,1,0,0,0,1548,1546,1,0,0,0,1548,1549,1,0,0,0,1549,1551,1,0,0,0,1550,1548,1,0,0,0,1551,1552,5,26,0,0,1552,119,1,0,0,0,1553,1554,3,848,424,0,1554,1555,3,824,412,0,1555,121,1,0,0,0,1556,1557,3,824,412,0,1557,1558,5,23,0,0,1558,1559,3,824,412,0,1559,1562,1,0,0,0,1560,1562,3,838,419,0,1561,1556,1,0,0,0,1561,1560,1,0,0,0,1562,123,1,0,0,0,1563,1568,3,120,60,0,1564,1565,5,24,0,0,1565,1567,3,120,60,0,1566,1564,1,0,0,0,1567,1570,1,0,0,0,1568,1566,1,0,0,0,1568,1569,1,0,0,0,1569,1572,1,0,0,0,1570,1568,1,0,0,0,1571,1573,5,24,0,0,1572,1571,1,0,0,0,1572,1573,1,0,0,0,1573,125,1,0,0,0,1574,1579,3,122,61,0,1575,1576,5,24,0,0,1576,1578,3,122,61,0,1577,1575,1,0,0,0,1578,1581,1,0,0,0,1579,1577,1,0,0,0,1579,1580,1,0,0,0,1580,1583,1,0,0,0,1581,1579,1,0,0,0,1582,1584,5,24,0,0,1583,1582,1,0,0,0,1583,1584,1,0,0,0,1584,127,1,0,0,0,1585,1588,3,14,7,0,1586,1587,5,49,0,0,1587,1589,3,826,413,0,1588,1586,1,0,0,0,1588,1589,1,0,0,0,1589,129,1,0,0,0,1590,1595,3,128,64,0,1591,1592,5,24,0,0,1592,1594,3,128,64,0,1593,1591,1,0,0,0,1594,1597,1,0,0,0,1595,1593,1,0,0,0,1595,1596,1,0,0,0,1596,131,1,0,0,0,1597,1595,1,0,0,0,1598,1605,5,25,0,0,1599,1600,3,252,126,0,1600,1602,3,130,65,0,1601,1603,5,24,0,0,1602,1601,1,0,0,0,1602,1603,1,0,0,0,1603,1606,1,0,0,0,1604,1606,5,19,0,0,1605,1599,1,0,0,0,1605,1604,1,0,0,0,1605,1606,1,0,0,0,1606,1607,1,0,0,0,1607,1608,5,26,0,0,1608,1609,3,134,67,0,1609,133,1,0,0,0,1610,1613,3,746,373,0,1611,1613,3,748,374,0,1612,1610,1,0,0,0,1612,1611,1,0,0,0,1612,1613,1,0,0,0,1613,1616,1,0,0,0,1614,1615,5,216,0,0,1615,1617,3,750,375,0,1616,1614,1,0,0,0,1616,1617,1,0,0,0,1617,135,1,0,0,0,1618,1619,3,826,413,0,1619,1620,5,34,0,0,1620,1621,3,826,413,0,1621,1627,1,0,0,0,1622,1627,3,830,415,0,1623,1627,3,144,72,0,1624,1625,5,130,0,0,1625,1627,5,143,0,0,1626,1618,1,0,0,0,1626,1622,1,0,0,0,1626,1623,1,0,0,0,1626,1624,1,0,0,0,1627,1628,1,0,0,0,1628,1629,3,132,66,0,1629,137,1,0,0,0,1630,1631,5,37,0,0,1631,1632,3,14,7,0,1632,1633,5,36,0,0,1633,139,1,0,0,0,1634,1635,5,319,0,0,1635,1636,3,14,7,0,1636,1637,5,293,0,0,1637,1638,3,14,7,0,1638,141,1,0,0,0,1639,1650,3,888,444,0,1640,1650,3,886,443,0,1641,1650,5,326,0,0,1642,1650,5,332,0,0,1643,1650,5,201,0,0,1644,1650,5,91,0,0,1645,1650,5,90,0,0,1646,1650,5,92,0,0,1647,1650,3,884,442,0,1648,1650,5,115,0,0,1649,1639,1,0,0,0,1649,1640,1,0,0,0,1649,1641,1,0,0,0,1649,1642,1,0,0,0,1649,1643,1,0,0,0,1649,1644,1,0,0,0,1649,1645,1,0,0,0,1649,1646,1,0,0,0,1649,1647,1,0,0,0,1649,1648,1,0,0,0,1650,143,1,0,0,0,1651,1655,5,30,0,0,1652,1656,3,826,413,0,1653,1656,5,300,0,0,1654,1656,5,132,0,0,1655,1652,1,0,0,0,1655,1653,1,0,0,0,1655,1654,1,0,0,0,1656,145,1,0,0,0,1657,1659,3,144,72,0,1658,1660,5,27,0,0,1659,1658,1,0,0,0,1659,1660,1,0,0,0,1660,147,1,0,0,0,1661,1666,3,144,72,0,1662,1663,5,24,0,0,1663,1665,3,144,72,0,1664,1662,1,0,0,0,1665,1668,1,0,0,0,1666,1664,1,0,0,0,1666,1667,1,0,0,0,1667,149,1,0,0,0,1668,1666,1,0,0,0,1669,1672,3,144,72,0,1670,1671,5,49,0,0,1671,1673,3,144,72,0,1672,1670,1,0,0,0,1672,1673,1,0,0,0,1673,151,1,0,0,0,1674,1679,3,150,75,0,1675,1676,5,24,0,0,1676,1678,3,150,75,0,1677,1675,1,0,0,0,1678,1681,1,0,0,0,1679,1677,1,0,0,0,1679,1680,1,0,0,0,1680,153,1,0,0,0,1681,1679,1,0,0,0,1682,1684,7,3,0,0,1683,1682,1,0,0,0,1683,1684,1,0,0,0,1684,1687,1,0,0,0,1685,1688,3,888,444,0,1686,1688,3,886,443,0,1687,1685,1,0,0,0,1687,1686,1,0,0,0,1688,155,1,0,0,0,1689,1690,3,842,421,0,1690,157,1,0,0,0,1691,1694,3,888,444,0,1692,1694,3,144,72,0,1693,1691,1,0,0,0,1693,1692,1,0,0,0,1694,159,1,0,0,0,1695,1699,3,806,403,0,1696,1699,5,326,0,0,1697,1699,3,144,72,0,1698,1695,1,0,0,0,1698,1696,1,0,0,0,1698,1697,1,0,0,0,1699,161,1,0,0,0,1700,1701,3,160,80,0,1701,1702,5,28,0,0,1702,1703,3,204,102,0,1703,163,1,0,0,0,1704,1705,3,160,80,0,1705,1710,3,204,102,0,1706,1708,5,199,0,0,1707,1706,1,0,0,0,1707,1708,1,0,0,0,1708,1709,1,0,0,0,1709,1711,5,201,0,0,1710,1707,1,0,0,0,1710,1711,1,0,0,0,1711,1717,1,0,0,0,1712,1713,3,204,102,0,1713,1714,5,49,0,0,1714,1715,3,160,80,0,1715,1717,1,0,0,0,1716,1704,1,0,0,0,1716,1712,1,0,0,0,1717,165,1,0,0,0,1718,1719,3,160,80,0,1719,1720,5,28,0,0,1720,1722,1,0,0,0,1721,1718,1,0,0,0,1721,1722,1,0,0,0,1722,1723,1,0,0,0,1723,1724,3,204,102,0,1724,167,1,0,0,0,1725,1729,3,166,83,0,1726,1727,5,31,0,0,1727,1728,5,58,0,0,1728,1730,5,32,0,0,1729,1726,1,0,0,0,1729,1730,1,0,0,0,1730,169,1,0,0,0,1731,1736,3,168,84,0,1732,1733,5,24,0,0,1733,1735,3,168,84,0,1734,1732,1,0,0,0,1735,1738,1,0,0,0,1736,1734,1,0,0,0,1736,1737,1,0,0,0,1737,171,1,0,0,0,1738,1736,1,0,0,0,1739,1740,5,95,0,0,1740,1741,5,25,0,0,1741,1742,3,158,79,0,1742,1743,5,24,0,0,1743,1744,3,158,79,0,1744,1745,5,26,0,0,1745,173,1,0,0,0,1746,1747,5,211,0,0,1747,1748,5,5,0,0,1748,1749,3,204,102,0,1749,1750,5,7,0,0,1750,175,1,0,0,0,1751,1768,5,301,0,0,1752,1764,5,5,0,0,1753,1758,3,204,102,0,1754,1755,5,24,0,0,1755,1757,3,204,102,0,1756,1754,1,0,0,0,1757,1760,1,0,0,0,1758,1756,1,0,0,0,1758,1759,1,0,0,0,1759,1762,1,0,0,0,1760,1758,1,0,0,0,1761,1763,5,24,0,0,1762,1761,1,0,0,0,1762,1763,1,0,0,0,1763,1765,1,0,0,0,1764,1753,1,0,0,0,1764,1765,1,0,0,0,1765,1766,1,0,0,0,1766,1769,5,7,0,0,1767,1769,5,4,0,0,1768,1752,1,0,0,0,1768,1767,1,0,0,0,1769,177,1,0,0,0,1770,1787,5,279,0,0,1771,1783,5,5,0,0,1772,1777,3,162,81,0,1773,1774,5,24,0,0,1774,1776,3,162,81,0,1775,1773,1,0,0,0,1776,1779,1,0,0,0,1777,1775,1,0,0,0,1777,1778,1,0,0,0,1778,1781,1,0,0,0,1779,1777,1,0,0,0,1780,1782,5,24,0,0,1781,1780,1,0,0,0,1781,1782,1,0,0,0,1782,1784,1,0,0,0,1783,1772,1,0,0,0,1783,1784,1,0,0,0,1784,1785,1,0,0,0,1785,1788,5,7,0,0,1786,1788,5,4,0,0,1787,1771,1,0,0,0,1787,1786,1,0,0,0,1788,179,1,0,0,0,1789,1790,5,316,0,0,1790,1791,5,5,0,0,1791,1796,3,166,83,0,1792,1793,5,24,0,0,1793,1795,3,166,83,0,1794,1792,1,0,0,0,1795,1798,1,0,0,0,1796,1794,1,0,0,0,1796,1797,1,0,0,0,1797,1800,1,0,0,0,1798,1796,1,0,0,0,1799,1801,5,24,0,0,1800,1799,1,0,0,0,1800,1801,1,0,0,0,1801,1802,1,0,0,0,1802,1803,5,7,0,0,1803,181,1,0,0,0,1804,1805,5,183,0,0,1805,1806,5,5,0,0,1806,1807,3,204,102,0,1807,1808,5,7,0,0,1808,183,1,0,0,0,1809,1810,5,278,0,0,1810,1811,5,5,0,0,1811,1812,3,204,102,0,1812,1813,5,7,0,0,1813,185,1,0,0,0,1814,1815,5,137,0,0,1815,1816,5,5,0,0,1816,1817,3,204,102,0,1817,1818,5,7,0,0,1818,187,1,0,0,0,1819,1820,5,105,0,0,1820,1821,5,5,0,0,1821,1822,3,204,102,0,1822,1823,5,24,0,0,1823,1824,3,204,102,0,1824,1825,5,7,0,0,1825,189,1,0,0,0,1826,1827,5,271,0,0,1827,1828,5,5,0,0,1828,1829,3,204,102,0,1829,1830,5,7,0,0,1830,191,1,0,0,0,1831,1832,5,118,0,0,1832,1833,5,5,0,0,1833,1838,3,160,80,0,1834,1835,5,24,0,0,1835,1837,3,160,80,0,1836,1834,1,0,0,0,1837,1840,1,0,0,0,1838,1836,1,0,0,0,1838,1839,1,0,0,0,1839,1842,1,0,0,0,1840,1838,1,0,0,0,1841,1843,5,24,0,0,1842,1841,1,0,0,0,1842,1843,1,0,0,0,1843,1844,1,0,0,0,1844,1845,5,7,0,0,1845,193,1,0,0,0,1846,1847,5,248,0,0,1847,1848,5,5,0,0,1848,1849,3,160,80,0,1849,1850,5,7,0,0,1850,195,1,0,0,0,1851,1852,5,290,0,0,1852,1853,5,5,0,0,1853,1854,3,204,102,0,1854,1855,5,24,0,0,1855,1856,3,160,80,0,1856,1857,5,7,0,0,1857,197,1,0,0,0,1858,1859,5,68,0,0,1859,1860,5,5,0,0,1860,1862,5,25,0,0,1861,1863,3,170,85,0,1862,1861,1,0,0,0,1862,1863,1,0,0,0,1863,1865,1,0,0,0,1864,1866,5,24,0,0,1865,1864,1,0,0,0,1865,1866,1,0,0,0,1866,1871,1,0,0,0,1867,1868,5,37,0,0,1868,1869,3,170,85,0,1869,1870,5,36,0,0,1870,1872,1,0,0,0,1871,1867,1,0,0,0,1871,1872,1,0,0,0,1872,1873,1,0,0,0,1873,1874,5,26,0,0,1874,1875,5,35,0,0,1875,1876,3,204,102,0,1876,1877,5,7,0,0,1877,199,1,0,0,0,1878,1892,3,174,87,0,1879,1892,3,176,88,0,1880,1892,3,178,89,0,1881,1892,3,180,90,0,1882,1892,3,182,91,0,1883,1892,3,184,92,0,1884,1892,3,186,93,0,1885,1892,3,188,94,0,1886,1892,3,190,95,0,1887,1892,3,192,96,0,1888,1892,3,194,97,0,1889,1892,3,196,98,0,1890,1892,3,198,99,0,1891,1878,1,0,0,0,1891,1879,1,0,0,0,1891,1880,1,0,0,0,1891,1881,1,0,0,0,1891,1882,1,0,0,0,1891,1883,1,0,0,0,1891,1884,1,0,0,0,1891,1885,1,0,0,0,1891,1886,1,0,0,0,1891,1887,1,0,0,0,1891,1888,1,0,0,0,1891,1889,1,0,0,0,1891,1890,1,0,0,0,1892,1896,1,0,0,0,1893,1895,5,27,0,0,1894,1893,1,0,0,0,1895,1898,1,0,0,0,1896,1894,1,0,0,0,1896,1897,1,0,0,0,1897,201,1,0,0,0,1898,1896,1,0,0,0,1899,1911,3,200,100,0,1900,1903,3,172,86,0,1901,1903,3,156,78,0,1902,1900,1,0,0,0,1902,1901,1,0,0,0,1903,1907,1,0,0,0,1904,1906,5,27,0,0,1905,1904,1,0,0,0,1906,1909,1,0,0,0,1907,1905,1,0,0,0,1907,1908,1,0,0,0,1908,1911,1,0,0,0,1909,1907,1,0,0,0,1910,1899,1,0,0,0,1910,1902,1,0,0,0,1911,203,1,0,0,0,1912,1915,3,202,101,0,1913,1915,3,144,72,0,1914,1912,1,0,0,0,1914,1913,1,0,0,0,1915,205,1,0,0,0,1916,1917,5,326,0,0,1917,207,1,0,0,0,1918,1919,5,316,0,0,1919,1920,5,25,0,0,1920,1921,3,14,7,0,1921,1922,5,24,0,0,1922,1923,3,14,7,0,1923,1924,5,24,0,0,1924,1925,3,14,7,0,1925,1926,5,26,0,0,1926,1942,1,0,0,0,1927,1928,5,118,0,0,1928,1929,5,25,0,0,1929,1930,3,14,7,0,1930,1931,5,24,0,0,1931,1932,3,14,7,0,1932,1933,5,26,0,0,1933,1942,1,0,0,0,1934,1935,5,68,0,0,1935,1936,5,25,0,0,1936,1937,3,14,7,0,1937,1938,5,24,0,0,1938,1939,3,14,7,0,1939,1940,5,26,0,0,1940,1942,1,0,0,0,1941,1918,1,0,0,0,1941,1927,1,0,0,0,1941,1934,1,0,0,0,1942,209,1,0,0,0,1943,1944,5,96,0,0,1944,1945,3,144,72,0,1945,1946,5,49,0,0,1946,1949,3,202,101,0,1947,1948,5,1,0,0,1948,1950,3,142,71,0,1949,1947,1,0,0,0,1949,1950,1,0,0,0,1950,211,1,0,0,0,1951,1953,5,23,0,0,1952,1951,1,0,0,0,1952,1953,1,0,0,0,1953,1954,1,0,0,0,1954,1959,3,824,412,0,1955,1956,5,23,0,0,1956,1958,3,824,412,0,1957,1955,1,0,0,0,1958,1961,1,0,0,0,1959,1957,1,0,0,0,1959,1960,1,0,0,0,1960,213,1,0,0,0,1961,1959,1,0,0,0,1962,1963,5,157,0,0,1963,1964,3,212,106,0,1964,1965,5,282,0,0,1965,1966,3,152,76,0,1966,215,1,0,0,0,1967,1968,5,129,0,0,1968,1969,3,148,74,0,1969,217,1,0,0,0,1970,1973,3,144,72,0,1971,1973,5,115,0,0,1972,1970,1,0,0,0,1972,1971,1,0,0,0,1973,1974,1,0,0,0,1974,1976,5,25,0,0,1975,1977,3,112,56,0,1976,1975,1,0,0,0,1976,1977,1,0,0,0,1977,1978,1,0,0,0,1978,1979,5,26,0,0,1979,219,1,0,0,0,1980,1981,5,63,0,0,1981,1982,3,656,328,0,1982,1983,5,117,0,0,1983,1984,5,110,0,0,1984,221,1,0,0,0,1985,1988,5,110,0,0,1986,1989,3,218,109,0,1987,1989,3,220,110,0,1988,1986,1,0,0,0,1988,1987,1,0,0,0,1989,223,1,0,0,0,1990,1991,5,227,0,0,1991,1992,3,854,427,0,1992,2006,3,824,412,0,1993,1994,5,1,0,0,1994,2007,3,226,113,0,1995,1996,5,25,0,0,1996,2001,3,226,113,0,1997,1998,5,24,0,0,1998,2e3,3,226,113,0,1999,1997,1,0,0,0,2e3,2003,1,0,0,0,2001,1999,1,0,0,0,2001,2002,1,0,0,0,2002,2004,1,0,0,0,2003,2001,1,0,0,0,2004,2005,5,26,0,0,2005,2007,1,0,0,0,2006,1993,1,0,0,0,2006,1995,1,0,0,0,2006,2007,1,0,0,0,2007,225,1,0,0,0,2008,2014,3,154,77,0,2009,2014,3,806,403,0,2010,2014,5,326,0,0,2011,2014,3,884,442,0,2012,2014,3,144,72,0,2013,2008,1,0,0,0,2013,2009,1,0,0,0,2013,2010,1,0,0,0,2013,2011,1,0,0,0,2013,2012,1,0,0,0,2014,227,1,0,0,0,2015,2017,3,14,7,0,2016,2018,7,9,0,0,2017,2016,1,0,0,0,2017,2018,1,0,0,0,2018,229,1,0,0,0,2019,2024,3,228,114,0,2020,2021,5,24,0,0,2021,2023,3,228,114,0,2022,2020,1,0,0,0,2023,2026,1,0,0,0,2024,2022,1,0,0,0,2024,2025,1,0,0,0,2025,231,1,0,0,0,2026,2024,1,0,0,0,2027,2033,3,236,118,0,2028,2029,3,238,119,0,2029,2030,3,236,118,0,2030,2032,1,0,0,0,2031,2028,1,0,0,0,2032,2035,1,0,0,0,2033,2031,1,0,0,0,2033,2034,1,0,0,0,2034,233,1,0,0,0,2035,2033,1,0,0,0,2036,2042,3,240,120,0,2037,2038,3,238,119,0,2038,2039,3,236,118,0,2039,2041,1,0,0,0,2040,2037,1,0,0,0,2041,2044,1,0,0,0,2042,2040,1,0,0,0,2042,2043,1,0,0,0,2043,235,1,0,0,0,2044,2042,1,0,0,0,2045,2051,3,240,120,0,2046,2047,5,25,0,0,2047,2048,3,240,120,0,2048,2049,5,26,0,0,2049,2051,1,0,0,0,2050,2045,1,0,0,0,2050,2046,1,0,0,0,2051,237,1,0,0,0,2052,2054,5,305,0,0,2053,2055,5,42,0,0,2054,2053,1,0,0,0,2054,2055,1,0,0,0,2055,2059,1,0,0,0,2056,2059,5,169,0,0,2057,2059,5,123,0,0,2058,2052,1,0,0,0,2058,2056,1,0,0,0,2058,2057,1,0,0,0,2059,239,1,0,0,0,2060,2067,3,242,121,0,2061,2062,5,182,0,0,2062,2065,3,14,7,0,2063,2064,7,10,0,0,2064,2066,3,14,7,0,2065,2063,1,0,0,0,2065,2066,1,0,0,0,2066,2068,1,0,0,0,2067,2061,1,0,0,0,2067,2068,1,0,0,0,2068,241,1,0,0,0,2069,2071,5,108,0,0,2070,2069,1,0,0,0,2070,2071,1,0,0,0,2071,2075,1,0,0,0,2072,2076,3,244,122,0,2073,2076,3,250,125,0,2074,2076,3,254,127,0,2075,2072,1,0,0,0,2075,2073,1,0,0,0,2075,2074,1,0,0,0,2076,2080,1,0,0,0,2077,2078,5,170,0,0,2078,2079,5,253,0,0,2079,2081,3,116,58,0,2080,2077,1,0,0,0,2080,2081,1,0,0,0,2081,243,1,0,0,0,2082,2084,5,232,0,0,2083,2085,5,278,0,0,2084,2083,1,0,0,0,2084,2085,1,0,0,0,2085,2086,1,0,0,0,2086,2091,3,346,173,0,2087,2088,5,24,0,0,2088,2090,3,346,173,0,2089,2087,1,0,0,0,2090,2093,1,0,0,0,2091,2089,1,0,0,0,2091,2092,1,0,0,0,2092,2115,1,0,0,0,2093,2091,1,0,0,0,2094,2095,5,313,0,0,2095,2098,3,136,68,0,2096,2097,5,49,0,0,2097,2099,3,824,412,0,2098,2096,1,0,0,0,2098,2099,1,0,0,0,2099,2102,1,0,0,0,2100,2101,5,322,0,0,2101,2103,3,248,124,0,2102,2100,1,0,0,0,2102,2103,1,0,0,0,2103,2105,1,0,0,0,2104,2106,3,900,450,0,2105,2104,1,0,0,0,2105,2106,1,0,0,0,2106,2109,1,0,0,0,2107,2108,5,151,0,0,2108,2110,3,14,7,0,2109,2107,1,0,0,0,2109,2110,1,0,0,0,2110,2113,1,0,0,0,2111,2112,5,51,0,0,2112,2114,3,314,157,0,2113,2111,1,0,0,0,2113,2114,1,0,0,0,2114,2116,1,0,0,0,2115,2094,1,0,0,0,2115,2116,1,0,0,0,2116,245,1,0,0,0,2117,2118,3,824,412,0,2118,2119,5,1,0,0,2119,2120,3,14,7,0,2120,247,1,0,0,0,2121,2126,3,246,123,0,2122,2123,5,24,0,0,2123,2125,3,246,123,0,2124,2122,1,0,0,0,2125,2128,1,0,0,0,2126,2124,1,0,0,0,2126,2127,1,0,0,0,2127,249,1,0,0,0,2128,2126,1,0,0,0,2129,2130,5,237,0,0,2130,2135,3,346,173,0,2131,2132,5,24,0,0,2132,2134,3,346,173,0,2133,2131,1,0,0,0,2134,2137,1,0,0,0,2135,2133,1,0,0,0,2135,2136,1,0,0,0,2136,2140,1,0,0,0,2137,2135,1,0,0,0,2138,2139,5,229,0,0,2139,2141,3,230,115,0,2140,2138,1,0,0,0,2140,2141,1,0,0,0,2141,2142,1,0,0,0,2142,2143,5,207,0,0,2143,2144,3,124,62,0,2144,2146,5,313,0,0,2145,2147,5,42,0,0,2146,2145,1,0,0,0,2146,2147,1,0,0,0,2147,2148,1,0,0,0,2148,2151,3,136,68,0,2149,2150,5,49,0,0,2150,2152,3,824,412,0,2151,2149,1,0,0,0,2151,2152,1,0,0,0,2152,2154,1,0,0,0,2153,2155,3,900,450,0,2154,2153,1,0,0,0,2154,2155,1,0,0,0,2155,2158,1,0,0,0,2156,2157,5,151,0,0,2157,2159,3,14,7,0,2158,2156,1,0,0,0,2158,2159,1,0,0,0,2159,2162,1,0,0,0,2160,2161,5,51,0,0,2161,2163,3,314,157,0,2162,2160,1,0,0,0,2162,2163,1,0,0,0,2163,251,1,0,0,0,2164,2166,7,11,0,0,2165,2164,1,0,0,0,2165,2166,1,0,0,0,2166,253,1,0,0,0,2167,2168,5,141,0,0,2168,2170,3,338,169,0,2169,2167,1,0,0,0,2169,2170,1,0,0,0,2170,2171,1,0,0,0,2171,2173,5,269,0,0,2172,2174,5,278,0,0,2173,2172,1,0,0,0,2173,2174,1,0,0,0,2174,2175,1,0,0,0,2175,2176,3,252,126,0,2176,2181,3,336,168,0,2177,2178,5,24,0,0,2178,2180,3,336,168,0,2179,2177,1,0,0,0,2180,2183,1,0,0,0,2181,2179,1,0,0,0,2181,2182,1,0,0,0,2182,2185,1,0,0,0,2183,2181,1,0,0,0,2184,2186,5,24,0,0,2185,2184,1,0,0,0,2185,2186,1,0,0,0,2186,2189,1,0,0,0,2187,2188,5,323,0,0,2188,2190,3,126,63,0,2189,2187,1,0,0,0,2189,2190,1,0,0,0,2190,2193,1,0,0,0,2191,2192,5,141,0,0,2192,2194,3,338,169,0,2193,2191,1,0,0,0,2193,2194,1,0,0,0,2194,2196,1,0,0,0,2195,2197,3,900,450,0,2196,2195,1,0,0,0,2196,2197,1,0,0,0,2197,2199,1,0,0,0,2198,2200,3,318,159,0,2199,2198,1,0,0,0,2199,2200,1,0,0,0,2200,2203,1,0,0,0,2201,2202,5,151,0,0,2202,2204,3,14,7,0,2203,2201,1,0,0,0,2203,2204,1,0,0,0,2204,2206,1,0,0,0,2205,2207,3,754,377,0,2206,2205,1,0,0,0,2206,2207,1,0,0,0,2207,2209,1,0,0,0,2208,2210,3,316,158,0,2209,2208,1,0,0,0,2209,2210,1,0,0,0,2210,255,1,0,0,0,2211,2212,5,189,0,0,2212,2214,5,25,0,0,2213,2215,3,768,384,0,2214,2213,1,0,0,0,2214,2215,1,0,0,0,2215,2217,1,0,0,0,2216,2218,3,314,157,0,2217,2216,1,0,0,0,2217,2218,1,0,0,0,2218,2220,1,0,0,0,2219,2221,3,262,131,0,2220,2219,1,0,0,0,2220,2221,1,0,0,0,2221,2223,1,0,0,0,2222,2224,3,258,129,0,2223,2222,1,0,0,0,2223,2224,1,0,0,0,2224,2225,1,0,0,0,2225,2226,3,268,134,0,2226,2227,5,26,0,0,2227,257,1,0,0,0,2228,2229,5,208,0,0,2229,2230,5,262,0,0,2230,2231,5,223,0,0,2231,2240,5,187,0,0,2232,2233,5,42,0,0,2233,2234,5,263,0,0,2234,2235,5,223,0,0,2235,2237,5,187,0,0,2236,2238,3,260,130,0,2237,2236,1,0,0,0,2237,2238,1,0,0,0,2238,2240,1,0,0,0,2239,2228,1,0,0,0,2239,2232,1,0,0,0,2240,259,1,0,0,0,2241,2242,5,273,0,0,2242,2243,5,114,0,0,2243,2251,5,188,0,0,2244,2245,5,206,0,0,2245,2246,5,114,0,0,2246,2251,5,188,0,0,2247,2248,5,322,0,0,2248,2249,5,308,0,0,2249,2251,5,263,0,0,2250,2241,1,0,0,0,2250,2244,1,0,0,0,2250,2247,1,0,0,0,2251,261,1,0,0,0,2252,2253,5,190,0,0,2253,2254,3,264,132,0,2254,263,1,0,0,0,2255,2260,3,266,133,0,2256,2257,5,24,0,0,2257,2259,3,266,133,0,2258,2256,1,0,0,0,2259,2262,1,0,0,0,2260,2258,1,0,0,0,2260,2261,1,0,0,0,2261,265,1,0,0,0,2262,2260,1,0,0,0,2263,2264,3,14,7,0,2264,2265,5,49,0,0,2265,2266,3,824,412,0,2266,267,1,0,0,0,2267,2268,5,41,0,0,2268,2269,5,187,0,0,2269,2271,3,270,135,0,2270,2267,1,0,0,0,2270,2271,1,0,0,0,2271,2273,1,0,0,0,2272,2274,3,274,137,0,2273,2272,1,0,0,0,2273,2274,1,0,0,0,2274,2275,1,0,0,0,2275,2276,5,222,0,0,2276,2277,5,25,0,0,2277,2278,3,276,138,0,2278,2280,5,26,0,0,2279,2281,3,290,145,0,2280,2279,1,0,0,0,2280,2281,1,0,0,0,2281,2282,1,0,0,0,2282,2283,5,100,0,0,2283,2284,3,302,151,0,2284,269,1,0,0,0,2285,2286,5,274,0,0,2286,2287,5,295,0,0,2287,2288,5,196,0,0,2288,2305,5,262,0,0,2289,2290,5,274,0,0,2290,2291,5,221,0,0,2291,2292,5,178,0,0,2292,2305,5,262,0,0,2293,2294,5,274,0,0,2294,2295,5,295,0,0,2295,2296,5,135,0,0,2296,2305,3,272,136,0,2297,2298,5,274,0,0,2298,2299,5,295,0,0,2299,2300,5,178,0,0,2300,2305,3,272,136,0,2301,2302,5,274,0,0,2302,2303,5,295,0,0,2303,2305,3,272,136,0,2304,2285,1,0,0,0,2304,2289,1,0,0,0,2304,2293,1,0,0,0,2304,2297,1,0,0,0,2304,2301,1,0,0,0,2305,271,1,0,0,0,2306,2307,3,312,156,0,2307,273,1,0,0,0,2308,2309,7,12,0,0,2309,275,1,0,0,0,2310,2315,3,278,139,0,2311,2312,5,12,0,0,2312,2314,3,278,139,0,2313,2311,1,0,0,0,2314,2317,1,0,0,0,2315,2313,1,0,0,0,2315,2316,1,0,0,0,2316,277,1,0,0,0,2317,2315,1,0,0,0,2318,2320,3,280,140,0,2319,2318,1,0,0,0,2320,2321,1,0,0,0,2321,2319,1,0,0,0,2321,2322,1,0,0,0,2322,279,1,0,0,0,2323,2325,3,284,142,0,2324,2326,3,282,141,0,2325,2324,1,0,0,0,2325,2326,1,0,0,0,2326,281,1,0,0,0,2327,2329,5,19,0,0,2328,2330,5,27,0,0,2329,2328,1,0,0,0,2329,2330,1,0,0,0,2330,2356,1,0,0,0,2331,2333,5,16,0,0,2332,2334,5,27,0,0,2333,2332,1,0,0,0,2333,2334,1,0,0,0,2334,2356,1,0,0,0,2335,2337,5,27,0,0,2336,2338,5,27,0,0,2337,2336,1,0,0,0,2337,2338,1,0,0,0,2338,2356,1,0,0,0,2339,2341,5,31,0,0,2340,2342,3,888,444,0,2341,2340,1,0,0,0,2341,2342,1,0,0,0,2342,2343,1,0,0,0,2343,2345,5,24,0,0,2344,2346,3,888,444,0,2345,2344,1,0,0,0,2345,2346,1,0,0,0,2346,2347,1,0,0,0,2347,2349,5,32,0,0,2348,2350,5,27,0,0,2349,2348,1,0,0,0,2349,2350,1,0,0,0,2350,2356,1,0,0,0,2351,2352,5,31,0,0,2352,2353,3,888,444,0,2353,2354,5,32,0,0,2354,2356,1,0,0,0,2355,2327,1,0,0,0,2355,2331,1,0,0,0,2355,2335,1,0,0,0,2355,2339,1,0,0,0,2355,2351,1,0,0,0,2356,283,1,0,0,0,2357,2373,3,286,143,0,2358,2373,5,30,0,0,2359,2373,5,33,0,0,2360,2362,5,25,0,0,2361,2363,3,276,138,0,2362,2361,1,0,0,0,2362,2363,1,0,0,0,2363,2364,1,0,0,0,2364,2373,5,26,0,0,2365,2366,5,31,0,0,2366,2367,5,17,0,0,2367,2368,3,276,138,0,2368,2369,5,17,0,0,2369,2370,5,32,0,0,2370,2373,1,0,0,0,2371,2373,3,288,144,0,2372,2357,1,0,0,0,2372,2358,1,0,0,0,2372,2359,1,0,0,0,2372,2360,1,0,0,0,2372,2365,1,0,0,0,2372,2371,1,0,0,0,2373,285,1,0,0,0,2374,2375,3,312,156,0,2375,287,1,0,0,0,2376,2377,5,224,0,0,2377,2378,5,25,0,0,2378,2383,3,276,138,0,2379,2380,5,24,0,0,2380,2382,3,276,138,0,2381,2379,1,0,0,0,2382,2385,1,0,0,0,2383,2381,1,0,0,0,2383,2384,1,0,0,0,2384,2386,1,0,0,0,2385,2383,1,0,0,0,2386,2387,5,26,0,0,2387,289,1,0,0,0,2388,2389,5,281,0,0,2389,2390,3,292,146,0,2390,291,1,0,0,0,2391,2396,3,294,147,0,2392,2393,5,24,0,0,2393,2395,3,294,147,0,2394,2392,1,0,0,0,2395,2398,1,0,0,0,2396,2394,1,0,0,0,2396,2397,1,0,0,0,2397,293,1,0,0,0,2398,2396,1,0,0,0,2399,2400,3,296,148,0,2400,2401,5,1,0,0,2401,2402,5,25,0,0,2402,2403,3,298,149,0,2403,2404,5,26,0,0,2404,295,1,0,0,0,2405,2406,3,312,156,0,2406,297,1,0,0,0,2407,2412,3,300,150,0,2408,2409,5,24,0,0,2409,2411,3,300,150,0,2410,2408,1,0,0,0,2411,2414,1,0,0,0,2412,2410,1,0,0,0,2412,2413,1,0,0,0,2413,299,1,0,0,0,2414,2412,1,0,0,0,2415,2416,3,312,156,0,2416,301,1,0,0,0,2417,2422,3,304,152,0,2418,2419,5,24,0,0,2419,2421,3,304,152,0,2420,2418,1,0,0,0,2421,2424,1,0,0,0,2422,2420,1,0,0,0,2422,2423,1,0,0,0,2423,303,1,0,0,0,2424,2422,1,0,0,0,2425,2426,3,306,153,0,2426,2427,5,49,0,0,2427,2428,3,308,154,0,2428,305,1,0,0,0,2429,2430,3,312,156,0,2430,307,1,0,0,0,2431,2432,3,310,155,0,2432,309,1,0,0,0,2433,2434,3,14,7,0,2434,311,1,0,0,0,2435,2436,3,804,402,0,2436,313,1,0,0,0,2437,2438,5,213,0,0,2438,2439,5,67,0,0,2439,2440,3,230,115,0,2440,315,1,0,0,0,2441,2443,5,51,0,0,2442,2441,1,0,0,0,2442,2443,1,0,0,0,2443,2444,1,0,0,0,2444,2445,3,314,157,0,2445,317,1,0,0,0,2446,2448,5,147,0,0,2447,2449,5,79,0,0,2448,2447,1,0,0,0,2448,2449,1,0,0,0,2449,2450,1,0,0,0,2450,2451,5,67,0,0,2451,2452,3,252,126,0,2452,2455,3,320,160,0,2453,2454,5,322,0,0,2454,2456,3,824,412,0,2455,2453,1,0,0,0,2455,2456,1,0,0,0,2456,319,1,0,0,0,2457,2462,3,322,161,0,2458,2459,5,24,0,0,2459,2461,3,322,161,0,2460,2458,1,0,0,0,2461,2464,1,0,0,0,2462,2460,1,0,0,0,2462,2463,1,0,0,0,2463,321,1,0,0,0,2464,2462,1,0,0,0,2465,2471,3,324,162,0,2466,2471,3,328,164,0,2467,2471,3,330,165,0,2468,2471,3,332,166,0,2469,2471,3,334,167,0,2470,2465,1,0,0,0,2470,2466,1,0,0,0,2470,2467,1,0,0,0,2470,2468,1,0,0,0,2470,2469,1,0,0,0,2471,323,1,0,0,0,2472,2473,3,128,64,0,2473,325,1,0,0,0,2474,2479,3,324,162,0,2475,2476,5,24,0,0,2476,2478,3,324,162,0,2477,2475,1,0,0,0,2478,2481,1,0,0,0,2479,2477,1,0,0,0,2479,2480,1,0,0,0,2480,327,1,0,0,0,2481,2479,1,0,0,0,2482,2483,5,261,0,0,2483,2484,5,25,0,0,2484,2485,3,326,163,0,2485,2486,5,26,0,0,2486,329,1,0,0,0,2487,2488,5,88,0,0,2488,2489,5,25,0,0,2489,2490,3,326,163,0,2490,2491,5,26,0,0,2491,331,1,0,0,0,2492,2493,5,148,0,0,2493,2494,5,272,0,0,2494,2495,5,25,0,0,2495,2496,3,320,160,0,2496,2497,5,26,0,0,2497,333,1,0,0,0,2498,2499,5,152,0,0,2499,2500,5,25,0,0,2500,2501,3,14,7,0,2501,2502,5,24,0,0,2502,2503,3,14,7,0,2503,2504,5,24,0,0,2504,2505,3,14,7,0,2505,2506,5,24,0,0,2506,2507,3,14,7,0,2507,2508,5,26,0,0,2508,335,1,0,0,0,2509,2510,3,848,424,0,2510,2511,5,19,0,0,2511,2519,1,0,0,0,2512,2516,3,14,7,0,2513,2514,5,49,0,0,2514,2517,3,826,413,0,2515,2517,3,844,422,0,2516,2513,1,0,0,0,2516,2515,1,0,0,0,2516,2517,1,0,0,0,2517,2519,1,0,0,0,2518,2509,1,0,0,0,2518,2512,1,0,0,0,2519,337,1,0,0,0,2520,2522,5,47,0,0,2521,2520,1,0,0,0,2521,2522,1,0,0,0,2522,2523,1,0,0,0,2523,2534,3,344,172,0,2524,2526,3,358,179,0,2525,2527,5,47,0,0,2526,2525,1,0,0,0,2526,2527,1,0,0,0,2527,2528,1,0,0,0,2528,2530,3,344,172,0,2529,2531,3,360,180,0,2530,2529,1,0,0,0,2530,2531,1,0,0,0,2531,2533,1,0,0,0,2532,2524,1,0,0,0,2533,2536,1,0,0,0,2534,2532,1,0,0,0,2534,2535,1,0,0,0,2535,339,1,0,0,0,2536,2534,1,0,0,0,2537,2540,3,120,60,0,2538,2539,5,49,0,0,2539,2541,3,824,412,0,2540,2538,1,0,0,0,2540,2541,1,0,0,0,2541,341,1,0,0,0,2542,2551,3,340,170,0,2543,2544,5,25,0,0,2544,2546,3,130,65,0,2545,2547,5,24,0,0,2546,2545,1,0,0,0,2546,2547,1,0,0,0,2547,2548,1,0,0,0,2548,2549,5,26,0,0,2549,2551,1,0,0,0,2550,2542,1,0,0,0,2550,2543,1,0,0,0,2551,343,1,0,0,0,2552,2562,3,346,173,0,2553,2560,5,136,0,0,2554,2556,7,13,0,0,2555,2554,1,0,0,0,2555,2556,1,0,0,0,2556,2557,1,0,0,0,2557,2558,5,67,0,0,2558,2561,3,342,171,0,2559,2561,5,77,0,0,2560,2555,1,0,0,0,2560,2559,1,0,0,0,2561,2563,1,0,0,0,2562,2553,1,0,0,0,2562,2563,1,0,0,0,2563,345,1,0,0,0,2564,2566,3,348,174,0,2565,2567,3,256,128,0,2566,2565,1,0,0,0,2566,2567,1,0,0,0,2567,2576,1,0,0,0,2568,2569,5,49,0,0,2569,2572,3,824,412,0,2570,2572,3,844,422,0,2571,2568,1,0,0,0,2571,2570,1,0,0,0,2572,2574,1,0,0,0,2573,2575,3,114,57,0,2574,2573,1,0,0,0,2574,2575,1,0,0,0,2575,2577,1,0,0,0,2576,2571,1,0,0,0,2576,2577,1,0,0,0,2577,2580,1,0,0,0,2578,2581,3,350,175,0,2579,2581,3,352,176,0,2580,2578,1,0,0,0,2580,2579,1,0,0,0,2580,2581,1,0,0,0,2581,347,1,0,0,0,2582,2592,3,662,331,0,2583,2584,5,25,0,0,2584,2585,3,232,116,0,2585,2586,5,26,0,0,2586,2592,1,0,0,0,2587,2588,5,25,0,0,2588,2589,3,370,185,0,2589,2590,5,26,0,0,2590,2592,1,0,0,0,2591,2582,1,0,0,0,2591,2583,1,0,0,0,2591,2587,1,0,0,0,2592,349,1,0,0,0,2593,2594,5,264,0,0,2594,2595,3,14,7,0,2595,351,1,0,0,0,2596,2597,5,288,0,0,2597,2598,3,354,177,0,2598,2599,5,25,0,0,2599,2600,3,14,7,0,2600,2602,5,26,0,0,2601,2603,3,356,178,0,2602,2601,1,0,0,0,2602,2603,1,0,0,0,2603,353,1,0,0,0,2604,2605,7,14,0,0,2605,355,1,0,0,0,2606,2607,5,244,0,0,2607,2608,5,25,0,0,2608,2609,3,14,7,0,2609,2610,5,26,0,0,2610,357,1,0,0,0,2611,2636,5,24,0,0,2612,2614,5,195,0,0,2613,2612,1,0,0,0,2613,2614,1,0,0,0,2614,2632,1,0,0,0,2615,2617,5,179,0,0,2616,2618,7,15,0,0,2617,2616,1,0,0,0,2617,2618,1,0,0,0,2618,2626,1,0,0,0,2619,2621,5,258,0,0,2620,2622,7,15,0,0,2621,2620,1,0,0,0,2621,2622,1,0,0,0,2622,2626,1,0,0,0,2623,2626,5,125,0,0,2624,2626,5,142,0,0,2625,2615,1,0,0,0,2625,2619,1,0,0,0,2625,2623,1,0,0,0,2625,2624,1,0,0,0,2625,2626,1,0,0,0,2626,2628,1,0,0,0,2627,2629,5,215,0,0,2628,2627,1,0,0,0,2628,2629,1,0,0,0,2629,2633,1,0,0,0,2630,2633,5,166,0,0,2631,2633,5,87,0,0,2632,2625,1,0,0,0,2632,2630,1,0,0,0,2632,2631,1,0,0,0,2633,2634,1,0,0,0,2634,2636,5,173,0,0,2635,2611,1,0,0,0,2635,2613,1,0,0,0,2636,359,1,0,0,0,2637,2638,5,207,0,0,2638,2642,3,14,7,0,2639,2640,5,313,0,0,2640,2642,3,118,59,0,2641,2637,1,0,0,0,2641,2639,1,0,0,0,2642,361,1,0,0,0,2643,2653,5,255,0,0,2644,2654,5,19,0,0,2645,2650,3,824,412,0,2646,2647,5,24,0,0,2647,2649,3,824,412,0,2648,2646,1,0,0,0,2649,2652,1,0,0,0,2650,2648,1,0,0,0,2650,2651,1,0,0,0,2651,2654,1,0,0,0,2652,2650,1,0,0,0,2653,2644,1,0,0,0,2653,2645,1,0,0,0,2654,363,1,0,0,0,2655,2668,5,167,0,0,2656,2657,5,167,0,0,2657,2658,5,212,0,0,2658,2668,5,38,0,0,2659,2660,5,167,0,0,2660,2661,5,212,0,0,2661,2668,5,256,0,0,2662,2663,5,167,0,0,2663,2664,5,212,0,0,2664,2668,5,154,0,0,2665,2668,5,310,0,0,2666,2668,5,245,0,0,2667,2655,1,0,0,0,2667,2656,1,0,0,0,2667,2659,1,0,0,0,2667,2662,1,0,0,0,2667,2665,1,0,0,0,2667,2666,1,0,0,0,2668,2669,1,0,0,0,2669,2670,5,170,0,0,2670,2671,3,678,339,0,2671,2673,3,368,184,0,2672,2674,3,362,181,0,2673,2672,1,0,0,0,2673,2674,1,0,0,0,2674,365,1,0,0,0,2675,2687,5,167,0,0,2676,2677,5,167,0,0,2677,2678,5,212,0,0,2678,2687,5,38,0,0,2679,2680,5,167,0,0,2680,2681,5,212,0,0,2681,2687,5,256,0,0,2682,2683,5,167,0,0,2683,2684,5,212,0,0,2684,2687,5,154,0,0,2685,2687,5,245,0,0,2686,2675,1,0,0,0,2686,2676,1,0,0,0,2686,2679,1,0,0,0,2686,2682,1,0,0,0,2686,2685,1,0,0,0,2687,2688,1,0,0,0,2688,2689,5,170,0,0,2689,2690,3,678,339,0,2690,2691,3,368,184,0,2691,367,1,0,0,0,2692,2694,3,114,57,0,2693,2692,1,0,0,0,2693,2694,1,0,0,0,2694,2695,1,0,0,0,2695,2699,3,372,186,0,2696,2697,5,97,0,0,2697,2699,5,315,0,0,2698,2693,1,0,0,0,2698,2696,1,0,0,0,2699,369,1,0,0,0,2700,2701,5,315,0,0,2701,2702,3,374,187,0,2702,371,1,0,0,0,2703,2706,3,370,185,0,2704,2706,3,232,116,0,2705,2703,1,0,0,0,2705,2704,1,0,0,0,2706,373,1,0,0,0,2707,2712,3,376,188,0,2708,2709,5,24,0,0,2709,2711,3,376,188,0,2710,2708,1,0,0,0,2711,2714,1,0,0,0,2712,2710,1,0,0,0,2712,2713,1,0,0,0,2713,375,1,0,0,0,2714,2712,1,0,0,0,2715,2716,5,25,0,0,2716,2717,3,112,56,0,2717,2718,5,26,0,0,2718,377,1,0,0,0,2719,2722,3,112,56,0,2720,2722,3,232,116,0,2721,2719,1,0,0,0,2721,2720,1,0,0,0,2722,379,1,0,0,0,2723,2726,5,86,0,0,2724,2725,5,212,0,0,2725,2727,5,245,0,0,2726,2724,1,0,0,0,2726,2727,1,0,0,0,2727,2728,1,0,0,0,2728,2729,5,130,0,0,2729,2730,5,93,0,0,2730,2734,5,276,0,0,2731,2732,5,153,0,0,2732,2733,5,199,0,0,2733,2735,5,127,0,0,2734,2731,1,0,0,0,2734,2735,1,0,0,0,2735,2736,1,0,0,0,2736,2737,3,672,336,0,2737,2738,3,456,228,0,2738,381,1,0,0,0,2739,2740,5,43,0,0,2740,2741,5,130,0,0,2741,2742,5,93,0,0,2742,2743,5,276,0,0,2743,2744,3,672,336,0,2744,2749,3,384,192,0,2745,2746,5,24,0,0,2746,2748,3,384,192,0,2747,2745,1,0,0,0,2748,2751,1,0,0,0,2749,2747,1,0,0,0,2749,2750,1,0,0,0,2750,383,1,0,0,0,2751,2749,1,0,0,0,2752,2756,3,488,244,0,2753,2756,3,490,245,0,2754,2756,3,492,246,0,2755,2752,1,0,0,0,2755,2753,1,0,0,0,2755,2754,1,0,0,0,2756,385,1,0,0,0,2757,2758,5,111,0,0,2758,2759,5,130,0,0,2759,2760,5,93,0,0,2760,2763,5,276,0,0,2761,2762,5,153,0,0,2762,2764,5,127,0,0,2763,2761,1,0,0,0,2763,2764,1,0,0,0,2764,2765,1,0,0,0,2765,2766,3,672,336,0,2766,387,1,0,0,0,2767,2768,5,86,0,0,2768,2772,5,317,0,0,2769,2770,5,153,0,0,2770,2771,5,199,0,0,2771,2773,5,127,0,0,2772,2769,1,0,0,0,2772,2773,1,0,0,0,2773,2774,1,0,0,0,2774,2776,3,672,336,0,2775,2777,3,396,198,0,2776,2775,1,0,0,0,2776,2777,1,0,0,0,2777,2778,1,0,0,0,2778,2779,5,49,0,0,2779,2780,3,232,116,0,2780,389,1,0,0,0,2781,2782,5,111,0,0,2782,2785,5,317,0,0,2783,2784,5,153,0,0,2784,2786,5,127,0,0,2785,2783,1,0,0,0,2785,2786,1,0,0,0,2786,2787,1,0,0,0,2787,2788,3,672,336,0,2788,391,1,0,0,0,2789,2790,5,310,0,0,2790,2791,5,203,0,0,2791,2792,3,672,336,0,2792,2793,5,25,0,0,2793,2794,5,302,0,0,2794,2795,3,416,208,0,2795,2797,5,26,0,0,2796,2798,3,396,198,0,2797,2796,1,0,0,0,2797,2798,1,0,0,0,2798,393,1,0,0,0,2799,2800,5,86,0,0,2800,2804,5,203,0,0,2801,2802,5,153,0,0,2802,2803,5,199,0,0,2803,2805,5,127,0,0,2804,2801,1,0,0,0,2804,2805,1,0,0,0,2805,2806,1,0,0,0,2806,2807,3,672,336,0,2807,2808,5,25,0,0,2808,2809,5,302,0,0,2809,2810,3,416,208,0,2810,2812,5,26,0,0,2811,2813,3,396,198,0,2812,2811,1,0,0,0,2812,2813,1,0,0,0,2813,395,1,0,0,0,2814,2815,5,322,0,0,2815,2816,3,414,207,0,2816,397,1,0,0,0,2817,2818,5,43,0,0,2818,2819,5,203,0,0,2819,2820,3,672,336,0,2820,2821,5,25,0,0,2821,2822,5,302,0,0,2822,2823,3,416,208,0,2823,2824,5,26,0,0,2824,2825,3,400,200,0,2825,399,1,0,0,0,2826,2827,5,271,0,0,2827,2828,3,414,207,0,2828,401,1,0,0,0,2829,2830,5,111,0,0,2830,2833,5,203,0,0,2831,2832,5,153,0,0,2832,2834,5,127,0,0,2833,2831,1,0,0,0,2833,2834,1,0,0,0,2834,2835,1,0,0,0,2835,2836,3,672,336,0,2836,2837,5,25,0,0,2837,2838,5,302,0,0,2838,2839,3,416,208,0,2839,2841,5,26,0,0,2840,2842,3,404,202,0,2841,2840,1,0,0,0,2841,2842,1,0,0,0,2842,403,1,0,0,0,2843,2844,5,322,0,0,2844,2845,3,414,207,0,2845,405,1,0,0,0,2846,2851,3,852,426,0,2847,2851,3,144,72,0,2848,2851,5,326,0,0,2849,2851,3,884,442,0,2850,2846,1,0,0,0,2850,2847,1,0,0,0,2850,2848,1,0,0,0,2850,2849,1,0,0,0,2851,407,1,0,0,0,2852,2853,3,826,413,0,2853,2854,5,1,0,0,2854,2855,3,406,203,0,2855,409,1,0,0,0,2856,2857,3,826,413,0,2857,411,1,0,0,0,2858,2861,3,408,204,0,2859,2861,3,410,205,0,2860,2858,1,0,0,0,2860,2859,1,0,0,0,2861,413,1,0,0,0,2862,2875,3,412,206,0,2863,2864,5,25,0,0,2864,2869,3,412,206,0,2865,2866,5,24,0,0,2866,2868,3,412,206,0,2867,2865,1,0,0,0,2868,2871,1,0,0,0,2869,2867,1,0,0,0,2869,2870,1,0,0,0,2870,2872,1,0,0,0,2871,2869,1,0,0,0,2872,2873,5,26,0,0,2873,2875,1,0,0,0,2874,2862,1,0,0,0,2874,2863,1,0,0,0,2875,415,1,0,0,0,2876,2877,3,826,413,0,2877,417,1,0,0,0,2878,2881,5,86,0,0,2879,2880,5,212,0,0,2880,2882,5,245,0,0,2881,2879,1,0,0,0,2881,2882,1,0,0,0,2882,2891,1,0,0,0,2883,2892,5,286,0,0,2884,2892,5,289,0,0,2885,2886,5,130,0,0,2886,2892,5,286,0,0,2887,2888,5,291,0,0,2888,2892,5,286,0,0,2889,2890,5,292,0,0,2890,2892,5,286,0,0,2891,2883,1,0,0,0,2891,2884,1,0,0,0,2891,2885,1,0,0,0,2891,2887,1,0,0,0,2891,2889,1,0,0,0,2892,2896,1,0,0,0,2893,2894,5,153,0,0,2894,2895,5,199,0,0,2895,2897,5,127,0,0,2896,2893,1,0,0,0,2896,2897,1,0,0,0,2897,2898,1,0,0,0,2898,2899,3,676,338,0,2899,2900,5,25,0,0,2900,2905,3,420,210,0,2901,2902,5,24,0,0,2902,2904,3,420,210,0,2903,2901,1,0,0,0,2904,2907,1,0,0,0,2905,2903,1,0,0,0,2905,2906,1,0,0,0,2906,2909,1,0,0,0,2907,2905,1,0,0,0,2908,2910,5,24,0,0,2909,2908,1,0,0,0,2909,2910,1,0,0,0,2910,2911,1,0,0,0,2911,2913,5,26,0,0,2912,2914,3,452,226,0,2913,2912,1,0,0,0,2913,2914,1,0,0,0,2914,2916,1,0,0,0,2915,2917,3,454,227,0,2916,2915,1,0,0,0,2916,2917,1,0,0,0,2917,2919,1,0,0,0,2918,2920,3,456,228,0,2919,2918,1,0,0,0,2919,2920,1,0,0,0,2920,2922,1,0,0,0,2921,2923,3,458,229,0,2922,2921,1,0,0,0,2922,2923,1,0,0,0,2923,2925,1,0,0,0,2924,2926,3,462,231,0,2925,2924,1,0,0,0,2925,2926,1,0,0,0,2926,419,1,0,0,0,2927,2934,3,510,255,0,2928,2934,3,518,259,0,2929,2934,3,520,260,0,2930,2934,3,554,277,0,2931,2934,3,536,268,0,2932,2934,3,828,414,0,2933,2927,1,0,0,0,2933,2928,1,0,0,0,2933,2929,1,0,0,0,2933,2930,1,0,0,0,2933,2931,1,0,0,0,2933,2932,1,0,0,0,2934,421,1,0,0,0,2935,2936,5,86,0,0,2936,2938,3,442,221,0,2937,2939,3,428,214,0,2938,2937,1,0,0,0,2938,2939,1,0,0,0,2939,2940,1,0,0,0,2940,2941,5,322,0,0,2941,2942,5,25,0,0,2942,2943,3,444,222,0,2943,2944,5,26,0,0,2944,423,1,0,0,0,2945,2946,5,43,0,0,2946,2949,3,442,221,0,2947,2950,3,434,217,0,2948,2950,3,438,219,0,2949,2947,1,0,0,0,2949,2948,1,0,0,0,2950,425,1,0,0,0,2951,2952,5,111,0,0,2952,2953,3,442,221,0,2953,427,1,0,0,0,2954,2957,5,94,0,0,2955,2957,3,430,215,0,2956,2954,1,0,0,0,2956,2955,1,0,0,0,2957,429,1,0,0,0,2958,2959,5,25,0,0,2959,2960,3,432,216,0,2960,2961,5,26,0,0,2961,431,1,0,0,0,2962,2963,5,286,0,0,2963,2969,3,836,418,0,2964,2965,5,24,0,0,2965,2966,5,286,0,0,2966,2968,3,836,418,0,2967,2964,1,0,0,0,2968,2971,1,0,0,0,2969,2967,1,0,0,0,2969,2970,1,0,0,0,2970,433,1,0,0,0,2971,2969,1,0,0,0,2972,2977,3,436,218,0,2973,2974,5,24,0,0,2974,2976,3,436,218,0,2975,2973,1,0,0,0,2976,2979,1,0,0,0,2977,2975,1,0,0,0,2977,2978,1,0,0,0,2978,435,1,0,0,0,2979,2977,1,0,0,0,2980,2983,3,490,245,0,2981,2983,3,492,246,0,2982,2980,1,0,0,0,2982,2981,1,0,0,0,2983,437,1,0,0,0,2984,2989,3,440,220,0,2985,2986,5,24,0,0,2986,2988,3,440,220,0,2987,2985,1,0,0,0,2988,2991,1,0,0,0,2989,2987,1,0,0,0,2989,2990,1,0,0,0,2990,439,1,0,0,0,2991,2989,1,0,0,0,2992,2993,5,40,0,0,2993,3003,5,94,0,0,2994,2995,5,111,0,0,2995,3003,5,94,0,0,2996,2997,5,40,0,0,2997,2998,5,286,0,0,2998,3003,3,836,418,0,2999,3e3,5,111,0,0,3e3,3001,5,286,0,0,3001,3003,3,836,418,0,3002,2992,1,0,0,0,3002,2994,1,0,0,0,3002,2996,1,0,0,0,3002,2999,1,0,0,0,3003,441,1,0,0,0,3004,3005,5,59,0,0,3005,3006,5,61,0,0,3006,3007,3,672,336,0,3007,443,1,0,0,0,3008,3013,3,446,223,0,3009,3010,5,24,0,0,3010,3012,3,446,223,0,3011,3009,1,0,0,0,3012,3015,1,0,0,0,3013,3011,1,0,0,0,3013,3014,1,0,0,0,3014,445,1,0,0,0,3015,3013,1,0,0,0,3016,3017,3,824,412,0,3017,3018,5,1,0,0,3018,3019,3,548,274,0,3019,447,1,0,0,0,3020,3021,5,59,0,0,3021,3023,3,672,336,0,3022,3024,5,160,0,0,3023,3022,1,0,0,0,3023,3024,1,0,0,0,3024,449,1,0,0,0,3025,3026,5,251,0,0,3026,3029,3,672,336,0,3027,3028,5,54,0,0,3028,3030,5,326,0,0,3029,3027,1,0,0,0,3029,3030,1,0,0,0,3030,451,1,0,0,0,3031,3032,5,163,0,0,3032,3033,5,25,0,0,3033,3038,3,674,337,0,3034,3035,5,24,0,0,3035,3037,3,674,337,0,3036,3034,1,0,0,0,3037,3040,1,0,0,0,3038,3036,1,0,0,0,3038,3039,1,0,0,0,3039,3041,1,0,0,0,3040,3038,1,0,0,0,3041,3042,5,26,0,0,3042,453,1,0,0,0,3043,3044,5,218,0,0,3044,3045,5,67,0,0,3045,3046,5,150,0,0,3046,3047,3,114,57,0,3047,455,1,0,0,0,3048,3049,5,322,0,0,3049,3050,5,25,0,0,3050,3055,3,460,230,0,3051,3052,5,24,0,0,3052,3054,3,460,230,0,3053,3051,1,0,0,0,3054,3057,1,0,0,0,3055,3053,1,0,0,0,3055,3056,1,0,0,0,3056,3058,1,0,0,0,3057,3055,1,0,0,0,3058,3059,5,26,0,0,3059,457,1,0,0,0,3060,3061,5,289,0,0,3061,3062,3,674,337,0,3062,459,1,0,0,0,3063,3064,3,824,412,0,3064,3065,5,1,0,0,3065,3066,3,548,274,0,3066,461,1,0,0,0,3067,3068,5,49,0,0,3068,3069,3,372,186,0,3069,463,1,0,0,0,3070,3071,5,43,0,0,3071,3072,5,286,0,0,3072,3073,3,676,338,0,3073,3078,3,466,233,0,3074,3075,5,24,0,0,3075,3077,3,466,233,0,3076,3074,1,0,0,0,3077,3080,1,0,0,0,3078,3076,1,0,0,0,3078,3079,1,0,0,0,3079,465,1,0,0,0,3080,3078,1,0,0,0,3081,3099,3,476,238,0,3082,3099,3,478,239,0,3083,3099,3,480,240,0,3084,3099,3,484,242,0,3085,3099,3,486,243,0,3086,3099,3,488,244,0,3087,3099,3,490,245,0,3088,3099,3,492,246,0,3089,3099,3,494,247,0,3090,3099,3,496,248,0,3091,3099,3,498,249,0,3092,3099,3,502,251,0,3093,3099,3,504,252,0,3094,3099,3,506,253,0,3095,3099,3,500,250,0,3096,3099,3,508,254,0,3097,3099,3,482,241,0,3098,3081,1,0,0,0,3098,3082,1,0,0,0,3098,3083,1,0,0,0,3098,3084,1,0,0,0,3098,3085,1,0,0,0,3098,3086,1,0,0,0,3098,3087,1,0,0,0,3098,3088,1,0,0,0,3098,3089,1,0,0,0,3098,3090,1,0,0,0,3098,3091,1,0,0,0,3098,3092,1,0,0,0,3098,3093,1,0,0,0,3098,3094,1,0,0,0,3098,3095,1,0,0,0,3098,3096,1,0,0,0,3098,3097,1,0,0,0,3099,467,1,0,0,0,3100,3101,5,43,0,0,3101,3102,5,130,0,0,3102,3103,5,286,0,0,3103,3104,3,676,338,0,3104,3109,3,470,235,0,3105,3106,5,24,0,0,3106,3108,3,470,235,0,3107,3105,1,0,0,0,3108,3111,1,0,0,0,3109,3107,1,0,0,0,3109,3110,1,0,0,0,3110,469,1,0,0,0,3111,3109,1,0,0,0,3112,3118,3,476,238,0,3113,3118,3,478,239,0,3114,3118,3,488,244,0,3115,3118,3,490,245,0,3116,3118,3,492,246,0,3117,3112,1,0,0,0,3117,3113,1,0,0,0,3117,3114,1,0,0,0,3117,3115,1,0,0,0,3117,3116,1,0,0,0,3118,471,1,0,0,0,3119,3120,5,43,0,0,3120,3121,5,289,0,0,3121,3122,3,672,336,0,3122,3127,3,474,237,0,3123,3124,5,24,0,0,3124,3126,3,474,237,0,3125,3123,1,0,0,0,3126,3129,1,0,0,0,3127,3125,1,0,0,0,3127,3128,1,0,0,0,3128,473,1,0,0,0,3129,3127,1,0,0,0,3130,3133,3,476,238,0,3131,3133,3,478,239,0,3132,3130,1,0,0,0,3132,3131,1,0,0,0,3133,475,1,0,0,0,3134,3136,5,40,0,0,3135,3137,5,76,0,0,3136,3135,1,0,0,0,3136,3137,1,0,0,0,3137,3138,1,0,0,0,3138,3139,3,510,255,0,3139,477,1,0,0,0,3140,3142,5,111,0,0,3141,3143,5,76,0,0,3142,3141,1,0,0,0,3142,3143,1,0,0,0,3143,3144,1,0,0,0,3144,3145,3,824,412,0,3145,479,1,0,0,0,3146,3147,5,43,0,0,3147,3148,5,76,0,0,3148,3149,3,824,412,0,3149,3150,5,271,0,0,3150,3151,3,512,256,0,3151,481,1,0,0,0,3152,3153,5,43,0,0,3153,3154,5,76,0,0,3154,3155,3,824,412,0,3155,3156,5,111,0,0,3156,3157,5,199,0,0,3157,3158,5,201,0,0,3158,483,1,0,0,0,3159,3160,5,40,0,0,3160,3161,3,554,277,0,3161,485,1,0,0,0,3162,3163,5,43,0,0,3163,3164,5,133,0,0,3164,3165,3,824,412,0,3165,3166,5,271,0,0,3166,3167,3,824,412,0,3167,3168,3,560,280,0,3168,487,1,0,0,0,3169,3170,5,271,0,0,3170,3171,3,824,412,0,3171,3172,3,548,274,0,3172,489,1,0,0,0,3173,3174,5,271,0,0,3174,3175,5,25,0,0,3175,3180,3,546,273,0,3176,3177,5,24,0,0,3177,3179,3,546,273,0,3178,3176,1,0,0,0,3179,3182,1,0,0,0,3180,3178,1,0,0,0,3180,3181,1,0,0,0,3181,3183,1,0,0,0,3182,3180,1,0,0,0,3183,3184,5,26,0,0,3184,491,1,0,0,0,3185,3186,5,247,0,0,3186,3187,5,25,0,0,3187,3192,3,824,412,0,3188,3189,5,24,0,0,3189,3191,3,824,412,0,3190,3188,1,0,0,0,3191,3194,1,0,0,0,3192,3190,1,0,0,0,3192,3193,1,0,0,0,3193,3195,1,0,0,0,3194,3192,1,0,0,0,3195,3196,5,26,0,0,3196,493,1,0,0,0,3197,3198,5,40,0,0,3198,3199,3,520,260,0,3199,495,1,0,0,0,3200,3201,5,111,0,0,3201,3202,5,161,0,0,3202,3203,3,824,412,0,3203,497,1,0,0,0,3204,3205,5,243,0,0,3205,3206,5,295,0,0,3206,3207,3,836,418,0,3207,499,1,0,0,0,3208,3209,5,243,0,0,3209,3210,5,161,0,0,3210,3211,3,824,412,0,3211,3212,5,295,0,0,3212,3213,3,824,412,0,3213,501,1,0,0,0,3214,3215,5,40,0,0,3215,3216,3,536,268,0,3216,503,1,0,0,0,3217,3218,5,43,0,0,3218,3219,5,72,0,0,3219,3220,3,824,412,0,3220,3221,3,544,272,0,3221,505,1,0,0,0,3222,3223,5,111,0,0,3223,3224,5,72,0,0,3224,3225,3,824,412,0,3225,507,1,0,0,0,3226,3227,5,43,0,0,3227,3228,5,161,0,0,3228,3229,3,824,412,0,3229,3230,3,566,283,0,3230,509,1,0,0,0,3231,3232,3,828,414,0,3232,3234,3,204,102,0,3233,3235,3,512,256,0,3234,3233,1,0,0,0,3234,3235,1,0,0,0,3235,3236,1,0,0,0,3236,3237,3,514,257,0,3237,511,1,0,0,0,3238,3239,5,133,0,0,3239,3240,3,824,412,0,3240,513,1,0,0,0,3241,3243,5,199,0,0,3242,3241,1,0,0,0,3242,3243,1,0,0,0,3243,3244,1,0,0,0,3244,3246,5,201,0,0,3245,3242,1,0,0,0,3245,3246,1,0,0,0,3246,3249,1,0,0,0,3247,3248,5,97,0,0,3248,3250,3,14,7,0,3249,3247,1,0,0,0,3249,3250,1,0,0,0,3250,515,1,0,0,0,3251,3253,3,824,412,0,3252,3254,7,9,0,0,3253,3252,1,0,0,0,3253,3254,1,0,0,0,3254,517,1,0,0,0,3255,3256,5,230,0,0,3256,3257,5,177,0,0,3257,3258,5,25,0,0,3258,3263,3,824,412,0,3259,3260,5,24,0,0,3260,3262,3,824,412,0,3261,3259,1,0,0,0,3262,3265,1,0,0,0,3263,3261,1,0,0,0,3263,3264,1,0,0,0,3264,3266,1,0,0,0,3265,3263,1,0,0,0,3266,3267,5,26,0,0,3267,3295,1,0,0,0,3268,3269,5,218,0,0,3269,3270,5,67,0,0,3270,3271,5,25,0,0,3271,3276,3,824,412,0,3272,3273,5,24,0,0,3273,3275,3,824,412,0,3274,3272,1,0,0,0,3275,3278,1,0,0,0,3276,3274,1,0,0,0,3276,3277,1,0,0,0,3277,3279,1,0,0,0,3278,3276,1,0,0,0,3279,3280,5,26,0,0,3280,3295,1,0,0,0,3281,3282,5,213,0,0,3282,3283,5,67,0,0,3283,3284,5,25,0,0,3284,3289,3,516,258,0,3285,3286,5,24,0,0,3286,3288,3,516,258,0,3287,3285,1,0,0,0,3288,3291,1,0,0,0,3289,3287,1,0,0,0,3289,3290,1,0,0,0,3290,3292,1,0,0,0,3291,3289,1,0,0,0,3292,3293,5,26,0,0,3293,3295,1,0,0,0,3294,3255,1,0,0,0,3294,3268,1,0,0,0,3294,3281,1,0,0,0,3295,519,1,0,0,0,3296,3297,5,161,0,0,3297,3298,3,824,412,0,3298,3299,3,522,261,0,3299,3300,5,207,0,0,3300,3301,5,25,0,0,3301,3306,3,828,414,0,3302,3303,5,24,0,0,3303,3305,3,828,414,0,3304,3302,1,0,0,0,3305,3308,1,0,0,0,3306,3304,1,0,0,0,3306,3307,1,0,0,0,3307,3309,1,0,0,0,3308,3306,1,0,0,0,3309,3322,5,26,0,0,3310,3311,5,85,0,0,3311,3312,5,25,0,0,3312,3317,3,828,414,0,3313,3314,5,24,0,0,3314,3316,3,828,414,0,3315,3313,1,0,0,0,3316,3319,1,0,0,0,3317,3315,1,0,0,0,3317,3318,1,0,0,0,3318,3320,1,0,0,0,3319,3317,1,0,0,0,3320,3321,5,26,0,0,3321,3323,1,0,0,0,3322,3310,1,0,0,0,3322,3323,1,0,0,0,3323,3325,1,0,0,0,3324,3326,3,530,265,0,3325,3324,1,0,0,0,3325,3326,1,0,0,0,3326,521,1,0,0,0,3327,3330,3,524,262,0,3328,3330,3,526,263,0,3329,3327,1,0,0,0,3329,3328,1,0,0,0,3330,3333,1,0,0,0,3331,3332,5,313,0,0,3332,3334,3,528,264,0,3333,3331,1,0,0,0,3333,3334,1,0,0,0,3334,523,1,0,0,0,3335,3337,5,145,0,0,3336,3338,5,306,0,0,3337,3336,1,0,0,0,3337,3338,1,0,0,0,3338,3340,1,0,0,0,3339,3341,7,16,0,0,3340,3339,1,0,0,0,3340,3341,1,0,0,0,3341,525,1,0,0,0,3342,3343,5,184,0,0,3343,527,1,0,0,0,3344,3345,3,824,412,0,3345,529,1,0,0,0,3346,3347,5,322,0,0,3347,3348,5,25,0,0,3348,3353,3,532,266,0,3349,3350,5,24,0,0,3350,3352,3,532,266,0,3351,3349,1,0,0,0,3352,3355,1,0,0,0,3353,3351,1,0,0,0,3353,3354,1,0,0,0,3354,3357,1,0,0,0,3355,3353,1,0,0,0,3356,3358,5,24,0,0,3357,3356,1,0,0,0,3357,3358,1,0,0,0,3358,3359,1,0,0,0,3359,3360,5,26,0,0,3360,531,1,0,0,0,3361,3362,3,824,412,0,3362,3363,5,1,0,0,3363,3364,3,534,267,0,3364,533,1,0,0,0,3365,3370,3,852,426,0,3366,3370,5,326,0,0,3367,3370,3,888,444,0,3368,3370,3,884,442,0,3369,3365,1,0,0,0,3369,3366,1,0,0,0,3369,3367,1,0,0,0,3369,3368,1,0,0,0,3370,535,1,0,0,0,3371,3372,5,72,0,0,3372,3373,3,824,412,0,3373,3374,5,322,0,0,3374,3375,5,25,0,0,3375,3376,3,538,269,0,3376,3377,5,26,0,0,3377,537,1,0,0,0,3378,3383,3,540,270,0,3379,3380,5,24,0,0,3380,3382,3,540,270,0,3381,3379,1,0,0,0,3382,3385,1,0,0,0,3383,3381,1,0,0,0,3383,3384,1,0,0,0,3384,539,1,0,0,0,3385,3383,1,0,0,0,3386,3387,3,824,412,0,3387,3388,5,1,0,0,3388,3389,3,542,271,0,3389,541,1,0,0,0,3390,3391,3,14,7,0,3391,543,1,0,0,0,3392,3399,5,107,0,0,3393,3394,5,271,0,0,3394,3395,5,25,0,0,3395,3396,3,538,269,0,3396,3397,5,26,0,0,3397,3399,1,0,0,0,3398,3392,1,0,0,0,3398,3393,1,0,0,0,3399,545,1,0,0,0,3400,3401,3,824,412,0,3401,3402,5,1,0,0,3402,3403,3,548,274,0,3403,547,1,0,0,0,3404,3417,3,806,403,0,3405,3417,5,326,0,0,3406,3417,3,888,444,0,3407,3417,3,562,281,0,3408,3409,3,550,275,0,3409,3410,5,207,0,0,3410,3413,3,824,412,0,3411,3412,5,49,0,0,3412,3414,7,17,0,0,3413,3411,1,0,0,0,3413,3414,1,0,0,0,3414,3417,1,0,0,0,3415,3417,3,884,442,0,3416,3404,1,0,0,0,3416,3405,1,0,0,0,3416,3406,1,0,0,0,3416,3407,1,0,0,0,3416,3408,1,0,0,0,3416,3415,1,0,0,0,3417,549,1,0,0,0,3418,3429,3,14,7,0,3419,3426,3,552,276,0,3420,3421,5,24,0,0,3421,3422,3,14,7,0,3422,3423,3,552,276,0,3423,3425,1,0,0,0,3424,3420,1,0,0,0,3425,3428,1,0,0,0,3426,3424,1,0,0,0,3426,3427,1,0,0,0,3427,3430,1,0,0,0,3428,3426,1,0,0,0,3429,3419,1,0,0,0,3429,3430,1,0,0,0,3430,551,1,0,0,0,3431,3432,5,295,0,0,3432,3433,5,130,0,0,3433,3434,5,93,0,0,3434,3435,5,276,0,0,3435,3438,3,824,412,0,3436,3438,5,101,0,0,3437,3431,1,0,0,0,3437,3436,1,0,0,0,3438,553,1,0,0,0,3439,3440,5,133,0,0,3440,3441,3,824,412,0,3441,3442,3,556,278,0,3442,555,1,0,0,0,3443,3452,5,25,0,0,3444,3449,3,558,279,0,3445,3446,5,24,0,0,3446,3448,3,558,279,0,3447,3445,1,0,0,0,3448,3451,1,0,0,0,3449,3447,1,0,0,0,3449,3450,1,0,0,0,3450,3453,1,0,0,0,3451,3449,1,0,0,0,3452,3444,1,0,0,0,3452,3453,1,0,0,0,3453,3454,1,0,0,0,3454,3455,5,26,0,0,3455,557,1,0,0,0,3456,3457,3,824,412,0,3457,3458,5,1,0,0,3458,3459,3,560,280,0,3459,559,1,0,0,0,3460,3463,5,326,0,0,3461,3463,3,888,444,0,3462,3460,1,0,0,0,3462,3461,1,0,0,0,3463,561,1,0,0,0,3464,3465,5,25,0,0,3465,3470,3,564,282,0,3466,3467,5,24,0,0,3467,3469,3,564,282,0,3468,3466,1,0,0,0,3469,3472,1,0,0,0,3470,3468,1,0,0,0,3470,3471,1,0,0,0,3471,3473,1,0,0,0,3472,3470,1,0,0,0,3473,3474,5,26,0,0,3474,3477,1,0,0,0,3475,3477,3,564,282,0,3476,3464,1,0,0,0,3476,3475,1,0,0,0,3477,563,1,0,0,0,3478,3479,5,25,0,0,3479,3484,3,142,71,0,3480,3481,5,24,0,0,3481,3483,3,142,71,0,3482,3480,1,0,0,0,3483,3486,1,0,0,0,3484,3482,1,0,0,0,3484,3485,1,0,0,0,3485,3487,1,0,0,0,3486,3484,1,0,0,0,3487,3488,5,26,0,0,3488,565,1,0,0,0,3489,3493,3,488,244,0,3490,3493,3,490,245,0,3491,3493,3,492,246,0,3492,3489,1,0,0,0,3492,3490,1,0,0,0,3492,3491,1,0,0,0,3493,567,1,0,0,0,3494,3499,5,111,0,0,3495,3500,5,286,0,0,3496,3500,5,289,0,0,3497,3498,5,130,0,0,3498,3500,5,286,0,0,3499,3495,1,0,0,0,3499,3496,1,0,0,0,3499,3497,1,0,0,0,3500,3503,1,0,0,0,3501,3502,5,153,0,0,3502,3504,5,127,0,0,3503,3501,1,0,0,0,3503,3504,1,0,0,0,3504,3505,1,0,0,0,3505,3506,3,676,338,0,3506,569,1,0,0,0,3507,3508,5,86,0,0,3508,3509,5,312,0,0,3509,3513,3,580,290,0,3510,3512,3,582,291,0,3511,3510,1,0,0,0,3512,3515,1,0,0,0,3513,3511,1,0,0,0,3513,3514,1,0,0,0,3514,571,1,0,0,0,3515,3513,1,0,0,0,3516,3517,5,43,0,0,3517,3518,5,312,0,0,3518,3530,3,580,290,0,3519,3521,5,322,0,0,3520,3519,1,0,0,0,3520,3521,1,0,0,0,3521,3523,1,0,0,0,3522,3524,3,582,291,0,3523,3522,1,0,0,0,3524,3525,1,0,0,0,3525,3523,1,0,0,0,3525,3526,1,0,0,0,3526,3531,1,0,0,0,3527,3528,5,243,0,0,3528,3529,5,295,0,0,3529,3531,3,580,290,0,3530,3520,1,0,0,0,3530,3527,1,0,0,0,3531,573,1,0,0,0,3532,3533,5,86,0,0,3533,3534,5,147,0,0,3534,3548,3,580,290,0,3535,3536,5,322,0,0,3536,3537,5,312,0,0,3537,3542,3,580,290,0,3538,3539,5,24,0,0,3539,3541,3,580,290,0,3540,3538,1,0,0,0,3541,3544,1,0,0,0,3542,3540,1,0,0,0,3542,3543,1,0,0,0,3543,3546,1,0,0,0,3544,3542,1,0,0,0,3545,3547,5,24,0,0,3546,3545,1,0,0,0,3546,3547,1,0,0,0,3547,3549,1,0,0,0,3548,3535,1,0,0,0,3548,3549,1,0,0,0,3549,575,1,0,0,0,3550,3551,5,43,0,0,3551,3552,5,147,0,0,3552,3569,3,580,290,0,3553,3554,7,18,0,0,3554,3555,5,312,0,0,3555,3560,3,580,290,0,3556,3557,5,24,0,0,3557,3559,3,580,290,0,3558,3556,1,0,0,0,3559,3562,1,0,0,0,3560,3558,1,0,0,0,3560,3561,1,0,0,0,3561,3564,1,0,0,0,3562,3560,1,0,0,0,3563,3565,5,24,0,0,3564,3563,1,0,0,0,3564,3565,1,0,0,0,3565,3570,1,0,0,0,3566,3567,5,243,0,0,3567,3568,5,295,0,0,3568,3570,3,580,290,0,3569,3553,1,0,0,0,3569,3566,1,0,0,0,3570,577,1,0,0,0,3571,3572,5,111,0,0,3572,3575,7,19,0,0,3573,3574,5,153,0,0,3574,3576,5,127,0,0,3575,3573,1,0,0,0,3575,3576,1,0,0,0,3576,3577,1,0,0,0,3577,3582,3,580,290,0,3578,3579,5,24,0,0,3579,3581,3,580,290,0,3580,3578,1,0,0,0,3581,3584,1,0,0,0,3582,3580,1,0,0,0,3582,3583,1,0,0,0,3583,3586,1,0,0,0,3584,3582,1,0,0,0,3585,3587,5,24,0,0,3586,3585,1,0,0,0,3586,3587,1,0,0,0,3587,579,1,0,0,0,3588,3591,3,826,413,0,3589,3591,3,144,72,0,3590,3588,1,0,0,0,3590,3589,1,0,0,0,3591,581,1,0,0,0,3592,3595,3,584,292,0,3593,3595,3,590,295,0,3594,3592,1,0,0,0,3594,3593,1,0,0,0,3595,583,1,0,0,0,3596,3599,3,586,293,0,3597,3599,3,588,294,0,3598,3596,1,0,0,0,3598,3597,1,0,0,0,3599,585,1,0,0,0,3600,3602,5,116,0,0,3601,3600,1,0,0,0,3601,3602,1,0,0,0,3602,3603,1,0,0,0,3603,3604,5,220,0,0,3604,3605,3,14,7,0,3605,587,1,0,0,0,3606,3607,5,150,0,0,3607,3608,3,14,7,0,3608,589,1,0,0,0,3609,3610,7,20,0,0,3610,591,1,0,0,0,3611,3612,5,146,0,0,3612,3613,3,600,300,0,3613,3614,5,207,0,0,3614,3619,3,828,414,0,3615,3616,5,24,0,0,3616,3618,3,828,414,0,3617,3615,1,0,0,0,3618,3621,1,0,0,0,3619,3617,1,0,0,0,3619,3620,1,0,0,0,3620,3622,1,0,0,0,3621,3619,1,0,0,0,3622,3623,5,295,0,0,3623,3628,3,580,290,0,3624,3625,5,24,0,0,3625,3627,3,580,290,0,3626,3624,1,0,0,0,3627,3630,1,0,0,0,3628,3626,1,0,0,0,3628,3629,1,0,0,0,3629,3632,1,0,0,0,3630,3628,1,0,0,0,3631,3633,5,24,0,0,3632,3631,1,0,0,0,3632,3633,1,0,0,0,3633,3637,1,0,0,0,3634,3635,5,322,0,0,3635,3636,5,146,0,0,3636,3638,5,210,0,0,3637,3634,1,0,0,0,3637,3638,1,0,0,0,3638,593,1,0,0,0,3639,3643,5,257,0,0,3640,3641,5,146,0,0,3641,3642,5,210,0,0,3642,3644,5,139,0,0,3643,3640,1,0,0,0,3643,3644,1,0,0,0,3644,3645,1,0,0,0,3645,3646,3,600,300,0,3646,3647,5,207,0,0,3647,3652,3,828,414,0,3648,3649,5,24,0,0,3649,3651,3,828,414,0,3650,3648,1,0,0,0,3651,3654,1,0,0,0,3652,3650,1,0,0,0,3652,3653,1,0,0,0,3653,3655,1,0,0,0,3654,3652,1,0,0,0,3655,3656,5,141,0,0,3656,3661,3,580,290,0,3657,3658,5,24,0,0,3658,3660,3,580,290,0,3659,3657,1,0,0,0,3660,3663,1,0,0,0,3661,3659,1,0,0,0,3661,3662,1,0,0,0,3662,595,1,0,0,0,3663,3661,1,0,0,0,3664,3689,5,82,0,0,3665,3689,5,183,0,0,3666,3689,5,167,0,0,3667,3689,5,186,0,0,3668,3689,5,111,0,0,3669,3689,5,146,0,0,3670,3671,5,193,0,0,3671,3689,7,21,0,0,3672,3673,7,22,0,0,3673,3689,5,262,0,0,3674,3675,7,23,0,0,3675,3689,5,266,0,0,3676,3678,5,269,0,0,3677,3679,7,24,0,0,3678,3677,1,0,0,0,3678,3679,1,0,0,0,3679,3689,1,0,0,0,3680,3682,7,25,0,0,3681,3683,5,180,0,0,3682,3681,1,0,0,0,3682,3683,1,0,0,0,3683,3689,1,0,0,0,3684,3686,5,86,0,0,3685,3687,7,26,0,0,3686,3685,1,0,0,0,3686,3687,1,0,0,0,3687,3689,1,0,0,0,3688,3664,1,0,0,0,3688,3665,1,0,0,0,3688,3666,1,0,0,0,3688,3667,1,0,0,0,3688,3668,1,0,0,0,3688,3669,1,0,0,0,3688,3670,1,0,0,0,3688,3672,1,0,0,0,3688,3674,1,0,0,0,3688,3676,1,0,0,0,3688,3680,1,0,0,0,3688,3684,1,0,0,0,3689,597,1,0,0,0,3690,3693,3,596,298,0,3691,3693,5,326,0,0,3692,3690,1,0,0,0,3692,3691,1,0,0,0,3693,599,1,0,0,0,3694,3699,3,598,299,0,3695,3696,5,24,0,0,3696,3698,3,598,299,0,3697,3695,1,0,0,0,3698,3701,1,0,0,0,3699,3697,1,0,0,0,3699,3700,1,0,0,0,3700,3703,1,0,0,0,3701,3699,1,0,0,0,3702,3704,5,24,0,0,3703,3702,1,0,0,0,3703,3704,1,0,0,0,3704,3710,1,0,0,0,3705,3707,5,42,0,0,3706,3708,5,231,0,0,3707,3706,1,0,0,0,3707,3708,1,0,0,0,3708,3710,1,0,0,0,3709,3694,1,0,0,0,3709,3705,1,0,0,0,3710,601,1,0,0,0,3711,3712,5,86,0,0,3712,3713,5,248,0,0,3713,3714,5,226,0,0,3714,3715,3,672,336,0,3715,3716,3,456,228,0,3716,603,1,0,0,0,3717,3718,5,43,0,0,3718,3719,5,248,0,0,3719,3720,5,226,0,0,3720,3721,3,672,336,0,3721,3726,3,606,303,0,3722,3723,5,24,0,0,3723,3725,3,606,303,0,3724,3722,1,0,0,0,3725,3728,1,0,0,0,3726,3724,1,0,0,0,3726,3727,1,0,0,0,3727,605,1,0,0,0,3728,3726,1,0,0,0,3729,3732,3,490,245,0,3730,3732,3,492,246,0,3731,3729,1,0,0,0,3731,3730,1,0,0,0,3732,607,1,0,0,0,3733,3734,5,111,0,0,3734,3735,5,248,0,0,3735,3736,5,226,0,0,3736,3737,3,672,336,0,3737,609,1,0,0,0,3738,3739,5,86,0,0,3739,3740,5,248,0,0,3740,3741,5,226,0,0,3741,3742,5,74,0,0,3742,3743,3,672,336,0,3743,3744,3,456,228,0,3744,611,1,0,0,0,3745,3746,5,43,0,0,3746,3747,5,248,0,0,3747,3748,5,226,0,0,3748,3749,5,74,0,0,3749,3750,3,672,336,0,3750,3755,3,614,307,0,3751,3752,5,24,0,0,3752,3754,3,614,307,0,3753,3751,1,0,0,0,3754,3757,1,0,0,0,3755,3753,1,0,0,0,3755,3756,1,0,0,0,3756,613,1,0,0,0,3757,3755,1,0,0,0,3758,3761,3,490,245,0,3759,3761,3,492,246,0,3760,3758,1,0,0,0,3760,3759,1,0,0,0,3761,615,1,0,0,0,3762,3763,5,111,0,0,3763,3764,5,248,0,0,3764,3765,5,226,0,0,3765,3766,5,74,0,0,3766,3767,3,672,336,0,3767,617,1,0,0,0,3768,3769,5,86,0,0,3769,3770,5,53,0,0,3770,3771,5,246,0,0,3771,3772,3,672,336,0,3772,3773,5,139,0,0,3773,3778,3,620,310,0,3774,3775,5,24,0,0,3775,3777,3,620,310,0,3776,3774,1,0,0,0,3777,3780,1,0,0,0,3778,3776,1,0,0,0,3778,3779,1,0,0,0,3779,3781,1,0,0,0,3780,3778,1,0,0,0,3781,3782,5,322,0,0,3782,3783,5,25,0,0,3783,3784,3,622,311,0,3784,3785,5,26,0,0,3785,619,1,0,0,0,3786,3787,3,672,336,0,3787,3788,3,898,449,0,3788,621,1,0,0,0,3789,3794,3,624,312,0,3790,3791,5,24,0,0,3791,3793,3,624,312,0,3792,3790,1,0,0,0,3793,3796,1,0,0,0,3794,3792,1,0,0,0,3794,3795,1,0,0,0,3795,623,1,0,0,0,3796,3794,1,0,0,0,3797,3798,3,824,412,0,3798,3799,5,1,0,0,3799,3800,3,14,7,0,3800,625,1,0,0,0,3801,3802,5,43,0,0,3802,3803,5,53,0,0,3803,3804,5,246,0,0,3804,3805,3,672,336,0,3805,3810,3,628,314,0,3806,3807,5,24,0,0,3807,3809,3,628,314,0,3808,3806,1,0,0,0,3809,3812,1,0,0,0,3810,3808,1,0,0,0,3810,3811,1,0,0,0,3811,627,1,0,0,0,3812,3810,1,0,0,0,3813,3814,3,630,315,0,3814,629,1,0,0,0,3815,3816,5,271,0,0,3816,3817,5,25,0,0,3817,3818,3,622,311,0,3818,3819,5,26,0,0,3819,631,1,0,0,0,3820,3821,5,111,0,0,3821,3822,5,53,0,0,3822,3823,5,246,0,0,3823,3825,3,672,336,0,3824,3826,5,69,0,0,3825,3824,1,0,0,0,3825,3826,1,0,0,0,3826,633,1,0,0,0,3827,3830,3,80,40,0,3828,3830,3,144,72,0,3829,3827,1,0,0,0,3829,3828,1,0,0,0,3830,635,1,0,0,0,3831,3832,5,86,0,0,3832,3833,5,298,0,0,3833,3834,3,672,336,0,3834,3835,5,141,0,0,3835,3836,3,672,336,0,3836,3837,5,295,0,0,3837,3840,3,672,336,0,3838,3839,5,313,0,0,3839,3841,3,634,317,0,3840,3838,1,0,0,0,3840,3841,1,0,0,0,3841,3842,1,0,0,0,3842,3843,5,322,0,0,3843,3844,5,25,0,0,3844,3845,3,638,319,0,3845,3846,5,26,0,0,3846,637,1,0,0,0,3847,3852,3,640,320,0,3848,3849,5,24,0,0,3849,3851,3,640,320,0,3850,3848,1,0,0,0,3851,3854,1,0,0,0,3852,3850,1,0,0,0,3852,3853,1,0,0,0,3853,639,1,0,0,0,3854,3852,1,0,0,0,3855,3856,3,824,412,0,3856,3857,5,1,0,0,3857,3858,3,14,7,0,3858,641,1,0,0,0,3859,3860,5,43,0,0,3860,3861,5,298,0,0,3861,3862,3,672,336,0,3862,3867,3,644,322,0,3863,3864,5,24,0,0,3864,3866,3,644,322,0,3865,3863,1,0,0,0,3866,3869,1,0,0,0,3867,3865,1,0,0,0,3867,3868,1,0,0,0,3868,643,1,0,0,0,3869,3867,1,0,0,0,3870,3873,3,646,323,0,3871,3873,3,648,324,0,3872,3870,1,0,0,0,3872,3871,1,0,0,0,3873,645,1,0,0,0,3874,3875,5,271,0,0,3875,3876,5,25,0,0,3876,3877,3,638,319,0,3877,3878,5,26,0,0,3878,647,1,0,0,0,3879,3880,5,271,0,0,3880,3881,5,313,0,0,3881,3882,3,634,317,0,3882,649,1,0,0,0,3883,3884,5,111,0,0,3884,3885,5,298,0,0,3885,3887,3,672,336,0,3886,3888,5,69,0,0,3887,3886,1,0,0,0,3887,3888,1,0,0,0,3888,651,1,0,0,0,3889,3894,3,146,73,0,3890,3891,5,24,0,0,3891,3893,3,146,73,0,3892,3890,1,0,0,0,3893,3896,1,0,0,0,3894,3892,1,0,0,0,3894,3895,1,0,0,0,3895,653,1,0,0,0,3896,3894,1,0,0,0,3897,3898,5,100,0,0,3898,3899,7,27,0,0,3899,3900,3,144,72,0,3900,3902,5,25,0,0,3901,3903,3,652,326,0,3902,3901,1,0,0,0,3902,3903,1,0,0,0,3903,3904,1,0,0,0,3904,3905,5,26,0,0,3905,3906,5,49,0,0,3906,3907,3,656,328,0,3907,3908,5,117,0,0,3908,3909,5,100,0,0,3909,655,1,0,0,0,3910,3912,5,22,0,0,3911,3910,1,0,0,0,3912,3915,1,0,0,0,3913,3911,1,0,0,0,3913,3914,1,0,0,0,3914,3934,1,0,0,0,3915,3913,1,0,0,0,3916,3925,3,12,6,0,3917,3919,5,22,0,0,3918,3917,1,0,0,0,3919,3920,1,0,0,0,3920,3918,1,0,0,0,3920,3921,1,0,0,0,3921,3922,1,0,0,0,3922,3924,3,12,6,0,3923,3918,1,0,0,0,3924,3927,1,0,0,0,3925,3923,1,0,0,0,3925,3926,1,0,0,0,3926,3931,1,0,0,0,3927,3925,1,0,0,0,3928,3930,5,22,0,0,3929,3928,1,0,0,0,3930,3933,1,0,0,0,3931,3929,1,0,0,0,3931,3932,1,0,0,0,3932,3935,1,0,0,0,3933,3931,1,0,0,0,3934,3916,1,0,0,0,3934,3935,1,0,0,0,3935,657,1,0,0,0,3936,3938,5,122,0,0,3937,3936,1,0,0,0,3937,3938,1,0,0,0,3938,3939,1,0,0,0,3939,3940,5,153,0,0,3940,3941,3,14,7,0,3941,3944,3,222,111,0,3942,3943,5,113,0,0,3943,3945,3,222,111,0,3944,3942,1,0,0,0,3944,3945,1,0,0,0,3945,659,1,0,0,0,3946,3948,5,122,0,0,3947,3946,1,0,0,0,3947,3948,1,0,0,0,3948,3950,1,0,0,0,3949,3951,5,217,0,0,3950,3949,1,0,0,0,3950,3951,1,0,0,0,3951,3952,1,0,0,0,3952,3953,5,139,0,0,3953,3954,3,144,72,0,3954,3955,5,158,0,0,3955,3956,3,14,7,0,3956,3959,3,222,111,0,3957,3958,5,113,0,0,3958,3960,3,222,111,0,3959,3957,1,0,0,0,3959,3960,1,0,0,0,3960,661,1,0,0,0,3961,3962,3,850,425,0,3962,3963,5,23,0,0,3963,3965,1,0,0,0,3964,3961,1,0,0,0,3964,3965,1,0,0,0,3965,3967,1,0,0,0,3966,3968,5,29,0,0,3967,3966,1,0,0,0,3967,3968,1,0,0,0,3968,3999,1,0,0,0,3969,4e3,3,664,332,0,3970,3971,3,830,415,0,3971,3983,5,25,0,0,3972,3977,3,666,333,0,3973,3974,5,24,0,0,3974,3976,3,666,333,0,3975,3973,1,0,0,0,3976,3979,1,0,0,0,3977,3975,1,0,0,0,3977,3978,1,0,0,0,3978,3981,1,0,0,0,3979,3977,1,0,0,0,3980,3982,5,24,0,0,3981,3980,1,0,0,0,3981,3982,1,0,0,0,3982,3984,1,0,0,0,3983,3972,1,0,0,0,3983,3984,1,0,0,0,3984,3985,1,0,0,0,3985,3986,5,26,0,0,3986,4e3,1,0,0,0,3987,3993,3,144,72,0,3988,3990,5,25,0,0,3989,3991,3,112,56,0,3990,3989,1,0,0,0,3990,3991,1,0,0,0,3991,3992,1,0,0,0,3992,3994,5,26,0,0,3993,3988,1,0,0,0,3993,3994,1,0,0,0,3994,3997,1,0,0,0,3995,3996,5,317,0,0,3996,3998,3,846,423,0,3997,3995,1,0,0,0,3997,3998,1,0,0,0,3998,4e3,1,0,0,0,3999,3969,1,0,0,0,3999,3970,1,0,0,0,3999,3987,1,0,0,0,4e3,4002,1,0,0,0,4001,4003,3,668,334,0,4002,4001,1,0,0,0,4002,4003,1,0,0,0,4003,663,1,0,0,0,4004,4007,3,858,429,0,4005,4006,5,317,0,0,4006,4008,3,846,423,0,4007,4005,1,0,0,0,4007,4008,1,0,0,0,4008,665,1,0,0,0,4009,4011,5,29,0,0,4010,4009,1,0,0,0,4010,4011,1,0,0,0,4011,4012,1,0,0,0,4012,4015,3,128,64,0,4013,4014,5,317,0,0,4014,4016,3,846,423,0,4015,4013,1,0,0,0,4015,4016,1,0,0,0,4016,667,1,0,0,0,4017,4030,5,322,0,0,4018,4031,3,670,335,0,4019,4020,5,25,0,0,4020,4025,3,670,335,0,4021,4022,5,24,0,0,4022,4024,3,670,335,0,4023,4021,1,0,0,0,4024,4027,1,0,0,0,4025,4023,1,0,0,0,4025,4026,1,0,0,0,4026,4028,1,0,0,0,4027,4025,1,0,0,0,4028,4029,5,26,0,0,4029,4031,1,0,0,0,4030,4018,1,0,0,0,4030,4019,1,0,0,0,4031,669,1,0,0,0,4032,4051,3,840,420,0,4033,4049,5,1,0,0,4034,4050,3,160,80,0,4035,4036,5,25,0,0,4036,4041,3,160,80,0,4037,4038,5,24,0,0,4038,4040,3,160,80,0,4039,4037,1,0,0,0,4040,4043,1,0,0,0,4041,4039,1,0,0,0,4041,4042,1,0,0,0,4042,4045,1,0,0,0,4043,4041,1,0,0,0,4044,4046,5,24,0,0,4045,4044,1,0,0,0,4045,4046,1,0,0,0,4046,4047,1,0,0,0,4047,4048,5,26,0,0,4048,4050,1,0,0,0,4049,4034,1,0,0,0,4049,4035,1,0,0,0,4050,4052,1,0,0,0,4051,4033,1,0,0,0,4051,4052,1,0,0,0,4052,4078,1,0,0,0,4053,4055,7,28,0,0,4054,4056,5,1,0,0,4055,4054,1,0,0,0,4055,4056,1,0,0,0,4056,4057,1,0,0,0,4057,4078,3,204,102,0,4058,4060,5,266,0,0,4059,4061,5,1,0,0,4060,4059,1,0,0,0,4060,4061,1,0,0,0,4061,4062,1,0,0,0,4062,4071,5,25,0,0,4063,4068,3,164,82,0,4064,4065,5,24,0,0,4065,4067,3,164,82,0,4066,4064,1,0,0,0,4067,4070,1,0,0,0,4068,4066,1,0,0,0,4068,4069,1,0,0,0,4069,4072,1,0,0,0,4070,4068,1,0,0,0,4071,4063,1,0,0,0,4071,4072,1,0,0,0,4072,4074,1,0,0,0,4073,4075,5,24,0,0,4074,4073,1,0,0,0,4074,4075,1,0,0,0,4075,4076,1,0,0,0,4076,4078,5,26,0,0,4077,4032,1,0,0,0,4077,4053,1,0,0,0,4077,4058,1,0,0,0,4078,671,1,0,0,0,4079,4080,3,850,425,0,4080,4081,5,23,0,0,4081,4083,1,0,0,0,4082,4079,1,0,0,0,4082,4083,1,0,0,0,4083,4084,1,0,0,0,4084,4085,3,856,428,0,4085,673,1,0,0,0,4086,4092,3,672,336,0,4087,4089,5,29,0,0,4088,4087,1,0,0,0,4088,4089,1,0,0,0,4089,4090,1,0,0,0,4090,4092,3,144,72,0,4091,4086,1,0,0,0,4091,4088,1,0,0,0,4092,675,1,0,0,0,4093,4095,3,674,337,0,4094,4096,3,668,334,0,4095,4094,1,0,0,0,4095,4096,1,0,0,0,4096,677,1,0,0,0,4097,4101,3,676,338,0,4098,4099,5,119,0,0,4099,4100,5,67,0,0,4100,4102,3,114,57,0,4101,4098,1,0,0,0,4101,4102,1,0,0,0,4102,679,1,0,0,0,4103,4105,5,60,0,0,4104,4103,1,0,0,0,4104,4105,1,0,0,0,4105,4106,1,0,0,0,4106,4107,5,101,0,0,4107,4108,5,141,0,0,4108,4112,3,676,338,0,4109,4113,3,900,450,0,4110,4111,5,207,0,0,4111,4113,3,368,184,0,4112,4109,1,0,0,0,4112,4110,1,0,0,0,4112,4113,1,0,0,0,4113,4115,1,0,0,0,4114,4116,3,362,181,0,4115,4114,1,0,0,0,4115,4116,1,0,0,0,4116,681,1,0,0,0,4117,4119,5,60,0,0,4118,4117,1,0,0,0,4118,4119,1,0,0,0,4119,4120,1,0,0,0,4120,4121,5,309,0,0,4121,4129,3,676,338,0,4122,4123,5,271,0,0,4123,4125,3,684,342,0,4124,4126,3,900,450,0,4125,4124,1,0,0,0,4125,4126,1,0,0,0,4126,4130,1,0,0,0,4127,4128,5,207,0,0,4128,4130,3,368,184,0,4129,4122,1,0,0,0,4129,4127,1,0,0,0,4130,4132,1,0,0,0,4131,4133,3,362,181,0,4132,4131,1,0,0,0,4132,4133,1,0,0,0,4133,683,1,0,0,0,4134,4137,3,686,343,0,4135,4137,3,692,346,0,4136,4134,1,0,0,0,4136,4135,1,0,0,0,4137,685,1,0,0,0,4138,4143,3,688,344,0,4139,4140,5,24,0,0,4140,4142,3,688,344,0,4141,4139,1,0,0,0,4142,4145,1,0,0,0,4143,4141,1,0,0,0,4143,4144,1,0,0,0,4144,687,1,0,0,0,4145,4143,1,0,0,0,4146,4147,3,690,345,0,4147,4148,5,1,0,0,4148,4149,3,14,7,0,4149,689,1,0,0,0,4150,4151,3,120,60,0,4151,691,1,0,0,0,4152,4153,3,694,347,0,4153,4154,5,1,0,0,4154,4155,5,25,0,0,4155,4156,3,378,189,0,4156,4157,5,26,0,0,4157,693,1,0,0,0,4158,4159,5,25,0,0,4159,4164,3,690,345,0,4160,4161,5,24,0,0,4161,4163,3,690,345,0,4162,4160,1,0,0,0,4163,4166,1,0,0,0,4164,4162,1,0,0,0,4164,4165,1,0,0,0,4165,4167,1,0,0,0,4166,4164,1,0,0,0,4167,4168,5,26,0,0,4168,695,1,0,0,0,4169,4170,5,86,0,0,4170,4174,5,296,0,0,4171,4172,5,153,0,0,4172,4173,5,199,0,0,4173,4175,5,127,0,0,4174,4171,1,0,0,0,4174,4175,1,0,0,0,4175,4176,1,0,0,0,4176,4178,3,742,371,0,4177,4179,3,698,349,0,4178,4177,1,0,0,0,4178,4179,1,0,0,0,4179,4181,1,0,0,0,4180,4182,3,702,351,0,4181,4180,1,0,0,0,4181,4182,1,0,0,0,4182,697,1,0,0,0,4183,4184,5,25,0,0,4184,4189,3,700,350,0,4185,4186,5,24,0,0,4186,4188,3,700,350,0,4187,4185,1,0,0,0,4188,4191,1,0,0,0,4189,4187,1,0,0,0,4189,4190,1,0,0,0,4190,4192,1,0,0,0,4191,4189,1,0,0,0,4192,4193,5,26,0,0,4193,699,1,0,0,0,4194,4195,3,710,355,0,4195,701,1,0,0,0,4196,4197,5,322,0,0,4197,4198,5,25,0,0,4198,4199,3,728,364,0,4199,4200,5,26,0,0,4200,703,1,0,0,0,4201,4202,5,43,0,0,4202,4205,5,296,0,0,4203,4204,5,153,0,0,4204,4206,5,127,0,0,4205,4203,1,0,0,0,4205,4206,1,0,0,0,4206,4207,1,0,0,0,4207,4208,3,742,371,0,4208,4213,3,706,353,0,4209,4210,5,24,0,0,4210,4212,3,706,353,0,4211,4209,1,0,0,0,4212,4215,1,0,0,0,4213,4211,1,0,0,0,4213,4214,1,0,0,0,4214,705,1,0,0,0,4215,4213,1,0,0,0,4216,4222,3,708,354,0,4217,4222,3,712,356,0,4218,4222,3,716,358,0,4219,4222,3,722,361,0,4220,4222,3,724,362,0,4221,4216,1,0,0,0,4221,4217,1,0,0,0,4221,4218,1,0,0,0,4221,4219,1,0,0,0,4221,4220,1,0,0,0,4222,707,1,0,0,0,4223,4224,5,40,0,0,4224,4225,3,710,355,0,4225,709,1,0,0,0,4226,4227,5,84,0,0,4227,4229,3,824,412,0,4228,4230,3,734,367,0,4229,4228,1,0,0,0,4229,4230,1,0,0,0,4230,711,1,0,0,0,4231,4232,5,43,0,0,4232,4233,5,84,0,0,4233,4234,3,744,372,0,4234,4235,3,714,357,0,4235,713,1,0,0,0,4236,4239,3,718,359,0,4237,4239,3,720,360,0,4238,4236,1,0,0,0,4238,4237,1,0,0,0,4239,715,1,0,0,0,4240,4241,5,111,0,0,4241,4242,5,84,0,0,4242,4243,3,744,372,0,4243,717,1,0,0,0,4244,4245,5,271,0,0,4245,4246,5,25,0,0,4246,4247,3,736,368,0,4247,4248,5,26,0,0,4248,719,1,0,0,0,4249,4250,5,247,0,0,4250,4251,5,25,0,0,4251,4256,3,824,412,0,4252,4253,5,24,0,0,4253,4255,3,824,412,0,4254,4252,1,0,0,0,4255,4258,1,0,0,0,4256,4254,1,0,0,0,4256,4257,1,0,0,0,4257,4259,1,0,0,0,4258,4256,1,0,0,0,4259,4260,5,26,0,0,4260,721,1,0,0,0,4261,4262,5,271,0,0,4262,4263,5,25,0,0,4263,4264,3,728,364,0,4264,4265,5,26,0,0,4265,723,1,0,0,0,4266,4267,5,247,0,0,4267,4268,5,25,0,0,4268,4273,3,824,412,0,4269,4270,5,24,0,0,4270,4272,3,842,421,0,4271,4269,1,0,0,0,4272,4275,1,0,0,0,4273,4271,1,0,0,0,4273,4274,1,0,0,0,4274,4276,1,0,0,0,4275,4273,1,0,0,0,4276,4277,5,26,0,0,4277,725,1,0,0,0,4278,4279,5,111,0,0,4279,4282,5,296,0,0,4280,4281,5,153,0,0,4281,4283,5,127,0,0,4282,4280,1,0,0,0,4282,4283,1,0,0,0,4283,4284,1,0,0,0,4284,4285,3,742,371,0,4285,727,1,0,0,0,4286,4291,3,730,365,0,4287,4288,5,24,0,0,4288,4290,3,730,365,0,4289,4287,1,0,0,0,4290,4293,1,0,0,0,4291,4289,1,0,0,0,4291,4292,1,0,0,0,4292,729,1,0,0,0,4293,4291,1,0,0,0,4294,4295,3,824,412,0,4295,4296,5,1,0,0,4296,4297,3,732,366,0,4297,731,1,0,0,0,4298,4299,3,14,7,0,4299,733,1,0,0,0,4300,4301,5,322,0,0,4301,4302,5,25,0,0,4302,4303,3,736,368,0,4303,4304,5,26,0,0,4304,735,1,0,0,0,4305,4310,3,738,369,0,4306,4307,5,24,0,0,4307,4309,3,738,369,0,4308,4306,1,0,0,0,4309,4312,1,0,0,0,4310,4308,1,0,0,0,4310,4311,1,0,0,0,4311,737,1,0,0,0,4312,4310,1,0,0,0,4313,4314,3,824,412,0,4314,4315,5,1,0,0,4315,4316,3,740,370,0,4316,739,1,0,0,0,4317,4318,3,14,7,0,4318,741,1,0,0,0,4319,4320,3,850,425,0,4320,4321,5,23,0,0,4321,4323,1,0,0,0,4322,4319,1,0,0,0,4322,4323,1,0,0,0,4323,4324,1,0,0,0,4324,4325,3,824,412,0,4325,743,1,0,0,0,4326,4327,3,842,421,0,4327,745,1,0,0,0,4328,4329,5,249,0,0,4329,4333,5,202,0,0,4330,4331,5,154,0,0,4331,4333,5,202,0,0,4332,4328,1,0,0,0,4332,4330,1,0,0,0,4333,747,1,0,0,0,4334,4335,5,134,0,0,4335,4336,5,25,0,0,4336,4337,3,900,450,0,4337,4338,5,26,0,0,4338,749,1,0,0,0,4339,4342,3,752,376,0,4340,4342,3,762,381,0,4341,4339,1,0,0,0,4341,4340,1,0,0,0,4342,751,1,0,0,0,4343,4344,3,834,417,0,4344,753,1,0,0,0,4345,4346,5,321,0,0,4346,4347,3,756,378,0,4347,755,1,0,0,0,4348,4353,3,758,379,0,4349,4350,5,24,0,0,4350,4352,3,758,379,0,4351,4349,1,0,0,0,4352,4355,1,0,0,0,4353,4351,1,0,0,0,4353,4354,1,0,0,0,4354,757,1,0,0,0,4355,4353,1,0,0,0,4356,4357,3,760,380,0,4357,4358,5,49,0,0,4358,4359,3,762,381,0,4359,759,1,0,0,0,4360,4361,3,752,376,0,4361,761,1,0,0,0,4362,4363,5,25,0,0,4363,4364,3,764,382,0,4364,4365,5,26,0,0,4365,763,1,0,0,0,4366,4368,3,766,383,0,4367,4366,1,0,0,0,4367,4368,1,0,0,0,4368,4370,1,0,0,0,4369,4371,3,768,384,0,4370,4369,1,0,0,0,4370,4371,1,0,0,0,4371,4373,1,0,0,0,4372,4374,3,770,385,0,4373,4372,1,0,0,0,4373,4374,1,0,0,0,4374,4376,1,0,0,0,4375,4377,3,772,386,0,4376,4375,1,0,0,0,4376,4377,1,0,0,0,4377,765,1,0,0,0,4378,4379,3,752,376,0,4379,767,1,0,0,0,4380,4382,5,218,0,0,4381,4383,5,79,0,0,4382,4381,1,0,0,0,4382,4383,1,0,0,0,4383,4384,1,0,0,0,4384,4385,5,67,0,0,4385,4386,3,130,65,0,4386,769,1,0,0,0,4387,4388,3,314,157,0,4388,771,1,0,0,0,4389,4390,3,774,387,0,4390,4392,3,776,388,0,4391,4393,3,782,391,0,4392,4391,1,0,0,0,4392,4393,1,0,0,0,4393,773,1,0,0,0,4394,4395,7,29,0,0,4395,775,1,0,0,0,4396,4399,3,780,390,0,4397,4399,3,778,389,0,4398,4396,1,0,0,0,4398,4397,1,0,0,0,4399,777,1,0,0,0,4400,4401,5,65,0,0,4401,4402,3,780,390,0,4402,4403,5,45,0,0,4403,4404,3,780,390,0,4404,779,1,0,0,0,4405,4406,5,89,0,0,4406,4413,5,262,0,0,4407,4410,3,14,7,0,4408,4410,5,303,0,0,4409,4407,1,0,0,0,4409,4408,1,0,0,0,4410,4411,1,0,0,0,4411,4413,7,30,0,0,4412,4405,1,0,0,0,4412,4409,1,0,0,0,4413,781,1,0,0,0,4414,4415,5,124,0,0,4415,4416,5,89,0,0,4416,4425,5,262,0,0,4417,4418,5,124,0,0,4418,4425,5,147,0,0,4419,4420,5,124,0,0,4420,4425,5,294,0,0,4421,4422,5,124,0,0,4422,4423,5,197,0,0,4423,4425,5,214,0,0,4424,4414,1,0,0,0,4424,4417,1,0,0,0,4424,4419,1,0,0,0,4424,4421,1,0,0,0,4425,783,1,0,0,0,4426,4427,5,311,0,0,4427,4428,3,850,425,0,4428,785,1,0,0,0,4429,4430,5,25,0,0,4430,4431,3,232,116,0,4431,4432,5,26,0,0,4432,4435,1,0,0,0,4433,4435,3,234,117,0,4434,4429,1,0,0,0,4434,4433,1,0,0,0,4435,787,1,0,0,0,4436,4437,3,148,74,0,4437,4440,5,1,0,0,4438,4441,3,14,7,0,4439,4441,3,786,393,0,4440,4438,1,0,0,0,4440,4439,1,0,0,0,4441,789,1,0,0,0,4442,4443,5,78,0,0,4443,791,1,0,0,0,4444,4445,5,260,0,0,4445,793,1,0,0,0,4446,4451,3,676,338,0,4447,4448,5,25,0,0,4448,4449,3,124,62,0,4449,4450,5,26,0,0,4450,4452,1,0,0,0,4451,4447,1,0,0,0,4451,4452,1,0,0,0,4452,795,1,0,0,0,4453,4458,3,794,397,0,4454,4455,5,24,0,0,4455,4457,3,794,397,0,4456,4454,1,0,0,0,4457,4460,1,0,0,0,4458,4456,1,0,0,0,4458,4459,1,0,0,0,4459,4462,1,0,0,0,4460,4458,1,0,0,0,4461,4463,5,24,0,0,4462,4461,1,0,0,0,4462,4463,1,0,0,0,4463,797,1,0,0,0,4464,4465,5,44,0,0,4465,4466,3,796,398,0,4466,799,1,0,0,0,4467,4468,5,43,0,0,4468,4471,5,275,0,0,4469,4470,5,153,0,0,4470,4472,5,127,0,0,4471,4469,1,0,0,0,4471,4472,1,0,0,0,4472,4473,1,0,0,0,4473,4475,3,672,336,0,4474,4476,3,802,401,0,4475,4474,1,0,0,0,4476,4477,1,0,0,0,4477,4475,1,0,0,0,4477,4478,1,0,0,0,4478,801,1,0,0,0,4479,4481,5,277,0,0,4480,4482,5,322,0,0,4481,4480,1,0,0,0,4481,4482,1,0,0,0,4482,4483,1,0,0,0,4483,4496,3,888,444,0,4484,4486,5,250,0,0,4485,4487,5,322,0,0,4486,4485,1,0,0,0,4486,4487,1,0,0,0,4487,4488,1,0,0,0,4488,4496,3,888,444,0,4489,4496,5,250,0,0,4490,4492,5,159,0,0,4491,4493,5,67,0,0,4492,4491,1,0,0,0,4492,4493,1,0,0,0,4493,4494,1,0,0,0,4494,4496,3,888,444,0,4495,4479,1,0,0,0,4495,4484,1,0,0,0,4495,4489,1,0,0,0,4495,4490,1,0,0,0,4496,803,1,0,0,0,4497,4498,7,31,0,0,4498,805,1,0,0,0,4499,4502,3,804,402,0,4500,4502,3,862,431,0,4501,4499,1,0,0,0,4501,4500,1,0,0,0,4502,807,1,0,0,0,4503,4511,3,804,402,0,4504,4511,3,880,440,0,4505,4511,3,864,432,0,4506,4511,3,868,434,0,4507,4511,3,872,436,0,4508,4511,3,874,437,0,4509,4511,3,876,438,0,4510,4503,1,0,0,0,4510,4504,1,0,0,0,4510,4505,1,0,0,0,4510,4506,1,0,0,0,4510,4507,1,0,0,0,4510,4508,1,0,0,0,4510,4509,1,0,0,0,4511,809,1,0,0,0,4512,4519,3,804,402,0,4513,4519,3,880,440,0,4514,4519,3,870,435,0,4515,4519,3,872,436,0,4516,4519,3,874,437,0,4517,4519,3,876,438,0,4518,4512,1,0,0,0,4518,4513,1,0,0,0,4518,4514,1,0,0,0,4518,4515,1,0,0,0,4518,4516,1,0,0,0,4518,4517,1,0,0,0,4519,811,1,0,0,0,4520,4526,3,804,402,0,4521,4526,3,880,440,0,4522,4526,3,870,435,0,4523,4526,3,874,437,0,4524,4526,3,876,438,0,4525,4520,1,0,0,0,4525,4521,1,0,0,0,4525,4522,1,0,0,0,4525,4523,1,0,0,0,4525,4524,1,0,0,0,4526,813,1,0,0,0,4527,4536,3,804,402,0,4528,4536,3,880,440,0,4529,4536,3,864,432,0,4530,4536,3,866,433,0,4531,4536,3,868,434,0,4532,4536,3,870,435,0,4533,4536,3,872,436,0,4534,4536,3,876,438,0,4535,4527,1,0,0,0,4535,4528,1,0,0,0,4535,4529,1,0,0,0,4535,4530,1,0,0,0,4535,4531,1,0,0,0,4535,4532,1,0,0,0,4535,4533,1,0,0,0,4535,4534,1,0,0,0,4536,815,1,0,0,0,4537,4545,3,804,402,0,4538,4545,3,880,440,0,4539,4545,3,864,432,0,4540,4545,3,868,434,0,4541,4545,3,872,436,0,4542,4545,3,874,437,0,4543,4545,3,876,438,0,4544,4537,1,0,0,0,4544,4538,1,0,0,0,4544,4539,1,0,0,0,4544,4540,1,0,0,0,4544,4541,1,0,0,0,4544,4542,1,0,0,0,4544,4543,1,0,0,0,4545,817,1,0,0,0,4546,4554,3,804,402,0,4547,4554,3,880,440,0,4548,4554,3,866,433,0,4549,4554,3,870,435,0,4550,4554,3,872,436,0,4551,4554,3,874,437,0,4552,4554,3,876,438,0,4553,4546,1,0,0,0,4553,4547,1,0,0,0,4553,4548,1,0,0,0,4553,4549,1,0,0,0,4553,4550,1,0,0,0,4553,4551,1,0,0,0,4553,4552,1,0,0,0,4554,819,1,0,0,0,4555,4564,3,804,402,0,4556,4564,3,880,440,0,4557,4564,3,864,432,0,4558,4564,3,866,433,0,4559,4564,3,868,434,0,4560,4564,3,870,435,0,4561,4564,3,872,436,0,4562,4564,3,874,437,0,4563,4555,1,0,0,0,4563,4556,1,0,0,0,4563,4557,1,0,0,0,4563,4558,1,0,0,0,4563,4559,1,0,0,0,4563,4560,1,0,0,0,4563,4561,1,0,0,0,4563,4562,1,0,0,0,4564,821,1,0,0,0,4565,4568,3,804,402,0,4566,4568,3,878,439,0,4567,4565,1,0,0,0,4567,4566,1,0,0,0,4568,823,1,0,0,0,4569,4572,3,806,403,0,4570,4572,5,326,0,0,4571,4569,1,0,0,0,4571,4570,1,0,0,0,4572,825,1,0,0,0,4573,4576,3,852,426,0,4574,4576,5,326,0,0,4575,4573,1,0,0,0,4575,4574,1,0,0,0,4576,827,1,0,0,0,4577,4580,3,808,404,0,4578,4580,5,326,0,0,4579,4577,1,0,0,0,4579,4578,1,0,0,0,4580,829,1,0,0,0,4581,4584,3,810,405,0,4582,4584,5,326,0,0,4583,4581,1,0,0,0,4583,4582,1,0,0,0,4584,831,1,0,0,0,4585,4588,3,812,406,0,4586,4588,5,326,0,0,4587,4585,1,0,0,0,4587,4586,1,0,0,0,4588,833,1,0,0,0,4589,4592,3,814,407,0,4590,4592,5,326,0,0,4591,4589,1,0,0,0,4591,4590,1,0,0,0,4592,835,1,0,0,0,4593,4596,3,816,408,0,4594,4596,5,326,0,0,4595,4593,1,0,0,0,4595,4594,1,0,0,0,4596,837,1,0,0,0,4597,4600,3,818,409,0,4598,4600,5,326,0,0,4599,4597,1,0,0,0,4599,4598,1,0,0,0,4600,839,1,0,0,0,4601,4604,3,820,410,0,4602,4604,5,326,0,0,4603,4601,1,0,0,0,4603,4602,1,0,0,0,4604,841,1,0,0,0,4605,4608,3,804,402,0,4606,4608,5,326,0,0,4607,4605,1,0,0,0,4607,4606,1,0,0,0,4608,843,1,0,0,0,4609,4612,3,822,411,0,4610,4612,5,326,0,0,4611,4609,1,0,0,0,4611,4610,1,0,0,0,4612,845,1,0,0,0,4613,4617,3,824,412,0,4614,4615,5,230,0,0,4615,4617,5,177,0,0,4616,4613,1,0,0,0,4616,4614,1,0,0,0,4617,847,1,0,0,0,4618,4619,3,824,412,0,4619,4620,5,23,0,0,4620,4622,1,0,0,0,4621,4618,1,0,0,0,4621,4622,1,0,0,0,4622,849,1,0,0,0,4623,4624,3,824,412,0,4624,4625,5,28,0,0,4625,4627,1,0,0,0,4626,4623,1,0,0,0,4626,4627,1,0,0,0,4627,4630,1,0,0,0,4628,4631,3,116,58,0,4629,4631,5,19,0,0,4630,4628,1,0,0,0,4630,4629,1,0,0,0,4631,851,1,0,0,0,4632,4635,3,806,403,0,4633,4635,3,882,441,0,4634,4632,1,0,0,0,4634,4633,1,0,0,0,4635,853,1,0,0,0,4636,4637,3,826,413,0,4637,4638,5,23,0,0,4638,4640,1,0,0,0,4639,4636,1,0,0,0,4639,4640,1,0,0,0,4640,855,1,0,0,0,4641,4643,5,29,0,0,4642,4641,1,0,0,0,4642,4643,1,0,0,0,4643,4644,1,0,0,0,4644,4645,3,826,413,0,4645,857,1,0,0,0,4646,4649,3,836,418,0,4647,4649,3,882,441,0,4648,4646,1,0,0,0,4648,4647,1,0,0,0,4649,859,1,0,0,0,4650,4652,5,29,0,0,4651,4650,1,0,0,0,4651,4652,1,0,0,0,4652,4653,1,0,0,0,4653,4654,3,858,429,0,4654,861,1,0,0,0,4655,4664,3,880,440,0,4656,4664,3,864,432,0,4657,4664,3,866,433,0,4658,4664,3,868,434,0,4659,4664,3,870,435,0,4660,4664,3,872,436,0,4661,4664,3,874,437,0,4662,4664,3,876,438,0,4663,4655,1,0,0,0,4663,4656,1,0,0,0,4663,4657,1,0,0,0,4663,4658,1,0,0,0,4663,4659,1,0,0,0,4663,4660,1,0,0,0,4663,4661,1,0,0,0,4663,4662,1,0,0,0,4664,863,1,0,0,0,4665,4666,7,32,0,0,4666,865,1,0,0,0,4667,4668,7,33,0,0,4668,867,1,0,0,0,4669,4670,7,34,0,0,4670,869,1,0,0,0,4671,4672,5,76,0,0,4672,871,1,0,0,0,4673,4674,5,79,0,0,4674,873,1,0,0,0,4675,4676,7,29,0,0,4676,875,1,0,0,0,4677,4678,7,28,0,0,4678,877,1,0,0,0,4679,4680,7,35,0,0,4680,879,1,0,0,0,4681,4682,7,36,0,0,4682,881,1,0,0,0,4683,4684,7,37,0,0,4684,883,1,0,0,0,4685,4686,7,38,0,0,4686,885,1,0,0,0,4687,4688,5,331,0,0,4688,887,1,0,0,0,4689,4690,7,39,0,0,4690,889,1,0,0,0,4691,4697,3,892,446,0,4692,4693,5,227,0,0,4693,4694,5,46,0,0,4694,4695,5,329,0,0,4695,4697,3,4,2,0,4696,4691,1,0,0,0,4696,4692,1,0,0,0,4697,891,1,0,0,0,4698,4700,5,22,0,0,4699,4698,1,0,0,0,4700,4703,1,0,0,0,4701,4699,1,0,0,0,4701,4702,1,0,0,0,4702,4704,1,0,0,0,4703,4701,1,0,0,0,4704,4713,3,894,447,0,4705,4707,5,22,0,0,4706,4705,1,0,0,0,4707,4708,1,0,0,0,4708,4706,1,0,0,0,4708,4709,1,0,0,0,4709,4710,1,0,0,0,4710,4712,3,894,447,0,4711,4706,1,0,0,0,4712,4715,1,0,0,0,4713,4711,1,0,0,0,4713,4714,1,0,0,0,4714,4719,1,0,0,0,4715,4713,1,0,0,0,4716,4718,5,22,0,0,4717,4716,1,0,0,0,4718,4721,1,0,0,0,4719,4717,1,0,0,0,4719,4720,1,0,0,0,4720,4722,1,0,0,0,4721,4719,1,0,0,0,4722,4723,5,0,0,1,4723,893,1,0,0,0,4724,4727,5,128,0,0,4725,4726,5,233,0,0,4726,4728,5,225,0,0,4727,4725,1,0,0,0,4727,4728,1,0,0,0,4728,4730,1,0,0,0,4729,4724,1,0,0,0,4729,4730,1,0,0,0,4730,4731,1,0,0,0,4731,4732,3,896,448,0,4732,895,1,0,0,0,4733,4747,3,224,112,0,4734,4747,3,232,116,0,4735,4747,3,788,394,0,4736,4747,3,784,392,0,4737,4747,3,366,183,0,4738,4747,3,210,105,0,4739,4747,3,214,107,0,4740,4747,3,216,108,0,4741,4747,3,222,111,0,4742,4747,3,654,327,0,4743,4747,3,658,329,0,4744,4747,3,660,330,0,4745,4747,3,370,185,0,4746,4733,1,0,0,0,4746,4734,1,0,0,0,4746,4735,1,0,0,0,4746,4736,1,0,0,0,4746,4737,1,0,0,0,4746,4738,1,0,0,0,4746,4739,1,0,0,0,4746,4740,1,0,0,0,4746,4741,1,0,0,0,4746,4742,1,0,0,0,4746,4743,1,0,0,0,4746,4744,1,0,0,0,4746,4745,1,0,0,0,4747,897,1,0,0,0,4748,4749,5,49,0,0,4749,4750,3,672,336,0,4750,899,1,0,0,0,4751,4752,5,320,0,0,4752,4753,3,14,7,0,4753,901,1,0,0,0,523,907,912,919,924,930,938,946,953,957,965,970,975,977,1041,1048,1052,1059,1067,1072,1076,1082,1088,1091,1095,1103,1107,1110,1114,1125,1130,1132,1141,1162,1167,1176,1178,1185,1193,1201,1208,1218,1220,1224,1229,1233,1239,1245,1249,1253,1256,1263,1269,1273,1278,1281,1295,1300,1303,1317,1324,1335,1346,1366,1372,1377,1381,1395,1397,1404,1410,1421,1429,1435,1442,1450,1463,1469,1473,1476,1478,1486,1494,1500,1506,1512,1515,1524,1533,1540,1548,1561,1568,1572,1579,1583,1588,1595,1602,1605,1612,1616,1626,1649,1655,1659,1666,1672,1679,1683,1687,1693,1698,1707,1710,1716,1721,1729,1736,1758,1762,1764,1768,1777,1781,1783,1787,1796,1800,1838,1842,1862,1865,1871,1891,1896,1902,1907,1910,1914,1941,1949,1952,1959,1972,1976,1988,2001,2006,2013,2017,2024,2033,2042,2050,2054,2058,2065,2067,2070,2075,2080,2084,2091,2098,2102,2105,2109,2113,2115,2126,2135,2140,2146,2151,2154,2158,2162,2165,2169,2173,2181,2185,2189,2193,2196,2199,2203,2206,2209,2214,2217,2220,2223,2237,2239,2250,2260,2270,2273,2280,2304,2315,2321,2325,2329,2333,2337,2341,2345,2349,2355,2362,2372,2383,2396,2412,2422,2442,2448,2455,2462,2470,2479,2516,2518,2521,2526,2530,2534,2540,2546,2550,2555,2560,2562,2566,2571,2574,2576,2580,2591,2602,2613,2617,2621,2625,2628,2632,2635,2641,2650,2653,2667,2673,2686,2693,2698,2705,2712,2721,2726,2734,2749,2755,2763,2772,2776,2785,2797,2804,2812,2833,2841,2850,2860,2869,2874,2881,2891,2896,2905,2909,2913,2916,2919,2922,2925,2933,2938,2949,2956,2969,2977,2982,2989,3002,3013,3023,3029,3038,3055,3078,3098,3109,3117,3127,3132,3136,3142,3180,3192,3234,3242,3245,3249,3253,3263,3276,3289,3294,3306,3317,3322,3325,3329,3333,3337,3340,3353,3357,3369,3383,3398,3413,3416,3426,3429,3437,3449,3452,3462,3470,3476,3484,3492,3499,3503,3513,3520,3525,3530,3542,3546,3548,3560,3564,3569,3575,3582,3586,3590,3594,3598,3601,3619,3628,3632,3637,3643,3652,3661,3678,3682,3686,3688,3692,3699,3703,3707,3709,3726,3731,3755,3760,3778,3794,3810,3825,3829,3840,3852,3867,3872,3887,3894,3902,3913,3920,3925,3931,3934,3937,3944,3947,3950,3959,3964,3967,3977,3981,3983,3990,3993,3997,3999,4002,4007,4010,4015,4025,4030,4041,4045,4049,4051,4055,4060,4068,4071,4074,4077,4082,4088,4091,4095,4101,4104,4112,4115,4118,4125,4129,4132,4136,4143,4164,4174,4178,4181,4189,4205,4213,4221,4229,4238,4256,4273,4282,4291,4310,4322,4332,4341,4353,4367,4370,4373,4376,4382,4392,4398,4409,4412,4424,4434,4440,4451,4458,4462,4471,4477,4481,4486,4492,4495,4501,4510,4518,4525,4535,4544,4553,4563,4567,4571,4575,4579,4583,4587,4591,4595,4599,4603,4607,4611,4616,4621,4626,4630,4634,4639,4642,4648,4651,4663,4696,4701,4708,4713,4719,4727,4729,4746]}static get _ATN(){return e.__ATN||(e.__ATN=(new Be).deserialize(e._serializedATN)),e.__ATN}static{this.vocabulary=new f(e.literalNames,e.symbolicNames,[])}get vocabulary(){return e.vocabulary}static{this.decisionsToDFA=e._ATN.decisionToState.map(((e,t)=>new it(e,t)))}},os=class extends W{static{Si(this,"Sql_queryContext")}constructor(e,t){super(e,t)}sql_stmt_list(){return this.getRuleContext(0,as)}PRAGMA(){return this.getToken(rs.PRAGMA,0)}ANSI(){return this.getToken(rs.ANSI,0)}DIGITS(){return this.getToken(rs.DIGITS,0)}ansi_sql_stmt_list(){return this.getRuleContext(0,cs)}get ruleIndex(){return rs.RULE_sql_query}accept(e){return e.visitSql_query?e.visitSql_query(this):e.visitChildren(this)}},as=class extends W{static{Si(this,"Sql_stmt_listContext")}constructor(e,t){super(e,t)}sql_stmt(e){return void 0===e?this.getRuleContexts(ds):this.getRuleContext(e,ds)}EOF(){return this.getToken(rs.EOF,0)}SEMICOLON(e){return void 0===e?this.getTokens(rs.SEMICOLON):this.getToken(rs.SEMICOLON,e)}get ruleIndex(){return rs.RULE_sql_stmt_list}accept(e){return e.visitSql_stmt_list?e.visitSql_stmt_list(this):e.visitChildren(this)}},cs=class extends W{static{Si(this,"Ansi_sql_stmt_listContext")}constructor(e,t){super(e,t)}EOF(){return this.getToken(rs.EOF,0)}SEMICOLON(e){return void 0===e?this.getTokens(rs.SEMICOLON):this.getToken(rs.SEMICOLON,e)}get ruleIndex(){return rs.RULE_ansi_sql_stmt_list}accept(e){return e.visitAnsi_sql_stmt_list?e.visitAnsi_sql_stmt_list(this):e.visitChildren(this)}},ls=class extends W{static{Si(this,"Lambda_bodyContext")}constructor(e,t){super(e,t)}RETURN(){return this.getToken(rs.RETURN,0)}expr(){return this.getRuleContext(0,gs)}SEMICOLON(e){return void 0===e?this.getTokens(rs.SEMICOLON):this.getToken(rs.SEMICOLON,e)}lambda_stmt(e){return void 0===e?this.getRuleContexts(hs):this.getRuleContext(e,hs)}get ruleIndex(){return rs.RULE_lambda_body}accept(e){return e.visitLambda_body?e.visitLambda_body(this):e.visitChildren(this)}},hs=class extends W{static{Si(this,"Lambda_stmtContext")}constructor(e,t){super(e,t)}named_nodes_stmt(){return this.getRuleContext(0,wh)}import_stmt(){return this.getRuleContext(0,or)}get ruleIndex(){return rs.RULE_lambda_stmt}accept(e){return e.visitLambda_stmt?e.visitLambda_stmt(this):e.visitChildren(this)}},ds=class extends W{static{Si(this,"Sql_stmtContext")}constructor(e,t){super(e,t)}sql_stmt_core(){return this.getRuleContext(0,us)}EXPLAIN(){return this.getToken(rs.EXPLAIN,0)}QUERY(){return this.getToken(rs.QUERY,0)}PLAN(){return this.getToken(rs.PLAN,0)}get ruleIndex(){return rs.RULE_sql_stmt}accept(e){return e.visitSql_stmt?e.visitSql_stmt(this):e.visitChildren(this)}},us=class extends W{static{Si(this,"Sql_stmt_coreContext")}constructor(e,t){super(e,t)}pragma_stmt(){return this.getRuleContext(0,dr)}select_stmt(){return this.getRuleContext(0,mr)}named_nodes_stmt(){return this.getRuleContext(0,wh)}create_table_stmt(){return this.getRuleContext(0,ta)}drop_table_stmt(){return this.getRuleContext(0,Sc)}use_stmt(){return this.getRuleContext(0,Sh)}into_table_stmt(){return this.getRuleContext(0,xo)}commit_stmt(){return this.getRuleContext(0,Rh)}update_stmt(){return this.getRuleContext(0,Rl)}delete_stmt(){return this.getRuleContext(0,wl)}rollback_stmt(){return this.getRuleContext(0,Lh)}declare_stmt(){return this.getRuleContext(0,nr)}import_stmt(){return this.getRuleContext(0,or)}export_stmt(){return this.getRuleContext(0,ar)}alter_table_stmt(){return this.getRuleContext(0,wa)}alter_external_table_stmt(){return this.getRuleContext(0,La)}do_stmt(){return this.getRuleContext(0,hr)}define_action_or_subquery_stmt(){return this.getRuleContext(0,dl)}if_stmt(){return this.getRuleContext(0,gl)}for_stmt(){return this.getRuleContext(0,pl)}values_stmt(){return this.getRuleContext(0,No)}create_user_stmt(){return this.getRuleContext(0,yc)}alter_user_stmt(){return this.getRuleContext(0,wc)}create_group_stmt(){return this.getRuleContext(0,Rc)}alter_group_stmt(){return this.getRuleContext(0,Lc)}drop_role_stmt(){return this.getRuleContext(0,Tc)}create_object_stmt(){return this.getRuleContext(0,zo)}alter_object_stmt(){return this.getRuleContext(0,jo)}drop_object_stmt(){return this.getRuleContext(0,Yo)}create_external_data_source_stmt(){return this.getRuleContext(0,Po)}alter_external_data_source_stmt(){return this.getRuleContext(0,Fo)}drop_external_data_source_stmt(){return this.getRuleContext(0,Ho)}create_replication_stmt(){return this.getRuleContext(0,Yc)}drop_replication_stmt(){return this.getRuleContext(0,el)}create_topic_stmt(){return this.getRuleContext(0,Il)}alter_topic_stmt(){return this.getRuleContext(0,Pl)}drop_topic_stmt(){return this.getRuleContext(0,Yl)}grant_permissions_stmt(){return this.getRuleContext(0,Dc)}revoke_permissions_stmt(){return this.getRuleContext(0,Mc)}alter_table_store_stmt(){return this.getRuleContext(0,xa)}upsert_object_stmt(){return this.getRuleContext(0,Vo)}create_view_stmt(){return this.getRuleContext(0,Bo)}drop_view_stmt(){return this.getRuleContext(0,Wo)}alter_replication_stmt(){return this.getRuleContext(0,Xc)}create_resource_pool_stmt(){return this.getRuleContext(0,Hc)}alter_resource_pool_stmt(){return this.getRuleContext(0,Bc)}drop_resource_pool_stmt(){return this.getRuleContext(0,Vc)}create_backup_collection_stmt(){return this.getRuleContext(0,sa)}alter_backup_collection_stmt(){return this.getRuleContext(0,na)}drop_backup_collection_stmt(){return this.getRuleContext(0,ra)}analyze_stmt(){return this.getRuleContext(0,kh)}create_resource_pool_classifier_stmt(){return this.getRuleContext(0,zc)}alter_resource_pool_classifier_stmt(){return this.getRuleContext(0,Gc)}drop_resource_pool_classifier_stmt(){return this.getRuleContext(0,Kc)}backup_stmt(){return this.getRuleContext(0,fa)}restore_stmt(){return this.getRuleContext(0,_a)}alter_sequence_stmt(){return this.getRuleContext(0,Ah)}create_transfer_stmt(){return this.getRuleContext(0,il)}alter_transfer_stmt(){return this.getRuleContext(0,rl)}drop_transfer_stmt(){return this.getRuleContext(0,ll)}get ruleIndex(){return rs.RULE_sql_stmt_core}accept(e){return e.visitSql_stmt_core?e.visitSql_stmt_core(this):e.visitChildren(this)}},gs=class extends W{static{Si(this,"ExprContext")}constructor(e,t){super(e,t)}or_subexpr(e){return void 0===e?this.getRuleContexts(ps):this.getRuleContext(e,ps)}OR(e){return void 0===e?this.getTokens(rs.OR):this.getToken(rs.OR,e)}type_name_composite(){return this.getRuleContext(0,Jn)}get ruleIndex(){return rs.RULE_expr}accept(e){return e.visitExpr?e.visitExpr(this):e.visitChildren(this)}},ps=class extends W{static{Si(this,"Or_subexprContext")}constructor(e,t){super(e,t)}and_subexpr(e){return void 0===e?this.getRuleContexts(ms):this.getRuleContext(e,ms)}AND(e){return void 0===e?this.getTokens(rs.AND):this.getToken(rs.AND,e)}get ruleIndex(){return rs.RULE_or_subexpr}accept(e){return e.visitOr_subexpr?e.visitOr_subexpr(this):e.visitChildren(this)}},ms=class extends W{static{Si(this,"And_subexprContext")}constructor(e,t){super(e,t)}xor_subexpr(e){return void 0===e?this.getRuleContexts(fs):this.getRuleContext(e,fs)}XOR(e){return void 0===e?this.getTokens(rs.XOR):this.getToken(rs.XOR,e)}get ruleIndex(){return rs.RULE_and_subexpr}accept(e){return e.visitAnd_subexpr?e.visitAnd_subexpr(this):e.visitChildren(this)}},fs=class extends W{static{Si(this,"Xor_subexprContext")}constructor(e,t){super(e,t)}eq_subexpr(){return this.getRuleContext(0,Es)}cond_expr(){return this.getRuleContext(0,vs)}get ruleIndex(){return rs.RULE_xor_subexpr}accept(e){return e.visitXor_subexpr?e.visitXor_subexpr(this):e.visitChildren(this)}},_s=class extends W{static{Si(this,"Distinct_from_opContext")}constructor(e,t){super(e,t)}IS(){return this.getToken(rs.IS,0)}DISTINCT(){return this.getToken(rs.DISTINCT,0)}FROM(){return this.getToken(rs.FROM,0)}NOT(){return this.getToken(rs.NOT,0)}get ruleIndex(){return rs.RULE_distinct_from_op}accept(e){return e.visitDistinct_from_op?e.visitDistinct_from_op(this):e.visitChildren(this)}},vs=class extends W{static{Si(this,"Cond_exprContext")}constructor(e,t){super(e,t)}match_op(){return this.getRuleContext(0,Cs)}eq_subexpr(e){return void 0===e?this.getRuleContexts(Es):this.getRuleContext(e,Es)}NOT(){return this.getToken(rs.NOT,0)}ESCAPE(){return this.getToken(rs.ESCAPE,0)}IN(){return this.getToken(rs.IN,0)}in_expr(){return this.getRuleContext(0,Ys)}COMPACT(){return this.getToken(rs.COMPACT,0)}ISNULL(){return this.getToken(rs.ISNULL,0)}NOTNULL(){return this.getToken(rs.NOTNULL,0)}IS(){return this.getToken(rs.IS,0)}NULL(){return this.getToken(rs.NULL,0)}BETWEEN(){return this.getToken(rs.BETWEEN,0)}AND(){return this.getToken(rs.AND,0)}SYMMETRIC(){return this.getToken(rs.SYMMETRIC,0)}ASYMMETRIC(){return this.getToken(rs.ASYMMETRIC,0)}EQUALS(e){return void 0===e?this.getTokens(rs.EQUALS):this.getToken(rs.EQUALS,e)}EQUALS2(e){return void 0===e?this.getTokens(rs.EQUALS2):this.getToken(rs.EQUALS2,e)}NOT_EQUALS(e){return void 0===e?this.getTokens(rs.NOT_EQUALS):this.getToken(rs.NOT_EQUALS,e)}NOT_EQUALS2(e){return void 0===e?this.getTokens(rs.NOT_EQUALS2):this.getToken(rs.NOT_EQUALS2,e)}distinct_from_op(e){return void 0===e?this.getRuleContexts(_s):this.getRuleContext(e,_s)}get ruleIndex(){return rs.RULE_cond_expr}accept(e){return e.visitCond_expr?e.visitCond_expr(this):e.visitChildren(this)}},Cs=class extends W{static{Si(this,"Match_opContext")}constructor(e,t){super(e,t)}LIKE(){return this.getToken(rs.LIKE,0)}ILIKE(){return this.getToken(rs.ILIKE,0)}GLOB(){return this.getToken(rs.GLOB,0)}REGEXP(){return this.getToken(rs.REGEXP,0)}RLIKE(){return this.getToken(rs.RLIKE,0)}MATCH(){return this.getToken(rs.MATCH,0)}get ruleIndex(){return rs.RULE_match_op}accept(e){return e.visitMatch_op?e.visitMatch_op(this):e.visitChildren(this)}},Es=class extends W{static{Si(this,"Eq_subexprContext")}constructor(e,t){super(e,t)}neq_subexpr(e){return void 0===e?this.getRuleContexts(ws):this.getRuleContext(e,ws)}LESS(e){return void 0===e?this.getTokens(rs.LESS):this.getToken(rs.LESS,e)}LESS_OR_EQ(e){return void 0===e?this.getTokens(rs.LESS_OR_EQ):this.getToken(rs.LESS_OR_EQ,e)}GREATER(e){return void 0===e?this.getTokens(rs.GREATER):this.getToken(rs.GREATER,e)}GREATER_OR_EQ(e){return void 0===e?this.getTokens(rs.GREATER_OR_EQ):this.getToken(rs.GREATER_OR_EQ,e)}get ruleIndex(){return rs.RULE_eq_subexpr}accept(e){return e.visitEq_subexpr?e.visitEq_subexpr(this):e.visitChildren(this)}},bs=class extends W{static{Si(this,"Shift_rightContext")}constructor(e,t){super(e,t)}GREATER(e){return void 0===e?this.getTokens(rs.GREATER):this.getToken(rs.GREATER,e)}get ruleIndex(){return rs.RULE_shift_right}accept(e){return e.visitShift_right?e.visitShift_right(this):e.visitChildren(this)}},Ss=class extends W{static{Si(this,"Rot_rightContext")}constructor(e,t){super(e,t)}GREATER(e){return void 0===e?this.getTokens(rs.GREATER):this.getToken(rs.GREATER,e)}PIPE(){return this.getToken(rs.PIPE,0)}get ruleIndex(){return rs.RULE_rot_right}accept(e){return e.visitRot_right?e.visitRot_right(this):e.visitChildren(this)}},ys=class extends W{static{Si(this,"Double_questionContext")}constructor(e,t){super(e,t)}QUESTION(e){return void 0===e?this.getTokens(rs.QUESTION):this.getToken(rs.QUESTION,e)}get ruleIndex(){return rs.RULE_double_question}accept(e){return e.visitDouble_question?e.visitDouble_question(this):e.visitChildren(this)}},ws=class e extends W{static{Si(this,"Neq_subexprContext")}constructor(e,t){super(e,t)}bit_subexpr(e){return void 0===e?this.getRuleContexts(Rs):this.getRuleContext(e,Rs)}double_question(){return this.getRuleContext(0,ys)}neq_subexpr(){return this.getRuleContext(0,e)}SHIFT_LEFT(e){return void 0===e?this.getTokens(rs.SHIFT_LEFT):this.getToken(rs.SHIFT_LEFT,e)}shift_right(e){return void 0===e?this.getRuleContexts(bs):this.getRuleContext(e,bs)}ROT_LEFT(e){return void 0===e?this.getTokens(rs.ROT_LEFT):this.getToken(rs.ROT_LEFT,e)}rot_right(e){return void 0===e?this.getRuleContexts(Ss):this.getRuleContext(e,Ss)}AMPERSAND(e){return void 0===e?this.getTokens(rs.AMPERSAND):this.getToken(rs.AMPERSAND,e)}PIPE(e){return void 0===e?this.getTokens(rs.PIPE):this.getToken(rs.PIPE,e)}CARET(e){return void 0===e?this.getTokens(rs.CARET):this.getToken(rs.CARET,e)}QUESTION(e){return void 0===e?this.getTokens(rs.QUESTION):this.getToken(rs.QUESTION,e)}get ruleIndex(){return rs.RULE_neq_subexpr}accept(e){return e.visitNeq_subexpr?e.visitNeq_subexpr(this):e.visitChildren(this)}},Rs=class extends W{static{Si(this,"Bit_subexprContext")}constructor(e,t){super(e,t)}add_subexpr(e){return void 0===e?this.getRuleContexts(Ls):this.getRuleContext(e,Ls)}PLUS(e){return void 0===e?this.getTokens(rs.PLUS):this.getToken(rs.PLUS,e)}MINUS(e){return void 0===e?this.getTokens(rs.MINUS):this.getToken(rs.MINUS,e)}get ruleIndex(){return rs.RULE_bit_subexpr}accept(e){return e.visitBit_subexpr?e.visitBit_subexpr(this):e.visitChildren(this)}},Ls=class extends W{static{Si(this,"Add_subexprContext")}constructor(e,t){super(e,t)}mul_subexpr(e){return void 0===e?this.getRuleContexts(Ts):this.getRuleContext(e,Ts)}ASTERISK(e){return void 0===e?this.getTokens(rs.ASTERISK):this.getToken(rs.ASTERISK,e)}SLASH(e){return void 0===e?this.getTokens(rs.SLASH):this.getToken(rs.SLASH,e)}PERCENT(e){return void 0===e?this.getTokens(rs.PERCENT):this.getToken(rs.PERCENT,e)}get ruleIndex(){return rs.RULE_add_subexpr}accept(e){return e.visitAdd_subexpr?e.visitAdd_subexpr(this):e.visitChildren(this)}},Ts=class extends W{static{Si(this,"Mul_subexprContext")}constructor(e,t){super(e,t)}con_subexpr(e){return void 0===e?this.getRuleContexts(xs):this.getRuleContext(e,xs)}DOUBLE_PIPE(e){return void 0===e?this.getTokens(rs.DOUBLE_PIPE):this.getToken(rs.DOUBLE_PIPE,e)}get ruleIndex(){return rs.RULE_mul_subexpr}accept(e){return e.visitMul_subexpr?e.visitMul_subexpr(this):e.visitChildren(this)}},xs=class extends W{static{Si(this,"Con_subexprContext")}constructor(e,t){super(e,t)}unary_subexpr(){return this.getRuleContext(0,Os)}unary_op(){return this.getRuleContext(0,ks)}get ruleIndex(){return rs.RULE_con_subexpr}accept(e){return e.visitCon_subexpr?e.visitCon_subexpr(this):e.visitChildren(this)}},ks=class extends W{static{Si(this,"Unary_opContext")}constructor(e,t){super(e,t)}PLUS(){return this.getToken(rs.PLUS,0)}MINUS(){return this.getToken(rs.MINUS,0)}TILDA(){return this.getToken(rs.TILDA,0)}NOT(){return this.getToken(rs.NOT,0)}get ruleIndex(){return rs.RULE_unary_op}accept(e){return e.visitUnary_op?e.visitUnary_op(this):e.visitChildren(this)}},As=class extends W{static{Si(this,"Unary_subexpr_suffixContext")}constructor(e,t){super(e,t)}COLLATE(){return this.getToken(rs.COLLATE,0)}an_id(){return this.getRuleContext(0,Vh)}key_expr(e){return void 0===e?this.getRuleContexts(Sn):this.getRuleContext(e,Sn)}invoke_expr(e){return void 0===e?this.getRuleContexts(Cn):this.getRuleContext(e,Cn)}DOT(e){return void 0===e?this.getTokens(rs.DOT):this.getToken(rs.DOT,e)}bind_parameter(e){return void 0===e?this.getRuleContexts(Rn):this.getRuleContext(e,Rn)}DIGITS(e){return void 0===e?this.getTokens(rs.DIGITS):this.getToken(rs.DIGITS,e)}an_id_or_type(e){return void 0===e?this.getRuleContexts(zh):this.getRuleContext(e,zh)}get ruleIndex(){return rs.RULE_unary_subexpr_suffix}accept(e){return e.visitUnary_subexpr_suffix?e.visitUnary_subexpr_suffix(this):e.visitChildren(this)}},Ns=class extends W{static{Si(this,"Unary_casual_subexprContext")}constructor(e,t){super(e,t)}unary_subexpr_suffix(){return this.getRuleContext(0,As)}id_expr(){return this.getRuleContext(0,Mh)}atom_expr(){return this.getRuleContext(0,Bs)}get ruleIndex(){return rs.RULE_unary_casual_subexpr}accept(e){return e.visitUnary_casual_subexpr?e.visitUnary_casual_subexpr(this):e.visitChildren(this)}},Is=class extends W{static{Si(this,"In_unary_casual_subexprContext")}constructor(e,t){super(e,t)}unary_subexpr_suffix(){return this.getRuleContext(0,As)}id_expr_in(){return this.getRuleContext(0,Ph)}in_atom_expr(){return this.getRuleContext(0,Ws)}get ruleIndex(){return rs.RULE_in_unary_casual_subexpr}accept(e){return e.visitIn_unary_casual_subexpr?e.visitIn_unary_casual_subexpr(this):e.visitChildren(this)}},Os=class extends W{static{Si(this,"Unary_subexprContext")}constructor(e,t){super(e,t)}unary_casual_subexpr(){return this.getRuleContext(0,Ns)}json_api_expr(){return this.getRuleContext(0,qs)}get ruleIndex(){return rs.RULE_unary_subexpr}accept(e){return e.visitUnary_subexpr?e.visitUnary_subexpr(this):e.visitChildren(this)}},Ds=class extends W{static{Si(this,"In_unary_subexprContext")}constructor(e,t){super(e,t)}in_unary_casual_subexpr(){return this.getRuleContext(0,Is)}json_api_expr(){return this.getRuleContext(0,qs)}get ruleIndex(){return rs.RULE_in_unary_subexpr}accept(e){return e.visitIn_unary_subexpr?e.visitIn_unary_subexpr(this):e.visitChildren(this)}},Ms=class extends W{static{Si(this,"List_literalContext")}constructor(e,t){super(e,t)}LBRACE_SQUARE(){return this.getToken(rs.LBRACE_SQUARE,0)}RBRACE_SQUARE(){return this.getToken(rs.RBRACE_SQUARE,0)}expr_list(){return this.getRuleContext(0,ln)}COMMA(){return this.getToken(rs.COMMA,0)}get ruleIndex(){return rs.RULE_list_literal}accept(e){return e.visitList_literal?e.visitList_literal(this):e.visitChildren(this)}},Ps=class extends W{static{Si(this,"Expr_dict_listContext")}constructor(e,t){super(e,t)}expr(e){return void 0===e?this.getRuleContexts(gs):this.getRuleContext(e,gs)}COLON(e){return void 0===e?this.getTokens(rs.COLON):this.getToken(rs.COLON,e)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_expr_dict_list}accept(e){return e.visitExpr_dict_list?e.visitExpr_dict_list(this):e.visitChildren(this)}},Fs=class extends W{static{Si(this,"Dict_literalContext")}constructor(e,t){super(e,t)}LBRACE_CURLY(){return this.getToken(rs.LBRACE_CURLY,0)}RBRACE_CURLY(){return this.getToken(rs.RBRACE_CURLY,0)}expr_dict_list(){return this.getRuleContext(0,Ps)}COMMA(){return this.getToken(rs.COMMA,0)}get ruleIndex(){return rs.RULE_dict_literal}accept(e){return e.visitDict_literal?e.visitDict_literal(this):e.visitChildren(this)}},Us=class extends W{static{Si(this,"Expr_struct_listContext")}constructor(e,t){super(e,t)}expr(e){return void 0===e?this.getRuleContexts(gs):this.getRuleContext(e,gs)}COLON(e){return void 0===e?this.getTokens(rs.COLON):this.getToken(rs.COLON,e)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_expr_struct_list}accept(e){return e.visitExpr_struct_list?e.visitExpr_struct_list(this):e.visitChildren(this)}},Hs=class extends W{static{Si(this,"Struct_literalContext")}constructor(e,t){super(e,t)}STRUCT_OPEN(){return this.getToken(rs.STRUCT_OPEN,0)}STRUCT_CLOSE(){return this.getToken(rs.STRUCT_CLOSE,0)}expr_struct_list(){return this.getRuleContext(0,Us)}COMMA(){return this.getToken(rs.COMMA,0)}get ruleIndex(){return rs.RULE_struct_literal}accept(e){return e.visitStruct_literal?e.visitStruct_literal(this):e.visitChildren(this)}},Bs=class extends W{static{Si(this,"Atom_exprContext")}constructor(e,t){super(e,t)}literal_value(){return this.getRuleContext(0,wn)}bind_parameter(){return this.getRuleContext(0,Rn)}lambda(){return this.getRuleContext(0,Ks)}cast_expr(){return this.getRuleContext(0,Vs)}exists_expr(){return this.getRuleContext(0,Gs)}case_expr(){return this.getRuleContext(0,js)}an_id_or_type(){return this.getRuleContext(0,zh)}NAMESPACE(){return this.getToken(rs.NAMESPACE,0)}id_or_type(){return this.getRuleContext(0,id)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}value_constructor(){return this.getRuleContext(0,sr)}bitcast_expr(){return this.getRuleContext(0,zs)}list_literal(){return this.getRuleContext(0,Ms)}dict_literal(){return this.getRuleContext(0,Fs)}struct_literal(){return this.getRuleContext(0,Hs)}get ruleIndex(){return rs.RULE_atom_expr}accept(e){return e.visitAtom_expr?e.visitAtom_expr(this):e.visitChildren(this)}},Ws=class extends W{static{Si(this,"In_atom_exprContext")}constructor(e,t){super(e,t)}literal_value(){return this.getRuleContext(0,wn)}bind_parameter(){return this.getRuleContext(0,Rn)}lambda(){return this.getRuleContext(0,Ks)}cast_expr(){return this.getRuleContext(0,Vs)}case_expr(){return this.getRuleContext(0,js)}an_id_or_type(){return this.getRuleContext(0,zh)}NAMESPACE(){return this.getToken(rs.NAMESPACE,0)}id_or_type(){return this.getRuleContext(0,id)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}select_stmt(){return this.getRuleContext(0,mr)}RPAREN(){return this.getToken(rs.RPAREN,0)}value_constructor(){return this.getRuleContext(0,sr)}bitcast_expr(){return this.getRuleContext(0,zs)}list_literal(){return this.getRuleContext(0,Ms)}dict_literal(){return this.getRuleContext(0,Fs)}struct_literal(){return this.getRuleContext(0,Hs)}get ruleIndex(){return rs.RULE_in_atom_expr}accept(e){return e.visitIn_atom_expr?e.visitIn_atom_expr(this):e.visitChildren(this)}},Vs=class extends W{static{Si(this,"Cast_exprContext")}constructor(e,t){super(e,t)}CAST(){return this.getToken(rs.CAST,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}expr(){return this.getRuleContext(0,gs)}AS(){return this.getToken(rs.AS,0)}type_name_or_bind(){return this.getRuleContext(0,tr)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_cast_expr}accept(e){return e.visitCast_expr?e.visitCast_expr(this):e.visitChildren(this)}},zs=class extends W{static{Si(this,"Bitcast_exprContext")}constructor(e,t){super(e,t)}BITCAST(){return this.getToken(rs.BITCAST,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}expr(){return this.getRuleContext(0,gs)}AS(){return this.getToken(rs.AS,0)}type_name_simple(){return this.getRuleContext(0,Nn)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_bitcast_expr}accept(e){return e.visitBitcast_expr?e.visitBitcast_expr(this):e.visitChildren(this)}},Gs=class extends W{static{Si(this,"Exists_exprContext")}constructor(e,t){super(e,t)}EXISTS(){return this.getToken(rs.EXISTS,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}select_stmt(){return this.getRuleContext(0,mr)}values_stmt(){return this.getRuleContext(0,No)}get ruleIndex(){return rs.RULE_exists_expr}accept(e){return e.visitExists_expr?e.visitExists_expr(this):e.visitChildren(this)}},js=class extends W{static{Si(this,"Case_exprContext")}constructor(e,t){super(e,t)}CASE(){return this.getToken(rs.CASE,0)}END(){return this.getToken(rs.END,0)}expr(e){return void 0===e?this.getRuleContexts(gs):this.getRuleContext(e,gs)}when_expr(e){return void 0===e?this.getRuleContexts(yn):this.getRuleContext(e,yn)}ELSE(){return this.getToken(rs.ELSE,0)}get ruleIndex(){return rs.RULE_case_expr}accept(e){return e.visitCase_expr?e.visitCase_expr(this):e.visitChildren(this)}},Ks=class extends W{static{Si(this,"LambdaContext")}constructor(e,t){super(e,t)}smart_parenthesis(){return this.getRuleContext(0,cn)}ARROW(){return this.getToken(rs.ARROW,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}expr(){return this.getRuleContext(0,gs)}RPAREN(){return this.getToken(rs.RPAREN,0)}LBRACE_CURLY(){return this.getToken(rs.LBRACE_CURLY,0)}lambda_body(){return this.getRuleContext(0,ls)}RBRACE_CURLY(){return this.getToken(rs.RBRACE_CURLY,0)}get ruleIndex(){return rs.RULE_lambda}accept(e){return e.visitLambda?e.visitLambda(this):e.visitChildren(this)}},Ys=class extends W{static{Si(this,"In_exprContext")}constructor(e,t){super(e,t)}in_unary_subexpr(){return this.getRuleContext(0,Ds)}get ruleIndex(){return rs.RULE_in_expr}accept(e){return e.visitIn_expr?e.visitIn_expr(this):e.visitChildren(this)}},qs=class extends W{static{Si(this,"Json_api_exprContext")}constructor(e,t){super(e,t)}json_value(){return this.getRuleContext(0,tn)}json_exists(){return this.getRuleContext(0,nn)}json_query(){return this.getRuleContext(0,an)}get ruleIndex(){return rs.RULE_json_api_expr}accept(e){return e.visitJson_api_expr?e.visitJson_api_expr(this):e.visitChildren(this)}},$s=class extends W{static{Si(this,"Jsonpath_specContext")}constructor(e,t){super(e,t)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_jsonpath_spec}accept(e){return e.visitJsonpath_spec?e.visitJsonpath_spec(this):e.visitChildren(this)}},Qs=class extends W{static{Si(this,"Json_variable_nameContext")}constructor(e,t){super(e,t)}id_expr(){return this.getRuleContext(0,Mh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_json_variable_name}accept(e){return e.visitJson_variable_name?e.visitJson_variable_name(this):e.visitChildren(this)}},Xs=class extends W{static{Si(this,"Json_variableContext")}constructor(e,t){super(e,t)}expr(){return this.getRuleContext(0,gs)}AS(){return this.getToken(rs.AS,0)}json_variable_name(){return this.getRuleContext(0,Qs)}get ruleIndex(){return rs.RULE_json_variable}accept(e){return e.visitJson_variable?e.visitJson_variable(this):e.visitChildren(this)}},Zs=class extends W{static{Si(this,"Json_variablesContext")}constructor(e,t){super(e,t)}json_variable(e){return void 0===e?this.getRuleContexts(Xs):this.getRuleContext(e,Xs)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_json_variables}accept(e){return e.visitJson_variables?e.visitJson_variables(this):e.visitChildren(this)}},Js=class extends W{static{Si(this,"Json_common_argsContext")}constructor(e,t){super(e,t)}expr(){return this.getRuleContext(0,gs)}COMMA(){return this.getToken(rs.COMMA,0)}jsonpath_spec(){return this.getRuleContext(0,$s)}PASSING(){return this.getToken(rs.PASSING,0)}json_variables(){return this.getRuleContext(0,Zs)}get ruleIndex(){return rs.RULE_json_common_args}accept(e){return e.visitJson_common_args?e.visitJson_common_args(this):e.visitChildren(this)}},en=class extends W{static{Si(this,"Json_case_handlerContext")}constructor(e,t){super(e,t)}ERROR(){return this.getToken(rs.ERROR,0)}NULL(){return this.getToken(rs.NULL,0)}DEFAULT(){return this.getToken(rs.DEFAULT,0)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_json_case_handler}accept(e){return e.visitJson_case_handler?e.visitJson_case_handler(this):e.visitChildren(this)}},tn=class extends W{static{Si(this,"Json_valueContext")}constructor(e,t){super(e,t)}JSON_VALUE(){return this.getToken(rs.JSON_VALUE,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}json_common_args(){return this.getRuleContext(0,Js)}RPAREN(){return this.getToken(rs.RPAREN,0)}RETURNING(){return this.getToken(rs.RETURNING,0)}type_name_simple(){return this.getRuleContext(0,Nn)}json_case_handler(e){return void 0===e?this.getRuleContexts(en):this.getRuleContext(e,en)}ON(e){return void 0===e?this.getTokens(rs.ON):this.getToken(rs.ON,e)}EMPTY(e){return void 0===e?this.getTokens(rs.EMPTY):this.getToken(rs.EMPTY,e)}ERROR(e){return void 0===e?this.getTokens(rs.ERROR):this.getToken(rs.ERROR,e)}get ruleIndex(){return rs.RULE_json_value}accept(e){return e.visitJson_value?e.visitJson_value(this):e.visitChildren(this)}},sn=class extends W{static{Si(this,"Json_exists_handlerContext")}constructor(e,t){super(e,t)}ON(){return this.getToken(rs.ON,0)}ERROR(e){return void 0===e?this.getTokens(rs.ERROR):this.getToken(rs.ERROR,e)}TRUE(){return this.getToken(rs.TRUE,0)}FALSE(){return this.getToken(rs.FALSE,0)}UNKNOWN(){return this.getToken(rs.UNKNOWN,0)}get ruleIndex(){return rs.RULE_json_exists_handler}accept(e){return e.visitJson_exists_handler?e.visitJson_exists_handler(this):e.visitChildren(this)}},nn=class extends W{static{Si(this,"Json_existsContext")}constructor(e,t){super(e,t)}JSON_EXISTS(){return this.getToken(rs.JSON_EXISTS,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}json_common_args(){return this.getRuleContext(0,Js)}RPAREN(){return this.getToken(rs.RPAREN,0)}json_exists_handler(){return this.getRuleContext(0,sn)}get ruleIndex(){return rs.RULE_json_exists}accept(e){return e.visitJson_exists?e.visitJson_exists(this):e.visitChildren(this)}},rn=class extends W{static{Si(this,"Json_query_wrapperContext")}constructor(e,t){super(e,t)}WITHOUT(){return this.getToken(rs.WITHOUT,0)}ARRAY(){return this.getToken(rs.ARRAY,0)}WITH(){return this.getToken(rs.WITH,0)}CONDITIONAL(){return this.getToken(rs.CONDITIONAL,0)}UNCONDITIONAL(){return this.getToken(rs.UNCONDITIONAL,0)}get ruleIndex(){return rs.RULE_json_query_wrapper}accept(e){return e.visitJson_query_wrapper?e.visitJson_query_wrapper(this):e.visitChildren(this)}},on=class extends W{static{Si(this,"Json_query_handlerContext")}constructor(e,t){super(e,t)}ERROR(){return this.getToken(rs.ERROR,0)}NULL(){return this.getToken(rs.NULL,0)}EMPTY(){return this.getToken(rs.EMPTY,0)}ARRAY(){return this.getToken(rs.ARRAY,0)}OBJECT(){return this.getToken(rs.OBJECT,0)}get ruleIndex(){return rs.RULE_json_query_handler}accept(e){return e.visitJson_query_handler?e.visitJson_query_handler(this):e.visitChildren(this)}},an=class extends W{static{Si(this,"Json_queryContext")}constructor(e,t){super(e,t)}JSON_QUERY(){return this.getToken(rs.JSON_QUERY,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}json_common_args(){return this.getRuleContext(0,Js)}RPAREN(){return this.getToken(rs.RPAREN,0)}json_query_wrapper(){return this.getRuleContext(0,rn)}WRAPPER(){return this.getToken(rs.WRAPPER,0)}json_query_handler(e){return void 0===e?this.getRuleContexts(on):this.getRuleContext(e,on)}ON(e){return void 0===e?this.getTokens(rs.ON):this.getToken(rs.ON,e)}EMPTY(){return this.getToken(rs.EMPTY,0)}ERROR(){return this.getToken(rs.ERROR,0)}get ruleIndex(){return rs.RULE_json_query}accept(e){return e.visitJson_query?e.visitJson_query(this):e.visitChildren(this)}},cn=class extends W{static{Si(this,"Smart_parenthesisContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}named_expr_list(){return this.getRuleContext(0,vn)}COMMA(){return this.getToken(rs.COMMA,0)}get ruleIndex(){return rs.RULE_smart_parenthesis}accept(e){return e.visitSmart_parenthesis?e.visitSmart_parenthesis(this):e.visitChildren(this)}},ln=class extends W{static{Si(this,"Expr_listContext")}constructor(e,t){super(e,t)}expr(e){return void 0===e?this.getRuleContexts(gs):this.getRuleContext(e,gs)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_expr_list}accept(e){return e.visitExpr_list?e.visitExpr_list(this):e.visitChildren(this)}},hn=class extends W{static{Si(this,"Pure_column_listContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}an_id(e){return void 0===e?this.getRuleContexts(Vh):this.getRuleContext(e,Vh)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_pure_column_list}accept(e){return e.visitPure_column_list?e.visitPure_column_list(this):e.visitChildren(this)}},dn=class extends W{static{Si(this,"Pure_column_or_namedContext")}constructor(e,t){super(e,t)}bind_parameter(){return this.getRuleContext(0,Rn)}an_id(){return this.getRuleContext(0,Vh)}get ruleIndex(){return rs.RULE_pure_column_or_named}accept(e){return e.visitPure_column_or_named?e.visitPure_column_or_named(this):e.visitChildren(this)}},un=class extends W{static{Si(this,"Pure_column_or_named_listContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}pure_column_or_named(e){return void 0===e?this.getRuleContexts(dn):this.getRuleContext(e,dn)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_pure_column_or_named_list}accept(e){return e.visitPure_column_or_named_list?e.visitPure_column_or_named_list(this):e.visitChildren(this)}},gn=class extends W{static{Si(this,"Column_nameContext")}constructor(e,t){super(e,t)}opt_id_prefix(){return this.getRuleContext(0,ed)}an_id(){return this.getRuleContext(0,Vh)}get ruleIndex(){return rs.RULE_column_name}accept(e){return e.visitColumn_name?e.visitColumn_name(this):e.visitChildren(this)}},pn=class extends W{static{Si(this,"Without_column_nameContext")}constructor(e,t){super(e,t)}an_id(e){return void 0===e?this.getRuleContexts(Vh):this.getRuleContext(e,Vh)}DOT(){return this.getToken(rs.DOT,0)}an_id_without(){return this.getRuleContext(0,$h)}get ruleIndex(){return rs.RULE_without_column_name}accept(e){return e.visitWithout_column_name?e.visitWithout_column_name(this):e.visitChildren(this)}},mn=class extends W{static{Si(this,"Column_listContext")}constructor(e,t){super(e,t)}column_name(e){return void 0===e?this.getRuleContexts(gn):this.getRuleContext(e,gn)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_column_list}accept(e){return e.visitColumn_list?e.visitColumn_list(this):e.visitChildren(this)}},fn=class extends W{static{Si(this,"Without_column_listContext")}constructor(e,t){super(e,t)}without_column_name(e){return void 0===e?this.getRuleContexts(pn):this.getRuleContext(e,pn)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_without_column_list}accept(e){return e.visitWithout_column_list?e.visitWithout_column_list(this):e.visitChildren(this)}},_n=class extends W{static{Si(this,"Named_exprContext")}constructor(e,t){super(e,t)}expr(){return this.getRuleContext(0,gs)}AS(){return this.getToken(rs.AS,0)}an_id_or_type(){return this.getRuleContext(0,zh)}get ruleIndex(){return rs.RULE_named_expr}accept(e){return e.visitNamed_expr?e.visitNamed_expr(this):e.visitChildren(this)}},vn=class extends W{static{Si(this,"Named_expr_listContext")}constructor(e,t){super(e,t)}named_expr(e){return void 0===e?this.getRuleContexts(_n):this.getRuleContext(e,_n)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_named_expr_list}accept(e){return e.visitNamed_expr_list?e.visitNamed_expr_list(this):e.visitChildren(this)}},Cn=class extends W{static{Si(this,"Invoke_exprContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}invoke_expr_tail(){return this.getRuleContext(0,En)}opt_set_quantifier(){return this.getRuleContext(0,Rr)}named_expr_list(){return this.getRuleContext(0,vn)}ASTERISK(){return this.getToken(rs.ASTERISK,0)}COMMA(){return this.getToken(rs.COMMA,0)}get ruleIndex(){return rs.RULE_invoke_expr}accept(e){return e.visitInvoke_expr?e.visitInvoke_expr(this):e.visitChildren(this)}},En=class extends W{static{Si(this,"Invoke_expr_tailContext")}constructor(e,t){super(e,t)}null_treatment(){return this.getRuleContext(0,sh)}filter_clause(){return this.getRuleContext(0,nh)}OVER(){return this.getToken(rs.OVER,0)}window_name_or_specification(){return this.getRuleContext(0,rh)}get ruleIndex(){return rs.RULE_invoke_expr_tail}accept(e){return e.visitInvoke_expr_tail?e.visitInvoke_expr_tail(this):e.visitChildren(this)}},bn=class extends W{static{Si(this,"Using_call_exprContext")}constructor(e,t){super(e,t)}invoke_expr(){return this.getRuleContext(0,Cn)}an_id_or_type(e){return void 0===e?this.getRuleContexts(zh):this.getRuleContext(e,zh)}NAMESPACE(){return this.getToken(rs.NAMESPACE,0)}an_id_expr(){return this.getRuleContext(0,jh)}bind_parameter(){return this.getRuleContext(0,Rn)}EXTERNAL(){return this.getToken(rs.EXTERNAL,0)}FUNCTION(){return this.getToken(rs.FUNCTION,0)}get ruleIndex(){return rs.RULE_using_call_expr}accept(e){return e.visitUsing_call_expr?e.visitUsing_call_expr(this):e.visitChildren(this)}},Sn=class extends W{static{Si(this,"Key_exprContext")}constructor(e,t){super(e,t)}LBRACE_SQUARE(){return this.getToken(rs.LBRACE_SQUARE,0)}expr(){return this.getRuleContext(0,gs)}RBRACE_SQUARE(){return this.getToken(rs.RBRACE_SQUARE,0)}get ruleIndex(){return rs.RULE_key_expr}accept(e){return e.visitKey_expr?e.visitKey_expr(this):e.visitChildren(this)}},yn=class extends W{static{Si(this,"When_exprContext")}constructor(e,t){super(e,t)}WHEN(){return this.getToken(rs.WHEN,0)}expr(e){return void 0===e?this.getRuleContexts(gs):this.getRuleContext(e,gs)}THEN(){return this.getToken(rs.THEN,0)}get ruleIndex(){return rs.RULE_when_expr}accept(e){return e.visitWhen_expr?e.visitWhen_expr(this):e.visitChildren(this)}},wn=class extends W{static{Si(this,"Literal_valueContext")}constructor(e,t){super(e,t)}integer(){return this.getRuleContext(0,Ed)}real(){return this.getRuleContext(0,Cd)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}BLOB(){return this.getToken(rs.BLOB,0)}NULL(){return this.getToken(rs.NULL,0)}CURRENT_TIME(){return this.getToken(rs.CURRENT_TIME,0)}CURRENT_DATE(){return this.getToken(rs.CURRENT_DATE,0)}CURRENT_TIMESTAMP(){return this.getToken(rs.CURRENT_TIMESTAMP,0)}bool_value(){return this.getRuleContext(0,vd)}EMPTY_ACTION(){return this.getToken(rs.EMPTY_ACTION,0)}get ruleIndex(){return rs.RULE_literal_value}accept(e){return e.visitLiteral_value?e.visitLiteral_value(this):e.visitChildren(this)}},Rn=class extends W{static{Si(this,"Bind_parameterContext")}constructor(e,t){super(e,t)}DOLLAR(){return this.getToken(rs.DOLLAR,0)}an_id_or_type(){return this.getRuleContext(0,zh)}TRUE(){return this.getToken(rs.TRUE,0)}FALSE(){return this.getToken(rs.FALSE,0)}get ruleIndex(){return rs.RULE_bind_parameter}accept(e){return e.visitBind_parameter?e.visitBind_parameter(this):e.visitChildren(this)}},Ln=class extends W{static{Si(this,"Opt_bind_parameterContext")}constructor(e,t){super(e,t)}bind_parameter(){return this.getRuleContext(0,Rn)}QUESTION(){return this.getToken(rs.QUESTION,0)}get ruleIndex(){return rs.RULE_opt_bind_parameter}accept(e){return e.visitOpt_bind_parameter?e.visitOpt_bind_parameter(this):e.visitChildren(this)}},Tn=class extends W{static{Si(this,"Bind_parameter_listContext")}constructor(e,t){super(e,t)}bind_parameter(e){return void 0===e?this.getRuleContexts(Rn):this.getRuleContext(e,Rn)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_bind_parameter_list}accept(e){return e.visitBind_parameter_list?e.visitBind_parameter_list(this):e.visitChildren(this)}},xn=class extends W{static{Si(this,"Named_bind_parameterContext")}constructor(e,t){super(e,t)}bind_parameter(e){return void 0===e?this.getRuleContexts(Rn):this.getRuleContext(e,Rn)}AS(){return this.getToken(rs.AS,0)}get ruleIndex(){return rs.RULE_named_bind_parameter}accept(e){return e.visitNamed_bind_parameter?e.visitNamed_bind_parameter(this):e.visitChildren(this)}},kn=class extends W{static{Si(this,"Named_bind_parameter_listContext")}constructor(e,t){super(e,t)}named_bind_parameter(e){return void 0===e?this.getRuleContexts(xn):this.getRuleContext(e,xn)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_named_bind_parameter_list}accept(e){return e.visitNamed_bind_parameter_list?e.visitNamed_bind_parameter_list(this):e.visitChildren(this)}},An=class extends W{static{Si(this,"Signed_numberContext")}constructor(e,t){super(e,t)}integer(){return this.getRuleContext(0,Ed)}real(){return this.getRuleContext(0,Cd)}PLUS(){return this.getToken(rs.PLUS,0)}MINUS(){return this.getToken(rs.MINUS,0)}get ruleIndex(){return rs.RULE_signed_number}accept(e){return e.visitSigned_number?e.visitSigned_number(this):e.visitChildren(this)}},Nn=class extends W{static{Si(this,"Type_name_simpleContext")}constructor(e,t){super(e,t)}an_id_pure(){return this.getRuleContext(0,Xh)}get ruleIndex(){return rs.RULE_type_name_simple}accept(e){return e.visitType_name_simple?e.visitType_name_simple(this):e.visitChildren(this)}},In=class extends W{static{Si(this,"Integer_or_bindContext")}constructor(e,t){super(e,t)}integer(){return this.getRuleContext(0,Ed)}bind_parameter(){return this.getRuleContext(0,Rn)}get ruleIndex(){return rs.RULE_integer_or_bind}accept(e){return e.visitInteger_or_bind?e.visitInteger_or_bind(this):e.visitChildren(this)}},On=class extends W{static{Si(this,"Type_name_tagContext")}constructor(e,t){super(e,t)}id(){return this.getRuleContext(0,Oh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}bind_parameter(){return this.getRuleContext(0,Rn)}get ruleIndex(){return rs.RULE_type_name_tag}accept(e){return e.visitType_name_tag?e.visitType_name_tag(this):e.visitChildren(this)}},Dn=class extends W{static{Si(this,"Struct_argContext")}constructor(e,t){super(e,t)}type_name_tag(){return this.getRuleContext(0,On)}COLON(){return this.getToken(rs.COLON,0)}type_name_or_bind(){return this.getRuleContext(0,tr)}get ruleIndex(){return rs.RULE_struct_arg}accept(e){return e.visitStruct_arg?e.visitStruct_arg(this):e.visitChildren(this)}},Mn=class extends W{static{Si(this,"Struct_arg_positionalContext")}constructor(e,t){super(e,t)}type_name_tag(){return this.getRuleContext(0,On)}type_name_or_bind(){return this.getRuleContext(0,tr)}NULL(){return this.getToken(rs.NULL,0)}NOT(){return this.getToken(rs.NOT,0)}AS(){return this.getToken(rs.AS,0)}get ruleIndex(){return rs.RULE_struct_arg_positional}accept(e){return e.visitStruct_arg_positional?e.visitStruct_arg_positional(this):e.visitChildren(this)}},Pn=class extends W{static{Si(this,"Variant_argContext")}constructor(e,t){super(e,t)}type_name_or_bind(){return this.getRuleContext(0,tr)}type_name_tag(){return this.getRuleContext(0,On)}COLON(){return this.getToken(rs.COLON,0)}get ruleIndex(){return rs.RULE_variant_arg}accept(e){return e.visitVariant_arg?e.visitVariant_arg(this):e.visitChildren(this)}},Fn=class extends W{static{Si(this,"Callable_argContext")}constructor(e,t){super(e,t)}variant_arg(){return this.getRuleContext(0,Pn)}LBRACE_CURLY(){return this.getToken(rs.LBRACE_CURLY,0)}AUTOMAP(){return this.getToken(rs.AUTOMAP,0)}RBRACE_CURLY(){return this.getToken(rs.RBRACE_CURLY,0)}get ruleIndex(){return rs.RULE_callable_arg}accept(e){return e.visitCallable_arg?e.visitCallable_arg(this):e.visitChildren(this)}},Un=class extends W{static{Si(this,"Callable_arg_listContext")}constructor(e,t){super(e,t)}callable_arg(e){return void 0===e?this.getRuleContexts(Fn):this.getRuleContext(e,Fn)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_callable_arg_list}accept(e){return e.visitCallable_arg_list?e.visitCallable_arg_list(this):e.visitChildren(this)}},Hn=class extends W{static{Si(this,"Type_name_decimalContext")}constructor(e,t){super(e,t)}DECIMAL(){return this.getToken(rs.DECIMAL,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}integer_or_bind(e){return void 0===e?this.getRuleContexts(In):this.getRuleContext(e,In)}COMMA(){return this.getToken(rs.COMMA,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_type_name_decimal}accept(e){return e.visitType_name_decimal?e.visitType_name_decimal(this):e.visitChildren(this)}},Bn=class extends W{static{Si(this,"Type_name_optionalContext")}constructor(e,t){super(e,t)}OPTIONAL(){return this.getToken(rs.OPTIONAL,0)}LESS(){return this.getToken(rs.LESS,0)}type_name_or_bind(){return this.getRuleContext(0,tr)}GREATER(){return this.getToken(rs.GREATER,0)}get ruleIndex(){return rs.RULE_type_name_optional}accept(e){return e.visitType_name_optional?e.visitType_name_optional(this):e.visitChildren(this)}},Wn=class extends W{static{Si(this,"Type_name_tupleContext")}constructor(e,t){super(e,t)}TUPLE(){return this.getToken(rs.TUPLE,0)}LESS(){return this.getToken(rs.LESS,0)}GREATER(){return this.getToken(rs.GREATER,0)}NOT_EQUALS2(){return this.getToken(rs.NOT_EQUALS2,0)}type_name_or_bind(e){return void 0===e?this.getRuleContexts(tr):this.getRuleContext(e,tr)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_type_name_tuple}accept(e){return e.visitType_name_tuple?e.visitType_name_tuple(this):e.visitChildren(this)}},Vn=class extends W{static{Si(this,"Type_name_structContext")}constructor(e,t){super(e,t)}STRUCT(){return this.getToken(rs.STRUCT,0)}LESS(){return this.getToken(rs.LESS,0)}GREATER(){return this.getToken(rs.GREATER,0)}NOT_EQUALS2(){return this.getToken(rs.NOT_EQUALS2,0)}struct_arg(e){return void 0===e?this.getRuleContexts(Dn):this.getRuleContext(e,Dn)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_type_name_struct}accept(e){return e.visitType_name_struct?e.visitType_name_struct(this):e.visitChildren(this)}},zn=class extends W{static{Si(this,"Type_name_variantContext")}constructor(e,t){super(e,t)}VARIANT(){return this.getToken(rs.VARIANT,0)}LESS(){return this.getToken(rs.LESS,0)}variant_arg(e){return void 0===e?this.getRuleContexts(Pn):this.getRuleContext(e,Pn)}GREATER(){return this.getToken(rs.GREATER,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_type_name_variant}accept(e){return e.visitType_name_variant?e.visitType_name_variant(this):e.visitChildren(this)}},Gn=class extends W{static{Si(this,"Type_name_listContext")}constructor(e,t){super(e,t)}LIST(){return this.getToken(rs.LIST,0)}LESS(){return this.getToken(rs.LESS,0)}type_name_or_bind(){return this.getRuleContext(0,tr)}GREATER(){return this.getToken(rs.GREATER,0)}get ruleIndex(){return rs.RULE_type_name_list}accept(e){return e.visitType_name_list?e.visitType_name_list(this):e.visitChildren(this)}},jn=class extends W{static{Si(this,"Type_name_streamContext")}constructor(e,t){super(e,t)}STREAM(){return this.getToken(rs.STREAM,0)}LESS(){return this.getToken(rs.LESS,0)}type_name_or_bind(){return this.getRuleContext(0,tr)}GREATER(){return this.getToken(rs.GREATER,0)}get ruleIndex(){return rs.RULE_type_name_stream}accept(e){return e.visitType_name_stream?e.visitType_name_stream(this):e.visitChildren(this)}},Kn=class extends W{static{Si(this,"Type_name_flowContext")}constructor(e,t){super(e,t)}FLOW(){return this.getToken(rs.FLOW,0)}LESS(){return this.getToken(rs.LESS,0)}type_name_or_bind(){return this.getRuleContext(0,tr)}GREATER(){return this.getToken(rs.GREATER,0)}get ruleIndex(){return rs.RULE_type_name_flow}accept(e){return e.visitType_name_flow?e.visitType_name_flow(this):e.visitChildren(this)}},Yn=class extends W{static{Si(this,"Type_name_dictContext")}constructor(e,t){super(e,t)}DICT(){return this.getToken(rs.DICT,0)}LESS(){return this.getToken(rs.LESS,0)}type_name_or_bind(e){return void 0===e?this.getRuleContexts(tr):this.getRuleContext(e,tr)}COMMA(){return this.getToken(rs.COMMA,0)}GREATER(){return this.getToken(rs.GREATER,0)}get ruleIndex(){return rs.RULE_type_name_dict}accept(e){return e.visitType_name_dict?e.visitType_name_dict(this):e.visitChildren(this)}},qn=class extends W{static{Si(this,"Type_name_setContext")}constructor(e,t){super(e,t)}SET(){return this.getToken(rs.SET,0)}LESS(){return this.getToken(rs.LESS,0)}type_name_or_bind(){return this.getRuleContext(0,tr)}GREATER(){return this.getToken(rs.GREATER,0)}get ruleIndex(){return rs.RULE_type_name_set}accept(e){return e.visitType_name_set?e.visitType_name_set(this):e.visitChildren(this)}},$n=class extends W{static{Si(this,"Type_name_enumContext")}constructor(e,t){super(e,t)}ENUM(){return this.getToken(rs.ENUM,0)}LESS(){return this.getToken(rs.LESS,0)}type_name_tag(e){return void 0===e?this.getRuleContexts(On):this.getRuleContext(e,On)}GREATER(){return this.getToken(rs.GREATER,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_type_name_enum}accept(e){return e.visitType_name_enum?e.visitType_name_enum(this):e.visitChildren(this)}},Qn=class extends W{static{Si(this,"Type_name_resourceContext")}constructor(e,t){super(e,t)}RESOURCE(){return this.getToken(rs.RESOURCE,0)}LESS(){return this.getToken(rs.LESS,0)}type_name_tag(){return this.getRuleContext(0,On)}GREATER(){return this.getToken(rs.GREATER,0)}get ruleIndex(){return rs.RULE_type_name_resource}accept(e){return e.visitType_name_resource?e.visitType_name_resource(this):e.visitChildren(this)}},Xn=class extends W{static{Si(this,"Type_name_taggedContext")}constructor(e,t){super(e,t)}TAGGED(){return this.getToken(rs.TAGGED,0)}LESS(){return this.getToken(rs.LESS,0)}type_name_or_bind(){return this.getRuleContext(0,tr)}COMMA(){return this.getToken(rs.COMMA,0)}type_name_tag(){return this.getRuleContext(0,On)}GREATER(){return this.getToken(rs.GREATER,0)}get ruleIndex(){return rs.RULE_type_name_tagged}accept(e){return e.visitType_name_tagged?e.visitType_name_tagged(this):e.visitChildren(this)}},Zn=class extends W{static{Si(this,"Type_name_callableContext")}constructor(e,t){super(e,t)}CALLABLE(){return this.getToken(rs.CALLABLE,0)}LESS(){return this.getToken(rs.LESS,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}ARROW(){return this.getToken(rs.ARROW,0)}type_name_or_bind(){return this.getRuleContext(0,tr)}GREATER(){return this.getToken(rs.GREATER,0)}callable_arg_list(e){return void 0===e?this.getRuleContexts(Un):this.getRuleContext(e,Un)}COMMA(){return this.getToken(rs.COMMA,0)}LBRACE_SQUARE(){return this.getToken(rs.LBRACE_SQUARE,0)}RBRACE_SQUARE(){return this.getToken(rs.RBRACE_SQUARE,0)}get ruleIndex(){return rs.RULE_type_name_callable}accept(e){return e.visitType_name_callable?e.visitType_name_callable(this):e.visitChildren(this)}},Jn=class extends W{static{Si(this,"Type_name_compositeContext")}constructor(e,t){super(e,t)}type_name_optional(){return this.getRuleContext(0,Bn)}type_name_tuple(){return this.getRuleContext(0,Wn)}type_name_struct(){return this.getRuleContext(0,Vn)}type_name_variant(){return this.getRuleContext(0,zn)}type_name_list(){return this.getRuleContext(0,Gn)}type_name_stream(){return this.getRuleContext(0,jn)}type_name_flow(){return this.getRuleContext(0,Kn)}type_name_dict(){return this.getRuleContext(0,Yn)}type_name_set(){return this.getRuleContext(0,qn)}type_name_enum(){return this.getRuleContext(0,$n)}type_name_resource(){return this.getRuleContext(0,Qn)}type_name_tagged(){return this.getRuleContext(0,Xn)}type_name_callable(){return this.getRuleContext(0,Zn)}QUESTION(e){return void 0===e?this.getTokens(rs.QUESTION):this.getToken(rs.QUESTION,e)}get ruleIndex(){return rs.RULE_type_name_composite}accept(e){return e.visitType_name_composite?e.visitType_name_composite(this):e.visitChildren(this)}},er=class extends W{static{Si(this,"Type_nameContext")}constructor(e,t){super(e,t)}type_name_composite(){return this.getRuleContext(0,Jn)}type_name_decimal(){return this.getRuleContext(0,Hn)}type_name_simple(){return this.getRuleContext(0,Nn)}QUESTION(e){return void 0===e?this.getTokens(rs.QUESTION):this.getToken(rs.QUESTION,e)}get ruleIndex(){return rs.RULE_type_name}accept(e){return e.visitType_name?e.visitType_name(this):e.visitChildren(this)}},tr=class extends W{static{Si(this,"Type_name_or_bindContext")}constructor(e,t){super(e,t)}type_name(){return this.getRuleContext(0,er)}bind_parameter(){return this.getRuleContext(0,Rn)}get ruleIndex(){return rs.RULE_type_name_or_bind}accept(e){return e.visitType_name_or_bind?e.visitType_name_or_bind(this):e.visitChildren(this)}},ir=class extends W{static{Si(this,"Value_constructor_literalContext")}constructor(e,t){super(e,t)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_value_constructor_literal}accept(e){return e.visitValue_constructor_literal?e.visitValue_constructor_literal(this):e.visitChildren(this)}},sr=class extends W{static{Si(this,"Value_constructorContext")}constructor(e,t){super(e,t)}VARIANT(){return this.getToken(rs.VARIANT,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}expr(e){return void 0===e?this.getRuleContexts(gs):this.getRuleContext(e,gs)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}RPAREN(){return this.getToken(rs.RPAREN,0)}ENUM(){return this.getToken(rs.ENUM,0)}CALLABLE(){return this.getToken(rs.CALLABLE,0)}get ruleIndex(){return rs.RULE_value_constructor}accept(e){return e.visitValue_constructor?e.visitValue_constructor(this):e.visitChildren(this)}},nr=class extends W{static{Si(this,"Declare_stmtContext")}constructor(e,t){super(e,t)}DECLARE(){return this.getToken(rs.DECLARE,0)}bind_parameter(){return this.getRuleContext(0,Rn)}AS(){return this.getToken(rs.AS,0)}type_name(){return this.getRuleContext(0,er)}EQUALS(){return this.getToken(rs.EQUALS,0)}literal_value(){return this.getRuleContext(0,wn)}get ruleIndex(){return rs.RULE_declare_stmt}accept(e){return e.visitDeclare_stmt?e.visitDeclare_stmt(this):e.visitChildren(this)}},rr=class extends W{static{Si(this,"Module_pathContext")}constructor(e,t){super(e,t)}an_id(e){return void 0===e?this.getRuleContexts(Vh):this.getRuleContext(e,Vh)}DOT(e){return void 0===e?this.getTokens(rs.DOT):this.getToken(rs.DOT,e)}get ruleIndex(){return rs.RULE_module_path}accept(e){return e.visitModule_path?e.visitModule_path(this):e.visitChildren(this)}},or=class extends W{static{Si(this,"Import_stmtContext")}constructor(e,t){super(e,t)}IMPORT(){return this.getToken(rs.IMPORT,0)}module_path(){return this.getRuleContext(0,rr)}SYMBOLS(){return this.getToken(rs.SYMBOLS,0)}named_bind_parameter_list(){return this.getRuleContext(0,kn)}get ruleIndex(){return rs.RULE_import_stmt}accept(e){return e.visitImport_stmt?e.visitImport_stmt(this):e.visitChildren(this)}},ar=class extends W{static{Si(this,"Export_stmtContext")}constructor(e,t){super(e,t)}EXPORT(){return this.getToken(rs.EXPORT,0)}bind_parameter_list(){return this.getRuleContext(0,Tn)}get ruleIndex(){return rs.RULE_export_stmt}accept(e){return e.visitExport_stmt?e.visitExport_stmt(this):e.visitChildren(this)}},cr=class extends W{static{Si(this,"Call_actionContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}bind_parameter(){return this.getRuleContext(0,Rn)}EMPTY_ACTION(){return this.getToken(rs.EMPTY_ACTION,0)}expr_list(){return this.getRuleContext(0,ln)}get ruleIndex(){return rs.RULE_call_action}accept(e){return e.visitCall_action?e.visitCall_action(this):e.visitChildren(this)}},lr=class extends W{static{Si(this,"Inline_actionContext")}constructor(e,t){super(e,t)}BEGIN(){return this.getToken(rs.BEGIN,0)}define_action_or_subquery_body(){return this.getRuleContext(0,ul)}END(){return this.getToken(rs.END,0)}DO(){return this.getToken(rs.DO,0)}get ruleIndex(){return rs.RULE_inline_action}accept(e){return e.visitInline_action?e.visitInline_action(this):e.visitChildren(this)}},hr=class extends W{static{Si(this,"Do_stmtContext")}constructor(e,t){super(e,t)}DO(){return this.getToken(rs.DO,0)}call_action(){return this.getRuleContext(0,cr)}inline_action(){return this.getRuleContext(0,lr)}get ruleIndex(){return rs.RULE_do_stmt}accept(e){return e.visitDo_stmt?e.visitDo_stmt(this):e.visitChildren(this)}},dr=class extends W{static{Si(this,"Pragma_stmtContext")}constructor(e,t){super(e,t)}PRAGMA(){return this.getToken(rs.PRAGMA,0)}opt_id_prefix_or_type(){return this.getRuleContext(0,sd)}an_id(){return this.getRuleContext(0,Vh)}EQUALS(){return this.getToken(rs.EQUALS,0)}pragma_value(e){return void 0===e?this.getRuleContexts(ur):this.getRuleContext(e,ur)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_pragma_stmt}accept(e){return e.visitPragma_stmt?e.visitPragma_stmt(this):e.visitChildren(this)}},ur=class extends W{static{Si(this,"Pragma_valueContext")}constructor(e,t){super(e,t)}signed_number(){return this.getRuleContext(0,An)}id(){return this.getRuleContext(0,Oh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}bool_value(){return this.getRuleContext(0,vd)}bind_parameter(){return this.getRuleContext(0,Rn)}get ruleIndex(){return rs.RULE_pragma_value}accept(e){return e.visitPragma_value?e.visitPragma_value(this):e.visitChildren(this)}},gr=class extends W{static{Si(this,"Sort_specificationContext")}constructor(e,t){super(e,t)}expr(){return this.getRuleContext(0,gs)}ASC(){return this.getToken(rs.ASC,0)}DESC(){return this.getToken(rs.DESC,0)}get ruleIndex(){return rs.RULE_sort_specification}accept(e){return e.visitSort_specification?e.visitSort_specification(this):e.visitChildren(this)}},pr=class extends W{static{Si(this,"Sort_specification_listContext")}constructor(e,t){super(e,t)}sort_specification(e){return void 0===e?this.getRuleContexts(gr):this.getRuleContext(e,gr)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_sort_specification_list}accept(e){return e.visitSort_specification_list?e.visitSort_specification_list(this):e.visitChildren(this)}},mr=class extends W{static{Si(this,"Select_stmtContext")}constructor(e,t){super(e,t)}select_kind_parenthesis(e){return void 0===e?this.getRuleContexts(_r):this.getRuleContext(e,_r)}select_op(e){return void 0===e?this.getRuleContexts(vr):this.getRuleContext(e,vr)}get ruleIndex(){return rs.RULE_select_stmt}accept(e){return e.visitSelect_stmt?e.visitSelect_stmt(this):e.visitChildren(this)}},fr=class extends W{static{Si(this,"Select_unparenthesized_stmtContext")}constructor(e,t){super(e,t)}select_kind_partial(){return this.getRuleContext(0,Cr)}select_op(e){return void 0===e?this.getRuleContexts(vr):this.getRuleContext(e,vr)}select_kind_parenthesis(e){return void 0===e?this.getRuleContexts(_r):this.getRuleContext(e,_r)}get ruleIndex(){return rs.RULE_select_unparenthesized_stmt}accept(e){return e.visitSelect_unparenthesized_stmt?e.visitSelect_unparenthesized_stmt(this):e.visitChildren(this)}},_r=class extends W{static{Si(this,"Select_kind_parenthesisContext")}constructor(e,t){super(e,t)}select_kind_partial(){return this.getRuleContext(0,Cr)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_select_kind_parenthesis}accept(e){return e.visitSelect_kind_parenthesis?e.visitSelect_kind_parenthesis(this):e.visitChildren(this)}},vr=class extends W{static{Si(this,"Select_opContext")}constructor(e,t){super(e,t)}UNION(){return this.getToken(rs.UNION,0)}ALL(){return this.getToken(rs.ALL,0)}INTERSECT(){return this.getToken(rs.INTERSECT,0)}EXCEPT(){return this.getToken(rs.EXCEPT,0)}get ruleIndex(){return rs.RULE_select_op}accept(e){return e.visitSelect_op?e.visitSelect_op(this):e.visitChildren(this)}},Cr=class extends W{static{Si(this,"Select_kind_partialContext")}constructor(e,t){super(e,t)}select_kind(){return this.getRuleContext(0,Er)}LIMIT(){return this.getToken(rs.LIMIT,0)}expr(e){return void 0===e?this.getRuleContexts(gs):this.getRuleContext(e,gs)}OFFSET(){return this.getToken(rs.OFFSET,0)}COMMA(){return this.getToken(rs.COMMA,0)}get ruleIndex(){return rs.RULE_select_kind_partial}accept(e){return e.visitSelect_kind_partial?e.visitSelect_kind_partial(this):e.visitChildren(this)}},Er=class extends W{static{Si(this,"Select_kindContext")}constructor(e,t){super(e,t)}process_core(){return this.getRuleContext(0,br)}reduce_core(){return this.getRuleContext(0,wr)}select_core(){return this.getRuleContext(0,Lr)}DISCARD(){return this.getToken(rs.DISCARD,0)}INTO(){return this.getToken(rs.INTO,0)}RESULT(){return this.getToken(rs.RESULT,0)}pure_column_or_named(){return this.getRuleContext(0,dn)}get ruleIndex(){return rs.RULE_select_kind}accept(e){return e.visitSelect_kind?e.visitSelect_kind(this):e.visitChildren(this)}},br=class extends W{static{Si(this,"Process_coreContext")}constructor(e,t){super(e,t)}PROCESS(){return this.getToken(rs.PROCESS,0)}named_single_source(e){return void 0===e?this.getRuleContexts(Co):this.getRuleContext(e,Co)}STREAM(){return this.getToken(rs.STREAM,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}USING(){return this.getToken(rs.USING,0)}using_call_expr(){return this.getRuleContext(0,bn)}AS(){return this.getToken(rs.AS,0)}an_id(){return this.getRuleContext(0,Vh)}WITH(){return this.getToken(rs.WITH,0)}external_call_settings(){return this.getRuleContext(0,yr)}where_expr(){return this.getRuleContext(0,Ld)}HAVING(){return this.getToken(rs.HAVING,0)}expr(){return this.getRuleContext(0,gs)}ASSUME(){return this.getToken(rs.ASSUME,0)}order_by_clause(){return this.getRuleContext(0,io)}get ruleIndex(){return rs.RULE_process_core}accept(e){return e.visitProcess_core?e.visitProcess_core(this):e.visitChildren(this)}},Sr=class extends W{static{Si(this,"External_call_paramContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}EQUALS(){return this.getToken(rs.EQUALS,0)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_external_call_param}accept(e){return e.visitExternal_call_param?e.visitExternal_call_param(this):e.visitChildren(this)}},yr=class extends W{static{Si(this,"External_call_settingsContext")}constructor(e,t){super(e,t)}external_call_param(e){return void 0===e?this.getRuleContexts(Sr):this.getRuleContext(e,Sr)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_external_call_settings}accept(e){return e.visitExternal_call_settings?e.visitExternal_call_settings(this):e.visitChildren(this)}},wr=class extends W{static{Si(this,"Reduce_coreContext")}constructor(e,t){super(e,t)}REDUCE(){return this.getToken(rs.REDUCE,0)}named_single_source(e){return void 0===e?this.getRuleContexts(Co):this.getRuleContext(e,Co)}ON(){return this.getToken(rs.ON,0)}column_list(){return this.getRuleContext(0,mn)}USING(){return this.getToken(rs.USING,0)}using_call_expr(){return this.getRuleContext(0,bn)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}PRESORT(){return this.getToken(rs.PRESORT,0)}sort_specification_list(){return this.getRuleContext(0,pr)}ALL(){return this.getToken(rs.ALL,0)}AS(){return this.getToken(rs.AS,0)}an_id(){return this.getRuleContext(0,Vh)}where_expr(){return this.getRuleContext(0,Ld)}HAVING(){return this.getToken(rs.HAVING,0)}expr(){return this.getRuleContext(0,gs)}ASSUME(){return this.getToken(rs.ASSUME,0)}order_by_clause(){return this.getRuleContext(0,io)}get ruleIndex(){return rs.RULE_reduce_core}accept(e){return e.visitReduce_core?e.visitReduce_core(this):e.visitChildren(this)}},Rr=class extends W{static{Si(this,"Opt_set_quantifierContext")}constructor(e,t){super(e,t)}ALL(){return this.getToken(rs.ALL,0)}DISTINCT(){return this.getToken(rs.DISTINCT,0)}get ruleIndex(){return rs.RULE_opt_set_quantifier}accept(e){return e.visitOpt_set_quantifier?e.visitOpt_set_quantifier(this):e.visitChildren(this)}},Lr=class extends W{static{Si(this,"Select_coreContext")}constructor(e,t){super(e,t)}SELECT(){return this.getToken(rs.SELECT,0)}opt_set_quantifier(){return this.getRuleContext(0,Rr)}result_column(e){return void 0===e?this.getRuleContexts(po):this.getRuleContext(e,po)}FROM(e){return void 0===e?this.getTokens(rs.FROM):this.getToken(rs.FROM,e)}join_source(e){return void 0===e?this.getRuleContexts(mo):this.getRuleContext(e,mo)}STREAM(){return this.getToken(rs.STREAM,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}WITHOUT(){return this.getToken(rs.WITHOUT,0)}without_column_list(){return this.getRuleContext(0,fn)}where_expr(){return this.getRuleContext(0,Ld)}group_by_clause(){return this.getRuleContext(0,no)}HAVING(){return this.getToken(rs.HAVING,0)}expr(){return this.getRuleContext(0,gs)}window_clause(){return this.getRuleContext(0,ah)}ext_order_by_clause(){return this.getRuleContext(0,so)}get ruleIndex(){return rs.RULE_select_core}accept(e){return e.visitSelect_core?e.visitSelect_core(this):e.visitChildren(this)}},Tr=class extends W{static{Si(this,"Row_pattern_recognition_clauseContext")}constructor(e,t){super(e,t)}MATCH_RECOGNIZE(){return this.getToken(rs.MATCH_RECOGNIZE,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}row_pattern_common_syntax(){return this.getRuleContext(0,Or)}RPAREN(){return this.getToken(rs.RPAREN,0)}window_partition_clause(){return this.getRuleContext(0,ph)}order_by_clause(){return this.getRuleContext(0,io)}row_pattern_measures(){return this.getRuleContext(0,Ar)}row_pattern_rows_per_match(){return this.getRuleContext(0,xr)}get ruleIndex(){return rs.RULE_row_pattern_recognition_clause}accept(e){return e.visitRow_pattern_recognition_clause?e.visitRow_pattern_recognition_clause(this):e.visitChildren(this)}},xr=class extends W{static{Si(this,"Row_pattern_rows_per_matchContext")}constructor(e,t){super(e,t)}ONE(){return this.getToken(rs.ONE,0)}ROW(){return this.getToken(rs.ROW,0)}PER(){return this.getToken(rs.PER,0)}MATCH(){return this.getToken(rs.MATCH,0)}ALL(){return this.getToken(rs.ALL,0)}ROWS(){return this.getToken(rs.ROWS,0)}row_pattern_empty_match_handling(){return this.getRuleContext(0,kr)}get ruleIndex(){return rs.RULE_row_pattern_rows_per_match}accept(e){return e.visitRow_pattern_rows_per_match?e.visitRow_pattern_rows_per_match(this):e.visitChildren(this)}},kr=class extends W{static{Si(this,"Row_pattern_empty_match_handlingContext")}constructor(e,t){super(e,t)}SHOW(){return this.getToken(rs.SHOW,0)}EMPTY(){return this.getToken(rs.EMPTY,0)}MATCHES(){return this.getToken(rs.MATCHES,0)}OMIT(){return this.getToken(rs.OMIT,0)}WITH(){return this.getToken(rs.WITH,0)}UNMATCHED(){return this.getToken(rs.UNMATCHED,0)}ROWS(){return this.getToken(rs.ROWS,0)}get ruleIndex(){return rs.RULE_row_pattern_empty_match_handling}accept(e){return e.visitRow_pattern_empty_match_handling?e.visitRow_pattern_empty_match_handling(this):e.visitChildren(this)}},Ar=class extends W{static{Si(this,"Row_pattern_measuresContext")}constructor(e,t){super(e,t)}MEASURES(){return this.getToken(rs.MEASURES,0)}row_pattern_measure_list(){return this.getRuleContext(0,Nr)}get ruleIndex(){return rs.RULE_row_pattern_measures}accept(e){return e.visitRow_pattern_measures?e.visitRow_pattern_measures(this):e.visitChildren(this)}},Nr=class extends W{static{Si(this,"Row_pattern_measure_listContext")}constructor(e,t){super(e,t)}row_pattern_measure_definition(e){return void 0===e?this.getRuleContexts(Ir):this.getRuleContext(e,Ir)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_row_pattern_measure_list}accept(e){return e.visitRow_pattern_measure_list?e.visitRow_pattern_measure_list(this):e.visitChildren(this)}},Ir=class extends W{static{Si(this,"Row_pattern_measure_definitionContext")}constructor(e,t){super(e,t)}expr(){return this.getRuleContext(0,gs)}AS(){return this.getToken(rs.AS,0)}an_id(){return this.getRuleContext(0,Vh)}get ruleIndex(){return rs.RULE_row_pattern_measure_definition}accept(e){return e.visitRow_pattern_measure_definition?e.visitRow_pattern_measure_definition(this):e.visitChildren(this)}},Or=class extends W{static{Si(this,"Row_pattern_common_syntaxContext")}constructor(e,t){super(e,t)}PATTERN(){return this.getToken(rs.PATTERN,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}row_pattern(){return this.getRuleContext(0,Fr)}RPAREN(){return this.getToken(rs.RPAREN,0)}DEFINE(){return this.getToken(rs.DEFINE,0)}row_pattern_definition_list(){return this.getRuleContext(0,Qr)}AFTER(){return this.getToken(rs.AFTER,0)}MATCH(){return this.getToken(rs.MATCH,0)}row_pattern_skip_to(){return this.getRuleContext(0,Dr)}row_pattern_initial_or_seek(){return this.getRuleContext(0,Pr)}row_pattern_subset_clause(){return this.getRuleContext(0,Gr)}get ruleIndex(){return rs.RULE_row_pattern_common_syntax}accept(e){return e.visitRow_pattern_common_syntax?e.visitRow_pattern_common_syntax(this):e.visitChildren(this)}},Dr=class extends W{static{Si(this,"Row_pattern_skip_toContext")}constructor(e,t){super(e,t)}TSKIP(){return this.getToken(rs.TSKIP,0)}TO(){return this.getToken(rs.TO,0)}NEXT(){return this.getToken(rs.NEXT,0)}ROW(){return this.getToken(rs.ROW,0)}PAST(){return this.getToken(rs.PAST,0)}LAST(){return this.getToken(rs.LAST,0)}FIRST(){return this.getToken(rs.FIRST,0)}row_pattern_skip_to_variable_name(){return this.getRuleContext(0,Mr)}get ruleIndex(){return rs.RULE_row_pattern_skip_to}accept(e){return e.visitRow_pattern_skip_to?e.visitRow_pattern_skip_to(this):e.visitChildren(this)}},Mr=class extends W{static{Si(this,"Row_pattern_skip_to_variable_nameContext")}constructor(e,t){super(e,t)}row_pattern_variable_name(){return this.getRuleContext(0,to)}get ruleIndex(){return rs.RULE_row_pattern_skip_to_variable_name}accept(e){return e.visitRow_pattern_skip_to_variable_name?e.visitRow_pattern_skip_to_variable_name(this):e.visitChildren(this)}},Pr=class extends W{static{Si(this,"Row_pattern_initial_or_seekContext")}constructor(e,t){super(e,t)}INITIAL(){return this.getToken(rs.INITIAL,0)}SEEK(){return this.getToken(rs.SEEK,0)}get ruleIndex(){return rs.RULE_row_pattern_initial_or_seek}accept(e){return e.visitRow_pattern_initial_or_seek?e.visitRow_pattern_initial_or_seek(this):e.visitChildren(this)}},Fr=class extends W{static{Si(this,"Row_patternContext")}constructor(e,t){super(e,t)}row_pattern_term(e){return void 0===e?this.getRuleContexts(Ur):this.getRuleContext(e,Ur)}PIPE(e){return void 0===e?this.getTokens(rs.PIPE):this.getToken(rs.PIPE,e)}get ruleIndex(){return rs.RULE_row_pattern}accept(e){return e.visitRow_pattern?e.visitRow_pattern(this):e.visitChildren(this)}},Ur=class extends W{static{Si(this,"Row_pattern_termContext")}constructor(e,t){super(e,t)}row_pattern_factor(e){return void 0===e?this.getRuleContexts(Hr):this.getRuleContext(e,Hr)}get ruleIndex(){return rs.RULE_row_pattern_term}accept(e){return e.visitRow_pattern_term?e.visitRow_pattern_term(this):e.visitChildren(this)}},Hr=class extends W{static{Si(this,"Row_pattern_factorContext")}constructor(e,t){super(e,t)}row_pattern_primary(){return this.getRuleContext(0,Wr)}row_pattern_quantifier(){return this.getRuleContext(0,Br)}get ruleIndex(){return rs.RULE_row_pattern_factor}accept(e){return e.visitRow_pattern_factor?e.visitRow_pattern_factor(this):e.visitChildren(this)}},Br=class extends W{static{Si(this,"Row_pattern_quantifierContext")}constructor(e,t){super(e,t)}ASTERISK(){return this.getToken(rs.ASTERISK,0)}QUESTION(e){return void 0===e?this.getTokens(rs.QUESTION):this.getToken(rs.QUESTION,e)}PLUS(){return this.getToken(rs.PLUS,0)}LBRACE_CURLY(){return this.getToken(rs.LBRACE_CURLY,0)}COMMA(){return this.getToken(rs.COMMA,0)}RBRACE_CURLY(){return this.getToken(rs.RBRACE_CURLY,0)}integer(e){return void 0===e?this.getRuleContexts(Ed):this.getRuleContext(e,Ed)}get ruleIndex(){return rs.RULE_row_pattern_quantifier}accept(e){return e.visitRow_pattern_quantifier?e.visitRow_pattern_quantifier(this):e.visitChildren(this)}},Wr=class extends W{static{Si(this,"Row_pattern_primaryContext")}constructor(e,t){super(e,t)}row_pattern_primary_variable_name(){return this.getRuleContext(0,Vr)}DOLLAR(){return this.getToken(rs.DOLLAR,0)}CARET(){return this.getToken(rs.CARET,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}row_pattern(){return this.getRuleContext(0,Fr)}LBRACE_CURLY(){return this.getToken(rs.LBRACE_CURLY,0)}MINUS(e){return void 0===e?this.getTokens(rs.MINUS):this.getToken(rs.MINUS,e)}RBRACE_CURLY(){return this.getToken(rs.RBRACE_CURLY,0)}row_pattern_permute(){return this.getRuleContext(0,zr)}get ruleIndex(){return rs.RULE_row_pattern_primary}accept(e){return e.visitRow_pattern_primary?e.visitRow_pattern_primary(this):e.visitChildren(this)}},Vr=class extends W{static{Si(this,"Row_pattern_primary_variable_nameContext")}constructor(e,t){super(e,t)}row_pattern_variable_name(){return this.getRuleContext(0,to)}get ruleIndex(){return rs.RULE_row_pattern_primary_variable_name}accept(e){return e.visitRow_pattern_primary_variable_name?e.visitRow_pattern_primary_variable_name(this):e.visitChildren(this)}},zr=class extends W{static{Si(this,"Row_pattern_permuteContext")}constructor(e,t){super(e,t)}PERMUTE(){return this.getToken(rs.PERMUTE,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}row_pattern(e){return void 0===e?this.getRuleContexts(Fr):this.getRuleContext(e,Fr)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_row_pattern_permute}accept(e){return e.visitRow_pattern_permute?e.visitRow_pattern_permute(this):e.visitChildren(this)}},Gr=class extends W{static{Si(this,"Row_pattern_subset_clauseContext")}constructor(e,t){super(e,t)}SUBSET(){return this.getToken(rs.SUBSET,0)}row_pattern_subset_list(){return this.getRuleContext(0,jr)}get ruleIndex(){return rs.RULE_row_pattern_subset_clause}accept(e){return e.visitRow_pattern_subset_clause?e.visitRow_pattern_subset_clause(this):e.visitChildren(this)}},jr=class extends W{static{Si(this,"Row_pattern_subset_listContext")}constructor(e,t){super(e,t)}row_pattern_subset_item(e){return void 0===e?this.getRuleContexts(Kr):this.getRuleContext(e,Kr)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_row_pattern_subset_list}accept(e){return e.visitRow_pattern_subset_list?e.visitRow_pattern_subset_list(this):e.visitChildren(this)}},Kr=class extends W{static{Si(this,"Row_pattern_subset_itemContext")}constructor(e,t){super(e,t)}row_pattern_subset_item_variable_name(){return this.getRuleContext(0,Yr)}EQUALS(){return this.getToken(rs.EQUALS,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}row_pattern_subset_rhs(){return this.getRuleContext(0,qr)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_row_pattern_subset_item}accept(e){return e.visitRow_pattern_subset_item?e.visitRow_pattern_subset_item(this):e.visitChildren(this)}},Yr=class extends W{static{Si(this,"Row_pattern_subset_item_variable_nameContext")}constructor(e,t){super(e,t)}row_pattern_variable_name(){return this.getRuleContext(0,to)}get ruleIndex(){return rs.RULE_row_pattern_subset_item_variable_name}accept(e){return e.visitRow_pattern_subset_item_variable_name?e.visitRow_pattern_subset_item_variable_name(this):e.visitChildren(this)}},qr=class extends W{static{Si(this,"Row_pattern_subset_rhsContext")}constructor(e,t){super(e,t)}row_pattern_subset_rhs_variable_name(e){return void 0===e?this.getRuleContexts($r):this.getRuleContext(e,$r)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_row_pattern_subset_rhs}accept(e){return e.visitRow_pattern_subset_rhs?e.visitRow_pattern_subset_rhs(this):e.visitChildren(this)}},$r=class extends W{static{Si(this,"Row_pattern_subset_rhs_variable_nameContext")}constructor(e,t){super(e,t)}row_pattern_variable_name(){return this.getRuleContext(0,to)}get ruleIndex(){return rs.RULE_row_pattern_subset_rhs_variable_name}accept(e){return e.visitRow_pattern_subset_rhs_variable_name?e.visitRow_pattern_subset_rhs_variable_name(this):e.visitChildren(this)}},Qr=class extends W{static{Si(this,"Row_pattern_definition_listContext")}constructor(e,t){super(e,t)}row_pattern_definition(e){return void 0===e?this.getRuleContexts(Xr):this.getRuleContext(e,Xr)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_row_pattern_definition_list}accept(e){return e.visitRow_pattern_definition_list?e.visitRow_pattern_definition_list(this):e.visitChildren(this)}},Xr=class extends W{static{Si(this,"Row_pattern_definitionContext")}constructor(e,t){super(e,t)}row_pattern_definition_variable_name(){return this.getRuleContext(0,Zr)}AS(){return this.getToken(rs.AS,0)}row_pattern_definition_search_condition(){return this.getRuleContext(0,Jr)}get ruleIndex(){return rs.RULE_row_pattern_definition}accept(e){return e.visitRow_pattern_definition?e.visitRow_pattern_definition(this):e.visitChildren(this)}},Zr=class extends W{static{Si(this,"Row_pattern_definition_variable_nameContext")}constructor(e,t){super(e,t)}row_pattern_variable_name(){return this.getRuleContext(0,to)}get ruleIndex(){return rs.RULE_row_pattern_definition_variable_name}accept(e){return e.visitRow_pattern_definition_variable_name?e.visitRow_pattern_definition_variable_name(this):e.visitChildren(this)}},Jr=class extends W{static{Si(this,"Row_pattern_definition_search_conditionContext")}constructor(e,t){super(e,t)}search_condition(){return this.getRuleContext(0,eo)}get ruleIndex(){return rs.RULE_row_pattern_definition_search_condition}accept(e){return e.visitRow_pattern_definition_search_condition?e.visitRow_pattern_definition_search_condition(this):e.visitChildren(this)}},eo=class extends W{static{Si(this,"Search_conditionContext")}constructor(e,t){super(e,t)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_search_condition}accept(e){return e.visitSearch_condition?e.visitSearch_condition(this):e.visitChildren(this)}},to=class extends W{static{Si(this,"Row_pattern_variable_nameContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,Ih)}get ruleIndex(){return rs.RULE_row_pattern_variable_name}accept(e){return e.visitRow_pattern_variable_name?e.visitRow_pattern_variable_name(this):e.visitChildren(this)}},io=class extends W{static{Si(this,"Order_by_clauseContext")}constructor(e,t){super(e,t)}ORDER(){return this.getToken(rs.ORDER,0)}BY(){return this.getToken(rs.BY,0)}sort_specification_list(){return this.getRuleContext(0,pr)}get ruleIndex(){return rs.RULE_order_by_clause}accept(e){return e.visitOrder_by_clause?e.visitOrder_by_clause(this):e.visitChildren(this)}},so=class extends W{static{Si(this,"Ext_order_by_clauseContext")}constructor(e,t){super(e,t)}order_by_clause(){return this.getRuleContext(0,io)}ASSUME(){return this.getToken(rs.ASSUME,0)}get ruleIndex(){return rs.RULE_ext_order_by_clause}accept(e){return e.visitExt_order_by_clause?e.visitExt_order_by_clause(this):e.visitChildren(this)}},no=class extends W{static{Si(this,"Group_by_clauseContext")}constructor(e,t){super(e,t)}GROUP(){return this.getToken(rs.GROUP,0)}BY(){return this.getToken(rs.BY,0)}opt_set_quantifier(){return this.getRuleContext(0,Rr)}grouping_element_list(){return this.getRuleContext(0,ro)}COMPACT(){return this.getToken(rs.COMPACT,0)}WITH(){return this.getToken(rs.WITH,0)}an_id(){return this.getRuleContext(0,Vh)}get ruleIndex(){return rs.RULE_group_by_clause}accept(e){return e.visitGroup_by_clause?e.visitGroup_by_clause(this):e.visitChildren(this)}},ro=class extends W{static{Si(this,"Grouping_element_listContext")}constructor(e,t){super(e,t)}grouping_element(e){return void 0===e?this.getRuleContexts(oo):this.getRuleContext(e,oo)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_grouping_element_list}accept(e){return e.visitGrouping_element_list?e.visitGrouping_element_list(this):e.visitChildren(this)}},oo=class extends W{static{Si(this,"Grouping_elementContext")}constructor(e,t){super(e,t)}ordinary_grouping_set(){return this.getRuleContext(0,ao)}rollup_list(){return this.getRuleContext(0,lo)}cube_list(){return this.getRuleContext(0,ho)}grouping_sets_specification(){return this.getRuleContext(0,uo)}hopping_window_specification(){return this.getRuleContext(0,go)}get ruleIndex(){return rs.RULE_grouping_element}accept(e){return e.visitGrouping_element?e.visitGrouping_element(this):e.visitChildren(this)}},ao=class extends W{static{Si(this,"Ordinary_grouping_setContext")}constructor(e,t){super(e,t)}named_expr(){return this.getRuleContext(0,_n)}get ruleIndex(){return rs.RULE_ordinary_grouping_set}accept(e){return e.visitOrdinary_grouping_set?e.visitOrdinary_grouping_set(this):e.visitChildren(this)}},co=class extends W{static{Si(this,"Ordinary_grouping_set_listContext")}constructor(e,t){super(e,t)}ordinary_grouping_set(e){return void 0===e?this.getRuleContexts(ao):this.getRuleContext(e,ao)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_ordinary_grouping_set_list}accept(e){return e.visitOrdinary_grouping_set_list?e.visitOrdinary_grouping_set_list(this):e.visitChildren(this)}},lo=class extends W{static{Si(this,"Rollup_listContext")}constructor(e,t){super(e,t)}ROLLUP(){return this.getToken(rs.ROLLUP,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}ordinary_grouping_set_list(){return this.getRuleContext(0,co)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_rollup_list}accept(e){return e.visitRollup_list?e.visitRollup_list(this):e.visitChildren(this)}},ho=class extends W{static{Si(this,"Cube_listContext")}constructor(e,t){super(e,t)}CUBE(){return this.getToken(rs.CUBE,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}ordinary_grouping_set_list(){return this.getRuleContext(0,co)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_cube_list}accept(e){return e.visitCube_list?e.visitCube_list(this):e.visitChildren(this)}},uo=class extends W{static{Si(this,"Grouping_sets_specificationContext")}constructor(e,t){super(e,t)}GROUPING(){return this.getToken(rs.GROUPING,0)}SETS(){return this.getToken(rs.SETS,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}grouping_element_list(){return this.getRuleContext(0,ro)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_grouping_sets_specification}accept(e){return e.visitGrouping_sets_specification?e.visitGrouping_sets_specification(this):e.visitChildren(this)}},go=class extends W{static{Si(this,"Hopping_window_specificationContext")}constructor(e,t){super(e,t)}HOP(){return this.getToken(rs.HOP,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}expr(e){return void 0===e?this.getRuleContexts(gs):this.getRuleContext(e,gs)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_hopping_window_specification}accept(e){return e.visitHopping_window_specification?e.visitHopping_window_specification(this):e.visitChildren(this)}},po=class extends W{static{Si(this,"Result_columnContext")}constructor(e,t){super(e,t)}opt_id_prefix(){return this.getRuleContext(0,ed)}ASTERISK(){return this.getToken(rs.ASTERISK,0)}expr(){return this.getRuleContext(0,gs)}AS(){return this.getToken(rs.AS,0)}an_id_or_type(){return this.getRuleContext(0,zh)}an_id_as_compat(){return this.getRuleContext(0,Zh)}get ruleIndex(){return rs.RULE_result_column}accept(e){return e.visitResult_column?e.visitResult_column(this):e.visitChildren(this)}},mo=class extends W{static{Si(this,"Join_sourceContext")}constructor(e,t){super(e,t)}flatten_source(e){return void 0===e?this.getRuleContexts(vo):this.getRuleContext(e,vo)}ANY(e){return void 0===e?this.getTokens(rs.ANY):this.getToken(rs.ANY,e)}join_op(e){return void 0===e?this.getRuleContexts(Ro):this.getRuleContext(e,Ro)}join_constraint(e){return void 0===e?this.getRuleContexts(Lo):this.getRuleContext(e,Lo)}get ruleIndex(){return rs.RULE_join_source}accept(e){return e.visitJoin_source?e.visitJoin_source(this):e.visitChildren(this)}},fo=class extends W{static{Si(this,"Named_columnContext")}constructor(e,t){super(e,t)}column_name(){return this.getRuleContext(0,gn)}AS(){return this.getToken(rs.AS,0)}an_id(){return this.getRuleContext(0,Vh)}get ruleIndex(){return rs.RULE_named_column}accept(e){return e.visitNamed_column?e.visitNamed_column(this):e.visitChildren(this)}},_o=class extends W{static{Si(this,"Flatten_by_argContext")}constructor(e,t){super(e,t)}named_column(){return this.getRuleContext(0,fo)}LPAREN(){return this.getToken(rs.LPAREN,0)}named_expr_list(){return this.getRuleContext(0,vn)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(){return this.getToken(rs.COMMA,0)}get ruleIndex(){return rs.RULE_flatten_by_arg}accept(e){return e.visitFlatten_by_arg?e.visitFlatten_by_arg(this):e.visitChildren(this)}},vo=class extends W{static{Si(this,"Flatten_sourceContext")}constructor(e,t){super(e,t)}named_single_source(){return this.getRuleContext(0,Co)}FLATTEN(){return this.getToken(rs.FLATTEN,0)}BY(){return this.getToken(rs.BY,0)}flatten_by_arg(){return this.getRuleContext(0,_o)}COLUMNS(){return this.getToken(rs.COLUMNS,0)}OPTIONAL(){return this.getToken(rs.OPTIONAL,0)}LIST(){return this.getToken(rs.LIST,0)}DICT(){return this.getToken(rs.DICT,0)}get ruleIndex(){return rs.RULE_flatten_source}accept(e){return e.visitFlatten_source?e.visitFlatten_source(this):e.visitChildren(this)}},Co=class extends W{static{Si(this,"Named_single_sourceContext")}constructor(e,t){super(e,t)}single_source(){return this.getRuleContext(0,Eo)}row_pattern_recognition_clause(){return this.getRuleContext(0,Tr)}sample_clause(){return this.getRuleContext(0,bo)}tablesample_clause(){return this.getRuleContext(0,So)}AS(){return this.getToken(rs.AS,0)}an_id(){return this.getRuleContext(0,Vh)}an_id_as_compat(){return this.getRuleContext(0,Zh)}pure_column_list(){return this.getRuleContext(0,hn)}get ruleIndex(){return rs.RULE_named_single_source}accept(e){return e.visitNamed_single_source?e.visitNamed_single_source(this):e.visitChildren(this)}},Eo=class extends W{static{Si(this,"Single_sourceContext")}constructor(e,t){super(e,t)}table_ref(){return this.getRuleContext(0,ml)}LPAREN(){return this.getToken(rs.LPAREN,0)}select_stmt(){return this.getRuleContext(0,mr)}RPAREN(){return this.getToken(rs.RPAREN,0)}values_stmt(){return this.getRuleContext(0,No)}get ruleIndex(){return rs.RULE_single_source}accept(e){return e.visitSingle_source?e.visitSingle_source(this):e.visitChildren(this)}},bo=class extends W{static{Si(this,"Sample_clauseContext")}constructor(e,t){super(e,t)}SAMPLE(){return this.getToken(rs.SAMPLE,0)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_sample_clause}accept(e){return e.visitSample_clause?e.visitSample_clause(this):e.visitChildren(this)}},So=class extends W{static{Si(this,"Tablesample_clauseContext")}constructor(e,t){super(e,t)}TABLESAMPLE(){return this.getToken(rs.TABLESAMPLE,0)}sampling_mode(){return this.getRuleContext(0,yo)}LPAREN(){return this.getToken(rs.LPAREN,0)}expr(){return this.getRuleContext(0,gs)}RPAREN(){return this.getToken(rs.RPAREN,0)}repeatable_clause(){return this.getRuleContext(0,wo)}get ruleIndex(){return rs.RULE_tablesample_clause}accept(e){return e.visitTablesample_clause?e.visitTablesample_clause(this):e.visitChildren(this)}},yo=class extends W{static{Si(this,"Sampling_modeContext")}constructor(e,t){super(e,t)}BERNOULLI(){return this.getToken(rs.BERNOULLI,0)}SYSTEM(){return this.getToken(rs.SYSTEM,0)}get ruleIndex(){return rs.RULE_sampling_mode}accept(e){return e.visitSampling_mode?e.visitSampling_mode(this):e.visitChildren(this)}},wo=class extends W{static{Si(this,"Repeatable_clauseContext")}constructor(e,t){super(e,t)}REPEATABLE(){return this.getToken(rs.REPEATABLE,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}expr(){return this.getRuleContext(0,gs)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_repeatable_clause}accept(e){return e.visitRepeatable_clause?e.visitRepeatable_clause(this):e.visitChildren(this)}},Ro=class extends W{static{Si(this,"Join_opContext")}constructor(e,t){super(e,t)}COMMA(){return this.getToken(rs.COMMA,0)}JOIN(){return this.getToken(rs.JOIN,0)}INNER(){return this.getToken(rs.INNER,0)}CROSS(){return this.getToken(rs.CROSS,0)}NATURAL(){return this.getToken(rs.NATURAL,0)}LEFT(){return this.getToken(rs.LEFT,0)}RIGHT(){return this.getToken(rs.RIGHT,0)}EXCLUSION(){return this.getToken(rs.EXCLUSION,0)}FULL(){return this.getToken(rs.FULL,0)}OUTER(){return this.getToken(rs.OUTER,0)}ONLY(){return this.getToken(rs.ONLY,0)}SEMI(){return this.getToken(rs.SEMI,0)}get ruleIndex(){return rs.RULE_join_op}accept(e){return e.visitJoin_op?e.visitJoin_op(this):e.visitChildren(this)}},Lo=class extends W{static{Si(this,"Join_constraintContext")}constructor(e,t){super(e,t)}ON(){return this.getToken(rs.ON,0)}expr(){return this.getRuleContext(0,gs)}USING(){return this.getToken(rs.USING,0)}pure_column_or_named_list(){return this.getRuleContext(0,un)}get ruleIndex(){return rs.RULE_join_constraint}accept(e){return e.visitJoin_constraint?e.visitJoin_constraint(this):e.visitChildren(this)}},To=class extends W{static{Si(this,"Returning_columns_listContext")}constructor(e,t){super(e,t)}RETURNING(){return this.getToken(rs.RETURNING,0)}ASTERISK(){return this.getToken(rs.ASTERISK,0)}an_id(e){return void 0===e?this.getRuleContexts(Vh):this.getRuleContext(e,Vh)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_returning_columns_list}accept(e){return e.visitReturning_columns_list?e.visitReturning_columns_list(this):e.visitChildren(this)}},xo=class extends W{static{Si(this,"Into_table_stmtContext")}constructor(e,t){super(e,t)}INTO(){return this.getToken(rs.INTO,0)}into_simple_table_ref(){return this.getRuleContext(0,yl)}into_values_source(){return this.getRuleContext(0,Ao)}INSERT(){return this.getToken(rs.INSERT,0)}OR(){return this.getToken(rs.OR,0)}ABORT(){return this.getToken(rs.ABORT,0)}REVERT(){return this.getToken(rs.REVERT,0)}IGNORE(){return this.getToken(rs.IGNORE,0)}UPSERT(){return this.getToken(rs.UPSERT,0)}REPLACE(){return this.getToken(rs.REPLACE,0)}returning_columns_list(){return this.getRuleContext(0,To)}get ruleIndex(){return rs.RULE_into_table_stmt}accept(e){return e.visitInto_table_stmt?e.visitInto_table_stmt(this):e.visitChildren(this)}},ko=class extends W{static{Si(this,"Into_table_stmt_yqContext")}constructor(e,t){super(e,t)}INTO(){return this.getToken(rs.INTO,0)}into_simple_table_ref(){return this.getRuleContext(0,yl)}into_values_source(){return this.getRuleContext(0,Ao)}INSERT(){return this.getToken(rs.INSERT,0)}OR(){return this.getToken(rs.OR,0)}ABORT(){return this.getToken(rs.ABORT,0)}REVERT(){return this.getToken(rs.REVERT,0)}IGNORE(){return this.getToken(rs.IGNORE,0)}REPLACE(){return this.getToken(rs.REPLACE,0)}get ruleIndex(){return rs.RULE_into_table_stmt_yq}accept(e){return e.visitInto_table_stmt_yq?e.visitInto_table_stmt_yq(this):e.visitChildren(this)}},Ao=class extends W{static{Si(this,"Into_values_sourceContext")}constructor(e,t){super(e,t)}values_source(){return this.getRuleContext(0,Io)}pure_column_list(){return this.getRuleContext(0,hn)}DEFAULT(){return this.getToken(rs.DEFAULT,0)}VALUES(){return this.getToken(rs.VALUES,0)}get ruleIndex(){return rs.RULE_into_values_source}accept(e){return e.visitInto_values_source?e.visitInto_values_source(this):e.visitChildren(this)}},No=class extends W{static{Si(this,"Values_stmtContext")}constructor(e,t){super(e,t)}VALUES(){return this.getToken(rs.VALUES,0)}values_source_row_list(){return this.getRuleContext(0,Oo)}get ruleIndex(){return rs.RULE_values_stmt}accept(e){return e.visitValues_stmt?e.visitValues_stmt(this):e.visitChildren(this)}},Io=class extends W{static{Si(this,"Values_sourceContext")}constructor(e,t){super(e,t)}values_stmt(){return this.getRuleContext(0,No)}select_stmt(){return this.getRuleContext(0,mr)}get ruleIndex(){return rs.RULE_values_source}accept(e){return e.visitValues_source?e.visitValues_source(this):e.visitChildren(this)}},Oo=class extends W{static{Si(this,"Values_source_row_listContext")}constructor(e,t){super(e,t)}values_source_row(e){return void 0===e?this.getRuleContexts(Do):this.getRuleContext(e,Do)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_values_source_row_list}accept(e){return e.visitValues_source_row_list?e.visitValues_source_row_list(this):e.visitChildren(this)}},Do=class extends W{static{Si(this,"Values_source_rowContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}expr_list(){return this.getRuleContext(0,ln)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_values_source_row}accept(e){return e.visitValues_source_row?e.visitValues_source_row(this):e.visitChildren(this)}},Mo=class extends W{static{Si(this,"Simple_values_sourceContext")}constructor(e,t){super(e,t)}expr_list(){return this.getRuleContext(0,ln)}select_stmt(){return this.getRuleContext(0,mr)}get ruleIndex(){return rs.RULE_simple_values_source}accept(e){return e.visitSimple_values_source?e.visitSimple_values_source(this):e.visitChildren(this)}},Po=class extends W{static{Si(this,"Create_external_data_source_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}EXTERNAL(){return this.getToken(rs.EXTERNAL,0)}DATA(){return this.getToken(rs.DATA,0)}SOURCE(){return this.getToken(rs.SOURCE,0)}object_ref(){return this.getRuleContext(0,El)}with_table_settings(){return this.getRuleContext(0,Ea)}OR(){return this.getToken(rs.OR,0)}REPLACE(){return this.getToken(rs.REPLACE,0)}IF(){return this.getToken(rs.IF,0)}NOT(){return this.getToken(rs.NOT,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}get ruleIndex(){return rs.RULE_create_external_data_source_stmt}accept(e){return e.visitCreate_external_data_source_stmt?e.visitCreate_external_data_source_stmt(this):e.visitChildren(this)}},Fo=class extends W{static{Si(this,"Alter_external_data_source_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}EXTERNAL(){return this.getToken(rs.EXTERNAL,0)}DATA(){return this.getToken(rs.DATA,0)}SOURCE(){return this.getToken(rs.SOURCE,0)}object_ref(){return this.getRuleContext(0,El)}alter_external_data_source_action(e){return void 0===e?this.getRuleContexts(Uo):this.getRuleContext(e,Uo)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_external_data_source_stmt}accept(e){return e.visitAlter_external_data_source_stmt?e.visitAlter_external_data_source_stmt(this):e.visitChildren(this)}},Uo=class extends W{static{Si(this,"Alter_external_data_source_actionContext")}constructor(e,t){super(e,t)}alter_table_set_table_setting_uncompat(){return this.getRuleContext(0,Pa)}alter_table_set_table_setting_compat(){return this.getRuleContext(0,Fa)}alter_table_reset_table_setting(){return this.getRuleContext(0,Ua)}get ruleIndex(){return rs.RULE_alter_external_data_source_action}accept(e){return e.visitAlter_external_data_source_action?e.visitAlter_external_data_source_action(this):e.visitChildren(this)}},Ho=class extends W{static{Si(this,"Drop_external_data_source_stmtContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}EXTERNAL(){return this.getToken(rs.EXTERNAL,0)}DATA(){return this.getToken(rs.DATA,0)}SOURCE(){return this.getToken(rs.SOURCE,0)}object_ref(){return this.getRuleContext(0,El)}IF(){return this.getToken(rs.IF,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}get ruleIndex(){return rs.RULE_drop_external_data_source_stmt}accept(e){return e.visitDrop_external_data_source_stmt?e.visitDrop_external_data_source_stmt(this):e.visitChildren(this)}},Bo=class extends W{static{Si(this,"Create_view_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}VIEW(){return this.getToken(rs.VIEW,0)}object_ref(){return this.getRuleContext(0,El)}AS(){return this.getToken(rs.AS,0)}select_stmt(){return this.getRuleContext(0,mr)}IF(){return this.getToken(rs.IF,0)}NOT(){return this.getToken(rs.NOT,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}create_object_features(){return this.getRuleContext(0,Go)}get ruleIndex(){return rs.RULE_create_view_stmt}accept(e){return e.visitCreate_view_stmt?e.visitCreate_view_stmt(this):e.visitChildren(this)}},Wo=class extends W{static{Si(this,"Drop_view_stmtContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}VIEW(){return this.getToken(rs.VIEW,0)}object_ref(){return this.getRuleContext(0,El)}IF(){return this.getToken(rs.IF,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}get ruleIndex(){return rs.RULE_drop_view_stmt}accept(e){return e.visitDrop_view_stmt?e.visitDrop_view_stmt(this):e.visitChildren(this)}},Vo=class extends W{static{Si(this,"Upsert_object_stmtContext")}constructor(e,t){super(e,t)}UPSERT(){return this.getToken(rs.UPSERT,0)}OBJECT(){return this.getToken(rs.OBJECT,0)}object_ref(){return this.getRuleContext(0,El)}LPAREN(){return this.getToken(rs.LPAREN,0)}TYPE(){return this.getToken(rs.TYPE,0)}object_type_ref(){return this.getRuleContext(0,ea)}RPAREN(){return this.getToken(rs.RPAREN,0)}create_object_features(){return this.getRuleContext(0,Go)}get ruleIndex(){return rs.RULE_upsert_object_stmt}accept(e){return e.visitUpsert_object_stmt?e.visitUpsert_object_stmt(this):e.visitChildren(this)}},zo=class extends W{static{Si(this,"Create_object_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}OBJECT(){return this.getToken(rs.OBJECT,0)}object_ref(){return this.getRuleContext(0,El)}LPAREN(){return this.getToken(rs.LPAREN,0)}TYPE(){return this.getToken(rs.TYPE,0)}object_type_ref(){return this.getRuleContext(0,ea)}RPAREN(){return this.getToken(rs.RPAREN,0)}IF(){return this.getToken(rs.IF,0)}NOT(){return this.getToken(rs.NOT,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}create_object_features(){return this.getRuleContext(0,Go)}get ruleIndex(){return rs.RULE_create_object_stmt}accept(e){return e.visitCreate_object_stmt?e.visitCreate_object_stmt(this):e.visitChildren(this)}},Go=class extends W{static{Si(this,"Create_object_featuresContext")}constructor(e,t){super(e,t)}WITH(){return this.getToken(rs.WITH,0)}object_features(){return this.getRuleContext(0,Jo)}get ruleIndex(){return rs.RULE_create_object_features}accept(e){return e.visitCreate_object_features?e.visitCreate_object_features(this):e.visitChildren(this)}},jo=class extends W{static{Si(this,"Alter_object_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}OBJECT(){return this.getToken(rs.OBJECT,0)}object_ref(){return this.getRuleContext(0,El)}LPAREN(){return this.getToken(rs.LPAREN,0)}TYPE(){return this.getToken(rs.TYPE,0)}object_type_ref(){return this.getRuleContext(0,ea)}RPAREN(){return this.getToken(rs.RPAREN,0)}alter_object_features(){return this.getRuleContext(0,Ko)}get ruleIndex(){return rs.RULE_alter_object_stmt}accept(e){return e.visitAlter_object_stmt?e.visitAlter_object_stmt(this):e.visitChildren(this)}},Ko=class extends W{static{Si(this,"Alter_object_featuresContext")}constructor(e,t){super(e,t)}SET(){return this.getToken(rs.SET,0)}object_features(){return this.getRuleContext(0,Jo)}get ruleIndex(){return rs.RULE_alter_object_features}accept(e){return e.visitAlter_object_features?e.visitAlter_object_features(this):e.visitChildren(this)}},Yo=class extends W{static{Si(this,"Drop_object_stmtContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}OBJECT(){return this.getToken(rs.OBJECT,0)}object_ref(){return this.getRuleContext(0,El)}LPAREN(){return this.getToken(rs.LPAREN,0)}TYPE(){return this.getToken(rs.TYPE,0)}object_type_ref(){return this.getRuleContext(0,ea)}RPAREN(){return this.getToken(rs.RPAREN,0)}IF(){return this.getToken(rs.IF,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}drop_object_features(){return this.getRuleContext(0,qo)}get ruleIndex(){return rs.RULE_drop_object_stmt}accept(e){return e.visitDrop_object_stmt?e.visitDrop_object_stmt(this):e.visitChildren(this)}},qo=class extends W{static{Si(this,"Drop_object_featuresContext")}constructor(e,t){super(e,t)}WITH(){return this.getToken(rs.WITH,0)}object_features(){return this.getRuleContext(0,Jo)}get ruleIndex(){return rs.RULE_drop_object_features}accept(e){return e.visitDrop_object_features?e.visitDrop_object_features(this):e.visitChildren(this)}},$o=class extends W{static{Si(this,"Object_feature_valueContext")}constructor(e,t){super(e,t)}id_or_type(){return this.getRuleContext(0,id)}bind_parameter(){return this.getRuleContext(0,Rn)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}bool_value(){return this.getRuleContext(0,vd)}get ruleIndex(){return rs.RULE_object_feature_value}accept(e){return e.visitObject_feature_value?e.visitObject_feature_value(this):e.visitChildren(this)}},Qo=class extends W{static{Si(this,"Object_feature_kvContext")}constructor(e,t){super(e,t)}an_id_or_type(){return this.getRuleContext(0,zh)}EQUALS(){return this.getToken(rs.EQUALS,0)}object_feature_value(){return this.getRuleContext(0,$o)}get ruleIndex(){return rs.RULE_object_feature_kv}accept(e){return e.visitObject_feature_kv?e.visitObject_feature_kv(this):e.visitChildren(this)}},Xo=class extends W{static{Si(this,"Object_feature_flagContext")}constructor(e,t){super(e,t)}an_id_or_type(){return this.getRuleContext(0,zh)}get ruleIndex(){return rs.RULE_object_feature_flag}accept(e){return e.visitObject_feature_flag?e.visitObject_feature_flag(this):e.visitChildren(this)}},Zo=class extends W{static{Si(this,"Object_featureContext")}constructor(e,t){super(e,t)}object_feature_kv(){return this.getRuleContext(0,Qo)}object_feature_flag(){return this.getRuleContext(0,Xo)}get ruleIndex(){return rs.RULE_object_feature}accept(e){return e.visitObject_feature?e.visitObject_feature(this):e.visitChildren(this)}},Jo=class extends W{static{Si(this,"Object_featuresContext")}constructor(e,t){super(e,t)}object_feature(e){return void 0===e?this.getRuleContexts(Zo):this.getRuleContext(e,Zo)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_object_features}accept(e){return e.visitObject_features?e.visitObject_features(this):e.visitChildren(this)}},ea=class extends W{static{Si(this,"Object_type_refContext")}constructor(e,t){super(e,t)}an_id_or_type(){return this.getRuleContext(0,zh)}get ruleIndex(){return rs.RULE_object_type_ref}accept(e){return e.visitObject_type_ref?e.visitObject_type_ref(this):e.visitChildren(this)}},ta=class extends W{static{Si(this,"Create_table_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}simple_table_ref(){return this.getRuleContext(0,Sl)}LPAREN(){return this.getToken(rs.LPAREN,0)}create_table_entry(e){return void 0===e?this.getRuleContexts(ia):this.getRuleContext(e,ia)}RPAREN(){return this.getToken(rs.RPAREN,0)}TABLE(){return this.getToken(rs.TABLE,0)}TABLESTORE(){return this.getToken(rs.TABLESTORE,0)}EXTERNAL(){return this.getToken(rs.EXTERNAL,0)}TEMP(){return this.getToken(rs.TEMP,0)}TEMPORARY(){return this.getToken(rs.TEMPORARY,0)}OR(){return this.getToken(rs.OR,0)}REPLACE(){return this.getToken(rs.REPLACE,0)}IF(){return this.getToken(rs.IF,0)}NOT(){return this.getToken(rs.NOT,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}table_inherits(){return this.getRuleContext(0,va)}table_partition_by(){return this.getRuleContext(0,Ca)}with_table_settings(){return this.getRuleContext(0,Ea)}table_tablestore(){return this.getRuleContext(0,ba)}table_as_source(){return this.getRuleContext(0,ya)}get ruleIndex(){return rs.RULE_create_table_stmt}accept(e){return e.visitCreate_table_stmt?e.visitCreate_table_stmt(this):e.visitChildren(this)}},ia=class extends W{static{Si(this,"Create_table_entryContext")}constructor(e,t){super(e,t)}column_schema(){return this.getRuleContext(0,Ya)}table_constraint(){return this.getRuleContext(0,Xa)}table_index(){return this.getRuleContext(0,Za)}family_entry(){return this.getRuleContext(0,mc)}changefeed(){return this.getRuleContext(0,oc)}an_id_schema(){return this.getRuleContext(0,Gh)}get ruleIndex(){return rs.RULE_create_table_entry}accept(e){return e.visitCreate_table_entry?e.visitCreate_table_entry(this):e.visitChildren(this)}},sa=class extends W{static{Si(this,"Create_backup_collection_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}backup_collection(){return this.getRuleContext(0,ga)}WITH(){return this.getToken(rs.WITH,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}backup_collection_settings(){return this.getRuleContext(0,pa)}RPAREN(){return this.getToken(rs.RPAREN,0)}create_backup_collection_entries(){return this.getRuleContext(0,oa)}get ruleIndex(){return rs.RULE_create_backup_collection_stmt}accept(e){return e.visitCreate_backup_collection_stmt?e.visitCreate_backup_collection_stmt(this):e.visitChildren(this)}},na=class extends W{static{Si(this,"Alter_backup_collection_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}backup_collection(){return this.getRuleContext(0,ga)}alter_backup_collection_actions(){return this.getRuleContext(0,la)}alter_backup_collection_entries(){return this.getRuleContext(0,da)}get ruleIndex(){return rs.RULE_alter_backup_collection_stmt}accept(e){return e.visitAlter_backup_collection_stmt?e.visitAlter_backup_collection_stmt(this):e.visitChildren(this)}},ra=class extends W{static{Si(this,"Drop_backup_collection_stmtContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}backup_collection(){return this.getRuleContext(0,ga)}get ruleIndex(){return rs.RULE_drop_backup_collection_stmt}accept(e){return e.visitDrop_backup_collection_stmt?e.visitDrop_backup_collection_stmt(this):e.visitChildren(this)}},oa=class extends W{static{Si(this,"Create_backup_collection_entriesContext")}constructor(e,t){super(e,t)}DATABASE(){return this.getToken(rs.DATABASE,0)}create_backup_collection_entries_many(){return this.getRuleContext(0,aa)}get ruleIndex(){return rs.RULE_create_backup_collection_entries}accept(e){return e.visitCreate_backup_collection_entries?e.visitCreate_backup_collection_entries(this):e.visitChildren(this)}},aa=class extends W{static{Si(this,"Create_backup_collection_entries_manyContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}table_list(){return this.getRuleContext(0,ca)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_create_backup_collection_entries_many}accept(e){return e.visitCreate_backup_collection_entries_many?e.visitCreate_backup_collection_entries_many(this):e.visitChildren(this)}},ca=class extends W{static{Si(this,"Table_listContext")}constructor(e,t){super(e,t)}TABLE(e){return void 0===e?this.getTokens(rs.TABLE):this.getToken(rs.TABLE,e)}an_id_table(e){return void 0===e?this.getRuleContexts(qh):this.getRuleContext(e,qh)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_table_list}accept(e){return e.visitTable_list?e.visitTable_list(this):e.visitChildren(this)}},la=class extends W{static{Si(this,"Alter_backup_collection_actionsContext")}constructor(e,t){super(e,t)}alter_backup_collection_action(e){return void 0===e?this.getRuleContexts(ha):this.getRuleContext(e,ha)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_backup_collection_actions}accept(e){return e.visitAlter_backup_collection_actions?e.visitAlter_backup_collection_actions(this):e.visitChildren(this)}},ha=class extends W{static{Si(this,"Alter_backup_collection_actionContext")}constructor(e,t){super(e,t)}alter_table_set_table_setting_compat(){return this.getRuleContext(0,Fa)}alter_table_reset_table_setting(){return this.getRuleContext(0,Ua)}get ruleIndex(){return rs.RULE_alter_backup_collection_action}accept(e){return e.visitAlter_backup_collection_action?e.visitAlter_backup_collection_action(this):e.visitChildren(this)}},da=class extends W{static{Si(this,"Alter_backup_collection_entriesContext")}constructor(e,t){super(e,t)}alter_backup_collection_entry(e){return void 0===e?this.getRuleContexts(ua):this.getRuleContext(e,ua)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_backup_collection_entries}accept(e){return e.visitAlter_backup_collection_entries?e.visitAlter_backup_collection_entries(this):e.visitChildren(this)}},ua=class extends W{static{Si(this,"Alter_backup_collection_entryContext")}constructor(e,t){super(e,t)}ADD(){return this.getToken(rs.ADD,0)}DATABASE(){return this.getToken(rs.DATABASE,0)}DROP(){return this.getToken(rs.DROP,0)}TABLE(){return this.getToken(rs.TABLE,0)}an_id_table(){return this.getRuleContext(0,qh)}get ruleIndex(){return rs.RULE_alter_backup_collection_entry}accept(e){return e.visitAlter_backup_collection_entry?e.visitAlter_backup_collection_entry(this):e.visitChildren(this)}},ga=class extends W{static{Si(this,"Backup_collectionContext")}constructor(e,t){super(e,t)}BACKUP(){return this.getToken(rs.BACKUP,0)}COLLECTION(){return this.getToken(rs.COLLECTION,0)}object_ref(){return this.getRuleContext(0,El)}get ruleIndex(){return rs.RULE_backup_collection}accept(e){return e.visitBackup_collection?e.visitBackup_collection(this):e.visitChildren(this)}},pa=class extends W{static{Si(this,"Backup_collection_settingsContext")}constructor(e,t){super(e,t)}backup_collection_settings_entry(e){return void 0===e?this.getRuleContexts(ma):this.getRuleContext(e,ma)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_backup_collection_settings}accept(e){return e.visitBackup_collection_settings?e.visitBackup_collection_settings(this):e.visitChildren(this)}},ma=class extends W{static{Si(this,"Backup_collection_settings_entryContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}EQUALS(){return this.getToken(rs.EQUALS,0)}table_setting_value(){return this.getRuleContext(0,uc)}get ruleIndex(){return rs.RULE_backup_collection_settings_entry}accept(e){return e.visitBackup_collection_settings_entry?e.visitBackup_collection_settings_entry(this):e.visitChildren(this)}},fa=class extends W{static{Si(this,"Backup_stmtContext")}constructor(e,t){super(e,t)}BACKUP(){return this.getToken(rs.BACKUP,0)}object_ref(){return this.getRuleContext(0,El)}INCREMENTAL(){return this.getToken(rs.INCREMENTAL,0)}get ruleIndex(){return rs.RULE_backup_stmt}accept(e){return e.visitBackup_stmt?e.visitBackup_stmt(this):e.visitChildren(this)}},_a=class extends W{static{Si(this,"Restore_stmtContext")}constructor(e,t){super(e,t)}RESTORE(){return this.getToken(rs.RESTORE,0)}object_ref(){return this.getRuleContext(0,El)}AT(){return this.getToken(rs.AT,0)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_restore_stmt}accept(e){return e.visitRestore_stmt?e.visitRestore_stmt(this):e.visitChildren(this)}},va=class extends W{static{Si(this,"Table_inheritsContext")}constructor(e,t){super(e,t)}INHERITS(){return this.getToken(rs.INHERITS,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}simple_table_ref_core(e){return void 0===e?this.getRuleContexts(bl):this.getRuleContext(e,bl)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_table_inherits}accept(e){return e.visitTable_inherits?e.visitTable_inherits(this):e.visitChildren(this)}},Ca=class extends W{static{Si(this,"Table_partition_byContext")}constructor(e,t){super(e,t)}PARTITION(){return this.getToken(rs.PARTITION,0)}BY(){return this.getToken(rs.BY,0)}HASH(){return this.getToken(rs.HASH,0)}pure_column_list(){return this.getRuleContext(0,hn)}get ruleIndex(){return rs.RULE_table_partition_by}accept(e){return e.visitTable_partition_by?e.visitTable_partition_by(this):e.visitChildren(this)}},Ea=class extends W{static{Si(this,"With_table_settingsContext")}constructor(e,t){super(e,t)}WITH(){return this.getToken(rs.WITH,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}table_settings_entry(e){return void 0===e?this.getRuleContexts(Sa):this.getRuleContext(e,Sa)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_with_table_settings}accept(e){return e.visitWith_table_settings?e.visitWith_table_settings(this):e.visitChildren(this)}},ba=class extends W{static{Si(this,"Table_tablestoreContext")}constructor(e,t){super(e,t)}TABLESTORE(){return this.getToken(rs.TABLESTORE,0)}simple_table_ref_core(){return this.getRuleContext(0,bl)}get ruleIndex(){return rs.RULE_table_tablestore}accept(e){return e.visitTable_tablestore?e.visitTable_tablestore(this):e.visitChildren(this)}},Sa=class extends W{static{Si(this,"Table_settings_entryContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}EQUALS(){return this.getToken(rs.EQUALS,0)}table_setting_value(){return this.getRuleContext(0,uc)}get ruleIndex(){return rs.RULE_table_settings_entry}accept(e){return e.visitTable_settings_entry?e.visitTable_settings_entry(this):e.visitChildren(this)}},ya=class extends W{static{Si(this,"Table_as_sourceContext")}constructor(e,t){super(e,t)}AS(){return this.getToken(rs.AS,0)}values_source(){return this.getRuleContext(0,Io)}get ruleIndex(){return rs.RULE_table_as_source}accept(e){return e.visitTable_as_source?e.visitTable_as_source(this):e.visitChildren(this)}},wa=class extends W{static{Si(this,"Alter_table_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}TABLE(){return this.getToken(rs.TABLE,0)}simple_table_ref(){return this.getRuleContext(0,Sl)}alter_table_action(e){return void 0===e?this.getRuleContexts(Ra):this.getRuleContext(e,Ra)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_table_stmt}accept(e){return e.visitAlter_table_stmt?e.visitAlter_table_stmt(this):e.visitChildren(this)}},Ra=class extends W{static{Si(this,"Alter_table_actionContext")}constructor(e,t){super(e,t)}alter_table_add_column(){return this.getRuleContext(0,Aa)}alter_table_drop_column(){return this.getRuleContext(0,Na)}alter_table_alter_column(){return this.getRuleContext(0,Ia)}alter_table_add_column_family(){return this.getRuleContext(0,Da)}alter_table_alter_column_family(){return this.getRuleContext(0,Ma)}alter_table_set_table_setting_uncompat(){return this.getRuleContext(0,Pa)}alter_table_set_table_setting_compat(){return this.getRuleContext(0,Fa)}alter_table_reset_table_setting(){return this.getRuleContext(0,Ua)}alter_table_add_index(){return this.getRuleContext(0,Ha)}alter_table_drop_index(){return this.getRuleContext(0,Ba)}alter_table_rename_to(){return this.getRuleContext(0,Wa)}alter_table_add_changefeed(){return this.getRuleContext(0,za)}alter_table_alter_changefeed(){return this.getRuleContext(0,Ga)}alter_table_drop_changefeed(){return this.getRuleContext(0,ja)}alter_table_rename_index_to(){return this.getRuleContext(0,Va)}alter_table_alter_index(){return this.getRuleContext(0,Ka)}alter_table_alter_column_drop_not_null(){return this.getRuleContext(0,Oa)}get ruleIndex(){return rs.RULE_alter_table_action}accept(e){return e.visitAlter_table_action?e.visitAlter_table_action(this):e.visitChildren(this)}},La=class extends W{static{Si(this,"Alter_external_table_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}EXTERNAL(){return this.getToken(rs.EXTERNAL,0)}TABLE(){return this.getToken(rs.TABLE,0)}simple_table_ref(){return this.getRuleContext(0,Sl)}alter_external_table_action(e){return void 0===e?this.getRuleContexts(Ta):this.getRuleContext(e,Ta)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_external_table_stmt}accept(e){return e.visitAlter_external_table_stmt?e.visitAlter_external_table_stmt(this):e.visitChildren(this)}},Ta=class extends W{static{Si(this,"Alter_external_table_actionContext")}constructor(e,t){super(e,t)}alter_table_add_column(){return this.getRuleContext(0,Aa)}alter_table_drop_column(){return this.getRuleContext(0,Na)}alter_table_set_table_setting_uncompat(){return this.getRuleContext(0,Pa)}alter_table_set_table_setting_compat(){return this.getRuleContext(0,Fa)}alter_table_reset_table_setting(){return this.getRuleContext(0,Ua)}get ruleIndex(){return rs.RULE_alter_external_table_action}accept(e){return e.visitAlter_external_table_action?e.visitAlter_external_table_action(this):e.visitChildren(this)}},xa=class extends W{static{Si(this,"Alter_table_store_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}TABLESTORE(){return this.getToken(rs.TABLESTORE,0)}object_ref(){return this.getRuleContext(0,El)}alter_table_store_action(e){return void 0===e?this.getRuleContexts(ka):this.getRuleContext(e,ka)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_table_store_stmt}accept(e){return e.visitAlter_table_store_stmt?e.visitAlter_table_store_stmt(this):e.visitChildren(this)}},ka=class extends W{static{Si(this,"Alter_table_store_actionContext")}constructor(e,t){super(e,t)}alter_table_add_column(){return this.getRuleContext(0,Aa)}alter_table_drop_column(){return this.getRuleContext(0,Na)}get ruleIndex(){return rs.RULE_alter_table_store_action}accept(e){return e.visitAlter_table_store_action?e.visitAlter_table_store_action(this):e.visitChildren(this)}},Aa=class extends W{static{Si(this,"Alter_table_add_columnContext")}constructor(e,t){super(e,t)}ADD(){return this.getToken(rs.ADD,0)}column_schema(){return this.getRuleContext(0,Ya)}COLUMN(){return this.getToken(rs.COLUMN,0)}get ruleIndex(){return rs.RULE_alter_table_add_column}accept(e){return e.visitAlter_table_add_column?e.visitAlter_table_add_column(this):e.visitChildren(this)}},Na=class extends W{static{Si(this,"Alter_table_drop_columnContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}an_id(){return this.getRuleContext(0,Vh)}COLUMN(){return this.getToken(rs.COLUMN,0)}get ruleIndex(){return rs.RULE_alter_table_drop_column}accept(e){return e.visitAlter_table_drop_column?e.visitAlter_table_drop_column(this):e.visitChildren(this)}},Ia=class extends W{static{Si(this,"Alter_table_alter_columnContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}COLUMN(){return this.getToken(rs.COLUMN,0)}an_id(){return this.getRuleContext(0,Vh)}SET(){return this.getToken(rs.SET,0)}family_relation(){return this.getRuleContext(0,qa)}get ruleIndex(){return rs.RULE_alter_table_alter_column}accept(e){return e.visitAlter_table_alter_column?e.visitAlter_table_alter_column(this):e.visitChildren(this)}},Oa=class extends W{static{Si(this,"Alter_table_alter_column_drop_not_nullContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}COLUMN(){return this.getToken(rs.COLUMN,0)}an_id(){return this.getRuleContext(0,Vh)}DROP(){return this.getToken(rs.DROP,0)}NOT(){return this.getToken(rs.NOT,0)}NULL(){return this.getToken(rs.NULL,0)}get ruleIndex(){return rs.RULE_alter_table_alter_column_drop_not_null}accept(e){return e.visitAlter_table_alter_column_drop_not_null?e.visitAlter_table_alter_column_drop_not_null(this):e.visitChildren(this)}},Da=class extends W{static{Si(this,"Alter_table_add_column_familyContext")}constructor(e,t){super(e,t)}ADD(){return this.getToken(rs.ADD,0)}family_entry(){return this.getRuleContext(0,mc)}get ruleIndex(){return rs.RULE_alter_table_add_column_family}accept(e){return e.visitAlter_table_add_column_family?e.visitAlter_table_add_column_family(this):e.visitChildren(this)}},Ma=class extends W{static{Si(this,"Alter_table_alter_column_familyContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}FAMILY(){return this.getToken(rs.FAMILY,0)}an_id(e){return void 0===e?this.getRuleContexts(Vh):this.getRuleContext(e,Vh)}SET(){return this.getToken(rs.SET,0)}family_setting_value(){return this.getRuleContext(0,vc)}get ruleIndex(){return rs.RULE_alter_table_alter_column_family}accept(e){return e.visitAlter_table_alter_column_family?e.visitAlter_table_alter_column_family(this):e.visitChildren(this)}},Pa=class extends W{static{Si(this,"Alter_table_set_table_setting_uncompatContext")}constructor(e,t){super(e,t)}SET(){return this.getToken(rs.SET,0)}an_id(){return this.getRuleContext(0,Vh)}table_setting_value(){return this.getRuleContext(0,uc)}get ruleIndex(){return rs.RULE_alter_table_set_table_setting_uncompat}accept(e){return e.visitAlter_table_set_table_setting_uncompat?e.visitAlter_table_set_table_setting_uncompat(this):e.visitChildren(this)}},Fa=class extends W{static{Si(this,"Alter_table_set_table_setting_compatContext")}constructor(e,t){super(e,t)}SET(){return this.getToken(rs.SET,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}alter_table_setting_entry(e){return void 0===e?this.getRuleContexts(dc):this.getRuleContext(e,dc)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_table_set_table_setting_compat}accept(e){return e.visitAlter_table_set_table_setting_compat?e.visitAlter_table_set_table_setting_compat(this):e.visitChildren(this)}},Ua=class extends W{static{Si(this,"Alter_table_reset_table_settingContext")}constructor(e,t){super(e,t)}RESET(){return this.getToken(rs.RESET,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}an_id(e){return void 0===e?this.getRuleContexts(Vh):this.getRuleContext(e,Vh)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_table_reset_table_setting}accept(e){return e.visitAlter_table_reset_table_setting?e.visitAlter_table_reset_table_setting(this):e.visitChildren(this)}},Ha=class extends W{static{Si(this,"Alter_table_add_indexContext")}constructor(e,t){super(e,t)}ADD(){return this.getToken(rs.ADD,0)}table_index(){return this.getRuleContext(0,Za)}get ruleIndex(){return rs.RULE_alter_table_add_index}accept(e){return e.visitAlter_table_add_index?e.visitAlter_table_add_index(this):e.visitChildren(this)}},Ba=class extends W{static{Si(this,"Alter_table_drop_indexContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}INDEX(){return this.getToken(rs.INDEX,0)}an_id(){return this.getRuleContext(0,Vh)}get ruleIndex(){return rs.RULE_alter_table_drop_index}accept(e){return e.visitAlter_table_drop_index?e.visitAlter_table_drop_index(this):e.visitChildren(this)}},Wa=class extends W{static{Si(this,"Alter_table_rename_toContext")}constructor(e,t){super(e,t)}RENAME(){return this.getToken(rs.RENAME,0)}TO(){return this.getToken(rs.TO,0)}an_id_table(){return this.getRuleContext(0,qh)}get ruleIndex(){return rs.RULE_alter_table_rename_to}accept(e){return e.visitAlter_table_rename_to?e.visitAlter_table_rename_to(this):e.visitChildren(this)}},Va=class extends W{static{Si(this,"Alter_table_rename_index_toContext")}constructor(e,t){super(e,t)}RENAME(){return this.getToken(rs.RENAME,0)}INDEX(){return this.getToken(rs.INDEX,0)}an_id(e){return void 0===e?this.getRuleContexts(Vh):this.getRuleContext(e,Vh)}TO(){return this.getToken(rs.TO,0)}get ruleIndex(){return rs.RULE_alter_table_rename_index_to}accept(e){return e.visitAlter_table_rename_index_to?e.visitAlter_table_rename_index_to(this):e.visitChildren(this)}},za=class extends W{static{Si(this,"Alter_table_add_changefeedContext")}constructor(e,t){super(e,t)}ADD(){return this.getToken(rs.ADD,0)}changefeed(){return this.getRuleContext(0,oc)}get ruleIndex(){return rs.RULE_alter_table_add_changefeed}accept(e){return e.visitAlter_table_add_changefeed?e.visitAlter_table_add_changefeed(this):e.visitChildren(this)}},Ga=class extends W{static{Si(this,"Alter_table_alter_changefeedContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}CHANGEFEED(){return this.getToken(rs.CHANGEFEED,0)}an_id(){return this.getRuleContext(0,Vh)}changefeed_alter_settings(){return this.getRuleContext(0,hc)}get ruleIndex(){return rs.RULE_alter_table_alter_changefeed}accept(e){return e.visitAlter_table_alter_changefeed?e.visitAlter_table_alter_changefeed(this):e.visitChildren(this)}},ja=class extends W{static{Si(this,"Alter_table_drop_changefeedContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}CHANGEFEED(){return this.getToken(rs.CHANGEFEED,0)}an_id(){return this.getRuleContext(0,Vh)}get ruleIndex(){return rs.RULE_alter_table_drop_changefeed}accept(e){return e.visitAlter_table_drop_changefeed?e.visitAlter_table_drop_changefeed(this):e.visitChildren(this)}},Ka=class extends W{static{Si(this,"Alter_table_alter_indexContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}INDEX(){return this.getToken(rs.INDEX,0)}an_id(){return this.getRuleContext(0,Vh)}alter_table_alter_index_action(){return this.getRuleContext(0,bc)}get ruleIndex(){return rs.RULE_alter_table_alter_index}accept(e){return e.visitAlter_table_alter_index?e.visitAlter_table_alter_index(this):e.visitChildren(this)}},Ya=class extends W{static{Si(this,"Column_schemaContext")}constructor(e,t){super(e,t)}an_id_schema(){return this.getRuleContext(0,Gh)}type_name_or_bind(){return this.getRuleContext(0,tr)}opt_column_constraints(){return this.getRuleContext(0,$a)}family_relation(){return this.getRuleContext(0,qa)}get ruleIndex(){return rs.RULE_column_schema}accept(e){return e.visitColumn_schema?e.visitColumn_schema(this):e.visitChildren(this)}},qa=class extends W{static{Si(this,"Family_relationContext")}constructor(e,t){super(e,t)}FAMILY(){return this.getToken(rs.FAMILY,0)}an_id(){return this.getRuleContext(0,Vh)}get ruleIndex(){return rs.RULE_family_relation}accept(e){return e.visitFamily_relation?e.visitFamily_relation(this):e.visitChildren(this)}},$a=class extends W{static{Si(this,"Opt_column_constraintsContext")}constructor(e,t){super(e,t)}NULL(){return this.getToken(rs.NULL,0)}DEFAULT(){return this.getToken(rs.DEFAULT,0)}expr(){return this.getRuleContext(0,gs)}NOT(){return this.getToken(rs.NOT,0)}get ruleIndex(){return rs.RULE_opt_column_constraints}accept(e){return e.visitOpt_column_constraints?e.visitOpt_column_constraints(this):e.visitChildren(this)}},Qa=class extends W{static{Si(this,"Column_order_by_specificationContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}ASC(){return this.getToken(rs.ASC,0)}DESC(){return this.getToken(rs.DESC,0)}get ruleIndex(){return rs.RULE_column_order_by_specification}accept(e){return e.visitColumn_order_by_specification?e.visitColumn_order_by_specification(this):e.visitChildren(this)}},Xa=class extends W{static{Si(this,"Table_constraintContext")}constructor(e,t){super(e,t)}PRIMARY(){return this.getToken(rs.PRIMARY,0)}KEY(){return this.getToken(rs.KEY,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}an_id(e){return void 0===e?this.getRuleContexts(Vh):this.getRuleContext(e,Vh)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}PARTITION(){return this.getToken(rs.PARTITION,0)}BY(){return this.getToken(rs.BY,0)}ORDER(){return this.getToken(rs.ORDER,0)}column_order_by_specification(e){return void 0===e?this.getRuleContexts(Qa):this.getRuleContext(e,Qa)}get ruleIndex(){return rs.RULE_table_constraint}accept(e){return e.visitTable_constraint?e.visitTable_constraint(this):e.visitChildren(this)}},Za=class extends W{static{Si(this,"Table_indexContext")}constructor(e,t){super(e,t)}INDEX(){return this.getToken(rs.INDEX,0)}an_id(){return this.getRuleContext(0,Vh)}table_index_type(){return this.getRuleContext(0,Ja)}ON(){return this.getToken(rs.ON,0)}LPAREN(e){return void 0===e?this.getTokens(rs.LPAREN):this.getToken(rs.LPAREN,e)}an_id_schema(e){return void 0===e?this.getRuleContexts(Gh):this.getRuleContext(e,Gh)}RPAREN(e){return void 0===e?this.getTokens(rs.RPAREN):this.getToken(rs.RPAREN,e)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}COVER(){return this.getToken(rs.COVER,0)}with_index_settings(){return this.getRuleContext(0,sc)}get ruleIndex(){return rs.RULE_table_index}accept(e){return e.visitTable_index?e.visitTable_index(this):e.visitChildren(this)}},Ja=class extends W{static{Si(this,"Table_index_typeContext")}constructor(e,t){super(e,t)}global_index(){return this.getRuleContext(0,ec)}local_index(){return this.getRuleContext(0,tc)}USING(){return this.getToken(rs.USING,0)}index_subtype(){return this.getRuleContext(0,ic)}get ruleIndex(){return rs.RULE_table_index_type}accept(e){return e.visitTable_index_type?e.visitTable_index_type(this):e.visitChildren(this)}},ec=class extends W{static{Si(this,"Global_indexContext")}constructor(e,t){super(e,t)}GLOBAL(){return this.getToken(rs.GLOBAL,0)}UNIQUE(){return this.getToken(rs.UNIQUE,0)}SYNC(){return this.getToken(rs.SYNC,0)}ASYNC(){return this.getToken(rs.ASYNC,0)}get ruleIndex(){return rs.RULE_global_index}accept(e){return e.visitGlobal_index?e.visitGlobal_index(this):e.visitChildren(this)}},tc=class extends W{static{Si(this,"Local_indexContext")}constructor(e,t){super(e,t)}LOCAL(){return this.getToken(rs.LOCAL,0)}get ruleIndex(){return rs.RULE_local_index}accept(e){return e.visitLocal_index?e.visitLocal_index(this):e.visitChildren(this)}},ic=class extends W{static{Si(this,"Index_subtypeContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}get ruleIndex(){return rs.RULE_index_subtype}accept(e){return e.visitIndex_subtype?e.visitIndex_subtype(this):e.visitChildren(this)}},sc=class extends W{static{Si(this,"With_index_settingsContext")}constructor(e,t){super(e,t)}WITH(){return this.getToken(rs.WITH,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}index_setting_entry(e){return void 0===e?this.getRuleContexts(nc):this.getRuleContext(e,nc)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_with_index_settings}accept(e){return e.visitWith_index_settings?e.visitWith_index_settings(this):e.visitChildren(this)}},nc=class extends W{static{Si(this,"Index_setting_entryContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}EQUALS(){return this.getToken(rs.EQUALS,0)}index_setting_value(){return this.getRuleContext(0,rc)}get ruleIndex(){return rs.RULE_index_setting_entry}accept(e){return e.visitIndex_setting_entry?e.visitIndex_setting_entry(this):e.visitChildren(this)}},rc=class extends W{static{Si(this,"Index_setting_valueContext")}constructor(e,t){super(e,t)}id_or_type(){return this.getRuleContext(0,id)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}integer(){return this.getRuleContext(0,Ed)}bool_value(){return this.getRuleContext(0,vd)}get ruleIndex(){return rs.RULE_index_setting_value}accept(e){return e.visitIndex_setting_value?e.visitIndex_setting_value(this):e.visitChildren(this)}},oc=class extends W{static{Si(this,"ChangefeedContext")}constructor(e,t){super(e,t)}CHANGEFEED(){return this.getToken(rs.CHANGEFEED,0)}an_id(){return this.getRuleContext(0,Vh)}WITH(){return this.getToken(rs.WITH,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}changefeed_settings(){return this.getRuleContext(0,ac)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_changefeed}accept(e){return e.visitChangefeed?e.visitChangefeed(this):e.visitChildren(this)}},ac=class extends W{static{Si(this,"Changefeed_settingsContext")}constructor(e,t){super(e,t)}changefeed_settings_entry(e){return void 0===e?this.getRuleContexts(cc):this.getRuleContext(e,cc)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_changefeed_settings}accept(e){return e.visitChangefeed_settings?e.visitChangefeed_settings(this):e.visitChildren(this)}},cc=class extends W{static{Si(this,"Changefeed_settings_entryContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}EQUALS(){return this.getToken(rs.EQUALS,0)}changefeed_setting_value(){return this.getRuleContext(0,lc)}get ruleIndex(){return rs.RULE_changefeed_settings_entry}accept(e){return e.visitChangefeed_settings_entry?e.visitChangefeed_settings_entry(this):e.visitChildren(this)}},lc=class extends W{static{Si(this,"Changefeed_setting_valueContext")}constructor(e,t){super(e,t)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_changefeed_setting_value}accept(e){return e.visitChangefeed_setting_value?e.visitChangefeed_setting_value(this):e.visitChildren(this)}},hc=class extends W{static{Si(this,"Changefeed_alter_settingsContext")}constructor(e,t){super(e,t)}DISABLE(){return this.getToken(rs.DISABLE,0)}SET(){return this.getToken(rs.SET,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}changefeed_settings(){return this.getRuleContext(0,ac)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_changefeed_alter_settings}accept(e){return e.visitChangefeed_alter_settings?e.visitChangefeed_alter_settings(this):e.visitChildren(this)}},dc=class extends W{static{Si(this,"Alter_table_setting_entryContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}EQUALS(){return this.getToken(rs.EQUALS,0)}table_setting_value(){return this.getRuleContext(0,uc)}get ruleIndex(){return rs.RULE_alter_table_setting_entry}accept(e){return e.visitAlter_table_setting_entry?e.visitAlter_table_setting_entry(this):e.visitChildren(this)}},uc=class extends W{static{Si(this,"Table_setting_valueContext")}constructor(e,t){super(e,t)}id(){return this.getRuleContext(0,Oh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}integer(){return this.getRuleContext(0,Ed)}split_boundaries(){return this.getRuleContext(0,Cc)}ttl_tier_list(){return this.getRuleContext(0,gc)}ON(){return this.getToken(rs.ON,0)}an_id(){return this.getRuleContext(0,Vh)}AS(){return this.getToken(rs.AS,0)}SECONDS(){return this.getToken(rs.SECONDS,0)}MILLISECONDS(){return this.getToken(rs.MILLISECONDS,0)}MICROSECONDS(){return this.getToken(rs.MICROSECONDS,0)}NANOSECONDS(){return this.getToken(rs.NANOSECONDS,0)}bool_value(){return this.getRuleContext(0,vd)}get ruleIndex(){return rs.RULE_table_setting_value}accept(e){return e.visitTable_setting_value?e.visitTable_setting_value(this):e.visitChildren(this)}},gc=class extends W{static{Si(this,"Ttl_tier_listContext")}constructor(e,t){super(e,t)}expr(e){return void 0===e?this.getRuleContexts(gs):this.getRuleContext(e,gs)}ttl_tier_action(e){return void 0===e?this.getRuleContexts(pc):this.getRuleContext(e,pc)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_ttl_tier_list}accept(e){return e.visitTtl_tier_list?e.visitTtl_tier_list(this):e.visitChildren(this)}},pc=class extends W{static{Si(this,"Ttl_tier_actionContext")}constructor(e,t){super(e,t)}TO(){return this.getToken(rs.TO,0)}EXTERNAL(){return this.getToken(rs.EXTERNAL,0)}DATA(){return this.getToken(rs.DATA,0)}SOURCE(){return this.getToken(rs.SOURCE,0)}an_id(){return this.getRuleContext(0,Vh)}DELETE(){return this.getToken(rs.DELETE,0)}get ruleIndex(){return rs.RULE_ttl_tier_action}accept(e){return e.visitTtl_tier_action?e.visitTtl_tier_action(this):e.visitChildren(this)}},mc=class extends W{static{Si(this,"Family_entryContext")}constructor(e,t){super(e,t)}FAMILY(){return this.getToken(rs.FAMILY,0)}an_id(){return this.getRuleContext(0,Vh)}family_settings(){return this.getRuleContext(0,fc)}get ruleIndex(){return rs.RULE_family_entry}accept(e){return e.visitFamily_entry?e.visitFamily_entry(this):e.visitChildren(this)}},fc=class extends W{static{Si(this,"Family_settingsContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}family_settings_entry(e){return void 0===e?this.getRuleContexts(_c):this.getRuleContext(e,_c)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_family_settings}accept(e){return e.visitFamily_settings?e.visitFamily_settings(this):e.visitChildren(this)}},_c=class extends W{static{Si(this,"Family_settings_entryContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}EQUALS(){return this.getToken(rs.EQUALS,0)}family_setting_value(){return this.getRuleContext(0,vc)}get ruleIndex(){return rs.RULE_family_settings_entry}accept(e){return e.visitFamily_settings_entry?e.visitFamily_settings_entry(this):e.visitChildren(this)}},vc=class extends W{static{Si(this,"Family_setting_valueContext")}constructor(e,t){super(e,t)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}integer(){return this.getRuleContext(0,Ed)}get ruleIndex(){return rs.RULE_family_setting_value}accept(e){return e.visitFamily_setting_value?e.visitFamily_setting_value(this):e.visitChildren(this)}},Cc=class extends W{static{Si(this,"Split_boundariesContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}literal_value_list(e){return void 0===e?this.getRuleContexts(Ec):this.getRuleContext(e,Ec)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_split_boundaries}accept(e){return e.visitSplit_boundaries?e.visitSplit_boundaries(this):e.visitChildren(this)}},Ec=class extends W{static{Si(this,"Literal_value_listContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}literal_value(e){return void 0===e?this.getRuleContexts(wn):this.getRuleContext(e,wn)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_literal_value_list}accept(e){return e.visitLiteral_value_list?e.visitLiteral_value_list(this):e.visitChildren(this)}},bc=class extends W{static{Si(this,"Alter_table_alter_index_actionContext")}constructor(e,t){super(e,t)}alter_table_set_table_setting_uncompat(){return this.getRuleContext(0,Pa)}alter_table_set_table_setting_compat(){return this.getRuleContext(0,Fa)}alter_table_reset_table_setting(){return this.getRuleContext(0,Ua)}get ruleIndex(){return rs.RULE_alter_table_alter_index_action}accept(e){return e.visitAlter_table_alter_index_action?e.visitAlter_table_alter_index_action(this):e.visitChildren(this)}},Sc=class extends W{static{Si(this,"Drop_table_stmtContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}simple_table_ref(){return this.getRuleContext(0,Sl)}TABLE(){return this.getToken(rs.TABLE,0)}TABLESTORE(){return this.getToken(rs.TABLESTORE,0)}EXTERNAL(){return this.getToken(rs.EXTERNAL,0)}IF(){return this.getToken(rs.IF,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}get ruleIndex(){return rs.RULE_drop_table_stmt}accept(e){return e.visitDrop_table_stmt?e.visitDrop_table_stmt(this):e.visitChildren(this)}},yc=class extends W{static{Si(this,"Create_user_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}USER(){return this.getToken(rs.USER,0)}role_name(){return this.getRuleContext(0,xc)}user_option(e){return void 0===e?this.getRuleContexts(kc):this.getRuleContext(e,kc)}get ruleIndex(){return rs.RULE_create_user_stmt}accept(e){return e.visitCreate_user_stmt?e.visitCreate_user_stmt(this):e.visitChildren(this)}},wc=class extends W{static{Si(this,"Alter_user_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}USER(){return this.getToken(rs.USER,0)}role_name(e){return void 0===e?this.getRuleContexts(xc):this.getRuleContext(e,xc)}RENAME(){return this.getToken(rs.RENAME,0)}TO(){return this.getToken(rs.TO,0)}WITH(){return this.getToken(rs.WITH,0)}user_option(e){return void 0===e?this.getRuleContexts(kc):this.getRuleContext(e,kc)}get ruleIndex(){return rs.RULE_alter_user_stmt}accept(e){return e.visitAlter_user_stmt?e.visitAlter_user_stmt(this):e.visitChildren(this)}},Rc=class extends W{static{Si(this,"Create_group_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}GROUP(){return this.getToken(rs.GROUP,0)}role_name(e){return void 0===e?this.getRuleContexts(xc):this.getRuleContext(e,xc)}WITH(){return this.getToken(rs.WITH,0)}USER(){return this.getToken(rs.USER,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_create_group_stmt}accept(e){return e.visitCreate_group_stmt?e.visitCreate_group_stmt(this):e.visitChildren(this)}},Lc=class extends W{static{Si(this,"Alter_group_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}GROUP(){return this.getToken(rs.GROUP,0)}role_name(e){return void 0===e?this.getRuleContexts(xc):this.getRuleContext(e,xc)}USER(){return this.getToken(rs.USER,0)}RENAME(){return this.getToken(rs.RENAME,0)}TO(){return this.getToken(rs.TO,0)}ADD(){return this.getToken(rs.ADD,0)}DROP(){return this.getToken(rs.DROP,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_group_stmt}accept(e){return e.visitAlter_group_stmt?e.visitAlter_group_stmt(this):e.visitChildren(this)}},Tc=class extends W{static{Si(this,"Drop_role_stmtContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}role_name(e){return void 0===e?this.getRuleContexts(xc):this.getRuleContext(e,xc)}USER(){return this.getToken(rs.USER,0)}GROUP(){return this.getToken(rs.GROUP,0)}IF(){return this.getToken(rs.IF,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_drop_role_stmt}accept(e){return e.visitDrop_role_stmt?e.visitDrop_role_stmt(this):e.visitChildren(this)}},xc=class extends W{static{Si(this,"Role_nameContext")}constructor(e,t){super(e,t)}an_id_or_type(){return this.getRuleContext(0,zh)}bind_parameter(){return this.getRuleContext(0,Rn)}get ruleIndex(){return rs.RULE_role_name}accept(e){return e.visitRole_name?e.visitRole_name(this):e.visitChildren(this)}},kc=class extends W{static{Si(this,"User_optionContext")}constructor(e,t){super(e,t)}authentication_option(){return this.getRuleContext(0,Ac)}login_option(){return this.getRuleContext(0,Oc)}get ruleIndex(){return rs.RULE_user_option}accept(e){return e.visitUser_option?e.visitUser_option(this):e.visitChildren(this)}},Ac=class extends W{static{Si(this,"Authentication_optionContext")}constructor(e,t){super(e,t)}password_option(){return this.getRuleContext(0,Nc)}hash_option(){return this.getRuleContext(0,Ic)}get ruleIndex(){return rs.RULE_authentication_option}accept(e){return e.visitAuthentication_option?e.visitAuthentication_option(this):e.visitChildren(this)}},Nc=class extends W{static{Si(this,"Password_optionContext")}constructor(e,t){super(e,t)}PASSWORD(){return this.getToken(rs.PASSWORD,0)}expr(){return this.getRuleContext(0,gs)}ENCRYPTED(){return this.getToken(rs.ENCRYPTED,0)}get ruleIndex(){return rs.RULE_password_option}accept(e){return e.visitPassword_option?e.visitPassword_option(this):e.visitChildren(this)}},Ic=class extends W{static{Si(this,"Hash_optionContext")}constructor(e,t){super(e,t)}HASH(){return this.getToken(rs.HASH,0)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_hash_option}accept(e){return e.visitHash_option?e.visitHash_option(this):e.visitChildren(this)}},Oc=class extends W{static{Si(this,"Login_optionContext")}constructor(e,t){super(e,t)}LOGIN(){return this.getToken(rs.LOGIN,0)}NOLOGIN(){return this.getToken(rs.NOLOGIN,0)}get ruleIndex(){return rs.RULE_login_option}accept(e){return e.visitLogin_option?e.visitLogin_option(this):e.visitChildren(this)}},Dc=class extends W{static{Si(this,"Grant_permissions_stmtContext")}constructor(e,t){super(e,t)}GRANT(e){return void 0===e?this.getTokens(rs.GRANT):this.getToken(rs.GRANT,e)}permission_name_target(){return this.getRuleContext(0,Uc)}ON(){return this.getToken(rs.ON,0)}an_id_schema(e){return void 0===e?this.getRuleContexts(Gh):this.getRuleContext(e,Gh)}TO(){return this.getToken(rs.TO,0)}role_name(e){return void 0===e?this.getRuleContexts(xc):this.getRuleContext(e,xc)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}WITH(){return this.getToken(rs.WITH,0)}OPTION(){return this.getToken(rs.OPTION,0)}get ruleIndex(){return rs.RULE_grant_permissions_stmt}accept(e){return e.visitGrant_permissions_stmt?e.visitGrant_permissions_stmt(this):e.visitChildren(this)}},Mc=class extends W{static{Si(this,"Revoke_permissions_stmtContext")}constructor(e,t){super(e,t)}REVOKE(){return this.getToken(rs.REVOKE,0)}permission_name_target(){return this.getRuleContext(0,Uc)}ON(){return this.getToken(rs.ON,0)}an_id_schema(e){return void 0===e?this.getRuleContexts(Gh):this.getRuleContext(e,Gh)}FROM(){return this.getToken(rs.FROM,0)}role_name(e){return void 0===e?this.getRuleContexts(xc):this.getRuleContext(e,xc)}GRANT(){return this.getToken(rs.GRANT,0)}OPTION(){return this.getToken(rs.OPTION,0)}FOR(){return this.getToken(rs.FOR,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_revoke_permissions_stmt}accept(e){return e.visitRevoke_permissions_stmt?e.visitRevoke_permissions_stmt(this):e.visitChildren(this)}},Pc=class extends W{static{Si(this,"Permission_idContext")}constructor(e,t){super(e,t)}CONNECT(){return this.getToken(rs.CONNECT,0)}LIST(){return this.getToken(rs.LIST,0)}INSERT(){return this.getToken(rs.INSERT,0)}MANAGE(){return this.getToken(rs.MANAGE,0)}DROP(){return this.getToken(rs.DROP,0)}GRANT(){return this.getToken(rs.GRANT,0)}MODIFY(){return this.getToken(rs.MODIFY,0)}TABLES(){return this.getToken(rs.TABLES,0)}ATTRIBUTES(){return this.getToken(rs.ATTRIBUTES,0)}ROW(){return this.getToken(rs.ROW,0)}UPDATE(){return this.getToken(rs.UPDATE,0)}ERASE(){return this.getToken(rs.ERASE,0)}SCHEMA(){return this.getToken(rs.SCHEMA,0)}REMOVE(){return this.getToken(rs.REMOVE,0)}DESCRIBE(){return this.getToken(rs.DESCRIBE,0)}ALTER(){return this.getToken(rs.ALTER,0)}SELECT(){return this.getToken(rs.SELECT,0)}USE(){return this.getToken(rs.USE,0)}FULL(){return this.getToken(rs.FULL,0)}LEGACY(){return this.getToken(rs.LEGACY,0)}CREATE(){return this.getToken(rs.CREATE,0)}DIRECTORY(){return this.getToken(rs.DIRECTORY,0)}TABLE(){return this.getToken(rs.TABLE,0)}QUEUE(){return this.getToken(rs.QUEUE,0)}get ruleIndex(){return rs.RULE_permission_id}accept(e){return e.visitPermission_id?e.visitPermission_id(this):e.visitChildren(this)}},Fc=class extends W{static{Si(this,"Permission_nameContext")}constructor(e,t){super(e,t)}permission_id(){return this.getRuleContext(0,Pc)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_permission_name}accept(e){return e.visitPermission_name?e.visitPermission_name(this):e.visitChildren(this)}},Uc=class extends W{static{Si(this,"Permission_name_targetContext")}constructor(e,t){super(e,t)}permission_name(e){return void 0===e?this.getRuleContexts(Fc):this.getRuleContext(e,Fc)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}ALL(){return this.getToken(rs.ALL,0)}PRIVILEGES(){return this.getToken(rs.PRIVILEGES,0)}get ruleIndex(){return rs.RULE_permission_name_target}accept(e){return e.visitPermission_name_target?e.visitPermission_name_target(this):e.visitChildren(this)}},Hc=class extends W{static{Si(this,"Create_resource_pool_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}RESOURCE(){return this.getToken(rs.RESOURCE,0)}POOL(){return this.getToken(rs.POOL,0)}object_ref(){return this.getRuleContext(0,El)}with_table_settings(){return this.getRuleContext(0,Ea)}get ruleIndex(){return rs.RULE_create_resource_pool_stmt}accept(e){return e.visitCreate_resource_pool_stmt?e.visitCreate_resource_pool_stmt(this):e.visitChildren(this)}},Bc=class extends W{static{Si(this,"Alter_resource_pool_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}RESOURCE(){return this.getToken(rs.RESOURCE,0)}POOL(){return this.getToken(rs.POOL,0)}object_ref(){return this.getRuleContext(0,El)}alter_resource_pool_action(e){return void 0===e?this.getRuleContexts(Wc):this.getRuleContext(e,Wc)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_resource_pool_stmt}accept(e){return e.visitAlter_resource_pool_stmt?e.visitAlter_resource_pool_stmt(this):e.visitChildren(this)}},Wc=class extends W{static{Si(this,"Alter_resource_pool_actionContext")}constructor(e,t){super(e,t)}alter_table_set_table_setting_compat(){return this.getRuleContext(0,Fa)}alter_table_reset_table_setting(){return this.getRuleContext(0,Ua)}get ruleIndex(){return rs.RULE_alter_resource_pool_action}accept(e){return e.visitAlter_resource_pool_action?e.visitAlter_resource_pool_action(this):e.visitChildren(this)}},Vc=class extends W{static{Si(this,"Drop_resource_pool_stmtContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}RESOURCE(){return this.getToken(rs.RESOURCE,0)}POOL(){return this.getToken(rs.POOL,0)}object_ref(){return this.getRuleContext(0,El)}get ruleIndex(){return rs.RULE_drop_resource_pool_stmt}accept(e){return e.visitDrop_resource_pool_stmt?e.visitDrop_resource_pool_stmt(this):e.visitChildren(this)}},zc=class extends W{static{Si(this,"Create_resource_pool_classifier_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}RESOURCE(){return this.getToken(rs.RESOURCE,0)}POOL(){return this.getToken(rs.POOL,0)}CLASSIFIER(){return this.getToken(rs.CLASSIFIER,0)}object_ref(){return this.getRuleContext(0,El)}with_table_settings(){return this.getRuleContext(0,Ea)}get ruleIndex(){return rs.RULE_create_resource_pool_classifier_stmt}accept(e){return e.visitCreate_resource_pool_classifier_stmt?e.visitCreate_resource_pool_classifier_stmt(this):e.visitChildren(this)}},Gc=class extends W{static{Si(this,"Alter_resource_pool_classifier_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}RESOURCE(){return this.getToken(rs.RESOURCE,0)}POOL(){return this.getToken(rs.POOL,0)}CLASSIFIER(){return this.getToken(rs.CLASSIFIER,0)}object_ref(){return this.getRuleContext(0,El)}alter_resource_pool_classifier_action(e){return void 0===e?this.getRuleContexts(jc):this.getRuleContext(e,jc)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_resource_pool_classifier_stmt}accept(e){return e.visitAlter_resource_pool_classifier_stmt?e.visitAlter_resource_pool_classifier_stmt(this):e.visitChildren(this)}},jc=class extends W{static{Si(this,"Alter_resource_pool_classifier_actionContext")}constructor(e,t){super(e,t)}alter_table_set_table_setting_compat(){return this.getRuleContext(0,Fa)}alter_table_reset_table_setting(){return this.getRuleContext(0,Ua)}get ruleIndex(){return rs.RULE_alter_resource_pool_classifier_action}accept(e){return e.visitAlter_resource_pool_classifier_action?e.visitAlter_resource_pool_classifier_action(this):e.visitChildren(this)}},Kc=class extends W{static{Si(this,"Drop_resource_pool_classifier_stmtContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}RESOURCE(){return this.getToken(rs.RESOURCE,0)}POOL(){return this.getToken(rs.POOL,0)}CLASSIFIER(){return this.getToken(rs.CLASSIFIER,0)}object_ref(){return this.getRuleContext(0,El)}get ruleIndex(){return rs.RULE_drop_resource_pool_classifier_stmt}accept(e){return e.visitDrop_resource_pool_classifier_stmt?e.visitDrop_resource_pool_classifier_stmt(this):e.visitChildren(this)}},Yc=class extends W{static{Si(this,"Create_replication_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}ASYNC(){return this.getToken(rs.ASYNC,0)}REPLICATION(){return this.getToken(rs.REPLICATION,0)}object_ref(){return this.getRuleContext(0,El)}FOR(){return this.getToken(rs.FOR,0)}replication_target(e){return void 0===e?this.getRuleContexts(qc):this.getRuleContext(e,qc)}WITH(){return this.getToken(rs.WITH,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}replication_settings(){return this.getRuleContext(0,$c)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_create_replication_stmt}accept(e){return e.visitCreate_replication_stmt?e.visitCreate_replication_stmt(this):e.visitChildren(this)}},qc=class extends W{static{Si(this,"Replication_targetContext")}constructor(e,t){super(e,t)}object_ref(){return this.getRuleContext(0,El)}replication_name(){return this.getRuleContext(0,Rd)}get ruleIndex(){return rs.RULE_replication_target}accept(e){return e.visitReplication_target?e.visitReplication_target(this):e.visitChildren(this)}},$c=class extends W{static{Si(this,"Replication_settingsContext")}constructor(e,t){super(e,t)}replication_settings_entry(e){return void 0===e?this.getRuleContexts(Qc):this.getRuleContext(e,Qc)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_replication_settings}accept(e){return e.visitReplication_settings?e.visitReplication_settings(this):e.visitChildren(this)}},Qc=class extends W{static{Si(this,"Replication_settings_entryContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}EQUALS(){return this.getToken(rs.EQUALS,0)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_replication_settings_entry}accept(e){return e.visitReplication_settings_entry?e.visitReplication_settings_entry(this):e.visitChildren(this)}},Xc=class extends W{static{Si(this,"Alter_replication_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}ASYNC(){return this.getToken(rs.ASYNC,0)}REPLICATION(){return this.getToken(rs.REPLICATION,0)}object_ref(){return this.getRuleContext(0,El)}alter_replication_action(e){return void 0===e?this.getRuleContexts(Zc):this.getRuleContext(e,Zc)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_replication_stmt}accept(e){return e.visitAlter_replication_stmt?e.visitAlter_replication_stmt(this):e.visitChildren(this)}},Zc=class extends W{static{Si(this,"Alter_replication_actionContext")}constructor(e,t){super(e,t)}alter_replication_set_setting(){return this.getRuleContext(0,Jc)}get ruleIndex(){return rs.RULE_alter_replication_action}accept(e){return e.visitAlter_replication_action?e.visitAlter_replication_action(this):e.visitChildren(this)}},Jc=class extends W{static{Si(this,"Alter_replication_set_settingContext")}constructor(e,t){super(e,t)}SET(){return this.getToken(rs.SET,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}replication_settings(){return this.getRuleContext(0,$c)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_alter_replication_set_setting}accept(e){return e.visitAlter_replication_set_setting?e.visitAlter_replication_set_setting(this):e.visitChildren(this)}},el=class extends W{static{Si(this,"Drop_replication_stmtContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}ASYNC(){return this.getToken(rs.ASYNC,0)}REPLICATION(){return this.getToken(rs.REPLICATION,0)}object_ref(){return this.getRuleContext(0,El)}CASCADE(){return this.getToken(rs.CASCADE,0)}get ruleIndex(){return rs.RULE_drop_replication_stmt}accept(e){return e.visitDrop_replication_stmt?e.visitDrop_replication_stmt(this):e.visitChildren(this)}},tl=class extends W{static{Si(this,"Lambda_or_parameterContext")}constructor(e,t){super(e,t)}lambda(){return this.getRuleContext(0,Ks)}bind_parameter(){return this.getRuleContext(0,Rn)}get ruleIndex(){return rs.RULE_lambda_or_parameter}accept(e){return e.visitLambda_or_parameter?e.visitLambda_or_parameter(this):e.visitChildren(this)}},il=class extends W{static{Si(this,"Create_transfer_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}TRANSFER(){return this.getToken(rs.TRANSFER,0)}object_ref(e){return void 0===e?this.getRuleContexts(El):this.getRuleContext(e,El)}FROM(){return this.getToken(rs.FROM,0)}TO(){return this.getToken(rs.TO,0)}WITH(){return this.getToken(rs.WITH,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}transfer_settings(){return this.getRuleContext(0,sl)}RPAREN(){return this.getToken(rs.RPAREN,0)}USING(){return this.getToken(rs.USING,0)}lambda_or_parameter(){return this.getRuleContext(0,tl)}get ruleIndex(){return rs.RULE_create_transfer_stmt}accept(e){return e.visitCreate_transfer_stmt?e.visitCreate_transfer_stmt(this):e.visitChildren(this)}},sl=class extends W{static{Si(this,"Transfer_settingsContext")}constructor(e,t){super(e,t)}transfer_settings_entry(e){return void 0===e?this.getRuleContexts(nl):this.getRuleContext(e,nl)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_transfer_settings}accept(e){return e.visitTransfer_settings?e.visitTransfer_settings(this):e.visitChildren(this)}},nl=class extends W{static{Si(this,"Transfer_settings_entryContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}EQUALS(){return this.getToken(rs.EQUALS,0)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_transfer_settings_entry}accept(e){return e.visitTransfer_settings_entry?e.visitTransfer_settings_entry(this):e.visitChildren(this)}},rl=class extends W{static{Si(this,"Alter_transfer_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}TRANSFER(){return this.getToken(rs.TRANSFER,0)}object_ref(){return this.getRuleContext(0,El)}alter_transfer_action(e){return void 0===e?this.getRuleContexts(ol):this.getRuleContext(e,ol)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_transfer_stmt}accept(e){return e.visitAlter_transfer_stmt?e.visitAlter_transfer_stmt(this):e.visitChildren(this)}},ol=class extends W{static{Si(this,"Alter_transfer_actionContext")}constructor(e,t){super(e,t)}alter_transfer_set_setting(){return this.getRuleContext(0,al)}alter_transfer_set_using(){return this.getRuleContext(0,cl)}get ruleIndex(){return rs.RULE_alter_transfer_action}accept(e){return e.visitAlter_transfer_action?e.visitAlter_transfer_action(this):e.visitChildren(this)}},al=class extends W{static{Si(this,"Alter_transfer_set_settingContext")}constructor(e,t){super(e,t)}SET(){return this.getToken(rs.SET,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}transfer_settings(){return this.getRuleContext(0,sl)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_alter_transfer_set_setting}accept(e){return e.visitAlter_transfer_set_setting?e.visitAlter_transfer_set_setting(this):e.visitChildren(this)}},cl=class extends W{static{Si(this,"Alter_transfer_set_usingContext")}constructor(e,t){super(e,t)}SET(){return this.getToken(rs.SET,0)}USING(){return this.getToken(rs.USING,0)}lambda_or_parameter(){return this.getRuleContext(0,tl)}get ruleIndex(){return rs.RULE_alter_transfer_set_using}accept(e){return e.visitAlter_transfer_set_using?e.visitAlter_transfer_set_using(this):e.visitChildren(this)}},ll=class extends W{static{Si(this,"Drop_transfer_stmtContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}TRANSFER(){return this.getToken(rs.TRANSFER,0)}object_ref(){return this.getRuleContext(0,El)}CASCADE(){return this.getToken(rs.CASCADE,0)}get ruleIndex(){return rs.RULE_drop_transfer_stmt}accept(e){return e.visitDrop_transfer_stmt?e.visitDrop_transfer_stmt(this):e.visitChildren(this)}},hl=class extends W{static{Si(this,"Action_or_subquery_argsContext")}constructor(e,t){super(e,t)}opt_bind_parameter(e){return void 0===e?this.getRuleContexts(Ln):this.getRuleContext(e,Ln)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_action_or_subquery_args}accept(e){return e.visitAction_or_subquery_args?e.visitAction_or_subquery_args(this):e.visitChildren(this)}},dl=class extends W{static{Si(this,"Define_action_or_subquery_stmtContext")}constructor(e,t){super(e,t)}DEFINE(e){return void 0===e?this.getTokens(rs.DEFINE):this.getToken(rs.DEFINE,e)}bind_parameter(){return this.getRuleContext(0,Rn)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}AS(){return this.getToken(rs.AS,0)}define_action_or_subquery_body(){return this.getRuleContext(0,ul)}END(){return this.getToken(rs.END,0)}ACTION(){return this.getToken(rs.ACTION,0)}SUBQUERY(){return this.getToken(rs.SUBQUERY,0)}action_or_subquery_args(){return this.getRuleContext(0,hl)}get ruleIndex(){return rs.RULE_define_action_or_subquery_stmt}accept(e){return e.visitDefine_action_or_subquery_stmt?e.visitDefine_action_or_subquery_stmt(this):e.visitChildren(this)}},ul=class extends W{static{Si(this,"Define_action_or_subquery_bodyContext")}constructor(e,t){super(e,t)}SEMICOLON(e){return void 0===e?this.getTokens(rs.SEMICOLON):this.getToken(rs.SEMICOLON,e)}sql_stmt_core(e){return void 0===e?this.getRuleContexts(us):this.getRuleContext(e,us)}get ruleIndex(){return rs.RULE_define_action_or_subquery_body}accept(e){return e.visitDefine_action_or_subquery_body?e.visitDefine_action_or_subquery_body(this):e.visitChildren(this)}},gl=class extends W{static{Si(this,"If_stmtContext")}constructor(e,t){super(e,t)}IF(){return this.getToken(rs.IF,0)}expr(){return this.getRuleContext(0,gs)}do_stmt(e){return void 0===e?this.getRuleContexts(hr):this.getRuleContext(e,hr)}EVALUATE(){return this.getToken(rs.EVALUATE,0)}ELSE(){return this.getToken(rs.ELSE,0)}get ruleIndex(){return rs.RULE_if_stmt}accept(e){return e.visitIf_stmt?e.visitIf_stmt(this):e.visitChildren(this)}},pl=class extends W{static{Si(this,"For_stmtContext")}constructor(e,t){super(e,t)}FOR(){return this.getToken(rs.FOR,0)}bind_parameter(){return this.getRuleContext(0,Rn)}IN(){return this.getToken(rs.IN,0)}expr(){return this.getRuleContext(0,gs)}do_stmt(e){return void 0===e?this.getRuleContexts(hr):this.getRuleContext(e,hr)}EVALUATE(){return this.getToken(rs.EVALUATE,0)}PARALLEL(){return this.getToken(rs.PARALLEL,0)}ELSE(){return this.getToken(rs.ELSE,0)}get ruleIndex(){return rs.RULE_for_stmt}accept(e){return e.visitFor_stmt?e.visitFor_stmt(this):e.visitChildren(this)}},ml=class extends W{static{Si(this,"Table_refContext")}constructor(e,t){super(e,t)}table_key(){return this.getRuleContext(0,fl)}an_id_expr(){return this.getRuleContext(0,jh)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}bind_parameter(){return this.getRuleContext(0,Rn)}cluster_expr(){return this.getRuleContext(0,td)}DOT(){return this.getToken(rs.DOT,0)}COMMAT(){return this.getToken(rs.COMMAT,0)}table_hints(){return this.getRuleContext(0,vl)}table_arg(e){return void 0===e?this.getRuleContexts(_l):this.getRuleContext(e,_l)}VIEW(){return this.getToken(rs.VIEW,0)}view_name(){return this.getRuleContext(0,Jh)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}expr_list(){return this.getRuleContext(0,ln)}get ruleIndex(){return rs.RULE_table_ref}accept(e){return e.visitTable_ref?e.visitTable_ref(this):e.visitChildren(this)}},fl=class extends W{static{Si(this,"Table_keyContext")}constructor(e,t){super(e,t)}id_table_or_type(){return this.getRuleContext(0,rd)}VIEW(){return this.getToken(rs.VIEW,0)}view_name(){return this.getRuleContext(0,Jh)}get ruleIndex(){return rs.RULE_table_key}accept(e){return e.visitTable_key?e.visitTable_key(this):e.visitChildren(this)}},_l=class extends W{static{Si(this,"Table_argContext")}constructor(e,t){super(e,t)}named_expr(){return this.getRuleContext(0,_n)}COMMAT(){return this.getToken(rs.COMMAT,0)}VIEW(){return this.getToken(rs.VIEW,0)}view_name(){return this.getRuleContext(0,Jh)}get ruleIndex(){return rs.RULE_table_arg}accept(e){return e.visitTable_arg?e.visitTable_arg(this):e.visitChildren(this)}},vl=class extends W{static{Si(this,"Table_hintsContext")}constructor(e,t){super(e,t)}WITH(){return this.getToken(rs.WITH,0)}table_hint(e){return void 0===e?this.getRuleContexts(Cl):this.getRuleContext(e,Cl)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_table_hints}accept(e){return e.visitTable_hints?e.visitTable_hints(this):e.visitChildren(this)}},Cl=class extends W{static{Si(this,"Table_hintContext")}constructor(e,t){super(e,t)}an_id_hint(){return this.getRuleContext(0,Qh)}EQUALS(){return this.getToken(rs.EQUALS,0)}type_name_tag(e){return void 0===e?this.getRuleContexts(On):this.getRuleContext(e,On)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}type_name_or_bind(){return this.getRuleContext(0,tr)}SCHEMA(){return this.getToken(rs.SCHEMA,0)}COLUMNS(){return this.getToken(rs.COLUMNS,0)}struct_arg_positional(e){return void 0===e?this.getRuleContexts(Mn):this.getRuleContext(e,Mn)}get ruleIndex(){return rs.RULE_table_hint}accept(e){return e.visitTable_hint?e.visitTable_hint(this):e.visitChildren(this)}},El=class extends W{static{Si(this,"Object_refContext")}constructor(e,t){super(e,t)}id_or_at(){return this.getRuleContext(0,nd)}cluster_expr(){return this.getRuleContext(0,td)}DOT(){return this.getToken(rs.DOT,0)}get ruleIndex(){return rs.RULE_object_ref}accept(e){return e.visitObject_ref?e.visitObject_ref(this):e.visitChildren(this)}},bl=class extends W{static{Si(this,"Simple_table_ref_coreContext")}constructor(e,t){super(e,t)}object_ref(){return this.getRuleContext(0,El)}bind_parameter(){return this.getRuleContext(0,Rn)}COMMAT(){return this.getToken(rs.COMMAT,0)}get ruleIndex(){return rs.RULE_simple_table_ref_core}accept(e){return e.visitSimple_table_ref_core?e.visitSimple_table_ref_core(this):e.visitChildren(this)}},Sl=class extends W{static{Si(this,"Simple_table_refContext")}constructor(e,t){super(e,t)}simple_table_ref_core(){return this.getRuleContext(0,bl)}table_hints(){return this.getRuleContext(0,vl)}get ruleIndex(){return rs.RULE_simple_table_ref}accept(e){return e.visitSimple_table_ref?e.visitSimple_table_ref(this):e.visitChildren(this)}},yl=class extends W{static{Si(this,"Into_simple_table_refContext")}constructor(e,t){super(e,t)}simple_table_ref(){return this.getRuleContext(0,Sl)}ERASE(){return this.getToken(rs.ERASE,0)}BY(){return this.getToken(rs.BY,0)}pure_column_list(){return this.getRuleContext(0,hn)}get ruleIndex(){return rs.RULE_into_simple_table_ref}accept(e){return e.visitInto_simple_table_ref?e.visitInto_simple_table_ref(this):e.visitChildren(this)}},wl=class extends W{static{Si(this,"Delete_stmtContext")}constructor(e,t){super(e,t)}DELETE(){return this.getToken(rs.DELETE,0)}FROM(){return this.getToken(rs.FROM,0)}simple_table_ref(){return this.getRuleContext(0,Sl)}BATCH(){return this.getToken(rs.BATCH,0)}where_expr(){return this.getRuleContext(0,Ld)}ON(){return this.getToken(rs.ON,0)}into_values_source(){return this.getRuleContext(0,Ao)}returning_columns_list(){return this.getRuleContext(0,To)}get ruleIndex(){return rs.RULE_delete_stmt}accept(e){return e.visitDelete_stmt?e.visitDelete_stmt(this):e.visitChildren(this)}},Rl=class extends W{static{Si(this,"Update_stmtContext")}constructor(e,t){super(e,t)}UPDATE(){return this.getToken(rs.UPDATE,0)}simple_table_ref(){return this.getRuleContext(0,Sl)}SET(){return this.getToken(rs.SET,0)}set_clause_choice(){return this.getRuleContext(0,Ll)}ON(){return this.getToken(rs.ON,0)}into_values_source(){return this.getRuleContext(0,Ao)}BATCH(){return this.getToken(rs.BATCH,0)}returning_columns_list(){return this.getRuleContext(0,To)}where_expr(){return this.getRuleContext(0,Ld)}get ruleIndex(){return rs.RULE_update_stmt}accept(e){return e.visitUpdate_stmt?e.visitUpdate_stmt(this):e.visitChildren(this)}},Ll=class extends W{static{Si(this,"Set_clause_choiceContext")}constructor(e,t){super(e,t)}set_clause_list(){return this.getRuleContext(0,Tl)}multiple_column_assignment(){return this.getRuleContext(0,Al)}get ruleIndex(){return rs.RULE_set_clause_choice}accept(e){return e.visitSet_clause_choice?e.visitSet_clause_choice(this):e.visitChildren(this)}},Tl=class extends W{static{Si(this,"Set_clause_listContext")}constructor(e,t){super(e,t)}set_clause(e){return void 0===e?this.getRuleContexts(xl):this.getRuleContext(e,xl)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_set_clause_list}accept(e){return e.visitSet_clause_list?e.visitSet_clause_list(this):e.visitChildren(this)}},xl=class extends W{static{Si(this,"Set_clauseContext")}constructor(e,t){super(e,t)}set_target(){return this.getRuleContext(0,kl)}EQUALS(){return this.getToken(rs.EQUALS,0)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_set_clause}accept(e){return e.visitSet_clause?e.visitSet_clause(this):e.visitChildren(this)}},kl=class extends W{static{Si(this,"Set_targetContext")}constructor(e,t){super(e,t)}column_name(){return this.getRuleContext(0,gn)}get ruleIndex(){return rs.RULE_set_target}accept(e){return e.visitSet_target?e.visitSet_target(this):e.visitChildren(this)}},Al=class extends W{static{Si(this,"Multiple_column_assignmentContext")}constructor(e,t){super(e,t)}set_target_list(){return this.getRuleContext(0,Nl)}EQUALS(){return this.getToken(rs.EQUALS,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}simple_values_source(){return this.getRuleContext(0,Mo)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_multiple_column_assignment}accept(e){return e.visitMultiple_column_assignment?e.visitMultiple_column_assignment(this):e.visitChildren(this)}},Nl=class extends W{static{Si(this,"Set_target_listContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}set_target(e){return void 0===e?this.getRuleContexts(kl):this.getRuleContext(e,kl)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_set_target_list}accept(e){return e.visitSet_target_list?e.visitSet_target_list(this):e.visitChildren(this)}},Il=class extends W{static{Si(this,"Create_topic_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}TOPIC(){return this.getToken(rs.TOPIC,0)}topic_ref(){return this.getRuleContext(0,th)}IF(){return this.getToken(rs.IF,0)}NOT(){return this.getToken(rs.NOT,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}create_topic_entries(){return this.getRuleContext(0,Ol)}with_topic_settings(){return this.getRuleContext(0,Ml)}get ruleIndex(){return rs.RULE_create_topic_stmt}accept(e){return e.visitCreate_topic_stmt?e.visitCreate_topic_stmt(this):e.visitChildren(this)}},Ol=class extends W{static{Si(this,"Create_topic_entriesContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}create_topic_entry(e){return void 0===e?this.getRuleContexts(Dl):this.getRuleContext(e,Dl)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_create_topic_entries}accept(e){return e.visitCreate_topic_entries?e.visitCreate_topic_entries(this):e.visitChildren(this)}},Dl=class extends W{static{Si(this,"Create_topic_entryContext")}constructor(e,t){super(e,t)}topic_create_consumer_entry(){return this.getRuleContext(0,Hl)}get ruleIndex(){return rs.RULE_create_topic_entry}accept(e){return e.visitCreate_topic_entry?e.visitCreate_topic_entry(this):e.visitChildren(this)}},Ml=class extends W{static{Si(this,"With_topic_settingsContext")}constructor(e,t){super(e,t)}WITH(){return this.getToken(rs.WITH,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}topic_settings(){return this.getRuleContext(0,ql)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_with_topic_settings}accept(e){return e.visitWith_topic_settings?e.visitWith_topic_settings(this):e.visitChildren(this)}},Pl=class extends W{static{Si(this,"Alter_topic_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}TOPIC(){return this.getToken(rs.TOPIC,0)}topic_ref(){return this.getRuleContext(0,th)}alter_topic_action(e){return void 0===e?this.getRuleContexts(Fl):this.getRuleContext(e,Fl)}IF(){return this.getToken(rs.IF,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_topic_stmt}accept(e){return e.visitAlter_topic_stmt?e.visitAlter_topic_stmt(this):e.visitChildren(this)}},Fl=class extends W{static{Si(this,"Alter_topic_actionContext")}constructor(e,t){super(e,t)}alter_topic_add_consumer(){return this.getRuleContext(0,Ul)}alter_topic_alter_consumer(){return this.getRuleContext(0,Bl)}alter_topic_drop_consumer(){return this.getRuleContext(0,Vl)}alter_topic_set_settings(){return this.getRuleContext(0,jl)}alter_topic_reset_settings(){return this.getRuleContext(0,Kl)}get ruleIndex(){return rs.RULE_alter_topic_action}accept(e){return e.visitAlter_topic_action?e.visitAlter_topic_action(this):e.visitChildren(this)}},Ul=class extends W{static{Si(this,"Alter_topic_add_consumerContext")}constructor(e,t){super(e,t)}ADD(){return this.getToken(rs.ADD,0)}topic_create_consumer_entry(){return this.getRuleContext(0,Hl)}get ruleIndex(){return rs.RULE_alter_topic_add_consumer}accept(e){return e.visitAlter_topic_add_consumer?e.visitAlter_topic_add_consumer(this):e.visitChildren(this)}},Hl=class extends W{static{Si(this,"Topic_create_consumer_entryContext")}constructor(e,t){super(e,t)}CONSUMER(){return this.getToken(rs.CONSUMER,0)}an_id(){return this.getRuleContext(0,Vh)}topic_consumer_with_settings(){return this.getRuleContext(0,Xl)}get ruleIndex(){return rs.RULE_topic_create_consumer_entry}accept(e){return e.visitTopic_create_consumer_entry?e.visitTopic_create_consumer_entry(this):e.visitChildren(this)}},Bl=class extends W{static{Si(this,"Alter_topic_alter_consumerContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}CONSUMER(){return this.getToken(rs.CONSUMER,0)}topic_consumer_ref(){return this.getRuleContext(0,ih)}alter_topic_alter_consumer_entry(){return this.getRuleContext(0,Wl)}get ruleIndex(){return rs.RULE_alter_topic_alter_consumer}accept(e){return e.visitAlter_topic_alter_consumer?e.visitAlter_topic_alter_consumer(this):e.visitChildren(this)}},Wl=class extends W{static{Si(this,"Alter_topic_alter_consumer_entryContext")}constructor(e,t){super(e,t)}topic_alter_consumer_set(){return this.getRuleContext(0,zl)}topic_alter_consumer_reset(){return this.getRuleContext(0,Gl)}get ruleIndex(){return rs.RULE_alter_topic_alter_consumer_entry}accept(e){return e.visitAlter_topic_alter_consumer_entry?e.visitAlter_topic_alter_consumer_entry(this):e.visitChildren(this)}},Vl=class extends W{static{Si(this,"Alter_topic_drop_consumerContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}CONSUMER(){return this.getToken(rs.CONSUMER,0)}topic_consumer_ref(){return this.getRuleContext(0,ih)}get ruleIndex(){return rs.RULE_alter_topic_drop_consumer}accept(e){return e.visitAlter_topic_drop_consumer?e.visitAlter_topic_drop_consumer(this):e.visitChildren(this)}},zl=class extends W{static{Si(this,"Topic_alter_consumer_setContext")}constructor(e,t){super(e,t)}SET(){return this.getToken(rs.SET,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}topic_consumer_settings(){return this.getRuleContext(0,Zl)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_topic_alter_consumer_set}accept(e){return e.visitTopic_alter_consumer_set?e.visitTopic_alter_consumer_set(this):e.visitChildren(this)}},Gl=class extends W{static{Si(this,"Topic_alter_consumer_resetContext")}constructor(e,t){super(e,t)}RESET(){return this.getToken(rs.RESET,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}an_id(e){return void 0===e?this.getRuleContexts(Vh):this.getRuleContext(e,Vh)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_topic_alter_consumer_reset}accept(e){return e.visitTopic_alter_consumer_reset?e.visitTopic_alter_consumer_reset(this):e.visitChildren(this)}},jl=class extends W{static{Si(this,"Alter_topic_set_settingsContext")}constructor(e,t){super(e,t)}SET(){return this.getToken(rs.SET,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}topic_settings(){return this.getRuleContext(0,ql)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_alter_topic_set_settings}accept(e){return e.visitAlter_topic_set_settings?e.visitAlter_topic_set_settings(this):e.visitChildren(this)}},Kl=class extends W{static{Si(this,"Alter_topic_reset_settingsContext")}constructor(e,t){super(e,t)}RESET(){return this.getToken(rs.RESET,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}an_id(){return this.getRuleContext(0,Vh)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}an_id_pure(e){return void 0===e?this.getRuleContexts(Xh):this.getRuleContext(e,Xh)}get ruleIndex(){return rs.RULE_alter_topic_reset_settings}accept(e){return e.visitAlter_topic_reset_settings?e.visitAlter_topic_reset_settings(this):e.visitChildren(this)}},Yl=class extends W{static{Si(this,"Drop_topic_stmtContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}TOPIC(){return this.getToken(rs.TOPIC,0)}topic_ref(){return this.getRuleContext(0,th)}IF(){return this.getToken(rs.IF,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}get ruleIndex(){return rs.RULE_drop_topic_stmt}accept(e){return e.visitDrop_topic_stmt?e.visitDrop_topic_stmt(this):e.visitChildren(this)}},ql=class extends W{static{Si(this,"Topic_settingsContext")}constructor(e,t){super(e,t)}topic_settings_entry(e){return void 0===e?this.getRuleContexts($l):this.getRuleContext(e,$l)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_topic_settings}accept(e){return e.visitTopic_settings?e.visitTopic_settings(this):e.visitChildren(this)}},$l=class extends W{static{Si(this,"Topic_settings_entryContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}EQUALS(){return this.getToken(rs.EQUALS,0)}topic_setting_value(){return this.getRuleContext(0,Ql)}get ruleIndex(){return rs.RULE_topic_settings_entry}accept(e){return e.visitTopic_settings_entry?e.visitTopic_settings_entry(this):e.visitChildren(this)}},Ql=class extends W{static{Si(this,"Topic_setting_valueContext")}constructor(e,t){super(e,t)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_topic_setting_value}accept(e){return e.visitTopic_setting_value?e.visitTopic_setting_value(this):e.visitChildren(this)}},Xl=class extends W{static{Si(this,"Topic_consumer_with_settingsContext")}constructor(e,t){super(e,t)}WITH(){return this.getToken(rs.WITH,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}topic_consumer_settings(){return this.getRuleContext(0,Zl)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_topic_consumer_with_settings}accept(e){return e.visitTopic_consumer_with_settings?e.visitTopic_consumer_with_settings(this):e.visitChildren(this)}},Zl=class extends W{static{Si(this,"Topic_consumer_settingsContext")}constructor(e,t){super(e,t)}topic_consumer_settings_entry(e){return void 0===e?this.getRuleContexts(Jl):this.getRuleContext(e,Jl)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_topic_consumer_settings}accept(e){return e.visitTopic_consumer_settings?e.visitTopic_consumer_settings(this):e.visitChildren(this)}},Jl=class extends W{static{Si(this,"Topic_consumer_settings_entryContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}EQUALS(){return this.getToken(rs.EQUALS,0)}topic_consumer_setting_value(){return this.getRuleContext(0,eh)}get ruleIndex(){return rs.RULE_topic_consumer_settings_entry}accept(e){return e.visitTopic_consumer_settings_entry?e.visitTopic_consumer_settings_entry(this):e.visitChildren(this)}},eh=class extends W{static{Si(this,"Topic_consumer_setting_valueContext")}constructor(e,t){super(e,t)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_topic_consumer_setting_value}accept(e){return e.visitTopic_consumer_setting_value?e.visitTopic_consumer_setting_value(this):e.visitChildren(this)}},th=class extends W{static{Si(this,"Topic_refContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}cluster_expr(){return this.getRuleContext(0,td)}DOT(){return this.getToken(rs.DOT,0)}get ruleIndex(){return rs.RULE_topic_ref}accept(e){return e.visitTopic_ref?e.visitTopic_ref(this):e.visitChildren(this)}},ih=class extends W{static{Si(this,"Topic_consumer_refContext")}constructor(e,t){super(e,t)}an_id_pure(){return this.getRuleContext(0,Xh)}get ruleIndex(){return rs.RULE_topic_consumer_ref}accept(e){return e.visitTopic_consumer_ref?e.visitTopic_consumer_ref(this):e.visitChildren(this)}},sh=class extends W{static{Si(this,"Null_treatmentContext")}constructor(e,t){super(e,t)}RESPECT(){return this.getToken(rs.RESPECT,0)}NULLS(){return this.getToken(rs.NULLS,0)}IGNORE(){return this.getToken(rs.IGNORE,0)}get ruleIndex(){return rs.RULE_null_treatment}accept(e){return e.visitNull_treatment?e.visitNull_treatment(this):e.visitChildren(this)}},nh=class extends W{static{Si(this,"Filter_clauseContext")}constructor(e,t){super(e,t)}FILTER(){return this.getToken(rs.FILTER,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}where_expr(){return this.getRuleContext(0,Ld)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_filter_clause}accept(e){return e.visitFilter_clause?e.visitFilter_clause(this):e.visitChildren(this)}},rh=class extends W{static{Si(this,"Window_name_or_specificationContext")}constructor(e,t){super(e,t)}window_name(){return this.getRuleContext(0,oh)}window_specification(){return this.getRuleContext(0,dh)}get ruleIndex(){return rs.RULE_window_name_or_specification}accept(e){return e.visitWindow_name_or_specification?e.visitWindow_name_or_specification(this):e.visitChildren(this)}},oh=class extends W{static{Si(this,"Window_nameContext")}constructor(e,t){super(e,t)}an_id_window(){return this.getRuleContext(0,Yh)}get ruleIndex(){return rs.RULE_window_name}accept(e){return e.visitWindow_name?e.visitWindow_name(this):e.visitChildren(this)}},ah=class extends W{static{Si(this,"Window_clauseContext")}constructor(e,t){super(e,t)}WINDOW(){return this.getToken(rs.WINDOW,0)}window_definition_list(){return this.getRuleContext(0,ch)}get ruleIndex(){return rs.RULE_window_clause}accept(e){return e.visitWindow_clause?e.visitWindow_clause(this):e.visitChildren(this)}},ch=class extends W{static{Si(this,"Window_definition_listContext")}constructor(e,t){super(e,t)}window_definition(e){return void 0===e?this.getRuleContexts(lh):this.getRuleContext(e,lh)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_window_definition_list}accept(e){return e.visitWindow_definition_list?e.visitWindow_definition_list(this):e.visitChildren(this)}},lh=class extends W{static{Si(this,"Window_definitionContext")}constructor(e,t){super(e,t)}new_window_name(){return this.getRuleContext(0,hh)}AS(){return this.getToken(rs.AS,0)}window_specification(){return this.getRuleContext(0,dh)}get ruleIndex(){return rs.RULE_window_definition}accept(e){return e.visitWindow_definition?e.visitWindow_definition(this):e.visitChildren(this)}},hh=class extends W{static{Si(this,"New_window_nameContext")}constructor(e,t){super(e,t)}window_name(){return this.getRuleContext(0,oh)}get ruleIndex(){return rs.RULE_new_window_name}accept(e){return e.visitNew_window_name?e.visitNew_window_name(this):e.visitChildren(this)}},dh=class extends W{static{Si(this,"Window_specificationContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}window_specification_details(){return this.getRuleContext(0,uh)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_window_specification}accept(e){return e.visitWindow_specification?e.visitWindow_specification(this):e.visitChildren(this)}},uh=class extends W{static{Si(this,"Window_specification_detailsContext")}constructor(e,t){super(e,t)}existing_window_name(){return this.getRuleContext(0,gh)}window_partition_clause(){return this.getRuleContext(0,ph)}window_order_clause(){return this.getRuleContext(0,mh)}window_frame_clause(){return this.getRuleContext(0,fh)}get ruleIndex(){return rs.RULE_window_specification_details}accept(e){return e.visitWindow_specification_details?e.visitWindow_specification_details(this):e.visitChildren(this)}},gh=class extends W{static{Si(this,"Existing_window_nameContext")}constructor(e,t){super(e,t)}window_name(){return this.getRuleContext(0,oh)}get ruleIndex(){return rs.RULE_existing_window_name}accept(e){return e.visitExisting_window_name?e.visitExisting_window_name(this):e.visitChildren(this)}},ph=class extends W{static{Si(this,"Window_partition_clauseContext")}constructor(e,t){super(e,t)}PARTITION(){return this.getToken(rs.PARTITION,0)}BY(){return this.getToken(rs.BY,0)}named_expr_list(){return this.getRuleContext(0,vn)}COMPACT(){return this.getToken(rs.COMPACT,0)}get ruleIndex(){return rs.RULE_window_partition_clause}accept(e){return e.visitWindow_partition_clause?e.visitWindow_partition_clause(this):e.visitChildren(this)}},mh=class extends W{static{Si(this,"Window_order_clauseContext")}constructor(e,t){super(e,t)}order_by_clause(){return this.getRuleContext(0,io)}get ruleIndex(){return rs.RULE_window_order_clause}accept(e){return e.visitWindow_order_clause?e.visitWindow_order_clause(this):e.visitChildren(this)}},fh=class extends W{static{Si(this,"Window_frame_clauseContext")}constructor(e,t){super(e,t)}window_frame_units(){return this.getRuleContext(0,_h)}window_frame_extent(){return this.getRuleContext(0,vh)}window_frame_exclusion(){return this.getRuleContext(0,bh)}get ruleIndex(){return rs.RULE_window_frame_clause}accept(e){return e.visitWindow_frame_clause?e.visitWindow_frame_clause(this):e.visitChildren(this)}},_h=class extends W{static{Si(this,"Window_frame_unitsContext")}constructor(e,t){super(e,t)}ROWS(){return this.getToken(rs.ROWS,0)}RANGE(){return this.getToken(rs.RANGE,0)}GROUPS(){return this.getToken(rs.GROUPS,0)}get ruleIndex(){return rs.RULE_window_frame_units}accept(e){return e.visitWindow_frame_units?e.visitWindow_frame_units(this):e.visitChildren(this)}},vh=class extends W{static{Si(this,"Window_frame_extentContext")}constructor(e,t){super(e,t)}window_frame_bound(){return this.getRuleContext(0,Eh)}window_frame_between(){return this.getRuleContext(0,Ch)}get ruleIndex(){return rs.RULE_window_frame_extent}accept(e){return e.visitWindow_frame_extent?e.visitWindow_frame_extent(this):e.visitChildren(this)}},Ch=class extends W{static{Si(this,"Window_frame_betweenContext")}constructor(e,t){super(e,t)}BETWEEN(){return this.getToken(rs.BETWEEN,0)}window_frame_bound(e){return void 0===e?this.getRuleContexts(Eh):this.getRuleContext(e,Eh)}AND(){return this.getToken(rs.AND,0)}get ruleIndex(){return rs.RULE_window_frame_between}accept(e){return e.visitWindow_frame_between?e.visitWindow_frame_between(this):e.visitChildren(this)}},Eh=class extends W{static{Si(this,"Window_frame_boundContext")}constructor(e,t){super(e,t)}CURRENT(){return this.getToken(rs.CURRENT,0)}ROW(){return this.getToken(rs.ROW,0)}PRECEDING(){return this.getToken(rs.PRECEDING,0)}FOLLOWING(){return this.getToken(rs.FOLLOWING,0)}expr(){return this.getRuleContext(0,gs)}UNBOUNDED(){return this.getToken(rs.UNBOUNDED,0)}get ruleIndex(){return rs.RULE_window_frame_bound}accept(e){return e.visitWindow_frame_bound?e.visitWindow_frame_bound(this):e.visitChildren(this)}},bh=class extends W{static{Si(this,"Window_frame_exclusionContext")}constructor(e,t){super(e,t)}EXCLUDE(){return this.getToken(rs.EXCLUDE,0)}CURRENT(){return this.getToken(rs.CURRENT,0)}ROW(){return this.getToken(rs.ROW,0)}GROUP(){return this.getToken(rs.GROUP,0)}TIES(){return this.getToken(rs.TIES,0)}NO(){return this.getToken(rs.NO,0)}OTHERS(){return this.getToken(rs.OTHERS,0)}get ruleIndex(){return rs.RULE_window_frame_exclusion}accept(e){return e.visitWindow_frame_exclusion?e.visitWindow_frame_exclusion(this):e.visitChildren(this)}},Sh=class extends W{static{Si(this,"Use_stmtContext")}constructor(e,t){super(e,t)}USE(){return this.getToken(rs.USE,0)}cluster_expr(){return this.getRuleContext(0,td)}get ruleIndex(){return rs.RULE_use_stmt}accept(e){return e.visitUse_stmt?e.visitUse_stmt(this):e.visitChildren(this)}},yh=class extends W{static{Si(this,"Subselect_stmtContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}select_stmt(){return this.getRuleContext(0,mr)}RPAREN(){return this.getToken(rs.RPAREN,0)}select_unparenthesized_stmt(){return this.getRuleContext(0,fr)}get ruleIndex(){return rs.RULE_subselect_stmt}accept(e){return e.visitSubselect_stmt?e.visitSubselect_stmt(this):e.visitChildren(this)}},wh=class extends W{static{Si(this,"Named_nodes_stmtContext")}constructor(e,t){super(e,t)}bind_parameter_list(){return this.getRuleContext(0,Tn)}EQUALS(){return this.getToken(rs.EQUALS,0)}expr(){return this.getRuleContext(0,gs)}subselect_stmt(){return this.getRuleContext(0,yh)}get ruleIndex(){return rs.RULE_named_nodes_stmt}accept(e){return e.visitNamed_nodes_stmt?e.visitNamed_nodes_stmt(this):e.visitChildren(this)}},Rh=class extends W{static{Si(this,"Commit_stmtContext")}constructor(e,t){super(e,t)}COMMIT(){return this.getToken(rs.COMMIT,0)}get ruleIndex(){return rs.RULE_commit_stmt}accept(e){return e.visitCommit_stmt?e.visitCommit_stmt(this):e.visitChildren(this)}},Lh=class extends W{static{Si(this,"Rollback_stmtContext")}constructor(e,t){super(e,t)}ROLLBACK(){return this.getToken(rs.ROLLBACK,0)}get ruleIndex(){return rs.RULE_rollback_stmt}accept(e){return e.visitRollback_stmt?e.visitRollback_stmt(this):e.visitChildren(this)}},Th=class extends W{static{Si(this,"Analyze_tableContext")}constructor(e,t){super(e,t)}simple_table_ref(){return this.getRuleContext(0,Sl)}LPAREN(){return this.getToken(rs.LPAREN,0)}column_list(){return this.getRuleContext(0,mn)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_analyze_table}accept(e){return e.visitAnalyze_table?e.visitAnalyze_table(this):e.visitChildren(this)}},xh=class extends W{static{Si(this,"Analyze_table_listContext")}constructor(e,t){super(e,t)}analyze_table(e){return void 0===e?this.getRuleContexts(Th):this.getRuleContext(e,Th)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_analyze_table_list}accept(e){return e.visitAnalyze_table_list?e.visitAnalyze_table_list(this):e.visitChildren(this)}},kh=class extends W{static{Si(this,"Analyze_stmtContext")}constructor(e,t){super(e,t)}ANALYZE(){return this.getToken(rs.ANALYZE,0)}analyze_table_list(){return this.getRuleContext(0,xh)}get ruleIndex(){return rs.RULE_analyze_stmt}accept(e){return e.visitAnalyze_stmt?e.visitAnalyze_stmt(this):e.visitChildren(this)}},Ah=class extends W{static{Si(this,"Alter_sequence_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}SEQUENCE(){return this.getToken(rs.SEQUENCE,0)}object_ref(){return this.getRuleContext(0,El)}IF(){return this.getToken(rs.IF,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}alter_sequence_action(e){return void 0===e?this.getRuleContexts(Nh):this.getRuleContext(e,Nh)}get ruleIndex(){return rs.RULE_alter_sequence_stmt}accept(e){return e.visitAlter_sequence_stmt?e.visitAlter_sequence_stmt(this):e.visitChildren(this)}},Nh=class extends W{static{Si(this,"Alter_sequence_actionContext")}constructor(e,t){super(e,t)}START(){return this.getToken(rs.START,0)}integer(){return this.getRuleContext(0,Ed)}WITH(){return this.getToken(rs.WITH,0)}RESTART(){return this.getToken(rs.RESTART,0)}INCREMENT(){return this.getToken(rs.INCREMENT,0)}BY(){return this.getToken(rs.BY,0)}get ruleIndex(){return rs.RULE_alter_sequence_action}accept(e){return e.visitAlter_sequence_action?e.visitAlter_sequence_action(this):e.visitChildren(this)}},Ih=class extends W{static{Si(this,"IdentifierContext")}constructor(e,t){super(e,t)}ID_PLAIN(){return this.getToken(rs.ID_PLAIN,0)}ID_QUOTED(){return this.getToken(rs.ID_QUOTED,0)}get ruleIndex(){return rs.RULE_identifier}accept(e){return e.visitIdentifier?e.visitIdentifier(this):e.visitChildren(this)}},Oh=class extends W{static{Si(this,"IdContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,Ih)}keyword(){return this.getRuleContext(0,ad)}get ruleIndex(){return rs.RULE_id}accept(e){return e.visitId?e.visitId(this):e.visitChildren(this)}},Dh=class extends W{static{Si(this,"Id_schemaContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,Ih)}keyword_compat(){return this.getRuleContext(0,fd)}keyword_expr_uncompat(){return this.getRuleContext(0,cd)}keyword_select_uncompat(){return this.getRuleContext(0,hd)}keyword_in_uncompat(){return this.getRuleContext(0,ud)}keyword_window_uncompat(){return this.getRuleContext(0,gd)}keyword_hint_uncompat(){return this.getRuleContext(0,pd)}get ruleIndex(){return rs.RULE_id_schema}accept(e){return e.visitId_schema?e.visitId_schema(this):e.visitChildren(this)}},Mh=class extends W{static{Si(this,"Id_exprContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,Ih)}keyword_compat(){return this.getRuleContext(0,fd)}keyword_alter_uncompat(){return this.getRuleContext(0,dd)}keyword_in_uncompat(){return this.getRuleContext(0,ud)}keyword_window_uncompat(){return this.getRuleContext(0,gd)}keyword_hint_uncompat(){return this.getRuleContext(0,pd)}get ruleIndex(){return rs.RULE_id_expr}accept(e){return e.visitId_expr?e.visitId_expr(this):e.visitChildren(this)}},Ph=class extends W{static{Si(this,"Id_expr_inContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,Ih)}keyword_compat(){return this.getRuleContext(0,fd)}keyword_alter_uncompat(){return this.getRuleContext(0,dd)}keyword_window_uncompat(){return this.getRuleContext(0,gd)}keyword_hint_uncompat(){return this.getRuleContext(0,pd)}get ruleIndex(){return rs.RULE_id_expr_in}accept(e){return e.visitId_expr_in?e.visitId_expr_in(this):e.visitChildren(this)}},Fh=class extends W{static{Si(this,"Id_windowContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,Ih)}keyword_compat(){return this.getRuleContext(0,fd)}keyword_expr_uncompat(){return this.getRuleContext(0,cd)}keyword_table_uncompat(){return this.getRuleContext(0,ld)}keyword_select_uncompat(){return this.getRuleContext(0,hd)}keyword_alter_uncompat(){return this.getRuleContext(0,dd)}keyword_in_uncompat(){return this.getRuleContext(0,ud)}keyword_hint_uncompat(){return this.getRuleContext(0,pd)}get ruleIndex(){return rs.RULE_id_window}accept(e){return e.visitId_window?e.visitId_window(this):e.visitChildren(this)}},Uh=class extends W{static{Si(this,"Id_tableContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,Ih)}keyword_compat(){return this.getRuleContext(0,fd)}keyword_expr_uncompat(){return this.getRuleContext(0,cd)}keyword_select_uncompat(){return this.getRuleContext(0,hd)}keyword_in_uncompat(){return this.getRuleContext(0,ud)}keyword_window_uncompat(){return this.getRuleContext(0,gd)}keyword_hint_uncompat(){return this.getRuleContext(0,pd)}get ruleIndex(){return rs.RULE_id_table}accept(e){return e.visitId_table?e.visitId_table(this):e.visitChildren(this)}},Hh=class extends W{static{Si(this,"Id_withoutContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,Ih)}keyword_compat(){return this.getRuleContext(0,fd)}keyword_table_uncompat(){return this.getRuleContext(0,ld)}keyword_alter_uncompat(){return this.getRuleContext(0,dd)}keyword_in_uncompat(){return this.getRuleContext(0,ud)}keyword_window_uncompat(){return this.getRuleContext(0,gd)}keyword_hint_uncompat(){return this.getRuleContext(0,pd)}get ruleIndex(){return rs.RULE_id_without}accept(e){return e.visitId_without?e.visitId_without(this):e.visitChildren(this)}},Bh=class extends W{static{Si(this,"Id_hintContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,Ih)}keyword_compat(){return this.getRuleContext(0,fd)}keyword_expr_uncompat(){return this.getRuleContext(0,cd)}keyword_table_uncompat(){return this.getRuleContext(0,ld)}keyword_select_uncompat(){return this.getRuleContext(0,hd)}keyword_alter_uncompat(){return this.getRuleContext(0,dd)}keyword_in_uncompat(){return this.getRuleContext(0,ud)}keyword_window_uncompat(){return this.getRuleContext(0,gd)}get ruleIndex(){return rs.RULE_id_hint}accept(e){return e.visitId_hint?e.visitId_hint(this):e.visitChildren(this)}},Wh=class extends W{static{Si(this,"Id_as_compatContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,Ih)}keyword_as_compat(){return this.getRuleContext(0,md)}get ruleIndex(){return rs.RULE_id_as_compat}accept(e){return e.visitId_as_compat?e.visitId_as_compat(this):e.visitChildren(this)}},Vh=class extends W{static{Si(this,"An_idContext")}constructor(e,t){super(e,t)}id(){return this.getRuleContext(0,Oh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_an_id}accept(e){return e.visitAn_id?e.visitAn_id(this):e.visitChildren(this)}},zh=class extends W{static{Si(this,"An_id_or_typeContext")}constructor(e,t){super(e,t)}id_or_type(){return this.getRuleContext(0,id)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_an_id_or_type}accept(e){return e.visitAn_id_or_type?e.visitAn_id_or_type(this):e.visitChildren(this)}},Gh=class extends W{static{Si(this,"An_id_schemaContext")}constructor(e,t){super(e,t)}id_schema(){return this.getRuleContext(0,Dh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_an_id_schema}accept(e){return e.visitAn_id_schema?e.visitAn_id_schema(this):e.visitChildren(this)}},jh=class extends W{static{Si(this,"An_id_exprContext")}constructor(e,t){super(e,t)}id_expr(){return this.getRuleContext(0,Mh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_an_id_expr}accept(e){return e.visitAn_id_expr?e.visitAn_id_expr(this):e.visitChildren(this)}},Kh=class extends W{static{Si(this,"An_id_expr_inContext")}constructor(e,t){super(e,t)}id_expr_in(){return this.getRuleContext(0,Ph)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_an_id_expr_in}accept(e){return e.visitAn_id_expr_in?e.visitAn_id_expr_in(this):e.visitChildren(this)}},Yh=class extends W{static{Si(this,"An_id_windowContext")}constructor(e,t){super(e,t)}id_window(){return this.getRuleContext(0,Fh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_an_id_window}accept(e){return e.visitAn_id_window?e.visitAn_id_window(this):e.visitChildren(this)}},qh=class extends W{static{Si(this,"An_id_tableContext")}constructor(e,t){super(e,t)}id_table(){return this.getRuleContext(0,Uh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_an_id_table}accept(e){return e.visitAn_id_table?e.visitAn_id_table(this):e.visitChildren(this)}},$h=class extends W{static{Si(this,"An_id_withoutContext")}constructor(e,t){super(e,t)}id_without(){return this.getRuleContext(0,Hh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_an_id_without}accept(e){return e.visitAn_id_without?e.visitAn_id_without(this):e.visitChildren(this)}},Qh=class extends W{static{Si(this,"An_id_hintContext")}constructor(e,t){super(e,t)}id_hint(){return this.getRuleContext(0,Bh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_an_id_hint}accept(e){return e.visitAn_id_hint?e.visitAn_id_hint(this):e.visitChildren(this)}},Xh=class extends W{static{Si(this,"An_id_pureContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,Ih)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_an_id_pure}accept(e){return e.visitAn_id_pure?e.visitAn_id_pure(this):e.visitChildren(this)}},Zh=class extends W{static{Si(this,"An_id_as_compatContext")}constructor(e,t){super(e,t)}id_as_compat(){return this.getRuleContext(0,Wh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_an_id_as_compat}accept(e){return e.visitAn_id_as_compat?e.visitAn_id_as_compat(this):e.visitChildren(this)}},Jh=class extends W{static{Si(this,"View_nameContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}PRIMARY(){return this.getToken(rs.PRIMARY,0)}KEY(){return this.getToken(rs.KEY,0)}get ruleIndex(){return rs.RULE_view_name}accept(e){return e.visitView_name?e.visitView_name(this):e.visitChildren(this)}},ed=class extends W{static{Si(this,"Opt_id_prefixContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}DOT(){return this.getToken(rs.DOT,0)}get ruleIndex(){return rs.RULE_opt_id_prefix}accept(e){return e.visitOpt_id_prefix?e.visitOpt_id_prefix(this):e.visitChildren(this)}},td=class extends W{static{Si(this,"Cluster_exprContext")}constructor(e,t){super(e,t)}pure_column_or_named(){return this.getRuleContext(0,dn)}ASTERISK(){return this.getToken(rs.ASTERISK,0)}an_id(){return this.getRuleContext(0,Vh)}COLON(){return this.getToken(rs.COLON,0)}get ruleIndex(){return rs.RULE_cluster_expr}accept(e){return e.visitCluster_expr?e.visitCluster_expr(this):e.visitChildren(this)}},id=class extends W{static{Si(this,"Id_or_typeContext")}constructor(e,t){super(e,t)}id(){return this.getRuleContext(0,Oh)}type_id(){return this.getRuleContext(0,_d)}get ruleIndex(){return rs.RULE_id_or_type}accept(e){return e.visitId_or_type?e.visitId_or_type(this):e.visitChildren(this)}},sd=class extends W{static{Si(this,"Opt_id_prefix_or_typeContext")}constructor(e,t){super(e,t)}an_id_or_type(){return this.getRuleContext(0,zh)}DOT(){return this.getToken(rs.DOT,0)}get ruleIndex(){return rs.RULE_opt_id_prefix_or_type}accept(e){return e.visitOpt_id_prefix_or_type?e.visitOpt_id_prefix_or_type(this):e.visitChildren(this)}},nd=class extends W{static{Si(this,"Id_or_atContext")}constructor(e,t){super(e,t)}an_id_or_type(){return this.getRuleContext(0,zh)}COMMAT(){return this.getToken(rs.COMMAT,0)}get ruleIndex(){return rs.RULE_id_or_at}accept(e){return e.visitId_or_at?e.visitId_or_at(this):e.visitChildren(this)}},rd=class extends W{static{Si(this,"Id_table_or_typeContext")}constructor(e,t){super(e,t)}an_id_table(){return this.getRuleContext(0,qh)}type_id(){return this.getRuleContext(0,_d)}get ruleIndex(){return rs.RULE_id_table_or_type}accept(e){return e.visitId_table_or_type?e.visitId_table_or_type(this):e.visitChildren(this)}},od=class extends W{static{Si(this,"Id_table_or_atContext")}constructor(e,t){super(e,t)}id_table_or_type(){return this.getRuleContext(0,rd)}COMMAT(){return this.getToken(rs.COMMAT,0)}get ruleIndex(){return rs.RULE_id_table_or_at}accept(e){return e.visitId_table_or_at?e.visitId_table_or_at(this):e.visitChildren(this)}},ad=class extends W{static{Si(this,"KeywordContext")}constructor(e,t){super(e,t)}keyword_compat(){return this.getRuleContext(0,fd)}keyword_expr_uncompat(){return this.getRuleContext(0,cd)}keyword_table_uncompat(){return this.getRuleContext(0,ld)}keyword_select_uncompat(){return this.getRuleContext(0,hd)}keyword_alter_uncompat(){return this.getRuleContext(0,dd)}keyword_in_uncompat(){return this.getRuleContext(0,ud)}keyword_window_uncompat(){return this.getRuleContext(0,gd)}keyword_hint_uncompat(){return this.getRuleContext(0,pd)}get ruleIndex(){return rs.RULE_keyword}accept(e){return e.visitKeyword?e.visitKeyword(this):e.visitChildren(this)}},cd=class extends W{static{Si(this,"Keyword_expr_uncompatContext")}constructor(e,t){super(e,t)}ASYMMETRIC(){return this.getToken(rs.ASYMMETRIC,0)}BETWEEN(){return this.getToken(rs.BETWEEN,0)}BITCAST(){return this.getToken(rs.BITCAST,0)}CASE(){return this.getToken(rs.CASE,0)}CAST(){return this.getToken(rs.CAST,0)}CUBE(){return this.getToken(rs.CUBE,0)}CURRENT_DATE(){return this.getToken(rs.CURRENT_DATE,0)}CURRENT_TIME(){return this.getToken(rs.CURRENT_TIME,0)}CURRENT_TIMESTAMP(){return this.getToken(rs.CURRENT_TIMESTAMP,0)}EMPTY_ACTION(){return this.getToken(rs.EMPTY_ACTION,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}FROM(){return this.getToken(rs.FROM,0)}FULL(){return this.getToken(rs.FULL,0)}HOP(){return this.getToken(rs.HOP,0)}JSON_EXISTS(){return this.getToken(rs.JSON_EXISTS,0)}JSON_VALUE(){return this.getToken(rs.JSON_VALUE,0)}JSON_QUERY(){return this.getToken(rs.JSON_QUERY,0)}NOT(){return this.getToken(rs.NOT,0)}NULL(){return this.getToken(rs.NULL,0)}PROCESS(){return this.getToken(rs.PROCESS,0)}REDUCE(){return this.getToken(rs.REDUCE,0)}RETURN(){return this.getToken(rs.RETURN,0)}RETURNING(){return this.getToken(rs.RETURNING,0)}ROLLUP(){return this.getToken(rs.ROLLUP,0)}SELECT(){return this.getToken(rs.SELECT,0)}SYMMETRIC(){return this.getToken(rs.SYMMETRIC,0)}UNBOUNDED(){return this.getToken(rs.UNBOUNDED,0)}WHEN(){return this.getToken(rs.WHEN,0)}WHERE(){return this.getToken(rs.WHERE,0)}get ruleIndex(){return rs.RULE_keyword_expr_uncompat}accept(e){return e.visitKeyword_expr_uncompat?e.visitKeyword_expr_uncompat(this):e.visitChildren(this)}},ld=class extends W{static{Si(this,"Keyword_table_uncompatContext")}constructor(e,t){super(e,t)}ANY(){return this.getToken(rs.ANY,0)}ERASE(){return this.getToken(rs.ERASE,0)}STREAM(){return this.getToken(rs.STREAM,0)}get ruleIndex(){return rs.RULE_keyword_table_uncompat}accept(e){return e.visitKeyword_table_uncompat?e.visitKeyword_table_uncompat(this):e.visitChildren(this)}},hd=class extends W{static{Si(this,"Keyword_select_uncompatContext")}constructor(e,t){super(e,t)}ALL(){return this.getToken(rs.ALL,0)}AS(){return this.getToken(rs.AS,0)}ASSUME(){return this.getToken(rs.ASSUME,0)}DISTINCT(){return this.getToken(rs.DISTINCT,0)}EXCEPT(){return this.getToken(rs.EXCEPT,0)}HAVING(){return this.getToken(rs.HAVING,0)}INTERSECT(){return this.getToken(rs.INTERSECT,0)}LIMIT(){return this.getToken(rs.LIMIT,0)}UNION(){return this.getToken(rs.UNION,0)}WINDOW(){return this.getToken(rs.WINDOW,0)}WITHOUT(){return this.getToken(rs.WITHOUT,0)}get ruleIndex(){return rs.RULE_keyword_select_uncompat}accept(e){return e.visitKeyword_select_uncompat?e.visitKeyword_select_uncompat(this):e.visitChildren(this)}},dd=class extends W{static{Si(this,"Keyword_alter_uncompatContext")}constructor(e,t){super(e,t)}COLUMN(){return this.getToken(rs.COLUMN,0)}get ruleIndex(){return rs.RULE_keyword_alter_uncompat}accept(e){return e.visitKeyword_alter_uncompat?e.visitKeyword_alter_uncompat(this):e.visitChildren(this)}},ud=class extends W{static{Si(this,"Keyword_in_uncompatContext")}constructor(e,t){super(e,t)}COMPACT(){return this.getToken(rs.COMPACT,0)}get ruleIndex(){return rs.RULE_keyword_in_uncompat}accept(e){return e.visitKeyword_in_uncompat?e.visitKeyword_in_uncompat(this):e.visitChildren(this)}},gd=class extends W{static{Si(this,"Keyword_window_uncompatContext")}constructor(e,t){super(e,t)}GROUPS(){return this.getToken(rs.GROUPS,0)}RANGE(){return this.getToken(rs.RANGE,0)}ROWS(){return this.getToken(rs.ROWS,0)}get ruleIndex(){return rs.RULE_keyword_window_uncompat}accept(e){return e.visitKeyword_window_uncompat?e.visitKeyword_window_uncompat(this):e.visitChildren(this)}},pd=class extends W{static{Si(this,"Keyword_hint_uncompatContext")}constructor(e,t){super(e,t)}SCHEMA(){return this.getToken(rs.SCHEMA,0)}COLUMNS(){return this.getToken(rs.COLUMNS,0)}get ruleIndex(){return rs.RULE_keyword_hint_uncompat}accept(e){return e.visitKeyword_hint_uncompat?e.visitKeyword_hint_uncompat(this):e.visitChildren(this)}},md=class extends W{static{Si(this,"Keyword_as_compatContext")}constructor(e,t){super(e,t)}ABORT(){return this.getToken(rs.ABORT,0)}ACTION(){return this.getToken(rs.ACTION,0)}ADD(){return this.getToken(rs.ADD,0)}AFTER(){return this.getToken(rs.AFTER,0)}ALTER(){return this.getToken(rs.ALTER,0)}ANALYZE(){return this.getToken(rs.ANALYZE,0)}AND(){return this.getToken(rs.AND,0)}ANSI(){return this.getToken(rs.ANSI,0)}ARRAY(){return this.getToken(rs.ARRAY,0)}ASC(){return this.getToken(rs.ASC,0)}ASYNC(){return this.getToken(rs.ASYNC,0)}AT(){return this.getToken(rs.AT,0)}ATTACH(){return this.getToken(rs.ATTACH,0)}ATTRIBUTES(){return this.getToken(rs.ATTRIBUTES,0)}AUTOINCREMENT(){return this.getToken(rs.AUTOINCREMENT,0)}BACKUP(){return this.getToken(rs.BACKUP,0)}BATCH(){return this.getToken(rs.BATCH,0)}BEFORE(){return this.getToken(rs.BEFORE,0)}BEGIN(){return this.getToken(rs.BEGIN,0)}BERNOULLI(){return this.getToken(rs.BERNOULLI,0)}BY(){return this.getToken(rs.BY,0)}CASCADE(){return this.getToken(rs.CASCADE,0)}CHANGEFEED(){return this.getToken(rs.CHANGEFEED,0)}CHECK(){return this.getToken(rs.CHECK,0)}CLASSIFIER(){return this.getToken(rs.CLASSIFIER,0)}COLLECTION(){return this.getToken(rs.COLLECTION,0)}COMMIT(){return this.getToken(rs.COMMIT,0)}CONDITIONAL(){return this.getToken(rs.CONDITIONAL,0)}CONFLICT(){return this.getToken(rs.CONFLICT,0)}CONNECT(){return this.getToken(rs.CONNECT,0)}CONSTRAINT(){return this.getToken(rs.CONSTRAINT,0)}CONSUMER(){return this.getToken(rs.CONSUMER,0)}COVER(){return this.getToken(rs.COVER,0)}CREATE(){return this.getToken(rs.CREATE,0)}CURRENT(){return this.getToken(rs.CURRENT,0)}DATA(){return this.getToken(rs.DATA,0)}DATABASE(){return this.getToken(rs.DATABASE,0)}DECIMAL(){return this.getToken(rs.DECIMAL,0)}DECLARE(){return this.getToken(rs.DECLARE,0)}DEFAULT(){return this.getToken(rs.DEFAULT,0)}DEFERRABLE(){return this.getToken(rs.DEFERRABLE,0)}DEFERRED(){return this.getToken(rs.DEFERRED,0)}DELETE(){return this.getToken(rs.DELETE,0)}DESC(){return this.getToken(rs.DESC,0)}DESCRIBE(){return this.getToken(rs.DESCRIBE,0)}DETACH(){return this.getToken(rs.DETACH,0)}DIRECTORY(){return this.getToken(rs.DIRECTORY,0)}DISABLE(){return this.getToken(rs.DISABLE,0)}DISCARD(){return this.getToken(rs.DISCARD,0)}DROP(){return this.getToken(rs.DROP,0)}EACH(){return this.getToken(rs.EACH,0)}ELSE(){return this.getToken(rs.ELSE,0)}EMPTY(){return this.getToken(rs.EMPTY,0)}ENCRYPTED(){return this.getToken(rs.ENCRYPTED,0)}END(){return this.getToken(rs.END,0)}ERROR(){return this.getToken(rs.ERROR,0)}ESCAPE(){return this.getToken(rs.ESCAPE,0)}EVALUATE(){return this.getToken(rs.EVALUATE,0)}EXCLUDE(){return this.getToken(rs.EXCLUDE,0)}EXCLUSIVE(){return this.getToken(rs.EXCLUSIVE,0)}EXPLAIN(){return this.getToken(rs.EXPLAIN,0)}EXPORT(){return this.getToken(rs.EXPORT,0)}EXTERNAL(){return this.getToken(rs.EXTERNAL,0)}FAIL(){return this.getToken(rs.FAIL,0)}FAMILY(){return this.getToken(rs.FAMILY,0)}FILTER(){return this.getToken(rs.FILTER,0)}FIRST(){return this.getToken(rs.FIRST,0)}FLATTEN(){return this.getToken(rs.FLATTEN,0)}FOLLOWING(){return this.getToken(rs.FOLLOWING,0)}FOR(){return this.getToken(rs.FOR,0)}FOREIGN(){return this.getToken(rs.FOREIGN,0)}FUNCTION(){return this.getToken(rs.FUNCTION,0)}GLOB(){return this.getToken(rs.GLOB,0)}GLOBAL(){return this.getToken(rs.GLOBAL,0)}GRANT(){return this.getToken(rs.GRANT,0)}GROUP(){return this.getToken(rs.GROUP,0)}GROUPING(){return this.getToken(rs.GROUPING,0)}HASH(){return this.getToken(rs.HASH,0)}IF(){return this.getToken(rs.IF,0)}IGNORE(){return this.getToken(rs.IGNORE,0)}ILIKE(){return this.getToken(rs.ILIKE,0)}IMMEDIATE(){return this.getToken(rs.IMMEDIATE,0)}IMPORT(){return this.getToken(rs.IMPORT,0)}IN(){return this.getToken(rs.IN,0)}INCREMENT(){return this.getToken(rs.INCREMENT,0)}INCREMENTAL(){return this.getToken(rs.INCREMENTAL,0)}INDEX(){return this.getToken(rs.INDEX,0)}INDEXED(){return this.getToken(rs.INDEXED,0)}INHERITS(){return this.getToken(rs.INHERITS,0)}INITIAL(){return this.getToken(rs.INITIAL,0)}INITIALLY(){return this.getToken(rs.INITIALLY,0)}INSERT(){return this.getToken(rs.INSERT,0)}INSTEAD(){return this.getToken(rs.INSTEAD,0)}INTO(){return this.getToken(rs.INTO,0)}IS(){return this.getToken(rs.IS,0)}LAST(){return this.getToken(rs.LAST,0)}LEGACY(){return this.getToken(rs.LEGACY,0)}LIKE(){return this.getToken(rs.LIKE,0)}LOCAL(){return this.getToken(rs.LOCAL,0)}LOGIN(){return this.getToken(rs.LOGIN,0)}MANAGE(){return this.getToken(rs.MANAGE,0)}MATCH(){return this.getToken(rs.MATCH,0)}MATCHES(){return this.getToken(rs.MATCHES,0)}MATCH_RECOGNIZE(){return this.getToken(rs.MATCH_RECOGNIZE,0)}MEASURES(){return this.getToken(rs.MEASURES,0)}MICROSECONDS(){return this.getToken(rs.MICROSECONDS,0)}MILLISECONDS(){return this.getToken(rs.MILLISECONDS,0)}MODIFY(){return this.getToken(rs.MODIFY,0)}NANOSECONDS(){return this.getToken(rs.NANOSECONDS,0)}NEXT(){return this.getToken(rs.NEXT,0)}NO(){return this.getToken(rs.NO,0)}NOLOGIN(){return this.getToken(rs.NOLOGIN,0)}NULLS(){return this.getToken(rs.NULLS,0)}OBJECT(){return this.getToken(rs.OBJECT,0)}OF(){return this.getToken(rs.OF,0)}OFFSET(){return this.getToken(rs.OFFSET,0)}OMIT(){return this.getToken(rs.OMIT,0)}ONE(){return this.getToken(rs.ONE,0)}ONLY(){return this.getToken(rs.ONLY,0)}OPTION(){return this.getToken(rs.OPTION,0)}OR(){return this.getToken(rs.OR,0)}OTHERS(){return this.getToken(rs.OTHERS,0)}PARALLEL(){return this.getToken(rs.PARALLEL,0)}PARTITION(){return this.getToken(rs.PARTITION,0)}PASSING(){return this.getToken(rs.PASSING,0)}PASSWORD(){return this.getToken(rs.PASSWORD,0)}PAST(){return this.getToken(rs.PAST,0)}PATTERN(){return this.getToken(rs.PATTERN,0)}PER(){return this.getToken(rs.PER,0)}PERMUTE(){return this.getToken(rs.PERMUTE,0)}PLAN(){return this.getToken(rs.PLAN,0)}POOL(){return this.getToken(rs.POOL,0)}PRAGMA(){return this.getToken(rs.PRAGMA,0)}PRECEDING(){return this.getToken(rs.PRECEDING,0)}PRIMARY(){return this.getToken(rs.PRIMARY,0)}PRIVILEGES(){return this.getToken(rs.PRIVILEGES,0)}QUERY(){return this.getToken(rs.QUERY,0)}QUEUE(){return this.getToken(rs.QUEUE,0)}RAISE(){return this.getToken(rs.RAISE,0)}REFERENCES(){return this.getToken(rs.REFERENCES,0)}REGEXP(){return this.getToken(rs.REGEXP,0)}REINDEX(){return this.getToken(rs.REINDEX,0)}RELEASE(){return this.getToken(rs.RELEASE,0)}REMOVE(){return this.getToken(rs.REMOVE,0)}RENAME(){return this.getToken(rs.RENAME,0)}REPLACE(){return this.getToken(rs.REPLACE,0)}REPLICATION(){return this.getToken(rs.REPLICATION,0)}RESET(){return this.getToken(rs.RESET,0)}RESPECT(){return this.getToken(rs.RESPECT,0)}RESTART(){return this.getToken(rs.RESTART,0)}RESTORE(){return this.getToken(rs.RESTORE,0)}RESTRICT(){return this.getToken(rs.RESTRICT,0)}REVERT(){return this.getToken(rs.REVERT,0)}REVOKE(){return this.getToken(rs.REVOKE,0)}RLIKE(){return this.getToken(rs.RLIKE,0)}ROLLBACK(){return this.getToken(rs.ROLLBACK,0)}ROW(){return this.getToken(rs.ROW,0)}SAVEPOINT(){return this.getToken(rs.SAVEPOINT,0)}SECONDS(){return this.getToken(rs.SECONDS,0)}SEEK(){return this.getToken(rs.SEEK,0)}SETS(){return this.getToken(rs.SETS,0)}SHOW(){return this.getToken(rs.SHOW,0)}TSKIP(){return this.getToken(rs.TSKIP,0)}SEQUENCE(){return this.getToken(rs.SEQUENCE,0)}SOURCE(){return this.getToken(rs.SOURCE,0)}START(){return this.getToken(rs.START,0)}SUBQUERY(){return this.getToken(rs.SUBQUERY,0)}SUBSET(){return this.getToken(rs.SUBSET,0)}SYMBOLS(){return this.getToken(rs.SYMBOLS,0)}SYNC(){return this.getToken(rs.SYNC,0)}SYSTEM(){return this.getToken(rs.SYSTEM,0)}TABLE(){return this.getToken(rs.TABLE,0)}TABLES(){return this.getToken(rs.TABLES,0)}TABLESAMPLE(){return this.getToken(rs.TABLESAMPLE,0)}TABLESTORE(){return this.getToken(rs.TABLESTORE,0)}TEMP(){return this.getToken(rs.TEMP,0)}TEMPORARY(){return this.getToken(rs.TEMPORARY,0)}THEN(){return this.getToken(rs.THEN,0)}TIES(){return this.getToken(rs.TIES,0)}TO(){return this.getToken(rs.TO,0)}TOPIC(){return this.getToken(rs.TOPIC,0)}TRANSACTION(){return this.getToken(rs.TRANSACTION,0)}TRANSFER(){return this.getToken(rs.TRANSFER,0)}TRIGGER(){return this.getToken(rs.TRIGGER,0)}TYPE(){return this.getToken(rs.TYPE,0)}UNCONDITIONAL(){return this.getToken(rs.UNCONDITIONAL,0)}UNIQUE(){return this.getToken(rs.UNIQUE,0)}UNKNOWN(){return this.getToken(rs.UNKNOWN,0)}UNMATCHED(){return this.getToken(rs.UNMATCHED,0)}UPDATE(){return this.getToken(rs.UPDATE,0)}UPSERT(){return this.getToken(rs.UPSERT,0)}USE(){return this.getToken(rs.USE,0)}USER(){return this.getToken(rs.USER,0)}VACUUM(){return this.getToken(rs.VACUUM,0)}VALUES(){return this.getToken(rs.VALUES,0)}VIRTUAL(){return this.getToken(rs.VIRTUAL,0)}WRAPPER(){return this.getToken(rs.WRAPPER,0)}XOR(){return this.getToken(rs.XOR,0)}get ruleIndex(){return rs.RULE_keyword_as_compat}accept(e){return e.visitKeyword_as_compat?e.visitKeyword_as_compat(this):e.visitChildren(this)}},fd=class extends W{static{Si(this,"Keyword_compatContext")}constructor(e,t){super(e,t)}ABORT(){return this.getToken(rs.ABORT,0)}ACTION(){return this.getToken(rs.ACTION,0)}ADD(){return this.getToken(rs.ADD,0)}AFTER(){return this.getToken(rs.AFTER,0)}ALTER(){return this.getToken(rs.ALTER,0)}ANALYZE(){return this.getToken(rs.ANALYZE,0)}AND(){return this.getToken(rs.AND,0)}ANSI(){return this.getToken(rs.ANSI,0)}ARRAY(){return this.getToken(rs.ARRAY,0)}ASC(){return this.getToken(rs.ASC,0)}ASYNC(){return this.getToken(rs.ASYNC,0)}AT(){return this.getToken(rs.AT,0)}ATTACH(){return this.getToken(rs.ATTACH,0)}ATTRIBUTES(){return this.getToken(rs.ATTRIBUTES,0)}AUTOINCREMENT(){return this.getToken(rs.AUTOINCREMENT,0)}BACKUP(){return this.getToken(rs.BACKUP,0)}BATCH(){return this.getToken(rs.BATCH,0)}BEFORE(){return this.getToken(rs.BEFORE,0)}BEGIN(){return this.getToken(rs.BEGIN,0)}BERNOULLI(){return this.getToken(rs.BERNOULLI,0)}BY(){return this.getToken(rs.BY,0)}CASCADE(){return this.getToken(rs.CASCADE,0)}CHANGEFEED(){return this.getToken(rs.CHANGEFEED,0)}CHECK(){return this.getToken(rs.CHECK,0)}CLASSIFIER(){return this.getToken(rs.CLASSIFIER,0)}COLLATE(){return this.getToken(rs.COLLATE,0)}COLLECTION(){return this.getToken(rs.COLLECTION,0)}COMMIT(){return this.getToken(rs.COMMIT,0)}CONDITIONAL(){return this.getToken(rs.CONDITIONAL,0)}CONFLICT(){return this.getToken(rs.CONFLICT,0)}CONNECT(){return this.getToken(rs.CONNECT,0)}CONSTRAINT(){return this.getToken(rs.CONSTRAINT,0)}CONSUMER(){return this.getToken(rs.CONSUMER,0)}COVER(){return this.getToken(rs.COVER,0)}CREATE(){return this.getToken(rs.CREATE,0)}CROSS(){return this.getToken(rs.CROSS,0)}CURRENT(){return this.getToken(rs.CURRENT,0)}DATA(){return this.getToken(rs.DATA,0)}DATABASE(){return this.getToken(rs.DATABASE,0)}DECIMAL(){return this.getToken(rs.DECIMAL,0)}DECLARE(){return this.getToken(rs.DECLARE,0)}DEFAULT(){return this.getToken(rs.DEFAULT,0)}DEFERRABLE(){return this.getToken(rs.DEFERRABLE,0)}DEFERRED(){return this.getToken(rs.DEFERRED,0)}DEFINE(){return this.getToken(rs.DEFINE,0)}DELETE(){return this.getToken(rs.DELETE,0)}DESC(){return this.getToken(rs.DESC,0)}DESCRIBE(){return this.getToken(rs.DESCRIBE,0)}DETACH(){return this.getToken(rs.DETACH,0)}DIRECTORY(){return this.getToken(rs.DIRECTORY,0)}DISABLE(){return this.getToken(rs.DISABLE,0)}DISCARD(){return this.getToken(rs.DISCARD,0)}DO(){return this.getToken(rs.DO,0)}DROP(){return this.getToken(rs.DROP,0)}EACH(){return this.getToken(rs.EACH,0)}ELSE(){return this.getToken(rs.ELSE,0)}EMPTY(){return this.getToken(rs.EMPTY,0)}ENCRYPTED(){return this.getToken(rs.ENCRYPTED,0)}END(){return this.getToken(rs.END,0)}ERROR(){return this.getToken(rs.ERROR,0)}ESCAPE(){return this.getToken(rs.ESCAPE,0)}EVALUATE(){return this.getToken(rs.EVALUATE,0)}EXCLUDE(){return this.getToken(rs.EXCLUDE,0)}EXCLUSION(){return this.getToken(rs.EXCLUSION,0)}EXCLUSIVE(){return this.getToken(rs.EXCLUSIVE,0)}EXPLAIN(){return this.getToken(rs.EXPLAIN,0)}EXPORT(){return this.getToken(rs.EXPORT,0)}EXTERNAL(){return this.getToken(rs.EXTERNAL,0)}FAIL(){return this.getToken(rs.FAIL,0)}FAMILY(){return this.getToken(rs.FAMILY,0)}FILTER(){return this.getToken(rs.FILTER,0)}FIRST(){return this.getToken(rs.FIRST,0)}FLATTEN(){return this.getToken(rs.FLATTEN,0)}FOLLOWING(){return this.getToken(rs.FOLLOWING,0)}FOR(){return this.getToken(rs.FOR,0)}FOREIGN(){return this.getToken(rs.FOREIGN,0)}FUNCTION(){return this.getToken(rs.FUNCTION,0)}GLOB(){return this.getToken(rs.GLOB,0)}GLOBAL(){return this.getToken(rs.GLOBAL,0)}GRANT(){return this.getToken(rs.GRANT,0)}GROUP(){return this.getToken(rs.GROUP,0)}GROUPING(){return this.getToken(rs.GROUPING,0)}HASH(){return this.getToken(rs.HASH,0)}IF(){return this.getToken(rs.IF,0)}IGNORE(){return this.getToken(rs.IGNORE,0)}ILIKE(){return this.getToken(rs.ILIKE,0)}IMMEDIATE(){return this.getToken(rs.IMMEDIATE,0)}IMPORT(){return this.getToken(rs.IMPORT,0)}IN(){return this.getToken(rs.IN,0)}INCREMENT(){return this.getToken(rs.INCREMENT,0)}INCREMENTAL(){return this.getToken(rs.INCREMENTAL,0)}INDEX(){return this.getToken(rs.INDEX,0)}INDEXED(){return this.getToken(rs.INDEXED,0)}INHERITS(){return this.getToken(rs.INHERITS,0)}INITIAL(){return this.getToken(rs.INITIAL,0)}INITIALLY(){return this.getToken(rs.INITIALLY,0)}INNER(){return this.getToken(rs.INNER,0)}INSERT(){return this.getToken(rs.INSERT,0)}INSTEAD(){return this.getToken(rs.INSTEAD,0)}INTO(){return this.getToken(rs.INTO,0)}IS(){return this.getToken(rs.IS,0)}ISNULL(){return this.getToken(rs.ISNULL,0)}JOIN(){return this.getToken(rs.JOIN,0)}KEY(){return this.getToken(rs.KEY,0)}LAST(){return this.getToken(rs.LAST,0)}LEFT(){return this.getToken(rs.LEFT,0)}LEGACY(){return this.getToken(rs.LEGACY,0)}LIKE(){return this.getToken(rs.LIKE,0)}LOCAL(){return this.getToken(rs.LOCAL,0)}LOGIN(){return this.getToken(rs.LOGIN,0)}MANAGE(){return this.getToken(rs.MANAGE,0)}MATCH(){return this.getToken(rs.MATCH,0)}MATCHES(){return this.getToken(rs.MATCHES,0)}MATCH_RECOGNIZE(){return this.getToken(rs.MATCH_RECOGNIZE,0)}MEASURES(){return this.getToken(rs.MEASURES,0)}MICROSECONDS(){return this.getToken(rs.MICROSECONDS,0)}MILLISECONDS(){return this.getToken(rs.MILLISECONDS,0)}MODIFY(){return this.getToken(rs.MODIFY,0)}NANOSECONDS(){return this.getToken(rs.NANOSECONDS,0)}NATURAL(){return this.getToken(rs.NATURAL,0)}NEXT(){return this.getToken(rs.NEXT,0)}NO(){return this.getToken(rs.NO,0)}NOLOGIN(){return this.getToken(rs.NOLOGIN,0)}NOTNULL(){return this.getToken(rs.NOTNULL,0)}NULLS(){return this.getToken(rs.NULLS,0)}OBJECT(){return this.getToken(rs.OBJECT,0)}OF(){return this.getToken(rs.OF,0)}OFFSET(){return this.getToken(rs.OFFSET,0)}OMIT(){return this.getToken(rs.OMIT,0)}ON(){return this.getToken(rs.ON,0)}ONE(){return this.getToken(rs.ONE,0)}ONLY(){return this.getToken(rs.ONLY,0)}OPTION(){return this.getToken(rs.OPTION,0)}OR(){return this.getToken(rs.OR,0)}ORDER(){return this.getToken(rs.ORDER,0)}OTHERS(){return this.getToken(rs.OTHERS,0)}OUTER(){return this.getToken(rs.OUTER,0)}OVER(){return this.getToken(rs.OVER,0)}PARALLEL(){return this.getToken(rs.PARALLEL,0)}PARTITION(){return this.getToken(rs.PARTITION,0)}PASSING(){return this.getToken(rs.PASSING,0)}PASSWORD(){return this.getToken(rs.PASSWORD,0)}PAST(){return this.getToken(rs.PAST,0)}PATTERN(){return this.getToken(rs.PATTERN,0)}PER(){return this.getToken(rs.PER,0)}PERMUTE(){return this.getToken(rs.PERMUTE,0)}PLAN(){return this.getToken(rs.PLAN,0)}POOL(){return this.getToken(rs.POOL,0)}PRAGMA(){return this.getToken(rs.PRAGMA,0)}PRECEDING(){return this.getToken(rs.PRECEDING,0)}PRESORT(){return this.getToken(rs.PRESORT,0)}PRIMARY(){return this.getToken(rs.PRIMARY,0)}PRIVILEGES(){return this.getToken(rs.PRIVILEGES,0)}QUERY(){return this.getToken(rs.QUERY,0)}QUEUE(){return this.getToken(rs.QUEUE,0)}RAISE(){return this.getToken(rs.RAISE,0)}REFERENCES(){return this.getToken(rs.REFERENCES,0)}REGEXP(){return this.getToken(rs.REGEXP,0)}REINDEX(){return this.getToken(rs.REINDEX,0)}RELEASE(){return this.getToken(rs.RELEASE,0)}REMOVE(){return this.getToken(rs.REMOVE,0)}RENAME(){return this.getToken(rs.RENAME,0)}REPLACE(){return this.getToken(rs.REPLACE,0)}REPLICATION(){return this.getToken(rs.REPLICATION,0)}RESET(){return this.getToken(rs.RESET,0)}RESPECT(){return this.getToken(rs.RESPECT,0)}RESTART(){return this.getToken(rs.RESTART,0)}RESTORE(){return this.getToken(rs.RESTORE,0)}RESTRICT(){return this.getToken(rs.RESTRICT,0)}RESULT(){return this.getToken(rs.RESULT,0)}REVERT(){return this.getToken(rs.REVERT,0)}REVOKE(){return this.getToken(rs.REVOKE,0)}RIGHT(){return this.getToken(rs.RIGHT,0)}RLIKE(){return this.getToken(rs.RLIKE,0)}ROLLBACK(){return this.getToken(rs.ROLLBACK,0)}ROW(){return this.getToken(rs.ROW,0)}SAMPLE(){return this.getToken(rs.SAMPLE,0)}SAVEPOINT(){return this.getToken(rs.SAVEPOINT,0)}SECONDS(){return this.getToken(rs.SECONDS,0)}SEEK(){return this.getToken(rs.SEEK,0)}SEMI(){return this.getToken(rs.SEMI,0)}SETS(){return this.getToken(rs.SETS,0)}SHOW(){return this.getToken(rs.SHOW,0)}TSKIP(){return this.getToken(rs.TSKIP,0)}SEQUENCE(){return this.getToken(rs.SEQUENCE,0)}SOURCE(){return this.getToken(rs.SOURCE,0)}START(){return this.getToken(rs.START,0)}SUBQUERY(){return this.getToken(rs.SUBQUERY,0)}SUBSET(){return this.getToken(rs.SUBSET,0)}SYMBOLS(){return this.getToken(rs.SYMBOLS,0)}SYNC(){return this.getToken(rs.SYNC,0)}SYSTEM(){return this.getToken(rs.SYSTEM,0)}TABLE(){return this.getToken(rs.TABLE,0)}TABLES(){return this.getToken(rs.TABLES,0)}TABLESAMPLE(){return this.getToken(rs.TABLESAMPLE,0)}TABLESTORE(){return this.getToken(rs.TABLESTORE,0)}TEMP(){return this.getToken(rs.TEMP,0)}TEMPORARY(){return this.getToken(rs.TEMPORARY,0)}THEN(){return this.getToken(rs.THEN,0)}TIES(){return this.getToken(rs.TIES,0)}TO(){return this.getToken(rs.TO,0)}TOPIC(){return this.getToken(rs.TOPIC,0)}TRANSACTION(){return this.getToken(rs.TRANSACTION,0)}TRANSFER(){return this.getToken(rs.TRANSFER,0)}TRIGGER(){return this.getToken(rs.TRIGGER,0)}TYPE(){return this.getToken(rs.TYPE,0)}UNCONDITIONAL(){return this.getToken(rs.UNCONDITIONAL,0)}UNIQUE(){return this.getToken(rs.UNIQUE,0)}UNKNOWN(){return this.getToken(rs.UNKNOWN,0)}UNMATCHED(){return this.getToken(rs.UNMATCHED,0)}UPDATE(){return this.getToken(rs.UPDATE,0)}UPSERT(){return this.getToken(rs.UPSERT,0)}USE(){return this.getToken(rs.USE,0)}USER(){return this.getToken(rs.USER,0)}USING(){return this.getToken(rs.USING,0)}VACUUM(){return this.getToken(rs.VACUUM,0)}VALUES(){return this.getToken(rs.VALUES,0)}VIEW(){return this.getToken(rs.VIEW,0)}VIRTUAL(){return this.getToken(rs.VIRTUAL,0)}WITH(){return this.getToken(rs.WITH,0)}WRAPPER(){return this.getToken(rs.WRAPPER,0)}XOR(){return this.getToken(rs.XOR,0)}get ruleIndex(){return rs.RULE_keyword_compat}accept(e){return e.visitKeyword_compat?e.visitKeyword_compat(this):e.visitChildren(this)}},_d=class extends W{static{Si(this,"Type_idContext")}constructor(e,t){super(e,t)}OPTIONAL(){return this.getToken(rs.OPTIONAL,0)}TUPLE(){return this.getToken(rs.TUPLE,0)}STRUCT(){return this.getToken(rs.STRUCT,0)}VARIANT(){return this.getToken(rs.VARIANT,0)}LIST(){return this.getToken(rs.LIST,0)}FLOW(){return this.getToken(rs.FLOW,0)}DICT(){return this.getToken(rs.DICT,0)}SET(){return this.getToken(rs.SET,0)}ENUM(){return this.getToken(rs.ENUM,0)}RESOURCE(){return this.getToken(rs.RESOURCE,0)}TAGGED(){return this.getToken(rs.TAGGED,0)}CALLABLE(){return this.getToken(rs.CALLABLE,0)}get ruleIndex(){return rs.RULE_type_id}accept(e){return e.visitType_id?e.visitType_id(this):e.visitChildren(this)}},vd=class extends W{static{Si(this,"Bool_valueContext")}constructor(e,t){super(e,t)}TRUE(){return this.getToken(rs.TRUE,0)}FALSE(){return this.getToken(rs.FALSE,0)}get ruleIndex(){return rs.RULE_bool_value}accept(e){return e.visitBool_value?e.visitBool_value(this):e.visitChildren(this)}},Cd=class extends W{static{Si(this,"RealContext")}constructor(e,t){super(e,t)}REAL(){return this.getToken(rs.REAL,0)}get ruleIndex(){return rs.RULE_real}accept(e){return e.visitReal?e.visitReal(this):e.visitChildren(this)}},Ed=class extends W{static{Si(this,"IntegerContext")}constructor(e,t){super(e,t)}DIGITS(){return this.getToken(rs.DIGITS,0)}INTEGER_VALUE(){return this.getToken(rs.INTEGER_VALUE,0)}get ruleIndex(){return rs.RULE_integer}accept(e){return e.visitInteger?e.visitInteger(this):e.visitChildren(this)}},bd=class extends W{static{Si(this,"Sql_query_yqContext")}constructor(e,t){super(e,t)}sql_stmt_list_yq(){return this.getRuleContext(0,Sd)}PRAGMA(){return this.getToken(rs.PRAGMA,0)}ANSI(){return this.getToken(rs.ANSI,0)}DIGITS(){return this.getToken(rs.DIGITS,0)}ansi_sql_stmt_list(){return this.getRuleContext(0,cs)}get ruleIndex(){return rs.RULE_sql_query_yq}accept(e){return e.visitSql_query_yq?e.visitSql_query_yq(this):e.visitChildren(this)}},Sd=class extends W{static{Si(this,"Sql_stmt_list_yqContext")}constructor(e,t){super(e,t)}sql_stmt_yq(e){return void 0===e?this.getRuleContexts(yd):this.getRuleContext(e,yd)}EOF(){return this.getToken(rs.EOF,0)}SEMICOLON(e){return void 0===e?this.getTokens(rs.SEMICOLON):this.getToken(rs.SEMICOLON,e)}get ruleIndex(){return rs.RULE_sql_stmt_list_yq}accept(e){return e.visitSql_stmt_list_yq?e.visitSql_stmt_list_yq(this):e.visitChildren(this)}},yd=class extends W{static{Si(this,"Sql_stmt_yqContext")}constructor(e,t){super(e,t)}sql_stmt_core_yq(){return this.getRuleContext(0,wd)}EXPLAIN(){return this.getToken(rs.EXPLAIN,0)}QUERY(){return this.getToken(rs.QUERY,0)}PLAN(){return this.getToken(rs.PLAN,0)}get ruleIndex(){return rs.RULE_sql_stmt_yq}accept(e){return e.visitSql_stmt_yq?e.visitSql_stmt_yq(this):e.visitChildren(this)}},wd=class extends W{static{Si(this,"Sql_stmt_core_yqContext")}constructor(e,t){super(e,t)}pragma_stmt(){return this.getRuleContext(0,dr)}select_stmt(){return this.getRuleContext(0,mr)}named_nodes_stmt(){return this.getRuleContext(0,wh)}use_stmt(){return this.getRuleContext(0,Sh)}into_table_stmt_yq(){return this.getRuleContext(0,ko)}declare_stmt(){return this.getRuleContext(0,nr)}import_stmt(){return this.getRuleContext(0,or)}export_stmt(){return this.getRuleContext(0,ar)}do_stmt(){return this.getRuleContext(0,hr)}define_action_or_subquery_stmt(){return this.getRuleContext(0,dl)}if_stmt(){return this.getRuleContext(0,gl)}for_stmt(){return this.getRuleContext(0,pl)}values_stmt(){return this.getRuleContext(0,No)}get ruleIndex(){return rs.RULE_sql_stmt_core_yq}accept(e){return e.visitSql_stmt_core_yq?e.visitSql_stmt_core_yq(this):e.visitChildren(this)}},Rd=class extends W{static{Si(this,"Replication_nameContext")}constructor(e,t){super(e,t)}AS(){return this.getToken(rs.AS,0)}object_ref(){return this.getRuleContext(0,El)}get ruleIndex(){return rs.RULE_replication_name}accept(e){return e.visitReplication_name?e.visitReplication_name(this):e.visitChildren(this)}},Ld=class extends W{static{Si(this,"Where_exprContext")}constructor(e,t){super(e,t)}WHERE(){return this.getToken(rs.WHERE,0)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_where_expr}accept(e){return e.visitWhere_expr?e.visitWhere_expr(this):e.visitChildren(this)}},Td=class extends vt{static{Si(this,"YQLVisitor")}},xd={SPACE:rs.WS,FROM:rs.FROM,OPENING_BRACKET:rs.LPAREN,CLOSING_BRACKET:rs.RPAREN,ALTER:rs.ALTER,INSERT:rs.INSERT,UPSERT:rs.UPSERT,UPDATE:rs.UPDATE,JOIN:rs.JOIN,SEMICOLON:rs.SEMICOLON,SELECT:rs.SELECT};function kd(e,t,i,s){let n,r=i-1;do{if(n=e.get(r),n?.type===s)return!0;r--}while(n?.type===t.SPACE);return!1}function Ad(e){let t=new Map(e.map((e=>[e,!0])));return{anyRuleInList:e=>(Array.isArray(e)?e:[e]).some((e=>t.has(e))),allRulesInList:e=>!e.some((e=>!t.has(e)))}}function Nd({anyRuleInList:e,allRulesInList:t}){if(t([rs.RULE_select_stmt,rs.RULE_id_expr]))return!e([rs.RULE_window_specification_details,rs.RULE_group_by_clause,rs.RULE_table_ref,rs.RULE_where_expr])||void 0}function Id({anyRuleInList:e}){return e([rs.RULE_alter_object_stmt,rs.RULE_drop_object_stmt])&&e(rs.RULE_id_or_at)}function Od({anyRuleInList:e,tokenStream:t,cursorTokenIndex:i}){if(!e(rs.RULE_id_or_at))return;let s=e(rs.RULE_drop_table_stmt)&&!!ss(t,xd,i,rs.TABLESTORE);return e(rs.RULE_alter_table_store_stmt)||s}function Dd({anyRuleInList:e,allRulesInList:t,tokenStream:i,cursorTokenIndex:s}){if(!e([rs.RULE_id_or_at,rs.RULE_id_table_or_type]))return;let n=e(rs.RULE_replication_target)&&!e(rs.RULE_replication_name),r=t([rs.RULE_simple_table_ref])&&!ss(i,xd,s,rs.CREATE)&&!ss(i,xd,s,rs.EXTERNAL);return e([rs.RULE_table_ref,rs.RULE_table_inherits])||r||n}function Md({anyRuleInList:e,tokenStream:t,cursorTokenIndex:i}){if(!e(rs.RULE_role_name))return;let s=!!ss(t,xd,i,rs.USER),n=!!ss(t,xd,i,rs.RENAME),r=e(rs.RULE_revoke_permissions_stmt),o=e(rs.RULE_alter_group_stmt)&&!n&&s,a=e(rs.RULE_create_group_stmt)&&s,c=e(rs.RULE_alter_user_stmt)&&!n;return e(rs.RULE_drop_role_stmt)&&s||c||a||o||r}function Pd({anyRuleInList:e,tokenStream:t,cursorTokenIndex:i}){if(!e(rs.RULE_role_name))return;let s=!!ss(t,xd,i,rs.GROUP),n=!!ss(t,xd,i,rs.USER),r=!!ss(t,xd,i,rs.RENAME),o=e(rs.RULE_drop_role_stmt)&&s,a=e(rs.RULE_alter_group_stmt)&&!r&&!n;return e(rs.RULE_revoke_permissions_stmt)||a||o}function Fd({anyRuleInList:e}){if(e([rs.RULE_an_id,rs.RULE_topic_ref]))return e([rs.RULE_drop_topic_stmt,rs.RULE_alter_topic_stmt])}function Ud({allRulesInList:e}){return e([rs.RULE_drop_view_stmt,rs.RULE_id_or_at])||e([rs.RULE_table_ref,rs.RULE_id_table_or_type])}function Hd({anyRuleInList:e}){if(e(rs.RULE_id_or_at))return e([rs.RULE_alter_replication_stmt,rs.RULE_drop_replication_stmt])}function Bd({allRulesInList:e,tokenStream:t,cursorTokenIndex:i}){let s=!!ss(t,xd,i,rs.EXTERNAL);return e([rs.RULE_id_or_at,rs.RULE_drop_table_stmt])&&s||e([rs.RULE_table_ref,rs.RULE_id_table_or_type])}function Wd({anyRuleInList:e}){if(e(rs.RULE_id_or_at))return e([rs.RULE_drop_external_data_source_stmt,rs.RULE_alter_external_data_source_stmt])}function Vd({anyRuleInList:e}){return!!e(rs.RULE_an_id)&&e([rs.RULE_alter_table_drop_index,rs.RULE_alter_table_rename_index_to])}function zd({anyRuleInList:e,tokenStream:t,cursorTokenIndex:i}){if(!e([rs.RULE_an_id,rs.RULE_id_expr])||e([rs.RULE_table_ref,rs.RULE_values_stmt,rs.RULE_alter_table_add_column,rs.RULE_lambda_stmt]))return!1;let s=e(rs.RULE_select_kind)&&!ss(t,xd,i,rs.LIMIT),n=e(rs.RULE_alter_table_alter_column)&&!ss(t,xd,i,rs.FAMILY);return e([rs.RULE_pure_column_list,rs.RULE_pure_column_or_named,rs.RULE_column_name,rs.RULE_without_column_name,rs.RULE_alter_table_drop_column,rs.RULE_delete_stmt])||n||s}function Gd(e){if(!zd(e))return!1;let{tokenStream:t,cursorTokenIndex:i,anyRuleInList:s,allRulesInList:n}=e;return s([rs.RULE_into_table_stmt,rs.RULE_into_table_stmt_yq])&&s(rs.RULE_into_values_source)?kd(t,xd,i,rs.LPAREN):!!n([rs.RULE_select_stmt,rs.RULE_result_column])&&kd(t,xd,i,rs.SELECT)}function jd({anyRuleInList:e}){return e([rs.RULE_expr,rs.RULE_table_ref,rs.RULE_simple_table_ref_core,rs.RULE_pure_column_or_named,rs.RULE_using_call_expr])}function Kd({anyRuleInList:e,allRulesInList:t}){let i=t([rs.RULE_id_expr,rs.RULE_select_stmt])&&!e(rs.RULE_table_ref);return e(rs.RULE_type_name_simple)||i}function Yd({allRulesInList:e}){return e([rs.RULE_an_id,rs.RULE_pragma_stmt])}function qd({anyRuleInList:e}){if(e([rs.RULE_atom_expr,rs.RULE_in_atom_expr])&&!e(rs.RULE_table_ref))return e(rs.RULE_select_stmt)}function $d({allRulesInList:e}){return e([rs.RULE_id_expr,rs.RULE_table_ref])}function Qd({anyRuleInList:e}){if(e(rs.RULE_id_expr)&&!e(rs.RULE_table_ref))return e(rs.RULE_select_stmt)}function Xd({anyRuleInList:e,allRulesInList:t}){if(t([rs.RULE_select_stmt,rs.RULE_id_expr]))return!e([rs.RULE_group_by_clause,rs.RULE_table_ref,rs.RULE_where_expr])||void 0}function Zd({allRulesInList:e}){return e([rs.RULE_an_id_hint,rs.RULE_table_hint])}function Jd({allRulesInList:e,anyRuleInList:t}){if(!t([rs.RULE_table_setting_value,rs.RULE_topic_setting_value,rs.RULE_topic_consumer_setting_value])){if(e([rs.RULE_with_table_settings,rs.RULE_an_id]))return t(rs.RULE_create_external_data_source_stmt)?"externalDataSource":t(rs.RULE_create_view_stmt)?"view":t(rs.RULE_create_table_stmt)?"table":void 0;if(e([rs.RULE_with_topic_settings,rs.RULE_an_id]))return"topic";if(e([rs.RULE_topic_consumer_with_settings,rs.RULE_an_id]))return"topicConsumer";if(e([rs.RULE_replication_settings,rs.RULE_an_id]))return"replication"}}Si(kd,"isFirstPreviousTokenOfType"),Si(Ad,"getRuleCheckHelpers"),Si(Nd,"getWindowFunctionsSuggestions"),Si(Id,"getObjectSuggestions"),Si(Od,"getTablestoreSuggestions"),Si(Dd,"getTableSuggestions"),Si(Md,"getUserSuggestions"),Si(Pd,"getGroupSuggestions"),Si(Fd,"getTopicSuggestions"),Si(Ud,"getViewSuggestions"),Si(Hd,"getReplicationSuggestions"),Si(Bd,"getExternalTableSuggestions"),Si(Wd,"getExternalDatasourceSuggestions"),Si(Vd,"checkShouldSuggestTableIndexes"),Si(zd,"checkShouldSuggestColumns"),Si(Gd,"checkShouldSuggestAllColumns"),Si(jd,"checkShouldSuggestVariables"),Si(Kd,"getSimpleTypesSuggestions"),Si(Yd,"getPragmasSuggestions"),Si(qd,"getUdfsSuggestions"),Si($d,"getTableFunctionsSuggestions"),Si(Qd,"getFunctionsSuggestions"),Si(Xd,"getAggregateFunctionsSuggestions"),Si(Zd,"checkShouldSuggestTableHints"),Si(Jd,"getEntitySettingsSuggestions");var eu=rs.ruleNames;function tu(e){let t=e.findIndex((e=>e===rs.RULE_sql_stmt_core||e===rs.RULE_sql_stmt_core_yq));if(-1===t)return;let i=e[t+1];return i?eu[i]:void 0}Si(tu,"getParticularStatement");var iu={suggestObject:"object",suggestTableStore:"tableStore",suggestTable:"table",suggestExternalTable:"externalTable",suggestExternalDatasource:"externalDataSource",suggestTopic:"topic",suggestView:"view",suggestReplication:"replication",suggestGroup:"group",suggestUser:"user"};function su(e,t,i){let s={...Ad(e),cursorTokenIndex:t,tokenStream:i},n=Nd(s),r=Id(s),o=Od(s),a=Dd(s),c=Md(s),l=Pd(s),h=Fd(s),d=Ud(s),u=Hd(s),g=Bd(s),p=Wd(s),m=Vd(s),f=zd(s),_=Gd(s),v=Kd(s),C=Yd(s),E=qd(s),b=$d(s),S=Qd(s),y=Xd(s),w=Zd(s),R=Jd(s);return{suggestWindowFunctions:n,shouldSuggestTableIndexes:m,shouldSuggestColumns:f,shouldSuggestAllColumns:_,shouldSuggestColumnAliases:f,shouldSuggestVariables:jd(s),suggestSimpleTypes:v,suggestPragmas:C,suggestUdfs:E,suggestTableFunctions:b,suggestFunctions:S,suggestAggregateFunctions:y,suggestTableHints:w?tu(e):void 0,suggestEntitySettings:R,suggestObject:r,suggestTableStore:o,suggestTable:a,suggestUser:c,suggestGroup:l,suggestTopic:h,suggestView:d,suggestReplication:u,suggestExternalTable:g,suggestExternalDatasource:p}}function nu(e,t,i){for(let s=0;s<e.size;s++){let n=e.get(s),r=n.column,o=n.text?.length??0,a=n.column+o;if(n.line===t.line&&r<=t.column-1&&a>=t.column-1&&i.includes(n.type)){let t=s-1;for(;t>=0;){let n=e.get(t);if(!i.includes(n.type))return s+1-t;t-=1}}}return 0}function ru(e,t,i,s=[]){return ou(e,t,i,nu(t,i,s))}function ou(e,t,i,s){return e instanceof F?cu(e,i,s):lu(e,t,i,s)}function au(e,t,i,s,n){let r=e.column,o=e.column+t.length;return e.start>e.stop?{index:e.tokenIndex,context:s,text:t.substring(0,i.column)}:e.line===i.line&&r<=i.column-1-n&&o>=i.column-1-n?{index:e.tokenIndex,context:s,text:t.substring(0,i.column-r)}:void 0}function cu(e,t,i){return au(e.symbol,e.getText(),t,e,i)}function lu(e,t,i,s){if(!(!e.start||!e.stop||e.start.line>i.line||e.stop.line<i.line)){for(let n=0;n<e.getChildCount();n++){let r=e.getChild(n);if(!r)continue;let o=ou(r,t,i,s);if(o)return o}for(let n=e.start.tokenIndex;n<=e.stop.tokenIndex;n++){let r=au(t.get(n),t.get(n).text??"",i,e,s);if(r)return r}}}function hu(e,t,i,s,n,r,o,a=[]){let c=s(Di(e,t,o)),l=ru(c,n,r,a);if(!l)throw new Error(`Could not find tokenContext at Ln ${r.line}, Col ${r.column}`);return i.visit(c),du(i.symbolTable,l.context)}function du(e,t){let i=Ji(t,e),s=[];return i instanceof ci?s=i.getNestedSymbolsOfTypeSync(qi):e&&(s=e.getNestedSymbolsOfTypeSync(qi).filter((e=>!e.parent?.context))),s.map((e=>({name:e.name,value:e.value})))}function uu(e,t,i,s,n,r,o,a=[]){let c={},l=s(Di(e,t,o)),h=ru(l,n,r,a);if(!h)throw new Error(`Could not find tokenContext at Ln ${r.line}, Col ${r.column}`);i.visit(l);let d=gu(i.symbolTable,h.context),u=pu(i.symbolTable,h.context);return d.length&&(c.tableContextSuggestion={tables:d}),u.length&&(c.suggestColumnAliases=u),c}function gu(e,t){let i=Ji(t,e),s=[];return i instanceof ci?s=i.getNestedSymbolsOfTypeSync(Yi).filter((e=>e.parent?.context===i.context)):e&&(s=e.getNestedSymbolsOfTypeSync(Yi)),$i(s)}function pu(e,t){let i=Ji(t,e),s=[];return i instanceof ci?s=i.getNestedSymbolsOfTypeSync(Xi).filter((e=>e.parent?.context===i.context)):e&&(s=e.getNestedSymbolsOfTypeSync(Xi)),s.map((({name:e})=>({name:e})))}function mu(){let e=[],t=rs.LBRACE_SQUARE;for(let i=rs.EQUALS;i<=t;i++)i!==rs.ASTERISK&&e.push(i);return e.push(rs.STREAM),e.push(rs.STRING_VALUE),e.push(rs.REAL),e.push(rs.EOF),e.push(rs.DIGITS),e.push(rs.BLOB),e.push(rs.CURRENT_TIME),e.push(rs.CURRENT_DATE),e.push(rs.CURRENT_TIMESTAMP),e}Si(su,"getGranularSuggestions"),Si(nu,"getWhitespaceBeforeCursor"),Si(ru,"computeTokenContext"),Si(ou,"computeTokenContextInternal"),Si(au,"getTokenContext"),Si(cu,"computeTokenContextOfTerminalNode"),Si(lu,"computeTokenContextOfChildNode"),Si(hu,"getVariableSuggestions"),Si(du,"suggestVariables"),Si(uu,"getExtendedTableSuggestions"),Si(gu,"suggestTables"),Si(pu,"suggestColumnAliases"),Si(mu,"getIgnoredTokens");var fu=new Set(mu()),_u=new Set([rs.RULE_id_or_type,rs.RULE_cluster_expr,rs.RULE_identifier,rs.RULE_id,rs.RULE_integer,rs.RULE_type_id,rs.RULE_keyword,rs.RULE_keyword_compat,rs.RULE_keyword_as_compat,rs.RULE_keyword_expr_uncompat,rs.RULE_keyword_table_uncompat,rs.RULE_keyword_select_uncompat,rs.RULE_keyword_alter_uncompat,rs.RULE_keyword_in_uncompat,rs.RULE_keyword_window_uncompat,rs.RULE_keyword_hint_uncompat,rs.RULE_id_schema,rs.RULE_id_expr_in,rs.RULE_id_window,rs.RULE_id_table,rs.RULE_id_without,rs.RULE_id_hint,rs.RULE_id_as_compat]),vu=class extends Td{static{Si(this,"YQLSymbolTableVisitor")}constructor(){super(),this.symbolTable=new Ei("",{allowDuplicateSymbols:!0}),this.scope=this.symbolTable.addNewSymbolOfType(ci,void 0)}withScope(e,t,i,s){let n=this.symbolTable.addNewSymbolOfType(t,this.scope,...i);n.context=e,this.scope=n;try{return s()}finally{this.scope=n.parent}}getColumnsFromSelectCore(e){let t=[],i=0;for(;i>=0;){let s=e?.result_column(i);if(!s){i=-1;continue}let n=s.an_id_as_compat()?.getText()||s.an_id_or_type()?.getText();if(n)t.push(n);else{let e=s.expr()?.getText();e&&t.push(e)}i+=1}return t.length?t:void 0}defaultResult(){return this.symbolTable}},Cu=class extends vu{constructor(){super(...arguments),this.addVariableSymbol=(e,t)=>{try{let i=0;for(;null!==i;){let s=e(i);s?(this.symbolTable.addNewSymbolOfType(qi,this.scope,s,t),i++):i=null}}catch(Ai){if(!(Ai instanceof ai))throw Ai}},this.visitDeclare_stmt=e=>{try{let t=e.bind_parameter()?.an_id_or_type()?.getText();if(t){let i=e.literal_value()?.getText();this.symbolTable.addNewSymbolOfType(qi,this.scope,t,i)}}catch(t){if(!(t instanceof ai))throw t}return this.visitChildren(e)},this.visitAction_or_subquery_args=e=>(this.addVariableSymbol((t=>e.opt_bind_parameter(t)?.bind_parameter()?.an_id_or_type()?.getText())),this.visitChildren(e)),this.visitNamed_nodes_stmt=e=>{let t=(e.subselect_stmt()?.select_stmt()?.select_kind_parenthesis(0)||e.subselect_stmt()?.select_unparenthesized_stmt())?.select_kind_partial()?.select_kind()?.select_core(),i=t?this.getColumnsFromSelectCore(t):void 0;return this.addVariableSymbol((t=>e.bind_parameter_list()?.bind_parameter(t)?.an_id_or_type()?.getText()),i?{columns:i}:void 0),this.visitChildren(e)},this.visitDefine_action_or_subquery_stmt=e=>{try{let t=e.bind_parameter()?.an_id_or_type()?.getText();t&&this.symbolTable.addNewSymbolOfType(qi,this.scope,t,void 0)}catch(t){if(!(t instanceof ai))throw t}return this.withScope(e,gi,[e.bind_parameter()?.an_id_or_type()?.getText()],(()=>this.visitChildren(e)))??{}},this.visitLambda=e=>{let t=Si((()=>{let t=e.smart_parenthesis()?.named_expr_list();return this.addVariableSymbol((e=>{let i=t?.named_expr(e)?.expr()?.getText();if(i&&i.startsWith("$"))return i.slice(1)})),this.visitChildren(e)}),"addVariables");return this.withScope(e,gi,[e.getText()],t)??{}}}static{Si(this,"YQLVariableSymbolTableVisitor")}},Eu=class extends vu{constructor(){super(...arguments),this.visitSql_stmt_core=e=>this.withScope(e,gi,[e.getText()],(()=>this.visitChildren(e)))??{},this.visitSelect_stmt=e=>this.withScope(e,gi,[e.getText()],(()=>this.visitChildren(e)))??{},this.visitSql_stmt_core_yq=e=>this.withScope(e,gi,[e.getText()],(()=>this.visitChildren(e)))??{},this.visitSimple_table_ref_core=e=>{try{let t=e.object_ref()?.id_or_at()?.an_id_or_type()?.getText();t&&this.symbolTable.addNewSymbolOfType(Yi,this.scope,t)}catch(t){if(!(t instanceof ai))throw t}return this.visitChildren(e)},this.visitAlter_table_store_stmt=e=>{try{e.object_ref()?.id_or_at()?.getText()&&this.symbolTable.addNewSymbolOfType(Yi,this.scope,e.object_ref()?.id_or_at()?.getText())}catch(t){if(!(t instanceof ai))throw t}return this.visitChildren(e)},this.visitNamed_single_source=e=>{try{let t=e.single_source().table_ref()?.getText()??"",i=e.an_id()?.getText()??e.an_id_as_compat()?.getText(),s=e.single_source().select_stmt()?.select_kind_parenthesis(0)?.select_kind_partial()?.select_kind()?.select_core(),n=s?this.getColumnsFromSelectCore(s):void 0;this.symbolTable.addNewSymbolOfType(Yi,this.scope,t,i,n)}catch(t){if(!(t instanceof ai))throw t}return this.visitChildren(e)},this.visitNamed_column=e=>{try{let t=e.an_id()?.getText();t&&this.symbolTable.addNewSymbolOfType(Xi,this.scope,t)}catch(t){if(!(t instanceof ai))throw t}return this.visitChildren(e)},this.visitNamed_expr=e=>{try{let t=e.an_id_or_type()?.getText();t&&this.symbolTable.addNewSymbolOfType(Xi,this.scope,t)}catch(t){if(!(t instanceof ai))throw t}return this.visitChildren(e)},this.visitResult_column=e=>{try{let t=e.an_id_or_type()?.getText()??e.an_id_as_compat()?.getText();t&&this.symbolTable.addNewSymbolOfType(Xi,this.scope,t)}catch(t){if(!(t instanceof ai))throw t}return this.visitChildren(e)}}static{Si(this,"YQLTableSymbolTableVisitor")}};function bu(e,t,i){let s={};for(let[f,_]of e){if(!xi(t,_))break;switch(f){case rs.RULE_id_table:case rs.RULE_id_hint:case rs.RULE_identifier:case rs.RULE_id_or_type:case rs.RULE_id:{let e=su(_.ruleList,t,i),n=Object.fromEntries(Object.entries(e).filter((([e,t])=>t)));s={...s,...n}}}}let{suggestObject:n,suggestTableStore:r,suggestTable:o,suggestUser:a,suggestGroup:c,suggestTopic:l,suggestView:h,suggestReplication:d,suggestExternalTable:u,suggestExternalDatasource:g,...p}=s,m=Object.entries({suggestObject:n,suggestTableStore:r,suggestTable:o,suggestUser:a,suggestGroup:c,suggestTopic:l,suggestView:h,suggestReplication:d,suggestExternalTable:u,suggestExternalDatasource:g}).filter((([e,t])=>t)).map((([e])=>iu[e]));return{suggestEntity:m.length?m:void 0,...p}}function Su(e){return e.sql_query()}function yu(e){return e.sql_query_yq()}function wu(e){return(t,i,s,n,r,o)=>{let{shouldSuggestColumns:a,shouldSuggestAllColumns:c,shouldSuggestColumnAliases:l,shouldSuggestTableIndexes:h,shouldSuggestVariables:d,...u}=bu(i,n,s),g={...t,...u,suggestTemplates:Oi(o,r)},p=a||l||h;if(d){let t=new Cu,i=hu(ns,rs,t,e,s,r,o,[rs.WS]);i.length&&(g.suggestVariables=i)}if(p){let t=new Eu,{tableContextSuggestion:i,suggestColumnAliases:n}=uu(ns,rs,t,e,s,r,o,[rs.WS]);a&&i&&(g.suggestColumns={tables:i.tables},c&&(g.suggestColumns.all=!0)),h&&i&&(g.suggestTableIndexes={tables:i.tables}),l&&n&&(g.suggestColumnAliases=n)}return g}}Si(bu,"processVisitedRules"),Si(Su,"getParseTree"),Si(yu,"getParseTreeYQ"),Si(wu,"getEnrichAutocompleteResult");var Ru=new os(null,-1),Lu={Lexer:ns,Parser:rs,tokenDictionary:xd,ignoredTokens:fu,rulesToVisit:_u,getParseTree:Su,enrichAutocompleteResult:wu(Su),context:Ru},Tu=new bd(null,-1),xu={Lexer:ns,Parser:rs,tokenDictionary:xd,ignoredTokens:fu,rulesToVisit:_u,getParseTree:yu,enrichAutocompleteResult:wu(yu),context:Tu};function ku(e){return zi(Lu.Lexer,Lu.Parser,Lu.tokenDictionary.SPACE,Lu.getParseTree,e)}function Au(e,t){return ji(Lu.Lexer,Lu.Parser,Lu.tokenDictionary.SPACE,Lu.ignoredTokens,Lu.rulesToVisit,Lu.getParseTree,Lu.enrichAutocompleteResult,e,t,Lu.context)}function Nu(e,t){return ji(xu.Lexer,xu.Parser,xu.tokenDictionary.SPACE,xu.ignoredTokens,xu.rulesToVisit,xu.getParseTree,xu.enrichAutocompleteResult,e,t,xu.context)}Si(ku,"parseYqlQueryWithoutCursor"),Si(Au,"parseYqlQuery"),Si((function(e){return zi(xu.Lexer,xu.Parser,xu.tokenDictionary.SPACE,xu.getParseTree,e)}),"parseYqQueryWithoutCursor"),Si(Nu,"parseYqQuery"),Si((function(e){return Au(...Ki(e))}),"parseYqlQueryWithCursor"),Si((function(e){return Nu(...Ki(e))}),"parseYqQueryWithCursor"),Si((function(e){return Vi(ns,ns.symbolicNames,Lu.tokenDictionary.SPACE,e)}),"tokenizeYqlQuery"),Si((function(e){return Hi(e,Lu.Lexer,Lu.Parser,Lu.tokenDictionary.SPACE,[Lu.tokenDictionary.SPACE],Lu.tokenDictionary.SEMICOLON,rs.RULE_sql_stmt,Lu.getParseTree)}),"extractYqlStatementPositionsFromQuery")},16122:(e,t,i)=>{"use strict";i.d(t,{u:()=>l});var s=i(23971);const n=(e,t,i)=>{if(e&&"reportValidity"in e){const n=(0,s.Jt)(i,t);e.setCustomValidity(n&&n.message||""),e.reportValidity()}},r=(e,t)=>{for(const i in t.fields){const s=t.fields[i];s&&s.ref&&"reportValidity"in s.ref?n(s.ref,i,e):s.refs&&s.refs.forEach((t=>n(t,i,e)))}},o=(e,t)=>{t.shouldUseNativeValidation&&r(e,t);const i={};for(const n in e){const r=(0,s.Jt)(t.fields,n),o=Object.assign(e[n]||{},{ref:r&&r.ref});if(a(t.names||Object.keys(e),n)){const e=Object.assign({},(0,s.Jt)(i,n));(0,s.hZ)(e,"root",o),(0,s.hZ)(i,n,e)}else(0,s.hZ)(i,n,o)}return i},a=(e,t)=>e.some((e=>e.startsWith(t+".")));var c=function(e,t){for(var i={};e.length;){var n=e[0],r=n.code,o=n.message,a=n.path.join(".");if(!i[a])if("unionErrors"in n){var c=n.unionErrors[0].errors[0];i[a]={message:c.message,type:c.code}}else i[a]={message:o,type:r};if("unionErrors"in n&&n.unionErrors.forEach((function(t){return t.errors.forEach((function(t){return e.push(t)}))})),t){var l=i[a].types,h=l&&l[n.code];i[a]=(0,s.Gb)(a,t,i,r,h?[].concat(h,n.message):n.message)}e.shift()}return i},l=function(e,t,i){return void 0===i&&(i={}),function(s,n,a){try{return Promise.resolve(function(n,o){try{var c=Promise.resolve(e["sync"===i.mode?"parse":"parseAsync"](s,t)).then((function(e){return a.shouldUseNativeValidation&&r({},a),{errors:{},values:i.raw?s:e}}))}catch(l){return o(l)}return c&&c.then?c.then(void 0,o):c}(0,(function(e){if(function(e){return Array.isArray(null==e?void 0:e.errors)}(e))return{values:{},errors:o(c(e.errors,!a.shouldUseNativeValidation&&"all"===a.criteriaMode),a)};throw e})))}catch(l){return Promise.reject(l)}}}},52400:(e,t,i)=>{"use strict";i.d(t,{_z:()=>v});var s,n=i(80781),r=i(67913),o=(i(59284),new Uint8Array(16));function a(){if(!s&&!(s="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return s(o)}var c=[];for(let E=0;E<256;++E)c.push((E+256).toString(16).slice(1));var l={randomUUID:"undefined"!==typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};var h=function(e,t,i){if(l.randomUUID&&!t&&!e)return l.randomUUID();const s=(e=e||{}).random||(e.rng||a)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t){i=i||0;for(let e=0;e<16;++e)t[i+e]=s[e];return t}return function(e,t=0){return c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]}(s)},d={debounceTime:200,suggestionCache:{enabled:!0},sessionId:h()};var u=class{constructor(){this.currentGroup=null,this.activeCompletion=null}setCompletionGroup(e){this.currentGroup=e}getCompletionGroup(){return this.currentGroup}getActiveCompletion(){return this.activeCompletion}getCachedCompletion(e,t){const i=[];if(this.currentGroup)for(const s of this.currentGroup.items){if(!s.range)continue;if(t.lineNumber<s.range.startLineNumber||t.column<s.range.startColumn)continue;const r=new n.Position(s.range.startLineNumber,s.range.startColumn),o=e.getOffsetAt(r),a=o+s.insertText.toString().length,c=e.getOffsetAt(t);if(c>a)continue;const l=s.insertText.toString().slice(0,c-o),h=new n.Range(s.range.startLineNumber,s.range.startColumn,t.lineNumber,t.column),d=e.getValueInRange(h);l.toLowerCase()===d.toLowerCase()&&i.push({insertText:d+s.insertText.toString().slice(c-o),range:h,command:s.command,pristine:s.pristine})}return i}emptyCache(){this.currentGroup=null,this.activeCompletion=null}incrementShownCount(e){if(this.currentGroup)for(const t of this.currentGroup.items)if(t.pristine===e){this.currentGroup.shownCount++,this.activeCompletion=e;break}}markAsAccepted(e){var t;(null==(t=this.currentGroup)?void 0:t.items.some((t=>t.pristine===e)))&&(this.currentGroup.wasAccepted=!0)}};var g=class{constructor(e,t){this.timer=null,this.pendingPromise=null,this.pendingResolve=null,this.config=e,this.events=t}async getSuggestions(e,t){this.timer&&window.clearTimeout(this.timer),this.pendingPromise||(this.pendingPromise=new Promise((e=>{this.pendingResolve=e})));const i=this.pendingPromise;return this.timer=window.setTimeout((async()=>{var i,s,r;try{let r=[],o="";const a=function(e,t,i=h()){const s=e.getLinesContent(),n=s[t.lineNumber-1];if(!n)return;const r=n.slice(0,t.column-1),o=n.slice(t.column-1),a=s.slice(0,t.lineNumber-1).concat([r]).join("\n"),c=[o].concat(s.slice(t.lineNumber)).join("\n"),l={lineNumber:t.lineNumber,column:t.column},d=[];if(a&&d.push({text:a,start:{lineNumber:1,column:1},end:l}),c){const e=s[s.length-1];if(!e)return;d.push({text:c,start:l,end:{lineNumber:s.length,column:e.length}})}return d.length?[{fragments:d,cursorPosition:l,path:`${i}`}]:void 0}(e,t,this.config.sessionId);if(!a)return void(null==(i=this.pendingResolve)||i.call(this,{suggestions:[],requestId:""}));const c=await this.config.api.getCodeAssistSuggestions(a);o=(null==c?void 0:c.requestId)||"";const{word:l,startColumn:d}=e.getWordUntilPosition(t);r=((null==c?void 0:c.items)||[]).map((e=>{const i=e,s=l+i;return{label:s,sortText:"a",insertText:s,pristine:i,range:new n.Range(t.lineNumber,d,t.lineNumber,t.column),command:{id:"acceptCodeAssistCompletion",title:"",arguments:[{requestId:o,suggestionText:i,prevWordLength:l.length}]}}})),null==(s=this.pendingResolve)||s.call(this,{suggestions:r,requestId:o})}catch(o){this.events.emit("completion:error",o instanceof Error?o:new Error(String(o))),null==(r=this.pendingResolve)||r.call(this,{suggestions:[],requestId:""})}finally{this.pendingPromise=null,this.pendingResolve=null,this.timer=null}}),this.config.debounceTime),i}},p=class{constructor(){this.events=new Map}on(e,t){var i;this.events.has(e)||this.events.set(e,new Set),null==(i=this.events.get(e))||i.add(t)}off(e,t){var i;null==(i=this.events.get(e))||i.delete(t)}emit(e,t){var i;null==(i=this.events.get(e))||i.forEach((i=>{try{i(t)}catch(s){console.error(`Error in event listener for ${e}:`,s)}}))}},m=class{constructor(e,t){this.events=new p,this.config=function(e,t){return{...d,...t,suggestionCache:{...d.suggestionCache,...(null==t?void 0:t.suggestionCache)||{}},api:e}}(e,t),this.cacheManager=new u,this.suggestionProvider=new g(this.config,this.events)}async provideInlineCompletions(e,t,i,s){if(this.config.suggestionCache.enabled){const i=this.cacheManager.getCachedCompletion(e,t);if(i.length)return{items:i}}const n=this.cacheManager.getCompletionGroup();n&&!n.wasAccepted&&this.dismissCompletion(n),this.cacheManager.emptyCache();const{suggestions:r,requestId:o}=await this.suggestionProvider.getSuggestions(e,t),a={items:r,shownCount:0,requestId:o};return this.cacheManager.setCompletionGroup(a),{items:r}}handleItemDidShow(e,t){this.config.suggestionCache.enabled&&this.cacheManager.incrementShownCount(t.pristine)}handlePartialAccept(e,t,i){var s,n;const{command:r}=t,o=null!=(n=null==(s=null==r?void 0:r.arguments)?void 0:s[0])?n:{},{suggestionText:a,requestId:c,prevWordLength:l=0}=o;if(c&&a&&"string"===typeof t.insertText){const e=t.insertText.slice(l,i);e&&(this.cacheManager.markAsAccepted(a),this.events.emit("completion:accept",{requestId:c,acceptedText:e}))}}handleAccept({requestId:e,suggestionText:t}){this.cacheManager.emptyCache(),this.events.emit("completion:accept",{requestId:e,acceptedText:t})}commandDiscard(e="OnCancel",t){var i,s;const n=this.cacheManager.getCompletionGroup();if((null==n?void 0:n.requestId)&&(null==(i=n.items)?void 0:i.length)){const t=n.items.map((e=>e.pristine)),i=this.cacheManager.getActiveCompletion()||(null==(s=n.items[0])?void 0:s.pristine)||"";this.events.emit("completion:decline",{requestId:n.requestId,suggestionText:i,reason:e,hitCount:n.shownCount,allSuggestions:t}),this.cacheManager.emptyCache()}t.trigger(void 0,"editor.action.inlineSuggest.hide",void 0)}emptyCache(){this.cacheManager.emptyCache()}hasActiveSuggestions(){return null!==this.cacheManager.getCompletionGroup()}freeInlineCompletions(){}dismissCompletion(e){var t;if(!e.requestId||!(null==(t=e.items)?void 0:t.length)||!e.shownCount||e.wasAccepted)return;const[i]=e.items;if(!i)return;const s=e.items.map((e=>e.pristine)),n=this.cacheManager.getActiveCompletion()||i.pristine||"";this.events.emit("completion:ignore",{requestId:e.requestId,suggestionText:n,allSuggestions:s})}};function f(e,t={}){return new m(e,t)}var _=class{constructor(e){this.editor=e,this.disposables=[],this.completionProvider=null}register({api:e,config:t,eventHandlers:i}){this.completionProvider=f(e,t);const s=r.languages.registerInlineCompletionsProvider([t.language],this.completionProvider);this.disposables.push(s);const n=C(r,this.completionProvider,this.editor);if(this.disposables.push(...n),i){const e=this.completionProvider;i.onCompletionAccept&&e.events.on("completion:accept",i.onCompletionAccept),i.onCompletionDecline&&e.events.on("completion:decline",i.onCompletionDecline),i.onCompletionIgnore&&e.events.on("completion:ignore",i.onCompletionIgnore),i.onCompletionError&&e.events.on("completion:error",i.onCompletionError)}}dispose(){this.disposables.forEach((e=>e.dispose())),this.disposables=[],this.completionProvider=null}};function v(e){const t=new _(e);return{register:e=>t.register(e),unregister:()=>t.dispose()}}function C(e,t,i){const s=[],n=e.editor.registerCommand("acceptCodeAssistCompletion",((e,...i)=>{var s;const n=null!=(s=i[0])?s:{};if(!n||"object"!==typeof n)return;const{requestId:r,suggestionText:o}=n;r&&o&&t.handleAccept({requestId:r,suggestionText:o})}));s.push(n);const r=e.editor.registerCommand("declineCodeAssistCompletion",(()=>{t.commandDiscard("OnCancel",i)}));s.push(r);const o=i.onKeyDown((s=>{var n,r,o,a;if(s.keyCode===e.KeyCode.Escape){const e=i.getContribution("editor.contrib.suggestController"),c=null!=(a=null==(o=null==(r=null==(n=null==e?void 0:e.widget)?void 0:n.value)?void 0:r.selectFirst)?void 0:o.call(r))&&a;t.hasActiveSuggestions()&&!c&&(s.preventDefault(),i.trigger("keyboard","declineCodeAssistCompletion",null))}}));return s.push(o),s}},90474:(e,t,i)=>{"use strict";i.d(t,{Mj:()=>k});var s={grad:.9,turn:360,rad:360/(2*Math.PI)},n=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},r=function(e,t,i){return void 0===t&&(t=0),void 0===i&&(i=Math.pow(10,t)),Math.round(i*e)/i+0},o=function(e,t,i){return void 0===t&&(t=0),void 0===i&&(i=1),e>i?i:e>t?e:t},a=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},c=function(e){return{r:o(e.r,0,255),g:o(e.g,0,255),b:o(e.b,0,255),a:o(e.a)}},l=function(e){return{r:r(e.r),g:r(e.g),b:r(e.b),a:r(e.a,3)}},h=/^#([0-9a-f]{3,8})$/i,d=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},u=function(e){var t=e.r,i=e.g,s=e.b,n=e.a,r=Math.max(t,i,s),o=r-Math.min(t,i,s),a=o?r===t?(i-s)/o:r===i?2+(s-t)/o:4+(t-i)/o:0;return{h:60*(a<0?a+6:a),s:r?o/r*100:0,v:r/255*100,a:n}},g=function(e){var t=e.h,i=e.s,s=e.v,n=e.a;t=t/360*6,i/=100,s/=100;var r=Math.floor(t),o=s*(1-i),a=s*(1-(t-r)*i),c=s*(1-(1-t+r)*i),l=r%6;return{r:255*[s,a,o,o,c,s][l],g:255*[c,s,s,a,o,o][l],b:255*[o,o,c,s,s,a][l],a:n}},p=function(e){return{h:a(e.h),s:o(e.s,0,100),l:o(e.l,0,100),a:o(e.a)}},m=function(e){return{h:r(e.h),s:r(e.s),l:r(e.l),a:r(e.a,3)}},f=function(e){return g((i=(t=e).s,{h:t.h,s:(i*=((s=t.l)<50?s:100-s)/100)>0?2*i/(s+i)*100:0,v:s+i,a:t.a}));var t,i,s},_=function(e){return{h:(t=u(e)).h,s:(n=(200-(i=t.s))*(s=t.v)/100)>0&&n<200?i*s/100/(n<=100?n:200-n)*100:0,l:n/2,a:t.a};var t,i,s,n},v=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,C=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,E=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,b=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,S={string:[[function(e){var t=h.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?r(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?r(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=E.exec(e)||b.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:c({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=v.exec(e)||C.exec(e);if(!t)return null;var i,n,r=p({h:(i=t[1],n=t[2],void 0===n&&(n="deg"),Number(i)*(s[n]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return f(r)},"hsl"]],object:[[function(e){var t=e.r,i=e.g,s=e.b,r=e.a,o=void 0===r?1:r;return n(t)&&n(i)&&n(s)?c({r:Number(t),g:Number(i),b:Number(s),a:Number(o)}):null},"rgb"],[function(e){var t=e.h,i=e.s,s=e.l,r=e.a,o=void 0===r?1:r;if(!n(t)||!n(i)||!n(s))return null;var a=p({h:Number(t),s:Number(i),l:Number(s),a:Number(o)});return f(a)},"hsl"],[function(e){var t=e.h,i=e.s,s=e.v,r=e.a,c=void 0===r?1:r;if(!n(t)||!n(i)||!n(s))return null;var l=function(e){return{h:a(e.h),s:o(e.s,0,100),v:o(e.v,0,100),a:o(e.a)}}({h:Number(t),s:Number(i),v:Number(s),a:Number(c)});return g(l)},"hsv"]]},y=function(e,t){for(var i=0;i<t.length;i++){var s=t[i][0](e);if(s)return[s,t[i][1]]}return[null,void 0]},w=function(e){return"string"==typeof e?y(e.trim(),S.string):"object"==typeof e&&null!==e?y(e,S.object):[null,void 0]},R=function(e,t){var i=_(e);return{h:i.h,s:o(i.s+100*t,0,100),l:i.l,a:i.a}},L=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},T=function(e,t){var i=_(e);return{h:i.h,s:i.s,l:o(i.l+100*t,0,100),a:i.a}},x=function(){function e(e){this.parsed=w(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return r(L(this.rgba),2)},e.prototype.isDark=function(){return L(this.rgba)<.5},e.prototype.isLight=function(){return L(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=l(this.rgba)).r,i=e.g,s=e.b,o=(n=e.a)<1?d(r(255*n)):"","#"+d(t)+d(i)+d(s)+o;var e,t,i,s,n,o},e.prototype.toRgb=function(){return l(this.rgba)},e.prototype.toRgbString=function(){return t=(e=l(this.rgba)).r,i=e.g,s=e.b,(n=e.a)<1?"rgba("+t+", "+i+", "+s+", "+n+")":"rgb("+t+", "+i+", "+s+")";var e,t,i,s,n},e.prototype.toHsl=function(){return m(_(this.rgba))},e.prototype.toHslString=function(){return t=(e=m(_(this.rgba))).h,i=e.s,s=e.l,(n=e.a)<1?"hsla("+t+", "+i+"%, "+s+"%, "+n+")":"hsl("+t+", "+i+"%, "+s+"%)";var e,t,i,s,n},e.prototype.toHsv=function(){return e=u(this.rgba),{h:r(e.h),s:r(e.s),v:r(e.v),a:r(e.a,3)};var e},e.prototype.invert=function(){return k({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),k(R(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),k(R(this.rgba,-e))},e.prototype.grayscale=function(){return k(R(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),k(T(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),k(T(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?k({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):r(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=_(this.rgba);return"number"==typeof e?k({h:e,s:t.s,l:t.l,a:t.a}):r(t.h)},e.prototype.isEqual=function(e){return this.toHex()===k(e).toHex()},e}(),k=function(e){return e instanceof x?e:new x(e)}},23971:(e,t,i)=>{"use strict";i.d(t,{Gb:()=>V,Jt:()=>f,hZ:()=>E,mN:()=>Ae,xI:()=>W});var s=i(59284),n=e=>"checkbox"===e.type,r=e=>e instanceof Date,o=e=>null==e;const a=e=>"object"===typeof e;var c=e=>!o(e)&&!Array.isArray(e)&&a(e)&&!r(e),l=e=>c(e)&&e.target?n(e.target)?e.target.checked:e.target.value:e,h=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),d=e=>{const t=e.constructor&&e.constructor.prototype;return c(t)&&t.hasOwnProperty("isPrototypeOf")},u="undefined"!==typeof window&&"undefined"!==typeof window.HTMLElement&&"undefined"!==typeof document;function g(e){let t;const i=Array.isArray(e),s="undefined"!==typeof FileList&&e instanceof FileList;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(u&&(e instanceof Blob||s)||!i&&!c(e))return e;if(t=i?[]:{},i||d(e))for(const i in e)e.hasOwnProperty(i)&&(t[i]=g(e[i]));else t=e}return t}var p=e=>Array.isArray(e)?e.filter(Boolean):[],m=e=>void 0===e,f=(e,t,i)=>{if(!t||!c(e))return i;const s=p(t.split(/[,[\].]+?/)).reduce(((e,t)=>o(e)?e:e[t]),e);return m(s)||s===e?m(e[t])?i:e[t]:s},_=e=>"boolean"===typeof e,v=e=>/^\w*$/.test(e),C=e=>p(e.replace(/["|']|\]/g,"").split(/\.|\[/)),E=(e,t,i)=>{let s=-1;const n=v(t)?[t]:C(t),r=n.length,o=r-1;for(;++s<r;){const t=n[s];let r=i;if(s!==o){const i=e[t];r=c(i)||Array.isArray(i)?i:isNaN(+n[s+1])?{}:[]}if("__proto__"===t||"constructor"===t||"prototype"===t)return;e[t]=r,e=e[t]}return e};const b={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},S={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},y="max",w="min",R="maxLength",L="minLength",T="pattern",x="required",k="validate",A=s.createContext(null),N=()=>s.useContext(A);var I=(e,t,i,s=!0)=>{const n={defaultValues:t._defaultValues};for(const r in e)Object.defineProperty(n,r,{get:()=>{const n=r;return t._proxyFormState[n]!==S.all&&(t._proxyFormState[n]=!s||S.all),i&&(i[n]=!0),e[n]}});return n},O=e=>c(e)&&!Object.keys(e).length,D=(e,t,i,s)=>{i(e);const{name:n,...r}=e;return O(r)||Object.keys(r).length>=Object.keys(t).length||Object.keys(r).find((e=>t[e]===(!s||S.all)))},M=e=>Array.isArray(e)?e:[e],P=(e,t,i)=>!e||!t||e===t||M(e).some((e=>e&&(i?e===t:e.startsWith(t)||t.startsWith(e))));function F(e){const t=s.useRef(e);t.current=e,s.useEffect((()=>{const i=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{i&&i.unsubscribe()}}),[e.disabled])}var U=e=>"string"===typeof e,H=(e,t,i,s,n)=>U(e)?(s&&t.watch.add(e),f(i,e,n)):Array.isArray(e)?e.map((e=>(s&&t.watch.add(e),f(i,e)))):(s&&(t.watchAll=!0),i);function B(e){const t=N(),{name:i,disabled:n,control:r=t.control,shouldUnregister:o}=e,a=h(r._names.array,i),c=function(e){const t=N(),{control:i=t.control,name:n,defaultValue:r,disabled:o,exact:a}=e||{},c=s.useRef(n);c.current=n,F({disabled:o,subject:i._subjects.values,next:e=>{P(c.current,e.name,a)&&h(g(H(c.current,i._names,e.values||i._formValues,!1,r)))}});const[l,h]=s.useState(i._getWatch(n,r));return s.useEffect((()=>i._removeUnmounted())),l}({control:r,name:i,defaultValue:f(r._formValues,i,f(r._defaultValues,i,e.defaultValue)),exact:!0}),d=function(e){const t=N(),{control:i=t.control,disabled:n,name:r,exact:o}=e||{},[a,c]=s.useState(i._formState),l=s.useRef(!0),h=s.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=s.useRef(r);return d.current=r,F({disabled:n,next:e=>l.current&&P(d.current,e.name,o)&&D(e,h.current,i._updateFormState)&&c({...i._formState,...e}),subject:i._subjects.state}),s.useEffect((()=>(l.current=!0,h.current.isValid&&i._updateValid(!0),()=>{l.current=!1})),[i]),s.useMemo((()=>I(a,i,h.current,!1)),[a,i])}({control:r,name:i,exact:!0}),u=s.useRef(r.register(i,{...e.rules,value:c,..._(e.disabled)?{disabled:e.disabled}:{}})),p=s.useMemo((()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!f(d.errors,i)},isDirty:{enumerable:!0,get:()=>!!f(d.dirtyFields,i)},isTouched:{enumerable:!0,get:()=>!!f(d.touchedFields,i)},isValidating:{enumerable:!0,get:()=>!!f(d.validatingFields,i)},error:{enumerable:!0,get:()=>f(d.errors,i)}})),[d,i]),v=s.useMemo((()=>({name:i,value:c,..._(n)||d.disabled?{disabled:d.disabled||n}:{},onChange:e=>u.current.onChange({target:{value:l(e),name:i},type:b.CHANGE}),onBlur:()=>u.current.onBlur({target:{value:f(r._formValues,i),name:i},type:b.BLUR}),ref:e=>{const t=f(r._fields,i);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})}})),[i,r._formValues,n,d.disabled,c,r._fields]);return s.useEffect((()=>{const e=r._options.shouldUnregister||o,t=(e,t)=>{const i=f(r._fields,e);i&&i._f&&(i._f.mount=t)};if(t(i,!0),e){const e=g(f(r._options.defaultValues,i));E(r._defaultValues,i,e),m(f(r._formValues,i))&&E(r._formValues,i,e)}return!a&&r.register(i),()=>{(a?e&&!r._state.action:e)?r.unregister(i):t(i,!1)}}),[i,r,a,o]),s.useEffect((()=>{r._updateDisabledField({disabled:n,fields:r._fields,name:i})}),[n,i,r]),s.useMemo((()=>({field:v,formState:d,fieldState:p})),[v,d,p])}const W=e=>e.render(B(e));var V=(e,t,i,s,n)=>t?{...i[e],types:{...i[e]&&i[e].types?i[e].types:{},[s]:n||!0}}:{},z=e=>({isOnSubmit:!e||e===S.onSubmit,isOnBlur:e===S.onBlur,isOnChange:e===S.onChange,isOnAll:e===S.all,isOnTouch:e===S.onTouched}),G=(e,t,i)=>!i&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))));const j=(e,t,i,s)=>{for(const n of i||Object.keys(e)){const i=f(e,n);if(i){const{_f:e,...r}=i;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],n)&&!s)return!0;if(e.ref&&t(e.ref,e.name)&&!s)return!0;if(j(r,t))break}else if(c(r)&&j(r,t))break}}};var K=(e,t,i)=>{const s=M(f(e,i));return E(s,"root",t[i]),E(e,i,s),e},Y=e=>"file"===e.type,q=e=>"function"===typeof e,$=e=>{if(!u)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Q=e=>U(e),X=e=>"radio"===e.type,Z=e=>e instanceof RegExp;const J={value:!1,isValid:!1},ee={value:!0,isValid:!0};var te=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter((e=>e&&e.checked&&!e.disabled)).map((e=>e.value));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!m(e[0].attributes.value)?m(e[0].value)||""===e[0].value?ee:{value:e[0].value,isValid:!0}:ee:J}return J};const ie={isValid:!1,value:null};var se=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),ie):ie;function ne(e,t,i="validate"){if(Q(e)||Array.isArray(e)&&e.every(Q)||_(e)&&!e)return{type:i,message:Q(e)?e:"",ref:t}}var re=e=>c(e)&&!Z(e)?e:{value:e,message:""},oe=async(e,t,i,s,r,a)=>{const{ref:l,refs:h,required:d,maxLength:u,minLength:g,min:p,max:v,pattern:C,validate:E,name:b,valueAsNumber:S,mount:A}=e._f,N=f(i,b);if(!A||t.has(b))return{};const I=h?h[0]:l,D=e=>{r&&I.reportValidity&&(I.setCustomValidity(_(e)?"":e||""),I.reportValidity())},M={},P=X(l),F=n(l),H=P||F,B=(S||Y(l))&&m(l.value)&&m(N)||$(l)&&""===l.value||""===N||Array.isArray(N)&&!N.length,W=V.bind(null,b,s,M),z=(e,t,i,s=R,n=L)=>{const r=e?t:i;M[b]={type:e?s:n,message:r,ref:l,...W(e?s:n,r)}};if(a?!Array.isArray(N)||!N.length:d&&(!H&&(B||o(N))||_(N)&&!N||F&&!te(h).isValid||P&&!se(h).isValid)){const{value:e,message:t}=Q(d)?{value:!!d,message:d}:re(d);if(e&&(M[b]={type:x,message:t,ref:I,...W(x,t)},!s))return D(t),M}if(!B&&(!o(p)||!o(v))){let e,t;const i=re(v),n=re(p);if(o(N)||isNaN(N)){const s=l.valueAsDate||new Date(N),r=e=>new Date((new Date).toDateString()+" "+e),o="time"==l.type,a="week"==l.type;U(i.value)&&N&&(e=o?r(N)>r(i.value):a?N>i.value:s>new Date(i.value)),U(n.value)&&N&&(t=o?r(N)<r(n.value):a?N<n.value:s<new Date(n.value))}else{const s=l.valueAsNumber||(N?+N:N);o(i.value)||(e=s>i.value),o(n.value)||(t=s<n.value)}if((e||t)&&(z(!!e,i.message,n.message,y,w),!s))return D(M[b].message),M}if((u||g)&&!B&&(U(N)||a&&Array.isArray(N))){const e=re(u),t=re(g),i=!o(e.value)&&N.length>+e.value,n=!o(t.value)&&N.length<+t.value;if((i||n)&&(z(i,e.message,t.message),!s))return D(M[b].message),M}if(C&&!B&&U(N)){const{value:e,message:t}=re(C);if(Z(e)&&!N.match(e)&&(M[b]={type:T,message:t,ref:l,...W(T,t)},!s))return D(t),M}if(E)if(q(E)){const e=ne(await E(N,i),I);if(e&&(M[b]={...e,...W(k,e.message)},!s))return D(e.message),M}else if(c(E)){let e={};for(const t in E){if(!O(e)&&!s)break;const n=ne(await E[t](N,i),I,t);n&&(e={...n,...W(t,n.message)},D(n.message),s&&(M[b]=e))}if(!O(e)&&(M[b]={ref:I,...e},!s))return M}return D(!0),M};function ae(e,t){const i=Array.isArray(t)?t:v(t)?[t]:C(t),s=1===i.length?e:function(e,t){const i=t.slice(0,-1).length;let s=0;for(;s<i;)e=m(e)?s++:e[t[s++]];return e}(e,i),n=i.length-1,r=i[n];return s&&delete s[r],0!==n&&(c(s)&&O(s)||Array.isArray(s)&&function(e){for(const t in e)if(e.hasOwnProperty(t)&&!m(e[t]))return!1;return!0}(s))&&ae(e,i.slice(0,-1)),e}var ce=()=>{let e=[];return{get observers(){return e},next:t=>{for(const i of e)i.next&&i.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter((e=>e!==t))}}),unsubscribe:()=>{e=[]}}},le=e=>o(e)||!a(e);function he(e,t){if(le(e)||le(t))return e===t;if(r(e)&&r(t))return e.getTime()===t.getTime();const i=Object.keys(e),s=Object.keys(t);if(i.length!==s.length)return!1;for(const n of i){const i=e[n];if(!s.includes(n))return!1;if("ref"!==n){const e=t[n];if(r(i)&&r(e)||c(i)&&c(e)||Array.isArray(i)&&Array.isArray(e)?!he(i,e):i!==e)return!1}}return!0}var de=e=>"select-multiple"===e.type,ue=e=>X(e)||n(e),ge=e=>$(e)&&e.isConnected,pe=e=>{for(const t in e)if(q(e[t]))return!0;return!1};function me(e,t={}){const i=Array.isArray(e);if(c(e)||i)for(const s in e)Array.isArray(e[s])||c(e[s])&&!pe(e[s])?(t[s]=Array.isArray(e[s])?[]:{},me(e[s],t[s])):o(e[s])||(t[s]=!0);return t}function fe(e,t,i){const s=Array.isArray(e);if(c(e)||s)for(const n in e)Array.isArray(e[n])||c(e[n])&&!pe(e[n])?m(t)||le(i[n])?i[n]=Array.isArray(e[n])?me(e[n],[]):{...me(e[n])}:fe(e[n],o(t)?{}:t[n],i[n]):i[n]=!he(e[n],t[n]);return i}var _e=(e,t)=>fe(e,t,me(t)),ve=(e,{valueAsNumber:t,valueAsDate:i,setValueAs:s})=>m(e)?e:t?""===e?NaN:e?+e:e:i&&U(e)?new Date(e):s?s(e):e;function Ce(e){const t=e.ref;return Y(t)?t.files:X(t)?se(e.refs).value:de(t)?[...t.selectedOptions].map((({value:e})=>e)):n(t)?te(e.refs).value:ve(m(t.value)?e.ref.value:t.value,e)}var Ee=(e,t,i,s)=>{const n={};for(const r of e){const e=f(t,r);e&&E(n,r,e._f)}return{criteriaMode:i,names:[...e],fields:n,shouldUseNativeValidation:s}},be=e=>m(e)?e:Z(e)?e.source:c(e)?Z(e.value)?e.value.source:e.value:e;const Se="AsyncFunction";var ye=e=>!!e&&!!e.validate&&!!(q(e.validate)&&e.validate.constructor.name===Se||c(e.validate)&&Object.values(e.validate).find((e=>e.constructor.name===Se))),we=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Re(e,t,i){const s=f(e,i);if(s||v(i))return{error:s,name:i};const n=i.split(".");for(;n.length;){const s=n.join("."),r=f(t,s),o=f(e,s);if(r&&!Array.isArray(r)&&i!==s)return{name:i};if(o&&o.type)return{name:s,error:o};n.pop()}return{name:i}}var Le=(e,t,i,s,n)=>!n.isOnAll&&(!i&&n.isOnTouch?!(t||e):(i?s.isOnBlur:n.isOnBlur)?!e:!(i?s.isOnChange:n.isOnChange)||e),Te=(e,t)=>!p(f(e,t)).length&&ae(e,t);const xe={mode:S.onSubmit,reValidateMode:S.onChange,shouldFocusError:!0};function ke(e={}){let t,i={...xe,...e},s={submitCount:0,isDirty:!1,isLoading:q(i.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:i.errors||{},disabled:i.disabled||!1},a={},d=(c(i.defaultValues)||c(i.values))&&g(i.defaultValues||i.values)||{},v=i.shouldUnregister?{}:g(d),C={action:!1,mount:!1,watch:!1},y={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},w=0;const R={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},L={values:ce(),array:ce(),state:ce()},T=z(i.mode),x=z(i.reValidateMode),k=i.criteriaMode===S.all,A=async e=>{if(!i.disabled&&(R.isValid||e)){const e=i.resolver?O((await F()).errors):await B(a,!0);e!==s.isValid&&L.state.next({isValid:e})}},N=(e,t)=>{i.disabled||!R.isValidating&&!R.validatingFields||((e||Array.from(y.mount)).forEach((e=>{e&&(t?E(s.validatingFields,e,t):ae(s.validatingFields,e))})),L.state.next({validatingFields:s.validatingFields,isValidating:!O(s.validatingFields)}))},I=(e,t,i,s)=>{const n=f(a,e);if(n){const r=f(v,e,m(i)?f(d,e):i);m(r)||s&&s.defaultChecked||t?E(v,e,t?r:Ce(n._f)):Q(e,r),C.mount&&A()}},D=(e,t,n,r,o)=>{let c=!1,l=!1;const h={name:e};if(!i.disabled){const i=!!(f(a,e)&&f(a,e)._f&&f(a,e)._f.disabled);if(!n||r){R.isDirty&&(l=s.isDirty,s.isDirty=h.isDirty=W(),c=l!==h.isDirty);const n=i||he(f(d,e),t);l=!(i||!f(s.dirtyFields,e)),n||i?ae(s.dirtyFields,e):E(s.dirtyFields,e,!0),h.dirtyFields=s.dirtyFields,c=c||R.dirtyFields&&l!==!n}if(n){const t=f(s.touchedFields,e);t||(E(s.touchedFields,e,n),h.touchedFields=s.touchedFields,c=c||R.touchedFields&&t!==n)}c&&o&&L.state.next(h)}return c?h:{}},P=(e,n,r,o)=>{const a=f(s.errors,e),c=R.isValid&&_(n)&&s.isValid!==n;var l;if(i.delayError&&r?(l=()=>((e,t)=>{E(s.errors,e,t),L.state.next({errors:s.errors})})(e,r),t=e=>{clearTimeout(w),w=setTimeout(l,e)},t(i.delayError)):(clearTimeout(w),t=null,r?E(s.errors,e,r):ae(s.errors,e)),(r?!he(a,r):a)||!O(o)||c){const t={...o,...c&&_(n)?{isValid:n}:{},errors:s.errors,name:e};s={...s,...t},L.state.next(t)}},F=async e=>{N(e,!0);const t=await i.resolver(v,i.context,Ee(e||y.mount,a,i.criteriaMode,i.shouldUseNativeValidation));return N(e),t},B=async(e,t,n={valid:!0})=>{for(const r in e){const o=e[r];if(o){const{_f:e,...a}=o;if(e){const a=y.array.has(e.name),c=o._f&&ye(o._f);c&&R.validatingFields&&N([r],!0);const l=await oe(o,y.disabled,v,k,i.shouldUseNativeValidation&&!t,a);if(c&&R.validatingFields&&N([r]),l[e.name]&&(n.valid=!1,t))break;!t&&(f(l,e.name)?a?K(s.errors,l,e.name):E(s.errors,e.name,l[e.name]):ae(s.errors,e.name))}!O(a)&&await B(a,t,n)}}return n.valid},W=(e,t)=>!i.disabled&&(e&&t&&E(v,e,t),!he(ie(),d)),V=(e,t,i)=>H(e,y,{...C.mount?v:m(t)?d:U(e)?{[e]:t}:t},i,t),Q=(e,t,i={})=>{const s=f(a,e);let r=t;if(s){const i=s._f;i&&(!i.disabled&&E(v,e,ve(t,i)),r=$(i.ref)&&o(t)?"":t,de(i.ref)?[...i.ref.options].forEach((e=>e.selected=r.includes(e.value))):i.refs?n(i.ref)?i.refs.length>1?i.refs.forEach((e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(r)?!!r.find((t=>t===e.value)):r===e.value))):i.refs[0]&&(i.refs[0].checked=!!r):i.refs.forEach((e=>e.checked=e.value===r)):Y(i.ref)?i.ref.value="":(i.ref.value=r,i.ref.type||L.values.next({name:e,values:{...v}})))}(i.shouldDirty||i.shouldTouch)&&D(e,r,i.shouldTouch,i.shouldDirty,!0),i.shouldValidate&&te(e)},X=(e,t,i)=>{for(const s in t){const n=t[s],o=`${e}.${s}`,l=f(a,o);(y.array.has(e)||c(n)||l&&!l._f)&&!r(n)?X(o,n,i):Q(o,n,i)}},Z=(e,t,i={})=>{const n=f(a,e),r=y.array.has(e),c=g(t);E(v,e,c),r?(L.array.next({name:e,values:{...v}}),(R.isDirty||R.dirtyFields)&&i.shouldDirty&&L.state.next({name:e,dirtyFields:_e(d,v),isDirty:W(e,c)})):!n||n._f||o(c)?Q(e,c,i):X(e,c,i),G(e,y)&&L.state.next({...s}),L.values.next({name:C.mount?e:void 0,values:{...v}})},J=async e=>{C.mount=!0;const n=e.target;let o=n.name,c=!0;const h=f(a,o),d=e=>{c=Number.isNaN(e)||r(e)&&isNaN(e.getTime())||he(e,f(v,o,e))};if(h){let r,u;const g=n.type?Ce(h._f):l(e),p=e.type===b.BLUR||e.type===b.FOCUS_OUT,m=!we(h._f)&&!i.resolver&&!f(s.errors,o)&&!h._f.deps||Le(p,f(s.touchedFields,o),s.isSubmitted,x,T),_=G(o,y,p);E(v,o,g),p?(h._f.onBlur&&h._f.onBlur(e),t&&t(0)):h._f.onChange&&h._f.onChange(e);const C=D(o,g,p,!1),S=!O(C)||_;if(!p&&L.values.next({name:o,type:e.type,values:{...v}}),m)return R.isValid&&("onBlur"===i.mode&&p?A():p||A()),S&&L.state.next({name:o,..._?{}:C});if(!p&&_&&L.state.next({...s}),i.resolver){const{errors:e}=await F([o]);if(d(g),c){const t=Re(s.errors,a,o),i=Re(e,a,t.name||o);r=i.error,o=i.name,u=O(e)}}else N([o],!0),r=(await oe(h,y.disabled,v,k,i.shouldUseNativeValidation))[o],N([o]),d(g),c&&(r?u=!1:R.isValid&&(u=await B(a,!0)));c&&(h._f.deps&&te(h._f.deps),P(o,u,r,C))}},ee=(e,t)=>{if(f(s.errors,t)&&e.focus)return e.focus(),1},te=async(e,t={})=>{let n,r;const o=M(e);if(i.resolver){const t=await(async e=>{const{errors:t}=await F(e);if(e)for(const i of e){const e=f(t,i);e?E(s.errors,i,e):ae(s.errors,i)}else s.errors=t;return t})(m(e)?e:o);n=O(t),r=e?!o.some((e=>f(t,e))):n}else e?(r=(await Promise.all(o.map((async e=>{const t=f(a,e);return await B(t&&t._f?{[e]:t}:t)})))).every(Boolean),(r||s.isValid)&&A()):r=n=await B(a);return L.state.next({...!U(e)||R.isValid&&n!==s.isValid?{}:{name:e},...i.resolver||!e?{isValid:n}:{},errors:s.errors}),t.shouldFocus&&!r&&j(a,ee,e?o:y.mount),r},ie=e=>{const t={...C.mount?v:d};return m(e)?t:U(e)?f(t,e):e.map((e=>f(t,e)))},se=(e,t)=>({invalid:!!f((t||s).errors,e),isDirty:!!f((t||s).dirtyFields,e),error:f((t||s).errors,e),isValidating:!!f(s.validatingFields,e),isTouched:!!f((t||s).touchedFields,e)}),ne=(e,t,i)=>{const n=(f(a,e,{_f:{}})._f||{}).ref,r=f(s.errors,e)||{},{ref:o,message:c,type:l,...h}=r;E(s.errors,e,{...h,...t,ref:n}),L.state.next({name:e,errors:s.errors,isValid:!1}),i&&i.shouldFocus&&n&&n.focus&&n.focus()},re=(e,t={})=>{for(const n of e?M(e):y.mount)y.mount.delete(n),y.array.delete(n),t.keepValue||(ae(a,n),ae(v,n)),!t.keepError&&ae(s.errors,n),!t.keepDirty&&ae(s.dirtyFields,n),!t.keepTouched&&ae(s.touchedFields,n),!t.keepIsValidating&&ae(s.validatingFields,n),!i.shouldUnregister&&!t.keepDefaultValue&&ae(d,n);L.values.next({values:{...v}}),L.state.next({...s,...t.keepDirty?{isDirty:W()}:{}}),!t.keepIsValid&&A()},le=({disabled:e,name:t,field:i,fields:s})=>{(_(e)&&C.mount||e||y.disabled.has(t))&&(e?y.disabled.add(t):y.disabled.delete(t),D(t,Ce(i?i._f:f(s,t)._f),!1,!1,!0))},pe=(e,t={})=>{let s=f(a,e);const n=_(t.disabled)||_(i.disabled);return E(a,e,{...s||{},_f:{...s&&s._f?s._f:{ref:{name:e}},name:e,mount:!0,...t}}),y.mount.add(e),s?le({field:s,disabled:_(t.disabled)?t.disabled:i.disabled,name:e}):I(e,!0,t.value),{...n?{disabled:t.disabled||i.disabled}:{},...i.progressive?{required:!!t.required,min:be(t.min),max:be(t.max),minLength:be(t.minLength),maxLength:be(t.maxLength),pattern:be(t.pattern)}:{},name:e,onChange:J,onBlur:J,ref:n=>{if(n){pe(e,t),s=f(a,e);const i=m(n.value)&&n.querySelectorAll&&n.querySelectorAll("input,select,textarea")[0]||n,r=ue(i),o=s._f.refs||[];if(r?o.find((e=>e===i)):i===s._f.ref)return;E(a,e,{_f:{...s._f,...r?{refs:[...o.filter(ge),i,...Array.isArray(f(d,e))?[{}]:[]],ref:{type:i.type,name:e}}:{ref:i}}}),I(e,!1,void 0,i)}else s=f(a,e,{}),s._f&&(s._f.mount=!1),(i.shouldUnregister||t.shouldUnregister)&&(!h(y.array,e)||!C.action)&&y.unMount.add(e)}}},me=()=>i.shouldFocusError&&j(a,ee,y.mount),fe=(e,t)=>async n=>{let r;n&&(n.preventDefault&&n.preventDefault(),n.persist&&n.persist());let o=g(v);if(y.disabled.size)for(const e of y.disabled)E(o,e,void 0);if(L.state.next({isSubmitting:!0}),i.resolver){const{errors:e,values:t}=await F();s.errors=e,o=t}else await B(a);if(ae(s.errors,"root"),O(s.errors)){L.state.next({errors:{}});try{await e(o,n)}catch(c){r=c}}else t&&await t({...s.errors},n),me(),setTimeout(me);if(L.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:O(s.errors)&&!r,submitCount:s.submitCount+1,errors:s.errors}),r)throw r},Se=(e,t={})=>{const n=e?g(e):d,r=g(n),o=O(e),c=o?d:r;if(t.keepDefaultValues||(d=n),!t.keepValues){if(t.keepDirtyValues){const e=new Set([...y.mount,...Object.keys(_e(d,v))]);for(const t of Array.from(e))f(s.dirtyFields,t)?E(c,t,f(v,t)):Z(t,f(c,t))}else{if(u&&m(e))for(const e of y.mount){const t=f(a,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if($(e)){const t=e.closest("form");if(t){t.reset();break}}}}a={}}v=i.shouldUnregister?t.keepDefaultValues?g(d):{}:g(c),L.array.next({values:{...c}}),L.values.next({values:{...c}})}y={mount:t.keepDirtyValues?y.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},C.mount=!R.isValid||!!t.keepIsValid||!!t.keepDirtyValues,C.watch=!!i.shouldUnregister,L.state.next({submitCount:t.keepSubmitCount?s.submitCount:0,isDirty:!o&&(t.keepDirty?s.isDirty:!(!t.keepDefaultValues||he(e,d))),isSubmitted:!!t.keepIsSubmitted&&s.isSubmitted,dirtyFields:o?{}:t.keepDirtyValues?t.keepDefaultValues&&v?_e(d,v):s.dirtyFields:t.keepDefaultValues&&e?_e(d,e):t.keepDirty?s.dirtyFields:{},touchedFields:t.keepTouched?s.touchedFields:{},errors:t.keepErrors?s.errors:{},isSubmitSuccessful:!!t.keepIsSubmitSuccessful&&s.isSubmitSuccessful,isSubmitting:!1})},ke=(e,t)=>Se(q(e)?e(v):e,t);return{control:{register:pe,unregister:re,getFieldState:se,handleSubmit:fe,setError:ne,_executeSchema:F,_getWatch:V,_getDirty:W,_updateValid:A,_removeUnmounted:()=>{for(const e of y.unMount){const t=f(a,e);t&&(t._f.refs?t._f.refs.every((e=>!ge(e))):!ge(t._f.ref))&&re(e)}y.unMount=new Set},_updateFieldArray:(e,t=[],n,r,o=!0,c=!0)=>{if(r&&n&&!i.disabled){if(C.action=!0,c&&Array.isArray(f(a,e))){const t=n(f(a,e),r.argA,r.argB);o&&E(a,e,t)}if(c&&Array.isArray(f(s.errors,e))){const t=n(f(s.errors,e),r.argA,r.argB);o&&E(s.errors,e,t),Te(s.errors,e)}if(R.touchedFields&&c&&Array.isArray(f(s.touchedFields,e))){const t=n(f(s.touchedFields,e),r.argA,r.argB);o&&E(s.touchedFields,e,t)}R.dirtyFields&&(s.dirtyFields=_e(d,v)),L.state.next({name:e,isDirty:W(e,t),dirtyFields:s.dirtyFields,errors:s.errors,isValid:s.isValid})}else E(v,e,t)},_updateDisabledField:le,_getFieldArray:e=>p(f(C.mount?v:d,e,i.shouldUnregister?f(d,e,[]):[])),_reset:Se,_resetDefaultValues:()=>q(i.defaultValues)&&i.defaultValues().then((e=>{ke(e,i.resetOptions),L.state.next({isLoading:!1})})),_updateFormState:e=>{s={...s,...e}},_disableForm:e=>{_(e)&&(L.state.next({disabled:e}),j(a,((t,i)=>{const s=f(a,i);s&&(t.disabled=s._f.disabled||e,Array.isArray(s._f.refs)&&s._f.refs.forEach((t=>{t.disabled=s._f.disabled||e})))}),0,!1))},_subjects:L,_proxyFormState:R,_setErrors:e=>{s.errors=e,L.state.next({errors:s.errors,isValid:!1})},get _fields(){return a},get _formValues(){return v},get _state(){return C},set _state(e){C=e},get _defaultValues(){return d},get _names(){return y},set _names(e){y=e},get _formState(){return s},set _formState(e){s=e},get _options(){return i},set _options(e){i={...i,...e}}},trigger:te,register:pe,handleSubmit:fe,watch:(e,t)=>q(e)?L.values.subscribe({next:i=>e(V(void 0,t),i)}):V(e,t,!0),setValue:Z,getValues:ie,reset:ke,resetField:(e,t={})=>{f(a,e)&&(m(t.defaultValue)?Z(e,g(f(d,e))):(Z(e,t.defaultValue),E(d,e,g(t.defaultValue))),t.keepTouched||ae(s.touchedFields,e),t.keepDirty||(ae(s.dirtyFields,e),s.isDirty=t.defaultValue?W(e,g(f(d,e))):W()),t.keepError||(ae(s.errors,e),R.isValid&&A()),L.state.next({...s}))},clearErrors:e=>{e&&M(e).forEach((e=>ae(s.errors,e))),L.state.next({errors:e?s.errors:{}})},unregister:re,setError:ne,setFocus:(e,t={})=>{const i=f(a,e),s=i&&i._f;if(s){const e=s.refs?s.refs[0]:s.ref;e.focus&&(e.focus(),t.shouldSelect&&q(e.select)&&e.select())}},getFieldState:se}}function Ae(e={}){const t=s.useRef(void 0),i=s.useRef(void 0),[n,r]=s.useState({isDirty:!1,isValidating:!1,isLoading:q(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:q(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...ke(e),formState:n});const o=t.current.control;return o._options=e,F({subject:o._subjects.state,next:e=>{D(e,o._proxyFormState,o._updateFormState,!0)&&r({...o._formState})}}),s.useEffect((()=>o._disableForm(e.disabled)),[o,e.disabled]),s.useEffect((()=>{if(o._proxyFormState.isDirty){const e=o._getDirty();e!==n.isDirty&&o._subjects.state.next({isDirty:e})}}),[o,n.isDirty]),s.useEffect((()=>{e.values&&!he(e.values,i.current)?(o._reset(e.values,o._options.resetOptions),i.current=e.values,r((e=>({...e})))):o._resetDefaultValues()}),[e.values,o]),s.useEffect((()=>{e.errors&&o._setErrors(e.errors)}),[e.errors,o]),s.useEffect((()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()})),s.useEffect((()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})}),[e.shouldUnregister,o]),t.current.formState=I(n,o),t.current}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/1329.d6e31925.chunk.js b/ydb/core/viewer/monitoring/static/js/1329.d6e31925.chunk.js new file mode 100644 index 0000000000..34b09a91ab --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/1329.d6e31925.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[1329],{17594:(e,t,a)=>{a.d(t,{l:()=>d});var n=a(69024),s=a(4557),r=a(77506),i=a(16819),o=a(60712);const l=(0,r.cn)("ydb-resizeable-data-table");function d({columnsWidthLSKey:e,columns:t,settings:a,wrapperClassName:r,...d}){const[c,u]=(0,i.a)(e),h=(0,n.j)(t,c),b={...a,defaultResizeable:!0};return(0,o.jsx)("div",{className:l(null,r),children:(0,o.jsx)(s.Ay,{theme:"yandex-cloud",columns:h,onResize:u,settings:b,...d})})}},21545:(e,t,a)=>{a.d(t,{X:()=>s});var n=a(78034);const s=a(21334).F.injectEndpoints({endpoints:e=>({getTablet:e.query({queryFn:async({id:e,database:t},{signal:a})=>{try{const[s,r,i]=await Promise.all([window.api.viewer.getTablet({id:e,database:t},{signal:a}),window.api.viewer.getTabletHistory({id:e,database:t},{signal:a}),window.api.viewer.getNodesList({signal:a})]),o=(0,n.nN)(i),l=Object.keys(r).reduce(((e,t)=>{var a;const n=null===(a=r[t])||void 0===a?void 0:a.TabletStateInfo;if(n&&n.length){var s;const a=n.find((e=>e.Leader))||n[0],{ChangeTime:r,Generation:i,State:l,Leader:d,FollowerId:c}=a,u=o&&t?null===(s=o.get(Number(t)))||void 0===s?void 0:s.Host:void 0;"Dead"!==l&&e.push({nodeId:t,generation:i,changeTime:r,state:l,leader:d,followerId:c,fqdn:u})}return e}),[]),{TabletStateInfo:d=[]}=s,[c={}]=d,{TabletId:u}=c;return{data:{id:u,data:c,history:l}}}catch(s){return{error:s}}},providesTags:(e,t,a)=>["All",{type:"Tablet",id:a.id}]}),getTabletDescribe:e.query({queryFn:async({tenantId:e},{signal:t})=>{try{const a=await window.api.viewer.getTabletDescribe(e,{signal:t}),{SchemeShard:n,PathId:s}=e;return{data:(null===a||void 0===a?void 0:a.Path)||`${n}:${s}`}}catch(a){return{error:a}}},providesTags:["All"]}),getAdvancedTableInfo:e.query({queryFn:async({id:e,hiveId:t},{signal:a})=>{try{return{data:await window.api.tablets.getTabletFromHive({id:e,hiveId:t},{signal:a})}}catch(n){return{error:n}}},providesTags:(e,t,a)=>["All",{type:"Tablet",id:a.id}]}),killTablet:e.mutation({queryFn:async({id:e})=>{try{return{data:await window.api.tablets.killTablet(e)}}catch(t){return{error:t}}},invalidatesTags:(e,t,a)=>[{type:"Tablet",id:a.id},{type:"Tablet",id:"LIST"}]}),stopTablet:e.mutation({queryFn:async({id:e,hiveId:t})=>{try{return{data:await window.api.tablets.stopTablet(e,t)}}catch(a){return{error:a}}},invalidatesTags:(e,t,a)=>[{type:"Tablet",id:a.id},{type:"Tablet",id:"LIST"}]}),resumeTablet:e.mutation({queryFn:async({id:e,hiveId:t})=>{try{return{data:await window.api.tablets.resumeTablet(e,t)}}catch(a){return{error:a}}},invalidatesTags:(e,t,a)=>[{type:"Tablet",id:a.id},{type:"Tablet",id:"LIST"}]})}),overrideExisting:"throw"})},22983:(e,t,a)=>{a.d(t,{B:()=>d});var n=a(59284),s=a(84476),r=a(84375),i=a(55974),o=a(42829),l=a(60712);function d({children:e,onConfirmAction:t,onConfirmActionSuccess:a,dialogHeader:d,dialogText:c,retryButtonText:u,buttonDisabled:h=!1,buttonView:b="action",buttonTitle:p,buttonClassName:v,withPopover:g=!1,popoverContent:m,popoverPlacement:x="right",popoverDisabled:y=!0}){const[j,w]=n.useState(!1),[T,f]=n.useState(!1),[N,S]=n.useState(!1),I=()=>(0,l.jsx)(s.$,{onClick:()=>w(!0),view:b,disabled:h,loading:!h&&T,className:v,title:p,children:e});return(0,l.jsxs)(n.Fragment,{children:[(0,l.jsx)(i.g,{visible:j,header:d,text:c,withRetry:N,retryButtonText:u,onConfirm:async e=>{f(!0),await t(e)},onConfirmActionSuccess:async()=>{S(!1);try{await(null===a||void 0===a?void 0:a())}finally{f(!1)}},onConfirmActionError:e=>{S((0,o.D)(e)),f(!1)},onClose:()=>{w(!1)}}),g?(0,l.jsx)(r.A,{content:m,placement:x,disabled:y,children:I()}):I()]})}},27775:(e,t,a)=>{a.d(t,{i:()=>i});var n=a(47665),s=a(58267),r=a(60712);function i({state:e}){return(0,r.jsx)(n.J,{theme:(0,s._)(e),children:e})}},28539:(e,t,a)=>{a.d(t,{T:()=>n.T});var n=a(53755)},42829:(e,t,a)=>{a.d(t,{D:()=>n});const n=e=>Boolean(e&&"object"===typeof e&&"retryPossible"in e&&e.retryPossible)},52248:(e,t,a)=>{a.d(t,{a:()=>n.a});var n=a(47334)},55974:(e,t,a)=>{a.d(t,{g:()=>m});var n=a(59284),s=a(18677),r=a(71153),i=a(74321),o=a(2198),l=a(99991),d=a(89954),c=a(77506),u=a(48372);const h=JSON.parse('{"default-error":"Something went wrong, action cannot be completed","no-rights-error":"You don\'t have enough rights to complete the operation","button-confirm":"Confirm","button-retry":"Retry","button-cancel":"Cancel","button-close":"Close","checkbox-text":"I understand what I\'m doing"}'),b=(0,u.g4)("ydb-critical-action-dialog",{en:h});var p=a(60712);const v=(0,c.cn)("ydb-critical-dialog"),g=e=>e.data&&"issues"in e.data&&e.data.issues?(0,p.jsx)(d.O,{hideSeverity:!0,data:e.data}):403===e.status?b("no-rights-error"):e.statusText?e.statusText:b("default-error");function m({visible:e,header:t,text:a,withRetry:d,retryButtonText:c,withCheckBox:u,onClose:h,onConfirm:m,onConfirmActionSuccess:x,onConfirmActionError:y}){const[j,w]=n.useState(!1),[T,f]=n.useState(),[N,S]=n.useState(!1),I=async e=>(w(!0),m(e).then((()=>{x(),h()})).catch((e=>{y(e),f(e)})).finally((()=>{w(!1)})));return(0,p.jsx)(o.l,{open:e,hasCloseButton:!1,className:v(),size:"s",onClose:h,onTransitionExited:()=>{f(void 0),S(!1)},children:T?(0,p.jsxs)(n.Fragment,{children:[(0,p.jsx)(o.l.Header,{caption:t}),(0,p.jsx)(o.l.Body,{className:v("body"),children:(0,p.jsxs)("div",{className:v("body-message",{error:!0}),children:[(0,p.jsx)("span",{className:v("error-icon"),children:(0,p.jsx)(s.A,{width:"24",height:"22"})}),g(T)]})}),(0,p.jsx)(o.l.Footer,{loading:!1,preset:"default",textButtonApply:d?c||b("button-retry"):void 0,textButtonCancel:b("button-close"),onClickButtonApply:()=>I(!0),onClickButtonCancel:h})]}):(0,p.jsxs)(n.Fragment,{children:[(0,p.jsx)(o.l.Header,{caption:t}),(0,p.jsxs)(o.l.Body,{className:v("body"),children:[(0,p.jsxs)("div",{className:v("body-message",{warning:!0}),children:[(0,p.jsx)("span",{className:v("warning-icon"),children:(0,p.jsx)(l.I,{data:r.A,size:24})}),a]}),u?(0,p.jsx)(i.S,{checked:N,onUpdate:S,children:b("checkbox-text")}):null]}),(0,p.jsx)(o.l.Footer,{loading:j,preset:"default",textButtonApply:b("button-confirm"),textButtonCancel:b("button-cancel"),propsButtonApply:{type:"submit",disabled:u&&!N},onClickButtonCancel:h,onClickButtonApply:()=>I()})]})})}},80420:(e,t,a)=>{a.d(t,{$:()=>v});var n=a(40336),s=a(63291),r=a(92459),i=a(31684),o=a(12888),l=a(71661),d=a(10508),c=a(25196),u=a(48372);const h=JSON.parse('{"field_links":"Links","context_developer-ui":"Developer UI"}'),b=(0,u.g4)("ydb-tablet-name-wrapper",{en:h});var p=a(60712);function v({tabletId:e,database:t}){const a=(0,o.X)(),u=(0,r.DM)(e,{database:t});return(0,p.jsx)(l.s,{disabled:!a,delayClosing:200,content:(0,p.jsx)(n.u,{responsive:!0,children:(0,p.jsx)(n.u.Item,{name:b("field_links"),children:(0,p.jsx)(c.K,{title:b("context_developer-ui"),url:(0,i._t)(e)})})}),placement:["top","bottom"],behavior:s.m.Immediate,children:(0,p.jsx)(d.c,{name:e.toString(),path:u,hasClipboardButton:!0,showStatus:!1})})}},88616:(e,t,a)=>{a.d(t,{Q:()=>A});var n=a(59284),s=a(76938),r=a(98089),i=a(99991),o=a(67087),l=a(22983),d=a(28539),c=a(10508),u=a(44508),h=a(44294),b=a(17594),p=a(41775),v=a(89073),g=a(80420),m=a(27775),x=a(41826),y=a(21545),j=a(6354),w=a(76086),T=a(12888),f=a(29819),N=a(48372);const S=JSON.parse('{"noTabletsData":"No tablets data","Type":"Type","Tablet":"Tablet","State":"State","Node ID":"Node ID","Node FQDN":"Node FQDN","Generation":"Generation","Uptime":"Uptime","dialog.kill-header":"Restart tablet","dialog.kill-text":"The tablet will be restarted. Do you want to proceed?","controls.kill-not-allowed":"You don\'t have enough rights to restart tablet","controls.search-placeholder":"Tablet ID","controls.entities-count-label":"Tablets"}'),I=(0,N.g4)("ydb-tablets",{en:S});var C=a(60712);function k(e){const t=e.State===j.r.Stopped,a=(0,T.X)(),[n]=y.X.useKillTabletMutation(),r=e.TabletId;return r?(0,C.jsx)(l.B,{buttonView:"outlined",buttonTitle:I("dialog.kill-header"),dialogHeader:I("dialog.kill-header"),dialogText:I("dialog.kill-text"),onConfirmAction:()=>n({id:r}).unwrap(),buttonDisabled:t||!a,withPopover:!0,popoverContent:I(a?"dialog.kill-header":"controls.kill-not-allowed"),popoverPlacement:["right","auto"],popoverDisabled:!1,children:(0,C.jsx)(i.I,{data:s.A})}):null}function A({database:e,tablets:t,loading:a,error:s}){const[{tabletsSearch:i},l]=(0,o.useQueryParams)({tabletsSearch:o.StringParam}),y=n.useMemo((()=>function({database:e}){return[{name:"Type",width:150,get header(){return I("Type")},render:({row:e})=>{const t=!1===e.Leader;return(0,C.jsxs)("span",{children:[e.Type," ",t?(0,C.jsx)(r.E,{color:"secondary",children:"follower"}):""]})}},{name:"TabletId",width:220,get header(){return I("Tablet")},render:({row:t})=>t.TabletId?(0,C.jsx)(g.$,{tabletId:t.TabletId,database:e}):w.Pd},{name:"State",get header(){return I("State")},render:({row:e})=>(0,C.jsx)(m.i,{state:e.State})},{name:"NodeId",get header(){return I("Node ID")},render:({row:e})=>{const t=void 0===e.NodeId?void 0:(0,f.vI)(e.NodeId);return(0,C.jsx)(h.E,{to:t,children:e.NodeId})},align:"right"},{name:"fqdn",get header(){return I("Node FQDN")},render:({row:e})=>e.fqdn?(0,C.jsx)(c.c,{name:e.fqdn,showStatus:!1,hasClipboardButton:!0}):(0,C.jsx)("span",{children:"\u2014"})},{name:"Generation",get header(){return I("Generation")},align:"right"},{name:"Uptime",get header(){return I("Uptime")},render:({row:e})=>(0,C.jsx)(x.H,{ChangeTime:e.ChangeTime}),sortAccessor:e=>-Number(e.ChangeTime),align:"right",width:120},{name:"Actions",sortable:!1,resizeable:!1,header:"",render:({row:e})=>(0,C.jsx)(k,{...e})}]}({database:e})),[e]),j=n.useMemo((()=>t.filter((e=>String(e.TabletId).includes(null!==i&&void 0!==i?i:"")))),[t,i]);return(0,C.jsxs)(v.L,{children:[(0,C.jsxs)(v.L.Controls,{children:[(0,C.jsx)(p.v,{placeholder:I("controls.search-placeholder"),onChange:e=>{l({tabletsSearch:e||void 0},"replaceIn")},value:null!==i&&void 0!==i?i:"",width:238}),(0,C.jsx)(d.T,{label:I("controls.entities-count-label"),loading:a,total:t.length,current:j.length})]}),s?(0,C.jsx)(u.o,{error:s}):null,(0,C.jsx)(v.L.Table,{loading:a,children:(0,C.jsx)(b.l,{columns:y,data:j,settings:w.N3,emptyDataMessage:I("noTabletsData")})})]})}},89954:(e,t,a)=>{a.d(t,{O:()=>I});var n=a(59284),s=a(45720),r=a(16929),i=a(71153),o=a(18677),l=a(84476),d=a(33705),c=a(67884),u=a(99991),h=a(77506),b=a(48372);const p=JSON.parse('{"default_collapse_label":"Show less","default_expand_label":"Show more","chars_count":[" ({{count}} symbol)"," ({{count}} symbols)"," ({{count}} symbols)"," ({{count}} symbols)"]}'),v=JSON.parse('{"default_collapse_label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043c\u0435\u043d\u044c\u0448\u0435","default_expand_label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0435\u0449\u0451","chars_count":[" ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u0430)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432)"]}'),g=(0,b.g4)("ydb-shorty-string",{ru:v,en:p});var m=a(60712);const x=(0,h.cn)("kv-shorty-string");function y({value:e="",limit:t=200,strict:a=!1,displayLength:s=!0,render:r=e=>e,onToggle:i,expandLabel:o=g("default_expand_label"),collapseLabel:l=g("default_collapse_label")}){const[d,u]=n.useState(!1),h=(d?l:o)+(s&&!d?g("chars_count",{count:e.length}):""),b=e.length>t+(a?0:h.length),p=d||!b?e:e.slice(0,t-4)+"\xa0...";return(0,m.jsxs)("div",{className:x(),children:[r(p),b?(0,m.jsx)(c.N,{className:x("toggle"),href:"#",onClick:e=>{e.stopPropagation(),e.preventDefault(),u((e=>!e)),null===i||void 0===i||i()},children:h}):null]})}var j=a(41650);const w=["S_FATAL","S_ERROR","S_WARNING","S_INFO"];function T(e){return function(e){return!!e&&void 0!==w[e]}(e)?w[e]:"S_INFO"}const f=(0,h.cn)("kv-result-issues"),N=(0,h.cn)("kv-issues"),S=(0,h.cn)("kv-issue");function I({data:e,hideSeverity:t}){const[a,s]=n.useState(!1),r="string"===typeof e||null===e||void 0===e?void 0:e.issues,i=Array.isArray(r)&&r.length>0;return(0,m.jsxs)("div",{className:f(),children:[(0,m.jsxs)("div",{className:f("error-message"),children:[(()=>{let a;if("string"===typeof e)a=e;else{var s,r;const i=T(null===e||void 0===e||null===(s=e.error)||void 0===s?void 0:s.severity);a=(0,m.jsxs)(n.Fragment,{children:[t?null:(0,m.jsxs)(n.Fragment,{children:[(0,m.jsx)(B,{severity:i})," "]}),(0,m.jsx)("span",{className:f("error-message-text"),children:null===e||void 0===e||null===(r=e.error)||void 0===r?void 0:r.message})]})}return a})(),i&&(0,m.jsx)(l.$,{view:"normal",onClick:()=>s(!a),children:a?"Hide details":"Show details"})]}),i&&a&&(0,m.jsx)(C,{hideSeverity:t,issues:r})]})}function C({issues:e,hideSeverity:t}){const a=null===e||void 0===e?void 0:e.reduce(((e,t)=>{var a;const n=null!==(a=t.severity)&&void 0!==a?a:10;return Math.min(e,n)}),10);return(0,m.jsx)("div",{className:N(null),children:null===e||void 0===e?void 0:e.map(((e,n)=>(0,m.jsx)(k,{hideSeverity:t,issue:e,expanded:e===a},n)))})}function k({issue:e,hideSeverity:t,level:a=0}){const[s,r]=n.useState(!0),i=T(e.severity),o=e.issues,c=Array.isArray(o)&&o.length>0,u=s?"bottom":"right";return(0,m.jsxs)("div",{className:S({leaf:!c,"has-issues":c}),children:[(0,m.jsxs)("div",{className:S("line"),children:[c&&(0,m.jsx)(l.$,{view:"flat-secondary",onClick:()=>r(!s),className:S("arrow-toggle"),children:(0,m.jsx)(d.I,{direction:u,size:16})}),t?null:(0,m.jsx)(B,{severity:i}),(0,m.jsx)(A,{issue:e}),e.issue_code?(0,m.jsxs)("span",{className:S("code"),children:["Code: ",e.issue_code]}):null]}),c&&s&&(0,m.jsx)("div",{className:S("issues"),children:(0,m.jsx)(_,{issues:o,level:a+1,expanded:s})})]})}function A({issue:e}){var t;const a=function(e){const{position:t}=e;if("object"!==typeof t||null===t||!(0,j.kf)(t.row))return"";const{row:a,column:n}=t;return(0,j.kf)(n)?`${a}:${n}`:`line ${a}`}(e),n=window.ydbEditor,s=()=>(0,m.jsxs)("span",{className:S("message"),children:[a&&(0,m.jsx)("span",{className:S("place-text"),title:"Position",children:a}),(0,m.jsx)("div",{className:S("message-text"),children:(0,m.jsx)(y,{value:e.message,expandLabel:"Show full message"})})]}),{row:r,column:i}=null!==(t=e.position)&&void 0!==t?t:{};if(!((0,j.kf)(r)&&n))return s();return(0,m.jsx)(c.N,{href:"#",extraProps:{draggable:!1},onClick:()=>{const e={lineNumber:r,column:null!==i&&void 0!==i?i:0};n.setPosition(e),n.revealPositionInCenterIfOutsideViewport(e),n.focus()},view:"primary",children:s()})}function _(e){const{issues:t,level:a,expanded:n}=e;return(0,m.jsx)("div",{className:S("list"),children:t.map(((e,t)=>(0,m.jsx)(k,{issue:e,level:a,expanded:n},t)))})}const F={S_INFO:s.A,S_WARNING:r.A,S_ERROR:i.A,S_FATAL:o.A},D=(0,h.cn)("yql-issue-severity");function B({severity:e}){const t=e.slice(2).toLowerCase();return(0,m.jsxs)("span",{className:D({severity:t}),children:[(0,m.jsx)(u.I,{className:D("icon"),data:F[e]}),(0,m.jsx)("span",{className:D("title"),children:t})]})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/1434.b8423300.chunk.js b/ydb/core/viewer/monitoring/static/js/1434.b8423300.chunk.js deleted file mode 100644 index f0f10bb553..0000000000 --- a/ydb/core/viewer/monitoring/static/js/1434.b8423300.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[1434],{22983:(e,t,a)=>{a.d(t,{B:()=>d});var n=a(59284),r=a(84476),s=a(84375),o=a(55974),l=a(42829),i=a(60712);function d({children:e,onConfirmAction:t,onConfirmActionSuccess:a,dialogHeader:d,dialogText:u,retryButtonText:c,buttonDisabled:p=!1,buttonView:h="action",buttonTitle:m,buttonClassName:b,withPopover:g=!1,popoverContent:v,popoverPlacement:y="right",popoverDisabled:x=!0}){const[f,j]=n.useState(!1),[N,w]=n.useState(!1),[C,T]=n.useState(!1),S=()=>(0,i.jsx)(r.$,{onClick:()=>j(!0),view:h,disabled:p,loading:!p&&N,className:b,title:m,children:e});return(0,i.jsxs)(n.Fragment,{children:[(0,i.jsx)(o.g,{visible:f,header:d,text:u,withRetry:C,retryButtonText:c,onConfirm:async e=>{w(!0),await t(e)},onConfirmActionSuccess:async()=>{T(!1);try{await(null===a||void 0===a?void 0:a())}finally{w(!1)}},onConfirmActionError:e=>{T((0,l.D)(e)),w(!1)},onClose:()=>{j(!1)}}),g?(0,i.jsx)(s.A,{content:v,placement:y,disabled:x,children:S()}):S()]})}},55974:(e,t,a)=>{a.d(t,{g:()=>v});var n=a(59284),r=a(18677),s=a(71153),o=a(74321),l=a(2198),i=a(99991),d=a(89954),u=a(77506),c=a(48372);const p=JSON.parse('{"default-error":"Something went wrong, action cannot be completed","no-rights-error":"You don\'t have enough rights to complete the operation","button-confirm":"Confirm","button-retry":"Retry","button-cancel":"Cancel","button-close":"Close","checkbox-text":"I understand what I\'m doing"}'),h=(0,c.g4)("ydb-critical-action-dialog",{en:p});var m=a(60712);const b=(0,u.cn)("ydb-critical-dialog"),g=e=>e.data&&"issues"in e.data&&e.data.issues?(0,m.jsx)(d.O,{hideSeverity:!0,data:e.data}):403===e.status?h("no-rights-error"):e.statusText?e.statusText:h("default-error");function v({visible:e,header:t,text:a,withRetry:d,retryButtonText:u,withCheckBox:c,onClose:p,onConfirm:v,onConfirmActionSuccess:y,onConfirmActionError:x}){const[f,j]=n.useState(!1),[N,w]=n.useState(),[C,T]=n.useState(!1),S=async e=>(j(!0),v(e).then((()=>{y(),p()})).catch((e=>{x(e),w(e)})).finally((()=>{j(!1)})));return(0,m.jsx)(l.l,{open:e,hasCloseButton:!1,className:b(),size:"s",onClose:p,onTransitionExited:()=>{w(void 0),T(!1)},children:N?(0,m.jsxs)(n.Fragment,{children:[(0,m.jsx)(l.l.Header,{caption:t}),(0,m.jsx)(l.l.Body,{className:b("body"),children:(0,m.jsxs)("div",{className:b("body-message",{error:!0}),children:[(0,m.jsx)("span",{className:b("error-icon"),children:(0,m.jsx)(r.A,{width:"24",height:"22"})}),g(N)]})}),(0,m.jsx)(l.l.Footer,{loading:!1,preset:"default",textButtonApply:d?u||h("button-retry"):void 0,textButtonCancel:h("button-close"),onClickButtonApply:()=>S(!0),onClickButtonCancel:p})]}):(0,m.jsxs)(n.Fragment,{children:[(0,m.jsx)(l.l.Header,{caption:t}),(0,m.jsxs)(l.l.Body,{className:b("body"),children:[(0,m.jsxs)("div",{className:b("body-message",{warning:!0}),children:[(0,m.jsx)("span",{className:b("warning-icon"),children:(0,m.jsx)(i.I,{data:s.A,size:24})}),a]}),c?(0,m.jsx)(o.S,{checked:C,onUpdate:T,children:h("checkbox-text")}):null]}),(0,m.jsx)(l.l.Footer,{loading:f,preset:"default",textButtonApply:h("button-confirm"),textButtonCancel:h("button-cancel"),propsButtonApply:{type:"submit",disabled:c&&!C},onClickButtonCancel:p,onClickButtonApply:()=>S()})]})})}},42829:(e,t,a)=>{a.d(t,{D:()=>n});const n=e=>Boolean(e&&"object"===typeof e&&"retryPossible"in e&&e.retryPossible)},2102:(e,t,a)=>{a.d(t,{A:()=>o});var n=a(77506),r=a(60712);const s=(0,n.cn)("ydb-diagnostic-card");function o({children:e,className:t,active:a,size:n="m",interactive:o=!0}){return(0,r.jsx)("div",{className:s({active:a,size:n,interactive:o},t),children:e})}},28539:(e,t,a)=>{a.d(t,{T:()=>n.T});var n=a(53755)},52248:(e,t,a)=>{a.d(t,{a:()=>n.a});var n=a(47334)},9252:(e,t,a)=>{a.d(t,{k:()=>o});var n=a(44433),r=a(88610),s=a(60712);const o=({value:e,onChange:t,className:a})=>(0,s.jsxs)(n.a,{value:e,onUpdate:t,className:a,children:[(0,s.jsx)(n.a.Option,{value:r.s$.ALL,children:r.s$.ALL}),(0,s.jsx)(n.a.Option,{value:r.s$.PROBLEMS,children:r.s$.PROBLEMS})]})},17594:(e,t,a)=>{a.d(t,{l:()=>d});var n=a(69024),r=a(4557),s=a(77506),o=a(16819),l=a(60712);const i=(0,s.cn)("ydb-resizeable-data-table");function d({columnsWidthLSKey:e,columns:t,settings:a,wrapperClassName:s,...d}){const[u,c]=(0,o.a)(e),p=(0,n.j)(t,u),h={...a,defaultResizeable:!0};return(0,l.jsx)("div",{className:i(null,s),children:(0,l.jsx)(r.Ay,{theme:"yandex-cloud",columns:p,onResize:c,settings:h,...d})})}},95963:(e,t,a)=>{a.d(t,{v:()=>n.v});var n=a(41775)},80420:(e,t,a)=>{a.d(t,{$:()=>b});var n=a(40336),r=a(63291),s=a(92459),o=a(31684),l=a(12888),i=a(71661),d=a(10508),u=a(25196),c=a(48372);const p=JSON.parse('{"field_links":"Links","context_developer-ui":"Developer UI"}'),h=(0,c.g4)("ydb-tablet-name-wrapper",{en:p});var m=a(60712);function b({tabletId:e,database:t}){const a=(0,l.X)(),c=(0,s.DM)(e,{database:t});return(0,m.jsx)(i.s,{disabled:!a,delayClosing:200,content:(0,m.jsx)(n.u,{responsive:!0,children:(0,m.jsx)(n.u.Item,{name:h("field_links"),children:(0,m.jsx)(u.K,{title:h("context_developer-ui"),url:(0,o._t)(e)})})}),placement:["top","bottom"],behavior:r.m.Immediate,children:(0,m.jsx)(d.c,{name:e.toString(),path:c,hasClipboardButton:!0,showStatus:!1})})}},27775:(e,t,a)=>{a.d(t,{i:()=>o});var n=a(47665),r=a(58267),s=a(60712);function o({state:e}){return(0,s.jsx)(n.J,{theme:(0,r._)(e),children:e})}},7117:(e,t,a)=>{a.d(t,{G:()=>ee});var n=a(59284),r=a(44508),s=a(98167),o=a(89073),l=a(86782),i=a(67028),d=a(15298),u=a(90182),c=a(88610);function p(){const e=(0,u.YQ)();return{problemFilter:(0,u.N4)(c.yV),handleProblemFilterChange:t=>{e((0,c.$u)(t))}}}var h=a(12888),m=a(43951),b=a(78034),g=a(71708),v=a(62710),y=a(98089),x=a(69775),f=a(24555),j=a(28539),N=a(9252),w=a(95963),C=a(64934),T=a(44433),S=a(48372);const F=JSON.parse('{"nodes":"Nodes","empty.default":"No such nodes","no-nodes-groups":"No nodes groups","controls_search-placeholder":"Host name","controls_group-by-placeholder":"Group by:","controls_peer-role-label":"Peer role:","database":"database","static":"static","other":"other","any":"any"}'),I=(0,S.g4)("ydb-nodes",{en:F}),P=["database","static","other","any"],R={get database(){return I("database")},get static(){return I("static")},get other(){return I("other")},get any(){return I("any")}};var A=a(60712);function _({value:e="database",onChange:t}){return(0,A.jsx)(T.a,{value:e,onUpdate:t,children:P.map((e=>(0,A.jsx)(T.a.Option,{value:e,children:R[e]},e)))})}const B="nodesTableSelectedColumns",k=["NodeId","Host","Uptime","CPU","RAM","Version","Tablets"],G=["NodeId"],L=["SystemState","Host","DC","Rack","Database","Version","Uptime"];function D(e,t){return t?e:e.filter((e=>"SystemState"!==e))}var E=a(59109);const O=(0,a(77506).cn)("ydb-nodes"),q=e=>O("node",{unavailable:(0,b.X7)(e)}),U=e=>e&&403===e.status?(0,A.jsx)(E.O,{position:"left"}):(0,A.jsx)(r.o,{error:e});var V=a(67087);function $(e){var t;const[a,n]=(0,V.useQueryParams)({uptimeFilter:V.StringParam,peerRole:V.StringParam,search:V.StringParam,nodesGroupBy:V.StringParam}),r=b.Bm.parse(a.uptimeFilter),s=null!==(t=a.search)&&void 0!==t?t:"",o=(l=a.peerRole,P.find((e=>e===l)));var l;const d=(0,i.DM)(),u=function(e,t,a){return D(t,a).find((t=>t===e))}(a.nodesGroupBy,null!==e&&void 0!==e?e:[],d);return{uptimeFilter:r,searchValue:s,peerRoleFilter:o,groupByParam:u,handleSearchQueryChange:e=>{n({search:e||void 0},"replaceIn")},handleUptimeFilterChange:e=>{n({uptimeFilter:e},"replaceIn")},handlePeerRoleFilterChange:e=>{n({peerRole:e},"replaceIn")},handleGroupByParamChange:e=>{n({nodesGroupBy:e},"replaceIn")}}}function M({withGroupBySelect:e,groupByParams:t=[],withPeerRoleFilter:a,columnsToSelect:r,handleSelectedColumnsUpdate:s,entitiesCountCurrent:o,entitiesCountTotal:d,entitiesLoading:u}){const{searchValue:c,uptimeFilter:h,peerRoleFilter:m,groupByParam:b,handleSearchQueryChange:g,handleUptimeFilterChange:v,handlePeerRoleFilterChange:T,handleGroupByParamChange:S}=$(t),{problemFilter:F,handleProblemFilterChange:P}=p(),R=(0,i.DM)(),B=function(e,t){return D(e,t).map((e=>({value:e,content:(0,l.kn)(e)})))}(t,R),k=(0,i.WF)(),G=a&&k;return(0,A.jsxs)(n.Fragment,{children:[(0,A.jsx)(w.v,{onChange:g,placeholder:I("controls_search-placeholder"),width:238,value:c}),R&&e?null:(0,A.jsx)(N.k,{value:F,onChange:P}),e?null:(0,A.jsx)(C.j,{value:h,onChange:v}),G?(0,A.jsxs)(n.Fragment,{children:[(0,A.jsx)(y.E,{variant:"body-2",children:I("controls_peer-role-label")}),(0,A.jsx)(_,{value:m,onChange:T})]}):null,(0,A.jsx)(x.O,{popupWidth:200,items:r,showStatus:!0,onUpdate:s,sortable:!1}),e?(0,A.jsxs)(n.Fragment,{children:[(0,A.jsx)(y.E,{variant:"body-2",children:I("controls_group-by-placeholder")}),(0,A.jsx)(f.l,{hasClear:!0,placeholder:"-",width:150,defaultValue:b?[b]:void 0,onUpdate:e=>{S(e[0])},options:B,className:O("group-by-select"),popupClassName:O("group-by-popup")})]}):null,(0,A.jsx)(j.T,{current:o,total:d,label:I("nodes"),loading:u})]})}var H=a(78524),K=a(40427),Q=a(11906),z=a(69464),W=a(40781);const X=async e=>{const{type:t="any",storage:a=!1,tablets:n=!0,limit:r,offset:s,sortParams:o,filters:i,columnsIds:d}=e,{sortOrder:u,columnId:c}=null!==o&&void 0!==o?o:{},{path:p,database:h,searchValue:m,problemFilter:g,uptimeFilter:v,peerRoleFilter:y,filterGroup:x,filterGroupBy:f}=null!==i&&void 0!==i?i:{},j=(0,l.kU)(c),N=j?(0,z.T)(j,u):void 0,w=(0,W.R)(d,l.fN),C=await window.api.viewer.getNodes({type:t,storage:a,tablets:n,limit:r,offset:s,sort:N,path:p,database:h,filter:m,problems_only:(0,b.AB)(g),uptime:(0,b.Fo)(v),filter_peer_role:y,filter_group:x,filter_group_by:f,fieldsRequired:w}),T=(0,Q.N)(C);return{data:T.Nodes||[],found:T.FoundNodes||0,total:T.TotalNodes||0}};function J({path:e,database:t,searchValue:a,problemFilter:r,uptimeFilter:s,peerRoleFilter:o,filterGroup:i,filterGroupBy:d,columns:u,parentRef:c,renderControls:p,initialEntitiesCount:h}){const m=n.useMemo((()=>({path:e,database:t,searchValue:a,problemFilter:r,uptimeFilter:s,peerRoleFilter:o,filterGroup:i,filterGroupBy:d})),[e,t,a,r,s,o,i,d]);return(0,A.jsx)(K.k5,{columnsWidthLSKey:l.zO,parentRef:c,columns:u,fetchData:X,limit:50,initialEntitiesCount:h,renderControls:p,renderErrorMessage:U,renderEmptyDataMessage:()=>"All"!==r||s!==b.cW.All?(0,A.jsx)(H.v,{name:"thumbsUp",width:"200"}):I("empty.default"),getRowClassName:q,filters:m,tableName:"nodes"})}var Y=a(78762);function Z(e){return[(0,Y._E)(),(0,Y.Nh)(e),(0,Y.eT)(),(0,Y.uk)(),(0,Y.OX)(),(0,Y.jl)(),(0,Y.fr)(),(0,Y.kv)(),(0,Y.pH)(),(0,Y.iX)(),(0,Y.ID)(),(0,Y.Rn)(),(0,Y.qp)(e)].map((e=>({...e,sortable:(0,l.sp)(e.name)})))}function ee({path:e,database:t,parentRef:a,additionalNodesProps:r,withPeerRoleFilter:o,columns:d=Z({database:t,getNodeRef:null===r||void 0===r?void 0:r.getNodeRef}),defaultColumnsIds:u=k,requiredColumnsIds:c=G,selectedColumnsKey:m=B,groupByParams:g=L}){const{uptimeFilter:v,groupByParam:y,handleUptimeFilterChange:x}=$(g),{problemFilter:f,handleProblemFilterChange:j}=p(),N=(0,i.Pm)(),w=(0,i.Ye)(),C=(0,h.X)(),T=n.useMemo((()=>C?d:d.filter((e=>!(0,l.xd)(e.name)))),[d,C]);n.useEffect((()=>{!w||"All"===f&&v===b.cW.All||(j("All"),x(b.cW.All))}),[j,x,f,v,w]);return(0,A.jsx)(s.r,{loading:!N,children:w&&y?(0,A.jsx)(ae,{path:e,database:t,parentRef:a,withPeerRoleFilter:o,columns:T,defaultColumnsIds:u,requiredColumnsIds:c,selectedColumnsKey:m,groupByParams:g}):(0,A.jsx)(te,{path:e,database:t,parentRef:a,withPeerRoleFilter:o,columns:T,defaultColumnsIds:u,requiredColumnsIds:c,selectedColumnsKey:m,groupByParams:g})})}function te({path:e,database:t,parentRef:a,withPeerRoleFilter:n,columns:r,defaultColumnsIds:s,requiredColumnsIds:o,selectedColumnsKey:d,groupByParams:u}){const{searchValue:c,uptimeFilter:h,peerRoleFilter:b}=$(u),{problemFilter:g}=p(),v=(0,i.Ye)(),{columnsToShow:y,columnsToSelect:x,setColumns:f}=(0,m.K)(r,d,l.uG,s,o);return(0,A.jsx)(J,{path:e,database:t,searchValue:c,problemFilter:g,uptimeFilter:h,peerRoleFilter:b,columns:y,parentRef:a,renderControls:({totalEntities:e,foundEntities:t,inited:a})=>(0,A.jsx)(M,{withGroupBySelect:v,groupByParams:u,withPeerRoleFilter:n,columnsToSelect:x,handleSelectedColumnsUpdate:f,entitiesCountCurrent:t,entitiesCountTotal:e,entitiesLoading:!a})})}function ae({path:e,database:t,parentRef:a,withPeerRoleFilter:n,columns:s,defaultColumnsIds:i,requiredColumnsIds:c,selectedColumnsKey:p,groupByParams:h}){const{searchValue:y,peerRoleFilter:x,groupByParam:f}=$(h),[j]=(0,u.Nt)(),{columnsToShow:N,columnsToSelect:w,setColumns:C}=(0,m.K)(s,p,l.uG,i,c),{currentData:T,isFetching:S,error:F}=d.s.useGetNodesQuery({path:e,database:t,filter:y,filter_peer_role:x,group:f,limit:0},{pollingInterval:j}),P=void 0===T&&S,{NodeGroups:R,FoundNodes:_=0,TotalNodes:B=0}=T||{},{expandedGroups:k,setIsGroupExpanded:G}=(0,v.$)(R);return(0,A.jsxs)(o.L,{children:[(0,A.jsx)(o.L.Controls,{children:(0,A.jsx)(M,{withGroupBySelect:!0,groupByParams:h,withPeerRoleFilter:n,columnsToSelect:w,handleSelectedColumnsUpdate:C,entitiesCountCurrent:_,entitiesCountTotal:B,entitiesLoading:P})}),F?(0,A.jsx)(r.o,{error:F}):null,(0,A.jsx)(o.L.Table,{loading:P,className:O("groups-wrapper"),children:null!==R&&void 0!==R&&R.length?R.map((({name:n,count:r})=>{const s=k[n];return(0,A.jsx)(g.Q,{title:n,count:r,entityName:I("nodes"),expanded:s,onIsExpandedChange:G,children:(0,A.jsx)(J,{path:e,database:t,searchValue:y,problemFilter:"All",uptimeFilter:b.cW.All,peerRoleFilter:x,filterGroup:n,filterGroupBy:f,initialEntitiesCount:r,columns:N,parentRef:a})},n)})):I("no-nodes-groups")})]})}},88616:(e,t,a)=>{a.d(t,{Q:()=>P});var n=a(59284),r=a(76938),s=a(98089),o=a(99991),l=a(67087),i=a(22983),d=a(28539),u=a(10508),c=a(44508),p=a(44294),h=a(17594),m=a(41775),b=a(89073),g=a(80420),v=a(27775),y=a(41826),x=a(21545),f=a(6354),j=a(76086),N=a(12888),w=a(29819),C=a(48372);const T=JSON.parse('{"noTabletsData":"No tablets data","Type":"Type","Tablet":"Tablet","State":"State","Node ID":"Node ID","Node FQDN":"Node FQDN","Generation":"Generation","Uptime":"Uptime","dialog.kill-header":"Restart tablet","dialog.kill-text":"The tablet will be restarted. Do you want to proceed?","controls.kill-not-allowed":"You don\'t have enough rights to restart tablet","controls.search-placeholder":"Tablet ID","controls.entities-count-label":"Tablets"}'),S=(0,C.g4)("ydb-tablets",{en:T});var F=a(60712);function I(e){const t=e.State===f.r.Stopped,a=(0,N.X)(),[n]=x.X.useKillTabletMutation(),s=e.TabletId;return s?(0,F.jsx)(i.B,{buttonView:"outlined",buttonTitle:S("dialog.kill-header"),dialogHeader:S("dialog.kill-header"),dialogText:S("dialog.kill-text"),onConfirmAction:()=>n({id:s}).unwrap(),buttonDisabled:t||!a,withPopover:!0,popoverContent:S(a?"dialog.kill-header":"controls.kill-not-allowed"),popoverPlacement:["right","auto"],popoverDisabled:!1,children:(0,F.jsx)(o.I,{data:r.A})}):null}function P({database:e,tablets:t,loading:a,error:r}){const[{tabletsSearch:o},i]=(0,l.useQueryParams)({tabletsSearch:l.StringParam}),x=n.useMemo((()=>function({database:e}){return[{name:"Type",width:150,get header(){return S("Type")},render:({row:e})=>{const t=!1===e.Leader;return(0,F.jsxs)("span",{children:[e.Type," ",t?(0,F.jsx)(s.E,{color:"secondary",children:"follower"}):""]})}},{name:"TabletId",width:220,get header(){return S("Tablet")},render:({row:t})=>t.TabletId?(0,F.jsx)(g.$,{tabletId:t.TabletId,database:e}):j.Pd},{name:"State",get header(){return S("State")},render:({row:e})=>(0,F.jsx)(v.i,{state:e.State})},{name:"NodeId",get header(){return S("Node ID")},render:({row:e})=>{const t=void 0===e.NodeId?void 0:(0,w.vI)(e.NodeId);return(0,F.jsx)(p.E,{to:t,children:e.NodeId})},align:"right"},{name:"fqdn",get header(){return S("Node FQDN")},render:({row:e})=>e.fqdn?(0,F.jsx)(u.c,{name:e.fqdn,showStatus:!1,hasClipboardButton:!0}):(0,F.jsx)("span",{children:"\u2014"})},{name:"Generation",get header(){return S("Generation")},align:"right"},{name:"Uptime",get header(){return S("Uptime")},render:({row:e})=>(0,F.jsx)(y.H,{ChangeTime:e.ChangeTime}),sortAccessor:e=>-Number(e.ChangeTime),align:"right",width:120},{name:"Actions",sortable:!1,resizeable:!1,header:"",render:({row:e})=>(0,F.jsx)(I,{...e})}]}({database:e})),[e]),f=n.useMemo((()=>t.filter((e=>String(e.TabletId).includes(null!==o&&void 0!==o?o:"")))),[t,o]);return(0,F.jsxs)(b.L,{children:[(0,F.jsxs)(b.L.Controls,{children:[(0,F.jsx)(m.v,{placeholder:S("controls.search-placeholder"),onChange:e=>{i({tabletsSearch:e||void 0},"replaceIn")},value:null!==o&&void 0!==o?o:"",width:238}),(0,F.jsx)(d.T,{label:S("controls.entities-count-label"),loading:a,total:t.length,current:f.length})]}),r?(0,F.jsx)(c.o,{error:r}):null,(0,F.jsx)(b.L.Table,{loading:a,children:(0,F.jsx)(h.l,{columns:x,data:f,settings:j.N3,emptyDataMessage:S("noTabletsData")})})]})}},89954:(e,t,a)=>{a.d(t,{O:()=>S});var n=a(59284),r=a(45720),s=a(16929),o=a(71153),l=a(18677),i=a(84476),d=a(33705),u=a(67884),c=a(99991),p=a(77506),h=a(48372);const m=JSON.parse('{"default_collapse_label":"Show less","default_expand_label":"Show more","chars_count":[" ({{count}} symbol)"," ({{count}} symbols)"," ({{count}} symbols)"," ({{count}} symbols)"]}'),b=JSON.parse('{"default_collapse_label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043c\u0435\u043d\u044c\u0448\u0435","default_expand_label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0435\u0449\u0451","chars_count":[" ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u0430)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432)"]}'),g=(0,h.g4)("ydb-shorty-string",{ru:b,en:m});var v=a(60712);const y=(0,p.cn)("kv-shorty-string");function x({value:e="",limit:t=200,strict:a=!1,displayLength:r=!0,render:s=e=>e,onToggle:o,expandLabel:l=g("default_expand_label"),collapseLabel:i=g("default_collapse_label")}){const[d,c]=n.useState(!1),p=(d?i:l)+(r&&!d?g("chars_count",{count:e.length}):""),h=e.length>t+(a?0:p.length),m=d||!h?e:e.slice(0,t-4)+"\xa0...";return(0,v.jsxs)("div",{className:y(),children:[s(m),h?(0,v.jsx)(u.N,{className:y("toggle"),href:"#",onClick:e=>{e.stopPropagation(),e.preventDefault(),c((e=>!e)),null===o||void 0===o||o()},children:p}):null]})}var f=a(41650);const j=["S_FATAL","S_ERROR","S_WARNING","S_INFO"];function N(e){return function(e){return!!e&&void 0!==j[e]}(e)?j[e]:"S_INFO"}const w=(0,p.cn)("kv-result-issues"),C=(0,p.cn)("kv-issues"),T=(0,p.cn)("kv-issue");function S({data:e,hideSeverity:t}){const[a,r]=n.useState(!1),s="string"===typeof e||null===e||void 0===e?void 0:e.issues,o=Array.isArray(s)&&s.length>0;return(0,v.jsxs)("div",{className:w(),children:[(0,v.jsxs)("div",{className:w("error-message"),children:[(()=>{let a;if("string"===typeof e)a=e;else{var r,s;const o=N(null===e||void 0===e||null===(r=e.error)||void 0===r?void 0:r.severity);a=(0,v.jsxs)(n.Fragment,{children:[t?null:(0,v.jsxs)(n.Fragment,{children:[(0,v.jsx)(B,{severity:o})," "]}),(0,v.jsx)("span",{className:w("error-message-text"),children:null===e||void 0===e||null===(s=e.error)||void 0===s?void 0:s.message})]})}return a})(),o&&(0,v.jsx)(i.$,{view:"normal",onClick:()=>r(!a),children:a?"Hide details":"Show details"})]}),o&&a&&(0,v.jsx)(F,{hideSeverity:t,issues:s})]})}function F({issues:e,hideSeverity:t}){const a=null===e||void 0===e?void 0:e.reduce(((e,t)=>{var a;const n=null!==(a=t.severity)&&void 0!==a?a:10;return Math.min(e,n)}),10);return(0,v.jsx)("div",{className:C(null),children:null===e||void 0===e?void 0:e.map(((e,n)=>(0,v.jsx)(I,{hideSeverity:t,issue:e,expanded:e===a},n)))})}function I({issue:e,hideSeverity:t,level:a=0}){const[r,s]=n.useState(!0),o=N(e.severity),l=e.issues,u=Array.isArray(l)&&l.length>0,c=r?"bottom":"right";return(0,v.jsxs)("div",{className:T({leaf:!u,"has-issues":u}),children:[(0,v.jsxs)("div",{className:T("line"),children:[u&&(0,v.jsx)(i.$,{view:"flat-secondary",onClick:()=>s(!r),className:T("arrow-toggle"),children:(0,v.jsx)(d.I,{direction:c,size:16})}),t?null:(0,v.jsx)(B,{severity:o}),(0,v.jsx)(P,{issue:e}),e.issue_code?(0,v.jsxs)("span",{className:T("code"),children:["Code: ",e.issue_code]}):null]}),u&&r&&(0,v.jsx)("div",{className:T("issues"),children:(0,v.jsx)(R,{issues:l,level:a+1,expanded:r})})]})}function P({issue:e}){var t;const a=function(e){const{position:t}=e;if("object"!==typeof t||null===t||!(0,f.kf)(t.row))return"";const{row:a,column:n}=t;return(0,f.kf)(n)?`${a}:${n}`:`line ${a}`}(e),n=window.ydbEditor,r=()=>(0,v.jsxs)("span",{className:T("message"),children:[a&&(0,v.jsx)("span",{className:T("place-text"),title:"Position",children:a}),(0,v.jsx)("div",{className:T("message-text"),children:(0,v.jsx)(x,{value:e.message,expandLabel:"Show full message"})})]}),{row:s,column:o}=null!==(t=e.position)&&void 0!==t?t:{};if(!((0,f.kf)(s)&&n))return r();return(0,v.jsx)(u.N,{href:"#",extraProps:{draggable:!1},onClick:()=>{const e={lineNumber:s,column:null!==o&&void 0!==o?o:0};n.setPosition(e),n.revealPositionInCenterIfOutsideViewport(e),n.focus()},view:"primary",children:r()})}function R(e){const{issues:t,level:a,expanded:n}=e;return(0,v.jsx)("div",{className:T("list"),children:t.map(((e,t)=>(0,v.jsx)(I,{issue:e,level:a,expanded:n},t)))})}const A={S_INFO:r.A,S_WARNING:s.A,S_ERROR:o.A,S_FATAL:l.A},_=(0,p.cn)("yql-issue-severity");function B({severity:e}){const t=e.slice(2).toLowerCase();return(0,v.jsxs)("span",{className:_({severity:t}),children:[(0,v.jsx)(c.I,{className:_("icon"),data:A[e]}),(0,v.jsx)("span",{className:_("title"),children:t})]})}},15298:(e,t,a)=>{a.d(t,{s:()=>s});var n=a(21334),r=a(11906);const s=n.F.injectEndpoints({endpoints:e=>({getNodes:e.query({queryFn:async(e,{signal:t})=>{try{const a=await window.api.viewer.getNodes({type:"any",storage:!1,tablets:!0,...e},{signal:t});return{data:(0,r.N)(a)}}catch(a){return{error:a}}},providesTags:["All"]})}),overrideExisting:"throw"})},11906:(e,t,a)=>{a.d(t,{N:()=>r});var n=a(78034);const r=e=>{var t;const a=(e.Nodes||[]).map((e=>{const{SystemState:t,...a}=e;return{...a,...(0,n.q1)(t)}}));return{Nodes:a,NodeGroups:null===(t=e.NodeGroups)||void 0===t?void 0:t.map((({GroupName:e,NodeCount:t})=>{if(e&&t)return{name:e,count:Number(t)}})).filter((e=>Boolean(e))),TotalNodes:Number(e.TotalNodes)||a.length,FoundNodes:Number(e.FoundNodes)}}},21545:(e,t,a)=>{a.d(t,{X:()=>r});var n=a(78034);const r=a(21334).F.injectEndpoints({endpoints:e=>({getTablet:e.query({queryFn:async({id:e,database:t},{signal:a})=>{try{const[r,s,o]=await Promise.all([window.api.viewer.getTablet({id:e,database:t},{signal:a}),window.api.viewer.getTabletHistory({id:e,database:t},{signal:a}),window.api.viewer.getNodesList({signal:a})]),l=(0,n.nN)(o),i=Object.keys(s).reduce(((e,t)=>{var a;const n=null===(a=s[t])||void 0===a?void 0:a.TabletStateInfo;if(n&&n.length){var r;const a=n.find((e=>e.Leader))||n[0],{ChangeTime:s,Generation:o,State:i,Leader:d,FollowerId:u}=a,c=l&&t?null===(r=l.get(Number(t)))||void 0===r?void 0:r.Host:void 0;"Dead"!==i&&e.push({nodeId:t,generation:o,changeTime:s,state:i,leader:d,followerId:u,fqdn:c})}return e}),[]),{TabletStateInfo:d=[]}=r,[u={}]=d,{TabletId:c}=u;return{data:{id:c,data:u,history:i}}}catch(r){return{error:r}}},providesTags:(e,t,a)=>["All",{type:"Tablet",id:a.id}]}),getTabletDescribe:e.query({queryFn:async({tenantId:e},{signal:t})=>{try{const a=await window.api.viewer.getTabletDescribe(e,{signal:t}),{SchemeShard:n,PathId:r}=e;return{data:(null===a||void 0===a?void 0:a.Path)||`${n}:${r}`}}catch(a){return{error:a}}},providesTags:["All"]}),getAdvancedTableInfo:e.query({queryFn:async({id:e,hiveId:t},{signal:a})=>{try{return{data:await window.api.tablets.getTabletFromHive({id:e,hiveId:t},{signal:a})}}catch(n){return{error:n}}},providesTags:(e,t,a)=>["All",{type:"Tablet",id:a.id}]}),killTablet:e.mutation({queryFn:async({id:e})=>{try{return{data:await window.api.tablets.killTablet(e)}}catch(t){return{error:t}}},invalidatesTags:(e,t,a)=>[{type:"Tablet",id:a.id},{type:"Tablet",id:"LIST"}]}),stopTablet:e.mutation({queryFn:async({id:e,hiveId:t})=>{try{return{data:await window.api.tablets.stopTablet(e,t)}}catch(a){return{error:a}}},invalidatesTags:(e,t,a)=>[{type:"Tablet",id:a.id},{type:"Tablet",id:"LIST"}]}),resumeTablet:e.mutation({queryFn:async({id:e,hiveId:t})=>{try{return{data:await window.api.tablets.resumeTablet(e,t)}}catch(a){return{error:a}}},invalidatesTags:(e,t,a)=>[{type:"Tablet",id:a.id},{type:"Tablet",id:"LIST"}]})}),overrideExisting:"throw"})}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/1836.1a1c6d4b.chunk.js b/ydb/core/viewer/monitoring/static/js/1836.1a1c6d4b.chunk.js new file mode 100644 index 0000000000..85d616cf90 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/1836.1a1c6d4b.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[1836],{576:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});const i={ru:{"hide-all":"\u0421\u043a\u0440\u044b\u0442\u044c \u0432\u0441\u0435","show-all":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u0435",sum:"\u0421\u0443\u043c\u043c\u0430",scale:"\u0428\u043a\u0430\u043b\u0430",series:"\u041b\u0438\u043d\u0438\u044f",weekend:"\u0412\u044b\u0445\u043e\u0434\u043d\u043e\u0439",nodata:"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445"},en:{"hide-all":"Hide all","show-all":"Show all",sum:"Total",scale:"Scale",series:"Series",weekend:"Weekend",nodata:"No data"}};t.default=(e="en")=>("string"!==typeof e&&(i.custom=e,e="custom"),t=>i[e][t]||t)},2836:function(e,t,i){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CreateUplotOptionsMixin=void 0;const n=s(i(25700)),o=s(i(60758)),l=i(46976),r=i(28265),a=s(i(67903)),u=i(81891),c=i(24793),d=i(27658),h=i(48643),f=s(i(15648));function p(e,t){for(const i of e||[])if(i===t)return;null===e||void 0===e||e.push(t)}t.CreateUplotOptionsMixin=class{initMixin(){this._uHooks.onDraw=()=>{if("listen"===this.state.stage)return;this.state.stage="listen",this.execHooks("stage",{chart:this,stage:this.state.stage});const e=performance.now()-this._startTime;this._meta.renderTime=e,this.execHooks("load",{chart:this,meta:this._meta})},this._uHooks.ready=()=>{const e=performance.now()-this._startTime;this._meta.initTime=e,this.execHooks("inited",{chart:this,meta:{initTime:e}})},this._uHooks.drawClear=e=>{const{ctx:t}=e;t.save(),t.fillStyle=this.utils.theme.BACKGROUND,t.fillRect(l.DEFAULT_CANVAS_PIXEL_RATIO,l.DEFAULT_CANVAS_PIXEL_RATIO,e.width*l.DEFAULT_CANVAS_PIXEL_RATIO-2*l.DEFAULT_CANVAS_PIXEL_RATIO,e.height*l.DEFAULT_CANVAS_PIXEL_RATIO-2*l.DEFAULT_CANVAS_PIXEL_RATIO),t.restore()},this._uHooks.setSelect=e=>{const{left:t,width:i}=e.select,[s,n]=[e.posToVal(t,l.DEFAULT_X_SCALE),e.posToVal(t+i,l.DEFAULT_X_SCALE)],{timeMultiplier:o=l.TIME_MULTIPLIER}=this.config.chart||{};this.execHooks("onSelect",{from:Math.ceil(s/o),to:Math.ceil(n/o),chart:this}),e.setSelect({width:0,height:0,top:0,left:0},!1)}}createUplotOptions(e=!1){var t,i,s,g,m,_,v,y,b,w,E;const{config:S}=this,x=[];let A=null===(t=this.plugins)||void 0===t?void 0:t.tooltip;if(S.tooltip&&!1!==S.tooltip.show&&(A?A.updateOptions(S.tooltip):A=(0,n.default)(this,S.tooltip),x.push(A.uplot),this.plugins.tooltip=A),e)this.plugins.plotLines&&x.push(this.plugins.plotLines.uplot);else{const e=(0,f.default)(this.config.plotLines||{})(this);this.plugins.plotLines=e,x.push(e.uplot)}Object.entries(S.plugins).forEach((([e,t])=>{const i=t(this);x.push(i.uplot),Object.assign(this.plugins,{[e]:i})}));const T=S.chart,O={width:this.root.clientWidth,height:this.clientHeight,title:null===(i=S.title)||void 0===i?void 0:i.text,plugins:x,focus:{alpha:l.DEFAULT_FOCUS_ALPHA},series:[{id:l.DEFAULT_X_SERIE_NAME,$c:S.timeline,scale:l.DEFAULT_X_SCALE,count:S.timeline.length}],ms:T.timeMultiplier||l.TIME_MULTIPLIER,hooks:S.hooks||{}};if(this.state.isEmptyDataSet=0===S.timeline.length||0===S.series.length||S.series.every((({data:e})=>0===e.length)),O.cursor=O.cursor||{},O.cursor.points=O.cursor.points||{},O.cursor.drag=O.cursor.drag||{dist:(null===(s=T.select)||void 0===s?void 0:s.minWidth)||l.MIN_SELECTION_WIDTH,x:null===(g=O.cursor.y)||void 0===g||g,y:null!==(m=O.cursor.y)&&void 0!==m&&m,setScale:null===(v=null===(_=T.select)||void 0===_?void 0:_.zoom)||void 0===v||v},this.utils.sync&&(O.cursor.sync=O.cursor.sync||{key:this.utils.sync.key}),S.cursor){const e=(0,o.default)(this,S.cursor);this.plugins.cursor=e,x.push(e.uplot)}const L=S.series||[],I=O.series;for(let n=L.length-1;n>=0;n--){const e=(0,r.configureSeries)(this,L[n]||{},n),t=I.push(e);this.state.y2uIdx[e.id||n]=t-1}const D=(0,a.default)(this,S);x.push(D),O.series=I,S.scales&&0!==Object.keys(S.scales).length||(S.scales={x:{},y:{}}),O.scales=O.scales||{},O.scales=(0,u.configureScales)(this,O.scales,S),O.axes=O.axes||[];return O.axes.push(...(0,c.configureAxes)(this,S)),O.hooks=S.hooks||{},O.hooks.draw=O.hooks.draw||[],O.hooks.ready=O.hooks.ready||[],O.hooks.drawClear=O.hooks.drawClear||[],O.hooks.setSelect=O.hooks.setSelect||[],p(O.hooks.draw,this._uHooks.onDraw),p(O.hooks.ready,this._uHooks.ready),p(O.hooks.drawClear,this._uHooks.drawClear),p(O.hooks.setSelect,this._uHooks.setSelect),O.drawOrder=(null===(y=T.appearance)||void 0===y?void 0:y.drawOrder)?null===(b=T.appearance)||void 0===b?void 0:b.drawOrder.filter((e=>e===h.DrawOrderKey.Series||e===h.DrawOrderKey.Axes)):[h.DrawOrderKey.Series,h.DrawOrderKey.Axes],O.legend={show:!1},O.padding=(null===(w=S.chart.size)||void 0===w?void 0:w.padding)||(0,d.getPaddingByAxes)(O),null===(E=this.plugins.legend)||void 0===E||E.preInit(this,this.config.legend,O),O.height=this.clientHeight,this.options=O,O}}},4553:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.calculateFromTo=t.getPosition=void 0;const s=i(46976);function n(e,t,i,n){return e>0&&t===s.DEFAULT_X_SCALE?i:e>0&&t!==s.DEFAULT_X_SCALE||e<=0&&t===s.DEFAULT_X_SCALE?0:n}t.getPosition=n,t.calculateFromTo=function(e,t,i,o){return e.map((e=>{var l,r;if(Math.abs(e)!==1/0){if(t===s.DEFAULT_X_SCALE)return Math.min(Math.max(e,i[0]),i[i.length-1]);{const i=o.scales[t];return Math.min(Math.max(e,null!==(l=i.min)&&void 0!==l?l:e),null!==(r=i.max)&&void 0!==r?r:e)}}const a=n(e,t,o.width,o.height);return o.posToVal(a,t)})).map((e=>o.valToPos(e,t,!0)))}},11213:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.preventMouseEvents=void 0;t.preventMouseEvents=e=>e.preventDefault()},15648:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});const s=i(46976),n=i(48643),o=i(50497),l=i(80152),r={[n.DrawOrderKey.Series]:0,[n.DrawOrderKey.Axes]:1,plotLines:2},a={"012":"draw",102:"draw",201:"drawClear",210:"drawClear",120:"drawAxes","021":"drawSeries"};t.default=function(e){let t=new Map;return function(i){var n;const u=null===(n=i.config.chart.appearance)||void 0===n?void 0:n.drawOrder,c=(u?u.map((e=>r[e])):[0,1,2]).join(""),d=a[c]||"drawClear";function h(e){var i;if(e.id)return e.id;return(null===(i=Array.from(t.entries()).find((([t,i])=>(0,o.deepIsEqual)(i,e))))||void 0===i?void 0:i[0])||(0,o.genId)()}function f(n){const{ctx:o}=n,{height:r,top:a,width:u,left:c}=n.bbox,d=n.data[0];for(const h of t.values()){if(!h.scale)continue;if(e.render){e.render(n,h);continue}o.save(),o.fillStyle=i.utils.colors.parse(h.color);const{scale:t,value:f}=h,p=Array.isArray(f),[g,m]=p?(0,l.calculateFromTo)(f,t,d,n):[n.valToPos(f,t,!0),0];if(p){const e=h.accent;t===s.DEFAULT_X_SCALE?(o.fillRect(g,a,m-g,r),e&&(o.fillStyle=e.color,o.fillRect(g,a-e.space,m-g,e.space))):(o.fillRect(c,g,u,m-g),e&&(o.fillStyle=e.color,o.fillRect(u+c,g,e.space,m-g)))}else{const e=h;if(o.beginPath(),t===s.DEFAULT_X_SCALE){const e=n.data[0][n.data[0].length-1];if(g-n.valToPos(e,t,!0)>0)continue;o.moveTo(g,a),o.lineTo(g,r+a)}else o.moveTo(c,g),o.lineTo(u+c,g);o.lineWidth=e.width||s.DEFAULT_CANVAS_PIXEL_RATIO,o.strokeStyle=e.color||"#000",e.dash&&o.setLineDash(e.dash),o.stroke()}o.restore()}}const p="drawSeries"===d?(e,t)=>{t===e.series.length-1&&f(e)}:f;function g(e){e?t.forEach(((i,s)=>{i.scale===e&&t.delete(s)})):t.clear()}return{get:function(){return Array.from(t.values())},clear:g,remove:function(e){for(const i of e){const e=h(i);t.delete(e)}},add:function(e){for(const i of e){const e=h(i);t.set(e,i)}},update:function(e,i){if(!e||0===e.length)return void g(i);const s=new Set;for(const n of e){const e=h(n);t.set(e,n),s.add(e)}for(const[n,o]of t.entries())i&&o.scale!==i||s.has(n)||t.delete(n)},uplot:{opts:()=>{const e=i.config;t=new Map;for(const i in e.axes)if(e.axes.hasOwnProperty(i)){const s=e.axes[i];if(s.plotLines)for(const e of s.plotLines)t.set(e.id||(0,o.genId)(),{...e,scale:i})}},hooks:{[d]:p}}}}}},16381:(e,t,i)=>{i.r(t),i.d(t,{default:()=>xs});const s="uplot",n="u-hz",o="u-vt",l="u-title",r="u-wrap",a="u-under",u="u-over",c="u-axis",d="u-off",h="u-select",f="u-cursor-x",p="u-cursor-y",g="u-cursor-pt",m="u-legend",_="u-live",v="u-inline",y="u-series",b="u-marker",w="u-label",E="u-value",S="width",x="height",A="top",T="bottom",O="left",L="right",I="#000",D=I+"0",M="mousemove",k="mousedown",C="mouseup",R="mouseenter",F="mouseleave",P="dblclick",U="change",N="dppxchange",$="--",j="undefined"!=typeof window,X=j?document:null,z=j?window:null,H=j?navigator:null;let Y,B;function V(e,t){if(null!=t){let i=e.classList;!i.contains(t)&&i.add(t)}}function W(e,t){let i=e.classList;i.contains(t)&&i.remove(t)}function G(e,t,i){e.style[t]=i+"px"}function K(e,t,i,s){let n=X.createElement(e);return null!=t&&V(n,t),null!=i&&i.insertBefore(n,s),n}function q(e,t){return K("div",e,t)}const Z=new WeakMap;function J(e,t,i,s,n){let o="translate("+t+"px,"+i+"px)";o!=Z.get(e)&&(e.style.transform=o,Z.set(e,o),t<0||i<0||t>s||i>n?V(e,d):W(e,d))}const Q=new WeakMap;function ee(e,t,i){let s=t+i;s!=Q.get(e)&&(Q.set(e,s),e.style.background=t,e.style.borderColor=i)}const te=new WeakMap;function ie(e,t,i,s){let n=t+""+i;n!=te.get(e)&&(te.set(e,n),e.style.height=i+"px",e.style.width=t+"px",e.style.marginLeft=s?-t/2+"px":0,e.style.marginTop=s?-i/2+"px":0)}const se={passive:!0},ne={...se,capture:!0};function oe(e,t,i,s){t.addEventListener(e,i,s?ne:se)}function le(e,t,i,s){t.removeEventListener(e,i,se)}function re(e,t,i,s){let n;i=i||0;let o=(s=s||t.length-1)<=2147483647;for(;s-i>1;)n=o?i+s>>1:Se((i+s)/2),t[n]<e?i=n:s=n;return e-t[i]<=t[s]-e?i:s}function ae(e,t,i,s){for(let n=1==s?t:i;n>=t&&n<=i;n+=s)if(null!=e[n])return n;return-1}function ue(e,t,i,s){let n=Ie(e),o=Ie(t);e==t&&(-1==n?(e*=i,t/=i):(e/=i,t*=i));let l=10==i?De:Me,r=1==o?Ae:Se,a=(1==n?Se:Ae)(l(Ee(e))),u=r(l(Ee(t))),c=Le(i,a),d=Le(i,u);return 10==i&&(a<0&&(c=Ge(c,-a)),u<0&&(d=Ge(d,-u))),s||2==i?(e=c*n,t=d*o):(e=We(e,c),t=Ve(t,d)),[e,t]}function ce(e,t,i,s){let n=ue(e,t,i,s);return 0==e&&(n[0]=0),0==t&&(n[1]=0),n}j&&function e(){let t=devicePixelRatio;Y!=t&&(Y=t,B&&le(U,B,e),B=matchMedia(`(min-resolution: ${Y-.001}dppx) and (max-resolution: ${Y+.001}dppx)`),oe(U,B,e),z.dispatchEvent(new CustomEvent(N)))}();const de=.1,he={mode:3,pad:de},fe={pad:0,soft:null,mode:0},pe={min:fe,max:fe};function ge(e,t,i,s){return ot(i)?_e(e,t,i):(fe.pad=i,fe.soft=s?0:null,fe.mode=s?3:0,_e(e,t,pe))}function me(e,t){return null==e?t:e}function _e(e,t,i){let s=i.min,n=i.max,o=me(s.pad,0),l=me(n.pad,0),r=me(s.hard,-Re),a=me(n.hard,Re),u=me(s.soft,Re),c=me(n.soft,-Re),d=me(s.mode,0),h=me(n.mode,0),f=t-e,p=De(f),g=Oe(Ee(e),Ee(t)),m=De(g),_=Ee(m-p);(f<1e-24||_>10)&&(f=0,0!=e&&0!=t||(f=1e-24,2==d&&u!=Re&&(o=0),2==h&&c!=-Re&&(l=0)));let v=f||g||1e3,y=De(v),b=Le(10,Se(y)),w=Ge(We(e-v*(0==f?0==e?.1:1:o),b/10),24),E=e>=u&&(1==d||3==d&&w<=u||2==d&&w>=u)?u:Re,S=Oe(r,w<E&&e>=E?E:Te(E,w)),x=Ge(Ve(t+v*(0==f?0==t?.1:1:l),b/10),24),A=t<=c&&(1==h||3==h&&x>=c||2==h&&x<=c)?c:-Re,T=Te(a,x>A&&t<=A?A:Oe(A,x));return S==T&&0==S&&(T=100),[S,T]}const ve=new Intl.NumberFormat(j?H.language:"en-US"),ye=e=>ve.format(e),be=Math,we=be.PI,Ee=be.abs,Se=be.floor,xe=be.round,Ae=be.ceil,Te=be.min,Oe=be.max,Le=be.pow,Ie=be.sign,De=be.log10,Me=be.log2,ke=(e,t=1)=>be.sinh(e)*t,Ce=(e,t=1)=>be.asinh(e/t),Re=1/0;function Fe(e){return 1+(0|De((e^e>>31)-(e>>31)))}function Pe(e,t,i){return Te(Oe(e,t),i)}function Ue(e){return"function"==typeof e?e:()=>e}const Ne=e=>e,$e=(e,t)=>t,je=e=>null,Xe=e=>!0,ze=(e,t)=>e==t,He=/\.\d*?(?=9{6,}|0{6,})/gm,Ye=e=>{if(it(e)||Ke.has(e))return e;const t=`${e}`,i=t.match(He);if(null==i)return e;let s=i[0].length-1;if(-1!=t.indexOf("e-")){let[e,i]=t.split("e");return+`${Ye(e)}e${i}`}return Ge(e,s)};function Be(e,t){return Ye(Ge(Ye(e/t))*t)}function Ve(e,t){return Ye(Ae(Ye(e/t))*t)}function We(e,t){return Ye(Se(Ye(e/t))*t)}function Ge(e,t=0){if(it(e))return e;let i=10**t,s=e*i*(1+Number.EPSILON);return xe(s)/i}const Ke=new Map;function qe(e){return((""+e).split(".")[1]||"").length}function Ze(e,t,i,s){let n=[],o=s.map(qe);for(let l=t;l<i;l++){let t=Ee(l),i=Ge(Le(e,l),t);for(let r=0;r<s.length;r++){let a=10==e?+`${s[r]}e${l}`:s[r]*i,u=(l>=0?0:t)+(l>=o[r]?0:o[r]),c=10==e?a:Ge(a,u);n.push(c),Ke.set(c,u)}}return n}const Je={},Qe=[],et=[null,null],tt=Array.isArray,it=Number.isInteger,st=e=>void 0===e;function nt(e){return"string"==typeof e}function ot(e){let t=!1;if(null!=e){let i=e.constructor;t=null==i||i==Object}return t}function lt(e){return null!=e&&"object"==typeof e}const rt=Object.getPrototypeOf(Uint8Array),at="__proto__";function ut(e,t=ot){let i;if(tt(e)){let s=e.find((e=>null!=e));if(tt(s)||t(s)){i=Array(e.length);for(let s=0;s<e.length;s++)i[s]=ut(e[s],t)}else i=e.slice()}else if(e instanceof rt)i=e.slice();else if(t(e)){i={};for(let s in e)s!=at&&(i[s]=ut(e[s],t))}else i=e;return i}function ct(e){let t=arguments;for(let i=1;i<t.length;i++){let s=t[i];for(let t in s)t!=at&&(ot(e[t])?ct(e[t],ut(s[t])):e[t]=ut(s[t]))}return e}function dt(e,t,i){for(let s,n=0,o=-1;n<t.length;n++){let l=t[n];if(l>o){for(s=l-1;s>=0&&null==e[s];)e[s--]=null;for(s=l+1;s<i&&null==e[s];)e[o=s++]=null}}}const ht="undefined"==typeof queueMicrotask?e=>Promise.resolve().then(e):queueMicrotask;const ft=["January","February","March","April","May","June","July","August","September","October","November","December"],pt=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function gt(e){return e.slice(0,3)}const mt=pt.map(gt),_t=ft.map(gt),vt={MMMM:ft,MMM:_t,WWWW:pt,WWW:mt};function yt(e){return(e<10?"0":"")+e}const bt={YYYY:e=>e.getFullYear(),YY:e=>(e.getFullYear()+"").slice(2),MMMM:(e,t)=>t.MMMM[e.getMonth()],MMM:(e,t)=>t.MMM[e.getMonth()],MM:e=>yt(e.getMonth()+1),M:e=>e.getMonth()+1,DD:e=>yt(e.getDate()),D:e=>e.getDate(),WWWW:(e,t)=>t.WWWW[e.getDay()],WWW:(e,t)=>t.WWW[e.getDay()],HH:e=>yt(e.getHours()),H:e=>e.getHours(),h:e=>{let t=e.getHours();return 0==t?12:t>12?t-12:t},AA:e=>e.getHours()>=12?"PM":"AM",aa:e=>e.getHours()>=12?"pm":"am",a:e=>e.getHours()>=12?"p":"a",mm:e=>yt(e.getMinutes()),m:e=>e.getMinutes(),ss:e=>yt(e.getSeconds()),s:e=>e.getSeconds(),fff:e=>{return((t=e.getMilliseconds())<10?"00":t<100?"0":"")+t;var t}};function wt(e,t){t=t||vt;let i,s=[],n=/\{([a-z]+)\}|[^{]+/gi;for(;i=n.exec(e);)s.push("{"==i[0][0]?bt[i[1]]:i[0]);return e=>{let i="";for(let n=0;n<s.length;n++)i+="string"==typeof s[n]?s[n]:s[n](e,t);return i}}const Et=(new Intl.DateTimeFormat).resolvedOptions().timeZone;const St=e=>e%1==0,xt=[1,2,2.5,5],At=Ze(10,-32,0,xt),Tt=Ze(10,0,32,xt),Ot=Tt.filter(St),Lt=At.concat(Tt),It="{YYYY}",Dt="\n"+It,Mt="{M}/{D}",kt="\n"+Mt,Ct=kt+"/{YY}",Rt="{aa}",Ft="{h}:{mm}"+Rt,Pt="\n"+Ft,Ut=":{ss}",Nt=null;function $t(e){let t=1e3*e,i=60*t,s=60*i,n=24*s,o=30*n,l=365*n;return[(1==e?Ze(10,0,3,xt).filter(St):Ze(10,-3,0,xt)).concat([t,5*t,10*t,15*t,30*t,i,5*i,10*i,15*i,30*i,s,2*s,3*s,4*s,6*s,8*s,12*s,n,2*n,3*n,4*n,5*n,6*n,7*n,8*n,9*n,10*n,15*n,o,2*o,3*o,4*o,6*o,l,2*l,5*l,10*l,25*l,50*l,100*l]),[[l,It,Nt,Nt,Nt,Nt,Nt,Nt,1],[28*n,"{MMM}",Dt,Nt,Nt,Nt,Nt,Nt,1],[n,Mt,Dt,Nt,Nt,Nt,Nt,Nt,1],[s,"{h}"+Rt,Ct,Nt,kt,Nt,Nt,Nt,1],[i,Ft,Ct,Nt,kt,Nt,Nt,Nt,1],[t,Ut,Ct+" "+Ft,Nt,kt+" "+Ft,Nt,Pt,Nt,1],[e,Ut+".{fff}",Ct+" "+Ft,Nt,kt+" "+Ft,Nt,Pt,Nt,1]],function(t){return(r,a,u,c,d,h)=>{let f=[],p=d>=l,g=d>=o&&d<l,m=t(u),_=Ge(m*e,3),v=Gt(m.getFullYear(),p?0:m.getMonth(),g||p?1:m.getDate()),y=Ge(v*e,3);if(g||p){let i=g?d/o:0,s=p?d/l:0,n=_==y?_:Ge(Gt(v.getFullYear()+s,v.getMonth()+i,1)*e,3),r=new Date(xe(n/e)),a=r.getFullYear(),u=r.getMonth();for(let o=0;n<=c;o++){let l=Gt(a+s*o,u+i*o,1),r=l-t(Ge(l*e,3));n=Ge((+l+r)*e,3),n<=c&&f.push(n)}}else{let o=d>=n?n:d,l=y+(Se(u)-Se(_))+Ve(_-y,o);f.push(l);let p=t(l),g=p.getHours()+p.getMinutes()/i+p.getSeconds()/s,m=d/s,v=h/r.axes[a]._space;for(;l=Ge(l+d,1==e?0:3),!(l>c);)if(m>1){let e=Se(Ge(g+m,6))%24,i=t(l).getHours()-e;i>1&&(i=-1),l-=i*s,g=(g+m)%24,Ge((l-f[f.length-1])/d,3)*v>=.7&&f.push(l)}else f.push(l)}return f}}]}const[jt,Xt,zt]=$t(1),[Ht,Yt,Bt]=$t(.001);function Vt(e,t){return e.map((e=>e.map(((i,s)=>0==s||8==s||null==i?i:t(1==s||0==e[8]?i:e[1]+i)))))}function Wt(e,t){return(i,s,n,o,l)=>{let r,a,u,c,d,h,f=t.find((e=>l>=e[0]))||t[t.length-1];return s.map((t=>{let i=e(t),s=i.getFullYear(),n=i.getMonth(),o=i.getDate(),l=i.getHours(),p=i.getMinutes(),g=i.getSeconds(),m=s!=r&&f[2]||n!=a&&f[3]||o!=u&&f[4]||l!=c&&f[5]||p!=d&&f[6]||g!=h&&f[7]||f[1];return r=s,a=n,u=o,c=l,d=p,h=g,m(i)}))}}function Gt(e,t,i){return new Date(e,t,i)}function Kt(e,t){return t(e)}Ze(2,-53,53,[1]);const qt="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function Zt(e,t){return(i,s,n,o)=>null==o?$:t(e(s))}const Jt={show:!0,live:!0,isolate:!1,mount:()=>{},markers:{show:!0,width:2,stroke:function(e,t){let i=e.series[t];return i.width?i.stroke(e,t):i.points.width?i.points.stroke(e,t):null},fill:function(e,t){return e.series[t].fill(e,t)},dash:"solid"},idx:null,idxs:null,values:[]};const Qt=[0,0];function ei(e,t,i,s=!0){return e=>{0==e.button&&(!s||e.target==t)&&i(e)}}function ti(e,t,i,s=!0){return e=>{(!s||e.target==t)&&i(e)}}const ii={show:!0,x:!0,y:!0,lock:!1,move:function(e,t,i){return Qt[0]=t,Qt[1]=i,Qt},points:{one:!1,show:function(e,t){let i=e.cursor.points,s=q(),n=i.size(e,t);G(s,S,n),G(s,x,n);let o=n/-2;G(s,"marginLeft",o),G(s,"marginTop",o);let l=i.width(e,t,n);return l&&G(s,"borderWidth",l),s},size:function(e,t){return e.series[t].points.size},width:0,stroke:function(e,t){let i=e.series[t].points;return i._stroke||i._fill},fill:function(e,t){let i=e.series[t].points;return i._fill||i._stroke}},bind:{mousedown:ei,mouseup:ei,click:ei,dblclick:ei,mousemove:ti,mouseleave:ti,mouseenter:ti},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(e,t)=>{t.stopPropagation(),t.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(e,t,i,s,n)=>s-n,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},si={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},ni=ct({},si,{filter:$e}),oi=ct({},ni,{size:10}),li=ct({},si,{show:!1}),ri='12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',ai="bold "+ri,ui={show:!0,scale:"x",stroke:I,space:50,gap:5,size:50,labelGap:0,labelSize:30,labelFont:ai,side:2,grid:ni,ticks:oi,border:li,font:ri,lineGap:1.5,rotate:0},ci="Value",di="Time",hi={show:!0,scale:"x",auto:!1,sorted:1,min:Re,max:-Re,idxs:[]};function fi(e,t,i,s,n){return t.map((e=>null==e?"":ye(e)))}function pi(e,t,i,s,n,o,l){let r=[],a=Ke.get(n)||0;for(let u=i=l?i:Ge(Ve(i,n),a);u<=s;u=Ge(u+n,a))r.push(Object.is(u,-0)?0:u);return r}function gi(e,t,i,s,n,o,l){const r=[],a=e.scales[e.axes[t].scale].log,u=Se((10==a?De:Me)(i));n=Le(a,u),10==a&&(n=Lt[re(n,Lt)]);let c=i,d=n*a;10==a&&(d=Lt[re(d,Lt)]);do{r.push(c),c+=n,10!=a||Ke.has(c)||(c=Ge(c,Ke.get(n))),c>=d&&(d=(n=c)*a,10==a&&(d=Lt[re(d,Lt)]))}while(c<=s);return r}function mi(e,t,i,s,n,o,l){let r=e.scales[e.axes[t].scale].asinh,a=s>r?gi(e,t,Oe(r,i),s,n):[r],u=s>=0&&i<=0?[0]:[];return(i<-r?gi(e,t,Oe(r,-s),-i,n):[r]).reverse().map((e=>-e)).concat(u,a)}const _i=/./,vi=/[12357]/,yi=/[125]/,bi=/1/,wi=(e,t,i,s)=>e.map(((e,n)=>4==t&&0==e||n%s==0&&i.test(e.toExponential()[e<0?1:0])?e:null));function Ei(e,t,i,s,n){let o=e.axes[i],l=o.scale,r=e.scales[l],a=e.valToPos,u=o._space,c=a(10,l),d=a(9,l)-c>=u?_i:a(7,l)-c>=u?vi:a(5,l)-c>=u?yi:bi;if(d==bi){let e=Ee(a(1,l)-c);if(e<u)return wi(t.slice().reverse(),r.distr,d,Ae(u/e)).reverse()}return wi(t,r.distr,d,1)}function Si(e,t,i,s,n){let o=e.axes[i],l=o.scale,r=o._space,a=e.valToPos,u=Ee(a(1,l)-a(2,l));return u<r?wi(t.slice().reverse(),3,_i,Ae(r/u)).reverse():t}function xi(e,t,i,s){return null==s?$:null==t?"":ye(t)}const Ai={show:!0,scale:"y",stroke:I,space:30,gap:5,size:50,labelGap:0,labelSize:30,labelFont:ai,side:3,grid:ni,ticks:oi,border:li,font:ri,lineGap:1.5,rotate:0};const Ti={scale:null,auto:!0,sorted:0,min:Re,max:-Re},Oi=(e,t,i,s,n)=>n,Li={show:!0,auto:!0,sorted:0,gaps:Oi,alpha:1,facets:[ct({},Ti,{scale:"x"}),ct({},Ti,{scale:"y"})]},Ii={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:Oi,alpha:1,points:{show:function(e,t){let{scale:i,idxs:s}=e.series[0],n=e._data[0],o=e.valToPos(n[s[0]],i,!0),l=e.valToPos(n[s[1]],i,!0),r=Ee(l-o)/(e.series[t].points.space*Y);return s[1]-s[0]<=r},filter:null},values:null,min:Re,max:-Re,idxs:[],path:null,clip:null};function Di(e,t,i,s,n){return i/10}const Mi={time:!0,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},ki=ct({},Mi,{time:!1,ori:1}),Ci={};function Ri(e,t){let i=Ci[e];return i||(i={key:e,plots:[],sub(e){i.plots.push(e)},unsub(e){i.plots=i.plots.filter((t=>t!=e))},pub(e,t,s,n,o,l,r){for(let a=0;a<i.plots.length;a++)i.plots[a]!=t&&i.plots[a].pub(e,t,s,n,o,l,r)}},null!=e&&(Ci[e]=i)),i}const Fi=1,Pi=2;function Ui(e,t,i){const s=e.mode,n=e.series[t],o=2==s?e._data[t]:e._data,l=e.scales,r=e.bbox;let a=o[0],u=2==s?o[1]:o[t],c=2==s?l[n.facets[0].scale]:l[e.series[0].scale],d=2==s?l[n.facets[1].scale]:l[n.scale],h=r.left,f=r.top,p=r.width,g=r.height,m=e.valToPosH,_=e.valToPosV;return 0==c.ori?i(n,a,u,c,d,m,_,h,f,p,g,Bi,Wi,Ki,Zi,Qi):i(n,a,u,c,d,_,m,f,h,g,p,Vi,Gi,qi,Ji,es)}function Ni(e,t){let i=0,s=0,n=me(e.bands,Qe);for(let o=0;o<n.length;o++){let e=n[o];e.series[0]==t?i=e.dir:e.series[1]==t&&(1==e.dir?s|=1:s|=2)}return[i,1==s?-1:2==s?1:3==s?2:0]}function $i(e,t,i,s,n){let o=e.mode,l=e.series[t],r=2==o?l.facets[1].scale:l.scale,a=e.scales[r];return-1==n?a.min:1==n?a.max:3==a.distr?1==a.dir?a.min:a.max:0}function ji(e,t,i,s,n,o){return Ui(e,t,((e,t,l,r,a,u,c,d,h,f,p)=>{let g=e.pxRound;const m=r.dir*(0==r.ori?1:-1),_=0==r.ori?Wi:Gi;let v,y;1==m?(v=i,y=s):(v=s,y=i);let b=g(u(t[v],r,f,d)),w=g(c(l[v],a,p,h)),E=g(u(t[y],r,f,d)),S=g(c(1==o?a.max:a.min,a,p,h)),x=new Path2D(n);return _(x,E,S),_(x,b,S),_(x,b,w),x}))}function Xi(e,t,i,s,n,o){let l=null;if(e.length>0){l=new Path2D;const r=0==t?Ki:qi;let a=i;for(let t=0;t<e.length;t++){let i=e[t];if(i[1]>i[0]){let e=i[0]-a;e>0&&r(l,a,s,e,s+o),a=i[1]}}let u=i+n-a,c=10;u>0&&r(l,a,s-c/2,u,s+o+c)}return l}function zi(e,t,i,s,n,o,l){let r=[],a=e.length;for(let u=1==n?i:s;u>=i&&u<=s;u+=n){if(null===t[u]){let c=u,d=u;if(1==n)for(;++u<=s&&null===t[u];)d=u;else for(;--u>=i&&null===t[u];)d=u;let h=o(e[c]),f=d==c?h:o(e[d]),p=c-n;h=l<=0&&p>=0&&p<a?o(e[p]):h;let g=d+n;f=l>=0&&g>=0&&g<a?o(e[g]):f,f>=h&&r.push([h,f])}}return r}function Hi(e){return 0==e?Ne:1==e?xe:t=>Be(t,e)}function Yi(e){let t=0==e?Bi:Vi,i=0==e?(e,t,i,s,n,o)=>{e.arcTo(t,i,s,n,o)}:(e,t,i,s,n,o)=>{e.arcTo(i,t,n,s,o)},s=0==e?(e,t,i,s,n)=>{e.rect(t,i,s,n)}:(e,t,i,s,n)=>{e.rect(i,t,n,s)};return(e,n,o,l,r,a=0,u=0)=>{0==a&&0==u?s(e,n,o,l,r):(a=Te(a,l/2,r/2),u=Te(u,l/2,r/2),t(e,n+a,o),i(e,n+l,o,n+l,o+r,a),i(e,n+l,o+r,n,o+r,u),i(e,n,o+r,n,o,u),i(e,n,o,n+l,o,a),e.closePath())}}const Bi=(e,t,i)=>{e.moveTo(t,i)},Vi=(e,t,i)=>{e.moveTo(i,t)},Wi=(e,t,i)=>{e.lineTo(t,i)},Gi=(e,t,i)=>{e.lineTo(i,t)},Ki=Yi(0),qi=Yi(1),Zi=(e,t,i,s,n,o)=>{e.arc(t,i,s,n,o)},Ji=(e,t,i,s,n,o)=>{e.arc(i,t,s,n,o)},Qi=(e,t,i,s,n,o,l)=>{e.bezierCurveTo(t,i,s,n,o,l)},es=(e,t,i,s,n,o,l)=>{e.bezierCurveTo(i,t,n,s,l,o)};function ts(e){return(e,t,i,s,n)=>Ui(e,t,((t,o,l,r,a,u,c,d,h,f,p)=>{let g,m,{pxRound:_,points:v}=t;0==r.ori?(g=Bi,m=Zi):(g=Vi,m=Ji);const y=Ge(v.width*Y,3);let b=(v.size-v.width)/2*Y,w=Ge(2*b,3),E=new Path2D,S=new Path2D,{left:x,top:A,width:T,height:O}=e.bbox;Ki(S,x-w,A-w,T+2*w,O+2*w);const L=e=>{if(null!=l[e]){let t=_(u(o[e],r,f,d)),i=_(c(l[e],a,p,h));g(E,t+b,i),m(E,t,i,b,0,2*we)}};if(n)n.forEach(L);else for(let e=i;e<=s;e++)L(e);return{stroke:y>0?E:null,fill:E,clip:S,flags:Fi|Pi}}))}function is(e){return(t,i,s,n,o,l)=>{s!=n&&(o!=s&&l!=s&&e(t,i,s),o!=n&&l!=n&&e(t,i,n),e(t,i,l))}}const ss=is(Wi),ns=is(Gi);function os(e){const t=me(e?.alignGaps,0);return(e,i,s,n)=>Ui(e,i,((o,l,r,a,u,c,d,h,f,p,g)=>{let m,_,v=o.pxRound,y=e=>v(c(e,a,p,h)),b=e=>v(d(e,u,g,f));0==a.ori?(m=Wi,_=ss):(m=Gi,_=ns);const w=a.dir*(0==a.ori?1:-1),E={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Fi},S=E.stroke;let x,A,T,O=Re,L=-Re,I=y(l[1==w?s:n]),D=ae(r,s,n,1*w),M=ae(r,s,n,-1*w),k=y(l[D]),C=y(l[M]),R=!1;for(let e=1==w?s:n;e>=s&&e<=n;e+=w){let t=y(l[e]),i=r[e];t==I?null!=i?(A=b(i),O==Re&&(m(S,t,A),x=A),O=Te(A,O),L=Oe(A,L)):null===i&&(R=!0):(O!=Re&&(_(S,I,O,L,x,A),T=I),null!=i?(A=b(i),m(S,t,A),O=L=x=A):(O=Re,L=-Re,null===i&&(R=!0)),I=t)}O!=Re&&O!=L&&T!=I&&_(S,I,O,L,x,A);let[F,P]=Ni(e,i);if(null!=o.fill||0!=F){let t=E.fill=new Path2D(S),s=b(o.fillTo(e,i,o.min,o.max,F));m(t,C,s),m(t,k,s)}if(!o.spanGaps){let u=[];R&&u.push(...zi(l,r,s,n,w,y,t)),E.gaps=u=o.gaps(e,i,s,n,u),E.clip=Xi(u,a.ori,h,f,p,g)}return 0!=P&&(E.band=2==P?[ji(e,i,s,n,S,-1),ji(e,i,s,n,S,1)]:ji(e,i,s,n,S,P)),E}))}function ls(e,t,i,s,n,o,l=Re){if(e.length>1){let r=null;for(let a=0,u=1/0;a<e.length;a++)if(void 0!==t[a]){if(null!=r){let t=Ee(e[a]-e[r]);t<u&&(u=t,l=Ee(i(e[a],s,n,o)-i(e[r],s,n,o)))}r=a}}return l}function rs(e,t,i,s,n,o){const l=e.length;if(l<2)return null;const r=new Path2D;if(i(r,e[0],t[0]),2==l)s(r,e[1],t[1]);else{let i=Array(l),s=Array(l-1),o=Array(l-1),a=Array(l-1);for(let n=0;n<l-1;n++)o[n]=t[n+1]-t[n],a[n]=e[n+1]-e[n],s[n]=o[n]/a[n];i[0]=s[0];for(let e=1;e<l-1;e++)0===s[e]||0===s[e-1]||s[e-1]>0!==s[e]>0?i[e]=0:(i[e]=3*(a[e-1]+a[e])/((2*a[e]+a[e-1])/s[e-1]+(a[e]+2*a[e-1])/s[e]),isFinite(i[e])||(i[e]=0));i[l-1]=s[l-2];for(let u=0;u<l-1;u++)n(r,e[u]+a[u]/3,t[u]+i[u]*a[u]/3,e[u+1]-a[u]/3,t[u+1]-i[u+1]*a[u]/3,e[u+1],t[u+1])}return r}const as=new Set;function us(){for(let e of as)e.syncRect(!0)}j&&(oe("resize",z,us),oe("scroll",z,us,!0),oe(N,z,(()=>{xs.pxRatio=Y})));const cs=os(),ds=ts();function hs(e,t,i,s){return(s?[e[0],e[1]].concat(e.slice(2)):[e[0]].concat(e.slice(1))).map(((e,s)=>fs(e,s,t,i)))}function fs(e,t,i,s){return ct({},0==t?i:s,e)}function ps(e,t,i){return null==t?et:[t,i]}const gs=ps;function ms(e,t,i){return null==t?et:ge(t,i,de,!0)}function _s(e,t,i,s){return null==t?et:ue(t,i,e.scales[s].log,!1)}const vs=_s;function ys(e,t,i,s){return null==t?et:ce(t,i,e.scales[s].log,!1)}const bs=ys;function ws(e,t,i,s,n){let o=Oe(Fe(e),Fe(t)),l=t-e,r=re(n/s*l,i);do{let e=i[r],t=s*e/l;if(t>=n&&o+(e<5?Ke.get(e):0)<=17)return[e,t]}while(++r<i.length);return[0,0]}function Es(e){let t,i;return[e=e.replace(/(\d+)px/,((e,s)=>(t=xe((i=+s)*Y))+"px")),t,i]}function Ss(e){e.show&&[e.font,e.labelFont].forEach((e=>{let t=Ge(e[2]*Y,1);e[0]=e[0].replace(/[0-9.]+px/,t+"px"),e[1]=t}))}function xs(e,t,i){const I={mode:me(e.mode,1)},U=I.mode;function j(e,t){return((3==t.distr?De(e>0?e:t.clamp(I,e,t.min,t.max,t.key)):4==t.distr?Ce(e,t.asinh):100==t.distr?t.fwd(e):e)-t._min)/(t._max-t._min)}function H(e,t,i,s){let n=j(e,t);return s+i*(-1==t.dir?1-n:n)}function B(e,t,i,s){let n=j(e,t);return s+i*(-1==t.dir?n:1-n)}function Z(e,t,i,s){return 0==t.ori?H(e,t,i,s):B(e,t,i,s)}I.valToPosH=H,I.valToPosV=B;let Q=!1;I.status=0;const te=I.root=q(s);if(null!=e.id&&(te.id=e.id),V(te,e.class),e.title){q(l,te).textContent=e.title}const se=K("canvas"),ne=I.ctx=se.getContext("2d"),ae=q(r,te);oe("click",ae,(e=>{if(e.target===pe){(an!=nn||un!=on)&&vn.click(I,e)}}),!0);const fe=I.under=q(a,ae);ae.appendChild(se);const pe=I.over=q(u,ae),_e=+me((e=ut(e)).pxAlign,1),ve=Hi(_e);(e.plugins||[]).forEach((t=>{t.opts&&(e=t.opts(I,e)||e)}));const ye=e.ms||.001,be=I.series=1==U?hs(e.series||[],hi,Ii,!1):(Se=e.series||[null],Ie=Li,Se.map(((e,t)=>0==t?{}:ct({},Ie,e))));var Se,Ie;const Me=I.axes=hs(e.axes||[],ui,Ai,!0),Fe=I.scales={},Ne=I.bands=e.bands||[];Ne.forEach((e=>{e.fill=Ue(e.fill||null),e.dir=me(e.dir,-1)}));const He=2==U?be[1].facets[0].scale:be[0].scale,Ye={axes:function(){for(let e=0;e<Me.length;e++){let t=Me[e];if(!t.show||!t._show)continue;let i,s,n=t.side,o=n%2,l=t.stroke(I,e),r=0==n||3==n?-1:1;if(t.label){let e=t.labelGap*r,a=xe((t._lpos+e)*Y);Ns(t.labelFont[0],l,"center",2==n?A:T),ne.save(),1==o?(i=s=0,ne.translate(a,xe(_i+yi/2)),ne.rotate((3==n?-we:we)/2)):(i=xe(ai+vi/2),s=a),ne.fillText(t.label,i,s),ne.restore()}let[a,u]=t._found;if(0==u)continue;let c=Fe[t.scale],d=0==o?vi:yi,h=0==o?ai:_i,f=xe(t.gap*Y),p=t._splits,g=2==c.distr?p.map((e=>Cs[e])):p,m=2==c.distr?Cs[p[1]]-Cs[p[0]]:a,_=t.ticks,v=t.border,y=_.show?xe(_.size*Y):0,b=t._rotate*-we/180,w=ve(t._pos*Y),E=w+(y+f)*r;s=0==o?E:0,i=1==o?E:0,Ns(t.font[0],l,1==t.align?O:2==t.align?L:b>0?O:b<0?L:0==o?"center":3==n?L:O,b||1==o?"middle":2==n?A:T);let S=t.font[1]*t.lineGap,x=p.map((e=>ve(Z(e,c,d,h)))),D=t._values;for(let e=0;e<D.length;e++){let t=D[e];if(null!=t){0==o?i=x[e]:s=x[e],t=""+t;let n=-1==t.indexOf("\n")?[t]:t.split(/\n/gm);for(let e=0;e<n.length;e++){let t=n[e];b?(ne.save(),ne.translate(i,s+e*S),ne.rotate(b),ne.fillText(t,0,0),ne.restore()):ne.fillText(t,i,s+e*S)}}}_.show&&Ws(x,_.filter(I,g,e,u,m),o,n,w,y,Ge(_.width*Y,3),_.stroke(I,e),_.dash,_.cap);let M=t.grid;M.show&&Ws(x,M.filter(I,g,e,u,m),o,0==o?2:1,0==o?_i:ai,0==o?yi:vi,Ge(M.width*Y,3),M.stroke(I,e),M.dash,M.cap),v.show&&Ws([w],[1],0==o?1:0,0==o?1:2,1==o?_i:ai,1==o?yi:vi,Ge(v.width*Y,3),v.stroke(I,e),v.dash,v.cap)}eo("drawAxes")},series:function(){ns>0&&(be.forEach(((e,i)=>{if(i>0&&e.show&&(Xs(i,!1),Xs(i,!0),null==e._paths)){ks!=e.alpha&&(ne.globalAlpha=ks=e.alpha);let s=2==U?[0,t[i][0].length-1]:function(e){let t=Pe(os-1,0,ns-1),i=Pe(ls+1,0,ns-1);for(;null==e[t]&&t>0;)t--;for(;null==e[i]&&i<ns-1;)i++;return[t,i]}(t[i]);e._paths=e.paths(I,i,s[0],s[1]),1!=ks&&(ne.globalAlpha=ks=1)}})),be.forEach(((e,t)=>{if(t>0&&e.show){ks!=e.alpha&&(ne.globalAlpha=ks=e.alpha),null!=e._paths&&zs(t,!1);{let i=null!=e._paths?e._paths.gaps:null,s=e.points.show(I,t,os,ls,i),n=e.points.filter(I,t,s,i);(s||n)&&(e.points._paths=e.points.paths(I,t,os,ls,n),zs(t,!0))}1!=ks&&(ne.globalAlpha=ks=1),eo("drawSeries",t)}})))}},Ve=(e.drawOrder||["axes","series"]).map((e=>Ye[e]));function We(t){let i=Fe[t];if(null==i){let s=(e.scales||Je)[t]||Je;if(null!=s.from)We(s.from),Fe[t]=ct({},Fe[s.from],s,{key:t});else{i=Fe[t]=ct({},t==He?Mi:ki,s),i.key=t;let e=i.time,n=i.range,o=tt(n);if((t!=He||2==U&&!e)&&(!o||null!=n[0]&&null!=n[1]||(n={min:null==n[0]?he:{mode:1,hard:n[0],soft:n[0]},max:null==n[1]?he:{mode:1,hard:n[1],soft:n[1]}},o=!1),!o&&ot(n))){let e=n;n=(t,i,s)=>null==i?et:ge(i,s,e)}i.range=Ue(n||(e?gs:t==He?3==i.distr?vs:4==i.distr?bs:ps:3==i.distr?_s:4==i.distr?ys:ms)),i.auto=Ue(!o&&i.auto),i.clamp=Ue(i.clamp||Di),i._min=i._max=null}}}We("x"),We("y"),1==U&&be.forEach((e=>{We(e.scale)})),Me.forEach((e=>{We(e.scale)}));for(let s in e.scales)We(s);const Ze=Fe[He],it=Ze.distr;let rt,at;0==Ze.ori?(V(te,n),rt=H,at=B):(V(te,o),rt=B,at=H);const dt={};for(let s in Fe){let e=Fe[s];null==e.min&&null==e.max||(dt[s]={min:e.min,max:e.max},e.min=e.max=null)}const ft=e.tzDate||(e=>new Date(xe(e/ye))),pt=e.fmtDate||wt,gt=1==ye?zt(ft):Bt(ft),mt=Wt(ft,Vt(1==ye?Xt:Yt,pt)),_t=Zt(ft,Kt(qt,pt)),vt=[],yt=I.legend=ct({},Jt,e.legend),bt=yt.show,Et=yt.markers;let St,xt,At;yt.idxs=vt,Et.width=Ue(Et.width),Et.dash=Ue(Et.dash),Et.stroke=Ue(Et.stroke),Et.fill=Ue(Et.fill);let Tt,It=[],Dt=[],Mt=!1,kt={};if(yt.live){const e=be[1]?be[1].values:null;Mt=null!=e,Tt=Mt?e(I,1,0):{_:0};for(let t in Tt)kt[t]=$}if(bt)if(St=K("table",m,te),At=K("tbody",null,St),yt.mount(I,St),Mt){xt=K("thead",null,St,At);let e=K("tr",null,xt);for(var Ct in K("th",null,e),Tt)K("th",w,e).textContent=Ct}else V(St,v),yt.live&&V(St,_);const Rt={show:!0},Ft={show:!1};const Pt=new Map;function Ut(e,t,i,s=!0){const n=Pt.get(t)||{},o=zi.bind[e](I,t,i,s);o&&(oe(e,t,n[e]=o),Pt.set(t,n))}function Nt(e,t,i){const s=Pt.get(t)||{};for(let n in s)null!=e&&n!=e||(le(n,t,s[n]),delete s[n]);null==e&&Pt.delete(t)}let $t=0,Gt=0,Qt=0,ei=0,ti=0,si=0,ni=ti,oi=si,li=Qt,ri=ei,ai=0,_i=0,vi=0,yi=0;I.bbox={};let bi=!1,wi=!1,Ti=!1,Oi=!1,Ci=!1,Ui=!1;function Ni(e,t,i){(i||e!=I.width||t!=I.height)&&ji(e,t),qs(!1),Ti=!0,wi=!0,pn()}function ji(e,t){I.width=$t=Qt=e,I.height=Gt=ei=t,ti=si=0,function(){let e=!1,t=!1,i=!1,s=!1;Me.forEach(((n,o)=>{if(n.show&&n._show){let{side:o,_size:l}=n,r=o%2,a=l+(null!=n.label?n.labelSize:0);a>0&&(r?(Qt-=a,3==o?(ti+=a,s=!0):i=!0):(ei-=a,0==o?(si+=a,e=!0):t=!0))}})),es[0]=e,es[1]=i,es[2]=t,es[3]=s,Qt-=ss[1]+ss[3],ti+=ss[3],ei-=ss[2]+ss[0],si+=ss[0]}(),function(){let e=ti+Qt,t=si+ei,i=ti,s=si;function n(n,o){switch(n){case 1:return e+=o,e-o;case 2:return t+=o,t-o;case 3:return i-=o,i+o;case 0:return s-=o,s+o}}Me.forEach(((e,t)=>{if(e.show&&e._show){let t=e.side;e._pos=n(t,e._size),null!=e.label&&(e._lpos=n(t,e.labelSize))}}))}();let i=I.bbox;ai=i.left=Be(ti*Y,.5),_i=i.top=Be(si*Y,.5),vi=i.width=Be(Qt*Y,.5),yi=i.height=Be(ei*Y,.5)}const Xi=3;I.setSize=function({width:e,height:t}){Ni(e,t)};const zi=I.cursor=ct({},ii,{drag:{y:2==U}},e.cursor);if(null==zi.dataIdx){let e=zi.hover,i=e.skip=new Set(e.skip??[]);i.add(void 0);let s=e.prox=Ue(e.prox),n=e.bias??=0;zi.dataIdx=(e,o,l,r)=>{if(0==o)return l;let a=l,u=s(e,o,l,r)??Re,c=u>=0&&u<Re,d=0==Ze.ori?Qt:ei,h=zi.left,f=t[0],p=t[o];if(i.has(p[l])){a=null;let e,t=null,s=null;if(0==n||-1==n)for(e=l;null==t&&e-- >0;)i.has(p[e])||(t=e);if(0==n||1==n)for(e=l;null==s&&e++<p.length;)i.has(p[e])||(s=e);if(null!=t||null!=s)if(c){let e=h-(null==t?-1/0:rt(f[t],Ze,d,0)),i=(null==s?1/0:rt(f[s],Ze,d,0))-h;e<=i?e<=u&&(a=t):i<=u&&(a=s)}else a=null==s?t:null==t?s:l-t<=s-l?t:s}else if(c){Ee(h-rt(f[l],Ze,d,0))>u&&(a=null)}return a}}const Yi=e=>{zi.event=e};zi.idxs=vt,zi._lock=!1;let Bi=zi.points;Bi.show=Ue(Bi.show),Bi.size=Ue(Bi.size),Bi.stroke=Ue(Bi.stroke),Bi.width=Ue(Bi.width),Bi.fill=Ue(Bi.fill);const Vi=I.focus=ct({},e.focus||{alpha:.3},zi.focus),Wi=Vi.prox>=0,Gi=Wi&&Bi.one;let Ki=[],qi=[],Zi=[];function Ji(e,t){let i=Bi.show(I,t);if(i)return V(i,g),V(i,e.class),J(i,-10,-10,Qt,ei),pe.insertBefore(i,Ki[t]),i}function Qi(e,t){if(1==U||t>0){let t=1==U&&Fe[e.scale].time,i=e.value;e.value=t?nt(i)?Zt(ft,Kt(i,pt)):i||_t:i||xi,e.label=e.label||(t?di:ci)}if(Gi||t>0){e.width=null==e.width?1:e.width,e.paths=e.paths||cs||je,e.fillTo=Ue(e.fillTo||$i),e.pxAlign=+me(e.pxAlign,_e),e.pxRound=Hi(e.pxAlign),e.stroke=Ue(e.stroke||null),e.fill=Ue(e.fill||null),e._stroke=e._fill=e._paths=e._focus=null;let t=Ge((3+2*(Oe(1,e.width)||1))*1,3),i=e.points=ct({},{size:t,width:Oe(1,.2*t),stroke:e.stroke,space:2*t,paths:ds,_stroke:null,_fill:null},e.points);i.show=Ue(i.show),i.filter=Ue(i.filter),i.fill=Ue(i.fill),i.stroke=Ue(i.stroke),i.paths=Ue(i.paths),i.pxAlign=e.pxAlign}if(bt){let i=function(e,t){if(0==t&&(Mt||!yt.live||2==U))return et;let i=[],s=K("tr",y,At,At.childNodes[t]);V(s,e.class),e.show||V(s,d);let n=K("th",null,s);if(Et.show){let e=q(b,n);if(t>0){let i=Et.width(I,t);i&&(e.style.border=i+"px "+Et.dash(I,t)+" "+Et.stroke(I,t)),e.style.background=Et.fill(I,t)}}let o=q(w,n);for(var l in o.textContent=e.label,t>0&&(Et.show||(o.style.color=e.width>0?Et.stroke(I,t):Et.fill(I,t)),Ut("click",n,(t=>{if(zi._lock)return;Yi(t);let i=be.indexOf(e);if((t.ctrlKey||t.metaKey)!=yt.isolate){let e=be.some(((e,t)=>t>0&&t!=i&&e.show));be.forEach(((t,s)=>{s>0&&An(s,e?s==i?Rt:Ft:Rt,!0,io.setSeries)}))}else An(i,{show:!e.show},!0,io.setSeries)}),!1),Wi&&Ut(R,n,(t=>{zi._lock||(Yi(t),An(be.indexOf(e),In,!0,io.setSeries))}),!1)),Tt){let e=K("td",E,s);e.textContent="--",i.push(e)}return[s,i]}(e,t);It.splice(t,0,i[0]),Dt.splice(t,0,i[1]),yt.values.push(null)}if(zi.show){vt.splice(t,0,null);let i=null;Gi?0==t&&(i=Ji(e,t)):t>0&&(i=Ji(e,t)),Ki.splice(t,0,i),qi.splice(t,0,0),Zi.splice(t,0,0)}eo("addSeries",t)}I.addSeries=function(e,t){t=null==t?be.length:t,e=1==U?fs(e,t,hi,Ii):fs(e,t,{},Li),be.splice(t,0,e),Qi(be[t],t)},I.delSeries=function(e){if(be.splice(e,1),bt){yt.values.splice(e,1),Dt.splice(e,1);let t=It.splice(e,1)[0];Nt(null,t.firstChild),t.remove()}zi.show&&(vt.splice(e,1),Ki.splice(e,1)[0].remove(),qi.splice(e,1),Zi.splice(e,1)),eo("delSeries",e)};const es=[!1,!1,!1,!1];function ts(e,t,i,s){let[n,o,l,r]=i,a=t%2,u=0;return 0==a&&(r||o)&&(u=0==t&&!n||2==t&&!l?xe(ui.size/3):0),1==a&&(n||l)&&(u=1==t&&!o||3==t&&!r?xe(Ai.size/2):0),u}const is=I.padding=(e.padding||[ts,ts,ts,ts]).map((e=>Ue(me(e,ts)))),ss=I._padding=is.map(((e,t)=>e(I,t,es,0)));let ns,os=null,ls=null;const rs=1==U?be[0].idxs:null;let us,xs,As,Ts,Os,Ls,Is,Ds,Ms,ks,Cs=null,Rs=!1;function Fs(e,i){if(t=null==e?[]:e,I.data=I._data=t,2==U){ns=0;for(let e=1;e<be.length;e++)ns+=t[e][0].length}else{0==t.length&&(I.data=I._data=t=[[]]),Cs=t[0],ns=Cs.length;let e=t;if(2==it){e=t.slice();let i=e[0]=Array(ns);for(let e=0;e<ns;e++)i[e]=e}I._data=t=e}if(qs(!0),eo("setData"),2==it&&(Ti=!0),!1!==i){let e=Ze;e.auto(I,Rs)?Ps():xn(He,e.min,e.max),Oi=Oi||zi.left>=0,Ui=!0,pn()}}function Ps(){let e,i;Rs=!0,1==U&&(ns>0?(os=rs[0]=0,ls=rs[1]=ns-1,e=t[0][os],i=t[0][ls],2==it?(e=os,i=ls):e==i&&(3==it?[e,i]=ue(e,e,Ze.log,!1):4==it?[e,i]=ce(e,e,Ze.log,!1):Ze.time?i=e+xe(86400/ye):[e,i]=ge(e,i,de,!0))):(os=rs[0]=e=null,ls=rs[1]=i=null)),xn(He,e,i)}function Us(e,t,i,s,n,o){e??=D,i??=Qe,s??="butt",n??=D,o??="round",e!=us&&(ne.strokeStyle=us=e),n!=xs&&(ne.fillStyle=xs=n),t!=As&&(ne.lineWidth=As=t),o!=Os&&(ne.lineJoin=Os=o),s!=Ls&&(ne.lineCap=Ls=s),i!=Ts&&ne.setLineDash(Ts=i)}function Ns(e,t,i,s){t!=xs&&(ne.fillStyle=xs=t),e!=Is&&(ne.font=Is=e),i!=Ds&&(ne.textAlign=Ds=i),s!=Ms&&(ne.textBaseline=Ms=s)}function $s(e,t,i,s,n=0){if(s.length>0&&e.auto(I,Rs)&&(null==t||null==t.min)){let t=me(os,0),o=me(ls,s.length-1),l=null==i.min?3==e.distr?function(e,t,i){let s=Re,n=-Re;for(let o=t;o<=i;o++){let t=e[o];null!=t&&t>0&&(t<s&&(s=t),t>n&&(n=t))}return[s,n]}(s,t,o):function(e,t,i,s){let n=Re,o=-Re;if(1==s)n=e[t],o=e[i];else if(-1==s)n=e[i],o=e[t];else for(let l=t;l<=i;l++){let t=e[l];null!=t&&(t<n&&(n=t),t>o&&(o=t))}return[n,o]}(s,t,o,n):[i.min,i.max];e.min=Te(e.min,i.min=l[0]),e.max=Oe(e.max,i.max=l[1])}}I.setData=Fs;const js={min:null,max:null};function Xs(e,t){let i=t?be[e].points:be[e];i._stroke=i.stroke(I,e),i._fill=i.fill(I,e)}function zs(e,i){let s=i?be[e].points:be[e],{stroke:n,fill:o,clip:l,flags:r,_stroke:a=s._stroke,_fill:u=s._fill,_width:c=s.width}=s._paths;c=Ge(c*Y,3);let d=null,h=c%2/2;i&&null==u&&(u=c>0?"#fff":a);let f=1==s.pxAlign&&h>0;if(f&&ne.translate(h,h),!i){let e=ai-c/2,t=_i-c/2,i=vi+c,s=yi+c;d=new Path2D,d.rect(e,t,i,s)}i?Ys(a,c,s.dash,s.cap,u,n,o,r,l):function(e,i,s,n,o,l,r,a,u,c,d){let h=!1;0!=u&&Ne.forEach(((f,p)=>{if(f.series[0]==e){let e,g=be[f.series[1]],m=t[f.series[1]],_=(g._paths||Je).band;tt(_)&&(_=1==f.dir?_[0]:_[1]);let v=null;g.show&&_&&function(e,t,i){for(t=me(t,0),i=me(i,e.length-1);t<=i;){if(null!=e[t])return!0;t++}return!1}(m,os,ls)?(v=f.fill(I,p)||l,e=g._paths.clip):_=null,Ys(i,s,n,o,v,r,a,u,c,d,e,_),h=!0}})),h||Ys(i,s,n,o,l,r,a,u,c,d)}(e,a,c,s.dash,s.cap,u,n,o,r,d,l),f&&ne.translate(-h,-h)}const Hs=Fi|Pi;function Ys(e,t,i,s,n,o,l,r,a,u,c,d){Us(e,t,i,s,n),(a||u||d)&&(ne.save(),a&&ne.clip(a),u&&ne.clip(u)),d?(r&Hs)==Hs?(ne.clip(d),c&&ne.clip(c),Vs(n,l),Bs(e,o,t)):r&Pi?(Vs(n,l),ne.clip(d),Bs(e,o,t)):r&Fi&&(ne.save(),ne.clip(d),c&&ne.clip(c),Vs(n,l),ne.restore(),Bs(e,o,t)):(Vs(n,l),Bs(e,o,t)),(a||u||d)&&ne.restore()}function Bs(e,t,i){i>0&&(t instanceof Map?t.forEach(((e,t)=>{ne.strokeStyle=us=t,ne.stroke(e)})):null!=t&&e&&ne.stroke(t))}function Vs(e,t){t instanceof Map?t.forEach(((e,t)=>{ne.fillStyle=xs=t,ne.fill(e)})):null!=t&&e&&ne.fill(t)}function Ws(e,t,i,s,n,o,l,r,a,u){let c=l%2/2;1==_e&&ne.translate(c,c),Us(r,l,a,u,r),ne.beginPath();let d,h,f,p,g=n+(0==s||3==s?-o:o);0==i?(h=n,p=g):(d=n,f=g);for(let m=0;m<e.length;m++)null!=t[m]&&(0==i?d=f=e[m]:h=p=e[m],ne.moveTo(d,h),ne.lineTo(f,p));ne.stroke(),1==_e&&ne.translate(-c,-c)}function Gs(e){let t=!0;return Me.forEach(((i,s)=>{if(!i.show)return;let n=Fe[i.scale];if(null==n.min)return void(i._show&&(t=!1,i._show=!1,qs(!1)));i._show||(t=!1,i._show=!0,qs(!1));let o=i.side,l=o%2,{min:r,max:a}=n,[u,c]=function(e,t,i,s){let n,o=Me[e];if(s<=0)n=[0,0];else{let l=o._space=o.space(I,e,t,i,s);n=ws(t,i,o._incrs=o.incrs(I,e,t,i,s,l),s,l)}return o._found=n}(s,r,a,0==l?Qt:ei);if(0==c)return;let d=2==n.distr,h=i._splits=i.splits(I,s,r,a,u,c,d),f=2==n.distr?h.map((e=>Cs[e])):h,p=2==n.distr?Cs[h[1]]-Cs[h[0]]:u,g=i._values=i.values(I,i.filter(I,f,s,c,p),s,c,p);i._rotate=2==o?i.rotate(I,g,s,c):0;let m=i._size;i._size=Ae(i.size(I,g,s,e)),null!=m&&i._size!=m&&(t=!1)})),t}function Ks(e){let t=!0;return is.forEach(((i,s)=>{let n=i(I,s,es,e);n!=ss[s]&&(t=!1),ss[s]=n})),t}function qs(e){be.forEach(((t,i)=>{i>0&&(t._paths=null,e&&(1==U?(t.min=null,t.max=null):t.facets.forEach((e=>{e.min=null,e.max=null}))))}))}let Zs,Js,Qs,en,tn,sn,nn,on,ln,rn,an,un,cn=!1,dn=!1,hn=[];function fn(){dn=!1;for(let e=0;e<hn.length;e++)eo(...hn[e]);hn.length=0}function pn(){cn||(ht(gn),cn=!0)}function gn(){if(bi&&(!function(){for(let t in Fe){let e=Fe[t];null==dt[t]&&(null==e.min||null!=dt[He]&&e.auto(I,Rs))&&(dt[t]=js)}for(let t in Fe){let e=Fe[t];null==dt[t]&&null!=e.from&&null!=dt[e.from]&&(dt[t]=js)}null!=dt[He]&&qs(!0);let e={};for(let t in dt){let i=dt[t];if(null!=i){let s=e[t]=ut(Fe[t],lt);if(null!=i.min)ct(s,i);else if(t!=He||2==U)if(0==ns&&null==s.from){let e=s.range(I,null,null,t);s.min=e[0],s.max=e[1]}else s.min=Re,s.max=-Re}}if(ns>0){be.forEach(((i,s)=>{if(1==U){let n=i.scale,o=dt[n];if(null==o)return;let l=e[n];if(0==s){let e=l.range(I,l.min,l.max,n);l.min=e[0],l.max=e[1],os=re(l.min,t[0]),ls=re(l.max,t[0]),ls-os>1&&(t[0][os]<l.min&&os++,t[0][ls]>l.max&&ls--),i.min=Cs[os],i.max=Cs[ls]}else i.show&&i.auto&&$s(l,o,i,t[s],i.sorted);i.idxs[0]=os,i.idxs[1]=ls}else if(s>0&&i.show&&i.auto){let[n,o]=i.facets,l=n.scale,r=o.scale,[a,u]=t[s],c=e[l],d=e[r];null!=c&&$s(c,dt[l],n,a,n.sorted),null!=d&&$s(d,dt[r],o,u,o.sorted),i.min=o.min,i.max=o.max}}));for(let t in e){let i=e[t],s=dt[t];if(null==i.from&&(null==s||null==s.min)){let e=i.range(I,i.min==Re?null:i.min,i.max==-Re?null:i.max,t);i.min=e[0],i.max=e[1]}}}for(let t in e){let i=e[t];if(null!=i.from){let s=e[i.from];if(null==s.min)i.min=i.max=null;else{let e=i.range(I,s.min,s.max,t);i.min=e[0],i.max=e[1]}}}let i={},s=!1;for(let t in e){let n=e[t],o=Fe[t];if(o.min!=n.min||o.max!=n.max){o.min=n.min,o.max=n.max;let e=o.distr;o._min=3==e?De(o.min):4==e?Ce(o.min,o.asinh):100==e?o.fwd(o.min):o.min,o._max=3==e?De(o.max):4==e?Ce(o.max,o.asinh):100==e?o.fwd(o.max):o.max,i[t]=s=!0}}if(s){be.forEach(((e,t)=>{2==U?t>0&&i.y&&(e._paths=null):i[e.scale]&&(e._paths=null)}));for(let e in i)Ti=!0,eo("setScale",e);zi.show&&zi.left>=0&&(Oi=Ui=!0)}for(let t in dt)dt[t]=null}(),bi=!1),Ti&&(!function(){let e=!1,t=0;for(;!e;){t++;let i=Gs(t),s=Ks(t);e=t==Xi||i&&s,e||(ji(I.width,I.height),wi=!0)}}(),Ti=!1),wi){if(G(fe,O,ti),G(fe,A,si),G(fe,S,Qt),G(fe,x,ei),G(pe,O,ti),G(pe,A,si),G(pe,S,Qt),G(pe,x,ei),G(ae,S,$t),G(ae,x,Gt),se.width=xe($t*Y),se.height=xe(Gt*Y),Me.forEach((({_el:e,_show:t,_size:i,_pos:s,side:n})=>{if(null!=e)if(t){let t=n%2==1;G(e,t?"left":"top",s-(3===n||0===n?i:0)),G(e,t?"width":"height",i),G(e,t?"top":"left",t?si:ti),G(e,t?"height":"width",t?ei:Qt),W(e,d)}else V(e,d)})),us=xs=As=Os=Ls=Is=Ds=Ms=Ts=null,ks=1,$n(!0),ti!=ni||si!=oi||Qt!=li||ei!=ri){qs(!1);let e=Qt/li,t=ei/ri;if(zi.show&&!Oi&&zi.left>=0){zi.left*=e,zi.top*=t,Qs&&J(Qs,xe(zi.left),0,Qt,ei),en&&J(en,0,xe(zi.top),Qt,ei);for(let i=0;i<Ki.length;i++){let s=Ki[i];null!=s&&(qi[i]*=e,Zi[i]*=t,J(s,Ae(qi[i]),Ae(Zi[i]),Qt,ei))}}if(wn.show&&!Ci&&wn.left>=0&&wn.width>0){wn.left*=e,wn.width*=e,wn.top*=t,wn.height*=t;for(let e in zn)G(En,e,wn[e])}ni=ti,oi=si,li=Qt,ri=ei}eo("setSize"),wi=!1}$t>0&&Gt>0&&(ne.clearRect(0,0,se.width,se.height),eo("drawClear"),Ve.forEach((e=>e())),eo("draw")),wn.show&&Ci&&(Sn(wn),Ci=!1),zi.show&&Oi&&(Un(null,!0,!1),Oi=!1),yt.show&&yt.live&&Ui&&(Fn(),Ui=!1),Q||(Q=!0,I.status=1,eo("ready")),Rs=!1,cn=!1}function mn(e,i){let s=Fe[e];if(null==s.from){if(0==ns){let t=s.range(I,i.min,i.max,e);i.min=t[0],i.max=t[1]}if(i.min>i.max){let e=i.min;i.min=i.max,i.max=e}if(ns>1&&null!=i.min&&null!=i.max&&i.max-i.min<1e-16)return;e==He&&2==s.distr&&ns>0&&(i.min=re(i.min,t[0]),i.max=re(i.max,t[0]),i.min==i.max&&i.max++),dt[e]=i,bi=!0,pn()}}I.batch=function(e,t=!1){cn=!0,dn=t,e(I),gn(),t&&hn.length>0&&queueMicrotask(fn)},I.redraw=(e,t)=>{Ti=t||!1,!1!==e?xn(He,Ze.min,Ze.max):pn()},I.setScale=mn;let _n=!1;const vn=zi.drag;let yn=vn.x,bn=vn.y;zi.show&&(zi.x&&(Zs=q(f,pe)),zi.y&&(Js=q(p,pe)),0==Ze.ori?(Qs=Zs,en=Js):(Qs=Js,en=Zs),an=zi.left,un=zi.top);const wn=I.select=ct({show:!0,over:!0,left:0,width:0,top:0,height:0},e.select),En=wn.show?q(h,wn.over?pe:fe):null;function Sn(e,t){if(wn.show){for(let t in e)wn[t]=e[t],t in zn&&G(En,t,e[t]);!1!==t&&eo("setSelect")}}function xn(e,t,i){mn(e,{min:t,max:i})}function An(e,t,i,s){null!=t.focus&&function(e){if(e!=Ln){let t=null==e,i=1!=Vi.alpha;be.forEach(((s,n)=>{if(1==U||n>0){let o=t||0==n||n==e;s._focus=t?null:o,i&&function(e,t){be[e].alpha=t,zi.show&&Ki[e]&&(Ki[e].style.opacity=t);bt&&It[e]&&(It[e].style.opacity=t)}(n,o?1:Vi.alpha)}})),Ln=e,i&&pn()}}(e),null!=t.show&&be.forEach(((i,s)=>{s>0&&(e==s||null==e)&&(i.show=t.show,function(e){let t=be[e],i=bt?It[e]:null;t.show?i&&W(i,d):(i&&V(i,d),J(Gi?Ki[0]:Ki[e],-10,-10,Qt,ei))}(s,t.show),2==U?(xn(i.facets[0].scale,null,null),xn(i.facets[1].scale,null,null)):xn(i.scale,null,null),pn())})),!1!==i&&eo("setSeries",e,t),s&&oo("setSeries",I,e,t)}let Tn,On,Ln;I.setSelect=Sn,I.setSeries=An,I.addBand=function(e,t){e.fill=Ue(e.fill||null),e.dir=me(e.dir,-1),t=null==t?Ne.length:t,Ne.splice(t,0,e)},I.setBand=function(e,t){ct(Ne[e],t)},I.delBand=function(e){null==e?Ne.length=0:Ne.splice(e,1)};const In={focus:!0};function Dn(e,t,i){let s=Fe[t];i&&(e=e/Y-(1==s.ori?si:ti));let n=Qt;1==s.ori&&(n=ei,e=n-e),-1==s.dir&&(e=n-e);let o=s._min,l=o+(s._max-o)*(e/n),r=s.distr;return 3==r?Le(10,l):4==r?ke(l,s.asinh):100==r?s.bwd(l):l}function Mn(e,t){G(En,O,wn.left=e),G(En,S,wn.width=t)}function kn(e,t){G(En,A,wn.top=e),G(En,x,wn.height=t)}bt&&Wi&&Ut(F,St,(e=>{zi._lock||(Yi(e),null!=Ln&&An(null,In,!0,io.setSeries))})),I.valToIdx=e=>re(e,t[0]),I.posToIdx=function(e,i){return re(Dn(e,He,i),t[0],os,ls)},I.posToVal=Dn,I.valToPos=(e,t,i)=>0==Fe[t].ori?H(e,Fe[t],i?vi:Qt,i?ai:0):B(e,Fe[t],i?yi:ei,i?_i:0),I.setCursor=(e,t,i)=>{an=e.left,un=e.top,Un(null,t,i)};let Cn=0==Ze.ori?Mn:kn,Rn=1==Ze.ori?Mn:kn;function Fn(e,t){if(null!=e&&(e.idxs?e.idxs.forEach(((e,t)=>{vt[t]=e})):st(e.idx)||vt.fill(e.idx),yt.idx=vt[0]),bt&&yt.live){for(let e=0;e<be.length;e++)(e>0||1==U&&!Mt)&&Pn(e,vt[e]);!function(){if(bt&&yt.live)for(let e=2==U?1:0;e<be.length;e++){if(0==e&&Mt)continue;let t=yt.values[e],i=0;for(let s in t)Dt[e][i++].firstChild.nodeValue=t[s]}}()}Ui=!1,!1!==t&&eo("setLegend")}function Pn(e,i){let s,n=be[e],o=0==e&&2==it?Cs:t[e];Mt?s=n.values(I,e,i)??kt:(s=n.value(I,null==i?null:o[i],e,i),s=null==s?kt:{_:s}),yt.values[e]=s}function Un(e,i,s){let n;ln=an,rn=un,[an,un]=zi.move(I,an,un),zi.left=an,zi.top=un,zi.show&&(Qs&&J(Qs,xe(an),0,Qt,ei),en&&J(en,0,xe(un),Qt,ei));let o=os>ls;Tn=Re,On=null;let l=0==Ze.ori?Qt:ei,r=1==Ze.ori?Qt:ei;if(an<0||0==ns||o){n=zi.idx=null;for(let e=0;e<be.length;e++){let t=Ki[e];null!=t&&J(t,-10,-10,Qt,ei)}Wi&&An(null,In,!0,null==e&&io.setSeries),yt.live&&(vt.fill(n),Ui=!0)}else{let e,i,s;1==U&&(e=0==Ze.ori?an:un,i=Dn(e,He),n=zi.idx=re(i,t[0],os,ls),s=rt(t[0][n],Ze,l,0));let o=-10,a=-10,u=0,c=0,d=!0,h="",f="";for(let p=2==U?1:0;p<be.length;p++){let e=be[p],g=vt[p],m=null==g?null:1==U?t[p][g]:t[p][1][g],_=zi.dataIdx(I,p,n,i),v=null==_?null:1==U?t[p][_]:t[p][1][_];Ui=Ui||v!=m||_!=g,vt[p]=_;let y=_==n?s:rt(1==U?t[0][_]:t[p][0][_],Ze,l,0);if(p>0&&e.show){let t=null==v?-10:at(v,1==U?Fe[e.scale]:Fe[e.facets[1].scale],r,0);if(Wi&&null!=v){let i=1==Ze.ori?an:un,s=Ee(Vi.dist(I,p,_,t,i));if(s<Tn){let t=Vi.bias;if(0!=t){let n=Dn(i,e.scale),o=n>=0?1:-1;o==(v>=0?1:-1)&&(1==o?1==t?v>=n:v<=n:1==t?v<=n:v>=n)&&(Tn=s,On=p)}else Tn=s,On=p}}if(Ui||Gi){let e,i;0==Ze.ori?(e=y,i=t):(e=t,i=y);let s,n,l,r,g,m,_=!0,v=Bi.bbox;if(null!=v){_=!1;let e=v(I,p);l=e.left,r=e.top,s=e.width,n=e.height}else l=e,r=i,s=n=Bi.size(I,p);if(m=Bi.fill(I,p),g=Bi.stroke(I,p),Gi)p==On&&Tn<=Vi.prox&&(o=l,a=r,u=s,c=n,d=_,h=m,f=g);else{let e=Ki[p];null!=e&&(qi[p]=l,Zi[p]=r,ie(e,s,n,_),ee(e,m,g),J(e,Ae(l),Ae(r),Qt,ei))}}}}if(Gi){let e=Vi.prox;if(Ui||(null==Ln?Tn<=e:Tn>e||On!=Ln)){let e=Ki[0];qi[0]=o,Zi[0]=a,ie(e,u,c,d),ee(e,h,f),J(e,Ae(o),Ae(a),Qt,ei)}}}if(wn.show&&_n)if(null!=e){let[t,i]=io.scales,[s,n]=io.match,[o,a]=e.cursor.sync.scales,u=e.cursor.drag;if(yn=u._x,bn=u._y,yn||bn){let u,c,d,h,f,{left:p,top:g,width:m,height:_}=e.select,v=e.scales[o].ori,y=e.posToVal,b=null!=t&&s(t,o),w=null!=i&&n(i,a);b&&yn?(0==v?(u=p,c=m):(u=g,c=_),d=Fe[t],h=rt(y(u,o),d,l,0),f=rt(y(u+c,o),d,l,0),Cn(Te(h,f),Ee(f-h))):Cn(0,l),w&&bn?(1==v?(u=p,c=m):(u=g,c=_),d=Fe[i],h=at(y(u,a),d,r,0),f=at(y(u+c,a),d,r,0),Rn(Te(h,f),Ee(f-h))):Rn(0,r)}else Hn()}else{let e=Ee(ln-tn),t=Ee(rn-sn);if(1==Ze.ori){let i=e;e=t,t=i}yn=vn.x&&e>=vn.dist,bn=vn.y&&t>=vn.dist;let i,s,n=vn.uni;null!=n?yn&&bn&&(yn=e>=n,bn=t>=n,yn||bn||(t>e?bn=!0:yn=!0)):vn.x&&vn.y&&(yn||bn)&&(yn=bn=!0),yn&&(0==Ze.ori?(i=nn,s=an):(i=on,s=un),Cn(Te(i,s),Ee(s-i)),bn||Rn(0,r)),bn&&(1==Ze.ori?(i=nn,s=an):(i=on,s=un),Rn(Te(i,s),Ee(s-i)),yn||Cn(0,l)),yn||bn||(Cn(0,0),Rn(0,0))}if(vn._x=yn,vn._y=bn,null==e){if(s){if(null!=so){let[e,t]=io.scales;io.values[0]=null!=e?Dn(0==Ze.ori?an:un,e):null,io.values[1]=null!=t?Dn(1==Ze.ori?an:un,t):null}oo(M,I,an,un,Qt,ei,n)}if(Wi){let e=s&&io.setSeries,t=Vi.prox;null==Ln?Tn<=t&&An(On,In,!0,e):Tn>t?An(null,In,!0,e):On!=Ln&&An(On,In,!0,e)}}Ui&&(yt.idx=n,Fn()),!1!==i&&eo("setCursor")}I.setLegend=Fn;let Nn=null;function $n(e=!1){e?Nn=null:(Nn=pe.getBoundingClientRect(),eo("syncRect",Nn))}function jn(e,t,i,s,n,o,l){zi._lock||_n&&null!=e&&0==e.movementX&&0==e.movementY||(Xn(e,t,i,s,n,o,l,!1,null!=e),null!=e?Un(null,!0,!0):Un(t,!0,!1))}function Xn(e,t,i,s,n,o,l,r,a){if(null==Nn&&$n(!1),Yi(e),null!=e)i=e.clientX-Nn.left,s=e.clientY-Nn.top;else{if(i<0||s<0)return an=-10,void(un=-10);let[e,l]=io.scales,r=t.cursor.sync,[a,u]=r.values,[c,d]=r.scales,[h,f]=io.match,p=t.axes[0].side%2==1,g=0==Ze.ori?Qt:ei,m=1==Ze.ori?Qt:ei,_=p?o:n,v=p?n:o,y=p?s:i,b=p?i:s;if(i=null!=c?h(e,c)?Z(a,Fe[e],g,0):-10:g*(y/_),s=null!=d?f(l,d)?Z(u,Fe[l],m,0):-10:m*(b/v),1==Ze.ori){let e=i;i=s,s=e}}a&&((i<=1||i>=Qt-1)&&(i=Be(i,Qt)),(s<=1||s>=ei-1)&&(s=Be(s,ei))),r?(tn=i,sn=s,[nn,on]=zi.move(I,i,s)):(an=i,un=s)}Object.defineProperty(I,"rect",{get:()=>(null==Nn&&$n(!1),Nn)});const zn={width:0,height:0,left:0,top:0};function Hn(){Sn(zn,!1)}let Yn,Bn,Vn,Wn;function Gn(e,t,i,s,n,o,l){_n=!0,yn=bn=vn._x=vn._y=!1,Xn(e,t,i,s,n,o,0,!0,!1),null!=e&&(Ut(C,X,Kn,!1),oo(k,I,nn,on,Qt,ei,null));let{left:r,top:a,width:u,height:c}=wn;Yn=r,Bn=a,Vn=u,Wn=c,Hn()}function Kn(e,t,i,s,n,o,l){_n=vn._x=vn._y=!1,Xn(e,t,i,s,n,o,0,!1,!0);let{left:r,top:a,width:u,height:c}=wn,d=u>0||c>0,h=Yn!=r||Bn!=a||Vn!=u||Wn!=c;if(d&&h&&Sn(wn),vn.setScale&&d&&h){let e=r,t=u,i=a,s=c;if(1==Ze.ori&&(e=a,t=c,i=r,s=u),yn&&xn(He,Dn(e,He),Dn(e+t,He)),bn)for(let n in Fe){let e=Fe[n];n!=He&&null==e.from&&e.min!=Re&&xn(n,Dn(i+s,n),Dn(i,n))}Hn()}else zi.lock&&(zi._lock=!zi._lock,Un(null,!0,!1));null!=e&&(Nt(C,X),oo(C,I,an,un,Qt,ei,null))}function qn(e,t,i,s,n,o,l){zi._lock||(Yi(e),Ps(),Hn(),null!=e&&oo(P,I,an,un,Qt,ei,null))}function Zn(){Me.forEach(Ss),Ni(I.width,I.height,!0)}oe(N,z,Zn);const Jn={};Jn.mousedown=Gn,Jn.mousemove=jn,Jn.mouseup=Kn,Jn.dblclick=qn,Jn.setSeries=(e,t,i,s)=>{-1!=(i=(0,io.match[2])(I,t,i))&&An(i,s,!0,!1)},zi.show&&(Ut(k,pe,Gn),Ut(M,pe,jn),Ut(R,pe,(e=>{Yi(e),$n(!1)})),Ut(F,pe,(function(e,t,i,s,n,o,l){if(zi._lock)return;Yi(e);let r=_n;if(_n){let e,t,i=!0,s=!0,n=10;0==Ze.ori?(e=yn,t=bn):(e=bn,t=yn),e&&t&&(i=an<=n||an>=Qt-n,s=un<=n||un>=ei-n),e&&i&&(an=an<nn?0:Qt),t&&s&&(un=un<on?0:ei),Un(null,!0,!0),_n=!1}an=-10,un=-10,Un(null,!0,!0),r&&(_n=r)})),Ut(P,pe,qn),as.add(I),I.syncRect=$n);const Qn=I.hooks=e.hooks||{};function eo(e,t,i){dn?hn.push([e,t,i]):e in Qn&&Qn[e].forEach((e=>{e.call(null,I,t,i)}))}(e.plugins||[]).forEach((e=>{for(let t in e.hooks)Qn[t]=(Qn[t]||[]).concat(e.hooks[t])}));const to=(e,t,i)=>i,io=ct({key:null,setSeries:!1,filters:{pub:Xe,sub:Xe},scales:[He,be[1]?be[1].scale:null],match:[ze,ze,to],values:[null,null]},zi.sync);2==io.match.length&&io.match.push(to),zi.sync=io;const so=io.key,no=Ri(so);function oo(e,t,i,s,n,o,l){io.filters.pub(e,t,i,s,n,o,l)&&no.pub(e,t,i,s,n,o,l)}function lo(){eo("init",e,t),Fs(t||e.data,!1),dt[He]?mn(He,dt[He]):Ps(),Ci=wn.show&&(wn.width>0||wn.height>0),Oi=Ui=!0,Ni(e.width,e.height)}return no.sub(I),I.pub=function(e,t,i,s,n,o,l){io.filters.sub(e,t,i,s,n,o,l)&&Jn[e](null,t,i,s,n,o,l)},I.destroy=function(){no.unsub(I),as.delete(I),Pt.clear(),le(N,z,Zn),te.remove(),St?.remove(),eo("destroy")},be.forEach(Qi),Me.forEach((function(e,t){if(e._show=e.show,e.show){let i=e.side%2,s=Fe[e.scale];null==s&&(e.scale=i?be[1].scale:He,s=Fe[e.scale]);let n=s.time;e.size=Ue(e.size),e.space=Ue(e.space),e.rotate=Ue(e.rotate),tt(e.incrs)&&e.incrs.forEach((e=>{!Ke.has(e)&&Ke.set(e,qe(e))})),e.incrs=Ue(e.incrs||(2==s.distr?Ot:n?1==ye?jt:Ht:Lt)),e.splits=Ue(e.splits||(n&&1==s.distr?gt:3==s.distr?gi:4==s.distr?mi:pi)),e.stroke=Ue(e.stroke),e.grid.stroke=Ue(e.grid.stroke),e.ticks.stroke=Ue(e.ticks.stroke),e.border.stroke=Ue(e.border.stroke);let o=e.values;e.values=tt(o)&&!tt(o[0])?Ue(o):n?tt(o)?Wt(ft,Vt(o,pt)):nt(o)?function(e,t){let i=wt(t);return(t,s,n,o,l)=>s.map((t=>i(e(t))))}(ft,o):o||mt:o||fi,e.filter=Ue(e.filter||(s.distr>=3&&10==s.log?Ei:3==s.distr&&2==s.log?Si:$e)),e.font=Es(e.font),e.labelFont=Es(e.labelFont),e._size=e.size(I,null,t,0),e._space=e._rotate=e._incrs=e._found=e._splits=e._values=null,e._size>0&&(es[t]=!0,e._el=q(c,ae))}})),i?i instanceof HTMLElement?(i.appendChild(te),lo()):i(I,lo):lo(),I}xs.assign=ct,xs.fmtNum=ye,xs.rangeNum=ge,xs.rangeLog=ue,xs.rangeAsinh=ce,xs.orient=Ui,xs.pxRatio=Y,xs.join=function(e,t){if(function(e){let t=e[0][0],i=t.length;for(let s=1;s<e.length;s++){let n=e[s][0];if(n.length!=i)return!1;if(n!=t)for(let e=0;e<i;e++)if(n[e]!=t[e])return!1}return!0}(e)){let t=e[0].slice();for(let i=1;i<e.length;i++)t.push(...e[i].slice(1));return function(e,t=100){const i=e.length;if(i<=1)return!0;let s=0,n=i-1;for(;s<=n&&null==e[s];)s++;for(;n>=s&&null==e[n];)n--;if(n<=s)return!0;const o=Oe(1,Se((n-s+1)/t));for(let l=e[s],r=s+o;r<=n;r+=o){const t=e[r];if(null!=t){if(t<=l)return!1;l=t}}return!0}(t[0])||(t=function(e){let t=e[0],i=t.length,s=Array(i);for(let o=0;o<s.length;o++)s[o]=o;s.sort(((e,i)=>t[e]-t[i]));let n=[];for(let o=0;o<e.length;o++){let t=e[o],l=Array(i);for(let e=0;e<i;e++)l[e]=t[s[e]];n.push(l)}return n}(t)),t}let i=new Set;for(let l=0;l<e.length;l++){let t=e[l][0],s=t.length;for(let e=0;e<s;e++)i.add(t[e])}let s=[Array.from(i).sort(((e,t)=>e-t))],n=s[0].length,o=new Map;for(let l=0;l<n;l++)o.set(s[0][l],l);for(let l=0;l<e.length;l++){let i=e[l],r=i[0];for(let e=1;e<i.length;e++){let a=i[e],u=Array(n).fill(void 0),c=t?t[l][e]:1,d=[];for(let e=0;e<a.length;e++){let t=a[e],i=o.get(r[e]);null===t?0!=c&&(u[i]=t,2==c&&d.push(i)):u[i]=t}dt(u,d,n),s.push(u)}}return s},xs.fmtDate=wt,xs.tzDate=function(e,t){let i;return"UTC"==t||"Etc/UTC"==t?i=new Date(+e+6e4*e.getTimezoneOffset()):t==Et?i=e:(i=new Date(e.toLocaleString("en-US",{timeZone:t})),i.setMilliseconds(e.getMilliseconds())),i},xs.sync=Ri;{xs.addGap=function(e,t,i){let s=e[e.length-1];s&&s[0]==t?s[1]=i:e.push([t,i])},xs.clipGaps=Xi;let e=xs.paths={points:ts};e.linear=os,e.stepped=function(e){const t=me(e.align,1),i=me(e.ascDesc,!1),s=me(e.alignGaps,0),n=me(e.extend,!1);return(e,o,l,r)=>Ui(e,o,((a,u,c,d,h,f,p,g,m,_,v)=>{let y=a.pxRound,{left:b,width:w}=e.bbox,E=e=>y(f(e,d,_,g)),S=e=>y(p(e,h,v,m)),x=0==d.ori?Wi:Gi;const A={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Fi},T=A.stroke,O=d.dir*(0==d.ori?1:-1);l=ae(c,l,r,1),r=ae(c,l,r,-1);let L=S(c[1==O?l:r]),I=E(u[1==O?l:r]),D=I,M=I;n&&-1==t&&(M=b,x(T,M,L)),x(T,I,L);for(let e=1==O?l:r;e>=l&&e<=r;e+=O){let i=c[e];if(null==i)continue;let s=E(u[e]),n=S(i);1==t?x(T,s,L):x(T,D,n),x(T,s,n),L=n,D=s}let k=D;n&&1==t&&(k=b+w,x(T,k,L));let[C,R]=Ni(e,o);if(null!=a.fill||0!=C){let t=A.fill=new Path2D(T),i=S(a.fillTo(e,o,a.min,a.max,C));x(t,k,i),x(t,M,i)}if(!a.spanGaps){let n=[];n.push(...zi(u,c,l,r,O,E,s));let h=a.width*Y/2,f=i||1==t?h:-h,p=i||-1==t?-h:h;n.forEach((e=>{e[0]+=f,e[1]+=p})),A.gaps=n=a.gaps(e,o,l,r,n),A.clip=Xi(n,d.ori,g,m,_,v)}return 0!=R&&(A.band=2==R?[ji(e,o,l,r,T,-1),ji(e,o,l,r,T,1)]:ji(e,o,l,r,T,R)),A}))},e.bars=function(e){const t=me((e=e||Je).size,[.6,Re,1]),i=e.align||0,s=e.gap||0;let n=e.radius;n=null==n?[0,0]:"number"==typeof n?[n,0]:n;const o=Ue(n),l=1-t[0],r=me(t[1],Re),a=me(t[2],1),u=me(e.disp,Je),c=me(e.each,(e=>{})),{fill:d,stroke:h}=u;return(e,t,n,f)=>Ui(e,t,((p,g,m,_,v,y,b,w,E,S,x)=>{let A,T,O=p.pxRound,L=i,I=s*Y,D=r*Y,M=a*Y;0==_.ori?[A,T]=o(e,t):[T,A]=o(e,t);const k=_.dir*(0==_.ori?1:-1);let C,R,F,P=0==_.ori?Ki:qi,U=0==_.ori?c:(e,t,i,s,n,o,l)=>{c(e,t,i,n,s,l,o)},N=me(e.bands,Qe).find((e=>e.series[0]==t)),$=null!=N?N.dir:0,j=p.fillTo(e,t,p.min,p.max,$),X=O(b(j,v,x,E)),z=S,H=O(p.width*Y),B=!1,V=null,W=null,G=null,K=null;null==d||0!=H&&null==h||(B=!0,V=d.values(e,t,n,f),W=new Map,new Set(V).forEach((e=>{null!=e&&W.set(e,new Path2D)})),H>0&&(G=h.values(e,t,n,f),K=new Map,new Set(G).forEach((e=>{null!=e&&K.set(e,new Path2D)}))));let{x0:q,size:Z}=u;if(null!=q&&null!=Z){L=1,g=q.values(e,t,n,f),2==q.unit&&(g=g.map((t=>e.posToVal(w+t*S,_.key,!0))));let i=Z.values(e,t,n,f);R=2==Z.unit?i[0]*S:y(i[0],_,S,w)-y(0,_,S,w),z=ls(g,m,y,_,S,w,z),F=z-R+I}else z=ls(g,m,y,_,S,w,z),F=z*l+I,R=z-F;F<1&&(F=0),H>=R/2&&(H=0),F<5&&(O=Ne);let J=F>0;R=O(Pe(z-F-(J?H:0),M,D)),C=(0==L?R/2:L==k?0:R)-L*k*((0==L?I/2:0)+(J?H/2:0));const Q={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},ee=B?null:new Path2D;let te=null;if(null!=N)te=e.data[N.series[1]];else{let{y0:i,y1:s}=u;null!=i&&null!=s&&(m=s.values(e,t,n,f),te=i.values(e,t,n,f))}let ie=A*R,se=T*R;for(let i=1==k?n:f;i>=n&&i<=f;i+=k){let s=m[i];if(null==s)continue;if(null!=te){let e=te[i]??0;if(s-e==0)continue;X=b(e,v,x,E)}let n=y(2!=_.distr||null!=u?g[i]:i,_,S,w),o=b(me(s,j),v,x,E),l=O(n-C),r=O(Oe(o,X)),a=O(Te(o,X)),c=r-a;if(null!=s){let n=s<0?se:ie,o=s<0?ie:se;B?(H>0&&null!=G[i]&&P(K.get(G[i]),l,a+Se(H/2),R,Oe(0,c-H),n,o),null!=V[i]&&P(W.get(V[i]),l,a+Se(H/2),R,Oe(0,c-H),n,o)):P(ee,l,a+Se(H/2),R,Oe(0,c-H),n,o),U(e,t,i,l-H/2,a,R+H,c)}}return H>0?Q.stroke=B?K:ee:B||(Q._fill=0==p.width?p._fill:p._stroke??p._fill,Q.width=0),Q.fill=B?W:ee,Q}))},e.spline=function(e){return function(e,t){const i=me(t?.alignGaps,0);return(t,s,n,o)=>Ui(t,s,((l,r,a,u,c,d,h,f,p,g,m)=>{let _,v,y,b=l.pxRound,w=e=>b(d(e,u,g,f)),E=e=>b(h(e,c,m,p));0==u.ori?(_=Bi,y=Wi,v=Qi):(_=Vi,y=Gi,v=es);const S=u.dir*(0==u.ori?1:-1);n=ae(a,n,o,1),o=ae(a,n,o,-1);let x=w(r[1==S?n:o]),A=x,T=[],O=[];for(let e=1==S?n:o;e>=n&&e<=o;e+=S)if(null!=a[e]){let t=w(r[e]);T.push(A=t),O.push(E(a[e]))}const L={stroke:e(T,O,_,y,v,b),fill:null,clip:null,band:null,gaps:null,flags:Fi},I=L.stroke;let[D,M]=Ni(t,s);if(null!=l.fill||0!=D){let e=L.fill=new Path2D(I),i=E(l.fillTo(t,s,l.min,l.max,D));y(e,A,i),y(e,x,i)}if(!l.spanGaps){let e=[];e.push(...zi(r,a,n,o,S,w,i)),L.gaps=e=l.gaps(t,s,n,o,e),L.clip=Xi(e,u.ori,f,p,g,m)}return 0!=M&&(L.band=2==M?[ji(t,s,n,o,I,-1),ji(t,s,n,o,I,1)]:ji(t,s,n,o,I,M)),L}))}(rs,e)}}},20500:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getSerieFocusColors=t.getFocusedColor=void 0;const i=[0,0,0,.6];class s{static parseRgba(e){const t=e.match(/rgba?\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,?\s*(\d+\.?\d*)?\s*\)/);return t?[t[1],t[2],t[3],t[4]||1].map(Number):null}parse(e="000"){const t=e.startsWith("var(--");let i,s=e,n=!0;const o=this.context,l=o.style.color;return t||e.startsWith("--")?(n=!1,i=t?e.slice(4,-1):e):e.startsWith("#")||e.startsWith("rgb")||(o.style.color=e,i="color",n=!1),s=n?s:getComputedStyle(o).getPropertyValue(i),o.style.color=l,s}setContext(e){this.context=e}rgba(e){return`rgba(${e[0]}, ${e[1]}, ${e[2]}, ${e[3]})`}toRgba(e,t){return s.parseRgba(this.parse(e))||t}shade([e,t,i,s],n){const o=n<0,l=o?0:255*n,r=o?1+n:1-n;return"rgba("+Math.round(e*r+l)+","+Math.round(t*r+l)+","+Math.round(i*r+l)+","+s+")"}}t.default=s;t.getFocusedColor=(e,t)=>{const n=e.utils.theme.SHIFT,o=e.uplot.series[t],l=s.parseRgba(o.color)||i;return e.utils.colors.shade(l,n)};t.getSerieFocusColors=(e,t)=>(i,s)=>{const n=i.series[s];return!1===n._focus?n.getFocusedColor(e,s):n[t]}},23936:function(e,t,i){var s=this&&this.__createBinding||(Object.create?function(e,t,i,s){void 0===s&&(s=i);var n=Object.getOwnPropertyDescriptor(t,i);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,n)}:function(e,t,i,s){void 0===s&&(s=i),e[s]=t[i]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&s(t,e,i);return n(t,e),t},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useTooltipState=void 0;const r=o(i(59284)),a=l(i(37100));t.default=r.forwardRef((function({id:e,config:t,className:i="",debug:s,onChartLoad:n,onSelect:o,update:l="dynamic"},u){const c=r.useRef(null),d=r.useRef();r.useImperativeHandle(u,(()=>({yagr:()=>d.current,domElement:()=>c.current})));const h=r.useCallback((()=>{if(c.current){t.hooks=t.hooks||{};const e=t.hooks;if(n){const t=e.load||[];t.push((({chart:e,meta:t})=>{n(e,t)})),e.load=t}if(o){const t=e.onSelect||[];t.push((({from:e,to:t})=>o(e,t))),e.onSelect=t}d.current=new a.default(c.current,t)}}),[]);r.useEffect((()=>{var e;t&&(null===(e=d.current)||void 0===e||e.setConfig(t,"hard"===l))}),[t]),r.useEffect((()=>(h(),()=>{var e;null===(e=d.current)||void 0===e||e.dispose(),d.current=void 0})),[]);const f=r.useCallback((e=>{if(d.current&&(e.ctrlKey||e.metaKey)&&e.shiftKey){const e=d.current.toDataUrl().replace("image/png","image/octet-stream"),t=document.createElement("a");t.href=e,t.download=((null===s||void 0===s?void 0:s.filename)||d.current.id)+".png",t.click()}}),[e,d]);return r.createElement("div",{id:e,onClick:f,className:`yagr ${i}`,ref:c})}));t.useTooltipState=(e,t)=>{r.useEffect((()=>{var i;if(!e.current||!t.current)return;const s=t.current,n=e.current.yagr();n&&(null===(i=null===n||void 0===n?void 0:n.plugins)||void 0===i?void 0:i.tooltip)&&(n.plugins.tooltip.on("render",((e,t)=>{s.onChange(t)})),n.plugins.tooltip.on("show",((e,t)=>{s.onChange(t)})),n.plugins.tooltip.on("show",((e,t)=>{s.onChange(t)})))}),[e.current])}},24793:function(e,t,i){var s=this&&this.__createBinding||(Object.create?function(e,t,i,s){void 0===s&&(s=i);var n=Object.getOwnPropertyDescriptor(t,i);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,n)}:function(e,t,i,s){void 0===s&&(s=i),e[s]=t[i]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&s(t,e,i);return n(t,e),t},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.configureAxes=t.updateAxis=t.getRedrawOptionsForAxesUpdate=t.getTimeFormatter=t.getDefaultNumberFormatter=t.getAxisPositioning=void 0;const r=l(i(16381)),a=o(i(46976)),u=i(50497),c=i(48643),d={right:c.Axis.Side.Right,top:c.Axis.Side.Top,bottom:c.Axis.Side.Bottom,left:c.Axis.Side.Left},h={left:c.Axis.Align.Right,right:c.Axis.Align.Left,top:void 0,bottom:void 0};t.getAxisPositioning=(e,t)=>({side:e?d[e]:c.Axis.Side.Left,align:t||(e?h[e]:void 0)});t.getDefaultNumberFormatter=(e,t="")=>i=>{if((0,u.isNil)(i))return t;if(0===i)return"0";const s=Math.abs(i),n="auto"===e?2:e,[o,l]=(0,u.getUnitSuffix)(s),r=i/o;return("auto"===e?String(r).replace(/\.(\d{5,})/,(e=>e.slice(0,6))):(0,u.toFixed)(r,n))+l};const f=e=>{const i=e.precision,s=(0,t.getDefaultNumberFormatter)("number"===typeof i?i:i||"auto","");return function(e,t){return t.map(s)}},p=r.default.fmtDate("{DD}.{MM}.{YYYY}"),g=r.default.fmtDate("{HH}:{mm}:{ss}"),m=r.default.fmtDate("{mm}:{ss}"),_=r.default.fmtDate("{mm}:{ss}.{fff}"),v=r.default.fmtDate("{YYYY}");function y(e,t){let i=p;const s=Math.ceil(e/t);return s<=a.SECOND?i=_:s<=a.MINUTE?i=m:s<=a.DAY?i=g:s>=a.YEAR&&(i=v),e=>i(new Date(e))}function b(e,i){var s,n;const o=i.utils.theme,l=i.config,r={splits:e.splitsCount?(c=e.splitsCount,(e,t,i,s)=>{if(c<=2)return[i,s];const n=Math.abs(s-i)/(c-1);let o=n;const l=[];for(;i+o<s;)l.push(i+o),o+=n;return[i,...l,s]}):e.splits,show:"undefined"===typeof e.show||e.show,label:e.label||void 0,labelSize:e.labelSize||a.Y_AXIS_LABEL_SIZE,labelFont:e.labelFont||a.AXIS_LABEL_FONT,font:e.font||a.AXIS_VALUES_FONT,stroke:e.stroke||(()=>o.AXIS_STROKE),ticks:e.ticks?{...o.Y_AXIS_TICKS,...e.ticks}:o.Y_AXIS_TICKS,grid:l.grid||e.grid||o.GRID};var c;return e.scale===a.DEFAULT_X_SCALE?Object.assign(r,{getFormatter:y,gap:null!==(s=e.gap)&&void 0!==s?s:a.X_AXIS_TICK_GAP,size:(0,u.asFn)(e.size)||(()=>a.X_AXIS_SIZE),values:e.values||(0,t.getTimeFormatter)(l),ticks:e.ticks?{...o.X_AXIS_TICKS,...e.ticks}:o.X_AXIS_TICKS,scale:a.DEFAULT_X_SCALE,space:e.space||(()=>a.X_AXIS_SPACE),incrs:e.incrs||(()=>a.X_AXIS_INCRS.map((e=>e*(l.chart.timeMultiplier||a.TIME_MULTIPLIER)))),side:2,stroke:e.stroke||(()=>o.AXIS_STROKE)}):(Object.assign(r,{gap:null!==(n=e.gap)&&void 0!==n?n:a.Y_AXIS_TICK_GAP,size:(0,u.asFn)(e.size)||a.Y_AXIS_SIZE,values:e.values||f(e),scale:e.scale||a.DEFAULT_Y_SCALE,getFormatter:()=>(0,t.getDefaultNumberFormatter)("number"===typeof e.precision?e.precision:e.precision||"auto",""),...(0,t.getAxisPositioning)(e.side||"left",e.align)}),e.space&&(r.space=e.space),r)}function w(e){let t,i;return[e=e.replace(/(\d+)px/,((e,s)=>(0,u.px)(t=Math.round((i=Number(s))*window.devicePixelRatio)))),t,i]}t.getTimeFormatter=e=>{const t=e.chart.timeMultiplier||a.TIME_MULTIPLIER;return(e,i)=>{const s=y((i[i.length-1]-i[0])/t,i.length);return i.map((e=>s(e/t)))}},t.getRedrawOptionsForAxesUpdate=function(e){const t=[!1,!0];return Object.values(e).forEach((e=>{["align","side","size","label","labelFont","labelGap","labelSize"].some((t=>void 0!==e[t]))&&(t[1]=!0)})),t},t.updateAxis=function(e,t,i){var s,n,o;const l=b({...i,font:t.font},e);l.ticks={...t.ticks,...l.ticks},l.grid={...t.grid,...l.grid},l.border={...t.border,...l.border},l.splits=l.splits||t.splits,i.font&&i.font!==(null===(s=t.font)||void 0===s?void 0:s[0])&&(l.font=w(i.font)),i.labelFont&&i.labelFont!==(null===(n=t.labelFont)||void 0===n?void 0:n[0])&&(l.labelFont=w(i.labelFont)),Object.assign(t,l),null===(o=e.plugins.plotLines)||void 0===o||o.update(i.plotLines,i.scale)},t.configureAxes=function(e,t){const i=[];Object.entries(t.axes).forEach((([t,s])=>{i.push(b({...s,scale:t},e))}));const s=a.DEFAULT_X_SCALE,n=a.DEFAULT_Y_SCALE;return t.axes[s]||i.push(b({scale:s},e)),i.find((({scale:e})=>e!==s))||i.push(b({scale:n},e)),i}},25700:function(e,t,i){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=s(i(48840)),o=i(46976),l=i(50497),r=i(74947),a=i(48130),u=(e,t,i,s,n)=>{var o,r,a;const u=Array.isArray(i.$c)?i.$c:t;let c=u[s];if(n&&c===n.value){const e=null!==(o=n.snapToValues)&&void 0!==o?o:"closest";c=u[(0,l.findDataIdx)(u,i,s,e,n.value)]}else if(null===c){const t=null!==(r=e.snapToValues)&&void 0!==r?r:"closest",n=null!==(a=i.snapToValues)&&void 0!==a?a:t;c=u[(0,l.findDataIdx)(u,i,s,n,null)]}return c},c={maxLines:o.TOOLTIP_DEFAULT_MAX_LINES,highlight:!0,sum:!1,render:r.renderTooltip,pinable:!0,strategy:"pin",sort:void 0,showIndicies:!1,hideNoData:!1,className:"yagr-tooltip_default",xOffset:o.TOOLTIP_X_OFFSET,yOffset:o.TOOLTIP_Y_OFFSET,virtual:!1,showEmpty:!1,onUpdate:"reset"};class d{constructor(e,t={}){var i,s;this.handlers={init:[],mount:[],show:[],pin:[],unpin:[],hide:[],render:[],destroy:[],reset:[]},this.placement=n.default,this.renderTooltipCloses=()=>{},this.skipNextMouseUp=!1,this.emit=(e,t)=>{this.handlers[e].forEach((i=>{i(this.tOverlay,{state:this.state,actions:{pin:this.pin,show:this.show,hide:this.hide,dispose:this.dispose,reset:this.reset},data:t,yagr:this.yagr,event:e})}))},this.reset=()=>{var e;"none"!==this.opts.onUpdate?(this.state.visible&&this.hide(),this.state.pinned&&this.pin(!1),this.emit("reset")):null===(e=this.yagr.plugins.cursor)||void 0===e||e.pin(!1)},this.show=()=>{const e=!this.state.visible;this.state.visible=!0,this.tOverlay.style.display="block",e&&this.emit("show")},this.hide=()=>{const e=this.state.visible;this.state.visible=!1,this.tOverlay.style.display="none",this.emit("hide"),e&&this.emit("show")},this.pin=(e,t)=>{var i;this.state.pinned=e;const s=this.state.range||[];if(null===(i=this.yagr.plugins.cursor)||void 0===i||i.pin(e&&(null===s[1]||s.length<2)),this.opts.virtual)return this.emit(e?"pin":"unpin");t&&this.placement(this.tOverlay,{left:t.x+this.bLeft,top:this.bTop+t.y-(this.opts.yOffset||0)},"right",{bound:this.bound,xOffset:this.opts.xOffset,yOffset:this.opts.yOffset});const n=this.tOverlay.querySelector("._tooltip-list");e?(this.state.visible||this.show(),this.tOverlay.classList.add("yagr-tooltip_pinned"),n&&(null===n||void 0===n?void 0:n.clientHeight)&&(n.style.height=(0,l.px)(n.clientHeight)),this.opts.render===r.renderTooltip&&(document.addEventListener("mousemove",this.checkFocus),document.addEventListener("mousedown",this.detectClickOutside))):(this.tOverlay.classList.remove("yagr-tooltip_pinned"),this.opts.render===r.renderTooltip&&(document.removeEventListener("mousemove",this.checkFocus),document.removeEventListener("mousedown",this.detectClickOutside))),this.emit(e?"pin":"unpin")},this.checkFocus=e=>{const t=e.target;let i;t&&this.tOverlay.contains(t)&&t.classList.contains("yagr-tooltip__item")&&(i=t.dataset.series);const s=i?this.yagr.uplot.series[Number(i)]:null;i&&s?(this.state.focusedSeries=i,this.yagr.setFocus(s.id,!0)):this.state.focusedSeries&&(this.state.focusedSeries=null,this.yagr.setFocus(null,!0))},this.render=e=>{const t=this.yagr.uplot;let{left:i,top:s}=e;const{idx:n}=e,{opts:r,state:d}=this;if(r.show&&"function"===typeof r.show&&!1===r.show(this.yagr))return void this.hide();(i<0||s<0)&&!d.pinned&&this.isNotInDrag&&this.hide(),s=(0,l.inBetween)(s,0,t.bbox.top+t.bbox.height),i=(0,l.inBetween)(i,0,t.bbox.left+t.bbox.width);const{data:h}=t;if(null===h||(0,l.isNil)(n)||void 0===s)return;const f=h[0][n],p={},g={},m={};let _=t.series.length-1;for(;_>=1;){const e=t.series[_];if(!e.show){_-=1;continue}const i=e.scale||o.DEFAULT_Y_SCALE;m[i]=m[i]||[],m[i].push(_),_-=1}Object.entries(m).forEach((([e,o])=>{var c;g[e]=g[e]||{rows:[]};const d=g[e],h=Number(t.posToVal(s,e).toFixed(2)),f=(0,a.getOptionValue)(r.value,e);for(const i of o){const s=t.data[i],o=t.series[i];let l=u(this.yagr.config.cursor,s,o,n,this.interpolation),h=l;"string"===typeof l&&(h=l,l=null),(0,a.getOptionValue)(r.sum,e)&&(p[e]=p[e]||0,p[e]+=l||0);const g=s[n],m=o.$c&&o.$c[n]===this.stripValue?l:g;if(null===l&&r.hideNoData||!1===o.showInTooltip)continue;const _=null!==(c=o.precision)&&void 0!==c?c:(0,a.getOptionValue)(r.precision,e),v=o.formatter?o.formatter(h,o):f(h,_),y={id:o.id,name:o.name,dataValue:o.$c[n],originalValue:l,value:v,y:m,displayY:g,color:this.yagr.getSerieLegendColor(o),seriesIdx:i,rowIdx:d.rows.length?d.rows[d.rows.length-1].rowIdx+1:0};o.normalizedData&&(y.transformed=o.normalizedData[n]),o._transformed&&(y.transformed=s[n]),r.omitBy&&r.omitBy(y)||d.rows.push(y)}if((0,a.getOptionValue)(r.highlight,e)&&d.rows.length){const u=(0,a.getOptionValue)(r.tracking,e);let c=0;"area"===u?c=(0,l.findInRange)(d,h,(0,a.getOptionValue)(r.stickToRanges,e)):"sticky"===u?c=(0,l.findSticky)(d,h):"function"===typeof u&&(c=u(d,h,{x:t.posToVal(i,"x"),y:t.posToVal(s,e),idx:n,scale:e,series:this.yagr.series,serieIndicies:o,interpolation:this.interpolation})),null!==c&&(d.rows[c].active=!0)}const m=(0,a.getOptionValue)(r.sort,e);m&&d.rows.sort(m)}));if(!Object.values(g).some((({rows:e})=>e.length>0))&&!r.showEmpty)return void this.hide();this.onMouseEnter();const v=this.over.getBoundingClientRect();this.bLeft=v.left,this.bTop=v.top,this.bWidth=v.width;const y={left:i+this.bLeft,top:this.bTop+s-(r.yOffset||0)};this.renderTooltipCloses=()=>{const e={scales:Object.entries(g).map((([e,t])=>({scale:e,rows:t.rows,sum:p[e]}))),options:r,x:f},t=Object.values(g).some((({rows:e})=>e.filter((({id:e})=>{var t;return null===(t=this.yagr.getSeriesById(e))||void 0===t?void 0:t.show})).length>0));t||r.showEmpty?(r.virtual||(this.tOverlay.innerHTML=r.render({...e,state:d,yagr:this.yagr,defaultRender:c.render}),this.placement(this.tOverlay,y,"right",{bound:this.bound,xOffset:r.xOffset,yOffset:r.yOffset})),this.emit("render",{...e,anchor:y})):this.hide()},d.pinned||this.renderTooltipCloses()},this.initWithUplot=e=>{this.over=e.root.querySelector(".u-over"),this.over.addEventListener("mousedown",this.onMouseDown),this.over.addEventListener("mousemove",this.onMouseMove),this.over.addEventListener("mouseenter",this.onMouseEnter),this.over.addEventListener("mouseleave",this.onMouseLeave),document.addEventListener("mouseup",this.onMouseUp)},this.setSize=()=>{const e=this.over.getBoundingClientRect();this.bLeft=e.left,this.bTop=e.top},this.dispose=()=>{this.over.removeEventListener("mousedown",this.onMouseDown),this.over.removeEventListener("mousemove",this.onMouseMove),this.over.removeEventListener("mouseenter",this.onMouseEnter),this.over.removeEventListener("mouseleave",this.onMouseLeave),document.removeEventListener("mouseup",this.onMouseUp),document.removeEventListener("mousemove",this.checkFocus),document.removeEventListener("mousedown",this.detectClickOutside),this.tOverlay.remove(),this.state.mounted=!1,this.emit("destroy")},this.updateOptions=e=>{Object.assign(this.opts,e),this.tOverlay.className=`yagr-tooltip ${this.opts.className||""}`},this.on=(e,t)=>{this.handlers[e].push(t)},this.off=(e,t)=>{this.handlers[e]=this.handlers[e].filter((e=>e!==t))},this.detectClickOutside=e=>{const t=e.target;if(t instanceof Element){const e=t&&this.tOverlay.contains(t),i=t&&this.over.contains(t);e||i||(this.pin(!1),this.hide())}},this.onMouseDown=e=>{this.state.range=[this.getCursorPosition(),null],this.state.pinned&&(this.pin(!1),this.hide(),this.render({left:e.clientX-this.bLeft,top:e.clientY-this.bTop,idx:this.yagr.uplot.posToIdx(e.clientX-this.bLeft)}),this.skipNextMouseUp=!0)},this.onMouseMove=()=>{var e;(null===(e=this.state.range)||void 0===e?void 0:e.length)&&(this.state.range[1]=this.getCursorPosition())},this.setCursorLeaved=e=>{const t=this.over.getBoundingClientRect(),i=e.clientX,s=this.state.range,n=s[0],o=i-t.left>n.clientX,l=this.yagr.config.timeline;let r;o?(s[1]={clientX:this.bWidth,value:this.yagr.uplot.posToVal(this.bWidth,"x"),idx:l.length-1},r=s[1]):(s[1]=s[0],s[0]={clientX:0,value:this.yagr.uplot.posToVal(0,"x"),idx:0},r=s[0]),this.yagr.uplot.setCursor({left:r.clientX,top:e.clientY-t.top})},this.onMouseUp=e=>{if(null===this.state.range)return;const[t]=this.state.range||[];let i;if(i=e.target===this.over?this.getCursorPosition():this.state.range[1],"none"===this.opts.strategy)return;const s=t&&t.clientX===(null===i||void 0===i?void 0:i.clientX),n=t&&t.clientX!==(null===i||void 0===i?void 0:i.clientX),o=this.opts.strategy;(s&&!this.skipNextMouseUp&&"drag"!==o||n&&("all"===o||"drag"===o))&&(this.pin(!this.state.pinned),this.show(),this.renderTooltipCloses()),this.state.range=null,this.skipNextMouseUp=!1},this.onMouseEnter=()=>{this.show()},this.onMouseLeave=e=>{var t;const i=this.state.pinned;(null===(t=this.state.range)||void 0===t?void 0:t[0])&&this.setCursorLeaved(e),!i&&this.isNotInDrag&&this.hide()},this.defaultTooltipValueFormatter=(e,t)=>{const i=this.yagr.config.processing||{};return"string"===typeof e?i.nullValues&&i.nullValues.hasOwnProperty(e)?i.nullValues[e]:"-":"number"===typeof e?e.toFixed("number"===typeof t?t:"number"===typeof this.opts.precision?this.opts.precision:2):"-"},this.getCursorPosition=()=>{const e=this.yagr.uplot.cursor.left;return void 0===e?null:{clientX:e,value:this.yagr.uplot.posToVal(e,"x"),idx:this.yagr.uplot.posToIdx(e)}},this.yagr=e,this.over=null===(i=null===e||void 0===e?void 0:e.uplot)||void 0===i?void 0:i.over,this.opts={...c,strategy:t.pinable?"pin":c.strategy,tracking:"area"===(null===(s=e.config.chart.series)||void 0===s?void 0:s.type)?"area":"sticky",value:this.defaultTooltipValueFormatter,...t},this.bound=this.opts.boundClassName&&document.querySelector(this.opts.boundClassName)||document.body,this.renderNode=this.opts.renderClassName&&document.querySelector(this.opts.renderClassName)||document.body,this.tOverlay=document.createElement("div"),this.tOverlay.id=`${e.id}_tooltip`,this.tOverlay.className=`yagr-tooltip ${this.opts.className||""}`,this.tOverlay.style.display="none",this.state={mounted:!1,pinned:!1,visible:!1,range:null,focusedSeries:null},this.bLeft=0,this.bTop=0,this.bWidth=0,this.opts.virtual?this.placement=()=>{}:(this.renderNode.appendChild(this.tOverlay),this.state.mounted=!0,this.emit("mount"))}get interpolation(){var e;return null===(e=this.yagr.config.processing)||void 0===e?void 0:e.interpolation}get stripValue(){return this.interpolation?this.interpolation.value:void 0}get isNotInDrag(){var e;return"none"===this.opts.strategy||"pin"===this.opts.strategy||!(null===(e=this.state.range)||void 0===e?void 0:e[1])}}t.default=function(e,t={}){const i=new d(e,t),s=()=>({hooks:{destroy:()=>{i.dispose()},init:e=>{i.initWithUplot(e)},setSize:()=>{i.setSize()},setCursor:e=>{i.render(e.cursor)}}}),n=s();return{state:i.state,pin:i.pin,show:i.show,hide:i.hide,uplot:n,display:i.render,updateOptions:i.updateOptions,on:i.on,off:i.off,tooltip:i,dispose:i.dispose,reInit:function(e){const t=s();i.reset(),e.hooks.init.push(t.hooks.init),e.hooks.destroy.push(t.hooks.destroy),e.hooks.setSize.push(t.hooks.setSize),e.hooks.setCursor.push(t.hooks.setCursor)},reset:i.reset}}},27658:function(e,t,i){var s=this&&this.__createBinding||(Object.create?function(e,t,i,s){void 0===s&&(s=i);var n=Object.getOwnPropertyDescriptor(t,i);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,n)}:function(e,t,i,s){void 0===s&&(s=i),e[s]=t[i]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&s(t,e,i);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.getPaddingByAxes=void 0;const l=o(i(46976));t.getPaddingByAxes=function(e){let t=!1,i=!1;return e.axes?e.axes.forEach((e=>{e.scale!==l.DEFAULT_X_SCALE&&(void 0!==e.side&&3!==e.side||(t=!0),1===e.side&&(i=!0))})):t=!0,t&&!i?l.PADDING_LEFT:i&&!t?l.PADDING_RIGHT:l.PADDING_BOTH}},28265:function(e,t,i){var s=this&&this.__createBinding||(Object.create?function(e,t,i,s){void 0===s&&(s=i);var n=Object.getOwnPropertyDescriptor(t,i);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,n)}:function(e,t,i,s){void 0===s&&(s=i),e[s]=t[i]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&s(t,e,i);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.overrideSeriesInUpdate=t.configureSeries=void 0;const l=o(i(46976)),r=i(50497),a=i(20500),u=i(67903),c=i(88274);function d(e,t,i,s){if(void 0!==e[i])return e[i];const n=t.config.chart.series;return n&&i in n?n[i]:s}t.configureSeries=function(e,t,i){var s,n;const o=d(t,e,"type","line"),h={...t,type:o,show:null===(s=t.show)||void 0===s||s,name:t.name||`${e.utils.i18n("series")} ${i+1}`,color:t.color?e.utils.colors.parse(t.color):e.utils.theme.DEFAULT_LINE_COLOR,id:(void 0===t.id?t.name:String(t.id))||(0,r.genId)(),$c:t.data,scale:t.scale||l.DEFAULT_Y_SCALE,count:0,sum:0,avg:0,getFocusedColor:a.getFocusedColor};h.points=h.points||{};const f=(0,a.getSerieFocusColors)(e,"color");return"area"===h.type&&(h.lineColor=e.utils.colors.parse(d(t,e,"lineColor",l.SERIE_AREA_BORDER_COLOR)),h.lineWidth=d(t,e,"lineWidth",l.SERIE_AREA_BORDER_WIDTH),h.fill=f,h.stroke=(0,a.getSerieFocusColors)(e,"lineColor"),h.width=h.lineWidth,h.points.show=u.drawMarkersIfRequired,h.interpolation=d(t,e,"interpolation","linear"),h.spanGaps=d(t,e,"spanGaps",!1)),"line"===h.type&&(h.width=d(t,e,"width",l.SERIE_LINE_WIDTH),h.width=h.width||l.SERIE_LINE_WIDTH,h.stroke=f,h.points.show=u.drawMarkersIfRequired,h.interpolation=d(t,e,"interpolation","linear"),h.spanGaps=d(t,e,"spanGaps",!1)),"column"===h.type&&(h.stroke=f,h.fill=f,h.points.show=!1,h.width=null!==(n=h.width)&&void 0!==n?n:0,h.renderOptions=d(h,e,"renderOptions")),"dots"===h.type&&(h.stroke=()=>h.color,h.fill=f,h.width=2,h.pointsSize=d(h,e,"pointsSize",l.DEFAULT_POINT_SIZE)),h.paths=c.pathsRenderer,h};t.overrideSeriesInUpdate=(e,t)=>{var i,s,n,o,l,r,a,u,c,d,h,f;e.$c=null!==(i=t.$c)&&void 0!==i?i:e.$c,e.show=null!==(s=t.show)&&void 0!==s?s:e.show,e.data=null!==(n=t.data)&&void 0!==n?n:e.data,e.width=null!==(o=t.width)&&void 0!==o?o:e.width,e.pointsSize=null!==(l=t.pointsSize)&&void 0!==l?l:e.pointsSize,e.color=null!==(r=t.color)&&void 0!==r?r:e.color,e.lineColor=null!==(a=t.lineColor)&&void 0!==a?a:e.lineColor,e.lineWidth=null!==(u=t.lineWidth)&&void 0!==u?u:e.lineWidth,e.stroke=null!==(c=t.stroke)&&void 0!==c?c:e.stroke,e.getFocusedColor=null!==(d=t.getFocusedColor)&&void 0!==d?d:e.getFocusedColor,e.formatter=null!==(h=t.formatter)&&void 0!==h?h:e.formatter,e.paths=null!==(f=t.paths)&&void 0!==f?f:e.paths}},32532:function(e,t,i){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BatchMixin=void 0;const n=s(i(16381)),o=s(i(72168));t.BatchMixin=class{initMixin(){this._batch={active:!1,fns:[]}}batch(e){var t;return this._batch.active?e(this._batch):(this._batch.active=!0,e(this._batch),this._batch.reinit?this.fullUpdate():(this._batch.redrawLegend&&(null===(t=this.plugins.legend)||void 0===t||t.redraw()),this._batch.reopt&&this.createUplotOptions(!0),this._batch.recalc&&this.inStage("processing",(()=>{this.transformSeries()})).inStage("listen"),this._batch.fns.length&&this.uplot.batch((()=>this._batch.fns.forEach((e=>e(this._batch))))),this._batch.redraw&&this.uplot&&this.redraw(...this._batch.redraw),void(this._batch={active:!1,fns:[]})))}fullUpdate(){let e,t;this.inStage("dispose",(()=>{var i;if(this.uplot){const i=this.uplot.cursor;e=i.left,t=i.top,this.uplot.destroy()}null===(i=this.plugins.legend)||void 0===i||i.destroy()})).inStage("config",(()=>{this.plugins.legend=new o.default,this._batch={active:!1,fns:[]},this.createUplotOptions(!0),this.options=this.config.editUplotOptions?this.config.editUplotOptions(this.options):this.options})).inStage("processing",(()=>{this.transformSeries()})).inStage("uplot",(()=>{this.uplot=new n.default(this.options,this.series,this.initRender),e&&t&&e>0&&t>0&&this.uplot.setCursor({left:e,top:t}),this.state.subscribed||this.unsubscribe()})).inStage("listen")}}},37100:function(e,t,i){var s=this&&this.__createBinding||(Object.create?function(e,t,i,s){void 0===s&&(s=i);var n=Object.getOwnPropertyDescriptor(t,i);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,n)}:function(e,t,i,s){void 0===s&&(s=i),e[s]=t[i]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&s(t,e,i);return n(t,e),t},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=l(i(16381)),a=l(i(72168)),u=i(50497),c=l(i(20500)),d=o(i(46976)),h=l(i(576)),f=i(2836),p=i(78229),g=i(65781),m=i(87102),_=i(32532);class v{get isEmpty(){return this.state.isEmptyDataSet}constructor(e,t){this.plugins={},this._meta={},this._uHooks={},this.init=()=>{var e;(null===(e=this.config.chart.size)||void 0===e?void 0:e.adaptive)&&!this.resizeOb&&(this.resizeOb=new ResizeObserver((0,u.debounce)(this.onResize,this.config.chart.size.resizeDebounceMs||100)),this.resizeOb.observe(this.root)),this.config.hooks.dispose||(this.config.hooks.dispose=[]),this.unsubscribe(),this.config.hooks.dispose.push(this.trackMouse())},this.execHooks=(e,...t)=>{const i=this.config.hooks[e];if(Array.isArray(i))for(const s of i)s&&"function"===typeof s&&s(...t)},this.initRender=(e,t)=>{var i,s,n;const o=null===(i=this.config.legend)||void 0===i?void 0:i.position;this.root.firstChild?o&&"bottom"!==o?this.root.appendChild(e.root):this.root.insertBefore(e.root,this.root.firstChild):o&&"bottom"!==o?this.root.insertBefore(e.root,this.root.firstChild):this.root.appendChild(e.root),(null===(s=this.config.legend)||void 0===s?void 0:s.show)&&(null===(n=this.plugins.legend)||void 0===n||n.init(e),this.reflow(!1)),this.initTitle(),t()},this.onResize=e=>{var t;const[i]=e;this._cache.height===i.contentRect.height&&this._cache.width===i.contentRect.width||(null===(t=this.plugins.tooltip)||void 0===t||t.reset(),this.reflow(),this.execHooks("resize",{entries:e,chart:this}))},this.initMixins(),this._startTime=performance.now(),this.state={isEmptyDataSet:!1,isMouseOver:!1,stage:"config",y2uIdx:{},subscribed:!1};const i=Object.assign({title:{},data:[],axes:{},series:[],scales:{},hooks:{},settings:{},chart:{},cursor:{},plugins:{},legend:{show:!1},tooltip:{show:!0},grid:null,markers:{}},t);this.config=i,this.inStage("config",(()=>{var t;this.id=e.id||(0,u.genId)(),this.root=e,this.root.classList.add("yagr"),this.root.id||(this.root.id=this.id);const s=new c.default,n=this.config.cursor.sync,o=this.config.chart;o.series||(o.series={type:"line"}),o.size||(o.size={adaptive:!0}),o.appearance||(o.appearance={locale:"en"}),o.select||(o.select={}),this.utils={colors:s,i18n:(0,h.default)((null===(t=i.chart.appearance)||void 0===t?void 0:t.locale)||"en"),theme:new d.default(s)},s.setContext(e),n&&(this.utils.sync=r.default.sync("string"===typeof n?n:d.DEFAULT_SYNC_KEY)),!o.size.adaptive&&o.size.width&&o.size.height&&(e.style.width=(0,u.px)(o.size.width),e.style.height=(0,u.px)(o.size.height)),this.plugins.legend=new a.default,this.setTheme(o.appearance.theme||"light"),this.createUplotOptions(),this._cache={height:this.options.height,width:this.options.width},i.editUplotOptions&&(this.options=i.editUplotOptions(this.options))})).inStage("processing",(()=>{this.transformSeries()})).inStage("uplot",(()=>{this.uplot=new r.default(this.options,this.series,this.initRender),this.canvas=e.querySelector("canvas"),this.init();const t=performance.now()-this._startTime;this._meta.processTime=t})).inStage("render")}redraw(e=!0,t=!0){this.uplot.redraw(e,t)}getSeriesById(e){return this.uplot.series[this.state.y2uIdx[e]]}getSerieLegendColor(e){const{legendColorKey:t,color:i,lineColor:s}=e;let n=i;switch(t){case"lineColor":s&&(n=s);break;case"color":n=i}return n}dispose(){var e,t,i,s;this.resizeOb&&this.resizeOb.unobserve(this.root),this.unsubscribe(),null===(t=null===(e=this.plugins)||void 0===e?void 0:e.tooltip)||void 0===t||t.dispose(),null===(s=null===(i=this.plugins)||void 0===i?void 0:i.legend)||void 0===s||s.destroy(),this.uplot.destroy(),this._uHooks={},this.execHooks("dispose",{chart:this})}toDataUrl(){return this.canvas.toDataURL("img/png")}subscribe(){var e;this.state.subscribed||(null===(e=this.utils.sync)||void 0===e||e.sub(this.uplot),this.state.subscribed=!0)}unsubscribe(){var e;null===(e=this.utils.sync)||void 0===e||e.unsub(this.uplot),this.state.subscribed=!1}inStage(e,t){this.state.stage,this.execHooks("stage",{chart:this,stage:e});try{t&&t()}catch(i){console.error(i),this.onError(i)}return this}initTitle(){if(this.config.title&&this.config.title.fontSize){const e=this.config.title.fontSize,t=this.root.querySelector(".u-title");t.setAttribute("style",`font-size:${e}px;line-height:${e}px;`),t.innerHTML=this.config.title.text}}onError(e){return this.execHooks("error",{stage:this.state.stage,error:e,chart:this}),e}trackMouse(){const e=()=>{this.state.isMouseOver=!0},t=()=>{this.state.isMouseOver=!1};return this.root.addEventListener("mouseover",e),this.root.addEventListener("mouseleave",t),()=>{this.root.removeEventListener("mouseover",e),this.root.removeEventListener("mouseleave",t)}}get clientHeight(){var e;const t=this.config.title.text?(this.config.title.fontSize||d.DEFAULT_TITLE_FONT_SIZE)+8:0;return this.root.clientHeight-t-((null===(e=this.plugins.legend)||void 0===e?void 0:e.state.totalSpace)||0)}reflow(e=!0){const t=this.root.clientWidth,i=this.clientHeight;this._cache.width=t,this.options.width=t,this._cache.height=i,this.options.height=i,e&&this.uplot.setSize({width:this.options.width,height:this.options.height}),e&&this.uplot.redraw()}}(0,m.applyMixins)(v,[f.CreateUplotOptionsMixin,p.TransformSeriesMixin,g.DynamicUpdatesMixin,_.BatchMixin]),t.default=v},46976:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TIME_MULTIPLIER=t.TOOLTIP_DEFAULT_MAX_LINES=t.TOOLTIP_X_OFFSET=t.TOOLTIP_Y_OFFSET=t.MIN_SELECTION_WIDTH=t.CURSOR_STYLE=t.MARKER_DIAMETER=t.SERIE_AREA_BORDER_WIDTH=t.SERIE_AREA_BORDER_COLOR=t.SERIE_LINE_WIDTH=t.SERIE_COLOR=t.PADDING_BOTH=t.PADDING_RIGHT=t.PADDING_LEFT=t.BARS_DRAW_MAX=t.BARS_DRAW_FACTOR=t.TYPES_ORDER=t.X_AXIS_INCRS=t.X_AXIS_SPACE=t.X_AXIS_SIZE=t.X_AXIS_TICK_GAP=t.DECADE=t.YEAR=t.DAY=t.HOUR=t.MINUTE=t.SECOND=t.Y_AXIS_LABEL_SIZE=t.Y_AXIS_SIZE=t.DEFAULT_Y_AXIS_LABEL_PADDING=t.DEFAULT_Y_AXIS_PADDING=t.DEFAULT_Y_AXIS_SIZE=t.Y_AXIS_TICK_GAP=t.AXIS_VALUES_FONT=t.AXIS_LABEL_FONT=t.DEFAULT_AXIS_FONT_SIZE=t.DARK_DEFAULT_LINE_COLOR=t.LIGHT_DEFAULT_LINE_COLOR=t.DEFAULT_TITLE_FONT_SIZE=t.DEFAULT_SYNC_KEY=t.DEFAULT_POINT_SIZE=t.DEFAULT_LOGARITHMIC_MIN_SCALE_VALUE=t.DEFAULT_SCALE_MIN_RANGE=t.DEFAULT_Y_AXIS_OFFSET=t.DEFAULT_MAX_TICKS=t.DEFAULT_CANVAS_PIXEL_RATIO=t.DEFAULT_FOCUS_ALPHA=t.DEFAULT_Y_SCALE=t.DEFAULT_X_SCALE=t.DEFAULT_X_SERIE_NAME=void 0,t.DEFAULT_X_SERIE_NAME="date",t.DEFAULT_X_SCALE="x",t.DEFAULT_Y_SCALE="y",t.DEFAULT_FOCUS_ALPHA=.3,t.DEFAULT_CANVAS_PIXEL_RATIO="undefined"===typeof window?1:window.devicePixelRatio,t.DEFAULT_MAX_TICKS=5,t.DEFAULT_Y_AXIS_OFFSET=.05,t.DEFAULT_SCALE_MIN_RANGE=.01,t.DEFAULT_LOGARITHMIC_MIN_SCALE_VALUE=.001,t.DEFAULT_POINT_SIZE=t.DEFAULT_CANVAS_PIXEL_RATIO>=2?4:2,t.DEFAULT_SYNC_KEY="sync",t.DEFAULT_TITLE_FONT_SIZE=14,t.LIGHT_DEFAULT_LINE_COLOR="#222222",t.DARK_DEFAULT_LINE_COLOR="#eeeeee",t.DEFAULT_AXIS_FONT_SIZE=11,t.AXIS_LABEL_FONT="normal 11px Lucida Grande, Arial, Helvetica, sans-serif",t.AXIS_VALUES_FONT="11px Lucida Grande, Arial, Helvetica, sans-serif",t.Y_AXIS_TICK_GAP=6,t.DEFAULT_Y_AXIS_SIZE=12,t.DEFAULT_Y_AXIS_PADDING=12,t.DEFAULT_Y_AXIS_LABEL_PADDING=2;t.Y_AXIS_SIZE=(e,i,s)=>{if(!i)return t.DEFAULT_Y_AXIS_SIZE;const n=i.reduce(((e,t)=>e.length>t.length?e:t)),{ctx:o}=e;o.save();const l=e.axes[s];o.font=l.font?l.font[0]:t.AXIS_VALUES_FONT;const{width:r}=o.measureText(n);o.restore();let a=0;if(l.label){a=l.labelSize||t.DEFAULT_AXIS_FONT_SIZE,o.font=l.labelFont?l.labelFont[0]:t.AXIS_LABEL_FONT;const{fontBoundingBoxAscent:e}=o.measureText(l.label);a=e,o.restore()}return a?r/t.DEFAULT_CANVAS_PIXEL_RATIO+a/t.DEFAULT_CANVAS_PIXEL_RATIO+t.DEFAULT_Y_AXIS_LABEL_PADDING:r/t.DEFAULT_CANVAS_PIXEL_RATIO+t.DEFAULT_Y_AXIS_PADDING},t.Y_AXIS_LABEL_SIZE=11,t.SECOND=1e3,t.MINUTE=60*t.SECOND,t.HOUR=60*t.MINUTE,t.DAY=24*t.HOUR,t.YEAR=365*t.DAY,t.DECADE=10*t.YEAR,t.X_AXIS_TICK_GAP=6,t.X_AXIS_SIZE=32,t.X_AXIS_SPACE=80,t.X_AXIS_INCRS=[1,10,50,100,200,500,t.SECOND,2*t.SECOND,5*t.SECOND,10*t.SECOND,15*t.SECOND,30*t.SECOND,t.MINUTE,5*t.MINUTE,10*t.MINUTE,30*t.MINUTE,t.HOUR,2*t.HOUR,3*t.HOUR,4*t.HOUR,6*t.HOUR,12*t.HOUR,t.DAY,2*t.DAY,3*t.DAY,5*t.DAY,10*t.DAY,15*t.DAY,30*t.DAY,60*t.DAY,120*t.DAY,180*t.DAY,t.YEAR,2*t.YEAR,5*t.YEAR,10*t.YEAR],t.TYPES_ORDER=["dots","line","area","column"],t.BARS_DRAW_FACTOR=.5,t.BARS_DRAW_MAX=100,t.PADDING_LEFT=[14,14,0,4],t.PADDING_RIGHT=[14,4,0,14],t.PADDING_BOTH=[14,4,0,4],t.SERIE_COLOR="rgba(0, 0, 0, 1)",t.SERIE_LINE_WIDTH=2,t.SERIE_AREA_BORDER_COLOR="rgba(0, 0, 0, 0.2)",t.SERIE_AREA_BORDER_WIDTH=1,t.MARKER_DIAMETER=8,t.CURSOR_STYLE="1px solid #ffa0a0",t.MIN_SELECTION_WIDTH=15;t.default=class{constructor(e,t="light"){this.setTheme(t),this.colors=e}setTheme(e){this.theme=e}get GRID(){return{show:!0,stroke:()=>this.colors.parse("--yagr-grid"),width:1}}get X_AXIS_TICKS(){return{size:8,...this.GRID}}get Y_AXIS_TICKS(){return{size:6,...this.GRID}}get AXIS_STROKE(){return this.colors.parse("--yagr-axis-stroke")}get BACKGROUND(){return this.colors.parse("--yagr-background")}get SHIFT(){var e;return(null===(e=this.theme)||void 0===e?void 0:e.startsWith("light"))?.68:-.6}get DEFAULT_LINE_COLOR(){var e;return(null===(e=this.theme)||void 0===e?void 0:e.startsWith("light"))?t.LIGHT_DEFAULT_LINE_COLOR:t.DARK_DEFAULT_LINE_COLOR}},t.TOOLTIP_Y_OFFSET=24,t.TOOLTIP_X_OFFSET=24,t.TOOLTIP_DEFAULT_MAX_LINES=10,t.TIME_MULTIPLIER=1},48130:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.escapeHTML=t.getOptionValue=void 0,t.getOptionValue=function(e,t){return"object"===typeof e?e[t]:e},t.escapeHTML=function(e){const t=document.createElement("span");return t.innerText=e,t.innerHTML}},48643:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Axis=t.Scale=t.DrawOrderKey=void 0,t.DrawOrderKey={Series:"series",Axes:"axes"},t.Scale={Distr:{Linear:1,Ordinal:2,Logarithmic:3,ArcSinh:4,Custom:5}},t.Axis={Side:{Top:0,Right:1,Bottom:2,Left:3},Align:{Right:0,Left:1}}},48840:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});const s=i(50497),n={size:["height","width"],clientSize:["clientHeight","clientWidth"],offsetSize:["offsetHeight","offsetWidth"],maxSize:["maxHeight","maxWidth"],before:["top","left"],marginBefore:["marginTop","marginLeft"],after:["bottom","right"],marginAfter:["marginBottom","marginRight"],scrollOffset:["pageYOffset","pageXOffset"],offset:["offsetY","offsetY"],offsetOpt:["yOffset","xOffset"],bodyScroll:["scrollHeight","scrollWidth"],inner:["innerHeight","innerWidth"]};function o(e){return{top:e.top,bottom:e.bottom,left:e.left,right:e.right}}t.default=function(e,t,i="bottom",l={}){let r;r=t instanceof Element||t instanceof Range?o(e.getBoundingClientRect()):t;const a=Object.assign({top:r.bottom||0,bottom:r.top||0,left:r.right||0,right:r.left||0},r),u={top:0,left:0,bottom:window.innerHeight,right:window.innerWidth};l.bound&&((l.bound instanceof Element||l.bound instanceof Range)&&(l.bound=o(l.bound.getBoundingClientRect())),Object.assign(u,l.bound));const c=getComputedStyle(e),{primary:d,secondary:h}=Object.entries(n).reduce(((e,[t,s])=>({primary:{...e.primary,[t]:s["top"===i||"bottom"===i?0:1]},secondary:{...e.secondary,[t]:s["top"===i||"bottom"===i?1:0]}})),{primary:{},secondary:{}});e.style.position="absolute",e.style.maxWidth="",e.style.maxHeight="";const f=l[d.offsetOpt]||0,p=parseInt(c[h.marginBefore],10),g=p+parseInt(c[h.marginAfter],10),m=u[h.after]-u[h.before]-g,_=parseInt(c[h.maxSize],10);(!_||m<_)&&(e.style[h.maxSize]=(0,s.px)(m));const v=parseInt(c[d.marginBefore],10)+parseInt(c[d.marginAfter],10),y=a[d.before]-u[d.before]-v,b=u[d.after]-a[d.after]-v-f;(i===d.before&&e[d.offsetSize]>y||i===d.after&&e[d.offsetSize]>b)&&(i=y>b?d.before:d.after);const w=i===d.before?y:b,E=parseInt(c[d.maxSize],10);(!E||w<E)&&(e.style[d.maxSize]=(0,s.px)(w));const S=document.body[d.bodyScroll]-window[d.inner],x=Math.max(Math.min(window[d.scrollOffset],S),0),A=t=>Math.max(u[d.before],Math.min(t,u[d.after]-e[d.offsetSize]-v));i===d.before?(e.style[d.before]=x+A(a[d.before]-e[d.offsetSize]-v)-f+"px",e.style[d.after]="auto"):(e.style[d.before]=(0,s.px)(x+A(a[d.after])+f),e.style[d.after]="auto");const T=document.body[h.bodyScroll]-window[h.inner],O=Math.max(Math.min(window[h.scrollOffset],T),0);var L;return e.style[h.before]=(0,s.px)(O+(L=a[h.before]-p,Math.max(u[h.before],Math.min(L,u[h.after]-e[h.offsetSize]-g)))),e.style[h.after]="auto",e.dataset.side=i,{side:i,anchorRect:a,boundRect:u}}},50497:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.inBetween=t.isNil=t.asPlain=t.asFn=t.deepIsEqual=t.get=t.html=t.px=t.debounce=t.exec=t.preprocess=t.genId=t.findDataIdx=t.toFixed=t.getUnitSuffix=t.findSticky=t.getSumByIdx=t.findInRange=void 0;t.findInRange=(e,t,i=!0)=>{const s=t>=0;let n=-1/0,o=null,l=1/0,r=null;const a=[];let u=null;for(let c=e.rows.length-1;c>=0;c--){const i=e.rows[c],{displayY:d,rowIdx:h}=i;let f;null!==d&&(d>n&&(n=d,o=i.rowIdx),d<l&&(l=d,r=i.rowIdx)),f=null===d||(s?d<0:d>=0)?null:s?t>d?null:d-t:t<d?null:Math.abs(d-t);const p=null===u?1/0:a[u],g=null===f?p:Math.min(p,f);(null!==f&&p===f||g!==p)&&(u=h)}return null===u&&i?t>=n?o:t<=l?r:null:u};t.getSumByIdx=(e,t,i)=>{let s=0,n=0;for(;n<e.length;){const o=e[e.length-n-1],l=o.$c;if(n+=1,o.scale!==i||!1===o.show)continue;const r=l[t];s+="number"===typeof r?r:0}return s};t.findSticky=(e,t)=>{let i,s,n=0;for(;!s&&n<e.rows.length;){const o=e.rows[n].displayY;null!==o&&(i=n,s=Math.abs(o-(t||0))),n+=1}if(!s||void 0===i)return null;for(n=i+1;n<e.rows.length;n++){const o=e.rows[n].displayY;if(null===o)continue;const l=Math.abs(o-t);s>l&&(s=l,i=n)}return i};t.getUnitSuffix=e=>e>=1e18?[1e18,"E"]:e>=1e15?[1e15,"P"]:e>=1e12?[1e12,"T"]:e>=1e9?[1e9,"G"]:e>=1e6?[1e6,"M"]:e>=1e3?[1e3,"K"]:[1,""],t.toFixed=function(e,t){if(0===t)return parseInt(e);if(Number.isInteger(e))return e+"."+"0".repeat(t);const[i,s]=e.toString().split(".");return s.length>=t?`${i}.${s.slice(0,t)}`:`${i}.${s}${"0".repeat(t-s.length)}`},t.findDataIdx=function(e,t,i,s="closest",n=null){var o;let l=i,r=i;const a=null!==(o=t.snapToValues)&&void 0!==o?o:s;if(!1===a)return i;if("left"===a||"closest"===a)for(let u=i-1;u>=0;u--)if(e[u]!==n){l=u;break}if("right"===a||"closest"===a)for(let u=i+1;u<e.length;u++)if(e[u]!==n){r=u;break}return"left"===a?l:"right"===a?r:r-i>i-l?l:r};const i=(e,t,i,s,n,o,l,r="linear")=>{let a=null;const u=e[o];switch(r){case"linear":if(null===t||null===i)return null;a=t+(u-s)*(i-t)/(n-s),(isNaN(a)||Math.abs(a)===1/0)&&(a=null);break;case"previous":a=t;break;case"next":a=i;break;case"left":a=l[l.length-1]===e.length-1||null===i?null:t;break;case"right":a=0===l[0]?null:i;break;case"closest":a=Math.abs(s-e[o])<Math.abs(n-e[o])?t:i;break;default:a=r}return a};t.genId=()=>Date.now().toString(36)+Math.random().toString(36).substring(2);t.preprocess=(e,t,s)=>{const n=[],o=s.nullValues||{},l=s.interpolation;for(let r=0;r<e.length;r++){const s=e[r],a=[];let u,c,d=[],h=null,f=null;for(let e=0;e<s.length;e++){let n=s[e];if(l&&n===l.value)d.push(e);else{if(o[n]&&(n=null),d.length){f=n,c=t[e];for(const e of d)a[e]=i(t,h,f,u||t[0],c||t[t.length-1],e,d,l&&l.type);d=[]}h=n,u=t[e],a.push(n)}}if(f=null,d.length)for(const e of d)a.push(i(t,h,f,u||t[0],c||t[t.length-1],e,d,l&&l.type));n.push(a)}return n};t.exec=(e,...t)=>"function"===typeof e?e(...t):e,t.debounce=function(e,t=300){let i;return(...s)=>{clearTimeout(i),i=setTimeout((()=>e(...s)),t)}};t.px=e=>e+"px";function s(e){return null===e||void 0===e}t.html=(e,t={},i)=>{const s=document.createElement(e);return Object.keys(t).forEach((e=>{const i=t[e];s.setAttribute(e,"object"===typeof i?Object.entries(i).map((([e,t])=>`${e}:${t}`)).join(";"):i)})),i&&("string"===typeof i?s.innerHTML=i:s.appendChild(i)),s},t.get=function(e,t){return t.split(".").reduce(((e,t)=>{var i,s;return null!==(s=null===(i=Object.getOwnPropertyDescriptor(e,t))||void 0===i?void 0:i.value)&&void 0!==s?s:{}}),e)},t.deepIsEqual=function e(t,i){if(typeof t!==typeof i)return!1;if("function"!==typeof t&&"function"!==typeof i||(t=t.toString(),i=i.toString()),"object"!==typeof t||s(t)||s(i))return t===i;const n=t,o=i,l=Object.keys(n),r=Object.keys(o);if(l.length!==r.length)return!1;for(const s of l){if(!o.hasOwnProperty(s))return!1;if(!e(n[s],o[s]))return!1}return!0},t.asFn=function(e){return"function"===typeof e||"undefined"===typeof e?e:()=>e},t.asPlain=function(e){return"function"===typeof e?e():e},t.isNil=s,t.inBetween=function(e,t,i){return e>=t&&e<=i?e:e<t?t:i}},60758:function(e,t,i){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.cursorPoint=void 0;const n=i(46976),o=s(i(20500)),l=i(50497);function r(e,t,i){if(i||(i=t.querySelector("span")),!i)return;t.style.background=`${e.color}`,i.style.background=e.color||n.SERIE_COLOR;const s=o.default.parseRgba(e.color)||[256,256,256,0];t.style.boxShadow=`0px 0px 0px 1px rgba(${s[0]}, ${s[1]}, ${s[2]}, 0.5)`}function a(e,t){const i=e.series[t],s=(0,l.html)("span"),n=(0,l.html)("div",{class:"yagr-point","data-idx":String(t)},i.empty?void 0:s);return i.empty?(n.style.display="none",n):(r(i,n,s),n)}function u(e,t){return void 0===t?Array.from(e.querySelectorAll(".yagr-point")):[e.querySelector(`.yagr-point[data-idx="${t}"]`)]}t.cursorPoint=a,t.default=function(e,t){var i,s,o;const c=e.config.processing||{},d=Boolean(c.interpolation),h=null===(i=c.interpolation)||void 0===i?void 0:i.value,f=!1!==t.snapToValues&&(t.snapToValues||"closest"),p=!!d&&(null!==(o=null===(s=c.interpolation)||void 0===s?void 0:s.snapToValues)&&void 0!==o?o:"closest");let g={};const m=(e,t,i)=>{const s=e.series[t];if(s.scale===n.DEFAULT_X_SCALE)return i;const o=s.$c||e.data[t],r=o[i];return d&&r===h?(0,l.findDataIdx)(o,s,i,p,h):null===r?(0,l.findDataIdx)(o,s,i,f,null):i};return{showPoints:t=>{const i=e.uplot.over;if(!i)return;u(i,t).forEach((e=>{e.style.visibility="visible"}))},hidePoints:t=>{const i=e.uplot.over;if(!i)return;u(i,t).forEach((e=>{e.style.visibility="hidden"}))},pin:t=>{var i;const s=e.root.querySelector(".u-over");if(s)if(t){const e=document.createElement("div");e.classList.add("yagr-points-holder"),s.querySelectorAll(".yagr-point").forEach((t=>{const i=t.cloneNode(!0);e.appendChild(i);const s=i.dataset.idx;s&&(g[s]=i)})),s.appendChild(e)}else g={},null===(i=s.querySelector(".yagr-points-holder"))||void 0===i||i.remove()},updatePoints:()=>{e.root.querySelectorAll(".yagr-point").forEach((t=>{const i=Number(t.dataset.idx);if(isNaN(i))return;r(e.uplot.series[i],t)}))},focus:(e,t)=>{Object.entries(g).forEach((([i,s])=>{s.style.display=null!==e?i===String(e)&&t?"block":"none":t?"block":"none"}))},uplot:{opts:(e,i)=>{var s;i.cursor=i.cursor||{};const o=i.series.filter((e=>e.empty)).length,l=i.series.length-1,r=null!==(s=null===t||void 0===t?void 0:t.maxMarkers)&&void 0!==s?s:50;i.cursor.points={show:l-o<=r&&a,size:(e,i)=>{const s=e.series[i];return(s.cursorOptions?s.cursorOptions.markersSize:null===t||void 0===t?void 0:t.markersSize)||n.MARKER_DIAMETER}},i.cursor.dataIdx=m},hooks:{...t.hideMarkers&&{setCursor:i=>{var s,n;const o=i.cursor.idx;if(!(0,l.isNil)(o))for(let l=1;l<i.series.length;l++){const r=i.series[l].$c[o];t.hideMarkers(r,l)?null===(s=e.plugins.cursor)||void 0===s||s.hidePoints(l):null===(n=e.plugins.cursor)||void 0===n||n.showPoints(l)}}},init:e=>{const i=e.root.querySelector(".u-cursor-x");i&&(t.x&&!1===t.x.visible&&(i.style.display="none"),i.style.borderRight=t.x&&t.x.style||n.CURSOR_STYLE);const s=e.root.querySelector(".u-cursor-y");s&&(t.y&&!1!==t.y.visible?s.style.borderBottom=t.y.style||n.CURSOR_STYLE:s.style.display="none")}}}}}},65781:function(e,t,i){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DynamicUpdatesMixin=void 0;const n=s(i(576)),o=i(46976),l=i(28265),r=i(24793),a=i(50497);function u(e,t,i,s=!1){var n,o,l,r,u,c,d,h,f,p,g,m;if(s)return e.config={...e.config,...i},void(t.reinit=!0);const _=function(e,t){return function(i,s){const n=(0,a.get)(e,i),o=(0,a.get)(t,i);return s?!s(n,o):n!==o}}(e.config,i);i.title&&_("title")&&e.setTitle(i.title),(null===(o=null===(n=i.chart)||void 0===n?void 0:n.appearance)||void 0===o?void 0:o.theme)&&_("chart.appearance.theme")&&e.setTheme(null===(r=null===(l=i.chart)||void 0===l?void 0:l.appearance)||void 0===r?void 0:r.theme),(null===(c=null===(u=i.chart)||void 0===u?void 0:u.appearance)||void 0===c?void 0:c.locale)&&_("chart.appearance.locale")&&e.setLocale(null===(h=null===(d=i.chart)||void 0===d?void 0:d.appearance)||void 0===h?void 0:h.locale),i.axes&&_("axes",a.deepIsEqual)&&e.setAxes(i.axes),i.scales&&_("scales",a.deepIsEqual)&&e.setScales(i.scales);Boolean(i.series)&&function(e,t){if(e.length!==(null===t||void 0===t?void 0:t.length))return!0;const i=new Map,s=new Map;return e.forEach((e=>{i.set(e.id,e)})),t.forEach((e=>{s.set(e.id,e)})),!(!t.some((({id:e})=>!i.has(e)))&&!e.some((({id:e})=>!s.has(e))))}(e.config.series,i.series)&&(t.redrawLegend=!0),(i.series||i.timeline)&&e.setSeries(null!==(f=i.timeline)&&void 0!==f?f:e.config.timeline,null!==(p=i.series)&&void 0!==p?p:e.config.series,{incremental:!1}),i.tooltip&&_("tooltip")&&(null===(g=e.plugins.tooltip)||void 0===g||g.updateOptions(i.tooltip)),i.legend&&_("legend")&&(t.reinit=!0),null===(m=e.plugins.tooltip)||void 0===m||m.reset(),t.reopt=!0,e.config={...e.config,...i}}function c(e,t,i,s={incremental:!0,splice:!1}){let n,o=[],r=[],a=null,u=!1,c=!1;if(["number","string"].includes(typeof t)?(u=!1,n=!1,r=[i],a=t):"number"===typeof t[0]?(o=t,r=i,u=Boolean(s.incremental),n=!s.incremental):(r=t,n=!0),this.isEmpty&&r.some((({data:e})=>null===e||void 0===e?void 0:e.length)))e.reinit=!0;else{if(!1===n){let t=!1;if(u&&this.config.timeline.push(...o),r.forEach((i=>{var s,n;let o="number"===typeof a?this.config.series[0]:this.config.series.find((({id:e})=>e===i.id||e===a)),r=null===o||void 0===o?void 0:o.id;if("number"===typeof a&&this.state.y2uIdx[a]&&(o=this.config.series[a],r=a),o&&r){const{data:a,...d}=i,h=this.state.y2uIdx[r];"dots"!==o.type&&"dots"!==i.type&&"dots"!==(null===(s=this.config.chart.series)||void 0===s?void 0:s.type)||(e.reinit=!0),u?o.data=a?o.data.concat(a):o.data:(null===a||void 0===a?void 0:a.length)&&(o.data=a,c=!0);const f=(0,l.configureSeries)(this,Object.assign(o,d),h),p=this.options.series[h],g=this.uplot.series[h];g.show!==f.show&&e.fns.push((()=>{this.uplot.setSeries(h,{show:f.show})})),null!==g._focus&&g._focus===f.focus||e.fns.push((()=>{this.uplot.setSeries(h,{focus:f.focus})})),g.color!==f.color&&(t=!0),f.scale&&(null===(n=this.config.scales[f.scale])||void 0===n?void 0:n.stacking)&&(c=!0),(0,l.overrideSeriesInUpdate)(p,f),(0,l.overrideSeriesInUpdate)(g,f)}else e.fns.push((()=>{const e=(0,l.configureSeries)(this,i,this.config.series.length);this.state.y2uIdx[e.id]=this.uplot.series.length,this.uplot.addSeries(e,this.config.series.length)})),this.config.series.push(i)})),t&&e.fns.push((()=>{var e;null===(e=this.plugins.cursor)||void 0===e||e.updatePoints()})),s.splice){const e=r[0].data.length;this.config.series.forEach((t=>{t.data.splice(0,e)})),this.config.timeline.splice(0,o.length)}}else this.config.timeline=o,this.config.series=r,e.reinit=!0;e.reinit||(this._batch.fns.push((()=>{var e,t;return null===(t=null===(e=this.plugins)||void 0===e?void 0:e.tooltip)||void 0===t?void 0:t.reset()})),(c||o.length)&&(e.recalc=!0,e.fns.push((()=>{this.uplot.setData(this.series)}))))}}t.DynamicUpdatesMixin=class{setLocale(e){this.batch((t=>function(e,t,i){e.utils.i18n=(0,n.default)(i),t.redrawLegend=!0}(this,t,e)))}setTitle(e){this.batch((t=>{this.config.title=e,this.initTitle(),t.redraw=[!0,!0]}))}setTheme(e){this.batch((t=>function(e,t,i){e.utils.theme.setTheme(t);const s=["light","light-hc","dark","dark-hc"].map((e=>`yagr_theme_${e}`));e.root.classList.remove(...s),e.root.classList.add("yagr_theme_"+t),i.redraw=[!1,!0]}(this,e,t)))}setAxes(e){this.batch((t=>function(e,t,i){const{x:s,...n}=i;if(s){const t=e.uplot.axes.find((({scale:e})=>e===o.DEFAULT_X_SCALE));t&&(0,r.updateAxis)(e,t,{scale:o.DEFAULT_X_SCALE,...s})}Object.entries(n).forEach((([t,i])=>{const s=e.uplot.axes.find((({scale:e})=>e===t));s&&(0,r.updateAxis)(e,s,{scale:t,...i})})),t.redraw=(0,r.getRedrawOptionsForAxesUpdate)(i)}(this,t,e)))}setSeries(e,t,i={incremental:!0,splice:!1}){this.batch((s=>c.call(this,s,e,t,i)))}setFocus(e,t){this.batch((()=>function(e,t,i){var s;const n=null===t?null:e.state.y2uIdx[t];null===(s=e.plugins.cursor)||void 0===s||s.focus(n,i),e.uplot.setSeries(n,{focus:i})}(this,e,t)))}setVisible(e,t,i=!0){this.batch((s=>function(e,t,i,s,n){const l=null===t?null:e.state.y2uIdx[t];(null===t?e.config.series:[e.config.series.find((({id:e})=>e===t))]).forEach((e=>{e&&(e.show=i)})),n.fns.push((()=>{e.uplot.setSeries(l,{show:i})})),e.options.series=e.uplot.series;let r=!1;if(l){const t=e.uplot.series[l];t.show=i;const s=t.scale||o.DEFAULT_Y_SCALE,n=e.config.scales[s];r=Boolean(n&&n.stacking)}else r=e.options.series.reduce(((t,s)=>{var n;const{scale:o}=s;return s.show=i,Boolean(o&&(null===(n=e.config.scales[o])||void 0===n?void 0:n.stacking)||t)}),!1);r&&(n.recalc=!0,n.fns.push((()=>{var t;e.uplot.setData(e.series,!0),s&&(null===(t=e.plugins.legend)||void 0===t||t.update())})))}(this,e,t,i,s)))}setScales(e){this.batch((t=>function(e,t,i){let s=!1,n=!1;Object.entries(t).forEach((([t,i])=>{const o=e.config.scales[t];if(o){const{stacking:e}=o,{stacking:t}=i;e!==t&&(s=!0),i.normalize===o.normalize&&i.normalizeBase===o.normalizeBase||(n=!0)}}));const l=Object.entries(t).every((([t,i])=>{const s=e.config.scales[t],{min:n,max:o,...l}=s,{min:r,max:u,...c}=i;return!(!1===(0,a.deepIsEqual)(c,l))&&(n!==r||o!==u)})),r=Object.keys(t).includes(o.DEFAULT_X_SCALE);if(l&&!r)return Object.entries(t).forEach((([t,s])=>{i.fns.push((()=>{e.uplot.setScale(t,{min:s.min,max:s.max})}))}));(s||n)&&(i.reinit=!0),e.config.scales=t,i.reinit=!0}(this,e,t)))}setConfig(e,t=!1){this.batch((i=>u(this,i,e,t)))}}},67903:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.drawMarkersIfRequired=t.renderCircle=void 0;const s=i(46976),n=i(50497);t.renderCircle=(e,t,i,n,o,l,r,a)=>{const{ctx:u}=e,c=Math.round(e.valToPos(t,s.DEFAULT_X_SCALE,!0)),d=Math.round(e.valToPos(i,a||s.DEFAULT_Y_SCALE,!0));if(u.beginPath(),u.arc(c,d,2*n,0,2*Math.PI),u.fillStyle=l,o){const e=u.lineWidth,t=u.strokeStyle;u.lineWidth=o,u.strokeStyle=r,u.stroke(),u.lineWidth=e,u.strokeStyle=t}u.fill(),u.closePath()},t.drawMarkersIfRequired=function(e,i,o,l){const{color:r,scale:a,spanGaps:u,count:c,pointsSize:d}=e.series[i];if(u&&c>1)return!1;let h,f=o;for(;f<=l;){const o=e.data[i][f];if(null===o){h=o,f++;continue}const l=f+1,u=e.data[i][l];(0,n.isNil)(h)&&(0,n.isNil)(u)&&(0,t.renderCircle)(e,e.data[0][f],o,null!==d&&void 0!==d?d:s.DEFAULT_POINT_SIZE/2,0,r,r,a||s.DEFAULT_Y_SCALE),h=o,f++}},t.default=function(e,i){var n;const{size:o=s.DEFAULT_POINT_SIZE,strokeWidth:l=2,strokeColor:r="#ffffff",show:a}=i.markers,u=null===(n=i.chart)||void 0===n?void 0:n.series,c=(null===u||void 0===u?void 0:u.pointsSize)||s.DEFAULT_POINT_SIZE;function d(i,n,u,d){const{scale:h,_focus:f,color:p,getFocusedColor:g,type:m}=i.series[n];let _=u;const v="dots"===m?a?o:c:o;for(;_<=d;){const o=i.data[n][_];null!==o&&(0,t.renderCircle)(i,i.data[0][_],o,v,l,(f||null===f?p:g(e,n))||p,r,h||s.DEFAULT_Y_SCALE),_++}}const h=(e,t)=>{0!==e&&null!==e&&("dots"===t.type||i.markers.show)&&(t.points=t.points||{},t.points.show=d)};return{opts:(e,t)=>{(i.markers.show||t.series.some((e=>"dots"===e.type)))&&t.series.forEach(((e,t)=>h(t,e)))},hooks:{addSeries:(e,t)=>{const i=e.series[t];h(t,i)},setSeries:(e,t,i)=>{h(t,i)}}}}},68724:function(e,t,i){var s=this&&this.__createBinding||(Object.create?function(e,t,i,s){void 0===s&&(s=i);var n=Object.getOwnPropertyDescriptor(t,i);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,n)}:function(e,t,i,s){void 0===s&&(s=i),e[s]=t[i]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||s(t,e,i)},l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&s(t,e,i);return n(t,e),t},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.defaults=void 0,o(i(89353),t),o(i(98190),t);const a=l(i(46976));t.defaults=a;const u=r(i(37100));"undefined"!==typeof window&&Object.assign(window,{Yagr:u.default}),t.default=u.default},72168:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.hasOneVisibleLine=void 0;const s=i(46976),n=i(50497),o=i(11213),l="null";t.hasOneVisibleLine=e=>e.some((({show:e,id:t})=>t!==s.DEFAULT_X_SERIE_NAME&&e));const r=(e,i)=>i.length>3&&e((0,t.hasOneVisibleLine)(i)?"hide-all":"show-all");t.default=class{constructor(){this.pagesCount=0,this.state={page:0,pages:1,pageSize:0,rowsPerPage:1,paginated:!1,requiredSpace:0,totalSpace:0},this.itemsHtml="",this.preInit=(e,t,i)=>{this.yagr=e,this.options=Object.assign({show:!1,position:"bottom",fontSize:12,maxLegendSpace:.3,className:void 0,behaviour:"basic"},t||{}),this.calc(i)},this.init=e=>{var t;this.options.show&&(this.uplot=e,null===(t=e.root.querySelector(".u-legend"))||void 0===t||t.remove(),this.render())},this.update=()=>{this.yagr.root.querySelectorAll("[data-serie-id]").forEach((e=>{var t,i;const s=e.getAttribute("data-serie-id");if(!s||s===l)return;const n=null===(i=null===(t=this.uplot)||void 0===t?void 0:t.series[this.yagr.state.y2uIdx[s]])||void 0===i?void 0:i.show;e.classList[n?"remove":"add"]("yagr-legend__item_hidden")}))},this.measureLegend=e=>{const t=this.yagr.root,i=(0,n.html)("div",{class:"yagr-legend",style:{visibility:"hidden"}},e);t.appendChild(i);const s=i.childNodes[0].getBoundingClientRect();return i.remove(),s},this.nextPage=()=>{const{state:e}=this;this.state.page+=1,this.items&&(this.items.style.transform=`translate(0, ${-1*e.page*e.pageSize}px)`,this.renderPagination())},this.prevPage=()=>{const{state:e}=this;this.state.page-=1,this.items&&(this.items.style.transform=`translate(0, ${-1*e.page*e.pageSize}px)`,this.renderPagination())}}redraw(){this.options.show&&this.render()}destroy(){var e;this._onDestroy&&this._onDestroy(),null===(e=this.legendEl)||void 0===e||e.remove()}applyHandlers(){const{yagr:e,uplot:i}=this;if(!i)return()=>{};const s=e.root.querySelectorAll("[data-serie-id]"),n=[],a={basic:s=>()=>{const n=s.getAttribute("data-serie-id"),o=[];if(n===l){const e=!(0,t.hasOneVisibleLine)(i.series);for(let t=1;t<i.series.length;t++)o.push([i.series[t],e])}else{const e=i.series.find((({id:e})=>e===n));if(!e)return;o.push([e,!e.show])}o.forEach((([t,i])=>{if(t.show===i)return;const s=e.root.querySelector(`[data-serie-id="${t.id}"]`);e.setVisible(t.id,i,!1),null===s||void 0===s||s.classList[i?"remove":"add"]("yagr-legend__item_hidden")}));const a=e.root.querySelector(".yagr-legend__all-series");if(a){const e=r(this.yagr.utils.i18n,i.series);a.innerHTML=e||""}},extended:s=>{const n=(t,i)=>{const s=e.root.querySelector(`[data-serie-id="${t}"]`);e.setVisible(t,i,!1),null===s||void 0===s||s.classList[i?"remove":"add"]("yagr-legend__item_hidden")},o=e=>{this.state.startSerieRange=e;const s=i.series.filter((t=>t.id!==e.id)),o=!(0,t.hasOneVisibleLine)(s)&&!1!==e.show;i.series.forEach((t=>{const i=e.id===t.id||o;n(t.id,i)}))},l=e=>{this.state.startSerieRange||(this.state.startSerieRange=i.series[1]);const t=[];i.series.forEach(((i,s)=>{var n;i.id===e.id&&t.push(s),i.id===(null===(n=this.state.startSerieRange)||void 0===n?void 0:n.id)&&t.push(s)})),i.series.forEach(((e,i)=>{const s=i>=t[0]&&i<=t[1];n(e.id,s)}))};return e=>{const t=s.getAttribute("data-serie-id"),r=i.series.find((({id:e})=>e===t));r&&(e.preventDefault(),e.ctrlKey||e.metaKey?(e=>{n(e.id,!e.show)})(r):e.shiftKey?l(r):o(r))}}},u=t=>()=>{const i=t.getAttribute("data-serie-id");if(t.classList.contains("yagr-legend__item_hidden")||i===l)return;const s=this.yagr.uplot.series.find((({id:e})=>e===i));s&&(e.setFocus(s.id,!0),e.redraw(!0,!1))},c=()=>{e.setFocus(null,!0),e.redraw(!0,!1)};s.forEach((e=>{const t=a[this.options.behaviour||"basic"](e),i=u(e);e.addEventListener("click",t),e.addEventListener("mouseenter",i),e.addEventListener("mouseleave",c),e.addEventListener("mousedown",o.preventMouseEvents),n.push((()=>{e.removeEventListener("click",t),e.removeEventListener("mouseenter",i),e.removeEventListener("mouseleave",c),e.removeEventListener("mousedown",o.preventMouseEvents)}))}));const d=()=>n.forEach((e=>e()));return this._onDestroy=d,d}render(){var e,t;let i=!1;const{uplot:s,options:o}=this;if(!s)return;let l=this.yagr.root.querySelector(".yagr-legend");if(l?i=!0:l=(0,n.html)("div",{class:`yagr-legend yagr-legend__${this.options.position} ${(null===o||void 0===o?void 0:o.className)||""}`}),l){if(i||("top"===o.position?s.root.before(l):null===(e=s.root)||void 0===e||e.after(l)),this.legendEl=l,this.itemsHtml&&!i||this.calc(this.yagr.options),l.innerHTML=`<div class="yagr-legend__container" style="height: ${this.state.requiredSpace}px">${this.itemsHtml}</div>`,this.items=l.querySelector(".yagr-legend__items"),this.container=l.querySelector(".yagr-legend__container"),this.state.paginated){const e=this.renderPagination();null===(t=this.container)||void 0===t||t.after(e)}else this.items.style.justifyContent="center";this.applyHandlers()}}renderPagination(){const{state:e}=this;let t=this.yagr.root.querySelector(".yagr-legend__pagination");if(t){const e=t.querySelector(".yagr-legend__icon-down"),i=t.querySelector(".yagr-legend__icon-up");e.removeEventListener("click",this.nextPage),i.removeEventListener("click",this.prevPage)}else t=(0,n.html)("div",{class:"yagr-legend__pagination"});const i=0===e.page?"yagr-legend__icon-up_disabled":"",s=e.page===e.pages-1?"yagr-legend__icon-down_disabled":"";t.innerHTML=`<span class="yagr-legend__icon-up ${i}"></span>\n<span class="yagr-legend__pagination-text">${e.page+1}/${e.pages}</span>\n<span class="yagr-legend__icon-down ${s}"></span>`;const o=t.querySelector(".yagr-legend__icon-down"),l=t.querySelector(".yagr-legend__icon-up");return s||o.addEventListener("click",this.nextPage),i||l.addEventListener("click",this.prevPage),t}createIconLineElement(e){return(0,n.html)("span",{class:`yagr-legend__icon yagr-legend__icon_${e.type}`,style:{"background-color":this.yagr.getSerieLegendColor(e)}})}createSerieNameElement(e){const t=(0,n.html)("span");return t.innerText=e.name||"unnamed",t}renderItems(e){const t=r(this.yagr.utils.i18n,e.series),i="extended"!==this.options.behaviour&&(e=>e.length>3&&l||void 0)(e.series),s=i?[i]:[];for(let n=1;n<e.series.length;n++)s.push(e.series[n]);return`<div class="yagr-legend__items">${s.map((e=>{let s,n,o=" ";if(e===l)s=t,n=i,o=" yagr-legend__all-series ";else{n=e.id;const t=this.createIconLineElement(e),i=this.createSerieNameElement(e);s=`${t.outerHTML}${i.outerHTML}`}return`<div class="yagr-legend__item${o}${"string"===typeof e||!1!==e.show?"":"yagr-legend__item_hidden"}" data-serie-id="${n}">${s}</div>`})).join("")}</div>`}calc(e){if(!this.options.show)return;const t=e.height-this.VERTICAL_PADDING,i=this.renderItems(e),{height:s}=this.measureLegend(i),n=this.options.fontSize+2,o=t*this.options.maxLegendSpace,l=Math.floor(o/n),r=l-1,a=Math.min(r*n,o),u=Math.min(l*n,o),c=s>a&&a>0,d=Math.min(c?u:a,s),h=Math.ceil(s/a),f=c?this.VERTICAL_PADDING+18:this.VERTICAL_PADDING;this.state.requiredSpace=d,this.state.totalSpace=d+f,this.state.paginated=c,this.state.page=this.state.page||0,this.state.pages=h,this.state.pageSize=a,this.state.rowsPerPage=l,this.itemsHtml=i}get VERTICAL_PADDING(){return"bottom"===this.options.position?20:48}}},74947:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.renderTooltip=void 0;const s=i(48130);t.renderTooltip=function(e){if(0===e.scales.length)return e.yagr.utils.i18n("nodata");const[t,i]=e.options.title?"string"===typeof e.options.title?[e.options.title,!1]:["",!0]:["",!1];return`${t?`<div class="__title">${t}</div>`:""}${e.scales.map((t=>{const n=(0,s.getOptionValue)(e.options.title,t.scale),o=e.scales.length>1?e.options.scales?`${(0,s.getOptionValue)(e.options.scales,t.scale)||""}`:`${e.yagr.utils.i18n("scale")}: ${t.scale}`:"";return`\n<div class="__section" data-scale=${t.scale}>\n ${i&&n?`<div class="_section_title">${n}</div>`:""}\n ${o?`<div class="__section_scale">${o}</div>`:""}\n <div class="__section_body">${function(e,t,i){const n=e.slice(0,(0,s.getOptionValue)(t.maxLines,i));return n.map((({value:i,name:n="unnamed",color:o,active:l,transformed:r,seriesIdx:a},u)=>{const c=`\n<span class="yagr-tooltip__val">${i}</span>\n ${"number"===typeof r?`<span class="yagr-tooltip__tf">${r.toFixed(2)}</span>`:""}\n`;return`\n<div class="yagr-tooltip__item ${l?"_active":""}" data-series="${a}">\n ${t.showIndicies?`<span class="yagr-tooltip__idx">${e.length-u}</span>`:""}\n <span class="yagr-tooltip__mark" style="background-color: ${o}"></span>${(0,s.escapeHTML)(n)} ${c}\n</div>`})).join("")+(e.length>n.length?`<div class="yagr-tooltip__item _more">+${e.length-n.length}</div>`:"")}(t.rows,e.options,t.scale)}</div>\n ${(0,s.getOptionValue)(e.options.sum,t.scale)?`\n <div class="__section_sum">\n ${e.yagr.utils.i18n("sum")}: ${t.sum}\n </div>\n `:""}\n</div>`})).join("")}`}},78229:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TransformSeriesMixin=void 0;const s=i(46976),n=i(50497);t.TransformSeriesMixin=class{transformSeries(){const e=performance.now(),t=[],i=this.config,o=i.timeline;let l=i.processing||!1,r=this.config.series.map((({data:e})=>e));l&&l.interpolation&&(r=(0,n.preprocess)(r,o,l),l=!1);const a=Boolean(l&&l.nullValues),u=l&&l.nullValues||{},c={};for(let d=0;d<r.length;d++){let e=[];const i=d+1,l=r[d],h=this.options.series.length-i,f=this.options.series[h],p=f.scale||s.DEFAULT_Y_SCALE,g=this.config.scales[p]||{},m=g.stacking,_=f.stackGroup||0;let v=!0;m&&!c[p]&&(this.options.focus=this.options.focus||{alpha:1.1},this.options.focus.alpha=1.1,c[p]=[]),m&&!c[p][_]&&(c[p][_]=new Array(o.length).fill(0)),f.count=0;for(let t=0;t<l.length;t++){let i=l[t];if(a&&u[String(i)]&&(i=null),f.transform&&(f._transformed=!0,i=f.transform(i,r,t)),g.transform&&(f._transformed=!0,i=g.transform(i,r,t)),null===i){if("line"===f.type||"dots"===f.type){e.push(null);continue}i=m?0:null}if(v=!1,g.normalize){const e=(0,n.getSumByIdx)(this.options.series,t,p);i=e&&(null!==i&&void 0!==i?i:0)/e*(g.normalizeBase||100),f.normalizedData=f.normalizedData||[],f.normalizedData[t]=i}g.stacking&&(!1===f.show&&(i=0),i=c[p][_][t]+=null!==i&&void 0!==i?i:0),"logarithmic"===g.type&&0===i&&(i=1),f.sum=(f.sum||0)+(i||0);"number"===typeof f.$c[t]&&(f.count+=1),e.push(i)}f.avg=(f.sum||0)/f.count,f.empty=v,f.postProcess&&(e=f.postProcess(e,d,this)),t.unshift(e)}return t.unshift(this.config.timeline),this.series=t,this.execHooks("processed",{chart:this,meta:{processTime:performance.now()-e}}),this.series}}},80152:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.calculateFromTo=void 0;var s=i(4553);Object.defineProperty(t,"calculateFromTo",{enumerable:!0,get:function(){return s.calculateFromTo}})},81836:(e,t,i)=>{i.r(t),i.d(t,{default:()=>P});var s=i(59284),n=i(23936),o=i.n(n),l=i(905),r=i.n(l),a=i(8964),u=i(42392),c=i(22680),d=i(14750),h=i(68724),f=i(17148),p=i.n(f),g=i(66643);function m(e){const t=document.createElement("span");return t.innerText=e,t.innerHTML}const _="data-series-name",v="data-series-idx",y="_tooltip",b="_tooltip-row",w=()=>"<td />",E=e=>`<td class="_tooltip-rows__bubble-td">\n <div class="_tooltip-rows__bubble-div" style="background-color:${e.seriesColor};"></div>\n </td>`,S=e=>`<td class="_tooltip-rows__name-td">\n ${e.hideSeriesName?"":m(e.seriesName)}\n </td>`,x=e=>`<td class="_tooltip-rows__percent-td">\n ${e.percentValue?e.percentValue+"%":""}\n </td>`,A=e=>`<td class="_tooltip-rows__value-td">\n ${e.value}\n </td>`,T=e=>`<td class="_tooltip-rows__diff-td">\n ${e.diff?` (${e.diff})`:""}\n </td>`,O=(e,t=!1,i=1)=>`<td class="_tooltip-right__td ${t?"_tooltip-right__td_with-split-tooltip":""}" colspan="${i||1}">\n ${e.holiday?`<div class="_tooltip-right__holiday-div">\n <div class="_tooltip-right__holiday-emoji">\ud83c\udf88</div>\n <div>\n ${e.holidayText}\n ${e.region?`<span class="_tooltip-right__holiday-region">[${e.region}]</span>`:""}\n </div>\n </div>`:""}\n\n ${e.commentDateText?`<div class="${e.xComments?"_tooltip-right__margin-bot":""}">${e.commentDateText}</div>`:""}\n\n ${e.xComments?e.xComments.map((e=>`<div class="_tooltip-right__traf-div ${t?"_tooltip-right__traf-div_for-split-tooltip":""}" style="border-color: ${e.color};">${e.text}</div>`)).join(""):""}\n </td>`,L=(e,{isSelectedLine:t,cellsRenderers:i,isSingleLine:s,allowComment:n,withDarkBackground:o,rowIndex:l})=>{const r=e.commentText||e.xyCommentText,a=n&&r,u=i.slice(),c=`${String(l)||""}-${String(m(e.seriesName)).slice(0,20).replace(/(\r\n|\n|\r)/gm,"")}`;return e.insertCellAt&&(Object.keys(e.insertCellAt)||[]).forEach((e=>{u.splice(Number(e),0,w)})),e.customRender?`<tr class="${b}${t?" _tooltip-selected-row":""}${s?" _tooltip-uniq-row":""}${o?" _tooltip-row-dark-bg":""}" ${_}="${c}" ${e.seriesIdx?`${v}="${e.seriesIdx}"`:""}>\n ${0===e.customRender.trim().indexOf("<td")?e.customRender:`<td colspan="${i.length}">${e.customRender}</td>`}\n </tr>\n ${a?`<tr class="_tooltip-comment-row${t?" _tooltip-selected-row":""}${o?" _tooltip-row-dark-bg":""}">\n <td>\n ${e.commentText?`<div class="_tooltip-rows__comment-div">${e.commentText}</div>`:""}\n ${e.xyCommentText?`<div class="_tooltip-rows__comment-div">${e.xyCommentText}</div>`:""}\n </td>\n </tr>`:""}`:`<tr class="${b}${t?" _tooltip-selected-row":""}${s?" _tooltip-uniq-row":""}${o?" _tooltip-row-dark-bg":""}" ${_}="${c}" ${e.seriesIdx?`${v}="${e.seriesIdx}"`:""}>\n ${u.map(((t,i)=>e.replaceCellAt&&e.replaceCellAt[i]?"string"===typeof e.replaceCellAt[i]?e.replaceCellAt[i]:e.replaceCellAt[i](e):e.insertCellAt&&e.insertCellAt[i]?"string"===typeof e.insertCellAt[i]?e.insertCellAt[i]:e.insertCellAt[i](e):t(e))).join("")}\n </tr>\n\n ${a?`<tr class="_tooltip-comment-row${t?" _tooltip-selected-row":""}${o?" _tooltip-row-dark-bg":""}">\n <td colspan="4">\n ${e.commentText?`<div class="_tooltip-rows__comment-div">${e.commentText}</div>`:""}\n ${e.xyCommentText?`<div class="_tooltip-rows__comment-div">${e.xyCommentText}</div>`:""}\n </td>\n </tr>`:""}`},I=(e,t)=>{const{splitTooltip:i,activeRowAlwaysFirstInTooltip:s}=e,n=e.lines.findIndex((({selectedSeries:e})=>e)),o=e.lines[n],l=e.lines.slice(0,(t.lastVisibleRowIndex||e.lines.length)+1),r=[];r.push(E),e.shared&&r.push(S),e.withPercent&&r.push(x),r.push(A),e.useCompareFrom&&r.push(T);const u={isSingleLine:1===l.length,cellsRenderers:r},c={cellsRenderers:r,useCompareFrom:e.useCompareFrom,isSelectedLine:!0,allowComment:n>t.lastVisibleRowIndex},d=document.body.clientHeight/(window.visualViewport&&window.visualViewport.scale||1);let h=y;return i&&(h+=` ${y}_split-tooltip`),`\n<div class="${h}" style="max-height: ${i?"auto":`${d}px`}">\n ${e.tooltipHeader?`<div title="${(document.createRange().createContextualFragment(e.tooltipHeader).textContent||"").trim()}" class="_tooltip-date">\n ${e.tooltipHeader.trim()}\n </div>`:""}\n ${i&&(e.holiday||e.commentDateText||e.xComments&&e.xComments.length)?`<table border="0" cellpadding="0" cellspacing="0">\n <tbody>\n <tr>\n ${O(e,!0,r.length)}\n </tr>\n </tbody>\n </table>`:""}\n <table border="0" cellpadding="0" cellspacing="0">\n <tr>\n <td class="_tooltip-left__td">\n <table class="_tooltip-rows__table">\n ${i?"":`<thead class=_tooltip-header>\n ${o&&(s||t.lastVisibleRowIndex&&n>t.lastVisibleRowIndex)?L(o,c):""}\n <tr class="_tooltip-fake-row">${Array(r.length).fill("<td></td>").join("")}</tr>\n </thead>`}\n <tbody class="_tooltip-list">\n ${l.map(((e,t)=>L(e,function(e){return Object.assign(Object.assign({},u),{rowIndex:e,isSelectedLine:l.length>1&&e===n,withDarkBackground:l.length>2&&Boolean(e%2),allowComment:e!==n||!c.allowComment})}(t)))).join("")}\n </tbody>\n ${i?"":`<tbody class="_tooltip-footer">\n ${t.lastVisibleRowIndex&&e.hiddenRowsNumber>0?`<tr class="${b} _hidden-rows-sum${l.length%2?" _hidden-rows-sum-dark-bg":""}">\n <td colspan="${r.length-1}" class="_hidden-rows-number">\n ${(0,a.R)("common","tooltip-rest")} ${e.hiddenRowsNumber}\n </td>\n <td class="_hidden-rows-value">${e.hiddenRowsSum}</td>\n </tr>`:""}\n <tr class="_tooltip-fake-row">${Array(r.length).fill("<td></td>").join("")}</tr>\n ${e.sum?`<tr class="_tooltip-rows__summ-tr">\n <td class="_tooltip-rows__summ-td" colspan="${r.length-1}">${(0,a.R)("common","tooltip-sum")}</td>\n <td class="_tooltip-rows__summ-td _tooltip-rows__summ-td-value">\n ${e.sum}\n </td>\n </tr>`:""}\n </tbody>`}\n </table>\n </td>\n\n ${!i&&(e.holiday||e.commentDateText||e.xComments&&e.xComments.length)?O(e):""}\n </tr>\n </table>\n</div>`},D=e=>"object"===typeof e&&null!==e?Object.values(e).reduce(((e,t)=>t)):e,M=({data:e,rowId:t})=>{const i=e.yagr.getSeriesById(t);return e.yagr.getSerieLegendColor(i)},k=(e=1,t)=>(i,s)=>{const n=(s[s.length-1]-s[0])/e;return s.map((i=>{const s=(0,d.KQ)({input:i/e,timeZone:t});return 0===s.hour()&&0===s.minute()&&0===s.second()?s.format("DD.MM.YY"):s.format(n<300?"HH:mm:ss":"HH:mm")}))},C=(e,t)=>i=>{const s=i/((null===e||void 0===e?void 0:e.timeMultiplier)||1),n=(0,d.KQ)({input:s}),o=60*(n.utcOffset()-(0,d.KQ)({input:s,timeZone:t}).utcOffset())*1e3;return new Date(n.valueOf()-o)},R=e=>{var t,i;const{data:s,libraryConfig:n,theme:o}=e,l=Object.assign(Object.assign({},n),{timeline:s.timeline,series:s.graphs}),{timeZone:r}=s,a={appearance:{locale:g.W.get("lang"),theme:o}};var u;p()(a,l.chart),l.chart=a,(null===(t=l.tooltip)||void 0===t?void 0:t.show)&&(l.tooltip=l.tooltip||{},l.tooltip.render=(null===(i=l.tooltip)||void 0===i?void 0:i.render)||(u=s,e=>{const{timeZone:t}=u,i=e.yagr.config.chart.timeMultiplier||1,s=e.options,{x:n,state:o}=e;let l=0;const r=Object.values(e.scales).reduce(((e,t)=>(l+=t.sum||0,e.concat(t.rows))),[]),a=r.length,c=D(s.sum),h=D(s.maxLines),f=D(s.value),p=o.pinned?void 0:a>h?Math.abs(h-a):void 0,g=p?f(r.slice(-p).reduce(((e,{originalValue:t})=>e+(t||0)),0)):void 0,m={activeRowAlwaysFirstInTooltip:r.length>1,tooltipHeader:(0,d.KQ)({input:n/i,timeZone:t}).format("DD MMMM YYYY HH:mm:ss"),shared:!0,lines:r.map(((t,i)=>Object.assign(Object.assign({},t),{seriesName:t.name||"Serie "+(i+1),seriesColor:M({data:e,rowId:t.id}),selectedSeries:t.active,seriesIdx:t.seriesIdx,percentValue:"number"===typeof t.transformed?t.transformed.toFixed(1):""}))),withPercent:D(s.percent),hiddenRowsNumber:p,hiddenRowsSum:g};return c&&(m.sum=f(l)),I(m,{lastVisibleRowIndex:o.pinned?r.length-1:h-1})}),l.tooltip.className||(l.tooltip.className="chartkit-yagr-tooltip"),e.customTooltip&&(l.tooltip.virtual=!0),l.tooltip.sort=l.tooltip.sort||((e,t)=>t.rowIdx-e.rowIdx)),l.axes=l.axes||{};const c=l.axes[h.defaults.DEFAULT_X_SCALE];return l.editUplotOptions=e=>Object.assign(Object.assign({},e),{tzDate:r?C(l.chart,r):void 0}),c&&!c.values&&(c.values=k(l.chart.timeMultiplier,r)),c||(l.axes[h.defaults.DEFAULT_X_SCALE]={values:k(l.chart.timeMultiplier,r)}),l},F=s.forwardRef((function(e,t){const{id:i,data:{data:n},onLoad:l,onRender:d,onChartLoad:h,tooltip:f}=e,p=s.useRef(null),[g,m]=s.useState();if(!n||r()(n))throw new u.R({code:u.iY.NO_DATA,message:(0,a.R)("error","label_no-data")});const{config:_,debug:v}=((e,t)=>{const{data:i,sources:n,libraryConfig:o}=e.data,l=(0,c.i)();return{config:s.useMemo((()=>R({data:i,libraryConfig:o,theme:l,customTooltip:Boolean(e.tooltip)})),[i,o,l,e.tooltip]),debug:s.useMemo((()=>({filename:n&&Object.values(n).map((e=>{var t;return null===(t=null===e||void 0===e?void 0:e.data)||void 0===t?void 0:t.program})).filter(Boolean).join(", ")||t})),[t,n])}})(e,i),y=s.useCallback(((e,{renderTime:t})=>{null===l||void 0===l||l(Object.assign(Object.assign({},n),{widget:e,widgetRendering:t})),null===d||void 0===d||d({renderTime:t}),m(e)}),[l,d,n,m]),b=s.useCallback((()=>{g&&g.reflow()}),[]);return s.useImperativeHandle(t,(()=>({reflow(){b()}})),[b]),s.useEffect((()=>{var e,t,i,s,n;if(!g||(null===(t=null===(e=g.config)||void 0===e?void 0:e.tooltip)||void 0===t?void 0:t.virtual))return;const o={mouseMove:null,mouseDown:null};null===(i=g.plugins.tooltip)||void 0===i||i.on("render",(e=>{(e=>{const t=e.querySelector("._tooltip-header"),i=e.querySelector("._tooltip-list");if(!t||!i||!t.children.length)return;const s=t.children[0];for(let a=0;a<s.children.length;a++){const e=s.children[a];e.removeAttribute("style"),1===(null===i||void 0===i?void 0:i.children.length)&&(e.innerHTML=" ")}const n=i.children[0];for(let a=0;a<n.children.length;a++)n.children[a].removeAttribute("style");const o=t.children[0].getBoundingClientRect().width>i.children[0].getBoundingClientRect().width?t:i,l=Array.prototype.reduce.call(o.children[0].children,((e,t)=>(e.push(t.getBoundingClientRect().width),e)),[]),r=(o===t?i:t).children[0];for(let a=0;a<r.children.length;a++)r.children[a].setAttribute("style",`width: ${l[a]}px`);if(1===i.children.length)for(const a of s.children)a.innerHTML=""})(e)})),null===(s=g.plugins.tooltip)||void 0===s||s.on("pin",((e,{actions:t})=>{var i;o.mouseMove=(i={tooltip:e,yagr:g},e=>{var t;const{tooltip:s,yagr:n}=i;if(!n)return;const o=e.target,l=o&&s.contains(o)&&"TD"===o.tagName?null===(t=o.parentElement)||void 0===t?void 0:t.dataset.seriesIdx:void 0,r=l?n.uplot.series[Number(l)]:null;n.setFocus(r?r.id:null,!0)}),o.mouseDown=(e=>t=>{var i;const{tooltip:s,actions:n,yagr:o}=e;if(!o)return;const l=t.target;if(l instanceof Element){const e=l&&s.contains(l),t=l&&(null===(i=o.root.querySelector(".u-over"))||void 0===i?void 0:i.contains(l));e||t||(n.pin(!1),n.hide())}})({tooltip:e,actions:t,yagr:g}),document.addEventListener("mousemove",o.mouseMove),document.addEventListener("mousedown",o.mouseDown)})),null===(n=g.plugins.tooltip)||void 0===n||n.on("unpin",(()=>{o.mouseMove&&(document.removeEventListener("mousemove",o.mouseMove),o.mouseMove=null),o.mouseDown&&(document.removeEventListener("mousedown",o.mouseDown),o.mouseDown=null)}))}),[g]),s.useLayoutEffect((()=>{null===h||void 0===h||h({widget:g})}),[g,h]),s.createElement(s.Fragment,null,f&&g&&f({yagr:g}),s.createElement(o(),{ref:p,id:i,config:_,debug:v,onChartLoad:y}))})),P=F},81891:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.configureScales=t.niceScale=t.offsetScale=t.getScaleRange=void 0;const s=i(46976),n=i(48643);function o(e,t,i){const n=e>=0&&i.stacking,o=t<=0&&i.stacking;return{min:n?0:Math.round(e-Math.abs(e)*(i.offset||s.DEFAULT_Y_AXIS_OFFSET)),max:o?0:Math.round(t+Math.abs(t)*(i.offset||s.DEFAULT_Y_AXIS_OFFSET))}}function l(e,t,i){const n=e>=0&&i.stacking,o=t<=0&&i.stacking?0:"number"===typeof i.max?i.max:t,l=n?0:"number"===typeof i.min?i.min:e;if(l===o)return l>=0?{min:l,max:l+2}:{min:l-1,max:l+1};const a=r(o-l,!1),u=r(a/(s.DEFAULT_MAX_TICKS-1),!0);let c=Math.ceil(o/u)*u;c=isNaN(c)?100:c;let d=(n?Math.min(0,l):Math.floor(l/u)*u)||0;return d===c&&(d-=1,c+=1),{min:d,max:c}}function r(e,t){const i=Math.floor(Math.log10(e)),s=e/10**i;return(t?s<1.5?1:s<3?2:s<7?5:10:s<=1?1:s<=2?2:s<=5?5:10)*10**i}t.getScaleRange=(e,t)=>{const i=e.range;if("function"===typeof i)return(e,s,n)=>i(e,s,n,t);if(e.normalize)return[0,e.normalizeBase||100];if("auto"===e.range)return;let n;switch(e.range){case void 0:case"nice":n=l;break;case"offset":n=o;break;default:throw new Error(`Unknown scale range type ${e.range}`)}return(i,o,l)=>{let{min:a,max:u}=n(o,l,e,t);const c=e.minRange||s.DEFAULT_SCALE_MIN_RANGE;if(Math.abs(u-a)<c&&(a>=0?u+=c:(u+=c/2,a-=c/2)),a="number"===typeof e.min?e.min:a,u="number"===typeof e.max?e.max:u,"logarithmic"===e.type){const t="number"===typeof e.min;a<=0?a=s.DEFAULT_LOGARITHMIC_MIN_SCALE_VALUE:t||(a=Math.min(a,s.DEFAULT_LOGARITHMIC_MIN_SCALE_VALUE))}return(a>=u||u<=a)&&("number"===typeof e.max?a=u-(r(u-.1*u,!1)||1):u=a+(r(a+.1*a,!1)||1)),[a,u]}},t.offsetScale=o,t.niceScale=l,t.configureScales=function(e,i,o){const l=o.scales?{...o.scales}:{};return Object.keys(o.scales).length||(l.y={}),Object.entries(l).forEach((([l,r])=>{i[l]=i[l]||{};const a=i[l];if(l===s.DEFAULT_X_SCALE)return;const u="number"===typeof r.min?r.min:null,c="number"===typeof r.max?r.max:null;if(null!==c&&null!==u){if(c<=u)throw new Error("Invalid scale config. .max should be > .min");a.range=[u,c]}const d="logarithmic"===r.type;if(d)return a.distr=n.Scale.Distr.Logarithmic,void(a.range=(0,t.getScaleRange)(r,o));e.isEmpty?a.range=[null===u?d?1:0:u,null===c?100:c]:a.range=(0,t.getScaleRange)(r,o)})),i.x||(i.x={time:!0}),i}},87102:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.applyMixins=void 0,t.applyMixins=function(e,t){const i=[];t.forEach((t=>{Object.getOwnPropertyNames(t.prototype).forEach((i=>{Object.defineProperty(e.prototype,i,Object.getOwnPropertyDescriptor(t.prototype,i)||Object.create(null))})),t.prototype.initMixin&&i.push(t.prototype.initMixin)})),e.prototype.initMixins=function(){i.forEach((e=>e.call(this)))}}},88274:function(e,t,i){var s=this&&this.__createBinding||(Object.create?function(e,t,i,s){void 0===s&&(s=i);var n=Object.getOwnPropertyDescriptor(t,i);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,n)}:function(e,t,i,s){void 0===s&&(s=i),e[s]=t[i]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&s(t,e,i);return n(t,e),t},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.pathsRenderer=void 0;const r=l(i(16381)),a=o(i(46976));t.pathsRenderer=function(e,t,i,s){const n=e.series[t],{type:o,interpolation:l}=n;let u;switch(o){case"column":u=r.default.paths.bars&&r.default.paths.bars({size:[a.BARS_DRAW_FACTOR,a.BARS_DRAW_MAX],...e.series[t].renderOptions||{}});break;case"dots":u=()=>null;break;default:switch(l){case"smooth":u=r.default.paths.spline&&r.default.paths.spline();break;case"left":u=r.default.paths.stepped&&r.default.paths.stepped({align:1});break;case"right":u=r.default.paths.stepped&&r.default.paths.stepped({align:-1});break;default:u=r.default.paths.linear&&r.default.paths.linear()}}return u?u(e,t,i,s):null}},89353:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},98190:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/1836.f49bfd4f.chunk.js b/ydb/core/viewer/monitoring/static/js/1836.f49bfd4f.chunk.js deleted file mode 100644 index 5325adfd21..0000000000 --- a/ydb/core/viewer/monitoring/static/js/1836.f49bfd4f.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[1836],{81836:(e,t,i)=>{i.r(t),i.d(t,{default:()=>P});var s=i(59284),n=i(23936),o=i.n(n),l=i(905),r=i.n(l),a=i(8964),u=i(42392),c=i(22680),d=i(14750),h=i(68724),f=i(17148),p=i.n(f),g=i(66643);function m(e){const t=document.createElement("span");return t.innerText=e,t.innerHTML}const _="data-series-name",v="data-series-idx",y="_tooltip",b="_tooltip-row",w=()=>"<td />",E=e=>`<td class="_tooltip-rows__bubble-td">\n <div class="_tooltip-rows__bubble-div" style="background-color:${e.seriesColor};"></div>\n </td>`,S=e=>`<td class="_tooltip-rows__name-td">\n ${e.hideSeriesName?"":m(e.seriesName)}\n </td>`,x=e=>`<td class="_tooltip-rows__percent-td">\n ${e.percentValue?e.percentValue+"%":""}\n </td>`,A=e=>`<td class="_tooltip-rows__value-td">\n ${e.value}\n </td>`,T=e=>`<td class="_tooltip-rows__diff-td">\n ${e.diff?` (${e.diff})`:""}\n </td>`,O=(e,t=!1,i=1)=>`<td class="_tooltip-right__td ${t?"_tooltip-right__td_with-split-tooltip":""}" colspan="${i||1}">\n ${e.holiday?`<div class="_tooltip-right__holiday-div">\n <div class="_tooltip-right__holiday-emoji">\ud83c\udf88</div>\n <div>\n ${e.holidayText}\n ${e.region?`<span class="_tooltip-right__holiday-region">[${e.region}]</span>`:""}\n </div>\n </div>`:""}\n\n ${e.commentDateText?`<div class="${e.xComments?"_tooltip-right__margin-bot":""}">${e.commentDateText}</div>`:""}\n\n ${e.xComments?e.xComments.map((e=>`<div class="_tooltip-right__traf-div ${t?"_tooltip-right__traf-div_for-split-tooltip":""}" style="border-color: ${e.color};">${e.text}</div>`)).join(""):""}\n </td>`,L=(e,{isSelectedLine:t,cellsRenderers:i,isSingleLine:s,allowComment:n,withDarkBackground:o,rowIndex:l})=>{const r=e.commentText||e.xyCommentText,a=n&&r,u=i.slice(),c=`${String(l)||""}-${String(m(e.seriesName)).slice(0,20).replace(/(\r\n|\n|\r)/gm,"")}`;return e.insertCellAt&&(Object.keys(e.insertCellAt)||[]).forEach((e=>{u.splice(Number(e),0,w)})),e.customRender?`<tr class="${b}${t?" _tooltip-selected-row":""}${s?" _tooltip-uniq-row":""}${o?" _tooltip-row-dark-bg":""}" ${_}="${c}" ${e.seriesIdx?`${v}="${e.seriesIdx}"`:""}>\n ${0===e.customRender.trim().indexOf("<td")?e.customRender:`<td colspan="${i.length}">${e.customRender}</td>`}\n </tr>\n ${a?`<tr class="_tooltip-comment-row${t?" _tooltip-selected-row":""}${o?" _tooltip-row-dark-bg":""}">\n <td>\n ${e.commentText?`<div class="_tooltip-rows__comment-div">${e.commentText}</div>`:""}\n ${e.xyCommentText?`<div class="_tooltip-rows__comment-div">${e.xyCommentText}</div>`:""}\n </td>\n </tr>`:""}`:`<tr class="${b}${t?" _tooltip-selected-row":""}${s?" _tooltip-uniq-row":""}${o?" _tooltip-row-dark-bg":""}" ${_}="${c}" ${e.seriesIdx?`${v}="${e.seriesIdx}"`:""}>\n ${u.map(((t,i)=>e.replaceCellAt&&e.replaceCellAt[i]?"string"===typeof e.replaceCellAt[i]?e.replaceCellAt[i]:e.replaceCellAt[i](e):e.insertCellAt&&e.insertCellAt[i]?"string"===typeof e.insertCellAt[i]?e.insertCellAt[i]:e.insertCellAt[i](e):t(e))).join("")}\n </tr>\n\n ${a?`<tr class="_tooltip-comment-row${t?" _tooltip-selected-row":""}${o?" _tooltip-row-dark-bg":""}">\n <td colspan="4">\n ${e.commentText?`<div class="_tooltip-rows__comment-div">${e.commentText}</div>`:""}\n ${e.xyCommentText?`<div class="_tooltip-rows__comment-div">${e.xyCommentText}</div>`:""}\n </td>\n </tr>`:""}`},I=(e,t)=>{const{splitTooltip:i,activeRowAlwaysFirstInTooltip:s}=e,n=e.lines.findIndex((({selectedSeries:e})=>e)),o=e.lines[n],l=e.lines.slice(0,(t.lastVisibleRowIndex||e.lines.length)+1),r=[];r.push(E),e.shared&&r.push(S),e.withPercent&&r.push(x),r.push(A),e.useCompareFrom&&r.push(T);const u={isSingleLine:1===l.length,cellsRenderers:r},c={cellsRenderers:r,useCompareFrom:e.useCompareFrom,isSelectedLine:!0,allowComment:n>t.lastVisibleRowIndex},d=document.body.clientHeight/(window.visualViewport&&window.visualViewport.scale||1);let h=y;return i&&(h+=` ${y}_split-tooltip`),`\n<div class="${h}" style="max-height: ${i?"auto":`${d}px`}">\n ${e.tooltipHeader?`<div title="${(document.createRange().createContextualFragment(e.tooltipHeader).textContent||"").trim()}" class="_tooltip-date">\n ${e.tooltipHeader.trim()}\n </div>`:""}\n ${i&&(e.holiday||e.commentDateText||e.xComments&&e.xComments.length)?`<table border="0" cellpadding="0" cellspacing="0">\n <tbody>\n <tr>\n ${O(e,!0,r.length)}\n </tr>\n </tbody>\n </table>`:""}\n <table border="0" cellpadding="0" cellspacing="0">\n <tr>\n <td class="_tooltip-left__td">\n <table class="_tooltip-rows__table">\n ${i?"":`<thead class=_tooltip-header>\n ${o&&(s||t.lastVisibleRowIndex&&n>t.lastVisibleRowIndex)?L(o,c):""}\n <tr class="_tooltip-fake-row">${Array(r.length).fill("<td></td>").join("")}</tr>\n </thead>`}\n <tbody class="_tooltip-list">\n ${l.map(((e,t)=>L(e,function(e){return Object.assign(Object.assign({},u),{rowIndex:e,isSelectedLine:l.length>1&&e===n,withDarkBackground:l.length>2&&Boolean(e%2),allowComment:e!==n||!c.allowComment})}(t)))).join("")}\n </tbody>\n ${i?"":`<tbody class="_tooltip-footer">\n ${t.lastVisibleRowIndex&&e.hiddenRowsNumber>0?`<tr class="${b} _hidden-rows-sum${l.length%2?" _hidden-rows-sum-dark-bg":""}">\n <td colspan="${r.length-1}" class="_hidden-rows-number">\n ${(0,a.R)("common","tooltip-rest")} ${e.hiddenRowsNumber}\n </td>\n <td class="_hidden-rows-value">${e.hiddenRowsSum}</td>\n </tr>`:""}\n <tr class="_tooltip-fake-row">${Array(r.length).fill("<td></td>").join("")}</tr>\n ${e.sum?`<tr class="_tooltip-rows__summ-tr">\n <td class="_tooltip-rows__summ-td" colspan="${r.length-1}">${(0,a.R)("common","tooltip-sum")}</td>\n <td class="_tooltip-rows__summ-td _tooltip-rows__summ-td-value">\n ${e.sum}\n </td>\n </tr>`:""}\n </tbody>`}\n </table>\n </td>\n\n ${!i&&(e.holiday||e.commentDateText||e.xComments&&e.xComments.length)?O(e):""}\n </tr>\n </table>\n</div>`},D=e=>"object"===typeof e&&null!==e?Object.values(e).reduce(((e,t)=>t)):e,M=({data:e,rowId:t})=>{const i=e.yagr.getSeriesById(t);return e.yagr.getSerieLegendColor(i)},k=(e=1,t)=>(i,s)=>{const n=(s[s.length-1]-s[0])/e;return s.map((i=>{const s=(0,d.KQ)({input:i/e,timeZone:t});return 0===s.hour()&&0===s.minute()&&0===s.second()?s.format("DD.MM.YY"):s.format(n<300?"HH:mm:ss":"HH:mm")}))},C=(e,t)=>i=>{const s=i/((null===e||void 0===e?void 0:e.timeMultiplier)||1),n=(0,d.KQ)({input:s}),o=60*(n.utcOffset()-(0,d.KQ)({input:s,timeZone:t}).utcOffset())*1e3;return new Date(n.valueOf()-o)},R=e=>{var t,i;const{data:s,libraryConfig:n,theme:o}=e,l=Object.assign(Object.assign({},n),{timeline:s.timeline,series:s.graphs}),{timeZone:r}=s,a={appearance:{locale:g.W.get("lang"),theme:o}};var u;p()(a,l.chart),l.chart=a,(null===(t=l.tooltip)||void 0===t?void 0:t.show)&&(l.tooltip=l.tooltip||{},l.tooltip.render=(null===(i=l.tooltip)||void 0===i?void 0:i.render)||(u=s,e=>{const{timeZone:t}=u,i=e.yagr.config.chart.timeMultiplier||1,s=e.options,{x:n,state:o}=e;let l=0;const r=Object.values(e.scales).reduce(((e,t)=>(l+=t.sum||0,e.concat(t.rows))),[]),a=r.length,c=D(s.sum),h=D(s.maxLines),f=D(s.value),p=o.pinned?void 0:a>h?Math.abs(h-a):void 0,g=p?f(r.slice(-p).reduce(((e,{originalValue:t})=>e+(t||0)),0)):void 0,m={activeRowAlwaysFirstInTooltip:r.length>1,tooltipHeader:(0,d.KQ)({input:n/i,timeZone:t}).format("DD MMMM YYYY HH:mm:ss"),shared:!0,lines:r.map(((t,i)=>Object.assign(Object.assign({},t),{seriesName:t.name||"Serie "+(i+1),seriesColor:M({data:e,rowId:t.id}),selectedSeries:t.active,seriesIdx:t.seriesIdx,percentValue:"number"===typeof t.transformed?t.transformed.toFixed(1):""}))),withPercent:D(s.percent),hiddenRowsNumber:p,hiddenRowsSum:g};return c&&(m.sum=f(l)),I(m,{lastVisibleRowIndex:o.pinned?r.length-1:h-1})}),l.tooltip.className||(l.tooltip.className="chartkit-yagr-tooltip"),e.customTooltip&&(l.tooltip.virtual=!0),l.tooltip.sort=l.tooltip.sort||((e,t)=>t.rowIdx-e.rowIdx)),l.axes=l.axes||{};const c=l.axes[h.defaults.DEFAULT_X_SCALE];return l.editUplotOptions=e=>Object.assign(Object.assign({},e),{tzDate:r?C(l.chart,r):void 0}),c&&!c.values&&(c.values=k(l.chart.timeMultiplier,r)),c||(l.axes[h.defaults.DEFAULT_X_SCALE]={values:k(l.chart.timeMultiplier,r)}),l},F=s.forwardRef((function(e,t){const{id:i,data:{data:n},onLoad:l,onRender:d,onChartLoad:h,tooltip:f}=e,p=s.useRef(null),[g,m]=s.useState();if(!n||r()(n))throw new u.R({code:u.iY.NO_DATA,message:(0,a.R)("error","label_no-data")});const{config:_,debug:v}=((e,t)=>{const{data:i,sources:n,libraryConfig:o}=e.data,l=(0,c.i)();return{config:s.useMemo((()=>R({data:i,libraryConfig:o,theme:l,customTooltip:Boolean(e.tooltip)})),[i,o,l,e.tooltip]),debug:s.useMemo((()=>({filename:n&&Object.values(n).map((e=>{var t;return null===(t=null===e||void 0===e?void 0:e.data)||void 0===t?void 0:t.program})).filter(Boolean).join(", ")||t})),[t,n])}})(e,i),y=s.useCallback(((e,{renderTime:t})=>{null===l||void 0===l||l(Object.assign(Object.assign({},n),{widget:e,widgetRendering:t})),null===d||void 0===d||d({renderTime:t}),m(e)}),[l,d,n,m]),b=s.useCallback((()=>{g&&g.reflow()}),[]);return s.useImperativeHandle(t,(()=>({reflow(){b()}})),[b]),s.useEffect((()=>{var e,t,i,s,n;if(!g||(null===(t=null===(e=g.config)||void 0===e?void 0:e.tooltip)||void 0===t?void 0:t.virtual))return;const o={mouseMove:null,mouseDown:null};null===(i=g.plugins.tooltip)||void 0===i||i.on("render",(e=>{(e=>{const t=e.querySelector("._tooltip-header"),i=e.querySelector("._tooltip-list");if(!t||!i||!t.children.length)return;const s=t.children[0];for(let a=0;a<s.children.length;a++){const e=s.children[a];e.removeAttribute("style"),1===(null===i||void 0===i?void 0:i.children.length)&&(e.innerHTML=" ")}const n=i.children[0];for(let a=0;a<n.children.length;a++)n.children[a].removeAttribute("style");const o=t.children[0].getBoundingClientRect().width>i.children[0].getBoundingClientRect().width?t:i,l=Array.prototype.reduce.call(o.children[0].children,((e,t)=>(e.push(t.getBoundingClientRect().width),e)),[]),r=(o===t?i:t).children[0];for(let a=0;a<r.children.length;a++)r.children[a].setAttribute("style",`width: ${l[a]}px`);if(1===i.children.length)for(const a of s.children)a.innerHTML=""})(e)})),null===(s=g.plugins.tooltip)||void 0===s||s.on("pin",((e,{actions:t})=>{var i;o.mouseMove=(i={tooltip:e,yagr:g},e=>{var t;const{tooltip:s,yagr:n}=i;if(!n)return;const o=e.target,l=o&&s.contains(o)&&"TD"===o.tagName?null===(t=o.parentElement)||void 0===t?void 0:t.dataset.seriesIdx:void 0,r=l?n.uplot.series[Number(l)]:null;n.setFocus(r?r.id:null,!0)}),o.mouseDown=(e=>t=>{var i;const{tooltip:s,actions:n,yagr:o}=e;if(!o)return;const l=t.target;if(l instanceof Element){const e=l&&s.contains(l),t=l&&(null===(i=o.root.querySelector(".u-over"))||void 0===i?void 0:i.contains(l));e||t||(n.pin(!1),n.hide())}})({tooltip:e,actions:t,yagr:g}),document.addEventListener("mousemove",o.mouseMove),document.addEventListener("mousedown",o.mouseDown)})),null===(n=g.plugins.tooltip)||void 0===n||n.on("unpin",(()=>{o.mouseMove&&(document.removeEventListener("mousemove",o.mouseMove),o.mouseMove=null),o.mouseDown&&(document.removeEventListener("mousedown",o.mouseDown),o.mouseDown=null)}))}),[g]),s.useLayoutEffect((()=>{null===h||void 0===h||h({widget:g})}),[g,h]),s.createElement(s.Fragment,null,f&&g&&f({yagr:g}),s.createElement(o(),{ref:p,id:i,config:_,debug:v,onChartLoad:y}))})),P=F},46976:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TIME_MULTIPLIER=t.TOOLTIP_DEFAULT_MAX_LINES=t.TOOLTIP_X_OFFSET=t.TOOLTIP_Y_OFFSET=t.MIN_SELECTION_WIDTH=t.CURSOR_STYLE=t.MARKER_DIAMETER=t.SERIE_AREA_BORDER_WIDTH=t.SERIE_AREA_BORDER_COLOR=t.SERIE_LINE_WIDTH=t.SERIE_COLOR=t.PADDING_BOTH=t.PADDING_RIGHT=t.PADDING_LEFT=t.BARS_DRAW_MAX=t.BARS_DRAW_FACTOR=t.TYPES_ORDER=t.X_AXIS_INCRS=t.X_AXIS_SPACE=t.X_AXIS_SIZE=t.X_AXIS_TICK_GAP=t.DECADE=t.YEAR=t.DAY=t.HOUR=t.MINUTE=t.SECOND=t.Y_AXIS_LABEL_SIZE=t.Y_AXIS_SIZE=t.DEFAULT_Y_AXIS_LABEL_PADDING=t.DEFAULT_Y_AXIS_PADDING=t.DEFAULT_Y_AXIS_SIZE=t.Y_AXIS_TICK_GAP=t.AXIS_VALUES_FONT=t.AXIS_LABEL_FONT=t.DEFAULT_AXIS_FONT_SIZE=t.DARK_DEFAULT_LINE_COLOR=t.LIGHT_DEFAULT_LINE_COLOR=t.DEFAULT_TITLE_FONT_SIZE=t.DEFAULT_SYNC_KEY=t.DEFAULT_POINT_SIZE=t.DEFAULT_LOGARITHMIC_MIN_SCALE_VALUE=t.DEFAULT_SCALE_MIN_RANGE=t.DEFAULT_Y_AXIS_OFFSET=t.DEFAULT_MAX_TICKS=t.DEFAULT_CANVAS_PIXEL_RATIO=t.DEFAULT_FOCUS_ALPHA=t.DEFAULT_Y_SCALE=t.DEFAULT_X_SCALE=t.DEFAULT_X_SERIE_NAME=void 0,t.DEFAULT_X_SERIE_NAME="date",t.DEFAULT_X_SCALE="x",t.DEFAULT_Y_SCALE="y",t.DEFAULT_FOCUS_ALPHA=.3,t.DEFAULT_CANVAS_PIXEL_RATIO="undefined"===typeof window?1:window.devicePixelRatio,t.DEFAULT_MAX_TICKS=5,t.DEFAULT_Y_AXIS_OFFSET=.05,t.DEFAULT_SCALE_MIN_RANGE=.01,t.DEFAULT_LOGARITHMIC_MIN_SCALE_VALUE=.001,t.DEFAULT_POINT_SIZE=t.DEFAULT_CANVAS_PIXEL_RATIO>=2?4:2,t.DEFAULT_SYNC_KEY="sync",t.DEFAULT_TITLE_FONT_SIZE=14,t.LIGHT_DEFAULT_LINE_COLOR="#222222",t.DARK_DEFAULT_LINE_COLOR="#eeeeee",t.DEFAULT_AXIS_FONT_SIZE=11,t.AXIS_LABEL_FONT="normal 11px Lucida Grande, Arial, Helvetica, sans-serif",t.AXIS_VALUES_FONT="11px Lucida Grande, Arial, Helvetica, sans-serif",t.Y_AXIS_TICK_GAP=6,t.DEFAULT_Y_AXIS_SIZE=12,t.DEFAULT_Y_AXIS_PADDING=12,t.DEFAULT_Y_AXIS_LABEL_PADDING=2;t.Y_AXIS_SIZE=(e,i,s)=>{if(!i)return t.DEFAULT_Y_AXIS_SIZE;const n=i.reduce(((e,t)=>e.length>t.length?e:t)),{ctx:o}=e;o.save();const l=e.axes[s];o.font=l.font?l.font[0]:t.AXIS_VALUES_FONT;const{width:r}=o.measureText(n);o.restore();let a=0;if(l.label){a=l.labelSize||t.DEFAULT_AXIS_FONT_SIZE,o.font=l.labelFont?l.labelFont[0]:t.AXIS_LABEL_FONT;const{fontBoundingBoxAscent:e}=o.measureText(l.label);a=e,o.restore()}return a?r/t.DEFAULT_CANVAS_PIXEL_RATIO+a/t.DEFAULT_CANVAS_PIXEL_RATIO+t.DEFAULT_Y_AXIS_LABEL_PADDING:r/t.DEFAULT_CANVAS_PIXEL_RATIO+t.DEFAULT_Y_AXIS_PADDING},t.Y_AXIS_LABEL_SIZE=11,t.SECOND=1e3,t.MINUTE=60*t.SECOND,t.HOUR=60*t.MINUTE,t.DAY=24*t.HOUR,t.YEAR=365*t.DAY,t.DECADE=10*t.YEAR,t.X_AXIS_TICK_GAP=6,t.X_AXIS_SIZE=32,t.X_AXIS_SPACE=80,t.X_AXIS_INCRS=[1,10,50,100,200,500,t.SECOND,2*t.SECOND,5*t.SECOND,10*t.SECOND,15*t.SECOND,30*t.SECOND,t.MINUTE,5*t.MINUTE,10*t.MINUTE,30*t.MINUTE,t.HOUR,2*t.HOUR,3*t.HOUR,4*t.HOUR,6*t.HOUR,12*t.HOUR,t.DAY,2*t.DAY,3*t.DAY,5*t.DAY,10*t.DAY,15*t.DAY,30*t.DAY,60*t.DAY,120*t.DAY,180*t.DAY,t.YEAR,2*t.YEAR,5*t.YEAR,10*t.YEAR],t.TYPES_ORDER=["dots","line","area","column"],t.BARS_DRAW_FACTOR=.5,t.BARS_DRAW_MAX=100,t.PADDING_LEFT=[14,14,0,4],t.PADDING_RIGHT=[14,4,0,14],t.PADDING_BOTH=[14,4,0,4],t.SERIE_COLOR="rgba(0, 0, 0, 1)",t.SERIE_LINE_WIDTH=2,t.SERIE_AREA_BORDER_COLOR="rgba(0, 0, 0, 0.2)",t.SERIE_AREA_BORDER_WIDTH=1,t.MARKER_DIAMETER=8,t.CURSOR_STYLE="1px solid #ffa0a0",t.MIN_SELECTION_WIDTH=15;t.default=class{constructor(e,t="light"){this.setTheme(t),this.colors=e}setTheme(e){this.theme=e}get GRID(){return{show:!0,stroke:()=>this.colors.parse("--yagr-grid"),width:1}}get X_AXIS_TICKS(){return{size:8,...this.GRID}}get Y_AXIS_TICKS(){return{size:6,...this.GRID}}get AXIS_STROKE(){return this.colors.parse("--yagr-axis-stroke")}get BACKGROUND(){return this.colors.parse("--yagr-background")}get SHIFT(){var e;return(null===(e=this.theme)||void 0===e?void 0:e.startsWith("light"))?.68:-.6}get DEFAULT_LINE_COLOR(){var e;return(null===(e=this.theme)||void 0===e?void 0:e.startsWith("light"))?t.LIGHT_DEFAULT_LINE_COLOR:t.DARK_DEFAULT_LINE_COLOR}},t.TOOLTIP_Y_OFFSET=24,t.TOOLTIP_X_OFFSET=24,t.TOOLTIP_DEFAULT_MAX_LINES=10,t.TIME_MULTIPLIER=1},37100:function(e,t,i){var s=this&&this.__createBinding||(Object.create?function(e,t,i,s){void 0===s&&(s=i);var n=Object.getOwnPropertyDescriptor(t,i);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,n)}:function(e,t,i,s){void 0===s&&(s=i),e[s]=t[i]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&s(t,e,i);return n(t,e),t},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=l(i(16381)),a=l(i(72168)),u=i(50497),c=l(i(20500)),d=o(i(46976)),h=l(i(576)),f=i(2836),p=i(78229),g=i(65781),m=i(87102),_=i(32532);class v{get isEmpty(){return this.state.isEmptyDataSet}constructor(e,t){this.plugins={},this._meta={},this._uHooks={},this.init=()=>{var e;(null===(e=this.config.chart.size)||void 0===e?void 0:e.adaptive)&&!this.resizeOb&&(this.resizeOb=new ResizeObserver((0,u.debounce)(this.onResize,this.config.chart.size.resizeDebounceMs||100)),this.resizeOb.observe(this.root)),this.config.hooks.dispose||(this.config.hooks.dispose=[]),this.unsubscribe(),this.config.hooks.dispose.push(this.trackMouse())},this.execHooks=(e,...t)=>{const i=this.config.hooks[e];if(Array.isArray(i))for(const s of i)s&&"function"===typeof s&&s(...t)},this.initRender=(e,t)=>{var i,s,n;const o=null===(i=this.config.legend)||void 0===i?void 0:i.position;this.root.firstChild?o&&"bottom"!==o?this.root.appendChild(e.root):this.root.insertBefore(e.root,this.root.firstChild):o&&"bottom"!==o?this.root.insertBefore(e.root,this.root.firstChild):this.root.appendChild(e.root),(null===(s=this.config.legend)||void 0===s?void 0:s.show)&&(null===(n=this.plugins.legend)||void 0===n||n.init(e),this.reflow(!1)),this.initTitle(),t()},this.onResize=e=>{var t;const[i]=e;this._cache.height===i.contentRect.height&&this._cache.width===i.contentRect.width||(null===(t=this.plugins.tooltip)||void 0===t||t.reset(),this.reflow(),this.execHooks("resize",{entries:e,chart:this}))},this.initMixins(),this._startTime=performance.now(),this.state={isEmptyDataSet:!1,isMouseOver:!1,stage:"config",y2uIdx:{},subscribed:!1};const i=Object.assign({title:{},data:[],axes:{},series:[],scales:{},hooks:{},settings:{},chart:{},cursor:{},plugins:{},legend:{show:!1},tooltip:{show:!0},grid:null,markers:{}},t);this.config=i,this.inStage("config",(()=>{var t;this.id=e.id||(0,u.genId)(),this.root=e,this.root.classList.add("yagr"),this.root.id||(this.root.id=this.id);const s=new c.default,n=this.config.cursor.sync,o=this.config.chart;o.series||(o.series={type:"line"}),o.size||(o.size={adaptive:!0}),o.appearance||(o.appearance={locale:"en"}),o.select||(o.select={}),this.utils={colors:s,i18n:(0,h.default)((null===(t=i.chart.appearance)||void 0===t?void 0:t.locale)||"en"),theme:new d.default(s)},s.setContext(e),n&&(this.utils.sync=r.default.sync("string"===typeof n?n:d.DEFAULT_SYNC_KEY)),!o.size.adaptive&&o.size.width&&o.size.height&&(e.style.width=(0,u.px)(o.size.width),e.style.height=(0,u.px)(o.size.height)),this.plugins.legend=new a.default,this.setTheme(o.appearance.theme||"light"),this.createUplotOptions(),this._cache={height:this.options.height,width:this.options.width},i.editUplotOptions&&(this.options=i.editUplotOptions(this.options))})).inStage("processing",(()=>{this.transformSeries()})).inStage("uplot",(()=>{this.uplot=new r.default(this.options,this.series,this.initRender),this.canvas=e.querySelector("canvas"),this.init();const t=performance.now()-this._startTime;this._meta.processTime=t})).inStage("render")}redraw(e=!0,t=!0){this.uplot.redraw(e,t)}getSeriesById(e){return this.uplot.series[this.state.y2uIdx[e]]}getSerieLegendColor(e){const{legendColorKey:t,color:i,lineColor:s}=e;let n=i;switch(t){case"lineColor":s&&(n=s);break;case"color":n=i}return n}dispose(){var e,t,i,s;this.resizeOb&&this.resizeOb.unobserve(this.root),this.unsubscribe(),null===(t=null===(e=this.plugins)||void 0===e?void 0:e.tooltip)||void 0===t||t.dispose(),null===(s=null===(i=this.plugins)||void 0===i?void 0:i.legend)||void 0===s||s.destroy(),this.uplot.destroy(),this._uHooks={},this.execHooks("dispose",{chart:this})}toDataUrl(){return this.canvas.toDataURL("img/png")}subscribe(){var e;this.state.subscribed||(null===(e=this.utils.sync)||void 0===e||e.sub(this.uplot),this.state.subscribed=!0)}unsubscribe(){var e;null===(e=this.utils.sync)||void 0===e||e.unsub(this.uplot),this.state.subscribed=!1}inStage(e,t){this.state.stage,this.execHooks("stage",{chart:this,stage:e});try{t&&t()}catch(i){console.error(i),this.onError(i)}return this}initTitle(){if(this.config.title&&this.config.title.fontSize){const e=this.config.title.fontSize,t=this.root.querySelector(".u-title");t.setAttribute("style",`font-size:${e}px;line-height:${e}px;`),t.innerHTML=this.config.title.text}}onError(e){return this.execHooks("error",{stage:this.state.stage,error:e,chart:this}),e}trackMouse(){const e=()=>{this.state.isMouseOver=!0},t=()=>{this.state.isMouseOver=!1};return this.root.addEventListener("mouseover",e),this.root.addEventListener("mouseleave",t),()=>{this.root.removeEventListener("mouseover",e),this.root.removeEventListener("mouseleave",t)}}get clientHeight(){var e;const t=this.config.title.text?(this.config.title.fontSize||d.DEFAULT_TITLE_FONT_SIZE)+8:0;return this.root.clientHeight-t-((null===(e=this.plugins.legend)||void 0===e?void 0:e.state.totalSpace)||0)}reflow(e=!0){const t=this.root.clientWidth,i=this.clientHeight;this._cache.width=t,this.options.width=t,this._cache.height=i,this.options.height=i,e&&this.uplot.setSize({width:this.options.width,height:this.options.height}),e&&this.uplot.redraw()}}(0,m.applyMixins)(v,[f.CreateUplotOptionsMixin,p.TransformSeriesMixin,g.DynamicUpdatesMixin,_.BatchMixin]),t.default=v},576:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});const i={ru:{"hide-all":"\u0421\u043a\u0440\u044b\u0442\u044c \u0432\u0441\u0435","show-all":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u0435",sum:"\u0421\u0443\u043c\u043c\u0430",scale:"\u0428\u043a\u0430\u043b\u0430",series:"\u041b\u0438\u043d\u0438\u044f",weekend:"\u0412\u044b\u0445\u043e\u0434\u043d\u043e\u0439",nodata:"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445"},en:{"hide-all":"Hide all","show-all":"Show all",sum:"Total",scale:"Scale",series:"Series",weekend:"Weekend",nodata:"No data"}};t.default=(e="en")=>("string"!==typeof e&&(i.custom=e,e="custom"),t=>i[e][t]||t)},32532:function(e,t,i){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BatchMixin=void 0;const n=s(i(16381)),o=s(i(72168));t.BatchMixin=class{initMixin(){this._batch={active:!1,fns:[]}}batch(e){var t;return this._batch.active?e(this._batch):(this._batch.active=!0,e(this._batch),this._batch.reinit?this.fullUpdate():(this._batch.redrawLegend&&(null===(t=this.plugins.legend)||void 0===t||t.redraw()),this._batch.reopt&&this.createUplotOptions(!0),this._batch.recalc&&this.inStage("processing",(()=>{this.transformSeries()})).inStage("listen"),this._batch.fns.length&&this.uplot.batch((()=>this._batch.fns.forEach((e=>e(this._batch))))),this._batch.redraw&&this.uplot&&this.redraw(...this._batch.redraw),void(this._batch={active:!1,fns:[]})))}fullUpdate(){let e,t;this.inStage("dispose",(()=>{var i;if(this.uplot){const i=this.uplot.cursor;e=i.left,t=i.top,this.uplot.destroy()}null===(i=this.plugins.legend)||void 0===i||i.destroy()})).inStage("config",(()=>{this.plugins.legend=new o.default,this._batch={active:!1,fns:[]},this.createUplotOptions(!0),this.options=this.config.editUplotOptions?this.config.editUplotOptions(this.options):this.options})).inStage("processing",(()=>{this.transformSeries()})).inStage("uplot",(()=>{this.uplot=new n.default(this.options,this.series,this.initRender),e&&t&&e>0&&t>0&&this.uplot.setCursor({left:e,top:t}),this.state.subscribed||this.unsubscribe()})).inStage("listen")}}},2836:function(e,t,i){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CreateUplotOptionsMixin=void 0;const n=s(i(25700)),o=s(i(60758)),l=i(46976),r=i(28265),a=s(i(67903)),u=i(81891),c=i(24793),d=i(27658),h=i(48643),f=s(i(15648));function p(e,t){for(const i of e||[])if(i===t)return;null===e||void 0===e||e.push(t)}t.CreateUplotOptionsMixin=class{initMixin(){this._uHooks.onDraw=()=>{if("listen"===this.state.stage)return;this.state.stage="listen",this.execHooks("stage",{chart:this,stage:this.state.stage});const e=performance.now()-this._startTime;this._meta.renderTime=e,this.execHooks("load",{chart:this,meta:this._meta})},this._uHooks.ready=()=>{const e=performance.now()-this._startTime;this._meta.initTime=e,this.execHooks("inited",{chart:this,meta:{initTime:e}})},this._uHooks.drawClear=e=>{const{ctx:t}=e;t.save(),t.fillStyle=this.utils.theme.BACKGROUND,t.fillRect(l.DEFAULT_CANVAS_PIXEL_RATIO,l.DEFAULT_CANVAS_PIXEL_RATIO,e.width*l.DEFAULT_CANVAS_PIXEL_RATIO-2*l.DEFAULT_CANVAS_PIXEL_RATIO,e.height*l.DEFAULT_CANVAS_PIXEL_RATIO-2*l.DEFAULT_CANVAS_PIXEL_RATIO),t.restore()},this._uHooks.setSelect=e=>{const{left:t,width:i}=e.select,[s,n]=[e.posToVal(t,l.DEFAULT_X_SCALE),e.posToVal(t+i,l.DEFAULT_X_SCALE)],{timeMultiplier:o=l.TIME_MULTIPLIER}=this.config.chart||{};this.execHooks("onSelect",{from:Math.ceil(s/o),to:Math.ceil(n/o),chart:this}),e.setSelect({width:0,height:0,top:0,left:0},!1)}}createUplotOptions(e=!1){var t,i,s,g,m,_,v,y,b,w,E;const{config:S}=this,x=[];let A=null===(t=this.plugins)||void 0===t?void 0:t.tooltip;if(S.tooltip&&!1!==S.tooltip.show&&(A?A.updateOptions(S.tooltip):A=(0,n.default)(this,S.tooltip),x.push(A.uplot),this.plugins.tooltip=A),e)this.plugins.plotLines&&x.push(this.plugins.plotLines.uplot);else{const e=(0,f.default)(this.config.plotLines||{})(this);this.plugins.plotLines=e,x.push(e.uplot)}Object.entries(S.plugins).forEach((([e,t])=>{const i=t(this);x.push(i.uplot),Object.assign(this.plugins,{[e]:i})}));const T=S.chart,O={width:this.root.clientWidth,height:this.clientHeight,title:null===(i=S.title)||void 0===i?void 0:i.text,plugins:x,focus:{alpha:l.DEFAULT_FOCUS_ALPHA},series:[{id:l.DEFAULT_X_SERIE_NAME,$c:S.timeline,scale:l.DEFAULT_X_SCALE,count:S.timeline.length}],ms:T.timeMultiplier||l.TIME_MULTIPLIER,hooks:S.hooks||{}};if(this.state.isEmptyDataSet=0===S.timeline.length||0===S.series.length||S.series.every((({data:e})=>0===e.length)),O.cursor=O.cursor||{},O.cursor.points=O.cursor.points||{},O.cursor.drag=O.cursor.drag||{dist:(null===(s=T.select)||void 0===s?void 0:s.minWidth)||l.MIN_SELECTION_WIDTH,x:null===(g=O.cursor.y)||void 0===g||g,y:null!==(m=O.cursor.y)&&void 0!==m&&m,setScale:null===(v=null===(_=T.select)||void 0===_?void 0:_.zoom)||void 0===v||v},this.utils.sync&&(O.cursor.sync=O.cursor.sync||{key:this.utils.sync.key}),S.cursor){const e=(0,o.default)(this,S.cursor);this.plugins.cursor=e,x.push(e.uplot)}const L=S.series||[],I=O.series;for(let n=L.length-1;n>=0;n--){const e=(0,r.configureSeries)(this,L[n]||{},n),t=I.push(e);this.state.y2uIdx[e.id||n]=t-1}const D=(0,a.default)(this,S);x.push(D),O.series=I,S.scales&&0!==Object.keys(S.scales).length||(S.scales={x:{},y:{}}),O.scales=O.scales||{},O.scales=(0,u.configureScales)(this,O.scales,S),O.axes=O.axes||[];return O.axes.push(...(0,c.configureAxes)(this,S)),O.hooks=S.hooks||{},O.hooks.draw=O.hooks.draw||[],O.hooks.ready=O.hooks.ready||[],O.hooks.drawClear=O.hooks.drawClear||[],O.hooks.setSelect=O.hooks.setSelect||[],p(O.hooks.draw,this._uHooks.onDraw),p(O.hooks.ready,this._uHooks.ready),p(O.hooks.drawClear,this._uHooks.drawClear),p(O.hooks.setSelect,this._uHooks.setSelect),O.drawOrder=(null===(y=T.appearance)||void 0===y?void 0:y.drawOrder)?null===(b=T.appearance)||void 0===b?void 0:b.drawOrder.filter((e=>e===h.DrawOrderKey.Series||e===h.DrawOrderKey.Axes)):[h.DrawOrderKey.Series,h.DrawOrderKey.Axes],O.legend={show:!1},O.padding=(null===(w=S.chart.size)||void 0===w?void 0:w.padding)||(0,d.getPaddingByAxes)(O),null===(E=this.plugins.legend)||void 0===E||E.preInit(this,this.config.legend,O),O.height=this.clientHeight,this.options=O,O}}},65781:function(e,t,i){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DynamicUpdatesMixin=void 0;const n=s(i(576)),o=i(46976),l=i(28265),r=i(24793),a=i(50497);function u(e,t,i,s=!1){var n,o,l,r,u,c,d,h,f,p,g,m;if(s)return e.config={...e.config,...i},void(t.reinit=!0);const _=function(e,t){return function(i,s){const n=(0,a.get)(e,i),o=(0,a.get)(t,i);return s?!s(n,o):n!==o}}(e.config,i);i.title&&_("title")&&e.setTitle(i.title),(null===(o=null===(n=i.chart)||void 0===n?void 0:n.appearance)||void 0===o?void 0:o.theme)&&_("chart.appearance.theme")&&e.setTheme(null===(r=null===(l=i.chart)||void 0===l?void 0:l.appearance)||void 0===r?void 0:r.theme),(null===(c=null===(u=i.chart)||void 0===u?void 0:u.appearance)||void 0===c?void 0:c.locale)&&_("chart.appearance.locale")&&e.setLocale(null===(h=null===(d=i.chart)||void 0===d?void 0:d.appearance)||void 0===h?void 0:h.locale),i.axes&&_("axes",a.deepIsEqual)&&e.setAxes(i.axes),i.scales&&_("scales",a.deepIsEqual)&&e.setScales(i.scales);Boolean(i.series)&&function(e,t){if(e.length!==(null===t||void 0===t?void 0:t.length))return!0;const i=new Map,s=new Map;return e.forEach((e=>{i.set(e.id,e)})),t.forEach((e=>{s.set(e.id,e)})),!(!t.some((({id:e})=>!i.has(e)))&&!e.some((({id:e})=>!s.has(e))))}(e.config.series,i.series)&&(t.redrawLegend=!0),(i.series||i.timeline)&&e.setSeries(null!==(f=i.timeline)&&void 0!==f?f:e.config.timeline,null!==(p=i.series)&&void 0!==p?p:e.config.series,{incremental:!1}),i.tooltip&&_("tooltip")&&(null===(g=e.plugins.tooltip)||void 0===g||g.updateOptions(i.tooltip)),i.legend&&_("legend")&&(t.reinit=!0),null===(m=e.plugins.tooltip)||void 0===m||m.reset(),t.reopt=!0,e.config={...e.config,...i}}function c(e,t,i,s={incremental:!0,splice:!1}){let n,o=[],r=[],a=null,u=!1,c=!1;if(["number","string"].includes(typeof t)?(u=!1,n=!1,r=[i],a=t):"number"===typeof t[0]?(o=t,r=i,u=Boolean(s.incremental),n=!s.incremental):(r=t,n=!0),this.isEmpty&&r.some((({data:e})=>null===e||void 0===e?void 0:e.length)))e.reinit=!0;else{if(!1===n){let t=!1;if(u&&this.config.timeline.push(...o),r.forEach((i=>{var s,n;let o="number"===typeof a?this.config.series[0]:this.config.series.find((({id:e})=>e===i.id||e===a)),r=null===o||void 0===o?void 0:o.id;if("number"===typeof a&&this.state.y2uIdx[a]&&(o=this.config.series[a],r=a),o&&r){const{data:a,...d}=i,h=this.state.y2uIdx[r];"dots"!==o.type&&"dots"!==i.type&&"dots"!==(null===(s=this.config.chart.series)||void 0===s?void 0:s.type)||(e.reinit=!0),u?o.data=a?o.data.concat(a):o.data:(null===a||void 0===a?void 0:a.length)&&(o.data=a,c=!0);const f=(0,l.configureSeries)(this,Object.assign(o,d),h),p=this.options.series[h],g=this.uplot.series[h];g.show!==f.show&&e.fns.push((()=>{this.uplot.setSeries(h,{show:f.show})})),null!==g._focus&&g._focus===f.focus||e.fns.push((()=>{this.uplot.setSeries(h,{focus:f.focus})})),g.color!==f.color&&(t=!0),f.scale&&(null===(n=this.config.scales[f.scale])||void 0===n?void 0:n.stacking)&&(c=!0),(0,l.overrideSeriesInUpdate)(p,f),(0,l.overrideSeriesInUpdate)(g,f)}else e.fns.push((()=>{const e=(0,l.configureSeries)(this,i,this.config.series.length);this.state.y2uIdx[e.id]=this.uplot.series.length,this.uplot.addSeries(e,this.config.series.length)})),this.config.series.push(i)})),t&&e.fns.push((()=>{var e;null===(e=this.plugins.cursor)||void 0===e||e.updatePoints()})),s.splice){const e=r[0].data.length;this.config.series.forEach((t=>{t.data.splice(0,e)})),this.config.timeline.splice(0,o.length)}}else this.config.timeline=o,this.config.series=r,e.reinit=!0;e.reinit||(this._batch.fns.push((()=>{var e,t;return null===(t=null===(e=this.plugins)||void 0===e?void 0:e.tooltip)||void 0===t?void 0:t.reset()})),(c||o.length)&&(e.recalc=!0,e.fns.push((()=>{this.uplot.setData(this.series)}))))}}t.DynamicUpdatesMixin=class{setLocale(e){this.batch((t=>function(e,t,i){e.utils.i18n=(0,n.default)(i),t.redrawLegend=!0}(this,t,e)))}setTitle(e){this.batch((t=>{this.config.title=e,this.initTitle(),t.redraw=[!0,!0]}))}setTheme(e){this.batch((t=>function(e,t,i){e.utils.theme.setTheme(t);const s=["light","light-hc","dark","dark-hc"].map((e=>`yagr_theme_${e}`));e.root.classList.remove(...s),e.root.classList.add("yagr_theme_"+t),i.redraw=[!1,!0]}(this,e,t)))}setAxes(e){this.batch((t=>function(e,t,i){const{x:s,...n}=i;if(s){const t=e.uplot.axes.find((({scale:e})=>e===o.DEFAULT_X_SCALE));t&&(0,r.updateAxis)(e,t,{scale:o.DEFAULT_X_SCALE,...s})}Object.entries(n).forEach((([t,i])=>{const s=e.uplot.axes.find((({scale:e})=>e===t));s&&(0,r.updateAxis)(e,s,{scale:t,...i})})),t.redraw=(0,r.getRedrawOptionsForAxesUpdate)(i)}(this,t,e)))}setSeries(e,t,i={incremental:!0,splice:!1}){this.batch((s=>c.call(this,s,e,t,i)))}setFocus(e,t){this.batch((()=>function(e,t,i){var s;const n=null===t?null:e.state.y2uIdx[t];null===(s=e.plugins.cursor)||void 0===s||s.focus(n,i),e.uplot.setSeries(n,{focus:i})}(this,e,t)))}setVisible(e,t,i=!0){this.batch((s=>function(e,t,i,s,n){const l=null===t?null:e.state.y2uIdx[t];(null===t?e.config.series:[e.config.series.find((({id:e})=>e===t))]).forEach((e=>{e&&(e.show=i)})),n.fns.push((()=>{e.uplot.setSeries(l,{show:i})})),e.options.series=e.uplot.series;let r=!1;if(l){const t=e.uplot.series[l];t.show=i;const s=t.scale||o.DEFAULT_Y_SCALE,n=e.config.scales[s];r=Boolean(n&&n.stacking)}else r=e.options.series.reduce(((t,s)=>{var n;const{scale:o}=s;return s.show=i,Boolean(o&&(null===(n=e.config.scales[o])||void 0===n?void 0:n.stacking)||t)}),!1);r&&(n.recalc=!0,n.fns.push((()=>{var t;e.uplot.setData(e.series,!0),s&&(null===(t=e.plugins.legend)||void 0===t||t.update())})))}(this,e,t,i,s)))}setScales(e){this.batch((t=>function(e,t,i){let s=!1,n=!1;Object.entries(t).forEach((([t,i])=>{const o=e.config.scales[t];if(o){const{stacking:e}=o,{stacking:t}=i;e!==t&&(s=!0),i.normalize===o.normalize&&i.normalizeBase===o.normalizeBase||(n=!0)}}));const l=Object.entries(t).every((([t,i])=>{const s=e.config.scales[t],{min:n,max:o,...l}=s,{min:r,max:u,...c}=i;return!(!1===(0,a.deepIsEqual)(c,l))&&(n!==r||o!==u)})),r=Object.keys(t).includes(o.DEFAULT_X_SCALE);if(l&&!r)return Object.entries(t).forEach((([t,s])=>{i.fns.push((()=>{e.uplot.setScale(t,{min:s.min,max:s.max})}))}));(s||n)&&(i.reinit=!0),e.config.scales=t,i.reinit=!0}(this,e,t)))}setConfig(e,t=!1){this.batch((i=>u(this,i,e,t)))}}},78229:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TransformSeriesMixin=void 0;const s=i(46976),n=i(50497);t.TransformSeriesMixin=class{transformSeries(){const e=performance.now(),t=[],i=this.config,o=i.timeline;let l=i.processing||!1,r=this.config.series.map((({data:e})=>e));l&&l.interpolation&&(r=(0,n.preprocess)(r,o,l),l=!1);const a=Boolean(l&&l.nullValues),u=l&&l.nullValues||{},c={};for(let d=0;d<r.length;d++){let e=[];const i=d+1,l=r[d],h=this.options.series.length-i,f=this.options.series[h],p=f.scale||s.DEFAULT_Y_SCALE,g=this.config.scales[p]||{},m=g.stacking,_=f.stackGroup||0;let v=!0;m&&!c[p]&&(this.options.focus=this.options.focus||{alpha:1.1},this.options.focus.alpha=1.1,c[p]=[]),m&&!c[p][_]&&(c[p][_]=new Array(o.length).fill(0)),f.count=0;for(let t=0;t<l.length;t++){let i=l[t];if(a&&u[String(i)]&&(i=null),f.transform&&(f._transformed=!0,i=f.transform(i,r,t)),g.transform&&(f._transformed=!0,i=g.transform(i,r,t)),null===i){if("line"===f.type||"dots"===f.type){e.push(null);continue}i=m?0:null}if(v=!1,g.normalize){const e=(0,n.getSumByIdx)(this.options.series,t,p);i=e&&(null!==i&&void 0!==i?i:0)/e*(g.normalizeBase||100),f.normalizedData=f.normalizedData||[],f.normalizedData[t]=i}g.stacking&&(!1===f.show&&(i=0),i=c[p][_][t]+=null!==i&&void 0!==i?i:0),"logarithmic"===g.type&&0===i&&(i=1),f.sum=(f.sum||0)+(i||0);"number"===typeof f.$c[t]&&(f.count+=1),e.push(i)}f.avg=(f.sum||0)/f.count,f.empty=v,f.postProcess&&(e=f.postProcess(e,d,this)),t.unshift(e)}return t.unshift(this.config.timeline),this.series=t,this.execHooks("processed",{chart:this,meta:{processTime:performance.now()-e}}),this.series}}},60758:function(e,t,i){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.cursorPoint=void 0;const n=i(46976),o=s(i(20500)),l=i(50497);function r(e,t,i){if(i||(i=t.querySelector("span")),!i)return;t.style.background=`${e.color}`,i.style.background=e.color||n.SERIE_COLOR;const s=o.default.parseRgba(e.color)||[256,256,256,0];t.style.boxShadow=`0px 0px 0px 1px rgba(${s[0]}, ${s[1]}, ${s[2]}, 0.5)`}function a(e,t){const i=e.series[t],s=(0,l.html)("span"),n=(0,l.html)("div",{class:"yagr-point","data-idx":String(t)},i.empty?void 0:s);return i.empty?(n.style.display="none",n):(r(i,n,s),n)}function u(e,t){return void 0===t?Array.from(e.querySelectorAll(".yagr-point")):[e.querySelector(`.yagr-point[data-idx="${t}"]`)]}t.cursorPoint=a,t.default=function(e,t){var i,s,o;const c=e.config.processing||{},d=Boolean(c.interpolation),h=null===(i=c.interpolation)||void 0===i?void 0:i.value,f=!1!==t.snapToValues&&(t.snapToValues||"closest"),p=!!d&&(null!==(o=null===(s=c.interpolation)||void 0===s?void 0:s.snapToValues)&&void 0!==o?o:"closest");let g={};const m=(e,t,i)=>{const s=e.series[t];if(s.scale===n.DEFAULT_X_SCALE)return i;const o=s.$c||e.data[t],r=o[i];return d&&r===h?(0,l.findDataIdx)(o,s,i,p,h):null===r?(0,l.findDataIdx)(o,s,i,f,null):i};return{showPoints:t=>{const i=e.uplot.over;if(!i)return;u(i,t).forEach((e=>{e.style.visibility="visible"}))},hidePoints:t=>{const i=e.uplot.over;if(!i)return;u(i,t).forEach((e=>{e.style.visibility="hidden"}))},pin:t=>{var i;const s=e.root.querySelector(".u-over");if(s)if(t){const e=document.createElement("div");e.classList.add("yagr-points-holder"),s.querySelectorAll(".yagr-point").forEach((t=>{const i=t.cloneNode(!0);e.appendChild(i);const s=i.dataset.idx;s&&(g[s]=i)})),s.appendChild(e)}else g={},null===(i=s.querySelector(".yagr-points-holder"))||void 0===i||i.remove()},updatePoints:()=>{e.root.querySelectorAll(".yagr-point").forEach((t=>{const i=Number(t.dataset.idx);if(isNaN(i))return;r(e.uplot.series[i],t)}))},focus:(e,t)=>{Object.entries(g).forEach((([i,s])=>{s.style.display=null!==e?i===String(e)&&t?"block":"none":t?"block":"none"}))},uplot:{opts:(e,i)=>{var s;i.cursor=i.cursor||{};const o=i.series.filter((e=>e.empty)).length,l=i.series.length-1,r=null!==(s=null===t||void 0===t?void 0:t.maxMarkers)&&void 0!==s?s:50;i.cursor.points={show:l-o<=r&&a,size:(e,i)=>{const s=e.series[i];return(s.cursorOptions?s.cursorOptions.markersSize:null===t||void 0===t?void 0:t.markersSize)||n.MARKER_DIAMETER}},i.cursor.dataIdx=m},hooks:{...t.hideMarkers&&{setCursor:i=>{var s,n;const o=i.cursor.idx;if(!(0,l.isNil)(o))for(let l=1;l<i.series.length;l++){const r=i.series[l].$c[o];t.hideMarkers(r,l)?null===(s=e.plugins.cursor)||void 0===s||s.hidePoints(l):null===(n=e.plugins.cursor)||void 0===n||n.showPoints(l)}}},init:e=>{const i=e.root.querySelector(".u-cursor-x");i&&(t.x&&!1===t.x.visible&&(i.style.display="none"),i.style.borderRight=t.x&&t.x.style||n.CURSOR_STYLE);const s=e.root.querySelector(".u-cursor-y");s&&(t.y&&!1!==t.y.visible?s.style.borderBottom=t.y.style||n.CURSOR_STYLE:s.style.display="none")}}}}}},72168:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.hasOneVisibleLine=void 0;const s=i(46976),n=i(50497),o=i(11213),l="null";t.hasOneVisibleLine=e=>e.some((({show:e,id:t})=>t!==s.DEFAULT_X_SERIE_NAME&&e));const r=(e,i)=>i.length>3&&e((0,t.hasOneVisibleLine)(i)?"hide-all":"show-all");t.default=class{constructor(){this.pagesCount=0,this.state={page:0,pages:1,pageSize:0,rowsPerPage:1,paginated:!1,requiredSpace:0,totalSpace:0},this.itemsHtml="",this.preInit=(e,t,i)=>{this.yagr=e,this.options=Object.assign({show:!1,position:"bottom",fontSize:12,maxLegendSpace:.3,className:void 0,behaviour:"basic"},t||{}),this.calc(i)},this.init=e=>{var t;this.options.show&&(this.uplot=e,null===(t=e.root.querySelector(".u-legend"))||void 0===t||t.remove(),this.render())},this.update=()=>{this.yagr.root.querySelectorAll("[data-serie-id]").forEach((e=>{var t,i;const s=e.getAttribute("data-serie-id");if(!s||s===l)return;const n=null===(i=null===(t=this.uplot)||void 0===t?void 0:t.series[this.yagr.state.y2uIdx[s]])||void 0===i?void 0:i.show;e.classList[n?"remove":"add"]("yagr-legend__item_hidden")}))},this.measureLegend=e=>{const t=this.yagr.root,i=(0,n.html)("div",{class:"yagr-legend",style:{visibility:"hidden"}},e);t.appendChild(i);const s=i.childNodes[0].getBoundingClientRect();return i.remove(),s},this.nextPage=()=>{const{state:e}=this;this.state.page+=1,this.items&&(this.items.style.transform=`translate(0, ${-1*e.page*e.pageSize}px)`,this.renderPagination())},this.prevPage=()=>{const{state:e}=this;this.state.page-=1,this.items&&(this.items.style.transform=`translate(0, ${-1*e.page*e.pageSize}px)`,this.renderPagination())}}redraw(){this.options.show&&this.render()}destroy(){var e;this._onDestroy&&this._onDestroy(),null===(e=this.legendEl)||void 0===e||e.remove()}applyHandlers(){const{yagr:e,uplot:i}=this;if(!i)return()=>{};const s=e.root.querySelectorAll("[data-serie-id]"),n=[],a={basic:s=>()=>{const n=s.getAttribute("data-serie-id"),o=[];if(n===l){const e=!(0,t.hasOneVisibleLine)(i.series);for(let t=1;t<i.series.length;t++)o.push([i.series[t],e])}else{const e=i.series.find((({id:e})=>e===n));if(!e)return;o.push([e,!e.show])}o.forEach((([t,i])=>{if(t.show===i)return;const s=e.root.querySelector(`[data-serie-id="${t.id}"]`);e.setVisible(t.id,i,!1),null===s||void 0===s||s.classList[i?"remove":"add"]("yagr-legend__item_hidden")}));const a=e.root.querySelector(".yagr-legend__all-series");if(a){const e=r(this.yagr.utils.i18n,i.series);a.innerHTML=e||""}},extended:s=>{const n=(t,i)=>{const s=e.root.querySelector(`[data-serie-id="${t}"]`);e.setVisible(t,i,!1),null===s||void 0===s||s.classList[i?"remove":"add"]("yagr-legend__item_hidden")},o=e=>{this.state.startSerieRange=e;const s=i.series.filter((t=>t.id!==e.id)),o=!(0,t.hasOneVisibleLine)(s)&&!1!==e.show;i.series.forEach((t=>{const i=e.id===t.id||o;n(t.id,i)}))},l=e=>{this.state.startSerieRange||(this.state.startSerieRange=i.series[1]);const t=[];i.series.forEach(((i,s)=>{var n;i.id===e.id&&t.push(s),i.id===(null===(n=this.state.startSerieRange)||void 0===n?void 0:n.id)&&t.push(s)})),i.series.forEach(((e,i)=>{const s=i>=t[0]&&i<=t[1];n(e.id,s)}))};return e=>{const t=s.getAttribute("data-serie-id"),r=i.series.find((({id:e})=>e===t));r&&(e.preventDefault(),e.ctrlKey||e.metaKey?(e=>{n(e.id,!e.show)})(r):e.shiftKey?l(r):o(r))}}},u=t=>()=>{const i=t.getAttribute("data-serie-id");if(t.classList.contains("yagr-legend__item_hidden")||i===l)return;const s=this.yagr.uplot.series.find((({id:e})=>e===i));s&&(e.setFocus(s.id,!0),e.redraw(!0,!1))},c=()=>{e.setFocus(null,!0),e.redraw(!0,!1)};s.forEach((e=>{const t=a[this.options.behaviour||"basic"](e),i=u(e);e.addEventListener("click",t),e.addEventListener("mouseenter",i),e.addEventListener("mouseleave",c),e.addEventListener("mousedown",o.preventMouseEvents),n.push((()=>{e.removeEventListener("click",t),e.removeEventListener("mouseenter",i),e.removeEventListener("mouseleave",c),e.removeEventListener("mousedown",o.preventMouseEvents)}))}));const d=()=>n.forEach((e=>e()));return this._onDestroy=d,d}render(){var e,t;let i=!1;const{uplot:s,options:o}=this;if(!s)return;let l=this.yagr.root.querySelector(".yagr-legend");if(l?i=!0:l=(0,n.html)("div",{class:`yagr-legend yagr-legend__${this.options.position} ${(null===o||void 0===o?void 0:o.className)||""}`}),l){if(i||("top"===o.position?s.root.before(l):null===(e=s.root)||void 0===e||e.after(l)),this.legendEl=l,this.itemsHtml&&!i||this.calc(this.yagr.options),l.innerHTML=`<div class="yagr-legend__container" style="height: ${this.state.requiredSpace}px">${this.itemsHtml}</div>`,this.items=l.querySelector(".yagr-legend__items"),this.container=l.querySelector(".yagr-legend__container"),this.state.paginated){const e=this.renderPagination();null===(t=this.container)||void 0===t||t.after(e)}else this.items.style.justifyContent="center";this.applyHandlers()}}renderPagination(){const{state:e}=this;let t=this.yagr.root.querySelector(".yagr-legend__pagination");if(t){const e=t.querySelector(".yagr-legend__icon-down"),i=t.querySelector(".yagr-legend__icon-up");e.removeEventListener("click",this.nextPage),i.removeEventListener("click",this.prevPage)}else t=(0,n.html)("div",{class:"yagr-legend__pagination"});const i=0===e.page?"yagr-legend__icon-up_disabled":"",s=e.page===e.pages-1?"yagr-legend__icon-down_disabled":"";t.innerHTML=`<span class="yagr-legend__icon-up ${i}"></span>\n<span class="yagr-legend__pagination-text">${e.page+1}/${e.pages}</span>\n<span class="yagr-legend__icon-down ${s}"></span>`;const o=t.querySelector(".yagr-legend__icon-down"),l=t.querySelector(".yagr-legend__icon-up");return s||o.addEventListener("click",this.nextPage),i||l.addEventListener("click",this.prevPage),t}createIconLineElement(e){return(0,n.html)("span",{class:`yagr-legend__icon yagr-legend__icon_${e.type}`,style:{"background-color":this.yagr.getSerieLegendColor(e)}})}createSerieNameElement(e){const t=(0,n.html)("span");return t.innerText=e.name||"unnamed",t}renderItems(e){const t=r(this.yagr.utils.i18n,e.series),i="extended"!==this.options.behaviour&&(e=>e.length>3&&l||void 0)(e.series),s=i?[i]:[];for(let n=1;n<e.series.length;n++)s.push(e.series[n]);return`<div class="yagr-legend__items">${s.map((e=>{let s,n,o=" ";if(e===l)s=t,n=i,o=" yagr-legend__all-series ";else{n=e.id;const t=this.createIconLineElement(e),i=this.createSerieNameElement(e);s=`${t.outerHTML}${i.outerHTML}`}return`<div class="yagr-legend__item${o}${"string"===typeof e||!1!==e.show?"":"yagr-legend__item_hidden"}" data-serie-id="${n}">${s}</div>`})).join("")}</div>`}calc(e){if(!this.options.show)return;const t=e.height-this.VERTICAL_PADDING,i=this.renderItems(e),{height:s}=this.measureLegend(i),n=this.options.fontSize+2,o=t*this.options.maxLegendSpace,l=Math.floor(o/n),r=l-1,a=Math.min(r*n,o),u=Math.min(l*n,o),c=s>a&&a>0,d=Math.min(c?u:a,s),h=Math.ceil(s/a),f=c?this.VERTICAL_PADDING+18:this.VERTICAL_PADDING;this.state.requiredSpace=d,this.state.totalSpace=d+f,this.state.paginated=c,this.state.page=this.state.page||0,this.state.pages=h,this.state.pageSize=a,this.state.rowsPerPage=l,this.itemsHtml=i}get VERTICAL_PADDING(){return"bottom"===this.options.position?20:48}}},67903:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.drawMarkersIfRequired=t.renderCircle=void 0;const s=i(46976),n=i(50497);t.renderCircle=(e,t,i,n,o,l,r,a)=>{const{ctx:u}=e,c=Math.round(e.valToPos(t,s.DEFAULT_X_SCALE,!0)),d=Math.round(e.valToPos(i,a||s.DEFAULT_Y_SCALE,!0));if(u.beginPath(),u.arc(c,d,2*n,0,2*Math.PI),u.fillStyle=l,o){const e=u.lineWidth,t=u.strokeStyle;u.lineWidth=o,u.strokeStyle=r,u.stroke(),u.lineWidth=e,u.strokeStyle=t}u.fill(),u.closePath()},t.drawMarkersIfRequired=function(e,i,o,l){const{color:r,scale:a,spanGaps:u,count:c,pointsSize:d}=e.series[i];if(u&&c>1)return!1;let h,f=o;for(;f<=l;){const o=e.data[i][f];if(null===o){h=o,f++;continue}const l=f+1,u=e.data[i][l];(0,n.isNil)(h)&&(0,n.isNil)(u)&&(0,t.renderCircle)(e,e.data[0][f],o,null!==d&&void 0!==d?d:s.DEFAULT_POINT_SIZE/2,0,r,r,a||s.DEFAULT_Y_SCALE),h=o,f++}},t.default=function(e,i){var n;const{size:o=s.DEFAULT_POINT_SIZE,strokeWidth:l=2,strokeColor:r="#ffffff",show:a}=i.markers,u=null===(n=i.chart)||void 0===n?void 0:n.series,c=(null===u||void 0===u?void 0:u.pointsSize)||s.DEFAULT_POINT_SIZE;function d(i,n,u,d){const{scale:h,_focus:f,color:p,getFocusedColor:g,type:m}=i.series[n];let _=u;const v="dots"===m?a?o:c:o;for(;_<=d;){const o=i.data[n][_];null!==o&&(0,t.renderCircle)(i,i.data[0][_],o,v,l,(f||null===f?p:g(e,n))||p,r,h||s.DEFAULT_Y_SCALE),_++}}const h=(e,t)=>{0!==e&&null!==e&&("dots"===t.type||i.markers.show)&&(t.points=t.points||{},t.points.show=d)};return{opts:(e,t)=>{(i.markers.show||t.series.some((e=>"dots"===e.type)))&&t.series.forEach(((e,t)=>h(t,e)))},hooks:{addSeries:(e,t)=>{const i=e.series[t];h(t,i)},setSeries:(e,t,i)=>{h(t,i)}}}}},15648:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});const s=i(46976),n=i(48643),o=i(50497),l=i(80152),r={[n.DrawOrderKey.Series]:0,[n.DrawOrderKey.Axes]:1,plotLines:2},a={"012":"draw",102:"draw",201:"drawClear",210:"drawClear",120:"drawAxes","021":"drawSeries"};t.default=function(e){let t=new Map;return function(i){var n;const u=null===(n=i.config.chart.appearance)||void 0===n?void 0:n.drawOrder,c=(u?u.map((e=>r[e])):[0,1,2]).join(""),d=a[c]||"drawClear";function h(e){var i;if(e.id)return e.id;return(null===(i=Array.from(t.entries()).find((([t,i])=>(0,o.deepIsEqual)(i,e))))||void 0===i?void 0:i[0])||(0,o.genId)()}function f(n){const{ctx:o}=n,{height:r,top:a,width:u,left:c}=n.bbox,d=n.data[0];for(const h of t.values()){if(!h.scale)continue;if(e.render){e.render(n,h);continue}o.save(),o.fillStyle=i.utils.colors.parse(h.color);const{scale:t,value:f}=h,p=Array.isArray(f),[g,m]=p?(0,l.calculateFromTo)(f,t,d,n):[n.valToPos(f,t,!0),0];if(p){const e=h.accent;t===s.DEFAULT_X_SCALE?(o.fillRect(g,a,m-g,r),e&&(o.fillStyle=e.color,o.fillRect(g,a-e.space,m-g,e.space))):(o.fillRect(c,g,u,m-g),e&&(o.fillStyle=e.color,o.fillRect(u+c,g,e.space,m-g)))}else{const e=h;if(o.beginPath(),t===s.DEFAULT_X_SCALE){const e=n.data[0][n.data[0].length-1];if(g-n.valToPos(e,t,!0)>0)continue;o.moveTo(g,a),o.lineTo(g,r+a)}else o.moveTo(c,g),o.lineTo(u+c,g);o.lineWidth=e.width||s.DEFAULT_CANVAS_PIXEL_RATIO,o.strokeStyle=e.color||"#000",e.dash&&o.setLineDash(e.dash),o.stroke()}o.restore()}}const p="drawSeries"===d?(e,t)=>{t===e.series.length-1&&f(e)}:f;function g(e){e?t.forEach(((i,s)=>{i.scale===e&&t.delete(s)})):t.clear()}return{get:function(){return Array.from(t.values())},clear:g,remove:function(e){for(const i of e){const e=h(i);t.delete(e)}},add:function(e){for(const i of e){const e=h(i);t.set(e,i)}},update:function(e,i){if(!e||0===e.length)return void g(i);const s=new Set;for(const n of e){const e=h(n);t.set(e,n),s.add(e)}for(const[n,o]of t.entries())i&&o.scale!==i||s.has(n)||t.delete(n)},uplot:{opts:()=>{const e=i.config;t=new Map;for(const i in e.axes)if(e.axes.hasOwnProperty(i)){const s=e.axes[i];if(s.plotLines)for(const e of s.plotLines)t.set(e.id||(0,o.genId)(),{...e,scale:i})}},hooks:{[d]:p}}}}}},4553:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.calculateFromTo=t.getPosition=void 0;const s=i(46976);function n(e,t,i,n){return e>0&&t===s.DEFAULT_X_SCALE?i:e>0&&t!==s.DEFAULT_X_SCALE||e<=0&&t===s.DEFAULT_X_SCALE?0:n}t.getPosition=n,t.calculateFromTo=function(e,t,i,o){return e.map((e=>{var l,r;if(Math.abs(e)!==1/0){if(t===s.DEFAULT_X_SCALE)return Math.min(Math.max(e,i[0]),i[i.length-1]);{const i=o.scales[t];return Math.min(Math.max(e,null!==(l=i.min)&&void 0!==l?l:e),null!==(r=i.max)&&void 0!==r?r:e)}}const a=n(e,t,o.width,o.height);return o.posToVal(a,t)})).map((e=>o.valToPos(e,t,!0)))}},80152:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.calculateFromTo=void 0;var s=i(4553);Object.defineProperty(t,"calculateFromTo",{enumerable:!0,get:function(){return s.calculateFromTo}})},48840:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});const s=i(50497),n={size:["height","width"],clientSize:["clientHeight","clientWidth"],offsetSize:["offsetHeight","offsetWidth"],maxSize:["maxHeight","maxWidth"],before:["top","left"],marginBefore:["marginTop","marginLeft"],after:["bottom","right"],marginAfter:["marginBottom","marginRight"],scrollOffset:["pageYOffset","pageXOffset"],offset:["offsetY","offsetY"],offsetOpt:["yOffset","xOffset"],bodyScroll:["scrollHeight","scrollWidth"],inner:["innerHeight","innerWidth"]};function o(e){return{top:e.top,bottom:e.bottom,left:e.left,right:e.right}}t.default=function(e,t,i="bottom",l={}){let r;r=t instanceof Element||t instanceof Range?o(e.getBoundingClientRect()):t;const a=Object.assign({top:r.bottom||0,bottom:r.top||0,left:r.right||0,right:r.left||0},r),u={top:0,left:0,bottom:window.innerHeight,right:window.innerWidth};l.bound&&((l.bound instanceof Element||l.bound instanceof Range)&&(l.bound=o(l.bound.getBoundingClientRect())),Object.assign(u,l.bound));const c=getComputedStyle(e),{primary:d,secondary:h}=Object.entries(n).reduce(((e,[t,s])=>({primary:{...e.primary,[t]:s["top"===i||"bottom"===i?0:1]},secondary:{...e.secondary,[t]:s["top"===i||"bottom"===i?1:0]}})),{primary:{},secondary:{}});e.style.position="absolute",e.style.maxWidth="",e.style.maxHeight="";const f=l[d.offsetOpt]||0,p=parseInt(c[h.marginBefore],10),g=p+parseInt(c[h.marginAfter],10),m=u[h.after]-u[h.before]-g,_=parseInt(c[h.maxSize],10);(!_||m<_)&&(e.style[h.maxSize]=(0,s.px)(m));const v=parseInt(c[d.marginBefore],10)+parseInt(c[d.marginAfter],10),y=a[d.before]-u[d.before]-v,b=u[d.after]-a[d.after]-v-f;(i===d.before&&e[d.offsetSize]>y||i===d.after&&e[d.offsetSize]>b)&&(i=y>b?d.before:d.after);const w=i===d.before?y:b,E=parseInt(c[d.maxSize],10);(!E||w<E)&&(e.style[d.maxSize]=(0,s.px)(w));const S=document.body[d.bodyScroll]-window[d.inner],x=Math.max(Math.min(window[d.scrollOffset],S),0),A=t=>Math.max(u[d.before],Math.min(t,u[d.after]-e[d.offsetSize]-v));i===d.before?(e.style[d.before]=x+A(a[d.before]-e[d.offsetSize]-v)-f+"px",e.style[d.after]="auto"):(e.style[d.before]=(0,s.px)(x+A(a[d.after])+f),e.style[d.after]="auto");const T=document.body[h.bodyScroll]-window[h.inner],O=Math.max(Math.min(window[h.scrollOffset],T),0);var L;return e.style[h.before]=(0,s.px)(O+(L=a[h.before]-p,Math.max(u[h.before],Math.min(L,u[h.after]-e[h.offsetSize]-g)))),e.style[h.after]="auto",e.dataset.side=i,{side:i,anchorRect:a,boundRect:u}}},74947:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.renderTooltip=void 0;const s=i(48130);t.renderTooltip=function(e){if(0===e.scales.length)return e.yagr.utils.i18n("nodata");const[t,i]=e.options.title?"string"===typeof e.options.title?[e.options.title,!1]:["",!0]:["",!1];return`${t?`<div class="__title">${t}</div>`:""}${e.scales.map((t=>{const n=(0,s.getOptionValue)(e.options.title,t.scale),o=e.scales.length>1?e.options.scales?`${(0,s.getOptionValue)(e.options.scales,t.scale)||""}`:`${e.yagr.utils.i18n("scale")}: ${t.scale}`:"";return`\n<div class="__section" data-scale=${t.scale}>\n ${i&&n?`<div class="_section_title">${n}</div>`:""}\n ${o?`<div class="__section_scale">${o}</div>`:""}\n <div class="__section_body">${function(e,t,i){const n=e.slice(0,(0,s.getOptionValue)(t.maxLines,i));return n.map((({value:i,name:n="unnamed",color:o,active:l,transformed:r,seriesIdx:a},u)=>{const c=`\n<span class="yagr-tooltip__val">${i}</span>\n ${"number"===typeof r?`<span class="yagr-tooltip__tf">${r.toFixed(2)}</span>`:""}\n`;return`\n<div class="yagr-tooltip__item ${l?"_active":""}" data-series="${a}">\n ${t.showIndicies?`<span class="yagr-tooltip__idx">${e.length-u}</span>`:""}\n <span class="yagr-tooltip__mark" style="background-color: ${o}"></span>${(0,s.escapeHTML)(n)} ${c}\n</div>`})).join("")+(e.length>n.length?`<div class="yagr-tooltip__item _more">+${e.length-n.length}</div>`:"")}(t.rows,e.options,t.scale)}</div>\n ${(0,s.getOptionValue)(e.options.sum,t.scale)?`\n <div class="__section_sum">\n ${e.yagr.utils.i18n("sum")}: ${t.sum}\n </div>\n `:""}\n</div>`})).join("")}`}},25700:function(e,t,i){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=s(i(48840)),o=i(46976),l=i(50497),r=i(74947),a=i(48130),u=(e,t,i,s,n)=>{var o,r,a;const u=Array.isArray(i.$c)?i.$c:t;let c=u[s];if(n&&c===n.value){const e=null!==(o=n.snapToValues)&&void 0!==o?o:"closest";c=u[(0,l.findDataIdx)(u,i,s,e,n.value)]}else if(null===c){const t=null!==(r=e.snapToValues)&&void 0!==r?r:"closest",n=null!==(a=i.snapToValues)&&void 0!==a?a:t;c=u[(0,l.findDataIdx)(u,i,s,n,null)]}return c},c={maxLines:o.TOOLTIP_DEFAULT_MAX_LINES,highlight:!0,sum:!1,render:r.renderTooltip,pinable:!0,strategy:"pin",sort:void 0,showIndicies:!1,hideNoData:!1,className:"yagr-tooltip_default",xOffset:o.TOOLTIP_X_OFFSET,yOffset:o.TOOLTIP_Y_OFFSET,virtual:!1,showEmpty:!1,onUpdate:"reset"};class d{constructor(e,t={}){var i,s;this.handlers={init:[],mount:[],show:[],pin:[],unpin:[],hide:[],render:[],destroy:[],reset:[]},this.placement=n.default,this.renderTooltipCloses=()=>{},this.skipNextMouseUp=!1,this.emit=(e,t)=>{this.handlers[e].forEach((i=>{i(this.tOverlay,{state:this.state,actions:{pin:this.pin,show:this.show,hide:this.hide,dispose:this.dispose,reset:this.reset},data:t,yagr:this.yagr,event:e})}))},this.reset=()=>{var e;"none"!==this.opts.onUpdate?(this.state.visible&&this.hide(),this.state.pinned&&this.pin(!1),this.emit("reset")):null===(e=this.yagr.plugins.cursor)||void 0===e||e.pin(!1)},this.show=()=>{const e=!this.state.visible;this.state.visible=!0,this.tOverlay.style.display="block",e&&this.emit("show")},this.hide=()=>{const e=this.state.visible;this.state.visible=!1,this.tOverlay.style.display="none",this.emit("hide"),e&&this.emit("show")},this.pin=(e,t)=>{var i;this.state.pinned=e;const s=this.state.range||[];if(null===(i=this.yagr.plugins.cursor)||void 0===i||i.pin(e&&(null===s[1]||s.length<2)),this.opts.virtual)return this.emit(e?"pin":"unpin");t&&this.placement(this.tOverlay,{left:t.x+this.bLeft,top:this.bTop+t.y-(this.opts.yOffset||0)},"right",{bound:this.bound,xOffset:this.opts.xOffset,yOffset:this.opts.yOffset});const n=this.tOverlay.querySelector("._tooltip-list");e?(this.state.visible||this.show(),this.tOverlay.classList.add("yagr-tooltip_pinned"),n&&(null===n||void 0===n?void 0:n.clientHeight)&&(n.style.height=(0,l.px)(n.clientHeight)),this.opts.render===r.renderTooltip&&(document.addEventListener("mousemove",this.checkFocus),document.addEventListener("mousedown",this.detectClickOutside))):(this.tOverlay.classList.remove("yagr-tooltip_pinned"),this.opts.render===r.renderTooltip&&(document.removeEventListener("mousemove",this.checkFocus),document.removeEventListener("mousedown",this.detectClickOutside))),this.emit(e?"pin":"unpin")},this.checkFocus=e=>{const t=e.target;let i;t&&this.tOverlay.contains(t)&&t.classList.contains("yagr-tooltip__item")&&(i=t.dataset.series);const s=i?this.yagr.uplot.series[Number(i)]:null;i&&s?(this.state.focusedSeries=i,this.yagr.setFocus(s.id,!0)):this.state.focusedSeries&&(this.state.focusedSeries=null,this.yagr.setFocus(null,!0))},this.render=e=>{const t=this.yagr.uplot;let{left:i,top:s}=e;const{idx:n}=e,{opts:r,state:d}=this;if(r.show&&"function"===typeof r.show&&!1===r.show(this.yagr))return void this.hide();(i<0||s<0)&&!d.pinned&&this.isNotInDrag&&this.hide(),s=(0,l.inBetween)(s,0,t.bbox.top+t.bbox.height),i=(0,l.inBetween)(i,0,t.bbox.left+t.bbox.width);const{data:h}=t;if(null===h||(0,l.isNil)(n)||void 0===s)return;const f=h[0][n],p={},g={},m={};let _=t.series.length-1;for(;_>=1;){const e=t.series[_];if(!e.show){_-=1;continue}const i=e.scale||o.DEFAULT_Y_SCALE;m[i]=m[i]||[],m[i].push(_),_-=1}Object.entries(m).forEach((([e,o])=>{var c;g[e]=g[e]||{rows:[]};const d=g[e],h=Number(t.posToVal(s,e).toFixed(2)),f=(0,a.getOptionValue)(r.value,e);for(const i of o){const s=t.data[i],o=t.series[i];let l=u(this.yagr.config.cursor,s,o,n,this.interpolation),h=l;"string"===typeof l&&(h=l,l=null),(0,a.getOptionValue)(r.sum,e)&&(p[e]=p[e]||0,p[e]+=l||0);const g=s[n],m=o.$c&&o.$c[n]===this.stripValue?l:g;if(null===l&&r.hideNoData||!1===o.showInTooltip)continue;const _=null!==(c=o.precision)&&void 0!==c?c:(0,a.getOptionValue)(r.precision,e),v=o.formatter?o.formatter(h,o):f(h,_),y={id:o.id,name:o.name,dataValue:o.$c[n],originalValue:l,value:v,y:m,displayY:g,color:this.yagr.getSerieLegendColor(o),seriesIdx:i,rowIdx:d.rows.length?d.rows[d.rows.length-1].rowIdx+1:0};o.normalizedData&&(y.transformed=o.normalizedData[n]),o._transformed&&(y.transformed=s[n]),r.omitBy&&r.omitBy(y)||d.rows.push(y)}if((0,a.getOptionValue)(r.highlight,e)&&d.rows.length){const u=(0,a.getOptionValue)(r.tracking,e);let c=0;"area"===u?c=(0,l.findInRange)(d,h,(0,a.getOptionValue)(r.stickToRanges,e)):"sticky"===u?c=(0,l.findSticky)(d,h):"function"===typeof u&&(c=u(d,h,{x:t.posToVal(i,"x"),y:t.posToVal(s,e),idx:n,scale:e,series:this.yagr.series,serieIndicies:o,interpolation:this.interpolation})),null!==c&&(d.rows[c].active=!0)}const m=(0,a.getOptionValue)(r.sort,e);m&&d.rows.sort(m)}));if(!Object.values(g).some((({rows:e})=>e.length>0))&&!r.showEmpty)return void this.hide();this.onMouseEnter();const v=this.over.getBoundingClientRect();this.bLeft=v.left,this.bTop=v.top,this.bWidth=v.width;const y={left:i+this.bLeft,top:this.bTop+s-(r.yOffset||0)};this.renderTooltipCloses=()=>{const e={scales:Object.entries(g).map((([e,t])=>({scale:e,rows:t.rows,sum:p[e]}))),options:r,x:f},t=Object.values(g).some((({rows:e})=>e.filter((({id:e})=>{var t;return null===(t=this.yagr.getSeriesById(e))||void 0===t?void 0:t.show})).length>0));t||r.showEmpty?(r.virtual||(this.tOverlay.innerHTML=r.render({...e,state:d,yagr:this.yagr,defaultRender:c.render}),this.placement(this.tOverlay,y,"right",{bound:this.bound,xOffset:r.xOffset,yOffset:r.yOffset})),this.emit("render",{...e,anchor:y})):this.hide()},d.pinned||this.renderTooltipCloses()},this.initWithUplot=e=>{this.over=e.root.querySelector(".u-over"),this.over.addEventListener("mousedown",this.onMouseDown),this.over.addEventListener("mousemove",this.onMouseMove),this.over.addEventListener("mouseenter",this.onMouseEnter),this.over.addEventListener("mouseleave",this.onMouseLeave),document.addEventListener("mouseup",this.onMouseUp)},this.setSize=()=>{const e=this.over.getBoundingClientRect();this.bLeft=e.left,this.bTop=e.top},this.dispose=()=>{this.over.removeEventListener("mousedown",this.onMouseDown),this.over.removeEventListener("mousemove",this.onMouseMove),this.over.removeEventListener("mouseenter",this.onMouseEnter),this.over.removeEventListener("mouseleave",this.onMouseLeave),document.removeEventListener("mouseup",this.onMouseUp),document.removeEventListener("mousemove",this.checkFocus),document.removeEventListener("mousedown",this.detectClickOutside),this.tOverlay.remove(),this.state.mounted=!1,this.emit("destroy")},this.updateOptions=e=>{Object.assign(this.opts,e),this.tOverlay.className=`yagr-tooltip ${this.opts.className||""}`},this.on=(e,t)=>{this.handlers[e].push(t)},this.off=(e,t)=>{this.handlers[e]=this.handlers[e].filter((e=>e!==t))},this.detectClickOutside=e=>{const t=e.target;if(t instanceof Element){const e=t&&this.tOverlay.contains(t),i=t&&this.over.contains(t);e||i||(this.pin(!1),this.hide())}},this.onMouseDown=e=>{this.state.range=[this.getCursorPosition(),null],this.state.pinned&&(this.pin(!1),this.hide(),this.render({left:e.clientX-this.bLeft,top:e.clientY-this.bTop,idx:this.yagr.uplot.posToIdx(e.clientX-this.bLeft)}),this.skipNextMouseUp=!0)},this.onMouseMove=()=>{var e;(null===(e=this.state.range)||void 0===e?void 0:e.length)&&(this.state.range[1]=this.getCursorPosition())},this.setCursorLeaved=e=>{const t=this.over.getBoundingClientRect(),i=e.clientX,s=this.state.range,n=s[0],o=i-t.left>n.clientX,l=this.yagr.config.timeline;let r;o?(s[1]={clientX:this.bWidth,value:this.yagr.uplot.posToVal(this.bWidth,"x"),idx:l.length-1},r=s[1]):(s[1]=s[0],s[0]={clientX:0,value:this.yagr.uplot.posToVal(0,"x"),idx:0},r=s[0]),this.yagr.uplot.setCursor({left:r.clientX,top:e.clientY-t.top})},this.onMouseUp=e=>{if(null===this.state.range)return;const[t]=this.state.range||[];let i;if(i=e.target===this.over?this.getCursorPosition():this.state.range[1],"none"===this.opts.strategy)return;const s=t&&t.clientX===(null===i||void 0===i?void 0:i.clientX),n=t&&t.clientX!==(null===i||void 0===i?void 0:i.clientX),o=this.opts.strategy;(s&&!this.skipNextMouseUp&&"drag"!==o||n&&("all"===o||"drag"===o))&&(this.pin(!this.state.pinned),this.show(),this.renderTooltipCloses()),this.state.range=null,this.skipNextMouseUp=!1},this.onMouseEnter=()=>{this.show()},this.onMouseLeave=e=>{var t;const i=this.state.pinned;(null===(t=this.state.range)||void 0===t?void 0:t[0])&&this.setCursorLeaved(e),!i&&this.isNotInDrag&&this.hide()},this.defaultTooltipValueFormatter=(e,t)=>{const i=this.yagr.config.processing||{};return"string"===typeof e?i.nullValues&&i.nullValues.hasOwnProperty(e)?i.nullValues[e]:"-":"number"===typeof e?e.toFixed("number"===typeof t?t:"number"===typeof this.opts.precision?this.opts.precision:2):"-"},this.getCursorPosition=()=>{const e=this.yagr.uplot.cursor.left;return void 0===e?null:{clientX:e,value:this.yagr.uplot.posToVal(e,"x"),idx:this.yagr.uplot.posToIdx(e)}},this.yagr=e,this.over=null===(i=null===e||void 0===e?void 0:e.uplot)||void 0===i?void 0:i.over,this.opts={...c,strategy:t.pinable?"pin":c.strategy,tracking:"area"===(null===(s=e.config.chart.series)||void 0===s?void 0:s.type)?"area":"sticky",value:this.defaultTooltipValueFormatter,...t},this.bound=this.opts.boundClassName&&document.querySelector(this.opts.boundClassName)||document.body,this.renderNode=this.opts.renderClassName&&document.querySelector(this.opts.renderClassName)||document.body,this.tOverlay=document.createElement("div"),this.tOverlay.id=`${e.id}_tooltip`,this.tOverlay.className=`yagr-tooltip ${this.opts.className||""}`,this.tOverlay.style.display="none",this.state={mounted:!1,pinned:!1,visible:!1,range:null,focusedSeries:null},this.bLeft=0,this.bTop=0,this.bWidth=0,this.opts.virtual?this.placement=()=>{}:(this.renderNode.appendChild(this.tOverlay),this.state.mounted=!0,this.emit("mount"))}get interpolation(){var e;return null===(e=this.yagr.config.processing)||void 0===e?void 0:e.interpolation}get stripValue(){return this.interpolation?this.interpolation.value:void 0}get isNotInDrag(){var e;return"none"===this.opts.strategy||"pin"===this.opts.strategy||!(null===(e=this.state.range)||void 0===e?void 0:e[1])}}t.default=function(e,t={}){const i=new d(e,t),s=()=>({hooks:{destroy:()=>{i.dispose()},init:e=>{i.initWithUplot(e)},setSize:()=>{i.setSize()},setCursor:e=>{i.render(e.cursor)}}}),n=s();return{state:i.state,pin:i.pin,show:i.show,hide:i.hide,uplot:n,display:i.render,updateOptions:i.updateOptions,on:i.on,off:i.off,tooltip:i,dispose:i.dispose,reInit:function(e){const t=s();i.reset(),e.hooks.init.push(t.hooks.init),e.hooks.destroy.push(t.hooks.destroy),e.hooks.setSize.push(t.hooks.setSize),e.hooks.setCursor.push(t.hooks.setCursor)},reset:i.reset}}},98190:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},48130:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.escapeHTML=t.getOptionValue=void 0,t.getOptionValue=function(e,t){return"object"===typeof e?e[t]:e},t.escapeHTML=function(e){const t=document.createElement("span");return t.innerText=e,t.innerHTML}},89353:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},24793:function(e,t,i){var s=this&&this.__createBinding||(Object.create?function(e,t,i,s){void 0===s&&(s=i);var n=Object.getOwnPropertyDescriptor(t,i);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,n)}:function(e,t,i,s){void 0===s&&(s=i),e[s]=t[i]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&s(t,e,i);return n(t,e),t},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.configureAxes=t.updateAxis=t.getRedrawOptionsForAxesUpdate=t.getTimeFormatter=t.getDefaultNumberFormatter=t.getAxisPositioning=void 0;const r=l(i(16381)),a=o(i(46976)),u=i(50497),c=i(48643),d={right:c.Axis.Side.Right,top:c.Axis.Side.Top,bottom:c.Axis.Side.Bottom,left:c.Axis.Side.Left},h={left:c.Axis.Align.Right,right:c.Axis.Align.Left,top:void 0,bottom:void 0};t.getAxisPositioning=(e,t)=>({side:e?d[e]:c.Axis.Side.Left,align:t||(e?h[e]:void 0)});t.getDefaultNumberFormatter=(e,t="")=>i=>{if((0,u.isNil)(i))return t;if(0===i)return"0";const s=Math.abs(i),n="auto"===e?2:e,[o,l]=(0,u.getUnitSuffix)(s),r=i/o;return("auto"===e?String(r).replace(/\.(\d{5,})/,(e=>e.slice(0,6))):(0,u.toFixed)(r,n))+l};const f=e=>{const i=e.precision,s=(0,t.getDefaultNumberFormatter)("number"===typeof i?i:i||"auto","");return function(e,t){return t.map(s)}},p=r.default.fmtDate("{DD}.{MM}.{YYYY}"),g=r.default.fmtDate("{HH}:{mm}:{ss}"),m=r.default.fmtDate("{mm}:{ss}"),_=r.default.fmtDate("{mm}:{ss}.{fff}"),v=r.default.fmtDate("{YYYY}");function y(e,t){let i=p;const s=Math.ceil(e/t);return s<=a.SECOND?i=_:s<=a.MINUTE?i=m:s<=a.DAY?i=g:s>=a.YEAR&&(i=v),e=>i(new Date(e))}function b(e,i){var s,n;const o=i.utils.theme,l=i.config,r={splits:e.splitsCount?(c=e.splitsCount,(e,t,i,s)=>{if(c<=2)return[i,s];const n=Math.abs(s-i)/(c-1);let o=n;const l=[];for(;i+o<s;)l.push(i+o),o+=n;return[i,...l,s]}):e.splits,show:"undefined"===typeof e.show||e.show,label:e.label||void 0,labelSize:e.labelSize||a.Y_AXIS_LABEL_SIZE,labelFont:e.labelFont||a.AXIS_LABEL_FONT,font:e.font||a.AXIS_VALUES_FONT,stroke:e.stroke||(()=>o.AXIS_STROKE),ticks:e.ticks?{...o.Y_AXIS_TICKS,...e.ticks}:o.Y_AXIS_TICKS,grid:l.grid||e.grid||o.GRID};var c;return e.scale===a.DEFAULT_X_SCALE?Object.assign(r,{getFormatter:y,gap:null!==(s=e.gap)&&void 0!==s?s:a.X_AXIS_TICK_GAP,size:(0,u.asFn)(e.size)||(()=>a.X_AXIS_SIZE),values:e.values||(0,t.getTimeFormatter)(l),ticks:e.ticks?{...o.X_AXIS_TICKS,...e.ticks}:o.X_AXIS_TICKS,scale:a.DEFAULT_X_SCALE,space:e.space||(()=>a.X_AXIS_SPACE),incrs:e.incrs||(()=>a.X_AXIS_INCRS.map((e=>e*(l.chart.timeMultiplier||a.TIME_MULTIPLIER)))),side:2,stroke:e.stroke||(()=>o.AXIS_STROKE)}):(Object.assign(r,{gap:null!==(n=e.gap)&&void 0!==n?n:a.Y_AXIS_TICK_GAP,size:(0,u.asFn)(e.size)||a.Y_AXIS_SIZE,values:e.values||f(e),scale:e.scale||a.DEFAULT_Y_SCALE,getFormatter:()=>(0,t.getDefaultNumberFormatter)("number"===typeof e.precision?e.precision:e.precision||"auto",""),...(0,t.getAxisPositioning)(e.side||"left",e.align)}),e.space&&(r.space=e.space),r)}function w(e){let t,i;return[e=e.replace(/(\d+)px/,((e,s)=>(0,u.px)(t=Math.round((i=Number(s))*window.devicePixelRatio)))),t,i]}t.getTimeFormatter=e=>{const t=e.chart.timeMultiplier||a.TIME_MULTIPLIER;return(e,i)=>{const s=y((i[i.length-1]-i[0])/t,i.length);return i.map((e=>s(e/t)))}},t.getRedrawOptionsForAxesUpdate=function(e){const t=[!1,!0];return Object.values(e).forEach((e=>{["align","side","size","label","labelFont","labelGap","labelSize"].some((t=>void 0!==e[t]))&&(t[1]=!0)})),t},t.updateAxis=function(e,t,i){var s,n,o;const l=b({...i,font:t.font},e);l.ticks={...t.ticks,...l.ticks},l.grid={...t.grid,...l.grid},l.border={...t.border,...l.border},l.splits=l.splits||t.splits,i.font&&i.font!==(null===(s=t.font)||void 0===s?void 0:s[0])&&(l.font=w(i.font)),i.labelFont&&i.labelFont!==(null===(n=t.labelFont)||void 0===n?void 0:n[0])&&(l.labelFont=w(i.labelFont)),Object.assign(t,l),null===(o=e.plugins.plotLines)||void 0===o||o.update(i.plotLines,i.scale)},t.configureAxes=function(e,t){const i=[];Object.entries(t.axes).forEach((([t,s])=>{i.push(b({...s,scale:t},e))}));const s=a.DEFAULT_X_SCALE,n=a.DEFAULT_Y_SCALE;return t.axes[s]||i.push(b({scale:s},e)),i.find((({scale:e})=>e!==s))||i.push(b({scale:n},e)),i}},27658:function(e,t,i){var s=this&&this.__createBinding||(Object.create?function(e,t,i,s){void 0===s&&(s=i);var n=Object.getOwnPropertyDescriptor(t,i);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,n)}:function(e,t,i,s){void 0===s&&(s=i),e[s]=t[i]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&s(t,e,i);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.getPaddingByAxes=void 0;const l=o(i(46976));t.getPaddingByAxes=function(e){let t=!1,i=!1;return e.axes?e.axes.forEach((e=>{e.scale!==l.DEFAULT_X_SCALE&&(void 0!==e.side&&3!==e.side||(t=!0),1===e.side&&(i=!0))})):t=!0,t&&!i?l.PADDING_LEFT:i&&!t?l.PADDING_RIGHT:l.PADDING_BOTH}},20500:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getSerieFocusColors=t.getFocusedColor=void 0;const i=[0,0,0,.6];class s{static parseRgba(e){const t=e.match(/rgba?\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,?\s*(\d+\.?\d*)?\s*\)/);return t?[t[1],t[2],t[3],t[4]||1].map(Number):null}parse(e="000"){const t=e.startsWith("var(--");let i,s=e,n=!0;const o=this.context,l=o.style.color;return t||e.startsWith("--")?(n=!1,i=t?e.slice(4,-1):e):e.startsWith("#")||e.startsWith("rgb")||(o.style.color=e,i="color",n=!1),s=n?s:getComputedStyle(o).getPropertyValue(i),o.style.color=l,s}setContext(e){this.context=e}rgba(e){return`rgba(${e[0]}, ${e[1]}, ${e[2]}, ${e[3]})`}toRgba(e,t){return s.parseRgba(this.parse(e))||t}shade([e,t,i,s],n){const o=n<0,l=o?0:255*n,r=o?1+n:1-n;return"rgba("+Math.round(e*r+l)+","+Math.round(t*r+l)+","+Math.round(i*r+l)+","+s+")"}}t.default=s;t.getFocusedColor=(e,t)=>{const n=e.utils.theme.SHIFT,o=e.uplot.series[t],l=s.parseRgba(o.color)||i;return e.utils.colors.shade(l,n)};t.getSerieFocusColors=(e,t)=>(i,s)=>{const n=i.series[s];return!1===n._focus?n.getFocusedColor(e,s):n[t]}},50497:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.inBetween=t.isNil=t.asPlain=t.asFn=t.deepIsEqual=t.get=t.html=t.px=t.debounce=t.exec=t.preprocess=t.genId=t.findDataIdx=t.toFixed=t.getUnitSuffix=t.findSticky=t.getSumByIdx=t.findInRange=void 0;t.findInRange=(e,t,i=!0)=>{const s=t>=0;let n=-1/0,o=null,l=1/0,r=null;const a=[];let u=null;for(let c=e.rows.length-1;c>=0;c--){const i=e.rows[c],{displayY:d,rowIdx:h}=i;let f;null!==d&&(d>n&&(n=d,o=i.rowIdx),d<l&&(l=d,r=i.rowIdx)),f=null===d||(s?d<0:d>=0)?null:s?t>d?null:d-t:t<d?null:Math.abs(d-t);const p=null===u?1/0:a[u],g=null===f?p:Math.min(p,f);(null!==f&&p===f||g!==p)&&(u=h)}return null===u&&i?t>=n?o:t<=l?r:null:u};t.getSumByIdx=(e,t,i)=>{let s=0,n=0;for(;n<e.length;){const o=e[e.length-n-1],l=o.$c;if(n+=1,o.scale!==i||!1===o.show)continue;const r=l[t];s+="number"===typeof r?r:0}return s};t.findSticky=(e,t)=>{let i,s,n=0;for(;!s&&n<e.rows.length;){const o=e.rows[n].displayY;null!==o&&(i=n,s=Math.abs(o-(t||0))),n+=1}if(!s||void 0===i)return null;for(n=i+1;n<e.rows.length;n++){const o=e.rows[n].displayY;if(null===o)continue;const l=Math.abs(o-t);s>l&&(s=l,i=n)}return i};t.getUnitSuffix=e=>e>=1e18?[1e18,"E"]:e>=1e15?[1e15,"P"]:e>=1e12?[1e12,"T"]:e>=1e9?[1e9,"G"]:e>=1e6?[1e6,"M"]:e>=1e3?[1e3,"K"]:[1,""],t.toFixed=function(e,t){if(0===t)return parseInt(e);if(Number.isInteger(e))return e+"."+"0".repeat(t);const[i,s]=e.toString().split(".");return s.length>=t?`${i}.${s.slice(0,t)}`:`${i}.${s}${"0".repeat(t-s.length)}`},t.findDataIdx=function(e,t,i,s="closest",n=null){var o;let l=i,r=i;const a=null!==(o=t.snapToValues)&&void 0!==o?o:s;if(!1===a)return i;if("left"===a||"closest"===a)for(let u=i-1;u>=0;u--)if(e[u]!==n){l=u;break}if("right"===a||"closest"===a)for(let u=i+1;u<e.length;u++)if(e[u]!==n){r=u;break}return"left"===a?l:"right"===a?r:r-i>i-l?l:r};const i=(e,t,i,s,n,o,l,r="linear")=>{let a=null;const u=e[o];switch(r){case"linear":if(null===t||null===i)return null;a=t+(u-s)*(i-t)/(n-s),(isNaN(a)||Math.abs(a)===1/0)&&(a=null);break;case"previous":a=t;break;case"next":a=i;break;case"left":a=l[l.length-1]===e.length-1||null===i?null:t;break;case"right":a=0===l[0]?null:i;break;case"closest":a=Math.abs(s-e[o])<Math.abs(n-e[o])?t:i;break;default:a=r}return a};t.genId=()=>Date.now().toString(36)+Math.random().toString(36).substring(2);t.preprocess=(e,t,s)=>{const n=[],o=s.nullValues||{},l=s.interpolation;for(let r=0;r<e.length;r++){const s=e[r],a=[];let u,c,d=[],h=null,f=null;for(let e=0;e<s.length;e++){let n=s[e];if(l&&n===l.value)d.push(e);else{if(o[n]&&(n=null),d.length){f=n,c=t[e];for(const e of d)a[e]=i(t,h,f,u||t[0],c||t[t.length-1],e,d,l&&l.type);d=[]}h=n,u=t[e],a.push(n)}}if(f=null,d.length)for(const e of d)a.push(i(t,h,f,u||t[0],c||t[t.length-1],e,d,l&&l.type));n.push(a)}return n};t.exec=(e,...t)=>"function"===typeof e?e(...t):e,t.debounce=function(e,t=300){let i;return(...s)=>{clearTimeout(i),i=setTimeout((()=>e(...s)),t)}};t.px=e=>e+"px";function s(e){return null===e||void 0===e}t.html=(e,t={},i)=>{const s=document.createElement(e);return Object.keys(t).forEach((e=>{const i=t[e];s.setAttribute(e,"object"===typeof i?Object.entries(i).map((([e,t])=>`${e}:${t}`)).join(";"):i)})),i&&("string"===typeof i?s.innerHTML=i:s.appendChild(i)),s},t.get=function(e,t){return t.split(".").reduce(((e,t)=>{var i,s;return null!==(s=null===(i=Object.getOwnPropertyDescriptor(e,t))||void 0===i?void 0:i.value)&&void 0!==s?s:{}}),e)},t.deepIsEqual=function e(t,i){if(typeof t!==typeof i)return!1;if("function"!==typeof t&&"function"!==typeof i||(t=t.toString(),i=i.toString()),"object"!==typeof t||s(t)||s(i))return t===i;const n=t,o=i,l=Object.keys(n),r=Object.keys(o);if(l.length!==r.length)return!1;for(const s of l){if(!o.hasOwnProperty(s))return!1;if(!e(n[s],o[s]))return!1}return!0},t.asFn=function(e){return"function"===typeof e||"undefined"===typeof e?e:()=>e},t.asPlain=function(e){return"function"===typeof e?e():e},t.isNil=s,t.inBetween=function(e,t,i){return e>=t&&e<=i?e:e<t?t:i}},11213:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.preventMouseEvents=void 0;t.preventMouseEvents=e=>e.preventDefault()},87102:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.applyMixins=void 0,t.applyMixins=function(e,t){const i=[];t.forEach((t=>{Object.getOwnPropertyNames(t.prototype).forEach((i=>{Object.defineProperty(e.prototype,i,Object.getOwnPropertyDescriptor(t.prototype,i)||Object.create(null))})),t.prototype.initMixin&&i.push(t.prototype.initMixin)})),e.prototype.initMixins=function(){i.forEach((e=>e.call(this)))}}},88274:function(e,t,i){var s=this&&this.__createBinding||(Object.create?function(e,t,i,s){void 0===s&&(s=i);var n=Object.getOwnPropertyDescriptor(t,i);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,n)}:function(e,t,i,s){void 0===s&&(s=i),e[s]=t[i]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&s(t,e,i);return n(t,e),t},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.pathsRenderer=void 0;const r=l(i(16381)),a=o(i(46976));t.pathsRenderer=function(e,t,i,s){const n=e.series[t],{type:o,interpolation:l}=n;let u;switch(o){case"column":u=r.default.paths.bars&&r.default.paths.bars({size:[a.BARS_DRAW_FACTOR,a.BARS_DRAW_MAX],...e.series[t].renderOptions||{}});break;case"dots":u=()=>null;break;default:switch(l){case"smooth":u=r.default.paths.spline&&r.default.paths.spline();break;case"left":u=r.default.paths.stepped&&r.default.paths.stepped({align:1});break;case"right":u=r.default.paths.stepped&&r.default.paths.stepped({align:-1});break;default:u=r.default.paths.linear&&r.default.paths.linear()}}return u?u(e,t,i,s):null}},81891:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.configureScales=t.niceScale=t.offsetScale=t.getScaleRange=void 0;const s=i(46976),n=i(48643);function o(e,t,i){const n=e>=0&&i.stacking,o=t<=0&&i.stacking;return{min:n?0:Math.round(e-Math.abs(e)*(i.offset||s.DEFAULT_Y_AXIS_OFFSET)),max:o?0:Math.round(t+Math.abs(t)*(i.offset||s.DEFAULT_Y_AXIS_OFFSET))}}function l(e,t,i){const n=e>=0&&i.stacking,o=t<=0&&i.stacking?0:"number"===typeof i.max?i.max:t,l=n?0:"number"===typeof i.min?i.min:e;if(l===o)return l>=0?{min:l,max:l+2}:{min:l-1,max:l+1};const a=r(o-l,!1),u=r(a/(s.DEFAULT_MAX_TICKS-1),!0);let c=Math.ceil(o/u)*u;c=isNaN(c)?100:c;let d=(n?Math.min(0,l):Math.floor(l/u)*u)||0;return d===c&&(d-=1,c+=1),{min:d,max:c}}function r(e,t){const i=Math.floor(Math.log10(e)),s=e/10**i;return(t?s<1.5?1:s<3?2:s<7?5:10:s<=1?1:s<=2?2:s<=5?5:10)*10**i}t.getScaleRange=(e,t)=>{const i=e.range;if("function"===typeof i)return(e,s,n)=>i(e,s,n,t);if(e.normalize)return[0,e.normalizeBase||100];if("auto"===e.range)return;let n;switch(e.range){case void 0:case"nice":n=l;break;case"offset":n=o;break;default:throw new Error(`Unknown scale range type ${e.range}`)}return(i,o,l)=>{let{min:a,max:u}=n(o,l,e,t);const c=e.minRange||s.DEFAULT_SCALE_MIN_RANGE;if(Math.abs(u-a)<c&&(a>=0?u+=c:(u+=c/2,a-=c/2)),a="number"===typeof e.min?e.min:a,u="number"===typeof e.max?e.max:u,"logarithmic"===e.type){const t="number"===typeof e.min;a<=0?a=s.DEFAULT_LOGARITHMIC_MIN_SCALE_VALUE:t||(a=Math.min(a,s.DEFAULT_LOGARITHMIC_MIN_SCALE_VALUE))}return(a>=u||u<=a)&&("number"===typeof e.max?a=u-(r(u-.1*u,!1)||1):u=a+(r(a+.1*a,!1)||1)),[a,u]}},t.offsetScale=o,t.niceScale=l,t.configureScales=function(e,i,o){const l=o.scales?{...o.scales}:{};return Object.keys(o.scales).length||(l.y={}),Object.entries(l).forEach((([l,r])=>{i[l]=i[l]||{};const a=i[l];if(l===s.DEFAULT_X_SCALE)return;const u="number"===typeof r.min?r.min:null,c="number"===typeof r.max?r.max:null;if(null!==c&&null!==u){if(c<=u)throw new Error("Invalid scale config. .max should be > .min");a.range=[u,c]}const d="logarithmic"===r.type;if(d)return a.distr=n.Scale.Distr.Logarithmic,void(a.range=(0,t.getScaleRange)(r,o));e.isEmpty?a.range=[null===u?d?1:0:u,null===c?100:c]:a.range=(0,t.getScaleRange)(r,o)})),i.x||(i.x={time:!0}),i}},28265:function(e,t,i){var s=this&&this.__createBinding||(Object.create?function(e,t,i,s){void 0===s&&(s=i);var n=Object.getOwnPropertyDescriptor(t,i);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,n)}:function(e,t,i,s){void 0===s&&(s=i),e[s]=t[i]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&s(t,e,i);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.overrideSeriesInUpdate=t.configureSeries=void 0;const l=o(i(46976)),r=i(50497),a=i(20500),u=i(67903),c=i(88274);function d(e,t,i,s){if(void 0!==e[i])return e[i];const n=t.config.chart.series;return n&&i in n?n[i]:s}t.configureSeries=function(e,t,i){var s,n;const o=d(t,e,"type","line"),h={...t,type:o,show:null===(s=t.show)||void 0===s||s,name:t.name||`${e.utils.i18n("series")} ${i+1}`,color:t.color?e.utils.colors.parse(t.color):e.utils.theme.DEFAULT_LINE_COLOR,id:(void 0===t.id?t.name:String(t.id))||(0,r.genId)(),$c:t.data,scale:t.scale||l.DEFAULT_Y_SCALE,count:0,sum:0,avg:0,getFocusedColor:a.getFocusedColor};h.points=h.points||{};const f=(0,a.getSerieFocusColors)(e,"color");return"area"===h.type&&(h.lineColor=e.utils.colors.parse(d(t,e,"lineColor",l.SERIE_AREA_BORDER_COLOR)),h.lineWidth=d(t,e,"lineWidth",l.SERIE_AREA_BORDER_WIDTH),h.fill=f,h.stroke=(0,a.getSerieFocusColors)(e,"lineColor"),h.width=h.lineWidth,h.points.show=u.drawMarkersIfRequired,h.interpolation=d(t,e,"interpolation","linear"),h.spanGaps=d(t,e,"spanGaps",!1)),"line"===h.type&&(h.width=d(t,e,"width",l.SERIE_LINE_WIDTH),h.width=h.width||l.SERIE_LINE_WIDTH,h.stroke=f,h.points.show=u.drawMarkersIfRequired,h.interpolation=d(t,e,"interpolation","linear"),h.spanGaps=d(t,e,"spanGaps",!1)),"column"===h.type&&(h.stroke=f,h.fill=f,h.points.show=!1,h.width=null!==(n=h.width)&&void 0!==n?n:0,h.renderOptions=d(h,e,"renderOptions")),"dots"===h.type&&(h.stroke=()=>h.color,h.fill=f,h.width=2,h.pointsSize=d(h,e,"pointsSize",l.DEFAULT_POINT_SIZE)),h.paths=c.pathsRenderer,h};t.overrideSeriesInUpdate=(e,t)=>{var i,s,n,o,l,r,a,u,c,d,h,f;e.$c=null!==(i=t.$c)&&void 0!==i?i:e.$c,e.show=null!==(s=t.show)&&void 0!==s?s:e.show,e.data=null!==(n=t.data)&&void 0!==n?n:e.data,e.width=null!==(o=t.width)&&void 0!==o?o:e.width,e.pointsSize=null!==(l=t.pointsSize)&&void 0!==l?l:e.pointsSize,e.color=null!==(r=t.color)&&void 0!==r?r:e.color,e.lineColor=null!==(a=t.lineColor)&&void 0!==a?a:e.lineColor,e.lineWidth=null!==(u=t.lineWidth)&&void 0!==u?u:e.lineWidth,e.stroke=null!==(c=t.stroke)&&void 0!==c?c:e.stroke,e.getFocusedColor=null!==(d=t.getFocusedColor)&&void 0!==d?d:e.getFocusedColor,e.formatter=null!==(h=t.formatter)&&void 0!==h?h:e.formatter,e.paths=null!==(f=t.paths)&&void 0!==f?f:e.paths}},48643:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Axis=t.Scale=t.DrawOrderKey=void 0,t.DrawOrderKey={Series:"series",Axes:"axes"},t.Scale={Distr:{Linear:1,Ordinal:2,Logarithmic:3,ArcSinh:4,Custom:5}},t.Axis={Side:{Top:0,Right:1,Bottom:2,Left:3},Align:{Right:0,Left:1}}},68724:function(e,t,i){var s=this&&this.__createBinding||(Object.create?function(e,t,i,s){void 0===s&&(s=i);var n=Object.getOwnPropertyDescriptor(t,i);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,n)}:function(e,t,i,s){void 0===s&&(s=i),e[s]=t[i]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||s(t,e,i)},l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&s(t,e,i);return n(t,e),t},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.defaults=void 0,o(i(89353),t),o(i(98190),t);const a=l(i(46976));t.defaults=a;const u=r(i(37100));"undefined"!==typeof window&&Object.assign(window,{Yagr:u.default}),t.default=u.default},23936:function(e,t,i){var s=this&&this.__createBinding||(Object.create?function(e,t,i,s){void 0===s&&(s=i);var n=Object.getOwnPropertyDescriptor(t,i);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,n)}:function(e,t,i,s){void 0===s&&(s=i),e[s]=t[i]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&s(t,e,i);return n(t,e),t},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useTooltipState=void 0;const r=o(i(59284)),a=l(i(37100));t.default=r.forwardRef((function({id:e,config:t,className:i="",debug:s,onChartLoad:n,onSelect:o,update:l="dynamic"},u){const c=r.useRef(null),d=r.useRef();r.useImperativeHandle(u,(()=>({yagr:()=>d.current,domElement:()=>c.current})));const h=r.useCallback((()=>{if(c.current){t.hooks=t.hooks||{};const e=t.hooks;if(n){const t=e.load||[];t.push((({chart:e,meta:t})=>{n(e,t)})),e.load=t}if(o){const t=e.onSelect||[];t.push((({from:e,to:t})=>o(e,t))),e.onSelect=t}d.current=new a.default(c.current,t)}}),[]);r.useEffect((()=>{var e;t&&(null===(e=d.current)||void 0===e||e.setConfig(t,"hard"===l))}),[t]),r.useEffect((()=>(h(),()=>{var e;null===(e=d.current)||void 0===e||e.dispose(),d.current=void 0})),[]);const f=r.useCallback((e=>{if(d.current&&(e.ctrlKey||e.metaKey)&&e.shiftKey){const e=d.current.toDataUrl().replace("image/png","image/octet-stream"),t=document.createElement("a");t.href=e,t.download=((null===s||void 0===s?void 0:s.filename)||d.current.id)+".png",t.click()}}),[e,d]);return r.createElement("div",{id:e,onClick:f,className:`yagr ${i}`,ref:c})}));t.useTooltipState=(e,t)=>{r.useEffect((()=>{var i;if(!e.current||!t.current)return;const s=t.current,n=e.current.yagr();n&&(null===(i=null===n||void 0===n?void 0:n.plugins)||void 0===i?void 0:i.tooltip)&&(n.plugins.tooltip.on("render",((e,t)=>{s.onChange(t)})),n.plugins.tooltip.on("show",((e,t)=>{s.onChange(t)})),n.plugins.tooltip.on("show",((e,t)=>{s.onChange(t)})))}),[e.current])}},16381:(e,t,i)=>{i.r(t),i.d(t,{default:()=>xs});const s="uplot",n="u-hz",o="u-vt",l="u-title",r="u-wrap",a="u-under",u="u-over",c="u-axis",d="u-off",h="u-select",f="u-cursor-x",p="u-cursor-y",g="u-cursor-pt",m="u-legend",_="u-live",v="u-inline",y="u-series",b="u-marker",w="u-label",E="u-value",S="width",x="height",A="top",T="bottom",O="left",L="right",I="#000",D=I+"0",M="mousemove",k="mousedown",C="mouseup",R="mouseenter",F="mouseleave",P="dblclick",U="change",N="dppxchange",$="--",j="undefined"!=typeof window,X=j?document:null,z=j?window:null,H=j?navigator:null;let Y,B;function V(e,t){if(null!=t){let i=e.classList;!i.contains(t)&&i.add(t)}}function W(e,t){let i=e.classList;i.contains(t)&&i.remove(t)}function G(e,t,i){e.style[t]=i+"px"}function K(e,t,i,s){let n=X.createElement(e);return null!=t&&V(n,t),null!=i&&i.insertBefore(n,s),n}function q(e,t){return K("div",e,t)}const Z=new WeakMap;function J(e,t,i,s,n){let o="translate("+t+"px,"+i+"px)";o!=Z.get(e)&&(e.style.transform=o,Z.set(e,o),t<0||i<0||t>s||i>n?V(e,d):W(e,d))}const Q=new WeakMap;function ee(e,t,i){let s=t+i;s!=Q.get(e)&&(Q.set(e,s),e.style.background=t,e.style.borderColor=i)}const te=new WeakMap;function ie(e,t,i,s){let n=t+""+i;n!=te.get(e)&&(te.set(e,n),e.style.height=i+"px",e.style.width=t+"px",e.style.marginLeft=s?-t/2+"px":0,e.style.marginTop=s?-i/2+"px":0)}const se={passive:!0},ne={...se,capture:!0};function oe(e,t,i,s){t.addEventListener(e,i,s?ne:se)}function le(e,t,i,s){t.removeEventListener(e,i,se)}function re(e,t,i,s){let n;i=i||0;let o=(s=s||t.length-1)<=2147483647;for(;s-i>1;)n=o?i+s>>1:Se((i+s)/2),t[n]<e?i=n:s=n;return e-t[i]<=t[s]-e?i:s}function ae(e,t,i,s){for(let n=1==s?t:i;n>=t&&n<=i;n+=s)if(null!=e[n])return n;return-1}function ue(e,t,i,s){let n=Ie(e),o=Ie(t);e==t&&(-1==n?(e*=i,t/=i):(e/=i,t*=i));let l=10==i?De:Me,r=1==o?Ae:Se,a=(1==n?Se:Ae)(l(Ee(e))),u=r(l(Ee(t))),c=Le(i,a),d=Le(i,u);return 10==i&&(a<0&&(c=Ge(c,-a)),u<0&&(d=Ge(d,-u))),s||2==i?(e=c*n,t=d*o):(e=We(e,c),t=Ve(t,d)),[e,t]}function ce(e,t,i,s){let n=ue(e,t,i,s);return 0==e&&(n[0]=0),0==t&&(n[1]=0),n}j&&function e(){let t=devicePixelRatio;Y!=t&&(Y=t,B&&le(U,B,e),B=matchMedia(`(min-resolution: ${Y-.001}dppx) and (max-resolution: ${Y+.001}dppx)`),oe(U,B,e),z.dispatchEvent(new CustomEvent(N)))}();const de=.1,he={mode:3,pad:de},fe={pad:0,soft:null,mode:0},pe={min:fe,max:fe};function ge(e,t,i,s){return ot(i)?_e(e,t,i):(fe.pad=i,fe.soft=s?0:null,fe.mode=s?3:0,_e(e,t,pe))}function me(e,t){return null==e?t:e}function _e(e,t,i){let s=i.min,n=i.max,o=me(s.pad,0),l=me(n.pad,0),r=me(s.hard,-Re),a=me(n.hard,Re),u=me(s.soft,Re),c=me(n.soft,-Re),d=me(s.mode,0),h=me(n.mode,0),f=t-e,p=De(f),g=Oe(Ee(e),Ee(t)),m=De(g),_=Ee(m-p);(f<1e-24||_>10)&&(f=0,0!=e&&0!=t||(f=1e-24,2==d&&u!=Re&&(o=0),2==h&&c!=-Re&&(l=0)));let v=f||g||1e3,y=De(v),b=Le(10,Se(y)),w=Ge(We(e-v*(0==f?0==e?.1:1:o),b/10),24),E=e>=u&&(1==d||3==d&&w<=u||2==d&&w>=u)?u:Re,S=Oe(r,w<E&&e>=E?E:Te(E,w)),x=Ge(Ve(t+v*(0==f?0==t?.1:1:l),b/10),24),A=t<=c&&(1==h||3==h&&x>=c||2==h&&x<=c)?c:-Re,T=Te(a,x>A&&t<=A?A:Oe(A,x));return S==T&&0==S&&(T=100),[S,T]}const ve=new Intl.NumberFormat(j?H.language:"en-US"),ye=e=>ve.format(e),be=Math,we=be.PI,Ee=be.abs,Se=be.floor,xe=be.round,Ae=be.ceil,Te=be.min,Oe=be.max,Le=be.pow,Ie=be.sign,De=be.log10,Me=be.log2,ke=(e,t=1)=>be.sinh(e)*t,Ce=(e,t=1)=>be.asinh(e/t),Re=1/0;function Fe(e){return 1+(0|De((e^e>>31)-(e>>31)))}function Pe(e,t,i){return Te(Oe(e,t),i)}function Ue(e){return"function"==typeof e?e:()=>e}const Ne=e=>e,$e=(e,t)=>t,je=e=>null,Xe=e=>!0,ze=(e,t)=>e==t,He=/\.\d*?(?=9{6,}|0{6,})/gm,Ye=e=>{if(it(e)||Ke.has(e))return e;const t=`${e}`,i=t.match(He);if(null==i)return e;let s=i[0].length-1;if(-1!=t.indexOf("e-")){let[e,i]=t.split("e");return+`${Ye(e)}e${i}`}return Ge(e,s)};function Be(e,t){return Ye(Ge(Ye(e/t))*t)}function Ve(e,t){return Ye(Ae(Ye(e/t))*t)}function We(e,t){return Ye(Se(Ye(e/t))*t)}function Ge(e,t=0){if(it(e))return e;let i=10**t,s=e*i*(1+Number.EPSILON);return xe(s)/i}const Ke=new Map;function qe(e){return((""+e).split(".")[1]||"").length}function Ze(e,t,i,s){let n=[],o=s.map(qe);for(let l=t;l<i;l++){let t=Ee(l),i=Ge(Le(e,l),t);for(let r=0;r<s.length;r++){let a=10==e?+`${s[r]}e${l}`:s[r]*i,u=(l>=0?0:t)+(l>=o[r]?0:o[r]),c=10==e?a:Ge(a,u);n.push(c),Ke.set(c,u)}}return n}const Je={},Qe=[],et=[null,null],tt=Array.isArray,it=Number.isInteger,st=e=>void 0===e;function nt(e){return"string"==typeof e}function ot(e){let t=!1;if(null!=e){let i=e.constructor;t=null==i||i==Object}return t}function lt(e){return null!=e&&"object"==typeof e}const rt=Object.getPrototypeOf(Uint8Array),at="__proto__";function ut(e,t=ot){let i;if(tt(e)){let s=e.find((e=>null!=e));if(tt(s)||t(s)){i=Array(e.length);for(let s=0;s<e.length;s++)i[s]=ut(e[s],t)}else i=e.slice()}else if(e instanceof rt)i=e.slice();else if(t(e)){i={};for(let s in e)s!=at&&(i[s]=ut(e[s],t))}else i=e;return i}function ct(e){let t=arguments;for(let i=1;i<t.length;i++){let s=t[i];for(let t in s)t!=at&&(ot(e[t])?ct(e[t],ut(s[t])):e[t]=ut(s[t]))}return e}function dt(e,t,i){for(let s,n=0,o=-1;n<t.length;n++){let l=t[n];if(l>o){for(s=l-1;s>=0&&null==e[s];)e[s--]=null;for(s=l+1;s<i&&null==e[s];)e[o=s++]=null}}}const ht="undefined"==typeof queueMicrotask?e=>Promise.resolve().then(e):queueMicrotask;const ft=["January","February","March","April","May","June","July","August","September","October","November","December"],pt=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function gt(e){return e.slice(0,3)}const mt=pt.map(gt),_t=ft.map(gt),vt={MMMM:ft,MMM:_t,WWWW:pt,WWW:mt};function yt(e){return(e<10?"0":"")+e}const bt={YYYY:e=>e.getFullYear(),YY:e=>(e.getFullYear()+"").slice(2),MMMM:(e,t)=>t.MMMM[e.getMonth()],MMM:(e,t)=>t.MMM[e.getMonth()],MM:e=>yt(e.getMonth()+1),M:e=>e.getMonth()+1,DD:e=>yt(e.getDate()),D:e=>e.getDate(),WWWW:(e,t)=>t.WWWW[e.getDay()],WWW:(e,t)=>t.WWW[e.getDay()],HH:e=>yt(e.getHours()),H:e=>e.getHours(),h:e=>{let t=e.getHours();return 0==t?12:t>12?t-12:t},AA:e=>e.getHours()>=12?"PM":"AM",aa:e=>e.getHours()>=12?"pm":"am",a:e=>e.getHours()>=12?"p":"a",mm:e=>yt(e.getMinutes()),m:e=>e.getMinutes(),ss:e=>yt(e.getSeconds()),s:e=>e.getSeconds(),fff:e=>{return((t=e.getMilliseconds())<10?"00":t<100?"0":"")+t;var t}};function wt(e,t){t=t||vt;let i,s=[],n=/\{([a-z]+)\}|[^{]+/gi;for(;i=n.exec(e);)s.push("{"==i[0][0]?bt[i[1]]:i[0]);return e=>{let i="";for(let n=0;n<s.length;n++)i+="string"==typeof s[n]?s[n]:s[n](e,t);return i}}const Et=(new Intl.DateTimeFormat).resolvedOptions().timeZone;const St=e=>e%1==0,xt=[1,2,2.5,5],At=Ze(10,-32,0,xt),Tt=Ze(10,0,32,xt),Ot=Tt.filter(St),Lt=At.concat(Tt),It="{YYYY}",Dt="\n"+It,Mt="{M}/{D}",kt="\n"+Mt,Ct=kt+"/{YY}",Rt="{aa}",Ft="{h}:{mm}"+Rt,Pt="\n"+Ft,Ut=":{ss}",Nt=null;function $t(e){let t=1e3*e,i=60*t,s=60*i,n=24*s,o=30*n,l=365*n;return[(1==e?Ze(10,0,3,xt).filter(St):Ze(10,-3,0,xt)).concat([t,5*t,10*t,15*t,30*t,i,5*i,10*i,15*i,30*i,s,2*s,3*s,4*s,6*s,8*s,12*s,n,2*n,3*n,4*n,5*n,6*n,7*n,8*n,9*n,10*n,15*n,o,2*o,3*o,4*o,6*o,l,2*l,5*l,10*l,25*l,50*l,100*l]),[[l,It,Nt,Nt,Nt,Nt,Nt,Nt,1],[28*n,"{MMM}",Dt,Nt,Nt,Nt,Nt,Nt,1],[n,Mt,Dt,Nt,Nt,Nt,Nt,Nt,1],[s,"{h}"+Rt,Ct,Nt,kt,Nt,Nt,Nt,1],[i,Ft,Ct,Nt,kt,Nt,Nt,Nt,1],[t,Ut,Ct+" "+Ft,Nt,kt+" "+Ft,Nt,Pt,Nt,1],[e,Ut+".{fff}",Ct+" "+Ft,Nt,kt+" "+Ft,Nt,Pt,Nt,1]],function(t){return(r,a,u,c,d,h)=>{let f=[],p=d>=l,g=d>=o&&d<l,m=t(u),_=Ge(m*e,3),v=Gt(m.getFullYear(),p?0:m.getMonth(),g||p?1:m.getDate()),y=Ge(v*e,3);if(g||p){let i=g?d/o:0,s=p?d/l:0,n=_==y?_:Ge(Gt(v.getFullYear()+s,v.getMonth()+i,1)*e,3),r=new Date(xe(n/e)),a=r.getFullYear(),u=r.getMonth();for(let o=0;n<=c;o++){let l=Gt(a+s*o,u+i*o,1),r=l-t(Ge(l*e,3));n=Ge((+l+r)*e,3),n<=c&&f.push(n)}}else{let o=d>=n?n:d,l=y+(Se(u)-Se(_))+Ve(_-y,o);f.push(l);let p=t(l),g=p.getHours()+p.getMinutes()/i+p.getSeconds()/s,m=d/s,v=h/r.axes[a]._space;for(;l=Ge(l+d,1==e?0:3),!(l>c);)if(m>1){let e=Se(Ge(g+m,6))%24,i=t(l).getHours()-e;i>1&&(i=-1),l-=i*s,g=(g+m)%24,Ge((l-f[f.length-1])/d,3)*v>=.7&&f.push(l)}else f.push(l)}return f}}]}const[jt,Xt,zt]=$t(1),[Ht,Yt,Bt]=$t(.001);function Vt(e,t){return e.map((e=>e.map(((i,s)=>0==s||8==s||null==i?i:t(1==s||0==e[8]?i:e[1]+i)))))}function Wt(e,t){return(i,s,n,o,l)=>{let r,a,u,c,d,h,f=t.find((e=>l>=e[0]))||t[t.length-1];return s.map((t=>{let i=e(t),s=i.getFullYear(),n=i.getMonth(),o=i.getDate(),l=i.getHours(),p=i.getMinutes(),g=i.getSeconds(),m=s!=r&&f[2]||n!=a&&f[3]||o!=u&&f[4]||l!=c&&f[5]||p!=d&&f[6]||g!=h&&f[7]||f[1];return r=s,a=n,u=o,c=l,d=p,h=g,m(i)}))}}function Gt(e,t,i){return new Date(e,t,i)}function Kt(e,t){return t(e)}Ze(2,-53,53,[1]);const qt="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function Zt(e,t){return(i,s,n,o)=>null==o?$:t(e(s))}const Jt={show:!0,live:!0,isolate:!1,mount:()=>{},markers:{show:!0,width:2,stroke:function(e,t){let i=e.series[t];return i.width?i.stroke(e,t):i.points.width?i.points.stroke(e,t):null},fill:function(e,t){return e.series[t].fill(e,t)},dash:"solid"},idx:null,idxs:null,values:[]};const Qt=[0,0];function ei(e,t,i,s=!0){return e=>{0==e.button&&(!s||e.target==t)&&i(e)}}function ti(e,t,i,s=!0){return e=>{(!s||e.target==t)&&i(e)}}const ii={show:!0,x:!0,y:!0,lock:!1,move:function(e,t,i){return Qt[0]=t,Qt[1]=i,Qt},points:{one:!1,show:function(e,t){let i=e.cursor.points,s=q(),n=i.size(e,t);G(s,S,n),G(s,x,n);let o=n/-2;G(s,"marginLeft",o),G(s,"marginTop",o);let l=i.width(e,t,n);return l&&G(s,"borderWidth",l),s},size:function(e,t){return e.series[t].points.size},width:0,stroke:function(e,t){let i=e.series[t].points;return i._stroke||i._fill},fill:function(e,t){let i=e.series[t].points;return i._fill||i._stroke}},bind:{mousedown:ei,mouseup:ei,click:ei,dblclick:ei,mousemove:ti,mouseleave:ti,mouseenter:ti},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(e,t)=>{t.stopPropagation(),t.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(e,t,i,s,n)=>s-n,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},si={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},ni=ct({},si,{filter:$e}),oi=ct({},ni,{size:10}),li=ct({},si,{show:!1}),ri='12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',ai="bold "+ri,ui={show:!0,scale:"x",stroke:I,space:50,gap:5,size:50,labelGap:0,labelSize:30,labelFont:ai,side:2,grid:ni,ticks:oi,border:li,font:ri,lineGap:1.5,rotate:0},ci="Value",di="Time",hi={show:!0,scale:"x",auto:!1,sorted:1,min:Re,max:-Re,idxs:[]};function fi(e,t,i,s,n){return t.map((e=>null==e?"":ye(e)))}function pi(e,t,i,s,n,o,l){let r=[],a=Ke.get(n)||0;for(let u=i=l?i:Ge(Ve(i,n),a);u<=s;u=Ge(u+n,a))r.push(Object.is(u,-0)?0:u);return r}function gi(e,t,i,s,n,o,l){const r=[],a=e.scales[e.axes[t].scale].log,u=Se((10==a?De:Me)(i));n=Le(a,u),10==a&&(n=Lt[re(n,Lt)]);let c=i,d=n*a;10==a&&(d=Lt[re(d,Lt)]);do{r.push(c),c+=n,10!=a||Ke.has(c)||(c=Ge(c,Ke.get(n))),c>=d&&(d=(n=c)*a,10==a&&(d=Lt[re(d,Lt)]))}while(c<=s);return r}function mi(e,t,i,s,n,o,l){let r=e.scales[e.axes[t].scale].asinh,a=s>r?gi(e,t,Oe(r,i),s,n):[r],u=s>=0&&i<=0?[0]:[];return(i<-r?gi(e,t,Oe(r,-s),-i,n):[r]).reverse().map((e=>-e)).concat(u,a)}const _i=/./,vi=/[12357]/,yi=/[125]/,bi=/1/,wi=(e,t,i,s)=>e.map(((e,n)=>4==t&&0==e||n%s==0&&i.test(e.toExponential()[e<0?1:0])?e:null));function Ei(e,t,i,s,n){let o=e.axes[i],l=o.scale,r=e.scales[l],a=e.valToPos,u=o._space,c=a(10,l),d=a(9,l)-c>=u?_i:a(7,l)-c>=u?vi:a(5,l)-c>=u?yi:bi;if(d==bi){let e=Ee(a(1,l)-c);if(e<u)return wi(t.slice().reverse(),r.distr,d,Ae(u/e)).reverse()}return wi(t,r.distr,d,1)}function Si(e,t,i,s,n){let o=e.axes[i],l=o.scale,r=o._space,a=e.valToPos,u=Ee(a(1,l)-a(2,l));return u<r?wi(t.slice().reverse(),3,_i,Ae(r/u)).reverse():t}function xi(e,t,i,s){return null==s?$:null==t?"":ye(t)}const Ai={show:!0,scale:"y",stroke:I,space:30,gap:5,size:50,labelGap:0,labelSize:30,labelFont:ai,side:3,grid:ni,ticks:oi,border:li,font:ri,lineGap:1.5,rotate:0};const Ti={scale:null,auto:!0,sorted:0,min:Re,max:-Re},Oi=(e,t,i,s,n)=>n,Li={show:!0,auto:!0,sorted:0,gaps:Oi,alpha:1,facets:[ct({},Ti,{scale:"x"}),ct({},Ti,{scale:"y"})]},Ii={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:Oi,alpha:1,points:{show:function(e,t){let{scale:i,idxs:s}=e.series[0],n=e._data[0],o=e.valToPos(n[s[0]],i,!0),l=e.valToPos(n[s[1]],i,!0),r=Ee(l-o)/(e.series[t].points.space*Y);return s[1]-s[0]<=r},filter:null},values:null,min:Re,max:-Re,idxs:[],path:null,clip:null};function Di(e,t,i,s,n){return i/10}const Mi={time:!0,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},ki=ct({},Mi,{time:!1,ori:1}),Ci={};function Ri(e,t){let i=Ci[e];return i||(i={key:e,plots:[],sub(e){i.plots.push(e)},unsub(e){i.plots=i.plots.filter((t=>t!=e))},pub(e,t,s,n,o,l,r){for(let a=0;a<i.plots.length;a++)i.plots[a]!=t&&i.plots[a].pub(e,t,s,n,o,l,r)}},null!=e&&(Ci[e]=i)),i}const Fi=1,Pi=2;function Ui(e,t,i){const s=e.mode,n=e.series[t],o=2==s?e._data[t]:e._data,l=e.scales,r=e.bbox;let a=o[0],u=2==s?o[1]:o[t],c=2==s?l[n.facets[0].scale]:l[e.series[0].scale],d=2==s?l[n.facets[1].scale]:l[n.scale],h=r.left,f=r.top,p=r.width,g=r.height,m=e.valToPosH,_=e.valToPosV;return 0==c.ori?i(n,a,u,c,d,m,_,h,f,p,g,Bi,Wi,Ki,Zi,Qi):i(n,a,u,c,d,_,m,f,h,g,p,Vi,Gi,qi,Ji,es)}function Ni(e,t){let i=0,s=0,n=me(e.bands,Qe);for(let o=0;o<n.length;o++){let e=n[o];e.series[0]==t?i=e.dir:e.series[1]==t&&(1==e.dir?s|=1:s|=2)}return[i,1==s?-1:2==s?1:3==s?2:0]}function $i(e,t,i,s,n){let o=e.mode,l=e.series[t],r=2==o?l.facets[1].scale:l.scale,a=e.scales[r];return-1==n?a.min:1==n?a.max:3==a.distr?1==a.dir?a.min:a.max:0}function ji(e,t,i,s,n,o){return Ui(e,t,((e,t,l,r,a,u,c,d,h,f,p)=>{let g=e.pxRound;const m=r.dir*(0==r.ori?1:-1),_=0==r.ori?Wi:Gi;let v,y;1==m?(v=i,y=s):(v=s,y=i);let b=g(u(t[v],r,f,d)),w=g(c(l[v],a,p,h)),E=g(u(t[y],r,f,d)),S=g(c(1==o?a.max:a.min,a,p,h)),x=new Path2D(n);return _(x,E,S),_(x,b,S),_(x,b,w),x}))}function Xi(e,t,i,s,n,o){let l=null;if(e.length>0){l=new Path2D;const r=0==t?Ki:qi;let a=i;for(let t=0;t<e.length;t++){let i=e[t];if(i[1]>i[0]){let e=i[0]-a;e>0&&r(l,a,s,e,s+o),a=i[1]}}let u=i+n-a,c=10;u>0&&r(l,a,s-c/2,u,s+o+c)}return l}function zi(e,t,i,s,n,o,l){let r=[],a=e.length;for(let u=1==n?i:s;u>=i&&u<=s;u+=n){if(null===t[u]){let c=u,d=u;if(1==n)for(;++u<=s&&null===t[u];)d=u;else for(;--u>=i&&null===t[u];)d=u;let h=o(e[c]),f=d==c?h:o(e[d]),p=c-n;h=l<=0&&p>=0&&p<a?o(e[p]):h;let g=d+n;f=l>=0&&g>=0&&g<a?o(e[g]):f,f>=h&&r.push([h,f])}}return r}function Hi(e){return 0==e?Ne:1==e?xe:t=>Be(t,e)}function Yi(e){let t=0==e?Bi:Vi,i=0==e?(e,t,i,s,n,o)=>{e.arcTo(t,i,s,n,o)}:(e,t,i,s,n,o)=>{e.arcTo(i,t,n,s,o)},s=0==e?(e,t,i,s,n)=>{e.rect(t,i,s,n)}:(e,t,i,s,n)=>{e.rect(i,t,n,s)};return(e,n,o,l,r,a=0,u=0)=>{0==a&&0==u?s(e,n,o,l,r):(a=Te(a,l/2,r/2),u=Te(u,l/2,r/2),t(e,n+a,o),i(e,n+l,o,n+l,o+r,a),i(e,n+l,o+r,n,o+r,u),i(e,n,o+r,n,o,u),i(e,n,o,n+l,o,a),e.closePath())}}const Bi=(e,t,i)=>{e.moveTo(t,i)},Vi=(e,t,i)=>{e.moveTo(i,t)},Wi=(e,t,i)=>{e.lineTo(t,i)},Gi=(e,t,i)=>{e.lineTo(i,t)},Ki=Yi(0),qi=Yi(1),Zi=(e,t,i,s,n,o)=>{e.arc(t,i,s,n,o)},Ji=(e,t,i,s,n,o)=>{e.arc(i,t,s,n,o)},Qi=(e,t,i,s,n,o,l)=>{e.bezierCurveTo(t,i,s,n,o,l)},es=(e,t,i,s,n,o,l)=>{e.bezierCurveTo(i,t,n,s,l,o)};function ts(e){return(e,t,i,s,n)=>Ui(e,t,((t,o,l,r,a,u,c,d,h,f,p)=>{let g,m,{pxRound:_,points:v}=t;0==r.ori?(g=Bi,m=Zi):(g=Vi,m=Ji);const y=Ge(v.width*Y,3);let b=(v.size-v.width)/2*Y,w=Ge(2*b,3),E=new Path2D,S=new Path2D,{left:x,top:A,width:T,height:O}=e.bbox;Ki(S,x-w,A-w,T+2*w,O+2*w);const L=e=>{if(null!=l[e]){let t=_(u(o[e],r,f,d)),i=_(c(l[e],a,p,h));g(E,t+b,i),m(E,t,i,b,0,2*we)}};if(n)n.forEach(L);else for(let e=i;e<=s;e++)L(e);return{stroke:y>0?E:null,fill:E,clip:S,flags:Fi|Pi}}))}function is(e){return(t,i,s,n,o,l)=>{s!=n&&(o!=s&&l!=s&&e(t,i,s),o!=n&&l!=n&&e(t,i,n),e(t,i,l))}}const ss=is(Wi),ns=is(Gi);function os(e){const t=me(e?.alignGaps,0);return(e,i,s,n)=>Ui(e,i,((o,l,r,a,u,c,d,h,f,p,g)=>{let m,_,v=o.pxRound,y=e=>v(c(e,a,p,h)),b=e=>v(d(e,u,g,f));0==a.ori?(m=Wi,_=ss):(m=Gi,_=ns);const w=a.dir*(0==a.ori?1:-1),E={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Fi},S=E.stroke;let x,A,T,O=Re,L=-Re,I=y(l[1==w?s:n]),D=ae(r,s,n,1*w),M=ae(r,s,n,-1*w),k=y(l[D]),C=y(l[M]),R=!1;for(let e=1==w?s:n;e>=s&&e<=n;e+=w){let t=y(l[e]),i=r[e];t==I?null!=i?(A=b(i),O==Re&&(m(S,t,A),x=A),O=Te(A,O),L=Oe(A,L)):null===i&&(R=!0):(O!=Re&&(_(S,I,O,L,x,A),T=I),null!=i?(A=b(i),m(S,t,A),O=L=x=A):(O=Re,L=-Re,null===i&&(R=!0)),I=t)}O!=Re&&O!=L&&T!=I&&_(S,I,O,L,x,A);let[F,P]=Ni(e,i);if(null!=o.fill||0!=F){let t=E.fill=new Path2D(S),s=b(o.fillTo(e,i,o.min,o.max,F));m(t,C,s),m(t,k,s)}if(!o.spanGaps){let u=[];R&&u.push(...zi(l,r,s,n,w,y,t)),E.gaps=u=o.gaps(e,i,s,n,u),E.clip=Xi(u,a.ori,h,f,p,g)}return 0!=P&&(E.band=2==P?[ji(e,i,s,n,S,-1),ji(e,i,s,n,S,1)]:ji(e,i,s,n,S,P)),E}))}function ls(e,t,i,s,n,o,l=Re){if(e.length>1){let r=null;for(let a=0,u=1/0;a<e.length;a++)if(void 0!==t[a]){if(null!=r){let t=Ee(e[a]-e[r]);t<u&&(u=t,l=Ee(i(e[a],s,n,o)-i(e[r],s,n,o)))}r=a}}return l}function rs(e,t,i,s,n,o){const l=e.length;if(l<2)return null;const r=new Path2D;if(i(r,e[0],t[0]),2==l)s(r,e[1],t[1]);else{let i=Array(l),s=Array(l-1),o=Array(l-1),a=Array(l-1);for(let n=0;n<l-1;n++)o[n]=t[n+1]-t[n],a[n]=e[n+1]-e[n],s[n]=o[n]/a[n];i[0]=s[0];for(let e=1;e<l-1;e++)0===s[e]||0===s[e-1]||s[e-1]>0!==s[e]>0?i[e]=0:(i[e]=3*(a[e-1]+a[e])/((2*a[e]+a[e-1])/s[e-1]+(a[e]+2*a[e-1])/s[e]),isFinite(i[e])||(i[e]=0));i[l-1]=s[l-2];for(let u=0;u<l-1;u++)n(r,e[u]+a[u]/3,t[u]+i[u]*a[u]/3,e[u+1]-a[u]/3,t[u+1]-i[u+1]*a[u]/3,e[u+1],t[u+1])}return r}const as=new Set;function us(){for(let e of as)e.syncRect(!0)}j&&(oe("resize",z,us),oe("scroll",z,us,!0),oe(N,z,(()=>{xs.pxRatio=Y})));const cs=os(),ds=ts();function hs(e,t,i,s){return(s?[e[0],e[1]].concat(e.slice(2)):[e[0]].concat(e.slice(1))).map(((e,s)=>fs(e,s,t,i)))}function fs(e,t,i,s){return ct({},0==t?i:s,e)}function ps(e,t,i){return null==t?et:[t,i]}const gs=ps;function ms(e,t,i){return null==t?et:ge(t,i,de,!0)}function _s(e,t,i,s){return null==t?et:ue(t,i,e.scales[s].log,!1)}const vs=_s;function ys(e,t,i,s){return null==t?et:ce(t,i,e.scales[s].log,!1)}const bs=ys;function ws(e,t,i,s,n){let o=Oe(Fe(e),Fe(t)),l=t-e,r=re(n/s*l,i);do{let e=i[r],t=s*e/l;if(t>=n&&o+(e<5?Ke.get(e):0)<=17)return[e,t]}while(++r<i.length);return[0,0]}function Es(e){let t,i;return[e=e.replace(/(\d+)px/,((e,s)=>(t=xe((i=+s)*Y))+"px")),t,i]}function Ss(e){e.show&&[e.font,e.labelFont].forEach((e=>{let t=Ge(e[2]*Y,1);e[0]=e[0].replace(/[0-9.]+px/,t+"px"),e[1]=t}))}function xs(e,t,i){const I={mode:me(e.mode,1)},U=I.mode;function j(e,t){return((3==t.distr?De(e>0?e:t.clamp(I,e,t.min,t.max,t.key)):4==t.distr?Ce(e,t.asinh):100==t.distr?t.fwd(e):e)-t._min)/(t._max-t._min)}function H(e,t,i,s){let n=j(e,t);return s+i*(-1==t.dir?1-n:n)}function B(e,t,i,s){let n=j(e,t);return s+i*(-1==t.dir?n:1-n)}function Z(e,t,i,s){return 0==t.ori?H(e,t,i,s):B(e,t,i,s)}I.valToPosH=H,I.valToPosV=B;let Q=!1;I.status=0;const te=I.root=q(s);if(null!=e.id&&(te.id=e.id),V(te,e.class),e.title){q(l,te).textContent=e.title}const se=K("canvas"),ne=I.ctx=se.getContext("2d"),ae=q(r,te);oe("click",ae,(e=>{if(e.target===pe){(an!=nn||un!=on)&&vn.click(I,e)}}),!0);const fe=I.under=q(a,ae);ae.appendChild(se);const pe=I.over=q(u,ae),_e=+me((e=ut(e)).pxAlign,1),ve=Hi(_e);(e.plugins||[]).forEach((t=>{t.opts&&(e=t.opts(I,e)||e)}));const ye=e.ms||.001,be=I.series=1==U?hs(e.series||[],hi,Ii,!1):(Se=e.series||[null],Ie=Li,Se.map(((e,t)=>0==t?{}:ct({},Ie,e))));var Se,Ie;const Me=I.axes=hs(e.axes||[],ui,Ai,!0),Fe=I.scales={},Ne=I.bands=e.bands||[];Ne.forEach((e=>{e.fill=Ue(e.fill||null),e.dir=me(e.dir,-1)}));const He=2==U?be[1].facets[0].scale:be[0].scale,Ye={axes:function(){for(let e=0;e<Me.length;e++){let t=Me[e];if(!t.show||!t._show)continue;let i,s,n=t.side,o=n%2,l=t.stroke(I,e),r=0==n||3==n?-1:1;if(t.label){let e=t.labelGap*r,a=xe((t._lpos+e)*Y);Ns(t.labelFont[0],l,"center",2==n?A:T),ne.save(),1==o?(i=s=0,ne.translate(a,xe(_i+yi/2)),ne.rotate((3==n?-we:we)/2)):(i=xe(ai+vi/2),s=a),ne.fillText(t.label,i,s),ne.restore()}let[a,u]=t._found;if(0==u)continue;let c=Fe[t.scale],d=0==o?vi:yi,h=0==o?ai:_i,f=xe(t.gap*Y),p=t._splits,g=2==c.distr?p.map((e=>Cs[e])):p,m=2==c.distr?Cs[p[1]]-Cs[p[0]]:a,_=t.ticks,v=t.border,y=_.show?xe(_.size*Y):0,b=t._rotate*-we/180,w=ve(t._pos*Y),E=w+(y+f)*r;s=0==o?E:0,i=1==o?E:0,Ns(t.font[0],l,1==t.align?O:2==t.align?L:b>0?O:b<0?L:0==o?"center":3==n?L:O,b||1==o?"middle":2==n?A:T);let S=t.font[1]*t.lineGap,x=p.map((e=>ve(Z(e,c,d,h)))),D=t._values;for(let e=0;e<D.length;e++){let t=D[e];if(null!=t){0==o?i=x[e]:s=x[e],t=""+t;let n=-1==t.indexOf("\n")?[t]:t.split(/\n/gm);for(let e=0;e<n.length;e++){let t=n[e];b?(ne.save(),ne.translate(i,s+e*S),ne.rotate(b),ne.fillText(t,0,0),ne.restore()):ne.fillText(t,i,s+e*S)}}}_.show&&Ws(x,_.filter(I,g,e,u,m),o,n,w,y,Ge(_.width*Y,3),_.stroke(I,e),_.dash,_.cap);let M=t.grid;M.show&&Ws(x,M.filter(I,g,e,u,m),o,0==o?2:1,0==o?_i:ai,0==o?yi:vi,Ge(M.width*Y,3),M.stroke(I,e),M.dash,M.cap),v.show&&Ws([w],[1],0==o?1:0,0==o?1:2,1==o?_i:ai,1==o?yi:vi,Ge(v.width*Y,3),v.stroke(I,e),v.dash,v.cap)}eo("drawAxes")},series:function(){ns>0&&(be.forEach(((e,i)=>{if(i>0&&e.show&&(Xs(i,!1),Xs(i,!0),null==e._paths)){ks!=e.alpha&&(ne.globalAlpha=ks=e.alpha);let s=2==U?[0,t[i][0].length-1]:function(e){let t=Pe(os-1,0,ns-1),i=Pe(ls+1,0,ns-1);for(;null==e[t]&&t>0;)t--;for(;null==e[i]&&i<ns-1;)i++;return[t,i]}(t[i]);e._paths=e.paths(I,i,s[0],s[1]),1!=ks&&(ne.globalAlpha=ks=1)}})),be.forEach(((e,t)=>{if(t>0&&e.show){ks!=e.alpha&&(ne.globalAlpha=ks=e.alpha),null!=e._paths&&zs(t,!1);{let i=null!=e._paths?e._paths.gaps:null,s=e.points.show(I,t,os,ls,i),n=e.points.filter(I,t,s,i);(s||n)&&(e.points._paths=e.points.paths(I,t,os,ls,n),zs(t,!0))}1!=ks&&(ne.globalAlpha=ks=1),eo("drawSeries",t)}})))}},Ve=(e.drawOrder||["axes","series"]).map((e=>Ye[e]));function We(t){let i=Fe[t];if(null==i){let s=(e.scales||Je)[t]||Je;if(null!=s.from)We(s.from),Fe[t]=ct({},Fe[s.from],s,{key:t});else{i=Fe[t]=ct({},t==He?Mi:ki,s),i.key=t;let e=i.time,n=i.range,o=tt(n);if((t!=He||2==U&&!e)&&(!o||null!=n[0]&&null!=n[1]||(n={min:null==n[0]?he:{mode:1,hard:n[0],soft:n[0]},max:null==n[1]?he:{mode:1,hard:n[1],soft:n[1]}},o=!1),!o&&ot(n))){let e=n;n=(t,i,s)=>null==i?et:ge(i,s,e)}i.range=Ue(n||(e?gs:t==He?3==i.distr?vs:4==i.distr?bs:ps:3==i.distr?_s:4==i.distr?ys:ms)),i.auto=Ue(!o&&i.auto),i.clamp=Ue(i.clamp||Di),i._min=i._max=null}}}We("x"),We("y"),1==U&&be.forEach((e=>{We(e.scale)})),Me.forEach((e=>{We(e.scale)}));for(let s in e.scales)We(s);const Ze=Fe[He],it=Ze.distr;let rt,at;0==Ze.ori?(V(te,n),rt=H,at=B):(V(te,o),rt=B,at=H);const dt={};for(let s in Fe){let e=Fe[s];null==e.min&&null==e.max||(dt[s]={min:e.min,max:e.max},e.min=e.max=null)}const ft=e.tzDate||(e=>new Date(xe(e/ye))),pt=e.fmtDate||wt,gt=1==ye?zt(ft):Bt(ft),mt=Wt(ft,Vt(1==ye?Xt:Yt,pt)),_t=Zt(ft,Kt(qt,pt)),vt=[],yt=I.legend=ct({},Jt,e.legend),bt=yt.show,Et=yt.markers;let St,xt,At;yt.idxs=vt,Et.width=Ue(Et.width),Et.dash=Ue(Et.dash),Et.stroke=Ue(Et.stroke),Et.fill=Ue(Et.fill);let Tt,It=[],Dt=[],Mt=!1,kt={};if(yt.live){const e=be[1]?be[1].values:null;Mt=null!=e,Tt=Mt?e(I,1,0):{_:0};for(let t in Tt)kt[t]=$}if(bt)if(St=K("table",m,te),At=K("tbody",null,St),yt.mount(I,St),Mt){xt=K("thead",null,St,At);let e=K("tr",null,xt);for(var Ct in K("th",null,e),Tt)K("th",w,e).textContent=Ct}else V(St,v),yt.live&&V(St,_);const Rt={show:!0},Ft={show:!1};const Pt=new Map;function Ut(e,t,i,s=!0){const n=Pt.get(t)||{},o=zi.bind[e](I,t,i,s);o&&(oe(e,t,n[e]=o),Pt.set(t,n))}function Nt(e,t,i){const s=Pt.get(t)||{};for(let n in s)null!=e&&n!=e||(le(n,t,s[n]),delete s[n]);null==e&&Pt.delete(t)}let $t=0,Gt=0,Qt=0,ei=0,ti=0,si=0,ni=ti,oi=si,li=Qt,ri=ei,ai=0,_i=0,vi=0,yi=0;I.bbox={};let bi=!1,wi=!1,Ti=!1,Oi=!1,Ci=!1,Ui=!1;function Ni(e,t,i){(i||e!=I.width||t!=I.height)&&ji(e,t),qs(!1),Ti=!0,wi=!0,pn()}function ji(e,t){I.width=$t=Qt=e,I.height=Gt=ei=t,ti=si=0,function(){let e=!1,t=!1,i=!1,s=!1;Me.forEach(((n,o)=>{if(n.show&&n._show){let{side:o,_size:l}=n,r=o%2,a=l+(null!=n.label?n.labelSize:0);a>0&&(r?(Qt-=a,3==o?(ti+=a,s=!0):i=!0):(ei-=a,0==o?(si+=a,e=!0):t=!0))}})),es[0]=e,es[1]=i,es[2]=t,es[3]=s,Qt-=ss[1]+ss[3],ti+=ss[3],ei-=ss[2]+ss[0],si+=ss[0]}(),function(){let e=ti+Qt,t=si+ei,i=ti,s=si;function n(n,o){switch(n){case 1:return e+=o,e-o;case 2:return t+=o,t-o;case 3:return i-=o,i+o;case 0:return s-=o,s+o}}Me.forEach(((e,t)=>{if(e.show&&e._show){let t=e.side;e._pos=n(t,e._size),null!=e.label&&(e._lpos=n(t,e.labelSize))}}))}();let i=I.bbox;ai=i.left=Be(ti*Y,.5),_i=i.top=Be(si*Y,.5),vi=i.width=Be(Qt*Y,.5),yi=i.height=Be(ei*Y,.5)}const Xi=3;I.setSize=function({width:e,height:t}){Ni(e,t)};const zi=I.cursor=ct({},ii,{drag:{y:2==U}},e.cursor);if(null==zi.dataIdx){let e=zi.hover,i=e.skip=new Set(e.skip??[]);i.add(void 0);let s=e.prox=Ue(e.prox),n=e.bias??=0;zi.dataIdx=(e,o,l,r)=>{if(0==o)return l;let a=l,u=s(e,o,l,r)??Re,c=u>=0&&u<Re,d=0==Ze.ori?Qt:ei,h=zi.left,f=t[0],p=t[o];if(i.has(p[l])){a=null;let e,t=null,s=null;if(0==n||-1==n)for(e=l;null==t&&e-- >0;)i.has(p[e])||(t=e);if(0==n||1==n)for(e=l;null==s&&e++<p.length;)i.has(p[e])||(s=e);if(null!=t||null!=s)if(c){let e=h-(null==t?-1/0:rt(f[t],Ze,d,0)),i=(null==s?1/0:rt(f[s],Ze,d,0))-h;e<=i?e<=u&&(a=t):i<=u&&(a=s)}else a=null==s?t:null==t?s:l-t<=s-l?t:s}else if(c){Ee(h-rt(f[l],Ze,d,0))>u&&(a=null)}return a}}const Yi=e=>{zi.event=e};zi.idxs=vt,zi._lock=!1;let Bi=zi.points;Bi.show=Ue(Bi.show),Bi.size=Ue(Bi.size),Bi.stroke=Ue(Bi.stroke),Bi.width=Ue(Bi.width),Bi.fill=Ue(Bi.fill);const Vi=I.focus=ct({},e.focus||{alpha:.3},zi.focus),Wi=Vi.prox>=0,Gi=Wi&&Bi.one;let Ki=[],qi=[],Zi=[];function Ji(e,t){let i=Bi.show(I,t);if(i)return V(i,g),V(i,e.class),J(i,-10,-10,Qt,ei),pe.insertBefore(i,Ki[t]),i}function Qi(e,t){if(1==U||t>0){let t=1==U&&Fe[e.scale].time,i=e.value;e.value=t?nt(i)?Zt(ft,Kt(i,pt)):i||_t:i||xi,e.label=e.label||(t?di:ci)}if(Gi||t>0){e.width=null==e.width?1:e.width,e.paths=e.paths||cs||je,e.fillTo=Ue(e.fillTo||$i),e.pxAlign=+me(e.pxAlign,_e),e.pxRound=Hi(e.pxAlign),e.stroke=Ue(e.stroke||null),e.fill=Ue(e.fill||null),e._stroke=e._fill=e._paths=e._focus=null;let t=Ge((3+2*(Oe(1,e.width)||1))*1,3),i=e.points=ct({},{size:t,width:Oe(1,.2*t),stroke:e.stroke,space:2*t,paths:ds,_stroke:null,_fill:null},e.points);i.show=Ue(i.show),i.filter=Ue(i.filter),i.fill=Ue(i.fill),i.stroke=Ue(i.stroke),i.paths=Ue(i.paths),i.pxAlign=e.pxAlign}if(bt){let i=function(e,t){if(0==t&&(Mt||!yt.live||2==U))return et;let i=[],s=K("tr",y,At,At.childNodes[t]);V(s,e.class),e.show||V(s,d);let n=K("th",null,s);if(Et.show){let e=q(b,n);if(t>0){let i=Et.width(I,t);i&&(e.style.border=i+"px "+Et.dash(I,t)+" "+Et.stroke(I,t)),e.style.background=Et.fill(I,t)}}let o=q(w,n);for(var l in o.textContent=e.label,t>0&&(Et.show||(o.style.color=e.width>0?Et.stroke(I,t):Et.fill(I,t)),Ut("click",n,(t=>{if(zi._lock)return;Yi(t);let i=be.indexOf(e);if((t.ctrlKey||t.metaKey)!=yt.isolate){let e=be.some(((e,t)=>t>0&&t!=i&&e.show));be.forEach(((t,s)=>{s>0&&An(s,e?s==i?Rt:Ft:Rt,!0,io.setSeries)}))}else An(i,{show:!e.show},!0,io.setSeries)}),!1),Wi&&Ut(R,n,(t=>{zi._lock||(Yi(t),An(be.indexOf(e),In,!0,io.setSeries))}),!1)),Tt){let e=K("td",E,s);e.textContent="--",i.push(e)}return[s,i]}(e,t);It.splice(t,0,i[0]),Dt.splice(t,0,i[1]),yt.values.push(null)}if(zi.show){vt.splice(t,0,null);let i=null;Gi?0==t&&(i=Ji(e,t)):t>0&&(i=Ji(e,t)),Ki.splice(t,0,i),qi.splice(t,0,0),Zi.splice(t,0,0)}eo("addSeries",t)}I.addSeries=function(e,t){t=null==t?be.length:t,e=1==U?fs(e,t,hi,Ii):fs(e,t,{},Li),be.splice(t,0,e),Qi(be[t],t)},I.delSeries=function(e){if(be.splice(e,1),bt){yt.values.splice(e,1),Dt.splice(e,1);let t=It.splice(e,1)[0];Nt(null,t.firstChild),t.remove()}zi.show&&(vt.splice(e,1),Ki.splice(e,1)[0].remove(),qi.splice(e,1),Zi.splice(e,1)),eo("delSeries",e)};const es=[!1,!1,!1,!1];function ts(e,t,i,s){let[n,o,l,r]=i,a=t%2,u=0;return 0==a&&(r||o)&&(u=0==t&&!n||2==t&&!l?xe(ui.size/3):0),1==a&&(n||l)&&(u=1==t&&!o||3==t&&!r?xe(Ai.size/2):0),u}const is=I.padding=(e.padding||[ts,ts,ts,ts]).map((e=>Ue(me(e,ts)))),ss=I._padding=is.map(((e,t)=>e(I,t,es,0)));let ns,os=null,ls=null;const rs=1==U?be[0].idxs:null;let us,xs,As,Ts,Os,Ls,Is,Ds,Ms,ks,Cs=null,Rs=!1;function Fs(e,i){if(t=null==e?[]:e,I.data=I._data=t,2==U){ns=0;for(let e=1;e<be.length;e++)ns+=t[e][0].length}else{0==t.length&&(I.data=I._data=t=[[]]),Cs=t[0],ns=Cs.length;let e=t;if(2==it){e=t.slice();let i=e[0]=Array(ns);for(let e=0;e<ns;e++)i[e]=e}I._data=t=e}if(qs(!0),eo("setData"),2==it&&(Ti=!0),!1!==i){let e=Ze;e.auto(I,Rs)?Ps():xn(He,e.min,e.max),Oi=Oi||zi.left>=0,Ui=!0,pn()}}function Ps(){let e,i;Rs=!0,1==U&&(ns>0?(os=rs[0]=0,ls=rs[1]=ns-1,e=t[0][os],i=t[0][ls],2==it?(e=os,i=ls):e==i&&(3==it?[e,i]=ue(e,e,Ze.log,!1):4==it?[e,i]=ce(e,e,Ze.log,!1):Ze.time?i=e+xe(86400/ye):[e,i]=ge(e,i,de,!0))):(os=rs[0]=e=null,ls=rs[1]=i=null)),xn(He,e,i)}function Us(e,t,i,s,n,o){e??=D,i??=Qe,s??="butt",n??=D,o??="round",e!=us&&(ne.strokeStyle=us=e),n!=xs&&(ne.fillStyle=xs=n),t!=As&&(ne.lineWidth=As=t),o!=Os&&(ne.lineJoin=Os=o),s!=Ls&&(ne.lineCap=Ls=s),i!=Ts&&ne.setLineDash(Ts=i)}function Ns(e,t,i,s){t!=xs&&(ne.fillStyle=xs=t),e!=Is&&(ne.font=Is=e),i!=Ds&&(ne.textAlign=Ds=i),s!=Ms&&(ne.textBaseline=Ms=s)}function $s(e,t,i,s,n=0){if(s.length>0&&e.auto(I,Rs)&&(null==t||null==t.min)){let t=me(os,0),o=me(ls,s.length-1),l=null==i.min?3==e.distr?function(e,t,i){let s=Re,n=-Re;for(let o=t;o<=i;o++){let t=e[o];null!=t&&t>0&&(t<s&&(s=t),t>n&&(n=t))}return[s,n]}(s,t,o):function(e,t,i,s){let n=Re,o=-Re;if(1==s)n=e[t],o=e[i];else if(-1==s)n=e[i],o=e[t];else for(let l=t;l<=i;l++){let t=e[l];null!=t&&(t<n&&(n=t),t>o&&(o=t))}return[n,o]}(s,t,o,n):[i.min,i.max];e.min=Te(e.min,i.min=l[0]),e.max=Oe(e.max,i.max=l[1])}}I.setData=Fs;const js={min:null,max:null};function Xs(e,t){let i=t?be[e].points:be[e];i._stroke=i.stroke(I,e),i._fill=i.fill(I,e)}function zs(e,i){let s=i?be[e].points:be[e],{stroke:n,fill:o,clip:l,flags:r,_stroke:a=s._stroke,_fill:u=s._fill,_width:c=s.width}=s._paths;c=Ge(c*Y,3);let d=null,h=c%2/2;i&&null==u&&(u=c>0?"#fff":a);let f=1==s.pxAlign&&h>0;if(f&&ne.translate(h,h),!i){let e=ai-c/2,t=_i-c/2,i=vi+c,s=yi+c;d=new Path2D,d.rect(e,t,i,s)}i?Ys(a,c,s.dash,s.cap,u,n,o,r,l):function(e,i,s,n,o,l,r,a,u,c,d){let h=!1;0!=u&&Ne.forEach(((f,p)=>{if(f.series[0]==e){let e,g=be[f.series[1]],m=t[f.series[1]],_=(g._paths||Je).band;tt(_)&&(_=1==f.dir?_[0]:_[1]);let v=null;g.show&&_&&function(e,t,i){for(t=me(t,0),i=me(i,e.length-1);t<=i;){if(null!=e[t])return!0;t++}return!1}(m,os,ls)?(v=f.fill(I,p)||l,e=g._paths.clip):_=null,Ys(i,s,n,o,v,r,a,u,c,d,e,_),h=!0}})),h||Ys(i,s,n,o,l,r,a,u,c,d)}(e,a,c,s.dash,s.cap,u,n,o,r,d,l),f&&ne.translate(-h,-h)}const Hs=Fi|Pi;function Ys(e,t,i,s,n,o,l,r,a,u,c,d){Us(e,t,i,s,n),(a||u||d)&&(ne.save(),a&&ne.clip(a),u&&ne.clip(u)),d?(r&Hs)==Hs?(ne.clip(d),c&&ne.clip(c),Vs(n,l),Bs(e,o,t)):r&Pi?(Vs(n,l),ne.clip(d),Bs(e,o,t)):r&Fi&&(ne.save(),ne.clip(d),c&&ne.clip(c),Vs(n,l),ne.restore(),Bs(e,o,t)):(Vs(n,l),Bs(e,o,t)),(a||u||d)&&ne.restore()}function Bs(e,t,i){i>0&&(t instanceof Map?t.forEach(((e,t)=>{ne.strokeStyle=us=t,ne.stroke(e)})):null!=t&&e&&ne.stroke(t))}function Vs(e,t){t instanceof Map?t.forEach(((e,t)=>{ne.fillStyle=xs=t,ne.fill(e)})):null!=t&&e&&ne.fill(t)}function Ws(e,t,i,s,n,o,l,r,a,u){let c=l%2/2;1==_e&&ne.translate(c,c),Us(r,l,a,u,r),ne.beginPath();let d,h,f,p,g=n+(0==s||3==s?-o:o);0==i?(h=n,p=g):(d=n,f=g);for(let m=0;m<e.length;m++)null!=t[m]&&(0==i?d=f=e[m]:h=p=e[m],ne.moveTo(d,h),ne.lineTo(f,p));ne.stroke(),1==_e&&ne.translate(-c,-c)}function Gs(e){let t=!0;return Me.forEach(((i,s)=>{if(!i.show)return;let n=Fe[i.scale];if(null==n.min)return void(i._show&&(t=!1,i._show=!1,qs(!1)));i._show||(t=!1,i._show=!0,qs(!1));let o=i.side,l=o%2,{min:r,max:a}=n,[u,c]=function(e,t,i,s){let n,o=Me[e];if(s<=0)n=[0,0];else{let l=o._space=o.space(I,e,t,i,s);n=ws(t,i,o._incrs=o.incrs(I,e,t,i,s,l),s,l)}return o._found=n}(s,r,a,0==l?Qt:ei);if(0==c)return;let d=2==n.distr,h=i._splits=i.splits(I,s,r,a,u,c,d),f=2==n.distr?h.map((e=>Cs[e])):h,p=2==n.distr?Cs[h[1]]-Cs[h[0]]:u,g=i._values=i.values(I,i.filter(I,f,s,c,p),s,c,p);i._rotate=2==o?i.rotate(I,g,s,c):0;let m=i._size;i._size=Ae(i.size(I,g,s,e)),null!=m&&i._size!=m&&(t=!1)})),t}function Ks(e){let t=!0;return is.forEach(((i,s)=>{let n=i(I,s,es,e);n!=ss[s]&&(t=!1),ss[s]=n})),t}function qs(e){be.forEach(((t,i)=>{i>0&&(t._paths=null,e&&(1==U?(t.min=null,t.max=null):t.facets.forEach((e=>{e.min=null,e.max=null}))))}))}let Zs,Js,Qs,en,tn,sn,nn,on,ln,rn,an,un,cn=!1,dn=!1,hn=[];function fn(){dn=!1;for(let e=0;e<hn.length;e++)eo(...hn[e]);hn.length=0}function pn(){cn||(ht(gn),cn=!0)}function gn(){if(bi&&(!function(){for(let t in Fe){let e=Fe[t];null==dt[t]&&(null==e.min||null!=dt[He]&&e.auto(I,Rs))&&(dt[t]=js)}for(let t in Fe){let e=Fe[t];null==dt[t]&&null!=e.from&&null!=dt[e.from]&&(dt[t]=js)}null!=dt[He]&&qs(!0);let e={};for(let t in dt){let i=dt[t];if(null!=i){let s=e[t]=ut(Fe[t],lt);if(null!=i.min)ct(s,i);else if(t!=He||2==U)if(0==ns&&null==s.from){let e=s.range(I,null,null,t);s.min=e[0],s.max=e[1]}else s.min=Re,s.max=-Re}}if(ns>0){be.forEach(((i,s)=>{if(1==U){let n=i.scale,o=dt[n];if(null==o)return;let l=e[n];if(0==s){let e=l.range(I,l.min,l.max,n);l.min=e[0],l.max=e[1],os=re(l.min,t[0]),ls=re(l.max,t[0]),ls-os>1&&(t[0][os]<l.min&&os++,t[0][ls]>l.max&&ls--),i.min=Cs[os],i.max=Cs[ls]}else i.show&&i.auto&&$s(l,o,i,t[s],i.sorted);i.idxs[0]=os,i.idxs[1]=ls}else if(s>0&&i.show&&i.auto){let[n,o]=i.facets,l=n.scale,r=o.scale,[a,u]=t[s],c=e[l],d=e[r];null!=c&&$s(c,dt[l],n,a,n.sorted),null!=d&&$s(d,dt[r],o,u,o.sorted),i.min=o.min,i.max=o.max}}));for(let t in e){let i=e[t],s=dt[t];if(null==i.from&&(null==s||null==s.min)){let e=i.range(I,i.min==Re?null:i.min,i.max==-Re?null:i.max,t);i.min=e[0],i.max=e[1]}}}for(let t in e){let i=e[t];if(null!=i.from){let s=e[i.from];if(null==s.min)i.min=i.max=null;else{let e=i.range(I,s.min,s.max,t);i.min=e[0],i.max=e[1]}}}let i={},s=!1;for(let t in e){let n=e[t],o=Fe[t];if(o.min!=n.min||o.max!=n.max){o.min=n.min,o.max=n.max;let e=o.distr;o._min=3==e?De(o.min):4==e?Ce(o.min,o.asinh):100==e?o.fwd(o.min):o.min,o._max=3==e?De(o.max):4==e?Ce(o.max,o.asinh):100==e?o.fwd(o.max):o.max,i[t]=s=!0}}if(s){be.forEach(((e,t)=>{2==U?t>0&&i.y&&(e._paths=null):i[e.scale]&&(e._paths=null)}));for(let e in i)Ti=!0,eo("setScale",e);zi.show&&zi.left>=0&&(Oi=Ui=!0)}for(let t in dt)dt[t]=null}(),bi=!1),Ti&&(!function(){let e=!1,t=0;for(;!e;){t++;let i=Gs(t),s=Ks(t);e=t==Xi||i&&s,e||(ji(I.width,I.height),wi=!0)}}(),Ti=!1),wi){if(G(fe,O,ti),G(fe,A,si),G(fe,S,Qt),G(fe,x,ei),G(pe,O,ti),G(pe,A,si),G(pe,S,Qt),G(pe,x,ei),G(ae,S,$t),G(ae,x,Gt),se.width=xe($t*Y),se.height=xe(Gt*Y),Me.forEach((({_el:e,_show:t,_size:i,_pos:s,side:n})=>{if(null!=e)if(t){let t=n%2==1;G(e,t?"left":"top",s-(3===n||0===n?i:0)),G(e,t?"width":"height",i),G(e,t?"top":"left",t?si:ti),G(e,t?"height":"width",t?ei:Qt),W(e,d)}else V(e,d)})),us=xs=As=Os=Ls=Is=Ds=Ms=Ts=null,ks=1,$n(!0),ti!=ni||si!=oi||Qt!=li||ei!=ri){qs(!1);let e=Qt/li,t=ei/ri;if(zi.show&&!Oi&&zi.left>=0){zi.left*=e,zi.top*=t,Qs&&J(Qs,xe(zi.left),0,Qt,ei),en&&J(en,0,xe(zi.top),Qt,ei);for(let i=0;i<Ki.length;i++){let s=Ki[i];null!=s&&(qi[i]*=e,Zi[i]*=t,J(s,Ae(qi[i]),Ae(Zi[i]),Qt,ei))}}if(wn.show&&!Ci&&wn.left>=0&&wn.width>0){wn.left*=e,wn.width*=e,wn.top*=t,wn.height*=t;for(let e in zn)G(En,e,wn[e])}ni=ti,oi=si,li=Qt,ri=ei}eo("setSize"),wi=!1}$t>0&&Gt>0&&(ne.clearRect(0,0,se.width,se.height),eo("drawClear"),Ve.forEach((e=>e())),eo("draw")),wn.show&&Ci&&(Sn(wn),Ci=!1),zi.show&&Oi&&(Un(null,!0,!1),Oi=!1),yt.show&&yt.live&&Ui&&(Fn(),Ui=!1),Q||(Q=!0,I.status=1,eo("ready")),Rs=!1,cn=!1}function mn(e,i){let s=Fe[e];if(null==s.from){if(0==ns){let t=s.range(I,i.min,i.max,e);i.min=t[0],i.max=t[1]}if(i.min>i.max){let e=i.min;i.min=i.max,i.max=e}if(ns>1&&null!=i.min&&null!=i.max&&i.max-i.min<1e-16)return;e==He&&2==s.distr&&ns>0&&(i.min=re(i.min,t[0]),i.max=re(i.max,t[0]),i.min==i.max&&i.max++),dt[e]=i,bi=!0,pn()}}I.batch=function(e,t=!1){cn=!0,dn=t,e(I),gn(),t&&hn.length>0&&queueMicrotask(fn)},I.redraw=(e,t)=>{Ti=t||!1,!1!==e?xn(He,Ze.min,Ze.max):pn()},I.setScale=mn;let _n=!1;const vn=zi.drag;let yn=vn.x,bn=vn.y;zi.show&&(zi.x&&(Zs=q(f,pe)),zi.y&&(Js=q(p,pe)),0==Ze.ori?(Qs=Zs,en=Js):(Qs=Js,en=Zs),an=zi.left,un=zi.top);const wn=I.select=ct({show:!0,over:!0,left:0,width:0,top:0,height:0},e.select),En=wn.show?q(h,wn.over?pe:fe):null;function Sn(e,t){if(wn.show){for(let t in e)wn[t]=e[t],t in zn&&G(En,t,e[t]);!1!==t&&eo("setSelect")}}function xn(e,t,i){mn(e,{min:t,max:i})}function An(e,t,i,s){null!=t.focus&&function(e){if(e!=Ln){let t=null==e,i=1!=Vi.alpha;be.forEach(((s,n)=>{if(1==U||n>0){let o=t||0==n||n==e;s._focus=t?null:o,i&&function(e,t){be[e].alpha=t,zi.show&&Ki[e]&&(Ki[e].style.opacity=t);bt&&It[e]&&(It[e].style.opacity=t)}(n,o?1:Vi.alpha)}})),Ln=e,i&&pn()}}(e),null!=t.show&&be.forEach(((i,s)=>{s>0&&(e==s||null==e)&&(i.show=t.show,function(e){let t=be[e],i=bt?It[e]:null;t.show?i&&W(i,d):(i&&V(i,d),J(Gi?Ki[0]:Ki[e],-10,-10,Qt,ei))}(s,t.show),2==U?(xn(i.facets[0].scale,null,null),xn(i.facets[1].scale,null,null)):xn(i.scale,null,null),pn())})),!1!==i&&eo("setSeries",e,t),s&&oo("setSeries",I,e,t)}let Tn,On,Ln;I.setSelect=Sn,I.setSeries=An,I.addBand=function(e,t){e.fill=Ue(e.fill||null),e.dir=me(e.dir,-1),t=null==t?Ne.length:t,Ne.splice(t,0,e)},I.setBand=function(e,t){ct(Ne[e],t)},I.delBand=function(e){null==e?Ne.length=0:Ne.splice(e,1)};const In={focus:!0};function Dn(e,t,i){let s=Fe[t];i&&(e=e/Y-(1==s.ori?si:ti));let n=Qt;1==s.ori&&(n=ei,e=n-e),-1==s.dir&&(e=n-e);let o=s._min,l=o+(s._max-o)*(e/n),r=s.distr;return 3==r?Le(10,l):4==r?ke(l,s.asinh):100==r?s.bwd(l):l}function Mn(e,t){G(En,O,wn.left=e),G(En,S,wn.width=t)}function kn(e,t){G(En,A,wn.top=e),G(En,x,wn.height=t)}bt&&Wi&&Ut(F,St,(e=>{zi._lock||(Yi(e),null!=Ln&&An(null,In,!0,io.setSeries))})),I.valToIdx=e=>re(e,t[0]),I.posToIdx=function(e,i){return re(Dn(e,He,i),t[0],os,ls)},I.posToVal=Dn,I.valToPos=(e,t,i)=>0==Fe[t].ori?H(e,Fe[t],i?vi:Qt,i?ai:0):B(e,Fe[t],i?yi:ei,i?_i:0),I.setCursor=(e,t,i)=>{an=e.left,un=e.top,Un(null,t,i)};let Cn=0==Ze.ori?Mn:kn,Rn=1==Ze.ori?Mn:kn;function Fn(e,t){if(null!=e&&(e.idxs?e.idxs.forEach(((e,t)=>{vt[t]=e})):st(e.idx)||vt.fill(e.idx),yt.idx=vt[0]),bt&&yt.live){for(let e=0;e<be.length;e++)(e>0||1==U&&!Mt)&&Pn(e,vt[e]);!function(){if(bt&&yt.live)for(let e=2==U?1:0;e<be.length;e++){if(0==e&&Mt)continue;let t=yt.values[e],i=0;for(let s in t)Dt[e][i++].firstChild.nodeValue=t[s]}}()}Ui=!1,!1!==t&&eo("setLegend")}function Pn(e,i){let s,n=be[e],o=0==e&&2==it?Cs:t[e];Mt?s=n.values(I,e,i)??kt:(s=n.value(I,null==i?null:o[i],e,i),s=null==s?kt:{_:s}),yt.values[e]=s}function Un(e,i,s){let n;ln=an,rn=un,[an,un]=zi.move(I,an,un),zi.left=an,zi.top=un,zi.show&&(Qs&&J(Qs,xe(an),0,Qt,ei),en&&J(en,0,xe(un),Qt,ei));let o=os>ls;Tn=Re,On=null;let l=0==Ze.ori?Qt:ei,r=1==Ze.ori?Qt:ei;if(an<0||0==ns||o){n=zi.idx=null;for(let e=0;e<be.length;e++){let t=Ki[e];null!=t&&J(t,-10,-10,Qt,ei)}Wi&&An(null,In,!0,null==e&&io.setSeries),yt.live&&(vt.fill(n),Ui=!0)}else{let e,i,s;1==U&&(e=0==Ze.ori?an:un,i=Dn(e,He),n=zi.idx=re(i,t[0],os,ls),s=rt(t[0][n],Ze,l,0));let o=-10,a=-10,u=0,c=0,d=!0,h="",f="";for(let p=2==U?1:0;p<be.length;p++){let e=be[p],g=vt[p],m=null==g?null:1==U?t[p][g]:t[p][1][g],_=zi.dataIdx(I,p,n,i),v=null==_?null:1==U?t[p][_]:t[p][1][_];Ui=Ui||v!=m||_!=g,vt[p]=_;let y=_==n?s:rt(1==U?t[0][_]:t[p][0][_],Ze,l,0);if(p>0&&e.show){let t=null==v?-10:at(v,1==U?Fe[e.scale]:Fe[e.facets[1].scale],r,0);if(Wi&&null!=v){let i=1==Ze.ori?an:un,s=Ee(Vi.dist(I,p,_,t,i));if(s<Tn){let t=Vi.bias;if(0!=t){let n=Dn(i,e.scale),o=n>=0?1:-1;o==(v>=0?1:-1)&&(1==o?1==t?v>=n:v<=n:1==t?v<=n:v>=n)&&(Tn=s,On=p)}else Tn=s,On=p}}if(Ui||Gi){let e,i;0==Ze.ori?(e=y,i=t):(e=t,i=y);let s,n,l,r,g,m,_=!0,v=Bi.bbox;if(null!=v){_=!1;let e=v(I,p);l=e.left,r=e.top,s=e.width,n=e.height}else l=e,r=i,s=n=Bi.size(I,p);if(m=Bi.fill(I,p),g=Bi.stroke(I,p),Gi)p==On&&Tn<=Vi.prox&&(o=l,a=r,u=s,c=n,d=_,h=m,f=g);else{let e=Ki[p];null!=e&&(qi[p]=l,Zi[p]=r,ie(e,s,n,_),ee(e,m,g),J(e,Ae(l),Ae(r),Qt,ei))}}}}if(Gi){let e=Vi.prox;if(Ui||(null==Ln?Tn<=e:Tn>e||On!=Ln)){let e=Ki[0];qi[0]=o,Zi[0]=a,ie(e,u,c,d),ee(e,h,f),J(e,Ae(o),Ae(a),Qt,ei)}}}if(wn.show&&_n)if(null!=e){let[t,i]=io.scales,[s,n]=io.match,[o,a]=e.cursor.sync.scales,u=e.cursor.drag;if(yn=u._x,bn=u._y,yn||bn){let u,c,d,h,f,{left:p,top:g,width:m,height:_}=e.select,v=e.scales[o].ori,y=e.posToVal,b=null!=t&&s(t,o),w=null!=i&&n(i,a);b&&yn?(0==v?(u=p,c=m):(u=g,c=_),d=Fe[t],h=rt(y(u,o),d,l,0),f=rt(y(u+c,o),d,l,0),Cn(Te(h,f),Ee(f-h))):Cn(0,l),w&&bn?(1==v?(u=p,c=m):(u=g,c=_),d=Fe[i],h=at(y(u,a),d,r,0),f=at(y(u+c,a),d,r,0),Rn(Te(h,f),Ee(f-h))):Rn(0,r)}else Hn()}else{let e=Ee(ln-tn),t=Ee(rn-sn);if(1==Ze.ori){let i=e;e=t,t=i}yn=vn.x&&e>=vn.dist,bn=vn.y&&t>=vn.dist;let i,s,n=vn.uni;null!=n?yn&&bn&&(yn=e>=n,bn=t>=n,yn||bn||(t>e?bn=!0:yn=!0)):vn.x&&vn.y&&(yn||bn)&&(yn=bn=!0),yn&&(0==Ze.ori?(i=nn,s=an):(i=on,s=un),Cn(Te(i,s),Ee(s-i)),bn||Rn(0,r)),bn&&(1==Ze.ori?(i=nn,s=an):(i=on,s=un),Rn(Te(i,s),Ee(s-i)),yn||Cn(0,l)),yn||bn||(Cn(0,0),Rn(0,0))}if(vn._x=yn,vn._y=bn,null==e){if(s){if(null!=so){let[e,t]=io.scales;io.values[0]=null!=e?Dn(0==Ze.ori?an:un,e):null,io.values[1]=null!=t?Dn(1==Ze.ori?an:un,t):null}oo(M,I,an,un,Qt,ei,n)}if(Wi){let e=s&&io.setSeries,t=Vi.prox;null==Ln?Tn<=t&&An(On,In,!0,e):Tn>t?An(null,In,!0,e):On!=Ln&&An(On,In,!0,e)}}Ui&&(yt.idx=n,Fn()),!1!==i&&eo("setCursor")}I.setLegend=Fn;let Nn=null;function $n(e=!1){e?Nn=null:(Nn=pe.getBoundingClientRect(),eo("syncRect",Nn))}function jn(e,t,i,s,n,o,l){zi._lock||_n&&null!=e&&0==e.movementX&&0==e.movementY||(Xn(e,t,i,s,n,o,l,!1,null!=e),null!=e?Un(null,!0,!0):Un(t,!0,!1))}function Xn(e,t,i,s,n,o,l,r,a){if(null==Nn&&$n(!1),Yi(e),null!=e)i=e.clientX-Nn.left,s=e.clientY-Nn.top;else{if(i<0||s<0)return an=-10,void(un=-10);let[e,l]=io.scales,r=t.cursor.sync,[a,u]=r.values,[c,d]=r.scales,[h,f]=io.match,p=t.axes[0].side%2==1,g=0==Ze.ori?Qt:ei,m=1==Ze.ori?Qt:ei,_=p?o:n,v=p?n:o,y=p?s:i,b=p?i:s;if(i=null!=c?h(e,c)?Z(a,Fe[e],g,0):-10:g*(y/_),s=null!=d?f(l,d)?Z(u,Fe[l],m,0):-10:m*(b/v),1==Ze.ori){let e=i;i=s,s=e}}a&&((i<=1||i>=Qt-1)&&(i=Be(i,Qt)),(s<=1||s>=ei-1)&&(s=Be(s,ei))),r?(tn=i,sn=s,[nn,on]=zi.move(I,i,s)):(an=i,un=s)}Object.defineProperty(I,"rect",{get:()=>(null==Nn&&$n(!1),Nn)});const zn={width:0,height:0,left:0,top:0};function Hn(){Sn(zn,!1)}let Yn,Bn,Vn,Wn;function Gn(e,t,i,s,n,o,l){_n=!0,yn=bn=vn._x=vn._y=!1,Xn(e,t,i,s,n,o,0,!0,!1),null!=e&&(Ut(C,X,Kn,!1),oo(k,I,nn,on,Qt,ei,null));let{left:r,top:a,width:u,height:c}=wn;Yn=r,Bn=a,Vn=u,Wn=c,Hn()}function Kn(e,t,i,s,n,o,l){_n=vn._x=vn._y=!1,Xn(e,t,i,s,n,o,0,!1,!0);let{left:r,top:a,width:u,height:c}=wn,d=u>0||c>0,h=Yn!=r||Bn!=a||Vn!=u||Wn!=c;if(d&&h&&Sn(wn),vn.setScale&&d&&h){let e=r,t=u,i=a,s=c;if(1==Ze.ori&&(e=a,t=c,i=r,s=u),yn&&xn(He,Dn(e,He),Dn(e+t,He)),bn)for(let n in Fe){let e=Fe[n];n!=He&&null==e.from&&e.min!=Re&&xn(n,Dn(i+s,n),Dn(i,n))}Hn()}else zi.lock&&(zi._lock=!zi._lock,Un(null,!0,!1));null!=e&&(Nt(C,X),oo(C,I,an,un,Qt,ei,null))}function qn(e,t,i,s,n,o,l){zi._lock||(Yi(e),Ps(),Hn(),null!=e&&oo(P,I,an,un,Qt,ei,null))}function Zn(){Me.forEach(Ss),Ni(I.width,I.height,!0)}oe(N,z,Zn);const Jn={};Jn.mousedown=Gn,Jn.mousemove=jn,Jn.mouseup=Kn,Jn.dblclick=qn,Jn.setSeries=(e,t,i,s)=>{-1!=(i=(0,io.match[2])(I,t,i))&&An(i,s,!0,!1)},zi.show&&(Ut(k,pe,Gn),Ut(M,pe,jn),Ut(R,pe,(e=>{Yi(e),$n(!1)})),Ut(F,pe,(function(e,t,i,s,n,o,l){if(zi._lock)return;Yi(e);let r=_n;if(_n){let e,t,i=!0,s=!0,n=10;0==Ze.ori?(e=yn,t=bn):(e=bn,t=yn),e&&t&&(i=an<=n||an>=Qt-n,s=un<=n||un>=ei-n),e&&i&&(an=an<nn?0:Qt),t&&s&&(un=un<on?0:ei),Un(null,!0,!0),_n=!1}an=-10,un=-10,Un(null,!0,!0),r&&(_n=r)})),Ut(P,pe,qn),as.add(I),I.syncRect=$n);const Qn=I.hooks=e.hooks||{};function eo(e,t,i){dn?hn.push([e,t,i]):e in Qn&&Qn[e].forEach((e=>{e.call(null,I,t,i)}))}(e.plugins||[]).forEach((e=>{for(let t in e.hooks)Qn[t]=(Qn[t]||[]).concat(e.hooks[t])}));const to=(e,t,i)=>i,io=ct({key:null,setSeries:!1,filters:{pub:Xe,sub:Xe},scales:[He,be[1]?be[1].scale:null],match:[ze,ze,to],values:[null,null]},zi.sync);2==io.match.length&&io.match.push(to),zi.sync=io;const so=io.key,no=Ri(so);function oo(e,t,i,s,n,o,l){io.filters.pub(e,t,i,s,n,o,l)&&no.pub(e,t,i,s,n,o,l)}function lo(){eo("init",e,t),Fs(t||e.data,!1),dt[He]?mn(He,dt[He]):Ps(),Ci=wn.show&&(wn.width>0||wn.height>0),Oi=Ui=!0,Ni(e.width,e.height)}return no.sub(I),I.pub=function(e,t,i,s,n,o,l){io.filters.sub(e,t,i,s,n,o,l)&&Jn[e](null,t,i,s,n,o,l)},I.destroy=function(){no.unsub(I),as.delete(I),Pt.clear(),le(N,z,Zn),te.remove(),St?.remove(),eo("destroy")},be.forEach(Qi),Me.forEach((function(e,t){if(e._show=e.show,e.show){let i=e.side%2,s=Fe[e.scale];null==s&&(e.scale=i?be[1].scale:He,s=Fe[e.scale]);let n=s.time;e.size=Ue(e.size),e.space=Ue(e.space),e.rotate=Ue(e.rotate),tt(e.incrs)&&e.incrs.forEach((e=>{!Ke.has(e)&&Ke.set(e,qe(e))})),e.incrs=Ue(e.incrs||(2==s.distr?Ot:n?1==ye?jt:Ht:Lt)),e.splits=Ue(e.splits||(n&&1==s.distr?gt:3==s.distr?gi:4==s.distr?mi:pi)),e.stroke=Ue(e.stroke),e.grid.stroke=Ue(e.grid.stroke),e.ticks.stroke=Ue(e.ticks.stroke),e.border.stroke=Ue(e.border.stroke);let o=e.values;e.values=tt(o)&&!tt(o[0])?Ue(o):n?tt(o)?Wt(ft,Vt(o,pt)):nt(o)?function(e,t){let i=wt(t);return(t,s,n,o,l)=>s.map((t=>i(e(t))))}(ft,o):o||mt:o||fi,e.filter=Ue(e.filter||(s.distr>=3&&10==s.log?Ei:3==s.distr&&2==s.log?Si:$e)),e.font=Es(e.font),e.labelFont=Es(e.labelFont),e._size=e.size(I,null,t,0),e._space=e._rotate=e._incrs=e._found=e._splits=e._values=null,e._size>0&&(es[t]=!0,e._el=q(c,ae))}})),i?i instanceof HTMLElement?(i.appendChild(te),lo()):i(I,lo):lo(),I}xs.assign=ct,xs.fmtNum=ye,xs.rangeNum=ge,xs.rangeLog=ue,xs.rangeAsinh=ce,xs.orient=Ui,xs.pxRatio=Y,xs.join=function(e,t){if(function(e){let t=e[0][0],i=t.length;for(let s=1;s<e.length;s++){let n=e[s][0];if(n.length!=i)return!1;if(n!=t)for(let e=0;e<i;e++)if(n[e]!=t[e])return!1}return!0}(e)){let t=e[0].slice();for(let i=1;i<e.length;i++)t.push(...e[i].slice(1));return function(e,t=100){const i=e.length;if(i<=1)return!0;let s=0,n=i-1;for(;s<=n&&null==e[s];)s++;for(;n>=s&&null==e[n];)n--;if(n<=s)return!0;const o=Oe(1,Se((n-s+1)/t));for(let l=e[s],r=s+o;r<=n;r+=o){const t=e[r];if(null!=t){if(t<=l)return!1;l=t}}return!0}(t[0])||(t=function(e){let t=e[0],i=t.length,s=Array(i);for(let o=0;o<s.length;o++)s[o]=o;s.sort(((e,i)=>t[e]-t[i]));let n=[];for(let o=0;o<e.length;o++){let t=e[o],l=Array(i);for(let e=0;e<i;e++)l[e]=t[s[e]];n.push(l)}return n}(t)),t}let i=new Set;for(let l=0;l<e.length;l++){let t=e[l][0],s=t.length;for(let e=0;e<s;e++)i.add(t[e])}let s=[Array.from(i).sort(((e,t)=>e-t))],n=s[0].length,o=new Map;for(let l=0;l<n;l++)o.set(s[0][l],l);for(let l=0;l<e.length;l++){let i=e[l],r=i[0];for(let e=1;e<i.length;e++){let a=i[e],u=Array(n).fill(void 0),c=t?t[l][e]:1,d=[];for(let e=0;e<a.length;e++){let t=a[e],i=o.get(r[e]);null===t?0!=c&&(u[i]=t,2==c&&d.push(i)):u[i]=t}dt(u,d,n),s.push(u)}}return s},xs.fmtDate=wt,xs.tzDate=function(e,t){let i;return"UTC"==t||"Etc/UTC"==t?i=new Date(+e+6e4*e.getTimezoneOffset()):t==Et?i=e:(i=new Date(e.toLocaleString("en-US",{timeZone:t})),i.setMilliseconds(e.getMilliseconds())),i},xs.sync=Ri;{xs.addGap=function(e,t,i){let s=e[e.length-1];s&&s[0]==t?s[1]=i:e.push([t,i])},xs.clipGaps=Xi;let e=xs.paths={points:ts};e.linear=os,e.stepped=function(e){const t=me(e.align,1),i=me(e.ascDesc,!1),s=me(e.alignGaps,0),n=me(e.extend,!1);return(e,o,l,r)=>Ui(e,o,((a,u,c,d,h,f,p,g,m,_,v)=>{let y=a.pxRound,{left:b,width:w}=e.bbox,E=e=>y(f(e,d,_,g)),S=e=>y(p(e,h,v,m)),x=0==d.ori?Wi:Gi;const A={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Fi},T=A.stroke,O=d.dir*(0==d.ori?1:-1);l=ae(c,l,r,1),r=ae(c,l,r,-1);let L=S(c[1==O?l:r]),I=E(u[1==O?l:r]),D=I,M=I;n&&-1==t&&(M=b,x(T,M,L)),x(T,I,L);for(let e=1==O?l:r;e>=l&&e<=r;e+=O){let i=c[e];if(null==i)continue;let s=E(u[e]),n=S(i);1==t?x(T,s,L):x(T,D,n),x(T,s,n),L=n,D=s}let k=D;n&&1==t&&(k=b+w,x(T,k,L));let[C,R]=Ni(e,o);if(null!=a.fill||0!=C){let t=A.fill=new Path2D(T),i=S(a.fillTo(e,o,a.min,a.max,C));x(t,k,i),x(t,M,i)}if(!a.spanGaps){let n=[];n.push(...zi(u,c,l,r,O,E,s));let h=a.width*Y/2,f=i||1==t?h:-h,p=i||-1==t?-h:h;n.forEach((e=>{e[0]+=f,e[1]+=p})),A.gaps=n=a.gaps(e,o,l,r,n),A.clip=Xi(n,d.ori,g,m,_,v)}return 0!=R&&(A.band=2==R?[ji(e,o,l,r,T,-1),ji(e,o,l,r,T,1)]:ji(e,o,l,r,T,R)),A}))},e.bars=function(e){const t=me((e=e||Je).size,[.6,Re,1]),i=e.align||0,s=e.gap||0;let n=e.radius;n=null==n?[0,0]:"number"==typeof n?[n,0]:n;const o=Ue(n),l=1-t[0],r=me(t[1],Re),a=me(t[2],1),u=me(e.disp,Je),c=me(e.each,(e=>{})),{fill:d,stroke:h}=u;return(e,t,n,f)=>Ui(e,t,((p,g,m,_,v,y,b,w,E,S,x)=>{let A,T,O=p.pxRound,L=i,I=s*Y,D=r*Y,M=a*Y;0==_.ori?[A,T]=o(e,t):[T,A]=o(e,t);const k=_.dir*(0==_.ori?1:-1);let C,R,F,P=0==_.ori?Ki:qi,U=0==_.ori?c:(e,t,i,s,n,o,l)=>{c(e,t,i,n,s,l,o)},N=me(e.bands,Qe).find((e=>e.series[0]==t)),$=null!=N?N.dir:0,j=p.fillTo(e,t,p.min,p.max,$),X=O(b(j,v,x,E)),z=S,H=O(p.width*Y),B=!1,V=null,W=null,G=null,K=null;null==d||0!=H&&null==h||(B=!0,V=d.values(e,t,n,f),W=new Map,new Set(V).forEach((e=>{null!=e&&W.set(e,new Path2D)})),H>0&&(G=h.values(e,t,n,f),K=new Map,new Set(G).forEach((e=>{null!=e&&K.set(e,new Path2D)}))));let{x0:q,size:Z}=u;if(null!=q&&null!=Z){L=1,g=q.values(e,t,n,f),2==q.unit&&(g=g.map((t=>e.posToVal(w+t*S,_.key,!0))));let i=Z.values(e,t,n,f);R=2==Z.unit?i[0]*S:y(i[0],_,S,w)-y(0,_,S,w),z=ls(g,m,y,_,S,w,z),F=z-R+I}else z=ls(g,m,y,_,S,w,z),F=z*l+I,R=z-F;F<1&&(F=0),H>=R/2&&(H=0),F<5&&(O=Ne);let J=F>0;R=O(Pe(z-F-(J?H:0),M,D)),C=(0==L?R/2:L==k?0:R)-L*k*((0==L?I/2:0)+(J?H/2:0));const Q={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},ee=B?null:new Path2D;let te=null;if(null!=N)te=e.data[N.series[1]];else{let{y0:i,y1:s}=u;null!=i&&null!=s&&(m=s.values(e,t,n,f),te=i.values(e,t,n,f))}let ie=A*R,se=T*R;for(let i=1==k?n:f;i>=n&&i<=f;i+=k){let s=m[i];if(null==s)continue;if(null!=te){let e=te[i]??0;if(s-e==0)continue;X=b(e,v,x,E)}let n=y(2!=_.distr||null!=u?g[i]:i,_,S,w),o=b(me(s,j),v,x,E),l=O(n-C),r=O(Oe(o,X)),a=O(Te(o,X)),c=r-a;if(null!=s){let n=s<0?se:ie,o=s<0?ie:se;B?(H>0&&null!=G[i]&&P(K.get(G[i]),l,a+Se(H/2),R,Oe(0,c-H),n,o),null!=V[i]&&P(W.get(V[i]),l,a+Se(H/2),R,Oe(0,c-H),n,o)):P(ee,l,a+Se(H/2),R,Oe(0,c-H),n,o),U(e,t,i,l-H/2,a,R+H,c)}}return H>0?Q.stroke=B?K:ee:B||(Q._fill=0==p.width?p._fill:p._stroke??p._fill,Q.width=0),Q.fill=B?W:ee,Q}))},e.spline=function(e){return function(e,t){const i=me(t?.alignGaps,0);return(t,s,n,o)=>Ui(t,s,((l,r,a,u,c,d,h,f,p,g,m)=>{let _,v,y,b=l.pxRound,w=e=>b(d(e,u,g,f)),E=e=>b(h(e,c,m,p));0==u.ori?(_=Bi,y=Wi,v=Qi):(_=Vi,y=Gi,v=es);const S=u.dir*(0==u.ori?1:-1);n=ae(a,n,o,1),o=ae(a,n,o,-1);let x=w(r[1==S?n:o]),A=x,T=[],O=[];for(let e=1==S?n:o;e>=n&&e<=o;e+=S)if(null!=a[e]){let t=w(r[e]);T.push(A=t),O.push(E(a[e]))}const L={stroke:e(T,O,_,y,v,b),fill:null,clip:null,band:null,gaps:null,flags:Fi},I=L.stroke;let[D,M]=Ni(t,s);if(null!=l.fill||0!=D){let e=L.fill=new Path2D(I),i=E(l.fillTo(t,s,l.min,l.max,D));y(e,A,i),y(e,x,i)}if(!l.spanGaps){let e=[];e.push(...zi(r,a,n,o,S,w,i)),L.gaps=e=l.gaps(t,s,n,o,e),L.clip=Xi(e,u.ori,f,p,g,m)}return 0!=M&&(L.band=2==M?[ji(t,s,n,o,I,-1),ji(t,s,n,o,I,1)]:ji(t,s,n,o,I,M)),L}))}(rs,e)}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/2031.d8f098f9.chunk.js b/ydb/core/viewer/monitoring/static/js/2031.d8f098f9.chunk.js new file mode 100644 index 0000000000..82646af3fb --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/2031.d8f098f9.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 2031.d8f098f9.chunk.js.LICENSE.txt */ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[2031],{253:(e,t,i)=>{"use strict";i.d(t,{f:()=>r,j:()=>n});var s=i(32848);const n=(0,i(63591).u1)("accessibilityService"),r=new s.N1("accessibilityModeEnabled",!1)},538:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>i.e(132).then(i.bind(i,40132))})},631:(e,t,i)=>{"use strict";function s(e){return"string"===typeof e}function n(e){return"object"===typeof e&&null!==e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function r(e){const t=Object.getPrototypeOf(Uint8Array);return"object"===typeof e&&e instanceof t}function o(e){return"number"===typeof e&&!isNaN(e)}function a(e){return!!e&&"function"===typeof e[Symbol.iterator]}function c(e){return!0===e||!1===e}function l(e){return"undefined"===typeof e}function h(e){return!d(e)}function d(e){return l(e)||null===e}function u(e,t){if(!e)throw new Error(t?`Unexpected type, expected '${t}'`:"Unexpected type")}function g(e){if(d(e))throw new Error("Assertion Failed: argument is undefined or null");return e}function p(e){return"function"===typeof e}function m(e,t){const i=Math.min(e.length,t.length);for(let s=0;s<i;s++)f(e[s],t[s])}function f(e,t){if(s(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(p(t)){try{if(e instanceof t)return}catch{}if(!d(e)&&e.constructor===t)return;if(1===t.length&&!0===t.call(void 0,e))return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}i.d(t,{Et:()=>o,Gv:()=>n,Kg:()=>s,Lm:()=>c,O9:()=>h,Tn:()=>p,b0:()=>l,eU:()=>g,iu:()=>r,j:()=>u,jx:()=>m,xZ:()=>a,z:()=>d})},796:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>i.e(7642).then(i.bind(i,77642))})},908:(e,t,i)=>{"use strict";i.d(t,{As:()=>r,qg:()=>o});var s=i(81674),n=i(79400);function r(e){return JSON.stringify(e,a)}function o(e){let t=JSON.parse(e);return t=c(t),t}function a(e,t){return t instanceof RegExp?{$mid:2,source:t.source,flags:t.flags}:t}function c(e,t=0){if(!e||t>200)return e;if("object"===typeof e){switch(e.$mid){case 1:return n.r.revive(e);case 2:return new RegExp(e.source,e.flags);case 17:return new Date(e.source)}if(e instanceof s.MB||e instanceof Uint8Array)return e;if(Array.isArray(e))for(let i=0;i<e.length;++i)e[i]=c(e[i],t+1);else for(const i in e)Object.hasOwnProperty.call(e,i)&&(e[i]=c(e[i],t+1))}return e}},1019:(e,t,i)=>{!function(){"use strict";const t=i(94297),s=i(85858),n=i(76531),r=i(1449).decode,o="$value",a="$type",c="$attributes",l="$incomplete",h={string:null,number:null,boolean:null,null:null,object:null,array:null};const d="_type_tag";function u(e){if(Object.prototype.hasOwnProperty.call(e,"$attributes")&&!Object.prototype.hasOwnProperty.call(e,"$incomplete")){const t=e.$attributes[d];if("undefined"!==typeof t){const i=n.value(t),s=function(e,t){if("url"===e)return function(e){const t=e.$value,i=e.$type;if("string"===i)return{$type:"tag_value",$value:{href:t}};if("map"===i&&Object.prototype.hasOwnProperty.call(t,"href"))return{$type:"tag_value",$value:{href:n.value(t.href),text:n.value(t.text),title:n.value(t.title)}}}(t);return function(e){return{$type:e.$type,$value:e.$value}}(t)}(i,e);s&&(e.$type="tagged",e.$tag=i,e.$value=s,delete e.$attributes[d])}}}function g(e){const t={};return function(e,t){e[o]=n.hasSpecialProperty(t,o)?t[o]:t;const i=s(e[o]);if(!Object.prototype.hasOwnProperty.call(h,i))throw new Error('unipika: invalid input - $value type "'+i+'" is not supported.');if(n.hasSpecialProperty(t,a)){const i=s(t[a]);if("undefined"!==i&&"string"!==i)throw new Error('unipika: invalid input - $type must be a string instead got "'+i+'".');e[a]=t[a]}else e[a]=function(e){switch(e){case"array":return"list";case"object":return"map";default:return e}}(i)}(t,e),function(e,t){if(n.hasSpecialProperty(t,c)){const i=s(t[c]);if("object"!==i)throw new Error('unipika: invalid input - $attributes must be an object instead got "'+i+'".');e[c]=Object.assign({},t[c])}}(t,e),function(e,t){if(n.hasSpecialProperty(t,l)){const i=s(t[l]);if("boolean"!==i)throw new Error('unipika: invalid input - $attributes must be an object instead got "'+i+'".');e[l]=t[l]}}(t,e),u(t),t}function p(e,t){return Object.keys(e).map((function(i){const s=m(g(i),t);return s.$key=!0,[s,m(e[i],t)]}))}const m=function(e,i){let s;return(i=i||{}).decodeUTF8=t.parseSetting(i,"decodeUTF8",!0),(e=g(e))&&(n.hasSpecialProperty(e,c)&&(e=function(e,t){return e[c]=p(e[c],t),e}(e)),s=e[a],"map"===s?e=function(e,t){return e[o]=p(e[o],t),e}(e,i):"list"===s?e=function(e,t){return e[o]=e[o].map((function(e){return m(e,t)})),e}(e,i):"string"===s&&(e=function(e,t){try{e.$decoded_value=t.decodeUTF8?r(e[o],{allowTruncatedEnd:e[l]}):e[o]}catch(i){e.$binary=!0}return e}(e,i))),e};e.exports=m}()},1098:(e,t,i)=>{"use strict";i.d(t,{X:()=>l});var s=i(8597),n=i(51241),r=i(5662),o=i(31308),a=i(87958),c=i(38844);class l extends r.jG{static{this.ID="editor.contrib.placeholderText"}constructor(e){var t,i;super(),this._editor=e,this._editorObs=(0,c.Ud)(this._editor),this._placeholderText=this._editorObs.getOption(88),this._state=(0,o.C)({owner:this,equalsFn:n.dB},(e=>{const t=this._placeholderText.read(e);if(t&&this._editorObs.valueIsEmpty.read(e))return{placeholder:t}})),this._shouldViewBeAlive=(t=this,i=e=>void 0!==this._state.read(e)?.placeholder,(0,o.ZX)(t,((e,t)=>!0===t||i(e)))),this._view=(0,a.rm)(((e,t)=>{if(!this._shouldViewBeAlive.read(e))return;const i=(0,s.h)("div.editorPlaceholder");t.add((0,o.fm)((e=>{const t=this._state.read(e),s=void 0!==t?.placeholder;i.root.style.display=s?"block":"none",i.root.innerText=t?.placeholder??""}))),t.add((0,o.fm)((e=>{const t=this._editorObs.layoutInfo.read(e);i.root.style.left=`${t.contentLeft}px`,i.root.style.width=t.contentWidth-t.verticalScrollbarWidth+"px",i.root.style.top=`${this._editor.getTopForLineNumber(0)}px`}))),t.add((0,o.fm)((e=>{i.root.style.fontFamily=this._editorObs.getOption(49).read(e),i.root.style.fontSize=this._editorObs.getOption(52).read(e)+"px",i.root.style.lineHeight=this._editorObs.getOption(67).read(e)+"px"}))),t.add(this._editorObs.createOverlayWidget({allowEditorOverflow:!1,minContentWidthInPx:(0,o.lk)(0),position:(0,o.lk)(null),domNode:i.root}))})),this._view.recomputeInitiallyAndOnChange(this._store)}}},1155:(e,t,i)=>{"use strict";i.d(t,{m:()=>u});var s=i(59284),n=i(32084),r=i(81517),o=i(39238),a=i(98089),c=i(69220),l=i(7412);const h=(0,c.om)("tooltip"),d=["bottom","top"],u=e=>{const{children:t,content:i,disabled:c,placement:u=d,qa:g,id:p,className:m,style:f,disablePortal:_,contentClassName:v,openDelay:C=1e3,closeDelay:E}=e,[b,S]=s.useState(null),y=(0,r.d)(b,{openDelay:C,closeDelay:E,preventTriggerOnFocus:!0}),w=s.Children.only(t),R=(0,l.Q)(w),L=(0,n.N)(S,R);return s.createElement(s.Fragment,null,s.cloneElement(w,{ref:L}),b?s.createElement(o.z,{id:p,role:"tooltip",className:h(null,m),style:f,open:y&&!c,placement:u,anchorRef:{current:b},disablePortal:_,disableEscapeKeyDown:!0,disableOutsideClick:!0,disableLayer:!0,qa:g},s.createElement("div",{className:h("content",v)},s.createElement(a.E,{variant:"body-short",color:"complementary"},i))):null)}},1226:(e,t,i)=>{"use strict";i.d(t,{g:()=>h});var s=i(91508),n=i(15092),r=i(32799),o=i(1245),a=i(94564),c=i(36677),l=i(83069);class h{static deleteRight(e,t,i,s){const r=[];let o=3!==e;for(let l=0,h=s.length;l<h;l++){const e=s[l];let h=e;if(h.isEmpty()){const s=e.getPosition(),n=a.I.right(t,i,s);h=new c.Q(n.lineNumber,n.column,s.lineNumber,s.column)}h.isEmpty()?r[l]=null:(h.startLineNumber!==h.endLineNumber&&(o=!0),r[l]=new n.iu(h,""))}return[o,r]}static isAutoClosingPairDelete(e,t,i,s,n,o,a){if("never"===t&&"never"===i)return!1;if("never"===e)return!1;for(let c=0,l=o.length;c<l;c++){const l=o[c],h=l.getPosition();if(!l.isEmpty())return!1;const d=n.getLineContent(h.lineNumber);if(h.column<2||h.column>=d.length+1)return!1;const u=d.charAt(h.column-2),g=s.get(u);if(!g)return!1;if((0,r.vG)(u)){if("never"===i)return!1}else if("never"===t)return!1;const p=d.charAt(h.column-1);let m=!1;for(const e of g)e.open===u&&e.close===p&&(m=!0);if(!m)return!1;if("auto"===e){let e=!1;for(let t=0,i=a.length;t<i;t++){const i=a[t];if(h.lineNumber===i.startLineNumber&&h.column===i.startColumn){e=!0;break}}if(!e)return!1}}return!0}static _runAutoClosingPairDelete(e,t,i){const s=[];for(let r=0,o=i.length;r<o;r++){const e=i[r].getPosition(),t=new c.Q(e.lineNumber,e.column-1,e.lineNumber,e.column+1);s[r]=new n.iu(t,"")}return[!0,s]}static deleteLeft(e,t,i,s,r){if(this.isAutoClosingPairDelete(t.autoClosingDelete,t.autoClosingBrackets,t.autoClosingQuotes,t.autoClosingPairs.autoClosingPairsOpenByEnd,i,s,r))return this._runAutoClosingPairDelete(t,i,s);const o=[];let a=2!==e;for(let c=0,l=s.length;c<l;c++){const e=h.getDeleteRange(s[c],i,t);e.isEmpty()?o[c]=null:(e.startLineNumber!==e.endLineNumber&&(a=!0),o[c]=new n.iu(e,""))}return[a,o]}static getDeleteRange(e,t,i){if(!e.isEmpty())return e;const n=e.getPosition();if(i.useTabStops&&n.column>1){const e=t.getLineContent(n.lineNumber),r=s.HG(e),a=-1===r?e.length+1:r+1;if(n.column<=a){const e=i.visibleColumnFromColumn(t,n),s=o.A.prevIndentTabStop(e,i.indentSize),r=i.columnFromVisibleColumn(t,n.lineNumber,s);return new c.Q(n.lineNumber,r,n.lineNumber,n.column)}}return c.Q.fromPositions(h.getPositionAfterDeleteLeft(n,t),n)}static getPositionAfterDeleteLeft(e,t){if(e.column>1){const i=s.Wd(e.column-1,t.getLineContent(e.lineNumber));return e.with(void 0,i+1)}if(e.lineNumber>1){const i=e.lineNumber-1;return new l.y(i,t.getLineMaxColumn(i))}return e}static cut(e,t,i){const s=[];let o=null;i.sort(((e,t)=>l.y.compare(e.getStartPosition(),t.getEndPosition())));for(let r=0,a=i.length;r<a;r++){const a=i[r];if(a.isEmpty())if(e.emptySelectionClipboard){const e=a.getPosition();let i,l,h,d;e.lineNumber<t.getLineCount()?(i=e.lineNumber,l=1,h=e.lineNumber+1,d=1):e.lineNumber>1&&o?.endLineNumber!==e.lineNumber?(i=e.lineNumber-1,l=t.getLineMaxColumn(e.lineNumber-1),h=e.lineNumber,d=t.getLineMaxColumn(e.lineNumber)):(i=e.lineNumber,l=1,h=e.lineNumber,d=t.getLineMaxColumn(e.lineNumber));const u=new c.Q(i,l,h,d);o=u,u.isEmpty()?s[r]=null:s[r]=new n.iu(u,"")}else s[r]=null;else s[r]=new n.iu(a,"")}return new r.vY(0,s,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}}},1245:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(91508);class n{static _nextVisibleColumn(e,t,i){return 9===e?n.nextRenderTabStop(t,i):s.ne(e)||s.Ss(e)?t+2:t+1}static visibleColumnFromColumn(e,t,i){const n=Math.min(t-1,e.length),r=e.substring(0,n),o=new s.km(r);let a=0;for(;!o.eol();){const e=s.Z5(r,n,o.offset);o.nextGraphemeLength(),a=this._nextVisibleColumn(e,a,i)}return a}static columnFromVisibleColumn(e,t,i){if(t<=0)return 1;const n=e.length,r=new s.km(e);let o=0,a=1;for(;!r.eol();){const c=s.Z5(e,n,r.offset);r.nextGraphemeLength();const l=this._nextVisibleColumn(c,o,i),h=r.offset+1;if(l>=t){return l-t<t-o?h:a}o=l,a=h}return n+1}static nextRenderTabStop(e,t){return e+t-e%t}static nextIndentTabStop(e,t){return e+t-e%t}static prevRenderTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}static prevIndentTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}}},1449:(e,t,i)=>{!function(){"use strict";const t=i(59170);e.exports={encode:t.encode,decode:t.decode}}()},1592:(e,t,i)=>{"use strict";function s(e,t,i){return Math.min(Math.max(e,t),i)}i.d(t,{Uq:()=>n,mu:()=>r,qE:()=>s});class n{constructor(){this._n=1,this._val=0}update(e){return this._val=this._val+(e-this._val)/this._n,this._n+=1,this._val}get value(){return this._val}}class r{constructor(e){this._n=0,this._val=0,this._values=[],this._index=0,this._sum=0,this._values=new Array(e),this._values.fill(0,0,e)}update(e){const t=this._values[this._index];return this._values[this._index]=e,this._index=(this._index+1)%this._values.length,this._sum-=t,this._sum+=e,this._n<this._values.length&&(this._n+=1),this._val=this._sum/this._n,this._val}get value(){return this._val}}},1646:(e,t,i)=>{"use strict";i.d(t,{Fd:()=>h,Gv:()=>y,rC:()=>S});var s=i(25890),n=i(41234),r=i(631),o=i(78209),a=i(84001),c=i(78748),l=i(46359);const h={Configuration:"base.contributions.configuration"},d={properties:{},patternProperties:{}},u={properties:{},patternProperties:{}},g={properties:{},patternProperties:{}},p={properties:{},patternProperties:{}},m={properties:{},patternProperties:{}},f={properties:{},patternProperties:{}},_="vscode://schemas/settings/resourceLanguage",v=l.O.as(c.F.JSONContribution);const C="\\[([^\\]]+)\\]",E=new RegExp(C,"g"),b=`^(${C})+$`,S=new RegExp(b);function y(e){const t=[];if(S.test(e)){let i=E.exec(e);for(;i?.length;){const s=i[1].trim();s&&t.push(s),i=E.exec(e)}}return(0,s.dM)(t)}const w=new class{constructor(){this.registeredConfigurationDefaults=[],this.overrideIdentifiers=new Set,this._onDidSchemaChange=new n.vl,this._onDidUpdateConfiguration=new n.vl,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:o.kg("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!0,allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.policyConfigurations=new Map,this.excludedConfigurationProperties={},v.registerSchema(_,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(e,t=!0){this.registerConfigurations([e],t)}registerConfigurations(e,t=!0){const i=new Set;this.doRegisterConfigurations(e,t,i),v.registerSchema(_,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:i})}registerDefaultConfigurations(e){const t=new Set;this.doRegisterDefaultConfigurations(e,t),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:t,defaultsOverrides:!0})}doRegisterDefaultConfigurations(e,t){this.registeredConfigurationDefaults.push(...e);const i=[];for(const{overrides:s,source:n}of e)for(const e in s){t.add(e);const r=this.configurationDefaultsOverrides.get(e)??this.configurationDefaultsOverrides.set(e,{configurationDefaultOverrides:[]}).get(e),o=s[e];if(r.configurationDefaultOverrides.push({value:o,source:n}),S.test(e)){const t=this.mergeDefaultConfigurationsForOverrideIdentifier(e,o,n,r.configurationDefaultOverrideValue);if(!t)continue;r.configurationDefaultOverrideValue=t,this.updateDefaultOverrideProperty(e,t,n),i.push(...y(e))}else{const t=this.mergeDefaultConfigurationsForConfigurationProperty(e,o,n,r.configurationDefaultOverrideValue);if(!t)continue;r.configurationDefaultOverrideValue=t;const i=this.configurationProperties[e];i&&(this.updatePropertyDefaultValue(e,i),this.updateSchema(e,i))}}this.doRegisterOverrideIdentifiers(i)}updateDefaultOverrideProperty(e,t,i){const s={type:"object",default:t.value,description:o.kg("defaultLanguageConfiguration.description","Configure settings to be overridden for the {0} language.",(0,a.Mo)(e)),$ref:_,defaultDefaultValue:t.value,source:i,defaultValueSource:i};this.configurationProperties[e]=s,this.defaultLanguageConfigurationOverridesNode.properties[e]=s}mergeDefaultConfigurationsForOverrideIdentifier(e,t,i,s){const n=s?.value||{},o=s?.source??new Map;if(o instanceof Map){for(const e of Object.keys(t)){const s=t[e];if(r.Gv(s)&&(r.b0(n[e])||r.Gv(n[e]))){if(n[e]={...n[e]??{},...s},i)for(const t in s)o.set(`${e}.${t}`,i)}else n[e]=s,i?o.set(e,i):o.delete(e)}return{value:n,source:o}}console.error("objectConfigurationSources is not a Map")}mergeDefaultConfigurationsForConfigurationProperty(e,t,i,s){const n=this.configurationProperties[e],o=s?.value??n?.defaultDefaultValue;let a=i;if(r.Gv(t)&&(void 0!==n&&"object"===n.type||void 0===n&&(r.b0(o)||r.Gv(o)))){if(a=s?.source??new Map,!(a instanceof Map))return void console.error("defaultValueSource is not a Map");for(const s in t)i&&a.set(`${e}.${s}`,i);t={...r.Gv(o)?o:{},...t}}return{value:t,source:a}}registerOverrideIdentifiers(e){this.doRegisterOverrideIdentifiers(e),this._onDidSchemaChange.fire()}doRegisterOverrideIdentifiers(e){for(const t of e)this.overrideIdentifiers.add(t);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(e,t,i){e.forEach((e=>{this.validateAndRegisterProperties(e,t,e.extensionInfo,e.restrictedProperties,void 0,i),this.configurationContributors.push(e),this.registerJSONConfiguration(e)}))}validateAndRegisterProperties(e,t=!0,i,s,n=3,o){n=r.z(e.scope)?n:e.scope;const a=e.properties;if(a)for(const l in a){const e=a[l];t&&R(l,e)?delete a[l]:(e.source=i,e.defaultDefaultValue=a[l].default,this.updatePropertyDefaultValue(l,e),S.test(l)?e.scope=void 0:(e.scope=r.z(e.scope)?n:e.scope,e.restricted=r.z(e.restricted)?!!s?.includes(l):e.restricted),!a[l].hasOwnProperty("included")||a[l].included?(this.configurationProperties[l]=a[l],a[l].policy?.name&&this.policyConfigurations.set(a[l].policy.name,l),!a[l].deprecationMessage&&a[l].markdownDeprecationMessage&&(a[l].deprecationMessage=a[l].markdownDeprecationMessage),o.add(l)):(this.excludedConfigurationProperties[l]=a[l],delete a[l]))}const c=e.allOf;if(c)for(const r of c)this.validateAndRegisterProperties(r,t,i,s,n,o)}getConfigurationProperties(){return this.configurationProperties}getPolicyConfigurations(){return this.policyConfigurations}registerJSONConfiguration(e){const t=e=>{const i=e.properties;if(i)for(const t in i)this.updateSchema(t,i[t]);const s=e.allOf;s?.forEach(t)};t(e)}updateSchema(e,t){switch(d.properties[e]=t,t.scope){case 1:u.properties[e]=t;break;case 2:g.properties[e]=t;break;case 6:p.properties[e]=t;break;case 3:m.properties[e]=t;break;case 4:f.properties[e]=t;break;case 5:f.properties[e]=t,this.resourceLanguageSettingsSchema.properties[e]=t}}updateOverridePropertyPatternKey(){for(const e of this.overrideIdentifiers.values()){const t=`[${e}]`,i={type:"object",description:o.kg("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:o.kg("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:_};this.updatePropertyDefaultValue(t,i),d.properties[t]=i,u.properties[t]=i,g.properties[t]=i,p.properties[t]=i,m.properties[t]=i,f.properties[t]=i}}registerOverridePropertyPatternKey(){const e={type:"object",description:o.kg("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:o.kg("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:_};d.patternProperties[b]=e,u.patternProperties[b]=e,g.patternProperties[b]=e,p.patternProperties[b]=e,m.patternProperties[b]=e,f.patternProperties[b]=e,this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,t){const i=this.configurationDefaultsOverrides.get(e)?.configurationDefaultOverrideValue;let s,n;!i||t.disallowConfigurationDefault&&i.source||(s=i.value,n=i.source),r.b0(s)&&(s=t.defaultDefaultValue,n=void 0),r.b0(s)&&(s=function(e){switch(Array.isArray(e)?e[0]:e){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}(t.type)),t.default=s,t.defaultValueSource=n}};function R(e,t){return e.trim()?S.test(e)?o.kg("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e):void 0!==w.getConfigurationProperties()[e]?o.kg("config.property.duplicate","Cannot register '{0}'. This property is already registered.",e):t.policy?.name&&void 0!==w.getPolicyConfigurations().get(t.policy?.name)?o.kg("config.policy.duplicate","Cannot register '{0}'. The associated policy {1} is already registered with {2}.",e,t.policy?.name,w.getPolicyConfigurations().get(t.policy?.name)):null:o.kg("config.property.empty","Cannot register an empty property")}l.O.add(h.Configuration,w)},1956:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.5 3h7A1.5 1.5 0 0 1 13 4.5v7a1.5 1.5 0 0 1-1.5 1.5h-7A1.5 1.5 0 0 1 3 11.5v-7A1.5 1.5 0 0 1 4.5 3m-3 1.5a3 3 0 0 1 3-3h7a3 3 0 0 1 3 3v7a3 3 0 0 1-3 3h-7a3 3 0 0 1-3-3zm10.092 1.46a.75.75 0 0 0-1.184-.92L7.43 8.869l-1.4-1.4A.75.75 0 0 0 4.97 8.53l2 2a.75.75 0 0 0 1.122-.07z",clipRule:"evenodd"}))},2068:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>i.e(9842).then(i.bind(i,79842))})},2183:(e,t,i)=>{"use strict";var s=i(5662),n=i(98067),r=i(31450),o=i(83069),a=i(36677),c=i(75326),l=i(87289);class h{constructor(e,t,i){this.selection=e,this.targetPosition=t,this.copy=i,this.targetSelection=null}getEditOperations(e,t){const i=e.getValueInRange(this.selection);this.copy||t.addEditOperation(this.selection,null),t.addEditOperation(new a.Q(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),i),!this.selection.containsPosition(this.targetPosition)||this.copy&&(this.selection.getEndPosition().equals(this.targetPosition)||this.selection.getStartPosition().equals(this.targetPosition))?this.copy?this.targetSelection=new c.L(this.targetPosition.lineNumber,this.targetPosition.column,this.selection.endLineNumber-this.selection.startLineNumber+this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.targetPosition.lineNumber>this.selection.endLineNumber?this.targetSelection=new c.L(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.targetPosition.lineNumber<this.selection.endLineNumber?this.targetSelection=new c.L(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber+this.selection.endLineNumber-this.selection.startLineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.selection.endColumn<=this.targetPosition.column?this.targetSelection=new c.L(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,(this.selection.startLineNumber,this.selection.endLineNumber,this.targetPosition.column-this.selection.endColumn+this.selection.startColumn),this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column:this.selection.endColumn):this.targetSelection=new c.L(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column+this.selection.endColumn-this.selection.startColumn):this.targetSelection=this.selection}computeCursorState(e,t){return this.targetSelection}}function d(e){return n.zx?e.altKey:e.ctrlKey}class u extends s.jG{static{this.ID="editor.contrib.dragAndDrop"}static{this.TRIGGER_KEY_VALUE=n.zx?6:5}constructor(e){super(),this._editor=e,this._dndDecorationIds=this._editor.createDecorationsCollection(),this._register(this._editor.onMouseDown((e=>this._onEditorMouseDown(e)))),this._register(this._editor.onMouseUp((e=>this._onEditorMouseUp(e)))),this._register(this._editor.onMouseDrag((e=>this._onEditorMouseDrag(e)))),this._register(this._editor.onMouseDrop((e=>this._onEditorMouseDrop(e)))),this._register(this._editor.onMouseDropCanceled((()=>this._onEditorMouseDropCanceled()))),this._register(this._editor.onKeyDown((e=>this.onEditorKeyDown(e)))),this._register(this._editor.onKeyUp((e=>this.onEditorKeyUp(e)))),this._register(this._editor.onDidBlurEditorWidget((()=>this.onEditorBlur()))),this._register(this._editor.onDidBlurEditorText((()=>this.onEditorBlur()))),this._mouseDown=!1,this._modifierPressed=!1,this._dragSelection=null}onEditorBlur(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1}onEditorKeyDown(e){this._editor.getOption(35)&&!this._editor.getOption(22)&&(d(e)&&(this._modifierPressed=!0),this._mouseDown&&d(e)&&this._editor.updateOptions({mouseStyle:"copy"}))}onEditorKeyUp(e){this._editor.getOption(35)&&!this._editor.getOption(22)&&(d(e)&&(this._modifierPressed=!1),this._mouseDown&&e.keyCode===u.TRIGGER_KEY_VALUE&&this._editor.updateOptions({mouseStyle:"default"}))}_onEditorMouseDown(e){this._mouseDown=!0}_onEditorMouseUp(e){this._mouseDown=!1,this._editor.updateOptions({mouseStyle:"text"})}_onEditorMouseDrag(e){const t=e.target;if(null===this._dragSelection){const e=(this._editor.getSelections()||[]).filter((e=>t.position&&e.containsPosition(t.position)));if(1!==e.length)return;this._dragSelection=e[0]}d(e.event)?this._editor.updateOptions({mouseStyle:"copy"}):this._editor.updateOptions({mouseStyle:"default"}),t.position&&(this._dragSelection.containsPosition(t.position)?this._removeDecoration():this.showAt(t.position))}_onEditorMouseDropCanceled(){this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}_onEditorMouseDrop(e){if(e.target&&(this._hitContent(e.target)||this._hitMargin(e.target))&&e.target.position){const t=new o.y(e.target.position.lineNumber,e.target.position.column);if(null===this._dragSelection){let i=null;if(e.event.shiftKey){const e=this._editor.getSelection();if(e){const{selectionStartLineNumber:s,selectionStartColumn:n}=e;i=[new c.L(s,n,t.lineNumber,t.column)]}}else i=(this._editor.getSelections()||[]).map((e=>e.containsPosition(t)?new c.L(t.lineNumber,t.column,t.lineNumber,t.column):e));this._editor.setSelections(i||[],"mouse",3)}else(!this._dragSelection.containsPosition(t)||(d(e.event)||this._modifierPressed)&&(this._dragSelection.getEndPosition().equals(t)||this._dragSelection.getStartPosition().equals(t)))&&(this._editor.pushUndoStop(),this._editor.executeCommand(u.ID,new h(this._dragSelection,t,d(e.event)||this._modifierPressed)),this._editor.pushUndoStop())}this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}static{this._DECORATION_OPTIONS=l.kI.register({description:"dnd-target",className:"dnd-target"})}showAt(e){this._dndDecorationIds.set([{range:new a.Q(e.lineNumber,e.column,e.lineNumber,e.column),options:u._DECORATION_OPTIONS}]),this._editor.revealPosition(e,1)}_removeDecoration(){this._dndDecorationIds.clear()}_hitContent(e){return 6===e.type||7===e.type}_hitMargin(e){return 2===e.type||3===e.type||4===e.type}dispose(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1,super.dispose()}}(0,r.HW)(u.ID,u,2)},2299:(e,t,i)=>{"use strict";i.d(t,{M:()=>n});var s=i(41234);const n=new class{constructor(){this._onDidChange=new s.vl,this.onDidChange=this._onDidChange.event,this._enabled=!0}get enabled(){return this._enabled}enable(){this._enabled=!0,this._onDidChange.fire()}disable(){this._enabled=!1,this._onDidChange.fire()}}},2539:e=>{e.exports=function(){function e(e,t){const i=e.$value;return"function"===typeof t.customNumberFormatter?t.customNumberFormatter(e.$value,e.$type):"yson"===t.format?i+"u":i}return e.isScalar=!0,e}},3254:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>i.e(9176).then(i.bind(i,99176))})},3730:(e,t,i)=>{"use strict";i.d(t,{CN:()=>u,EP:()=>l,P8:()=>d});var s=i(64383),n=i(5662),r=i(83069),o=i(36677),a=i(36456),c=i(79400);class l{constructor(e,t){this.range=e,this.direction=t}}class h{constructor(e,t,i){this.hint=e,this.anchor=t,this.provider=i,this._isResolved=!1}with(e){const t=new h(this.hint,e.anchor,this.provider);return t._isResolved=this._isResolved,t._currentResolve=this._currentResolve,t}async resolve(e){if("function"===typeof this.provider.resolveInlayHint){if(this._currentResolve){if(await this._currentResolve,e.isCancellationRequested)return;return this.resolve(e)}this._isResolved||(this._currentResolve=this._doResolve(e).finally((()=>this._currentResolve=void 0))),await this._currentResolve}}async _doResolve(e){try{const t=await Promise.resolve(this.provider.resolveInlayHint(this.hint,e));this.hint.tooltip=t?.tooltip??this.hint.tooltip,this.hint.label=t?.label??this.hint.label,this.hint.textEdits=t?.textEdits??this.hint.textEdits,this._isResolved=!0}catch(t){(0,s.M_)(t),this._isResolved=!1}}}class d{static{this._emptyInlayHintList=Object.freeze({dispose(){},hints:[]})}static async create(e,t,i,n){const r=[],o=e.ordered(t).reverse().map((e=>i.map((async i=>{try{const s=await e.provideInlayHints(t,i,n);(s?.hints.length||e.onDidChangeInlayHints)&&r.push([s??d._emptyInlayHintList,e])}catch(o){(0,s.M_)(o)}}))));if(await Promise.all(o.flat()),n.isCancellationRequested||t.isDisposed())throw new s.AL;return new d(i,r,t)}constructor(e,t,i){this._disposables=new n.Cm,this.ranges=e,this.provider=new Set;const s=[];for(const[n,r]of t){this._disposables.add(n),this.provider.add(r);for(const e of n.hints){const t=i.validatePosition(e.position);let n="before";const a=d._getRangeAtPosition(i,t);let c;a.getStartPosition().isBefore(t)?(c=o.Q.fromPositions(a.getStartPosition(),t),n="after"):(c=o.Q.fromPositions(t,a.getEndPosition()),n="before"),s.push(new h(e,new l(c,n),r))}}this.items=s.sort(((e,t)=>r.y.compare(e.hint.position,t.hint.position)))}dispose(){this._disposables.dispose()}static _getRangeAtPosition(e,t){const i=t.lineNumber,s=e.getWordAtPosition(t);if(s)return new o.Q(i,s.startColumn,i,s.endColumn);e.tokenization.tokenizeIfCheap(i);const n=e.tokenization.getLineTokens(i),r=t.column-1,a=n.findTokenIndexAtOffset(r);let c=n.getStartOffset(a),l=n.getEndOffset(a);return l-c===1&&(c===r&&a>1?(c=n.getStartOffset(a-1),l=n.getEndOffset(a-1)):l===r&&a<n.getCount()-1&&(c=n.getStartOffset(a+1),l=n.getEndOffset(a+1))),new o.Q(i,c+1,i,l+1)}}function u(e){return c.r.from({scheme:a.ny.command,path:e.id,query:e.arguments&&encodeURIComponent(JSON.stringify(e.arguments))}).toString()}},3828:(e,t,i)=>{"use strict";i.d(t,{x:()=>r});var s=i(8597),n=i(91508);class r{constructor(e,t,i){this.options=t,this.styles=i,this.count=0,this.element=(0,s.BC)(e,(0,s.$)(".monaco-count-badge")),this.countFormat=this.options.countFormat||"{0}",this.titleFormat=this.options.titleFormat||"",this.setCount(this.options.count||0)}setCount(e){this.count=e,this.render()}setTitleFormat(e){this.titleFormat=e,this.render()}render(){this.element.textContent=(0,n.GP)(this.countFormat,this.count),this.element.title=(0,n.GP)(this.titleFormat,this.count),this.element.style.backgroundColor=this.styles.badgeBackground??"",this.element.style.color=this.styles.badgeForeground??"",this.styles.badgeBorder&&(this.element.style.border=`1px solid ${this.styles.badgeBorder}`)}}},4360:(e,t,i)=>{"use strict";i.d(t,{T:()=>Bt});var s=i(8597),n=i(46041),r=i(64383),o=i(41234),a=i(5662),c=i(31308),l=i(87958),h=i(31450),d=i(80301),u=i(55190),g=i(52555),p=i(80789),m=i(11799),f=i(31295),_=i(36921),v=i(25890),C=i(10350),E=i(25689),b=i(73157),S=i(92368),y=i(87908),w=i(86571),R=i(74444),L=i(83069),T=i(36677),x=i(87723),k=i(10154),A=i(87469),N=i(35600),I=i(92896),O=i(78209),D=i(87213),M=i(63591),P=i(61394),F=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},U=function(e,t){return function(i,s){t(i,s,e)}};const H=(0,P.pU)("diff-review-insert",C.W.add,(0,O.kg)("accessibleDiffViewerInsertIcon","Icon for 'Insert' in accessible diff viewer.")),B=(0,P.pU)("diff-review-remove",C.W.remove,(0,O.kg)("accessibleDiffViewerRemoveIcon","Icon for 'Remove' in accessible diff viewer.")),W=(0,P.pU)("diff-review-close",C.W.close,(0,O.kg)("accessibleDiffViewerCloseIcon","Icon for 'Close' in accessible diff viewer."));let V=class extends a.jG{static{this._ttPolicy=(0,p.H)("diffReview",{createHTML:e=>e})}constructor(e,t,i,s,n,r,o,a,l){super(),this._parentNode=e,this._visible=t,this._setVisible=i,this._canClose=s,this._width=n,this._height=r,this._diffs=o,this._models=a,this._instantiationService=l,this._state=(0,c.rm)(this,((e,t)=>{const i=this._visible.read(e);if(this._parentNode.style.visibility=i?"visible":"hidden",!i)return null;const s=t.add(this._instantiationService.createInstance(z,this._diffs,this._models,this._setVisible,this._canClose));return{model:s,view:t.add(this._instantiationService.createInstance(X,this._parentNode,s,this._width,this._height,this._models))}})).recomputeInitiallyAndOnChange(this._store)}next(){(0,c.Rn)((e=>{const t=this._visible.get();this._setVisible(!0,e),t&&this._state.get().model.nextGroup(e)}))}prev(){(0,c.Rn)((e=>{this._setVisible(!0,e),this._state.get().model.previousGroup(e)}))}close(){(0,c.Rn)((e=>{this._setVisible(!1,e)}))}};V=F([U(8,M._Y)],V);let z=class extends a.jG{constructor(e,t,i,s,n){super(),this._diffs=e,this._models=t,this._setVisible=i,this.canClose=s,this._accessibilitySignalService=n,this._groups=(0,c.FY)(this,[]),this._currentGroupIdx=(0,c.FY)(this,0),this._currentElementIdx=(0,c.FY)(this,0),this.groups=this._groups,this.currentGroup=this._currentGroupIdx.map(((e,t)=>this._groups.read(t)[e])),this.currentGroupIndex=this._currentGroupIdx,this.currentElement=this._currentElementIdx.map(((e,t)=>this.currentGroup.read(t)?.lines[e])),this._register((0,c.fm)((e=>{const t=this._diffs.read(e);if(!t)return void this._groups.set([],void 0);const i=function(e,t,i){const s=[];for(const n of(0,v.n)(e,((e,t)=>t.modified.startLineNumber-e.modified.endLineNumberExclusive<2*G))){const e=[];e.push(new Y);const r=new w.M(Math.max(1,n[0].original.startLineNumber-G),Math.min(n[n.length-1].original.endLineNumberExclusive+G,t+1)),o=new w.M(Math.max(1,n[0].modified.startLineNumber-G),Math.min(n[n.length-1].modified.endLineNumberExclusive+G,i+1));(0,v.pN)(n,((t,i)=>{const s=new w.M(t?t.original.endLineNumberExclusive:r.startLineNumber,i?i.original.startLineNumber:r.endLineNumberExclusive),n=new w.M(t?t.modified.endLineNumberExclusive:o.startLineNumber,i?i.modified.startLineNumber:o.endLineNumberExclusive);s.forEach((t=>{e.push(new Q(t,n.startLineNumber+(t-s.startLineNumber)))})),i&&(i.original.forEach((t=>{e.push(new q(i,t))})),i.modified.forEach((t=>{e.push(new $(i,t))})))}));const a=n[0].modified.join(n[n.length-1].modified),c=n[0].original.join(n[n.length-1].original);s.push(new K(new x.WL(a,c),e))}return s}(t,this._models.getOriginalModel().getLineCount(),this._models.getModifiedModel().getLineCount());(0,c.Rn)((e=>{const t=this._models.getModifiedPosition();if(t){const s=i.findIndex((e=>t?.lineNumber<e.range.modified.endLineNumberExclusive));-1!==s&&this._currentGroupIdx.set(s,e)}this._groups.set(i,e)}))}))),this._register((0,c.fm)((e=>{const t=this.currentElement.read(e);t?.type===j.Deleted?this._accessibilitySignalService.playSignal(D.Rh.diffLineDeleted,{source:"accessibleDiffViewer.currentElementChanged"}):t?.type===j.Added&&this._accessibilitySignalService.playSignal(D.Rh.diffLineInserted,{source:"accessibleDiffViewer.currentElementChanged"})}))),this._register((0,c.fm)((e=>{const t=this.currentElement.read(e);if(t&&t.type!==j.Header){const e=t.modifiedLineNumber??t.diff.modified.startLineNumber;this._models.modifiedSetSelection(T.Q.fromPositions(new L.y(e,1)))}})))}_goToGroupDelta(e,t){const i=this.groups.get();!i||i.length<=1||(0,c.PO)(t,(t=>{this._currentGroupIdx.set(R.L.ofLength(i.length).clipCyclic(this._currentGroupIdx.get()+e),t),this._currentElementIdx.set(0,t)}))}nextGroup(e){this._goToGroupDelta(1,e)}previousGroup(e){this._goToGroupDelta(-1,e)}_goToLineDelta(e){const t=this.currentGroup.get();!t||t.lines.length<=1||(0,c.Rn)((i=>{this._currentElementIdx.set(R.L.ofLength(t.lines.length).clip(this._currentElementIdx.get()+e),i)}))}goToNextLine(){this._goToLineDelta(1)}goToPreviousLine(){this._goToLineDelta(-1)}goToLine(e){const t=this.currentGroup.get();if(!t)return;const i=t.lines.indexOf(e);-1!==i&&(0,c.Rn)((e=>{this._currentElementIdx.set(i,e)}))}revealCurrentElementInEditor(){if(!this.canClose.get())return;this._setVisible(!1,void 0);const e=this.currentElement.get();e&&(e.type===j.Deleted?this._models.originalReveal(T.Q.fromPositions(new L.y(e.originalLineNumber,1))):this._models.modifiedReveal(e.type!==j.Header?T.Q.fromPositions(new L.y(e.modifiedLineNumber,1)):void 0))}close(){this.canClose.get()&&(this._setVisible(!1,void 0),this._models.modifiedFocus())}};z=F([U(4,D.Nt)],z);const G=3;var j;!function(e){e[e.Header=0]="Header",e[e.Unchanged=1]="Unchanged",e[e.Deleted=2]="Deleted",e[e.Added=3]="Added"}(j||(j={}));class K{constructor(e,t){this.range=e,this.lines=t}}class Y{constructor(){this.type=j.Header}}class q{constructor(e,t){this.diff=e,this.originalLineNumber=t,this.type=j.Deleted,this.modifiedLineNumber=void 0}}class ${constructor(e,t){this.diff=e,this.modifiedLineNumber=t,this.type=j.Added,this.originalLineNumber=void 0}}class Q{constructor(e,t){this.originalLineNumber=e,this.modifiedLineNumber=t,this.type=j.Unchanged}}let X=class extends a.jG{constructor(e,t,i,n,r,o){super(),this._element=e,this._model=t,this._width=i,this._height=n,this._models=r,this._languageService=o,this.domNode=this._element,this.domNode.className="monaco-component diff-review monaco-editor-background";const l=document.createElement("div");l.className="diff-review-actions",this._actionBar=this._register(new m.E(l)),this._register((0,c.fm)((e=>{this._actionBar.clear(),this._model.canClose.read(e)&&this._actionBar.push(new _.rc("diffreview.close",(0,O.kg)("label.close","Close"),"close-diff-review "+E.L.asClassName(W),!0,(async()=>t.close())),{label:!1,icon:!0})}))),this._content=document.createElement("div"),this._content.className="diff-review-content",this._content.setAttribute("role","code"),this._scrollbar=this._register(new f.MU(this._content,{})),(0,s.Ln)(this.domNode,this._scrollbar.getDomNode(),l),this._register((0,c.fm)((e=>{this._height.read(e),this._width.read(e),this._scrollbar.scanDomNode()}))),this._register((0,a.s)((()=>{(0,s.Ln)(this.domNode)}))),this._register((0,S.AV)(this.domNode,{width:this._width,height:this._height})),this._register((0,S.AV)(this._content,{width:this._width,height:this._height})),this._register((0,c.yC)(((e,t)=>{this._model.currentGroup.read(e),this._render(t)}))),this._register((0,s.b2)(this.domNode,"keydown",(e=>{(e.equals(18)||e.equals(2066)||e.equals(530))&&(e.preventDefault(),this._model.goToNextLine()),(e.equals(16)||e.equals(2064)||e.equals(528))&&(e.preventDefault(),this._model.goToPreviousLine()),(e.equals(9)||e.equals(2057)||e.equals(521)||e.equals(1033))&&(e.preventDefault(),this._model.close()),(e.equals(10)||e.equals(3))&&(e.preventDefault(),this._model.revealCurrentElementInEditor())})))}_render(e){const t=this._models.getOriginalOptions(),i=this._models.getModifiedOptions(),n=document.createElement("div");n.className="diff-review-table",n.setAttribute("role","list"),n.setAttribute("aria-label",(0,O.kg)("ariaLabel","Accessible Diff Viewer. Use arrow up and down to navigate.")),(0,b.M)(n,i.get(50)),(0,s.Ln)(this._content,n);const r=this._models.getOriginalModel(),o=this._models.getModifiedModel();if(!r||!o)return;const a=r.getOptions(),l=o.getOptions(),h=i.get(67),d=this._model.currentGroup.get();for(const u of d?.lines||[]){if(!d)break;let g;if(u.type===j.Header){const e=document.createElement("div");e.className="diff-review-row",e.setAttribute("role","listitem");const t=d.range,i=this._model.currentGroupIndex.get(),s=this._model.groups.get().length,n=e=>0===e?(0,O.kg)("no_lines_changed","no lines changed"):1===e?(0,O.kg)("one_line_changed","1 line changed"):(0,O.kg)("more_lines_changed","{0} lines changed",e),r=n(t.original.length),o=n(t.modified.length);e.setAttribute("aria-label",(0,O.kg)({key:"header",comment:["This is the ARIA label for a git diff header.","A git diff header looks like this: @@ -154,12 +159,39 @@.","That encodes that at original line 154 (which is now line 159), 12 lines were removed/changed with 39 lines.","Variables 0 and 1 refer to the diff index out of total number of diffs.","Variables 2 and 4 will be numbers (a line number).",'Variables 3 and 5 will be "no lines changed", "1 line changed" or "X lines changed", localized separately.']},"Difference {0} of {1}: original line {2}, {3}, modified line {4}, {5}",i+1,s,t.original.startLineNumber,r,t.modified.startLineNumber,o));const a=document.createElement("div");a.className="diff-review-cell diff-review-summary",a.appendChild(document.createTextNode(`${i+1}/${s}: @@ -${t.original.startLineNumber},${t.original.length} +${t.modified.startLineNumber},${t.modified.length} @@`)),e.appendChild(a),g=e}else g=this._createRow(u,h,this._width.get(),t,r,a,i,o,l);n.appendChild(g);const p=(0,c.un)((e=>this._model.currentElement.read(e)===u));e.add((0,c.fm)((e=>{const t=p.read(e);g.tabIndex=t?0:-1,t&&g.focus()}))),e.add((0,s.ko)(g,"focus",(()=>{this._model.goToLine(u)})))}this._scrollbar.scanDomNode()}_createRow(e,t,i,s,n,r,o,a,c){const l=s.get(146),h=l.glyphMarginWidth+l.lineNumbersWidth,d=o.get(146),u=10+d.glyphMarginWidth+d.lineNumbersWidth;let g="diff-review-row",p="";let m=null;switch(e.type){case j.Added:g="diff-review-row line-insert",p=" char-insert",m=H;break;case j.Deleted:g="diff-review-row line-delete",p=" char-delete",m=B}const f=document.createElement("div");f.style.minWidth=i+"px",f.className=g,f.setAttribute("role","listitem"),f.ariaLevel="";const _=document.createElement("div");_.className="diff-review-cell",_.style.height=`${t}px`,f.appendChild(_);const v=document.createElement("span");v.style.width=h+"px",v.style.minWidth=h+"px",v.className="diff-review-line-number"+p,void 0!==e.originalLineNumber?v.appendChild(document.createTextNode(String(e.originalLineNumber))):v.innerText="\xa0",_.appendChild(v);const C=document.createElement("span");C.style.width=u+"px",C.style.minWidth=u+"px",C.style.paddingRight="10px",C.className="diff-review-line-number"+p,void 0!==e.modifiedLineNumber?C.appendChild(document.createTextNode(String(e.modifiedLineNumber))):C.innerText="\xa0",_.appendChild(C);const b=document.createElement("span");if(b.className="diff-review-spacer",m){const e=document.createElement("span");e.className=E.L.asClassName(m),e.innerText="\xa0\xa0",b.appendChild(e)}else b.innerText="\xa0\xa0";let S;if(_.appendChild(b),void 0!==e.modifiedLineNumber){let t=this._getLineHtml(a,o,c.tabSize,e.modifiedLineNumber,this._languageService.languageIdCodec);V._ttPolicy&&(t=V._ttPolicy.createHTML(t)),_.insertAdjacentHTML("beforeend",t),S=a.getLineContent(e.modifiedLineNumber)}else{let t=this._getLineHtml(n,s,r.tabSize,e.originalLineNumber,this._languageService.languageIdCodec);V._ttPolicy&&(t=V._ttPolicy.createHTML(t)),_.insertAdjacentHTML("beforeend",t),S=n.getLineContent(e.originalLineNumber)}0===S.length&&(S=(0,O.kg)("blankLine","blank"));let y="";switch(e.type){case j.Unchanged:y=e.originalLineNumber===e.modifiedLineNumber?(0,O.kg)({key:"unchangedLine",comment:["The placeholders are contents of the line and should not be translated."]},"{0} unchanged line {1}",S,e.originalLineNumber):(0,O.kg)("equalLine","{0} original line {1} modified line {2}",S,e.originalLineNumber,e.modifiedLineNumber);break;case j.Added:y=(0,O.kg)("insertLine","+ {0} modified line {1}",S,e.modifiedLineNumber);break;case j.Deleted:y=(0,O.kg)("deleteLine","- {0} original line {1}",S,e.originalLineNumber)}return f.setAttribute("aria-label",y),f}_getLineHtml(e,t,i,s,n){const r=e.getLineContent(s),o=t.get(50),a=A.f.createEmpty(r,n),c=I.qL.isBasicASCII(r,e.mightContainNonBasicASCII()),l=I.qL.containsRTL(r,c,e.mightContainRTL());return(0,N.Md)(new N.zL(o.isMonospace&&!t.get(33),o.canUseHalfwidthRightwardsArrow,r,!1,c,l,0,a,[],i,0,o.spaceWidth,o.middotWidth,o.wsmiddotWidth,t.get(118),t.get(100),t.get(95),t.get(51)!==y.Bc.OFF,null)).html}};X=F([U(5,k.L)],X);class Z{constructor(e){this.editors=e}getOriginalModel(){return this.editors.original.getModel()}getOriginalOptions(){return this.editors.original.getOptions()}originalReveal(e){this.editors.original.revealRange(e),this.editors.original.setSelection(e),this.editors.original.focus()}getModifiedModel(){return this.editors.modified.getModel()}getModifiedOptions(){return this.editors.modified.getOptions()}modifiedReveal(e){e&&(this.editors.modified.revealRange(e),this.editors.modified.setSelection(e)),this.editors.modified.focus()}modifiedSetSelection(e){this.editors.modified.setSelection(e)}modifiedFocus(){this.editors.modified.focus()}getModifiedPosition(){return this.editors.modified.getPosition()??void 0}}var J=i(90766),ee=i(631),te=i(10691),ie=i(18447),se=i(94746),ne=i(41127),re=i(26746),oe=i(94650),ae=i(84084),ce=i(82518),le=i(66782),he=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},de=function(e,t){return function(i,s){t(i,s,e)}};let ue=class extends a.jG{setActiveMovedText(e){this._activeMovedText.set(e,void 0)}constructor(e,t,i){super(),this.model=e,this._options=t,this._diffProviderFactoryService=i,this._isDiffUpToDate=(0,c.FY)(this,!1),this.isDiffUpToDate=this._isDiffUpToDate,this._diff=(0,c.FY)(this,void 0),this.diff=this._diff,this._unchangedRegions=(0,c.FY)(this,void 0),this.unchangedRegions=(0,c.un)(this,(e=>this._options.hideUnchangedRegions.read(e)?this._unchangedRegions.read(e)?.regions??[]:((0,c.Rn)((e=>{for(const t of this._unchangedRegions.get()?.regions||[])t.collapseAll(e)})),[]))),this.movedTextToCompare=(0,c.FY)(this,void 0),this._activeMovedText=(0,c.FY)(this,void 0),this._hoveredMovedText=(0,c.FY)(this,void 0),this.activeMovedText=(0,c.un)(this,(e=>this.movedTextToCompare.read(e)??this._hoveredMovedText.read(e)??this._activeMovedText.read(e))),this._cancellationTokenSource=new ie.Qi,this._diffProvider=(0,c.un)(this,(e=>{const t=this._diffProviderFactoryService.createDiffProvider({diffAlgorithm:this._options.diffAlgorithm.read(e)});return{diffProvider:t,onChangeSignal:(0,c.yQ)("onDidChange",t.onDidChange)}})),this._register((0,a.s)((()=>this._cancellationTokenSource.cancel())));const s=(0,c.Yd)("contentChangedSignal"),n=this._register(new J.uC((()=>s.trigger(void 0)),200));this._register((0,c.fm)((t=>{const i=this._unchangedRegions.read(t);if(!i||i.regions.some((e=>e.isDragged.read(t))))return;const s=i.originalDecorationIds.map((t=>e.original.getDecorationRange(t))).map((e=>e?w.M.fromRangeInclusive(e):void 0)),n=i.modifiedDecorationIds.map((t=>e.modified.getDecorationRange(t))).map((e=>e?w.M.fromRangeInclusive(e):void 0)),r=i.regions.map(((e,i)=>s[i]&&n[i]?new me(s[i].startLineNumber,n[i].startLineNumber,s[i].length,e.visibleLineCountTop.read(t),e.visibleLineCountBottom.read(t)):void 0)).filter(ee.O9),o=[];let a=!1;for(const e of(0,v.n)(r,((e,i)=>e.getHiddenModifiedRange(t).endLineNumberExclusive===i.getHiddenModifiedRange(t).startLineNumber)))if(e.length>1){a=!0;const t=e.reduce(((e,t)=>e+t.lineCount),0),i=new me(e[0].originalLineNumber,e[0].modifiedLineNumber,t,e[0].visibleLineCountTop.get(),e[e.length-1].visibleLineCountBottom.get());o.push(i)}else o.push(e[0]);if(a){const t=e.original.deltaDecorations(i.originalDecorationIds,o.map((e=>({range:e.originalUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}})))),s=e.modified.deltaDecorations(i.modifiedDecorationIds,o.map((e=>({range:e.modifiedUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}}))));(0,c.Rn)((e=>{this._unchangedRegions.set({regions:o,originalDecorationIds:t,modifiedDecorationIds:s},e)}))}})));const r=(t,i,s)=>{const n=me.fromDiffs(t.changes,e.original.getLineCount(),e.modified.getLineCount(),this._options.hideUnchangedRegionsMinimumLineCount.read(s),this._options.hideUnchangedRegionsContextLineCount.read(s));let r;const o=this._unchangedRegions.get();if(o){const t=o.originalDecorationIds.map((t=>e.original.getDecorationRange(t))).map((e=>e?w.M.fromRangeInclusive(e):void 0)),i=o.modifiedDecorationIds.map((t=>e.modified.getDecorationRange(t))).map((e=>e?w.M.fromRangeInclusive(e):void 0));let n=(0,S.EK)(o.regions.map(((e,s)=>{if(!t[s]||!i[s])return;const n=t[s].length;return new me(t[s].startLineNumber,i[s].startLineNumber,n,Math.min(e.visibleLineCountTop.get(),n),Math.min(e.visibleLineCountBottom.get(),n-e.visibleLineCountTop.get()))})).filter(ee.O9),((e,t)=>!t||e.modifiedLineNumber>=t.modifiedLineNumber+t.lineCount&&e.originalLineNumber>=t.originalLineNumber+t.lineCount)).map((e=>new x.WL(e.getHiddenOriginalRange(s),e.getHiddenModifiedRange(s))));n=x.WL.clip(n,w.M.ofLength(1,e.original.getLineCount()),w.M.ofLength(1,e.modified.getLineCount())),r=x.WL.inverse(n,e.original.getLineCount(),e.modified.getLineCount())}const a=[];if(r)for(const e of n){const t=r.filter((t=>t.original.intersectsStrict(e.originalUnchangedRange)&&t.modified.intersectsStrict(e.modifiedUnchangedRange)));a.push(...e.setVisibleRanges(t,i))}else a.push(...n);const c=e.original.deltaDecorations(o?.originalDecorationIds||[],a.map((e=>({range:e.originalUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}})))),l=e.modified.deltaDecorations(o?.modifiedDecorationIds||[],a.map((e=>({range:e.modifiedUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}}))));this._unchangedRegions.set({regions:a,originalDecorationIds:c,modifiedDecorationIds:l},i)};this._register(e.modified.onDidChangeContent((t=>{if(this._diff.get()){const i=oe.c.fromModelContentChanges(t.changes),s=_e(this._lastDiff,i,e.original,e.modified);s&&(this._lastDiff=s,(0,c.Rn)((e=>{this._diff.set(ge.fromDiffResult(this._lastDiff),e),r(s,e);const t=this.movedTextToCompare.get();this.movedTextToCompare.set(t?this._lastDiff.moves.find((e=>e.lineRangeMapping.modified.intersect(t.lineRangeMapping.modified))):void 0,e)})))}this._isDiffUpToDate.set(!1,void 0),n.schedule()}))),this._register(e.original.onDidChangeContent((t=>{if(this._diff.get()){const i=oe.c.fromModelContentChanges(t.changes),s=fe(this._lastDiff,i,e.original,e.modified);s&&(this._lastDiff=s,(0,c.Rn)((e=>{this._diff.set(ge.fromDiffResult(this._lastDiff),e),r(s,e);const t=this.movedTextToCompare.get();this.movedTextToCompare.set(t?this._lastDiff.moves.find((e=>e.lineRangeMapping.modified.intersect(t.lineRangeMapping.modified))):void 0,e)})))}this._isDiffUpToDate.set(!1,void 0),n.schedule()}))),this._register((0,c.yC)((async(t,i)=>{this._options.hideUnchangedRegionsMinimumLineCount.read(t),this._options.hideUnchangedRegionsContextLineCount.read(t),n.cancel(),s.read(t);const o=this._diffProvider.read(t);o.onChangeSignal.read(t),(0,ne.b)(re.D8,t),(0,ne.b)(ce.NC,t),this._isDiffUpToDate.set(!1,void 0);let a=[];i.add(e.original.onDidChangeContent((e=>{const t=oe.c.fromModelContentChanges(e.changes);a=(0,ae.M)(a,t)})));let l=[];i.add(e.modified.onDidChangeContent((e=>{const t=oe.c.fromModelContentChanges(e.changes);l=(0,ae.M)(l,t)})));let h=await o.diffProvider.computeDiff(e.original,e.modified,{ignoreTrimWhitespace:this._options.ignoreTrimWhitespace.read(t),maxComputationTimeMs:this._options.maxComputationTimeMs.read(t),computeMoves:this._options.showMoves.read(t)},this._cancellationTokenSource.token);var d,u,g;this._cancellationTokenSource.token.isCancellationRequested||(e.original.isDisposed()||e.modified.isDisposed()||(d=h,u=e.original,g=e.modified,h={changes:d.changes.map((e=>new x.wm(e.original,e.modified,e.innerChanges?e.innerChanges.map((e=>function(e,t,i){let s=e.originalRange,n=e.modifiedRange;return 1===s.startColumn&&1===n.startColumn&&(1!==s.endColumn||1!==n.endColumn)&&s.endColumn===t.getLineMaxColumn(s.endLineNumber)&&n.endColumn===i.getLineMaxColumn(n.endLineNumber)&&s.endLineNumber<t.getLineCount()&&n.endLineNumber<i.getLineCount()&&(s=s.setEndPosition(s.endLineNumber+1,1),n=n.setEndPosition(n.endLineNumber+1,1)),new x.q6(s,n)}(e,u,g))):void 0))),moves:d.moves,identical:d.identical,quitEarly:d.quitEarly},h=fe(h,a,e.original,e.modified)??h,h=_e(h,l,e.original,e.modified)??h,(0,c.Rn)((e=>{r(h,e),this._lastDiff=h;const t=ge.fromDiffResult(h);this._diff.set(t,e),this._isDiffUpToDate.set(!0,e);const i=this.movedTextToCompare.get();this.movedTextToCompare.set(i?this._lastDiff.moves.find((e=>e.lineRangeMapping.modified.intersect(i.lineRangeMapping.modified))):void 0,e)}))))})))}ensureModifiedLineIsVisible(e,t,i){if(0===this.diff.get()?.mappings.length)return;const s=this._unchangedRegions.get()?.regions||[];for(const n of s)if(n.getHiddenModifiedRange(void 0).contains(e))return void n.showModifiedLine(e,t,i)}ensureOriginalLineIsVisible(e,t,i){if(0===this.diff.get()?.mappings.length)return;const s=this._unchangedRegions.get()?.regions||[];for(const n of s)if(n.getHiddenOriginalRange(void 0).contains(e))return void n.showOriginalLine(e,t,i)}async waitForDiff(){await(0,c.oJ)(this.isDiffUpToDate,(e=>e))}serializeState(){const e=this._unchangedRegions.get();return{collapsedRegions:e?.regions.map((e=>({range:e.getHiddenModifiedRange(void 0).serialize()})))}}restoreSerializedState(e){const t=e.collapsedRegions?.map((e=>w.M.deserialize(e.range))),i=this._unchangedRegions.get();i&&t&&(0,c.Rn)((e=>{for(const s of i.regions)for(const i of t)if(s.modifiedUnchangedRange.intersect(i)){s.setHiddenModifiedRange(i,e);break}}))}};ue=he([de(2,se.Hg)],ue);class ge{static fromDiffResult(e){return new ge(e.changes.map((e=>new pe(e))),e.moves||[],e.identical,e.quitEarly)}constructor(e,t,i,s){this.mappings=e,this.movedTexts=t,this.identical=i,this.quitEarly=s}}class pe{constructor(e){this.lineRangeMapping=e}}class me{static fromDiffs(e,t,i,s,n){const r=x.wm.inverse(e,t,i),o=[];for(const a of r){let e=a.original.startLineNumber,r=a.modified.startLineNumber,c=a.original.length;const l=1===e&&1===r,h=e+c===t+1&&r+c===i+1;(l||h)&&c>=n+s?(l&&!h&&(c-=n),h&&!l&&(e+=n,r+=n,c-=n),o.push(new me(e,r,c,0,0))):c>=2*n+s&&(e+=n,r+=n,c-=2*n,o.push(new me(e,r,c,0,0)))}return o}get originalUnchangedRange(){return w.M.ofLength(this.originalLineNumber,this.lineCount)}get modifiedUnchangedRange(){return w.M.ofLength(this.modifiedLineNumber,this.lineCount)}constructor(e,t,i,s,n){this.originalLineNumber=e,this.modifiedLineNumber=t,this.lineCount=i,this._visibleLineCountTop=(0,c.FY)(this,0),this.visibleLineCountTop=this._visibleLineCountTop,this._visibleLineCountBottom=(0,c.FY)(this,0),this.visibleLineCountBottom=this._visibleLineCountBottom,this._shouldHideControls=(0,c.un)(this,(e=>this.visibleLineCountTop.read(e)+this.visibleLineCountBottom.read(e)===this.lineCount&&!this.isDragged.read(e))),this.isDragged=(0,c.FY)(this,void 0);const r=Math.max(Math.min(s,this.lineCount),0),o=Math.max(Math.min(n,this.lineCount-s),0);(0,le.V7)(s===r),(0,le.V7)(n===o),this._visibleLineCountTop.set(r,void 0),this._visibleLineCountBottom.set(o,void 0)}setVisibleRanges(e,t){const i=[],s=new w.S(e.map((e=>e.modified))).subtractFrom(this.modifiedUnchangedRange);let n=this.originalLineNumber,r=this.modifiedLineNumber;const o=this.modifiedLineNumber+this.lineCount;if(0===s.ranges.length)this.showAll(t),i.push(this);else{let e=0;for(const a of s.ranges){const c=e===s.ranges.length-1;e++;const l=(c?o:a.endLineNumberExclusive)-r,h=new me(n,r,l,0,0);h.setHiddenModifiedRange(a,t),i.push(h),n=h.originalUnchangedRange.endLineNumberExclusive,r=h.modifiedUnchangedRange.endLineNumberExclusive}}return i}shouldHideControls(e){return this._shouldHideControls.read(e)}getHiddenOriginalRange(e){return w.M.ofLength(this.originalLineNumber+this._visibleLineCountTop.read(e),this.lineCount-this._visibleLineCountTop.read(e)-this._visibleLineCountBottom.read(e))}getHiddenModifiedRange(e){return w.M.ofLength(this.modifiedLineNumber+this._visibleLineCountTop.read(e),this.lineCount-this._visibleLineCountTop.read(e)-this._visibleLineCountBottom.read(e))}setHiddenModifiedRange(e,t){const i=e.startLineNumber-this.modifiedLineNumber,s=this.modifiedLineNumber+this.lineCount-e.endLineNumberExclusive;this.setState(i,s,t)}getMaxVisibleLineCountTop(){return this.lineCount-this._visibleLineCountBottom.get()}getMaxVisibleLineCountBottom(){return this.lineCount-this._visibleLineCountTop.get()}showMoreAbove(e=10,t){const i=this.getMaxVisibleLineCountTop();this._visibleLineCountTop.set(Math.min(this._visibleLineCountTop.get()+e,i),t)}showMoreBelow(e=10,t){const i=this.lineCount-this._visibleLineCountTop.get();this._visibleLineCountBottom.set(Math.min(this._visibleLineCountBottom.get()+e,i),t)}showAll(e){this._visibleLineCountBottom.set(this.lineCount-this._visibleLineCountTop.get(),e)}showModifiedLine(e,t,i){const s=e+1-(this.modifiedLineNumber+this._visibleLineCountTop.get()),n=this.modifiedLineNumber-this._visibleLineCountBottom.get()+this.lineCount-e;0===t&&s<n||1===t?this._visibleLineCountTop.set(this._visibleLineCountTop.get()+s,i):this._visibleLineCountBottom.set(this._visibleLineCountBottom.get()+n,i)}showOriginalLine(e,t,i){const s=e-this.originalLineNumber,n=this.originalLineNumber+this.lineCount-e;0===t&&s<n||1===t?this._visibleLineCountTop.set(Math.min(this._visibleLineCountTop.get()+n-s,this.getMaxVisibleLineCountTop()),i):this._visibleLineCountBottom.set(Math.min(this._visibleLineCountBottom.get()+s-n,this.getMaxVisibleLineCountBottom()),i)}collapseAll(e){this._visibleLineCountTop.set(0,e),this._visibleLineCountBottom.set(0,e)}setState(e,t,i){e=Math.max(Math.min(e,this.lineCount),0),t=Math.max(Math.min(t,this.lineCount-e),0),this._visibleLineCountTop.set(e,i),this._visibleLineCountBottom.set(t,i)}}function fe(e,t,i,s){}function _e(e,t,i,s){}var ve=i(98067);class Ce extends a.jG{get visibility(){return this._visibility}set visibility(e){this._visibility!==e&&(this._visibility=e,this._diffActions.style.visibility=e?"visible":"hidden")}constructor(e,t,i,n,r,o,a,c,l){super(),this._getViewZoneId=e,this._marginDomNode=t,this._modifiedEditor=i,this._diff=n,this._editor=r,this._viewLineCounts=o,this._originalTextModel=a,this._contextMenuService=c,this._clipboardService=l,this._visibility=!1,this._marginDomNode.style.zIndex="10",this._diffActions=document.createElement("div"),this._diffActions.className=E.L.asClassName(C.W.lightBulb)+" lightbulb-glyph",this._diffActions.style.position="absolute";const h=this._modifiedEditor.getOption(67);this._diffActions.style.right="0px",this._diffActions.style.visibility="hidden",this._diffActions.style.height=`${h}px`,this._diffActions.style.lineHeight=`${h}px`,this._marginDomNode.appendChild(this._diffActions);let d=0;const u=i.getOption(128)&&!ve.un,g=(e,t)=>{this._contextMenuService.showContextMenu({domForShadowRoot:u?i.getDomNode()??void 0:void 0,getAnchor:()=>({x:e,y:t}),getActions:()=>{const e=[],t=n.modified.isEmpty;e.push(new _.rc("diff.clipboard.copyDeletedContent",t?n.original.length>1?(0,O.kg)("diff.clipboard.copyDeletedLinesContent.label","Copy deleted lines"):(0,O.kg)("diff.clipboard.copyDeletedLinesContent.single.label","Copy deleted line"):n.original.length>1?(0,O.kg)("diff.clipboard.copyChangedLinesContent.label","Copy changed lines"):(0,O.kg)("diff.clipboard.copyChangedLinesContent.single.label","Copy changed line"),void 0,!0,(async()=>{const e=this._originalTextModel.getValueInRange(n.original.toExclusiveRange());await this._clipboardService.writeText(e)}))),n.original.length>1&&e.push(new _.rc("diff.clipboard.copyDeletedLineContent",t?(0,O.kg)("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",n.original.startLineNumber+d):(0,O.kg)("diff.clipboard.copyChangedLineContent.label","Copy changed line ({0})",n.original.startLineNumber+d),void 0,!0,(async()=>{let e=this._originalTextModel.getLineContent(n.original.startLineNumber+d);if(""===e){e=0===this._originalTextModel.getEndOfLineSequence()?"\n":"\r\n"}await this._clipboardService.writeText(e)})));return i.getOption(92)||e.push(new _.rc("diff.inline.revertChange",(0,O.kg)("diff.inline.revertChange.label","Revert this change"),void 0,!0,(async()=>{this._editor.revert(this._diff)}))),e},autoSelectFirstItem:!0})};this._register((0,s.b2)(this._diffActions,"mousedown",(e=>{if(!e.leftButton)return;const{top:t,height:i}=(0,s.BK)(this._diffActions),n=Math.floor(h/3);e.preventDefault(),g(e.posx,t+i+n)}))),this._register(i.onMouseMove((e=>{8!==e.target.type&&5!==e.target.type||e.target.detail.viewZoneId!==this._getViewZoneId()?this.visibility=!1:(d=this._updateLightBulbPosition(this._marginDomNode,e.event.browserEvent.y,h),this.visibility=!0)}))),this._register(i.onMouseDown((e=>{if(e.event.leftButton&&(8===e.target.type||5===e.target.type)){e.target.detail.viewZoneId===this._getViewZoneId()&&(e.event.preventDefault(),d=this._updateLightBulbPosition(this._marginDomNode,e.event.browserEvent.y,h),g(e.event.posx,e.event.posy+h))}})))}_updateLightBulbPosition(e,t,i){const{top:n}=(0,s.BK)(e),r=t-n,o=Math.floor(r/i),a=o*i;if(this._diffActions.style.top=`${a}px`,this._viewLineCounts){let e=0;for(let t=0;t<this._viewLineCounts.length;t++)if(e+=this._viewLineCounts[t],o<e)return t}return o}}var Ee=i(99020),be=i(25521);const Se=(0,p.H)("diffEditorWidget",{createHTML:e=>e});function ye(e,t,i,s){(0,b.M)(s,t.fontInfo);const n=i.length>0,r=new Ee.fe(1e4);let o=0,a=0;const c=[];for(let d=0;d<e.lineTokens.length;d++){const s=d+1,l=e.lineTokens[d],h=e.lineBreakData[d],u=be.d.filter(i,s,1,Number.MAX_SAFE_INTEGER);if(h){let i=0;for(const s of h.breakOffsets){const c=l.sliceAndInflate(i,s,0);o=Math.max(o,Le(a,c,be.d.extractWrapped(u,i,s),n,e.mightContainNonBasicASCII,e.mightContainRTL,t,r)),a++,i=s}c.push(h.breakOffsets.length)}else c.push(1),o=Math.max(o,Le(a,l,u,n,e.mightContainNonBasicASCII,e.mightContainRTL,t,r)),a++}o+=t.scrollBeyondLastColumn;const l=r.build(),h=Se?Se.createHTML(l):l;s.innerHTML=h;return{heightInLines:a,minWidthInPx:o*t.typicalHalfwidthCharacterWidth,viewLineCounts:c}}class we{constructor(e,t,i,s){this.lineTokens=e,this.lineBreakData=t,this.mightContainNonBasicASCII=i,this.mightContainRTL=s}}class Re{static fromEditor(e){const t=e.getOptions(),i=t.get(50),s=t.get(146);return new Re(e.getModel()?.getOptions().tabSize||0,i,t.get(33),i.typicalHalfwidthCharacterWidth,t.get(105),t.get(67),s.decorationsWidth,t.get(118),t.get(100),t.get(95),t.get(51))}constructor(e,t,i,s,n,r,o,a,c,l,h){this.tabSize=e,this.fontInfo=t,this.disableMonospaceOptimizations=i,this.typicalHalfwidthCharacterWidth=s,this.scrollBeyondLastColumn=n,this.lineHeight=r,this.lineDecorationsWidth=o,this.stopRenderingLineAfter=a,this.renderWhitespace=c,this.renderControlCharacters=l,this.fontLigatures=h}}function Le(e,t,i,s,n,r,o,a){a.appendString('<div class="view-line'),s||a.appendString(" char-delete"),a.appendString('" style="top:'),a.appendString(String(e*o.lineHeight)),a.appendString('px;width:1000000px;">');const c=t.getLineContent(),l=I.qL.isBasicASCII(c,n),h=I.qL.containsRTL(c,l,r),d=(0,N.UW)(new N.zL(o.fontInfo.isMonospace&&!o.disableMonospaceOptimizations,o.fontInfo.canUseHalfwidthRightwardsArrow,c,!1,l,h,0,t,i,o.tabSize,0,o.fontInfo.spaceWidth,o.fontInfo.middotWidth,o.fontInfo.wsmiddotWidth,o.stopRenderingLineAfter,o.renderWhitespace,o.renderControlCharacters,o.fontLigatures!==y.Bc.OFF,null),a);return a.appendString("</div>"),d.characterMapping.getHorizontalOffset(d.characterMapping.length)}var Te=i(54770),xe=i(47508),ke=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Ae=function(e,t){return function(i,s){t(i,s,e)}};let Ne=class extends a.jG{constructor(e,t,i,n,r,o,l,h,d,u){super(),this._targetWindow=e,this._editors=t,this._diffModel=i,this._options=n,this._diffEditorWidget=r,this._canIgnoreViewZoneUpdateEvent=o,this._origViewZonesToIgnore=l,this._modViewZonesToIgnore=h,this._clipboardService=d,this._contextMenuService=u,this._originalTopPadding=(0,c.FY)(this,0),this._originalScrollOffset=(0,c.FY)(this,0),this._originalScrollOffsetAnimated=(0,S.Nu)(this._targetWindow,this._originalScrollOffset,this._store),this._modifiedTopPadding=(0,c.FY)(this,0),this._modifiedScrollOffset=(0,c.FY)(this,0),this._modifiedScrollOffsetAnimated=(0,S.Nu)(this._targetWindow,this._modifiedScrollOffset,this._store);const g=(0,c.FY)("invalidateAlignmentsState",0),p=this._register(new J.uC((()=>{g.set(g.get()+1,void 0)}),0));this._register(this._editors.original.onDidChangeViewZones((e=>{this._canIgnoreViewZoneUpdateEvent()||p.schedule()}))),this._register(this._editors.modified.onDidChangeViewZones((e=>{this._canIgnoreViewZoneUpdateEvent()||p.schedule()}))),this._register(this._editors.original.onDidChangeConfiguration((e=>{(e.hasChanged(147)||e.hasChanged(67))&&p.schedule()}))),this._register(this._editors.modified.onDidChangeConfiguration((e=>{(e.hasChanged(147)||e.hasChanged(67))&&p.schedule()})));const m=this._diffModel.map((e=>e?(0,c.y0)(this,e.model.original.onDidChangeTokens,(()=>2===e.model.original.tokenization.backgroundTokenizationState)):void 0)).map(((e,t)=>e?.read(t))),f=(0,c.un)((e=>{const t=this._diffModel.read(e),i=t?.diff.read(e);if(!t||!i)return null;g.read(e);const s=this._options.renderSideBySide.read(e);return Ie(this._editors.original,this._editors.modified,i.mappings,this._origViewZonesToIgnore,this._modViewZonesToIgnore,s)})),_=(0,c.un)((e=>{const t=this._diffModel.read(e)?.movedTextToCompare.read(e);if(!t)return null;g.read(e);const i=t.changes.map((e=>new pe(e)));return Ie(this._editors.original,this._editors.modified,i,this._origViewZonesToIgnore,this._modViewZonesToIgnore,!0)}));function v(){const e=document.createElement("div");return e.className="diagonal-fill",e}const y=this._register(new a.Cm);this.viewZones=(0,c.rm)(this,((e,t)=>{y.clear();const i=f.read(e)||[],n=[],o=[],a=this._modifiedTopPadding.read(e);a>0&&o.push({afterLineNumber:0,domNode:document.createElement("div"),heightInPx:a,showInHiddenAreas:!0,suppressMouseDown:!0});const c=this._originalTopPadding.read(e);c>0&&n.push({afterLineNumber:0,domNode:document.createElement("div"),heightInPx:c,showInHiddenAreas:!0,suppressMouseDown:!0});const l=this._options.renderSideBySide.read(e),h=l?void 0:this._editors.modified._getViewModel()?.createLineBreaksComputer();if(h){const L=this._editors.original.getModel();for(const T of i)if(T.diff)for(let x=T.originalRange.startLineNumber;x<T.originalRange.endLineNumberExclusive;x++){if(x>L.getLineCount())return{orig:n,mod:o};h?.addRequest(L.getLineContent(x),null,null)}}const d=h?.finalize()??[];let u=0;const g=this._editors.modified.getOption(67),p=this._diffModel.read(e)?.movedTextToCompare.read(e),S=this._editors.original.getModel()?.mightContainNonBasicASCII()??!1,w=this._editors.original.getModel()?.mightContainRTL()??!1,R=Re.fromEditor(this._editors.modified);for(const k of i)if(!k.diff||l||this._options.useTrueInlineDiffRendering.read(e)&&De(k.diff)){const A=k.modifiedHeightInPx-k.originalHeightInPx;if(A>0){if(p?.lineRangeMapping.original.delta(-1).deltaLength(2).contains(k.originalRange.endLineNumberExclusive-1))continue;n.push({afterLineNumber:k.originalRange.endLineNumberExclusive-1,domNode:v(),heightInPx:A,showInHiddenAreas:!0,suppressMouseDown:!0})}else{if(p?.lineRangeMapping.modified.delta(-1).deltaLength(2).contains(k.modifiedRange.endLineNumberExclusive-1))continue;function N(){const e=document.createElement("div");return e.className="arrow-revert-change "+E.L.asClassName(C.W.arrowRight),t.add((0,s.ko)(e,"mousedown",(e=>e.stopPropagation()))),t.add((0,s.ko)(e,"click",(e=>{e.stopPropagation(),r.revert(k.diff)}))),(0,s.$)("div",{},e)}let O;k.diff&&k.diff.modified.isEmpty&&this._options.shouldRenderOldRevertArrows.read(e)&&(O=N()),o.push({afterLineNumber:k.modifiedRange.endLineNumberExclusive-1,domNode:v(),heightInPx:-A,marginDomNode:O,showInHiddenAreas:!0,suppressMouseDown:!0})}}else{if(!k.originalRange.isEmpty){m.read(e);const M=document.createElement("div");M.classList.add("view-lines","line-delete","monaco-mouse-cursor-text");const P=this._editors.original.getModel();if(k.originalRange.endLineNumberExclusive-1>P.getLineCount())return{orig:n,mod:o};const F=new we(k.originalRange.mapToLineArray((e=>P.tokenization.getLineTokens(e))),k.originalRange.mapToLineArray((e=>d[u++])),S,w),U=[];for(const V of k.diff.innerChanges||[])U.push(new I.kI(V.originalRange.delta(-(k.diff.original.startLineNumber-1)),te.Zb.className,0));const H=ye(F,R,U,M),B=document.createElement("div");if(B.className="inline-deleted-margin-view-zone",(0,b.M)(B,R.fontInfo),this._options.renderIndicators.read(e))for(let z=0;z<H.heightInLines;z++){const G=document.createElement("div");G.className=`delete-sign ${E.L.asClassName(te.dv)}`,G.setAttribute("style",`position:absolute;top:${z*g}px;width:${R.lineDecorationsWidth}px;height:${g}px;right:0;`),B.appendChild(G)}let W;y.add(new Ce((()=>(0,ee.eU)(W)),B,this._editors.modified,k.diff,this._diffEditorWidget,H.viewLineCounts,this._editors.original.getModel(),this._contextMenuService,this._clipboardService));for(let j=0;j<H.viewLineCounts.length;j++){const K=H.viewLineCounts[j];K>1&&n.push({afterLineNumber:k.originalRange.startLineNumber+j,domNode:v(),heightInPx:(K-1)*g,showInHiddenAreas:!0,suppressMouseDown:!0})}o.push({afterLineNumber:k.modifiedRange.startLineNumber-1,domNode:M,heightInPx:H.heightInLines*g,minWidthInPx:H.minWidthInPx,marginDomNode:B,setZoneId(e){W=e},showInHiddenAreas:!0,suppressMouseDown:!0})}const D=document.createElement("div");D.className="gutter-delete",n.push({afterLineNumber:k.originalRange.endLineNumberExclusive-1,domNode:v(),heightInPx:k.modifiedHeightInPx,marginDomNode:D,showInHiddenAreas:!0,suppressMouseDown:!0})}for(const Y of _.read(e)??[]){if(!p?.lineRangeMapping.original.intersect(Y.originalRange)||!p?.lineRangeMapping.modified.intersect(Y.modifiedRange))continue;const q=Y.modifiedHeightInPx-Y.originalHeightInPx;q>0?n.push({afterLineNumber:Y.originalRange.endLineNumberExclusive-1,domNode:v(),heightInPx:q,showInHiddenAreas:!0,suppressMouseDown:!0}):o.push({afterLineNumber:Y.modifiedRange.endLineNumberExclusive-1,domNode:v(),heightInPx:-q,showInHiddenAreas:!0,suppressMouseDown:!0})}return{orig:n,mod:o}}));let w=!1;this._register(this._editors.original.onDidScrollChange((e=>{e.scrollLeftChanged&&!w&&(w=!0,this._editors.modified.setScrollLeft(e.scrollLeft),w=!1)}))),this._register(this._editors.modified.onDidScrollChange((e=>{e.scrollLeftChanged&&!w&&(w=!0,this._editors.original.setScrollLeft(e.scrollLeft),w=!1)}))),this._originalScrollTop=(0,c.y0)(this._editors.original.onDidScrollChange,(()=>this._editors.original.getScrollTop())),this._modifiedScrollTop=(0,c.y0)(this._editors.modified.onDidScrollChange,(()=>this._editors.modified.getScrollTop())),this._register((0,c.fm)((e=>{const t=this._originalScrollTop.read(e)-(this._originalScrollOffsetAnimated.get()-this._modifiedScrollOffsetAnimated.read(e))-(this._originalTopPadding.get()-this._modifiedTopPadding.read(e));t!==this._editors.modified.getScrollTop()&&this._editors.modified.setScrollTop(t,1)}))),this._register((0,c.fm)((e=>{const t=this._modifiedScrollTop.read(e)-(this._modifiedScrollOffsetAnimated.get()-this._originalScrollOffsetAnimated.read(e))-(this._modifiedTopPadding.get()-this._originalTopPadding.read(e));t!==this._editors.original.getScrollTop()&&this._editors.original.setScrollTop(t,1)}))),this._register((0,c.fm)((e=>{const t=this._diffModel.read(e)?.movedTextToCompare.read(e);let i=0;if(t){const e=this._editors.original.getTopForLineNumber(t.lineRangeMapping.original.startLineNumber,!0)-this._originalTopPadding.get();i=this._editors.modified.getTopForLineNumber(t.lineRangeMapping.modified.startLineNumber,!0)-this._modifiedTopPadding.get()-e}i>0?(this._modifiedTopPadding.set(0,void 0),this._originalTopPadding.set(i,void 0)):i<0?(this._modifiedTopPadding.set(-i,void 0),this._originalTopPadding.set(0,void 0)):setTimeout((()=>{this._modifiedTopPadding.set(0,void 0),this._originalTopPadding.set(0,void 0)}),400),this._editors.modified.hasTextFocus()?this._originalScrollOffset.set(this._modifiedScrollOffset.get()-i,void 0,!0):this._modifiedScrollOffset.set(this._originalScrollOffset.get()+i,void 0,!0)})))}};function Ie(e,t,i,s,n,r){const o=new v.j3(Oe(e,s)),a=new v.j3(Oe(t,n)),c=e.getOption(67),l=t.getOption(67),h=[];let d=0,u=0;function g(e,t){for(;;){let i=o.peek(),s=a.peek();if(i&&i.lineNumber>=e&&(i=void 0),s&&s.lineNumber>=t&&(s=void 0),!i&&!s)break;const n=i?i.lineNumber-d:Number.MAX_VALUE,r=s?s.lineNumber-u:Number.MAX_VALUE;n<r?(o.dequeue(),s={lineNumber:i.lineNumber-d+u,heightInPx:0}):n>r?(a.dequeue(),i={lineNumber:s.lineNumber-u+d,heightInPx:0}):(o.dequeue(),a.dequeue()),h.push({originalRange:w.M.ofLength(i.lineNumber,1),modifiedRange:w.M.ofLength(s.lineNumber,1),originalHeightInPx:c+i.heightInPx,modifiedHeightInPx:l+s.heightInPx,diff:void 0})}}for(const p of i){const m=p.lineRangeMapping;g(m.original.startLineNumber,m.modified.startLineNumber);let f=!0,_=m.modified.startLineNumber,C=m.original.startLineNumber;function E(e,t,i=!1){if(e<C||t<_)return;if(f)f=!1;else if(!i&&(e===C||t===_))return;const s=new w.M(C,e),n=new w.M(_,t);if(s.isEmpty&&n.isEmpty)return;const r=o.takeWhile((t=>t.lineNumber<e))?.reduce(((e,t)=>e+t.heightInPx),0)??0,d=a.takeWhile((e=>e.lineNumber<t))?.reduce(((e,t)=>e+t.heightInPx),0)??0;h.push({originalRange:s,modifiedRange:n,originalHeightInPx:s.length*c+r,modifiedHeightInPx:n.length*l+d,diff:p.lineRangeMapping}),C=e,_=t}if(r)for(const b of m.innerChanges||[]){b.originalRange.startColumn>1&&b.modifiedRange.startColumn>1&&E(b.originalRange.startLineNumber,b.modifiedRange.startLineNumber);const S=e.getModel(),y=b.originalRange.endLineNumber<=S.getLineCount()?S.getLineMaxColumn(b.originalRange.endLineNumber):Number.MAX_SAFE_INTEGER;b.originalRange.endColumn<y&&E(b.originalRange.endLineNumber,b.modifiedRange.endLineNumber)}E(m.original.endLineNumberExclusive,m.modified.endLineNumberExclusive,!0),d=m.original.endLineNumberExclusive,u=m.modified.endLineNumberExclusive}return g(Number.MAX_VALUE,Number.MAX_VALUE),h}function Oe(e,t){const i=[],s=[],n=-1!==e.getOption(147).wrappingColumn,r=e._getViewModel().coordinatesConverter,o=e.getOption(67);if(n)for(let a=1;a<=e.getModel().getLineCount();a++){const e=r.getModelLineViewLineCount(a);e>1&&s.push({lineNumber:a,heightInPx:o*(e-1)})}for(const a of e.getWhitespaces()){if(t.has(a.id))continue;const e=0===a.afterLineNumber?0:r.convertViewPositionToModelPosition(new L.y(a.afterLineNumber,1)).lineNumber;i.push({lineNumber:e,heightInPx:a.height})}return(0,S.Am)(i,s,(e=>e.lineNumber),((e,t)=>({lineNumber:e.lineNumber,heightInPx:e.heightInPx+t.heightInPx})))}function De(e){return!!e.innerChanges&&e.innerChanges.every((e=>Me(e.modifiedRange)&&Me(e.originalRange)||e.originalRange.equalsRange(new T.Q(1,1,1,1))))}function Me(e){return e.startLineNumber===e.endLineNumber}Ne=ke([Ae(8,Te.h),Ae(9,xe.Z)],Ne);class Pe extends a.jG{static{this.movedCodeBlockPadding=4}constructor(e,t,i,s,n){super(),this._rootElement=e,this._diffModel=t,this._originalEditorLayoutInfo=i,this._modifiedEditorLayoutInfo=s,this._editors=n,this._originalScrollTop=(0,c.y0)(this,this._editors.original.onDidScrollChange,(()=>this._editors.original.getScrollTop())),this._modifiedScrollTop=(0,c.y0)(this,this._editors.modified.onDidScrollChange,(()=>this._editors.modified.getScrollTop())),this._viewZonesChanged=(0,c.yQ)("onDidChangeViewZones",this._editors.modified.onDidChangeViewZones),this.width=(0,c.FY)(this,0),this._modifiedViewZonesChangedSignal=(0,c.yQ)("modified.onDidChangeViewZones",this._editors.modified.onDidChangeViewZones),this._originalViewZonesChangedSignal=(0,c.yQ)("original.onDidChangeViewZones",this._editors.original.onDidChangeViewZones),this._state=(0,c.rm)(this,((e,t)=>{this._element.replaceChildren();const i=this._diffModel.read(e),s=i?.diff.read(e)?.movedTexts;if(!s||0===s.length)return void this.width.set(0,void 0);this._viewZonesChanged.read(e);const n=this._originalEditorLayoutInfo.read(e),r=this._modifiedEditorLayoutInfo.read(e);if(!n||!r)return void this.width.set(0,void 0);this._modifiedViewZonesChangedSignal.read(e),this._originalViewZonesChangedSignal.read(e);const o=s.map((t=>{function i(e,t){return(t.getTopForLineNumber(e.startLineNumber,!0)+t.getTopForLineNumber(e.endLineNumberExclusive,!0))/2}const s=i(t.lineRangeMapping.original,this._editors.original),n=this._originalScrollTop.read(e),r=i(t.lineRangeMapping.modified,this._editors.modified),o=s-n,a=r-this._modifiedScrollTop.read(e),c=Math.min(s,r),l=Math.max(s,r);return{range:new R.L(c,l),from:o,to:a,fromWithoutScroll:s,toWithoutScroll:r,move:t}}));o.sort((0,v.nH)((0,v.VE)((e=>e.fromWithoutScroll>e.toWithoutScroll),v.TS),(0,v.VE)((e=>e.fromWithoutScroll>e.toWithoutScroll?e.fromWithoutScroll:-e.toWithoutScroll),v.U9)));const a=Fe.compute(o.map((e=>e.range))),l=n.verticalScrollbarWidth,h=10*(a.getTrackCount()-1)+20,d=l+h+(r.contentLeft-Pe.movedCodeBlockPadding);let u=0;for(const g of o){const e=l+10+10*a.getTrack(u),s=15,n=15,o=d,h=r.glyphMarginWidth+r.lineNumbersWidth,p=18,m=document.createElementNS("http://www.w3.org/2000/svg","rect");m.classList.add("arrow-rectangle"),m.setAttribute("x",""+(o-h)),m.setAttribute("y",""+(g.to-p/2)),m.setAttribute("width",`${h}`),m.setAttribute("height",`${p}`),this._element.appendChild(m);const f=document.createElementNS("http://www.w3.org/2000/svg","g"),_=document.createElementNS("http://www.w3.org/2000/svg","path");_.setAttribute("d",`M 0 ${g.from} L ${e} ${g.from} L ${e} ${g.to} L ${o-n} ${g.to}`),_.setAttribute("fill","none"),f.appendChild(_);const v=document.createElementNS("http://www.w3.org/2000/svg","polygon");v.classList.add("arrow"),t.add((0,c.fm)((e=>{_.classList.toggle("currentMove",g.move===i.activeMovedText.read(e)),v.classList.toggle("currentMove",g.move===i.activeMovedText.read(e))}))),v.setAttribute("points",`${o-n},${g.to-s/2} ${o},${g.to} ${o-n},${g.to+s/2}`),f.appendChild(v),this._element.appendChild(f),u++}this.width.set(h,void 0)})),this._element=document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("class","moved-blocks-lines"),this._rootElement.appendChild(this._element),this._register((0,a.s)((()=>this._element.remove()))),this._register((0,c.fm)((e=>{const t=this._originalEditorLayoutInfo.read(e),i=this._modifiedEditorLayoutInfo.read(e);t&&i&&(this._element.style.left=t.width-t.verticalScrollbarWidth+"px",this._element.style.height=`${t.height}px`,this._element.style.width=`${t.verticalScrollbarWidth+t.contentLeft-Pe.movedCodeBlockPadding+this.width.read(e)}px`)}))),this._register((0,c.OI)(this._state));const r=(0,c.un)((e=>{const t=this._diffModel.read(e),i=t?.diff.read(e);return i?i.movedTexts.map((e=>({move:e,original:new S.D1((0,c.lk)(e.lineRangeMapping.original.startLineNumber-1),18),modified:new S.D1((0,c.lk)(e.lineRangeMapping.modified.startLineNumber-1),18)}))):[]}));this._register((0,S.Vs)(this._editors.original,r.map((e=>e.map((e=>e.original)))))),this._register((0,S.Vs)(this._editors.modified,r.map((e=>e.map((e=>e.modified)))))),this._register((0,c.yC)(((e,t)=>{const i=r.read(e);for(const s of i)t.add(new Ue(this._editors.original,s.original,s.move,"original",this._diffModel.get())),t.add(new Ue(this._editors.modified,s.modified,s.move,"modified",this._diffModel.get()))})));const o=(0,c.yQ)("original.onDidFocusEditorWidget",(e=>this._editors.original.onDidFocusEditorWidget((()=>setTimeout((()=>e(void 0)),0))))),l=(0,c.yQ)("modified.onDidFocusEditorWidget",(e=>this._editors.modified.onDidFocusEditorWidget((()=>setTimeout((()=>e(void 0)),0)))));let h="modified";this._register((0,c.Y)({createEmptyChangeSummary:()=>{},handleChange:(e,t)=>(e.didChange(o)&&(h="original"),e.didChange(l)&&(h="modified"),!0)},(e=>{o.read(e),l.read(e);const t=this._diffModel.read(e);if(!t)return;const i=t.diff.read(e);let s;if(i&&"original"===h){const t=this._editors.originalCursor.read(e);t&&(s=i.movedTexts.find((e=>e.lineRangeMapping.original.contains(t.lineNumber))))}if(i&&"modified"===h){const t=this._editors.modifiedCursor.read(e);t&&(s=i.movedTexts.find((e=>e.lineRangeMapping.modified.contains(t.lineNumber))))}s!==t.movedTextToCompare.get()&&t.movedTextToCompare.set(void 0,void 0),t.setActiveMovedText(s)})))}}class Fe{static compute(e){const t=[],i=[];for(const s of e){let e=t.findIndex((e=>!e.intersectsStrict(s)));if(-1===e){const i=6;t.length>=i?e=(0,n.TM)(t,(0,v.VE)((e=>e.intersectWithRangeLength(s)),v.U9)):(e=t.length,t.push(new R.h))}t[e].addRange(s),i.push(e)}return new Fe(t.length,i)}constructor(e,t){this._trackCount=e,this.trackPerLineIdx=t}getTrack(e){return this.trackPerLineIdx[e]}getTrackCount(){return this._trackCount}}class Ue extends S.uN{constructor(e,t,i,n,r){const o=(0,s.h)("div.diff-hidden-lines-widget");super(e,t,o.root),this._editor=e,this._move=i,this._kind=n,this._diffModel=r,this._nodes=(0,s.h)("div.diff-moved-code-block",{style:{marginRight:"4px"}},[(0,s.h)("div.text-content@textContent"),(0,s.h)("div.action-bar@actionBar")]),o.root.appendChild(this._nodes.root);const a=(0,c.y0)(this._editor.onDidLayoutChange,(()=>this._editor.getLayoutInfo()));let l;this._register((0,S.AV)(this._nodes.root,{paddingRight:a.map((e=>e.verticalScrollbarWidth))})),l=i.changes.length>0?"original"===this._kind?(0,O.kg)("codeMovedToWithChanges","Code moved with changes to line {0}-{1}",this._move.lineRangeMapping.modified.startLineNumber,this._move.lineRangeMapping.modified.endLineNumberExclusive-1):(0,O.kg)("codeMovedFromWithChanges","Code moved with changes from line {0}-{1}",this._move.lineRangeMapping.original.startLineNumber,this._move.lineRangeMapping.original.endLineNumberExclusive-1):"original"===this._kind?(0,O.kg)("codeMovedTo","Code moved to line {0}-{1}",this._move.lineRangeMapping.modified.startLineNumber,this._move.lineRangeMapping.modified.endLineNumberExclusive-1):(0,O.kg)("codeMovedFrom","Code moved from line {0}-{1}",this._move.lineRangeMapping.original.startLineNumber,this._move.lineRangeMapping.original.endLineNumberExclusive-1);const h=this._register(new m.E(this._nodes.actionBar,{highlightToggledItems:!0})),d=new _.rc("",l,"",!1);h.push(d,{icon:!1,label:!0});const u=new _.rc("","Compare",E.L.asClassName(C.W.compareChanges),!0,(()=>{this._editor.focus(),this._diffModel.movedTextToCompare.set(this._diffModel.movedTextToCompare.get()===i?void 0:this._move,void 0)}));this._register((0,c.fm)((e=>{const t=this._diffModel.movedTextToCompare.read(e)===i;u.checked=t}))),h.push(u,{icon:!1,label:!0})}}class He extends a.jG{constructor(e,t,i,s){super(),this._editors=e,this._diffModel=t,this._options=i,this._decorations=(0,c.un)(this,(e=>{const t=this._diffModel.read(e),i=t?.diff.read(e);if(!i)return null;const s=this._diffModel.read(e).movedTextToCompare.read(e),n=this._options.renderIndicators.read(e),r=this._options.showEmptyDecorations.read(e),o=[],a=[];if(!s)for(const l of i.mappings)if(l.lineRangeMapping.original.isEmpty||o.push({range:l.lineRangeMapping.original.toInclusiveRange(),options:n?te.Ob:te.XT}),l.lineRangeMapping.modified.isEmpty||a.push({range:l.lineRangeMapping.modified.toInclusiveRange(),options:n?te.Kl:te.Zw}),l.lineRangeMapping.modified.isEmpty||l.lineRangeMapping.original.isEmpty)l.lineRangeMapping.original.isEmpty||o.push({range:l.lineRangeMapping.original.toInclusiveRange(),options:te.KL}),l.lineRangeMapping.modified.isEmpty||a.push({range:l.lineRangeMapping.modified.toInclusiveRange(),options:te.Ou});else{const i=this._options.useTrueInlineDiffRendering.read(e)&&De(l.lineRangeMapping);for(const e of l.lineRangeMapping.innerChanges||[])if(l.lineRangeMapping.original.contains(e.originalRange.startLineNumber)&&o.push({range:e.originalRange,options:e.originalRange.isEmpty()&&r?te.wp:te.Zb}),l.lineRangeMapping.modified.contains(e.modifiedRange.startLineNumber)&&a.push({range:e.modifiedRange,options:e.modifiedRange.isEmpty()&&r&&!i?te.GM:te.bk}),i){const i=t.model.original.getValueInRange(e.originalRange);a.push({range:e.modifiedRange,options:{description:"deleted-text",before:{content:i,inlineClassName:"inline-deleted-text"},zIndex:1e5,showIfCollapsed:!0}})}}if(s)for(const l of s.changes){const e=l.original.toInclusiveRange();e&&o.push({range:e,options:n?te.Ob:te.XT});const t=l.modified.toInclusiveRange();t&&a.push({range:t,options:n?te.Kl:te.Zw});for(const i of l.innerChanges||[])o.push({range:i.originalRange,options:te.Zb}),a.push({range:i.modifiedRange,options:te.bk})}const c=this._diffModel.read(e).activeMovedText.read(e);for(const l of i.movedTexts)o.push({range:l.lineRangeMapping.original.toInclusiveRange(),options:{description:"moved",blockClassName:"movedOriginal"+(l===c?" currentMove":""),blockPadding:[Pe.movedCodeBlockPadding,0,Pe.movedCodeBlockPadding,Pe.movedCodeBlockPadding]}}),a.push({range:l.lineRangeMapping.modified.toInclusiveRange(),options:{description:"moved",blockClassName:"movedModified"+(l===c?" currentMove":""),blockPadding:[4,0,4,4]}});return{originalDecorations:o,modifiedDecorations:a}})),this._register((0,S.pY)(this._editors.original,this._decorations.map((e=>e?.originalDecorations||[])))),this._register((0,S.pY)(this._editors.modified,this._decorations.map((e=>e?.modifiedDecorations||[]))))}}var Be=i(92403);class We{resetSash(){this._sashRatio.set(void 0,void 0)}constructor(e,t){this._options=e,this.dimensions=t,this.sashLeft=(0,l.dQ)(this,(e=>{const t=this._sashRatio.read(e)??this._options.splitViewDefaultRatio.read(e);return this._computeSashLeft(t,e)}),((e,t)=>{const i=this.dimensions.width.get();this._sashRatio.set(e/i,t)})),this._sashRatio=(0,c.FY)(this,void 0)}_computeSashLeft(e,t){const i=this.dimensions.width.read(t),s=Math.floor(this._options.splitViewDefaultRatio.read(t)*i),n=this._options.enableSplitViewResizing.read(t)?Math.floor(e*i):s,r=100;return i<=200?s:n<r?r:n>i-r?i-r:n}}class Ve extends a.jG{constructor(e,t,i,s,n,r){super(),this._domNode=e,this._dimensions=t,this._enabled=i,this._boundarySashes=s,this.sashLeft=n,this._resetSash=r,this._sash=this._register(new Be.m(this._domNode,{getVerticalSashTop:e=>0,getVerticalSashLeft:e=>this.sashLeft.get(),getVerticalSashHeight:e=>this._dimensions.height.get()},{orientation:0})),this._startSashPosition=void 0,this._register(this._sash.onDidStart((()=>{this._startSashPosition=this.sashLeft.get()}))),this._register(this._sash.onDidChange((e=>{this.sashLeft.set(this._startSashPosition+(e.currentX-e.startX),void 0)}))),this._register(this._sash.onDidEnd((()=>this._sash.layout()))),this._register(this._sash.onDidReset((()=>this._resetSash()))),this._register((0,c.fm)((e=>{const t=this._boundarySashes.read(e);t&&(this._sash.orthogonalEndSash=t.bottom)}))),this._register((0,c.fm)((e=>{const t=this._enabled.read(e);this._sash.state=t?3:0,this.sashLeft.read(e),this._dimensions.height.read(e),this._sash.layout()})))}}class ze extends a.jG{constructor(e,t,i){super(),this._editor=e,this._domNode=t,this.itemProvider=i,this.scrollTop=(0,c.y0)(this,this._editor.onDidScrollChange,(e=>this._editor.getScrollTop())),this.isScrollTopZero=this.scrollTop.map((e=>0===e)),this.modelAttached=(0,c.y0)(this,this._editor.onDidChangeModel,(e=>this._editor.hasModel())),this.editorOnDidChangeViewZones=(0,c.yQ)("onDidChangeViewZones",this._editor.onDidChangeViewZones),this.editorOnDidContentSizeChange=(0,c.yQ)("onDidContentSizeChange",this._editor.onDidContentSizeChange),this.domNodeSizeChanged=(0,c.Yd)("domNodeSizeChanged"),this.views=new Map,this._domNode.className="gutter monaco-editor";const n=this._domNode.appendChild((0,s.h)("div.scroll-decoration",{role:"presentation",ariaHidden:"true",style:{width:"100%"}}).root),r=new ResizeObserver((()=>{(0,c.Rn)((e=>{this.domNodeSizeChanged.trigger(e)}))}));r.observe(this._domNode),this._register((0,a.s)((()=>r.disconnect()))),this._register((0,c.fm)((e=>{n.className=this.isScrollTopZero.read(e)?"":"scroll-decoration"}))),this._register((0,c.fm)((e=>this.render(e))))}dispose(){super.dispose(),(0,s.Ln)(this._domNode)}render(e){if(!this.modelAttached.read(e))return;this.domNodeSizeChanged.read(e),this.editorOnDidChangeViewZones.read(e),this.editorOnDidContentSizeChange.read(e);const t=this.scrollTop.read(e),i=this._editor.getVisibleRanges(),s=new Set(this.views.keys()),n=R.L.ofStartAndLength(0,this._domNode.clientHeight);if(!n.isEmpty)for(const r of i){const i=new w.M(r.startLineNumber,r.endLineNumber+1),o=this.itemProvider.getIntersectingGutterItems(i,e);(0,c.Rn)((e=>{for(const r of o){if(!r.range.intersect(i))continue;s.delete(r.id);let o=this.views.get(r.id);if(o)o.item.set(r,e);else{const e=document.createElement("div");this._domNode.appendChild(e);const t=(0,c.FY)("item",r),i=this.itemProvider.createView(t,e);o=new Ge(t,i,e),this.views.set(r.id,o)}const a=r.range.startLineNumber<=this._editor.getModel().getLineCount()?this._editor.getTopForLineNumber(r.range.startLineNumber,!0)-t:this._editor.getBottomForLineNumber(r.range.startLineNumber-1,!1)-t,l=(1===r.range.endLineNumberExclusive?Math.max(a,this._editor.getTopForLineNumber(r.range.startLineNumber,!1)-t):Math.max(a,this._editor.getBottomForLineNumber(r.range.endLineNumberExclusive-1,!0)-t))-a;o.domNode.style.top=`${a}px`,o.domNode.style.height=`${l}px`,o.gutterItemView.layout(R.L.ofStartAndLength(a,l),n)}}))}for(const r of s){const e=this.views.get(r);e.gutterItemView.dispose(),e.domNode.remove(),this.views.delete(r)}}}class Ge{constructor(e,t,i){this.item=e,this.gutterItemView=t,this.domNode=i}}var je=i(25791),Ke=i(75295),Ye=i(50973);class qe extends Ke.CO{constructor(e){super(),this._textModel=e}getValueOfRange(e){return this._textModel.getValueInRange(e)}get length(){const e=this._textModel.getLineCount(),t=this._textModel.getLineLength(e);return new Ye.W(e-1,t)}}var $e=i(65644),Qe=i(27195),Xe=i(32848),Ze=i(67220),Je=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},et=function(e,t){return function(i,s){t(i,s,e)}};const tt=[];let it=class extends a.jG{constructor(e,t,i,n,r,o,a,h,d){super(),this._diffModel=t,this._editors=i,this._options=n,this._sashLayout=r,this._boundarySashes=o,this._instantiationService=a,this._contextKeyService=h,this._menuService=d,this._menu=this._register(this._menuService.createMenu(Qe.D8.DiffEditorHunkToolbar,this._contextKeyService)),this._actions=(0,c.y0)(this,this._menu.onDidChange,(()=>this._menu.getActions())),this._hasActions=this._actions.map((e=>e.length>0)),this._showSash=(0,c.un)(this,(e=>this._options.renderSideBySide.read(e)&&this._hasActions.read(e))),this.width=(0,c.un)(this,(e=>this._hasActions.read(e)?35:0)),this.elements=(0,s.h)("div.gutter@gutter",{style:{position:"absolute",height:"100%",width:"35px"}},[]),this._currentDiff=(0,c.un)(this,(e=>{const t=this._diffModel.read(e);if(!t)return;const i=t.diff.read(e)?.mappings,s=this._editors.modifiedCursor.read(e);return s?i?.find((e=>e.lineRangeMapping.modified.contains(s.lineNumber))):void 0})),this._selectedDiffs=(0,c.un)(this,(e=>{const t=this._diffModel.read(e),i=t?.diff.read(e);if(!i)return tt;const s=this._editors.modifiedSelections.read(e);if(s.every((e=>e.isEmpty())))return tt;const n=new w.S(s.map((e=>w.M.fromRangeInclusive(e)))),r=i.mappings.filter((e=>e.lineRangeMapping.innerChanges&&n.intersects(e.lineRangeMapping.modified))).map((e=>({mapping:e,rangeMappings:e.lineRangeMapping.innerChanges.filter((e=>s.some((t=>T.Q.areIntersecting(e.modifiedRange,t)))))})));return 0===r.length||r.every((e=>0===e.rangeMappings.length))?tt:r})),this._register((0,S.$y)(e,this.elements.root)),this._register((0,s.ko)(this.elements.root,"click",(()=>{this._editors.modified.focus()}))),this._register((0,S.AV)(this.elements.root,{display:this._hasActions.map((e=>e?"block":"none"))})),(0,l.a0)(this,(t=>this._showSash.read(t)?new Ve(e,this._sashLayout.dimensions,this._options.enableSplitViewResizing,this._boundarySashes,(0,l.dQ)(this,(e=>this._sashLayout.sashLeft.read(e)-35),((e,t)=>this._sashLayout.sashLeft.set(e+35,t))),(()=>this._sashLayout.resetSash())):void 0)).recomputeInitiallyAndOnChange(this._store),this._register(new ze(this._editors.modified,this.elements.root,{getIntersectingGutterItems:(e,t)=>{const i=this._diffModel.read(t);if(!i)return[];const s=i.diff.read(t);if(!s)return[];const n=this._selectedDiffs.read(t);if(n.length>0){const e=x.wm.fromRangeMappings(n.flatMap((e=>e.rangeMappings)));return[new st(e,!0,Qe.D8.DiffEditorSelectionToolbar,void 0,i.model.original.uri,i.model.modified.uri)]}const r=this._currentDiff.read(t);return s.mappings.map((e=>new st(e.lineRangeMapping.withInnerChangesFromLineRanges(),e.lineRangeMapping===r?.lineRangeMapping,Qe.D8.DiffEditorHunkToolbar,void 0,i.model.original.uri,i.model.modified.uri)))},createView:(e,t)=>this._instantiationService.createInstance(nt,e,t,this)})),this._register((0,s.ko)(this.elements.gutter,s.Bx.MOUSE_WHEEL,(e=>{this._editors.modified.getOption(104).handleMouseWheel&&this._editors.modified.delegateScrollFromMouseWheelEvent(e)}),{passive:!1}))}computeStagedValue(e){const t=e.innerChanges??[],i=new qe(this._editors.modifiedModel.get()),s=new qe(this._editors.original.getModel()),n=new Ke.mF(t.map((e=>e.toTextEdit(i))));return n.apply(s)}layout(e){this.elements.gutter.style.left=e+"px"}};it=Je([et(6,M._Y),et(7,Xe.fN),et(8,Qe.ez)],it);class st{constructor(e,t,i,s,n,r){this.mapping=e,this.showAlways=t,this.menuId=i,this.rangeOverride=s,this.originalUri=n,this.modifiedUri=r}get id(){return this.mapping.modified.toString()}get range(){return this.rangeOverride??this.mapping.modified}}let nt=class extends a.jG{constructor(e,t,i,n){super(),this._item=e,this._elements=(0,s.h)("div.gutterItem",{style:{height:"20px",width:"34px"}},[(0,s.h)("div.background@background",{},[]),(0,s.h)("div.buttons@buttons",{},[])]),this._showAlways=this._item.map(this,(e=>e.showAlways)),this._menuId=this._item.map(this,(e=>e.menuId)),this._isSmall=(0,c.FY)(this,!1),this._lastItemRange=void 0,this._lastViewRange=void 0;const r=this._register(n.createInstance(Ze.fO,"element",!0,{position:{hoverPosition:1}}));this._register((0,S.rX)(t,this._elements.root)),this._register((0,c.fm)((e=>{const t=this._showAlways.read(e);this._elements.root.classList.toggle("noTransition",!0),this._elements.root.classList.toggle("showAlways",t),setTimeout((()=>{this._elements.root.classList.toggle("noTransition",!1)}),0)}))),this._register((0,c.yC)(((e,t)=>{this._elements.buttons.replaceChildren();const s=t.add(n.createInstance($e.m,this._elements.buttons,this._menuId.read(e),{orientation:1,hoverDelegate:r,toolbarOptions:{primaryGroup:e=>e.startsWith("primary")},overflowBehavior:{maxItems:this._isSmall.read(e)?1:3},hiddenItemStrategy:0,actionRunner:new je.I((()=>{const e=this._item.get(),t=e.mapping;return{mapping:t,originalWithModifiedChanges:i.computeStagedValue(t),originalUri:e.originalUri,modifiedUri:e.modifiedUri}})),menuOptions:{shouldForwardArgs:!0}}));t.add(s.onDidChangeMenuItems((()=>{this._lastItemRange&&this.layout(this._lastItemRange,this._lastViewRange)})))})))}layout(e,t){this._lastItemRange=e,this._lastViewRange=t;let i=this._elements.buttons.clientHeight;this._isSmall.set(1===this._item.get().mapping.original.startLineNumber&&e.length<30,void 0),i=this._elements.buttons.clientHeight;const s=e.length/2-i/2,n=i;let r=e.start+s;const o=R.L.tryCreate(n,t.endExclusive-n-i),a=R.L.tryCreate(e.start+n,e.endExclusive-i-n);a&&o&&a.start<a.endExclusive&&(r=o.clip(r),r=a.clip(r)),this._elements.buttons.style.top=r-e.start+"px"}};nt=Je([et(3,M._Y)],nt);var rt,ot=i(34309),at=i(55275),ct=i(74850),lt=i(19531),ht=i(66261),dt=i(47612),ut=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},gt=function(e,t){return function(i,s){t(i,s,e)}};let pt=class extends a.jG{static{rt=this}static{this.ONE_OVERVIEW_WIDTH=15}static{this.ENTIRE_DIFF_OVERVIEW_WIDTH=2*this.ONE_OVERVIEW_WIDTH}constructor(e,t,i,n,r,o,a){super(),this._editors=e,this._rootElement=t,this._diffModel=i,this._rootWidth=n,this._rootHeight=r,this._modifiedEditorLayoutInfo=o,this._themeService=a,this.width=rt.ENTIRE_DIFF_OVERVIEW_WIDTH;const l=(0,c.y0)(this._themeService.onDidColorThemeChange,(()=>this._themeService.getColorTheme())),h=(0,c.un)((e=>{const t=l.read(e);return{insertColor:t.getColor(ht.ld8)||(t.getColor(ht.Gj6)||ht.EY1).transparent(2),removeColor:t.getColor(ht.$BZ)||(t.getColor(ht.GNm)||ht.ZEf).transparent(2)}})),d=(0,at.Z)(document.createElement("div"));d.setClassName("diffViewport"),d.setPosition("absolute");const u=(0,s.h)("div.diffOverview",{style:{position:"absolute",top:"0px",width:rt.ENTIRE_DIFF_OVERVIEW_WIDTH+"px"}}).root;this._register((0,S.rX)(u,d.domNode)),this._register((0,s.b2)(u,s.Bx.POINTER_DOWN,(e=>{this._editors.modified.delegateVerticalScrollbarPointerDown(e)}))),this._register((0,s.ko)(u,s.Bx.MOUSE_WHEEL,(e=>{this._editors.modified.delegateScrollFromMouseWheelEvent(e)}),{passive:!1})),this._register((0,S.rX)(this._rootElement,u)),this._register((0,c.yC)(((e,t)=>{const i=this._diffModel.read(e),s=this._editors.original.createOverviewRuler("original diffOverviewRuler");s&&(t.add(s),t.add((0,S.rX)(u,s.getDomNode())));const n=this._editors.modified.createOverviewRuler("modified diffOverviewRuler");if(n&&(t.add(n),t.add((0,S.rX)(u,n.getDomNode()))),!s||!n)return;const r=(0,c.yQ)("viewZoneChanged",this._editors.original.onDidChangeViewZones),o=(0,c.yQ)("viewZoneChanged",this._editors.modified.onDidChangeViewZones),a=(0,c.yQ)("hiddenRangesChanged",this._editors.original.onDidChangeHiddenAreas),l=(0,c.yQ)("hiddenRangesChanged",this._editors.modified.onDidChangeHiddenAreas);t.add((0,c.fm)((e=>{r.read(e),o.read(e),a.read(e),l.read(e);const t=h.read(e),c=i?.diff.read(e)?.mappings;function d(e,t,i){const s=i._getViewModel();return s?e.filter((e=>e.length>0)).map((e=>{const i=s.coordinatesConverter.convertModelPositionToViewPosition(new L.y(e.startLineNumber,1)),n=s.coordinatesConverter.convertModelPositionToViewPosition(new L.y(e.endLineNumberExclusive,1)),r=n.lineNumber-i.lineNumber;return new lt.iE(i.lineNumber,n.lineNumber,r,t.toString())})):[]}const u=d((c||[]).map((e=>e.lineRangeMapping.original)),t.removeColor,this._editors.original),g=d((c||[]).map((e=>e.lineRangeMapping.modified)),t.insertColor,this._editors.modified);s?.setZones(u),n?.setZones(g)}))),t.add((0,c.fm)((e=>{const t=this._rootHeight.read(e),i=this._rootWidth.read(e),r=this._modifiedEditorLayoutInfo.read(e);if(r){const i=rt.ENTIRE_DIFF_OVERVIEW_WIDTH-2*rt.ONE_OVERVIEW_WIDTH;s.setLayout({top:0,height:t,right:i+rt.ONE_OVERVIEW_WIDTH,width:rt.ONE_OVERVIEW_WIDTH}),n.setLayout({top:0,height:t,right:0,width:rt.ONE_OVERVIEW_WIDTH});const o=this._editors.modifiedScrollTop.read(e),a=this._editors.modifiedScrollHeight.read(e),c=this._editors.modified.getOption(104),l=new ct.m(c.verticalHasArrows?c.arrowSize:0,c.verticalScrollbarSize,0,r.height,a,o);d.setTop(l.getSliderPosition()),d.setHeight(l.getSliderSize())}else d.setTop(0),d.setHeight(0);u.style.height=t+"px",u.style.left=i-rt.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",d.setWidth(rt.ENTIRE_DIFF_OVERVIEW_WIDTH)})))})))}};pt=rt=ut([gt(6,dt.Gy)],pt);var mt=i(20370),ft=i(16223);const _t=[];class vt extends a.jG{constructor(e,t,i,s){super(),this._editors=e,this._diffModel=t,this._options=i,this._widget=s,this._selectedDiffs=(0,c.un)(this,(e=>{const t=this._diffModel.read(e),i=t?.diff.read(e);if(!i)return _t;const s=this._editors.modifiedSelections.read(e);if(s.every((e=>e.isEmpty())))return _t;const n=new w.S(s.map((e=>w.M.fromRangeInclusive(e)))),r=i.mappings.filter((e=>e.lineRangeMapping.innerChanges&&n.intersects(e.lineRangeMapping.modified))).map((e=>({mapping:e,rangeMappings:e.lineRangeMapping.innerChanges.filter((e=>s.some((t=>T.Q.areIntersecting(e.modifiedRange,t)))))})));return 0===r.length||r.every((e=>0===e.rangeMappings.length))?_t:r})),this._register((0,c.yC)(((e,t)=>{if(!this._options.shouldRenderOldRevertArrows.read(e))return;const i=this._diffModel.read(e),s=i?.diff.read(e);if(!i||!s)return;if(i.movedTextToCompare.read(e))return;const n=[],r=this._selectedDiffs.read(e),o=new Set(r.map((e=>e.mapping)));if(r.length>0){const i=this._editors.modifiedSelections.read(e),s=t.add(new Ct(i[i.length-1].positionLineNumber,this._widget,r.flatMap((e=>e.rangeMappings)),!0));this._editors.modified.addGlyphMarginWidget(s),n.push(s)}for(const a of s.mappings)if(!o.has(a)&&!a.lineRangeMapping.modified.isEmpty&&a.lineRangeMapping.innerChanges){const e=t.add(new Ct(a.lineRangeMapping.modified.startLineNumber,this._widget,a.lineRangeMapping,!1));this._editors.modified.addGlyphMarginWidget(e),n.push(e)}t.add((0,a.s)((()=>{for(const e of n)this._editors.modified.removeGlyphMarginWidget(e)})))})))}}class Ct extends a.jG{static{this.counter=0}getId(){return this._id}constructor(e,t,i,n){super(),this._lineNumber=e,this._widget=t,this._diffs=i,this._revertSelection=n,this._id="revertButton"+Ct.counter++,this._domNode=(0,s.h)("div.revertButton",{title:this._revertSelection?(0,O.kg)("revertSelectedChanges","Revert Selected Changes"):(0,O.kg)("revertChange","Revert Change")},[(0,mt.s)(C.W.arrowRight)]).root,this._register((0,s.ko)(this._domNode,s.Bx.MOUSE_DOWN,(e=>{2!==e.button&&(e.stopPropagation(),e.preventDefault())}))),this._register((0,s.ko)(this._domNode,s.Bx.MOUSE_UP,(e=>{e.stopPropagation(),e.preventDefault()}))),this._register((0,s.ko)(this._domNode,s.Bx.CLICK,(e=>{this._diffs instanceof x.WL?this._widget.revert(this._diffs):this._widget.revertRangeMappings(this._diffs),e.stopPropagation(),e.preventDefault()})))}getDomNode(){return this._domNode}getPosition(){return{lane:ft.ZS.Right,range:{startColumn:1,startLineNumber:this._lineNumber,endColumn:1,endLineNumber:this._lineNumber},zIndex:10001}}}var Et=i(71319),bt=i(23452),St=i(60002),yt=i(58345),wt=i(73823),Rt=i(38844),Lt=i(98031),Tt=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},xt=function(e,t){return function(i,s){t(i,s,e)}};let kt=class extends a.jG{get onDidContentSizeChange(){return this._onDidContentSizeChange.event}constructor(e,t,i,s,n,r,a){super(),this.originalEditorElement=e,this.modifiedEditorElement=t,this._options=i,this._argCodeEditorWidgetOptions=s,this._createInnerEditor=n,this._instantiationService=r,this._keybindingService=a,this.original=this._register(this._createLeftHandSideEditor(this._options.editorOptions.get(),this._argCodeEditorWidgetOptions.originalEditor||{})),this.modified=this._register(this._createRightHandSideEditor(this._options.editorOptions.get(),this._argCodeEditorWidgetOptions.modifiedEditor||{})),this._onDidContentSizeChange=this._register(new o.vl),this.modifiedScrollTop=(0,c.y0)(this,this.modified.onDidScrollChange,(()=>this.modified.getScrollTop())),this.modifiedScrollHeight=(0,c.y0)(this,this.modified.onDidScrollChange,(()=>this.modified.getScrollHeight())),this.modifiedObs=(0,Rt.Ud)(this.modified),this.originalObs=(0,Rt.Ud)(this.original),this.modifiedModel=this.modifiedObs.model,this.modifiedSelections=(0,c.y0)(this,this.modified.onDidChangeCursorSelection,(()=>this.modified.getSelections()??[])),this.modifiedCursor=(0,c.C)({owner:this,equalsFn:L.y.equals},(e=>this.modifiedSelections.read(e)[0]?.getPosition()??new L.y(1,1))),this.originalCursor=(0,c.y0)(this,this.original.onDidChangeCursorPosition,(()=>this.original.getPosition()??new L.y(1,1))),this._argCodeEditorWidgetOptions=null,this._register((0,c.Y)({createEmptyChangeSummary:()=>({}),handleChange:(e,t)=>(e.didChange(i.editorOptions)&&Object.assign(t,e.change.changedOptions),!0)},((e,t)=>{i.editorOptions.read(e),this._options.renderSideBySide.read(e),this.modified.updateOptions(this._adjustOptionsForRightHandSide(e,t)),this.original.updateOptions(this._adjustOptionsForLeftHandSide(e,t))})))}_createLeftHandSideEditor(e,t){const i=this._adjustOptionsForLeftHandSide(void 0,e),s=this._constructInnerEditor(this._instantiationService,this.originalEditorElement,i,t);return s.setContextValue("isInDiffLeftEditor",!0),s}_createRightHandSideEditor(e,t){const i=this._adjustOptionsForRightHandSide(void 0,e),s=this._constructInnerEditor(this._instantiationService,this.modifiedEditorElement,i,t);return s.setContextValue("isInDiffRightEditor",!0),s}_constructInnerEditor(e,t,i,s){const n=this._createInnerEditor(e,t,i,s);return this._register(n.onDidContentSizeChange((e=>{const t=this.original.getContentWidth()+this.modified.getContentWidth()+pt.ENTIRE_DIFF_OVERVIEW_WIDTH,i=Math.max(this.modified.getContentHeight(),this.original.getContentHeight());this._onDidContentSizeChange.fire({contentHeight:i,contentWidth:t,contentHeightChanged:e.contentHeightChanged,contentWidthChanged:e.contentWidthChanged})}))),n}_adjustOptionsForLeftHandSide(e,t){const i=this._adjustOptionsForSubEditor(t);return this._options.renderSideBySide.get()?(i.unicodeHighlight=this._options.editorOptions.get().unicodeHighlight||{},i.wordWrapOverride1=this._options.diffWordWrap.get()):(i.wordWrapOverride1="off",i.wordWrapOverride2="off",i.stickyScroll={enabled:!1},i.unicodeHighlight={nonBasicASCII:!1,ambiguousCharacters:!1,invisibleCharacters:!1}),i.glyphMargin=this._options.renderSideBySide.get(),t.originalAriaLabel&&(i.ariaLabel=t.originalAriaLabel),i.ariaLabel=this._updateAriaLabel(i.ariaLabel),i.readOnly=!this._options.originalEditable.get(),i.dropIntoEditor={enabled:!i.readOnly},i.extraEditorClassName="original-in-monaco-diff-editor",i}_adjustOptionsForRightHandSide(e,t){const i=this._adjustOptionsForSubEditor(t);return t.modifiedAriaLabel&&(i.ariaLabel=t.modifiedAriaLabel),i.ariaLabel=this._updateAriaLabel(i.ariaLabel),i.wordWrapOverride1=this._options.diffWordWrap.get(),i.revealHorizontalRightPadding=y.qB.revealHorizontalRightPadding.defaultValue+pt.ENTIRE_DIFF_OVERVIEW_WIDTH,i.scrollbar.verticalHasArrows=!1,i.extraEditorClassName="modified-in-monaco-diff-editor",i}_adjustOptionsForSubEditor(e){const t={...e,dimension:{height:0,width:0}};return t.inDiffEditor=!0,t.automaticLayout=!1,t.scrollbar={...t.scrollbar||{}},t.folding=!1,t.codeLens=this._options.diffCodeLens.get(),t.fixedOverflowWidgets=!0,t.minimap={...t.minimap||{}},t.minimap.enabled=!1,this._options.hideUnchangedRegions.get()?t.stickyScroll={enabled:!1}:t.stickyScroll=this._options.editorOptions.get().stickyScroll,t}_updateAriaLabel(e){e||(e="");const t=(0,O.kg)("diff-aria-navigation-tip"," use {0} to open the accessibility help.",this._keybindingService.lookupKeybinding("editor.action.accessibilityHelp")?.getAriaLabel());return this._options.accessibilityVerbose.get()?e+t:e?e.replaceAll(t,""):""}};kt=Tt([xt(5,M._Y),xt(6,Lt.b)],kt);class At extends a.jG{constructor(){super(...arguments),this._id=++At.idCounter,this._onDidDispose=this._register(new o.vl),this.onDidDispose=this._onDidDispose.event}static{this.idCounter=0}getId(){return this.getEditorType()+":v2:"+this._id}getVisibleColumnFromPosition(e){return this._targetEditor.getVisibleColumnFromPosition(e)}getPosition(){return this._targetEditor.getPosition()}setPosition(e,t="api"){this._targetEditor.setPosition(e,t)}revealLine(e,t=0){this._targetEditor.revealLine(e,t)}revealLineInCenter(e,t=0){this._targetEditor.revealLineInCenter(e,t)}revealLineInCenterIfOutsideViewport(e,t=0){this._targetEditor.revealLineInCenterIfOutsideViewport(e,t)}revealLineNearTop(e,t=0){this._targetEditor.revealLineNearTop(e,t)}revealPosition(e,t=0){this._targetEditor.revealPosition(e,t)}revealPositionInCenter(e,t=0){this._targetEditor.revealPositionInCenter(e,t)}revealPositionInCenterIfOutsideViewport(e,t=0){this._targetEditor.revealPositionInCenterIfOutsideViewport(e,t)}revealPositionNearTop(e,t=0){this._targetEditor.revealPositionNearTop(e,t)}getSelection(){return this._targetEditor.getSelection()}getSelections(){return this._targetEditor.getSelections()}setSelection(e,t="api"){this._targetEditor.setSelection(e,t)}setSelections(e,t="api"){this._targetEditor.setSelections(e,t)}revealLines(e,t,i=0){this._targetEditor.revealLines(e,t,i)}revealLinesInCenter(e,t,i=0){this._targetEditor.revealLinesInCenter(e,t,i)}revealLinesInCenterIfOutsideViewport(e,t,i=0){this._targetEditor.revealLinesInCenterIfOutsideViewport(e,t,i)}revealLinesNearTop(e,t,i=0){this._targetEditor.revealLinesNearTop(e,t,i)}revealRange(e,t=0,i=!1,s=!0){this._targetEditor.revealRange(e,t,i,s)}revealRangeInCenter(e,t=0){this._targetEditor.revealRangeInCenter(e,t)}revealRangeInCenterIfOutsideViewport(e,t=0){this._targetEditor.revealRangeInCenterIfOutsideViewport(e,t)}revealRangeNearTop(e,t=0){this._targetEditor.revealRangeNearTop(e,t)}revealRangeNearTopIfOutsideViewport(e,t=0){this._targetEditor.revealRangeNearTopIfOutsideViewport(e,t)}revealRangeAtTop(e,t=0){this._targetEditor.revealRangeAtTop(e,t)}getSupportedActions(){return this._targetEditor.getSupportedActions()}focus(){this._targetEditor.focus()}trigger(e,t,i){this._targetEditor.trigger(e,t,i)}createDecorationsCollection(e){return this._targetEditor.createDecorationsCollection(e)}changeDecorations(e){return this._targetEditor.changeDecorations(e)}}var Nt=i(13850),It=i(61059),Ot=i(253),Dt=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Mt=function(e,t){return function(i,s){t(i,s,e)}};let Pt=class{get editorOptions(){return this._options}constructor(e,t){this._accessibilityService=t,this._diffEditorWidth=(0,c.FY)(this,0),this._screenReaderMode=(0,c.y0)(this,this._accessibilityService.onDidChangeScreenReaderOptimized,(()=>this._accessibilityService.isScreenReaderOptimized())),this.couldShowInlineViewBecauseOfSize=(0,c.un)(this,(e=>this._options.read(e).renderSideBySide&&this._diffEditorWidth.read(e)<=this._options.read(e).renderSideBySideInlineBreakpoint)),this.renderOverviewRuler=(0,c.un)(this,(e=>this._options.read(e).renderOverviewRuler)),this.renderSideBySide=(0,c.un)(this,(e=>(!this.compactMode.read(e)||!this.shouldRenderInlineViewInSmartMode.read(e))&&(this._options.read(e).renderSideBySide&&!(this._options.read(e).useInlineViewWhenSpaceIsLimited&&this.couldShowInlineViewBecauseOfSize.read(e)&&!this._screenReaderMode.read(e))))),this.readOnly=(0,c.un)(this,(e=>this._options.read(e).readOnly)),this.shouldRenderOldRevertArrows=(0,c.un)(this,(e=>!!this._options.read(e).renderMarginRevertIcon&&(!!this.renderSideBySide.read(e)&&(!this.readOnly.read(e)&&!this.shouldRenderGutterMenu.read(e))))),this.shouldRenderGutterMenu=(0,c.un)(this,(e=>this._options.read(e).renderGutterMenu)),this.renderIndicators=(0,c.un)(this,(e=>this._options.read(e).renderIndicators)),this.enableSplitViewResizing=(0,c.un)(this,(e=>this._options.read(e).enableSplitViewResizing)),this.splitViewDefaultRatio=(0,c.un)(this,(e=>this._options.read(e).splitViewDefaultRatio)),this.ignoreTrimWhitespace=(0,c.un)(this,(e=>this._options.read(e).ignoreTrimWhitespace)),this.maxComputationTimeMs=(0,c.un)(this,(e=>this._options.read(e).maxComputationTime)),this.showMoves=(0,c.un)(this,(e=>this._options.read(e).experimental.showMoves&&this.renderSideBySide.read(e))),this.isInEmbeddedEditor=(0,c.un)(this,(e=>this._options.read(e).isInEmbeddedEditor)),this.diffWordWrap=(0,c.un)(this,(e=>this._options.read(e).diffWordWrap)),this.originalEditable=(0,c.un)(this,(e=>this._options.read(e).originalEditable)),this.diffCodeLens=(0,c.un)(this,(e=>this._options.read(e).diffCodeLens)),this.accessibilityVerbose=(0,c.un)(this,(e=>this._options.read(e).accessibilityVerbose)),this.diffAlgorithm=(0,c.un)(this,(e=>this._options.read(e).diffAlgorithm)),this.showEmptyDecorations=(0,c.un)(this,(e=>this._options.read(e).experimental.showEmptyDecorations)),this.onlyShowAccessibleDiffViewer=(0,c.un)(this,(e=>this._options.read(e).onlyShowAccessibleDiffViewer)),this.compactMode=(0,c.un)(this,(e=>this._options.read(e).compactMode)),this.trueInlineDiffRenderingEnabled=(0,c.un)(this,(e=>this._options.read(e).experimental.useTrueInlineView)),this.useTrueInlineDiffRendering=(0,c.un)(this,(e=>!this.renderSideBySide.read(e)&&this.trueInlineDiffRenderingEnabled.read(e))),this.hideUnchangedRegions=(0,c.un)(this,(e=>this._options.read(e).hideUnchangedRegions.enabled)),this.hideUnchangedRegionsRevealLineCount=(0,c.un)(this,(e=>this._options.read(e).hideUnchangedRegions.revealLineCount)),this.hideUnchangedRegionsContextLineCount=(0,c.un)(this,(e=>this._options.read(e).hideUnchangedRegions.contextLineCount)),this.hideUnchangedRegionsMinimumLineCount=(0,c.un)(this,(e=>this._options.read(e).hideUnchangedRegions.minimumLineCount)),this._model=(0,c.FY)(this,void 0),this.shouldRenderInlineViewInSmartMode=this._model.map(this,(e=>(0,Nt.t)(this,(t=>{const i=e?.diff.read(t);return i?(s=i,n=this.trueInlineDiffRenderingEnabled.read(t),s.mappings.every((e=>0===e.lineRangeMapping.original.length||function(e){return 0===e.modified.length}(e.lineRangeMapping)||n&&De(e.lineRangeMapping)))):void 0;var s,n})))).flatten().map(this,(e=>!!e)),this.inlineViewHideOriginalLineNumbers=this.compactMode;const i={...e,...Ft(e,It.q)};this._options=(0,c.FY)(this,i)}updateOptions(e){const t=Ft(e,this._options.get()),i={...this._options.get(),...e,...t};this._options.set(i,void 0,{changedOptions:e})}setWidth(e){this._diffEditorWidth.set(e,void 0)}setModel(e){this._model.set(e,void 0)}};function Ft(e,t){return{enableSplitViewResizing:(0,y.zM)(e.enableSplitViewResizing,t.enableSplitViewResizing),splitViewDefaultRatio:(0,y.ls)(e.splitViewDefaultRatio,.5,.1,.9),renderSideBySide:(0,y.zM)(e.renderSideBySide,t.renderSideBySide),renderMarginRevertIcon:(0,y.zM)(e.renderMarginRevertIcon,t.renderMarginRevertIcon),maxComputationTime:(0,y.wA)(e.maxComputationTime,t.maxComputationTime,0,1073741824),maxFileSize:(0,y.wA)(e.maxFileSize,t.maxFileSize,0,1073741824),ignoreTrimWhitespace:(0,y.zM)(e.ignoreTrimWhitespace,t.ignoreTrimWhitespace),renderIndicators:(0,y.zM)(e.renderIndicators,t.renderIndicators),originalEditable:(0,y.zM)(e.originalEditable,t.originalEditable),diffCodeLens:(0,y.zM)(e.diffCodeLens,t.diffCodeLens),renderOverviewRuler:(0,y.zM)(e.renderOverviewRuler,t.renderOverviewRuler),diffWordWrap:(0,y.O4)(e.diffWordWrap,t.diffWordWrap,["off","on","inherit"]),diffAlgorithm:(0,y.O4)(e.diffAlgorithm,t.diffAlgorithm,["legacy","advanced"],{smart:"legacy",experimental:"advanced"}),accessibilityVerbose:(0,y.zM)(e.accessibilityVerbose,t.accessibilityVerbose),experimental:{showMoves:(0,y.zM)(e.experimental?.showMoves,t.experimental.showMoves),showEmptyDecorations:(0,y.zM)(e.experimental?.showEmptyDecorations,t.experimental.showEmptyDecorations),useTrueInlineView:(0,y.zM)(e.experimental?.useTrueInlineView,t.experimental.useTrueInlineView)},hideUnchangedRegions:{enabled:(0,y.zM)(e.hideUnchangedRegions?.enabled??e.experimental?.collapseUnchangedRegions,t.hideUnchangedRegions.enabled),contextLineCount:(0,y.wA)(e.hideUnchangedRegions?.contextLineCount,t.hideUnchangedRegions.contextLineCount,0,1073741824),minimumLineCount:(0,y.wA)(e.hideUnchangedRegions?.minimumLineCount,t.hideUnchangedRegions.minimumLineCount,0,1073741824),revealLineCount:(0,y.wA)(e.hideUnchangedRegions?.revealLineCount,t.hideUnchangedRegions.revealLineCount,0,1073741824)},isInEmbeddedEditor:(0,y.zM)(e.isInEmbeddedEditor,t.isInEmbeddedEditor),onlyShowAccessibleDiffViewer:(0,y.zM)(e.onlyShowAccessibleDiffViewer,t.onlyShowAccessibleDiffViewer),renderSideBySideInlineBreakpoint:(0,y.wA)(e.renderSideBySideInlineBreakpoint,t.renderSideBySideInlineBreakpoint,0,1073741824),useInlineViewWhenSpaceIsLimited:(0,y.zM)(e.useInlineViewWhenSpaceIsLimited,t.useInlineViewWhenSpaceIsLimited),renderGutterMenu:(0,y.zM)(e.renderGutterMenu,t.renderGutterMenu),compactMode:(0,y.zM)(e.compactMode,t.compactMode)}}Pt=Dt([Mt(1,Ot.j)],Pt);var Ut=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Ht=function(e,t){return function(i,s){t(i,s,e)}};let Bt=class extends At{get onDidContentSizeChange(){return this._editors.onDidContentSizeChange}constructor(e,t,i,n,h,d,g,p){super(),this._domElement=e,this._parentContextKeyService=n,this._parentInstantiationService=h,this._accessibilitySignalService=g,this._editorProgressService=p,this.elements=(0,s.h)("div.monaco-diff-editor.side-by-side",{style:{position:"relative",height:"100%"}},[(0,s.h)("div.editor.original@original",{style:{position:"absolute",height:"100%"}}),(0,s.h)("div.editor.modified@modified",{style:{position:"absolute",height:"100%"}}),(0,s.h)("div.accessibleDiffViewer@accessibleDiffViewer",{style:{position:"absolute",height:"100%"}})]),this._diffModelSrc=this._register((0,c.X2)(this,void 0)),this._diffModel=(0,c.un)(this,(e=>this._diffModelSrc.read(e)?.object)),this.onDidChangeModel=o.Jh.fromObservableLight(this._diffModel),this._contextKeyService=this._register(this._parentContextKeyService.createScoped(this._domElement)),this._instantiationService=this._register(this._parentInstantiationService.createChild(new yt.a([Xe.fN,this._contextKeyService]))),this._boundarySashes=(0,c.FY)(this,void 0),this._accessibleDiffViewerShouldBeVisible=(0,c.FY)(this,!1),this._accessibleDiffViewerVisible=(0,c.un)(this,(e=>!!this._options.onlyShowAccessibleDiffViewer.read(e)||this._accessibleDiffViewerShouldBeVisible.read(e))),this._movedBlocksLinesPart=(0,c.FY)(this,void 0),this._layoutInfo=(0,c.un)(this,(e=>{const t=this._rootSizeObserver.width.read(e),i=this._rootSizeObserver.height.read(e);this._rootSizeObserver.automaticLayout?this.elements.root.style.height="100%":this.elements.root.style.height=i+"px";const s=this._sash.read(e),n=this._gutter.read(e),r=n?.width.read(e)??0,o=this._overviewRulerPart.read(e)?.width??0;let a,c,l,h,d;if(!!s){const i=s.sashLeft.read(e);a=0,c=i-r-(this._movedBlocksLinesPart.read(e)?.width.read(e)??0),d=i-r,l=i,h=t-l-o}else{d=0;a=r,c=this._options.inlineViewHideOriginalLineNumbers.read(e)?0:Math.max(5,this._editors.originalObs.layoutInfoDecorationsLeft.read(e)),l=r+c,h=t-l-o}return this.elements.original.style.left=a+"px",this.elements.original.style.width=c+"px",this._editors.original.layout({width:c,height:i},!0),n?.layout(d),this.elements.modified.style.left=l+"px",this.elements.modified.style.width=h+"px",this._editors.modified.layout({width:h,height:i},!0),{modifiedEditor:this._editors.modified.getLayoutInfo(),originalEditor:this._editors.original.getLayoutInfo()}})),this._diffValue=this._diffModel.map(((e,t)=>e?.diff.read(t))),this.onDidUpdateDiff=o.Jh.fromObservableLight(this._diffValue),d.willCreateDiffEditor(),this._contextKeyService.createKey("isInDiffEditor",!0),this._domElement.appendChild(this.elements.root),this._register((0,a.s)((()=>this.elements.root.remove()))),this._rootSizeObserver=this._register(new S.pN(this.elements.root,t.dimension)),this._rootSizeObserver.setAutomaticLayout(t.automaticLayout??!1),this._options=this._instantiationService.createInstance(Pt,t),this._register((0,c.fm)((e=>{this._options.setWidth(this._rootSizeObserver.width.read(e))}))),this._contextKeyService.createKey(St.R.isEmbeddedDiffEditor.key,!1),this._register((0,Et.w)(St.R.isEmbeddedDiffEditor,this._contextKeyService,(e=>this._options.isInEmbeddedEditor.read(e)))),this._register((0,Et.w)(St.R.comparingMovedCode,this._contextKeyService,(e=>!!this._diffModel.read(e)?.movedTextToCompare.read(e)))),this._register((0,Et.w)(St.R.diffEditorRenderSideBySideInlineBreakpointReached,this._contextKeyService,(e=>this._options.couldShowInlineViewBecauseOfSize.read(e)))),this._register((0,Et.w)(St.R.diffEditorInlineMode,this._contextKeyService,(e=>!this._options.renderSideBySide.read(e)))),this._register((0,Et.w)(St.R.hasChanges,this._contextKeyService,(e=>(this._diffModel.read(e)?.diff.read(e)?.mappings.length??0)>0))),this._editors=this._register(this._instantiationService.createInstance(kt,this.elements.original,this.elements.modified,this._options,i,((e,t,i,s)=>this._createInnerEditor(e,t,i,s)))),this._register((0,Et.w)(St.R.diffEditorOriginalWritable,this._contextKeyService,(e=>this._options.originalEditable.read(e)))),this._register((0,Et.w)(St.R.diffEditorModifiedWritable,this._contextKeyService,(e=>!this._options.readOnly.read(e)))),this._register((0,Et.w)(St.R.diffEditorOriginalUri,this._contextKeyService,(e=>this._diffModel.read(e)?.model.original.uri.toString()??""))),this._register((0,Et.w)(St.R.diffEditorModifiedUri,this._contextKeyService,(e=>this._diffModel.read(e)?.model.modified.uri.toString()??""))),this._overviewRulerPart=(0,l.a0)(this,(e=>this._options.renderOverviewRuler.read(e)?this._instantiationService.createInstance((0,ne.b)(pt,e),this._editors,this.elements.root,this._diffModel,this._rootSizeObserver.width,this._rootSizeObserver.height,this._layoutInfo.map((e=>e.modifiedEditor))):void 0)).recomputeInitiallyAndOnChange(this._store);const m={height:this._rootSizeObserver.height,width:this._rootSizeObserver.width.map(((e,t)=>e-(this._overviewRulerPart.read(t)?.width??0)))};this._sashLayout=new We(this._options,m),this._sash=(0,l.a0)(this,(e=>{const t=this._options.renderSideBySide.read(e);return this.elements.root.classList.toggle("side-by-side",t),t?new Ve(this.elements.root,m,this._options.enableSplitViewResizing,this._boundarySashes,this._sashLayout.sashLeft,(()=>this._sashLayout.resetSash())):void 0})).recomputeInitiallyAndOnChange(this._store);const f=(0,l.a0)(this,(e=>this._instantiationService.createInstance((0,ne.b)(ot.N,e),this._editors,this._diffModel,this._options))).recomputeInitiallyAndOnChange(this._store);(0,l.a0)(this,(e=>this._instantiationService.createInstance((0,ne.b)(He,e),this._editors,this._diffModel,this._options,this))).recomputeInitiallyAndOnChange(this._store);const _=new Set,v=new Set;let C=!1;const E=(0,l.a0)(this,(e=>this._instantiationService.createInstance((0,ne.b)(Ne,e),(0,s.zk)(this._domElement),this._editors,this._diffModel,this._options,this,(()=>C||f.get().isUpdatingHiddenAreas),_,v))).recomputeInitiallyAndOnChange(this._store),b=(0,c.un)(this,(e=>{const t=E.read(e).viewZones.read(e).orig,i=f.read(e).viewZones.read(e).origViewZones;return t.concat(i)})),y=(0,c.un)(this,(e=>{const t=E.read(e).viewZones.read(e).mod,i=f.read(e).viewZones.read(e).modViewZones;return t.concat(i)}));let w;this._register((0,S.Vs)(this._editors.original,b,(e=>{C=e}),_)),this._register((0,S.Vs)(this._editors.modified,y,(e=>{C=e,C?w=u.D.capture(this._editors.modified):(w?.restore(this._editors.modified),w=void 0)}),v)),this._accessibleDiffViewer=(0,l.a0)(this,(e=>this._instantiationService.createInstance((0,ne.b)(V,e),this.elements.accessibleDiffViewer,this._accessibleDiffViewerVisible,((e,t)=>this._accessibleDiffViewerShouldBeVisible.set(e,t)),this._options.onlyShowAccessibleDiffViewer.map((e=>!e)),this._rootSizeObserver.width,this._rootSizeObserver.height,this._diffModel.map(((e,t)=>e?.diff.read(t)?.mappings.map((e=>e.lineRangeMapping)))),new Z(this._editors)))).recomputeInitiallyAndOnChange(this._store);const R=this._accessibleDiffViewerVisible.map((e=>e?"hidden":"visible"));this._register((0,S.AV)(this.elements.modified,{visibility:R})),this._register((0,S.AV)(this.elements.original,{visibility:R})),this._createDiffEditorContributions(),d.addDiffEditor(this),this._gutter=(0,l.a0)(this,(e=>this._options.shouldRenderGutterMenu.read(e)?this._instantiationService.createInstance((0,ne.b)(it,e),this.elements.root,this._diffModel,this._editors,this._options,this._sashLayout,this._boundarySashes):void 0)),this._register((0,c.OI)(this._layoutInfo)),(0,l.a0)(this,(e=>new((0,ne.b)(Pe,e))(this.elements.root,this._diffModel,this._layoutInfo.map((e=>e.originalEditor)),this._layoutInfo.map((e=>e.modifiedEditor)),this._editors))).recomputeInitiallyAndOnChange(this._store,(e=>{this._movedBlocksLinesPart.set(e,void 0)})),this._register(o.Jh.runAndSubscribe(this._editors.modified.onDidChangeCursorPosition,(e=>this._handleCursorPositionChange(e,!0)))),this._register(o.Jh.runAndSubscribe(this._editors.original.onDidChangeCursorPosition,(e=>this._handleCursorPositionChange(e,!1))));const L=this._diffModel.map(this,((e,t)=>{if(e)return void 0===e.diff.read(t)&&!e.isDiffUpToDate.read(t)}));this._register((0,c.yC)(((e,t)=>{if(!0===L.read(e)){const e=this._editorProgressService.show(!0,1e3);t.add((0,a.s)((()=>e.done())))}}))),this._register((0,c.yC)(((e,t)=>{t.add(new((0,ne.b)(vt,e))(this._editors,this._diffModel,this._options,this))}))),this._register((0,c.yC)(((e,t)=>{const i=this._diffModel.read(e);if(i)for(const s of[i.model.original,i.model.modified])t.add(s.onWillDispose((e=>{(0,r.dz)(new r.D7("TextModel got disposed before DiffEditorWidget model got reset")),this.setModel(null)})))}))),this._register((0,c.fm)((e=>{this._options.setModel(this._diffModel.read(e))})))}_createInnerEditor(e,t,i,s){return e.createInstance(g.x,t,i,s)}_createDiffEditorContributions(){const e=h.dS.getDiffEditorContributions();for(const i of e)try{this._register(this._instantiationService.createInstance(i.ctor,this))}catch(t){(0,r.dz)(t)}}get _targetEditor(){return this._editors.modified}getEditorType(){return bt._.IDiffEditor}layout(e){this._rootSizeObserver.observe(e)}hasTextFocus(){return this._editors.original.hasTextFocus()||this._editors.modified.hasTextFocus()}saveViewState(){return{original:this._editors.original.saveViewState(),modified:this._editors.modified.saveViewState(),modelState:this._diffModel.get()?.serializeState()}}restoreViewState(e){if(e&&e.original&&e.modified){const t=e;this._editors.original.restoreViewState(t.original),this._editors.modified.restoreViewState(t.modified),t.modelState&&this._diffModel.get()?.restoreSerializedState(t.modelState)}}handleInitialized(){this._editors.original.handleInitialized(),this._editors.modified.handleInitialized()}createViewModel(e){return this._instantiationService.createInstance(ue,e,this._options)}getModel(){return this._diffModel.get()?.model??null}setModel(e){const t=e?"model"in e?S.O8.create(e).createNewRef(this):S.O8.create(this.createViewModel(e),this):null;this.setDiffModel(t)}setDiffModel(e,t){const i=this._diffModel.get();!e&&i&&this._accessibleDiffViewer.get().close(),this._diffModel.get()!==e?.object&&(0,c.PO)(t,(t=>{const i=e?.object;c.y0.batchEventsGlobally(t,(()=>{this._editors.original.setModel(i?i.model.original:null),this._editors.modified.setModel(i?i.model.modified:null)}));const s=this._diffModelSrc.get()?.createNewRef(this);this._diffModelSrc.set(e?.createNewRef(this),t),setTimeout((()=>{s?.dispose()}),0)}))}updateOptions(e){this._options.updateOptions(e)}getContainerDomNode(){return this._domElement}getOriginalEditor(){return this._editors.original}getModifiedEditor(){return this._editors.modified}getLineChanges(){const e=this._diffModel.get()?.diff.get();return e?e.mappings.map((e=>{const t=e.lineRangeMapping;let i,s,n,r,o=t.innerChanges;return t.original.isEmpty?(i=t.original.startLineNumber-1,s=0,o=void 0):(i=t.original.startLineNumber,s=t.original.endLineNumberExclusive-1),t.modified.isEmpty?(n=t.modified.startLineNumber-1,r=0,o=void 0):(n=t.modified.startLineNumber,r=t.modified.endLineNumberExclusive-1),{originalStartLineNumber:i,originalEndLineNumber:s,modifiedStartLineNumber:n,modifiedEndLineNumber:r,charChanges:o?.map((e=>({originalStartLineNumber:e.originalRange.startLineNumber,originalStartColumn:e.originalRange.startColumn,originalEndLineNumber:e.originalRange.endLineNumber,originalEndColumn:e.originalRange.endColumn,modifiedStartLineNumber:e.modifiedRange.startLineNumber,modifiedStartColumn:e.modifiedRange.startColumn,modifiedEndLineNumber:e.modifiedRange.endLineNumber,modifiedEndColumn:e.modifiedRange.endColumn})))}})):null}revert(e){const t=this._diffModel.get();t&&t.isDiffUpToDate.get()&&this._editors.modified.executeEdits("diffEditor",[{range:e.modified.toExclusiveRange(),text:t.model.original.getValueInRange(e.original.toExclusiveRange())}])}revertRangeMappings(e){const t=this._diffModel.get();if(!t||!t.isDiffUpToDate.get())return;const i=e.map((e=>({range:e.modifiedRange,text:t.model.original.getValueInRange(e.originalRange)})));this._editors.modified.executeEdits("diffEditor",i)}_goTo(e){this._editors.modified.setPosition(new L.y(e.lineRangeMapping.modified.startLineNumber,1)),this._editors.modified.revealRangeInCenter(e.lineRangeMapping.modified.toExclusiveRange())}goToDiff(e){const t=this._diffModel.get()?.diff.get()?.mappings;if(!t||0===t.length)return;const i=this._editors.modified.getPosition().lineNumber;let s;s="next"===e?t.find((e=>e.lineRangeMapping.modified.startLineNumber>i))??t[0]:(0,n.Uk)(t,(e=>e.lineRangeMapping.modified.startLineNumber<i))??t[t.length-1],this._goTo(s),s.lineRangeMapping.modified.isEmpty?this._accessibilitySignalService.playSignal(D.Rh.diffLineDeleted,{source:"diffEditor.goToDiff"}):s.lineRangeMapping.original.isEmpty?this._accessibilitySignalService.playSignal(D.Rh.diffLineInserted,{source:"diffEditor.goToDiff"}):s&&this._accessibilitySignalService.playSignal(D.Rh.diffLineModified,{source:"diffEditor.goToDiff"})}revealFirstDiff(){const e=this._diffModel.get();e&&this.waitForDiff().then((()=>{const t=e.diff.get()?.mappings;t&&0!==t.length&&this._goTo(t[0])}))}accessibleDiffViewerNext(){this._accessibleDiffViewer.get().next()}accessibleDiffViewerPrev(){this._accessibleDiffViewer.get().prev()}async waitForDiff(){const e=this._diffModel.get();e&&await e.waitForDiff()}mapToOtherSide(){const e=this._editors.modified.hasWidgetFocus(),t=e?this._editors.modified:this._editors.original,i=e?this._editors.original:this._editors.modified;let s;const n=t.getSelection();if(n){const t=this._diffModel.get()?.diff.get()?.mappings.map((t=>e?t.lineRangeMapping.flip():t.lineRangeMapping));if(t){const e=(0,S.Mu)(n.getStartPosition(),t),i=(0,S.Mu)(n.getEndPosition(),t);s=T.Q.plusRange(e,i)}}return{destination:i,destinationSelection:s}}switchSide(){const{destination:e,destinationSelection:t}=this.mapToOtherSide();e.focus(),t&&e.setSelection(t)}exitCompareMove(){const e=this._diffModel.get();e&&e.movedTextToCompare.set(void 0,void 0)}collapseAllUnchangedRegions(){const e=this._diffModel.get()?.unchangedRegions.get();e&&(0,c.Rn)((t=>{for(const i of e)i.collapseAll(t)}))}showAllUnchangedRegions(){const e=this._diffModel.get()?.unchangedRegions.get();e&&(0,c.Rn)((t=>{for(const i of e)i.showAll(t)}))}_handleCursorPositionChange(e,t){if(3===e?.reason){const i=this._diffModel.get()?.diff.get()?.mappings.find((i=>t?i.lineRangeMapping.modified.contains(e.position.lineNumber):i.lineRangeMapping.original.contains(e.position.lineNumber)));i?.lineRangeMapping.modified.isEmpty?this._accessibilitySignalService.playSignal(D.Rh.diffLineDeleted,{source:"diffEditor.cursorPositionChanged"}):i?.lineRangeMapping.original.isEmpty?this._accessibilitySignalService.playSignal(D.Rh.diffLineInserted,{source:"diffEditor.cursorPositionChanged"}):i&&this._accessibilitySignalService.playSignal(D.Rh.diffLineModified,{source:"diffEditor.cursorPositionChanged"})}}};Bt=Ut([Ht(3,Xe.fN),Ht(4,M._Y),Ht(5,d.T),Ht(6,D.Nt),Ht(7,wt.N8)],Bt)},4519:(e,t,i)=>{"use strict";var s=i(91090),n=i(5662),r=i(31450),o=i(60002),a=i(62083),c=i(56942),l=i(90766),h=i(64383),d=i(41234),u=i(60534),g=i(18447),p=i(631),m=i(79400),f=i(83069),_=i(18938),v=i(50091),C=i(32848);const E={Visible:new C.N1("parameterHintsVisible",!1),MultipleSignatures:new C.N1("parameterHintsMultipleSignatures",!1)};async function b(e,t,i,s,n){const r=e.ordered(t);for(const a of r)try{const e=await a.provideSignatureHelp(t,i,n,s);if(e)return e}catch(o){(0,h.M_)(o)}}var S;v.w.registerCommand("_executeSignatureHelpProvider",(async(e,...t)=>{const[i,s,n]=t;(0,p.j)(m.r.isUri(i)),(0,p.j)(f.y.isIPosition(s)),(0,p.j)("string"===typeof n||!n);const r=e.get(c.ILanguageFeaturesService),o=await e.get(_.ITextModelService).createModelReference(i);try{const e=await b(r.signatureHelpProvider,o.object.textEditorModel,f.y.lift(s),{triggerKind:a.WA.Invoke,isRetrigger:!1,triggerCharacter:n},g.XO.None);if(!e)return;return setTimeout((()=>e.dispose()),0),e.value}finally{o.dispose()}})),function(e){e.Default={type:0};e.Pending=class{constructor(e,t){this.request=e,this.previouslyActiveHints=t,this.type=2}};e.Active=class{constructor(e){this.hints=e,this.type=1}}}(S||(S={}));class y extends n.jG{static{this.DEFAULT_DELAY=120}constructor(e,t,i=y.DEFAULT_DELAY){super(),this._onChangedHints=this._register(new d.vl),this.onChangedHints=this._onChangedHints.event,this.triggerOnType=!1,this._state=S.Default,this._pendingTriggers=[],this._lastSignatureHelpResult=this._register(new n.HE),this.triggerChars=new u.y,this.retriggerChars=new u.y,this.triggerId=0,this.editor=e,this.providers=t,this.throttledDelayer=new l.ve(i),this._register(this.editor.onDidBlurEditorWidget((()=>this.cancel()))),this._register(this.editor.onDidChangeConfiguration((()=>this.onEditorConfigurationChange()))),this._register(this.editor.onDidChangeModel((e=>this.onModelChanged()))),this._register(this.editor.onDidChangeModelLanguage((e=>this.onModelChanged()))),this._register(this.editor.onDidChangeCursorSelection((e=>this.onCursorChange(e)))),this._register(this.editor.onDidChangeModelContent((e=>this.onModelContentChange()))),this._register(this.providers.onDidChange(this.onModelChanged,this)),this._register(this.editor.onDidType((e=>this.onDidType(e)))),this.onEditorConfigurationChange(),this.onModelChanged()}get state(){return this._state}set state(e){2===this._state.type&&this._state.request.cancel(),this._state=e}cancel(e=!1){this.state=S.Default,this.throttledDelayer.cancel(),e||this._onChangedHints.fire(void 0)}trigger(e,t){const i=this.editor.getModel();if(!i||!this.providers.has(i))return;const s=++this.triggerId;this._pendingTriggers.push(e),this.throttledDelayer.trigger((()=>this.doTrigger(s)),t).catch(h.dz)}next(){if(1!==this.state.type)return;const e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,i=t%e===e-1,s=this.editor.getOption(86).cycle;!(e<2||i)||s?this.updateActiveSignature(i&&s?0:t+1):this.cancel()}previous(){if(1!==this.state.type)return;const e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,i=0===t,s=this.editor.getOption(86).cycle;!(e<2||i)||s?this.updateActiveSignature(i&&s?e-1:t-1):this.cancel()}updateActiveSignature(e){1===this.state.type&&(this.state=new S.Active({...this.state.hints,activeSignature:e}),this._onChangedHints.fire(this.state.hints))}async doTrigger(e){const t=1===this.state.type||2===this.state.type,i=this.getLastActiveHints();if(this.cancel(!0),0===this._pendingTriggers.length)return!1;const s=this._pendingTriggers.reduce(w);this._pendingTriggers=[];const n={triggerKind:s.triggerKind,triggerCharacter:s.triggerCharacter,isRetrigger:t,activeSignatureHelp:i};if(!this.editor.hasModel())return!1;const r=this.editor.getModel(),o=this.editor.getPosition();this.state=new S.Pending((0,l.SS)((e=>b(this.providers,r,o,n,e))),i);try{const t=await this.state.request;return e!==this.triggerId?(t?.dispose(),!1):t&&t.value.signatures&&0!==t.value.signatures.length?(this.state=new S.Active(t.value),this._lastSignatureHelpResult.value=t,this._onChangedHints.fire(this.state.hints),!0):(t?.dispose(),this._lastSignatureHelpResult.clear(),this.cancel(),!1)}catch(a){return e===this.triggerId&&(this.state=S.Default),(0,h.dz)(a),!1}}getLastActiveHints(){switch(this.state.type){case 1:return this.state.hints;case 2:return this.state.previouslyActiveHints;default:return}}get isTriggered(){return 1===this.state.type||2===this.state.type||this.throttledDelayer.isTriggered()}onModelChanged(){this.cancel(),this.triggerChars.clear(),this.retriggerChars.clear();const e=this.editor.getModel();if(e)for(const t of this.providers.ordered(e)){for(const e of t.signatureHelpTriggerCharacters||[])if(e.length){const t=e.charCodeAt(0);this.triggerChars.add(t),this.retriggerChars.add(t)}for(const e of t.signatureHelpRetriggerCharacters||[])e.length&&this.retriggerChars.add(e.charCodeAt(0))}}onDidType(e){if(!this.triggerOnType)return;const t=e.length-1,i=e.charCodeAt(t);(this.triggerChars.has(i)||this.isTriggered&&this.retriggerChars.has(i))&&this.trigger({triggerKind:a.WA.TriggerCharacter,triggerCharacter:e.charAt(t)})}onCursorChange(e){"mouse"===e.source?this.cancel():this.isTriggered&&this.trigger({triggerKind:a.WA.ContentChange})}onModelContentChange(){this.isTriggered&&this.trigger({triggerKind:a.WA.ContentChange})}onEditorConfigurationChange(){this.triggerOnType=this.editor.getOption(86).enabled,this.triggerOnType||this.cancel()}dispose(){this.cancel(!0),super.dispose()}}function w(e,t){switch(t.triggerKind){case a.WA.Invoke:return t;case a.WA.ContentChange:return e;case a.WA.TriggerCharacter:default:return t}}var R,L=i(78209),T=i(63591),x=i(8597),k=i(11007),A=i(31295),N=i(10350),I=i(91508),O=i(87908),D=i(10154),M=i(20492),P=i(49099),F=i(66261),U=i(61394),H=i(25689),B=i(78381),W=i(90651),V=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},z=function(e,t){return function(i,s){t(i,s,e)}};const G=x.$,j=(0,U.pU)("parameter-hints-next",N.W.chevronDown,L.kg("parameterHintsNextIcon","Icon for show next parameter hint.")),K=(0,U.pU)("parameter-hints-previous",N.W.chevronUp,L.kg("parameterHintsPreviousIcon","Icon for show previous parameter hint."));let Y=class extends n.jG{static{R=this}static{this.ID="editor.widget.parameterHintsWidget"}constructor(e,t,i,s,r,o){super(),this.editor=e,this.model=t,this.telemetryService=o,this.renderDisposeables=this._register(new n.Cm),this.visible=!1,this.announcedLabel=null,this.allowEditorOverflow=!0,this.markdownRenderer=this._register(new M.T({editor:e},r,s)),this.keyVisible=E.Visible.bindTo(i),this.keyMultipleSignatures=E.MultipleSignatures.bindTo(i)}createParameterHintDOMNodes(){const e=G(".editor-widget.parameter-hints-widget"),t=x.BC(e,G(".phwrapper"));t.tabIndex=-1;const i=x.BC(t,G(".controls")),s=x.BC(i,G(".button"+H.L.asCSSSelector(K))),n=x.BC(i,G(".overloads")),r=x.BC(i,G(".button"+H.L.asCSSSelector(j)));this._register(x.ko(s,"click",(e=>{x.fs.stop(e),this.previous()}))),this._register(x.ko(r,"click",(e=>{x.fs.stop(e),this.next()})));const o=G(".body"),a=new A.MU(o,{alwaysConsumeMouseWheel:!0});this._register(a),t.appendChild(a.getDomNode());const c=x.BC(o,G(".signature")),l=x.BC(o,G(".docs"));e.style.userSelect="text",this.domNodes={element:e,signature:c,overloads:n,docs:l,scrollbar:a},this.editor.addContentWidget(this),this.hide(),this._register(this.editor.onDidChangeCursorSelection((e=>{this.visible&&this.editor.layoutContentWidget(this)})));const h=()=>{if(!this.domNodes)return;const e=this.editor.getOption(50),t=this.domNodes.element;t.style.fontSize=`${e.fontSize}px`,t.style.lineHeight=""+e.lineHeight/e.fontSize,t.style.setProperty("--vscode-parameterHintsWidget-editorFontFamily",e.fontFamily),t.style.setProperty("--vscode-parameterHintsWidget-editorFontFamilyDefault",O.jU.fontFamily)};h(),this._register(d.Jh.chain(this.editor.onDidChangeConfiguration.bind(this.editor),(e=>e.filter((e=>e.hasChanged(50)))))(h)),this._register(this.editor.onDidLayoutChange((e=>this.updateMaxHeight()))),this.updateMaxHeight()}show(){this.visible||(this.domNodes||this.createParameterHintDOMNodes(),this.keyVisible.set(!0),this.visible=!0,setTimeout((()=>{this.domNodes?.element.classList.add("visible")}),100),this.editor.layoutContentWidget(this))}hide(){this.renderDisposeables.clear(),this.visible&&(this.keyVisible.reset(),this.visible=!1,this.announcedLabel=null,this.domNodes?.element.classList.remove("visible"),this.editor.layoutContentWidget(this))}getPosition(){return this.visible?{position:this.editor.getPosition(),preference:[1,2]}:null}render(e){if(this.renderDisposeables.clear(),!this.domNodes)return;const t=e.signatures.length>1;this.domNodes.element.classList.toggle("multiple",t),this.keyMultipleSignatures.set(t),this.domNodes.signature.innerText="",this.domNodes.docs.innerText="";const i=e.signatures[e.activeSignature];if(!i)return;const s=x.BC(this.domNodes.signature,G(".code")),n=i.parameters.length>0,r=i.activeParameter??e.activeParameter;if(n)this.renderParameters(s,i,r);else{x.BC(s,G("span")).textContent=i.label}const o=i.parameters[r];if(o?.documentation){const e=G("span.documentation");if("string"===typeof o.documentation)e.textContent=o.documentation;else{const t=this.renderMarkdownDocs(o.documentation);e.appendChild(t.element)}x.BC(this.domNodes.docs,G("p",{},e))}if(void 0===i.documentation);else if("string"===typeof i.documentation)x.BC(this.domNodes.docs,G("p",{},i.documentation));else{const e=this.renderMarkdownDocs(i.documentation);x.BC(this.domNodes.docs,e.element)}const a=this.hasDocs(i,o);if(this.domNodes.signature.classList.toggle("has-docs",a),this.domNodes.docs.classList.toggle("empty",!a),this.domNodes.overloads.textContent=String(e.activeSignature+1).padStart(e.signatures.length.toString().length,"0")+"/"+e.signatures.length,o){let e="";const t=i.parameters[r];e=Array.isArray(t.label)?i.label.substring(t.label[0],t.label[1]):t.label,t.documentation&&(e+="string"===typeof t.documentation?`, ${t.documentation}`:`, ${t.documentation.value}`),i.documentation&&(e+="string"===typeof i.documentation?`, ${i.documentation}`:`, ${i.documentation.value}`),this.announcedLabel!==e&&(k.xE(L.kg("hint","{0}, hint",e)),this.announcedLabel=e)}this.editor.layoutContentWidget(this),this.domNodes.scrollbar.scanDomNode()}renderMarkdownDocs(e){const t=new B.W,i=this.renderDisposeables.add(this.markdownRenderer.render(e,{asyncRenderCallback:()=>{this.domNodes?.scrollbar.scanDomNode()}}));i.element.classList.add("markdown-docs");const s=t.elapsed();return s>300&&this.telemetryService.publicLog2("parameterHints.parseMarkdown",{renderDuration:s}),i}hasDocs(e,t){return!!(t&&"string"===typeof t.documentation&&(0,p.eU)(t.documentation).length>0)||(!!(t&&"object"===typeof t.documentation&&(0,p.eU)(t.documentation).value.length>0)||(!!(e.documentation&&"string"===typeof e.documentation&&(0,p.eU)(e.documentation).length>0)||!!(e.documentation&&"object"===typeof e.documentation&&(0,p.eU)(e.documentation.value).length>0)))}renderParameters(e,t,i){const[s,n]=this.getParameterLabelOffsets(t,i),r=document.createElement("span");r.textContent=t.label.substring(0,s);const o=document.createElement("span");o.textContent=t.label.substring(s,n),o.className="parameter active";const a=document.createElement("span");a.textContent=t.label.substring(n),x.BC(e,r,o,a)}getParameterLabelOffsets(e,t){const i=e.parameters[t];if(i){if(Array.isArray(i.label))return i.label;if(i.label.length){const t=new RegExp(`(\\W|^)${(0,I.bm)(i.label)}(?=\\W|$)`,"g");t.test(e.label);const s=t.lastIndex-i.label.length;return s>=0?[s,t.lastIndex]:[0,0]}return[0,0]}return[0,0]}next(){this.editor.focus(),this.model.next()}previous(){this.editor.focus(),this.model.previous()}getDomNode(){return this.domNodes||this.createParameterHintDOMNodes(),this.domNodes.element}getId(){return R.ID}updateMaxHeight(){if(!this.domNodes)return;const e=`${Math.max(this.editor.getLayoutInfo().height/4,250)}px`;this.domNodes.element.style.maxHeight=e;const t=this.domNodes.element.getElementsByClassName("phwrapper");t.length&&(t[0].style.maxHeight=e)}};Y=R=V([z(2,C.fN),z(3,P.C),z(4,D.L),z(5,W.k)],Y),(0,F.x1A)("editorHoverWidget.highlightForeground",F.QI5,L.kg("editorHoverWidgetHighlightForeground","Foreground color of the active item in the parameter hint."));var q,$=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Q=function(e,t){return function(i,s){t(i,s,e)}};let X=class extends n.jG{static{q=this}static{this.ID="editor.controller.parameterHints"}static get(e){return e.getContribution(q.ID)}constructor(e,t,i){super(),this.editor=e,this.model=this._register(new y(e,i.signatureHelpProvider)),this._register(this.model.onChangedHints((e=>{e?(this.widget.value.show(),this.widget.value.render(e)):this.widget.rawValue?.hide()}))),this.widget=new s.d((()=>this._register(t.createInstance(Y,this.editor,this.model))))}cancel(){this.model.cancel()}previous(){this.widget.rawValue?.previous()}next(){this.widget.rawValue?.next()}trigger(e){this.model.trigger(e,0)}};X=q=$([Q(1,T._Y),Q(2,c.ILanguageFeaturesService)],X);class Z extends r.ks{constructor(){super({id:"editor.action.triggerParameterHints",label:L.kg("parameterHints.trigger.label","Trigger Parameter Hints"),alias:"Trigger Parameter Hints",precondition:o.R.hasSignatureHelpProvider,kbOpts:{kbExpr:o.R.editorTextFocus,primary:3082,weight:100}})}run(e,t){const i=X.get(t);i?.trigger({triggerKind:a.WA.Invoke})}}(0,r.HW)(X.ID,X,2),(0,r.Fl)(Z);const J=r.DX.bindToContribution(X.get);(0,r.E_)(new J({id:"closeParameterHints",precondition:E.Visible,handler:e=>e.cancel(),kbOpts:{weight:175,kbExpr:o.R.focus,primary:9,secondary:[1033]}})),(0,r.E_)(new J({id:"showPrevParameterHint",precondition:C.M$.and(E.Visible,E.MultipleSignatures),handler:e=>e.previous(),kbOpts:{weight:175,kbExpr:o.R.focus,primary:16,secondary:[528],mac:{primary:16,secondary:[528,302]}}})),(0,r.E_)(new J({id:"showNextParameterHint",precondition:C.M$.and(E.Visible,E.MultipleSignatures),handler:e=>e.next(),kbOpts:{weight:175,kbExpr:o.R.focus,primary:18,secondary:[530],mac:{primary:18,secondary:[530,300]}}}))},4836:(e,t,i)=>{"use strict";var s=i(31450),n=i(94371),r=i(8995),o=i(91508),a=i(60002),c=i(55130),l=i(78209),h=i(32848),d=i(61407),u=i(71933),g=i(59473);function p(e){return h.M$.regex(g.D_.keys()[0],new RegExp("(\\s|^)"+(0,o.bm)(e.value)+"\\b"))}const m={type:"object",defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:l.kg("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:l.kg("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[l.kg("args.schema.apply.first","Always apply the first returned code action."),l.kg("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),l.kg("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:l.kg("args.schema.preferred","Controls if only preferred code actions should be returned.")}}};function f(e,t,i,s,n=d.fo.Default){if(e.hasModel()){const r=u.C.get(e);r?.manualTriggerAtCurrentPosition(t,n,i,s)}}class _ extends s.ks{constructor(){super({id:c.pQ,label:l.kg("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:h.M$.and(a.R.writable,a.R.hasCodeActionsProvider),kbOpts:{kbExpr:a.R.textInputFocus,primary:2137,weight:100}})}run(e,t){return f(t,l.kg("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0,d.fo.QuickFix)}}class v extends s.DX{constructor(){super({id:c.k_,precondition:h.M$.and(a.R.writable,a.R.hasCodeActionsProvider),metadata:{description:"Trigger a code action",args:[{name:"args",schema:m}]}})}runEditorCommand(e,t,i){const s=d.QA.fromUser(i,{kind:r.k.Empty,apply:"ifSingle"});return f(t,"string"===typeof i?.kind?s.preferred?l.kg("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",i.kind):l.kg("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",i.kind):s.preferred?l.kg("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):l.kg("editor.action.codeAction.noneMessage","No code actions available"),{include:s.kind,includeSourceActions:!0,onlyIncludePreferredActions:s.preferred},s.apply)}}class C extends s.ks{constructor(){super({id:c.Xj,label:l.kg("refactor.label","Refactor..."),alias:"Refactor...",precondition:h.M$.and(a.R.writable,a.R.hasCodeActionsProvider),kbOpts:{kbExpr:a.R.textInputFocus,primary:3120,mac:{primary:1328},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:h.M$.and(a.R.writable,p(d.gB.Refactor))},metadata:{description:"Refactor...",args:[{name:"args",schema:m}]}})}run(e,t,i){const s=d.QA.fromUser(i,{kind:d.gB.Refactor,apply:"never"});return f(t,"string"===typeof i?.kind?s.preferred?l.kg("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",i.kind):l.kg("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",i.kind):s.preferred?l.kg("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):l.kg("editor.action.refactor.noneMessage","No refactorings available"),{include:d.gB.Refactor.contains(s.kind)?s.kind:r.k.None,onlyIncludePreferredActions:s.preferred},s.apply,d.fo.Refactor)}}class E extends s.ks{constructor(){super({id:c.C9,label:l.kg("source.label","Source Action..."),alias:"Source Action...",precondition:h.M$.and(a.R.writable,a.R.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:h.M$.and(a.R.writable,p(d.gB.Source))},metadata:{description:"Source Action...",args:[{name:"args",schema:m}]}})}run(e,t,i){const s=d.QA.fromUser(i,{kind:d.gB.Source,apply:"never"});return f(t,"string"===typeof i?.kind?s.preferred?l.kg("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",i.kind):l.kg("editor.action.source.noneMessage.kind","No source actions for '{0}' available",i.kind):s.preferred?l.kg("editor.action.source.noneMessage.preferred","No preferred source actions available"):l.kg("editor.action.source.noneMessage","No source actions available"),{include:d.gB.Source.contains(s.kind)?s.kind:r.k.None,includeSourceActions:!0,onlyIncludePreferredActions:s.preferred},s.apply,d.fo.SourceAction)}}class b extends s.ks{constructor(){super({id:c.Uy,label:l.kg("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:h.M$.and(a.R.writable,p(d.gB.SourceOrganizeImports)),kbOpts:{kbExpr:a.R.textInputFocus,primary:1581,weight:100}})}run(e,t){return f(t,l.kg("editor.action.organize.noneMessage","No organize imports action available"),{include:d.gB.SourceOrganizeImports,includeSourceActions:!0},"ifSingle",d.fo.OrganizeImports)}}class S extends s.ks{constructor(){super({id:c.Rw,label:l.kg("fixAll.label","Fix All"),alias:"Fix All",precondition:h.M$.and(a.R.writable,p(d.gB.SourceFixAll))})}run(e,t){return f(t,l.kg("fixAll.noneMessage","No fix all action available"),{include:d.gB.SourceFixAll,includeSourceActions:!0},"ifSingle",d.fo.FixAll)}}class y extends s.ks{constructor(){super({id:c.pR,label:l.kg("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:h.M$.and(a.R.writable,p(d.gB.QuickFix)),kbOpts:{kbExpr:a.R.textInputFocus,primary:1625,mac:{primary:2649},weight:100}})}run(e,t){return f(t,l.kg("editor.action.autoFix.noneMessage","No auto fixes available"),{include:d.gB.QuickFix,onlyIncludePreferredActions:!0},"ifSingle",d.fo.AutoFix)}}var w=i(96758),R=i(1646),L=i(46359);(0,s.HW)(u.C.ID,u.C,3),(0,s.HW)(w.E.ID,w.E,4),(0,s.Fl)(_),(0,s.Fl)(C),(0,s.Fl)(E),(0,s.Fl)(b),(0,s.Fl)(y),(0,s.Fl)(S),(0,s.E_)(new v),L.O.as(R.Fd.Configuration).registerConfiguration({...n.JJ,properties:{"editor.codeActionWidget.showHeaders":{type:"boolean",scope:5,description:l.kg("showCodeActionHeaders","Enable/disable showing group headers in the Code Action menu."),default:!0}}}),L.O.as(R.Fd.Configuration).registerConfiguration({...n.JJ,properties:{"editor.codeActionWidget.includeNearbyQuickFixes":{type:"boolean",scope:5,description:l.kg("includeNearbyQuickFixes","Enable/disable showing nearest Quick Fix within a line when not currently on a diagnostic."),default:!0}}}),L.O.as(R.Fd.Configuration).registerConfiguration({...n.JJ,properties:{"editor.codeActions.triggerOnFocusChange":{type:"boolean",scope:5,markdownDescription:l.kg("triggerOnFocusChange","Enable triggering {0} when {1} is set to {2}. Code Actions must be set to {3} to be triggered for window and focus changes.","`#editor.codeActionsOnSave#`","`#files.autoSave#`","`afterDelay`","`always`"),default:!1}}})},4853:(e,t,i)=>{"use strict";i.d(t,{cB:()=>l});var s=i(91508);class n{constructor(){this._value="",this._pos=0}reset(e){return this._value=e,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos<this._value.length-1}cmp(e){return e.charCodeAt(0)-this._value.charCodeAt(this._pos)}value(){return this._value[this._pos]}}class r{constructor(e=!0){this._caseSensitive=e}reset(e){return this._value=e,this._from=0,this._to=0,this.next()}hasNext(){return this._to<this._value.length}next(){this._from=this._to;let e=!0;for(;this._to<this._value.length;this._to++){if(46===this._value.charCodeAt(this._to)){if(!e)break;this._from++}else e=!1}return this}cmp(e){return this._caseSensitive?(0,s.lF)(e,this._value,0,e.length,this._from,this._to):(0,s.zd)(e,this._value,0,e.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}class o{constructor(e=!0,t=!0){this._splitOnBackslash=e,this._caseSensitive=t}reset(e){this._from=0,this._to=0,this._value=e,this._valueLen=e.length;for(let t=e.length-1;t>=0;t--,this._valueLen--){const e=this._value.charCodeAt(t);if(!(47===e||this._splitOnBackslash&&92===e))break}return this.next()}hasNext(){return this._to<this._valueLen}next(){this._from=this._to;let e=!0;for(;this._to<this._valueLen;this._to++){const t=this._value.charCodeAt(this._to);if(47===t||this._splitOnBackslash&&92===t){if(!e)break;this._from++}else e=!1}return this}cmp(e){return this._caseSensitive?(0,s.lF)(e,this._value,0,e.length,this._from,this._to):(0,s.zd)(e,this._value,0,e.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}class a{constructor(e,t){this._ignorePathCasing=e,this._ignoreQueryAndFragment=t,this._states=[],this._stateIdx=0}reset(e){return this._value=e,this._states=[],this._value.scheme&&this._states.push(1),this._value.authority&&this._states.push(2),this._value.path&&(this._pathIterator=new o(!1,!this._ignorePathCasing(e)),this._pathIterator.reset(e.path),this._pathIterator.value()&&this._states.push(3)),this._ignoreQueryAndFragment(e)||(this._value.query&&this._states.push(4),this._value.fragment&&this._states.push(5)),this._stateIdx=0,this}next(){return 3===this._states[this._stateIdx]&&this._pathIterator.hasNext()?this._pathIterator.next():this._stateIdx+=1,this}hasNext(){return 3===this._states[this._stateIdx]&&this._pathIterator.hasNext()||this._stateIdx<this._states.length-1}cmp(e){if(1===this._states[this._stateIdx])return(0,s.W1)(e,this._value.scheme);if(2===this._states[this._stateIdx])return(0,s.W1)(e,this._value.authority);if(3===this._states[this._stateIdx])return this._pathIterator.cmp(e);if(4===this._states[this._stateIdx])return(0,s.UD)(e,this._value.query);if(5===this._states[this._stateIdx])return(0,s.UD)(e,this._value.fragment);throw new Error}value(){if(1===this._states[this._stateIdx])return this._value.scheme;if(2===this._states[this._stateIdx])return this._value.authority;if(3===this._states[this._stateIdx])return this._pathIterator.value();if(4===this._states[this._stateIdx])return this._value.query;if(5===this._states[this._stateIdx])return this._value.fragment;throw new Error}}class c{constructor(){this.height=1}rotateLeft(){const e=this.right;return this.right=e.left,e.left=this,this.updateHeight(),e.updateHeight(),e}rotateRight(){const e=this.left;return this.left=e.right,e.right=this,this.updateHeight(),e.updateHeight(),e}updateHeight(){this.height=1+Math.max(this.heightLeft,this.heightRight)}balanceFactor(){return this.heightRight-this.heightLeft}get heightLeft(){return this.left?.height??0}get heightRight(){return this.right?.height??0}}class l{static forUris(e=()=>!1,t=()=>!1){return new l(new a(e,t))}static forStrings(){return new l(new n)}static forConfigKeys(){return new l(new r)}constructor(e){this._iter=e}clear(){this._root=void 0}set(e,t){const i=this._iter.reset(e);let s;this._root||(this._root=new c,this._root.segment=i.value());const n=[];for(s=this._root;;){const e=i.cmp(s.segment);if(e>0)s.left||(s.left=new c,s.left.segment=i.value()),n.push([-1,s]),s=s.left;else if(e<0)s.right||(s.right=new c,s.right.segment=i.value()),n.push([1,s]),s=s.right;else{if(!i.hasNext())break;i.next(),s.mid||(s.mid=new c,s.mid.segment=i.value()),n.push([0,s]),s=s.mid}}const r=s.value;s.value=t,s.key=e;for(let o=n.length-1;o>=0;o--){const e=n[o][1];e.updateHeight();const t=e.balanceFactor();if(t<-1||t>1){const t=n[o][0],i=n[o+1][0];if(1===t&&1===i)n[o][1]=e.rotateLeft();else if(-1===t&&-1===i)n[o][1]=e.rotateRight();else if(1===t&&-1===i)e.right=n[o+1][1]=n[o+1][1].rotateRight(),n[o][1]=e.rotateLeft();else{if(-1!==t||1!==i)throw new Error;e.left=n[o+1][1]=n[o+1][1].rotateLeft(),n[o][1]=e.rotateRight()}if(o>0)switch(n[o-1][0]){case-1:n[o-1][1].left=n[o][1];break;case 1:n[o-1][1].right=n[o][1];break;case 0:n[o-1][1].mid=n[o][1]}else this._root=n[0][1]}}return r}get(e){return this._getNode(e)?.value}_getNode(e){const t=this._iter.reset(e);let i=this._root;for(;i;){const e=t.cmp(i.segment);if(e>0)i=i.left;else if(e<0)i=i.right;else{if(!t.hasNext())break;t.next(),i=i.mid}}return i}has(e){const t=this._getNode(e);return!(void 0===t?.value&&void 0===t?.mid)}delete(e){return this._delete(e,!1)}deleteSuperstr(e){return this._delete(e,!0)}_delete(e,t){const i=this._iter.reset(e),s=[];let n=this._root;for(;n;){const e=i.cmp(n.segment);if(e>0)s.push([-1,n]),n=n.left;else if(e<0)s.push([1,n]),n=n.right;else{if(!i.hasNext())break;i.next(),s.push([0,n]),n=n.mid}}if(n){if(t?(n.left=void 0,n.mid=void 0,n.right=void 0,n.height=1):(n.key=void 0,n.value=void 0),!n.mid&&!n.value)if(n.left&&n.right){const e=this._min(n.right);if(e.key){const{key:t,value:i,segment:s}=e;this._delete(e.key,!1),n.key=t,n.value=i,n.segment=s}}else{const e=n.left??n.right;if(s.length>0){const[t,i]=s[s.length-1];switch(t){case-1:i.left=e;break;case 0:i.mid=e;break;case 1:i.right=e}}else this._root=e}for(let e=s.length-1;e>=0;e--){const t=s[e][1];t.updateHeight();const i=t.balanceFactor();if(i>1?(t.right.balanceFactor()>=0||(t.right=t.right.rotateRight()),s[e][1]=t.rotateLeft()):i<-1&&(t.left.balanceFactor()<=0||(t.left=t.left.rotateLeft()),s[e][1]=t.rotateRight()),e>0)switch(s[e-1][0]){case-1:s[e-1][1].left=s[e][1];break;case 1:s[e-1][1].right=s[e][1];break;case 0:s[e-1][1].mid=s[e][1]}else this._root=s[0][1]}}}_min(e){for(;e.left;)e=e.left;return e}findSubstr(e){const t=this._iter.reset(e);let i,s=this._root;for(;s;){const e=t.cmp(s.segment);if(e>0)s=s.left;else if(e<0)s=s.right;else{if(!t.hasNext())break;t.next(),i=s.value||i,s=s.mid}}return s&&s.value||i}findSuperstr(e){return this._findSuperstrOrElement(e,!1)}_findSuperstrOrElement(e,t){const i=this._iter.reset(e);let s=this._root;for(;s;){const e=i.cmp(s.segment);if(e>0)s=s.left;else if(e<0)s=s.right;else{if(!i.hasNext())return s.mid?this._entries(s.mid):t?s.value:void 0;i.next(),s=s.mid}}}forEach(e){for(const[t,i]of this)e(i,t)}*[Symbol.iterator](){yield*this._entries(this._root)}_entries(e){const t=[];return this._dfsEntries(e,t),t[Symbol.iterator]()}_dfsEntries(e,t){e&&(e.left&&this._dfsEntries(e.left,t),e.value&&t.push([e.key,e.value]),e.mid&&this._dfsEntries(e.mid,t),e.right&&this._dfsEntries(e.right,t))}}},4983:(e,t,i)=>{"use strict";i.d(t,{u:()=>o});var s=i(5662),n=i(41234),r=i(8597);class o extends s.jG{constructor(e,t){super(),this._onDidChange=this._register(new n.vl),this.onDidChange=this._onDidChange.event,this._referenceDomElement=e,this._width=-1,this._height=-1,this._resizeObserver=null,this.measureReferenceDomElement(!1,t)}dispose(){this.stopObserving(),super.dispose()}getWidth(){return this._width}getHeight(){return this._height}startObserving(){if(!this._resizeObserver&&this._referenceDomElement){let e=null;const t=()=>{e?this.observe({width:e.width,height:e.height}):this.observe()};let i=!1,s=!1;const n=()=>{if(i&&!s)try{i=!1,s=!0,t()}finally{(0,r.PG)((0,r.zk)(this._referenceDomElement),(()=>{s=!1,n()}))}};this._resizeObserver=new ResizeObserver((t=>{e=t&&t[0]&&t[0].contentRect?{width:t[0].contentRect.width,height:t[0].contentRect.height}:null,i=!0,n()})),this._resizeObserver.observe(this._referenceDomElement)}}stopObserving(){this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=null)}observe(e){this.measureReferenceDomElement(!0,e)}measureReferenceDomElement(e,t){let i=0,s=0;t?(i=t.width,s=t.height):this._referenceDomElement&&(i=this._referenceDomElement.clientWidth,s=this._referenceDomElement.clientHeight),i=Math.max(5,i),s=Math.max(5,s),this._width===i&&this._height===s||(this._width=i,this._height=s,e&&this._onDidChange.fire())}}},5239:(e,t,i)=>{"use strict";var s;i.d(t,{p:()=>s}),function(e){const t={total:0,min:Number.MAX_VALUE,max:0},i={...t},s={...t},n={...t};let r=0;const o={keydown:0,input:0,render:0};function a(){1===o.keydown&&(performance.mark("keydown/end"),o.keydown=2)}function c(){performance.mark("input/start"),o.input=1,d()}function l(){1===o.input&&(performance.mark("input/end"),o.input=2)}function h(){1===o.render&&(performance.mark("render/end"),o.render=2)}function d(){setTimeout(u)}function u(){2===o.keydown&&2===o.input&&2===o.render&&(performance.mark("inputlatency/end"),performance.measure("keydown","keydown/start","keydown/end"),performance.measure("input","input/start","input/end"),performance.measure("render","render/start","render/end"),performance.measure("inputlatency","inputlatency/start","inputlatency/end"),g("keydown",t),g("input",i),g("render",s),g("inputlatency",n),r++,performance.clearMarks("keydown/start"),performance.clearMarks("keydown/end"),performance.clearMarks("input/start"),performance.clearMarks("input/end"),performance.clearMarks("render/start"),performance.clearMarks("render/end"),performance.clearMarks("inputlatency/start"),performance.clearMarks("inputlatency/end"),performance.clearMeasures("keydown"),performance.clearMeasures("input"),performance.clearMeasures("render"),performance.clearMeasures("inputlatency"),o.keydown=0,o.input=0,o.render=0)}function g(e,t){const i=performance.getEntriesByName(e)[0].duration;t.total+=i,t.min=Math.min(t.min,i),t.max=Math.max(t.max,i)}function p(e){return{average:e.total/r,max:e.max,min:e.min}}function m(e){e.total=0,e.min=Number.MAX_VALUE,e.max=0}e.onKeyDown=function(){u(),performance.mark("inputlatency/start"),performance.mark("keydown/start"),o.keydown=1,queueMicrotask(a)},e.onBeforeInput=c,e.onInput=function(){0===o.input&&c(),queueMicrotask(l)},e.onKeyUp=function(){u()},e.onSelectionChange=function(){u()},e.onRenderStart=function(){2===o.keydown&&2===o.input&&0===o.render&&(performance.mark("render/start"),o.render=1,queueMicrotask(h),d())},e.getAndClearMeasurements=function(){if(0===r)return;const e={keydown:p(t),input:p(i),render:p(s),total:p(n),sampleCount:r};return m(t),m(i),m(s),m(n),r=0,e}}(s||(s={}))},5646:(e,t,i)=>{"use strict";i.d(t,{Z4:()=>k,EH:()=>x,XF:()=>A});var s=i(60413),n=i(42731),r=i(8597),o=i(25154),a=i(42904),c=i(56245),l=i(72962),h=i(68214),d=i(48196),u=i(93090),g=i(25890),p=i(41234),m=i(24939),f=i(5662),_=i(98067),v=i(78209);const C=r.$,E="selectOption.entry.template";class b{get templateId(){return E}renderTemplate(e){const t=Object.create(null);return t.root=e,t.text=r.BC(e,C(".option-text")),t.detail=r.BC(e,C(".option-detail")),t.decoratorRight=r.BC(e,C(".option-decorator-right")),t}renderElement(e,t,i){const s=i,n=e.text,r=e.detail,o=e.decoratorRight,a=e.isDisabled;s.text.textContent=n,s.detail.textContent=r||"",s.decoratorRight.innerText=o||"",a?s.root.classList.add("option-disabled"):s.root.classList.remove("option-disabled")}disposeTemplate(e){}}class S extends f.jG{static{this.DEFAULT_DROPDOWN_MINIMUM_BOTTOM_MARGIN=32}static{this.DEFAULT_DROPDOWN_MINIMUM_TOP_MARGIN=2}static{this.DEFAULT_MINIMUM_VISIBLE_OPTIONS=3}constructor(e,t,i,s,n){super(),this.options=[],this._currentSelection=0,this._hasDetails=!1,this._skipLayout=!1,this._sticky=!1,this._isVisible=!1,this.styles=s,this.selectBoxOptions=n||Object.create(null),"number"!==typeof this.selectBoxOptions.minBottomMargin?this.selectBoxOptions.minBottomMargin=S.DEFAULT_DROPDOWN_MINIMUM_BOTTOM_MARGIN:this.selectBoxOptions.minBottomMargin<0&&(this.selectBoxOptions.minBottomMargin=0),this.selectElement=document.createElement("select"),this.selectElement.className="monaco-select-box monaco-select-box-dropdown-padding","string"===typeof this.selectBoxOptions.ariaLabel&&this.selectElement.setAttribute("aria-label",this.selectBoxOptions.ariaLabel),"string"===typeof this.selectBoxOptions.ariaDescription&&this.selectElement.setAttribute("aria-description",this.selectBoxOptions.ariaDescription),this._onDidSelect=new p.vl,this._register(this._onDidSelect),this.registerListeners(),this.constructSelectDropDown(i),this.selected=t||0,e&&this.setOptions(e,t),this.initStyleSheet()}setTitle(e){!this._hover&&e?this._hover=this._register((0,d.i)().setupManagedHover((0,a.nZ)("mouse"),this.selectElement,e)):this._hover&&this._hover.update(e)}getHeight(){return 22}getTemplateId(){return E}constructSelectDropDown(e){this.contextViewProvider=e,this.selectDropDownContainer=r.$(".monaco-select-box-dropdown-container"),this.selectDropDownContainer.classList.add("monaco-select-box-dropdown-padding"),this.selectionDetailsPane=r.BC(this.selectDropDownContainer,C(".select-box-details-pane"));const t=r.BC(this.selectDropDownContainer,C(".select-box-dropdown-container-width-control")),i=r.BC(t,C(".width-control-div"));this.widthControlElement=document.createElement("span"),this.widthControlElement.className="option-text-width-control",r.BC(i,this.widthControlElement),this._dropDownPosition=0,this.styleElement=r.li(this.selectDropDownContainer),this.selectDropDownContainer.setAttribute("draggable","true"),this._register(r.ko(this.selectDropDownContainer,r.Bx.DRAG_START,(e=>{r.fs.stop(e,!0)})))}registerListeners(){let e;this._register(r.b2(this.selectElement,"change",(e=>{this.selected=e.target.selectedIndex,this._onDidSelect.fire({index:e.target.selectedIndex,selected:e.target.value}),this.options[this.selected]&&this.options[this.selected].text&&this.setTitle(this.options[this.selected].text)}))),this._register(r.ko(this.selectElement,r.Bx.CLICK,(e=>{r.fs.stop(e),this._isVisible?this.hideSelectDropDown(!0):this.showSelectDropDown()}))),this._register(r.ko(this.selectElement,r.Bx.MOUSE_DOWN,(e=>{r.fs.stop(e)}))),this._register(r.ko(this.selectElement,"touchstart",(t=>{e=this._isVisible}))),this._register(r.ko(this.selectElement,"touchend",(t=>{r.fs.stop(t),e?this.hideSelectDropDown(!0):this.showSelectDropDown()}))),this._register(r.ko(this.selectElement,r.Bx.KEY_DOWN,(e=>{const t=new l.Z(e);let i=!1;_.zx?18!==t.keyCode&&16!==t.keyCode&&10!==t.keyCode&&3!==t.keyCode||(i=!0):(18===t.keyCode&&t.altKey||16===t.keyCode&&t.altKey||10===t.keyCode||3===t.keyCode)&&(i=!0),i&&(this.showSelectDropDown(),r.fs.stop(e,!0))})))}get onDidSelect(){return this._onDidSelect.event}setOptions(e,t){g.aI(this.options,e)||(this.options=e,this.selectElement.options.length=0,this._hasDetails=!1,this._cachedMaxDetailsHeight=void 0,this.options.forEach(((e,t)=>{this.selectElement.add(this.createOption(e.text,t,e.isDisabled)),"string"===typeof e.description&&(this._hasDetails=!0)}))),void 0!==t&&(this.select(t),this._currentSelection=this.selected)}setOptionsList(){this.selectList?.splice(0,this.selectList.length,this.options)}select(e){e>=0&&e<this.options.length?this.selected=e:e>this.options.length-1?this.select(this.options.length-1):this.selected<0&&(this.selected=0),this.selectElement.selectedIndex=this.selected,this.options[this.selected]&&this.options[this.selected].text&&this.setTitle(this.options[this.selected].text)}focus(){this.selectElement&&(this.selectElement.tabIndex=0,this.selectElement.focus())}blur(){this.selectElement&&(this.selectElement.tabIndex=-1,this.selectElement.blur())}setFocusable(e){this.selectElement.tabIndex=e?0:-1}render(e){this.container=e,e.classList.add("select-container"),e.appendChild(this.selectElement),this.styleSelectElement()}initStyleSheet(){const e=[];this.styles.listFocusBackground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { background-color: ${this.styles.listFocusBackground} !important; }`),this.styles.listFocusForeground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { color: ${this.styles.listFocusForeground} !important; }`),this.styles.decoratorRightForeground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.focused) .option-decorator-right { color: ${this.styles.decoratorRightForeground}; }`),this.styles.selectBackground&&this.styles.selectBorder&&this.styles.selectBorder!==this.styles.selectBackground?(e.push(`.monaco-select-box-dropdown-container { border: 1px solid ${this.styles.selectBorder} } `),e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-top { border-top: 1px solid ${this.styles.selectBorder} } `),e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-bottom { border-bottom: 1px solid ${this.styles.selectBorder} } `)):this.styles.selectListBorder&&(e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-top { border-top: 1px solid ${this.styles.selectListBorder} } `),e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-bottom { border-bottom: 1px solid ${this.styles.selectListBorder} } `)),this.styles.listHoverForeground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { color: ${this.styles.listHoverForeground} !important; }`),this.styles.listHoverBackground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { background-color: ${this.styles.listHoverBackground} !important; }`),this.styles.listFocusOutline&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { outline: 1.6px dotted ${this.styles.listFocusOutline} !important; outline-offset: -1.6px !important; }`),this.styles.listHoverOutline&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { outline: 1.6px dashed ${this.styles.listHoverOutline} !important; outline-offset: -1.6px !important; }`),e.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.option-disabled.focused { background-color: transparent !important; color: inherit !important; outline: none !important; }"),e.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.option-disabled:hover { background-color: transparent !important; color: inherit !important; outline: none !important; }"),this.styleElement.textContent=e.join("\n")}styleSelectElement(){const e=this.styles.selectBackground??"",t=this.styles.selectForeground??"",i=this.styles.selectBorder??"";this.selectElement.style.backgroundColor=e,this.selectElement.style.color=t,this.selectElement.style.borderColor=i}styleList(){const e=this.styles.selectBackground??"",t=r.gI(this.styles.selectListBackground,e);this.selectDropDownListContainer.style.backgroundColor=t,this.selectionDetailsPane.style.backgroundColor=t;const i=this.styles.focusBorder??"";this.selectDropDownContainer.style.outlineColor=i,this.selectDropDownContainer.style.outlineOffset="-1px",this.selectList.style(this.styles)}createOption(e,t,i){const s=document.createElement("option");return s.value=e,s.text=e,s.disabled=!!i,s}showSelectDropDown(){this.selectionDetailsPane.innerText="",this.contextViewProvider&&!this._isVisible&&(this.createSelectList(this.selectDropDownContainer),this.setOptionsList(),this.contextViewProvider.showContextView({getAnchor:()=>this.selectElement,render:e=>this.renderSelectDropDown(e,!0),layout:()=>{this.layoutSelectDropDown()},onHide:()=>{this.selectDropDownContainer.classList.remove("visible"),this.selectElement.classList.remove("synthetic-focus")},anchorPosition:this._dropDownPosition},this.selectBoxOptions.optionsAsChildren?this.container:void 0),this._isVisible=!0,this.hideSelectDropDown(!1),this.contextViewProvider.showContextView({getAnchor:()=>this.selectElement,render:e=>this.renderSelectDropDown(e),layout:()=>this.layoutSelectDropDown(),onHide:()=>{this.selectDropDownContainer.classList.remove("visible"),this.selectElement.classList.remove("synthetic-focus")},anchorPosition:this._dropDownPosition},this.selectBoxOptions.optionsAsChildren?this.container:void 0),this._currentSelection=this.selected,this._isVisible=!0,this.selectElement.setAttribute("aria-expanded","true"))}hideSelectDropDown(e){this.contextViewProvider&&this._isVisible&&(this._isVisible=!1,this.selectElement.setAttribute("aria-expanded","false"),e&&this.selectElement.focus(),this.contextViewProvider.hideContextView())}renderSelectDropDown(e,t){return e.appendChild(this.selectDropDownContainer),this.layoutSelectDropDown(t),{dispose:()=>{this.selectDropDownContainer.remove()}}}measureMaxDetailsHeight(){let e=0;return this.options.forEach(((t,i)=>{this.updateDetail(i),this.selectionDetailsPane.offsetHeight>e&&(e=this.selectionDetailsPane.offsetHeight)})),e}layoutSelectDropDown(e){if(this._skipLayout)return!1;if(this.selectList){this.selectDropDownContainer.classList.add("visible");const t=r.zk(this.selectElement),i=r.BK(this.selectElement),s=r.zk(this.selectElement).getComputedStyle(this.selectElement),n=parseFloat(s.getPropertyValue("--dropdown-padding-top"))+parseFloat(s.getPropertyValue("--dropdown-padding-bottom")),o=t.innerHeight-i.top-i.height-(this.selectBoxOptions.minBottomMargin||0),a=i.top-S.DEFAULT_DROPDOWN_MINIMUM_TOP_MARGIN,c=this.selectElement.offsetWidth,l=this.setWidthControlElement(this.widthControlElement),h=Math.max(l,Math.round(c)).toString()+"px";this.selectDropDownContainer.style.width=h,this.selectList.getHTMLElement().style.height="",this.selectList.layout();let d=this.selectList.contentHeight;this._hasDetails&&void 0===this._cachedMaxDetailsHeight&&(this._cachedMaxDetailsHeight=this.measureMaxDetailsHeight());const u=this._hasDetails?this._cachedMaxDetailsHeight:0,g=d+n+u,p=Math.floor((o-n-u)/this.getHeight()),m=Math.floor((a-n-u)/this.getHeight());if(e)return!(i.top+i.height>t.innerHeight-22||i.top<S.DEFAULT_DROPDOWN_MINIMUM_TOP_MARGIN||p<1&&m<1)&&(p<S.DEFAULT_MINIMUM_VISIBLE_OPTIONS&&m>p&&this.options.length>p?(this._dropDownPosition=1,this.selectDropDownListContainer.remove(),this.selectionDetailsPane.remove(),this.selectDropDownContainer.appendChild(this.selectionDetailsPane),this.selectDropDownContainer.appendChild(this.selectDropDownListContainer),this.selectionDetailsPane.classList.remove("border-top"),this.selectionDetailsPane.classList.add("border-bottom")):(this._dropDownPosition=0,this.selectDropDownListContainer.remove(),this.selectionDetailsPane.remove(),this.selectDropDownContainer.appendChild(this.selectDropDownListContainer),this.selectDropDownContainer.appendChild(this.selectionDetailsPane),this.selectionDetailsPane.classList.remove("border-bottom"),this.selectionDetailsPane.classList.add("border-top")),!0);if(i.top+i.height>t.innerHeight-22||i.top<S.DEFAULT_DROPDOWN_MINIMUM_TOP_MARGIN||0===this._dropDownPosition&&p<1||1===this._dropDownPosition&&m<1)return this.hideSelectDropDown(!0),!1;if(0===this._dropDownPosition){if(this._isVisible&&p+m<1)return this.hideSelectDropDown(!0),!1;g>o&&(d=p*this.getHeight())}else g>a&&(d=m*this.getHeight());return this.selectList.layout(d),this.selectList.domFocus(),this.selectList.length>0&&(this.selectList.setFocus([this.selected||0]),this.selectList.reveal(this.selectList.getFocus()[0]||0)),this._hasDetails?(this.selectList.getHTMLElement().style.height=d+n+"px",this.selectDropDownContainer.style.height=""):this.selectDropDownContainer.style.height=d+n+"px",this.updateDetail(this.selected),this.selectDropDownContainer.style.width=h,this.selectDropDownListContainer.setAttribute("tabindex","0"),this.selectElement.classList.add("synthetic-focus"),this.selectDropDownContainer.classList.add("synthetic-focus"),!0}return!1}setWidthControlElement(e){let t=0;if(e){let i=0,s=0;this.options.forEach(((e,t)=>{const n=e.detail?e.detail.length:0,r=e.decoratorRight?e.decoratorRight.length:0,o=e.text.length+n+r;o>s&&(i=t,s=o)})),e.textContent=this.options[i].text+(this.options[i].decoratorRight?this.options[i].decoratorRight+" ":""),t=r.Tr(e)}return t}createSelectList(e){if(this.selectList)return;this.selectDropDownListContainer=r.BC(e,C(".select-box-dropdown-list-container")),this.listRenderer=new b,this.selectList=this._register(new u.B8("SelectBoxCustom",this.selectDropDownListContainer,this,[this.listRenderer],{useShadows:!1,verticalScrollMode:3,keyboardSupport:!1,mouseSupport:!1,accessibilityProvider:{getAriaLabel:e=>{let t=e.text;return e.detail&&(t+=`. ${e.detail}`),e.decoratorRight&&(t+=`. ${e.decoratorRight}`),e.description&&(t+=`. ${e.description}`),t},getWidgetAriaLabel:()=>(0,v.kg)({key:"selectBox",comment:["Behave like native select dropdown element."]},"Select Box"),getRole:()=>_.zx?"":"option",getWidgetRole:()=>"listbox"}})),this.selectBoxOptions.ariaLabel&&(this.selectList.ariaLabel=this.selectBoxOptions.ariaLabel);const t=this._register(new c.f(this.selectDropDownListContainer,"keydown")),i=p.Jh.chain(t.event,(e=>e.filter((()=>this.selectList.length>0)).map((e=>new l.Z(e)))));this._register(p.Jh.chain(i,(e=>e.filter((e=>3===e.keyCode))))(this.onEnter,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>2===e.keyCode))))(this.onEnter,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>9===e.keyCode))))(this.onEscape,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>16===e.keyCode))))(this.onUpArrow,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>18===e.keyCode))))(this.onDownArrow,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>12===e.keyCode))))(this.onPageDown,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>11===e.keyCode))))(this.onPageUp,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>14===e.keyCode))))(this.onHome,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>13===e.keyCode))))(this.onEnd,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>e.keyCode>=21&&e.keyCode<=56||e.keyCode>=85&&e.keyCode<=113))))(this.onCharacter,this)),this._register(r.ko(this.selectList.getHTMLElement(),r.Bx.POINTER_UP,(e=>this.onPointerUp(e)))),this._register(this.selectList.onMouseOver((e=>"undefined"!==typeof e.index&&this.selectList.setFocus([e.index])))),this._register(this.selectList.onDidChangeFocus((e=>this.onListFocus(e)))),this._register(r.ko(this.selectDropDownContainer,r.Bx.FOCUS_OUT,(e=>{this._isVisible&&!r.QX(e.relatedTarget,this.selectDropDownContainer)&&this.onListBlur()}))),this.selectList.getHTMLElement().setAttribute("aria-label",this.selectBoxOptions.ariaLabel||""),this.selectList.getHTMLElement().setAttribute("aria-expanded","true"),this.styleList()}onPointerUp(e){if(!this.selectList.length)return;r.fs.stop(e);const t=e.target;if(!t)return;if(t.classList.contains("slider"))return;const i=t.closest(".monaco-list-row");if(!i)return;const s=Number(i.getAttribute("data-index")),n=i.classList.contains("option-disabled");s>=0&&s<this.options.length&&!n&&(this.selected=s,this.select(this.selected),this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selectList.getFocus()[0]),this.selected!==this._currentSelection&&(this._currentSelection=this.selected,this._onDidSelect.fire({index:this.selectElement.selectedIndex,selected:this.options[this.selected].text}),this.options[this.selected]&&this.options[this.selected].text&&this.setTitle(this.options[this.selected].text)),this.hideSelectDropDown(!0))}onListBlur(){this._sticky||(this.selected!==this._currentSelection&&this.select(this._currentSelection),this.hideSelectDropDown(!1))}renderDescriptionMarkdown(e,t){const i=e=>{for(let t=0;t<e.childNodes.length;t++){const s=e.childNodes.item(t);"img"===(s.tagName&&s.tagName.toLowerCase())?s.remove():i(s)}},s=(0,h.Gc)({value:e,supportThemeIcons:!0},{actionHandler:t});return s.element.classList.add("select-box-description-markdown"),i(s.element),s.element}onListFocus(e){this._isVisible&&this._hasDetails&&this.updateDetail(e.indexes[0])}updateDetail(e){this.selectionDetailsPane.innerText="";const t=this.options[e],i=t?.description??"";if(i){if(t?.descriptionIsMarkdown??!1){const e=t.descriptionMarkdownActionHandler;this.selectionDetailsPane.appendChild(this.renderDescriptionMarkdown(i,e))}else this.selectionDetailsPane.innerText=i;this.selectionDetailsPane.style.display="block"}else this.selectionDetailsPane.style.display="none";this._skipLayout=!0,this.contextViewProvider.layout(),this._skipLayout=!1}onEscape(e){r.fs.stop(e),this.select(this._currentSelection),this.hideSelectDropDown(!0)}onEnter(e){r.fs.stop(e),this.selected!==this._currentSelection&&(this._currentSelection=this.selected,this._onDidSelect.fire({index:this.selectElement.selectedIndex,selected:this.options[this.selected].text}),this.options[this.selected]&&this.options[this.selected].text&&this.setTitle(this.options[this.selected].text)),this.hideSelectDropDown(!0)}onDownArrow(e){if(this.selected<this.options.length-1){r.fs.stop(e,!0);const t=this.options[this.selected+1].isDisabled;if(t&&this.options.length>this.selected+2)this.selected+=2;else{if(t)return;this.selected++}this.select(this.selected),this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selectList.getFocus()[0])}}onUpArrow(e){if(this.selected>0){r.fs.stop(e,!0);this.options[this.selected-1].isDisabled&&this.selected>1?this.selected-=2:this.selected--,this.select(this.selected),this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selectList.getFocus()[0])}}onPageUp(e){r.fs.stop(e),this.selectList.focusPreviousPage(),setTimeout((()=>{this.selected=this.selectList.getFocus()[0],this.options[this.selected].isDisabled&&this.selected<this.options.length-1&&(this.selected++,this.selectList.setFocus([this.selected])),this.selectList.reveal(this.selected),this.select(this.selected)}),1)}onPageDown(e){r.fs.stop(e),this.selectList.focusNextPage(),setTimeout((()=>{this.selected=this.selectList.getFocus()[0],this.options[this.selected].isDisabled&&this.selected>0&&(this.selected--,this.selectList.setFocus([this.selected])),this.selectList.reveal(this.selected),this.select(this.selected)}),1)}onHome(e){r.fs.stop(e),this.options.length<2||(this.selected=0,this.options[this.selected].isDisabled&&this.selected>1&&this.selected++,this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selected),this.select(this.selected))}onEnd(e){r.fs.stop(e),this.options.length<2||(this.selected=this.options.length-1,this.options[this.selected].isDisabled&&this.selected>1&&this.selected--,this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selected),this.select(this.selected))}onCharacter(e){const t=m.YM.toString(e.keyCode);let i=-1;for(let s=0;s<this.options.length-1;s++)if(i=(s+this.selected+1)%this.options.length,this.options[i].text.charAt(0).toUpperCase()===t&&!this.options[i].isDisabled){this.select(i),this.selectList.setFocus([i]),this.selectList.reveal(this.selectList.getFocus()[0]),r.fs.stop(e);break}}dispose(){this.hideSelectDropDown(!1),super.dispose()}}class y extends f.jG{constructor(e,t,i,s){super(),this.selected=0,this.selectBoxOptions=s||Object.create(null),this.options=[],this.selectElement=document.createElement("select"),this.selectElement.className="monaco-select-box","string"===typeof this.selectBoxOptions.ariaLabel&&this.selectElement.setAttribute("aria-label",this.selectBoxOptions.ariaLabel),"string"===typeof this.selectBoxOptions.ariaDescription&&this.selectElement.setAttribute("aria-description",this.selectBoxOptions.ariaDescription),this._onDidSelect=this._register(new p.vl),this.styles=i,this.registerListeners(),this.setOptions(e,t)}registerListeners(){this._register(o.q.addTarget(this.selectElement)),[o.B.Tap].forEach((e=>{this._register(r.ko(this.selectElement,e,(e=>{this.selectElement.focus()})))})),this._register(r.b2(this.selectElement,"click",(e=>{r.fs.stop(e,!0)}))),this._register(r.b2(this.selectElement,"change",(e=>{this.selectElement.title=e.target.value,this._onDidSelect.fire({index:e.target.selectedIndex,selected:e.target.value})}))),this._register(r.b2(this.selectElement,"keydown",(e=>{let t=!1;_.zx?18!==e.keyCode&&16!==e.keyCode&&10!==e.keyCode||(t=!0):(18===e.keyCode&&e.altKey||10===e.keyCode||3===e.keyCode)&&(t=!0),t&&e.stopPropagation()})))}get onDidSelect(){return this._onDidSelect.event}setOptions(e,t){this.options&&g.aI(this.options,e)||(this.options=e,this.selectElement.options.length=0,this.options.forEach(((e,t)=>{this.selectElement.add(this.createOption(e.text,t,e.isDisabled))}))),void 0!==t&&this.select(t)}select(e){0===this.options.length?this.selected=0:e>=0&&e<this.options.length?this.selected=e:e>this.options.length-1?this.select(this.options.length-1):this.selected<0&&(this.selected=0),this.selectElement.selectedIndex=this.selected,this.selected<this.options.length&&"string"===typeof this.options[this.selected].text?this.selectElement.title=this.options[this.selected].text:this.selectElement.title=""}focus(){this.selectElement&&(this.selectElement.tabIndex=0,this.selectElement.focus())}blur(){this.selectElement&&(this.selectElement.tabIndex=-1,this.selectElement.blur())}setFocusable(e){this.selectElement.tabIndex=e?0:-1}render(e){e.classList.add("select-container"),e.appendChild(this.selectElement),this.setOptions(this.options,this.selected),this.applyStyles()}applyStyles(){this.selectElement&&(this.selectElement.style.backgroundColor=this.styles.selectBackground??"",this.selectElement.style.color=this.styles.selectForeground??"",this.selectElement.style.borderColor=this.styles.selectBorder??"")}createOption(e,t,i){const s=document.createElement("option");return s.value=e,s.text=e,s.disabled=!!i,s}}var w=i(17390);class R extends w.x{constructor(e,t,i,s,n){super(),_.zx&&!n?.useCustomDrawn?this.selectBoxDelegate=new y(e,t,s,n):this.selectBoxDelegate=new S(e,t,i,s,n),this._register(this.selectBoxDelegate)}get onDidSelect(){return this.selectBoxDelegate.onDidSelect}setOptions(e,t){this.selectBoxDelegate.setOptions(e,t)}select(e){this.selectBoxDelegate.select(e)}focus(){this.selectBoxDelegate.focus()}blur(){this.selectBoxDelegate.blur()}setFocusable(e){this.selectBoxDelegate.setFocusable(e)}render(e){this.selectBoxDelegate.render(e)}}var L=i(36921),T=i(631);i(62469);class x extends f.jG{get action(){return this._action}constructor(e,t,i={}){super(),this.options=i,this._context=e||this,this._action=t,t instanceof L.rc&&this._register(t.onDidChange((e=>{this.element&&this.handleActionChangeEvent(e)})))}handleActionChangeEvent(e){void 0!==e.enabled&&this.updateEnabled(),void 0!==e.checked&&this.updateChecked(),void 0!==e.class&&this.updateClass(),void 0!==e.label&&(this.updateLabel(),this.updateTooltip()),void 0!==e.tooltip&&this.updateTooltip()}get actionRunner(){return this._actionRunner||(this._actionRunner=this._register(new L.LN)),this._actionRunner}set actionRunner(e){this._actionRunner=e}isEnabled(){return this._action.enabled}setActionContext(e){this._context=e}render(e){const t=this.element=e;this._register(o.q.addTarget(e));const i=this.options&&this.options.draggable;i&&(e.draggable=!0,s.gm&&this._register((0,r.ko)(e,r.Bx.DRAG_START,(e=>e.dataTransfer?.setData(n.t.TEXT,this._action.label))))),this._register((0,r.ko)(t,o.B.Tap,(e=>this.onClick(e,!0)))),this._register((0,r.ko)(t,r.Bx.MOUSE_DOWN,(e=>{i||r.fs.stop(e,!0),this._action.enabled&&0===e.button&&t.classList.add("active")}))),_.zx&&this._register((0,r.ko)(t,r.Bx.CONTEXT_MENU,(e=>{0===e.button&&!0===e.ctrlKey&&this.onClick(e)}))),this._register((0,r.ko)(t,r.Bx.CLICK,(e=>{r.fs.stop(e,!0),this.options&&this.options.isMenu||this.onClick(e)}))),this._register((0,r.ko)(t,r.Bx.DBLCLICK,(e=>{r.fs.stop(e,!0)}))),[r.Bx.MOUSE_UP,r.Bx.MOUSE_OUT].forEach((e=>{this._register((0,r.ko)(t,e,(e=>{r.fs.stop(e),t.classList.remove("active")})))}))}onClick(e,t=!1){r.fs.stop(e,!0);const i=T.z(this._context)?this.options?.useEventAsContext?e:{preserveFocus:t}:this._context;this.actionRunner.run(this._action,i)}focus(){this.element&&(this.element.tabIndex=0,this.element.focus(),this.element.classList.add("focused"))}blur(){this.element&&(this.element.blur(),this.element.tabIndex=-1,this.element.classList.remove("focused"))}setFocusable(e){this.element&&(this.element.tabIndex=e?0:-1)}get trapsArrowNavigation(){return!1}updateEnabled(){}updateLabel(){}getClass(){return this.action.class}getTooltip(){return this.action.tooltip}updateTooltip(){if(!this.element)return;const e=this.getTooltip()??"";if(this.updateAriaLabel(),this.options.hoverDelegate?.showNativeHover)this.element.title=e;else if(this.customHover||""===e)this.customHover&&this.customHover.update(e);else{const t=this.options.hoverDelegate??(0,a.nZ)("element");this.customHover=this._store.add((0,d.i)().setupManagedHover(t,this.element,e))}}updateAriaLabel(){if(this.element){const e=this.getTooltip()??"";this.element.setAttribute("aria-label",e)}}updateClass(){}updateChecked(){}dispose(){this.element&&(this.element.remove(),this.element=void 0),this._context=void 0,super.dispose()}}class k extends x{constructor(e,t,i){super(e,t,i),this.options=i,this.options.icon=void 0!==i.icon&&i.icon,this.options.label=void 0===i.label||i.label,this.cssClass=""}render(e){super.render(e),T.j(this.element);const t=document.createElement("a");if(t.classList.add("action-label"),t.setAttribute("role",this.getDefaultAriaRole()),this.label=t,this.element.appendChild(t),this.options.label&&this.options.keybinding){const e=document.createElement("span");e.classList.add("keybinding"),e.textContent=this.options.keybinding,this.element.appendChild(e)}this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()}getDefaultAriaRole(){return this._action.id===L.wv.ID?"presentation":this.options.isMenu?"menuitem":this.options.isTabList?"tab":"button"}focus(){this.label&&(this.label.tabIndex=0,this.label.focus())}blur(){this.label&&(this.label.tabIndex=-1)}setFocusable(e){this.label&&(this.label.tabIndex=e?0:-1)}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this.action.label)}getTooltip(){let e=null;return this.action.tooltip?e=this.action.tooltip:!this.options.label&&this.action.label&&this.options.icon&&(e=this.action.label,this.options.keybinding&&(e=v.kg({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding))),e??void 0}updateClass(){this.cssClass&&this.label&&this.label.classList.remove(...this.cssClass.split(" ")),this.options.icon?(this.cssClass=this.getClass(),this.label&&(this.label.classList.add("codicon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" "))),this.updateEnabled()):this.label?.classList.remove("codicon")}updateEnabled(){this.action.enabled?(this.label&&(this.label.removeAttribute("aria-disabled"),this.label.classList.remove("disabled")),this.element?.classList.remove("disabled")):(this.label&&(this.label.setAttribute("aria-disabled","true"),this.label.classList.add("disabled")),this.element?.classList.add("disabled"))}updateAriaLabel(){if(this.label){const e=this.getTooltip()??"";this.label.setAttribute("aria-label",e)}}updateChecked(){this.label&&(void 0!==this.action.checked?(this.label.classList.toggle("checked",this.action.checked),this.options.isTabList?this.label.setAttribute("aria-selected",this.action.checked?"true":"false"):(this.label.setAttribute("aria-checked",this.action.checked?"true":"false"),this.label.setAttribute("role","checkbox"))):(this.label.classList.remove("checked"),this.label.removeAttribute(this.options.isTabList?"aria-selected":"aria-checked"),this.label.setAttribute("role",this.getDefaultAriaRole())))}}class A extends x{constructor(e,t,i,s,n,r,o){super(e,t),this.selectBox=new R(i,s,n,r,o),this.selectBox.setFocusable(!1),this._register(this.selectBox),this.registerListeners()}select(e){this.selectBox.select(e)}registerListeners(){this._register(this.selectBox.onDidSelect((e=>this.runAction(e.selected,e.index))))}runAction(e,t){this.actionRunner.run(this._action,this.getActionContext(e,t))}getActionContext(e,t){return e}setFocusable(e){this.selectBox.setFocusable(e)}focus(){this.selectBox?.focus()}blur(){this.selectBox?.blur()}render(e){this.selectBox.render(e)}}},5662:(e,t,i)=>{"use strict";i.d(t,{$w:()=>C,AS:()=>d,Ay:()=>o,BO:()=>v,Cm:()=>p,HE:()=>f,VD:()=>a,Xm:()=>h,jG:()=>m,lC:()=>l,mp:()=>_,qE:()=>u,s:()=>g});var s=i(6921),n=i(42522);let r=null;function o(e){return r?.trackDisposable(e),e}function a(e){r?.markAsDisposed(e)}function c(e,t){r?.setParent(e,t)}function l(e){return r?.markAsSingleton(e),e}function h(e){return"object"===typeof e&&null!==e&&"function"===typeof e.dispose&&0===e.dispose.length}function d(e){if(n.f.is(e)){const i=[];for(const s of e)if(s)try{s.dispose()}catch(t){i.push(t)}if(1===i.length)throw i[0];if(i.length>1)throw new AggregateError(i,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function u(...e){const t=g((()=>d(e)));return function(e,t){if(r)for(const i of e)r.setParent(i,t)}(e,t),t}function g(e){const t=o({dispose:(0,s.P)((()=>{a(t),e()}))});return t}class p{static{this.DISABLE_DISPOSED_WARNING=!1}constructor(){this._toDispose=new Set,this._isDisposed=!1,o(this)}dispose(){this._isDisposed||(a(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(0!==this._toDispose.size)try{d(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return c(e,this),this._isDisposed?p.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}deleteAndLeak(e){e&&this._toDispose.has(e)&&(this._toDispose.delete(e),c(e,null))}}class m{static{this.None=Object.freeze({dispose(){}})}constructor(){this._store=new p,o(this),c(this._store,this)}dispose(){a(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}class f{constructor(){this._isDisposed=!1,o(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){this._isDisposed||e===this._value||(this._value?.dispose(),e&&c(e,this),this._value=e)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,a(this),this._value?.dispose(),this._value=void 0}}class _{constructor(e){this._disposable=e,this._counter=1}acquire(){return this._counter++,this}release(){return 0===--this._counter&&this._disposable.dispose(),this}}class v{constructor(e){this.object=e}dispose(){}}class C{constructor(){this._store=new Map,this._isDisposed=!1,o(this)}dispose(){a(this),this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{d(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,t,i=!1){this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),i||this._store.get(e)?.dispose(),this._store.set(e,t)}deleteAndDispose(e){this._store.get(e)?.dispose(),this._store.delete(e)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}},5744:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m3.1-8.55a.75.75 0 1 0-1.2-.9L7.419 8.858 6.03 7.47a.75.75 0 0 0-1.06 1.06l2 2a.75.75 0 0 0 1.13-.08z",clipRule:"evenodd"}))},6156:(e,t,i)=>{"use strict";i.d(t,{F:()=>O});var s=i(59284),n=i(81240),r=i(84476),o=i(80604),a=i(99991),c=i(63365),l=i(46423),h=i(87184);const d=s.createContext(null),u=()=>{const e=s.useContext(d);if(!e)throw new Error('Alert: `useAlertContext` hook is used out of "AlertContext"');return e},g=e=>{const{view:t}=u();return s.createElement(r.$,Object.assign({view:"filled"===t?"normal-contrast":void 0},e))};var p=i(69220);const m=(0,p.om)("alert"),f=({layout:e,view:t,children:i})=>s.createElement(d.Provider,{value:{layout:e,view:t}},i);var _=i(18677),v=i(10800),C=i(45720),E=i(43937),b=i(5744),S=i(70825),y=i(71153),w=i(94420);const R=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",d:"m14.61 6.914-7.632 8.08a1.614 1.614 0 0 1-2.69-1.66L5.5 10H2.677A1.677 1.677 0 0 1 1.12 7.7l2.323-5.807A2.22 2.22 0 0 1 5.5.5h4c.968 0 1.637.967 1.298 1.873L10 4.5h3.569a1.431 1.431 0 0 1 1.04 2.414"}));var L=i(27612);const T={danger:{filled:_.A,outlined:v.A},info:{filled:C.A,outlined:E.A},success:{filled:b.A,outlined:S.A},warning:{filled:y.A,outlined:w.A},utility:{filled:R,outlined:L.A},normal:null};var x=i(98089);var k=i(72837);const A=JSON.parse('{"label_close":"Close"}'),N=JSON.parse('{"label_close":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"}'),I=(0,k.N)({en:A,ru:N},"Alert"),O=e=>{const{theme:t="normal",view:i="filled",layout:d="vertical",message:u,className:g,corners:p,style:_,onClose:v,align:C,qa:E}=e;return s.createElement(f,{layout:d,view:i},s.createElement(o.Z,{style:_,className:m({corners:p},(0,l.Y)({py:4,px:5},g)),theme:t,view:i,qa:E},s.createElement(h.s,{gap:"3",alignItems:C},"undefined"===typeof e.icon?s.createElement(O.Icon,{theme:t,view:i}):e.icon,s.createElement(h.s,{direction:"vertical"===d?"column":"row",gap:"5",grow:!0},s.createElement(h.s,{gap:"2",grow:!0,className:m("text-content")},s.createElement(h.s,{direction:"column",gap:"1",grow:!0,justifyContent:C},"string"===typeof e.title?s.createElement(O.Title,{text:e.title}):e.title,u)),Array.isArray(e.actions)?s.createElement(O.Actions,{items:e.actions}):e.actions),v&&s.createElement(r.$,{view:"flat",className:m("close-btn"),onClick:v,extraProps:{"aria-label":I("label_close")}},s.createElement(a.I,{data:n.A,size:18,className:(0,c.$)({color:"secondary"})})))))};O.Icon=({className:e,theme:t,view:i="filled",size:n=18})=>{const r=T[t];if(!r)return null;let o;return"success"===t?o="positive":"normal"!==t&&(o=t),s.createElement("div",{className:m("icon",(0,c.$)({color:o},e))},s.createElement(a.I,{data:r[i],size:n}))},O.Title=({text:e,className:t})=>s.createElement(x.E,{variant:"subheader-2",className:m("title",t)},e),O.Actions=({items:e,children:t,className:i})=>{const{layout:n}=u();return s.createElement(h.s,{className:m("actions",{minContent:"horizontal"===n},i),direction:"row",gap:"3",wrap:!0,alignItems:"horizontal"===n?"center":"flex-start"},(null===e||void 0===e?void 0:e.map((({handler:e,text:t},i)=>s.createElement(g,{key:i,onClick:e},t))))||t)},O.Action=g},6170:(e,t,i)=>{"use strict";i.d(t,{B:()=>l});var s=i(59284),n=i(73633),r=i(84375),o=i(99991);const a=(0,i(98192).om)("help-popover"),c=16;function l(e){var t;return s.createElement(r.A,Object.assign({},e,{className:a(null,e.className)}),s.createElement("button",Object.assign({ref:e.buttonRef,type:"button"},e.buttonProps,{className:a("button",null===(t=e.buttonProps)||void 0===t?void 0:t.className)}),s.createElement(o.I,{data:n.A,size:c})))}},6376:(e,t,i)=>{"use strict";i.r(t),i.d(t,{MonacoDiffEditor:()=>l,default:()=>g,monaco:()=>s});var s=i(80781),n=i(59284);function r(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}function o(){}var a=function(){return a=Object.assign||function(e){for(var t,i=1,s=arguments.length;i<s;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},a.apply(this,arguments)};function c(e){var t=e.width,i=e.height,o=e.value,c=e.defaultValue,l=e.language,h=e.theme,d=e.options,u=e.overrideServices,g=e.editorWillMount,p=e.editorDidMount,m=e.editorWillUnmount,f=e.onChange,_=e.className,v=e.original,C=e.originalUri,E=e.modifiedUri,b=(0,n.useRef)(null),S=(0,n.useRef)(null),y=(0,n.useRef)(null),w=(0,n.useRef)(null),R=r(t),L=r(i),T=(0,n.useMemo)((function(){return{width:R,height:L}}),[R,L]);return(0,n.useEffect)((function(){b.current&&(g(s),S.current=s.editor.createDiffEditor(b.current,a(a(a({},_?{extraEditorClassName:_}:{}),d),h?{theme:h}:{}),u),function(){var e=null!=o?o:c,t=null===C||void 0===C?void 0:C(s),i=null===E||void 0===E?void 0:E(s),n=t&&s.editor.getModel(t),r=i&&s.editor.getModel(i);n?(n.setValue(v),s.editor.setModelLanguage(n,l)):n=s.editor.createModel(e,l,t),r?(n.setValue(e),s.editor.setModelLanguage(r,l)):r=s.editor.createModel(e,l,i),S.current.setModel({original:n,modified:r})}(),function(){p(S.current,s);var e=S.current.getModel().modified;y.current=e.onDidChangeContent((function(t){w.current||f(e.getValue(),t)}))}())}),[]),(0,n.useEffect)((function(){S.current&&S.current.updateOptions(a(a({},_?{extraEditorClassName:_}:{}),d))}),[_,d]),(0,n.useEffect)((function(){S.current&&S.current.layout()}),[t,i]),(0,n.useEffect)((function(){if(S.current){var e=S.current.getModel(),t=e.original,i=e.modified;s.editor.setModelLanguage(t,l),s.editor.setModelLanguage(i,l)}}),[l]),(0,n.useEffect)((function(){if(S.current){var e=S.current.getModel().modified;w.current=!0,S.current.getModifiedEditor().pushUndoStop(),e.pushEditOperations([],[{range:e.getFullModelRange(),text:o}]),S.current.getModifiedEditor().pushUndoStop(),w.current=!1}}),[o]),(0,n.useEffect)((function(){s.editor.setTheme(h)}),[h]),(0,n.useEffect)((function(){if(S.current){var e=S.current.getModel().original;v!==e.getValue()&&e.setValue(v)}}),[v]),(0,n.useEffect)((function(){return function(){if(S.current){m(S.current,s),S.current.dispose();var e=S.current.getModel(),t=e.original,i=e.modified;t&&t.dispose(),i&&i.dispose()}y.current&&y.current.dispose()}}),[]),n.createElement("div",{ref:b,style:T,className:"react-monaco-editor-container"})}c.defaultProps={width:"100%",height:"100%",original:null,value:null,defaultValue:"",language:"javascript",theme:null,options:{},overrideServices:{},editorWillMount:o,editorDidMount:o,editorWillUnmount:o,onChange:o,className:null},c.displayName="MonacoDiffEditor";const l=c;var h=function(){return h=Object.assign||function(e){for(var t,i=1,s=arguments.length;i<s;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},h.apply(this,arguments)},d=function(e,t){var i={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(i[s]=e[s]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var n=0;for(s=Object.getOwnPropertySymbols(e);n<s.length;n++)t.indexOf(s[n])<0&&Object.prototype.propertyIsEnumerable.call(e,s[n])&&(i[s[n]]=e[s[n]])}return i};function u(e){var t=e.width,i=e.height,o=e.value,a=e.defaultValue,c=e.language,l=e.theme,u=e.options,g=e.overrideServices,p=e.editorWillMount,m=e.editorDidMount,f=e.editorWillUnmount,_=e.onChange,v=e.className,C=e.uri,E=(0,n.useRef)(null),b=(0,n.useRef)(null),S=(0,n.useRef)(null),y=(0,n.useRef)(null),w=r(t),R=r(i),L=(0,n.useRef)(_);L.current=_;var T=(0,n.useMemo)((function(){return{width:w,height:R}}),[w,R]);return(0,n.useEffect)((function(){var e=null!==o?o:a;if(E.current){var t=h(h({},u),p(s)||{}),i=null===C||void 0===C?void 0:C(s),n=i&&s.editor.getModel(i);n?(n.setValue(e),s.editor.setModelLanguage(n,c)):n=s.editor.createModel(e,c,i),b.current=s.editor.create(E.current,h(h(h({model:n},v?{extraEditorClassName:v}:{}),t),l?{theme:l}:{}),g),m(b.current,s),S.current=b.current.onDidChangeModelContent((function(e){var t;y.current||null===(t=L.current)||void 0===t||t.call(L,b.current.getValue(),e)}))}}),[]),(0,n.useEffect)((function(){if(b.current){if(o===b.current.getValue())return;var e=b.current.getModel();y.current=!0,b.current.pushUndoStop(),e.pushEditOperations([],[{range:e.getFullModelRange(),text:o}],void 0),b.current.pushUndoStop(),y.current=!1}}),[o]),(0,n.useEffect)((function(){if(b.current){var e=b.current.getModel();s.editor.setModelLanguage(e,c)}}),[c]),(0,n.useEffect)((function(){if(b.current){u.model;var e=d(u,["model"]);b.current.updateOptions(h(h({},v?{extraEditorClassName:v}:{}),e))}}),[v,u]),(0,n.useEffect)((function(){b.current&&b.current.layout()}),[t,i]),(0,n.useEffect)((function(){s.editor.setTheme(l)}),[l]),(0,n.useEffect)((function(){return function(){b.current&&(f(b.current,s),b.current.dispose()),S.current&&S.current.dispose()}}),[]),n.createElement("div",{ref:E,style:T,className:"react-monaco-editor-container"})}u.defaultProps={width:"100%",height:"100%",value:null,defaultValue:"",language:"javascript",theme:null,options:{},overrideServices:{},editorWillMount:o,editorDidMount:o,editorWillUnmount:o,onChange:o,className:null},u.displayName="MonacoEditor";const g=u},6429:(e,t,i)=>{"use strict";var s,n=i(46359),r=i(71597),o=i(51861),a=i(78209),c=i(5662),l=i(98031),h=i(51467),d=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},u=function(e,t){return function(i,s){t(i,s,e)}};let g=class{static{s=this}static{this.PREFIX="?"}constructor(e,t){this.quickInputService=e,this.keybindingService=t,this.registry=n.O.as(r.Fd.Quickaccess)}provide(e){const t=new c.Cm;return t.add(e.onDidAccept((()=>{const[t]=e.selectedItems;t&&this.quickInputService.quickAccess.show(t.prefix,{preserveValue:!0})}))),t.add(e.onDidChangeValue((e=>{const t=this.registry.getQuickAccessProvider(e.substr(s.PREFIX.length));t&&t.prefix&&t.prefix!==s.PREFIX&&this.quickInputService.quickAccess.show(t.prefix,{preserveValue:!0})}))),e.items=this.getQuickAccessProviders().filter((e=>e.prefix!==s.PREFIX)),t}getQuickAccessProviders(){return this.registry.getQuickAccessProviders().sort(((e,t)=>e.prefix.localeCompare(t.prefix))).flatMap((e=>this.createPicks(e)))}createPicks(e){return e.helpEntries.map((t=>{const i=t.prefix||e.prefix,s=i||"\u2026";return{prefix:i,label:s,keybinding:t.commandId?this.keybindingService.lookupKeybinding(t.commandId):void 0,ariaLabel:(0,a.kg)("helpPickAriaLabel","{0}, {1}",s,t.description),description:t.description}}))}};g=s=d([u(0,h.GK),u(1,l.b)],g),n.O.as(r.Fd.Quickaccess).registerQuickAccessProvider({ctor:g,prefix:"",helpEntries:[{description:o.oq.helpQuickAccessActionLabel}]})},6438:(e,t,i)=>{"use strict";var s=i(31450),n=i(15092),r=i(94564),o=i(36677),a=i(60002),c=i(78209);class l extends s.ks{constructor(){super({id:"editor.action.transposeLetters",label:c.kg("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:a.R.writable,kbOpts:{kbExpr:a.R.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;const i=t.getModel(),s=[],a=t.getSelections();for(const c of a){if(!c.isEmpty())continue;const e=c.startLineNumber,t=c.startColumn,a=i.getLineMaxColumn(e);if(1===e&&(1===t||2===t&&2===a))continue;const l=t===a?c.getPosition():r.I.rightPosition(i,c.getPosition().lineNumber,c.getPosition().column),h=r.I.leftPosition(i,l),d=r.I.leftPosition(i,h),u=i.getValueInRange(o.Q.fromPositions(d,h)),g=i.getValueInRange(o.Q.fromPositions(h,l)),p=o.Q.fromPositions(d,l);s.push(new n.iu(p,g+u))}s.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop())}}(0,s.Fl)(l)},6921:(e,t,i)=>{"use strict";function s(e,t){const i=this;let s,n=!1;return function(){if(n)return s;if(n=!0,t)try{s=e.apply(i,arguments)}finally{t()}else s=e.apply(i,arguments);return s}}i.d(t,{P:()=>s})},7085:(e,t,i)=>{"use strict";i.d(t,{k:()=>n});var s=i(36677);class n{static insert(e,t){return{range:new s.Q(e.lineNumber,e.column,e.lineNumber,e.column),text:t,forceMoveMarkers:!0}}static delete(e){return{range:e,text:null}}static replace(e,t){return{range:e,text:t}}static replaceMove(e,t){return{range:e,text:t,forceMoveMarkers:!0}}}},7142:(e,t,i)=>{"use strict";i.d(t,{U:()=>l});var s=i(90766),n=i(18447),r=i(64383),o=i(31450),a=i(56942);class c{constructor(e,t,i){this.provider=e,this.hover=t,this.ordinal=i}}function l(e,t,i,n,o=!1){const a=e.ordered(t,o).map(((e,s)=>async function(e,t,i,s,n){const o=await Promise.resolve(e.provideHover(i,s,n)).catch(r.M_);if(o&&function(e){const t="undefined"!==typeof e.range,i="undefined"!==typeof e.contents&&e.contents&&e.contents.length>0;return t&&i}(o))return new c(e,o,t)}(e,s,t,i,n)));return s.AE.fromPromises(a).coalesce()}function h(e,t,i,s,n=!1){return l(e,t,i,s,n).map((e=>e.hover)).toPromise()}(0,o.ke)("_executeHoverProvider",((e,t,i)=>h(e.get(a.ILanguageFeaturesService).hoverProvider,t,i,n.XO.None))),(0,o.ke)("_executeHoverProvider_recursive",((e,t,i)=>h(e.get(a.ILanguageFeaturesService).hoverProvider,t,i,n.XO.None,!0)))},7252:(e,t,i)=>{var s,n=n||{version:"5.4.2"};if(t.fabric=n,"undefined"!==typeof document&&"undefined"!==typeof window)document instanceof("undefined"!==typeof HTMLDocument?HTMLDocument:Document)?n.document=document:n.document=document.implementation.createHTMLDocument(""),n.window=window;else{var r=new(i(66574).JSDOM)(decodeURIComponent("%3C!DOCTYPE%20html%3E%3Chtml%3E%3Chead%3E%3C%2Fhead%3E%3Cbody%3E%3C%2Fbody%3E%3C%2Fhtml%3E"),{features:{FetchExternalResources:["img"]},resources:"usable"}).window;n.document=r.document,n.jsdomImplForWrapper=i(2748).implForWrapper,n.nodeCanvas=i(52246).Canvas,n.window=r,DOMParser=n.window.DOMParser}function o(e,t){var i=e.canvas,s=t.targetCanvas,n=s.getContext("2d");n.translate(0,s.height),n.scale(1,-1);var r=i.height-s.height;n.drawImage(i,0,r,s.width,s.height,0,0,s.width,s.height)}function a(e,t){var i=t.targetCanvas.getContext("2d"),s=t.destinationWidth,n=t.destinationHeight,r=s*n*4,o=new Uint8Array(this.imageBuffer,0,r),a=new Uint8ClampedArray(this.imageBuffer,0,r);e.readPixels(0,0,s,n,e.RGBA,e.UNSIGNED_BYTE,o);var c=new ImageData(a,s,n);i.putImageData(c,0,0)}n.isTouchSupported="ontouchstart"in n.window||"ontouchstart"in n.document||n.window&&n.window.navigator&&n.window.navigator.maxTouchPoints>0,n.isLikelyNode="undefined"!==typeof Buffer&&"undefined"===typeof window,n.SHARED_ATTRIBUTES=["display","transform","fill","fill-opacity","fill-rule","opacity","stroke","stroke-dasharray","stroke-linecap","stroke-dashoffset","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","id","paint-order","vector-effect","instantiated_by_use","clip-path"],n.DPI=96,n.reNum="(?:[-+]?(?:\\d+|\\d*\\.\\d+)(?:[eE][-+]?\\d+)?)",n.commaWsp="(?:\\s+,?\\s*|,\\s*)",n.rePathCommand=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:[eE][-+]?\d+)?)/gi,n.reNonWord=/[ \n\.,;!\?\-]/,n.fontPaths={},n.iMatrix=[1,0,0,1,0,0],n.svgNS="http://www.w3.org/2000/svg",n.perfLimitSizeTotal=2097152,n.maxCacheSideLimit=4096,n.minCacheSideLimit=256,n.charWidthsCache={},n.textureSize=2048,n.disableStyleCopyPaste=!1,n.enableGLFiltering=!0,n.devicePixelRatio=n.window.devicePixelRatio||n.window.webkitDevicePixelRatio||n.window.mozDevicePixelRatio||1,n.browserShadowBlurConstant=1,n.arcToSegmentsCache={},n.boundsOfCurveCache={},n.cachesBoundsOfCurve=!0,n.forceGLPutImageData=!1,n.initFilterBackend=function(){return n.enableGLFiltering&&n.isWebglSupported&&n.isWebglSupported(n.textureSize)?(console.log("max texture size: "+n.maxTextureSize),new n.WebglFilterBackend({tileSize:n.textureSize})):n.Canvas2dFilterBackend?new n.Canvas2dFilterBackend:void 0},"undefined"!==typeof document&&"undefined"!==typeof window&&(window.fabric=n),function(){function e(e,t){if(this.__eventListeners[e]){var i=this.__eventListeners[e];t?i[i.indexOf(t)]=!1:n.util.array.fill(i,!1)}}function t(e,t){var i=function(){t.apply(this,arguments),this.off(e,i)}.bind(this);this.on(e,i)}n.Observable={fire:function(e,t){if(!this.__eventListeners)return this;var i=this.__eventListeners[e];if(!i)return this;for(var s=0,n=i.length;s<n;s++)i[s]&&i[s].call(this,t||{});return this.__eventListeners[e]=i.filter((function(e){return!1!==e})),this},on:function(e,t){if(this.__eventListeners||(this.__eventListeners={}),1===arguments.length)for(var i in e)this.on(i,e[i]);else this.__eventListeners[e]||(this.__eventListeners[e]=[]),this.__eventListeners[e].push(t);return this},once:function(e,i){if(1===arguments.length)for(var s in e)t.call(this,s,e[s]);else t.call(this,e,i);return this},off:function(t,i){if(!this.__eventListeners)return this;if(0===arguments.length)for(t in this.__eventListeners)e.call(this,t);else if(1===arguments.length&&"object"===typeof arguments[0])for(var s in t)e.call(this,s,t[s]);else e.call(this,t,i);return this}}}(),n.Collection={_objects:[],add:function(){if(this._objects.push.apply(this._objects,arguments),this._onObjectAdded)for(var e=0,t=arguments.length;e<t;e++)this._onObjectAdded(arguments[e]);return this.renderOnAddRemove&&this.requestRenderAll(),this},insertAt:function(e,t,i){var s=this._objects;return i?s[t]=e:s.splice(t,0,e),this._onObjectAdded&&this._onObjectAdded(e),this.renderOnAddRemove&&this.requestRenderAll(),this},remove:function(){for(var e,t=this._objects,i=!1,s=0,n=arguments.length;s<n;s++)-1!==(e=t.indexOf(arguments[s]))&&(i=!0,t.splice(e,1),this._onObjectRemoved&&this._onObjectRemoved(arguments[s]));return this.renderOnAddRemove&&i&&this.requestRenderAll(),this},forEachObject:function(e,t){for(var i=this.getObjects(),s=0,n=i.length;s<n;s++)e.call(t,i[s],s,i);return this},getObjects:function(e){return"undefined"===typeof e?this._objects.concat():this._objects.filter((function(t){return t.type===e}))},item:function(e){return this._objects[e]},isEmpty:function(){return 0===this._objects.length},size:function(){return this._objects.length},contains:function(e,t){return this._objects.indexOf(e)>-1||!!t&&this._objects.some((function(t){return"function"===typeof t.contains&&t.contains(e,!0)}))},complexity:function(){return this._objects.reduce((function(e,t){return e+=t.complexity?t.complexity():0}),0)}},n.CommonMethods={_setOptions:function(e){for(var t in e)this.set(t,e[t])},_initGradient:function(e,t){!e||!e.colorStops||e instanceof n.Gradient||this.set(t,new n.Gradient(e))},_initPattern:function(e,t,i){!e||!e.source||e instanceof n.Pattern?i&&i():this.set(t,new n.Pattern(e,i))},_setObject:function(e){for(var t in e)this._set(t,e[t])},set:function(e,t){return"object"===typeof e?this._setObject(e):this._set(e,t),this},_set:function(e,t){this[e]=t},toggle:function(e){var t=this.get(e);return"boolean"===typeof t&&this.set(e,!t),this},get:function(e){return this[e]}},function(e){var t=Math.sqrt,i=Math.atan2,s=Math.pow,r=Math.PI/180,o=Math.PI/2;n.util={cos:function(e){if(0===e)return 1;switch(e<0&&(e=-e),e/o){case 1:case 3:return 0;case 2:return-1}return Math.cos(e)},sin:function(e){if(0===e)return 0;var t=1;switch(e<0&&(t=-1),e/o){case 1:return t;case 2:return 0;case 3:return-t}return Math.sin(e)},removeFromArray:function(e,t){var i=e.indexOf(t);return-1!==i&&e.splice(i,1),e},getRandomInt:function(e,t){return Math.floor(Math.random()*(t-e+1))+e},degreesToRadians:function(e){return e*r},radiansToDegrees:function(e){return e/r},rotatePoint:function(e,t,i){var s=new n.Point(e.x-t.x,e.y-t.y),r=n.util.rotateVector(s,i);return new n.Point(r.x,r.y).addEquals(t)},rotateVector:function(e,t){var i=n.util.sin(t),s=n.util.cos(t);return{x:e.x*s-e.y*i,y:e.x*i+e.y*s}},createVector:function(e,t){return new n.Point(t.x-e.x,t.y-e.y)},calcAngleBetweenVectors:function(e,t){return Math.acos((e.x*t.x+e.y*t.y)/(Math.hypot(e.x,e.y)*Math.hypot(t.x,t.y)))},getHatVector:function(e){return new n.Point(e.x,e.y).multiply(1/Math.hypot(e.x,e.y))},getBisector:function(e,t,i){var s=n.util.createVector(e,t),r=n.util.createVector(e,i),o=n.util.calcAngleBetweenVectors(s,r),a=o*(0===n.util.calcAngleBetweenVectors(n.util.rotateVector(s,o),r)?1:-1)/2;return{vector:n.util.getHatVector(n.util.rotateVector(s,a)),angle:o}},projectStrokeOnPoints:function(e,t,i){var s=[],r=t.strokeWidth/2,o=t.strokeUniform?new n.Point(1/t.scaleX,1/t.scaleY):new n.Point(1,1),a=function(e){var t=r/Math.hypot(e.x,e.y);return new n.Point(e.x*t*o.x,e.y*t*o.y)};return e.length<=1||e.forEach((function(c,l){var h,d,u=new n.Point(c.x,c.y);0===l?(d=e[l+1],h=i?a(n.util.createVector(d,u)).addEquals(u):e[e.length-1]):l===e.length-1?(h=e[l-1],d=i?a(n.util.createVector(h,u)).addEquals(u):e[0]):(h=e[l-1],d=e[l+1]);var g,p,m=n.util.getBisector(u,h,d),f=m.vector,_=m.angle;if("miter"===t.strokeLineJoin&&(g=-r/Math.sin(_/2),p=new n.Point(f.x*g*o.x,f.y*g*o.y),Math.hypot(p.x,p.y)/r<=t.strokeMiterLimit))return s.push(u.add(p)),void s.push(u.subtract(p));g=-r*Math.SQRT2,p=new n.Point(f.x*g*o.x,f.y*g*o.y),s.push(u.add(p)),s.push(u.subtract(p))})),s},transformPoint:function(e,t,i){return i?new n.Point(t[0]*e.x+t[2]*e.y,t[1]*e.x+t[3]*e.y):new n.Point(t[0]*e.x+t[2]*e.y+t[4],t[1]*e.x+t[3]*e.y+t[5])},makeBoundingBoxFromPoints:function(e,t){if(t)for(var i=0;i<e.length;i++)e[i]=n.util.transformPoint(e[i],t);var s=[e[0].x,e[1].x,e[2].x,e[3].x],r=n.util.array.min(s),o=n.util.array.max(s)-r,a=[e[0].y,e[1].y,e[2].y,e[3].y],c=n.util.array.min(a);return{left:r,top:c,width:o,height:n.util.array.max(a)-c}},invertTransform:function(e){var t=1/(e[0]*e[3]-e[1]*e[2]),i=[t*e[3],-t*e[1],-t*e[2],t*e[0]],s=n.util.transformPoint({x:e[4],y:e[5]},i,!0);return i[4]=-s.x,i[5]=-s.y,i},toFixed:function(e,t){return parseFloat(Number(e).toFixed(t))},parseUnit:function(e,t){var i=/\D{0,2}$/.exec(e),s=parseFloat(e);switch(t||(t=n.Text.DEFAULT_SVG_FONT_SIZE),i[0]){case"mm":return s*n.DPI/25.4;case"cm":return s*n.DPI/2.54;case"in":return s*n.DPI;case"pt":return s*n.DPI/72;case"pc":return s*n.DPI/72*12;case"em":return s*t;default:return s}},falseFunction:function(){return!1},getKlass:function(e,t){return e=n.util.string.camelize(e.charAt(0).toUpperCase()+e.slice(1)),n.util.resolveNamespace(t)[e]},getSvgAttributes:function(e){var t=["instantiated_by_use","style","id","class"];switch(e){case"linearGradient":t=t.concat(["x1","y1","x2","y2","gradientUnits","gradientTransform"]);break;case"radialGradient":t=t.concat(["gradientUnits","gradientTransform","cx","cy","r","fx","fy","fr"]);break;case"stop":t=t.concat(["offset","stop-color","stop-opacity"])}return t},resolveNamespace:function(t){if(!t)return n;var i,s=t.split("."),r=s.length,o=e||n.window;for(i=0;i<r;++i)o=o[s[i]];return o},loadImage:function(e,t,i,s){if(e){var r=n.util.createImage(),o=function(){t&&t.call(i,r,!1),r=r.onload=r.onerror=null};r.onload=o,r.onerror=function(){n.log("Error loading "+r.src),t&&t.call(i,null,!0),r=r.onload=r.onerror=null},0!==e.indexOf("data")&&void 0!==s&&null!==s&&(r.crossOrigin=s),"data:image/svg"===e.substring(0,14)&&(r.onload=null,n.util.loadImageInDom(r,o)),r.src=e}else t&&t.call(i,e)},loadImageInDom:function(e,t){var i=n.document.createElement("div");i.style.width=i.style.height="1px",i.style.left=i.style.top="-100%",i.style.position="absolute",i.appendChild(e),n.document.querySelector("body").appendChild(i),e.onload=function(){t(),i.parentNode.removeChild(i),i=null}},enlivenObjects:function(e,t,i,s){var r=[],o=0,a=(e=e||[]).length;function c(){++o===a&&t&&t(r.filter((function(e){return e})))}a?e.forEach((function(e,t){e&&e.type?n.util.getKlass(e.type,i).fromObject(e,(function(i,n){n||(r[t]=i),s&&s(e,i,n),c()})):c()})):t&&t(r)},enlivenObjectEnlivables:function(e,t,i){var s=n.Object.ENLIVEN_PROPS.filter((function(t){return!!e[t]}));n.util.enlivenObjects(s.map((function(t){return e[t]})),(function(e){var n={};s.forEach((function(i,s){n[i]=e[s],t&&(t[i]=e[s])})),i&&i(n)}))},enlivenPatterns:function(e,t){function i(){++r===o&&t&&t(s)}var s=[],r=0,o=(e=e||[]).length;o?e.forEach((function(e,t){e&&e.source?new n.Pattern(e,(function(e){s[t]=e,i()})):(s[t]=e,i())})):t&&t(s)},groupSVGElements:function(e,t,i){var s;return e&&1===e.length?("undefined"!==typeof i&&(e[0].sourcePath=i),e[0]):(t&&(t.width&&t.height?t.centerPoint={x:t.width/2,y:t.height/2}:(delete t.width,delete t.height)),s=new n.Group(e,t),"undefined"!==typeof i&&(s.sourcePath=i),s)},populateWithProperties:function(e,t,i){if(i&&Array.isArray(i))for(var s=0,n=i.length;s<n;s++)i[s]in e&&(t[i[s]]=e[i[s]])},createCanvasElement:function(){return n.document.createElement("canvas")},copyCanvasElement:function(e){var t=n.util.createCanvasElement();return t.width=e.width,t.height=e.height,t.getContext("2d").drawImage(e,0,0),t},toDataURL:function(e,t,i){return e.toDataURL("image/"+t,i)},createImage:function(){return n.document.createElement("img")},multiplyTransformMatrices:function(e,t,i){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],i?0:e[0]*t[4]+e[2]*t[5]+e[4],i?0:e[1]*t[4]+e[3]*t[5]+e[5]]},qrDecompose:function(e){var n=i(e[1],e[0]),o=s(e[0],2)+s(e[1],2),a=t(o),c=(e[0]*e[3]-e[2]*e[1])/a,l=i(e[0]*e[2]+e[1]*e[3],o);return{angle:n/r,scaleX:a,scaleY:c,skewX:l/r,skewY:0,translateX:e[4],translateY:e[5]}},calcRotateMatrix:function(e){if(!e.angle)return n.iMatrix.concat();var t=n.util.degreesToRadians(e.angle),i=n.util.cos(t),s=n.util.sin(t);return[i,s,-s,i,0,0]},calcDimensionsMatrix:function(e){var t="undefined"===typeof e.scaleX?1:e.scaleX,i="undefined"===typeof e.scaleY?1:e.scaleY,s=[e.flipX?-t:t,0,0,e.flipY?-i:i,0,0],r=n.util.multiplyTransformMatrices,o=n.util.degreesToRadians;return e.skewX&&(s=r(s,[1,0,Math.tan(o(e.skewX)),1],!0)),e.skewY&&(s=r(s,[1,Math.tan(o(e.skewY)),0,1],!0)),s},composeMatrix:function(e){var t=[1,0,0,1,e.translateX||0,e.translateY||0],i=n.util.multiplyTransformMatrices;return e.angle&&(t=i(t,n.util.calcRotateMatrix(e))),(1!==e.scaleX||1!==e.scaleY||e.skewX||e.skewY||e.flipX||e.flipY)&&(t=i(t,n.util.calcDimensionsMatrix(e))),t},resetObjectTransform:function(e){e.scaleX=1,e.scaleY=1,e.skewX=0,e.skewY=0,e.flipX=!1,e.flipY=!1,e.rotate(0)},saveObjectTransform:function(e){return{scaleX:e.scaleX,scaleY:e.scaleY,skewX:e.skewX,skewY:e.skewY,angle:e.angle,left:e.left,flipX:e.flipX,flipY:e.flipY,top:e.top}},isTransparent:function(e,t,i,s){s>0&&(t>s?t-=s:t=0,i>s?i-=s:i=0);var n,r=!0,o=e.getImageData(t,i,2*s||1,2*s||1),a=o.data.length;for(n=3;n<a&&!1!==(r=o.data[n]<=0);n+=4);return o=null,r},parsePreserveAspectRatioAttribute:function(e){var t,i="meet",s=e.split(" ");return s&&s.length&&("meet"!==(i=s.pop())&&"slice"!==i?(t=i,i="meet"):s.length&&(t=s.pop())),{meetOrSlice:i,alignX:"none"!==t?t.slice(1,4):"none",alignY:"none"!==t?t.slice(5,8):"none"}},clearFabricFontCache:function(e){(e=(e||"").toLowerCase())?n.charWidthsCache[e]&&delete n.charWidthsCache[e]:n.charWidthsCache={}},limitDimsByArea:function(e,t){var i=Math.sqrt(t*e),s=Math.floor(t/i);return{x:Math.floor(i),y:s}},capValue:function(e,t,i){return Math.max(e,Math.min(t,i))},findScaleToFit:function(e,t){return Math.min(t.width/e.width,t.height/e.height)},findScaleToCover:function(e,t){return Math.max(t.width/e.width,t.height/e.height)},matrixToSVG:function(e){return"matrix("+e.map((function(e){return n.util.toFixed(e,n.Object.NUM_FRACTION_DIGITS)})).join(" ")+")"},removeTransformFromObject:function(e,t){var i=n.util.invertTransform(t),s=n.util.multiplyTransformMatrices(i,e.calcOwnMatrix());n.util.applyTransformToObject(e,s)},addTransformToObject:function(e,t){n.util.applyTransformToObject(e,n.util.multiplyTransformMatrices(t,e.calcOwnMatrix()))},applyTransformToObject:function(e,t){var i=n.util.qrDecompose(t),s=new n.Point(i.translateX,i.translateY);e.flipX=!1,e.flipY=!1,e.set("scaleX",i.scaleX),e.set("scaleY",i.scaleY),e.skewX=i.skewX,e.skewY=i.skewY,e.angle=i.angle,e.setPositionByOrigin(s,"center","center")},sizeAfterTransform:function(e,t,i){var s=e/2,r=t/2,o=[{x:-s,y:-r},{x:s,y:-r},{x:-s,y:r},{x:s,y:r}],a=n.util.calcDimensionsMatrix(i),c=n.util.makeBoundingBoxFromPoints(o,a);return{x:c.width,y:c.height}},mergeClipPaths:function(e,t){var i=e,s=t;i.inverted&&!s.inverted&&(i=t,s=e),n.util.applyTransformToObject(s,n.util.multiplyTransformMatrices(n.util.invertTransform(i.calcTransformMatrix()),s.calcTransformMatrix()));var r=i.inverted&&s.inverted;return r&&(i.inverted=s.inverted=!1),new n.Group([i],{clipPath:s,inverted:r})},hasStyleChanged:function(e,t,i){return i=i||!1,e.fill!==t.fill||e.stroke!==t.stroke||e.strokeWidth!==t.strokeWidth||e.fontSize!==t.fontSize||e.fontFamily!==t.fontFamily||e.fontWeight!==t.fontWeight||e.fontStyle!==t.fontStyle||e.textBackgroundColor!==t.textBackgroundColor||e.deltaY!==t.deltaY||i&&(e.overline!==t.overline||e.underline!==t.underline||e.linethrough!==t.linethrough)},stylesToArray:function(e,t){e=n.util.object.clone(e,!0);for(var i=t.split("\n"),s=-1,r={},o=[],a=0;a<i.length;a++)if(e[a])for(var c=0;c<i[a].length;c++){s++;var l=e[a][c];if(l&&Object.keys(l).length>0)n.util.hasStyleChanged(r,l,!0)?o.push({start:s,end:s+1,style:l}):o[o.length-1].end++;r=l||{}}else s+=i[a].length;return o},stylesFromArray:function(e,t){if(!Array.isArray(e))return e;for(var i=t.split("\n"),s=-1,n=0,r={},o=0;o<i.length;o++)for(var a=0;a<i[o].length;a++)s++,e[n]&&e[n].start<=s&&s<e[n].end&&(r[o]=r[o]||{},r[o][a]=Object.assign({},e[n].style),s===e[n].end-1&&n++);return r}}}(t),function(){var e=Array.prototype.join,t={m:2,l:2,h:1,v:1,c:6,s:4,q:4,t:2,a:7},i={m:"l",M:"L"};function s(e,t,i,s,r,o,a,c,l,h,d){var u=n.util.cos(e),g=n.util.sin(e),p=n.util.cos(t),m=n.util.sin(t),f=i*r*p-s*o*m+a,_=s*r*p+i*o*m+c;return["C",h+l*(-i*r*g-s*o*u),d+l*(-s*r*g+i*o*u),f+l*(i*r*m+s*o*p),_+l*(s*r*m-i*o*p),f,_]}function r(e,t,i,s){var n=Math.atan2(t,e),r=Math.atan2(s,i);return r>=n?r-n:2*Math.PI-(n-r)}function o(e,t,i){for(var o=i[1],a=i[2],c=i[3],l=i[4],h=i[5],d=function(e,t,i,o,a,c,l){var h=Math.PI,d=l*h/180,u=n.util.sin(d),g=n.util.cos(d),p=0,m=0,f=-g*e*.5-u*t*.5,_=-g*t*.5+u*e*.5,v=(i=Math.abs(i))*i,C=(o=Math.abs(o))*o,E=_*_,b=f*f,S=v*C-v*E-C*b,y=0;if(S<0){var w=Math.sqrt(1-S/(v*C));i*=w,o*=w}else y=(a===c?-1:1)*Math.sqrt(S/(v*E+C*b));var R=y*i*_/o,L=-y*o*f/i,T=g*R-u*L+.5*e,x=u*R+g*L+.5*t,k=r(1,0,(f-R)/i,(_-L)/o),A=r((f-R)/i,(_-L)/o,(-f-R)/i,(-_-L)/o);0===c&&A>0?A-=2*h:1===c&&A<0&&(A+=2*h);for(var N=Math.ceil(Math.abs(A/h*2)),I=[],O=A/N,D=8/3*Math.sin(O/4)*Math.sin(O/4)/Math.sin(O/2),M=k+O,P=0;P<N;P++)I[P]=s(k,M,g,u,i,o,T,x,D,p,m),p=I[P][5],m=I[P][6],k=M,M+=O;return I}(i[6]-e,i[7]-t,o,a,l,h,c),u=0,g=d.length;u<g;u++)d[u][1]+=e,d[u][2]+=t,d[u][3]+=e,d[u][4]+=t,d[u][5]+=e,d[u][6]+=t;return d}function a(e,t,i,s){return Math.sqrt((i-e)*(i-e)+(s-t)*(s-t))}function c(e,t,i,s,n,r,o,a){return function(c){var l,h=(l=c)*l*l,d=function(e){return 3*e*e*(1-e)}(c),u=function(e){return 3*e*(1-e)*(1-e)}(c),g=function(e){return(1-e)*(1-e)*(1-e)}(c);return{x:o*h+n*d+i*u+e*g,y:a*h+r*d+s*u+t*g}}}function l(e,t,i,s,n,r,o,a){return function(c){var l=1-c,h=3*l*l*(i-e)+6*l*c*(n-i)+3*c*c*(o-n),d=3*l*l*(s-t)+6*l*c*(r-s)+3*c*c*(a-r);return Math.atan2(d,h)}}function h(e,t,i,s,n,r){return function(o){var a,c=(a=o)*a,l=function(e){return 2*e*(1-e)}(o),h=function(e){return(1-e)*(1-e)}(o);return{x:n*c+i*l+e*h,y:r*c+s*l+t*h}}}function d(e,t,i,s,n,r){return function(o){var a=1-o,c=2*a*(i-e)+2*o*(n-i),l=2*a*(s-t)+2*o*(r-s);return Math.atan2(l,c)}}function u(e,t,i){var s,n,r={x:t,y:i},o=0;for(n=1;n<=100;n+=1)s=e(n/100),o+=a(r.x,r.y,s.x,s.y),r=s;return o}function g(e,t){for(var i,s,n,r=0,o=0,c=e.iterator,l={x:e.x,y:e.y},h=.01,d=e.angleFinder;o<t&&h>1e-4;)i=c(r),n=r,(s=a(l.x,l.y,i.x,i.y))+o>t?(r-=h,h/=2):(l=i,r+=h,o+=s);return i.angle=d(n),i}function p(e){for(var t,i,s,n,r=0,o=e.length,g=0,p=0,m=0,f=0,_=[],v=0;v<o;v++){switch(s={x:g,y:p,command:(t=e[v])[0]},t[0]){case"M":s.length=0,m=g=t[1],f=p=t[2];break;case"L":s.length=a(g,p,t[1],t[2]),g=t[1],p=t[2];break;case"C":i=c(g,p,t[1],t[2],t[3],t[4],t[5],t[6]),n=l(g,p,t[1],t[2],t[3],t[4],t[5],t[6]),s.iterator=i,s.angleFinder=n,s.length=u(i,g,p),g=t[5],p=t[6];break;case"Q":i=h(g,p,t[1],t[2],t[3],t[4]),n=d(g,p,t[1],t[2],t[3],t[4]),s.iterator=i,s.angleFinder=n,s.length=u(i,g,p),g=t[3],p=t[4];break;case"Z":case"z":s.destX=m,s.destY=f,s.length=a(g,p,m,f),g=m,p=f}r+=s.length,_.push(s)}return _.push({length:r,x:g,y:p}),_}n.util.joinPath=function(e){return e.map((function(e){return e.join(" ")})).join(" ")},n.util.parsePath=function(e){var s,r,o,a,c,l=[],h=[],d=n.rePathCommand,u="[-+]?(?:\\d*\\.\\d+|\\d+\\.?)(?:[eE][-+]?\\d+)?\\s*",g="("+u+")"+n.commaWsp,p="([01])"+n.commaWsp+"?",m=new RegExp(g+"?"+g+"?"+g+p+p+g+"?("+u+")","g");if(!e||!e.match)return l;for(var f,_=0,v=(c=e.match(/[mzlhvcsqta][^mzlhvcsqta]*/gi)).length;_<v;_++){a=(s=c[_]).slice(1).trim(),h.length=0;var C=s.charAt(0);if(f=[C],"a"===C.toLowerCase())for(var E;E=m.exec(a);)for(var b=1;b<E.length;b++)h.push(E[b]);else for(;o=d.exec(a);)h.push(o[0]);b=0;for(var S=h.length;b<S;b++)r=parseFloat(h[b]),isNaN(r)||f.push(r);var y=t[C.toLowerCase()],w=i[C]||C;if(f.length-1>y)for(var R=1,L=f.length;R<L;R+=y)l.push([C].concat(f.slice(R,R+y))),C=w;else l.push(f)}return l},n.util.makePathSimpler=function(e){var t,i,s,n,r,a,c=0,l=0,h=e.length,d=0,u=0,g=[];for(i=0;i<h;++i){switch(s=!1,(t=e[i].slice(0))[0]){case"l":t[0]="L",t[1]+=c,t[2]+=l;case"L":c=t[1],l=t[2];break;case"h":t[1]+=c;case"H":t[0]="L",t[2]=l,c=t[1];break;case"v":t[1]+=l;case"V":t[0]="L",l=t[1],t[1]=c,t[2]=l;break;case"m":t[0]="M",t[1]+=c,t[2]+=l;case"M":c=t[1],l=t[2],d=t[1],u=t[2];break;case"c":t[0]="C",t[1]+=c,t[2]+=l,t[3]+=c,t[4]+=l,t[5]+=c,t[6]+=l;case"C":r=t[3],a=t[4],c=t[5],l=t[6];break;case"s":t[0]="S",t[1]+=c,t[2]+=l,t[3]+=c,t[4]+=l;case"S":"C"===n?(r=2*c-r,a=2*l-a):(r=c,a=l),c=t[3],l=t[4],t[0]="C",t[5]=t[3],t[6]=t[4],t[3]=t[1],t[4]=t[2],t[1]=r,t[2]=a,r=t[3],a=t[4];break;case"q":t[0]="Q",t[1]+=c,t[2]+=l,t[3]+=c,t[4]+=l;case"Q":r=t[1],a=t[2],c=t[3],l=t[4];break;case"t":t[0]="T",t[1]+=c,t[2]+=l;case"T":"Q"===n?(r=2*c-r,a=2*l-a):(r=c,a=l),t[0]="Q",c=t[1],l=t[2],t[1]=r,t[2]=a,t[3]=c,t[4]=l;break;case"a":t[0]="A",t[6]+=c,t[7]+=l;case"A":s=!0,g=g.concat(o(c,l,t)),c=t[6],l=t[7];break;case"z":case"Z":c=d,l=u}s||g.push(t),n=t[0]}return g},n.util.getSmoothPathFromPoints=function(e,t){var i,s=[],r=new n.Point(e[0].x,e[0].y),o=new n.Point(e[1].x,e[1].y),a=e.length,c=1,l=0,h=a>2;for(t=t||0,h&&(c=e[2].x<o.x?-1:e[2].x===o.x?0:1,l=e[2].y<o.y?-1:e[2].y===o.y?0:1),s.push(["M",r.x-c*t,r.y-l*t]),i=1;i<a;i++){if(!r.eq(o)){var d=r.midPointFrom(o);s.push(["Q",r.x,r.y,d.x,d.y])}r=e[i],i+1<e.length&&(o=e[i+1])}return h&&(c=r.x>e[i-2].x?1:r.x===e[i-2].x?0:-1,l=r.y>e[i-2].y?1:r.y===e[i-2].y?0:-1),s.push(["L",r.x+c*t,r.y+l*t]),s},n.util.getPathSegmentsInfo=p,n.util.getBoundsOfCurve=function(t,i,s,r,o,a,c,l){var h;if(n.cachesBoundsOfCurve&&(h=e.call(arguments),n.boundsOfCurveCache[h]))return n.boundsOfCurveCache[h];var d,u,g,p,m,f,_,v,C=Math.sqrt,E=Math.min,b=Math.max,S=Math.abs,y=[],w=[[],[]];u=6*t-12*s+6*o,d=-3*t+9*s-9*o+3*c,g=3*s-3*t;for(var R=0;R<2;++R)if(R>0&&(u=6*i-12*r+6*a,d=-3*i+9*r-9*a+3*l,g=3*r-3*i),S(d)<1e-12){if(S(u)<1e-12)continue;0<(p=-g/u)&&p<1&&y.push(p)}else(_=u*u-4*g*d)<0||(0<(m=(-u+(v=C(_)))/(2*d))&&m<1&&y.push(m),0<(f=(-u-v)/(2*d))&&f<1&&y.push(f));for(var L,T,x,k=y.length,A=k;k--;)L=(x=1-(p=y[k]))*x*x*t+3*x*x*p*s+3*x*p*p*o+p*p*p*c,w[0][k]=L,T=x*x*x*i+3*x*x*p*r+3*x*p*p*a+p*p*p*l,w[1][k]=T;w[0][A]=t,w[1][A]=i,w[0][A+1]=c,w[1][A+1]=l;var N=[{x:E.apply(null,w[0]),y:E.apply(null,w[1])},{x:b.apply(null,w[0]),y:b.apply(null,w[1])}];return n.cachesBoundsOfCurve&&(n.boundsOfCurveCache[h]=N),N},n.util.getPointOnPath=function(e,t,i){i||(i=p(e));for(var s=0;t-i[s].length>0&&s<i.length-2;)t-=i[s].length,s++;var r,o=i[s],a=t/o.length,c=o.command,l=e[s];switch(c){case"M":return{x:o.x,y:o.y,angle:0};case"Z":case"z":return(r=new n.Point(o.x,o.y).lerp(new n.Point(o.destX,o.destY),a)).angle=Math.atan2(o.destY-o.y,o.destX-o.x),r;case"L":return(r=new n.Point(o.x,o.y).lerp(new n.Point(l[1],l[2]),a)).angle=Math.atan2(l[2]-o.y,l[1]-o.x),r;case"C":case"Q":return g(o,t)}},n.util.transformPath=function(e,t,i){return i&&(t=n.util.multiplyTransformMatrices(t,[1,0,0,1,-i.x,-i.y])),e.map((function(e){for(var i=e.slice(0),s={},r=1;r<e.length-1;r+=2)s.x=e[r],s.y=e[r+1],s=n.util.transformPoint(s,t),i[r]=s.x,i[r+1]=s.y;return i}))}}(),function(){var e=Array.prototype.slice;function t(e,t,i){if(e&&0!==e.length){var s=e.length-1,n=t?e[s][t]:e[s];if(t)for(;s--;)i(e[s][t],n)&&(n=e[s][t]);else for(;s--;)i(e[s],n)&&(n=e[s]);return n}}n.util.array={fill:function(e,t){for(var i=e.length;i--;)e[i]=t;return e},invoke:function(t,i){for(var s=e.call(arguments,2),n=[],r=0,o=t.length;r<o;r++)n[r]=s.length?t[r][i].apply(t[r],s):t[r][i].call(t[r]);return n},min:function(e,i){return t(e,i,(function(e,t){return e<t}))},max:function(e,i){return t(e,i,(function(e,t){return e>=t}))}}}(),function(){function e(t,i,s){if(s)if(!n.isLikelyNode&&i instanceof Element)t=i;else if(i instanceof Array){t=[];for(var r=0,o=i.length;r<o;r++)t[r]=e({},i[r],s)}else if(i&&"object"===typeof i)for(var a in i)"canvas"===a||"group"===a?t[a]=null:i.hasOwnProperty(a)&&(t[a]=e({},i[a],s));else t=i;else for(var a in i)t[a]=i[a];return t}n.util.object={extend:e,clone:function(t,i){return e({},t,i)}},n.util.object.extend(n.util,n.Observable)}(),function(){function e(e,t){var i=e.charCodeAt(t);if(isNaN(i))return"";if(i<55296||i>57343)return e.charAt(t);if(55296<=i&&i<=56319){if(e.length<=t+1)throw"High surrogate without following low surrogate";var s=e.charCodeAt(t+1);if(56320>s||s>57343)throw"High surrogate without following low surrogate";return e.charAt(t)+e.charAt(t+1)}if(0===t)throw"Low surrogate without preceding high surrogate";var n=e.charCodeAt(t-1);if(55296>n||n>56319)throw"Low surrogate without preceding high surrogate";return!1}n.util.string={camelize:function(e){return e.replace(/-+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))},capitalize:function(e,t){return e.charAt(0).toUpperCase()+(t?e.slice(1):e.slice(1).toLowerCase())},escapeXml:function(e){return e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")},graphemeSplit:function(t){var i,s=0,n=[];for(s=0;s<t.length;s++)!1!==(i=e(t,s))&&n.push(i);return n}}}(),function(){var e=Array.prototype.slice,t=function(){},i=function(){for(var e in{toString:1})if("toString"===e)return!1;return!0}(),s=function(e,t,s){for(var n in t)n in e.prototype&&"function"===typeof e.prototype[n]&&(t[n]+"").indexOf("callSuper")>-1?e.prototype[n]=function(e){return function(){var i=this.constructor.superclass;this.constructor.superclass=s;var n=t[e].apply(this,arguments);if(this.constructor.superclass=i,"initialize"!==e)return n}}(n):e.prototype[n]=t[n],i&&(t.toString!==Object.prototype.toString&&(e.prototype.toString=t.toString),t.valueOf!==Object.prototype.valueOf&&(e.prototype.valueOf=t.valueOf))};function r(){}function o(t){for(var i=null,s=this;s.constructor.superclass;){var n=s.constructor.superclass.prototype[t];if(s[t]!==n){i=n;break}s=s.constructor.superclass.prototype}return i?arguments.length>1?i.apply(this,e.call(arguments,1)):i.call(this):console.log("tried to callSuper "+t+", method not found in prototype chain",this)}n.util.createClass=function(){var i=null,n=e.call(arguments,0);function a(){this.initialize.apply(this,arguments)}"function"===typeof n[0]&&(i=n.shift()),a.superclass=i,a.subclasses=[],i&&(r.prototype=i.prototype,a.prototype=new r,i.subclasses.push(a));for(var c=0,l=n.length;c<l;c++)s(a,n[c],i);return a.prototype.initialize||(a.prototype.initialize=t),a.prototype.constructor=a,a.prototype.callSuper=o,a}}(),function(){var e=!!n.document.createElement("div").attachEvent,t=["touchstart","touchmove","touchend"];n.util.addListener=function(t,i,s,n){t&&t.addEventListener(i,s,!e&&n)},n.util.removeListener=function(t,i,s,n){t&&t.removeEventListener(i,s,!e&&n)},n.util.getPointer=function(e){var t=e.target,i=n.util.getScrollLeftTop(t),s=function(e){var t=e.changedTouches;return t&&t[0]?t[0]:e}(e);return{x:s.clientX+i.left,y:s.clientY+i.top}},n.util.isTouchEvent=function(e){return t.indexOf(e.type)>-1||"touch"===e.pointerType}}(),function(){var e=n.document.createElement("div"),t="string"===typeof e.style.opacity,i="string"===typeof e.style.filter,s=/alpha\s*\(\s*opacity\s*=\s*([^\)]+)\)/,r=function(e){return e};t?r=function(e,t){return e.style.opacity=t,e}:i&&(r=function(e,t){var i=e.style;return e.currentStyle&&!e.currentStyle.hasLayout&&(i.zoom=1),s.test(i.filter)?(t=t>=.9999?"":"alpha(opacity="+100*t+")",i.filter=i.filter.replace(s,t)):i.filter+=" alpha(opacity="+100*t+")",e}),n.util.setStyle=function(e,t){var i=e.style;if(!i)return e;if("string"===typeof t)return e.style.cssText+=";"+t,t.indexOf("opacity")>-1?r(e,t.match(/opacity:\s*(\d?\.?\d*)/)[1]):e;for(var s in t)if("opacity"===s)r(e,t[s]);else{var n="float"===s||"cssFloat"===s?"undefined"===typeof i.styleFloat?"cssFloat":"styleFloat":s;i.setProperty(n,t[s])}return e}}(),function(){var e=Array.prototype.slice;var t,i,s=function(t){return e.call(t,0)};try{t=s(n.document.childNodes)instanceof Array}catch(a){}function r(e,t){var i=n.document.createElement(e);for(var s in t)"class"===s?i.className=t[s]:"for"===s?i.htmlFor=t[s]:i.setAttribute(s,t[s]);return i}function o(e){for(var t=0,i=0,s=n.document.documentElement,r=n.document.body||{scrollLeft:0,scrollTop:0};e&&(e.parentNode||e.host)&&((e=e.parentNode||e.host)===n.document?(t=r.scrollLeft||s.scrollLeft||0,i=r.scrollTop||s.scrollTop||0):(t+=e.scrollLeft||0,i+=e.scrollTop||0),1!==e.nodeType||"fixed"!==e.style.position););return{left:t,top:i}}t||(s=function(e){for(var t=new Array(e.length),i=e.length;i--;)t[i]=e[i];return t}),i=n.document.defaultView&&n.document.defaultView.getComputedStyle?function(e,t){var i=n.document.defaultView.getComputedStyle(e,null);return i?i[t]:void 0}:function(e,t){var i=e.style[t];return!i&&e.currentStyle&&(i=e.currentStyle[t]),i},function(){var e=n.document.documentElement.style,t="userSelect"in e?"userSelect":"MozUserSelect"in e?"MozUserSelect":"WebkitUserSelect"in e?"WebkitUserSelect":"KhtmlUserSelect"in e?"KhtmlUserSelect":"";n.util.makeElementUnselectable=function(e){return"undefined"!==typeof e.onselectstart&&(e.onselectstart=n.util.falseFunction),t?e.style[t]="none":"string"===typeof e.unselectable&&(e.unselectable="on"),e},n.util.makeElementSelectable=function(e){return"undefined"!==typeof e.onselectstart&&(e.onselectstart=null),t?e.style[t]="":"string"===typeof e.unselectable&&(e.unselectable=""),e}}(),n.util.setImageSmoothing=function(e,t){e.imageSmoothingEnabled=e.imageSmoothingEnabled||e.webkitImageSmoothingEnabled||e.mozImageSmoothingEnabled||e.msImageSmoothingEnabled||e.oImageSmoothingEnabled,e.imageSmoothingEnabled=t},n.util.getById=function(e){return"string"===typeof e?n.document.getElementById(e):e},n.util.toArray=s,n.util.addClass=function(e,t){e&&-1===(" "+e.className+" ").indexOf(" "+t+" ")&&(e.className+=(e.className?" ":"")+t)},n.util.makeElement=r,n.util.wrapElement=function(e,t,i){return"string"===typeof t&&(t=r(t,i)),e.parentNode&&e.parentNode.replaceChild(t,e),t.appendChild(e),t},n.util.getScrollLeftTop=o,n.util.getElementOffset=function(e){var t,s,n=e&&e.ownerDocument,r={left:0,top:0},a={left:0,top:0},c={borderLeftWidth:"left",borderTopWidth:"top",paddingLeft:"left",paddingTop:"top"};if(!n)return a;for(var l in c)a[c[l]]+=parseInt(i(e,l),10)||0;return t=n.documentElement,"undefined"!==typeof e.getBoundingClientRect&&(r=e.getBoundingClientRect()),s=o(e),{left:r.left+s.left-(t.clientLeft||0)+a.left,top:r.top+s.top-(t.clientTop||0)+a.top}},n.util.getNodeCanvas=function(e){var t=n.jsdomImplForWrapper(e);return t._canvas||t._image},n.util.cleanUpJsdomNode=function(e){if(n.isLikelyNode){var t=n.jsdomImplForWrapper(e);t&&(t._image=null,t._canvas=null,t._currentSrc=null,t._attributes=null,t._classList=null)}}}(),function(){function e(){}n.util.request=function(t,i){i||(i={});var s=i.method?i.method.toUpperCase():"GET",r=i.onComplete||function(){},o=new n.window.XMLHttpRequest,a=i.body||i.parameters;return o.onreadystatechange=function(){4===o.readyState&&(r(o),o.onreadystatechange=e)},"GET"===s&&(a=null,"string"===typeof i.parameters&&(t=function(e,t){return e+(/\?/.test(e)?"&":"?")+t}(t,i.parameters))),o.open(s,t,!0),"POST"!==s&&"PUT"!==s||o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.send(a),o}}(),n.log=console.log,n.warn=console.warn,function(){var e=n.util.object.extend,t=n.util.object.clone,i=[];function s(){return!1}function r(e,t,i,s){return-i*Math.cos(e/s*(Math.PI/2))+i+t}n.util.object.extend(i,{cancelAll:function(){var e=this.splice(0);return e.forEach((function(e){e.cancel()})),e},cancelByCanvas:function(e){if(!e)return[];var t=this.filter((function(t){return"object"===typeof t.target&&t.target.canvas===e}));return t.forEach((function(e){e.cancel()})),t},cancelByTarget:function(e){var t=this.findAnimationsByTarget(e);return t.forEach((function(e){e.cancel()})),t},findAnimationIndex:function(e){return this.indexOf(this.findAnimation(e))},findAnimation:function(e){return this.find((function(t){return t.cancel===e}))},findAnimationsByTarget:function(e){return e?this.filter((function(t){return t.target===e})):[]}});var o=n.window.requestAnimationFrame||n.window.webkitRequestAnimationFrame||n.window.mozRequestAnimationFrame||n.window.oRequestAnimationFrame||n.window.msRequestAnimationFrame||function(e){return n.window.setTimeout(e,1e3/60)},a=n.window.cancelAnimationFrame||n.window.clearTimeout;function c(){return o.apply(n.window,arguments)}n.util.animate=function(i){i||(i={});var o,a=!1,l=function(){var e=n.runningAnimations.indexOf(o);return e>-1&&n.runningAnimations.splice(e,1)[0]};return o=e(t(i),{cancel:function(){return a=!0,l()},currentValue:"startValue"in i?i.startValue:0,completionRate:0,durationRate:0}),n.runningAnimations.push(o),c((function(e){var t,n=e||+new Date,h=i.duration||500,d=n+h,u=i.onChange||s,g=i.abort||s,p=i.onComplete||s,m=i.easing||r,f="startValue"in i&&i.startValue.length>0,_="startValue"in i?i.startValue:0,v="endValue"in i?i.endValue:100,C=i.byValue||(f?_.map((function(e,t){return v[t]-_[t]})):v-_);i.onStart&&i.onStart(),function e(i){var s=(t=i||+new Date)>d?h:t-n,r=s/h,E=f?_.map((function(e,t){return m(s,_[t],C[t],h)})):m(s,_,C,h),b=f?Math.abs((E[0]-_[0])/C[0]):Math.abs((E-_)/C);if(o.currentValue=f?E.slice():E,o.completionRate=b,o.durationRate=r,!a){if(!g(E,b,r))return t>d?(o.currentValue=f?v.slice():v,o.completionRate=1,o.durationRate=1,u(f?v.slice():v,1,1),p(v,1,1),void l()):(u(E,b,r),void c(e));l()}}(n)})),o.cancel},n.util.requestAnimFrame=c,n.util.cancelAnimFrame=function(){return a.apply(n.window,arguments)},n.runningAnimations=i}(),function(){function e(e,t,i){var s="rgba("+parseInt(e[0]+i*(t[0]-e[0]),10)+","+parseInt(e[1]+i*(t[1]-e[1]),10)+","+parseInt(e[2]+i*(t[2]-e[2]),10);return s+=","+(e&&t?parseFloat(e[3]+i*(t[3]-e[3])):1),s+=")"}n.util.animateColor=function(t,i,s,r){var o=new n.Color(t).getSource(),a=new n.Color(i).getSource(),c=r.onComplete,l=r.onChange;return r=r||{},n.util.animate(n.util.object.extend(r,{duration:s||500,startValue:o,endValue:a,byValue:a,easing:function(t,i,s,n){return e(i,s,r.colorEasing?r.colorEasing(t,n):1-Math.cos(t/n*(Math.PI/2)))},onComplete:function(t,i,s){if(c)return c(e(a,a,0),i,s)},onChange:function(t,i,s){if(l){if(Array.isArray(t))return l(e(t,t,0),i,s);l(t,i,s)}}}))}}(),function(){function e(e,t,i,s){return e<Math.abs(t)?(e=t,s=i/4):s=0===t&&0===e?i/(2*Math.PI)*Math.asin(1):i/(2*Math.PI)*Math.asin(t/e),{a:e,c:t,p:i,s:s}}function t(e,t,i){return e.a*Math.pow(2,10*(t-=1))*Math.sin((t*i-e.s)*(2*Math.PI)/e.p)}function i(e,t,i,n){return i-s(n-e,0,i,n)+t}function s(e,t,i,s){return(e/=s)<1/2.75?i*(7.5625*e*e)+t:e<2/2.75?i*(7.5625*(e-=1.5/2.75)*e+.75)+t:e<2.5/2.75?i*(7.5625*(e-=2.25/2.75)*e+.9375)+t:i*(7.5625*(e-=2.625/2.75)*e+.984375)+t}n.util.ease={easeInQuad:function(e,t,i,s){return i*(e/=s)*e+t},easeOutQuad:function(e,t,i,s){return-i*(e/=s)*(e-2)+t},easeInOutQuad:function(e,t,i,s){return(e/=s/2)<1?i/2*e*e+t:-i/2*(--e*(e-2)-1)+t},easeInCubic:function(e,t,i,s){return i*(e/=s)*e*e+t},easeOutCubic:function(e,t,i,s){return i*((e=e/s-1)*e*e+1)+t},easeInOutCubic:function(e,t,i,s){return(e/=s/2)<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t},easeInQuart:function(e,t,i,s){return i*(e/=s)*e*e*e+t},easeOutQuart:function(e,t,i,s){return-i*((e=e/s-1)*e*e*e-1)+t},easeInOutQuart:function(e,t,i,s){return(e/=s/2)<1?i/2*e*e*e*e+t:-i/2*((e-=2)*e*e*e-2)+t},easeInQuint:function(e,t,i,s){return i*(e/=s)*e*e*e*e+t},easeOutQuint:function(e,t,i,s){return i*((e=e/s-1)*e*e*e*e+1)+t},easeInOutQuint:function(e,t,i,s){return(e/=s/2)<1?i/2*e*e*e*e*e+t:i/2*((e-=2)*e*e*e*e+2)+t},easeInSine:function(e,t,i,s){return-i*Math.cos(e/s*(Math.PI/2))+i+t},easeOutSine:function(e,t,i,s){return i*Math.sin(e/s*(Math.PI/2))+t},easeInOutSine:function(e,t,i,s){return-i/2*(Math.cos(Math.PI*e/s)-1)+t},easeInExpo:function(e,t,i,s){return 0===e?t:i*Math.pow(2,10*(e/s-1))+t},easeOutExpo:function(e,t,i,s){return e===s?t+i:i*(1-Math.pow(2,-10*e/s))+t},easeInOutExpo:function(e,t,i,s){return 0===e?t:e===s?t+i:(e/=s/2)<1?i/2*Math.pow(2,10*(e-1))+t:i/2*(2-Math.pow(2,-10*--e))+t},easeInCirc:function(e,t,i,s){return-i*(Math.sqrt(1-(e/=s)*e)-1)+t},easeOutCirc:function(e,t,i,s){return i*Math.sqrt(1-(e=e/s-1)*e)+t},easeInOutCirc:function(e,t,i,s){return(e/=s/2)<1?-i/2*(Math.sqrt(1-e*e)-1)+t:i/2*(Math.sqrt(1-(e-=2)*e)+1)+t},easeInElastic:function(i,s,n,r){var o=0;return 0===i?s:1===(i/=r)?s+n:(o||(o=.3*r),-t(e(n,n,o,1.70158),i,r)+s)},easeOutElastic:function(t,i,s,n){var r=0;if(0===t)return i;if(1===(t/=n))return i+s;r||(r=.3*n);var o=e(s,s,r,1.70158);return o.a*Math.pow(2,-10*t)*Math.sin((t*n-o.s)*(2*Math.PI)/o.p)+o.c+i},easeInOutElastic:function(i,s,n,r){var o=0;if(0===i)return s;if(2===(i/=r/2))return s+n;o||(o=r*(.3*1.5));var a=e(n,n,o,1.70158);return i<1?-.5*t(a,i,r)+s:a.a*Math.pow(2,-10*(i-=1))*Math.sin((i*r-a.s)*(2*Math.PI)/a.p)*.5+a.c+s},easeInBack:function(e,t,i,s,n){return void 0===n&&(n=1.70158),i*(e/=s)*e*((n+1)*e-n)+t},easeOutBack:function(e,t,i,s,n){return void 0===n&&(n=1.70158),i*((e=e/s-1)*e*((n+1)*e+n)+1)+t},easeInOutBack:function(e,t,i,s,n){return void 0===n&&(n=1.70158),(e/=s/2)<1?i/2*(e*e*((1+(n*=1.525))*e-n))+t:i/2*((e-=2)*e*((1+(n*=1.525))*e+n)+2)+t},easeInBounce:i,easeOutBounce:s,easeInOutBounce:function(e,t,n,r){return e<r/2?.5*i(2*e,0,n,r)+t:.5*s(2*e-r,0,n,r)+.5*n+t}}}(),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,s=t.util.object.clone,n=t.util.toFixed,r=t.util.parseUnit,o=t.util.multiplyTransformMatrices,a={cx:"left",x:"left",r:"radius",cy:"top",y:"top",display:"visible",visibility:"visible",transform:"transformMatrix","fill-opacity":"fillOpacity","fill-rule":"fillRule","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","letter-spacing":"charSpacing","paint-order":"paintFirst","stroke-dasharray":"strokeDashArray","stroke-dashoffset":"strokeDashOffset","stroke-linecap":"strokeLineCap","stroke-linejoin":"strokeLineJoin","stroke-miterlimit":"strokeMiterLimit","stroke-opacity":"strokeOpacity","stroke-width":"strokeWidth","text-decoration":"textDecoration","text-anchor":"textAnchor",opacity:"opacity","clip-path":"clipPath","clip-rule":"clipRule","vector-effect":"strokeUniform","image-rendering":"imageSmoothing"},c={stroke:"strokeOpacity",fill:"fillOpacity"},l="font-size",h="clip-path";function d(e){return e in a?a[e]:e}function u(e,i,s,n){var a,c=Array.isArray(i);if("fill"!==e&&"stroke"!==e||"none"!==i){if("strokeUniform"===e)return"non-scaling-stroke"===i;if("strokeDashArray"===e)i="none"===i?null:i.replace(/,/g," ").split(/\s+/).map(parseFloat);else if("transformMatrix"===e)i=s&&s.transformMatrix?o(s.transformMatrix,t.parseTransformAttribute(i)):t.parseTransformAttribute(i);else if("visible"===e)i="none"!==i&&"hidden"!==i,s&&!1===s.visible&&(i=!1);else if("opacity"===e)i=parseFloat(i),s&&"undefined"!==typeof s.opacity&&(i*=s.opacity);else if("textAnchor"===e)i="start"===i?"left":"end"===i?"right":"center";else if("charSpacing"===e)a=r(i,n)/n*1e3;else if("paintFirst"===e){var l=i.indexOf("fill"),h=i.indexOf("stroke");i="fill";(l>-1&&h>-1&&h<l||-1===l&&h>-1)&&(i="stroke")}else{if("href"===e||"xlink:href"===e||"font"===e)return i;if("imageSmoothing"===e)return"optimizeQuality"===i;a=c?i.map(r):r(i,n)}}else i="";return!c&&isNaN(a)?i:a}function g(e){return new RegExp("^("+e.join("|")+")\\b","i")}function p(e,t){var i,s,n,r,o=[];for(n=0,r=t.length;n<r;n++)i=t[n],s=e.getElementsByTagName(i),o=o.concat(Array.prototype.slice.call(s));return o}function m(e,t){var i,s=!0;return(i=f(e,t.pop()))&&t.length&&(s=function(e,t){var i,s=!0;for(;e.parentNode&&1===e.parentNode.nodeType&&t.length;)s&&(i=t.pop()),s=f(e=e.parentNode,i);return 0===t.length}(e,t)),i&&s&&0===t.length}function f(e,t){var i,s,n=e.nodeName,r=e.getAttribute("class"),o=e.getAttribute("id");if(i=new RegExp("^"+n,"i"),t=t.replace(i,""),o&&t.length&&(i=new RegExp("#"+o+"(?![a-zA-Z\\-]+)","i"),t=t.replace(i,"")),r&&t.length)for(s=(r=r.split(" ")).length;s--;)i=new RegExp("\\."+r[s]+"(?![a-zA-Z\\-]+)","i"),t=t.replace(i,"");return 0===t.length}function _(e,t){var i;if(e.getElementById&&(i=e.getElementById(t)),i)return i;var s,n,r,o=e.getElementsByTagName("*");for(n=0,r=o.length;n<r;n++)if(t===(s=o[n]).getAttribute("id"))return s}t.svgValidTagNamesRegEx=g(["path","circle","polygon","polyline","ellipse","rect","line","image","text"]),t.svgViewBoxElementsRegEx=g(["symbol","image","marker","pattern","view","svg"]),t.svgInvalidAncestorsRegEx=g(["pattern","defs","symbol","metadata","clipPath","mask","desc"]),t.svgValidParentsRegEx=g(["symbol","g","a","svg","clipPath","defs"]),t.cssRules={},t.gradientDefs={},t.clipPaths={},t.parseTransformAttribute=function(){function e(e,i,s){e[s]=Math.tan(t.util.degreesToRadians(i[0]))}var i=t.iMatrix,s=t.reNum,n=t.commaWsp,r="(?:"+("(?:(matrix)\\s*\\(\\s*("+s+")"+n+"("+s+")"+n+"("+s+")"+n+"("+s+")"+n+"("+s+")"+n+"("+s+")\\s*\\))")+"|"+("(?:(translate)\\s*\\(\\s*("+s+")(?:"+n+"("+s+"))?\\s*\\))")+"|"+("(?:(scale)\\s*\\(\\s*("+s+")(?:"+n+"("+s+"))?\\s*\\))")+"|"+("(?:(rotate)\\s*\\(\\s*("+s+")(?:"+n+"("+s+")"+n+"("+s+"))?\\s*\\))")+"|"+("(?:(skewX)\\s*\\(\\s*("+s+")\\s*\\))")+"|"+("(?:(skewY)\\s*\\(\\s*("+s+")\\s*\\))")+")",o=new RegExp("^\\s*(?:"+("(?:"+r+"(?:"+n+"*"+r+")*)")+"?)\\s*$"),a=new RegExp(r,"g");return function(s){var n=i.concat(),c=[];if(!s||s&&!o.test(s))return n;s.replace(a,(function(s){var o=new RegExp(r).exec(s).filter((function(e){return!!e})),a=o[1],l=o.slice(2).map(parseFloat);switch(a){case"translate":!function(e,t){e[4]=t[0],2===t.length&&(e[5]=t[1])}(n,l);break;case"rotate":l[0]=t.util.degreesToRadians(l[0]),function(e,i){var s=t.util.cos(i[0]),n=t.util.sin(i[0]),r=0,o=0;3===i.length&&(r=i[1],o=i[2]),e[0]=s,e[1]=n,e[2]=-n,e[3]=s,e[4]=r-(s*r-n*o),e[5]=o-(n*r+s*o)}(n,l);break;case"scale":!function(e,t){var i=t[0],s=2===t.length?t[1]:t[0];e[0]=i,e[3]=s}(n,l);break;case"skewX":e(n,l,2);break;case"skewY":e(n,l,1);break;case"matrix":n=l}c.push(n.concat()),n=i.concat()}));for(var l=c[0];c.length>1;)c.shift(),l=t.util.multiplyTransformMatrices(l,c[0]);return l}}();var v=new RegExp("^\\s*("+t.reNum+"+)\\s*,?\\s*("+t.reNum+"+)\\s*,?\\s*("+t.reNum+"+)\\s*,?\\s*("+t.reNum+"+)\\s*$");function C(e){if(!t.svgViewBoxElementsRegEx.test(e.nodeName))return{};var i,s,n,o,a,c,l=e.getAttribute("viewBox"),h=1,d=1,u=e.getAttribute("width"),g=e.getAttribute("height"),p=e.getAttribute("x")||0,m=e.getAttribute("y")||0,f=e.getAttribute("preserveAspectRatio")||"",_=!l||!(l=l.match(v)),C=!u||!g||"100%"===u||"100%"===g,E=_&&C,b={},S="",y=0,w=0;if(b.width=0,b.height=0,b.toBeParsed=E,_&&(p||m)&&e.parentNode&&"#document"!==e.parentNode.nodeName&&(S=" translate("+r(p)+" "+r(m)+") ",a=(e.getAttribute("transform")||"")+S,e.setAttribute("transform",a),e.removeAttribute("x"),e.removeAttribute("y")),E)return b;if(_)return b.width=r(u),b.height=r(g),b;if(i=-parseFloat(l[1]),s=-parseFloat(l[2]),n=parseFloat(l[3]),o=parseFloat(l[4]),b.minX=i,b.minY=s,b.viewBoxWidth=n,b.viewBoxHeight=o,C?(b.width=n,b.height=o):(b.width=r(u),b.height=r(g),h=b.width/n,d=b.height/o),"none"!==(f=t.util.parsePreserveAspectRatioAttribute(f)).alignX&&("meet"===f.meetOrSlice&&(d=h=h>d?d:h),"slice"===f.meetOrSlice&&(d=h=h>d?h:d),y=b.width-n*h,w=b.height-o*h,"Mid"===f.alignX&&(y/=2),"Mid"===f.alignY&&(w/=2),"Min"===f.alignX&&(y=0),"Min"===f.alignY&&(w=0)),1===h&&1===d&&0===i&&0===s&&0===p&&0===m)return b;if((p||m)&&"#document"!==e.parentNode.nodeName&&(S=" translate("+r(p)+" "+r(m)+") "),a=S+" matrix("+h+" 0 0 "+d+" "+(i*h+y)+" "+(s*d+w)+") ","svg"===e.nodeName){for(c=e.ownerDocument.createElementNS(t.svgNS,"g");e.firstChild;)c.appendChild(e.firstChild);e.appendChild(c)}else(c=e).removeAttribute("x"),c.removeAttribute("y"),a=c.getAttribute("transform")+a;return c.setAttribute("transform",a),b}function E(e,t){var i="xlink:href",s=_(e,t.getAttribute(i).slice(1));if(s&&s.getAttribute(i)&&E(e,s),["gradientTransform","x1","x2","y1","y2","gradientUnits","cx","cy","r","fx","fy"].forEach((function(e){s&&!t.hasAttribute(e)&&s.hasAttribute(e)&&t.setAttribute(e,s.getAttribute(e))})),!t.children.length)for(var n=s.cloneNode(!0);n.firstChild;)t.appendChild(n.firstChild);t.removeAttribute(i)}t.parseSVGDocument=function(e,i,n,r){if(e){!function(e){for(var i=p(e,["use","svg:use"]),s=0;i.length&&s<i.length;){var n=i[s],r=n.getAttribute("xlink:href")||n.getAttribute("href");if(null===r)return;var o,a,c,l,h=r.slice(1),d=n.getAttribute("x")||0,u=n.getAttribute("y")||0,g=_(e,h).cloneNode(!0),m=(g.getAttribute("transform")||"")+" translate("+d+", "+u+")",f=i.length,v=t.svgNS;if(C(g),/^svg$/i.test(g.nodeName)){var E=g.ownerDocument.createElementNS(v,"g");for(a=0,l=(c=g.attributes).length;a<l;a++)o=c.item(a),E.setAttributeNS(v,o.nodeName,o.nodeValue);for(;g.firstChild;)E.appendChild(g.firstChild);g=E}for(a=0,l=(c=n.attributes).length;a<l;a++)"x"!==(o=c.item(a)).nodeName&&"y"!==o.nodeName&&"xlink:href"!==o.nodeName&&"href"!==o.nodeName&&("transform"===o.nodeName?m=o.nodeValue+" "+m:g.setAttribute(o.nodeName,o.nodeValue));g.setAttribute("transform",m),g.setAttribute("instantiated_by_use","1"),g.removeAttribute("id"),n.parentNode.replaceChild(g,n),i.length===f&&s++}}(e);var o,a,c=t.Object.__uid++,l=C(e),h=t.util.toArray(e.getElementsByTagName("*"));if(l.crossOrigin=r&&r.crossOrigin,l.svgUid=c,0===h.length&&t.isLikelyNode){var d=[];for(o=0,a=(h=e.selectNodes('//*[name(.)!="svg"]')).length;o<a;o++)d[o]=h[o];h=d}var u=h.filter((function(e){return C(e),t.svgValidTagNamesRegEx.test(e.nodeName.replace("svg:",""))&&!function(e,t){for(;e&&(e=e.parentNode);)if(e.nodeName&&t.test(e.nodeName.replace("svg:",""))&&!e.getAttribute("instantiated_by_use"))return!0;return!1}(e,t.svgInvalidAncestorsRegEx)}));if(!u||u&&!u.length)i&&i([],{});else{var g={};h.filter((function(e){return"clipPath"===e.nodeName.replace("svg:","")})).forEach((function(e){var i=e.getAttribute("id");g[i]=t.util.toArray(e.getElementsByTagName("*")).filter((function(e){return t.svgValidTagNamesRegEx.test(e.nodeName.replace("svg:",""))}))})),t.gradientDefs[c]=t.getGradientDefs(e),t.cssRules[c]=t.getCSSRules(e),t.clipPaths[c]=g,t.parseElements(u,(function(e,s){i&&(i(e,l,s,h),delete t.gradientDefs[c],delete t.cssRules[c],delete t.clipPaths[c])}),s(l),n,r)}}};var b=new RegExp("(normal|italic)?\\s*(normal|small-caps)?\\s*(normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900)?\\s*("+t.reNum+"(?:px|cm|mm|em|pt|pc|in)*)(?:\\/(normal|"+t.reNum+"))?\\s+(.*)");i(t,{parseFontDeclaration:function(e,t){var i=e.match(b);if(i){var s=i[1],n=i[3],o=i[4],a=i[5],c=i[6];s&&(t.fontStyle=s),n&&(t.fontWeight=isNaN(parseFloat(n))?n:parseFloat(n)),o&&(t.fontSize=r(o)),c&&(t.fontFamily=c),a&&(t.lineHeight="normal"===a?1:a)}},getGradientDefs:function(e){var t,i=p(e,["linearGradient","radialGradient","svg:linearGradient","svg:radialGradient"]),s=0,n={};for(s=i.length;s--;)(t=i[s]).getAttribute("xlink:href")&&E(e,t),n[t.getAttribute("id")]=t;return n},parseAttributes:function(e,s,o){if(e){var a,g,p,f={};"undefined"===typeof o&&(o=e.getAttribute("svgUid")),e.parentNode&&t.svgValidParentsRegEx.test(e.parentNode.nodeName)&&(f=t.parseAttributes(e.parentNode,s,o));var _=s.reduce((function(t,i){return(a=e.getAttribute(i))&&(t[i]=a),t}),{}),v=i(function(e,i){var s={};for(var n in t.cssRules[i])if(m(e,n.split(" ")))for(var r in t.cssRules[i][n])s[r]=t.cssRules[i][n][r];return s}(e,o),t.parseStyleAttribute(e));_=i(_,v),v[h]&&e.setAttribute(h,v[h]),g=p=f.fontSize||t.Text.DEFAULT_SVG_FONT_SIZE,_[l]&&(_[l]=g=r(_[l],p));var C,E,b={};for(var S in _)E=u(C=d(S),_[S],f,g),b[C]=E;b&&b.font&&t.parseFontDeclaration(b.font,b);var y=i(f,b);return t.svgValidParentsRegEx.test(e.nodeName)?y:function(e){for(var i in c)if("undefined"!==typeof e[c[i]]&&""!==e[i]){if("undefined"===typeof e[i]){if(!t.Object.prototype[i])continue;e[i]=t.Object.prototype[i]}if(0!==e[i].indexOf("url(")){var s=new t.Color(e[i]);e[i]=s.setAlpha(n(s.getAlpha()*e[c[i]],2)).toRgba()}}return e}(y)}},parseElements:function(e,i,s,n,r){new t.ElementsParser(e,i,s,n,r).parse()},parseStyleAttribute:function(e){var t={},i=e.getAttribute("style");return i?("string"===typeof i?function(e,t){var i,s;e.replace(/;\s*$/,"").split(";").forEach((function(e){var n=e.split(":");i=n[0].trim().toLowerCase(),s=n[1].trim(),t[i]=s}))}(i,t):function(e,t){var i,s;for(var n in e)"undefined"!==typeof e[n]&&(i=n.toLowerCase(),s=e[n],t[i]=s)}(i,t),t):t},parsePointsAttribute:function(e){if(!e)return null;var t,i,s=[];for(t=0,i=(e=(e=e.replace(/,/g," ").trim()).split(/\s+/)).length;t<i;t+=2)s.push({x:parseFloat(e[t]),y:parseFloat(e[t+1])});return s},getCSSRules:function(e){var i,s,n=e.getElementsByTagName("style"),r={};for(i=0,s=n.length;i<s;i++){var o=n[i].textContent;""!==(o=o.replace(/\/\*[\s\S]*?\*\//g,"")).trim()&&o.split("}").filter((function(e){return e.trim()})).forEach((function(e){var n=e.split("{"),o={},a=n[1].trim().split(";").filter((function(e){return e.trim()}));for(i=0,s=a.length;i<s;i++){var c=a[i].split(":"),l=c[0].trim(),h=c[1].trim();o[l]=h}(e=n[0].trim()).split(",").forEach((function(e){""!==(e=e.replace(/^svg/i,"").trim())&&(r[e]?t.util.object.extend(r[e],o):r[e]=t.util.object.clone(o))}))}))}return r},loadSVGFromURL:function(e,i,s,n){e=e.replace(/^\n\s*/,"").trim(),new t.util.request(e,{method:"get",onComplete:function(e){var r=e.responseXML;if(!r||!r.documentElement)return i&&i(null),!1;t.parseSVGDocument(r.documentElement,(function(e,t,s,n){i&&i(e,t,s,n)}),s,n)}})},loadSVGFromString:function(e,i,s,n){var r=(new t.window.DOMParser).parseFromString(e.trim(),"text/xml");t.parseSVGDocument(r.documentElement,(function(e,t,s,n){i(e,t,s,n)}),s,n)}})}(t),n.ElementsParser=function(e,t,i,s,n,r){this.elements=e,this.callback=t,this.options=i,this.reviver=s,this.svgUid=i&&i.svgUid||0,this.parsingOptions=n,this.regexUrl=/^url\(['"]?#([^'"]+)['"]?\)/g,this.doc=r},(s=n.ElementsParser.prototype).parse=function(){this.instances=new Array(this.elements.length),this.numElements=this.elements.length,this.createObjects()},s.createObjects=function(){var e=this;this.elements.forEach((function(t,i){t.setAttribute("svgUid",e.svgUid),e.createObject(t,i)}))},s.findTag=function(e){return n[n.util.string.capitalize(e.tagName.replace("svg:",""))]},s.createObject=function(e,t){var i=this.findTag(e);if(i&&i.fromElement)try{i.fromElement(e,this.createCallback(t,e),this.options)}catch(s){n.log(s)}else this.checkIfDone()},s.createCallback=function(e,t){var i=this;return function(s){var r;i.resolveGradient(s,t,"fill"),i.resolveGradient(s,t,"stroke"),s instanceof n.Image&&s._originalElement&&(r=s.parsePreserveAspectRatioAttribute(t)),s._removeTransformMatrix(r),i.resolveClipPath(s,t),i.reviver&&i.reviver(t,s),i.instances[e]=s,i.checkIfDone()}},s.extractPropertyDefinition=function(e,t,i){var s=e[t],r=this.regexUrl;if(r.test(s)){r.lastIndex=0;var o=r.exec(s)[1];return r.lastIndex=0,n[i][this.svgUid][o]}},s.resolveGradient=function(e,t,i){var s=this.extractPropertyDefinition(e,i,"gradientDefs");if(s){var r=t.getAttribute(i+"-opacity"),o=n.Gradient.fromElement(s,e,r,this.options);e.set(i,o)}},s.createClipPathCallback=function(e,t){return function(e){e._removeTransformMatrix(),e.fillRule=e.clipRule,t.push(e)}},s.resolveClipPath=function(e,t){var i,s,r,o,a=this.extractPropertyDefinition(e,"clipPath","clipPaths");if(a){r=[],s=n.util.invertTransform(e.calcTransformMatrix());for(var c=a[0].parentNode,l=t;l.parentNode&&l.getAttribute("clip-path")!==e.clipPath;)l=l.parentNode;l.parentNode.appendChild(c);for(var h=0;h<a.length;h++)i=a[h],this.findTag(i).fromElement(i,this.createClipPathCallback(e,r),this.options);a=1===r.length?r[0]:new n.Group(r),o=n.util.multiplyTransformMatrices(s,a.calcTransformMatrix()),a.clipPath&&this.resolveClipPath(a,l);var d=n.util.qrDecompose(o);a.flipX=!1,a.flipY=!1,a.set("scaleX",d.scaleX),a.set("scaleY",d.scaleY),a.angle=d.angle,a.skewX=d.skewX,a.skewY=0,a.setPositionByOrigin({x:d.translateX,y:d.translateY},"center","center"),e.clipPath=a}else delete e.clipPath},s.checkIfDone=function(){0===--this.numElements&&(this.instances=this.instances.filter((function(e){return null!=e})),this.callback(this.instances,this.elements))},function(e){"use strict";var t=e.fabric||(e.fabric={});function i(e,t){this.x=e,this.y=t}t.Point?t.warn("fabric.Point is already defined"):(t.Point=i,i.prototype={type:"point",constructor:i,add:function(e){return new i(this.x+e.x,this.y+e.y)},addEquals:function(e){return this.x+=e.x,this.y+=e.y,this},scalarAdd:function(e){return new i(this.x+e,this.y+e)},scalarAddEquals:function(e){return this.x+=e,this.y+=e,this},subtract:function(e){return new i(this.x-e.x,this.y-e.y)},subtractEquals:function(e){return this.x-=e.x,this.y-=e.y,this},scalarSubtract:function(e){return new i(this.x-e,this.y-e)},scalarSubtractEquals:function(e){return this.x-=e,this.y-=e,this},multiply:function(e){return new i(this.x*e,this.y*e)},multiplyEquals:function(e){return this.x*=e,this.y*=e,this},divide:function(e){return new i(this.x/e,this.y/e)},divideEquals:function(e){return this.x/=e,this.y/=e,this},eq:function(e){return this.x===e.x&&this.y===e.y},lt:function(e){return this.x<e.x&&this.y<e.y},lte:function(e){return this.x<=e.x&&this.y<=e.y},gt:function(e){return this.x>e.x&&this.y>e.y},gte:function(e){return this.x>=e.x&&this.y>=e.y},lerp:function(e,t){return"undefined"===typeof t&&(t=.5),t=Math.max(Math.min(1,t),0),new i(this.x+(e.x-this.x)*t,this.y+(e.y-this.y)*t)},distanceFrom:function(e){var t=this.x-e.x,i=this.y-e.y;return Math.sqrt(t*t+i*i)},midPointFrom:function(e){return this.lerp(e)},min:function(e){return new i(Math.min(this.x,e.x),Math.min(this.y,e.y))},max:function(e){return new i(Math.max(this.x,e.x),Math.max(this.y,e.y))},toString:function(){return this.x+","+this.y},setXY:function(e,t){return this.x=e,this.y=t,this},setX:function(e){return this.x=e,this},setY:function(e){return this.y=e,this},setFromPoint:function(e){return this.x=e.x,this.y=e.y,this},swap:function(e){var t=this.x,i=this.y;this.x=e.x,this.y=e.y,e.x=t,e.y=i},clone:function(){return new i(this.x,this.y)}})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={});function i(e){this.status=e,this.points=[]}t.Intersection?t.warn("fabric.Intersection is already defined"):(t.Intersection=i,t.Intersection.prototype={constructor:i,appendPoint:function(e){return this.points.push(e),this},appendPoints:function(e){return this.points=this.points.concat(e),this}},t.Intersection.intersectLineLine=function(e,s,n,r){var o,a=(r.x-n.x)*(e.y-n.y)-(r.y-n.y)*(e.x-n.x),c=(s.x-e.x)*(e.y-n.y)-(s.y-e.y)*(e.x-n.x),l=(r.y-n.y)*(s.x-e.x)-(r.x-n.x)*(s.y-e.y);if(0!==l){var h=a/l,d=c/l;0<=h&&h<=1&&0<=d&&d<=1?(o=new i("Intersection")).appendPoint(new t.Point(e.x+h*(s.x-e.x),e.y+h*(s.y-e.y))):o=new i}else o=new i(0===a||0===c?"Coincident":"Parallel");return o},t.Intersection.intersectLinePolygon=function(e,t,s){var n,r,o,a,c=new i,l=s.length;for(a=0;a<l;a++)n=s[a],r=s[(a+1)%l],o=i.intersectLineLine(e,t,n,r),c.appendPoints(o.points);return c.points.length>0&&(c.status="Intersection"),c},t.Intersection.intersectPolygonPolygon=function(e,t){var s,n=new i,r=e.length;for(s=0;s<r;s++){var o=e[s],a=e[(s+1)%r],c=i.intersectLinePolygon(o,a,t);n.appendPoints(c.points)}return n.points.length>0&&(n.status="Intersection"),n},t.Intersection.intersectPolygonRectangle=function(e,s,n){var r=s.min(n),o=s.max(n),a=new t.Point(o.x,r.y),c=new t.Point(r.x,o.y),l=i.intersectLinePolygon(r,a,e),h=i.intersectLinePolygon(a,o,e),d=i.intersectLinePolygon(o,c,e),u=i.intersectLinePolygon(c,r,e),g=new i;return g.appendPoints(l.points),g.appendPoints(h.points),g.appendPoints(d.points),g.appendPoints(u.points),g.points.length>0&&(g.status="Intersection"),g})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={});function i(e){e?this._tryParsingColor(e):this.setSource([0,0,0,1])}function s(e,t,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}t.Color?t.warn("fabric.Color is already defined."):(t.Color=i,t.Color.prototype={_tryParsingColor:function(e){var t;e in i.colorNameMap&&(e=i.colorNameMap[e]),"transparent"===e&&(t=[255,255,255,0]),t||(t=i.sourceFromHex(e)),t||(t=i.sourceFromRgb(e)),t||(t=i.sourceFromHsl(e)),t||(t=[0,0,0,1]),t&&this.setSource(t)},_rgbToHsl:function(e,i,s){e/=255,i/=255,s/=255;var n,r,o,a=t.util.array.max([e,i,s]),c=t.util.array.min([e,i,s]);if(o=(a+c)/2,a===c)n=r=0;else{var l=a-c;switch(r=o>.5?l/(2-a-c):l/(a+c),a){case e:n=(i-s)/l+(i<s?6:0);break;case i:n=(s-e)/l+2;break;case s:n=(e-i)/l+4}n/=6}return[Math.round(360*n),Math.round(100*r),Math.round(100*o)]},getSource:function(){return this._source},setSource:function(e){this._source=e},toRgb:function(){var e=this.getSource();return"rgb("+e[0]+","+e[1]+","+e[2]+")"},toRgba:function(){var e=this.getSource();return"rgba("+e[0]+","+e[1]+","+e[2]+","+e[3]+")"},toHsl:function(){var e=this.getSource(),t=this._rgbToHsl(e[0],e[1],e[2]);return"hsl("+t[0]+","+t[1]+"%,"+t[2]+"%)"},toHsla:function(){var e=this.getSource(),t=this._rgbToHsl(e[0],e[1],e[2]);return"hsla("+t[0]+","+t[1]+"%,"+t[2]+"%,"+e[3]+")"},toHex:function(){var e,t,i,s=this.getSource();return e=1===(e=s[0].toString(16)).length?"0"+e:e,t=1===(t=s[1].toString(16)).length?"0"+t:t,i=1===(i=s[2].toString(16)).length?"0"+i:i,e.toUpperCase()+t.toUpperCase()+i.toUpperCase()},toHexa:function(){var e,t=this.getSource();return e=1===(e=(e=Math.round(255*t[3])).toString(16)).length?"0"+e:e,this.toHex()+e.toUpperCase()},getAlpha:function(){return this.getSource()[3]},setAlpha:function(e){var t=this.getSource();return t[3]=e,this.setSource(t),this},toGrayscale:function(){var e=this.getSource(),t=parseInt((.3*e[0]+.59*e[1]+.11*e[2]).toFixed(0),10),i=e[3];return this.setSource([t,t,t,i]),this},toBlackWhite:function(e){var t=this.getSource(),i=(.3*t[0]+.59*t[1]+.11*t[2]).toFixed(0),s=t[3];return e=e||127,i=Number(i)<Number(e)?0:255,this.setSource([i,i,i,s]),this},overlayWith:function(e){e instanceof i||(e=new i(e));var t,s=[],n=this.getAlpha(),r=this.getSource(),o=e.getSource();for(t=0;t<3;t++)s.push(Math.round(.5*r[t]+.5*o[t]));return s[3]=n,this.setSource(s),this}},t.Color.reRGBa=/^rgba?\(\s*(\d{1,3}(?:\.\d+)?\%?)\s*,\s*(\d{1,3}(?:\.\d+)?\%?)\s*,\s*(\d{1,3}(?:\.\d+)?\%?)\s*(?:\s*,\s*((?:\d*\.?\d+)?)\s*)?\)$/i,t.Color.reHSLa=/^hsla?\(\s*(\d{1,3})\s*,\s*(\d{1,3}\%)\s*,\s*(\d{1,3}\%)\s*(?:\s*,\s*(\d+(?:\.\d+)?)\s*)?\)$/i,t.Color.reHex=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,t.Color.colorNameMap={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:"#9370DB",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:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",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"},t.Color.fromRgb=function(e){return i.fromSource(i.sourceFromRgb(e))},t.Color.sourceFromRgb=function(e){var t=e.match(i.reRGBa);if(t){var s=parseInt(t[1],10)/(/%$/.test(t[1])?100:1)*(/%$/.test(t[1])?255:1),n=parseInt(t[2],10)/(/%$/.test(t[2])?100:1)*(/%$/.test(t[2])?255:1),r=parseInt(t[3],10)/(/%$/.test(t[3])?100:1)*(/%$/.test(t[3])?255:1);return[parseInt(s,10),parseInt(n,10),parseInt(r,10),t[4]?parseFloat(t[4]):1]}},t.Color.fromRgba=i.fromRgb,t.Color.fromHsl=function(e){return i.fromSource(i.sourceFromHsl(e))},t.Color.sourceFromHsl=function(e){var t=e.match(i.reHSLa);if(t){var n,r,o,a=(parseFloat(t[1])%360+360)%360/360,c=parseFloat(t[2])/(/%$/.test(t[2])?100:1),l=parseFloat(t[3])/(/%$/.test(t[3])?100:1);if(0===c)n=r=o=l;else{var h=l<=.5?l*(c+1):l+c-l*c,d=2*l-h;n=s(d,h,a+1/3),r=s(d,h,a),o=s(d,h,a-1/3)}return[Math.round(255*n),Math.round(255*r),Math.round(255*o),t[4]?parseFloat(t[4]):1]}},t.Color.fromHsla=i.fromHsl,t.Color.fromHex=function(e){return i.fromSource(i.sourceFromHex(e))},t.Color.sourceFromHex=function(e){if(e.match(i.reHex)){var t=e.slice(e.indexOf("#")+1),s=3===t.length||4===t.length,n=8===t.length||4===t.length,r=s?t.charAt(0)+t.charAt(0):t.substring(0,2),o=s?t.charAt(1)+t.charAt(1):t.substring(2,4),a=s?t.charAt(2)+t.charAt(2):t.substring(4,6),c=n?s?t.charAt(3)+t.charAt(3):t.substring(6,8):"FF";return[parseInt(r,16),parseInt(o,16),parseInt(a,16),parseFloat((parseInt(c,16)/255).toFixed(2))]}},t.Color.fromSource=function(e){var t=new i;return t.setSource(e),t})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=["e","se","s","sw","w","nw","n","ne","e"],s=["ns","nesw","ew","nwse"],n={},r="left",o="top",a="right",c="bottom",l="center",h={top:c,bottom:o,left:a,right:r,center:l},d=t.util.radiansToDegrees,u=Math.sign||function(e){return(e>0)-(e<0)||+e};function g(e,t){var i=e.angle+d(Math.atan2(t.y,t.x))+360;return Math.round(i%360/45)}function p(e,i){var s=i.transform.target,n=s.canvas,r=t.util.object.clone(i);r.target=s,n&&n.fire("object:"+e,r),s.fire(e,i)}function m(e,t){var i=t.canvas,s=e[i.uniScaleKey];return i.uniformScaling&&!s||!i.uniformScaling&&s}function f(e){return e.originX===l&&e.originY===l}function _(e,t,i){var s=e.lockScalingX,n=e.lockScalingY;return!(!s||!n)||(!(t||!s&&!n||!i)||(!(!s||"x"!==t)||!(!n||"y"!==t)))}function v(e,t,i,s){return{e:e,transform:t,pointer:{x:i,y:s}}}function C(e){return function(t,i,s,n){var r=i.target,o=r.getCenterPoint(),a=r.translateToOriginPoint(o,i.originX,i.originY),c=e(t,i,s,n);return r.setPositionByOrigin(a,i.originX,i.originY),c}}function E(e,t){return function(i,s,n,r){var o=t(i,s,n,r);return o&&p(e,v(i,s,n,r)),o}}function b(e,i,s,n,r){var o=e.target,a=o.controls[e.corner],c=o.canvas.getZoom(),l=o.padding/c,h=o.toLocalPoint(new t.Point(n,r),i,s);return h.x>=l&&(h.x-=l),h.x<=-l&&(h.x+=l),h.y>=l&&(h.y-=l),h.y<=l&&(h.y+=l),h.x-=a.offsetX,h.y-=a.offsetY,h}function S(e){return e.flipX!==e.flipY}function y(e,t,i,s,n){if(0!==e[t]){var r=n/e._getTransformedDimensions()[s]*e[i];e.set(i,r)}}function w(e,t,i,s){var n,l=t.target,h=l._getTransformedDimensions(0,l.skewY),u=b(t,t.originX,t.originY,i,s),g=Math.abs(2*u.x)-h.x,p=l.skewX;g<2?n=0:(n=d(Math.atan2(g/l.scaleX,h.y/l.scaleY)),t.originX===r&&t.originY===c&&(n=-n),t.originX===a&&t.originY===o&&(n=-n),S(l)&&(n=-n));var m=p!==n;if(m){var f=l._getTransformedDimensions().y;l.set("skewX",n),y(l,"skewY","scaleY","y",f)}return m}function R(e,t,i,s){var n,l=t.target,h=l._getTransformedDimensions(l.skewX,0),u=b(t,t.originX,t.originY,i,s),g=Math.abs(2*u.y)-h.y,p=l.skewY;g<2?n=0:(n=d(Math.atan2(g/l.scaleY,h.x/l.scaleX)),t.originX===r&&t.originY===c&&(n=-n),t.originX===a&&t.originY===o&&(n=-n),S(l)&&(n=-n));var m=p!==n;if(m){var f=l._getTransformedDimensions().x;l.set("skewY",n),y(l,"skewX","scaleX","x",f)}return m}function L(e,t,i,s,n){n=n||{};var r,o,a,c,l,d,g=t.target,p=g.lockScalingX,v=g.lockScalingY,C=n.by,E=m(e,g),S=_(g,C,E),y=t.gestureScale;if(S)return!1;if(y)o=t.scaleX*y,a=t.scaleY*y;else{if(r=b(t,t.originX,t.originY,i,s),l="y"!==C?u(r.x):1,d="x"!==C?u(r.y):1,t.signX||(t.signX=l),t.signY||(t.signY=d),g.lockScalingFlip&&(t.signX!==l||t.signY!==d))return!1;if(c=g._getTransformedDimensions(),E&&!C){var w=Math.abs(r.x)+Math.abs(r.y),R=t.original,L=w/(Math.abs(c.x*R.scaleX/g.scaleX)+Math.abs(c.y*R.scaleY/g.scaleY));o=R.scaleX*L,a=R.scaleY*L}else o=Math.abs(r.x*g.scaleX/c.x),a=Math.abs(r.y*g.scaleY/c.y);f(t)&&(o*=2,a*=2),t.signX!==l&&"y"!==C&&(t.originX=h[t.originX],o*=-1,t.signX=l),t.signY!==d&&"x"!==C&&(t.originY=h[t.originY],a*=-1,t.signY=d)}var T=g.scaleX,x=g.scaleY;return C?("x"===C&&g.set("scaleX",o),"y"===C&&g.set("scaleY",a)):(!p&&g.set("scaleX",o),!v&&g.set("scaleY",a)),T!==g.scaleX||x!==g.scaleY}n.scaleCursorStyleHandler=function(e,t,s){var n=m(e,s),r="";if(0!==t.x&&0===t.y?r="x":0===t.x&&0!==t.y&&(r="y"),_(s,r,n))return"not-allowed";var o=g(s,t);return i[o]+"-resize"},n.skewCursorStyleHandler=function(e,t,i){var n="not-allowed";if(0!==t.x&&i.lockSkewingY)return n;if(0!==t.y&&i.lockSkewingX)return n;var r=g(i,t)%4;return s[r]+"-resize"},n.scaleSkewCursorStyleHandler=function(e,t,i){return e[i.canvas.altActionKey]?n.skewCursorStyleHandler(e,t,i):n.scaleCursorStyleHandler(e,t,i)},n.rotationWithSnapping=E("rotating",C((function(e,t,i,s){var n=t,r=n.target,o=r.translateToOriginPoint(r.getCenterPoint(),n.originX,n.originY);if(r.lockRotation)return!1;var a,c=Math.atan2(n.ey-o.y,n.ex-o.x),l=Math.atan2(s-o.y,i-o.x),h=d(l-c+n.theta);if(r.snapAngle>0){var u=r.snapAngle,g=r.snapThreshold||u,p=Math.ceil(h/u)*u,m=Math.floor(h/u)*u;Math.abs(h-m)<g?h=m:Math.abs(h-p)<g&&(h=p)}return h<0&&(h=360+h),h%=360,a=r.angle!==h,r.angle=h,a}))),n.scalingEqually=E("scaling",C((function(e,t,i,s){return L(e,t,i,s)}))),n.scalingX=E("scaling",C((function(e,t,i,s){return L(e,t,i,s,{by:"x"})}))),n.scalingY=E("scaling",C((function(e,t,i,s){return L(e,t,i,s,{by:"y"})}))),n.scalingYOrSkewingX=function(e,t,i,s){return e[t.target.canvas.altActionKey]?n.skewHandlerX(e,t,i,s):n.scalingY(e,t,i,s)},n.scalingXOrSkewingY=function(e,t,i,s){return e[t.target.canvas.altActionKey]?n.skewHandlerY(e,t,i,s):n.scalingX(e,t,i,s)},n.changeWidth=E("resizing",C((function(e,t,i,s){var n=t.target,r=b(t,t.originX,t.originY,i,s),o=n.strokeWidth/(n.strokeUniform?n.scaleX:1),a=f(t)?2:1,c=n.width,l=Math.abs(r.x*a/n.scaleX)-o;return n.set("width",Math.max(l,0)),c!==l}))),n.skewHandlerX=function(e,t,i,s){var n,c=t.target,h=c.skewX,d=t.originY;return!c.lockSkewingX&&(0===h?n=b(t,l,l,i,s).x>0?r:a:(h>0&&(n=d===o?r:a),h<0&&(n=d===o?a:r),S(c)&&(n=n===r?a:r)),t.originX=n,E("skewing",C(w))(e,t,i,s))},n.skewHandlerY=function(e,t,i,s){var n,a=t.target,h=a.skewY,d=t.originX;return!a.lockSkewingY&&(0===h?n=b(t,l,l,i,s).y>0?o:c:(h>0&&(n=d===r?o:c),h<0&&(n=d===r?c:o),S(a)&&(n=n===o?c:o)),t.originY=n,E("skewing",C(R))(e,t,i,s))},n.dragHandler=function(e,t,i,s){var n=t.target,r=i-t.offsetX,o=s-t.offsetY,a=!n.get("lockMovementX")&&n.left!==r,c=!n.get("lockMovementY")&&n.top!==o;return a&&n.set("left",r),c&&n.set("top",o),(a||c)&&p("moving",v(e,t,i,s)),a||c},n.scaleOrSkewActionName=function(e,t,i){var s=e[i.canvas.altActionKey];return 0===t.x?s?"skewX":"scaleY":0===t.y?s?"skewY":"scaleX":void 0},n.rotationStyleHandler=function(e,t,i){return i.lockRotation?"not-allowed":t.cursorStyle},n.fireEvent=p,n.wrapWithFixedAnchor=C,n.wrapWithFireEvent=E,n.getLocalPoint=b,t.controlsUtils=n}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.degreesToRadians,s=t.controlsUtils;s.renderCircleControl=function(e,t,i,s,n){s=s||{};var r,o=this.sizeX||s.cornerSize||n.cornerSize,a=this.sizeY||s.cornerSize||n.cornerSize,c="undefined"!==typeof s.transparentCorners?s.transparentCorners:n.transparentCorners,l=c?"stroke":"fill",h=!c&&(s.cornerStrokeColor||n.cornerStrokeColor),d=t,u=i;e.save(),e.fillStyle=s.cornerColor||n.cornerColor,e.strokeStyle=s.cornerStrokeColor||n.cornerStrokeColor,o>a?(r=o,e.scale(1,a/o),u=i*o/a):a>o?(r=a,e.scale(o/a,1),d=t*a/o):r=o,e.lineWidth=1,e.beginPath(),e.arc(d,u,r/2,0,2*Math.PI,!1),e[l](),h&&e.stroke(),e.restore()},s.renderSquareControl=function(e,t,s,n,r){n=n||{};var o=this.sizeX||n.cornerSize||r.cornerSize,a=this.sizeY||n.cornerSize||r.cornerSize,c="undefined"!==typeof n.transparentCorners?n.transparentCorners:r.transparentCorners,l=c?"stroke":"fill",h=!c&&(n.cornerStrokeColor||r.cornerStrokeColor),d=o/2,u=a/2;e.save(),e.fillStyle=n.cornerColor||r.cornerColor,e.strokeStyle=n.cornerStrokeColor||r.cornerStrokeColor,e.lineWidth=1,e.translate(t,s),e.rotate(i(r.angle)),e[l+"Rect"](-d,-u,o,a),h&&e.strokeRect(-d,-u,o,a),e.restore()}}(t),function(e){"use strict";var t=e.fabric||(e.fabric={});t.Control=function(e){for(var t in e)this[t]=e[t]},t.Control.prototype={visible:!0,actionName:"scale",angle:0,x:0,y:0,offsetX:0,offsetY:0,sizeX:null,sizeY:null,touchSizeX:null,touchSizeY:null,cursorStyle:"crosshair",withConnection:!1,actionHandler:function(){},mouseDownHandler:function(){},mouseUpHandler:function(){},getActionHandler:function(){return this.actionHandler},getMouseDownHandler:function(){return this.mouseDownHandler},getMouseUpHandler:function(){return this.mouseUpHandler},cursorStyleHandler:function(e,t){return t.cursorStyle},getActionName:function(e,t){return t.actionName},getVisibility:function(e,t){var i=e._controlsVisibility;return i&&"undefined"!==typeof i[t]?i[t]:this.visible},setVisibility:function(e){this.visible=e},positionHandler:function(e,i){return t.util.transformPoint({x:this.x*e.x+this.offsetX,y:this.y*e.y+this.offsetY},i)},calcCornerCoords:function(e,i,s,n,r){var o,a,c,l,h=r?this.touchSizeX:this.sizeX,d=r?this.touchSizeY:this.sizeY;if(h&&d&&h!==d){var u=Math.atan2(d,h),g=Math.sqrt(h*h+d*d)/2,p=u-t.util.degreesToRadians(e),m=Math.PI/2-u-t.util.degreesToRadians(e);o=g*t.util.cos(p),a=g*t.util.sin(p),c=g*t.util.cos(m),l=g*t.util.sin(m)}else{g=.7071067812*(h&&d?h:i);p=t.util.degreesToRadians(45-e);o=c=g*t.util.cos(p),a=l=g*t.util.sin(p)}return{tl:{x:s-l,y:n-c},tr:{x:s+o,y:n-a},bl:{x:s-o,y:n+a},br:{x:s+l,y:n+c}}},render:function(e,i,s,n,r){if("circle"===((n=n||{}).cornerStyle||r.cornerStyle))t.controlsUtils.renderCircleControl.call(this,e,i,s,n,r);else t.controlsUtils.renderSquareControl.call(this,e,i,s,n,r)}}}(t),function(){function e(e,t){var i,s,r,o,a=e.getAttribute("style"),c=e.getAttribute("offset")||0;if(c=(c=parseFloat(c)/(/%$/.test(c)?100:1))<0?0:c>1?1:c,a){var l=a.split(/\s*;\s*/);for(""===l[l.length-1]&&l.pop(),o=l.length;o--;){var h=l[o].split(/\s*:\s*/),d=h[0].trim(),u=h[1].trim();"stop-color"===d?i=u:"stop-opacity"===d&&(r=u)}}return i||(i=e.getAttribute("stop-color")||"rgb(0,0,0)"),r||(r=e.getAttribute("stop-opacity")),s=(i=new n.Color(i)).getAlpha(),r=isNaN(parseFloat(r))?1:parseFloat(r),r*=s*t,{offset:c,color:i.toRgb(),opacity:r}}var t=n.util.object.clone;n.Gradient=n.util.createClass({offsetX:0,offsetY:0,gradientTransform:null,gradientUnits:"pixels",type:"linear",initialize:function(e){e||(e={}),e.coords||(e.coords={});var t,i=this;Object.keys(e).forEach((function(t){i[t]=e[t]})),this.id?this.id+="_"+n.Object.__uid++:this.id=n.Object.__uid++,t={x1:e.coords.x1||0,y1:e.coords.y1||0,x2:e.coords.x2||0,y2:e.coords.y2||0},"radial"===this.type&&(t.r1=e.coords.r1||0,t.r2=e.coords.r2||0),this.coords=t,this.colorStops=e.colorStops.slice()},addColorStop:function(e){for(var t in e){var i=new n.Color(e[t]);this.colorStops.push({offset:parseFloat(t),color:i.toRgb(),opacity:i.getAlpha()})}return this},toObject:function(e){var t={type:this.type,coords:this.coords,colorStops:this.colorStops,offsetX:this.offsetX,offsetY:this.offsetY,gradientUnits:this.gradientUnits,gradientTransform:this.gradientTransform?this.gradientTransform.concat():this.gradientTransform};return n.util.populateWithProperties(this,t,e),t},toSVG:function(e,i){var s,r,o,a,c=t(this.coords,!0),l=(i=i||{},t(this.colorStops,!0)),h=c.r1>c.r2,d=this.gradientTransform?this.gradientTransform.concat():n.iMatrix.concat(),u=-this.offsetX,g=-this.offsetY,p=!!i.additionalTransform,m="pixels"===this.gradientUnits?"userSpaceOnUse":"objectBoundingBox";if(l.sort((function(e,t){return e.offset-t.offset})),"objectBoundingBox"===m?(u/=e.width,g/=e.height):(u+=e.width/2,g+=e.height/2),"path"===e.type&&"percentage"!==this.gradientUnits&&(u-=e.pathOffset.x,g-=e.pathOffset.y),d[4]-=u,d[5]-=g,a='id="SVGID_'+this.id+'" gradientUnits="'+m+'"',a+=' gradientTransform="'+(p?i.additionalTransform+" ":"")+n.util.matrixToSVG(d)+'" ',"linear"===this.type?o=["<linearGradient ",a,' x1="',c.x1,'" y1="',c.y1,'" x2="',c.x2,'" y2="',c.y2,'">\n']:"radial"===this.type&&(o=["<radialGradient ",a,' cx="',h?c.x1:c.x2,'" cy="',h?c.y1:c.y2,'" r="',h?c.r1:c.r2,'" fx="',h?c.x2:c.x1,'" fy="',h?c.y2:c.y1,'">\n']),"radial"===this.type){if(h)for((l=l.concat()).reverse(),s=0,r=l.length;s<r;s++)l[s].offset=1-l[s].offset;var f=Math.min(c.r1,c.r2);if(f>0){var _=f/Math.max(c.r1,c.r2);for(s=0,r=l.length;s<r;s++)l[s].offset+=_*(1-l[s].offset)}}for(s=0,r=l.length;s<r;s++){var v=l[s];o.push("<stop ",'offset="',100*v.offset+"%",'" style="stop-color:',v.color,"undefined"!==typeof v.opacity?";stop-opacity: "+v.opacity:";",'"/>\n')}return o.push("linear"===this.type?"</linearGradient>\n":"</radialGradient>\n"),o.join("")},toLive:function(e){var t,i,s,r=n.util.object.clone(this.coords);if(this.type){for("linear"===this.type?t=e.createLinearGradient(r.x1,r.y1,r.x2,r.y2):"radial"===this.type&&(t=e.createRadialGradient(r.x1,r.y1,r.r1,r.x2,r.y2,r.r2)),i=0,s=this.colorStops.length;i<s;i++){var o=this.colorStops[i].color,a=this.colorStops[i].opacity,c=this.colorStops[i].offset;"undefined"!==typeof a&&(o=new n.Color(o).setAlpha(a).toRgba()),t.addColorStop(c,o)}return t}}}),n.util.object.extend(n.Gradient,{fromElement:function(t,i,s,r){var o=parseFloat(s)/(/%$/.test(s)?100:1);o=o<0?0:o>1?1:o,isNaN(o)&&(o=1);var a,c,l,h,d=t.getElementsByTagName("stop"),u="userSpaceOnUse"===t.getAttribute("gradientUnits")?"pixels":"percentage",g=t.getAttribute("gradientTransform")||"",p=[],m=0,f=0;for("linearGradient"===t.nodeName||"LINEARGRADIENT"===t.nodeName?(a="linear",c=function(e){return{x1:e.getAttribute("x1")||0,y1:e.getAttribute("y1")||0,x2:e.getAttribute("x2")||"100%",y2:e.getAttribute("y2")||0}}(t)):(a="radial",c=function(e){return{x1:e.getAttribute("fx")||e.getAttribute("cx")||"50%",y1:e.getAttribute("fy")||e.getAttribute("cy")||"50%",r1:0,x2:e.getAttribute("cx")||"50%",y2:e.getAttribute("cy")||"50%",r2:e.getAttribute("r")||"50%"}}(t)),l=d.length;l--;)p.push(e(d[l],o));return h=n.parseTransformAttribute(g),function(e,t,i,s){var n,r;Object.keys(t).forEach((function(e){"Infinity"===(n=t[e])?r=1:"-Infinity"===n?r=0:(r=parseFloat(t[e],10),"string"===typeof n&&/^(\d+\.\d+)%|(\d+)%$/.test(n)&&(r*=.01,"pixels"===s&&("x1"!==e&&"x2"!==e&&"r2"!==e||(r*=i.viewBoxWidth||i.width),"y1"!==e&&"y2"!==e||(r*=i.viewBoxHeight||i.height)))),t[e]=r}))}(0,c,r,u),"pixels"===u&&(m=-i.left,f=-i.top),new n.Gradient({id:t.getAttribute("id"),type:a,coords:c,colorStops:p,gradientUnits:u,gradientTransform:h,offsetX:m,offsetY:f})}})}(),function(){"use strict";var e=n.util.toFixed;n.Pattern=n.util.createClass({repeat:"repeat",offsetX:0,offsetY:0,crossOrigin:"",patternTransform:null,initialize:function(e,t){if(e||(e={}),this.id=n.Object.__uid++,this.setOptions(e),!e.source||e.source&&"string"!==typeof e.source)t&&t(this);else{var i=this;this.source=n.util.createImage(),n.util.loadImage(e.source,(function(e,s){i.source=e,t&&t(i,s)}),null,this.crossOrigin)}},toObject:function(t){var i,s,r=n.Object.NUM_FRACTION_DIGITS;return"string"===typeof this.source.src?i=this.source.src:"object"===typeof this.source&&this.source.toDataURL&&(i=this.source.toDataURL()),s={type:"pattern",source:i,repeat:this.repeat,crossOrigin:this.crossOrigin,offsetX:e(this.offsetX,r),offsetY:e(this.offsetY,r),patternTransform:this.patternTransform?this.patternTransform.concat():null},n.util.populateWithProperties(this,s,t),s},toSVG:function(e){var t="function"===typeof this.source?this.source():this.source,i=t.width/e.width,s=t.height/e.height,n=this.offsetX/e.width,r=this.offsetY/e.height,o="";return"repeat-x"!==this.repeat&&"no-repeat"!==this.repeat||(s=1,r&&(s+=Math.abs(r))),"repeat-y"!==this.repeat&&"no-repeat"!==this.repeat||(i=1,n&&(i+=Math.abs(n))),t.src?o=t.src:t.toDataURL&&(o=t.toDataURL()),'<pattern id="SVGID_'+this.id+'" x="'+n+'" y="'+r+'" width="'+i+'" height="'+s+'">\n<image x="0" y="0" width="'+t.width+'" height="'+t.height+'" xlink:href="'+o+'"></image>\n</pattern>\n'},setOptions:function(e){for(var t in e)this[t]=e[t]},toLive:function(e){var t=this.source;if(!t)return"";if("undefined"!==typeof t.src){if(!t.complete)return"";if(0===t.naturalWidth||0===t.naturalHeight)return""}return e.createPattern(t,this.repeat)}})}(),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.toFixed;t.Shadow?t.warn("fabric.Shadow is already defined."):(t.Shadow=t.util.createClass({color:"rgb(0,0,0)",blur:0,offsetX:0,offsetY:0,affectStroke:!1,includeDefaultValues:!0,nonScaling:!1,initialize:function(e){for(var i in"string"===typeof e&&(e=this._parseShadow(e)),e)this[i]=e[i];this.id=t.Object.__uid++},_parseShadow:function(e){var i=e.trim(),s=t.Shadow.reOffsetsAndBlur.exec(i)||[];return{color:(i.replace(t.Shadow.reOffsetsAndBlur,"")||"rgb(0,0,0)").trim(),offsetX:parseFloat(s[1],10)||0,offsetY:parseFloat(s[2],10)||0,blur:parseFloat(s[3],10)||0}},toString:function(){return[this.offsetX,this.offsetY,this.blur,this.color].join("px ")},toSVG:function(e){var s=40,n=40,r=t.Object.NUM_FRACTION_DIGITS,o=t.util.rotateVector({x:this.offsetX,y:this.offsetY},t.util.degreesToRadians(-e.angle)),a=new t.Color(this.color);return e.width&&e.height&&(s=100*i((Math.abs(o.x)+this.blur)/e.width,r)+20,n=100*i((Math.abs(o.y)+this.blur)/e.height,r)+20),e.flipX&&(o.x*=-1),e.flipY&&(o.y*=-1),'<filter id="SVGID_'+this.id+'" y="-'+n+'%" height="'+(100+2*n)+'%" x="-'+s+'%" width="'+(100+2*s)+'%" >\n\t<feGaussianBlur in="SourceAlpha" stdDeviation="'+i(this.blur?this.blur/2:0,r)+'"></feGaussianBlur>\n\t<feOffset dx="'+i(o.x,r)+'" dy="'+i(o.y,r)+'" result="oBlur" ></feOffset>\n\t<feFlood flood-color="'+a.toRgb()+'" flood-opacity="'+a.getAlpha()+'"/>\n\t<feComposite in2="oBlur" operator="in" />\n\t<feMerge>\n\t\t<feMergeNode></feMergeNode>\n\t\t<feMergeNode in="SourceGraphic"></feMergeNode>\n\t</feMerge>\n</filter>\n'},toObject:function(){if(this.includeDefaultValues)return{color:this.color,blur:this.blur,offsetX:this.offsetX,offsetY:this.offsetY,affectStroke:this.affectStroke,nonScaling:this.nonScaling};var e={},i=t.Shadow.prototype;return["color","blur","offsetX","offsetY","affectStroke","nonScaling"].forEach((function(t){this[t]!==i[t]&&(e[t]=this[t])}),this),e}}),t.Shadow.reOffsetsAndBlur=/(?:\s|^)(-?\d+(?:\.\d*)?(?:px)?(?:\s?|$))?(-?\d+(?:\.\d*)?(?:px)?(?:\s?|$))?(\d+(?:\.\d*)?(?:px)?)?(?:\s?|$)(?:$|\s)/)}(t),function(){"use strict";if(n.StaticCanvas)n.warn("fabric.StaticCanvas is already defined.");else{var e=n.util.object.extend,t=n.util.getElementOffset,i=n.util.removeFromArray,s=n.util.toFixed,r=n.util.transformPoint,o=n.util.invertTransform,a=n.util.getNodeCanvas,c=n.util.createCanvasElement,l=new Error("Could not initialize `canvas` element");n.StaticCanvas=n.util.createClass(n.CommonMethods,{initialize:function(e,t){t||(t={}),this.renderAndResetBound=this.renderAndReset.bind(this),this.requestRenderAllBound=this.requestRenderAll.bind(this),this._initStatic(e,t)},backgroundColor:"",backgroundImage:null,overlayColor:"",overlayImage:null,includeDefaultValues:!0,stateful:!1,renderOnAddRemove:!0,controlsAboveOverlay:!1,allowTouchScrolling:!1,imageSmoothingEnabled:!0,viewportTransform:n.iMatrix.concat(),backgroundVpt:!0,overlayVpt:!0,enableRetinaScaling:!0,vptCoords:{},skipOffscreen:!0,clipPath:void 0,_initStatic:function(e,t){var i=this.requestRenderAllBound;this._objects=[],this._createLowerCanvas(e),this._initOptions(t),this.interactive||this._initRetinaScaling(),t.overlayImage&&this.setOverlayImage(t.overlayImage,i),t.backgroundImage&&this.setBackgroundImage(t.backgroundImage,i),t.backgroundColor&&this.setBackgroundColor(t.backgroundColor,i),t.overlayColor&&this.setOverlayColor(t.overlayColor,i),this.calcOffset()},_isRetinaScaling:function(){return n.devicePixelRatio>1&&this.enableRetinaScaling},getRetinaScaling:function(){return this._isRetinaScaling()?Math.max(1,n.devicePixelRatio):1},_initRetinaScaling:function(){if(this._isRetinaScaling()){var e=n.devicePixelRatio;this.__initRetinaScaling(e,this.lowerCanvasEl,this.contextContainer),this.upperCanvasEl&&this.__initRetinaScaling(e,this.upperCanvasEl,this.contextTop)}},__initRetinaScaling:function(e,t,i){t.setAttribute("width",this.width*e),t.setAttribute("height",this.height*e),i.scale(e,e)},calcOffset:function(){return this._offset=t(this.lowerCanvasEl),this},setOverlayImage:function(e,t,i){return this.__setBgOverlayImage("overlayImage",e,t,i)},setBackgroundImage:function(e,t,i){return this.__setBgOverlayImage("backgroundImage",e,t,i)},setOverlayColor:function(e,t){return this.__setBgOverlayColor("overlayColor",e,t)},setBackgroundColor:function(e,t){return this.__setBgOverlayColor("backgroundColor",e,t)},__setBgOverlayImage:function(e,t,i,s){return"string"===typeof t?n.util.loadImage(t,(function(t,r){if(t){var o=new n.Image(t,s);this[e]=o,o.canvas=this}i&&i(t,r)}),this,s&&s.crossOrigin):(s&&t.setOptions(s),this[e]=t,t&&(t.canvas=this),i&&i(t,!1)),this},__setBgOverlayColor:function(e,t,i){return this[e]=t,this._initGradient(t,e),this._initPattern(t,e,i),this},_createCanvasElement:function(){var e=c();if(!e)throw l;if(e.style||(e.style={}),"undefined"===typeof e.getContext)throw l;return e},_initOptions:function(e){var t=this.lowerCanvasEl;this._setOptions(e),this.width=this.width||parseInt(t.width,10)||0,this.height=this.height||parseInt(t.height,10)||0,this.lowerCanvasEl.style&&(t.width=this.width,t.height=this.height,t.style.width=this.width+"px",t.style.height=this.height+"px",this.viewportTransform=this.viewportTransform.slice())},_createLowerCanvas:function(e){e&&e.getContext?this.lowerCanvasEl=e:this.lowerCanvasEl=n.util.getById(e)||this._createCanvasElement(),n.util.addClass(this.lowerCanvasEl,"lower-canvas"),this._originalCanvasStyle=this.lowerCanvasEl.style,this.interactive&&this._applyCanvasStyle(this.lowerCanvasEl),this.contextContainer=this.lowerCanvasEl.getContext("2d")},getWidth:function(){return this.width},getHeight:function(){return this.height},setWidth:function(e,t){return this.setDimensions({width:e},t)},setHeight:function(e,t){return this.setDimensions({height:e},t)},setDimensions:function(e,t){var i;for(var s in t=t||{},e)i=e[s],t.cssOnly||(this._setBackstoreDimension(s,e[s]),i+="px",this.hasLostContext=!0),t.backstoreOnly||this._setCssDimension(s,i);return this._isCurrentlyDrawing&&this.freeDrawingBrush&&this.freeDrawingBrush._setBrushStyles(this.contextTop),this._initRetinaScaling(),this.calcOffset(),t.cssOnly||this.requestRenderAll(),this},_setBackstoreDimension:function(e,t){return this.lowerCanvasEl[e]=t,this.upperCanvasEl&&(this.upperCanvasEl[e]=t),this.cacheCanvasEl&&(this.cacheCanvasEl[e]=t),this[e]=t,this},_setCssDimension:function(e,t){return this.lowerCanvasEl.style[e]=t,this.upperCanvasEl&&(this.upperCanvasEl.style[e]=t),this.wrapperEl&&(this.wrapperEl.style[e]=t),this},getZoom:function(){return this.viewportTransform[0]},setViewportTransform:function(e){var t,i,s,n=this._activeObject,r=this.backgroundImage,o=this.overlayImage;for(this.viewportTransform=e,i=0,s=this._objects.length;i<s;i++)(t=this._objects[i]).group||t.setCoords(!0);return n&&n.setCoords(),r&&r.setCoords(!0),o&&o.setCoords(!0),this.calcViewportBoundaries(),this.renderOnAddRemove&&this.requestRenderAll(),this},zoomToPoint:function(e,t){var i=e,s=this.viewportTransform.slice(0);e=r(e,o(this.viewportTransform)),s[0]=t,s[3]=t;var n=r(e,s);return s[4]+=i.x-n.x,s[5]+=i.y-n.y,this.setViewportTransform(s)},setZoom:function(e){return this.zoomToPoint(new n.Point(0,0),e),this},absolutePan:function(e){var t=this.viewportTransform.slice(0);return t[4]=-e.x,t[5]=-e.y,this.setViewportTransform(t)},relativePan:function(e){return this.absolutePan(new n.Point(-e.x-this.viewportTransform[4],-e.y-this.viewportTransform[5]))},getElement:function(){return this.lowerCanvasEl},_onObjectAdded:function(e){this.stateful&&e.setupState(),e._set("canvas",this),e.setCoords(),this.fire("object:added",{target:e}),e.fire("added")},_onObjectRemoved:function(e){this.fire("object:removed",{target:e}),e.fire("removed"),delete e.canvas},clearContext:function(e){return e.clearRect(0,0,this.width,this.height),this},getContext:function(){return this.contextContainer},clear:function(){return this.remove.apply(this,this.getObjects()),this.backgroundImage=null,this.overlayImage=null,this.backgroundColor="",this.overlayColor="",this._hasITextHandlers&&(this.off("mouse:up",this._mouseUpITextHandler),this._iTextInstances=null,this._hasITextHandlers=!1),this.clearContext(this.contextContainer),this.fire("canvas:cleared"),this.renderOnAddRemove&&this.requestRenderAll(),this},renderAll:function(){var e=this.contextContainer;return this.renderCanvas(e,this._objects),this},renderAndReset:function(){this.isRendering=0,this.renderAll()},requestRenderAll:function(){return this.isRendering||(this.isRendering=n.util.requestAnimFrame(this.renderAndResetBound)),this},calcViewportBoundaries:function(){var e={},t=this.width,i=this.height,s=o(this.viewportTransform);return e.tl=r({x:0,y:0},s),e.br=r({x:t,y:i},s),e.tr=new n.Point(e.br.x,e.tl.y),e.bl=new n.Point(e.tl.x,e.br.y),this.vptCoords=e,e},cancelRequestedRender:function(){this.isRendering&&(n.util.cancelAnimFrame(this.isRendering),this.isRendering=0)},renderCanvas:function(e,t){var i=this.viewportTransform,s=this.clipPath;this.cancelRequestedRender(),this.calcViewportBoundaries(),this.clearContext(e),n.util.setImageSmoothing(e,this.imageSmoothingEnabled),this.fire("before:render",{ctx:e}),this._renderBackground(e),e.save(),e.transform(i[0],i[1],i[2],i[3],i[4],i[5]),this._renderObjects(e,t),e.restore(),!this.controlsAboveOverlay&&this.interactive&&this.drawControls(e),s&&(s.canvas=this,s.shouldCache(),s._transformDone=!0,s.renderCache({forClipping:!0}),this.drawClipPathOnCanvas(e)),this._renderOverlay(e),this.controlsAboveOverlay&&this.interactive&&this.drawControls(e),this.fire("after:render",{ctx:e})},drawClipPathOnCanvas:function(e){var t=this.viewportTransform,i=this.clipPath;e.save(),e.transform(t[0],t[1],t[2],t[3],t[4],t[5]),e.globalCompositeOperation="destination-in",i.transform(e),e.scale(1/i.zoomX,1/i.zoomY),e.drawImage(i._cacheCanvas,-i.cacheTranslationX,-i.cacheTranslationY),e.restore()},_renderObjects:function(e,t){var i,s;for(i=0,s=t.length;i<s;++i)t[i]&&t[i].render(e)},_renderBackgroundOrOverlay:function(e,t){var i=this[t+"Color"],s=this[t+"Image"],n=this.viewportTransform,r=this[t+"Vpt"];if(i||s){if(i){e.save(),e.beginPath(),e.moveTo(0,0),e.lineTo(this.width,0),e.lineTo(this.width,this.height),e.lineTo(0,this.height),e.closePath(),e.fillStyle=i.toLive?i.toLive(e,this):i,r&&e.transform(n[0],n[1],n[2],n[3],n[4],n[5]),e.transform(1,0,0,1,i.offsetX||0,i.offsetY||0);var o=i.gradientTransform||i.patternTransform;o&&e.transform(o[0],o[1],o[2],o[3],o[4],o[5]),e.fill(),e.restore()}if(s){e.save();var a=this.skipOffscreen;this.skipOffscreen=r,r&&e.transform(n[0],n[1],n[2],n[3],n[4],n[5]),s.render(e),this.skipOffscreen=a,e.restore()}}},_renderBackground:function(e){this._renderBackgroundOrOverlay(e,"background")},_renderOverlay:function(e){this._renderBackgroundOrOverlay(e,"overlay")},getCenter:function(){return{top:this.height/2,left:this.width/2}},getCenterPoint:function(){return new n.Point(this.width/2,this.height/2)},centerObjectH:function(e){return this._centerObject(e,new n.Point(this.getCenterPoint().x,e.getCenterPoint().y))},centerObjectV:function(e){return this._centerObject(e,new n.Point(e.getCenterPoint().x,this.getCenterPoint().y))},centerObject:function(e){var t=this.getCenterPoint();return this._centerObject(e,t)},viewportCenterObject:function(e){var t=this.getVpCenter();return this._centerObject(e,t)},viewportCenterObjectH:function(e){var t=this.getVpCenter();return this._centerObject(e,new n.Point(t.x,e.getCenterPoint().y)),this},viewportCenterObjectV:function(e){var t=this.getVpCenter();return this._centerObject(e,new n.Point(e.getCenterPoint().x,t.y))},getVpCenter:function(){var e=this.getCenterPoint(),t=o(this.viewportTransform);return r(e,t)},_centerObject:function(e,t){return e.setPositionByOrigin(t,"center","center"),e.setCoords(),this.renderOnAddRemove&&this.requestRenderAll(),this},toDatalessJSON:function(e){return this.toDatalessObject(e)},toObject:function(e){return this._toObjectMethod("toObject",e)},toDatalessObject:function(e){return this._toObjectMethod("toDatalessObject",e)},_toObjectMethod:function(t,i){var s=this.clipPath,r={version:n.version,objects:this._toObjects(t,i)};return s&&!s.excludeFromExport&&(r.clipPath=this._toObject(this.clipPath,t,i)),e(r,this.__serializeBgOverlay(t,i)),n.util.populateWithProperties(this,r,i),r},_toObjects:function(e,t){return this._objects.filter((function(e){return!e.excludeFromExport})).map((function(i){return this._toObject(i,e,t)}),this)},_toObject:function(e,t,i){var s;this.includeDefaultValues||(s=e.includeDefaultValues,e.includeDefaultValues=!1);var n=e[t](i);return this.includeDefaultValues||(e.includeDefaultValues=s),n},__serializeBgOverlay:function(e,t){var i={},s=this.backgroundImage,n=this.overlayImage,r=this.backgroundColor,o=this.overlayColor;return r&&r.toObject?r.excludeFromExport||(i.background=r.toObject(t)):r&&(i.background=r),o&&o.toObject?o.excludeFromExport||(i.overlay=o.toObject(t)):o&&(i.overlay=o),s&&!s.excludeFromExport&&(i.backgroundImage=this._toObject(s,e,t)),n&&!n.excludeFromExport&&(i.overlayImage=this._toObject(n,e,t)),i},svgViewportTransformation:!0,toSVG:function(e,t){e||(e={}),e.reviver=t;var i=[];return this._setSVGPreamble(i,e),this._setSVGHeader(i,e),this.clipPath&&i.push('<g clip-path="url(#'+this.clipPath.clipPathId+')" >\n'),this._setSVGBgOverlayColor(i,"background"),this._setSVGBgOverlayImage(i,"backgroundImage",t),this._setSVGObjects(i,t),this.clipPath&&i.push("</g>\n"),this._setSVGBgOverlayColor(i,"overlay"),this._setSVGBgOverlayImage(i,"overlayImage",t),i.push("</svg>"),i.join("")},_setSVGPreamble:function(e,t){t.suppressPreamble||e.push('<?xml version="1.0" encoding="',t.encoding||"UTF-8",'" standalone="no" ?>\n','<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" ','"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n')},_setSVGHeader:function(e,t){var i,r=t.width||this.width,o=t.height||this.height,a='viewBox="0 0 '+this.width+" "+this.height+'" ',c=n.Object.NUM_FRACTION_DIGITS;t.viewBox?a='viewBox="'+t.viewBox.x+" "+t.viewBox.y+" "+t.viewBox.width+" "+t.viewBox.height+'" ':this.svgViewportTransformation&&(i=this.viewportTransform,a='viewBox="'+s(-i[4]/i[0],c)+" "+s(-i[5]/i[3],c)+" "+s(this.width/i[0],c)+" "+s(this.height/i[3],c)+'" '),e.push("<svg ",'xmlns="http://www.w3.org/2000/svg" ','xmlns:xlink="http://www.w3.org/1999/xlink" ','version="1.1" ','width="',r,'" ','height="',o,'" ',a,'xml:space="preserve">\n',"<desc>Created with Fabric.js ",n.version,"</desc>\n","<defs>\n",this.createSVGFontFacesMarkup(),this.createSVGRefElementsMarkup(),this.createSVGClipPathMarkup(t),"</defs>\n")},createSVGClipPathMarkup:function(e){var t=this.clipPath;return t?(t.clipPathId="CLIPPATH_"+n.Object.__uid++,'<clipPath id="'+t.clipPathId+'" >\n'+this.clipPath.toClipPathSVG(e.reviver)+"</clipPath>\n"):""},createSVGRefElementsMarkup:function(){var e=this;return["background","overlay"].map((function(t){var i=e[t+"Color"];if(i&&i.toLive){var s=e[t+"Vpt"],r=e.viewportTransform,o={width:e.width/(s?r[0]:1),height:e.height/(s?r[3]:1)};return i.toSVG(o,{additionalTransform:s?n.util.matrixToSVG(r):""})}})).join("")},createSVGFontFacesMarkup:function(){var e,t,i,s,r,o,a,c,l="",h={},d=n.fontPaths,u=[];for(this._objects.forEach((function e(t){u.push(t),t._objects&&t._objects.forEach(e)})),a=0,c=u.length;a<c;a++)if(t=(e=u[a]).fontFamily,-1!==e.type.indexOf("text")&&!h[t]&&d[t]&&(h[t]=!0,e.styles))for(r in i=e.styles)for(o in s=i[r])!h[t=s[o].fontFamily]&&d[t]&&(h[t]=!0);for(var g in h)l+=["\t\t@font-face {\n","\t\t\tfont-family: '",g,"';\n","\t\t\tsrc: url('",d[g],"');\n","\t\t}\n"].join("");return l&&(l=['\t<style type="text/css">',"<![CDATA[\n",l,"]]>","</style>\n"].join("")),l},_setSVGObjects:function(e,t){var i,s,n,r=this._objects;for(s=0,n=r.length;s<n;s++)(i=r[s]).excludeFromExport||this._setSVGObject(e,i,t)},_setSVGObject:function(e,t,i){e.push(t.toSVG(i))},_setSVGBgOverlayImage:function(e,t,i){this[t]&&!this[t].excludeFromExport&&this[t].toSVG&&e.push(this[t].toSVG(i))},_setSVGBgOverlayColor:function(e,t){var i=this[t+"Color"],s=this.viewportTransform,r=this.width,o=this.height;if(i)if(i.toLive){var a=i.repeat,c=n.util.invertTransform(s),l=this[t+"Vpt"]?n.util.matrixToSVG(c):"";e.push('<rect transform="'+l+" translate(",r/2,",",o/2,')"',' x="',i.offsetX-r/2,'" y="',i.offsetY-o/2,'" ','width="',"repeat-y"===a||"no-repeat"===a?i.source.width:r,'" height="',"repeat-x"===a||"no-repeat"===a?i.source.height:o,'" fill="url(#SVGID_'+i.id+')"',"></rect>\n")}else e.push('<rect x="0" y="0" width="100%" height="100%" ','fill="',i,'"',"></rect>\n")},sendToBack:function(e){if(!e)return this;var t,s,n,r=this._activeObject;if(e===r&&"activeSelection"===e.type)for(t=(n=r._objects).length;t--;)s=n[t],i(this._objects,s),this._objects.unshift(s);else i(this._objects,e),this._objects.unshift(e);return this.renderOnAddRemove&&this.requestRenderAll(),this},bringToFront:function(e){if(!e)return this;var t,s,n,r=this._activeObject;if(e===r&&"activeSelection"===e.type)for(n=r._objects,t=0;t<n.length;t++)s=n[t],i(this._objects,s),this._objects.push(s);else i(this._objects,e),this._objects.push(e);return this.renderOnAddRemove&&this.requestRenderAll(),this},sendBackwards:function(e,t){if(!e)return this;var s,n,r,o,a,c=this._activeObject,l=0;if(e===c&&"activeSelection"===e.type)for(a=c._objects,s=0;s<a.length;s++)n=a[s],(r=this._objects.indexOf(n))>0+l&&(o=r-1,i(this._objects,n),this._objects.splice(o,0,n)),l++;else 0!==(r=this._objects.indexOf(e))&&(o=this._findNewLowerIndex(e,r,t),i(this._objects,e),this._objects.splice(o,0,e));return this.renderOnAddRemove&&this.requestRenderAll(),this},_findNewLowerIndex:function(e,t,i){var s,n;if(i)for(s=t,n=t-1;n>=0;--n){if(e.intersectsWithObject(this._objects[n])||e.isContainedWithinObject(this._objects[n])||this._objects[n].isContainedWithinObject(e)){s=n;break}}else s=t-1;return s},bringForward:function(e,t){if(!e)return this;var s,n,r,o,a,c=this._activeObject,l=0;if(e===c&&"activeSelection"===e.type)for(s=(a=c._objects).length;s--;)n=a[s],(r=this._objects.indexOf(n))<this._objects.length-1-l&&(o=r+1,i(this._objects,n),this._objects.splice(o,0,n)),l++;else(r=this._objects.indexOf(e))!==this._objects.length-1&&(o=this._findNewUpperIndex(e,r,t),i(this._objects,e),this._objects.splice(o,0,e));return this.renderOnAddRemove&&this.requestRenderAll(),this},_findNewUpperIndex:function(e,t,i){var s,n,r;if(i)for(s=t,n=t+1,r=this._objects.length;n<r;++n){if(e.intersectsWithObject(this._objects[n])||e.isContainedWithinObject(this._objects[n])||this._objects[n].isContainedWithinObject(e)){s=n;break}}else s=t+1;return s},moveTo:function(e,t){return i(this._objects,e),this._objects.splice(t,0,e),this.renderOnAddRemove&&this.requestRenderAll()},dispose:function(){return this.isRendering&&(n.util.cancelAnimFrame(this.isRendering),this.isRendering=0),this.forEachObject((function(e){e.dispose&&e.dispose()})),this._objects=[],this.backgroundImage&&this.backgroundImage.dispose&&this.backgroundImage.dispose(),this.backgroundImage=null,this.overlayImage&&this.overlayImage.dispose&&this.overlayImage.dispose(),this.overlayImage=null,this._iTextInstances=null,this.contextContainer=null,this.lowerCanvasEl.classList.remove("lower-canvas"),n.util.setStyle(this.lowerCanvasEl,this._originalCanvasStyle),delete this._originalCanvasStyle,this.lowerCanvasEl.setAttribute("width",this.width),this.lowerCanvasEl.setAttribute("height",this.height),n.util.cleanUpJsdomNode(this.lowerCanvasEl),this.lowerCanvasEl=void 0,this},toString:function(){return"#<fabric.Canvas ("+this.complexity()+"): { objects: "+this._objects.length+" }>"}}),e(n.StaticCanvas.prototype,n.Observable),e(n.StaticCanvas.prototype,n.Collection),e(n.StaticCanvas.prototype,n.DataURLExporter),e(n.StaticCanvas,{EMPTY_JSON:'{"objects": [], "background": "white"}',supports:function(e){var t=c();if(!t||!t.getContext)return null;var i=t.getContext("2d");return i&&"setLineDash"===e?"undefined"!==typeof i.setLineDash:null}}),n.StaticCanvas.prototype.toJSON=n.StaticCanvas.prototype.toObject,n.isLikelyNode&&(n.StaticCanvas.prototype.createPNGStream=function(){var e=a(this.lowerCanvasEl);return e&&e.createPNGStream()},n.StaticCanvas.prototype.createJPEGStream=function(e){var t=a(this.lowerCanvasEl);return t&&t.createJPEGStream(e)})}}(),n.BaseBrush=n.util.createClass({color:"rgb(0, 0, 0)",width:1,shadow:null,strokeLineCap:"round",strokeLineJoin:"round",strokeMiterLimit:10,strokeDashArray:null,limitedToCanvasSize:!1,_setBrushStyles:function(e){e.strokeStyle=this.color,e.lineWidth=this.width,e.lineCap=this.strokeLineCap,e.miterLimit=this.strokeMiterLimit,e.lineJoin=this.strokeLineJoin,e.setLineDash(this.strokeDashArray||[])},_saveAndTransform:function(e){var t=this.canvas.viewportTransform;e.save(),e.transform(t[0],t[1],t[2],t[3],t[4],t[5])},_setShadow:function(){if(this.shadow){var e=this.canvas,t=this.shadow,i=e.contextTop,s=e.getZoom();e&&e._isRetinaScaling()&&(s*=n.devicePixelRatio),i.shadowColor=t.color,i.shadowBlur=t.blur*s,i.shadowOffsetX=t.offsetX*s,i.shadowOffsetY=t.offsetY*s}},needsFullRender:function(){return new n.Color(this.color).getAlpha()<1||!!this.shadow},_resetShadow:function(){var e=this.canvas.contextTop;e.shadowColor="",e.shadowBlur=e.shadowOffsetX=e.shadowOffsetY=0},_isOutSideCanvas:function(e){return e.x<0||e.x>this.canvas.getWidth()||e.y<0||e.y>this.canvas.getHeight()}}),n.PencilBrush=n.util.createClass(n.BaseBrush,{decimate:.4,drawStraightLine:!1,straightLineKey:"shiftKey",initialize:function(e){this.canvas=e,this._points=[]},needsFullRender:function(){return this.callSuper("needsFullRender")||this._hasStraightLine},_drawSegment:function(e,t,i){var s=t.midPointFrom(i);return e.quadraticCurveTo(t.x,t.y,s.x,s.y),s},onMouseDown:function(e,t){this.canvas._isMainEvent(t.e)&&(this.drawStraightLine=t.e[this.straightLineKey],this._prepareForDrawing(e),this._captureDrawingPath(e),this._render())},onMouseMove:function(e,t){if(this.canvas._isMainEvent(t.e)&&(this.drawStraightLine=t.e[this.straightLineKey],(!0!==this.limitedToCanvasSize||!this._isOutSideCanvas(e))&&this._captureDrawingPath(e)&&this._points.length>1))if(this.needsFullRender())this.canvas.clearContext(this.canvas.contextTop),this._render();else{var i=this._points,s=i.length,n=this.canvas.contextTop;this._saveAndTransform(n),this.oldEnd&&(n.beginPath(),n.moveTo(this.oldEnd.x,this.oldEnd.y)),this.oldEnd=this._drawSegment(n,i[s-2],i[s-1],!0),n.stroke(),n.restore()}},onMouseUp:function(e){return!this.canvas._isMainEvent(e.e)||(this.drawStraightLine=!1,this.oldEnd=void 0,this._finalizeAndAddPath(),!1)},_prepareForDrawing:function(e){var t=new n.Point(e.x,e.y);this._reset(),this._addPoint(t),this.canvas.contextTop.moveTo(t.x,t.y)},_addPoint:function(e){return!(this._points.length>1&&e.eq(this._points[this._points.length-1]))&&(this.drawStraightLine&&this._points.length>1&&(this._hasStraightLine=!0,this._points.pop()),this._points.push(e),!0)},_reset:function(){this._points=[],this._setBrushStyles(this.canvas.contextTop),this._setShadow(),this._hasStraightLine=!1},_captureDrawingPath:function(e){var t=new n.Point(e.x,e.y);return this._addPoint(t)},_render:function(e){var t,i,s=this._points[0],r=this._points[1];if(e=e||this.canvas.contextTop,this._saveAndTransform(e),e.beginPath(),2===this._points.length&&s.x===r.x&&s.y===r.y){var o=this.width/1e3;s=new n.Point(s.x,s.y),r=new n.Point(r.x,r.y),s.x-=o,r.x+=o}for(e.moveTo(s.x,s.y),t=1,i=this._points.length;t<i;t++)this._drawSegment(e,s,r),s=this._points[t],r=this._points[t+1];e.lineTo(s.x,s.y),e.stroke(),e.restore()},convertPointsToSVGPath:function(e){var t=this.width/1e3;return n.util.getSmoothPathFromPoints(e,t)},_isEmptySVGPath:function(e){return"M 0 0 Q 0 0 0 0 L 0 0"===n.util.joinPath(e)},createPath:function(e){var t=new n.Path(e,{fill:null,stroke:this.color,strokeWidth:this.width,strokeLineCap:this.strokeLineCap,strokeMiterLimit:this.strokeMiterLimit,strokeLineJoin:this.strokeLineJoin,strokeDashArray:this.strokeDashArray});return this.shadow&&(this.shadow.affectStroke=!0,t.shadow=new n.Shadow(this.shadow)),t},decimatePoints:function(e,t){if(e.length<=2)return e;var i,s=this.canvas.getZoom(),n=Math.pow(t/s,2),r=e.length-1,o=e[0],a=[o];for(i=1;i<r-1;i++)Math.pow(o.x-e[i].x,2)+Math.pow(o.y-e[i].y,2)>=n&&(o=e[i],a.push(o));return a.push(e[r]),a},_finalizeAndAddPath:function(){this.canvas.contextTop.closePath(),this.decimate&&(this._points=this.decimatePoints(this._points,this.decimate));var e=this.convertPointsToSVGPath(this._points);if(this._isEmptySVGPath(e))this.canvas.requestRenderAll();else{var t=this.createPath(e);this.canvas.clearContext(this.canvas.contextTop),this.canvas.fire("before:path:created",{path:t}),this.canvas.add(t),this.canvas.requestRenderAll(),t.setCoords(),this._resetShadow(),this.canvas.fire("path:created",{path:t})}}}),n.CircleBrush=n.util.createClass(n.BaseBrush,{width:10,initialize:function(e){this.canvas=e,this.points=[]},drawDot:function(e){var t=this.addPoint(e),i=this.canvas.contextTop;this._saveAndTransform(i),this.dot(i,t),i.restore()},dot:function(e,t){e.fillStyle=t.fill,e.beginPath(),e.arc(t.x,t.y,t.radius,0,2*Math.PI,!1),e.closePath(),e.fill()},onMouseDown:function(e){this.points.length=0,this.canvas.clearContext(this.canvas.contextTop),this._setShadow(),this.drawDot(e)},_render:function(){var e,t,i=this.canvas.contextTop,s=this.points;for(this._saveAndTransform(i),e=0,t=s.length;e<t;e++)this.dot(i,s[e]);i.restore()},onMouseMove:function(e){!0===this.limitedToCanvasSize&&this._isOutSideCanvas(e)||(this.needsFullRender()?(this.canvas.clearContext(this.canvas.contextTop),this.addPoint(e),this._render()):this.drawDot(e))},onMouseUp:function(){var e,t,i=this.canvas.renderOnAddRemove;this.canvas.renderOnAddRemove=!1;var s=[];for(e=0,t=this.points.length;e<t;e++){var r=this.points[e],o=new n.Circle({radius:r.radius,left:r.x,top:r.y,originX:"center",originY:"center",fill:r.fill});this.shadow&&(o.shadow=new n.Shadow(this.shadow)),s.push(o)}var a=new n.Group(s);a.canvas=this.canvas,this.canvas.fire("before:path:created",{path:a}),this.canvas.add(a),this.canvas.fire("path:created",{path:a}),this.canvas.clearContext(this.canvas.contextTop),this._resetShadow(),this.canvas.renderOnAddRemove=i,this.canvas.requestRenderAll()},addPoint:function(e){var t=new n.Point(e.x,e.y),i=n.util.getRandomInt(Math.max(0,this.width-20),this.width+20)/2,s=new n.Color(this.color).setAlpha(n.util.getRandomInt(0,100)/100).toRgba();return t.radius=i,t.fill=s,this.points.push(t),t}}),n.SprayBrush=n.util.createClass(n.BaseBrush,{width:10,density:20,dotWidth:1,dotWidthVariance:1,randomOpacity:!1,optimizeOverlapping:!0,initialize:function(e){this.canvas=e,this.sprayChunks=[]},onMouseDown:function(e){this.sprayChunks.length=0,this.canvas.clearContext(this.canvas.contextTop),this._setShadow(),this.addSprayChunk(e),this.render(this.sprayChunkPoints)},onMouseMove:function(e){!0===this.limitedToCanvasSize&&this._isOutSideCanvas(e)||(this.addSprayChunk(e),this.render(this.sprayChunkPoints))},onMouseUp:function(){var e=this.canvas.renderOnAddRemove;this.canvas.renderOnAddRemove=!1;for(var t=[],i=0,s=this.sprayChunks.length;i<s;i++)for(var r=this.sprayChunks[i],o=0,a=r.length;o<a;o++){var c=new n.Rect({width:r[o].width,height:r[o].width,left:r[o].x+1,top:r[o].y+1,originX:"center",originY:"center",fill:this.color});t.push(c)}this.optimizeOverlapping&&(t=this._getOptimizedRects(t));var l=new n.Group(t);this.shadow&&l.set("shadow",new n.Shadow(this.shadow)),this.canvas.fire("before:path:created",{path:l}),this.canvas.add(l),this.canvas.fire("path:created",{path:l}),this.canvas.clearContext(this.canvas.contextTop),this._resetShadow(),this.canvas.renderOnAddRemove=e,this.canvas.requestRenderAll()},_getOptimizedRects:function(e){var t,i,s,n={};for(i=0,s=e.length;i<s;i++)n[t=e[i].left+""+e[i].top]||(n[t]=e[i]);var r=[];for(t in n)r.push(n[t]);return r},render:function(e){var t,i,s=this.canvas.contextTop;for(s.fillStyle=this.color,this._saveAndTransform(s),t=0,i=e.length;t<i;t++){var n=e[t];"undefined"!==typeof n.opacity&&(s.globalAlpha=n.opacity),s.fillRect(n.x,n.y,n.width,n.width)}s.restore()},_render:function(){var e,t,i=this.canvas.contextTop;for(i.fillStyle=this.color,this._saveAndTransform(i),e=0,t=this.sprayChunks.length;e<t;e++)this.render(this.sprayChunks[e]);i.restore()},addSprayChunk:function(e){this.sprayChunkPoints=[];var t,i,s,r,o=this.width/2;for(r=0;r<this.density;r++){t=n.util.getRandomInt(e.x-o,e.x+o),i=n.util.getRandomInt(e.y-o,e.y+o),s=this.dotWidthVariance?n.util.getRandomInt(Math.max(1,this.dotWidth-this.dotWidthVariance),this.dotWidth+this.dotWidthVariance):this.dotWidth;var a=new n.Point(t,i);a.width=s,this.randomOpacity&&(a.opacity=n.util.getRandomInt(0,100)/100),this.sprayChunkPoints.push(a)}this.sprayChunks.push(this.sprayChunkPoints)}}),n.PatternBrush=n.util.createClass(n.PencilBrush,{getPatternSrc:function(){var e=n.util.createCanvasElement(),t=e.getContext("2d");return e.width=e.height=25,t.fillStyle=this.color,t.beginPath(),t.arc(10,10,10,0,2*Math.PI,!1),t.closePath(),t.fill(),e},getPatternSrcFunction:function(){return String(this.getPatternSrc).replace("this.color",'"'+this.color+'"')},getPattern:function(e){return e.createPattern(this.source||this.getPatternSrc(),"repeat")},_setBrushStyles:function(e){this.callSuper("_setBrushStyles",e),e.strokeStyle=this.getPattern(e)},createPath:function(e){var t=this.callSuper("createPath",e),i=t._getLeftTopCoords().scalarAdd(t.strokeWidth/2);return t.stroke=new n.Pattern({source:this.source||this.getPatternSrcFunction(),offsetX:-i.x,offsetY:-i.y}),t}}),function(){var e=n.util.getPointer,t=n.util.degreesToRadians,i=n.util.isTouchEvent;for(var s in n.Canvas=n.util.createClass(n.StaticCanvas,{initialize:function(e,t){t||(t={}),this.renderAndResetBound=this.renderAndReset.bind(this),this.requestRenderAllBound=this.requestRenderAll.bind(this),this._initStatic(e,t),this._initInteractive(),this._createCacheCanvas()},uniformScaling:!0,uniScaleKey:"shiftKey",centeredScaling:!1,centeredRotation:!1,centeredKey:"altKey",altActionKey:"shiftKey",interactive:!0,selection:!0,selectionKey:"shiftKey",altSelectionKey:null,selectionColor:"rgba(100, 100, 255, 0.3)",selectionDashArray:[],selectionBorderColor:"rgba(255, 255, 255, 0.3)",selectionLineWidth:1,selectionFullyContained:!1,hoverCursor:"move",moveCursor:"move",defaultCursor:"default",freeDrawingCursor:"crosshair",notAllowedCursor:"not-allowed",containerClass:"canvas-container",perPixelTargetFind:!1,targetFindTolerance:0,skipTargetFind:!1,isDrawingMode:!1,preserveObjectStacking:!1,snapAngle:0,snapThreshold:null,stopContextMenu:!1,fireRightClick:!1,fireMiddleClick:!1,targets:[],enablePointerEvents:!1,_hoveredTarget:null,_hoveredTargets:[],_initInteractive:function(){this._currentTransform=null,this._groupSelector=null,this._initWrapperElement(),this._createUpperCanvas(),this._initEventListeners(),this._initRetinaScaling(),this.freeDrawingBrush=n.PencilBrush&&new n.PencilBrush(this),this.calcOffset()},_chooseObjectsToRender:function(){var e,t,i,s=this.getActiveObjects();if(s.length>0&&!this.preserveObjectStacking){t=[],i=[];for(var n=0,r=this._objects.length;n<r;n++)e=this._objects[n],-1===s.indexOf(e)?t.push(e):i.push(e);s.length>1&&(this._activeObject._objects=i),t.push.apply(t,i)}else t=this._objects;return t},renderAll:function(){!this.contextTopDirty||this._groupSelector||this.isDrawingMode||(this.clearContext(this.contextTop),this.contextTopDirty=!1),this.hasLostContext&&(this.renderTopLayer(this.contextTop),this.hasLostContext=!1);var e=this.contextContainer;return this.renderCanvas(e,this._chooseObjectsToRender()),this},renderTopLayer:function(e){e.save(),this.isDrawingMode&&this._isCurrentlyDrawing&&(this.freeDrawingBrush&&this.freeDrawingBrush._render(),this.contextTopDirty=!0),this.selection&&this._groupSelector&&(this._drawSelection(e),this.contextTopDirty=!0),e.restore()},renderTop:function(){var e=this.contextTop;return this.clearContext(e),this.renderTopLayer(e),this.fire("after:render"),this},_normalizePointer:function(e,t){var i=e.calcTransformMatrix(),s=n.util.invertTransform(i),r=this.restorePointerVpt(t);return n.util.transformPoint(r,s)},isTargetTransparent:function(e,t,i){if(e.shouldCache()&&e._cacheCanvas&&e!==this._activeObject){var s=this._normalizePointer(e,{x:t,y:i}),r=Math.max(e.cacheTranslationX+s.x*e.zoomX,0),o=Math.max(e.cacheTranslationY+s.y*e.zoomY,0);return n.util.isTransparent(e._cacheContext,Math.round(r),Math.round(o),this.targetFindTolerance)}var a=this.contextCache,c=e.selectionBackgroundColor,l=this.viewportTransform;return e.selectionBackgroundColor="",this.clearContext(a),a.save(),a.transform(l[0],l[1],l[2],l[3],l[4],l[5]),e.render(a),a.restore(),e.selectionBackgroundColor=c,n.util.isTransparent(a,t,i,this.targetFindTolerance)},_isSelectionKeyPressed:function(e){return Array.isArray(this.selectionKey)?!!this.selectionKey.find((function(t){return!0===e[t]})):e[this.selectionKey]},_shouldClearSelection:function(e,t){var i=this.getActiveObjects(),s=this._activeObject;return!t||t&&s&&i.length>1&&-1===i.indexOf(t)&&s!==t&&!this._isSelectionKeyPressed(e)||t&&!t.evented||t&&!t.selectable&&s&&s!==t},_shouldCenterTransform:function(e,t,i){var s;if(e)return"scale"===t||"scaleX"===t||"scaleY"===t||"resizing"===t?s=this.centeredScaling||e.centeredScaling:"rotate"===t&&(s=this.centeredRotation||e.centeredRotation),s?!i:i},_getOriginFromCorner:function(e,t){var i={x:e.originX,y:e.originY};return"ml"===t||"tl"===t||"bl"===t?i.x="right":"mr"!==t&&"tr"!==t&&"br"!==t||(i.x="left"),"tl"===t||"mt"===t||"tr"===t?i.y="bottom":"bl"!==t&&"mb"!==t&&"br"!==t||(i.y="top"),i},_getActionFromCorner:function(e,t,i,s){if(!t||!e)return"drag";var n=s.controls[t];return n.getActionName(i,n,s)},_setupCurrentTransform:function(e,i,s){if(i){var r=this.getPointer(e),o=i.__corner,a=i.controls[o],c=s&&o?a.getActionHandler(e,i,a):n.controlsUtils.dragHandler,l=this._getActionFromCorner(s,o,e,i),h=this._getOriginFromCorner(i,o),d=e[this.centeredKey],u={target:i,action:l,actionHandler:c,corner:o,scaleX:i.scaleX,scaleY:i.scaleY,skewX:i.skewX,skewY:i.skewY,offsetX:r.x-i.left,offsetY:r.y-i.top,originX:h.x,originY:h.y,ex:r.x,ey:r.y,lastX:r.x,lastY:r.y,theta:t(i.angle),width:i.width*i.scaleX,shiftKey:e.shiftKey,altKey:d,original:n.util.saveObjectTransform(i)};this._shouldCenterTransform(i,l,d)&&(u.originX="center",u.originY="center"),u.original.originX=h.x,u.original.originY=h.y,this._currentTransform=u,this._beforeTransform(e)}},setCursor:function(e){this.upperCanvasEl.style.cursor=e},_drawSelection:function(e){var t=this._groupSelector,i=new n.Point(t.ex,t.ey),s=n.util.transformPoint(i,this.viewportTransform),r=new n.Point(t.ex+t.left,t.ey+t.top),o=n.util.transformPoint(r,this.viewportTransform),a=Math.min(s.x,o.x),c=Math.min(s.y,o.y),l=Math.max(s.x,o.x),h=Math.max(s.y,o.y),d=this.selectionLineWidth/2;this.selectionColor&&(e.fillStyle=this.selectionColor,e.fillRect(a,c,l-a,h-c)),this.selectionLineWidth&&this.selectionBorderColor&&(e.lineWidth=this.selectionLineWidth,e.strokeStyle=this.selectionBorderColor,a+=d,c+=d,l-=d,h-=d,n.Object.prototype._setLineDash.call(this,e,this.selectionDashArray),e.strokeRect(a,c,l-a,h-c))},findTarget:function(e,t){if(!this.skipTargetFind){var s,n,r=this.getPointer(e,!0),o=this._activeObject,a=this.getActiveObjects(),c=i(e),l=a.length>1&&!t||1===a.length;if(this.targets=[],l&&o._findTargetCorner(r,c))return o;if(a.length>1&&!t&&o===this._searchPossibleTargets([o],r))return o;if(1===a.length&&o===this._searchPossibleTargets([o],r)){if(!this.preserveObjectStacking)return o;s=o,n=this.targets,this.targets=[]}var h=this._searchPossibleTargets(this._objects,r);return e[this.altSelectionKey]&&h&&s&&h!==s&&(h=s,this.targets=n),h}},_checkTarget:function(e,t,i){if(t&&t.visible&&t.evented&&t.containsPoint(e)){if(!this.perPixelTargetFind&&!t.perPixelTargetFind||t.isEditing)return!0;if(!this.isTargetTransparent(t,i.x,i.y))return!0}},_searchPossibleTargets:function(e,t){for(var i,s,r=e.length;r--;){var o=e[r],a=o.group?this._normalizePointer(o.group,t):t;if(this._checkTarget(a,o,t)){(i=e[r]).subTargetCheck&&i instanceof n.Group&&(s=this._searchPossibleTargets(i._objects,t))&&this.targets.push(s);break}}return i},restorePointerVpt:function(e){return n.util.transformPoint(e,n.util.invertTransform(this.viewportTransform))},getPointer:function(t,i){if(this._absolutePointer&&!i)return this._absolutePointer;if(this._pointer&&i)return this._pointer;var s,n=e(t),r=this.upperCanvasEl,o=r.getBoundingClientRect(),a=o.width||0,c=o.height||0;a&&c||("top"in o&&"bottom"in o&&(c=Math.abs(o.top-o.bottom)),"right"in o&&"left"in o&&(a=Math.abs(o.right-o.left))),this.calcOffset(),n.x=n.x-this._offset.left,n.y=n.y-this._offset.top,i||(n=this.restorePointerVpt(n));var l=this.getRetinaScaling();return 1!==l&&(n.x/=l,n.y/=l),s=0===a||0===c?{width:1,height:1}:{width:r.width/a,height:r.height/c},{x:n.x*s.width,y:n.y*s.height}},_createUpperCanvas:function(){var e=this.lowerCanvasEl.className.replace(/\s*lower-canvas\s*/,""),t=this.lowerCanvasEl,i=this.upperCanvasEl;i?i.className="":(i=this._createCanvasElement(),this.upperCanvasEl=i),n.util.addClass(i,"upper-canvas "+e),this.wrapperEl.appendChild(i),this._copyCanvasStyle(t,i),this._applyCanvasStyle(i),this.contextTop=i.getContext("2d")},getTopContext:function(){return this.contextTop},_createCacheCanvas:function(){this.cacheCanvasEl=this._createCanvasElement(),this.cacheCanvasEl.setAttribute("width",this.width),this.cacheCanvasEl.setAttribute("height",this.height),this.contextCache=this.cacheCanvasEl.getContext("2d")},_initWrapperElement:function(){this.wrapperEl=n.util.wrapElement(this.lowerCanvasEl,"div",{class:this.containerClass}),n.util.setStyle(this.wrapperEl,{width:this.width+"px",height:this.height+"px",position:"relative"}),n.util.makeElementUnselectable(this.wrapperEl)},_applyCanvasStyle:function(e){var t=this.width||e.width,i=this.height||e.height;n.util.setStyle(e,{position:"absolute",width:t+"px",height:i+"px",left:0,top:0,"touch-action":this.allowTouchScrolling?"manipulation":"none","-ms-touch-action":this.allowTouchScrolling?"manipulation":"none"}),e.width=t,e.height=i,n.util.makeElementUnselectable(e)},_copyCanvasStyle:function(e,t){t.style.cssText=e.style.cssText},getSelectionContext:function(){return this.contextTop},getSelectionElement:function(){return this.upperCanvasEl},getActiveObject:function(){return this._activeObject},getActiveObjects:function(){var e=this._activeObject;return e?"activeSelection"===e.type&&e._objects?e._objects.slice(0):[e]:[]},_onObjectRemoved:function(e){e===this._activeObject&&(this.fire("before:selection:cleared",{target:e}),this._discardActiveObject(),this.fire("selection:cleared",{target:e}),e.fire("deselected")),e===this._hoveredTarget&&(this._hoveredTarget=null,this._hoveredTargets=[]),this.callSuper("_onObjectRemoved",e)},_fireSelectionEvents:function(e,t){var i=!1,s=this.getActiveObjects(),n=[],r=[];e.forEach((function(e){-1===s.indexOf(e)&&(i=!0,e.fire("deselected",{e:t,target:e}),r.push(e))})),s.forEach((function(s){-1===e.indexOf(s)&&(i=!0,s.fire("selected",{e:t,target:s}),n.push(s))})),e.length>0&&s.length>0?i&&this.fire("selection:updated",{e:t,selected:n,deselected:r}):s.length>0?this.fire("selection:created",{e:t,selected:n}):e.length>0&&this.fire("selection:cleared",{e:t,deselected:r})},setActiveObject:function(e,t){var i=this.getActiveObjects();return this._setActiveObject(e,t),this._fireSelectionEvents(i,t),this},_setActiveObject:function(e,t){return this._activeObject!==e&&(!!this._discardActiveObject(t,e)&&(!e.onSelect({e:t})&&(this._activeObject=e,!0)))},_discardActiveObject:function(e,t){var i=this._activeObject;if(i){if(i.onDeselect({e:e,object:t}))return!1;this._activeObject=null}return!0},discardActiveObject:function(e){var t=this.getActiveObjects(),i=this.getActiveObject();return t.length&&this.fire("before:selection:cleared",{target:i,e:e}),this._discardActiveObject(e),this._fireSelectionEvents(t,e),this},dispose:function(){var e=this.wrapperEl;return this.removeListeners(),e.removeChild(this.upperCanvasEl),e.removeChild(this.lowerCanvasEl),this.contextCache=null,this.contextTop=null,["upperCanvasEl","cacheCanvasEl"].forEach(function(e){n.util.cleanUpJsdomNode(this[e]),this[e]=void 0}.bind(this)),e.parentNode&&e.parentNode.replaceChild(this.lowerCanvasEl,this.wrapperEl),delete this.wrapperEl,n.StaticCanvas.prototype.dispose.call(this),this},clear:function(){return this.discardActiveObject(),this.clearContext(this.contextTop),this.callSuper("clear")},drawControls:function(e){var t=this._activeObject;t&&t._renderControls(e)},_toObject:function(e,t,i){var s=this._realizeGroupTransformOnObject(e),n=this.callSuper("_toObject",e,t,i);return this._unwindGroupTransformOnObject(e,s),n},_realizeGroupTransformOnObject:function(e){if(e.group&&"activeSelection"===e.group.type&&this._activeObject===e.group){var t={};return["angle","flipX","flipY","left","scaleX","scaleY","skewX","skewY","top"].forEach((function(i){t[i]=e[i]})),n.util.addTransformToObject(e,this._activeObject.calcOwnMatrix()),t}return null},_unwindGroupTransformOnObject:function(e,t){t&&e.set(t)},_setSVGObject:function(e,t,i){var s=this._realizeGroupTransformOnObject(t);this.callSuper("_setSVGObject",e,t,i),this._unwindGroupTransformOnObject(t,s)},setViewportTransform:function(e){this.renderOnAddRemove&&this._activeObject&&this._activeObject.isEditing&&this._activeObject.clearContextTop(),n.StaticCanvas.prototype.setViewportTransform.call(this,e)}}),n.StaticCanvas)"prototype"!==s&&(n.Canvas[s]=n.StaticCanvas[s])}(),function(){var e=n.util.addListener,t=n.util.removeListener,i={passive:!1};function s(e,t){return e.button&&e.button===t-1}n.util.object.extend(n.Canvas.prototype,{mainTouchId:null,_initEventListeners:function(){this.removeListeners(),this._bindEvents(),this.addOrRemove(e,"add")},_getEventPrefix:function(){return this.enablePointerEvents?"pointer":"mouse"},addOrRemove:function(e,t){var s=this.upperCanvasEl,r=this._getEventPrefix();e(n.window,"resize",this._onResize),e(s,r+"down",this._onMouseDown),e(s,r+"move",this._onMouseMove,i),e(s,r+"out",this._onMouseOut),e(s,r+"enter",this._onMouseEnter),e(s,"wheel",this._onMouseWheel),e(s,"contextmenu",this._onContextMenu),e(s,"dblclick",this._onDoubleClick),e(s,"dragover",this._onDragOver),e(s,"dragenter",this._onDragEnter),e(s,"dragleave",this._onDragLeave),e(s,"drop",this._onDrop),this.enablePointerEvents||e(s,"touchstart",this._onTouchStart,i),"undefined"!==typeof eventjs&&t in eventjs&&(eventjs[t](s,"gesture",this._onGesture),eventjs[t](s,"drag",this._onDrag),eventjs[t](s,"orientation",this._onOrientationChange),eventjs[t](s,"shake",this._onShake),eventjs[t](s,"longpress",this._onLongPress))},removeListeners:function(){this.addOrRemove(t,"remove");var e=this._getEventPrefix();t(n.document,e+"up",this._onMouseUp),t(n.document,"touchend",this._onTouchEnd,i),t(n.document,e+"move",this._onMouseMove,i),t(n.document,"touchmove",this._onMouseMove,i)},_bindEvents:function(){this.eventsBound||(this._onMouseDown=this._onMouseDown.bind(this),this._onTouchStart=this._onTouchStart.bind(this),this._onMouseMove=this._onMouseMove.bind(this),this._onMouseUp=this._onMouseUp.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onResize=this._onResize.bind(this),this._onGesture=this._onGesture.bind(this),this._onDrag=this._onDrag.bind(this),this._onShake=this._onShake.bind(this),this._onLongPress=this._onLongPress.bind(this),this._onOrientationChange=this._onOrientationChange.bind(this),this._onMouseWheel=this._onMouseWheel.bind(this),this._onMouseOut=this._onMouseOut.bind(this),this._onMouseEnter=this._onMouseEnter.bind(this),this._onContextMenu=this._onContextMenu.bind(this),this._onDoubleClick=this._onDoubleClick.bind(this),this._onDragOver=this._onDragOver.bind(this),this._onDragEnter=this._simpleEventHandler.bind(this,"dragenter"),this._onDragLeave=this._simpleEventHandler.bind(this,"dragleave"),this._onDrop=this._onDrop.bind(this),this.eventsBound=!0)},_onGesture:function(e,t){this.__onTransformGesture&&this.__onTransformGesture(e,t)},_onDrag:function(e,t){this.__onDrag&&this.__onDrag(e,t)},_onMouseWheel:function(e){this.__onMouseWheel(e)},_onMouseOut:function(e){var t=this._hoveredTarget;this.fire("mouse:out",{target:t,e:e}),this._hoveredTarget=null,t&&t.fire("mouseout",{e:e});var i=this;this._hoveredTargets.forEach((function(t){i.fire("mouse:out",{target:t,e:e}),t&&t.fire("mouseout",{e:e})})),this._hoveredTargets=[]},_onMouseEnter:function(e){this._currentTransform||this.findTarget(e)||(this.fire("mouse:over",{target:null,e:e}),this._hoveredTarget=null,this._hoveredTargets=[])},_onOrientationChange:function(e,t){this.__onOrientationChange&&this.__onOrientationChange(e,t)},_onShake:function(e,t){this.__onShake&&this.__onShake(e,t)},_onLongPress:function(e,t){this.__onLongPress&&this.__onLongPress(e,t)},_onDragOver:function(e){e.preventDefault();var t=this._simpleEventHandler("dragover",e);this._fireEnterLeaveEvents(t,e)},_onDrop:function(e){return this._simpleEventHandler("drop:before",e),this._simpleEventHandler("drop",e)},_onContextMenu:function(e){return this.stopContextMenu&&(e.stopPropagation(),e.preventDefault()),!1},_onDoubleClick:function(e){this._cacheTransformEventData(e),this._handleEvent(e,"dblclick"),this._resetTransformEventData(e)},getPointerId:function(e){var t=e.changedTouches;return t?t[0]&&t[0].identifier:this.enablePointerEvents?e.pointerId:-1},_isMainEvent:function(e){return!0===e.isPrimary||!1!==e.isPrimary&&("touchend"===e.type&&0===e.touches.length||(!e.changedTouches||e.changedTouches[0].identifier===this.mainTouchId))},_onTouchStart:function(s){s.preventDefault(),null===this.mainTouchId&&(this.mainTouchId=this.getPointerId(s)),this.__onMouseDown(s),this._resetTransformEventData();var r=this.upperCanvasEl,o=this._getEventPrefix();e(n.document,"touchend",this._onTouchEnd,i),e(n.document,"touchmove",this._onMouseMove,i),t(r,o+"down",this._onMouseDown)},_onMouseDown:function(s){this.__onMouseDown(s),this._resetTransformEventData();var r=this.upperCanvasEl,o=this._getEventPrefix();t(r,o+"move",this._onMouseMove,i),e(n.document,o+"up",this._onMouseUp),e(n.document,o+"move",this._onMouseMove,i)},_onTouchEnd:function(s){if(!(s.touches.length>0)){this.__onMouseUp(s),this._resetTransformEventData(),this.mainTouchId=null;var r=this._getEventPrefix();t(n.document,"touchend",this._onTouchEnd,i),t(n.document,"touchmove",this._onMouseMove,i);var o=this;this._willAddMouseDown&&clearTimeout(this._willAddMouseDown),this._willAddMouseDown=setTimeout((function(){e(o.upperCanvasEl,r+"down",o._onMouseDown),o._willAddMouseDown=0}),400)}},_onMouseUp:function(s){this.__onMouseUp(s),this._resetTransformEventData();var r=this.upperCanvasEl,o=this._getEventPrefix();this._isMainEvent(s)&&(t(n.document,o+"up",this._onMouseUp),t(n.document,o+"move",this._onMouseMove,i),e(r,o+"move",this._onMouseMove,i))},_onMouseMove:function(e){!this.allowTouchScrolling&&e.preventDefault&&e.preventDefault(),this.__onMouseMove(e)},_onResize:function(){this.calcOffset()},_shouldRender:function(e){var t=this._activeObject;return!!(!!t!==!!e||t&&e&&t!==e)||(t&&t.isEditing,!1)},__onMouseUp:function(e){var t,i=this._currentTransform,r=this._groupSelector,o=!1,a=!r||0===r.left&&0===r.top;if(this._cacheTransformEventData(e),t=this._target,this._handleEvent(e,"up:before"),s(e,3))this.fireRightClick&&this._handleEvent(e,"up",3,a);else{if(s(e,2))return this.fireMiddleClick&&this._handleEvent(e,"up",2,a),void this._resetTransformEventData();if(this.isDrawingMode&&this._isCurrentlyDrawing)this._onMouseUpInDrawingMode(e);else if(this._isMainEvent(e)){if(i&&(this._finalizeCurrentTransform(e),o=i.actionPerformed),!a){var c=t===this._activeObject;this._maybeGroupObjects(e),o||(o=this._shouldRender(t)||!c&&t===this._activeObject)}var l,h;if(t){if(l=t._findTargetCorner(this.getPointer(e,!0),n.util.isTouchEvent(e)),t.selectable&&t!==this._activeObject&&"up"===t.activeOn)this.setActiveObject(t,e),o=!0;else{var d=t.controls[l],u=d&&d.getMouseUpHandler(e,t,d);u&&u(e,i,(h=this.getPointer(e)).x,h.y)}t.isMoving=!1}if(i&&(i.target!==t||i.corner!==l)){var g=i.target&&i.target.controls[i.corner],p=g&&g.getMouseUpHandler(e,t,d);h=h||this.getPointer(e),p&&p(e,i,h.x,h.y)}this._setCursorFromEvent(e,t),this._handleEvent(e,"up",1,a),this._groupSelector=null,this._currentTransform=null,t&&(t.__corner=0),o?this.requestRenderAll():a||this.renderTop()}}},_simpleEventHandler:function(e,t){var i=this.findTarget(t),s=this.targets,n={e:t,target:i,subTargets:s};if(this.fire(e,n),i&&i.fire(e,n),!s)return i;for(var r=0;r<s.length;r++)s[r].fire(e,n);return i},_handleEvent:function(e,t,i,s){var n=this._target,r=this.targets||[],o={e:e,target:n,subTargets:r,button:i||1,isClick:s||!1,pointer:this._pointer,absolutePointer:this._absolutePointer,transform:this._currentTransform};"up"===t&&(o.currentTarget=this.findTarget(e),o.currentSubTargets=this.targets),this.fire("mouse:"+t,o),n&&n.fire("mouse"+t,o);for(var a=0;a<r.length;a++)r[a].fire("mouse"+t,o)},_finalizeCurrentTransform:function(e){var t=this._currentTransform,i=t.target,s={e:e,target:i,transform:t,action:t.action};i._scaling&&(i._scaling=!1),i.setCoords(),(t.actionPerformed||this.stateful&&i.hasStateChanged())&&this._fire("modified",s)},_onMouseDownInDrawingMode:function(e){this._isCurrentlyDrawing=!0,this.getActiveObject()&&this.discardActiveObject(e).requestRenderAll();var t=this.getPointer(e);this.freeDrawingBrush.onMouseDown(t,{e:e,pointer:t}),this._handleEvent(e,"down")},_onMouseMoveInDrawingMode:function(e){if(this._isCurrentlyDrawing){var t=this.getPointer(e);this.freeDrawingBrush.onMouseMove(t,{e:e,pointer:t})}this.setCursor(this.freeDrawingCursor),this._handleEvent(e,"move")},_onMouseUpInDrawingMode:function(e){var t=this.getPointer(e);this._isCurrentlyDrawing=this.freeDrawingBrush.onMouseUp({e:e,pointer:t}),this._handleEvent(e,"up")},__onMouseDown:function(e){this._cacheTransformEventData(e),this._handleEvent(e,"down:before");var t=this._target;if(s(e,3))this.fireRightClick&&this._handleEvent(e,"down",3);else if(s(e,2))this.fireMiddleClick&&this._handleEvent(e,"down",2);else if(this.isDrawingMode)this._onMouseDownInDrawingMode(e);else if(this._isMainEvent(e)&&!this._currentTransform){var i=this._pointer;this._previousPointer=i;var r=this._shouldRender(t),o=this._shouldGroup(e,t);if(this._shouldClearSelection(e,t)?this.discardActiveObject(e):o&&(this._handleGrouping(e,t),t=this._activeObject),!this.selection||t&&(t.selectable||t.isEditing||t===this._activeObject)||(this._groupSelector={ex:this._absolutePointer.x,ey:this._absolutePointer.y,top:0,left:0}),t){var a=t===this._activeObject;t.selectable&&"down"===t.activeOn&&this.setActiveObject(t,e);var c=t._findTargetCorner(this.getPointer(e,!0),n.util.isTouchEvent(e));if(t.__corner=c,t===this._activeObject&&(c||!o)){this._setupCurrentTransform(e,t,a);var l=t.controls[c],h=(i=this.getPointer(e),l&&l.getMouseDownHandler(e,t,l));h&&h(e,this._currentTransform,i.x,i.y)}}this._handleEvent(e,"down"),(r||o)&&this.requestRenderAll()}},_resetTransformEventData:function(){this._target=null,this._pointer=null,this._absolutePointer=null},_cacheTransformEventData:function(e){this._resetTransformEventData(),this._pointer=this.getPointer(e,!0),this._absolutePointer=this.restorePointerVpt(this._pointer),this._target=this._currentTransform?this._currentTransform.target:this.findTarget(e)||null},_beforeTransform:function(e){var t=this._currentTransform;this.stateful&&t.target.saveState(),this.fire("before:transform",{e:e,transform:t})},__onMouseMove:function(e){var t,i;if(this._handleEvent(e,"move:before"),this._cacheTransformEventData(e),this.isDrawingMode)this._onMouseMoveInDrawingMode(e);else if(this._isMainEvent(e)){var s=this._groupSelector;s?(i=this._absolutePointer,s.left=i.x-s.ex,s.top=i.y-s.ey,this.renderTop()):this._currentTransform?this._transformObject(e):(t=this.findTarget(e)||null,this._setCursorFromEvent(e,t),this._fireOverOutEvents(t,e)),this._handleEvent(e,"move"),this._resetTransformEventData()}},_fireOverOutEvents:function(e,t){var i=this._hoveredTarget,s=this._hoveredTargets,n=this.targets,r=Math.max(s.length,n.length);this.fireSyntheticInOutEvents(e,t,{oldTarget:i,evtOut:"mouseout",canvasEvtOut:"mouse:out",evtIn:"mouseover",canvasEvtIn:"mouse:over"});for(var o=0;o<r;o++)this.fireSyntheticInOutEvents(n[o],t,{oldTarget:s[o],evtOut:"mouseout",evtIn:"mouseover"});this._hoveredTarget=e,this._hoveredTargets=this.targets.concat()},_fireEnterLeaveEvents:function(e,t){var i=this._draggedoverTarget,s=this._hoveredTargets,n=this.targets,r=Math.max(s.length,n.length);this.fireSyntheticInOutEvents(e,t,{oldTarget:i,evtOut:"dragleave",evtIn:"dragenter"});for(var o=0;o<r;o++)this.fireSyntheticInOutEvents(n[o],t,{oldTarget:s[o],evtOut:"dragleave",evtIn:"dragenter"});this._draggedoverTarget=e},fireSyntheticInOutEvents:function(e,t,i){var s,n,r,o=i.oldTarget,a=o!==e,c=i.canvasEvtIn,l=i.canvasEvtOut;a&&(s={e:t,target:e,previousTarget:o},n={e:t,target:o,nextTarget:e}),r=e&&a,o&&a&&(l&&this.fire(l,n),o.fire(i.evtOut,n)),r&&(c&&this.fire(c,s),e.fire(i.evtIn,s))},__onMouseWheel:function(e){this._cacheTransformEventData(e),this._handleEvent(e,"wheel"),this._resetTransformEventData()},_transformObject:function(e){var t=this.getPointer(e),i=this._currentTransform;i.reset=!1,i.shiftKey=e.shiftKey,i.altKey=e[this.centeredKey],this._performTransformAction(e,i,t),i.actionPerformed&&this.requestRenderAll()},_performTransformAction:function(e,t,i){var s=i.x,n=i.y,r=t.action,o=!1,a=t.actionHandler;a&&(o=a(e,t,s,n)),"drag"===r&&o&&(t.target.isMoving=!0,this.setCursor(t.target.moveCursor||this.moveCursor)),t.actionPerformed=t.actionPerformed||o},_fire:n.controlsUtils.fireEvent,_setCursorFromEvent:function(e,t){if(!t)return this.setCursor(this.defaultCursor),!1;var i=t.hoverCursor||this.hoverCursor,s=this._activeObject&&"activeSelection"===this._activeObject.type?this._activeObject:null,n=(!s||!s.contains(t))&&t._findTargetCorner(this.getPointer(e,!0));n?this.setCursor(this.getCornerCursor(n,t,e)):(t.subTargetCheck&&this.targets.concat().reverse().map((function(e){i=e.hoverCursor||i})),this.setCursor(i))},getCornerCursor:function(e,t,i){var s=t.controls[e];return s.cursorStyleHandler(i,s,t)}})}(),function(){var e=Math.min,t=Math.max;n.util.object.extend(n.Canvas.prototype,{_shouldGroup:function(e,t){var i=this._activeObject;return i&&this._isSelectionKeyPressed(e)&&t&&t.selectable&&this.selection&&(i!==t||"activeSelection"===i.type)&&!t.onSelect({e:e})},_handleGrouping:function(e,t){var i=this._activeObject;i.__corner||(t!==i||(t=this.findTarget(e,!0))&&t.selectable)&&(i&&"activeSelection"===i.type?this._updateActiveSelection(t,e):this._createActiveSelection(t,e))},_updateActiveSelection:function(e,t){var i=this._activeObject,s=i._objects.slice(0);i.contains(e)?(i.removeWithUpdate(e),this._hoveredTarget=e,this._hoveredTargets=this.targets.concat(),1===i.size()&&this._setActiveObject(i.item(0),t)):(i.addWithUpdate(e),this._hoveredTarget=i,this._hoveredTargets=this.targets.concat()),this._fireSelectionEvents(s,t)},_createActiveSelection:function(e,t){var i=this.getActiveObjects(),s=this._createGroup(e);this._hoveredTarget=s,this._setActiveObject(s,t),this._fireSelectionEvents(i,t)},_createGroup:function(e){var t=this._objects,i=t.indexOf(this._activeObject)<t.indexOf(e)?[this._activeObject,e]:[e,this._activeObject];return this._activeObject.isEditing&&this._activeObject.exitEditing(),new n.ActiveSelection(i,{canvas:this})},_groupSelectedObjects:function(e){var t,i=this._collectObjects(e);1===i.length?this.setActiveObject(i[0],e):i.length>1&&(t=new n.ActiveSelection(i.reverse(),{canvas:this}),this.setActiveObject(t,e))},_collectObjects:function(i){for(var s,r=[],o=this._groupSelector.ex,a=this._groupSelector.ey,c=o+this._groupSelector.left,l=a+this._groupSelector.top,h=new n.Point(e(o,c),e(a,l)),d=new n.Point(t(o,c),t(a,l)),u=!this.selectionFullyContained,g=o===c&&a===l,p=this._objects.length;p--&&!((s=this._objects[p])&&s.selectable&&s.visible&&(u&&s.intersectsWithRect(h,d,!0)||s.isContainedWithinRect(h,d,!0)||u&&s.containsPoint(h,null,!0)||u&&s.containsPoint(d,null,!0))&&(r.push(s),g)););return r.length>1&&(r=r.filter((function(e){return!e.onSelect({e:i})}))),r},_maybeGroupObjects:function(e){this.selection&&this._groupSelector&&this._groupSelectedObjects(e),this.setCursor(this.defaultCursor),this._groupSelector=null}})}(),n.util.object.extend(n.StaticCanvas.prototype,{toDataURL:function(e){e||(e={});var t=e.format||"png",i=e.quality||1,s=(e.multiplier||1)*(e.enableRetinaScaling?this.getRetinaScaling():1),r=this.toCanvasElement(s,e);return n.util.toDataURL(r,t,i)},toCanvasElement:function(e,t){e=e||1;var i=((t=t||{}).width||this.width)*e,s=(t.height||this.height)*e,r=this.getZoom(),o=this.width,a=this.height,c=r*e,l=this.viewportTransform,h=(l[4]-(t.left||0))*e,d=(l[5]-(t.top||0))*e,u=this.interactive,g=[c,0,0,c,h,d],p=this.enableRetinaScaling,m=n.util.createCanvasElement(),f=this.contextTop;return m.width=i,m.height=s,this.contextTop=null,this.enableRetinaScaling=!1,this.interactive=!1,this.viewportTransform=g,this.width=i,this.height=s,this.calcViewportBoundaries(),this.renderCanvas(m.getContext("2d"),this._objects),this.viewportTransform=l,this.width=o,this.height=a,this.calcViewportBoundaries(),this.interactive=u,this.enableRetinaScaling=p,this.contextTop=f,m}}),n.util.object.extend(n.StaticCanvas.prototype,{loadFromJSON:function(e,t,i){if(e){var s="string"===typeof e?JSON.parse(e):n.util.object.clone(e),r=this,o=s.clipPath,a=this.renderOnAddRemove;return this.renderOnAddRemove=!1,delete s.clipPath,this._enlivenObjects(s.objects,(function(e){r.clear(),r._setBgOverlay(s,(function(){o?r._enlivenObjects([o],(function(i){r.clipPath=i[0],r.__setupCanvas.call(r,s,e,a,t)})):r.__setupCanvas.call(r,s,e,a,t)}))}),i),this}},__setupCanvas:function(e,t,i,s){var n=this;t.forEach((function(e,t){n.insertAt(e,t)})),this.renderOnAddRemove=i,delete e.objects,delete e.backgroundImage,delete e.overlayImage,delete e.background,delete e.overlay,this._setOptions(e),this.renderAll(),s&&s()},_setBgOverlay:function(e,t){var i={backgroundColor:!1,overlayColor:!1,backgroundImage:!1,overlayImage:!1};if(e.backgroundImage||e.overlayImage||e.background||e.overlay){var s=function(){i.backgroundImage&&i.overlayImage&&i.backgroundColor&&i.overlayColor&&t&&t()};this.__setBgOverlay("backgroundImage",e.backgroundImage,i,s),this.__setBgOverlay("overlayImage",e.overlayImage,i,s),this.__setBgOverlay("backgroundColor",e.background,i,s),this.__setBgOverlay("overlayColor",e.overlay,i,s)}else t&&t()},__setBgOverlay:function(e,t,i,s){var r=this;if(!t)return i[e]=!0,void(s&&s());"backgroundImage"===e||"overlayImage"===e?n.util.enlivenObjects([t],(function(t){r[e]=t[0],i[e]=!0,s&&s()})):this["set"+n.util.string.capitalize(e,!0)](t,(function(){i[e]=!0,s&&s()}))},_enlivenObjects:function(e,t,i){e&&0!==e.length?n.util.enlivenObjects(e,(function(e){t&&t(e)}),null,i):t&&t([])},_toDataURL:function(e,t){this.clone((function(i){t(i.toDataURL(e))}))},_toDataURLWithMultiplier:function(e,t,i){this.clone((function(s){i(s.toDataURLWithMultiplier(e,t))}))},clone:function(e,t){var i=JSON.stringify(this.toJSON(t));this.cloneWithoutData((function(t){t.loadFromJSON(i,(function(){e&&e(t)}))}))},cloneWithoutData:function(e){var t=n.util.createCanvasElement();t.width=this.width,t.height=this.height;var i=new n.Canvas(t);this.backgroundImage?(i.setBackgroundImage(this.backgroundImage.src,(function(){i.renderAll(),e&&e(i)})),i.backgroundImageOpacity=this.backgroundImageOpacity,i.backgroundImageStretch=this.backgroundImageStretch):e&&e(i)}}),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,s=t.util.object.clone,n=t.util.toFixed,r=t.util.string.capitalize,o=t.util.degreesToRadians,a=!t.isLikelyNode;t.Object||(t.Object=t.util.createClass(t.CommonMethods,{type:"object",originX:"left",originY:"top",top:0,left:0,width:0,height:0,scaleX:1,scaleY:1,flipX:!1,flipY:!1,opacity:1,angle:0,skewX:0,skewY:0,cornerSize:13,touchCornerSize:24,transparentCorners:!0,hoverCursor:null,moveCursor:null,padding:0,borderColor:"rgb(178,204,255)",borderDashArray:null,cornerColor:"rgb(178,204,255)",cornerStrokeColor:null,cornerStyle:"rect",cornerDashArray:null,centeredScaling:!1,centeredRotation:!0,fill:"rgb(0,0,0)",fillRule:"nonzero",globalCompositeOperation:"source-over",backgroundColor:"",selectionBackgroundColor:"",stroke:null,strokeWidth:1,strokeDashArray:null,strokeDashOffset:0,strokeLineCap:"butt",strokeLineJoin:"miter",strokeMiterLimit:4,shadow:null,borderOpacityWhenMoving:.4,borderScaleFactor:1,minScaleLimit:0,selectable:!0,evented:!0,visible:!0,hasControls:!0,hasBorders:!0,perPixelTargetFind:!1,includeDefaultValues:!0,lockMovementX:!1,lockMovementY:!1,lockRotation:!1,lockScalingX:!1,lockScalingY:!1,lockSkewingX:!1,lockSkewingY:!1,lockScalingFlip:!1,excludeFromExport:!1,objectCaching:a,statefullCache:!1,noScaleCache:!0,strokeUniform:!1,dirty:!0,__corner:0,paintFirst:"fill",activeOn:"down",stateProperties:"top left width height scaleX scaleY flipX flipY originX originY transformMatrix stroke strokeWidth strokeDashArray strokeLineCap strokeDashOffset strokeLineJoin strokeMiterLimit angle opacity fill globalCompositeOperation shadow visible backgroundColor skewX skewY fillRule paintFirst clipPath strokeUniform".split(" "),cacheProperties:"fill stroke strokeWidth strokeDashArray width height paintFirst strokeUniform strokeLineCap strokeDashOffset strokeLineJoin strokeMiterLimit backgroundColor clipPath".split(" "),colorProperties:"fill stroke backgroundColor".split(" "),clipPath:void 0,inverted:!1,absolutePositioned:!1,initialize:function(e){e&&this.setOptions(e)},_createCacheCanvas:function(){this._cacheProperties={},this._cacheCanvas=t.util.createCanvasElement(),this._cacheContext=this._cacheCanvas.getContext("2d"),this._updateCacheCanvas(),this.dirty=!0},_limitCacheSize:function(e){var i=t.perfLimitSizeTotal,s=e.width,n=e.height,r=t.maxCacheSideLimit,o=t.minCacheSideLimit;if(s<=r&&n<=r&&s*n<=i)return s<o&&(e.width=o),n<o&&(e.height=o),e;var a=s/n,c=t.util.limitDimsByArea(a,i),l=t.util.capValue,h=l(o,c.x,r),d=l(o,c.y,r);return s>h&&(e.zoomX/=s/h,e.width=h,e.capped=!0),n>d&&(e.zoomY/=n/d,e.height=d,e.capped=!0),e},_getCacheCanvasDimensions:function(){var e=this.getTotalObjectScaling(),t=this._getTransformedDimensions(0,0),i=t.x*e.scaleX/this.scaleX,s=t.y*e.scaleY/this.scaleY;return{width:Math.ceil(i+2),height:Math.ceil(s+2),zoomX:e.scaleX,zoomY:e.scaleY,x:i,y:s}},_updateCacheCanvas:function(){var e=this.canvas;if(this.noScaleCache&&e&&e._currentTransform){var t=e._currentTransform.target,i=e._currentTransform.action;if(this===t&&i.slice&&"scale"===i.slice(0,5))return!1}var s,n,r=this._cacheCanvas,o=this._limitCacheSize(this._getCacheCanvasDimensions()),a=o.width,c=o.height,l=o.zoomX,h=o.zoomY,d=a!==this.cacheWidth||c!==this.cacheHeight,u=this.zoomX!==l||this.zoomY!==h;return!(!d&&!u)&&(d?(r.width=a,r.height=c):(this._cacheContext.setTransform(1,0,0,1,0,0),this._cacheContext.clearRect(0,0,r.width,r.height)),s=o.x/2,n=o.y/2,this.cacheTranslationX=Math.round(r.width/2-s)+s,this.cacheTranslationY=Math.round(r.height/2-n)+n,this.cacheWidth=a,this.cacheHeight=c,this._cacheContext.translate(this.cacheTranslationX,this.cacheTranslationY),this._cacheContext.scale(l,h),this.zoomX=l,this.zoomY=h,!0)},setOptions:function(e){this._setOptions(e),this._initGradient(e.fill,"fill"),this._initGradient(e.stroke,"stroke"),this._initPattern(e.fill,"fill"),this._initPattern(e.stroke,"stroke")},transform:function(e){var t=this.group&&!this.group._transformDone||this.group&&this.canvas&&e===this.canvas.contextTop,i=this.calcTransformMatrix(!t);e.transform(i[0],i[1],i[2],i[3],i[4],i[5])},toObject:function(e){var i=t.Object.NUM_FRACTION_DIGITS,s={type:this.type,version:t.version,originX:this.originX,originY:this.originY,left:n(this.left,i),top:n(this.top,i),width:n(this.width,i),height:n(this.height,i),fill:this.fill&&this.fill.toObject?this.fill.toObject():this.fill,stroke:this.stroke&&this.stroke.toObject?this.stroke.toObject():this.stroke,strokeWidth:n(this.strokeWidth,i),strokeDashArray:this.strokeDashArray?this.strokeDashArray.concat():this.strokeDashArray,strokeLineCap:this.strokeLineCap,strokeDashOffset:this.strokeDashOffset,strokeLineJoin:this.strokeLineJoin,strokeUniform:this.strokeUniform,strokeMiterLimit:n(this.strokeMiterLimit,i),scaleX:n(this.scaleX,i),scaleY:n(this.scaleY,i),angle:n(this.angle,i),flipX:this.flipX,flipY:this.flipY,opacity:n(this.opacity,i),shadow:this.shadow&&this.shadow.toObject?this.shadow.toObject():this.shadow,visible:this.visible,backgroundColor:this.backgroundColor,fillRule:this.fillRule,paintFirst:this.paintFirst,globalCompositeOperation:this.globalCompositeOperation,skewX:n(this.skewX,i),skewY:n(this.skewY,i)};return this.clipPath&&!this.clipPath.excludeFromExport&&(s.clipPath=this.clipPath.toObject(e),s.clipPath.inverted=this.clipPath.inverted,s.clipPath.absolutePositioned=this.clipPath.absolutePositioned),t.util.populateWithProperties(this,s,e),this.includeDefaultValues||(s=this._removeDefaultValues(s)),s},toDatalessObject:function(e){return this.toObject(e)},_removeDefaultValues:function(e){var i=t.util.getKlass(e.type).prototype;return i.stateProperties.forEach((function(t){"left"!==t&&"top"!==t&&(e[t]===i[t]&&delete e[t],Array.isArray(e[t])&&Array.isArray(i[t])&&0===e[t].length&&0===i[t].length&&delete e[t])})),e},toString:function(){return"#<fabric."+r(this.type)+">"},getObjectScaling:function(){if(!this.group)return{scaleX:this.scaleX,scaleY:this.scaleY};var e=t.util.qrDecompose(this.calcTransformMatrix());return{scaleX:Math.abs(e.scaleX),scaleY:Math.abs(e.scaleY)}},getTotalObjectScaling:function(){var e=this.getObjectScaling(),t=e.scaleX,i=e.scaleY;if(this.canvas){var s=this.canvas.getZoom(),n=this.canvas.getRetinaScaling();t*=s*n,i*=s*n}return{scaleX:t,scaleY:i}},getObjectOpacity:function(){var e=this.opacity;return this.group&&(e*=this.group.getObjectOpacity()),e},_set:function(e,i){var s="scaleX"===e||"scaleY"===e,n=this[e]!==i,r=!1;return s&&(i=this._constrainScale(i)),"scaleX"===e&&i<0?(this.flipX=!this.flipX,i*=-1):"scaleY"===e&&i<0?(this.flipY=!this.flipY,i*=-1):"shadow"!==e||!i||i instanceof t.Shadow?"dirty"===e&&this.group&&this.group.set("dirty",i):i=new t.Shadow(i),this[e]=i,n&&(r=this.group&&this.group.isOnACache(),this.cacheProperties.indexOf(e)>-1?(this.dirty=!0,r&&this.group.set("dirty",!0)):r&&this.stateProperties.indexOf(e)>-1&&this.group.set("dirty",!0)),this},setOnGroup:function(){},getViewportTransform:function(){return this.canvas&&this.canvas.viewportTransform?this.canvas.viewportTransform:t.iMatrix.concat()},isNotVisible:function(){return 0===this.opacity||!this.width&&!this.height&&0===this.strokeWidth||!this.visible},render:function(e){this.isNotVisible()||this.canvas&&this.canvas.skipOffscreen&&!this.group&&!this.isOnScreen()||(e.save(),this._setupCompositeOperation(e),this.drawSelectionBackground(e),this.transform(e),this._setOpacity(e),this._setShadow(e,this),this.shouldCache()?(this.renderCache(),this.drawCacheOnCanvas(e)):(this._removeCacheCanvas(),this.dirty=!1,this.drawObject(e),this.objectCaching&&this.statefullCache&&this.saveState({propertySet:"cacheProperties"})),e.restore())},renderCache:function(e){e=e||{},this._cacheCanvas&&this._cacheContext||this._createCacheCanvas(),this.isCacheDirty()&&(this.statefullCache&&this.saveState({propertySet:"cacheProperties"}),this.drawObject(this._cacheContext,e.forClipping),this.dirty=!1)},_removeCacheCanvas:function(){this._cacheCanvas=null,this._cacheContext=null,this.cacheWidth=0,this.cacheHeight=0},hasStroke:function(){return this.stroke&&"transparent"!==this.stroke&&0!==this.strokeWidth},hasFill:function(){return this.fill&&"transparent"!==this.fill},needsItsOwnCache:function(){return!("stroke"!==this.paintFirst||!this.hasFill()||!this.hasStroke()||"object"!==typeof this.shadow)||!!this.clipPath},shouldCache:function(){return this.ownCaching=this.needsItsOwnCache()||this.objectCaching&&(!this.group||!this.group.isOnACache()),this.ownCaching},willDrawShadow:function(){return!!this.shadow&&(0!==this.shadow.offsetX||0!==this.shadow.offsetY)},drawClipPathOnCache:function(e,i){if(e.save(),i.inverted?e.globalCompositeOperation="destination-out":e.globalCompositeOperation="destination-in",i.absolutePositioned){var s=t.util.invertTransform(this.calcTransformMatrix());e.transform(s[0],s[1],s[2],s[3],s[4],s[5])}i.transform(e),e.scale(1/i.zoomX,1/i.zoomY),e.drawImage(i._cacheCanvas,-i.cacheTranslationX,-i.cacheTranslationY),e.restore()},drawObject:function(e,t){var i=this.fill,s=this.stroke;t?(this.fill="black",this.stroke="",this._setClippingProperties(e)):this._renderBackground(e),this._render(e),this._drawClipPath(e,this.clipPath),this.fill=i,this.stroke=s},_drawClipPath:function(e,t){t&&(t.canvas=this.canvas,t.shouldCache(),t._transformDone=!0,t.renderCache({forClipping:!0}),this.drawClipPathOnCache(e,t))},drawCacheOnCanvas:function(e){e.scale(1/this.zoomX,1/this.zoomY),e.drawImage(this._cacheCanvas,-this.cacheTranslationX,-this.cacheTranslationY)},isCacheDirty:function(e){if(this.isNotVisible())return!1;if(this._cacheCanvas&&this._cacheContext&&!e&&this._updateCacheCanvas())return!0;if(this.dirty||this.clipPath&&this.clipPath.absolutePositioned||this.statefullCache&&this.hasStateChanged("cacheProperties")){if(this._cacheCanvas&&this._cacheContext&&!e){var t=this.cacheWidth/this.zoomX,i=this.cacheHeight/this.zoomY;this._cacheContext.clearRect(-t/2,-i/2,t,i)}return!0}return!1},_renderBackground:function(e){if(this.backgroundColor){var t=this._getNonTransformedDimensions();e.fillStyle=this.backgroundColor,e.fillRect(-t.x/2,-t.y/2,t.x,t.y),this._removeShadow(e)}},_setOpacity:function(e){this.group&&!this.group._transformDone?e.globalAlpha=this.getObjectOpacity():e.globalAlpha*=this.opacity},_setStrokeStyles:function(e,t){var i=t.stroke;i&&(e.lineWidth=t.strokeWidth,e.lineCap=t.strokeLineCap,e.lineDashOffset=t.strokeDashOffset,e.lineJoin=t.strokeLineJoin,e.miterLimit=t.strokeMiterLimit,i.toLive?"percentage"===i.gradientUnits||i.gradientTransform||i.patternTransform?this._applyPatternForTransformedGradient(e,i):(e.strokeStyle=i.toLive(e,this),this._applyPatternGradientTransform(e,i)):e.strokeStyle=t.stroke)},_setFillStyles:function(e,t){var i=t.fill;i&&(i.toLive?(e.fillStyle=i.toLive(e,this),this._applyPatternGradientTransform(e,t.fill)):e.fillStyle=i)},_setClippingProperties:function(e){e.globalAlpha=1,e.strokeStyle="transparent",e.fillStyle="#000000"},_setLineDash:function(e,t){t&&0!==t.length&&(1&t.length&&t.push.apply(t,t),e.setLineDash(t))},_renderControls:function(e,i){var s,n,r,a=this.getViewportTransform(),c=this.calcTransformMatrix();n="undefined"!==typeof(i=i||{}).hasBorders?i.hasBorders:this.hasBorders,r="undefined"!==typeof i.hasControls?i.hasControls:this.hasControls,c=t.util.multiplyTransformMatrices(a,c),s=t.util.qrDecompose(c),e.save(),e.translate(s.translateX,s.translateY),e.lineWidth=1*this.borderScaleFactor,this.group||(e.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1),this.flipX&&(s.angle-=180),e.rotate(o(this.group?s.angle:this.angle)),i.forActiveSelection||this.group?n&&this.drawBordersInGroup(e,s,i):n&&this.drawBorders(e,i),r&&this.drawControls(e,i),e.restore()},_setShadow:function(e){if(this.shadow){var i,s=this.shadow,n=this.canvas,r=n&&n.viewportTransform[0]||1,o=n&&n.viewportTransform[3]||1;i=s.nonScaling?{scaleX:1,scaleY:1}:this.getObjectScaling(),n&&n._isRetinaScaling()&&(r*=t.devicePixelRatio,o*=t.devicePixelRatio),e.shadowColor=s.color,e.shadowBlur=s.blur*t.browserShadowBlurConstant*(r+o)*(i.scaleX+i.scaleY)/4,e.shadowOffsetX=s.offsetX*r*i.scaleX,e.shadowOffsetY=s.offsetY*o*i.scaleY}},_removeShadow:function(e){this.shadow&&(e.shadowColor="",e.shadowBlur=e.shadowOffsetX=e.shadowOffsetY=0)},_applyPatternGradientTransform:function(e,t){if(!t||!t.toLive)return{offsetX:0,offsetY:0};var i=t.gradientTransform||t.patternTransform,s=-this.width/2+t.offsetX||0,n=-this.height/2+t.offsetY||0;return"percentage"===t.gradientUnits?e.transform(this.width,0,0,this.height,s,n):e.transform(1,0,0,1,s,n),i&&e.transform(i[0],i[1],i[2],i[3],i[4],i[5]),{offsetX:s,offsetY:n}},_renderPaintInOrder:function(e){"stroke"===this.paintFirst?(this._renderStroke(e),this._renderFill(e)):(this._renderFill(e),this._renderStroke(e))},_render:function(){},_renderFill:function(e){this.fill&&(e.save(),this._setFillStyles(e,this),"evenodd"===this.fillRule?e.fill("evenodd"):e.fill(),e.restore())},_renderStroke:function(e){if(this.stroke&&0!==this.strokeWidth){if(this.shadow&&!this.shadow.affectStroke&&this._removeShadow(e),e.save(),this.strokeUniform&&this.group){var t=this.getObjectScaling();e.scale(1/t.scaleX,1/t.scaleY)}else this.strokeUniform&&e.scale(1/this.scaleX,1/this.scaleY);this._setLineDash(e,this.strokeDashArray),this._setStrokeStyles(e,this),e.stroke(),e.restore()}},_applyPatternForTransformedGradient:function(e,i){var s,n=this._limitCacheSize(this._getCacheCanvasDimensions()),r=t.util.createCanvasElement(),o=this.canvas.getRetinaScaling(),a=n.x/this.scaleX/o,c=n.y/this.scaleY/o;r.width=Math.ceil(a),r.height=Math.ceil(c),(s=r.getContext("2d")).beginPath(),s.moveTo(0,0),s.lineTo(a,0),s.lineTo(a,c),s.lineTo(0,c),s.closePath(),s.translate(a/2,c/2),s.scale(n.zoomX/this.scaleX/o,n.zoomY/this.scaleY/o),this._applyPatternGradientTransform(s,i),s.fillStyle=i.toLive(e),s.fill(),e.translate(-this.width/2-this.strokeWidth/2,-this.height/2-this.strokeWidth/2),e.scale(o*this.scaleX/n.zoomX,o*this.scaleY/n.zoomY),e.strokeStyle=s.createPattern(r,"no-repeat")},_findCenterFromElement:function(){return{x:this.left+this.width/2,y:this.top+this.height/2}},_assignTransformMatrixProps:function(){if(this.transformMatrix){var e=t.util.qrDecompose(this.transformMatrix);this.flipX=!1,this.flipY=!1,this.set("scaleX",e.scaleX),this.set("scaleY",e.scaleY),this.angle=e.angle,this.skewX=e.skewX,this.skewY=0}},_removeTransformMatrix:function(e){var i=this._findCenterFromElement();this.transformMatrix&&(this._assignTransformMatrixProps(),i=t.util.transformPoint(i,this.transformMatrix)),this.transformMatrix=null,e&&(this.scaleX*=e.scaleX,this.scaleY*=e.scaleY,this.cropX=e.cropX,this.cropY=e.cropY,i.x+=e.offsetLeft,i.y+=e.offsetTop,this.width=e.width,this.height=e.height),this.setPositionByOrigin(i,"center","center")},clone:function(e,i){var s=this.toObject(i);this.constructor.fromObject?this.constructor.fromObject(s,e):t.Object._fromObject("Object",s,e)},cloneAsImage:function(e,i){var s=this.toCanvasElement(i);return e&&e(new t.Image(s)),this},toCanvasElement:function(e){e||(e={});var i=t.util,s=i.saveObjectTransform(this),n=this.group,r=this.shadow,o=Math.abs,a=(e.multiplier||1)*(e.enableRetinaScaling?t.devicePixelRatio:1);delete this.group,e.withoutTransform&&i.resetObjectTransform(this),e.withoutShadow&&(this.shadow=null);var c,l,h,d,u=t.util.createCanvasElement(),g=this.getBoundingRect(!0,!0),p=this.shadow,m={x:0,y:0};p&&(l=p.blur,c=p.nonScaling?{scaleX:1,scaleY:1}:this.getObjectScaling(),m.x=2*Math.round(o(p.offsetX)+l)*o(c.scaleX),m.y=2*Math.round(o(p.offsetY)+l)*o(c.scaleY)),h=g.width+m.x,d=g.height+m.y,u.width=Math.ceil(h),u.height=Math.ceil(d);var f=new t.StaticCanvas(u,{enableRetinaScaling:!1,renderOnAddRemove:!1,skipOffscreen:!1});"jpeg"===e.format&&(f.backgroundColor="#fff"),this.setPositionByOrigin(new t.Point(f.width/2,f.height/2),"center","center");var _=this.canvas;f.add(this);var v=f.toCanvasElement(a||1,e);return this.shadow=r,this.set("canvas",_),n&&(this.group=n),this.set(s).setCoords(),f._objects=[],f.dispose(),f=null,v},toDataURL:function(e){return e||(e={}),t.util.toDataURL(this.toCanvasElement(e),e.format||"png",e.quality||1)},isType:function(e){return arguments.length>1?Array.from(arguments).includes(this.type):this.type===e},complexity:function(){return 1},toJSON:function(e){return this.toObject(e)},rotate:function(e){var t=("center"!==this.originX||"center"!==this.originY)&&this.centeredRotation;return t&&this._setOriginToCenter(),this.set("angle",e),t&&this._resetOrigin(),this},centerH:function(){return this.canvas&&this.canvas.centerObjectH(this),this},viewportCenterH:function(){return this.canvas&&this.canvas.viewportCenterObjectH(this),this},centerV:function(){return this.canvas&&this.canvas.centerObjectV(this),this},viewportCenterV:function(){return this.canvas&&this.canvas.viewportCenterObjectV(this),this},center:function(){return this.canvas&&this.canvas.centerObject(this),this},viewportCenter:function(){return this.canvas&&this.canvas.viewportCenterObject(this),this},getLocalPointer:function(e,i){i=i||this.canvas.getPointer(e);var s=new t.Point(i.x,i.y),n=this._getLeftTopCoords();return this.angle&&(s=t.util.rotatePoint(s,n,o(-this.angle))),{x:s.x-n.x,y:s.y-n.y}},_setupCompositeOperation:function(e){this.globalCompositeOperation&&(e.globalCompositeOperation=this.globalCompositeOperation)},dispose:function(){t.runningAnimations&&t.runningAnimations.cancelByTarget(this)}}),t.util.createAccessors&&t.util.createAccessors(t.Object),i(t.Object.prototype,t.Observable),t.Object.NUM_FRACTION_DIGITS=2,t.Object.ENLIVEN_PROPS=["clipPath"],t.Object._fromObject=function(e,i,n,r){var o=t[e];i=s(i,!0),t.util.enlivenPatterns([i.fill,i.stroke],(function(e){"undefined"!==typeof e[0]&&(i.fill=e[0]),"undefined"!==typeof e[1]&&(i.stroke=e[1]),t.util.enlivenObjectEnlivables(i,i,(function(){var e=r?new o(i[r],i):new o(i);n&&n(e)}))}))},t.Object.__uid=0)}(t),function(){var e=n.util.degreesToRadians,t={left:-.5,center:0,right:.5},i={top:-.5,center:0,bottom:.5};n.util.object.extend(n.Object.prototype,{translateToGivenOrigin:function(e,s,r,o,a){var c,l,h,d=e.x,u=e.y;return"string"===typeof s?s=t[s]:s-=.5,"string"===typeof o?o=t[o]:o-=.5,"string"===typeof r?r=i[r]:r-=.5,"string"===typeof a?a=i[a]:a-=.5,l=a-r,((c=o-s)||l)&&(h=this._getTransformedDimensions(),d=e.x+c*h.x,u=e.y+l*h.y),new n.Point(d,u)},translateToCenterPoint:function(t,i,s){var r=this.translateToGivenOrigin(t,i,s,"center","center");return this.angle?n.util.rotatePoint(r,t,e(this.angle)):r},translateToOriginPoint:function(t,i,s){var r=this.translateToGivenOrigin(t,"center","center",i,s);return this.angle?n.util.rotatePoint(r,t,e(this.angle)):r},getCenterPoint:function(){var e=new n.Point(this.left,this.top);return this.translateToCenterPoint(e,this.originX,this.originY)},getPointByOrigin:function(e,t){var i=this.getCenterPoint();return this.translateToOriginPoint(i,e,t)},toLocalPoint:function(t,i,s){var r,o,a=this.getCenterPoint();return r="undefined"!==typeof i&&"undefined"!==typeof s?this.translateToGivenOrigin(a,"center","center",i,s):new n.Point(this.left,this.top),o=new n.Point(t.x,t.y),this.angle&&(o=n.util.rotatePoint(o,a,-e(this.angle))),o.subtractEquals(r)},setPositionByOrigin:function(e,t,i){var s=this.translateToCenterPoint(e,t,i),n=this.translateToOriginPoint(s,this.originX,this.originY);this.set("left",n.x),this.set("top",n.y)},adjustPosition:function(i){var s,r,o=e(this.angle),a=this.getScaledWidth(),c=n.util.cos(o)*a,l=n.util.sin(o)*a;s="string"===typeof this.originX?t[this.originX]:this.originX-.5,r="string"===typeof i?t[i]:i-.5,this.left+=c*(r-s),this.top+=l*(r-s),this.setCoords(),this.originX=i},_setOriginToCenter:function(){this._originalOriginX=this.originX,this._originalOriginY=this.originY;var e=this.getCenterPoint();this.originX="center",this.originY="center",this.left=e.x,this.top=e.y},_resetOrigin:function(){var e=this.translateToOriginPoint(this.getCenterPoint(),this._originalOriginX,this._originalOriginY);this.originX=this._originalOriginX,this.originY=this._originalOriginY,this.left=e.x,this.top=e.y,this._originalOriginX=null,this._originalOriginY=null},_getLeftTopCoords:function(){return this.translateToOriginPoint(this.getCenterPoint(),"left","top")}})}(),function(){var e=n.util,t=e.degreesToRadians,i=e.multiplyTransformMatrices,s=e.transformPoint;e.object.extend(n.Object.prototype,{oCoords:null,aCoords:null,lineCoords:null,ownMatrixCache:null,matrixCache:null,controls:{},_getCoords:function(e,t){return t?e?this.calcACoords():this.calcLineCoords():(this.aCoords&&this.lineCoords||this.setCoords(!0),e?this.aCoords:this.lineCoords)},getCoords:function(e,t){return i=this._getCoords(e,t),[new n.Point(i.tl.x,i.tl.y),new n.Point(i.tr.x,i.tr.y),new n.Point(i.br.x,i.br.y),new n.Point(i.bl.x,i.bl.y)];var i},intersectsWithRect:function(e,t,i,s){var r=this.getCoords(i,s);return"Intersection"===n.Intersection.intersectPolygonRectangle(r,e,t).status},intersectsWithObject:function(e,t,i){return"Intersection"===n.Intersection.intersectPolygonPolygon(this.getCoords(t,i),e.getCoords(t,i)).status||e.isContainedWithinObject(this,t,i)||this.isContainedWithinObject(e,t,i)},isContainedWithinObject:function(e,t,i){for(var s=this.getCoords(t,i),n=t?e.aCoords:e.lineCoords,r=0,o=e._getImageLines(n);r<4;r++)if(!e.containsPoint(s[r],o))return!1;return!0},isContainedWithinRect:function(e,t,i,s){var n=this.getBoundingRect(i,s);return n.left>=e.x&&n.left+n.width<=t.x&&n.top>=e.y&&n.top+n.height<=t.y},containsPoint:function(e,t,i,s){var n=this._getCoords(i,s),r=(t=t||this._getImageLines(n),this._findCrossPoints(e,t));return 0!==r&&r%2===1},isOnScreen:function(e){if(!this.canvas)return!1;var t=this.canvas.vptCoords.tl,i=this.canvas.vptCoords.br;return!!this.getCoords(!0,e).some((function(e){return e.x<=i.x&&e.x>=t.x&&e.y<=i.y&&e.y>=t.y}))||(!!this.intersectsWithRect(t,i,!0,e)||this._containsCenterOfCanvas(t,i,e))},_containsCenterOfCanvas:function(e,t,i){var s={x:(e.x+t.x)/2,y:(e.y+t.y)/2};return!!this.containsPoint(s,null,!0,i)},isPartiallyOnScreen:function(e){if(!this.canvas)return!1;var t=this.canvas.vptCoords.tl,i=this.canvas.vptCoords.br;return!!this.intersectsWithRect(t,i,!0,e)||this.getCoords(!0,e).every((function(e){return(e.x>=i.x||e.x<=t.x)&&(e.y>=i.y||e.y<=t.y)}))&&this._containsCenterOfCanvas(t,i,e)},_getImageLines:function(e){return{topline:{o:e.tl,d:e.tr},rightline:{o:e.tr,d:e.br},bottomline:{o:e.br,d:e.bl},leftline:{o:e.bl,d:e.tl}}},_findCrossPoints:function(e,t){var i,s,n,r=0;for(var o in t)if(!((n=t[o]).o.y<e.y&&n.d.y<e.y)&&!(n.o.y>=e.y&&n.d.y>=e.y)&&(n.o.x===n.d.x&&n.o.x>=e.x?s=n.o.x:(i=(n.d.y-n.o.y)/(n.d.x-n.o.x),s=-(e.y-0*e.x-(n.o.y-i*n.o.x))/(0-i)),s>=e.x&&(r+=1),2===r))break;return r},getBoundingRect:function(t,i){var s=this.getCoords(t,i);return e.makeBoundingBoxFromPoints(s)},getScaledWidth:function(){return this._getTransformedDimensions().x},getScaledHeight:function(){return this._getTransformedDimensions().y},_constrainScale:function(e){return Math.abs(e)<this.minScaleLimit?e<0?-this.minScaleLimit:this.minScaleLimit:0===e?1e-4:e},scale:function(e){return this._set("scaleX",e),this._set("scaleY",e),this.setCoords()},scaleToWidth:function(e,t){var i=this.getBoundingRect(t).width/this.getScaledWidth();return this.scale(e/this.width/i)},scaleToHeight:function(e,t){var i=this.getBoundingRect(t).height/this.getScaledHeight();return this.scale(e/this.height/i)},calcLineCoords:function(){var i=this.getViewportTransform(),n=this.padding,r=t(this.angle),o=e.cos(r)*n,a=e.sin(r)*n,c=o+a,l=o-a,h=this.calcACoords(),d={tl:s(h.tl,i),tr:s(h.tr,i),bl:s(h.bl,i),br:s(h.br,i)};return n&&(d.tl.x-=l,d.tl.y-=c,d.tr.x+=c,d.tr.y-=l,d.bl.x-=c,d.bl.y+=l,d.br.x+=l,d.br.y+=c),d},calcOCoords:function(){var e=this._calcRotateMatrix(),t=this._calcTranslateMatrix(),s=this.getViewportTransform(),n=i(s,t),r=i(n,e),o=(r=i(r,[1/s[0],0,0,1/s[3],0,0]),this._calculateCurrentDimensions()),a={};return this.forEachControl((function(e,t,i){a[t]=e.positionHandler(o,r,i)})),a},calcACoords:function(){var e=this._calcRotateMatrix(),t=this._calcTranslateMatrix(),n=i(t,e),r=this._getTransformedDimensions(),o=r.x/2,a=r.y/2;return{tl:s({x:-o,y:-a},n),tr:s({x:o,y:-a},n),bl:s({x:-o,y:a},n),br:s({x:o,y:a},n)}},setCoords:function(e){return this.aCoords=this.calcACoords(),this.lineCoords=this.group?this.aCoords:this.calcLineCoords(),e||(this.oCoords=this.calcOCoords(),this._setCornerCoords&&this._setCornerCoords()),this},_calcRotateMatrix:function(){return e.calcRotateMatrix(this)},_calcTranslateMatrix:function(){var e=this.getCenterPoint();return[1,0,0,1,e.x,e.y]},transformMatrixKey:function(e){var t="_",i="";return!e&&this.group&&(i=this.group.transformMatrixKey(e)+t),i+this.top+t+this.left+t+this.scaleX+t+this.scaleY+t+this.skewX+t+this.skewY+t+this.angle+t+this.originX+t+this.originY+t+this.width+t+this.height+t+this.strokeWidth+this.flipX+this.flipY},calcTransformMatrix:function(e){var t=this.calcOwnMatrix();if(e||!this.group)return t;var s=this.transformMatrixKey(e),n=this.matrixCache||(this.matrixCache={});return n.key===s?n.value:(this.group&&(t=i(this.group.calcTransformMatrix(!1),t)),n.key=s,n.value=t,t)},calcOwnMatrix:function(){var t=this.transformMatrixKey(!0),i=this.ownMatrixCache||(this.ownMatrixCache={});if(i.key===t)return i.value;var s=this._calcTranslateMatrix(),n={angle:this.angle,translateX:s[4],translateY:s[5],scaleX:this.scaleX,scaleY:this.scaleY,skewX:this.skewX,skewY:this.skewY,flipX:this.flipX,flipY:this.flipY};return i.key=t,i.value=e.composeMatrix(n),i.value},_getNonTransformedDimensions:function(){var e=this.strokeWidth;return{x:this.width+e,y:this.height+e}},_getTransformedDimensions:function(t,i){"undefined"===typeof t&&(t=this.skewX),"undefined"===typeof i&&(i=this.skewY);var s,n,r,o=0===t&&0===i;if(this.strokeUniform?(n=this.width,r=this.height):(n=(s=this._getNonTransformedDimensions()).x,r=s.y),o)return this._finalizeDimensions(n*this.scaleX,r*this.scaleY);var a=e.sizeAfterTransform(n,r,{scaleX:this.scaleX,scaleY:this.scaleY,skewX:t,skewY:i});return this._finalizeDimensions(a.x,a.y)},_finalizeDimensions:function(e,t){return this.strokeUniform?{x:e+this.strokeWidth,y:t+this.strokeWidth}:{x:e,y:t}},_calculateCurrentDimensions:function(){var e=this.getViewportTransform(),t=this._getTransformedDimensions();return s(t,e,!0).scalarAdd(2*this.padding)}})}(),n.util.object.extend(n.Object.prototype,{sendToBack:function(){return this.group?n.StaticCanvas.prototype.sendToBack.call(this.group,this):this.canvas&&this.canvas.sendToBack(this),this},bringToFront:function(){return this.group?n.StaticCanvas.prototype.bringToFront.call(this.group,this):this.canvas&&this.canvas.bringToFront(this),this},sendBackwards:function(e){return this.group?n.StaticCanvas.prototype.sendBackwards.call(this.group,this,e):this.canvas&&this.canvas.sendBackwards(this,e),this},bringForward:function(e){return this.group?n.StaticCanvas.prototype.bringForward.call(this.group,this,e):this.canvas&&this.canvas.bringForward(this,e),this},moveTo:function(e){return this.group&&"activeSelection"!==this.group.type?n.StaticCanvas.prototype.moveTo.call(this.group,this,e):this.canvas&&this.canvas.moveTo(this,e),this}}),function(){function e(e,t){if(t){if(t.toLive)return e+": url(#SVGID_"+t.id+"); ";var i=new n.Color(t),s=e+": "+i.toRgb()+"; ",r=i.getAlpha();return 1!==r&&(s+=e+"-opacity: "+r.toString()+"; "),s}return e+": none; "}var t=n.util.toFixed;n.util.object.extend(n.Object.prototype,{getSvgStyles:function(t){var i=this.fillRule?this.fillRule:"nonzero",s=this.strokeWidth?this.strokeWidth:"0",n=this.strokeDashArray?this.strokeDashArray.join(" "):"none",r=this.strokeDashOffset?this.strokeDashOffset:"0",o=this.strokeLineCap?this.strokeLineCap:"butt",a=this.strokeLineJoin?this.strokeLineJoin:"miter",c=this.strokeMiterLimit?this.strokeMiterLimit:"4",l="undefined"!==typeof this.opacity?this.opacity:"1",h=this.visible?"":" visibility: hidden;",d=t?"":this.getSvgFilter(),u=e("fill",this.fill);return[e("stroke",this.stroke),"stroke-width: ",s,"; ","stroke-dasharray: ",n,"; ","stroke-linecap: ",o,"; ","stroke-dashoffset: ",r,"; ","stroke-linejoin: ",a,"; ","stroke-miterlimit: ",c,"; ",u,"fill-rule: ",i,"; ","opacity: ",l,";",d,h].join("")},getSvgSpanStyles:function(t,i){var s="; ",n=t.fontFamily?"font-family: "+(-1===t.fontFamily.indexOf("'")&&-1===t.fontFamily.indexOf('"')?"'"+t.fontFamily+"'":t.fontFamily)+s:"",r=t.strokeWidth?"stroke-width: "+t.strokeWidth+s:"",o=(n=n,t.fontSize?"font-size: "+t.fontSize+"px"+s:""),a=t.fontStyle?"font-style: "+t.fontStyle+s:"",c=t.fontWeight?"font-weight: "+t.fontWeight+s:"",l=t.fill?e("fill",t.fill):"",h=t.stroke?e("stroke",t.stroke):"",d=this.getSvgTextDecoration(t);return d&&(d="text-decoration: "+d+s),[h,r,n,o,a,c,d,l,t.deltaY?"baseline-shift: "+-t.deltaY+"; ":"",i?"white-space: pre; ":""].join("")},getSvgTextDecoration:function(e){return["overline","underline","line-through"].filter((function(t){return e[t.replace("-","")]})).join(" ")},getSvgFilter:function(){return this.shadow?"filter: url(#SVGID_"+this.shadow.id+");":""},getSvgCommons:function(){return[this.id?'id="'+this.id+'" ':"",this.clipPath?'clip-path="url(#'+this.clipPath.clipPathId+')" ':""].join("")},getSvgTransform:function(e,t){var i=e?this.calcTransformMatrix():this.calcOwnMatrix();return'transform="'+n.util.matrixToSVG(i)+(t||"")+'" '},_setSVGBg:function(e){if(this.backgroundColor){var i=n.Object.NUM_FRACTION_DIGITS;e.push("\t\t<rect ",this._getFillAttributes(this.backgroundColor),' x="',t(-this.width/2,i),'" y="',t(-this.height/2,i),'" width="',t(this.width,i),'" height="',t(this.height,i),'"></rect>\n')}},toSVG:function(e){return this._createBaseSVGMarkup(this._toSVG(e),{reviver:e})},toClipPathSVG:function(e){return"\t"+this._createBaseClipPathSVGMarkup(this._toSVG(e),{reviver:e})},_createBaseClipPathSVGMarkup:function(e,t){var i=(t=t||{}).reviver,s=t.additionalTransform||"",n=[this.getSvgTransform(!0,s),this.getSvgCommons()].join(""),r=e.indexOf("COMMON_PARTS");return e[r]=n,i?i(e.join("")):e.join("")},_createBaseSVGMarkup:function(e,t){var i,s,r=(t=t||{}).noStyle,o=t.reviver,a=r?"":'style="'+this.getSvgStyles()+'" ',c=t.withShadow?'style="'+this.getSvgFilter()+'" ':"",l=this.clipPath,h=this.strokeUniform?'vector-effect="non-scaling-stroke" ':"",d=l&&l.absolutePositioned,u=this.stroke,g=this.fill,p=this.shadow,m=[],f=e.indexOf("COMMON_PARTS"),_=t.additionalTransform;return l&&(l.clipPathId="CLIPPATH_"+n.Object.__uid++,s='<clipPath id="'+l.clipPathId+'" >\n'+l.toClipPathSVG(o)+"</clipPath>\n"),d&&m.push("<g ",c,this.getSvgCommons()," >\n"),m.push("<g ",this.getSvgTransform(!1),d?"":c+this.getSvgCommons()," >\n"),i=[a,h,r?"":this.addPaintOrder()," ",_?'transform="'+_+'" ':""].join(""),e[f]=i,g&&g.toLive&&m.push(g.toSVG(this)),u&&u.toLive&&m.push(u.toSVG(this)),p&&m.push(p.toSVG(this)),l&&m.push(s),m.push(e.join("")),m.push("</g>\n"),d&&m.push("</g>\n"),o?o(m.join("")):m.join("")},addPaintOrder:function(){return"fill"!==this.paintFirst?' paint-order="'+this.paintFirst+'" ':""}})}(),function(){var e=n.util.object.extend,t="stateProperties";function i(t,i,s){var n={};s.forEach((function(e){n[e]=t[e]})),e(t[i],n,!0)}function s(e,t,i){if(e===t)return!0;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(var n=0,r=e.length;n<r;n++)if(!s(e[n],t[n]))return!1;return!0}if(e&&"object"===typeof e){var o,a=Object.keys(e);if(!t||"object"!==typeof t||!i&&a.length!==Object.keys(t).length)return!1;for(n=0,r=a.length;n<r;n++)if("canvas"!==(o=a[n])&&"group"!==o&&!s(e[o],t[o]))return!1;return!0}}n.util.object.extend(n.Object.prototype,{hasStateChanged:function(e){var i="_"+(e=e||t);return Object.keys(this[i]).length<this[e].length||!s(this[i],this,!0)},saveState:function(e){var s=e&&e.propertySet||t,n="_"+s;return this[n]?(i(this,n,this[s]),e&&e.stateProperties&&i(this,n,e.stateProperties),this):this.setupState(e)},setupState:function(e){var i=(e=e||{}).propertySet||t;return e.propertySet=i,this["_"+i]={},this.saveState(e),this}})}(),function(){var e=n.util.degreesToRadians;n.util.object.extend(n.Object.prototype,{_findTargetCorner:function(e,t){if(!this.hasControls||this.group||!this.canvas||this.canvas._activeObject!==this)return!1;var i,s,n,r=e.x,o=e.y,a=Object.keys(this.oCoords),c=a.length-1;for(this.__corner=0;c>=0;c--)if(n=a[c],this.isControlVisible(n)&&(s=this._getImageLines(t?this.oCoords[n].touchCorner:this.oCoords[n].corner),0!==(i=this._findCrossPoints({x:r,y:o},s))&&i%2===1))return this.__corner=n,n;return!1},forEachControl:function(e){for(var t in this.controls)e(this.controls[t],t,this)},_setCornerCoords:function(){var e=this.oCoords;for(var t in e){var i=this.controls[t];e[t].corner=i.calcCornerCoords(this.angle,this.cornerSize,e[t].x,e[t].y,!1),e[t].touchCorner=i.calcCornerCoords(this.angle,this.touchCornerSize,e[t].x,e[t].y,!0)}},drawSelectionBackground:function(t){if(!this.selectionBackgroundColor||this.canvas&&!this.canvas.interactive||this.canvas&&this.canvas._activeObject!==this)return this;t.save();var i=this.getCenterPoint(),s=this._calculateCurrentDimensions(),n=this.canvas.viewportTransform;return t.translate(i.x,i.y),t.scale(1/n[0],1/n[3]),t.rotate(e(this.angle)),t.fillStyle=this.selectionBackgroundColor,t.fillRect(-s.x/2,-s.y/2,s.x,s.y),t.restore(),this},drawBorders:function(e,t){t=t||{};var i=this._calculateCurrentDimensions(),s=this.borderScaleFactor,n=i.x+s,r=i.y+s,o="undefined"!==typeof t.hasControls?t.hasControls:this.hasControls,a=!1;return e.save(),e.strokeStyle=t.borderColor||this.borderColor,this._setLineDash(e,t.borderDashArray||this.borderDashArray),e.strokeRect(-n/2,-r/2,n,r),o&&(e.beginPath(),this.forEachControl((function(t,i,s){t.withConnection&&t.getVisibility(s,i)&&(a=!0,e.moveTo(t.x*n,t.y*r),e.lineTo(t.x*n+t.offsetX,t.y*r+t.offsetY))})),a&&e.stroke()),e.restore(),this},drawBordersInGroup:function(e,t,i){i=i||{};var s=n.util.sizeAfterTransform(this.width,this.height,t),r=this.strokeWidth,o=this.strokeUniform,a=this.borderScaleFactor,c=s.x+r*(o?this.canvas.getZoom():t.scaleX)+a,l=s.y+r*(o?this.canvas.getZoom():t.scaleY)+a;return e.save(),this._setLineDash(e,i.borderDashArray||this.borderDashArray),e.strokeStyle=i.borderColor||this.borderColor,e.strokeRect(-c/2,-l/2,c,l),e.restore(),this},drawControls:function(e,t){t=t||{},e.save();var i,s,r=1;return this.canvas&&(r=this.canvas.getRetinaScaling()),e.setTransform(r,0,0,r,0,0),e.strokeStyle=e.fillStyle=t.cornerColor||this.cornerColor,this.transparentCorners||(e.strokeStyle=t.cornerStrokeColor||this.cornerStrokeColor),this._setLineDash(e,t.cornerDashArray||this.cornerDashArray),this.setCoords(),this.group&&(i=this.group.calcTransformMatrix()),this.forEachControl((function(r,o,a){s=a.oCoords[o],r.getVisibility(a,o)&&(i&&(s=n.util.transformPoint(s,i)),r.render(e,s.x,s.y,t,a))})),e.restore(),this},isControlVisible:function(e){return this.controls[e]&&this.controls[e].getVisibility(this,e)},setControlVisible:function(e,t){return this._controlsVisibility||(this._controlsVisibility={}),this._controlsVisibility[e]=t,this},setControlsVisibility:function(e){for(var t in e||(e={}),e)this.setControlVisible(t,e[t]);return this},onDeselect:function(){},onSelect:function(){}})}(),n.util.object.extend(n.StaticCanvas.prototype,{FX_DURATION:500,fxCenterObjectH:function(e,t){var i=function(){},s=(t=t||{}).onComplete||i,r=t.onChange||i,o=this;return n.util.animate({target:this,startValue:e.left,endValue:this.getCenterPoint().x,duration:this.FX_DURATION,onChange:function(t){e.set("left",t),o.requestRenderAll(),r()},onComplete:function(){e.setCoords(),s()}})},fxCenterObjectV:function(e,t){var i=function(){},s=(t=t||{}).onComplete||i,r=t.onChange||i,o=this;return n.util.animate({target:this,startValue:e.top,endValue:this.getCenterPoint().y,duration:this.FX_DURATION,onChange:function(t){e.set("top",t),o.requestRenderAll(),r()},onComplete:function(){e.setCoords(),s()}})},fxRemove:function(e,t){var i=function(){},s=(t=t||{}).onComplete||i,r=t.onChange||i,o=this;return n.util.animate({target:this,startValue:e.opacity,endValue:0,duration:this.FX_DURATION,onChange:function(t){e.set("opacity",t),o.requestRenderAll(),r()},onComplete:function(){o.remove(e),s()}})}}),n.util.object.extend(n.Object.prototype,{animate:function(){if(arguments[0]&&"object"===typeof arguments[0]){var e,t,i=[],s=[];for(e in arguments[0])i.push(e);for(var n=0,r=i.length;n<r;n++)e=i[n],t=n!==r-1,s.push(this._animate(e,arguments[0][e],arguments[1],t));return s}return this._animate.apply(this,arguments)},_animate:function(e,t,i,s){var r,o=this;t=t.toString(),i=i?n.util.object.clone(i):{},~e.indexOf(".")&&(r=e.split("."));var a=o.colorProperties.indexOf(e)>-1||r&&o.colorProperties.indexOf(r[1])>-1,c=r?this.get(r[0])[r[1]]:this.get(e);"from"in i||(i.from=c),a||(t=~t.indexOf("=")?c+parseFloat(t.replace("=","")):parseFloat(t));var l={target:this,startValue:i.from,endValue:t,byValue:i.by,easing:i.easing,duration:i.duration,abort:i.abort&&function(e,t,s){return i.abort.call(o,e,t,s)},onChange:function(t,n,a){r?o[r[0]][r[1]]=t:o.set(e,t),s||i.onChange&&i.onChange(t,n,a)},onComplete:function(e,t,n){s||(o.setCoords(),i.onComplete&&i.onComplete(e,t,n))}};return a?n.util.animateColor(l.startValue,l.endValue,l.duration,l):n.util.animate(l)}}),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,s=t.util.object.clone,n={x1:1,x2:1,y1:1,y2:1};function r(e,t){var i=e.origin,s=e.axis1,n=e.axis2,r=e.dimension,o=t.nearest,a=t.center,c=t.farthest;return function(){switch(this.get(i)){case o:return Math.min(this.get(s),this.get(n));case a:return Math.min(this.get(s),this.get(n))+.5*this.get(r);case c:return Math.max(this.get(s),this.get(n))}}}t.Line?t.warn("fabric.Line is already defined"):(t.Line=t.util.createClass(t.Object,{type:"line",x1:0,y1:0,x2:0,y2:0,cacheProperties:t.Object.prototype.cacheProperties.concat("x1","x2","y1","y2"),initialize:function(e,t){e||(e=[0,0,0,0]),this.callSuper("initialize",t),this.set("x1",e[0]),this.set("y1",e[1]),this.set("x2",e[2]),this.set("y2",e[3]),this._setWidthHeight(t)},_setWidthHeight:function(e){e||(e={}),this.width=Math.abs(this.x2-this.x1),this.height=Math.abs(this.y2-this.y1),this.left="left"in e?e.left:this._getLeftToOriginX(),this.top="top"in e?e.top:this._getTopToOriginY()},_set:function(e,t){return this.callSuper("_set",e,t),"undefined"!==typeof n[e]&&this._setWidthHeight(),this},_getLeftToOriginX:r({origin:"originX",axis1:"x1",axis2:"x2",dimension:"width"},{nearest:"left",center:"center",farthest:"right"}),_getTopToOriginY:r({origin:"originY",axis1:"y1",axis2:"y2",dimension:"height"},{nearest:"top",center:"center",farthest:"bottom"}),_render:function(e){e.beginPath();var t=this.calcLinePoints();e.moveTo(t.x1,t.y1),e.lineTo(t.x2,t.y2),e.lineWidth=this.strokeWidth;var i=e.strokeStyle;e.strokeStyle=this.stroke||e.fillStyle,this.stroke&&this._renderStroke(e),e.strokeStyle=i},_findCenterFromElement:function(){return{x:(this.x1+this.x2)/2,y:(this.y1+this.y2)/2}},toObject:function(e){return i(this.callSuper("toObject",e),this.calcLinePoints())},_getNonTransformedDimensions:function(){var e=this.callSuper("_getNonTransformedDimensions");return"butt"===this.strokeLineCap&&(0===this.width&&(e.y-=this.strokeWidth),0===this.height&&(e.x-=this.strokeWidth)),e},calcLinePoints:function(){var e=this.x1<=this.x2?-1:1,t=this.y1<=this.y2?-1:1,i=e*this.width*.5,s=t*this.height*.5;return{x1:i,x2:e*this.width*-.5,y1:s,y2:t*this.height*-.5}},_toSVG:function(){var e=this.calcLinePoints();return["<line ","COMMON_PARTS",'x1="',e.x1,'" y1="',e.y1,'" x2="',e.x2,'" y2="',e.y2,'" />\n']}}),t.Line.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("x1 y1 x2 y2".split(" ")),t.Line.fromElement=function(e,s,n){n=n||{};var r=t.parseAttributes(e,t.Line.ATTRIBUTE_NAMES),o=[r.x1||0,r.y1||0,r.x2||0,r.y2||0];s(new t.Line(o,i(r,n)))},t.Line.fromObject=function(e,i){var n=s(e,!0);n.points=[e.x1,e.y1,e.x2,e.y2],t.Object._fromObject("Line",n,(function(e){delete e.points,i&&i(e)}),"points")})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.degreesToRadians;t.Circle?t.warn("fabric.Circle is already defined."):(t.Circle=t.util.createClass(t.Object,{type:"circle",radius:0,startAngle:0,endAngle:360,cacheProperties:t.Object.prototype.cacheProperties.concat("radius","startAngle","endAngle"),_set:function(e,t){return this.callSuper("_set",e,t),"radius"===e&&this.setRadius(t),this},toObject:function(e){return this.callSuper("toObject",["radius","startAngle","endAngle"].concat(e))},_toSVG:function(){var e,s=(this.endAngle-this.startAngle)%360;if(0===s)e=["<circle ","COMMON_PARTS",'cx="0" cy="0" ','r="',this.radius,'" />\n'];else{var n=i(this.startAngle),r=i(this.endAngle),o=this.radius;e=['<path d="M '+t.util.cos(n)*o+" "+t.util.sin(n)*o," A "+o+" "+o," 0 ",+(s>180?"1":"0")+" 1"," "+t.util.cos(r)*o+" "+t.util.sin(r)*o,'" ',"COMMON_PARTS"," />\n"]}return e},_render:function(e){e.beginPath(),e.arc(0,0,this.radius,i(this.startAngle),i(this.endAngle),!1),this._renderPaintInOrder(e)},getRadiusX:function(){return this.get("radius")*this.get("scaleX")},getRadiusY:function(){return this.get("radius")*this.get("scaleY")},setRadius:function(e){return this.radius=e,this.set("width",2*e).set("height",2*e)}}),t.Circle.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("cx cy r".split(" ")),t.Circle.fromElement=function(e,i){var s,n=t.parseAttributes(e,t.Circle.ATTRIBUTE_NAMES);if(!("radius"in(s=n)&&s.radius>=0))throw new Error("value of `r` attribute is required and can not be negative");n.left=(n.left||0)-n.radius,n.top=(n.top||0)-n.radius,i(new t.Circle(n))},t.Circle.fromObject=function(e,i){t.Object._fromObject("Circle",e,i)})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={});t.Triangle?t.warn("fabric.Triangle is already defined"):(t.Triangle=t.util.createClass(t.Object,{type:"triangle",width:100,height:100,_render:function(e){var t=this.width/2,i=this.height/2;e.beginPath(),e.moveTo(-t,i),e.lineTo(0,-i),e.lineTo(t,i),e.closePath(),this._renderPaintInOrder(e)},_toSVG:function(){var e=this.width/2,t=this.height/2;return["<polygon ","COMMON_PARTS",'points="',[-e+" "+t,"0 "+-t,e+" "+t].join(","),'" />']}}),t.Triangle.fromObject=function(e,i){return t.Object._fromObject("Triangle",e,i)})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=2*Math.PI;t.Ellipse?t.warn("fabric.Ellipse is already defined."):(t.Ellipse=t.util.createClass(t.Object,{type:"ellipse",rx:0,ry:0,cacheProperties:t.Object.prototype.cacheProperties.concat("rx","ry"),initialize:function(e){this.callSuper("initialize",e),this.set("rx",e&&e.rx||0),this.set("ry",e&&e.ry||0)},_set:function(e,t){switch(this.callSuper("_set",e,t),e){case"rx":this.rx=t,this.set("width",2*t);break;case"ry":this.ry=t,this.set("height",2*t)}return this},getRx:function(){return this.get("rx")*this.get("scaleX")},getRy:function(){return this.get("ry")*this.get("scaleY")},toObject:function(e){return this.callSuper("toObject",["rx","ry"].concat(e))},_toSVG:function(){return["<ellipse ","COMMON_PARTS",'cx="0" cy="0" ','rx="',this.rx,'" ry="',this.ry,'" />\n']},_render:function(e){e.beginPath(),e.save(),e.transform(1,0,0,this.ry/this.rx,0,0),e.arc(0,0,this.rx,0,i,!1),e.restore(),this._renderPaintInOrder(e)}}),t.Ellipse.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("cx cy rx ry".split(" ")),t.Ellipse.fromElement=function(e,i){var s=t.parseAttributes(e,t.Ellipse.ATTRIBUTE_NAMES);s.left=(s.left||0)-s.rx,s.top=(s.top||0)-s.ry,i(new t.Ellipse(s))},t.Ellipse.fromObject=function(e,i){t.Object._fromObject("Ellipse",e,i)})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend;t.Rect?t.warn("fabric.Rect is already defined"):(t.Rect=t.util.createClass(t.Object,{stateProperties:t.Object.prototype.stateProperties.concat("rx","ry"),type:"rect",rx:0,ry:0,cacheProperties:t.Object.prototype.cacheProperties.concat("rx","ry"),initialize:function(e){this.callSuper("initialize",e),this._initRxRy()},_initRxRy:function(){this.rx&&!this.ry?this.ry=this.rx:this.ry&&!this.rx&&(this.rx=this.ry)},_render:function(e){var t=this.rx?Math.min(this.rx,this.width/2):0,i=this.ry?Math.min(this.ry,this.height/2):0,s=this.width,n=this.height,r=-this.width/2,o=-this.height/2,a=0!==t||0!==i,c=.4477152502;e.beginPath(),e.moveTo(r+t,o),e.lineTo(r+s-t,o),a&&e.bezierCurveTo(r+s-c*t,o,r+s,o+c*i,r+s,o+i),e.lineTo(r+s,o+n-i),a&&e.bezierCurveTo(r+s,o+n-c*i,r+s-c*t,o+n,r+s-t,o+n),e.lineTo(r+t,o+n),a&&e.bezierCurveTo(r+c*t,o+n,r,o+n-c*i,r,o+n-i),e.lineTo(r,o+i),a&&e.bezierCurveTo(r,o+c*i,r+c*t,o,r+t,o),e.closePath(),this._renderPaintInOrder(e)},toObject:function(e){return this.callSuper("toObject",["rx","ry"].concat(e))},_toSVG:function(){return["<rect ","COMMON_PARTS",'x="',-this.width/2,'" y="',-this.height/2,'" rx="',this.rx,'" ry="',this.ry,'" width="',this.width,'" height="',this.height,'" />\n']}}),t.Rect.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("x y rx ry width height".split(" ")),t.Rect.fromElement=function(e,s,n){if(!e)return s(null);n=n||{};var r=t.parseAttributes(e,t.Rect.ATTRIBUTE_NAMES);r.left=r.left||0,r.top=r.top||0,r.height=r.height||0,r.width=r.width||0;var o=new t.Rect(i(n?t.util.object.clone(n):{},r));o.visible=o.visible&&o.width>0&&o.height>0,s(o)},t.Rect.fromObject=function(e,i){return t.Object._fromObject("Rect",e,i)})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,s=t.util.array.min,n=t.util.array.max,r=t.util.toFixed,o=t.util.projectStrokeOnPoints;t.Polyline?t.warn("fabric.Polyline is already defined"):(t.Polyline=t.util.createClass(t.Object,{type:"polyline",points:null,exactBoundingBox:!1,cacheProperties:t.Object.prototype.cacheProperties.concat("points"),initialize:function(e,t){t=t||{},this.points=e||[],this.callSuper("initialize",t),this._setPositionDimensions(t)},_projectStrokeOnPoints:function(){return o(this.points,this,!0)},_setPositionDimensions:function(e){var t,i=this._calcDimensions(e),s=this.exactBoundingBox?this.strokeWidth:0;this.width=i.width-s,this.height=i.height-s,e.fromSVG||(t=this.translateToGivenOrigin({x:i.left-this.strokeWidth/2+s/2,y:i.top-this.strokeWidth/2+s/2},"left","top",this.originX,this.originY)),"undefined"===typeof e.left&&(this.left=e.fromSVG?i.left:t.x),"undefined"===typeof e.top&&(this.top=e.fromSVG?i.top:t.y),this.pathOffset={x:i.left+this.width/2+s/2,y:i.top+this.height/2+s/2}},_calcDimensions:function(){var e=this.exactBoundingBox?this._projectStrokeOnPoints():this.points,t=s(e,"x")||0,i=s(e,"y")||0;return{left:t,top:i,width:(n(e,"x")||0)-t,height:(n(e,"y")||0)-i}},toObject:function(e){return i(this.callSuper("toObject",e),{points:this.points.concat()})},_toSVG:function(){for(var e=[],i=this.pathOffset.x,s=this.pathOffset.y,n=t.Object.NUM_FRACTION_DIGITS,o=0,a=this.points.length;o<a;o++)e.push(r(this.points[o].x-i,n),",",r(this.points[o].y-s,n)," ");return["<"+this.type+" ","COMMON_PARTS",'points="',e.join(""),'" />\n']},commonRender:function(e){var t,i=this.points.length,s=this.pathOffset.x,n=this.pathOffset.y;if(!i||isNaN(this.points[i-1].y))return!1;e.beginPath(),e.moveTo(this.points[0].x-s,this.points[0].y-n);for(var r=0;r<i;r++)t=this.points[r],e.lineTo(t.x-s,t.y-n);return!0},_render:function(e){this.commonRender(e)&&this._renderPaintInOrder(e)},complexity:function(){return this.get("points").length}}),t.Polyline.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat(),t.Polyline.fromElementGenerator=function(e){return function(s,n,r){if(!s)return n(null);r||(r={});var o=t.parsePointsAttribute(s.getAttribute("points")),a=t.parseAttributes(s,t[e].ATTRIBUTE_NAMES);a.fromSVG=!0,n(new t[e](o,i(a,r)))}},t.Polyline.fromElement=t.Polyline.fromElementGenerator("Polyline"),t.Polyline.fromObject=function(e,i){return t.Object._fromObject("Polyline",e,i,"points")})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.projectStrokeOnPoints;t.Polygon?t.warn("fabric.Polygon is already defined"):(t.Polygon=t.util.createClass(t.Polyline,{type:"polygon",_projectStrokeOnPoints:function(){return i(this.points,this)},_render:function(e){this.commonRender(e)&&(e.closePath(),this._renderPaintInOrder(e))}}),t.Polygon.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat(),t.Polygon.fromElement=t.Polyline.fromElementGenerator("Polygon"),t.Polygon.fromObject=function(e,i){t.Object._fromObject("Polygon",e,i,"points")})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.array.min,s=t.util.array.max,n=t.util.object.extend,r=t.util.object.clone,o=t.util.toFixed;t.Path?t.warn("fabric.Path is already defined"):(t.Path=t.util.createClass(t.Object,{type:"path",path:null,cacheProperties:t.Object.prototype.cacheProperties.concat("path","fillRule"),stateProperties:t.Object.prototype.stateProperties.concat("path"),initialize:function(e,t){delete(t=r(t||{})).path,this.callSuper("initialize",t),this._setPath(e||[],t)},_setPath:function(e,i){this.path=t.util.makePathSimpler(Array.isArray(e)?e:t.util.parsePath(e)),t.Polyline.prototype._setPositionDimensions.call(this,i||{})},_renderPathCommands:function(e){var t,i=0,s=0,n=0,r=0,o=0,a=0,c=-this.pathOffset.x,l=-this.pathOffset.y;e.beginPath();for(var h=0,d=this.path.length;h<d;++h)switch((t=this.path[h])[0]){case"L":n=t[1],r=t[2],e.lineTo(n+c,r+l);break;case"M":i=n=t[1],s=r=t[2],e.moveTo(n+c,r+l);break;case"C":n=t[5],r=t[6],o=t[3],a=t[4],e.bezierCurveTo(t[1]+c,t[2]+l,o+c,a+l,n+c,r+l);break;case"Q":e.quadraticCurveTo(t[1]+c,t[2]+l,t[3]+c,t[4]+l),n=t[3],r=t[4],o=t[1],a=t[2];break;case"z":case"Z":n=i,r=s,e.closePath()}},_render:function(e){this._renderPathCommands(e),this._renderPaintInOrder(e)},toString:function(){return"#<fabric.Path ("+this.complexity()+'): { "top": '+this.top+', "left": '+this.left+" }>"},toObject:function(e){return n(this.callSuper("toObject",e),{path:this.path.map((function(e){return e.slice()}))})},toDatalessObject:function(e){var t=this.toObject(["sourcePath"].concat(e));return t.sourcePath&&delete t.path,t},_toSVG:function(){return["<path ","COMMON_PARTS",'d="',t.util.joinPath(this.path),'" stroke-linecap="round" ',"/>\n"]},_getOffsetTransform:function(){var e=t.Object.NUM_FRACTION_DIGITS;return" translate("+o(-this.pathOffset.x,e)+", "+o(-this.pathOffset.y,e)+")"},toClipPathSVG:function(e){var t=this._getOffsetTransform();return"\t"+this._createBaseClipPathSVGMarkup(this._toSVG(),{reviver:e,additionalTransform:t})},toSVG:function(e){var t=this._getOffsetTransform();return this._createBaseSVGMarkup(this._toSVG(),{reviver:e,additionalTransform:t})},complexity:function(){return this.path.length},_calcDimensions:function(){for(var e,n,r=[],o=[],a=0,c=0,l=0,h=0,d=0,u=this.path.length;d<u;++d){switch((e=this.path[d])[0]){case"L":l=e[1],h=e[2],n=[];break;case"M":a=l=e[1],c=h=e[2],n=[];break;case"C":n=t.util.getBoundsOfCurve(l,h,e[1],e[2],e[3],e[4],e[5],e[6]),l=e[5],h=e[6];break;case"Q":n=t.util.getBoundsOfCurve(l,h,e[1],e[2],e[1],e[2],e[3],e[4]),l=e[3],h=e[4];break;case"z":case"Z":l=a,h=c}n.forEach((function(e){r.push(e.x),o.push(e.y)})),r.push(l),o.push(h)}var g=i(r)||0,p=i(o)||0;return{left:g,top:p,width:(s(r)||0)-g,height:(s(o)||0)-p}}}),t.Path.fromObject=function(e,i){if("string"===typeof e.sourcePath){var s=e.sourcePath;t.loadSVGFromURL(s,(function(s){var n=s[0];n.setOptions(e),e.clipPath?t.util.enlivenObjects([e.clipPath],(function(e){n.clipPath=e[0],i&&i(n)})):i&&i(n)}))}else t.Object._fromObject("Path",e,i,"path")},t.Path.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat(["d"]),t.Path.fromElement=function(e,i,s){var r=t.parseAttributes(e,t.Path.ATTRIBUTE_NAMES);r.fromSVG=!0,i(new t.Path(r.d,n(r,s)))})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.array.min,s=t.util.array.max;t.Group||(t.Group=t.util.createClass(t.Object,t.Collection,{type:"group",strokeWidth:0,subTargetCheck:!1,cacheProperties:[],useSetOnGroup:!1,initialize:function(e,t,i){t=t||{},this._objects=[],i&&this.callSuper("initialize",t),this._objects=e||[];for(var s=this._objects.length;s--;)this._objects[s].group=this;if(i)this._updateObjectsACoords();else{var n=t&&t.centerPoint;void 0!==t.originX&&(this.originX=t.originX),void 0!==t.originY&&(this.originY=t.originY),n||this._calcBounds(),this._updateObjectsCoords(n),delete t.centerPoint,this.callSuper("initialize",t)}this.setCoords()},_updateObjectsACoords:function(){for(var e=this._objects.length;e--;)this._objects[e].setCoords(true)},_updateObjectsCoords:function(e){e=e||this.getCenterPoint();for(var t=this._objects.length;t--;)this._updateObjectCoords(this._objects[t],e)},_updateObjectCoords:function(e,t){var i=e.left,s=e.top;e.set({left:i-t.x,top:s-t.y}),e.group=this,e.setCoords(!0)},toString:function(){return"#<fabric.Group: ("+this.complexity()+")>"},addWithUpdate:function(e){var i=!!this.group;return this._restoreObjectsState(),t.util.resetObjectTransform(this),e&&(i&&t.util.removeTransformFromObject(e,this.group.calcTransformMatrix()),this._objects.push(e),e.group=this,e._set("canvas",this.canvas)),this._calcBounds(),this._updateObjectsCoords(),this.dirty=!0,i?this.group.addWithUpdate():this.setCoords(),this},removeWithUpdate:function(e){return this._restoreObjectsState(),t.util.resetObjectTransform(this),this.remove(e),this._calcBounds(),this._updateObjectsCoords(),this.setCoords(),this.dirty=!0,this},_onObjectAdded:function(e){this.dirty=!0,e.group=this,e._set("canvas",this.canvas)},_onObjectRemoved:function(e){this.dirty=!0,delete e.group},_set:function(e,i){var s=this._objects.length;if(this.useSetOnGroup)for(;s--;)this._objects[s].setOnGroup(e,i);if("canvas"===e)for(;s--;)this._objects[s]._set(e,i);t.Object.prototype._set.call(this,e,i)},toObject:function(e){var i=this.includeDefaultValues,s=this._objects.filter((function(e){return!e.excludeFromExport})).map((function(t){var s=t.includeDefaultValues;t.includeDefaultValues=i;var n=t.toObject(e);return t.includeDefaultValues=s,n})),n=t.Object.prototype.toObject.call(this,e);return n.objects=s,n},toDatalessObject:function(e){var i,s=this.sourcePath;if(s)i=s;else{var n=this.includeDefaultValues;i=this._objects.map((function(t){var i=t.includeDefaultValues;t.includeDefaultValues=n;var s=t.toDatalessObject(e);return t.includeDefaultValues=i,s}))}var r=t.Object.prototype.toDatalessObject.call(this,e);return r.objects=i,r},render:function(e){this._transformDone=!0,this.callSuper("render",e),this._transformDone=!1},shouldCache:function(){var e=t.Object.prototype.shouldCache.call(this);if(e)for(var i=0,s=this._objects.length;i<s;i++)if(this._objects[i].willDrawShadow())return this.ownCaching=!1,!1;return e},willDrawShadow:function(){if(t.Object.prototype.willDrawShadow.call(this))return!0;for(var e=0,i=this._objects.length;e<i;e++)if(this._objects[e].willDrawShadow())return!0;return!1},isOnACache:function(){return this.ownCaching||this.group&&this.group.isOnACache()},drawObject:function(e){for(var t=0,i=this._objects.length;t<i;t++)this._objects[t].render(e);this._drawClipPath(e,this.clipPath)},isCacheDirty:function(e){if(this.callSuper("isCacheDirty",e))return!0;if(!this.statefullCache)return!1;for(var t=0,i=this._objects.length;t<i;t++)if(this._objects[t].isCacheDirty(!0)){if(this._cacheCanvas){var s=this.cacheWidth/this.zoomX,n=this.cacheHeight/this.zoomY;this._cacheContext.clearRect(-s/2,-n/2,s,n)}return!0}return!1},_restoreObjectsState:function(){var e=this.calcOwnMatrix();return this._objects.forEach((function(i){t.util.addTransformToObject(i,e),delete i.group,i.setCoords()})),this},destroy:function(){return this._objects.forEach((function(e){e.set("dirty",!0)})),this._restoreObjectsState()},dispose:function(){this.callSuper("dispose"),this.forEachObject((function(e){e.dispose&&e.dispose()})),this._objects=[]},toActiveSelection:function(){if(this.canvas){var e=this._objects,i=this.canvas;this._objects=[];var s=this.toObject();delete s.objects;var n=new t.ActiveSelection([]);return n.set(s),n.type="activeSelection",i.remove(this),e.forEach((function(e){e.group=n,e.dirty=!0,i.add(e)})),n.canvas=i,n._objects=e,i._activeObject=n,n.setCoords(),n}},ungroupOnCanvas:function(){return this._restoreObjectsState()},setObjectsCoords:function(){return this.forEachObject((function(e){e.setCoords(true)})),this},_calcBounds:function(e){for(var t,i,s,n,r=[],o=[],a=["tr","br","bl","tl"],c=0,l=this._objects.length,h=a.length;c<l;++c){for(s=(t=this._objects[c]).calcACoords(),n=0;n<h;n++)i=a[n],r.push(s[i].x),o.push(s[i].y);t.aCoords=s}this._getBounds(r,o,e)},_getBounds:function(e,n,r){var o=new t.Point(i(e),i(n)),a=new t.Point(s(e),s(n)),c=o.y||0,l=o.x||0,h=a.x-o.x||0,d=a.y-o.y||0;this.width=h,this.height=d,r||this.setPositionByOrigin({x:l,y:c},"left","top")},_toSVG:function(e){for(var t=["<g ","COMMON_PARTS"," >\n"],i=0,s=this._objects.length;i<s;i++)t.push("\t\t",this._objects[i].toSVG(e));return t.push("</g>\n"),t},getSvgStyles:function(){var e="undefined"!==typeof this.opacity&&1!==this.opacity?"opacity: "+this.opacity+";":"",t=this.visible?"":" visibility: hidden;";return[e,this.getSvgFilter(),t].join("")},toClipPathSVG:function(e){for(var t=[],i=0,s=this._objects.length;i<s;i++)t.push("\t",this._objects[i].toClipPathSVG(e));return this._createBaseClipPathSVGMarkup(t,{reviver:e})}}),t.Group.fromObject=function(e,i){var s=e.objects,n=t.util.object.clone(e,!0);delete n.objects,"string"!==typeof s?t.util.enlivenObjects(s,(function(s){t.util.enlivenObjectEnlivables(e,n,(function(){i&&i(new t.Group(s,n,!0))}))})):t.loadSVGFromURL(s,(function(r){var o=t.util.groupSVGElements(r,e,s),a=n.clipPath;delete n.clipPath,o.set(n),a?t.util.enlivenObjects([a],(function(e){o.clipPath=e[0],i&&i(o)})):i&&i(o)}))})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={});t.ActiveSelection||(t.ActiveSelection=t.util.createClass(t.Group,{type:"activeSelection",initialize:function(e,i){i=i||{},this._objects=e||[];for(var s=this._objects.length;s--;)this._objects[s].group=this;i.originX&&(this.originX=i.originX),i.originY&&(this.originY=i.originY),this._calcBounds(),this._updateObjectsCoords(),t.Object.prototype.initialize.call(this,i),this.setCoords()},toGroup:function(){var e=this._objects.concat();this._objects=[];var i=t.Object.prototype.toObject.call(this),s=new t.Group([]);if(delete i.type,s.set(i),e.forEach((function(e){e.canvas.remove(e),e.group=s})),s._objects=e,!this.canvas)return s;var n=this.canvas;return n.add(s),n._activeObject=s,s.setCoords(),s},onDeselect:function(){return this.destroy(),!1},toString:function(){return"#<fabric.ActiveSelection: ("+this.complexity()+")>"},shouldCache:function(){return!1},isOnACache:function(){return!1},_renderControls:function(e,t,i){e.save(),e.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1,"undefined"===typeof(i=i||{}).hasControls&&(i.hasControls=!1),i.forActiveSelection=!0;for(var s=0,n=this._objects.length;s<n;s++)this._objects[s]._renderControls(e,i);this.callSuper("_renderControls",e,t),e.restore()}}),t.ActiveSelection.fromObject=function(e,i){t.util.enlivenObjects(e.objects,(function(s){delete e.objects,i&&i(new t.ActiveSelection(s,e,!0))}))})}(t),function(e){"use strict";var t=n.util.object.extend;e.fabric||(e.fabric={}),e.fabric.Image?n.warn("fabric.Image is already defined."):(n.Image=n.util.createClass(n.Object,{type:"image",strokeWidth:0,srcFromAttribute:!1,_lastScaleX:1,_lastScaleY:1,_filterScalingX:1,_filterScalingY:1,minimumScaleTrigger:.5,stateProperties:n.Object.prototype.stateProperties.concat("cropX","cropY"),cacheProperties:n.Object.prototype.cacheProperties.concat("cropX","cropY"),cacheKey:"",cropX:0,cropY:0,imageSmoothing:!0,initialize:function(e,t){t||(t={}),this.filters=[],this.cacheKey="texture"+n.Object.__uid++,this.callSuper("initialize",t),this._initElement(e,t)},getElement:function(){return this._element||{}},setElement:function(e,t){return this.removeTexture(this.cacheKey),this.removeTexture(this.cacheKey+"_filtered"),this._element=e,this._originalElement=e,this._initConfig(t),0!==this.filters.length&&this.applyFilters(),this.resizeFilter&&this.applyResizeFilters(),this},removeTexture:function(e){var t=n.filterBackend;t&&t.evictCachesForKey&&t.evictCachesForKey(e)},dispose:function(){this.callSuper("dispose"),this.removeTexture(this.cacheKey),this.removeTexture(this.cacheKey+"_filtered"),this._cacheContext=void 0,["_originalElement","_element","_filteredEl","_cacheCanvas"].forEach(function(e){n.util.cleanUpJsdomNode(this[e]),this[e]=void 0}.bind(this))},getCrossOrigin:function(){return this._originalElement&&(this._originalElement.crossOrigin||null)},getOriginalSize:function(){var e=this.getElement();return{width:e.naturalWidth||e.width,height:e.naturalHeight||e.height}},_stroke:function(e){if(this.stroke&&0!==this.strokeWidth){var t=this.width/2,i=this.height/2;e.beginPath(),e.moveTo(-t,-i),e.lineTo(t,-i),e.lineTo(t,i),e.lineTo(-t,i),e.lineTo(-t,-i),e.closePath()}},toObject:function(e){var i=[];this.filters.forEach((function(e){e&&i.push(e.toObject())}));var s=t(this.callSuper("toObject",["cropX","cropY"].concat(e)),{src:this.getSrc(),crossOrigin:this.getCrossOrigin(),filters:i});return this.resizeFilter&&(s.resizeFilter=this.resizeFilter.toObject()),s},hasCrop:function(){return this.cropX||this.cropY||this.width<this._element.width||this.height<this._element.height},_toSVG:function(){var e,t=[],i=[],s=this._element,r=-this.width/2,o=-this.height/2,a="",c="";if(!s)return[];if(this.hasCrop()){var l=n.Object.__uid++;t.push('<clipPath id="imageCrop_'+l+'">\n','\t<rect x="'+r+'" y="'+o+'" width="'+this.width+'" height="'+this.height+'" />\n',"</clipPath>\n"),a=' clip-path="url(#imageCrop_'+l+')" '}if(this.imageSmoothing||(c='" image-rendering="optimizeSpeed'),i.push("\t<image ","COMMON_PARTS",'xlink:href="',this.getSvgSrc(!0),'" x="',r-this.cropX,'" y="',o-this.cropY,'" width="',s.width||s.naturalWidth,'" height="',s.height||s.height,c,'"',a,"></image>\n"),this.stroke||this.strokeDashArray){var h=this.fill;this.fill=null,e=["\t<rect ",'x="',r,'" y="',o,'" width="',this.width,'" height="',this.height,'" style="',this.getSvgStyles(),'"/>\n'],this.fill=h}return t="fill"!==this.paintFirst?t.concat(e,i):t.concat(i,e)},getSrc:function(e){var t=e?this._element:this._originalElement;return t?t.toDataURL?t.toDataURL():this.srcFromAttribute?t.getAttribute("src"):t.src:this.src||""},setSrc:function(e,t,i){return n.util.loadImage(e,(function(e,s){this.setElement(e,i),this._setWidthHeight(),t&&t(this,s)}),this,i&&i.crossOrigin),this},toString:function(){return'#<fabric.Image: { src: "'+this.getSrc()+'" }>'},applyResizeFilters:function(){var e=this.resizeFilter,t=this.minimumScaleTrigger,i=this.getTotalObjectScaling(),s=i.scaleX,r=i.scaleY,o=this._filteredEl||this._originalElement;if(this.group&&this.set("dirty",!0),!e||s>t&&r>t)return this._element=o,this._filterScalingX=1,this._filterScalingY=1,this._lastScaleX=s,void(this._lastScaleY=r);n.filterBackend||(n.filterBackend=n.initFilterBackend());var a=n.util.createCanvasElement(),c=this._filteredEl?this.cacheKey+"_filtered":this.cacheKey,l=o.width,h=o.height;a.width=l,a.height=h,this._element=a,this._lastScaleX=e.scaleX=s,this._lastScaleY=e.scaleY=r,n.filterBackend.applyFilters([e],o,l,h,this._element,c),this._filterScalingX=a.width/this._originalElement.width,this._filterScalingY=a.height/this._originalElement.height},applyFilters:function(e){if(e=(e=e||this.filters||[]).filter((function(e){return e&&!e.isNeutralState()})),this.set("dirty",!0),this.removeTexture(this.cacheKey+"_filtered"),0===e.length)return this._element=this._originalElement,this._filteredEl=null,this._filterScalingX=1,this._filterScalingY=1,this;var t=this._originalElement,i=t.naturalWidth||t.width,s=t.naturalHeight||t.height;if(this._element===this._originalElement){var r=n.util.createCanvasElement();r.width=i,r.height=s,this._element=r,this._filteredEl=r}else this._element=this._filteredEl,this._filteredEl.getContext("2d").clearRect(0,0,i,s),this._lastScaleX=1,this._lastScaleY=1;return n.filterBackend||(n.filterBackend=n.initFilterBackend()),n.filterBackend.applyFilters(e,this._originalElement,i,s,this._element,this.cacheKey),this._originalElement.width===this._element.width&&this._originalElement.height===this._element.height||(this._filterScalingX=this._element.width/this._originalElement.width,this._filterScalingY=this._element.height/this._originalElement.height),this},_render:function(e){n.util.setImageSmoothing(e,this.imageSmoothing),!0!==this.isMoving&&this.resizeFilter&&this._needsResize()&&this.applyResizeFilters(),this._stroke(e),this._renderPaintInOrder(e)},drawCacheOnCanvas:function(e){n.util.setImageSmoothing(e,this.imageSmoothing),n.Object.prototype.drawCacheOnCanvas.call(this,e)},shouldCache:function(){return this.needsItsOwnCache()},_renderFill:function(e){var t=this._element;if(t){var i=this._filterScalingX,s=this._filterScalingY,n=this.width,r=this.height,o=Math.min,a=Math.max,c=a(this.cropX,0),l=a(this.cropY,0),h=t.naturalWidth||t.width,d=t.naturalHeight||t.height,u=c*i,g=l*s,p=o(n*i,h-u),m=o(r*s,d-g),f=-n/2,_=-r/2,v=o(n,h/i-c),C=o(r,d/s-l);t&&e.drawImage(t,u,g,p,m,f,_,v,C)}},_needsResize:function(){var e=this.getTotalObjectScaling();return e.scaleX!==this._lastScaleX||e.scaleY!==this._lastScaleY},_resetWidthHeight:function(){this.set(this.getOriginalSize())},_initElement:function(e,t){this.setElement(n.util.getById(e),t),n.util.addClass(this.getElement(),n.Image.CSS_CANVAS)},_initConfig:function(e){e||(e={}),this.setOptions(e),this._setWidthHeight(e)},_initFilters:function(e,t){e&&e.length?n.util.enlivenObjects(e,(function(e){t&&t(e)}),"fabric.Image.filters"):t&&t()},_setWidthHeight:function(e){e||(e={});var t=this.getElement();this.width=e.width||t.naturalWidth||t.width||0,this.height=e.height||t.naturalHeight||t.height||0},parsePreserveAspectRatioAttribute:function(){var e,t=n.util.parsePreserveAspectRatioAttribute(this.preserveAspectRatio||""),i=this._element.width,s=this._element.height,r=1,o=1,a=0,c=0,l=0,h=0,d=this.width,u=this.height,g={width:d,height:u};return!t||"none"===t.alignX&&"none"===t.alignY?(r=d/i,o=u/s):("meet"===t.meetOrSlice&&(e=(d-i*(r=o=n.util.findScaleToFit(this._element,g)))/2,"Min"===t.alignX&&(a=-e),"Max"===t.alignX&&(a=e),e=(u-s*o)/2,"Min"===t.alignY&&(c=-e),"Max"===t.alignY&&(c=e)),"slice"===t.meetOrSlice&&(e=i-d/(r=o=n.util.findScaleToCover(this._element,g)),"Mid"===t.alignX&&(l=e/2),"Max"===t.alignX&&(l=e),e=s-u/o,"Mid"===t.alignY&&(h=e/2),"Max"===t.alignY&&(h=e),i=d/r,s=u/o)),{width:i,height:s,scaleX:r,scaleY:o,offsetLeft:a,offsetTop:c,cropX:l,cropY:h}}}),n.Image.CSS_CANVAS="canvas-img",n.Image.prototype.getSvgSrc=n.Image.prototype.getSrc,n.Image.fromObject=function(e,t){var i=n.util.object.clone(e);n.util.loadImage(i.src,(function(e,s){s?t&&t(null,!0):n.Image.prototype._initFilters.call(i,i.filters,(function(s){i.filters=s||[],n.Image.prototype._initFilters.call(i,[i.resizeFilter],(function(s){i.resizeFilter=s[0],n.util.enlivenObjectEnlivables(i,i,(function(){var s=new n.Image(e,i);t(s,!1)}))}))}))}),null,i.crossOrigin)},n.Image.fromURL=function(e,t,i){n.util.loadImage(e,(function(e,s){t&&t(new n.Image(e,i),s)}),null,i&&i.crossOrigin)},n.Image.ATTRIBUTE_NAMES=n.SHARED_ATTRIBUTES.concat("x y width height preserveAspectRatio xlink:href crossOrigin image-rendering".split(" ")),n.Image.fromElement=function(e,i,s){var r=n.parseAttributes(e,n.Image.ATTRIBUTE_NAMES);n.Image.fromURL(r["xlink:href"],i,t(s?n.util.object.clone(s):{},r))})}(t),n.util.object.extend(n.Object.prototype,{_getAngleValueForStraighten:function(){var e=this.angle%360;return e>0?90*Math.round((e-1)/90):90*Math.round(e/90)},straighten:function(){return this.rotate(this._getAngleValueForStraighten())},fxStraighten:function(e){var t=function(){},i=(e=e||{}).onComplete||t,s=e.onChange||t,r=this;return n.util.animate({target:this,startValue:this.get("angle"),endValue:this._getAngleValueForStraighten(),duration:this.FX_DURATION,onChange:function(e){r.rotate(e),s()},onComplete:function(){r.setCoords(),i()}})}}),n.util.object.extend(n.StaticCanvas.prototype,{straightenObject:function(e){return e.straighten(),this.requestRenderAll(),this},fxStraightenObject:function(e){return e.fxStraighten({onChange:this.requestRenderAllBound})}}),function(){"use strict";function e(e,t){var i="precision "+t+" float;\nvoid main(){}",s=e.createShader(e.FRAGMENT_SHADER);return e.shaderSource(s,i),e.compileShader(s),!!e.getShaderParameter(s,e.COMPILE_STATUS)}function t(e){e&&e.tileSize&&(this.tileSize=e.tileSize),this.setupGLContext(this.tileSize,this.tileSize),this.captureGPUInfo()}n.isWebglSupported=function(t){if(n.isLikelyNode)return!1;t=t||n.WebglFilterBackend.prototype.tileSize;var i=document.createElement("canvas"),s=i.getContext("webgl")||i.getContext("experimental-webgl"),r=!1;if(s){n.maxTextureSize=s.getParameter(s.MAX_TEXTURE_SIZE),r=n.maxTextureSize>=t;for(var o=["highp","mediump","lowp"],a=0;a<3;a++)if(e(s,o[a])){n.webGlPrecision=o[a];break}}return this.isSupported=r,r},n.WebglFilterBackend=t,t.prototype={tileSize:2048,resources:{},setupGLContext:function(e,t){this.dispose(),this.createWebGLCanvas(e,t),this.aPosition=new Float32Array([0,0,0,1,1,0,1,1]),this.chooseFastestCopyGLTo2DMethod(e,t)},chooseFastestCopyGLTo2DMethod:function(e,t){var i,s="undefined"!==typeof window.performance;try{new ImageData(1,1),i=!0}catch(p){i=!1}var r="undefined"!==typeof ArrayBuffer,c="undefined"!==typeof Uint8ClampedArray;if(s&&i&&r&&c){var l=n.util.createCanvasElement(),h=new ArrayBuffer(e*t*4);if(n.forceGLPutImageData)return this.imageBuffer=h,void(this.copyGLTo2D=a);var d,u,g={imageBuffer:h,destinationWidth:e,destinationHeight:t,targetCanvas:l};l.width=e,l.height=t,d=window.performance.now(),o.call(g,this.gl,g),u=window.performance.now()-d,d=window.performance.now(),a.call(g,this.gl,g),u>window.performance.now()-d?(this.imageBuffer=h,this.copyGLTo2D=a):this.copyGLTo2D=o}},createWebGLCanvas:function(e,t){var i=n.util.createCanvasElement();i.width=e,i.height=t;var s={alpha:!0,premultipliedAlpha:!1,depth:!1,stencil:!1,antialias:!1},r=i.getContext("webgl",s);r||(r=i.getContext("experimental-webgl",s)),r&&(r.clearColor(0,0,0,0),this.canvas=i,this.gl=r)},applyFilters:function(e,t,i,s,n,r){var o,a=this.gl;r&&(o=this.getCachedTexture(r,t));var c={originalWidth:t.width||t.originalWidth,originalHeight:t.height||t.originalHeight,sourceWidth:i,sourceHeight:s,destinationWidth:i,destinationHeight:s,context:a,sourceTexture:this.createTexture(a,i,s,!o&&t),targetTexture:this.createTexture(a,i,s),originalTexture:o||this.createTexture(a,i,s,!o&&t),passes:e.length,webgl:!0,aPosition:this.aPosition,programCache:this.programCache,pass:0,filterBackend:this,targetCanvas:n},l=a.createFramebuffer();return a.bindFramebuffer(a.FRAMEBUFFER,l),e.forEach((function(e){e&&e.applyTo(c)})),function(e){var t=e.targetCanvas,i=t.width,s=t.height,n=e.destinationWidth,r=e.destinationHeight;i===n&&s===r||(t.width=n,t.height=r)}(c),this.copyGLTo2D(a,c),a.bindTexture(a.TEXTURE_2D,null),a.deleteTexture(c.sourceTexture),a.deleteTexture(c.targetTexture),a.deleteFramebuffer(l),n.getContext("2d").setTransform(1,0,0,1,0,0),c},dispose:function(){this.canvas&&(this.canvas=null,this.gl=null),this.clearWebGLCaches()},clearWebGLCaches:function(){this.programCache={},this.textureCache={}},createTexture:function(e,t,i,s,n){var r=e.createTexture();return e.bindTexture(e.TEXTURE_2D,r),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,n||e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,n||e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),s?e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,s):e.texImage2D(e.TEXTURE_2D,0,e.RGBA,t,i,0,e.RGBA,e.UNSIGNED_BYTE,null),r},getCachedTexture:function(e,t){if(this.textureCache[e])return this.textureCache[e];var i=this.createTexture(this.gl,t.width,t.height,t);return this.textureCache[e]=i,i},evictCachesForKey:function(e){this.textureCache[e]&&(this.gl.deleteTexture(this.textureCache[e]),delete this.textureCache[e])},copyGLTo2D:o,captureGPUInfo:function(){if(this.gpuInfo)return this.gpuInfo;var e=this.gl,t={renderer:"",vendor:""};if(!e)return t;var i=e.getExtension("WEBGL_debug_renderer_info");if(i){var s=e.getParameter(i.UNMASKED_RENDERER_WEBGL),n=e.getParameter(i.UNMASKED_VENDOR_WEBGL);s&&(t.renderer=s.toLowerCase()),n&&(t.vendor=n.toLowerCase())}return this.gpuInfo=t,t}}}(),function(){"use strict";var e=function(){};function t(){}n.Canvas2dFilterBackend=t,t.prototype={evictCachesForKey:e,dispose:e,clearWebGLCaches:e,resources:{},applyFilters:function(e,t,i,s,n){var r=n.getContext("2d");r.drawImage(t,0,0,i,s);var o={sourceWidth:i,sourceHeight:s,imageData:r.getImageData(0,0,i,s),originalEl:t,originalImageData:r.getImageData(0,0,i,s),canvasEl:n,ctx:r,filterBackend:this};return e.forEach((function(e){e.applyTo(o)})),o.imageData.width===i&&o.imageData.height===s||(n.width=o.imageData.width,n.height=o.imageData.height),r.putImageData(o.imageData,0,0),o}}}(),n.Image=n.Image||{},n.Image.filters=n.Image.filters||{},n.Image.filters.BaseFilter=n.util.createClass({type:"BaseFilter",vertexSource:"attribute vec2 aPosition;\nvarying vec2 vTexCoord;\nvoid main() {\nvTexCoord = aPosition;\ngl_Position = vec4(aPosition * 2.0 - 1.0, 0.0, 1.0);\n}",fragmentSource:"precision highp float;\nvarying vec2 vTexCoord;\nuniform sampler2D uTexture;\nvoid main() {\ngl_FragColor = texture2D(uTexture, vTexCoord);\n}",initialize:function(e){e&&this.setOptions(e)},setOptions:function(e){for(var t in e)this[t]=e[t]},createProgram:function(e,t,i){t=t||this.fragmentSource,i=i||this.vertexSource,"highp"!==n.webGlPrecision&&(t=t.replace(/precision highp float/g,"precision "+n.webGlPrecision+" float"));var s=e.createShader(e.VERTEX_SHADER);if(e.shaderSource(s,i),e.compileShader(s),!e.getShaderParameter(s,e.COMPILE_STATUS))throw new Error("Vertex shader compile error for "+this.type+": "+e.getShaderInfoLog(s));var r=e.createShader(e.FRAGMENT_SHADER);if(e.shaderSource(r,t),e.compileShader(r),!e.getShaderParameter(r,e.COMPILE_STATUS))throw new Error("Fragment shader compile error for "+this.type+": "+e.getShaderInfoLog(r));var o=e.createProgram();if(e.attachShader(o,s),e.attachShader(o,r),e.linkProgram(o),!e.getProgramParameter(o,e.LINK_STATUS))throw new Error('Shader link error for "${this.type}" '+e.getProgramInfoLog(o));var a=this.getAttributeLocations(e,o),c=this.getUniformLocations(e,o)||{};return c.uStepW=e.getUniformLocation(o,"uStepW"),c.uStepH=e.getUniformLocation(o,"uStepH"),{program:o,attributeLocations:a,uniformLocations:c}},getAttributeLocations:function(e,t){return{aPosition:e.getAttribLocation(t,"aPosition")}},getUniformLocations:function(){return{}},sendAttributeData:function(e,t,i){var s=t.aPosition,n=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,n),e.enableVertexAttribArray(s),e.vertexAttribPointer(s,2,e.FLOAT,!1,0,0),e.bufferData(e.ARRAY_BUFFER,i,e.STATIC_DRAW)},_setupFrameBuffer:function(e){var t,i,s=e.context;e.passes>1?(t=e.destinationWidth,i=e.destinationHeight,e.sourceWidth===t&&e.sourceHeight===i||(s.deleteTexture(e.targetTexture),e.targetTexture=e.filterBackend.createTexture(s,t,i)),s.framebufferTexture2D(s.FRAMEBUFFER,s.COLOR_ATTACHMENT0,s.TEXTURE_2D,e.targetTexture,0)):(s.bindFramebuffer(s.FRAMEBUFFER,null),s.finish())},_swapTextures:function(e){e.passes--,e.pass++;var t=e.targetTexture;e.targetTexture=e.sourceTexture,e.sourceTexture=t},isNeutralState:function(){var e=this.mainParameter,t=n.Image.filters[this.type].prototype;if(e){if(Array.isArray(t[e])){for(var i=t[e].length;i--;)if(this[e][i]!==t[e][i])return!1;return!0}return t[e]===this[e]}return!1},applyTo:function(e){e.webgl?(this._setupFrameBuffer(e),this.applyToWebGL(e),this._swapTextures(e)):this.applyTo2d(e)},retrieveShader:function(e){return e.programCache.hasOwnProperty(this.type)||(e.programCache[this.type]=this.createProgram(e.context)),e.programCache[this.type]},applyToWebGL:function(e){var t=e.context,i=this.retrieveShader(e);0===e.pass&&e.originalTexture?t.bindTexture(t.TEXTURE_2D,e.originalTexture):t.bindTexture(t.TEXTURE_2D,e.sourceTexture),t.useProgram(i.program),this.sendAttributeData(t,i.attributeLocations,e.aPosition),t.uniform1f(i.uniformLocations.uStepW,1/e.sourceWidth),t.uniform1f(i.uniformLocations.uStepH,1/e.sourceHeight),this.sendUniformData(t,i.uniformLocations),t.viewport(0,0,e.destinationWidth,e.destinationHeight),t.drawArrays(t.TRIANGLE_STRIP,0,4)},bindAdditionalTexture:function(e,t,i){e.activeTexture(i),e.bindTexture(e.TEXTURE_2D,t),e.activeTexture(e.TEXTURE0)},unbindAdditionalTexture:function(e,t){e.activeTexture(t),e.bindTexture(e.TEXTURE_2D,null),e.activeTexture(e.TEXTURE0)},getMainParameter:function(){return this[this.mainParameter]},setMainParameter:function(e){this[this.mainParameter]=e},sendUniformData:function(){},createHelpLayer:function(e){if(!e.helpLayer){var t=document.createElement("canvas");t.width=e.sourceWidth,t.height=e.sourceHeight,e.helpLayer=t}},toObject:function(){var e={type:this.type},t=this.mainParameter;return t&&(e[t]=this[t]),e},toJSON:function(){return this.toObject()}}),n.Image.filters.BaseFilter.fromObject=function(e,t){var i=new n.Image.filters[e.type](e);return t&&t(i),i},function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.ColorMatrix=s(i.BaseFilter,{type:"ColorMatrix",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nvarying vec2 vTexCoord;\nuniform mat4 uColorMatrix;\nuniform vec4 uConstants;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\ncolor *= uColorMatrix;\ncolor += uConstants;\ngl_FragColor = color;\n}",matrix:[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],mainParameter:"matrix",colorsOnly:!0,initialize:function(e){this.callSuper("initialize",e),this.matrix=this.matrix.slice(0)},applyTo2d:function(e){var t,i,s,n,r,o=e.imageData.data,a=o.length,c=this.matrix,l=this.colorsOnly;for(r=0;r<a;r+=4)t=o[r],i=o[r+1],s=o[r+2],l?(o[r]=t*c[0]+i*c[1]+s*c[2]+255*c[4],o[r+1]=t*c[5]+i*c[6]+s*c[7]+255*c[9],o[r+2]=t*c[10]+i*c[11]+s*c[12]+255*c[14]):(n=o[r+3],o[r]=t*c[0]+i*c[1]+s*c[2]+n*c[3]+255*c[4],o[r+1]=t*c[5]+i*c[6]+s*c[7]+n*c[8]+255*c[9],o[r+2]=t*c[10]+i*c[11]+s*c[12]+n*c[13]+255*c[14],o[r+3]=t*c[15]+i*c[16]+s*c[17]+n*c[18]+255*c[19])},getUniformLocations:function(e,t){return{uColorMatrix:e.getUniformLocation(t,"uColorMatrix"),uConstants:e.getUniformLocation(t,"uConstants")}},sendUniformData:function(e,t){var i=this.matrix,s=[i[0],i[1],i[2],i[3],i[5],i[6],i[7],i[8],i[10],i[11],i[12],i[13],i[15],i[16],i[17],i[18]],n=[i[4],i[9],i[14],i[19]];e.uniformMatrix4fv(t.uColorMatrix,!1,s),e.uniform4fv(t.uConstants,n)}}),t.Image.filters.ColorMatrix.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.Brightness=s(i.BaseFilter,{type:"Brightness",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uBrightness;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\ncolor.rgb += uBrightness;\ngl_FragColor = color;\n}",brightness:0,mainParameter:"brightness",applyTo2d:function(e){if(0!==this.brightness){var t,i=e.imageData.data,s=i.length,n=Math.round(255*this.brightness);for(t=0;t<s;t+=4)i[t]=i[t]+n,i[t+1]=i[t+1]+n,i[t+2]=i[t+2]+n}},getUniformLocations:function(e,t){return{uBrightness:e.getUniformLocation(t,"uBrightness")}},sendUniformData:function(e,t){e.uniform1f(t.uBrightness,this.brightness)}}),t.Image.filters.Brightness.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,s=t.Image.filters,n=t.util.createClass;s.Convolute=n(s.BaseFilter,{type:"Convolute",opaque:!1,matrix:[0,0,0,0,1,0,0,0,0],fragmentSource:{Convolute_3_1:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[9];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 0);\nfor (float h = 0.0; h < 3.0; h+=1.0) {\nfor (float w = 0.0; w < 3.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 1), uStepH * (h - 1));\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 3.0 + w)];\n}\n}\ngl_FragColor = color;\n}",Convolute_3_0:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[9];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 1);\nfor (float h = 0.0; h < 3.0; h+=1.0) {\nfor (float w = 0.0; w < 3.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 1.0), uStepH * (h - 1.0));\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 3.0 + w)];\n}\n}\nfloat alpha = texture2D(uTexture, vTexCoord).a;\ngl_FragColor = color;\ngl_FragColor.a = alpha;\n}",Convolute_5_1:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[25];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 0);\nfor (float h = 0.0; h < 5.0; h+=1.0) {\nfor (float w = 0.0; w < 5.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 2.0), uStepH * (h - 2.0));\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 5.0 + w)];\n}\n}\ngl_FragColor = color;\n}",Convolute_5_0:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[25];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 1);\nfor (float h = 0.0; h < 5.0; h+=1.0) {\nfor (float w = 0.0; w < 5.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 2.0), uStepH * (h - 2.0));\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 5.0 + w)];\n}\n}\nfloat alpha = texture2D(uTexture, vTexCoord).a;\ngl_FragColor = color;\ngl_FragColor.a = alpha;\n}",Convolute_7_1:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[49];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 0);\nfor (float h = 0.0; h < 7.0; h+=1.0) {\nfor (float w = 0.0; w < 7.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 3.0), uStepH * (h - 3.0));\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 7.0 + w)];\n}\n}\ngl_FragColor = color;\n}",Convolute_7_0:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[49];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 1);\nfor (float h = 0.0; h < 7.0; h+=1.0) {\nfor (float w = 0.0; w < 7.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 3.0), uStepH * (h - 3.0));\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 7.0 + w)];\n}\n}\nfloat alpha = texture2D(uTexture, vTexCoord).a;\ngl_FragColor = color;\ngl_FragColor.a = alpha;\n}",Convolute_9_1:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[81];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 0);\nfor (float h = 0.0; h < 9.0; h+=1.0) {\nfor (float w = 0.0; w < 9.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 4.0), uStepH * (h - 4.0));\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 9.0 + w)];\n}\n}\ngl_FragColor = color;\n}",Convolute_9_0:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[81];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 1);\nfor (float h = 0.0; h < 9.0; h+=1.0) {\nfor (float w = 0.0; w < 9.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 4.0), uStepH * (h - 4.0));\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 9.0 + w)];\n}\n}\nfloat alpha = texture2D(uTexture, vTexCoord).a;\ngl_FragColor = color;\ngl_FragColor.a = alpha;\n}"},retrieveShader:function(e){var t=Math.sqrt(this.matrix.length),i=this.type+"_"+t+"_"+(this.opaque?1:0),s=this.fragmentSource[i];return e.programCache.hasOwnProperty(i)||(e.programCache[i]=this.createProgram(e.context,s)),e.programCache[i]},applyTo2d:function(e){var t,i,s,n,r,o,a,c,l,h,d,u,g,p=e.imageData,m=p.data,f=this.matrix,_=Math.round(Math.sqrt(f.length)),v=Math.floor(_/2),C=p.width,E=p.height,b=e.ctx.createImageData(C,E),S=b.data,y=this.opaque?1:0;for(d=0;d<E;d++)for(h=0;h<C;h++){for(r=4*(d*C+h),t=0,i=0,s=0,n=0,g=0;g<_;g++)for(u=0;u<_;u++)o=h+u-v,(a=d+g-v)<0||a>=E||o<0||o>=C||(c=4*(a*C+o),l=f[g*_+u],t+=m[c]*l,i+=m[c+1]*l,s+=m[c+2]*l,y||(n+=m[c+3]*l));S[r]=t,S[r+1]=i,S[r+2]=s,S[r+3]=y?m[r+3]:n}e.imageData=b},getUniformLocations:function(e,t){return{uMatrix:e.getUniformLocation(t,"uMatrix"),uOpaque:e.getUniformLocation(t,"uOpaque"),uHalfSize:e.getUniformLocation(t,"uHalfSize"),uSize:e.getUniformLocation(t,"uSize")}},sendUniformData:function(e,t){e.uniform1fv(t.uMatrix,this.matrix)},toObject:function(){return i(this.callSuper("toObject"),{opaque:this.opaque,matrix:this.matrix})}}),t.Image.filters.Convolute.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.Grayscale=s(i.BaseFilter,{type:"Grayscale",fragmentSource:{average:"precision highp float;\nuniform sampler2D uTexture;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nfloat average = (color.r + color.b + color.g) / 3.0;\ngl_FragColor = vec4(average, average, average, color.a);\n}",lightness:"precision highp float;\nuniform sampler2D uTexture;\nuniform int uMode;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 col = texture2D(uTexture, vTexCoord);\nfloat average = (max(max(col.r, col.g),col.b) + min(min(col.r, col.g),col.b)) / 2.0;\ngl_FragColor = vec4(average, average, average, col.a);\n}",luminosity:"precision highp float;\nuniform sampler2D uTexture;\nuniform int uMode;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 col = texture2D(uTexture, vTexCoord);\nfloat average = 0.21 * col.r + 0.72 * col.g + 0.07 * col.b;\ngl_FragColor = vec4(average, average, average, col.a);\n}"},mode:"average",mainParameter:"mode",applyTo2d:function(e){var t,i,s=e.imageData.data,n=s.length,r=this.mode;for(t=0;t<n;t+=4)"average"===r?i=(s[t]+s[t+1]+s[t+2])/3:"lightness"===r?i=(Math.min(s[t],s[t+1],s[t+2])+Math.max(s[t],s[t+1],s[t+2]))/2:"luminosity"===r&&(i=.21*s[t]+.72*s[t+1]+.07*s[t+2]),s[t]=i,s[t+1]=i,s[t+2]=i},retrieveShader:function(e){var t=this.type+"_"+this.mode;if(!e.programCache.hasOwnProperty(t)){var i=this.fragmentSource[this.mode];e.programCache[t]=this.createProgram(e.context,i)}return e.programCache[t]},getUniformLocations:function(e,t){return{uMode:e.getUniformLocation(t,"uMode")}},sendUniformData:function(e,t){e.uniform1i(t.uMode,1)},isNeutralState:function(){return!1}}),t.Image.filters.Grayscale.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.Invert=s(i.BaseFilter,{type:"Invert",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform int uInvert;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nif (uInvert == 1) {\ngl_FragColor = vec4(1.0 - color.r,1.0 -color.g,1.0 -color.b,color.a);\n} else {\ngl_FragColor = color;\n}\n}",invert:!0,mainParameter:"invert",applyTo2d:function(e){var t,i=e.imageData.data,s=i.length;for(t=0;t<s;t+=4)i[t]=255-i[t],i[t+1]=255-i[t+1],i[t+2]=255-i[t+2]},isNeutralState:function(){return!this.invert},getUniformLocations:function(e,t){return{uInvert:e.getUniformLocation(t,"uInvert")}},sendUniformData:function(e,t){e.uniform1i(t.uInvert,this.invert)}}),t.Image.filters.Invert.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,s=t.Image.filters,n=t.util.createClass;s.Noise=n(s.BaseFilter,{type:"Noise",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uStepH;\nuniform float uNoise;\nuniform float uSeed;\nvarying vec2 vTexCoord;\nfloat rand(vec2 co, float seed, float vScale) {\nreturn fract(sin(dot(co.xy * vScale ,vec2(12.9898 , 78.233))) * 43758.5453 * (seed + 0.01) / 2.0);\n}\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\ncolor.rgb += (0.5 - rand(vTexCoord, uSeed, 0.1 / uStepH)) * uNoise;\ngl_FragColor = color;\n}",mainParameter:"noise",noise:0,applyTo2d:function(e){if(0!==this.noise){var t,i,s=e.imageData.data,n=s.length,r=this.noise;for(t=0,n=s.length;t<n;t+=4)i=(.5-Math.random())*r,s[t]+=i,s[t+1]+=i,s[t+2]+=i}},getUniformLocations:function(e,t){return{uNoise:e.getUniformLocation(t,"uNoise"),uSeed:e.getUniformLocation(t,"uSeed")}},sendUniformData:function(e,t){e.uniform1f(t.uNoise,this.noise/255),e.uniform1f(t.uSeed,Math.random())},toObject:function(){return i(this.callSuper("toObject"),{noise:this.noise})}}),t.Image.filters.Noise.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.Pixelate=s(i.BaseFilter,{type:"Pixelate",blocksize:4,mainParameter:"blocksize",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uBlocksize;\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nfloat blockW = uBlocksize * uStepW;\nfloat blockH = uBlocksize * uStepW;\nint posX = int(vTexCoord.x / blockW);\nint posY = int(vTexCoord.y / blockH);\nfloat fposX = float(posX);\nfloat fposY = float(posY);\nvec2 squareCoords = vec2(fposX * blockW, fposY * blockH);\nvec4 color = texture2D(uTexture, squareCoords);\ngl_FragColor = color;\n}",applyTo2d:function(e){var t,i,s,n,r,o,a,c,l,h,d,u=e.imageData,g=u.data,p=u.height,m=u.width;for(i=0;i<p;i+=this.blocksize)for(s=0;s<m;s+=this.blocksize)for(n=g[t=4*i*m+4*s],r=g[t+1],o=g[t+2],a=g[t+3],h=Math.min(i+this.blocksize,p),d=Math.min(s+this.blocksize,m),c=i;c<h;c++)for(l=s;l<d;l++)g[t=4*c*m+4*l]=n,g[t+1]=r,g[t+2]=o,g[t+3]=a},isNeutralState:function(){return 1===this.blocksize},getUniformLocations:function(e,t){return{uBlocksize:e.getUniformLocation(t,"uBlocksize"),uStepW:e.getUniformLocation(t,"uStepW"),uStepH:e.getUniformLocation(t,"uStepH")}},sendUniformData:function(e,t){e.uniform1f(t.uBlocksize,this.blocksize)}}),t.Image.filters.Pixelate.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,s=t.Image.filters,n=t.util.createClass;s.RemoveColor=n(s.BaseFilter,{type:"RemoveColor",color:"#FFFFFF",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform vec4 uLow;\nuniform vec4 uHigh;\nvarying vec2 vTexCoord;\nvoid main() {\ngl_FragColor = texture2D(uTexture, vTexCoord);\nif(all(greaterThan(gl_FragColor.rgb,uLow.rgb)) && all(greaterThan(uHigh.rgb,gl_FragColor.rgb))) {\ngl_FragColor.a = 0.0;\n}\n}",distance:.02,useAlpha:!1,applyTo2d:function(e){var i,s,n,r,o=e.imageData.data,a=255*this.distance,c=new t.Color(this.color).getSource(),l=[c[0]-a,c[1]-a,c[2]-a],h=[c[0]+a,c[1]+a,c[2]+a];for(i=0;i<o.length;i+=4)s=o[i],n=o[i+1],r=o[i+2],s>l[0]&&n>l[1]&&r>l[2]&&s<h[0]&&n<h[1]&&r<h[2]&&(o[i+3]=0)},getUniformLocations:function(e,t){return{uLow:e.getUniformLocation(t,"uLow"),uHigh:e.getUniformLocation(t,"uHigh")}},sendUniformData:function(e,i){var s=new t.Color(this.color).getSource(),n=parseFloat(this.distance),r=[0+s[0]/255-n,0+s[1]/255-n,0+s[2]/255-n,1],o=[s[0]/255+n,s[1]/255+n,s[2]/255+n,1];e.uniform4fv(i.uLow,r),e.uniform4fv(i.uHigh,o)},toObject:function(){return i(this.callSuper("toObject"),{color:this.color,distance:this.distance})}}),t.Image.filters.RemoveColor.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass,n={Brownie:[.5997,.34553,-.27082,0,.186,-.0377,.86095,.15059,0,-.1449,.24113,-.07441,.44972,0,-.02965,0,0,0,1,0],Vintage:[.62793,.32021,-.03965,0,.03784,.02578,.64411,.03259,0,.02926,.0466,-.08512,.52416,0,.02023,0,0,0,1,0],Kodachrome:[1.12855,-.39673,-.03992,0,.24991,-.16404,1.08352,-.05498,0,.09698,-.16786,-.56034,1.60148,0,.13972,0,0,0,1,0],Technicolor:[1.91252,-.85453,-.09155,0,.04624,-.30878,1.76589,-.10601,0,-.27589,-.2311,-.75018,1.84759,0,.12137,0,0,0,1,0],Polaroid:[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0],Sepia:[.393,.769,.189,0,0,.349,.686,.168,0,0,.272,.534,.131,0,0,0,0,0,1,0],BlackWhite:[1.5,1.5,1.5,0,-1,1.5,1.5,1.5,0,-1,1.5,1.5,1.5,0,-1,0,0,0,1,0]};for(var r in n)i[r]=s(i.ColorMatrix,{type:r,matrix:n[r],mainParameter:!1,colorsOnly:!0}),t.Image.filters[r].fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric,i=t.Image.filters,s=t.util.createClass;i.BlendColor=s(i.BaseFilter,{type:"BlendColor",color:"#F95C63",mode:"multiply",alpha:1,fragmentSource:{multiply:"gl_FragColor.rgb *= uColor.rgb;\n",screen:"gl_FragColor.rgb = 1.0 - (1.0 - gl_FragColor.rgb) * (1.0 - uColor.rgb);\n",add:"gl_FragColor.rgb += uColor.rgb;\n",diff:"gl_FragColor.rgb = abs(gl_FragColor.rgb - uColor.rgb);\n",subtract:"gl_FragColor.rgb -= uColor.rgb;\n",lighten:"gl_FragColor.rgb = max(gl_FragColor.rgb, uColor.rgb);\n",darken:"gl_FragColor.rgb = min(gl_FragColor.rgb, uColor.rgb);\n",exclusion:"gl_FragColor.rgb += uColor.rgb - 2.0 * (uColor.rgb * gl_FragColor.rgb);\n",overlay:"if (uColor.r < 0.5) {\ngl_FragColor.r *= 2.0 * uColor.r;\n} else {\ngl_FragColor.r = 1.0 - 2.0 * (1.0 - gl_FragColor.r) * (1.0 - uColor.r);\n}\nif (uColor.g < 0.5) {\ngl_FragColor.g *= 2.0 * uColor.g;\n} else {\ngl_FragColor.g = 1.0 - 2.0 * (1.0 - gl_FragColor.g) * (1.0 - uColor.g);\n}\nif (uColor.b < 0.5) {\ngl_FragColor.b *= 2.0 * uColor.b;\n} else {\ngl_FragColor.b = 1.0 - 2.0 * (1.0 - gl_FragColor.b) * (1.0 - uColor.b);\n}\n",tint:"gl_FragColor.rgb *= (1.0 - uColor.a);\ngl_FragColor.rgb += uColor.rgb;\n"},buildSource:function(e){return"precision highp float;\nuniform sampler2D uTexture;\nuniform vec4 uColor;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\ngl_FragColor = color;\nif (color.a > 0.0) {\n"+this.fragmentSource[e]+"}\n}"},retrieveShader:function(e){var t,i=this.type+"_"+this.mode;return e.programCache.hasOwnProperty(i)||(t=this.buildSource(this.mode),e.programCache[i]=this.createProgram(e.context,t)),e.programCache[i]},applyTo2d:function(e){var i,s,n,r,o,a,c,l=e.imageData.data,h=l.length,d=1-this.alpha;i=(c=new t.Color(this.color).getSource())[0]*this.alpha,s=c[1]*this.alpha,n=c[2]*this.alpha;for(var u=0;u<h;u+=4)switch(r=l[u],o=l[u+1],a=l[u+2],this.mode){case"multiply":l[u]=r*i/255,l[u+1]=o*s/255,l[u+2]=a*n/255;break;case"screen":l[u]=255-(255-r)*(255-i)/255,l[u+1]=255-(255-o)*(255-s)/255,l[u+2]=255-(255-a)*(255-n)/255;break;case"add":l[u]=r+i,l[u+1]=o+s,l[u+2]=a+n;break;case"diff":case"difference":l[u]=Math.abs(r-i),l[u+1]=Math.abs(o-s),l[u+2]=Math.abs(a-n);break;case"subtract":l[u]=r-i,l[u+1]=o-s,l[u+2]=a-n;break;case"darken":l[u]=Math.min(r,i),l[u+1]=Math.min(o,s),l[u+2]=Math.min(a,n);break;case"lighten":l[u]=Math.max(r,i),l[u+1]=Math.max(o,s),l[u+2]=Math.max(a,n);break;case"overlay":l[u]=i<128?2*r*i/255:255-2*(255-r)*(255-i)/255,l[u+1]=s<128?2*o*s/255:255-2*(255-o)*(255-s)/255,l[u+2]=n<128?2*a*n/255:255-2*(255-a)*(255-n)/255;break;case"exclusion":l[u]=i+r-2*i*r/255,l[u+1]=s+o-2*s*o/255,l[u+2]=n+a-2*n*a/255;break;case"tint":l[u]=i+r*d,l[u+1]=s+o*d,l[u+2]=n+a*d}},getUniformLocations:function(e,t){return{uColor:e.getUniformLocation(t,"uColor")}},sendUniformData:function(e,i){var s=new t.Color(this.color).getSource();s[0]=this.alpha*s[0]/255,s[1]=this.alpha*s[1]/255,s[2]=this.alpha*s[2]/255,s[3]=this.alpha,e.uniform4fv(i.uColor,s)},toObject:function(){return{type:this.type,color:this.color,mode:this.mode,alpha:this.alpha}}}),t.Image.filters.BlendColor.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric,i=t.Image.filters,s=t.util.createClass;i.BlendImage=s(i.BaseFilter,{type:"BlendImage",image:null,mode:"multiply",alpha:1,vertexSource:"attribute vec2 aPosition;\nvarying vec2 vTexCoord;\nvarying vec2 vTexCoord2;\nuniform mat3 uTransformMatrix;\nvoid main() {\nvTexCoord = aPosition;\nvTexCoord2 = (uTransformMatrix * vec3(aPosition, 1.0)).xy;\ngl_Position = vec4(aPosition * 2.0 - 1.0, 0.0, 1.0);\n}",fragmentSource:{multiply:"precision highp float;\nuniform sampler2D uTexture;\nuniform sampler2D uImage;\nuniform vec4 uColor;\nvarying vec2 vTexCoord;\nvarying vec2 vTexCoord2;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nvec4 color2 = texture2D(uImage, vTexCoord2);\ncolor.rgba *= color2.rgba;\ngl_FragColor = color;\n}",mask:"precision highp float;\nuniform sampler2D uTexture;\nuniform sampler2D uImage;\nuniform vec4 uColor;\nvarying vec2 vTexCoord;\nvarying vec2 vTexCoord2;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nvec4 color2 = texture2D(uImage, vTexCoord2);\ncolor.a = color2.a;\ngl_FragColor = color;\n}"},retrieveShader:function(e){var t=this.type+"_"+this.mode,i=this.fragmentSource[this.mode];return e.programCache.hasOwnProperty(t)||(e.programCache[t]=this.createProgram(e.context,i)),e.programCache[t]},applyToWebGL:function(e){var t=e.context,i=this.createTexture(e.filterBackend,this.image);this.bindAdditionalTexture(t,i,t.TEXTURE1),this.callSuper("applyToWebGL",e),this.unbindAdditionalTexture(t,t.TEXTURE1)},createTexture:function(e,t){return e.getCachedTexture(t.cacheKey,t._element)},calculateMatrix:function(){var e=this.image,t=e._element.width,i=e._element.height;return[1/e.scaleX,0,0,0,1/e.scaleY,0,-e.left/t,-e.top/i,1]},applyTo2d:function(e){var i,s,n,r,o,a,c,l,h,d,u,g=e.imageData,p=e.filterBackend.resources,m=g.data,f=m.length,_=g.width,v=g.height,C=this.image;p.blendImage||(p.blendImage=t.util.createCanvasElement()),d=(h=p.blendImage).getContext("2d"),h.width!==_||h.height!==v?(h.width=_,h.height=v):d.clearRect(0,0,_,v),d.setTransform(C.scaleX,0,0,C.scaleY,C.left,C.top),d.drawImage(C._element,0,0,_,v),u=d.getImageData(0,0,_,v).data;for(var E=0;E<f;E+=4)switch(o=m[E],a=m[E+1],c=m[E+2],l=m[E+3],i=u[E],s=u[E+1],n=u[E+2],r=u[E+3],this.mode){case"multiply":m[E]=o*i/255,m[E+1]=a*s/255,m[E+2]=c*n/255,m[E+3]=l*r/255;break;case"mask":m[E+3]=r}},getUniformLocations:function(e,t){return{uTransformMatrix:e.getUniformLocation(t,"uTransformMatrix"),uImage:e.getUniformLocation(t,"uImage")}},sendUniformData:function(e,t){var i=this.calculateMatrix();e.uniform1i(t.uImage,1),e.uniformMatrix3fv(t.uTransformMatrix,!1,i)},toObject:function(){return{type:this.type,image:this.image&&this.image.toObject(),mode:this.mode,alpha:this.alpha}}}),t.Image.filters.BlendImage.fromObject=function(e,i){t.Image.fromObject(e.image,(function(s){var n=t.util.object.clone(e);n.image=s,i(new t.Image.filters.BlendImage(n))}))}}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=Math.pow,s=Math.floor,n=Math.sqrt,r=Math.abs,o=Math.round,a=Math.sin,c=Math.ceil,l=t.Image.filters,h=t.util.createClass;l.Resize=h(l.BaseFilter,{type:"Resize",resizeType:"hermite",scaleX:1,scaleY:1,lanczosLobes:3,getUniformLocations:function(e,t){return{uDelta:e.getUniformLocation(t,"uDelta"),uTaps:e.getUniformLocation(t,"uTaps")}},sendUniformData:function(e,t){e.uniform2fv(t.uDelta,this.horizontal?[1/this.width,0]:[0,1/this.height]),e.uniform1fv(t.uTaps,this.taps)},retrieveShader:function(e){var t=this.getFilterWindow(),i=this.type+"_"+t;if(!e.programCache.hasOwnProperty(i)){var s=this.generateShader(t);e.programCache[i]=this.createProgram(e.context,s)}return e.programCache[i]},getFilterWindow:function(){var e=this.tempScale;return Math.ceil(this.lanczosLobes/e)},getTaps:function(){for(var e=this.lanczosCreate(this.lanczosLobes),t=this.tempScale,i=this.getFilterWindow(),s=new Array(i),n=1;n<=i;n++)s[n-1]=e(n*t);return s},generateShader:function(e){for(var t=new Array(e),i=this.fragmentSourceTOP,s=1;s<=e;s++)t[s-1]=s+".0 * uDelta";return i+="uniform float uTaps["+e+"];\n",i+="void main() {\n",i+=" vec4 color = texture2D(uTexture, vTexCoord);\n",i+=" float sum = 1.0;\n",t.forEach((function(e,t){i+=" color += texture2D(uTexture, vTexCoord + "+e+") * uTaps["+t+"];\n",i+=" color += texture2D(uTexture, vTexCoord - "+e+") * uTaps["+t+"];\n",i+=" sum += 2.0 * uTaps["+t+"];\n"})),i+=" gl_FragColor = color / sum;\n",i+="}"},fragmentSourceTOP:"precision highp float;\nuniform sampler2D uTexture;\nuniform vec2 uDelta;\nvarying vec2 vTexCoord;\n",applyTo:function(e){e.webgl?(e.passes++,this.width=e.sourceWidth,this.horizontal=!0,this.dW=Math.round(this.width*this.scaleX),this.dH=e.sourceHeight,this.tempScale=this.dW/this.width,this.taps=this.getTaps(),e.destinationWidth=this.dW,this._setupFrameBuffer(e),this.applyToWebGL(e),this._swapTextures(e),e.sourceWidth=e.destinationWidth,this.height=e.sourceHeight,this.horizontal=!1,this.dH=Math.round(this.height*this.scaleY),this.tempScale=this.dH/this.height,this.taps=this.getTaps(),e.destinationHeight=this.dH,this._setupFrameBuffer(e),this.applyToWebGL(e),this._swapTextures(e),e.sourceHeight=e.destinationHeight):this.applyTo2d(e)},isNeutralState:function(){return 1===this.scaleX&&1===this.scaleY},lanczosCreate:function(e){return function(t){if(t>=e||t<=-e)return 0;if(t<1.1920929e-7&&t>-1.1920929e-7)return 1;var i=(t*=Math.PI)/e;return a(t)/t*a(i)/i}},applyTo2d:function(e){var t=e.imageData,i=this.scaleX,s=this.scaleY;this.rcpScaleX=1/i,this.rcpScaleY=1/s;var n,r=t.width,a=t.height,c=o(r*i),l=o(a*s);"sliceHack"===this.resizeType?n=this.sliceByTwo(e,r,a,c,l):"hermite"===this.resizeType?n=this.hermiteFastResize(e,r,a,c,l):"bilinear"===this.resizeType?n=this.bilinearFiltering(e,r,a,c,l):"lanczos"===this.resizeType&&(n=this.lanczosResize(e,r,a,c,l)),e.imageData=n},sliceByTwo:function(e,i,n,r,o){var a,c,l=e.imageData,h=.5,d=!1,u=!1,g=i*h,p=n*h,m=t.filterBackend.resources,f=0,_=0,v=i,C=0;for(m.sliceByTwo||(m.sliceByTwo=document.createElement("canvas")),((a=m.sliceByTwo).width<1.5*i||a.height<n)&&(a.width=1.5*i,a.height=n),(c=a.getContext("2d")).clearRect(0,0,1.5*i,n),c.putImageData(l,0,0),r=s(r),o=s(o);!d||!u;)i=g,n=p,r<s(g*h)?g=s(g*h):(g=r,d=!0),o<s(p*h)?p=s(p*h):(p=o,u=!0),c.drawImage(a,f,_,i,n,v,C,g,p),f=v,_=C,C+=p;return c.getImageData(f,_,r,o)},lanczosResize:function(e,t,o,a,l){var h=e.imageData.data,d=e.ctx.createImageData(a,l),u=d.data,g=this.lanczosCreate(this.lanczosLobes),p=this.rcpScaleX,m=this.rcpScaleY,f=2/this.rcpScaleX,_=2/this.rcpScaleY,v=c(p*this.lanczosLobes/2),C=c(m*this.lanczosLobes/2),E={},b={},S={};return function e(c){var y,w,R,L,T,x,k,A,N,I,O;for(b.x=(c+.5)*p,S.x=s(b.x),y=0;y<l;y++){for(b.y=(y+.5)*m,S.y=s(b.y),T=0,x=0,k=0,A=0,N=0,w=S.x-v;w<=S.x+v;w++)if(!(w<0||w>=t)){I=s(1e3*r(w-b.x)),E[I]||(E[I]={});for(var D=S.y-C;D<=S.y+C;D++)D<0||D>=o||(O=s(1e3*r(D-b.y)),E[I][O]||(E[I][O]=g(n(i(I*f,2)+i(O*_,2))/1e3)),(R=E[I][O])>0&&(T+=R,x+=R*h[L=4*(D*t+w)],k+=R*h[L+1],A+=R*h[L+2],N+=R*h[L+3]))}u[L=4*(y*a+c)]=x/T,u[L+1]=k/T,u[L+2]=A/T,u[L+3]=N/T}return++c<a?e(c):d}(0)},bilinearFiltering:function(e,t,i,n,r){var o,a,c,l,h,d,u,g,p,m=0,f=this.rcpScaleX,_=this.rcpScaleY,v=4*(t-1),C=e.imageData.data,E=e.ctx.createImageData(n,r),b=E.data;for(c=0;c<r;c++)for(l=0;l<n;l++)for(h=f*l-(o=s(f*l)),d=_*c-(a=s(_*c)),p=4*(a*t+o),u=0;u<4;u++)g=C[p+u]*(1-h)*(1-d)+C[p+4+u]*h*(1-d)+C[p+v+u]*d*(1-h)+C[p+v+4+u]*h*d,b[m++]=g;return E},hermiteFastResize:function(e,t,i,o,a){for(var l=this.rcpScaleX,h=this.rcpScaleY,d=c(l/2),u=c(h/2),g=e.imageData.data,p=e.ctx.createImageData(o,a),m=p.data,f=0;f<a;f++)for(var _=0;_<o;_++){for(var v=4*(_+f*o),C=0,E=0,b=0,S=0,y=0,w=0,R=0,L=(f+.5)*h,T=s(f*h);T<(f+1)*h;T++)for(var x=r(L-(T+.5))/u,k=(_+.5)*l,A=x*x,N=s(_*l);N<(_+1)*l;N++){var I=r(k-(N+.5))/d,O=n(A+I*I);O>1&&O<-1||(C=2*O*O*O-3*O*O+1)>0&&(R+=C*g[(I=4*(N+T*t))+3],b+=C,g[I+3]<255&&(C=C*g[I+3]/250),S+=C*g[I],y+=C*g[I+1],w+=C*g[I+2],E+=C)}m[v]=S/E,m[v+1]=y/E,m[v+2]=w/E,m[v+3]=R/b}return p},toObject:function(){return{type:this.type,scaleX:this.scaleX,scaleY:this.scaleY,resizeType:this.resizeType,lanczosLobes:this.lanczosLobes}}}),t.Image.filters.Resize.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.Contrast=s(i.BaseFilter,{type:"Contrast",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uContrast;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nfloat contrastF = 1.015 * (uContrast + 1.0) / (1.0 * (1.015 - uContrast));\ncolor.rgb = contrastF * (color.rgb - 0.5) + 0.5;\ngl_FragColor = color;\n}",contrast:0,mainParameter:"contrast",applyTo2d:function(e){if(0!==this.contrast){var t,i=e.imageData.data,s=i.length,n=Math.floor(255*this.contrast),r=259*(n+255)/(255*(259-n));for(t=0;t<s;t+=4)i[t]=r*(i[t]-128)+128,i[t+1]=r*(i[t+1]-128)+128,i[t+2]=r*(i[t+2]-128)+128}},getUniformLocations:function(e,t){return{uContrast:e.getUniformLocation(t,"uContrast")}},sendUniformData:function(e,t){e.uniform1f(t.uContrast,this.contrast)}}),t.Image.filters.Contrast.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.Saturation=s(i.BaseFilter,{type:"Saturation",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uSaturation;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nfloat rgMax = max(color.r, color.g);\nfloat rgbMax = max(rgMax, color.b);\ncolor.r += rgbMax != color.r ? (rgbMax - color.r) * uSaturation : 0.00;\ncolor.g += rgbMax != color.g ? (rgbMax - color.g) * uSaturation : 0.00;\ncolor.b += rgbMax != color.b ? (rgbMax - color.b) * uSaturation : 0.00;\ngl_FragColor = color;\n}",saturation:0,mainParameter:"saturation",applyTo2d:function(e){if(0!==this.saturation){var t,i,s=e.imageData.data,n=s.length,r=-this.saturation;for(t=0;t<n;t+=4)i=Math.max(s[t],s[t+1],s[t+2]),s[t]+=i!==s[t]?(i-s[t])*r:0,s[t+1]+=i!==s[t+1]?(i-s[t+1])*r:0,s[t+2]+=i!==s[t+2]?(i-s[t+2])*r:0}},getUniformLocations:function(e,t){return{uSaturation:e.getUniformLocation(t,"uSaturation")}},sendUniformData:function(e,t){e.uniform1f(t.uSaturation,-this.saturation)}}),t.Image.filters.Saturation.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.Vibrance=s(i.BaseFilter,{type:"Vibrance",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uVibrance;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nfloat max = max(color.r, max(color.g, color.b));\nfloat avg = (color.r + color.g + color.b) / 3.0;\nfloat amt = (abs(max - avg) * 2.0) * uVibrance;\ncolor.r += max != color.r ? (max - color.r) * amt : 0.00;\ncolor.g += max != color.g ? (max - color.g) * amt : 0.00;\ncolor.b += max != color.b ? (max - color.b) * amt : 0.00;\ngl_FragColor = color;\n}",vibrance:0,mainParameter:"vibrance",applyTo2d:function(e){if(0!==this.vibrance){var t,i,s,n,r=e.imageData.data,o=r.length,a=-this.vibrance;for(t=0;t<o;t+=4)i=Math.max(r[t],r[t+1],r[t+2]),s=(r[t]+r[t+1]+r[t+2])/3,n=2*Math.abs(i-s)/255*a,r[t]+=i!==r[t]?(i-r[t])*n:0,r[t+1]+=i!==r[t+1]?(i-r[t+1])*n:0,r[t+2]+=i!==r[t+2]?(i-r[t+2])*n:0}},getUniformLocations:function(e,t){return{uVibrance:e.getUniformLocation(t,"uVibrance")}},sendUniformData:function(e,t){e.uniform1f(t.uVibrance,-this.vibrance)}}),t.Image.filters.Vibrance.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.Blur=s(i.BaseFilter,{type:"Blur",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform vec2 uDelta;\nvarying vec2 vTexCoord;\nconst float nSamples = 15.0;\nvec3 v3offset = vec3(12.9898, 78.233, 151.7182);\nfloat random(vec3 scale) {\nreturn fract(sin(dot(gl_FragCoord.xyz, scale)) * 43758.5453);\n}\nvoid main() {\nvec4 color = vec4(0.0);\nfloat total = 0.0;\nfloat offset = random(v3offset);\nfor (float t = -nSamples; t <= nSamples; t++) {\nfloat percent = (t + offset - 0.5) / nSamples;\nfloat weight = 1.0 - abs(percent);\ncolor += texture2D(uTexture, vTexCoord + uDelta * percent) * weight;\ntotal += weight;\n}\ngl_FragColor = color / total;\n}",blur:0,mainParameter:"blur",applyTo:function(e){e.webgl?(this.aspectRatio=e.sourceWidth/e.sourceHeight,e.passes++,this._setupFrameBuffer(e),this.horizontal=!0,this.applyToWebGL(e),this._swapTextures(e),this._setupFrameBuffer(e),this.horizontal=!1,this.applyToWebGL(e),this._swapTextures(e)):this.applyTo2d(e)},applyTo2d:function(e){e.imageData=this.simpleBlur(e)},simpleBlur:function(e){var i,s,n=e.filterBackend.resources,r=e.imageData.width,o=e.imageData.height;n.blurLayer1||(n.blurLayer1=t.util.createCanvasElement(),n.blurLayer2=t.util.createCanvasElement()),i=n.blurLayer1,s=n.blurLayer2,i.width===r&&i.height===o||(s.width=i.width=r,s.height=i.height=o);var a,c,l,h,d=i.getContext("2d"),u=s.getContext("2d"),g=15,p=.06*this.blur*.5;for(d.putImageData(e.imageData,0,0),u.clearRect(0,0,r,o),h=-15;h<=g;h++)l=p*(c=h/g)*r+(a=(Math.random()-.5)/4),u.globalAlpha=1-Math.abs(c),u.drawImage(i,l,a),d.drawImage(s,0,0),u.globalAlpha=1,u.clearRect(0,0,s.width,s.height);for(h=-15;h<=g;h++)l=p*(c=h/g)*o+(a=(Math.random()-.5)/4),u.globalAlpha=1-Math.abs(c),u.drawImage(i,a,l),d.drawImage(s,0,0),u.globalAlpha=1,u.clearRect(0,0,s.width,s.height);e.ctx.drawImage(i,0,0);var m=e.ctx.getImageData(0,0,i.width,i.height);return d.globalAlpha=1,d.clearRect(0,0,i.width,i.height),m},getUniformLocations:function(e,t){return{delta:e.getUniformLocation(t,"uDelta")}},sendUniformData:function(e,t){var i=this.chooseRightDelta();e.uniform2fv(t.delta,i)},chooseRightDelta:function(){var e,t=1,i=[0,0];return this.horizontal?this.aspectRatio>1&&(t=1/this.aspectRatio):this.aspectRatio<1&&(t=this.aspectRatio),e=t*this.blur*.12,this.horizontal?i[0]=e:i[1]=e,i}}),i.Blur.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.Gamma=s(i.BaseFilter,{type:"Gamma",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform vec3 uGamma;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nvec3 correction = (1.0 / uGamma);\ncolor.r = pow(color.r, correction.r);\ncolor.g = pow(color.g, correction.g);\ncolor.b = pow(color.b, correction.b);\ngl_FragColor = color;\ngl_FragColor.rgb *= color.a;\n}",gamma:[1,1,1],mainParameter:"gamma",initialize:function(e){this.gamma=[1,1,1],i.BaseFilter.prototype.initialize.call(this,e)},applyTo2d:function(e){var t,i=e.imageData.data,s=this.gamma,n=i.length,r=1/s[0],o=1/s[1],a=1/s[2];for(this.rVals||(this.rVals=new Uint8Array(256),this.gVals=new Uint8Array(256),this.bVals=new Uint8Array(256)),t=0,n=256;t<n;t++)this.rVals[t]=255*Math.pow(t/255,r),this.gVals[t]=255*Math.pow(t/255,o),this.bVals[t]=255*Math.pow(t/255,a);for(t=0,n=i.length;t<n;t+=4)i[t]=this.rVals[i[t]],i[t+1]=this.gVals[i[t+1]],i[t+2]=this.bVals[i[t+2]]},getUniformLocations:function(e,t){return{uGamma:e.getUniformLocation(t,"uGamma")}},sendUniformData:function(e,t){e.uniform3fv(t.uGamma,this.gamma)}}),t.Image.filters.Gamma.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.Composed=s(i.BaseFilter,{type:"Composed",subFilters:[],initialize:function(e){this.callSuper("initialize",e),this.subFilters=this.subFilters.slice(0)},applyTo:function(e){e.passes+=this.subFilters.length-1,this.subFilters.forEach((function(t){t.applyTo(e)}))},toObject:function(){return t.util.object.extend(this.callSuper("toObject"),{subFilters:this.subFilters.map((function(e){return e.toObject()}))})},isNeutralState:function(){return!this.subFilters.some((function(e){return!e.isNeutralState()}))}}),t.Image.filters.Composed.fromObject=function(e,i){var s=(e.subFilters||[]).map((function(e){return new t.Image.filters[e.type](e)})),n=new t.Image.filters.Composed({subFilters:s});return i&&i(n),n}}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.HueRotation=s(i.ColorMatrix,{type:"HueRotation",rotation:0,mainParameter:"rotation",calculateMatrix:function(){var e=this.rotation*Math.PI,i=t.util.cos(e),s=t.util.sin(e),n=1/3,r=Math.sqrt(n)*s,o=1-i;this.matrix=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],this.matrix[0]=i+o/3,this.matrix[1]=n*o-r,this.matrix[2]=n*o+r,this.matrix[5]=n*o+r,this.matrix[6]=i+n*o,this.matrix[7]=n*o-r,this.matrix[10]=n*o-r,this.matrix[11]=n*o+r,this.matrix[12]=i+n*o},isNeutralState:function(e){return this.calculateMatrix(),i.BaseFilter.prototype.isNeutralState.call(this,e)},applyTo:function(e){this.calculateMatrix(),i.BaseFilter.prototype.applyTo.call(this,e)}}),t.Image.filters.HueRotation.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.clone;if(t.Text)t.warn("fabric.Text is already defined");else{var s="fontFamily fontWeight fontSize text underline overline linethrough textAlign fontStyle lineHeight textBackgroundColor charSpacing styles direction path pathStartOffset pathSide pathAlign".split(" ");t.Text=t.util.createClass(t.Object,{_dimensionAffectingProps:["fontSize","fontWeight","fontFamily","fontStyle","lineHeight","text","charSpacing","textAlign","styles","path","pathStartOffset","pathSide","pathAlign"],_reNewline:/\r?\n/,_reSpacesAndTabs:/[ \t\r]/g,_reSpaceAndTab:/[ \t\r]/,_reWords:/\S+/g,type:"text",fontSize:40,fontWeight:"normal",fontFamily:"Times New Roman",underline:!1,overline:!1,linethrough:!1,textAlign:"left",fontStyle:"normal",lineHeight:1.16,superscript:{size:.6,baseline:-.35},subscript:{size:.6,baseline:.11},textBackgroundColor:"",stateProperties:t.Object.prototype.stateProperties.concat(s),cacheProperties:t.Object.prototype.cacheProperties.concat(s),stroke:null,shadow:null,path:null,pathStartOffset:0,pathSide:"left",pathAlign:"baseline",_fontSizeFraction:.222,offsets:{underline:.1,linethrough:-.315,overline:-.88},_fontSizeMult:1.13,charSpacing:0,styles:null,_measuringContext:null,deltaY:0,direction:"ltr",_styleProperties:["stroke","strokeWidth","fill","fontFamily","fontSize","fontWeight","fontStyle","underline","overline","linethrough","deltaY","textBackgroundColor"],__charBounds:[],CACHE_FONT_SIZE:400,MIN_TEXT_WIDTH:2,initialize:function(e,t){this.styles=t&&t.styles||{},this.text=e,this.__skipDimension=!0,this.callSuper("initialize",t),this.path&&this.setPathInfo(),this.__skipDimension=!1,this.initDimensions(),this.setCoords(),this.setupState({propertySet:"_dimensionAffectingProps"})},setPathInfo:function(){var e=this.path;e&&(e.segmentsInfo=t.util.getPathSegmentsInfo(e.path))},getMeasuringContext:function(){return t._measuringContext||(t._measuringContext=this.canvas&&this.canvas.contextCache||t.util.createCanvasElement().getContext("2d")),t._measuringContext},_splitText:function(){var e=this._splitTextIntoLines(this.text);return this.textLines=e.lines,this._textLines=e.graphemeLines,this._unwrappedTextLines=e._unwrappedLines,this._text=e.graphemeText,e},initDimensions:function(){if(!this.__skipDimension){if(this._splitText(),this._clearCache(),this.path){var e=1.1*this.getHeightOfLine(0);this.width=this.path.width+e,this.height=this.path.height+e}else this.width=this.calcTextWidth()||this.cursorWidth||this.MIN_TEXT_WIDTH,this.height=this.calcTextHeight();-1!==this.textAlign.indexOf("justify")&&this.enlargeSpaces(),this.saveState({propertySet:"_dimensionAffectingProps"})}},enlargeSpaces:function(){for(var e,t,i,s,n,r,o,a=0,c=this._textLines.length;a<c;a++)if(("justify"===this.textAlign||a!==c-1&&!this.isEndOfWrapping(a))&&(s=0,n=this._textLines[a],(t=this.getLineWidth(a))<this.width&&(o=this.textLines[a].match(this._reSpacesAndTabs)))){i=o.length,e=(this.width-t)/i;for(var l=0,h=n.length;l<=h;l++)r=this.__charBounds[a][l],this._reSpaceAndTab.test(n[l])?(r.width+=e,r.kernedWidth+=e,r.left+=s,s+=e):r.left+=s}},isEndOfWrapping:function(e){return e===this._textLines.length-1},missingNewlineOffset:function(){return 1},toString:function(){return"#<fabric.Text ("+this.complexity()+'): { "text": "'+this.text+'", "fontFamily": "'+this.fontFamily+'" }>'},_getCacheCanvasDimensions:function(){var e=this.callSuper("_getCacheCanvasDimensions"),t=this.fontSize;return e.width+=t*e.zoomX,e.height+=t*e.zoomY,e},_render:function(e){var t=this.path;t&&!t.isNotVisible()&&t._render(e),this._setTextStyles(e),this._renderTextLinesBackground(e),this._renderTextDecoration(e,"underline"),this._renderText(e),this._renderTextDecoration(e,"overline"),this._renderTextDecoration(e,"linethrough")},_renderText:function(e){"stroke"===this.paintFirst?(this._renderTextStroke(e),this._renderTextFill(e)):(this._renderTextFill(e),this._renderTextStroke(e))},_setTextStyles:function(e,t,i){if(e.textBaseline="alphabetical",this.path)switch(this.pathAlign){case"center":e.textBaseline="middle";break;case"ascender":e.textBaseline="top";break;case"descender":e.textBaseline="bottom"}e.font=this._getFontDeclaration(t,i)},calcTextWidth:function(){for(var e=this.getLineWidth(0),t=1,i=this._textLines.length;t<i;t++){var s=this.getLineWidth(t);s>e&&(e=s)}return e},_renderTextLine:function(e,t,i,s,n,r){this._renderChars(e,t,i,s,n,r)},_renderTextLinesBackground:function(e){if(this.textBackgroundColor||this.styleHas("textBackgroundColor")){for(var t,i,s,n,r,o,a,c=e.fillStyle,l=this._getLeftOffset(),h=this._getTopOffset(),d=0,u=0,g=this.path,p=0,m=this._textLines.length;p<m;p++)if(t=this.getHeightOfLine(p),this.textBackgroundColor||this.styleHas("textBackgroundColor",p)){s=this._textLines[p],i=this._getLineLeftOffset(p),u=0,d=0,n=this.getValueOfPropertyAt(p,0,"textBackgroundColor");for(var f=0,_=s.length;f<_;f++)r=this.__charBounds[p][f],o=this.getValueOfPropertyAt(p,f,"textBackgroundColor"),g?(e.save(),e.translate(r.renderLeft,r.renderTop),e.rotate(r.angle),e.fillStyle=o,o&&e.fillRect(-r.width/2,-t/this.lineHeight*(1-this._fontSizeFraction),r.width,t/this.lineHeight),e.restore()):o!==n?(a=l+i+d,"rtl"===this.direction&&(a=this.width-a-u),e.fillStyle=n,n&&e.fillRect(a,h,u,t/this.lineHeight),d=r.left,u=r.width,n=o):u+=r.kernedWidth;o&&!g&&(a=l+i+d,"rtl"===this.direction&&(a=this.width-a-u),e.fillStyle=o,e.fillRect(a,h,u,t/this.lineHeight)),h+=t}else h+=t;e.fillStyle=c,this._removeShadow(e)}},getFontCache:function(e){var i=e.fontFamily.toLowerCase();t.charWidthsCache[i]||(t.charWidthsCache[i]={});var s=t.charWidthsCache[i],n=e.fontStyle.toLowerCase()+"_"+(e.fontWeight+"").toLowerCase();return s[n]||(s[n]={}),s[n]},_measureChar:function(e,t,i,s){var n,r,o,a,c=this.getFontCache(t),l=i+e,h=this._getFontDeclaration(t)===this._getFontDeclaration(s),d=t.fontSize/this.CACHE_FONT_SIZE;if(i&&void 0!==c[i]&&(o=c[i]),void 0!==c[e]&&(a=n=c[e]),h&&void 0!==c[l]&&(a=(r=c[l])-o),void 0===n||void 0===o||void 0===r){var u=this.getMeasuringContext();this._setTextStyles(u,t,!0)}return void 0===n&&(a=n=u.measureText(e).width,c[e]=n),void 0===o&&h&&i&&(o=u.measureText(i).width,c[i]=o),h&&void 0===r&&(r=u.measureText(l).width,c[l]=r,a=r-o),{width:n*d,kernedWidth:a*d}},getHeightOfChar:function(e,t){return this.getValueOfPropertyAt(e,t,"fontSize")},measureLine:function(e){var t=this._measureLine(e);return 0!==this.charSpacing&&(t.width-=this._getWidthOfCharSpacing()),t.width<0&&(t.width=0),t},_measureLine:function(e){var i,s,n,r,o,a,c=0,l=this._textLines[e],h=new Array(l.length),d=0,u=this.path,g="right"===this.pathSide;for(this.__charBounds[e]=h,i=0;i<l.length;i++)s=l[i],r=this._getGraphemeBox(s,e,i,n),h[i]=r,c+=r.kernedWidth,n=s;if(h[i]={left:r?r.left+r.width:0,width:0,kernedWidth:0,height:this.fontSize},u){switch(a=u.segmentsInfo[u.segmentsInfo.length-1].length,(o=t.util.getPointOnPath(u.path,0,u.segmentsInfo)).x+=u.pathOffset.x,o.y+=u.pathOffset.y,this.textAlign){case"left":d=g?a-c:0;break;case"center":d=(a-c)/2;break;case"right":d=g?0:a-c}for(d+=this.pathStartOffset*(g?-1:1),i=g?l.length-1:0;g?i>=0:i<l.length;g?i--:i++)r=h[i],d>a?d%=a:d<0&&(d+=a),this._setGraphemeOnPath(d,r,o),d+=r.kernedWidth}return{width:c,numOfSpaces:0}},_setGraphemeOnPath:function(e,i,s){var n=e+i.kernedWidth/2,r=this.path,o=t.util.getPointOnPath(r.path,n,r.segmentsInfo);i.renderLeft=o.x-s.x,i.renderTop=o.y-s.y,i.angle=o.angle+("right"===this.pathSide?Math.PI:0)},_getGraphemeBox:function(e,t,i,s,n){var r,o=this.getCompleteStyleDeclaration(t,i),a=s?this.getCompleteStyleDeclaration(t,i-1):{},c=this._measureChar(e,o,s,a),l=c.kernedWidth,h=c.width;0!==this.charSpacing&&(h+=r=this._getWidthOfCharSpacing(),l+=r);var d={width:h,left:0,height:o.fontSize,kernedWidth:l,deltaY:o.deltaY};if(i>0&&!n){var u=this.__charBounds[t][i-1];d.left=u.left+u.width+c.kernedWidth-c.width}return d},getHeightOfLine:function(e){if(this.__lineHeights[e])return this.__lineHeights[e];for(var t=this._textLines[e],i=this.getHeightOfChar(e,0),s=1,n=t.length;s<n;s++)i=Math.max(this.getHeightOfChar(e,s),i);return this.__lineHeights[e]=i*this.lineHeight*this._fontSizeMult},calcTextHeight:function(){for(var e,t=0,i=0,s=this._textLines.length;i<s;i++)e=this.getHeightOfLine(i),t+=i===s-1?e/this.lineHeight:e;return t},_getLeftOffset:function(){return"ltr"===this.direction?-this.width/2:this.width/2},_getTopOffset:function(){return-this.height/2},_renderTextCommon:function(e,t){e.save();for(var i=0,s=this._getLeftOffset(),n=this._getTopOffset(),r=0,o=this._textLines.length;r<o;r++){var a=this.getHeightOfLine(r),c=a/this.lineHeight,l=this._getLineLeftOffset(r);this._renderTextLine(t,e,this._textLines[r],s+l,n+i+c,r),i+=a}e.restore()},_renderTextFill:function(e){(this.fill||this.styleHas("fill"))&&this._renderTextCommon(e,"fillText")},_renderTextStroke:function(e){(this.stroke&&0!==this.strokeWidth||!this.isEmptyStyles())&&(this.shadow&&!this.shadow.affectStroke&&this._removeShadow(e),e.save(),this._setLineDash(e,this.strokeDashArray),e.beginPath(),this._renderTextCommon(e,"strokeText"),e.closePath(),e.restore())},_renderChars:function(e,i,s,n,r,o){var a,c,l,h,d,u=this.getHeightOfLine(o),g=-1!==this.textAlign.indexOf("justify"),p="",m=0,f=this.path,_=!g&&0===this.charSpacing&&this.isEmptyStyles(o)&&!f,v="ltr"===this.direction,C="ltr"===this.direction?1:-1,E=i.canvas.getAttribute("dir");if(i.save(),E!==this.direction&&(i.canvas.setAttribute("dir",v?"ltr":"rtl"),i.direction=v?"ltr":"rtl",i.textAlign=v?"left":"right"),r-=u*this._fontSizeFraction/this.lineHeight,_)return this._renderChar(e,i,o,0,s.join(""),n,r,u),void i.restore();for(var b=0,S=s.length-1;b<=S;b++)h=b===S||this.charSpacing||f,p+=s[b],l=this.__charBounds[o][b],0===m?(n+=C*(l.kernedWidth-l.width),m+=l.width):m+=l.kernedWidth,g&&!h&&this._reSpaceAndTab.test(s[b])&&(h=!0),h||(a=a||this.getCompleteStyleDeclaration(o,b),c=this.getCompleteStyleDeclaration(o,b+1),h=t.util.hasStyleChanged(a,c,!1)),h&&(f?(i.save(),i.translate(l.renderLeft,l.renderTop),i.rotate(l.angle),this._renderChar(e,i,o,b,p,-m/2,0,u),i.restore()):(d=n,this._renderChar(e,i,o,b,p,d,r,u)),p="",a=c,n+=C*m,m=0);i.restore()},_applyPatternGradientTransformText:function(e){var i,s=t.util.createCanvasElement(),n=this.width+this.strokeWidth,r=this.height+this.strokeWidth;return s.width=n,s.height=r,(i=s.getContext("2d")).beginPath(),i.moveTo(0,0),i.lineTo(n,0),i.lineTo(n,r),i.lineTo(0,r),i.closePath(),i.translate(n/2,r/2),i.fillStyle=e.toLive(i),this._applyPatternGradientTransform(i,e),i.fill(),i.createPattern(s,"no-repeat")},handleFiller:function(e,t,i){var s,n;return i.toLive?"percentage"===i.gradientUnits||i.gradientTransform||i.patternTransform?(s=-this.width/2,n=-this.height/2,e.translate(s,n),e[t]=this._applyPatternGradientTransformText(i),{offsetX:s,offsetY:n}):(e[t]=i.toLive(e,this),this._applyPatternGradientTransform(e,i)):(e[t]=i,{offsetX:0,offsetY:0})},_setStrokeStyles:function(e,t){return e.lineWidth=t.strokeWidth,e.lineCap=this.strokeLineCap,e.lineDashOffset=this.strokeDashOffset,e.lineJoin=this.strokeLineJoin,e.miterLimit=this.strokeMiterLimit,this.handleFiller(e,"strokeStyle",t.stroke)},_setFillStyles:function(e,t){return this.handleFiller(e,"fillStyle",t.fill)},_renderChar:function(e,t,i,s,n,r,o){var a,c,l=this._getStyleDeclaration(i,s),h=this.getCompleteStyleDeclaration(i,s),d="fillText"===e&&h.fill,u="strokeText"===e&&h.stroke&&h.strokeWidth;(u||d)&&(t.save(),d&&(a=this._setFillStyles(t,h)),u&&(c=this._setStrokeStyles(t,h)),t.font=this._getFontDeclaration(h),l&&l.textBackgroundColor&&this._removeShadow(t),l&&l.deltaY&&(o+=l.deltaY),d&&t.fillText(n,r-a.offsetX,o-a.offsetY),u&&t.strokeText(n,r-c.offsetX,o-c.offsetY),t.restore())},setSuperscript:function(e,t){return this._setScript(e,t,this.superscript)},setSubscript:function(e,t){return this._setScript(e,t,this.subscript)},_setScript:function(e,t,i){var s=this.get2DCursorLocation(e,!0),n=this.getValueOfPropertyAt(s.lineIndex,s.charIndex,"fontSize"),r=this.getValueOfPropertyAt(s.lineIndex,s.charIndex,"deltaY"),o={fontSize:n*i.size,deltaY:r+n*i.baseline};return this.setSelectionStyles(o,e,t),this},_getLineLeftOffset:function(e){var t=this.getLineWidth(e),i=this.width-t,s=this.textAlign,n=this.direction,r=0,o=this.isEndOfWrapping(e);return"justify"===s||"justify-center"===s&&!o||"justify-right"===s&&!o||"justify-left"===s&&!o?0:("center"===s&&(r=i/2),"right"===s&&(r=i),"justify-center"===s&&(r=i/2),"justify-right"===s&&(r=i),"rtl"===n&&(r-=i),r)},_clearCache:function(){this.__lineWidths=[],this.__lineHeights=[],this.__charBounds=[]},_shouldClearDimensionCache:function(){var e=this._forceClearCache;return e||(e=this.hasStateChanged("_dimensionAffectingProps")),e&&(this.dirty=!0,this._forceClearCache=!1),e},getLineWidth:function(e){if(void 0!==this.__lineWidths[e])return this.__lineWidths[e];var t=this.measureLine(e).width;return this.__lineWidths[e]=t,t},_getWidthOfCharSpacing:function(){return 0!==this.charSpacing?this.fontSize*this.charSpacing/1e3:0},getValueOfPropertyAt:function(e,t,i){var s=this._getStyleDeclaration(e,t);return s&&"undefined"!==typeof s[i]?s[i]:this[i]},_renderTextDecoration:function(e,t){if(this[t]||this.styleHas(t)){e.save(),"overline"!==t&&"linethrough"!==t||this._removeShadow(e);for(var i,s,n,r,o,a,c,l,h,d,u,g,p,m,f,_,v=this._getLeftOffset(),C=this._getTopOffset(),E=this.path,b=this._getWidthOfCharSpacing(),S=this.offsets[t],y=0,w=this._textLines.length;y<w;y++)if(i=this.getHeightOfLine(y),this[t]||this.styleHas(t,y)){c=this._textLines[y],m=i/this.lineHeight,r=this._getLineLeftOffset(y),d=0,u=0,l=this.getValueOfPropertyAt(y,0,t),_=this.getValueOfPropertyAt(y,0,"fill"),h=C+m*(1-this._fontSizeFraction),s=this.getHeightOfChar(y,0),o=this.getValueOfPropertyAt(y,0,"deltaY");for(var R=0,L=c.length;R<L;R++)if(g=this.__charBounds[y][R],p=this.getValueOfPropertyAt(y,R,t),f=this.getValueOfPropertyAt(y,R,"fill"),n=this.getHeightOfChar(y,R),a=this.getValueOfPropertyAt(y,R,"deltaY"),E&&p&&f)e.save(),e.fillStyle=_,e.translate(g.renderLeft,g.renderTop),e.rotate(g.angle),e.fillRect(-g.kernedWidth/2,S*n+a,g.kernedWidth,this.fontSize/15),e.restore();else if((p!==l||f!==_||n!==s||a!==o)&&u>0){var T=v+r+d;"rtl"===this.direction&&(T=this.width-T-u),l&&_&&(e.fillStyle=_,e.fillRect(T,h+S*s+o,u,this.fontSize/15)),d=g.left,u=g.width,l=p,_=f,s=n,o=a}else u+=g.kernedWidth;T=v+r+d;"rtl"===this.direction&&(T=this.width-T-u),e.fillStyle=f,p&&f&&e.fillRect(T,h+S*s+o,u-b,this.fontSize/15),C+=i}else C+=i;e.restore()}},_getFontDeclaration:function(e,i){var s=e||this,n=this.fontFamily,r=t.Text.genericFonts.indexOf(n.toLowerCase())>-1,o=void 0===n||n.indexOf("'")>-1||n.indexOf(",")>-1||n.indexOf('"')>-1||r?s.fontFamily:'"'+s.fontFamily+'"';return[t.isLikelyNode?s.fontWeight:s.fontStyle,t.isLikelyNode?s.fontStyle:s.fontWeight,i?this.CACHE_FONT_SIZE+"px":s.fontSize+"px",o].join(" ")},render:function(e){this.visible&&(this.canvas&&this.canvas.skipOffscreen&&!this.group&&!this.isOnScreen()||(this._shouldClearDimensionCache()&&this.initDimensions(),this.callSuper("render",e)))},_splitTextIntoLines:function(e){for(var i=e.split(this._reNewline),s=new Array(i.length),n=["\n"],r=[],o=0;o<i.length;o++)s[o]=t.util.string.graphemeSplit(i[o]),r=r.concat(s[o],n);return r.pop(),{_unwrappedLines:s,lines:i,graphemeText:r,graphemeLines:s}},toObject:function(e){var i=s.concat(e),n=this.callSuper("toObject",i);return n.styles=t.util.stylesToArray(this.styles,this.text),n.path&&(n.path=this.path.toObject()),n},set:function(e,t){this.callSuper("set",e,t);var i=!1,s=!1;if("object"===typeof e)for(var n in e)"path"===n&&this.setPathInfo(),i=i||-1!==this._dimensionAffectingProps.indexOf(n),s=s||"path"===n;else i=-1!==this._dimensionAffectingProps.indexOf(e),s="path"===e;return s&&this.setPathInfo(),i&&(this.initDimensions(),this.setCoords()),this},complexity:function(){return 1}}),t.Text.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("x y dx dy font-family font-style font-weight font-size letter-spacing text-decoration text-anchor".split(" ")),t.Text.DEFAULT_SVG_FONT_SIZE=16,t.Text.fromElement=function(e,s,n){if(!e)return s(null);var r=t.parseAttributes(e,t.Text.ATTRIBUTE_NAMES),o=r.textAnchor||"left";if((n=t.util.object.extend(n?i(n):{},r)).top=n.top||0,n.left=n.left||0,r.textDecoration){var a=r.textDecoration;-1!==a.indexOf("underline")&&(n.underline=!0),-1!==a.indexOf("overline")&&(n.overline=!0),-1!==a.indexOf("line-through")&&(n.linethrough=!0),delete n.textDecoration}"dx"in r&&(n.left+=r.dx),"dy"in r&&(n.top+=r.dy),"fontSize"in n||(n.fontSize=t.Text.DEFAULT_SVG_FONT_SIZE);var c="";"textContent"in e?c=e.textContent:"firstChild"in e&&null!==e.firstChild&&"data"in e.firstChild&&null!==e.firstChild.data&&(c=e.firstChild.data),c=c.replace(/^\s+|\s+$|\n+/g,"").replace(/\s+/g," ");var l=n.strokeWidth;n.strokeWidth=0;var h=new t.Text(c,n),d=h.getScaledHeight()/h.height,u=((h.height+h.strokeWidth)*h.lineHeight-h.height)*d,g=h.getScaledHeight()+u,p=0;"center"===o&&(p=h.getScaledWidth()/2),"right"===o&&(p=h.getScaledWidth()),h.set({left:h.left-p,top:h.top-(g-h.fontSize*(.07+h._fontSizeFraction))/h.lineHeight,strokeWidth:"undefined"!==typeof l?l:1}),s(h)},t.Text.fromObject=function(e,s){var n=i(e),r=e.path;return delete n.path,t.Object._fromObject("Text",n,(function(i){i.styles=t.util.stylesFromArray(e.styles,e.text),r?t.Object._fromObject("Path",r,(function(e){i.set("path",e),s(i)}),"path"):s(i)}),"text")},t.Text.genericFonts=["sans-serif","serif","cursive","fantasy","monospace"],t.util.createAccessors&&t.util.createAccessors(t.Text)}}(t),n.util.object.extend(n.Text.prototype,{isEmptyStyles:function(e){if(!this.styles)return!0;if("undefined"!==typeof e&&!this.styles[e])return!0;var t="undefined"===typeof e?this.styles:{line:this.styles[e]};for(var i in t)for(var s in t[i])for(var n in t[i][s])return!1;return!0},styleHas:function(e,t){if(!this.styles||!e||""===e)return!1;if("undefined"!==typeof t&&!this.styles[t])return!1;var i="undefined"===typeof t?this.styles:{0:this.styles[t]};for(var s in i)for(var n in i[s])if("undefined"!==typeof i[s][n][e])return!0;return!1},cleanStyle:function(e){if(!this.styles||!e||""===e)return!1;var t,i,s=this.styles,n=0,r=!0,o=0;for(var a in s){for(var c in t=0,s[a]){var l;n++,(l=s[a][c]).hasOwnProperty(e)?(i?l[e]!==i&&(r=!1):i=l[e],l[e]===this[e]&&delete l[e]):r=!1,0!==Object.keys(l).length?t++:delete s[a][c]}0===t&&delete s[a]}for(var h=0;h<this._textLines.length;h++)o+=this._textLines[h].length;r&&n===o&&(this[e]=i,this.removeStyle(e))},removeStyle:function(e){if(this.styles&&e&&""!==e){var t,i,s,n=this.styles;for(i in n){for(s in t=n[i])delete t[s][e],0===Object.keys(t[s]).length&&delete t[s];0===Object.keys(t).length&&delete n[i]}}},_extendStyles:function(e,t){var i=this.get2DCursorLocation(e);this._getLineStyle(i.lineIndex)||this._setLineStyle(i.lineIndex),this._getStyleDeclaration(i.lineIndex,i.charIndex)||this._setStyleDeclaration(i.lineIndex,i.charIndex,{}),n.util.object.extend(this._getStyleDeclaration(i.lineIndex,i.charIndex),t)},get2DCursorLocation:function(e,t){"undefined"===typeof e&&(e=this.selectionStart);for(var i=t?this._unwrappedTextLines:this._textLines,s=i.length,n=0;n<s;n++){if(e<=i[n].length)return{lineIndex:n,charIndex:e};e-=i[n].length+this.missingNewlineOffset(n,t)}return{lineIndex:n-1,charIndex:i[n-1].length<e?i[n-1].length:e}},getSelectionStyles:function(e,t,i){"undefined"===typeof e&&(e=this.selectionStart||0),"undefined"===typeof t&&(t=this.selectionEnd||e);for(var s=[],n=e;n<t;n++)s.push(this.getStyleAtPosition(n,i));return s},getStyleAtPosition:function(e,t){var i=this.get2DCursorLocation(e);return(t?this.getCompleteStyleDeclaration(i.lineIndex,i.charIndex):this._getStyleDeclaration(i.lineIndex,i.charIndex))||{}},setSelectionStyles:function(e,t,i){"undefined"===typeof t&&(t=this.selectionStart||0),"undefined"===typeof i&&(i=this.selectionEnd||t);for(var s=t;s<i;s++)this._extendStyles(s,e);return this._forceClearCache=!0,this},_getStyleDeclaration:function(e,t){var i=this.styles&&this.styles[e];return i?i[t]:null},getCompleteStyleDeclaration:function(e,t){for(var i,s=this._getStyleDeclaration(e,t)||{},n={},r=0;r<this._styleProperties.length;r++)n[i=this._styleProperties[r]]="undefined"===typeof s[i]?this[i]:s[i];return n},_setStyleDeclaration:function(e,t,i){this.styles[e][t]=i},_deleteStyleDeclaration:function(e,t){delete this.styles[e][t]},_getLineStyle:function(e){return!!this.styles[e]},_setLineStyle:function(e){this.styles[e]={}},_deleteLineStyle:function(e){delete this.styles[e]}}),function(){function e(e){e.textDecoration&&(e.textDecoration.indexOf("underline")>-1&&(e.underline=!0),e.textDecoration.indexOf("line-through")>-1&&(e.linethrough=!0),e.textDecoration.indexOf("overline")>-1&&(e.overline=!0),delete e.textDecoration)}n.IText=n.util.createClass(n.Text,n.Observable,{type:"i-text",selectionStart:0,selectionEnd:0,selectionColor:"rgba(17,119,255,0.3)",isEditing:!1,editable:!0,editingBorderColor:"rgba(102,153,255,0.25)",cursorWidth:2,cursorColor:"",cursorDelay:1e3,cursorDuration:600,caching:!0,hiddenTextareaContainer:null,_reSpace:/\s|\n/,_currentCursorOpacity:0,_selectionDirection:null,_abortCursorAnimation:!1,__widthOfSpace:[],inCompositionMode:!1,initialize:function(e,t){this.callSuper("initialize",e,t),this.initBehavior()},setSelectionStart:function(e){e=Math.max(e,0),this._updateAndFire("selectionStart",e)},setSelectionEnd:function(e){e=Math.min(e,this.text.length),this._updateAndFire("selectionEnd",e)},_updateAndFire:function(e,t){this[e]!==t&&(this._fireSelectionChanged(),this[e]=t),this._updateTextarea()},_fireSelectionChanged:function(){this.fire("selection:changed"),this.canvas&&this.canvas.fire("text:selection:changed",{target:this})},initDimensions:function(){this.isEditing&&this.initDelayedCursor(),this.clearContextTop(),this.callSuper("initDimensions")},render:function(e){this.clearContextTop(),this.callSuper("render",e),this.cursorOffsetCache={},this.renderCursorOrSelection()},_render:function(e){this.callSuper("_render",e)},clearContextTop:function(e){if(this.isEditing&&this.canvas&&this.canvas.contextTop){var t=this.canvas.contextTop,i=this.canvas.viewportTransform;t.save(),t.transform(i[0],i[1],i[2],i[3],i[4],i[5]),this.transform(t),this._clearTextArea(t),e||t.restore()}},renderCursorOrSelection:function(){if(this.isEditing&&this.canvas&&this.canvas.contextTop){var e=this._getCursorBoundaries(),t=this.canvas.contextTop;this.clearContextTop(!0),this.selectionStart===this.selectionEnd?this.renderCursor(e,t):this.renderSelection(e,t),t.restore()}},_clearTextArea:function(e){var t=this.width+4,i=this.height+4;e.clearRect(-t/2,-i/2,t,i)},_getCursorBoundaries:function(e){"undefined"===typeof e&&(e=this.selectionStart);var t=this._getLeftOffset(),i=this._getTopOffset(),s=this._getCursorBoundariesOffsets(e);return{left:t,top:i,leftOffset:s.left,topOffset:s.top}},_getCursorBoundariesOffsets:function(e){if(this.cursorOffsetCache&&"top"in this.cursorOffsetCache)return this.cursorOffsetCache;var t,i,s,n,r=0,o=0,a=this.get2DCursorLocation(e);s=a.charIndex,i=a.lineIndex;for(var c=0;c<i;c++)r+=this.getHeightOfLine(c);t=this._getLineLeftOffset(i);var l=this.__charBounds[i][s];return l&&(o=l.left),0!==this.charSpacing&&s===this._textLines[i].length&&(o-=this._getWidthOfCharSpacing()),n={top:r,left:t+(o>0?o:0)},"rtl"===this.direction&&(n.left*=-1),this.cursorOffsetCache=n,this.cursorOffsetCache},renderCursor:function(e,t){var i=this.get2DCursorLocation(),s=i.lineIndex,n=i.charIndex>0?i.charIndex-1:0,r=this.getValueOfPropertyAt(s,n,"fontSize"),o=this.scaleX*this.canvas.getZoom(),a=this.cursorWidth/o,c=e.topOffset,l=this.getValueOfPropertyAt(s,n,"deltaY");c+=(1-this._fontSizeFraction)*this.getHeightOfLine(s)/this.lineHeight-r*(1-this._fontSizeFraction),this.inCompositionMode&&this.renderSelection(e,t),t.fillStyle=this.cursorColor||this.getValueOfPropertyAt(s,n,"fill"),t.globalAlpha=this.__isMousedown?1:this._currentCursorOpacity,t.fillRect(e.left+e.leftOffset-a/2,c+e.top+l,a,r)},renderSelection:function(e,t){for(var i=this.inCompositionMode?this.hiddenTextarea.selectionStart:this.selectionStart,s=this.inCompositionMode?this.hiddenTextarea.selectionEnd:this.selectionEnd,n=-1!==this.textAlign.indexOf("justify"),r=this.get2DCursorLocation(i),o=this.get2DCursorLocation(s),a=r.lineIndex,c=o.lineIndex,l=r.charIndex<0?0:r.charIndex,h=o.charIndex<0?0:o.charIndex,d=a;d<=c;d++){var u,g=this._getLineLeftOffset(d)||0,p=this.getHeightOfLine(d),m=0,f=0;if(d===a&&(m=this.__charBounds[a][l].left),d>=a&&d<c)f=n&&!this.isEndOfWrapping(d)?this.width:this.getLineWidth(d)||5;else if(d===c)if(0===h)f=this.__charBounds[c][h].left;else{var _=this._getWidthOfCharSpacing();f=this.__charBounds[c][h-1].left+this.__charBounds[c][h-1].width-_}u=p,(this.lineHeight<1||d===c&&this.lineHeight>1)&&(p/=this.lineHeight);var v=e.left+g+m,C=f-m,E=p,b=0;this.inCompositionMode?(t.fillStyle=this.compositionColor||"black",E=1,b=p):t.fillStyle=this.selectionColor,"rtl"===this.direction&&(v=this.width-v-C),t.fillRect(v,e.top+e.topOffset+b,C,E),e.topOffset+=u}},getCurrentCharFontSize:function(){var e=this._getCurrentCharIndex();return this.getValueOfPropertyAt(e.l,e.c,"fontSize")},getCurrentCharColor:function(){var e=this._getCurrentCharIndex();return this.getValueOfPropertyAt(e.l,e.c,"fill")},_getCurrentCharIndex:function(){var e=this.get2DCursorLocation(this.selectionStart,!0),t=e.charIndex>0?e.charIndex-1:0;return{l:e.lineIndex,c:t}}}),n.IText.fromObject=function(t,i){var s=n.util.stylesFromArray(t.styles,t.text),r=Object.assign({},t,{styles:s});if(delete r.path,e(r),r.styles)for(var o in r.styles)for(var a in r.styles[o])e(r.styles[o][a]);n.Object._fromObject("IText",r,(function(e){t.path?n.Object._fromObject("Path",t.path,(function(t){e.set("path",t),i(e)}),"path"):i(e)}),"text")}}(),function(){var e=n.util.object.clone;n.util.object.extend(n.IText.prototype,{initBehavior:function(){this.initAddedHandler(),this.initRemovedHandler(),this.initCursorSelectionHandlers(),this.initDoubleClickSimulation(),this.mouseMoveHandler=this.mouseMoveHandler.bind(this)},onDeselect:function(){this.isEditing&&this.exitEditing(),this.selected=!1},initAddedHandler:function(){var e=this;this.on("added",(function(){var t=e.canvas;t&&(t._hasITextHandlers||(t._hasITextHandlers=!0,e._initCanvasHandlers(t)),t._iTextInstances=t._iTextInstances||[],t._iTextInstances.push(e))}))},initRemovedHandler:function(){var e=this;this.on("removed",(function(){var t=e.canvas;t&&(t._iTextInstances=t._iTextInstances||[],n.util.removeFromArray(t._iTextInstances,e),0===t._iTextInstances.length&&(t._hasITextHandlers=!1,e._removeCanvasHandlers(t)))}))},_initCanvasHandlers:function(e){e._mouseUpITextHandler=function(){e._iTextInstances&&e._iTextInstances.forEach((function(e){e.__isMousedown=!1}))},e.on("mouse:up",e._mouseUpITextHandler)},_removeCanvasHandlers:function(e){e.off("mouse:up",e._mouseUpITextHandler)},_tick:function(){this._currentTickState=this._animateCursor(this,1,this.cursorDuration,"_onTickComplete")},_animateCursor:function(e,t,i,s){var n;return n={isAborted:!1,abort:function(){this.isAborted=!0}},e.animate("_currentCursorOpacity",t,{duration:i,onComplete:function(){n.isAborted||e[s]()},onChange:function(){e.canvas&&e.selectionStart===e.selectionEnd&&e.renderCursorOrSelection()},abort:function(){return n.isAborted}}),n},_onTickComplete:function(){var e=this;this._cursorTimeout1&&clearTimeout(this._cursorTimeout1),this._cursorTimeout1=setTimeout((function(){e._currentTickCompleteState=e._animateCursor(e,0,this.cursorDuration/2,"_tick")}),100)},initDelayedCursor:function(e){var t=this,i=e?0:this.cursorDelay;this.abortCursorAnimation(),this._currentCursorOpacity=1,this._cursorTimeout2=setTimeout((function(){t._tick()}),i)},abortCursorAnimation:function(){var e=this._currentTickState||this._currentTickCompleteState,t=this.canvas;this._currentTickState&&this._currentTickState.abort(),this._currentTickCompleteState&&this._currentTickCompleteState.abort(),clearTimeout(this._cursorTimeout1),clearTimeout(this._cursorTimeout2),this._currentCursorOpacity=0,e&&t&&t.clearContext(t.contextTop||t.contextContainer)},selectAll:function(){return this.selectionStart=0,this.selectionEnd=this._text.length,this._fireSelectionChanged(),this._updateTextarea(),this},getSelectedText:function(){return this._text.slice(this.selectionStart,this.selectionEnd).join("")},findWordBoundaryLeft:function(e){var t=0,i=e-1;if(this._reSpace.test(this._text[i]))for(;this._reSpace.test(this._text[i]);)t++,i--;for(;/\S/.test(this._text[i])&&i>-1;)t++,i--;return e-t},findWordBoundaryRight:function(e){var t=0,i=e;if(this._reSpace.test(this._text[i]))for(;this._reSpace.test(this._text[i]);)t++,i++;for(;/\S/.test(this._text[i])&&i<this._text.length;)t++,i++;return e+t},findLineBoundaryLeft:function(e){for(var t=0,i=e-1;!/\n/.test(this._text[i])&&i>-1;)t++,i--;return e-t},findLineBoundaryRight:function(e){for(var t=0,i=e;!/\n/.test(this._text[i])&&i<this._text.length;)t++,i++;return e+t},searchWordBoundary:function(e,t){for(var i=this._text,s=this._reSpace.test(i[e])?e-1:e,r=i[s],o=n.reNonWord;!o.test(r)&&s>0&&s<i.length;)r=i[s+=t];return o.test(r)&&(s+=1===t?0:1),s},selectWord:function(e){e=e||this.selectionStart;var t=this.searchWordBoundary(e,-1),i=this.searchWordBoundary(e,1);this.selectionStart=t,this.selectionEnd=i,this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()},selectLine:function(e){e=e||this.selectionStart;var t=this.findLineBoundaryLeft(e),i=this.findLineBoundaryRight(e);return this.selectionStart=t,this.selectionEnd=i,this._fireSelectionChanged(),this._updateTextarea(),this},enterEditing:function(e){if(!this.isEditing&&this.editable)return this.canvas&&(this.canvas.calcOffset(),this.exitEditingOnOthers(this.canvas)),this.isEditing=!0,this.initHiddenTextarea(e),this.hiddenTextarea.focus(),this.hiddenTextarea.value=this.text,this._updateTextarea(),this._saveEditingProps(),this._setEditingProps(),this._textBeforeEdit=this.text,this._tick(),this.fire("editing:entered"),this._fireSelectionChanged(),this.canvas?(this.canvas.fire("text:editing:entered",{target:this}),this.initMouseMoveHandler(),this.canvas.requestRenderAll(),this):this},exitEditingOnOthers:function(e){e._iTextInstances&&e._iTextInstances.forEach((function(e){e.selected=!1,e.isEditing&&e.exitEditing()}))},initMouseMoveHandler:function(){this.canvas.on("mouse:move",this.mouseMoveHandler)},mouseMoveHandler:function(e){if(this.__isMousedown&&this.isEditing){document.activeElement!==this.hiddenTextarea&&this.hiddenTextarea.focus();var t=this.getSelectionStartFromPointer(e.e),i=this.selectionStart,s=this.selectionEnd;(t===this.__selectionStartOnMouseDown&&i!==s||i!==t&&s!==t)&&(t>this.__selectionStartOnMouseDown?(this.selectionStart=this.__selectionStartOnMouseDown,this.selectionEnd=t):(this.selectionStart=t,this.selectionEnd=this.__selectionStartOnMouseDown),this.selectionStart===i&&this.selectionEnd===s||(this.restartCursorIfNeeded(),this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()))}},_setEditingProps:function(){this.hoverCursor="text",this.canvas&&(this.canvas.defaultCursor=this.canvas.moveCursor="text"),this.borderColor=this.editingBorderColor,this.hasControls=this.selectable=!1,this.lockMovementX=this.lockMovementY=!0},fromStringToGraphemeSelection:function(e,t,i){var s=i.slice(0,e),r=n.util.string.graphemeSplit(s).length;if(e===t)return{selectionStart:r,selectionEnd:r};var o=i.slice(e,t);return{selectionStart:r,selectionEnd:r+n.util.string.graphemeSplit(o).length}},fromGraphemeToStringSelection:function(e,t,i){var s=i.slice(0,e).join("").length;return e===t?{selectionStart:s,selectionEnd:s}:{selectionStart:s,selectionEnd:s+i.slice(e,t).join("").length}},_updateTextarea:function(){if(this.cursorOffsetCache={},this.hiddenTextarea){if(!this.inCompositionMode){var e=this.fromGraphemeToStringSelection(this.selectionStart,this.selectionEnd,this._text);this.hiddenTextarea.selectionStart=e.selectionStart,this.hiddenTextarea.selectionEnd=e.selectionEnd}this.updateTextareaPosition()}},updateFromTextArea:function(){if(this.hiddenTextarea){this.cursorOffsetCache={},this.text=this.hiddenTextarea.value,this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords());var e=this.fromStringToGraphemeSelection(this.hiddenTextarea.selectionStart,this.hiddenTextarea.selectionEnd,this.hiddenTextarea.value);this.selectionEnd=this.selectionStart=e.selectionEnd,this.inCompositionMode||(this.selectionStart=e.selectionStart),this.updateTextareaPosition()}},updateTextareaPosition:function(){if(this.selectionStart===this.selectionEnd){var e=this._calcTextareaPosition();this.hiddenTextarea.style.left=e.left,this.hiddenTextarea.style.top=e.top}},_calcTextareaPosition:function(){if(!this.canvas)return{x:1,y:1};var e=this.inCompositionMode?this.compositionStart:this.selectionStart,t=this._getCursorBoundaries(e),i=this.get2DCursorLocation(e),s=i.lineIndex,r=i.charIndex,o=this.getValueOfPropertyAt(s,r,"fontSize")*this.lineHeight,a=t.leftOffset,c=this.calcTransformMatrix(),l={x:t.left+a,y:t.top+t.topOffset+o},h=this.canvas.getRetinaScaling(),d=this.canvas.upperCanvasEl,u=d.width/h,g=d.height/h,p=u-o,m=g-o,f=d.clientWidth/u,_=d.clientHeight/g;return l=n.util.transformPoint(l,c),(l=n.util.transformPoint(l,this.canvas.viewportTransform)).x*=f,l.y*=_,l.x<0&&(l.x=0),l.x>p&&(l.x=p),l.y<0&&(l.y=0),l.y>m&&(l.y=m),l.x+=this.canvas._offset.left,l.y+=this.canvas._offset.top,{left:l.x+"px",top:l.y+"px",fontSize:o+"px",charHeight:o}},_saveEditingProps:function(){this._savedProps={hasControls:this.hasControls,borderColor:this.borderColor,lockMovementX:this.lockMovementX,lockMovementY:this.lockMovementY,hoverCursor:this.hoverCursor,selectable:this.selectable,defaultCursor:this.canvas&&this.canvas.defaultCursor,moveCursor:this.canvas&&this.canvas.moveCursor}},_restoreEditingProps:function(){this._savedProps&&(this.hoverCursor=this._savedProps.hoverCursor,this.hasControls=this._savedProps.hasControls,this.borderColor=this._savedProps.borderColor,this.selectable=this._savedProps.selectable,this.lockMovementX=this._savedProps.lockMovementX,this.lockMovementY=this._savedProps.lockMovementY,this.canvas&&(this.canvas.defaultCursor=this._savedProps.defaultCursor,this.canvas.moveCursor=this._savedProps.moveCursor))},exitEditing:function(){var e=this._textBeforeEdit!==this.text,t=this.hiddenTextarea;return this.selected=!1,this.isEditing=!1,this.selectionEnd=this.selectionStart,t&&(t.blur&&t.blur(),t.parentNode&&t.parentNode.removeChild(t)),this.hiddenTextarea=null,this.abortCursorAnimation(),this._restoreEditingProps(),this._currentCursorOpacity=0,this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this.fire("editing:exited"),e&&this.fire("modified"),this.canvas&&(this.canvas.off("mouse:move",this.mouseMoveHandler),this.canvas.fire("text:editing:exited",{target:this}),e&&this.canvas.fire("object:modified",{target:this})),this},_removeExtraneousStyles:function(){for(var e in this.styles)this._textLines[e]||delete this.styles[e]},removeStyleFromTo:function(e,t){var i,s,n=this.get2DCursorLocation(e,!0),r=this.get2DCursorLocation(t,!0),o=n.lineIndex,a=n.charIndex,c=r.lineIndex,l=r.charIndex;if(o!==c){if(this.styles[o])for(i=a;i<this._unwrappedTextLines[o].length;i++)delete this.styles[o][i];if(this.styles[c])for(i=l;i<this._unwrappedTextLines[c].length;i++)(s=this.styles[c][i])&&(this.styles[o]||(this.styles[o]={}),this.styles[o][a+i-l]=s);for(i=o+1;i<=c;i++)delete this.styles[i];this.shiftLineStyles(c,o-c)}else if(this.styles[o]){s=this.styles[o];var h,d,u=l-a;for(i=a;i<l;i++)delete s[i];for(d in this.styles[o])(h=parseInt(d,10))>=l&&(s[h-u]=s[d],delete s[d])}},shiftLineStyles:function(t,i){var s=e(this.styles);for(var n in this.styles){var r=parseInt(n,10);r>t&&(this.styles[r+i]=s[r],s[r-i]||delete this.styles[r])}},restartCursorIfNeeded:function(){this._currentTickState&&!this._currentTickState.isAborted&&this._currentTickCompleteState&&!this._currentTickCompleteState.isAborted||this.initDelayedCursor()},insertNewlineStyleObject:function(t,i,s,n){var r,o={},a=!1,c=this._unwrappedTextLines[t].length,l=c===i;for(var h in s||(s=1),this.shiftLineStyles(t,s),this.styles[t]&&(r=this.styles[t][0===i?i:i-1]),this.styles[t]){var d=parseInt(h,10);d>=i&&(a=!0,o[d-i]=this.styles[t][h],l&&0===i||delete this.styles[t][h])}var u=!1;for(a&&!l&&(this.styles[t+s]=o,u=!0),(u||c>i)&&s--;s>0;)n&&n[s-1]?this.styles[t+s]={0:e(n[s-1])}:r?this.styles[t+s]={0:e(r)}:delete this.styles[t+s],s--;this._forceClearCache=!0},insertCharStyleObject:function(t,i,s,n){this.styles||(this.styles={});var r=this.styles[t],o=r?e(r):{};for(var a in s||(s=1),o){var c=parseInt(a,10);c>=i&&(r[c+s]=o[c],o[c-s]||delete r[c])}if(this._forceClearCache=!0,n)for(;s--;)Object.keys(n[s]).length&&(this.styles[t]||(this.styles[t]={}),this.styles[t][i+s]=e(n[s]));else if(r)for(var l=r[i?i-1:1];l&&s--;)this.styles[t][i+s]=e(l)},insertNewStyleBlock:function(e,t,i){for(var s=this.get2DCursorLocation(t,!0),n=[0],r=0,o=0;o<e.length;o++)"\n"===e[o]?n[++r]=0:n[r]++;n[0]>0&&(this.insertCharStyleObject(s.lineIndex,s.charIndex,n[0],i),i=i&&i.slice(n[0]+1)),r&&this.insertNewlineStyleObject(s.lineIndex,s.charIndex+n[0],r);for(o=1;o<r;o++)n[o]>0?this.insertCharStyleObject(s.lineIndex+o,0,n[o],i):i&&this.styles[s.lineIndex+o]&&i[0]&&(this.styles[s.lineIndex+o][0]=i[0]),i=i&&i.slice(n[o]+1);n[o]>0&&this.insertCharStyleObject(s.lineIndex+o,0,n[o],i)},setSelectionStartEndWithShift:function(e,t,i){i<=e?(t===e?this._selectionDirection="left":"right"===this._selectionDirection&&(this._selectionDirection="left",this.selectionEnd=e),this.selectionStart=i):i>e&&i<t?"right"===this._selectionDirection?this.selectionEnd=i:this.selectionStart=i:(t===e?this._selectionDirection="right":"left"===this._selectionDirection&&(this._selectionDirection="right",this.selectionStart=t),this.selectionEnd=i)},setSelectionInBoundaries:function(){var e=this.text.length;this.selectionStart>e?this.selectionStart=e:this.selectionStart<0&&(this.selectionStart=0),this.selectionEnd>e?this.selectionEnd=e:this.selectionEnd<0&&(this.selectionEnd=0)}})}(),n.util.object.extend(n.IText.prototype,{initDoubleClickSimulation:function(){this.__lastClickTime=+new Date,this.__lastLastClickTime=+new Date,this.__lastPointer={},this.on("mousedown",this.onMouseDown)},onMouseDown:function(e){if(this.canvas){this.__newClickTime=+new Date;var t=e.pointer;this.isTripleClick(t)&&(this.fire("tripleclick",e),this._stopEvent(e.e)),this.__lastLastClickTime=this.__lastClickTime,this.__lastClickTime=this.__newClickTime,this.__lastPointer=t,this.__lastIsEditing=this.isEditing,this.__lastSelected=this.selected}},isTripleClick:function(e){return this.__newClickTime-this.__lastClickTime<500&&this.__lastClickTime-this.__lastLastClickTime<500&&this.__lastPointer.x===e.x&&this.__lastPointer.y===e.y},_stopEvent:function(e){e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation()},initCursorSelectionHandlers:function(){this.initMousedownHandler(),this.initMouseupHandler(),this.initClicks()},doubleClickHandler:function(e){this.isEditing&&this.selectWord(this.getSelectionStartFromPointer(e.e))},tripleClickHandler:function(e){this.isEditing&&this.selectLine(this.getSelectionStartFromPointer(e.e))},initClicks:function(){this.on("mousedblclick",this.doubleClickHandler),this.on("tripleclick",this.tripleClickHandler)},_mouseDownHandler:function(e){!this.canvas||!this.editable||e.e.button&&1!==e.e.button||(this.__isMousedown=!0,this.selected&&(this.inCompositionMode=!1,this.setCursorByClick(e.e)),this.isEditing&&(this.__selectionStartOnMouseDown=this.selectionStart,this.selectionStart===this.selectionEnd&&this.abortCursorAnimation(),this.renderCursorOrSelection()))},_mouseDownHandlerBefore:function(e){!this.canvas||!this.editable||e.e.button&&1!==e.e.button||(this.selected=this===this.canvas._activeObject)},initMousedownHandler:function(){this.on("mousedown",this._mouseDownHandler),this.on("mousedown:before",this._mouseDownHandlerBefore)},initMouseupHandler:function(){this.on("mouseup",this.mouseUpHandler)},mouseUpHandler:function(e){if(this.__isMousedown=!1,!(!this.editable||this.group||e.transform&&e.transform.actionPerformed||e.e.button&&1!==e.e.button)){if(this.canvas){var t=this.canvas._activeObject;if(t&&t!==this)return}this.__lastSelected&&!this.__corner?(this.selected=!1,this.__lastSelected=!1,this.enterEditing(e.e),this.selectionStart===this.selectionEnd?this.initDelayedCursor(!0):this.renderCursorOrSelection()):this.selected=!0}},setCursorByClick:function(e){var t=this.getSelectionStartFromPointer(e),i=this.selectionStart,s=this.selectionEnd;e.shiftKey?this.setSelectionStartEndWithShift(i,s,t):(this.selectionStart=t,this.selectionEnd=t),this.isEditing&&(this._fireSelectionChanged(),this._updateTextarea())},getSelectionStartFromPointer:function(e){for(var t,i=this.getLocalPointer(e),s=0,n=0,r=0,o=0,a=0,c=0,l=this._textLines.length;c<l&&r<=i.y;c++)r+=this.getHeightOfLine(c)*this.scaleY,a=c,c>0&&(o+=this._textLines[c-1].length+this.missingNewlineOffset(c-1));n=this._getLineLeftOffset(a)*this.scaleX,t=this._textLines[a],"rtl"===this.direction&&(i.x=this.width*this.scaleX-i.x+n);for(var h=0,d=t.length;h<d&&(s=n,(n+=this.__charBounds[a][h].kernedWidth*this.scaleX)<=i.x);h++)o++;return this._getNewSelectionStartFromOffset(i,s,n,o,d)},_getNewSelectionStartFromOffset:function(e,t,i,s,n){var r=e.x-t,o=i-e.x,a=s+(o>r||o<0?0:1);return this.flipX&&(a=n-a),a>this._text.length&&(a=this._text.length),a}}),n.util.object.extend(n.IText.prototype,{initHiddenTextarea:function(){this.hiddenTextarea=n.document.createElement("textarea"),this.hiddenTextarea.setAttribute("autocapitalize","off"),this.hiddenTextarea.setAttribute("autocorrect","off"),this.hiddenTextarea.setAttribute("autocomplete","off"),this.hiddenTextarea.setAttribute("spellcheck","false"),this.hiddenTextarea.setAttribute("data-fabric-hiddentextarea",""),this.hiddenTextarea.setAttribute("wrap","off");var e=this._calcTextareaPosition();this.hiddenTextarea.style.cssText="position: absolute; top: "+e.top+"; left: "+e.left+"; z-index: -999; opacity: 0; width: 1px; height: 1px; font-size: 1px; padding-top: "+e.fontSize+";",this.hiddenTextareaContainer?this.hiddenTextareaContainer.appendChild(this.hiddenTextarea):n.document.body.appendChild(this.hiddenTextarea),n.util.addListener(this.hiddenTextarea,"keydown",this.onKeyDown.bind(this)),n.util.addListener(this.hiddenTextarea,"keyup",this.onKeyUp.bind(this)),n.util.addListener(this.hiddenTextarea,"input",this.onInput.bind(this)),n.util.addListener(this.hiddenTextarea,"copy",this.copy.bind(this)),n.util.addListener(this.hiddenTextarea,"cut",this.copy.bind(this)),n.util.addListener(this.hiddenTextarea,"paste",this.paste.bind(this)),n.util.addListener(this.hiddenTextarea,"compositionstart",this.onCompositionStart.bind(this)),n.util.addListener(this.hiddenTextarea,"compositionupdate",this.onCompositionUpdate.bind(this)),n.util.addListener(this.hiddenTextarea,"compositionend",this.onCompositionEnd.bind(this)),!this._clickHandlerInitialized&&this.canvas&&(n.util.addListener(this.canvas.upperCanvasEl,"click",this.onClick.bind(this)),this._clickHandlerInitialized=!0)},keysMap:{9:"exitEditing",27:"exitEditing",33:"moveCursorUp",34:"moveCursorDown",35:"moveCursorRight",36:"moveCursorLeft",37:"moveCursorLeft",38:"moveCursorUp",39:"moveCursorRight",40:"moveCursorDown"},keysMapRtl:{9:"exitEditing",27:"exitEditing",33:"moveCursorUp",34:"moveCursorDown",35:"moveCursorLeft",36:"moveCursorRight",37:"moveCursorRight",38:"moveCursorUp",39:"moveCursorLeft",40:"moveCursorDown"},ctrlKeysMapUp:{67:"copy",88:"cut"},ctrlKeysMapDown:{65:"selectAll"},onClick:function(){this.hiddenTextarea&&this.hiddenTextarea.focus()},onKeyDown:function(e){if(this.isEditing){var t="rtl"===this.direction?this.keysMapRtl:this.keysMap;if(e.keyCode in t)this[t[e.keyCode]](e);else{if(!(e.keyCode in this.ctrlKeysMapDown)||!e.ctrlKey&&!e.metaKey)return;this[this.ctrlKeysMapDown[e.keyCode]](e)}e.stopImmediatePropagation(),e.preventDefault(),e.keyCode>=33&&e.keyCode<=40?(this.inCompositionMode=!1,this.clearContextTop(),this.renderCursorOrSelection()):this.canvas&&this.canvas.requestRenderAll()}},onKeyUp:function(e){!this.isEditing||this._copyDone||this.inCompositionMode?this._copyDone=!1:e.keyCode in this.ctrlKeysMapUp&&(e.ctrlKey||e.metaKey)&&(this[this.ctrlKeysMapUp[e.keyCode]](e),e.stopImmediatePropagation(),e.preventDefault(),this.canvas&&this.canvas.requestRenderAll())},onInput:function(e){var t=this.fromPaste;if(this.fromPaste=!1,e&&e.stopPropagation(),this.isEditing){var i,s,r,o,a,c=this._splitTextIntoLines(this.hiddenTextarea.value).graphemeText,l=this._text.length,h=c.length,d=h-l,u=this.selectionStart,g=this.selectionEnd,p=u!==g;if(""===this.hiddenTextarea.value)return this.styles={},this.updateFromTextArea(),this.fire("changed"),void(this.canvas&&(this.canvas.fire("text:changed",{target:this}),this.canvas.requestRenderAll()));var m=this.fromStringToGraphemeSelection(this.hiddenTextarea.selectionStart,this.hiddenTextarea.selectionEnd,this.hiddenTextarea.value),f=u>m.selectionStart;p?(i=this._text.slice(u,g),d+=g-u):h<l&&(i=f?this._text.slice(g+d,g):this._text.slice(u,u-d)),s=c.slice(m.selectionEnd-d,m.selectionEnd),i&&i.length&&(s.length&&(r=this.getSelectionStyles(u,u+1,!1),r=s.map((function(){return r[0]}))),p?(o=u,a=g):f?(o=g-i.length,a=g):(o=g,a=g+i.length),this.removeStyleFromTo(o,a)),s.length&&(t&&s.join("")===n.copiedText&&!n.disableStyleCopyPaste&&(r=n.copiedTextStyle),this.insertNewStyleBlock(s,u,r)),this.updateFromTextArea(),this.fire("changed"),this.canvas&&(this.canvas.fire("text:changed",{target:this}),this.canvas.requestRenderAll())}},onCompositionStart:function(){this.inCompositionMode=!0},onCompositionEnd:function(){this.inCompositionMode=!1},onCompositionUpdate:function(e){this.compositionStart=e.target.selectionStart,this.compositionEnd=e.target.selectionEnd,this.updateTextareaPosition()},copy:function(){this.selectionStart!==this.selectionEnd&&(n.copiedText=this.getSelectedText(),n.disableStyleCopyPaste?n.copiedTextStyle=null:n.copiedTextStyle=this.getSelectionStyles(this.selectionStart,this.selectionEnd,!0),this._copyDone=!0)},paste:function(){this.fromPaste=!0},_getClipboardData:function(e){return e&&e.clipboardData||n.window.clipboardData},_getWidthBeforeCursor:function(e,t){var i,s=this._getLineLeftOffset(e);return t>0&&(s+=(i=this.__charBounds[e][t-1]).left+i.width),s},getDownCursorOffset:function(e,t){var i=this._getSelectionForOffset(e,t),s=this.get2DCursorLocation(i),n=s.lineIndex;if(n===this._textLines.length-1||e.metaKey||34===e.keyCode)return this._text.length-i;var r=s.charIndex,o=this._getWidthBeforeCursor(n,r),a=this._getIndexOnLine(n+1,o);return this._textLines[n].slice(r).length+a+1+this.missingNewlineOffset(n)},_getSelectionForOffset:function(e,t){return e.shiftKey&&this.selectionStart!==this.selectionEnd&&t?this.selectionEnd:this.selectionStart},getUpCursorOffset:function(e,t){var i=this._getSelectionForOffset(e,t),s=this.get2DCursorLocation(i),n=s.lineIndex;if(0===n||e.metaKey||33===e.keyCode)return-i;var r=s.charIndex,o=this._getWidthBeforeCursor(n,r),a=this._getIndexOnLine(n-1,o),c=this._textLines[n].slice(0,r),l=this.missingNewlineOffset(n-1);return-this._textLines[n-1].length+a-c.length+(1-l)},_getIndexOnLine:function(e,t){for(var i,s,n=this._textLines[e],r=this._getLineLeftOffset(e),o=0,a=0,c=n.length;a<c;a++)if((r+=i=this.__charBounds[e][a].width)>t){s=!0;var l=r-i,h=r,d=Math.abs(l-t);o=Math.abs(h-t)<d?a:a-1;break}return s||(o=n.length-1),o},moveCursorDown:function(e){this.selectionStart>=this._text.length&&this.selectionEnd>=this._text.length||this._moveCursorUpOrDown("Down",e)},moveCursorUp:function(e){0===this.selectionStart&&0===this.selectionEnd||this._moveCursorUpOrDown("Up",e)},_moveCursorUpOrDown:function(e,t){var i=this["get"+e+"CursorOffset"](t,"right"===this._selectionDirection);t.shiftKey?this.moveCursorWithShift(i):this.moveCursorWithoutShift(i),0!==i&&(this.setSelectionInBoundaries(),this.abortCursorAnimation(),this._currentCursorOpacity=1,this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())},moveCursorWithShift:function(e){var t="left"===this._selectionDirection?this.selectionStart+e:this.selectionEnd+e;return this.setSelectionStartEndWithShift(this.selectionStart,this.selectionEnd,t),0!==e},moveCursorWithoutShift:function(e){return e<0?(this.selectionStart+=e,this.selectionEnd=this.selectionStart):(this.selectionEnd+=e,this.selectionStart=this.selectionEnd),0!==e},moveCursorLeft:function(e){0===this.selectionStart&&0===this.selectionEnd||this._moveCursorLeftOrRight("Left",e)},_move:function(e,t,i){var s;if(e.altKey)s=this["findWordBoundary"+i](this[t]);else{if(!e.metaKey&&35!==e.keyCode&&36!==e.keyCode)return this[t]+="Left"===i?-1:1,!0;s=this["findLineBoundary"+i](this[t])}if("undefined"!==typeof s&&this[t]!==s)return this[t]=s,!0},_moveLeft:function(e,t){return this._move(e,t,"Left")},_moveRight:function(e,t){return this._move(e,t,"Right")},moveCursorLeftWithoutShift:function(e){var t=!0;return this._selectionDirection="left",this.selectionEnd===this.selectionStart&&0!==this.selectionStart&&(t=this._moveLeft(e,"selectionStart")),this.selectionEnd=this.selectionStart,t},moveCursorLeftWithShift:function(e){return"right"===this._selectionDirection&&this.selectionStart!==this.selectionEnd?this._moveLeft(e,"selectionEnd"):0!==this.selectionStart?(this._selectionDirection="left",this._moveLeft(e,"selectionStart")):void 0},moveCursorRight:function(e){this.selectionStart>=this._text.length&&this.selectionEnd>=this._text.length||this._moveCursorLeftOrRight("Right",e)},_moveCursorLeftOrRight:function(e,t){var i="moveCursor"+e+"With";this._currentCursorOpacity=1,t.shiftKey?i+="Shift":i+="outShift",this[i](t)&&(this.abortCursorAnimation(),this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())},moveCursorRightWithShift:function(e){return"left"===this._selectionDirection&&this.selectionStart!==this.selectionEnd?this._moveRight(e,"selectionStart"):this.selectionEnd!==this._text.length?(this._selectionDirection="right",this._moveRight(e,"selectionEnd")):void 0},moveCursorRightWithoutShift:function(e){var t=!0;return this._selectionDirection="right",this.selectionStart===this.selectionEnd?(t=this._moveRight(e,"selectionStart"),this.selectionEnd=this.selectionStart):this.selectionStart=this.selectionEnd,t},removeChars:function(e,t){"undefined"===typeof t&&(t=e+1),this.removeStyleFromTo(e,t),this._text.splice(e,t-e),this.text=this._text.join(""),this.set("dirty",!0),this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this._removeExtraneousStyles()},insertChars:function(e,t,i,s){"undefined"===typeof s&&(s=i),s>i&&this.removeStyleFromTo(i,s);var r=n.util.string.graphemeSplit(e);this.insertNewStyleBlock(r,i,t),this._text=[].concat(this._text.slice(0,i),r,this._text.slice(s)),this.text=this._text.join(""),this.set("dirty",!0),this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this._removeExtraneousStyles()}}),function(){var e=n.util.toFixed,t=n.util.radiansToDegrees,i=n.util.calcRotateMatrix,s=n.util.transformPoint,r=/ +/g;n.util.object.extend(n.Text.prototype,{_toSVG:function(){var e=this._getSVGLeftTopOffsets(),t=this._getSVGTextAndBg(e.textTop,e.textLeft);return this._wrapSVGTextAndBg(t)},toSVG:function(e){var t=this._createBaseSVGMarkup(this._toSVG(),{reviver:e,noStyle:!0,withShadow:!0}),i=this.path;return i?t+i._createBaseSVGMarkup(i._toSVG(),{reviver:e,withShadow:!0}):t},_getSVGLeftTopOffsets:function(){return{textLeft:-this.width/2,textTop:-this.height/2,lineTop:this.getHeightOfLine(0)}},_wrapSVGTextAndBg:function(e){var t=this.getSvgTextDecoration(this);return[e.textBgRects.join(""),'\t\t<text xml:space="preserve" ',this.fontFamily?'font-family="'+this.fontFamily.replace(/"/g,"'")+'" ':"",this.fontSize?'font-size="'+this.fontSize+'" ':"",this.fontStyle?'font-style="'+this.fontStyle+'" ':"",this.fontWeight?'font-weight="'+this.fontWeight+'" ':"",t?'text-decoration="'+t+'" ':"",'style="',this.getSvgStyles(!0),'"',this.addPaintOrder()," >",e.textSpans.join(""),"</text>\n"]},_getSVGTextAndBg:function(e,t){var i,s=[],n=[],r=e;this._setSVGBg(n);for(var o=0,a=this._textLines.length;o<a;o++)i=this._getLineLeftOffset(o),(this.textBackgroundColor||this.styleHas("textBackgroundColor",o))&&this._setSVGTextLineBg(n,o,t+i,r),this._setSVGTextLineText(s,o,t+i,r),r+=this.getHeightOfLine(o);return{textSpans:s,textBgRects:n}},_createTextCharSpan:function(o,a,c,l,h){var d=o!==o.trim()||o.match(r),u=this.getSvgSpanStyles(a,d),g=u?'style="'+u+'"':"",p=a.deltaY,m="",f=n.Object.NUM_FRACTION_DIGITS,_="";if(p&&(m=' dy="'+e(p,f)+'" '),void 0!==h.renderLeft){var v=h.angle;_=' rotate="'+e(t(v),n.Object.NUM_FRACTION_DIGITS)+'" ';var C=h.width/2,E=i({angle:t(v)});E[4]=h.renderLeft,E[5]=h.renderTop;var b=s({x:-C,y:0},E);c=b.x,l=b.y}return['<tspan x="',e(c,f),'" y="',e(l,f),'" ',m,g,_,">",n.util.string.escapeXml(o),"</tspan>"].join("")},_setSVGTextLineText:function(e,t,i,s){var r,o,a,c,l,h=this.getHeightOfLine(t),d=-1!==this.textAlign.indexOf("justify"),u="",g=0,p=this._textLines[t];s+=h*(1-this._fontSizeFraction)/this.lineHeight;for(var m=0,f=p.length-1;m<=f;m++)l=m===f||this.charSpacing||this.path,u+=p[m],a=this.__charBounds[t][m],0===g?(i+=a.kernedWidth-a.width,g+=a.width):g+=a.kernedWidth,d&&!l&&this._reSpaceAndTab.test(p[m])&&(l=!0),l||(r=r||this.getCompleteStyleDeclaration(t,m),o=this.getCompleteStyleDeclaration(t,m+1),l=n.util.hasStyleChanged(r,o,!0)),l&&(c=this._getStyleDeclaration(t,m)||{},e.push(this._createTextCharSpan(u,c,i,s,a)),u="",r=o,i+=g,g=0)},_pushTextBgRect:function(t,i,s,r,o,a){var c=n.Object.NUM_FRACTION_DIGITS;t.push("\t\t<rect ",this._getFillAttributes(i),' x="',e(s,c),'" y="',e(r,c),'" width="',e(o,c),'" height="',e(a,c),'"></rect>\n')},_setSVGTextLineBg:function(e,t,i,s){for(var n,r,o=this._textLines[t],a=this.getHeightOfLine(t)/this.lineHeight,c=0,l=0,h=this.getValueOfPropertyAt(t,0,"textBackgroundColor"),d=0,u=o.length;d<u;d++)n=this.__charBounds[t][d],(r=this.getValueOfPropertyAt(t,d,"textBackgroundColor"))!==h?(h&&this._pushTextBgRect(e,h,i+l,s,c,a),l=n.left,c=n.width,h=r):c+=n.kernedWidth;r&&this._pushTextBgRect(e,r,i+l,s,c,a)},_getFillAttributes:function(e){var t=e&&"string"===typeof e?new n.Color(e):"";return t&&t.getSource()&&1!==t.getAlpha()?'opacity="'+t.getAlpha()+'" fill="'+t.setAlpha(1).toRgb()+'"':'fill="'+e+'"'},_getSVGLineTopOffset:function(e){for(var t,i=0,s=0;s<e;s++)i+=this.getHeightOfLine(s);return t=this.getHeightOfLine(s),{lineTop:i,offset:(this._fontSizeMult-this._fontSizeFraction)*t/(this.lineHeight*this._fontSizeMult)}},getSvgStyles:function(e){return n.Object.prototype.getSvgStyles.call(this,e)+" white-space: pre;"}})}(),function(e){"use strict";var t=e.fabric||(e.fabric={});t.Textbox=t.util.createClass(t.IText,t.Observable,{type:"textbox",minWidth:20,dynamicMinWidth:2,__cachedLines:null,lockScalingFlip:!0,noScaleCache:!1,_dimensionAffectingProps:t.Text.prototype._dimensionAffectingProps.concat("width"),_wordJoiners:/[ \t\r]/,splitByGrapheme:!1,initDimensions:function(){this.__skipDimension||(this.isEditing&&this.initDelayedCursor(),this.clearContextTop(),this._clearCache(),this.dynamicMinWidth=0,this._styleMap=this._generateStyleMap(this._splitText()),this.dynamicMinWidth>this.width&&this._set("width",this.dynamicMinWidth),-1!==this.textAlign.indexOf("justify")&&this.enlargeSpaces(),this.height=this.calcTextHeight(),this.saveState({propertySet:"_dimensionAffectingProps"}))},_generateStyleMap:function(e){for(var t=0,i=0,s=0,n={},r=0;r<e.graphemeLines.length;r++)"\n"===e.graphemeText[s]&&r>0?(i=0,s++,t++):!this.splitByGrapheme&&this._reSpaceAndTab.test(e.graphemeText[s])&&r>0&&(i++,s++),n[r]={line:t,offset:i},s+=e.graphemeLines[r].length,i+=e.graphemeLines[r].length;return n},styleHas:function(e,i){if(this._styleMap&&!this.isWrapping){var s=this._styleMap[i];s&&(i=s.line)}return t.Text.prototype.styleHas.call(this,e,i)},isEmptyStyles:function(e){if(!this.styles)return!0;var t,i,s=0,n=!1,r=this._styleMap[e],o=this._styleMap[e+1];for(var a in r&&(e=r.line,s=r.offset),o&&(n=o.line===e,t=o.offset),i="undefined"===typeof e?this.styles:{line:this.styles[e]})for(var c in i[a])if(c>=s&&(!n||c<t))for(var l in i[a][c])return!1;return!0},_getStyleDeclaration:function(e,t){if(this._styleMap&&!this.isWrapping){var i=this._styleMap[e];if(!i)return null;e=i.line,t=i.offset+t}return this.callSuper("_getStyleDeclaration",e,t)},_setStyleDeclaration:function(e,t,i){var s=this._styleMap[e];e=s.line,t=s.offset+t,this.styles[e][t]=i},_deleteStyleDeclaration:function(e,t){var i=this._styleMap[e];e=i.line,t=i.offset+t,delete this.styles[e][t]},_getLineStyle:function(e){var t=this._styleMap[e];return!!this.styles[t.line]},_setLineStyle:function(e){var t=this._styleMap[e];this.styles[t.line]={}},_wrapText:function(e,t){var i,s=[];for(this.isWrapping=!0,i=0;i<e.length;i++)s=s.concat(this._wrapLine(e[i],i,t));return this.isWrapping=!1,s},_measureWord:function(e,t,i){var s,n=0;i=i||0;for(var r=0,o=e.length;r<o;r++){n+=this._getGraphemeBox(e[r],t,r+i,s,true).kernedWidth,s=e[r]}return n},_wrapLine:function(e,i,s,n){var r=0,o=this.splitByGrapheme,a=[],c=[],l=o?t.util.string.graphemeSplit(e):e.split(this._wordJoiners),h="",d=0,u=o?"":" ",g=0,p=0,m=0,f=!0,_=this._getWidthOfCharSpacing();n=n||0;0===l.length&&l.push([]),s-=n;for(var v=0;v<l.length;v++)h=o?l[v]:t.util.string.graphemeSplit(l[v]),g=this._measureWord(h,i,d),d+=h.length,(r+=p+g-_)>s&&!f?(a.push(c),c=[],r=g,f=!0):r+=_,f||o||c.push(u),c=c.concat(h),p=o?0:this._measureWord([u],i,d),d++,f=!1,g>m&&(m=g);return v&&a.push(c),m+n>this.dynamicMinWidth&&(this.dynamicMinWidth=m-_+n),a},isEndOfWrapping:function(e){return!this._styleMap[e+1]||this._styleMap[e+1].line!==this._styleMap[e].line},missingNewlineOffset:function(e,t){return this.splitByGrapheme&&!t?this.isEndOfWrapping(e)?1:0:1},_splitTextIntoLines:function(e){for(var i=t.Text.prototype._splitTextIntoLines.call(this,e),s=this._wrapText(i.lines,this.width),n=new Array(s.length),r=0;r<s.length;r++)n[r]=s[r].join("");return i.lines=n,i.graphemeLines=s,i},getMinWidth:function(){return Math.max(this.minWidth,this.dynamicMinWidth)},_removeExtraneousStyles:function(){var e={};for(var t in this._styleMap)this._textLines[t]&&(e[this._styleMap[t].line]=1);for(var t in this.styles)e[t]||delete this.styles[t]},toObject:function(e){return this.callSuper("toObject",["minWidth","splitByGrapheme"].concat(e))}}),t.Textbox.fromObject=function(e,i){var s=t.util.stylesFromArray(e.styles,e.text),n=Object.assign({},e,{styles:s});return delete n.path,t.Object._fromObject("Textbox",n,(function(s){e.path?t.Object._fromObject("Path",e.path,(function(e){s.set("path",e),i(s)}),"path"):i(s)}),"text")}}(t),function(){var e=n.controlsUtils,t=e.scaleSkewCursorStyleHandler,i=e.scaleCursorStyleHandler,s=e.scalingEqually,r=e.scalingYOrSkewingX,o=e.scalingXOrSkewingY,a=e.scaleOrSkewActionName,c=n.Object.prototype.controls;if(c.ml=new n.Control({x:-.5,y:0,cursorStyleHandler:t,actionHandler:o,getActionName:a}),c.mr=new n.Control({x:.5,y:0,cursorStyleHandler:t,actionHandler:o,getActionName:a}),c.mb=new n.Control({x:0,y:.5,cursorStyleHandler:t,actionHandler:r,getActionName:a}),c.mt=new n.Control({x:0,y:-.5,cursorStyleHandler:t,actionHandler:r,getActionName:a}),c.tl=new n.Control({x:-.5,y:-.5,cursorStyleHandler:i,actionHandler:s}),c.tr=new n.Control({x:.5,y:-.5,cursorStyleHandler:i,actionHandler:s}),c.bl=new n.Control({x:-.5,y:.5,cursorStyleHandler:i,actionHandler:s}),c.br=new n.Control({x:.5,y:.5,cursorStyleHandler:i,actionHandler:s}),c.mtr=new n.Control({x:0,y:-.5,actionHandler:e.rotationWithSnapping,cursorStyleHandler:e.rotationStyleHandler,offsetY:-40,withConnection:!0,actionName:"rotate"}),n.Textbox){var l=n.Textbox.prototype.controls={};l.mtr=c.mtr,l.tr=c.tr,l.br=c.br,l.tl=c.tl,l.bl=c.bl,l.mt=c.mt,l.mb=c.mb,l.mr=new n.Control({x:.5,y:0,actionHandler:e.changeWidth,cursorStyleHandler:t,actionName:"resizing"}),l.ml=new n.Control({x:-.5,y:0,actionHandler:e.changeWidth,cursorStyleHandler:t,actionName:"resizing"})}}()},7291:(e,t,i)=>{"use strict";var s;i.d(t,{p:()=>s}),function(e){e[e.FILE=0]="FILE",e[e.FOLDER=1]="FOLDER",e[e.ROOT_FOLDER=2]="ROOT_FOLDER"}(s||(s={}))},7936:(e,t,i)=>{"use strict";i.d(t,{Y:()=>p});var s,n=i(91508),r=i(1245),o=i(36677),a=i(75326),c=i(63346),l=i(17469),h=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},d=function(e,t){return function(i,s){t(i,s,e)}};const u=Object.create(null);function g(e,t){if(t<=0)return"";u[e]||(u[e]=["",e]);const i=u[e];for(let s=i.length;s<=t;s++)i[s]=i[s-1]+e;return i[t]}let p=s=class{static unshiftIndent(e,t,i,s,n){const o=r.A.visibleColumnFromColumn(e,t,i);if(n){const e=g(" ",s);return g(e,r.A.prevIndentTabStop(o,s)/s)}return g("\t",r.A.prevRenderTabStop(o,i)/i)}static shiftIndent(e,t,i,s,n){const o=r.A.visibleColumnFromColumn(e,t,i);if(n){const e=g(" ",s);return g(e,r.A.nextIndentTabStop(o,s)/s)}return g("\t",r.A.nextRenderTabStop(o,i)/i)}constructor(e,t,i){this._languageConfigurationService=i,this._opts=t,this._selection=e,this._selectionId=null,this._useLastEditRangeForCursorEndPosition=!1,this._selectionStartColumnStaysPut=!1}_addEditOperation(e,t,i){this._useLastEditRangeForCursorEndPosition?e.addTrackedEditOperation(t,i):e.addEditOperation(t,i)}getEditOperations(e,t){const i=this._selection.startLineNumber;let a=this._selection.endLineNumber;1===this._selection.endColumn&&i!==a&&(a-=1);const{tabSize:l,indentSize:h,insertSpaces:d}=this._opts,u=i===a;if(this._opts.useTabStops){this._selection.isEmpty()&&/^\s*$/.test(e.getLineContent(i))&&(this._useLastEditRangeForCursorEndPosition=!0);let g=0,p=0;for(let m=i;m<=a;m++,g=p){p=0;const a=e.getLineContent(m);let f,_=n.HG(a);if((!this._opts.isUnshift||0!==a.length&&0!==_)&&(u||this._opts.isUnshift||0!==a.length)){if(-1===_&&(_=a.length),m>1){if(r.A.visibleColumnFromColumn(a,_+1,l)%h!==0&&e.tokenization.isCheapToTokenize(m-1)){const t=(0,c.h)(this._opts.autoIndent,e,new o.Q(m-1,e.getLineMaxColumn(m-1),m-1,e.getLineMaxColumn(m-1)),this._languageConfigurationService);if(t){if(p=g,t.appendText)for(let e=0,i=t.appendText.length;e<i&&p<h&&32===t.appendText.charCodeAt(e);e++)p++;t.removeText&&(p=Math.max(0,p-t.removeText));for(let e=0;e<p&&(0!==_&&32===a.charCodeAt(_-1));e++)_--}}}this._opts.isUnshift&&0===_||(f=this._opts.isUnshift?s.unshiftIndent(a,_+1,l,h,d):s.shiftIndent(a,_+1,l,h,d),this._addEditOperation(t,new o.Q(m,1,m,_+1),f),m!==i||this._selection.isEmpty()||(this._selectionStartColumnStaysPut=this._selection.startColumn<=_+1))}}}else{!this._opts.isUnshift&&this._selection.isEmpty()&&0===e.getLineLength(i)&&(this._useLastEditRangeForCursorEndPosition=!0);const s=d?g(" ",h):"\t";for(let r=i;r<=a;r++){const a=e.getLineContent(r);let c=n.HG(a);if((!this._opts.isUnshift||0!==a.length&&0!==c)&&((u||this._opts.isUnshift||0!==a.length)&&(-1===c&&(c=a.length),!this._opts.isUnshift||0!==c)))if(this._opts.isUnshift){c=Math.min(c,h);for(let e=0;e<c;e++){if(9===a.charCodeAt(e)){c=e+1;break}}this._addEditOperation(t,new o.Q(r,1,r,c+1),"")}else this._addEditOperation(t,new o.Q(r,1,r,1),s),r!==i||this._selection.isEmpty()||(this._selectionStartColumnStaysPut=1===this._selection.startColumn)}}this._selectionId=t.trackSelection(this._selection)}computeCursorState(e,t){if(this._useLastEditRangeForCursorEndPosition){const e=t.getInverseEditOperations()[0];return new a.L(e.range.endLineNumber,e.range.endColumn,e.range.endLineNumber,e.range.endColumn)}const i=t.getTrackedSelection(this._selectionId);if(this._selectionStartColumnStaysPut){const e=this._selection.startColumn;return i.startColumn<=e?i:0===i.getDirection()?new a.L(i.startLineNumber,e,i.endLineNumber,i.endColumn):new a.L(i.endLineNumber,i.endColumn,i.startLineNumber,e)}return i}};p=s=h([d(2,l.JZ)],p)},8597:(e,t,i)=>{"use strict";i.d(t,{$:()=>Ue,BC:()=>Ie,BK:()=>j,Be:()=>F,Bx:()=>we,CE:()=>ze,Cl:()=>ee,Di:()=>Qe,Ej:()=>G,Er:()=>Se,Fv:()=>L,H4:()=>$,Hs:()=>Oe,Ij:()=>D,Iv:()=>w,L9:()=>H,Ln:()=>De,Mc:()=>et,OK:()=>Q,Oq:()=>M,PG:()=>P,Pl:()=>Ne,Q2:()=>b,QX:()=>X,TT:()=>$e,Tf:()=>je,Tr:()=>Y,U2:()=>_e,U3:()=>O,WU:()=>Be,Wt:()=>fe,X7:()=>se,XD:()=>Z,Xc:()=>I,ZF:()=>S,a:()=>re,a4:()=>qe,b2:()=>N,bo:()=>He,bq:()=>ie,cL:()=>z,fg:()=>V,fs:()=>Le,fz:()=>oe,gI:()=>Ye,h:()=>Je,i0:()=>Ge,jD:()=>We,jG:()=>te,jh:()=>ce,ko:()=>k,kx:()=>ye,li:()=>he,mU:()=>K,nR:()=>ne,nY:()=>Ee,pN:()=>Xe,q3:()=>R,sb:()=>Ce,sd:()=>Re,tG:()=>B,vT:()=>Ve,w5:()=>Ae,w_:()=>T,wk:()=>xe,xZ:()=>be,y6:()=>q,yt:()=>Ke,zK:()=>Te,zk:()=>_});var s=i(60413),n=i(55089),r=i(72962),o=i(47358),a=i(90766),c=i(64383),l=i(41234),h=i(83750),d=i(5662),u=i(36456),g=i(98067),p=i(85600),m=i(25893);const{registerWindow:f,getWindow:_,getDocument:v,getWindows:C,getWindowsCount:E,getWindowId:b,getWindowById:S,hasWindow:y,onDidRegisterWindow:w,onWillUnregisterWindow:R,onDidUnregisterWindow:L}=function(){const e=new Map;(0,m.y)(m.G,1);const t={window:m.G,disposables:new d.Cm};e.set(m.G.vscodeWindowId,t);const i=new l.vl,s=new l.vl,n=new l.vl;return{onDidRegisterWindow:i.event,onWillUnregisterWindow:n.event,onDidUnregisterWindow:s.event,registerWindow(t){if(e.has(t.vscodeWindowId))return d.jG.None;const r=new d.Cm,o={window:t,disposables:r.add(new d.Cm)};return e.set(t.vscodeWindowId,o),r.add((0,d.s)((()=>{e.delete(t.vscodeWindowId),s.fire(t)}))),r.add(k(t,we.BEFORE_UNLOAD,(()=>{n.fire(t)}))),i.fire(o),r},getWindows:()=>e.values(),getWindowsCount:()=>e.size,getWindowId:e=>e.vscodeWindowId,hasWindow:t=>e.has(t),getWindowById:function(i,s){return("number"===typeof i?e.get(i):void 0)??(s?t:void 0)},getWindow(e){const t=e;if(t?.ownerDocument?.defaultView)return t.ownerDocument.defaultView.window;const i=e;return i?.view?i.view.window:m.G},getDocument:e=>_(e).document}}();function T(e){for(;e.firstChild;)e.firstChild.remove()}class x{constructor(e,t,i,s){this._node=e,this._type=t,this._handler=i,this._options=s||!1,this._node.addEventListener(this._type,this._handler,this._options)}dispose(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)}}function k(e,t,i,s){return new x(e,t,i,s)}function A(e,t){return function(i){return t(new o.P(e,i))}}const N=function(e,t,i,s){let n=i;return"click"===t||"mousedown"===t||"contextmenu"===t?n=A(_(e),i):"keydown"!==t&&"keypress"!==t&&"keyup"!==t||(n=function(e){return function(t){return e(new r.Z(t))}}(i)),k(e,t,n,s)},I=function(e,t,i){return function(e,t,i){return k(e,g.un&&n.e.pointerEvents?we.POINTER_DOWN:we.MOUSE_DOWN,t,i)}(e,A(_(e),t),i)};function O(e,t,i){return(0,a.b7)(e,t,i)}class D extends a.A0{constructor(e,t){super(e,t)}}let M,P;class F extends a.vb{constructor(e){super(),this.defaultTarget=e&&_(e)}cancelAndSet(e,t,i){return super.cancelAndSet(e,t,i??this.defaultTarget)}}class U{constructor(e,t=0){this._runner=e,this.priority=t,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(e){(0,c.dz)(e)}}static sort(e,t){return t.priority-e.priority}}function H(e){return _(e).getComputedStyle(e,null)}function B(e,t){const i=_(e),s=i.document;if(e!==s.body)return new V(e.clientWidth,e.clientHeight);if(g.un&&i?.visualViewport)return new V(i.visualViewport.width,i.visualViewport.height);if(i?.innerWidth&&i.innerHeight)return new V(i.innerWidth,i.innerHeight);if(s.body&&s.body.clientWidth&&s.body.clientHeight)return new V(s.body.clientWidth,s.body.clientHeight);if(s.documentElement&&s.documentElement.clientWidth&&s.documentElement.clientHeight)return new V(s.documentElement.clientWidth,s.documentElement.clientHeight);if(t)return B(t);throw new Error("Unable to figure out browser width and height")}!function(){const e=new Map,t=new Map,i=new Map,s=new Map;P=(n,r,o=0)=>{const a=b(n),c=new U(r,o);let l=e.get(a);return l||(l=[],e.set(a,l)),l.push(c),i.get(a)||(i.set(a,!0),n.requestAnimationFrame((()=>(n=>{i.set(n,!1);const r=e.get(n)??[];for(t.set(n,r),e.set(n,[]),s.set(n,!0);r.length>0;)r.sort(U.sort),r.shift().execute();s.set(n,!1)})(a)))),c},M=(e,i,n)=>{const r=b(e);if(s.get(r)){const e=new U(i,n);let s=t.get(r);return s||(s=[],t.set(r,s)),s.push(e),e}return P(e,i,n)}}();class W{static convertToPixels(e,t){return parseFloat(t)||0}static getDimension(e,t,i){const s=H(e),n=s?s.getPropertyValue(t):"0";return W.convertToPixels(e,n)}static getBorderLeftWidth(e){return W.getDimension(e,"border-left-width","borderLeftWidth")}static getBorderRightWidth(e){return W.getDimension(e,"border-right-width","borderRightWidth")}static getBorderTopWidth(e){return W.getDimension(e,"border-top-width","borderTopWidth")}static getBorderBottomWidth(e){return W.getDimension(e,"border-bottom-width","borderBottomWidth")}static getPaddingLeft(e){return W.getDimension(e,"padding-left","paddingLeft")}static getPaddingRight(e){return W.getDimension(e,"padding-right","paddingRight")}static getPaddingTop(e){return W.getDimension(e,"padding-top","paddingTop")}static getPaddingBottom(e){return W.getDimension(e,"padding-bottom","paddingBottom")}static getMarginLeft(e){return W.getDimension(e,"margin-left","marginLeft")}static getMarginTop(e){return W.getDimension(e,"margin-top","marginTop")}static getMarginRight(e){return W.getDimension(e,"margin-right","marginRight")}static getMarginBottom(e){return W.getDimension(e,"margin-bottom","marginBottom")}}class V{static{this.None=new V(0,0)}constructor(e,t){this.width=e,this.height=t}with(e=this.width,t=this.height){return e!==this.width||t!==this.height?new V(e,t):this}static is(e){return"object"===typeof e&&"number"===typeof e.height&&"number"===typeof e.width}static lift(e){return e instanceof V?e:new V(e.width,e.height)}static equals(e,t){return e===t||!(!e||!t)&&(e.width===t.width&&e.height===t.height)}}function z(e){let t=e.offsetParent,i=e.offsetTop,s=e.offsetLeft;for(;null!==(e=e.parentNode)&&e!==e.ownerDocument.body&&e!==e.ownerDocument.documentElement;){i-=e.scrollTop;const n=J(e)?null:H(e);n&&(s-="rtl"!==n.direction?e.scrollLeft:-e.scrollLeft),e===t&&(s+=W.getBorderLeftWidth(e),i+=W.getBorderTopWidth(e),i+=e.offsetTop,s+=e.offsetLeft,t=e.offsetParent)}return{left:s,top:i}}function G(e,t,i){"number"===typeof t&&(e.style.width=`${t}px`),"number"===typeof i&&(e.style.height=`${i}px`)}function j(e){const t=e.getBoundingClientRect(),i=_(e);return{left:t.left+i.scrollX,top:t.top+i.scrollY,width:t.width,height:t.height}}function K(e){let t=e,i=1;do{const e=H(t).zoom;null!==e&&void 0!==e&&"1"!==e&&(i*=e),t=t.parentElement}while(null!==t&&t!==t.ownerDocument.documentElement);return i}function Y(e){const t=W.getMarginLeft(e)+W.getMarginRight(e);return e.offsetWidth+t}function q(e){const t=W.getBorderLeftWidth(e)+W.getBorderRightWidth(e),i=W.getPaddingLeft(e)+W.getPaddingRight(e);return e.offsetWidth-t-i}function $(e){const t=W.getBorderTopWidth(e)+W.getBorderBottomWidth(e),i=W.getPaddingTop(e)+W.getPaddingBottom(e);return e.offsetHeight-t-i}function Q(e){const t=W.getMarginTop(e)+W.getMarginBottom(e);return e.offsetHeight+t}function X(e,t){return Boolean(t?.contains(e))}function Z(e,t,i){return!!function(e,t,i){for(;e&&e.nodeType===e.ELEMENT_NODE;){if(e.classList.contains(t))return e;if(i)if("string"===typeof i){if(e.classList.contains(i))return null}else if(e===i)return null;e=e.parentNode}return null}(e,t,i)}function J(e){return e&&!!e.host&&!!e.mode}function ee(e){return!!te(e)}function te(e){for(;e.parentNode;){if(e===e.ownerDocument?.body)return null;e=e.parentNode}return J(e)?e:null}function ie(){let e=re().activeElement;for(;e?.shadowRoot;)e=e.shadowRoot.activeElement;return e}function se(e){return ie()===e}function ne(e){return X(ie(),e)}function re(){if(E()<=1)return m.G.document;return Array.from(C()).map((({window:e})=>e.document)).find((e=>e.hasFocus()))??m.G.document}function oe(){const e=re();return e.defaultView?.window??m.G}const ae=new Map;function ce(){return new le}class le{constructor(){this._currentCssStyle="",this._styleSheet=void 0}setStyle(e){e!==this._currentCssStyle&&(this._currentCssStyle=e,this._styleSheet?this._styleSheet.innerText=e:this._styleSheet=he(m.G.document.head,(t=>t.innerText=e)))}dispose(){this._styleSheet&&(this._styleSheet.remove(),this._styleSheet=void 0)}}function he(e=m.G.document.head,t,i){const s=document.createElement("style");if(s.type="text/css",s.media="screen",t?.(s),e.appendChild(s),i&&i.add((0,d.s)((()=>s.remove()))),e===m.G.document.head){const e=new Set;ae.set(s,e);for(const{window:t,disposables:n}of C()){if(t===m.G)continue;const r=n.add(de(s,e,t));i?.add(r)}}return s}function de(e,t,i){const s=new d.Cm,n=e.cloneNode(!0);i.document.head.appendChild(n),s.add((0,d.s)((()=>n.remove())));for(const r of me(e))n.sheet?.insertRule(r.cssText,n.sheet?.cssRules.length);return s.add(ue.observe(e,s,{childList:!0})((()=>{n.textContent=e.textContent}))),t.add(n),s.add((0,d.s)((()=>t.delete(n)))),s}const ue=new class{constructor(){this.mutationObservers=new Map}observe(e,t,i){let s=this.mutationObservers.get(e);s||(s=new Map,this.mutationObservers.set(e,s));const n=(0,p.tW)(i);let r=s.get(n);if(r)r.users+=1;else{const o=new l.vl,a=new MutationObserver((e=>o.fire(e)));a.observe(e,i);const c=r={users:1,observer:a,onDidMutate:o.event};t.add((0,d.s)((()=>{c.users-=1,0===c.users&&(o.dispose(),a.disconnect(),s?.delete(n),0===s?.size&&this.mutationObservers.delete(e))}))),s.set(n,r)}return r.onDidMutate}};let ge=null;function pe(){return ge||(ge=he()),ge}function me(e){return e?.sheet?.rules?e.sheet.rules:e?.sheet?.cssRules?e.sheet.cssRules:[]}function fe(e,t,i=pe()){if(i&&t){i.sheet?.insertRule(`${e} {${t}}`,0);for(const s of ae.get(i)??[])fe(e,t,s)}}function _e(e,t=pe()){if(!t)return;const i=me(t),s=[];for(let n=0;n<i.length;n++){const t=i[n];ve(t)&&-1!==t.selectorText.indexOf(e)&&s.push(n)}for(let n=s.length-1;n>=0;n--)t.sheet?.deleteRule(s[n]);for(const n of ae.get(t)??[])_e(e,n)}function ve(e){return"string"===typeof e.selectorText}function Ce(e){return e instanceof HTMLElement||e instanceof _(e).HTMLElement}function Ee(e){return e instanceof HTMLAnchorElement||e instanceof _(e).HTMLAnchorElement}function be(e){return e instanceof SVGElement||e instanceof _(e).SVGElement}function Se(e){return e instanceof MouseEvent||e instanceof _(e).MouseEvent}function ye(e){return e instanceof KeyboardEvent||e instanceof _(e).KeyboardEvent}const we={CLICK:"click",AUXCLICK:"auxclick",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_WHEEL:"wheel",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",POINTER_LEAVE:"pointerleave",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",PAGE_SHOW:"pageshow",PAGE_HIDE:"pagehide",PASTE:"paste",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:s.Tc?"webkitAnimationStart":"animationstart",ANIMATION_END:s.Tc?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:s.Tc?"webkitAnimationIteration":"animationiteration"};function Re(e){const t=e;return!(!t||"function"!==typeof t.preventDefault||"function"!==typeof t.stopPropagation)}const Le={stop:(e,t)=>(e.preventDefault(),t&&e.stopPropagation(),e)};function Te(e){const t=[];for(let i=0;e&&e.nodeType===e.ELEMENT_NODE;i++)t[i]=e.scrollTop,e=e.parentNode;return t}function xe(e,t){for(let i=0;e&&e.nodeType===e.ELEMENT_NODE;i++)e.scrollTop!==t[i]&&(e.scrollTop=t[i]),e=e.parentNode}class ke extends d.jG{static hasFocusWithin(e){if(Ce(e)){const t=te(e);return X(t?t.activeElement:e.ownerDocument.activeElement,e)}{const t=e;return X(t.document.activeElement,t.document)}}constructor(e){super(),this._onDidFocus=this._register(new l.vl),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new l.vl),this.onDidBlur=this._onDidBlur.event;let t=ke.hasFocusWithin(e),i=!1;const s=()=>{i=!1,t||(t=!0,this._onDidFocus.fire())},n=()=>{t&&(i=!0,(Ce(e)?_(e):e).setTimeout((()=>{i&&(i=!1,t=!1,this._onDidBlur.fire())}),0))};this._refreshStateHandler=()=>{ke.hasFocusWithin(e)!==t&&(t?n():s())},this._register(k(e,we.FOCUS,s,!0)),this._register(k(e,we.BLUR,n,!0)),Ce(e)&&(this._register(k(e,we.FOCUS_IN,(()=>this._refreshStateHandler()))),this._register(k(e,we.FOCUS_OUT,(()=>this._refreshStateHandler()))))}}function Ae(e){return new ke(e)}function Ne(e,t){return e.after(t),t}function Ie(e,...t){if(e.append(...t),1===t.length&&"string"!==typeof t[0])return t[0]}function Oe(e,t){return e.insertBefore(t,e.firstChild),t}function De(e,...t){e.innerText="",Ie(e,...t)}const Me=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;var Pe;function Fe(e,t,i,...s){const n=Me.exec(t);if(!n)throw new Error("Bad use of emmet");const r=n[1]||"div";let o;return o=e!==Pe.HTML?document.createElementNS(e,r):document.createElement(r),n[3]&&(o.id=n[3]),n[4]&&(o.className=n[4].replace(/\./g," ").trim()),i&&Object.entries(i).forEach((([e,t])=>{"undefined"!==typeof t&&(/^on\w+$/.test(e)?o[e]=t:"selected"===e?t&&o.setAttribute(e,"true"):o.setAttribute(e,t))})),o.append(...s),o}function Ue(e,t,...i){return Fe(Pe.HTML,e,t,...i)}function He(e,...t){e?Be(...t):We(...t)}function Be(...e){for(const t of e)t.style.display="",t.removeAttribute("aria-hidden")}function We(...e){for(const t of e)t.style.display="none",t.setAttribute("aria-hidden","true")}function Ve(e,t){const i=e.devicePixelRatio*t;return Math.max(1,Math.floor(i))/e.devicePixelRatio}function ze(e){m.G.open(e,"_blank","noopener")}function Ge(e,t){const i=()=>{t(),s=P(e,i)};let s=P(e,i);return(0,d.s)((()=>s.dispose()))}function je(e){return e?`url('${u.zl.uriToBrowserUri(e).toString(!0).replace(/'/g,"%27")}')`:"url('')"}function Ke(e){return`'${e.replace(/'/g,"%27")}'`}function Ye(e,t){if(void 0!==e){const i=e.match(/^\s*var\((.+)\)$/);if(i){const e=i[1].split(",",2);return 2===e.length&&(t=Ye(e[1].trim(),t)),`var(${e[0]}, ${t})`}return e}return t}function qe(e,t=!1){const i=document.createElement("a");return h.$w("afterSanitizeAttributes",(s=>{for(const n of["href","src"])if(s.hasAttribute(n)){const r=s.getAttribute(n);if("href"===n&&r.startsWith("#"))continue;if(i.href=r,!e.includes(i.protocol.replace(/:$/,""))){if(t&&"src"===n&&i.href.startsWith("data:"))continue;s.removeAttribute(n)}}})),(0,d.s)((()=>{h.SV("afterSanitizeAttributes")}))}!function(e){e.HTML="http://www.w3.org/1999/xhtml",e.SVG="http://www.w3.org/2000/svg"}(Pe||(Pe={})),Ue.SVG=function(e,t,...i){return Fe(Pe.SVG,e,t,...i)},u.Ez.setPreferredWebSchema(/^https:/.test(m.G.location.href)?"https":"http");const $e=Object.freeze(["a","abbr","b","bdo","blockquote","br","caption","cite","code","col","colgroup","dd","del","details","dfn","div","dl","dt","em","figcaption","figure","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","label","li","mark","ol","p","pre","q","rp","rt","ruby","samp","small","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","time","tr","tt","u","ul","var","video","wbr"]);Object.freeze({ALLOWED_TAGS:["a","button","blockquote","code","div","h1","h2","h3","h4","h5","h6","hr","input","label","li","p","pre","select","small","span","strong","textarea","ul","ol"],ALLOWED_ATTR:["href","data-href","data-command","target","title","name","src","alt","class","id","role","tabindex","style","data-code","width","height","align","x-dispatch","required","checked","placeholder","type","start"],RETURN_DOM:!1,RETURN_DOM_FRAGMENT:!1,RETURN_TRUSTED_TYPE:!0});class Qe extends l.vl{constructor(){super(),this._subscriptions=new d.Cm,this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1},this._subscriptions.add(l.Jh.runAndSubscribe(w,(({window:e,disposables:t})=>this.registerListeners(e,t)),{window:m.G,disposables:this._subscriptions}))}registerListeners(e,t){t.add(k(e,"keydown",(e=>{if(e.defaultPrevented)return;const t=new r.Z(e);if(6!==t.keyCode||!e.repeat){if(e.altKey&&!this._keyStatus.altKey)this._keyStatus.lastKeyPressed="alt";else if(e.ctrlKey&&!this._keyStatus.ctrlKey)this._keyStatus.lastKeyPressed="ctrl";else if(e.metaKey&&!this._keyStatus.metaKey)this._keyStatus.lastKeyPressed="meta";else if(e.shiftKey&&!this._keyStatus.shiftKey)this._keyStatus.lastKeyPressed="shift";else{if(6===t.keyCode)return;this._keyStatus.lastKeyPressed=void 0}this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyPressed&&(this._keyStatus.event=e,this.fire(this._keyStatus))}}),!0)),t.add(k(e,"keyup",(e=>{e.defaultPrevented||(!e.altKey&&this._keyStatus.altKey?this._keyStatus.lastKeyReleased="alt":!e.ctrlKey&&this._keyStatus.ctrlKey?this._keyStatus.lastKeyReleased="ctrl":!e.metaKey&&this._keyStatus.metaKey?this._keyStatus.lastKeyReleased="meta":!e.shiftKey&&this._keyStatus.shiftKey?this._keyStatus.lastKeyReleased="shift":this._keyStatus.lastKeyReleased=void 0,this._keyStatus.lastKeyPressed!==this._keyStatus.lastKeyReleased&&(this._keyStatus.lastKeyPressed=void 0),this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyReleased&&(this._keyStatus.event=e,this.fire(this._keyStatus)))}),!0)),t.add(k(e.document.body,"mousedown",(()=>{this._keyStatus.lastKeyPressed=void 0}),!0)),t.add(k(e.document.body,"mouseup",(()=>{this._keyStatus.lastKeyPressed=void 0}),!0)),t.add(k(e.document.body,"mousemove",(e=>{e.buttons&&(this._keyStatus.lastKeyPressed=void 0)}),!0)),t.add(k(e,"blur",(()=>{this.resetKeyStatus()})))}get keyStatus(){return this._keyStatus}resetKeyStatus(){this.doResetKeyStatus(),this.fire(this._keyStatus)}doResetKeyStatus(){this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1}}static getInstance(){return Qe.instance||(Qe.instance=new Qe),Qe.instance}dispose(){super.dispose(),this._subscriptions.dispose()}}class Xe extends d.jG{constructor(e,t){super(),this.element=e,this.callbacks=t,this.counter=0,this.dragStartTime=0,this.registerListeners()}registerListeners(){this.callbacks.onDragStart&&this._register(k(this.element,we.DRAG_START,(e=>{this.callbacks.onDragStart?.(e)}))),this.callbacks.onDrag&&this._register(k(this.element,we.DRAG,(e=>{this.callbacks.onDrag?.(e)}))),this._register(k(this.element,we.DRAG_ENTER,(e=>{this.counter++,this.dragStartTime=e.timeStamp,this.callbacks.onDragEnter?.(e)}))),this._register(k(this.element,we.DRAG_OVER,(e=>{e.preventDefault(),this.callbacks.onDragOver?.(e,e.timeStamp-this.dragStartTime)}))),this._register(k(this.element,we.DRAG_LEAVE,(e=>{this.counter--,0===this.counter&&(this.dragStartTime=0,this.callbacks.onDragLeave?.(e))}))),this._register(k(this.element,we.DRAG_END,(e=>{this.counter=0,this.dragStartTime=0,this.callbacks.onDragEnd?.(e)}))),this._register(k(this.element,we.DROP,(e=>{this.counter=0,this.dragStartTime=0,this.callbacks.onDrop?.(e)})))}}const Ze=/(?<tag>[\w\-]+)?(?:#(?<id>[\w\-]+))?(?<class>(?:\.(?:[\w\-]+))*)(?:@(?<name>(?:[\w\_])+))?/;function Je(e,...t){let i,s;Array.isArray(t[0])?(i={},s=t[0]):(i=t[0]||{},s=t[1]);const n=Ze.exec(e);if(!n||!n.groups)throw new Error("Bad use of h");const r=n.groups.tag||"div",o=document.createElement(r);n.groups.id&&(o.id=n.groups.id);const a=[];if(n.groups.class)for(const l of n.groups.class.split("."))""!==l&&a.push(l);if(void 0!==i.className)for(const l of i.className.split("."))""!==l&&a.push(l);a.length>0&&(o.className=a.join(" "));const c={};if(n.groups.name&&(c[n.groups.name]=o),s)for(const l of s)Ce(l)?o.appendChild(l):"string"===typeof l?o.append(l):"root"in l&&(Object.assign(c,l),o.appendChild(l.root));for(const[l,h]of Object.entries(i))if("className"!==l)if("style"===l)for(const[e,t]of Object.entries(h))o.style.setProperty(tt(e),"number"===typeof t?t+"px":""+t);else"tabIndex"===l?o.tabIndex=h:o.setAttribute(tt(l),h.toString());return c.root=o,c}function et(e,...t){let i,s;Array.isArray(t[0])?(i={},s=t[0]):(i=t[0]||{},s=t[1]);const n=Ze.exec(e);if(!n||!n.groups)throw new Error("Bad use of h");const r=n.groups.tag||"div",o=document.createElementNS("http://www.w3.org/2000/svg",r);n.groups.id&&(o.id=n.groups.id);const a=[];if(n.groups.class)for(const l of n.groups.class.split("."))""!==l&&a.push(l);if(void 0!==i.className)for(const l of i.className.split("."))""!==l&&a.push(l);a.length>0&&(o.className=a.join(" "));const c={};if(n.groups.name&&(c[n.groups.name]=o),s)for(const l of s)Ce(l)?o.appendChild(l):"string"===typeof l?o.append(l):"root"in l&&(Object.assign(c,l),o.appendChild(l.root));for(const[l,h]of Object.entries(i))if("className"!==l)if("style"===l)for(const[e,t]of Object.entries(h))o.style.setProperty(tt(e),"number"===typeof t?t+"px":""+t);else"tabIndex"===l?o.tabIndex=h:o.setAttribute(tt(l),h.toString());return c.root=o,c}function tt(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}},8603:(e,t,i)=>{e.exports=function(e){const t=i(94297),s=i(83823)(e);return function(e,i,n){let r="";const o=e.$value,a=o.length;return t.drawFullView(a,i)?(r+=t.OBJECT_START+t.getIndent(i,n),r+=s(o,i,n),r+=t.getIndent(i,n-1)+t.OBJECT_END):t.drawCompactView(a,i)?(r+=t.OBJECT_START,r+=s(o,i,n-1),r+=t.OBJECT_END):r+=t.OBJECT_START+t.OBJECT_END,r}}},8868:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>i.e(2994).then(i.bind(i,2994))})},8964:(e,t,i)=>{"use strict";i.d(t,{R:()=>a,J:()=>o});var s=i(1448);const n=JSON.parse('{"common":{"tooltip-sum":"Sum","tooltip-rest":"Rest"},"chartkit":{"error":"Error","legend-series-hide":"Hide all lines","legend-series-show":"Show all lines","tooltip-point-format-size":"Size","tooltip-sum":"Sum","tooltip-rest":"Rest","error-incorrect-key-value-intro":"Incorrect notation of an object passed to","error-incorrect-key":", object keys must be convertible to integer","error-incorrect-value":", object values must be a string or a function which returns a string"},"chartkit-table":{"message-no-data":"No data","paginator-rows":"Rows"},"chartkit-ymap-legend":{"label-more":"Show more {{count}}","label-hide":"Hide","label-heatmap":"Heatmap"},"error":{"label_no-data":"No data","label_unknown-plugin":"Unknown plugin type \\"{{type}}\\"","label_unknown-error":"Unknown error","label_invalid-axis-category-data-point":"It seems you are trying to use inappropriate data type for \\"{{key}}\\" value in series \\"{{seriesName}}\\" for axis with type \\"category\\". Strings and numbers are allowed.","label_invalid-axis-datetime-data-point":"It seems you are trying to use inappropriate data type for \\"{{key}}\\" value in series \\"{{seriesName}}\\" for axis with type \\"datetime\\". Only numbers are allowed.","label_invalid-axis-linear-data-point":"It seems you are trying to use inappropriate data type for \\"{{key}}\\" value in series \\"{{seriesName}}\\" for axis with type \\"linear\\". Numbers and nulls are allowed.","label_invalid-pie-data-value":"It seems you are trying to use inappropriate data type for \\"value\\" value. Only numbers are allowed.","label_invalid-series-type":"It seems you haven\'t defined \\"series.type\\" property, or defined it incorrectly. Available values: [{{types}}].","label_invalid-series-property":"It seems you are trying to use inappropriate value for \\"{{key}}\\", or defined it incorrectly. Available values: [{{values}}].","label_invalid-treemap-redundant-value":"It seems you are trying to set \\"value\\" for container node. Check node with this properties: { id: \\"{{id}}\\", name: \\"{{name}}\\" }","label_invalid-treemap-missing-value":"It seems you are trying to use node without \\"value\\". Check node with this properties: { id: \\"{{id}}\\", name: \\"{{name}}\\" }","label_invalid-y-axis-index":"It seems you are trying to use inappropriate index for Y axis: \\"{{index}}\\""},"highcharts":{"reset-zoom-title":"Reset zoom","decimal-point":".","thousands-sep":" ","Mon":"Mon","Tue":"Tue","Wed":"Wed","Thu":"Thu","Fri":"Fri","Sat":"Sat","Sun":"Sun","Jan":"Jan","January":"January","Feb":"Feb","February":"February","Mar":"Mar","March":"March","Apr":"Apr","April":"April","May":"May","Jun":"Jun","June":"June","Jul":"Jul","July":"July","Aug":"Aug","August":"August","Sep":"Sep","September":"September","Oct":"Oct","October":"October","Nov":"Nov","November":"November","Dec":"Dec","December":"December"}}'),r=JSON.parse('{"common":{"tooltip-sum":"\u0421\u0443\u043c\u043c\u0430","tooltip-rest":"\u041e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435"},"chartkit":{"error":"\u041e\u0448\u0438\u0431\u043a\u0430","legend-series-hide":"\u0421\u043a\u0440\u044b\u0442\u044c \u0432\u0441\u0435 \u043b\u0438\u043d\u0438\u0438","legend-series-show":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u0435 \u043b\u0438\u043d\u0438\u0438","loading":"\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430","tooltip-point-format-size":"\u0420\u0430\u0437\u043c\u0435\u0440","tooltip-sum":"\u0421\u0443\u043c\u043c\u0430","tooltip-rest":"\u041e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435","error-incorrect-key-value-intro":"\u041d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043a\u0430\u043a \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432","error-incorrect-key":", \u043a\u043b\u044e\u0447\u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u043c\u044b \u0432 \u0446\u0435\u043b\u043e\u0435 \u0447\u0438\u0441\u043b\u043e","error-incorrect-value":", \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043b\u0438\u0431\u043e \u0441\u0442\u0440\u043e\u043a\u0430, \u043b\u0438\u0431\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e\u0449\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0443"},"chartkit-table":{"message-no-data":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445","paginator-rows":"\u0421\u0442\u0440\u043e\u043a\u0438"},"chartkit-ymap-legend":{"label-more":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0435\u0449\u0451 {{count}}","label-hide":"\u0421\u0432\u0435\u0440\u043d\u0443\u0442\u044c","label-heatmap":"\u0422\u0435\u043f\u043b\u043e\u0432\u0430\u044f \u043a\u0430\u0440\u0442\u0430"},"error":{"label_no-data":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445","label_unknown-plugin":"\u041d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0439 \u0442\u0438\u043f \u043f\u043b\u0430\u0433\u0438\u043d\u0430 \\"{{type}}\\"","label_unknown-error":"\u041d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430","label_invalid-axis-category-data-point":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0439 \u0442\u0438\u043f \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \\"{{key}}\\" \u0432 \u0441\u0435\u0440\u0438\u0438 \\"{{seriesName}}\\" \u0434\u043b\u044f \u043e\u0441\u0438 \u0441 \u0442\u0438\u043f\u043e\u043c \\"category\\". \u0414\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u043a \u0438 \u0447\u0438\u0441\u0435\u043b.","label_invalid-axis-datetime-data-point":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0439 \u0442\u0438\u043f \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \\"{{key}}\\" \u0432 \u0441\u0435\u0440\u0438\u0438 \\"{{seriesName}}\\" \u0434\u043b\u044f \u043e\u0441\u0438 \u0441 \u0442\u0438\u043f\u043e\u043c \\"datetime\\". \u0414\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0447\u0438\u0441\u0435\u043b.","label_invalid-axis-linear-data-point":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0439 \u0442\u0438\u043f \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \\"{{key}}\\" \u0432 \u0441\u0435\u0440\u0438\u0438 \\"{{seriesName}}\\" \u0434\u043b\u044f \u043e\u0441\u0438 \u0441 \u0442\u0438\u043f\u043e\u043c \\"linear\\". \u0414\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0447\u0438\u0441\u0435\u043b \u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 null.","label_invalid-pie-data-value":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0439 \u0442\u0438\u043f \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \\"value\\". \u0414\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0447\u0438\u0441\u0435\u043b.","label_invalid-series-type":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043d\u0435 \u0443\u043a\u0430\u0437\u0430\u043b\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \\"series.type\\" \u0438\u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u043b\u0438 \u0435\u0433\u043e \u043d\u0435\u0432\u0435\u0440\u043d\u043e. \u0414\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f: [{{types}}].","label_invalid-series-property":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \\"{{key}}\\", \u0438\u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u043b\u0438 \u0435\u0433\u043e \u043d\u0435\u0432\u0435\u0440\u043d\u043e. \u0414\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f: [{{values}}].","label_invalid-treemap-redundant-value":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \\"value\\" \u0434\u043b\u044f \u0443\u0437\u043b\u0430, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u0433\u043e \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430. \u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0443\u0437\u0435\u043b \u0441 \u044d\u0442\u0438\u043c\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438: { id: \\"{{id}}\\", name: \\"{{name}}\\" }","label_invalid-treemap-missing-value":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0443\u0437\u0435\u043b \u0431\u0435\u0437 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \\"value\\". \u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0443\u0437\u0435\u043b \u0441 \u044d\u0442\u0438\u043c\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438: { id: \\"{{id}}\\", name: \\"{{name}}\\" }","label_invalid-y-axis-index":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u0439 \u0438\u043d\u0434\u0435\u043a\u0441 \u0434\u043b\u044f \u043e\u0441\u0438 Y: \\"{{index}}\\""},"highcharts":{"reset-zoom-title":"\u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435","decimal-point":",","thousands-sep":" ","Mon":"\u041f\u043d","Tue":"\u0412\u0442","Wed":"\u0421\u0440","Thu":"\u0427\u0442","Fri":"\u041f\u0442","Sat":"\u0421\u0431","Sun":"\u0412\u0441","Jan":"\u042f\u043d\u0432","January":"\u042f\u043d\u0432\u0430\u0440\u044c","Feb":"\u0424\u0435\u0432","February":"\u0424\u0435\u0432\u0440\u0430\u043b\u044c","Mar":"\u041c\u0430\u0440","March":"\u041c\u0430\u0440\u0442","Apr":"\u0410\u043f\u0440","April":"\u0410\u043f\u0440\u0435\u043b\u044c","May":"\u041c\u0430\u0439","Jun":"\u0418\u044e\u043d","June":"\u0418\u044e\u043d\u044c","Jul":"\u0418\u044e\u043b","July":"\u0418\u044e\u043b\u044c","Aug":"\u0410\u0432\u0433","August":"\u0410\u0432\u0433\u0443\u0441\u0442","Sep":"\u0421\u0435\u043d","September":"\u0421\u0435\u043d\u0442\u044f\u0431\u0440\u044c","Oct":"\u041e\u043a\u0442","October":"\u041e\u043a\u0442\u044f\u0431\u0440\u044c","Nov":"\u041d\u043e\u044f","November":"\u041d\u043e\u044f\u0431\u0440\u044c","Dec":"\u0414\u0435\u043a","December":"\u0414\u0435\u043a\u0430\u0431\u0440\u044c"}}'),o=new s.TH;o.registerKeysets("en",n),o.registerKeysets("ru",r);const a=o.i18n.bind(o)},8995:(e,t,i)=>{"use strict";i.d(t,{k:()=>s});class s{static{this.sep="."}static{this.None=new s("@@none@@")}static{this.Empty=new s("")}constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||""===this.value||e.value.startsWith(this.value+s.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(...e){return new s((this.value?[this.value,...e]:e).join(s.sep))}}},9208:(e,t,i)=>{e.exports=i(8603)},9270:(e,t,i)=>{"use strict";i.d(t,{L:()=>h});var s=i(8597),n=i(52776),r=i(5662),o=i(98031),a=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},c=function(e,t){return function(i,s){t(i,s,e)}};const l=s.$;let h=class extends r.jG{get hasContent(){return this._hasContent}constructor(e){super(),this._keybindingService=e,this.actions=[],this._hasContent=!1,this.hoverElement=l("div.hover-row.status-bar"),this.hoverElement.tabIndex=0,this.actionsElement=s.BC(this.hoverElement,l("div.actions"))}addAction(e){const t=this._keybindingService.lookupKeybinding(e.commandId),i=t?t.getLabel():null;this._hasContent=!0;const s=this._register(n.jQ.render(this.actionsElement,e,i));return this.actions.push(s),s}append(e){const t=s.BC(this.actionsElement,e);return this._hasContent=!0,t}};h=a([c(0,o.b)],h)},9711:(e,t,i)=>{"use strict";i.d(t,{CS:()=>p,pc:()=>_,LP:()=>m});var s,n,r=i(41234),o=i(5662),a=i(631),c=i(90766),l=i(908);!function(e){e[e.STORAGE_DOES_NOT_EXIST=0]="STORAGE_DOES_NOT_EXIST",e[e.STORAGE_IN_MEMORY=1]="STORAGE_IN_MEMORY"}(s||(s={})),function(e){e[e.None=0]="None",e[e.Initialized=1]="Initialized",e[e.Closed=2]="Closed"}(n||(n={}));class h extends o.jG{static{this.DEFAULT_FLUSH_DELAY=100}constructor(e,t=Object.create(null)){super(),this.database=e,this.options=t,this._onDidChangeStorage=this._register(new r.fV),this.onDidChangeStorage=this._onDidChangeStorage.event,this.state=n.None,this.cache=new Map,this.flushDelayer=this._register(new c.Th(h.DEFAULT_FLUSH_DELAY)),this.pendingDeletes=new Set,this.pendingInserts=new Map,this.whenFlushedCallbacks=[],this.registerListeners()}registerListeners(){this._register(this.database.onDidChangeItemsExternal((e=>this.onDidChangeItemsExternal(e))))}onDidChangeItemsExternal(e){this._onDidChangeStorage.pause();try{e.changed?.forEach(((e,t)=>this.acceptExternal(t,e))),e.deleted?.forEach((e=>this.acceptExternal(e,void 0)))}finally{this._onDidChangeStorage.resume()}}acceptExternal(e,t){if(this.state===n.Closed)return;let i=!1;if((0,a.z)(t))i=this.cache.delete(e);else{this.cache.get(e)!==t&&(this.cache.set(e,t),i=!0)}i&&this._onDidChangeStorage.fire({key:e,external:!0})}get(e,t){const i=this.cache.get(e);return(0,a.z)(i)?t:i}getBoolean(e,t){const i=this.get(e);return(0,a.z)(i)?t:"true"===i}getNumber(e,t){const i=this.get(e);return(0,a.z)(i)?t:parseInt(i,10)}async set(e,t,i=!1){if(this.state===n.Closed)return;if((0,a.z)(t))return this.delete(e,i);const s=(0,a.Gv)(t)||Array.isArray(t)?(0,l.As)(t):String(t);return this.cache.get(e)!==s?(this.cache.set(e,s),this.pendingInserts.set(e,s),this.pendingDeletes.delete(e),this._onDidChangeStorage.fire({key:e,external:i}),this.doFlush()):void 0}async delete(e,t=!1){if(this.state===n.Closed)return;return this.cache.delete(e)?(this.pendingDeletes.has(e)||this.pendingDeletes.add(e),this.pendingInserts.delete(e),this._onDidChangeStorage.fire({key:e,external:t}),this.doFlush()):void 0}get hasPending(){return this.pendingInserts.size>0||this.pendingDeletes.size>0}async flushPending(){if(!this.hasPending)return;const e={insert:this.pendingInserts,delete:this.pendingDeletes};return this.pendingDeletes=new Set,this.pendingInserts=new Map,this.database.updateItems(e).finally((()=>{if(!this.hasPending)for(;this.whenFlushedCallbacks.length;)this.whenFlushedCallbacks.pop()?.()}))}async doFlush(e){return this.options.hint===s.STORAGE_IN_MEMORY?this.flushPending():this.flushDelayer.trigger((()=>this.flushPending()),e)}}class d{constructor(){this.onDidChangeItemsExternal=r.Jh.None,this.items=new Map}async updateItems(e){e.insert?.forEach(((e,t)=>this.items.set(t,e))),e.delete?.forEach((e=>this.items.delete(e)))}}var u=i(63591);const g="__$__targetStorageMarker",p=(0,u.u1)("storageService");var m;!function(e){e[e.NONE=0]="NONE",e[e.SHUTDOWN=1]="SHUTDOWN"}(m||(m={}));class f extends o.jG{static{this.DEFAULT_FLUSH_INTERVAL=6e4}constructor(e={flushInterval:f.DEFAULT_FLUSH_INTERVAL}){super(),this.options=e,this._onDidChangeValue=this._register(new r.fV),this._onDidChangeTarget=this._register(new r.fV),this._onWillSaveState=this._register(new r.vl),this.onWillSaveState=this._onWillSaveState.event,this._workspaceKeyTargets=void 0,this._profileKeyTargets=void 0,this._applicationKeyTargets=void 0}onDidChangeValue(e,t,i){return r.Jh.filter(this._onDidChangeValue.event,(i=>i.scope===e&&(void 0===t||i.key===t)),i)}emitDidChangeValue(e,t){const{key:i,external:s}=t;if(i===g){switch(e){case-1:this._applicationKeyTargets=void 0;break;case 0:this._profileKeyTargets=void 0;break;case 1:this._workspaceKeyTargets=void 0}this._onDidChangeTarget.fire({scope:e})}else this._onDidChangeValue.fire({scope:e,key:i,target:this.getKeyTargets(e)[i],external:s})}get(e,t,i){return this.getStorage(t)?.get(e,i)}getBoolean(e,t,i){return this.getStorage(t)?.getBoolean(e,i)}getNumber(e,t,i){return this.getStorage(t)?.getNumber(e,i)}store(e,t,i,s,n=!1){(0,a.z)(t)?this.remove(e,i,n):this.withPausedEmitters((()=>{this.updateKeyTarget(e,i,s),this.getStorage(i)?.set(e,t,n)}))}remove(e,t,i=!1){this.withPausedEmitters((()=>{this.updateKeyTarget(e,t,void 0),this.getStorage(t)?.delete(e,i)}))}withPausedEmitters(e){this._onDidChangeValue.pause(),this._onDidChangeTarget.pause();try{e()}finally{this._onDidChangeValue.resume(),this._onDidChangeTarget.resume()}}updateKeyTarget(e,t,i,s=!1){const n=this.getKeyTargets(t);"number"===typeof i?n[e]!==i&&(n[e]=i,this.getStorage(t)?.set(g,JSON.stringify(n),s)):"number"===typeof n[e]&&(delete n[e],this.getStorage(t)?.set(g,JSON.stringify(n),s))}get workspaceKeyTargets(){return this._workspaceKeyTargets||(this._workspaceKeyTargets=this.loadKeyTargets(1)),this._workspaceKeyTargets}get profileKeyTargets(){return this._profileKeyTargets||(this._profileKeyTargets=this.loadKeyTargets(0)),this._profileKeyTargets}get applicationKeyTargets(){return this._applicationKeyTargets||(this._applicationKeyTargets=this.loadKeyTargets(-1)),this._applicationKeyTargets}getKeyTargets(e){switch(e){case-1:return this.applicationKeyTargets;case 0:return this.profileKeyTargets;default:return this.workspaceKeyTargets}}loadKeyTargets(e){const t=this.getStorage(e);return t?function(e){const t=e.get(g);if(t)try{return JSON.parse(t)}catch(i){}return Object.create(null)}(t):Object.create(null)}}class _ extends f{constructor(){super(),this.applicationStorage=this._register(new h(new d,{hint:s.STORAGE_IN_MEMORY})),this.profileStorage=this._register(new h(new d,{hint:s.STORAGE_IN_MEMORY})),this.workspaceStorage=this._register(new h(new d,{hint:s.STORAGE_IN_MEMORY})),this._register(this.workspaceStorage.onDidChangeStorage((e=>this.emitDidChangeValue(1,e)))),this._register(this.profileStorage.onDidChangeStorage((e=>this.emitDidChangeValue(0,e)))),this._register(this.applicationStorage.onDidChangeStorage((e=>this.emitDidChangeValue(-1,e))))}getStorage(e){switch(e){case-1:return this.applicationStorage;case 0:return this.profileStorage;default:return this.workspaceStorage}}}},9772:(e,t,i)=>{"use strict";i.d(t,{mn:()=>S,nM:()=>b});var s,n=i(90766),r=i(47661),o=i(64383),a=i(41234),c=i(5662),l=i(78381),h=i(91508),d=i(37734),u=i(31450),g=i(36677),p=i(87289),m=i(32500),f=i(56942),_=i(68310),v=i(84001),C=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},E=function(e,t){return function(i,s){t(i,s,e)}};const b=Object.create({});let S=class extends c.jG{static{s=this}static{this.ID="editor.contrib.colorDetector"}static{this.RECOMPUTE_TIME=1e3}constructor(e,t,i,n){super(),this._editor=e,this._configurationService=t,this._languageFeaturesService=i,this._localToDispose=this._register(new c.Cm),this._decorationsIds=[],this._colorDatas=new Map,this._colorDecoratorIds=this._editor.createDecorationsCollection(),this._ruleFactory=new d.Qn(this._editor),this._decoratorLimitReporter=new y,this._colorDecorationClassRefs=this._register(new c.Cm),this._debounceInformation=n.for(i.colorProvider,"Document Colors",{min:s.RECOMPUTE_TIME}),this._register(e.onDidChangeModel((()=>{this._isColorDecoratorsEnabled=this.isEnabled(),this.updateColors()}))),this._register(e.onDidChangeModelLanguage((()=>this.updateColors()))),this._register(i.colorProvider.onDidChange((()=>this.updateColors()))),this._register(e.onDidChangeConfiguration((e=>{const t=this._isColorDecoratorsEnabled;this._isColorDecoratorsEnabled=this.isEnabled(),this._isDefaultColorDecoratorsEnabled=this._editor.getOption(148);const i=t!==this._isColorDecoratorsEnabled||e.hasChanged(21),s=e.hasChanged(148);(i||s)&&(this._isColorDecoratorsEnabled?this.updateColors():this.removeAllDecorations())}))),this._timeoutTimer=null,this._computePromise=null,this._isColorDecoratorsEnabled=this.isEnabled(),this._isDefaultColorDecoratorsEnabled=this._editor.getOption(148),this.updateColors()}isEnabled(){const e=this._editor.getModel();if(!e)return!1;const t=e.getLanguageId(),i=this._configurationService.getValue(t);if(i&&"object"===typeof i){const e=i.colorDecorators;if(e&&void 0!==e.enable&&!e.enable)return e.enable}return this._editor.getOption(20)}static get(e){return e.getContribution(this.ID)}dispose(){this.stop(),this.removeAllDecorations(),super.dispose()}updateColors(){if(this.stop(),!this._isColorDecoratorsEnabled)return;const e=this._editor.getModel();e&&this._languageFeaturesService.colorProvider.has(e)&&(this._localToDispose.add(this._editor.onDidChangeModelContent((()=>{this._timeoutTimer||(this._timeoutTimer=new n.pc,this._timeoutTimer.cancelAndSet((()=>{this._timeoutTimer=null,this.beginCompute()}),this._debounceInformation.get(e)))}))),this.beginCompute())}async beginCompute(){this._computePromise=(0,n.SS)((async e=>{const t=this._editor.getModel();if(!t)return[];const i=new l.W(!1),s=await(0,_.j)(this._languageFeaturesService.colorProvider,t,e,this._isDefaultColorDecoratorsEnabled);return this._debounceInformation.update(t,i.elapsed()),s}));try{const e=await this._computePromise;this.updateDecorations(e),this.updateColorDecorators(e),this._computePromise=null}catch(e){(0,o.dz)(e)}}stop(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()}updateDecorations(e){const t=e.map((e=>({range:{startLineNumber:e.colorInfo.range.startLineNumber,startColumn:e.colorInfo.range.startColumn,endLineNumber:e.colorInfo.range.endLineNumber,endColumn:e.colorInfo.range.endColumn},options:p.kI.EMPTY})));this._editor.changeDecorations((i=>{this._decorationsIds=i.deltaDecorations(this._decorationsIds,t),this._colorDatas=new Map,this._decorationsIds.forEach(((t,i)=>this._colorDatas.set(t,e[i])))}))}updateColorDecorators(e){this._colorDecorationClassRefs.clear();const t=[],i=this._editor.getOption(21);for(let n=0;n<e.length&&t.length<i;n++){const{red:i,green:s,blue:o,alpha:a}=e[n].colorInfo.color,c=new r.bU(Math.round(255*i),Math.round(255*s),Math.round(255*o),a),l=`rgba(${c.r}, ${c.g}, ${c.b}, ${c.a})`,d=this._colorDecorationClassRefs.add(this._ruleFactory.createClassNameRef({backgroundColor:l}));t.push({range:{startLineNumber:e[n].colorInfo.range.startLineNumber,startColumn:e[n].colorInfo.range.startColumn,endLineNumber:e[n].colorInfo.range.endLineNumber,endColumn:e[n].colorInfo.range.endColumn},options:{description:"colorDetector",before:{content:h.S8,inlineClassName:`${d.className} colorpicker-color-decoration`,inlineClassNameAffectsLetterSpacing:!0,attachedData:b}}})}const s=i<e.length&&i;this._decoratorLimitReporter.update(e.length,s),this._colorDecoratorIds.set(t)}removeAllDecorations(){this._editor.removeDecorations(this._decorationsIds),this._decorationsIds=[],this._colorDecoratorIds.clear(),this._colorDecorationClassRefs.clear()}getColorData(e){const t=this._editor.getModel();if(!t)return null;const i=t.getDecorationsInRange(g.Q.fromPositions(e,e)).filter((e=>this._colorDatas.has(e.id)));return 0===i.length?null:this._colorDatas.get(i[0].id)}isColorDecoration(e){return this._colorDecoratorIds.has(e)}};S=s=C([E(1,v.pG),E(2,f.ILanguageFeaturesService),E(3,m.ILanguageFeatureDebounceService)],S);class y{constructor(){this._onDidChange=new a.vl,this._computed=0,this._limited=!1}update(e,t){e===this._computed&&t===this._limited||(this._computed=e,this._limited=t,this._onDidChange.fire())}}(0,u.HW)(S.ID,S,1)},9948:(e,t,i)=>{"use strict";i.d(t,{I:()=>f});var s=i(8597),n=i(90766),r=i(10350),o=i(5662),a=i(91508),c=i(25689),l=i(36677),h=i(87289),d=i(63591),u=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},g=function(e,t){return function(i,s){t(i,s,e)}};const p=h.kI.register({description:"inline-progress-widget",stickiness:1,showIfCollapsed:!0,after:{content:a.S8,inlineClassName:"inline-editor-progress-decoration",inlineClassNameAffectsLetterSpacing:!0}});class m extends o.jG{static{this.baseId="editor.widget.inlineProgressWidget"}constructor(e,t,i,s,n){super(),this.typeId=e,this.editor=t,this.range=i,this.delegate=n,this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this.create(s),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this)}create(e){this.domNode=s.$(".inline-progress-widget"),this.domNode.role="button",this.domNode.title=e;const t=s.$("span.icon");this.domNode.append(t),t.classList.add(...c.L.asClassNameArray(r.W.loading),"codicon-modifier-spin");const i=()=>{const e=this.editor.getOption(67);this.domNode.style.height=`${e}px`,this.domNode.style.width=`${Math.ceil(.8*e)}px`};i(),this._register(this.editor.onDidChangeConfiguration((e=>{(e.hasChanged(52)||e.hasChanged(67))&&i()}))),this._register(s.ko(this.domNode,s.Bx.CLICK,(e=>{this.delegate.cancel()})))}getId(){return m.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:{lineNumber:this.range.startLineNumber,column:this.range.startColumn},preference:[0]}}dispose(){super.dispose(),this.editor.removeContentWidget(this)}}let f=class extends o.jG{constructor(e,t,i){super(),this.id=e,this._editor=t,this._instantiationService=i,this._showDelay=500,this._showPromise=this._register(new o.HE),this._currentWidget=this._register(new o.HE),this._operationIdPool=0,this._currentDecorations=t.createDecorationsCollection()}dispose(){super.dispose(),this._currentDecorations.clear()}async showWhile(e,t,i,s,r){const o=this._operationIdPool++;this._currentOperation=o,this.clear(),this._showPromise.value=(0,n.EQ)((()=>{const i=l.Q.fromPositions(e);this._currentDecorations.set([{range:i,options:p}]).length>0&&(this._currentWidget.value=this._instantiationService.createInstance(m,this.id,this._editor,i,t,s))}),r??this._showDelay);try{return await i}finally{this._currentOperation===o&&(this.clear(),this._currentOperation=void 0)}}clear(){this._showPromise.clear(),this._currentDecorations.clear(),this._currentWidget.clear()}};f=u([g(2,d._Y)],f)},10072:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>i.e(1278).then(i.bind(i,11278))})},10146:(e,t,i)=>{"use strict";i.d(t,{Go:()=>n,PI:()=>a,V0:()=>d,aI:()=>h,co:()=>l,kT:()=>u,ol:()=>r});var s=i(631);function n(e){if(!e||"object"!==typeof e)return e;if(e instanceof RegExp)return e;const t=Array.isArray(e)?[]:{};return Object.entries(e).forEach((([e,i])=>{t[e]=i&&"object"===typeof i?n(i):i})),t}function r(e){if(!e||"object"!==typeof e)return e;const t=[e];for(;t.length>0;){const e=t.shift();Object.freeze(e);for(const i in e)if(o.call(e,i)){const n=e[i];"object"!==typeof n||Object.isFrozen(n)||(0,s.iu)(n)||t.push(n)}}return e}const o=Object.prototype.hasOwnProperty;function a(e,t){return c(e,t,new Set)}function c(e,t,i){if((0,s.z)(e))return e;const n=t(e);if("undefined"!==typeof n)return n;if(Array.isArray(e)){const s=[];for(const n of e)s.push(c(n,t,i));return s}if((0,s.Gv)(e)){if(i.has(e))throw new Error("Cannot clone recursive data-structure");i.add(e);const s={};for(const n in e)o.call(e,n)&&(s[n]=c(e[n],t,i));return i.delete(e),s}return e}function l(e,t,i=!0){return(0,s.Gv)(e)?((0,s.Gv)(t)&&Object.keys(t).forEach((n=>{n in e?i&&((0,s.Gv)(e[n])&&(0,s.Gv)(t[n])?l(e[n],t[n],i):e[n]=t[n]):e[n]=t[n]})),e):t}function h(e,t){if(e===t)return!0;if(null===e||void 0===e||null===t||void 0===t)return!1;if(typeof e!==typeof t)return!1;if("object"!==typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;let i,s;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(i=0;i<e.length;i++)if(!h(e[i],t[i]))return!1}else{const n=[];for(s in e)n.push(s);n.sort();const r=[];for(s in t)r.push(s);if(r.sort(),!h(n,r))return!1;for(i=0;i<n.length;i++)if(!h(e[n[i]],t[n[i]]))return!1}return!0}function d(e){const t=[];for(const i of function(e){let t=[];for(;Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}(e))"function"===typeof e[i]&&t.push(i);return t}function u(e,t){const i=e=>function(){const i=Array.prototype.slice.call(arguments,0);return t(e,i)},s={};for(const n of e)s[n]=i(n);return s}},10154:(e,t,i)=>{"use strict";i.d(t,{L:()=>s});const s=(0,i(63591).u1)("languageService")},10350:(e,t,i)=>{"use strict";i.d(t,{W:()=>n});var s=i(18956);const n={...{add:(0,s.k)("add",6e4),plus:(0,s.k)("plus",6e4),gistNew:(0,s.k)("gist-new",6e4),repoCreate:(0,s.k)("repo-create",6e4),lightbulb:(0,s.k)("lightbulb",60001),lightBulb:(0,s.k)("light-bulb",60001),repo:(0,s.k)("repo",60002),repoDelete:(0,s.k)("repo-delete",60002),gistFork:(0,s.k)("gist-fork",60003),repoForked:(0,s.k)("repo-forked",60003),gitPullRequest:(0,s.k)("git-pull-request",60004),gitPullRequestAbandoned:(0,s.k)("git-pull-request-abandoned",60004),recordKeys:(0,s.k)("record-keys",60005),keyboard:(0,s.k)("keyboard",60005),tag:(0,s.k)("tag",60006),gitPullRequestLabel:(0,s.k)("git-pull-request-label",60006),tagAdd:(0,s.k)("tag-add",60006),tagRemove:(0,s.k)("tag-remove",60006),person:(0,s.k)("person",60007),personFollow:(0,s.k)("person-follow",60007),personOutline:(0,s.k)("person-outline",60007),personFilled:(0,s.k)("person-filled",60007),gitBranch:(0,s.k)("git-branch",60008),gitBranchCreate:(0,s.k)("git-branch-create",60008),gitBranchDelete:(0,s.k)("git-branch-delete",60008),sourceControl:(0,s.k)("source-control",60008),mirror:(0,s.k)("mirror",60009),mirrorPublic:(0,s.k)("mirror-public",60009),star:(0,s.k)("star",60010),starAdd:(0,s.k)("star-add",60010),starDelete:(0,s.k)("star-delete",60010),starEmpty:(0,s.k)("star-empty",60010),comment:(0,s.k)("comment",60011),commentAdd:(0,s.k)("comment-add",60011),alert:(0,s.k)("alert",60012),warning:(0,s.k)("warning",60012),search:(0,s.k)("search",60013),searchSave:(0,s.k)("search-save",60013),logOut:(0,s.k)("log-out",60014),signOut:(0,s.k)("sign-out",60014),logIn:(0,s.k)("log-in",60015),signIn:(0,s.k)("sign-in",60015),eye:(0,s.k)("eye",60016),eyeUnwatch:(0,s.k)("eye-unwatch",60016),eyeWatch:(0,s.k)("eye-watch",60016),circleFilled:(0,s.k)("circle-filled",60017),primitiveDot:(0,s.k)("primitive-dot",60017),closeDirty:(0,s.k)("close-dirty",60017),debugBreakpoint:(0,s.k)("debug-breakpoint",60017),debugBreakpointDisabled:(0,s.k)("debug-breakpoint-disabled",60017),debugHint:(0,s.k)("debug-hint",60017),terminalDecorationSuccess:(0,s.k)("terminal-decoration-success",60017),primitiveSquare:(0,s.k)("primitive-square",60018),edit:(0,s.k)("edit",60019),pencil:(0,s.k)("pencil",60019),info:(0,s.k)("info",60020),issueOpened:(0,s.k)("issue-opened",60020),gistPrivate:(0,s.k)("gist-private",60021),gitForkPrivate:(0,s.k)("git-fork-private",60021),lock:(0,s.k)("lock",60021),mirrorPrivate:(0,s.k)("mirror-private",60021),close:(0,s.k)("close",60022),removeClose:(0,s.k)("remove-close",60022),x:(0,s.k)("x",60022),repoSync:(0,s.k)("repo-sync",60023),sync:(0,s.k)("sync",60023),clone:(0,s.k)("clone",60024),desktopDownload:(0,s.k)("desktop-download",60024),beaker:(0,s.k)("beaker",60025),microscope:(0,s.k)("microscope",60025),vm:(0,s.k)("vm",60026),deviceDesktop:(0,s.k)("device-desktop",60026),file:(0,s.k)("file",60027),fileText:(0,s.k)("file-text",60027),more:(0,s.k)("more",60028),ellipsis:(0,s.k)("ellipsis",60028),kebabHorizontal:(0,s.k)("kebab-horizontal",60028),mailReply:(0,s.k)("mail-reply",60029),reply:(0,s.k)("reply",60029),organization:(0,s.k)("organization",60030),organizationFilled:(0,s.k)("organization-filled",60030),organizationOutline:(0,s.k)("organization-outline",60030),newFile:(0,s.k)("new-file",60031),fileAdd:(0,s.k)("file-add",60031),newFolder:(0,s.k)("new-folder",60032),fileDirectoryCreate:(0,s.k)("file-directory-create",60032),trash:(0,s.k)("trash",60033),trashcan:(0,s.k)("trashcan",60033),history:(0,s.k)("history",60034),clock:(0,s.k)("clock",60034),folder:(0,s.k)("folder",60035),fileDirectory:(0,s.k)("file-directory",60035),symbolFolder:(0,s.k)("symbol-folder",60035),logoGithub:(0,s.k)("logo-github",60036),markGithub:(0,s.k)("mark-github",60036),github:(0,s.k)("github",60036),terminal:(0,s.k)("terminal",60037),console:(0,s.k)("console",60037),repl:(0,s.k)("repl",60037),zap:(0,s.k)("zap",60038),symbolEvent:(0,s.k)("symbol-event",60038),error:(0,s.k)("error",60039),stop:(0,s.k)("stop",60039),variable:(0,s.k)("variable",60040),symbolVariable:(0,s.k)("symbol-variable",60040),array:(0,s.k)("array",60042),symbolArray:(0,s.k)("symbol-array",60042),symbolModule:(0,s.k)("symbol-module",60043),symbolPackage:(0,s.k)("symbol-package",60043),symbolNamespace:(0,s.k)("symbol-namespace",60043),symbolObject:(0,s.k)("symbol-object",60043),symbolMethod:(0,s.k)("symbol-method",60044),symbolFunction:(0,s.k)("symbol-function",60044),symbolConstructor:(0,s.k)("symbol-constructor",60044),symbolBoolean:(0,s.k)("symbol-boolean",60047),symbolNull:(0,s.k)("symbol-null",60047),symbolNumeric:(0,s.k)("symbol-numeric",60048),symbolNumber:(0,s.k)("symbol-number",60048),symbolStructure:(0,s.k)("symbol-structure",60049),symbolStruct:(0,s.k)("symbol-struct",60049),symbolParameter:(0,s.k)("symbol-parameter",60050),symbolTypeParameter:(0,s.k)("symbol-type-parameter",60050),symbolKey:(0,s.k)("symbol-key",60051),symbolText:(0,s.k)("symbol-text",60051),symbolReference:(0,s.k)("symbol-reference",60052),goToFile:(0,s.k)("go-to-file",60052),symbolEnum:(0,s.k)("symbol-enum",60053),symbolValue:(0,s.k)("symbol-value",60053),symbolRuler:(0,s.k)("symbol-ruler",60054),symbolUnit:(0,s.k)("symbol-unit",60054),activateBreakpoints:(0,s.k)("activate-breakpoints",60055),archive:(0,s.k)("archive",60056),arrowBoth:(0,s.k)("arrow-both",60057),arrowDown:(0,s.k)("arrow-down",60058),arrowLeft:(0,s.k)("arrow-left",60059),arrowRight:(0,s.k)("arrow-right",60060),arrowSmallDown:(0,s.k)("arrow-small-down",60061),arrowSmallLeft:(0,s.k)("arrow-small-left",60062),arrowSmallRight:(0,s.k)("arrow-small-right",60063),arrowSmallUp:(0,s.k)("arrow-small-up",60064),arrowUp:(0,s.k)("arrow-up",60065),bell:(0,s.k)("bell",60066),bold:(0,s.k)("bold",60067),book:(0,s.k)("book",60068),bookmark:(0,s.k)("bookmark",60069),debugBreakpointConditionalUnverified:(0,s.k)("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:(0,s.k)("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:(0,s.k)("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:(0,s.k)("debug-breakpoint-data-unverified",60072),debugBreakpointData:(0,s.k)("debug-breakpoint-data",60073),debugBreakpointDataDisabled:(0,s.k)("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:(0,s.k)("debug-breakpoint-log-unverified",60074),debugBreakpointLog:(0,s.k)("debug-breakpoint-log",60075),debugBreakpointLogDisabled:(0,s.k)("debug-breakpoint-log-disabled",60075),briefcase:(0,s.k)("briefcase",60076),broadcast:(0,s.k)("broadcast",60077),browser:(0,s.k)("browser",60078),bug:(0,s.k)("bug",60079),calendar:(0,s.k)("calendar",60080),caseSensitive:(0,s.k)("case-sensitive",60081),check:(0,s.k)("check",60082),checklist:(0,s.k)("checklist",60083),chevronDown:(0,s.k)("chevron-down",60084),chevronLeft:(0,s.k)("chevron-left",60085),chevronRight:(0,s.k)("chevron-right",60086),chevronUp:(0,s.k)("chevron-up",60087),chromeClose:(0,s.k)("chrome-close",60088),chromeMaximize:(0,s.k)("chrome-maximize",60089),chromeMinimize:(0,s.k)("chrome-minimize",60090),chromeRestore:(0,s.k)("chrome-restore",60091),circleOutline:(0,s.k)("circle-outline",60092),circle:(0,s.k)("circle",60092),debugBreakpointUnverified:(0,s.k)("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:(0,s.k)("terminal-decoration-incomplete",60092),circleSlash:(0,s.k)("circle-slash",60093),circuitBoard:(0,s.k)("circuit-board",60094),clearAll:(0,s.k)("clear-all",60095),clippy:(0,s.k)("clippy",60096),closeAll:(0,s.k)("close-all",60097),cloudDownload:(0,s.k)("cloud-download",60098),cloudUpload:(0,s.k)("cloud-upload",60099),code:(0,s.k)("code",60100),collapseAll:(0,s.k)("collapse-all",60101),colorMode:(0,s.k)("color-mode",60102),commentDiscussion:(0,s.k)("comment-discussion",60103),creditCard:(0,s.k)("credit-card",60105),dash:(0,s.k)("dash",60108),dashboard:(0,s.k)("dashboard",60109),database:(0,s.k)("database",60110),debugContinue:(0,s.k)("debug-continue",60111),debugDisconnect:(0,s.k)("debug-disconnect",60112),debugPause:(0,s.k)("debug-pause",60113),debugRestart:(0,s.k)("debug-restart",60114),debugStart:(0,s.k)("debug-start",60115),debugStepInto:(0,s.k)("debug-step-into",60116),debugStepOut:(0,s.k)("debug-step-out",60117),debugStepOver:(0,s.k)("debug-step-over",60118),debugStop:(0,s.k)("debug-stop",60119),debug:(0,s.k)("debug",60120),deviceCameraVideo:(0,s.k)("device-camera-video",60121),deviceCamera:(0,s.k)("device-camera",60122),deviceMobile:(0,s.k)("device-mobile",60123),diffAdded:(0,s.k)("diff-added",60124),diffIgnored:(0,s.k)("diff-ignored",60125),diffModified:(0,s.k)("diff-modified",60126),diffRemoved:(0,s.k)("diff-removed",60127),diffRenamed:(0,s.k)("diff-renamed",60128),diff:(0,s.k)("diff",60129),diffSidebyside:(0,s.k)("diff-sidebyside",60129),discard:(0,s.k)("discard",60130),editorLayout:(0,s.k)("editor-layout",60131),emptyWindow:(0,s.k)("empty-window",60132),exclude:(0,s.k)("exclude",60133),extensions:(0,s.k)("extensions",60134),eyeClosed:(0,s.k)("eye-closed",60135),fileBinary:(0,s.k)("file-binary",60136),fileCode:(0,s.k)("file-code",60137),fileMedia:(0,s.k)("file-media",60138),filePdf:(0,s.k)("file-pdf",60139),fileSubmodule:(0,s.k)("file-submodule",60140),fileSymlinkDirectory:(0,s.k)("file-symlink-directory",60141),fileSymlinkFile:(0,s.k)("file-symlink-file",60142),fileZip:(0,s.k)("file-zip",60143),files:(0,s.k)("files",60144),filter:(0,s.k)("filter",60145),flame:(0,s.k)("flame",60146),foldDown:(0,s.k)("fold-down",60147),foldUp:(0,s.k)("fold-up",60148),fold:(0,s.k)("fold",60149),folderActive:(0,s.k)("folder-active",60150),folderOpened:(0,s.k)("folder-opened",60151),gear:(0,s.k)("gear",60152),gift:(0,s.k)("gift",60153),gistSecret:(0,s.k)("gist-secret",60154),gist:(0,s.k)("gist",60155),gitCommit:(0,s.k)("git-commit",60156),gitCompare:(0,s.k)("git-compare",60157),compareChanges:(0,s.k)("compare-changes",60157),gitMerge:(0,s.k)("git-merge",60158),githubAction:(0,s.k)("github-action",60159),githubAlt:(0,s.k)("github-alt",60160),globe:(0,s.k)("globe",60161),grabber:(0,s.k)("grabber",60162),graph:(0,s.k)("graph",60163),gripper:(0,s.k)("gripper",60164),heart:(0,s.k)("heart",60165),home:(0,s.k)("home",60166),horizontalRule:(0,s.k)("horizontal-rule",60167),hubot:(0,s.k)("hubot",60168),inbox:(0,s.k)("inbox",60169),issueReopened:(0,s.k)("issue-reopened",60171),issues:(0,s.k)("issues",60172),italic:(0,s.k)("italic",60173),jersey:(0,s.k)("jersey",60174),json:(0,s.k)("json",60175),kebabVertical:(0,s.k)("kebab-vertical",60176),key:(0,s.k)("key",60177),law:(0,s.k)("law",60178),lightbulbAutofix:(0,s.k)("lightbulb-autofix",60179),linkExternal:(0,s.k)("link-external",60180),link:(0,s.k)("link",60181),listOrdered:(0,s.k)("list-ordered",60182),listUnordered:(0,s.k)("list-unordered",60183),liveShare:(0,s.k)("live-share",60184),loading:(0,s.k)("loading",60185),location:(0,s.k)("location",60186),mailRead:(0,s.k)("mail-read",60187),mail:(0,s.k)("mail",60188),markdown:(0,s.k)("markdown",60189),megaphone:(0,s.k)("megaphone",60190),mention:(0,s.k)("mention",60191),milestone:(0,s.k)("milestone",60192),gitPullRequestMilestone:(0,s.k)("git-pull-request-milestone",60192),mortarBoard:(0,s.k)("mortar-board",60193),move:(0,s.k)("move",60194),multipleWindows:(0,s.k)("multiple-windows",60195),mute:(0,s.k)("mute",60196),noNewline:(0,s.k)("no-newline",60197),note:(0,s.k)("note",60198),octoface:(0,s.k)("octoface",60199),openPreview:(0,s.k)("open-preview",60200),package:(0,s.k)("package",60201),paintcan:(0,s.k)("paintcan",60202),pin:(0,s.k)("pin",60203),play:(0,s.k)("play",60204),run:(0,s.k)("run",60204),plug:(0,s.k)("plug",60205),preserveCase:(0,s.k)("preserve-case",60206),preview:(0,s.k)("preview",60207),project:(0,s.k)("project",60208),pulse:(0,s.k)("pulse",60209),question:(0,s.k)("question",60210),quote:(0,s.k)("quote",60211),radioTower:(0,s.k)("radio-tower",60212),reactions:(0,s.k)("reactions",60213),references:(0,s.k)("references",60214),refresh:(0,s.k)("refresh",60215),regex:(0,s.k)("regex",60216),remoteExplorer:(0,s.k)("remote-explorer",60217),remote:(0,s.k)("remote",60218),remove:(0,s.k)("remove",60219),replaceAll:(0,s.k)("replace-all",60220),replace:(0,s.k)("replace",60221),repoClone:(0,s.k)("repo-clone",60222),repoForcePush:(0,s.k)("repo-force-push",60223),repoPull:(0,s.k)("repo-pull",60224),repoPush:(0,s.k)("repo-push",60225),report:(0,s.k)("report",60226),requestChanges:(0,s.k)("request-changes",60227),rocket:(0,s.k)("rocket",60228),rootFolderOpened:(0,s.k)("root-folder-opened",60229),rootFolder:(0,s.k)("root-folder",60230),rss:(0,s.k)("rss",60231),ruby:(0,s.k)("ruby",60232),saveAll:(0,s.k)("save-all",60233),saveAs:(0,s.k)("save-as",60234),save:(0,s.k)("save",60235),screenFull:(0,s.k)("screen-full",60236),screenNormal:(0,s.k)("screen-normal",60237),searchStop:(0,s.k)("search-stop",60238),server:(0,s.k)("server",60240),settingsGear:(0,s.k)("settings-gear",60241),settings:(0,s.k)("settings",60242),shield:(0,s.k)("shield",60243),smiley:(0,s.k)("smiley",60244),sortPrecedence:(0,s.k)("sort-precedence",60245),splitHorizontal:(0,s.k)("split-horizontal",60246),splitVertical:(0,s.k)("split-vertical",60247),squirrel:(0,s.k)("squirrel",60248),starFull:(0,s.k)("star-full",60249),starHalf:(0,s.k)("star-half",60250),symbolClass:(0,s.k)("symbol-class",60251),symbolColor:(0,s.k)("symbol-color",60252),symbolConstant:(0,s.k)("symbol-constant",60253),symbolEnumMember:(0,s.k)("symbol-enum-member",60254),symbolField:(0,s.k)("symbol-field",60255),symbolFile:(0,s.k)("symbol-file",60256),symbolInterface:(0,s.k)("symbol-interface",60257),symbolKeyword:(0,s.k)("symbol-keyword",60258),symbolMisc:(0,s.k)("symbol-misc",60259),symbolOperator:(0,s.k)("symbol-operator",60260),symbolProperty:(0,s.k)("symbol-property",60261),wrench:(0,s.k)("wrench",60261),wrenchSubaction:(0,s.k)("wrench-subaction",60261),symbolSnippet:(0,s.k)("symbol-snippet",60262),tasklist:(0,s.k)("tasklist",60263),telescope:(0,s.k)("telescope",60264),textSize:(0,s.k)("text-size",60265),threeBars:(0,s.k)("three-bars",60266),thumbsdown:(0,s.k)("thumbsdown",60267),thumbsup:(0,s.k)("thumbsup",60268),tools:(0,s.k)("tools",60269),triangleDown:(0,s.k)("triangle-down",60270),triangleLeft:(0,s.k)("triangle-left",60271),triangleRight:(0,s.k)("triangle-right",60272),triangleUp:(0,s.k)("triangle-up",60273),twitter:(0,s.k)("twitter",60274),unfold:(0,s.k)("unfold",60275),unlock:(0,s.k)("unlock",60276),unmute:(0,s.k)("unmute",60277),unverified:(0,s.k)("unverified",60278),verified:(0,s.k)("verified",60279),versions:(0,s.k)("versions",60280),vmActive:(0,s.k)("vm-active",60281),vmOutline:(0,s.k)("vm-outline",60282),vmRunning:(0,s.k)("vm-running",60283),watch:(0,s.k)("watch",60284),whitespace:(0,s.k)("whitespace",60285),wholeWord:(0,s.k)("whole-word",60286),window:(0,s.k)("window",60287),wordWrap:(0,s.k)("word-wrap",60288),zoomIn:(0,s.k)("zoom-in",60289),zoomOut:(0,s.k)("zoom-out",60290),listFilter:(0,s.k)("list-filter",60291),listFlat:(0,s.k)("list-flat",60292),listSelection:(0,s.k)("list-selection",60293),selection:(0,s.k)("selection",60293),listTree:(0,s.k)("list-tree",60294),debugBreakpointFunctionUnverified:(0,s.k)("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:(0,s.k)("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:(0,s.k)("debug-breakpoint-function-disabled",60296),debugStackframeActive:(0,s.k)("debug-stackframe-active",60297),circleSmallFilled:(0,s.k)("circle-small-filled",60298),debugStackframeDot:(0,s.k)("debug-stackframe-dot",60298),terminalDecorationMark:(0,s.k)("terminal-decoration-mark",60298),debugStackframe:(0,s.k)("debug-stackframe",60299),debugStackframeFocused:(0,s.k)("debug-stackframe-focused",60299),debugBreakpointUnsupported:(0,s.k)("debug-breakpoint-unsupported",60300),symbolString:(0,s.k)("symbol-string",60301),debugReverseContinue:(0,s.k)("debug-reverse-continue",60302),debugStepBack:(0,s.k)("debug-step-back",60303),debugRestartFrame:(0,s.k)("debug-restart-frame",60304),debugAlt:(0,s.k)("debug-alt",60305),callIncoming:(0,s.k)("call-incoming",60306),callOutgoing:(0,s.k)("call-outgoing",60307),menu:(0,s.k)("menu",60308),expandAll:(0,s.k)("expand-all",60309),feedback:(0,s.k)("feedback",60310),gitPullRequestReviewer:(0,s.k)("git-pull-request-reviewer",60310),groupByRefType:(0,s.k)("group-by-ref-type",60311),ungroupByRefType:(0,s.k)("ungroup-by-ref-type",60312),account:(0,s.k)("account",60313),gitPullRequestAssignee:(0,s.k)("git-pull-request-assignee",60313),bellDot:(0,s.k)("bell-dot",60314),debugConsole:(0,s.k)("debug-console",60315),library:(0,s.k)("library",60316),output:(0,s.k)("output",60317),runAll:(0,s.k)("run-all",60318),syncIgnored:(0,s.k)("sync-ignored",60319),pinned:(0,s.k)("pinned",60320),githubInverted:(0,s.k)("github-inverted",60321),serverProcess:(0,s.k)("server-process",60322),serverEnvironment:(0,s.k)("server-environment",60323),pass:(0,s.k)("pass",60324),issueClosed:(0,s.k)("issue-closed",60324),stopCircle:(0,s.k)("stop-circle",60325),playCircle:(0,s.k)("play-circle",60326),record:(0,s.k)("record",60327),debugAltSmall:(0,s.k)("debug-alt-small",60328),vmConnect:(0,s.k)("vm-connect",60329),cloud:(0,s.k)("cloud",60330),merge:(0,s.k)("merge",60331),export:(0,s.k)("export",60332),graphLeft:(0,s.k)("graph-left",60333),magnet:(0,s.k)("magnet",60334),notebook:(0,s.k)("notebook",60335),redo:(0,s.k)("redo",60336),checkAll:(0,s.k)("check-all",60337),pinnedDirty:(0,s.k)("pinned-dirty",60338),passFilled:(0,s.k)("pass-filled",60339),circleLargeFilled:(0,s.k)("circle-large-filled",60340),circleLarge:(0,s.k)("circle-large",60341),circleLargeOutline:(0,s.k)("circle-large-outline",60341),combine:(0,s.k)("combine",60342),gather:(0,s.k)("gather",60342),table:(0,s.k)("table",60343),variableGroup:(0,s.k)("variable-group",60344),typeHierarchy:(0,s.k)("type-hierarchy",60345),typeHierarchySub:(0,s.k)("type-hierarchy-sub",60346),typeHierarchySuper:(0,s.k)("type-hierarchy-super",60347),gitPullRequestCreate:(0,s.k)("git-pull-request-create",60348),runAbove:(0,s.k)("run-above",60349),runBelow:(0,s.k)("run-below",60350),notebookTemplate:(0,s.k)("notebook-template",60351),debugRerun:(0,s.k)("debug-rerun",60352),workspaceTrusted:(0,s.k)("workspace-trusted",60353),workspaceUntrusted:(0,s.k)("workspace-untrusted",60354),workspaceUnknown:(0,s.k)("workspace-unknown",60355),terminalCmd:(0,s.k)("terminal-cmd",60356),terminalDebian:(0,s.k)("terminal-debian",60357),terminalLinux:(0,s.k)("terminal-linux",60358),terminalPowershell:(0,s.k)("terminal-powershell",60359),terminalTmux:(0,s.k)("terminal-tmux",60360),terminalUbuntu:(0,s.k)("terminal-ubuntu",60361),terminalBash:(0,s.k)("terminal-bash",60362),arrowSwap:(0,s.k)("arrow-swap",60363),copy:(0,s.k)("copy",60364),personAdd:(0,s.k)("person-add",60365),filterFilled:(0,s.k)("filter-filled",60366),wand:(0,s.k)("wand",60367),debugLineByLine:(0,s.k)("debug-line-by-line",60368),inspect:(0,s.k)("inspect",60369),layers:(0,s.k)("layers",60370),layersDot:(0,s.k)("layers-dot",60371),layersActive:(0,s.k)("layers-active",60372),compass:(0,s.k)("compass",60373),compassDot:(0,s.k)("compass-dot",60374),compassActive:(0,s.k)("compass-active",60375),azure:(0,s.k)("azure",60376),issueDraft:(0,s.k)("issue-draft",60377),gitPullRequestClosed:(0,s.k)("git-pull-request-closed",60378),gitPullRequestDraft:(0,s.k)("git-pull-request-draft",60379),debugAll:(0,s.k)("debug-all",60380),debugCoverage:(0,s.k)("debug-coverage",60381),runErrors:(0,s.k)("run-errors",60382),folderLibrary:(0,s.k)("folder-library",60383),debugContinueSmall:(0,s.k)("debug-continue-small",60384),beakerStop:(0,s.k)("beaker-stop",60385),graphLine:(0,s.k)("graph-line",60386),graphScatter:(0,s.k)("graph-scatter",60387),pieChart:(0,s.k)("pie-chart",60388),bracket:(0,s.k)("bracket",60175),bracketDot:(0,s.k)("bracket-dot",60389),bracketError:(0,s.k)("bracket-error",60390),lockSmall:(0,s.k)("lock-small",60391),azureDevops:(0,s.k)("azure-devops",60392),verifiedFilled:(0,s.k)("verified-filled",60393),newline:(0,s.k)("newline",60394),layout:(0,s.k)("layout",60395),layoutActivitybarLeft:(0,s.k)("layout-activitybar-left",60396),layoutActivitybarRight:(0,s.k)("layout-activitybar-right",60397),layoutPanelLeft:(0,s.k)("layout-panel-left",60398),layoutPanelCenter:(0,s.k)("layout-panel-center",60399),layoutPanelJustify:(0,s.k)("layout-panel-justify",60400),layoutPanelRight:(0,s.k)("layout-panel-right",60401),layoutPanel:(0,s.k)("layout-panel",60402),layoutSidebarLeft:(0,s.k)("layout-sidebar-left",60403),layoutSidebarRight:(0,s.k)("layout-sidebar-right",60404),layoutStatusbar:(0,s.k)("layout-statusbar",60405),layoutMenubar:(0,s.k)("layout-menubar",60406),layoutCentered:(0,s.k)("layout-centered",60407),target:(0,s.k)("target",60408),indent:(0,s.k)("indent",60409),recordSmall:(0,s.k)("record-small",60410),errorSmall:(0,s.k)("error-small",60411),terminalDecorationError:(0,s.k)("terminal-decoration-error",60411),arrowCircleDown:(0,s.k)("arrow-circle-down",60412),arrowCircleLeft:(0,s.k)("arrow-circle-left",60413),arrowCircleRight:(0,s.k)("arrow-circle-right",60414),arrowCircleUp:(0,s.k)("arrow-circle-up",60415),layoutSidebarRightOff:(0,s.k)("layout-sidebar-right-off",60416),layoutPanelOff:(0,s.k)("layout-panel-off",60417),layoutSidebarLeftOff:(0,s.k)("layout-sidebar-left-off",60418),blank:(0,s.k)("blank",60419),heartFilled:(0,s.k)("heart-filled",60420),map:(0,s.k)("map",60421),mapHorizontal:(0,s.k)("map-horizontal",60421),foldHorizontal:(0,s.k)("fold-horizontal",60421),mapFilled:(0,s.k)("map-filled",60422),mapHorizontalFilled:(0,s.k)("map-horizontal-filled",60422),foldHorizontalFilled:(0,s.k)("fold-horizontal-filled",60422),circleSmall:(0,s.k)("circle-small",60423),bellSlash:(0,s.k)("bell-slash",60424),bellSlashDot:(0,s.k)("bell-slash-dot",60425),commentUnresolved:(0,s.k)("comment-unresolved",60426),gitPullRequestGoToChanges:(0,s.k)("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:(0,s.k)("git-pull-request-new-changes",60428),searchFuzzy:(0,s.k)("search-fuzzy",60429),commentDraft:(0,s.k)("comment-draft",60430),send:(0,s.k)("send",60431),sparkle:(0,s.k)("sparkle",60432),insert:(0,s.k)("insert",60433),mic:(0,s.k)("mic",60434),thumbsdownFilled:(0,s.k)("thumbsdown-filled",60435),thumbsupFilled:(0,s.k)("thumbsup-filled",60436),coffee:(0,s.k)("coffee",60437),snake:(0,s.k)("snake",60438),game:(0,s.k)("game",60439),vr:(0,s.k)("vr",60440),chip:(0,s.k)("chip",60441),piano:(0,s.k)("piano",60442),music:(0,s.k)("music",60443),micFilled:(0,s.k)("mic-filled",60444),repoFetch:(0,s.k)("repo-fetch",60445),copilot:(0,s.k)("copilot",60446),lightbulbSparkle:(0,s.k)("lightbulb-sparkle",60447),robot:(0,s.k)("robot",60448),sparkleFilled:(0,s.k)("sparkle-filled",60449),diffSingle:(0,s.k)("diff-single",60450),diffMultiple:(0,s.k)("diff-multiple",60451),surroundWith:(0,s.k)("surround-with",60452),share:(0,s.k)("share",60453),gitStash:(0,s.k)("git-stash",60454),gitStashApply:(0,s.k)("git-stash-apply",60455),gitStashPop:(0,s.k)("git-stash-pop",60456),vscode:(0,s.k)("vscode",60457),vscodeInsiders:(0,s.k)("vscode-insiders",60458),codeOss:(0,s.k)("code-oss",60459),runCoverage:(0,s.k)("run-coverage",60460),runAllCoverage:(0,s.k)("run-all-coverage",60461),coverage:(0,s.k)("coverage",60462),githubProject:(0,s.k)("github-project",60463),mapVertical:(0,s.k)("map-vertical",60464),foldVertical:(0,s.k)("fold-vertical",60464),mapVerticalFilled:(0,s.k)("map-vertical-filled",60465),foldVerticalFilled:(0,s.k)("fold-vertical-filled",60465),goToSearch:(0,s.k)("go-to-search",60466),percentage:(0,s.k)("percentage",60467),sortPercentage:(0,s.k)("sort-percentage",60467),attach:(0,s.k)("attach",60468)},...{dialogError:(0,s.k)("dialog-error","error"),dialogWarning:(0,s.k)("dialog-warning","warning"),dialogInfo:(0,s.k)("dialog-info","info"),dialogClose:(0,s.k)("dialog-close","close"),treeItemExpanded:(0,s.k)("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:(0,s.k)("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:(0,s.k)("tree-filter-on-type-off","list-selection"),treeFilterClear:(0,s.k)("tree-filter-clear","close"),treeItemLoading:(0,s.k)("tree-item-loading","loading"),menuSelection:(0,s.k)("menu-selection","check"),menuSubmenu:(0,s.k)("menu-submenu","chevron-right"),menuBarMore:(0,s.k)("menubar-more","more"),scrollbarButtonLeft:(0,s.k)("scrollbar-button-left","triangle-left"),scrollbarButtonRight:(0,s.k)("scrollbar-button-right","triangle-right"),scrollbarButtonUp:(0,s.k)("scrollbar-button-up","triangle-up"),scrollbarButtonDown:(0,s.k)("scrollbar-button-down","triangle-down"),toolBarMore:(0,s.k)("toolbar-more","more"),quickInputBack:(0,s.k)("quick-input-back","arrow-left"),dropDownButton:(0,s.k)("drop-down-button",60084),symbolCustomColor:(0,s.k)("symbol-customcolor",60252),exportIcon:(0,s.k)("export",60332),workspaceUnspecified:(0,s.k)("workspace-unspecified",60355),newLine:(0,s.k)("newline",60394),thumbsDownFilled:(0,s.k)("thumbsdown-filled",60435),thumbsUpFilled:(0,s.k)("thumbsup-filled",60436),gitFetch:(0,s.k)("git-fetch",60445),lightbulbSparkleAutofix:(0,s.k)("lightbulb-sparkle-autofix",60447),debugBreakpointPending:(0,s.k)("debug-breakpoint-pending",60377)}}},10411:(e,t,i)=>{e.exports=function(e){const t=i(83823)(e);return function(e,i,s){const n=e.$value;return t(n,i,s-1)}}},10424:(e,t,i)=>{"use strict";i.d(t,{aQ:()=>I,nr:()=>O,Sx:()=>B,po:()=>N,tj:()=>A});var s=i(8597),n=i(60413),r=i(47661),o=i(41234),a=i(62083),c=i(25982);class l{constructor(e,t,i,s,n){this._parsedThemeRuleBrand=void 0,this.token=e,this.index=t,this.fontStyle=i,this.foreground=s,this.background=n}}const h=/^#?([0-9A-Fa-f]{6})([0-9A-Fa-f]{2})?$/;class d{constructor(){this._lastColorId=0,this._id2color=[],this._color2id=new Map}getId(e){if(null===e)return 0;const t=e.match(h);if(!t)throw new Error("Illegal value for token color: "+e);e=t[1].toUpperCase();let i=this._color2id.get(e);return i||(i=++this._lastColorId,this._color2id.set(e,i),this._id2color[i]=r.Q1.fromHex("#"+e),i)}getColorMap(){return this._id2color.slice(0)}}class u{static createFromRawTokenTheme(e,t){return this.createFromParsedTokenTheme(function(e){if(!e||!Array.isArray(e))return[];const t=[];let i=0;for(let s=0,n=e.length;s<n;s++){const n=e[s];let r=-1;if("string"===typeof n.fontStyle){r=0;const e=n.fontStyle.split(" ");for(let t=0,i=e.length;t<i;t++)switch(e[t]){case"italic":r|=1;break;case"bold":r|=2;break;case"underline":r|=4;break;case"strikethrough":r|=8}}let o=null;"string"===typeof n.foreground&&(o=n.foreground);let a=null;"string"===typeof n.background&&(a=n.background),t[i++]=new l(n.token||"",s,r,o,a)}return t}(e),t)}static createFromParsedTokenTheme(e,t){return function(e,t){e.sort(((e,t)=>{const i=function(e,t){return e<t?-1:e>t?1:0}(e.token,t.token);return 0!==i?i:e.index-t.index}));let i=0,s="000000",n="ffffff";for(;e.length>=1&&""===e[0].token;){const t=e.shift();-1!==t.fontStyle&&(i=t.fontStyle),null!==t.foreground&&(s=t.foreground),null!==t.background&&(n=t.background)}const r=new d;for(const h of t)r.getId(h);const o=r.getId(s),a=r.getId(n),c=new p(i,o,a),l=new m(c);for(let h=0,d=e.length;h<d;h++){const t=e[h];l.insert(t.token,t.fontStyle,r.getId(t.foreground),r.getId(t.background))}return new u(r,l)}(e,t)}constructor(e,t){this._colorMap=e,this._root=t,this._cache=new Map}getColorMap(){return this._colorMap.getColorMap()}_match(e){return this._root.match(e)}match(e,t){let i=this._cache.get(t);if("undefined"===typeof i){const e=this._match(t),s=function(e){const t=e.match(g);if(!t)return 0;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":case"regexp":return 3}throw new Error("Unexpected match for standard token type!")}(t);i=(e.metadata|s<<8)>>>0,this._cache.set(t,i)}return(i|e)>>>0}}const g=/\b(comment|string|regex|regexp)\b/;class p{constructor(e,t,i){this._themeTrieElementRuleBrand=void 0,this._fontStyle=e,this._foreground=t,this._background=i,this.metadata=(this._fontStyle<<11|this._foreground<<15|this._background<<24)>>>0}clone(){return new p(this._fontStyle,this._foreground,this._background)}acceptOverwrite(e,t,i){-1!==e&&(this._fontStyle=e),0!==t&&(this._foreground=t),0!==i&&(this._background=i),this.metadata=(this._fontStyle<<11|this._foreground<<15|this._background<<24)>>>0}}class m{constructor(e){this._themeTrieElementBrand=void 0,this._mainRule=e,this._children=new Map}match(e){if(""===e)return this._mainRule;const t=e.indexOf(".");let i,s;-1===t?(i=e,s=""):(i=e.substring(0,t),s=e.substring(t+1));const n=this._children.get(i);return"undefined"!==typeof n?n.match(s):this._mainRule}insert(e,t,i,s){if(""===e)return void this._mainRule.acceptOverwrite(t,i,s);const n=e.indexOf(".");let r,o;-1===n?(r=e,o=""):(r=e.substring(0,n),o=e.substring(n+1));let a=this._children.get(r);"undefined"===typeof a&&(a=new m(this._mainRule.clone()),this._children.set(r,a)),a.insert(o,t,i,s)}}var f=i(87119),_=i(66261);const v={base:"vs",inherit:!1,rules:[{token:"",foreground:"000000",background:"fffffe"},{token:"invalid",foreground:"cd3131"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"001188"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"098658"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"delimiter.xml",foreground:"0000FF"},{token:"tag",foreground:"800000"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"FF0000"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"FF0000"},{token:"attribute.value",foreground:"0451A5"},{token:"attribute.value.number",foreground:"098658"},{token:"attribute.value.unit",foreground:"098658"},{token:"attribute.value.html",foreground:"0000FF"},{token:"attribute.value.xml",foreground:"0000FF"},{token:"string",foreground:"A31515"},{token:"string.html",foreground:"0000FF"},{token:"string.sql",foreground:"FF0000"},{token:"string.yaml",foreground:"0451A5"},{token:"keyword",foreground:"0000FF"},{token:"keyword.json",foreground:"0451A5"},{token:"keyword.flow",foreground:"AF00DB"},{token:"keyword.flow.scss",foreground:"0000FF"},{token:"operator.scss",foreground:"666666"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"C700C7"}],colors:{[_.YtV]:"#FFFFFE",[_.By2]:"#000000",[_.tan]:"#E5EBF1",[f.vV]:"#D3D3D3",[f.H0]:"#939393",[_.QwA]:"#ADD6FF4D"}},C={base:"vs-dark",inherit:!1,rules:[{token:"",foreground:"D4D4D4",background:"1E1E1E"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"74B0DF"},{token:"variable.predefined",foreground:"4864AA"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"B5CEA8"},{token:"number.hex",foreground:"5BB498"},{token:"regexp",foreground:"B46695"},{token:"annotation",foreground:"cc6666"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"DCDCDC"},{token:"delimiter.html",foreground:"808080"},{token:"delimiter.xml",foreground:"808080"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"A79873"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"DD6A6F"},{token:"metatag.content.html",foreground:"9CDCFE"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key.json",foreground:"9CDCFE"},{token:"string.value.json",foreground:"CE9178"},{token:"attribute.name",foreground:"9CDCFE"},{token:"attribute.value",foreground:"CE9178"},{token:"attribute.value.number.css",foreground:"B5CEA8"},{token:"attribute.value.unit.css",foreground:"B5CEA8"},{token:"attribute.value.hex.css",foreground:"D4D4D4"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"keyword.json",foreground:"CE9178"},{token:"keyword.flow.scss",foreground:"569CD6"},{token:"operator.scss",foreground:"909090"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:{[_.YtV]:"#1E1E1E",[_.By2]:"#D4D4D4",[_.tan]:"#3A3D41",[f.vV]:"#404040",[f.H0]:"#707070",[_.QwA]:"#ADD6FF26"}},E={base:"hc-black",inherit:!1,rules:[{token:"",foreground:"FFFFFF",background:"000000"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"1AEBFF"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"FFFFFF"},{token:"regexp",foreground:"C0C0C0"},{token:"annotation",foreground:"569CD6"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"FFFF00"},{token:"delimiter.html",foreground:"FFFF00"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta",foreground:"D4D4D4"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"569CD6"},{token:"metatag.content.html",foreground:"1AEBFF"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key",foreground:"9CDCFE"},{token:"string.value",foreground:"CE9178"},{token:"attribute.name",foreground:"569CD6"},{token:"attribute.value",foreground:"3FF23F"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:{[_.YtV]:"#000000",[_.By2]:"#FFFFFF",[f.vV]:"#FFFFFF",[f.H0]:"#FFFFFF"}},b={base:"hc-light",inherit:!1,rules:[{token:"",foreground:"292929",background:"FFFFFF"},{token:"invalid",foreground:"B5200D"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"264F70"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"098658"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"tag",foreground:"800000"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"B5200D"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"264F78"},{token:"attribute.value",foreground:"0451A5"},{token:"string",foreground:"A31515"},{token:"string.sql",foreground:"B5200D"},{token:"keyword",foreground:"0000FF"},{token:"keyword.flow",foreground:"AF00DB"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"C700C7"}],colors:{[_.YtV]:"#FFFFFF",[_.By2]:"#292929",[f.vV]:"#292929",[f.H0]:"#292929"}};var S=i(46359),y=i(47612),w=i(5662),R=i(86723),L=i(25689),T=i(61394);class x{getIcon(e){const t=(0,T.HT)();let i=e.defaults;for(;L.L.isThemeIcon(i);){const e=t.getIcon(i.id);if(!e)return;i=e.defaults}return i}}var k=i(25893);const A="vs",N="vs-dark",I="hc-black",O="hc-light",D=S.O.as(_.FdG.ColorContribution),M=S.O.as(y.Fd.ThemingContribution);class P{constructor(e,t){this.semanticHighlighting=!1,this.themeData=t;const i=t.base;e.length>0?(F(e)?this.id=e:this.id=i+" "+e,this.themeName=e):(this.id=i,this.themeName=i),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}get base(){return this.themeData.base}notifyBaseUpdated(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)}getColors(){if(!this.colors){const e=new Map;for(const t in this.themeData.colors)e.set(t,r.Q1.fromHex(this.themeData.colors[t]));if(this.themeData.inherit){const t=U(this.themeData.base);for(const i in t.colors)e.has(i)||e.set(i,r.Q1.fromHex(t.colors[i]))}this.colors=e}return this.colors}getColor(e,t){const i=this.getColors().get(e);return i||(!1!==t?this.getDefault(e):void 0)}getDefault(e){let t=this.defaultColors[e];return t||(t=D.resolveDefaultColor(e,this),this.defaultColors[e]=t,t)}defines(e){return this.getColors().has(e)}get type(){switch(this.base){case A:return R.zM.LIGHT;case I:return R.zM.HIGH_CONTRAST_DARK;case O:return R.zM.HIGH_CONTRAST_LIGHT;default:return R.zM.DARK}}get tokenTheme(){if(!this._tokenTheme){let e=[],t=[];if(this.themeData.inherit){const i=U(this.themeData.base);e=i.rules,i.encodedTokensColors&&(t=i.encodedTokensColors)}const i=this.themeData.colors["editor.foreground"],s=this.themeData.colors["editor.background"];if(i||s){const t={token:""};i&&(t.foreground=i),s&&(t.background=s),e.push(t)}e=e.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(t=this.themeData.encodedTokensColors),this._tokenTheme=u.createFromRawTokenTheme(e,t)}return this._tokenTheme}getTokenStyleMetadata(e,t,i){const s=this.tokenTheme._match([e].concat(t).join(".")).metadata,n=c.x.getForeground(s),r=c.x.getFontStyle(s);return{foreground:n,italic:Boolean(1&r),bold:Boolean(2&r),underline:Boolean(4&r),strikethrough:Boolean(8&r)}}}function F(e){return e===A||e===N||e===I||e===O}function U(e){switch(e){case A:return v;case N:return C;case I:return E;case O:return b}}function H(e){const t=U(e);return new P(e,t)}class B extends w.jG{constructor(){super(),this._onColorThemeChange=this._register(new o.vl),this.onDidColorThemeChange=this._onColorThemeChange.event,this._onProductIconThemeChange=this._register(new o.vl),this.onDidProductIconThemeChange=this._onProductIconThemeChange.event,this._environment=Object.create(null),this._builtInProductIconTheme=new x,this._autoDetectHighContrast=!0,this._knownThemes=new Map,this._knownThemes.set(A,H(A)),this._knownThemes.set(N,H(N)),this._knownThemes.set(I,H(I)),this._knownThemes.set(O,H(O));const e=this._register(function(e){const t=new w.Cm,i=t.add(new o.vl),n=(0,T.HT)();return t.add(n.onDidChange((()=>i.fire()))),e&&t.add(e.onDidProductIconThemeChange((()=>i.fire()))),{dispose:()=>t.dispose(),onDidChange:i.event,getCSS(){const t=e?e.getProductIconTheme():new x,i={},r=[],o=[];for(const e of n.getIcons()){const n=t.getIcon(e);if(!n)continue;const a=n.font,c=`--vscode-icon-${e.id}-font-family`,l=`--vscode-icon-${e.id}-content`;a?(i[a.id]=a.definition,o.push(`${c}: ${(0,s.yt)(a.id)};`,`${l}: '${n.fontCharacter}';`),r.push(`.codicon-${e.id}:before { content: '${n.fontCharacter}'; font-family: ${(0,s.yt)(a.id)}; }`)):(o.push(`${l}: '${n.fontCharacter}'; ${c}: 'codicon';`),r.push(`.codicon-${e.id}:before { content: '${n.fontCharacter}'; }`))}for(const e in i){const t=i[e],n=t.weight?`font-weight: ${t.weight};`:"",o=t.style?`font-style: ${t.style};`:"",a=t.src.map((e=>`${(0,s.Tf)(e.location)} format('${e.format}')`)).join(", ");r.push(`@font-face { src: ${a}; font-family: ${(0,s.yt)(e)};${n}${o} font-display: block; }`)}return r.push(`:root { ${o.join(" ")} }`),r.join("\n")}}}(this));this._codiconCSS=e.getCSS(),this._themeCSS="",this._allCSS=`${this._codiconCSS}\n${this._themeCSS}`,this._globalStyleElement=null,this._styleElements=[],this._colorMapOverride=null,this.setTheme(A),this._onOSSchemeChanged(),this._register(e.onDidChange((()=>{this._codiconCSS=e.getCSS(),this._updateCSS()}))),(0,n.Dy)(k.G,"(forced-colors: active)",(()=>{this._onOSSchemeChanged()}))}registerEditorContainer(e){return s.Cl(e)?this._registerShadowDomContainer(e):this._registerRegularEditorContainer()}_registerRegularEditorContainer(){return this._globalStyleElement||(this._globalStyleElement=s.li(void 0,(e=>{e.className="monaco-colors",e.textContent=this._allCSS})),this._styleElements.push(this._globalStyleElement)),w.jG.None}_registerShadowDomContainer(e){const t=s.li(e,(e=>{e.className="monaco-colors",e.textContent=this._allCSS}));return this._styleElements.push(t),{dispose:()=>{for(let e=0;e<this._styleElements.length;e++)if(this._styleElements[e]===t)return void this._styleElements.splice(e,1)}}}defineTheme(e,t){if(!/^[a-z0-9\-]+$/i.test(e))throw new Error("Illegal theme name!");if(!F(t.base)&&!F(e))throw new Error("Illegal theme base!");this._knownThemes.set(e,new P(e,t)),F(e)&&this._knownThemes.forEach((t=>{t.base===e&&t.notifyBaseUpdated()})),this._theme.themeName===e&&this.setTheme(e)}getColorTheme(){return this._theme}setColorMapOverride(e){this._colorMapOverride=e,this._updateThemeOrColorMap()}setTheme(e){let t;t=this._knownThemes.has(e)?this._knownThemes.get(e):this._knownThemes.get(A),this._updateActualTheme(t)}_updateActualTheme(e){e&&this._theme!==e&&(this._theme=e,this._updateThemeOrColorMap())}_onOSSchemeChanged(){if(this._autoDetectHighContrast){const e=k.G.matchMedia("(forced-colors: active)").matches;if(e!==(0,R.Bb)(this._theme.type)){let t;t=(0,R.HD)(this._theme.type)?e?I:N:e?O:A,this._updateActualTheme(this._knownThemes.get(t))}}}setAutoDetectHighContrast(e){this._autoDetectHighContrast=e,this._onOSSchemeChanged()}_updateThemeOrColorMap(){const e=[],t={},i={addRule:i=>{t[i]||(e.push(i),t[i]=!0)}};M.getThemingParticipants().forEach((e=>e(this._theme,i,this._environment)));const s=[];for(const r of D.getColors()){const e=this._theme.getColor(r.id,!0);e&&s.push(`${(0,_.Bbc)(r.id)}: ${e.toString()};`)}i.addRule(`.monaco-editor, .monaco-diff-editor, .monaco-component { ${s.join("\n")} }`);const n=this._colorMapOverride||this._theme.tokenTheme.getColorMap();i.addRule(function(e){const t=[];for(let i=1,s=e.length;i<s;i++){const s=e[i];t[i]=`.mtk${i} { color: ${s}; }`}return t.push(".mtki { font-style: italic; }"),t.push(".mtkb { font-weight: bold; }"),t.push(".mtku { text-decoration: underline; text-underline-position: under; }"),t.push(".mtks { text-decoration: line-through; }"),t.push(".mtks.mtku { text-decoration: underline line-through; text-underline-position: under; }"),t.join("\n")}(n)),this._themeCSS=e.join("\n"),this._updateCSS(),a.dG.setColorMap(n),this._onColorThemeChange.fire(this._theme)}_updateCSS(){this._allCSS=`${this._codiconCSS}\n${this._themeCSS}`,this._styleElements.forEach((e=>e.textContent=this._allCSS))}getFileIconTheme(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1}}getProductIconTheme(){return this._builtInProductIconTheme}}},10602:(e,t,i)=>{e.exports=i(2539)},10617:(e,t,i)=>{"use strict";var s=i(25890),n=i(18447),r=i(64383),o=i(31450),a=i(83069),c=i(36677),l=i(75326),h=i(60002),d=i(39286),u=i(91508);class g{constructor(e=!0){this.selectSubwords=e}provideSelectionRanges(e,t){const i=[];for(const s of t){const t=[];i.push(t),this.selectSubwords&&this._addInWordRanges(t,e,s),this._addWordRanges(t,e,s),this._addWhitespaceLine(t,e,s),t.push({range:e.getFullModelRange()})}return i}_addInWordRanges(e,t,i){const s=t.getWordAtPosition(i);if(!s)return;const{word:n,startColumn:r}=s,o=i.column-r;let a=o,l=o,h=0;for(;a>=0;a--){const e=n.charCodeAt(a);if(a!==o&&(95===e||45===e))break;if((0,u.Lv)(e)&&(0,u.Wv)(h))break;h=e}for(a+=1;l<n.length;l++){const e=n.charCodeAt(l);if((0,u.Wv)(e)&&(0,u.Lv)(h))break;if(95===e||45===e)break;h=e}a<l&&e.push({range:new c.Q(i.lineNumber,r+a,i.lineNumber,r+l)})}_addWordRanges(e,t,i){const s=t.getWordAtPosition(i);s&&e.push({range:new c.Q(i.lineNumber,s.startColumn,i.lineNumber,s.endColumn)})}_addWhitespaceLine(e,t,i){t.getLineLength(i.lineNumber)>0&&0===t.getLineFirstNonWhitespaceColumn(i.lineNumber)&&0===t.getLineLastNonWhitespaceColumn(i.lineNumber)&&e.push({range:new c.Q(i.lineNumber,1,i.lineNumber,t.getLineMaxColumn(i.lineNumber))})}}var p,m=i(78209),f=i(27195),_=i(50091),v=i(56942),C=i(18938),E=i(631),b=i(79400),S=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},y=function(e,t){return function(i,s){t(i,s,e)}};class w{constructor(e,t){this.index=e,this.ranges=t}mov(e){const t=this.index+(e?1:-1);if(t<0||t>=this.ranges.length)return this;const i=new w(t,this.ranges);return i.ranges[t].equalsRange(this.ranges[this.index])?i.mov(e):i}}let R=class{static{p=this}static{this.ID="editor.contrib.smartSelectController"}static get(e){return e.getContribution(p.ID)}constructor(e,t){this._editor=e,this._languageFeaturesService=t,this._ignoreSelection=!1}dispose(){this._selectionListener?.dispose()}async run(e){if(!this._editor.hasModel())return;const t=this._editor.getSelections(),i=this._editor.getModel();if(this._state||await T(this._languageFeaturesService.selectionRangeProvider,i,t.map((e=>e.getPosition())),this._editor.getOption(114),n.XO.None).then((e=>{if(s.EI(e)&&e.length===t.length&&this._editor.hasModel()&&s.aI(this._editor.getSelections(),t,((e,t)=>e.equalsSelection(t)))){for(let i=0;i<e.length;i++)e[i]=e[i].filter((e=>e.containsPosition(t[i].getStartPosition())&&e.containsPosition(t[i].getEndPosition()))),e[i].unshift(t[i]);this._state=e.map((e=>new w(0,e))),this._selectionListener?.dispose(),this._selectionListener=this._editor.onDidChangeCursorPosition((()=>{this._ignoreSelection||(this._selectionListener?.dispose(),this._state=void 0)}))}})),!this._state)return;this._state=this._state.map((t=>t.mov(e)));const r=this._state.map((e=>l.L.fromPositions(e.ranges[e.index].getStartPosition(),e.ranges[e.index].getEndPosition())));this._ignoreSelection=!0;try{this._editor.setSelections(r)}finally{this._ignoreSelection=!1}}};R=p=S([y(1,v.ILanguageFeaturesService)],R);class L extends o.ks{constructor(e,t){super(t),this._forward=e}async run(e,t){const i=R.get(t);i&&await i.run(this._forward)}}_.w.registerCommandAlias("editor.action.smartSelect.grow","editor.action.smartSelect.expand");async function T(e,t,i,n,o){const l=e.all(t).concat(new g(n.selectSubwords));1===l.length&&l.unshift(new d.n);const h=[],u=[];for(const a of l)h.push(Promise.resolve(a.provideSelectionRanges(t,i,o)).then((e=>{if(s.EI(e)&&e.length===i.length)for(let t=0;t<i.length;t++){u[t]||(u[t]=[]);for(const s of e[t])c.Q.isIRange(s.range)&&c.Q.containsPosition(s.range,i[t])&&u[t].push(c.Q.lift(s.range))}}),r.M_));return await Promise.all(h),u.map((e=>{if(0===e.length)return[];e.sort(((e,t)=>a.y.isBefore(e.getStartPosition(),t.getStartPosition())?1:a.y.isBefore(t.getStartPosition(),e.getStartPosition())||a.y.isBefore(e.getEndPosition(),t.getEndPosition())?-1:a.y.isBefore(t.getEndPosition(),e.getEndPosition())?1:0));const i=[];let s;for(const t of e)(!s||c.Q.containsRange(t,s)&&!c.Q.equalsRange(t,s))&&(i.push(t),s=t);if(!n.selectLeadingAndTrailingWhitespace)return i;const r=[i[0]];for(let n=1;n<i.length;n++){const e=i[n-1],s=i[n];if(s.startLineNumber!==e.startLineNumber||s.endLineNumber!==e.endLineNumber){const i=new c.Q(e.startLineNumber,t.getLineFirstNonWhitespaceColumn(e.startLineNumber),e.endLineNumber,t.getLineLastNonWhitespaceColumn(e.endLineNumber));i.containsRange(e)&&!i.equalsRange(e)&&s.containsRange(i)&&!s.equalsRange(i)&&r.push(i);const n=new c.Q(e.startLineNumber,1,e.endLineNumber,t.getLineMaxColumn(e.endLineNumber));n.containsRange(e)&&!n.equalsRange(i)&&s.containsRange(n)&&!s.equalsRange(n)&&r.push(n)}r.push(s)}return r}))}(0,o.HW)(R.ID,R,4),(0,o.Fl)(class extends L{constructor(){super(!0,{id:"editor.action.smartSelect.expand",label:m.kg("smartSelect.expand","Expand Selection"),alias:"Expand Selection",precondition:void 0,kbOpts:{kbExpr:h.R.editorTextFocus,primary:1553,mac:{primary:3345,secondary:[1297]},weight:100},menuOpts:{menuId:f.D8.MenubarSelectionMenu,group:"1_basic",title:m.kg({key:"miSmartSelectGrow",comment:["&& denotes a mnemonic"]},"&&Expand Selection"),order:2}})}}),(0,o.Fl)(class extends L{constructor(){super(!1,{id:"editor.action.smartSelect.shrink",label:m.kg("smartSelect.shrink","Shrink Selection"),alias:"Shrink Selection",precondition:void 0,kbOpts:{kbExpr:h.R.editorTextFocus,primary:1551,mac:{primary:3343,secondary:[1295]},weight:100},menuOpts:{menuId:f.D8.MenubarSelectionMenu,group:"1_basic",title:m.kg({key:"miSmartSelectShrink",comment:["&& denotes a mnemonic"]},"&&Shrink Selection"),order:3}})}}),_.w.registerCommand("_executeSelectionRangeProvider",(async function(e,...t){const[i,s]=t;(0,E.j)(b.r.isUri(i));const r=e.get(v.ILanguageFeaturesService).selectionRangeProvider,o=await e.get(C.ITextModelService).createModelReference(i);try{return T(r,o.object.textEditorModel,s,{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},n.XO.None)}finally{o.dispose()}}))},10691:(e,t,i)=>{"use strict";i.d(t,{GM:()=>_,KL:()=>C,Kl:()=>d,Ob:()=>u,Ou:()=>f,XT:()=>p,Zb:()=>v,Zw:()=>g,bk:()=>m,dv:()=>h,wp:()=>E});var s=i(10350),n=i(25689),r=i(87289),o=i(78209),a=i(66261),c=i(61394);(0,a.x1A)("diffEditor.move.border","#8b8b8b9c",(0,o.kg)("diffEditor.move.border","The border color for text that got moved in the diff editor.")),(0,a.x1A)("diffEditor.moveActive.border","#FFA500",(0,o.kg)("diffEditor.moveActive.border","The active border color for text that got moved in the diff editor.")),(0,a.x1A)("diffEditor.unchangedRegionShadow",{dark:"#000000",light:"#737373BF",hcDark:"#000000",hcLight:"#737373BF"},(0,o.kg)("diffEditor.unchangedRegionShadow","The color of the shadow around unchanged region widgets."));const l=(0,c.pU)("diff-insert",s.W.add,(0,o.kg)("diffInsertIcon","Line decoration for inserts in the diff editor.")),h=(0,c.pU)("diff-remove",s.W.remove,(0,o.kg)("diffRemoveIcon","Line decoration for removals in the diff editor.")),d=r.kI.register({className:"line-insert",description:"line-insert",isWholeLine:!0,linesDecorationsClassName:"insert-sign "+n.L.asClassName(l),marginClassName:"gutter-insert"}),u=r.kI.register({className:"line-delete",description:"line-delete",isWholeLine:!0,linesDecorationsClassName:"delete-sign "+n.L.asClassName(h),marginClassName:"gutter-delete"}),g=r.kI.register({className:"line-insert",description:"line-insert",isWholeLine:!0,marginClassName:"gutter-insert"}),p=r.kI.register({className:"line-delete",description:"line-delete",isWholeLine:!0,marginClassName:"gutter-delete"}),m=r.kI.register({className:"char-insert",description:"char-insert",shouldFillLineOnLineBreak:!0}),f=r.kI.register({className:"char-insert",description:"char-insert",isWholeLine:!0}),_=r.kI.register({className:"char-insert diff-range-empty",description:"char-insert diff-range-empty"}),v=r.kI.register({className:"char-delete",description:"char-delete",shouldFillLineOnLineBreak:!0}),C=r.kI.register({className:"char-delete",description:"char-delete",isWholeLine:!0}),E=r.kI.register({className:"char-delete diff-range-empty",description:"char-delete diff-range-empty"})},10713:()=>{},10800:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.5 8a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0M6.53 5.47a.75.75 0 0 0-1.06 1.06L6.94 8 5.47 9.47a.75.75 0 1 0 1.06 1.06L8 9.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L9.06 8l1.47-1.47a.75.75 0 1 0-1.06-1.06L8 6.94z",clipRule:"evenodd"}))},10846:(e,t,i)=>{"use strict";var s=i(18447),n=i(26690),r=i(42522),o=i(5662),a=i(80301),c=i(36677),l=i(72466),h=i(56942),d=i(51173),u=i(48116),g=i(88415),p=i(96299),m=i(14055),f=i(54770),_=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},v=function(e,t){return function(i,s){t(i,s,e)}};class C{constructor(e,t,i,s,n,r){this.range=e,this.insertText=t,this.filterText=i,this.additionalTextEdits=s,this.command=n,this.completion=r}}let E=class extends o.mp{constructor(e,t,i,s,n,r){super(n.disposable),this.model=e,this.line=t,this.word=i,this.completionModel=s,this._suggestMemoryService=r}canBeReused(e,t,i){return this.model===e&&this.line===t&&this.word.word.length>0&&this.word.startColumn===i.startColumn&&this.word.endColumn<i.endColumn&&0===this.completionModel.getIncompleteProvider().size}get items(){const e=[],{items:t}=this.completionModel,i=this._suggestMemoryService.select(this.model,{lineNumber:this.line,column:this.word.endColumn+this.completionModel.lineContext.characterCountDelta},t),o=r.f.slice(t,i),a=r.f.slice(t,0,i);let l=5;for(const h of r.f.concat(o,a)){if(h.score===n.ne.Default)continue;const t=new c.Q(h.editStart.lineNumber,h.editStart.column,h.editInsertEnd.lineNumber,h.editInsertEnd.column+this.completionModel.lineContext.characterCountDelta),i=h.completion.insertTextRules&&4&h.completion.insertTextRules?{snippet:h.completion.insertText}:h.completion.insertText;e.push(new C(t,i,h.filterTextLow??h.labelLow,h.completion.additionalTextEdits,h.completion.command,h)),l-- >=0&&h.resolve(s.XO.None)}return e}};E=_([v(5,g.GS)],E);let b=class extends o.jG{constructor(e,t,i,s){super(),this._languageFeatureService=e,this._clipboardService=t,this._suggestMemoryService=i,this._editorService=s,this._store.add(e.inlineCompletionsProvider.register("*",this))}async provideInlineCompletions(e,t,i,s){if(i.selectedSuggestionInfo)return;let n;for(const c of this._editorService.listCodeEditors())if(c.getModel()===e){n=c;break}if(!n)return;const r=n.getOption(90);if(u.r3.isAllOff(r))return;e.tokenization.tokenizeIfCheap(t.lineNumber);const o=e.tokenization.getLineTokens(t.lineNumber),a=o.getStandardTokenType(o.findTokenIndexAtOffset(Math.max(t.column-1-1,0)));if("inline"!==u.r3.valueFor(r,a))return;let l,h,g=e.getWordAtPosition(t);if(g?.word||(l=this._getTriggerCharacterInfo(e,t)),!g?.word&&!l)return;if(g||(g=e.getWordUntilPosition(t)),g.endColumn!==t.column)return;const f=e.getValueInRange(new c.Q(t.lineNumber,1,t.lineNumber,t.column));if(!l&&this._lastResult?.canBeReused(e,t.lineNumber,g)){const e=new d.O(f,t.column-this._lastResult.word.endColumn);this._lastResult.completionModel.lineContext=e,this._lastResult.acquire(),h=this._lastResult}else{const i=await(0,u.aR)(this._languageFeatureService.completionProvider,e,t,new u.l1(void 0,p.Y.createSuggestFilter(n).itemKind,l?.providers),l&&{triggerKind:1,triggerCharacter:l.ch},s);let r;i.needsClipboard&&(r=await this._clipboardService.readText());const o=new d.C(i.items,t.column,new d.O(f,0),m.S.None,n.getOption(119),n.getOption(113),{boostFullMatch:!1,firstMatchCanBeWeak:!1},r);h=new E(e,t.lineNumber,g,o,i,this._suggestMemoryService)}return this._lastResult=h,h}handleItemDidShow(e,t){t.completion.resolve(s.XO.None)}freeInlineCompletions(e){e.release()}_getTriggerCharacterInfo(e,t){const i=e.getValueInRange(c.Q.fromPositions({lineNumber:t.lineNumber,column:t.column-1},t)),s=new Set;for(const n of this._languageFeatureService.completionProvider.all(e))n.triggerCharacters?.includes(i)&&s.add(n);if(0!==s.size)return{providers:s,ch:i}}};b=_([v(0,h.ILanguageFeaturesService),v(1,f.h),v(2,g.GS),v(3,a.T)],b),(0,l.x)(b)},10920:(e,t,i)=>{"use strict";i.r(t),i.d(t,{IEditorWorkerService:()=>s});const s=(0,i(63591).u1)("editorWorkerService")},11007:(e,t,i)=>{"use strict";i.d(t,{xE:()=>d,vr:()=>h,h5:()=>u});var s=i(8597);const n=2e4;let r,o,a,c,l;function h(e){r=document.createElement("div"),r.className="monaco-aria-container";const t=()=>{const e=document.createElement("div");return e.className="monaco-alert",e.setAttribute("role","alert"),e.setAttribute("aria-atomic","true"),r.appendChild(e),e};o=t(),a=t();const i=()=>{const e=document.createElement("div");return e.className="monaco-status",e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),r.appendChild(e),e};c=i(),l=i(),e.appendChild(r)}function d(e){r&&(o.textContent!==e?(s.w_(a),g(o,e)):(s.w_(o),g(a,e)))}function u(e){r&&(c.textContent!==e?(s.w_(l),g(c,e)):(s.w_(c),g(l,e)))}function g(e,t){s.w_(e),t.length>n&&(t=t.substr(0,n)),e.textContent=t,e.style.visibility="hidden",e.style.visibility="visible"}},11272:(e,t,i)=>{"use strict";var s,n,r=i(80781),o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,h=(e,t,i,s)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let n of c(t))l.call(e,n)||n===i||o(e,n,{get:()=>t[n],enumerable:!(s=a(t,n))||s.enumerable});return e},d={};h(d,s=r,"default"),n&&h(n,s,"default");var u=class{constructor(e,t,i){this._onDidChange=new d.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(e){this.setOptions(e)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},g={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},p={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},m=new u("css",g,p),f=new u("scss",g,p),_=new u("less",g,p);function v(){return i.e(225).then(i.bind(i,70225))}d.languages.css={cssDefaults:m,lessDefaults:_,scssDefaults:f},d.languages.onLanguage("less",(()=>{v().then((e=>e.setupMode(_)))})),d.languages.onLanguage("scss",(()=>{v().then((e=>e.setupMode(f)))})),d.languages.onLanguage("css",(()=>{v().then((e=>e.setupMode(m)))}))},11799:(e,t,i)=>{"use strict";i.d(t,{E:()=>d});var s=i(8597),n=i(72962),r=i(5646),o=i(42904),a=i(36921),c=i(41234),l=i(5662),h=i(631);i(62469);class d extends l.jG{constructor(e,t={}){let i,h;switch(super(),this._actionRunnerDisposables=this._register(new l.Cm),this.viewItemDisposables=this._register(new l.$w),this.triggerKeyDown=!1,this.focusable=!0,this._onDidBlur=this._register(new c.vl),this.onDidBlur=this._onDidBlur.event,this._onDidCancel=this._register(new c.vl({onWillAddFirstListener:()=>this.cancelHasListener=!0})),this.onDidCancel=this._onDidCancel.event,this.cancelHasListener=!1,this._onDidRun=this._register(new c.vl),this.onDidRun=this._onDidRun.event,this._onWillRun=this._register(new c.vl),this.onWillRun=this._onWillRun.event,this.options=t,this._context=t.context??null,this._orientation=this.options.orientation??0,this._triggerKeys={keyDown:this.options.triggerKeys?.keyDown??!1,keys:this.options.triggerKeys?.keys??[3,10]},this._hoverDelegate=t.hoverDelegate??this._register((0,o.bW)()),this.options.actionRunner?this._actionRunner=this.options.actionRunner:(this._actionRunner=new a.LN,this._actionRunnerDisposables.add(this._actionRunner)),this._actionRunnerDisposables.add(this._actionRunner.onDidRun((e=>this._onDidRun.fire(e)))),this._actionRunnerDisposables.add(this._actionRunner.onWillRun((e=>this._onWillRun.fire(e)))),this.viewItems=[],this.focusedItem=void 0,this.domNode=document.createElement("div"),this.domNode.className="monaco-action-bar",this._orientation){case 0:i=[15],h=[17];break;case 1:i=[16],h=[18],this.domNode.className+=" vertical"}this._register(s.ko(this.domNode,s.Bx.KEY_DOWN,(e=>{const t=new n.Z(e);let s=!0;const o="number"===typeof this.focusedItem?this.viewItems[this.focusedItem]:void 0;i&&(t.equals(i[0])||t.equals(i[1]))?s=this.focusPrevious():h&&(t.equals(h[0])||t.equals(h[1]))?s=this.focusNext():t.equals(9)&&this.cancelHasListener?this._onDidCancel.fire():t.equals(14)?s=this.focusFirst():t.equals(13)?s=this.focusLast():t.equals(2)&&o instanceof r.EH&&o.trapsArrowNavigation?s=this.focusNext(void 0,!0):this.isTriggerKeyEvent(t)?this._triggerKeys.keyDown?this.doTrigger(t):this.triggerKeyDown=!0:s=!1,s&&(t.preventDefault(),t.stopPropagation())}))),this._register(s.ko(this.domNode,s.Bx.KEY_UP,(e=>{const t=new n.Z(e);this.isTriggerKeyEvent(t)?(!this._triggerKeys.keyDown&&this.triggerKeyDown&&(this.triggerKeyDown=!1,this.doTrigger(t)),t.preventDefault(),t.stopPropagation()):(t.equals(2)||t.equals(1026)||t.equals(16)||t.equals(18)||t.equals(15)||t.equals(17))&&this.updateFocusedItem()}))),this.focusTracker=this._register(s.w5(this.domNode)),this._register(this.focusTracker.onDidBlur((()=>{s.bq()!==this.domNode&&s.QX(s.bq(),this.domNode)||(this._onDidBlur.fire(),this.previouslyFocusedItem=this.focusedItem,this.focusedItem=void 0,this.triggerKeyDown=!1)}))),this._register(this.focusTracker.onDidFocus((()=>this.updateFocusedItem()))),this.actionsList=document.createElement("ul"),this.actionsList.className="actions-container",this.options.highlightToggledItems&&this.actionsList.classList.add("highlight-toggled"),this.actionsList.setAttribute("role",this.options.ariaRole||"toolbar"),this.options.ariaLabel&&this.actionsList.setAttribute("aria-label",this.options.ariaLabel),this.domNode.appendChild(this.actionsList),e.appendChild(this.domNode)}refreshRole(){this.length()>=1?this.actionsList.setAttribute("role",this.options.ariaRole||"toolbar"):this.actionsList.setAttribute("role","presentation")}setFocusable(e){if(this.focusable=e,this.focusable){const e=this.viewItems.find((e=>e instanceof r.EH&&e.isEnabled()));e instanceof r.EH&&e.setFocusable(!0)}else this.viewItems.forEach((e=>{e instanceof r.EH&&e.setFocusable(!1)}))}isTriggerKeyEvent(e){let t=!1;return this._triggerKeys.keys.forEach((i=>{t=t||e.equals(i)})),t}updateFocusedItem(){for(let e=0;e<this.actionsList.children.length;e++){const t=this.actionsList.children[e];if(s.QX(s.bq(),t)){this.focusedItem=e,this.viewItems[this.focusedItem]?.showHover?.();break}}}get context(){return this._context}set context(e){this._context=e,this.viewItems.forEach((t=>t.setActionContext(e)))}get actionRunner(){return this._actionRunner}set actionRunner(e){this._actionRunner=e,this._actionRunnerDisposables.clear(),this._actionRunnerDisposables.add(this._actionRunner.onDidRun((e=>this._onDidRun.fire(e)))),this._actionRunnerDisposables.add(this._actionRunner.onWillRun((e=>this._onWillRun.fire(e)))),this.viewItems.forEach((t=>t.actionRunner=e))}getContainer(){return this.domNode}getAction(e){if("number"===typeof e)return this.viewItems[e]?.action;if(s.sb(e)){for(;e.parentElement!==this.actionsList;){if(!e.parentElement)return;e=e.parentElement}for(let t=0;t<this.actionsList.childNodes.length;t++)if(this.actionsList.childNodes[t]===e)return this.viewItems[t].action}}push(e,t={}){const i=Array.isArray(e)?e:[e];let n=h.Et(t.index)?t.index:null;i.forEach((e=>{const i=document.createElement("li");let o;i.className="action-item",i.setAttribute("role","presentation");const a={hoverDelegate:this._hoverDelegate,...t,isTabList:"tablist"===this.options.ariaRole};this.options.actionViewItemProvider&&(o=this.options.actionViewItemProvider(e,a)),o||(o=new r.Z4(this.context,e,a)),this.options.allowContextMenu||this.viewItemDisposables.set(o,s.ko(i,s.Bx.CONTEXT_MENU,(e=>{s.fs.stop(e,!0)}))),o.actionRunner=this._actionRunner,o.setActionContext(this.context),o.render(i),this.focusable&&o instanceof r.EH&&0===this.viewItems.length&&o.setFocusable(!0),null===n||n<0||n>=this.actionsList.children.length?(this.actionsList.appendChild(i),this.viewItems.push(o)):(this.actionsList.insertBefore(i,this.actionsList.children[n]),this.viewItems.splice(n,0,o),n++)})),"number"===typeof this.focusedItem&&this.focus(this.focusedItem),this.refreshRole()}clear(){this.isEmpty()||(this.viewItems=(0,l.AS)(this.viewItems),this.viewItemDisposables.clearAndDisposeAll(),s.w_(this.actionsList),this.refreshRole())}length(){return this.viewItems.length}isEmpty(){return 0===this.viewItems.length}focus(e){let t,i=!1;if(void 0===e?i=!0:"number"===typeof e?t=e:"boolean"===typeof e&&(i=e),i&&"undefined"===typeof this.focusedItem){const e=this.viewItems.findIndex((e=>e.isEnabled()));this.focusedItem=-1===e?void 0:e,this.updateFocus(void 0,void 0,!0)}else void 0!==t&&(this.focusedItem=t),this.updateFocus(void 0,void 0,!0)}focusFirst(){return this.focusedItem=this.length()-1,this.focusNext(!0)}focusLast(){return this.focusedItem=0,this.focusPrevious(!0)}focusNext(e,t){if("undefined"===typeof this.focusedItem)this.focusedItem=this.viewItems.length-1;else if(this.viewItems.length<=1)return!1;const i=this.focusedItem;let s;do{if(!e&&this.options.preventLoopNavigation&&this.focusedItem+1>=this.viewItems.length)return this.focusedItem=i,!1;this.focusedItem=(this.focusedItem+1)%this.viewItems.length,s=this.viewItems[this.focusedItem]}while(this.focusedItem!==i&&(this.options.focusOnlyEnabledItems&&!s.isEnabled()||s.action.id===a.wv.ID));return this.updateFocus(void 0,void 0,t),!0}focusPrevious(e){if("undefined"===typeof this.focusedItem)this.focusedItem=0;else if(this.viewItems.length<=1)return!1;const t=this.focusedItem;let i;do{if(this.focusedItem=this.focusedItem-1,this.focusedItem<0){if(!e&&this.options.preventLoopNavigation)return this.focusedItem=t,!1;this.focusedItem=this.viewItems.length-1}i=this.viewItems[this.focusedItem]}while(this.focusedItem!==t&&(this.options.focusOnlyEnabledItems&&!i.isEnabled()||i.action.id===a.wv.ID));return this.updateFocus(!0),!0}updateFocus(e,t,i=!1){"undefined"===typeof this.focusedItem&&this.actionsList.focus({preventScroll:t}),void 0!==this.previouslyFocusedItem&&this.previouslyFocusedItem!==this.focusedItem&&this.viewItems[this.previouslyFocusedItem]?.blur();const s=void 0!==this.focusedItem?this.viewItems[this.focusedItem]:void 0;if(s){let n=!0;h.Tn(s.focus)||(n=!1),this.options.focusOnlyEnabledItems&&h.Tn(s.isEnabled)&&!s.isEnabled()&&(n=!1),s.action.id===a.wv.ID&&(n=!1),n?(i||this.previouslyFocusedItem!==this.focusedItem)&&(s.focus(e),this.previouslyFocusedItem=this.focusedItem):(this.actionsList.focus({preventScroll:t}),this.previouslyFocusedItem=void 0),n&&s.showHover?.()}}doTrigger(e){if("undefined"===typeof this.focusedItem)return;const t=this.viewItems[this.focusedItem];if(t instanceof r.EH){const i=null===t._context||void 0===t._context?e:t._context;this.run(t._action,i)}}async run(e,t){await this._actionRunner.run(e,t)}dispose(){this._context=void 0,this.viewItems=(0,l.AS)(this.viewItems),this.getContainer().remove(),super.dispose()}}},12143:(e,t,i)=>{"use strict";i.d(t,{w:()=>c});var s=i(90766),n=i(64383),r=i(41234),o=i(5662);class a{constructor(e,t,i){this.value=e,this.isComplete=t,this.hasLoadingMessage=i}}class c extends o.jG{constructor(e,t){super(),this._editor=e,this._computer=t,this._onResult=this._register(new r.vl),this.onResult=this._onResult.event,this._firstWaitScheduler=this._register(new s.uC((()=>this._triggerAsyncComputation()),0)),this._secondWaitScheduler=this._register(new s.uC((()=>this._triggerSyncComputation()),0)),this._loadingMessageScheduler=this._register(new s.uC((()=>this._triggerLoadingMessage()),0)),this._state=0,this._asyncIterable=null,this._asyncIterableDone=!1,this._result=[]}dispose(){this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),super.dispose()}get _hoverTime(){return this._editor.getOption(60).delay}get _firstWaitTime(){return this._hoverTime/2}get _secondWaitTime(){return this._hoverTime-this._firstWaitTime}get _loadingMessageTime(){return 3*this._hoverTime}_setState(e,t=!0){this._state=e,t&&this._fireResult()}_triggerAsyncComputation(){this._setState(2),this._secondWaitScheduler.schedule(this._secondWaitTime),this._computer.computeAsync?(this._asyncIterableDone=!1,this._asyncIterable=(0,s.bI)((e=>this._computer.computeAsync(e))),(async()=>{try{for await(const e of this._asyncIterable)e&&(this._result.push(e),this._fireResult());this._asyncIterableDone=!0,3!==this._state&&4!==this._state||this._setState(0)}catch(e){(0,n.dz)(e)}})()):this._asyncIterableDone=!0}_triggerSyncComputation(){this._computer.computeSync&&(this._result=this._result.concat(this._computer.computeSync())),this._setState(this._asyncIterableDone?0:3)}_triggerLoadingMessage(){3===this._state&&this._setState(4)}_fireResult(){if(1===this._state||2===this._state)return;const e=0===this._state,t=4===this._state;this._onResult.fire(new a(this._result.slice(0),e,t))}start(e){if(0===e)0===this._state&&(this._setState(1),this._firstWaitScheduler.schedule(this._firstWaitTime),this._loadingMessageScheduler.schedule(this._loadingMessageTime));else switch(this._state){case 0:this._triggerAsyncComputation(),this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break;case 2:this._secondWaitScheduler.cancel(),this._triggerSyncComputation()}}cancel(){this._firstWaitScheduler.cancel(),this._secondWaitScheduler.cancel(),this._loadingMessageScheduler.cancel(),this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),this._result=[],this._setState(0,!1)}}},12296:(e,t,i)=>{"use strict";function s(e,t){const i=e.getCount(),s=e.findTokenIndexAtOffset(t),r=e.getLanguageId(s);let o=s;for(;o+1<i&&e.getLanguageId(o+1)===r;)o++;let a=s;for(;a>0&&e.getLanguageId(a-1)===r;)a--;return new n(e,r,a,o+1,e.getStartOffset(a),e.getEndOffset(o))}i.d(t,{BQ:()=>s,Yo:()=>r});class n{constructor(e,t,i,s,n,r){this._scopedLineTokensBrand=void 0,this._actual=e,this.languageId=t,this._firstTokenIndex=i,this._lastTokenIndex=s,this.firstCharOffset=n,this._lastCharOffset=r,this.languageIdCodec=e.languageIdCodec}getLineContent(){return this._actual.getLineContent().substring(this.firstCharOffset,this._lastCharOffset)}getLineLength(){return this._lastCharOffset-this.firstCharOffset}getActualLineContentBefore(e){return this._actual.getLineContent().substring(0,this.firstCharOffset+e)}getTokenCount(){return this._lastTokenIndex-this._firstTokenIndex}findTokenIndexAtOffset(e){return this._actual.findTokenIndexAtOffset(e+this.firstCharOffset)-this._firstTokenIndex}getStandardTokenType(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex)}toIViewLineTokens(){return this._actual.sliceAndInflate(this.firstCharOffset,this._lastCharOffset,0)}}function r(e){return 0!==(3&e)}},12437:(e,t,i)=>{"use strict";i.d(t,{o:()=>h});var s=i(6921),n=i(5662),r=i(34326),o=i(16223),a=i(87119),c=i(47612),l=i(11007);class h{constructor(e){this.options=e,this.rangeHighlightDecorationId=void 0}provide(e,t,i){const s=new n.Cm;e.canAcceptInBackground=!!this.options?.canAcceptInBackground,e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;const r=s.add(new n.HE);return r.value=this.doProvide(e,t,i),s.add(this.onDidActiveTextEditorControlChange((()=>{r.value=void 0,r.value=this.doProvide(e,t)}))),s}doProvide(e,t,i){const o=new n.Cm,a=this.activeTextEditorControl;if(a&&this.canProvideWithTextEditor(a)){const c={editor:a},l=(0,r.jA)(a);if(l){let e=a.saveViewState()??void 0;o.add(l.onDidChangeCursorPosition((()=>{e=a.saveViewState()??void 0}))),c.restoreViewState=()=>{e&&a===this.activeTextEditorControl&&a.restoreViewState(e)},o.add((0,s.P)(t.onCancellationRequested)((()=>c.restoreViewState?.())))}o.add((0,n.s)((()=>this.clearDecorations(a)))),o.add(this.provideWithTextEditor(c,e,t,i))}else o.add(this.provideWithoutTextEditor(e,t));return o}canProvideWithTextEditor(e){return!0}gotoLocation({editor:e},t){e.setSelection(t.range,"code.jump"),e.revealRangeInCenter(t.range,0),t.preserveFocus||e.focus();const i=e.getModel();i&&"getLineContent"in i&&(0,l.h5)(`${i.getLineContent(t.range.startLineNumber)}`)}getModel(e){return(0,r.Np)(e)?e.getModel()?.modified:e.getModel()}addDecorations(e,t){e.changeDecorations((e=>{const i=[];this.rangeHighlightDecorationId&&(i.push(this.rangeHighlightDecorationId.overviewRulerDecorationId),i.push(this.rangeHighlightDecorationId.rangeHighlightId),this.rangeHighlightDecorationId=void 0);const s=[{range:t,options:{description:"quick-access-range-highlight",className:"rangeHighlight",isWholeLine:!0}},{range:t,options:{description:"quick-access-range-highlight-overview",overviewRuler:{color:(0,c.Yf)(a.vp),position:o.A5.Full}}}],[n,r]=e.deltaDecorations(i,s);this.rangeHighlightDecorationId={rangeHighlightId:n,overviewRulerDecorationId:r}}))}clearDecorations(e){const t=this.rangeHighlightDecorationId;t&&(e.changeDecorations((e=>{e.deltaDecorations([t.overviewRulerDecorationId,t.rangeHighlightId],[])})),this.rangeHighlightDecorationId=void 0)}}},12529:(e,t,i)=>{var s=i(43238),n=i(32112);e.exports=function(e,t){return t.length<2?e:s(e,n(t,0,-1))}},13850:(e,t,i)=>{"use strict";i.d(t,{OI:()=>v,Rl:()=>b,Yd:()=>f,ZX:()=>E,eP:()=>u,lk:()=>l,t:()=>y,y0:()=>d,yQ:()=>p});i(41234);var s=i(5662),n=i(49154),r=i(22311),o=i(87958),a=i(94958),c=i(51241);function l(e){return new h(e)}class h extends n.zV{constructor(e){super(),this.value=e}get debugName(){return this.toString()}get(){return this.value}addObserver(e){}removeObserver(e){}toString(){return`Const: ${this.value}`}}function d(...e){let t,i,s;return 3===e.length?[t,i,s]=e:[i,s]=e,new g(new r.nA(t,void 0,s),i,s,(()=>g.globalTransaction),c.nx)}function u(e,t,i){return new g(new r.nA(e.owner,e.debugName,e.debugReferenceFn??i),t,i,(()=>g.globalTransaction),e.equalsFn??c.nx)}class g extends n.ZK{constructor(e,t,i,s,r){super(),this._debugNameData=e,this.event=t,this._getValue=i,this._getTransaction=s,this._equalityComparator=r,this.hasValue=!1,this.handleEvent=e=>{const t=this._getValue(e),i=this.value,s=!this.hasValue||!this._equalityComparator(i,t);let r=!1;s&&(this.value=t,this.hasValue&&(r=!0,(0,n.PO)(this._getTransaction(),(e=>{(0,a.tZ)()?.handleFromEventObservableTriggered(this,{oldValue:i,newValue:t,change:void 0,didChange:s,hadValue:this.hasValue});for(const t of this.observers)e.updateObserver(t,this),t.handleChange(this,void 0)}),(()=>{const e=this.getDebugName();return"Event fired"+(e?`: ${e}`:"")}))),this.hasValue=!0),r||(0,a.tZ)()?.handleFromEventObservableTriggered(this,{oldValue:i,newValue:t,change:void 0,didChange:s,hadValue:this.hasValue})}}getDebugName(){return this._debugNameData.getDebugName(this)}get debugName(){const e=this.getDebugName();return"From Event"+(e?`: ${e}`:"")}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0,this.hasValue=!1,this.value=void 0}get(){if(this.subscription)return this.hasValue||this.handleEvent(void 0),this.value;return this._getValue(void 0)}}function p(e,t){return new m(e,t)}!function(e){e.Observer=g,e.batchEventsGlobally=function(e,t){let i=!1;void 0===g.globalTransaction&&(g.globalTransaction=e,i=!0);try{t()}finally{i&&(g.globalTransaction=void 0)}}}(d||(d={}));class m extends n.ZK{constructor(e,t){super(),this.debugName=e,this.event=t,this.handleEvent=()=>{(0,n.Rn)((e=>{for(const t of this.observers)e.updateObserver(t,this),t.handleChange(this,void 0)}),(()=>this.debugName))}}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0}get(){}}function f(e){return"string"===typeof e?new _(e):new _(void 0,e)}class _ extends n.ZK{get debugName(){return new r.nA(this._owner,this._debugName,void 0).getDebugName(this)??"Observable Signal"}toString(){return this.debugName}constructor(e,t){super(),this._debugName=e,this._owner=t}trigger(e,t){if(e)for(const i of this.observers)e.updateObserver(i,this),i.handleChange(this,t);else(0,n.Rn)((e=>{this.trigger(e,t)}),(()=>`Trigger signal ${this.debugName}`))}get(){}}function v(e,t){const i=new C(!0,t);return e.addObserver(i),t?t(e.get()):e.reportChanges(),(0,s.s)((()=>{e.removeObserver(i)}))}(0,n.FB)((function(e){const t=new C(!1,void 0);return e.addObserver(t),(0,s.s)((()=>{e.removeObserver(t)}))})),(0,n.Bm)(v);class C{constructor(e,t){this._forceRecompute=e,this._handleValue=t,this._counter=0}beginUpdate(e){this._counter++}endUpdate(e){this._counter--,0===this._counter&&this._forceRecompute&&(this._handleValue?this._handleValue(e.get()):e.reportChanges())}handlePossibleChange(e){}handleChange(e,t){}}function E(e,t){let i;return(0,o.C)({owner:e,debugReferenceFn:t},(e=>(i=t(e,i),i)))}function b(e,t,i,s){let n=new S(i,s);return(0,o.C)({debugReferenceFn:i,owner:e,onLastObserverRemoved:()=>{n.dispose(),n=new S(i)}},(e=>(n.setItems(t.read(e)),n.getItems())))}class S{constructor(e,t){this._map=e,this._keySelector=t,this._cache=new Map,this._items=[]}dispose(){this._cache.forEach((e=>e.store.dispose())),this._cache.clear()}setItems(e){const t=[],i=new Set(this._cache.keys());for(const n of e){const e=this._keySelector?this._keySelector(n):n;let r=this._cache.get(e);if(r)i.delete(e);else{const t=new s.Cm;r={out:this._map(n,t),store:t},this._cache.set(e,r)}t.push(r.out)}for(const s of i){this._cache.get(s).store.dispose(),this._cache.delete(s)}this._items=t}getItems(){return this._items}}function y(e,t){return E(e,((e,i)=>i??t(e)))}},13864:(e,t,i)=>{"use strict";i.d(t,{P:()=>C,v:()=>E});var s=i(16223),n=i(87289),r=i(62083),o=i(78209),a=i(66261),c=i(47612);const l=(0,a.x1A)("editor.wordHighlightBackground",{dark:"#575757B8",light:"#57575740",hcDark:null,hcLight:null},o.kg("wordHighlight","Background color of a symbol during read-access, like reading a variable. The color must not be opaque so as not to hide underlying decorations."),!0);(0,a.x1A)("editor.wordHighlightStrongBackground",{dark:"#004972B8",light:"#0e639c40",hcDark:null,hcLight:null},o.kg("wordHighlightStrong","Background color of a symbol during write-access, like writing to a variable. The color must not be opaque so as not to hide underlying decorations."),!0),(0,a.x1A)("editor.wordHighlightTextBackground",l,o.kg("wordHighlightText","Background color of a textual occurrence for a symbol. The color must not be opaque so as not to hide underlying decorations."),!0);const h=(0,a.x1A)("editor.wordHighlightBorder",{light:null,dark:null,hcDark:a.buw,hcLight:a.buw},o.kg("wordHighlightBorder","Border color of a symbol during read-access, like reading a variable."));(0,a.x1A)("editor.wordHighlightStrongBorder",{light:null,dark:null,hcDark:a.buw,hcLight:a.buw},o.kg("wordHighlightStrongBorder","Border color of a symbol during write-access, like writing to a variable.")),(0,a.x1A)("editor.wordHighlightTextBorder",h,o.kg("wordHighlightTextBorder","Border color of a textual occurrence for a symbol."));const d=(0,a.x1A)("editorOverviewRuler.wordHighlightForeground","#A0A0A0CC",o.kg("overviewRulerWordHighlightForeground","Overview ruler marker color for symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),u=(0,a.x1A)("editorOverviewRuler.wordHighlightStrongForeground","#C0A0C0CC",o.kg("overviewRulerWordHighlightStrongForeground","Overview ruler marker color for write-access symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),g=(0,a.x1A)("editorOverviewRuler.wordHighlightTextForeground",a.z5H,o.kg("overviewRulerWordHighlightTextForeground","Overview ruler marker color of a textual occurrence for a symbol. The color must not be opaque so as not to hide underlying decorations."),!0),p=n.kI.register({description:"word-highlight-strong",stickiness:1,className:"wordHighlightStrong",overviewRuler:{color:(0,c.Yf)(u),position:s.A5.Center},minimap:{color:(0,c.Yf)(a.Xp1),position:1}}),m=n.kI.register({description:"word-highlight-text",stickiness:1,className:"wordHighlightText",overviewRuler:{color:(0,c.Yf)(g),position:s.A5.Center},minimap:{color:(0,c.Yf)(a.Xp1),position:1}}),f=n.kI.register({description:"selection-highlight-overview",stickiness:1,className:"selectionHighlight",overviewRuler:{color:(0,c.Yf)(a.z5H),position:s.A5.Center},minimap:{color:(0,c.Yf)(a.Xp1),position:1}}),_=n.kI.register({description:"selection-highlight",stickiness:1,className:"selectionHighlight"}),v=n.kI.register({description:"word-highlight",stickiness:1,className:"wordHighlight",overviewRuler:{color:(0,c.Yf)(d),position:s.A5.Center},minimap:{color:(0,c.Yf)(a.Xp1),position:1}});function C(e){return e===r.Kb.Write?p:e===r.Kb.Text?m:v}function E(e){return e?_:f}(0,c.zy)(((e,t)=>{const i=e.getColor(a.QwA);i&&t.addRule(`.monaco-editor .selectionHighlight { background-color: ${i.transparent(.5)}; }`)}))},14055:(e,t,i)=>{"use strict";i.d(t,{S:()=>o});var s=i(25890),n=i(36677),r=i(39286);class o{static{this.None=new class extends o{distance(){return 0}}}static async create(e,t){if(!t.getOption(119).localityBonus)return o.None;if(!t.hasModel())return o.None;const i=t.getModel(),a=t.getPosition();if(!e.canComputeWordRanges(i.uri))return o.None;const[c]=await(new r.n).provideSelectionRanges(i,[a]);if(0===c.length)return o.None;const l=await e.computeWordRanges(i.uri,c[0].range);if(!l)return o.None;const h=i.getWordUntilPosition(a);return delete l[h.word],new class extends o{distance(e,i){if(!a.equals(t.getPosition()))return 0;if(17===i.kind)return 2<<20;const r="string"===typeof i.label?i.label:i.label.label,o=l[r];if((0,s.Ct)(o))return 2<<20;const h=(0,s.El)(o,n.Q.fromPositions(e),n.Q.compareRangesUsingStarts),d=h>=0?o[h]:o[Math.max(0,~h-1)];let u=c.length;for(const t of c){if(!n.Q.containsRange(t.range,d))break;u-=1}return u}}}}},14614:(e,t,i)=>{"use strict";var s=i(90766),n=i(18447),r=i(64383),o=i(16980),a=i(5662),c=i(36456),l=i(98067),h=i(89403),d=i(78381),u=i(79400),g=i(31450),p=i(87289),m=i(32500),f=i(56942),_=i(37927),v=i(25890),C=i(631),E=i(36677),b=i(23750),S=i(50091);class y{constructor(e,t){this._link=e,this._provider=t}toJSON(){return{range:this.range,url:this.url,tooltip:this.tooltip}}get range(){return this._link.range}get url(){return this._link.url}get tooltip(){return this._link.tooltip}async resolve(e){return this._link.url?this._link.url:"function"===typeof this._provider.resolveLink?Promise.resolve(this._provider.resolveLink(this._link,e)).then((t=>(this._link=t||this._link,this._link.url?this.resolve(e):Promise.reject(new Error("missing"))))):Promise.reject(new Error("missing"))}}class w{constructor(e){this._disposables=new a.Cm;let t=[];for(const[i,s]of e){const e=i.links.map((e=>new y(e,s)));t=w._union(t,e),(0,a.Xm)(i)&&this._disposables.add(i)}this.links=t}dispose(){this._disposables.dispose(),this.links.length=0}static _union(e,t){const i=[];let s,n,r,o;for(s=0,r=0,n=e.length,o=t.length;s<n&&r<o;){const n=e[s],o=t[r];if(E.Q.areIntersectingOrTouching(n.range,o.range)){s++;continue}E.Q.compareRangesUsingStarts(n.range,o.range)<0?(i.push(n),s++):(i.push(o),r++)}for(;s<n;s++)i.push(e[s]);for(;r<o;r++)i.push(t[r]);return i}}function R(e,t,i){const s=[],n=e.ordered(t).reverse().map(((e,n)=>Promise.resolve(e.provideLinks(t,i)).then((t=>{t&&(s[n]=[t,e])}),r.M_)));return Promise.all(n).then((()=>{const e=new w((0,v.Yc)(s));return i.isCancellationRequested?(e.dispose(),new w([])):e}))}S.w.registerCommand("_executeLinkProvider",(async(e,...t)=>{let[i,s]=t;(0,C.j)(i instanceof u.r),"number"!==typeof s&&(s=0);const{linkProvider:r}=e.get(f.ILanguageFeaturesService),o=e.get(b.IModelService).getModel(i);if(!o)return[];const a=await R(r,o,n.XO.None);if(!a)return[];for(let l=0;l<Math.min(s,a.links.length);l++)await a.links[l].resolve(n.XO.None);const c=a.links.slice(0);return a.dispose(),c}));var L,T=i(78209),x=i(58591),k=i(49099),A=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},N=function(e,t){return function(i,s){t(i,s,e)}};let I=class extends a.jG{static{L=this}static{this.ID="editor.linkDetector"}static get(e){return e.getContribution(L.ID)}constructor(e,t,i,n,r){super(),this.editor=e,this.openerService=t,this.notificationService=i,this.languageFeaturesService=n,this.providers=this.languageFeaturesService.linkProvider,this.debounceInformation=r.for(this.providers,"Links",{min:1e3,max:4e3}),this.computeLinks=this._register(new s.uC((()=>this.computeLinksNow()),1e3)),this.computePromise=null,this.activeLinksList=null,this.currentOccurrences={},this.activeLinkDecorationId=null;const o=this._register(new _.gi(e));this._register(o.onMouseMoveOrRelevantKeyDown((([e,t])=>{this._onEditorMouseMove(e,t)}))),this._register(o.onExecute((e=>{this.onEditorMouseUp(e)}))),this._register(o.onCancel((e=>{this.cleanUpActiveLinkDecoration()}))),this._register(e.onDidChangeConfiguration((e=>{e.hasChanged(71)&&(this.updateDecorations([]),this.stop(),this.computeLinks.schedule(0))}))),this._register(e.onDidChangeModelContent((e=>{this.editor.hasModel()&&this.computeLinks.schedule(this.debounceInformation.get(this.editor.getModel()))}))),this._register(e.onDidChangeModel((e=>{this.currentOccurrences={},this.activeLinkDecorationId=null,this.stop(),this.computeLinks.schedule(0)}))),this._register(e.onDidChangeModelLanguage((e=>{this.stop(),this.computeLinks.schedule(0)}))),this._register(this.providers.onDidChange((e=>{this.stop(),this.computeLinks.schedule(0)}))),this.computeLinks.schedule(0)}async computeLinksNow(){if(!this.editor.hasModel()||!this.editor.getOption(71))return;const e=this.editor.getModel();if(!e.isTooLargeForSyncing()&&this.providers.has(e)){this.activeLinksList&&(this.activeLinksList.dispose(),this.activeLinksList=null),this.computePromise=(0,s.SS)((t=>R(this.providers,e,t)));try{const t=new d.W(!1);if(this.activeLinksList=await this.computePromise,this.debounceInformation.update(e,t.elapsed()),e.isDisposed())return;this.updateDecorations(this.activeLinksList.links)}catch(t){(0,r.dz)(t)}finally{this.computePromise=null}}}updateDecorations(e){const t="altKey"===this.editor.getOption(78),i=[],s=Object.keys(this.currentOccurrences);for(const r of s){const e=this.currentOccurrences[r];i.push(e.decorationId)}const n=[];if(e)for(const r of e)n.push(M.decoration(r,t));this.editor.changeDecorations((t=>{const s=t.deltaDecorations(i,n);this.currentOccurrences={},this.activeLinkDecorationId=null;for(let i=0,n=s.length;i<n;i++){const t=new M(e[i],s[i]);this.currentOccurrences[t.decorationId]=t}}))}_onEditorMouseMove(e,t){const i="altKey"===this.editor.getOption(78);if(this.isEnabled(e,t)){this.cleanUpActiveLinkDecoration();const t=this.getLinkOccurrence(e.target.position);t&&this.editor.changeDecorations((e=>{t.activate(e,i),this.activeLinkDecorationId=t.decorationId}))}else this.cleanUpActiveLinkDecoration()}cleanUpActiveLinkDecoration(){const e="altKey"===this.editor.getOption(78);if(this.activeLinkDecorationId){const t=this.currentOccurrences[this.activeLinkDecorationId];t&&this.editor.changeDecorations((i=>{t.deactivate(i,e)})),this.activeLinkDecorationId=null}}onEditorMouseUp(e){if(!this.isEnabled(e))return;const t=this.getLinkOccurrence(e.target.position);t&&this.openLinkOccurrence(t,e.hasSideBySideModifier,!0)}openLinkOccurrence(e,t,i=!1){if(!this.openerService)return;const{link:s}=e;s.resolve(n.XO.None).then((e=>{if("string"===typeof e&&this.editor.hasModel()){const t=this.editor.getModel().uri;if(t.scheme===c.ny.file&&e.startsWith(`${c.ny.file}:`)){const i=u.r.parse(e);if(i.scheme===c.ny.file){const s=h.su(i);let n=null;s.startsWith("/./")||s.startsWith("\\.\\")?n=`.${s.substr(1)}`:(s.startsWith("//./")||s.startsWith("\\\\.\\"))&&(n=`.${s.substr(2)}`),n&&(e=h.uJ(t,n))}}}return this.openerService.open(e,{openToSide:t,fromUserGesture:i,allowContributedOpeners:!0,allowCommands:!0,fromWorkspace:!0})}),(e=>{const t=e instanceof Error?e.message:e;"invalid"===t?this.notificationService.warn(T.kg("invalid.url","Failed to open this link because it is not well-formed: {0}",s.url.toString())):"missing"===t?this.notificationService.warn(T.kg("missing.url","Failed to open this link because its target is missing.")):(0,r.dz)(e)}))}getLinkOccurrence(e){if(!this.editor.hasModel()||!e)return null;const t=this.editor.getModel().getDecorationsInRange({startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:e.lineNumber,endColumn:e.column},0,!0);for(const i of t){const e=this.currentOccurrences[i.id];if(e)return e}return null}isEnabled(e,t){return Boolean(6===e.target.type&&(e.hasTriggerModifier||t&&t.keyCodeIsTriggerKey))}stop(){this.computeLinks.cancel(),this.activeLinksList&&(this.activeLinksList?.dispose(),this.activeLinksList=null),this.computePromise&&(this.computePromise.cancel(),this.computePromise=null)}dispose(){super.dispose(),this.stop()}};I=L=A([N(1,k.C),N(2,x.Ot),N(3,f.ILanguageFeaturesService),N(4,m.ILanguageFeatureDebounceService)],I);const O=p.kI.register({description:"detected-link",stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link"}),D=p.kI.register({description:"detected-link-active",stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link-active"});class M{static decoration(e,t){return{range:e.range,options:M._getOptions(e,t,!1)}}static _getOptions(e,t,i){const s={...i?D:O};return s.hoverMessage=function(e,t){const i=e.url&&/^command:/i.test(e.url.toString()),s=e.tooltip?e.tooltip:i?T.kg("links.navigate.executeCmd","Execute command"):T.kg("links.navigate.follow","Follow link"),n=t?l.zx?T.kg("links.navigate.kb.meta.mac","cmd + click"):T.kg("links.navigate.kb.meta","ctrl + click"):l.zx?T.kg("links.navigate.kb.alt.mac","option + click"):T.kg("links.navigate.kb.alt","alt + click");if(e.url){let t="";if(/^command:/i.test(e.url.toString())){const i=e.url.toString().match(/^command:([^?#]+)/);if(i){const e=i[1];t=T.kg("tooltip.explanation","Execute command {0}",e)}}return new o.Bc("",!0).appendLink(e.url.toString(!0).replace(/ /g,"%20"),s,t).appendMarkdown(` (${n})`)}return(new o.Bc).appendText(`${s} (${n})`)}(e,t),s}constructor(e,t){this.link=e,this.decorationId=t}activate(e,t){e.changeDecorationOptions(this.decorationId,M._getOptions(this.link,t,!0))}deactivate(e,t){e.changeDecorationOptions(this.decorationId,M._getOptions(this.link,t,!1))}}class P extends g.ks{constructor(){super({id:"editor.action.openLink",label:T.kg("label","Open Link"),alias:"Open Link",precondition:void 0})}run(e,t){const i=I.get(t);if(!i)return;if(!t.hasModel())return;const s=t.getSelections();for(const n of s){const e=i.getLinkOccurrence(n.getEndPosition());e&&i.openLinkOccurrence(e,!1)}}}(0,g.HW)(I.ID,I,1),(0,g.Fl)(P)},14718:(e,t,i)=>{"use strict";i.d(t,{N:()=>o,v:()=>r});var s=i(84040);const n=[];function r(e,t,i){t instanceof s.d||(t=new s.d(t,[],Boolean(i))),n.push([e,t])}function o(){return n}},14720:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>i.e(7574).then(i.bind(i,67574))})},14853:e=>{e.exports=function(){function e(e){return String(e.$value)}return e.isScalar=!0,e}},15040:(e,t,i)=>{"use strict";var s=i(31450),n=i(28291),r=i(60002),o=i(78209);class a extends s.ks{constructor(){super({id:"expandLineSelection",label:o.kg("expandLineSelection","Expand Line Selection"),alias:"Expand Line Selection",precondition:void 0,kbOpts:{weight:0,kbExpr:r.R.textInputFocus,primary:2090}})}run(e,t,i){if(i=i||{},!t.hasModel())return;const s=t._getViewModel();s.model.pushStackElement(),s.setCursorStates(i.source,3,n.c.expandLineSelection(s,s.getCursorStates())),s.revealAllCursors(i.source,!0)}}(0,s.Fl)(a)},15092:(e,t,i)=>{"use strict";i.d(t,{iP:()=>a,iu:()=>n,q2:()=>o,tA:()=>r,ui:()=>c});var s=i(75326);class n{constructor(e,t,i=!1){this._range=e,this._text=t,this.insertsAutoWhitespace=i}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return s.L.fromPositions(i.getEndPosition())}}class r{constructor(e,t){this._range=e,this._text=t}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return s.L.fromRange(i,0)}}class o{constructor(e,t,i=!1){this._range=e,this._text=t,this.insertsAutoWhitespace=i}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return s.L.fromPositions(i.getStartPosition())}}class a{constructor(e,t,i,s,n=!1){this._range=e,this._text=t,this._columnDeltaOffset=s,this._lineNumberDeltaOffset=i,this.insertsAutoWhitespace=n}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return s.L.fromPositions(i.getEndPosition().delta(this._lineNumberDeltaOffset,this._columnDeltaOffset))}}class c{constructor(e,t,i,s=!1){this._range=e,this._text=t,this._initialSelection=i,this._forceMoveMarkers=s,this._selectionId=null}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text,this._forceMoveMarkers),this._selectionId=t.trackSelection(this._initialSelection)}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}},15482:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>i.e(5988).then(i.bind(i,65988))})},15600:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>i.e(2518).then(i.bind(i,52518))})},16122:(e,t,i)=>{"use strict";i.d(t,{u:()=>l});var s=i(23971);const n=(e,t,i)=>{if(e&&"reportValidity"in e){const n=(0,s.Jt)(i,t);e.setCustomValidity(n&&n.message||""),e.reportValidity()}},r=(e,t)=>{for(const i in t.fields){const s=t.fields[i];s&&s.ref&&"reportValidity"in s.ref?n(s.ref,i,e):s.refs&&s.refs.forEach((t=>n(t,i,e)))}},o=(e,t)=>{t.shouldUseNativeValidation&&r(e,t);const i={};for(const n in e){const r=(0,s.Jt)(t.fields,n),o=Object.assign(e[n]||{},{ref:r&&r.ref});if(a(t.names||Object.keys(e),n)){const e=Object.assign({},(0,s.Jt)(i,n));(0,s.hZ)(e,"root",o),(0,s.hZ)(i,n,e)}else(0,s.hZ)(i,n,o)}return i},a=(e,t)=>e.some((e=>e.startsWith(t+".")));var c=function(e,t){for(var i={};e.length;){var n=e[0],r=n.code,o=n.message,a=n.path.join(".");if(!i[a])if("unionErrors"in n){var c=n.unionErrors[0].errors[0];i[a]={message:c.message,type:c.code}}else i[a]={message:o,type:r};if("unionErrors"in n&&n.unionErrors.forEach((function(t){return t.errors.forEach((function(t){return e.push(t)}))})),t){var l=i[a].types,h=l&&l[n.code];i[a]=(0,s.Gb)(a,t,i,r,h?[].concat(h,n.message):n.message)}e.shift()}return i},l=function(e,t,i){return void 0===i&&(i={}),function(s,n,a){try{return Promise.resolve(function(n,o){try{var c=Promise.resolve(e["sync"===i.mode?"parse":"parseAsync"](s,t)).then((function(e){return a.shouldUseNativeValidation&&r({},a),{errors:{},values:i.raw?s:e}}))}catch(l){return o(l)}return c&&c.then?c.then(void 0,o):c}(0,(function(e){if(function(e){return Array.isArray(null==e?void 0:e.errors)}(e))return{values:{},errors:o(c(e.errors,!a.shouldUseNativeValidation&&"all"===a.criteriaMode),a)};throw e})))}catch(l){return Promise.reject(l)}}}},16223:(e,t,i)=>{"use strict";i.d(t,{A5:()=>s,Dg:()=>c,F4:()=>u,L5:()=>d,VW:()=>r,Wo:()=>h,X2:()=>a,ZS:()=>n,nk:()=>l,vd:()=>g});var s,n,r,o=i(10146);!function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(s||(s={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(n||(n={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(r||(r={}));class a{get originalIndentSize(){return this._indentSizeIsTabSize?"tabSize":this.indentSize}constructor(e){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,0|e.tabSize),"tabSize"===e.indentSize?(this.indentSize=this.tabSize,this._indentSizeIsTabSize=!0):(this.indentSize=Math.max(1,0|e.indentSize),this._indentSizeIsTabSize=!1),this.insertSpaces=Boolean(e.insertSpaces),this.defaultEOL=0|e.defaultEOL,this.trimAutoWhitespace=Boolean(e.trimAutoWhitespace),this.bracketPairColorizationOptions=e.bracketPairColorizationOptions}equals(e){return this.tabSize===e.tabSize&&this._indentSizeIsTabSize===e._indentSizeIsTabSize&&this.indentSize===e.indentSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace&&(0,o.aI)(this.bracketPairColorizationOptions,e.bracketPairColorizationOptions)}createChangeEvent(e){return{tabSize:this.tabSize!==e.tabSize,indentSize:this.indentSize!==e.indentSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}}}class c{constructor(e,t){this._findMatchBrand=void 0,this.range=e,this.matches=t}}function l(e){return e&&"function"===typeof e.read}class h{constructor(e,t,i,s,n,r){this.identifier=e,this.range=t,this.text=i,this.forceMoveMarkers=s,this.isAutoWhitespaceEdit=n,this._isTracked=r}}class d{constructor(e,t,i){this.regex=e,this.wordSeparators=t,this.simpleSearch=i}}class u{constructor(e,t,i){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=i}}function g(e){return!e.isTooLargeForSyncing()&&!e.isForSimpleWidget}},16363:(e,t,i)=>{"use strict";i.r(t),i.d(t,{DefaultModelSHA1Computer:()=>R,ModelService:()=>w});var s,n=i(41234),r=i(5662),o=i(98067),a=i(87289),c=i(24329),l=i(83941),h=i(90360),d=i(84001),u=i(47579),g=i(85600),p=i(26656),m=i(36456),f=i(10146),_=i(63591),v=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},C=function(e,t){return function(i,s){t(i,s,e)}};function E(e){return e.toString()}class b{constructor(e,t,i){this.model=e,this._modelEventListeners=new r.Cm,this.model=e,this._modelEventListeners.add(e.onWillDispose((()=>t(e)))),this._modelEventListeners.add(e.onDidChangeLanguage((t=>i(e,t))))}dispose(){this._modelEventListeners.dispose()}}const S=o.j9||o.zx?1:2;class y{constructor(e,t,i,s,n,r,o,a){this.uri=e,this.initialUndoRedoSnapshot=t,this.time=i,this.sharesUndoRedoStack=s,this.heapSize=n,this.sha1=r,this.versionId=o,this.alternativeVersionId=a}}let w=class extends r.jG{static{s=this}static{this.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK=20971520}constructor(e,t,i,s){super(),this._configurationService=e,this._resourcePropertiesService=t,this._undoRedoService=i,this._instantiationService=s,this._onModelAdded=this._register(new n.vl),this.onModelAdded=this._onModelAdded.event,this._onModelRemoved=this._register(new n.vl),this.onModelRemoved=this._onModelRemoved.event,this._onModelModeChanged=this._register(new n.vl),this.onModelLanguageChanged=this._onModelModeChanged.event,this._modelCreationOptionsByLanguageAndResource=Object.create(null),this._models={},this._disposedModels=new Map,this._disposedModelsHeapSize=0,this._register(this._configurationService.onDidChangeConfiguration((e=>this._updateModelOptions(e)))),this._updateModelOptions(void 0)}static _readModelOptions(e,t){let i=c.R.tabSize;if(e.editor&&"undefined"!==typeof e.editor.tabSize){const t=parseInt(e.editor.tabSize,10);isNaN(t)||(i=t),i<1&&(i=1)}let s="tabSize";if(e.editor&&"undefined"!==typeof e.editor.indentSize&&"tabSize"!==e.editor.indentSize){const t=parseInt(e.editor.indentSize,10);isNaN(t)||(s=Math.max(t,1))}let n=c.R.insertSpaces;e.editor&&"undefined"!==typeof e.editor.insertSpaces&&(n="false"!==e.editor.insertSpaces&&Boolean(e.editor.insertSpaces));let r=S;const o=e.eol;"\r\n"===o?r=2:"\n"===o&&(r=1);let a=c.R.trimAutoWhitespace;e.editor&&"undefined"!==typeof e.editor.trimAutoWhitespace&&(a="false"!==e.editor.trimAutoWhitespace&&Boolean(e.editor.trimAutoWhitespace));let l=c.R.detectIndentation;e.editor&&"undefined"!==typeof e.editor.detectIndentation&&(l="false"!==e.editor.detectIndentation&&Boolean(e.editor.detectIndentation));let h=c.R.largeFileOptimizations;e.editor&&"undefined"!==typeof e.editor.largeFileOptimizations&&(h="false"!==e.editor.largeFileOptimizations&&Boolean(e.editor.largeFileOptimizations));let d=c.R.bracketPairColorizationOptions;return e.editor?.bracketPairColorization&&"object"===typeof e.editor.bracketPairColorization&&(d={enabled:!!e.editor.bracketPairColorization.enabled,independentColorPoolPerBracketType:!!e.editor.bracketPairColorization.independentColorPoolPerBracketType}),{isForSimpleWidget:t,tabSize:i,indentSize:s,insertSpaces:n,detectIndentation:l,defaultEOL:r,trimAutoWhitespace:a,largeFileOptimizations:h,bracketPairColorizationOptions:d}}_getEOL(e,t){if(e)return this._resourcePropertiesService.getEOL(e,t);const i=this._configurationService.getValue("files.eol",{overrideIdentifier:t});return i&&"string"===typeof i&&"auto"!==i?i:3===o.OS||2===o.OS?"\n":"\r\n"}_shouldRestoreUndoStack(){const e=this._configurationService.getValue("files.restoreUndoStack");return"boolean"!==typeof e||e}getCreationOptions(e,t,i){const n="string"===typeof e?e:e.languageId;let r=this._modelCreationOptionsByLanguageAndResource[n+t];if(!r){const e=this._configurationService.getValue("editor",{overrideIdentifier:n,resource:t}),o=this._getEOL(t,n);r=s._readModelOptions({editor:e,eol:o},i),this._modelCreationOptionsByLanguageAndResource[n+t]=r}return r}_updateModelOptions(e){const t=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);const i=Object.keys(this._models);for(let n=0,r=i.length;n<r;n++){const r=i[n],o=this._models[r],a=o.model.getLanguageId(),c=o.model.uri;if(e&&!e.affectsConfiguration("editor",{overrideIdentifier:a,resource:c})&&!e.affectsConfiguration("files.eol",{overrideIdentifier:a,resource:c}))continue;const l=t[a+c],h=this.getCreationOptions(a,c,o.model.isForSimpleWidget);s._setModelOptionsForModel(o.model,h,l)}}static _setModelOptionsForModel(e,t,i){i&&i.defaultEOL!==t.defaultEOL&&1===e.getLineCount()&&e.setEOL(1===t.defaultEOL?0:1),i&&i.detectIndentation===t.detectIndentation&&i.insertSpaces===t.insertSpaces&&i.tabSize===t.tabSize&&i.indentSize===t.indentSize&&i.trimAutoWhitespace===t.trimAutoWhitespace&&(0,f.aI)(i.bracketPairColorizationOptions,t.bracketPairColorizationOptions)||(t.detectIndentation?(e.detectIndentation(t.insertSpaces,t.tabSize),e.updateOptions({trimAutoWhitespace:t.trimAutoWhitespace,bracketColorizationOptions:t.bracketPairColorizationOptions})):e.updateOptions({insertSpaces:t.insertSpaces,tabSize:t.tabSize,indentSize:t.indentSize,trimAutoWhitespace:t.trimAutoWhitespace,bracketColorizationOptions:t.bracketPairColorizationOptions}))}_insertDisposedModel(e){this._disposedModels.set(E(e.uri),e),this._disposedModelsHeapSize+=e.heapSize}_removeDisposedModel(e){const t=this._disposedModels.get(E(e));return t&&(this._disposedModelsHeapSize-=t.heapSize),this._disposedModels.delete(E(e)),t}_ensureDisposedModelsHeapSize(e){if(this._disposedModelsHeapSize>e){const t=[];for(this._disposedModels.forEach((e=>{e.sharesUndoRedoStack||t.push(e)})),t.sort(((e,t)=>e.time-t.time));t.length>0&&this._disposedModelsHeapSize>e;){const e=t.shift();this._removeDisposedModel(e.uri),null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}}}_createModelData(e,t,i,s){const n=this.getCreationOptions(t,i,s),r=this._instantiationService.createInstance(a.Bz,e,t,n,i);if(i&&this._disposedModels.has(E(i))){const e=this._removeDisposedModel(i),t=this._undoRedoService.getElements(i),s=this._getSHA1Computer(),n=!!s.canComputeSHA1(r)&&s.computeSHA1(r)===e.sha1;if(n||e.sharesUndoRedoStack){for(const e of t.past)(0,p.Th)(e)&&e.matchesResource(i)&&e.setModel(r);for(const e of t.future)(0,p.Th)(e)&&e.matchesResource(i)&&e.setModel(r);this._undoRedoService.setElementsValidFlag(i,!0,(e=>(0,p.Th)(e)&&e.matchesResource(i))),n&&(r._overwriteVersionId(e.versionId),r._overwriteAlternativeVersionId(e.alternativeVersionId),r._overwriteInitialUndoRedoSnapshot(e.initialUndoRedoSnapshot))}else null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}const o=E(r.uri);if(this._models[o])throw new Error("ModelService: Cannot add model because it already exists!");const c=new b(r,(e=>this._onWillDispose(e)),((e,t)=>this._onDidChangeLanguage(e,t)));return this._models[o]=c,c}createModel(e,t,i,s=!1){let n;return n=t?this._createModelData(e,t,i,s):this._createModelData(e,l.vH,i,s),this._onModelAdded.fire(n.model),n.model}getModels(){const e=[],t=Object.keys(this._models);for(let i=0,s=t.length;i<s;i++){const s=t[i];e.push(this._models[s].model)}return e}getModel(e){const t=E(e),i=this._models[t];return i?i.model:null}_schemaShouldMaintainUndoRedoElements(e){return e.scheme===m.ny.file||e.scheme===m.ny.vscodeRemote||e.scheme===m.ny.vscodeUserData||e.scheme===m.ny.vscodeNotebookCell||"fake-fs"===e.scheme}_onWillDispose(e){const t=E(e.uri),i=this._models[t],n=this._undoRedoService.getUriComparisonKey(e.uri)!==e.uri.toString();let r=!1,o=0;if(n||this._shouldRestoreUndoStack()&&this._schemaShouldMaintainUndoRedoElements(e.uri)){const t=this._undoRedoService.getElements(e.uri);if(t.past.length>0||t.future.length>0){for(const i of t.past)(0,p.Th)(i)&&i.matchesResource(e.uri)&&(r=!0,o+=i.heapSize(e.uri),i.setModel(e.uri));for(const i of t.future)(0,p.Th)(i)&&i.matchesResource(e.uri)&&(r=!0,o+=i.heapSize(e.uri),i.setModel(e.uri))}}const a=s.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK,c=this._getSHA1Computer();if(r)if(n||!(o>a)&&c.canComputeSHA1(e))this._ensureDisposedModelsHeapSize(a-o),this._undoRedoService.setElementsValidFlag(e.uri,!1,(t=>(0,p.Th)(t)&&t.matchesResource(e.uri))),this._insertDisposedModel(new y(e.uri,i.model.getInitialUndoRedoSnapshot(),Date.now(),n,o,c.computeSHA1(e),e.getVersionId(),e.getAlternativeVersionId()));else{const e=i.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}else if(!n){const e=i.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}delete this._models[t],i.dispose(),delete this._modelCreationOptionsByLanguageAndResource[e.getLanguageId()+e.uri],this._onModelRemoved.fire(e)}_onDidChangeLanguage(e,t){const i=t.oldLanguage,n=e.getLanguageId(),r=this.getCreationOptions(i,e.uri,e.isForSimpleWidget),o=this.getCreationOptions(n,e.uri,e.isForSimpleWidget);s._setModelOptionsForModel(e,o,r),this._onModelModeChanged.fire({model:e,oldLanguageId:i})}_getSHA1Computer(){return new R}};w=s=v([C(0,d.pG),C(1,h.ITextResourcePropertiesService),C(2,u.$D),C(3,_._Y)],w);class R{static{this.MAX_MODEL_SIZE=10485760}canComputeSHA1(e){return e.getValueLength()<=R.MAX_MODEL_SIZE}computeSHA1(e){const t=new g.v7,i=e.createSnapshot();let s;for(;s=i.read();)t.update(s);return t.digest()}}},16545:(e,t,i)=>{"use strict";i.r(t),i.d(t,{BaseEditorSimpleWorker:()=>Y,EditorSimpleWorker:()=>q,create:()=>$});var s=i(83993),n=i(36677),r=i(60534);class o{constructor(e,t,i){const s=new Uint8Array(e*t);for(let n=0,r=e*t;n<r;n++)s[n]=i;this._data=s,this.rows=e,this.cols=t}get(e,t){return this._data[e*this.cols+t]}set(e,t,i){this._data[e*this.cols+t]=i}}class a{constructor(e){let t=0,i=0;for(let n=0,r=e.length;n<r;n++){const[s,r,o]=e[n];r>t&&(t=r),s>i&&(i=s),o>i&&(i=o)}t++,i++;const s=new o(i,t,0);for(let n=0,r=e.length;n<r;n++){const[t,i,r]=e[n];s.set(t,i,r)}this._states=s,this._maxCharCode=t}nextState(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)}}let c=null;let l=null;class h{static _createLink(e,t,i,s,n){let r=n-1;do{const i=t.charCodeAt(r);if(2!==e.get(i))break;r--}while(r>s);if(s>0){const e=t.charCodeAt(s-1),i=t.charCodeAt(r);(40===e&&41===i||91===e&&93===i||123===e&&125===i)&&r--}return{range:{startLineNumber:i,startColumn:s+1,endLineNumber:i,endColumn:r+2},url:t.substring(s,r+1)}}static computeLinks(e,t=function(){return null===c&&(c=new a([[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]])),c}()){const i=function(){if(null===l){l=new r.V(0);const e=" \t<>'\"\u3001\u3002\uff61\uff64\uff0c\uff0e\uff1a\uff1b\u2018\u3008\u300c\u300e\u3014\uff08\uff3b\uff5b\uff62\uff63\uff5d\uff3d\uff09\u3015\u300f\u300d\u3009\u2019\uff40\uff5e\u2026";for(let i=0;i<e.length;i++)l.set(e.charCodeAt(i),1);const t=".,;:";for(let i=0;i<t.length;i++)l.set(t.charCodeAt(i),2)}return l}(),s=[];for(let n=1,r=e.getLineCount();n<=r;n++){const r=e.getLineContent(n),o=r.length;let a=0,c=0,l=0,d=1,u=!1,g=!1,p=!1,m=!1;for(;a<o;){let e=!1;const o=r.charCodeAt(a);if(13===d){let t;switch(o){case 40:u=!0,t=0;break;case 41:t=u?0:1;break;case 91:p=!0,g=!0,t=0;break;case 93:p=!1,t=g?0:1;break;case 123:m=!0,t=0;break;case 125:t=m?0:1;break;case 39:case 34:case 96:t=l===o?1:39===l||34===l||96===l?0:1;break;case 42:t=42===l?1:0;break;case 124:t=124===l?1:0;break;case 32:t=p?0:1;break;default:t=i.get(o)}1===t&&(s.push(h._createLink(i,r,n,c,a)),e=!0)}else if(12===d){let t;91===o?(g=!0,t=0):t=i.get(o),1===t?e=!0:d=13}else d=t.nextState(d,o),0===d&&(e=!0);e&&(d=1,u=!1,g=!1,m=!1,c=a+1,l=o),a++}13===d&&s.push(h._createLink(i,r,n,c,o))}return s}}class d{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}static{this.INSTANCE=new d}navigateValueSet(e,t,i,s,n){if(e&&t){const i=this.doNavigateValueSet(t,n);if(i)return{range:e,value:i}}if(i&&s){const e=this.doNavigateValueSet(s,n);if(e)return{range:i,value:e}}return null}doNavigateValueSet(e,t){const i=this.numberReplace(e,t);return null!==i?i:this.textReplace(e,t)}numberReplace(e,t){const i=Math.pow(10,e.length-(e.lastIndexOf(".")+1));let s=Number(e);const n=parseFloat(e);return isNaN(s)||isNaN(n)||s!==n?null:0!==s||t?(s=Math.floor(s*i),s+=t?i:-i,String(s/i)):null}textReplace(e,t){return this.valueSetsReplace(this._defaultValueSet,e,t)}valueSetsReplace(e,t,i){let s=null;for(let n=0,r=e.length;null===s&&n<r;n++)s=this.valueSetReplace(e[n],t,i);return s}valueSetReplace(e,t,i){let s=e.indexOf(t);return s>=0?(s+=i?1:-1,s<0?s=e.length-1:s%=e.length,e[s]):null}}var u=i(73848),g=i(80718),p=i(78381),m=i(74855),f=i(41845),_=i(87723),v=i(91508),C=i(66782),E=i(86571);class b{computeDiff(e,t,i){const s=new T(e,t,{maxComputationTime:i.maxComputationTimeMs,shouldIgnoreTrimWhitespace:i.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),r=[];let o=null;for(const a of s.changes){let e,t;e=0===a.originalEndLineNumber?new E.M(a.originalStartLineNumber+1,a.originalStartLineNumber+1):new E.M(a.originalStartLineNumber,a.originalEndLineNumber+1),t=0===a.modifiedEndLineNumber?new E.M(a.modifiedStartLineNumber+1,a.modifiedStartLineNumber+1):new E.M(a.modifiedStartLineNumber,a.modifiedEndLineNumber+1);let i=new _.wm(e,t,a.charChanges?.map((e=>new _.q6(new n.Q(e.originalStartLineNumber,e.originalStartColumn,e.originalEndLineNumber,e.originalEndColumn),new n.Q(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)))));o&&(o.modified.endLineNumberExclusive!==i.modified.startLineNumber&&o.original.endLineNumberExclusive!==i.original.startLineNumber||(i=new _.wm(o.original.join(i.original),o.modified.join(i.modified),o.innerChanges&&i.innerChanges?o.innerChanges.concat(i.innerChanges):void 0),r.pop())),r.push(i),o=i}return(0,C.Ft)((()=>(0,C.Xo)(r,((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 f.p(r,[],s.quitEarly)}}function S(e,t,i,n){return new s.uP(e,t,i).ComputeDiff(n)}class y{constructor(e){const t=[],i=[];for(let s=0,n=e.length;s<n;s++)t[s]=x(e[s],1),i[s]=k(e[s],1);this.lines=e,this._startColumns=t,this._endColumns=i}getElements(){const e=[];for(let t=0,i=this.lines.length;t<i;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,i){const s=[],n=[],r=[];let o=0;for(let a=t;a<=i;a++){const t=this.lines[a],c=e?this._startColumns[a]:1,l=e?this._endColumns[a]:t.length+1;for(let e=c;e<l;e++)s[o]=t.charCodeAt(e-1),n[o]=a+1,r[o]=e,o++;!e&&a<i&&(s[o]=10,n[o]=a+1,r[o]=t.length+1,o++)}return new w(s,n,r)}}class w{constructor(e,t,i){this._charCodes=e,this._lineNumbers=t,this._columns=i}toString(){return"["+this._charCodes.map(((e,t)=>(10===e?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[t]},${this._columns[t]})`)).join(", ")+"]"}_assertIndex(e,t){if(e<0||e>=t.length)throw new 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-1===e?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),10===this._charCodes[e]?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-1===e?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),10===this._charCodes[e]?1:this._columns[e]+1)}}class R{constructor(e,t,i,s,n,r,o,a){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=i,this.originalEndColumn=s,this.modifiedStartLineNumber=n,this.modifiedStartColumn=r,this.modifiedEndLineNumber=o,this.modifiedEndColumn=a}static createFromDiffChange(e,t,i){const s=t.getStartLineNumber(e.originalStart),n=t.getStartColumn(e.originalStart),r=t.getEndLineNumber(e.originalStart+e.originalLength-1),o=t.getEndColumn(e.originalStart+e.originalLength-1),a=i.getStartLineNumber(e.modifiedStart),c=i.getStartColumn(e.modifiedStart),l=i.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),h=i.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new R(s,n,r,o,a,c,l,h)}}class L{constructor(e,t,i,s,n){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=i,this.modifiedEndLineNumber=s,this.charChanges=n}static createFromDiffResult(e,t,i,s,n,r,o){let a,c,l,h,d;if(0===t.originalLength?(a=i.getStartLineNumber(t.originalStart)-1,c=0):(a=i.getStartLineNumber(t.originalStart),c=i.getEndLineNumber(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(l=s.getStartLineNumber(t.modifiedStart)-1,h=0):(l=s.getStartLineNumber(t.modifiedStart),h=s.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),r&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&n()){const r=i.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),a=s.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);if(r.getElements().length>0&&a.getElements().length>0){let e=S(r,a,n,!0).changes;o&&(e=function(e){if(e.length<=1)return e;const t=[e[0]];let i=t[0];for(let s=1,n=e.length;s<n;s++){const n=e[s],r=n.originalStart-(i.originalStart+i.originalLength),o=n.modifiedStart-(i.modifiedStart+i.modifiedLength);Math.min(r,o)<3?(i.originalLength=n.originalStart+n.originalLength-i.originalStart,i.modifiedLength=n.modifiedStart+n.modifiedLength-i.modifiedStart):(t.push(n),i=n)}return t}(e)),d=[];for(let t=0,i=e.length;t<i;t++)d.push(R.createFromDiffChange(e[t],r,a))}}return new L(a,c,l,h,d)}}class T{constructor(e,t,i){this.shouldComputeCharChanges=i.shouldComputeCharChanges,this.shouldPostProcessCharChanges=i.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=i.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=i.shouldMakePrettyDiff,this.originalLines=e,this.modifiedLines=t,this.original=new y(e),this.modified=new y(t),this.continueLineDiff=A(i.maxComputationTime),this.continueCharDiff=A(0===i.maxComputationTime?0:Math.min(i.maxComputationTime,5e3))}computeDiff(){if(1===this.original.lines.length&&0===this.original.lines[0].length)return 1===this.modified.lines.length&&0===this.modified.lines[0].length?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(1===this.modified.lines.length&&0===this.modified.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const e=S(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=e.changes,i=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){const e=[];for(let i=0,s=t.length;i<s;i++)e.push(L.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[i],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:i,changes:e}}const s=[];let n=0,r=0;for(let o=-1,a=t.length;o<a;o++){const e=o+1<a?t[o+1]:null,i=e?e.originalStart:this.originalLines.length,c=e?e.modifiedStart:this.modifiedLines.length;for(;n<i&&r<c;){const e=this.originalLines[n],t=this.modifiedLines[r];if(e!==t){{let i=x(e,1),o=x(t,1);for(;i>1&&o>1;){if(e.charCodeAt(i-2)!==t.charCodeAt(o-2))break;i--,o--}(i>1||o>1)&&this._pushTrimWhitespaceCharChange(s,n+1,1,i,r+1,1,o)}{let i=k(e,1),o=k(t,1);const a=e.length+1,c=t.length+1;for(;i<a&&o<c;){if(e.charCodeAt(i-1)!==e.charCodeAt(o-1))break;i++,o++}(i<a||o<c)&&this._pushTrimWhitespaceCharChange(s,n+1,i,a,r+1,o,c)}}n++,r++}e&&(s.push(L.createFromDiffResult(this.shouldIgnoreTrimWhitespace,e,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),n+=e.originalLength,r+=e.modifiedLength)}return{quitEarly:i,changes:s}}_pushTrimWhitespaceCharChange(e,t,i,s,n,r,o){if(this._mergeTrimWhitespaceCharChange(e,t,i,s,n,r,o))return;let a;this.shouldComputeCharChanges&&(a=[new R(t,i,t,s,n,r,n,o)]),e.push(new L(t,t,n,n,a))}_mergeTrimWhitespaceCharChange(e,t,i,s,n,r,o){const a=e.length;if(0===a)return!1;const c=e[a-1];return 0!==c.originalEndLineNumber&&0!==c.modifiedEndLineNumber&&(c.originalEndLineNumber===t&&c.modifiedEndLineNumber===n?(this.shouldComputeCharChanges&&c.charChanges&&c.charChanges.push(new R(t,i,t,s,n,r,n,o)),!0):c.originalEndLineNumber+1===t&&c.modifiedEndLineNumber+1===n&&(c.originalEndLineNumber=t,c.modifiedEndLineNumber=n,this.shouldComputeCharChanges&&c.charChanges&&c.charChanges.push(new R(t,i,t,s,n,r,n,o)),!0))}}function x(e,t){const i=v.HG(e);return-1===i?t:i+1}function k(e,t){const i=v.lT(e);return-1===i?t:i+2}function A(e){if(0===e)return()=>!0;const t=Date.now();return()=>Date.now()-t<e}var N=i(26746);const I=()=>new b,O=()=>new N.D8;var D=i(10146),M=i(36456),P=i(47661);function F(e){const t=[];for(const i of e){const e=Number(i);(e||0===e&&""!==i.replace(/\s/g,""))&&t.push(e)}return t}function U(e,t,i,s){return{red:e/255,blue:i/255,green:t/255,alpha:s}}function H(e,t){const i=t.index,s=t[0].length;if(!i)return;const n=e.positionAt(i);return{startLineNumber:n.lineNumber,startColumn:n.column,endLineNumber:n.lineNumber,endColumn:n.column+s}}function B(e,t){if(!e)return;const i=P.Q1.Format.CSS.parseHex(t);return i?{range:e,color:U(i.rgba.r,i.rgba.g,i.rgba.b,i.rgba.a)}:void 0}function W(e,t,i){if(!e||1!==t.length)return;const s=F(t[0].values());return{range:e,color:U(s[0],s[1],s[2],i?s[3]:1)}}function V(e,t,i){if(!e||1!==t.length)return;const s=F(t[0].values()),n=new P.Q1(new P.hB(s[0],s[1]/100,s[2]/100,i?s[3]:1));return{range:e,color:U(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}}function z(e,t){return"string"===typeof e?[...e.matchAll(t)]:e.findMatches(t)}function G(e){return e&&"function"===typeof e.getValue&&"function"===typeof e.positionAt?function(e){const t=[],i=z(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/gm);if(i.length>0)for(const s of i){const i=s.filter((e=>void 0!==e)),n=i[1],r=i[2];if(!r)continue;let o;if("rgb"===n){const t=/^\(\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;o=W(H(e,s),z(r,t),!1)}else if("rgba"===n){const t=/^\(\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;o=W(H(e,s),z(r,t),!0)}else if("hsl"===n){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;o=V(H(e,s),z(r,t),!1)}else if("hsla"===n){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;o=V(H(e,s),z(r,t),!0)}else"#"===n&&(o=B(H(e,s),n+r));o&&t.push(o)}return t}(e):[]}var j=i(56691),K=i(47443);class Y{constructor(){this._workerTextModelSyncServer=new K.WorkerTextModelSyncServer}dispose(){}_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,i){const s=this._getModel(e);return s?m.UnicodeTextModelHighlighter.computeUnicodeHighlights(s,t,i):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async $findSectionHeaders(e,t){const i=this._getModel(e);return i?(0,j.findSectionHeaders)(i,t):[]}async $computeDiff(e,t,i,s){const n=this._getModel(e),r=this._getModel(t);if(!n||!r)return null;return q.computeDiff(n,r,i,s)}static computeDiff(e,t,i,s){const n="advanced"===s?O():I(),r=e.getLinesContent(),o=t.getLinesContent(),a=n.computeDiff(r,o,i);function c(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:!(a.changes.length>0)&&this._modelsAreIdentical(e,t),quitEarly:a.hitTimeout,changes:c(a.changes),moves:a.moves.map((e=>[e.lineRangeMapping.original.startLineNumber,e.lineRangeMapping.original.endLineNumberExclusive,e.lineRangeMapping.modified.startLineNumber,e.lineRangeMapping.modified.endLineNumberExclusive,c(e.changes)]))}}static _modelsAreIdentical(e,t){const i=e.getLineCount();if(i!==t.getLineCount())return!1;for(let s=1;s<=i;s++){if(e.getLineContent(s)!==t.getLineContent(s))return!1}return!0}static{this._diffLimit=1e5}async $computeMoreMinimalEdits(e,t,i){const r=this._getModel(e);if(!r)return t;const o=[];let a;t=t.slice(0).sort(((e,t)=>{if(e.range&&t.range)return n.Q.compareRangesUsingStarts(e.range,t.range);return(e.range?0:1)-(t.range?0:1)}));let c=0;for(let s=1;s<t.length;s++)n.Q.getEndPosition(t[c].range).equals(n.Q.getStartPosition(t[s].range))?(t[c].range=n.Q.fromPositions(n.Q.getStartPosition(t[c].range),n.Q.getEndPosition(t[s].range)),t[c].text+=t[s].text):(c++,t[c]=t[s]);t.length=c+1;for(let{range:l,text:h,eol:d}of t){if("number"===typeof d&&(a=d),n.Q.isEmpty(l)&&!h)continue;const e=r.getValueInRange(l);if(h=h.replace(/\r\n|\n|\r/g,r.eol),e===h)continue;if(Math.max(h.length,e.length)>q._diffLimit){o.push({range:l,text:h});continue}const t=(0,s.F1)(e,h,i),c=r.offsetAt(n.Q.lift(l).getStartPosition());for(const i of t){const e=r.positionAt(c+i.originalStart),t=r.positionAt(c+i.originalStart+i.originalLength),s={text:h.substr(i.modifiedStart,i.modifiedLength),range:{startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:t.lineNumber,endColumn:t.column}};r.getValueInRange(s.range)!==s.text&&o.push(s)}}return"number"===typeof a&&o.push({eol:a,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),o}async $computeLinks(e){const t=this._getModel(e);return t?function(e){return e&&"function"===typeof e.getLineCount&&"function"===typeof e.getLineContent?h.computeLinks(e):[]}(t):null}async $computeDefaultDocumentColors(e){const t=this._getModel(e);return t?G(t):null}static{this._suggestionsLimit=1e4}async $textualSuggest(e,t,i,s){const n=new p.W,r=new RegExp(i,s),o=new Set;e:for(const a of e){const e=this._getModel(a);if(e)for(const i of e.words(r))if(i!==t&&isNaN(Number(i))&&(o.add(i),o.size>q._suggestionsLimit))break e}return{words:Array.from(o),duration:n.elapsed()}}async $computeWordRanges(e,t,i,s){const n=this._getModel(e);if(!n)return Object.create(null);const r=new RegExp(i,s),o=Object.create(null);for(let a=t.startLineNumber;a<t.endLineNumber;a++){const e=n.getLineWords(a,r);for(const t of e){if(!isNaN(Number(t.word)))continue;let e=o[t.word];e||(e=[],o[t.word]=e),e.push({startLineNumber:a,startColumn:t.startColumn,endLineNumber:a,endColumn:t.endColumn})}}return o}async $navigateValueSet(e,t,i,s,n){const r=this._getModel(e);if(!r)return null;const o=new RegExp(s,n);t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1});const a=r.getValueInRange(t),c=r.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},o);if(!c)return null;const l=r.getValueInRange(c);return d.INSTANCE.navigateValueSet(t,a,c,l,i)}}class q extends Y{constructor(e,t){super(),this._host=e,this._foreignModuleFactory=t,this._foreignModule=null}async $ping(){return"pong"}$loadForeignModule(e,t,s){const n={host:(0,D.kT)(s,((e,t)=>this._host.$fhr(e,t))),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(n,t),Promise.resolve((0,D.V0)(this._foreignModule))):new Promise(((s,r)=>{const o=e=>{this._foreignModule=e.create(n,t),s((0,D.V0)(this._foreignModule))};{const t=M.zl.asBrowserUri(`${e}.js`).toString(!0);i(9204)(`${t}`).then(o).catch(r)}}))}$fmr(e,t){if(!this._foreignModule||"function"!==typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(i){return Promise.reject(i)}}}function $(e){return new q(g.EditorWorkerHost.getChannel(e),null)}"function"===typeof importScripts&&(globalThis.monaco=(0,u.createMonacoBaseAPI)())},16963:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var s,n=i(59284);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},r.apply(null,arguments)}const o=function(e){return n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),s||(s=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.78 7.47a.75.75 0 010 1.06l-2.5 2.5a.75.75 0 11-1.06-1.06l1.22-1.22H4.75a.75.75 0 010-1.5h7.69l-1.22-1.22a.75.75 0 011.06-1.06zM9.5 4.25a.75.75 0 01-1.5 0V4a1.5 1.5 0 00-1.5-1.5H4A1.5 1.5 0 002.5 4v8A1.5 1.5 0 004 13.5h2.5A1.5 1.5 0 008 12v-.25a.75.75 0 011.5 0V12a3 3 0 01-3 3H4a3 3 0 01-3-3V4a3 3 0 013-3h2.5a3 3 0 013 3z",clipRule:"evenodd"})))}},16980:(e,t,i)=>{"use strict";i.d(t,{Bc:()=>c,VS:()=>h,_W:()=>g,it:()=>l,nI:()=>p,nK:()=>d,oO:()=>u});var s=i(64383),n=i(37882),r=i(89403),o=i(91508),a=i(79400);class c{constructor(e="",t=!1){if(this.value=e,"string"!==typeof this.value)throw(0,s.Qg)("value");"boolean"===typeof t?(this.isTrusted=t,this.supportThemeIcons=!1,this.supportHtml=!1):(this.isTrusted=t.isTrusted??void 0,this.supportThemeIcons=t.supportThemeIcons??!1,this.supportHtml=t.supportHtml??!1)}appendText(e,t=0){var i;return this.value+=(i=this.supportThemeIcons?(0,n.m2)(e):e,i.replace(/[\\`*_{}[\]()#+\-!~]/g,"\\$&")).replace(/([ \t]+)/g,((e,t)=>" ".repeat(t.length))).replace(/\>/gm,"\\>").replace(/\n/g,1===t?"\\\n":"\n\n"),this}appendMarkdown(e){return this.value+=e,this}appendCodeblock(e,t){return this.value+=`\n${function(e,t){const i=e.match(/^`+/gm)?.reduce(((e,t)=>e.length>t.length?e:t)).length??0,s=i>=3?i+1:3;return[`${"`".repeat(s)}${t}`,e,`${"`".repeat(s)}`].join("\n")}(t,e)}\n`,this}appendLink(e,t,i){return this.value+="[",this.value+=this._escape(t,"]"),this.value+="](",this.value+=this._escape(String(e),")"),i&&(this.value+=` "${this._escape(this._escape(i,'"'),")")}"`),this.value+=")",this}_escape(e,t){const i=new RegExp((0,o.bm)(t),"g");return e.replace(i,((t,i)=>"\\"!==e.charAt(i-1)?`\\${t}`:t))}}function l(e){return h(e)?!e.value:!Array.isArray(e)||e.every(l)}function h(e){return e instanceof c||!(!e||"object"!==typeof e)&&("string"===typeof e.value&&("boolean"===typeof e.isTrusted||"object"===typeof e.isTrusted||void 0===e.isTrusted)&&("boolean"===typeof e.supportThemeIcons||void 0===e.supportThemeIcons))}function d(e,t){return e===t||!(!e||!t)&&(e.value===t.value&&e.isTrusted===t.isTrusted&&e.supportThemeIcons===t.supportThemeIcons&&e.supportHtml===t.supportHtml&&(e.baseUri===t.baseUri||!!e.baseUri&&!!t.baseUri&&(0,r.n4)(a.r.from(e.baseUri),a.r.from(t.baseUri))))}function u(e){return e.replace(/"/g,""")}function g(e){return e?e.replace(/\\([\\`*_{}[\]()#+\-.!~])/g,"$1"):e}function p(e){const t=[],i=e.split("|").map((e=>e.trim()));e=i[0];const s=i[1];if(s){const e=/height=(\d+)/.exec(s),i=/width=(\d+)/.exec(s),n=e?e[1]:"",r=i?i[1]:"",o=isFinite(parseInt(r)),a=isFinite(parseInt(n));o&&t.push(`width="${r}"`),a&&t.push(`height="${n}"`)}return{href:e,dimensions:t}}},17184:e=>{e.exports=function(){function e(e,t){return"yson"===t.format?"#":e.$value}return e.isScalar=!0,e}},17390:(e,t,i)=>{"use strict";i.d(t,{x:()=>c});var s=i(8597),n=i(72962),r=i(47358),o=i(25154),a=i(5662);class c extends a.jG{onclick(e,t){this._register(s.ko(e,s.Bx.CLICK,(i=>t(new r.P(s.zk(e),i)))))}onmousedown(e,t){this._register(s.ko(e,s.Bx.MOUSE_DOWN,(i=>t(new r.P(s.zk(e),i)))))}onmouseover(e,t){this._register(s.ko(e,s.Bx.MOUSE_OVER,(i=>t(new r.P(s.zk(e),i)))))}onmouseleave(e,t){this._register(s.ko(e,s.Bx.MOUSE_LEAVE,(i=>t(new r.P(s.zk(e),i)))))}onkeydown(e,t){this._register(s.ko(e,s.Bx.KEY_DOWN,(e=>t(new n.Z(e)))))}onkeyup(e,t){this._register(s.ko(e,s.Bx.KEY_UP,(e=>t(new n.Z(e)))))}oninput(e,t){this._register(s.ko(e,s.Bx.INPUT,t))}onblur(e,t){this._register(s.ko(e,s.Bx.BLUR,t))}onfocus(e,t){this._register(s.ko(e,s.Bx.FOCUS,t))}ignoreGesture(e){return o.q.ignoreTarget(e)}}},17469:(e,t,i)=>{"use strict";i.d(t,{JZ:()=>N,Cw:()=>M});var s=i(41234),n=i(5662),r=i(91508),o=i(26486),a=i(38566);class c{static{this.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES=";:.,=}])> \n\t"}static{this.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS="'\"`;:.,=}])> \n\t"}constructor(e){if(e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map((e=>new a.i3(e))):e.brackets?this._autoClosingPairs=e.brackets.map((e=>new a.i3({open:e[0],close:e[1]}))):this._autoClosingPairs=[],e.__electricCharacterSupport&&e.__electricCharacterSupport.docComment){const t=e.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new a.i3({open:t.open,close:t.close||""}))}this._autoCloseBeforeForQuotes="string"===typeof e.autoCloseBefore?e.autoCloseBefore:c.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES,this._autoCloseBeforeForBrackets="string"===typeof e.autoCloseBefore?e.autoCloseBefore:c.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS,this._surroundingPairs=e.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(e){return e?this._autoCloseBeforeForQuotes:this._autoCloseBeforeForBrackets}getSurroundingPairs(){return this._surroundingPairs}}var l=i(25890),h=i(12296),d=i(56772);class u{constructor(e){this._richEditBrackets=e}getElectricCharacters(){const e=[];if(this._richEditBrackets)for(const t of this._richEditBrackets.brackets)for(const i of t.close){const t=i.charAt(i.length-1);e.push(t)}return(0,l.dM)(e)}onElectricCharacter(e,t,i){if(!this._richEditBrackets||0===this._richEditBrackets.brackets.length)return null;const s=t.findTokenIndexAtOffset(i-1);if((0,h.Yo)(t.getStandardTokenType(s)))return null;const n=this._richEditBrackets.reversedRegex,r=t.getLineContent().substring(0,i-1)+e,o=d.Fu.findPrevBracketInRange(n,1,r,0,r.length);if(!o)return null;const a=r.substring(o.startColumn-1,o.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[a])return null;const c=t.getActualLineContentBefore(o.startColumn-1);return/^\s*$/.test(c)?{matchOpenBracket:a}:null}}function g(e){return e.global&&(e.lastIndex=0),!0}class p{constructor(e){this._indentationRules=e}shouldIncrease(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&g(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(e))}shouldDecrease(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&g(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(e))}shouldIndentNextLine(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&g(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(e))}shouldIgnore(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&g(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(e))}getIndentMetadata(e){let t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t}}var m=i(64383);class f{constructor(e){(e=e||{}).brackets=e.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],e.brackets.forEach((e=>{const t=f._createOpenBracketRegExp(e[0]),i=f._createCloseBracketRegExp(e[1]);t&&i&&this._brackets.push({open:e[0],openRegExp:t,close:e[1],closeRegExp:i})})),this._regExpRules=e.onEnterRules||[]}onEnter(e,t,i,s){if(e>=3)for(let n=0,r=this._regExpRules.length;n<r;n++){const e=this._regExpRules[n];if([{reg:e.beforeText,text:i},{reg:e.afterText,text:s},{reg:e.previousLineText,text:t}].every((e=>!e.reg||(e.reg.lastIndex=0,e.reg.test(e.text)))))return e.action}if(e>=2&&i.length>0&&s.length>0)for(let n=0,r=this._brackets.length;n<r;n++){const e=this._brackets[n];if(e.openRegExp.test(i)&&e.closeRegExp.test(s))return{indentAction:a.l.IndentOutdent}}if(e>=2&&i.length>0)for(let n=0,r=this._brackets.length;n<r;n++){if(this._brackets[n].openRegExp.test(i))return{indentAction:a.l.Indent}}return null}static _createOpenBracketRegExp(e){let t=r.bm(e);return/\B/.test(t.charAt(0))||(t="\\b"+t),t+="\\s*$",f._safeRegExp(t)}static _createCloseBracketRegExp(e){let t=r.bm(e);return/\B/.test(t.charAt(t.length-1))||(t+="\\b"),t="^\\s*"+t,f._safeRegExp(t)}static _safeRegExp(e){try{return new RegExp(e)}catch(t){return(0,m.dz)(t),null}}}var _=i(63591),v=i(84001),C=i(10154),E=i(14718),b=i(83941),S=i(81788);class y{constructor(e,t){this.languageId=e;const i=t.brackets?w(t.brackets):[],s=new S.VV((e=>{const t=new Set;return{info:new L(this,e,t),closing:t}})),n=new S.VV((e=>{const t=new Set,i=new Set;return{info:new T(this,e,t,i),opening:t,openingColorized:i}}));for(const[o,a]of i){const e=s.get(o),t=n.get(a);e.closing.add(t.info),t.opening.add(e.info)}const r=t.colorizedBracketPairs?w(t.colorizedBracketPairs):i.filter((e=>!("<"===e[0]&&">"===e[1])));for(const[o,a]of r){const e=s.get(o),t=n.get(a);e.closing.add(t.info),t.openingColorized.add(e.info),t.opening.add(e.info)}this._openingBrackets=new Map([...s.cachedValues].map((([e,t])=>[e,t.info]))),this._closingBrackets=new Map([...n.cachedValues].map((([e,t])=>[e,t.info])))}get openingBrackets(){return[...this._openingBrackets.values()]}get closingBrackets(){return[...this._closingBrackets.values()]}getOpeningBracketInfo(e){return this._openingBrackets.get(e)}getClosingBracketInfo(e){return this._closingBrackets.get(e)}getBracketInfo(e){return this.getOpeningBracketInfo(e)||this.getClosingBracketInfo(e)}getBracketRegExp(e){const t=Array.from([...this._openingBrackets.keys(),...this._closingBrackets.keys()]);return(0,d.xb)(t,e)}}function w(e){return e.filter((([e,t])=>""!==e&&""!==t))}class R{constructor(e,t){this.config=e,this.bracketText=t}get languageId(){return this.config.languageId}}class L extends R{constructor(e,t,i){super(e,t),this.openedBrackets=i,this.isOpeningBracket=!0}}class T extends R{constructor(e,t,i,s){super(e,t),this.openingBrackets=i,this.openingColorizedBrackets=s,this.isOpeningBracket=!1}closes(e){return e.config===this.config&&this.openingBrackets.has(e)}closesColorized(e){return e.config===this.config&&this.openingColorizedBrackets.has(e)}getOpeningBrackets(){return[...this.openingBrackets]}}var x=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},k=function(e,t){return function(i,s){t(i,s,e)}};class A{constructor(e){this.languageId=e}affects(e){return!this.languageId||this.languageId===e}}const N=(0,_.u1)("languageConfigurationService");let I=class extends n.jG{constructor(e,t){super(),this.configurationService=e,this.languageService=t,this._registry=this._register(new B),this.onDidChangeEmitter=this._register(new s.vl),this.onDidChange=this.onDidChangeEmitter.event,this.configurations=new Map;const i=new Set(Object.values(O));this._register(this.configurationService.onDidChangeConfiguration((e=>{const t=e.change.keys.some((e=>i.has(e))),s=e.change.overrides.filter((([e,t])=>t.some((e=>i.has(e))))).map((([e])=>e));if(t)this.configurations.clear(),this.onDidChangeEmitter.fire(new A(void 0));else for(const i of s)this.languageService.isRegisteredLanguageId(i)&&(this.configurations.delete(i),this.onDidChangeEmitter.fire(new A(i)))}))),this._register(this._registry.onDidChange((e=>{this.configurations.delete(e.languageId),this.onDidChangeEmitter.fire(new A(e.languageId))})))}register(e,t,i){return this._registry.register(e,t,i)}getLanguageConfiguration(e){let t=this.configurations.get(e);return t||(t=function(e,t,i,s){let n=t.getLanguageConfiguration(e);if(!n){if(!s.isRegisteredLanguageId(e))return new W(e,{});n=new W(e,{})}const r=function(e,t){const i=t.getValue(O.brackets,{overrideIdentifier:e}),s=t.getValue(O.colorizedBracketPairs,{overrideIdentifier:e});return{brackets:D(i),colorizedBracketPairs:D(s)}}(n.languageId,i),o=F([n.underlyingConfig,r]);return new W(n.languageId,o)}(e,this._registry,this.configurationService,this.languageService),this.configurations.set(e,t)),t}};I=x([k(0,v.pG),k(1,C.L)],I);const O={brackets:"editor.language.brackets",colorizedBracketPairs:"editor.language.colorizedBracketPairs"};function D(e){if(Array.isArray(e))return e.map((e=>{if(Array.isArray(e)&&2===e.length)return[e[0],e[1]]})).filter((e=>!!e))}function M(e,t,i){const s=e.getLineContent(t);let n=r.UU(s);return n.length>i-1&&(n=n.substring(0,i-1)),n}class P{constructor(e){this.languageId=e,this._resolved=null,this._entries=[],this._order=0,this._resolved=null}register(e,t){const i=new U(e,t,++this._order);return this._entries.push(i),this._resolved=null,(0,n.s)((()=>{for(let e=0;e<this._entries.length;e++)if(this._entries[e]===i){this._entries.splice(e,1),this._resolved=null;break}}))}getResolvedConfiguration(){if(!this._resolved){const e=this._resolve();e&&(this._resolved=new W(this.languageId,e))}return this._resolved}_resolve(){return 0===this._entries.length?null:(this._entries.sort(U.cmp),F(this._entries.map((e=>e.configuration))))}}function F(e){let t={comments:void 0,brackets:void 0,wordPattern:void 0,indentationRules:void 0,onEnterRules:void 0,autoClosingPairs:void 0,surroundingPairs:void 0,autoCloseBefore:void 0,folding:void 0,colorizedBracketPairs:void 0,__electricCharacterSupport:void 0};for(const i of e)t={comments:i.comments||t.comments,brackets:i.brackets||t.brackets,wordPattern:i.wordPattern||t.wordPattern,indentationRules:i.indentationRules||t.indentationRules,onEnterRules:i.onEnterRules||t.onEnterRules,autoClosingPairs:i.autoClosingPairs||t.autoClosingPairs,surroundingPairs:i.surroundingPairs||t.surroundingPairs,autoCloseBefore:i.autoCloseBefore||t.autoCloseBefore,folding:i.folding||t.folding,colorizedBracketPairs:i.colorizedBracketPairs||t.colorizedBracketPairs,__electricCharacterSupport:i.__electricCharacterSupport||t.__electricCharacterSupport};return t}class U{constructor(e,t,i){this.configuration=e,this.priority=t,this.order=i}static cmp(e,t){return e.priority===t.priority?e.order-t.order:e.priority-t.priority}}class H{constructor(e){this.languageId=e}}class B extends n.jG{constructor(){super(),this._entries=new Map,this._onDidChange=this._register(new s.vl),this.onDidChange=this._onDidChange.event,this._register(this.register(b.vH,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],colorizedBracketPairs:[],folding:{offSide:!0}},0))}register(e,t,i=0){let s=this._entries.get(e);s||(s=new P(e),this._entries.set(e,s));const r=s.register(t,i);return this._onDidChange.fire(new H(e)),(0,n.s)((()=>{r.dispose(),this._onDidChange.fire(new H(e))}))}getLanguageConfiguration(e){const t=this._entries.get(e);return t?.getResolvedConfiguration()||null}}class W{constructor(e,t){this.languageId=e,this.underlyingConfig=t,this._brackets=null,this._electricCharacter=null,this._onEnterSupport=this.underlyingConfig.brackets||this.underlyingConfig.indentationRules||this.underlyingConfig.onEnterRules?new f(this.underlyingConfig):null,this.comments=W._handleComments(this.underlyingConfig),this.characterPair=new c(this.underlyingConfig),this.wordDefinition=this.underlyingConfig.wordPattern||o.Ld,this.indentationRules=this.underlyingConfig.indentationRules,this.underlyingConfig.indentationRules?this.indentRulesSupport=new p(this.underlyingConfig.indentationRules):this.indentRulesSupport=null,this.foldingRules=this.underlyingConfig.folding||{},this.bracketsNew=new y(e,this.underlyingConfig)}getWordDefinition(){return(0,o.Io)(this.wordDefinition)}get brackets(){return!this._brackets&&this.underlyingConfig.brackets&&(this._brackets=new d.az(this.languageId,this.underlyingConfig.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new u(this.brackets)),this._electricCharacter}onEnter(e,t,i,s){return this._onEnterSupport?this._onEnterSupport.onEnter(e,t,i,s):null}getAutoClosingPairs(){return new a.GB(this.characterPair.getAutoClosingPairs())}getAutoCloseBeforeSet(e){return this.characterPair.getAutoCloseBeforeSet(e)}getSurroundingPairs(){return this.characterPair.getSurroundingPairs()}static _handleComments(e){const t=e.comments;if(!t)return null;const i={};if(t.lineComment&&(i.lineCommentToken=t.lineComment),t.blockComment){const[e,s]=t.blockComment;i.blockCommentStartToken=e,i.blockCommentEndToken=s}return i}}(0,E.v)(N,I,1)},17799:(e,t,i)=>{"use strict";i.d(t,{VX:()=>a,Vq:()=>c,Y:()=>h,gf:()=>o,jt:()=>u});var s=i(25890),n=i(42522),r=i(58255);function o(e){return{asString:async()=>e,asFile:()=>{},value:"string"===typeof e?e:void 0}}function a(e,t,i){const s={id:(0,r.b)(),name:e,uri:t,data:i};return{asString:async()=>"",asFile:()=>s,value:void 0}}class c{constructor(){this._entries=new Map}get size(){let e=0;for(const t of this._entries)e++;return e}has(e){return this._entries.has(this.toKey(e))}matches(e){const t=[...this._entries.keys()];return n.f.some(this,(([e,t])=>t.asFile()))&&t.push("files"),d(l(e),t)}get(e){return this._entries.get(this.toKey(e))?.[0]}append(e,t){const i=this._entries.get(e);i?i.push(t):this._entries.set(this.toKey(e),[t])}replace(e,t){this._entries.set(this.toKey(e),[t])}delete(e){this._entries.delete(this.toKey(e))}*[Symbol.iterator](){for(const[e,t]of this._entries)for(const i of t)yield[e,i]}toKey(e){return l(e)}}function l(e){return e.toLowerCase()}function h(e,t){return d(l(e),t.map(l))}function d(e,t){if("*/*"===e)return t.length>0;if(t.includes(e))return!0;const i=e.match(/^([a-z]+)\/([a-z]+|\*)$/i);if(!i)return!1;const[s,n,r]=i;return"*"===r&&t.some((e=>e.startsWith(n+"/")))}const u=Object.freeze({create:e=>(0,s.dM)(e.map((e=>e.toString()))).join("\r\n"),split:e=>e.split("\r\n"),parse:e=>u.split(e).filter((e=>!e.startsWith("#")))})},17890:(e,t,i)=>{"use strict";i.r(t),i.d(t,{LanguageService:()=>h});var s=i(41234),n=i(5662),r=i(69259),o=i(25890),a=i(62083),c=i(83941),l=i(31308);class h extends n.jG{static{this.instanceCount=0}constructor(e=!1){super(),this._onDidRequestBasicLanguageFeatures=this._register(new s.vl),this.onDidRequestBasicLanguageFeatures=this._onDidRequestBasicLanguageFeatures.event,this._onDidRequestRichLanguageFeatures=this._register(new s.vl),this.onDidRequestRichLanguageFeatures=this._onDidRequestRichLanguageFeatures.event,this._onDidChange=this._register(new s.vl({leakWarningThreshold:200})),this.onDidChange=this._onDidChange.event,this._requestedBasicLanguages=new Set,this._requestedRichLanguages=new Set,h.instanceCount++,this._registry=this._register(new r.LanguagesRegistry(!0,e)),this.languageIdCodec=this._registry.languageIdCodec,this._register(this._registry.onDidChange((()=>this._onDidChange.fire())))}dispose(){h.instanceCount--,super.dispose()}isRegisteredLanguageId(e){return this._registry.isRegisteredLanguageId(e)}getLanguageIdByLanguageName(e){return this._registry.getLanguageIdByLanguageName(e)}getLanguageIdByMimeType(e){return this._registry.getLanguageIdByMimeType(e)}guessLanguageIdByFilepathOrFirstLine(e,t){const i=this._registry.guessLanguageIdByFilepathOrFirstLine(e,t);return(0,o.Fy)(i,null)}createById(e){return new d(this.onDidChange,(()=>this._createAndGetLanguageIdentifier(e)))}createByFilepathOrFirstLine(e,t){return new d(this.onDidChange,(()=>{const i=this.guessLanguageIdByFilepathOrFirstLine(e,t);return this._createAndGetLanguageIdentifier(i)}))}_createAndGetLanguageIdentifier(e){return e&&this.isRegisteredLanguageId(e)||(e=c.vH),e}requestBasicLanguageFeatures(e){this._requestedBasicLanguages.has(e)||(this._requestedBasicLanguages.add(e),this._onDidRequestBasicLanguageFeatures.fire(e))}requestRichLanguageFeatures(e){this._requestedRichLanguages.has(e)||(this._requestedRichLanguages.add(e),this.requestBasicLanguageFeatures(e),a.dG.getOrCreate(e),this._onDidRequestRichLanguageFeatures.fire(e))}}class d{constructor(e,t){this._value=(0,l.y0)(this,e,(()=>t())),this.onDidChange=s.Jh.fromObservable(this._value)}get languageId(){return this._value.get()}}},18278:(e,t,i)=>{"use strict";var s=i(90766),n=i(5662),r=i(31450),o=i(17469),a=i(87289),c=i(10920),l=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},h=function(e,t){return function(i,s){t(i,s,e)}};let d=class extends n.jG{static{this.ID="editor.sectionHeaderDetector"}constructor(e,t,i){super(),this.editor=e,this.languageConfigurationService=t,this.editorWorkerService=i,this.decorations=this.editor.createDecorationsCollection(),this.options=this.createOptions(e.getOption(73)),this.computePromise=null,this.currentOccurrences={},this._register(e.onDidChangeModel((t=>{this.currentOccurrences={},this.options=this.createOptions(e.getOption(73)),this.stop(),this.computeSectionHeaders.schedule(0)}))),this._register(e.onDidChangeModelLanguage((t=>{this.currentOccurrences={},this.options=this.createOptions(e.getOption(73)),this.stop(),this.computeSectionHeaders.schedule(0)}))),this._register(t.onDidChange((t=>{const i=this.editor.getModel()?.getLanguageId();i&&t.affects(i)&&(this.currentOccurrences={},this.options=this.createOptions(e.getOption(73)),this.stop(),this.computeSectionHeaders.schedule(0))}))),this._register(e.onDidChangeConfiguration((t=>{this.options&&!t.hasChanged(73)||(this.options=this.createOptions(e.getOption(73)),this.updateDecorations([]),this.stop(),this.computeSectionHeaders.schedule(0))}))),this._register(this.editor.onDidChangeModelContent((e=>{this.computeSectionHeaders.schedule()}))),this._register(e.onDidChangeModelTokens((e=>{this.computeSectionHeaders.isScheduled()||this.computeSectionHeaders.schedule(1e3)}))),this.computeSectionHeaders=this._register(new s.uC((()=>{this.findSectionHeaders()}),250)),this.computeSectionHeaders.schedule(0)}createOptions(e){if(!e||!this.editor.hasModel())return;const t=this.editor.getModel().getLanguageId();if(!t)return;const i=this.languageConfigurationService.getLanguageConfiguration(t).comments,s=this.languageConfigurationService.getLanguageConfiguration(t).foldingRules;return i||s?.markers?{foldingRules:s,findMarkSectionHeaders:e.showMarkSectionHeaders,findRegionSectionHeaders:e.showRegionSectionHeaders}:void 0}findSectionHeaders(){if(!this.editor.hasModel()||!this.options?.findMarkSectionHeaders&&!this.options?.findRegionSectionHeaders)return;const e=this.editor.getModel();if(e.isDisposed()||e.isTooLargeForSyncing())return;const t=e.getVersionId();this.editorWorkerService.findSectionHeaders(e.uri,this.options).then((i=>{e.isDisposed()||e.getVersionId()!==t||this.updateDecorations(i)}))}updateDecorations(e){const t=this.editor.getModel();t&&(e=e.filter((e=>{if(!e.shouldBeInComments)return!0;const i=t.validateRange(e.range),s=t.tokenization.getLineTokens(i.startLineNumber),n=s.findTokenIndexAtOffset(i.startColumn-1),r=s.getStandardTokenType(n);return s.getLanguageId(n)===t.getLanguageId()&&1===r})));const i=Object.values(this.currentOccurrences).map((e=>e.decorationId)),s=e.map((e=>function(e){return{range:e.range,options:a.kI.createDynamic({description:"section-header",stickiness:3,collapseOnReplaceEdit:!0,minimap:{color:void 0,position:1,sectionHeaderStyle:e.hasSeparatorLine?2:1,sectionHeaderText:e.text}})}}(e)));this.editor.changeDecorations((t=>{const n=t.deltaDecorations(i,s);this.currentOccurrences={};for(let i=0,s=n.length;i<s;i++){const t={sectionHeader:e[i],decorationId:n[i]};this.currentOccurrences[t.decorationId]=t}}))}stop(){this.computeSectionHeaders.cancel(),this.computePromise&&(this.computePromise.cancel(),this.computePromise=null)}dispose(){super.dispose(),this.stop(),this.decorations.clear()}};d=l([h(1,o.JZ),h(2,c.IEditorWorkerService)],d),(0,r.HW)(d.ID,d,1)},18447:(e,t,i)=>{"use strict";i.d(t,{Qi:()=>a,XO:()=>r,bs:()=>c});var s=i(41234);const n=Object.freeze((function(e,t){const i=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(i)}}}));var r;!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||(t instanceof o||!(!t||"object"!==typeof t)&&("boolean"===typeof t.isCancellationRequested&&"function"===typeof t.onCancellationRequested))},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:s.Jh.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:n})}(r||(r={}));class o{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?n:(this._emitter||(this._emitter=new s.vl),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class a{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new o),this._token}cancel(){this._token?this._token instanceof o&&this._token.cancel():this._token=r.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof o&&this._token.dispose():this._token=r.None}}function c(e){const t=new a;return e.add({dispose(){t.cancel()}}),t.token}},18544:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>i.e(7638).then(i.bind(i,97638))})},18801:(e,t,i)=>{"use strict";i.d(t,{$b:()=>a,Cr:()=>h,Dk:()=>d,rr:()=>o});var s=i(41234),n=i(5662),r=i(32848);const o=(0,i(63591).u1)("logService");var a;!function(e){e[e.Off=0]="Off",e[e.Trace=1]="Trace",e[e.Debug=2]="Debug",e[e.Info=3]="Info",e[e.Warning=4]="Warning",e[e.Error=5]="Error"}(a||(a={}));const c=a.Info;class l extends n.jG{constructor(){super(...arguments),this.level=c,this._onDidChangeLogLevel=this._register(new s.vl),this.onDidChangeLogLevel=this._onDidChangeLogLevel.event}setLevel(e){this.level!==e&&(this.level=e,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}checkLogLevel(e){return this.level!==a.Off&&this.level<=e}}class h extends l{constructor(e=c,t=!0){super(),this.useColors=t,this.setLevel(e)}trace(e,...t){this.checkLogLevel(a.Trace)&&(this.useColors?console.log("%cTRACE","color: #888",e,...t):console.log(e,...t))}debug(e,...t){this.checkLogLevel(a.Debug)&&(this.useColors?console.log("%cDEBUG","background: #eee; color: #888",e,...t):console.log(e,...t))}info(e,...t){this.checkLogLevel(a.Info)&&(this.useColors?console.log("%c INFO","color: #33f",e,...t):console.log(e,...t))}warn(e,...t){this.checkLogLevel(a.Warning)&&(this.useColors?console.log("%c WARN","color: #993",e,...t):console.log(e,...t))}error(e,...t){this.checkLogLevel(a.Error)&&(this.useColors?console.log("%c ERR","color: #f33",e,...t):console.error(e,...t))}}class d extends l{constructor(e){super(),this.loggers=e,e.length&&this.setLevel(e[0].getLevel())}setLevel(e){for(const t of this.loggers)t.setLevel(e);super.setLevel(e)}trace(e,...t){for(const i of this.loggers)i.trace(e,...t)}debug(e,...t){for(const i of this.loggers)i.debug(e,...t)}info(e,...t){for(const i of this.loggers)i.info(e,...t)}warn(e,...t){for(const i of this.loggers)i.warn(e,...t)}error(e,...t){for(const i of this.loggers)i.error(e,...t)}dispose(){for(const e of this.loggers)e.dispose();super.dispose()}}new r.N1("logLevel",function(e){switch(e){case a.Trace:return"trace";case a.Debug:return"debug";case a.Info:return"info";case a.Warning:return"warn";case a.Error:return"error";case a.Off:return"off"}}(a.Info))},18864:(e,t,i)=>{"use strict";i.d(t,{d:()=>E});var s,n=i(8597),r=i(5646),o=i(36921),a=i(5662),c=i(98067),l=i(31450),h=i(60002),d=i(78209),u=i(27195),g=i(32848),p=i(47508),m=i(98031),f=i(84001),_=i(37227),v=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},C=function(e,t){return function(i,s){t(i,s,e)}};let E=class{static{s=this}static{this.ID="editor.contrib.contextmenu"}static get(e){return e.getContribution(s.ID)}constructor(e,t,i,s,r,o,c,l){this._contextMenuService=t,this._contextViewService=i,this._contextKeyService=s,this._keybindingService=r,this._menuService=o,this._configurationService=c,this._workspaceContextService=l,this._toDispose=new a.Cm,this._contextMenuIsBeingShownCount=0,this._editor=e,this._toDispose.add(this._editor.onContextMenu((e=>this._onContextMenu(e)))),this._toDispose.add(this._editor.onMouseWheel((e=>{if(this._contextMenuIsBeingShownCount>0){const t=this._contextViewService.getContextViewElement(),i=e.srcElement;i.shadowRoot&&n.jG(t)===i.shadowRoot||this._contextViewService.hideContextView()}}))),this._toDispose.add(this._editor.onKeyDown((e=>{this._editor.getOption(24)&&58===e.keyCode&&(e.preventDefault(),e.stopPropagation(),this.showContextMenu())})))}_onContextMenu(e){if(!this._editor.hasModel())return;if(!this._editor.getOption(24))return this._editor.focus(),void(e.target.position&&!this._editor.getSelection().containsPosition(e.target.position)&&this._editor.setPosition(e.target.position));if(12===e.target.type)return;if(6===e.target.type&&e.target.detail.injectedText)return;if(e.event.preventDefault(),e.event.stopPropagation(),11===e.target.type)return this._showScrollbarContextMenu(e.event);if(6!==e.target.type&&7!==e.target.type&&1!==e.target.type)return;if(this._editor.focus(),e.target.position){let t=!1;for(const i of this._editor.getSelections())if(i.containsPosition(e.target.position)){t=!0;break}t||this._editor.setPosition(e.target.position)}let t=null;1!==e.target.type&&(t=e.event),this.showContextMenu(t)}showContextMenu(e){if(!this._editor.getOption(24))return;if(!this._editor.hasModel())return;const t=this._getMenuActions(this._editor.getModel(),this._editor.contextMenuId);t.length>0&&this._doShowContextMenu(t,e)}_getMenuActions(e,t){const i=[],s=this._menuService.getMenuActions(t,this._contextKeyService,{arg:e.uri});for(const n of s){const[,t]=n;let s=0;for(const n of t)if(n instanceof u.nI){const t=this._getMenuActions(e,n.item.submenu);t.length>0&&(i.push(new o.YH(n.id,n.label,t)),s++)}else i.push(n),s++;s&&i.push(new o.wv)}return i.length&&i.pop(),i}_doShowContextMenu(e,t=null){if(!this._editor.hasModel())return;const i=this._editor.getOption(60);this._editor.updateOptions({hover:{enabled:!1}});let s=t;if(!s){this._editor.revealPosition(this._editor.getPosition(),1),this._editor.render();const e=this._editor.getScrolledVisiblePosition(this._editor.getPosition()),t=n.BK(this._editor.getDomNode()),i=t.left+e.left,r=t.top+e.top+e.height;s={x:i,y:r}}const o=this._editor.getOption(128)&&!c.un;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:o?this._editor.getOverflowWidgetsDomNode()??this._editor.getDomNode():void 0,getAnchor:()=>s,getActions:()=>e,getActionViewItem:e=>{const t=this._keybindingFor(e);if(t)return new r.Z4(e,e,{label:!0,keybinding:t.getLabel(),isMenu:!0});const i=e;return"function"===typeof i.getActionViewItem?i.getActionViewItem():new r.Z4(e,e,{icon:!0,label:!0,isMenu:!0})},getKeyBinding:e=>this._keybindingFor(e),onHide:e=>{this._contextMenuIsBeingShownCount--,this._editor.updateOptions({hover:i})}})}_showScrollbarContextMenu(e){if(!this._editor.hasModel())return;if((0,_.ct)(this._workspaceContextService.getWorkspace()))return;const t=this._editor.getOption(73);let i=0;const s=e=>({id:"menu-action-"+ ++i,label:e.label,tooltip:"",class:void 0,enabled:"undefined"===typeof e.enabled||e.enabled,checked:e.checked,run:e.run}),n=(e,t,n,r,a)=>{if(!t)return s({label:e,enabled:t,run:()=>{}});const c=e=>()=>{this._configurationService.updateValue(n,e)},l=[];for(const i of a)l.push(s({label:i.label,checked:r===i.value,run:c(i.value)}));return((e,t)=>new o.YH("menu-action-"+ ++i,e,t,void 0))(e,l)},r=[];r.push(s({label:d.kg("context.minimap.minimap","Minimap"),checked:t.enabled,run:()=>{this._configurationService.updateValue("editor.minimap.enabled",!t.enabled)}})),r.push(new o.wv),r.push(s({label:d.kg("context.minimap.renderCharacters","Render Characters"),enabled:t.enabled,checked:t.renderCharacters,run:()=>{this._configurationService.updateValue("editor.minimap.renderCharacters",!t.renderCharacters)}})),r.push(n(d.kg("context.minimap.size","Vertical size"),t.enabled,"editor.minimap.size",t.size,[{label:d.kg("context.minimap.size.proportional","Proportional"),value:"proportional"},{label:d.kg("context.minimap.size.fill","Fill"),value:"fill"},{label:d.kg("context.minimap.size.fit","Fit"),value:"fit"}])),r.push(n(d.kg("context.minimap.slider","Slider"),t.enabled,"editor.minimap.showSlider",t.showSlider,[{label:d.kg("context.minimap.slider.mouseover","Mouse Over"),value:"mouseover"},{label:d.kg("context.minimap.slider.always","Always"),value:"always"}]));const a=this._editor.getOption(128)&&!c.un;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:a?this._editor.getDomNode():void 0,getAnchor:()=>e,getActions:()=>r,onHide:e=>{this._contextMenuIsBeingShownCount--,this._editor.focus()}})}_keybindingFor(e){return this._keybindingService.lookupKeybinding(e.id)}dispose(){this._contextMenuIsBeingShownCount>0&&this._contextViewService.hideContextView(),this._toDispose.dispose()}};E=s=v([C(1,p.Z),C(2,p.l),C(3,g.fN),C(4,m.b),C(5,u.ez),C(6,f.pG),C(7,_.VR)],E);class b extends l.ks{constructor(){super({id:"editor.action.showContextMenu",label:d.kg("action.showContextMenu.label","Show Editor Context Menu"),alias:"Show Editor Context Menu",precondition:void 0,kbOpts:{kbExpr:h.R.textInputFocus,primary:1092,weight:100}})}run(e,t){E.get(t)?.showContextMenu()}}(0,l.HW)(E.ID,E,2),(0,l.Fl)(b)},18938:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ITextModelService:()=>s});const s=(0,i(63591).u1)("textModelService")},18956:(e,t,i)=>{"use strict";i.d(t,{J:()=>o,k:()=>r});var s=i(631);const n=Object.create(null);function r(e,t){if((0,s.Kg)(t)){const i=n[t];if(void 0===i)throw new Error(`${e} references an unknown codicon: ${t}`);t=i}return n[e]=t,{id:e}}function o(){return n}},19070:(e,t,i)=>{"use strict";i.d(t,{Dk:()=>h,IN:()=>u,RE:()=>p,XS:()=>m,cv:()=>o,ho:()=>l,ir:()=>r,m$:()=>d,mk:()=>c,oJ:()=>a,t8:()=>g});var s=i(66261),n=i(47661);const r={keybindingLabelBackground:(0,s.GuP)(s.HDX),keybindingLabelForeground:(0,s.GuP)(s.eUu),keybindingLabelBorder:(0,s.GuP)(s.zUX),keybindingLabelBottomBorder:(0,s.GuP)(s.Qfh),keybindingLabelShadow:(0,s.GuP)(s.f9l)},o={buttonForeground:(0,s.GuP)(s.G_h),buttonSeparator:(0,s.GuP)(s.Q1$),buttonBackground:(0,s.GuP)(s.XJc),buttonHoverBackground:(0,s.GuP)(s.T9h),buttonSecondaryForeground:(0,s.GuP)(s.Inn),buttonSecondaryBackground:(0,s.GuP)(s.xOA),buttonSecondaryHoverBackground:(0,s.GuP)(s.nZG),buttonBorder:(0,s.GuP)(s.raQ)},a={progressBarBackground:(0,s.GuP)(s.BTi)},c={inputActiveOptionBorder:(0,s.GuP)(s.uNK),inputActiveOptionForeground:(0,s.GuP)(s.$$0),inputActiveOptionBackground:(0,s.GuP)(s.c1f)},l=((0,s.GuP)(s.jOE),(0,s.GuP)(s.Ukx),(0,s.GuP)(s.Ips),(0,s.GuP)(s.kPT),(0,s.GuP)(s.xWN),(0,s.GuP)(s.ZBU),(0,s.GuP)(s.jr9),(0,s.GuP)(s.OcU),(0,s.GuP)(s.C5U),(0,s.GuP)(s.t0B),(0,s.GuP)(s.CgL),(0,s.GuP)(s.FiB),(0,s.GuP)(s.f9l),(0,s.GuP)(s.b1q),(0,s.GuP)(s.tYX),(0,s.GuP)(s.JPj),(0,s.GuP)(s.bNw),(0,s.GuP)(s.vwp),{inputBackground:(0,s.GuP)(s.L4c),inputForeground:(0,s.GuP)(s.cws),inputBorder:(0,s.GuP)(s.Zgs),inputValidationInfoBorder:(0,s.GuP)(s.YSW),inputValidationInfoBackground:(0,s.GuP)(s.I$A),inputValidationInfoForeground:(0,s.GuP)(s.L9Z),inputValidationWarningBorder:(0,s.GuP)(s.C1n),inputValidationWarningBackground:(0,s.GuP)(s.ULt),inputValidationWarningForeground:(0,s.GuP)(s.T5N),inputValidationErrorBorder:(0,s.GuP)(s.eYZ),inputValidationErrorBackground:(0,s.GuP)(s._$n),inputValidationErrorForeground:(0,s.GuP)(s.h9z)}),h={listFilterWidgetBackground:(0,s.GuP)(s.pnl),listFilterWidgetOutline:(0,s.GuP)(s.fiM),listFilterWidgetNoMatchesOutline:(0,s.GuP)(s.P9Z),listFilterWidgetShadow:(0,s.GuP)(s.H8q),inputBoxStyles:l,toggleStyles:c},d={badgeBackground:(0,s.GuP)(s.WMx),badgeForeground:(0,s.GuP)(s.zRE),badgeBorder:(0,s.GuP)(s.b1q)},u=((0,s.GuP)(s.vV$),(0,s.GuP)(s.mc0),(0,s.GuP)(s.etE),(0,s.GuP)(s.etE),(0,s.GuP)(s.sAS),{listBackground:void 0,listInactiveFocusForeground:void 0,listFocusBackground:(0,s.GuP)(s.VFX),listFocusForeground:(0,s.GuP)(s.efJ),listFocusOutline:(0,s.GuP)(s.p7Y),listActiveSelectionBackground:(0,s.GuP)(s.Rjz),listActiveSelectionForeground:(0,s.GuP)(s.GVV),listActiveSelectionIconForeground:(0,s.GuP)(s.fED),listFocusAndSelectionOutline:(0,s.GuP)(s.gtq),listFocusAndSelectionBackground:(0,s.GuP)(s.Rjz),listFocusAndSelectionForeground:(0,s.GuP)(s.GVV),listInactiveSelectionBackground:(0,s.GuP)(s.uNx),listInactiveSelectionIconForeground:(0,s.GuP)(s.C9U),listInactiveSelectionForeground:(0,s.GuP)(s.f4y),listInactiveFocusBackground:(0,s.GuP)(s.CQ3),listInactiveFocusOutline:(0,s.GuP)(s.ijf),listHoverBackground:(0,s.GuP)(s.lO1),listHoverForeground:(0,s.GuP)(s.QRv),listDropOverBackground:(0,s.GuP)(s.Yoe),listDropBetweenBackground:(0,s.GuP)(s.yIp),listSelectionOutline:(0,s.GuP)(s.buw),listHoverOutline:(0,s.GuP)(s.buw),treeIndentGuidesStroke:(0,s.GuP)(s.U4U),treeInactiveIndentGuidesStroke:(0,s.GuP)(s.pft),treeStickyScrollBackground:void 0,treeStickyScrollBorder:void 0,treeStickyScrollShadow:(0,s.GuP)(s.bXl),tableColumnsBorder:(0,s.GuP)(s.k5u),tableOddRowsBackgroundColor:(0,s.GuP)(s.sbQ)});function g(e){return function(e,t){const i={...t};for(const n in e){const t=e[n];i[n]=void 0!==t?(0,s.GuP)(t):void 0}return i}(e,u)}const p={selectBackground:(0,s.GuP)(s.rvE),selectListBackground:(0,s.GuP)(s.lWP),selectForeground:(0,s.GuP)(s.yqq),decoratorRightForeground:(0,s.GuP)(s.NBf),selectBorder:(0,s.GuP)(s.HcB),focusBorder:(0,s.GuP)(s.tAP),listFocusBackground:(0,s.GuP)(s.AlL),listInactiveSelectionIconForeground:(0,s.GuP)(s.c7i),listFocusForeground:(0,s.GuP)(s.nH),listFocusOutline:(0,s.HP_)(s.buw,n.Q1.transparent.toString()),listHoverBackground:(0,s.GuP)(s.lO1),listHoverForeground:(0,s.GuP)(s.QRv),listHoverOutline:(0,s.GuP)(s.buw),selectListBorder:(0,s.GuP)(s.sIe),listBackground:void 0,listActiveSelectionBackground:void 0,listActiveSelectionForeground:void 0,listActiveSelectionIconForeground:void 0,listFocusAndSelectionBackground:void 0,listDropOverBackground:void 0,listDropBetweenBackground:void 0,listInactiveSelectionBackground:void 0,listInactiveSelectionForeground:void 0,listInactiveFocusBackground:void 0,listInactiveFocusOutline:void 0,listSelectionOutline:void 0,listFocusAndSelectionForeground:void 0,listFocusAndSelectionOutline:void 0,listInactiveFocusForeground:void 0,tableColumnsBorder:void 0,tableOddRowsBackgroundColor:void 0,treeIndentGuidesStroke:void 0,treeInactiveIndentGuidesStroke:void 0,treeStickyScrollBackground:void 0,treeStickyScrollBorder:void 0,treeStickyScrollShadow:void 0},m={shadowColor:(0,s.GuP)(s.f9l),borderColor:(0,s.GuP)(s.g$2),foregroundColor:(0,s.GuP)(s.dd_),backgroundColor:(0,s.GuP)(s.c6Y),selectionForegroundColor:(0,s.GuP)(s.pmr),selectionBackgroundColor:(0,s.GuP)(s.Ux$),selectionBorderColor:(0,s.GuP)(s.SNb),separatorColor:(0,s.GuP)(s.D7X),scrollbarShadow:(0,s.GuP)(s.bXl),scrollbarSliderBackground:(0,s.GuP)(s.gnV),scrollbarSliderHoverBackground:(0,s.GuP)(s.cI_),scrollbarSliderActiveBackground:(0,s.GuP)(s.mhZ)}},19131:(e,t,i)=>{"use strict";i.d(t,{C7:()=>o,MS:()=>_,QB:()=>p,Qx:()=>S,VL:()=>b,Vh:()=>c,Vp:()=>a,eu:()=>u,l4:()=>d,o0:()=>E,pW:()=>m,qe:()=>h,rR:()=>y,sS:()=>g,vr:()=>C,wP:()=>f,zG:()=>v});var s=i(91508),n=i(36677),r=i(50973);function o(e,t,i,s){return e!==i?h(i-e,s):h(0,s-t)}const a=0;function c(e){return 0===e}const l=2**26;function h(e,t){return e*l+t}function d(e){const t=e,i=Math.floor(t/l),s=t-i*l;return new r.W(i,s)}function u(e){return Math.floor(e/l)}function g(e){return e}function p(e,t){let i=e+t;return t>=l&&(i-=e%l),i}function m(e,t){return e.reduce(((e,i)=>p(e,t(i))),a)}function f(e,t){return e===t}function _(e,t){const i=e,s=t;if(s-i<=0)return a;const n=Math.floor(i/l),r=Math.floor(s/l),o=s-r*l;if(n===r){return h(0,o-(i-n*l))}return h(r-n,o)}function v(e,t){return e<t}function C(e,t){return e<=t}function E(e,t){return e>=t}function b(e){return h(e.lineNumber-1,e.column-1)}function S(e,t){const i=e,s=Math.floor(i/l),r=i-s*l,o=t,a=Math.floor(o/l),c=o-a*l;return new n.Q(s+1,r+1,a+1,c+1)}function y(e){const t=(0,s.uz)(e);return h(t.length-1,t[t.length-1].length)}},19436:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>i.e(3338).then(i.bind(i,33338))})},19466:(e,t,i)=>{"use strict";i.d(t,{DO:()=>q,w0:()=>x,KP:()=>s,RD:()=>O,vD:()=>I});var s,n=i(8597),r=(i(56245),i(72962)),o=(i(11799),i(88443),i(91581)),a=i(66700),c=i(93090),l=i(35315),h=i(37472),d=i(84565),u=(i(36921),i(25890)),g=i(90766),p=i(10350),m=i(25689),f=i(74320),_=i(41234),v=i(26690),C=i(5662),E=i(1592),b=i(631),S=i(78209),y=(i(42904),i(31308)),w=i(11007);class R extends a.ur{constructor(e){super(e.elements.map((e=>e.element))),this.data=e}}function L(e){return e instanceof a.ur?new R(e):e}class T{constructor(e,t){this.modelProvider=e,this.dnd=t,this.autoExpandDisposable=C.jG.None,this.disposables=new C.Cm}getDragURI(e){return this.dnd.getDragURI(e.element)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map((e=>e.element)),t)}onDragStart(e,t){this.dnd.onDragStart?.(L(e),t)}onDragOver(e,t,i,s,n,r=!0){const o=this.dnd.onDragOver(L(e),t&&t.element,i,s,n),a=this.autoExpandNode!==t;if(a&&(this.autoExpandDisposable.dispose(),this.autoExpandNode=t),"undefined"===typeof t)return o;if(a&&"boolean"!==typeof o&&o.autoExpand&&(this.autoExpandDisposable=(0,g.EQ)((()=>{const e=this.modelProvider(),i=e.getNodeLocation(t);e.isCollapsed(i)&&e.setCollapsed(i,!1),this.autoExpandNode=void 0}),500,this.disposables)),"boolean"===typeof o||!o.accept||"undefined"===typeof o.bubble||o.feedback){if(!r){return{accept:"boolean"===typeof o?o:o.accept,effect:"boolean"===typeof o?void 0:o.effect,feedback:[i]}}return o}if(1===o.bubble){const i=this.modelProvider(),r=i.getNodeLocation(t),o=i.getParentNodeLocation(r),a=i.getNode(o),c=o&&i.getListIndex(o);return this.onDragOver(e,a,c,s,n,!1)}const c=this.modelProvider(),l=c.getNodeLocation(t),h=c.getListIndex(l),d=c.getListRenderCount(l);return{...o,feedback:(0,u.y1)(h,h+d)}}drop(e,t,i,s,n){this.autoExpandDisposable.dispose(),this.autoExpandNode=void 0,this.dnd.drop(L(e),t&&t.element,i,s,n)}onDragEnd(e){this.dnd.onDragEnd?.(e)}dispose(){this.disposables.dispose(),this.dnd.dispose()}}class x{constructor(e){this.delegate=e}getHeight(e){return this.delegate.getHeight(e.element)}getTemplateId(e){return this.delegate.getTemplateId(e.element)}hasDynamicHeight(e){return!!this.delegate.hasDynamicHeight&&this.delegate.hasDynamicHeight(e.element)}setDynamicHeight(e,t){this.delegate.setDynamicHeight?.(e.element,t)}}!function(e){e.None="none",e.OnHover="onHover",e.Always="always"}(s||(s={}));class k{get elements(){return this._elements}constructor(e,t=[]){this._elements=t,this.disposables=new C.Cm,this.onDidChange=_.Jh.forEach(e,(e=>this._elements=e),this.disposables)}dispose(){this.disposables.dispose()}}class A{static{this.DefaultIndent=8}constructor(e,t,i,s,n,r={}){this.renderer=e,this.modelProvider=t,this.activeNodes=s,this.renderedIndentGuides=n,this.renderedElements=new Map,this.renderedNodes=new Map,this.indent=A.DefaultIndent,this.hideTwistiesOfChildlessElements=!1,this.shouldRenderIndentGuides=!1,this.activeIndentNodes=new Set,this.indentGuidesDisposable=C.jG.None,this.disposables=new C.Cm,this.templateId=e.templateId,this.updateOptions(r),_.Jh.map(i,(e=>e.node))(this.onDidChangeNodeTwistieState,this,this.disposables),e.onDidChangeTwistieState?.(this.onDidChangeTwistieState,this,this.disposables)}updateOptions(e={}){if("undefined"!==typeof e.indent){const t=(0,E.qE)(e.indent,0,40);if(t!==this.indent){this.indent=t;for(const[e,t]of this.renderedNodes)this.renderTreeElement(e,t)}}if("undefined"!==typeof e.renderIndentGuides){const t=e.renderIndentGuides!==s.None;if(t!==this.shouldRenderIndentGuides){this.shouldRenderIndentGuides=t;for(const[e,t]of this.renderedNodes)this._renderIndentGuides(e,t);if(this.indentGuidesDisposable.dispose(),t){const e=new C.Cm;this.activeNodes.onDidChange(this._onDidChangeActiveNodes,this,e),this.indentGuidesDisposable=e,this._onDidChangeActiveNodes(this.activeNodes.elements)}}}"undefined"!==typeof e.hideTwistiesOfChildlessElements&&(this.hideTwistiesOfChildlessElements=e.hideTwistiesOfChildlessElements)}renderTemplate(e){const t=(0,n.BC)(e,(0,n.$)(".monaco-tl-row")),i=(0,n.BC)(t,(0,n.$)(".monaco-tl-indent")),s=(0,n.BC)(t,(0,n.$)(".monaco-tl-twistie")),r=(0,n.BC)(t,(0,n.$)(".monaco-tl-contents")),o=this.renderer.renderTemplate(r);return{container:e,indent:i,twistie:s,indentGuidesDisposable:C.jG.None,templateData:o}}renderElement(e,t,i,s){this.renderedNodes.set(e,i),this.renderedElements.set(e.element,e),this.renderTreeElement(e,i),this.renderer.renderElement(e,t,i.templateData,s)}disposeElement(e,t,i,s){i.indentGuidesDisposable.dispose(),this.renderer.disposeElement?.(e,t,i.templateData,s),"number"===typeof s&&(this.renderedNodes.delete(e),this.renderedElements.delete(e.element))}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}onDidChangeTwistieState(e){const t=this.renderedElements.get(e);t&&this.onDidChangeNodeTwistieState(t)}onDidChangeNodeTwistieState(e){const t=this.renderedNodes.get(e);t&&(this._onDidChangeActiveNodes(this.activeNodes.elements),this.renderTreeElement(e,t))}renderTreeElement(e,t){const i=A.DefaultIndent+(e.depth-1)*this.indent;t.twistie.style.paddingLeft=`${i}px`,t.indent.style.width=i+this.indent-16+"px",e.collapsible?t.container.setAttribute("aria-expanded",String(!e.collapsed)):t.container.removeAttribute("aria-expanded"),t.twistie.classList.remove(...m.L.asClassNameArray(p.W.treeItemExpanded));let s=!1;this.renderer.renderTwistie&&(s=this.renderer.renderTwistie(e.element,t.twistie)),e.collapsible&&(!this.hideTwistiesOfChildlessElements||e.visibleChildrenCount>0)?(s||t.twistie.classList.add(...m.L.asClassNameArray(p.W.treeItemExpanded)),t.twistie.classList.add("collapsible"),t.twistie.classList.toggle("collapsed",e.collapsed)):t.twistie.classList.remove("collapsible","collapsed"),this._renderIndentGuides(e,t)}_renderIndentGuides(e,t){if((0,n.w_)(t.indent),t.indentGuidesDisposable.dispose(),!this.shouldRenderIndentGuides)return;const i=new C.Cm,s=this.modelProvider();for(;;){const r=s.getNodeLocation(e),o=s.getParentNodeLocation(r);if(!o)break;const a=s.getNode(o),c=(0,n.$)(".indent-guide",{style:`width: ${this.indent}px`});this.activeIndentNodes.has(a)&&c.classList.add("active"),0===t.indent.childElementCount?t.indent.appendChild(c):t.indent.insertBefore(c,t.indent.firstElementChild),this.renderedIndentGuides.add(a,c),i.add((0,C.s)((()=>this.renderedIndentGuides.delete(a,c)))),e=a}t.indentGuidesDisposable=i}_onDidChangeActiveNodes(e){if(!this.shouldRenderIndentGuides)return;const t=new Set,i=this.modelProvider();e.forEach((e=>{const s=i.getNodeLocation(e);try{const n=i.getParentNodeLocation(s);e.collapsible&&e.children.length>0&&!e.collapsed?t.add(e):n&&t.add(i.getNode(n))}catch{}})),this.activeIndentNodes.forEach((e=>{t.has(e)||this.renderedIndentGuides.forEach(e,(e=>e.classList.remove("active")))})),t.forEach((e=>{this.activeIndentNodes.has(e)||this.renderedIndentGuides.forEach(e,(e=>e.classList.add("active")))})),this.activeIndentNodes=t}dispose(){this.renderedNodes.clear(),this.renderedElements.clear(),this.indentGuidesDisposable.dispose(),(0,C.AS)(this.disposables)}}class N{get totalCount(){return this._totalCount}get matchCount(){return this._matchCount}constructor(e,t,i){this.tree=e,this.keyboardNavigationLabelProvider=t,this._filter=i,this._totalCount=0,this._matchCount=0,this._pattern="",this._lowercasePattern="",this.disposables=new C.Cm,e.onWillRefilter(this.reset,this,this.disposables)}filter(e,t){let i=1;if(this._filter){const s=this._filter.filter(e,t);if(i="boolean"===typeof s?s?1:0:(0,h.iZ)(s)?(0,h.Mn)(s.visibility):s,0===i)return!1}if(this._totalCount++,!this._pattern)return this._matchCount++,{data:v.ne.Default,visibility:i};const s=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e),n=Array.isArray(s)?s:[s];for(const r of n){const e=r&&r.toString();if("undefined"===typeof e)return{data:v.ne.Default,visibility:i};let t;if(this.tree.findMatchType===O.Contiguous){const i=e.toLowerCase().indexOf(this._lowercasePattern);if(i>-1){t=[Number.MAX_SAFE_INTEGER,0];for(let e=this._lowercasePattern.length;e>0;e--)t.push(i+e-1)}}else t=(0,v.dt)(this._pattern,this._lowercasePattern,0,e,e.toLowerCase(),0,{firstMatchCanBeWeak:!0,boostFullMatch:!0});if(t)return this._matchCount++,1===n.length?{data:t,visibility:i}:{data:{label:e,score:t},visibility:i}}return this.tree.findMode===I.Filter?"number"===typeof this.tree.options.defaultFindVisibility?this.tree.options.defaultFindVisibility:this.tree.options.defaultFindVisibility?this.tree.options.defaultFindVisibility(e):2:{data:v.ne.Default,visibility:i}}reset(){this._totalCount=0,this._matchCount=0}dispose(){(0,C.AS)(this.disposables)}}l.l;l.l;o.x8,l.F;var I,O;!function(e){e[e.Highlight=0]="Highlight",e[e.Filter=1]="Filter"}(I||(I={})),function(e){e[e.Fuzzy=0]="Fuzzy",e[e.Contiguous=1]="Contiguous"}(O||(O={}));C.jG;class D{get pattern(){return this._pattern}get mode(){return this._mode}set mode(e){e!==this._mode&&(this._mode=e,this.widget&&(this.widget.mode=this._mode),this.tree.refilter(),this.render(),this._onDidChangeMode.fire(e))}get matchType(){return this._matchType}set matchType(e){e!==this._matchType&&(this._matchType=e,this.widget&&(this.widget.matchType=this._matchType),this.tree.refilter(),this.render(),this._onDidChangeMatchType.fire(e))}constructor(e,t,i,s,n,r={}){this.tree=e,this.view=i,this.filter=s,this.contextViewProvider=n,this.options=r,this._pattern="",this.width=0,this._onDidChangeMode=new _.vl,this.onDidChangeMode=this._onDidChangeMode.event,this._onDidChangeMatchType=new _.vl,this.onDidChangeMatchType=this._onDidChangeMatchType.event,this._onDidChangePattern=new _.vl,this._onDidChangeOpenState=new _.vl,this.onDidChangeOpenState=this._onDidChangeOpenState.event,this.enabledDisposables=new C.Cm,this.disposables=new C.Cm,this._mode=e.options.defaultFindMode??I.Highlight,this._matchType=e.options.defaultFindMatchType??O.Fuzzy,t.onDidSplice(this.onDidSpliceModel,this,this.disposables)}updateOptions(e={}){void 0!==e.defaultFindMode&&(this.mode=e.defaultFindMode),void 0!==e.defaultFindMatchType&&(this.matchType=e.defaultFindMatchType)}onDidSpliceModel(){this.widget&&0!==this.pattern.length&&(this.tree.refilter(),this.render())}render(){const e=this.filter.totalCount>0&&0===this.filter.matchCount;this.pattern&&e?((0,w.xE)((0,S.kg)("replFindNoResults","No results")),this.tree.options.showNotFoundMessage??1?this.widget?.showMessage({type:2,content:(0,S.kg)("not found","No elements found.")}):this.widget?.showMessage({type:2})):(this.widget?.clearMessage(),this.pattern&&(0,w.xE)((0,S.kg)("replFindResults","{0} results",this.filter.matchCount)))}shouldAllowFocus(e){return!this.widget||!this.pattern||(this.filter.totalCount>0&&this.filter.matchCount<=1||!v.ne.isDefault(e.filterData))}layout(e){this.width=e,this.widget?.layout(e)}dispose(){this._history=void 0,this._onDidChangePattern.dispose(),this.enabledDisposables.dispose(),this.disposables.dispose()}}function M(e,t){return e.position===t.position&&P(e,t)}function P(e,t){return e.node.element===t.node.element&&e.startIndex===t.startIndex&&e.height===t.height&&e.endIndex===t.endIndex}class F{constructor(e=[]){this.stickyNodes=e}get count(){return this.stickyNodes.length}equal(e){return(0,u.aI)(this.stickyNodes,e.stickyNodes,M)}lastNodePartiallyVisible(){if(0===this.count)return!1;const e=this.stickyNodes[this.count-1];if(1===this.count)return 0!==e.position;const t=this.stickyNodes[this.count-2];return t.position+t.height!==e.position}animationStateChanged(e){if(!(0,u.aI)(this.stickyNodes,e.stickyNodes,P))return!1;if(0===this.count)return!1;const t=this.stickyNodes[this.count-1],i=e.stickyNodes[e.count-1];return t.position!==i.position}}class U{constrainStickyScrollNodes(e,t,i){for(let s=0;s<e.length;s++){const n=e[s];if(n.position+n.height>i||s>=t)return e.slice(0,s)}return e}}class H extends C.jG{constructor(e,t,i,s,n,r={}){super(),this.tree=e,this.model=t,this.view=i,this.treeDelegate=n,this.maxWidgetViewRatio=.4;const o=this.validateStickySettings(r);this.stickyScrollMaxItemCount=o.stickyScrollMaxItemCount,this.stickyScrollDelegate=r.stickyScrollDelegate??new U,this._widget=this._register(new B(i.getScrollableElement(),i,e,s,n,r.accessibilityProvider)),this.onDidChangeHasFocus=this._widget.onDidChangeHasFocus,this.onContextMenu=this._widget.onContextMenu,this._register(i.onDidScroll((()=>this.update()))),this._register(i.onDidChangeContentHeight((()=>this.update()))),this._register(e.onDidChangeCollapseState((()=>this.update()))),this.update()}get height(){return this._widget.height}getNodeAtHeight(e){let t;if(t=0===e?this.view.firstVisibleIndex:this.view.indexAt(e+this.view.scrollTop),!(t<0||t>=this.view.length))return this.view.element(t)}update(){const e=this.getNodeAtHeight(0);if(!e||0===this.tree.scrollTop)return void this._widget.setState(void 0);const t=this.findStickyState(e);this._widget.setState(t)}findStickyState(e){const t=[];let i=e,s=0,n=this.getNextStickyNode(i,void 0,s);for(;n&&(t.push(n),s+=n.height,!(t.length<=this.stickyScrollMaxItemCount)||(i=this.getNextVisibleNode(n),i));)n=this.getNextStickyNode(i,n.node,s);const r=this.constrainStickyNodes(t);return r.length?new F(r):void 0}getNextVisibleNode(e){return this.getNodeAtHeight(e.position+e.height)}getNextStickyNode(e,t,i){const s=this.getAncestorUnderPrevious(e,t);if(s){if(s===e){if(!this.nodeIsUncollapsedParent(e))return;if(this.nodeTopAlignsWithStickyNodesBottom(e,i))return}return this.createStickyScrollNode(s,i)}}nodeTopAlignsWithStickyNodesBottom(e,t){const i=this.getNodeIndex(e),s=this.view.getElementTop(i),n=t;return this.view.scrollTop===s-n}createStickyScrollNode(e,t){const i=this.treeDelegate.getHeight(e),{startIndex:s,endIndex:n}=this.getNodeRange(e);return{node:e,position:this.calculateStickyNodePosition(n,t,i),height:i,startIndex:s,endIndex:n}}getAncestorUnderPrevious(e,t=void 0){let i=e,s=this.getParentNode(i);for(;s;){if(s===t)return i;i=s,s=this.getParentNode(i)}if(void 0===t)return i}calculateStickyNodePosition(e,t,i){let s=this.view.getRelativeTop(e);if(null===s&&this.view.firstVisibleIndex===e&&e+1<this.view.length){const t=this.treeDelegate.getHeight(this.view.element(e)),i=this.view.getRelativeTop(e+1);s=i?i-t/this.view.renderHeight:null}if(null===s)return t;const n=this.view.element(e),r=this.treeDelegate.getHeight(n),o=s*this.view.renderHeight+r;return t+i>o&&t<=o?o-i:t}constrainStickyNodes(e){if(0===e.length)return[];const t=this.view.renderHeight*this.maxWidgetViewRatio,i=e[e.length-1];if(e.length<=this.stickyScrollMaxItemCount&&i.position+i.height<=t)return e;const s=this.stickyScrollDelegate.constrainStickyScrollNodes(e,this.stickyScrollMaxItemCount,t);if(!s.length)return[];const n=s[s.length-1];if(s.length>this.stickyScrollMaxItemCount||n.position+n.height>t)throw new Error("stickyScrollDelegate violates constraints");return s}getParentNode(e){const t=this.model.getNodeLocation(e),i=this.model.getParentNodeLocation(t);return i?this.model.getNode(i):void 0}nodeIsUncollapsedParent(e){const t=this.model.getNodeLocation(e);return this.model.getListRenderCount(t)>1}getNodeIndex(e){const t=this.model.getNodeLocation(e);return this.model.getListIndex(t)}getNodeRange(e){const t=this.model.getNodeLocation(e),i=this.model.getListIndex(t);if(i<0)throw new Error("Node not found in tree");return{startIndex:i,endIndex:i+this.model.getListRenderCount(t)-1}}nodePositionTopBelowWidget(e){const t=[];let i=this.getParentNode(e);for(;i;)t.push(i),i=this.getParentNode(i);let s=0;for(let n=0;n<t.length&&n<this.stickyScrollMaxItemCount;n++)s+=this.treeDelegate.getHeight(t[n]);return s}domFocus(){this._widget.domFocus()}focusedLast(){return this._widget.focusedLast()}updateOptions(e={}){if(!e.stickyScrollMaxItemCount)return;const t=this.validateStickySettings(e);this.stickyScrollMaxItemCount!==t.stickyScrollMaxItemCount&&(this.stickyScrollMaxItemCount=t.stickyScrollMaxItemCount,this.update())}validateStickySettings(e){let t=7;return"number"===typeof e.stickyScrollMaxItemCount&&(t=Math.max(e.stickyScrollMaxItemCount,1)),{stickyScrollMaxItemCount:t}}}class B{constructor(e,t,i,s,r,o){this.view=t,this.tree=i,this.treeRenderers=s,this.treeDelegate=r,this.accessibilityProvider=o,this._previousElements=[],this._previousStateDisposables=new C.Cm,this._rootDomNode=(0,n.$)(".monaco-tree-sticky-container.empty"),e.appendChild(this._rootDomNode);const a=(0,n.$)(".monaco-tree-sticky-container-shadow");this._rootDomNode.appendChild(a),this.stickyScrollFocus=new W(this._rootDomNode,t),this.onDidChangeHasFocus=this.stickyScrollFocus.onDidChangeHasFocus,this.onContextMenu=this.stickyScrollFocus.onContextMenu}get height(){if(!this._previousState)return 0;const e=this._previousState.stickyNodes[this._previousState.count-1];return e.position+e.height}setState(e){const t=!!this._previousState&&this._previousState.count>0,i=!!e&&e.count>0;if(!t&&!i||t&&i&&this._previousState.equal(e))return;if(t!==i&&this.setVisible(i),!i)return this._previousState=void 0,this._previousElements=[],void this._previousStateDisposables.clear();const s=e.stickyNodes[e.count-1];if(this._previousState&&e.animationStateChanged(this._previousState))this._previousElements[this._previousState.count-1].style.top=`${s.position}px`;else{this._previousStateDisposables.clear();const t=Array(e.count);for(let i=e.count-1;i>=0;i--){const s=e.stickyNodes[i],{element:n,disposable:r}=this.createElement(s,i,e.count);t[i]=n,this._rootDomNode.appendChild(n),this._previousStateDisposables.add(r)}this.stickyScrollFocus.updateElements(t,e),this._previousElements=t}this._previousState=e,this._rootDomNode.style.height=`${s.position+s.height}px`}createElement(e,t,i){const s=e.startIndex,n=document.createElement("div");n.style.top=`${e.position}px`,!1!==this.tree.options.setRowHeight&&(n.style.height=`${e.height}px`),!1!==this.tree.options.setRowLineHeight&&(n.style.lineHeight=`${e.height}px`),n.classList.add("monaco-tree-sticky-row"),n.classList.add("monaco-list-row"),n.setAttribute("data-index",`${s}`),n.setAttribute("data-parity",s%2===0?"even":"odd"),n.setAttribute("id",this.view.getElementID(s));const r=this.setAccessibilityAttributes(n,e.node.element,t,i),o=this.treeDelegate.getTemplateId(e.node),a=this.treeRenderers.find((e=>e.templateId===o));if(!a)throw new Error(`No renderer found for template id ${o}`);let c=e.node;c===this.tree.getNode(this.tree.getNodeLocation(e.node))&&(c=new Proxy(e.node,{}));const l=a.renderTemplate(n);a.renderElement(c,e.startIndex,l,e.height);const h=(0,C.s)((()=>{r.dispose(),a.disposeElement(c,e.startIndex,l,e.height),a.disposeTemplate(l),n.remove()}));return{element:n,disposable:h}}setAccessibilityAttributes(e,t,i,s){if(!this.accessibilityProvider)return C.jG.None;this.accessibilityProvider.getSetSize&&e.setAttribute("aria-setsize",String(this.accessibilityProvider.getSetSize(t,i,s))),this.accessibilityProvider.getPosInSet&&e.setAttribute("aria-posinset",String(this.accessibilityProvider.getPosInSet(t,i))),this.accessibilityProvider.getRole&&e.setAttribute("role",this.accessibilityProvider.getRole(t)??"treeitem");const n=this.accessibilityProvider.getAriaLabel(t),r=n&&"string"!==typeof n?n:(0,y.lk)(n),o=(0,y.fm)((t=>{const i=t.readObservable(r);i?e.setAttribute("aria-label",i):e.removeAttribute("aria-label")}));"string"===typeof n||n&&e.setAttribute("aria-label",n.get());const a=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(t);return"number"===typeof a&&e.setAttribute("aria-level",`${a}`),e.setAttribute("aria-selected",String(!1)),o}setVisible(e){this._rootDomNode.classList.toggle("empty",!e),e||this.stickyScrollFocus.updateElements([],void 0)}domFocus(){this.stickyScrollFocus.domFocus()}focusedLast(){return this.stickyScrollFocus.focusedLast()}dispose(){this.stickyScrollFocus.dispose(),this._previousStateDisposables.dispose(),this._rootDomNode.remove()}}class W extends C.jG{get domHasFocus(){return this._domHasFocus}set domHasFocus(e){e!==this._domHasFocus&&(this._onDidChangeHasFocus.fire(e),this._domHasFocus=e)}constructor(e,t){super(),this.container=e,this.view=t,this.focusedIndex=-1,this.elements=[],this._onDidChangeHasFocus=new _.vl,this.onDidChangeHasFocus=this._onDidChangeHasFocus.event,this._onContextMenu=new _.vl,this.onContextMenu=this._onContextMenu.event,this._domHasFocus=!1,this._register((0,n.ko)(this.container,"focus",(()=>this.onFocus()))),this._register((0,n.ko)(this.container,"blur",(()=>this.onBlur()))),this._register(this.view.onDidFocus((()=>this.toggleStickyScrollFocused(!1)))),this._register(this.view.onKeyDown((e=>this.onKeyDown(e)))),this._register(this.view.onMouseDown((e=>this.onMouseDown(e)))),this._register(this.view.onContextMenu((e=>this.handleContextMenu(e))))}handleContextMenu(e){const t=e.browserEvent.target;if(!(0,c.Es)(t)&&!(0,c.xu)(t))return void(this.focusedLast()&&this.view.domFocus());if(!(0,n.kx)(e.browserEvent)){if(!this.state)throw new Error("Context menu should not be triggered when state is undefined");const t=this.state.stickyNodes.findIndex((t=>t.node.element===e.element?.element));if(-1===t)throw new Error("Context menu should not be triggered when element is not in sticky scroll widget");return this.container.focus(),void this.setFocus(t)}if(!this.state||this.focusedIndex<0)throw new Error("Context menu key should not be triggered when focus is not in sticky scroll widget");const i=this.state.stickyNodes[this.focusedIndex].node.element,s=this.elements[this.focusedIndex];this._onContextMenu.fire({element:i,anchor:s,browserEvent:e.browserEvent,isStickyScroll:!0})}onKeyDown(e){if(this.domHasFocus&&this.state)if("ArrowUp"===e.key)this.setFocusedElement(Math.max(0,this.focusedIndex-1)),e.preventDefault(),e.stopPropagation();else if("ArrowDown"===e.key||"ArrowRight"===e.key){if(this.focusedIndex>=this.state.count-1){const e=this.state.stickyNodes[this.state.count-1].startIndex+1;this.view.domFocus(),this.view.setFocus([e]),this.scrollNodeUnderWidget(e,this.state)}else this.setFocusedElement(this.focusedIndex+1);e.preventDefault(),e.stopPropagation()}}onMouseDown(e){const t=e.browserEvent.target;((0,c.Es)(t)||(0,c.xu)(t))&&(e.browserEvent.preventDefault(),e.browserEvent.stopPropagation())}updateElements(e,t){if(t&&0===t.count)throw new Error("Sticky scroll state must be undefined when there are no sticky nodes");if(t&&t.count!==e.length)throw new Error("Sticky scroll focus received illigel state");const i=this.focusedIndex;if(this.removeFocus(),this.elements=e,this.state=t,t){const e=(0,E.qE)(i,0,t.count-1);this.setFocus(e)}else this.domHasFocus&&this.view.domFocus();this.container.tabIndex=t?0:-1}setFocusedElement(e){const t=this.state;if(!t)throw new Error("Cannot set focus when state is undefined");if(this.setFocus(e),!(e<t.count-1)&&t.lastNodePartiallyVisible()){const i=t.stickyNodes[e];this.scrollNodeUnderWidget(i.endIndex+1,t)}}scrollNodeUnderWidget(e,t){const i=t.stickyNodes[t.count-1],s=t.count>1?t.stickyNodes[t.count-2]:void 0,n=this.view.getElementTop(e),r=s?s.position+s.height+i.height:i.height;this.view.scrollTop=n-r}domFocus(){if(!this.state)throw new Error("Cannot focus when state is undefined");this.container.focus()}focusedLast(){return!!this.state&&this.view.getHTMLElement().classList.contains("sticky-scroll-focused")}removeFocus(){-1!==this.focusedIndex&&(this.toggleElementFocus(this.elements[this.focusedIndex],!1),this.focusedIndex=-1)}setFocus(e){if(0>e)throw new Error("addFocus() can not remove focus");if(!this.state&&e>=0)throw new Error("Cannot set focus index when state is undefined");if(this.state&&e>=this.state.count)throw new Error("Cannot set focus index to an index that does not exist");const t=this.focusedIndex;t>=0&&this.toggleElementFocus(this.elements[t],!1),e>=0&&this.toggleElementFocus(this.elements[e],!0),this.focusedIndex=e}toggleElementFocus(e,t){this.toggleElementActiveFocus(e,t&&this.domHasFocus),this.toggleElementPassiveFocus(e,t)}toggleCurrentElementActiveFocus(e){-1!==this.focusedIndex&&this.toggleElementActiveFocus(this.elements[this.focusedIndex],e)}toggleElementActiveFocus(e,t){e.classList.toggle("focused",t)}toggleElementPassiveFocus(e,t){e.classList.toggle("passive-focused",t)}toggleStickyScrollFocused(e){this.view.getHTMLElement().classList.toggle("sticky-scroll-focused",e)}onFocus(){if(!this.state||0===this.elements.length)throw new Error("Cannot focus when state is undefined or elements are empty");this.domHasFocus=!0,this.toggleStickyScrollFocused(!0),this.toggleCurrentElementActiveFocus(!0),-1===this.focusedIndex&&this.setFocus(0)}onBlur(){this.domHasFocus=!1,this.toggleCurrentElementActiveFocus(!1)}dispose(){this.toggleStickyScrollFocused(!1),this._onDidChangeHasFocus.fire(!1),super.dispose()}}function V(e){let t=d.Lx.Unknown;return(0,n.XD)(e.browserEvent.target,"monaco-tl-twistie","monaco-tl-row")?t=d.Lx.Twistie:(0,n.XD)(e.browserEvent.target,"monaco-tl-contents","monaco-tl-row")?t=d.Lx.Element:(0,n.XD)(e.browserEvent.target,"monaco-tree-type-filter","monaco-list")&&(t=d.Lx.Filter),{browserEvent:e.browserEvent,element:e.element?e.element.element:null,target:t}}function z(e){const t=(0,c.Es)(e.browserEvent.target);return{element:e.element?e.element.element:null,browserEvent:e.browserEvent,anchor:e.anchor,isStickyScroll:t}}function G(e,t){t(e),e.children.forEach((e=>G(e,t)))}class j{get nodeSet(){return this._nodeSet||(this._nodeSet=this.createNodeSet()),this._nodeSet}constructor(e,t){this.getFirstViewElementWithTrait=e,this.identityProvider=t,this.nodes=[],this._onDidChange=new _.vl,this.onDidChange=this._onDidChange.event}set(e,t){!t?.__forceEvent&&(0,u.aI)(this.nodes,e)||this._set(e,!1,t)}_set(e,t,i){if(this.nodes=[...e],this.elements=void 0,this._nodeSet=void 0,!t){const e=this;this._onDidChange.fire({get elements(){return e.get()},browserEvent:i})}}get(){return this.elements||(this.elements=this.nodes.map((e=>e.element))),[...this.elements]}getNodes(){return this.nodes}has(e){return this.nodeSet.has(e)}onDidModelSplice({insertedNodes:e,deletedNodes:t}){if(!this.identityProvider){const e=this.createNodeSet(),i=t=>e.delete(t);return t.forEach((e=>G(e,i))),void this.set([...e.values()])}const i=new Set,s=e=>i.add(this.identityProvider.getId(e.element).toString());t.forEach((e=>G(e,s)));const n=new Map,r=e=>n.set(this.identityProvider.getId(e.element).toString(),e);e.forEach((e=>G(e,r)));const o=[];for(const a of this.nodes){const e=this.identityProvider.getId(a.element).toString();if(i.has(e)){const t=n.get(e);t&&t.visible&&o.push(t)}else o.push(a)}if(this.nodes.length>0&&0===o.length){const e=this.getFirstViewElementWithTrait();e&&o.push(e)}this._set(o,!0)}createNodeSet(){const e=new Set;for(const t of this.nodes)e.add(t);return e}}class K extends c.MH{constructor(e,t,i){super(e),this.tree=t,this.stickyScrollProvider=i}onViewPointer(e){if((0,c.Bm)(e.browserEvent.target)||(0,c.B6)(e.browserEvent.target)||(0,c.bm)(e.browserEvent.target))return;if(e.browserEvent.isHandledByList)return;const t=e.element;if(!t)return super.onViewPointer(e);if(this.isSelectionRangeChangeEvent(e)||this.isSelectionSingleChangeEvent(e))return super.onViewPointer(e);const i=e.browserEvent.target,s=i.classList.contains("monaco-tl-twistie")||i.classList.contains("monaco-icon-label")&&i.classList.contains("folder-icon")&&e.browserEvent.offsetX<16,n=(0,c.xu)(e.browserEvent.target);let r=!1;if(r=!!n||("function"===typeof this.tree.expandOnlyOnTwistieClick?this.tree.expandOnlyOnTwistieClick(t.element):!!this.tree.expandOnlyOnTwistieClick),n)this.handleStickyScrollMouseEvent(e,t);else{if(r&&!s&&2!==e.browserEvent.detail)return super.onViewPointer(e);if(!this.tree.expandOnDoubleClick&&2===e.browserEvent.detail)return super.onViewPointer(e)}if(t.collapsible&&(!n||s)){const i=this.tree.getNodeLocation(t),n=e.browserEvent.altKey;if(this.tree.setFocus([i]),this.tree.toggleCollapsed(i,n),s)return void(e.browserEvent.isHandledByList=!0)}n||super.onViewPointer(e)}handleStickyScrollMouseEvent(e,t){if((0,c.b$)(e.browserEvent.target)||(0,c.W0)(e.browserEvent.target))return;const i=this.stickyScrollProvider();if(!i)throw new Error("Sticky scroll controller not found");const s=this.list.indexOf(t),n=this.list.getElementTop(s),r=i.nodePositionTopBelowWidget(t);this.tree.scrollTop=n-r,this.list.domFocus(),this.list.setFocus([s]),this.list.setSelection([s])}onDoubleClick(e){!e.browserEvent.target.classList.contains("monaco-tl-twistie")&&this.tree.expandOnDoubleClick&&(e.browserEvent.isHandledByList||super.onDoubleClick(e))}onMouseDown(e){const t=e.browserEvent.target;(0,c.Es)(t)||(0,c.xu)(t)||super.onMouseDown(e)}onContextMenu(e){const t=e.browserEvent.target;(0,c.Es)(t)||(0,c.xu)(t)||super.onContextMenu(e)}}class Y extends c.B8{constructor(e,t,i,s,n,r,o,a){super(e,t,i,s,a),this.focusTrait=n,this.selectionTrait=r,this.anchorTrait=o}createMouseController(e){return new K(this,e.tree,e.stickyScrollProvider)}splice(e,t,i=[]){if(super.splice(e,t,i),0===i.length)return;const s=[],n=[];let r;i.forEach(((t,i)=>{this.focusTrait.has(t)&&s.push(e+i),this.selectionTrait.has(t)&&n.push(e+i),this.anchorTrait.has(t)&&(r=e+i)})),s.length>0&&super.setFocus((0,u.dM)([...super.getFocus(),...s])),n.length>0&&super.setSelection((0,u.dM)([...super.getSelection(),...n])),"number"===typeof r&&super.setAnchor(r)}setFocus(e,t,i=!1){super.setFocus(e,t),i||this.focusTrait.set(e.map((e=>this.element(e))),t)}setSelection(e,t,i=!1){super.setSelection(e,t),i||this.selectionTrait.set(e.map((e=>this.element(e))),t)}setAnchor(e,t=!1){super.setAnchor(e),t||("undefined"===typeof e?this.anchorTrait.set([]):this.anchorTrait.set([this.element(e)]))}}class q{get onDidScroll(){return this.view.onDidScroll}get onDidChangeFocus(){return this.eventBufferer.wrapEvent(this.focus.onDidChange)}get onDidChangeSelection(){return this.eventBufferer.wrapEvent(this.selection.onDidChange)}get onMouseDblClick(){return _.Jh.filter(_.Jh.map(this.view.onMouseDblClick,V),(e=>e.target!==d.Lx.Filter))}get onMouseOver(){return _.Jh.map(this.view.onMouseOver,V)}get onMouseOut(){return _.Jh.map(this.view.onMouseOut,V)}get onContextMenu(){return _.Jh.any(_.Jh.filter(_.Jh.map(this.view.onContextMenu,z),(e=>!e.isStickyScroll)),this.stickyScrollController?.onContextMenu??_.Jh.None)}get onPointer(){return _.Jh.map(this.view.onPointer,V)}get onKeyDown(){return this.view.onKeyDown}get onDidFocus(){return this.view.onDidFocus}get onDidChangeModel(){return _.Jh.signal(this.model.onDidSplice)}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get findMode(){return this.findController?.mode??I.Highlight}set findMode(e){this.findController&&(this.findController.mode=e)}get findMatchType(){return this.findController?.matchType??O.Fuzzy}set findMatchType(e){this.findController&&(this.findController.matchType=e)}get expandOnDoubleClick(){return"undefined"===typeof this._options.expandOnDoubleClick||this._options.expandOnDoubleClick}get expandOnlyOnTwistieClick(){return"undefined"===typeof this._options.expandOnlyOnTwistieClick||this._options.expandOnlyOnTwistieClick}get onDidDispose(){return this.view.onDidDispose}constructor(e,t,i,o,a={}){this._user=e,this._options=a,this.eventBufferer=new _.at,this.onDidChangeFindOpenState=_.Jh.None,this.onDidChangeStickyScrollFocused=_.Jh.None,this.disposables=new C.Cm,this._onWillRefilter=new _.vl,this.onWillRefilter=this._onWillRefilter.event,this._onDidUpdateOptions=new _.vl,this.treeDelegate=new x(i);const l=new _.Wj,h=new _.Wj,d=this.disposables.add(new k(h.event)),u=new f.db;this.renderers=o.map((e=>new A(e,(()=>this.model),l.event,d,u,a)));for(const s of this.renderers)this.disposables.add(s);let p;var m,v;a.keyboardNavigationLabelProvider&&(p=new N(this,a.keyboardNavigationLabelProvider,a.filter),a={...a,filter:p},this.disposables.add(p)),this.focus=new j((()=>this.view.getFocusedElements()[0]),a.identityProvider),this.selection=new j((()=>this.view.getSelectedElements()[0]),a.identityProvider),this.anchor=new j((()=>this.view.getAnchorElement()),a.identityProvider),this.view=new Y(e,t,this.treeDelegate,this.renderers,this.focus,this.selection,this.anchor,{...(m=()=>this.model,v=a,v&&{...v,identityProvider:v.identityProvider&&{getId:e=>v.identityProvider.getId(e.element)},dnd:v.dnd&&new T(m,v.dnd),multipleSelectionController:v.multipleSelectionController&&{isSelectionSingleChangeEvent:e=>v.multipleSelectionController.isSelectionSingleChangeEvent({...e,element:e.element}),isSelectionRangeChangeEvent:e=>v.multipleSelectionController.isSelectionRangeChangeEvent({...e,element:e.element})},accessibilityProvider:v.accessibilityProvider&&{...v.accessibilityProvider,getSetSize(e){const t=m(),i=t.getNodeLocation(e),s=t.getParentNodeLocation(i);return t.getNode(s).visibleChildrenCount},getPosInSet:e=>e.visibleChildIndex+1,isChecked:v.accessibilityProvider&&v.accessibilityProvider.isChecked?e=>v.accessibilityProvider.isChecked(e.element):void 0,getRole:v.accessibilityProvider&&v.accessibilityProvider.getRole?e=>v.accessibilityProvider.getRole(e.element):()=>"treeitem",getAriaLabel:e=>v.accessibilityProvider.getAriaLabel(e.element),getWidgetAriaLabel:()=>v.accessibilityProvider.getWidgetAriaLabel(),getWidgetRole:v.accessibilityProvider&&v.accessibilityProvider.getWidgetRole?()=>v.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:v.accessibilityProvider&&v.accessibilityProvider.getAriaLevel?e=>v.accessibilityProvider.getAriaLevel(e.element):e=>e.depth,getActiveDescendantId:v.accessibilityProvider.getActiveDescendantId&&(e=>v.accessibilityProvider.getActiveDescendantId(e.element))},keyboardNavigationLabelProvider:v.keyboardNavigationLabelProvider&&{...v.keyboardNavigationLabelProvider,getKeyboardNavigationLabel:e=>v.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e.element)}}),tree:this,stickyScrollProvider:()=>this.stickyScrollController}),this.model=this.createModel(e,this.view,a),l.input=this.model.onDidChangeCollapseState;const E=_.Jh.forEach(this.model.onDidSplice,(e=>{this.eventBufferer.bufferEvents((()=>{this.focus.onDidModelSplice(e),this.selection.onDidModelSplice(e)}))}),this.disposables);E((()=>null),null,this.disposables);const b=this.disposables.add(new _.vl),S=this.disposables.add(new g.ve(0));if(this.disposables.add(_.Jh.any(E,this.focus.onDidChange,this.selection.onDidChange)((()=>{S.trigger((()=>{const e=new Set;for(const t of this.focus.getNodes())e.add(t);for(const t of this.selection.getNodes())e.add(t);b.fire([...e.values()])}))}))),h.input=b.event,!1!==a.keyboardSupport){const e=_.Jh.chain(this.view.onKeyDown,(e=>e.filter((e=>!(0,c.B6)(e.target))).map((e=>new r.Z(e)))));_.Jh.chain(e,(e=>e.filter((e=>15===e.keyCode))))(this.onLeftArrow,this,this.disposables),_.Jh.chain(e,(e=>e.filter((e=>17===e.keyCode))))(this.onRightArrow,this,this.disposables),_.Jh.chain(e,(e=>e.filter((e=>10===e.keyCode))))(this.onSpace,this,this.disposables)}if((a.findWidgetEnabled??1)&&a.keyboardNavigationLabelProvider&&a.contextViewProvider){const e=this.options.findWidgetStyles?{styles:this.options.findWidgetStyles}:void 0;this.findController=new D(this,this.model,this.view,p,a.contextViewProvider,e),this.focusNavigationFilter=e=>this.findController.shouldAllowFocus(e),this.onDidChangeFindOpenState=this.findController.onDidChangeOpenState,this.disposables.add(this.findController),this.onDidChangeFindMode=this.findController.onDidChangeMode,this.onDidChangeFindMatchType=this.findController.onDidChangeMatchType}else this.onDidChangeFindMode=_.Jh.None,this.onDidChangeFindMatchType=_.Jh.None;a.enableStickyScroll&&(this.stickyScrollController=new H(this,this.model,this.view,this.renderers,this.treeDelegate,a),this.onDidChangeStickyScrollFocused=this.stickyScrollController.onDidChangeHasFocus),this.styleElement=(0,n.li)(this.view.getHTMLElement()),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===s.Always)}updateOptions(e={}){this._options={...this._options,...e};for(const t of this.renderers)t.updateOptions(e);this.view.updateOptions(this._options),this.findController?.updateOptions(e),this.updateStickyScroll(e),this._onDidUpdateOptions.fire(this._options),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===s.Always)}get options(){return this._options}updateStickyScroll(e){!this.stickyScrollController&&this._options.enableStickyScroll?(this.stickyScrollController=new H(this,this.model,this.view,this.renderers,this.treeDelegate,this._options),this.onDidChangeStickyScrollFocused=this.stickyScrollController.onDidChangeHasFocus):this.stickyScrollController&&!this._options.enableStickyScroll&&(this.onDidChangeStickyScrollFocused=_.Jh.None,this.stickyScrollController.dispose(),this.stickyScrollController=void 0),this.stickyScrollController?.updateOptions(e)}getHTMLElement(){return this.view.getHTMLElement()}get scrollTop(){return this.view.scrollTop}set scrollTop(e){this.view.scrollTop=e}get scrollHeight(){return this.view.scrollHeight}get renderHeight(){return this.view.renderHeight}get ariaLabel(){return this.view.ariaLabel}set ariaLabel(e){this.view.ariaLabel=e}domFocus(){this.stickyScrollController?.focusedLast()?this.stickyScrollController.domFocus():this.view.domFocus()}layout(e,t){this.view.layout(e,t),(0,b.Et)(t)&&this.findController?.layout(t)}style(e){const t=`.${this.view.domId}`,i=[];e.treeIndentGuidesStroke&&(i.push(`.monaco-list${t}:hover .monaco-tl-indent > .indent-guide, .monaco-list${t}.always .monaco-tl-indent > .indent-guide { border-color: ${e.treeInactiveIndentGuidesStroke}; }`),i.push(`.monaco-list${t} .monaco-tl-indent > .indent-guide.active { border-color: ${e.treeIndentGuidesStroke}; }`));const s=e.treeStickyScrollBackground??e.listBackground;s&&(i.push(`.monaco-list${t} .monaco-scrollable-element .monaco-tree-sticky-container { background-color: ${s}; }`),i.push(`.monaco-list${t} .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-row { background-color: ${s}; }`)),e.treeStickyScrollBorder&&i.push(`.monaco-list${t} .monaco-scrollable-element .monaco-tree-sticky-container { border-bottom: 1px solid ${e.treeStickyScrollBorder}; }`),e.treeStickyScrollShadow&&i.push(`.monaco-list${t} .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-container-shadow { box-shadow: ${e.treeStickyScrollShadow} 0 6px 6px -6px inset; height: 3px; }`),e.listFocusForeground&&(i.push(`.monaco-list${t}.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container:focus .monaco-list-row.focused { color: ${e.listFocusForeground}; }`),i.push(`.monaco-list${t}:not(.sticky-scroll-focused) .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.focused { color: inherit; }`));const r=(0,n.gI)(e.listFocusAndSelectionOutline,(0,n.gI)(e.listSelectionOutline,e.listFocusOutline??""));r&&(i.push(`.monaco-list${t}.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container:focus .monaco-list-row.focused.selected { outline: 1px solid ${r}; outline-offset: -1px;}`),i.push(`.monaco-list${t}:not(.sticky-scroll-focused) .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.focused.selected { outline: inherit;}`)),e.listFocusOutline&&(i.push(`.monaco-list${t}.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container:focus .monaco-list-row.focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }`),i.push(`.monaco-list${t}:not(.sticky-scroll-focused) .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.focused { outline: inherit; }`),i.push(`.monaco-workbench.context-menu-visible .monaco-list${t}.last-focused.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.passive-focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }`),i.push(`.monaco-workbench.context-menu-visible .monaco-list${t}.last-focused.sticky-scroll-focused .monaco-list-rows .monaco-list-row.focused { outline: inherit; }`),i.push(`.monaco-workbench.context-menu-visible .monaco-list${t}.last-focused:not(.sticky-scroll-focused) .monaco-tree-sticky-container .monaco-list-rows .monaco-list-row.focused { outline: inherit; }`)),this.styleElement.textContent=i.join("\n"),this.view.style(e)}getParentElement(e){const t=this.model.getParentNodeLocation(e);return this.model.getNode(t).element}getFirstElementChild(e){return this.model.getFirstElementChild(e)}getNode(e){return this.model.getNode(e)}getNodeLocation(e){return this.model.getNodeLocation(e)}collapse(e,t=!1){return this.model.setCollapsed(e,!0,t)}expand(e,t=!1){return this.model.setCollapsed(e,!1,t)}toggleCollapsed(e,t=!1){return this.model.setCollapsed(e,void 0,t)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,t){return this.model.setCollapsible(e,t)}isCollapsed(e){return this.model.isCollapsed(e)}refilter(){this._onWillRefilter.fire(void 0),this.model.refilter()}setSelection(e,t){this.eventBufferer.bufferEvents((()=>{const i=e.map((e=>this.model.getNode(e)));this.selection.set(i,t);const s=e.map((e=>this.model.getListIndex(e))).filter((e=>e>-1));this.view.setSelection(s,t,!0)}))}getSelection(){return this.selection.get()}setFocus(e,t){this.eventBufferer.bufferEvents((()=>{const i=e.map((e=>this.model.getNode(e)));this.focus.set(i,t);const s=e.map((e=>this.model.getListIndex(e))).filter((e=>e>-1));this.view.setFocus(s,t,!0)}))}focusNext(e=1,t=!1,i,s=((0,n.kx)(i)&&i.altKey?void 0:this.focusNavigationFilter)){this.view.focusNext(e,t,i,s)}focusPrevious(e=1,t=!1,i,s=((0,n.kx)(i)&&i.altKey?void 0:this.focusNavigationFilter)){this.view.focusPrevious(e,t,i,s)}focusNextPage(e,t=((0,n.kx)(e)&&e.altKey?void 0:this.focusNavigationFilter)){return this.view.focusNextPage(e,t)}focusPreviousPage(e,t=((0,n.kx)(e)&&e.altKey?void 0:this.focusNavigationFilter)){return this.view.focusPreviousPage(e,t,(()=>this.stickyScrollController?.height??0))}focusLast(e,t=((0,n.kx)(e)&&e.altKey?void 0:this.focusNavigationFilter)){this.view.focusLast(e,t)}focusFirst(e,t=((0,n.kx)(e)&&e.altKey?void 0:this.focusNavigationFilter)){this.view.focusFirst(e,t)}getFocus(){return this.focus.get()}reveal(e,t){this.model.expandTo(e);const i=this.model.getListIndex(e);if(-1!==i)if(this.stickyScrollController){const s=this.stickyScrollController.nodePositionTopBelowWidget(this.getNode(e));this.view.reveal(i,t,s)}else this.view.reveal(i,t)}onLeftArrow(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(0===t.length)return;const i=t[0],s=this.model.getNodeLocation(i);if(!this.model.setCollapsed(s,!0)){const e=this.model.getParentNodeLocation(s);if(!e)return;const t=this.model.getListIndex(e);this.view.reveal(t),this.view.setFocus([t])}}onRightArrow(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(0===t.length)return;const i=t[0],s=this.model.getNodeLocation(i);if(!this.model.setCollapsed(s,!1)){if(!i.children.some((e=>e.visible)))return;const[e]=this.view.getFocus(),t=e+1;this.view.reveal(t),this.view.setFocus([t])}}onSpace(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(0===t.length)return;const i=t[0],s=this.model.getNodeLocation(i),n=e.browserEvent.altKey;this.model.setCollapsed(s,void 0,n)}dispose(){(0,C.AS)(this.disposables),this.stickyScrollController?.dispose(),this.view.dispose()}}},19531:(e,t,i)=>{"use strict";i.d(t,{iE:()=>n,rW:()=>r});class s{constructor(e,t,i){this._colorZoneBrand=void 0,this.from=0|e,this.to=0|t,this.colorId=0|i}static compare(e,t){return e.colorId===t.colorId?e.from===t.from?e.to-t.to:e.from-t.from:e.colorId-t.colorId}}class n{constructor(e,t,i,s){this._overviewRulerZoneBrand=void 0,this.startLineNumber=e,this.endLineNumber=t,this.heightInLines=i,this.color=s,this._colorZone=null}static compare(e,t){return e.color===t.color?e.startLineNumber===t.startLineNumber?e.heightInLines===t.heightInLines?e.endLineNumber-t.endLineNumber:e.heightInLines-t.heightInLines:e.startLineNumber-t.startLineNumber:e.color<t.color?-1:1}setColorZone(e){this._colorZone=e}getColorZones(){return this._colorZone}}class r{constructor(e){this._getVerticalOffsetForLine=e,this._zones=[],this._colorZonesInvalid=!1,this._lineHeight=0,this._domWidth=0,this._domHeight=0,this._outerHeight=0,this._pixelRatio=1,this._lastAssignedId=0,this._color2Id=Object.create(null),this._id2Color=[]}getId2Color(){return this._id2Color}setZones(e){this._zones=e,this._zones.sort(n.compare)}setLineHeight(e){return this._lineHeight!==e&&(this._lineHeight=e,this._colorZonesInvalid=!0,!0)}setPixelRatio(e){this._pixelRatio=e,this._colorZonesInvalid=!0}getDOMWidth(){return this._domWidth}getCanvasWidth(){return this._domWidth*this._pixelRatio}setDOMWidth(e){return this._domWidth!==e&&(this._domWidth=e,this._colorZonesInvalid=!0,!0)}getDOMHeight(){return this._domHeight}getCanvasHeight(){return this._domHeight*this._pixelRatio}setDOMHeight(e){return this._domHeight!==e&&(this._domHeight=e,this._colorZonesInvalid=!0,!0)}getOuterHeight(){return this._outerHeight}setOuterHeight(e){return this._outerHeight!==e&&(this._outerHeight=e,this._colorZonesInvalid=!0,!0)}resolveColorZones(){const e=this._colorZonesInvalid,t=Math.floor(this._lineHeight),i=Math.floor(this.getCanvasHeight()),n=i/Math.floor(this._outerHeight),r=Math.floor(4*this._pixelRatio/2),o=[];for(let a=0,c=this._zones.length;a<c;a++){const c=this._zones[a];if(!e){const e=c.getColorZones();if(e){o.push(e);continue}}const l=this._getVerticalOffsetForLine(c.startLineNumber),h=0===c.heightInLines?this._getVerticalOffsetForLine(c.endLineNumber)+t:l+c.heightInLines*t,d=Math.floor(n*l),u=Math.floor(n*h);let g=Math.floor((d+u)/2),p=u-g;p<r&&(p=r),g-p<0&&(g=p),g+p>i&&(g=i-p);const m=c.color;let f=this._color2Id[m];f||(f=++this._lastAssignedId,this._color2Id[m]=f,this._id2Color[f]=m);const _=new s(g-p,g+p,f);c.setColorZone(_),o.push(_)}return this._colorZonesInvalid=!1,o.sort(s.compare),o}}},19562:(e,t,i)=>{"use strict";i.d(t,{T:()=>g});var s=i(40579),n=i(94650),r=i(32956),o=i(19131);function a(e,t=!1){if(0===e.length)return null;if(1===e.length)return e[0];let i=e.length;for(;i>3;){const n=i>>1;for(let r=0;r<n;r++){const n=r<<1;e[r]=s.Xw.create23(e[n],e[n+1],n+3===i?e[n+2]:null,t)}i=n}return s.Xw.create23(e[0],e[1],i>=3?e[2]:null,t)}function c(e,t){return Math.abs(e.listHeight-t.listHeight)}function l(e,t){return e.listHeight===t.listHeight?s.Xw.create23(e,t,null,!1):e.listHeight>t.listHeight?function(e,t){let i=e=e.toMutable();const n=[];let r;for(;;){if(t.listHeight===i.listHeight){r=t;break}if(4!==i.kind)throw new Error("unexpected");n.push(i),i=i.makeLastElementMutable()}for(let o=n.length-1;o>=0;o--){const e=n[o];r?e.childrenLength>=3?r=s.Xw.create23(e.unappendChild(),r,null,!1):(e.appendChildOfSameHeight(r),r=void 0):e.handleChildrenChanged()}return r?s.Xw.create23(e,r,null,!1):e}(e,t):function(e,t){let i=e=e.toMutable();const n=[];for(;t.listHeight!==i.listHeight;){if(4!==i.kind)throw new Error("unexpected");n.push(i),i=i.makeFirstElementMutable()}let r=t;for(let o=n.length-1;o>=0;o--){const e=n[o];r?e.childrenLength>=3?r=s.Xw.create23(r,e.unprependChild(),null,!1):(e.prependChildOfSameHeight(r),r=void 0):e.handleChildrenChanged()}return r?s.Xw.create23(r,e,null,!1):e}(t,e)}class h{constructor(e){this.lastOffset=o.Vp,this.nextNodes=[e],this.offsets=[o.Vp],this.idxs=[]}readLongestNodeAt(e,t){if((0,o.zG)(e,this.lastOffset))throw new Error("Invalid offset");for(this.lastOffset=e;;){const i=u(this.nextNodes);if(!i)return;const s=u(this.offsets);if((0,o.zG)(e,s))return;if((0,o.zG)(s,e))if((0,o.QB)(s,i.length)<=e)this.nextNodeAfterCurrent();else{const e=d(i);-1!==e?(this.nextNodes.push(i.getChild(e)),this.offsets.push(s),this.idxs.push(e)):this.nextNodeAfterCurrent()}else{if(t(i))return this.nextNodeAfterCurrent(),i;{const e=d(i);if(-1===e)return void this.nextNodeAfterCurrent();this.nextNodes.push(i.getChild(e)),this.offsets.push(s),this.idxs.push(e)}}}}nextNodeAfterCurrent(){for(;;){const e=u(this.offsets),t=u(this.nextNodes);if(this.nextNodes.pop(),this.offsets.pop(),0===this.idxs.length)break;const i=u(this.nextNodes),s=d(i,this.idxs[this.idxs.length-1]);if(-1!==s){this.nextNodes.push(i.getChild(s)),this.offsets.push((0,o.QB)(e,t.length)),this.idxs[this.idxs.length-1]=s;break}this.idxs.pop()}}}function d(e,t=-1){for(;;){if(++t>=e.childrenLength)return-1;if(e.getChild(t))return t}}function u(e){return e.length>0?e[e.length-1]:void 0}function g(e,t,i,s){return new p(e,t,i,s).parseDocument()}class p{constructor(e,t,i,s){if(this.tokenizer=e,this.createImmutableLists=s,this._itemsConstructed=0,this._itemsFromCache=0,i&&s)throw new Error("Not supported");this.oldNodeReader=i?new h(i):void 0,this.positionMapper=new n.W(t)}parseDocument(){this._itemsConstructed=0,this._itemsFromCache=0;let e=this.parseList(r.gV.getEmpty(),0);return e||(e=s.Xw.getEmpty()),e}parseList(e,t){const i=[];for(;;){let s=this.tryReadChildFromCache(e);if(!s){const i=this.tokenizer.peek();if(!i||2===i.kind&&i.bracketIds.intersects(e))break;s=this.parseChild(e,t+1)}4===s.kind&&0===s.childrenLength||i.push(s)}const s=this.oldNodeReader?function(e){if(0===e.length)return null;if(1===e.length)return e[0];let t=0;function i(){if(t>=e.length)return null;const i=t,s=e[i].listHeight;for(t++;t<e.length&&e[t].listHeight===s;)t++;return t-i>=2?a(0===i&&t===e.length?e:e.slice(i,t),!1):e[i]}let s=i(),n=i();if(!n)return s;for(let r=i();r;r=i())c(s,n)<=c(n,r)?(s=l(s,n),n=r):n=l(n,r);return l(s,n)}(i):a(i,this.createImmutableLists);return s}tryReadChildFromCache(e){if(this.oldNodeReader){const t=this.positionMapper.getDistanceToNextChange(this.tokenizer.offset);if(null===t||!(0,o.Vh)(t)){const i=this.oldNodeReader.readLongestNodeAt(this.positionMapper.getOffsetBeforeChange(this.tokenizer.offset),(i=>{if(null!==t&&!(0,o.zG)(i.length,t))return!1;return i.canBeReused(e)}));if(i)return this._itemsFromCache++,this.tokenizer.skip(i.length),i}}}parseChild(e,t){this._itemsConstructed++;const i=this.tokenizer.read();switch(i.kind){case 2:return new s.Gc(i.bracketIds,i.length);case 0:return i.astNode;case 1:{if(t>300)return new s.yF(i.length);const n=e.merge(i.bracketIds),r=this.parseList(n,t+1),o=this.tokenizer.peek();return o&&2===o.kind&&(o.bracketId===i.bracketId||o.bracketIds.intersects(i.bracketIds))?(this.tokenizer.read(),s.Nn.create(i.astNode,r,o.astNode)):s.Nn.create(i.astNode,r,null)}default:throw new Error("unexpected")}}}},19856:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>i.e(3638).then(i.bind(i,13638))})},20370:(e,t,i)=>{"use strict";i.d(t,{n:()=>o,s:()=>a});var s=i(8597),n=i(25689);const r=new RegExp(`(\\\\)?\\$\\((${n.L.iconNameExpression}(?:${n.L.iconModifierExpression})?)\\)`,"g");function o(e){const t=new Array;let i,s=0,n=0;for(;null!==(i=r.exec(e));){n=i.index||0,s<n&&t.push(e.substring(s,n)),s=(i.index||0)+i[0].length;const[,r,o]=i;t.push(r?`$(${o})`:a({id:o}))}return s<e.length&&t.push(e.substring(s)),t}function a(e){const t=s.$("span");return t.classList.add(...n.L.asClassNameArray(e)),t}},20492:(e,t,i)=>{"use strict";i.d(t,{T:()=>f,i:()=>_});var s,n=i(68214),r=i(80789),o=i(64383),a=i(41234),c=i(5662),l=i(73157),h=i(10154),d=i(83941),u=i(58314),g=i(49099),p=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},m=function(e,t){return function(i,s){t(i,s,e)}};let f=class{static{s=this}static{this._ttpTokenizer=(0,r.H)("tokenizeToString",{createHTML:e=>e})}constructor(e,t,i){this._options=e,this._languageService=t,this._openerService=i,this._onDidRenderAsync=new a.vl,this.onDidRenderAsync=this._onDidRenderAsync.event}dispose(){this._onDidRenderAsync.dispose()}render(e,t,i){if(!e){return{element:document.createElement("span"),dispose:()=>{}}}const s=new c.Cm,r=s.add((0,n.Gc)(e,{...this._getRenderOptions(e,s),...t},i));return r.element.classList.add("rendered-markdown"),{element:r.element,dispose:()=>s.dispose()}}_getRenderOptions(e,t){return{codeBlockRenderer:async(e,t)=>{let i;e?i=this._languageService.getLanguageIdByLanguageName(e):this._options.editor&&(i=this._options.editor.getModel()?.getLanguageId()),i||(i=d.vH);const n=await(0,u.Yj)(this._languageService,t,i),r=document.createElement("span");if(r.innerHTML=s._ttpTokenizer?.createHTML(n)??n,this._options.editor){const e=this._options.editor.getOption(50);(0,l.M)(r,e)}else this._options.codeBlockFontFamily&&(r.style.fontFamily=this._options.codeBlockFontFamily);return void 0!==this._options.codeBlockFontSize&&(r.style.fontSize=this._options.codeBlockFontSize),r},asyncRenderCallback:()=>this._onDidRenderAsync.fire(),actionHandler:{callback:t=>_(this._openerService,t,e.isTrusted),disposables:t}}}};async function _(e,t,i){try{return await e.open(t,{fromUserGesture:!0,allowContributedOpeners:!0,allowCommands:v(i)})}catch(s){return(0,o.dz)(s),!1}}function v(e){return!0===e||!(!e||!Array.isArray(e.enabledCommands))&&e.enabledCommands}f=s=p([m(1,h.L),m(2,g.C)],f)},20761:(e,t,i)=>{"use strict";i.d(t,{_:()=>n});var s=i(5662);class n extends s.jG{constructor(){super(...arguments),this._isDisposed=!1}dispose(){super.dispose(),this._isDisposed=!0}assertNotDisposed(){if(this._isDisposed)throw new Error("TextModelPart is disposed!")}}},20788:(e,t,i)=>{"use strict";i.d(t,{$H:()=>r,Lh:()=>o,r3:()=>n});var s=i(62083);const n=new class{clone(){return this}equals(e){return this===e}};function r(e,t){return new s.$M([new s.ou(0,"",e)],t)}function o(e,t){const i=new Uint32Array(2);return i[0]=0,i[1]=(32768|e|2<<24)>>>0,new s.rY(i,null===t?n:t)}},20897:e=>{e.exports=function(){function e(e){const t=1e3*Number(e.$value),i=new Date(t),s=i.getFullYear();return s<=0&&i.setFullYear(s-1),isNaN(i.valueOf())?"Invalid datetime":i.toISOString().replace(/\.\d{3}Z$/,"Z")}return e.isScalar=!0,e}},20940:(e,t,i)=>{"use strict";i.d(t,{Yk:()=>C});var s=i(66782),n=i(90766),r=i(18447),o=i(74320),a=i(64383),c=i(83069),l=i(36677),h=i(93630),d=i(19131),u=i(19562),g=i(32956),p=i(51934);class m{constructor(e){this.lines=e,this.tokenization={getLineTokens:e=>this.lines[e-1]}}getLineCount(){return this.lines.length}getLineLength(e){return this.lines[e-1].getLineContent().length}}var f=i(75295),_=i(73401),v=i(29319);async function C(e,t,i,s,h=r.XO.None,d){const u=t instanceof c.y?function(e,t){const i=t.getWordAtPosition(e),s=t.getLineMaxColumn(e.lineNumber);return i?new l.Q(e.lineNumber,i.startColumn,e.lineNumber,s):l.Q.fromPositions(e,e.with(void 0,s))}(t,i):t,g=e.all(i),p=new o.db;for(const n of g)n.groupId&&p.add(n.groupId,n);function m(e){if(!e.yieldsToGroupIds)return[];const t=[];for(const i of e.yieldsToGroupIds||[]){const e=p.get(i);for(const i of e)t.push(i)}return t}const f=new Map,_=new Set;function v(e,t){if(t=[...t,e],_.has(e))return t;_.add(e);try{const i=m(e);for(const e of i){const i=v(e,t);if(i)return i}}finally{_.delete(e)}}function C(e){const r=f.get(e);if(r)return r;const o=v(e,[]);o&&(0,a.M_)(new Error(`Inline completions: cyclic yield-to dependency detected. Path: ${o.map((e=>e.toString?e.toString():""+e)).join(" -> ")}`));const l=new n.Zv;return f.set(e,l.p),(async()=>{if(!o){const t=m(e);for(const e of t){const t=await C(e);if(t&&t.items.length>0)return}}try{if(t instanceof c.y){return await e.provideInlineCompletions(i,t,s,h)}return await(e.provideInlineEdits?.(i,t,s,h))}catch(n){return void(0,a.M_)(n)}})().then((e=>l.complete(e)),(e=>l.error(e))),l.p}const y=await Promise.all(g.map((async e=>({provider:e,completions:await C(e)})))),w=new Map,R=[];for(const n of y){const e=n.completions;if(!e)continue;const t=new b(e,n.provider);R.push(t);for(const s of e.items){const e=S.from(s,t,u,i,d);w.set(e.hash(),e)}}return new E(Array.from(w.values()),new Set(w.keys()),R)}class E{constructor(e,t,i){this.completions=e,this.hashs=t,this.providerResults=i}has(e){return this.hashs.has(e.hash())}dispose(){for(const e of this.providerResults)e.removeRef()}}class b{constructor(e,t){this.inlineCompletions=e,this.provider=t,this.refCount=1}addRef(){this.refCount++}removeRef(){this.refCount--,0===this.refCount&&this.provider.freeInlineCompletions(this.inlineCompletions)}}class S{static from(e,t,i,n,r){let o,a,c=e.range?l.Q.lift(e.range):i;if("string"===typeof e.insertText){if(o=e.insertText,r&&e.completeBracketPairs){o=y(o,c.getStartPosition(),n,r);const t=o.length-e.insertText.length;0!==t&&(c=new l.Q(c.startLineNumber,c.startColumn,c.endLineNumber,c.endColumn+t))}a=void 0}else if("snippet"in e.insertText){const t=e.insertText.snippet.length;if(r&&e.completeBracketPairs){e.insertText.snippet=y(e.insertText.snippet,c.getStartPosition(),n,r);const i=e.insertText.snippet.length-t;0!==i&&(c=new l.Q(c.startLineNumber,c.startColumn,c.endLineNumber,c.endColumn+i))}const i=(new v.fr).parse(e.insertText.snippet);1===i.children.length&&i.children[0]instanceof v.EY?(o=i.children[0].value,a=void 0):(o=i.toString(),a={snippet:e.insertText.snippet,range:c})}else(0,s.xb)(e.insertText);return new S(o,e.command,c,o,a,e.additionalTextEdits||(0,_.zk)(),e,t)}constructor(e,t,i,s,n,r,o,a){this.filterText=e,this.command=t,this.range=i,this.insertText=s,this.snippetInfo=n,this.additionalTextEdits=r,this.sourceInlineCompletion=o,this.source=a,s=(e=e.replace(/\r\n|\r/g,"\n")).replace(/\r\n|\r/g,"\n")}withRange(e){return new S(this.filterText,this.command,e,this.insertText,this.snippetInfo,this.additionalTextEdits,this.sourceInlineCompletion,this.source)}hash(){return JSON.stringify({insertText:this.insertText,range:this.range.toString()})}toSingleTextEdit(){return new f.WR(this.range,this.insertText)}}function y(e,t,i,s){const n=i.getLineContent(t.lineNumber).substring(0,t.column-1)+e,r=i.tokenization.tokenizeLineWithEdit(t,n.length-(t.column-1),e),o=r?.sliceAndInflate(t.column-1,n.length,0);if(!o)return e;const a=function(e,t){const i=new g.Mg,s=new h.Z(i,(e=>t.getLanguageConfiguration(e))),n=new p.tk(new m([e]),s),r=(0,u.T)(n,[],void 0,!0);let o="";const a=e.getLineContent();return function e(t,i){if(2===t.kind)if(e(t.openingBracket,i),i=(0,d.QB)(i,t.openingBracket.length),t.child&&(e(t.child,i),i=(0,d.QB)(i,t.child.length)),t.closingBracket)e(t.closingBracket,i),i=(0,d.QB)(i,t.closingBracket.length);else{const e=s.getSingleLanguageBracketTokens(t.openingBracket.languageId).findClosingTokenText(t.openingBracket.bracketIds);o+=e}else if(3===t.kind);else if(0===t.kind||1===t.kind)o+=a.substring((0,d.sS)(i),(0,d.sS)((0,d.QB)(i,t.length)));else if(4===t.kind)for(const s of t.children)e(s,i),i=(0,d.QB)(i,s.length)}(r,d.Vp),o}(o,s);return a}},20961:(e,t,i)=>{"use strict";var s=i(10350),n=i(8597),r=i(31450),o=i(80301),a=i(4360),c=i(60002),l=i(78209),h=i(27195),d=i(84001),u=i(32848);i(10691);class g extends h.L{constructor(){super({id:"diffEditor.toggleCollapseUnchangedRegions",title:(0,l.aS)("toggleCollapseUnchangedRegions","Toggle Collapse Unchanged Regions"),icon:s.W.map,toggled:u.M$.has("config.diffEditor.hideUnchangedRegions.enabled"),precondition:u.M$.has("isInDiffEditor"),menu:{when:u.M$.has("isInDiffEditor"),id:h.D8.EditorTitle,order:22,group:"navigation"}})}run(e,...t){const i=e.get(d.pG),s=!i.getValue("diffEditor.hideUnchangedRegions.enabled");i.updateValue("diffEditor.hideUnchangedRegions.enabled",s)}}class p extends h.L{constructor(){super({id:"diffEditor.toggleShowMovedCodeBlocks",title:(0,l.aS)("toggleShowMovedCodeBlocks","Toggle Show Moved Code Blocks"),precondition:u.M$.has("isInDiffEditor")})}run(e,...t){const i=e.get(d.pG),s=!i.getValue("diffEditor.experimental.showMoves");i.updateValue("diffEditor.experimental.showMoves",s)}}class m extends h.L{constructor(){super({id:"diffEditor.toggleUseInlineViewWhenSpaceIsLimited",title:(0,l.aS)("toggleUseInlineViewWhenSpaceIsLimited","Toggle Use Inline View When Space Is Limited"),precondition:u.M$.has("isInDiffEditor")})}run(e,...t){const i=e.get(d.pG),s=!i.getValue("diffEditor.useInlineViewWhenSpaceIsLimited");i.updateValue("diffEditor.useInlineViewWhenSpaceIsLimited",s)}}const f=(0,l.aS)("diffEditor","Diff Editor");class _ extends r.qO{constructor(){super({id:"diffEditor.switchSide",title:(0,l.aS)("switchSide","Switch Side"),icon:s.W.arrowSwap,precondition:u.M$.has("isInDiffEditor"),f1:!0,category:f})}runEditorCommand(e,t,i){const s=R(e);if(s instanceof a.T){if(i&&i.dryRun)return{destinationSelection:s.mapToOtherSide().destinationSelection};s.switchSide()}}}class v extends r.qO{constructor(){super({id:"diffEditor.exitCompareMove",title:(0,l.aS)("exitCompareMove","Exit Compare Move"),icon:s.W.close,precondition:c.R.comparingMovedCode,f1:!1,category:f,keybinding:{weight:1e4,primary:9}})}runEditorCommand(e,t,...i){const s=R(e);s instanceof a.T&&s.exitCompareMove()}}class C extends r.qO{constructor(){super({id:"diffEditor.collapseAllUnchangedRegions",title:(0,l.aS)("collapseAllUnchangedRegions","Collapse All Unchanged Regions"),icon:s.W.fold,precondition:u.M$.has("isInDiffEditor"),f1:!0,category:f})}runEditorCommand(e,t,...i){const s=R(e);s instanceof a.T&&s.collapseAllUnchangedRegions()}}class E extends r.qO{constructor(){super({id:"diffEditor.showAllUnchangedRegions",title:(0,l.aS)("showAllUnchangedRegions","Show All Unchanged Regions"),icon:s.W.unfold,precondition:u.M$.has("isInDiffEditor"),f1:!0,category:f})}runEditorCommand(e,t,...i){const s=R(e);s instanceof a.T&&s.showAllUnchangedRegions()}}class b extends h.L{constructor(){super({id:"diffEditor.revert",title:(0,l.aS)("revert","Revert"),f1:!1,category:f})}run(e,t){const i=function(e,t,i){const s=e.get(o.T);return s.listDiffEditors().find((e=>{const s=e.getModifiedEditor(),n=e.getOriginalEditor();return s&&s.getModel()?.uri.toString()===i.toString()&&n&&n.getModel()?.uri.toString()===t.toString()}))||null}(e,t.originalUri,t.modifiedUri);i instanceof a.T&&i.revertRangeMappings(t.mapping.innerChanges??[])}}const S=(0,l.aS)("accessibleDiffViewer","Accessible Diff Viewer");class y extends h.L{static{this.id="editor.action.accessibleDiffViewer.next"}constructor(){super({id:y.id,title:(0,l.aS)("editor.action.accessibleDiffViewer.next","Go to Next Difference"),category:S,precondition:u.M$.has("isInDiffEditor"),keybinding:{primary:65,weight:100},f1:!0})}run(e){const t=R(e);t?.accessibleDiffViewerNext()}}class w extends h.L{static{this.id="editor.action.accessibleDiffViewer.prev"}constructor(){super({id:w.id,title:(0,l.aS)("editor.action.accessibleDiffViewer.prev","Go to Previous Difference"),category:S,precondition:u.M$.has("isInDiffEditor"),keybinding:{primary:1089,weight:100},f1:!0})}run(e){const t=R(e);t?.accessibleDiffViewerPrev()}}function R(e){const t=e.get(o.T).listDiffEditors(),i=(0,n.bq)();if(i)for(const s of t){if(L(s.getContainerDomNode(),i))return s}return null}function L(e,t){let i=t;for(;i;){if(i===e)return!0;i=i.parentElement}return!1}var T=i(50091);(0,h.ug)(g),(0,h.ug)(p),(0,h.ug)(m),h.ZG.appendMenuItem(h.D8.EditorTitle,{command:{id:(new m).desc.id,title:(0,l.kg)("useInlineViewWhenSpaceIsLimited","Use Inline View When Space Is Limited"),toggled:u.M$.has("config.diffEditor.useInlineViewWhenSpaceIsLimited"),precondition:u.M$.has("isInDiffEditor")},order:11,group:"1_diff",when:u.M$.and(c.R.diffEditorRenderSideBySideInlineBreakpointReached,u.M$.has("isInDiffEditor"))}),h.ZG.appendMenuItem(h.D8.EditorTitle,{command:{id:(new p).desc.id,title:(0,l.kg)("showMoves","Show Moved Code Blocks"),icon:s.W.move,toggled:u.f1.create("config.diffEditor.experimental.showMoves",!0),precondition:u.M$.has("isInDiffEditor")},order:10,group:"1_diff",when:u.M$.has("isInDiffEditor")}),(0,h.ug)(b);for(const x of[{icon:s.W.arrowRight,key:c.R.diffEditorInlineMode.toNegated()},{icon:s.W.discard,key:c.R.diffEditorInlineMode}])h.ZG.appendMenuItem(h.D8.DiffEditorHunkToolbar,{command:{id:(new b).desc.id,title:(0,l.kg)("revertHunk","Revert Block"),icon:x.icon},when:u.M$.and(c.R.diffEditorModifiedWritable,x.key),order:5,group:"primary"}),h.ZG.appendMenuItem(h.D8.DiffEditorSelectionToolbar,{command:{id:(new b).desc.id,title:(0,l.kg)("revertSelection","Revert Selection"),icon:x.icon},when:u.M$.and(c.R.diffEditorModifiedWritable,x.key),order:5,group:"primary"});(0,h.ug)(_),(0,h.ug)(v),(0,h.ug)(C),(0,h.ug)(E),h.ZG.appendMenuItem(h.D8.EditorTitle,{command:{id:y.id,title:(0,l.kg)("Open Accessible Diff Viewer","Open Accessible Diff Viewer"),precondition:u.M$.has("isInDiffEditor")},order:10,group:"2_diff",when:u.M$.and(c.R.accessibleDiffViewerVisible.negate(),u.M$.has("isInDiffEditor"))}),T.w.registerCommandAlias("editor.action.diffReview.next",y.id),(0,h.ug)(y),T.w.registerCommandAlias("editor.action.diffReview.prev",w.id),(0,h.ug)(w)},21152:(e,t,i)=>{e.exports=function(e){const t=i(94297),s=i(76319)(e);return function(e,i,n){let r="";const o=e.$value,a=o.length;return t.drawFullView(a,i)?(r+="("+t.getIndent(i,n),r+=s(o,i,n),r+=t.getIndent(i,n-1)+")"):t.drawCompactView(a,i)?(r+="(",r+=s(o,i,n),r+=")"):r+="()",r}}},21377:(e,t,i)=>{e.exports=i(64066)},21478:(e,t,i)=>{"use strict";i.d(t,{M:()=>H,z:()=>F});var s,n=i(8597),r=i(25890),o=i(90766),a=i(18447),c=i(64383),l=i(5662),h=i(74320),d=i(631),u=i(79400),g=i(37734),p=i(55190),m=i(87908),f=i(7085),_=i(36677),v=i(62083),C=i(16223),E=i(87289),b=i(32500),S=i(56942),y=i(18938),w=i(37927),R=i(3730),L=i(60952),T=i(50091),x=i(14718),k=i(63591),A=i(58591),N=i(66261),I=i(47612),O=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},D=function(e,t){return function(i,s){t(i,s,e)}};class M{constructor(){this._entries=new h.qK(50)}get(e){const t=M._key(e);return this._entries.get(t)}set(e,t){const i=M._key(e);this._entries.set(i,t)}static _key(e){return`${e.uri.toString()}/${e.getVersionId()}`}}const P=(0,k.u1)("IInlayHintsCache");(0,x.v)(P,M,1);class F{constructor(e,t){this.item=e,this.index=t}get part(){const e=this.item.hint.label;return"string"===typeof e?{label:e}:e[this.index]}}class U{constructor(e,t){this.part=e,this.hasTriggerModifier=t}}let H=class{static{s=this}static{this.ID="editor.contrib.InlayHints"}static{this._MAX_DECORATORS=1500}static{this._MAX_LABEL_LEN=43}static get(e){return e.getContribution(s.ID)??void 0}constructor(e,t,i,s,n,r,o){this._editor=e,this._languageFeaturesService=t,this._inlayHintsCache=s,this._commandService=n,this._notificationService=r,this._instaService=o,this._disposables=new l.Cm,this._sessionDisposables=new l.Cm,this._decorationsMetadata=new Map,this._ruleFactory=new g.Qn(this._editor),this._activeRenderMode=0,this._debounceInfo=i.for(t.inlayHintsProvider,"InlayHint",{min:25}),this._disposables.add(t.inlayHintsProvider.onDidChange((()=>this._update()))),this._disposables.add(e.onDidChangeModel((()=>this._update()))),this._disposables.add(e.onDidChangeModelLanguage((()=>this._update()))),this._disposables.add(e.onDidChangeConfiguration((e=>{e.hasChanged(142)&&this._update()}))),this._update()}dispose(){this._sessionDisposables.dispose(),this._removeAllDecorations(),this._disposables.dispose()}_update(){this._sessionDisposables.clear(),this._removeAllDecorations();const e=this._editor.getOption(142);if("off"===e.enabled)return;const t=this._editor.getModel();if(!t||!this._languageFeaturesService.inlayHintsProvider.has(t))return;if("on"===e.enabled)this._activeRenderMode=0;else{let t,i;"onUnlessPressed"===e.enabled?(t=0,i=1):(t=1,i=0),this._activeRenderMode=t,this._sessionDisposables.add(n.Di.getInstance().event((e=>{if(!this._editor.hasModel())return;const s=e.altKey&&e.ctrlKey&&!e.shiftKey&&!e.metaKey?i:t;if(s!==this._activeRenderMode){this._activeRenderMode=s;const e=this._editor.getModel(),t=this._copyInlayHintsWithCurrentAnchor(e);this._updateHintsDecorators([e.getFullModelRange()],t),h.schedule(0)}})))}const i=this._inlayHintsCache.get(t);let s;i&&this._updateHintsDecorators([t.getFullModelRange()],i),this._sessionDisposables.add((0,l.s)((()=>{t.isDisposed()||this._cacheHintsForFastRestore(t)})));const r=new Set,h=new o.uC((async()=>{const e=Date.now();s?.dispose(!0),s=new a.Qi;const i=t.onWillDispose((()=>s?.cancel()));try{const i=s.token,n=await R.P8.create(this._languageFeaturesService.inlayHintsProvider,t,this._getHintsRanges(),i);if(h.delay=this._debounceInfo.update(t,Date.now()-e),i.isCancellationRequested)return void n.dispose();for(const e of n.provider)"function"!==typeof e.onDidChangeInlayHints||r.has(e)||(r.add(e),this._sessionDisposables.add(e.onDidChangeInlayHints((()=>{h.isScheduled()||h.schedule()}))));this._sessionDisposables.add(n),this._updateHintsDecorators(n.ranges,n.items),this._cacheHintsForFastRestore(t)}catch(n){(0,c.dz)(n)}finally{s.dispose(),i.dispose()}}),this._debounceInfo.get(t));this._sessionDisposables.add(h),this._sessionDisposables.add((0,l.s)((()=>s?.dispose(!0)))),h.schedule(0),this._sessionDisposables.add(this._editor.onDidScrollChange((e=>{!e.scrollTopChanged&&h.isScheduled()||h.schedule()}))),this._sessionDisposables.add(this._editor.onDidChangeModelContent((e=>{s?.cancel();const t=Math.max(h.delay,1250);h.schedule(t)}))),this._sessionDisposables.add(this._installDblClickGesture((()=>h.schedule(0)))),this._sessionDisposables.add(this._installLinkGesture()),this._sessionDisposables.add(this._installContextMenu())}_installLinkGesture(){const e=new l.Cm,t=e.add(new w.gi(this._editor)),i=new l.Cm;return e.add(i),e.add(t.onMouseMoveOrRelevantKeyDown((e=>{const[t]=e,s=this._getInlayHintLabelPart(t),n=this._editor.getModel();if(!s||!n)return void i.clear();const r=new a.Qi;i.add((0,l.s)((()=>r.dispose(!0)))),s.item.resolve(r.token),this._activeInlayHintPart=s.part.command||s.part.location?new U(s,t.hasTriggerModifier):void 0;const o=n.validatePosition(s.item.hint.position).lineNumber,c=new _.Q(o,1,o,n.getLineMaxColumn(o)),h=this._getInlineHintsForRange(c);this._updateHintsDecorators([c],h),i.add((0,l.s)((()=>{this._activeInlayHintPart=void 0,this._updateHintsDecorators([c],h)})))}))),e.add(t.onCancel((()=>i.clear()))),e.add(t.onExecute((async e=>{const t=this._getInlayHintLabelPart(e);if(t){const i=t.part;i.location?this._instaService.invokeFunction(L.U,e,this._editor,i.location):v.uB.is(i.command)&&await this._invokeCommand(i.command,t.item)}}))),e}_getInlineHintsForRange(e){const t=new Set;for(const i of this._decorationsMetadata.values())e.containsRange(i.item.anchor.range)&&t.add(i.item);return Array.from(t)}_installDblClickGesture(e){return this._editor.onMouseUp((async t=>{if(2!==t.event.detail)return;const i=this._getInlayHintLabelPart(t);if(i&&(t.event.preventDefault(),await i.item.resolve(a.XO.None),(0,r.EI)(i.item.hint.textEdits))){const t=i.item.hint.textEdits.map((e=>f.k.replace(_.Q.lift(e.range),e.text)));this._editor.executeEdits("inlayHint.default",t),e()}}))}_installContextMenu(){return this._editor.onContextMenu((async e=>{if(!(0,n.sb)(e.event.target))return;const t=this._getInlayHintLabelPart(e);t&&await this._instaService.invokeFunction(L.h,this._editor,e.event.target,t)}))}_getInlayHintLabelPart(e){if(6!==e.target.type)return;const t=e.target.detail.injectedText?.options;return t instanceof E.Ho&&t?.attachedData instanceof F?t.attachedData:void 0}async _invokeCommand(e,t){try{await this._commandService.executeCommand(e.id,...e.arguments??[])}catch(i){this._notificationService.notify({severity:A.AI.Error,source:t.provider.displayName,message:i})}}_cacheHintsForFastRestore(e){const t=this._copyInlayHintsWithCurrentAnchor(e);this._inlayHintsCache.set(e,t)}_copyInlayHintsWithCurrentAnchor(e){const t=new Map;for(const[i,s]of this._decorationsMetadata){if(t.has(s.item))continue;const n=e.getDecorationRange(i);if(n){const e=new R.EP(n,s.item.anchor.direction),i=s.item.with({anchor:e});t.set(s.item,i)}}return Array.from(t.values())}_getHintsRanges(){const e=this._editor.getModel(),t=this._editor.getVisibleRangesPlusViewportAboveBelow(),i=[];for(const s of t.sort(_.Q.compareRangesUsingStarts)){const t=e.validateRange(new _.Q(s.startLineNumber-30,s.startColumn,s.endLineNumber+30,s.endColumn));0!==i.length&&_.Q.areIntersectingOrTouching(i[i.length-1],t)?i[i.length-1]=_.Q.plusRange(i[i.length-1],t):i.push(t)}return i}_updateHintsDecorators(e,t){const i=[],n=(e,t,s,n,r)=>{const o={content:s,inlineClassNameAffectsLetterSpacing:!0,inlineClassName:t.className,cursorStops:n,attachedData:r};i.push({item:e,classNameRef:t,decoration:{range:e.anchor.range,options:{description:"InlayHint",showIfCollapsed:e.anchor.range.isEmpty(),collapseOnReplaceEdit:!e.anchor.range.isEmpty(),stickiness:0,[e.anchor.direction]:0===this._activeRenderMode?o:void 0}}})},o=(e,t)=>{const i=this._ruleFactory.createClassNameRef({width:(a/3|0)+"px",display:"inline-block"});n(e,i,"\u200a",t?C.VW.Right:C.VW.None)},{fontSize:a,fontFamily:c,padding:l,isUniform:h}=this._getLayoutInfo(),d="--code-editorInlayHintsFontFamily";this._editor.getContainerDomNode().style.setProperty(d,c);let u={line:0,totalLen:0};for(const p of t){if(u.line!==p.anchor.range.startLineNumber&&(u={line:p.anchor.range.startLineNumber,totalLen:0}),u.totalLen>s._MAX_LABEL_LEN)continue;p.hint.paddingLeft&&o(p,!1);const e="string"===typeof p.hint.label?[{label:p.hint.label}]:p.hint.label;for(let t=0;t<e.length;t++){const i=e[t],o=0===t,c=t===e.length-1,g={fontSize:`${a}px`,fontFamily:`var(${d}), ${m.jU.fontFamily}`,verticalAlign:h?"baseline":"middle",unicodeBidi:"isolate"};(0,r.EI)(p.hint.textEdits)&&(g.cursor="default"),this._fillInColors(g,p.hint),(i.command||i.location)&&this._activeInlayHintPart?.part.item===p&&this._activeInlayHintPart.part.index===t&&(g.textDecoration="underline",this._activeInlayHintPart.hasTriggerModifier&&(g.color=(0,I.Yf)(N.Ztu),g.cursor="pointer")),l&&(o&&c?(g.padding=`1px ${0|Math.max(1,a/4)}px`,g.borderRadius=(a/4|0)+"px"):o?(g.padding=`1px 0 1px ${0|Math.max(1,a/4)}px`,g.borderRadius=`${a/4|0}px 0 0 ${a/4|0}px`):c?(g.padding=`1px ${0|Math.max(1,a/4)}px 1px 0`,g.borderRadius=`0 ${a/4|0}px ${a/4|0}px 0`):g.padding="1px 0 1px 0");let f=i.label;u.totalLen+=f.length;let _=!1;const v=u.totalLen-s._MAX_LABEL_LEN;if(v>0&&(f=f.slice(0,-v)+"\u2026",_=!0),n(p,this._ruleFactory.createClassNameRef(g),B(f),c&&!p.hint.paddingRight?C.VW.Right:C.VW.None,new F(p,t)),_)break}if(p.hint.paddingRight&&o(p,!0),i.length>s._MAX_DECORATORS)break}const g=[];for(const[s,r]of this._decorationsMetadata){const t=this._editor.getModel()?.getDecorationRange(s);t&&e.some((e=>e.containsRange(t)))&&(g.push(s),r.classNameRef.dispose(),this._decorationsMetadata.delete(s))}const f=p.D.capture(this._editor);this._editor.changeDecorations((e=>{const t=e.deltaDecorations(g,i.map((e=>e.decoration)));for(let s=0;s<t.length;s++){const e=i[s];this._decorationsMetadata.set(t[s],e)}})),f.restore(this._editor)}_fillInColors(e,t){t.kind===v.r4.Parameter?(e.backgroundColor=(0,I.Yf)(N.B2L),e.color=(0,I.Yf)(N.sjA)):t.kind===v.r4.Type?(e.backgroundColor=(0,I.Yf)(N._pU),e.color=(0,I.Yf)(N.HwT)):(e.backgroundColor=(0,I.Yf)(N.WL6),e.color=(0,I.Yf)(N.P6i))}_getLayoutInfo(){const e=this._editor.getOption(142),t=e.padding,i=this._editor.getOption(52),s=this._editor.getOption(49);let n=e.fontSize;(!n||n<5||n>i)&&(n=i);const r=e.fontFamily||s;return{fontSize:n,fontFamily:r,padding:t,isUniform:!t&&r===s&&n===i}}_removeAllDecorations(){this._editor.removeDecorations(Array.from(this._decorationsMetadata.keys()));for(const e of this._decorationsMetadata.values())e.classNameRef.dispose();this._decorationsMetadata.clear()}};function B(e){return e.replace(/[ \t]/g,"\xa0")}H=s=O([D(1,S.ILanguageFeaturesService),D(2,b.ILanguageFeatureDebounceService),D(3,P),D(4,T.d),D(5,A.Ot),D(6,k._Y)],H),T.w.registerCommand("_executeInlayHintProvider",(async(e,...t)=>{const[i,s]=t;(0,d.j)(u.r.isUri(i)),(0,d.j)(_.Q.isIRange(s));const{inlayHintsProvider:n}=e.get(S.ILanguageFeaturesService),r=await e.get(y.ITextModelService).createModelReference(i);try{const e=await R.P8.create(n,r.object.textEditorModel,[_.Q.lift(s)],a.XO.None),t=e.items.map((e=>e.hint));return setTimeout((()=>e.dispose()),0),t}finally{r.dispose()}}))},21852:(e,t,i)=>{"use strict";i.d(t,{s:()=>g});var s=i(8597),n=i(37479),r=i(5662),o=i(10146),a=i(92719),c=i(42904),l=i(48196),h=i(631),d=i(37882);class u{constructor(e){this._element=e}get element(){return this._element}set textContent(e){this.disposed||e===this._textContent||(this._textContent=e,this._element.textContent=e)}set classNames(e){this.disposed||(0,o.aI)(e,this._classNames)||(this._classNames=e,this._element.classList.value="",this._element.classList.add(...e))}set empty(e){this.disposed||e===this._empty||(this._empty=e,this._element.style.marginLeft=e?"0":"")}dispose(){this.disposed=!0}}class g extends r.jG{constructor(e,t){super(),this.customHovers=new Map,this.creationOptions=t,this.domNode=this._register(new u(s.BC(e,s.$(".monaco-icon-label")))),this.labelContainer=s.BC(this.domNode.element,s.$(".monaco-icon-label-container")),this.nameContainer=s.BC(this.labelContainer,s.$("span.monaco-icon-name-container")),this.nameNode=t?.supportHighlights||t?.supportIcons?this._register(new m(this.nameContainer,!!t.supportIcons)):new p(this.nameContainer),this.hoverDelegate=t?.hoverDelegate??(0,c.nZ)("mouse")}get element(){return this.domNode.element}setLabel(e,t,i){const r=["monaco-icon-label"],o=["monaco-icon-label-container"];let a="";i&&(i.extraClasses&&r.push(...i.extraClasses),i.italic&&r.push("italic"),i.strikethrough&&r.push("strikethrough"),i.disabledCommand&&o.push("disabled"),i.title&&("string"===typeof i.title?a+=i.title:a+=e));const c=this.domNode.element.querySelector(".monaco-icon-label-iconpath");if(i?.iconPath){let e;c&&s.sb(c)?e=c:(e=s.$(".monaco-icon-label-iconpath"),this.domNode.element.prepend(e)),e.style.backgroundImage=s.Tf(i?.iconPath)}else c&&c.remove();if(this.domNode.classNames=r,this.domNode.element.setAttribute("aria-label",a),this.labelContainer.classList.value="",this.labelContainer.classList.add(...o),this.setupHover(i?.descriptionTitle?this.labelContainer:this.element,i?.title),this.nameNode.setLabel(e,i),t||this.descriptionNode){const e=this.getOrCreateDescriptionNode();e instanceof n._?(e.set(t||"",i?i.descriptionMatches:void 0,void 0,i?.labelEscapeNewLines),this.setupHover(e.element,i?.descriptionTitle)):(e.textContent=t&&i?.labelEscapeNewLines?n._.escapeNewLines(t,[]):t||"",this.setupHover(e.element,i?.descriptionTitle||""),e.empty=!t)}if(i?.suffix||this.suffixNode){this.getOrCreateSuffixNode().textContent=i?.suffix??""}}setupHover(e,t){const i=this.customHovers.get(e);if(i&&(i.dispose(),this.customHovers.delete(e)),t)if(this.hoverDelegate.showNativeHover){function s(e,t){(0,h.Kg)(t)?e.title=(0,d.pS)(t):t?.markdownNotSupportedFallback?e.title=t.markdownNotSupportedFallback:e.removeAttribute("title")}s(e,t)}else{const n=(0,l.i)().setupManagedHover(this.hoverDelegate,e,t);n&&this.customHovers.set(e,n)}else e.removeAttribute("title")}dispose(){super.dispose();for(const e of this.customHovers.values())e.dispose();this.customHovers.clear()}getOrCreateSuffixNode(){if(!this.suffixNode){const e=this._register(new u(s.Pl(this.nameContainer,s.$("span.monaco-icon-suffix-container"))));this.suffixNode=this._register(new u(s.BC(e.element,s.$("span.label-suffix"))))}return this.suffixNode}getOrCreateDescriptionNode(){if(!this.descriptionNode){const e=this._register(new u(s.BC(this.labelContainer,s.$("span.monaco-icon-description-container"))));this.creationOptions?.supportDescriptionHighlights?this.descriptionNode=this._register(new n._(s.BC(e.element,s.$("span.label-description")),{supportIcons:!!this.creationOptions.supportIcons})):this.descriptionNode=this._register(new u(s.BC(e.element,s.$("span.label-description"))))}return this.descriptionNode}}class p{constructor(e){this.container=e,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(this.label!==e||!(0,o.aI)(this.options,t))if(this.label=e,this.options=t,"string"===typeof e)this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=s.BC(this.container,s.$("a.label-name",{id:t?.domId}))),this.singleLabel.textContent=e;else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;for(let i=0;i<e.length;i++){const n=e[i],r=t?.domId&&`${t?.domId}_${i}`;s.BC(this.container,s.$("a.label-name",{id:r,"data-icon-label-count":e.length,"data-icon-label-index":i,role:"treeitem"},n)),i<e.length-1&&s.BC(this.container,s.$("span.label-separator",void 0,t?.separator||"/"))}}}}class m extends r.jG{constructor(e,t){super(),this.container=e,this.supportIcons=t,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(this.label!==e||!(0,o.aI)(this.options,t))if(this.label=e,this.options=t,"string"===typeof e)this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=this._register(new n._(s.BC(this.container,s.$("a.label-name",{id:t?.domId})),{supportIcons:this.supportIcons}))),this.singleLabel.set(e,t?.matches,void 0,t?.labelEscapeNewLines);else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;const i=t?.separator||"/",r=function(e,t,i){if(!i)return;let s=0;return e.map((e=>{const n={start:s,end:s+e.length},r=i.map((e=>a.Q.intersect(n,e))).filter((e=>!a.Q.isEmpty(e))).map((({start:e,end:t})=>({start:e-s,end:t-s})));return s=n.end+t.length,r}))}(e,i,t?.matches);for(let o=0;o<e.length;o++){const a=e[o],c=r?r[o]:void 0,l=t?.domId&&`${t?.domId}_${o}`,h=s.$("a.label-name",{id:l,"data-icon-label-count":e.length,"data-icon-label-index":o,role:"treeitem"});this._register(new n._(s.BC(this.container,h),{supportIcons:this.supportIcons})).set(a,c,void 0,t?.labelEscapeNewLines),o<e.length-1&&s.BC(h,s.$("span.label-separator",void 0,i))}}}}},22311:(e,t,i)=>{"use strict";i.d(t,{nA:()=>s,qQ:()=>c});class s{constructor(e,t,i){this.owner=e,this.debugNameSource=t,this.referenceFn=i}getDebugName(e){return function(e,t){const i=r.get(e);if(i)return i;const s=function(e,t){const i=r.get(e);if(i)return i;const s=t.owner?function(e){const t=a.get(e);if(t)return t;const i=function(e){const t=e.constructor;if(t)return t.name;return"Object"}(e);let s=o.get(i)??0;s++,o.set(i,s);const n=1===s?i:`${i}#${s}`;return a.set(e,n),n}(t.owner)+".":"";let n;const l=t.debugNameSource;if(void 0!==l){if("function"!==typeof l)return s+l;if(n=l(),void 0!==n)return s+n}const h=t.referenceFn;if(void 0!==h&&(n=c(h),void 0!==n))return s+n;if(void 0!==t.owner){const i=function(e,t){for(const i in e)if(e[i]===t)return i;return}(t.owner,e);if(void 0!==i)return s+i}return}(e,t);if(s){let t=n.get(s)??0;t++,n.set(s,t);const i=1===t?s:`${s}#${t}`;return r.set(e,i),i}return}(e,this)}}const n=new Map,r=new WeakMap;const o=new Map,a=new WeakMap;function c(e){const t=e.toString(),i=/\/\*\*\s*@description\s*([^*]*)\*\//.exec(t),s=i?i[1]:void 0;return s?.trim()}},22362:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>i.e(9748).then(i.bind(i,59748))})},22890:(e,t,i)=>{"use strict";var s=i(31450),n=i(24520),r=i(51861),o=i(86723),a=i(10424);class c extends s.ks{constructor(){super({id:"editor.action.toggleHighContrast",label:r.E6.toggleHighContrast,alias:"Toggle High Contrast Theme",precondition:void 0}),this._originalThemeName=null}run(e,t){const i=e.get(n.L),s=i.getColorTheme();(0,o.Bb)(s.type)?(i.setTheme(this._originalThemeName||((0,o.HD)(s.type)?a.po:a.tj)),this._originalThemeName=null):(i.setTheme((0,o.HD)(s.type)?a.aQ:a.nr),this._originalThemeName=s.themeName)}}(0,s.Fl)(c)},23034:(e,t,i)=>{"use strict";i.d(t,{Ix:()=>u,bc:()=>h,nV:()=>d});var s=i(42904),n=i(35315),r=i(10350),o=i(78209);const a=o.kg("caseDescription","Match Case"),c=o.kg("wordsDescription","Match Whole Word"),l=o.kg("regexDescription","Use Regular Expression");class h extends n.l{constructor(e){super({icon:r.W.caseSensitive,title:a+e.appendTitle,isChecked:e.isChecked,hoverDelegate:e.hoverDelegate??(0,s.nZ)("element"),inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class d extends n.l{constructor(e){super({icon:r.W.wholeWord,title:c+e.appendTitle,isChecked:e.isChecked,hoverDelegate:e.hoverDelegate??(0,s.nZ)("element"),inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class u extends n.l{constructor(e){super({icon:r.W.regex,title:l+e.appendTitle,isChecked:e.isChecked,hoverDelegate:e.hoverDelegate??(0,s.nZ)("element"),inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}},23157:(e,t,i)=>{e.exports=function(e){const t=i(94297),s=i(83823)(e);return function(e,i,n){let r="";const o=e.$value,a=o.length;return t.drawFullView(a,i)?(r+="("+t.getIndent(i,n),r+=s(o,i,n),r+=t.getIndent(i,n-1)+")"):t.drawCompactView(a,i)?(r+="(",r+=s(o,i,n-1),r+=")"):r+="()",r}}},23195:(e,t,i)=>{"use strict";i.d(t,{l:()=>n});var s=i(61850);const n="yql";(0,s.KV)({id:n,extensions:[],loader:()=>i.e(9507).then(i.bind(i,19507)).then((e=>({conf:e.conf,language:e.getLanguage()})))})},23304:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>i.e(3534).then(i.bind(i,73534))})},23452:(e,t,i)=>{"use strict";i.d(t,{_:()=>s});const s={ICodeEditor:"vs.editor.ICodeEditor",IDiffEditor:"vs.editor.IDiffEditor"}},23646:(e,t,i)=>{"use strict";i.d(t,{X:()=>le});var s,n=i(90766),r=i(64383),o=i(24939),a=i(5662),c=i(80301),l=i(83069),h=i(36677),d=i(84226),u=i(78209),g=i(50091),p=i(84001),m=i(32848),f=i(63591),_=i(59261),v=i(36584),C=i(58591),E=i(9711),b=i(79614),S=i(8597),y=i(35151),w=i(47661),R=i(41234),L=i(36456),T=i(89403),x=i(29163),k=i(87289),A=i(83941),N=i(18938),I=i(3828),O=i(37479),D=i(21852),M=i(26690),P=i(98031),F=i(67841),U=i(19070),H=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},B=function(e,t){return function(i,s){t(i,s,e)}};let W=class{constructor(e){this._resolverService=e}hasChildren(e){return e instanceof b.y4||e instanceof b.$L}getChildren(e){if(e instanceof b.y4)return e.groups;if(e instanceof b.$L)return e.resolve(this._resolverService).then((e=>e.children));throw new Error("bad tree")}};W=H([B(0,N.ITextModelService)],W);class V{getHeight(){return 23}getTemplateId(e){return e instanceof b.$L?K.id:q.id}}let z=class{constructor(e){this._keybindingService=e}getKeyboardNavigationLabel(e){if(e instanceof b.yc){const t=e.parent.getPreview(e)?.preview(e.range);if(t)return t.value}return(0,T.P8)(e.uri)}};z=H([B(0,P.b)],z);class G{getId(e){return e instanceof b.yc?e.id:e.uri}}let j=class extends a.jG{constructor(e,t){super(),this._labelService=t;const i=document.createElement("div");i.classList.add("reference-file"),this.file=this._register(new D.s(i,{supportHighlights:!0})),this.badge=new I.x(S.BC(i,S.$(".count")),{},U.m$),e.appendChild(i)}set(e,t){const i=(0,T.pD)(e.uri);this.file.setLabel(this._labelService.getUriBasenameLabel(e.uri),this._labelService.getUriLabel(i,{relative:!0}),{title:this._labelService.getUriLabel(e.uri),matches:t});const s=e.children.length;this.badge.setCount(s),s>1?this.badge.setTitleFormat((0,u.kg)("referencesCount","{0} references",s)):this.badge.setTitleFormat((0,u.kg)("referenceCount","{0} reference",s))}};j=H([B(1,F.L)],j);let K=class{static{s=this}static{this.id="FileReferencesRenderer"}constructor(e){this._instantiationService=e,this.templateId=s.id}renderTemplate(e){return this._instantiationService.createInstance(j,e)}renderElement(e,t,i){i.set(e.element,(0,M.WJ)(e.filterData))}disposeTemplate(e){e.dispose()}};K=s=H([B(0,f._Y)],K);class Y extends a.jG{constructor(e){super(),this.label=this._register(new O._(e))}set(e,t){const i=e.parent.getPreview(e)?.preview(e.range);if(i&&i.value){const{value:e,highlight:s}=i;t&&!M.ne.isDefault(t)?(this.label.element.classList.toggle("referenceMatch",!1),this.label.set(e,(0,M.WJ)(t))):(this.label.element.classList.toggle("referenceMatch",!0),this.label.set(e,[s]))}else this.label.set(`${(0,T.P8)(e.uri)}:${e.range.startLineNumber+1}:${e.range.startColumn+1}`)}}class q{constructor(){this.templateId=q.id}static{this.id="OneReferenceRenderer"}renderTemplate(e){return new Y(e)}renderElement(e,t,i){i.set(e.element,e.filterData)}disposeTemplate(e){e.dispose()}}class ${getWidgetAriaLabel(){return(0,u.kg)("treeAriaLabel","References")}getAriaLabel(e){return e.ariaMessage}}var Q=i(47612),X=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Z=function(e,t){return function(i,s){t(i,s,e)}};class J{static{this.DecorationOptions=k.kI.register({description:"reference-decoration",stickiness:1,className:"reference-decoration"})}constructor(e,t){this._editor=e,this._model=t,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new a.Cm,this._callOnModelChange=new a.Cm,this._callOnDispose.add(this._editor.onDidChangeModel((()=>this._onModelChanged()))),this._onModelChanged()}dispose(){this._callOnModelChange.dispose(),this._callOnDispose.dispose(),this.removeDecorations()}_onModelChanged(){this._callOnModelChange.clear();const e=this._editor.getModel();if(e)for(const t of this._model.references)if(t.uri.toString()===e.uri.toString())return void this._addDecorations(t.parent)}_addDecorations(e){if(!this._editor.hasModel())return;this._callOnModelChange.add(this._editor.getModel().onDidChangeDecorations((()=>this._onDecorationChanged())));const t=[],i=[];for(let s=0,n=e.children.length;s<n;s++){const n=e.children[s];this._decorationIgnoreSet.has(n.id)||n.uri.toString()===this._editor.getModel().uri.toString()&&(t.push({range:n.range,options:J.DecorationOptions}),i.push(s))}this._editor.changeDecorations((s=>{const n=s.deltaDecorations([],t);for(let t=0;t<n.length;t++)this._decorations.set(n[t],e.children[i[t]])}))}_onDecorationChanged(){const e=[],t=this._editor.getModel();if(t){for(const[i,s]of this._decorations){const n=t.getDecorationRange(i);if(!n)continue;let r=!1;if(!h.Q.equalsRange(n,s.range)){if(h.Q.spansMultipleLines(n))r=!0;else{s.range.endColumn-s.range.startColumn!==n.endColumn-n.startColumn&&(r=!0)}r?(this._decorationIgnoreSet.add(s.id),e.push(i)):s.range=n}}for(let t=0,i=e.length;t<i;t++)this._decorations.delete(e[t]);this._editor.removeDecorations(e)}}removeDecorations(){this._editor.removeDecorations([...this._decorations.keys()]),this._decorations.clear()}}class ee{constructor(){this.ratio=.7,this.heightInLines=18}static fromJSON(e){let t,i;try{const s=JSON.parse(e);t=s.ratio,i=s.heightInLines}catch{}return{ratio:t||.7,heightInLines:i||18}}}class te extends v.er{}let ie=class extends d.j6{constructor(e,t,i,s,n,r,o,c,l){super(e,{showFrame:!1,showArrow:!0,isResizeable:!0,isAccessible:!0,supportOnTitleClick:!0},r),this._defaultTreeKeyboardSupport=t,this.layoutData=i,this._textModelResolverService=n,this._instantiationService=r,this._peekViewService=o,this._uriLabel=c,this._keybindingService=l,this._disposeOnNewModel=new a.Cm,this._callOnDispose=new a.Cm,this._onDidSelectReference=new R.vl,this.onDidSelectReference=this._onDidSelectReference.event,this._dim=new S.fg(0,0),this._isClosing=!1,this._applyTheme(s.getColorTheme()),this._callOnDispose.add(s.onDidColorThemeChange(this._applyTheme.bind(this))),this._peekViewService.addExclusiveWidget(e,this),this.create()}get isClosing(){return this._isClosing}dispose(){this._isClosing=!0,this.setModel(void 0),this._callOnDispose.dispose(),this._disposeOnNewModel.dispose(),(0,a.AS)(this._preview),(0,a.AS)(this._previewNotAvailableMessage),(0,a.AS)(this._tree),(0,a.AS)(this._previewModelReference),this._splitView.dispose(),super.dispose()}_applyTheme(e){const t=e.getColor(d.zl)||w.Q1.transparent;this.style({arrowColor:t,frameColor:t,headerBackgroundColor:e.getColor(d.z0)||w.Q1.transparent,primaryHeadingColor:e.getColor(d._X),secondaryHeadingColor:e.getColor(d.e3)})}show(e){super.show(e,this.layoutData.heightInLines||18)}focusOnReferenceTree(){this._tree.domFocus()}focusOnPreviewEditor(){this._preview.focus()}isPreviewEditorFocused(){return this._preview.hasTextFocus()}_onTitleClick(e){this._preview&&this._preview.getModel()&&this._onDidSelectReference.fire({element:this._getFocusedReference(),kind:e.ctrlKey||e.metaKey||e.altKey?"side":"open",source:"title"})}_fillBody(e){this.setCssClass("reference-zone-widget"),this._messageContainer=S.BC(e,S.$("div.messages")),S.jD(this._messageContainer),this._splitView=new y.U(e,{orientation:1}),this._previewContainer=S.BC(e,S.$("div.preview.inline"));this._preview=this._instantiationService.createInstance(x.t,this._previewContainer,{scrollBeyondLastLine:!1,scrollbar:{verticalScrollbarSize:14,horizontal:"auto",useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,alwaysConsumeMouseWheel:!0},overviewRulerLanes:2,fixedOverflowWidgets:!0,minimap:{enabled:!1}},{},this.editor),S.jD(this._previewContainer),this._previewNotAvailableMessage=this._instantiationService.createInstance(k.Bz,u.kg("missingPreviewMessage","no preview available"),A.vH,k.Bz.DEFAULT_CREATION_OPTIONS,null),this._treeContainer=S.BC(e,S.$("div.ref-tree.inline"));const t={keyboardSupport:this._defaultTreeKeyboardSupport,accessibilityProvider:new $,keyboardNavigationLabelProvider:this._instantiationService.createInstance(z),identityProvider:new G,openOnSingleClick:!0,selectionNavigation:!0,overrideStyles:{listBackground:d.n6}};this._defaultTreeKeyboardSupport&&this._callOnDispose.add(S.b2(this._treeContainer,"keydown",(e=>{e.equals(9)&&(this._keybindingService.dispatchEvent(e,e.target),e.stopPropagation())}),!0)),this._tree=this._instantiationService.createInstance(te,"ReferencesWidget",this._treeContainer,new V,[this._instantiationService.createInstance(K),this._instantiationService.createInstance(q)],this._instantiationService.createInstance(W),t),this._splitView.addView({onDidChange:R.Jh.None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:e=>{this._preview.layout({height:this._dim.height,width:e})}},y.X.Distribute),this._splitView.addView({onDidChange:R.Jh.None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:e=>{this._treeContainer.style.height=`${this._dim.height}px`,this._treeContainer.style.width=`${e}px`,this._tree.layout(this._dim.height,e)}},y.X.Distribute),this._disposables.add(this._splitView.onDidSashChange((()=>{this._dim.width&&(this.layoutData.ratio=this._splitView.getViewSize(0)/this._dim.width)}),void 0));const i=(e,t)=>{e instanceof b.yc&&("show"===t&&this._revealReference(e,!1),this._onDidSelectReference.fire({element:e,kind:t,source:"tree"}))};this._disposables.add(this._tree.onDidOpen((e=>{e.sideBySide?i(e.element,"side"):e.editorOptions.pinned?i(e.element,"goto"):i(e.element,"show")}))),S.jD(this._treeContainer)}_onWidth(e){this._dim&&this._doLayoutBody(this._dim.height,e)}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._dim=new S.fg(t,e),this.layoutData.heightInLines=this._viewZone?this._viewZone.heightInLines:this.layoutData.heightInLines,this._splitView.layout(t),this._splitView.resizeView(0,t*this.layoutData.ratio)}setSelection(e){return this._revealReference(e,!0).then((()=>{this._model&&(this._tree.setSelection([e]),this._tree.setFocus([e]))}))}setModel(e){return this._disposeOnNewModel.clear(),this._model=e,this._model?this._onNewModel():Promise.resolve()}_onNewModel(){return this._model?this._model.isEmpty?(this.setTitle(""),this._messageContainer.innerText=u.kg("noResults","No results"),S.WU(this._messageContainer),Promise.resolve(void 0)):(S.jD(this._messageContainer),this._decorationsManager=new J(this._preview,this._model),this._disposeOnNewModel.add(this._decorationsManager),this._disposeOnNewModel.add(this._model.onDidChangeReferenceRange((e=>this._tree.rerender(e)))),this._disposeOnNewModel.add(this._preview.onMouseDown((e=>{const{event:t,target:i}=e;if(2!==t.detail)return;const s=this._getFocusedReference();s&&this._onDidSelectReference.fire({element:{uri:s.uri,range:i.range},kind:t.ctrlKey||t.metaKey||t.altKey?"side":"open",source:"editor"})}))),this.container.classList.add("results-loaded"),S.WU(this._treeContainer),S.WU(this._previewContainer),this._splitView.layout(this._dim.width),this.focusOnReferenceTree(),this._tree.setInput(1===this._model.groups.length?this._model.groups[0]:this._model)):Promise.resolve(void 0)}_getFocusedReference(){const[e]=this._tree.getFocus();return e instanceof b.yc?e:e instanceof b.$L&&e.children.length>0?e.children[0]:void 0}async revealReference(e){await this._revealReference(e,!1),this._onDidSelectReference.fire({element:e,kind:"goto",source:"tree"})}async _revealReference(e,t){if(this._revealedReference===e)return;this._revealedReference=e,e.uri.scheme!==L.ny.inMemory?this.setTitle((0,T.Pi)(e.uri),this._uriLabel.getUriLabel((0,T.pD)(e.uri))):this.setTitle(u.kg("peekView.alternateTitle","References"));const i=this._textModelResolverService.createModelReference(e.uri);this._tree.getInput()===e.parent||(t&&this._tree.reveal(e.parent),await this._tree.expand(e.parent)),this._tree.reveal(e);const s=await i;if(!this._model)return void s.dispose();(0,a.AS)(this._previewModelReference);const n=s.object;if(n){const t=this._preview.getModel()===n.textEditorModel?0:1,i=h.Q.lift(e.range).collapseToStart();this._previewModelReference=s,this._preview.setModel(n.textEditorModel),this._preview.setSelection(i),this._preview.revealRangeInCenter(i,t)}else this._preview.setModel(this._previewNotAvailableMessage),s.dispose()}};ie=X([Z(3,Q.Gy),Z(4,N.ITextModelService),Z(5,f._Y),Z(6,d.zn),Z(7,F.L),Z(8,P.b)],ie);var se,ne=i(60002),re=i(28290),oe=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},ae=function(e,t){return function(i,s){t(i,s,e)}};const ce=new m.N1("referenceSearchVisible",!1,u.kg("referenceSearchVisible","Whether reference peek is visible, like 'Peek References' or 'Peek Definition'"));let le=class{static{se=this}static{this.ID="editor.contrib.referencesController"}static get(e){return e.getContribution(se.ID)}constructor(e,t,i,s,n,r,o,c){this._defaultTreeKeyboardSupport=e,this._editor=t,this._editorService=s,this._notificationService=n,this._instantiationService=r,this._storageService=o,this._configurationService=c,this._disposables=new a.Cm,this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=ce.bindTo(i)}dispose(){this._referenceSearchVisible.reset(),this._disposables.dispose(),this._widget?.dispose(),this._model?.dispose(),this._widget=void 0,this._model=void 0}toggleWidget(e,t,i){let s;if(this._widget&&(s=this._widget.position),this.closeWidget(),s&&e.containsPosition(s))return;this._peekMode=i,this._referenceSearchVisible.set(!0),this._disposables.add(this._editor.onDidChangeModelLanguage((()=>{this.closeWidget()}))),this._disposables.add(this._editor.onDidChangeModel((()=>{this._ignoreModelChangeEvent||this.closeWidget()})));const n="peekViewLayout",r=ee.fromJSON(this._storageService.get(n,0,"{}"));this._widget=this._instantiationService.createInstance(ie,this._editor,this._defaultTreeKeyboardSupport,r),this._widget.setTitle(u.kg("labelLoading","Loading...")),this._widget.show(e),this._disposables.add(this._widget.onDidClose((()=>{t.cancel(),this._widget?(this._storageService.store(n,JSON.stringify(this._widget.layoutData),0,1),this._widget.isClosing||this.closeWidget(),this._widget=void 0):this.closeWidget()}))),this._disposables.add(this._widget.onDidSelectReference((e=>{const{element:t,kind:s}=e;if(t)switch(s){case"open":"editor"===e.source&&this._configurationService.getValue("editor.stablePeek")||this.openReference(t,!1,!1);break;case"side":this.openReference(t,!0,!1);break;case"goto":i?this._gotoReference(t,!0):this.openReference(t,!1,!0)}})));const o=++this._requestIdPool;t.then((t=>{if(o===this._requestIdPool&&this._widget)return this._model?.dispose(),this._model=t,this._widget.setModel(this._model).then((()=>{if(this._widget&&this._model&&this._editor.hasModel()){this._model.isEmpty?this._widget.setMetaTitle(""):this._widget.setMetaTitle(u.kg("metaTitle.N","{0} ({1})",this._model.title,this._model.references.length));const t=this._editor.getModel().uri,i=new l.y(e.startLineNumber,e.startColumn),s=this._model.nearestReference(t,i);if(s)return this._widget.setSelection(s).then((()=>{this._widget&&"editor"===this._editor.getOption(87)&&this._widget.focusOnPreviewEditor()}))}}));t.dispose()}),(e=>{this._notificationService.error(e)}))}changeFocusBetweenPreviewAndReferences(){this._widget&&(this._widget.isPreviewEditorFocused()?this._widget.focusOnReferenceTree():this._widget.focusOnPreviewEditor())}async goToNextOrPreviousReference(e){if(!this._editor.hasModel()||!this._model||!this._widget)return;const t=this._widget.position;if(!t)return;const i=this._model.nearestReference(this._editor.getModel().uri,t);if(!i)return;const s=this._model.nextOrPreviousReference(i,e),n=this._editor.hasTextFocus(),r=this._widget.isPreviewEditorFocused();await this._widget.setSelection(s),await this._gotoReference(s,!1),n?this._editor.focus():this._widget&&r&&this._widget.focusOnPreviewEditor()}async revealReference(e){this._editor.hasModel()&&this._model&&this._widget&&await this._widget.revealReference(e)}closeWidget(e=!0){this._widget?.dispose(),this._model?.dispose(),this._referenceSearchVisible.reset(),this._disposables.clear(),this._widget=void 0,this._model=void 0,e&&this._editor.focus(),this._requestIdPool+=1}_gotoReference(e,t){this._widget?.hide(),this._ignoreModelChangeEvent=!0;const i=h.Q.lift(e.range).collapseToStart();return this._editorService.openCodeEditor({resource:e.uri,options:{selection:i,selectionSource:"code.jump",pinned:t}},this._editor).then((e=>{if(this._ignoreModelChangeEvent=!1,e&&this._widget)if(this._editor===e)this._widget.show(i),this._widget.focusOnReferenceTree();else{const t=se.get(e),s=this._model.clone();this.closeWidget(),e.focus(),t?.toggleWidget(i,(0,n.SS)((e=>Promise.resolve(s))),this._peekMode??!1)}else this.closeWidget()}),(e=>{this._ignoreModelChangeEvent=!1,(0,r.dz)(e)}))}openReference(e,t,i){t||this.closeWidget();const{uri:s,range:n}=e;this._editorService.openCodeEditor({resource:s,options:{selection:n,selectionSource:"code.jump",pinned:i}},this._editor,t)}};function he(e,t){const i=(0,d.RL)(e);if(!i)return;const s=le.get(i);s&&t(s)}le=se=oe([ae(2,m.fN),ae(3,c.T),ae(4,C.Ot),ae(5,f._Y),ae(6,E.CS),ae(7,p.pG)],le),_.f.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:(0,o.m5)(2089,60),when:m.M$.or(ce,d.x2.inPeekEditor),handler(e){he(e,(e=>{e.changeFocusBetweenPreviewAndReferences()}))}}),_.f.registerCommandAndKeybindingRule({id:"goToNextReference",weight:90,primary:62,secondary:[70],when:m.M$.or(ce,d.x2.inPeekEditor),handler(e){he(e,(e=>{e.goToNextOrPreviousReference(!0)}))}}),_.f.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:90,primary:1086,secondary:[1094],when:m.M$.or(ce,d.x2.inPeekEditor),handler(e){he(e,(e=>{e.goToNextOrPreviousReference(!1)}))}}),g.w.registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference"),g.w.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference"),g.w.registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch"),g.w.registerCommand("closeReferenceSearch",(e=>he(e,(e=>e.closeWidget())))),_.f.registerKeybindingRule({id:"closeReferenceSearch",weight:-1,primary:9,secondary:[1033],when:m.M$.and(d.x2.inPeekEditor,m.M$.not("config.editor.stablePeek"))}),_.f.registerKeybindingRule({id:"closeReferenceSearch",weight:250,primary:9,secondary:[1033],when:m.M$.and(ce,m.M$.not("config.editor.stablePeek"),m.M$.or(ne.R.editorTextFocus,re.J7.negate()))}),_.f.registerCommandAndKeybindingRule({id:"revealReference",weight:200,primary:3,mac:{primary:3,secondary:[2066]},when:m.M$.and(ce,v.YD,v.Nf.negate(),v.cH.negate()),handler(e){const t=e.get(v.PE),i=t.lastFocusedList?.getFocus();Array.isArray(i)&&i[0]instanceof b.yc&&he(e,(e=>e.revealReference(i[0])))}}),_.f.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:m.M$.and(ce,v.YD,v.Nf.negate(),v.cH.negate()),handler(e){const t=e.get(v.PE),i=t.lastFocusedList?.getFocus();Array.isArray(i)&&i[0]instanceof b.yc&&he(e,(e=>e.openReference(i[0],!0,!0)))}}),g.w.registerCommand("openReference",(e=>{const t=e.get(v.PE),i=t.lastFocusedList?.getFocus();Array.isArray(i)&&i[0]instanceof b.yc&&he(e,(e=>e.openReference(i[0],!1,!0)))}))},23750:(e,t,i)=>{"use strict";i.r(t),i.d(t,{IModelService:()=>s});const s=(0,i(63591).u1)("modelService")},23812:(e,t,i)=>{"use strict";i.d(t,{k:()=>ai});var s=i(60712),n=i(59284),r=i(46819),o=i(85736),a=i(51301);const c="g-date-",l=(0,i(82435).withNaming)({n:c,e:"__",m:"_"});function h({name:e,value:t,onReset:i,form:r,disabled:o,toStringValue:a}){const c=function({initialValue:e,onReset:t}){const[i,s]=n.useState(null),r=n.useRef(e);n.useEffect((()=>{if(!i||!t)return;const e=()=>{t(r.current)};return i.addEventListener("reset",e),()=>{i.removeEventListener("reset",e)}}),[i,t]);const o=n.useCallback((e=>{var t;s(null!==(t=null===e||void 0===e?void 0:e.form)&&void 0!==t?t:null)}),[]);return o}({initialValue:t,onReset:i});if(!e)return null;const l=a?a(t):`${null!==t&&void 0!==t?t:""}`;return(0,s.jsx)("input",{ref:c,type:"hidden",name:e,value:l,disabled:o,form:r})}const d=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.25 5.497a.75.75 0 0 1-.75-.75V4A1.5 1.5 0 0 0 3 5.5v1h10v-1A1.5 1.5 0 0 0 11.5 4v.75a.75.75 0 0 1-1.5 0V4H6v.747a.75.75 0 0 1-.75.75M10 2.5H6v-.752a.75.75 0 1 0-1.5 0V2.5a3 3 0 0 0-3 3v6a3 3 0 0 0 3 3h7a3 3 0 0 0 3-3v-6a3 3 0 0 0-3-3v-.75a.75.75 0 0 0-1.5 0zM3 8v3.5A1.5 1.5 0 0 0 4.5 13h7a1.5 1.5 0 0 0 1.5-1.5V8z",clipRule:"evenodd"}));var u=i(28664),g=i(84476),p=i(99991);function m(e){switch(e){case"xl":return"l";case"l":return"m";case"s":return"xs";default:return"s"}}var f=i(14750),_=i(72837);const v=JSON.parse('{"Last 5 minutes":"Last 5 minutes","Last 15 minutes":"Last 15 minutes","Last 30 minutes":"Last 30 minutes","Last hour":"Last hour","Last 3 hours":"Last 3 hours","Last 6 hours":"Last 6 hours","Last 12 hours":"Last 12 hours","Last day":"Last day","Last 3 days":"Last 3 days","Last week":"Last week","Last month":"Last month","Last 3 months":"Last 3 months","Last 6 months":"Last 6 months","Last year":"Last year","Last 3 years":"Last 3 years","Today":"Today","Yesterday":"Yesterday","Day before yesterday":"Day before yesterday","This week":"This week","This month":"This month","This year":"This year","From start of day":"From start of day","From start of week":"From start of week","From start of month":"From start of month","From start of year":"From start of year","Previous month":"Previous month","Last second":"Last second","Last minute":"Last minute","Last {count} second":["Last {{count}} second","Last {{count}} seconds","Last {{count}} seconds"],"Last {count} minute":["Last {{count}} minute","Last {{count}} minutes","Last {{count}} minutes"],"Last {count} hour":["Last {{count}} hour","Last {{count}} hours","Last {{count}} hours"],"Last {count} day":["Last {{count}} day","Last {{count}} days","Last {{count}} days"],"Last {count} week":["Last {{count}} week","Last {{count}} weeks","Last {{count}} weeks"],"Last {count} month":["Last {{count}} month","Last {{count}} months","Last {{count}} months"],"Last {count} year":["Last {{count}} year","Last {{count}} years","Last {{count}} years"],"Main":"Main","Other":"Other","Range":"Range","From":"From","To":"To"}'),C=JSON.parse('{"Last 5 minutes":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 5 \u043c\u0438\u043d\u0443\u0442","Last 15 minutes":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 15 \u043c\u0438\u043d\u0443\u0442","Last 30 minutes":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 30 \u043c\u0438\u043d\u0443\u0442","Last hour":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0447\u0430\u0441","Last 3 hours":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 3 \u0447\u0430\u0441\u0430","Last 6 hours":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 6 \u0447\u0430\u0441\u043e\u0432","Last 12 hours":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 12 \u0447\u0430\u0441\u043e\u0432","Last day":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0434\u0435\u043d\u044c","Last 3 days":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 3 \u0434\u043d\u044f","Last week":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u043d\u0435\u0434\u0435\u043b\u044f","Last month":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u043c\u0435\u0441\u044f\u0446","Last 3 months":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 3 \u043c\u0435\u0441\u044f\u0446\u0430","Last 6 months":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 6 \u043c\u0435\u0441\u044f\u0446\u0435\u0432","Last year":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0433\u043e\u0434","Last 3 years":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 3 \u0433\u043e\u0434\u0430","Today":"\u0421\u0435\u0433\u043e\u0434\u043d\u044f","Yesterday":"\u0412\u0447\u0435\u0440\u0430","Day before yesterday":"\u041f\u043e\u0437\u0430\u0432\u0447\u0435\u0440\u0430","This week":"\u042d\u0442\u0430 \u043d\u0435\u0434\u0435\u043b\u044f","This month":"\u042d\u0442\u043e\u0442 \u043c\u0435\u0441\u044f\u0446","This year":"\u042d\u0442\u043e\u0442 \u0433\u043e\u0434","From start of day":"\u0421 \u043d\u0430\u0447\u0430\u043b\u0430 \u0434\u043d\u044f","From start of week":"\u0421 \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0435\u0434\u0435\u043b\u0438","From start of month":"\u0421 \u043d\u0430\u0447\u0430\u043b\u0430 \u043c\u0435\u0441\u044f\u0446\u0430","From start of year":"\u0421 \u043d\u0430\u0447\u0430\u043b\u0430 \u0433\u043e\u0434\u0430","Previous month":"\u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u043c\u0435\u0441\u044f\u0446","Last second":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u0441\u0435\u043a\u0443\u043d\u0434\u0430","Last minute":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u043c\u0438\u043d\u0443\u0442\u0430","Last {count} second":["\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0430","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u044b","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434"],"Last {count} minute":["\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f {{count}} \u043c\u0438\u043d\u0443\u0442\u0430","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u043c\u0438\u043d\u0443\u0442\u044b","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u043c\u0438\u043d\u0443\u0442"],"Last {count} hour":["\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 {{count}} \u0447\u0430\u0441","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u0447\u0430\u0441\u0430","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u0447\u0430\u0441\u043e\u0432"],"Last {count} day":["\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 {{count}} \u0434\u0435\u043d\u044c","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u0434\u043d\u044f","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u0434\u043d\u0435\u0439"],"Last {count} week":["\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f {{count}} \u043d\u0435\u0434\u0435\u043b\u044f","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u043d\u0435\u0434\u0435\u043b\u0438","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u043d\u0435\u0434\u0435\u043b\u044c"],"Last {count} month":["\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 {{count}} \u043c\u0435\u0441\u044f\u0446","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u043c\u0435\u0441\u044f\u0446\u0430","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u043c\u0435\u0441\u044f\u0446\u0435\u0432"],"Last {count} year":["\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 {{count}} \u0433\u043e\u0434","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u0433\u043e\u0434\u0430","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u043b\u0435\u0442"],"Main":"\u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435","Other":"\u0414\u0440\u0443\u0433\u0438\u0435","Range":"\u041f\u0435\u0440\u0438\u043e\u0434","From":"\u041e\u0442","To":"\u0414\u043e"}'),E=(0,_.N)({en:v,ru:C},`${c}relative-range-date-picker-presets`),b=[{from:"now-1d",to:"now",get title(){return E("Last day")}},{from:"now-3d",to:"now",get title(){return E("Last 3 days")}},{from:"now-1w",to:"now",get title(){return E("Last week")}},{from:"now-1M",to:"now",get title(){return E("Last month")}},{from:"now-3M",to:"now",get title(){return E("Last 3 months")}},{from:"now-6M",to:"now",get title(){return E("Last 6 months")}},{from:"now-1y",to:"now",get title(){return E("Last year")}},{from:"now-3y",to:"now",get title(){return E("Last 3 years")}}],S=[{from:"now-5m",to:"now",get title(){return E("Last 5 minutes")}},{from:"now-15m",to:"now",get title(){return E("Last 15 minutes")}},{from:"now-30m",to:"now",get title(){return E("Last 30 minutes")}},{from:"now-1h",to:"now",get title(){return E("Last hour")}},{from:"now-3h",to:"now",get title(){return E("Last 3 hours")}},{from:"now-6h",to:"now",get title(){return E("Last 6 hours")}},{from:"now-12h",to:"now",get title(){return E("Last 12 hours")}}],y=[{from:"now/d",to:"now/d",get title(){return E("Today")}},{from:"now-1d/d",to:"now-1d/d",get title(){return E("Yesterday")}},{from:"now-2d/d",to:"now-2d/d",get title(){return E("Day before yesterday")}},{from:"now/w",to:"now/w",get title(){return E("This week")}},{from:"now/M",to:"now/M",get title(){return E("This month")}},{from:"now/y",to:"now/y",get title(){return E("This year")}},{from:"now/d",to:"now",get title(){return E("From start of day")}},{from:"now/w",to:"now",get title(){return E("From start of week")}},{from:"now/M",to:"now",get title(){return E("From start of month")}},{from:"now/y",to:"now",get title(){return E("From start of year")}}],w=S.concat(b,y),R=/^now-(\d+)([smhdwMy])$/,L={s:"Last second",m:"Last minute",h:"Last hour",d:"Last day",w:"Last week",M:"Last month",y:"Last year"},T={s:"Last {count} second",m:"Last {count} minute",h:"Last {count} hour",d:"Last {count} day",w:"Last {count} week",M:"Last {count} month",y:"Last {count} year"};function x(e,t){return e.filter((e=>{const i=(0,f.bQ)(e.from),s=(0,f.bQ)(e.to,{roundUp:!0});return!(!i||!s)&&(!s.isBefore(i)&&(!t||!i.isBefore(t)))}))}function k(e){const t=e.toLowerCase();return"default"===t||"system"===t?t:function(e){return"default"===e||"system"===e?(0,f.KQ)({timeZone:e}).timeZone():e}(e)}function A(e){return`UTC ${(0,f.KQ)({timeZone:e}).format("Z")}`}function N({value:e,timeZone:t,alwaysShowAsAbsolute:i,format:s="L",presets:n}){var r,o,a,c,l,h;if(!e)return"";const d="default"===t?"":` (${A(t)})`;let u="";e.start&&(u="relative"!==e.start.type||i?null!==(o=null===(r=(0,f.bQ)(e.start.value,{timeZone:t}))||void 0===r?void 0:r.format(s))&&void 0!==o?o:"":e.start.value);let g="";if(e.end&&(g="relative"!==e.end.type||i?null!==(c=null===(a=(0,f.bQ)(e.end.value,{timeZone:t,roundUp:!0}))||void 0===a?void 0:a.format(s))&&void 0!==c?c:"":e.end.value),!i&&"relative"===(null===(l=e.start)||void 0===l?void 0:l.type)&&"relative"===(null===(h=e.end)||void 0===h?void 0:h.type))return`${function(e,t,i=w){const s=e.replace(/\s+/g,""),n=t.replace(/\s+/g,"");for(const r of i)if(r.from===s&&r.to===n)return r.title;if("now"===t){const e=R.exec(s);if(e){const[,t,i]=e;if(["s","m","h","d","w","M","y"].includes(i)){const e=1===Number(t)?L[i]:T[i];return E(e,{count:t})}}}return s+" \u2014 "+n}(e.start.value,e.end.value,n)}`;return`${u} \u2014 ${g}${d}`}const I=JSON.parse('{"Range date picker":"Range date picker"}'),O=JSON.parse('{"Range date picker":"\u0412\u044b\u0431\u043e\u0440 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0430 \u0434\u0430\u0442"}'),D=(0,_.N)({en:I,ru:O},`${c}relative-range-date-picker-control`),M=l("relative-range-date-picker-control"),P=n.forwardRef((({props:e,state:t,open:i,isMobile:r,onClick:o,onKeyDown:a,onFocus:c,onClickCalendar:l,onUpdate:h},f)=>{var _;const{alwaysShowAsAbsolute:v,presetTabs:C,getRangeTitle:E}=e,b=e.format||"L",S=n.useMemo((()=>"function"===typeof E?E(t.value,t.timeZone):N({value:t.value,timeZone:t.timeZone,alwaysShowAsAbsolute:v,format:b,presets:null===C||void 0===C?void 0:C.flatMap((({presets:e})=>e))})),[v,b,E,C,t.timeZone,t.value]),y=e.validationState||(t.isInvalid?"invalid":void 0),w=null!==(_=e.errorMessage)&&void 0!==_?_:t.errors.join("\n"),R={id:e.id,role:"combobox","aria-haspopup":"dialog","aria-expanded":i,"aria-label":e["aria-label"],"aria-labelledby":e["aria-labelledby"],"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"],disabled:e.disabled,readOnly:e.readOnly,onClick:l,onKeyDown:a};return e.renderControl?e.renderControl({ref:f,value:t.value,title:S,validationState:y,errorMessage:w,open:i,triggerProps:R}):(0,s.jsxs)(n.Fragment,{children:[(0,s.jsx)(u.k,{id:e.id,autoFocus:e.autoFocus,controlRef:f,value:S,placeholder:e.placeholder,onUpdate:h,controlProps:Object.assign(Object.assign({className:M("input",{mobile:r})},R),{disabled:r,onClick:o}),onKeyDown:a,onFocus:c,validationState:y,errorMessage:w,errorPlacement:e.errorPlacement,pin:e.pin,size:e.size,label:e.label,hasClear:e.hasClear,disabled:e.disabled,endContent:(0,s.jsx)(g.$,{view:"flat-secondary",size:m(e.size),disabled:e.disabled,extraProps:{"aria-haspopup":"dialog","aria-expanded":i,"aria-label":D("Range date picker")},onClick:l,children:(0,s.jsx)(p.I,{data:d})})}),r?(0,s.jsx)("button",{className:M("mobile-trigger",{"has-clear":Boolean(e.hasClear&&t.value),"has-errors":t.isInvalid&&"inside"===e.errorPlacement,size:e.size}),onClick:o}):null]})}));P.displayName="Control";var F=i(12640),U=i(39238);const H=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("g",{clipPath:"url(#a)"},n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.312 4.29a.764.764 0 0 1 1.103-.62.75.75 0 1 0 .67-1.34 2.264 2.264 0 0 0-3.268 1.836L2.706 5.5H1.75a.75.75 0 0 0 0 1.5h.83l-.392 4.71a.764.764 0 0 1-1.103.62.75.75 0 0 0-.67 1.34 2.264 2.264 0 0 0 3.268-1.836L4.086 7H5.25a.75.75 0 1 0 0-1.5H4.21zm6.014 2.23a.75.75 0 0 0-1.152.96l.85 1.02-.85 1.02a.75.75 0 0 0 1.152.96L11 9.672l.674.808a.75.75 0 0 0 1.152-.96l-.85-1.02.85-1.02a.75.75 0 0 0-1.152-.96L11 7.328zM8.02 4.55a.75.75 0 0 1 .43.969l-.145.378a7.25 7.25 0 0 0 0 5.205l.145.378a.75.75 0 0 1-1.4.539l-.145-.378a8.75 8.75 0 0 1 0-6.282l.145-.378a.75.75 0 0 1 .97-.431m5.961 0a.75.75 0 0 1 .97.43l.145.379a8.75 8.75 0 0 1 0 6.282l-.146.378a.75.75 0 1 1-1.4-.538l.146-.379a7.25 7.25 0 0 0 0-5.205l-.146-.378a.75.75 0 0 1 .431-.97",clipRule:"evenodd"})),n.createElement("defs",null,n.createElement("clipPath",{id:"a"},n.createElement("path",{fill:"currentColor",d:"M0 0h16v16H0z"})))),B=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.5 8a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0M8.75 4.5a.75.75 0 0 0-1.5 0V8a.75.75 0 0 0 .3.6l2 1.5a.75.75 0 1 0 .9-1.2l-1.7-1.275z",clipRule:"evenodd"}));var W=i(32084),V=i(9187),z=i(38602),G=i(33705);function j({placeholderValue:e,timeZone:t}){return null!==e&&void 0!==e?e:(0,f.KQ)({timeZone:t}).set("hour",0).set("minute",0).set("second",0)}function K(e,t,i){return t&&e.isBefore(t)?t:i&&i.isBefore(e)?i:e}function Y(e,t){return e.set("hours",t.hour()).set("minutes",t.minute()).set("seconds",t.second())}function q(e,t,i){return(0,f.KQ)({input:e,timeZone:i}).format(t)}function $(e,t){const i=n.useRef(null),s=t.isCellFocused(e);n.useEffect((()=>{var e;s&&(null===(e=i.current)||void 0===e||e.focus({preventScroll:!0}))}),[s]);const r=t.focusedDate.isSame(e,t.mode)?0:-1,o=t.isCellDisabled(e),a=t.isSelected(e),c="highlightedRange"in t&&t.highlightedRange,l=Boolean(c&&a),h=a&&c&&e.isSame(c.start,t.mode),d=a&&c&&e.isSame(c.end,t.mode),u="days"===t.mode&&!t.focusedDate.isSame(e,"month"),g=t.isCellUnavailable(e),p=!o&&!g,m=t.isCurrent(e),f=t.isWeekend(e),_=function(e,t){switch(t.mode){case"days":return`${q(e,"dddd",t.timeZone)}, ${q(e,"LL",t.timeZone)}`;case"months":return`${q(e,"MMMM YYYY",t.timeZone)}`;case"quarters":return`${q(e,"[Q]Q YYYY",t.timeZone)}`;case"years":return`${q(e,"YYYY",t.timeZone)}`;default:return""}}(e,t),v={role:"gridcell","aria-selected":a?"true":void 0,"aria-disabled":o?"true":void 0},C={ref:i,role:"button",tabIndex:o?void 0:r,"aria-disabled":p?void 0:"true","aria-label":_,onClick:p?()=>{t.setFocusedDate(e),t.selectDate(e)}:void 0,onPointerEnter(){if("highlightDate"in t&&p)if(u){const i=e.isBefore(t.focusedDate)?t.focusedDate.startOf("month"):t.focusedDate.endOf("month").startOf("date");t.highlightDate(i)}else t.highlightDate(e)}};let E=q(e,"D",t.timeZone);return"months"===t.mode?E=q(e,"MMM",t.timeZone):"quarters"===t.mode?E=q(e,"[Q]Q",t.timeZone):"years"===t.mode&&(E=q(e,"YYYY",t.timeZone)),{cellProps:v,buttonProps:C,formattedDate:E,isDisabled:o,isSelected:a,isRangeSelection:l,isSelectionStart:h,isSelectionEnd:d,isOutsideCurrentRange:u,isUnavailable:g,isCurrent:m,isWeekend:f}}const Q=JSON.parse('{"Previous":"Previous","Next":"Next","Switch to months view":"Switch to months view","Switch to quarters view":"Switch to quarters view","Switch to years view":"Switch to years view"}'),X=JSON.parse('{"Previous":"\u041d\u0430\u0437\u0430\u0434","Next":"\u0412\u043f\u0435\u0440\u0451\u0434","Switch to months view":"\u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u043f\u043e \u043c\u0435\u0441\u044f\u0446\u0430\u043c","Switch to quarters view":"\u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u043f\u043e \u043a\u0432\u0430\u0440\u0442\u0430\u043b\u0430\u043c","Switch to years view":"\u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u043f\u043e \u0433\u043e\u0434\u0430\u043c"}'),Z=(0,_.N)({en:Q,ru:X},`${c}calendar`),J="yc-button_disabled g-button_disabled";function ee(e,t){const i=t.indexOf(e)+1;if(i===t.length)return;return{days:"",months:Z("Switch to months view"),quarters:Z("Switch to quarters view"),years:Z("Switch to years view")}[t[i]]}const te=["days","months","quarters","years"],ie=l("calendar"),se=n.forwardRef((function(e,t){const{state:i}=e,{calendarProps:r,modeButtonProps:o,nextButtonProps:c,previousButtonProps:l}=function(e,t){const i="years"===t.mode||"quarters"===t.mode?`${t.startDate.year()} \u2014 ${t.endDate.year()}`:q(t.focusedDate,"days"===t.mode?"MMMM YYYY":"YYYY",t.timeZone),{focusWithinProps:s}=(0,a.R)({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur}),r=Object.assign({role:"group",id:e.id,"aria-label":[e["aria-label"],i].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]||void 0,"aria-describedby":e["aria-describedby"]||void 0,"aria-details":e["aria-details"]||void 0,"aria-disabled":t.disabled||void 0},s),o=t.availableModes.indexOf(t.mode),c=o+1===t.availableModes.length,l=o+2===t.availableModes.length,h=t.disabled||c,d={disabled:t.disabled,className:h?J:void 0,onClick:h?void 0:()=>{t.zoomOut(),l&&t.setFocused(!0)},extraProps:{"aria-disabled":h?"true":void 0,"aria-description":ee(t.mode,t.availableModes),"aria-live":"polite"},children:i},u=n.useRef(!1),g=t.disabled||t.isPreviousPageInvalid();n.useLayoutEffect((()=>{g&&u.current&&(u.current=!1,t.setFocused(!0))}));const p={disabled:t.disabled,className:g?J:void 0,onClick:g?void 0:()=>{t.focusPreviousPage()},onFocus:g?void 0:()=>{u.current=!0},onBlur:g?void 0:()=>{u.current=!1},extraProps:{"aria-label":Z("Previous"),"aria-disabled":g?"true":void 0}},m=n.useRef(!1),f=t.disabled||t.isNextPageInvalid();return n.useLayoutEffect((()=>{f&&m.current&&(m.current=!1,t.setFocused(!0))})),{calendarProps:r,modeButtonProps:d,nextButtonProps:{disabled:t.disabled,className:f?J:void 0,onClick:f?void 0:()=>{t.focusNextPage()},onFocus:f?void 0:()=>{m.current=!0},onBlur:f?void 0:()=>{m.current=!1},extraProps:{"aria-label":Z("Next"),"aria-disabled":g?"true":void 0}},previousButtonProps:p}}(e,i);return n.useImperativeHandle(t,(()=>({focus(){i.setFocused(!0)}}))),(0,s.jsxs)("div",Object.assign({},r,{className:ie({size:e.size}),children:[(0,s.jsxs)("div",{className:ie("header"),children:[(0,s.jsx)(g.$,Object.assign({},o,{view:"flat",size:e.size,children:i.availableModes.indexOf(i.mode)+1===i.availableModes.length?(0,s.jsx)("span",{className:ie("mode-label",ie("years-label")),children:o.children},"label"):[(0,s.jsx)("span",{className:ie("mode-label"),children:o.children},"label"),(0,s.jsx)(g.$.Icon,{children:(0,s.jsx)(G.I,{direction:"bottom"})},"icon")]})),(0,s.jsxs)("div",{className:ie("controls"),children:[(0,s.jsx)(g.$,Object.assign({},l,{view:"flat",size:e.size,children:(0,s.jsx)(g.$.Icon,{children:(0,s.jsx)(V.A,{className:ie("control-icon")})})})),(0,s.jsx)(g.$,Object.assign({},c,{view:"flat",size:e.size,children:(0,s.jsx)(g.$.Icon,{children:(0,s.jsx)(z.A,{className:ie("control-icon")})})}))]})]}),(0,s.jsx)(ne,{state:i})]}))}));function ne({state:e}){const[t,i]=n.useState((()=>Object.assign(Object.assign({},e),{isFocused:!1}))),r=e.mode!==t.mode,o=!e.startDate.isSame(t.startDate,"days");let c;r?c=te.indexOf(t.mode)>te.indexOf(e.mode)?"zoom-out":"zoom-in":o&&(c=e.startDate.isBefore(t.startDate)?"forward":"backward");const{gridProps:l}=function(e){const{focusWithinProps:t}=(0,a.R)({onFocusWithinChange:t=>{e.setFocused(t)}});return{gridProps:Object.assign(Object.assign({role:"grid","aria-label":"years"===e.mode||"quarters"===e.mode?`${e.startDate.year()} \u2014 ${e.endDate.year()}`:q(e.focusedDate,"days"===e.mode?"MMMM YYYY":"YYYY",e.timeZone),"aria-disabled":e.disabled?"true":void 0,"aria-readonly":e.readOnly?"true":void 0},t),{onKeyDown:t=>{"ArrowRight"===t.key?(t.preventDefault(),e.focusNextCell()):"ArrowLeft"===t.key?(t.preventDefault(),e.focusPreviousCell()):"ArrowDown"===t.key?(t.preventDefault(),e.focusNextRow()):"ArrowUp"===t.key?(t.preventDefault(),e.focusPreviousRow()):"PageDown"===t.key?(t.preventDefault(),e.focusNextPage(t.shiftKey)):"PageUp"===t.key?(t.preventDefault(),e.focusPreviousPage(t.shiftKey)):"End"===t.key?(t.preventDefault(),e.focusSectionEnd()):"Home"===t.key?(t.preventDefault(),e.focusSectionStart()):"Minus"===t.code?(t.preventDefault(),e.zoomOut()):"Equal"===t.code?(t.preventDefault(),e.zoomIn()):"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),e.selectDate(e.focusedDate))}})}}(e);return(0,s.jsxs)("div",Object.assign({className:ie("grid")},l,{children:[c&&(0,s.jsx)(re,{className:ie("previous-state"),state:t,animation:c}),(0,s.jsx)(re,{className:ie("current-state"),state:e,animation:c,onAnimationEnd:()=>{i(Object.assign(Object.assign({},e),{isFocused:!1}))}},"current")]}))}function re({className:e,state:t,animation:i,onAnimationEnd:n}){return(0,s.jsxs)("div",{className:ie("content",{animation:i},e),onAnimationEnd:n,role:"presentation",children:["days"===t.mode&&(0,s.jsx)(oe,{state:t}),(0,s.jsx)(ae,{state:t})]})}function oe({state:e}){const t=function(e){const t=[],i=(0,f.KQ)({timeZone:e.timeZone}).startOf("week");for(let s=0;s<7;s++){const e=i.add({days:s});t.push(e)}return t}(e);return(0,s.jsx)("div",{className:ie("grid-row"),role:"row",children:t.map((t=>(0,s.jsx)("div",{className:ie("weekday",{weekend:e.isWeekend(t)}),role:"columnheader","aria-label":q(t,"dddd",e.timeZone),children:q(t,"dd",e.timeZone)},t.day())))})}function ae({state:e}){const t="days"===e.mode?6:4,i="days"===e.mode?7:3+("quarters"===e.mode?1:0),n=function(e){const t=[],i=(0,f.KQ)({input:e.startDate,timeZone:e.timeZone});if("days"===e.mode){const e=i.startOf("week");for(let i=0;i<42;i++)t.push(e.add({days:i}))}else if("quarters"===e.mode)for(let s=0;s<16;s++)t.push(i.add(s,"quarters"));else for(let s=0;s<12;s++)t.push(i.add({[e.mode]:s}));return t}(e);return(0,s.jsx)("div",{className:ie("grid-rowgroup",{mode:e.mode}),role:"rowgroup",children:[...new Array(t).keys()].map((t=>(0,s.jsxs)("div",{className:ie("grid-row"),role:"row",children:["quarters"===e.mode?(0,s.jsx)("span",{role:"rowheader",className:ie("grid-rowgroup-header"),children:q(n[t*i],"YYYY",e.timeZone)}):null,n.slice(t*i,(t+1)*i).map((t=>(0,s.jsx)(ce,{date:t,state:e},t.unix())))]},t)))})}function ce({date:e,state:t}){const{cellProps:i,buttonProps:n,formattedDate:r,isDisabled:o,isSelected:a,isRangeSelection:c,isSelectionStart:l,isSelectionEnd:h,isOutsideCurrentRange:d,isUnavailable:u,isCurrent:g,isWeekend:p}=$(e,t);return(0,s.jsx)("div",Object.assign({},i,{children:(0,s.jsx)("div",Object.assign({},n,{className:ie("button",{disabled:o,selected:a,"range-selection":c,"selection-start":l,"selection-end":h,"out-of-boundary":d,unavailable:u,current:g,weekend:p}),children:r}))}))}function le(e){const t=e?e.timeZone():"default",[i,s]=n.useState(t);e&&t!==i&&s(t);return e?t:i}const he={days:!0,months:!0,quarters:!1,years:!0};function de(e,t){if("days"===t)return e.startOf("month");if("months"===t)return e.startOf("year");if("quarters"===t){const t=4*Math.floor(e.year()/4);return e.startOf("year").set("year",t)}const i=12*Math.floor(e.year()/12);return e.startOf("year").set("year",i)}function ue(e,t){if("days"===t)return e.endOf("month").startOf("day");if("months"===t)return e.endOf("year").startOf("month");const i=de(e,t);return"quarters"===t?i.add(15,"quarters"):i.add({[t]:11})}function ge(e,t,i,s="days"){return!K(e,t,i).isSame(e,s)}const pe=n.forwardRef((function(e,t){const i=function(e){var t,i,s;const{disabled:r,readOnly:a,modes:c=he}=e,[l,h]=(0,o.P)(e.value,null!==(t=e.defaultValue)&&void 0!==t?t:null,e.onUpdate),d=te.filter((e=>c[e])),u=d[0]||"days",[g,p]=(0,o.P)(e.mode,null!==(i=e.defaultMode)&&void 0!==i?i:u,e.onUpdateMode),m=g&&d.includes(g)?g:u,_=le(e.value||e.defaultValue||e.focusedValue||e.defaultFocusedValue),v=e.timeZone||_,C=n.useMemo((()=>e.minValue?e.minValue.timeZone(v):void 0),[v,e.minValue]),E=n.useMemo((()=>e.maxValue?e.maxValue.timeZone(v):void 0),[v,e.maxValue]),b=n.useMemo((()=>e.focusedValue?K(e.focusedValue.timeZone(v),C,E):e.focusedValue),[e.focusedValue,C,E,v]),S=n.useMemo((()=>{var t;return K((null===(t=e.defaultFocusedValue?e.defaultFocusedValue:l)||void 0===t?void 0:t.timeZone(v))||j({timeZone:v}).startOf(u),C,E)}),[E,C,e.defaultFocusedValue,v,l,u]),[y,w]=(0,o.P)(b,S,(t=>{var i;null===(i=e.onFocusUpdate)||void 0===i||i.call(e,t.timeZone(_))})),R=null!==(s=null===y||void 0===y?void 0:y.timeZone(v))&&void 0!==s?s:K(j({timeZone:v}),C,E);function L(e){w(K(e.startOf(m),C,E))}ge(R,C,E)&&w(K(R,C,E));const[T,x]=n.useState(e.autoFocus||!1),k=de(R,m),A=ue(R,m);return{disabled:r,readOnly:a,value:l,setValue(e){if(!r&&!a){let t=K(e,C,E);if(this.isCellUnavailable(t))return;l&&(t=Y(t,l.timeZone(v))),h(t.timeZone(_))}},timeZone:v,selectDate(e,t=!1){r||(a||!t&&this.mode!==u?this.zoomIn():(this.setValue(e.startOf(u)),t&&m!==u&&p(u)))},minValue:C,maxValue:E,focusedDate:R,startDate:k,endDate:A,setFocusedDate(e){L(e),x(!0)},focusNextCell(){L(R.add(1,this.mode))},focusPreviousCell(){L(R.subtract(1,this.mode))},focusNextRow(){"days"===this.mode?L(R.add(1,"week")):"quarters"===this.mode?L(R.add(1,"years")):L(R.add(3,this.mode))},focusPreviousRow(){"days"===this.mode?L(R.subtract(1,"week")):"quarters"===this.mode?L(R.subtract(1,"years")):L(R.subtract(3,this.mode))},focusNextPage(e){"days"===this.mode?L(R.add({months:e?12:1})):"quarters"===this.mode?L(R.add(4,"years")):L(R.add(12,this.mode))},focusPreviousPage(e){"days"===this.mode?L(R.subtract({months:e?12:1})):"quarters"===this.mode?L(R.subtract(4,"years")):L(R.subtract(12,this.mode))},focusSectionStart(){L(de(R,this.mode))},focusSectionEnd(){L(ue(R,this.mode))},zoomIn(){const e=d[d.indexOf(this.mode)-1];e&&this.setMode(e)},zoomOut(){const e=d[d.indexOf(this.mode)+1];e&&this.setMode(e)},selectFocusedDate(){this.selectDate(R,!0)},isFocused:T,setFocused:x,isInvalid(e){return ge(e,this.minValue,this.maxValue,this.mode)},isPreviousPageInvalid(){const e=this.startDate.subtract(1,"day");return this.isInvalid(e)},isNextPageInvalid(){const e=this.endDate.endOf(this.mode).add(1,"day");return this.isInvalid(e)},isSelected(e){return Boolean(l&&e.isSame(l.timeZone(v),m)&&!this.isCellDisabled(e))},isCellUnavailable(t){return this.mode===u&&Boolean(e.isDateUnavailable&&e.isDateUnavailable(t))},isCellFocused(e){return this.isFocused&&R&&e.isSame(R,m)},isCellDisabled(e){return this.disabled||this.isInvalid(e)},isWeekend(t){return"days"===this.mode&&("function"===typeof e.isWeekend?e.isWeekend(t):function(e){return[0,6].includes(e.day())}(t))},isCurrent(e){return(0,f.KQ)({timeZone:v}).isSame(e,this.mode)},mode:m,setMode:p,availableModes:d}}(e);return(0,s.jsx)(se,Object.assign({ref:t},e,{state:i}))}));var me=i(27145);const fe=JSON.parse('{"year_placeholder":"Y","month_placeholder":"M","weekday_placeholder":"E","day_placeholder":"D","hour_placeholder":"h","minute_placeholder":"m","second_placeholder":"s","dayPeriod_placeholder":"aa"}'),_e=JSON.parse('{"year_placeholder":"\u0413","month_placeholder":"\u041c","weekday_placeholder":"\u0414\u041d","day_placeholder":"\u0414","hour_placeholder":"\u0447","minute_placeholder":"\u043c","second_placeholder":"\u0441","dayPeriod_placeholder":"(\u0434|\u043f)\u043f"}'),ve=(0,_.N)({en:fe,ru:_e},`${c}date-field`),Ce={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,weekday:!0},Ee={start:"[",end:"]"},be={YY:"year",YYYY:"year",M:"month",MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:"day",DD:"day",Do:"day",d:"weekday",dd:{sectionType:"weekday",contentType:"letter"},ddd:{sectionType:"weekday",contentType:"letter"},dddd:{sectionType:"weekday",contentType:"letter"},A:{sectionType:"dayPeriod",contentType:"letter"},a:{sectionType:"dayPeriod",contentType:"letter"},H:"hour",HH:"hour",h:"hour",hh:"hour",m:"minute",mm:"minute",s:"second",ss:"second",z:{sectionType:"timeZoneName",contentType:"letter"},zzz:{sectionType:"timeZoneName",contentType:"letter"},Z:{sectionType:"timeZoneName",contentType:"letter"},ZZ:{sectionType:"timeZoneName",contentType:"letter"}};function Se(e){return 4===(0,f.KQ)().format(e).length}function ye(e,t){const{type:i,format:s}=e;switch(i){case"year":{const e=Se(s);return{minValue:e?1:0,maxValue:e?9999:99}}case"month":return{minValue:0,maxValue:11};case"weekday":return{minValue:0,maxValue:6};case"day":return{minValue:1,maxValue:t?t.daysInMonth():31};case"hour":if(function(e){return"15"!==(0,f.KQ)().set("hour",15).format(e)}(s)){const e=t.hour()>=12;return{minValue:e?12:0,maxValue:e?23:11}}return{minValue:0,maxValue:23};case"minute":case"second":return{minValue:0,maxValue:59}}return{}}function we(e,t){const i=e.type;switch(i){case"year":return Se(e.format)?t.year():Number(t.format(e.format));case"month":case"hour":case"minute":case"second":return t[i]();case"day":return t.date();case"weekday":return t.day();case"dayPeriod":return t.hour()>=12?12:0}}const Re={weekday:"day",day:"date",dayPeriod:"hour"};function Le(e){if("literal"===e||"timeZoneName"===e||"unknown"===e)throw new Error(`${e} section does not have duration unit.`);return e in Re?Re[e]:e}function Te(e,t){switch(e.type){case"year":return ve("year_placeholder").repeat((0,f.KQ)().format(t).length);case"month":return ve("month_placeholder").repeat("letter"===e.contentType?4:2);case"day":return ve("day_placeholder").repeat(2);case"weekday":return ve("weekday_placeholder").repeat("letter"===e.contentType?4:2);case"hour":return ve("hour_placeholder").repeat(2);case"minute":return ve("minute_placeholder").repeat(2);case"second":return ve("second_placeholder").repeat(2);case"dayPeriod":return ve("dayPeriod_placeholder");default:return t}}function xe(e){const t=[],i=(0,f.cS)(e);let s="",n=!1,r=!1;for(let o=0;o<i.length;o++){const e=i[o]||"";if(r){if(e===Ee.end){r=!1;continue}s+=e}else e.match(/[a-zA-Z]/)?(n&&(Ae(t,s),s=""),n=!1,s+=e):(n||(ke(t,s),s=""),n=!0,e===Ee.start?r=!0:s+=e)}return s&&(n?Ae(t,s):ke(t,s)),t}function ke(e,t){if(!t)return;const i=function(e){const t=be[e];return t?"string"===typeof t?{type:t,contentType:"digit"}:{type:t.sectionType,contentType:t.contentType}:(console.error([`The token "${e}" is not supported by the Date field.`,"Please try using another token."].join("\n")),{type:"literal",contentType:"letter"})}(t),s=function(e,t,i){if("digit"!==e)return!1;switch(t){case"year":return Se(i)?"0001"===(0,f.KQ)().set("year",1).format(i):"01"===(0,f.KQ)().set("year",2001).format(i);case"month":return(0,f.KQ)().startOf("year").format(i).length>1;case"day":return(0,f.KQ)().startOf("month").format(i).length>1;case"weekday":return(0,f.KQ)().startOf("week").format(i).length>1;case"hour":return(0,f.KQ)().set("hour",1).format(i).length>1;case"minute":return(0,f.KQ)().set("minute",1).format(i).length>1;case"second":return(0,f.KQ)().set("second",1).format(i).length>1;default:throw new Error("Invalid section type")}}(i.contentType,i.type,t);e.push(Object.assign(Object.assign({},i),{format:t,placeholder:Te(i,t),options:Ne(i,t),hasLeadingZeros:s}))}function Ae(e,t){t&&e.push({type:"literal",contentType:"letter",format:t,placeholder:t,hasLeadingZeros:!1})}function Ne(e,t){switch(e.type){case"month":{const i="letter"===e.contentType?t:"MMMM";let s=(0,f.KQ)().startOf("year");const n=[];for(let e=0;e<12;e++)n.push(s.format(i).toLocaleUpperCase()),s=s.add(1,"months");return n}case"dayPeriod":{const e=(0,f.KQ)().hour(0),i=e.hour(12);return[e.format(t).toLocaleUpperCase(),i.format(t).toLocaleUpperCase()]}case"weekday":{const i="letter"===e.contentType?t:"dddd";let s=(0,f.KQ)().day(0);const n=[];for(let e=0;e<7;e++)n.push(s.format(i).toLocaleUpperCase()),s=s.add(1,"day");return n}}}function Ie(e,t,i){let s=1;const n=[];let r=-1;for(let o=0;o<e.length;o++){const a=e[o];if(!a)continue;const c=De(a,t,i,s,r);if(n.push(c),Oe(a)){for(let e=Math.max(0,r);e<=o;e++){const t=n[e];t&&(t.nextEditableSection=o,-1===t.previousEditableSection&&(t.previousEditableSection=o))}r=o}s+=c.textValue.length}return n}function Oe(e){var t;return null!==(t=Ce[e.type])&&void 0!==t&&t}function De(e,t,i,s,n){const r=Oe(e);let o=e.placeholder;(r&&i[e.type]||"timeZoneName"===e.type)&&(o=t.format(e.format),"digit"===e.contentType&&o.length<e.placeholder.length&&(o=o.padStart(e.placeholder.length,"0"))),o="\u2068"+o+"\u2069";const a=o.length;return Object.assign(Object.assign(Object.assign({},e),{value:we(e,t),textValue:o,start:s,end:s+a,modified:!1,previousEditableSection:n,nextEditableSection:n}),ye(e,t))}function Me(e,t){const i="all"===t||-1===t?0:t,s=e[i];return s&&!Ce[s.type]?s.nextEditableSection:s?i:-1}function Pe(e){let t=(0,f.KQ)(e);return t.isValid()||(t=(0,f.KQ)(Object.assign(Object.assign({},e),{format:void 0}))),t}function Fe(e,t){return Object.keys(e).every((e=>t[e]))}function Ue(e,t){const i=n.useRef(null),[,s]=n.useState({});function r(t){e.setSelectedSections(t),s({})}function o(){var t,n;e.focusSectionInPosition(null!==(n=null===(t=i.current)||void 0===t?void 0:t.selectionStart)&&void 0!==n?n:0),s({})}n.useLayoutEffect((()=>{const t=i.current;if(!t)return;if(null===e.selectedSectionIndexes)return void(t.scrollLeft&&(t.scrollLeft=0));const s=e.sections[e.selectedSectionIndexes.startIndex],n=e.sections[e.selectedSectionIndexes.endIndex];if(s&&n){const e=s.start,i=n.end;e===t.selectionStart&&i===t.selectionEnd||t.setSelectionRange(e,i)}}));const a=n.useMemo((()=>{if(!e.selectedSectionIndexes)return"text";const t=e.sections[e.selectedSectionIndexes.startIndex];return t&&"letter"!==t.contentType?"tel":"text"}),[e.selectedSectionIndexes,e.sections]);return{inputProps:{value:e.text,view:t.view,size:t.size,disabled:e.disabled,hasClear:!e.readOnly&&!e.isEmpty&&t.hasClear,placeholder:t.placeholder,id:t.id,label:t.label,startContent:t.startContent,endContent:t.endContent,pin:t.pin,autoFocus:t.autoFocus,controlRef:i,autoComplete:"off",type:"text",validationState:e.validationState,errorMessage:t.errorMessage,errorPlacement:t.errorPlacement,onUpdate(t){t||e.clearAll()},onFocus(s){var n;if(null===(n=t.onFocus)||void 0===n||n.call(t,s),null!==e.selectedSectionIndexes)return;const a=s.target,c=!i.current;setTimeout((()=>{a&&a===i.current&&(c?e.focusSectionInPosition(0):a.value.length&&Number(a.selectionEnd)-Number(a.selectionStart)===a.value.length?r("all"):o())}))},onBlur(e){var i;null===(i=t.onBlur)||void 0===i||i.call(t,e),r(-1)},onKeyDown(i){var s;null===(s=t.onKeyDown)||void 0===s||s.call(t,i),"ArrowLeft"===i.key?(i.preventDefault(),e.focusPreviousSection()):"ArrowRight"===i.key?(i.preventDefault(),e.focusNextSection()):"Home"===i.key?(i.preventDefault(),e.decrementToMin()):"End"===i.key?(i.preventDefault(),e.incrementToMax()):"ArrowUp"!==i.key||i.altKey?"ArrowDown"!==i.key||i.altKey?"PageUp"===i.key?(i.preventDefault(),e.incrementPage()):"PageDown"===i.key?(i.preventDefault(),e.decrementPage()):"Backspace"===i.key||"Delete"===i.key?(i.preventDefault(),e.clearSection()):"a"===i.key&&(i.ctrlKey||i.metaKey)&&(i.preventDefault(),r("all")):(i.preventDefault(),e.decrement()):(i.preventDefault(),e.increment())},onKeyUp:t.onKeyUp,controlProps:{"aria-label":t["aria-label"]||void 0,"aria-labelledby":t["aria-labelledby"]||void 0,"aria-describedby":t["aria-describedby"]||void 0,"aria-details":t["aria-details"]||void 0,"aria-disabled":e.disabled||void 0,readOnly:e.readOnly,inputMode:a,onClick(){o()},onMouseUp(e){e.preventDefault()},onBeforeInput(t){t.preventDefault();const i=t.data;void 0!==i&&null!==i&&e.onInput(i)},onPaste(t){if(t.preventDefault(),e.readOnly)return;const i=t.clipboardData.getData("text").replace(/[\u2066\u2067\u2068\u2069]/g,"");if(e.selectedSectionIndexes&&e.selectedSectionIndexes.startIndex===e.selectedSectionIndexes.endIndex){const t=e.sections[e.selectedSectionIndexes.startIndex],s=/^\d+$/.test(i),n=/^[a-zA-Z]+$/.test(i);if(Boolean(t&&("digit"===t.contentType&&s||"letter"===t.contentType&&n)))return void e.onInput(i);if(s||n)return}e.setValueFromString(i)}}}}}const He={year:5,month:2,weekday:3,day:7,hour:2,minute:15,second:15};function Be(e){var t,i;const[s,r]=(0,o.P)(e.value,null!==(t=e.defaultValue)&&void 0!==t?t:null,e.onUpdate),a=le(e.value||e.defaultValue||e.placeholderValue),c=e.timeZone||a,l=e=>{r(e?e.timeZone(a):e)},[h,d]=n.useState((()=>j({placeholderValue:e.placeholderValue,timeZone:c}))),u=e.format||"L",g=function(e){const t=e,[i,s]=n.useState((()=>xe(t))),[r,o]=n.useState(t);return t!==r&&(o(t),s(xe(t))),i}(u),p=n.useMemo((()=>g.filter((e=>Ce[e.type])).reduce(((e,t)=>Object.assign(Object.assign({},e),{[t.type]:!0})),{})),[g]),m=n.useState((()=>s?Object.assign({},p):{}));let _=m[0];const v=m[1];s&&!Fe(p,_)&&v(Object.assign({},p)),!s&&Object.keys(p).length>0&&Fe(p,_)&&Object.keys(_).length===Object.keys(p).length&&(_={},v(_),d(j({placeholderValue:e.placeholderValue,timeZone:c})));const C=s&&s.isValid()&&Fe(p,_)?s.timeZone(c):h.timeZone(c),E=function(e,t,i){const[s,r]=n.useState((()=>({value:t,sections:e,validSegments:i,editableSections:Ie(e,t,i)})));e===s.sections&&i===s.validSegments&&t.isSame(s.value)&&t.timeZone()===s.value.timeZone()||r({value:t,sections:e,validSegments:i,editableSections:Ie(e,t,i)});return s}(g,C,_),[b,S]=n.useState(-1),y=n.useMemo((()=>{if(-1===b)return null;if("all"===b)return{startIndex:0,endIndex:E.editableSections.length-1};if("number"===typeof b)return{startIndex:b,endIndex:b};if("string"===typeof b){const e=E.editableSections.findIndex((e=>e.type===b));return{startIndex:e,endIndex:e}}return b}),[b,E.editableSections]);function w(t){e.disabled||e.readOnly||(Fe(p,_)?s&&t.isSame(s)||l(t):(s&&l(null),d(t)))}function R(e){_[e]=!0,_.day&&_.month&&_.year&&p.weekday&&(_.weekday=!0),_.hour&&p.dayPeriod&&(_.dayPeriod=!0),v(Object.assign({},_))}const L=e.validationState||(function(e,t,i){return!!e&&(!(!t||!e.isBefore(t))||!(!i||!i.isBefore(e)))}(s,e.minValue,e.maxValue)?"invalid":void 0)||(s&&(null===(i=e.isDateUnavailable)||void 0===i?void 0:i.call(e,s))?"invalid":void 0);return function(e){const{value:t,validationState:i,displayValue:s,editableSections:r,selectedSectionIndexes:o,selectedSections:a,isEmpty:c,flushAllValidSections:l,flushValidSection:h,setSelectedSections:d,setValue:u,setDate:g,adjustSection:p,setSection:m,getSectionValue:f,setSectionValue:_,createPlaceholder:v,setValueFromString:C}=e,E=n.useRef(""),{hasDate:b,hasTime:S}=n.useMemo((()=>{let e=!1,t=!1;for(const i of r)t||(t=["hour","minute","second"].includes(i.type)),e||(e=["day","month","year"].includes(i.type));return{hasTime:t,hasDate:e}}),[r]);return{value:t,isEmpty:c,displayValue:s,setValue:u,setDate:g,text:(y=r,"\u2066"+y.map((e=>e.textValue)).join("")+"\u2069"),readOnly:e.readOnly,disabled:e.disabled,sections:r,hasDate:b,hasTime:S,selectedSectionIndexes:o,validationState:i,setSelectedSections(e){E.current="",d(e)},focusSectionInPosition(e){const t=this.sections.findIndex((t=>t.end>=e)),i=-1===t?0:t,s=this.sections[i];s&&this.setSelectedSections(Ce[s.type]?i:s.nextEditableSection)},focusNextSection(){var e,t;const i="all"===a?0:a,s=null!==(t=null===(e=this.sections[i])||void 0===e?void 0:e.nextEditableSection)&&void 0!==t?t:-1;-1!==s&&this.setSelectedSections(s)},focusPreviousSection(){var e,t;const i="all"===a?0:a,s=null!==(t=null===(e=this.sections[i])||void 0===e?void 0:e.previousEditableSection)&&void 0!==t?t:-1;-1!==s&&this.setSelectedSections(s)},focusFirstSection(){var e,t;const i=null!==(t=null===(e=this.sections[0])||void 0===e?void 0:e.previousEditableSection)&&void 0!==t?t:-1;-1!==i&&d(i)},focusLastSection(){var e,t;const i=null!==(t=null===(e=this.sections[this.sections.length-1])||void 0===e?void 0:e.nextEditableSection)&&void 0!==t?t:-1;-1!==i&&this.setSelectedSections(i)},increment(){if(this.readOnly||this.disabled)return;E.current="";const e=Me(this.sections,a);-1!==e&&p(e,1)},decrement(){if(this.readOnly||this.disabled)return;E.current="";const e=Me(this.sections,a);-1!==e&&p(e,-1)},incrementPage(){if(this.readOnly||this.disabled)return;E.current="";const e=Me(this.sections,a);-1!==e&&p(e,He[this.sections[e].type]||1)},decrementPage(){if(this.readOnly||this.disabled)return;E.current="";const e=Me(this.sections,a);-1!==e&&p(e,-(He[this.sections[e].type]||1))},incrementToMax(){if(this.readOnly||this.disabled)return;E.current="";const e=Me(this.sections,a);if(-1!==e){const t=this.sections[e];"number"===typeof t.maxValue&&m(e,t.maxValue)}},decrementToMin(){if(this.readOnly||this.disabled)return;E.current="";const e=Me(this.sections,a);if(-1!==e){const t=this.sections[e];"number"===typeof t.minValue&&m(e,t.minValue)}},clearSection(){if(this.readOnly||this.disabled)return;if(E.current="","all"===a)return void this.clearAll();const t=Me(this.sections,a);if(-1===t)return;h(t);const i=this.sections[t],s=j({placeholderValue:e.placeholderValue,timeZone:e.timeZone}).timeZone(e.timeZone),n=f(t);let r=n;if("dayPeriod"===i.type){const e=n.hour()>=12,t=s.hour()>=12;e&&!t?r=n.set("hour",n.hour()-12):!e&&t&&(r=n.set("hour",n.hour()+12))}else{const e=Le(i.type);r=n.set(e,s[e]())}_(t,r)},clearAll(){if(this.readOnly||this.disabled)return;E.current="",l(),null!==t&&g(null);const e=v();u(e)},onInput(e){if(this.readOnly||this.disabled)return;const t=Me(this.sections,a);if(-1===t)return;const i=this.sections[t];let s=E.current+e;const n=n=>{var r,o,a;let c="month"===i.type?n-1:n;const l=0===i.minValue;if("hour"!==i.type||12!==i.minValue&&11!==i.maxValue){if(c>(null!==(r=i.maxValue)&&void 0!==r?r:0)&&(c=Number(e)-("month"===i.type?1:0),s=e,c>(null!==(o=i.maxValue)&&void 0!==o?o:0)))return void(E.current="")}else n>12&&(c=Number(e)),12===i.minValue&&c>1&&(c+=12);const h=c>0||0===c&&l;h&&m(t,c),Number(n+"0")>(null!==(a=i.maxValue)&&void 0!==a?a:0)||s.length>=String(i.maxValue).length?(E.current="",h&&this.focusNextSection()):E.current=s},r=n=>{var r;const o=null!==(r=i.options)&&void 0!==r?r:[];let a=n.toLocaleUpperCase(),c=o.filter((e=>e.startsWith(a)));if(0===c.length&&(n!==e&&(a=e.toLocaleUpperCase(),c=o.filter((e=>e.startsWith(a)))),0===c.length))return void(E.current="");const l=c[0],h=o.indexOf(l);"dayPeriod"===i.type?m(t,1===h?12:0):m(t,h),c.length>1?E.current=s:(E.current="",this.focusNextSection())};switch(i.type){case"day":case"hour":case"minute":case"second":case"year":if(!Number.isInteger(Number(s)))return;n(Number(s));break;case"dayPeriod":r(s);break;case"weekday":case"month":Number.isInteger(Number(s))?n(Number(s)):r(s)}},setValueFromString:e=>(E.current="",C(e))};var y}({value:s,displayValue:C,placeholderValue:e.placeholderValue,timeZone:c,validationState:L,editableSections:E.editableSections,readOnly:e.readOnly,disabled:e.disabled,selectedSectionIndexes:y,selectedSections:b,isEmpty:0===Object.keys(_).length,flushAllValidSections:function(){_={},v({})},flushValidSection:function(e){const t=E.editableSections[e];t&&delete _[t.type],v(Object.assign({},_))},setSelectedSections:S,setValue:w,setDate:l,adjustSection:function(e,t){const i=E.editableSections[e];i&&(_[i.type]?w(function(e,t,i){var s;let n=null!==(s=e.value)&&void 0!==s?s:0;if("dayPeriod"===e.type)n=t.hour()+(t.hour()>=12?-12:12);else{n+=i;const t=e.minValue,s=e.maxValue;if("number"===typeof t&&"number"===typeof s){const e=s-t+1;n=(n-t+e)%e+t}}"year"!==e.type||Se(e.format)||(n=(0,f.KQ)({input:`${n}`.padStart(2,"0"),format:e.format}).year());const r=Le(e.type);return t.set(r,n)}(i,C,t)):(R(i.type),Object.keys(_).length>=Object.keys(p).length&&w(C)))},setSection:function(e,t){const i=E.editableSections[e];i&&(R(i.type),w(function(e,t,i){const s=e.type;switch(s){case"year":return t.set("year",Se(e.format)?i:(0,f.KQ)({input:`${i}`.padStart(2,"0"),format:e.format}).year());case"day":case"weekday":case"month":return t.set(Le(s),i);case"dayPeriod":{const e=t.hour(),s=e>=12;return i>=12===s?t:t.set("hour",s?e-12:e+12)}case"hour":{let s=i;if(12===e.minValue||11===e.maxValue){const e=t.hour()>=12;e||12!==s||(s=0),e&&s<12&&(s+=12)}return t.set("hour",s)}case"minute":case"second":return t.set(s,i)}return t}(i,C,t)))},getSectionValue:function(e){return C},setSectionValue:function(e,t){w(t)},createPlaceholder:function(){return j({placeholderValue:e.placeholderValue,timeZone:c}).timeZone(c)},setValueFromString:function(e){const t=function(e,t,i){let s=Pe({input:e,format:t,timeZone:i});s.isValid()&&i&&!function(e){return/z$/i.test(e)||/[+-]\d\d:\d\d$/.test(e)}(e)&&(s=Y(s,Pe({input:e,format:t})));return s}(e,u,c);return!!t.isValid()&&(l(t),!0)}})}const We=l("date-field");function Ve(e){var{className:t}=e,i=(0,me.Tt)(e,["className"]);const r=Be(i),{inputProps:o}=Ue(r,i),[c,l]=n.useState(!1),{focusWithinProps:d}=(0,a.R)({onFocusWithinChange(e){l(e)}});return(0,s.jsxs)("div",Object.assign({className:We(null,t),style:i.style},d,{children:[(0,s.jsx)(u.k,Object.assign({},o,{value:r.isEmpty&&!c&&i.placeholder?"":o.value})),(0,s.jsx)(h,{name:i.name,value:r.value,toStringValue:e=>{var t;return null!==(t=null===e||void 0===e?void 0:e.toISOString())&&void 0!==t?t:""},onReset:e=>{r.setDate(e)},disabled:r.disabled,form:i.form})]}))}const ze=l("mobile-calendar");function Ge({props:e,state:t}){var i,n;let r="date";return t.hasTime&&t.hasDate?r="datetime-local":t.hasTime&&(r="time"),(0,s.jsx)("input",{className:ze(),disabled:e.disabled,type:r,value:Ke(t.dateFieldState.value,r),id:e.id,min:Ke(null===(i=e.minValue)||void 0===i?void 0:i.timeZone(t.timeZone),r),max:Ke(null===(n=e.maxValue)||void 0===n?void 0:n.timeZone(t.timeZone),r),tabIndex:-1,onChange:i=>{var s,n;if(e.readOnly)return;const o=i.target.value;if(o){const i=(0,f.KQ)({input:o,format:je(r),timeZone:"system"}).timeZone(t.timeZone,!0);let a=t.hasDate?i:j({placeholderValue:null===(s=e.placeholderValue)||void 0===s?void 0:s.timeZone(t.timeZone),timeZone:t.timeZone});a=t.hasTime?Y(a,i):t.value?Y(a,t.value.timeZone(t.timeZone)):Y(a,j({placeholderValue:null===(n=e.placeholderValue)||void 0===n?void 0:n.timeZone(t.timeZone),timeZone:t.timeZone})),t.setValue(a)}else t.setValue(null)}})}function je(e){switch(e){case"time":return"HH:mm";case"datetime-local":return"YYYY-MM-DDTHH:mm";default:return"YYYY-MM-DD"}}function Ke(e,t){if(!e)return"";const i=je(t);return e.format(i)}const Ye=l("stub-button");function qe({size:e,icon:t}){return(0,s.jsx)("span",{className:Ye({size:e}),children:(0,s.jsx)("span",{className:Ye("icon"),children:(0,s.jsx)(p.I,{data:t})})})}function $e(...e){const t=Object.assign({},e[0]);for(let i=1;i<e.length;i++){const s=e[i];if(s)for(const e of Object.keys(s)){const i=t[e],n=s[e];"function"===typeof i&&"function"===typeof n&&e.startsWith("on")&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=Qe(i,n):t[e]="className"===e&&"string"===typeof i&&"string"===typeof n?i+" "+n:"controlProps"===e&&"object"===typeof i&&"object"===typeof n?$e(i,n):void 0===n?i:n}}return t}function Qe(...e){return(...t)=>{for(const i of e)"function"===typeof i&&i(...t)}}const Xe=JSON.parse('{"Calendar":"Calendar","Formula input mode":"Formula input mode"}'),Ze=JSON.parse('{"Calendar":"\u041a\u0430\u043b\u0435\u043d\u0434\u0430\u0440\u044c","Formula input mode":"\u0420\u0435\u0436\u0438\u043c \u0432\u0432\u043e\u0434\u0430 \u0444\u043e\u0440\u043c\u0443\u043b\u044b"}'),Je=(0,_.N)({en:Xe,ru:Ze},`${c}relative-date-picker`);function et(e,t){var{onFocus:i,onBlur:s}=t,r=(0,me.Tt)(t,["onFocus","onBlur"]);const{mode:c,setMode:l,datePickerState:h,relativeDateState:d}=e,[u,g]=n.useState("relative"===c?d.lastCorrectDate:h.dateFieldState.displayValue),[p,f]=n.useState(d.lastCorrectDate);p!==d.lastCorrectDate&&(f(d.lastCorrectDate),g(d.lastCorrectDate));const[_,v]=n.useState(h.dateFieldState.displayValue);h.dateFieldState.displayValue.isSame(_,"day")||(v(h.dateFieldState.displayValue),g(h.dateFieldState.displayValue));const{focusWithinProps:C}=(0,a.R)({onFocusWithin:i,onBlurWithin:s,onFocusWithinChange(t){t||e.setActive(!1)}}),[E,b]=(0,o.P)(void 0,!1,r.onOpenChange);!e.isActive&&E&&b(!1);const S={onFocus:()=>{e.isActive||(e.setActive(!0),b(!0))},errorMessage:r.errorMessage,errorPlacement:r.errorPlacement,controlProps:{onClick:()=>{e.disabled||E||(e.setActive(!0),b(!0))},role:"combobox","aria-expanded":E}},{inputProps:y}=Ue(h.dateFieldState,Object.assign(Object.assign({},r),{value:void 0,defaultValue:void 0,onUpdate:void 0})),{inputProps:w}=function(e,t){const[i,s]=n.useState(e.lastCorrectDate),[r,o]=n.useState(e.lastCorrectDate);return i!==e.lastCorrectDate&&(s(e.lastCorrectDate),o(e.lastCorrectDate)),{inputProps:{size:t.size,autoFocus:t.autoFocus,value:e.text,onUpdate:e.setText,disabled:e.disabled,hasClear:t.hasClear,validationState:e.validationState,errorMessage:t.errorMessage,errorPlacement:t.errorPlacement,label:t.label,id:t.id,startContent:t.startContent,endContent:t.endContent,pin:t.pin,view:t.view,placeholder:t.placeholder,onKeyDown:t.onKeyDown,onKeyUp:t.onKeyUp,onBlur:t.onBlur,onFocus:t.onFocus,controlProps:{"aria-label":t["aria-label"]||void 0,"aria-labelledby":t["aria-labelledby"]||void 0,"aria-describedby":t["aria-describedby"]||void 0,"aria-details":t["aria-details"]||void 0,"aria-disabled":e.disabled||void 0,readOnly:e.readOnly}},calendarProps:{size:"s"===t.size?"m":t.size,readOnly:!0,value:e.parsedDate,focusedValue:r,onFocusUpdate:o},timeInputProps:{size:t.size,readOnly:!0,value:e.lastCorrectDate,format:"LTS"}}}(d,Object.assign(Object.assign({},r),{value:void 0,defaultValue:void 0,onUpdate:void 0}));let R=r.validationState;R||(R="relative"===c?d.validationState:h.dateFieldState.validationState);const L=n.useRef(null),T=(0,W.N)(L,"relative"===c?w.controlRef:y.controlRef),x=n.useRef(null);function k(){setTimeout((()=>{var e;null===(e=x.current)||void 0===e||e.focus()}))}function A(){setTimeout((()=>{var e;null===(e=L.current)||void 0===e||e.focus({preventScroll:!0})}))}const N=n.useRef(null);return{groupProps:Object.assign(Object.assign({ref:N,tabIndex:-1,role:"group"},C),{onKeyDown:e=>{!e.altKey||"ArrowDown"!==e.key&&"ArrowUp"!==e.key||(e.preventDefault(),e.stopPropagation(),b(!0),k())}}),fieldProps:$e(S,"relative"===c?w:y,"absolute"===c&&h.dateFieldState.isEmpty&&!e.isActive&&r.placeholder?{value:""}:void 0,{controlRef:T,validationState:R}),modeSwitcherProps:{size:m(r.size),disabled:e.readOnly||e.disabled,view:"flat-secondary",style:{zIndex:2,marginInlineEnd:2},selected:"relative"===c,extraProps:{"aria-label":Je("Formula input mode")},onClick:()=>{if(l("relative"===c?"absolute":"relative"),"relative"===c){const e=h.value;e&&g(e)}else d.parsedDate&&g(d.parsedDate);A()}},calendarButtonProps:{size:m(r.size),disabled:e.disabled,extraProps:{"aria-label":Je("Calendar"),"aria-haspopup":"dialog","aria-expanded":E},view:"flat-secondary",onClick:()=>{e.setActive(!0),b(!E),E||k()}},popupProps:{open:E,onEscapeKeyDown:()=>{b(!1),A()},onOutsideClick:e=>{var t;e.target&&!(null===(t=N.current)||void 0===t?void 0:t.contains(e.target))&&b(!1)},onTransitionExited:()=>{g("relative"===c?d.lastCorrectDate:h.dateFieldState.displayValue)}},calendarProps:{ref:x,size:"s"===r.size?"m":r.size,readOnly:r.readOnly,value:e.selectedDate,onUpdate:t=>{h.setDateValue(t),e.datePickerState.hasTime||(b(!1),A())},focusedValue:u,onFocusUpdate:g,minValue:r.minValue,maxValue:r.maxValue},timeInputProps:{value:h.timeValue,onUpdate:h.setTimeValue,format:h.timeFormat,readOnly:e.readOnly,disabled:e.disabled,timeZone:r.timeZone,hasClear:r.hasClear,size:r.size}}}const tt=function({getPlaceholderTime:e,mergeDateTime:t,setTimezone:i,getDateTime:s,useDateFieldState:r}){return function(a){var c,l;const{disabled:h,readOnly:d}=a,[u,g]=(0,o.P)(a.open,null!==(c=a.defaultOpen)&&void 0!==c&&c,a.onOpenChange),p=g,[m,f]=(0,o.P)(a.value,null!==(l=a.defaultValue)&&void 0!==l?l:null,a.onUpdate),[_,v]=n.useState(null),[C,E]=n.useState(null),b=le(s(a.value)||s(a.defaultValue)||a.placeholderValue),S=a.timeZone||b;let y=_,w=C;const R=a.format||"L",L=(e,s)=>{h||d||(f(i(t(e,s),b)),v(null),E(null))},T=r(Object.assign(Object.assign({},a),{value:m,onUpdate(e){e?L(e,e):f(null)},disabled:h,readOnly:d,validationState:a.validationState,minValue:a.minValue,maxValue:a.maxValue,isDateUnavailable:a.isDateUnavailable,format:R,placeholderValue:a.placeholderValue,timeZone:S})),x=n.useMemo((()=>{if(!T.hasTime)return;const e=[],t=T.sections.find((e=>"hour"===e.type));t&&e.push(t.format);const i=T.sections.find((e=>"minute"===e.type));i&&e.push(i.format);const s=T.sections.find((e=>"second"===e.type));s&&e.push(s.format);const n=T.sections.find((e=>"dayPeriod"===e.type));return e.join(":")+(n?` ${n.format}`:"")}),[T.hasTime,T.sections]);m&&(y=i(m,S),T.hasTime&&(w=i(m,S)));return T.hasTime&&!w&&(w=T.displayValue),{value:m,setValue(e){a.readOnly||a.disabled||f(e?i(e,b):null)},dateValue:y,timeValue:w,setDateValue:e=>{if(h||d)return;const t=!T.hasTime;T.hasTime?w||t?L(e,w||e):v(e):L(e,e),t&&p(!1,"ValueSelected")},setTimeValue:t=>{if(h||d)return;const i=null!==t&&void 0!==t?t:e(a.placeholderValue,S);y?L(y,i):E(i)},disabled:h,readOnly:d,format:R,hasDate:T.hasDate,hasTime:T.hasTime,timeFormat:x,timeZone:S,isOpen:u,setOpen(t,i){!t&&!m&&y&&T.hasTime&&L(y,w||e(a.placeholderValue,a.timeZone)),p(t,i)},dateFieldState:T}}}({getPlaceholderTime:function(e,t){return j({placeholderValue:e,timeZone:t})},mergeDateTime:Y,setTimezone:(e,t)=>e.timeZone(t),getDateTime:function(e){if(e)return"start"in e&&"end"in e?e.start:e},useDateFieldState:Be});function it(e){var t;const[i,s]=(0,o.P)(e.value,null!==(t=e.defaultValue)&&void 0!==t?t:null,e.onUpdate),[r,a]=n.useState("relative"===(null===i||void 0===i?void 0:i.type)?"relative":"absolute"),[c,l]=n.useState(i);i!==c&&(l(i),i&&i.type!==r&&a(i.type));const[h,d]=n.useState("absolute"===(null===i||void 0===i?void 0:i.type)?i.value:null);"absolute"===(null===i||void 0===i?void 0:i.type)&&i.value!==h&&d(i.value);const u=tt({value:h,onUpdate:e=>{d(e),"absolute"===(null===i||void 0===i?void 0:i.type)&&(null===e||void 0===e?void 0:e.isSame(i.value))||s(e?{type:"absolute",value:e}:null)},format:e.format,placeholderValue:e.placeholderValue,timeZone:e.timeZone,disabled:e.disabled,readOnly:e.readOnly,minValue:e.minValue,maxValue:e.maxValue}),[g,p]=n.useState("relative"===(null===i||void 0===i?void 0:i.type)?i.value:null);"relative"===(null===i||void 0===i?void 0:i.type)&&i.value!==g&&p(i.value);const m=function(e){var t;const[i,s]=(0,o.P)(e.value,null!==(t=e.defaultValue)&&void 0!==t?t:null,e.onUpdate),[r,a]=n.useState(null!==i&&void 0!==i?i:"");i&&i!==r&&a(i);const c=n.useMemo((()=>{var t;return i&&null!==(t=(0,f.bQ)(i,{timeZone:e.timeZone,roundUp:e.roundUp}))&&void 0!==t?t:null}),[i,e.timeZone,e.roundUp]),[l,h]=n.useState(c);c&&c!==l&&h(c);const d=e.validationState||r&&!c?"invalid":void 0;return{value:i,setValue(t){e.disabled||e.readOnly||s(t)},text:r,setText:t=>{if(!e.disabled&&!e.readOnly)if(a(t),(0,f.eP)(t)){const e=(0,f.bQ)(t);e&&e.isValid()?s(t):s(null)}else s(null)},parsedDate:c,lastCorrectDate:l,validationState:d,disabled:e.disabled,readOnly:e.readOnly}}({value:g,onUpdate:e=>{p(e),"relative"===(null===i||void 0===i?void 0:i.type)&&e===i.value||s(e?{type:"relative",value:e}:null)},disabled:e.disabled,readOnly:e.readOnly,timeZone:u.timeZone,roundUp:e.roundUp});i||("absolute"===r&&h?d(null):"relative"===r&&g&&p(null));const _="relative"===r?m.parsedDate:u.dateFieldState.displayValue,[v,C]=n.useState(!1);return{value:i,setValue(t){e.readOnly||e.disabled||s(t)},disabled:e.disabled,readOnly:e.readOnly,mode:r,setMode(t){e.readOnly||e.disabled||t===r||(a(t),"relative"===t?(!i&&g||i)&&s(g?{type:"relative",value:g}:null):(!i&&h||i)&&s(h?{type:"absolute",value:h}:null))},datePickerState:u,relativeDateState:m,selectedDate:_,isActive:v,setActive:C}}const st=l("relative-date-picker");function nt(e){var t;const i=it(e),{groupProps:o,fieldProps:a,modeSwitcherProps:c,calendarButtonProps:l,popupProps:m,calendarProps:f,timeInputProps:_}=et(i,e),v=n.useRef(null),C=(0,W.N)(v,o.ref),E=(0,r.I)(),b=i.datePickerState.hasTime&&!i.datePickerState.hasDate;return(0,s.jsxs)("div",Object.assign({},o,{ref:C,className:st(null,e.className),children:[E&&"absolute"===i.mode&&(0,s.jsx)(Ge,{state:i.datePickerState,props:{id:e.id,disabled:e.disabled,readOnly:e.readOnly,placeholderValue:e.placeholderValue,timeZone:e.timeZone}}),(0,s.jsx)(u.k,Object.assign({},a,{controlProps:Object.assign(Object.assign({},a.controlProps),{disabled:E&&"absolute"===i.mode,className:st("input",{mobile:E&&"absolute"===i.mode})}),hasClear:e.hasClear&&!(E&&"absolute"===i.mode),startContent:(0,s.jsx)(g.$,Object.assign({},c,{children:(0,s.jsx)(p.I,{data:H})})),endContent:(0,s.jsxs)(n.Fragment,{children:[!E&&!b&&(0,s.jsx)(g.$,Object.assign({},l,{children:(0,s.jsx)(p.I,{data:d})})),!E&&b&&(0,s.jsx)(qe,{size:l.size,icon:B}),E&&"absolute"===i.mode&&(0,s.jsx)(qe,{size:l.size,icon:b?B:d})]})})),(0,s.jsx)(h,{name:e.name,value:null===(t=i.value)||void 0===t?void 0:t.type,disabled:i.disabled,form:e.form}),(0,s.jsx)(h,{name:e.name,value:i.value,toStringValue:e=>function(e){if(!e)return"";if("relative"===e.type)return e.value;return e.value.toISOString()}(e),onReset:e=>{i.setValue(e)},disabled:i.disabled,form:e.form}),!E&&!b&&(0,s.jsx)(U.z,Object.assign({},m,{anchorRef:v,children:(0,s.jsxs)("div",{className:st("popup-content"),children:["function"===typeof e.children?e.children(f):(0,s.jsx)(pe,Object.assign({},f)),i.datePickerState.hasTime&&(0,s.jsx)("div",{className:st("time-field-wrapper"),children:(0,s.jsx)(Ve,Object.assign({},_))})]})}))]}))}var rt=i(23871),ot=i(40091),at=i(73633),ct=i(87924),lt=i.n(ct),ht=i(81824),dt=i.n(ht),ut=i(61199),gt=i.n(ut),pt=i(69220),mt=i(27629);const ft=JSON.parse('{"label_empty":"No data","label-actions":"Actions","label-row-select":"Select"}'),_t=JSON.parse('{"label_empty":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445","label-actions":"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044f","label-row-select":"\u0412\u044b\u0431\u0440\u0430\u0442\u044c"}'),vt=(0,_.N)({en:ft,ru:_t},"Table");function Ct(e){(0,mt.m)(`[Table] Physical values (left, right) of "${e}" property are deprecated. Use logical values (start, end) instead.`)}function Et(e,t){return"left"===e?(Ct(t),"start"):"right"===e?(Ct(t),"end"):e}const bt=(0,pt.om)("table");class St extends n.Component{constructor(){super(...arguments),this.state={activeScrollElement:"scrollContainer",columnsStyles:Array.from(this.props.columns,(()=>({}))),columnHeaderRefs:Array.from(this.props.columns,(()=>n.createRef()))},this.tableRef=n.createRef(),this.scrollContainerRef=n.createRef(),this.horizontalScrollBarRef=n.createRef(),this.horizontalScrollBarInnerRef=n.createRef(),this.renderRow=(e,t)=>{const{columns:i,isRowDisabled:s,onRowClick:r,onRowMouseEnter:o,onRowMouseLeave:a,onRowMouseDown:c,getRowClassNames:l,verticalAlign:h,edgePadding:d,wordWrap:u,getRowDescriptor:g}=this.props,{columnsStyles:p}=this.state,m=null===g||void 0===g?void 0:g(e,t),f=(null===m||void 0===m?void 0:m.disabled)||(null===s||void 0===s?void 0:s(e,t))||!1,_=(null===m||void 0===m?void 0:m.classNames)||(null===l||void 0===l?void 0:l(e,t))||[],v=Boolean(!f&&r);return n.createElement("tr",{key:St.getRowId(this.props,e,t),onClick:!f&&r?r.bind(null,e,t):void 0,onMouseEnter:!f&&o?o.bind(null,e,t):void 0,onMouseLeave:!f&&a?a.bind(null,e,t):void 0,onMouseDown:!f&&c?c.bind(null,e,t):void 0,className:bt("row",{disabled:f,interactive:v,"vertical-align":h},_.join(" "))},i.map(((i,s)=>{const{id:r,align:o,primary:a,className:c,sticky:l}=i,h=St.getBodyCellContent(i,e,t),g=Et(o,"column.align"),m=Et(l,"column.sticky");return n.createElement("td",{key:r,style:p[s],className:bt("cell",{align:g,primary:a,sticky:m,"edge-padding":d,"word-wrap":u},c)},h)})))},this.handleScrollContainerMouseenter=()=>{this.setState({activeScrollElement:"scrollContainer"})},this.handleScrollContainerScroll=()=>{"scrollContainer"===this.state.activeScrollElement&&this.horizontalScrollBarRef.current&&this.scrollContainerRef.current&&(this.horizontalScrollBarRef.current.scrollLeft=this.scrollContainerRef.current.scrollLeft)},this.handleHorizontalScrollBarMouseenter=()=>{this.setState({activeScrollElement:"scrollBar"})},this.handleHorizontalScrollBarScroll=()=>{"scrollBar"===this.state.activeScrollElement&&this.horizontalScrollBarRef.current&&this.scrollContainerRef.current&&(this.scrollContainerRef.current.scrollLeft=this.horizontalScrollBarRef.current.scrollLeft)}}static getRowId(e,t,i){const{data:s,getRowId:n,getRowDescriptor:r}=e,o=null!==i&&void 0!==i?i:s.indexOf(t),a=null===r||void 0===r?void 0:r(t,o);return void 0!==(null===a||void 0===a?void 0:a.id)?a.id:"function"===typeof n?n(t,o):String(n&&n in t?t[n]:o)}static getHeadCellContent(e){const{id:t,name:i}=e;let s;return s="function"===typeof i?i():"string"===typeof i?i:t,s}static getBodyCellContent(e,t,i){const{id:s,template:n,placeholder:r}=e;let o,a;return o="function"===typeof r?r(t,i):null!==r&&void 0!==r?r:"\u2014","function"===typeof n?a=n(t,i):"string"===typeof n?a=lt()(t,n):dt()(t,s)&&(a=lt()(t,s)),[void 0,null,""].includes(a)&&o?o:a}static getDerivedStateFromProps(e,t){return e.columns.length===t.columnHeaderRefs.length?null:{columnHeaderRefs:Array.from(e.columns,(()=>n.createRef()))}}componentDidMount(){this.props.stickyHorizontalScroll&&(this.tableResizeObserver=new ResizeObserver((e=>{var t;const{contentRect:i}=e[0];null===(t=this.horizontalScrollBarInnerRef.current)||void 0===t||t.style.setProperty("width",`${i.width}px`)})),this.tableRef.current&&this.tableResizeObserver.observe(this.tableRef.current),this.scrollContainerRef.current&&(this.scrollContainerRef.current.addEventListener("scroll",this.handleScrollContainerScroll),this.scrollContainerRef.current.addEventListener("mouseenter",this.handleScrollContainerMouseenter)),this.horizontalScrollBarRef.current&&(this.horizontalScrollBarRef.current.addEventListener("scroll",this.handleHorizontalScrollBarScroll),this.horizontalScrollBarRef.current.addEventListener("mouseenter",this.handleHorizontalScrollBarMouseenter))),this.columnsResizeObserver=new ResizeObserver((e=>{window.requestAnimationFrame((()=>{Array.isArray(e)&&e.length&&this.updateColumnStyles()}))})),this.tableRef.current&&this.columnsResizeObserver.observe(this.tableRef.current),this.updateColumnStyles()}componentDidUpdate(e){this.props.columns!==e.columns&&this.updateColumnStyles()}componentWillUnmount(){this.props.stickyHorizontalScroll&&(this.tableResizeObserver&&this.tableResizeObserver.disconnect(),this.scrollContainerRef.current&&(this.scrollContainerRef.current.removeEventListener("scroll",this.handleScrollContainerScroll),this.scrollContainerRef.current.removeEventListener("mouseenter",this.handleScrollContainerMouseenter)),this.horizontalScrollBarRef.current&&(this.horizontalScrollBarRef.current.removeEventListener("scroll",this.handleHorizontalScrollBarScroll),this.horizontalScrollBarRef.current.removeEventListener("mouseenter",this.handleHorizontalScrollBarMouseenter))),this.columnsResizeObserver&&this.columnsResizeObserver.disconnect()}render(){const{columns:e,stickyHorizontalScroll:t,className:i,qa:s}=this.props,r=e.some((({primary:e})=>e));return n.createElement("div",{className:bt({"with-primary":r,"with-sticky-scroll":t},i),"data-qa":s},t?n.createElement(n.Fragment,null,n.createElement("div",{ref:this.scrollContainerRef,className:bt("scroll-container")},this.renderTable()),this.renderHorizontalScrollBar()):this.renderTable())}renderHead(){const{columns:e,edgePadding:t,wordWrap:i}=this.props,{columnsStyles:s}=this.state;return n.createElement("thead",{className:bt("head")},n.createElement("tr",{className:bt("row")},e.map(((e,r)=>{const{id:o,align:a,primary:c,sticky:l,className:h}=e,d=Et(a,"column.align"),u=Et(l,"column.sticky"),g=St.getHeadCellContent(e);return n.createElement("th",{key:o,ref:this.state.columnHeaderRefs[r],style:s[r],className:bt("cell",{align:d,primary:c,sticky:u,"edge-padding":t,"word-wrap":i},h)},g)}))))}renderBody(){const{data:e}=this.props;return n.createElement("tbody",{className:bt("body")},e.length>0?e.map(this.renderRow):this.renderEmptyRow())}renderTable(){const{width:e="auto"}=this.props;return n.createElement("table",{ref:this.tableRef,className:bt("table",{width:e})},this.renderHead(),this.renderBody())}renderEmptyRow(){const{columns:e,emptyMessage:t}=this.props;return n.createElement("tr",{className:bt("row",{empty:!0})},n.createElement("td",{className:bt("cell"),colSpan:e.length},t||vt("label_empty")))}renderHorizontalScrollBar(){const{stickyHorizontalScroll:e,stickyHorizontalScrollBreakpoint:t=0}=this.props;return n.createElement("div",{ref:this.horizontalScrollBarRef,className:bt("horizontal-scroll-bar",{"sticky-horizontal-scroll":e}),style:{bottom:`${t}px`},"data-qa":"sticky-horizontal-scroll-breakpoint-qa"},n.createElement("div",{ref:this.horizontalScrollBarInnerRef,className:bt("horizontal-scroll-bar-inner")}))}updateColumnStyles(){this.setState((e=>{const t=e.columnHeaderRefs.map((e=>null===e.current?void 0:e.current.getBoundingClientRect().width));return{columnsStyles:this.props.columns.map(((e,i)=>this.getColumnStyles(i,t)))}}))}getColumnStyles(e,t){const{columns:i}=this.props,s=i[e],n={};if("string"===typeof s.width)return{maxWidth:0,width:s.width};if("undefined"!==typeof s.width&&(n.width=s.width),!s.sticky)return n;const r="left"===s.sticky||"start"===s.sticky?t.slice(0,e):t.slice(e+1);return n["left"===s.sticky||"start"===s.sticky?"insetInlineStart":"insetInlineEnd"]=r.reduce(((e,t)=>gt()(t)?e+t:e),0),n}}St.defaultProps={edgePadding:!0};var yt=i(84375);const wt=l("relative-range-date-picker-presets-doc"),Rt=[{id:"title",name:()=>E("Range")},{id:"from",name:()=>E("From")},{id:"to",name:()=>E("To")}],Lt=[{get title(){return E("Last 5 minutes")},from:"now - 5m",to:"now"},{get title(){return E("From start of day")},from:"now/d",to:"now"},{get title(){return E("This week")},from:"now/w",to:"now/w"},{get title(){return E("From start of week")},from:"now/w",to:"now"},{get title(){return E("Previous month")},from:"now - 1M/M",to:"now - 1M/M"}];function Tt({size:e,docs:t}){return(0,s.jsx)(St,{columns:Rt,data:t,className:wt("table",{size:e})})}function xt({className:e,size:t,docs:i}){return(0,s.jsx)(yt.A,{className:wt(null,e),tooltipContentClassName:wt("content"),hasArrow:!1,content:(0,s.jsx)(Tt,{size:t,docs:i}),children:(0,s.jsx)(g.$,{className:wt("button"),view:"flat-secondary",size:m(t),children:(0,s.jsx)(p.I,{data:at.A})})})}function kt({className:e,size:t,docs:i}){const[r,o]=n.useState(!1);return(0,s.jsxs)("div",{className:wt(null,e),children:[(0,s.jsx)(g.$,{className:wt("button"),view:"flat-secondary",size:"l",onClick:()=>{o(!0)},children:(0,s.jsx)(p.I,{data:at.A})}),(0,s.jsx)(F.c,{visible:r,onClose:()=>o(!1),children:(0,s.jsx)(Tt,{size:t,docs:i})})]})}function At({className:e,size:t,docs:i=Lt}){const n=(0,r.I)();return Array.isArray(i)&&0!==i.length?n?(0,s.jsx)(kt,{className:e,size:t,docs:i}):(0,s.jsx)(xt,{className:e,size:t,docs:i}):null}const Nt=l("relative-range-date-picker-presets");function It({className:e,size:t="m",minValue:i,withTime:r,onChoosePreset:o,presetTabs:a,docs:c}){var l,h;const d=n.useMemo((()=>function(e,{minValue:t}={}){return e.reduce(((e,i)=>{const s=x(i.presets,t);return s.length&&e.push(Object.assign(Object.assign({},i),{presets:s})),e}),[])}(null!==a&&void 0!==a?a:function({withTime:e,minValue:t}){const i=[],s={id:"main",title:E("Main"),presets:[]},n=b;e&&n.unshift(...S),s.presets=x(n,t),s.presets.length>0&&i.push(s);const r={id:"other",title:E("Other"),presets:x(y,t)};return r.presets.length>0&&i.push(r),i}({withTime:r}),{minValue:i})),[r,i,a]),[u,g]=n.useState(null===(l=d[0])||void 0===l?void 0:l.id);if(0===d.length)return null;const p=null!==(h=d.find((e=>e.id===u)))&&void 0!==h?h:d[0];return p?(p.id!==u&&g(p.id),(0,s.jsxs)("div",{className:Nt({size:t},e),children:[(0,s.jsxs)("div",{className:Nt("tabs"),children:[(0,s.jsx)(rt.t,{activeTab:u,onSelectTab:g,items:d,size:"s"===t?"m":t}),(0,s.jsx)(At,{className:Nt("doc"),size:t,docs:c})]}),(0,s.jsx)("div",{className:Nt("content"),children:(0,s.jsx)(Dt,{presets:p.presets,onChoosePreset:o,size:t})})]})):null}const Ot={s:28,m:28,l:32,xl:36};function Dt({presets:e,onChoosePreset:t,size:i="m"}){const r=n.useRef(null);return n.useEffect((()=>{var e,t;const i=r.current,s=null===(t=null===(e=r.current)||void 0===e?void 0:e.refContainer.current)||void 0===t?void 0:t.node;if(i&&s)try{s.setAttribute("tabindex","0"),s.setAttribute("class",Nt("list-container"));const e=()=>{null===i.getActiveItem()&&i.activateItem(0,!0)};return s.addEventListener("focus",e),()=>{s.removeEventListener("focus",e)}}catch(n){}}),[]),(0,s.jsx)(ot.B,{ref:r,className:Nt("list"),itemClassName:Nt("item"),items:e,filterable:!1,virtualized:!1,renderItem:e=>e.title,itemHeight:Ot[i],onItemClick:e=>{t(e.from,e.to)}})}var Mt=i(24555),Pt=i(98089);const Ft=JSON.parse('{"default":"Default","system":"Browser time"}'),Ut=JSON.parse('{"default":"\u0414\u0435\u0444\u043e\u043b\u0442\u043d\u0430\u044f","system":"\u0411\u0440\u0430\u0443\u0437\u0435\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f"}'),Ht=(0,_.N)({en:Ft,ru:Ut},`${c}relative-range-date-picker-zones`),Bt={},Wt=(0,f.Pn)().reduce(((e,t)=>{const[i]=t.split("/");if(i){let s=Bt[i];s||(s={label:i,options:[]},Bt[i]=s,e.push(s)),s.options.push({value:t})}return e}),[]);Wt.unshift({value:"UTC"}),Wt.unshift({value:"system",get content(){return Ht("system")}}),Wt.unshift({value:"default",get content(){return Ht("default")}});const Vt=l("relative-range-date-picker-zones");function zt(e){const t=k(e.value),i=e.isMobile?"xl":e.size;return(0,s.jsx)(Mt.l,{disabled:e.disabled,value:[t],options:Wt,size:i,onUpdate:t=>{const i=t[0];i&&e.onUpdate(i)},width:"max",renderControl:n=>{const r="system"===t||"default"===t?Ht(t):t;return(0,s.jsxs)(g.$,{onClick:n.onClick,ref:n.ref,view:"flat-secondary",width:"max",pin:"clear-clear",size:i,disabled:e.disabled,extraProps:{"aria-haspopup":"listbox","aria-expanded":n.open,onKeyDown:n.onKeyDown},className:Vt("control"),children:[`${r} (${A(t)})`,(0,s.jsx)(p.I,{className:Vt("control-icon"),data:z.A,size:e.isMobile?20:16})]})},renderOption:({value:e,content:t})=>{const i=null!==t&&void 0!==t?t:e;return(0,s.jsxs)("span",{className:Vt("item"),children:[(0,s.jsxs)("span",{className:Vt("item-title"),title:e,children:[i,"\xa0"]}),(0,s.jsx)(Pt.E,{color:"secondary",children:A(e)})]})},filterable:!0})}const Gt=JSON.parse('{"Value is incorrect.":"Value is incorrect.","Value is required.":"Value is required.","\\"From\\" can\'t be after \\"To\\".":"\\"From\\" can\'t be after \\"To\\".","From":"From","To":"To","Apply":"Apply"}'),jt=JSON.parse('{"Value is incorrect.":"\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e.","Value is required.":"Value is required.","\\"From\\" can\'t be after \\"To\\".":"\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \xab\u041e\u0442\xbb \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u0437\u0436\u0435 \u0447\u0435\u043c \xab\u0414\u043e\xbb.","From":"\u041e\u0442","To":"\u0414o","Apply":"\u041f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c"}'),Kt=(0,_.N)({en:Gt,ru:jt},`${c}relative-range-date-picker-dialog`),Yt=JSON.parse('{"Value must be {minValue} or later.":"{{value}} must be {{minValue}} or later.","Value must be {maxValue} or earlier.":"{{value}} must be {{maxValue}} or earlier.","Selected date unavailable.":"Selected date unavailable.","Value is required.":"{{value}} is required."}'),qt=JSON.parse('{"Value must be {minValue} or later.":"{value} \u0434\u043e\u043b\u0436\u043d\u043e \u0440\u043e\u0432\u043d\u044f\u0442\u044c\u0441\u044f {minValue} \u0438\u043b\u0438 \u0431\u044b\u0442\u044c \u043f\u043e\u0437\u0436\u0435.","Value must be {maxValue} or earlier.":"{value} \u0434\u043e\u043b\u0436\u043d\u043e \u0440\u043e\u0432\u043d\u044f\u0442\u044c\u0441\u044f {maxValue} \u0438\u043b\u0438 \u0431\u044b\u0442\u044c \u0440\u0430\u043d\u044c\u0448\u0435.","Selected date unavailable.":"\u0412\u044b\u0431\u0440\u0430\u043d\u043d\u0430\u044f \u0434\u0430\u0442\u0430 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430.","Value is required.":"{value} \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e."}'),$t=(0,_.N)({en:Yt,ru:qt},`${c}validation`);function Qt(e,t,i,s,n,r="Value"){const o=e&&i&&i.isBefore(e),a=e&&t&&e.isBefore(t),c=e&&(null===s||void 0===s?void 0:s(e))||!1,l=o||a||c,h=[];return l&&(a&&t&&h.push($t("Value must be {minValue} or later.",{minValue:t.timeZone(n).format(),value:r})),o&&i&&h.push($t("Value must be {maxValue} or earlier.",{maxValue:i.timeZone(n).format(),value:r})),c&&h.push($t("Selected date unavailable."))),{isInvalid:l,errors:h}}function Xt(e,t,i={}){var s;if(!e&&!t)return null;const{isInvalid:n}=Zt(e,t,i.allowNullableValues,i.minValue,i.maxValue,i.isDateUnavailable,null!==(s=i.timeZone)&&void 0!==s?s:"default");return n?null:{start:e,end:t}}function Zt(e,t,i,s,n,r,o){if(!e&&!t)return{isInvalid:!1};const a=e?(0,f.bQ)(e.value,{timeZone:o}):null,c=t?(0,f.bQ)(t.value,{timeZone:o,roundUp:!0}):null,l=Qt(a,s,n,r,o);a||i||(l.isInvalid=!0,l.errors.push(Kt("Value is required.")));const h=Qt(c,s,n,r,o);return c||i||(h.isInvalid=!0,h.errors.push(Kt("Value is required."))),a&&c&&c.isBefore(a)&&(l.isInvalid=!0,l.errors.push(Kt('"From" can\'t be after "To".'))),{isInvalid:l.isInvalid||h.isInvalid,startValidationResult:l,endValidationResult:h}}const Jt=l("relative-range-date-picker-dialog");function ei({props:e,state:t,open:i,onClose:n,focusInput:r,isMobile:o,anchorRef:a,className:c}){return o?(0,s.jsx)(F.c,{visible:i,onClose:n,contentClassName:Jt("content",{mobile:!0,size:"xl"},c),children:(0,s.jsx)(ti,Object.assign({},e,{size:"xl",state:t,onApply:n}))}):(0,s.jsx)(U.z,{open:i,onEscapeKeyDown:()=>{n(),r()},onClose:n,role:"dialog",anchorRef:a,contentClassName:Jt("content",{size:e.size},c),autoFocus:!0,focusTrap:!0,children:(0,s.jsx)(ti,Object.assign({},e,{state:t,onApply:n}))})}function ti(e){var t,i,r,o,a,c,l;const h=function(e,t){var i,s,r,o;const{withApplyButton:a,allowNullableValues:c}=t,[l,h]=n.useState(null!==(s=null===(i=e.value)||void 0===i?void 0:i.start)&&void 0!==s?s:null),[d,u]=n.useState(null!==(o=null===(r=e.value)||void 0===r?void 0:r.end)&&void 0!==o?o:null),[g,p]=n.useState(e.timeZone),m=a?g:e.timeZone,f=n.useMemo((()=>Zt(l,d,c,t.minValue,t.maxValue,t.isDateUnavailable,m)),[c,d,t.isDateUnavailable,t.maxValue,t.minValue,l,m]);return{start:l,end:d,timeZone:m,setStart:function(i){h(i),a||e.setValue(Xt(i,d,Object.assign(Object.assign({},t),{timeZone:m})),m)},setEnd:function(i){u(i),a||e.setValue(Xt(l,i,Object.assign(Object.assign({},t),{timeZone:m})),m)},setRange:function(i,s){h(i),u(s),a||e.setValue(Xt(i,s,Object.assign(Object.assign({},t),{timeZone:m})),m)},setTimeZone:function(i){p(i),a||e.setValue(Xt(l,d,Object.assign(Object.assign({},t),{timeZone:i})),i)},applyValue:function(){e.setValue(Xt(l,d,Object.assign(Object.assign({},t),{timeZone:m})),m)},isInvalid:f.isInvalid,startValidation:f.startValidationResult,endValidation:f.endValidationResult}}(e.state,e),d=(null===(t=e.placeholderValue)||void 0===t?void 0:t.timeZone(e.state.timeZone))||(0,f.KQ)({timeZone:e.state.timeZone}),u={timeZone:e.state.timeZone,format:e.format,minValue:e.minValue,maxValue:e.maxValue,hasClear:e.allowNullableValues,readOnly:e.readOnly,size:e.size,errorPlacement:"inside"};return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:Jt("pickers"),children:[(0,s.jsx)(nt,Object.assign({},u,{validationState:(null===(i=h.startValidation)||void 0===i?void 0:i.isInvalid)?"invalid":void 0,errorMessage:(null===(o=null===(r=h.startValidation)||void 0===r?void 0:r.errors)||void 0===o?void 0:o.join("\n"))||Kt("Value is incorrect."),placeholderValue:d.startOf("day"),label:Kt("From"),value:h.start,onUpdate:h.setStart})),(0,s.jsx)(nt,Object.assign({},u,{validationState:(null===(a=h.endValidation)||void 0===a?void 0:a.isInvalid)?"invalid":void 0,errorMessage:(null===(l=null===(c=h.endValidation)||void 0===c?void 0:c.errors)||void 0===l?void 0:l.join("\n"))||Kt("Value is incorrect."),placeholderValue:d.endOf("day"),label:Kt("To"),value:h.end,onUpdate:h.setEnd,roundUp:!0}))]}),e.withApplyButton&&!e.readOnly?(0,s.jsx)(g.$,{disabled:h.isInvalid,size:e.size,onClick:()=>{h.applyValue(),e.onApply()},className:Jt("apply"),width:"max",children:Kt("Apply")}):null,e.withPresets&&!e.readOnly?(0,s.jsx)(It,{size:e.size,presetTabs:e.presetTabs,onChoosePreset:(t,i)=>{h.setRange({type:"relative",value:t},{type:"relative",value:i}),e.withApplyButton||e.onApply()},minValue:e.minValue,docs:e.docs,className:Jt("presets")}):null,e.withZonesList?(0,s.jsx)("div",{className:Jt("zone"),children:(0,s.jsx)(zt,{value:h.timeZone,onUpdate:h.setTimeZone,disabled:e.readOnly,size:e.size})}):null]})}const ii=JSON.parse('{"\\"From\\"":"\\"From\\"","\\"From\\" is required.":"\\"From\\" is required.","\\"To\\"":"\\"To\\"","\\"To\\" is required.":"\\"To\\" is required.","\\"From\\" can\'t be after \\"To\\".":"\\"From\\" can\'t be after \\"To\\".","to":"to"}'),si=JSON.parse('{"\\"From\\"":"\xab\u041e\u0442\xbb","\\"From\\" is required.":"\xab\u041e\u0442\xbb \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e.","\\"To\\"":"\xab\u0414\u043e\xbb","\\"To\\" is required.":"\xab\u0414\u043e\xbb \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e.","\\"From\\" can\'t be after \\"To\\".":"\xab\u041e\u0442\xbb \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u0437\u0436\u0435 \u0447\u0435\u043c \xab\u0414\u043e\xbb.","to":"\u0434\u043e"}'),ni=(0,_.N)({en:ii,ru:si},`${c}relative-range-date-picker`);function ri(e){var t,i;const[s,r]=(0,o.P)(e.value,null!==(t=e.defaultValue)&&void 0!==t?t:null),[a,c]=(0,o.P)(e.timeZone,null!==(i=e.defaultTimeZone)&&void 0!==i?i:"default",e.onUpdateTimeZone),l=n.useMemo((()=>function(e,t,i,s,n,r){if(!e)return{isInvalid:!1,errors:[]};const o=e.start?(0,f.bQ)(e.start.value,{timeZone:r}):null,a=e.end?(0,f.bQ)(e.end.value,{timeZone:r,roundUp:!0}):null,c=Qt(o,i,s,n,r,ni('"From"'));o||t||(c.isInvalid=!0,c.errors.push(ni('"From" is required.')));const l=Qt(a,i,s,n,r,ni('"To"'));a||t||(l.isInvalid=!0,l.errors.push(ni('"To" is required.')));o&&a&&a.isBefore(o)&&(c.isInvalid=!0,c.errors.push(ni('"From" can\'t be after "To".')));return{isInvalid:c.isInvalid||l.isInvalid,errors:c.errors.concat(l.errors)}}(s,e.allowNullableValues,e.minValue,e.maxValue,e.isDateUnavailable,a)),[s,e.allowNullableValues,e.isDateUnavailable,e.maxValue,e.minValue,a]);return Object.assign({value:s,timeZone:a,setValue(t,i){var n;r(t),c(i),(s!==t||s&&a!==i)&&(null===(n=e.onUpdate)||void 0===n||n.call(e,t,i))}},l)}const oi=l("relative-range-date-picker");function ai(e){const t=ri(e),i=(0,r.I)(),c=n.useRef(null),l=n.useRef(null),[d,u]=n.useState(!1),[g,p]=(0,o.P)(void 0,!1,e.onOpenChange),{focusWithinProps:m}=(0,a.R)({isDisabled:e.disabled,onFocusWithin:t=>{var i;d||null===(i=e.onFocus)||void 0===i||i.call(e,t)},onBlurWithin:t=>{var i;g||(u(!1),null===(i=e.onBlur)||void 0===i||i.call(e,t))}});return(0,s.jsxs)("div",Object.assign({ref:c},m,{className:oi(null,e.className),style:e.style,children:[(0,s.jsx)(P,{props:e,state:t,open:g,isMobile:i,ref:l,onClick:()=>{e.disabled||g||(u(!0),p(!0))},onKeyDown:t=>{e.disabled||!t.altKey||"ArrowDown"!==t.key&&"ArrowUp"!==t.key||(t.preventDefault(),p(!0))},onClickCalendar:()=>{u(!0),p(!g)},onFocus:()=>{d||(u(!0),p(!0))},onUpdate:i=>{e.readOnly||i||t.setValue(null,"default")}}),(0,s.jsx)(h,{name:e.name,form:e.form,value:t.value,toStringValue:e=>{var t,i;return null!==(i=null===(t=null===e||void 0===e?void 0:e.start)||void 0===t?void 0:t.type)&&void 0!==i?i:""},disabled:e.disabled}),(0,s.jsx)(h,{name:e.name,form:e.form,value:t.value,toStringValue:e=>{var t;return ci(null!==(t=null===e||void 0===e?void 0:e.start)&&void 0!==t?t:null)},disabled:e.disabled}),(0,s.jsx)(h,{name:e.name,form:e.form,value:t.value,toStringValue:e=>{var t,i;return null!==(i=null===(t=null===e||void 0===e?void 0:e.end)||void 0===t?void 0:t.type)&&void 0!==i?i:""},disabled:e.disabled}),(0,s.jsx)(h,{name:e.name,form:e.form,value:t.value,toStringValue:e=>{var t;return ci(null!==(t=null===e||void 0===e?void 0:e.end)&&void 0!==t?t:null)},disabled:e.disabled}),(0,s.jsx)(h,{name:e.name,form:e.form,onReset:e=>{t.setValue(e.value,e.timeZone)},value:{value:t.value,timeZone:t.timeZone},toStringValue:e=>e.timeZone,disabled:e.disabled}),(0,s.jsx)(ei,{state:t,props:e,open:g,onClose:()=>{p(!1)},focusInput:()=>{setTimeout((()=>{var e;null===(e=l.current)||void 0===e||e.focus({preventScroll:!0})}))},anchorRef:c,isMobile:i,className:e.popupClassName})]}))}function ci(e){return e?"relative"===e.type?e.value:e.value.toISOString():""}},23934:(e,t,i)=>{"use strict";var s=i(61850),n=i(92727);const r="clickhouse";(0,s.KV)({id:r,extensions:[],loader:()=>i.e(6397).then(i.bind(i,66397)).then((e=>({conf:e.conf,language:e.language,completions:e.completionLists})))});const o=new s.IK(r,s.bC,s.RQ);n.eo[r]=o;(0,s.KV)({id:"s-expression",extensions:[],loader:()=>i.e(5475).then(i.bind(i,5475))}),n.EN.defineTheme("vs",{base:"vs",inherit:!0,rules:[{token:"string.tablepath",foreground:"338186"},{token:"constant.yql",foreground:"608b4e"},{token:"keyword.type",foreground:"4d932d"},{token:"string.sql",foreground:"a31515"},{token:"support.function",foreground:"7a3e9d"},{token:"constant.other.color",foreground:"7a3e9d"},{token:"comment",foreground:"969896"}],colors:{"editor.lineHighlightBackground":"#EFEFEF"}}),n.EN.defineTheme("vs-dark",{base:"vs-dark",inherit:!0,rules:[{token:"string.tablepath",foreground:"338186"},{token:"constant.yql",foreground:"608b4e"},{token:"storage.type",foreground:"6A8759"},{token:"string.sql",foreground:"ce9178"},{token:"support.function",foreground:"9e7bb0"},{token:"constant.other.color",foreground:"9e7bb0"},{token:"comment",foreground:"969896"}],colors:{"editor.lineHighlightBackground":"#282A2E"}});i(23195);(0,s.KV)({id:"yql_ansi",extensions:[],loader:()=>i.e(9507).then(i.bind(i,19507)).then((e=>({conf:e.conf,language:e.getLanguage({ansi:!0})})))});i(43733)},23971:(e,t,i)=>{"use strict";i.d(t,{Gb:()=>V,Jt:()=>f,hZ:()=>E,mN:()=>Ae,xI:()=>W});var s=i(59284),n=e=>"checkbox"===e.type,r=e=>e instanceof Date,o=e=>null==e;const a=e=>"object"===typeof e;var c=e=>!o(e)&&!Array.isArray(e)&&a(e)&&!r(e),l=e=>c(e)&&e.target?n(e.target)?e.target.checked:e.target.value:e,h=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),d=e=>{const t=e.constructor&&e.constructor.prototype;return c(t)&&t.hasOwnProperty("isPrototypeOf")},u="undefined"!==typeof window&&"undefined"!==typeof window.HTMLElement&&"undefined"!==typeof document;function g(e){let t;const i=Array.isArray(e),s="undefined"!==typeof FileList&&e instanceof FileList;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(u&&(e instanceof Blob||s)||!i&&!c(e))return e;if(t=i?[]:{},i||d(e))for(const i in e)e.hasOwnProperty(i)&&(t[i]=g(e[i]));else t=e}return t}var p=e=>Array.isArray(e)?e.filter(Boolean):[],m=e=>void 0===e,f=(e,t,i)=>{if(!t||!c(e))return i;const s=p(t.split(/[,[\].]+?/)).reduce(((e,t)=>o(e)?e:e[t]),e);return m(s)||s===e?m(e[t])?i:e[t]:s},_=e=>"boolean"===typeof e,v=e=>/^\w*$/.test(e),C=e=>p(e.replace(/["|']|\]/g,"").split(/\.|\[/)),E=(e,t,i)=>{let s=-1;const n=v(t)?[t]:C(t),r=n.length,o=r-1;for(;++s<r;){const t=n[s];let r=i;if(s!==o){const i=e[t];r=c(i)||Array.isArray(i)?i:isNaN(+n[s+1])?{}:[]}if("__proto__"===t||"constructor"===t||"prototype"===t)return;e[t]=r,e=e[t]}return e};const b={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},S={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},y="max",w="min",R="maxLength",L="minLength",T="pattern",x="required",k="validate",A=s.createContext(null),N=()=>s.useContext(A);var I=(e,t,i,s=!0)=>{const n={defaultValues:t._defaultValues};for(const r in e)Object.defineProperty(n,r,{get:()=>{const n=r;return t._proxyFormState[n]!==S.all&&(t._proxyFormState[n]=!s||S.all),i&&(i[n]=!0),e[n]}});return n},O=e=>c(e)&&!Object.keys(e).length,D=(e,t,i,s)=>{i(e);const{name:n,...r}=e;return O(r)||Object.keys(r).length>=Object.keys(t).length||Object.keys(r).find((e=>t[e]===(!s||S.all)))},M=e=>Array.isArray(e)?e:[e],P=(e,t,i)=>!e||!t||e===t||M(e).some((e=>e&&(i?e===t:e.startsWith(t)||t.startsWith(e))));function F(e){const t=s.useRef(e);t.current=e,s.useEffect((()=>{const i=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{i&&i.unsubscribe()}}),[e.disabled])}var U=e=>"string"===typeof e,H=(e,t,i,s,n)=>U(e)?(s&&t.watch.add(e),f(i,e,n)):Array.isArray(e)?e.map((e=>(s&&t.watch.add(e),f(i,e)))):(s&&(t.watchAll=!0),i);function B(e){const t=N(),{name:i,disabled:n,control:r=t.control,shouldUnregister:o}=e,a=h(r._names.array,i),c=function(e){const t=N(),{control:i=t.control,name:n,defaultValue:r,disabled:o,exact:a}=e||{},c=s.useRef(n);c.current=n,F({disabled:o,subject:i._subjects.values,next:e=>{P(c.current,e.name,a)&&h(g(H(c.current,i._names,e.values||i._formValues,!1,r)))}});const[l,h]=s.useState(i._getWatch(n,r));return s.useEffect((()=>i._removeUnmounted())),l}({control:r,name:i,defaultValue:f(r._formValues,i,f(r._defaultValues,i,e.defaultValue)),exact:!0}),d=function(e){const t=N(),{control:i=t.control,disabled:n,name:r,exact:o}=e||{},[a,c]=s.useState(i._formState),l=s.useRef(!0),h=s.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=s.useRef(r);return d.current=r,F({disabled:n,next:e=>l.current&&P(d.current,e.name,o)&&D(e,h.current,i._updateFormState)&&c({...i._formState,...e}),subject:i._subjects.state}),s.useEffect((()=>(l.current=!0,h.current.isValid&&i._updateValid(!0),()=>{l.current=!1})),[i]),s.useMemo((()=>I(a,i,h.current,!1)),[a,i])}({control:r,name:i,exact:!0}),u=s.useRef(r.register(i,{...e.rules,value:c,..._(e.disabled)?{disabled:e.disabled}:{}})),p=s.useMemo((()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!f(d.errors,i)},isDirty:{enumerable:!0,get:()=>!!f(d.dirtyFields,i)},isTouched:{enumerable:!0,get:()=>!!f(d.touchedFields,i)},isValidating:{enumerable:!0,get:()=>!!f(d.validatingFields,i)},error:{enumerable:!0,get:()=>f(d.errors,i)}})),[d,i]),v=s.useMemo((()=>({name:i,value:c,..._(n)||d.disabled?{disabled:d.disabled||n}:{},onChange:e=>u.current.onChange({target:{value:l(e),name:i},type:b.CHANGE}),onBlur:()=>u.current.onBlur({target:{value:f(r._formValues,i),name:i},type:b.BLUR}),ref:e=>{const t=f(r._fields,i);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})}})),[i,r._formValues,n,d.disabled,c,r._fields]);return s.useEffect((()=>{const e=r._options.shouldUnregister||o,t=(e,t)=>{const i=f(r._fields,e);i&&i._f&&(i._f.mount=t)};if(t(i,!0),e){const e=g(f(r._options.defaultValues,i));E(r._defaultValues,i,e),m(f(r._formValues,i))&&E(r._formValues,i,e)}return!a&&r.register(i),()=>{(a?e&&!r._state.action:e)?r.unregister(i):t(i,!1)}}),[i,r,a,o]),s.useEffect((()=>{r._updateDisabledField({disabled:n,fields:r._fields,name:i})}),[n,i,r]),s.useMemo((()=>({field:v,formState:d,fieldState:p})),[v,d,p])}const W=e=>e.render(B(e));var V=(e,t,i,s,n)=>t?{...i[e],types:{...i[e]&&i[e].types?i[e].types:{},[s]:n||!0}}:{},z=e=>({isOnSubmit:!e||e===S.onSubmit,isOnBlur:e===S.onBlur,isOnChange:e===S.onChange,isOnAll:e===S.all,isOnTouch:e===S.onTouched}),G=(e,t,i)=>!i&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))));const j=(e,t,i,s)=>{for(const n of i||Object.keys(e)){const i=f(e,n);if(i){const{_f:e,...r}=i;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],n)&&!s)return!0;if(e.ref&&t(e.ref,e.name)&&!s)return!0;if(j(r,t))break}else if(c(r)&&j(r,t))break}}};var K=(e,t,i)=>{const s=M(f(e,i));return E(s,"root",t[i]),E(e,i,s),e},Y=e=>"file"===e.type,q=e=>"function"===typeof e,$=e=>{if(!u)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Q=e=>U(e),X=e=>"radio"===e.type,Z=e=>e instanceof RegExp;const J={value:!1,isValid:!1},ee={value:!0,isValid:!0};var te=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter((e=>e&&e.checked&&!e.disabled)).map((e=>e.value));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!m(e[0].attributes.value)?m(e[0].value)||""===e[0].value?ee:{value:e[0].value,isValid:!0}:ee:J}return J};const ie={isValid:!1,value:null};var se=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),ie):ie;function ne(e,t,i="validate"){if(Q(e)||Array.isArray(e)&&e.every(Q)||_(e)&&!e)return{type:i,message:Q(e)?e:"",ref:t}}var re=e=>c(e)&&!Z(e)?e:{value:e,message:""},oe=async(e,t,i,s,r,a)=>{const{ref:l,refs:h,required:d,maxLength:u,minLength:g,min:p,max:v,pattern:C,validate:E,name:b,valueAsNumber:S,mount:A}=e._f,N=f(i,b);if(!A||t.has(b))return{};const I=h?h[0]:l,D=e=>{r&&I.reportValidity&&(I.setCustomValidity(_(e)?"":e||""),I.reportValidity())},M={},P=X(l),F=n(l),H=P||F,B=(S||Y(l))&&m(l.value)&&m(N)||$(l)&&""===l.value||""===N||Array.isArray(N)&&!N.length,W=V.bind(null,b,s,M),z=(e,t,i,s=R,n=L)=>{const r=e?t:i;M[b]={type:e?s:n,message:r,ref:l,...W(e?s:n,r)}};if(a?!Array.isArray(N)||!N.length:d&&(!H&&(B||o(N))||_(N)&&!N||F&&!te(h).isValid||P&&!se(h).isValid)){const{value:e,message:t}=Q(d)?{value:!!d,message:d}:re(d);if(e&&(M[b]={type:x,message:t,ref:I,...W(x,t)},!s))return D(t),M}if(!B&&(!o(p)||!o(v))){let e,t;const i=re(v),n=re(p);if(o(N)||isNaN(N)){const s=l.valueAsDate||new Date(N),r=e=>new Date((new Date).toDateString()+" "+e),o="time"==l.type,a="week"==l.type;U(i.value)&&N&&(e=o?r(N)>r(i.value):a?N>i.value:s>new Date(i.value)),U(n.value)&&N&&(t=o?r(N)<r(n.value):a?N<n.value:s<new Date(n.value))}else{const s=l.valueAsNumber||(N?+N:N);o(i.value)||(e=s>i.value),o(n.value)||(t=s<n.value)}if((e||t)&&(z(!!e,i.message,n.message,y,w),!s))return D(M[b].message),M}if((u||g)&&!B&&(U(N)||a&&Array.isArray(N))){const e=re(u),t=re(g),i=!o(e.value)&&N.length>+e.value,n=!o(t.value)&&N.length<+t.value;if((i||n)&&(z(i,e.message,t.message),!s))return D(M[b].message),M}if(C&&!B&&U(N)){const{value:e,message:t}=re(C);if(Z(e)&&!N.match(e)&&(M[b]={type:T,message:t,ref:l,...W(T,t)},!s))return D(t),M}if(E)if(q(E)){const e=ne(await E(N,i),I);if(e&&(M[b]={...e,...W(k,e.message)},!s))return D(e.message),M}else if(c(E)){let e={};for(const t in E){if(!O(e)&&!s)break;const n=ne(await E[t](N,i),I,t);n&&(e={...n,...W(t,n.message)},D(n.message),s&&(M[b]=e))}if(!O(e)&&(M[b]={ref:I,...e},!s))return M}return D(!0),M};function ae(e,t){const i=Array.isArray(t)?t:v(t)?[t]:C(t),s=1===i.length?e:function(e,t){const i=t.slice(0,-1).length;let s=0;for(;s<i;)e=m(e)?s++:e[t[s++]];return e}(e,i),n=i.length-1,r=i[n];return s&&delete s[r],0!==n&&(c(s)&&O(s)||Array.isArray(s)&&function(e){for(const t in e)if(e.hasOwnProperty(t)&&!m(e[t]))return!1;return!0}(s))&&ae(e,i.slice(0,-1)),e}var ce=()=>{let e=[];return{get observers(){return e},next:t=>{for(const i of e)i.next&&i.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter((e=>e!==t))}}),unsubscribe:()=>{e=[]}}},le=e=>o(e)||!a(e);function he(e,t){if(le(e)||le(t))return e===t;if(r(e)&&r(t))return e.getTime()===t.getTime();const i=Object.keys(e),s=Object.keys(t);if(i.length!==s.length)return!1;for(const n of i){const i=e[n];if(!s.includes(n))return!1;if("ref"!==n){const e=t[n];if(r(i)&&r(e)||c(i)&&c(e)||Array.isArray(i)&&Array.isArray(e)?!he(i,e):i!==e)return!1}}return!0}var de=e=>"select-multiple"===e.type,ue=e=>X(e)||n(e),ge=e=>$(e)&&e.isConnected,pe=e=>{for(const t in e)if(q(e[t]))return!0;return!1};function me(e,t={}){const i=Array.isArray(e);if(c(e)||i)for(const s in e)Array.isArray(e[s])||c(e[s])&&!pe(e[s])?(t[s]=Array.isArray(e[s])?[]:{},me(e[s],t[s])):o(e[s])||(t[s]=!0);return t}function fe(e,t,i){const s=Array.isArray(e);if(c(e)||s)for(const n in e)Array.isArray(e[n])||c(e[n])&&!pe(e[n])?m(t)||le(i[n])?i[n]=Array.isArray(e[n])?me(e[n],[]):{...me(e[n])}:fe(e[n],o(t)?{}:t[n],i[n]):i[n]=!he(e[n],t[n]);return i}var _e=(e,t)=>fe(e,t,me(t)),ve=(e,{valueAsNumber:t,valueAsDate:i,setValueAs:s})=>m(e)?e:t?""===e?NaN:e?+e:e:i&&U(e)?new Date(e):s?s(e):e;function Ce(e){const t=e.ref;return Y(t)?t.files:X(t)?se(e.refs).value:de(t)?[...t.selectedOptions].map((({value:e})=>e)):n(t)?te(e.refs).value:ve(m(t.value)?e.ref.value:t.value,e)}var Ee=(e,t,i,s)=>{const n={};for(const r of e){const e=f(t,r);e&&E(n,r,e._f)}return{criteriaMode:i,names:[...e],fields:n,shouldUseNativeValidation:s}},be=e=>m(e)?e:Z(e)?e.source:c(e)?Z(e.value)?e.value.source:e.value:e;const Se="AsyncFunction";var ye=e=>!!e&&!!e.validate&&!!(q(e.validate)&&e.validate.constructor.name===Se||c(e.validate)&&Object.values(e.validate).find((e=>e.constructor.name===Se))),we=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Re(e,t,i){const s=f(e,i);if(s||v(i))return{error:s,name:i};const n=i.split(".");for(;n.length;){const s=n.join("."),r=f(t,s),o=f(e,s);if(r&&!Array.isArray(r)&&i!==s)return{name:i};if(o&&o.type)return{name:s,error:o};n.pop()}return{name:i}}var Le=(e,t,i,s,n)=>!n.isOnAll&&(!i&&n.isOnTouch?!(t||e):(i?s.isOnBlur:n.isOnBlur)?!e:!(i?s.isOnChange:n.isOnChange)||e),Te=(e,t)=>!p(f(e,t)).length&&ae(e,t);const xe={mode:S.onSubmit,reValidateMode:S.onChange,shouldFocusError:!0};function ke(e={}){let t,i={...xe,...e},s={submitCount:0,isDirty:!1,isLoading:q(i.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:i.errors||{},disabled:i.disabled||!1},a={},d=(c(i.defaultValues)||c(i.values))&&g(i.defaultValues||i.values)||{},v=i.shouldUnregister?{}:g(d),C={action:!1,mount:!1,watch:!1},y={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},w=0;const R={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},L={values:ce(),array:ce(),state:ce()},T=z(i.mode),x=z(i.reValidateMode),k=i.criteriaMode===S.all,A=async e=>{if(!i.disabled&&(R.isValid||e)){const e=i.resolver?O((await F()).errors):await B(a,!0);e!==s.isValid&&L.state.next({isValid:e})}},N=(e,t)=>{i.disabled||!R.isValidating&&!R.validatingFields||((e||Array.from(y.mount)).forEach((e=>{e&&(t?E(s.validatingFields,e,t):ae(s.validatingFields,e))})),L.state.next({validatingFields:s.validatingFields,isValidating:!O(s.validatingFields)}))},I=(e,t,i,s)=>{const n=f(a,e);if(n){const r=f(v,e,m(i)?f(d,e):i);m(r)||s&&s.defaultChecked||t?E(v,e,t?r:Ce(n._f)):Q(e,r),C.mount&&A()}},D=(e,t,n,r,o)=>{let c=!1,l=!1;const h={name:e};if(!i.disabled){const i=!!(f(a,e)&&f(a,e)._f&&f(a,e)._f.disabled);if(!n||r){R.isDirty&&(l=s.isDirty,s.isDirty=h.isDirty=W(),c=l!==h.isDirty);const n=i||he(f(d,e),t);l=!(i||!f(s.dirtyFields,e)),n||i?ae(s.dirtyFields,e):E(s.dirtyFields,e,!0),h.dirtyFields=s.dirtyFields,c=c||R.dirtyFields&&l!==!n}if(n){const t=f(s.touchedFields,e);t||(E(s.touchedFields,e,n),h.touchedFields=s.touchedFields,c=c||R.touchedFields&&t!==n)}c&&o&&L.state.next(h)}return c?h:{}},P=(e,n,r,o)=>{const a=f(s.errors,e),c=R.isValid&&_(n)&&s.isValid!==n;var l;if(i.delayError&&r?(l=()=>((e,t)=>{E(s.errors,e,t),L.state.next({errors:s.errors})})(e,r),t=e=>{clearTimeout(w),w=setTimeout(l,e)},t(i.delayError)):(clearTimeout(w),t=null,r?E(s.errors,e,r):ae(s.errors,e)),(r?!he(a,r):a)||!O(o)||c){const t={...o,...c&&_(n)?{isValid:n}:{},errors:s.errors,name:e};s={...s,...t},L.state.next(t)}},F=async e=>{N(e,!0);const t=await i.resolver(v,i.context,Ee(e||y.mount,a,i.criteriaMode,i.shouldUseNativeValidation));return N(e),t},B=async(e,t,n={valid:!0})=>{for(const r in e){const o=e[r];if(o){const{_f:e,...a}=o;if(e){const a=y.array.has(e.name),c=o._f&&ye(o._f);c&&R.validatingFields&&N([r],!0);const l=await oe(o,y.disabled,v,k,i.shouldUseNativeValidation&&!t,a);if(c&&R.validatingFields&&N([r]),l[e.name]&&(n.valid=!1,t))break;!t&&(f(l,e.name)?a?K(s.errors,l,e.name):E(s.errors,e.name,l[e.name]):ae(s.errors,e.name))}!O(a)&&await B(a,t,n)}}return n.valid},W=(e,t)=>!i.disabled&&(e&&t&&E(v,e,t),!he(ie(),d)),V=(e,t,i)=>H(e,y,{...C.mount?v:m(t)?d:U(e)?{[e]:t}:t},i,t),Q=(e,t,i={})=>{const s=f(a,e);let r=t;if(s){const i=s._f;i&&(!i.disabled&&E(v,e,ve(t,i)),r=$(i.ref)&&o(t)?"":t,de(i.ref)?[...i.ref.options].forEach((e=>e.selected=r.includes(e.value))):i.refs?n(i.ref)?i.refs.length>1?i.refs.forEach((e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(r)?!!r.find((t=>t===e.value)):r===e.value))):i.refs[0]&&(i.refs[0].checked=!!r):i.refs.forEach((e=>e.checked=e.value===r)):Y(i.ref)?i.ref.value="":(i.ref.value=r,i.ref.type||L.values.next({name:e,values:{...v}})))}(i.shouldDirty||i.shouldTouch)&&D(e,r,i.shouldTouch,i.shouldDirty,!0),i.shouldValidate&&te(e)},X=(e,t,i)=>{for(const s in t){const n=t[s],o=`${e}.${s}`,l=f(a,o);(y.array.has(e)||c(n)||l&&!l._f)&&!r(n)?X(o,n,i):Q(o,n,i)}},Z=(e,t,i={})=>{const n=f(a,e),r=y.array.has(e),c=g(t);E(v,e,c),r?(L.array.next({name:e,values:{...v}}),(R.isDirty||R.dirtyFields)&&i.shouldDirty&&L.state.next({name:e,dirtyFields:_e(d,v),isDirty:W(e,c)})):!n||n._f||o(c)?Q(e,c,i):X(e,c,i),G(e,y)&&L.state.next({...s}),L.values.next({name:C.mount?e:void 0,values:{...v}})},J=async e=>{C.mount=!0;const n=e.target;let o=n.name,c=!0;const h=f(a,o),d=e=>{c=Number.isNaN(e)||r(e)&&isNaN(e.getTime())||he(e,f(v,o,e))};if(h){let r,u;const g=n.type?Ce(h._f):l(e),p=e.type===b.BLUR||e.type===b.FOCUS_OUT,m=!we(h._f)&&!i.resolver&&!f(s.errors,o)&&!h._f.deps||Le(p,f(s.touchedFields,o),s.isSubmitted,x,T),_=G(o,y,p);E(v,o,g),p?(h._f.onBlur&&h._f.onBlur(e),t&&t(0)):h._f.onChange&&h._f.onChange(e);const C=D(o,g,p,!1),S=!O(C)||_;if(!p&&L.values.next({name:o,type:e.type,values:{...v}}),m)return R.isValid&&("onBlur"===i.mode&&p?A():p||A()),S&&L.state.next({name:o,..._?{}:C});if(!p&&_&&L.state.next({...s}),i.resolver){const{errors:e}=await F([o]);if(d(g),c){const t=Re(s.errors,a,o),i=Re(e,a,t.name||o);r=i.error,o=i.name,u=O(e)}}else N([o],!0),r=(await oe(h,y.disabled,v,k,i.shouldUseNativeValidation))[o],N([o]),d(g),c&&(r?u=!1:R.isValid&&(u=await B(a,!0)));c&&(h._f.deps&&te(h._f.deps),P(o,u,r,C))}},ee=(e,t)=>{if(f(s.errors,t)&&e.focus)return e.focus(),1},te=async(e,t={})=>{let n,r;const o=M(e);if(i.resolver){const t=await(async e=>{const{errors:t}=await F(e);if(e)for(const i of e){const e=f(t,i);e?E(s.errors,i,e):ae(s.errors,i)}else s.errors=t;return t})(m(e)?e:o);n=O(t),r=e?!o.some((e=>f(t,e))):n}else e?(r=(await Promise.all(o.map((async e=>{const t=f(a,e);return await B(t&&t._f?{[e]:t}:t)})))).every(Boolean),(r||s.isValid)&&A()):r=n=await B(a);return L.state.next({...!U(e)||R.isValid&&n!==s.isValid?{}:{name:e},...i.resolver||!e?{isValid:n}:{},errors:s.errors}),t.shouldFocus&&!r&&j(a,ee,e?o:y.mount),r},ie=e=>{const t={...C.mount?v:d};return m(e)?t:U(e)?f(t,e):e.map((e=>f(t,e)))},se=(e,t)=>({invalid:!!f((t||s).errors,e),isDirty:!!f((t||s).dirtyFields,e),error:f((t||s).errors,e),isValidating:!!f(s.validatingFields,e),isTouched:!!f((t||s).touchedFields,e)}),ne=(e,t,i)=>{const n=(f(a,e,{_f:{}})._f||{}).ref,r=f(s.errors,e)||{},{ref:o,message:c,type:l,...h}=r;E(s.errors,e,{...h,...t,ref:n}),L.state.next({name:e,errors:s.errors,isValid:!1}),i&&i.shouldFocus&&n&&n.focus&&n.focus()},re=(e,t={})=>{for(const n of e?M(e):y.mount)y.mount.delete(n),y.array.delete(n),t.keepValue||(ae(a,n),ae(v,n)),!t.keepError&&ae(s.errors,n),!t.keepDirty&&ae(s.dirtyFields,n),!t.keepTouched&&ae(s.touchedFields,n),!t.keepIsValidating&&ae(s.validatingFields,n),!i.shouldUnregister&&!t.keepDefaultValue&&ae(d,n);L.values.next({values:{...v}}),L.state.next({...s,...t.keepDirty?{isDirty:W()}:{}}),!t.keepIsValid&&A()},le=({disabled:e,name:t,field:i,fields:s})=>{(_(e)&&C.mount||e||y.disabled.has(t))&&(e?y.disabled.add(t):y.disabled.delete(t),D(t,Ce(i?i._f:f(s,t)._f),!1,!1,!0))},pe=(e,t={})=>{let s=f(a,e);const n=_(t.disabled)||_(i.disabled);return E(a,e,{...s||{},_f:{...s&&s._f?s._f:{ref:{name:e}},name:e,mount:!0,...t}}),y.mount.add(e),s?le({field:s,disabled:_(t.disabled)?t.disabled:i.disabled,name:e}):I(e,!0,t.value),{...n?{disabled:t.disabled||i.disabled}:{},...i.progressive?{required:!!t.required,min:be(t.min),max:be(t.max),minLength:be(t.minLength),maxLength:be(t.maxLength),pattern:be(t.pattern)}:{},name:e,onChange:J,onBlur:J,ref:n=>{if(n){pe(e,t),s=f(a,e);const i=m(n.value)&&n.querySelectorAll&&n.querySelectorAll("input,select,textarea")[0]||n,r=ue(i),o=s._f.refs||[];if(r?o.find((e=>e===i)):i===s._f.ref)return;E(a,e,{_f:{...s._f,...r?{refs:[...o.filter(ge),i,...Array.isArray(f(d,e))?[{}]:[]],ref:{type:i.type,name:e}}:{ref:i}}}),I(e,!1,void 0,i)}else s=f(a,e,{}),s._f&&(s._f.mount=!1),(i.shouldUnregister||t.shouldUnregister)&&(!h(y.array,e)||!C.action)&&y.unMount.add(e)}}},me=()=>i.shouldFocusError&&j(a,ee,y.mount),fe=(e,t)=>async n=>{let r;n&&(n.preventDefault&&n.preventDefault(),n.persist&&n.persist());let o=g(v);if(y.disabled.size)for(const e of y.disabled)E(o,e,void 0);if(L.state.next({isSubmitting:!0}),i.resolver){const{errors:e,values:t}=await F();s.errors=e,o=t}else await B(a);if(ae(s.errors,"root"),O(s.errors)){L.state.next({errors:{}});try{await e(o,n)}catch(c){r=c}}else t&&await t({...s.errors},n),me(),setTimeout(me);if(L.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:O(s.errors)&&!r,submitCount:s.submitCount+1,errors:s.errors}),r)throw r},Se=(e,t={})=>{const n=e?g(e):d,r=g(n),o=O(e),c=o?d:r;if(t.keepDefaultValues||(d=n),!t.keepValues){if(t.keepDirtyValues){const e=new Set([...y.mount,...Object.keys(_e(d,v))]);for(const t of Array.from(e))f(s.dirtyFields,t)?E(c,t,f(v,t)):Z(t,f(c,t))}else{if(u&&m(e))for(const e of y.mount){const t=f(a,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if($(e)){const t=e.closest("form");if(t){t.reset();break}}}}a={}}v=i.shouldUnregister?t.keepDefaultValues?g(d):{}:g(c),L.array.next({values:{...c}}),L.values.next({values:{...c}})}y={mount:t.keepDirtyValues?y.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},C.mount=!R.isValid||!!t.keepIsValid||!!t.keepDirtyValues,C.watch=!!i.shouldUnregister,L.state.next({submitCount:t.keepSubmitCount?s.submitCount:0,isDirty:!o&&(t.keepDirty?s.isDirty:!(!t.keepDefaultValues||he(e,d))),isSubmitted:!!t.keepIsSubmitted&&s.isSubmitted,dirtyFields:o?{}:t.keepDirtyValues?t.keepDefaultValues&&v?_e(d,v):s.dirtyFields:t.keepDefaultValues&&e?_e(d,e):t.keepDirty?s.dirtyFields:{},touchedFields:t.keepTouched?s.touchedFields:{},errors:t.keepErrors?s.errors:{},isSubmitSuccessful:!!t.keepIsSubmitSuccessful&&s.isSubmitSuccessful,isSubmitting:!1})},ke=(e,t)=>Se(q(e)?e(v):e,t);return{control:{register:pe,unregister:re,getFieldState:se,handleSubmit:fe,setError:ne,_executeSchema:F,_getWatch:V,_getDirty:W,_updateValid:A,_removeUnmounted:()=>{for(const e of y.unMount){const t=f(a,e);t&&(t._f.refs?t._f.refs.every((e=>!ge(e))):!ge(t._f.ref))&&re(e)}y.unMount=new Set},_updateFieldArray:(e,t=[],n,r,o=!0,c=!0)=>{if(r&&n&&!i.disabled){if(C.action=!0,c&&Array.isArray(f(a,e))){const t=n(f(a,e),r.argA,r.argB);o&&E(a,e,t)}if(c&&Array.isArray(f(s.errors,e))){const t=n(f(s.errors,e),r.argA,r.argB);o&&E(s.errors,e,t),Te(s.errors,e)}if(R.touchedFields&&c&&Array.isArray(f(s.touchedFields,e))){const t=n(f(s.touchedFields,e),r.argA,r.argB);o&&E(s.touchedFields,e,t)}R.dirtyFields&&(s.dirtyFields=_e(d,v)),L.state.next({name:e,isDirty:W(e,t),dirtyFields:s.dirtyFields,errors:s.errors,isValid:s.isValid})}else E(v,e,t)},_updateDisabledField:le,_getFieldArray:e=>p(f(C.mount?v:d,e,i.shouldUnregister?f(d,e,[]):[])),_reset:Se,_resetDefaultValues:()=>q(i.defaultValues)&&i.defaultValues().then((e=>{ke(e,i.resetOptions),L.state.next({isLoading:!1})})),_updateFormState:e=>{s={...s,...e}},_disableForm:e=>{_(e)&&(L.state.next({disabled:e}),j(a,((t,i)=>{const s=f(a,i);s&&(t.disabled=s._f.disabled||e,Array.isArray(s._f.refs)&&s._f.refs.forEach((t=>{t.disabled=s._f.disabled||e})))}),0,!1))},_subjects:L,_proxyFormState:R,_setErrors:e=>{s.errors=e,L.state.next({errors:s.errors,isValid:!1})},get _fields(){return a},get _formValues(){return v},get _state(){return C},set _state(e){C=e},get _defaultValues(){return d},get _names(){return y},set _names(e){y=e},get _formState(){return s},set _formState(e){s=e},get _options(){return i},set _options(e){i={...i,...e}}},trigger:te,register:pe,handleSubmit:fe,watch:(e,t)=>q(e)?L.values.subscribe({next:i=>e(V(void 0,t),i)}):V(e,t,!0),setValue:Z,getValues:ie,reset:ke,resetField:(e,t={})=>{f(a,e)&&(m(t.defaultValue)?Z(e,g(f(d,e))):(Z(e,t.defaultValue),E(d,e,g(t.defaultValue))),t.keepTouched||ae(s.touchedFields,e),t.keepDirty||(ae(s.dirtyFields,e),s.isDirty=t.defaultValue?W(e,g(f(d,e))):W()),t.keepError||(ae(s.errors,e),R.isValid&&A()),L.state.next({...s}))},clearErrors:e=>{e&&M(e).forEach((e=>ae(s.errors,e))),L.state.next({errors:e?s.errors:{}})},unregister:re,setError:ne,setFocus:(e,t={})=>{const i=f(a,e),s=i&&i._f;if(s){const e=s.refs?s.refs[0]:s.ref;e.focus&&(e.focus(),t.shouldSelect&&q(e.select)&&e.select())}},getFieldState:se}}function Ae(e={}){const t=s.useRef(void 0),i=s.useRef(void 0),[n,r]=s.useState({isDirty:!1,isValidating:!1,isLoading:q(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:q(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...ke(e),formState:n});const o=t.current.control;return o._options=e,F({subject:o._subjects.state,next:e=>{D(e,o._proxyFormState,o._updateFormState,!0)&&r({...o._formState})}}),s.useEffect((()=>o._disableForm(e.disabled)),[o,e.disabled]),s.useEffect((()=>{if(o._proxyFormState.isDirty){const e=o._getDirty();e!==n.isDirty&&o._subjects.state.next({isDirty:e})}}),[o,n.isDirty]),s.useEffect((()=>{e.values&&!he(e.values,i.current)?(o._reset(e.values,o._options.resetOptions),i.current=e.values,r((e=>({...e})))):o._resetDefaultValues()}),[e.values,o]),s.useEffect((()=>{e.errors&&o._setErrors(e.errors)}),[e.errors,o]),s.useEffect((()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()})),s.useEffect((()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})}),[e.shouldUnregister,o]),t.current.formState=I(n,o),t.current}},24152:(e,t,i)=>{"use strict";i.d(t,{IF:()=>C});var s,n,r=i(80781),o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,h=(e,t,i,s)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let n of c(t))l.call(e,n)||n===i||o(e,n,{get:()=>t[n],enumerable:!(s=a(t,n))||s.enumerable});return e},d={};h(d,s=r,"default"),n&&h(n,s,"default");var u=(e=>(e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ESNext=99]="ESNext",e))(u||{}),g=(e=>(e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative",e[e.ReactJSX=4]="ReactJSX",e[e.ReactJSXDev=5]="ReactJSXDev",e))(g||{}),p=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(p||{}),m=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(m||{}),f=(e=>(e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs",e))(f||{}),_=class{constructor(e,t,i,s,n){this._onDidChange=new d.Emitter,this._onDidExtraLibsChange=new d.Emitter,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(e),this.setDiagnosticsOptions(t),this.setWorkerOptions(i),this.setInlayHintsOptions(s),this.setModeConfiguration(n),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get modeConfiguration(){return this._modeConfiguration}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(e,t){let i;if(i="undefined"===typeof t?`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t,this._extraLibs[i]&&this._extraLibs[i].content===e)return{dispose:()=>{}};let s=1;return this._removedExtraLibs[i]&&(s=this._removedExtraLibs[i]+1),this._extraLibs[i]&&(s=this._extraLibs[i].version+1),this._extraLibs[i]={content:e,version:s},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let e=this._extraLibs[i];e&&e.version===s&&(delete this._extraLibs[i],this._removedExtraLibs[i]=s,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(e){for(const t in this._extraLibs)this._removedExtraLibs[t]=this._extraLibs[t].version;if(this._extraLibs=Object.create(null),e&&e.length>0)for(const t of e){const e=t.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=t.content;let s=1;this._removedExtraLibs[e]&&(s=this._removedExtraLibs[e]+1),this._extraLibs[e]={content:i,version:s}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){-1===this._onDidExtraLibsChangeTimeout&&(this._onDidExtraLibsChangeTimeout=window.setTimeout((()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)}),0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(e){this._compilerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(e){this._workerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(e){this._inlayHintsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(e){}setEagerModelSync(e){this._eagerModelSync=e}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(void 0)}},v={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,diagnostics:!0,documentRangeFormattingEdits:!0,signatureHelp:!0,onTypeFormattingEdits:!0,codeActions:!0,inlayHints:!0},C=new _({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},v),E=new _({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},v);function b(){return i.e(8979).then(i.bind(i,78979))}d.languages.typescript={ModuleKind:u,JsxEmit:g,NewLineKind:p,ScriptTarget:m,ModuleResolutionKind:f,typescriptVersion:"5.4.5",typescriptDefaults:C,javascriptDefaults:E,getTypeScriptWorker:()=>b().then((e=>e.getTypeScriptWorker())),getJavaScriptWorker:()=>b().then((e=>e.getJavaScriptWorker()))},d.languages.onLanguage("typescript",(()=>b().then((e=>e.setupTypeScript(C))))),d.languages.onLanguage("javascript",(()=>b().then((e=>e.setupJavaScript(E)))))},24329:(e,t,i)=>{"use strict";i.d(t,{R:()=>s});const s={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}}},24410:(e,t,i)=>{var s=i(20011);e.exports=function(e){return s(e)?void 0:e}},24520:(e,t,i)=>{"use strict";i.d(t,{L:()=>s});const s=(0,i(63591).u1)("themeService")},24853:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var s,n=i(59284);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},r.apply(null,arguments)}const o=function(e){return n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),s||(s=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.47 1.22a.75.75 0 011.06 0l2.5 2.5a.75.75 0 11-1.06 1.06L8.75 3.56v7.69a.75.75 0 01-1.5 0V3.56L6.03 4.78a.75.75 0 01-1.06-1.06zM1.75 13.5a.75.75 0 000 1.5h12.5a.75.75 0 000-1.5z",clipRule:"evenodd"})))}},24939:(e,t,i)=>{"use strict";i.d(t,{Fo:()=>u,YM:()=>p,m5:()=>m,uw:()=>a});class s{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}}const n=new s,r=new s,o=new s,a=new Array(230),c={},l=[],h=Object.create(null),d=Object.create(null),u=[],g=[];for(let f=0;f<=193;f++)u[f]=-1;for(let f=0;f<=132;f++)g[f]=-1;var p;function m(e,t){return(e|(65535&t)<<16>>>0)>>>0}!function(){const e="",t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[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,e,0,e,e,e],[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",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],i=[],s=[];for(const p of t){const[e,t,m,f,_,v,C,E,b]=p;if(s[t]||(s[t]=!0,l[t]=m,h[m]=t,d[m.toLowerCase()]=t,e&&(u[t]=f,0!==f&&3!==f&&5!==f&&4!==f&&6!==f&&57!==f&&(g[f]=t))),!i[f]){if(i[f]=!0,!_)throw new Error(`String representation missing for key code ${f} around scan code ${m}`);n.define(f,_),r.define(f,E||_),o.define(f,b||E||_)}v&&(a[v]=f),C&&(c[C]=f)}g[3]=46}(),function(e){e.toString=function(e){return n.keyCodeToStr(e)},e.fromString=function(e){return n.strToKeyCode(e)},e.toUserSettingsUS=function(e){return r.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return o.keyCodeToStr(e)},e.fromUserSettings=function(e){return r.strToKeyCode(e)||o.strToKeyCode(e)},e.toElectronAccelerator=function(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 n.keyCodeToStr(e)}}(p||(p={}))},25064:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>i.e(7118).then(i.bind(i,57118))})},25154:(e,t,i)=>{"use strict";i.d(t,{B:()=>s,q:()=>u});var s,n=i(8597),r=i(25893),o=i(25890),a=i(58694),c=i(41234),l=i(5662),h=i(58925),d=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};!function(e){e.Tap="-monaco-gesturetap",e.Change="-monaco-gesturechange",e.Start="-monaco-gesturestart",e.End="-monaco-gesturesend",e.Contextmenu="-monaco-gesturecontextmenu"}(s||(s={}));class u extends l.jG{static{this.SCROLL_FRICTION=-.005}static{this.HOLD_DELAY=700}static{this.CLEAR_TAP_COUNT_TIME=400}constructor(){super(),this.dispatched=!1,this.targets=new h.w,this.ignoreTargets=new h.w,this.activeTouches={},this.handle=null,this._lastSetTapCountTime=0,this._register(c.Jh.runAndSubscribe(n.Iv,(({window:e,disposables:t})=>{t.add(n.ko(e.document,"touchstart",(e=>this.onTouchStart(e)),{passive:!1})),t.add(n.ko(e.document,"touchend",(t=>this.onTouchEnd(e,t)))),t.add(n.ko(e.document,"touchmove",(e=>this.onTouchMove(e)),{passive:!1}))}),{window:r.G,disposables:this._store}))}static addTarget(e){if(!u.isTouchDevice())return l.jG.None;u.INSTANCE||(u.INSTANCE=(0,l.lC)(new u));const t=u.INSTANCE.targets.push(e);return(0,l.s)(t)}static ignoreTarget(e){if(!u.isTouchDevice())return l.jG.None;u.INSTANCE||(u.INSTANCE=(0,l.lC)(new u));const t=u.INSTANCE.ignoreTargets.push(e);return(0,l.s)(t)}static isTouchDevice(){return"ontouchstart"in r.G||navigator.maxTouchPoints>0}dispose(){this.handle&&(this.handle.dispose(),this.handle=null),super.dispose()}onTouchStart(e){const t=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(let i=0,n=e.targetTouches.length;i<n;i++){const n=e.targetTouches.item(i);this.activeTouches[n.identifier]={id:n.identifier,initialTarget:n.target,initialTimeStamp:t,initialPageX:n.pageX,initialPageY:n.pageY,rollingTimestamps:[t],rollingPageX:[n.pageX],rollingPageY:[n.pageY]};const r=this.newGestureEvent(s.Start,n.target);r.pageX=n.pageX,r.pageY=n.pageY,this.dispatchEvent(r)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}onTouchEnd(e,t){const i=Date.now(),n=Object.keys(this.activeTouches).length;for(let r=0,a=t.changedTouches.length;r<a;r++){const a=t.changedTouches.item(r);if(!this.activeTouches.hasOwnProperty(String(a.identifier))){console.warn("move of an UNKNOWN touch",a);continue}const c=this.activeTouches[a.identifier],l=Date.now()-c.initialTimeStamp;if(l<u.HOLD_DELAY&&Math.abs(c.initialPageX-o.RT(c.rollingPageX))<30&&Math.abs(c.initialPageY-o.RT(c.rollingPageY))<30){const e=this.newGestureEvent(s.Tap,c.initialTarget);e.pageX=o.RT(c.rollingPageX),e.pageY=o.RT(c.rollingPageY),this.dispatchEvent(e)}else if(l>=u.HOLD_DELAY&&Math.abs(c.initialPageX-o.RT(c.rollingPageX))<30&&Math.abs(c.initialPageY-o.RT(c.rollingPageY))<30){const e=this.newGestureEvent(s.Contextmenu,c.initialTarget);e.pageX=o.RT(c.rollingPageX),e.pageY=o.RT(c.rollingPageY),this.dispatchEvent(e)}else if(1===n){const t=o.RT(c.rollingPageX),s=o.RT(c.rollingPageY),n=o.RT(c.rollingTimestamps)-c.rollingTimestamps[0],r=t-c.rollingPageX[0],a=s-c.rollingPageY[0],l=[...this.targets].filter((e=>c.initialTarget instanceof Node&&e.contains(c.initialTarget)));this.inertia(e,l,i,Math.abs(r)/n,r>0?1:-1,t,Math.abs(a)/n,a>0?1:-1,s)}this.dispatchEvent(this.newGestureEvent(s.End,c.initialTarget)),delete this.activeTouches[a.identifier]}this.dispatched&&(t.preventDefault(),t.stopPropagation(),this.dispatched=!1)}newGestureEvent(e,t){const i=document.createEvent("CustomEvent");return i.initEvent(e,!1,!0),i.initialTarget=t,i.tapCount=0,i}dispatchEvent(e){if(e.type===s.Tap){const t=(new Date).getTime();let i=0;i=t-this._lastSetTapCountTime>u.CLEAR_TAP_COUNT_TIME?1:2,this._lastSetTapCountTime=t,e.tapCount=i}else e.type!==s.Change&&e.type!==s.Contextmenu||(this._lastSetTapCountTime=0);if(e.initialTarget instanceof Node){for(const i of this.ignoreTargets)if(i.contains(e.initialTarget))return;const t=[];for(const i of this.targets)if(i.contains(e.initialTarget)){let s=0,n=e.initialTarget;for(;n&&n!==i;)s++,n=n.parentElement;t.push([s,i])}t.sort(((e,t)=>e[0]-t[0]));for(const[i,s]of t)s.dispatchEvent(e),this.dispatched=!0}}inertia(e,t,i,r,o,a,c,l,h){this.handle=n.PG(e,(()=>{const n=Date.now(),d=n-i;let g=0,p=0,m=!0;r+=u.SCROLL_FRICTION*d,c+=u.SCROLL_FRICTION*d,r>0&&(m=!1,g=o*r*d),c>0&&(m=!1,p=l*c*d);const f=this.newGestureEvent(s.Change);f.translationX=g,f.translationY=p,t.forEach((e=>e.dispatchEvent(f))),m||this.inertia(e,t,n,r,o,a+g,c,l,h+p)}))}onTouchMove(e){const t=Date.now();for(let i=0,n=e.changedTouches.length;i<n;i++){const n=e.changedTouches.item(i);if(!this.activeTouches.hasOwnProperty(String(n.identifier))){console.warn("end of an UNKNOWN touch",n);continue}const r=this.activeTouches[n.identifier],a=this.newGestureEvent(s.Change,r.initialTarget);a.translationX=n.pageX-o.RT(r.rollingPageX),a.translationY=n.pageY-o.RT(r.rollingPageY),a.pageX=n.pageX,a.pageY=n.pageY,this.dispatchEvent(a),r.rollingPageX.length>3&&(r.rollingPageX.shift(),r.rollingPageY.shift(),r.rollingTimestamps.shift()),r.rollingPageX.push(n.pageX),r.rollingPageY.push(n.pageY),r.rollingTimestamps.push(t)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}}d([a.B],u,"isTouchDevice",null)},25521:(e,t,i)=>{"use strict";i.d(t,{Bs:()=>a,d:()=>n});var s=i(91508);class n{constructor(e,t,i,s){this.startColumn=e,this.endColumn=t,this.className=i,this.type=s,this._lineDecorationBrand=void 0}static _equals(e,t){return e.startColumn===t.startColumn&&e.endColumn===t.endColumn&&e.className===t.className&&e.type===t.type}static equalsArr(e,t){const i=e.length;if(i!==t.length)return!1;for(let s=0;s<i;s++)if(!n._equals(e[s],t[s]))return!1;return!0}static extractWrapped(e,t,i){if(0===e.length)return e;const s=t+1,r=i+1,o=i-t,a=[];let c=0;for(const l of e)l.endColumn<=s||l.startColumn>=r||(a[c++]=new n(Math.max(1,l.startColumn-s+1),Math.min(o+1,l.endColumn-s+1),l.className,l.type));return a}static filter(e,t,i,s){if(0===e.length)return[];const r=[];let o=0;for(let a=0,c=e.length;a<c;a++){const c=e[a],l=c.range;if(l.endLineNumber<t||l.startLineNumber>t)continue;if(l.isEmpty()&&(0===c.type||3===c.type))continue;const h=l.startLineNumber===t?l.startColumn:i,d=l.endLineNumber===t?l.endColumn:s;r[o++]=new n(h,d,c.inlineClassName,c.type)}return r}static _typeCompare(e,t){const i=[2,0,1,3];return i[e]-i[t]}static compare(e,t){if(e.startColumn!==t.startColumn)return e.startColumn-t.startColumn;if(e.endColumn!==t.endColumn)return e.endColumn-t.endColumn;const i=n._typeCompare(e.type,t.type);return 0!==i?i:e.className!==t.className?e.className<t.className?-1:1:0}}class r{constructor(e,t,i,s){this.startOffset=e,this.endOffset=t,this.className=i,this.metadata=s}}class o{constructor(){this.stopOffsets=[],this.classNames=[],this.metadata=[],this.count=0}static _metadata(e){let t=0;for(let i=0,s=e.length;i<s;i++)t|=e[i];return t}consumeLowerThan(e,t,i){for(;this.count>0&&this.stopOffsets[0]<e;){let e=0;for(;e+1<this.count&&this.stopOffsets[e]===this.stopOffsets[e+1];)e++;i.push(new r(t,this.stopOffsets[e],this.classNames.join(" "),o._metadata(this.metadata))),t=this.stopOffsets[e]+1,this.stopOffsets.splice(0,e+1),this.classNames.splice(0,e+1),this.metadata.splice(0,e+1),this.count-=e+1}return this.count>0&&t<e&&(i.push(new r(t,e-1,this.classNames.join(" "),o._metadata(this.metadata))),t=e),t}insert(e,t,i){if(0===this.count||this.stopOffsets[this.count-1]<=e)this.stopOffsets.push(e),this.classNames.push(t),this.metadata.push(i);else for(let s=0;s<this.count;s++)if(this.stopOffsets[s]>=e){this.stopOffsets.splice(s,0,e),this.classNames.splice(s,0,t),this.metadata.splice(s,0,i);break}this.count++}}class a{static normalize(e,t){if(0===t.length)return[];const i=[],n=new o;let r=0;for(let o=0,a=t.length;o<a;o++){const a=t[o];let c=a.startColumn,l=a.endColumn;const h=a.className,d=1===a.type?2:2===a.type?4:0;if(c>1){const t=e.charCodeAt(c-2);s.pc(t)&&c--}if(l>1){const t=e.charCodeAt(l-2);s.pc(t)&&l--}const u=c-1,g=l-2;r=n.consumeLowerThan(u,r,i),0===n.count&&(r=u),n.insert(g,h,d)}return n.consumeLowerThan(1073741824,r,i),i}}},25533:(e,t,i)=>{"use strict";i.d(t,{YagrPlugin:()=>s});const s={type:"yagr",renderer:i(59284).lazy((()=>Promise.all([i.e(1836),i.e(8593)]).then(i.bind(i,81836))))}},25689:(e,t,i)=>{"use strict";i.d(t,{L:()=>n});var s,n,r=i(10350);!function(e){e.isThemeColor=function(e){return e&&"object"===typeof e&&"string"===typeof e.id}}(s||(s={})),function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9-]+",e.iconModifierExpression="~[A-Za-z]+",e.iconNameCharacter="[A-Za-z0-9~-]";const t=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function i(e){const s=t.exec(e.id);if(!s)return i(r.W.error);const[,n,o]=s,a=["codicon","codicon-"+n];return o&&a.push("codicon-modifier-"+o.substring(1)),a}e.asClassNameArray=i,e.asClassName=function(e){return i(e).join(" ")},e.asCSSSelector=function(e){return"."+i(e).join(".")},e.isThemeIcon=function(e){return e&&"object"===typeof e&&"string"===typeof e.id&&("undefined"===typeof e.color||s.isThemeColor(e.color))};const n=new RegExp(`^\\$\\((${e.iconNameExpression}(?:${e.iconModifierExpression})?)\\)$`);e.fromString=function(e){const t=n.exec(e);if(!t)return;const[,i]=t;return{id:i}},e.fromId=function(e){return{id:e}},e.modify=function(e,t){let i=e.id;const s=i.lastIndexOf("~");return-1!==s&&(i=i.substring(0,s)),t&&(i=`${i}~${t}`),{id:i}},e.getModifier=function(e){const t=e.id.lastIndexOf("~");if(-1!==t)return e.id.substring(t+1)},e.isEqual=function(e,t){return e.id===t.id&&e.color?.id===t.color?.id}}(n||(n={}))},25783:(e,t,i)=>{e.exports=function(){const e=i(94297),t=[{length:4,reverse:!0},{length:2,reverse:!0},{length:2,reverse:!0},{length:2,reverse:!1},{length:6,reverse:!1}];function s(i){let s=0;const n=[],r=i.$binary?atob(i.$value):i.$value;return t.forEach((function(t){const i=r.substr(s,t.length).split(e.EMPTY_STRING).map((function(t){return e.toPaddedHex(t.charCodeAt(0),2)}));s+=t.length,t.reverse&&i.reverse(),n.push(i.join(e.EMPTY_STRING))})),n.join("-")}return s.isScalar=!0,s}},25791:(e,t,i)=>{"use strict";i.d(t,{I:()=>n});var s=i(36921);class n extends s.LN{constructor(e){super(),this._getContext=e}runAction(e,t){const i=this._getContext();return super.runAction(e,i)}}},25890:(e,t,i)=>{"use strict";function s(e,t=0){return e[e.length-(1+t)]}function n(e){if(0===e.length)throw new Error("Invalid tail call");return[e.slice(0,e.length-1),e[e.length-1]]}function r(e,t,i=(e,t)=>e===t){if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(let s=0,n=e.length;s<n;s++)if(!i(e[s],t[s]))return!1;return!0}function o(e,t){const i=e.length-1;t<i&&(e[t]=e[i]),e.pop()}function a(e,t,i){return function(e,t){let i=0,s=e-1;for(;i<=s;){const e=(i+s)/2|0,n=t(e);if(n<0)i=e+1;else{if(!(n>0))return e;s=e-1}}return-(i+1)}(e.length,(s=>i(e[s],t)))}function c(e,t,i){if((e|=0)>=t.length)throw new TypeError("invalid index");const s=t[Math.floor(t.length*Math.random())],n=[],r=[],o=[];for(const a of t){const e=i(a,s);e<0?n.push(a):e>0?r.push(a):o.push(a)}return e<n.length?c(e,n,i):e<n.length+o.length?o[0]:c(e-(n.length+o.length),r,i)}function l(e,t){const i=[];let s;for(const n of e.slice(0).sort(t))s&&0===t(s[0],n)?s.push(n):(s=[n],i.push(s));return i}function*h(e,t){let i,s;for(const n of e)void 0!==s&&t(s,n)?i.push(n):(i&&(yield i),i=[n]),s=n;i&&(yield i)}function d(e,t){for(let i=0;i<=e.length;i++)t(0===i?void 0:e[i-1],i===e.length?void 0:e[i])}function u(e,t){for(let i=0;i<e.length;i++)t(0===i?void 0:e[i-1],e[i],i+1===e.length?void 0:e[i+1])}function g(e){return e.filter((e=>!!e))}function p(e){let t=0;for(let i=0;i<e.length;i++)e[i]&&(e[t]=e[i],t+=1);e.length=t}function m(e){return!Array.isArray(e)||0===e.length}function f(e){return Array.isArray(e)&&e.length>0}function _(e,t=e=>e){const i=new Set;return e.filter((e=>{const s=t(e);return!i.has(s)&&(i.add(s),!0)}))}function v(e,t){return e.length>0?e[0]:t}function C(e,t){let i="number"===typeof t?e:0;"number"===typeof t?i=e:(i=0,t=e);const s=[];if(i<=t)for(let n=i;n<t;n++)s.push(n);else for(let n=i;n>t;n--)s.push(n);return s}function E(e,t,i){const s=e.slice(0,t),n=e.slice(t);return s.concat(i,n)}function b(e,t){const i=e.indexOf(t);i>-1&&(e.splice(i,1),e.unshift(t))}function S(e,t){const i=e.indexOf(t);i>-1&&(e.splice(i,1),e.push(t))}function y(e,t){for(const i of t)e.push(i)}function w(e){return Array.isArray(e)?e:[e]}function R(e,t,i,s){const n=L(e,t);let r=e.splice(n,i);return void 0===r&&(r=[]),function(e,t,i){const s=L(e,t),n=e.length,r=i.length;e.length=n+r;for(let o=n-1;o>=s;o--)e[o+r]=e[o];for(let o=0;o<r;o++)e[o+s]=i[o]}(e,n,s),r}function L(e,t){return t<0?Math.max(t+e.length,0):Math.min(t,e.length)}var T;function x(e,t){return(i,s)=>t(e(i),e(s))}function k(...e){return(t,i)=>{for(const s of e){const e=s(t,i);if(!T.isNeitherLessOrGreaterThan(e))return e}return T.neitherLessOrGreaterThan}}i.d(t,{$z:()=>l,Ct:()=>m,E4:()=>y,EI:()=>f,El:()=>a,Fy:()=>v,Hw:()=>I,RT:()=>s,SK:()=>p,SO:()=>c,TS:()=>N,U9:()=>A,UH:()=>o,V4:()=>R,VE:()=>x,Yc:()=>g,_A:()=>b,_j:()=>w,aI:()=>r,bS:()=>n,c1:()=>D,dM:()=>_,j3:()=>O,kj:()=>u,n:()=>h,nH:()=>k,nK:()=>E,pN:()=>d,r7:()=>S,t9:()=>M,y1:()=>C}),function(e){e.isLessThan=function(e){return e<0},e.isLessThanOrEqual=function(e){return e<=0},e.isGreaterThan=function(e){return e>0},e.isNeitherLessOrGreaterThan=function(e){return 0===e},e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0}(T||(T={}));const A=(e,t)=>e-t,N=(e,t)=>A(e?1:0,t?1:0);function I(e){return(t,i)=>-e(t,i)}class O{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t<this.items.length&&e(this.items[t]);)t++;const i=t===this.firstIdx?null:this.items.slice(this.firstIdx,t);return this.firstIdx=t,i}takeFromEndWhile(e){let t=this.lastIdx;for(;t>=0&&e(this.items[t]);)t--;const i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(0!==this.length)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class D{static{this.empty=new D((e=>{}))}constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate((t=>(e.push(t),!0))),e}filter(e){return new D((t=>this.iterate((i=>!e(i)||t(i)))))}map(e){return new D((t=>this.iterate((i=>t(e(i))))))}findLast(e){let t;return this.iterate((i=>(e(i)&&(t=i),!0))),t}findLastMaxBy(e){let t,i=!0;return this.iterate((s=>((i||T.isGreaterThan(e(s,t)))&&(i=!1,t=s),!0))),t}}class M{constructor(e){this._indexMap=e}static createSortPermutation(e,t){const i=Array.from(e.keys()).sort(((i,s)=>t(e[i],e[s])));return new M(i)}apply(e){return e.map(((t,i)=>e[this._indexMap[i]]))}inverse(){const e=this._indexMap.slice();for(let t=0;t<this._indexMap.length;t++)e[this._indexMap[t]]=t;return new M(e)}}},25893:(e,t,i)=>{"use strict";function s(e,t){const i=e;"number"!==typeof i.vscodeWindowId&&Object.defineProperty(i,"vscodeWindowId",{get:()=>t})}i.d(t,{G:()=>n,y:()=>s});const n=window},25922:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>i.e(7148).then(i.bind(i,27148))})},25982:(e,t,i)=>{"use strict";i.d(t,{x:()=>s});class s{static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return 0!==(1024&e)}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(16744448&e)>>>15}static getBackground(e){return(4278190080&e)>>>24}static getClassNameFromMetadata(e){let t="mtk"+this.getForeground(e);const i=this.getFontStyle(e);return 1&i&&(t+=" mtki"),2&i&&(t+=" mtkb"),4&i&&(t+=" mtku"),8&i&&(t+=" mtks"),t}static getInlineStyleFromMetadata(e,t){const i=this.getForeground(e),s=this.getFontStyle(e);let n=`color: ${t[i]};`;1&s&&(n+="font-style: italic;"),2&s&&(n+="font-weight: bold;");let r="";return 4&s&&(r+=" underline"),8&s&&(r+=" line-through"),r&&(n+=`text-decoration:${r};`),n}static getPresentationFromMetadata(e){const t=this.getForeground(e),i=this.getFontStyle(e);return{foreground:t,italic:Boolean(1&i),bold:Boolean(2&i),underline:Boolean(4&i),strikethrough:Boolean(8&i)}}}},26195:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var s,n=i(59284);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},r.apply(null,arguments)}const o=function(e){return n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),s||(s=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.03 10.53a.75.75 0 01-1.06 0L8 6.56l-3.97 3.97a.75.75 0 11-1.06-1.06l4.5-4.5a.75.75 0 011.06 0l4.5 4.5a.75.75 0 010 1.06",clipRule:"evenodd"})))}},26437:e=>{e.exports=function(e,t,i){return e===e&&(void 0!==i&&(e=e<=i?e:i),void 0!==t&&(e=e>=t?e:t)),e}},26486:(e,t,i)=>{"use strict";i.d(t,{Io:()=>a,J3:()=>r,Ld:()=>o,Th:()=>l});var s=i(42522),n=i(58925);const r="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";const o=function(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const i of r)e.indexOf(i)>=0||(t+="\\"+i);return t+="\\s]+)",new RegExp(t,"g")}();function a(e){let t=o;if(e&&e instanceof RegExp)if(e.global)t=e;else{let i="g";e.ignoreCase&&(i+="i"),e.multiline&&(i+="m"),e.unicode&&(i+="u"),t=new RegExp(e.source,i)}return t.lastIndex=0,t}const c=new n.w;function l(e,t,i,n,r){if(t=a(t),r||(r=s.f.first(c)),i.length>r.maxLen){let s=e-r.maxLen/2;return s<0?s=0:n+=s,l(e,t,i=i.substring(s,e+r.maxLen/2),n,r)}const o=Date.now(),d=e-1-n;let u=-1,g=null;for(let s=1;!(Date.now()-o>=r.timeBudget);s++){const e=d-r.windowSize*s;t.lastIndex=Math.max(0,e);const n=h(t,i,d,u);if(!n&&g)break;if(g=n,e<=0)break;u=e}if(g){const e={word:g[0],startColumn:n+1+g.index,endColumn:n+1+g.index+g[0].length};return t.lastIndex=0,e}return null}function h(e,t,i,s){let n;for(;n=e.exec(t);){const t=n.index||0;if(t<=i&&e.lastIndex>=i)return n;if(s>0&&t>s)return null}return null}c.unshift({maxLen:1e3,windowSize:15,timeBudget:150})},26656:(e,t,i)=>{"use strict";i.d(t,{Th:()=>m,z8:()=>f});var s=i(78209),n=i(64383),r=i(75326),o=i(79400),a=i(64829),c=i(81674),l=i(89403);function h(e){return e.toString()}class d{static create(e,t){const i=e.getAlternativeVersionId(),s=p(e);return new d(i,i,s,s,t,t,[])}constructor(e,t,i,s,n,r,o){this.beforeVersionId=e,this.afterVersionId=t,this.beforeEOL=i,this.afterEOL=s,this.beforeCursorState=n,this.afterCursorState=r,this.changes=o}append(e,t,i,s,n){t.length>0&&(this.changes=(0,a.x)(this.changes,t)),this.afterEOL=i,this.afterVersionId=s,this.afterCursorState=n}static _writeSelectionsSize(e){return 4+16*(e?e.length:0)}static _writeSelections(e,t,i){if(c.Sw(e,t?t.length:0,i),i+=4,t)for(const s of t)c.Sw(e,s.selectionStartLineNumber,i),i+=4,c.Sw(e,s.selectionStartColumn,i),i+=4,c.Sw(e,s.positionLineNumber,i),i+=4,c.Sw(e,s.positionColumn,i),i+=4;return i}static _readSelections(e,t,i){const s=c.bb(e,t);t+=4;for(let n=0;n<s;n++){const s=c.bb(e,t);t+=4;const n=c.bb(e,t);t+=4;const o=c.bb(e,t);t+=4;const a=c.bb(e,t);t+=4,i.push(new r.L(s,n,o,a))}return t}serialize(){let e=10+d._writeSelectionsSize(this.beforeCursorState)+d._writeSelectionsSize(this.afterCursorState)+4;for(const s of this.changes)e+=s.writeSize();const t=new Uint8Array(e);let i=0;c.Sw(t,this.beforeVersionId,i),i+=4,c.Sw(t,this.afterVersionId,i),i+=4,c.Gs(t,this.beforeEOL,i),i+=1,c.Gs(t,this.afterEOL,i),i+=1,i=d._writeSelections(t,this.beforeCursorState,i),i=d._writeSelections(t,this.afterCursorState,i),c.Sw(t,this.changes.length,i),i+=4;for(const s of this.changes)i=s.write(t,i);return t.buffer}static deserialize(e){const t=new Uint8Array(e);let i=0;const s=c.bb(t,i);i+=4;const n=c.bb(t,i);i+=4;const r=c.pJ(t,i);i+=1;const o=c.pJ(t,i);i+=1;const l=[];i=d._readSelections(t,i,l);const h=[];i=d._readSelections(t,i,h);const u=c.bb(t,i);i+=4;const g=[];for(let c=0;c<u;c++)i=a.k.read(t,i,g);return new d(s,n,r,o,l,h,g)}}class u{get type(){return 0}get resource(){return o.r.isUri(this.model)?this.model:this.model.uri}constructor(e,t,i,s){this.label=e,this.code=t,this.model=i,this._data=d.create(i,s)}toString(){return(this._data instanceof d?this._data:d.deserialize(this._data)).changes.map((e=>e.toString())).join(", ")}matchesResource(e){return(o.r.isUri(this.model)?this.model:this.model.uri).toString()===e.toString()}setModel(e){this.model=e}canAppend(e){return this.model===e&&this._data instanceof d}append(e,t,i,s,n){this._data instanceof d&&this._data.append(e,t,i,s,n)}close(){this._data instanceof d&&(this._data=this._data.serialize())}open(){this._data instanceof d||(this._data=d.deserialize(this._data))}undo(){if(o.r.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof d&&(this._data=this._data.serialize());const e=d.deserialize(this._data);this.model._applyUndo(e.changes,e.beforeEOL,e.beforeVersionId,e.beforeCursorState)}redo(){if(o.r.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof d&&(this._data=this._data.serialize());const e=d.deserialize(this._data);this.model._applyRedo(e.changes,e.afterEOL,e.afterVersionId,e.afterCursorState)}heapSize(){return this._data instanceof d&&(this._data=this._data.serialize()),this._data.byteLength+168}}class g{get resources(){return this._editStackElementsArr.map((e=>e.resource))}constructor(e,t,i){this.label=e,this.code=t,this.type=1,this._isOpen=!0,this._editStackElementsArr=i.slice(0),this._editStackElementsMap=new Map;for(const s of this._editStackElementsArr){const e=h(s.resource);this._editStackElementsMap.set(e,s)}this._delegate=null}prepareUndoRedo(){if(this._delegate)return this._delegate.prepareUndoRedo(this)}matchesResource(e){const t=h(e);return this._editStackElementsMap.has(t)}setModel(e){const t=h(o.r.isUri(e)?e:e.uri);this._editStackElementsMap.has(t)&&this._editStackElementsMap.get(t).setModel(e)}canAppend(e){if(!this._isOpen)return!1;const t=h(e.uri);if(this._editStackElementsMap.has(t)){return this._editStackElementsMap.get(t).canAppend(e)}return!1}append(e,t,i,s,n){const r=h(e.uri);this._editStackElementsMap.get(r).append(e,t,i,s,n)}close(){this._isOpen=!1}open(){}undo(){this._isOpen=!1;for(const e of this._editStackElementsArr)e.undo()}redo(){for(const e of this._editStackElementsArr)e.redo()}heapSize(e){const t=h(e);if(this._editStackElementsMap.has(t)){return this._editStackElementsMap.get(t).heapSize()}return 0}split(){return this._editStackElementsArr}toString(){const e=[];for(const t of this._editStackElementsArr)e.push(`${(0,l.P8)(t.resource)}: ${t}`);return`{${e.join(", ")}}`}}function p(e){return"\n"===e.getEOL()?0:1}function m(e){return!!e&&(e instanceof u||e instanceof g)}class f{constructor(e,t){this._model=e,this._undoRedoService=t}pushStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);m(e)&&e.close()}popStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);m(e)&&e.open()}clear(){this._undoRedoService.removeElements(this._model.uri)}_getOrCreateEditStackElement(e,t){const i=this._undoRedoService.getLastElement(this._model.uri);if(m(i)&&i.canAppend(this._model))return i;const n=new u(s.kg("edit","Typing"),"undoredo.textBufferEdit",this._model,e);return this._undoRedoService.pushElement(n,t),n}pushEOL(e){const t=this._getOrCreateEditStackElement(null,void 0);this._model.setEOL(e),t.append(this._model,[],p(this._model),this._model.getAlternativeVersionId(),null)}pushEditOperation(e,t,i,s){const n=this._getOrCreateEditStackElement(e,s),r=this._model.applyEdits(t,!0),o=f._computeCursorState(i,r),a=r.map(((e,t)=>({index:t,textChange:e.textChange})));return a.sort(((e,t)=>e.textChange.oldPosition===t.textChange.oldPosition?e.index-t.index:e.textChange.oldPosition-t.textChange.oldPosition)),n.append(this._model,a.map((e=>e.textChange)),p(this._model),this._model.getAlternativeVersionId(),o),o}static _computeCursorState(e,t){try{return e?e(t):null}catch(i){return(0,n.dz)(i),null}}}},26685:(e,t,i)=>{"use strict";i.d(t,{AO:()=>w,Dr:()=>R,Hs:()=>k,K4:()=>C,Ls:()=>y,UN:()=>T,YA:()=>L,dU:()=>_,ey:()=>B,h0:()=>x,is:()=>b,kr:()=>S,oi:()=>E,sx:()=>v});var s=i(64383),n=i(91508),r=i(15092),o=i(7936),a=i(71964),c=i(32799),l=i(81782),h=i(36677),d=i(83069),u=i(38566),g=i(17469),p=i(12296),m=i(82365),f=i(63346);class _{static getEdits(e,t,i,s,n){if(!n&&this._isAutoIndentType(e,t,i)){const n=[];for(const o of i){const i=this._findActualIndentationForSelection(e,t,o,s);if(null===i)return;n.push({selection:o,indentation:i})}const r=E.getAutoClosingPairClose(e,t,i,s,!1);return this._getIndentationAndAutoClosingPairEdits(e,t,n,s,r)}}static _isAutoIndentType(e,t,i){if(e.autoIndent<4)return!1;for(let s=0,n=i.length;s<n;s++)if(!t.tokenization.isCheapToTokenize(i[s].getEndPosition().lineNumber))return!1;return!0}static _findActualIndentationForSelection(e,t,i,s){const n=(0,m._t)(e,t,i,s,{shiftIndent:t=>U(e,t),unshiftIndent:t=>H(e,t)},e.languageConfigurationService);if(null===n)return null;const r=(0,g.Cw)(t,i.startLineNumber,i.startColumn);return n===e.normalizeIndentation(r)?null:n}static _getIndentationAndAutoClosingPairEdits(e,t,i,s,n){const r=i.map((({selection:i,indentation:r})=>{if(null!==n){const o=this._getEditFromIndentationAndSelection(e,t,r,i,s,!1);return new N(o,i,s,n)}{const n=this._getEditFromIndentationAndSelection(e,t,r,i,s,!0);return F(n.range,n.text,!1)}}));return new c.vY(4,r,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}static _getEditFromIndentationAndSelection(e,t,i,s,n,r=!0){const o=s.startLineNumber,a=t.getLineFirstNonWhitespaceColumn(o);let c=e.normalizeIndentation(i);if(0!==a){c+=t.getLineContent(o).substring(a-1,s.startColumn-1)}c+=r?n:"";return{range:new h.Q(o,1,s.endLineNumber,s.endColumn),text:c}}}class v{static getEdits(e,t,i,s,n,r){if(P(t,i,s,n,r))return this._runAutoClosingOvertype(e,s,r)}static _runAutoClosingOvertype(e,t,i){const s=[];for(let n=0,o=t.length;n<o;n++){const e=t[n].getPosition(),o=new h.Q(e.lineNumber,e.column,e.lineNumber,e.column+1);s[n]=new r.iu(o,i)}return new c.vY(4,s,{shouldPushStackElementBefore:O(e,4),shouldPushStackElementAfter:!1})}}class C{static getEdits(e,t,i,s,n){if(P(e,t,i,s,n)){const e=i.map((e=>new r.iu(new h.Q(e.positionLineNumber,e.positionColumn,e.positionLineNumber,e.positionColumn+1),"",!1)));return new c.vY(4,e,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}}}class E{static getEdits(e,t,i,s,n,r){if(!r){const r=this.getAutoClosingPairClose(e,t,i,s,n);if(null!==r)return this._runAutoClosingOpenCharType(i,s,n,r)}}static _runAutoClosingOpenCharType(e,t,i,s){const n=[];for(let r=0,o=e.length;r<o;r++){const o=e[r];n[r]=new A(o,t,!i,s)}return new c.vY(4,n,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}static getAutoClosingPairClose(e,t,i,s,n){for(const c of i)if(!c.isEmpty())return null;const r=i.map((e=>{const t=e.getPosition();return n?{lineNumber:t.lineNumber,beforeColumn:t.column-s.length,afterColumn:t.column}:{lineNumber:t.lineNumber,beforeColumn:t.column,afterColumn:t.column}})),o=this._findAutoClosingPairOpen(e,t,r.map((e=>new d.y(e.lineNumber,e.beforeColumn))),s);if(!o)return null;let a,h;if((0,c.vG)(s))a=e.autoClosingQuotes,h=e.shouldAutoCloseBefore.quote;else{!!e.blockCommentStartToken&&o.open.includes(e.blockCommentStartToken)?(a=e.autoClosingComments,h=e.shouldAutoCloseBefore.comment):(a=e.autoClosingBrackets,h=e.shouldAutoCloseBefore.bracket)}if("never"===a)return null;const u=this._findContainedAutoClosingPair(e,o),g=u?u.close:"";let m=!0;for(const c of r){const{lineNumber:i,beforeColumn:n,afterColumn:r}=c,d=t.getLineContent(i),u=d.substring(0,n-1),f=d.substring(r-1);if(f.startsWith(g)||(m=!1),f.length>0){const t=f.charAt(0);if(!this._isBeforeClosingBrace(e,f)&&!h(t))return null}if(1===o.open.length&&("'"===s||'"'===s)&&"always"!==a){const t=(0,l.i)(e.wordSeparators,[]);if(u.length>0){const e=u.charCodeAt(u.length-1);if(0===t.get(e))return null}}if(!t.tokenization.isCheapToTokenize(i))return null;t.tokenization.forceTokenization(i);const _=t.tokenization.getLineTokens(i),v=(0,p.BQ)(_,n-1);if(!o.shouldAutoClose(v,n-v.firstCharOffset))return null;const C=o.findNeutralCharacter();if(C){const e=t.tokenization.getTokenTypeIfInsertingCharacter(i,n,C);if(!o.isOK(e))return null}}return m?o.close.substring(0,o.close.length-g.length):o.close}static _findContainedAutoClosingPair(e,t){if(t.open.length<=1)return null;const i=t.close.charAt(t.close.length-1),s=e.autoClosingPairs.autoClosingPairsCloseByEnd.get(i)||[];let n=null;for(const r of s)r.open!==t.open&&t.open.includes(r.open)&&t.close.endsWith(r.close)&&(!n||r.open.length>n.open.length)&&(n=r);return n}static _findAutoClosingPairOpen(e,t,i,s){const n=e.autoClosingPairs.autoClosingPairsOpenByEnd.get(s);if(!n)return null;let r=null;for(const o of n)if(null===r||o.open.length>r.open.length){let e=!0;for(const n of i){if(t.getValueInRange(new h.Q(n.lineNumber,n.column-o.open.length+1,n.lineNumber,n.column))+s!==o.open){e=!1;break}}e&&(r=o)}return r}static _isBeforeClosingBrace(e,t){const i=t.charAt(0),s=e.autoClosingPairs.autoClosingPairsOpenByStart.get(i)||[],n=e.autoClosingPairs.autoClosingPairsCloseByStart.get(i)||[],r=s.some((e=>t.startsWith(e.open))),o=n.some((e=>t.startsWith(e.close)));return!r&&o}}class b{static getEdits(e,t,i,s,n){if(!n&&this._isSurroundSelectionType(e,t,i,s))return this._runSurroundSelectionType(e,i,s)}static _runSurroundSelectionType(e,t,i){const s=[];for(let n=0,r=t.length;n<r;n++){const r=t[n],o=e.surroundingPairs[i];s[n]=new a.i(r,i,o)}return new c.vY(0,s,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _isSurroundSelectionType(e,t,i,s){if(!B(e,s)||!e.surroundingPairs.hasOwnProperty(s))return!1;const n=(0,c.vG)(s);for(const r of i){if(r.isEmpty())return!1;let e=!0;for(let i=r.startLineNumber;i<=r.endLineNumber;i++){const s=t.getLineContent(i),n=i===r.startLineNumber?r.startColumn-1:0,o=i===r.endLineNumber?r.endColumn-1:s.length,a=s.substring(n,o);if(/[^ \t]/.test(a)){e=!1;break}}if(e)return!1;if(n&&r.startLineNumber===r.endLineNumber&&r.startColumn+1===r.endColumn){const e=t.getValueInRange(r);if((0,c.vG)(e))return!1}}return!0}}class S{static getEdits(e,t,i,s,n,r){if(!r&&this._isTypeInterceptorElectricChar(t,i,s)){const r=this._typeInterceptorElectricChar(e,t,i,s[0],n);if(r)return r}}static _isTypeInterceptorElectricChar(e,t,i){return!(1!==i.length||!t.tokenization.isCheapToTokenize(i[0].getEndPosition().lineNumber))}static _typeInterceptorElectricChar(e,t,i,o,a){if(!t.electricChars.hasOwnProperty(a)||!o.isEmpty())return null;const l=o.getPosition();i.tokenization.forceTokenization(l.lineNumber);const d=i.tokenization.getLineTokens(l.lineNumber);let u;try{u=t.onElectricCharacter(a,d,l.column)}catch(g){return(0,s.dz)(g),null}if(!u)return null;if(u.matchOpenBracket){const s=(d.getLineContent()+a).lastIndexOf(u.matchOpenBracket)+1,o=i.bracketPairs.findMatchingBracketUp(u.matchOpenBracket,{lineNumber:l.lineNumber,column:s},500);if(o){if(o.startLineNumber===l.lineNumber)return null;const s=i.getLineContent(o.startLineNumber),d=n.UU(s),u=t.normalizeIndentation(d),g=i.getLineContent(l.lineNumber),p=i.getLineFirstNonWhitespaceColumn(l.lineNumber)||l.column,m=u+g.substring(p-1,l.column-1)+a,f=new h.Q(l.lineNumber,1,l.lineNumber,l.column),_=new r.iu(f,m);return new c.vY(I(m,e),[_],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!0})}}return null}}class y{static getEdits(e,t,i){const s=[];for(let o=0,a=t.length;o<a;o++)s[o]=new r.iu(t[o],i);const n=I(i,e);return new c.vY(n,s,{shouldPushStackElementBefore:O(e,n),shouldPushStackElementAfter:!1})}}class w{static getEdits(e,t,i,s,n){if(!n&&"\n"===s){const s=[];for(let n=0,r=i.length;n<r;n++)s[n]=this._enter(e,t,!1,i[n]);return new c.vY(4,s,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}}static _enter(e,t,i,s){if(0===e.autoIndent)return F(s,"\n",i);if(!t.tokenization.isCheapToTokenize(s.getStartPosition().lineNumber)||1===e.autoIndent){const r=t.getLineContent(s.startLineNumber),o=n.UU(r).substring(0,s.startColumn-1);return F(s,"\n"+e.normalizeIndentation(o),i)}const o=(0,f.h)(e.autoIndent,t,s,e.languageConfigurationService);if(o){if(o.indentAction===u.l.None)return F(s,"\n"+e.normalizeIndentation(o.indentation+o.appendText),i);if(o.indentAction===u.l.Indent)return F(s,"\n"+e.normalizeIndentation(o.indentation+o.appendText),i);if(o.indentAction===u.l.IndentOutdent){const t=e.normalizeIndentation(o.indentation),n=e.normalizeIndentation(o.indentation+o.appendText),a="\n"+n+"\n"+t;return i?new r.q2(s,a,!0):new r.iP(s,a,-1,n.length-t.length,!0)}if(o.indentAction===u.l.Outdent){const t=H(e,o.indentation);return F(s,"\n"+e.normalizeIndentation(t+o.appendText),i)}}const a=t.getLineContent(s.startLineNumber),c=n.UU(a).substring(0,s.startColumn-1);if(e.autoIndent>=4){const o=(0,m.MU)(e.autoIndent,t,s,{unshiftIndent:t=>H(e,t),shiftIndent:t=>U(e,t),normalizeIndentation:t=>e.normalizeIndentation(t)},e.languageConfigurationService);if(o){let a=e.visibleColumnFromColumn(t,s.getEndPosition());const c=s.endColumn,l=t.getLineContent(s.endLineNumber),h=n.HG(l);if(s=h>=0?s.setEndPosition(s.endLineNumber,Math.max(s.endColumn,h+1)):s.setEndPosition(s.endLineNumber,t.getLineMaxColumn(s.endLineNumber)),i)return new r.q2(s,"\n"+e.normalizeIndentation(o.afterEnter),!0);{let t=0;return c<=h+1&&(e.insertSpaces||(a=Math.ceil(a/e.indentSize)),t=Math.min(a+1-e.normalizeIndentation(o.afterEnter).length-1,0)),new r.iP(s,"\n"+e.normalizeIndentation(o.afterEnter),0,t,!0)}}}return F(s,"\n"+e.normalizeIndentation(c),i)}static lineInsertBefore(e,t,i){if(null===t||null===i)return[];const s=[];for(let n=0,o=i.length;n<o;n++){let o=i[n].positionLineNumber;if(1===o)s[n]=new r.q2(new h.Q(1,1,1,1),"\n");else{o--;const i=t.getLineMaxColumn(o);s[n]=this._enter(e,t,!1,new h.Q(o,i,o,i))}}return s}static lineInsertAfter(e,t,i){if(null===t||null===i)return[];const s=[];for(let n=0,r=i.length;n<r;n++){const r=i[n].positionLineNumber,o=t.getLineMaxColumn(r);s[n]=this._enter(e,t,!1,new h.Q(r,o,r,o))}return s}static lineBreakInsert(e,t,i){const s=[];for(let n=0,r=i.length;n<r;n++)s[n]=this._enter(e,t,!0,i[n]);return s}}class R{static getEdits(e,t,i,s,n,r){const o=this._distributePasteToCursors(e,i,s,n,r);return o?(i=i.sort(h.Q.compareRangesUsingStarts),this._distributedPaste(e,t,i,o)):this._simplePaste(e,t,i,s,n)}static _distributePasteToCursors(e,t,i,s,r){if(s)return null;if(1===t.length)return null;if(r&&r.length===t.length)return r;if("spread"===e.multiCursorPaste){10===i.charCodeAt(i.length-1)&&(i=i.substring(0,i.length-1)),13===i.charCodeAt(i.length-1)&&(i=i.substring(0,i.length-1));const e=n.uz(i);if(e.length===t.length)return e}return null}static _distributedPaste(e,t,i,s){const n=[];for(let o=0,a=i.length;o<a;o++)n[o]=new r.iu(i[o],s[o]);return new c.vY(0,n,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _simplePaste(e,t,i,s,n){const o=[];for(let a=0,c=i.length;a<c;a++){const e=i[a],t=e.getPosition();if(n&&!e.isEmpty()&&(n=!1),n&&s.indexOf("\n")!==s.length-1&&(n=!1),n){const i=new h.Q(t.lineNumber,1,t.lineNumber,1);o[a]=new r.ui(i,s,e,!0)}else o[a]=new r.iu(e,s)}return new c.vY(0,o,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}}class L{static getEdits(e,t,i,s,n,r,o,a){const l=s.map((e=>this._compositionType(i,e,n,r,o,a)));return new c.vY(4,l,{shouldPushStackElementBefore:O(e,4),shouldPushStackElementAfter:!1})}static _compositionType(e,t,i,s,n,o){if(!t.isEmpty())return null;const a=t.getPosition(),c=Math.max(1,a.column-s),l=Math.min(e.getLineMaxColumn(a.lineNumber),a.column+n),d=new h.Q(a.lineNumber,c,a.lineNumber,l);return e.getValueInRange(d)===i&&0===o?null:new r.iP(d,i,0,o)}}class T{static getEdits(e,t,i){const s=[];for(let o=0,a=t.length;o<a;o++)s[o]=new r.iu(t[o],i);const n=I(i,e);return new c.vY(n,s,{shouldPushStackElementBefore:O(e,n),shouldPushStackElementAfter:!1})}}class x{static getCommands(e,t,i){const s=[];for(let n=0,a=i.length;n<a;n++){const a=i[n];if(a.isEmpty()){const i=t.getLineContent(a.startLineNumber);if(/^\s*$/.test(i)&&t.tokenization.isCheapToTokenize(a.startLineNumber)){let o=this._goodIndentForLine(e,t,a.startLineNumber);o=o||"\t";const c=e.normalizeIndentation(o);if(!i.startsWith(c)){s[n]=new r.iu(new h.Q(a.startLineNumber,1,a.startLineNumber,i.length+1),c,!0);continue}}s[n]=this._replaceJumpToNextIndent(e,t,a,!0)}else{if(a.startLineNumber===a.endLineNumber){const i=t.getLineMaxColumn(a.startLineNumber);if(1!==a.startColumn||a.endColumn!==i){s[n]=this._replaceJumpToNextIndent(e,t,a,!1);continue}}s[n]=new o.Y(a,{isUnshift:!1,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent},e.languageConfigurationService)}}return s}static _goodIndentForLine(e,t,i){let s=null,r="";const o=(0,m.vn)(e.autoIndent,t,i,!1,e.languageConfigurationService);if(o)s=o.action,r=o.indentation;else if(i>1){let s;for(s=i-1;s>=1;s--){const e=t.getLineContent(s);if(n.lT(e)>=0)break}if(s<1)return null;const o=t.getLineMaxColumn(s),a=(0,f.h)(e.autoIndent,t,new h.Q(s,o,s,o),e.languageConfigurationService);a&&(r=a.indentation+a.appendText)}return s&&(s===u.l.Indent&&(r=U(e,r)),s===u.l.Outdent&&(r=H(e,r)),r=e.normalizeIndentation(r)),r||null}static _replaceJumpToNextIndent(e,t,i,s){let n="";const o=i.getStartPosition();if(e.insertSpaces){const i=e.visibleColumnFromColumn(t,o),s=e.indentSize,r=s-i%s;for(let e=0;e<r;e++)n+=" "}else n="\t";return new r.iu(i,n,s)}}class k extends r.iP{constructor(e,t,i,s,n,r){super(e,t,i,s),this._openCharacter=n,this._closeCharacter=r,this.closeCharacterRange=null,this.enclosingRange=null}_computeCursorStateWithRange(e,t,i){return this.closeCharacterRange=new h.Q(t.startLineNumber,t.endColumn-this._closeCharacter.length,t.endLineNumber,t.endColumn),this.enclosingRange=new h.Q(t.startLineNumber,t.endColumn-this._openCharacter.length-this._closeCharacter.length,t.endLineNumber,t.endColumn),super.computeCursorState(e,i)}}class A extends k{constructor(e,t,i,s){super(e,(i?t:"")+s,0,-s.length,t,s)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return this._computeCursorStateWithRange(e,i,t)}}class N extends k{constructor(e,t,i,s){const n=i+s;super(t,n,0,i.length,i,s),this._autoIndentationEdit=e,this._autoClosingEdit={range:t,text:n}}getEditOperations(e,t){t.addTrackedEditOperation(this._autoIndentationEdit.range,this._autoIndentationEdit.text),t.addTrackedEditOperation(this._autoClosingEdit.range,this._autoClosingEdit.text)}computeCursorState(e,t){const i=t.getInverseEditOperations();if(2!==i.length)throw new Error("There should be two inverse edit operations!");const s=i[0].range,n=i[1].range,r=s.plusRange(n);return this._computeCursorStateWithRange(e,r,t)}}function I(e,t){return" "===e?5===t||6===t?6:5:4}function O(e,t){return!(!M(e)||M(t))||5!==e&&D(e)!==D(t)}function D(e){return 6===e||5===e?"space":e}function M(e){return 4===e||5===e||6===e}function P(e,t,i,s,n){if("never"===e.autoClosingOvertype)return!1;if(!e.autoClosingPairs.autoClosingPairsCloseSingleChar.has(n))return!1;for(let r=0,o=i.length;r<o;r++){const o=i[r];if(!o.isEmpty())return!1;const a=o.getPosition(),l=t.getLineContent(a.lineNumber);if(l.charAt(a.column-1)!==n)return!1;const h=(0,c.vG)(n);if(92===(a.column>2?l.charCodeAt(a.column-2):0)&&h)return!1;if("auto"===e.autoClosingOvertype){let e=!1;for(let t=0,i=s.length;t<i;t++){const i=s[t];if(a.lineNumber===i.startLineNumber&&a.column===i.startColumn){e=!0;break}}if(!e)return!1}}return!0}function F(e,t,i){return i?new r.q2(e,t,!0):new r.iu(e,t,!0)}function U(e,t,i){return i=i||1,o.Y.shiftIndent(t,t.length+i,e.tabSize,e.indentSize,e.insertSpaces)}function H(e,t,i){return i=i||1,o.Y.unshiftIndent(t,t.length+i,e.tabSize,e.indentSize,e.insertSpaces)}function B(e,t){return(0,c.vG)(t)?"quotes"===e.autoSurround||"languageDefined"===e.autoSurround:"brackets"===e.autoSurround||"languageDefined"===e.autoSurround}},26690:(e,t,i)=>{"use strict";i.d(t,{ne:()=>ie,Nd:()=>se,Jo:()=>W,WJ:()=>V,dt:()=>ne,uU:()=>oe,Tt:()=>f,yr:()=>H,O:()=>B,WP:()=>p,dE:()=>_,J1:()=>O,or:()=>g});var s=i(74320);function n(e){const t=function(e){if(r=0,a(e,c,4352),r>0)return o.subarray(0,r);if(a(e,l,4449),r>0)return o.subarray(0,r);if(a(e,h,4520),r>0)return o.subarray(0,r);if(a(e,d,12593),r)return o.subarray(0,r);if(e>=44032&&e<=55203){const t=e-44032,i=t%588,s=Math.floor(t/588),n=Math.floor(i/28),u=i%28-1;if(s<c.length?a(s,c,0):4352+s-12593<d.length&&a(4352+s,d,12593),n<l.length?a(n,l,0):4449+n-12593<d.length&&a(4449+n-12593,d,12593),u>=0&&(u<h.length?a(u,h,0):4520+u-12593<d.length&&a(4520+u-12593,d,12593)),r>0)return o.subarray(0,r)}return}(e);if(t&&t.length>0)return new Uint32Array(t)}let r=0;const o=new Uint32Array(10);function a(e,t,i){e>=i&&e<i+t.length&&function(e){if(0===e)return;o[r++]=255&e,e>>8&&(o[r++]=e>>8&255);e>>16&&(o[r++]=e>>16&255)}(t[e-i])}const c=new Uint8Array([114,82,115,101,69,102,97,113,81,116,84,100,119,87,99,122,120,118,103]),l=new Uint16Array([107,111,105,79,106,112,117,80,104,27496,28520,27752,121,110,27246,28782,27758,98,109,27757,108]),h=new Uint16Array([114,82,29810,115,30579,26483,101,102,29286,24934,29030,29798,30822,30310,26470,97,113,29809,116,84,100,119,99,122,120,118,103]),d=new Uint16Array([114,82,29810,115,30579,26483,101,69,102,29286,24934,29030,29798,30822,30310,26470,97,113,81,29809,116,84,100,119,87,99,122,120,118,103,107,111,105,79,106,112,117,80,104,27496,28520,27752,121,110,27246,28782,27758,98,109,27757,108]);var u=i(91508);function g(...e){return function(t,i){for(let s=0,n=e.length;s<n;s++){const n=e[s](t,i);if(n)return n}return null}}m.bind(void 0,!1);const p=m.bind(void 0,!0);function m(e,t,i){if(!i||i.length<t.length)return null;let s;return s=e?u.ns(i,t):0===i.indexOf(t),s?t.length>0?[{start:0,end:t.length}]:[]:null}function f(e,t){const i=t.toLowerCase().indexOf(e.toLowerCase());return-1===i?null:[{start:i,end:i+e.length}]}function _(e,t){return v(e.toLowerCase(),t.toLowerCase(),0,0)}function v(e,t,i,s){if(i===e.length)return[];if(s===t.length)return null;if(e[i]===t[s]){let n=null;return(n=v(e,t,i+1,s+1))?k({start:s,end:s+1},n):null}return v(e,t,i,s+1)}function C(e){return 97<=e&&e<=122}function E(e){return 65<=e&&e<=90}function b(e){return 48<=e&&e<=57}function S(e){return 32===e||9===e||10===e||13===e}const y=new Set;function w(e){return S(e)||y.has(e)}function R(e,t){return e===t||w(e)&&w(t)}"()[]{}<>`'\"-/;:,.?!".split("").forEach((e=>y.add(e.charCodeAt(0))));const L=new Map;function T(e){if(L.has(e))return L.get(e);let t;const i=n(e);return i&&(t=i),L.set(e,t),t}function x(e){return C(e)||E(e)||b(e)}function k(e,t){return 0===t.length?t=[e]:e.end===t[0].start?t[0].start=e.start:t.unshift(e),t}function A(e,t){for(let i=t;i<e.length;i++){const t=e.charCodeAt(i);if(E(t)||b(t)||i>0&&!x(e.charCodeAt(i-1)))return i}return e.length}function N(e,t,i,s){if(i===e.length)return[];if(s===t.length)return null;if(e[i]!==t[s].toLowerCase())return null;{let n=null,r=s+1;for(n=N(e,t,i+1,s+1);!n&&(r=A(t,r))<t.length;)n=N(e,t,i+1,r),r++;return null===n?null:k({start:s,end:s+1},n)}}function I(e,t){if(!t)return null;if(0===(t=t.trim()).length)return null;if(!function(e){let t=0,i=0,s=0,n=0;for(let r=0;r<e.length;r++)s=e.charCodeAt(r),E(s)&&t++,C(s)&&i++,S(s)&&n++;return 0!==t&&0!==i||0!==n?t<=5:e.length<=30}(e))return null;t.length>60&&(t=t.substring(0,60));const i=function(e){let t=0,i=0,s=0,n=0,r=0;for(let o=0;o<e.length;o++)r=e.charCodeAt(o),E(r)&&t++,C(r)&&i++,x(r)&&s++,b(r)&&n++;return{upperPercent:t/e.length,lowerPercent:i/e.length,alphaPercent:s/e.length,numericPercent:n/e.length}}(t);if(!function(e){const{upperPercent:t,lowerPercent:i,alphaPercent:s,numericPercent:n}=e;return i>.2&&t<.8&&s>.6&&n<.2}(i)){if(!function(e){const{upperPercent:t,lowerPercent:i}=e;return 0===i&&t>.6}(i))return null;t=t.toLowerCase()}let s=null,n=0;for(e=e.toLowerCase();n<t.length&&null===(s=N(e,t,0,n));)n=A(t,n+1);return s}function O(e,t,i=!1){if(!t||0===t.length)return null;let s=null,n=0;for(e=e.toLowerCase(),t=t.toLowerCase();n<t.length&&(s=D(e,t,0,n,i),null===s);)n=M(t,n+1);return s}function D(e,t,i,s,n){let r=0;if(i===e.length)return[];if(s===t.length)return null;if(!R(e.charCodeAt(i),t.charCodeAt(s))){const n=T(e.charCodeAt(i));if(!n)return null;for(let e=0;e<n.length;e++)if(!R(n[e],t.charCodeAt(s+e)))return null;r+=n.length-1}let o=null,a=s+r+1;if(o=D(e,t,i+1,a,n),!n)for(;!o&&(a=M(t,a))<t.length;)o=D(e,t,i+1,a,n),a++;if(!o)return null;if(e.charCodeAt(i)!==t.charCodeAt(s)){const n=T(e.charCodeAt(i));if(!n)return o;for(let e=0;e<n.length;e++)if(n[e]!==t.charCodeAt(s+e))return o}return k({start:s,end:s+r+1},o)}function M(e,t){for(let i=t;i<e.length;i++)if(w(e.charCodeAt(i))||i>0&&w(e.charCodeAt(i-1)))return i;return e.length}const P=g(p,I,f),F=g(p,I,_),U=new s.qK(1e4);function H(e,t,i=!1){if("string"!==typeof e||"string"!==typeof t)return null;let s=U.get(e);s||(s=new RegExp(u.Bm(e),"i"),U.set(e,s));const n=s.exec(t);return n?[{start:n.index,end:n.index+n[0].length}]:i?F(e,t):P(e,t)}function B(e,t){const i=ne(e,e.toLowerCase(),0,t,t.toLowerCase(),0,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return i?V(i):null}function W(e,t,i,s,n,r){const o=Math.min(13,e.length);for(;i<o;i++){const o=ne(e,t,i,s,n,r,{firstMatchCanBeWeak:!0,boostFullMatch:!0});if(o)return o}return[0,r]}function V(e){if("undefined"===typeof e)return[];const t=[],i=e[1];for(let s=e.length-1;s>1;s--){const n=e[s]+i,r=t[t.length-1];r&&r.end===n?r.end=n+1:t.push({start:n,end:n+1})}return t}const z=128;function G(){const e=[],t=[];for(let i=0;i<=z;i++)t[i]=0;for(let i=0;i<=z;i++)e.push(t.slice(0));return e}function j(e){const t=[];for(let i=0;i<=e;i++)t[i]=0;return t}const K=j(2*z),Y=j(2*z),q=G(),$=G(),Q=G(),X=!1;function Z(e,t,i,s,n){function r(e,t,i=" "){for(;e.length<t;)e=i+e;return e}let o=` | |${s.split("").map((e=>r(e,3))).join("|")}\n`;for(let a=0;a<=i;a++)o+=0===a?" |":`${t[a-1]}|`,o+=e[a].slice(0,n+1).map((e=>r(e.toString(),3))).join("|")+"\n";return o}function J(e,t){if(t<0||t>=e.length)return!1;const i=e.codePointAt(t);switch(i){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:case 60:case 62:case 40:case 41:case 91:case 93:case 123:case 125:return!0;case void 0:return!1;default:return!!u.Ss(i)}}function ee(e,t){if(t<0||t>=e.length)return!1;switch(e.charCodeAt(t)){case 32:case 9:return!0;default:return!1}}function te(e,t,i){return t[e]!==i[e]}var ie;!function(e){e.Default=[-100,0],e.isDefault=function(e){return!e||2===e.length&&-100===e[0]&&0===e[1]}}(ie||(ie={}));class se{static{this.default={boostFullMatch:!0,firstMatchCanBeWeak:!1}}constructor(e,t){this.firstMatchCanBeWeak=e,this.boostFullMatch=t}}function ne(e,t,i,s,n,r,o=se.default){const a=e.length>z?z:e.length,c=s.length>z?z:s.length;if(i>=a||r>=c||a-i>c-r)return;if(!function(e,t,i,s,n,r,o=!1){for(;t<i&&n<r;)e[t]===s[n]&&(o&&(K[t]=n),t+=1),n+=1;return t===i}(t,i,a,n,r,c,!0))return;!function(e,t,i,s,n,r){let o=e-1,a=t-1;for(;o>=i&&a>=s;)n[o]===r[a]&&(Y[o]=a,o--),a--}(a,c,i,r,t,n);let l=1,h=1,d=i,u=r;const g=[!1];for(l=1,d=i;d<a;l++,d++){const o=K[d],p=Y[d],m=d+1<a?Y[d+1]:c;for(h=o-r+1,u=o;u<m;h++,u++){let a=Number.MIN_SAFE_INTEGER,m=!1;u<=p&&(a=re(e,t,d,i,s,n,u,c,r,0===q[l-1][h-1],g));let f=0;a!==Number.MAX_SAFE_INTEGER&&(m=!0,f=a+$[l-1][h-1]);const _=u>o,v=_?$[l][h-1]+(q[l][h-1]>0?-5:0):0,C=u>o+1&&q[l][h-1]>0,E=C?$[l][h-2]+(q[l][h-2]>0?-5:0):0;if(C&&(!_||E>=v)&&(!m||E>=f))$[l][h]=E,Q[l][h]=3,q[l][h]=0;else if(_&&(!m||v>=f))$[l][h]=v,Q[l][h]=2,q[l][h]=0;else{if(!m)throw new Error("not possible");$[l][h]=f,Q[l][h]=1,q[l][h]=q[l-1][h-1]+1}}}if(X&&function(e,t,i,s){e=e.substr(t),i=i.substr(s),console.log(Z($,e,e.length,i,i.length)),console.log(Z(Q,e,e.length,i,i.length)),console.log(Z(q,e,e.length,i,i.length))}(e,i,s,r),!g[0]&&!o.firstMatchCanBeWeak)return;l--,h--;const p=[$[l][h],r];let m=0,f=0;for(;l>=1;){let e=h;do{const t=Q[l][e];if(3===t)e-=2;else{if(2!==t)break;e-=1}}while(e>=1);m>1&&t[i+l-1]===n[r+h-1]&&!te(e+r-1,s,n)&&m+1>q[l][e]&&(e=h),e===h?m++:m=1,f||(f=e),l--,h=e-1,p.push(h)}c-r===a&&o.boostFullMatch&&(p[0]+=2);const _=f-a;return p[0]-=_,p}function re(e,t,i,s,n,r,o,a,c,l,h){if(t[i]!==r[o])return Number.MIN_SAFE_INTEGER;let d=1,u=!1;return o===i-s?d=e[i]===n[o]?7:5:!te(o,n,r)||0!==o&&te(o-1,n,r)?!J(r,o)||0!==o&&J(r,o-1)?(J(r,o-1)||ee(r,o-1))&&(d=5,u=!0):d=5:(d=e[i]===n[o]?7:5,u=!0),d>1&&i===s&&(h[0]=!0),u||(u=te(o,n,r)||J(r,o-1)||ee(r,o-1)),i===s?o>c&&(d-=u?3:5):d+=l?u?2:0:u?0:1,o+1===a&&(d-=u?3:5),d}function oe(e,t,i,s,n,r,o){return function(e,t,i,s,n,r,o,a){let c=ne(e,t,i,s,n,r,a);if(c&&!o)return c;if(e.length>=3){const t=Math.min(7,e.length-1);for(let o=i+1;o<t;o++){const t=ae(e,o);if(t){const e=ne(t,t.toLowerCase(),i,s,n,r,a);e&&(e[0]-=3,(!c||e[0]>c[0])&&(c=e))}}}return c}(e,t,i,s,n,r,!0,o)}function ae(e,t){if(t+1>=e.length)return;const i=e[t],s=e[t+1];return i!==s?e.slice(0,t)+s+i+e.slice(t+2):void 0}},26746:(e,t,i)=>{"use strict";i.d(t,{D8:()=>I});var s=i(25890),n=i(66782),r=i(86571),o=i(74444),a=i(36677),c=i(68938);class l{constructor(e,t){this.width=e,this.height=t,this.array=[],this.array=new Array(e*t)}get(e,t){return this.array[e+t*this.width]}set(e,t,i){this.array[e+t*this.width]=i}}function h(e){return 32===e||9===e}class d{static{this.chrKeys=new Map}static getKey(e){let t=this.chrKeys.get(e);return void 0===t&&(t=this.chrKeys.size,this.chrKeys.set(e,t)),t}constructor(e,t,i){this.range=e,this.lines=t,this.source=i,this.histogram=[];let s=0;for(let n=e.startLineNumber-1;n<e.endLineNumberExclusive-1;n++){const e=t[n];for(let t=0;t<e.length;t++){s++;const i=e[t],n=d.getKey(i);this.histogram[n]=(this.histogram[n]||0)+1}s++;const i=d.getKey("\n");this.histogram[i]=(this.histogram[i]||0)+1}this.totalCount=s}computeSimilarity(e){let t=0;const i=Math.max(this.histogram.length,e.histogram.length);for(let s=0;s<i;s++)t+=Math.abs((this.histogram[s]??0)-(e.histogram[s]??0));return 1-t/(this.totalCount+e.totalCount)}}class u{compute(e,t,i=c.uY.instance,s){if(0===e.length||0===t.length)return c.SL.trivial(e,t);const n=new l(e.length,t.length),r=new l(e.length,t.length),a=new l(e.length,t.length);for(let o=0;o<e.length;o++)for(let l=0;l<t.length;l++){if(!i.isValid())return c.SL.trivialTimedOut(e,t);const h=0===o?0:n.get(o-1,l),d=0===l?0:n.get(o,l-1);let u;e.getElement(o)===t.getElement(l)?(u=0===o||0===l?0:n.get(o-1,l-1),o>0&&l>0&&3===r.get(o-1,l-1)&&(u+=a.get(o-1,l-1)),u+=s?s(o,l):1):u=-1;const g=Math.max(h,d,u);if(g===u){const e=o>0&&l>0?a.get(o-1,l-1):0;a.set(o,l,e+1),r.set(o,l,3)}else g===h?(a.set(o,l,0),r.set(o,l,1)):g===d&&(a.set(o,l,0),r.set(o,l,2));n.set(o,l,g)}const h=[];let d=e.length,u=t.length;function g(e,t){e+1===d&&t+1===u||h.push(new c.$8(new o.L(e+1,d),new o.L(t+1,u))),d=e,u=t}let p=e.length-1,m=t.length-1;for(;p>=0&&m>=0;)3===r.get(p,m)?(g(p,m),p--,m--):1===r.get(p,m)?p--:m--;return g(-1,-1),h.reverse(),new c.SL(h,!1)}}class g{compute(e,t,i=c.uY.instance){if(0===e.length||0===t.length)return c.SL.trivial(e,t);const s=e,n=t;function r(e,t){for(;e<s.length&&t<n.length&&s.getElement(e)===n.getElement(t);)e++,t++;return e}let a=0;const l=new m;l.set(0,r(0,0));const h=new f;h.set(0,0===l.get(0)?null:new p(null,0,0,l.get(0)));let d=0;e:for(;;){if(a++,!i.isValid())return c.SL.trivialTimedOut(s,n);const e=-Math.min(a,n.length+a%2),t=Math.min(a,s.length+a%2);for(d=e;d<=t;d+=2){let i=0;const o=d===t?-1:l.get(d+1),a=d===e?-1:l.get(d-1)+1;i++;const c=Math.min(Math.max(o,a),s.length),u=c-d;if(i++,c>s.length||u>n.length)continue;const g=r(c,u);l.set(d,g);const m=c===o?h.get(d+1):h.get(d-1);if(h.set(d,g!==c?new p(m,c,u,g-c):m),l.get(d)===s.length&&l.get(d)-d===n.length)break e}}let u=h.get(d);const g=[];let _=s.length,v=n.length;for(;;){const e=u?u.x+u.length:0,t=u?u.y+u.length:0;if(e===_&&t===v||g.push(new c.$8(new o.L(e,_),new o.L(t,v))),!u)break;_=u.x,v=u.y,u=u.prev}return g.reverse(),new c.SL(g,!1)}}class p{constructor(e,t,i,s){this.prev=e,this.x=t,this.y=i,this.length=s}}class m{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=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)>=this.negativeArr.length){const e=this.negativeArr;this.negativeArr=new Int32Array(2*e.length),this.negativeArr.set(e)}this.negativeArr[e]=t}else{if(e>=this.positiveArr.length){const e=this.positiveArr;this.positiveArr=new Int32Array(2*e.length),this.positiveArr.set(e)}this.positiveArr[e]=t}}}class f{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}}var _=i(87723),v=i(46041),C=i(74320),E=i(83069);class b{constructor(e,t,i){this.lines=e,this.range=t,this.considerWhitespaceChanges=i,this.elements=[],this.firstElementOffsetByLineIdx=[],this.lineStartOffsets=[],this.trimmedWsLengthsByLineIdx=[],this.firstElementOffsetByLineIdx.push(0);for(let s=this.range.startLineNumber;s<=this.range.endLineNumber;s++){let t=e[s-1],n=0;s===this.range.startLineNumber&&this.range.startColumn>1&&(n=this.range.startColumn-1,t=t.substring(n)),this.lineStartOffsets.push(n);let r=0;if(!i){const e=t.trimStart();r=t.length-e.length,t=e.trimEnd()}this.trimmedWsLengthsByLineIdx.push(r);const o=s===this.range.endLineNumber?Math.min(this.range.endColumn-1-n-r,t.length):t.length;for(let e=0;e<o;e++)this.elements.push(t.charCodeAt(e));s<this.range.endLineNumber&&(this.elements.push("\n".charCodeAt(0)),this.firstElementOffsetByLineIdx.push(this.elements.length))}}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new o.L(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){const t=R(e>0?this.elements[e-1]:-1),i=R(e<this.elements.length?this.elements[e]:-1);if(7===t&&8===i)return 0;if(8===t)return 150;let s=0;return t!==i&&(s+=10,0===t&&1===i&&(s+=1)),s+=w(t),s+=w(i),s}translateOffset(e,t="right"){const i=(0,v.iM)(this.firstElementOffsetByLineIdx,(t=>t<=e)),s=e-this.firstElementOffsetByLineIdx[i];return new E.y(this.range.startLineNumber+i,1+this.lineStartOffsets[i]+s+(0===s&&"left"===t?0:this.trimmedWsLengthsByLineIdx[i]))}translateRange(e){const t=this.translateOffset(e.start,"right"),i=this.translateOffset(e.endExclusive,"left");return i.isBefore(t)?a.Q.fromPositions(i,i):a.Q.fromPositions(t,i)}findWordContaining(e){if(e<0||e>=this.elements.length)return;if(!S(this.elements[e]))return;let t=e;for(;t>0&&S(this.elements[t-1]);)t--;let i=e;for(;i<this.elements.length&&S(this.elements[i]);)i++;return new o.L(t,i)}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){const t=(0,v.lx)(this.firstElementOffsetByLineIdx,(t=>t<=e.start))??0,i=(0,v.XP)(this.firstElementOffsetByLineIdx,(t=>e.endExclusive<=t))??this.elements.length;return new o.L(t,i)}}function S(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}const y={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function w(e){return y[e]}function R(e){return 10===e?8:13===e?7:h(e)?6:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:-1===e?3:44===e||59===e?5:4}function L(e,t,i,n,o,a){let{moves:c,excludedChanges:l}=function(e,t,i,s){const n=[],r=e.filter((e=>e.modified.isEmpty&&e.original.length>=3)).map((e=>new d(e.original,t,e))),o=new Set(e.filter((e=>e.original.isEmpty&&e.modified.length>=3)).map((e=>new d(e.modified,i,e)))),a=new Set;for(const c of r){let e,t=-1;for(const i of o){const s=c.computeSimilarity(i);s>t&&(t=s,e=i)}if(t>.9&&e&&(o.delete(e),n.push(new _.WL(c.range,e.range)),a.add(c.source),a.add(e.source)),!s.isValid())return{moves:n,excludedChanges:a}}return{moves:n,excludedChanges:a}}(e,t,i,a);if(!a.isValid())return[];const h=function(e,t,i,n,o,a){const c=[],l=new C.db;for(const s of e)for(let e=s.original.startLineNumber;e<s.original.endLineNumberExclusive-2;e++){const i=`${t[e-1]}:${t[e+1-1]}:${t[e+2-1]}`;l.add(i,{range:new r.M(e,e+3)})}const h=[];e.sort((0,s.VE)((e=>e.modified.startLineNumber),s.U9));for(const s of e){let e=[];for(let t=s.modified.startLineNumber;t<s.modified.endLineNumberExclusive-2;t++){const s=`${i[t-1]}:${i[t+1-1]}:${i[t+2-1]}`,n=new r.M(t,t+3),o=[];l.forEach(s,(({range:t})=>{for(const s of e)if(s.originalLineRange.endLineNumberExclusive+1===t.endLineNumberExclusive&&s.modifiedLineRange.endLineNumberExclusive+1===n.endLineNumberExclusive)return s.originalLineRange=new r.M(s.originalLineRange.startLineNumber,t.endLineNumberExclusive),s.modifiedLineRange=new r.M(s.modifiedLineRange.startLineNumber,n.endLineNumberExclusive),void o.push(s);const i={modifiedLineRange:n,originalLineRange:t};h.push(i),o.push(i)})),e=o}if(!a.isValid())return[]}h.sort((0,s.Hw)((0,s.VE)((e=>e.modifiedLineRange.length),s.U9)));const d=new r.S,u=new r.S;for(const s of h){const e=s.modifiedLineRange.startLineNumber-s.originalLineRange.startLineNumber,t=d.subtractFrom(s.modifiedLineRange),i=u.subtractFrom(s.originalLineRange).getWithDelta(e),n=t.getIntersection(i);for(const s of n.ranges){if(s.length<3)continue;const t=s,i=s.delta(-e);c.push(new _.WL(i,t)),d.addRange(t),u.addRange(i)}}c.sort((0,s.VE)((e=>e.original.startLineNumber),s.U9));const g=new v.vJ(e);for(let s=0;s<c.length;s++){const t=c[s],i=g.findLastMonotonous((e=>e.original.startLineNumber<=t.original.startLineNumber)),l=(0,v.lx)(e,(e=>e.modified.startLineNumber<=t.modified.startLineNumber)),h=Math.max(t.original.startLineNumber-i.original.startLineNumber,t.modified.startLineNumber-l.modified.startLineNumber),p=g.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive)),m=(0,v.lx)(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)),f=Math.max(p.original.endLineNumberExclusive-t.original.endLineNumberExclusive,m.modified.endLineNumberExclusive-t.modified.endLineNumberExclusive);let C,E;for(C=0;C<h;C++){const e=t.original.startLineNumber-C-1,i=t.modified.startLineNumber-C-1;if(e>n.length||i>o.length)break;if(d.contains(i)||u.contains(e))break;if(!T(n[e-1],o[i-1],a))break}for(C>0&&(u.addRange(new r.M(t.original.startLineNumber-C,t.original.startLineNumber)),d.addRange(new r.M(t.modified.startLineNumber-C,t.modified.startLineNumber))),E=0;E<f;E++){const e=t.original.endLineNumberExclusive+E,i=t.modified.endLineNumberExclusive+E;if(e>n.length||i>o.length)break;if(d.contains(i)||u.contains(e))break;if(!T(n[e-1],o[i-1],a))break}E>0&&(u.addRange(new r.M(t.original.endLineNumberExclusive,t.original.endLineNumberExclusive+E)),d.addRange(new r.M(t.modified.endLineNumberExclusive,t.modified.endLineNumberExclusive+E))),(C>0||E>0)&&(c[s]=new _.WL(new r.M(t.original.startLineNumber-C,t.original.endLineNumberExclusive+E),new r.M(t.modified.startLineNumber-C,t.modified.endLineNumberExclusive+E)))}return c}(e.filter((e=>!l.has(e))),n,o,t,i,a);return(0,s.E4)(c,h),c=function(e){if(0===e.length)return e;e.sort((0,s.VE)((e=>e.original.startLineNumber),s.U9));const t=[e[0]];for(let i=1;i<e.length;i++){const s=t[t.length-1],n=e[i],r=n.original.startLineNumber-s.original.endLineNumberExclusive,o=n.modified.startLineNumber-s.modified.endLineNumberExclusive;r>=0&&o>=0&&r+o<=2?t[t.length-1]=s.join(n):t.push(n)}return t}(c),c=c.filter((e=>{const i=e.original.toOffsetRange().slice(t).map((e=>e.trim()));return i.join("\n").length>=15&&function(e,t){let i=0;for(const s of e)t(s)&&i++;return i}(i,(e=>e.length>=2))>=2})),c=function(e,t){const i=new v.vJ(e);return t=t.filter((t=>(i.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive))||new _.WL(new r.M(1,1),new r.M(1,1)))!==(0,v.lx)(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)))),t}(e,c),c}function T(e,t,i){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;const s=(new g).compute(new b([e],new a.Q(1,1,1,e.length),!1),new b([t],new a.Q(1,1,1,t.length),!1),i);let n=0;const r=c.$8.invert(s.diffs,e.length);for(const a of r)a.seq1Range.forEach((t=>{h(e.charCodeAt(t))||n++}));const o=function(t){let i=0;for(let s=0;s<e.length;s++)h(t.charCodeAt(s))||i++;return i}(e.length>t.length?e:t);return n/o>.6&&o>10}var x=i(82518);class k{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-((0===e?0:A(this.lines[e-1]))+(e===this.lines.length?0:A(this.lines[e])))}getText(e){return this.lines.slice(e.start,e.endExclusive).join("\n")}isStronglyEqual(e,t){return this.lines[e]===this.lines[t]}}function A(e){let t=0;for(;t<e.length&&(32===e.charCodeAt(t)||9===e.charCodeAt(t));)t++;return t}var N=i(41845);class I{constructor(){this.dynamicProgrammingDiffing=new u,this.myersDiffingAlgorithm=new g}computeDiff(e,t,i){if(e.length<=1&&(0,s.aI)(e,t,((e,t)=>e===t)))return new N.p([],[],!1);if(1===e.length&&0===e[0].length||1===t.length&&0===t[0].length)return new N.p([new _.wm(new r.M(1,e.length+1),new r.M(1,t.length+1),[new _.q6(new a.Q(1,1,e.length,e[e.length-1].length+1),new a.Q(1,1,t.length,t[t.length-1].length+1))])],[],!1);const l=0===i.maxComputationTimeMs?c.uY.instance:new c.aY(i.maxComputationTimeMs),h=!i.ignoreTrimWhitespace,d=new Map;function u(e){let t=d.get(e);return void 0===t&&(t=d.size,d.set(e,t)),t}const g=e.map((e=>u(e.trim()))),p=t.map((e=>u(e.trim()))),m=new k(g,e),f=new k(p,t),v=(()=>m.length+f.length<1700?this.dynamicProgrammingDiffing.compute(m,f,l,((i,s)=>e[i]===t[s]?0===t[s].length?.1:1+Math.log(1+t[s].length):.99)):this.myersDiffingAlgorithm.compute(m,f,l))();let C=v.diffs,E=v.hitTimeout;C=(0,x.NC)(m,f,C),C=(0,x.X5)(m,f,C);const b=[],S=i=>{if(h)for(let s=0;s<i;s++){const i=y+s,n=w+s;if(e[i]!==t[n]){const s=this.refineDiff(e,t,new c.$8(new o.L(i,i+1),new o.L(n,n+1)),l,h);for(const e of s.mappings)b.push(e);s.hitTimeout&&(E=!0)}}};let y=0,w=0;for(const s of C){(0,n.Ft)((()=>s.seq1Range.start-y===s.seq2Range.start-w));S(s.seq1Range.start-y),y=s.seq1Range.endExclusive,w=s.seq2Range.endExclusive;const i=this.refineDiff(e,t,s,l,h);i.hitTimeout&&(E=!0);for(const e of i.mappings)b.push(e)}S(e.length-y);const R=O(b,e,t);let L=[];return i.computeMoves&&(L=this.computeMoves(R,e,t,g,p,l,h)),(0,n.Ft)((()=>{function i(e,t){if(e.lineNumber<1||e.lineNumber>t.length)return!1;const i=t[e.lineNumber-1];return!(e.column<1||e.column>i.length+1)}function s(e,t){return!(e.startLineNumber<1||e.startLineNumber>t.length+1)&&!(e.endLineNumberExclusive<1||e.endLineNumberExclusive>t.length+1)}for(const n of R){if(!n.innerChanges)return!1;for(const s of n.innerChanges){if(!(i(s.modifiedRange.getStartPosition(),t)&&i(s.modifiedRange.getEndPosition(),t)&&i(s.originalRange.getStartPosition(),e)&&i(s.originalRange.getEndPosition(),e)))return!1}if(!s(n.modified,t)||!s(n.original,e))return!1}return!0})),new N.p(R,L,E)}computeMoves(e,t,i,s,n,r,o){return L(e,t,i,s,n,r).map((e=>{const s=O(this.refineDiff(t,i,new c.$8(e.original.toOffsetRange(),e.modified.toOffsetRange()),r,o).mappings,t,i,!0);return new N.t(e,s)}))}refineDiff(e,t,i,s,n){var o;const a=(o=i,new _.WL(new r.M(o.seq1Range.start+1,o.seq1Range.endExclusive+1),new r.M(o.seq2Range.start+1,o.seq2Range.endExclusive+1))).toRangeMapping2(e,t),c=new b(e,a.originalRange,n),l=new b(t,a.modifiedRange,n),h=c.length+l.length<500?this.dynamicProgrammingDiffing.compute(c,l,s):this.myersDiffingAlgorithm.compute(c,l,s),d=!1;let u=h.diffs;u=(0,x.NC)(c,l,u),u=(0,x.Lk)(c,l,u),u=(0,x.sq)(c,l,u),u=(0,x.Rl)(c,l,u);const g=u.map((e=>new _.q6(c.translateRange(e.seq1Range),l.translateRange(e.seq2Range))));return{mappings:g,hitTimeout:h.hitTimeout}}}function O(e,t,i,o=!1){const a=[];for(const n of(0,s.n)(e.map((e=>function(e,t,i){let s=0,n=0;1===e.modifiedRange.endColumn&&1===e.originalRange.endColumn&&e.originalRange.startLineNumber+s<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+s<=e.modifiedRange.endLineNumber&&(n=-1);e.modifiedRange.startColumn-1>=i[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+n&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+n&&(s=1);const o=new r.M(e.originalRange.startLineNumber+s,e.originalRange.endLineNumber+1+n),a=new r.M(e.modifiedRange.startLineNumber+s,e.modifiedRange.endLineNumber+1+n);return new _.wm(o,a,[e])}(e,t,i))),((e,t)=>e.original.overlapOrTouch(t.original)||e.modified.overlapOrTouch(t.modified)))){const e=n[0],t=n[n.length-1];a.push(new _.wm(e.original.join(t.original),e.modified.join(t.modified),n.map((e=>e.innerChanges[0]))))}return(0,n.Ft)((()=>{if(!o&&a.length>0){if(a[0].modified.startLineNumber!==a[0].original.startLineNumber)return!1;if(i.length-a[a.length-1].modified.endLineNumberExclusive!==t.length-a[a.length-1].original.endLineNumberExclusive)return!1}return(0,n.Xo)(a,((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))})),a}},27004:(e,t,i)=>{"use strict";i.r(t),i.d(t,{SemanticTokensStylingService:()=>u});var s=i(5662),n=i(10154),r=i(47612),o=i(18801),a=i(45538),c=i(74243),l=i(14718),h=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},d=function(e,t){return function(i,s){t(i,s,e)}};let u=class extends s.jG{constructor(e,t,i){super(),this._themeService=e,this._logService=t,this._languageService=i,this._caches=new WeakMap,this._register(this._themeService.onDidColorThemeChange((()=>{this._caches=new WeakMap})))}getStyling(e){return this._caches.has(e)||this._caches.set(e,new a.SemanticTokensProviderStyling(e.getLegend(),this._themeService,this._languageService,this._logService)),this._caches.get(e)}};u=h([d(0,r.Gy),d(1,o.rr),d(2,n.L)],u),(0,l.v)(c.ISemanticTokensStylingService,u,1)},27020:(e,t,i)=>{"use strict";var s=i(34918);(0,s.K)({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>i.e(2042).then(i.bind(i,62042))}),(0,s.K)({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>i.e(2042).then(i.bind(i,62042))})},27195:(e,t,i)=>{"use strict";i.d(t,{D8:()=>_,L:()=>y,Xe:()=>S,ZG:()=>E,ez:()=>v,i1:()=>f,is:()=>m,nI:()=>b,ug:()=>w});var s,n=i(36921),r=i(25689),o=i(41234),a=i(5662),c=i(58925),l=i(50091),h=i(32848),d=i(63591),u=i(59261),g=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},p=function(e,t){return function(i,s){t(i,s,e)}};function m(e){return void 0!==e.command}function f(e){return void 0!==e.submenu}class _{static{this._instances=new Map}static{this.CommandPalette=new _("CommandPalette")}static{this.DebugBreakpointsContext=new _("DebugBreakpointsContext")}static{this.DebugCallStackContext=new _("DebugCallStackContext")}static{this.DebugConsoleContext=new _("DebugConsoleContext")}static{this.DebugVariablesContext=new _("DebugVariablesContext")}static{this.NotebookVariablesContext=new _("NotebookVariablesContext")}static{this.DebugHoverContext=new _("DebugHoverContext")}static{this.DebugWatchContext=new _("DebugWatchContext")}static{this.DebugToolBar=new _("DebugToolBar")}static{this.DebugToolBarStop=new _("DebugToolBarStop")}static{this.DebugCallStackToolbar=new _("DebugCallStackToolbar")}static{this.DebugCreateConfiguration=new _("DebugCreateConfiguration")}static{this.EditorContext=new _("EditorContext")}static{this.SimpleEditorContext=new _("SimpleEditorContext")}static{this.EditorContent=new _("EditorContent")}static{this.EditorLineNumberContext=new _("EditorLineNumberContext")}static{this.EditorContextCopy=new _("EditorContextCopy")}static{this.EditorContextPeek=new _("EditorContextPeek")}static{this.EditorContextShare=new _("EditorContextShare")}static{this.EditorTitle=new _("EditorTitle")}static{this.EditorTitleRun=new _("EditorTitleRun")}static{this.EditorTitleContext=new _("EditorTitleContext")}static{this.EditorTitleContextShare=new _("EditorTitleContextShare")}static{this.EmptyEditorGroup=new _("EmptyEditorGroup")}static{this.EmptyEditorGroupContext=new _("EmptyEditorGroupContext")}static{this.EditorTabsBarContext=new _("EditorTabsBarContext")}static{this.EditorTabsBarShowTabsSubmenu=new _("EditorTabsBarShowTabsSubmenu")}static{this.EditorTabsBarShowTabsZenModeSubmenu=new _("EditorTabsBarShowTabsZenModeSubmenu")}static{this.EditorActionsPositionSubmenu=new _("EditorActionsPositionSubmenu")}static{this.ExplorerContext=new _("ExplorerContext")}static{this.ExplorerContextShare=new _("ExplorerContextShare")}static{this.ExtensionContext=new _("ExtensionContext")}static{this.GlobalActivity=new _("GlobalActivity")}static{this.CommandCenter=new _("CommandCenter")}static{this.CommandCenterCenter=new _("CommandCenterCenter")}static{this.LayoutControlMenuSubmenu=new _("LayoutControlMenuSubmenu")}static{this.LayoutControlMenu=new _("LayoutControlMenu")}static{this.MenubarMainMenu=new _("MenubarMainMenu")}static{this.MenubarAppearanceMenu=new _("MenubarAppearanceMenu")}static{this.MenubarDebugMenu=new _("MenubarDebugMenu")}static{this.MenubarEditMenu=new _("MenubarEditMenu")}static{this.MenubarCopy=new _("MenubarCopy")}static{this.MenubarFileMenu=new _("MenubarFileMenu")}static{this.MenubarGoMenu=new _("MenubarGoMenu")}static{this.MenubarHelpMenu=new _("MenubarHelpMenu")}static{this.MenubarLayoutMenu=new _("MenubarLayoutMenu")}static{this.MenubarNewBreakpointMenu=new _("MenubarNewBreakpointMenu")}static{this.PanelAlignmentMenu=new _("PanelAlignmentMenu")}static{this.PanelPositionMenu=new _("PanelPositionMenu")}static{this.ActivityBarPositionMenu=new _("ActivityBarPositionMenu")}static{this.MenubarPreferencesMenu=new _("MenubarPreferencesMenu")}static{this.MenubarRecentMenu=new _("MenubarRecentMenu")}static{this.MenubarSelectionMenu=new _("MenubarSelectionMenu")}static{this.MenubarShare=new _("MenubarShare")}static{this.MenubarSwitchEditorMenu=new _("MenubarSwitchEditorMenu")}static{this.MenubarSwitchGroupMenu=new _("MenubarSwitchGroupMenu")}static{this.MenubarTerminalMenu=new _("MenubarTerminalMenu")}static{this.MenubarViewMenu=new _("MenubarViewMenu")}static{this.MenubarHomeMenu=new _("MenubarHomeMenu")}static{this.OpenEditorsContext=new _("OpenEditorsContext")}static{this.OpenEditorsContextShare=new _("OpenEditorsContextShare")}static{this.ProblemsPanelContext=new _("ProblemsPanelContext")}static{this.SCMInputBox=new _("SCMInputBox")}static{this.SCMChangesSeparator=new _("SCMChangesSeparator")}static{this.SCMChangesContext=new _("SCMChangesContext")}static{this.SCMIncomingChanges=new _("SCMIncomingChanges")}static{this.SCMIncomingChangesContext=new _("SCMIncomingChangesContext")}static{this.SCMIncomingChangesSetting=new _("SCMIncomingChangesSetting")}static{this.SCMOutgoingChanges=new _("SCMOutgoingChanges")}static{this.SCMOutgoingChangesContext=new _("SCMOutgoingChangesContext")}static{this.SCMOutgoingChangesSetting=new _("SCMOutgoingChangesSetting")}static{this.SCMIncomingChangesAllChangesContext=new _("SCMIncomingChangesAllChangesContext")}static{this.SCMIncomingChangesHistoryItemContext=new _("SCMIncomingChangesHistoryItemContext")}static{this.SCMOutgoingChangesAllChangesContext=new _("SCMOutgoingChangesAllChangesContext")}static{this.SCMOutgoingChangesHistoryItemContext=new _("SCMOutgoingChangesHistoryItemContext")}static{this.SCMChangeContext=new _("SCMChangeContext")}static{this.SCMResourceContext=new _("SCMResourceContext")}static{this.SCMResourceContextShare=new _("SCMResourceContextShare")}static{this.SCMResourceFolderContext=new _("SCMResourceFolderContext")}static{this.SCMResourceGroupContext=new _("SCMResourceGroupContext")}static{this.SCMSourceControl=new _("SCMSourceControl")}static{this.SCMSourceControlInline=new _("SCMSourceControlInline")}static{this.SCMSourceControlTitle=new _("SCMSourceControlTitle")}static{this.SCMHistoryTitle=new _("SCMHistoryTitle")}static{this.SCMTitle=new _("SCMTitle")}static{this.SearchContext=new _("SearchContext")}static{this.SearchActionMenu=new _("SearchActionContext")}static{this.StatusBarWindowIndicatorMenu=new _("StatusBarWindowIndicatorMenu")}static{this.StatusBarRemoteIndicatorMenu=new _("StatusBarRemoteIndicatorMenu")}static{this.StickyScrollContext=new _("StickyScrollContext")}static{this.TestItem=new _("TestItem")}static{this.TestItemGutter=new _("TestItemGutter")}static{this.TestProfilesContext=new _("TestProfilesContext")}static{this.TestMessageContext=new _("TestMessageContext")}static{this.TestMessageContent=new _("TestMessageContent")}static{this.TestPeekElement=new _("TestPeekElement")}static{this.TestPeekTitle=new _("TestPeekTitle")}static{this.TestCallStack=new _("TestCallStack")}static{this.TouchBarContext=new _("TouchBarContext")}static{this.TitleBarContext=new _("TitleBarContext")}static{this.TitleBarTitleContext=new _("TitleBarTitleContext")}static{this.TunnelContext=new _("TunnelContext")}static{this.TunnelPrivacy=new _("TunnelPrivacy")}static{this.TunnelProtocol=new _("TunnelProtocol")}static{this.TunnelPortInline=new _("TunnelInline")}static{this.TunnelTitle=new _("TunnelTitle")}static{this.TunnelLocalAddressInline=new _("TunnelLocalAddressInline")}static{this.TunnelOriginInline=new _("TunnelOriginInline")}static{this.ViewItemContext=new _("ViewItemContext")}static{this.ViewContainerTitle=new _("ViewContainerTitle")}static{this.ViewContainerTitleContext=new _("ViewContainerTitleContext")}static{this.ViewTitle=new _("ViewTitle")}static{this.ViewTitleContext=new _("ViewTitleContext")}static{this.CommentEditorActions=new _("CommentEditorActions")}static{this.CommentThreadTitle=new _("CommentThreadTitle")}static{this.CommentThreadActions=new _("CommentThreadActions")}static{this.CommentThreadAdditionalActions=new _("CommentThreadAdditionalActions")}static{this.CommentThreadTitleContext=new _("CommentThreadTitleContext")}static{this.CommentThreadCommentContext=new _("CommentThreadCommentContext")}static{this.CommentTitle=new _("CommentTitle")}static{this.CommentActions=new _("CommentActions")}static{this.CommentsViewThreadActions=new _("CommentsViewThreadActions")}static{this.InteractiveToolbar=new _("InteractiveToolbar")}static{this.InteractiveCellTitle=new _("InteractiveCellTitle")}static{this.InteractiveCellDelete=new _("InteractiveCellDelete")}static{this.InteractiveCellExecute=new _("InteractiveCellExecute")}static{this.InteractiveInputExecute=new _("InteractiveInputExecute")}static{this.InteractiveInputConfig=new _("InteractiveInputConfig")}static{this.ReplInputExecute=new _("ReplInputExecute")}static{this.IssueReporter=new _("IssueReporter")}static{this.NotebookToolbar=new _("NotebookToolbar")}static{this.NotebookStickyScrollContext=new _("NotebookStickyScrollContext")}static{this.NotebookCellTitle=new _("NotebookCellTitle")}static{this.NotebookCellDelete=new _("NotebookCellDelete")}static{this.NotebookCellInsert=new _("NotebookCellInsert")}static{this.NotebookCellBetween=new _("NotebookCellBetween")}static{this.NotebookCellListTop=new _("NotebookCellTop")}static{this.NotebookCellExecute=new _("NotebookCellExecute")}static{this.NotebookCellExecuteGoTo=new _("NotebookCellExecuteGoTo")}static{this.NotebookCellExecutePrimary=new _("NotebookCellExecutePrimary")}static{this.NotebookDiffCellInputTitle=new _("NotebookDiffCellInputTitle")}static{this.NotebookDiffCellMetadataTitle=new _("NotebookDiffCellMetadataTitle")}static{this.NotebookDiffCellOutputsTitle=new _("NotebookDiffCellOutputsTitle")}static{this.NotebookOutputToolbar=new _("NotebookOutputToolbar")}static{this.NotebookOutlineFilter=new _("NotebookOutlineFilter")}static{this.NotebookOutlineActionMenu=new _("NotebookOutlineActionMenu")}static{this.NotebookEditorLayoutConfigure=new _("NotebookEditorLayoutConfigure")}static{this.NotebookKernelSource=new _("NotebookKernelSource")}static{this.BulkEditTitle=new _("BulkEditTitle")}static{this.BulkEditContext=new _("BulkEditContext")}static{this.TimelineItemContext=new _("TimelineItemContext")}static{this.TimelineTitle=new _("TimelineTitle")}static{this.TimelineTitleContext=new _("TimelineTitleContext")}static{this.TimelineFilterSubMenu=new _("TimelineFilterSubMenu")}static{this.AccountsContext=new _("AccountsContext")}static{this.SidebarTitle=new _("SidebarTitle")}static{this.PanelTitle=new _("PanelTitle")}static{this.AuxiliaryBarTitle=new _("AuxiliaryBarTitle")}static{this.AuxiliaryBarHeader=new _("AuxiliaryBarHeader")}static{this.TerminalInstanceContext=new _("TerminalInstanceContext")}static{this.TerminalEditorInstanceContext=new _("TerminalEditorInstanceContext")}static{this.TerminalNewDropdownContext=new _("TerminalNewDropdownContext")}static{this.TerminalTabContext=new _("TerminalTabContext")}static{this.TerminalTabEmptyAreaContext=new _("TerminalTabEmptyAreaContext")}static{this.TerminalStickyScrollContext=new _("TerminalStickyScrollContext")}static{this.WebviewContext=new _("WebviewContext")}static{this.InlineCompletionsActions=new _("InlineCompletionsActions")}static{this.InlineEditsActions=new _("InlineEditsActions")}static{this.InlineEditActions=new _("InlineEditActions")}static{this.NewFile=new _("NewFile")}static{this.MergeInput1Toolbar=new _("MergeToolbar1Toolbar")}static{this.MergeInput2Toolbar=new _("MergeToolbar2Toolbar")}static{this.MergeBaseToolbar=new _("MergeBaseToolbar")}static{this.MergeInputResultToolbar=new _("MergeToolbarResultToolbar")}static{this.InlineSuggestionToolbar=new _("InlineSuggestionToolbar")}static{this.InlineEditToolbar=new _("InlineEditToolbar")}static{this.ChatContext=new _("ChatContext")}static{this.ChatCodeBlock=new _("ChatCodeblock")}static{this.ChatCompareBlock=new _("ChatCompareBlock")}static{this.ChatMessageTitle=new _("ChatMessageTitle")}static{this.ChatExecute=new _("ChatExecute")}static{this.ChatExecuteSecondary=new _("ChatExecuteSecondary")}static{this.ChatInputSide=new _("ChatInputSide")}static{this.AccessibleView=new _("AccessibleView")}static{this.MultiDiffEditorFileToolbar=new _("MultiDiffEditorFileToolbar")}static{this.DiffEditorHunkToolbar=new _("DiffEditorHunkToolbar")}static{this.DiffEditorSelectionToolbar=new _("DiffEditorSelectionToolbar")}constructor(e){if(_._instances.has(e))throw new TypeError(`MenuId with identifier '${e}' already exists. Use MenuId.for(ident) or a unique identifier`);_._instances.set(e,this),this.id=e}}const v=(0,d.u1)("menuService");class C{static{this._all=new Map}static for(e){let t=this._all.get(e);return t||(t=new C(e),this._all.set(e,t)),t}static merge(e){const t=new Set;for(const i of e)i instanceof C&&t.add(i.id);return t}constructor(e){this.id=e,this.has=t=>t===e}}const E=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new o.QT({merge:C.merge}),this.onDidChangeMenu=this._onDidChangeMenu.event}addCommand(e){return this._commands.set(e.id,e),this._onDidChangeMenu.fire(C.for(_.CommandPalette)),(0,a.s)((()=>{this._commands.delete(e.id)&&this._onDidChangeMenu.fire(C.for(_.CommandPalette))}))}getCommand(e){return this._commands.get(e)}getCommands(){const e=new Map;return this._commands.forEach(((t,i)=>e.set(i,t))),e}appendMenuItem(e,t){let i=this._menuItems.get(e);i||(i=new c.w,this._menuItems.set(e,i));const s=i.push(t);return this._onDidChangeMenu.fire(C.for(e)),(0,a.s)((()=>{s(),this._onDidChangeMenu.fire(C.for(e))}))}appendMenuItems(e){const t=new a.Cm;for(const{id:i,item:s}of e)t.add(this.appendMenuItem(i,s));return t}getMenuItems(e){let t;return t=this._menuItems.has(e)?[...this._menuItems.get(e)]:[],e===_.CommandPalette&&this._appendImplicitItems(t),t}_appendImplicitItems(e){const t=new Set;for(const i of e)m(i)&&(t.add(i.command.id),i.alt&&t.add(i.alt.id));this._commands.forEach(((i,s)=>{t.has(s)||e.push({command:i})}))}};class b extends n.YH{constructor(e,t,i){super(`submenuitem.${e.submenu.id}`,"string"===typeof e.title?e.title:e.title.value,i,"submenu"),this.item=e,this.hideActions=t}}let S=s=class{static label(e,t){return t?.renderShortTitle&&e.shortTitle?"string"===typeof e.shortTitle?e.shortTitle:e.shortTitle.value:"string"===typeof e.title?e.title:e.title.value}constructor(e,t,i,n,o,a,c){let l;if(this.hideActions=n,this.menuKeybinding=o,this._commandService=c,this.id=e.id,this.label=s.label(e,i),this.tooltip=("string"===typeof e.tooltip?e.tooltip:e.tooltip?.value)??"",this.enabled=!e.precondition||a.contextMatchesRules(e.precondition),this.checked=void 0,e.toggled){const t=e.toggled.condition?e.toggled:{condition:e.toggled};this.checked=a.contextMatchesRules(t.condition),this.checked&&t.tooltip&&(this.tooltip="string"===typeof t.tooltip?t.tooltip:t.tooltip.value),this.checked&&r.L.isThemeIcon(t.icon)&&(l=t.icon),this.checked&&t.title&&(this.label="string"===typeof t.title?t.title:t.title.value)}l||(l=r.L.isThemeIcon(e.icon)?e.icon:void 0),this.item=e,this.alt=t?new s(t,void 0,i,n,void 0,a,c):void 0,this._options=i,this.class=l&&r.L.asClassName(l)}run(...e){let t=[];return this._options?.arg&&(t=[...t,this._options.arg]),this._options?.shouldForwardArgs&&(t=[...t,...e]),this._commandService.executeCommand(this.id,...t)}};S=s=g([p(5,h.fN),p(6,l.d)],S);class y{constructor(e){this.desc=e}}function w(e){const t=[],i=new e,{f1:s,menu:n,keybinding:r,...o}=i.desc;if(l.w.getCommand(o.id))throw new Error(`Cannot register two commands with the same id: ${o.id}`);if(t.push(l.w.registerCommand({id:o.id,handler:(e,...t)=>i.run(e,...t),metadata:o.metadata})),Array.isArray(n))for(const a of n)t.push(E.appendMenuItem(a.id,{command:{...o,precondition:null===a.precondition?void 0:o.precondition},...a}));else n&&t.push(E.appendMenuItem(n.id,{command:{...o,precondition:null===n.precondition?void 0:o.precondition},...n}));if(s&&(t.push(E.appendMenuItem(_.CommandPalette,{command:o,when:o.precondition})),t.push(E.addCommand(o))),Array.isArray(r))for(const a of r)t.push(u.f.registerKeybindingRule({...a,id:o.id,when:o.precondition?h.M$.and(o.precondition,a.when):a.when}));else r&&t.push(u.f.registerKeybindingRule({...r,id:o.id,when:o.precondition?h.M$.and(o.precondition,r.when):r.when}));return{dispose(){(0,a.AS)(t)}}}},27414:(e,t,i)=>{"use strict";i.d(t,{N:()=>r,c2:()=>o});var s=i(25890),n=i(85152);class r{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=(0,n.j)(e);const i=this.values,s=this.prefixSum,r=t.length;return 0!==r&&(this.values=new Uint32Array(i.length+r),this.values.set(i.subarray(0,e),0),this.values.set(i.subarray(e),e+r),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(s.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,t){return e=(0,n.j)(e),t=(0,n.j)(t),this.values[e]!==t&&(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,t){e=(0,n.j)(e),t=(0,n.j)(t);const i=this.values,s=this.prefixSum;if(e>=i.length)return!1;const r=i.length-e;return t>=r&&(t=r),0!==t&&(this.values=new Uint32Array(i.length-t),this.values.set(i.subarray(0,e),0),this.values.set(i.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(s.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=(0,n.j)(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let i=t;i<=e;i++)this.prefixSum[i]=this.prefixSum[i-1]+this.values[i];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let t=0,i=this.values.length-1,s=0,n=0,r=0;for(;t<=i;)if(s=t+(i-t)/2|0,n=this.prefixSum[s],r=n-this.values[s],e<r)i=s-1;else{if(!(e>=n))break;t=s+1}return new a(s,e-r)}}class o{constructor(e){this._values=e,this._isValid=!1,this._validEndIndex=-1,this._prefixSum=[],this._indexBySum=[]}getTotalSum(){return this._ensureValid(),this._indexBySum.length}getPrefixSum(e){return this._ensureValid(),0===e?0:this._prefixSum[e-1]}getIndexOf(e){this._ensureValid();const t=this._indexBySum[e],i=t>0?this._prefixSum[t-1]:0;return new a(t,e-i)}removeValues(e,t){this._values.splice(e,t),this._invalidate(e)}insertValues(e,t){this._values=(0,s.nK)(this._values,e,t),this._invalidate(e)}_invalidate(e){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,e-1)}_ensureValid(){if(!this._isValid){for(let e=this._validEndIndex+1,t=this._values.length;e<t;e++){const t=this._values[e],i=e>0?this._prefixSum[e-1]:0;this._prefixSum[e]=i+t;for(let s=0;s<t;s++)this._indexBySum[i+s]=e}this._prefixSum.length=this._values.length,this._indexBySum.length=this._prefixSum[this._prefixSum.length-1],this._isValid=!0,this._validEndIndex=this._values.length-1}}setValue(e,t){this._values[e]!==t&&(this._values[e]=t,this._invalidate(e))}}class a{constructor(e,t){this.index=e,this.remainder=t,this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=t}}},27661:(e,t,i)=>{"use strict";i.d(t,{S5:()=>n,n:()=>o,yk:()=>r});var s=i(8597);function n(e,t={}){const i=o(t);return i.textContent=e,i}function r(e,t={}){const i=o(t);return c(i,function(e,t){const i={type:1,children:[]};let s=0,n=i;const r=[],o=new a(e);for(;!o.eos();){let e=o.next();const i="\\"===e&&0!==h(o.peek(),t);if(i&&(e=o.next()),!i&&l(e,t)&&e===o.peek()){o.advance(),2===n.type&&(n=r.pop());const i=h(e,t);if(n.type===i||5===n.type&&6===i)n=r.pop();else{const e={type:i,children:[]};5===i&&(e.index=s,s++),n.children.push(e),r.push(n),n=e}}else if("\n"===e)2===n.type&&(n=r.pop()),n.children.push({type:8});else if(2!==n.type){const t={type:2,content:e};n.children.push(t),r.push(n),n=t}else n.content+=e}2===n.type&&(n=r.pop());r.length;return i}(e,!!t.renderCodeSegments),t.actionHandler,t.renderCodeSegments),i}function o(e){const t=e.inline?"span":"div",i=document.createElement(t);return e.className&&(i.className=e.className),i}class a{constructor(e){this.source=e,this.index=0}eos(){return this.index>=this.source.length}next(){const e=this.peek();return this.advance(),e}peek(){return this.source[this.index]}advance(){this.index++}}function c(e,t,i,n){let r;if(2===t.type)r=document.createTextNode(t.content||"");else if(3===t.type)r=document.createElement("b");else if(4===t.type)r=document.createElement("i");else if(7===t.type&&n)r=document.createElement("code");else if(5===t.type&&i){const e=document.createElement("a");i.disposables.add(s.b2(e,"click",(e=>{i.callback(String(t.index),e)}))),r=e}else 8===t.type?r=document.createElement("br"):1===t.type&&(r=e);r&&e!==r&&e.appendChild(r),r&&Array.isArray(t.children)&&t.children.forEach((e=>{c(r,e,i,n)}))}function l(e,t){return 0!==h(e,t)}function h(e,t){switch(e){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;case"`":return t?7:0;default:return 0}}},27734:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>i.e(3048).then(i.bind(i,3048))})},27760:(e,t,i)=>{"use strict";i.d(t,{V:()=>a,WR:()=>l,no:()=>o});var s=i(91508),n=i(12296),r=i(87469);class o{constructor(e,t,i){this._indentRulesSupport=t,this._indentationLineProcessor=new c(e,i)}shouldIncrease(e,t){const i=this._indentationLineProcessor.getProcessedLine(e,t);return this._indentRulesSupport.shouldIncrease(i)}shouldDecrease(e,t){const i=this._indentationLineProcessor.getProcessedLine(e,t);return this._indentRulesSupport.shouldDecrease(i)}shouldIgnore(e,t){const i=this._indentationLineProcessor.getProcessedLine(e,t);return this._indentRulesSupport.shouldIgnore(i)}shouldIndentNextLine(e,t){const i=this._indentationLineProcessor.getProcessedLine(e,t);return this._indentRulesSupport.shouldIndentNextLine(i)}}class a{constructor(e,t){this.model=e,this.indentationLineProcessor=new c(e,t)}getProcessedTokenContextAroundRange(e){return{beforeRangeProcessedTokens:this._getProcessedTokensBeforeRange(e),afterRangeProcessedTokens:this._getProcessedTokensAfterRange(e),previousLineProcessedTokens:this._getProcessedPreviousLineTokens(e)}}_getProcessedTokensBeforeRange(e){this.model.tokenization.forceTokenization(e.startLineNumber);const t=this.model.tokenization.getLineTokens(e.startLineNumber),i=(0,n.BQ)(t,e.startColumn-1);let s;if(l(this.model,e.getStartPosition())){const n=e.startColumn-1-i.firstCharOffset,r=i.firstCharOffset,o=r+n;s=t.sliceAndInflate(r,o,0)}else{const i=e.startColumn-1;s=t.sliceAndInflate(0,i,0)}return this.indentationLineProcessor.getProcessedTokens(s)}_getProcessedTokensAfterRange(e){const t=e.isEmpty()?e.getStartPosition():e.getEndPosition();this.model.tokenization.forceTokenization(t.lineNumber);const i=this.model.tokenization.getLineTokens(t.lineNumber),s=(0,n.BQ)(i,t.column-1),r=t.column-1-s.firstCharOffset,o=s.firstCharOffset+r,a=s.firstCharOffset+s.getLineLength(),c=i.sliceAndInflate(o,a,0);return this.indentationLineProcessor.getProcessedTokens(c)}_getProcessedPreviousLineTokens(e){this.model.tokenization.forceTokenization(e.startLineNumber);const t=this.model.tokenization.getLineTokens(e.startLineNumber),i=(0,n.BQ)(t,e.startColumn-1),s=r.f.createEmpty("",i.languageIdCodec),o=e.startLineNumber-1;if(0===o)return s;if(!(0===i.firstCharOffset))return s;const a=(e=>{this.model.tokenization.forceTokenization(e);const t=this.model.tokenization.getLineTokens(e),i=this.model.getLineMaxColumn(e)-1;return(0,n.BQ)(t,i)})(o);if(!(i.languageId===a.languageId))return s;const c=a.toIViewLineTokens();return this.indentationLineProcessor.getProcessedTokens(c)}}class c{constructor(e,t){this.model=e,this.languageConfigurationService=t}getProcessedLine(e,t){this.model.tokenization.forceTokenization?.(e);const i=this.model.tokenization.getLineTokens(e);let n=this.getProcessedTokens(i).getLineContent();return void 0!==t&&(n=((e,t)=>{const i=s.UU(e);return t+e.substring(i.length)})(n,t)),n}getProcessedTokens(e){const t=e.getLanguageId(0),i=this.languageConfigurationService.getLanguageConfiguration(t).bracketsNew.getBracketRegExp({global:!0}),s=[];e.forEach((t=>{const n=e.getStandardTokenType(t);let r=e.getTokenText(t);(e=>2===e||3===e||1===e)(n)&&(r=r.replace(i,""));const o=e.getMetadata(t);s.push({text:r,metadata:o})}));return r.f.createFromTextAndMetadata(s,e.languageIdCodec)}}function l(e,t){e.tokenization.forceTokenization(t.lineNumber);const i=e.tokenization.getLineTokens(t.lineNumber),s=(0,n.BQ)(i,t.column-1),r=0===s.firstCharOffset,o=i.getLanguageId(0)===s.languageId;return!r&&!o}},27769:e=>{e.exports=function(){return"Unipika Pika!"}},28211:(e,t,i)=>{"use strict";i(97791),i(93409);var s=i(90766),n=i(18447),r=i(10350),o=i(25689),a=i(26690),c=i(74027),l=i(98067),h=i(91508);const d=[void 0,[]];function u(e,t,i=0,s=0){const n=t;return n.values&&n.values.length>1?function(e,t,i,s){let n=0;const r=[];for(const o of t){const[t,a]=g(e,o,i,s);if("number"!==typeof t)return d;n+=t,r.push(...a)}return[n,p(r)]}(e,n.values,i,s):g(e,t,i,s)}function g(e,t,i,s){const n=(0,a.dt)(t.original,t.originalLowercase,i,e,e.toLowerCase(),s,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return n?[n[0],(0,a.WJ)(n)]:d}Object.freeze({score:0});function p(e){const t=e.sort(((e,t)=>e.start-t.start)),i=[];let s;for(const n of t)s&&m(s,n)?(s.start=Math.min(s.start,n.start),s.end=Math.max(s.end,n.end)):(s=n,i.push(n));return i}function m(e,t){return!(e.end<t.start)&&!(t.end<e.start)}function f(e){return e.startsWith('"')&&e.endsWith('"')}function _(e){"string"!==typeof e&&(e="");const t=e.toLowerCase(),{pathNormalized:i,normalized:s,normalizedLowercase:n}=v(e),r=i.indexOf(c.Vn)>=0,o=f(e);let a;const l=e.split(" ");if(l.length>1)for(const c of l){const e=f(c),{pathNormalized:t,normalized:i,normalizedLowercase:s}=v(c);i&&(a||(a=[]),a.push({original:c,originalLowercase:c.toLowerCase(),pathNormalized:t,normalized:i,normalizedLowercase:s,expectContiguousMatch:e}))}return{original:e,originalLowercase:t,pathNormalized:i,normalized:s,normalizedLowercase:n,values:a,containsPathSeparator:r,expectContiguousMatch:o}}function v(e){let t;t=l.uF?e.replace(/\//g,c.Vn):e.replace(/\\/g,c.Vn);const i=(0,h.wB)(t).replace(/\s|"/g,"");return{pathNormalized:t,normalized:i,normalizedLowercase:i.toLowerCase()}}function C(e){return Array.isArray(e)?_(e.map((e=>e.original)).join(" ")):_(e.original)}var E,b=i(5662),S=i(36677),y=i(62083),w=i(29999),R=i(12437),L=i(78209),T=i(56942),x=i(46041),k=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},A=function(e,t){return function(i,s){t(i,s,e)}};let N=class extends R.o{static{E=this}static{this.PREFIX="@"}static{this.SCOPE_PREFIX=":"}static{this.PREFIX_BY_CATEGORY=`${this.PREFIX}${this.SCOPE_PREFIX}`}constructor(e,t,i=Object.create(null)){super(i),this._languageFeaturesService=e,this._outlineModelService=t,this.options=i,this.options.canAcceptInBackground=!0}provideWithoutTextEditor(e){return this.provideLabelPick(e,(0,L.kg)("cannotRunGotoSymbolWithoutEditor","To go to a symbol, first open a text editor with symbol information.")),b.jG.None}provideWithTextEditor(e,t,i,s){const n=e.editor,r=this.getModel(n);return r?this._languageFeaturesService.documentSymbolProvider.has(r)?this.doProvideWithEditorSymbols(e,r,t,i,s):this.doProvideWithoutEditorSymbols(e,r,t,i):b.jG.None}doProvideWithoutEditorSymbols(e,t,i,s){const n=new b.Cm;return this.provideLabelPick(i,(0,L.kg)("cannotRunGotoSymbolWithoutSymbolProvider","The active text editor does not provide symbol information.")),(async()=>{await this.waitForLanguageSymbolRegistry(t,n)&&!s.isCancellationRequested&&n.add(this.doProvideWithEditorSymbols(e,t,i,s))})(),n}provideLabelPick(e,t){e.items=[{label:t,index:0,kind:14}],e.ariaLabel=t}async waitForLanguageSymbolRegistry(e,t){if(this._languageFeaturesService.documentSymbolProvider.has(e))return!0;const i=new s.Zv,n=t.add(this._languageFeaturesService.documentSymbolProvider.onDidChange((()=>{this._languageFeaturesService.documentSymbolProvider.has(e)&&(n.dispose(),i.complete(!0))})));return t.add((0,b.s)((()=>i.complete(!1)))),i.p}doProvideWithEditorSymbols(e,t,i,s,r){const o=e.editor,a=new b.Cm;a.add(i.onDidAccept((t=>{const[s]=i.selectedItems;s&&s.range&&(this.gotoLocation(e,{range:s.range.selection,keyMods:i.keyMods,preserveFocus:t.inBackground}),r?.handleAccept?.(s),t.inBackground||i.hide())}))),a.add(i.onDidTriggerItemButton((({item:t})=>{t&&t.range&&(this.gotoLocation(e,{range:t.range.selection,keyMods:i.keyMods,forceSideBySide:!0}),i.hide())})));const c=this.getDocumentSymbols(t,s);let l;const h=async e=>{l?.dispose(!0),i.busy=!1,l=new n.Qi(s),i.busy=!0;try{const n=_(i.value.substr(E.PREFIX.length).trim()),r=await this.doGetSymbolPicks(c,n,void 0,l.token,t);if(s.isCancellationRequested)return;if(r.length>0){if(i.items=r,e&&0===n.original.length){const t=(0,x.Uk)(r,(t=>Boolean("separator"!==t.type&&t.range&&S.Q.containsPosition(t.range.decoration,e))));t&&(i.activeItems=[t])}}else n.original.length>0?this.provideLabelPick(i,(0,L.kg)("noMatchingSymbolResults","No matching editor symbols")):this.provideLabelPick(i,(0,L.kg)("noSymbolResults","No editor symbols"))}finally{s.isCancellationRequested||(i.busy=!1)}};return a.add(i.onDidChangeValue((()=>h(void 0)))),h(o.getSelection()?.getPosition()),a.add(i.onDidChangeActive((()=>{const[e]=i.activeItems;e&&e.range&&(o.revealRangeInCenter(e.range.selection,0),this.addDecorations(o,e.range.decoration))}))),a}async doGetSymbolPicks(e,t,i,s,n){const a=await e;if(s.isCancellationRequested)return[];const c=0===t.original.indexOf(E.SCOPE_PREFIX),l=c?1:0;let d,g,p;t.values&&t.values.length>1?(d=C(t.values[0]),g=C(t.values.slice(1))):d=t;const m=this.options?.openSideBySideDirection?.();m&&(p=[{iconClass:"right"===m?o.L.asClassName(r.W.splitHorizontal):o.L.asClassName(r.W.splitVertical),tooltip:"right"===m?(0,L.kg)("openToSide","Open to the Side"):(0,L.kg)("openToBottom","Open to the Bottom")}]);const f=[];for(let b=0;b<a.length;b++){const w=a[b],R=(0,h.Bq)(w.name),T=`$(${y.gP.toIcon(w.kind).id}) ${R}`,x=T.length-R.length;let k,A,N,D,M=w.containerName;if(i?.extraContainerLabel&&(M=M?`${i.extraContainerLabel} \u2022 ${M}`:i.extraContainerLabel),t.original.length>l){let F=!1;if(d!==t&&([k,A]=u(T,{...t,values:void 0},l,x),"number"===typeof k&&(F=!0)),"number"!==typeof k&&([k,A]=u(T,d,l,x),"number"!==typeof k))continue;if(!F&&g){if(M&&g.original.length>0&&([N,D]=u(M,g)),"number"!==typeof N)continue;"number"===typeof k&&(k+=N)}}const P=w.tags&&w.tags.indexOf(1)>=0;f.push({index:b,kind:w.kind,score:k,label:T,ariaLabel:(0,y.PK)(w.name,w.kind),description:M,highlights:P?void 0:{label:A,description:D},range:{selection:S.Q.collapseToStart(w.selectionRange),decoration:w.range},uri:n.uri,symbolName:R,strikethrough:P,buttons:p})}const _=f.sort(((e,t)=>c?this.compareByKindAndScore(e,t):this.compareByScore(e,t)));let v=[];if(c){let U,H,B=0;function W(){H&&"number"===typeof U&&B>0&&(H.label=(0,h.GP)(O[U]||I,B))}for(const V of _)U!==V.kind?(W(),U=V.kind,B=1,H={type:"separator"},v.push(H)):B++,v.push(V);W()}else _.length>0&&(v=[{label:(0,L.kg)("symbols","symbols ({0})",f.length),type:"separator"},..._]);return v}compareByScore(e,t){if("number"!==typeof e.score&&"number"===typeof t.score)return 1;if("number"===typeof e.score&&"number"!==typeof t.score)return-1;if("number"===typeof e.score&&"number"===typeof t.score){if(e.score>t.score)return-1;if(e.score<t.score)return 1}return e.index<t.index?-1:e.index>t.index?1:0}compareByKindAndScore(e,t){const i=O[e.kind]||I,s=O[t.kind]||I,n=i.localeCompare(s);return 0===n?this.compareByScore(e,t):n}async getDocumentSymbols(e,t){const i=await this._outlineModelService.getOrCreate(e,t);return t.isCancellationRequested?[]:i.asListOfDocumentSymbols()}};N=E=k([A(0,T.ILanguageFeaturesService),A(1,w.gW)],N);const I=(0,L.kg)("property","properties ({0})"),O={5:(0,L.kg)("method","methods ({0})"),11:(0,L.kg)("function","functions ({0})"),8:(0,L.kg)("_constructor","constructors ({0})"),12:(0,L.kg)("variable","variables ({0})"),4:(0,L.kg)("class","classes ({0})"),22:(0,L.kg)("struct","structs ({0})"),23:(0,L.kg)("event","events ({0})"),24:(0,L.kg)("operator","operators ({0})"),10:(0,L.kg)("interface","interfaces ({0})"),2:(0,L.kg)("namespace","namespaces ({0})"),3:(0,L.kg)("package","packages ({0})"),25:(0,L.kg)("typeParameter","type parameters ({0})"),1:(0,L.kg)("modules","modules ({0})"),6:(0,L.kg)("property","properties ({0})"),9:(0,L.kg)("enum","enumerations ({0})"),21:(0,L.kg)("enumMember","enumeration members ({0})"),14:(0,L.kg)("string","strings ({0})"),0:(0,L.kg)("file","files ({0})"),17:(0,L.kg)("array","arrays ({0})"),15:(0,L.kg)("number","numbers ({0})"),16:(0,L.kg)("boolean","booleans ({0})"),18:(0,L.kg)("object","objects ({0})"),19:(0,L.kg)("key","keys ({0})"),7:(0,L.kg)("field","fields ({0})"),13:(0,L.kg)("constant","constants ({0})")};var D=i(46359),M=i(71597),P=i(80301),F=i(51861),U=i(41234),H=i(31450),B=i(60002),W=i(51467),V=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},z=function(e,t){return function(i,s){t(i,s,e)}};let G=class extends N{constructor(e,t,i){super(t,i),this.editorService=e,this.onDidActiveTextEditorControlChange=U.Jh.None}get activeTextEditorControl(){return this.editorService.getFocusedCodeEditor()??void 0}};G=V([z(0,P.T),z(1,T.ILanguageFeaturesService),z(2,w.gW)],G);class j extends H.ks{static{this.ID="editor.action.quickOutline"}constructor(){super({id:j.ID,label:F.n9.quickOutlineActionLabel,alias:"Go to Symbol...",precondition:B.R.hasDocumentSymbolProvider,kbOpts:{kbExpr:B.R.focus,primary:3117,weight:100},contextMenuOpts:{group:"navigation",order:3}})}run(e){e.get(W.GK).quickAccess.show(N.PREFIX,{itemActivation:W.C1.NONE})}}(0,H.Fl)(j),D.O.as(M.Fd.Quickaccess).registerQuickAccessProvider({ctor:G,prefix:N.PREFIX,helpEntries:[{description:F.n9.quickOutlineActionLabel,prefix:N.PREFIX,commandId:j.ID},{description:F.n9.quickOutlineByCategoryActionLabel,prefix:N.PREFIX_BY_CATEGORY}]})},28290:(e,t,i)=>{"use strict";i.d(t,{J7:()=>l,W0:()=>a,aV:()=>c,nd:()=>o});var s=i(98067),n=i(78209),r=i(32848);new r.N1("isMac",s.zx,(0,n.kg)("isMac","Whether the operating system is macOS")),new r.N1("isLinux",s.j9,(0,n.kg)("isLinux","Whether the operating system is Linux"));const o=new r.N1("isWindows",s.uF,(0,n.kg)("isWindows","Whether the operating system is Windows")),a=new r.N1("isWeb",s.HZ,(0,n.kg)("isWeb","Whether the platform is a web browser")),c=(new r.N1("isMacNative",s.zx&&!s.HZ,(0,n.kg)("isMacNative","Whether the operating system is macOS on a non-browser platform")),new r.N1("isIOS",s.un,(0,n.kg)("isIOS","Whether the operating system is iOS")),new r.N1("isMobile",s.Fr,(0,n.kg)("isMobile","Whether the platform is a mobile web browser")),new r.N1("isDevelopment",!1,!0),new r.N1("productQualityType","",(0,n.kg)("productQualityType","Quality type of VS Code")),"inputFocus"),l=new r.N1(c,!1,(0,n.kg)("inputFocus","Whether keyboard focus is inside an input box"))},28291:(e,t,i)=>{"use strict";i.d(t,{S:()=>s,c:()=>h});var s,n=i(631),r=i(32799),o=i(94564),a=i(97681),c=i(83069),l=i(36677);class h{static addCursorDown(e,t,i){const s=[];let n=0;for(let a=0,c=t.length;a<c;a++){const c=t[a];s[n++]=new r.MF(c.modelState,c.viewState),s[n++]=i?r.MF.fromModelState(o.I.translateDown(e.cursorConfig,e.model,c.modelState)):r.MF.fromViewState(o.I.translateDown(e.cursorConfig,e,c.viewState))}return s}static addCursorUp(e,t,i){const s=[];let n=0;for(let a=0,c=t.length;a<c;a++){const c=t[a];s[n++]=new r.MF(c.modelState,c.viewState),s[n++]=i?r.MF.fromModelState(o.I.translateUp(e.cursorConfig,e.model,c.modelState)):r.MF.fromViewState(o.I.translateUp(e.cursorConfig,e,c.viewState))}return s}static moveToBeginningOfLine(e,t,i){const s=[];for(let n=0,r=t.length;n<r;n++){const r=t[n];s[n]=this._moveToLineStart(e,r,i)}return s}static _moveToLineStart(e,t,i){const s=t.viewState.position.column,n=s===t.modelState.position.column,r=t.viewState.position.lineNumber,o=e.getLineFirstNonWhitespaceColumn(r);return n||s===o?this._moveToLineStartByModel(e,t,i):this._moveToLineStartByView(e,t,i)}static _moveToLineStartByView(e,t,i){return r.MF.fromViewState(o.I.moveToBeginningOfLine(e.cursorConfig,e,t.viewState,i))}static _moveToLineStartByModel(e,t,i){return r.MF.fromModelState(o.I.moveToBeginningOfLine(e.cursorConfig,e.model,t.modelState,i))}static moveToEndOfLine(e,t,i,s){const n=[];for(let r=0,o=t.length;r<o;r++){const o=t[r];n[r]=this._moveToLineEnd(e,o,i,s)}return n}static _moveToLineEnd(e,t,i,s){const n=t.viewState.position,r=e.getLineMaxColumn(n.lineNumber),o=n.column===r,a=t.modelState.position,c=e.model.getLineMaxColumn(a.lineNumber),l=r-n.column===c-a.column;return o||l?this._moveToLineEndByModel(e,t,i,s):this._moveToLineEndByView(e,t,i,s)}static _moveToLineEndByView(e,t,i,s){return r.MF.fromViewState(o.I.moveToEndOfLine(e.cursorConfig,e,t.viewState,i,s))}static _moveToLineEndByModel(e,t,i,s){return r.MF.fromModelState(o.I.moveToEndOfLine(e.cursorConfig,e.model,t.modelState,i,s))}static expandLineSelection(e,t){const i=[];for(let s=0,n=t.length;s<n;s++){const n=t[s],o=n.modelState.selection.startLineNumber,a=e.model.getLineCount();let h,d=n.modelState.selection.endLineNumber;d===a?h=e.model.getLineMaxColumn(a):(d++,h=1),i[s]=r.MF.fromModelState(new r.mG(new l.Q(o,1,o,1),0,0,new c.y(d,h),0))}return i}static moveToBeginningOfBuffer(e,t,i){const s=[];for(let n=0,a=t.length;n<a;n++){const a=t[n];s[n]=r.MF.fromModelState(o.I.moveToBeginningOfBuffer(e.cursorConfig,e.model,a.modelState,i))}return s}static moveToEndOfBuffer(e,t,i){const s=[];for(let n=0,a=t.length;n<a;n++){const a=t[n];s[n]=r.MF.fromModelState(o.I.moveToEndOfBuffer(e.cursorConfig,e.model,a.modelState,i))}return s}static selectAll(e,t){const i=e.model.getLineCount(),s=e.model.getLineMaxColumn(i);return r.MF.fromModelState(new r.mG(new l.Q(1,1,1,1),0,0,new c.y(i,s),0))}static line(e,t,i,s,n){const o=e.model.validatePosition(s),a=n?e.coordinatesConverter.validateViewPosition(new c.y(n.lineNumber,n.column),o):e.coordinatesConverter.convertModelPositionToViewPosition(o);if(!i){const t=e.model.getLineCount();let i=o.lineNumber+1,s=1;return i>t&&(i=t,s=e.model.getLineMaxColumn(i)),r.MF.fromModelState(new r.mG(new l.Q(o.lineNumber,1,i,s),2,0,new c.y(i,s),0))}const h=t.modelState.selectionStart.getStartPosition().lineNumber;if(o.lineNumber<h)return r.MF.fromViewState(t.viewState.move(!0,a.lineNumber,1,0));if(o.lineNumber>h){const i=e.getLineCount();let s=a.lineNumber+1,n=1;return s>i&&(s=i,n=e.getLineMaxColumn(s)),r.MF.fromViewState(t.viewState.move(!0,s,n,0))}{const e=t.modelState.selectionStart.getEndPosition();return r.MF.fromModelState(t.modelState.move(!0,e.lineNumber,e.column,0))}}static word(e,t,i,s){const n=e.model.validatePosition(s);return r.MF.fromModelState(a.z.word(e.cursorConfig,e.model,t.modelState,i,n))}static cancelSelection(e,t){if(!t.modelState.hasSelection())return new r.MF(t.modelState,t.viewState);const i=t.viewState.position.lineNumber,s=t.viewState.position.column;return r.MF.fromViewState(new r.mG(new l.Q(i,s,i,s),0,0,new c.y(i,s),0))}static moveTo(e,t,i,s,n){if(i){if(1===t.modelState.selectionStartKind)return this.word(e,t,i,s);if(2===t.modelState.selectionStartKind)return this.line(e,t,i,s,n)}const o=e.model.validatePosition(s),a=n?e.coordinatesConverter.validateViewPosition(new c.y(n.lineNumber,n.column),o):e.coordinatesConverter.convertModelPositionToViewPosition(o);return r.MF.fromViewState(t.viewState.move(i,a.lineNumber,a.column,0))}static simpleMove(e,t,i,s,n,a){switch(i){case 0:return 4===a?this._moveHalfLineLeft(e,t,s):this._moveLeft(e,t,s,n);case 1:return 4===a?this._moveHalfLineRight(e,t,s):this._moveRight(e,t,s,n);case 2:return 2===a?this._moveUpByViewLines(e,t,s,n):this._moveUpByModelLines(e,t,s,n);case 3:return 2===a?this._moveDownByViewLines(e,t,s,n):this._moveDownByModelLines(e,t,s,n);case 4:return 2===a?t.map((t=>r.MF.fromViewState(o.I.moveToPrevBlankLine(e.cursorConfig,e,t.viewState,s)))):t.map((t=>r.MF.fromModelState(o.I.moveToPrevBlankLine(e.cursorConfig,e.model,t.modelState,s))));case 5:return 2===a?t.map((t=>r.MF.fromViewState(o.I.moveToNextBlankLine(e.cursorConfig,e,t.viewState,s)))):t.map((t=>r.MF.fromModelState(o.I.moveToNextBlankLine(e.cursorConfig,e.model,t.modelState,s))));case 6:return this._moveToViewMinColumn(e,t,s);case 7:return this._moveToViewFirstNonWhitespaceColumn(e,t,s);case 8:return this._moveToViewCenterColumn(e,t,s);case 9:return this._moveToViewMaxColumn(e,t,s);case 10:return this._moveToViewLastNonWhitespaceColumn(e,t,s);default:return null}}static viewportMove(e,t,i,s,n){const r=e.getCompletelyVisibleViewRange(),o=e.coordinatesConverter.convertViewRangeToModelRange(r);switch(i){case 11:{const i=this._firstLineNumberInRange(e.model,o,n),r=e.model.getLineFirstNonWhitespaceColumn(i);return[this._moveToModelPosition(e,t[0],s,i,r)]}case 13:{const i=this._lastLineNumberInRange(e.model,o,n),r=e.model.getLineFirstNonWhitespaceColumn(i);return[this._moveToModelPosition(e,t[0],s,i,r)]}case 12:{const i=Math.round((o.startLineNumber+o.endLineNumber)/2),n=e.model.getLineFirstNonWhitespaceColumn(i);return[this._moveToModelPosition(e,t[0],s,i,n)]}case 14:{const i=[];for(let n=0,o=t.length;n<o;n++){const o=t[n];i[n]=this.findPositionInViewportIfOutside(e,o,r,s)}return i}default:return null}}static findPositionInViewportIfOutside(e,t,i,s){const n=t.viewState.position.lineNumber;if(i.startLineNumber<=n&&n<=i.endLineNumber-1)return new r.MF(t.modelState,t.viewState);{let a;a=n>i.endLineNumber-1?i.endLineNumber-1:n<i.startLineNumber?i.startLineNumber:n;const c=o.I.vertical(e.cursorConfig,e,n,t.viewState.position.column,t.viewState.leftoverVisibleColumns,a,!1);return r.MF.fromViewState(t.viewState.move(s,c.lineNumber,c.column,c.leftoverVisibleColumns))}}static _firstLineNumberInRange(e,t,i){let s=t.startLineNumber;return t.startColumn!==e.getLineMinColumn(s)&&s++,Math.min(t.endLineNumber,s+i-1)}static _lastLineNumberInRange(e,t,i){let s=t.startLineNumber;return t.startColumn!==e.getLineMinColumn(s)&&s++,Math.max(s,t.endLineNumber-i+1)}static _moveLeft(e,t,i,s){return t.map((t=>r.MF.fromViewState(o.I.moveLeft(e.cursorConfig,e,t.viewState,i,s))))}static _moveHalfLineLeft(e,t,i){const s=[];for(let n=0,a=t.length;n<a;n++){const a=t[n],c=a.viewState.position.lineNumber,l=Math.round(e.getLineLength(c)/2);s[n]=r.MF.fromViewState(o.I.moveLeft(e.cursorConfig,e,a.viewState,i,l))}return s}static _moveRight(e,t,i,s){return t.map((t=>r.MF.fromViewState(o.I.moveRight(e.cursorConfig,e,t.viewState,i,s))))}static _moveHalfLineRight(e,t,i){const s=[];for(let n=0,a=t.length;n<a;n++){const a=t[n],c=a.viewState.position.lineNumber,l=Math.round(e.getLineLength(c)/2);s[n]=r.MF.fromViewState(o.I.moveRight(e.cursorConfig,e,a.viewState,i,l))}return s}static _moveDownByViewLines(e,t,i,s){const n=[];for(let a=0,c=t.length;a<c;a++){const c=t[a];n[a]=r.MF.fromViewState(o.I.moveDown(e.cursorConfig,e,c.viewState,i,s))}return n}static _moveDownByModelLines(e,t,i,s){const n=[];for(let a=0,c=t.length;a<c;a++){const c=t[a];n[a]=r.MF.fromModelState(o.I.moveDown(e.cursorConfig,e.model,c.modelState,i,s))}return n}static _moveUpByViewLines(e,t,i,s){const n=[];for(let a=0,c=t.length;a<c;a++){const c=t[a];n[a]=r.MF.fromViewState(o.I.moveUp(e.cursorConfig,e,c.viewState,i,s))}return n}static _moveUpByModelLines(e,t,i,s){const n=[];for(let a=0,c=t.length;a<c;a++){const c=t[a];n[a]=r.MF.fromModelState(o.I.moveUp(e.cursorConfig,e.model,c.modelState,i,s))}return n}static _moveToViewPosition(e,t,i,s,n){return r.MF.fromViewState(t.viewState.move(i,s,n,0))}static _moveToModelPosition(e,t,i,s,n){return r.MF.fromModelState(t.modelState.move(i,s,n,0))}static _moveToViewMinColumn(e,t,i){const s=[];for(let n=0,r=t.length;n<r;n++){const r=t[n],o=r.viewState.position.lineNumber,a=e.getLineMinColumn(o);s[n]=this._moveToViewPosition(e,r,i,o,a)}return s}static _moveToViewFirstNonWhitespaceColumn(e,t,i){const s=[];for(let n=0,r=t.length;n<r;n++){const r=t[n],o=r.viewState.position.lineNumber,a=e.getLineFirstNonWhitespaceColumn(o);s[n]=this._moveToViewPosition(e,r,i,o,a)}return s}static _moveToViewCenterColumn(e,t,i){const s=[];for(let n=0,r=t.length;n<r;n++){const r=t[n],o=r.viewState.position.lineNumber,a=Math.round((e.getLineMaxColumn(o)+e.getLineMinColumn(o))/2);s[n]=this._moveToViewPosition(e,r,i,o,a)}return s}static _moveToViewMaxColumn(e,t,i){const s=[];for(let n=0,r=t.length;n<r;n++){const r=t[n],o=r.viewState.position.lineNumber,a=e.getLineMaxColumn(o);s[n]=this._moveToViewPosition(e,r,i,o,a)}return s}static _moveToViewLastNonWhitespaceColumn(e,t,i){const s=[];for(let n=0,r=t.length;n<r;n++){const r=t[n],o=r.viewState.position.lineNumber,a=e.getLineLastNonWhitespaceColumn(o);s[n]=this._moveToViewPosition(e,r,i,o,a)}return s}}!function(e){e.metadata={description:"Move cursor to a logical position in the view",args:[{name:"Cursor move argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'to': A mandatory logical position value providing where to move the cursor.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'left', 'right', 'up', 'down', 'prevBlankLine', 'nextBlankLine',\n\t\t\t\t\t\t'wrappedLineStart', 'wrappedLineEnd', 'wrappedLineColumnCenter'\n\t\t\t\t\t\t'wrappedLineFirstNonWhitespaceCharacter', 'wrappedLineLastNonWhitespaceCharacter'\n\t\t\t\t\t\t'viewPortTop', 'viewPortCenter', 'viewPortBottom', 'viewPortIfOutside'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'by': Unit to move. Default is computed based on 'to' value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'line', 'wrappedLine', 'character', 'halfLine'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'value': Number of units to move. Default is '1'.\n\t\t\t\t\t* 'select': If 'true' makes the selection. Default is 'false'.\n\t\t\t\t",constraint:function(e){if(!n.Gv(e))return!1;const t=e;return!!n.Kg(t.to)&&(!(!n.b0(t.select)&&!n.Lm(t.select))&&(!(!n.b0(t.by)&&!n.Kg(t.by))&&!(!n.b0(t.value)&&!n.Et(t.value))))},schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["left","right","up","down","prevBlankLine","nextBlankLine","wrappedLineStart","wrappedLineEnd","wrappedLineColumnCenter","wrappedLineFirstNonWhitespaceCharacter","wrappedLineLastNonWhitespaceCharacter","viewPortTop","viewPortCenter","viewPortBottom","viewPortIfOutside"]},by:{type:"string",enum:["line","wrappedLine","character","halfLine"]},value:{type:"number",default:1},select:{type:"boolean",default:!1}}}}]},e.RawDirection={Left:"left",Right:"right",Up:"up",Down:"down",PrevBlankLine:"prevBlankLine",NextBlankLine:"nextBlankLine",WrappedLineStart:"wrappedLineStart",WrappedLineFirstNonWhitespaceCharacter:"wrappedLineFirstNonWhitespaceCharacter",WrappedLineColumnCenter:"wrappedLineColumnCenter",WrappedLineEnd:"wrappedLineEnd",WrappedLineLastNonWhitespaceCharacter:"wrappedLineLastNonWhitespaceCharacter",ViewPortTop:"viewPortTop",ViewPortCenter:"viewPortCenter",ViewPortBottom:"viewPortBottom",ViewPortIfOutside:"viewPortIfOutside"},e.RawUnit={Line:"line",WrappedLine:"wrappedLine",Character:"character",HalfLine:"halfLine"},e.parse=function(t){if(!t.to)return null;let i;switch(t.to){case e.RawDirection.Left:i=0;break;case e.RawDirection.Right:i=1;break;case e.RawDirection.Up:i=2;break;case e.RawDirection.Down:i=3;break;case e.RawDirection.PrevBlankLine:i=4;break;case e.RawDirection.NextBlankLine:i=5;break;case e.RawDirection.WrappedLineStart:i=6;break;case e.RawDirection.WrappedLineFirstNonWhitespaceCharacter:i=7;break;case e.RawDirection.WrappedLineColumnCenter:i=8;break;case e.RawDirection.WrappedLineEnd:i=9;break;case e.RawDirection.WrappedLineLastNonWhitespaceCharacter:i=10;break;case e.RawDirection.ViewPortTop:i=11;break;case e.RawDirection.ViewPortBottom:i=13;break;case e.RawDirection.ViewPortCenter:i=12;break;case e.RawDirection.ViewPortIfOutside:i=14;break;default:return null}let s=0;switch(t.by){case e.RawUnit.Line:s=1;break;case e.RawUnit.WrappedLine:s=2;break;case e.RawUnit.Character:s=3;break;case e.RawUnit.HalfLine:s=4}return{direction:i,unit:s,select:!!t.select,value:t.value||1}}}(s||(s={}))},28304:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>i.e(3977).then(i.bind(i,56358))})},28433:(e,t,i)=>{"use strict";i.d(t,{T:()=>p});var s=i(8597),n=i(94106),r=i(41234),o=i(5662),a=i(73157);class c{constructor(e,t){this.chr=e,this.type=t,this.width=0}fulfill(e){this.width=e}}class l{constructor(e,t){this._bareFontInfo=e,this._requests=t,this._container=null,this._testElements=null}read(e){this._createDomElements(),e.document.body.appendChild(this._container),this._readFromDomElements(),this._container?.remove(),this._container=null,this._testElements=null}_createDomElements(){const e=document.createElement("div");e.style.position="absolute",e.style.top="-50000px",e.style.width="50000px";const t=document.createElement("div");(0,a.M)(t,this._bareFontInfo),e.appendChild(t);const i=document.createElement("div");(0,a.M)(i,this._bareFontInfo),i.style.fontWeight="bold",e.appendChild(i);const s=document.createElement("div");(0,a.M)(s,this._bareFontInfo),s.style.fontStyle="italic",e.appendChild(s);const n=[];for(const r of this._requests){let e;0===r.type&&(e=t),2===r.type&&(e=i),1===r.type&&(e=s),e.appendChild(document.createElement("br"));const o=document.createElement("span");l._render(o,r),e.appendChild(o),n.push(o)}this._container=e,this._testElements=n}static _render(e,t){if(" "===t.chr){let t="\xa0";for(let e=0;e<8;e++)t+=t;e.innerText=t}else{let i=t.chr;for(let e=0;e<8;e++)i+=i;e.textContent=i}}_readFromDomElements(){for(let e=0,t=this._requests.length;e<t;e++){const t=this._requests[e],i=this._testElements[e];t.fulfill(i.offsetWidth/256)}}}var h=i(87908),d=i(74196);class u extends o.jG{constructor(){super(...arguments),this._cache=new Map,this._evictUntrustedReadingsTimeout=-1,this._onDidChange=this._register(new r.vl),this.onDidChange=this._onDidChange.event}dispose(){-1!==this._evictUntrustedReadingsTimeout&&(clearTimeout(this._evictUntrustedReadingsTimeout),this._evictUntrustedReadingsTimeout=-1),super.dispose()}clearAllFontInfos(){this._cache.clear(),this._onDidChange.fire()}_ensureCache(e){const t=(0,s.Q2)(e);let i=this._cache.get(t);return i||(i=new g,this._cache.set(t,i)),i}_writeToCache(e,t,i){this._ensureCache(e).put(t,i),i.isTrusted||-1!==this._evictUntrustedReadingsTimeout||(this._evictUntrustedReadingsTimeout=e.setTimeout((()=>{this._evictUntrustedReadingsTimeout=-1,this._evictUntrustedReadings(e)}),5e3))}_evictUntrustedReadings(e){const t=this._ensureCache(e),i=t.getValues();let s=!1;for(const n of i)n.isTrusted||(s=!0,t.remove(n));s&&this._onDidChange.fire()}readFontInfo(e,t){const i=this._ensureCache(e);if(!i.has(t)){let i=this._actualReadFontInfo(e,t);(i.typicalHalfwidthCharacterWidth<=2||i.typicalFullwidthCharacterWidth<=2||i.spaceWidth<=2||i.maxDigitWidth<=2)&&(i=new d.YJ({pixelRatio:n.c.getInstance(e).value,fontFamily:i.fontFamily,fontWeight:i.fontWeight,fontSize:i.fontSize,fontFeatureSettings:i.fontFeatureSettings,fontVariationSettings:i.fontVariationSettings,lineHeight:i.lineHeight,letterSpacing:i.letterSpacing,isMonospace:i.isMonospace,typicalHalfwidthCharacterWidth:Math.max(i.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(i.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:i.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(i.spaceWidth,5),middotWidth:Math.max(i.middotWidth,5),wsmiddotWidth:Math.max(i.wsmiddotWidth,5),maxDigitWidth:Math.max(i.maxDigitWidth,5)},!1)),this._writeToCache(e,t,i)}return i.get(t)}_createRequest(e,t,i,s){const n=new c(e,t);return i.push(n),s?.push(n),n}_actualReadFontInfo(e,t){const i=[],s=[],r=this._createRequest("n",0,i,s),o=this._createRequest("\uff4d",0,i,null),a=this._createRequest(" ",0,i,s),c=this._createRequest("0",0,i,s),u=this._createRequest("1",0,i,s),g=this._createRequest("2",0,i,s),p=this._createRequest("3",0,i,s),m=this._createRequest("4",0,i,s),f=this._createRequest("5",0,i,s),_=this._createRequest("6",0,i,s),v=this._createRequest("7",0,i,s),C=this._createRequest("8",0,i,s),E=this._createRequest("9",0,i,s),b=this._createRequest("\u2192",0,i,s),S=this._createRequest("\uffeb",0,i,null),y=this._createRequest("\xb7",0,i,s),w=this._createRequest(String.fromCharCode(11825),0,i,null),R="|/-_ilm%";for(let n=0,l=8;n<l;n++)this._createRequest(R.charAt(n),0,i,s),this._createRequest(R.charAt(n),1,i,s),this._createRequest(R.charAt(n),2,i,s);!function(e,t,i){new l(t,i).read(e)}(e,t,i);const L=Math.max(c.width,u.width,g.width,p.width,m.width,f.width,_.width,v.width,C.width,E.width);let T=t.fontFeatureSettings===h.Bc.OFF;const x=s[0].width;for(let n=1,l=s.length;T&&n<l;n++){const e=x-s[n].width;if(e<-.001||e>.001){T=!1;break}}let k=!0;return T&&S.width!==x&&(k=!1),S.width>b.width&&(k=!1),new d.YJ({pixelRatio:n.c.getInstance(e).value,fontFamily:t.fontFamily,fontWeight:t.fontWeight,fontSize:t.fontSize,fontFeatureSettings:t.fontFeatureSettings,fontVariationSettings:t.fontVariationSettings,lineHeight:t.lineHeight,letterSpacing:t.letterSpacing,isMonospace:T,typicalHalfwidthCharacterWidth:r.width,typicalFullwidthCharacterWidth:o.width,canUseHalfwidthRightwardsArrow:k,spaceWidth:a.width,middotWidth:y.width,wsmiddotWidth:w.width,maxDigitWidth:L},!0)}}class g{constructor(){this._keys=Object.create(null),this._values=Object.create(null)}has(e){const t=e.getId();return!!this._values[t]}get(e){const t=e.getId();return this._values[t]}put(e,t){const i=e.getId();this._keys[i]=e,this._values[i]=t}remove(e){const t=e.getId();delete this._keys[t],delete this._values[t]}getValues(){return Object.keys(this._keys).map((e=>this._values[e]))}}const p=new u},28449:(e,t,i)=>{"use strict";var s=i(90766),n=i(64383),r=i(50868),o=i(31450),a=i(36677),c=i(75326),l=i(60002),h=i(87289),d=i(10920),u=i(78209);class g{constructor(e,t,i){this._editRange=e,this._originalSelection=t,this._text=i}getEditOperations(e,t){t.addTrackedEditOperation(this._editRange,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return this._originalSelection.isEmpty()?new c.L(i.endLineNumber,Math.min(this._originalSelection.positionColumn,i.endColumn),i.endLineNumber,Math.min(this._originalSelection.positionColumn,i.endColumn)):new c.L(i.endLineNumber,i.endColumn-this._text.length,i.endLineNumber,i.endColumn)}}var p,m=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},f=function(e,t){return function(i,s){t(i,s,e)}};let _=class{static{p=this}static{this.ID="editor.contrib.inPlaceReplaceController"}static get(e){return e.getContribution(p.ID)}static{this.DECORATION=h.kI.register({description:"in-place-replace",className:"valueSetReplacement"})}constructor(e,t){this.editor=e,this.editorWorkerService=t,this.decorations=this.editor.createDecorationsCollection()}dispose(){}run(e,t){this.currentRequest?.cancel();const i=this.editor.getSelection(),o=this.editor.getModel();if(!o||!i)return;let l=i;if(l.startLineNumber!==l.endLineNumber)return;const h=new r.$t(this.editor,5),d=o.uri;return this.editorWorkerService.canNavigateValueSet(d)?(this.currentRequest=(0,s.SS)((e=>this.editorWorkerService.navigateValueSet(d,l,t))),this.currentRequest.then((t=>{if(!t||!t.range||!t.value)return;if(!h.validate(this.editor))return;const i=a.Q.lift(t.range);let r=t.range;const o=t.value.length-(l.endColumn-l.startColumn);r={startLineNumber:r.startLineNumber,startColumn:r.startColumn,endLineNumber:r.endLineNumber,endColumn:r.startColumn+t.value.length},o>1&&(l=new c.L(l.startLineNumber,l.startColumn,l.endLineNumber,l.endColumn+o-1));const d=new g(i,l,t.value);this.editor.pushUndoStop(),this.editor.executeCommand(e,d),this.editor.pushUndoStop(),this.decorations.set([{range:r,options:p.DECORATION}]),this.decorationRemover?.cancel(),this.decorationRemover=(0,s.wR)(350),this.decorationRemover.then((()=>this.decorations.clear())).catch(n.dz)})).catch(n.dz)):Promise.resolve(void 0)}};_=p=m([f(1,d.IEditorWorkerService)],_);class v extends o.ks{constructor(){super({id:"editor.action.inPlaceReplace.up",label:u.kg("InPlaceReplaceAction.previous.label","Replace with Previous Value"),alias:"Replace with Previous Value",precondition:l.R.writable,kbOpts:{kbExpr:l.R.editorTextFocus,primary:3159,weight:100}})}run(e,t){const i=_.get(t);return i?i.run(this.id,!1):Promise.resolve(void 0)}}class C extends o.ks{constructor(){super({id:"editor.action.inPlaceReplace.down",label:u.kg("InPlaceReplaceAction.next.label","Replace with Next Value"),alias:"Replace with Next Value",precondition:l.R.writable,kbOpts:{kbExpr:l.R.editorTextFocus,primary:3161,weight:100}})}run(e,t){const i=_.get(t);return i?i.run(this.id,!0):Promise.resolve(void 0)}}(0,o.HW)(_.ID,_,4),(0,o.Fl)(v),(0,o.Fl)(C)},28712:(e,t,i)=>{"use strict";i.d(t,{BJ:()=>P,WE:()=>U});var s=i(90766),n=i(18447),r=i(47661),o=i(5662),a=i(36677),c=i(68310),l=i(9772),h=i(41234);class d{get color(){return this._color}set color(e){this._color.equals(e)||(this._color=e,this._onDidChangeColor.fire(e))}get presentation(){return this.colorPresentations[this.presentationIndex]}get colorPresentations(){return this._colorPresentations}set colorPresentations(e){this._colorPresentations=e,this.presentationIndex>e.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)}constructor(e,t,i){this.presentationIndex=i,this._onColorFlushed=new h.vl,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new h.vl,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new h.vl,this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=e,this._color=e,this._colorPresentations=t}selectNextColorPresentation(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)}guessColorPresentation(e,t){let i=-1;for(let s=0;s<this.colorPresentations.length;s++)if(t.toLowerCase()===this.colorPresentations[s].label){i=s;break}if(-1===i){const e=t.split("(")[0].toLowerCase();for(let t=0;t<this.colorPresentations.length;t++)if(this.colorPresentations[t].label.toLowerCase().startsWith(e)){i=t;break}}-1!==i&&i!==this.presentationIndex&&(this.presentationIndex=i,this._onDidChangePresentation.fire(this.presentation))}flushColor(){this._onColorFlushed.fire(this._color)}}var u=i(94106),g=i(8597),p=i(34072),m=i(17390),f=i(10350),_=i(25689),v=(i(53396),i(78209)),C=i(66261),E=i(61394);const b=g.$;class S extends o.jG{constructor(e,t,i,s=!1){super(),this.model=t,this.showingStandaloneColorPicker=s,this._closeButton=null,this._domNode=b(".colorpicker-header"),g.BC(e,this._domNode),this._pickedColorNode=g.BC(this._domNode,b(".picked-color")),g.BC(this._pickedColorNode,b("span.codicon.codicon-color-mode")),this._pickedColorPresentation=g.BC(this._pickedColorNode,document.createElement("span")),this._pickedColorPresentation.classList.add("picked-color-presentation");const n=(0,v.kg)("clickToToggleColorOptions","Click to toggle color options (rgb/hsl/hex)");this._pickedColorNode.setAttribute("title",n),this._originalColorNode=g.BC(this._domNode,b(".original-color")),this._originalColorNode.style.backgroundColor=r.Q1.Format.CSS.format(this.model.originalColor)||"",this.backgroundColor=i.getColorTheme().getColor(C.WfR)||r.Q1.white,this._register(i.onDidColorThemeChange((e=>{this.backgroundColor=e.getColor(C.WfR)||r.Q1.white}))),this._register(g.ko(this._pickedColorNode,g.Bx.CLICK,(()=>this.model.selectNextColorPresentation()))),this._register(g.ko(this._originalColorNode,g.Bx.CLICK,(()=>{this.model.color=this.model.originalColor,this.model.flushColor()}))),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this._register(t.onDidChangePresentation(this.onDidChangePresentation,this)),this._pickedColorNode.style.backgroundColor=r.Q1.Format.CSS.format(t.color)||"",this._pickedColorNode.classList.toggle("light",t.color.rgba.a<.5?this.backgroundColor.isLighter():t.color.isLighter()),this.onDidChangeColor(this.model.color),this.showingStandaloneColorPicker&&(this._domNode.classList.add("standalone-colorpicker"),this._closeButton=this._register(new y(this._domNode)))}get closeButton(){return this._closeButton}get pickedColorNode(){return this._pickedColorNode}get originalColorNode(){return this._originalColorNode}onDidChangeColor(e){this._pickedColorNode.style.backgroundColor=r.Q1.Format.CSS.format(e)||"",this._pickedColorNode.classList.toggle("light",e.rgba.a<.5?this.backgroundColor.isLighter():e.isLighter()),this.onDidChangePresentation()}onDidChangePresentation(){this._pickedColorPresentation.textContent=this.model.presentation?this.model.presentation.label:""}}class y extends o.jG{constructor(e){super(),this._onClicked=this._register(new h.vl),this.onClicked=this._onClicked.event,this._button=document.createElement("div"),this._button.classList.add("close-button"),g.BC(e,this._button);const t=document.createElement("div");t.classList.add("close-button-inner-div"),g.BC(this._button,t);g.BC(t,b(".button"+_.L.asCSSSelector((0,E.pU)("color-picker-close",f.W.close,(0,v.kg)("closeIcon","Icon to close the color picker"))))).classList.add("close-icon"),this._register(g.ko(this._button,g.Bx.CLICK,(()=>{this._onClicked.fire()})))}}class w extends o.jG{constructor(e,t,i,s=!1){super(),this.model=t,this.pixelRatio=i,this._insertButton=null,this._domNode=b(".colorpicker-body"),g.BC(e,this._domNode),this._saturationBox=new R(this._domNode,this.model,this.pixelRatio),this._register(this._saturationBox),this._register(this._saturationBox.onDidChange(this.onDidSaturationValueChange,this)),this._register(this._saturationBox.onColorFlushed(this.flushColor,this)),this._opacityStrip=new T(this._domNode,this.model,s),this._register(this._opacityStrip),this._register(this._opacityStrip.onDidChange(this.onDidOpacityChange,this)),this._register(this._opacityStrip.onColorFlushed(this.flushColor,this)),this._hueStrip=new x(this._domNode,this.model,s),this._register(this._hueStrip),this._register(this._hueStrip.onDidChange(this.onDidHueChange,this)),this._register(this._hueStrip.onColorFlushed(this.flushColor,this)),s&&(this._insertButton=this._register(new k(this._domNode)),this._domNode.classList.add("standalone-colorpicker"))}flushColor(){this.model.flushColor()}onDidSaturationValueChange({s:e,v:t}){const i=this.model.color.hsva;this.model.color=new r.Q1(new r.$J(i.h,e,t,i.a))}onDidOpacityChange(e){const t=this.model.color.hsva;this.model.color=new r.Q1(new r.$J(t.h,t.s,t.v,e))}onDidHueChange(e){const t=this.model.color.hsva,i=360*(1-e);this.model.color=new r.Q1(new r.$J(360===i?0:i,t.s,t.v,t.a))}get domNode(){return this._domNode}get saturationBox(){return this._saturationBox}get enterButton(){return this._insertButton}layout(){this._saturationBox.layout(),this._opacityStrip.layout(),this._hueStrip.layout()}}class R extends o.jG{constructor(e,t,i){super(),this.model=t,this.pixelRatio=i,this._onDidChange=new h.vl,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new h.vl,this.onColorFlushed=this._onColorFlushed.event,this._domNode=b(".saturation-wrap"),g.BC(e,this._domNode),this._canvas=document.createElement("canvas"),this._canvas.className="saturation-box",g.BC(this._domNode,this._canvas),this.selection=b(".saturation-selection"),g.BC(this._domNode,this.selection),this.layout(),this._register(g.ko(this._domNode,g.Bx.POINTER_DOWN,(e=>this.onPointerDown(e)))),this._register(this.model.onDidChangeColor(this.onDidChangeColor,this)),this.monitor=null}get domNode(){return this._domNode}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;this.monitor=this._register(new p._);const t=g.BK(this._domNode);e.target!==this.selection&&this.onDidChangePosition(e.offsetX,e.offsetY),this.monitor.startMonitoring(e.target,e.pointerId,e.buttons,(e=>this.onDidChangePosition(e.pageX-t.left,e.pageY-t.top)),(()=>null));const i=g.ko(e.target.ownerDocument,g.Bx.POINTER_UP,(()=>{this._onColorFlushed.fire(),i.dispose(),this.monitor&&(this.monitor.stopMonitoring(!0),this.monitor=null)}),!0)}onDidChangePosition(e,t){const i=Math.max(0,Math.min(1,e/this.width)),s=Math.max(0,Math.min(1,1-t/this.height));this.paintSelection(i,s),this._onDidChange.fire({s:i,v:s})}layout(){this.width=this._domNode.offsetWidth,this.height=this._domNode.offsetHeight,this._canvas.width=this.width*this.pixelRatio,this._canvas.height=this.height*this.pixelRatio,this.paint();const e=this.model.color.hsva;this.paintSelection(e.s,e.v)}paint(){const e=this.model.color.hsva,t=new r.Q1(new r.$J(e.h,1,1,1)),i=this._canvas.getContext("2d"),s=i.createLinearGradient(0,0,this._canvas.width,0);s.addColorStop(0,"rgba(255, 255, 255, 1)"),s.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),s.addColorStop(1,"rgba(255, 255, 255, 0)");const n=i.createLinearGradient(0,0,0,this._canvas.height);n.addColorStop(0,"rgba(0, 0, 0, 0)"),n.addColorStop(1,"rgba(0, 0, 0, 1)"),i.rect(0,0,this._canvas.width,this._canvas.height),i.fillStyle=r.Q1.Format.CSS.format(t),i.fill(),i.fillStyle=s,i.fill(),i.fillStyle=n,i.fill()}paintSelection(e,t){this.selection.style.left=e*this.width+"px",this.selection.style.top=this.height-t*this.height+"px"}onDidChangeColor(e){if(this.monitor&&this.monitor.isMonitoring())return;this.paint();const t=e.hsva;this.paintSelection(t.s,t.v)}}class L extends o.jG{constructor(e,t,i=!1){super(),this.model=t,this._onDidChange=new h.vl,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new h.vl,this.onColorFlushed=this._onColorFlushed.event,i?(this.domNode=g.BC(e,b(".standalone-strip")),this.overlay=g.BC(this.domNode,b(".standalone-overlay"))):(this.domNode=g.BC(e,b(".strip")),this.overlay=g.BC(this.domNode,b(".overlay"))),this.slider=g.BC(this.domNode,b(".slider")),this.slider.style.top="0px",this._register(g.ko(this.domNode,g.Bx.POINTER_DOWN,(e=>this.onPointerDown(e)))),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this.layout()}layout(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;const e=this.getValue(this.model.color);this.updateSliderPosition(e)}onDidChangeColor(e){const t=this.getValue(e);this.updateSliderPosition(t)}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;const t=this._register(new p._),i=g.BK(this.domNode);this.domNode.classList.add("grabbing"),e.target!==this.slider&&this.onDidChangeTop(e.offsetY),t.startMonitoring(e.target,e.pointerId,e.buttons,(e=>this.onDidChangeTop(e.pageY-i.top)),(()=>null));const s=g.ko(e.target.ownerDocument,g.Bx.POINTER_UP,(()=>{this._onColorFlushed.fire(),s.dispose(),t.stopMonitoring(!0),this.domNode.classList.remove("grabbing")}),!0)}onDidChangeTop(e){const t=Math.max(0,Math.min(1,1-e/this.height));this.updateSliderPosition(t),this._onDidChange.fire(t)}updateSliderPosition(e){this.slider.style.top=(1-e)*this.height+"px"}}class T extends L{constructor(e,t,i=!1){super(e,t,i),this.domNode.classList.add("opacity-strip"),this.onDidChangeColor(this.model.color)}onDidChangeColor(e){super.onDidChangeColor(e);const{r:t,g:i,b:s}=e.rgba,n=new r.Q1(new r.bU(t,i,s,1)),o=new r.Q1(new r.bU(t,i,s,0));this.overlay.style.background=`linear-gradient(to bottom, ${n} 0%, ${o} 100%)`}getValue(e){return e.hsva.a}}class x extends L{constructor(e,t,i=!1){super(e,t,i),this.domNode.classList.add("hue-strip")}getValue(e){return 1-e.hsva.h/360}}class k extends o.jG{constructor(e){super(),this._onClicked=this._register(new h.vl),this.onClicked=this._onClicked.event,this._button=g.BC(e,document.createElement("button")),this._button.classList.add("insert-button"),this._button.textContent="Insert",this._register(g.ko(this._button,g.Bx.CLICK,(()=>{this._onClicked.fire()})))}get button(){return this._button}}class A extends m.x{constructor(e,t,i,s,n=!1){super(),this.model=t,this.pixelRatio=i,this._register(u.c.getInstance(g.zk(e)).onDidChange((()=>this.layout()))),this._domNode=b(".colorpicker-widget"),e.appendChild(this._domNode),this.header=this._register(new S(this._domNode,this.model,s,n)),this.body=this._register(new w(this._domNode,this.model,this.pixelRatio,n))}layout(){this.body.layout()}get domNode(){return this._domNode}}var N=i(57039),I=i(47612),O=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},D=function(e,t){return function(i,s){t(i,s,e)}};class M{constructor(e,t,i,s){this.owner=e,this.range=t,this.model=i,this.provider=s,this.forceShowAtRange=!0}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let P=class{constructor(e,t){this._editor=e,this._themeService=t,this.hoverOrdinal=2}computeSync(e,t){return[]}computeAsync(e,t,i){return s.AE.fromPromise(this._computeAsync(e,t,i))}async _computeAsync(e,t,i){if(!this._editor.hasModel())return[];const s=l.mn.get(this._editor);if(!s)return[];for(const n of t){if(!s.isColorDecoration(n))continue;const e=s.getColorData(n.range.getStartPosition());if(e){return[await H(this,this._editor.getModel(),e.colorInfo,e.provider)]}}return[]}renderHoverParts(e,t){const i=B(this,this._editor,this._themeService,t,e);if(!i)return new N.Ke([]);this._colorPicker=i.colorPicker;const s={hoverPart:i.hoverPart,hoverElement:this._colorPicker.domNode,dispose(){i.disposables.dispose()}};return new N.Ke([s])}handleResize(){this._colorPicker?.layout()}isColorPickerVisible(){return!!this._colorPicker}};P=O([D(1,I.Gy)],P);class F{constructor(e,t,i,s){this.owner=e,this.range=t,this.model=i,this.provider=s}}let U=class{constructor(e,t){this._editor=e,this._themeService=t,this._color=null}async createColorHover(e,t,i){if(!this._editor.hasModel())return null;if(!l.mn.get(this._editor))return null;const s=await(0,c.j)(i,this._editor.getModel(),n.XO.None);let r=null,o=null;for(const n of s){const t=n.colorInfo;a.Q.containsRange(t.range,e.range)&&(r=t,o=n.provider)}const h=r??e,d=o??t,u=!!r;return{colorHover:await H(this,this._editor.getModel(),h,d),foundInEditor:u}}async updateEditorModel(e){if(!this._editor.hasModel())return;const t=e.model;let i=new a.Q(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn);this._color&&(await V(this._editor.getModel(),t,this._color,i,e),i=W(this._editor,i,t))}renderHoverParts(e,t){return B(this,this._editor,this._themeService,t,e)}set color(e){this._color=e}get color(){return this._color}};async function H(e,t,i,s){const o=t.getValueInRange(i.range),{red:l,green:h,blue:u,alpha:g}=i.color,p=new r.bU(Math.round(255*l),Math.round(255*h),Math.round(255*u),g),m=new r.Q1(p),f=await(0,c.R)(t,i,s,n.XO.None),_=new d(m,[],0);return _.colorPresentations=f||[],_.guessColorPresentation(m,o),e instanceof P?new M(e,a.Q.lift(i.range),_,s):new F(e,a.Q.lift(i.range),_,s)}function B(e,t,i,s,n){if(0===s.length||!t.hasModel())return;if(n.setMinimumDimensions){const e=t.getOption(67)+8;n.setMinimumDimensions(new g.fg(302,e))}const r=new o.Cm,c=s[0],l=t.getModel(),h=c.model,d=r.add(new A(n.fragment,h,t.getOption(144),i,e instanceof U));let u=!1,p=new a.Q(c.range.startLineNumber,c.range.startColumn,c.range.endLineNumber,c.range.endColumn);if(e instanceof U){const t=c.model.color;e.color=t,V(l,h,t,p,c),r.add(h.onColorFlushed((t=>{e.color=t})))}else r.add(h.onColorFlushed((async e=>{await V(l,h,e,p,c),u=!0,p=W(t,p,h)})));return r.add(h.onDidChangeColor((e=>{V(l,h,e,p,c)}))),r.add(t.onDidChangeModelContent((e=>{u?u=!1:(n.hide(),t.focus())}))),{hoverPart:c,colorPicker:d,disposables:r}}function W(e,t,i){const s=[],n=i.presentation.textEdit??{range:t,text:i.presentation.label,forceMoveMarkers:!1};s.push(n),i.presentation.additionalTextEdits&&s.push(...i.presentation.additionalTextEdits);const r=a.Q.lift(n.range),o=e.getModel()._setTrackedRange(null,r,3);return e.executeEdits("colorpicker",s),e.pushUndoStop(),e.getModel()._getTrackedRange(o)??r}async function V(e,t,i,s,r){const o=await(0,c.R)(e,{range:s,color:{red:i.rgba.r/255,green:i.rgba.g/255,blue:i.rgba.b/255,alpha:i.rgba.a}},r.provider,n.XO.None);t.colorPresentations=o||[]}U=O([D(1,I.Gy)],U)},29100:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ITreeViewsDnDService:()=>o});var s=i(14718),n=i(63591),r=i(36723);const o=(0,n.u1)("treeViewsDndService");(0,s.v)(o,r.TreeViewsDnDService,1)},29163:(e,t,i)=>{"use strict";i.d(t,{t:()=>f});var s=i(10146),n=i(80301),r=i(52555),o=i(17469),a=i(56942),c=i(253),l=i(50091),h=i(32848),d=i(63591),u=i(58591),g=i(47612),p=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},m=function(e,t){return function(i,s){t(i,s,e)}};let f=class extends r.x{constructor(e,t,i,s,n,r,o,a,c,l,h,d,u){super(e,{...s.getRawOptions(),overflowWidgetsDomNode:s.getOverflowWidgetsDomNode()},i,n,r,o,a,c,l,h,d,u),this._parentEditor=s,this._overwriteOptions=t,super.updateOptions(this._overwriteOptions),this._register(s.onDidChangeConfiguration((e=>this._onParentConfigurationChanged(e))))}getParentEditor(){return this._parentEditor}_onParentConfigurationChanged(e){super.updateOptions(this._parentEditor.getRawOptions()),super.updateOptions(this._overwriteOptions)}updateOptions(e){s.co(this._overwriteOptions,e,!0),super.updateOptions(this._overwriteOptions)}};f=p([m(4,d._Y),m(5,n.T),m(6,l.d),m(7,h.fN),m(8,g.Gy),m(9,u.Ot),m(10,c.j),m(11,o.JZ),m(12,a.ILanguageFeaturesService)],f)},29319:(e,t,i)=>{"use strict";i.d(t,{EY:()=>r,GR:()=>c,Or:()=>a,fr:()=>p,mQ:()=>g});class s{constructor(){this.value="",this.pos=0}static{this._table={36:0,58:1,44:2,123:3,125:4,92:5,47:6,124:7,43:11,45:12,63:13}}static isDigitCharacter(e){return e>=48&&e<=57}static isVariableCharacter(e){return 95===e||e>=97&&e<=122||e>=65&&e<=90}text(e){this.value=e,this.pos=0}tokenText(e){return this.value.substr(e.pos,e.len)}next(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};const e=this.pos;let t,i=0,n=this.value.charCodeAt(e);if(t=s._table[n],"number"===typeof t)return this.pos+=1,{type:t,pos:e,len:1};if(s.isDigitCharacter(n)){t=8;do{i+=1,n=this.value.charCodeAt(e+i)}while(s.isDigitCharacter(n));return this.pos+=i,{type:t,pos:e,len:i}}if(s.isVariableCharacter(n)){t=9;do{n=this.value.charCodeAt(e+ ++i)}while(s.isVariableCharacter(n)||s.isDigitCharacter(n));return this.pos+=i,{type:t,pos:e,len:i}}t=10;do{i+=1,n=this.value.charCodeAt(e+i)}while(!isNaN(n)&&"undefined"===typeof s._table[n]&&!s.isDigitCharacter(n)&&!s.isVariableCharacter(n));return this.pos+=i,{type:t,pos:e,len:i}}}class n{constructor(){this._children=[]}appendChild(e){return e instanceof r&&this._children[this._children.length-1]instanceof r?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}replace(e,t){const{parent:i}=e,s=i.children.indexOf(e),n=i.children.slice(0);n.splice(s,1,...t),i._children=n,function e(t,i){for(const s of t)s.parent=i,e(s.children,s)}(t,i)}get children(){return this._children}get rightMostDescendant(){return this._children.length>0?this._children[this._children.length-1].rightMostDescendant:this}get snippet(){let e=this;for(;;){if(!e)return;if(e instanceof g)return e;e=e.parent}}toString(){return this.children.reduce(((e,t)=>e+t.toString()),"")}len(){return 0}}class r extends n{constructor(e){super(),this.value=e}toString(){return this.value}len(){return this.value.length}clone(){return new r(this.value)}}class o extends n{}class a extends o{static compareByIndex(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop||e.index<t.index?-1:e.index>t.index?1:0}constructor(e){super(),this.index=e}get isFinalTabstop(){return 0===this.index}get choice(){return 1===this._children.length&&this._children[0]instanceof c?this._children[0]:void 0}clone(){const e=new a(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map((e=>e.clone())),e}}class c extends n{constructor(){super(...arguments),this.options=[]}appendChild(e){return e instanceof r&&(e.parent=this,this.options.push(e)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){const e=new c;return this.options.forEach(e.appendChild,e),e}}class l extends n{constructor(){super(...arguments),this.regexp=new RegExp("")}resolve(e){const t=this;let i=!1,s=e.replace(this.regexp,(function(){return i=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))}));return!i&&this._children.some((e=>e instanceof h&&Boolean(e.elseValue)))&&(s=this._replace([])),s}_replace(e){let t="";for(const i of this._children)if(i instanceof h){let s=e[i.index]||"";s=i.resolve(s),t+=s}else t+=i.toString();return t}toString(){return""}clone(){const e=new l;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map((e=>e.clone())),e}}class h extends n{constructor(e,t,i,s){super(),this.index=e,this.shorthandName=t,this.ifValue=i,this.elseValue=s}resolve(e){return"upcase"===this.shorthandName?e?e.toLocaleUpperCase():"":"downcase"===this.shorthandName?e?e.toLocaleLowerCase():"":"capitalize"===this.shorthandName?e?e[0].toLocaleUpperCase()+e.substr(1):"":"pascalcase"===this.shorthandName?e?this._toPascalCase(e):"":"camelcase"===this.shorthandName?e?this._toCamelCase(e):"":Boolean(e)&&"string"===typeof this.ifValue?this.ifValue:Boolean(e)||"string"!==typeof this.elseValue?e||"":this.elseValue}_toPascalCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map((e=>e.charAt(0).toUpperCase()+e.substr(1))).join(""):e}_toCamelCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map(((e,t)=>0===t?e.charAt(0).toLowerCase()+e.substr(1):e.charAt(0).toUpperCase()+e.substr(1))).join(""):e}clone(){return new h(this.index,this.shorthandName,this.ifValue,this.elseValue)}}class d extends o{constructor(e){super(),this.name=e}resolve(e){let t=e.resolve(this);return this.transform&&(t=this.transform.resolve(t||"")),void 0!==t&&(this._children=[new r(t)],!0)}clone(){const e=new d(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map((e=>e.clone())),e}}function u(e,t){const i=[...e];for(;i.length>0;){const e=i.shift();if(!t(e))break;i.unshift(...e.children)}}class g extends n{get placeholderInfo(){if(!this._placeholders){const e=[];let t;this.walk((function(i){return i instanceof a&&(e.push(i),t=!t||t.index<i.index?i:t),!0})),this._placeholders={all:e,last:t}}return this._placeholders}get placeholders(){const{all:e}=this.placeholderInfo;return e}offset(e){let t=0,i=!1;return this.walk((s=>s===e?(i=!0,!1):(t+=s.len(),!0))),i?t:-1}fullLen(e){let t=0;return u([e],(e=>(t+=e.len(),!0))),t}enclosingPlaceholders(e){const t=[];let{parent:i}=e;for(;i;)i instanceof a&&t.push(i),i=i.parent;return t}resolveVariables(e){return this.walk((t=>(t instanceof d&&t.resolve(e)&&(this._placeholders=void 0),!0))),this}appendChild(e){return this._placeholders=void 0,super.appendChild(e)}replace(e,t){return this._placeholders=void 0,super.replace(e,t)}clone(){const e=new g;return this._children=this.children.map((e=>e.clone())),e}walk(e){u(this.children,e)}}class p{constructor(){this._scanner=new s,this._token={type:14,pos:0,len:0}}static escape(e){return e.replace(/\$|}|\\/g,"\\$&")}static guessNeedsClipboard(e){return/\${?CLIPBOARD/.test(e)}parse(e,t,i){const s=new g;return this.parseFragment(e,s),this.ensureFinalTabstop(s,i??!1,t??!1),s}parseFragment(e,t){const i=t.children.length;for(this._scanner.text(e),this._token=this._scanner.next();this._parse(t););const s=new Map,n=[];t.walk((e=>(e instanceof a&&(e.isFinalTabstop?s.set(0,void 0):!s.has(e.index)&&e.children.length>0?s.set(e.index,e.children):n.push(e)),!0)));const r=(e,i)=>{const n=s.get(e.index);if(!n)return;const o=new a(e.index);o.transform=e.transform;for(const t of n){const e=t.clone();o.appendChild(e),e instanceof a&&s.has(e.index)&&!i.has(e.index)&&(i.add(e.index),r(e,i),i.delete(e.index))}t.replace(e,[o])},o=new Set;for(const a of n)r(a,o);return t.children.slice(i)}ensureFinalTabstop(e,t,i){if(t||i&&e.placeholders.length>0){e.placeholders.find((e=>0===e.index))||e.appendChild(new a(0))}}_accept(e,t){if(void 0===e||this._token.type===e){const e=!t||this._scanner.tokenText(this._token);return this._token=this._scanner.next(),e}return!1}_backTo(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}_until(e){const t=this._token;for(;this._token.type!==e;){if(14===this._token.type)return!1;if(5===this._token.type){const e=this._scanner.next();if(0!==e.type&&4!==e.type&&5!==e.type)return!1}this._token=this._scanner.next()}const i=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),i}_parse(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)}_parseEscaped(e){let t;return!!(t=this._accept(5,!0))&&(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||t,e.appendChild(new r(t)),!0)}_parseTabstopOrVariableName(e){let t;const i=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new a(Number(t)):new d(t)),!0):this._backTo(i)}_parseComplexPlaceholder(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(i);const s=new a(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(s),!0;if(!this._parse(s))return e.appendChild(new r("${"+t+":")),s.children.forEach(e.appendChild,e),!0}else{if(!(s.index>0&&this._accept(7)))return this._accept(6)?this._parseTransform(s)?(e.appendChild(s),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(s),!0):this._backTo(i);{const t=new c;for(;;){if(this._parseChoiceElement(t)){if(this._accept(2))continue;if(this._accept(7)&&(s.appendChild(t),this._accept(4)))return e.appendChild(s),!0}return this._backTo(i),!1}}}}_parseChoiceElement(e){const t=this._token,i=[];for(;2!==this._token.type&&7!==this._token.type;){let e;if(e=(e=this._accept(5,!0))?this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||e:this._accept(void 0,!0),!e)return this._backTo(t),!1;i.push(e)}return 0===i.length?(this._backTo(t),!1):(e.appendChild(new r(i.join(""))),!0)}_parseComplexVariable(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(i);const s=new d(t);if(!this._accept(1))return this._accept(6)?this._parseTransform(s)?(e.appendChild(s),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(s),!0):this._backTo(i);for(;;){if(this._accept(4))return e.appendChild(s),!0;if(!this._parse(s))return e.appendChild(new r("${"+t+":")),s.children.forEach(e.appendChild,e),!0}}_parseTransform(e){const t=new l;let i="",s="";for(;!this._accept(6);){let e;if(e=this._accept(5,!0))e=this._accept(6,!0)||e,i+=e;else{if(14===this._token.type)return!1;i+=this._accept(void 0,!0)}}for(;!this._accept(6);){let e;if(e=this._accept(5,!0))e=this._accept(5,!0)||this._accept(6,!0)||e,t.appendChild(new r(e));else if(!this._parseFormatString(t)&&!this._parseAnything(t))return!1}for(;!this._accept(4);){if(14===this._token.type)return!1;s+=this._accept(void 0,!0)}try{t.regexp=new RegExp(i,s)}catch(n){return!1}return e.transform=t,!0}_parseFormatString(e){const t=this._token;if(!this._accept(0))return!1;let i=!1;this._accept(3)&&(i=!0);const s=this._accept(8,!0);if(!s)return this._backTo(t),!1;if(!i)return e.appendChild(new h(Number(s))),!0;if(this._accept(4))return e.appendChild(new h(Number(s))),!0;if(!this._accept(1))return this._backTo(t),!1;if(this._accept(6)){const i=this._accept(9,!0);return i&&this._accept(4)?(e.appendChild(new h(Number(s),i)),!0):(this._backTo(t),!1)}if(this._accept(11)){const t=this._until(4);if(t)return e.appendChild(new h(Number(s),void 0,t,void 0)),!0}else if(this._accept(12)){const t=this._until(4);if(t)return e.appendChild(new h(Number(s),void 0,void 0,t)),!0}else if(this._accept(13)){const t=this._until(1);if(t){const i=this._until(4);if(i)return e.appendChild(new h(Number(s),void 0,t,i)),!0}}else{const t=this._until(4);if(t)return e.appendChild(new h(Number(s),void 0,void 0,t)),!0}return this._backTo(t),!1}_parseAnything(e){return 14!==this._token.type&&(e.appendChild(new r(this._scanner.tokenText(this._token))),this._accept(void 0),!0)}}},29611:(e,t,i)=>{"use strict";i.d(t,{f:()=>s});class s{constructor(e,t,i,s,n,r,o){this.id=e,this.label=t,this.alias=i,this.metadata=s,this._precondition=n,this._run=r,this._contextKeyService=o}isSupported(){return this._contextKeyService.contextMatchesRules(this._precondition)}run(e){return this.isSupported()?this._run(e):Promise.resolve(void 0)}}},29818:e=>{e.exports=function(){function e(e){return e.$value}return e.isScalar=!0,e}},29999:(e,t,i)=>{"use strict";i.d(t,{LC:()=>C,e0:()=>E,gW:()=>S,i9:()=>b});var s=i(25890),n=i(18447),r=i(64383),o=i(42522),a=i(74320),c=i(83069),l=i(36677),h=i(32500),d=i(63591),u=i(14718),g=i(23750),p=i(5662),m=i(56942),f=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},_=function(e,t){return function(i,s){t(i,s,e)}};class v{remove(){this.parent?.children.delete(this.id)}static findId(e,t){let i;"string"===typeof e?i=`${t.id}/${e}`:(i=`${t.id}/${e.name}`,void 0!==t.children.get(i)&&(i=`${t.id}/${e.name}_${e.range.startLineNumber}_${e.range.startColumn}`));let s=i;for(let n=0;void 0!==t.children.get(s);n++)s=`${i}_${n}`;return s}static empty(e){return 0===e.children.size}}class C extends v{constructor(e,t,i){super(),this.id=e,this.parent=t,this.symbol=i,this.children=new Map}}class E extends v{constructor(e,t,i,s){super(),this.id=e,this.parent=t,this.label=i,this.order=s,this.children=new Map}}class b extends v{static create(e,t,i){const o=new n.Qi(i),a=new b(t.uri),c=e.ordered(t),l=c.map(((e,i)=>{const s=v.findId(`provider_${i}`,a),n=new E(s,a,e.displayName??"Unknown Outline Provider",i);return Promise.resolve(e.provideDocumentSymbols(t,o.token)).then((e=>{for(const t of e||[])b._makeOutlineElement(t,n);return n}),(e=>((0,r.M_)(e),n))).then((e=>{v.empty(e)?e.remove():a._groups.set(s,e)}))})),h=e.onDidChange((()=>{const i=e.ordered(t);(0,s.aI)(i,c)||o.cancel()}));return Promise.all(l).then((()=>o.token.isCancellationRequested&&!i.isCancellationRequested?b.create(e,t,i):a._compact())).finally((()=>{o.dispose(),h.dispose(),o.dispose()}))}static _makeOutlineElement(e,t){const i=v.findId(e,t),s=new C(i,t,e);if(e.children)for(const n of e.children)b._makeOutlineElement(n,s);t.children.set(s.id,s)}constructor(e){super(),this.uri=e,this.id="root",this.parent=void 0,this._groups=new Map,this.children=new Map,this.id="root",this.parent=void 0}_compact(){let e=0;for(const[t,i]of this._groups)0===i.children.size?this._groups.delete(t):e+=1;if(1!==e)this.children=this._groups;else{const e=o.f.first(this._groups.values());for(const[,t]of e.children)t.parent=this,this.children.set(t.id,t)}return this}getTopLevelSymbols(){const e=[];for(const t of this.children.values())t instanceof C?e.push(t.symbol):e.push(...o.f.map(t.children.values(),(e=>e.symbol)));return e.sort(((e,t)=>l.Q.compareRangesUsingStarts(e.range,t.range)))}asListOfDocumentSymbols(){const e=this.getTopLevelSymbols(),t=[];return b._flattenDocumentSymbols(t,e,""),t.sort(((e,t)=>c.y.compare(l.Q.getStartPosition(e.range),l.Q.getStartPosition(t.range))||c.y.compare(l.Q.getEndPosition(t.range),l.Q.getEndPosition(e.range))))}static _flattenDocumentSymbols(e,t,i){for(const s of t)e.push({kind:s.kind,tags:s.tags,name:s.name,detail:s.detail,containerName:s.containerName||i,range:s.range,selectionRange:s.selectionRange,children:void 0}),s.children&&b._flattenDocumentSymbols(e,s.children,s.name)}}const S=(0,d.u1)("IOutlineModelService");let y=class{constructor(e,t,i){this._languageFeaturesService=e,this._disposables=new p.Cm,this._cache=new a.qK(10,.7),this._debounceInformation=t.for(e.documentSymbolProvider,"DocumentSymbols",{min:350}),this._disposables.add(i.onModelRemoved((e=>{this._cache.delete(e.id)})))}dispose(){this._disposables.dispose()}async getOrCreate(e,t){const i=this._languageFeaturesService.documentSymbolProvider,r=i.ordered(e);let o=this._cache.get(e.id);if(!o||o.versionId!==e.getVersionId()||!(0,s.aI)(o.provider,r)){const t=new n.Qi;o={versionId:e.getVersionId(),provider:r,promiseCnt:0,source:t,promise:b.create(i,e,t.token),model:void 0},this._cache.set(e.id,o);const s=Date.now();o.promise.then((t=>{o.model=t,this._debounceInformation.update(e,Date.now()-s)})).catch((t=>{this._cache.delete(e.id)}))}if(o.model)return o.model;o.promiseCnt+=1;const a=t.onCancellationRequested((()=>{0===--o.promiseCnt&&(o.source.cancel(),this._cache.delete(e.id))}));try{return await o.promise}finally{a.dispose()}}};y=f([_(0,m.ILanguageFeaturesService),_(1,h.ILanguageFeatureDebounceService),_(2,g.IModelService)],y),(0,u.v)(S,y,1)},30076:(e,t,i)=>{"use strict";i.d(t,{O:()=>r,e:()=>n});var s=i(59911);function n(){return s._K&&!!s._K.VSCODE_DEV}function r(e){if(n()){const t=function(){o||(o=new Set);const e=globalThis;e.$hotReload_applyNewExports||(e.$hotReload_applyNewExports=e=>{const t={config:{mode:void 0},...e},i=[];for(const s of o){const e=s(t);e&&i.push(e)}if(i.length>0)return e=>{let t=!1;for(const s of i)s(e)&&(t=!0);return t}});return o}();return t.add(e),{dispose(){t.delete(e)}}}return{dispose(){}}}let o;n()&&r((({oldExports:e,newSrc:t,config:i})=>{if("patch-prototype"===i.mode)return t=>{for(const i in t){const s=t[i];if(console.log(`[hot-reload] Patching prototype methods of '${i}'`,{exportedItem:s}),"function"===typeof s&&s.prototype){const n=e[i];if(n){for(const e of Object.getOwnPropertyNames(s.prototype)){const t=Object.getOwnPropertyDescriptor(s.prototype,e),r=Object.getOwnPropertyDescriptor(n.prototype,e);t?.value?.toString()!==r?.value?.toString()&&console.log(`[hot-reload] Patching prototype method '${i}.${e}'`),Object.defineProperty(n.prototype,e,t)}t[i]=n}}}return!0}}))},30707:(e,t,i)=>{"use strict";i.r(t),i.d(t,{MarkerDecorationsService:()=>_});var s=i(75147),n=i(5662),r=i(16223),o=i(47612),a=i(87119),c=i(23750),l=i(36677),h=i(36456),d=i(41234),u=i(66261),g=i(74320),p=i(48495),m=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},f=function(e,t){return function(i,s){t(i,s,e)}};let _=class extends n.jG{constructor(e,t){super(),this._markerService=t,this._onDidChangeMarker=this._register(new d.vl),this._markerDecorations=new g.fT,e.getModels().forEach((e=>this._onModelAdded(e))),this._register(e.onModelAdded(this._onModelAdded,this)),this._register(e.onModelRemoved(this._onModelRemoved,this)),this._register(this._markerService.onMarkerChanged(this._handleMarkerChange,this))}dispose(){super.dispose(),this._markerDecorations.forEach((e=>e.dispose())),this._markerDecorations.clear()}getMarker(e,t){const i=this._markerDecorations.get(e);return i&&i.getMarker(t)||null}_handleMarkerChange(e){e.forEach((e=>{const t=this._markerDecorations.get(e);t&&this._updateDecorations(t)}))}_onModelAdded(e){const t=new v(e);this._markerDecorations.set(e.uri,t),this._updateDecorations(t)}_onModelRemoved(e){const t=this._markerDecorations.get(e.uri);t&&(t.dispose(),this._markerDecorations.delete(e.uri)),e.uri.scheme!==h.ny.inMemory&&e.uri.scheme!==h.ny.internal&&e.uri.scheme!==h.ny.vscode||this._markerService?.read({resource:e.uri}).map((e=>e.owner)).forEach((t=>this._markerService.remove(t,[e.uri])))}_updateDecorations(e){const t=this._markerService.read({resource:e.model.uri,take:500});e.update(t)&&this._onDidChangeMarker.fire(e.model)}};_=m([f(0,c.IModelService),f(1,s.DR)],_);class v extends n.jG{constructor(e){super(),this.model=e,this._map=new g.cO,this._register((0,n.s)((()=>{this.model.deltaDecorations([...this._map.values()],[]),this._map.clear()})))}update(e){const{added:t,removed:i}=(0,p.Z)(new Set(this._map.keys()),new Set(e));if(0===t.length&&0===i.length)return!1;const s=i.map((e=>this._map.get(e))),n=t.map((e=>({range:this._createDecorationRange(this.model,e),options:this._createDecorationOption(e)}))),r=this.model.deltaDecorations(s,n);for(const o of i)this._map.delete(o);for(let o=0;o<r.length;o++)this._map.set(t[o],r[o]);return!0}getMarker(e){return this._map.getKey(e.id)}_createDecorationRange(e,t){let i=l.Q.lift(t);if(t.severity!==s.cj.Hint||this._hasMarkerTag(t,1)||this._hasMarkerTag(t,2)||(i=i.setEndPosition(i.startLineNumber,i.startColumn+2)),i=e.validateRange(i),i.isEmpty()){const t=e.getLineLastNonWhitespaceColumn(i.startLineNumber)||e.getLineMaxColumn(i.startLineNumber);if(1===t||i.endColumn>=t)return i;const s=e.getWordAtPosition(i.getStartPosition());s&&(i=new l.Q(i.startLineNumber,s.startColumn,i.endLineNumber,s.endColumn))}else if(t.endColumn===Number.MAX_VALUE&&1===t.startColumn&&i.startLineNumber===i.endLineNumber){const s=e.getLineFirstNonWhitespaceColumn(t.startLineNumber);s<i.endColumn&&(i=new l.Q(i.startLineNumber,s,i.endLineNumber,i.endColumn),t.startColumn=s)}return i}_createDecorationOption(e){let t,i,n,c,l;switch(e.severity){case s.cj.Hint:t=this._hasMarkerTag(e,2)?void 0:this._hasMarkerTag(e,1)?"squiggly-unnecessary":"squiggly-hint",n=0;break;case s.cj.Info:t="squiggly-info",i=(0,o.Yf)(a.AQ),n=10,l={color:(0,o.Yf)(u.KoI),position:1};break;case s.cj.Warning:t="squiggly-warning",i=(0,o.Yf)(a.aZ),n=20,l={color:(0,o.Yf)(u.uMG),position:1};break;case s.cj.Error:default:t="squiggly-error",i=(0,o.Yf)(a.yI),n=30,l={color:(0,o.Yf)(u.yLC),position:1}}return e.tags&&(-1!==e.tags.indexOf(1)&&(c="squiggly-inline-unnecessary"),-1!==e.tags.indexOf(2)&&(c="squiggly-inline-deprecated")),{description:"marker-decoration",stickiness:1,className:t,showIfCollapsed:!0,overviewRuler:{color:i,position:r.A5.Right},minimap:l,zIndex:n,inlineClassName:c}}_hasMarkerTag(e,t){return!!e.tags&&e.tags.indexOf(t)>=0}}},30936:(e,t,i)=>{"use strict";i.d(t,{O:()=>C});var s,n=i(5662),r=i(631),o=i(31450),a=i(83069),c=i(60002),l=i(17469),h=i(56942),d=i(48116),u=i(78209),g=i(32848),p=i(18801),m=i(38280),f=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},_=function(e,t){return function(i,s){t(i,s,e)}};const v={overwriteBefore:0,overwriteAfter:0,undoStopBefore:!0,undoStopAfter:!0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0};let C=class{static{s=this}static{this.ID="snippetController2"}static get(e){return e.getContribution(s.ID)}static{this.InSnippetMode=new g.N1("inSnippetMode",!1,(0,u.kg)("inSnippetMode","Whether the editor in current in snippet mode"))}static{this.HasNextTabstop=new g.N1("hasNextTabstop",!1,(0,u.kg)("hasNextTabstop","Whether there is a next tab stop when in snippet mode"))}static{this.HasPrevTabstop=new g.N1("hasPrevTabstop",!1,(0,u.kg)("hasPrevTabstop","Whether there is a previous tab stop when in snippet mode"))}constructor(e,t,i,r,o){this._editor=e,this._logService=t,this._languageFeaturesService=i,this._languageConfigurationService=o,this._snippetListener=new n.Cm,this._modelVersionId=-1,this._inSnippet=s.InSnippetMode.bindTo(r),this._hasNextTabstop=s.HasNextTabstop.bindTo(r),this._hasPrevTabstop=s.HasPrevTabstop.bindTo(r)}dispose(){this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),this._session?.dispose(),this._snippetListener.dispose()}insert(e,t){try{this._doInsert(e,"undefined"===typeof t?v:{...v,...t})}catch(i){this.cancel(),this._logService.error(i),this._logService.error("snippet_error"),this._logService.error("insert_template=",e),this._logService.error("existing_template=",this._session?this._session._logInfo():"<no_session>")}}_doInsert(e,t){if(this._editor.hasModel()){if(this._snippetListener.clear(),t.undoStopBefore&&this._editor.getModel().pushStackElement(),this._session&&"string"!==typeof e&&this.cancel(),this._session?((0,r.j)("string"===typeof e),this._session.merge(e,t)):(this._modelVersionId=this._editor.getModel().getAlternativeVersionId(),this._session=new m.O(this._editor,e,t,this._languageConfigurationService),this._session.insert()),t.undoStopAfter&&this._editor.getModel().pushStackElement(),this._session?.hasChoice){const e={_debugDisplayName:"snippetChoiceCompletions",provideCompletionItems:(e,t)=>{if(!this._session||e!==this._editor.getModel()||!a.y.equals(this._editor.getPosition(),t))return;const{activeChoice:i}=this._session;if(!i||0===i.choice.options.length)return;const s=e.getValueInRange(i.range),n=Boolean(i.choice.options.find((e=>e.value===s))),r=[];for(let o=0;o<i.choice.options.length;o++){const e=i.choice.options[o];r.push({kind:13,label:e.value,insertText:e.value,sortText:"a".repeat(o+1),range:i.range,filterText:n?`${s}_${e.value}`:void 0,command:{id:"jumpToNextSnippetPlaceholder",title:(0,u.kg)("next","Go to next placeholder...")}})}return{suggestions:r}}},t=this._editor.getModel();let i,s=!1;const n=()=>{i?.dispose(),s=!1},r=()=>{s||(i=this._languageFeaturesService.completionProvider.register({language:t.getLanguageId(),pattern:t.uri.fsPath,scheme:t.uri.scheme,exclusive:!0},e),this._snippetListener.add(i),s=!0)};this._choiceCompletions={provider:e,enable:r,disable:n}}this._updateState(),this._snippetListener.add(this._editor.onDidChangeModelContent((e=>e.isFlush&&this.cancel()))),this._snippetListener.add(this._editor.onDidChangeModel((()=>this.cancel()))),this._snippetListener.add(this._editor.onDidChangeCursorSelection((()=>this._updateState())))}}_updateState(){if(this._session&&this._editor.hasModel()){if(this._modelVersionId===this._editor.getModel().getAlternativeVersionId())return this.cancel();if(!this._session.hasPlaceholder)return this.cancel();if(this._session.isAtLastPlaceholder||!this._session.isSelectionWithinPlaceholders())return this._editor.getModel().pushStackElement(),this.cancel();this._inSnippet.set(!0),this._hasPrevTabstop.set(!this._session.isAtFirstPlaceholder),this._hasNextTabstop.set(!this._session.isAtLastPlaceholder),this._handleChoice()}}_handleChoice(){if(!this._session||!this._editor.hasModel())return void(this._currentChoice=void 0);const{activeChoice:e}=this._session;if(!e||!this._choiceCompletions)return this._choiceCompletions?.disable(),void(this._currentChoice=void 0);this._currentChoice!==e.choice&&(this._currentChoice=e.choice,this._choiceCompletions.enable(),queueMicrotask((()=>{(0,d.p3)(this._editor,this._choiceCompletions.provider)})))}finish(){for(;this._inSnippet.get();)this.next()}cancel(e=!1){this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),this._snippetListener.clear(),this._currentChoice=void 0,this._session?.dispose(),this._session=void 0,this._modelVersionId=-1,e&&this._editor.setSelections([this._editor.getSelection()])}prev(){this._session?.prev(),this._updateState()}next(){this._session?.next(),this._updateState()}isInSnippet(){return Boolean(this._inSnippet.get())}};C=s=f([_(1,p.rr),_(2,h.ILanguageFeaturesService),_(3,g.fN),_(4,l.JZ)],C),(0,o.HW)(C.ID,C,4);const E=o.DX.bindToContribution(C.get);(0,o.E_)(new E({id:"jumpToNextSnippetPlaceholder",precondition:g.M$.and(C.InSnippetMode,C.HasNextTabstop),handler:e=>e.next(),kbOpts:{weight:130,kbExpr:c.R.textInputFocus,primary:2}})),(0,o.E_)(new E({id:"jumpToPrevSnippetPlaceholder",precondition:g.M$.and(C.InSnippetMode,C.HasPrevTabstop),handler:e=>e.prev(),kbOpts:{weight:130,kbExpr:c.R.textInputFocus,primary:1026}})),(0,o.E_)(new E({id:"leaveSnippet",precondition:C.InSnippetMode,handler:e=>e.cancel(!0),kbOpts:{weight:130,kbExpr:c.R.textInputFocus,primary:9,secondary:[1033]}})),(0,o.E_)(new E({id:"acceptSnippet",precondition:C.InSnippetMode,handler:e=>e.finish()}))},31295:(e,t,i)=>{"use strict";i.d(t,{MU:()=>x,QC:()=>w,Se:()=>L,oO:()=>T});var s=i(60413),n=i(8597),r=i(55275),o=i(47358),a=i(34072),c=i(17390),l=i(90766),h=i(25689);const d=11;class u extends c.x{constructor(e){super(),this._onActivate=e.onActivate,this.bgDomNode=document.createElement("div"),this.bgDomNode.className="arrow-background",this.bgDomNode.style.position="absolute",this.bgDomNode.style.width=e.bgWidth+"px",this.bgDomNode.style.height=e.bgHeight+"px","undefined"!==typeof e.top&&(this.bgDomNode.style.top="0px"),"undefined"!==typeof e.left&&(this.bgDomNode.style.left="0px"),"undefined"!==typeof e.bottom&&(this.bgDomNode.style.bottom="0px"),"undefined"!==typeof e.right&&(this.bgDomNode.style.right="0px"),this.domNode=document.createElement("div"),this.domNode.className=e.className,this.domNode.classList.add(...h.L.asClassNameArray(e.icon)),this.domNode.style.position="absolute",this.domNode.style.width="11px",this.domNode.style.height="11px","undefined"!==typeof e.top&&(this.domNode.style.top=e.top+"px"),"undefined"!==typeof e.left&&(this.domNode.style.left=e.left+"px"),"undefined"!==typeof e.bottom&&(this.domNode.style.bottom=e.bottom+"px"),"undefined"!==typeof e.right&&(this.domNode.style.right=e.right+"px"),this._pointerMoveMonitor=this._register(new a._),this._register(n.b2(this.bgDomNode,n.Bx.POINTER_DOWN,(e=>this._arrowPointerDown(e)))),this._register(n.b2(this.domNode,n.Bx.POINTER_DOWN,(e=>this._arrowPointerDown(e)))),this._pointerdownRepeatTimer=this._register(new n.Be),this._pointerdownScheduleRepeatTimer=this._register(new l.pc)}_arrowPointerDown(e){if(!e.target||!(e.target instanceof Element))return;this._onActivate(),this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancelAndSet((()=>{this._pointerdownRepeatTimer.cancelAndSet((()=>this._onActivate()),1e3/24,n.zk(e))}),200),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,(e=>{}),(()=>{this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancel()})),e.preventDefault()}}var g=i(5662);class p extends g.jG{constructor(e,t,i){super(),this._visibility=e,this._visibleClassName=t,this._invisibleClassName=i,this._domNode=null,this._isVisible=!1,this._isNeeded=!1,this._rawShouldBeVisible=!1,this._shouldBeVisible=!1,this._revealTimer=this._register(new l.pc)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this._updateShouldBeVisible())}setShouldBeVisible(e){this._rawShouldBeVisible=e,this._updateShouldBeVisible()}_applyVisibilitySetting(){return 2!==this._visibility&&(3===this._visibility||this._rawShouldBeVisible)}_updateShouldBeVisible(){const e=this._applyVisibilitySetting();this._shouldBeVisible!==e&&(this._shouldBeVisible=e,this.ensureVisibility())}setIsNeeded(e){this._isNeeded!==e&&(this._isNeeded=e,this.ensureVisibility())}setDomNode(e){this._domNode=e,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)}ensureVisibility(){this._isNeeded?this._shouldBeVisible?this._reveal():this._hide(!0):this._hide(!1)}_reveal(){this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet((()=>{this._domNode?.setClassName(this._visibleClassName)}),0))}_hide(e){this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,this._domNode?.setClassName(this._invisibleClassName+(e?" fade":"")))}}var m=i(98067);class f extends c.x{constructor(e){super(),this._lazyRender=e.lazyRender,this._host=e.host,this._scrollable=e.scrollable,this._scrollByPage=e.scrollByPage,this._scrollbarState=e.scrollbarState,this._visibilityController=this._register(new p(e.visibility,"visible scrollbar "+e.extraScrollbarClassName,"invisible scrollbar "+e.extraScrollbarClassName)),this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._pointerMoveMonitor=this._register(new a._),this._shouldRender=!0,this.domNode=(0,r.Z)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this._visibilityController.setDomNode(this.domNode),this.domNode.setPosition("absolute"),this._register(n.ko(this.domNode.domNode,n.Bx.POINTER_DOWN,(e=>this._domNodePointerDown(e))))}_createArrow(e){const t=this._register(new u(e));this.domNode.domNode.appendChild(t.bgDomNode),this.domNode.domNode.appendChild(t.domNode)}_createSlider(e,t,i,s){this.slider=(0,r.Z)(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(e),this.slider.setLeft(t),"number"===typeof i&&this.slider.setWidth(i),"number"===typeof s&&this.slider.setHeight(s),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this._register(n.ko(this.slider.domNode,n.Bx.POINTER_DOWN,(e=>{0===e.button&&(e.preventDefault(),this._sliderPointerDown(e))}))),this.onclick(this.slider.domNode,(e=>{e.leftButton&&e.stopPropagation()}))}_onElementSize(e){return this._scrollbarState.setVisibleSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollSize(e){return this._scrollbarState.setScrollSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollPosition(e){return this._scrollbarState.setScrollPosition(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}beginReveal(){this._visibilityController.setShouldBeVisible(!0)}beginHide(){this._visibilityController.setShouldBeVisible(!1)}render(){this._shouldRender&&(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))}_domNodePointerDown(e){e.target===this.domNode.domNode&&this._onPointerDown(e)}delegatePointerDown(e){const t=this.domNode.domNode.getClientRects()[0].top,i=t+this._scrollbarState.getSliderPosition(),s=t+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),n=this._sliderPointerPosition(e);i<=n&&n<=s?0===e.button&&(e.preventDefault(),this._sliderPointerDown(e)):this._onPointerDown(e)}_onPointerDown(e){let t,i;if(e.target===this.domNode.domNode&&"number"===typeof e.offsetX&&"number"===typeof e.offsetY)t=e.offsetX,i=e.offsetY;else{const s=n.BK(this.domNode.domNode);t=e.pageX-s.left,i=e.pageY-s.top}const s=this._pointerDownRelativePosition(t,i);this._setDesiredScrollPositionNow(this._scrollByPage?this._scrollbarState.getDesiredScrollPositionFromOffsetPaged(s):this._scrollbarState.getDesiredScrollPositionFromOffset(s)),0===e.button&&(e.preventDefault(),this._sliderPointerDown(e))}_sliderPointerDown(e){if(!e.target||!(e.target instanceof Element))return;const t=this._sliderPointerPosition(e),i=this._sliderOrthogonalPointerPosition(e),s=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,(e=>{const n=this._sliderOrthogonalPointerPosition(e),r=Math.abs(n-i);if(m.uF&&r>140)return void this._setDesiredScrollPositionNow(s.getScrollPosition());const o=this._sliderPointerPosition(e)-t;this._setDesiredScrollPositionNow(s.getDesiredScrollPositionFromDelta(o))}),(()=>{this.slider.toggleClassName("active",!1),this._host.onDragEnd()})),this._host.onDragStart()}_setDesiredScrollPositionNow(e){const t={};this.writeScrollPosition(t,e),this._scrollable.setScrollPositionNow(t)}updateScrollbarSize(e){this._updateScrollbarSize(e),this._scrollbarState.setScrollbarSize(e),this._shouldRender=!0,this._lazyRender||this.render()}isNeeded(){return this._scrollbarState.isNeeded()}}var _=i(74850),v=i(10350);class C extends f{constructor(e,t,i){const s=e.getScrollDimensions(),n=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:i,scrollbarState:new _.m(t.horizontalHasArrows?t.arrowSize:0,2===t.horizontal?0:t.horizontalScrollbarSize,2===t.vertical?0:t.verticalScrollbarSize,s.width,s.scrollWidth,n.scrollLeft),visibility:t.horizontal,extraScrollbarClassName:"horizontal",scrollable:e,scrollByPage:t.scrollByPage}),t.horizontalHasArrows){const e=(t.arrowSize-d)/2,i=(t.horizontalScrollbarSize-d)/2;this._createArrow({className:"scra",icon:v.W.scrollbarButtonLeft,top:i,left:e,bottom:void 0,right:void 0,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new o.$(null,1,0))}),this._createArrow({className:"scra",icon:v.W.scrollbarButtonRight,top:i,left:void 0,bottom:void 0,right:e,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new o.$(null,-1,0))})}this._createSlider(Math.floor((t.horizontalScrollbarSize-t.horizontalSliderSize)/2),0,void 0,t.horizontalSliderSize)}_updateSlider(e,t){this.slider.setWidth(e),this.slider.setLeft(t)}_renderDomNode(e,t){this.domNode.setWidth(e),this.domNode.setHeight(t),this.domNode.setLeft(0),this.domNode.setBottom(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(e.width)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(e,t){return e}_sliderPointerPosition(e){return e.pageX}_sliderOrthogonalPointerPosition(e){return e.pageY}_updateScrollbarSize(e){this.slider.setHeight(e)}writeScrollPosition(e,t){e.scrollLeft=t}updateOptions(e){this.updateScrollbarSize(2===e.horizontal?0:e.horizontalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(2===e.vertical?0:e.verticalScrollbarSize),this._visibilityController.setVisibility(e.horizontal),this._scrollByPage=e.scrollByPage}}class E extends f{constructor(e,t,i){const s=e.getScrollDimensions(),n=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:i,scrollbarState:new _.m(t.verticalHasArrows?t.arrowSize:0,2===t.vertical?0:t.verticalScrollbarSize,0,s.height,s.scrollHeight,n.scrollTop),visibility:t.vertical,extraScrollbarClassName:"vertical",scrollable:e,scrollByPage:t.scrollByPage}),t.verticalHasArrows){const e=(t.arrowSize-d)/2,i=(t.verticalScrollbarSize-d)/2;this._createArrow({className:"scra",icon:v.W.scrollbarButtonUp,top:e,left:i,bottom:void 0,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new o.$(null,0,1))}),this._createArrow({className:"scra",icon:v.W.scrollbarButtonDown,top:void 0,left:i,bottom:e,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new o.$(null,0,-1))})}this._createSlider(0,Math.floor((t.verticalScrollbarSize-t.verticalSliderSize)/2),t.verticalSliderSize,void 0)}_updateSlider(e,t){this.slider.setHeight(e),this.slider.setTop(t)}_renderDomNode(e,t){this.domNode.setWidth(t),this.domNode.setHeight(e),this.domNode.setRight(0),this.domNode.setTop(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(e.height)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(e,t){return t}_sliderPointerPosition(e){return e.pageY}_sliderOrthogonalPointerPosition(e){return e.pageX}_updateScrollbarSize(e){this.slider.setWidth(e)}writeScrollPosition(e,t){e.scrollTop=t}updateOptions(e){this.updateScrollbarSize(2===e.vertical?0:e.verticalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(0),this._visibilityController.setVisibility(e.vertical),this._scrollByPage=e.scrollByPage}}var b=i(41234),S=i(49353);class y{constructor(e,t,i){this.timestamp=e,this.deltaX=t,this.deltaY=i,this.score=0}}class w{static{this.INSTANCE=new w}constructor(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}isPhysicalMouseWheel(){if(-1===this._front&&-1===this._rear)return!1;let e=1,t=0,i=1,s=this._rear;for(;;){const n=s===this._front?e:Math.pow(2,-i);if(e-=n,t+=this._memory[s].score*n,s===this._front)break;s=(this._capacity+s-1)%this._capacity,i++}return t<=.5}acceptStandardWheelEvent(e){if(s.H8){const t=n.zk(e.browserEvent),i=(0,s.pR)(t);this.accept(Date.now(),e.deltaX*i,e.deltaY*i)}else this.accept(Date.now(),e.deltaX,e.deltaY)}accept(e,t,i){let s=null;const n=new y(e,t,i);-1===this._front&&-1===this._rear?(this._memory[0]=n,this._front=0,this._rear=0):(s=this._memory[this._rear],this._rear=(this._rear+1)%this._capacity,this._rear===this._front&&(this._front=(this._front+1)%this._capacity),this._memory[this._rear]=n),n.score=this._computeScore(n,s)}_computeScore(e,t){if(Math.abs(e.deltaX)>0&&Math.abs(e.deltaY)>0)return 1;let i=.5;if(this._isAlmostInt(e.deltaX)&&this._isAlmostInt(e.deltaY)||(i+=.25),t){const s=Math.abs(e.deltaX),n=Math.abs(e.deltaY),r=Math.abs(t.deltaX),o=Math.abs(t.deltaY),a=Math.max(Math.min(s,r),1),c=Math.max(Math.min(n,o),1),l=Math.max(s,r),h=Math.max(n,o);l%a===0&&h%c===0&&(i-=.5)}return Math.min(Math.max(i,0),1)}_isAlmostInt(e){return Math.abs(Math.round(e)-e)<.01}}class R extends c.x{get options(){return this._options}constructor(e,t,i){super(),this._onScroll=this._register(new b.vl),this.onScroll=this._onScroll.event,this._onWillScroll=this._register(new b.vl),e.style.overflow="hidden",this._options=function(e){const t={lazyRender:"undefined"!==typeof e.lazyRender&&e.lazyRender,className:"undefined"!==typeof e.className?e.className:"",useShadows:"undefined"===typeof e.useShadows||e.useShadows,handleMouseWheel:"undefined"===typeof e.handleMouseWheel||e.handleMouseWheel,flipAxes:"undefined"!==typeof e.flipAxes&&e.flipAxes,consumeMouseWheelIfScrollbarIsNeeded:"undefined"!==typeof e.consumeMouseWheelIfScrollbarIsNeeded&&e.consumeMouseWheelIfScrollbarIsNeeded,alwaysConsumeMouseWheel:"undefined"!==typeof e.alwaysConsumeMouseWheel&&e.alwaysConsumeMouseWheel,scrollYToX:"undefined"!==typeof e.scrollYToX&&e.scrollYToX,mouseWheelScrollSensitivity:"undefined"!==typeof e.mouseWheelScrollSensitivity?e.mouseWheelScrollSensitivity:1,fastScrollSensitivity:"undefined"!==typeof e.fastScrollSensitivity?e.fastScrollSensitivity:5,scrollPredominantAxis:"undefined"===typeof e.scrollPredominantAxis||e.scrollPredominantAxis,mouseWheelSmoothScroll:"undefined"===typeof e.mouseWheelSmoothScroll||e.mouseWheelSmoothScroll,arrowSize:"undefined"!==typeof e.arrowSize?e.arrowSize:11,listenOnDomNode:"undefined"!==typeof e.listenOnDomNode?e.listenOnDomNode:null,horizontal:"undefined"!==typeof e.horizontal?e.horizontal:1,horizontalScrollbarSize:"undefined"!==typeof e.horizontalScrollbarSize?e.horizontalScrollbarSize:10,horizontalSliderSize:"undefined"!==typeof e.horizontalSliderSize?e.horizontalSliderSize:0,horizontalHasArrows:"undefined"!==typeof e.horizontalHasArrows&&e.horizontalHasArrows,vertical:"undefined"!==typeof e.vertical?e.vertical:1,verticalScrollbarSize:"undefined"!==typeof e.verticalScrollbarSize?e.verticalScrollbarSize:10,verticalHasArrows:"undefined"!==typeof e.verticalHasArrows&&e.verticalHasArrows,verticalSliderSize:"undefined"!==typeof e.verticalSliderSize?e.verticalSliderSize:0,scrollByPage:"undefined"!==typeof e.scrollByPage&&e.scrollByPage};t.horizontalSliderSize="undefined"!==typeof e.horizontalSliderSize?e.horizontalSliderSize:t.horizontalScrollbarSize,t.verticalSliderSize="undefined"!==typeof e.verticalSliderSize?e.verticalSliderSize:t.verticalScrollbarSize,m.zx&&(t.className+=" mac");return t}(t),this._scrollable=i,this._register(this._scrollable.onScroll((e=>{this._onWillScroll.fire(e),this._onDidScroll(e),this._onScroll.fire(e)})));const s={onMouseWheel:e=>this._onMouseWheel(e),onDragStart:()=>this._onDragStart(),onDragEnd:()=>this._onDragEnd()};this._verticalScrollbar=this._register(new E(this._scrollable,this._options,s)),this._horizontalScrollbar=this._register(new C(this._scrollable,this._options,s)),this._domNode=document.createElement("div"),this._domNode.className="monaco-scrollable-element "+this._options.className,this._domNode.setAttribute("role","presentation"),this._domNode.style.position="relative",this._domNode.style.overflow="hidden",this._domNode.appendChild(e),this._domNode.appendChild(this._horizontalScrollbar.domNode.domNode),this._domNode.appendChild(this._verticalScrollbar.domNode.domNode),this._options.useShadows?(this._leftShadowDomNode=(0,r.Z)(document.createElement("div")),this._leftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._leftShadowDomNode.domNode),this._topShadowDomNode=(0,r.Z)(document.createElement("div")),this._topShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topShadowDomNode.domNode),this._topLeftShadowDomNode=(0,r.Z)(document.createElement("div")),this._topLeftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topLeftShadowDomNode.domNode)):(this._leftShadowDomNode=null,this._topShadowDomNode=null,this._topLeftShadowDomNode=null),this._listenOnDomNode=this._options.listenOnDomNode||this._domNode,this._mouseWheelToDispose=[],this._setListeningToMouseWheel(this._options.handleMouseWheel),this.onmouseover(this._listenOnDomNode,(e=>this._onMouseOver(e))),this.onmouseleave(this._listenOnDomNode,(e=>this._onMouseLeave(e))),this._hideTimeout=this._register(new l.pc),this._isDragging=!1,this._mouseIsOver=!1,this._shouldRender=!0,this._revealOnScroll=!0}dispose(){this._mouseWheelToDispose=(0,g.AS)(this._mouseWheelToDispose),super.dispose()}getDomNode(){return this._domNode}getOverviewRulerLayoutInfo(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}}delegateVerticalScrollbarPointerDown(e){this._verticalScrollbar.delegatePointerDown(e)}getScrollDimensions(){return this._scrollable.getScrollDimensions()}setScrollDimensions(e){this._scrollable.setScrollDimensions(e,!1)}updateClassName(e){this._options.className=e,m.zx&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className}updateOptions(e){"undefined"!==typeof e.handleMouseWheel&&(this._options.handleMouseWheel=e.handleMouseWheel,this._setListeningToMouseWheel(this._options.handleMouseWheel)),"undefined"!==typeof e.mouseWheelScrollSensitivity&&(this._options.mouseWheelScrollSensitivity=e.mouseWheelScrollSensitivity),"undefined"!==typeof e.fastScrollSensitivity&&(this._options.fastScrollSensitivity=e.fastScrollSensitivity),"undefined"!==typeof e.scrollPredominantAxis&&(this._options.scrollPredominantAxis=e.scrollPredominantAxis),"undefined"!==typeof e.horizontal&&(this._options.horizontal=e.horizontal),"undefined"!==typeof e.vertical&&(this._options.vertical=e.vertical),"undefined"!==typeof e.horizontalScrollbarSize&&(this._options.horizontalScrollbarSize=e.horizontalScrollbarSize),"undefined"!==typeof e.verticalScrollbarSize&&(this._options.verticalScrollbarSize=e.verticalScrollbarSize),"undefined"!==typeof e.scrollByPage&&(this._options.scrollByPage=e.scrollByPage),this._horizontalScrollbar.updateOptions(this._options),this._verticalScrollbar.updateOptions(this._options),this._options.lazyRender||this._render()}delegateScrollFromMouseWheelEvent(e){this._onMouseWheel(new o.$(e))}_setListeningToMouseWheel(e){if(this._mouseWheelToDispose.length>0!==e&&(this._mouseWheelToDispose=(0,g.AS)(this._mouseWheelToDispose),e)){const e=e=>{this._onMouseWheel(new o.$(e))};this._mouseWheelToDispose.push(n.ko(this._listenOnDomNode,n.Bx.MOUSE_WHEEL,e,{passive:!1}))}}_onMouseWheel(e){if(e.browserEvent?.defaultPrevented)return;const t=w.INSTANCE;t.acceptStandardWheelEvent(e);let i=!1;if(e.deltaY||e.deltaX){let s=e.deltaY*this._options.mouseWheelScrollSensitivity,n=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.scrollPredominantAxis&&(this._options.scrollYToX&&n+s===0?n=s=0:Math.abs(s)>=Math.abs(n)?n=0:s=0),this._options.flipAxes&&([s,n]=[n,s]);const r=!m.zx&&e.browserEvent&&e.browserEvent.shiftKey;!this._options.scrollYToX&&!r||n||(n=s,s=0),e.browserEvent&&e.browserEvent.altKey&&(n*=this._options.fastScrollSensitivity,s*=this._options.fastScrollSensitivity);const o=this._scrollable.getFutureScrollPosition();let a={};if(s){const e=50*s,t=o.scrollTop-(e<0?Math.floor(e):Math.ceil(e));this._verticalScrollbar.writeScrollPosition(a,t)}if(n){const e=50*n,t=o.scrollLeft-(e<0?Math.floor(e):Math.ceil(e));this._horizontalScrollbar.writeScrollPosition(a,t)}if(a=this._scrollable.validateScrollPosition(a),o.scrollLeft!==a.scrollLeft||o.scrollTop!==a.scrollTop){this._options.mouseWheelSmoothScroll&&t.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(a):this._scrollable.setScrollPositionNow(a),i=!0}}let s=i;!s&&this._options.alwaysConsumeMouseWheel&&(s=!0),!s&&this._options.consumeMouseWheelIfScrollbarIsNeeded&&(this._verticalScrollbar.isNeeded()||this._horizontalScrollbar.isNeeded())&&(s=!0),s&&(e.preventDefault(),e.stopPropagation())}_onDidScroll(e){this._shouldRender=this._horizontalScrollbar.onDidScroll(e)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(e)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()}renderNow(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()}_render(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){const e=this._scrollable.getCurrentScrollPosition(),t=e.scrollTop>0,i=e.scrollLeft>0,s=i?" left":"",n=t?" top":"",r=i||t?" top-left-corner":"";this._leftShadowDomNode.setClassName(`shadow${s}`),this._topShadowDomNode.setClassName(`shadow${n}`),this._topLeftShadowDomNode.setClassName(`shadow${r}${n}${s}`)}}_onDragStart(){this._isDragging=!0,this._reveal()}_onDragEnd(){this._isDragging=!1,this._hide()}_onMouseLeave(e){this._mouseIsOver=!1,this._hide()}_onMouseOver(e){this._mouseIsOver=!0,this._reveal()}_reveal(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()}_hide(){this._mouseIsOver||this._isDragging||(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())}_scheduleHide(){this._mouseIsOver||this._isDragging||this._hideTimeout.cancelAndSet((()=>this._hide()),500)}}class L extends R{constructor(e,t){(t=t||{}).mouseWheelSmoothScroll=!1;const i=new S.yE({forceIntegerValues:!0,smoothScrollDuration:0,scheduleAtNextAnimationFrame:t=>n.PG(n.zk(e),t)});super(e,t,i),this._register(i)}setScrollPosition(e){this._scrollable.setScrollPositionNow(e)}}class T extends R{constructor(e,t,i){super(e,t,i)}setScrollPosition(e){e.reuseAnimation?this._scrollable.setScrollPositionSmooth(e,e.reuseAnimation):this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}}class x extends R{constructor(e,t){(t=t||{}).mouseWheelSmoothScroll=!1;const i=new S.yE({forceIntegerValues:!1,smoothScrollDuration:0,scheduleAtNextAnimationFrame:t=>n.PG(n.zk(e),t)});super(e,t,i),this._register(i),this._element=e,this._register(this.onScroll((e=>{e.scrollTopChanged&&(this._element.scrollTop=e.scrollTop),e.scrollLeftChanged&&(this._element.scrollLeft=e.scrollLeft)}))),this.scanDomNode()}setScrollPosition(e){this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}scanDomNode(){this.setScrollDimensions({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight}),this.setScrollPosition({scrollLeft:this._element.scrollLeft,scrollTop:this._element.scrollTop})}}},31308:(e,t,i)=>{"use strict";i.d(t,{BK:()=>_,fm:()=>l,Y:()=>d,zL:()=>h,yC:()=>g,ht:()=>u,lk:()=>m.lk,un:()=>n.un,nb:()=>n.nb,ZX:()=>m.ZX,C:()=>n.C,rm:()=>n.rm,X2:()=>s.X2,y0:()=>m.y0,Yd:()=>m.Yd,yQ:()=>m.yQ,FY:()=>s.FY,Zh:()=>S,OI:()=>m.OI,PO:()=>s.PO,Rn:()=>s.Rn,oJ:()=>C});var s=i(49154),n=i(87958),r=i(66782),o=i(5662),a=i(22311),c=i(94958);function l(e){return new p(new a.nA(void 0,void 0,e),e,void 0,void 0)}function h(e,t){return new p(new a.nA(e.owner,e.debugName,e.debugReferenceFn??t),t,void 0,void 0)}function d(e,t){return new p(new a.nA(e.owner,e.debugName,e.debugReferenceFn??t),t,e.createEmptyChangeSummary,e.handleChange)}function u(e,t){const i=new o.Cm,s=d({owner:e.owner,debugName:e.debugName,debugReferenceFn:e.debugReferenceFn??t,createEmptyChangeSummary:e.createEmptyChangeSummary,handleChange:e.handleChange},((e,s)=>{i.clear(),t(e,s,i)}));return(0,o.s)((()=>{s.dispose(),i.dispose()}))}function g(e){const t=new o.Cm,i=h({owner:void 0,debugName:void 0,debugReferenceFn:e},(i=>{t.clear(),e(i,t)}));return(0,o.s)((()=>{i.dispose(),t.dispose()}))}class p{get debugName(){return this._debugNameData.getDebugName(this)??"(anonymous)"}constructor(e,t,i,s){this._debugNameData=e,this._runFn=t,this.createChangeSummary=i,this._handleChange=s,this.state=2,this.updateCount=0,this.disposed=!1,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=this.createChangeSummary?.(),(0,c.tZ)()?.handleAutorunCreated(this),this._runIfNeeded(),(0,o.Ay)(this)}dispose(){this.disposed=!0;for(const e of this.dependencies)e.removeObserver(this);this.dependencies.clear(),(0,o.VD)(this)}_runIfNeeded(){if(3===this.state)return;const e=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=e,this.state=3;const t=this.disposed;try{if(!t){(0,c.tZ)()?.handleAutorunTriggered(this);const e=this.changeSummary;this.changeSummary=this.createChangeSummary?.(),this._runFn(this,e)}}finally{t||(0,c.tZ)()?.handleAutorunFinished(this);for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}}toString(){return`Autorun<${this.debugName}>`}beginUpdate(){3===this.state&&(this.state=1),this.updateCount++}endUpdate(){if(1===this.updateCount)do{if(1===this.state){this.state=3;for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break}this._runIfNeeded()}while(3!==this.state);this.updateCount--,(0,r.Ft)((()=>this.updateCount>=0))}handlePossibleChange(e){3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)&&(this.state=1)}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){(!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary))&&(this.state=2)}}readObservable(e){if(this.disposed)return e.get();e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}}!function(e){e.Observer=p}(l||(l={}));var m=i(13850),f=i(64383);class _{static fromFn(e){return new _(e())}constructor(e){this._value=(0,s.FY)(this,void 0),this.promiseResult=this._value,this.promise=e.then((e=>((0,s.Rn)((t=>{this._value.set(new v(e,void 0),t)})),e)),(e=>{throw(0,s.Rn)((t=>{this._value.set(new v(void 0,e),t)})),e}))}}class v{constructor(e,t){this.data=e,this.error=t}}function C(e,t,i,s){return t||(t=e=>null!==e&&void 0!==e),new Promise(((n,r)=>{let o=!0,a=!1;const c=e.map((e=>({isFinished:t(e),error:!!i&&i(e),state:e}))),h=l((e=>{const{isFinished:t,error:i,state:s}=c.read(e);(t||i)&&(o?a=!0:h.dispose(),i?r(!0===i?s:i):n(s))}));if(s){const e=s.onCancellationRequested((()=>{h.dispose(),e.dispose(),r(new f.AL)}));if(s.isCancellationRequested)return h.dispose(),e.dispose(),void r(new f.AL)}o=!1,a&&h.dispose()}))}var E=i(51241);class b extends s.ZK{get debugName(){return this._debugNameData.getDebugName(this)??"LazyObservableValue"}constructor(e,t,i){super(),this._debugNameData=e,this._equalityComparator=i,this._isUpToDate=!0,this._deltas=[],this._updateCounter=0,this._value=t}get(){return this._update(),this._value}_update(){if(!this._isUpToDate)if(this._isUpToDate=!0,this._deltas.length>0){for(const e of this.observers)for(const t of this._deltas)e.handleChange(this,t);this._deltas.length=0}else for(const e of this.observers)e.handleChange(this,void 0)}_beginUpdate(){if(this._updateCounter++,1===this._updateCounter)for(const e of this.observers)e.beginUpdate(this)}_endUpdate(){if(this._updateCounter--,0===this._updateCounter){this._update();const e=[...this.observers];for(const t of e)t.endUpdate(this)}}addObserver(e){const t=!this.observers.has(e)&&this._updateCounter>0;super.addObserver(e),t&&e.beginUpdate(this)}removeObserver(e){const t=this.observers.has(e)&&this._updateCounter>0;super.removeObserver(e),t&&e.endUpdate(this)}set(e,t,i){if(void 0===i&&this._equalityComparator(this._value,e))return;let n;t||(t=n=new s.XL((()=>{}),(()=>`Setting ${this.debugName}`)));try{if(this._isUpToDate=!1,this._setValue(e),void 0!==i&&this._deltas.push(i),t.updateObserver({beginUpdate:()=>this._beginUpdate(),endUpdate:()=>this._endUpdate(),handleChange:(e,t)=>{},handlePossibleChange:e=>{}},this),this._updateCounter>1)for(const e of this.observers)e.handlePossibleChange(this)}finally{n&&n.finish()}}toString(){return`${this.debugName}: ${this._value}`}_setValue(e){this._value=e}}function S(e,t){return e.lazy?new b(new a.nA(e.owner,e.debugName,void 0),t,e.equalsFn??E.nx):new s.Lj(new a.nA(e.owner,e.debugName,void 0),t,e.equalsFn??E.nx)}},31396:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>i.e(6210).then(i.bind(i,16210))})},31450:(e,t,i)=>{"use strict";i.d(t,{DX:()=>y,E_:()=>x,Fl:()=>k,HW:()=>I,PF:()=>R,aU:()=>M,dS:()=>s,fE:()=>b,gW:()=>A,ih:()=>P,ke:()=>T,ks:()=>w,qO:()=>L,tc:()=>F,uB:()=>E,xX:()=>N});var s,n=i(78209),r=i(79400),o=i(80301),a=i(83069),c=i(23750),l=i(18938),h=i(27195),d=i(50091),u=i(32848),g=i(63591),p=i(59261),m=i(46359),f=i(90651),_=i(631),v=i(18801),C=i(8597);class E{constructor(e){this.id=e.id,this.precondition=e.precondition,this._kbOpts=e.kbOpts,this._menuOpts=e.menuOpts,this.metadata=e.metadata}register(){if(Array.isArray(this._menuOpts)?this._menuOpts.forEach(this._registerMenuItem,this):this._menuOpts&&this._registerMenuItem(this._menuOpts),this._kbOpts){const e=Array.isArray(this._kbOpts)?this._kbOpts:[this._kbOpts];for(const t of e){let e=t.kbExpr;this.precondition&&(e=e?u.M$.and(e,this.precondition):this.precondition);const i={id:this.id,weight:t.weight,args:t.args,when:e,primary:t.primary,secondary:t.secondary,win:t.win,linux:t.linux,mac:t.mac};p.f.registerKeybindingRule(i)}}d.w.registerCommand({id:this.id,handler:(e,t)=>this.runCommand(e,t),metadata:this.metadata})}_registerMenuItem(e){h.ZG.appendMenuItem(e.menuId,{group:e.group,command:{id:this.id,title:e.title,icon:e.icon,precondition:this.precondition},when:e.when,order:e.order})}}class b extends E{constructor(){super(...arguments),this._implementations=[]}addImplementation(e,t,i,s){return this._implementations.push({priority:e,name:t,implementation:i,when:s}),this._implementations.sort(((e,t)=>t.priority-e.priority)),{dispose:()=>{for(let e=0;e<this._implementations.length;e++)if(this._implementations[e].implementation===i)return void this._implementations.splice(e,1)}}}runCommand(e,t){const i=e.get(v.rr),s=e.get(u.fN);i.trace(`Executing Command '${this.id}' which has ${this._implementations.length} bound.`);for(const n of this._implementations){if(n.when){const e=s.getContext((0,C.bq)());if(!n.when.evaluate(e))continue}const r=n.implementation(e,t);if(r){if(i.trace(`Command '${this.id}' was handled by '${n.name}'.`),"boolean"===typeof r)return;return r}}i.trace(`The Command '${this.id}' was not handled by any implementation.`)}}class S extends E{constructor(e,t){super(t),this.command=e}runCommand(e,t){return this.command.runCommand(e,t)}}class y extends E{static bindToContribution(e){return class extends y{constructor(e){super(e),this._callback=e.handler}runEditorCommand(t,i,s){const n=e(i);n&&this._callback(n,s)}}}static runEditorCommand(e,t,i,s){const n=e.get(o.T),r=n.getFocusedCodeEditor()||n.getActiveCodeEditor();if(r)return r.invokeWithinContext((e=>{if(e.get(u.fN).contextMatchesRules(i??void 0))return s(e,r,t)}))}runCommand(e,t){return y.runEditorCommand(e,t,this.precondition,((e,t,i)=>this.runEditorCommand(e,t,i)))}}class w extends y{static convertOptions(e){let t;function i(t){return t.menuId||(t.menuId=h.D8.EditorContext),t.title||(t.title=e.label),t.when=u.M$.and(e.precondition,t.when),t}return t=Array.isArray(e.menuOpts)?e.menuOpts:e.menuOpts?[e.menuOpts]:[],Array.isArray(e.contextMenuOpts)?t.push(...e.contextMenuOpts.map(i)):e.contextMenuOpts&&t.push(i(e.contextMenuOpts)),e.menuOpts=t,e}constructor(e){super(w.convertOptions(e)),this.label=e.label,this.alias=e.alias}runEditorCommand(e,t,i){return this.reportTelemetry(e,t),this.run(e,t,i||{})}reportTelemetry(e,t){e.get(f.k).publicLog2("editorActionInvoked",{name:this.label,id:this.id})}}class R extends w{constructor(){super(...arguments),this._implementations=[]}addImplementation(e,t){return this._implementations.push([e,t]),this._implementations.sort(((e,t)=>t[0]-e[0])),{dispose:()=>{for(let e=0;e<this._implementations.length;e++)if(this._implementations[e][1]===t)return void this._implementations.splice(e,1)}}}run(e,t,i){for(const s of this._implementations){const n=s[1](e,t,i);if(n){if("boolean"===typeof n)return;return n}}}}class L extends h.L{run(e,...t){const i=e.get(o.T),s=i.getFocusedCodeEditor()||i.getActiveCodeEditor();if(s)return s.invokeWithinContext((e=>{const i=e.get(u.fN),n=e.get(v.rr);if(i.contextMatchesRules(this.desc.precondition??void 0))return this.runEditorCommand(e,s,...t);n.debug("[EditorAction2] NOT running command because its precondition is FALSE",this.desc.id,this.desc.precondition?.serialize())}))}}function T(e,t){d.w.registerCommand(e,(function(e,...i){const s=e.get(g._Y),[n,o]=i;(0,_.j)(r.r.isUri(n)),(0,_.j)(a.y.isIPosition(o));const h=e.get(c.IModelService).getModel(n);if(h){const e=a.y.lift(o);return s.invokeFunction(t,h,e,...i.slice(2))}return e.get(l.ITextModelService).createModelReference(n).then((e=>new Promise(((n,r)=>{try{n(s.invokeFunction(t,e.object.textEditorModel,a.y.lift(o),i.slice(2)))}catch(c){r(c)}})).finally((()=>{e.dispose()}))))}))}function x(e){return O.INSTANCE.registerEditorCommand(e),e}function k(e){const t=new e;return O.INSTANCE.registerEditorAction(t),t}function A(e){return O.INSTANCE.registerEditorAction(e),e}function N(e){O.INSTANCE.registerEditorAction(e)}function I(e,t,i){O.INSTANCE.registerEditorContribution(e,t,i)}!function(e){e.getEditorCommand=function(e){return O.INSTANCE.getEditorCommand(e)},e.getEditorActions=function(){return O.INSTANCE.getEditorActions()},e.getEditorContributions=function(){return O.INSTANCE.getEditorContributions()},e.getSomeEditorContributions=function(e){return O.INSTANCE.getEditorContributions().filter((t=>e.indexOf(t.id)>=0))},e.getDiffEditorContributions=function(){return O.INSTANCE.getDiffEditorContributions()}}(s||(s={}));class O{static{this.INSTANCE=new O}constructor(){this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}registerEditorContribution(e,t,i){this.editorContributions.push({id:e,ctor:t,instantiation:i})}getEditorContributions(){return this.editorContributions.slice(0)}getDiffEditorContributions(){return this.diffEditorContributions.slice(0)}registerEditorAction(e){e.register(),this.editorActions.push(e)}getEditorActions(){return this.editorActions}registerEditorCommand(e){e.register(),this.editorCommands[e.id]=e}getEditorCommand(e){return this.editorCommands[e]||null}}function D(e){return e.register(),e}m.O.add("editor.contributions",O.INSTANCE);const M=D(new b({id:"undo",precondition:void 0,kbOpts:{weight:0,primary:2104},menuOpts:[{menuId:h.D8.MenubarEditMenu,group:"1_do",title:n.kg({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1},{menuId:h.D8.CommandPalette,group:"",title:n.kg("undo","Undo"),order:1}]}));D(new S(M,{id:"default:undo",precondition:void 0}));const P=D(new b({id:"redo",precondition:void 0,kbOpts:{weight:0,primary:2103,secondary:[3128],mac:{primary:3128}},menuOpts:[{menuId:h.D8.MenubarEditMenu,group:"1_do",title:n.kg({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2},{menuId:h.D8.CommandPalette,group:"",title:n.kg("redo","Redo"),order:1}]}));D(new S(P,{id:"default:redo",precondition:void 0}));const F=D(new b({id:"editor.action.selectAll",precondition:void 0,kbOpts:{weight:0,kbExpr:null,primary:2079},menuOpts:[{menuId:h.D8.MenubarSelectionMenu,group:"1_basic",title:n.kg({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1},{menuId:h.D8.CommandPalette,group:"",title:n.kg("selectAll","Select All"),order:1}]}))},31474:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>i.e(6012).then(i.bind(i,46012))})},31659:(e,t,i)=>{"use strict";var s=i(5662),n=i(31450),r=i(36677),o=i(9772),a=i(28712),c=i(77011),l=i(57039);class h extends s.jG{static{this.ID="editor.contrib.colorContribution"}constructor(e){super(),this._editor=e,this._register(e.onMouseDown((e=>this.onMouseDown(e))))}dispose(){super.dispose()}onMouseDown(e){const t=this._editor.getOption(149);if("click"!==t&&"clickAndHover"!==t)return;const i=e.target;if(6!==i.type)return;if(!i.detail.injectedText)return;if(i.detail.injectedText.options.attachedData!==o.nM)return;if(!i.range)return;const s=this._editor.getContribution(c.A.ID);if(s&&!s.isColorPickerVisible){const e=new r.Q(i.range.startLineNumber,i.range.startColumn+1,i.range.endLineNumber,i.range.endColumn+1);s.showContentHover(e,1,0,!1,!0)}}}(0,n.HW)(h.ID,h,2),l.B2.register(a.BJ)},31819:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.5 3A1.5 1.5 0 0 0 3 4.5v1.75a.75.75 0 0 1-1.5 0V4.5a3 3 0 0 1 3-3h1.75a.75.75 0 0 1 0 1.5zM9 2.25a.75.75 0 0 1 .75-.75h1.75a3 3 0 0 1 3 3v1.75a.75.75 0 0 1-1.5 0V4.5A1.5 1.5 0 0 0 11.5 3H9.75A.75.75 0 0 1 9 2.25M2.25 9a.75.75 0 0 1 .75.75v1.75A1.5 1.5 0 0 0 4.5 13h1.75a.75.75 0 0 1 0 1.5H4.5a3 3 0 0 1-3-3V9.75A.75.75 0 0 1 2.25 9m11.5 0a.75.75 0 0 1 .75.75v1.75a3 3 0 0 1-3 3H9.75a.75.75 0 0 1 0-1.5h1.75a1.5 1.5 0 0 0 1.5-1.5V9.75a.75.75 0 0 1 .75-.75",clipRule:"evenodd"}))},32371:(e,t,i)=>{"use strict";i.d(t,{BB:()=>u,WG:()=>v,aw:()=>f,br:()=>m,nZ:()=>E,yS:()=>g});var s=i(18447),n=i(64383),r=i(79400),o=i(23750),a=i(50091),c=i(631),l=i(98232),h=i(36677),d=i(56942);function u(e){return e&&!!e.data}function g(e){return e&&Array.isArray(e.edits)}class p{constructor(e,t,i){this.provider=e,this.tokens=t,this.error=i}}function m(e,t){return e.has(t)}async function f(e,t,i,s,n){const r=function(e,t){const i=e.orderedGroups(t);return i.length>0?i[0]:[]}(e,t),o=await Promise.all(r.map((async e=>{let r,o=null;try{r=await e.provideDocumentSemanticTokens(t,e===i?s:null,n)}catch(a){o=a,r=null}return r&&(u(r)||g(r))||(r=null),new p(e,r,o)})));for(const a of o){if(a.error)throw a.error;if(a.tokens)return a}return o.length>0?o[0]:null}class _{constructor(e,t){this.provider=e,this.tokens=t}}function v(e,t){return e.has(t)}function C(e,t){const i=e.orderedGroups(t);return i.length>0?i[0]:[]}async function E(e,t,i,s){const r=C(e,t),o=await Promise.all(r.map((async e=>{let r;try{r=await e.provideDocumentRangeSemanticTokens(t,i,s)}catch(o){(0,n.M_)(o),r=null}return r&&u(r)||(r=null),new _(e,r)})));for(const n of o)if(n.tokens)return n;return o.length>0?o[0]:null}a.w.registerCommand("_provideDocumentSemanticTokensLegend",(async(e,...t)=>{const[i]=t;(0,c.j)(i instanceof r.r);const s=e.get(o.IModelService).getModel(i);if(!s)return;const{documentSemanticTokensProvider:n}=e.get(d.ILanguageFeaturesService),l=function(e,t){const i=e.orderedGroups(t);return i.length>0?i[0]:null}(n,s);return l?l[0].getLegend():e.get(a.d).executeCommand("_provideDocumentRangeSemanticTokensLegend",i)})),a.w.registerCommand("_provideDocumentSemanticTokens",(async(e,...t)=>{const[i]=t;(0,c.j)(i instanceof r.r);const n=e.get(o.IModelService).getModel(i);if(!n)return;const{documentSemanticTokensProvider:h}=e.get(d.ILanguageFeaturesService);if(!m(h,n))return e.get(a.d).executeCommand("_provideDocumentRangeSemanticTokens",i,n.getFullModelRange());const g=await f(h,n,null,null,s.XO.None);if(!g)return;const{provider:p,tokens:_}=g;if(!_||!u(_))return;const v=(0,l.encodeSemanticTokensDto)({id:0,type:"full",data:_.data});return _.resultId&&p.releaseDocumentSemanticTokens(_.resultId),v})),a.w.registerCommand("_provideDocumentRangeSemanticTokensLegend",(async(e,...t)=>{const[i,n]=t;(0,c.j)(i instanceof r.r);const a=e.get(o.IModelService).getModel(i);if(!a)return;const{documentRangeSemanticTokensProvider:l}=e.get(d.ILanguageFeaturesService),u=C(l,a);if(0===u.length)return;if(1===u.length)return u[0].getLegend();if(!n||!h.Q.isIRange(n))return console.warn("provideDocumentRangeSemanticTokensLegend might be out-of-sync with provideDocumentRangeSemanticTokens unless a range argument is passed in"),u[0].getLegend();const g=await E(l,a,h.Q.lift(n),s.XO.None);return g?g.provider.getLegend():void 0})),a.w.registerCommand("_provideDocumentRangeSemanticTokens",(async(e,...t)=>{const[i,n]=t;(0,c.j)(i instanceof r.r),(0,c.j)(h.Q.isIRange(n));const a=e.get(o.IModelService).getModel(i);if(!a)return;const{documentRangeSemanticTokensProvider:u}=e.get(d.ILanguageFeaturesService),g=await E(u,a,h.Q.lift(n),s.XO.None);return g&&g.tokens?(0,l.encodeSemanticTokensDto)({id:0,type:"full",data:g.tokens.data}):void 0}))},32398:(e,t,i)=>{"use strict";i.d(t,{GN:()=>c,UB:()=>a,a6:()=>l,wc:()=>h});var s=i(83069),n=i(36677),r=i(92896),o=i(87908);class a{constructor(e,t,i,s,n){this.editorId=e,this.model=t,this.configuration=i,this._linesCollection=s,this._coordinatesConverter=n,this._decorationsCache=Object.create(null),this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}_clearCachedModelDecorationsResolver(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}dispose(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}reset(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onModelDecorationsChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onLineMappingChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}_getOrCreateViewModelDecoration(e){const t=e.id;let i=this._decorationsCache[t];if(!i){const o=e.range,a=e.options;let c;if(a.isWholeLine){const e=this._coordinatesConverter.convertModelPositionToViewPosition(new s.y(o.startLineNumber,1),0,!1,!0),t=this._coordinatesConverter.convertModelPositionToViewPosition(new s.y(o.endLineNumber,this.model.getLineMaxColumn(o.endLineNumber)),1);c=new n.Q(e.lineNumber,e.column,t.lineNumber,t.column)}else c=this._coordinatesConverter.convertModelRangeToViewRange(o,1);i=new r.vo(c,a),this._decorationsCache[t]=i}return i}getMinimapDecorationsInRange(e){return this._getDecorationsInRange(e,!0,!1).decorations}getDecorationsViewportData(e){let t=null!==this._cachedModelDecorationsResolver;return t=t&&e.equalsRange(this._cachedModelDecorationsResolverViewRange),t||(this._cachedModelDecorationsResolver=this._getDecorationsInRange(e,!1,!1),this._cachedModelDecorationsResolverViewRange=e),this._cachedModelDecorationsResolver}getInlineDecorationsOnLine(e,t=!1,i=!1){const s=new n.Q(e,this._linesCollection.getViewLineMinColumn(e),e,this._linesCollection.getViewLineMaxColumn(e));return this._getDecorationsInRange(s,t,i).inlineDecorations[0]}_getDecorationsInRange(e,t,i){const s=this._linesCollection.getDecorationsInRange(e,this.editorId,(0,o.$C)(this.configuration.options),t,i),a=e.startLineNumber,l=e.endLineNumber,h=[];let d=0;const u=[];for(let n=a;n<=l;n++)u[n-a]=[];for(let o=0,g=s.length;o<g;o++){const e=s[o],t=e.options;if(!c(this.model,e))continue;const i=this._getOrCreateViewModelDecoration(e),g=i.range;if(h[d++]=i,t.inlineClassName){const e=new r.kI(g,t.inlineClassName,t.inlineClassNameAffectsLetterSpacing?3:0),i=Math.max(a,g.startLineNumber),s=Math.min(l,g.endLineNumber);for(let t=i;t<=s;t++)u[t-a].push(e)}if(t.beforeContentClassName&&a<=g.startLineNumber&&g.startLineNumber<=l){const e=new r.kI(new n.Q(g.startLineNumber,g.startColumn,g.startLineNumber,g.startColumn),t.beforeContentClassName,1);u[g.startLineNumber-a].push(e)}if(t.afterContentClassName&&a<=g.endLineNumber&&g.endLineNumber<=l){const e=new r.kI(new n.Q(g.endLineNumber,g.endColumn,g.endLineNumber,g.endColumn),t.afterContentClassName,2);u[g.endLineNumber-a].push(e)}}return{decorations:h,inlineDecorations:u}}}function c(e,t){return(!t.options.hideInCommentTokens||!l(e,t))&&(!t.options.hideInStringTokens||!h(e,t))}function l(e,t){return d(e,t.range,(e=>1===e))}function h(e,t){return d(e,t.range,(e=>2===e))}function d(e,t,i){for(let s=t.startLineNumber;s<=t.endLineNumber;s++){const n=e.tokenization.getLineTokens(s),r=s===t.startLineNumber,o=s===t.endLineNumber;let a=r?n.findTokenIndexAtOffset(t.startColumn-1):0;for(;a<n.getCount();){if(o){if(n.getStartOffset(a)>t.endColumn-1)break}if(!i(n.getStandardTokenType(a)))return!1;a++}}return!0}},32500:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ILanguageFeatureDebounceService:()=>g,LanguageFeatureDebounceService:()=>_});var s=i(85600),n=i(74320),r=i(1592),o=i(97035),a=i(14718),c=i(63591),l=i(18801),h=i(36456),d=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},u=function(e,t){return function(i,s){t(i,s,e)}};const g=(0,c.u1)("ILanguageFeatureDebounceService");var p;!function(e){const t=new WeakMap;let i=0;e.of=function(e){let s=t.get(e);return void 0===s&&(s=++i,t.set(e,s)),s}}(p||(p={}));class m{constructor(e){this._default=e}get(e){return this._default}update(e,t){return this._default}default(){return this._default}}class f{constructor(e,t,i,s,r,o){this._logService=e,this._name=t,this._registry=i,this._default=s,this._min=r,this._max=o,this._cache=new n.qK(50,.7)}_key(e){return e.id+this._registry.all(e).reduce(((e,t)=>(0,s.sN)(p.of(t),e)),0)}get(e){const t=this._key(e),i=this._cache.get(t);return i?(0,r.qE)(i.value,this._min,this._max):this.default()}update(e,t){const i=this._key(e);let s=this._cache.get(i);s||(s=new r.mu(6),this._cache.set(i,s));const n=(0,r.qE)(s.update(t),this._min,this._max);return(0,h.v$)(e.uri,"output")||this._logService.trace(`[DEBOUNCE: ${this._name}] for ${e.uri.toString()} is ${n}ms`),n}_overall(){const e=new r.Uq;for(const[,t]of this._cache)e.update(t.value);return e.value}default(){const e=0|this._overall()||this._default;return(0,r.qE)(e,this._min,this._max)}}let _=class{constructor(e,t){this._logService=e,this._data=new Map,this._isDev=t.isExtensionDevelopment||!t.isBuilt}for(e,t,i){const s=i?.min??50,n=i?.max??s**2,r=i?.key??void 0,o=`${p.of(e)},${s}${r?","+r:""}`;let a=this._data.get(o);return a||(this._isDev?(this._logService.debug(`[DEBOUNCE: ${t}] is disabled in developed mode`),a=new m(1.5*s)):a=new f(this._logService,t,e,0|this._overallAverage()||1.5*s,s,n),this._data.set(o,a)),a}_overallAverage(){const e=new r.Uq;for(const t of this._data.values())e.update(t.default());return e.value}};_=d([u(0,l.rr),u(1,o.k)],_),(0,a.v)(g,_,1)},32516:(e,t,i)=>{"use strict";var s=i(5662),n=i(31450),r=i(60002),o=i(78209);class a{constructor(e){this.selections=e}equals(e){const t=this.selections.length;if(t!==e.selections.length)return!1;for(let i=0;i<t;i++)if(!this.selections[i].equalsSelection(e.selections[i]))return!1;return!0}}class c{constructor(e,t,i){this.cursorState=e,this.scrollTop=t,this.scrollLeft=i}}class l extends s.jG{static{this.ID="editor.contrib.cursorUndoRedoController"}static get(e){return e.getContribution(l.ID)}constructor(e){super(),this._editor=e,this._isCursorUndoRedo=!1,this._undoStack=[],this._redoStack=[],this._register(e.onDidChangeModel((e=>{this._undoStack=[],this._redoStack=[]}))),this._register(e.onDidChangeModelContent((e=>{this._undoStack=[],this._redoStack=[]}))),this._register(e.onDidChangeCursorSelection((t=>{if(this._isCursorUndoRedo)return;if(!t.oldSelections)return;if(t.oldModelVersionId!==t.modelVersionId)return;const i=new a(t.oldSelections);this._undoStack.length>0&&this._undoStack[this._undoStack.length-1].cursorState.equals(i)||(this._undoStack.push(new c(i,e.getScrollTop(),e.getScrollLeft())),this._redoStack=[],this._undoStack.length>50&&this._undoStack.shift())})))}cursorUndo(){this._editor.hasModel()&&0!==this._undoStack.length&&(this._redoStack.push(new c(new a(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._undoStack.pop()))}cursorRedo(){this._editor.hasModel()&&0!==this._redoStack.length&&(this._undoStack.push(new c(new a(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._redoStack.pop()))}_applyState(e){this._isCursorUndoRedo=!0,this._editor.setSelections(e.cursorState.selections),this._editor.setScrollPosition({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),this._isCursorUndoRedo=!1}}class h extends n.ks{constructor(){super({id:"cursorUndo",label:o.kg("cursor.undo","Cursor Undo"),alias:"Cursor Undo",precondition:void 0,kbOpts:{kbExpr:r.R.textInputFocus,primary:2099,weight:100}})}run(e,t,i){l.get(t)?.cursorUndo()}}class d extends n.ks{constructor(){super({id:"cursorRedo",label:o.kg("cursor.redo","Cursor Redo"),alias:"Cursor Redo",precondition:void 0})}run(e,t,i){l.get(t)?.cursorRedo()}}(0,n.HW)(l.ID,l,0),(0,n.Fl)(h),(0,n.Fl)(d)},32624:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>i.e(4582).then(i.bind(i,84582))})},32799:(e,t,i)=>{"use strict";i.d(t,{MF:()=>g,d$:()=>u,mG:()=>f,vG:()=>v,vY:()=>_});var s=i(83069),n=i(36677),r=i(75326),o=i(12296),a=i(1245),c=i(93895);const l=()=>!0,h=()=>!1,d=e=>" "===e||"\t"===e;class u{static shouldRecreate(e){return e.hasChanged(146)||e.hasChanged(132)||e.hasChanged(37)||e.hasChanged(77)||e.hasChanged(79)||e.hasChanged(80)||e.hasChanged(6)||e.hasChanged(7)||e.hasChanged(11)||e.hasChanged(9)||e.hasChanged(10)||e.hasChanged(14)||e.hasChanged(129)||e.hasChanged(50)||e.hasChanged(92)||e.hasChanged(131)}constructor(e,t,i,s){this.languageConfigurationService=s,this._cursorMoveConfigurationBrand=void 0,this._languageId=e;const n=i.options,r=n.get(146),o=n.get(50);this.readOnly=n.get(92),this.tabSize=t.tabSize,this.indentSize=t.indentSize,this.insertSpaces=t.insertSpaces,this.stickyTabStops=n.get(117),this.lineHeight=o.lineHeight,this.typicalHalfwidthCharacterWidth=o.typicalHalfwidthCharacterWidth,this.pageSize=Math.max(1,Math.floor(r.height/this.lineHeight)-2),this.useTabStops=n.get(129),this.wordSeparators=n.get(132),this.emptySelectionClipboard=n.get(37),this.copyWithSyntaxHighlighting=n.get(25),this.multiCursorMergeOverlapping=n.get(77),this.multiCursorPaste=n.get(79),this.multiCursorLimit=n.get(80),this.autoClosingBrackets=n.get(6),this.autoClosingComments=n.get(7),this.autoClosingQuotes=n.get(11),this.autoClosingDelete=n.get(9),this.autoClosingOvertype=n.get(10),this.autoSurround=n.get(14),this.autoIndent=n.get(12),this.wordSegmenterLocales=n.get(131),this.surroundingPairs={},this._electricChars=null,this.shouldAutoCloseBefore={quote:this._getShouldAutoClose(e,this.autoClosingQuotes,!0),comment:this._getShouldAutoClose(e,this.autoClosingComments,!1),bracket:this._getShouldAutoClose(e,this.autoClosingBrackets,!1)},this.autoClosingPairs=this.languageConfigurationService.getLanguageConfiguration(e).getAutoClosingPairs();const a=this.languageConfigurationService.getLanguageConfiguration(e).getSurroundingPairs();if(a)for(const l of a)this.surroundingPairs[l.open]=l.close;const c=this.languageConfigurationService.getLanguageConfiguration(e).comments;this.blockCommentStartToken=c?.blockCommentStartToken??null}get electricChars(){if(!this._electricChars){this._electricChars={};const e=this.languageConfigurationService.getLanguageConfiguration(this._languageId).electricCharacter?.getElectricCharacters();if(e)for(const t of e)this._electricChars[t]=!0}return this._electricChars}onElectricCharacter(e,t,i){const s=(0,o.BQ)(t,i-1),n=this.languageConfigurationService.getLanguageConfiguration(s.languageId).electricCharacter;return n?n.onElectricCharacter(e,s,i-s.firstCharOffset):null}normalizeIndentation(e){return(0,c.P)(e,this.indentSize,this.insertSpaces)}_getShouldAutoClose(e,t,i){switch(t){case"beforeWhitespace":return d;case"languageDefined":return this._getLanguageDefinedShouldAutoClose(e,i);case"always":return l;case"never":return h}}_getLanguageDefinedShouldAutoClose(e,t){const i=this.languageConfigurationService.getLanguageConfiguration(e).getAutoCloseBeforeSet(t);return e=>-1!==i.indexOf(e)}visibleColumnFromColumn(e,t){return a.A.visibleColumnFromColumn(e.getLineContent(t.lineNumber),t.column,this.tabSize)}columnFromVisibleColumn(e,t,i){const s=a.A.columnFromVisibleColumn(e.getLineContent(t),i,this.tabSize),n=e.getLineMinColumn(t);if(s<n)return n;const r=e.getLineMaxColumn(t);return s>r?r:s}}class g{static fromModelState(e){return new p(e)}static fromViewState(e){return new m(e)}static fromModelSelection(e){const t=r.L.liftSelection(e),i=new f(n.Q.fromPositions(t.getSelectionStart()),0,0,t.getPosition(),0);return g.fromModelState(i)}static fromModelSelections(e){const t=[];for(let i=0,s=e.length;i<s;i++)t[i]=this.fromModelSelection(e[i]);return t}constructor(e,t){this._cursorStateBrand=void 0,this.modelState=e,this.viewState=t}equals(e){return this.viewState.equals(e.viewState)&&this.modelState.equals(e.modelState)}}class p{constructor(e){this.modelState=e,this.viewState=null}}class m{constructor(e){this.modelState=null,this.viewState=e}}class f{constructor(e,t,i,s,n){this.selectionStart=e,this.selectionStartKind=t,this.selectionStartLeftoverVisibleColumns=i,this.position=s,this.leftoverVisibleColumns=n,this._singleCursorStateBrand=void 0,this.selection=f._computeSelection(this.selectionStart,this.position)}equals(e){return this.selectionStartLeftoverVisibleColumns===e.selectionStartLeftoverVisibleColumns&&this.leftoverVisibleColumns===e.leftoverVisibleColumns&&this.selectionStartKind===e.selectionStartKind&&this.position.equals(e.position)&&this.selectionStart.equalsRange(e.selectionStart)}hasSelection(){return!this.selection.isEmpty()||!this.selectionStart.isEmpty()}move(e,t,i,r){return e?new f(this.selectionStart,this.selectionStartKind,this.selectionStartLeftoverVisibleColumns,new s.y(t,i),r):new f(new n.Q(t,i,t,i),0,r,new s.y(t,i),r)}static _computeSelection(e,t){return e.isEmpty()||!t.isBeforeOrEqual(e.getStartPosition())?r.L.fromPositions(e.getStartPosition(),t):r.L.fromPositions(e.getEndPosition(),t)}}class _{constructor(e,t,i){this._editOperationResultBrand=void 0,this.type=e,this.commands=t,this.shouldPushStackElementBefore=i.shouldPushStackElementBefore,this.shouldPushStackElementAfter=i.shouldPushStackElementAfter}}function v(e){return"'"===e||'"'===e||"`"===e}},32848:(e,t,i)=>{"use strict";i.d(t,{f1:()=>A,M$:()=>w,fN:()=>K,N1:()=>j,jQ:()=>R,M0:()=>$});var s=i(98067),n=i(91508),r=i(64383),o=i(78209);function a(...e){switch(e.length){case 1:return(0,o.kg)("contextkey.scanner.hint.didYouMean1","Did you mean {0}?",e[0]);case 2:return(0,o.kg)("contextkey.scanner.hint.didYouMean2","Did you mean {0} or {1}?",e[0],e[1]);case 3:return(0,o.kg)("contextkey.scanner.hint.didYouMean3","Did you mean {0}, {1} or {2}?",e[0],e[1],e[2]);default:return}}const c=(0,o.kg)("contextkey.scanner.hint.didYouForgetToOpenOrCloseQuote","Did you forget to open or close the quote?"),l=(0,o.kg)("contextkey.scanner.hint.didYouForgetToEscapeSlash","Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'.");class h{constructor(){this._input="",this._start=0,this._current=0,this._tokens=[],this._errors=[],this.stringRe=/[a-zA-Z0-9_<>\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(e){switch(e.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return e.isTripleEq?"===":"==";case 4:return e.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:case 8:return">=";case 9:return"=~";case 10:case 17:case 18:case 19:return e.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 20:return"EOF";default:throw(0,r.iH)(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}static{this._regexFlags=new Set(["i","g","s","m","y","u"].map((e=>e.charCodeAt(0))))}static{this._keywords=new Map([["not",14],["in",13],["false",12],["true",11]])}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();){this._start=this._current;switch(this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){const e=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:e})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){const e=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:e})}else this._match(126)?this._addToken(9):this._error(a("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(a("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(a("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return!this._isAtEnd()&&(this._input.charCodeAt(this._current)===e&&(this._current++,!0))}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){const t=this._start,i=this._input.substring(this._start,this._current),s={type:19,offset:this._start,lexeme:i};this._errors.push({offset:t,lexeme:i,additionalInfo:e}),this._tokens.push(s)}_string(){this.stringRe.lastIndex=this._start;const e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;const t=this._input.substring(this._start,this._current),i=h._keywords.get(t);i?this._addToken(i):this._tokens.push({type:17,lexeme:t,offset:this._start})}}_quotedString(){for(;39!==this._peek()&&!this._isAtEnd();)this._advance();this._isAtEnd()?this._error(c):(this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1}))}_regex(){let e=this._current,t=!1,i=!1;for(;;){if(e>=this._input.length)return this._current=e,void this._error(l);const s=this._input.charCodeAt(e);if(t)t=!1;else{if(47===s&&!i){e++;break}91===s?i=!0:92===s?t=!0:93===s&&(i=!1)}e++}for(;e<this._input.length&&h._regexFlags.has(this._input.charCodeAt(e));)e++;this._current=e;const s=this._input.substring(this._start,this._current);this._tokens.push({type:10,lexeme:s,offset:this._start})}_isAtEnd(){return this._current>=this._input.length}}var d=i(63591);const u=new Map;u.set("false",!1),u.set("true",!0),u.set("isMac",s.zx),u.set("isLinux",s.j9),u.set("isWindows",s.uF),u.set("isWeb",s.HZ),u.set("isMacNative",s.zx&&!s.HZ),u.set("isEdge",s.UP),u.set("isFirefox",s.gm),u.set("isChrome",s.H8),u.set("isSafari",s.nr);const g=Object.prototype.hasOwnProperty,p={regexParsingWithErrorRecovery:!0},m=(0,o.kg)("contextkey.parser.error.emptyString","Empty context key expression"),f=(0,o.kg)("contextkey.parser.error.emptyString.hint","Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),_=(0,o.kg)("contextkey.parser.error.noInAfterNot","'in' after 'not'."),v=(0,o.kg)("contextkey.parser.error.closingParenthesis","closing parenthesis ')'"),C=(0,o.kg)("contextkey.parser.error.unexpectedToken","Unexpected token"),E=(0,o.kg)("contextkey.parser.error.unexpectedToken.hint","Did you forget to put && or || before the token?"),b=(0,o.kg)("contextkey.parser.error.unexpectedEOF","Unexpected end of expression"),S=(0,o.kg)("contextkey.parser.error.unexpectedEOF.hint","Did you forget to put a context key?");class y{static{this._parseError=new Error}constructor(e=p){this._config=e,this._scanner=new h,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(""!==e){this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{const e=this._expr();if(!this._isAtEnd()){const e=this._peek(),t=17===e.type?E:void 0;throw this._parsingErrors.push({message:C,offset:e.offset,lexeme:h.getLexeme(e),additionalInfo:t}),y._parseError}return e}catch(t){if(t!==y._parseError)throw t;return}}else this._parsingErrors.push({message:m,offset:0,lexeme:"",additionalInfo:f})}_expr(){return this._or()}_or(){const e=[this._and()];for(;this._matchOne(16);){const t=this._and();e.push(t)}return 1===e.length?e[0]:w.or(...e)}_and(){const e=[this._term()];for(;this._matchOne(15);){const t=this._term();e.push(t)}return 1===e.length?e[0]:w.and(...e)}_term(){if(this._matchOne(2)){const e=this._peek();switch(e.type){case 11:return this._advance(),T.INSTANCE;case 12:return this._advance(),x.INSTANCE;case 0:{this._advance();const e=this._expr();return this._consume(1,v),e?.negate()}case 17:return this._advance(),D.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){const e=this._peek();switch(e.type){case 11:return this._advance(),w.true();case 12:return this._advance(),w.false();case 0:{this._advance();const e=this._expr();return this._consume(1,v),e}case 17:{const s=e.lexeme;if(this._advance(),this._matchOne(9)){const e=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),10!==e.type)throw this._errExpectedButGot("REGEX",e);const i=e.lexeme,n=i.lastIndexOf("/"),r=n===i.length-1?void 0:this._removeFlagsGY(i.substring(n+1));let o;try{o=new RegExp(i.substring(1,n),r)}catch(t){throw this._errExpectedButGot("REGEX",e)}return B.create(s,o)}switch(e.type){case 10:case 19:{const i=[e.lexeme];this._advance();let n=this._peek(),r=0;for(let t=0;t<e.lexeme.length;t++)40===e.lexeme.charCodeAt(t)?r++:41===e.lexeme.charCodeAt(t)&&r--;for(;!this._isAtEnd()&&15!==n.type&&16!==n.type;){switch(n.type){case 0:r++;break;case 1:r--;break;case 10:case 18:for(let t=0;t<n.lexeme.length;t++)40===n.lexeme.charCodeAt(t)?r++:41===e.lexeme.charCodeAt(t)&&r--}if(r<0)break;i.push(h.getLexeme(n)),this._advance(),n=this._peek()}const o=i.join(""),a=o.lastIndexOf("/"),c=a===o.length-1?void 0:this._removeFlagsGY(o.substring(a+1));let l;try{l=new RegExp(o.substring(1,a),c)}catch(t){throw this._errExpectedButGot("REGEX",e)}return w.regex(s,l)}case 18:{const t=e.lexeme;this._advance();let r=null;if(!(0,n.AV)(t)){const s=t.indexOf("/"),n=t.lastIndexOf("/");if(s!==n&&s>=0){const o=t.slice(s+1,n),a="i"===t[n+1]?"i":"";try{r=new RegExp(o,a)}catch(i){throw this._errExpectedButGot("REGEX",e)}}}if(null===r)throw this._errExpectedButGot("REGEX",e);return B.create(s,r)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,_);const e=this._value();return w.notIn(s,e)}switch(this._peek().type){case 3:{this._advance();const e=this._value();if(18===this._previous().type)return w.equals(s,e);switch(e){case"true":return w.has(s);case"false":return w.not(s);default:return w.equals(s,e)}}case 4:{this._advance();const e=this._value();if(18===this._previous().type)return w.notEquals(s,e);switch(e){case"true":return w.not(s);case"false":return w.has(s);default:return w.notEquals(s,e)}}case 5:return this._advance(),U.create(s,this._value());case 6:return this._advance(),H.create(s,this._value());case 7:return this._advance(),P.create(s,this._value());case 8:return this._advance(),F.create(s,this._value());case 13:return this._advance(),w.in(s,this._value());default:return w.has(s)}}case 20:throw this._parsingErrors.push({message:b,offset:e.offset,lexeme:"",additionalInfo:S}),y._parseError;default:throw this._errExpectedButGot("true | false | KEY \n\t| KEY '=~' REGEX \n\t| KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value",this._peek())}}_value(){const e=this._peek();switch(e.type){case 17:case 18:return this._advance(),e.lexeme;case 11:return this._advance(),"true";case 12:return this._advance(),"false";case 13:return this._advance(),"in";default:return""}}_removeFlagsGY(e){return e.replaceAll(this._flagsGYRe,"")}_previous(){return this._tokens[this._current-1]}_matchOne(e){return!!this._check(e)&&(this._advance(),!0)}_advance(){return this._isAtEnd()||this._current++,this._previous()}_consume(e,t){if(this._check(e))return this._advance();throw this._errExpectedButGot(t,this._peek())}_errExpectedButGot(e,t,i){const s=(0,o.kg)("contextkey.parser.error.expectedButGot","Expected: {0}\nReceived: '{1}'.",e,h.getLexeme(t)),n=t.offset,r=h.getLexeme(t);return this._parsingErrors.push({message:s,offset:n,lexeme:r,additionalInfo:i}),y._parseError}_check(e){return this._peek().type===e}_peek(){return this._tokens[this._current]}_isAtEnd(){return 20===this._peek().type}}class w{static false(){return T.INSTANCE}static true(){return x.INSTANCE}static has(e){return k.create(e)}static equals(e,t){return A.create(e,t)}static notEquals(e,t){return O.create(e,t)}static regex(e,t){return B.create(e,t)}static in(e,t){return N.create(e,t)}static notIn(e,t){return I.create(e,t)}static not(e){return D.create(e)}static and(...e){return z.create(e,null,!0)}static or(...e){return G.create(e,null,!0)}static{this._parser=new y({regexParsingWithErrorRecovery:!1})}static deserialize(e){if(void 0===e||null===e)return;return this._parser.parse(e)}}function R(e,t){const i=e?e.substituteConstants():void 0,s=t?t.substituteConstants():void 0;return!i&&!s||!(!i||!s)&&i.equals(s)}function L(e,t){return e.cmp(t)}class T{static{this.INSTANCE=new T}constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!1}serialize(){return"false"}keys(){return[]}negate(){return x.INSTANCE}}class x{static{this.INSTANCE=new x}constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!0}serialize(){return"true"}keys(){return[]}negate(){return T.INSTANCE}}class k{static create(e,t=null){const i=u.get(e);return"boolean"===typeof i?i?x.INSTANCE:T.INSTANCE:new k(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=2}cmp(e){return e.type!==this.type?this.type-e.type:Y(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=u.get(this.key);return"boolean"===typeof e?e?x.INSTANCE:T.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=D.create(this.key,this)),this.negated}}class A{static create(e,t,i=null){if("boolean"===typeof t)return t?k.create(e,i):D.create(e,i);const s=u.get(e);if("boolean"===typeof s){return t===(s?"true":"false")?x.INSTANCE:T.INSTANCE}return new A(e,t,i)}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=4}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=u.get(this.key);if("boolean"===typeof e){const t=e?"true":"false";return this.value===t?x.INSTANCE:T.INSTANCE}return this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=O.create(this.key,this.value,this)),this.negated}}class N{static create(e,t){return new N(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=10,this.negated=null}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type&&(this.key===e.key&&this.valueKey===e.valueKey)}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.valueKey),i=e.getValue(this.key);return Array.isArray(t)?t.includes(i):"string"===typeof i&&"object"===typeof t&&null!==t&&g.call(t,i)}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=I.create(this.key,this.valueKey)),this.negated}}class I{static create(e,t){return new I(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=11,this._negated=N.create(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:this._negated.cmp(e._negated)}equals(e){return e.type===this.type&&this._negated.equals(e._negated)}substituteConstants(){return this}evaluate(e){return!this._negated.evaluate(e)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}negate(){return this._negated}}class O{static create(e,t,i=null){if("boolean"===typeof t)return t?D.create(e,i):k.create(e,i);const s=u.get(e);if("boolean"===typeof s){return t===(s?"true":"false")?T.INSTANCE:x.INSTANCE}return new O(e,t,i)}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=5}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=u.get(this.key);if("boolean"===typeof e){const t=e?"true":"false";return this.value===t?T.INSTANCE:x.INSTANCE}return this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=A.create(this.key,this.value,this)),this.negated}}class D{static create(e,t=null){const i=u.get(e);return"boolean"===typeof i?i?T.INSTANCE:x.INSTANCE:new D(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=3}cmp(e){return e.type!==this.type?this.type-e.type:Y(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=u.get(this.key);return"boolean"===typeof e?e?T.INSTANCE:x.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=k.create(this.key,this)),this.negated}}function M(e,t){if("string"===typeof e){const t=parseFloat(e);isNaN(t)||(e=t)}return"string"===typeof e||"number"===typeof e?t(e):T.INSTANCE}class P{static create(e,t,i=null){return M(t,(t=>new P(e,t,i)))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=12}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=H.create(this.key,this.value,this)),this.negated}}class F{static create(e,t,i=null){return M(t,(t=>new F(e,t,i)))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=13}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=U.create(this.key,this.value,this)),this.negated}}class U{static create(e,t,i=null){return M(t,(t=>new U(e,t,i)))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=14}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=F.create(this.key,this.value,this)),this.negated}}class H{static create(e,t,i=null){return M(t,(t=>new H(e,t,i)))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=15}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=P.create(this.key,this.value,this)),this.negated}}class B{static create(e,t){return new B(e,t)}constructor(e,t){this.key=e,this.regexp=t,this.type=7,this.negated=null}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.key<e.key)return-1;if(this.key>e.key)return 1;const t=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return t<i?-1:t>i?1:0}equals(e){if(e.type===this.type){const t=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return this.key===e.key&&t===i}return!1}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.key);return!!this.regexp&&this.regexp.test(t)}serialize(){const e=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=W.create(this)),this.negated}}class W{static create(e){return new W(e)}constructor(e){this._actual=e,this.type=8}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type&&this._actual.equals(e._actual)}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){return`!(${this._actual.serialize()})`}keys(){return this._actual.keys()}negate(){return this._actual}}function V(e){let t=null;for(let i=0,s=e.length;i<s;i++){const s=e[i].substituteConstants();if(e[i]!==s&&null===t){t=[];for(let s=0;s<i;s++)t[s]=e[s]}null!==t&&(t[i]=s)}return null===t?e:t}class z{static create(e,t,i){return z._normalizeArr(e,t,i)}constructor(e,t){this.expr=e,this.negated=t,this.type=6}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,i=this.expr.length;t<i;t++){const i=L(this.expr[t],e.expr[t]);if(0!==i)return i}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,i=this.expr.length;t<i;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){const e=V(this.expr);return e===this.expr?this:z.create(e,this.negated,!1)}evaluate(e){for(let t=0,i=this.expr.length;t<i;t++)if(!this.expr[t].evaluate(e))return!1;return!0}static _normalizeArr(e,t,i){const s=[];let n=!1;for(const r of e)if(r)if(1!==r.type){if(0===r.type)return T.INSTANCE;6!==r.type?s.push(r):s.push(...r.expr)}else n=!0;if(0===s.length&&n)return x.INSTANCE;if(0!==s.length){if(1===s.length)return s[0];s.sort(L);for(let e=1;e<s.length;e++)s[e-1].equals(s[e])&&(s.splice(e,1),e--);if(1===s.length)return s[0];for(;s.length>1;){const e=s[s.length-1];if(9!==e.type)break;s.pop();const t=s.pop(),n=0===s.length,r=G.create(e.expr.map((e=>z.create([e,t],null,i))),null,n);r&&(s.push(r),s.sort(L))}if(1===s.length)return s[0];if(i){for(let e=0;e<s.length;e++)for(let t=e+1;t<s.length;t++)if(s[e].negate().equals(s[t]))return T.INSTANCE;if(1===s.length)return s[0]}return new z(s,t)}}serialize(){return this.expr.map((e=>e.serialize())).join(" && ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());this.negated=G.create(e,this,!0)}return this.negated}}class G{static create(e,t,i){return G._normalizeArr(e,t,i)}constructor(e,t){this.expr=e,this.negated=t,this.type=9}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,i=this.expr.length;t<i;t++){const i=L(this.expr[t],e.expr[t]);if(0!==i)return i}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,i=this.expr.length;t<i;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){const e=V(this.expr);return e===this.expr?this:G.create(e,this.negated,!1)}evaluate(e){for(let t=0,i=this.expr.length;t<i;t++)if(this.expr[t].evaluate(e))return!0;return!1}static _normalizeArr(e,t,i){let s=[],n=!1;if(e){for(let t=0,i=e.length;t<i;t++){const i=e[t];if(i)if(0!==i.type){if(1===i.type)return x.INSTANCE;9!==i.type?s.push(i):s=s.concat(i.expr)}else n=!0}if(0===s.length&&n)return T.INSTANCE;s.sort(L)}if(0!==s.length){if(1===s.length)return s[0];for(let e=1;e<s.length;e++)s[e-1].equals(s[e])&&(s.splice(e,1),e--);if(1===s.length)return s[0];if(i){for(let e=0;e<s.length;e++)for(let t=e+1;t<s.length;t++)if(s[e].negate().equals(s[t]))return x.INSTANCE;if(1===s.length)return s[0]}return new G(s,t)}}serialize(){return this.expr.map((e=>e.serialize())).join(" || ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());for(;e.length>1;){const t=e.shift(),i=e.shift(),s=[];for(const e of X(t))for(const t of X(i))s.push(z.create([e,t],null,!1));e.unshift(G.create(s,null,!1))}this.negated=G.create(e,this,!0)}return this.negated}}class j extends k{static{this._info=[]}static all(){return j._info.values()}constructor(e,t,i){super(e,null),this._defaultValue=t,"object"===typeof i?j._info.push({...i,key:e}):!0!==i&&j._info.push({key:e,description:i,type:null!==t&&void 0!==t?typeof t:void 0})}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return A.create(this.key,e)}}const K=(0,d.u1)("contextKeyService");function Y(e,t){return e<t?-1:e>t?1:0}function q(e,t,i,s){return e<i?-1:e>i?1:t<s?-1:t>s?1:0}function $(e,t){if(0===e.type||1===t.type)return!0;if(9===e.type)return 9===t.type&&Q(e.expr,t.expr);if(9===t.type){for(const i of t.expr)if($(e,i))return!0;return!1}if(6===e.type){if(6===t.type)return Q(t.expr,e.expr);for(const i of e.expr)if($(i,t))return!0;return!1}return e.equals(t)}function Q(e,t){let i=0,s=0;for(;i<e.length&&s<t.length;){const n=e[i].cmp(t[s]);if(n<0)return!1;0===n?(i++,s++):s++}return i===e.length}function X(e){return 9===e.type?e.expr:[e]}},32956:(e,t,i)=>{"use strict";i.d(t,{FD:()=>r,Mg:()=>o,gV:()=>n});const s=[];class n{static{this.cache=new Array(129)}static create(e,t){if(e<=128&&0===t.length){let i=n.cache[e];return i||(i=new n(e,t),n.cache[e]=i),i}return new n(e,t)}static{this.empty=n.create(0,s)}static getEmpty(){return this.empty}constructor(e,t){this.items=e,this.additionalItems=t}add(e,t){const i=t.getKey(e);let s=i>>5;if(0===s){const e=1<<i|this.items;return e===this.items?this:n.create(e,this.additionalItems)}s--;const r=this.additionalItems.slice(0);for(;r.length<s;)r.push(0);return r[s]|=1<<(31&i),n.create(this.items,r)}merge(e){const t=this.items|e.items;if(this.additionalItems===s&&e.additionalItems===s)return t===this.items?this:t===e.items?e:n.create(t,s);const i=[];for(let s=0;s<Math.max(this.additionalItems.length,e.additionalItems.length);s++){const t=this.additionalItems[s]||0,n=e.additionalItems[s]||0;i.push(t|n)}return n.create(t,i)}intersects(e){if(0!==(this.items&e.items))return!0;for(let t=0;t<Math.min(this.additionalItems.length,e.additionalItems.length);t++)if(0!==(this.additionalItems[t]&e.additionalItems[t]))return!0;return!1}}const r={getKey:e=>e};class o{constructor(){this.items=new Map}getKey(e){let t=this.items.get(e);return void 0===t&&(t=this.items.size,this.items.set(e,t)),t}}},33157:(e,t,i)=>{var s=i(33609),n=i(89807);e.exports=function(e,t,i,r){var o=e.length;for((i=s(i))<0&&(i=-i>o?0:o+i),(r=void 0===r||r>o?o:s(r))<0&&(r+=o),r=i>r?0:n(r);i<r;)e[i++]=t;return e}},33358:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>i.e(3648).then(i.bind(i,3648))})},34072:(e,t,i)=>{"use strict";i.d(t,{_:()=>r});var s=i(8597),n=i(5662);class r{constructor(){this._hooks=new n.Cm,this._pointerMoveCallback=null,this._onStopCallback=null}dispose(){this.stopMonitoring(!1),this._hooks.dispose()}stopMonitoring(e,t){if(!this.isMonitoring())return;this._hooks.clear(),this._pointerMoveCallback=null;const i=this._onStopCallback;this._onStopCallback=null,e&&i&&i(t)}isMonitoring(){return!!this._pointerMoveCallback}startMonitoring(e,t,i,r,o){this.isMonitoring()&&this.stopMonitoring(!1),this._pointerMoveCallback=r,this._onStopCallback=o;let a=e;try{e.setPointerCapture(t),this._hooks.add((0,n.s)((()=>{try{e.releasePointerCapture(t)}catch(i){}})))}catch(c){a=s.zk(e)}this._hooks.add(s.ko(a,s.Bx.POINTER_MOVE,(e=>{e.buttons===i?(e.preventDefault(),this._pointerMoveCallback(e)):this.stopMonitoring(!0)}))),this._hooks.add(s.ko(a,s.Bx.POINTER_UP,(e=>this.stopMonitoring(!0))))}}},34132:e=>{!function(){function t(e){return"yql."+e}function i(e,i){const s=t(i.toLowerCase());switch(i){case"String":case"Uuid":if(Array.isArray(e))return{$binary:!0,$type:s,$value:e[0]}}return{$type:s,$value:e}}function s(e,t){let s;return s="StructType"===t[0]?i(t[1][e][0],"String"):i(e,"Int32"),s.$key=!0,s}function n(e){const i={};return e.$value.forEach((function(e){const s=e[0],n=e[1];if(s.$type!==t("string"))throw new Error("unipika: try to convert struct with no-string keys to object");i[s.$value]=n.$value})),i}function r(e={}){return Object.prototype.hasOwnProperty.call(e,"src")&&"string"===typeof e.src?e.src:"string"===typeof e.$value?e.$value:void 0}function o(e,o,a){function c(e){return o.maxListSize>0&&Array.isArray(e)&&e.length>o.maxListSize?e.slice(0,o.maxListSize):e}function l(e,t){return t&&(e.$incomplete=!0),e}function h(e){if(o.maxStringSize>0&&e.$value){if(!e.$binary&&!e.$tag&&e.$value.length>o.maxStringSize)return e.$original_value=e.$value,e.$value=e.$value.substr(0,o.maxStringSize),l(e,!0);if(e.$binary&&!e.$tag&&.75*e.$value.length>o.maxStringSize)return e.$original_value=e.$value,e.$value=function(e,t){const i=Math.min(Math.floor(t/3),Math.ceil(e.length/4)),s=4*i,n=Math.min(t-3*i,e.length-s),r=e.substr(0,s);return 1==n?r+e.substr(s,2)+"==":2==n?r+e.substr(s,3)+"=":r}(e.$value,o.maxStringSize),l(e,!0)}return e}return function e(d,u){const g=u[0],p=u[1];let m,f,_;switch(o.treatValAsData&&d&&Object.hasOwnProperty.call(d,"val")&&(m=d.inc,f=d.b64,d=d.val),m?_=d:(_=c(d),m=_!==d),a.incomplete=a.incomplete||m,g){case"OptionalType":{const t=Array.isArray(d)&&d.length,i=t?e(d[0],p):e(null,["VoidType"]);return t&&(i.$optional=(i.$optional||0)+1),i}case"TaggedType":return function(e,i,s,o,a){let c,l=o(s,i);switch(e){case"url":if("StructType"===i[0]){if(c=n(l),!Object.prototype.hasOwnProperty.call(c,"href")||"string"!==typeof c.href)return l;l={$type:"tag_value",$value:c}}break;case"videourl":case"audiourl":case"imageurl":{if("StructType"===i[0]){c=n(l);const e=r(c);if(!e||!a(e))return l;l={$type:"tag_value",$value:c}}const e=r(l);if(e&&!a(e))return l;break}case"image/svg":case"image/svg+xml":case"image/jpeg":case"image/png":case"image/gif":case"image/webp":case"video/mp4":case"video/webm":if("StructType"===i[0]){if(c=n(l),!r(c))return l;l={$type:"tag_value",$value:c}}}return{$type:t("tagged"),$tag:e,$value:l}}(u[1],u[2],d,e,o.validateSrcUrl);case"ListType":return l({$type:t("list"),$value:_.map((function(t){return e(t,u[1])}))},m);case"StreamType":return l({$type:t("stream"),$value:_.map((function(t){return e(t,u[1])}))},m);case"TupleType":return l({$type:t("tuple"),$value:_.map((function(t,i){return e(t,p[i])}))},m);case"DictType":return"VoidType"===u[2][0]?l({$type:t("set"),$value:_.map((function(t){return e(t[0],u[1])}))},m):l({$type:t("dict"),$value:_.map((function(t){return[e(t[0],u[1]),e(t[1],u[2])]}))},m);case"StructType":{const s=d.map((function(t,s){const n=p[s],r=e(t,n[1]);if(o.omitStructNull&&null===r.$value)return null;const a=i(n[0],"String");return a.$key=!0,[a,r]})).filter(Boolean);return _=c(s),l({$type:t("struct"),$value:_},_!==s)}case"VariantType":{const i=function(e){const t=e[0];return e[1].map((function(e){return"StructType"===t?e[1]:e}))}(p);return function(e){return e.every((function(e){return"VoidType"===e[0]}))}(i)?{$type:t("enum"),$value:s(d[0],p).$value}:{$type:t("variant"),$value:[[s(d[0],p),e(d[1],i[d[0]])]]}}case"VoidType":case"NullType":return{$type:t("null"),$value:null};case"EmptyListType":return{$type:t("list"),$value:[]};case"EmptyDictType":return{$type:t("dict"),$value:[]};case"DataType":switch(p){case"String":case"Utf8":{const e=i(d,p);return f&&(e.$binary=!0),m?l(e,!0):h(e)}case"JsonDocument":return{$type:"yql.json",$value:d};case"Yson":{const e=i(d,p);return m?l(e,!0):e}default:return i(d,p)}case"PgType":{const e=u[2];return function(e,t,i){return{$type:"yql.pg."+t.toLowerCase(),$value:e,$category:i}}(d,p,e)}}}(...e)}e.exports=function(e,t,i){const s=function(e){const t=e||{},i=e&&e.validateSrcUrl?e.validateSrcUrl:()=>!1;return t.validateSrcUrl=i,t}(t);return o(e,s,i||{})}}()},34175:(e,t,i)=>{"use strict";i.d(t,{z0:()=>mt});var s=i(90766),n=i(5662),r=i(91508),o=i(31450),a=i(87119),c=i(60002),l=i(16223),h=i(46041),d=i(15092),u=i(83069),g=i(36677),p=i(75326),m=i(43264),f=i(87289),_=i(66261),v=i(47612);class C{constructor(e){this._editor=e,this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null,this._startPosition=this._editor.getPosition()}dispose(){this._editor.removeDecorations(this._allDecorations()),this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}reset(){this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}getCount(){return this._decorations.length}getFindScope(){return this._findScopeDecorationIds[0]?this._editor.getModel().getDecorationRange(this._findScopeDecorationIds[0]):null}getFindScopes(){if(this._findScopeDecorationIds.length){const e=this._findScopeDecorationIds.map((e=>this._editor.getModel().getDecorationRange(e))).filter((e=>!!e));if(e.length)return e}return null}getStartPosition(){return this._startPosition}setStartPosition(e){this._startPosition=e,this.setCurrentFindMatch(null)}_getDecorationIndex(e){const t=this._decorations.indexOf(e);return t>=0?t+1:1}getDecorationRangeAt(e){const t=e<this._decorations.length?this._decorations[e]:null;return t?this._editor.getModel().getDecorationRange(t):null}getCurrentMatchesPosition(e){const t=this._editor.getModel().getDecorationsInRange(e);for(const i of t){const e=i.options;if(e===C._FIND_MATCH_DECORATION||e===C._CURRENT_FIND_MATCH_DECORATION)return this._getDecorationIndex(i.id)}return 0}setCurrentFindMatch(e){let t=null,i=0;if(e)for(let s=0,n=this._decorations.length;s<n;s++){const n=this._editor.getModel().getDecorationRange(this._decorations[s]);if(e.equalsRange(n)){t=this._decorations[s],i=s+1;break}}return null===this._highlightedDecorationId&&null===t||this._editor.changeDecorations((e=>{if(null!==this._highlightedDecorationId&&(e.changeDecorationOptions(this._highlightedDecorationId,C._FIND_MATCH_DECORATION),this._highlightedDecorationId=null),null!==t&&(this._highlightedDecorationId=t,e.changeDecorationOptions(this._highlightedDecorationId,C._CURRENT_FIND_MATCH_DECORATION)),null!==this._rangeHighlightDecorationId&&(e.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),null!==t){let i=this._editor.getModel().getDecorationRange(t);if(i.startLineNumber!==i.endLineNumber&&1===i.endColumn){const e=i.endLineNumber-1,t=this._editor.getModel().getLineMaxColumn(e);i=new g.Q(i.startLineNumber,i.startColumn,e,t)}this._rangeHighlightDecorationId=e.addDecoration(i,C._RANGE_HIGHLIGHT_DECORATION)}})),i}set(e,t){this._editor.changeDecorations((i=>{let s=C._FIND_MATCH_DECORATION;const n=[];if(e.length>1e3){s=C._FIND_MATCH_NO_OVERVIEW_DECORATION;const t=this._editor.getModel().getLineCount(),i=this._editor.getLayoutInfo().height/t,r=Math.max(2,Math.ceil(3/i));let o=e[0].range.startLineNumber,a=e[0].range.endLineNumber;for(let s=1,c=e.length;s<c;s++){const t=e[s].range;a+r>=t.startLineNumber?t.endLineNumber>a&&(a=t.endLineNumber):(n.push({range:new g.Q(o,1,a,1),options:C._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),o=t.startLineNumber,a=t.endLineNumber)}n.push({range:new g.Q(o,1,a,1),options:C._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}const r=new Array(e.length);for(let t=0,o=e.length;t<o;t++)r[t]={range:e[t].range,options:s};this._decorations=i.deltaDecorations(this._decorations,r),this._overviewRulerApproximateDecorations=i.deltaDecorations(this._overviewRulerApproximateDecorations,n),this._rangeHighlightDecorationId&&(i.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),this._findScopeDecorationIds.length&&(this._findScopeDecorationIds.forEach((e=>i.removeDecoration(e))),this._findScopeDecorationIds=[]),t?.length&&(this._findScopeDecorationIds=t.map((e=>i.addDecoration(e,C._FIND_SCOPE_DECORATION))))}))}matchBeforePosition(e){if(0===this._decorations.length)return null;for(let t=this._decorations.length-1;t>=0;t--){const i=this._decorations[t],s=this._editor.getModel().getDecorationRange(i);if(s&&!(s.endLineNumber>e.lineNumber)){if(s.endLineNumber<e.lineNumber)return s;if(!(s.endColumn>e.column))return s}}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])}matchAfterPosition(e){if(0===this._decorations.length)return null;for(let t=0,i=this._decorations.length;t<i;t++){const i=this._decorations[t],s=this._editor.getModel().getDecorationRange(i);if(s&&!(s.startLineNumber<e.lineNumber)){if(s.startLineNumber>e.lineNumber)return s;if(!(s.startColumn<e.column))return s}}return this._editor.getModel().getDecorationRange(this._decorations[0])}_allDecorations(){let e=[];return e=e.concat(this._decorations),e=e.concat(this._overviewRulerApproximateDecorations),this._findScopeDecorationIds.length&&e.push(...this._findScopeDecorationIds),this._rangeHighlightDecorationId&&e.push(this._rangeHighlightDecorationId),e}static{this._CURRENT_FIND_MATCH_DECORATION=f.kI.register({description:"current-find-match",stickiness:1,zIndex:13,className:"currentFindMatch",inlineClassName:"currentFindMatchInline",showIfCollapsed:!0,overviewRuler:{color:(0,v.Yf)(_.fAP),position:l.A5.Center},minimap:{color:(0,v.Yf)(_.AjU),position:1}})}static{this._FIND_MATCH_DECORATION=f.kI.register({description:"find-match",stickiness:1,zIndex:10,className:"findMatch",inlineClassName:"findMatchInline",showIfCollapsed:!0,overviewRuler:{color:(0,v.Yf)(_.fAP),position:l.A5.Center},minimap:{color:(0,v.Yf)(_.AjU),position:1}})}static{this._FIND_MATCH_NO_OVERVIEW_DECORATION=f.kI.register({description:"find-match-no-overview",stickiness:1,className:"findMatch",showIfCollapsed:!0})}static{this._FIND_MATCH_ONLY_OVERVIEW_DECORATION=f.kI.register({description:"find-match-only-overview",stickiness:1,overviewRuler:{color:(0,v.Yf)(_.fAP),position:l.A5.Center}})}static{this._RANGE_HIGHLIGHT_DECORATION=f.kI.register({description:"find-range-highlight",stickiness:1,className:"rangeHighlight",isWholeLine:!0})}static{this._FIND_SCOPE_DECORATION=f.kI.register({description:"find-scope",className:"findScope",isWholeLine:!0})}}class E{constructor(e,t,i){this._editorSelection=e,this._ranges=t,this._replaceStrings=i,this._trackedEditorSelectionId=null}getEditOperations(e,t){if(this._ranges.length>0){const e=[];for(let t=0;t<this._ranges.length;t++)e.push({range:this._ranges[t],text:this._replaceStrings[t]});e.sort(((e,t)=>g.Q.compareRangesUsingStarts(e.range,t.range)));const i=[];let s=e[0];for(let t=1;t<e.length;t++)s.range.endLineNumber===e[t].range.startLineNumber&&s.range.endColumn===e[t].range.startColumn?(s.range=s.range.plusRange(e[t].range),s.text=s.text+e[t].text):(i.push(s),s=e[t]);i.push(s);for(const n of i)t.addEditOperation(n.range,n.text)}this._trackedEditorSelectionId=t.trackSelection(this._editorSelection)}computeCursorState(e,t){return t.getTrackedSelection(this._trackedEditorSelectionId)}}function b(e,t){if(e&&""!==e[0]){const i=S(e,t,"-"),s=S(e,t,"_");return i&&!s?y(e,t,"-"):!i&&s?y(e,t,"_"):e[0].toUpperCase()===e[0]?t.toUpperCase():e[0].toLowerCase()===e[0]?t.toLowerCase():r.zY(e[0][0])&&t.length>0?t[0].toUpperCase()+t.substr(1):e[0][0].toUpperCase()!==e[0][0]&&t.length>0?t[0].toLowerCase()+t.substr(1):t}return t}function S(e,t,i){return-1!==e[0].indexOf(i)&&-1!==t.indexOf(i)&&e[0].split(i).length===t.split(i).length}function y(e,t,i){const s=t.split(i),n=e[0].split(i);let r="";return s.forEach(((e,t)=>{r+=b([n[t]],e)+i})),r.slice(0,-1)}class w{constructor(e){this.staticValue=e,this.kind=0}}class R{constructor(e){this.pieces=e,this.kind=1}}class L{static fromStaticValue(e){return new L([T.staticValue(e)])}get hasReplacementPatterns(){return 1===this._state.kind}constructor(e){e&&0!==e.length?1===e.length&&null!==e[0].staticValue?this._state=new w(e[0].staticValue):this._state=new R(e):this._state=new w("")}buildReplaceString(e,t){if(0===this._state.kind)return t?b(e,this._state.staticValue):this._state.staticValue;let i="";for(let s=0,n=this._state.pieces.length;s<n;s++){const t=this._state.pieces[s];if(null!==t.staticValue){i+=t.staticValue;continue}let n=L._substitute(t.matchIndex,e);if(null!==t.caseOps&&t.caseOps.length>0){const e=[],i=t.caseOps.length;let s=0;for(let r=0,o=n.length;r<o;r++){if(s>=i){e.push(n.slice(r));break}switch(t.caseOps[s]){case"U":e.push(n[r].toUpperCase());break;case"u":e.push(n[r].toUpperCase()),s++;break;case"L":e.push(n[r].toLowerCase());break;case"l":e.push(n[r].toLowerCase()),s++;break;default:e.push(n[r])}}n=e.join("")}i+=n}return i}static _substitute(e,t){if(null===t)return"";if(0===e)return t[0];let i="";for(;e>0;){if(e<t.length){return(t[e]||"")+i}i=String(e%10)+i,e=Math.floor(e/10)}return"$"+i}}class T{static staticValue(e){return new T(e,-1,null)}static caseOps(e,t){return new T(null,e,t)}constructor(e,t,i){this.staticValue=e,this.matchIndex=t,i&&0!==i.length?this.caseOps=i.slice(0):this.caseOps=null}}class x{constructor(e){this._source=e,this._lastCharIndex=0,this._result=[],this._resultLen=0,this._currentStaticPiece=""}emitUnchanged(e){this._emitStatic(this._source.substring(this._lastCharIndex,e)),this._lastCharIndex=e}emitStatic(e,t){this._emitStatic(e),this._lastCharIndex=t}_emitStatic(e){0!==e.length&&(this._currentStaticPiece+=e)}emitMatchIndex(e,t,i){0!==this._currentStaticPiece.length&&(this._result[this._resultLen++]=T.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),this._result[this._resultLen++]=T.caseOps(e,i),this._lastCharIndex=t}finalize(){return this.emitUnchanged(this._source.length),0!==this._currentStaticPiece.length&&(this._result[this._resultLen++]=T.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),new L(this._result)}}var k=i(32848);const A=new k.N1("findWidgetVisible",!1),N=(A.toNegated(),new k.N1("findInputFocussed",!1)),I=new k.N1("replaceInputFocussed",!1),O={primary:545,mac:{primary:2593}},D={primary:565,mac:{primary:2613}},M={primary:560,mac:{primary:2608}},P={primary:554,mac:{primary:2602}},F={primary:558,mac:{primary:2606}},U="actions.find",H="actions.findWithSelection",B="editor.actions.findWithArgs",W="editor.action.nextMatchFindAction",V="editor.action.previousMatchFindAction",z="editor.action.goToMatchFindAction",G="editor.action.nextSelectionMatchFindAction",j="editor.action.previousSelectionMatchFindAction",K="editor.action.startFindReplaceAction",Y="closeFindWidget",q="toggleFindCaseSensitive",$="toggleFindWholeWord",Q="toggleFindRegex",X="toggleFindInSelection",Z="togglePreserveCase",J="editor.action.replaceOne",ee="editor.action.replaceAll",te="editor.action.selectAllMatches",ie=19999;class se{constructor(e,t){this._toDispose=new n.Cm,this._editor=e,this._state=t,this._isDisposed=!1,this._startSearchingTimer=new s.pc,this._decorations=new C(e),this._toDispose.add(this._decorations),this._updateDecorationsScheduler=new s.uC((()=>{if(this._editor.hasModel())return this.research(!1)}),100),this._toDispose.add(this._updateDecorationsScheduler),this._toDispose.add(this._editor.onDidChangeCursorPosition((e=>{3!==e.reason&&5!==e.reason&&6!==e.reason||this._decorations.setStartPosition(this._editor.getPosition())}))),this._ignoreModelContentChanged=!1,this._toDispose.add(this._editor.onDidChangeModelContent((e=>{this._ignoreModelContentChanged||(e.isFlush&&this._decorations.reset(),this._decorations.setStartPosition(this._editor.getPosition()),this._updateDecorationsScheduler.schedule())}))),this._toDispose.add(this._state.onFindReplaceStateChange((e=>this._onStateChanged(e)))),this.research(!1,this._state.searchScope)}dispose(){this._isDisposed=!0,(0,n.AS)(this._startSearchingTimer),this._toDispose.dispose()}_onStateChanged(e){if(!this._isDisposed&&this._editor.hasModel()&&(e.searchString||e.isReplaceRevealed||e.isRegex||e.wholeWord||e.matchCase||e.searchScope)){this._editor.getModel().isTooLargeForSyncing()?(this._startSearchingTimer.cancel(),this._startSearchingTimer.setIfNotSet((()=>{e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor)}),240)):e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor)}}static _getSearchRange(e,t){return t||e.getFullModelRange()}research(e,t){let i=null;"undefined"!==typeof t?null!==t&&(i=Array.isArray(t)?t:[t]):i=this._decorations.getFindScopes(),null!==i&&(i=i.map((e=>{if(e.startLineNumber!==e.endLineNumber){let t=e.endLineNumber;return 1===e.endColumn&&(t-=1),new g.Q(e.startLineNumber,1,t,this._editor.getModel().getLineMaxColumn(t))}return e})));const s=this._findMatches(i,!1,ie);this._decorations.set(s,i);const n=this._editor.getSelection();let r=this._decorations.getCurrentMatchesPosition(n);if(0===r&&s.length>0){const e=(0,h.hw)(s.map((e=>e.range)),(e=>g.Q.compareRangesUsingStarts(e,n)>=0));r=e>0?e-1+1:r}this._state.changeMatchInfo(r,this._decorations.getCount(),void 0),e&&this._editor.getOption(41).cursorMoveOnType&&this._moveToNextMatch(this._decorations.getStartPosition())}_hasMatches(){return this._state.matchesCount>0}_cannotFind(){if(!this._hasMatches()){const e=this._decorations.getFindScope();return e&&this._editor.revealRangeInCenterIfOutsideViewport(e,0),!0}return!1}_setCurrentFindMatch(e){const t=this._decorations.setCurrentFindMatch(e);this._state.changeMatchInfo(t,this._decorations.getCount(),e),this._editor.setSelection(e),this._editor.revealRangeInCenterIfOutsideViewport(e,0)}_prevSearchPosition(e){const t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0);let{lineNumber:i,column:s}=e;const n=this._editor.getModel();return t||1===s?(1===i?i=n.getLineCount():i--,s=n.getLineMaxColumn(i)):s--,new u.y(i,s)}_moveToPrevMatch(e,t=!1){if(!this._state.canNavigateBack()){const t=this._decorations.matchAfterPosition(e);return void(t&&this._setCurrentFindMatch(t))}if(this._decorations.getCount()<ie){let t=this._decorations.matchBeforePosition(e);return t&&t.isEmpty()&&t.getStartPosition().equals(e)&&(e=this._prevSearchPosition(e),t=this._decorations.matchBeforePosition(e)),void(t&&this._setCurrentFindMatch(t))}if(this._cannotFind())return;const i=this._decorations.getFindScope(),s=se._getSearchRange(this._editor.getModel(),i);s.getEndPosition().isBefore(e)&&(e=s.getEndPosition()),e.isBefore(s.getStartPosition())&&(e=s.getEndPosition());const{lineNumber:n,column:r}=e,o=this._editor.getModel();let a=new u.y(n,r),c=o.findPreviousMatch(this._state.searchString,a,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(132):null,!1);return c&&c.range.isEmpty()&&c.range.getStartPosition().equals(a)&&(a=this._prevSearchPosition(a),c=o.findPreviousMatch(this._state.searchString,a,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(132):null,!1)),c?t||s.containsRange(c.range)?void this._setCurrentFindMatch(c.range):this._moveToPrevMatch(c.range.getStartPosition(),!0):void 0}moveToPrevMatch(){this._moveToPrevMatch(this._editor.getSelection().getStartPosition())}_nextSearchPosition(e){const t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0);let{lineNumber:i,column:s}=e;const n=this._editor.getModel();return t||s===n.getLineMaxColumn(i)?(i===n.getLineCount()?i=1:i++,s=1):s++,new u.y(i,s)}_moveToNextMatch(e){if(!this._state.canNavigateForward()){const t=this._decorations.matchBeforePosition(e);return void(t&&this._setCurrentFindMatch(t))}if(this._decorations.getCount()<ie){let t=this._decorations.matchAfterPosition(e);return t&&t.isEmpty()&&t.getStartPosition().equals(e)&&(e=this._nextSearchPosition(e),t=this._decorations.matchAfterPosition(e)),void(t&&this._setCurrentFindMatch(t))}const t=this._getNextMatch(e,!1,!0);t&&this._setCurrentFindMatch(t.range)}_getNextMatch(e,t,i,s=!1){if(this._cannotFind())return null;const n=this._decorations.getFindScope(),r=se._getSearchRange(this._editor.getModel(),n);r.getEndPosition().isBefore(e)&&(e=r.getStartPosition()),e.isBefore(r.getStartPosition())&&(e=r.getStartPosition());const{lineNumber:o,column:a}=e,c=this._editor.getModel();let l=new u.y(o,a),h=c.findNextMatch(this._state.searchString,l,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(132):null,t);return i&&h&&h.range.isEmpty()&&h.range.getStartPosition().equals(l)&&(l=this._nextSearchPosition(l),h=c.findNextMatch(this._state.searchString,l,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(132):null,t)),h?s||r.containsRange(h.range)?h:this._getNextMatch(h.range.getEndPosition(),t,i,!0):null}moveToNextMatch(){this._moveToNextMatch(this._editor.getSelection().getEndPosition())}_moveToMatch(e){const t=this._decorations.getDecorationRangeAt(e);t&&this._setCurrentFindMatch(t)}moveToMatch(e){this._moveToMatch(e)}_getReplacePattern(){return this._state.isRegex?function(e){if(!e||0===e.length)return new L(null);const t=[],i=new x(e);for(let s=0,n=e.length;s<n;s++){const r=e.charCodeAt(s);if(92!==r){if(36===r){if(s++,s>=n)break;const r=e.charCodeAt(s);if(36===r){i.emitUnchanged(s-1),i.emitStatic("$",s+1);continue}if(48===r||38===r){i.emitUnchanged(s-1),i.emitMatchIndex(0,s+1,t),t.length=0;continue}if(49<=r&&r<=57){let o=r-48;if(s+1<n){const n=e.charCodeAt(s+1);if(48<=n&&n<=57){s++,o=10*o+(n-48),i.emitUnchanged(s-2),i.emitMatchIndex(o,s+1,t),t.length=0;continue}}i.emitUnchanged(s-1),i.emitMatchIndex(o,s+1,t),t.length=0;continue}}}else{if(s++,s>=n)break;const r=e.charCodeAt(s);switch(r){case 92:i.emitUnchanged(s-1),i.emitStatic("\\",s+1);break;case 110:i.emitUnchanged(s-1),i.emitStatic("\n",s+1);break;case 116:i.emitUnchanged(s-1),i.emitStatic("\t",s+1);break;case 117:case 85:case 108:case 76:i.emitUnchanged(s-1),i.emitStatic("",s+1),t.push(String.fromCharCode(r))}}}return i.finalize()}(this._state.replaceString):L.fromStaticValue(this._state.replaceString)}replace(){if(!this._hasMatches())return;const e=this._getReplacePattern(),t=this._editor.getSelection(),i=this._getNextMatch(t.getStartPosition(),!0,!1);if(i)if(t.equalsRange(i.range)){const s=e.buildReplaceString(i.matches,this._state.preserveCase),n=new d.iu(t,s);this._executeEditorCommand("replace",n),this._decorations.setStartPosition(new u.y(t.startLineNumber,t.startColumn+s.length)),this.research(!0)}else this._decorations.setStartPosition(this._editor.getPosition()),this._setCurrentFindMatch(i.range)}_findMatches(e,t,i){const s=(e||[null]).map((e=>se._getSearchRange(this._editor.getModel(),e)));return this._editor.getModel().findMatches(this._state.searchString,s,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(132):null,t,i)}replaceAll(){if(!this._hasMatches())return;const e=this._decorations.getFindScopes();null===e&&this._state.matchesCount>=ie?this._largeReplaceAll():this._regularReplaceAll(e),this.research(!1)}_largeReplaceAll(){const e=new m.lt(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(132):null).parseSearchRequest();if(!e)return;let t=e.regex;if(!t.multiline){let e="mu";t.ignoreCase&&(e+="i"),t.global&&(e+="g"),t=new RegExp(t.source,e)}const i=this._editor.getModel(),s=i.getValue(1),n=i.getFullModelRange(),r=this._getReplacePattern();let o;const a=this._state.preserveCase;o=r.hasReplacementPatterns||a?s.replace(t,(function(){return r.buildReplaceString(arguments,a)})):s.replace(t,r.buildReplaceString(null,a));const c=new d.ui(n,o,this._editor.getSelection());this._executeEditorCommand("replaceAll",c)}_regularReplaceAll(e){const t=this._getReplacePattern(),i=this._findMatches(e,t.hasReplacementPatterns||this._state.preserveCase,1073741824),s=[];for(let r=0,o=i.length;r<o;r++)s[r]=t.buildReplaceString(i[r].matches,this._state.preserveCase);const n=new E(this._editor.getSelection(),i.map((e=>e.range)),s);this._executeEditorCommand("replaceAll",n)}selectAllMatches(){if(!this._hasMatches())return;const e=this._decorations.getFindScopes();let t=this._findMatches(e,!1,1073741824).map((e=>new p.L(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn)));const i=this._editor.getSelection();for(let s=0,n=t.length;s<n;s++){if(t[s].equalsRange(i)){t=[i].concat(t.slice(0,s)).concat(t.slice(s+1));break}}this._editor.setSelections(t)}_executeEditorCommand(e,t){try{this._ignoreModelContentChanged=!0,this._editor.pushUndoStop(),this._editor.executeCommand(e,t),this._editor.pushUndoStop()}finally{this._ignoreModelContentChanged=!1}}}var ne=i(8597),re=i(23034),oe=i(17390),ae=i(42904);class ce extends oe.x{static{this.ID="editor.contrib.findOptionsWidget"}constructor(e,t,i){super(),this._hideSoon=this._register(new s.uC((()=>this._hide()),2e3)),this._isVisible=!1,this._editor=e,this._state=t,this._keybindingService=i,this._domNode=document.createElement("div"),this._domNode.className="findOptionsWidget",this._domNode.style.display="none",this._domNode.style.top="10px",this._domNode.style.zIndex="12",this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true");const n={inputActiveOptionBorder:(0,_.GuP)(_.uNK),inputActiveOptionForeground:(0,_.GuP)(_.$$0),inputActiveOptionBackground:(0,_.GuP)(_.c1f)},r=this._register((0,ae.bW)());this.caseSensitive=this._register(new re.bc({appendTitle:this._keybindingLabelFor(q),isChecked:this._state.matchCase,hoverDelegate:r,...n})),this._domNode.appendChild(this.caseSensitive.domNode),this._register(this.caseSensitive.onChange((()=>{this._state.change({matchCase:this.caseSensitive.checked},!1)}))),this.wholeWords=this._register(new re.nV({appendTitle:this._keybindingLabelFor($),isChecked:this._state.wholeWord,hoverDelegate:r,...n})),this._domNode.appendChild(this.wholeWords.domNode),this._register(this.wholeWords.onChange((()=>{this._state.change({wholeWord:this.wholeWords.checked},!1)}))),this.regex=this._register(new re.Ix({appendTitle:this._keybindingLabelFor(Q),isChecked:this._state.isRegex,hoverDelegate:r,...n})),this._domNode.appendChild(this.regex.domNode),this._register(this.regex.onChange((()=>{this._state.change({isRegex:this.regex.checked},!1)}))),this._editor.addOverlayWidget(this),this._register(this._state.onFindReplaceStateChange((e=>{let t=!1;e.isRegex&&(this.regex.checked=this._state.isRegex,t=!0),e.wholeWord&&(this.wholeWords.checked=this._state.wholeWord,t=!0),e.matchCase&&(this.caseSensitive.checked=this._state.matchCase,t=!0),!this._state.isRevealed&&t&&this._revealTemporarily()}))),this._register(ne.ko(this._domNode,ne.Bx.MOUSE_LEAVE,(e=>this._onMouseLeave()))),this._register(ne.ko(this._domNode,"mouseover",(e=>this._onMouseOver())))}_keybindingLabelFor(e){const t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return ce.ID}getDomNode(){return this._domNode}getPosition(){return{preference:0}}highlightFindOptions(){this._revealTemporarily()}_revealTemporarily(){this._show(),this._hideSoon.schedule()}_onMouseLeave(){this._hideSoon.schedule()}_onMouseOver(){this._hideSoon.cancel()}_show(){this._isVisible||(this._isVisible=!0,this._domNode.style.display="block")}_hide(){this._isVisible&&(this._isVisible=!1,this._domNode.style.display="none")}}var le=i(41234);function he(e,t){return 1===e||2!==e&&t}class de extends n.jG{get searchString(){return this._searchString}get replaceString(){return this._replaceString}get isRevealed(){return this._isRevealed}get isReplaceRevealed(){return this._isReplaceRevealed}get isRegex(){return he(this._isRegexOverride,this._isRegex)}get wholeWord(){return he(this._wholeWordOverride,this._wholeWord)}get matchCase(){return he(this._matchCaseOverride,this._matchCase)}get preserveCase(){return he(this._preserveCaseOverride,this._preserveCase)}get actualIsRegex(){return this._isRegex}get actualWholeWord(){return this._wholeWord}get actualMatchCase(){return this._matchCase}get actualPreserveCase(){return this._preserveCase}get searchScope(){return this._searchScope}get matchesPosition(){return this._matchesPosition}get matchesCount(){return this._matchesCount}get currentMatch(){return this._currentMatch}constructor(){super(),this._onFindReplaceStateChange=this._register(new le.vl),this.onFindReplaceStateChange=this._onFindReplaceStateChange.event,this._searchString="",this._replaceString="",this._isRevealed=!1,this._isReplaceRevealed=!1,this._isRegex=!1,this._isRegexOverride=0,this._wholeWord=!1,this._wholeWordOverride=0,this._matchCase=!1,this._matchCaseOverride=0,this._preserveCase=!1,this._preserveCaseOverride=0,this._searchScope=null,this._matchesPosition=0,this._matchesCount=0,this._currentMatch=null,this._loop=!0,this._isSearching=!1,this._filters=null}changeMatchInfo(e,t,i){const s={moveCursor:!1,updateHistory:!1,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1,isSearching:!1,filters:!1};let n=!1;0===t&&(e=0),e>t&&(e=t),this._matchesPosition!==e&&(this._matchesPosition=e,s.matchesPosition=!0,n=!0),this._matchesCount!==t&&(this._matchesCount=t,s.matchesCount=!0,n=!0),"undefined"!==typeof i&&(g.Q.equalsRange(this._currentMatch,i)||(this._currentMatch=i,s.currentMatch=!0,n=!0)),n&&this._onFindReplaceStateChange.fire(s)}change(e,t,i=!0){const s={moveCursor:t,updateHistory:i,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1,isSearching:!1,filters:!1};let n=!1;const r=this.isRegex,o=this.wholeWord,a=this.matchCase,c=this.preserveCase;"undefined"!==typeof e.searchString&&this._searchString!==e.searchString&&(this._searchString=e.searchString,s.searchString=!0,n=!0),"undefined"!==typeof e.replaceString&&this._replaceString!==e.replaceString&&(this._replaceString=e.replaceString,s.replaceString=!0,n=!0),"undefined"!==typeof e.isRevealed&&this._isRevealed!==e.isRevealed&&(this._isRevealed=e.isRevealed,s.isRevealed=!0,n=!0),"undefined"!==typeof e.isReplaceRevealed&&this._isReplaceRevealed!==e.isReplaceRevealed&&(this._isReplaceRevealed=e.isReplaceRevealed,s.isReplaceRevealed=!0,n=!0),"undefined"!==typeof e.isRegex&&(this._isRegex=e.isRegex),"undefined"!==typeof e.wholeWord&&(this._wholeWord=e.wholeWord),"undefined"!==typeof e.matchCase&&(this._matchCase=e.matchCase),"undefined"!==typeof e.preserveCase&&(this._preserveCase=e.preserveCase),"undefined"!==typeof e.searchScope&&(e.searchScope?.every((e=>this._searchScope?.some((t=>!g.Q.equalsRange(t,e)))))||(this._searchScope=e.searchScope,s.searchScope=!0,n=!0)),"undefined"!==typeof e.loop&&this._loop!==e.loop&&(this._loop=e.loop,s.loop=!0,n=!0),"undefined"!==typeof e.isSearching&&this._isSearching!==e.isSearching&&(this._isSearching=e.isSearching,s.isSearching=!0,n=!0),"undefined"!==typeof e.filters&&(this._filters?this._filters.update(e.filters):this._filters=e.filters,s.filters=!0,n=!0),this._isRegexOverride="undefined"!==typeof e.isRegexOverride?e.isRegexOverride:0,this._wholeWordOverride="undefined"!==typeof e.wholeWordOverride?e.wholeWordOverride:0,this._matchCaseOverride="undefined"!==typeof e.matchCaseOverride?e.matchCaseOverride:0,this._preserveCaseOverride="undefined"!==typeof e.preserveCaseOverride?e.preserveCaseOverride:0,r!==this.isRegex&&(n=!0,s.isRegex=!0),o!==this.wholeWord&&(n=!0,s.wholeWord=!0),a!==this.matchCase&&(n=!0,s.matchCase=!0),c!==this.preserveCase&&(n=!0,s.preserveCase=!0),n&&this._onFindReplaceStateChange.fire(s)}canNavigateBack(){return this.canNavigateInLoop()||1!==this.matchesPosition}canNavigateForward(){return this.canNavigateInLoop()||this.matchesPosition<this.matchesCount}canNavigateInLoop(){return this._loop||this.matchesCount>=ie}}var ue=i(11007),ge=i(35315),pe=i(92403),me=i(10350),fe=i(64383),_e=i(98067),ve=i(78209),Ce=i(89100);function Ee(e){return"Up"===e.lookupKeybinding("history.showPrevious")?.getElectronAccelerator()&&"Down"===e.lookupKeybinding("history.showNext")?.getElectronAccelerator()}var be=i(61394),Se=i(25689),ye=i(86723),we=i(631),Re=i(19070);const Le=(0,be.pU)("find-collapsed",me.W.chevronRight,ve.kg("findCollapsedIcon","Icon to indicate that the editor find widget is collapsed.")),Te=(0,be.pU)("find-expanded",me.W.chevronDown,ve.kg("findExpandedIcon","Icon to indicate that the editor find widget is expanded.")),xe=(0,be.pU)("find-selection",me.W.selection,ve.kg("findSelectionIcon","Icon for 'Find in Selection' in the editor find widget.")),ke=(0,be.pU)("find-replace",me.W.replace,ve.kg("findReplaceIcon","Icon for 'Replace' in the editor find widget.")),Ae=(0,be.pU)("find-replace-all",me.W.replaceAll,ve.kg("findReplaceAllIcon","Icon for 'Replace All' in the editor find widget.")),Ne=(0,be.pU)("find-previous-match",me.W.arrowUp,ve.kg("findPreviousMatchIcon","Icon for 'Find Previous' in the editor find widget.")),Ie=(0,be.pU)("find-next-match",me.W.arrowDown,ve.kg("findNextMatchIcon","Icon for 'Find Next' in the editor find widget.")),Oe=ve.kg("label.findDialog","Find / Replace"),De=ve.kg("label.find","Find"),Me=ve.kg("placeholder.find","Find"),Pe=ve.kg("label.previousMatchButton","Previous Match"),Fe=ve.kg("label.nextMatchButton","Next Match"),Ue=ve.kg("label.toggleSelectionFind","Find in Selection"),He=ve.kg("label.closeButton","Close"),Be=ve.kg("label.replace","Replace"),We=ve.kg("placeholder.replace","Replace"),Ve=ve.kg("label.replaceButton","Replace"),ze=ve.kg("label.replaceAllButton","Replace All"),Ge=ve.kg("label.toggleReplaceButton","Toggle Replace"),je=ve.kg("title.matchesCountLimit","Only the first {0} results are highlighted, but all find operations work on the entire text.",ie),Ke=ve.kg("label.matchesLocation","{0} of {1}"),Ye=ve.kg("label.noResults","No results"),qe=419;let $e=69;const Qe="ctrlEnterReplaceAll.windows.donotask",Xe=_e.zx?256:2048;class Ze{constructor(e){this.afterLineNumber=e,this.heightInPx=33,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"}}function Je(e,t,i){const s=!!t.match(/\n/);i&&s&&i.selectionStart>0&&e.stopPropagation()}function et(e,t,i){const s=!!t.match(/\n/);i&&s&&i.selectionEnd<i.value.length&&e.stopPropagation()}class tt extends oe.x{static{this.ID="editor.contrib.findWidget"}constructor(e,t,i,r,o,a,c,l,h,d){super(),this._hoverService=d,this._cachedHeight=null,this._revealTimeouts=[],this._codeEditor=e,this._controller=t,this._state=i,this._contextViewProvider=r,this._keybindingService=o,this._contextKeyService=a,this._storageService=l,this._notificationService=h,this._ctrlEnterReplaceAllWarningPrompted=!!l.getBoolean(Qe,0),this._isVisible=!1,this._isReplaceVisible=!1,this._ignoreChangeEvent=!1,this._updateHistoryDelayer=new s.ve(500),this._register((0,n.s)((()=>this._updateHistoryDelayer.cancel()))),this._register(this._state.onFindReplaceStateChange((e=>this._onStateChanged(e)))),this._buildDomNode(),this._updateButtons(),this._tryUpdateWidgetWidth(),this._findInput.inputBox.layout(),this._register(this._codeEditor.onDidChangeConfiguration((e=>{if(e.hasChanged(92)&&(this._codeEditor.getOption(92)&&this._state.change({isReplaceRevealed:!1},!1),this._updateButtons()),e.hasChanged(146)&&this._tryUpdateWidgetWidth(),e.hasChanged(2)&&this.updateAccessibilitySupport(),e.hasChanged(41)){const e=this._codeEditor.getOption(41).loop;this._state.change({loop:e},!1);const t=this._codeEditor.getOption(41).addExtraSpaceOnTop;t&&!this._viewZone&&(this._viewZone=new Ze(0),this._showViewZone()),!t&&this._viewZone&&this._removeViewZone()}}))),this.updateAccessibilitySupport(),this._register(this._codeEditor.onDidChangeCursorSelection((()=>{this._isVisible&&this._updateToggleSelectionFindButton()}))),this._register(this._codeEditor.onDidFocusEditorWidget((async()=>{if(this._isVisible){const e=await this._controller.getGlobalBufferTerm();e&&e!==this._state.searchString&&(this._state.change({searchString:e},!1),this._findInput.select())}}))),this._findInputFocused=N.bindTo(a),this._findFocusTracker=this._register(ne.w5(this._findInput.inputBox.inputElement)),this._register(this._findFocusTracker.onDidFocus((()=>{this._findInputFocused.set(!0),this._updateSearchScope()}))),this._register(this._findFocusTracker.onDidBlur((()=>{this._findInputFocused.set(!1)}))),this._replaceInputFocused=I.bindTo(a),this._replaceFocusTracker=this._register(ne.w5(this._replaceInput.inputBox.inputElement)),this._register(this._replaceFocusTracker.onDidFocus((()=>{this._replaceInputFocused.set(!0),this._updateSearchScope()}))),this._register(this._replaceFocusTracker.onDidBlur((()=>{this._replaceInputFocused.set(!1)}))),this._codeEditor.addOverlayWidget(this),this._codeEditor.getOption(41).addExtraSpaceOnTop&&(this._viewZone=new Ze(0)),this._register(this._codeEditor.onDidChangeModel((()=>{this._isVisible&&(this._viewZoneId=void 0)}))),this._register(this._codeEditor.onDidScrollChange((e=>{e.scrollTopChanged?this._layoutViewZone():setTimeout((()=>{this._layoutViewZone()}),0)})))}getId(){return tt.ID}getDomNode(){return this._domNode}getPosition(){return this._isVisible?{preference:0}:null}_onStateChanged(e){if(e.searchString){try{this._ignoreChangeEvent=!0,this._findInput.setValue(this._state.searchString)}finally{this._ignoreChangeEvent=!1}this._updateButtons()}if(e.replaceString&&(this._replaceInput.inputBox.value=this._state.replaceString),e.isRevealed&&(this._state.isRevealed?this._reveal():this._hide(!0)),e.isReplaceRevealed&&(this._state.isReplaceRevealed?this._codeEditor.getOption(92)||this._isReplaceVisible||(this._isReplaceVisible=!0,this._replaceInput.width=ne.Tr(this._findInput.domNode),this._updateButtons(),this._replaceInput.inputBox.layout()):this._isReplaceVisible&&(this._isReplaceVisible=!1,this._updateButtons())),(e.isRevealed||e.isReplaceRevealed)&&(this._state.isRevealed||this._state.isReplaceRevealed)&&this._tryUpdateHeight()&&this._showViewZone(),e.isRegex&&this._findInput.setRegex(this._state.isRegex),e.wholeWord&&this._findInput.setWholeWords(this._state.wholeWord),e.matchCase&&this._findInput.setCaseSensitive(this._state.matchCase),e.preserveCase&&this._replaceInput.setPreserveCase(this._state.preserveCase),e.searchScope&&(this._state.searchScope?this._toggleSelectionFind.checked=!0:this._toggleSelectionFind.checked=!1,this._updateToggleSelectionFindButton()),e.searchString||e.matchesCount||e.matchesPosition){const e=this._state.searchString.length>0&&0===this._state.matchesCount;this._domNode.classList.toggle("no-results",e),this._updateMatchesCount(),this._updateButtons()}(e.searchString||e.currentMatch)&&this._layoutViewZone(),e.updateHistory&&this._delayedUpdateHistory(),e.loop&&this._updateButtons()}_delayedUpdateHistory(){this._updateHistoryDelayer.trigger(this._updateHistory.bind(this)).then(void 0,fe.dz)}_updateHistory(){this._state.searchString&&this._findInput.inputBox.addToHistory(),this._state.replaceString&&this._replaceInput.inputBox.addToHistory()}_updateMatchesCount(){let e;if(this._matchesCount.style.minWidth=$e+"px",this._state.matchesCount>=ie?this._matchesCount.title=je:this._matchesCount.title="",this._matchesCount.firstChild?.remove(),this._state.matchesCount>0){let t=String(this._state.matchesCount);this._state.matchesCount>=ie&&(t+="+");let i=String(this._state.matchesPosition);"0"===i&&(i="?"),e=r.GP(Ke,i,t)}else e=Ye;this._matchesCount.appendChild(document.createTextNode(e)),(0,ue.xE)(this._getAriaLabel(e,this._state.currentMatch,this._state.searchString)),$e=Math.max($e,this._matchesCount.clientWidth)}_getAriaLabel(e,t,i){if(e===Ye)return""===i?ve.kg("ariaSearchNoResultEmpty","{0} found",e):ve.kg("ariaSearchNoResult","{0} found for '{1}'",e,i);if(t){const s=ve.kg("ariaSearchNoResultWithLineNum","{0} found for '{1}', at {2}",e,i,t.startLineNumber+":"+t.startColumn),n=this._codeEditor.getModel();if(n&&t.startLineNumber<=n.getLineCount()&&t.startLineNumber>=1){return`${n.getLineContent(t.startLineNumber)}, ${s}`}return s}return ve.kg("ariaSearchNoResultWithLineNumNoCurrentMatch","{0} found for '{1}'",e,i)}_updateToggleSelectionFindButton(){const e=this._codeEditor.getSelection(),t=!!e&&(e.startLineNumber!==e.endLineNumber||e.startColumn!==e.endColumn),i=this._toggleSelectionFind.checked;this._isVisible&&(i||t)?this._toggleSelectionFind.enable():this._toggleSelectionFind.disable()}_updateButtons(){this._findInput.setEnabled(this._isVisible),this._replaceInput.setEnabled(this._isVisible&&this._isReplaceVisible),this._updateToggleSelectionFindButton(),this._closeBtn.setEnabled(this._isVisible);const e=this._state.searchString.length>0,t=!!this._state.matchesCount;this._prevBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateBack()),this._nextBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateForward()),this._replaceBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._replaceAllBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._domNode.classList.toggle("replaceToggled",this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible);const i=!this._codeEditor.getOption(92);this._toggleReplaceBtn.setEnabled(this._isVisible&&i)}_reveal(){if(this._revealTimeouts.forEach((e=>{clearTimeout(e)})),this._revealTimeouts=[],!this._isVisible){this._isVisible=!0;const e=this._codeEditor.getSelection();switch(this._codeEditor.getOption(41).autoFindInSelection){case"always":this._toggleSelectionFind.checked=!0;break;case"never":this._toggleSelectionFind.checked=!1;break;case"multiline":{const t=!!e&&e.startLineNumber!==e.endLineNumber;this._toggleSelectionFind.checked=t;break}}this._tryUpdateWidgetWidth(),this._updateButtons(),this._revealTimeouts.push(setTimeout((()=>{this._domNode.classList.add("visible"),this._domNode.setAttribute("aria-hidden","false")}),0)),this._revealTimeouts.push(setTimeout((()=>{this._findInput.validate()}),200)),this._codeEditor.layoutOverlayWidget(this);let t=!0;if(this._codeEditor.getOption(41).seedSearchStringFromSelection&&e){const i=this._codeEditor.getDomNode();if(i){const s=ne.BK(i),n=this._codeEditor.getScrolledVisiblePosition(e.getStartPosition()),r=s.left+(n?n.left:0),o=n?n.top:0;if(this._viewZone&&o<this._viewZone.heightInPx){e.endLineNumber>e.startLineNumber&&(t=!1);const i=ne.cL(this._domNode).left;r>i&&(t=!1);const n=this._codeEditor.getScrolledVisiblePosition(e.getEndPosition());s.left+(n?n.left:0)>i&&(t=!1)}}}this._showViewZone(t)}}_hide(e){this._revealTimeouts.forEach((e=>{clearTimeout(e)})),this._revealTimeouts=[],this._isVisible&&(this._isVisible=!1,this._updateButtons(),this._domNode.classList.remove("visible"),this._domNode.setAttribute("aria-hidden","true"),this._findInput.clearMessage(),e&&this._codeEditor.focus(),this._codeEditor.layoutOverlayWidget(this),this._removeViewZone())}_layoutViewZone(e){if(!this._codeEditor.getOption(41).addExtraSpaceOnTop)return void this._removeViewZone();if(!this._isVisible)return;const t=this._viewZone;void 0===this._viewZoneId&&t&&this._codeEditor.changeViewZones((i=>{t.heightInPx=this._getHeight(),this._viewZoneId=i.addZone(t),this._codeEditor.setScrollTop(e||this._codeEditor.getScrollTop()+t.heightInPx)}))}_showViewZone(e=!0){if(!this._isVisible)return;if(!this._codeEditor.getOption(41).addExtraSpaceOnTop)return;void 0===this._viewZone&&(this._viewZone=new Ze(0));const t=this._viewZone;this._codeEditor.changeViewZones((i=>{if(void 0!==this._viewZoneId){const s=this._getHeight();if(s===t.heightInPx)return;const n=s-t.heightInPx;return t.heightInPx=s,i.layoutZone(this._viewZoneId),void(e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+n))}{let s=this._getHeight();if(s-=this._codeEditor.getOption(84).top,s<=0)return;t.heightInPx=s,this._viewZoneId=i.addZone(t),e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+s)}}))}_removeViewZone(){this._codeEditor.changeViewZones((e=>{void 0!==this._viewZoneId&&(e.removeZone(this._viewZoneId),this._viewZoneId=void 0,this._viewZone&&(this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()-this._viewZone.heightInPx),this._viewZone=void 0))}))}_tryUpdateWidgetWidth(){if(!this._isVisible)return;if(!this._domNode.isConnected)return;const e=this._codeEditor.getLayoutInfo();if(e.contentWidth<=0)return void this._domNode.classList.add("hiddenEditor");this._domNode.classList.contains("hiddenEditor")&&this._domNode.classList.remove("hiddenEditor");const t=e.width,i=e.minimap.minimapWidth;let s=!1,n=!1,r=!1;if(this._resized){if(ne.Tr(this._domNode)>qe)return this._domNode.style.maxWidth=t-28-i-15+"px",void(this._replaceInput.width=ne.Tr(this._findInput.domNode))}if(447+i>=t&&(n=!0),447+i-$e>=t&&(r=!0),447+i-$e>=t+50&&(s=!0),this._domNode.classList.toggle("collapsed-find-widget",s),this._domNode.classList.toggle("narrow-find-widget",r),this._domNode.classList.toggle("reduced-find-widget",n),r||s||(this._domNode.style.maxWidth=t-28-i-15+"px"),this._findInput.layout({collapsedFindWidget:s,narrowFindWidget:r,reducedFindWidget:n}),this._resized){const e=this._findInput.inputBox.element.clientWidth;e>0&&(this._replaceInput.width=e)}else this._isReplaceVisible&&(this._replaceInput.width=ne.Tr(this._findInput.domNode))}_getHeight(){let e=0;return e+=4,e+=this._findInput.inputBox.height+2,this._isReplaceVisible&&(e+=4,e+=this._replaceInput.inputBox.height+2),e+=4,e}_tryUpdateHeight(){const e=this._getHeight();return(null===this._cachedHeight||this._cachedHeight!==e)&&(this._cachedHeight=e,this._domNode.style.height=`${e}px`,!0)}focusFindInput(){this._findInput.select(),this._findInput.focus()}focusReplaceInput(){this._replaceInput.select(),this._replaceInput.focus()}highlightFindOptions(){this._findInput.highlightFindOptions()}_updateSearchScope(){if(this._codeEditor.hasModel()&&this._toggleSelectionFind.checked){const e=this._codeEditor.getSelections();e.map((e=>{1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(e.endLineNumber-1)));const t=this._state.currentMatch;return e.startLineNumber===e.endLineNumber||g.Q.equalsRange(e,t)?null:e})).filter((e=>!!e)),e.length&&this._state.change({searchScope:e},!0)}}_onFindInputMouseDown(e){e.middleButton&&e.stopPropagation()}_onFindInputKeyDown(e){return e.equals(3|Xe)?(this._keybindingService.dispatchEvent(e,e.target)||this._findInput.inputBox.insertAtCursor("\n"),void e.preventDefault()):e.equals(2)?(this._isReplaceVisible?this._replaceInput.focus():this._findInput.focusOnCaseSensitive(),void e.preventDefault()):e.equals(2066)?(this._codeEditor.focus(),void e.preventDefault()):e.equals(16)?Je(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):e.equals(18)?et(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):void 0}_onReplaceInputKeyDown(e){return e.equals(3|Xe)?(this._keybindingService.dispatchEvent(e,e.target)||(_e.uF&&_e.ib&&!this._ctrlEnterReplaceAllWarningPrompted&&(this._notificationService.info(ve.kg("ctrlEnter.keybindingChanged","Ctrl+Enter now inserts line break instead of replacing all. You can modify the keybinding for editor.action.replaceAll to override this behavior.")),this._ctrlEnterReplaceAllWarningPrompted=!0,this._storageService.store(Qe,!0,0,0)),this._replaceInput.inputBox.insertAtCursor("\n")),void e.preventDefault()):e.equals(2)?(this._findInput.focusOnCaseSensitive(),void e.preventDefault()):e.equals(1026)?(this._findInput.focus(),void e.preventDefault()):e.equals(2066)?(this._codeEditor.focus(),void e.preventDefault()):e.equals(16)?Je(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):e.equals(18)?et(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):void 0}getVerticalSashLeft(e){return 0}_keybindingLabelFor(e){const t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}_buildDomNode(){const e=!0,t=!0;this._findInput=this._register(new Ce.pG(null,this._contextViewProvider,{width:221,label:De,placeholder:Me,appendCaseSensitiveLabel:this._keybindingLabelFor(q),appendWholeWordsLabel:this._keybindingLabelFor($),appendRegexLabel:this._keybindingLabelFor(Q),validation:e=>{if(0===e.length||!this._findInput.getRegex())return null;try{return new RegExp(e,"gu"),null}catch(t){return{content:t.message}}},flexibleHeight:e,flexibleWidth:t,flexibleMaxHeight:118,showCommonFindToggles:!0,showHistoryHint:()=>Ee(this._keybindingService),inputBoxStyles:Re.ho,toggleStyles:Re.mk},this._contextKeyService)),this._findInput.setRegex(!!this._state.isRegex),this._findInput.setCaseSensitive(!!this._state.matchCase),this._findInput.setWholeWords(!!this._state.wholeWord),this._register(this._findInput.onKeyDown((e=>this._onFindInputKeyDown(e)))),this._register(this._findInput.inputBox.onDidChange((()=>{this._ignoreChangeEvent||this._state.change({searchString:this._findInput.getValue()},!0)}))),this._register(this._findInput.onDidOptionChange((()=>{this._state.change({isRegex:this._findInput.getRegex(),wholeWord:this._findInput.getWholeWords(),matchCase:this._findInput.getCaseSensitive()},!0)}))),this._register(this._findInput.onCaseSensitiveKeyDown((e=>{e.equals(1026)&&this._isReplaceVisible&&(this._replaceInput.focus(),e.preventDefault())}))),this._register(this._findInput.onRegexKeyDown((e=>{e.equals(2)&&this._isReplaceVisible&&(this._replaceInput.focusOnPreserve(),e.preventDefault())}))),this._register(this._findInput.inputBox.onDidHeightChange((e=>{this._tryUpdateHeight()&&this._showViewZone()}))),_e.j9&&this._register(this._findInput.onMouseDown((e=>this._onFindInputMouseDown(e)))),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount();const i=this._register((0,ae.bW)());this._prevBtn=this._register(new it({label:Pe+this._keybindingLabelFor(V),icon:Ne,hoverDelegate:i,onTrigger:()=>{(0,we.eU)(this._codeEditor.getAction(V)).run().then(void 0,fe.dz)}},this._hoverService)),this._nextBtn=this._register(new it({label:Fe+this._keybindingLabelFor(W),icon:Ie,hoverDelegate:i,onTrigger:()=>{(0,we.eU)(this._codeEditor.getAction(W)).run().then(void 0,fe.dz)}},this._hoverService));const s=document.createElement("div");s.className="find-part",s.appendChild(this._findInput.domNode);const n=document.createElement("div");n.className="find-actions",s.appendChild(n),n.appendChild(this._matchesCount),n.appendChild(this._prevBtn.domNode),n.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new ge.l({icon:xe,title:Ue+this._keybindingLabelFor(X),isChecked:!1,hoverDelegate:i,inputActiveOptionBackground:(0,_.GuP)(_.c1f),inputActiveOptionBorder:(0,_.GuP)(_.uNK),inputActiveOptionForeground:(0,_.GuP)(_.$$0)})),this._register(this._toggleSelectionFind.onChange((()=>{if(this._toggleSelectionFind.checked){if(this._codeEditor.hasModel()){let e=this._codeEditor.getSelections();e=e.map((e=>(1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(e.endLineNumber-1))),e.isEmpty()?null:e))).filter((e=>!!e)),e.length&&this._state.change({searchScope:e},!0)}}else this._state.change({searchScope:null},!0)}))),n.appendChild(this._toggleSelectionFind.domNode),this._closeBtn=this._register(new it({label:He+this._keybindingLabelFor(Y),icon:be.$_,hoverDelegate:i,onTrigger:()=>{this._state.change({isRevealed:!1,searchScope:null},!1)},onKeyDown:e=>{e.equals(2)&&this._isReplaceVisible&&(this._replaceBtn.isEnabled()?this._replaceBtn.focus():this._codeEditor.focus(),e.preventDefault())}},this._hoverService)),this._replaceInput=this._register(new Ce._Q(null,void 0,{label:Be,placeholder:We,appendPreserveCaseLabel:this._keybindingLabelFor(Z),history:[],flexibleHeight:e,flexibleWidth:t,flexibleMaxHeight:118,showHistoryHint:()=>Ee(this._keybindingService),inputBoxStyles:Re.ho,toggleStyles:Re.mk},this._contextKeyService,!0)),this._replaceInput.setPreserveCase(!!this._state.preserveCase),this._register(this._replaceInput.onKeyDown((e=>this._onReplaceInputKeyDown(e)))),this._register(this._replaceInput.inputBox.onDidChange((()=>{this._state.change({replaceString:this._replaceInput.inputBox.value},!1)}))),this._register(this._replaceInput.inputBox.onDidHeightChange((e=>{this._isReplaceVisible&&this._tryUpdateHeight()&&this._showViewZone()}))),this._register(this._replaceInput.onDidOptionChange((()=>{this._state.change({preserveCase:this._replaceInput.getPreserveCase()},!0)}))),this._register(this._replaceInput.onPreserveCaseKeyDown((e=>{e.equals(2)&&(this._prevBtn.isEnabled()?this._prevBtn.focus():this._nextBtn.isEnabled()?this._nextBtn.focus():this._toggleSelectionFind.enabled?this._toggleSelectionFind.focus():this._closeBtn.isEnabled()&&this._closeBtn.focus(),e.preventDefault())})));const r=this._register((0,ae.bW)());this._replaceBtn=this._register(new it({label:Ve+this._keybindingLabelFor(J),icon:ke,hoverDelegate:r,onTrigger:()=>{this._controller.replace()},onKeyDown:e=>{e.equals(1026)&&(this._closeBtn.focus(),e.preventDefault())}},this._hoverService)),this._replaceAllBtn=this._register(new it({label:ze+this._keybindingLabelFor(ee),icon:Ae,hoverDelegate:r,onTrigger:()=>{this._controller.replaceAll()}},this._hoverService));const o=document.createElement("div");o.className="replace-part",o.appendChild(this._replaceInput.domNode);const a=document.createElement("div");a.className="replace-actions",o.appendChild(a),a.appendChild(this._replaceBtn.domNode),a.appendChild(this._replaceAllBtn.domNode),this._toggleReplaceBtn=this._register(new it({label:Ge,className:"codicon toggle left",onTrigger:()=>{this._state.change({isReplaceRevealed:!this._isReplaceVisible},!1),this._isReplaceVisible&&(this._replaceInput.width=ne.Tr(this._findInput.domNode),this._replaceInput.inputBox.layout()),this._showViewZone()}},this._hoverService)),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible),this._domNode=document.createElement("div"),this._domNode.className="editor-widget find-widget",this._domNode.setAttribute("aria-hidden","true"),this._domNode.ariaLabel=Oe,this._domNode.role="dialog",this._domNode.style.width="419px",this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(s),this._domNode.appendChild(this._closeBtn.domNode),this._domNode.appendChild(o),this._resizeSash=this._register(new pe.m(this._domNode,this,{orientation:0,size:2})),this._resized=!1;let c=qe;this._register(this._resizeSash.onDidStart((()=>{c=ne.Tr(this._domNode)}))),this._register(this._resizeSash.onDidChange((e=>{this._resized=!0;const t=c+e.startX-e.currentX;if(t<qe)return;t>(parseFloat(ne.L9(this._domNode).maxWidth)||0)||(this._domNode.style.width=`${t}px`,this._isReplaceVisible&&(this._replaceInput.width=ne.Tr(this._findInput.domNode)),this._findInput.inputBox.layout(),this._tryUpdateHeight())}))),this._register(this._resizeSash.onDidReset((()=>{const e=ne.Tr(this._domNode);if(e<qe)return;let t=qe;if(!this._resized||e===qe){const e=this._codeEditor.getLayoutInfo();t=e.width-28-e.minimap.minimapWidth-15,this._resized=!0}this._domNode.style.width=`${t}px`,this._isReplaceVisible&&(this._replaceInput.width=ne.Tr(this._findInput.domNode)),this._findInput.inputBox.layout()})))}updateAccessibilitySupport(){const e=this._codeEditor.getOption(2);this._findInput.setFocusInputOnOptionClick(2!==e)}}class it extends oe.x{constructor(e,t){super(),this._opts=e;let i="button";this._opts.className&&(i=i+" "+this._opts.className),this._opts.icon&&(i=i+" "+Se.L.asClassName(this._opts.icon)),this._domNode=document.createElement("div"),this._domNode.tabIndex=0,this._domNode.className=i,this._domNode.setAttribute("role","button"),this._domNode.setAttribute("aria-label",this._opts.label),this._register(t.setupManagedHover(e.hoverDelegate??(0,ae.nZ)("element"),this._domNode,this._opts.label)),this.onclick(this._domNode,(e=>{this._opts.onTrigger(),e.preventDefault()})),this.onkeydown(this._domNode,(e=>{if(e.equals(10)||e.equals(3))return this._opts.onTrigger(),void e.preventDefault();this._opts.onKeyDown?.(e)}))}get domNode(){return this._domNode}isEnabled(){return this._domNode.tabIndex>=0}focus(){this._domNode.focus()}setEnabled(e){this._domNode.classList.toggle("disabled",!e),this._domNode.setAttribute("aria-disabled",String(!e)),this._domNode.tabIndex=e?0:-1}setExpanded(e){this._domNode.setAttribute("aria-expanded",String(!!e)),e?(this._domNode.classList.remove(...Se.L.asClassNameArray(Le)),this._domNode.classList.add(...Se.L.asClassNameArray(Te))):(this._domNode.classList.remove(...Se.L.asClassNameArray(Te)),this._domNode.classList.add(...Se.L.asClassNameArray(Le)))}}(0,v.zy)(((e,t)=>{const i=e.getColor(_.ECk);i&&t.addRule(`.monaco-editor .findMatch { border: 1px ${(0,ye.Bb)(e.type)?"dotted":"solid"} ${i}; box-sizing: border-box; }`);const s=e.getColor(_.S5J);s&&t.addRule(`.monaco-editor .findScope { border: 1px ${(0,ye.Bb)(e.type)?"dashed":"solid"} ${s}; }`);const n=e.getColor(_.b1q);n&&t.addRule(`.monaco-editor .find-widget { border: 1px solid ${n}; }`);const r=e.getColor(_.f3U);r&&t.addRule(`.monaco-editor .findMatchInline { color: ${r}; }`);const o=e.getColor(_.p8Y);o&&t.addRule(`.monaco-editor .currentFindMatchInline { color: ${o}; }`)}));var st,nt=i(27195),rt=i(54770),ot=i(47508),at=i(98031),ct=i(58591),lt=i(51467),ht=i(9711),dt=i(67220),ut=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},gt=function(e,t){return function(i,s){t(i,s,e)}};function pt(e,t="single",i=!1){if(!e.hasModel())return null;const s=e.getSelection();if("single"===t&&s.startLineNumber===s.endLineNumber||"multiple"===t)if(s.isEmpty()){const t=e.getConfiguredWordAtPosition(s.getStartPosition());if(t&&!1===i)return t.word}else if(e.getModel().getValueLengthInRange(s)<524288)return e.getModel().getValueInRange(s);return null}let mt=class extends n.jG{static{st=this}static{this.ID="editor.contrib.findController"}get editor(){return this._editor}static get(e){return e.getContribution(st.ID)}constructor(e,t,i,n,r,o){super(),this._editor=e,this._findWidgetVisible=A.bindTo(t),this._contextKeyService=t,this._storageService=i,this._clipboardService=n,this._notificationService=r,this._hoverService=o,this._updateHistoryDelayer=new s.ve(500),this._state=this._register(new de),this.loadQueryState(),this._register(this._state.onFindReplaceStateChange((e=>this._onStateChanged(e)))),this._model=null,this._register(this._editor.onDidChangeModel((()=>{const e=this._editor.getModel()&&this._state.isRevealed;this.disposeModel(),this._state.change({searchScope:null,matchCase:this._storageService.getBoolean("editor.matchCase",1,!1),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,!1),isRegex:this._storageService.getBoolean("editor.isRegex",1,!1),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,!1)},!1),e&&this._start({forceRevealReplace:!1,seedSearchStringFromSelection:"none",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!1,updateSearchScope:!1,loop:this._editor.getOption(41).loop})})))}dispose(){this.disposeModel(),super.dispose()}disposeModel(){this._model&&(this._model.dispose(),this._model=null)}_onStateChanged(e){this.saveQueryState(e),e.isRevealed&&(this._state.isRevealed?this._findWidgetVisible.set(!0):(this._findWidgetVisible.reset(),this.disposeModel())),e.searchString&&this.setGlobalBufferTerm(this._state.searchString)}saveQueryState(e){e.isRegex&&this._storageService.store("editor.isRegex",this._state.actualIsRegex,1,1),e.wholeWord&&this._storageService.store("editor.wholeWord",this._state.actualWholeWord,1,1),e.matchCase&&this._storageService.store("editor.matchCase",this._state.actualMatchCase,1,1),e.preserveCase&&this._storageService.store("editor.preserveCase",this._state.actualPreserveCase,1,1)}loadQueryState(){this._state.change({matchCase:this._storageService.getBoolean("editor.matchCase",1,this._state.matchCase),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,this._state.wholeWord),isRegex:this._storageService.getBoolean("editor.isRegex",1,this._state.isRegex),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,this._state.preserveCase)},!1)}isFindInputFocused(){return!!N.getValue(this._contextKeyService)}getState(){return this._state}closeFindWidget(){this._state.change({isRevealed:!1,searchScope:null},!1),this._editor.focus()}toggleCaseSensitive(){this._state.change({matchCase:!this._state.matchCase},!1),this._state.isRevealed||this.highlightFindOptions()}toggleWholeWords(){this._state.change({wholeWord:!this._state.wholeWord},!1),this._state.isRevealed||this.highlightFindOptions()}toggleRegex(){this._state.change({isRegex:!this._state.isRegex},!1),this._state.isRevealed||this.highlightFindOptions()}togglePreserveCase(){this._state.change({preserveCase:!this._state.preserveCase},!1),this._state.isRevealed||this.highlightFindOptions()}toggleSearchScope(){if(this._state.searchScope)this._state.change({searchScope:null},!0);else if(this._editor.hasModel()){let e=this._editor.getSelections();e=e.map((e=>(1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._editor.getModel().getLineMaxColumn(e.endLineNumber-1))),e.isEmpty()?null:e))).filter((e=>!!e)),e.length&&this._state.change({searchScope:e},!0)}}setSearchString(e){this._state.isRegex&&(e=r.bm(e)),this._state.change({searchString:e},!1)}highlightFindOptions(e=!1){}async _start(e,t){if(this.disposeModel(),!this._editor.hasModel())return;const i={...t,isRevealed:!0};if("single"===e.seedSearchStringFromSelection){const t=pt(this._editor,e.seedSearchStringFromSelection,e.seedSearchStringFromNonEmptySelection);t&&(this._state.isRegex?i.searchString=r.bm(t):i.searchString=t)}else if("multiple"===e.seedSearchStringFromSelection&&!e.updateSearchScope){const t=pt(this._editor,e.seedSearchStringFromSelection);t&&(i.searchString=t)}if(!i.searchString&&e.seedSearchStringFromGlobalClipboard){const e=await this.getGlobalBufferTerm();if(!this._editor.hasModel())return;e&&(i.searchString=e)}if(e.forceRevealReplace||i.isReplaceRevealed?i.isReplaceRevealed=!0:this._findWidgetVisible.get()||(i.isReplaceRevealed=!1),e.updateSearchScope){const e=this._editor.getSelections();e.some((e=>!e.isEmpty()))&&(i.searchScope=e)}i.loop=e.loop,this._state.change(i,!1),this._model||(this._model=new se(this._editor,this._state))}start(e,t){return this._start(e,t)}moveToNextMatch(){return!!this._model&&(this._model.moveToNextMatch(),!0)}moveToPrevMatch(){return!!this._model&&(this._model.moveToPrevMatch(),!0)}goToMatch(e){return!!this._model&&(this._model.moveToMatch(e),!0)}replace(){return!!this._model&&(this._model.replace(),!0)}replaceAll(){return!!this._model&&(this._editor.getModel()?.isTooLargeForHeapOperation()?(this._notificationService.warn(ve.kg("too.large.for.replaceall","The file is too large to perform a replace all operation.")),!1):(this._model.replaceAll(),!0))}selectAllMatches(){return!!this._model&&(this._model.selectAllMatches(),this._editor.focus(),!0)}async getGlobalBufferTerm(){return this._editor.getOption(41).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()?this._clipboardService.readFindText():""}setGlobalBufferTerm(e){this._editor.getOption(41).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()&&this._clipboardService.writeFindText(e)}};mt=st=ut([gt(1,k.fN),gt(2,ht.CS),gt(3,rt.h),gt(4,ct.Ot),gt(5,dt.TN)],mt);let ft=class extends mt{constructor(e,t,i,s,n,r,o,a,c){super(e,i,o,a,r,c),this._contextViewService=t,this._keybindingService=s,this._themeService=n,this._widget=null,this._findOptionsWidget=null}async _start(e,t){this._widget||this._createFindWidget();const i=this._editor.getSelection();let s=!1;switch(this._editor.getOption(41).autoFindInSelection){case"always":s=!0;break;case"never":s=!1;break;case"multiline":s=!!i&&i.startLineNumber!==i.endLineNumber;break}e.updateSearchScope=e.updateSearchScope||s,await super._start(e,t),this._widget&&(2===e.shouldFocus?this._widget.focusReplaceInput():1===e.shouldFocus&&this._widget.focusFindInput())}highlightFindOptions(e=!1){this._widget||this._createFindWidget(),this._state.isRevealed&&!e?this._widget.highlightFindOptions():this._findOptionsWidget.highlightFindOptions()}_createFindWidget(){this._widget=this._register(new tt(this._editor,this,this._state,this._contextViewService,this._keybindingService,this._contextKeyService,this._themeService,this._storageService,this._notificationService,this._hoverService)),this._findOptionsWidget=this._register(new ce(this._editor,this._state,this._keybindingService))}};ft=ut([gt(1,ot.l),gt(2,k.fN),gt(3,at.b),gt(4,v.Gy),gt(5,ct.Ot),gt(6,ht.CS),gt(7,rt.h),gt(8,dt.TN)],ft);(0,o.gW)(new o.PF({id:U,label:ve.kg("startFindAction","Find"),alias:"Find",precondition:k.M$.or(c.R.focus,k.M$.has("editorIsOpen")),kbOpts:{kbExpr:null,primary:2084,weight:100},menuOpts:{menuId:nt.D8.MenubarEditMenu,group:"3_find",title:ve.kg({key:"miFind",comment:["&& denotes a mnemonic"]},"&&Find"),order:1}})).addImplementation(0,((e,t,i)=>{const s=mt.get(t);return!!s&&s.start({forceRevealReplace:!1,seedSearchStringFromSelection:"never"!==t.getOption(41).seedSearchStringFromSelection?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(41).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:t.getOption(41).globalFindClipboard,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(41).loop})}));const _t={description:"Open a new In-Editor Find Widget.",args:[{name:"Open a new In-Editor Find Widget args",schema:{properties:{searchString:{type:"string"},replaceString:{type:"string"},isRegex:{type:"boolean"},matchWholeWord:{type:"boolean"},isCaseSensitive:{type:"boolean"},preserveCase:{type:"boolean"},findInSelection:{type:"boolean"}}}}]};class vt extends o.ks{constructor(){super({id:B,label:ve.kg("startFindWithArgsAction","Find With Arguments"),alias:"Find With Arguments",precondition:void 0,kbOpts:{kbExpr:null,primary:0,weight:100},metadata:_t})}async run(e,t,i){const s=mt.get(t);if(s){const e=i?{searchString:i.searchString,replaceString:i.replaceString,isReplaceRevealed:void 0!==i.replaceString,isRegex:i.isRegex,wholeWord:i.matchWholeWord,matchCase:i.isCaseSensitive,preserveCase:i.preserveCase}:{};await s.start({forceRevealReplace:!1,seedSearchStringFromSelection:0===s.getState().searchString.length&&"never"!==t.getOption(41).seedSearchStringFromSelection?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(41).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:1,shouldAnimate:!0,updateSearchScope:i?.findInSelection||!1,loop:t.getOption(41).loop},e),s.setGlobalBufferTerm(s.getState().searchString)}}}class Ct extends o.ks{constructor(){super({id:H,label:ve.kg("startFindWithSelectionAction","Find With Selection"),alias:"Find With Selection",precondition:void 0,kbOpts:{kbExpr:null,primary:0,mac:{primary:2083},weight:100}})}async run(e,t){const i=mt.get(t);i&&(await i.start({forceRevealReplace:!1,seedSearchStringFromSelection:"multiple",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(41).loop}),i.setGlobalBufferTerm(i.getState().searchString))}}class Et extends o.ks{async run(e,t){const i=mt.get(t);i&&!this._run(i)&&(await i.start({forceRevealReplace:!1,seedSearchStringFromSelection:0===i.getState().searchString.length&&"never"!==t.getOption(41).seedSearchStringFromSelection?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(41).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(41).loop}),this._run(i))}}class bt extends o.ks{constructor(){super({id:z,label:ve.kg("findMatchAction.goToMatch","Go to Match..."),alias:"Go to Match...",precondition:A}),this._highlightDecorations=[]}run(e,t,i){const s=mt.get(t);if(!s)return;const r=s.getState().matchesCount;if(r<1){return void e.get(ct.Ot).notify({severity:ct.AI.Warning,message:ve.kg("findMatchAction.noResults","No matches. Try searching for something else.")})}const o=e.get(lt.GK),a=new n.Cm,c=a.add(o.createInputBox());c.placeholder=ve.kg("findMatchAction.inputPlaceHolder","Type a number to go to a specific match (between 1 and {0})",r);const l=e=>{const t=parseInt(e);if(isNaN(t))return;const i=s.getState().matchesCount;return t>0&&t<=i?t-1:t<0&&t>=-i?i+t:void 0},h=e=>{const i=l(e);if("number"===typeof i){c.validationMessage=void 0,s.goToMatch(i);const e=s.getState().currentMatch;e&&this.addDecorations(t,e)}else c.validationMessage=ve.kg("findMatchAction.inputValidationMessage","Please type a number between 1 and {0}",s.getState().matchesCount),this.clearDecorations(t)};a.add(c.onDidChangeValue((e=>{h(e)}))),a.add(c.onDidAccept((()=>{const e=l(c.value);"number"===typeof e?(s.goToMatch(e),c.hide()):c.validationMessage=ve.kg("findMatchAction.inputValidationMessage","Please type a number between 1 and {0}",s.getState().matchesCount)}))),a.add(c.onDidHide((()=>{this.clearDecorations(t),a.dispose()}))),c.show()}clearDecorations(e){e.changeDecorations((e=>{this._highlightDecorations=e.deltaDecorations(this._highlightDecorations,[])}))}addDecorations(e,t){e.changeDecorations((e=>{this._highlightDecorations=e.deltaDecorations(this._highlightDecorations,[{range:t,options:{description:"find-match-quick-access-range-highlight",className:"rangeHighlight",isWholeLine:!0}},{range:t,options:{description:"find-match-quick-access-range-highlight-overview",overviewRuler:{color:(0,v.Yf)(a.vp),position:l.A5.Full}}}])}))}}class St extends o.ks{async run(e,t){const i=mt.get(t);if(!i)return;const s=pt(t,"single",!1);s&&i.setSearchString(s),this._run(i)||(await i.start({forceRevealReplace:!1,seedSearchStringFromSelection:"none",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(41).loop}),this._run(i))}}(0,o.gW)(new o.PF({id:K,label:ve.kg("startReplace","Replace"),alias:"Replace",precondition:k.M$.or(c.R.focus,k.M$.has("editorIsOpen")),kbOpts:{kbExpr:null,primary:2086,mac:{primary:2596},weight:100},menuOpts:{menuId:nt.D8.MenubarEditMenu,group:"3_find",title:ve.kg({key:"miReplace",comment:["&& denotes a mnemonic"]},"&&Replace"),order:2}})).addImplementation(0,((e,t,i)=>{if(!t.hasModel()||t.getOption(92))return!1;const s=mt.get(t);if(!s)return!1;const n=t.getSelection(),r=s.isFindInputFocused(),o=!n.isEmpty()&&n.startLineNumber===n.endLineNumber&&"never"!==t.getOption(41).seedSearchStringFromSelection&&!r,a=r||o?2:1;return s.start({forceRevealReplace:!0,seedSearchStringFromSelection:o?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(41).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:"never"!==t.getOption(41).seedSearchStringFromSelection,shouldFocus:a,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(41).loop})})),(0,o.HW)(mt.ID,ft,0),(0,o.Fl)(vt),(0,o.Fl)(Ct),(0,o.Fl)(class extends Et{constructor(){super({id:W,label:ve.kg("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:[{kbExpr:c.R.focus,primary:61,mac:{primary:2085,secondary:[61]},weight:100},{kbExpr:k.M$.and(c.R.focus,N),primary:3,weight:100}]})}_run(e){return!!e.moveToNextMatch()&&(e.editor.pushUndoStop(),!0)}}),(0,o.Fl)(class extends Et{constructor(){super({id:V,label:ve.kg("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:[{kbExpr:c.R.focus,primary:1085,mac:{primary:3109,secondary:[1085]},weight:100},{kbExpr:k.M$.and(c.R.focus,N),primary:1027,weight:100}]})}_run(e){return e.moveToPrevMatch()}}),(0,o.Fl)(bt),(0,o.Fl)(class extends St{constructor(){super({id:G,label:ve.kg("nextSelectionMatchFindAction","Find Next Selection"),alias:"Find Next Selection",precondition:void 0,kbOpts:{kbExpr:c.R.focus,primary:2109,weight:100}})}_run(e){return e.moveToNextMatch()}}),(0,o.Fl)(class extends St{constructor(){super({id:j,label:ve.kg("previousSelectionMatchFindAction","Find Previous Selection"),alias:"Find Previous Selection",precondition:void 0,kbOpts:{kbExpr:c.R.focus,primary:3133,weight:100}})}_run(e){return e.moveToPrevMatch()}});const yt=o.DX.bindToContribution(mt.get);(0,o.E_)(new yt({id:Y,precondition:A,handler:e=>e.closeFindWidget(),kbOpts:{weight:105,kbExpr:k.M$.and(c.R.focus,k.M$.not("isComposing")),primary:9,secondary:[1033]}})),(0,o.E_)(new yt({id:q,precondition:void 0,handler:e=>e.toggleCaseSensitive(),kbOpts:{weight:105,kbExpr:c.R.focus,primary:O.primary,mac:O.mac,win:O.win,linux:O.linux}})),(0,o.E_)(new yt({id:$,precondition:void 0,handler:e=>e.toggleWholeWords(),kbOpts:{weight:105,kbExpr:c.R.focus,primary:D.primary,mac:D.mac,win:D.win,linux:D.linux}})),(0,o.E_)(new yt({id:Q,precondition:void 0,handler:e=>e.toggleRegex(),kbOpts:{weight:105,kbExpr:c.R.focus,primary:M.primary,mac:M.mac,win:M.win,linux:M.linux}})),(0,o.E_)(new yt({id:X,precondition:void 0,handler:e=>e.toggleSearchScope(),kbOpts:{weight:105,kbExpr:c.R.focus,primary:P.primary,mac:P.mac,win:P.win,linux:P.linux}})),(0,o.E_)(new yt({id:Z,precondition:void 0,handler:e=>e.togglePreserveCase(),kbOpts:{weight:105,kbExpr:c.R.focus,primary:F.primary,mac:F.mac,win:F.win,linux:F.linux}})),(0,o.E_)(new yt({id:J,precondition:A,handler:e=>e.replace(),kbOpts:{weight:105,kbExpr:c.R.focus,primary:3094}})),(0,o.E_)(new yt({id:J,precondition:A,handler:e=>e.replace(),kbOpts:{weight:105,kbExpr:k.M$.and(c.R.focus,I),primary:3}})),(0,o.E_)(new yt({id:ee,precondition:A,handler:e=>e.replaceAll(),kbOpts:{weight:105,kbExpr:c.R.focus,primary:2563}})),(0,o.E_)(new yt({id:ee,precondition:A,handler:e=>e.replaceAll(),kbOpts:{weight:105,kbExpr:k.M$.and(c.R.focus,I),primary:void 0,mac:{primary:2051}}})),(0,o.E_)(new yt({id:te,precondition:A,handler:e=>e.selectAllMatches(),kbOpts:{weight:105,kbExpr:c.R.focus,primary:515}}))},34309:(e,t,i)=>{"use strict";i.d(t,{N:()=>y});var s,n=i(8597),r=i(20370),o=i(10350),a=i(16980),c=i(5662),l=i(31308),h=i(87958),d=i(25689),u=i(631),g=i(38844),p=i(92368),m=i(86571),f=i(83069),_=i(36677),v=i(62083),C=i(78209),E=i(63591),b=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},S=function(e,t){return function(i,s){t(i,s,e)}};let y=class extends c.jG{static{s=this}static{this._breadcrumbsSourceFactory=(0,l.FY)(s,(()=>({dispose(){},getBreadcrumbItems:(e,t)=>[]})))}static setBreadcrumbsSourceFactory(e){this._breadcrumbsSourceFactory.set(e,void 0)}get isUpdatingHiddenAreas(){return this._isUpdatingHiddenAreas}constructor(e,t,i,n){super(),this._editors=e,this._diffModel=t,this._options=i,this._instantiationService=n,this._modifiedOutlineSource=(0,h.a0)(this,(e=>{const t=this._editors.modifiedModel.read(e),i=s._breadcrumbsSourceFactory.read(e);return t&&i?i(t,this._instantiationService):void 0})),this._isUpdatingHiddenAreas=!1,this._register(this._editors.original.onDidChangeCursorPosition((e=>{if(1===e.reason)return;const t=this._diffModel.get();(0,l.Rn)((e=>{for(const i of this._editors.original.getSelections()||[])t?.ensureOriginalLineIsVisible(i.getStartPosition().lineNumber,0,e),t?.ensureOriginalLineIsVisible(i.getEndPosition().lineNumber,0,e)}))}))),this._register(this._editors.modified.onDidChangeCursorPosition((e=>{if(1===e.reason)return;const t=this._diffModel.get();(0,l.Rn)((e=>{for(const i of this._editors.modified.getSelections()||[])t?.ensureModifiedLineIsVisible(i.getStartPosition().lineNumber,0,e),t?.ensureModifiedLineIsVisible(i.getEndPosition().lineNumber,0,e)}))})));const r=this._diffModel.map(((e,t)=>{const i=e?.unchangedRegions.read(t)??[];return 1===i.length&&1===i[0].modifiedLineNumber&&i[0].lineCount===this._editors.modifiedModel.read(t)?.getLineCount()?[]:i}));this.viewZones=(0,l.rm)(this,((e,t)=>{const i=this._modifiedOutlineSource.read(e);if(!i)return{origViewZones:[],modViewZones:[]};const s=[],n=[],o=this._options.renderSideBySide.read(e),a=this._options.compactMode.read(e),c=r.read(e);for(let r=0;r<c.length;r++){const h=c[r];if(!h.shouldHideControls(e)&&(!a||0!==r&&r!==c.length-1))if(a){{const e=(0,l.un)(this,(e=>h.getHiddenOriginalRange(e).startLineNumber-1)),i=new p.D1(e,12);s.push(i),t.add(new w(this._editors.original,i,h,!o))}{const e=(0,l.un)(this,(e=>h.getHiddenModifiedRange(e).startLineNumber-1)),i=new p.D1(e,12);n.push(i),t.add(new w(this._editors.modified,i,h))}}else{{const e=(0,l.un)(this,(e=>h.getHiddenOriginalRange(e).startLineNumber-1)),n=new p.D1(e,24);s.push(n),t.add(new R(this._editors.original,n,h,h.originalUnchangedRange,!o,i,(e=>this._diffModel.get().ensureModifiedLineIsVisible(e,2,void 0)),this._options))}{const e=(0,l.un)(this,(e=>h.getHiddenModifiedRange(e).startLineNumber-1)),s=new p.D1(e,24);n.push(s),t.add(new R(this._editors.modified,s,h,h.modifiedUnchangedRange,!1,i,(e=>this._diffModel.get().ensureModifiedLineIsVisible(e,2,void 0)),this._options))}}}return{origViewZones:s,modViewZones:n}}));const c={description:"unchanged lines",className:"diff-unchanged-lines",isWholeLine:!0},g={description:"Fold Unchanged",glyphMarginHoverMessage:new a.Bc(void 0,{isTrusted:!0,supportThemeIcons:!0}).appendMarkdown((0,C.kg)("foldUnchanged","Fold Unchanged Region")),glyphMarginClassName:"fold-unchanged "+d.L.asClassName(o.W.fold),zIndex:10001};this._register((0,p.pY)(this._editors.original,(0,l.un)(this,(e=>{const t=r.read(e),i=t.map((e=>({range:e.originalUnchangedRange.toInclusiveRange(),options:c})));for(const s of t)s.shouldHideControls(e)&&i.push({range:_.Q.fromPositions(new f.y(s.originalLineNumber,1)),options:g});return i})))),this._register((0,p.pY)(this._editors.modified,(0,l.un)(this,(e=>{const t=r.read(e),i=t.map((e=>({range:e.modifiedUnchangedRange.toInclusiveRange(),options:c})));for(const s of t)s.shouldHideControls(e)&&i.push({range:m.M.ofLength(s.modifiedLineNumber,1).toInclusiveRange(),options:g});return i})))),this._register((0,l.fm)((e=>{const t=r.read(e);this._isUpdatingHiddenAreas=!0;try{this._editors.original.setHiddenAreas(t.map((t=>t.getHiddenOriginalRange(e).toInclusiveRange())).filter(u.O9)),this._editors.modified.setHiddenAreas(t.map((t=>t.getHiddenModifiedRange(e).toInclusiveRange())).filter(u.O9))}finally{this._isUpdatingHiddenAreas=!1}}))),this._register(this._editors.modified.onMouseUp((e=>{if(!e.event.rightButton&&e.target.position&&e.target.element?.className.includes("fold-unchanged")){const t=e.target.position.lineNumber,i=this._diffModel.get();if(!i)return;const s=i.unchangedRegions.get().find((e=>e.modifiedUnchangedRange.includes(t)));if(!s)return;s.collapseAll(void 0),e.event.stopPropagation(),e.event.preventDefault()}}))),this._register(this._editors.original.onMouseUp((e=>{if(!e.event.rightButton&&e.target.position&&e.target.element?.className.includes("fold-unchanged")){const t=e.target.position.lineNumber,i=this._diffModel.get();if(!i)return;const s=i.unchangedRegions.get().find((e=>e.originalUnchangedRange.includes(t)));if(!s)return;s.collapseAll(void 0),e.event.stopPropagation(),e.event.preventDefault()}})))}};y=s=b([S(3,E._Y)],y);class w extends p.uN{constructor(e,t,i,s=!1){const r=(0,n.h)("div.diff-hidden-lines-widget");super(e,t,r.root),this._unchangedRegion=i,this._hide=s,this._nodes=(0,n.h)("div.diff-hidden-lines-compact",[(0,n.h)("div.line-left",[]),(0,n.h)("div.text@text",[]),(0,n.h)("div.line-right",[])]),r.root.appendChild(this._nodes.root),this._hide&&this._nodes.root.replaceChildren(),this._register((0,l.fm)((e=>{if(!this._hide){const t=this._unchangedRegion.getHiddenModifiedRange(e).length,i=(0,C.kg)("hiddenLines","{0} hidden lines",t);this._nodes.text.innerText=i}})))}}class R extends p.uN{constructor(e,t,i,s,a,c,h,d){const u=(0,n.h)("div.diff-hidden-lines-widget");super(e,t,u.root),this._editor=e,this._unchangedRegion=i,this._unchangedRegionRange=s,this._hide=a,this._modifiedOutlineSource=c,this._revealModifiedHiddenLine=h,this._options=d,this._nodes=(0,n.h)("div.diff-hidden-lines",[(0,n.h)("div.top@top",{title:(0,C.kg)("diff.hiddenLines.top","Click or drag to show more above")}),(0,n.h)("div.center@content",{style:{display:"flex"}},[(0,n.h)("div@first",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexShrink:"0"}},[(0,n.$)("a",{title:(0,C.kg)("showUnchangedRegion","Show Unchanged Region"),role:"button",onclick:()=>{this._unchangedRegion.showAll(void 0)}},...(0,r.n)("$(unfold)"))]),(0,n.h)("div@others",{style:{display:"flex",justifyContent:"center",alignItems:"center"}})]),(0,n.h)("div.bottom@bottom",{title:(0,C.kg)("diff.bottom","Click or drag to show more below"),role:"button"})]),u.root.appendChild(this._nodes.root),this._hide?(0,n.Ln)(this._nodes.first):this._register((0,p.AV)(this._nodes.first,{width:(0,g.Ud)(this._editor).layoutInfoContentLeft})),this._register((0,l.fm)((e=>{const t=this._unchangedRegion.visibleLineCountTop.read(e)+this._unchangedRegion.visibleLineCountBottom.read(e)===this._unchangedRegion.lineCount;this._nodes.bottom.classList.toggle("canMoveTop",!t),this._nodes.bottom.classList.toggle("canMoveBottom",this._unchangedRegion.visibleLineCountBottom.read(e)>0),this._nodes.top.classList.toggle("canMoveTop",this._unchangedRegion.visibleLineCountTop.read(e)>0),this._nodes.top.classList.toggle("canMoveBottom",!t);const i=this._unchangedRegion.isDragged.read(e),s=this._editor.getDomNode();s&&(s.classList.toggle("draggingUnchangedRegion",!!i),"top"===i?(s.classList.toggle("canMoveTop",this._unchangedRegion.visibleLineCountTop.read(e)>0),s.classList.toggle("canMoveBottom",!t)):"bottom"===i?(s.classList.toggle("canMoveTop",!t),s.classList.toggle("canMoveBottom",this._unchangedRegion.visibleLineCountBottom.read(e)>0)):(s.classList.toggle("canMoveTop",!1),s.classList.toggle("canMoveBottom",!1)))})));const m=this._editor;this._register((0,n.ko)(this._nodes.top,"mousedown",(e=>{if(0!==e.button)return;this._nodes.top.classList.toggle("dragging",!0),this._nodes.root.classList.toggle("dragging",!0),e.preventDefault();const t=e.clientY;let i=!1;const s=this._unchangedRegion.visibleLineCountTop.get();this._unchangedRegion.isDragged.set("top",void 0);const r=(0,n.zk)(this._nodes.top),o=(0,n.ko)(r,"mousemove",(e=>{const n=e.clientY-t;i=i||Math.abs(n)>2;const r=Math.round(n/m.getOption(67)),o=Math.max(0,Math.min(s+r,this._unchangedRegion.getMaxVisibleLineCountTop()));this._unchangedRegion.visibleLineCountTop.set(o,void 0)})),a=(0,n.ko)(r,"mouseup",(e=>{i||this._unchangedRegion.showMoreAbove(this._options.hideUnchangedRegionsRevealLineCount.get(),void 0),this._nodes.top.classList.toggle("dragging",!1),this._nodes.root.classList.toggle("dragging",!1),this._unchangedRegion.isDragged.set(void 0,void 0),o.dispose(),a.dispose()}))}))),this._register((0,n.ko)(this._nodes.bottom,"mousedown",(e=>{if(0!==e.button)return;this._nodes.bottom.classList.toggle("dragging",!0),this._nodes.root.classList.toggle("dragging",!0),e.preventDefault();const t=e.clientY;let i=!1;const s=this._unchangedRegion.visibleLineCountBottom.get();this._unchangedRegion.isDragged.set("bottom",void 0);const r=(0,n.zk)(this._nodes.bottom),o=(0,n.ko)(r,"mousemove",(e=>{const n=e.clientY-t;i=i||Math.abs(n)>2;const r=Math.round(n/m.getOption(67)),o=Math.max(0,Math.min(s-r,this._unchangedRegion.getMaxVisibleLineCountBottom())),a=this._unchangedRegionRange.endLineNumberExclusive>m.getModel().getLineCount()?m.getContentHeight():m.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);this._unchangedRegion.visibleLineCountBottom.set(o,void 0);const c=this._unchangedRegionRange.endLineNumberExclusive>m.getModel().getLineCount()?m.getContentHeight():m.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);m.setScrollTop(m.getScrollTop()+(c-a))})),a=(0,n.ko)(r,"mouseup",(e=>{if(this._unchangedRegion.isDragged.set(void 0,void 0),!i){const e=m.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);this._unchangedRegion.showMoreBelow(this._options.hideUnchangedRegionsRevealLineCount.get(),void 0);const t=m.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);m.setScrollTop(m.getScrollTop()+(t-e))}this._nodes.bottom.classList.toggle("dragging",!1),this._nodes.root.classList.toggle("dragging",!1),o.dispose(),a.dispose()}))}))),this._register((0,l.fm)((e=>{const t=[];if(!this._hide){const s=i.getHiddenModifiedRange(e).length,a=(0,C.kg)("hiddenLines","{0} hidden lines",s),c=(0,n.$)("span",{title:(0,C.kg)("diff.hiddenLines.expandAll","Double click to unfold")},a);c.addEventListener("dblclick",(e=>{0===e.button&&(e.preventDefault(),this._unchangedRegion.showAll(void 0))})),t.push(c);const l=this._unchangedRegion.getHiddenModifiedRange(e),h=this._modifiedOutlineSource.getBreadcrumbItems(l,e);if(h.length>0){t.push((0,n.$)("span",void 0,"\xa0\xa0|\xa0\xa0"));for(let e=0;e<h.length;e++){const i=h[e],s=v.gP.toIcon(i.kind),a=(0,n.h)("div.breadcrumb-item",{style:{display:"flex",alignItems:"center"}},[(0,r.s)(s),"\xa0",i.name,...e===h.length-1?[]:[(0,r.s)(o.W.chevronRight)]]).root;t.push(a),a.onclick=()=>{this._revealModifiedHiddenLine(i.startLineNumber)}}}}(0,n.Ln)(this._nodes.others,...t)})))}}},34326:(e,t,i)=>{"use strict";i.d(t,{Np:()=>r,jA:()=>o,z9:()=>n});var s=i(23452);function n(e){return!(!e||"function"!==typeof e.getEditorType)&&e.getEditorType()===s._.ICodeEditor}function r(e){return!(!e||"function"!==typeof e.getEditorType)&&e.getEditorType()===s._.IDiffEditor}function o(e){return n(e)?e:r(e)?e.getModifiedEditor():function(e){return!!e&&"object"===typeof e&&"function"===typeof e.onDidChangeActiveEditor}(e)&&n(e.activeCodeEditor)?e.activeCodeEditor:null}},34408:(e,t,i)=>{var s=i(73917),n=i(39069),r=i(72633);e.exports=function(e){return r(n(e,void 0,s),e+"")}},34420:(e,t,i)=>{!function(){"use strict";const t=i(85858),s="$value",n={string:null,number:null,boolean:null,null:null,object:null,array:null};function r(e){switch(e){case"array":return"list";case"object":return"map";default:return e}}function o(e){const i=t(e);if(!Object.prototype.hasOwnProperty.call(n,i))throw new Error('unipika: invalid input - node type "'+i+'" is not supported.');return{$type:r(i),$value:e}}function a(e,t){return e[s]=function(e,t){return Object.keys(e).map((function(i){const s=o(i);return"$attributes"===i||"$value"===i||"$incomplete"===i||"$type"===i?s.$special_key=!0:s.$key=!0,[s,c(e[i],t)]}))}(e[s],t),e}const c=function(e,t){let i;return(e=o(e))&&(i=e.$type,"map"===i?e=a(e,t):"list"===i&&(e=function(e,t){return e[s]=e[s].map((function(e){return c(e,t)})),e}(e,t))),e};e.exports=c}()},34529:(e,t,i)=>{e.exports=function(e){const t=i(94297),s=i(76319)(e);return function(e,i,n){let r="";const o=e.$value,a=o.length;return t.drawFullView(a,i)?(r+=t.ARRAY_START+t.getIndent(i,n),r+=s(o,i,n),r+=t.getIndent(i,n-1)+t.ARRAY_END):t.drawCompactView(a,i)?(r+=t.ARRAY_START,r+=s(o,i,n-1),r+=t.ARRAY_END):r+=t.ARRAY_START+t.ARRAY_END,r}}},34671:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var s,n=i(59284);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},r.apply(null,arguments)}const o=function(e){return n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),s||(s=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.313 7.488L9 7.653v5.37a.5.5 0 01-.353.478l-1.62.498-.006.001h-.008l-.007-.006-.005-.007v-.003L7 13.979V7.653l-1.313-.165a1.5 1.5 0 01-1.271-1.144l-.588-2.5A1.5 1.5 0 015.288 2h5.424a1.5 1.5 0 011.46 1.844l-.588 2.5a1.5 1.5 0 01-1.271 1.144m2.731-.8A3 3 0 0110.5 8.976v4.046a2 2 0 01-1.412 1.911l-1.62.499A1.52 1.52 0 015.5 13.979V8.977a3 3 0 01-2.544-2.29l-.588-2.5A3 3 0 015.288.5h5.424a3 3 0 012.92 3.687zM6.75 3.5a.75.75 0 000 1.5h2.5a.75.75 0 000-1.5z",clipRule:"evenodd"})))}},34918:(e,t,i)=>{"use strict";i.d(t,{K:()=>m});var s,n,r=i(80781),o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,h=(e,t,i,s)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let n of c(t))l.call(e,n)||n===i||o(e,n,{get:()=>t[n],enumerable:!(s=a(t,n))||s.enumerable});return e},d={};h(d,s=r,"default"),n&&h(n,s,"default");var u={},g={},p=class e{static getOrCreate(t){return g[t]||(g[t]=new e(t)),g[t]}constructor(e){this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise(((e,t)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=t}))}load(){return this._loadingTriggered||(this._loadingTriggered=!0,u[this._languageId].loader().then((e=>this._lazyLoadPromiseResolve(e)),(e=>this._lazyLoadPromiseReject(e)))),this._lazyLoadPromise}};function m(e){const t=e.id;u[t]=e,d.languages.register(e);const i=p.getOrCreate(t);d.languages.registerTokensProviderFactory(t,{create:async()=>(await i.load()).language}),d.languages.onLanguageEncountered(t,(async()=>{const e=await i.load();d.languages.setLanguageConfiguration(t,e.conf)}))}},35015:(e,t,i)=>{"use strict";var s,n,r,o,a,c,l,h,d,u,g,p,m,f,_,v,C,E,b,S,y,w,R,L,T,x,k,A,N,I,O,D,M,P,F,U,H,B,W,V,z,G,j,K,Y,q;i.d(t,{A5:()=>O,Ah:()=>D,DD:()=>w,DO:()=>P,Gn:()=>s,H_:()=>G,Ic:()=>M,Io:()=>o,Kb:()=>u,M$:()=>v,OV:()=>A,QP:()=>a,Qj:()=>l,R3:()=>T,SB:()=>B,U7:()=>j,VW:()=>E,VX:()=>x,WA:()=>V,WU:()=>f,XR:()=>H,YT:()=>N,ZS:()=>_,_E:()=>r,cj:()=>R,dE:()=>I,d_:()=>L,e0:()=>g,h5:()=>h,hS:()=>k,hW:()=>F,jT:()=>W,kK:()=>Y,kf:()=>m,l:()=>C,m9:()=>K,of:()=>d,ok:()=>n,ov:()=>U,p2:()=>p,qw:()=>S,r4:()=>b,sm:()=>y,t7:()=>c,tJ:()=>q,v0:()=>z}),function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"}(s||(s={})),function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"}(n||(n={})),function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(r||(r={})),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.Snippet=27]="Snippet"}(o||(o={})),function(e){e[e.Deprecated=1]="Deprecated"}(a||(a={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(c||(c={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(l||(l={})),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"}(h||(h={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(d||(d={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(u||(u={})),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"}(g||(g={})),function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.ariaRequired=5]="ariaRequired",e[e.autoClosingBrackets=6]="autoClosingBrackets",e[e.autoClosingComments=7]="autoClosingComments",e[e.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=9]="autoClosingDelete",e[e.autoClosingOvertype=10]="autoClosingOvertype",e[e.autoClosingQuotes=11]="autoClosingQuotes",e[e.autoIndent=12]="autoIndent",e[e.automaticLayout=13]="automaticLayout",e[e.autoSurround=14]="autoSurround",e[e.bracketPairColorization=15]="bracketPairColorization",e[e.guides=16]="guides",e[e.codeLens=17]="codeLens",e[e.codeLensFontFamily=18]="codeLensFontFamily",e[e.codeLensFontSize=19]="codeLensFontSize",e[e.colorDecorators=20]="colorDecorators",e[e.colorDecoratorsLimit=21]="colorDecoratorsLimit",e[e.columnSelection=22]="columnSelection",e[e.comments=23]="comments",e[e.contextmenu=24]="contextmenu",e[e.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",e[e.cursorBlinking=26]="cursorBlinking",e[e.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",e[e.cursorStyle=28]="cursorStyle",e[e.cursorSurroundingLines=29]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",e[e.cursorWidth=31]="cursorWidth",e[e.disableLayerHinting=32]="disableLayerHinting",e[e.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",e[e.domReadOnly=34]="domReadOnly",e[e.dragAndDrop=35]="dragAndDrop",e[e.dropIntoEditor=36]="dropIntoEditor",e[e.emptySelectionClipboard=37]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",e[e.extraEditorClassName=39]="extraEditorClassName",e[e.fastScrollSensitivity=40]="fastScrollSensitivity",e[e.find=41]="find",e[e.fixedOverflowWidgets=42]="fixedOverflowWidgets",e[e.folding=43]="folding",e[e.foldingStrategy=44]="foldingStrategy",e[e.foldingHighlight=45]="foldingHighlight",e[e.foldingImportsByDefault=46]="foldingImportsByDefault",e[e.foldingMaximumRegions=47]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=49]="fontFamily",e[e.fontInfo=50]="fontInfo",e[e.fontLigatures=51]="fontLigatures",e[e.fontSize=52]="fontSize",e[e.fontWeight=53]="fontWeight",e[e.fontVariations=54]="fontVariations",e[e.formatOnPaste=55]="formatOnPaste",e[e.formatOnType=56]="formatOnType",e[e.glyphMargin=57]="glyphMargin",e[e.gotoLocation=58]="gotoLocation",e[e.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",e[e.hover=60]="hover",e[e.inDiffEditor=61]="inDiffEditor",e[e.inlineSuggest=62]="inlineSuggest",e[e.inlineEdit=63]="inlineEdit",e[e.letterSpacing=64]="letterSpacing",e[e.lightbulb=65]="lightbulb",e[e.lineDecorationsWidth=66]="lineDecorationsWidth",e[e.lineHeight=67]="lineHeight",e[e.lineNumbers=68]="lineNumbers",e[e.lineNumbersMinChars=69]="lineNumbersMinChars",e[e.linkedEditing=70]="linkedEditing",e[e.links=71]="links",e[e.matchBrackets=72]="matchBrackets",e[e.minimap=73]="minimap",e[e.mouseStyle=74]="mouseStyle",e[e.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=76]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",e[e.multiCursorModifier=78]="multiCursorModifier",e[e.multiCursorPaste=79]="multiCursorPaste",e[e.multiCursorLimit=80]="multiCursorLimit",e[e.occurrencesHighlight=81]="occurrencesHighlight",e[e.overviewRulerBorder=82]="overviewRulerBorder",e[e.overviewRulerLanes=83]="overviewRulerLanes",e[e.padding=84]="padding",e[e.pasteAs=85]="pasteAs",e[e.parameterHints=86]="parameterHints",e[e.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",e[e.placeholder=88]="placeholder",e[e.definitionLinkOpensInPeek=89]="definitionLinkOpensInPeek",e[e.quickSuggestions=90]="quickSuggestions",e[e.quickSuggestionsDelay=91]="quickSuggestionsDelay",e[e.readOnly=92]="readOnly",e[e.readOnlyMessage=93]="readOnlyMessage",e[e.renameOnType=94]="renameOnType",e[e.renderControlCharacters=95]="renderControlCharacters",e[e.renderFinalNewline=96]="renderFinalNewline",e[e.renderLineHighlight=97]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=98]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=99]="renderValidationDecorations",e[e.renderWhitespace=100]="renderWhitespace",e[e.revealHorizontalRightPadding=101]="revealHorizontalRightPadding",e[e.roundedSelection=102]="roundedSelection",e[e.rulers=103]="rulers",e[e.scrollbar=104]="scrollbar",e[e.scrollBeyondLastColumn=105]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=106]="scrollBeyondLastLine",e[e.scrollPredominantAxis=107]="scrollPredominantAxis",e[e.selectionClipboard=108]="selectionClipboard",e[e.selectionHighlight=109]="selectionHighlight",e[e.selectOnLineNumbers=110]="selectOnLineNumbers",e[e.showFoldingControls=111]="showFoldingControls",e[e.showUnused=112]="showUnused",e[e.snippetSuggestions=113]="snippetSuggestions",e[e.smartSelect=114]="smartSelect",e[e.smoothScrolling=115]="smoothScrolling",e[e.stickyScroll=116]="stickyScroll",e[e.stickyTabStops=117]="stickyTabStops",e[e.stopRenderingLineAfter=118]="stopRenderingLineAfter",e[e.suggest=119]="suggest",e[e.suggestFontSize=120]="suggestFontSize",e[e.suggestLineHeight=121]="suggestLineHeight",e[e.suggestOnTriggerCharacters=122]="suggestOnTriggerCharacters",e[e.suggestSelection=123]="suggestSelection",e[e.tabCompletion=124]="tabCompletion",e[e.tabIndex=125]="tabIndex",e[e.unicodeHighlighting=126]="unicodeHighlighting",e[e.unusualLineTerminators=127]="unusualLineTerminators",e[e.useShadowDOM=128]="useShadowDOM",e[e.useTabStops=129]="useTabStops",e[e.wordBreak=130]="wordBreak",e[e.wordSegmenterLocales=131]="wordSegmenterLocales",e[e.wordSeparators=132]="wordSeparators",e[e.wordWrap=133]="wordWrap",e[e.wordWrapBreakAfterCharacters=134]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=135]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=136]="wordWrapColumn",e[e.wordWrapOverride1=137]="wordWrapOverride1",e[e.wordWrapOverride2=138]="wordWrapOverride2",e[e.wrappingIndent=139]="wrappingIndent",e[e.wrappingStrategy=140]="wrappingStrategy",e[e.showDeprecated=141]="showDeprecated",e[e.inlayHints=142]="inlayHints",e[e.editorClassName=143]="editorClassName",e[e.pixelRatio=144]="pixelRatio",e[e.tabFocusMode=145]="tabFocusMode",e[e.layoutInfo=146]="layoutInfo",e[e.wrappingInfo=147]="wrappingInfo",e[e.defaultColorDecorators=148]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=149]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=150]="inlineCompletionsAccessibilityVerbose"}(p||(p={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(m||(m={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}(f||(f={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(_||(_={})),function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(v||(v={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(C||(C={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(E||(E={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(b||(b={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(S||(S={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(y||(y={})),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"}(w||(w={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(R||(R={})),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(L||(L={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(T||(T={})),function(e){e[e.Normal=1]="Normal",e[e.Underlined=2]="Underlined"}(x||(x={})),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"}(k||(k={})),function(e){e[e.AIGenerated=1]="AIGenerated"}(A||(A={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(N||(N={})),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"}(I||(I={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(O||(O={})),function(e){e[e.Word=0]="Word",e[e.Line=1]="Line",e[e.Suggest=2]="Suggest"}(D||(D={})),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"}(M||(M={})),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"}(P||(P={})),function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"}(F||(F={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"}(U||(U={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(H||(H={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(B||(B={})),function(e){e.Off="off",e.OnCode="onCode",e.On="on"}(W||(W={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(V||(V={})),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"}(z||(z={})),function(e){e[e.Deprecated=1]="Deprecated"}(G||(G={})),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"}(j||(j={})),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"}(K||(K={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(Y||(Y={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(q||(q={}))},35151:(e,t,i)=>{"use strict";i.d(t,{X:()=>C,U:()=>E});var s=i(8597),n=i(56245),r=i(92403),o=i(31295),a=i(25890),c=i(47661),l=i(41234),h=i(5662),d=i(1592),u=i(49353),g=i(631);const p={separatorBorder:c.Q1.transparent};class m{set size(e){this._size=e}get size(){return this._size}get visible(){return"undefined"===typeof this._cachedVisibleSize}setVisible(e,t){if(e!==this.visible){e?(this.size=(0,d.qE)(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize="number"===typeof t?t:this.size,this.size=0),this.container.classList.toggle("visible",e);try{this.view.setVisible?.(e)}catch(i){console.error("Splitview: Failed to set visible view"),console.error(i)}}}get minimumSize(){return this.visible?this.view.minimumSize:0}get viewMinimumSize(){return this.view.minimumSize}get maximumSize(){return this.visible?this.view.maximumSize:0}get viewMaximumSize(){return this.view.maximumSize}get priority(){return this.view.priority}get proportionalLayout(){return this.view.proportionalLayout??!0}get snap(){return!!this.view.snap}set enabled(e){this.container.style.pointerEvents=e?"":"none"}constructor(e,t,i,s){this.container=e,this.view=t,this.disposable=s,this._cachedVisibleSize=void 0,"number"===typeof i?(this._size=i,this._cachedVisibleSize=void 0,e.classList.add("visible")):(this._size=0,this._cachedVisibleSize=i.cachedVisibleSize)}layout(e,t){this.layoutContainer(e);try{this.view.layout(this.size,e,t)}catch(i){console.error("Splitview: Failed to layout view"),console.error(i)}}dispose(){this.disposable.dispose()}}class f extends m{layoutContainer(e){this.container.style.top=`${e}px`,this.container.style.height=`${this.size}px`}}class _ extends m{layoutContainer(e){this.container.style.left=`${e}px`,this.container.style.width=`${this.size}px`}}var v,C;!function(e){e[e.Idle=0]="Idle",e[e.Busy=1]="Busy"}(v||(v={})),function(e){e.Distribute={type:"distribute"},e.Split=function(e){return{type:"split",index:e}},e.Auto=function(e){return{type:"auto",index:e}},e.Invisible=function(e){return{type:"invisible",cachedVisibleSize:e}}}(C||(C={}));class E extends h.jG{get orthogonalStartSash(){return this._orthogonalStartSash}get orthogonalEndSash(){return this._orthogonalEndSash}get startSnappingEnabled(){return this._startSnappingEnabled}get endSnappingEnabled(){return this._endSnappingEnabled}set orthogonalStartSash(e){for(const t of this.sashItems)t.sash.orthogonalStartSash=e;this._orthogonalStartSash=e}set orthogonalEndSash(e){for(const t of this.sashItems)t.sash.orthogonalEndSash=e;this._orthogonalEndSash=e}set startSnappingEnabled(e){this._startSnappingEnabled!==e&&(this._startSnappingEnabled=e,this.updateSashEnablement())}set endSnappingEnabled(e){this._endSnappingEnabled!==e&&(this._endSnappingEnabled=e,this.updateSashEnablement())}constructor(e,t={}){super(),this.size=0,this._contentSize=0,this.proportions=void 0,this.viewItems=[],this.sashItems=[],this.state=v.Idle,this._onDidSashChange=this._register(new l.vl),this._onDidSashReset=this._register(new l.vl),this._startSnappingEnabled=!0,this._endSnappingEnabled=!0,this.onDidSashChange=this._onDidSashChange.event,this.onDidSashReset=this._onDidSashReset.event,this.orientation=t.orientation??0,this.inverseAltBehavior=t.inverseAltBehavior??!1,this.proportionalLayout=t.proportionalLayout??!0,this.getSashOrthogonalSize=t.getSashOrthogonalSize,this.el=document.createElement("div"),this.el.classList.add("monaco-split-view2"),this.el.classList.add(0===this.orientation?"vertical":"horizontal"),e.appendChild(this.el),this.sashContainer=(0,s.BC)(this.el,(0,s.$)(".sash-container")),this.viewContainer=(0,s.$)(".split-view-container"),this.scrollable=this._register(new u.yE({forceIntegerValues:!0,smoothScrollDuration:125,scheduleAtNextAnimationFrame:e=>(0,s.PG)((0,s.zk)(this.el),e)})),this.scrollableElement=this._register(new o.oO(this.viewContainer,{vertical:0===this.orientation?t.scrollbarVisibility??1:2,horizontal:1===this.orientation?t.scrollbarVisibility??1:2},this.scrollable));const i=this._register(new n.f(this.viewContainer,"scroll")).event;this._register(i((e=>{const t=this.scrollableElement.getScrollPosition(),i=Math.abs(this.viewContainer.scrollLeft-t.scrollLeft)<=1?void 0:this.viewContainer.scrollLeft,s=Math.abs(this.viewContainer.scrollTop-t.scrollTop)<=1?void 0:this.viewContainer.scrollTop;void 0===i&&void 0===s||this.scrollableElement.setScrollPosition({scrollLeft:i,scrollTop:s})}))),this.onDidScroll=this.scrollableElement.onScroll,this._register(this.onDidScroll((e=>{e.scrollTopChanged&&(this.viewContainer.scrollTop=e.scrollTop),e.scrollLeftChanged&&(this.viewContainer.scrollLeft=e.scrollLeft)}))),(0,s.BC)(this.el,this.scrollableElement.getDomNode()),this.style(t.styles||p),t.descriptor&&(this.size=t.descriptor.size,t.descriptor.views.forEach(((e,t)=>{const i=g.b0(e.visible)||e.visible?e.size:{type:"invisible",cachedVisibleSize:e.size},s=e.view;this.doAddView(s,i,t,!0)})),this._contentSize=this.viewItems.reduce(((e,t)=>e+t.size),0),this.saveProportions())}style(e){e.separatorBorder.isTransparent()?(this.el.classList.remove("separator-border"),this.el.style.removeProperty("--separator-border")):(this.el.classList.add("separator-border"),this.el.style.setProperty("--separator-border",e.separatorBorder.toString()))}addView(e,t,i=this.viewItems.length,s){this.doAddView(e,t,i,s)}layout(e,t){const i=Math.max(this.size,this._contentSize);if(this.size=e,this.layoutContext=t,this.proportions){let t=0;for(let i=0;i<this.viewItems.length;i++){const s=this.viewItems[i],n=this.proportions[i];"number"===typeof n?t+=n:e-=s.size}for(let i=0;i<this.viewItems.length;i++){const s=this.viewItems[i],n=this.proportions[i];"number"===typeof n&&t>0&&(s.size=(0,d.qE)(Math.round(n*e/t),s.minimumSize,s.maximumSize))}}else{const t=(0,a.y1)(this.viewItems.length),s=t.filter((e=>1===this.viewItems[e].priority)),n=t.filter((e=>2===this.viewItems[e].priority));this.resize(this.viewItems.length-1,e-i,void 0,s,n)}this.distributeEmptySpace(),this.layoutViews()}saveProportions(){this.proportionalLayout&&this._contentSize>0&&(this.proportions=this.viewItems.map((e=>e.proportionalLayout&&e.visible?e.size/this._contentSize:void 0)))}onSashStart({sash:e,start:t,alt:i}){for(const s of this.viewItems)s.enabled=!1;const n=this.sashItems.findIndex((t=>t.sash===e)),r=(0,h.qE)((0,s.ko)(this.el.ownerDocument.body,"keydown",(e=>o(this.sashDragState.current,e.altKey))),(0,s.ko)(this.el.ownerDocument.body,"keyup",(()=>o(this.sashDragState.current,!1)))),o=(e,t)=>{const i=this.viewItems.map((e=>e.size));let s,o,c=Number.NEGATIVE_INFINITY,l=Number.POSITIVE_INFINITY;if(this.inverseAltBehavior&&(t=!t),t){if(n===this.sashItems.length-1){const e=this.viewItems[n];c=(e.minimumSize-e.size)/2,l=(e.maximumSize-e.size)/2}else{const e=this.viewItems[n+1];c=(e.size-e.maximumSize)/2,l=(e.size-e.minimumSize)/2}}if(!t){const e=(0,a.y1)(n,-1),t=(0,a.y1)(n+1,this.viewItems.length),r=e.reduce(((e,t)=>e+(this.viewItems[t].minimumSize-i[t])),0),c=e.reduce(((e,t)=>e+(this.viewItems[t].viewMaximumSize-i[t])),0),l=0===t.length?Number.POSITIVE_INFINITY:t.reduce(((e,t)=>e+(i[t]-this.viewItems[t].minimumSize)),0),h=0===t.length?Number.NEGATIVE_INFINITY:t.reduce(((e,t)=>e+(i[t]-this.viewItems[t].viewMaximumSize)),0),d=Math.max(r,h),u=Math.min(l,c),g=this.findFirstSnapIndex(e),p=this.findFirstSnapIndex(t);if("number"===typeof g){const e=this.viewItems[g],t=Math.floor(e.viewMinimumSize/2);s={index:g,limitDelta:e.visible?d-t:d+t,size:e.size}}if("number"===typeof p){const e=this.viewItems[p],t=Math.floor(e.viewMinimumSize/2);o={index:p,limitDelta:e.visible?u+t:u-t,size:e.size}}}this.sashDragState={start:e,current:e,index:n,sizes:i,minDelta:c,maxDelta:l,alt:t,snapBefore:s,snapAfter:o,disposable:r}};o(t,i)}onSashChange({current:e}){const{index:t,start:i,sizes:s,alt:n,minDelta:r,maxDelta:o,snapBefore:a,snapAfter:c}=this.sashDragState;this.sashDragState.current=e;const l=e-i,h=this.resize(t,l,s,void 0,void 0,r,o,a,c);if(n){const e=t===this.sashItems.length-1,i=this.viewItems.map((e=>e.size)),s=e?t:t+1,n=this.viewItems[s],r=n.size-n.maximumSize,o=n.size-n.minimumSize,a=e?t-1:t+1;this.resize(a,-h,i,void 0,void 0,r,o)}this.distributeEmptySpace(),this.layoutViews()}onSashEnd(e){this._onDidSashChange.fire(e),this.sashDragState.disposable.dispose(),this.saveProportions();for(const t of this.viewItems)t.enabled=!0}onViewChange(e,t){const i=this.viewItems.indexOf(e);i<0||i>=this.viewItems.length||(t="number"===typeof t?t:e.size,t=(0,d.qE)(t,e.minimumSize,e.maximumSize),this.inverseAltBehavior&&i>0?(this.resize(i-1,Math.floor((e.size-t)/2)),this.distributeEmptySpace(),this.layoutViews()):(e.size=t,this.relayout([i],void 0)))}resizeView(e,t){if(!(e<0||e>=this.viewItems.length)){if(this.state!==v.Idle)throw new Error("Cant modify splitview");this.state=v.Busy;try{const i=(0,a.y1)(this.viewItems.length).filter((t=>t!==e)),s=[...i.filter((e=>1===this.viewItems[e].priority)),e],n=i.filter((e=>2===this.viewItems[e].priority)),r=this.viewItems[e];t=Math.round(t),t=(0,d.qE)(t,r.minimumSize,Math.min(r.maximumSize,this.size)),r.size=t,this.relayout(s,n)}finally{this.state=v.Idle}}}distributeViewSizes(){const e=[];let t=0;for(const o of this.viewItems)o.maximumSize-o.minimumSize>0&&(e.push(o),t+=o.size);const i=Math.floor(t/e.length);for(const o of e)o.size=(0,d.qE)(i,o.minimumSize,o.maximumSize);const s=(0,a.y1)(this.viewItems.length),n=s.filter((e=>1===this.viewItems[e].priority)),r=s.filter((e=>2===this.viewItems[e].priority));this.relayout(n,r)}getViewSize(e){return e<0||e>=this.viewItems.length?-1:this.viewItems[e].size}doAddView(e,t,i=this.viewItems.length,n){if(this.state!==v.Idle)throw new Error("Cant modify splitview");this.state=v.Busy;try{const o=(0,s.$)(".split-view-view");i===this.viewItems.length?this.viewContainer.appendChild(o):this.viewContainer.insertBefore(o,this.viewContainer.children.item(i));const c=e.onDidChange((e=>this.onViewChange(p,e))),d=(0,h.s)((()=>o.remove())),u=(0,h.qE)(c,d);let g;"number"===typeof t?g=t:("auto"===t.type&&(t=this.areViewsDistributed()?{type:"distribute"}:{type:"split",index:t.index}),g="split"===t.type?this.getViewSize(t.index)/2:"invisible"===t.type?{cachedVisibleSize:t.cachedVisibleSize}:e.minimumSize);const p=0===this.orientation?new f(o,e,g,u):new _(o,e,g,u);if(this.viewItems.splice(i,0,p),this.viewItems.length>1){const e={orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash},t=0===this.orientation?new r.m(this.sashContainer,{getHorizontalSashTop:e=>this.getSashPosition(e),getHorizontalSashWidth:this.getSashOrthogonalSize},{...e,orientation:1}):new r.m(this.sashContainer,{getVerticalSashLeft:e=>this.getSashPosition(e),getVerticalSashHeight:this.getSashOrthogonalSize},{...e,orientation:0}),s=0===this.orientation?e=>({sash:t,start:e.startY,current:e.currentY,alt:e.altKey}):e=>({sash:t,start:e.startX,current:e.currentX,alt:e.altKey}),n=l.Jh.map(t.onDidStart,s)(this.onSashStart,this),o=l.Jh.map(t.onDidChange,s)(this.onSashChange,this),c=l.Jh.map(t.onDidEnd,(()=>this.sashItems.findIndex((e=>e.sash===t)))),d=c(this.onSashEnd,this),u=t.onDidReset((()=>{const e=this.sashItems.findIndex((e=>e.sash===t)),i=(0,a.y1)(e,-1),s=(0,a.y1)(e+1,this.viewItems.length),n=this.findFirstSnapIndex(i),r=this.findFirstSnapIndex(s);("number"!==typeof n||this.viewItems[n].visible)&&("number"!==typeof r||this.viewItems[r].visible)&&this._onDidSashReset.fire(e)})),g=(0,h.qE)(n,o,d,u,t),p={sash:t,disposable:g};this.sashItems.splice(i-1,0,p)}let m;o.appendChild(e.element),"number"!==typeof t&&"split"===t.type&&(m=[t.index]),n||this.relayout([i],m),n||"number"===typeof t||"distribute"!==t.type||this.distributeViewSizes()}finally{this.state=v.Idle}}relayout(e,t){const i=this.viewItems.reduce(((e,t)=>e+t.size),0);this.resize(this.viewItems.length-1,this.size-i,void 0,e,t),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()}resize(e,t,i=this.viewItems.map((e=>e.size)),s,n,r=Number.NEGATIVE_INFINITY,o=Number.POSITIVE_INFINITY,c,l){if(e<0||e>=this.viewItems.length)return 0;const h=(0,a.y1)(e,-1),u=(0,a.y1)(e+1,this.viewItems.length);if(n)for(const d of n)(0,a._A)(h,d),(0,a._A)(u,d);if(s)for(const d of s)(0,a.r7)(h,d),(0,a.r7)(u,d);const g=h.map((e=>this.viewItems[e])),p=h.map((e=>i[e])),m=u.map((e=>this.viewItems[e])),f=u.map((e=>i[e])),_=h.reduce(((e,t)=>e+(this.viewItems[t].minimumSize-i[t])),0),v=h.reduce(((e,t)=>e+(this.viewItems[t].maximumSize-i[t])),0),C=0===u.length?Number.POSITIVE_INFINITY:u.reduce(((e,t)=>e+(i[t]-this.viewItems[t].minimumSize)),0),E=0===u.length?Number.NEGATIVE_INFINITY:u.reduce(((e,t)=>e+(i[t]-this.viewItems[t].maximumSize)),0),b=Math.max(_,E,r),S=Math.min(C,v,o);let y=!1;if(c){const e=this.viewItems[c.index],i=t>=c.limitDelta;y=i!==e.visible,e.setVisible(i,c.size)}if(!y&&l){const e=this.viewItems[l.index],i=t<l.limitDelta;y=i!==e.visible,e.setVisible(i,l.size)}if(y)return this.resize(e,t,i,s,n,r,o);for(let a=0,w=t=(0,d.qE)(t,b,S);a<g.length;a++){const e=g[a],t=(0,d.qE)(p[a]+w,e.minimumSize,e.maximumSize);w-=t-p[a],e.size=t}for(let a=0,w=t;a<m.length;a++){const e=m[a],t=(0,d.qE)(f[a]-w,e.minimumSize,e.maximumSize);w+=t-f[a],e.size=t}return t}distributeEmptySpace(e){const t=this.viewItems.reduce(((e,t)=>e+t.size),0);let i=this.size-t;const s=(0,a.y1)(this.viewItems.length-1,-1),n=s.filter((e=>1===this.viewItems[e].priority)),r=s.filter((e=>2===this.viewItems[e].priority));for(const o of r)(0,a._A)(s,o);for(const o of n)(0,a.r7)(s,o);"number"===typeof e&&(0,a.r7)(s,e);for(let o=0;0!==i&&o<s.length;o++){const e=this.viewItems[s[o]],t=(0,d.qE)(e.size+i,e.minimumSize,e.maximumSize);i-=t-e.size,e.size=t}}layoutViews(){this._contentSize=this.viewItems.reduce(((e,t)=>e+t.size),0);let e=0;for(const t of this.viewItems)t.layout(e,this.layoutContext),e+=t.size;this.sashItems.forEach((e=>e.sash.layout())),this.updateSashEnablement(),this.updateScrollableElement()}updateScrollableElement(){0===this.orientation?this.scrollableElement.setScrollDimensions({height:this.size,scrollHeight:this._contentSize}):this.scrollableElement.setScrollDimensions({width:this.size,scrollWidth:this._contentSize})}updateSashEnablement(){let e=!1;const t=this.viewItems.map((t=>e=t.size-t.minimumSize>0||e));e=!1;const i=this.viewItems.map((t=>e=t.maximumSize-t.size>0||e)),s=[...this.viewItems].reverse();e=!1;const n=s.map((t=>e=t.size-t.minimumSize>0||e)).reverse();e=!1;const r=s.map((t=>e=t.maximumSize-t.size>0||e)).reverse();let o=0;for(let c=0;c<this.sashItems.length;c++){const{sash:e}=this.sashItems[c];o+=this.viewItems[c].size;const s=!(t[c]&&r[c+1]),l=!(i[c]&&n[c+1]);if(s&&l){const i=(0,a.y1)(c,-1),s=(0,a.y1)(c+1,this.viewItems.length),r=this.findFirstSnapIndex(i),l=this.findFirstSnapIndex(s),h="number"===typeof r&&!this.viewItems[r].visible,d="number"===typeof l&&!this.viewItems[l].visible;h&&n[c]&&(o>0||this.startSnappingEnabled)?e.state=1:d&&t[c]&&(o<this._contentSize||this.endSnappingEnabled)?e.state=2:e.state=0}else e.state=s&&!l?1:!s&&l?2:3}}getSashPosition(e){let t=0;for(let i=0;i<this.sashItems.length;i++)if(t+=this.viewItems[i].size,this.sashItems[i].sash===e)return t;return 0}findFirstSnapIndex(e){for(const t of e){const e=this.viewItems[t];if(e.visible&&e.snap)return t}for(const t of e){const e=this.viewItems[t];if(e.visible&&e.maximumSize-e.minimumSize>0)return;if(!e.visible&&e.snap)return t}}areViewsDistributed(){let e,t;for(const i of this.viewItems)if(e=void 0===e?i.size:Math.min(e,i.size),t=void 0===t?i.size:Math.max(t,i.size),t-e>2)return!1;return!0}dispose(){this.sashDragState?.disposable.dispose(),(0,h.AS)(this.viewItems),this.viewItems=[],this.sashItems.forEach((e=>e.disposable.dispose())),this.sashItems=[],super.dispose()}}},35315:(e,t,i)=>{"use strict";i.d(t,{l:()=>l,F:()=>c});var s=i(17390),n=i(25689),r=i(41234),o=i(42904),a=i(48196);const c={inputActiveOptionBorder:"#007ACC00",inputActiveOptionForeground:"#FFFFFF",inputActiveOptionBackground:"#0E639C50"};class l extends s.x{constructor(e){super(),this._onChange=this._register(new r.vl),this.onChange=this._onChange.event,this._onKeyDown=this._register(new r.vl),this.onKeyDown=this._onKeyDown.event,this._opts=e,this._checked=this._opts.isChecked;const t=["monaco-custom-toggle"];this._opts.icon&&(this._icon=this._opts.icon,t.push(...n.L.asClassNameArray(this._icon))),this._opts.actionClassName&&t.push(...this._opts.actionClassName.split(" ")),this._checked&&t.push("checked"),this.domNode=document.createElement("div"),this._hover=this._register((0,a.i)().setupManagedHover(e.hoverDelegate??(0,o.nZ)("mouse"),this.domNode,this._opts.title)),this.domNode.classList.add(...t),this._opts.notFocusable||(this.domNode.tabIndex=0),this.domNode.setAttribute("role","checkbox"),this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.setAttribute("aria-label",this._opts.title),this.applyStyles(),this.onclick(this.domNode,(e=>{this.enabled&&(this.checked=!this._checked,this._onChange.fire(!1),e.preventDefault())})),this._register(this.ignoreGesture(this.domNode)),this.onkeydown(this.domNode,(e=>{if(10===e.keyCode||3===e.keyCode)return this.checked=!this._checked,this._onChange.fire(!0),e.preventDefault(),void e.stopPropagation();this._onKeyDown.fire(e)}))}get enabled(){return"true"!==this.domNode.getAttribute("aria-disabled")}focus(){this.domNode.focus()}get checked(){return this._checked}set checked(e){this._checked=e,this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.classList.toggle("checked",this._checked),this.applyStyles()}width(){return 22}applyStyles(){this.domNode&&(this.domNode.style.borderColor=this._checked&&this._opts.inputActiveOptionBorder||"",this.domNode.style.color=this._checked&&this._opts.inputActiveOptionForeground||"inherit",this.domNode.style.backgroundColor=this._checked&&this._opts.inputActiveOptionBackground||"")}enable(){this.domNode.setAttribute("aria-disabled",String(!1))}disable(){this.domNode.setAttribute("aria-disabled",String(!0))}}},35600:(e,t,i)=>{"use strict";i.d(t,{wZ:()=>h,MT:()=>c,zL:()=>l,UW:()=>g,Md:()=>m});var s=i(78209),n=i(91508),r=i(99020),o=i(25521);class a{constructor(e,t,i,s){this.endIndex=e,this.type=t,this.metadata=i,this.containsRTL=s,this._linePartBrand=void 0}isWhitespace(){return!!(1&this.metadata)}isPseudoAfter(){return!!(4&this.metadata)}}class c{constructor(e,t){this.startOffset=e,this.endOffset=t}equals(e){return this.startOffset===e.startOffset&&this.endOffset===e.endOffset}}class l{constructor(e,t,i,s,n,r,a,c,l,h,d,u,g,p,m,f,_,v,C){this.useMonospaceOptimizations=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=i,this.continuesWithWrappedLine=s,this.isBasicASCII=n,this.containsRTL=r,this.fauxIndentLength=a,this.lineTokens=c,this.lineDecorations=l.sort(o.d.compare),this.tabSize=h,this.startVisibleColumn=d,this.spaceWidth=u,this.stopRenderingLineAfter=m,this.renderWhitespace="all"===f?4:"boundary"===f?1:"selection"===f?2:"trailing"===f?3:0,this.renderControlCharacters=_,this.fontLigatures=v,this.selectionsOnLine=C&&C.sort(((e,t)=>e.startOffset<t.startOffset?-1:1));Math.abs(p-u)<Math.abs(g-u)?(this.renderSpaceWidth=p,this.renderSpaceCharCode=11825):(this.renderSpaceWidth=g,this.renderSpaceCharCode=183)}sameSelection(e){if(null===this.selectionsOnLine)return null===e;if(null===e)return!1;if(e.length!==this.selectionsOnLine.length)return!1;for(let t=0;t<this.selectionsOnLine.length;t++)if(!this.selectionsOnLine[t].equals(e[t]))return!1;return!0}equals(e){return this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineContent===e.lineContent&&this.continuesWithWrappedLine===e.continuesWithWrappedLine&&this.isBasicASCII===e.isBasicASCII&&this.containsRTL===e.containsRTL&&this.fauxIndentLength===e.fauxIndentLength&&this.tabSize===e.tabSize&&this.startVisibleColumn===e.startVisibleColumn&&this.spaceWidth===e.spaceWidth&&this.renderSpaceWidth===e.renderSpaceWidth&&this.renderSpaceCharCode===e.renderSpaceCharCode&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.fontLigatures===e.fontLigatures&&o.d.equalsArr(this.lineDecorations,e.lineDecorations)&&this.lineTokens.equals(e.lineTokens)&&this.sameSelection(e.selectionsOnLine)}}class h{constructor(e,t){this.partIndex=e,this.charIndex=t}}class d{static getPartIndex(e){return(4294901760&e)>>>16}static getCharIndex(e){return(65535&e)>>>0}constructor(e,t){this.length=e,this._data=new Uint32Array(this.length),this._horizontalOffset=new Uint32Array(this.length)}setColumnInfo(e,t,i,s){const n=(t<<16|i)>>>0;this._data[e-1]=n,this._horizontalOffset[e-1]=s}getHorizontalOffset(e){return 0===this._horizontalOffset.length?0:this._horizontalOffset[e-1]}charOffsetToPartData(e){return 0===this.length?0:e<0?this._data[0]:e>=this.length?this._data[this.length-1]:this._data[e]}getDomPosition(e){const t=this.charOffsetToPartData(e-1),i=d.getPartIndex(t),s=d.getCharIndex(t);return new h(i,s)}getColumn(e,t){return this.partDataToCharOffset(e.partIndex,t,e.charIndex)+1}partDataToCharOffset(e,t,i){if(0===this.length)return 0;const s=(e<<16|i)>>>0;let n=0,r=this.length-1;for(;n+1<r;){const e=n+r>>>1,t=this._data[e];if(t===s)return e;t>s?r=e:n=e}if(n===r)return n;const o=this._data[n],a=this._data[r];if(o===s)return n;if(a===s)return r;const c=d.getPartIndex(o),l=d.getCharIndex(o);let h;h=c!==d.getPartIndex(a)?t:d.getCharIndex(a);return i-l<=h-i?n:r}}class u{constructor(e,t,i){this._renderLineOutputBrand=void 0,this.characterMapping=e,this.containsRTL=t,this.containsForeignElements=i}}function g(e,t){if(0===e.lineContent.length){if(e.lineDecorations.length>0){t.appendString("<span>");let i=0,s=0,n=0;for(const o of e.lineDecorations)1!==o.type&&2!==o.type||(t.appendString('<span class="'),t.appendString(o.className),t.appendString('"></span>'),1===o.type&&(n|=1,i++),2===o.type&&(n|=2,s++));t.appendString("</span>");const r=new d(1,i+s);return r.setColumnInfo(1,i,0,0),new u(r,!1,n)}return t.appendString("<span><span></span></span>"),new u(new d(0,0),!1,0)}return function(e,t){const i=e.fontIsMonospace,r=e.canUseHalfwidthRightwardsArrow,o=e.containsForeignElements,a=e.lineContent,c=e.len,l=e.isOverflowing,h=e.overflowingCharCount,g=e.parts,p=e.fauxIndentLength,m=e.tabSize,f=e.startVisibleColumn,C=e.containsRTL,E=e.spaceWidth,b=e.renderSpaceCharCode,S=e.renderWhitespace,y=e.renderControlCharacters,w=new d(c+1,g.length);let R=!1,L=0,T=f,x=0,k=0,A=0;C?t.appendString('<span dir="ltr">'):t.appendString("<span>");for(let s=0,d=g.length;s<d;s++){const e=g[s],l=e.endIndex,h=e.type,d=e.containsRTL,u=0!==S&&e.isWhitespace(),f=u&&!i&&("mtkw"===h||!o),C=L===l&&e.isPseudoAfter();if(x=0,t.appendString("<span "),d&&t.appendString('style="unicode-bidi:isolate" '),t.appendString('class="'),t.appendString(f?"mtkz":h),t.appendASCIICharCode(34),u){let e=0;{let t=L,i=T;for(;t<l;t++){const s=0|(9===a.charCodeAt(t)?m-i%m:1);e+=s,t>=p&&(i+=s)}}for(f&&(t.appendString(' style="width:'),t.appendString(String(E*e)),t.appendString('px"')),t.appendASCIICharCode(62);L<l;L++){w.setColumnInfo(L+1,s-A,x,k),A=0;let e,i;if(9===a.charCodeAt(L)){e=m-T%m|0,i=e,!r||i>1?t.appendCharCode(8594):t.appendCharCode(65515);for(let e=2;e<=i;e++)t.appendCharCode(160)}else e=2,i=1,t.appendCharCode(b),t.appendCharCode(8204);x+=e,k+=i,L>=p&&(T+=i)}}else for(t.appendASCIICharCode(62);L<l;L++){w.setColumnInfo(L+1,s-A,x,k),A=0;const e=a.charCodeAt(L);let i=1,r=1;switch(e){case 9:i=m-T%m,r=i;for(let e=1;e<=i;e++)t.appendCharCode(160);break;case 32:t.appendCharCode(160);break;case 60:t.appendString("<");break;case 62:t.appendString(">");break;case 38:t.appendString("&");break;case 0:y?t.appendCharCode(9216):t.appendString("�");break;case 65279:case 8232:case 8233:case 133:t.appendCharCode(65533);break;default:n.ne(e)&&r++,y&&e<32?t.appendCharCode(9216+e):y&&127===e?t.appendCharCode(9249):y&&_(e)?(t.appendString("[U+"),t.appendString(v(e)),t.appendString("]"),i=8,r=i):t.appendCharCode(e)}x+=i,k+=r,L>=p&&(T+=r)}C?A++:A=0,L>=c&&!R&&e.isPseudoAfter()&&(R=!0,w.setColumnInfo(L+1,s,x,k)),t.appendString("</span>")}R||w.setColumnInfo(c+1,g.length-1,x,k);l&&(t.appendString('<span class="mtkoverflow">'),t.appendString(s.kg("showMore","Show more ({0})",function(e){if(e<1024)return s.kg("overflow.chars","{0} chars",e);if(e<1048576)return`${(e/1024).toFixed(1)} KB`;return`${(e/1024/1024).toFixed(1)} MB`}(h))),t.appendString("</span>"));return t.appendString("</span>"),new u(w,C,o)}(function(e){const t=e.lineContent;let i,s,r;-1!==e.stopRenderingLineAfter&&e.stopRenderingLineAfter<t.length?(i=!0,s=t.length-e.stopRenderingLineAfter,r=e.stopRenderingLineAfter):(i=!1,s=0,r=t.length);let c=function(e,t,i,s,r){const o=[];let c=0;s>0&&(o[c++]=new a(s,"",0,!1));let l=s;for(let h=0,d=i.getCount();h<d;h++){const d=i.getEndOffset(h);if(d<=s)continue;const u=i.getClassName(h);if(d>=r){const i=!!t&&n.E_(e.substring(l,r));o[c++]=new a(r,u,0,i);break}const g=!!t&&n.E_(e.substring(l,d));o[c++]=new a(d,u,0,g),l=d}return o}(t,e.containsRTL,e.lineTokens,e.fauxIndentLength,r);e.renderControlCharacters&&!e.isBasicASCII&&(c=function(e,t){const i=[];let s=new a(0,"",0,!1),n=0;for(const r of t){const t=r.endIndex;for(;n<t;n++){_(e.charCodeAt(n))&&(n>s.endIndex&&(s=new a(n,r.type,r.metadata,r.containsRTL),i.push(s)),s=new a(n+1,"mtkcontrol",r.metadata,!1),i.push(s))}n>s.endIndex&&(s=new a(t,r.type,r.metadata,r.containsRTL),i.push(s))}return i}(t,c));(4===e.renderWhitespace||1===e.renderWhitespace||2===e.renderWhitespace&&e.selectionsOnLine||3===e.renderWhitespace&&!e.continuesWithWrappedLine)&&(c=function(e,t,i,s){const r=e.continuesWithWrappedLine,o=e.fauxIndentLength,c=e.tabSize,l=e.startVisibleColumn,h=e.useMonospaceOptimizations,d=e.selectionsOnLine,u=1===e.renderWhitespace,g=3===e.renderWhitespace,p=e.renderSpaceWidth!==e.spaceWidth,m=[];let f=0,_=0,v=s[_].type,C=s[_].containsRTL,E=s[_].endIndex;const b=s.length;let S,y=!1,w=n.HG(t);-1===w?(y=!0,w=i,S=i):S=n.lT(t);let R=!1,L=0,T=d&&d[L],x=l%c;for(let A=o;A<i;A++){const e=t.charCodeAt(A);let r;if(T&&A>=T.endOffset&&(L++,T=d&&d[L]),A<w||A>S)r=!0;else if(9===e)r=!0;else if(32===e)if(u)if(R)r=!0;else{const e=A+1<i?t.charCodeAt(A+1):0;r=32===e||9===e}else r=!0;else r=!1;if(r&&d&&(r=!!T&&T.startOffset<=A&&T.endOffset>A),r&&g&&(r=y||A>S),r&&C&&A>=w&&A<=S&&(r=!1),R){if(!r||!h&&x>=c){if(p){for(let e=(f>0?m[f-1].endIndex:o)+1;e<=A;e++)m[f++]=new a(e,"mtkw",1,!1)}else m[f++]=new a(A,"mtkw",1,!1);x%=c}}else(A===E||r&&A>o)&&(m[f++]=new a(A,v,0,C),x%=c);for(9===e?x=c:n.ne(e)?x+=2:x++,R=r;A===E&&(_++,_<b);)v=s[_].type,C=s[_].containsRTL,E=s[_].endIndex}let k=!1;if(R)if(r&&u){const e=i>0?t.charCodeAt(i-1):0,s=i>1?t.charCodeAt(i-2):0;32===e&&32!==s&&9!==s||(k=!0)}else k=!0;if(k)if(p){for(let e=(f>0?m[f-1].endIndex:o)+1;e<=i;e++)m[f++]=new a(e,"mtkw",1,!1)}else m[f++]=new a(i,"mtkw",1,!1);else m[f++]=new a(i,v,0,C);return m}(e,t,r,c));let l=0;if(e.lineDecorations.length>0){for(let t=0,i=e.lineDecorations.length;t<i;t++){const i=e.lineDecorations[t];3===i.type||1===i.type?l|=1:2===i.type&&(l|=2)}c=function(e,t,i,s){s.sort(o.d.compare);const n=o.Bs.normalize(e,s),r=n.length;let c=0;const l=[];let h=0,d=0;for(let o=0,g=i.length;o<g;o++){const e=i[o],t=e.endIndex,s=e.type,u=e.metadata,g=e.containsRTL;for(;c<r&&n[c].startOffset<t;){const e=n[c];if(e.startOffset>d&&(d=e.startOffset,l[h++]=new a(d,s,u,g)),!(e.endOffset+1<=t)){d=t,l[h++]=new a(d,s+" "+e.className,u|e.metadata,g);break}d=e.endOffset+1,l[h++]=new a(d,s+" "+e.className,u|e.metadata,g),c++}t>d&&(d=t,l[h++]=new a(d,s,u,g))}const u=i[i.length-1].endIndex;if(c<r&&n[c].startOffset===u)for(;c<r&&n[c].startOffset===u;){const e=n[c];l[h++]=new a(d,e.className,e.metadata,!1),c++}return l}(t,0,c,e.lineDecorations)}e.containsRTL||(c=function(e,t,i){let s=0;const n=[];let r=0;if(i)for(let o=0,c=t.length;o<c;o++){const i=t[o],c=i.endIndex;if(s+50<c){const t=i.type,o=i.metadata,l=i.containsRTL;let h=-1,d=s;for(let i=s;i<c;i++)32===e.charCodeAt(i)&&(h=i),-1!==h&&i-d>=50&&(n[r++]=new a(h+1,t,o,l),d=h+1,h=-1);d!==c&&(n[r++]=new a(c,t,o,l))}else n[r++]=i;s=c}else for(let o=0,c=t.length;o<c;o++){const e=t[o],i=e.endIndex,c=i-s;if(c>50){const t=e.type,o=e.metadata,l=e.containsRTL,h=Math.ceil(c/50);for(let e=1;e<h;e++){const i=s+50*e;n[r++]=new a(i,t,o,l)}n[r++]=new a(i,t,o,l)}else n[r++]=e;s=i}return n}(t,c,!e.isBasicASCII||e.fontLigatures));return new f(e.useMonospaceOptimizations,e.canUseHalfwidthRightwardsArrow,t,r,i,s,c,l,e.fauxIndentLength,e.tabSize,e.startVisibleColumn,e.containsRTL,e.spaceWidth,e.renderSpaceCharCode,e.renderWhitespace,e.renderControlCharacters)}(e),t)}class p{constructor(e,t,i,s){this.characterMapping=e,this.html=t,this.containsRTL=i,this.containsForeignElements=s}}function m(e){const t=new r.fe(1e4),i=g(e,t);return new p(i.characterMapping,t.build(),i.containsRTL,i.containsForeignElements)}class f{constructor(e,t,i,s,n,r,o,a,c,l,h,d,u,g,p,m){this.fontIsMonospace=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=i,this.len=s,this.isOverflowing=n,this.overflowingCharCount=r,this.parts=o,this.containsForeignElements=a,this.fauxIndentLength=c,this.tabSize=l,this.startVisibleColumn=h,this.containsRTL=d,this.spaceWidth=u,this.renderSpaceCharCode=g,this.renderWhitespace=p,this.renderControlCharacters=m}}function _(e){return e<32?9!==e:127===e||(e>=8234&&e<=8238||e>=8294&&e<=8297||e>=8206&&e<=8207||1564===e)}function v(e){return e.toString(16).toUpperCase().padStart(4,"0")}},35762:(e,t,i)=>{e.exports=function(e){const t=i(94297),s=i(76319)(e);function n(e,i,n){let r="";const o=e.$value,a=o.length;return t.drawFullView(a,i)?(r+="{"+t.getIndent(i,n),r+=s(o,i,n),r+=t.getIndent(i,n-1)+"}"):t.drawCompactView(a,i)?(r+="{",r+=s(o,i,n),r+="}"):r+="{}",r}return n.isScalar=!0,n}},35817:(e,t,i)=>{"use strict";i.d(t,{s:()=>n});var s=i(1245);class n{static whitespaceVisibleColumn(e,t,i){const n=e.length;let r=0,o=-1,a=-1;for(let c=0;c<n;c++){if(c===t)return[o,a,r];r%i===0&&(o=c,a=r);switch(e.charCodeAt(c)){case 32:r+=1;break;case 9:r=s.A.nextRenderTabStop(r,i);break;default:return[-1,-1,-1]}}return t===n?[o,a,r]:[-1,-1,-1]}static atomicPosition(e,t,i,r){const o=e.length,[a,c,l]=n.whitespaceVisibleColumn(e,t,i);if(-1===l)return-1;let h;switch(r){case 0:h=!0;break;case 1:h=!1;break;case 2:if(l%i===0)return t;h=l%i<=i/2}if(h){if(-1===a)return-1;let t=c;for(let n=a;n<o;++n){if(t===c+i)return a;switch(e.charCodeAt(n)){case 32:t+=1;break;case 9:t=s.A.nextRenderTabStop(t,i);break;default:return-1}}return t===c+i?a:-1}const d=s.A.nextRenderTabStop(l,i);let u=l;for(let n=t;n<o;n++){if(u===d)return n;switch(e.charCodeAt(n)){case 32:u+=1;break;case 9:u=s.A.nextRenderTabStop(u,i);break;default:return-1}}return u===d?o:-1}}},36e3:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib",".TcPOU",".TcDUT",".TcGVL",".TcIO"],aliases:["StructuredText","scl","stl"],loader:()=>i.e(1321).then(i.bind(i,43702))})},36317:e=>{e.exports=function(){function e(e){return e.$value}return e.isScalar=!0,e}},36456:(e,t,i)=>{"use strict";i.d(t,{Ez:()=>d,SJ:()=>p,fV:()=>h,ny:()=>s,v$:()=>l,zl:()=>g});var s,n=i(64383),r=i(98067),o=i(91508),a=i(79400),c=i(74027);function l(e,t){return a.r.isUri(e)?(0,o.Q_)(e.scheme,t):(0,o.ns)(e,t+":")}function h(e,...t){return t.some((t=>l(e,t)))}!function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command",e.vscodeRemote="vscode-remote",e.vscodeRemoteResource="vscode-remote-resource",e.vscodeManagedRemoteResource="vscode-managed-remote-resource",e.vscodeUserData="vscode-userdata",e.vscodeCustomEditor="vscode-custom-editor",e.vscodeNotebookCell="vscode-notebook-cell",e.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",e.vscodeNotebookCellMetadataDiff="vscode-notebook-cell-metadata-diff",e.vscodeNotebookCellOutput="vscode-notebook-cell-output",e.vscodeNotebookCellOutputDiff="vscode-notebook-cell-output-diff",e.vscodeNotebookMetadata="vscode-notebook-metadata",e.vscodeInteractiveInput="vscode-interactive-input",e.vscodeSettings="vscode-settings",e.vscodeWorkspaceTrust="vscode-workspace-trust",e.vscodeTerminal="vscode-terminal",e.vscodeChatCodeBlock="vscode-chat-code-block",e.vscodeChatCodeCompareBlock="vscode-chat-code-compare-block",e.vscodeChatSesssion="vscode-chat-editor",e.webviewPanel="webview-panel",e.vscodeWebview="vscode-webview",e.extension="extension",e.vscodeFileResource="vscode-file",e.tmp="tmp",e.vsls="vsls",e.vscodeSourceControl="vscode-scm",e.commentsInput="comment",e.codeSetting="code-setting",e.outputChannel="output"}(s||(s={}));const d=new class{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(e){this._preferredWebSchema=e}get _remoteResourcesPath(){return c.SA.join(this._serverRootPath,s.vscodeRemoteResource)}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(h){return n.dz(h),e}const t=e.authority;let i=this._hosts[t];i&&-1!==i.indexOf(":")&&-1===i.indexOf("[")&&(i=`[${i}]`);const o=this._ports[t],c=this._connectionTokens[t];let l=`path=${encodeURIComponent(e.path)}`;return"string"===typeof c&&(l+=`&tkn=${encodeURIComponent(c)}`),a.r.from({scheme:r.HZ?this._preferredWebSchema:s.vscodeRemoteResource,authority:`${i}:${o}`,path:this._remoteResourcesPath,query:l})}};class u{static{this.FALLBACK_AUTHORITY="vscode-app"}asBrowserUri(e){const t=this.toUri(e);return this.uriToBrowserUri(t)}uriToBrowserUri(e){return e.scheme===s.vscodeRemote?d.rewrite(e):e.scheme!==s.file||!r.ib&&r.lg!==`${s.vscodeFileResource}://${u.FALLBACK_AUTHORITY}`?e:e.with({scheme:s.vscodeFileResource,authority:e.authority||u.FALLBACK_AUTHORITY,query:null,fragment:null})}toUri(e,t){if(a.r.isUri(e))return e;if(globalThis._VSCODE_FILE_ROOT){const t=globalThis._VSCODE_FILE_ROOT;if(/^\w[\w\d+.-]*:\/\//.test(t))return a.r.joinPath(a.r.parse(t,!0),e);const i=c.fj(t,e);return a.r.file(i)}return a.r.parse(t.toUrl(e))}}const g=new u;var p;!function(e){const t=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);e.CoopAndCoep=Object.freeze(t.get("3"));const i="vscode-coi";e.getHeadersFromQuery=function(e){let s;"string"===typeof e?s=new URL(e).searchParams:e instanceof URL?s=e.searchParams:a.r.isUri(e)&&(s=new URL(e.toString(!0)).searchParams);const n=s?.get(i);if(n)return t.get(n)},e.addSearchParam=function(e,t,s){if(!globalThis.crossOriginIsolated)return;const n=t&&s?"3":s?"2":"1";e instanceof URLSearchParams?e.set(i,n):e[i]=n}}(p||(p={}))},36584:(e,t,i)=>{"use strict";i.d(t,{PE:()=>Ce,aG:()=>Ee,er:()=>ft,YD:()=>Re,zL:()=>gt,Nf:()=>Ne,cH:()=>Oe});var s=i(8597),n=i(25890),r=i(18447),o=i(41234),a=i(5662),c=(i(48215),i(93090));class l{get templateId(){return this.renderer.templateId}constructor(e,t){this.renderer=e,this.modelProvider=t}renderTemplate(e){return{data:this.renderer.renderTemplate(e),disposable:a.jG.None}}renderElement(e,t,i,s){if(i.disposable?.dispose(),!i.data)return;const n=this.modelProvider();if(n.isResolved(e))return this.renderer.renderElement(n.get(e),e,i.data,s);const o=new r.Qi,a=n.resolve(e,o.token);i.disposable={dispose:()=>o.cancel()},this.renderer.renderPlaceholder(e,i.data),a.then((t=>this.renderer.renderElement(t,e,i.data,s)))}disposeTemplate(e){e.disposable&&(e.disposable.dispose(),e.disposable=void 0),e.data&&(this.renderer.disposeTemplate(e.data),e.data=void 0)}}class h{constructor(e,t){this.modelProvider=e,this.accessibilityProvider=t}getWidgetAriaLabel(){return this.accessibilityProvider.getWidgetAriaLabel()}getAriaLabel(e){const t=this.modelProvider();return t.isResolved(e)?this.accessibilityProvider.getAriaLabel(t.get(e)):null}}class d{constructor(e,t,i,s,n={}){const r=()=>this.model,o=s.map((e=>new l(e,r)));this.list=new c.B8(e,t,i,o,function(e,t){return{...t,accessibilityProvider:t.accessibilityProvider&&new h(e,t.accessibilityProvider)}}(r,n))}updateOptions(e){this.list.updateOptions(e)}getHTMLElement(){return this.list.getHTMLElement()}get onDidFocus(){return this.list.onDidFocus}get widget(){return this.list}get onDidDispose(){return this.list.onDidDispose}get onMouseDblClick(){return o.Jh.map(this.list.onMouseDblClick,(({element:e,index:t,browserEvent:i})=>({element:void 0===e?void 0:this._model.get(e),index:t,browserEvent:i})))}get onPointer(){return o.Jh.map(this.list.onPointer,(({element:e,index:t,browserEvent:i})=>({element:void 0===e?void 0:this._model.get(e),index:t,browserEvent:i})))}get onDidChangeSelection(){return o.Jh.map(this.list.onDidChangeSelection,(({elements:e,indexes:t,browserEvent:i})=>({elements:e.map((e=>this._model.get(e))),indexes:t,browserEvent:i})))}get model(){return this._model}set model(e){this._model=e,this.list.splice(0,this.list.length,(0,n.y1)(e.length))}getFocus(){return this.list.getFocus()}getSelection(){return this.list.getSelection()}getSelectedElements(){return this.getSelection().map((e=>this.model.get(e)))}style(e){this.list.style(e)}dispose(){this.list.dispose()}}var u=i(48196),g=i(42904),p=i(35151);class m{static{this.TemplateId="row"}constructor(e,t,i){this.columns=e,this.getColumnSize=i,this.templateId=m.TemplateId,this.renderedTemplates=new Set;const s=new Map(t.map((e=>[e.templateId,e])));this.renderers=[];for(const n of e){const e=s.get(n.templateId);if(!e)throw new Error(`Table cell renderer for template id ${n.templateId} not found.`);this.renderers.push(e)}}renderTemplate(e){const t=(0,s.BC)(e,(0,s.$)(".monaco-table-tr")),i=[],n=[];for(let o=0;o<this.columns.length;o++){const e=this.renderers[o],r=(0,s.BC)(t,(0,s.$)(".monaco-table-td",{"data-col-index":o}));r.style.width=`${this.getColumnSize(o)}px`,i.push(r),n.push(e.renderTemplate(r))}const r={container:e,cellContainers:i,cellTemplateData:n};return this.renderedTemplates.add(r),r}renderElement(e,t,i,s){for(let n=0;n<this.columns.length;n++){const r=this.columns[n].project(e);this.renderers[n].renderElement(r,t,i.cellTemplateData[n],s)}}disposeElement(e,t,i,s){for(let n=0;n<this.columns.length;n++){const r=this.renderers[n];if(r.disposeElement){const o=this.columns[n].project(e);r.disposeElement(o,t,i.cellTemplateData[n],s)}}}disposeTemplate(e){for(let t=0;t<this.columns.length;t++){this.renderers[t].disposeTemplate(e.cellTemplateData[t])}(0,s.w_)(e.container),this.renderedTemplates.delete(e)}layoutColumn(e,t){for(const{cellContainers:i}of this.renderedTemplates)i[e].style.width=`${t}px`}}class f extends a.jG{get minimumSize(){return this.column.minimumWidth??120}get maximumSize(){return this.column.maximumWidth??Number.POSITIVE_INFINITY}get onDidChange(){return this.column.onDidChangeWidthConstraints??o.Jh.None}constructor(e,t){super(),this.column=e,this.index=t,this._onDidLayout=new o.vl,this.onDidLayout=this._onDidLayout.event,this.element=(0,s.$)(".monaco-table-th",{"data-col-index":t},e.label),e.tooltip&&this._register((0,u.i)().setupManagedHover((0,g.nZ)("mouse"),this.element,e.tooltip))}layout(e){this._onDidLayout.fire([this.index,e])}}class _{static{this.InstanceCount=0}get onDidChangeFocus(){return this.list.onDidChangeFocus}get onDidChangeSelection(){return this.list.onDidChangeSelection}get onDidScroll(){return this.list.onDidScroll}get onMouseDblClick(){return this.list.onMouseDblClick}get onPointer(){return this.list.onPointer}get onDidFocus(){return this.list.onDidFocus}get scrollTop(){return this.list.scrollTop}set scrollTop(e){this.list.scrollTop=e}get scrollHeight(){return this.list.scrollHeight}get renderHeight(){return this.list.renderHeight}get onDidDispose(){return this.list.onDidDispose}constructor(e,t,i,n,r,l){this.virtualDelegate=i,this.columns=n,this.domId="table_id_"+ ++_.InstanceCount,this.disposables=new a.Cm,this.cachedWidth=0,this.cachedHeight=0,this.domNode=(0,s.BC)(t,(0,s.$)(`.monaco-table.${this.domId}`));const h=n.map(((e,t)=>this.disposables.add(new f(e,t)))),d={size:h.reduce(((e,t)=>e+t.column.weight),0),views:h.map((e=>({size:e.column.weight,view:e})))};this.splitview=this.disposables.add(new p.U(this.domNode,{orientation:1,scrollbarVisibility:2,getSashOrthogonalSize:()=>this.cachedHeight,descriptor:d})),this.splitview.el.style.height=`${i.headerRowHeight}px`,this.splitview.el.style.lineHeight=`${i.headerRowHeight}px`;const u=new m(n,r,(e=>this.splitview.getViewSize(e)));var g;this.list=this.disposables.add(new c.B8(e,this.domNode,(g=i,{getHeight:e=>g.getHeight(e),getTemplateId:()=>m.TemplateId}),[u],l)),o.Jh.any(...h.map((e=>e.onDidLayout)))((([e,t])=>u.layoutColumn(e,t)),null,this.disposables),this.splitview.onDidSashReset((e=>{const t=n.reduce(((e,t)=>e+t.weight),0),i=n[e].weight/t*this.cachedWidth;this.splitview.resizeView(e,i)}),null,this.disposables),this.styleElement=(0,s.li)(this.domNode),this.style(c.bG)}updateOptions(e){this.list.updateOptions(e)}splice(e,t,i=[]){this.list.splice(e,t,i)}getHTMLElement(){return this.domNode}style(e){const t=[];t.push(`.monaco-table.${this.domId} > .monaco-split-view2 .monaco-sash.vertical::before {\n\t\t\ttop: ${this.virtualDelegate.headerRowHeight+1}px;\n\t\t\theight: calc(100% - ${this.virtualDelegate.headerRowHeight}px);\n\t\t}`),this.styleElement.textContent=t.join("\n"),this.list.style(e)}getSelectedElements(){return this.list.getSelectedElements()}getSelection(){return this.list.getSelection()}getFocus(){return this.list.getFocus()}dispose(){this.disposables.dispose()}}var v=i(19466),C=i(66700),E=i(37472),b=i(84565),S=i(42522);class y{constructor(e,t,i={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new E.G6(e,t,null,i),this.onDidSplice=this.model.onDidSplice,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,i.sorter&&(this.sorter={compare:(e,t)=>i.sorter.compare(e.element,t.element)}),this.identityProvider=i.identityProvider}setChildren(e,t=S.f.empty(),i={}){const s=this.getElementLocation(e);this._setChildren(s,this.preserveCollapseState(t),i)}_setChildren(e,t=S.f.empty(),i){const s=new Set,n=new Set;this.model.splice([...e,0],Number.MAX_VALUE,t,{...i,onDidCreateNode:e=>{if(null===e.element)return;const t=e;if(s.add(t.element),this.nodes.set(t.element,t),this.identityProvider){const e=this.identityProvider.getId(t.element).toString();n.add(e),this.nodesByIdentity.set(e,t)}i.onDidCreateNode?.(t)},onDidDeleteNode:e=>{if(null===e.element)return;const t=e;if(s.has(t.element)||this.nodes.delete(t.element),this.identityProvider){const e=this.identityProvider.getId(t.element).toString();n.has(e)||this.nodesByIdentity.delete(e)}i.onDidDeleteNode?.(t)}})}preserveCollapseState(e=S.f.empty()){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),S.f.map(e,(e=>{let t=this.nodes.get(e.element);if(!t&&this.identityProvider){const i=this.identityProvider.getId(e.element).toString();t=this.nodesByIdentity.get(i)}if(!t){let t;return t="undefined"===typeof e.collapsed?void 0:e.collapsed===b.Yo.Collapsed||e.collapsed===b.Yo.PreserveOrCollapsed||e.collapsed!==b.Yo.Expanded&&e.collapsed!==b.Yo.PreserveOrExpanded&&Boolean(e.collapsed),{...e,children:this.preserveCollapseState(e.children),collapsed:t}}const i="boolean"===typeof e.collapsible?e.collapsible:t.collapsible;let s;return s="undefined"===typeof e.collapsed||e.collapsed===b.Yo.PreserveOrCollapsed||e.collapsed===b.Yo.PreserveOrExpanded?t.collapsed:e.collapsed===b.Yo.Collapsed||e.collapsed!==b.Yo.Expanded&&Boolean(e.collapsed),{...e,collapsible:i,collapsed:s,children:this.preserveCollapseState(e.children)}}))}rerender(e){const t=this.getElementLocation(e);this.model.rerender(t)}getFirstElementChild(e=null){const t=this.getElementLocation(e);return this.model.getFirstElementChild(t)}has(e){return this.nodes.has(e)}getListIndex(e){const t=this.getElementLocation(e);return this.model.getListIndex(t)}getListRenderCount(e){const t=this.getElementLocation(e);return this.model.getListRenderCount(t)}isCollapsible(e){const t=this.getElementLocation(e);return this.model.isCollapsible(t)}setCollapsible(e,t){const i=this.getElementLocation(e);return this.model.setCollapsible(i,t)}isCollapsed(e){const t=this.getElementLocation(e);return this.model.isCollapsed(t)}setCollapsed(e,t,i){const s=this.getElementLocation(e);return this.model.setCollapsed(s,t,i)}expandTo(e){const t=this.getElementLocation(e);this.model.expandTo(t)}refilter(){this.model.refilter()}getNode(e=null){if(null===e)return this.model.getNode(this.model.rootRef);const t=this.nodes.get(e);if(!t)throw new b.jh(this.user,`Tree element not found: ${e}`);return t}getNodeLocation(e){return e.element}getParentNodeLocation(e){if(null===e)throw new b.jh(this.user,"Invalid getParentNodeLocation call");const t=this.nodes.get(e);if(!t)throw new b.jh(this.user,`Tree element not found: ${e}`);const i=this.model.getNodeLocation(t),s=this.model.getParentNodeLocation(i);return this.model.getNode(s).element}getElementLocation(e){if(null===e)return[];const t=this.nodes.get(e);if(!t)throw new b.jh(this.user,`Tree element not found: ${e}`);return this.model.getNodeLocation(t)}}function w(e){return{element:{elements:[e.element],incompressible:e.incompressible||!1},children:S.f.map(S.f.from(e.children),w),collapsible:e.collapsible,collapsed:e.collapsed}}function R(e){const t=[e.element],i=e.incompressible||!1;let s,n;for(;[n,s]=S.f.consume(S.f.from(e.children),2),1===n.length&&!n[0].incompressible;)e=n[0],t.push(e.element);return{element:{elements:t,incompressible:i},children:S.f.map(S.f.concat(n,s),R),collapsible:e.collapsible,collapsed:e.collapsed}}function L(e,t=0){let i;return i=t<e.element.elements.length-1?[L(e,t+1)]:S.f.map(S.f.from(e.children),(e=>L(e,0))),0===t&&e.element.incompressible?{element:e.element.elements[t],children:i,incompressible:!0,collapsible:e.collapsible,collapsed:e.collapsed}:{element:e.element.elements[t],children:i,collapsible:e.collapsible,collapsed:e.collapsed}}function T(e){return L(e,0)}function x(e,t,i){return e.element===t?{...e,children:i}:{...e,children:S.f.map(S.f.from(e.children),(e=>x(e,t,i)))}}class k{get onDidSplice(){return this.model.onDidSplice}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get onDidChangeRenderNodeCount(){return this.model.onDidChangeRenderNodeCount}constructor(e,t,i={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.model=new y(e,t,i),this.enabled="undefined"===typeof i.compressionEnabled||i.compressionEnabled,this.identityProvider=i.identityProvider}setChildren(e,t=S.f.empty(),i){const s=i.diffIdentityProvider&&(r=i.diffIdentityProvider,{getId:e=>e.elements.map((e=>r.getId(e).toString())).join("\0")});var r;if(null===e){const e=S.f.map(t,this.enabled?R:w);return void this._setChildren(null,e,{diffIdentityProvider:s,diffDepth:1/0})}const o=this.nodes.get(e);if(!o)throw new b.jh(this.user,"Unknown compressed tree node");const a=this.model.getNode(o),c=this.model.getParentNodeLocation(o),l=this.model.getNode(c),h=x(T(a),e,t),d=(this.enabled?R:w)(h),u=i.diffIdentityProvider?(e,t)=>i.diffIdentityProvider.getId(e)===i.diffIdentityProvider.getId(t):void 0;if((0,n.aI)(d.element.elements,a.element.elements,u))return void this._setChildren(o,d.children||S.f.empty(),{diffIdentityProvider:s,diffDepth:1});const g=l.children.map((e=>e===a?d:e));this._setChildren(l.element,g,{diffIdentityProvider:s,diffDepth:a.depth-l.depth})}isCompressionEnabled(){return this.enabled}setCompressionEnabled(e){if(e===this.enabled)return;this.enabled=e;const t=this.model.getNode().children,i=S.f.map(t,T),s=S.f.map(i,e?R:w);this._setChildren(null,s,{diffIdentityProvider:this.identityProvider,diffDepth:1/0})}_setChildren(e,t,i){const s=new Set;this.model.setChildren(e,t,{...i,onDidCreateNode:e=>{for(const t of e.element.elements)s.add(t),this.nodes.set(t,e.element)},onDidDeleteNode:e=>{for(const t of e.element.elements)s.has(t)||this.nodes.delete(t)}})}has(e){return this.nodes.has(e)}getListIndex(e){const t=this.getCompressedNode(e);return this.model.getListIndex(t)}getListRenderCount(e){const t=this.getCompressedNode(e);return this.model.getListRenderCount(t)}getNode(e){if("undefined"===typeof e)return this.model.getNode();const t=this.getCompressedNode(e);return this.model.getNode(t)}getNodeLocation(e){const t=this.model.getNodeLocation(e);return null===t?null:t.elements[t.elements.length-1]}getParentNodeLocation(e){const t=this.getCompressedNode(e),i=this.model.getParentNodeLocation(t);return null===i?null:i.elements[i.elements.length-1]}getFirstElementChild(e){const t=this.getCompressedNode(e);return this.model.getFirstElementChild(t)}isCollapsible(e){const t=this.getCompressedNode(e);return this.model.isCollapsible(t)}setCollapsible(e,t){const i=this.getCompressedNode(e);return this.model.setCollapsible(i,t)}isCollapsed(e){const t=this.getCompressedNode(e);return this.model.isCollapsed(t)}setCollapsed(e,t,i){const s=this.getCompressedNode(e);return this.model.setCollapsed(s,t,i)}expandTo(e){const t=this.getCompressedNode(e);this.model.expandTo(t)}rerender(e){const t=this.getCompressedNode(e);this.model.rerender(t)}refilter(){this.model.refilter()}getCompressedNode(e){if(null===e)return null;const t=this.nodes.get(e);if(!t)throw new b.jh(this.user,`Tree element not found: ${e}`);return t}}const A=e=>e[e.length-1];class N{get element(){return null===this.node.element?null:this.unwrapper(this.node.element)}get children(){return this.node.children.map((e=>new N(this.unwrapper,e)))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}constructor(e,t){this.unwrapper=e,this.node=t}}class I{get onDidSplice(){return o.Jh.map(this.model.onDidSplice,(({insertedNodes:e,deletedNodes:t})=>({insertedNodes:e.map((e=>this.nodeMapper.map(e))),deletedNodes:t.map((e=>this.nodeMapper.map(e)))})))}get onDidChangeCollapseState(){return o.Jh.map(this.model.onDidChangeCollapseState,(({node:e,deep:t})=>({node:this.nodeMapper.map(e),deep:t})))}get onDidChangeRenderNodeCount(){return o.Jh.map(this.model.onDidChangeRenderNodeCount,(e=>this.nodeMapper.map(e)))}constructor(e,t,i={}){this.rootRef=null,this.elementMapper=i.elementMapper||A;const s=e=>this.elementMapper(e.elements);this.nodeMapper=new b.y2((e=>new N(s,e))),this.model=new k(e,function(e,t){return{splice(i,s,n){t.splice(i,s,n.map((t=>e.map(t))))},updateElementHeight(e,i){t.updateElementHeight(e,i)}}}(this.nodeMapper,t),function(e,t){return{...t,identityProvider:t.identityProvider&&{getId:i=>t.identityProvider.getId(e(i))},sorter:t.sorter&&{compare:(e,i)=>t.sorter.compare(e.elements[0],i.elements[0])},filter:t.filter&&{filter:(i,s)=>t.filter.filter(e(i),s)}}}(s,i))}setChildren(e,t=S.f.empty(),i={}){this.model.setChildren(e,t,i)}isCompressionEnabled(){return this.model.isCompressionEnabled()}setCompressionEnabled(e){this.model.setCompressionEnabled(e)}has(e){return this.model.has(e)}getListIndex(e){return this.model.getListIndex(e)}getListRenderCount(e){return this.model.getListRenderCount(e)}getNode(e){return this.nodeMapper.map(this.model.getNode(e))}getNodeLocation(e){return e.element}getParentNodeLocation(e){return this.model.getParentNodeLocation(e)}getFirstElementChild(e){const t=this.model.getFirstElementChild(e);return null===t||"undefined"===typeof t?t:this.elementMapper(t.elements)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,t){return this.model.setCollapsible(e,t)}isCollapsed(e){return this.model.isCollapsed(e)}setCollapsed(e,t,i){return this.model.setCollapsed(e,t,i)}expandTo(e){return this.model.expandTo(e)}rerender(e){return this.model.rerender(e)}refilter(){return this.model.refilter()}getCompressedTreeNode(e=null){return this.model.getNode(e)}}var O=i(58694),D=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class M extends v.DO{get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}constructor(e,t,i,s,n={}){super(e,t,i,s,n),this.user=e}setChildren(e,t=S.f.empty(),i){this.model.setChildren(e,t,i)}rerender(e){void 0!==e?this.model.rerender(e):this.view.rerender()}hasElement(e){return this.model.has(e)}createModel(e,t,i){return new y(e,t,i)}}class P{get compressedTreeNodeProvider(){return this._compressedTreeNodeProvider()}constructor(e,t,i){this._compressedTreeNodeProvider=e,this.stickyScrollDelegate=t,this.renderer=i,this.templateId=i.templateId,i.onDidChangeTwistieState&&(this.onDidChangeTwistieState=i.onDidChangeTwistieState)}renderTemplate(e){return{compressedTreeNode:void 0,data:this.renderer.renderTemplate(e)}}renderElement(e,t,i,s){let n=this.stickyScrollDelegate.getCompressedNode(e);n||(n=this.compressedTreeNodeProvider.getCompressedTreeNode(e.element)),1===n.element.elements.length?(i.compressedTreeNode=void 0,this.renderer.renderElement(e,t,i.data,s)):(i.compressedTreeNode=n,this.renderer.renderCompressedElements(n,t,i.data,s))}disposeElement(e,t,i,s){i.compressedTreeNode?this.renderer.disposeCompressedElements?.(i.compressedTreeNode,t,i.data,s):this.renderer.disposeElement?.(e,t,i.data,s)}disposeTemplate(e){this.renderer.disposeTemplate(e.data)}renderTwistie(e,t){return!!this.renderer.renderTwistie&&this.renderer.renderTwistie(e,t)}}D([O.B],P.prototype,"compressedTreeNodeProvider",null);class F{constructor(e){this.modelProvider=e,this.compressedStickyNodes=new Map}getCompressedNode(e){return this.compressedStickyNodes.get(e)}constrainStickyScrollNodes(e,t,i){if(this.compressedStickyNodes.clear(),0===e.length)return[];for(let s=0;s<e.length;s++){const n=e[s],r=n.position+n.height;if(s+1<e.length&&r+e[s+1].height>i||s>=t-1&&t<e.length){const t=e.slice(0,s),i=e.slice(s);return[...t,this.compressStickyNodes(i)]}}return e}compressStickyNodes(e){if(0===e.length)throw new Error("Can't compress empty sticky nodes");const t=this.modelProvider();if(!t.isCompressionEnabled())return e[0];const i=[];for(let c=0;c<e.length;c++){const s=e[c],n=t.getCompressedTreeNode(s.node.element);if(n.element){if(0!==c&&n.element.incompressible)break;i.push(...n.element.elements)}}if(i.length<2)return e[0];const s=e[e.length-1],n={elements:i,incompressible:!1},r={...s.node,children:[],element:n},o=new Proxy(e[0].node,{}),a={node:o,startIndex:e[0].startIndex,endIndex:s.endIndex,position:e[0].position,height:e[0].height};return this.compressedStickyNodes.set(o,r),a}}function U(e,t){return t&&{...t,keyboardNavigationLabelProvider:t.keyboardNavigationLabelProvider&&{getKeyboardNavigationLabel(i){let s;try{s=e().getCompressedTreeNode(i)}catch{return t.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(i)}return 1===s.element.elements.length?t.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(i):t.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(s.element.elements)}}}}class H extends M{constructor(e,t,i,s,n={}){const r=()=>this,o=new F((()=>this.model));super(e,t,i,s.map((e=>new P(r,o,e))),{...U(r,n),stickyScrollDelegate:o})}setChildren(e,t=S.f.empty(),i){this.model.setChildren(e,t,i)}createModel(e,t,i){return new I(e,t,i)}updateOptions(e={}){super.updateOptions(e),"undefined"!==typeof e.compressionEnabled&&this.model.setCompressionEnabled(e.compressionEnabled)}getCompressedTreeNode(e=null){return this.model.getCompressedTreeNode(e)}}var B=i(90766),W=i(10350),V=i(25689),z=i(64383),G=i(631);function j(e){return{...e,children:[],refreshPromise:void 0,stale:!0,slow:!1,forceExpanded:!1}}function K(e,t){return!!t.parent&&(t.parent===e||K(e,t.parent))}class Y{get element(){return this.node.element.element}get children(){return this.node.children.map((e=>new Y(e)))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}constructor(e){this.node=e}}class q{constructor(e,t,i){this.renderer=e,this.nodeMapper=t,this.onDidChangeTwistieState=i,this.renderedNodes=new Map,this.templateId=e.templateId}renderTemplate(e){return{templateData:this.renderer.renderTemplate(e)}}renderElement(e,t,i,s){this.renderer.renderElement(this.nodeMapper.map(e),t,i.templateData,s)}renderTwistie(e,t){return e.slow?(t.classList.add(...V.L.asClassNameArray(W.W.treeItemLoading)),!0):(t.classList.remove(...V.L.asClassNameArray(W.W.treeItemLoading)),!1)}disposeElement(e,t,i,s){this.renderer.disposeElement?.(this.nodeMapper.map(e),t,i.templateData,s)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear()}}function $(e){return{browserEvent:e.browserEvent,elements:e.elements.map((e=>e.element))}}function Q(e){return{browserEvent:e.browserEvent,element:e.element&&e.element.element,target:e.target}}class X extends C.ur{constructor(e){super(e.elements.map((e=>e.element))),this.data=e}}function Z(e){return e instanceof C.ur?new X(e):e}class J{constructor(e){this.dnd=e}getDragURI(e){return this.dnd.getDragURI(e.element)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map((e=>e.element)),t)}onDragStart(e,t){this.dnd.onDragStart?.(Z(e),t)}onDragOver(e,t,i,s,n,r=!0){return this.dnd.onDragOver(Z(e),t&&t.element,i,s,n)}drop(e,t,i,s,n){this.dnd.drop(Z(e),t&&t.element,i,s,n)}onDragEnd(e){this.dnd.onDragEnd?.(e)}dispose(){this.dnd.dispose()}}function ee(e){return e&&{...e,collapseByDefault:!0,identityProvider:e.identityProvider&&{getId:t=>e.identityProvider.getId(t.element)},dnd:e.dnd&&new J(e.dnd),multipleSelectionController:e.multipleSelectionController&&{isSelectionSingleChangeEvent:t=>e.multipleSelectionController.isSelectionSingleChangeEvent({...t,element:t.element}),isSelectionRangeChangeEvent:t=>e.multipleSelectionController.isSelectionRangeChangeEvent({...t,element:t.element})},accessibilityProvider:e.accessibilityProvider&&{...e.accessibilityProvider,getPosInSet:void 0,getSetSize:void 0,getRole:e.accessibilityProvider.getRole?t=>e.accessibilityProvider.getRole(t.element):()=>"treeitem",isChecked:e.accessibilityProvider.isChecked?t=>!!e.accessibilityProvider?.isChecked(t.element):void 0,getAriaLabel:t=>e.accessibilityProvider.getAriaLabel(t.element),getWidgetAriaLabel:()=>e.accessibilityProvider.getWidgetAriaLabel(),getWidgetRole:e.accessibilityProvider.getWidgetRole?()=>e.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:e.accessibilityProvider.getAriaLevel&&(t=>e.accessibilityProvider.getAriaLevel(t.element)),getActiveDescendantId:e.accessibilityProvider.getActiveDescendantId&&(t=>e.accessibilityProvider.getActiveDescendantId(t.element))},filter:e.filter&&{filter:(t,i)=>e.filter.filter(t.element,i)},keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&{...e.keyboardNavigationLabelProvider,getKeyboardNavigationLabel:t=>e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t.element)},sorter:void 0,expandOnlyOnTwistieClick:"undefined"===typeof e.expandOnlyOnTwistieClick?void 0:"function"!==typeof e.expandOnlyOnTwistieClick?e.expandOnlyOnTwistieClick:t=>e.expandOnlyOnTwistieClick(t.element),defaultFindVisibility:t=>t.hasChildren&&t.stale?1:"number"===typeof e.defaultFindVisibility?e.defaultFindVisibility:"undefined"===typeof e.defaultFindVisibility?2:e.defaultFindVisibility(t.element)}}function te(e,t){t(e),e.children.forEach((e=>te(e,t)))}class ie{get onDidScroll(){return this.tree.onDidScroll}get onDidChangeFocus(){return o.Jh.map(this.tree.onDidChangeFocus,$)}get onDidChangeSelection(){return o.Jh.map(this.tree.onDidChangeSelection,$)}get onMouseDblClick(){return o.Jh.map(this.tree.onMouseDblClick,Q)}get onPointer(){return o.Jh.map(this.tree.onPointer,Q)}get onDidFocus(){return this.tree.onDidFocus}get onDidChangeModel(){return this.tree.onDidChangeModel}get onDidChangeCollapseState(){return this.tree.onDidChangeCollapseState}get onDidChangeFindOpenState(){return this.tree.onDidChangeFindOpenState}get onDidChangeStickyScrollFocused(){return this.tree.onDidChangeStickyScrollFocused}get onDidDispose(){return this.tree.onDidDispose}constructor(e,t,i,s,n,r={}){this.user=e,this.dataSource=n,this.nodes=new Map,this.subTreeRefreshPromises=new Map,this.refreshPromises=new Map,this._onDidRender=new o.vl,this._onDidChangeNodeSlowState=new o.vl,this.nodeMapper=new b.y2((e=>new Y(e))),this.disposables=new a.Cm,this.identityProvider=r.identityProvider,this.autoExpandSingleChildren="undefined"!==typeof r.autoExpandSingleChildren&&r.autoExpandSingleChildren,this.sorter=r.sorter,this.getDefaultCollapseState=e=>r.collapseByDefault?r.collapseByDefault(e)?b.Yo.PreserveOrCollapsed:b.Yo.PreserveOrExpanded:void 0,this.tree=this.createTree(e,t,i,s,r),this.onDidChangeFindMode=this.tree.onDidChangeFindMode,this.onDidChangeFindMatchType=this.tree.onDidChangeFindMatchType,this.root=j({element:void 0,parent:null,hasChildren:!0,defaultCollapseState:void 0}),this.identityProvider&&(this.root={...this.root,id:null}),this.nodes.set(null,this.root),this.tree.onDidChangeCollapseState(this._onDidChangeCollapseState,this,this.disposables)}createTree(e,t,i,s,n){const r=new v.w0(i),o=s.map((e=>new q(e,this.nodeMapper,this._onDidChangeNodeSlowState.event))),a=ee(n)||{};return new M(e,t,r,o,a)}updateOptions(e={}){this.tree.updateOptions(e)}getHTMLElement(){return this.tree.getHTMLElement()}get scrollTop(){return this.tree.scrollTop}set scrollTop(e){this.tree.scrollTop=e}get scrollHeight(){return this.tree.scrollHeight}get renderHeight(){return this.tree.renderHeight}domFocus(){this.tree.domFocus()}layout(e,t){this.tree.layout(e,t)}style(e){this.tree.style(e)}getInput(){return this.root.element}async setInput(e,t){this.refreshPromises.forEach((e=>e.cancel())),this.refreshPromises.clear(),this.root.element=e;const i=t&&{viewState:t,focus:[],selection:[]};await this._updateChildren(e,!0,!1,i),i&&(this.tree.setFocus(i.focus),this.tree.setSelection(i.selection)),t&&"number"===typeof t.scrollTop&&(this.scrollTop=t.scrollTop)}async _updateChildren(e=this.root.element,t=!0,i=!1,s,n){if("undefined"===typeof this.root.element)throw new b.jh(this.user,"Tree input not set");this.root.refreshPromise&&(await this.root.refreshPromise,await o.Jh.toPromise(this._onDidRender.event));const r=this.getDataNode(e);if(await this.refreshAndRenderNode(r,t,s,n),i)try{this.tree.rerender(r)}catch{}}rerender(e){if(void 0===e||e===this.root.element)return void this.tree.rerender();const t=this.getDataNode(e);this.tree.rerender(t)}getNode(e=this.root.element){const t=this.getDataNode(e),i=this.tree.getNode(t===this.root?null:t);return this.nodeMapper.map(i)}collapse(e,t=!1){const i=this.getDataNode(e);return this.tree.collapse(i===this.root?null:i,t)}async expand(e,t=!1){if("undefined"===typeof this.root.element)throw new b.jh(this.user,"Tree input not set");this.root.refreshPromise&&(await this.root.refreshPromise,await o.Jh.toPromise(this._onDidRender.event));const i=this.getDataNode(e);if(this.tree.hasElement(i)&&!this.tree.isCollapsible(i))return!1;if(i.refreshPromise&&(await this.root.refreshPromise,await o.Jh.toPromise(this._onDidRender.event)),i!==this.root&&!i.refreshPromise&&!this.tree.isCollapsed(i))return!1;const s=this.tree.expand(i===this.root?null:i,t);return i.refreshPromise&&(await this.root.refreshPromise,await o.Jh.toPromise(this._onDidRender.event)),s}setSelection(e,t){const i=e.map((e=>this.getDataNode(e)));this.tree.setSelection(i,t)}getSelection(){return this.tree.getSelection().map((e=>e.element))}setFocus(e,t){const i=e.map((e=>this.getDataNode(e)));this.tree.setFocus(i,t)}getFocus(){return this.tree.getFocus().map((e=>e.element))}reveal(e,t){this.tree.reveal(this.getDataNode(e),t)}getParentElement(e){const t=this.tree.getParentElement(this.getDataNode(e));return t&&t.element}getFirstElementChild(e=this.root.element){const t=this.getDataNode(e),i=this.tree.getFirstElementChild(t===this.root?null:t);return i&&i.element}getDataNode(e){const t=this.nodes.get(e===this.root.element?null:e);if(!t)throw new b.jh(this.user,`Data tree node not found: ${e}`);return t}async refreshAndRenderNode(e,t,i,s){await this.refreshNode(e,t,i),this.disposables.isDisposed||this.render(e,i,s)}async refreshNode(e,t,i){let s;if(this.subTreeRefreshPromises.forEach(((n,r)=>{!s&&function(e,t){return e===t||K(e,t)||K(t,e)}(r,e)&&(s=n.then((()=>this.refreshNode(e,t,i))))})),s)return s;if(e!==this.root){if(this.tree.getNode(e).collapsed)return e.hasChildren=!!this.dataSource.hasChildren(e.element),e.stale=!0,void this.setChildren(e,[],t,i)}return this.doRefreshSubTree(e,t,i)}async doRefreshSubTree(e,t,i){let s;e.refreshPromise=new Promise((e=>s=e)),this.subTreeRefreshPromises.set(e,e.refreshPromise),e.refreshPromise.finally((()=>{e.refreshPromise=void 0,this.subTreeRefreshPromises.delete(e)}));try{const s=await this.doRefreshNode(e,t,i);e.stale=!1,await B.HC.settled(s.map((e=>this.doRefreshSubTree(e,t,i))))}finally{s()}}async doRefreshNode(e,t,i){let s;if(e.hasChildren=!!this.dataSource.hasChildren(e.element),e.hasChildren){const t=this.doGetChildren(e);if((0,G.xZ)(t))s=Promise.resolve(t);else{const i=(0,B.wR)(800);i.then((()=>{e.slow=!0,this._onDidChangeNodeSlowState.fire(e)}),(e=>null)),s=t.finally((()=>i.cancel()))}}else s=Promise.resolve(S.f.empty());try{const n=await s;return this.setChildren(e,n,t,i)}catch(n){if(e!==this.root&&this.tree.hasElement(e)&&this.tree.collapse(e),(0,z.MB)(n))return[];throw n}finally{e.slow&&(e.slow=!1,this._onDidChangeNodeSlowState.fire(e))}}doGetChildren(e){let t=this.refreshPromises.get(e);if(t)return t;const i=this.dataSource.getChildren(e.element);return(0,G.xZ)(i)?this.processChildren(i):(t=(0,B.SS)((async()=>this.processChildren(await i))),this.refreshPromises.set(e,t),t.finally((()=>{this.refreshPromises.delete(e)})))}_onDidChangeCollapseState({node:e,deep:t}){null!==e.element&&!e.collapsed&&e.element.stale&&(t?this.collapse(e.element.element):this.refreshAndRenderNode(e.element,!1).catch(z.dz))}setChildren(e,t,i,s){const n=[...t];if(0===e.children.length&&0===n.length)return[];const r=new Map,o=new Map;for(const l of e.children)r.set(l.element,l),this.identityProvider&&o.set(l.id,{node:l,collapsed:this.tree.hasElement(l)&&this.tree.isCollapsed(l)});const a=[],c=n.map((t=>{const n=!!this.dataSource.hasChildren(t);if(!this.identityProvider){const i=j({element:t,parent:e,hasChildren:n,defaultCollapseState:this.getDefaultCollapseState(t)});return n&&i.defaultCollapseState===b.Yo.PreserveOrExpanded&&a.push(i),i}const c=this.identityProvider.getId(t).toString(),l=o.get(c);if(l){const e=l.node;return r.delete(e.element),this.nodes.delete(e.element),this.nodes.set(t,e),e.element=t,e.hasChildren=n,i?l.collapsed?(e.children.forEach((e=>te(e,(e=>this.nodes.delete(e.element))))),e.children.splice(0,e.children.length),e.stale=!0):a.push(e):n&&!l.collapsed&&a.push(e),e}const h=j({element:t,parent:e,id:c,hasChildren:n,defaultCollapseState:this.getDefaultCollapseState(t)});return s&&s.viewState.focus&&s.viewState.focus.indexOf(c)>-1&&s.focus.push(h),s&&s.viewState.selection&&s.viewState.selection.indexOf(c)>-1&&s.selection.push(h),(s&&s.viewState.expanded&&s.viewState.expanded.indexOf(c)>-1||n&&h.defaultCollapseState===b.Yo.PreserveOrExpanded)&&a.push(h),h}));for(const l of r.values())te(l,(e=>this.nodes.delete(e.element)));for(const l of c)this.nodes.set(l.element,l);return e.children.splice(0,e.children.length,...c),e!==this.root&&this.autoExpandSingleChildren&&1===c.length&&0===a.length&&(c[0].forceExpanded=!0,a.push(c[0])),a}render(e,t,i){const s=e.children.map((e=>this.asTreeElement(e,t))),n=i&&{...i,diffIdentityProvider:i.diffIdentityProvider&&{getId:e=>i.diffIdentityProvider.getId(e.element)}};this.tree.setChildren(e===this.root?null:e,s,n),e!==this.root&&this.tree.setCollapsible(e,e.hasChildren),this._onDidRender.fire()}asTreeElement(e,t){if(e.stale)return{element:e,collapsible:e.hasChildren,collapsed:!0};let i;return t&&t.viewState.expanded&&e.id&&t.viewState.expanded.indexOf(e.id)>-1?i=!1:e.forceExpanded?(i=!1,e.forceExpanded=!1):i=e.defaultCollapseState,{element:e,children:e.hasChildren?S.f.map(e.children,(e=>this.asTreeElement(e,t))):[],collapsible:e.hasChildren,collapsed:i}}processChildren(e){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),e}dispose(){this.disposables.dispose(),this.tree.dispose()}}class se{get element(){return{elements:this.node.element.elements.map((e=>e.element)),incompressible:this.node.element.incompressible}}get children(){return this.node.children.map((e=>new se(e)))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}constructor(e){this.node=e}}class ne{constructor(e,t,i,s){this.renderer=e,this.nodeMapper=t,this.compressibleNodeMapperProvider=i,this.onDidChangeTwistieState=s,this.renderedNodes=new Map,this.disposables=[],this.templateId=e.templateId}renderTemplate(e){return{templateData:this.renderer.renderTemplate(e)}}renderElement(e,t,i,s){this.renderer.renderElement(this.nodeMapper.map(e),t,i.templateData,s)}renderCompressedElements(e,t,i,s){this.renderer.renderCompressedElements(this.compressibleNodeMapperProvider().map(e),t,i.templateData,s)}renderTwistie(e,t){return e.slow?(t.classList.add(...V.L.asClassNameArray(W.W.treeItemLoading)),!0):(t.classList.remove(...V.L.asClassNameArray(W.W.treeItemLoading)),!1)}disposeElement(e,t,i,s){this.renderer.disposeElement?.(this.nodeMapper.map(e),t,i.templateData,s)}disposeCompressedElements(e,t,i,s){this.renderer.disposeCompressedElements?.(this.compressibleNodeMapperProvider().map(e),t,i.templateData,s)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear(),this.disposables=(0,a.AS)(this.disposables)}}class re extends ie{constructor(e,t,i,s,n,r,o={}){super(e,t,i,n,r,o),this.compressionDelegate=s,this.compressibleNodeMapper=new b.y2((e=>new se(e))),this.filter=o.filter}createTree(e,t,i,s,n){const r=new v.w0(i),o=s.map((e=>new ne(e,this.nodeMapper,(()=>this.compressibleNodeMapper),this._onDidChangeNodeSlowState.event))),a=function(e){const t=e&&ee(e);return t&&{...t,keyboardNavigationLabelProvider:t.keyboardNavigationLabelProvider&&{...t.keyboardNavigationLabelProvider,getCompressedNodeKeyboardNavigationLabel:t=>e.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(t.map((e=>e.element)))}}}(n)||{};return new H(e,t,r,o,a)}asTreeElement(e,t){return{incompressible:this.compressionDelegate.isIncompressible(e.element),...super.asTreeElement(e,t)}}updateOptions(e={}){this.tree.updateOptions(e)}render(e,t,i){if(!this.identityProvider)return super.render(e,t);const s=e=>this.identityProvider.getId(e).toString(),n=e=>{const t=new Set;for(const i of e){const e=this.tree.getCompressedTreeNode(i===this.root?null:i);if(e.element)for(const i of e.element.elements)t.add(s(i.element))}return t},r=n(this.tree.getSelection()),o=n(this.tree.getFocus());super.render(e,t,i);const a=this.getSelection();let c=!1;const l=this.getFocus();let h=!1;const d=e=>{const t=e.element;if(t)for(let i=0;i<t.elements.length;i++){const e=s(t.elements[i].element),n=t.elements[t.elements.length-1].element;r.has(e)&&-1===a.indexOf(n)&&(a.push(n),c=!0),o.has(e)&&-1===l.indexOf(n)&&(l.push(n),h=!0)}e.children.forEach(d)};d(this.tree.getCompressedTreeNode(e===this.root?null:e)),c&&this.setSelection(a),h&&this.setFocus(l)}processChildren(e){return this.filter&&(e=S.f.filter(e,(e=>{const t=this.filter.filter(e,1),i="boolean"===typeof(s=t)?s?1:0:(0,E.iZ)(s)?(0,E.Mn)(s.visibility):(0,E.Mn)(s);var s;if(2===i)throw new Error("Recursive tree visibility not supported in async data compressed trees");return 1===i}))),super.processChildren(e)}}class oe extends v.DO{constructor(e,t,i,s,n,r={}){super(e,t,i,s,r),this.user=e,this.dataSource=n,this.identityProvider=r.identityProvider}createModel(e,t,i){return new y(e,t,i)}}var ae=i(78209),ce=i(84001),le=i(1646),he=i(32848),de=i(28290),ue=i(47508),ge=i(63591),pe=i(98031),me=i(46359),fe=i(19070),_e=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},ve=function(e,t){return function(i,s){t(i,s,e)}};const Ce=(0,ge.u1)("listService");class Ee{get lastFocusedList(){return this._lastFocusedWidget}constructor(){this.disposables=new a.Cm,this.lists=[],this._lastFocusedWidget=void 0,this._hasCreatedStyleController=!1}setLastFocusedList(e){e!==this._lastFocusedWidget&&(this._lastFocusedWidget?.getHTMLElement().classList.remove("last-focused"),this._lastFocusedWidget=e,this._lastFocusedWidget?.getHTMLElement().classList.add("last-focused"))}register(e,t){if(!this._hasCreatedStyleController){this._hasCreatedStyleController=!0;new c.hb((0,s.li)(),"").style(fe.IN)}if(this.lists.some((t=>t.widget===e)))throw new Error("Cannot register the same widget multiple times");const i={widget:e,extraContextKeys:t};return this.lists.push(i),(0,s.X7)(e.getHTMLElement())&&this.setLastFocusedList(e),(0,a.qE)(e.onDidFocus((()=>this.setLastFocusedList(e))),(0,a.s)((()=>this.lists.splice(this.lists.indexOf(i),1))),e.onDidDispose((()=>{this.lists=this.lists.filter((e=>e!==i)),this._lastFocusedWidget===e&&this.setLastFocusedList(void 0)})))}dispose(){this.disposables.dispose()}}const be=new he.N1("listScrollAtBoundary","none"),Se=(he.M$.or(be.isEqualTo("top"),be.isEqualTo("both")),he.M$.or(be.isEqualTo("bottom"),be.isEqualTo("both")),new he.N1("listFocus",!0)),ye=new he.N1("treestickyScrollFocused",!1),we=new he.N1("listSupportsMultiselect",!0),Re=he.M$.and(Se,he.M$.not(de.aV),ye.negate()),Le=new he.N1("listHasSelectionOrFocus",!1),Te=new he.N1("listDoubleSelection",!1),xe=new he.N1("listMultiSelection",!1),ke=new he.N1("listSelectionNavigation",!1),Ae=new he.N1("listSupportsFind",!0),Ne=new he.N1("treeElementCanCollapse",!1),Ie=new he.N1("treeElementHasParent",!1),Oe=new he.N1("treeElementCanExpand",!1),De=new he.N1("treeElementHasChild",!1),Me=new he.N1("treeFindOpen",!1),Pe="listTypeNavigationMode",Fe="listAutomaticKeyboardNavigation";function Ue(e,t){const i=e.createScoped(t.getHTMLElement());return Se.bindTo(i),i}function He(e,t){const i=be.bindTo(e),s=()=>{const e=0===t.scrollTop,s=t.scrollHeight-t.renderHeight-t.scrollTop<1;e&&s?i.set("both"):e?i.set("top"):s?i.set("bottom"):i.set("none")};return s(),t.onDidScroll(s)}const Be="workbench.list.multiSelectModifier",We="workbench.list.openMode",Ve="workbench.list.horizontalScrolling",ze="workbench.list.defaultFindMode",Ge="workbench.list.typeNavigationMode",je="workbench.list.keyboardNavigation",Ke="workbench.list.scrollByPage",Ye="workbench.list.defaultFindMatchType",qe="workbench.tree.indent",$e="workbench.tree.renderIndentGuides",Qe="workbench.list.smoothScrolling",Xe="workbench.list.mouseWheelScrollSensitivity",Ze="workbench.list.fastScrollSensitivity",Je="workbench.tree.expandMode",et="workbench.tree.enableStickyScroll",tt="workbench.tree.stickyScrollMaxItemCount";function it(e){return"alt"===e.getValue(Be)}class st extends a.jG{constructor(e){super(),this.configurationService=e,this.useAltAsMultipleSelectionModifier=it(e),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration(Be)&&(this.useAltAsMultipleSelectionModifier=it(this.configurationService))})))}isSelectionSingleChangeEvent(e){return this.useAltAsMultipleSelectionModifier?e.browserEvent.altKey:(0,c.tX)(e)}isSelectionRangeChangeEvent(e){return(0,c.mh)(e)}}function nt(e,t){const i=e.get(ce.pG),s=e.get(pe.b),n=new a.Cm;return[{...t,keyboardNavigationDelegate:{mightProducePrintableCharacter:e=>s.mightProducePrintableCharacter(e)},smoothScrolling:Boolean(i.getValue(Qe)),mouseWheelScrollSensitivity:i.getValue(Xe),fastScrollSensitivity:i.getValue(Ze),multipleSelectionController:t.multipleSelectionController??n.add(new st(i)),keyboardNavigationEventFilter:ut(s),scrollByPage:Boolean(i.getValue(Ke))},n]}let rt=class extends c.B8{constructor(e,t,i,s,n,r,o,a,c){const l="undefined"!==typeof n.horizontalScrolling?n.horizontalScrolling:Boolean(a.getValue(Ve)),[h,d]=c.invokeFunction(nt,n);super(e,t,i,s,{keyboardSupport:!1,...h,horizontalScrolling:l}),this.disposables.add(d),this.contextKeyService=Ue(r,this),this.disposables.add(He(this.contextKeyService,this)),this.listSupportsMultiSelect=we.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==n.multipleSelectionSupport);ke.bindTo(this.contextKeyService).set(Boolean(n.selectionNavigation)),this.listHasSelectionOrFocus=Le.bindTo(this.contextKeyService),this.listDoubleSelection=Te.bindTo(this.contextKeyService),this.listMultiSelection=xe.bindTo(this.contextKeyService),this.horizontalScrolling=n.horizontalScrolling,this._useAltAsMultipleSelectionModifier=it(a),this.disposables.add(this.contextKeyService),this.disposables.add(o.register(this)),this.updateStyles(n.overrideStyles),this.disposables.add(this.onDidChangeSelection((()=>{const e=this.getSelection(),t=this.getFocus();this.contextKeyService.bufferChangeEvents((()=>{this.listHasSelectionOrFocus.set(e.length>0||t.length>0),this.listMultiSelection.set(e.length>1),this.listDoubleSelection.set(2===e.length)}))}))),this.disposables.add(this.onDidChangeFocus((()=>{const e=this.getSelection(),t=this.getFocus();this.listHasSelectionOrFocus.set(e.length>0||t.length>0)}))),this.disposables.add(a.onDidChangeConfiguration((e=>{e.affectsConfiguration(Be)&&(this._useAltAsMultipleSelectionModifier=it(a));let t={};if(e.affectsConfiguration(Ve)&&void 0===this.horizontalScrolling){const e=Boolean(a.getValue(Ve));t={...t,horizontalScrolling:e}}if(e.affectsConfiguration(Ke)){const e=Boolean(a.getValue(Ke));t={...t,scrollByPage:e}}if(e.affectsConfiguration(Qe)){const e=Boolean(a.getValue(Qe));t={...t,smoothScrolling:e}}if(e.affectsConfiguration(Xe)){const e=a.getValue(Xe);t={...t,mouseWheelScrollSensitivity:e}}if(e.affectsConfiguration(Ze)){const e=a.getValue(Ze);t={...t,fastScrollSensitivity:e}}Object.keys(t).length>0&&this.updateOptions(t)}))),this.navigator=new lt(this,{configurationService:a,...n}),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),void 0!==e.overrideStyles&&this.updateStyles(e.overrideStyles),void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){this.style(e?(0,fe.t8)(e):fe.IN)}};rt=_e([ve(5,he.fN),ve(6,Ce),ve(7,ce.pG),ve(8,ge._Y)],rt);let ot=class extends d{constructor(e,t,i,s,n,r,o,c,l){const h="undefined"!==typeof n.horizontalScrolling?n.horizontalScrolling:Boolean(c.getValue(Ve)),[d,u]=l.invokeFunction(nt,n);super(e,t,i,s,{keyboardSupport:!1,...d,horizontalScrolling:h}),this.disposables=new a.Cm,this.disposables.add(u),this.contextKeyService=Ue(r,this),this.disposables.add(He(this.contextKeyService,this.widget)),this.horizontalScrolling=n.horizontalScrolling,this.listSupportsMultiSelect=we.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==n.multipleSelectionSupport);ke.bindTo(this.contextKeyService).set(Boolean(n.selectionNavigation)),this._useAltAsMultipleSelectionModifier=it(c),this.disposables.add(this.contextKeyService),this.disposables.add(o.register(this)),this.updateStyles(n.overrideStyles),this.disposables.add(c.onDidChangeConfiguration((e=>{e.affectsConfiguration(Be)&&(this._useAltAsMultipleSelectionModifier=it(c));let t={};if(e.affectsConfiguration(Ve)&&void 0===this.horizontalScrolling){const e=Boolean(c.getValue(Ve));t={...t,horizontalScrolling:e}}if(e.affectsConfiguration(Ke)){const e=Boolean(c.getValue(Ke));t={...t,scrollByPage:e}}if(e.affectsConfiguration(Qe)){const e=Boolean(c.getValue(Qe));t={...t,smoothScrolling:e}}if(e.affectsConfiguration(Xe)){const e=c.getValue(Xe);t={...t,mouseWheelScrollSensitivity:e}}if(e.affectsConfiguration(Ze)){const e=c.getValue(Ze);t={...t,fastScrollSensitivity:e}}Object.keys(t).length>0&&this.updateOptions(t)}))),this.navigator=new lt(this,{configurationService:c,...n}),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),void 0!==e.overrideStyles&&this.updateStyles(e.overrideStyles),void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){this.style(e?(0,fe.t8)(e):fe.IN)}dispose(){this.disposables.dispose(),super.dispose()}};ot=_e([ve(5,he.fN),ve(6,Ce),ve(7,ce.pG),ve(8,ge._Y)],ot);let at=class extends _{constructor(e,t,i,s,n,r,o,a,c,l){const h="undefined"!==typeof r.horizontalScrolling?r.horizontalScrolling:Boolean(c.getValue(Ve)),[d,u]=l.invokeFunction(nt,r);super(e,t,i,s,n,{keyboardSupport:!1,...d,horizontalScrolling:h}),this.disposables.add(u),this.contextKeyService=Ue(o,this),this.disposables.add(He(this.contextKeyService,this)),this.listSupportsMultiSelect=we.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==r.multipleSelectionSupport);ke.bindTo(this.contextKeyService).set(Boolean(r.selectionNavigation)),this.listHasSelectionOrFocus=Le.bindTo(this.contextKeyService),this.listDoubleSelection=Te.bindTo(this.contextKeyService),this.listMultiSelection=xe.bindTo(this.contextKeyService),this.horizontalScrolling=r.horizontalScrolling,this._useAltAsMultipleSelectionModifier=it(c),this.disposables.add(this.contextKeyService),this.disposables.add(a.register(this)),this.updateStyles(r.overrideStyles),this.disposables.add(this.onDidChangeSelection((()=>{const e=this.getSelection(),t=this.getFocus();this.contextKeyService.bufferChangeEvents((()=>{this.listHasSelectionOrFocus.set(e.length>0||t.length>0),this.listMultiSelection.set(e.length>1),this.listDoubleSelection.set(2===e.length)}))}))),this.disposables.add(this.onDidChangeFocus((()=>{const e=this.getSelection(),t=this.getFocus();this.listHasSelectionOrFocus.set(e.length>0||t.length>0)}))),this.disposables.add(c.onDidChangeConfiguration((e=>{e.affectsConfiguration(Be)&&(this._useAltAsMultipleSelectionModifier=it(c));let t={};if(e.affectsConfiguration(Ve)&&void 0===this.horizontalScrolling){const e=Boolean(c.getValue(Ve));t={...t,horizontalScrolling:e}}if(e.affectsConfiguration(Ke)){const e=Boolean(c.getValue(Ke));t={...t,scrollByPage:e}}if(e.affectsConfiguration(Qe)){const e=Boolean(c.getValue(Qe));t={...t,smoothScrolling:e}}if(e.affectsConfiguration(Xe)){const e=c.getValue(Xe);t={...t,mouseWheelScrollSensitivity:e}}if(e.affectsConfiguration(Ze)){const e=c.getValue(Ze);t={...t,fastScrollSensitivity:e}}Object.keys(t).length>0&&this.updateOptions(t)}))),this.navigator=new ht(this,{configurationService:c,...r}),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),void 0!==e.overrideStyles&&this.updateStyles(e.overrideStyles),void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){this.style(e?(0,fe.t8)(e):fe.IN)}dispose(){this.disposables.dispose(),super.dispose()}};at=_e([ve(6,he.fN),ve(7,Ce),ve(8,ce.pG),ve(9,ge._Y)],at);class ct extends a.jG{constructor(e,t){super(),this.widget=e,this._onDidOpen=this._register(new o.vl),this.onDidOpen=this._onDidOpen.event,this._register(o.Jh.filter(this.widget.onDidChangeSelection,(e=>(0,s.kx)(e.browserEvent)))((e=>this.onSelectionFromKeyboard(e)))),this._register(this.widget.onPointer((e=>this.onPointer(e.element,e.browserEvent)))),this._register(this.widget.onMouseDblClick((e=>this.onMouseDblClick(e.element,e.browserEvent)))),"boolean"!==typeof t?.openOnSingleClick&&t?.configurationService?(this.openOnSingleClick="doubleClick"!==t?.configurationService.getValue(We),this._register(t?.configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration(We)&&(this.openOnSingleClick="doubleClick"!==t?.configurationService.getValue(We))})))):this.openOnSingleClick=t?.openOnSingleClick??!0}onSelectionFromKeyboard(e){if(1!==e.elements.length)return;const t=e.browserEvent,i="boolean"!==typeof t.preserveFocus||t.preserveFocus,s="boolean"===typeof t.pinned?t.pinned:!i;this._open(this.getSelectedElement(),i,s,!1,e.browserEvent)}onPointer(e,t){if(!this.openOnSingleClick)return;if(2===t.detail)return;const i=1===t.button,s=t.ctrlKey||t.metaKey||t.altKey;this._open(e,!0,i,s,t)}onMouseDblClick(e,t){if(!t)return;const i=t.target;if(i.classList.contains("monaco-tl-twistie")||i.classList.contains("monaco-icon-label")&&i.classList.contains("folder-icon")&&t.offsetX<16)return;const s=t.ctrlKey||t.metaKey||t.altKey;this._open(e,!1,!0,s,t)}_open(e,t,i,s,n){e&&this._onDidOpen.fire({editorOptions:{preserveFocus:t,pinned:i,revealIfVisible:!0},sideBySide:s,element:e,browserEvent:n})}}class lt extends ct{constructor(e,t){super(e,t),this.widget=e}getSelectedElement(){return this.widget.getSelectedElements()[0]}}class ht extends ct{constructor(e,t){super(e,t)}getSelectedElement(){return this.widget.getSelectedElements()[0]}}class dt extends ct{constructor(e,t){super(e,t)}getSelectedElement(){return this.widget.getSelection()[0]??void 0}}function ut(e){let t=!1;return i=>{if(i.toKeyCodeChord().isModifierKey())return!1;if(t)return t=!1,!1;const s=e.softDispatch(i,i.target);return 1===s.kind?(t=!0,!1):(t=!1,0===s.kind)}}let gt=class extends M{constructor(e,t,i,s,n,r,o,a,c){const{options:l,getTypeNavigationMode:h,disposable:d}=r.invokeFunction(Et,n);super(e,t,i,s,l),this.disposables.add(d),this.internals=new bt(this,n,h,n.overrideStyles,o,a,c),this.disposables.add(this.internals)}updateOptions(e){super.updateOptions(e),this.internals.updateOptions(e)}};gt=_e([ve(5,ge._Y),ve(6,he.fN),ve(7,Ce),ve(8,ce.pG)],gt);let pt=class extends H{constructor(e,t,i,s,n,r,o,a,c){const{options:l,getTypeNavigationMode:h,disposable:d}=r.invokeFunction(Et,n);super(e,t,i,s,l),this.disposables.add(d),this.internals=new bt(this,n,h,n.overrideStyles,o,a,c),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};pt=_e([ve(5,ge._Y),ve(6,he.fN),ve(7,Ce),ve(8,ce.pG)],pt);let mt=class extends oe{constructor(e,t,i,s,n,r,o,a,c,l){const{options:h,getTypeNavigationMode:d,disposable:u}=o.invokeFunction(Et,r);super(e,t,i,s,n,h),this.disposables.add(u),this.internals=new bt(this,r,d,r.overrideStyles,a,c,l),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),void 0!==e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};mt=_e([ve(6,ge._Y),ve(7,he.fN),ve(8,Ce),ve(9,ce.pG)],mt);let ft=class extends ie{get onDidOpen(){return this.internals.onDidOpen}constructor(e,t,i,s,n,r,o,a,c,l){const{options:h,getTypeNavigationMode:d,disposable:u}=o.invokeFunction(Et,r);super(e,t,i,s,n,h),this.disposables.add(u),this.internals=new bt(this,r,d,r.overrideStyles,a,c,l),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};ft=_e([ve(6,ge._Y),ve(7,he.fN),ve(8,Ce),ve(9,ce.pG)],ft);let _t=class extends re{constructor(e,t,i,s,n,r,o,a,c,l,h){const{options:d,getTypeNavigationMode:u,disposable:g}=a.invokeFunction(Et,o);super(e,t,i,s,n,r,d),this.disposables.add(g),this.internals=new bt(this,o,u,o.overrideStyles,c,l,h),this.disposables.add(this.internals)}updateOptions(e){super.updateOptions(e),this.internals.updateOptions(e)}};function vt(e){const t=e.getValue(ze);if("highlight"===t)return v.vD.Highlight;if("filter"===t)return v.vD.Filter;const i=e.getValue(je);return"simple"===i||"highlight"===i?v.vD.Highlight:"filter"===i?v.vD.Filter:void 0}function Ct(e){const t=e.getValue(Ye);return"fuzzy"===t?v.RD.Fuzzy:"contiguous"===t?v.RD.Contiguous:void 0}function Et(e,t){const i=e.get(ce.pG),s=e.get(ue.l),n=e.get(he.fN),r=e.get(ge._Y),o=void 0!==t.horizontalScrolling?t.horizontalScrolling:Boolean(i.getValue(Ve)),[a,l]=r.invokeFunction(nt,t),h=t.paddingBottom,d=void 0!==t.renderIndentGuides?t.renderIndentGuides:i.getValue($e);return{getTypeNavigationMode:()=>{const e=n.getContextKeyValue(Pe);if("automatic"===e)return c._C.Automatic;if("trigger"===e)return c._C.Trigger;if(!1===n.getContextKeyValue(Fe))return c._C.Trigger;const t=i.getValue(Ge);return"automatic"===t?c._C.Automatic:"trigger"===t?c._C.Trigger:void 0},disposable:l,options:{keyboardSupport:!1,...a,indent:"number"===typeof i.getValue(qe)?i.getValue(qe):void 0,renderIndentGuides:d,smoothScrolling:Boolean(i.getValue(Qe)),defaultFindMode:vt(i),defaultFindMatchType:Ct(i),horizontalScrolling:o,scrollByPage:Boolean(i.getValue(Ke)),paddingBottom:h,hideTwistiesOfChildlessElements:t.hideTwistiesOfChildlessElements,expandOnlyOnTwistieClick:t.expandOnlyOnTwistieClick??"doubleClick"===i.getValue(Je),contextViewProvider:s,findWidgetStyles:fe.Dk,enableStickyScroll:Boolean(i.getValue(et)),stickyScrollMaxItemCount:Number(i.getValue(tt))}}}_t=_e([ve(7,ge._Y),ve(8,he.fN),ve(9,Ce),ve(10,ce.pG)],_t);let bt=class{get onDidOpen(){return this.navigator.onDidOpen}constructor(e,t,i,s,n,r,o){this.tree=e,this.disposables=[],this.contextKeyService=Ue(n,e),this.disposables.push(He(this.contextKeyService,e)),this.listSupportsMultiSelect=we.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==t.multipleSelectionSupport);ke.bindTo(this.contextKeyService).set(Boolean(t.selectionNavigation)),this.listSupportFindWidget=Ae.bindTo(this.contextKeyService),this.listSupportFindWidget.set(t.findWidgetEnabled??!0),this.hasSelectionOrFocus=Le.bindTo(this.contextKeyService),this.hasDoubleSelection=Te.bindTo(this.contextKeyService),this.hasMultiSelection=xe.bindTo(this.contextKeyService),this.treeElementCanCollapse=Ne.bindTo(this.contextKeyService),this.treeElementHasParent=Ie.bindTo(this.contextKeyService),this.treeElementCanExpand=Oe.bindTo(this.contextKeyService),this.treeElementHasChild=De.bindTo(this.contextKeyService),this.treeFindOpen=Me.bindTo(this.contextKeyService),this.treeStickyScrollFocused=ye.bindTo(this.contextKeyService),this._useAltAsMultipleSelectionModifier=it(o),this.updateStyleOverrides(s);const a=()=>{const t=e.getFocus()[0];if(!t)return;const i=e.getNode(t);this.treeElementCanCollapse.set(i.collapsible&&!i.collapsed),this.treeElementHasParent.set(!!e.getParentElement(t)),this.treeElementCanExpand.set(i.collapsible&&i.collapsed),this.treeElementHasChild.set(!!e.getFirstElementChild(t))},c=new Set;c.add(Pe),c.add(Fe),this.disposables.push(this.contextKeyService,r.register(e),e.onDidChangeSelection((()=>{const t=e.getSelection(),i=e.getFocus();this.contextKeyService.bufferChangeEvents((()=>{this.hasSelectionOrFocus.set(t.length>0||i.length>0),this.hasMultiSelection.set(t.length>1),this.hasDoubleSelection.set(2===t.length)}))})),e.onDidChangeFocus((()=>{const t=e.getSelection(),i=e.getFocus();this.hasSelectionOrFocus.set(t.length>0||i.length>0),a()})),e.onDidChangeCollapseState(a),e.onDidChangeModel(a),e.onDidChangeFindOpenState((e=>this.treeFindOpen.set(e))),e.onDidChangeStickyScrollFocused((e=>this.treeStickyScrollFocused.set(e))),o.onDidChangeConfiguration((s=>{let n={};if(s.affectsConfiguration(Be)&&(this._useAltAsMultipleSelectionModifier=it(o)),s.affectsConfiguration(qe)){const e=o.getValue(qe);n={...n,indent:e}}if(s.affectsConfiguration($e)&&void 0===t.renderIndentGuides){const e=o.getValue($e);n={...n,renderIndentGuides:e}}if(s.affectsConfiguration(Qe)){const e=Boolean(o.getValue(Qe));n={...n,smoothScrolling:e}}if(s.affectsConfiguration(ze)||s.affectsConfiguration(je)){const e=vt(o);n={...n,defaultFindMode:e}}if(s.affectsConfiguration(Ge)||s.affectsConfiguration(je)){const e=i();n={...n,typeNavigationMode:e}}if(s.affectsConfiguration(Ye)){const e=Ct(o);n={...n,defaultFindMatchType:e}}if(s.affectsConfiguration(Ve)&&void 0===t.horizontalScrolling){const e=Boolean(o.getValue(Ve));n={...n,horizontalScrolling:e}}if(s.affectsConfiguration(Ke)){const e=Boolean(o.getValue(Ke));n={...n,scrollByPage:e}}if(s.affectsConfiguration(Je)&&void 0===t.expandOnlyOnTwistieClick&&(n={...n,expandOnlyOnTwistieClick:"doubleClick"===o.getValue(Je)}),s.affectsConfiguration(et)){const e=o.getValue(et);n={...n,enableStickyScroll:e}}if(s.affectsConfiguration(tt)){const e=Math.max(1,o.getValue(tt));n={...n,stickyScrollMaxItemCount:e}}if(s.affectsConfiguration(Xe)){const e=o.getValue(Xe);n={...n,mouseWheelScrollSensitivity:e}}if(s.affectsConfiguration(Ze)){const e=o.getValue(Ze);n={...n,fastScrollSensitivity:e}}Object.keys(n).length>0&&e.updateOptions(n)})),this.contextKeyService.onDidChangeContext((t=>{t.affectsSome(c)&&e.updateOptions({typeNavigationMode:i()})}))),this.navigator=new dt(e,{configurationService:o,...t}),this.disposables.push(this.navigator)}updateOptions(e){void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyleOverrides(e){this.tree.style(e?(0,fe.t8)(e):fe.IN)}dispose(){this.disposables=(0,a.AS)(this.disposables)}};bt=_e([ve(4,he.fN),ve(5,Ce),ve(6,ce.pG)],bt);me.O.as(le.Fd.Configuration).registerConfiguration({id:"workbench",order:7,title:(0,ae.kg)("workbenchConfigurationTitle","Workbench"),type:"object",properties:{[Be]:{type:"string",enum:["ctrlCmd","alt"],markdownEnumDescriptions:[(0,ae.kg)("multiSelectModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),(0,ae.kg)("multiSelectModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:(0,ae.kg)({key:"multiSelectModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add an item in trees and lists to a multi-selection with the mouse (for example in the explorer, open editors and scm view). The 'Open to Side' mouse gestures - if supported - will adapt such that they do not conflict with the multiselect modifier.")},[We]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:(0,ae.kg)({key:"openModeModifier",comment:["`singleClick` and `doubleClick` refers to a value the setting can take and should not be localized."]},"Controls how to open items in trees and lists using the mouse (if supported). Note that some trees and lists might choose to ignore this setting if it is not applicable.")},[Ve]:{type:"boolean",default:!1,description:(0,ae.kg)("horizontalScrolling setting","Controls whether lists and trees support horizontal scrolling in the workbench. Warning: turning on this setting has a performance implication.")},[Ke]:{type:"boolean",default:!1,description:(0,ae.kg)("list.scrollByPage","Controls whether clicks in the scrollbar scroll page by page.")},[qe]:{type:"number",default:8,minimum:4,maximum:40,description:(0,ae.kg)("tree indent setting","Controls tree indentation in pixels.")},[$e]:{type:"string",enum:["none","onHover","always"],default:"onHover",description:(0,ae.kg)("render tree indent guides","Controls whether the tree should render indent guides.")},[Qe]:{type:"boolean",default:!1,description:(0,ae.kg)("list smoothScrolling setting","Controls whether lists and trees have smooth scrolling.")},[Xe]:{type:"number",default:1,markdownDescription:(0,ae.kg)("Mouse Wheel Scroll Sensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")},[Ze]:{type:"number",default:5,markdownDescription:(0,ae.kg)("Fast Scroll Sensitivity","Scrolling speed multiplier when pressing `Alt`.")},[ze]:{type:"string",enum:["highlight","filter"],enumDescriptions:[(0,ae.kg)("defaultFindModeSettingKey.highlight","Highlight elements when searching. Further up and down navigation will traverse only the highlighted elements."),(0,ae.kg)("defaultFindModeSettingKey.filter","Filter elements when searching.")],default:"highlight",description:(0,ae.kg)("defaultFindModeSettingKey","Controls the default find mode for lists and trees in the workbench.")},[je]:{type:"string",enum:["simple","highlight","filter"],enumDescriptions:[(0,ae.kg)("keyboardNavigationSettingKey.simple","Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),(0,ae.kg)("keyboardNavigationSettingKey.highlight","Highlight keyboard navigation highlights elements which match the keyboard input. Further up and down navigation will traverse only the highlighted elements."),(0,ae.kg)("keyboardNavigationSettingKey.filter","Filter keyboard navigation will filter out and hide all the elements which do not match the keyboard input.")],default:"highlight",description:(0,ae.kg)("keyboardNavigationSettingKey","Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter."),deprecated:!0,deprecationMessage:(0,ae.kg)("keyboardNavigationSettingKeyDeprecated","Please use 'workbench.list.defaultFindMode' and\t'workbench.list.typeNavigationMode' instead.")},[Ye]:{type:"string",enum:["fuzzy","contiguous"],enumDescriptions:[(0,ae.kg)("defaultFindMatchTypeSettingKey.fuzzy","Use fuzzy matching when searching."),(0,ae.kg)("defaultFindMatchTypeSettingKey.contiguous","Use contiguous matching when searching.")],default:"fuzzy",description:(0,ae.kg)("defaultFindMatchTypeSettingKey","Controls the type of matching used when searching lists and trees in the workbench.")},[Je]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:(0,ae.kg)("expand mode","Controls how tree folders are expanded when clicking the folder names. Note that some trees and lists might choose to ignore this setting if it is not applicable.")},[et]:{type:"boolean",default:!0,description:(0,ae.kg)("sticky scroll","Controls whether sticky scrolling is enabled in trees.")},[tt]:{type:"number",minimum:1,default:7,markdownDescription:(0,ae.kg)("sticky scroll maximum items","Controls the number of sticky elements displayed in the tree when {0} is enabled.","`#workbench.tree.enableStickyScroll#`")},[Ge]:{type:"string",enum:["automatic","trigger"],default:"automatic",markdownDescription:(0,ae.kg)("typeNavigationMode2","Controls how type navigation works in lists and trees in the workbench. When set to `trigger`, type navigation begins once the `list.triggerTypeNavigation` command is run.")}}})},36677:(e,t,i)=>{"use strict";i.d(t,{Q:()=>n});var s=i(83069);class n{constructor(e,t,i,s){e>i||e===i&&t>s?(this.startLineNumber=i,this.startColumn=s,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=i,this.endColumn=s)}isEmpty(){return n.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return n.containsPosition(this,e)}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(e){return n.containsRange(this,e)}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(e){return n.strictContainsRange(this,e)}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(e){return n.plusRange(this,e)}static plusRange(e,t){let i,s,r,o;return t.startLineNumber<e.startLineNumber?(i=t.startLineNumber,s=t.startColumn):t.startLineNumber===e.startLineNumber?(i=t.startLineNumber,s=Math.min(t.startColumn,e.startColumn)):(i=e.startLineNumber,s=e.startColumn),t.endLineNumber>e.endLineNumber?(r=t.endLineNumber,o=t.endColumn):t.endLineNumber===e.endLineNumber?(r=t.endLineNumber,o=Math.max(t.endColumn,e.endColumn)):(r=e.endLineNumber,o=e.endColumn),new n(i,s,r,o)}intersectRanges(e){return n.intersectRanges(this,e)}static intersectRanges(e,t){let i=e.startLineNumber,s=e.startColumn,r=e.endLineNumber,o=e.endColumn;const a=t.startLineNumber,c=t.startColumn,l=t.endLineNumber,h=t.endColumn;return i<a?(i=a,s=c):i===a&&(s=Math.max(s,c)),r>l?(r=l,o=h):r===l&&(o=Math.min(o,h)),i>r||i===r&&s>o?null:new n(i,s,r,o)}equalsRange(e){return n.equalsRange(this,e)}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 n.getEndPosition(this)}static getEndPosition(e){return new s.y(e.endLineNumber,e.endColumn)}getStartPosition(){return n.getStartPosition(this)}static getStartPosition(e){return new s.y(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new n(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new n(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return n.collapseToStart(this)}static collapseToStart(e){return new n(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return n.collapseToEnd(this)}static collapseToEnd(e){return new n(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new n(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,t=e){return new n(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new n(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"===typeof e.startLineNumber&&"number"===typeof e.startColumn&&"number"===typeof e.endLineNumber&&"number"===typeof e.endColumn}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 compareRangesUsingStarts(e,t){if(e&&t){const i=0|e.startLineNumber,s=0|t.startLineNumber;if(i===s){const i=0|e.startColumn,s=0|t.startColumn;if(i===s){const i=0|e.endLineNumber,s=0|t.endLineNumber;if(i===s){return(0|e.endColumn)-(0|t.endColumn)}return i-s}return i-s}return i-s}return(e?1:0)-(t?1:0)}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}}},36723:(e,t,i)=>{"use strict";i.r(t),i.d(t,{DraggedTreeItemsIdentifier:()=>n,TreeViewsDnDService:()=>s});class s{constructor(){this._dragOperations=new Map}removeDragOperationTransfer(e){if(e&&this._dragOperations.has(e)){const t=this._dragOperations.get(e);return this._dragOperations.delete(e),t}}}class n{constructor(e){this.identifier=e}}},36921:(e,t,i)=>{"use strict";i.d(t,{HJ:()=>h,LN:()=>a,YH:()=>l,ih:()=>d,rc:()=>o,wv:()=>c});var s=i(41234),n=i(5662),r=i(78209);class o extends n.jG{constructor(e,t="",i="",n=!0,r){super(),this._onDidChange=this._register(new s.vl),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=e,this._label=t,this._cssClass=i,this._enabled=n,this._actionCallback=r}get id(){return this._id}get label(){return this._label}set label(e){this._setLabel(e)}_setLabel(e){this._label!==e&&(this._label=e,this._onDidChange.fire({label:e}))}get tooltip(){return this._tooltip||""}set tooltip(e){this._setTooltip(e)}_setTooltip(e){this._tooltip!==e&&(this._tooltip=e,this._onDidChange.fire({tooltip:e}))}get class(){return this._cssClass}set class(e){this._setClass(e)}_setClass(e){this._cssClass!==e&&(this._cssClass=e,this._onDidChange.fire({class:e}))}get enabled(){return this._enabled}set enabled(e){this._setEnabled(e)}_setEnabled(e){this._enabled!==e&&(this._enabled=e,this._onDidChange.fire({enabled:e}))}get checked(){return this._checked}set checked(e){this._setChecked(e)}_setChecked(e){this._checked!==e&&(this._checked=e,this._onDidChange.fire({checked:e}))}async run(e,t){this._actionCallback&&await this._actionCallback(e)}}class a extends n.jG{constructor(){super(...arguments),this._onWillRun=this._register(new s.vl),this.onWillRun=this._onWillRun.event,this._onDidRun=this._register(new s.vl),this.onDidRun=this._onDidRun.event}async run(e,t){if(!e.enabled)return;let i;this._onWillRun.fire({action:e});try{await this.runAction(e,t)}catch(s){i=s}this._onDidRun.fire({action:e,error:i})}async runAction(e,t){await e.run(t)}}class c{constructor(){this.id=c.ID,this.label="",this.tooltip="",this.class="separator",this.enabled=!1,this.checked=!1}static join(...e){let t=[];for(const i of e)i.length&&(t=t.length?[...t,new c,...i]:i);return t}static{this.ID="vs.actions.separator"}async run(){}}class l{get actions(){return this._actions}constructor(e,t,i,s){this.tooltip="",this.enabled=!0,this.checked=void 0,this.id=e,this.label=t,this.class=s,this._actions=i}async run(){}}class h extends o{static{this.ID="vs.actions.empty"}constructor(){super(h.ID,r.kg("submenu.empty","(empty)"),void 0,!1)}}function d(e){return{id:e.id,label:e.label,tooltip:e.tooltip??e.label,class:e.class,enabled:e.enabled??!0,checked:e.checked,run:async(...t)=>e.run(...t)}}},36998:(e,t,i)=>{"use strict";i.d(t,{c:()=>o});var s=i(7085),n=i(36677),r=i(55190);class o{static _handleEolEdits(e,t){let i;const s=[];for(const n of t)"number"===typeof n.eol&&(i=n.eol),n.range&&"string"===typeof n.text&&s.push(n);return"number"===typeof i&&e.hasModel()&&e.getModel().pushEOL(i),s}static _isFullModelReplaceEdit(e,t){if(!e.hasModel())return!1;const i=e.getModel(),s=i.validateRange(t.range);return i.getFullModelRange().equalsRange(s)}static execute(e,t,i){i&&e.pushUndoStop();const a=r.D.capture(e),c=o._handleEolEdits(e,t);1===c.length&&o._isFullModelReplaceEdit(e,c[0])?e.executeEdits("formatEditsCommand",c.map((e=>s.k.replace(n.Q.lift(e.range),e.text)))):e.executeEdits("formatEditsCommand",c.map((e=>s.k.replaceMove(n.Q.lift(e.range),e.text)))),i&&e.pushUndoStop(),a.restoreRelativeVerticalPositionOfCursor(e)}}},36999:(e,t,i)=>{"use strict";i.d(t,{Yh:()=>k,QM:()=>w});var s=i(78209),n=i(60413),r=i(631),o=i(11007),a=i(31450),c=i(80301),l=i(32799),h=i(83069),d=i(36677);class u{static columnSelect(e,t,i,s,n,r){const o=Math.abs(n-i)+1,a=i>n,c=s>r,u=s<r,g=[];for(let p=0;p<o;p++){const n=i+(a?-p:p),o=e.columnFromVisibleColumn(t,n,s),m=e.columnFromVisibleColumn(t,n,r),f=e.visibleColumnFromColumn(t,new h.y(n,o)),_=e.visibleColumnFromColumn(t,new h.y(n,m));if(u){if(f>r)continue;if(_<s)continue}if(c){if(_>s)continue;if(f<r)continue}g.push(new l.mG(new d.Q(n,o,n,o),0,0,new h.y(n,m),0))}if(0===g.length)for(let p=0;p<o;p++){const e=i+(a?-p:p),s=t.getLineMaxColumn(e);g.push(new l.mG(new d.Q(e,s,e,s),0,0,new h.y(e,s),0))}return{viewStates:g,reversed:a,fromLineNumber:i,fromVisualColumn:s,toLineNumber:n,toVisualColumn:r}}static columnSelectLeft(e,t,i){let s=i.toViewVisualColumn;return s>0&&s--,u.columnSelect(e,t,i.fromViewLineNumber,i.fromViewVisualColumn,i.toViewLineNumber,s)}static columnSelectRight(e,t,i){let s=0;const n=Math.min(i.fromViewLineNumber,i.toViewLineNumber),r=Math.max(i.fromViewLineNumber,i.toViewLineNumber);for(let a=n;a<=r;a++){const i=t.getLineMaxColumn(a),n=e.visibleColumnFromColumn(t,new h.y(a,i));s=Math.max(s,n)}let o=i.toViewVisualColumn;return o<s&&o++,this.columnSelect(e,t,i.fromViewLineNumber,i.fromViewVisualColumn,i.toViewLineNumber,o)}static columnSelectUp(e,t,i,s){const n=s?e.pageSize:1,r=Math.max(1,i.toViewLineNumber-n);return this.columnSelect(e,t,i.fromViewLineNumber,i.fromViewVisualColumn,r,i.toViewVisualColumn)}static columnSelectDown(e,t,i,s){const n=s?e.pageSize:1,r=Math.min(t.getLineCount(),i.toViewLineNumber+n);return this.columnSelect(e,t,i.fromViewLineNumber,i.fromViewVisualColumn,r,i.toViewVisualColumn)}}var g=i(1226),p=i(28291),m=i(49265),f=i(60002),_=i(32848),v=i(59261),C=i(8597),E=i(26685);class b extends a.DX{runEditorCommand(e,t,i){const s=t._getViewModel();s&&this.runCoreEditorCommand(s,i||{})}}var S,y,w;!function(e){e.metadata={description:"Scroll editor in the given direction",args:[{name:"Editor scroll argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'to': A mandatory direction value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'up', 'down'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'by': Unit to move. Default is computed based on 'to' value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'line', 'wrappedLine', 'page', 'halfPage', 'editor'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'value': Number of units to move. Default is '1'.\n\t\t\t\t\t* 'revealCursor': If 'true' reveals the cursor if it is outside view port.\n\t\t\t\t",constraint:function(e){if(!r.Gv(e))return!1;const t=e;return!!r.Kg(t.to)&&(!(!r.b0(t.by)&&!r.Kg(t.by))&&(!(!r.b0(t.value)&&!r.Et(t.value))&&!(!r.b0(t.revealCursor)&&!r.Lm(t.revealCursor))))},schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["up","down"]},by:{type:"string",enum:["line","wrappedLine","page","halfPage","editor"]},value:{type:"number",default:1},revealCursor:{type:"boolean"}}}}]},e.RawDirection={Up:"up",Right:"right",Down:"down",Left:"left"},e.RawUnit={Line:"line",WrappedLine:"wrappedLine",Page:"page",HalfPage:"halfPage",Editor:"editor",Column:"column"},e.parse=function(t){let i,s;switch(t.to){case e.RawDirection.Up:i=1;break;case e.RawDirection.Right:i=2;break;case e.RawDirection.Down:i=3;break;case e.RawDirection.Left:i=4;break;default:return null}switch(t.by){case e.RawUnit.Line:s=1;break;case e.RawUnit.WrappedLine:s=2;break;case e.RawUnit.Page:s=3;break;case e.RawUnit.HalfPage:s=4;break;case e.RawUnit.Editor:s=5;break;case e.RawUnit.Column:s=6;break;default:s=2}return{direction:i,unit:s,value:Math.floor(t.value||1),revealCursor:!!t.revealCursor,select:!!t.select}}}(S||(S={})),function(e){e.metadata={description:"Reveal the given line at the given logical position",args:[{name:"Reveal line argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'lineNumber': A mandatory line number value.\n\t\t\t\t\t* 'at': Logical position at which line has to be revealed.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'top', 'center', 'bottom'\n\t\t\t\t\t\t```\n\t\t\t\t",constraint:function(e){if(!r.Gv(e))return!1;const t=e;return!(!r.Et(t.lineNumber)&&!r.Kg(t.lineNumber))&&!(!r.b0(t.at)&&!r.Kg(t.at))},schema:{type:"object",required:["lineNumber"],properties:{lineNumber:{type:["number","string"]},at:{type:"string",enum:["top","center","bottom"]}}}}]},e.RawAtArgument={Top:"top",Center:"center",Bottom:"bottom"}}(y||(y={}));class R{constructor(e){e.addImplementation(1e4,"code-editor",((e,t)=>{const i=e.get(c.T).getFocusedCodeEditor();return!(!i||!i.hasTextFocus())&&this._runEditorCommand(e,i,t)})),e.addImplementation(1e3,"generic-dom-input-textarea",((e,t)=>{const i=(0,C.bq)();return!!(i&&["input","textarea"].indexOf(i.tagName.toLowerCase())>=0)&&(this.runDOMCommand(i),!0)})),e.addImplementation(0,"generic-dom",((e,t)=>{const i=e.get(c.T).getActiveCodeEditor();return!!i&&(i.focus(),this._runEditorCommand(e,i,t))}))}_runEditorCommand(e,t,i){const s=this.runEditorCommand(e,t,i);return s||!0}}!function(e){class t extends b{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){if(!t.position)return;e.model.pushStackElement();e.setCursorStates(t.source,3,[p.c.moveTo(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position,t.viewPosition)])&&2!==t.revealType&&e.revealAllCursors(t.source,!0,!0)}}e.MoveTo=(0,a.E_)(new t({id:"_moveTo",inSelectionMode:!1,precondition:void 0})),e.MoveToSelect=(0,a.E_)(new t({id:"_moveToSelect",inSelectionMode:!0,precondition:void 0}));class i extends b{runCoreEditorCommand(e,t){e.model.pushStackElement();const i=this._getColumnSelectResult(e,e.getPrimaryCursorState(),e.getCursorColumnSelectData(),t);null!==i&&(e.setCursorStates(t.source,3,i.viewStates.map((e=>l.MF.fromViewState(e)))),e.setCursorColumnSelectData({isReal:!0,fromViewLineNumber:i.fromLineNumber,fromViewVisualColumn:i.fromVisualColumn,toViewLineNumber:i.toLineNumber,toViewVisualColumn:i.toVisualColumn}),i.reversed?e.revealTopMostCursor(t.source):e.revealBottomMostCursor(t.source))}}e.ColumnSelect=(0,a.E_)(new class extends i{constructor(){super({id:"columnSelect",precondition:void 0})}_getColumnSelectResult(e,t,i,s){if("undefined"===typeof s.position||"undefined"===typeof s.viewPosition||"undefined"===typeof s.mouseColumn)return null;const n=e.model.validatePosition(s.position),r=e.coordinatesConverter.validateViewPosition(new h.y(s.viewPosition.lineNumber,s.viewPosition.column),n),o=s.doColumnSelect?i.fromViewLineNumber:r.lineNumber,a=s.doColumnSelect?i.fromViewVisualColumn:s.mouseColumn-1;return u.columnSelect(e.cursorConfig,e,o,a,r.lineNumber,s.mouseColumn-1)}}),e.CursorColumnSelectLeft=(0,a.E_)(new class extends i{constructor(){super({id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:3599,linux:{primary:0}}})}_getColumnSelectResult(e,t,i,s){return u.columnSelectLeft(e.cursorConfig,e,i)}}),e.CursorColumnSelectRight=(0,a.E_)(new class extends i{constructor(){super({id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:3601,linux:{primary:0}}})}_getColumnSelectResult(e,t,i,s){return u.columnSelectRight(e.cursorConfig,e,i)}});class r extends i{constructor(e){super(e),this._isPaged=e.isPaged}_getColumnSelectResult(e,t,i,s){return u.columnSelectUp(e.cursorConfig,e,i,this._isPaged)}}e.CursorColumnSelectUp=(0,a.E_)(new r({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:3600,linux:{primary:0}}})),e.CursorColumnSelectPageUp=(0,a.E_)(new r({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:3595,linux:{primary:0}}}));class c extends i{constructor(e){super(e),this._isPaged=e.isPaged}_getColumnSelectResult(e,t,i,s){return u.columnSelectDown(e.cursorConfig,e,i,this._isPaged)}}e.CursorColumnSelectDown=(0,a.E_)(new c({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:3602,linux:{primary:0}}})),e.CursorColumnSelectPageDown=(0,a.E_)(new c({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:3596,linux:{primary:0}}}));class g extends b{constructor(){super({id:"cursorMove",precondition:void 0,metadata:p.S.metadata})}runCoreEditorCommand(e,t){const i=p.S.parse(t);i&&this._runCursorMove(e,t.source,i)}_runCursorMove(e,t,i){e.model.pushStackElement(),e.setCursorStates(t,3,g._move(e,e.getCursorStates(),i)),e.revealAllCursors(t,!0)}static _move(e,t,i){const s=i.select,n=i.value;switch(i.direction){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:return p.c.simpleMove(e,t,i.direction,s,n,i.unit);case 11:case 13:case 12:case 14:return p.c.viewportMove(e,t,i.direction,s,n);default:return null}}}e.CursorMoveImpl=g,e.CursorMove=(0,a.E_)(new g);class m extends b{constructor(e){super(e),this._staticArgs=e.args}runCoreEditorCommand(e,t){let i=this._staticArgs;-1===this._staticArgs.value&&(i={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:t.pageSize||e.cursorConfig.pageSize}),e.model.pushStackElement(),e.setCursorStates(t.source,3,p.c.simpleMove(e,e.getCursorStates(),i.direction,i.select,i.value,i.unit)),e.revealAllCursors(t.source,!0)}}e.CursorLeft=(0,a.E_)(new m({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),e.CursorLeftSelect=(0,a.E_)(new m({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:1039}})),e.CursorRight=(0,a.E_)(new m({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),e.CursorRightSelect=(0,a.E_)(new m({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:1041}})),e.CursorUp=(0,a.E_)(new m({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),e.CursorUpSelect=(0,a.E_)(new m({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),e.CursorPageUp=(0,a.E_)(new m({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:11}})),e.CursorPageUpSelect=(0,a.E_)(new m({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:1035}})),e.CursorDown=(0,a.E_)(new m({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),e.CursorDownSelect=(0,a.E_)(new m({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),e.CursorPageDown=(0,a.E_)(new m({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:12}})),e.CursorPageDownSelect=(0,a.E_)(new m({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:1036}})),e.CreateCursor=(0,a.E_)(new class extends b{constructor(){super({id:"createCursor",precondition:void 0})}runCoreEditorCommand(e,t){if(!t.position)return;let i;i=t.wholeLine?p.c.line(e,e.getPrimaryCursorState(),!1,t.position,t.viewPosition):p.c.moveTo(e,e.getPrimaryCursorState(),!1,t.position,t.viewPosition);const s=e.getCursorStates();if(s.length>1){const n=i.modelState?i.modelState.position:null,r=i.viewState?i.viewState.position:null;for(let i=0,o=s.length;i<o;i++){const o=s[i];if((!n||o.modelState.selection.containsPosition(n))&&(!r||o.viewState.selection.containsPosition(r)))return s.splice(i,1),e.model.pushStackElement(),void e.setCursorStates(t.source,3,s)}}s.push(i),e.model.pushStackElement(),e.setCursorStates(t.source,3,s)}}),e.LastCursorMoveToSelect=(0,a.E_)(new class extends b{constructor(){super({id:"_lastCursorMoveToSelect",precondition:void 0})}runCoreEditorCommand(e,t){if(!t.position)return;const i=e.getLastAddedCursorIndex(),s=e.getCursorStates(),n=s.slice(0);n[i]=p.c.moveTo(e,s[i],!0,t.position,t.viewPosition),e.model.pushStackElement(),e.setCursorStates(t.source,3,n)}});class _ extends b{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,p.c.moveToBeginningOfLine(e,e.getCursorStates(),this._inSelectionMode)),e.revealAllCursors(t.source,!0)}}e.CursorHome=(0,a.E_)(new _({inSelectionMode:!1,id:"cursorHome",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:14,mac:{primary:14,secondary:[2063]}}})),e.CursorHomeSelect=(0,a.E_)(new _({inSelectionMode:!0,id:"cursorHomeSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:1038,mac:{primary:1038,secondary:[3087]}}}));class v extends b{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,this._exec(e.getCursorStates())),e.revealAllCursors(t.source,!0)}_exec(e){const t=[];for(let i=0,s=e.length;i<s;i++){const s=e[i],n=s.modelState.position.lineNumber;t[i]=l.MF.fromModelState(s.modelState.move(this._inSelectionMode,n,1,0))}return t}}e.CursorLineStart=(0,a.E_)(new v({inSelectionMode:!1,id:"cursorLineStart",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:0,mac:{primary:287}}})),e.CursorLineStartSelect=(0,a.E_)(new v({inSelectionMode:!0,id:"cursorLineStartSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:0,mac:{primary:1311}}}));class C extends b{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,p.c.moveToEndOfLine(e,e.getCursorStates(),this._inSelectionMode,t.sticky||!1)),e.revealAllCursors(t.source,!0)}}e.CursorEnd=(0,a.E_)(new C({inSelectionMode:!1,id:"cursorEnd",precondition:void 0,kbOpts:{args:{sticky:!1},weight:0,kbExpr:f.R.textInputFocus,primary:13,mac:{primary:13,secondary:[2065]}},metadata:{description:"Go to End",args:[{name:"args",schema:{type:"object",properties:{sticky:{description:s.kg("stickydesc","Stick to the end even when going to longer lines"),type:"boolean",default:!1}}}}]}})),e.CursorEndSelect=(0,a.E_)(new C({inSelectionMode:!0,id:"cursorEndSelect",precondition:void 0,kbOpts:{args:{sticky:!1},weight:0,kbExpr:f.R.textInputFocus,primary:1037,mac:{primary:1037,secondary:[3089]}},metadata:{description:"Select to End",args:[{name:"args",schema:{type:"object",properties:{sticky:{description:s.kg("stickydesc","Stick to the end even when going to longer lines"),type:"boolean",default:!1}}}}]}}));class E extends b{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,this._exec(e,e.getCursorStates())),e.revealAllCursors(t.source,!0)}_exec(e,t){const i=[];for(let s=0,n=t.length;s<n;s++){const n=t[s],r=n.modelState.position.lineNumber,o=e.model.getLineMaxColumn(r);i[s]=l.MF.fromModelState(n.modelState.move(this._inSelectionMode,r,o,0))}return i}}e.CursorLineEnd=(0,a.E_)(new E({inSelectionMode:!1,id:"cursorLineEnd",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:0,mac:{primary:291}}})),e.CursorLineEndSelect=(0,a.E_)(new E({inSelectionMode:!0,id:"cursorLineEndSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:0,mac:{primary:1315}}}));class w extends b{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,p.c.moveToBeginningOfBuffer(e,e.getCursorStates(),this._inSelectionMode)),e.revealAllCursors(t.source,!0)}}e.CursorTop=(0,a.E_)(new w({inSelectionMode:!1,id:"cursorTop",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:2062,mac:{primary:2064}}})),e.CursorTopSelect=(0,a.E_)(new w({inSelectionMode:!0,id:"cursorTopSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:3086,mac:{primary:3088}}}));class L extends b{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,p.c.moveToEndOfBuffer(e,e.getCursorStates(),this._inSelectionMode)),e.revealAllCursors(t.source,!0)}}e.CursorBottom=(0,a.E_)(new L({inSelectionMode:!1,id:"cursorBottom",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:2061,mac:{primary:2066}}})),e.CursorBottomSelect=(0,a.E_)(new L({inSelectionMode:!0,id:"cursorBottomSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:3085,mac:{primary:3090}}}));class T extends b{constructor(){super({id:"editorScroll",precondition:void 0,metadata:S.metadata})}determineScrollMethod(e){return[6].includes(e.unit)&&[4,2].includes(e.direction)?this._runHorizontalEditorScroll.bind(this):[1,2,3,4,5,6].includes(e.unit)&&[1,3].includes(e.direction)?this._runVerticalEditorScroll.bind(this):null}runCoreEditorCommand(e,t){const i=S.parse(t);if(!i)return;const s=this.determineScrollMethod(i);s&&s(e,t.source,i)}_runVerticalEditorScroll(e,t,i){const s=this._computeDesiredScrollTop(e,i);if(i.revealCursor){const n=e.getCompletelyVisibleViewRangeAtScrollTop(s);e.setCursorStates(t,3,[p.c.findPositionInViewportIfOutside(e,e.getPrimaryCursorState(),n,i.select)])}e.viewLayout.setScrollPosition({scrollTop:s},0)}_computeDesiredScrollTop(e,t){if(1===t.unit){const i=e.viewLayout.getFutureViewport(),s=e.getCompletelyVisibleViewRangeAtScrollTop(i.top),n=e.coordinatesConverter.convertViewRangeToModelRange(s);let r;r=1===t.direction?Math.max(1,n.startLineNumber-t.value):Math.min(e.model.getLineCount(),n.startLineNumber+t.value);const o=e.coordinatesConverter.convertModelPositionToViewPosition(new h.y(r,1));return e.viewLayout.getVerticalOffsetForLineNumber(o.lineNumber)}if(5===t.unit){let i=0;return 3===t.direction&&(i=e.model.getLineCount()-e.cursorConfig.pageSize),e.viewLayout.getVerticalOffsetForLineNumber(i)}let i;i=3===t.unit?e.cursorConfig.pageSize*t.value:4===t.unit?Math.round(e.cursorConfig.pageSize/2)*t.value:t.value;const s=(1===t.direction?-1:1)*i;return e.viewLayout.getCurrentScrollTop()+s*e.cursorConfig.lineHeight}_runHorizontalEditorScroll(e,t,i){const s=this._computeDesiredScrollLeft(e,i);e.viewLayout.setScrollPosition({scrollLeft:s},0)}_computeDesiredScrollLeft(e,t){const i=(4===t.direction?-1:1)*t.value;return e.viewLayout.getCurrentScrollLeft()+i*e.cursorConfig.typicalHalfwidthCharacterWidth}}e.EditorScrollImpl=T,e.EditorScroll=(0,a.E_)(new T),e.ScrollLineUp=(0,a.E_)(new class extends b{constructor(){super({id:"scrollLineUp",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:2064,mac:{primary:267}}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:S.RawDirection.Up,by:S.RawUnit.WrappedLine,value:1,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollPageUp=(0,a.E_)(new class extends b{constructor(){super({id:"scrollPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:2059,win:{primary:523},linux:{primary:523}}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:S.RawDirection.Up,by:S.RawUnit.Page,value:1,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollEditorTop=(0,a.E_)(new class extends b{constructor(){super({id:"scrollEditorTop",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:S.RawDirection.Up,by:S.RawUnit.Editor,value:1,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollLineDown=(0,a.E_)(new class extends b{constructor(){super({id:"scrollLineDown",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:2066,mac:{primary:268}}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:S.RawDirection.Down,by:S.RawUnit.WrappedLine,value:1,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollPageDown=(0,a.E_)(new class extends b{constructor(){super({id:"scrollPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:2060,win:{primary:524},linux:{primary:524}}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:S.RawDirection.Down,by:S.RawUnit.Page,value:1,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollEditorBottom=(0,a.E_)(new class extends b{constructor(){super({id:"scrollEditorBottom",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:S.RawDirection.Down,by:S.RawUnit.Editor,value:1,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollLeft=(0,a.E_)(new class extends b{constructor(){super({id:"scrollLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:S.RawDirection.Left,by:S.RawUnit.Column,value:2,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollRight=(0,a.E_)(new class extends b{constructor(){super({id:"scrollRight",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:S.RawDirection.Right,by:S.RawUnit.Column,value:2,revealCursor:!1,select:!1,source:i.source})}});class x extends b{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){t.position&&(e.model.pushStackElement(),e.setCursorStates(t.source,3,[p.c.word(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position)]),2!==t.revealType&&e.revealAllCursors(t.source,!0,!0))}}e.WordSelect=(0,a.E_)(new x({inSelectionMode:!1,id:"_wordSelect",precondition:void 0})),e.WordSelectDrag=(0,a.E_)(new x({inSelectionMode:!0,id:"_wordSelectDrag",precondition:void 0})),e.LastCursorWordSelect=(0,a.E_)(new class extends b{constructor(){super({id:"lastCursorWordSelect",precondition:void 0})}runCoreEditorCommand(e,t){if(!t.position)return;const i=e.getLastAddedCursorIndex(),s=e.getCursorStates(),n=s.slice(0),r=s[i];n[i]=p.c.word(e,r,r.modelState.hasSelection(),t.position),e.model.pushStackElement(),e.setCursorStates(t.source,3,n)}});class k extends b{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){t.position&&(e.model.pushStackElement(),e.setCursorStates(t.source,3,[p.c.line(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position,t.viewPosition)]),2!==t.revealType&&e.revealAllCursors(t.source,!1,!0))}}e.LineSelect=(0,a.E_)(new k({inSelectionMode:!1,id:"_lineSelect",precondition:void 0})),e.LineSelectDrag=(0,a.E_)(new k({inSelectionMode:!0,id:"_lineSelectDrag",precondition:void 0}));class A extends b{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){if(!t.position)return;const i=e.getLastAddedCursorIndex(),s=e.getCursorStates(),n=s.slice(0);n[i]=p.c.line(e,s[i],this._inSelectionMode,t.position,t.viewPosition),e.model.pushStackElement(),e.setCursorStates(t.source,3,n)}}e.LastCursorLineSelect=(0,a.E_)(new A({inSelectionMode:!1,id:"lastCursorLineSelect",precondition:void 0})),e.LastCursorLineSelectDrag=(0,a.E_)(new A({inSelectionMode:!0,id:"lastCursorLineSelectDrag",precondition:void 0})),e.CancelSelection=(0,a.E_)(new class extends b{constructor(){super({id:"cancelSelection",precondition:f.R.hasNonEmptySelection,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:9,secondary:[1033]}})}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[p.c.cancelSelection(e,e.getPrimaryCursorState())]),e.revealAllCursors(t.source,!0)}}),e.RemoveSecondaryCursors=(0,a.E_)(new class extends b{constructor(){super({id:"removeSecondaryCursors",precondition:f.R.hasMultipleSelections,kbOpts:{weight:1,kbExpr:f.R.textInputFocus,primary:9,secondary:[1033]}})}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[e.getPrimaryCursorState()]),e.revealAllCursors(t.source,!0),(0,o.h5)(s.kg("removedCursor","Removed secondary cursors"))}}),e.RevealLine=(0,a.E_)(new class extends b{constructor(){super({id:"revealLine",precondition:void 0,metadata:y.metadata})}runCoreEditorCommand(e,t){const i=t,s=i.lineNumber||0;let n="number"===typeof s?s+1:parseInt(s)+1;n<1&&(n=1);const r=e.model.getLineCount();n>r&&(n=r);const o=new d.Q(n,1,n,e.model.getLineMaxColumn(n));let a=0;if(i.at)switch(i.at){case y.RawAtArgument.Top:a=3;break;case y.RawAtArgument.Center:a=1;break;case y.RawAtArgument.Bottom:a=4}const c=e.coordinatesConverter.convertModelRangeToViewRange(o);e.revealRange(t.source,!1,c,a,0)}}),e.SelectAll=new class extends R{constructor(){super(a.tc)}runDOMCommand(e){n.gm&&(e.focus(),e.select()),e.ownerDocument.execCommand("selectAll")}runEditorCommand(e,t,i){const s=t._getViewModel();s&&this.runCoreEditorCommand(s,i)}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates("keyboard",3,[p.c.selectAll(e,e.getPrimaryCursorState())])}},e.SetSelection=(0,a.E_)(new class extends b{constructor(){super({id:"setSelection",precondition:void 0})}runCoreEditorCommand(e,t){t.selection&&(e.model.pushStackElement(),e.setCursorStates(t.source,3,[l.MF.fromModelSelection(t.selection)]))}})}(w||(w={}));const L=_.M$.and(f.R.textInputFocus,f.R.columnSelection);function T(e,t){v.f.registerKeybindingRule({id:e,primary:t,when:L,weight:1})}function x(e){return e.register(),e}var k;T(w.CursorColumnSelectLeft.id,1039),T(w.CursorColumnSelectRight.id,1041),T(w.CursorColumnSelectUp.id,1040),T(w.CursorColumnSelectPageUp.id,1035),T(w.CursorColumnSelectDown.id,1042),T(w.CursorColumnSelectPageDown.id,1036),function(e){class t extends a.DX{runEditorCommand(e,t,i){const s=t._getViewModel();s&&this.runCoreEditingCommand(t,s,i||{})}}e.CoreEditingCommand=t,e.LineBreakInsert=(0,a.E_)(new class extends t{constructor(){super({id:"lineBreakInsert",precondition:f.R.writable,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:0,mac:{primary:301}}})}runCoreEditingCommand(e,t,i){e.pushUndoStop(),e.executeCommands(this.id,E.AO.lineBreakInsert(t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection))))}}),e.Outdent=(0,a.E_)(new class extends t{constructor(){super({id:"outdent",precondition:f.R.writable,kbOpts:{weight:0,kbExpr:_.M$.and(f.R.editorTextFocus,f.R.tabDoesNotMoveFocus),primary:1026}})}runCoreEditingCommand(e,t,i){e.pushUndoStop(),e.executeCommands(this.id,m.T.outdent(t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection)))),e.pushUndoStop()}}),e.Tab=(0,a.E_)(new class extends t{constructor(){super({id:"tab",precondition:f.R.writable,kbOpts:{weight:0,kbExpr:_.M$.and(f.R.editorTextFocus,f.R.tabDoesNotMoveFocus),primary:2}})}runCoreEditingCommand(e,t,i){e.pushUndoStop(),e.executeCommands(this.id,m.T.tab(t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection)))),e.pushUndoStop()}}),e.DeleteLeft=(0,a.E_)(new class extends t{constructor(){super({id:"deleteLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})}runCoreEditingCommand(e,t,i){const[s,n]=g.g.deleteLeft(t.getPrevEditOperationType(),t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection)),t.getCursorAutoClosedCharacters());s&&e.pushUndoStop(),e.executeCommands(this.id,n),t.setPrevEditOperationType(2)}}),e.DeleteRight=(0,a.E_)(new class extends t{constructor(){super({id:"deleteRight",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})}runCoreEditingCommand(e,t,i){const[s,n]=g.g.deleteRight(t.getPrevEditOperationType(),t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection)));s&&e.pushUndoStop(),e.executeCommands(this.id,n),t.setPrevEditOperationType(3)}}),e.Undo=new class extends R{constructor(){super(a.aU)}runDOMCommand(e){e.ownerDocument.execCommand("undo")}runEditorCommand(e,t,i){if(t.hasModel()&&!0!==t.getOption(92))return t.getModel().undo()}},e.Redo=new class extends R{constructor(){super(a.ih)}runDOMCommand(e){e.ownerDocument.execCommand("redo")}runEditorCommand(e,t,i){if(t.hasModel()&&!0!==t.getOption(92))return t.getModel().redo()}}}(k||(k={}));class A extends a.uB{constructor(e,t,i){super({id:e,precondition:void 0,metadata:i}),this._handlerId=t}runCommand(e,t){const i=e.get(c.T).getFocusedCodeEditor();i&&i.trigger("keyboard",this._handlerId,t)}}function N(e,t){x(new A("default:"+e,e)),x(new A(e,e,t))}N("type",{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]}),N("replacePreviousChar"),N("compositionType"),N("compositionStart"),N("compositionEnd"),N("paste"),N("cut")},37035:(e,t,i)=>{e.exports=i(96409)},37227:(e,t,i)=>{"use strict";i.d(t,{A7:()=>c,Q_:()=>d,VR:()=>o,cn:()=>p,ct:()=>m,jB:()=>a,kF:()=>g,mX:()=>u});var s=i(78209),n=i(74027),r=(i(4853),i(79400));const o=(0,i(63591).u1)("contextService");function a(e){const t=e;return"string"===typeof t?.id&&r.r.isUri(t.uri)}function c(e){const t=e;return"string"===typeof t?.id&&!a(e)&&!function(e){const t=e;return"string"===typeof t?.id&&r.r.isUri(t.configPath)}(e)}const l={id:"ext-dev"},h={id:"empty-window"};function d(e,t){if("string"===typeof e||"undefined"===typeof e)return"string"===typeof e?{id:(0,n.P8)(e)}:t?l:h;const i=e;return i.configuration?{id:i.id,configPath:i.configuration}:1===i.folders.length?{id:i.id,uri:i.folders[0].uri}:{id:i.id}}class u{constructor(e,t){this.raw=t,this.uri=e.uri,this.index=e.index,this.name=e.name}toJSON(){return{uri:this.uri,name:this.name,index:this.index}}}const g="code-workspace",p=((0,s.kg)("codeWorkspace","Code Workspace"),"4064f6ec-cb38-4ad0-af64-ee6467e63c82");function m(e){return e.id===p}},37301:(e,t,i)=>{e.exports=function(){const e=i(94297),t=[{name:"microsecond",divisor:1e6},{name:"second",divisor:60},{name:"minute",divisor:60},{name:"hour",divisor:24},{name:"day"}];function s(i){const s=Number(i.$value)<0?"-":"";let n=Math.abs(i.$value);if(0===n)return"0";return s+t.map((function(e){let t=n;return e.divisor?(t=n%e.divisor,n=Math.floor(n/e.divisor)):(t=n,n=0),[t,e.name]})).reverse().filter((function(e){return e[0]>0})).map((function(t){const i=t[0],s=i>1?"s":"";return i+e.NON_BREAKING_WHITESPACE+t[1]+s})).join(e.WHITESPACE)}return s.isScalar=!0,s}},37403:(e,t,i)=>{!function(){"use strict";const t=i(94297),s=i(1019),n=i(34132),r=i(34420),o="json";function a(e){return String(e.$value)}const c={};function l(e,i,s){const n=e.$type?.startsWith("yql.pg")?"yql.pg":e.$type,r=Object.prototype.hasOwnProperty.call(c,n)?c[n]:a,o=r(e,i,s),l=r.isScalar?t.wrapScalar(e,i,o):t.wrapComplex(e,i,o);return t.wrapOptional(e,i,l)}function h(e,t,i){return l({$type:"string",$special_key:!0,$value:e,$decoded_value:e},t,i)}function d(e,i,s){let n="";const r=e.$attributes,a=r.length;return t.drawFullView(a,i)?(n+=t.getAttributesStart(i)+t.getIndent(i,s),n+=p(r,i,s),n+=t.getIndent(i,s-1)+t.getAttributesEnd(i)+t.getIndent(i,s-1)):t.drawCompactView(a,i)?(n+=t.getAttributesStart(i),n+=p(r,i,s-1),n+=t.getAttributesEnd(i)+(i.format===o?t.getIndent(i,s-1):"")):n+=t.getAttributesStart(i)+t.getAttributesEnd(i),n}function u(e){return Object.prototype.hasOwnProperty.call(e,"$attributes")&&e.$attributes.length>0}const g=function(e,i,s){s=s||1;let n="";return i.format===o?u(e)?(n+=t.OBJECT_START+t.getIndent(i,s),n+=h("$attributes",i,s)+t.getKeyValueSeparator(i),n+=d(e,i,s+1),n+=h("$value",i,s)+t.getKeyValueSeparator(i),n+=l(e,i,s+1),n+=t.getIndent(i,s-1)+t.OBJECT_END):n+=l(e,i,s):"yson"===i.format&&(u(e)&&(n+=d(e,i,s)),n+=l(e,i,s)),n},p=i(83823)(g);function m(e,i,s){return"undefined"===typeof e?t.EMPTY_STRING:(s=s||function(e){return e},(i=i||{}).format=t.parseSetting(i,"format",o),i.decodeUTF8=t.parseSetting(i,"decodeUTF8",!0),i.showDecoded=t.parseSetting(i,"showDecoded",!0),i.asHTML=t.parseSetting(i,"asHTML",!0),i.indent=t.parseSetting(i,"indent",4),i.break=t.parseSetting(i,"break",!0),i.compact=t.parseSetting(i,"compact",!1),i.binaryAsHex=t.parseSetting(i,"binaryAsHex",!0),i.escapeWhitespace=t.parseSetting(i,"escapeWhitespace",!0),i.highlightControlCharacter=t.parseSetting(i,"highlightControlCharacter",!1),i.escapeYQLStrings=t.parseSetting(i,"escapeYQLStrings",!0),i.nonBreakingIndent=t.parseSetting(i,"nonBreakingIndent",!0),i.treatValAsData=t.parseSetting(i,"treatValAsData",!1),i.validateSrcUrl=t.parseSetting(i,"validateSrcUrl",(()=>!1)),i.normalizeUrl=t.parseSetting(i,"normalizeUrl",(e=>encodeURI(e))),g(s(e,i),i))}c.list=i(34529)(g),c.map=i(8603)(g),c.string=i(88608)(g),c.number=i(94484)(g),c.int64=i(64066)(g),c.uint64=i(2539)(g),c.double=i(66668)(g),c.boolean=i(50629)(g),c.null=i(17184)(g),c.tagged=i(57233)(g),c["yql.list"]=i(56976)(g),c["yql.stream"]=i(89896)(g),c["yql.tuple"]=i(21152)(g),c["yql.struct"]=i(23157)(g),c["yql.dict"]=i(9208)(g),c["yql.string"]=i(96409)(g),c["yql.utf8"]=i(37035)(g),c["yql.int64"]=i(38785)(g),c["yql.int8"]=c["yql.int64"],c["yql.int16"]=c["yql.int64"],c["yql.int32"]=c["yql.int64"],c["yql.uint64"]=i(10602)(g),c["yql.uint8"]=c["yql.uint64"],c["yql.uint16"]=c["yql.uint64"],c["yql.uint32"]=c["yql.uint64"],c["yql.double"]=i(21377)(g),c["yql.float"]=c["yql.double"],c["yql.decimal"]=i(46133)(g),c["yql.bool"]=i(43932)(g),c["yql.date"]=i(84316)(g),c["yql.date32"]=c["yql.date"],c["yql.datetime"]=i(20897)(g),c["yql.datetime64"]=c["yql.datetime"],c["yql.timestamp"]=i(75162)(g),c["yql.timestamp64"]=c["yql.timestamp"],c["yql.tzdate"]=i(29818)(g),c["yql.tzdate32"]=i(29818)(g),c["yql.tzdatetime"]=i(93599)(g),c["yql.tzdatetime64"]=i(93599)(g),c["yql.tztimestamp"]=i(79928)(g),c["yql.tztimestamp64"]=i(79928)(g),c["yql.interval"]=i(37301)(g),c["yql.interval64"]=c["yql.interval"],c["yql.uuid"]=i(25783)(g),c["yql.null"]=i(80449)(g),c["yql.variant"]=i(10411)(g),c["yql.enum"]=i(36317)(g),c["yql.set"]=i(35762)(g),c["yql.json"]=i(92778)(g),c["yql.yson"]=i(41893)(g),c["yql.tagged"]=i(74688)(g),c["yql.pg"]=i(14853)(g),e.exports={format:m,formatFromYSON:function(e,t){return m(e,t,s)},formatFromYQL:function(e,t){return m(e,t,n)},formatRaw:function(e,t){return(t=t||{}).format="json",t.showDecoded=!1,t.compact=!1,t.escapeWhitespace=!0,m(e,t,r)},formatAttributes:d,formatKey:h,formatValue:l}}()},37472:(e,t,i)=>{"use strict";i.d(t,{G6:()=>g,Mn:()=>d,iZ:()=>h});var s=i(84565),n=i(25890),r=i(90766),o=i(44759),a=i(83993),c=i(41234),l=i(42522);function h(e){return"object"===typeof e&&"visibility"in e&&"data"in e}function d(e){switch(e){case!0:return 1;case!1:return 0;default:return e}}function u(e){return"boolean"===typeof e.collapsible}class g{constructor(e,t,i,s={}){this.user=e,this.list=t,this.rootRef=[],this.eventBufferer=new c.at,this._onDidChangeCollapseState=new c.vl,this.onDidChangeCollapseState=this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event),this._onDidChangeRenderNodeCount=new c.vl,this.onDidChangeRenderNodeCount=this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event),this._onDidSplice=new c.vl,this.onDidSplice=this._onDidSplice.event,this.refilterDelayer=new r.ve(o.h),this.collapseByDefault="undefined"!==typeof s.collapseByDefault&&s.collapseByDefault,this.allowNonCollapsibleParents=s.allowNonCollapsibleParents??!1,this.filter=s.filter,this.autoExpandSingleChildren="undefined"!==typeof s.autoExpandSingleChildren&&s.autoExpandSingleChildren,this.root={parent:void 0,element:i,children:[],depth:0,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:!1,collapsed:!1,renderNodeCount:0,visibility:1,visible:!0,filterData:void 0}}splice(e,t,i=l.f.empty(),n={}){if(0===e.length)throw new s.jh(this.user,"Invalid tree location");n.diffIdentityProvider?this.spliceSmart(n.diffIdentityProvider,e,t,i,n):this.spliceSimple(e,t,i,n)}spliceSmart(e,t,i,s=l.f.empty(),n,r=n.diffDepth??0){const{parentNode:o}=this.getParentNodeWithListIndex(t);if(!o.lastDiffIds)return this.spliceSimple(t,i,s,n);const c=[...s],h=t[t.length-1],d=new a.uP({getElements:()=>o.lastDiffIds},{getElements:()=>[...o.children.slice(0,h),...c,...o.children.slice(h+i)].map((t=>e.getId(t.element).toString()))}).ComputeDiff(!1);if(d.quitEarly)return o.lastDiffIds=void 0,this.spliceSimple(t,i,c,n);const u=t.slice(0,-1),g=(t,i,s)=>{if(r>0)for(let o=0;o<s;o++)t--,i--,this.spliceSmart(e,[...u,t,0],Number.MAX_SAFE_INTEGER,c[i].children,n,r-1)};let p=Math.min(o.children.length,h+i),m=c.length;for(const a of d.changes.sort(((e,t)=>t.originalStart-e.originalStart)))g(p,m,p-(a.originalStart+a.originalLength)),p=a.originalStart,m=a.modifiedStart-h,this.spliceSimple([...u,p],a.originalLength,l.f.slice(c,m,m+a.modifiedLength),n);g(p,m,p)}spliceSimple(e,t,i=l.f.empty(),{onDidCreateNode:s,onDidDeleteNode:r,diffIdentityProvider:o}){const{parentNode:a,listIndex:c,revealed:h,visible:d}=this.getParentNodeWithListIndex(e),u=[],g=l.f.map(i,(e=>this.createTreeNode(e,a,a.visible?1:0,h,u,s))),p=e[e.length-1];let m=0;for(let n=p;n>=0&&n<a.children.length;n--){const e=a.children[n];if(e.visible){m=e.visibleChildIndex;break}}const f=[];let _=0,v=0;for(const n of g)f.push(n),v+=n.renderNodeCount,n.visible&&(n.visibleChildIndex=m+_++);const C=(0,n.V4)(a.children,p,t,f);o?a.lastDiffIds?(0,n.V4)(a.lastDiffIds,p,t,f.map((e=>o.getId(e.element).toString()))):a.lastDiffIds=a.children.map((e=>o.getId(e.element).toString())):a.lastDiffIds=void 0;let E=0;for(const n of C)n.visible&&E++;if(0!==E)for(let n=p+f.length;n<a.children.length;n++){const e=a.children[n];e.visible&&(e.visibleChildIndex-=E)}if(a.visibleChildrenCount+=_-E,h&&d){const e=C.reduce(((e,t)=>e+(t.visible?t.renderNodeCount:0)),0);this._updateAncestorsRenderNodeCount(a,v-e),this.list.splice(c,e,u)}if(C.length>0&&r){const e=t=>{r(t),t.children.forEach(e)};C.forEach(e)}this._onDidSplice.fire({insertedNodes:f,deletedNodes:C});let b=a;for(;b;){if(2===b.visibility){this.refilterDelayer.trigger((()=>this.refilter()));break}b=b.parent}}rerender(e){if(0===e.length)throw new s.jh(this.user,"Invalid tree location");const{node:t,listIndex:i,revealed:n}=this.getTreeNodeWithListIndex(e);t.visible&&n&&this.list.splice(i,1,[t])}has(e){return this.hasTreeNode(e)}getListIndex(e){const{listIndex:t,visible:i,revealed:s}=this.getTreeNodeWithListIndex(e);return i&&s?t:-1}getListRenderCount(e){return this.getTreeNode(e).renderNodeCount}isCollapsible(e){return this.getTreeNode(e).collapsible}setCollapsible(e,t){const i=this.getTreeNode(e);"undefined"===typeof t&&(t=!i.collapsible);const s={collapsible:t};return this.eventBufferer.bufferEvents((()=>this._setCollapseState(e,s)))}isCollapsed(e){return this.getTreeNode(e).collapsed}setCollapsed(e,t,i){const s=this.getTreeNode(e);"undefined"===typeof t&&(t=!s.collapsed);const n={collapsed:t,recursive:i||!1};return this.eventBufferer.bufferEvents((()=>this._setCollapseState(e,n)))}_setCollapseState(e,t){const{node:i,listIndex:s,revealed:n}=this.getTreeNodeWithListIndex(e),r=this._setListNodeCollapseState(i,s,n,t);if(i!==this.root&&this.autoExpandSingleChildren&&r&&!u(t)&&i.collapsible&&!i.collapsed&&!t.recursive){let s=-1;for(let e=0;e<i.children.length;e++){if(i.children[e].visible){if(s>-1){s=-1;break}s=e}}s>-1&&this._setCollapseState([...e,s],t)}return r}_setListNodeCollapseState(e,t,i,s){const n=this._setNodeCollapseState(e,s,!1);if(!i||!e.visible||!n)return n;const r=e.renderNodeCount,o=this.updateNodeAfterCollapseChange(e),a=r-(-1===t?0:1);return this.list.splice(t+1,a,o.slice(1)),n}_setNodeCollapseState(e,t,i){let s;if(e===this.root?s=!1:(u(t)?(s=e.collapsible!==t.collapsible,e.collapsible=t.collapsible):e.collapsible?(s=e.collapsed!==t.collapsed,e.collapsed=t.collapsed):s=!1,s&&this._onDidChangeCollapseState.fire({node:e,deep:i})),!u(t)&&t.recursive)for(const n of e.children)s=this._setNodeCollapseState(n,t,!0)||s;return s}expandTo(e){this.eventBufferer.bufferEvents((()=>{let t=this.getTreeNode(e);for(;t.parent;)t=t.parent,e=e.slice(0,e.length-1),t.collapsed&&this._setCollapseState(e,{collapsed:!1,recursive:!1})}))}refilter(){const e=this.root.renderNodeCount,t=this.updateNodeAfterFilterChange(this.root);this.list.splice(0,e,t),this.refilterDelayer.cancel()}createTreeNode(e,t,i,s,n,r){const o={parent:t,element:e.element,children:[],depth:t.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:"boolean"===typeof e.collapsible?e.collapsible:"undefined"!==typeof e.collapsed,collapsed:"undefined"===typeof e.collapsed?this.collapseByDefault:e.collapsed,renderNodeCount:1,visibility:1,visible:!0,filterData:void 0},a=this._filterNode(o,i);o.visibility=a,s&&n.push(o);const c=e.children||l.f.empty(),h=s&&0!==a&&!o.collapsed;let d=0,u=1;for(const l of c){const e=this.createTreeNode(l,o,a,h,n,r);o.children.push(e),u+=e.renderNodeCount,e.visible&&(e.visibleChildIndex=d++)}return this.allowNonCollapsibleParents||(o.collapsible=o.collapsible||o.children.length>0),o.visibleChildrenCount=d,o.visible=2===a?d>0:1===a,o.visible?o.collapsed||(o.renderNodeCount=u):(o.renderNodeCount=0,s&&n.pop()),r?.(o),o}updateNodeAfterCollapseChange(e){const t=e.renderNodeCount,i=[];return this._updateNodeAfterCollapseChange(e,i),this._updateAncestorsRenderNodeCount(e.parent,i.length-t),i}_updateNodeAfterCollapseChange(e,t){if(!1===e.visible)return 0;if(t.push(e),e.renderNodeCount=1,!e.collapsed)for(const i of e.children)e.renderNodeCount+=this._updateNodeAfterCollapseChange(i,t);return this._onDidChangeRenderNodeCount.fire(e),e.renderNodeCount}updateNodeAfterFilterChange(e){const t=e.renderNodeCount,i=[];return this._updateNodeAfterFilterChange(e,e.visible?1:0,i),this._updateAncestorsRenderNodeCount(e.parent,i.length-t),i}_updateNodeAfterFilterChange(e,t,i,s=!0){let n;if(e!==this.root){if(n=this._filterNode(e,t),0===n)return e.visible=!1,e.renderNodeCount=0,!1;s&&i.push(e)}const r=i.length;e.renderNodeCount=e===this.root?0:1;let o=!1;if(e.collapsed&&0===n)e.visibleChildrenCount=0;else{let t=0;for(const r of e.children)o=this._updateNodeAfterFilterChange(r,n,i,s&&!e.collapsed)||o,r.visible&&(r.visibleChildIndex=t++);e.visibleChildrenCount=t}return e!==this.root&&(e.visible=2===n?o:1===n,e.visibility=n),e.visible?e.collapsed||(e.renderNodeCount+=i.length-r):(e.renderNodeCount=0,s&&i.pop()),this._onDidChangeRenderNodeCount.fire(e),e.visible}_updateAncestorsRenderNodeCount(e,t){if(0!==t)for(;e;)e.renderNodeCount+=t,this._onDidChangeRenderNodeCount.fire(e),e=e.parent}_filterNode(e,t){const i=this.filter?this.filter.filter(e.element,t):1;return"boolean"===typeof i?(e.filterData=void 0,i?1:0):h(i)?(e.filterData=i.data,d(i.visibility)):(e.filterData=void 0,d(i))}hasTreeNode(e,t=this.root){if(!e||0===e.length)return!0;const[i,...s]=e;return!(i<0||i>t.children.length)&&this.hasTreeNode(s,t.children[i])}getTreeNode(e,t=this.root){if(!e||0===e.length)return t;const[i,...n]=e;if(i<0||i>t.children.length)throw new s.jh(this.user,"Invalid tree location");return this.getTreeNode(n,t.children[i])}getTreeNodeWithListIndex(e){if(0===e.length)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};const{parentNode:t,listIndex:i,revealed:n,visible:r}=this.getParentNodeWithListIndex(e),o=e[e.length-1];if(o<0||o>t.children.length)throw new s.jh(this.user,"Invalid tree location");const a=t.children[o];return{node:a,listIndex:i,revealed:n,visible:r&&a.visible}}getParentNodeWithListIndex(e,t=this.root,i=0,n=!0,r=!0){const[o,...a]=e;if(o<0||o>t.children.length)throw new s.jh(this.user,"Invalid tree location");for(let s=0;s<o;s++)i+=t.children[s].renderNodeCount;return n=n&&!t.collapsed,r=r&&t.visible,0===a.length?{parentNode:t,listIndex:i,revealed:n,visible:r}:this.getParentNodeWithListIndex(a,t.children[o],i+1,n,r)}getNode(e=[]){return this.getTreeNode(e)}getNodeLocation(e){const t=[];let i=e;for(;i.parent;)t.push(i.parent.children.indexOf(i)),i=i.parent;return t.reverse()}getParentNodeLocation(e){return 0===e.length?void 0:1===e.length?[]:(0,n.bS)(e)[0]}getFirstElementChild(e){const t=this.getTreeNode(e);if(0!==t.children.length)return t.children[0].element}}},37479:(e,t,i)=>{"use strict";i.d(t,{_:()=>l});var s=i(8597),n=i(48196),r=i(42904),o=i(20370),a=i(5662),c=i(10146);class l extends a.jG{constructor(e,t){super(),this.options=t,this.text="",this.title="",this.highlights=[],this.didEverRender=!1,this.supportIcons=t?.supportIcons??!1,this.domNode=s.BC(e,s.$("span.monaco-highlighted-label"))}get element(){return this.domNode}set(e,t=[],i="",s){e||(e=""),s&&(e=l.escapeNewLines(e,t)),this.didEverRender&&this.text===e&&this.title===i&&c.aI(this.highlights,t)||(this.text=e,this.title=i,this.highlights=t,this.render())}render(){const e=[];let t=0;for(const i of this.highlights){if(i.end===i.start)continue;if(t<i.start){const s=this.text.substring(t,i.start);this.supportIcons?e.push(...(0,o.n)(s)):e.push(s),t=i.start}const n=this.text.substring(t,i.end),r=s.$("span.highlight",void 0,...this.supportIcons?(0,o.n)(n):[n]);i.extraClasses&&r.classList.add(...i.extraClasses),e.push(r),t=i.end}if(t<this.text.length){const i=this.text.substring(t);this.supportIcons?e.push(...(0,o.n)(i)):e.push(i)}if(s.Ln(this.domNode,...e),this.options?.hoverDelegate?.showNativeHover)this.domNode.title=this.title;else if(this.customHover||""===this.title)this.customHover&&this.customHover.update(this.title);else{const e=this.options?.hoverDelegate??(0,r.nZ)("mouse");this.customHover=this._register((0,n.i)().setupManagedHover(e,this.domNode,this.title))}this.didEverRender=!0}static escapeNewLines(e,t){let i=0,s=0;return e.replace(/\r\n|\r|\n/g,((e,n)=>{s="\r\n"===e?-1:0,n+=i;for(const i of t)i.end<=n||(i.start>=n&&(i.start+=s),i.end>=n&&(i.end+=s));return i+=s,"\u23ce"}))}}},37550:(e,t,i)=>{"use strict";i.r(t),i.d(t,{IMarkerDecorationsService:()=>s});const s=(0,i(63591).u1)("markerDecorationsService")},37734:(e,t,i)=>{"use strict";i.d(t,{$z:()=>f,BA:()=>v,DW:()=>_,Hh:()=>h,Qn:()=>C,dO:()=>m,i_:()=>p,nz:()=>l,wt:()=>g});var s=i(8597),n=i(34072),r=i(47358),o=i(90766),a=i(5662),c=i(66261);class l{constructor(e,t){this.x=e,this.y=t,this._pageCoordinatesBrand=void 0}toClientCoordinates(e){return new h(this.x-e.scrollX,this.y-e.scrollY)}}class h{constructor(e,t){this.clientX=e,this.clientY=t,this._clientCoordinatesBrand=void 0}toPageCoordinates(e){return new l(this.clientX+e.scrollX,this.clientY+e.scrollY)}}class d{constructor(e,t,i,s){this.x=e,this.y=t,this.width=i,this.height=s,this._editorPagePositionBrand=void 0}}class u{constructor(e,t){this.x=e,this.y=t,this._positionRelativeToEditorBrand=void 0}}function g(e){const t=s.BK(e);return new d(t.left,t.top,t.width,t.height)}function p(e,t,i){const s=t.width/e.offsetWidth,n=t.height/e.offsetHeight,r=(i.x-t.x)/s,o=(i.y-t.y)/n;return new u(r,o)}class m extends r.P{constructor(e,t,i){super(s.zk(i),e),this._editorMouseEventBrand=void 0,this.isFromPointerCapture=t,this.pos=new l(this.posx,this.posy),this.editorPos=g(i),this.relativePos=p(i,this.editorPos,this.pos)}}class f{constructor(e){this._editorViewDomNode=e}_create(e){return new m(e,!1,this._editorViewDomNode)}onContextMenu(e,t){return s.ko(e,"contextmenu",(e=>{t(this._create(e))}))}onMouseUp(e,t){return s.ko(e,"mouseup",(e=>{t(this._create(e))}))}onMouseDown(e,t){return s.ko(e,s.Bx.MOUSE_DOWN,(e=>{t(this._create(e))}))}onPointerDown(e,t){return s.ko(e,s.Bx.POINTER_DOWN,(e=>{t(this._create(e),e.pointerId)}))}onMouseLeave(e,t){return s.ko(e,s.Bx.MOUSE_LEAVE,(e=>{t(this._create(e))}))}onMouseMove(e,t){return s.ko(e,"mousemove",(e=>t(this._create(e))))}}class _{constructor(e){this._editorViewDomNode=e}_create(e){return new m(e,!1,this._editorViewDomNode)}onPointerUp(e,t){return s.ko(e,"pointerup",(e=>{t(this._create(e))}))}onPointerDown(e,t){return s.ko(e,s.Bx.POINTER_DOWN,(e=>{t(this._create(e),e.pointerId)}))}onPointerLeave(e,t){return s.ko(e,s.Bx.POINTER_LEAVE,(e=>{t(this._create(e))}))}onPointerMove(e,t){return s.ko(e,"pointermove",(e=>t(this._create(e))))}}class v extends a.jG{constructor(e){super(),this._editorViewDomNode=e,this._globalPointerMoveMonitor=this._register(new n._),this._keydownListener=null}startMonitoring(e,t,i,n,r){this._keydownListener=s.b2(e.ownerDocument,"keydown",(e=>{e.toKeyCodeChord().isModifierKey()||this._globalPointerMoveMonitor.stopMonitoring(!0,e.browserEvent)}),!0),this._globalPointerMoveMonitor.startMonitoring(e,t,i,(e=>{n(new m(e,!0,this._editorViewDomNode))}),(e=>{this._keydownListener.dispose(),r(e)}))}stopMonitoring(){this._globalPointerMoveMonitor.stopMonitoring(!0)}}class C{static{this._idPool=0}constructor(e){this._editor=e,this._instanceId=++C._idPool,this._counter=0,this._rules=new Map,this._garbageCollectionScheduler=new o.uC((()=>this.garbageCollect()),1e3)}createClassNameRef(e){const t=this.getOrCreateRule(e);return t.increaseRefCount(),{className:t.className,dispose:()=>{t.decreaseRefCount(),this._garbageCollectionScheduler.schedule()}}}getOrCreateRule(e){const t=this.computeUniqueKey(e);let i=this._rules.get(t);if(!i){const n=this._counter++;i=new E(t,`dyn-rule-${this._instanceId}-${n}`,s.Cl(this._editor.getContainerDomNode())?this._editor.getContainerDomNode():void 0,e),this._rules.set(t,i)}return i}computeUniqueKey(e){return JSON.stringify(e)}garbageCollect(){for(const e of this._rules.values())e.hasReferences()||(this._rules.delete(e.key),e.dispose())}}class E{constructor(e,t,i,n){this.key=e,this.className=t,this.properties=n,this._referenceCount=0,this._styleElementDisposables=new a.Cm,this._styleElement=s.li(i,void 0,this._styleElementDisposables),this._styleElement.textContent=this.getCssText(this.className,this.properties)}getCssText(e,t){let i=`.${e} {`;for(const s in t){const e=t[s];let n;n="object"===typeof e?(0,c.GuP)(e.id):e;i+=`\n\t${b(s)}: ${n};`}return i+="\n}",i}dispose(){this._styleElementDisposables.dispose(),this._styleElement=void 0}increaseRefCount(){this._referenceCount++}decreaseRefCount(){this._referenceCount--}hasReferences(){return this._referenceCount>0}}function b(e){return e.replace(/(^[A-Z])/,(([e])=>e.toLowerCase())).replace(/([A-Z])/g,(([e])=>`-${e.toLowerCase()}`))}},37882:(e,t,i)=>{"use strict";i.d(t,{R$:()=>p,_k:()=>f,m2:()=>l,pS:()=>g,pz:()=>_,sA:()=>d});var s=i(26690),n=i(91508),r=i(25689);const o="$(",a=new RegExp(`\\$\\(${r.L.iconNameExpression}(?:${r.L.iconModifierExpression})?\\)`,"g"),c=new RegExp(`(\\\\)?${a.source}`,"g");function l(e){return e.replace(c,((e,t)=>t?e:`\\${e}`))}const h=new RegExp(`\\\\${a.source}`,"g");function d(e){return e.replace(h,(e=>`\\${e}`))}const u=new RegExp(`(\\s)?(\\\\)?${a.source}(\\s)?`,"g");function g(e){return-1===e.indexOf(o)?e:e.replace(u,((e,t,i,s)=>i?e:t||s||""))}function p(e){return e?e.replace(/\$\((.*?)\)/g,((e,t)=>` ${t} `)).trim():""}const m=new RegExp(`\\$\\(${r.L.iconNameCharacter}+\\)`,"g");function f(e){m.lastIndex=0;let t="";const i=[];let s=0;for(;;){const n=m.lastIndex,r=m.exec(e),o=e.substring(n,r?.index);if(o.length>0){t+=o;for(let e=0;e<o.length;e++)i.push(s)}if(!r)break;s+=r[0].length}return{text:t,iconOffsets:i}}function _(e,t,i=!1){const{text:r,iconOffsets:o}=t;if(!o||0===o.length)return(0,s.yr)(e,r,i);const a=(0,n.NB)(r," "),c=r.length-a.length,l=(0,s.yr)(e,a,i);if(l)for(const s of l){const e=o[s.start+c]+c;s.start+=e,s.end+=e}return l}},37927:(e,t,i)=>{"use strict";i.d(t,{gi:()=>d});var s=i(41234),n=i(5662),r=i(98067);function o(e,t){return!!e[t]}class a{constructor(e,t){this.target=e.target,this.isLeftClick=e.event.leftButton,this.isMiddleClick=e.event.middleButton,this.isRightClick=e.event.rightButton,this.hasTriggerModifier=o(e.event,t.triggerModifier),this.hasSideBySideModifier=o(e.event,t.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=e.event.detail<=1}}class c{constructor(e,t){this.keyCodeIsTriggerKey=e.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=e.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=o(e,t.triggerModifier)}}class l{constructor(e,t,i,s){this.triggerKey=e,this.triggerModifier=t,this.triggerSideBySideKey=i,this.triggerSideBySideModifier=s}equals(e){return this.triggerKey===e.triggerKey&&this.triggerModifier===e.triggerModifier&&this.triggerSideBySideKey===e.triggerSideBySideKey&&this.triggerSideBySideModifier===e.triggerSideBySideModifier}}function h(e){return"altKey"===e?r.zx?new l(57,"metaKey",6,"altKey"):new l(5,"ctrlKey",6,"altKey"):r.zx?new l(6,"altKey",57,"metaKey"):new l(6,"altKey",5,"ctrlKey")}class d extends n.jG{constructor(e,t){super(),this._onMouseMoveOrRelevantKeyDown=this._register(new s.vl),this.onMouseMoveOrRelevantKeyDown=this._onMouseMoveOrRelevantKeyDown.event,this._onExecute=this._register(new s.vl),this.onExecute=this._onExecute.event,this._onCancel=this._register(new s.vl),this.onCancel=this._onCancel.event,this._editor=e,this._extractLineNumberFromMouseEvent=t?.extractLineNumberFromMouseEvent??(e=>e.target.position?e.target.position.lineNumber:0),this._opts=h(this._editor.getOption(78)),this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._register(this._editor.onDidChangeConfiguration((e=>{if(e.hasChanged(78)){const e=h(this._editor.getOption(78));if(this._opts.equals(e))return;this._opts=e,this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._onCancel.fire()}}))),this._register(this._editor.onMouseMove((e=>this._onEditorMouseMove(new a(e,this._opts))))),this._register(this._editor.onMouseDown((e=>this._onEditorMouseDown(new a(e,this._opts))))),this._register(this._editor.onMouseUp((e=>this._onEditorMouseUp(new a(e,this._opts))))),this._register(this._editor.onKeyDown((e=>this._onEditorKeyDown(new c(e,this._opts))))),this._register(this._editor.onKeyUp((e=>this._onEditorKeyUp(new c(e,this._opts))))),this._register(this._editor.onMouseDrag((()=>this._resetHandler()))),this._register(this._editor.onDidChangeCursorSelection((e=>this._onDidChangeCursorSelection(e)))),this._register(this._editor.onDidChangeModel((e=>this._resetHandler()))),this._register(this._editor.onDidChangeModelContent((()=>this._resetHandler()))),this._register(this._editor.onDidScrollChange((e=>{(e.scrollTopChanged||e.scrollLeftChanged)&&this._resetHandler()})))}_onDidChangeCursorSelection(e){e.selection&&e.selection.startColumn!==e.selection.endColumn&&this._resetHandler()}_onEditorMouseMove(e){this._lastMouseMoveEvent=e,this._onMouseMoveOrRelevantKeyDown.fire([e,null])}_onEditorMouseDown(e){this._hasTriggerKeyOnMouseDown=e.hasTriggerModifier,this._lineNumberOnMouseDown=this._extractLineNumberFromMouseEvent(e)}_onEditorMouseUp(e){const t=this._extractLineNumberFromMouseEvent(e);this._hasTriggerKeyOnMouseDown&&this._lineNumberOnMouseDown&&this._lineNumberOnMouseDown===t&&this._onExecute.fire(e)}_onEditorKeyDown(e){this._lastMouseMoveEvent&&(e.keyCodeIsTriggerKey||e.keyCodeIsSideBySideKey&&e.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this._lastMouseMoveEvent,e]):e.hasTriggerModifier&&this._onCancel.fire()}_onEditorKeyUp(e){e.keyCodeIsTriggerKey&&this._onCancel.fire()}_resetHandler(){this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()}}},37954:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>i.e(7692).then(i.bind(i,47692))})},38280:(e,t,i)=>{"use strict";i.d(t,{O:()=>P});var s=i(25890),n=i(5662),r=i(91508),o=i(7085),a=i(36677),c=i(75326),l=i(17469),h=i(87289),d=i(67841),u=i(37227),g=i(29319),p=i(79326),m=i(98067);function f(e,t=m.uF){return(0,p.No)(e,t)?e.charAt(0).toUpperCase()+e.slice(1):e}Object.create(null);var _=i(74027),v=i(89403),C=i(58255),E=i(78209),b=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},S=function(e,t){return function(i,s){t(i,s,e)}};Object.freeze({CURRENT_YEAR:!0,CURRENT_YEAR_SHORT:!0,CURRENT_MONTH:!0,CURRENT_DATE:!0,CURRENT_HOUR:!0,CURRENT_MINUTE:!0,CURRENT_SECOND:!0,CURRENT_DAY_NAME:!0,CURRENT_DAY_NAME_SHORT:!0,CURRENT_MONTH_NAME:!0,CURRENT_MONTH_NAME_SHORT:!0,CURRENT_SECONDS_UNIX:!0,CURRENT_TIMEZONE_OFFSET:!0,SELECTION:!0,CLIPBOARD:!0,TM_SELECTED_TEXT:!0,TM_CURRENT_LINE:!0,TM_CURRENT_WORD:!0,TM_LINE_INDEX:!0,TM_LINE_NUMBER:!0,TM_FILENAME:!0,TM_FILENAME_BASE:!0,TM_DIRECTORY:!0,TM_FILEPATH:!0,CURSOR_INDEX:!0,CURSOR_NUMBER:!0,RELATIVE_FILEPATH:!0,BLOCK_COMMENT_START:!0,BLOCK_COMMENT_END:!0,LINE_COMMENT:!0,WORKSPACE_NAME:!0,WORKSPACE_FOLDER:!0,RANDOM:!0,RANDOM_HEX:!0,UUID:!0});class y{constructor(e){this._delegates=e}resolve(e){for(const t of this._delegates){const i=t.resolve(e);if(void 0!==i)return i}}}class w{constructor(e,t,i,s){this._model=e,this._selection=t,this._selectionIdx=i,this._overtypingCapturer=s}resolve(e){const{name:t}=e;if("SELECTION"===t||"TM_SELECTED_TEXT"===t){let t=this._model.getValueInRange(this._selection)||void 0,i=this._selection.startLineNumber!==this._selection.endLineNumber;if(!t&&this._overtypingCapturer){const e=this._overtypingCapturer.getLastOvertypedInfo(this._selectionIdx);e&&(t=e.value,i=e.multiline)}if(t&&i&&e.snippet){const i=this._model.getLineContent(this._selection.startLineNumber),s=(0,r.UU)(i,0,this._selection.startColumn-1);let n=s;e.snippet.walk((t=>t!==e&&(t instanceof g.EY&&(n=(0,r.UU)((0,r.uz)(t.value).pop())),!0)));const o=(0,r.Qp)(n,s);t=t.replace(/(\r\n|\r|\n)(.*)/g,((e,t,i)=>`${t}${n.substr(o)}${i}`))}return t}if("TM_CURRENT_LINE"===t)return this._model.getLineContent(this._selection.positionLineNumber);if("TM_CURRENT_WORD"===t){const e=this._model.getWordAtPosition({lineNumber:this._selection.positionLineNumber,column:this._selection.positionColumn});return e&&e.word||void 0}return"TM_LINE_INDEX"===t?String(this._selection.positionLineNumber-1):"TM_LINE_NUMBER"===t?String(this._selection.positionLineNumber):"CURSOR_INDEX"===t?String(this._selectionIdx):"CURSOR_NUMBER"===t?String(this._selectionIdx+1):void 0}}class R{constructor(e,t){this._labelService=e,this._model=t}resolve(e){const{name:t}=e;if("TM_FILENAME"===t)return _.P8(this._model.uri.fsPath);if("TM_FILENAME_BASE"===t){const e=_.P8(this._model.uri.fsPath),t=e.lastIndexOf(".");return t<=0?e:e.slice(0,t)}return"TM_DIRECTORY"===t?"."===_.pD(this._model.uri.fsPath)?"":this._labelService.getUriLabel((0,v.pD)(this._model.uri)):"TM_FILEPATH"===t?this._labelService.getUriLabel(this._model.uri):"RELATIVE_FILEPATH"===t?this._labelService.getUriLabel(this._model.uri,{relative:!0,noPrefix:!0}):void 0}}class L{constructor(e,t,i,s){this._readClipboardText=e,this._selectionIdx=t,this._selectionCount=i,this._spread=s}resolve(e){if("CLIPBOARD"!==e.name)return;const t=this._readClipboardText();if(t){if(this._spread){const e=t.split(/\r\n|\n|\r/).filter((e=>!(0,r.AV)(e)));if(e.length===this._selectionCount)return e[this._selectionIdx]}return t}}}let T=class{constructor(e,t,i){this._model=e,this._selection=t,this._languageConfigurationService=i}resolve(e){const{name:t}=e,i=this._model.getLanguageIdAtPosition(this._selection.selectionStartLineNumber,this._selection.selectionStartColumn),s=this._languageConfigurationService.getLanguageConfiguration(i).comments;if(s)return"LINE_COMMENT"===t?s.lineCommentToken||void 0:"BLOCK_COMMENT_START"===t?s.blockCommentStartToken||void 0:"BLOCK_COMMENT_END"===t&&s.blockCommentEndToken||void 0}};T=b([S(2,l.JZ)],T);class x{constructor(){this._date=new Date}static{this.dayNames=[E.kg("Sunday","Sunday"),E.kg("Monday","Monday"),E.kg("Tuesday","Tuesday"),E.kg("Wednesday","Wednesday"),E.kg("Thursday","Thursday"),E.kg("Friday","Friday"),E.kg("Saturday","Saturday")]}static{this.dayNamesShort=[E.kg("SundayShort","Sun"),E.kg("MondayShort","Mon"),E.kg("TuesdayShort","Tue"),E.kg("WednesdayShort","Wed"),E.kg("ThursdayShort","Thu"),E.kg("FridayShort","Fri"),E.kg("SaturdayShort","Sat")]}static{this.monthNames=[E.kg("January","January"),E.kg("February","February"),E.kg("March","March"),E.kg("April","April"),E.kg("May","May"),E.kg("June","June"),E.kg("July","July"),E.kg("August","August"),E.kg("September","September"),E.kg("October","October"),E.kg("November","November"),E.kg("December","December")]}static{this.monthNamesShort=[E.kg("JanuaryShort","Jan"),E.kg("FebruaryShort","Feb"),E.kg("MarchShort","Mar"),E.kg("AprilShort","Apr"),E.kg("MayShort","May"),E.kg("JuneShort","Jun"),E.kg("JulyShort","Jul"),E.kg("AugustShort","Aug"),E.kg("SeptemberShort","Sep"),E.kg("OctoberShort","Oct"),E.kg("NovemberShort","Nov"),E.kg("DecemberShort","Dec")]}resolve(e){const{name:t}=e;if("CURRENT_YEAR"===t)return String(this._date.getFullYear());if("CURRENT_YEAR_SHORT"===t)return String(this._date.getFullYear()).slice(-2);if("CURRENT_MONTH"===t)return String(this._date.getMonth().valueOf()+1).padStart(2,"0");if("CURRENT_DATE"===t)return String(this._date.getDate().valueOf()).padStart(2,"0");if("CURRENT_HOUR"===t)return String(this._date.getHours().valueOf()).padStart(2,"0");if("CURRENT_MINUTE"===t)return String(this._date.getMinutes().valueOf()).padStart(2,"0");if("CURRENT_SECOND"===t)return String(this._date.getSeconds().valueOf()).padStart(2,"0");if("CURRENT_DAY_NAME"===t)return x.dayNames[this._date.getDay()];if("CURRENT_DAY_NAME_SHORT"===t)return x.dayNamesShort[this._date.getDay()];if("CURRENT_MONTH_NAME"===t)return x.monthNames[this._date.getMonth()];if("CURRENT_MONTH_NAME_SHORT"===t)return x.monthNamesShort[this._date.getMonth()];if("CURRENT_SECONDS_UNIX"===t)return String(Math.floor(this._date.getTime()/1e3));if("CURRENT_TIMEZONE_OFFSET"===t){const e=this._date.getTimezoneOffset(),t=e>0?"-":"+",i=Math.trunc(Math.abs(e/60)),s=i<10?"0"+i:i,n=Math.abs(e)-60*i;return t+s+":"+(n<10?"0"+n:n)}}}class k{constructor(e){this._workspaceService=e}resolve(e){if(!this._workspaceService)return;const t=(0,u.Q_)(this._workspaceService.getWorkspace());return(0,u.A7)(t)?void 0:"WORKSPACE_NAME"===e.name?this._resolveWorkspaceName(t):"WORKSPACE_FOLDER"===e.name?this._resoveWorkspacePath(t):void 0}_resolveWorkspaceName(e){if((0,u.jB)(e))return _.P8(e.uri.path);let t=_.P8(e.configPath.path);return t.endsWith(u.kF)&&(t=t.substr(0,t.length-u.kF.length-1)),t}_resoveWorkspacePath(e){if((0,u.jB)(e))return f(e.uri.fsPath);const t=_.P8(e.configPath.path);let i=e.configPath.fsPath;return i.endsWith(t)&&(i=i.substr(0,i.length-t.length-1)),i?f(i):"/"}}class A{resolve(e){const{name:t}=e;return"RANDOM"===t?Math.random().toString().slice(-6):"RANDOM_HEX"===t?Math.random().toString(16).slice(-6):"UUID"===t?(0,C.b)():void 0}}var N,I=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},O=function(e,t){return function(i,s){t(i,s,e)}};class D{static{this._decor={active:h.kI.register({description:"snippet-placeholder-1",stickiness:0,className:"snippet-placeholder"}),inactive:h.kI.register({description:"snippet-placeholder-2",stickiness:1,className:"snippet-placeholder"}),activeFinal:h.kI.register({description:"snippet-placeholder-3",stickiness:1,className:"finish-snippet-placeholder"}),inactiveFinal:h.kI.register({description:"snippet-placeholder-4",stickiness:1,className:"finish-snippet-placeholder"})}}constructor(e,t,i){this._editor=e,this._snippet=t,this._snippetLineLeadingWhitespace=i,this._offset=-1,this._nestingLevel=1,this._placeholderGroups=(0,s.$z)(t.placeholders,g.Or.compareByIndex),this._placeholderGroupsIdx=-1}initialize(e){this._offset=e.newPosition}dispose(){this._placeholderDecorations&&this._editor.removeDecorations([...this._placeholderDecorations.values()]),this._placeholderGroups.length=0}_initDecorations(){if(-1===this._offset)throw new Error("Snippet not initialized!");if(this._placeholderDecorations)return;this._placeholderDecorations=new Map;const e=this._editor.getModel();this._editor.changeDecorations((t=>{for(const i of this._snippet.placeholders){const s=this._snippet.offset(i),n=this._snippet.fullLen(i),r=a.Q.fromPositions(e.getPositionAt(this._offset+s),e.getPositionAt(this._offset+s+n)),o=i.isFinalTabstop?D._decor.inactiveFinal:D._decor.inactive,c=t.addDecoration(r,o);this._placeholderDecorations.set(i,c)}}))}move(e){if(!this._editor.hasModel())return[];if(this._initDecorations(),this._placeholderGroupsIdx>=0){const e=[];for(const t of this._placeholderGroups[this._placeholderGroupsIdx])if(t.transform){const i=this._placeholderDecorations.get(t),s=this._editor.getModel().getDecorationRange(i),n=this._editor.getModel().getValueInRange(s),r=t.transform.resolve(n).split(/\r\n|\r|\n/);for(let e=1;e<r.length;e++)r[e]=this._editor.getModel().normalizeIndentation(this._snippetLineLeadingWhitespace+r[e]);e.push(o.k.replace(s,r.join(this._editor.getModel().getEOL())))}e.length>0&&this._editor.executeEdits("snippet.placeholderTransform",e)}let t=!1;!0===e&&this._placeholderGroupsIdx<this._placeholderGroups.length-1?(this._placeholderGroupsIdx+=1,t=!0):!1===e&&this._placeholderGroupsIdx>0&&(this._placeholderGroupsIdx-=1,t=!0);const i=this._editor.getModel().changeDecorations((e=>{const i=new Set,s=[];for(const n of this._placeholderGroups[this._placeholderGroupsIdx]){const r=this._placeholderDecorations.get(n),o=this._editor.getModel().getDecorationRange(r);s.push(new c.L(o.startLineNumber,o.startColumn,o.endLineNumber,o.endColumn)),t=t&&this._hasPlaceholderBeenCollapsed(n),e.changeDecorationOptions(r,n.isFinalTabstop?D._decor.activeFinal:D._decor.active),i.add(n);for(const t of this._snippet.enclosingPlaceholders(n)){const s=this._placeholderDecorations.get(t);e.changeDecorationOptions(s,t.isFinalTabstop?D._decor.activeFinal:D._decor.active),i.add(t)}}for(const[t,n]of this._placeholderDecorations)i.has(t)||e.changeDecorationOptions(n,t.isFinalTabstop?D._decor.inactiveFinal:D._decor.inactive);return s}));return t?this.move(e):i??[]}_hasPlaceholderBeenCollapsed(e){let t=e;for(;t;){if(t instanceof g.Or){const e=this._placeholderDecorations.get(t);if(this._editor.getModel().getDecorationRange(e).isEmpty()&&t.toString().length>0)return!0}t=t.parent}return!1}get isAtFirstPlaceholder(){return this._placeholderGroupsIdx<=0||0===this._placeholderGroups.length}get isAtLastPlaceholder(){return this._placeholderGroupsIdx===this._placeholderGroups.length-1}get hasPlaceholder(){return this._snippet.placeholders.length>0}get isTrivialSnippet(){if(0===this._snippet.placeholders.length)return!0;if(1===this._snippet.placeholders.length){const[e]=this._snippet.placeholders;if(e.isFinalTabstop&&this._snippet.rightMostDescendant===e)return!0}return!1}computePossibleSelections(){const e=new Map;for(const t of this._placeholderGroups){let i;for(const s of t){if(s.isFinalTabstop)break;i||(i=[],e.set(s.index,i));const t=this._placeholderDecorations.get(s),n=this._editor.getModel().getDecorationRange(t);if(!n){e.delete(s.index);break}i.push(n)}}return e}get activeChoice(){if(!this._placeholderDecorations)return;const e=this._placeholderGroups[this._placeholderGroupsIdx][0];if(!e?.choice)return;const t=this._placeholderDecorations.get(e);if(!t)return;const i=this._editor.getModel().getDecorationRange(t);return i?{range:i,choice:e.choice}:void 0}get hasChoice(){let e=!1;return this._snippet.walk((t=>(e=t instanceof g.GR,!e))),e}merge(e){const t=this._editor.getModel();this._nestingLevel*=10,this._editor.changeDecorations((i=>{for(const s of this._placeholderGroups[this._placeholderGroupsIdx]){const n=e.shift();console.assert(-1!==n._offset),console.assert(!n._placeholderDecorations);const r=n._snippet.placeholderInfo.last.index;for(const e of n._snippet.placeholderInfo.all)e.isFinalTabstop?e.index=s.index+(r+1)/this._nestingLevel:e.index=s.index+e.index/this._nestingLevel;this._snippet.replace(s,n._snippet.children);const o=this._placeholderDecorations.get(s);i.removeDecoration(o),this._placeholderDecorations.delete(s);for(const e of n._snippet.placeholders){const s=n._snippet.offset(e),r=n._snippet.fullLen(e),o=a.Q.fromPositions(t.getPositionAt(n._offset+s),t.getPositionAt(n._offset+s+r)),c=i.addDecoration(o,D._decor.inactive);this._placeholderDecorations.set(e,c)}}this._placeholderGroups=(0,s.$z)(this._snippet.placeholders,g.Or.compareByIndex)}))}}const M={overwriteBefore:0,overwriteAfter:0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0};let P=N=class{static adjustWhitespace(e,t,i,s,n){const o=e.getLineContent(t.lineNumber),a=(0,r.UU)(o,0,t.column-1);let c;return s.walk((t=>{if(!(t instanceof g.EY)||t.parent instanceof g.GR)return!0;if(n&&!n.has(t))return!0;const r=t.value.split(/\r\n|\r|\n/);if(i){const i=s.offset(t);if(0===i)r[0]=e.normalizeIndentation(r[0]);else{c=c??s.toString();const t=c.charCodeAt(i-1);10!==t&&13!==t||(r[0]=e.normalizeIndentation(a+r[0]))}for(let t=1;t<r.length;t++)r[t]=e.normalizeIndentation(a+r[t])}const o=r.join(e.getEOL());return o!==t.value&&(t.parent.replace(t,[new g.EY(o)]),c=void 0),!0})),a}static adjustSelection(e,t,i,s){if(0!==i||0!==s){const{positionLineNumber:n,positionColumn:r}=t,o=r-i,a=r+s,l=e.validateRange({startLineNumber:n,startColumn:o,endLineNumber:n,endColumn:a});t=c.L.createWithDirection(l.startLineNumber,l.startColumn,l.endLineNumber,l.endColumn,t.getDirection())}return t}static createEditsAndSnippetsFromSelections(e,t,i,s,n,r,c,l,h){const p=[],m=[];if(!e.hasModel())return{edits:p,snippets:m};const f=e.getModel(),_=e.invokeWithinContext((e=>e.get(u.VR))),v=e.invokeWithinContext((e=>new R(e.get(d.L),f))),C=()=>c,E=f.getValueInRange(N.adjustSelection(f,e.getSelection(),i,0)),b=f.getValueInRange(N.adjustSelection(f,e.getSelection(),0,s)),S=f.getLineFirstNonWhitespaceColumn(e.getSelection().positionLineNumber),I=e.getSelections().map(((e,t)=>({selection:e,idx:t}))).sort(((e,t)=>a.Q.compareRangesUsingStarts(e.selection,t.selection)));for(const{selection:a,idx:d}of I){let c=N.adjustSelection(f,a,i,0),u=N.adjustSelection(f,a,0,s);E!==f.getValueInRange(c)&&(c=a),b!==f.getValueInRange(u)&&(u=a);const R=a.setStartPosition(c.startLineNumber,c.startColumn).setEndPosition(u.endLineNumber,u.endColumn),O=(new g.fr).parse(t,!0,n),M=R.getStartPosition(),P=N.adjustWhitespace(f,M,r||d>0&&S!==f.getLineFirstNonWhitespaceColumn(a.positionLineNumber),O);O.resolveVariables(new y([v,new L(C,d,I.length,"spread"===e.getOption(79)),new w(f,a,d,l),new T(f,a,h),new x,new k(_),new A])),p[d]=o.k.replace(R,O.toString()),p[d].identifier={major:d,minor:0},p[d]._isTracked=!0,m[d]=new D(e,O,P)}return{edits:p,snippets:m}}static createEditsAndSnippetsFromEdits(e,t,i,s,n,r,c){if(!e.hasModel()||0===t.length)return{edits:[],snippets:[]};const l=[],h=e.getModel(),p=new g.fr,m=new g.mQ,f=new y([e.invokeWithinContext((e=>new R(e.get(d.L),h))),new L((()=>n),0,e.getSelections().length,"spread"===e.getOption(79)),new w(h,e.getSelection(),0,r),new T(h,e.getSelection(),c),new x,new k(e.invokeWithinContext((e=>e.get(u.VR)))),new A]);t=t.sort(((e,t)=>a.Q.compareRangesUsingStarts(e.range,t.range)));let _=0;for(let d=0;d<t.length;d++){const{range:e,template:i}=t[d];if(d>0){const i=t[d-1].range,s=a.Q.fromPositions(i.getEndPosition(),e.getStartPosition()),n=new g.EY(h.getValueInRange(s));m.appendChild(n),_+=n.value.length}const s=p.parseFragment(i,m);N.adjustWhitespace(h,e.getStartPosition(),!0,m,new Set(s)),m.resolveVariables(f);const n=m.toString(),r=n.slice(_);_=n.length;const c=o.k.replace(e,r);c.identifier={major:d,minor:0},c._isTracked=!0,l.push(c)}return p.ensureFinalTabstop(m,i,!0),{edits:l,snippets:[new D(e,m,"")]}}constructor(e,t,i=M,s){this._editor=e,this._template=t,this._options=i,this._languageConfigurationService=s,this._templateMerges=[],this._snippets=[]}dispose(){(0,n.AS)(this._snippets)}_logInfo(){return`template="${this._template}", merged_templates="${this._templateMerges.join(" -> ")}"`}insert(){if(!this._editor.hasModel())return;const{edits:e,snippets:t}="string"===typeof this._template?N.createEditsAndSnippetsFromSelections(this._editor,this._template,this._options.overwriteBefore,this._options.overwriteAfter,!1,this._options.adjustWhitespace,this._options.clipboardText,this._options.overtypingCapturer,this._languageConfigurationService):N.createEditsAndSnippetsFromEdits(this._editor,this._template,!1,this._options.adjustWhitespace,this._options.clipboardText,this._options.overtypingCapturer,this._languageConfigurationService);this._snippets=t,this._editor.executeEdits("snippet",e,(e=>{const i=e.filter((e=>!!e.identifier));for(let s=0;s<t.length;s++)t[s].initialize(i[s].textChange);return this._snippets[0].hasPlaceholder?this._move(!0):i.map((e=>c.L.fromPositions(e.range.getEndPosition())))})),this._editor.revealRange(this._editor.getSelections()[0])}merge(e,t=M){if(!this._editor.hasModel())return;this._templateMerges.push([this._snippets[0]._nestingLevel,this._snippets[0]._placeholderGroupsIdx,e]);const{edits:i,snippets:s}=N.createEditsAndSnippetsFromSelections(this._editor,e,t.overwriteBefore,t.overwriteAfter,!0,t.adjustWhitespace,t.clipboardText,t.overtypingCapturer,this._languageConfigurationService);this._editor.executeEdits("snippet",i,(e=>{const t=e.filter((e=>!!e.identifier));for(let n=0;n<s.length;n++)s[n].initialize(t[n].textChange);const i=s[0].isTrivialSnippet;if(!i){for(const e of this._snippets)e.merge(s);console.assert(0===s.length)}return this._snippets[0].hasPlaceholder&&!i?this._move(void 0):t.map((e=>c.L.fromPositions(e.range.getEndPosition())))}))}next(){const e=this._move(!0);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())}prev(){const e=this._move(!1);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())}_move(e){const t=[];for(const i of this._snippets){const s=i.move(e);t.push(...s)}return t}get isAtFirstPlaceholder(){return this._snippets[0].isAtFirstPlaceholder}get isAtLastPlaceholder(){return this._snippets[0].isAtLastPlaceholder}get hasPlaceholder(){return this._snippets[0].hasPlaceholder}get hasChoice(){return this._snippets[0].hasChoice}get activeChoice(){return this._snippets[0].activeChoice}isSelectionWithinPlaceholders(){if(!this.hasPlaceholder)return!1;const e=this._editor.getSelections();if(e.length<this._snippets.length)return!1;const t=new Map;for(const i of this._snippets){const s=i.computePossibleSelections();if(0===t.size)for(const[i,n]of s){n.sort(a.Q.compareRangesUsingStarts);for(const s of e)if(n[0].containsRange(s)){t.set(i,[]);break}}if(0===t.size)return!1;t.forEach(((e,t)=>{e.push(...s.get(t))}))}e.sort(a.Q.compareRangesUsingStarts);for(const[i,s]of t)if(s.length===e.length){s.sort(a.Q.compareRangesUsingStarts);for(let n=0;n<s.length;n++)s[n].containsRange(e[n])||t.delete(i)}else t.delete(i);return t.size>0}};P=N=I([O(3,l.JZ)],P)},38320:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>i.e(3478).then(i.bind(i,73478))})},38566:(e,t,i)=>{"use strict";var s;i.d(t,{GB:()=>r,i3:()=>n,l:()=>s}),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(s||(s={}));class n{constructor(e){if(this._neutralCharacter=null,this._neutralCharacterSearched=!1,this.open=e.open,this.close=e.close,this._inString=!0,this._inComment=!0,this._inRegEx=!0,Array.isArray(e.notIn))for(let t=0,i=e.notIn.length;t<i;t++){switch(e.notIn[t]){case"string":this._inString=!1;break;case"comment":this._inComment=!1;break;case"regex":this._inRegEx=!1}}}isOK(e){switch(e){case 0:return!0;case 1:return this._inComment;case 2:return this._inString;case 3:return this._inRegEx}}shouldAutoClose(e,t){if(0===e.getTokenCount())return!0;const i=e.findTokenIndexAtOffset(t-2),s=e.getStandardTokenType(i);return this.isOK(s)}_findNeutralCharacterInRange(e,t){for(let i=e;i<=t;i++){const e=String.fromCharCode(i);if(!this.open.includes(e)&&!this.close.includes(e))return e}return null}findNeutralCharacter(){return this._neutralCharacterSearched||(this._neutralCharacterSearched=!0,this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(48,57)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(97,122)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(65,90))),this._neutralCharacter}}class r{constructor(e){this.autoClosingPairsOpenByStart=new Map,this.autoClosingPairsOpenByEnd=new Map,this.autoClosingPairsCloseByStart=new Map,this.autoClosingPairsCloseByEnd=new Map,this.autoClosingPairsCloseSingleChar=new Map;for(const t of e)o(this.autoClosingPairsOpenByStart,t.open.charAt(0),t),o(this.autoClosingPairsOpenByEnd,t.open.charAt(t.open.length-1),t),o(this.autoClosingPairsCloseByStart,t.close.charAt(0),t),o(this.autoClosingPairsCloseByEnd,t.close.charAt(t.close.length-1),t),1===t.close.length&&1===t.open.length&&o(this.autoClosingPairsCloseSingleChar,t.close,t)}}function o(e,t,i){e.has(t)?e.get(t).push(i):e.set(t,[i])}},38728:(e,t,i)=>{"use strict";i.d(t,{Jk:()=>v,R7:()=>b});var s=i(31450),n=i(15092),r=i(87908),o=i(32799),a=i(97681),c=i(81782),l=i(83069),h=i(36677),d=i(75326),u=i(60002),g=i(17469),p=i(78209),m=i(253),f=i(32848),_=i(28290);class v extends s.DX{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,i){if(!t.hasModel())return;const s=(0,c.i)(t.getOption(132),t.getOption(131)),n=t.getModel(),r=t.getSelections(),a=r.length>1,h=r.map((e=>{const t=new l.y(e.positionLineNumber,e.positionColumn),i=this._move(s,n,t,this._wordNavigationType,a);return this._moveTo(e,i,this._inSelectionMode)}));if(n.pushStackElement(),t._getViewModel().setCursorStates("moveWordCommand",3,h.map((e=>o.MF.fromModelSelection(e)))),1===h.length){const e=new l.y(h[0].positionLineNumber,h[0].positionColumn);t.revealPosition(e,0)}}_moveTo(e,t,i){return i?new d.L(e.selectionStartLineNumber,e.selectionStartColumn,t.lineNumber,t.column):new d.L(t.lineNumber,t.column,t.lineNumber,t.column)}}class C extends v{_move(e,t,i,s,n){return a.z.moveWordLeft(e,t,i,s,n)}}class E extends v{_move(e,t,i,s,n){return a.z.moveWordRight(e,t,i,s)}}class b extends s.DX{constructor(e){super(e),this._whitespaceHeuristics=e.whitespaceHeuristics,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,i){const s=e.get(g.JZ);if(!t.hasModel())return;const r=(0,c.i)(t.getOption(132),t.getOption(131)),o=t.getModel(),a=t.getSelections(),l=t.getOption(6),h=t.getOption(11),d=s.getLanguageConfiguration(o.getLanguageId()).getAutoClosingPairs(),u=t._getViewModel(),p=a.map((e=>{const i=this._delete({wordSeparators:r,model:o,selection:e,whitespaceHeuristics:this._whitespaceHeuristics,autoClosingDelete:t.getOption(9),autoClosingBrackets:l,autoClosingQuotes:h,autoClosingPairs:d,autoClosedCharacters:u.getCursorAutoClosedCharacters()},this._wordNavigationType);return new n.iu(i,"")}));t.pushUndoStop(),t.executeCommands(this.id,p),t.pushUndoStop()}}class S extends b{_delete(e,t){const i=a.z.deleteWordLeft(e,t);return i||new h.Q(1,1,1,1)}}class y extends b{_delete(e,t){const i=a.z.deleteWordRight(e,t);if(i)return i;const s=e.model.getLineCount(),n=e.model.getLineMaxColumn(s);return new h.Q(s,n,s,n)}}class w extends s.ks{constructor(){super({id:"deleteInsideWord",precondition:u.R.writable,label:p.kg("deleteInsideWord","Delete Word"),alias:"Delete Word"})}run(e,t,i){if(!t.hasModel())return;const s=(0,c.i)(t.getOption(132),t.getOption(131)),r=t.getModel(),o=t.getSelections().map((e=>{const t=a.z.deleteInsideWord(s,r,e);return new n.iu(t,"")}));t.pushUndoStop(),t.executeCommands(this.id,o),t.pushUndoStop()}}(0,s.E_)(new class extends C{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartLeft",precondition:void 0})}}),(0,s.E_)(new class extends C{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndLeft",precondition:void 0})}}),(0,s.E_)(new class extends C{constructor(){super({inSelectionMode:!1,wordNavigationType:1,id:"cursorWordLeft",precondition:void 0,kbOpts:{kbExpr:f.M$.and(u.R.textInputFocus,f.M$.and(m.f,_.nd)?.negate()),primary:2063,mac:{primary:527},weight:100}})}}),(0,s.E_)(new class extends C{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartLeftSelect",precondition:void 0})}}),(0,s.E_)(new class extends C{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndLeftSelect",precondition:void 0})}}),(0,s.E_)(new class extends C{constructor(){super({inSelectionMode:!0,wordNavigationType:1,id:"cursorWordLeftSelect",precondition:void 0,kbOpts:{kbExpr:f.M$.and(u.R.textInputFocus,f.M$.and(m.f,_.nd)?.negate()),primary:3087,mac:{primary:1551},weight:100}})}}),(0,s.E_)(new class extends E{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartRight",precondition:void 0})}}),(0,s.E_)(new class extends E{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndRight",precondition:void 0,kbOpts:{kbExpr:f.M$.and(u.R.textInputFocus,f.M$.and(m.f,_.nd)?.negate()),primary:2065,mac:{primary:529},weight:100}})}}),(0,s.E_)(new class extends E{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordRight",precondition:void 0})}}),(0,s.E_)(new class extends E{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartRightSelect",precondition:void 0})}}),(0,s.E_)(new class extends E{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndRightSelect",precondition:void 0,kbOpts:{kbExpr:f.M$.and(u.R.textInputFocus,f.M$.and(m.f,_.nd)?.negate()),primary:3089,mac:{primary:1553},weight:100}})}}),(0,s.E_)(new class extends E{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordRightSelect",precondition:void 0})}}),(0,s.E_)(new class extends C{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityLeft",precondition:void 0})}_move(e,t,i,s,n){return super._move((0,c.i)(r.qB.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,s,n)}}),(0,s.E_)(new class extends C{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityLeftSelect",precondition:void 0})}_move(e,t,i,s,n){return super._move((0,c.i)(r.qB.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,s,n)}}),(0,s.E_)(new class extends E{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityRight",precondition:void 0})}_move(e,t,i,s,n){return super._move((0,c.i)(r.qB.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,s,n)}}),(0,s.E_)(new class extends E{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityRightSelect",precondition:void 0})}_move(e,t,i,s,n){return super._move((0,c.i)(r.qB.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,s,n)}}),(0,s.E_)(new class extends S{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartLeft",precondition:u.R.writable})}}),(0,s.E_)(new class extends S{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndLeft",precondition:u.R.writable})}}),(0,s.E_)(new class extends S{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordLeft",precondition:u.R.writable,kbOpts:{kbExpr:u.R.textInputFocus,primary:2049,mac:{primary:513},weight:100}})}}),(0,s.E_)(new class extends y{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartRight",precondition:u.R.writable})}}),(0,s.E_)(new class extends y{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndRight",precondition:u.R.writable})}}),(0,s.E_)(new class extends y{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordRight",precondition:u.R.writable,kbOpts:{kbExpr:u.R.textInputFocus,primary:2068,mac:{primary:532},weight:100}})}}),(0,s.Fl)(w)},38785:(e,t,i)=>{e.exports=i(64066)},38844:(e,t,i)=>{"use strict";i.d(t,{Qg:()=>u,Ud:()=>l,jD:()=>d});var s=i(51241),n=i(5662),r=i(31308),o=i(49154),a=i(87958),c=i(75326);function l(e){return h.get(e)}class h extends n.jG{static{this._map=new Map}static get(e){let t=h._map.get(e);if(!t){t=new h(e),h._map.set(e,t);const i=e.onDidDispose((()=>{const t=h._map.get(e);t&&(h._map.delete(e),t.dispose(),i.dispose())}))}return t}_beginUpdate(){this._updateCounter++,1===this._updateCounter&&(this._currentTransaction=new o.XL((()=>{})))}_endUpdate(){if(this._updateCounter--,0===this._updateCounter){const e=this._currentTransaction;this._currentTransaction=void 0,e.finish()}}constructor(e){super(),this.editor=e,this._updateCounter=0,this._currentTransaction=void 0,this._model=(0,r.FY)(this,this.editor.getModel()),this.model=this._model,this.isReadonly=(0,r.y0)(this,this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(92))),this._versionId=(0,r.Zh)({owner:this,lazy:!0},this.editor.getModel()?.getVersionId()??null),this.versionId=this._versionId,this._selections=(0,r.Zh)({owner:this,equalsFn:(0,s.KC)((0,s.S3)(c.L.selectionsEqual)),lazy:!0},this.editor.getSelections()??null),this.selections=this._selections,this.isFocused=(0,r.y0)(this,(e=>{const t=this.editor.onDidFocusEditorWidget(e),i=this.editor.onDidBlurEditorWidget(e);return{dispose(){t.dispose(),i.dispose()}}}),(()=>this.editor.hasWidgetFocus())),this.value=(0,a.dQ)(this,(e=>(this.versionId.read(e),this.model.read(e)?.getValue()??"")),((e,t)=>{const i=this.model.get();null!==i&&e!==i.getValue()&&i.setValue(e)})),this.valueIsEmpty=(0,r.un)(this,(e=>(this.versionId.read(e),0===this.editor.getModel()?.getValueLength()))),this.cursorSelection=(0,r.C)({owner:this,equalsFn:(0,s.KC)(c.L.selectionsEqual)},(e=>this.selections.read(e)?.[0]??null)),this.onDidType=(0,r.Yd)(this),this.scrollTop=(0,r.y0)(this.editor.onDidScrollChange,(()=>this.editor.getScrollTop())),this.scrollLeft=(0,r.y0)(this.editor.onDidScrollChange,(()=>this.editor.getScrollLeft())),this.layoutInfo=(0,r.y0)(this.editor.onDidLayoutChange,(()=>this.editor.getLayoutInfo())),this.layoutInfoContentLeft=this.layoutInfo.map((e=>e.contentLeft)),this.layoutInfoDecorationsLeft=this.layoutInfo.map((e=>e.decorationsLeft)),this.contentWidth=(0,r.y0)(this.editor.onDidContentSizeChange,(()=>this.editor.getContentWidth())),this._overlayWidgetCounter=0,this._register(this.editor.onBeginUpdate((()=>this._beginUpdate()))),this._register(this.editor.onEndUpdate((()=>this._endUpdate()))),this._register(this.editor.onDidChangeModel((()=>{this._beginUpdate();try{this._model.set(this.editor.getModel(),this._currentTransaction),this._forceUpdate()}finally{this._endUpdate()}}))),this._register(this.editor.onDidType((e=>{this._beginUpdate();try{this._forceUpdate(),this.onDidType.trigger(this._currentTransaction,e)}finally{this._endUpdate()}}))),this._register(this.editor.onDidChangeModelContent((e=>{this._beginUpdate();try{this._versionId.set(this.editor.getModel()?.getVersionId()??null,this._currentTransaction,e),this._forceUpdate()}finally{this._endUpdate()}}))),this._register(this.editor.onDidChangeCursorSelection((e=>{this._beginUpdate();try{this._selections.set(this.editor.getSelections(),this._currentTransaction,e),this._forceUpdate()}finally{this._endUpdate()}})))}forceUpdate(e){this._beginUpdate();try{if(this._forceUpdate(),!e)return;return e(this._currentTransaction)}finally{this._endUpdate()}}_forceUpdate(){this._beginUpdate();try{this._model.set(this.editor.getModel(),this._currentTransaction),this._versionId.set(this.editor.getModel()?.getVersionId()??null,this._currentTransaction,void 0),this._selections.set(this.editor.getSelections(),this._currentTransaction,void 0)}finally{this._endUpdate()}}getOption(e){return(0,r.y0)(this,(t=>this.editor.onDidChangeConfiguration((i=>{i.hasChanged(e)&&t(void 0)}))),(()=>this.editor.getOption(e)))}setDecorations(e){const t=new n.Cm,i=this.editor.createDecorationsCollection();return t.add((0,r.zL)({owner:this,debugName:()=>`Apply decorations from ${e.debugName}`},(t=>{const s=e.read(t);i.set(s)}))),t.add({dispose:()=>{i.clear()}}),t}createOverlayWidget(e){const t="observableOverlayWidget"+this._overlayWidgetCounter++,i={getDomNode:()=>e.domNode,getPosition:()=>e.position.get(),getId:()=>t,allowEditorOverflow:e.allowEditorOverflow,getMinContentWidthInPx:()=>e.minContentWidthInPx.get()};this.editor.addOverlayWidget(i);const s=(0,r.fm)((t=>{e.position.read(t),e.minContentWidthInPx.read(t),this.editor.layoutOverlayWidget(i)}));return(0,n.s)((()=>{s.dispose(),this.editor.removeOverlayWidget(i)}))}}function d(e,t){return(0,r.ht)({createEmptyChangeSummary:()=>({deltas:[],didChange:!1}),handleChange:(t,i)=>{if(t.didChange(e)){const e=t.change;void 0!==e&&i.deltas.push(e),i.didChange=!0}return!0}},((i,s)=>{const n=e.read(i);s.didChange&&t(n,s.deltas)}))}function u(e,t){const i=new n.Cm,s=d(e,((e,s)=>{i.clear(),t(e,s,i)}));return{dispose(){s.dispose(),i.dispose()}}}},39286:(e,t,i)=>{"use strict";i.d(t,{n:()=>o});var s=i(58925),n=i(83069),r=i(36677);class o{async provideSelectionRanges(e,t){const i=[];for(const s of t){const t=[];i.push(t);const n=new Map;await new Promise((t=>o._bracketsRightYield(t,0,e,s,n))),await new Promise((i=>o._bracketsLeftYield(i,0,e,s,n,t)))}return i}static{this._maxDuration=30}static{this._maxRounds=2}static _bracketsRightYield(e,t,i,n,r){const a=new Map,c=Date.now();for(;;){if(t>=o._maxRounds){e();break}if(!n){e();break}const l=i.bracketPairs.findNextBracket(n);if(!l){e();break}if(Date.now()-c>o._maxDuration){setTimeout((()=>o._bracketsRightYield(e,t+1,i,n,r)));break}if(l.bracketInfo.isOpeningBracket){const e=l.bracketInfo.bracketText,t=a.has(e)?a.get(e):0;a.set(e,t+1)}else{const e=l.bracketInfo.getOpeningBrackets()[0].bracketText;let t=a.has(e)?a.get(e):0;if(t-=1,a.set(e,Math.max(0,t)),t<0){let t=r.get(e);t||(t=new s.w,r.set(e,t)),t.push(l.range)}}n=l.range.getEndPosition()}}static _bracketsLeftYield(e,t,i,s,n,a){const c=new Map,l=Date.now();for(;;){if(t>=o._maxRounds&&0===n.size){e();break}if(!s){e();break}const h=i.bracketPairs.findPrevBracket(s);if(!h){e();break}if(Date.now()-l>o._maxDuration){setTimeout((()=>o._bracketsLeftYield(e,t+1,i,s,n,a)));break}if(h.bracketInfo.isOpeningBracket){const e=h.bracketInfo.bracketText;let t=c.has(e)?c.get(e):0;if(t-=1,c.set(e,Math.max(0,t)),t<0){const t=n.get(e);if(t){const s=t.shift();0===t.size&&n.delete(e);const c=r.Q.fromPositions(h.range.getEndPosition(),s.getStartPosition()),l=r.Q.fromPositions(h.range.getStartPosition(),s.getEndPosition());a.push({range:c}),a.push({range:l}),o._addBracketLeading(i,l,a)}}}else{const e=h.bracketInfo.getOpeningBrackets()[0].bracketText,t=c.has(e)?c.get(e):0;c.set(e,t+1)}s=h.range.getStartPosition()}}static _addBracketLeading(e,t,i){if(t.startLineNumber===t.endLineNumber)return;const s=t.startLineNumber,o=e.getLineFirstNonWhitespaceColumn(s);0!==o&&o!==t.startColumn&&(i.push({range:r.Q.fromPositions(new n.y(s,o),t.getEndPosition())}),i.push({range:r.Q.fromPositions(new n.y(s,1),t.getEndPosition())}));const a=s-1;if(a>0){const s=e.getLineFirstNonWhitespaceColumn(a);s===t.startColumn&&s!==e.getLineLastNonWhitespaceColumn(a)&&(i.push({range:r.Q.fromPositions(new n.y(a,s),t.getEndPosition())}),i.push({range:r.Q.fromPositions(new n.y(a,1),t.getEndPosition())}))}}}},39439:(e,t,i)=>{var s=i(33157),n=i(90552);e.exports=function(e,t,i,r){var o=null==e?0:e.length;return o?(i&&"number"!=typeof i&&n(e,t,i)&&(i=0,r=o),s(e,t,i,r)):[]}},39866:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>i.e(2372).then(i.bind(i,22372))})},40014:(e,t,i)=>{"use strict";i.d(t,{Ay:()=>C});var s=i(27145),n=i(59284),r=i(8964),o=i(66643),a=i(42392);const c=()=>`ck.${((e,t)=>{let i="";for(let s=e;s>0;--s)i+=t[Math.floor(Math.random()*t.length)];return i})(10,"0123456789abcdefghijklmnopqrstuvwxyz")}`,l=n.memo;var h=i(82435);const d=(0,h.withNaming)({e:"__",m:"_"}),u=(0,h.withNaming)({n:"chartkit-",e:"__",m:"_"});class g extends n.Component{constructor(){super(...arguments),this.state={error:void 0},this.resetError=()=>{this.state.error&&this.setState({error:void 0})}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(){var e,t;const{error:i}=this.state;i&&(null===(t=(e=this.props).onError)||void 0===t||t.call(e,{error:i}))}componentDidUpdate(e){if(e.data!==this.props.data){const{error:e}=this.state;e&&"code"in e&&e.code===a.iY.NO_DATA&&this.resetError()}}render(){const{error:e}=this.state;if(e){const t=function(e){const t="code"in e&&e.code;return(e.message||t||(0,r.R)("error","label_unknown-error")).toString()}(e);return this.props.renderError?this.props.renderError({error:e,message:t,resetError:this.resetError}):n.createElement("div",null,t)}return this.props.children}}var p=i(74417);const m=u("loader"),f=e=>{var{renderPluginLoader:t}=e,i=(0,s.Tt)(e,["renderPluginLoader"]);const r=null===t||void 0===t?void 0:t();return"undefined"!==typeof r?r:n.createElement("div",{className:m()},n.createElement(p.a,Object.assign({},i)))},_=d("chartkit"),v=e=>{const t=n.useRef(),{instanceRef:i,id:l,type:h,isMobile:d,renderPluginLoader:u}=e,g=(0,s.Tt)(e,["instanceRef","id","type","isMobile","renderPluginLoader"]),p=n.useMemo((()=>c()),[]),m=l||p,v=o.W.get("lang"),C=o.W.get("plugins").find((e=>e.type===h));if(!C)throw new a.R({code:a.iY.UNKNOWN_PLUGIN,message:(0,r.R)("error","label_unknown-plugin",{type:h})});const E=C.renderer;return n.useImperativeHandle(i,(()=>({reflow(e){var i;(null===(i=t.current)||void 0===i?void 0:i.reflow)&&t.current.reflow(e)}})),[]),n.createElement(n.Suspense,{fallback:n.createElement(f,{renderPluginLoader:u})},n.createElement("div",{className:_({mobile:d},"chartkit-theme_common")},n.createElement(E,Object.assign({ref:t,id:m,lang:v},g))))},C=l(n.forwardRef((function(e,t){return n.createElement(g,{onError:e.onError,data:e.data,renderError:e.renderError},n.createElement(v,Object.assign({instanceRef:t},e)))})))},40142:(e,t,i)=>{"use strict";var s=i(24939),n=i(31450),r=i(36677),o=i(60002),a=i(17469),c=i(7085),l=i(83069),h=i(75326);class d{constructor(e,t,i){this.languageConfigurationService=i,this._selection=e,this._insertSpace=t,this._usedEndToken=null}static _haystackHasNeedleAtOffset(e,t,i){if(i<0)return!1;const s=t.length;if(i+s>e.length)return!1;for(let n=0;n<s;n++){const s=e.charCodeAt(i+n),r=t.charCodeAt(n);if(s!==r&&(!(s>=65&&s<=90&&s+32===r)&&!(r>=65&&r<=90&&r+32===s)))return!1}return!0}_createOperationsForBlockComment(e,t,i,s,n,o){const a=e.startLineNumber,c=e.startColumn,l=e.endLineNumber,h=e.endColumn,u=n.getLineContent(a),g=n.getLineContent(l);let p,m=u.lastIndexOf(t,c-1+t.length),f=g.indexOf(i,h-1-i.length);if(-1!==m&&-1!==f)if(a===l){u.substring(m+t.length,f).indexOf(i)>=0&&(m=-1,f=-1)}else{const e=u.substring(m+t.length),s=g.substring(0,f);(e.indexOf(i)>=0||s.indexOf(i)>=0)&&(m=-1,f=-1)}-1!==m&&-1!==f?(s&&m+t.length<u.length&&32===u.charCodeAt(m+t.length)&&(t+=" "),s&&f>0&&32===g.charCodeAt(f-1)&&(i=" "+i,f-=1),p=d._createRemoveBlockCommentOperations(new r.Q(a,m+t.length+1,l,f+1),t,i)):(p=d._createAddBlockCommentOperations(e,t,i,this._insertSpace),this._usedEndToken=1===p.length?i:null);for(const r of p)o.addTrackedEditOperation(r.range,r.text)}static _createRemoveBlockCommentOperations(e,t,i){const s=[];return r.Q.isEmpty(e)?s.push(c.k.delete(new r.Q(e.startLineNumber,e.startColumn-t.length,e.endLineNumber,e.endColumn+i.length))):(s.push(c.k.delete(new r.Q(e.startLineNumber,e.startColumn-t.length,e.startLineNumber,e.startColumn))),s.push(c.k.delete(new r.Q(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn+i.length)))),s}static _createAddBlockCommentOperations(e,t,i,s){const n=[];return r.Q.isEmpty(e)?n.push(c.k.replace(new r.Q(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),t+" "+i)):(n.push(c.k.insert(new l.y(e.startLineNumber,e.startColumn),t+(s?" ":""))),n.push(c.k.insert(new l.y(e.endLineNumber,e.endColumn),(s?" ":"")+i))),n}getEditOperations(e,t){const i=this._selection.startLineNumber,s=this._selection.startColumn;e.tokenization.tokenizeIfCheap(i);const n=e.getLanguageIdAtPosition(i,s),r=this.languageConfigurationService.getLanguageConfiguration(n).comments;r&&r.blockCommentStartToken&&r.blockCommentEndToken&&this._createOperationsForBlockComment(this._selection,r.blockCommentStartToken,r.blockCommentEndToken,this._insertSpace,e,t)}computeCursorState(e,t){const i=t.getInverseEditOperations();if(2===i.length){const e=i[0],t=i[1];return new h.L(e.range.endLineNumber,e.range.endColumn,t.range.startLineNumber,t.range.startColumn)}{const e=i[0].range,t=this._usedEndToken?-this._usedEndToken.length-1:0;return new h.L(e.endLineNumber,e.endColumn+t,e.endLineNumber,e.endColumn+t)}}}var u=i(91508);class g{constructor(e,t,i,s,n,r,o){this.languageConfigurationService=e,this._selection=t,this._indentSize=i,this._type=s,this._insertSpace=n,this._selectionId=null,this._deltaColumn=0,this._moveEndPositionDown=!1,this._ignoreEmptyLines=r,this._ignoreFirstLine=o||!1}static _gatherPreflightCommentStrings(e,t,i,s){e.tokenization.tokenizeIfCheap(t);const n=e.getLanguageIdAtPosition(t,1),r=s.getLanguageConfiguration(n).comments,o=r?r.lineCommentToken:null;if(!o)return null;const a=[];for(let c=0,l=i-t+1;c<l;c++)a[c]={ignore:!1,commentStr:o,commentStrOffset:0,commentStrLength:o.length};return a}static _analyzeLines(e,t,i,s,n,r,o,a){let c,l=!0;c=0===e||1!==e;for(let h=0,g=s.length;h<g;h++){const a=s[h],g=n+h;if(g===n&&o){a.ignore=!0;continue}const p=i.getLineContent(g),m=u.HG(p);if(-1!==m){if(l=!1,a.ignore=!1,a.commentStrOffset=m,c&&!d._haystackHasNeedleAtOffset(p,a.commentStr,m)&&(0===e?c=!1:1===e||(a.ignore=!0)),c&&t){const e=m+a.commentStrLength;e<p.length&&32===p.charCodeAt(e)&&(a.commentStrLength+=1)}}else a.ignore=r,a.commentStrOffset=p.length}if(0===e&&l){c=!1;for(let e=0,t=s.length;e<t;e++)s[e].ignore=!1}return{supported:!0,shouldRemoveComments:c,lines:s}}static _gatherPreflightData(e,t,i,s,n,r,o,a){const c=g._gatherPreflightCommentStrings(i,s,n,a);return null===c?{supported:!1}:g._analyzeLines(e,t,i,c,s,r,o,a)}_executeLineComments(e,t,i,s){let n;i.shouldRemoveComments?n=g._createRemoveLineCommentsOperations(i.lines,s.startLineNumber):(g._normalizeInsertionPoint(e,i.lines,s.startLineNumber,this._indentSize),n=this._createAddLineCommentsOperations(i.lines,s.startLineNumber));const o=new l.y(s.positionLineNumber,s.positionColumn);for(let a=0,c=n.length;a<c;a++)if(t.addEditOperation(n[a].range,n[a].text),r.Q.isEmpty(n[a].range)&&r.Q.getStartPosition(n[a].range).equals(o)){e.getLineContent(o.lineNumber).length+1===o.column&&(this._deltaColumn=(n[a].text||"").length)}this._selectionId=t.trackSelection(s)}_attemptRemoveBlockComment(e,t,i,s){let n=t.startLineNumber,o=t.endLineNumber;const a=s.length+Math.max(e.getLineFirstNonWhitespaceColumn(t.startLineNumber),t.startColumn);let c=e.getLineContent(n).lastIndexOf(i,a-1),l=e.getLineContent(o).indexOf(s,t.endColumn-1-i.length);return-1!==c&&-1===l&&(l=e.getLineContent(n).indexOf(s,c+i.length),o=n),-1===c&&-1!==l&&(c=e.getLineContent(o).lastIndexOf(i,l),n=o),!t.isEmpty()||-1!==c&&-1!==l||(c=e.getLineContent(n).indexOf(i),-1!==c&&(l=e.getLineContent(n).indexOf(s,c+i.length))),-1!==c&&32===e.getLineContent(n).charCodeAt(c+i.length)&&(i+=" "),-1!==l&&32===e.getLineContent(o).charCodeAt(l-1)&&(s=" "+s,l-=1),-1!==c&&-1!==l?d._createRemoveBlockCommentOperations(new r.Q(n,c+i.length+1,o,l+1),i,s):null}_executeBlockComment(e,t,i){e.tokenization.tokenizeIfCheap(i.startLineNumber);const s=e.getLanguageIdAtPosition(i.startLineNumber,1),n=this.languageConfigurationService.getLanguageConfiguration(s).comments;if(!n||!n.blockCommentStartToken||!n.blockCommentEndToken)return;const o=n.blockCommentStartToken,a=n.blockCommentEndToken;let c=this._attemptRemoveBlockComment(e,i,o,a);if(!c){if(i.isEmpty()){const t=e.getLineContent(i.startLineNumber);let s=u.HG(t);-1===s&&(s=t.length),c=d._createAddBlockCommentOperations(new r.Q(i.startLineNumber,s+1,i.startLineNumber,t.length+1),o,a,this._insertSpace)}else c=d._createAddBlockCommentOperations(new r.Q(i.startLineNumber,e.getLineFirstNonWhitespaceColumn(i.startLineNumber),i.endLineNumber,e.getLineMaxColumn(i.endLineNumber)),o,a,this._insertSpace);1===c.length&&(this._deltaColumn=o.length+1)}this._selectionId=t.trackSelection(i);for(const r of c)t.addEditOperation(r.range,r.text)}getEditOperations(e,t){let i=this._selection;if(this._moveEndPositionDown=!1,i.startLineNumber===i.endLineNumber&&this._ignoreFirstLine)return t.addEditOperation(new r.Q(i.startLineNumber,e.getLineMaxColumn(i.startLineNumber),i.startLineNumber+1,1),i.startLineNumber===e.getLineCount()?"":"\n"),void(this._selectionId=t.trackSelection(i));i.startLineNumber<i.endLineNumber&&1===i.endColumn&&(this._moveEndPositionDown=!0,i=i.setEndPosition(i.endLineNumber-1,e.getLineMaxColumn(i.endLineNumber-1)));const s=g._gatherPreflightData(this._type,this._insertSpace,e,i.startLineNumber,i.endLineNumber,this._ignoreEmptyLines,this._ignoreFirstLine,this.languageConfigurationService);return s.supported?this._executeLineComments(e,t,s,i):this._executeBlockComment(e,t,i)}computeCursorState(e,t){let i=t.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(i=i.setEndPosition(i.endLineNumber+1,1)),new h.L(i.selectionStartLineNumber,i.selectionStartColumn+this._deltaColumn,i.positionLineNumber,i.positionColumn+this._deltaColumn)}static _createRemoveLineCommentsOperations(e,t){const i=[];for(let s=0,n=e.length;s<n;s++){const n=e[s];n.ignore||i.push(c.k.delete(new r.Q(t+s,n.commentStrOffset+1,t+s,n.commentStrOffset+n.commentStrLength+1)))}return i}_createAddLineCommentsOperations(e,t){const i=[],s=this._insertSpace?" ":"";for(let n=0,r=e.length;n<r;n++){const r=e[n];r.ignore||i.push(c.k.insert(new l.y(t+n,r.commentStrOffset+1),r.commentStr+s))}return i}static nextVisibleColumn(e,t,i,s){return i?e+(t-e%t):e+s}static _normalizeInsertionPoint(e,t,i,s){let n,r,o=1073741824;for(let a=0,c=t.length;a<c;a++){if(t[a].ignore)continue;const n=e.getLineContent(i+a);let r=0;for(let e=0,i=t[a].commentStrOffset;r<o&&e<i;e++)r=g.nextVisibleColumn(r,s,9===n.charCodeAt(e),1);r<o&&(o=r)}o=Math.floor(o/s)*s;for(let a=0,c=t.length;a<c;a++){if(t[a].ignore)continue;const c=e.getLineContent(i+a);let l=0;for(n=0,r=t[a].commentStrOffset;l<o&&n<r;n++)l=g.nextVisibleColumn(l,s,9===c.charCodeAt(n),1);t[a].commentStrOffset=l>o?n-1:n}}}var p=i(78209),m=i(27195);class f extends n.ks{constructor(e,t){super(t),this._type=e}run(e,t){const i=e.get(a.JZ);if(!t.hasModel())return;const s=[],n=t.getModel().getOptions(),o=t.getOption(23),c=t.getSelections().map(((e,t)=>({selection:e,index:t,ignoreFirstLine:!1})));c.sort(((e,t)=>r.Q.compareRangesUsingStarts(e.selection,t.selection)));let l=c[0];for(let r=1;r<c.length;r++){const e=c[r];l.selection.endLineNumber===e.selection.startLineNumber&&(l.index<e.index?e.ignoreFirstLine=!0:(l.ignoreFirstLine=!0,l=e))}for(const r of c)s.push(new g(i,r.selection,n.indentSize,this._type,o.insertSpace,o.ignoreEmptyLines,r.ignoreFirstLine));t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop()}}class _ extends n.ks{constructor(){super({id:"editor.action.blockComment",label:p.kg("comment.block","Toggle Block Comment"),alias:"Toggle Block Comment",precondition:o.R.writable,kbOpts:{kbExpr:o.R.editorTextFocus,primary:1567,linux:{primary:3103},weight:100},menuOpts:{menuId:m.D8.MenubarEditMenu,group:"5_insert",title:p.kg({key:"miToggleBlockComment",comment:["&& denotes a mnemonic"]},"Toggle &&Block Comment"),order:2}})}run(e,t){const i=e.get(a.JZ);if(!t.hasModel())return;const s=t.getOption(23),n=[],r=t.getSelections();for(const o of r)n.push(new d(o,s.insertSpace,i));t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}}(0,n.Fl)(class extends f{constructor(){super(0,{id:"editor.action.commentLine",label:p.kg("comment.line","Toggle Line Comment"),alias:"Toggle Line Comment",precondition:o.R.writable,kbOpts:{kbExpr:o.R.editorTextFocus,primary:2138,weight:100},menuOpts:{menuId:m.D8.MenubarEditMenu,group:"5_insert",title:p.kg({key:"miToggleLineComment",comment:["&& denotes a mnemonic"]},"&&Toggle Line Comment"),order:1}})}}),(0,n.Fl)(class extends f{constructor(){super(1,{id:"editor.action.addCommentLine",label:p.kg("comment.line.add","Add Line Comment"),alias:"Add Line Comment",precondition:o.R.writable,kbOpts:{kbExpr:o.R.editorTextFocus,primary:(0,s.m5)(2089,2081),weight:100}})}}),(0,n.Fl)(class extends f{constructor(){super(2,{id:"editor.action.removeCommentLine",label:p.kg("comment.line.remove","Remove Line Comment"),alias:"Remove Line Comment",precondition:o.R.writable,kbOpts:{kbExpr:o.R.editorTextFocus,primary:(0,s.m5)(2089,2099),weight:100}})}}),(0,n.Fl)(_)},40340:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>i.e(9010).then(i.bind(i,99010))})},40579:(e,t,i)=>{"use strict";i.d(t,{Gc:()=>v,Nn:()=>c,Xw:()=>l,rh:()=>_,yF:()=>f});var s=i(64383),n=i(1245),r=i(19131),o=i(32956);class a{get length(){return this._length}constructor(e){this._length=e}}class c extends a{static create(e,t,i){let s=e.length;return t&&(s=(0,r.QB)(s,t.length)),i&&(s=(0,r.QB)(s,i.length)),new c(s,e,t,i,t?t.missingOpeningBracketIds:o.gV.getEmpty())}get kind(){return 2}get listHeight(){return 0}get childrenLength(){return 3}getChild(e){switch(e){case 0:return this.openingBracket;case 1:return this.child;case 2:return this.closingBracket}throw new Error("Invalid child index")}get children(){const e=[];return e.push(this.openingBracket),this.child&&e.push(this.child),this.closingBracket&&e.push(this.closingBracket),e}constructor(e,t,i,s,n){super(e),this.openingBracket=t,this.child=i,this.closingBracket=s,this.missingOpeningBracketIds=n}canBeReused(e){return null!==this.closingBracket&&!e.intersects(this.missingOpeningBracketIds)}deepClone(){return new c(this.length,this.openingBracket.deepClone(),this.child&&this.child.deepClone(),this.closingBracket&&this.closingBracket.deepClone(),this.missingOpeningBracketIds)}computeMinIndentation(e,t){return this.child?this.child.computeMinIndentation((0,r.QB)(e,this.openingBracket.length),t):Number.MAX_SAFE_INTEGER}}class l extends a{static create23(e,t,i,s=!1){let n=e.length,o=e.missingOpeningBracketIds;if(e.listHeight!==t.listHeight)throw new Error("Invalid list heights");if(n=(0,r.QB)(n,t.length),o=o.merge(t.missingOpeningBracketIds),i){if(e.listHeight!==i.listHeight)throw new Error("Invalid list heights");n=(0,r.QB)(n,i.length),o=o.merge(i.missingOpeningBracketIds)}return s?new d(n,e.listHeight+1,e,t,i,o):new h(n,e.listHeight+1,e,t,i,o)}static getEmpty(){return new g(r.Vp,0,[],o.gV.getEmpty())}get kind(){return 4}get missingOpeningBracketIds(){return this._missingOpeningBracketIds}constructor(e,t,i){super(e),this.listHeight=t,this._missingOpeningBracketIds=i,this.cachedMinIndentation=-1}throwIfImmutable(){}makeLastElementMutable(){this.throwIfImmutable();const e=this.childrenLength;if(0===e)return;const t=this.getChild(e-1),i=4===t.kind?t.toMutable():t;return t!==i&&this.setChild(e-1,i),i}makeFirstElementMutable(){this.throwIfImmutable();if(0===this.childrenLength)return;const e=this.getChild(0),t=4===e.kind?e.toMutable():e;return e!==t&&this.setChild(0,t),t}canBeReused(e){if(e.intersects(this.missingOpeningBracketIds))return!1;if(0===this.childrenLength)return!1;let t=this;for(;4===t.kind;){const e=t.childrenLength;if(0===e)throw new s.D7;t=t.getChild(e-1)}return t.canBeReused(e)}handleChildrenChanged(){this.throwIfImmutable();const e=this.childrenLength;let t=this.getChild(0).length,i=this.getChild(0).missingOpeningBracketIds;for(let s=1;s<e;s++){const e=this.getChild(s);t=(0,r.QB)(t,e.length),i=i.merge(e.missingOpeningBracketIds)}this._length=t,this._missingOpeningBracketIds=i,this.cachedMinIndentation=-1}computeMinIndentation(e,t){if(-1!==this.cachedMinIndentation)return this.cachedMinIndentation;let i=Number.MAX_SAFE_INTEGER,s=e;for(let n=0;n<this.childrenLength;n++){const e=this.getChild(n);e&&(i=Math.min(i,e.computeMinIndentation(s,t)),s=(0,r.QB)(s,e.length))}return this.cachedMinIndentation=i,i}}class h extends l{get childrenLength(){return null!==this._item3?3:2}getChild(e){switch(e){case 0:return this._item1;case 1:return this._item2;case 2:return this._item3}throw new Error("Invalid child index")}setChild(e,t){switch(e){case 0:return void(this._item1=t);case 1:return void(this._item2=t);case 2:return void(this._item3=t)}throw new Error("Invalid child index")}get children(){return this._item3?[this._item1,this._item2,this._item3]:[this._item1,this._item2]}get item1(){return this._item1}get item2(){return this._item2}get item3(){return this._item3}constructor(e,t,i,s,n,r){super(e,t,r),this._item1=i,this._item2=s,this._item3=n}deepClone(){return new h(this.length,this.listHeight,this._item1.deepClone(),this._item2.deepClone(),this._item3?this._item3.deepClone():null,this.missingOpeningBracketIds)}appendChildOfSameHeight(e){if(this._item3)throw new Error("Cannot append to a full (2,3) tree node");this.throwIfImmutable(),this._item3=e,this.handleChildrenChanged()}unappendChild(){if(!this._item3)throw new Error("Cannot remove from a non-full (2,3) tree node");this.throwIfImmutable();const e=this._item3;return this._item3=null,this.handleChildrenChanged(),e}prependChildOfSameHeight(e){if(this._item3)throw new Error("Cannot prepend to a full (2,3) tree node");this.throwIfImmutable(),this._item3=this._item2,this._item2=this._item1,this._item1=e,this.handleChildrenChanged()}unprependChild(){if(!this._item3)throw new Error("Cannot remove from a non-full (2,3) tree node");this.throwIfImmutable();const e=this._item1;return this._item1=this._item2,this._item2=this._item3,this._item3=null,this.handleChildrenChanged(),e}toMutable(){return this}}class d extends h{toMutable(){return new h(this.length,this.listHeight,this.item1,this.item2,this.item3,this.missingOpeningBracketIds)}throwIfImmutable(){throw new Error("this instance is immutable")}}class u extends l{get childrenLength(){return this._children.length}getChild(e){return this._children[e]}setChild(e,t){this._children[e]=t}get children(){return this._children}constructor(e,t,i,s){super(e,t,s),this._children=i}deepClone(){const e=new Array(this._children.length);for(let t=0;t<this._children.length;t++)e[t]=this._children[t].deepClone();return new u(this.length,this.listHeight,e,this.missingOpeningBracketIds)}appendChildOfSameHeight(e){this.throwIfImmutable(),this._children.push(e),this.handleChildrenChanged()}unappendChild(){this.throwIfImmutable();const e=this._children.pop();return this.handleChildrenChanged(),e}prependChildOfSameHeight(e){this.throwIfImmutable(),this._children.unshift(e),this.handleChildrenChanged()}unprependChild(){this.throwIfImmutable();const e=this._children.shift();return this.handleChildrenChanged(),e}toMutable(){return this}}class g extends u{toMutable(){return new u(this.length,this.listHeight,[...this.children],this.missingOpeningBracketIds)}throwIfImmutable(){throw new Error("this instance is immutable")}}const p=[];class m extends a{get listHeight(){return 0}get childrenLength(){return 0}getChild(e){return null}get children(){return p}deepClone(){return this}}class f extends m{get kind(){return 0}get missingOpeningBracketIds(){return o.gV.getEmpty()}canBeReused(e){return!0}computeMinIndentation(e,t){const i=(0,r.l4)(e),s=(0===i.columnCount?i.lineCount:i.lineCount+1)+1,o=(0,r.eu)((0,r.QB)(e,this.length))+1;let a=Number.MAX_SAFE_INTEGER;for(let r=s;r<=o;r++){const e=t.getLineFirstNonWhitespaceColumn(r),i=t.getLineContent(r);if(0===e)continue;const s=n.A.visibleColumnFromColumn(i,e,t.getOptions().tabSize);a=Math.min(a,s)}return a}}class _ extends m{static create(e,t,i){return new _(e,t,i)}get kind(){return 1}get missingOpeningBracketIds(){return o.gV.getEmpty()}constructor(e,t,i){super(e),this.bracketInfo=t,this.bracketIds=i}get text(){return this.bracketInfo.bracketText}get languageId(){return this.bracketInfo.languageId}canBeReused(e){return!1}computeMinIndentation(e,t){return Number.MAX_SAFE_INTEGER}}class v extends m{get kind(){return 3}constructor(e,t){super(t),this.missingOpeningBracketIds=e}canBeReused(e){return!e.intersects(this.missingOpeningBracketIds)}computeMinIndentation(e,t){return Number.MAX_SAFE_INTEGER}}},40677:(e,t,i)=>{"use strict";var s=i(31450),n=i(10350),r=i(31308),o=i(49154),a=i(29163),c=i(60002),l=i(78209),h=i(32848);const d=new h.N1("inlineEditsVisible",!1,(0,l.kg)("inlineEditsVisible","Whether an inline edit is visible")),u=new h.N1("inlineEditsIsPinned",!1,(0,l.kg)("isPinned","Whether an inline edit is visible"));var g=i(5662),p=i(87958),m=i(38844),f=i(41127),_=i(75326),v=i(32500),C=i(56942),E=i(90766),b=i(18447),S=i(51241),y=i(64383),w=i(79400),R=i(94746),L=i(86571),T=i(62083),x=i(23750),k=i(20940),A=i(8597),N=i(49435),I=i(10691),O=i(92368),D=i(83941),M=i(87289),P=i(18864),F=i(1098),U=i(90870),H=i(63591),B=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},W=function(e,t){return function(i,s){t(i,s,e)}};class V{constructor(e,t,i){this.range=e,this.newLines=t,this.changes=i}}let z=class extends g.jG{constructor(e,t,i,n){super(),this._editor=e,this._edit=t,this._userPrompt=i,this._instantiationService=n,this._editorObs=(0,m.Ud)(this._editor),this._elements=(0,A.h)("div.inline-edits-widget",{style:{position:"absolute",overflow:"visible",top:"0px",left:"0px"}},[(0,A.h)("div@editorContainer",{style:{position:"absolute",top:"0px",left:"0px",width:"500px",height:"500px"}},[(0,A.h)("div.toolbar@toolbar",{style:{position:"absolute",top:"-25px",left:"0px"}}),(0,A.h)("div.promptEditor@promptEditor",{style:{position:"absolute",top:"-25px",left:"80px",width:"300px",height:"22px"}}),(0,A.h)("div.preview@editor",{style:{position:"absolute",top:"0px",left:"0px"}})]),(0,A.Mc)("svg",{style:{overflow:"visible",pointerEvents:"none"}},[(0,A.Mc)("defs",[(0,A.Mc)("linearGradient",{id:"Gradient2",x1:"0",y1:"0",x2:"1",y2:"0"},[(0,A.Mc)("stop",{offset:"0%",class:"gradient-stop"}),(0,A.Mc)("stop",{offset:"100%",class:"gradient-stop"})])]),(0,A.Mc)("path@path",{d:"",fill:"url(#Gradient2)"})])]),this._previewTextModel=this._register(this._instantiationService.createInstance(M.Bz,"",D.vH,M.Bz.DEFAULT_CREATION_OPTIONS,null)),this._setText=(0,r.un)((e=>{const t=this._edit.read(e);t&&this._previewTextModel.setValue(t.newLines.join("\n"))})).recomputeInitiallyAndOnChange(this._store),this._promptTextModel=this._register(this._instantiationService.createInstance(M.Bz,"",D.vH,M.Bz.DEFAULT_CREATION_OPTIONS,null)),this._promptEditor=this._register(this._instantiationService.createInstance(a.t,this._elements.promptEditor,{glyphMargin:!1,lineNumbers:"off",minimap:{enabled:!1},guides:{indentation:!1,bracketPairs:!1,bracketPairsHorizontal:!1,highlightActiveIndentation:!1},folding:!1,selectOnLineNumbers:!1,selectionHighlight:!1,columnSelection:!1,overviewRulerBorder:!1,overviewRulerLanes:0,lineDecorationsWidth:0,lineNumbersMinChars:0,placeholder:"Describe the change you want...",fontFamily:N.z},{contributions:s.dS.getSomeEditorContributions([U.D.ID,F.X.ID,P.d.ID]),isSimpleWidget:!0},this._editor)),this._previewEditor=this._register(this._instantiationService.createInstance(a.t,this._elements.editor,{glyphMargin:!1,lineNumbers:"off",minimap:{enabled:!1},guides:{indentation:!1,bracketPairs:!1,bracketPairsHorizontal:!1,highlightActiveIndentation:!1},folding:!1,selectOnLineNumbers:!1,selectionHighlight:!1,columnSelection:!1,overviewRulerBorder:!1,overviewRulerLanes:0,lineDecorationsWidth:0,lineNumbersMinChars:0},{contributions:[]},this._editor)),this._previewEditorObs=(0,m.Ud)(this._previewEditor),this._decorations=(0,r.un)(this,(e=>{this._setText.read(e);const t=this._edit.read(e)?.changes;if(!t)return[];const i=[],s=[];if(1===t.length&&t[0].innerChanges[0].modifiedRange.equalsRange(this._previewTextModel.getFullModelRange()))return[];for(const n of t)if(n.original.isEmpty||i.push({range:n.original.toInclusiveRange(),options:I.Ob}),n.modified.isEmpty||s.push({range:n.modified.toInclusiveRange(),options:I.Kl}),n.modified.isEmpty||n.original.isEmpty)n.original.isEmpty||i.push({range:n.original.toInclusiveRange(),options:I.KL}),n.modified.isEmpty||s.push({range:n.modified.toInclusiveRange(),options:I.Ou});else for(const e of n.innerChanges||[])n.original.contains(e.originalRange.startLineNumber)&&i.push({range:e.originalRange,options:e.originalRange.isEmpty()?I.wp:I.Zb}),n.modified.contains(e.modifiedRange.startLineNumber)&&s.push({range:e.modifiedRange,options:e.modifiedRange.isEmpty()?I.GM:I.bk});return s})),this._layout1=(0,r.un)(this,(e=>{const t=this._editor.getModel(),i=this._edit.read(e);if(!i)return null;const s=i.range;let n=0;for(let r=s.startLineNumber;r<s.endLineNumberExclusive;r++){const e=t.getLineMaxColumn(r),i=this._editor.getOffsetForColumn(r,e);n=Math.max(n,i)}return{left:this._editor.getLayoutInfo().contentLeft+n}})),this._layout=(0,r.un)(this,(e=>{const t=this._edit.read(e);if(!t)return null;const i=t.range,s=this._editorObs.scrollLeft.read(e),n=this._layout1.read(e).left+20-s,r=this._editor.getTopForLineNumber(i.startLineNumber)-this._editorObs.scrollTop.read(e),o=this._editor.getTopForLineNumber(i.endLineNumberExclusive)-this._editorObs.scrollTop.read(e),a=new G(n,r),c=new G(n,o),l=o-r,h=this._editor.getOption(67)*t.newLines.length,d=l-h;return{topCode:a,bottomCode:c,codeHeight:l,topEdit:new G(n+50,r+d/2),bottomEdit:new G(n+50,o-d/2),editHeight:h}}));const o=(0,r.un)(this,(e=>void 0!==this._edit.read(e)||void 0!==this._userPrompt.read(e)));var c,l,h;this._register((0,O.AV)(this._elements.root,{display:(0,r.un)(this,(e=>o.read(e)?"block":"none"))})),this._register((0,O.rX)(this._editor.getDomNode(),this._elements.root)),this._register((0,m.Ud)(e).createOverlayWidget({domNode:this._elements.root,position:(0,r.lk)(null),allowEditorOverflow:!1,minContentWidthInPx:(0,r.un)((e=>{const t=this._layout1.read(e)?.left;if(void 0===t)return 0;return t+this._previewEditorObs.contentWidth.read(e)}))})),this._previewEditor.setModel(this._previewTextModel),this._register(this._previewEditorObs.setDecorations(this._decorations)),this._register((0,r.fm)((e=>{const t=this._layout.read(e);if(!t)return;const{topCode:i,bottomCode:s,topEdit:n,bottomEdit:r,editHeight:o}=t,a=(new j).moveTo(i).lineTo(i.deltaX(10)).curveTo(i.deltaX(50),n.deltaX(-40),n.deltaX(-0)).lineTo(n).lineTo(r).lineTo(r.deltaX(-0)).curveTo(r.deltaX(-40),s.deltaX(50),s.deltaX(10)).lineTo(s).build();this._elements.path.setAttribute("d",a),this._elements.editorContainer.style.top=`${n.y}px`,this._elements.editorContainer.style.left=`${n.x}px`,this._elements.editorContainer.style.height=`${o}px`;const c=this._previewEditorObs.contentWidth.read(e);this._previewEditor.layout({height:o,width:c})}))),this._promptEditor.setModel(this._promptTextModel),this._promptEditor.layout(),this._register(function(e,t){const i=new g.Cm;return i.add((0,r.fm)((i=>{const s=e.read(i);t.set(s,void 0)}))),i.add((0,r.fm)((i=>{const s=t.read(i);e.set(s,void 0)}))),i}((c=this._userPrompt,l=e=>e??"",h=e=>e,(0,p.dQ)(void 0,(e=>l(c.read(e))),((e,t)=>c.set(h(e),t)))),(0,m.Ud)(this._promptEditor).value)),this._register((0,r.fm)((e=>{const t=(0,m.Ud)(this._promptEditor).isFocused.read(e);this._elements.root.classList.toggle("focused",t)})))}};z=B([W(3,H._Y)],z);class G{constructor(e,t){this.x=e,this.y=t}deltaX(e){return new G(this.x+e,this.y)}}class j{constructor(){this._data=""}moveTo(e){return this._data+=`M ${e.x} ${e.y} `,this}lineTo(e){return this._data+=`L ${e.x} ${e.y} `,this}curveTo(e,t,i){return this._data+=`C ${e.x} ${e.y} ${t.x} ${t.y} ${i.x} ${i.y} `,this}build(){return this._data}}var K,Y=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},q=function(e,t){return function(i,s){t(i,s,e)}};let $=class extends g.jG{static{K=this}static{this._modelId=0}static _createUniqueUri(){return w.r.from({scheme:"inline-edits",path:(new Date).toString()+String(K._modelId++)})}constructor(e,t,i,s,n,o,a){super(),this.textModel=e,this._textModelVersionId=t,this._selection=i,this._debounceValue=s,this.languageFeaturesService=n,this._diffProviderFactoryService=o,this._modelService=a,this._forceUpdateExplicitlySignal=(0,r.Yd)(this),this._selectedInlineCompletionId=(0,r.FY)(this,void 0),this._isActive=(0,r.FY)(this,!1),this._originalModel=(0,p.a0)((()=>this._modelService.createModel("",null,K._createUniqueUri()))).keepObserved(this._store),this._modifiedModel=(0,p.a0)((()=>this._modelService.createModel("",null,K._createUniqueUri()))).keepObserved(this._store),this._pinnedRange=new X(this.textModel,this._textModelVersionId),this.isPinned=this._pinnedRange.range.map((e=>!!e)),this.userPrompt=(0,r.FY)(this,void 0),this.inlineEdit=(0,r.un)(this,(e=>this._inlineEdit.read(e)?.promiseResult.read(e)?.data)),this._inlineEdit=(0,r.un)(this,(e=>{const t=this.selectedInlineEdit.read(e);if(!t)return;const i=t.inlineCompletion.range;if(""===t.inlineCompletion.insertText.trim())return;let s=t.inlineCompletion.insertText.split(/\r\n|\r|\n/);function n(e){const t=e[0].match(/^\s*/)?.[0]??"";return e.map((e=>e.replace(new RegExp("^"+t),"")))}s=n(s);let o=this.textModel.getValueInRange(i).split(/\r\n|\r|\n/);o=n(o),this._originalModel.get().setValue(o.join("\n")),this._modifiedModel.get().setValue(s.join("\n"));const a=this._diffProviderFactoryService.createDiffProvider({diffAlgorithm:"advanced"});return r.BK.fromFn((async()=>{const e=await a.computeDiff(this._originalModel.get(),this._modifiedModel.get(),{computeMoves:!1,ignoreTrimWhitespace:!1,maxComputationTimeMs:1e3},b.XO.None);if(!e.identical)return new V(L.M.fromRangeInclusive(i),n(s),e.changes)}))})),this._fetchStore=this._register(new g.Cm),this._inlineEditsFetchResult=(0,r.X2)(this,void 0),this._inlineEdits=(0,r.C)({owner:this,equalsFn:S.dB},(e=>this._inlineEditsFetchResult.read(e)?.completions.map((e=>new Q(e)))??[])),this._fetchInlineEditsPromise=(0,r.nb)({owner:this,createEmptyChangeSummary:()=>({inlineCompletionTriggerKind:T.qw.Automatic}),handleChange:(e,t)=>(e.didChange(this._forceUpdateExplicitlySignal)&&(t.inlineCompletionTriggerKind=T.qw.Explicit),!0)},(async(e,t)=>{this._fetchStore.clear(),this._forceUpdateExplicitlySignal.read(e),this._textModelVersionId.read(e);const i=this._pinnedRange.range.read(e)??(s=this._selection.read(e),(e=>e.isEmpty()?void 0:e)(s));var s;if(!i)return this._inlineEditsFetchResult.set(void 0,void 0),void this.userPrompt.set(void 0,void 0);const n={triggerKind:t.inlineCompletionTriggerKind,selectedSuggestionInfo:void 0,userPrompt:this.userPrompt.read(e)},r=(0,b.bs)(this._fetchStore);await(0,E.wR)(200,r);const o=await(0,k.Yk)(this.languageFeaturesService.inlineCompletionsProvider,i,this.textModel,n,r);r.isCancellationRequested||this._inlineEditsFetchResult.set(o,void 0)})),this._filteredInlineEditItems=(0,r.C)({owner:this,equalsFn:(0,S.S3)()},(e=>this._inlineEdits.read(e))),this.selectedInlineCompletionIndex=(0,r.un)(this,(e=>{const t=this._selectedInlineCompletionId.read(e),i=this._filteredInlineEditItems.read(e),s=void 0===this._selectedInlineCompletionId?-1:i.findIndex((e=>e.semanticId===t));return-1===s?(this._selectedInlineCompletionId.set(void 0,void 0),0):s})),this.selectedInlineEdit=(0,r.un)(this,(e=>this._filteredInlineEditItems.read(e)[this.selectedInlineCompletionIndex.read(e)])),this._register((0,r.OI)(this._fetchInlineEditsPromise))}async triggerExplicitly(e){(0,r.PO)(e,(e=>{this._isActive.set(!0,e),this._forceUpdateExplicitlySignal.trigger(e)})),await this._fetchInlineEditsPromise.get()}stop(e){(0,r.PO)(e,(e=>{this.userPrompt.set(void 0,e),this._isActive.set(!1,e),this._inlineEditsFetchResult.set(void 0,e),this._pinnedRange.setRange(void 0,e)}))}async _deltaSelectedInlineCompletionIndex(e){await this.triggerExplicitly();const t=this._filteredInlineEditItems.get()||[];if(t.length>0){const i=(this.selectedInlineCompletionIndex.get()+e+t.length)%t.length;this._selectedInlineCompletionId.set(t[i].semanticId,void 0)}else this._selectedInlineCompletionId.set(void 0,void 0)}async next(){await this._deltaSelectedInlineCompletionIndex(1)}async previous(){await this._deltaSelectedInlineCompletionIndex(-1)}async accept(e){if(e.getModel()!==this.textModel)throw new y.D7;const t=this.selectedInlineEdit.get();t&&(e.pushUndoStop(),e.executeEdits("inlineSuggestion.accept",[t.inlineCompletion.toSingleTextEdit().toSingleEditOperation()]),this.stop())}};$=K=Y([q(4,C.ILanguageFeaturesService),q(5,R.Hg),q(6,x.IModelService)],$);class Q{constructor(e){this.inlineCompletion=e,this.semanticId=this.inlineCompletion.hash()}}class X extends g.jG{constructor(e,t){super(),this._textModel=e,this._versionId=t,this._decorations=(0,r.FY)(this,[]),this.range=(0,r.un)(this,(e=>{this._versionId.read(e);const t=this._decorations.read(e)[0];return t?this._textModel.getDecorationRange(t)??null:null})),this._register((0,g.s)((()=>{this._textModel.deltaDecorations(this._decorations.get(),[])})))}setRange(e,t){this._decorations.set(this._textModel.deltaDecorations(this._decorations.get(),e?[{range:e,options:{description:"trackedRange"}}]:[]),t)}}var Z,J=i(84001),ee=i(71319),te=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},ie=function(e,t){return function(i,s){t(i,s,e)}};let se=class extends g.jG{static{Z=this}static{this.ID="editor.contrib.inlineEditsController"}static get(e){return e.getContribution(Z.ID)}constructor(e,t,i,s,n,o){super(),this.editor=e,this._instantiationService=t,this._contextKeyService=i,this._debounceService=s,this._languageFeaturesService=n,this._configurationService=o,this._enabled=(0,ee.V)("editor.inlineEdits.enabled",!1,this._configurationService),this._editorObs=(0,m.Ud)(this.editor),this._selection=(0,r.un)(this,(e=>this._editorObs.cursorSelection.read(e)??new _.L(1,1,1,1))),this._debounceValue=this._debounceService.for(this._languageFeaturesService.inlineCompletionsProvider,"InlineEditsDebounce",{min:50,max:50}),this.model=(0,p.a0)(this,(e=>{if(!this._enabled.read(e))return;if(this._editorObs.isReadonly.read(e))return;const t=this._editorObs.model.read(e);if(!t)return;return this._instantiationService.createInstance((0,f.b)($,e),t,this._editorObs.versionId,this._selection,this._debounceValue)})),this._hadInlineEdit=(0,r.ZX)(this,((e,t)=>t||void 0!==this.model.read(e)?.inlineEdit.read(e))),this._widget=(0,p.a0)(this,(e=>{var t;if(this._hadInlineEdit.read(e))return this._instantiationService.createInstance((0,f.b)(z,e),this.editor,this.model.map(((e,t)=>e?.inlineEdit.read(t))),(t=e=>this.model.read(e)?.userPrompt??(0,r.FY)("empty",""),(0,p.dQ)(void 0,(e=>t(e).read(e)),((e,i)=>{t(void 0).set(e,i)}))))})),this._register((0,ee.w)(d,this._contextKeyService,(e=>!!this.model.read(e)?.inlineEdit.read(e)))),this._register((0,ee.w)(u,this._contextKeyService,(e=>!!this.model.read(e)?.isPinned.read(e)))),this.model.recomputeInitiallyAndOnChange(this._store),this._widget.recomputeInitiallyAndOnChange(this._store)}};se=Z=te([ie(1,H._Y),ie(2,h.fN),ie(3,v.ILanguageFeatureDebounceService),ie(4,C.ILanguageFeaturesService),ie(5,J.pG)],se);var ne=i(27195);function re(e){return{label:e.value,alias:e.original}}class oe extends s.ks{static{this.ID="editor.action.inlineEdits.showNext"}constructor(){super({id:oe.ID,...re(l.aS("action.inlineEdits.showNext","Show Next Inline Edit")),precondition:h.M$.and(c.R.writable,d),kbOpts:{weight:100,primary:606}})}async run(e,t){const i=se.get(t);i?.model.get()?.next()}}class ae extends s.ks{static{this.ID="editor.action.inlineEdits.showPrevious"}constructor(){super({id:ae.ID,...re(l.aS("action.inlineEdits.showPrevious","Show Previous Inline Edit")),precondition:h.M$.and(c.R.writable,d),kbOpts:{weight:100,primary:604}})}async run(e,t){const i=se.get(t);i?.model.get()?.previous()}}class ce extends s.ks{constructor(){super({id:"editor.action.inlineEdits.trigger",...re(l.aS("action.inlineEdits.trigger","Trigger Inline Edit")),precondition:c.R.writable})}async run(e,t){const i=se.get(t);await(0,o.fL)((async e=>{await(i?.model.get()?.triggerExplicitly(e))}))}}class le extends s.ks{constructor(){super({id:"editor.action.inlineEdits.accept",...re(l.aS("action.inlineEdits.accept","Accept Inline Edit")),precondition:d,menuOpts:{menuId:ne.D8.InlineEditsActions,title:l.kg("inlineEditsActions","Accept Inline Edit"),group:"primary",order:1,icon:n.W.check},kbOpts:{primary:2058,weight:2e4,kbExpr:d}})}async run(e,t){t instanceof a.t&&(t=t.getParentEditor());const i=se.get(t);i&&(i.model.get()?.accept(i.editor),i.editor.focus())}}class he extends s.ks{static{this.ID="editor.action.inlineEdits.hide"}constructor(){super({id:he.ID,...re(l.aS("action.inlineEdits.hide","Hide Inline Edit")),precondition:d,kbOpts:{weight:100,primary:9}})}async run(e,t){const i=se.get(t);(0,r.Rn)((e=>{i?.model.get()?.stop(e)}))}}(0,s.HW)(se.ID,se,3),(0,s.Fl)(ce),(0,s.Fl)(oe),(0,s.Fl)(ae),(0,s.Fl)(le),(0,s.Fl)(he)},40800:(e,t,i)=>{"use strict";var s=i(25890),n=i(31308),r=i(34309),o=i(92368),a=i(56942),c=i(29999),l=i(5662),h=i(41234),d=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},u=function(e,t){return function(i,s){t(i,s,e)}};let g=class extends l.jG{constructor(e,t,i){super(),this._textModel=e,this._languageFeaturesService=t,this._outlineModelService=i,this._currentModel=(0,n.FY)(this,void 0);const s=(0,n.yQ)("documentSymbolProvider.onDidChange",this._languageFeaturesService.documentSymbolProvider.onDidChange),r=(0,n.yQ)("_textModel.onDidChangeContent",h.Jh.debounce((e=>this._textModel.onDidChangeContent(e)),(()=>{}),100));this._register((0,n.yC)((async(e,t)=>{s.read(e),r.read(e);const i=t.add(new o.MZ),n=await this._outlineModelService.getOrCreate(this._textModel,i.token);t.isDisposed||this._currentModel.set(n,void 0)})))}getBreadcrumbItems(e,t){const i=this._currentModel.read(t);if(!i)return[];const n=i.asListOfDocumentSymbols().filter((t=>e.contains(t.range.startLineNumber)&&!e.contains(t.range.endLineNumber)));return n.sort((0,s.Hw)((0,s.VE)((e=>e.range.endLineNumber-e.range.startLineNumber),s.U9))),n.map((e=>({name:e.name,kind:e.kind,startLineNumber:e.range.startLineNumber})))}};g=d([u(1,a.ILanguageFeaturesService),u(2,c.gW)],g),r.N.setBreadcrumbsSourceFactory(((e,t)=>t.createInstance(g,e)))},41127:(e,t,i)=>{"use strict";i.d(t,{b:()=>r});var s=i(30076),n=i(31308);function r(e,t){return function(e,t){if((0,s.e)()){(0,n.yQ)("reload",(t=>(0,s.O)((({oldExports:i})=>{if([...Object.values(i)].some((t=>e.includes(t))))return e=>(t(void 0),!0)})))).read(t)}}([e],t),e}},41234:(e,t,i)=>{"use strict";i.d(t,{Jh:()=>c,QT:()=>b,Qy:()=>_,Wj:()=>w,_B:()=>S,at:()=>y,fV:()=>C,uI:()=>E,vl:()=>f});var s=i(64383),n=i(6921),r=i(5662),o=i(58925),a=i(78381);var c;!function(e){function t(e){false}function i(e){return(t,i=null,s)=>{let n,r=!1;return n=e((e=>{if(!r)return n?n.dispose():r=!0,t.call(i,e)}),null,s),r&&n.dispose(),n}}function s(e,t,i){return o(((i,s=null,n)=>e((e=>i.call(s,t(e))),null,n)),i)}function n(e,t,i){return o(((i,s=null,n)=>e((e=>t(e)&&i.call(s,e)),null,n)),i)}function o(e,i){let s;const n={onWillAddFirstListener(){s=e(r.fire,r)},onDidRemoveLastListener(){s?.dispose()}};i||t();const r=new f(n);return i?.add(r),r.event}function a(e,i,s=100,n=!1,r=!1,o,a){let c,l,h,d,u=0;const g={leakWarningThreshold:o,onWillAddFirstListener(){c=e((e=>{u++,l=i(l,e),n&&!h&&(p.fire(l),l=void 0),d=()=>{const e=l;l=void 0,h=void 0,(!n||u>1)&&p.fire(e),u=0},"number"===typeof s?(clearTimeout(h),h=setTimeout(d,s)):void 0===h&&(h=0,queueMicrotask(d))}))},onWillRemoveListener(){r&&u>0&&d?.()},onDidRemoveLastListener(){d=void 0,c.dispose()}};a||t();const p=new f(g);return a?.add(p),p.event}e.None=()=>r.jG.None,e.defer=function(e,t){return a(e,(()=>{}),0,void 0,!0,void 0,t)},e.once=i,e.onceIf=function(t,i){return e.once(e.filter(t,i))},e.map=s,e.forEach=function(e,t,i){return o(((i,s=null,n)=>e((e=>{t(e),i.call(s,e)}),null,n)),i)},e.filter=n,e.signal=function(e){return e},e.any=function(...e){return(t,i=null,s)=>function(e,t){t instanceof Array?t.push(e):t&&t.add(e);return e}((0,r.qE)(...e.map((e=>e((e=>t.call(i,e)))))),s)},e.reduce=function(e,t,i,n){let r=i;return s(e,(e=>(r=t(r,e),r)),n)},e.debounce=a,e.accumulate=function(t,i=0,s){return e.debounce(t,((e,t)=>e?(e.push(t),e):[t]),i,void 0,!0,void 0,s)},e.latch=function(e,t=(e,t)=>e===t,i){let s,r=!0;return n(e,(e=>{const i=r||!t(e,s);return r=!1,s=e,i}),i)},e.split=function(t,i,s){return[e.filter(t,i,s),e.filter(t,(e=>!i(e)),s)]},e.buffer=function(e,t=!1,i=[],s){let n=i.slice(),r=e((e=>{n?n.push(e):a.fire(e)}));s&&s.add(r);const o=()=>{n?.forEach((e=>a.fire(e))),n=null},a=new f({onWillAddFirstListener(){r||(r=e((e=>a.fire(e))),s&&s.add(r))},onDidAddFirstListener(){n&&(t?setTimeout(o):o())},onDidRemoveLastListener(){r&&r.dispose(),r=null}});return s&&s.add(a),a.event},e.chain=function(e,t){return(i,s,n)=>{const r=t(new l);return e((function(e){const t=r.evaluate(e);t!==c&&i.call(s,t)}),void 0,n)}};const c=Symbol("HaltChainable");class l{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:c)),this}reduce(e,t){let i=t;return this.steps.push((t=>(i=e(i,t),i))),this}latch(e=(e,t)=>e===t){let t,i=!0;return this.steps.push((s=>{const n=i||!e(s,t);return i=!1,t=s,n?s:c})),this}evaluate(e){for(const t of this.steps)if((e=t(e))===c)break;return e}}e.fromNodeEventEmitter=function(e,t,i=e=>e){const s=(...e)=>n.fire(i(...e)),n=new f({onWillAddFirstListener:()=>e.on(t,s),onDidRemoveLastListener:()=>e.removeListener(t,s)});return n.event},e.fromDOMEventEmitter=function(e,t,i=e=>e){const s=(...e)=>n.fire(i(...e)),n=new f({onWillAddFirstListener:()=>e.addEventListener(t,s),onDidRemoveLastListener:()=>e.removeEventListener(t,s)});return n.event},e.toPromise=function(e){return new Promise((t=>i(e)(t)))},e.fromPromise=function(e){const t=new f;return e.then((e=>{t.fire(e)}),(()=>{t.fire(void 0)})).finally((()=>{t.dispose()})),t.event},e.forward=function(e,t){return e((e=>t.fire(e)))},e.runAndSubscribe=function(e,t,i){return t(i),e((e=>t(e)))};class h{constructor(e,i){this._observable=e,this._counter=0,this._hasChanged=!1;const s={onWillAddFirstListener:()=>{e.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{e.removeObserver(this)}};i||t(),this.emitter=new f(s),i&&i.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,0===this._counter&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}e.fromObservable=function(e,t){return new h(e,t).emitter.event},e.fromObservableLight=function(e){return(t,i,s)=>{let n=0,o=!1;const a={beginUpdate(){n++},endUpdate(){n--,0===n&&(e.reportChanges(),o&&(o=!1,t.call(i)))},handlePossibleChange(){},handleChange(){o=!0}};e.addObserver(a),e.reportChanges();const c={dispose(){e.removeObserver(a)}};return s instanceof r.Cm?s.add(c):Array.isArray(s)&&s.push(c),c}}}(c||(c={}));class l{static{this.all=new Set}static{this._idPool=0}constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${l._idPool++}`,l.all.add(this)}start(e){this._stopWatch=new a.W,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}class h{static{this._idPool=1}constructor(e,t,i=(h._idPool++).toString(16).padStart(3,"0")){this._errorHandler=e,this.threshold=t,this.name=i,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(e,t){const i=this.threshold;if(i<=0||t<i)return;this._stacks||(this._stacks=new Map);const s=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,s+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=.5*i;const[e,s]=this.getMostFrequentStack(),n=`[${this.name}] potential listener LEAK detected, having ${t} listeners already. MOST frequent listener (${s}):`;console.warn(n),console.warn(e);const r=new u(n,e);this._errorHandler(r)}return()=>{const t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}getMostFrequentStack(){if(!this._stacks)return;let e,t=0;for(const[i,s]of this._stacks)(!e||t<s)&&(e=[i,s],t=s);return e}}class d{static create(){const e=new Error;return new d(e.stack??"")}constructor(e){this.value=e}print(){console.warn(this.value.split("\n").slice(2).join("\n"))}}class u extends Error{constructor(e,t){super(e),this.name="ListenerLeakError",this.stack=t}}class g extends Error{constructor(e,t){super(e),this.name="ListenerRefusalError",this.stack=t}}class p{constructor(e){this.value=e}}let m;class f{constructor(e){this._size=0,this._options=e,this._leakageMon=this._options?.leakWarningThreshold?new h(e?.onListenerError??s.dz,this._options?.leakWarningThreshold??-1):void 0,this._perfMon=this._options?._profName?new l(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,t,i)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const 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);const t=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],i=new g(`${e}. HINT: Stack shows most frequent listener (${t[1]}-times)`,t[0]);return(this._options?.onListenerError||s.dz)(i),r.jG.None}if(this._disposed)return r.jG.None;t&&(e=e.bind(t));const n=new p(e);let o;this._leakageMon&&this._size>=Math.ceil(.2*this._leakageMon.threshold)&&(n.stack=d.create(),o=this._leakageMon.check(n.stack,this._size+1)),this._listeners?this._listeners instanceof p?(this._deliveryQueue??=new v,this._listeners=[this._listeners,n]):this._listeners.push(n):(this._options?.onWillAddFirstListener?.(this),this._listeners=n,this._options?.onDidAddFirstListener?.(this)),this._size++;const a=(0,r.s)((()=>{m?.unregister(a),o?.(),this._removeListener(n)}));if(i instanceof r.Cm?i.add(a):Array.isArray(i)&&i.push(a),m){const e=(new Error).stack.split("\n").slice(2,3).join("\n").trim(),t=/(file:|vscode-file:\/\/vscode-app)?(\/[^:]*:\d+:\d+)/.exec(e);m.register(a,t?.[2]??e,a)}return a},this._event}_removeListener(e){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(1===this._size)return this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),void(this._size=0);const t=this._listeners,i=t.indexOf(e);if(-1===i)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,t[i]=void 0;const s=this._deliveryQueue.current===this;if(2*this._size<=t.length){let e=0;for(let i=0;i<t.length;i++)t[i]?t[e++]=t[i]:s&&(this._deliveryQueue.end--,e<this._deliveryQueue.i&&this._deliveryQueue.i--);t.length=e}}_deliver(e,t){if(!e)return;const i=this._options?.onListenerError||s.dz;if(i)try{e.value(t)}catch(n){i(n)}else e.value(t)}_deliverQueue(e){const 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 p)this._deliver(this._listeners,e);else{const t=this._deliveryQueue;t.enqueue(this,e,this._listeners.length),this._deliverQueue(t)}else;this._perfMon?.stop()}hasListeners(){return this._size>0}}const _=()=>new v;class v{constructor(){this.i=-1,this.end=0}enqueue(e,t,i){this.i=0,this.end=i,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}class C extends f{constructor(e){super(e),this._isPaused=0,this._eventQueue=new o.w,this._mergeFn=e?.merge}pause(){this._isPaused++}resume(){if(0!==this._isPaused&&0===--this._isPaused)if(this._mergeFn){if(this._eventQueue.size>0){const e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}}else for(;!this._isPaused&&0!==this._eventQueue.size;)super.fire(this._eventQueue.shift())}fire(e){this._size&&(0!==this._isPaused?this._eventQueue.push(e):super.fire(e))}}class E extends C{constructor(e){super(e),this._delay=e.delay??100}fire(e){this._handle||(this.pause(),this._handle=setTimeout((()=>{this._handle=void 0,this.resume()}),this._delay)),super.fire(e)}}class b extends f{constructor(e){super(e),this._queuedEvents=[],this._mergeFn=e?.merge}fire(e){this.hasListeners()&&(this._queuedEvents.push(e),1===this._queuedEvents.length&&queueMicrotask((()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach((e=>super.fire(e))),this._queuedEvents=[]})))}}class S{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new f({onWillAddFirstListener:()=>this.onFirstListenerAdd(),onDidRemoveLastListener:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(e){const t={event:e,listener:null};this.events.push(t),this.hasListeners&&this.hook(t);return(0,r.s)((0,n.P)((()=>{this.hasListeners&&this.unhook(t);const e=this.events.indexOf(t);this.events.splice(e,1)})))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach((e=>this.hook(e)))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach((e=>this.unhook(e)))}hook(e){e.listener=e.event((e=>this.emitter.fire(e)))}unhook(e){e.listener?.dispose(),e.listener=null}dispose(){this.emitter.dispose();for(const e of this.events)e.listener?.dispose();this.events=[]}}class y{constructor(){this.data=[]}wrapEvent(e,t,i){return(s,n,r)=>e((e=>{const r=this.data[this.data.length-1];if(!t)return void(r?r.buffers.push((()=>s.call(n,e))):s.call(n,e));const o=r;o?(o.items??=[],o.items.push(e),0===o.buffers.length&&r.buffers.push((()=>{o.reducedResult??=i?o.items.reduce(t,i):o.items.reduce(t),s.call(n,o.reducedResult)}))):s.call(n,t(i,e))}),void 0,r)}bufferEvents(e){const t={buffers:new Array};this.data.push(t);const i=e();return this.data.pop(),t.buffers.forEach((e=>e())),i}}class w{constructor(){this.listening=!1,this.inputEvent=c.None,this.inputEventListener=r.jG.None,this.emitter=new f({onDidAddFirstListener:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onDidRemoveLastListener:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},41614:(e,t,i)=>{"use strict";i.d(t,{parseYqlQuery:()=>Au,kh:()=>ku});var s,n,r,o,a=Object.defineProperty,c=(e,t)=>a(e,"name",{value:t,configurable:!0});(n=s||(s={})).EOF=-1,n.UNKNOWN_SOURCE_NAME="<unknown>",(o=r||(r={})).INVALID_TYPE=0,o.EPSILON=-2,o.MIN_USER_TOKEN_TYPE=1,o.EOF=s.EOF,o.DEFAULT_CHANNEL=0,o.HIDDEN_CHANNEL=1,o.MIN_USER_CHANNEL_VALUE=2;var l=c((e=>{const t=e;return void 0!==t.tokenSource&&void 0!==t.channel}),"isToken"),h=class{static{c(this,"BitSet")}data;constructor(e){this.data=e?new Uint32Array(e.map((e=>e>>>0))):new Uint32Array(1)}[Symbol.iterator](){const e=this.data.length;let t=0,i=this.data[t];const s=this.data;return{[Symbol.iterator](){return this},next:c((()=>{for(;t<e;){if(0!==i){const e=i&-i,s=(t<<5)+this.bitCount(e-1);return i^=e,{done:!1,value:s}}t++,t<e&&(i=s[t])}return{done:!0,value:void 0}}),"next")}}clear(e){void 0===e?this.data=new Uint32Array:(this.resize(e),this.data[e>>>5]&=~(1<<e))}or(e){const t=Math.min(this.data.length,e.data.length);for(let i=0;i<t;++i)this.data[i]|=e.data[i];if(this.data.length<e.data.length){this.resize((e.data.length<<5)-1);const i=e.data.length;for(let s=t;s<i;++s)this.data[s]=e.data[s]}}get(e){if(e<0)throw new RangeError("index cannot be negative");const t=e>>>5;return!(t>=this.data.length)&&0!==(this.data[t]&1<<e%32)}get length(){let e=0;const t=this.data.length,i=this.data;for(let s=0;s<t;s++)e+=this.bitCount(i[s]);return e}values(){const e=new Array(this.length);let t=0;const i=this.data.length;for(let s=0;s<i;++s){let i=this.data[s];for(;0!==i;){const n=i&-i;e[t++]=(s<<5)+this.bitCount(n-1),i^=n}}return e}nextSetBit(e){if(e<0)throw new RangeError("index cannot be negative");for(const t of this)if(t>=e)return t}set(e){if(e<0)throw new RangeError("index cannot be negative");this.resize(e),this.data[e>>>5]|=1<<e%32}toString(){return"{"+this.values().join(", ")+"}"}resize(e){const t=e+32>>>5;if(t<=this.data.length)return;const i=new Uint32Array(t);i.set(this.data),i.fill(0,this.data.length),this.data=i}bitCount(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,63&(e+=e>>16)}},d=class e{static{c(this,"MurmurHash")}static defaultSeed=701;constructor(){}static initialize(t=e.defaultSeed){return t}static updateFromComparable(e,t){return this.update(e,t?.hashCode()??0)}static update(e,t){return t=(t=Math.imul(t,3432918353))<<15|t>>>17,e=(e^=t=Math.imul(t,461845907))<<13|e>>>19,e=Math.imul(e,5)+3864292196}static finish(e,t){return e^=4*t,e^=e>>>16,e=Math.imul(e,2246822507),e^=e>>>13,e=Math.imul(e,3266489909),e^=e>>>16}static hashCode(t,i){return e.finish(e.update(i??e.defaultSeed,t),1)}},u=class e{static{c(this,"ObjectEqualityComparator")}static instance=new e;hashCode(e){return null==e?0:e.hashCode()}equals(e,t){return null==e?null==t:e.equals(t)}},g=class e{static{c(this,"DefaultEqualityComparator")}static instance=new e;hashCode(e){return null==e?0:u.instance.hashCode(e)}equals(e,t){return null==e?null==t:"string"===typeof e||"number"===typeof e?e===t:u.instance.equals(e,t)}},p=class e{static{c(this,"HashSet")}static defaultLoadFactor=.75;static initialCapacity=16;comparator;buckets;threshold;itemCount=0;constructor(t,i=e.initialCapacity){if(t instanceof e){this.comparator=t.comparator,this.buckets=t.buckets.slice(0);for(let e=0;e<this.buckets.length;e++){const t=this.buckets[e];t&&(this.buckets[e]=t.slice(0))}this.itemCount=t.itemCount,this.threshold=t.threshold}else this.comparator=t??g.instance,this.buckets=this.createBuckets(i),this.threshold=Math.floor(e.initialCapacity*e.defaultLoadFactor)}getOrAdd(e){this.itemCount>this.threshold&&this.expand();const t=this.getBucket(e);let i=this.buckets[t];if(!i)return i=[e],this.buckets[t]=i,++this.itemCount,e;for(const s of i)if(this.comparator.equals(s,e))return s;return i.push(e),++this.itemCount,e}get(e){if(null==e)return e;const t=this.getBucket(e),i=this.buckets[t];if(i)for(const s of i)if(this.comparator.equals(s,e))return s}remove(e){if(null==e)return!1;const t=this.getBucket(e),i=this.buckets[t];if(!i)return!1;for(let s=0;s<i.length;s++){const t=i[s];if(this.comparator.equals(t,e))return i.splice(s,1),--this.itemCount,!0}return!1}hashCode(){let e=d.initialize();for(const t of this.buckets)if(null!=t)for(const i of t){if(null==i)break;e=d.update(e,this.comparator.hashCode(i))}return e=d.finish(e,this.size),e}equals(t){return t===this||t instanceof e&&(t.size===this.size&&this.containsAll(t))}add(e){return this.getOrAdd(e)===e}contains(e){return this.containsFast(e)}containsFast(e){return null!=e&&void 0!==this.get(e)}*[Symbol.iterator](){yield*this.toArray()}toArray(){const e=new Array(this.size);let t=0;for(const i of this.buckets)if(null!=i)for(const s of i){if(null==s)break;e[t++]=s}return e}containsAll(t){if(t instanceof e){for(const e of t.buckets)if(null!=e)for(const t of e){if(null==t)break;if(!this.containsFast(t))return!1}}else for(const e of t)if(!this.containsFast(e))return!1;return!0}addAll(e){let t=!1;for(const i of e){this.getOrAdd(i)!==i&&(t=!0)}return t}clear(){this.buckets=this.createBuckets(e.initialCapacity),this.itemCount=0,this.threshold=Math.floor(e.initialCapacity*e.defaultLoadFactor)}toString(){if(0===this.size)return"{}";let e="{",t=!0;for(const i of this.buckets)if(null!=i)for(const s of i){if(null==s)break;t?t=!1:e+=", ",e+=s.toString()}return e+="}",e}toTableString(){let e="";for(const t of this.buckets){if(null==t){e+="null\n";continue}e+="[";let i=!0;for(const s of t)i?i=!1:e+=" ",e+=null==s?"_":s.toString();e+="]\n"}return e}getBucket(e){return this.comparator.hashCode(e)&this.buckets.length-1}expand(){const t=this.buckets,i=2*this.buckets.length,s=this.createBuckets(i);this.buckets=s,this.threshold=Math.floor(i*e.defaultLoadFactor);for(const e of t)if(e)for(const t of e){const e=this.getBucket(t);let i=this.buckets[e];i||(i=[],this.buckets[e]=i),i.push(t)}}get size(){return this.itemCount}get isEmpty(){return 0===this.itemCount}createBuckets(e){return new Array(e)}},m=class e{static{c(this,"Interval")}static INVALID_INTERVAL=new e(-1,-2);static INTERVAL_POOL_MAX_VALUE=1e3;static cache=[];start;stop;cachedHashCode;constructor(e,t){this.start=e,this.stop=t,this.cachedHashCode=Math.imul(651+e,31)+t}static of(t,i){return t!==i||t<0||t>e.INTERVAL_POOL_MAX_VALUE?new e(t,i):(e.cache[t]||(e.cache[t]=new e(t,t)),e.cache[t])}equals(e){return this.start===e.start&&this.stop===e.stop}hashCode(){return this.cachedHashCode}startsBeforeDisjoint(e){return this.start<e.start&&this.stop<e.start}startsBeforeNonDisjoint(e){return this.start<=e.start&&this.stop>=e.start}startsAfter(e){return this.start>e.start}startsAfterDisjoint(e){return this.start>e.stop}startsAfterNonDisjoint(e){return this.start>e.start&&this.start<=e.stop}disjoint(e){return this.startsBeforeDisjoint(e)||this.startsAfterDisjoint(e)}adjacent(e){return this.start===e.stop+1||this.stop===e.start-1}properlyContains(e){return e.start>=this.start&&e.stop<=this.stop}union(t){return e.of(Math.min(this.start,t.start),Math.max(this.stop,t.stop))}intersection(t){return e.of(Math.max(this.start,t.start),Math.min(this.stop,t.stop))}differenceNotProperlyContained(t){let i=null;return t.startsBeforeNonDisjoint(this)?i=e.of(Math.max(this.start,t.stop+1),this.stop):t.startsAfterNonDisjoint(this)&&(i=e.of(this.start,t.start-1)),i}toString(){return`${this.start}..${this.stop}`}get length(){return this.stop<this.start?0:this.stop-this.start+1}},f=class e{static{c(this,"Vocabulary")}static EMPTY_NAMES=[];static EMPTY_VOCABULARY=new e(e.EMPTY_NAMES,e.EMPTY_NAMES,e.EMPTY_NAMES);maxTokenType;literalNames;symbolicNames;displayNames;constructor(t,i,s){this.literalNames=t??e.EMPTY_NAMES,this.symbolicNames=i??e.EMPTY_NAMES,this.displayNames=s??e.EMPTY_NAMES,this.maxTokenType=Math.max(this.displayNames.length,Math.max(this.literalNames.length,this.symbolicNames.length))-1}static fromTokenNames(t){if(null==t||0===t.length)return e.EMPTY_VOCABULARY;const i=[...t],s=[...t];for(let e=0;e<t.length;e++){const n=t[e];if(null!=n){if(n.length>0){const t=n.codePointAt(0);if(39===t){s[e]=null;continue}if(t>=65&&t<=90){i[e]=null;continue}}i[e]=null,s[e]=null}}return new e(i,s,t)}getMaxTokenType(){return this.maxTokenType}getLiteralName(e){return e>=0&&e<this.literalNames.length?this.literalNames[e]:null}getSymbolicName(e){return e>=0&&e<this.symbolicNames.length?this.symbolicNames[e]:e===r.EOF?"EOF":null}getDisplayName(e){if(e>=0&&e<this.displayNames.length){const t=this.displayNames[e];if(null!=t)return t}const t=this.getLiteralName(e);if(null!=t)return t;const i=this.getSymbolicName(e);return null!=i?i:`${e}`}getLiteralNames(){return this.literalNames}getSymbolicNames(){return this.symbolicNames}getDisplayNames(){return this.displayNames}},_=class e{static{c(this,"IntervalSet")}intervals=[];cachedHashCode;constructor(e){if(e)if(Array.isArray(e))for(const t of e)this.addOne(t);else this.addSet(e)}static of(t,i){const s=new e;return s.addRange(t,i),s}static or(t){const i=new e;for(const e of t)i.addSet(e);return i}[Symbol.iterator](){return this.intervals[Symbol.iterator]()}get(e){return this.intervals[e]}get minElement(){return 0===this.intervals.length?r.INVALID_TYPE:this.intervals[0].start}get maxElement(){return 0===this.intervals.length?r.INVALID_TYPE:this.intervals[this.intervals.length-1].stop}clear(){this.cachedHashCode=void 0,this.intervals=[]}addOne(e){this.addInterval(new m(e,e))}addRange(e,t){this.addInterval(new m(e,t))}addInterval(e){if(this.cachedHashCode=void 0,0===this.intervals.length)this.intervals.push(e);else{for(let t=0;t<this.intervals.length;t++){const i=this.intervals[t];if(e.equals(i))return;if(e.adjacent(i)||!e.disjoint(i)){const s=e.union(i);this.intervals[t]=s;for(let e=t+1;e<this.intervals.length;){const i=this.intervals[e];if(!s.adjacent(i)&&s.disjoint(i))break;this.intervals.splice(e,1),this.intervals[t]=s.union(i)}return}if(e.startsBeforeDisjoint(i))return void this.intervals.splice(t,0,e)}this.intervals.push(e)}}addSet(e){return e.intervals.forEach((e=>this.addInterval(e)),this),this}complementWithVocabulary(t){const i=new e;return t?0===t.length?i:(i.addSet(t),i.subtract(this)):i}complement(t,i){const s=new e;return s.addInterval(new m(t,i)),s.subtract(this)}or(t){const i=new e;return i.addSet(this),t.forEach((e=>i.addSet(e))),i}and(t){if(0===t.length)return new e;const i=this.intervals,s=t.intervals;let n;const r=i.length,o=s.length;let a=0,c=0;for(;a<r&&c<o;){const t=i[a],r=s[c];t.startsBeforeDisjoint(r)?a++:r.startsBeforeDisjoint(t)?c++:t.properlyContains(r)?(n||(n=new e),n.addInterval(t.intersection(r)),c++):r.properlyContains(t)?(n||(n=new e),n.addInterval(t.intersection(r)),a++):t.disjoint(r)||(n||(n=new e),n.addInterval(t.intersection(r)),t.startsAfterNonDisjoint(r)?c++:r.startsAfterNonDisjoint(t)&&a++)}return n||new e}subtract(t){if(0===this.length)return new e;const i=new e(this);if(0===t.length)return i;let s=0,n=0;for(;s<i.intervals.length&&n<t.intervals.length;){const e=i.intervals[s],r=t.intervals[n];if(r.stop<e.start){n++;continue}if(r.start>e.stop){s++;continue}let o,a;r.start>e.start&&(o=new m(e.start,r.start-1)),r.stop<e.stop&&(a=new m(r.stop+1,e.stop)),o?a?(i.intervals[s]=o,i.intervals.splice(s+1,0,a),s++,n++):(i.intervals[s]=o,s++):a?(i.intervals[s]=a,n++):i.intervals.splice(s,1)}return i}contains(e){let t=0,i=this.intervals.length-1;for(;t<=i;){const s=Math.floor((t+i)/2),n=this.intervals[s];if(n.stop<e)t=s+1;else{if(!(n.start>e))return!0;i=s-1}}return!1}removeRange(e){if(this.cachedHashCode=void 0,e.start===e.stop)this.removeOne(e.start);else if(null!==this.intervals){let t=0;for(const i of this.intervals){if(e.stop<=i.start)return;if(e.start>i.start&&e.stop<i.stop){this.intervals[t]=new m(i.start,e.start);const s=new m(e.stop,i.stop);return void this.intervals.splice(t,0,s)}e.start<=i.start&&e.stop>=i.stop?(this.intervals.splice(t,1),t-=1):e.start<i.stop?this.intervals[t]=new m(i.start,e.start):e.stop<i.stop&&(this.intervals[t]=new m(e.stop,i.stop)),t+=1}}}removeOne(e){this.cachedHashCode=void 0;for(let t=0;t<this.intervals.length;t++){const i=this.intervals[t];if(e<i.start)return;if(e===i.start&&e===i.stop)return void this.intervals.splice(t,1);if(e===i.start)return void(this.intervals[t]=new m(i.start+1,i.stop));if(e===i.stop)return void(this.intervals[t]=new m(i.start,i.stop-1));if(e<i.stop){const s=new m(i.start,e-1);return this.intervals[t]=new m(e+1,i.stop),void this.intervals.splice(t,0,s)}}}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize();for(const t of this.intervals)e=d.update(e,t.start),e=d.update(e,t.stop);this.cachedHashCode=d.finish(e,2*this.intervals.length)}return this.cachedHashCode}equals(e){if(this===e)return!0;if(this.intervals.length!==e.intervals.length)return!1;for(let t=0;t<this.intervals.length;t++)if(!this.intervals[t].equals(e.intervals[t]))return!1;return!0}toString(e){if(0===this.intervals.length)return"{}";let t="";this.length>1&&(t+="{");for(let i=0;i<this.intervals.length;++i){const s=this.intervals[i],n=s.start,o=s.stop;n===o?n===r.EOF?t+="<EOF>":t+=e?"'"+String.fromCodePoint(n)+"'":n:t+=e?"'"+String.fromCodePoint(n)+"'..'"+String.fromCodePoint(o)+"'":n+".."+o,i<this.intervals.length-1&&(t+=", ")}return this.length>1&&(t+="}"),t}toStringWithVocabulary(e){if(0===this.intervals.length)return"{}";let t="";this.length>1&&(t+="{");for(let i=0;i<this.intervals.length;++i){const s=this.intervals[i],n=s.start,o=s.stop;if(n===o)n===r.EOF?t+="<EOF>":t+=this.elementName(e,n);else for(let i=n;i<=o;++i)i>n&&(t+=", "),t+=this.elementName(e,i);i<this.intervals.length-1&&(t+=", ")}return this.length>1&&(t+="}"),t}toStringWithRuleNames(e){if(0===this.intervals.length)return"{}";let t="";this.length>1&&(t+="{");const i=f.fromTokenNames(e);for(let s=0;s<this.intervals.length;++s){const e=this.intervals[s],n=e.start,o=e.stop;if(n===o)n===r.EOF?t+="<EOF>":t+=this.elementName(i,n);else for(let s=n;s<=o;++s)s>n&&(t+=", "),t+=this.elementName(i,s);s<this.intervals.length-1&&(t+=", ")}return this.length>1&&(t+="}"),t}toArray(){const e=[];for(const t of this.intervals)for(let i=t.start;i<=t.stop;i++)e.push(i);return e}get length(){let e=0;for(const t of this.intervals)e+=t.length;return e}elementName(e,t){return t===r.EOF?"<EOF>":t===r.EPSILON?"<EPSILON>":e.getDisplayName(t)}},v=c((e=>null===e?"null":e),"valueToString"),C=c((e=>Array.isArray(e)?"["+e.map(v).join(", ")+"]":"null"),"arrayToString"),E=c(((e,t)=>{if(e===t)return!0;if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++){const s=e[i],n=t[i];if(s!==n&&(!s||!s.equals(n)))return!1}return!0}),"equalArrays"),b=c(((e,t)=>{if(e===t)return!0;if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}),"equalNumberArrays"),S=c(((e,t=!1)=>(e=e.replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r"),t&&(e=e.replace(/ /g,"\xb7")),e)),"escapeWhitespace"),y=class e{static{c(this,"SemanticContext")}cachedHashCode;static andContext(t,i){if(null===t||t===e.NONE)return i;if(null===i||i===e.NONE)return t;const s=new w(t,i);return 1===s.operands.length?s.operands[0]:s}static orContext(t,i){if(null===t)return i;if(null===i)return t;if(t===e.NONE||i===e.NONE)return e.NONE;const s=new R(t,i);return 1===s.operands.length?s.operands[0]:s}static filterPrecedencePredicates(t){const i=[];for(const s of t)s instanceof e.PrecedencePredicate&&i.push(s);return i}evalPrecedence(e,t){return this}},w=class e extends y{static{c(this,"AND")}operands;constructor(t,i){super();const s=new p;t instanceof e?t.operands.forEach((e=>{s.add(e)})):s.add(t),i instanceof e?i.operands.forEach((e=>{s.add(e)})):s.add(i);const n=y.filterPrecedencePredicates(s);if(n.length>0){let e=null;n.forEach((t=>{(null===e||t.precedence<e.precedence)&&(e=t)})),e&&s.add(e)}this.operands=s.toArray()}equals(t){return this===t||t instanceof e&&E(this.operands,t.operands)}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize();for(const t of this.operands)e=d.updateFromComparable(e,t);e=d.update(e,3813686060),this.cachedHashCode=d.finish(e,this.operands.length+1)}return this.cachedHashCode}evaluate(e,t){for(const i of this.operands)if(!i.evaluate(e,t))return!1;return!0}evalPrecedence(e,t){let i=!1;const s=[];for(const r of this.operands){const n=r.evalPrecedence(e,t);if(i||=n!==r,null===n)return null;n!==y.NONE&&s.push(n)}if(!i)return this;if(0===s.length)return y.NONE;let n=null;return s.forEach((e=>{n=null===n?e:y.andContext(n,e)})),n}toString(){const e=this.operands.map((e=>e.toString()));return(e.length>3?e.slice(3):e).join("&&")}},R=class e extends y{static{c(this,"OR")}operands;constructor(t,i){super();const s=new p;t instanceof e?t.operands.forEach((e=>{s.add(e)})):s.add(t),i instanceof e?i.operands.forEach((e=>{s.add(e)})):s.add(i);const n=y.filterPrecedencePredicates(s);if(n.length>0){const e=n.sort(((e,t)=>e.compareTo(t))),t=e[e.length-1];s.add(t)}this.operands=s.toArray()}equals(t){return this===t||t instanceof e&&E(this.operands,t.operands)}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize();for(const t of this.operands)e=d.updateFromComparable(e,t);e=d.update(e,3383313031),this.cachedHashCode=d.finish(e,this.operands.length+1)}return this.cachedHashCode}evaluate(e,t){for(const i of this.operands)if(i.evaluate(e,t))return!0;return!1}evalPrecedence(e,t){let i=!1;const s=[];for(const r of this.operands){const n=r.evalPrecedence(e,t);if(i||=n!==r,n===y.NONE)return y.NONE;null!==n&&s.push(n)}if(!i)return this;if(0===s.length)return null;let n=null;return s.forEach((e=>{n=null===n?e:y.orContext(n,e)})),n}toString(){const e=this.operands.map((e=>e.toString()));return(e.length>3?e.slice(3):e).join("||")}};(e=>{class t extends e{static{c(this,"Predicate")}ruleIndex;predIndex;isCtxDependent;constructor(e,t,i){super(),this.ruleIndex=e??-1,this.predIndex=t??-1,this.isCtxDependent=i??!1}evaluate(e,t){const i=this.isCtxDependent?t:null;return e.sempred(i,this.ruleIndex,this.predIndex)}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize();e=d.update(e,this.ruleIndex),e=d.update(e,this.predIndex),e=d.update(e,this.isCtxDependent?1:0),e=d.finish(e,3),this.cachedHashCode=e}return this.cachedHashCode}equals(e){return this===e||this.ruleIndex===e.ruleIndex&&this.predIndex===e.predIndex&&this.isCtxDependent===e.isCtxDependent}toString(){return"{"+this.ruleIndex+":"+this.predIndex+"}?"}}e.Predicate=t;class i extends e{static{c(this,"PrecedencePredicate")}precedence;constructor(e){super(),this.precedence=e??0}evaluate(e,t){return e.precpred(t,this.precedence)}evalPrecedence(t,i){return t.precpred(i??null,this.precedence)?e.NONE:null}compareTo(e){return this.precedence-e.precedence}hashCode(){return 31+this.precedence}equals(e){return this===e||this.precedence===e.precedence}toString(){return"{"+this.precedence+">=prec}?"}}e.PrecedencePredicate=i,e.NONE=new t})(y||(y={}));var L,T=class e{static{c(this,"ATNConfig")}state;alt;reachesIntoOuterContext=!1;precedenceFilterSuppressed=!1;get semanticContext(){return this.#e}cachedHashCode;#t=null;#e;constructor(e,t,i,s){this.state=t,this.alt=e.alt,this.context=i,this.#e=s??y.NONE,this.reachesIntoOuterContext=e.reachesIntoOuterContext,void 0!==e.precedenceFilterSuppressed&&(this.precedenceFilterSuppressed=e.precedenceFilterSuppressed)}static duplicate(t,i){return new e(t,t.state,t.context,i??t.semanticContext)}static createWithContext(t,i,s,n){return new e({alt:i},t,s,n)}static createWithConfig(t,i,s){return new e(i,t,s??i.context,i.semanticContext)}static createWithSemanticContext(t,i,s){return new e(i,t??i.state,i.context,s)}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize(7);e=d.update(e,this.state.stateNumber),e=d.update(e,this.alt),e=d.updateFromComparable(e,this.#t),e=d.updateFromComparable(e,this.semanticContext),e=d.finish(e,4),this.cachedHashCode=e}return this.cachedHashCode}get context(){return this.#t}set context(e){this.#t=e,this.cachedHashCode=void 0}equals(e){return this===e||this.state.stateNumber===e.state.stateNumber&&this.alt===e.alt&&(null===this.context?null===e.context:this.context.equals(e.context))&&this.semanticContext.equals(e.semanticContext)&&this.precedenceFilterSuppressed===e.precedenceFilterSuppressed}toString(e,t=!0){let i="";return t&&(i=","+this.alt),"("+this.state+i+(null!==this.context?",["+this.context.toString()+"]":"")+(this.semanticContext!==y.NONE?","+this.semanticContext.toString():"")+(this.reachesIntoOuterContext?",up="+this.reachesIntoOuterContext:"")+")"}},x=class e{static{c(this,"ATNState")}static INVALID_STATE_NUMBER=-1;static INVALID_TYPE=0;static BASIC=1;static RULE_START=2;static BLOCK_START=3;static PLUS_BLOCK_START=4;static STAR_BLOCK_START=5;static TOKEN_START=6;static RULE_STOP=7;static BLOCK_END=8;static STAR_LOOP_BACK=9;static STAR_LOOP_ENTRY=10;static PLUS_LOOP_BACK=11;static LOOP_END=12;static stateType=e.INVALID_STATE_NUMBER;stateNumber=0;ruleIndex=0;epsilonOnlyTransitions=!1;nextTokenWithinRule;transitions=[];hashCode(){return this.stateNumber}equals(e){return this.stateNumber===e.stateNumber}toString(){return`${this.stateNumber}`}addTransitionAtIndex(e,t){0===this.transitions.length?this.epsilonOnlyTransitions=t.isEpsilon:this.epsilonOnlyTransitions!==t.isEpsilon&&(this.epsilonOnlyTransitions=!1),this.transitions.splice(e,1,t)}addTransition(e){0===this.transitions.length?this.epsilonOnlyTransitions=e.isEpsilon:this.epsilonOnlyTransitions!==e.isEpsilon&&(this.epsilonOnlyTransitions=!1),this.transitions.push(e)}setTransition(e,t){this.transitions.splice(e,1,t)}removeTransition(e){return this.transitions.splice(e,1)[0]}},k=class e{static{c(this,"PredictionContext")}static EMPTY_RETURN_STATE=2147483647;static traceATNSimulator=!1;cachedHashCode;constructor(e){this.cachedHashCode=e}static calculateEmptyHashCode(){let e=d.initialize(31);return e=d.finish(e,0),e}static calculateHashCodeSingle(e,t){let i=d.initialize(31);return i=d.updateFromComparable(i,e),i=d.update(i,t),i=d.finish(i,2),i}static calculateHashCodeList(e,t){let i=d.initialize(31);for(const s of e)i=d.updateFromComparable(i,s);for(const s of t)i=d.update(i,s);return i=d.finish(i,2*e.length),i}isEmpty(){return!1}hasEmptyPath(){return this.getReturnState(this.length-1)===e.EMPTY_RETURN_STATE}hashCode(){return this.cachedHashCode}toString(e){return""}},A=class e extends k{static{c(this,"SingletonPredictionContext")}parent;returnState;constructor(e,t){super(e?k.calculateHashCodeSingle(e,t):k.calculateEmptyHashCode()),this.parent=e??null,this.returnState=t}getParent(e){return this.parent}getReturnState(e){return this.returnState}equals(t){return this===t||t instanceof e&&(this.hashCode()===t.hashCode()&&(this.returnState===t.returnState&&(null==this.parent?null==t.parent:this.parent.equals(t.parent))))}toString(){const e=null===this.parent?"":this.parent.toString();return 0===e.length?this.returnState===k.EMPTY_RETURN_STATE?"$":""+this.returnState:this.returnState+" "+e}get length(){return 1}},N=class e extends A{static{c(this,"EmptyPredictionContext")}static instance=new e;constructor(){super(void 0,k.EMPTY_RETURN_STATE)}isEmpty(){return!0}getParent(){return null}getReturnState(){return this.returnState}equals(e){return this===e}toString(){return"$"}},I=class{static{c(this,"Transition")}static INVALID=0;static EPSILON=1;static RANGE=2;static RULE=3;static PREDICATE=4;static ATOM=5;static ACTION=6;static SET=7;static NOT_SET=8;static WILDCARD=9;static PRECEDENCE=10;target;constructor(e){this.target=e}get isEpsilon(){return!1}get label(){return null}toString(){return""}},O=class extends I{static{c(this,"SetTransition")}set;constructor(e,t){super(e),this.set=t||_.of(r.INVALID_TYPE,r.INVALID_TYPE)}get transitionType(){return I.SET}get label(){return this.set}matches(e,t,i){return this.set.contains(e)}toString(){return this.set.toString()}},D=class extends O{static{c(this,"NotSetTransition")}get transitionType(){return I.NOT_SET}matches(e,t,i){return e>=t&&e<=i&&!super.matches(e,t,i)}toString(){return"~"+super.toString()}},M=class{static{c(this,"MapKeyEqualityComparator")}keyComparator;constructor(e){this.keyComparator=e}hashCode(e){return this.keyComparator.hashCode(e.key)}equals(e,t){return this.keyComparator.equals(e.key,t.key)}},P=class e{static{c(this,"HashMap")}backingStore;constructor(t){t instanceof e?this.backingStore=new p(t.backingStore):(t=t??g.instance,this.backingStore=new p(new M(t)))}clear(){this.backingStore.clear()}containsKey(e){return this.backingStore.contains({key:e})}get(e){const t=this.backingStore.get({key:e});if(t)return t.value}get isEmpty(){return this.backingStore.isEmpty}set(e,t){const i=this.backingStore.get({key:e,value:t});let s;return i?(s=i.value,i.value=t):this.backingStore.add({key:e,value:t}),s}setIfAbsent(e,t){const i=this.backingStore.get({key:e,value:t});let s;return i?s=i.value:this.backingStore.add({key:e,value:t}),s}keys(){return this.backingStore.toArray().map((e=>e.key))}values(){return this.backingStore.toArray().map((e=>e.value))}get size(){return this.backingStore.size}hashCode(){return this.backingStore.hashCode()}equals(e){return this.backingStore.equals(e.backingStore)}},F=class{static{c(this,"TerminalNode")}parent=null;symbol;constructor(e){this.symbol=e}getChild(e){return null}getSymbol(){return this.symbol}getPayload(){return this.symbol}getSourceInterval(){if(null===this.symbol)return m.INVALID_INTERVAL;const e=this.symbol.tokenIndex;return new m(e,e)}getChildCount(){return 0}accept(e){return e.visitTerminal(this)}getText(){return this.symbol?.text??""}toString(){return this.symbol?.type===r.EOF?"<EOF>":this.symbol?.text??""}toStringTree(){return this.toString()}},U=class extends F{static{c(this,"ErrorNode")}accept(e){return e.visitErrorNode(this)}},H=class e{static{c(this,"CommonToken")}static EMPTY_SOURCE=[null,null];source;tokenIndex;start;stop;type;line;column;channel;#i;constructor(e){this.type=e.type,this.source=e.source,this.tokenIndex=e.tokenIndex??-1,this.line=e.line??0,this.column=e.column??-1,this.channel=e.channel??r.DEFAULT_CHANNEL,this.start=e.start??0,this.stop=e.stop??0,this.#i=e.text,void 0===e.line&&null!==e.source[0]&&(this.line=e.source[0].line),void 0===e.column&&null!==e.source[0]&&(this.column=e.source[0].column)}static fromToken(t){const i=[t.tokenSource,t.inputStream];return new e({type:t.type,line:t.line,tokenIndex:t.tokenIndex,column:t.column,channel:t.channel,start:t.start,stop:t.stop,text:t.text,source:i})}static fromType(t,i){return new e({type:t,text:i,source:e.EMPTY_SOURCE})}static fromSource(t,i,s,n,r){return new e({type:i,channel:s,start:n,stop:r,source:t})}get tokenSource(){return this.source[0]}get inputStream(){return this.source[1]}set inputStream(e){this.source[1]=e}clone(){return new e({source:this.source,type:this.type,channel:this.channel,start:this.start,stop:this.stop,tokenIndex:this.tokenIndex,line:this.line,column:this.column,text:this.#i})}toString(e){let t="";this.channel>0&&(t=",channel="+this.channel);let i=this.text;i?(i=i.replace(/\n/g,"\\n"),i=i.replace(/\r/g,"\\r"),i=i.replace(/\t/g,"\\t")):i="<no text>";let s=String(this.type);return e&&(s=e.vocabulary.getDisplayName(this.type)??"<unknown>"),"[@"+this.tokenIndex+","+this.start+":"+this.stop+"='"+i+"',<"+s+">"+t+","+this.line+":"+this.column+"]"}get text(){if(void 0!==this.#i)return this.#i;const e=this.inputStream;if(!e)return;const t=e.size;return this.start<t&&this.stop<t?e.getTextFromRange(this.start,this.stop):"<EOF>"}set text(e){this.#i=e}setText(e){this.#i=e}setType(e){this.type=e}setLine(e){this.line=e}setCharPositionInLine(e){this.column=e}setChannel(e){this.channel=e}setTokenIndex(e){this.tokenIndex=e}},B=class e{static{c(this,"Trees")}static toStringTree(t,i,s){i=i??null,s&&(i=s.ruleNames);let n=e.getNodeText(t,i);n=S(n,!1);const r=t.getChildCount();if(0===r)return n;let o="("+n+" ";r>0&&(n=e.toStringTree(t.getChild(0),i),o=o.concat(n));for(let a=1;a<r;a++)n=e.toStringTree(t.getChild(a),i),o=o.concat(" "+n);return o=o.concat(")"),o}static getNodeText(e,t,i){if(t=t??null,i&&(t=i.ruleNames),null!==t){if(e instanceof W){const i=e.ruleContext.getAltNumber();return 0!==i?t[e.ruleIndex]+":"+i:t[e.ruleIndex]}if(e instanceof U)return e.toString();if(e instanceof F)return e.symbol.text}const s=e.getPayload();return l(s)?s.text:String(e.getPayload())}static getChildren(e){const t=[];for(let i=0;i<e.getChildCount();i++)t.push(e.getChild(i));return t}static getAncestors(e){if(null===e.parent)return[];let t=[],i=e.parent;for(;null!==i;)t=[i].concat(t),i=i.parent;return t}static isAncestorOf(e,t){if(null===e||null===t||null===e.parent)return!1;let i=t.parent;for(;null!==i;){if(e===i)return!0;i=i.parent}return!1}static findAllTokenNodes(t,i){return e.findAllNodes(t,i,!0)}static findAllRuleNodes(t,i){return e.findAllNodes(t,i,!1)}static findAllNodes(t,i,s){const n=[];return e.doFindAllNodes(t,i,s,n),n}static descendants(t){let i=[t];for(let s=0;s<t.getChildCount();s++)i=i.concat(e.descendants(t.getChild(s)));return i}static getRootOfSubtreeEnclosingRegion(e,t,i){const s=e.getChildCount();for(let n=0;n<s;n++){const s=e.getChild(n),r=this.getRootOfSubtreeEnclosingRegion(s,t,i);if(null!==r)return r}return e instanceof W&&t>=e.start.tokenIndex&&(null===e.stop||i<=e.stop.tokenIndex)?e:null}static stripChildrenOutOfRange(e,t,i,s){if(null!==e)for(let n=0;n<e.getChildCount();n++){const o=e.getChild(n),a=o.getSourceInterval();if(e instanceof W&&(a.stop<i||a.start>s)&&this.isAncestorOf(o,t)){const t=H.fromType(r.INVALID_TYPE,"...");e.children[n]=new F(t)}}}static doFindAllNodes(t,i,s,n){s&&t instanceof F?t.symbol?.type===i&&n.push(t):!s&&t instanceof W&&t.ruleIndex===i&&n.push(t);for(let r=0;r<t.getChildCount();r++)e.doFindAllNodes(t.getChild(r),i,s,n)}},W=class e{static{c(this,"ParserRuleContext")}static empty=new e(null);start=null;stop=null;children=[];invokingState;parent;constructor(e,t=-1){this.parent=e,this.invokingState=t}copyFrom(e){this.parent=e.parent,this.invokingState=e.invokingState,this.children.slice(0,this.children.length),this.start=e.start,this.stop=e.stop,e.children&&e.children.forEach((e=>{e instanceof U&&(this.children.push(e),e.parent=this)}))}enterRule(e){}exitRule(e){}addChild(e){return this.children.push(e),e}removeLastChild(){this.children.pop()}addTokenNode(e){const t=new F(e);return this.children.push(t),t.parent=this,t}addErrorNode(e){return e.parent=this,this.children.push(e),e}getChild(e,t){if(e<0||e>=this.children.length)return null;if(!t)return this.children[e];for(const i of this.children)if(i instanceof t){if(0===e)return i;e-=1}return null}getToken(e,t){if(t<0||t>=this.children.length)return null;for(const i of this.children)if("symbol"in i&&i.symbol?.type===e){if(0===t)return i;t-=1}return null}getTokens(e){const t=[];for(const i of this.children)"symbol"in i&&i.symbol?.type===e&&t.push(i);return t}getRuleContext(e,t){return this.getChild(e,t)}getRuleContexts(e){const t=[];for(const i of this.children)i instanceof e&&t.push(i);return t}getChildCount(){return this.children.length}getSourceInterval(){return null===this.start?m.INVALID_INTERVAL:null===this.stop||this.stop.tokenIndex<this.start.tokenIndex?new m(this.start.tokenIndex,this.start.tokenIndex-1):new m(this.start.tokenIndex,this.stop.tokenIndex)}depth(){let e=0,t=this;for(;null!==t;)t=t.parent,e+=1;return e}isEmpty(){return-1===this.invokingState}get ruleContext(){return this}get ruleIndex(){return-1}getPayload(){return this}getText(){return 0===this.children.length?"":this.children.map((e=>e.getText())).join("")}getAltNumber(){return Z.INVALID_ALT_NUMBER}setAltNumber(e){}accept(e){return e.visitChildren(this)}toStringTree(...e){return e.length<2?B.toStringTree(this,null,e[0]):B.toStringTree(this,e[0],e[1])}toString(e,t){e=e??null,t=t??null;let i=this,s="[";for(;null!==i&&i!==t;){if(null===e)i.isEmpty()||(s+=i.invokingState);else{const t=i.ruleIndex;s+=t>=0&&t<e.length?e[t]:""+t}null===i.parent||null===e&&i.parent.isEmpty()||(s+=" "),i=i.parent}return s+="]",s}},V=class e extends k{static{c(this,"ArrayPredictionContext")}parents=[];returnStates=[];constructor(e,t){return super(k.calculateHashCodeList(e,t)),this.parents=e,this.returnStates=t,this}isEmpty(){return this.returnStates[0]===k.EMPTY_RETURN_STATE}get length(){return this.returnStates.length}getParent(e){return this.parents[e]}getReturnState(e){return this.returnStates[e]}equals(t){return this===t||t instanceof e&&this.hashCode()===t.hashCode()&&(b(this.returnStates,t.returnStates)&&E(this.parents,t.parents))}toString(){if(this.isEmpty())return"[]";const e=[];for(let t=0;t<this.returnStates.length;t++)this.returnStates[t]!==k.EMPTY_RETURN_STATE?(e.push(this.returnStates[t].toString()),this.parents[t]?e.push(this.parents[t].toString()):e.push("null")):e.push("$");return`[${e.join(", ")}]`}},z=c(((e,t)=>t===k.EMPTY_RETURN_STATE&&null===e?N.instance:new A(e,t)),"createSingletonPredictionContext"),G=c(((e,t)=>{if(t||(t=W.empty),!t.parent||t===W.empty)return N.instance;const i=G(e,t.parent),s=e.states[t.invokingState].transitions[0];return z(i,s.followState.stateNumber)}),"predictionContextFromRuleContext"),j=c(((e,t,i)=>{if(e.isEmpty())return e;let s=i.get(e);if(s)return s;if(s=t.get(e),s)return i.set(e,s),s;let n,r=!1,o=[];for(let a=0;a<o.length;a++){const s=j(e.getParent(a),t,i);if(r||s!==e.getParent(a)){if(!r){o=[];for(let t=0;t<e.length;t++)o[t]=e.getParent(t);r=!0}o[a]=s}}return r?(n=0===o.length?N.instance:1===o.length?z(o[0]??void 0,e.getReturnState(0)):new V(o,e.returnStates),t.add(n),i.set(n,n),i.set(e,n),n):(t.add(e),i.set(e,e),e)}),"getCachedPredictionContext"),K=c(((e,t,i,s)=>{if(e===t||e.equals(t))return e;if(e instanceof A&&t instanceof A)return $(e,t,i,s);if(i){if(e instanceof N)return e;if(t instanceof N)return t}return e instanceof A&&(e=new V([e.parent],[e.returnState])),t instanceof A&&(t=new V([t.parent],[t.returnState])),Y(e,t,i,s)}),"merge"),Y=c(((e,t,i,s)=>{if(s){let i=s.get(e,t);if(i)return i;if(i=s.get(t,e),i)return i}let n=0,r=0,o=0,a=new Array(e.returnStates.length+t.returnStates.length).fill(0),c=new Array(e.returnStates.length+t.returnStates.length).fill(null);for(;n<e.returnStates.length&&r<t.returnStates.length;){const l=e.parents[n],h=t.parents[r];if(e.returnStates[n]===t.returnStates[r]){const t=e.returnStates[n];t===k.EMPTY_RETURN_STATE&&null===l&&null===h||null!==l&&null!==h&&l===h?(c[o]=l,a[o]=t):(c[o]=K(l,h,i,s),a[o]=t),n+=1,r+=1}else e.returnStates[n]<t.returnStates[r]?(c[o]=l,a[o]=e.returnStates[n],n+=1):(c[o]=h,a[o]=t.returnStates[r],r+=1);o+=1}if(n<e.returnStates.length)for(let h=n;h<e.returnStates.length;h++)c[o]=e.parents[h],a[o]=e.returnStates[h],o+=1;else for(let h=r;h<t.returnStates.length;h++)c[o]=t.parents[h],a[o]=t.returnStates[h],o+=1;if(o<c.length){if(1===o){const i=z(c[0]??void 0,a[0]);return null!==s&&s.set(e,t,i),i}c=c.slice(0,o),a=a.slice(0,o)}const l=new V(c,a);return l.equals(e)?(null!==s&&s.set(e,t,e),k.traceATNSimulator&&console.log("mergeArrays a="+e+",b="+t+" -> a"),e):l.equals(t)?(null!==s&&s.set(e,t,t),t):(q(c),null!==s&&s.set(e,t,l),k.traceATNSimulator&&console.log("mergeArrays a="+e+",b="+t+" -> "+l),l)}),"mergeArrays"),q=c((e=>{const t=new P(u.instance);for(const i of e)i&&(t.containsKey(i)||t.set(i,i));for(let i=0;i<e.length;i++)e[i]&&(e[i]=t.get(e[i])??null)}),"combineCommonParents"),$=c(((e,t,i,s)=>{if(null!==s){let i=s.get(e,t);if(null!==i)return i;if(i=s.get(t,e),null!==i)return i}const n=Q(e,t,i);if(null!==n)return null!==s&&s.set(e,t,n),n;if(e.returnState===t.returnState){const n=K(e.parent,t.parent,i,s);if(n===e.parent)return e;if(n===t.parent)return t;const r=z(n,e.returnState);return null!==s&&s.set(e,t,r),r}{let i=null;if((e===t||null!==e.parent&&e.parent.equals(t.parent))&&(i=e.parent),null!==i){const n=[e.returnState,t.returnState];e.returnState>t.returnState&&(n[0]=t.returnState,n[1]=e.returnState);const r=new V([i,i],n);return null!==s&&s.set(e,t,r),r}const n=[e.returnState,t.returnState];let r=[e.parent,t.parent];e.returnState>t.returnState&&(n[0]=t.returnState,n[1]=e.returnState,r=[t.parent,e.parent]);const o=new V(r,n);return null!==s&&s.set(e,t,o),o}}),"mergeSingletons"),Q=c(((e,t,i)=>{if(i){if(e===N.instance||t===N.instance)return N.instance}else{if(e===N.instance&&t===N.instance)return N.instance;if(e===N.instance){const e=[t.returnState,k.EMPTY_RETURN_STATE],i=[t.parent,null];return new V(i,e)}if(t===N.instance){const t=[e.returnState,k.EMPTY_RETURN_STATE],i=[e.parent,null];return new V(i,t)}}return null}),"mergeRoot"),X=class e{constructor(e){this.atn=e}static{c(this,"LL1Analyzer")}static hitPredicate=r.INVALID_TYPE;getDecisionLookahead(t){if(!t)return;const i=t.transitions.length,s=new Array(i);for(let n=0;n<i;n++){const i=new _,r=new p;this.doLook(t.transitions[n].target,void 0,N.instance,i,r,new h,!1,!1),i.length>0&&!i.contains(e.hitPredicate)&&(s[n]=i)}return s}look(e,t,i){const s=new _,n=i?G(this.atn,i):null;return this.doLook(e,t,n,s,new p,new h,!0,!0),s}doLook(t,i,s,n,o,a,c,l){const h=T.createWithContext(t,0,s);if(!o.get(h)){if(o.add(h),t===i){if(!s)return void n.addOne(r.EPSILON);if(s.isEmpty()&&l)return void n.addOne(r.EOF)}if(t.constructor.stateType===x.RULE_STOP){if(!s)return void n.addOne(r.EPSILON);if(s.isEmpty()&&l)return void n.addOne(r.EOF);if(s!==N.instance){const e=a.get(t.ruleIndex);try{a.clear(t.ruleIndex);for(let e=0;e<s.length;e++){const t=this.atn.states[s.getReturnState(e)];this.doLook(t,i,s.getParent(e),n,o,a,c,l)}}finally{e&&a.set(t.ruleIndex)}return}}for(const h of t.transitions)switch(h.transitionType){case I.RULE:{if(a.get(h.target.ruleIndex))continue;const e=z(s??void 0,h.followState.stateNumber);try{a.set(h.target.ruleIndex),this.doLook(h.target,i,e,n,o,a,c,l)}finally{a.clear(h.target.ruleIndex)}break}case I.PREDICATE:case I.PRECEDENCE:c?this.doLook(h.target,i,s,n,o,a,c,l):n.addOne(e.hitPredicate);break;case I.WILDCARD:n.addRange(r.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType);break;default:if(h.isEpsilon)this.doLook(h.target,i,s,n,o,a,c,l);else{let e=h.label;e&&(h instanceof D&&(e=e.complement(r.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType)),n.addSet(e))}}}}},Z=class{static{c(this,"ATN")}static INVALID_ALT_NUMBER=0;static LEXER=0;static PARSER=1;grammarType;maxTokenType;states=[];decisionToState=[];ruleToStartState=[];ruleToStopState=[];modeNameToStartState=new Map;ruleToTokenType=[];lexerActions=[];modeToStartState=[];analyzer;constructor(e,t){this.grammarType=e,this.maxTokenType=t,this.analyzer=new X(this)}nextTokens(e,t){if(!t&&e.nextTokenWithinRule)return e.nextTokenWithinRule;const i=this.analyzer.look(e,void 0,t);return t||(e.nextTokenWithinRule=i),i}addState(e){e&&(e.stateNumber=this.states.length),this.states.push(e)}removeState(e){this.states[e.stateNumber]=null}defineDecisionState(e){return this.decisionToState.push(e),e.decision=this.decisionToState.length-1,e.decision}getDecisionState(e){return 0===this.decisionToState.length?null:this.decisionToState[e]}getNumberOfDecisions(){return this.decisionToState.length}getExpectedTokens(e,t){if(e<0||e>=this.states.length)throw new Error("Invalid state number.");const i=this.states[e];let s=this.nextTokens(i);if(!s.contains(r.EPSILON))return s;let n=t;const o=new _;for(o.addSet(s),o.removeOne(r.EPSILON);null!==n&&n.invokingState>=0&&s.contains(r.EPSILON);){const e=this.states[n.invokingState].transitions[0];s=this.nextTokens(e.followState),o.addSet(s),o.removeOne(r.EPSILON),n=n.parent}return s.contains(r.EPSILON)&&o.addOne(r.EOF),o}},J=class e{static{c(this,"KeyTypeEqualityComparer")}static instance=new e;hashCode(e){let t=7;return t=31*t+e.state.stateNumber,t=31*t+e.alt,t=31*t+e.semanticContext.hashCode(),t}equals(e,t){return e===t||e.state.stateNumber===t.state.stateNumber&&e.alt===t.alt&&e.semanticContext.equals(t.semanticContext)}},ee=class{static{c(this,"ATNConfigSet")}configLookup=new p(J.instance);configs=[];uniqueAlt=0;hasSemanticContext=!1;dipsIntoOuterContext=!1;fullCtx=!1;readOnly=!1;conflictingAlts=null;firstStopState;#s=-1;constructor(e){if(void 0!==e)if("boolean"===typeof e)this.fullCtx=e??!0;else{const t=e;this.addAll(t.configs),this.uniqueAlt=t.uniqueAlt,this.conflictingAlts=t.conflictingAlts,this.hasSemanticContext=t.hasSemanticContext,this.dipsIntoOuterContext=t.dipsIntoOuterContext}}[Symbol.iterator](){return this.configs[Symbol.iterator]()}add(e,t=null){if(this.readOnly)throw new Error("This set is readonly");this.firstStopState||e.state.constructor.stateType!==x.RULE_STOP||(this.firstStopState=e),this.hasSemanticContext||=e.semanticContext!==y.NONE,this.dipsIntoOuterContext||=e.reachesIntoOuterContext;const i=this.configLookup.getOrAdd(e);if(i===e)return this.#s=-1,void this.configs.push(e);const s=!this.fullCtx,n=K(i.context,e.context,s,t);i.reachesIntoOuterContext||=e.reachesIntoOuterContext,i.precedenceFilterSuppressed||=e.precedenceFilterSuppressed,i.context=n}get elements(){return this.configs}getAlts(){const e=new h;for(const t of this.configs)e.set(t.alt);return e}getPredicates(){const e=[];for(const t of this.configs)t.semanticContext!==y.NONE&&e.push(t.semanticContext);return e}getStates(){const e=new p;for(const t of this.configs)e.add(t.state);return e}optimizeConfigs(e){if(this.readOnly)throw new Error("This set is readonly");if(0!==this.configLookup.size)for(const t of this.configs)t.context=e.getCachedContext(t.context)}addAll(e){for(const t of e)this.add(t);return!1}equals(e){return this===e||!(this.fullCtx!==e.fullCtx||this.uniqueAlt!==e.uniqueAlt||this.conflictingAlts!==e.conflictingAlts||this.hasSemanticContext!==e.hasSemanticContext||this.dipsIntoOuterContext!==e.dipsIntoOuterContext||!E(this.configs,e.configs))}hashCode(){return-1===this.#s&&(this.#s=this.computeHashCode()),this.#s}get length(){return this.configs.length}isEmpty(){return 0===this.configs.length}contains(e){if(null===this.configLookup)throw new Error("This method is not implemented for readonly sets.");return this.configLookup.contains(e)}containsFast(e){if(null===this.configLookup)throw new Error("This method is not implemented for readonly sets.");return this.configLookup.contains(e)}clear(){if(this.readOnly)throw new Error("This set is readonly");this.configs=[],this.#s=-1,this.configLookup=new p(J.instance)}setReadonly(e){this.readOnly=e,e&&(this.configLookup=null)}toString(){return C(this.configs)+(this.hasSemanticContext?",hasSemanticContext="+this.hasSemanticContext:"")+(this.uniqueAlt!==Z.INVALID_ALT_NUMBER?",uniqueAlt="+this.uniqueAlt:"")+(null!==this.conflictingAlts?",conflictingAlts="+this.conflictingAlts:"")+(this.dipsIntoOuterContext?",dipsIntoOuterContext":"")}computeHashCode(){let e=d.initialize();return this.configs.forEach((t=>{e=d.update(e,t.hashCode())})),e=d.finish(e,this.configs.length),e}},te=class extends x{static{c(this,"BasicState")}static stateType=x.BASIC},ie=class extends x{static{c(this,"DecisionState")}decision=-1;nonGreedy=!1},se=class extends ie{static{c(this,"BlockStartState")}endState},ne=class extends x{static{c(this,"BlockEndState")}static stateType=x.BLOCK_END;startState},re=class extends x{static{c(this,"LoopEndState")}static stateType=x.LOOP_END;loopBackState},oe=class extends x{static{c(this,"RuleStartState")}static stateType=x.RULE_START;stopState;isLeftRecursiveRule=!1},ae=class extends x{static{c(this,"RuleStopState")}static stateType=x.RULE_STOP},ce=class extends ie{static{c(this,"TokensStartState")}static stateType=x.TOKEN_START},le=class extends ie{static{c(this,"PlusLoopbackState")}static stateType=x.PLUS_LOOP_BACK},he=class extends x{static{c(this,"StarLoopbackState")}static stateType=x.STAR_LOOP_BACK},de=class extends ie{static{c(this,"StarLoopEntryState")}static stateType=x.STAR_LOOP_ENTRY;loopBackState;precedenceRuleDecision=!1},ue=class extends se{static{c(this,"PlusBlockStartState")}static stateType=x.PLUS_BLOCK_START;loopBackState},ge=class extends se{static{c(this,"StarBlockStartState")}static stateType=x.STAR_BLOCK_START},pe=class extends se{static{c(this,"BasicBlockStartState")}static stateType=x.BLOCK_START},me=class extends I{static{c(this,"AtomTransition")}labelValue;#n;constructor(e,t){super(e),this.labelValue=t,this.#n=_.of(t,t)}get label(){return this.#n}get transitionType(){return I.ATOM}matches(e){return this.labelValue===e}toString(){return this.labelValue.toString()}},fe=class extends I{static{c(this,"RuleTransition")}ruleIndex;precedence;followState;constructor(e,t,i,s){super(e),this.ruleIndex=t,this.precedence=i,this.followState=s}get isEpsilon(){return!0}get transitionType(){return I.RULE}matches(e,t,i){return!1}},_e=class extends I{static{c(this,"RangeTransition")}start;stop;#n=new _;constructor(e,t,i){super(e),this.start=t,this.stop=i,this.#n.addRange(t,i)}get label(){return this.#n}get transitionType(){return I.RANGE}matches(e,t,i){return e>=this.start&&e<=this.stop}toString(){return"'"+String.fromCharCode(this.start)+"'..'"+String.fromCharCode(this.stop)+"'"}},ve=class extends I{static{c(this,"ActionTransition")}ruleIndex;actionIndex;isCtxDependent;constructor(e,t,i,s){super(e),this.ruleIndex=t,this.actionIndex=i??-1,this.isCtxDependent=s??!1}get isEpsilon(){return!0}get transitionType(){return I.ACTION}matches(e,t,i){return!1}toString(){return"action_"+this.ruleIndex+":"+this.actionIndex}},Ce=class extends I{static{c(this,"EpsilonTransition")}#r;constructor(e,t=-1){super(e),this.#r=t}get outermostPrecedenceReturn(){return this.#r}get isEpsilon(){return!0}get transitionType(){return I.EPSILON}matches(){return!1}toString(){return"epsilon"}},Ee=class extends I{static{c(this,"WildcardTransition")}get transitionType(){return I.WILDCARD}matches(e,t,i){return e>=t&&e<=i}toString(){return"."}},be=class extends I{static{c(this,"AbstractPredicateTransition")}constructor(e){super(e)}},Se=class extends be{static{c(this,"PredicateTransition")}ruleIndex;predIndex;isCtxDependent;constructor(e,t,i,s){super(e),this.ruleIndex=t,this.predIndex=i,this.isCtxDependent=s}get isEpsilon(){return!0}matches(e,t,i){return!1}get transitionType(){return I.PREDICATE}getPredicate(){return new y.Predicate(this.ruleIndex,this.predIndex,this.isCtxDependent)}toString(){return"pred_"+this.ruleIndex+":"+this.predIndex}},ye=class extends be{static{c(this,"PrecedencePredicateTransition")}precedence;constructor(e,t){super(e),this.precedence=t}get isEpsilon(){return!0}matches(e,t,i){return!1}getPredicate(){return new y.PrecedencePredicate(this.precedence)}get transitionType(){return I.PRECEDENCE}toString(){return this.precedence+" >= _p"}},we=0,Re=1,Le=2,Te=3,xe=4,ke=5,Ae=6,Ne=7,Ie=class e{static{c(this,"LexerSkipAction")}static instance=new e;actionType;isPositionDependent=!1;constructor(){this.actionType=Ae}equals(e){return e===this}hashCode(){return Ae}execute(e){e.skip()}toString(){return"skip"}},Oe=class e{static{c(this,"LexerChannelAction")}channel;actionType;isPositionDependent=!1;cachedHashCode;constructor(e){this.actionType=we,this.channel=e}execute(e){e.channel=this.channel}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize();e=d.update(e,this.actionType),e=d.update(e,this.channel),this.cachedHashCode=d.finish(e,2)}return this.cachedHashCode}equals(t){return this===t||t instanceof e&&this.channel===t.channel}toString(){return"channel("+this.channel+")"}},De=class e{static{c(this,"LexerCustomAction")}ruleIndex;actionIndex;actionType;isPositionDependent=!0;cachedHashCode;constructor(e,t){this.actionType=Re,this.ruleIndex=e,this.actionIndex=t}execute(e){e.action(null,this.ruleIndex,this.actionIndex)}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize();e=d.update(e,this.actionType),e=d.update(e,this.ruleIndex),e=d.update(e,this.actionIndex),this.cachedHashCode=d.finish(e,3)}return this.cachedHashCode}equals(t){return this===t||t instanceof e&&(this.ruleIndex===t.ruleIndex&&this.actionIndex===t.actionIndex)}},Me=class e{static{c(this,"LexerMoreAction")}static instance=new e;actionType;isPositionDependent=!1;constructor(){this.actionType=Te}equals(e){return e===this}hashCode(){return Te}execute(e){e.more()}toString(){return"more"}},Pe=class e{static{c(this,"LexerTypeAction")}type;actionType;isPositionDependent=!1;cachedHashCode;constructor(e){this.actionType=Ne,this.type=e}execute(e){e.type=this.type}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize();e=d.update(e,this.actionType),e=d.update(e,this.type),this.cachedHashCode=d.finish(e,2)}return this.cachedHashCode}equals(t){return this===t||t instanceof e&&this.type===t.type}toString(){return"type("+this.type+")"}},Fe=class e{static{c(this,"LexerPushModeAction")}mode;actionType;isPositionDependent=!1;cachedHashCode;constructor(e){this.actionType=ke,this.mode=e}execute(e){e.pushMode(this.mode)}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize();e=d.update(e,this.actionType),e=d.update(e,this.mode),this.cachedHashCode=d.finish(e,2)}return this.cachedHashCode}equals(t){return this===t||t instanceof e&&this.mode===t.mode}toString(){return"pushMode("+this.mode+")"}},Ue=class e{static{c(this,"LexerPopModeAction")}static instance=new e;actionType;isPositionDependent=!1;constructor(){this.actionType=xe}equals(e){return e===this}hashCode(){return xe}execute(e){e.popMode()}toString(){return"popMode"}},He=class e{static{c(this,"LexerModeAction")}mode;actionType;isPositionDependent=!1;cachedHashCode;constructor(e){this.actionType=Le,this.mode=e}execute(e){e.mode=this.mode}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize();e=d.update(e,this.actionType),e=d.update(e,this.mode),this.cachedHashCode=d.finish(e,2)}return this.cachedHashCode}equals(t){return this===t||t instanceof e&&this.mode===t.mode}toString(){return"mode("+this.mode+")"}},Be=class e{static{c(this,"ATNDeserializer")}static SERIALIZED_VERSION=4;static stateTypeMapper=new Map([[x.INVALID_TYPE,void 0],[x.BASIC,te],[x.RULE_START,oe],[x.BLOCK_START,pe],[x.PLUS_BLOCK_START,ue],[x.STAR_BLOCK_START,ge],[x.TOKEN_START,ce],[x.RULE_STOP,ae],[x.BLOCK_END,ne],[x.STAR_LOOP_BACK,he],[x.STAR_LOOP_ENTRY,de],[x.PLUS_LOOP_BACK,le],[x.LOOP_END,re]]);static lexerActionFactoryMapper=new Map([[we,e=>new Oe(e)],[Re,(e,t)=>new De(e,t)],[Le,e=>new He(e)],[Te,()=>Me.instance],[xe,()=>Ue.instance],[ke,e=>new Fe(e)],[Ae,()=>Ie.instance],[Ne,e=>new Pe(e)]]);data=[];pos=0;deserializationOptions;actionFactories;constructor(e){e||(e={readOnly:!1,verifyATN:!0,generateRuleBypassTransitions:!1}),this.deserializationOptions=e}deserialize(e){this.data=e,this.checkVersion();const t=this.readATN();this.readStates(t),this.readRules(t),this.readModes(t);const i=[];return this.readSets(t,i),this.readEdges(t,i),this.readDecisions(t),this.readLexerActions(t),this.markPrecedenceDecisions(t),this.verifyATN(t),this.deserializationOptions.generateRuleBypassTransitions&&t.grammarType===Z.PARSER&&(this.generateRuleBypassTransitions(t),this.verifyATN(t)),t}checkVersion(){const t=this.data[this.pos++];if(t!==e.SERIALIZED_VERSION)throw new Error("Could not deserialize ATN with version "+t+" (expected "+e.SERIALIZED_VERSION+").")}readATN(){const e=this.data[this.pos++],t=this.data[this.pos++];return new Z(e,t)}readStates(e){let t,i;const s=[],n=[],r=this.data[this.pos++];for(let c=0;c<r;c++){const t=this.data[this.pos++];if(t===x.INVALID_TYPE){e.addState(null);continue}const i=this.data[this.pos++],r=this.stateFactory(t,i);if(t===x.LOOP_END){const e=this.data[this.pos++];s.push([r,e])}else if(r instanceof se){const e=this.data[this.pos++];n.push([r,e])}e.addState(r)}for(t=0;t<s.length;t++){const i=s[t];i[0].loopBackState=e.states[i[1]]??void 0}for(t=0;t<n.length;t++){const i=n[t];i[0].endState=e.states[i[1]]}const o=this.data[this.pos++];for(t=0;t<o;t++)i=this.data[this.pos++],e.states[i].nonGreedy=!0;const a=this.data[this.pos++];for(t=0;t<a;t++)i=this.data[this.pos++],e.states[i].isLeftRecursiveRule=!0}readRules(e){let t;const i=this.data[this.pos++];for(e.grammarType===Z.LEXER&&(e.ruleToTokenType=new Array(i),e.ruleToTokenType.fill(0)),e.ruleToStartState=new Array(i),e.ruleToStartState.fill(null),t=0;t<i;t++){const i=this.data[this.pos++];if(e.ruleToStartState[t]=e.states[i],e.grammarType===Z.LEXER){const i=this.data[this.pos++];e.ruleToTokenType[t]=i}}for(e.ruleToStopState=new Array(i),e.ruleToStopState.fill(null),t=0;t<e.states.length;t++){const i=e.states[t];i instanceof ae&&(e.ruleToStopState[i.ruleIndex]=i,e.ruleToStartState[i.ruleIndex].stopState=i)}}readModes(e){const t=this.data[this.pos++];for(let i=0;i<t;i++){const t=this.data[this.pos++];e.modeToStartState.push(e.states[t])}}readSets(e,t){const i=this.data[this.pos++];for(let s=0;s<i;s++){const e=new _;t.push(e);const i=this.data[this.pos++];0!==this.data[this.pos++]&&e.addOne(-1);for(let t=0;t<i;t++){const t=this.data[this.pos++],i=this.data[this.pos++];e.addRange(t,i)}}}readEdges(e,t){let i,s,n,r,o;const a=this.data[this.pos++];for(i=0;i<a;i++){const i=this.data[this.pos++],s=this.data[this.pos++],n=this.data[this.pos++],o=this.data[this.pos++],a=this.data[this.pos++],c=this.data[this.pos++];r=this.edgeFactory(e,n,s,o,a,c,t);e.states[i].addTransition(r)}for(i=0;i<e.states.length;i++)for(n=e.states[i],s=0;s<n.transitions.length;s++){const t=n.transitions[s];if(!(t instanceof fe))continue;let i=-1;e.ruleToStartState[t.target.ruleIndex].isLeftRecursiveRule&&0===t.precedence&&(i=t.target.ruleIndex),r=new Ce(t.followState,i),e.ruleToStopState[t.target.ruleIndex].addTransition(r)}for(i=0;i<e.states.length;i++){if(n=e.states[i],n instanceof se){if(!n.endState)throw new Error("IllegalState");if(n.endState.startState)throw new Error("IllegalState");n.endState.startState=n}if(n instanceof le)for(s=0;s<n.transitions.length;s++)o=n.transitions[s].target,o instanceof ue&&(o.loopBackState=n);else if(n instanceof he)for(s=0;s<n.transitions.length;s++)o=n.transitions[s].target,o instanceof de&&(o.loopBackState=n)}}readDecisions(e){const t=this.data[this.pos++];for(let i=0;i<t;i++){const t=this.data[this.pos++],s=e.states[t];e.decisionToState.push(s),s.decision=i}}readLexerActions(e){if(e.grammarType===Z.LEXER){const t=this.data[this.pos++];e.lexerActions=[];for(let i=0;i<t;i++){const t=this.data[this.pos++],i=this.data[this.pos++],s=this.data[this.pos++];e.lexerActions.push(this.lexerActionFactory(t,i,s))}}}generateRuleBypassTransitions(e){let t;const i=e.ruleToStartState.length;for(t=0;t<i;t++)e.ruleToTokenType[t]=e.maxTokenType+t+1;for(t=0;t<i;t++)this.generateRuleBypassTransition(e,t)}generateRuleBypassTransition(e,t){let i,s;const n=new pe;n.ruleIndex=t,e.addState(n);const r=new ne;r.ruleIndex=t,e.addState(r),n.endState=r,e.defineDecisionState(n),r.startState=n;let o=null,a=null;if(e.ruleToStartState[t].isLeftRecursiveRule){for(a=null,i=0;i<e.states.length;i++)if(s=e.states[i],this.stateIsEndStateFor(s,t)){a=s,o=s.loopBackState.transitions[0];break}if(null===o)throw new Error("Couldn't identify final state of the precedence rule prefix section.")}else a=e.ruleToStopState[t];for(i=0;i<e.states.length;i++){s=e.states[i];for(const e of s.transitions)e!==o&&e.target===a&&(e.target=r)}const c=e.ruleToStartState[t];for(;c.transitions.length>0;){const e=c.removeTransition(c.transitions.length-1);n.addTransition(e)}e.ruleToStartState[t].addTransition(new Ce(n)),a&&r.addTransition(new Ce(a));const l=new te;e.addState(l),l.addTransition(new me(r,e.ruleToTokenType[t])),n.addTransition(new Ce(l))}stateIsEndStateFor(e,t){if(e.ruleIndex!==t)return null;if(!(e instanceof de))return null;const i=e.transitions[e.transitions.length-1].target;return i instanceof re&&i.epsilonOnlyTransitions&&i.transitions[0].target instanceof ae?e:null}markPrecedenceDecisions(e){for(const t of e.states)if(t instanceof de&&e.ruleToStartState[t.ruleIndex].isLeftRecursiveRule){const e=t.transitions[t.transitions.length-1].target;e instanceof re&&e.epsilonOnlyTransitions&&e.transitions[0].target instanceof ae&&(t.precedenceRuleDecision=!0)}}verifyATN(e){if(this.deserializationOptions.verifyATN)for(const t of e.states)if(null!==t)if(this.checkCondition(t.epsilonOnlyTransitions||t.transitions.length<=1),t instanceof ue)this.checkCondition(null!==t.loopBackState);else if(t instanceof de)if(this.checkCondition(null!==t.loopBackState),this.checkCondition(2===t.transitions.length),t.transitions[0].target instanceof ge)this.checkCondition(t.transitions[1].target instanceof re),this.checkCondition(!t.nonGreedy);else{if(!(t.transitions[0].target instanceof re))throw new Error("IllegalState");this.checkCondition(t.transitions[1].target instanceof ge),this.checkCondition(t.nonGreedy)}else t instanceof he?(this.checkCondition(1===t.transitions.length),this.checkCondition(t.transitions[0].target instanceof de)):t instanceof re?this.checkCondition(null!==t.loopBackState):t instanceof oe?this.checkCondition(null!==t.stopState):t instanceof se?this.checkCondition(null!==t.endState):t instanceof ne?this.checkCondition(null!==t.startState):t instanceof ie?this.checkCondition(t.transitions.length<=1||t.decision>=0):this.checkCondition(t.transitions.length<=1||t instanceof ae)}checkCondition(e,t){if(!e)throw void 0!==t&&null!==t||(t="IllegalState"),t}edgeFactory(e,t,i,s,n,o,a){const c=e.states[i];switch(t){case I.EPSILON:return new Ce(c);case I.RANGE:return new _e(c,0!==o?r.EOF:s,n);case I.RULE:return new fe(e.states[s],n,o,c);case I.PREDICATE:return new Se(c,s,n,0!==o);case I.PRECEDENCE:return new ye(c,s);case I.ATOM:return new me(c,0!==o?r.EOF:s);case I.ACTION:return new ve(c,s,n,0!==o);case I.SET:return new O(c,a[s]);case I.NOT_SET:return new D(c,a[s]);case I.WILDCARD:return new Ee(c);default:throw new Error("The specified transition type: "+t+" is not valid.")}}stateFactory(t,i){const s=e.stateTypeMapper.get(t);if(!s)throw new Error("The specified state type "+t+" is not valid.");const n=new s;return n.ruleIndex=i,n}lexerActionFactory(t,i,s){const n=e.lexerActionFactoryMapper.get(t);if(!n)throw new Error("The specified lexer action type "+t+" is not valid.");return n(i,s)}},We=class e extends P{static{c(this,"OrderedHashMap")}#o=[];clear(){super.clear(),this.#o=[]}get(e){return super.get(e)}set(e,t){const i=super.set(e,t);return void 0===i&&this.#o.push(e),i}setIfAbsent(e,t){const i=super.setIfAbsent(e,t);return void 0===i&&this.#o.push(e),i}values(){return{[Symbol.iterator]:()=>{let e=0;return{next:c((()=>e<this.#o.length?{done:!1,value:super.get(this.#o[e++])}:{done:!0,value:void 0}),"next")}}}}keys(){return this.#o[Symbol.iterator]()}equals(t){return t instanceof e&&super.equals(t)}},Ve=(class e{static{c(this,"ATNSerializer")}atn;data=[];sets=new We(u.instance);nonGreedyStates=[];precedenceStates=[];constructor(e){this.atn=e}static getSerialized(t){return new e(t).serialize()}static serializeSets(e,t){e.push(t.length);for(const i of t){const t=i.contains(r.EOF),s=[...i];t&&s[0].stop===r.EOF?e.push(s.length-1):e.push(s.length),e.push(t?1:0);for(const i of s){if(i.start===r.EOF){if(i.stop===r.EOF)continue;e.push(0)}else e.push(i.start);e.push(i.stop)}}}serialize(){this.addPreamble();const e=this.addEdges();this.addNonGreedyStates(),this.addPrecedenceStates(),this.addRuleStatesAndLexerTokenTypes(),this.addModeStartStates();const t=this.addSets();return this.addEdges(e,t),this.addDecisionStartStates(),this.addLexerActions(),this.data}addPreamble(){this.data.push(Be.SERIALIZED_VERSION),this.data.push(this.atn.grammarType),this.data.push(this.atn.maxTokenType)}addLexerActions(){if(this.atn.grammarType===Z.LEXER){this.data.push(this.atn.lexerActions.length);for(const e of this.atn.lexerActions)switch(this.data.push(e.actionType),e.actionType){case we:{const t=e.channel;this.data.push(t),this.data.push(0);break}case Re:{const t=e.ruleIndex,i=e.actionIndex;this.data.push(t),this.data.push(i);break}case Le:{const t=e.mode;this.data.push(t),this.data.push(0);break}case Te:case xe:this.data.push(0),this.data.push(0);break;case ke:{const t=e.mode;this.data.push(t),this.data.push(0);break}case Ae:this.data.push(0),this.data.push(0);break;case Ne:{const t=e.type;this.data.push(t),this.data.push(0);break}default:throw new Error(`The specified lexer action type ${e.actionType} is not valid.`)}}}addDecisionStartStates(){this.data.push(this.atn.decisionToState.length);for(const e of this.atn.decisionToState)this.data.push(e.stateNumber)}addEdges(...e){switch(e.length){case 0:{let e=0;this.data.push(this.atn.states.length);for(const t of this.atn.states){if(null===t){this.data.push(x.INVALID_TYPE);continue}const i=t.constructor.stateType;t instanceof ie&&t.nonGreedy&&this.nonGreedyStates.push(t.stateNumber),t instanceof oe&&t.isLeftRecursiveRule&&this.precedenceStates.push(t.stateNumber),this.data.push(i),this.data.push(t.ruleIndex),t.constructor.stateType===x.LOOP_END?this.data.push(t.loopBackState.stateNumber):t instanceof se&&this.data.push(t.endState.stateNumber),t.constructor.stateType!==x.RULE_STOP&&(e+=t.transitions.length);for(const e of t.transitions){const t=e.transitionType;if(t===I.SET||t===I.NOT_SET){const t=e;this.sets.set(t.set,!0)}}}return e}case 2:{const[t,i]=e;this.data.push(t);for(const e of this.atn.states)if(null!==e&&e.constructor.stateType!==x.RULE_STOP)for(const t of e.transitions){if(null===this.atn.states[t.target.stateNumber])throw new Error("Cannot serialize a transition to a removed state.");const s=e.stateNumber;let n=t.target.stateNumber;const o=t.transitionType;let a=0,c=0,l=0;switch(o){case I.RULE:n=t.followState.stateNumber,a=t.target.stateNumber,c=t.ruleIndex,l=t.precedence;break;case I.PRECEDENCE:a=t.precedence;break;case I.PREDICATE:{const e=t;a=e.ruleIndex,c=e.predIndex,l=e.isCtxDependent?1:0;break}case I.RANGE:a=t.start,c=t.stop,a===r.EOF&&(a=0,l=1);break;case I.ATOM:a=t.labelValue,a===r.EOF&&(a=0,l=1);break;case I.ACTION:{const e=t;a=e.ruleIndex,c=e.actionIndex,l=e.isCtxDependent?1:0;break}case I.SET:case I.NOT_SET:a=i.get(t.set)}this.data.push(s),this.data.push(n),this.data.push(o),this.data.push(a),this.data.push(c),this.data.push(l)}break}default:throw new Error("Invalid number of arguments")}}addSets(){e.serializeSets(this.data,[...this.sets.keys()]);const t=new P;let i=0;for(const e of this.sets.keys())t.set(e,i++);return t}addModeStartStates(){const e=this.atn.modeToStartState.length;if(this.data.push(e),e>0)for(const t of this.atn.modeToStartState)this.data.push(t.stateNumber)}addRuleStatesAndLexerTokenTypes(){const e=this.atn.ruleToStartState.length;this.data.push(e);for(let t=0;t<e;t++){const e=this.atn.ruleToStartState[t];this.data.push(e.stateNumber),this.atn.grammarType===Z.LEXER&&this.data.push(this.atn.ruleToTokenType[t])}}addPrecedenceStates(){this.data.push(this.precedenceStates.length);for(const e of this.precedenceStates)this.data.push(e)}addNonGreedyStates(){this.data.push(this.nonGreedyStates.length);for(const e of this.nonGreedyStates)this.data.push(e)}},class e{static{c(this,"DFAState")}stateNumber=-1;configs;edges=[];isAcceptState=!1;prediction=-1;lexerActionExecutor=null;requiresFullContext=!1;predicates=null;constructor(e){e&&(this.configs=e)}static fromState(t){const i=new e;return i.stateNumber=t,i}static fromConfigs(t){return new e(t)}static hashCode(e){return e.configs.hashCode()}static equals(e,t){return e.configs.equals(t.configs)}getAltSet(){const e=new Set;for(const t of this.configs)e.add(t.alt);return 0===e.size?null:e}toString(){let e="";return e+=this.stateNumber,e+=":",e+=this.configs?this.configs.toString():"",this.isAcceptState&&(e+="=>",this.predicates?e+=C(this.predicates):e+=this.prediction),e.toString()}}),ze=class{static{c(this,"ATNSimulator")}static ERROR=Ve.fromState(2147483647);atn;sharedContextCache;constructor(e,t){return this.atn=e,this.sharedContextCache=t,this}getCachedContext(e){if(!this.sharedContextCache)return e;const t=new P(u.instance);return j(e,this.sharedContextCache,t)}},Ge=(class e{static{c(this,"CodePointTransitions")}static createWithCodePoint(t,i){return e.createWithCodePointRange(t,i,i)}static createWithCodePointRange(e,t,i){return t===i?new me(e,t):new _e(e,t,i)}},class{static{c(this,"DecisionInfo")}decision=0;invocations=0;timeInPrediction=0;sllTotalLook=0;sllMinLook=0;sllMaxLook=0;sllMaxLookEvent;llTotalLook=0;llMinLook=0;llMaxLook=0;llMaxLookEvent;contextSensitivities;errors;ambiguities;predicateEvals;sllATNTransitions=0;sllDFATransitions=0;llFallback=0;llATNTransitions=0;llDFATransitions=0;constructor(e){this.decision=e,this.contextSensitivities=[],this.errors=[],this.ambiguities=[],this.predicateEvals=[]}toString(){return"{decision="+this.decision+", contextSensitivities="+this.contextSensitivities.length+", errors="+this.errors.length+", ambiguities="+this.ambiguities.length+", sllLookahead="+this.sllTotalLook+", sllATNTransitions="+this.sllATNTransitions+", sllDFATransitions="+this.sllDFATransitions+", llFallback="+this.llFallback+", llLookahead="+this.llTotalLook+", llATNTransitions="+this.llATNTransitions+"}"}}),je=class e extends T{static{c(this,"LexerATNConfig")}lexerActionExecutor;passedThroughNonGreedyDecision;constructor(t,i,s,n){return super(t,i,s??t.context,s?y.NONE:t.semanticContext),this.lexerActionExecutor=s?n:t.lexerActionExecutor??null,this.passedThroughNonGreedyDecision=e.checkNonGreedyDecision(t,this.state),this}static createWithExecutor(t,i,s){return new e(t,i,t.context,s)}static createWithConfig(t,i,s){return new e(i,t,s??null,i.lexerActionExecutor)}static createWithContext(t,i,s){return new e({alt:i},t,s,null)}static checkNonGreedyDecision(e,t){return e.passedThroughNonGreedyDecision||"nonGreedy"in t&&t.nonGreedy}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize(7);e=d.update(e,this.state.stateNumber),e=d.update(e,this.alt),e=d.updateFromComparable(e,this.context),e=d.updateFromComparable(e,this.semanticContext),e=d.update(e,this.passedThroughNonGreedyDecision?1:0),e=d.updateFromComparable(e,this.lexerActionExecutor),e=d.finish(e,6),this.cachedHashCode=e}return this.cachedHashCode}equals(e){return this===e||this.passedThroughNonGreedyDecision===e.passedThroughNonGreedyDecision&&(this.lexerActionExecutor&&e.lexerActionExecutor?this.lexerActionExecutor.equals(e.lexerActionExecutor):!e.lexerActionExecutor)&&super.equals(e)}},Ke=class{static{c(this,"BaseErrorListener")}syntaxError(e,t,i,s,n,r){}reportAmbiguity(e,t,i,s,n,r,o){}reportAttemptingFullContext(e,t,i,s,n,r){}reportContextSensitivity(e,t,i,s,n,r){}},Ye=class e extends Ke{static{c(this,"ConsoleErrorListener")}static instance=new e;syntaxError(e,t,i,s,n,r){console.error("line "+i+":"+s+" "+n)}},qe=class extends Ke{constructor(e){return super(),this.delegates=e,this}static{c(this,"ProxyErrorListener")}syntaxError(e,t,i,s,n,r){this.delegates.forEach((o=>{o.syntaxError(e,t,i,s,n,r)}))}reportAmbiguity(e,t,i,s,n,r,o){this.delegates.forEach((a=>{a.reportAmbiguity(e,t,i,s,n,r,o)}))}reportAttemptingFullContext(e,t,i,s,n,r){this.delegates.forEach((o=>{o.reportAttemptingFullContext(e,t,i,s,n,r)}))}reportContextSensitivity(e,t,i,s,n,r){this.delegates.forEach((o=>{o.reportContextSensitivity(e,t,i,s,n,r)}))}},$e=class e{static{c(this,"Recognizer")}static EOF=-1;static tokenTypeMapCache=new Map;static ruleIndexMapCache=new Map;interpreter;listeners=[Ye.instance];stateNumber=-1;checkVersion(e){const t="4.13.1";t!==e&&console.error("ANTLR runtime and generated code versions disagree: "+t+"!="+e)}addErrorListener(e){this.listeners.push(e)}removeErrorListeners(){this.listeners=[]}removeErrorListener(e){for(let t=0;t<this.listeners.length;t++)if(this.listeners[t]===e)return void this.listeners.splice(t,1)}getErrorListeners(){return this.listeners}getTokenTypeMap(){const t=this.vocabulary;let i=e.tokenTypeMapCache.get(t);if(!i){i=new Map;for(let e=0;e<=this.atn.maxTokenType;e++){const s=t.getLiteralName(e);s&&i.set(s,e);const n=t.getSymbolicName(e);n&&i.set(n,e)}i.set("EOF",r.EOF),e.tokenTypeMapCache.set(t,i)}return i}getRuleIndexMap(){const t=this.ruleNames;let i=e.ruleIndexMapCache.get(t);return i||(i=new Map,t.forEach(((e,t)=>i.set(e,t))),e.ruleIndexMapCache.set(t,i)),i}getTokenType(e){const t=this.getTokenTypeMap().get(e);return t||r.INVALID_TYPE}getErrorHeader(e){const t=e.offendingToken?.line,i=e.offendingToken?.column;return"line "+t+":"+i}get errorListenerDispatch(){return new qe(this.listeners)}sempred(e,t,i){return!0}precpred(e,t){return!0}action(e,t,i){}get atn(){return this.interpreter.atn}get state(){return this.stateNumber}set state(e){this.stateNumber=e}getParseInfo(){}},Qe=class e{static{c(this,"CommonTokenFactory")}static DEFAULT=new e;copyText=!1;constructor(e){this.copyText=e??!1}create(e,t,i,s,n,r,o,a){const c=H.fromSource(e,t,s,n,r);return c.line=o,c.column=a,i?c.text=i:this.copyText&&null!==e[1]&&(c.text=e[1].getTextFromRange(n,r)),c}},Xe=class e extends Error{static{c(this,"RecognitionException")}ctx;offendingToken=null;offendingState=-1;recognizer;input;constructor(t){super(t.message),Error.captureStackTrace&&Error.captureStackTrace(this,e),this.message=t.message,this.recognizer=t.recognizer,this.input=t.input,this.ctx=t.ctx,null!==this.recognizer&&(this.offendingState=this.recognizer.state)}getExpectedTokens(){return null!==this.recognizer&&null!==this.ctx?this.recognizer.atn.getExpectedTokens(this.offendingState,this.ctx):null}toString(){return this.message}},Ze=class extends Xe{static{c(this,"LexerNoViableAltException")}startIndex;deadEndConfigs;constructor(e,t,i,s){super({message:"",recognizer:e,input:t,ctx:null}),this.startIndex=i,this.deadEndConfigs=s}toString(){let e="";return this.input&&this.startIndex>=0&&this.startIndex<this.input.size&&(e=this.input.getTextFromRange(this.startIndex,this.startIndex)),`LexerNoViableAltException(${e})`}},Je=class e extends $e{static{c(this,"Lexer")}static DEFAULT_MODE=0;static MORE=-2;static SKIP=-3;static DEFAULT_TOKEN_CHANNEL=r.DEFAULT_CHANNEL;static HIDDEN=r.HIDDEN_CHANNEL;options={minDFAEdge:0,maxDFAEdge:256,minCodePoint:0,maxCodePoint:1114111};tokenStartCharIndex=-1;channel=0;type=0;mode=e.DEFAULT_MODE;currentTokenColumn=0;currentTokenStartLine=0;input;token=null;hitEOF=!1;factory;#a=[];#i;constructor(e,t){super(),this.options={...this.options,...t},this.input=e,this.factory=Qe.DEFAULT}reset(t=!0){t&&this.input.seek(0),this.token=null,this.type=r.INVALID_TYPE,this.channel=r.DEFAULT_CHANNEL,this.tokenStartCharIndex=-1,this.currentTokenColumn=-1,this.currentTokenStartLine=-1,this.#i=void 0,this.hitEOF=!1,this.mode=e.DEFAULT_MODE,this.#a=[],this.interpreter.reset()}nextToken(){if(null===this.input)throw new Error("nextToken requires a non-null input stream.");const t=this.input.mark();try{for(;;){if(this.hitEOF)return this.emitEOF(),this.token;this.token=null,this.channel=r.DEFAULT_CHANNEL,this.tokenStartCharIndex=this.input.index,this.currentTokenColumn=this.interpreter.column,this.currentTokenStartLine=this.interpreter.line,this.#i=void 0;let t=!1;for(;;){this.type=r.INVALID_TYPE;let s=e.SKIP;try{s=this.interpreter.match(this.input,this.mode)}catch(i){if(!(i instanceof Ze))throw i;this.notifyListeners(i),this.recover(i)}if(this.input.LA(1)===r.EOF&&(this.hitEOF=!0),this.type===r.INVALID_TYPE&&(this.type=s),this.type===e.SKIP){t=!0;break}if(this.type!==e.MORE)break}if(!t)return null===this.token&&this.emit(),this.token}}finally{this.input.release(t)}}skip(){this.type=e.SKIP}more(){this.type=e.MORE}pushMode(e){at.debug&&console.log("pushMode "+e),this.#a.push(this.mode),this.mode=e}popMode(){if(0===this.#a.length)throw new Error("Empty Stack");return at.debug&&console.log("popMode back to "+this.#a.slice(0,-1)),this.mode=this.#a.pop(),this.mode}get modeStack(){return this.#a}emitToken(e){this.token=e}emit(){const e=this.factory.create([this,this.input],this.type,this.#i,this.channel,this.tokenStartCharIndex,this.getCharIndex()-1,this.currentTokenStartLine,this.currentTokenColumn);return this.emitToken(e),e}emitEOF(){const e=this.factory.create([this,this.input],r.EOF,void 0,r.DEFAULT_CHANNEL,this.input.index,this.input.index-1,this.line,this.column);return this.emitToken(e),e}getCharIndex(){return this.input.index}getAllTokens(){const e=[];let t=this.nextToken();for(;t.type!==r.EOF;)e.push(t),t=this.nextToken();return e}notifyListeners(e){const t=this.tokenStartCharIndex,i=this.input.index,s=this.input.getTextFromRange(t,i),n="token recognition error at: '"+this.getErrorDisplay(s)+"'";this.errorListenerDispatch.syntaxError(this,null,this.currentTokenStartLine,this.currentTokenColumn,n,e)}getErrorDisplay(e){return e}getErrorDisplayForChar(e){return e.charCodeAt(0)===r.EOF?"<EOF>":"\n"===e?"\\n":"\t"===e?"\\t":"\r"===e?"\\r":e}getCharErrorDisplay(e){return"'"+this.getErrorDisplayForChar(e)+"'"}recover(e){this.input.LA(1)!==r.EOF&&(e instanceof Ze?this.interpreter.consume(this.input):this.input.consume())}get inputStream(){return this.input}set inputStream(e){this.reset(!1),this.input=e}set tokenFactory(e){this.factory=e}get tokenFactory(){return this.factory}get sourceName(){return this.input.getSourceName()}get line(){return this.interpreter.line}set line(e){this.interpreter.line=e}get column(){return this.interpreter.column}set column(e){this.interpreter.column=e}get text(){return this.#i?this.#i:this.interpreter.getText(this.input)}set text(e){this.#i=e}},et=class{static{c(this,"DFASerializer")}dfa;vocabulary;constructor(e,t){this.dfa=e,this.vocabulary=t}toString(){if(!this.dfa.s0)return"";let e="";const t=this.dfa.getStates();for(const i of t){let t=0;t=i.edges.length;for(let s=0;s<t;s++){const t=i.edges[s];if(t&&2147483647!==t.stateNumber){e+=this.getStateString(i);e+="-",e+=this.getEdgeLabel(s),e+="->",e+=this.getStateString(t),e+="\n"}}}return e}getEdgeLabel(e){return`${this.vocabulary.getDisplayName(e-1)}`}getStateString(e){const t=e.stateNumber,i=(e.isAcceptState?":":"")+"s"+t+(e.requiresFullContext?"^":"");return e.isAcceptState?null!==e.predicates?`${i}=>${e.predicates.toString()}`:`${i}=>${e.prediction}`:`${i}`}},tt=class extends et{static{c(this,"LexerDFASerializer")}constructor(e){super(e,f.EMPTY_VOCABULARY)}getEdgeLabel=c((e=>"'"+String.fromCharCode(e)+"'"),"getEdgeLabel")},it=class{static{c(this,"DFA")}s0;decision;atnStartState;isPrecedenceDfa;states=new Map;constructor(e,t){this.atnStartState=e,this.decision=t??0;let i=!1;e instanceof de&&e.precedenceRuleDecision&&(i=!0,this.s0=Ve.fromState(-1)),this.isPrecedenceDfa=i}[Symbol.iterator]=()=>this.states.values()[Symbol.iterator]();getPrecedenceStartState=c((e=>{if(!this.isPrecedenceDfa)throw new Error("Only precedence DFAs may contain a precedence start state.");if(!(!this.s0||!this.s0.edges||e<0||e>=this.s0.edges.length))return this.s0.edges[e]}),"getPrecedenceStartState");setPrecedenceStartState=c(((e,t)=>{if(!this.isPrecedenceDfa)throw new Error("Only precedence DFAs may contain a precedence start state.");e<0||!this.s0||(this.s0.edges[e]=t)}),"setPrecedenceStartState");getStates(){const e=[...this.states.values()];return e.sort(((e,t)=>e.stateNumber-t.stateNumber)),e}getState(e){return this.states.get(e.configs.hashCode())??null}getStateForConfigs(e){return this.states.get(e.hashCode())??null}addState(e){const t=e.configs.hashCode();this.states.has(t)||(this.states.set(t,e),e.stateNumber=this.states.size-1)}toString(e){if(!e)return this.toString(f.EMPTY_VOCABULARY);if(!this.s0)return"";return new et(this,e).toString()??""}toLexerString(){if(!this.s0)return"";return new tt(this).toString()??""}get length(){return this.states.size}},st=class e{static{c(this,"LexerIndexedCustomAction")}offset;action;actionType;isPositionDependent=!0;cachedHashCode;constructor(e,t){this.actionType=t.actionType,this.offset=e,this.action=t}execute(e){this.action.execute(e)}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize();e=d.update(e,this.offset),e=d.updateFromComparable(e,this.action),this.cachedHashCode=d.finish(e,2)}return this.cachedHashCode}equals(t){return this===t||t instanceof e&&(this.offset===t.offset&&this.action===t.action)}},nt=class e{static{c(this,"LexerActionExecutor")}lexerActions;actionType;isPositionDependent=!1;cachedHashCode;constructor(e){return this.actionType=-1,this.lexerActions=e??[],this}static append(t,i){if(null===t)return new e([i]);const s=t.lexerActions.concat([i]);return new e(s)}fixOffsetBeforeMatch(t){let i=null;for(let e=0;e<this.lexerActions.length;e++)!this.lexerActions[e].isPositionDependent||this.lexerActions[e]instanceof st||(null===i&&(i=this.lexerActions.concat([])),i[e]=new st(t,this.lexerActions[e]));return null===i?this:new e(i)}execute(e,t,i){if(void 0===t||void 0===i)return;let s=!1;const n=t.index;try{for(const r of this.lexerActions){let o=r;if(r instanceof st){const e=r.offset;t.seek(i+e),o=r.action,s=i+e!==n}else r.isPositionDependent&&(t.seek(n),s=!1);o.execute(e)}}finally{s&&t.seek(n)}}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize(7);for(const t of this.lexerActions)e=d.update(e,t.hashCode());this.cachedHashCode=d.finish(e,this.lexerActions.length)}return this.cachedHashCode}equals(e){return this===e||this.cachedHashCode===e.cachedHashCode&&(this.lexerActions.length===e.lexerActions.length&&this.lexerActions.every(((t,i)=>t.equals(e.lexerActions[i]))))}},rt=class e extends p{static{c(this,"OrderedHashSet")}elements=[];getOrAdd(e){const t=this.size,i=super.getOrAdd(e);return this.size>t&&this.elements.push(e),i}equals(t){return t instanceof e&&super.equals(t)}clear(){super.clear(),this.elements=[]}*[Symbol.iterator](){yield*this.elements}toArray(){return this.elements.slice(0)}},ot=class extends ee{static{c(this,"OrderedATNConfigSet")}constructor(){super(),this.configLookup=new rt}},at=class e extends ze{static{c(this,"LexerATNSimulator")}static debug=!1;decisionToDFA;recognizer=null;startIndex=-1;line=1;column=0;mode=Je.DEFAULT_MODE;prevAccept;options;lexerATNConfigFactory;constructor(e,t,i,s){super(t,s),this.decisionToDFA=i,this.recognizer=e,this.options=e?e.options:{minDFAEdge:0,maxDFAEdge:256,minCodePoint:0,maxCodePoint:1114111}}match(e,t){this.mode=t;const i=e.mark();try{this.startIndex=e.index,this.prevAccept=void 0;const i=this.decisionToDFA[t];return i.s0?this.execATN(e,i.s0):this.matchATN(e)}finally{e.release(i)}}reset(){this.prevAccept=void 0,this.startIndex=-1,this.line=1,this.column=0,this.mode=Je.DEFAULT_MODE}clearDFA(){for(let e=0;e<this.decisionToDFA.length;e++)this.decisionToDFA[e]=new it(this.atn.getDecisionState(e),e)}getDFA(e){return this.decisionToDFA[e]}getText(e){return e.getTextFromRange(this.startIndex,e.index-1)}consume(e){e.LA(1)==="\n".charCodeAt(0)?(this.line+=1,this.column=0):this.column+=1,e.consume()}getTokenName(e){return e===r.EOF?"EOF":"'"+String.fromCharCode(e)+"'"}matchATN(t){const i=this.atn.modeToStartState[this.mode];e.debug&&console.log("matchATN mode "+this.mode+" start: "+i);const s=this.mode,n=this.computeStartState(t,i),r=n.hasSemanticContext;n.hasSemanticContext=!1;const o=this.addDFAState(n);r||(this.decisionToDFA[this.mode].s0=o);const a=this.execATN(t,o);return e.debug&&console.log("DFA after matchATN: "+this.decisionToDFA[s].toLexerString()),a}execATN(t,i){e.debug&&console.log("start state closure="+i.configs),i.isAcceptState&&this.captureSimState(t,i);let s=t.LA(1);for(;;){e.debug&&console.log("execATN loop starting closure: "+i.configs);let n=this.getExistingTargetState(i,s);if(n||(n=this.computeTargetState(t,i,s)),n===ze.ERROR)break;if(s!==r.EOF&&this.consume(t),n.isAcceptState&&(this.captureSimState(t,n),s===r.EOF))break;s=t.LA(1),i=n}return this.failOrAccept(t,i.configs,s)}getExistingTargetState(t,i){if(i>=this.options.minDFAEdge&&i<=this.options.maxDFAEdge){const s=t.edges[i-this.options.minDFAEdge];return e.debug&&s&&console.log("reuse state "+t.stateNumber+" edge to "+s.stateNumber),s}}computeTargetState(e,t,i){const s=new ot;return this.getReachableConfigSet(e,t.configs,s,i),0===s.length?(s.hasSemanticContext||this.addDFAEdge(t,i,ze.ERROR),ze.ERROR):this.addDFAEdge(t,i,null,s)}failOrAccept(e,t,i){if(this.prevAccept?.dfaState){const{dfaState:t,index:i,line:s,column:n}=this.prevAccept;return this.accept(e,t.lexerActionExecutor,this.startIndex,i,s,n),t.prediction}if(i===r.EOF&&e.index===this.startIndex)return r.EOF;throw new Ze(this.recognizer,e,this.startIndex,t)}getReachableConfigSet(t,i,s,n){let o=Z.INVALID_ALT_NUMBER;for(const a of i){const i=a.alt===o;if(!i||!a.passedThroughNonGreedyDecision){e.debug&&console.log("testing %s at %s\n",this.getTokenName(n),a.toString(this.recognizer,!0));for(const e of a.state.transitions){const c=this.getReachableTarget(e,n);if(c){let e=a.lexerActionExecutor;e&&(e=e.fixOffsetBeforeMatch(t.index-this.startIndex));const l=n===r.EOF,h=je.createWithExecutor(a,c,e);this.closure(t,h,s,i,!0,l)&&(o=a.alt)}}}}}accept(t,i,s,n,r,o){e.debug&&console.log("ACTION %s\n",i),t.seek(n),this.line=r,this.column=o,i&&this.recognizer&&i.execute(this.recognizer,t,s)}getReachableTarget(e,t){return e.matches(t,this.options.minCodePoint,this.options.maxCodePoint)?e.target:void 0}computeStartState(e,t){const i=N.instance,s=new ot;for(let n=0;n<t.transitions.length;n++){const r=t.transitions[n].target,o=je.createWithContext(r,n+1,i);this.closure(e,o,s,!1,!1,!1)}return s}closure(t,i,s,n,r,o){let a=null;if(e.debug&&console.log("closure("+i.toString(this.recognizer,!0)+")"),i.state.constructor.stateType===x.RULE_STOP){if(e.debug&&(null!==this.recognizer?console.log("closure at %s rule stop %s\n",this.recognizer.ruleNames[i.state.ruleIndex],i):console.log("closure at rule stop %s\n",i)),!i.context||i.context.hasEmptyPath()){if(!i.context||i.context.isEmpty())return s.add(i),!0;s.add(je.createWithConfig(i.state,i,N.instance)),n=!0}if(i.context&&!i.context.isEmpty())for(let e=0;e<i.context.length;e++)if(i.context.getReturnState(e)!==k.EMPTY_RETURN_STATE){const c=i.context.getParent(e),l=this.atn.states[i.context.getReturnState(e)];a=je.createWithConfig(l,i,c),n=this.closure(t,a,s,n,r,o)}return n}i.state.epsilonOnlyTransitions||n&&i.passedThroughNonGreedyDecision||s.add(i);for(const e of i.state.transitions)a=this.getEpsilonTarget(t,i,e,s,r,o),a&&(n=this.closure(t,a,s,n,r,o));return n}getEpsilonTarget(e,t,i,s,n,r){this.lexerATNConfigFactory||this.setupATNFactoryLookup();const o=this.lexerATNConfigFactory[i.transitionType];return o?o(e,t,i,s,n,r):null}setupATNFactoryLookup(){this.lexerATNConfigFactory=[],this.lexerATNConfigFactory[I.RULE]=(e,t,i)=>{const s=z(t.context??void 0,i.followState.stateNumber);return je.createWithConfig(i.target,t,s)},this.lexerATNConfigFactory[I.PRECEDENCE]=()=>{throw new Error("Precedence predicates are not supported in lexers.")},this.lexerATNConfigFactory[I.PREDICATE]=(t,i,s,n,r)=>{const o=s;return e.debug&&console.log("EVAL rule "+o.ruleIndex+":"+o.predIndex),n.hasSemanticContext=!0,this.evaluatePredicate(t,o.ruleIndex,o.predIndex,r)?je.createWithConfig(s.target,i):null},this.lexerATNConfigFactory[I.ACTION]=(e,t,i)=>{if(null===t.context||t.context.hasEmptyPath()){const e=nt.append(t.lexerActionExecutor,this.atn.lexerActions[i.actionIndex]);return je.createWithExecutor(t,i.target,e)}return je.createWithConfig(i.target,t)},this.lexerATNConfigFactory[I.EPSILON]=(e,t,i)=>je.createWithConfig(i.target,t);const t=c(((e,t,i,s,n,o)=>o&&i.matches(r.EOF,this.options.minCodePoint,this.options.maxCodePoint)?je.createWithConfig(i.target,t):null),"simple");this.lexerATNConfigFactory[I.ATOM]=t,this.lexerATNConfigFactory[I.RANGE]=t,this.lexerATNConfigFactory[I.SET]=t}evaluatePredicate(e,t,i,s){if(!this.recognizer)return!0;if(!s)return this.recognizer.sempred(null,t,i);const n=this.column,r=this.line,o=e.index,a=e.mark();try{return this.consume(e),this.recognizer.sempred(null,t,i)}finally{this.column=n,this.line=r,e.seek(o),e.release(a)}}captureSimState(e,t){this.prevAccept={index:e.index,line:this.line,column:this.column,dfaState:t}}addDFAEdge(t,i,s,n){if(!s&&n){const e=n.hasSemanticContext;if(n.hasSemanticContext=!1,s=this.addDFAState(n),e)return s}return i<this.options.minDFAEdge||i>this.options.maxDFAEdge||(e.debug&&console.log("EDGE "+t+" -> "+s+" upon "+i),t.edges[i-this.options.minDFAEdge]=s),s}addDFAState(e){const t=this.decisionToDFA[this.mode],i=t.getStateForConfigs(e);if(i)return i;const s=Ve.fromConfigs(e),n=e.firstStopState;return n&&(s.isAcceptState=!0,s.lexerActionExecutor=n.lexerActionExecutor,s.prediction=this.atn.ruleToTokenType[n.state.ruleIndex]),e.setReadonly(!0),t.addState(s),s}},ct=class{static{c(this,"ParseInfo")}atnSimulator;constructor(e){this.atnSimulator=e}getDecisionInfo(){return this.atnSimulator.getDecisionInfo()}getLLDecisions(){const e=this.atnSimulator.getDecisionInfo(),t=new Array;for(let i=0;i<e.length;i++){e[i].llFallback>0&&t.push(i)}return t}getTotalTimeInPrediction(){const e=this.atnSimulator.getDecisionInfo();let t=0;for(const i of e)t+=i.timeInPrediction;return t}getTotalSLLLookaheadOps(){const e=this.atnSimulator.getDecisionInfo();let t=0;for(const i of e)t+=i.sllTotalLook;return t}getTotalLLLookaheadOps(){const e=this.atnSimulator.getDecisionInfo();let t=0;for(const i of e)t+=i.llTotalLook;return t}getTotalSLLATNLookaheadOps(){const e=this.atnSimulator.getDecisionInfo();let t=0;for(const i of e)t+=i.sllATNTransitions;return t}getTotalLLATNLookaheadOps(){const e=this.atnSimulator.getDecisionInfo();let t=0;for(const i of e)t+=i.llATNTransitions;return t}getTotalATNLookaheadOps(){const e=this.atnSimulator.getDecisionInfo();let t=0;for(const i of e)t+=i.sllATNTransitions,t+=i.llATNTransitions;return t}getDFASize(e){if(void 0===e){let e=0;const t=this.atnSimulator.decisionToDFA;for(let i=0;i<t.length;i++)e+=this.getDFASize(i);return e}return this.atnSimulator.decisionToDFA[e].length}},lt=class extends Xe{static{c(this,"NoViableAltException")}deadEndConfigs=null;startToken;constructor(e,t=null,i=null,s=null,n=null,r=null){r=r??e.context,s=s??e.getCurrentToken(),i=i??e.getCurrentToken(),super({message:"",recognizer:e,input:t=t??e.inputStream,ctx:r}),this.deadEndConfigs=n,this.startToken=i,this.offendingToken=s}},ht=class{static{c(this,"DoubleDict")}cacheMap;constructor(){this.cacheMap=new P}get(e,t){const i=this.cacheMap.get(e)??null;return null===i?null:i.get(t)??null}set(e,t,i){let s=this.cacheMap.get(e);s||(s=new P,this.cacheMap.set(e,s)),s.set(t,i)}},dt=class e{static{c(this,"SubsetEqualityComparer")}static instance=new e;hashCode(e){let t=d.initialize(7);return t=d.update(t,e.state.stateNumber),t=d.updateFromComparable(t,e.context),t=d.finish(t,2),t}equals(e,t){return e.state.stateNumber===t.state.stateNumber&&(e.context?.equals(t.context)??!0)}},ut=class e{static{c(this,"PredictionMode")}static SLL=0;static LL=1;static LL_EXACT_AMBIG_DETECTION=2;static hasSLLConflictTerminatingPrediction(t,i){if(e.allConfigsInRuleStopStates(i))return!0;if(t===e.SLL&&i.hasSemanticContext){const e=new ee;for(let t of i)t=T.duplicate(t,y.NONE),e.add(t);i=e}const s=e.getConflictingAltSubsets(i);return e.hasConflictingAltSet(s)&&!e.hasStateAssociatedWithOneAlt(i)}static hasConfigInRuleStopState(e){for(const t of e)if(t.state instanceof ae)return!0;return!1}static allConfigsInRuleStopStates(e){for(const t of e)if(!(t.state instanceof ae))return!1;return!0}static resolvesToJustOneViableAlt(t){return e.getSingleViableAlt(t)}static allSubsetsConflict(t){return!e.hasNonConflictingAltSet(t)}static hasNonConflictingAltSet(e){for(const t of e)if(1===t.length)return!0;return!1}static hasConflictingAltSet(e){for(const t of e)if(t.length>1)return!0;return!1}static allSubsetsEqual(e){let t=null;for(const i of e)if(null===t)t=i;else if(i!==t)return!1;return!0}static getUniqueAlt(t){const i=e.getAlts(t);return 1===i.length?i.nextSetBit(0):Z.INVALID_ALT_NUMBER}static getAlts(e){const t=new h;return e.forEach((e=>{t.or(e)})),t}static getConflictingAltSubsets(e){const t=new P(dt.instance);for(const i of e){let e=t.get(i);e||(e=new h,t.set(i,e)),e.set(i.alt)}return Array.from(t.values())}static getStateToAltMap(e){const t=new P(u.instance);for(const i of e){let e=t.get(i.state);e||(e=new h,t.set(i.state,e)),e.set(i.alt)}return t}static hasStateAssociatedWithOneAlt(e){const t={};for(const i of e){const e=i.state.stateNumber;t[e]||(t[e]=0),t[e]++}return Object.values(t).some((e=>1===e))}static getSingleViableAlt(e){let t=null;for(const i of e){const e=i.nextSetBit(0);if(null===t)t=e;else if(t!==e)return Z.INVALID_ALT_NUMBER}return t??0}},gt=class e extends ze{static{c(this,"ParserATNSimulator")}static traceATNSimulator=!1;static debug;static debugAdd=!1;static debugClosure=!1;static dfaDebug=!1;static retryDebug=!1;predictionMode;decisionToDFA;parser;mergeCache=new ht;predictionState;constructor(e,t,i,s){super(t,s),this.parser=e,this.decisionToDFA=i}static getUniqueAlt(e){let t=Z.INVALID_ALT_NUMBER;for(const i of e)if(t===Z.INVALID_ALT_NUMBER)t=i.alt;else if(i.alt!==t)return Z.INVALID_ALT_NUMBER;return t}reset(){}clearDFA(){for(let e=0;e<this.decisionToDFA.length;e++)this.decisionToDFA[e]=new it(this.atn.getDecisionState(e),e)}adaptivePredict(t,i,s){(e.debug||e.traceATNSimulator)&&console.log("adaptivePredict decision "+i+" exec LA(1)=="+this.getLookaheadName(t)+" line "+t.LT(1).line+":"+t.LT(1).column);const n=this.decisionToDFA[i];this.predictionState={input:t,startIndex:t.index,outerContext:s??void 0,dfa:n};const r=t.mark(),o=t.index;try{let i;if(i=n.isPrecedenceDfa?n.getPrecedenceStartState(this.parser.getPrecedence()):n.s0,!i){s||(s=W.empty),e.debug&&console.log("predictATN decision "+n.decision+" exec LA(1)=="+this.getLookaheadName(t)+", outerContext="+s.toString(this.parser.ruleNames));const r=!1;let o=this.computeStartState(n.atnStartState,W.empty,r);n.isPrecedenceDfa?(o=this.applyPrecedenceFilter(o),i=this.addDFAState(n,Ve.fromConfigs(o)),n.setPrecedenceStartState(this.parser.getPrecedence(),i)):(i=this.addDFAState(n,Ve.fromConfigs(o)),n.s0=i)}const r=this.execATN(n,i,t,o,s);return e.debug&&console.log("DFA after predictATN: "+n.toString(this.parser.vocabulary)),r}finally{this.predictionState.dfa=void 0,this.mergeCache=new ht,t.seek(o),t.release(r)}}execATN(t,i,s,n,o){let a;(e.debug||e.traceATNSimulator)&&console.log("execATN decision "+t.decision+", DFA state "+i+", LA(1)=="+this.getLookaheadName(s)+" line "+s.LT(1).line+":"+s.LT(1).column);let c=i,l=s.LA(1);for(;;){let i=this.getExistingTargetState(c,l);if(i||(i=this.computeTargetState(t,c,l)),i===ze.ERROR){const e=this.noViableAlt(s,o,c.configs,n);if(s.seek(n),a=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(c.configs,o),a!==Z.INVALID_ALT_NUMBER)return a;throw e}if(i.requiresFullContext&&this.predictionMode!==ut.SLL){let r=null;if(null!==i.predicates){e.debug&&console.log("DFA state has preds in DFA sim LL failover");const t=s.index;if(t!==n&&s.seek(n),r=this.evalSemanticContext(i.predicates,o,!0),1===r.length)return e.debug&&console.log("Full LL avoided"),r.nextSetBit(0);t!==n&&s.seek(t)}e.dfaDebug&&console.log("ctx sensitive state "+o+" in "+i);const c=!0,l=this.computeStartState(t.atnStartState,o,c);return this.reportAttemptingFullContext(t,r,i.configs,n,s.index),a=this.execATNWithFullContext(t,i,l,s,n,o),a}if(i.isAcceptState){if(null===i.predicates)return i.prediction;const e=s.index;s.seek(n);const r=this.evalSemanticContext(i.predicates,o,!0);if(0===r.length)throw this.noViableAlt(s,o,i.configs,n);return 1===r.length||this.reportAmbiguity(t,i,n,e,!1,r,i.configs),r.nextSetBit(0)}c=i,l!==r.EOF&&(s.consume(),l=s.LA(1))}}getExistingTargetState(e,t){return e.edges[t+1]}computeTargetState(t,i,s){const n=this.computeReachSet(i.configs,s,!1);if(null===n)return this.addDFAEdge(t,i,s,ze.ERROR),ze.ERROR;let r=Ve.fromConfigs(n);const o=e.getUniqueAlt(n);if(e.debug){const e=ut.getConflictingAltSubsets(n);console.log("SLL altSubSets="+C(e)+", configs="+n+", predict="+o+", allSubsetsConflict="+ut.allSubsetsConflict(e)+", conflictingAlts="+this.getConflictingAlts(n))}return o!==Z.INVALID_ALT_NUMBER?(r.isAcceptState=!0,r.configs.uniqueAlt=o,r.prediction=o):ut.hasSLLConflictTerminatingPrediction(this.predictionMode,n)&&(r.configs.conflictingAlts=this.getConflictingAlts(n),r.requiresFullContext=!0,r.isAcceptState=!0,r.prediction=r.configs.conflictingAlts.nextSetBit(0)),r.isAcceptState&&r.configs.hasSemanticContext&&(this.predicateDFAState(r,this.atn.getDecisionState(t.decision)),null!==r.predicates&&(r.prediction=Z.INVALID_ALT_NUMBER)),r=this.addDFAEdge(t,i,s,r),r}getRuleName(e){return null!==this.parser&&e>=0?this.parser.ruleNames[e]:"<rule "+e+">"}getTokenName(e){if(e===r.EOF)return"EOF";const t=(this.parser?.vocabulary??f.EMPTY_VOCABULARY).getDisplayName(e);return t===e.toString()?t:t+"<"+e+">"}getLookaheadName(e){return this.getTokenName(e.LA(1))}dumpDeadEndConfigs(e){console.log("dead end configs: ");const t=e.deadEndConfigs;for(const i of t){let e="no edges";if(i.state.transitions.length>0){const t=i.state.transitions[0];if(t instanceof me)e="Atom "+this.getTokenName(t.labelValue);else if(t instanceof O){e=(t instanceof D?"~":"")+"Set "+t.label}}console.error(i.toString(this.parser,!0)+":"+e)}}predicateDFAState(e,t){const i=t.transitions.length,s=this.getConflictingAltsOrUniqueAlt(e.configs),n=this.getPredsForAmbigAlts(s,e.configs,i);null!==n?(e.predicates=this.getPredicatePredictions(s,n),e.prediction=Z.INVALID_ALT_NUMBER):e.prediction=s.nextSetBit(0)}execATNWithFullContext(t,i,s,n,o,a){(e.debug||e.traceATNSimulator)&&console.log("execATNWithFullContext "+s);let c,l=!1,h=s;n.seek(o);let d=n.LA(1),u=-1;for(;;){if(c=this.computeReachSet(h,d,true),null===c){const e=this.noViableAlt(n,a,h,o);n.seek(o);const t=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(h,a);if(t!==Z.INVALID_ALT_NUMBER)return t;throw e}const t=ut.getConflictingAltSubsets(c);if(e.debug&&console.log("LL altSubSets="+t+", predict="+ut.getUniqueAlt(t)+", resolvesToJustOneViableAlt="+ut.resolvesToJustOneViableAlt(t)),c.uniqueAlt=e.getUniqueAlt(c),c.uniqueAlt!==Z.INVALID_ALT_NUMBER){u=c.uniqueAlt;break}if(this.predictionMode!==ut.LL_EXACT_AMBIG_DETECTION){if(u=ut.resolvesToJustOneViableAlt(t),u!==Z.INVALID_ALT_NUMBER)break}else if(ut.allSubsetsConflict(t)&&ut.allSubsetsEqual(t)){l=!0,u=ut.getSingleViableAlt(t);break}h=c,d!==r.EOF&&(n.consume(),d=n.LA(1))}return c.uniqueAlt!==Z.INVALID_ALT_NUMBER?(this.reportContextSensitivity(t,u,c,o,n.index),u):(this.reportAmbiguity(t,i,o,n.index,l,c.getAlts(),c),u)}computeReachSet(t,i,s){e.debug&&console.log("in computeReachSet, starting closure: "+t);const n=new ee(s);let o=null;for(const c of t)if(e.debug&&console.log("testing "+this.getTokenName(i)+" at "+c),c.state instanceof ae)(s||i===r.EOF)&&(null===o&&(o=[]),o.push(c));else for(const t of c.state.transitions){const s=this.getReachableTarget(t,i);if(null!==s){const t=T.createWithConfig(s,c);n.add(t,this.mergeCache),e.debugAdd&&console.log("added "+t+" to intermediate")}}let a=null;if(null===o&&i!==r.EOF&&(1===n.length||e.getUniqueAlt(n)!==Z.INVALID_ALT_NUMBER)&&(a=n),null===a){a=new ee(s);const e=new p,t=i===r.EOF;for(const i of n)this.closure(i,a,e,!1,s,t)}if(i===r.EOF&&(a=this.removeAllConfigsNotInRuleStopState(a,a===n)),null!==o&&(!s||!ut.hasConfigInRuleStopState(a)))for(const e of o)a.add(e,this.mergeCache);return e.traceATNSimulator&&console.log("computeReachSet "+t+" -> "+a),0===a.length?null:a}removeAllConfigsNotInRuleStopState(e,t){if(ut.allConfigsInRuleStopStates(e))return e;const i=new ee(e.fullCtx);for(const s of e)if(s.state instanceof ae)i.add(s,this.mergeCache);else if(t&&s.state.epsilonOnlyTransitions){if(this.atn.nextTokens(s.state).contains(r.EPSILON)){const e=this.atn.ruleToStopState[s.state.ruleIndex];i.add(T.createWithConfig(e,s),this.mergeCache)}}return i}computeStartState(t,i,s){const n=G(this.atn,i),r=new ee(s);e.traceATNSimulator&&console.log("computeStartState from ATN state "+t+" initialContext="+n.toString(this.parser));for(let e=0;e<t.transitions.length;e++){const i=t.transitions[e].target,o=T.createWithContext(i,e+1,n),a=new p;this.closure(o,r,a,!0,s,!1)}return r}applyPrecedenceFilter(e){const t=[],i=new ee(e.fullCtx);for(const s of e){if(1!==s.alt)continue;const e=s.semanticContext.evalPrecedence(this.parser,this.predictionState.outerContext);null!==e&&(t[s.state.stateNumber]=s.context,e!==s.semanticContext?i.add(T.duplicate(s,e),this.mergeCache):i.add(s,this.mergeCache))}for(const s of e)if(1!==s.alt){if(!s.precedenceFilterSuppressed){const e=t[s.state.stateNumber]||null;if(null!==e&&e.equals(s.context))continue}i.add(s,this.mergeCache)}return i}getReachableTarget(e,t){return e.matches(t,0,this.atn.maxTokenType)?e.target:null}getPredsForAmbigAlts(t,i,s){let n=[];for(const e of i)t.get(e.alt)&&(n[e.alt]=y.orContext(n[e.alt]??null,e.semanticContext));let r=0;for(let e=1;e<s+1;e++){const t=n[e]??null;null===t?n[e]=y.NONE:t!==y.NONE&&(r+=1)}return 0===r&&(n=null),e.debug&&console.log("getPredsForAmbigAlts result "+C(n)),n}getPredicatePredictions(e,t){const i=[];let s=!1;for(let n=1;n<t.length;n++){const r=t[n];e.get(n)&&i.push({pred:r,alt:n}),r!==y.NONE&&(s=!0)}return s?i:null}getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(e,t){const i=this.splitAccordingToSemanticValidity(e,t),s=i[0],n=i[1];let r=this.getAltThatFinishedDecisionEntryRule(s);return r!==Z.INVALID_ALT_NUMBER||n.length>0&&(r=this.getAltThatFinishedDecisionEntryRule(n),r!==Z.INVALID_ALT_NUMBER)?r:Z.INVALID_ALT_NUMBER}getAltThatFinishedDecisionEntryRule(e){const t=[];for(const i of e)(i.reachesIntoOuterContext||i.state instanceof ae&&i.context.hasEmptyPath())&&t.indexOf(i.alt)<0&&t.push(i.alt);return 0===t.length?Z.INVALID_ALT_NUMBER:Math.min(...t)}splitAccordingToSemanticValidity(e,t){const i=new ee(e.fullCtx),s=new ee(e.fullCtx);for(const n of e)if(n.semanticContext!==y.NONE){n.semanticContext.evaluate(this.parser,t)?i.add(n):s.add(n)}else i.add(n);return[i,s]}evalSemanticContext(t,i,s){const n=new h;for(const r of t){if(r.pred===y.NONE){if(n.set(r.alt),!s)break;continue}const t=r.pred.evaluate(this.parser,i);if((e.debug||e.dfaDebug)&&console.log("eval pred "+r+"="+t),t&&(n.set(r.alt),!s))break}return n}closure(e,t,i,s,n,r){this.closureCheckingStopState(e,t,i,s,n,0,r)}closureCheckingStopState(t,i,s,n,r,o,a){if((e.traceATNSimulator||e.debugClosure)&&console.log("closure("+t.toString(this.parser,!0)+")"),t.state instanceof ae){if(t.context&&!t.context.isEmpty()){for(let c=0;c<t.context.length;c++){if(t.context.getReturnState(c)===k.EMPTY_RETURN_STATE){if(r){i.add(T.createWithConfig(t.state,t,N.instance),this.mergeCache);continue}e.debug&&console.log("FALLING off rule "+this.getRuleName(t.state.ruleIndex)),this.closure_(t,i,s,n,r,o,a);continue}const l=this.atn.states[t.context.getReturnState(c)],h=t.context.getParent(c),d=T.createWithContext(l,t.alt,h,t.semanticContext);d.reachesIntoOuterContext=t.reachesIntoOuterContext,this.closureCheckingStopState(d,i,s,n,r,o-1,a)}return}if(r)return void i.add(t,this.mergeCache);e.debug&&console.log("FALLING off rule "+this.getRuleName(t.state.ruleIndex))}this.closure_(t,i,s,n,r,o,a)}closure_(t,i,s,n,r,o,a){const c=t.state;c.epsilonOnlyTransitions||i.add(t,this.mergeCache);for(let l=0;l<c.transitions.length;l++){if(0===l&&this.canDropLoopEntryEdgeInLeftRecursiveRule(t))continue;const h=c.transitions[l],d=n&&!(h instanceof ve),u=this.getEpsilonTarget(t,h,d,0===o,r,a);if(u){let n=o;if(t.state.constructor.stateType===x.RULE_STOP){if(this.predictionState.dfa&&this.predictionState?.dfa.isPrecedenceDfa){h.outermostPrecedenceReturn===this.predictionState?.dfa.atnStartState?.ruleIndex&&(u.precedenceFilterSuppressed=!0)}if(u.reachesIntoOuterContext=!0,s.getOrAdd(u)!==u)continue;i.dipsIntoOuterContext=!0,n-=1,e.debug&&console.log("dips into outer ctx: "+u)}else{if(!h.isEpsilon&&s.getOrAdd(u)!==u)continue;h instanceof fe&&n>=0&&(n+=1)}this.closureCheckingStopState(u,i,s,d,r,n,a)}}}canDropLoopEntryEdgeInLeftRecursiveRule(e){const t=e.state;if(t.constructor.stateType!==x.STAR_LOOP_ENTRY||!e.context)return!1;if(!t.precedenceRuleDecision||e.context.isEmpty()||e.context.hasEmptyPath())return!1;const i=e.context.length;for(let r=0;r<i;r++){if(this.atn.states[e.context.getReturnState(r)].ruleIndex!==t.ruleIndex)return!1}const s=t.transitions[0].target.endState.stateNumber,n=this.atn.states[s];for(let r=0;r<i;r++){const i=e.context.getReturnState(r),s=this.atn.states[i];if(1!==s.transitions.length||!s.transitions[0].isEpsilon)return!1;const o=s.transitions[0].target;if((s.constructor.stateType!==x.BLOCK_END||o!==t)&&(s!==n&&o!==n&&(o.constructor.stateType!==x.BLOCK_END||1!==o.transitions.length||!o.transitions[0].isEpsilon||o.transitions[0].target!==t)))return!1}return!0}getEpsilonTarget(t,i,s,n,o,a){switch(i.transitionType){case I.RULE:return this.ruleTransition(t,i);case I.PRECEDENCE:return this.precedenceTransition(t,i,s,n,o);case I.PREDICATE:return this.predTransition(t,i,s,n,o);case I.ACTION:if(e.debug){const e=i,t=-1===e.actionIndex?65535:e.actionIndex;console.log("ACTION edge "+e.ruleIndex+":"+t)}return T.createWithConfig(i.target,t);case I.EPSILON:return T.createWithConfig(i.target,t);case I.ATOM:case I.RANGE:case I.SET:return a&&i.matches(r.EOF,0,1)?T.createWithConfig(i.target,t):null;default:return null}}precedenceTransition(t,i,s,n,r){e.debug&&(console.log("PRED (collectPredicates="+s+") "+i.precedence+">=_p, ctx dependent=true"),null!==this.parser&&console.log("context surrounding pred is "+C(this.parser.getRuleInvocationStack())));let o=null;if(s&&n)if(r&&this.predictionState?.input){const e=this.predictionState.input.index;this.predictionState.input.seek(this.predictionState.startIndex);const s=i.getPredicate().evaluate(this.parser,this.predictionState.outerContext);this.predictionState.input.seek(e),s&&(o=T.createWithConfig(i.target,t))}else{const e=y.andContext(t.semanticContext,i.getPredicate());o=T.createWithSemanticContext(i.target,t,e)}else o=T.createWithConfig(i.target,t);return e.debug&&console.log("config from pred transition="+o),o}predTransition(t,i,s,n,r){e.debug&&(console.log("PRED (collectPredicates="+s+") "+i.ruleIndex+":"+i.predIndex+", ctx dependent="+i.isCtxDependent),null!==this.parser&&console.log("context surrounding pred is "+C(this.parser.getRuleInvocationStack())));let o=null;if(s&&(i.isCtxDependent&&n||!i.isCtxDependent))if(r&&this.predictionState?.input){const e=this.predictionState.input.index;this.predictionState.input.seek(this.predictionState.startIndex);const s=i.getPredicate().evaluate(this.parser,this.predictionState.outerContext);this.predictionState.input.seek(e),s&&(o=T.createWithConfig(i.target,t))}else{const e=y.andContext(t.semanticContext,i.getPredicate());o=T.createWithSemanticContext(i.target,t,e)}else o=T.createWithConfig(i.target,t);return e.debug&&console.log("config from pred transition="+o),o}ruleTransition(t,i){e.debug&&console.log("CALL rule "+this.getRuleName(i.target.ruleIndex)+", ctx="+t.context);const s=i.followState,n=z(t.context??void 0,s.stateNumber);return T.createWithConfig(i.target,t,n)}getConflictingAlts(e){const t=ut.getConflictingAltSubsets(e);return ut.getAlts(t)}getConflictingAltsOrUniqueAlt(e){let t;return e.uniqueAlt!==Z.INVALID_ALT_NUMBER?(t=new h,t.set(e.uniqueAlt)):t=e.conflictingAlts,t}noViableAlt(e,t,i,s){return new lt(this.parser,e,e.get(s),e.LT(1),i,t)}addDFAEdge(t,i,s,n){return e.debug&&console.log("EDGE "+i+" -> "+n+" upon "+this.getTokenName(s)),n=this.addDFAState(t,n),s<-1||s>this.atn.maxTokenType||(e.debug&&console.log("DFA=\n"+t.toString(null!=this.parser?this.parser.vocabulary:f.EMPTY_VOCABULARY)),i.edges[s+1]=n),n}addDFAState(t,i){if(i===ze.ERROR)return i;const s=t.getState(i);return null!==s?s:(i.configs.readOnly||(i.configs.optimizeConfigs(this),i.configs.setReadonly(!0)),e.traceATNSimulator&&console.log("addDFAState new "+i),t.addState(i),i)}reportAttemptingFullContext(t,i,s,n,r){if(e.debug||e.retryDebug){const e=new m(n,r+1);console.log("reportAttemptingFullContext decision="+t.decision+":"+s+", input="+this.parser.tokenStream.getTextFromInterval(e))}this.parser.errorListenerDispatch.reportAttemptingFullContext(this.parser,t,n,r,i,s)}reportContextSensitivity(t,i,s,n,r){if(e.debug||e.retryDebug){const e=new m(n,r+1);console.log("reportContextSensitivity decision="+t.decision+":"+s+", input="+this.parser.tokenStream.getTextFromInterval(e))}this.parser.errorListenerDispatch.reportContextSensitivity(this.parser,t,n,r,i,s)}reportAmbiguity(t,i,s,n,r,o,a){if(e.debug||e.retryDebug){const e=new m(s,n+1);console.log("reportAmbiguity "+o+":"+a+", input="+this.parser.tokenStream.getTextFromInterval(e))}this.parser.errorListenerDispatch.reportAmbiguity(this.parser,t,s,n,r,o,a)}},pt=class{static{c(this,"PredictionContextCache")}cache=new P(u.instance);add(e){if(e===N.instance)return e;const t=this.cache.get(e);return t||(this.cache.set(e,e),e)}get(e){return this.cache.get(e)}get length(){return this.cache.size}},mt=class extends gt{static{c(this,"ProfilingATNSimulator")}decisions;numDecisions=0;currentDecision=0;currentState;conflictingAltResolvedBySLL;sllStopIndex=0;llStopIndex=0;constructor(e){const t=e.interpreter.sharedContextCache;if(super(e,e.interpreter.atn,e.interpreter.decisionToDFA,t),t){this.numDecisions=this.atn.decisionToState.length,this.decisions=new Array(this.numDecisions);for(let e=0;e<this.numDecisions;e++)this.decisions[e]=new Ge(e)}}adaptivePredict(e,t,i){try{this.sllStopIndex=-1,this.llStopIndex=-1,this.currentDecision=t;const s=performance.now(),n=super.adaptivePredict(e,t,i),r=performance.now();this.decisions[t].timeInPrediction+=r-s,this.decisions[t].invocations++;const o=this.sllStopIndex-this.predictionState.startIndex+1;if(this.decisions[t].sllTotalLook+=o,this.decisions[t].sllMinLook=0===this.decisions[t].sllMinLook?o:Math.min(this.decisions[t].sllMinLook,o),o>this.decisions[t].sllMaxLook&&(this.decisions[t].sllMaxLook=o,this.decisions[t].sllMaxLookEvent={decision:t,configs:null,predictedAlt:n,input:e,startIndex:this.predictionState.startIndex,stopIndex:this.sllStopIndex,fullCtx:!1}),this.llStopIndex>=0){const i=this.llStopIndex-this.predictionState.startIndex+1;this.decisions[t].llTotalLook+=i,this.decisions[t].llMinLook=0===this.decisions[t].llMinLook?i:Math.min(this.decisions[t].llMinLook,i),i>this.decisions[t].llMaxLook&&(this.decisions[t].llMaxLook=i,this.decisions[t].llMaxLookEvent={decision:t,configs:null,predictedAlt:n,input:e,startIndex:this.predictionState.startIndex,stopIndex:this.llStopIndex,fullCtx:!0})}return n}finally{this.currentDecision=-1}}getExistingTargetState(e,t){this.sllStopIndex=this.predictionState.input.index;const i=super.getExistingTargetState(e,t);return void 0!==i&&(this.decisions[this.currentDecision].sllDFATransitions++,i===ze.ERROR&&this.decisions[this.currentDecision].errors.push({decision:this.currentDecision,configs:e.configs,input:this.predictionState.input,startIndex:this.predictionState.startIndex,stopIndex:this.sllStopIndex,fullCtx:!1})),this.currentState=i,i}computeTargetState(e,t,i){const s=super.computeTargetState(e,t,i);return this.currentState=s,s}computeReachSet(e,t,i){i&&this.predictionState?.input&&(this.llStopIndex=this.predictionState.input.index);const s=super.computeReachSet(e,t,i);return this.predictionState?.input&&(i?(this.decisions[this.currentDecision].llATNTransitions++,null===s&&this.decisions[this.currentDecision].errors.push({decision:this.currentDecision,configs:e,input:this.predictionState.input,startIndex:this.predictionState.startIndex,stopIndex:this.sllStopIndex,fullCtx:!0})):(this.decisions[this.currentDecision].sllATNTransitions++,null===s&&this.decisions[this.currentDecision].errors.push({decision:this.currentDecision,configs:e,input:this.predictionState.input,startIndex:this.predictionState.startIndex,stopIndex:this.sllStopIndex,fullCtx:!1}))),s}reportAttemptingFullContext(e,t,i,s,n){this.conflictingAltResolvedBySLL=null!==t?t.nextSetBit(0):i.getAlts().nextSetBit(0),this.decisions[this.currentDecision].llFallback++,t&&super.reportAttemptingFullContext(e,t,i,s,n)}reportContextSensitivity(e,t,i,s,n){t!==this.conflictingAltResolvedBySLL&&this.predictionState.input&&this.decisions[this.currentDecision].contextSensitivities.push({decision:this.currentDecision,configs:i,input:this.predictionState.input,startIndex:s,stopIndex:n,fullCtx:!0}),super.reportContextSensitivity(e,t,i,s,n)}reportAmbiguity(e,t,i,s,n,r,o){let a;a=r?r.nextSetBit(0):o.getAlts().nextSetBit(0),this.predictionState?.input&&(o.fullCtx&&a!==this.conflictingAltResolvedBySLL&&this.decisions[this.currentDecision].contextSensitivities.push({decision:this.currentDecision,configs:o,input:this.predictionState.input,startIndex:i,stopIndex:s,fullCtx:!0}),this.decisions[this.currentDecision].ambiguities.push({ambigAlts:r,decision:this.currentDecision,configs:o,input:this.predictionState.input,startIndex:i,stopIndex:s,fullCtx:o.fullCtx})),super.reportAmbiguity(e,t,i,s,n,r,o)}getDecisionInfo(){return this.decisions}getCurrentState(){return this.currentState}};(L||(L={})).toString=c((e=>`(${e.pred}, ${e.alt})`),"toString");var ft,_t=class extends Error{static{c(this,"ParseCancellationException")}constructor(e){super(),this.cause=e}},vt=(class{static{c(this,"InterpreterDataReader")}static parseInterpreterData(e){const t=[],i=[],s=[],n=[],r=[],o=e.split("\n");let a=0,c=o[a++];if("token literal names:"!==c)throw new Error("Unexpected data entry");for(;;){if(c=o[a++],0===c.length)break;n.push("null"===c?null:c)}if(c=o[a++],"token symbolic names:"!==c)throw new Error("Unexpected data entry");for(;;){if(c=o[a++],0===c.length)break;r.push("null"===c?null:c)}if(c=o[a++],"rule names:"!==c)throw new Error("Unexpected data entry");for(;;){if(c=o[a++],0===c.length)break;t.push(c)}if(c=o[a++],"channel names:"===c){for(;;){if(c=o[a++],0===c.length)break;i.push(c)}if(c=o[a++],"mode names:"!==c)throw new Error("Unexpected data entry");for(;;){if(c=o[a++],0===c.length)break;s.push(c)}}if(c=o[a++],"atn:"!==c)throw new Error("Unexpected data entry");c=o[a++];const l=c.split(",");let h;const d=[];for(let u=0;u<l.length;++u){const e=l[u];h=e.startsWith("[")?Number(e.substring(1).trim()):e.endsWith("]")?Number(e.substring(0,e.length-1).trim()):Number(e.trim()),d[u]=h}return{atn:(new Be).deserialize(d),vocabulary:new f(n,r,[]),ruleNames:t,channels:i.length>0?i:void 0,modes:s.length>0?s:void 0}}},class{static{c(this,"AbstractParseTreeVisitor")}visit(e){return e.accept(this)}visitChildren(e){let t=this.defaultResult();const i=e.getChildCount();for(let s=0;s<i&&this.shouldVisitNextChild(e,t);s++){const i=e.getChild(s);if(i){const e=i.accept(this);t=this.aggregateResult(t,e)}}return t}visitTerminal(e){return this.defaultResult()}visitErrorNode(e){return this.defaultResult()}defaultResult(){return null}shouldVisitNextChild(e,t){return!0}aggregateResult(e,t){return t}});(class e{static{c(this,"ParseTreeWalker")}static DEFAULT=new e;walk(e,t){if(t instanceof U)e.visitErrorNode(t);else if(t instanceof F)e.visitTerminal(t);else{const i=t;this.enterRule(e,i);for(let s=0;s<t.getChildCount();s++)this.walk(e,t.getChild(s));this.exitRule(e,i)}}enterRule(e,t){const i=t.ruleContext;e.enterEveryRule(i),i.enterRule(e)}exitRule(e,t){const i=t.ruleContext;i.exitRule(e),e.exitEveryRule(i)}});(ft||(ft={})).fromString=c((e=>new Ct(e)),"fromString");var Ct=class{static{c(this,"CharStreamImpl")}name="";index=0;data;constructor(e){const t=[];for(const i of e)t.push(i.codePointAt(0));this.data=new Uint32Array(t)}reset(){this.index=0}consume(){if(this.index>=this.data.length)throw new Error("cannot consume EOF");this.index+=1}LA(e){if(0===e)return 0;e<0&&(e+=1);const t=this.index+e-1;return t<0||t>=this.data.length?r.EOF:this.data[t]}mark(){return-1}release(e){}seek(e){e<=this.index?this.index=e:this.index=Math.min(e,this.data.length)}getTextFromRange(e,t){return(t=t??this.data.length-1)>=this.data.length&&(t=this.data.length-1),e>=this.data.length?"":this.stringFromRange(e,t+1)}getTextFromInterval(e){const t=e.start;let i=e.stop;return i>=this.data.length&&(i=this.data.length-1),t>=this.data.length?"":this.stringFromRange(t,i+1)}toString(){return this.stringFromRange(0)}get size(){return this.data.length}getSourceName(){return this.name?this.name:s.UNKNOWN_SOURCE_NAME}stringFromRange(e,t){const i=this.data.slice(e,t);let s="";return i.forEach((e=>{s+=String.fromCodePoint(e)})),s}},Et=c((e=>void 0!==e.setText),"isWritableToken"),bt=class{static{c(this,"BufferedTokenStream")}tokenSource;tokens=[];p=-1;fetchedEOF=!1;constructor(e){this.tokenSource=e}mark(){return 0}release(e){}reset(){this.seek(0)}seek(e){this.lazyInit(),this.p=this.adjustSeekIndex(e)}get size(){return this.tokens.length}get index(){return this.p}get(e){return this.lazyInit(),this.tokens[e]}consume(){let e=!1;if(e=this.p>=0&&(this.fetchedEOF?this.p<this.tokens.length-1:this.p<this.tokens.length),!e&&this.LA(1)===r.EOF)throw new Error("cannot consume EOF");this.sync(this.p+1)&&(this.p=this.adjustSeekIndex(this.p+1))}sync(e){const t=e-this.tokens.length+1;if(t>0){return this.fetch(t)>=t}return!0}fetch(e){if(this.fetchedEOF)return 0;for(let t=0;t<e;t++){const e=this.tokenSource.nextToken();if(Et(e)&&(e.tokenIndex=this.tokens.length),this.tokens.push(e),e.type===r.EOF)return this.fetchedEOF=!0,t+1}return e}getTokens(e,t,i){if(this.lazyInit(),void 0===e&&void 0===t)return this.tokens;if(e??=0,void 0===t&&(t=this.tokens.length-1),e<0||t>=this.tokens.length||t<0||e>=this.tokens.length)throw new RangeError("start "+e+" or stop "+t+" not in 0.."+(this.tokens.length-1));if(e>t)return[];if(void 0===i)return this.tokens.slice(e,t+1);const s=[];t>=this.tokens.length&&(t=this.tokens.length-1);for(let n=e;n<t;n++){const e=this.tokens[n];if(e.type===r.EOF){s.push(e);break}i.has(e.type)&&s.push(e)}return s}LA(e){return this.LT(e)?.type??r.INVALID_TYPE}LB(e){return this.p-e<0?null:this.tokens[this.p-e]}LT(e){if(this.lazyInit(),0===e)return null;if(e<0)return this.LB(-e);const t=this.p+e-1;return this.sync(t),t>=this.tokens.length?this.tokens[this.tokens.length-1]:this.tokens[t]}adjustSeekIndex(e){return e}lazyInit(){-1===this.p&&this.setup()}setup(){this.sync(0),this.p=this.adjustSeekIndex(0)}setTokenSource(e){this.tokenSource=e,this.tokens=[],this.p=-1,this.fetchedEOF=!1}nextTokenOnChannel(e,t){if(this.sync(e),e>=this.tokens.length)return-1;let i=this.tokens[e];for(;i.channel!==t;){if(i.type===r.EOF)return-1;e+=1,this.sync(e),i=this.tokens[e]}return e}previousTokenOnChannel(e,t){if(e>=this.tokens.length)return this.tokens.length-1;for(;e>=0;){const i=this.tokens[e];if(i.type===r.EOF||i.channel===t)return e;--e}return e}getHiddenTokensToRight(e,t){if(void 0===t&&(t=-1),this.lazyInit(),e<0||e>=this.tokens.length)throw new Error(`${e} not in 0..${this.tokens.length-1}`);const i=this.nextTokenOnChannel(e+1,Je.DEFAULT_TOKEN_CHANNEL),s=e+1,n=-1===i?this.tokens.length-1:i;return this.filterForChannel(s,n,t)}getHiddenTokensToLeft(e,t){if(void 0===t&&(t=-1),this.lazyInit(),e<0||e>=this.tokens.length)throw new Error(`${e} not in 0..${this.tokens.length-1}`);const i=this.previousTokenOnChannel(e-1,Je.DEFAULT_TOKEN_CHANNEL);if(i===e-1)return;const s=i+1,n=e-1;return this.filterForChannel(s,n,t)}filterForChannel(e,t,i){const s=[];for(let n=e;n<t+1;n++){const e=this.tokens[n];-1===i?e.channel!==Je.DEFAULT_TOKEN_CHANNEL&&s.push(e):e.channel===i&&s.push(e)}if(0!==s.length)return s}getSourceName(){return this.tokenSource.sourceName}getText(){return this.getTextFromInterval(m.of(0,this.size-1))}getTextFromInterval(e){const t=e.start;let i=e.stop;if(t<0||i<0)return"";this.sync(i),i>=this.tokens.length&&(i=this.tokens.length-1);let s="";for(let n=t;n<=i;++n){const e=this.tokens[n];if(e.type===r.EOF)break;s+=e.text}return s}getTextFromContext(e){return this.getTextFromInterval(e.getSourceInterval())}getTextFromRange(e,t){return null!==e&&null!==t?this.getTextFromInterval(m.of(e.tokenIndex,t.tokenIndex)):""}fill(){for(this.lazyInit();1e3===this.fetch(1e3););}setLine(e){this.tokenSource.line=e}setColumn(e){this.tokenSource.column=e}},St=class extends bt{static{c(this,"CommonTokenStream")}channel=r.DEFAULT_CHANNEL;constructor(e,t){super(e),this.channel=t??r.DEFAULT_CHANNEL}adjustSeekIndex(e){return this.nextTokenOnChannel(e,this.channel)}LB(e){if(0===e||this.index-e<0)return null;let t=this.index,i=1;for(;i<=e;)t=this.previousTokenOnChannel(t-1,this.channel),i+=1;return t<0?null:this.tokens[t]}LT(e){if(this.lazyInit(),0===e)return null;if(e<0)return this.LB(-e);let t=this.index,i=1;for(;i<e;)this.sync(t+1)&&(t=this.nextTokenOnChannel(t+1,this.channel)),i+=1;return this.tokens[t]}getNumberOfOnChannelTokens(){let e=0;this.fill();for(const t of this.tokens)if(t.channel===this.channel&&(e+=1),t.type===r.EOF)break;return e}},yt=class e extends Je{static{c(this,"XPathLexer")}static TOKEN_REF=1;static RULE_REF=2;static ANYWHERE=3;static ROOT=4;static WILDCARD=5;static BANG=6;static ID=7;static STRING=8;static channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"];static literalNames=[null,null,null,"'//'","'/'","'*'","'!'"];static symbolicNames=[null,"TOKEN_REF","RULE_REF","ANYWHERE","ROOT","WILDCARD","BANG","ID","STRING"];static modeNames=["DEFAULT_MODE"];static ruleNames=["ANYWHERE","ROOT","WILDCARD","BANG","ID","NameChar","NameStartChar","STRING"];constructor(t){super(t),this.interpreter=new at(this,e._ATN,e.decisionsToDFA,new pt)}get grammarFileName(){return"XPathLexer.g4"}get literalNames(){return e.literalNames}get symbolicNames(){return e.symbolicNames}get ruleNames(){return e.ruleNames}get serializedATN(){return e._serializedATN}get channelNames(){return e.channelNames}get modeNames(){return e.modeNames}action(e,t,i){if(4===t)this.ID_action(e,i)}ID_action(t,i){if(0===i){const t=this.text;t.charAt(0)===t.charAt(0).toUpperCase()?this.type=e.TOKEN_REF:this.type=e.RULE_REF}}static _serializedATN=[4,0,8,48,6,-1,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,1,0,1,0,1,0,1,1,1,1,1,2,1,2,1,3,1,3,1,4,1,4,5,4,29,8,4,10,4,12,4,32,9,4,1,4,1,4,1,5,1,5,1,6,1,6,1,7,1,7,5,7,42,8,7,10,7,12,7,45,9,7,1,7,1,7,1,43,0,8,1,3,3,4,5,5,7,6,9,7,11,0,13,0,15,8,1,0,2,784,0,0,8,14,27,48,57,65,90,95,95,97,122,127,159,170,170,173,173,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1536,1541,1552,1562,1564,1564,1568,1641,1646,1747,1749,1757,1759,1768,1770,1788,1791,1791,1807,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2160,2183,2185,2190,2192,2193,2200,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2901,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3132,3140,3142,3144,3146,3149,3157,3158,3160,3162,3165,3165,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3293,3294,3296,3299,3302,3311,3313,3315,3328,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3457,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3790,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5909,5919,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6847,6862,6912,6988,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8203,8207,8234,8238,8255,8256,8276,8276,8288,8292,8294,8303,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43047,43052,43052,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65279,65279,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65529,65531,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69248,69289,69291,69292,69296,69297,69373,69404,69415,69415,69424,69456,69488,69509,69552,69572,69600,69622,69632,69702,69734,69749,69759,69818,69821,69821,69826,69826,69837,69837,69840,69864,69872,69881,69888,69940,69942,69951,69956,69959,69968,70003,70006,70006,70016,70084,70089,70092,70094,70106,70108,70108,70144,70161,70163,70199,70206,70209,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70753,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71488,71494,71680,71738,71840,71913,71935,71942,71945,71945,71948,71955,71957,71958,71960,71989,71991,71992,71995,72003,72016,72025,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72368,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73472,73488,73490,73530,73534,73538,73552,73561,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78933,82944,83526,92160,92728,92736,92766,92768,92777,92784,92862,92864,92873,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94180,94192,94193,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,113824,113827,118528,118573,118576,118598,119141,119145,119149,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122624,122654,122661,122666,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,122928,122989,123023,123023,123136,123180,123184,123197,123200,123209,123214,123214,123536,123566,123584,123641,124112,124153,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,130032,130041,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,194560,195101,196608,201546,201552,205743,917505,917505,917536,917631,917760,917999,662,0,65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2160,2183,2185,2190,2208,2249,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3165,3165,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3293,3294,3296,3297,3313,3314,3332,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5905,5919,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6276,6279,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6988,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69248,69289,69296,69297,69376,69404,69415,69415,69424,69445,69488,69505,69552,69572,69600,69622,69635,69687,69745,69746,69749,69749,69763,69807,69840,69864,69891,69926,69956,69956,69959,69959,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70207,70208,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70753,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71488,71494,71680,71723,71840,71903,71935,71942,71945,71945,71948,71955,71957,71958,71960,71983,71999,71999,72001,72001,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72368,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73474,73474,73476,73488,73490,73523,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78913,78918,82944,83526,92160,92728,92736,92766,92784,92862,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,122624,122654,122661,122666,122928,122989,123136,123180,123191,123197,123214,123214,123536,123565,123584,123627,124112,124139,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,194560,195101,196608,201546,201552,205743,47,0,1,1,0,0,0,0,3,1,0,0,0,0,5,1,0,0,0,0,7,1,0,0,0,0,9,1,0,0,0,0,15,1,0,0,0,1,17,1,0,0,0,3,20,1,0,0,0,5,22,1,0,0,0,7,24,1,0,0,0,9,26,1,0,0,0,11,35,1,0,0,0,13,37,1,0,0,0,15,39,1,0,0,0,17,18,5,47,0,0,18,19,5,47,0,0,19,2,1,0,0,0,20,21,5,47,0,0,21,4,1,0,0,0,22,23,5,42,0,0,23,6,1,0,0,0,24,25,5,33,0,0,25,8,1,0,0,0,26,30,3,13,6,0,27,29,3,11,5,0,28,27,1,0,0,0,29,32,1,0,0,0,30,28,1,0,0,0,30,31,1,0,0,0,31,33,1,0,0,0,32,30,1,0,0,0,33,34,6,4,0,0,34,10,1,0,0,0,35,36,7,0,0,0,36,12,1,0,0,0,37,38,7,1,0,0,38,14,1,0,0,0,39,43,5,39,0,0,40,42,9,0,0,0,41,40,1,0,0,0,42,45,1,0,0,0,43,44,1,0,0,0,43,41,1,0,0,0,44,46,1,0,0,0,45,43,1,0,0,0,46,47,5,39,0,0,47,16,1,0,0,0,3,0,30,43,1,1,4,0];static __ATN;static get _ATN(){return e.__ATN||(e.__ATN=(new Be).deserialize(e._serializedATN)),e.__ATN}static vocabulary=new f(e.literalNames,e.symbolicNames,[]);get vocabulary(){return e.vocabulary}static decisionsToDFA=e._ATN.decisionToState.map(((e,t)=>new it(e,t)))},wt=class extends Ke{static{c(this,"XPathLexerErrorListener")}syntaxError(e,t,i,s,n,r){}},Rt=class{static{c(this,"XPathElement")}invert;nodeName;constructor(e){this.nodeName=e,this.invert=!1}toString(){return"XPathElement["+(this.invert?"!":"")+this.nodeName+"]"}},Lt=class extends Rt{static{c(this,"XPathRuleAnywhereElement")}ruleIndex;constructor(e,t){super(e),this.ruleIndex=t}evaluate(e){return B.findAllRuleNodes(e,this.ruleIndex)}toString(){return"XPathRuleAnywhereElement["+(this.invert?"!":"")+this.nodeName+"]"}},Tt=class extends Rt{static{c(this,"XPathRuleElement")}ruleIndex;constructor(e,t){super(e),this.ruleIndex=t}evaluate(e){const t=[];for(const i of B.getChildren(e))i instanceof W&&(i.ruleIndex===this.ruleIndex&&!this.invert||i.ruleIndex!==this.ruleIndex&&this.invert)&&t.push(i);return t}toString(){return"XPathRuleElement["+(this.invert?"!":"")+this.nodeName+"]"}},xt=class extends Rt{static{c(this,"XPathTokenAnywhereElement")}tokenType;constructor(e,t){super(e),this.tokenType=t}evaluate(e){return B.findAllTokenNodes(e,this.tokenType)}toString(){return"XPathTokenAnywhereElement["+(this.invert?"!":"")+this.nodeName+"]"}},kt=class extends Rt{static{c(this,"XPathTokenElement")}tokenType;constructor(e,t){super(e),this.tokenType=t}evaluate(e){const t=[];for(const i of B.getChildren(e))i instanceof F&&i.symbol&&(i.symbol.type===this.tokenType&&!this.invert||i.symbol.type!==this.tokenType&&this.invert)&&t.push(i);return t}toString(){return"XPathTokenElement["+(this.invert?"!":"")+this.nodeName+"]"}},At=class extends Rt{static{c(this,"XPathWildcardAnywhereElement")}constructor(){super(It.WILDCARD)}evaluate(e){return this.invert?[]:B.descendants(e)}toString(){return"XPathWildcardAnywhereElement["+(this.invert?"!":"")+this.nodeName+"]"}},Nt=class extends Rt{static{c(this,"XPathWildcardElement")}constructor(){super(It.WILDCARD)}evaluate(e){const t=[];if(this.invert)return t;for(const i of B.getChildren(e))t.push(i);return t}toString(){return"XPathWildcardElement["+(this.invert?"!":"")+this.nodeName+"]"}},It=class e{static{c(this,"XPath")}static WILDCARD="*";static NOT="!";path;elements;parser;constructor(e,t){this.parser=e,this.path=t,this.elements=this.split(t)}static findAll(t,i,s){return new e(s,i).evaluate(t)}split(e){const t=new yt(ft.fromString(e));t.recover=e=>{throw e},t.removeErrorListeners(),t.addErrorListener(new wt);const i=new St(t);try{i.fill()}catch(c){if(c instanceof Ze){const i="Invalid tokens or characters at index "+t.column+" in path '"+e+"' -- "+c.message;throw new RangeError(i)}throw c}const s=i.getTokens(),n=[],o=s.length;let a=0;e:for(;a<o;){const e=s[a];let t;switch(e.type){case yt.ROOT:case yt.ANYWHERE:const i=e.type===yt.ANYWHERE;a++,t=s[a];const o=t.type===yt.BANG;o&&(a++,t=s[a]);const c=this.getXPathElement(t,i);c.invert=o,n.push(c),a++;break;case yt.TOKEN_REF:case yt.RULE_REF:case yt.WILDCARD:n.push(this.getXPathElement(e,!1)),++a;break;case r.EOF:break e;default:throw new Error("Unknown path element "+e)}}return n}evaluate(e){const t=new W(null);t.addChild(e);let i=new Set([t]),s=0;for(;s<this.elements.length;){const e=new Set;for(const t of i)if(t.getChildCount()>0){this.elements[s].evaluate(t).forEach((t=>{e.add(t)}),e)}s++,i=e}return i}getXPathElement(e,t){if(e.type===r.EOF)throw new Error("Missing path element at end of path");const i=e.text;if(null==i)throw new Error("Expected wordToken to have text content.");const s=this.parser.getTokenType(i),n=this.parser.getRuleIndex(i);switch(e.type){case yt.WILDCARD:return t?new At:new Nt;case yt.TOKEN_REF:case yt.STRING:if(s===r.INVALID_TYPE)throw new Error(i+" at index "+e.start+" isn't a valid token name");return t?new xt(i,s):new kt(i,s);default:if(-1===n)throw new Error(i+" at index "+e.start+" isn't a valid rule name");return t?new Lt(i,n):new Tt(i,n)}}},Ot=class{static{c(this,"Chunk")}},Dt=class{static{c(this,"ParseTreeMatch")}tree;pattern;labels;mismatchedNode;constructor(e,t,i,s){this.tree=e,this.pattern=t,this.labels=i,this.mismatchedNode=s}get(e){const t=this.labels.get(e);return t&&0!==t.length?t[t.length-1]:null}getAll(e){return this.labels.get(e)??[]}getLabels(){return this.labels}getMismatchedNode(){return this.mismatchedNode}succeeded(){return!this.mismatchedNode}getPattern(){return this.pattern}getTree(){return this.tree}toString(){return`Match ${this.succeeded()?"succeeded":"failed"}; found ${this.getLabels().size} labels`}},Mt=class{static{c(this,"ParseTreePattern")}patternRuleIndex;pattern;patternTree;matcher;constructor(e,t,i,s){this.matcher=e,this.patternRuleIndex=i,this.pattern=t,this.patternTree=s}match(e){return this.matcher.match(e,this)}matches(e){return this.matcher.match(e,this).succeeded()}findAll(e,t){const i=It.findAll(e,t,this.matcher.getParser()),s=new Array;for(const n of i){const e=this.match(n);e.succeeded()&&s.push(e)}return s}getMatcher(){return this.matcher}getPattern(){return this.pattern}getPatternRuleIndex(){return this.patternRuleIndex}getPatternTree(){return this.patternTree}},Pt=class extends Xe{static{c(this,"InputMismatchException")}constructor(e){super({message:"",recognizer:e,input:e.inputStream,ctx:e.context}),this.offendingToken=e.getCurrentToken()}},Ft=class extends Xe{static{c(this,"FailedPredicateException")}ruleIndex=0;predicateIndex=0;predicate;constructor(e,t,i=null){super({message:Ut(t??"no predicate",i??null),recognizer:e,input:e.inputStream,ctx:e.context});const s=e.atn.states[e.state].transitions[0];s instanceof Se?(this.ruleIndex=s.ruleIndex,this.predicateIndex=s.predIndex):(this.ruleIndex=0,this.predicateIndex=0),this.predicate=t,this.offendingToken=e.getCurrentToken()}},Ut=c(((e,t)=>null!==t?t:"failed predicate: {"+e+"}?"),"formatMessage"),Ht=class{static{c(this,"DefaultErrorStrategy")}errorRecoveryMode=!1;lastErrorIndex=-1;lastErrorStates=new _;nextTokensContext=null;nextTokenState=0;reset(e){this.endErrorCondition(e)}beginErrorCondition(e){this.errorRecoveryMode=!0}inErrorRecoveryMode(e){return this.errorRecoveryMode}endErrorCondition(e){this.errorRecoveryMode=!1,this.lastErrorStates=new _,this.lastErrorIndex=-1}reportMatch(e){this.endErrorCondition(e)}reportError(e,t){this.inErrorRecoveryMode(e)||(this.beginErrorCondition(e),t instanceof lt?this.reportNoViableAlternative(e,t):t instanceof Pt?this.reportInputMismatch(e,t):t instanceof Ft?this.reportFailedPredicate(e,t):e.notifyErrorListeners(t.message,t.offendingToken,t))}recover(e,t){this.lastErrorIndex===e.inputStream?.index&&this.lastErrorStates.contains(e.state)&&e.consume(),this.lastErrorIndex=e.inputStream?.index??0,this.lastErrorStates.addOne(e.state);const i=this.getErrorRecoverySet(e);this.consumeUntil(e,i)}sync(e){if(this.inErrorRecoveryMode(e))return;const t=e.atn.states[e.state],i=e.tokenStream.LA(1),s=e.atn.nextTokens(t);if(s.contains(i))return this.nextTokensContext=null,void(this.nextTokenState=x.INVALID_STATE_NUMBER);if(s.contains(r.EPSILON))null===this.nextTokensContext&&(this.nextTokensContext=e.context,this.nextTokenState=e.state);else switch(t.constructor.stateType){case x.BLOCK_START:case x.STAR_BLOCK_START:case x.PLUS_BLOCK_START:case x.STAR_LOOP_ENTRY:if(null!==this.singleTokenDeletion(e))return;throw new Pt(e);case x.PLUS_LOOP_BACK:case x.STAR_LOOP_BACK:{this.reportUnwantedToken(e);const t=new _;t.addSet(e.getExpectedTokens());const i=t.addSet(this.getErrorRecoverySet(e));this.consumeUntil(e,i);break}}}reportNoViableAlternative(e,t){if(t.message.length>0)return void e.notifyErrorListeners(t.message,t.offendingToken,t);const i=e.tokenStream;let s;s=null!==i&&t.startToken?t.startToken.type===r.EOF?"<EOF>":i.getTextFromRange(t.startToken,t.offendingToken):"<unknown input>";const n="no viable alternative at input "+this.escapeWSAndQuote(s);e.notifyErrorListeners(n,t.offendingToken,t)}reportInputMismatch(e,t){if(t.message.length>0)return void e.notifyErrorListeners(t.message,t.offendingToken,t);const i="mismatched input "+this.getTokenErrorDisplay(t.offendingToken)+" expecting "+t.getExpectedTokens().toStringWithVocabulary(e.vocabulary);e.notifyErrorListeners(i,t.offendingToken,t)}reportFailedPredicate(e,t){const i="rule "+e.ruleNames[e.context.ruleIndex]+" "+t.message;e.notifyErrorListeners(i,t.offendingToken,t)}reportUnwantedToken(e){if(this.inErrorRecoveryMode(e))return;this.beginErrorCondition(e);const t=e.getCurrentToken(),i="extraneous input "+this.getTokenErrorDisplay(t)+" expecting "+this.getExpectedTokens(e).toStringWithVocabulary(e.vocabulary);e.notifyErrorListeners(i,t,null)}reportMissingToken(e){if(this.inErrorRecoveryMode(e))return;this.beginErrorCondition(e);const t=e.getCurrentToken(),i="missing "+this.getExpectedTokens(e).toStringWithVocabulary(e.vocabulary)+" at "+this.getTokenErrorDisplay(t);e.notifyErrorListeners(i,t,null)}recoverInline(e){const t=this.singleTokenDeletion(e);if(t)return e.consume(),t;if(this.singleTokenInsertion(e))return this.getMissingSymbol(e);throw new Pt(e)}singleTokenInsertion(e){const t=e.tokenStream?.LA(1)??-1,i=e.atn,s=i.states[e.state].transitions[0].target;return!!i.nextTokens(s,e.context??void 0).contains(t)&&(this.reportMissingToken(e),!0)}singleTokenDeletion(e){const t=e.tokenStream?.LA(2)??-1;if(this.getExpectedTokens(e).contains(t)){this.reportUnwantedToken(e),e.consume();const t=e.getCurrentToken();return this.reportMatch(e),t}return null}getMissingSymbol(e){const t=e.getCurrentToken(),i=this.getExpectedTokens(e);let s,n=r.INVALID_TYPE;0!==i.length&&(n=i.minElement),s=n===r.EOF?"<missing EOF>":"<missing "+e.vocabulary.getDisplayName(n)+">";let o=t;const a=e.tokenStream?.LT(-1);return o.type===r.EOF&&null!==a&&(o=a),e.getTokenFactory().create(o.source,n,s,r.DEFAULT_CHANNEL,-1,-1,o.line,o.column)}getExpectedTokens(e){return e.getExpectedTokens()}getTokenErrorDisplay(e){if(null===e)return"<no token>";let t=e.text;return t||(t=e.type===r.EOF?"<EOF>":"<"+e.type+">"),this.escapeWSAndQuote(t)}escapeWSAndQuote(e){return"'"+(e=(e=(e=e.replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace(/\t/g,"\\t"))+"'"}getErrorRecoverySet(e){const t=e.atn;let i=e.context;const s=new _;for(;null!==i&&i.invokingState>=0;){const e=t.states[i.invokingState].transitions[0],n=t.nextTokens(e.followState);s.addSet(n),i=i.parent}return s.removeOne(r.EPSILON),s}consumeUntil(e,t){let i=e.tokenStream?.LA(1)??-1;for(;i!==r.EOF&&!t.contains(i);)e.consume(),i=e.tokenStream?.LA(1)??-1}},Bt=class extends Ht{static{c(this,"BailErrorStrategy")}recover(e,t){throw new _t(t)}recoverInline(e){const t=new Pt(e);throw new _t(t)}sync(e){}},Wt=class{static{c(this,"ListTokenSource")}sourceName;tokenFactory=Qe.DEFAULT;tokens=[];i=0;eofToken=null;constructor(e,t){this.tokens=e,this.sourceName=t??""}get column(){if(this.i<this.tokens.length)return this.tokens[this.i].column;if(null!==this.eofToken)return this.eofToken.column;if(this.tokens.length>0){const e=this.tokens[this.tokens.length-1],t=e.text;if(t){const e=t.lastIndexOf("\n");if(e>=0)return t.length-e-1}return e.column+e.stop-e.start+1}return 0}nextToken(){if(this.i>=this.tokens.length){if(null===this.eofToken){let e=-1;if(this.tokens.length>0){const t=this.tokens[this.tokens.length-1].stop;-1!==t&&(e=t+1)}const t=Math.max(-1,e-1);this.eofToken=this.tokenFactory.create([this,this.inputStream],r.EOF,"EOF",r.DEFAULT_CHANNEL,e,t,this.line,this.column)}return this.eofToken}const e=this.tokens[this.i];return this.i===this.tokens.length-1&&e.type===r.EOF&&(this.eofToken=e),this.i++,e}get line(){if(this.i<this.tokens.length)return this.tokens[this.i].line;if(null!==this.eofToken)return this.eofToken.line;if(this.tokens.length>0){const e=this.tokens[this.tokens.length-1];let t=e.line;const i=e.text;if(i)for(const s of i)"\n"===s&&t++;return t}return 1}get inputStream(){return this.i<this.tokens.length?this.tokens[this.i].inputStream:null!==this.eofToken?this.eofToken.inputStream:this.tokens.length>0?this.tokens[this.tokens.length-1].inputStream:null}getSourceName(){if(null!==this.sourceName)return this.sourceName;const e=this.inputStream;return null!==e?e.getSourceName():"List"}},Vt=class extends W{static{c(this,"InterpreterRuleContext")}#c;constructor(e,t,i){super(t,i),this.#c=e}get ruleIndex(){return this.#c}},zt=class{static{c(this,"TraceListener")}parser;constructor(e){this.parser=e}enterEveryRule(e){console.log("enter "+this.parser.ruleNames[e.ruleIndex]+", LT(1)="+this.parser.inputStream?.LT(1)?.text)}visitTerminal(e){console.log("consume "+e.getSymbol()+" rule "+this.parser.ruleNames[this.parser.context.ruleIndex])}exitEveryRule(e){console.log("exit "+this.parser.ruleNames[e.ruleIndex]+", LT(1)="+this.parser.inputStream?.LT(1)?.text)}visitErrorNode(e){}},Gt=class extends $e{static{c(this,"Parser")}printer=null;buildParseTrees=!0;errorHandler=new Ht;context=null;precedenceStack=[];parseListeners=null;syntaxErrors=0;matchedEOF=!1;tracer=null;bypassAltsAtnCache=null;#l;constructor(e){super(),this.precedenceStack.push(0),this.syntaxErrors=0,this.#l=e}reset(e=!0){e&&this.inputStream.seek(0),this.errorHandler.reset(this),this.context=null,this.syntaxErrors=0,this.matchedEOF=!1,this.setTrace(!1),this.precedenceStack=[],this.precedenceStack.push(0),this.interpreter&&this.interpreter.reset()}match(e){let t=this.getCurrentToken();return t.type===e?(e===r.EOF&&(this.matchedEOF=!0),this.errorHandler.reportMatch(this),this.consume()):(t=this.errorHandler.recoverInline(this),this.buildParseTrees&&-1===t.tokenIndex&&this.context.addErrorNode(this.createErrorNode(this.context,t))),t}matchWildcard(){let e=this.getCurrentToken();return e.type>0?(this.errorHandler.reportMatch(this),this.consume()):(e=this.errorHandler.recoverInline(this),this.buildParseTrees&&-1===e.tokenIndex&&this.context.addErrorNode(this.createErrorNode(this.context,e))),e}getParseListeners(){return this.parseListeners??[]}addParseListener(e){if(null===e)throw new Error("listener");null===this.parseListeners&&(this.parseListeners=[]),this.parseListeners.push(e)}removeParseListener(e){if(null!==this.parseListeners&&null!==e){const t=this.parseListeners.indexOf(e);t>=0&&this.parseListeners.splice(t,1),0===this.parseListeners.length&&(this.parseListeners=null)}}removeParseListeners(){this.parseListeners=null}triggerEnterRuleEvent(){if(null!==this.parseListeners){const e=this.context;this.parseListeners.forEach((t=>{t.enterEveryRule(e),e.enterRule(t)}))}}triggerExitRuleEvent(){if(null!==this.parseListeners){const e=this.context;this.parseListeners.slice(0).reverse().forEach((t=>{e.exitRule(t),t.exitEveryRule(e)}))}}getTokenFactory(){return this.inputStream.tokenSource.tokenFactory}setTokenFactory(e){this.inputStream.tokenSource.tokenFactory=e}compileParseTreePattern(e,t,i){if(!i&&null!==this.tokenStream){const e=this.tokenStream.tokenSource;e instanceof Je&&(i=e)}if(!i)throw new Error("Parser can't discover a lexer to use");return new Jt(i,this).compile(e,t)}getATNWithBypassAlts(){const e=this.serializedATN;if(null===e)throw new Error("The current parser does not support an ATN with bypass alternatives.");if(null!==this.bypassAltsAtnCache)return this.bypassAltsAtnCache;return this.bypassAltsAtnCache=new Be({readOnly:!1,verifyATN:!0,generateRuleBypassTransitions:!0}).deserialize(e),this.bypassAltsAtnCache}get numberOfSyntaxErrors(){return this.syntaxErrors}get inputStream(){return this.#l}set inputStream(e){this.tokenStream=e}get tokenStream(){return this.#l}set tokenStream(e){this.reset(!1),this.#l=e}getCurrentToken(){return this.inputStream.LT(1)}notifyErrorListeners(e,t,i){i=i??null,null===(t=t??null)&&(t=this.getCurrentToken()),this.syntaxErrors+=1;const s=t.line,n=t.column;this.errorListenerDispatch.syntaxError(this,t,s,n,e,i)}consume(){const e=this.getCurrentToken();e.type!==r.EOF&&this.tokenStream.consume();const t=null!==this.parseListeners&&this.parseListeners.length>0;if(this.buildParseTrees||t){let i;i=this.errorHandler.inErrorRecoveryMode(this)?this.context.addErrorNode(this.createErrorNode(this.context,e)):this.context.addTokenNode(e),t&&this.parseListeners.forEach((e=>{i instanceof U?e.visitErrorNode(i):e.visitTerminal(i)}))}return e}addContextToParseTree(){this.context?.parent&&this.context.parent.addChild(this.context)}enterRule(e,t,i){this.state=t,this.context=e,this.context.start=this.inputStream.LT(1),this.buildParseTrees&&this.addContextToParseTree(),this.triggerEnterRuleEvent()}exitRule(){this.matchedEOF?this.context.stop=this.inputStream.LT(1):this.context.stop=this.inputStream.LT(-1),this.triggerExitRuleEvent(),this.state=this.context.invokingState,this.context=this.context.parent}enterOuterAlt(e,t){e.setAltNumber(t),this.buildParseTrees&&this.context!==e&&this.context?.parent&&(this.context.parent.removeLastChild(),this.context.parent.addChild(e)),this.context=e}getPrecedence(){return 0===this.precedenceStack.length?-1:this.precedenceStack[this.precedenceStack.length-1]}enterRecursionRule(e,t,i,s){this.state=t,this.precedenceStack.push(s),this.context=e,this.context.start=this.inputStream.LT(1),this.triggerEnterRuleEvent()}pushNewRecursionContext(e,t,i){const s=this.context;s.parent=e,s.invokingState=t,s.stop=this.inputStream.LT(-1),this.context=e,this.context.start=s.start,this.buildParseTrees&&this.context.addChild(s),this.triggerEnterRuleEvent()}unrollRecursionContexts(e){this.precedenceStack.pop(),this.context.stop=this.inputStream.LT(-1);const t=this.context,i=this.getParseListeners();if(null!==i&&i.length>0)for(;this.context!==e;)this.triggerExitRuleEvent(),this.context=this.context.parent;else this.context=e;t.parent=e,this.buildParseTrees&&null!==e&&e.addChild(t)}getInvokingContext(e){let t=this.context;for(;null!==t;){if(t.ruleIndex===e)return t;t=t.parent}return null}precpred(e,t){return t>=this.precedenceStack[this.precedenceStack.length-1]}isExpectedToken(e){const t=this.interpreter.atn;let i=this.context;const s=t.states[this.state];let n=t.nextTokens(s);if(n.contains(e))return!0;if(!n.contains(r.EPSILON))return!1;for(;null!==i&&i.invokingState>=0&&n.contains(r.EPSILON);){const s=t.states[i.invokingState].transitions[0];if(n=t.nextTokens(s.followState),n.contains(e))return!0;i=i.parent}return!(!n.contains(r.EPSILON)||e!==r.EOF)}getExpectedTokens(){return this.interpreter.atn.getExpectedTokens(this.state,this.context)}getExpectedTokensWithinCurrentRule(){const e=this.interpreter.atn,t=e.states[this.state];return e.nextTokens(t)}getRuleIndex(e){return this.getRuleIndexMap().get(e)??-1}getRuleInvocationStack(e){null===(e=e??null)&&(e=this.context);const t=[];for(;null!==e;){const i=e.ruleIndex;i<0?t.push("n/a"):t.push(this.ruleNames[i]),e=e.parent}return t}getDFAStrings(){return this.interpreter.decisionToDFA.toString()}dumpDFA(){let e=!1;for(const t of this.interpreter.decisionToDFA)t.length>0&&(e&&console.log(),this.printer&&(this.printer.println("Decision "+t.decision+":"),this.printer.print(t.toString(this.vocabulary))),e=!0)}getSourceName(){return this.inputStream.getSourceName()}getParseInfo(){const e=this.interpreter;if(e instanceof mt)return new ct(e)}setProfile(e){const t=this.interpreter,i=t.predictionMode;if(e)t instanceof mt||(this.interpreter=new mt(this));else if(t instanceof mt){const e=t.sharedContextCache;if(e){const i=new gt(this,this.atn,t.decisionToDFA,e);this.interpreter=i}}this.interpreter.predictionMode=i}setTrace(e){e?(null!==this.tracer&&this.removeParseListener(this.tracer),this.tracer=new zt(this),this.addParseListener(this.tracer)):(this.removeParseListener(this.tracer),this.tracer=null)}createTerminalNode(e,t){return new F(t)}createErrorNode(e,t){return new U(t)}},jt=class extends Gt{static{c(this,"ParserInterpreter")}rootContext;overrideDecisionRoot=null;parentContextStack=[];overrideDecisionAlt=-1;overrideDecisionReached=!1;decisionToDFA;sharedContextCache=new pt;pushRecursionContextStates;#h=-1;#d=-1;#u;#g;#p;#m;constructor(e,t,i,s,n){super(n),this.#u=e,this.#g=s,this.#p=i.slice(0),this.#m=t,this.pushRecursionContextStates=new h;for(const r of s.states)r instanceof de&&r.precedenceRuleDecision&&this.pushRecursionContextStates.set(r.stateNumber);this.decisionToDFA=s.decisionToState.map(((e,t)=>new it(e,t))),this.interpreter=new gt(this,s,this.decisionToDFA,this.sharedContextCache)}reset(){super.reset(),this.overrideDecisionReached=!1,this.overrideDecisionRoot=null}get atn(){return this.#g}get vocabulary(){return this.#m}get ruleNames(){return this.#p}get grammarFileName(){return this.#u}get atnState(){return this.#g.states[this.state]}parse(e){const t=this.#g.ruleToStartState[e];for(this.rootContext=this.createInterpreterRuleContext(null,x.INVALID_STATE_NUMBER,e),t.isLeftRecursiveRule?this.enterRecursionRule(this.rootContext,t.stateNumber,e,0):this.enterRule(this.rootContext,t.stateNumber,e);;){const e=this.atnState;if(e.constructor.stateType===x.RULE_STOP){if(this.context?.isEmpty()){if(t.isLeftRecursiveRule){const e=this.context,t=this.parentContextStack.pop();return this.unrollRecursionContexts(t[0]),e}return this.exitRule(),this.rootContext}this.visitRuleStopState(e)}else try{this.visitState(e)}catch(i){if(!(i instanceof Xe))throw i;this.state=this.#g.ruleToStopState[e.ruleIndex].stateNumber,this.errorHandler.reportError(this,i),this.recover(i)}}}addDecisionOverride(e,t,i){this.#h=e,this.#d=t,this.overrideDecisionAlt=i}get overrideDecision(){return this.#h}get overrideDecisionInputIndex(){return this.#d}enterRecursionRule(e,t,i,s){this.parentContextStack.push([this.context,e.invokingState]),super.enterRecursionRule(e,t,i,s)}get serializedATN(){throw new Error("The ParserInterpreter does not support the serializedATN property.")}visitState(e){let t=1;e instanceof ie&&(t=this.visitDecisionState(e));const i=e.transitions[t-1];switch(i.transitionType){case I.EPSILON:if(this.pushRecursionContextStates.get(e.stateNumber)&&i.target.constructor.stateType!==x.LOOP_END){const t=this.parentContextStack[this.parentContextStack.length-1],i=this.createInterpreterRuleContext(t[0],t[1],this.context.ruleIndex);this.pushNewRecursionContext(i,this.#g.ruleToStartState[e.ruleIndex].stateNumber,this.context.ruleIndex)}break;case I.ATOM:this.match(i.label.minElement);break;case I.RANGE:case I.SET:case I.NOT_SET:i.matches(this.inputStream.LA(1),r.MIN_USER_TOKEN_TYPE,65535)||this.recoverInline(),this.matchWildcard();break;case I.WILDCARD:this.matchWildcard();break;case I.RULE:const t=i.target,s=t.ruleIndex,n=this.createInterpreterRuleContext(this.context,e.stateNumber,s);t.isLeftRecursiveRule?this.enterRecursionRule(n,t.stateNumber,s,i.precedence):this.enterRule(n,i.target.stateNumber,s);break;case I.PREDICATE:const o=i;if(!this.sempred(this.context,o.ruleIndex,o.predIndex))throw new Ft(this);break;case I.ACTION:const a=i;this.action(this.context,a.ruleIndex,a.actionIndex);break;case I.PRECEDENCE:if(!this.precpred(this.context,i.precedence)){const e=i.precedence;throw new Ft(this,`precpred(_ctx, ${e})`)}break;default:throw new Error("UnsupportedOperationException: Unrecognized ATN transition type.")}this.state=i.target.stateNumber}visitDecisionState(e){let t=1;if(e.transitions.length>1){this.errorHandler.sync(this);const i=e.decision;i!==this.#h||this.inputStream.index!==this.#d||this.overrideDecisionReached?t=this.interpreter.adaptivePredict(this.inputStream,i,this.context):(t=this.overrideDecisionAlt,this.overrideDecisionReached=!0)}return t}createInterpreterRuleContext(e,t,i){return new Vt(i,e,t)}visitRuleStopState(e){if(this.#g.ruleToStartState[e.ruleIndex].isLeftRecursiveRule){const[e,t]=this.parentContextStack.pop();this.unrollRecursionContexts(e),this.state=t}else this.exitRule();const t=this.#g.states[this.state].transitions[0];this.state=t.followState.stateNumber}recover(e){const t=this.inputStream.index;if(this.errorHandler.recover(this,e),this.inputStream.index===t){const t=e.offendingToken;if(!t)throw new Error("Expected exception to have an offending token");const i=t.tokenSource,s=[i,i?.inputStream??null];if(e instanceof Pt){const i=e.getExpectedTokens();if(!i)throw new Error("Expected the exception to provide expected tokens");let n=r.INVALID_TYPE;0!==i.length&&(n=i.minElement);const o=this.getTokenFactory().create(s,n,t.text,r.DEFAULT_CHANNEL,-1,-1,t.line,t.column);this.context.addErrorNode(this.createErrorNode(this.context,o))}else{const e=this.getTokenFactory().create(s,r.INVALID_TYPE,t.text,r.DEFAULT_CHANNEL,-1,-1,t.line,t.column);this.context.addErrorNode(this.createErrorNode(this.context,e))}}}recoverInline(){return this.errorHandler.recoverInline(this)}},Kt=class extends Map{static{c(this,"MultiMap")}map(e,t){let i=this.get(e);i||(i=new Array,this.set(e,i)),i.push(t)}getPairs(){const e=new Array;for(const t of this.keys()){const i=this.get(t)??[];for(const s of i)e.push([t,s])}return e}toString(){const e=[];return this.forEach(((t,i)=>{e.push(`${i}=[${t.join(", ")}]`)})),`{${e.join(", ")}}`}},Yt=class extends Error{static{c(this,"CannotInvokeStartRuleError")}constructor(e){super(),this.cause=e}},qt=class{static{c(this,"RuleTagToken")}label;ruleName;bypassTokenType;constructor(e,t,i){this.ruleName=e,this.bypassTokenType=t,this.label=i}get channel(){return r.DEFAULT_CHANNEL}get text(){return void 0!==this.label?"<"+this.label+":"+this.ruleName+">":"<"+this.ruleName+">"}get type(){return this.bypassTokenType}get line(){return 0}get column(){return-1}get tokenIndex(){return-1}get start(){return-1}get stop(){return-1}get tokenSource(){return null}get inputStream(){return null}toString(){return this.ruleName+":"+this.bypassTokenType}},$t=class extends Error{static{c(this,"StartRuleDoesNotConsumeFullPatternError")}},Qt=class extends Ot{static{c(this,"TagChunk")}tag;label;constructor(...e){let t,i;if(1===e.length?i=e[0]:(t=e[0],i=e[1]),super(),!i)throw new Error("tag cannot be null or empty");this.label=t,this.tag=i}toString(){return void 0!==this.label?this.label+":"+this.tag:this.tag}},Xt=class extends Ot{static{c(this,"TextChunk")}text;constructor(e){super(),this.text=e}toString(){return"'"+this.text+"'"}},Zt=class extends H{static{c(this,"TokenTagToken")}tokenName;label;constructor(e,t,i){super({type:t,source:H.EMPTY_SOURCE}),this.tokenName=e,this.label=i}get text(){return void 0!==this.label?"<"+this.label+":"+this.tokenName+">":"<"+this.tokenName+">"}toString(){return this.tokenName+":"+this.type}},Jt=class{static{c(this,"ParseTreePatternMatcher")}start="<";stop=">";escape="\\";lexer;parser;constructor(e,t){this.lexer=e,this.parser=t}setDelimiters(e,t,i){if(null===e||0===e.length)throw new Error("start cannot be null or empty");if(null===t||0===t.length)throw new Error("stop cannot be null or empty");this.start=e,this.stop=t,this.escape=i}matches(...e){switch(e.length){case 2:{const[t,i]=e,s=new Kt;return null===this.matchImpl(t,i.getPatternTree(),s)}case 3:{const[t,i,s]=e,n=this.compile(i,s);return this.matches(t,n)}default:throw new Error("Invalid number of arguments")}}match(...e){switch(e.length){case 2:{const[t,i]=e,s=new Kt,n=this.matchImpl(t,i.getPatternTree(),s);return new Dt(t,i,s,n)}case 3:{const[t,i,s]=e,n=this.compile(i,s);return this.match(t,n)}default:throw new Error("Invalid number of arguments")}}compile(e,t){const i=this.tokenize(e),s=new Wt(i),n=new St(s),o=new jt(this.parser.grammarFileName,this.parser.vocabulary,this.parser.ruleNames,this.parser.getATNWithBypassAlts(),n);o.removeErrorListeners();let a=null;try{o.errorHandler=new Bt,a=o.parse(t)}catch(c){throw c instanceof _t?c.cause:c instanceof Xe?c:c instanceof Error?new Yt(c):c}if(n.LA(1)!==r.EOF)throw new $t;return new Mt(this,e,t,a)}getLexer(){return this.lexer}getParser(){return this.parser}tokenize(e){const t=this.split(e),i=new Array;for(const s of t)if(s instanceof Qt){const t=s,n=t.tag[0];if(n===n.toUpperCase()){const s=this.parser.getTokenType(t.tag);if(s===r.INVALID_TYPE)throw new Error("Unknown token "+t.tag+" in pattern: "+e);const n=new Zt(t.tag,s,t.label);i.push(n)}else{if(n!==n.toLowerCase())throw new Error("invalid tag: "+t.tag+" in pattern: "+e);{const s=this.parser.getRuleIndex(t.tag);if(-1===s)throw new Error("Unknown rule "+t.tag+" in pattern: "+e);const n=this.parser.getATNWithBypassAlts().ruleToTokenType[s];i.push(new qt(t.tag,n,t.label))}}}else{const e=s,t=ft.fromString(e.text);this.lexer.inputStream=t;let n=this.lexer.nextToken();for(;n.type!==r.EOF;)i.push(n),n=this.lexer.nextToken()}return i}split(e){let t=0;const i=e.length,s=new Array,n=new Array,r=new Array;for(;t<i;)t===e.indexOf(this.escape+this.start,t)?t+=this.escape.length+this.start.length:t===e.indexOf(this.escape+this.stop,t)?t+=this.escape.length+this.stop.length:t===e.indexOf(this.start,t)?(n.push(t),t+=this.start.length):t===e.indexOf(this.stop,t)?(r.push(t),t+=this.stop.length):t++;if(n.length>r.length)throw new Error("unterminated tag in pattern: "+e);if(n.length<r.length)throw new Error("missing start tag in pattern: "+e);const o=n.length;for(let a=0;a<o;a++)if(n[a]>=r[a])throw new Error("tag delimiters out of order in pattern: "+e);if(0===o){const t=e.substring(0,i);s.push(new Xt(t))}if(o>0&&n[0]>0){const t=e.substring(0,n[0]);s.push(new Xt(t))}for(let a=0;a<o;a++){const t=e.substring(n[a]+this.start.length,r[a]);let i,c=t;const l=t.indexOf(":");if(l>=0&&(i=t.substring(0,l),c=t.substring(l+1,t.length)),s.push(new Qt(i,c)),a+1<o){const t=e.substring(r[a]+this.stop.length,n[a+1]);s.push(new Xt(t))}}if(o>0){const t=r[o-1]+this.stop.length;if(t<i){const n=e.substring(t,i);s.push(new Xt(n))}}for(let a=0;a<s.length;a++){const e=s[a];if(e instanceof Xt){const t=e,i=t.text.replaceAll(this.escape,"");i.length<t.text.length&&(s[a]=new Xt(i))}}return s}matchImpl(e,t,i){if(e instanceof F&&t instanceof F){const s=e,n=t;let r;if(s.getSymbol().type===n.getSymbol().type)if(n.getSymbol()instanceof Zt){const t=n.getSymbol();i.map(t.tokenName,e),void 0!==t.label&&i.map(t.label,e)}else s.getText()===n.getText()||r||(r=s);else r||(r=s);return r}if(e instanceof W&&t instanceof W){let s;const n=this.getRuleTagToken(t);if(n)return e.ruleIndex===t.ruleIndex?(i.map(n.ruleName,e),n.label&&i.map(n.label,e)):s||(s=e),s;if(e.getChildCount()!==t.getChildCount())return s||(s=e),s;const r=e.getChildCount();for(let o=0;o<r;o++){const s=this.matchImpl(e.getChild(o),t.getChild(o),i);if(s)return s}return s}return e}getRuleTagToken(e){if(e instanceof W&&1===e.getChildCount()&&e.getChild(0)instanceof F){const t=e.getChild(0);if(t.getSymbol()instanceof qt)return t.getSymbol()}}},ei=(class extends Ke{static{c(this,"DiagnosticErrorListener")}exactOnly;constructor(e){super(),this.exactOnly=e??!0}reportAmbiguity=c(((e,t,i,s,n,r,o)=>{if(this.exactOnly&&!n)return;const a=this.getDecisionDescription(e,t),c=this.getConflictingAlts(r,o),l=e.tokenStream?.getTextFromInterval(m.of(i,s)),h=`reportAmbiguity d=${a}: ambigAlts=${c}, input='${l}'`;e.notifyErrorListeners(h,null,null)}),"reportAmbiguity");reportAttemptingFullContext=c(((e,t,i,s,n,r)=>{const o=this.getDecisionDescription(e,t),a=e.tokenStream?.getTextFromInterval(m.of(i,s)),c=`reportAttemptingFullContext d=${o}, input='${a}'`;e.notifyErrorListeners(c,null,null)}),"reportAttemptingFullContext");reportContextSensitivity=c(((e,t,i,s,n,r)=>{const o=this.getDecisionDescription(e,t),a=e.tokenStream?.getTextFromInterval(m.of(i,s)),c=`reportContextSensitivity d=${o}, input='${a}'`;e.notifyErrorListeners(c,null,null)}),"reportContextSensitivity");getDecisionDescription=c(((e,t)=>{const i=t.decision,s=t.atnStartState.ruleIndex,n=e.ruleNames;if(s<0||s>=n.length)return i.toString();const r=n[s];return 0===r.length?i.toString():`${i} (${r})`}),"getDecisionDescription");getConflictingAlts=c(((e,t)=>{if(e)return e;const i=new h;for(let s=0;s<t.configs.length;s++)i.set(t.configs[s].alt);return i}),"getConflictingAlts")},class extends Je{static{c(this,"LexerInterpreter")}decisionToDFA;sharedContextCache=new pt;#u;#g;#p;#f;#_;#m;constructor(e,t,i,s,n,r,o){if(super(o),r.grammarType!==Z.LEXER)throw new Error("IllegalArgumentException: The ATN must be a lexer ATN.");this.#u=e,this.#g=r,this.#p=i.slice(0),this.#f=s.slice(0),this.#_=n.slice(0),this.#m=t,this.decisionToDFA=r.decisionToState.map(((e,t)=>new it(e,t))),this.interpreter=new at(this,r,this.decisionToDFA,this.sharedContextCache)}get atn(){return this.#g}get grammarFileName(){return this.#u}get ruleNames(){return this.#p}get channelNames(){return this.#f}get modeNames(){return this.#_}get vocabulary(){return this.#m}get serializedATN(){throw new Error("The LexerInterpreter does not support the serializedATN property.")}},class e{static{c(this,"RuntimeMetaData")}static VERSION="4.13.1";static getRuntimeVersion(){return e.VERSION}static checkVersion(t,i){const s=e.VERSION;let n=!1,r=!1;n=s!==t&&e.getMajorMinorVersion(s)!==e.getMajorMinorVersion(t),r=s!==i&&e.getMajorMinorVersion(s)!==e.getMajorMinorVersion(i),n&&console.error(`ANTLR Tool version ${t} used for code generation does not match the current runtime version ${s}`),r&&console.error(`ANTLR Runtime version ${i} used for parser compilation does not match the current runtime version ${s}`)}static getMajorMinorVersion(e){const t=e.indexOf("."),i=t>=0?e.indexOf(".",t+1):-1,s=e.indexOf("-");let n=e.length;return i>=0&&(n=Math.min(n,i)),s>=0&&(n=Math.min(n,s)),e.substring(0,n)}},class e{static{c(this,"TokenStreamRewriter")}static DEFAULT_PROGRAM_NAME="default";static PROGRAM_INIT_SIZE=100;static MIN_TOKEN_INDEX=0;tokens;programs=new Map;lastRewriteTokenIndexes;constructor(e){this.tokens=e}getTokenStream(){return this.tokens}insertAfter(t,i,s=e.DEFAULT_PROGRAM_NAME){let n;n="number"===typeof t?t:t.tokenIndex;const r=this.getProgram(s),o=new ii(this.tokens,n,r.length,i);r.push(o)}insertBefore(t,i,s=e.DEFAULT_PROGRAM_NAME){let n;n="number"===typeof t?t:t.tokenIndex;const r=this.getProgram(s),o=new ti(this.tokens,n,r.length,i);r.push(o)}replaceSingle(t,i,s=e.DEFAULT_PROGRAM_NAME){this.replace(t,t,i,s)}replace(t,i,s,n=e.DEFAULT_PROGRAM_NAME){if("number"!==typeof t&&(t=t.tokenIndex),"number"!==typeof i&&(i=i.tokenIndex),t>i||t<0||i<0||i>=this.tokens.size)throw new RangeError(`replace: range invalid: ${t}..${i}(size=${this.tokens.size})`);const r=this.getProgram(n),o=new si(this.tokens,t,i,r.length,s);r.push(o)}delete(t,i,s=e.DEFAULT_PROGRAM_NAME){null==i&&(i=t),this.replace(t,i,null,s)}getProgram(e){let t=this.programs.get(e);return null==t&&(t=this.initializeProgram(e)),t}initializeProgram(e){const t=[];return this.programs.set(e,t),t}getText(t,i=e.DEFAULT_PROGRAM_NAME){let s;s=t instanceof m?t:new m(0,this.tokens.size-1),"string"===typeof t&&(i=t);const n=this.programs.get(i);let o=s.start,a=s.stop;if(a>this.tokens.size-1&&(a=this.tokens.size-1),o<0&&(o=0),null==n||0===n.length)return this.tokens.getTextFromInterval(new m(o,a));const c=[],l=this.reduceToSingleOperationPerIndex(n);let h=o;for(;h<=a&&h<this.tokens.size;){const e=l.get(h);l.delete(h);const t=this.tokens.get(h);null==e?(t.type!==r.EOF&&c.push(String(t.text)),h++):h=e.execute(c)}if(a===this.tokens.size-1)for(const e of l.values())e&&e.index>=this.tokens.size-1&&c.push(String(e.text));return c.join("")}reduceToSingleOperationPerIndex(e){for(let i=0;i<e.length;i++){const t=e[i];if(null==t)continue;if(!(t instanceof si))continue;const s=t,n=this.getKindOfOps(e,ti,i);for(const i of n)i.index===s.index?(e[i.instructionIndex]=null,s.text=String(i.text)+(null!=s.text?s.text.toString():"")):i.index>s.index&&i.index<=s.lastIndex&&(e[i.instructionIndex]=null);const r=this.getKindOfOps(e,si,i);for(const i of r){if(i.index>=s.index&&i.lastIndex<=s.lastIndex){e[i.instructionIndex]=null;continue}const t=i.lastIndex<s.index||i.index>s.lastIndex;if(null!=i.text||null!=s.text||t){if(!t)throw new Error(`replace op boundaries of ${s} overlap with previous ${i}`)}else e[i.instructionIndex]=null,s.index=Math.min(i.index,s.index),s.lastIndex=Math.max(i.lastIndex,s.lastIndex)}}for(let i=0;i<e.length;i++){const t=e[i];if(null==t)continue;if(!(t instanceof ti))continue;const s=t,n=this.getKindOfOps(e,ti,i);for(const i of n)i.index===s.index&&(i instanceof ii?(s.text=this.catOpText(i.text,s.text),e[i.instructionIndex]=null):i instanceof ti&&(s.text=this.catOpText(s.text,i.text),e[i.instructionIndex]=null));const r=this.getKindOfOps(e,si,i);for(const o of r)if(s.index!==o.index){if(s.index>=o.index&&s.index<=o.lastIndex)throw new Error(`insert op ${s} within boundaries of previous ${o}`)}else o.text=this.catOpText(s.text,o.text),e[i]=null}const t=new Map;for(const i of e)if(null!=i){if(null!=t.get(i.index))throw new Error("should only be one op per index");t.set(i.index,i)}return t}catOpText(e,t){let i="",s="";return null!=e&&(i=e.toString()),null!=t&&(s=t.toString()),i+s}getKindOfOps(e,t,i){return e.slice(0,i).filter((e=>e&&e instanceof t))}},class{static{c(this,"RewriteOperation")}instructionIndex;index;text;tokens;constructor(e,t,i,s){this.tokens=e,this.instructionIndex=i,this.index=t,this.text=void 0===s?"":s}execute(e){return this.index}toString(){return"<RewriteOperation@"+this.tokens.get(this.index)+':"'+this.text+'">'}}),ti=class extends ei{static{c(this,"InsertBeforeOp")}constructor(e,t,i,s){super(e,t,i,s)}execute(e){return this.text&&e.push(this.text.toString()),this.tokens.get(this.index).type!==r.EOF&&e.push(String(this.tokens.get(this.index).text)),this.index+1}toString(){return"<InsertBeforeOp@"+this.tokens.get(this.index)+':"'+this.text+'">'}},ii=class extends ti{static{c(this,"InsertAfterOp")}constructor(e,t,i,s){super(e,t+1,i,s)}toString(){return"<InsertAfterOp@"+this.tokens.get(this.index)+':"'+this.text+'">'}},si=class extends ei{static{c(this,"ReplaceOp")}lastIndex;constructor(e,t,i,s,n){super(e,t,s,n),this.lastIndex=i}execute(e){return this.text&&e.push(this.text.toString()),this.lastIndex+1}toString(){return null==this.text?"<DeleteOp@"+this.tokens.get(this.index)+".."+this.tokens.get(this.lastIndex)+">":"<ReplaceOp@"+this.tokens.get(this.index)+".."+this.tokens.get(this.lastIndex)+':"'+this.text+'">'}},ni=(class{static{c(this,"UnbufferedTokenStream")}tokenSource;tokens;n;p=0;numMarkers=0;lastToken;lastTokenBufferStart;currentTokenIndex=0;constructor(e,t){this.tokenSource=e,t=t??256,this.tokens=new Array(t),this.n=0,this.fill(1)}get(e){const t=this.getBufferStartIndex();if(e<t||e>=t+this.n)throw new Error("get("+e+") outside buffer: "+t+".."+(t+this.n));return this.tokens[e-t]}LT(e){if(-1===e)return this.lastToken;this.sync(e);const t=this.p+e-1;if(t<0)throw new Error("LT("+e+") gives negative index");return t>=this.n?this.tokens[this.n-1]:this.tokens[t]}LA(e){return this.LT(e).type}getText(){return""}getTextFromContext(e){return this.getTextFromInterval(e.getSourceInterval())}getTextFromInterval(e){const t=this.getBufferStartIndex(),i=t+this.tokens.length-1,s=e.start,n=e.stop;if(s<t||n>i)throw new Error("interval "+e+" not in token buffer window: "+t+".."+i);const r=n-t;let o="";for(let a=s-t;a<=r;a++){o+=this.tokens[a].text}return o}getTextFromRange(e,t){return this.getTextFromInterval(m.of(e.tokenIndex,t.tokenIndex))}consume(){if(this.LA(1)===r.EOF)throw new Error("cannot consume EOF");this.lastToken=this.tokens[this.p],this.p===this.n-1&&0===this.numMarkers&&(this.n=0,this.p=-1,this.lastTokenBufferStart=this.lastToken),this.p++,this.currentTokenIndex++,this.sync(1)}mark(){0===this.numMarkers&&(this.lastTokenBufferStart=this.lastToken);const e=-this.numMarkers-1;return this.numMarkers++,e}release(e){if(e!==-this.numMarkers)throw new Error("release() called with an invalid marker.");this.numMarkers--,0===this.numMarkers&&(this.p>0&&(this.tokens.copyWithin(0,this.p,this.n),this.n=this.n-this.p,this.p=0),this.lastTokenBufferStart=this.lastToken)}get index(){return this.currentTokenIndex}seek(e){if(e===this.currentTokenIndex)return;e>this.currentTokenIndex&&(this.sync(e-this.currentTokenIndex),e=Math.min(e,this.getBufferStartIndex()+this.n-1));const t=this.getBufferStartIndex(),i=e-t;if(i<0)throw new Error("cannot seek to negative index "+e);if(i>=this.n)throw new Error("seek to index outside buffer: "+e+" not in "+t+".."+(t+this.n));this.p=i,this.currentTokenIndex=e,0===this.p?this.lastToken=this.lastTokenBufferStart:this.lastToken=this.tokens[this.p-1]}get size(){throw new Error("Unbuffered stream cannot know its size")}getSourceName(){return this.tokenSource.sourceName}setLine(e){this.tokenSource.line=e}setColumn(e){this.tokenSource.column=e}sync(e){const t=this.p+e-1-this.n+1;t>0&&this.fill(t)}fill(e){for(let t=0;t<e;t++){if(this.n>0&&this.tokens[this.n-1].type===r.EOF)return t;const e=this.tokenSource.nextToken();this.add(e)}return e}add(e){this.n>=this.tokens.length&&(this.tokens.length=2*this.tokens.length),Et(e)&&e.setTokenIndex(this.getBufferStartIndex()+this.n),this.tokens[this.n++]=e}getBufferStartIndex(){return this.currentTokenIndex-this.p}},Object.defineProperty),ri=(e,t)=>ni(e,"name",{value:t,configurable:!0}),oi=class{static{ri(this,"BaseSymbol")}name;context;modifiers=new Set;visibility=0;#v;constructor(e=""){this.name=e}get parent(){return this.#v}get firstSibling(){if(this.#v)return this.#v?.firstChild}get previousSibling(){if(this.#v)return this.#v?this.#v.previousSiblingOf(this):this}get nextSibling(){return this.#v?.nextSiblingOf(this)}get lastSibling(){return this.#v?.lastChild}get next(){return this.#v?.nextOf(this)}get root(){let e=this.#v;for(;e;){if(!e.parent||this.isSymbolTable(e.parent))return e;e=e.parent}return e}get symbolTable(){if(this.isSymbolTable(this))return this;let e=this.#v;for(;e;){if(this.isSymbolTable(e))return e;e=e.parent}}get symbolPath(){const e=[];let t=this;for(;t&&(e.push(t),t.parent);)t=t.parent;return e}setParent(e){this.#v=e}removeFromParent(){this.#v?.removeSymbol(this),this.#v=void 0}async resolve(e,t=!1){return this.#v?.resolve(e,t)}resolveSync(e,t=!1){return this.#v?.resolveSync(e,t)}getParentOfType(e){let t=this.#v;for(;t;){if(t instanceof e)return t;t=t.parent}}qualifiedName(e=".",t=!1,i=!1){if(!i&&0===this.name.length)return"";let s=0===this.name.length?"<anonymous>":this.name,n=this.#v;for(;n&&((i||n.name.length>0)&&(s=(0===n.name.length?"<anonymous>":n.name)+e+s),t&&n.parent);)n=n.parent;return s}isSymbolTable(e){return void 0!==e.info}},ai=(class extends oi{static{ri(this,"ArrayType")}elementType;size;referenceKind;constructor(e,t,i,s=0){super(e),this.referenceKind=t,this.elementType=i,this.size=s}get baseTypes(){return[]}get kind(){return 9}get reference(){return this.referenceKind}},class extends Error{static{ri(this,"DuplicateSymbolError")}}),ci=class e extends oi{static{ri(this,"ScopedSymbol")}#C=[];#E=new Map;constructor(e=""){super(e)}get directScopes(){return this.getSymbolsOfType(e)}get children(){return this.#C}get firstChild(){if(this.#C.length>0)return this.#C[0]}get lastChild(){if(this.#C.length>0)return this.#C[this.#C.length-1]}clear(){this.#C=[],this.#E.clear()}addSymbol(e){e.removeFromParent();const t=this.symbolTable,i=this.#E.get(e.name);if(t&&t.options.allowDuplicateSymbols)this.#E.set(e.name,void 0===i?1:i+1);else{if(void 0!==i)throw new ai("Attempt to add duplicate symbol '"+(e.name??"<anonymous>")+"'");this.#E.set(e.name,1);if(this.#C.indexOf(e)>-1)throw new ai("Attempt to add duplicate symbol '"+(e.name??"<anonymous>")+"'")}this.#C.push(e),e.setParent(this)}removeSymbol(e){const t=this.#C.indexOf(e);if(t>-1){this.#C.splice(t,1),e.setParent(void 0);const i=this.#E.get(e.name);void 0!==i&&(1===i?this.#E.delete(e.name):this.#E.set(e.name,i-1))}}async getNestedSymbolsOfType(t){const i=[],s=[];this.#C.forEach((n=>{n instanceof t&&i.push(n),n instanceof e&&s.push(n.getNestedSymbolsOfType(t))}));return(await Promise.all(s)).forEach((e=>{i.push(...e)})),i}getNestedSymbolsOfTypeSync(t){const i=[];return this.#C.forEach((s=>{s instanceof t&&i.push(s),s instanceof e&&i.push(...s.getNestedSymbolsOfTypeSync(t))})),i}async getAllNestedSymbols(t){const i=[],s=[];this.#C.forEach((n=>{t&&n.name!==t||i.push(n),n instanceof e&&s.push(n.getAllNestedSymbols(t))}));return(await Promise.all(s)).forEach((e=>{i.push(...e)})),i}getAllNestedSymbolsSync(t){const i=[];return this.#C.forEach((s=>{t&&s.name!==t||i.push(s),s instanceof e&&i.push(...s.getAllNestedSymbolsSync(t))})),i}getSymbolsOfType(e){return new Promise((t=>{const i=[];this.#C.forEach((t=>{t instanceof e&&i.push(t)})),t(i)}))}async getAllSymbols(e,t=!1){const i=[];for(const s of this.#C)if(s instanceof e&&i.push(s),this.isNamespace(s)){const t=await s.getAllSymbols(e,!0);i.push(...t)}if(!t&&this.parent){const t=await this.getAllSymbols(e,!0);i.push(...t)}return i}getAllSymbolsSync(e,t=!1){const i=[];for(const s of this.#C)if(s instanceof e&&i.push(s),this.isNamespace(s)){const t=s.getAllSymbolsSync(e,!0);i.push(...t)}if(!t&&this.parent){const t=this.getAllSymbolsSync(e,!0);i.push(...t)}return i}async resolve(e,t=!1){return new Promise((i=>{for(const t of this.#C)if(t.name===e)return void i(t);t||!this.parent?i(void 0):i(this.parent.resolve(e,!1))}))}resolveSync(e,t=!1){for(const i of this.#C)if(i.name===e)return i;if(!t&&this.parent)return this.parent.resolveSync(e,!1)}symbolFromPath(t,i="."){const s=t.split(i);let n=0;s[0]!==this.name&&0!==s[0].length||++n;let r=this;for(;n<s.length;){if(!(r instanceof e))return;const t=r.children.find((e=>e.name===s[n]));if(!t)return;r=t,++n}return r}indexOfChild(e){return this.#C.findIndex((t=>t===e))}nextSiblingOf(e){const t=this.indexOfChild(e);if(!(-1===t||t>=this.#C.length-1))return this.#C[t+1]}previousSiblingOf(e){const t=this.indexOfChild(e);if(!(t<1))return this.#C[t-1]}nextOf(t){if(!t.parent)return;if(t.parent!==this)return t.parent.nextOf(t);if(t instanceof e&&t.children.length>0)return t.children[0];const i=this.nextSiblingOf(t);return i||this.parent.nextOf(this)}isNamespace(e){return void 0!==e.inline&&void 0!==e.attributes}},li=(class extends ci{static{ri(this,"BlockSymbol")}},class extends oi{static{ri(this,"TypedSymbol")}type;constructor(e,t){super(e),this.type=t}}),hi=class extends li{static{ri(this,"VariableSymbol")}value;constructor(e,t,i){super(e,i),this.value=t}},di=class extends hi{static{ri(this,"FieldSymbol")}setter;getter},ui=class extends hi{static{ri(this,"ParameterSymbol")}},gi=class extends ci{static{ri(this,"RoutineSymbol")}returnType;constructor(e,t){super(e),this.returnType=t}getVariables(e=!0){return this.getSymbolsOfType(hi)}getParameters(e=!0){return this.getSymbolsOfType(ui)}},pi=class extends gi{static{ri(this,"MethodSymbol")}methodFlags=0},mi=(class extends ci{static{ri(this,"ClassSymbol")}isStruct=!1;reference=0;extends;implements;constructor(e,t,i){super(e),this.extends=t,this.implements=i}get baseTypes(){return this.extends}get kind(){return 7}getMethods(e=!1){return this.getSymbolsOfType(pi)}getFields(e=!1){return this.getSymbolsOfType(di)}},class e{static{ri(this,"FundamentalType")}static integerType=new e("int",1,3);static floatType=new e("float",2,3);static stringType=new e("string",4,3);static boolType=new e("bool",6,3);name;typeKind;referenceKind;constructor(e,t=0,i=0){this.name=e,this.typeKind=t,this.referenceKind=i}get baseTypes(){return[]}get kind(){return this.typeKind}get reference(){return this.referenceKind}},class extends ci{static{ri(this,"InterfaceSymbol")}reference=0;extends;constructor(e,t){super(e),this.extends=t}get baseTypes(){return this.extends}get kind(){return 8}getMethods(e=!1){return this.getSymbolsOfType(pi)}getFields(e=!1){return this.getSymbolsOfType(di)}},class extends li{static{ri(this,"LiteralSymbol")}value;constructor(e,t,i){super(e,i),this.value=t}},class extends ci{static{ri(this,"NamespaceSymbol")}inline;attributes;constructor(e,t=!1,i=[]){super(e),this.inline=t,this.attributes=i}}),fi=(class extends oi{static{ri(this,"TypeAlias")}targetType;constructor(e,t){super(e),this.targetType=t}get baseTypes(){return[this.targetType]}get kind(){return 12}get reference(){return 0}},ri(((e,t)=>{if(!e||!t)return[];let i;for(i=0;i<Math.min(e.length,t.length)&&e[i]===t[i];i++);return e.slice(0,i)}),"longestCommonPrefix")),_i=class{static{ri(this,"CandidatesCollection")}tokens=new Map;rules=new Map},vi=class{static{ri(this,"FollowSetWithPath")}intervals;path=[];following=[]},Ci=class e{static{ri(this,"CodeCompletionCore")}static followSetsByATN=new Map;static atnStateTypeMap=["invalid","basic","rule start","block start","plus block start","star block start","token start","rule stop","block end","star loop back","star loop entry","plus loop back","loop end"];showResult=!1;showDebugOutput=!1;debugOutputWithTransitions=!1;showRuleStack=!1;ignoredTokens;preferredRules;translateRulesTopDown=!1;parser;atn;vocabulary;ruleNames;tokens;precedenceStack;tokenStartIndex=0;statesProcessed=0;shortcutMap=new Map;candidates=new _i;constructor(e){this.parser=e,this.atn=e.atn,this.vocabulary=e.vocabulary,this.ruleNames=e.ruleNames,this.ignoredTokens=new Set,this.preferredRules=new Set}collectCandidates(e,t){this.shortcutMap.clear(),this.candidates.rules.clear(),this.candidates.tokens.clear(),this.statesProcessed=0,this.precedenceStack=[],this.tokenStartIndex=t?.start?t.start.tokenIndex:0;const i=this.parser.tokenStream;this.tokens=[];let s=this.tokenStartIndex;for(;;){const t=i.get(s++);if(!t)break;if(t.channel===r.DEFAULT_CHANNEL&&(this.tokens.push(t),t.tokenIndex>=e||t.type===r.EOF))break;if(t.type===r.EOF)break}const n=t?t.ruleIndex:0;if(this.processRule(this.atn.ruleToStartState[n],0,[],0,0),this.showResult){console.log(`States processed: ${this.statesProcessed}`),console.log("\n\nCollected rules:\n");for(const t of this.candidates.rules){let e="";for(const i of t[1].ruleList)e+=this.ruleNames[i]+" ";console.log(this.ruleNames[t[0]]+", path: ",e)}const e=new Set;for(const t of this.candidates.tokens){let i=this.vocabulary.getDisplayName(t[0])??"";for(const e of t[1])i+=" "+this.vocabulary.getDisplayName(e);e.add(i)}console.log("\n\nCollected tokens:\n");for(const t of e)console.log(t);console.log("\n\n")}return this.candidates}checkPredicate(e){return e.getPredicate().evaluate(this.parser,W.empty)}translateStackToRuleIndex(e){if(0===this.preferredRules.size)return!1;if(this.translateRulesTopDown){for(let t=e.length-1;t>=0;t--)if(this.translateToRuleIndex(t,e))return!0}else for(let t=0;t<e.length;t++)if(this.translateToRuleIndex(t,e))return!0;return!1}translateToRuleIndex(e,t){const{ruleIndex:i,startTokenIndex:s}=t[e];if(this.preferredRules.has(i)){const n=t.slice(0,e).map((({ruleIndex:e})=>e));let r=!0;for(const e of this.candidates.rules)if(e[0]===i&&e[1].ruleList.length===n.length&&n.every(((t,i)=>t===e[1].ruleList[i]))){r=!1;break}return r&&(this.candidates.rules.set(i,{startTokenIndex:s,ruleList:n}),this.showDebugOutput&&console.log("=====> collected: ",this.ruleNames[i])),!0}return!1}getFollowingTokens(e){const t=[],i=[e.target];for(;i.length>0;){const e=i.pop();e&&e.transitions.forEach((e=>{if(e.transitionType===I.ATOM)if(e.isEpsilon)i.push(e.target);else{const s=e.label.toArray();1!==s.length||this.ignoredTokens.has(s[0])||(t.push(s[0]),i.push(e.target))}}))}return t}determineFollowSets(e,t){const i=[],s=this.collectFollowSets(e,t,i,[],[]),n=new _;for(const r of i)n.addSet(r.intervals);return{sets:i,isExhaustive:s,combined:n}}collectFollowSets(e,t,i,s,n){if(s.find((t=>t===e)))return!0;if(s.push(e),e===t||e.constructor.stateType===x.RULE_STOP)return s.pop(),!1;let o=!0;for(const a of e.transitions)if(a.transitionType===I.RULE){const e=a;if(-1!==n.indexOf(e.target.ruleIndex))continue;n.push(e.target.ruleIndex);const r=this.collectFollowSets(a.target,t,i,s,n);if(n.pop(),!r){const r=this.collectFollowSets(e.followState,t,i,s,n);o&&=r}}else if(a.transitionType===I.PREDICATE){if(this.checkPredicate(a)){const e=this.collectFollowSets(a.target,t,i,s,n);o&&=e}}else if(a.isEpsilon){const e=this.collectFollowSets(a.target,t,i,s,n);o&&=e}else if(a.transitionType===I.WILDCARD){const e=new vi;e.intervals=_.of(r.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType),e.path=n.slice(),i.push(e)}else{let e=a.label;if(e&&e.length>0){a.transitionType===I.NOT_SET&&(e=e.complement(r.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType));const t=new vi;t.intervals=e??new _,t.path=n.slice(),t.following=this.getFollowingTokens(a),i.push(t)}}return s.pop(),o}processRule(t,i,s,n,o){let a=this.shortcutMap.get(t.ruleIndex);if(a){if(a.has(i))return this.showDebugOutput&&console.log("=====> shortcut"),a.get(i)}else a=new Map,this.shortcutMap.set(t.ruleIndex,a);const c=new Set;let l=e.followSetsByATN.get(this.parser.constructor.name);l||(l=new Map,e.followSetsByATN.set(this.parser.constructor.name,l));let h=l.get(t.stateNumber);if(!h){const e=this.atn.ruleToStopState[t.ruleIndex];h=this.determineFollowSets(t,e),l.set(t.stateNumber,h)}const d=this.tokens[i].tokenIndex;if(s.push({startTokenIndex:d,ruleIndex:t.ruleIndex}),i>=this.tokens.length-1){if(this.preferredRules.has(t.ruleIndex))this.translateStackToRuleIndex(s);else for(const e of h.sets){const t=s.slice(),i=e.path.map((e=>({startTokenIndex:d,ruleIndex:e})));if(t.push(...i),!this.translateStackToRuleIndex(t))for(const s of e.intervals.toArray())this.ignoredTokens.has(s)||(this.showDebugOutput&&console.log("=====> collected: ",this.vocabulary.getDisplayName(s)),this.candidates.tokens.has(s)?this.candidates.tokens.get(s)!==e.following&&this.candidates.tokens.set(s,[]):this.candidates.tokens.set(s,e.following))}return h.isExhaustive||c.add(i),s.pop(),c}{const e=this.tokens[i].type;if(h.isExhaustive&&!h.combined.contains(e))return s.pop(),c}t.isPrecedenceRule&&this.precedenceStack.push(n);const u=[];let g;for(u.push({state:t,tokenListIndex:i});u.length>0;){g=u.pop(),++this.statesProcessed;const e=this.tokens[g.tokenListIndex].type,t=g.tokenListIndex>=this.tokens.length-1;if(this.showDebugOutput&&(this.printDescription(o,g.state,this.generateBaseDescription(g.state),g.tokenListIndex),this.showRuleStack&&this.printRuleState(s)),g.state.constructor.stateType===x.RULE_STOP){c.add(g.tokenListIndex);continue}const i=g.state.transitions;for(const n of i)switch(n.transitionType){case I.RULE:{const e=n,t=this.processRule(n.target,g.tokenListIndex,s,e.precedence,o+1);for(const i of t)u.push({state:n.followState,tokenListIndex:i});break}case I.PREDICATE:this.checkPredicate(n)&&u.push({state:n.target,tokenListIndex:g.tokenListIndex});break;case I.PRECEDENCE:n.precedence>=this.precedenceStack[this.precedenceStack.length-1]&&u.push({state:n.target,tokenListIndex:g.tokenListIndex});break;case I.WILDCARD:if(t){if(!this.translateStackToRuleIndex(s))for(const e of _.of(r.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType).toArray())this.ignoredTokens.has(e)||this.candidates.tokens.set(e,[])}else u.push({state:n.target,tokenListIndex:g.tokenListIndex+1});break;default:{if(n.isEpsilon){u.push({state:n.target,tokenListIndex:g.tokenListIndex});continue}let i=n.label;if(i&&i.length>0)if(n.transitionType===I.NOT_SET&&(i=i.complement(r.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType)),t){if(!this.translateStackToRuleIndex(s)){const e=i.toArray(),t=1===e.length;for(const i of e)if(!this.ignoredTokens.has(i)){this.showDebugOutput&&console.log("=====> collected: ",this.vocabulary.getDisplayName(i));const e=t?this.getFollowingTokens(n):[];this.candidates.tokens.has(i)?this.candidates.tokens.set(i,fi(e,this.candidates.tokens.get(i))):this.candidates.tokens.set(i,e)}}}else i.contains(e)&&(this.showDebugOutput&&console.log("=====> consumed: ",this.vocabulary.getDisplayName(e)),u.push({state:n.target,tokenListIndex:g.tokenListIndex+1}))}}}return s.pop(),t.isPrecedenceRule&&this.precedenceStack.pop(),a.set(i,c),c}generateBaseDescription(t){return`[${t.stateNumber===x.INVALID_STATE_NUMBER?"Invalid":t.stateNumber} ${e.atnStateTypeMap[t.constructor.stateType]}] in ${this.ruleNames[t.ruleIndex]}`}printDescription(t,i,s,n){const r=" ".repeat(t);let o=r,a="";if(this.debugOutputWithTransitions)for(const c of i.transitions){let t="";const i=c.label?c.label.toArray():[];if(i.length>2)t=this.vocabulary.getDisplayName(i[0])+" .. "+this.vocabulary.getDisplayName(i[i.length-1]);else for(const e of i)t.length>0&&(t+=", "),t+=this.vocabulary.getDisplayName(e);0===t.length&&(t="\u03b5");const s=e.atnStateTypeMap[c.target.constructor.stateType];a+=`\n${r}\t(${t}) [${c.target.stateNumber} ${s}] in ${this.ruleNames[c.target.ruleIndex]}`}n>=this.tokens.length-1?o+=`<<${this.tokenStartIndex+n}>> `:o+=`<${this.tokenStartIndex+n}> `,console.log(o+"Current state: "+s+a)}printRuleState(e){if(0!==e.length)for(const t of e)console.log(this.ruleNames[t.ruleIndex]);else console.log("<empty stack>")}},Ei=class extends ci{constructor(e,t){super(e),this.options=t}static{ri(this,"SymbolTable")}dependencies=new Set;get info(){return{dependencyCount:this.dependencies.size,symbolCount:this.children.length}}clear(){super.clear(),this.dependencies.clear()}addDependencies(...e){e.forEach((e=>{this.dependencies.add(e)}))}removeDependency(e){this.dependencies.has(e)&&this.dependencies.delete(e)}addNewSymbolOfType(e,t,...i){const s=new e(...i);return t&&t!==this?t.addSymbol(s):this.addSymbol(s),s}async addNewNamespaceFromPath(e,t,i="."){const s=t.split(i);let n=0,r=void 0===e?this:e;for(;n<s.length-1;){let e=await r.resolve(s[n],!0);void 0===e&&(e=this.addNewSymbolOfType(mi,r,s[n])),r=e,++n}return this.addNewSymbolOfType(mi,r,s[s.length-1])}addNewNamespaceFromPathSync(e,t,i="."){const s=t.split(i);let n=0,r=void 0===e?this:e;for(;n<s.length-1;){let e=r.resolveSync(s[n],!0);void 0===e&&(e=this.addNewSymbolOfType(mi,r,s[n])),r=e,++n}return this.addNewSymbolOfType(mi,r,s[s.length-1])}async getAllSymbols(e,t=!1){const i=await super.getAllSymbols(e,t);if(!t){(await Promise.all([...this.dependencies].map((i=>i.getAllSymbols(e,t))))).forEach((e=>{i.push(...e)}))}return i}getAllSymbolsSync(e,t=!1){const i=super.getAllSymbolsSync(e,t);return t||this.dependencies.forEach((s=>{i.push(...s.getAllSymbolsSync(e,t))})),i}async symbolWithContext(e){const t=ri((i=>{if(i.context===e)return i;if(i instanceof ci)for(const e of i.children){const i=t(e);if(i)return i}}),"findRecursive");let i=await this.getAllSymbols(oi);for(const s of i){const e=t(s);if(e)return e}for(const s of this.dependencies){i=await s.getAllSymbols(oi);for(const e of i){const i=t(e);if(i)return i}}}symbolWithContextSync(e){const t=ri((i=>{if(i.context===e)return i;if(i instanceof ci)for(const e of i.children){const i=t(e);if(i)return i}}),"findRecursive");let i=this.getAllSymbolsSync(oi);for(const s of i){const e=t(s);if(e)return e}for(const s of this.dependencies){i=s.getAllSymbolsSync(oi);for(const e of i){const i=t(e);if(i)return i}}}async resolve(e,t=!1){let i=await super.resolve(e,t);if(!i&&!t)for(const s of this.dependencies)if(i=await s.resolve(e,!1),i)return i;return i}resolveSync(e,t=!1){let i=super.resolveSync(e,t);if(!i&&!t)for(const s of this.dependencies)if(i=s.resolveSync(e,!1),i)return i;return i}},bi=(Object.create,Object.defineProperty),Si=(Object.getOwnPropertyDescriptor,Object.getOwnPropertyNames,Object.getPrototypeOf,Object.prototype.hasOwnProperty,(e,t)=>bi(e,"name",{value:t,configurable:!0})),yi=/[\w]$/,wi=/\r\n|\n|\r/g;function Ri(e,t){let i=e.column,s=e.column+(e.text?.length||0),n=e.line;return{startColumn:i,startLine:n,endColumn:s,endLine:e.type===t&&e.text?n+(e.text.match(wi)?.length||0):n}}function Li(e,t,i,s){let n=t.column-1;for(let r=0;r<e.size;r++){let o=e.get(r),{startColumn:a,startLine:c,endColumn:l,endLine:h}=Ri(o,i);if(h>t.line||c===t.line&&l>n)return s?r:r>0&&c===t.line&&a===n&&yi.test(e.get(r-1).text||"")?r-1:e.get(r).type===i?r+1:r}}function Ti(e,t){let i=e.split(wi),s=e.match(wi),n="";s&&(n=s[0]);let r=0;return i.reduce(((e,i,s)=>(t.line-1===s&&(r=e.length?e.length+t.column:t.column-1),0===s?i:e+n+i)),""),r}function xi(e,t){return e===t.startTokenIndex}function ki(e,t){let i=e.slice(0,t-1),s=e.slice(t-1),n=i.lastIndexOf(";"),r=s.indexOf(";"),o=n>-1?n+1:0,a=r>-1?r+i.length:e.length;return{statement:e.slice(o,a),cursorIndex:t-o}}Si(Ri,"getTokenPosition"),Si(Li,"findCursorTokenIndex"),Si(Ti,"getCursorIndex"),Si(xi,"isStartingToWriteRule"),Si(ki,"getCurrentStatement");var Ai="(\\s|\r\n|\n|\r)+",Ni=new RegExp(`^(${Ai})?explain${Ai}$`),Ii=new RegExp(`^(${Ai})?\\S+${Ai}`);function Oi(e,t){let i=Ti(e,t),s=ki(e,i),n=s.statement.slice(0,s.cursorIndex).toLowerCase();return!(0!==i&&n.match(Ii)&&!n.match(Ni))}function Di(e,t,i){let s=new e(ft.fromString(i)),n=new t(new St(s));return n.removeErrorListeners(),n}function Mi(e,t){return new e(ft.fromString(t))}Si(Oi,"shouldSuggestTemplates"),Si(Di,"createParser"),Si(Mi,"createLexer");var Pi,Fi=class{static{Si(this,"SqlErrorListener")}constructor(e){this.errors=[],this.whitespaceToken=e}syntaxError(e,t,i,s,n){if(t){let e=Ri(t,this.whitespaceToken);this.errors.push({message:n,...e})}else this.errors.push({message:n,startLine:i,startColumn:s,endLine:i,endColumn:s})}reportAmbiguity(){}reportAttemptingFullContext(){}reportContextSensitivity(){}},Ui=((Pi=Ui||{}).Autocomplete="autocomplete",Pi.Tokens="tokens",Pi);function Hi(e,t,i,s,n,r,o,a){let c=Di(t,i,e),{tokenStream:l}=c,h=new Fi(s);c.removeErrorListeners(),c.addErrorListener(h),a(c);let d=Wi(c,l,o,r);return d.length?{statementPositions:d,strategy:"autocomplete"}:{statementPositions:Bi(l,n,r),strategy:"tokens"}}function Bi(e,t,i){let s=0,n=!1,r=e.size-2,o=[];for(let a=0;a<=r;a++){let c=e.get(a),l=c.type===i,h=t.includes(c.type);if(n||!h)if(n||(n=!0,s=c.start),l&&s===c.start)n=!1;else{if(l||a===r){let e=c.text?.length||0,t={startIndex:s,endIndex:c.start+e};o.push(t)}l&&(n=!1)}}return o}function Wi(e,t,i,s){let n=new Ci(e);n.preferredRules=new Set([i]);let r=t.get(t.size-2),o=[];for(;r?.tokenIndex>0;){let e,a=n.collectCandidates(r.tokenIndex).rules;!a.size&&r.type===s&&(a=n.collectCandidates(r.tokenIndex-1).rules);for(let[s,{startTokenIndex:n}]of a)if(s===i){e=t.get(n);break}if(!e)break;e.tokenIndex>r.tokenIndex?r=t.get(r.tokenIndex-1):(o.push({startIndex:e.start,endIndex:r.start+(r.text?.length||0)}),r=t.get(e.tokenIndex-1))}return o.reverse(),o}Si(Hi,"extractStatementPositionsFromQuery"),Si(Bi,"extractStatementsUsingTokens"),Si(Wi,"extractStatementsUsingAutocomplete");function Vi(e,t,i,s){let n=Mi(e,s),r=new Fi(i);n.removeErrorListeners(),n.addErrorListener(r);let o=[],a=!1;do{let e=n.nextToken();if(null===e||-1===e.type)a=!0;else{let i=t[e.type];i&&o.push({ruleName:i,startIndex:e.start,column:e.column,line:e.line,type:e.type,text:e.text})}}while(!a);return{tokens:o,errors:r.errors}}function zi(e,t,i,s,n){let r=Di(e,t,n),o=new Fi(i);return r.removeErrorListeners(),r.addErrorListener(o),s(r),{errors:o.errors}}Si(Vi,"tokenize"),Si(zi,"parseQueryWithoutCursor");var Gi=/^'(.*)'$/;function ji(e,t,i,s,n,r,o,a,c,l){let h=Di(e,t,a),{tokenStream:d}=h,u=new Fi(i);h.removeErrorListeners(),h.addErrorListener(u),r(h);let g=new Ci(h);g.ignoredTokens=s,g.preferredRules=n;let p=Li(d,c,i);if(void 0===p)throw new Error(`Could not find cursor token index for line: ${c.line}, column: ${c.column}`);let m=[],{tokens:f,rules:_}=g.collectCandidates(p,l);return f.forEach(((e,t)=>{let i=h.vocabulary.getLiteralName(t)?.replace(Gi,"$1")||h.vocabulary.getSymbolicName(t);if(!i)throw new Error(`Could not get name for token ${t}`);m.push({value:i})})),o({errors:u.errors,suggestKeywords:m},_,d,p,c,a)}function Ki(e){let t,i=e.split(wi);for(let h=0;h<i.length;h++)if(i[h]?.includes("|")){t=h;break}if(void 0===t)throw new Error(`Cursor not provided for query ${e}`);let s=i[t];if(!s)throw new Error(`Line ${t} not found`);let[n,r,...o]=e.split("|"),[a,c,...l]=s.split("|");if(o.length>0||l.length>0)throw new Error(`Multiple cursors not allowed, but present in query ${e}`);if(void 0===n||void 0===r||void 0===a||void 0===c)throw new Error(`Cursor not provided for query ${e}`);return[n+r,{line:t+1,column:a.length+1}]}Si(ji,"parseQuery"),Si(Ki,"separateQueryAndCursor");var Yi=class extends li{static{Si(this,"TableSymbol")}constructor(e,t,i,s){super(e,s),this.name=e,this.alias=t,this.columns=i}},qi=class extends hi{static{Si(this,"VariableSymbol")}};function $i(e=[]){let t=e.reduce(((e,t)=>{let i=e[t.name]?.aliases??new Set;return t.alias&&i.add(t.alias),e[t.name]={aliases:i,columns:t.columns},e}),{});return Object.keys(t).reduce(((e,i)=>{let s=t[i]?.aliases,n=t[i]?.columns;return s&&s.size>0?s?.forEach((t=>{e.push({name:i,alias:t,columns:n})})):e.push({name:i,columns:n}),e}),[])}function Qi(e){return $i(e.symbolTable.getNestedSymbolsOfTypeSync(Yi))}Si($i,"getUniqueTableSuggestions"),Si(Qi,"getTablesFromSymbolTable");var Xi=class extends li{static{Si(this,"ColumnAliasSymbol")}constructor(e,t){super(e,t),this.name=e}};function Zi(e){return e.symbolTable.getNestedSymbolsOfTypeSync(Xi).map((({name:e})=>({name:e})))}function Ji(e,t){let i=t.symbolWithContextSync(e);return i||(e.parent?Ji(e.parent,t):void 0)}function es(e,t,i){let s=t;for(;s<e.size;){let t=e.get(s);if(t.type===i.CLOSING_BRACKET||t.type===i.SEMICOLON)return{cursorIndex:t.start,tokenIndex:s};if(t.type===i.OPENING_BRACKET)return;s++}let n=e.size-1;return{cursorIndex:e.get(n).start,tokenIndex:n}}function ts(e,t,i){let s=e.get(e.size-1).start,n=t,r=!1;for(;n>=0&&n<e.size;){let s=e.get(n);if(s.type===i.OPENING_BRACKET||s.type===i.CLOSING_BRACKET||s.type===i.SEMICOLON){if(r)break;n=t,r=!0}if(s.type===i.FROM){let r=es(e,t,i);if(!r)break;let o=is(e,n,r.tokenIndex,i),a=o?{start:o,end:r.cursorIndex}:void 0,c=ss(e,i,r.tokenIndex,i.SELECT),l=c?{start:c.start,end:r.cursorIndex}:void 0;return{start:s.start,end:r.cursorIndex,type:"from",joinTableQueryPosition:a,selectTableQueryPosition:l}}r?n++:n--,-1===n&&(n=t,r=!0)}for(n=t;n>=0;){let t=e.get(n);if(t.type===i.SEMICOLON)return;if(t.type===i.ALTER&&!ss(e,i,n,i.ALTER))return{start:t.start,end:s,type:"alter"};if(t.type===i.INSERT||t.type===i.UPSERT)return{start:t.start,end:s,type:"insert"};if(t.type===i.UPDATE)return{start:t.start,end:s,type:"update"};n--}}function is(e,t,i,s){let n=t;for(;n<i;){let t=e.get(n);if(t.type===s.JOIN)return t.stop+1;n++}}function ss(e,t,i,s){let n=i-1;for(;n>-1;){let i=e.get(n);if(i.type===t.SEMICOLON)return;if(i.type===s)return i;n--}}Si(Zi,"getColumnAliasesFromSymbolTable"),Si(Ji,"getScope"),Si(es,"getClosingBracketIndex"),Si(ts,"getTableQueryPosition"),Si(is,"getJoinIndex"),Si(ss,"getPreviousToken"),Si((function(e,t,i,s,n,r,o,a,c){let l=Li(r,o,s.SPACE,!0);if(!l)throw new Error(`Could not find actualCursorTokenIndex at Ln ${o.line}, Col ${o.column}`);let h={},d=ts(r,l,s);if(d){let s=n(Di(e,t,a.slice(d.start,d.end)),d.type);if(i.visit(s),c&&d.joinTableQueryPosition){let s=n(Di(e,t,a.slice(d.joinTableQueryPosition.start,d.joinTableQueryPosition.end)),"from");i.visit(s)}if(d.selectTableQueryPosition){let s=n(Di(e,t,a.slice(d.selectTableQueryPosition.start,d.selectTableQueryPosition.end)),"select");i.visit(s)}let r=Qi(i);r.length&&(h.tableContextSuggestion={tables:r});let o=Zi(i);o.length&&(h.suggestColumnAliases=o.map((({name:e})=>({name:e}))))}return h}),"getContextSuggestions");var ns=class e extends Je{static{Si(this,"YQLLexer")}static{this.EQUALS=1}static{this.EQUALS2=2}static{this.NOT_EQUALS=3}static{this.NOT_EQUALS2=4}static{this.LESS=5}static{this.LESS_OR_EQ=6}static{this.GREATER=7}static{this.GREATER_OR_EQ=8}static{this.SHIFT_LEFT=9}static{this.ROT_LEFT=10}static{this.AMPERSAND=11}static{this.PIPE=12}static{this.DOUBLE_PIPE=13}static{this.STRUCT_OPEN=14}static{this.STRUCT_CLOSE=15}static{this.PLUS=16}static{this.MINUS=17}static{this.TILDA=18}static{this.ASTERISK=19}static{this.SLASH=20}static{this.PERCENT=21}static{this.SEMICOLON=22}static{this.DOT=23}static{this.COMMA=24}static{this.LPAREN=25}static{this.RPAREN=26}static{this.QUESTION=27}static{this.COLON=28}static{this.COMMAT=29}static{this.DOLLAR=30}static{this.LBRACE_CURLY=31}static{this.RBRACE_CURLY=32}static{this.CARET=33}static{this.NAMESPACE=34}static{this.ARROW=35}static{this.RBRACE_SQUARE=36}static{this.LBRACE_SQUARE=37}static{this.ABORT=38}static{this.ACTION=39}static{this.ADD=40}static{this.AFTER=41}static{this.ALL=42}static{this.ALTER=43}static{this.ANALYZE=44}static{this.AND=45}static{this.ANSI=46}static{this.ANY=47}static{this.ARRAY=48}static{this.AS=49}static{this.ASC=50}static{this.ASSUME=51}static{this.ASYMMETRIC=52}static{this.ASYNC=53}static{this.AT=54}static{this.ATTACH=55}static{this.ATTRIBUTES=56}static{this.AUTOINCREMENT=57}static{this.AUTOMAP=58}static{this.BACKUP=59}static{this.BATCH=60}static{this.COLLECTION=61}static{this.BEFORE=62}static{this.BEGIN=63}static{this.BERNOULLI=64}static{this.BETWEEN=65}static{this.BITCAST=66}static{this.BY=67}static{this.CALLABLE=68}static{this.CASCADE=69}static{this.CASE=70}static{this.CAST=71}static{this.CHANGEFEED=72}static{this.CHECK=73}static{this.CLASSIFIER=74}static{this.COLLATE=75}static{this.COLUMN=76}static{this.COLUMNS=77}static{this.COMMIT=78}static{this.COMPACT=79}static{this.CONDITIONAL=80}static{this.CONFLICT=81}static{this.CONNECT=82}static{this.CONSTRAINT=83}static{this.CONSUMER=84}static{this.COVER=85}static{this.CREATE=86}static{this.CROSS=87}static{this.CUBE=88}static{this.CURRENT=89}static{this.CURRENT_DATE=90}static{this.CURRENT_TIME=91}static{this.CURRENT_TIMESTAMP=92}static{this.DATA=93}static{this.DATABASE=94}static{this.DECIMAL=95}static{this.DECLARE=96}static{this.DEFAULT=97}static{this.DEFERRABLE=98}static{this.DEFERRED=99}static{this.DEFINE=100}static{this.DELETE=101}static{this.DESC=102}static{this.DESCRIBE=103}static{this.DETACH=104}static{this.DICT=105}static{this.DIRECTORY=106}static{this.DISABLE=107}static{this.DISCARD=108}static{this.DISTINCT=109}static{this.DO=110}static{this.DROP=111}static{this.EACH=112}static{this.ELSE=113}static{this.EMPTY=114}static{this.EMPTY_ACTION=115}static{this.ENCRYPTED=116}static{this.END=117}static{this.ENUM=118}static{this.ERASE=119}static{this.ERROR=120}static{this.ESCAPE=121}static{this.EVALUATE=122}static{this.EXCEPT=123}static{this.EXCLUDE=124}static{this.EXCLUSION=125}static{this.EXCLUSIVE=126}static{this.EXISTS=127}static{this.EXPLAIN=128}static{this.EXPORT=129}static{this.EXTERNAL=130}static{this.FAIL=131}static{this.FALSE=132}static{this.FAMILY=133}static{this.FILTER=134}static{this.FIRST=135}static{this.FLATTEN=136}static{this.FLOW=137}static{this.FOLLOWING=138}static{this.FOR=139}static{this.FOREIGN=140}static{this.FROM=141}static{this.FULL=142}static{this.FUNCTION=143}static{this.GLOB=144}static{this.GLOBAL=145}static{this.GRANT=146}static{this.GROUP=147}static{this.GROUPING=148}static{this.GROUPS=149}static{this.HASH=150}static{this.HAVING=151}static{this.HOP=152}static{this.IF=153}static{this.IGNORE=154}static{this.ILIKE=155}static{this.IMMEDIATE=156}static{this.IMPORT=157}static{this.IN=158}static{this.INCREMENT=159}static{this.INCREMENTAL=160}static{this.INDEX=161}static{this.INDEXED=162}static{this.INHERITS=163}static{this.INITIAL=164}static{this.INITIALLY=165}static{this.INNER=166}static{this.INSERT=167}static{this.INSTEAD=168}static{this.INTERSECT=169}static{this.INTO=170}static{this.IS=171}static{this.ISNULL=172}static{this.JOIN=173}static{this.JSON_EXISTS=174}static{this.JSON_QUERY=175}static{this.JSON_VALUE=176}static{this.KEY=177}static{this.LAST=178}static{this.LEFT=179}static{this.LEGACY=180}static{this.LIKE=181}static{this.LIMIT=182}static{this.LIST=183}static{this.LOCAL=184}static{this.LOGIN=185}static{this.MANAGE=186}static{this.MATCH=187}static{this.MATCHES=188}static{this.MATCH_RECOGNIZE=189}static{this.MEASURES=190}static{this.MICROSECONDS=191}static{this.MILLISECONDS=192}static{this.MODIFY=193}static{this.NANOSECONDS=194}static{this.NATURAL=195}static{this.NEXT=196}static{this.NO=197}static{this.NOLOGIN=198}static{this.NOT=199}static{this.NOTNULL=200}static{this.NULL=201}static{this.NULLS=202}static{this.OBJECT=203}static{this.OF=204}static{this.OFFSET=205}static{this.OMIT=206}static{this.ON=207}static{this.ONE=208}static{this.ONLY=209}static{this.OPTION=210}static{this.OPTIONAL=211}static{this.OR=212}static{this.ORDER=213}static{this.OTHERS=214}static{this.OUTER=215}static{this.OVER=216}static{this.PARALLEL=217}static{this.PARTITION=218}static{this.PASSING=219}static{this.PASSWORD=220}static{this.PAST=221}static{this.PATTERN=222}static{this.PER=223}static{this.PERMUTE=224}static{this.PLAN=225}static{this.POOL=226}static{this.PRAGMA=227}static{this.PRECEDING=228}static{this.PRESORT=229}static{this.PRIMARY=230}static{this.PRIVILEGES=231}static{this.PROCESS=232}static{this.QUERY=233}static{this.QUEUE=234}static{this.RAISE=235}static{this.RANGE=236}static{this.REDUCE=237}static{this.REFERENCES=238}static{this.REGEXP=239}static{this.REINDEX=240}static{this.RELEASE=241}static{this.REMOVE=242}static{this.RENAME=243}static{this.REPEATABLE=244}static{this.REPLACE=245}static{this.REPLICATION=246}static{this.RESET=247}static{this.RESOURCE=248}static{this.RESPECT=249}static{this.RESTART=250}static{this.RESTORE=251}static{this.RESTRICT=252}static{this.RESULT=253}static{this.RETURN=254}static{this.RETURNING=255}static{this.REVERT=256}static{this.REVOKE=257}static{this.RIGHT=258}static{this.RLIKE=259}static{this.ROLLBACK=260}static{this.ROLLUP=261}static{this.ROW=262}static{this.ROWS=263}static{this.SAMPLE=264}static{this.SAVEPOINT=265}static{this.SCHEMA=266}static{this.SECONDS=267}static{this.SEEK=268}static{this.SELECT=269}static{this.SEMI=270}static{this.SET=271}static{this.SETS=272}static{this.SHOW=273}static{this.TSKIP=274}static{this.SEQUENCE=275}static{this.SOURCE=276}static{this.START=277}static{this.STREAM=278}static{this.STRUCT=279}static{this.SUBQUERY=280}static{this.SUBSET=281}static{this.SYMBOLS=282}static{this.SYMMETRIC=283}static{this.SYNC=284}static{this.SYSTEM=285}static{this.TABLE=286}static{this.TABLES=287}static{this.TABLESAMPLE=288}static{this.TABLESTORE=289}static{this.TAGGED=290}static{this.TEMP=291}static{this.TEMPORARY=292}static{this.THEN=293}static{this.TIES=294}static{this.TO=295}static{this.TOPIC=296}static{this.TRANSACTION=297}static{this.TRANSFER=298}static{this.TRIGGER=299}static{this.TRUE=300}static{this.TUPLE=301}static{this.TYPE=302}static{this.UNBOUNDED=303}static{this.UNCONDITIONAL=304}static{this.UNION=305}static{this.UNIQUE=306}static{this.UNKNOWN=307}static{this.UNMATCHED=308}static{this.UPDATE=309}static{this.UPSERT=310}static{this.USE=311}static{this.USER=312}static{this.USING=313}static{this.VACUUM=314}static{this.VALUES=315}static{this.VARIANT=316}static{this.VIEW=317}static{this.VIRTUAL=318}static{this.WHEN=319}static{this.WHERE=320}static{this.WINDOW=321}static{this.WITH=322}static{this.WITHOUT=323}static{this.WRAPPER=324}static{this.XOR=325}static{this.STRING_VALUE=326}static{this.ID_PLAIN=327}static{this.ID_QUOTED=328}static{this.DIGITS=329}static{this.INTEGER_VALUE=330}static{this.REAL=331}static{this.BLOB=332}static{this.WS=333}static{this.COMMENT=334}static{this.channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"]}static{this.literalNames=[null,"'='","'=='","'!='","'<>'","'<'","'<='","'>'","'>='","'<<'","'|<<'","'&'","'|'","'||'","'<|'","'|>'","'+'","'-'","'~'","'*'","'/'","'%'","';'","'.'","','","'('","')'","'?'","':'","'@'","'$'","'{'","'}'","'^'","'::'","'->'","']'","'['"]}static{this.symbolicNames=[null,"EQUALS","EQUALS2","NOT_EQUALS","NOT_EQUALS2","LESS","LESS_OR_EQ","GREATER","GREATER_OR_EQ","SHIFT_LEFT","ROT_LEFT","AMPERSAND","PIPE","DOUBLE_PIPE","STRUCT_OPEN","STRUCT_CLOSE","PLUS","MINUS","TILDA","ASTERISK","SLASH","PERCENT","SEMICOLON","DOT","COMMA","LPAREN","RPAREN","QUESTION","COLON","COMMAT","DOLLAR","LBRACE_CURLY","RBRACE_CURLY","CARET","NAMESPACE","ARROW","RBRACE_SQUARE","LBRACE_SQUARE","ABORT","ACTION","ADD","AFTER","ALL","ALTER","ANALYZE","AND","ANSI","ANY","ARRAY","AS","ASC","ASSUME","ASYMMETRIC","ASYNC","AT","ATTACH","ATTRIBUTES","AUTOINCREMENT","AUTOMAP","BACKUP","BATCH","COLLECTION","BEFORE","BEGIN","BERNOULLI","BETWEEN","BITCAST","BY","CALLABLE","CASCADE","CASE","CAST","CHANGEFEED","CHECK","CLASSIFIER","COLLATE","COLUMN","COLUMNS","COMMIT","COMPACT","CONDITIONAL","CONFLICT","CONNECT","CONSTRAINT","CONSUMER","COVER","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATA","DATABASE","DECIMAL","DECLARE","DEFAULT","DEFERRABLE","DEFERRED","DEFINE","DELETE","DESC","DESCRIBE","DETACH","DICT","DIRECTORY","DISABLE","DISCARD","DISTINCT","DO","DROP","EACH","ELSE","EMPTY","EMPTY_ACTION","ENCRYPTED","END","ENUM","ERASE","ERROR","ESCAPE","EVALUATE","EXCEPT","EXCLUDE","EXCLUSION","EXCLUSIVE","EXISTS","EXPLAIN","EXPORT","EXTERNAL","FAIL","FALSE","FAMILY","FILTER","FIRST","FLATTEN","FLOW","FOLLOWING","FOR","FOREIGN","FROM","FULL","FUNCTION","GLOB","GLOBAL","GRANT","GROUP","GROUPING","GROUPS","HASH","HAVING","HOP","IF","IGNORE","ILIKE","IMMEDIATE","IMPORT","IN","INCREMENT","INCREMENTAL","INDEX","INDEXED","INHERITS","INITIAL","INITIALLY","INNER","INSERT","INSTEAD","INTERSECT","INTO","IS","ISNULL","JOIN","JSON_EXISTS","JSON_QUERY","JSON_VALUE","KEY","LAST","LEFT","LEGACY","LIKE","LIMIT","LIST","LOCAL","LOGIN","MANAGE","MATCH","MATCHES","MATCH_RECOGNIZE","MEASURES","MICROSECONDS","MILLISECONDS","MODIFY","NANOSECONDS","NATURAL","NEXT","NO","NOLOGIN","NOT","NOTNULL","NULL","NULLS","OBJECT","OF","OFFSET","OMIT","ON","ONE","ONLY","OPTION","OPTIONAL","OR","ORDER","OTHERS","OUTER","OVER","PARALLEL","PARTITION","PASSING","PASSWORD","PAST","PATTERN","PER","PERMUTE","PLAN","POOL","PRAGMA","PRECEDING","PRESORT","PRIMARY","PRIVILEGES","PROCESS","QUERY","QUEUE","RAISE","RANGE","REDUCE","REFERENCES","REGEXP","REINDEX","RELEASE","REMOVE","RENAME","REPEATABLE","REPLACE","REPLICATION","RESET","RESOURCE","RESPECT","RESTART","RESTORE","RESTRICT","RESULT","RETURN","RETURNING","REVERT","REVOKE","RIGHT","RLIKE","ROLLBACK","ROLLUP","ROW","ROWS","SAMPLE","SAVEPOINT","SCHEMA","SECONDS","SEEK","SELECT","SEMI","SET","SETS","SHOW","TSKIP","SEQUENCE","SOURCE","START","STREAM","STRUCT","SUBQUERY","SUBSET","SYMBOLS","SYMMETRIC","SYNC","SYSTEM","TABLE","TABLES","TABLESAMPLE","TABLESTORE","TAGGED","TEMP","TEMPORARY","THEN","TIES","TO","TOPIC","TRANSACTION","TRANSFER","TRIGGER","TRUE","TUPLE","TYPE","UNBOUNDED","UNCONDITIONAL","UNION","UNIQUE","UNKNOWN","UNMATCHED","UPDATE","UPSERT","USE","USER","USING","VACUUM","VALUES","VARIANT","VIEW","VIRTUAL","WHEN","WHERE","WINDOW","WITH","WITHOUT","WRAPPER","XOR","STRING_VALUE","ID_PLAIN","ID_QUOTED","DIGITS","INTEGER_VALUE","REAL","BLOB","WS","COMMENT"]}static{this.modeNames=["DEFAULT_MODE"]}static{this.ruleNames=["EQUALS","EQUALS2","NOT_EQUALS","NOT_EQUALS2","LESS","LESS_OR_EQ","GREATER","GREATER_OR_EQ","SHIFT_LEFT","ROT_LEFT","AMPERSAND","PIPE","DOUBLE_PIPE","STRUCT_OPEN","STRUCT_CLOSE","PLUS","MINUS","TILDA","ASTERISK","SLASH","PERCENT","SEMICOLON","DOT","COMMA","LPAREN","RPAREN","QUESTION","COLON","COMMAT","DOLLAR","LBRACE_CURLY","RBRACE_CURLY","CARET","NAMESPACE","ARROW","RBRACE_SQUARE","LBRACE_SQUARE","BACKSLASH","QUOTE_DOUBLE","QUOTE_SINGLE","BACKTICK","DOUBLE_COMMAT","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","ABORT","ACTION","ADD","AFTER","ALL","ALTER","ANALYZE","AND","ANSI","ANY","ARRAY","AS","ASC","ASSUME","ASYMMETRIC","ASYNC","AT","ATTACH","ATTRIBUTES","AUTOINCREMENT","AUTOMAP","BACKUP","BATCH","COLLECTION","BEFORE","BEGIN","BERNOULLI","BETWEEN","BITCAST","BY","CALLABLE","CASCADE","CASE","CAST","CHANGEFEED","CHECK","CLASSIFIER","COLLATE","COLUMN","COLUMNS","COMMIT","COMPACT","CONDITIONAL","CONFLICT","CONNECT","CONSTRAINT","CONSUMER","COVER","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATA","DATABASE","DECIMAL","DECLARE","DEFAULT","DEFERRABLE","DEFERRED","DEFINE","DELETE","DESC","DESCRIBE","DETACH","DICT","DIRECTORY","DISABLE","DISCARD","DISTINCT","DO","DROP","EACH","ELSE","EMPTY","EMPTY_ACTION","ENCRYPTED","END","ENUM","ERASE","ERROR","ESCAPE","EVALUATE","EXCEPT","EXCLUDE","EXCLUSION","EXCLUSIVE","EXISTS","EXPLAIN","EXPORT","EXTERNAL","FAIL","FALSE","FAMILY","FILTER","FIRST","FLATTEN","FLOW","FOLLOWING","FOR","FOREIGN","FROM","FULL","FUNCTION","GLOB","GLOBAL","GRANT","GROUP","GROUPING","GROUPS","HASH","HAVING","HOP","IF","IGNORE","ILIKE","IMMEDIATE","IMPORT","IN","INCREMENT","INCREMENTAL","INDEX","INDEXED","INHERITS","INITIAL","INITIALLY","INNER","INSERT","INSTEAD","INTERSECT","INTO","IS","ISNULL","JOIN","JSON_EXISTS","JSON_QUERY","JSON_VALUE","KEY","LAST","LEFT","LEGACY","LIKE","LIMIT","LIST","LOCAL","LOGIN","MANAGE","MATCH","MATCHES","MATCH_RECOGNIZE","MEASURES","MICROSECONDS","MILLISECONDS","MODIFY","NANOSECONDS","NATURAL","NEXT","NO","NOLOGIN","NOT","NOTNULL","NULL","NULLS","OBJECT","OF","OFFSET","OMIT","ON","ONE","ONLY","OPTION","OPTIONAL","OR","ORDER","OTHERS","OUTER","OVER","PARALLEL","PARTITION","PASSING","PASSWORD","PAST","PATTERN","PER","PERMUTE","PLAN","POOL","PRAGMA","PRECEDING","PRESORT","PRIMARY","PRIVILEGES","PROCESS","QUERY","QUEUE","RAISE","RANGE","REDUCE","REFERENCES","REGEXP","REINDEX","RELEASE","REMOVE","RENAME","REPEATABLE","REPLACE","REPLICATION","RESET","RESOURCE","RESPECT","RESTART","RESTORE","RESTRICT","RESULT","RETURN","RETURNING","REVERT","REVOKE","RIGHT","RLIKE","ROLLBACK","ROLLUP","ROW","ROWS","SAMPLE","SAVEPOINT","SCHEMA","SECONDS","SEEK","SELECT","SEMI","SET","SETS","SHOW","TSKIP","SEQUENCE","SOURCE","START","STREAM","STRUCT","SUBQUERY","SUBSET","SYMBOLS","SYMMETRIC","SYNC","SYSTEM","TABLE","TABLES","TABLESAMPLE","TABLESTORE","TAGGED","TEMP","TEMPORARY","THEN","TIES","TO","TOPIC","TRANSACTION","TRANSFER","TRIGGER","TRUE","TUPLE","TYPE","UNBOUNDED","UNCONDITIONAL","UNION","UNIQUE","UNKNOWN","UNMATCHED","UPDATE","UPSERT","USE","USER","USING","VACUUM","VALUES","VARIANT","VIEW","VIRTUAL","WHEN","WHERE","WINDOW","WITH","WITHOUT","WRAPPER","XOR","STRING_CORE_SINGLE","STRING_CORE_DOUBLE","STRING_SINGLE","STRING_DOUBLE","STRING_MULTILINE","STRING_VALUE","ID_PLAIN","ID_QUOTED_CORE","ID_QUOTED","DIGIT","HEXDIGIT","HEXDIGITS","OCTDIGITS","BINDIGITS","DECDIGITS","DIGITS","INTEGER_VALUE","FLOAT_EXP","REAL","BLOB","MULTILINE_COMMENT","LINE_COMMENT","WS","COMMENT"]}constructor(t){super(t),this.interpreter=new at(this,e._ATN,e.decisionsToDFA,new pt)}get grammarFileName(){return"YQL.g4"}get literalNames(){return e.literalNames}get symbolicNames(){return e.symbolicNames}get ruleNames(){return e.ruleNames}get serializedATN(){return e._serializedATN}get channelNames(){return e.channelNames}get modeNames(){return e.modeNames}static{this._serializedATN=[4,0,334,3207,6,-1,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27,7,27,2,28,7,28,2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,32,2,33,7,33,2,34,7,34,2,35,7,35,2,36,7,36,2,37,7,37,2,38,7,38,2,39,7,39,2,40,7,40,2,41,7,41,2,42,7,42,2,43,7,43,2,44,7,44,2,45,7,45,2,46,7,46,2,47,7,47,2,48,7,48,2,49,7,49,2,50,7,50,2,51,7,51,2,52,7,52,2,53,7,53,2,54,7,54,2,55,7,55,2,56,7,56,2,57,7,57,2,58,7,58,2,59,7,59,2,60,7,60,2,61,7,61,2,62,7,62,2,63,7,63,2,64,7,64,2,65,7,65,2,66,7,66,2,67,7,67,2,68,7,68,2,69,7,69,2,70,7,70,2,71,7,71,2,72,7,72,2,73,7,73,2,74,7,74,2,75,7,75,2,76,7,76,2,77,7,77,2,78,7,78,2,79,7,79,2,80,7,80,2,81,7,81,2,82,7,82,2,83,7,83,2,84,7,84,2,85,7,85,2,86,7,86,2,87,7,87,2,88,7,88,2,89,7,89,2,90,7,90,2,91,7,91,2,92,7,92,2,93,7,93,2,94,7,94,2,95,7,95,2,96,7,96,2,97,7,97,2,98,7,98,2,99,7,99,2,100,7,100,2,101,7,101,2,102,7,102,2,103,7,103,2,104,7,104,2,105,7,105,2,106,7,106,2,107,7,107,2,108,7,108,2,109,7,109,2,110,7,110,2,111,7,111,2,112,7,112,2,113,7,113,2,114,7,114,2,115,7,115,2,116,7,116,2,117,7,117,2,118,7,118,2,119,7,119,2,120,7,120,2,121,7,121,2,122,7,122,2,123,7,123,2,124,7,124,2,125,7,125,2,126,7,126,2,127,7,127,2,128,7,128,2,129,7,129,2,130,7,130,2,131,7,131,2,132,7,132,2,133,7,133,2,134,7,134,2,135,7,135,2,136,7,136,2,137,7,137,2,138,7,138,2,139,7,139,2,140,7,140,2,141,7,141,2,142,7,142,2,143,7,143,2,144,7,144,2,145,7,145,2,146,7,146,2,147,7,147,2,148,7,148,2,149,7,149,2,150,7,150,2,151,7,151,2,152,7,152,2,153,7,153,2,154,7,154,2,155,7,155,2,156,7,156,2,157,7,157,2,158,7,158,2,159,7,159,2,160,7,160,2,161,7,161,2,162,7,162,2,163,7,163,2,164,7,164,2,165,7,165,2,166,7,166,2,167,7,167,2,168,7,168,2,169,7,169,2,170,7,170,2,171,7,171,2,172,7,172,2,173,7,173,2,174,7,174,2,175,7,175,2,176,7,176,2,177,7,177,2,178,7,178,2,179,7,179,2,180,7,180,2,181,7,181,2,182,7,182,2,183,7,183,2,184,7,184,2,185,7,185,2,186,7,186,2,187,7,187,2,188,7,188,2,189,7,189,2,190,7,190,2,191,7,191,2,192,7,192,2,193,7,193,2,194,7,194,2,195,7,195,2,196,7,196,2,197,7,197,2,198,7,198,2,199,7,199,2,200,7,200,2,201,7,201,2,202,7,202,2,203,7,203,2,204,7,204,2,205,7,205,2,206,7,206,2,207,7,207,2,208,7,208,2,209,7,209,2,210,7,210,2,211,7,211,2,212,7,212,2,213,7,213,2,214,7,214,2,215,7,215,2,216,7,216,2,217,7,217,2,218,7,218,2,219,7,219,2,220,7,220,2,221,7,221,2,222,7,222,2,223,7,223,2,224,7,224,2,225,7,225,2,226,7,226,2,227,7,227,2,228,7,228,2,229,7,229,2,230,7,230,2,231,7,231,2,232,7,232,2,233,7,233,2,234,7,234,2,235,7,235,2,236,7,236,2,237,7,237,2,238,7,238,2,239,7,239,2,240,7,240,2,241,7,241,2,242,7,242,2,243,7,243,2,244,7,244,2,245,7,245,2,246,7,246,2,247,7,247,2,248,7,248,2,249,7,249,2,250,7,250,2,251,7,251,2,252,7,252,2,253,7,253,2,254,7,254,2,255,7,255,2,256,7,256,2,257,7,257,2,258,7,258,2,259,7,259,2,260,7,260,2,261,7,261,2,262,7,262,2,263,7,263,2,264,7,264,2,265,7,265,2,266,7,266,2,267,7,267,2,268,7,268,2,269,7,269,2,270,7,270,2,271,7,271,2,272,7,272,2,273,7,273,2,274,7,274,2,275,7,275,2,276,7,276,2,277,7,277,2,278,7,278,2,279,7,279,2,280,7,280,2,281,7,281,2,282,7,282,2,283,7,283,2,284,7,284,2,285,7,285,2,286,7,286,2,287,7,287,2,288,7,288,2,289,7,289,2,290,7,290,2,291,7,291,2,292,7,292,2,293,7,293,2,294,7,294,2,295,7,295,2,296,7,296,2,297,7,297,2,298,7,298,2,299,7,299,2,300,7,300,2,301,7,301,2,302,7,302,2,303,7,303,2,304,7,304,2,305,7,305,2,306,7,306,2,307,7,307,2,308,7,308,2,309,7,309,2,310,7,310,2,311,7,311,2,312,7,312,2,313,7,313,2,314,7,314,2,315,7,315,2,316,7,316,2,317,7,317,2,318,7,318,2,319,7,319,2,320,7,320,2,321,7,321,2,322,7,322,2,323,7,323,2,324,7,324,2,325,7,325,2,326,7,326,2,327,7,327,2,328,7,328,2,329,7,329,2,330,7,330,2,331,7,331,2,332,7,332,2,333,7,333,2,334,7,334,2,335,7,335,2,336,7,336,2,337,7,337,2,338,7,338,2,339,7,339,2,340,7,340,2,341,7,341,2,342,7,342,2,343,7,343,2,344,7,344,2,345,7,345,2,346,7,346,2,347,7,347,2,348,7,348,2,349,7,349,2,350,7,350,2,351,7,351,2,352,7,352,2,353,7,353,2,354,7,354,2,355,7,355,2,356,7,356,2,357,7,357,2,358,7,358,2,359,7,359,2,360,7,360,2,361,7,361,2,362,7,362,2,363,7,363,2,364,7,364,2,365,7,365,2,366,7,366,2,367,7,367,2,368,7,368,2,369,7,369,2,370,7,370,2,371,7,371,2,372,7,372,2,373,7,373,2,374,7,374,2,375,7,375,2,376,7,376,2,377,7,377,2,378,7,378,2,379,7,379,1,0,1,0,1,1,1,1,1,1,1,2,1,2,1,2,1,3,1,3,1,3,1,4,1,4,1,5,1,5,1,5,1,6,1,6,1,7,1,7,1,7,1,8,1,8,1,8,1,9,1,9,1,9,1,9,1,10,1,10,1,11,1,11,1,12,1,12,1,12,1,13,1,13,1,13,1,14,1,14,1,14,1,15,1,15,1,16,1,16,1,17,1,17,1,18,1,18,1,19,1,19,1,20,1,20,1,21,1,21,1,22,1,22,1,23,1,23,1,24,1,24,1,25,1,25,1,26,1,26,1,27,1,27,1,28,1,28,1,29,1,29,1,30,1,30,1,31,1,31,1,32,1,32,1,33,1,33,1,33,1,34,1,34,1,34,1,35,1,35,1,36,1,36,1,37,1,37,1,38,1,38,1,39,1,39,1,40,1,40,1,41,1,41,1,41,1,42,1,42,1,43,1,43,1,44,1,44,1,45,1,45,1,46,1,46,1,47,1,47,1,48,1,48,1,49,1,49,1,50,1,50,1,51,1,51,1,52,1,52,1,53,1,53,1,54,1,54,1,55,1,55,1,56,1,56,1,57,1,57,1,58,1,58,1,59,1,59,1,60,1,60,1,61,1,61,1,62,1,62,1,63,1,63,1,64,1,64,1,65,1,65,1,66,1,66,1,67,1,67,1,68,1,68,1,68,1,68,1,68,1,68,1,69,1,69,1,69,1,69,1,69,1,69,1,69,1,70,1,70,1,70,1,70,1,71,1,71,1,71,1,71,1,71,1,71,1,72,1,72,1,72,1,72,1,73,1,73,1,73,1,73,1,73,1,73,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,75,1,75,1,75,1,75,1,76,1,76,1,76,1,76,1,76,1,77,1,77,1,77,1,77,1,78,1,78,1,78,1,78,1,78,1,78,1,79,1,79,1,79,1,80,1,80,1,80,1,80,1,81,1,81,1,81,1,81,1,81,1,81,1,81,1,82,1,82,1,82,1,82,1,82,1,82,1,82,1,82,1,82,1,82,1,82,1,83,1,83,1,83,1,83,1,83,1,83,1,84,1,84,1,84,1,85,1,85,1,85,1,85,1,85,1,85,1,85,1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,89,1,89,1,89,1,89,1,89,1,89,1,89,1,90,1,90,1,90,1,90,1,90,1,90,1,91,1,91,1,91,1,91,1,91,1,91,1,91,1,91,1,91,1,91,1,91,1,92,1,92,1,92,1,92,1,92,1,92,1,92,1,93,1,93,1,93,1,93,1,93,1,93,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,96,1,96,1,96,1,96,1,96,1,96,1,96,1,96,1,97,1,97,1,97,1,98,1,98,1,98,1,98,1,98,1,98,1,98,1,98,1,98,1,99,1,99,1,99,1,99,1,99,1,99,1,99,1,99,1,100,1,100,1,100,1,100,1,100,1,101,1,101,1,101,1,101,1,101,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,103,1,103,1,103,1,103,1,103,1,103,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,105,1,105,1,105,1,105,1,105,1,105,1,105,1,105,1,106,1,106,1,106,1,106,1,106,1,106,1,106,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,109,1,109,1,109,1,109,1,109,1,109,1,109,1,109,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,115,1,115,1,115,1,115,1,115,1,115,1,116,1,116,1,116,1,116,1,116,1,116,1,116,1,117,1,117,1,117,1,117,1,117,1,117,1,118,1,118,1,118,1,118,1,118,1,119,1,119,1,119,1,119,1,119,1,119,1,119,1,119,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,123,1,123,1,123,1,123,1,123,1,124,1,124,1,124,1,124,1,124,1,124,1,124,1,124,1,124,1,125,1,125,1,125,1,125,1,125,1,125,1,125,1,125,1,126,1,126,1,126,1,126,1,126,1,126,1,126,1,126,1,127,1,127,1,127,1,127,1,127,1,127,1,127,1,127,1,128,1,128,1,128,1,128,1,128,1,128,1,128,1,128,1,128,1,128,1,128,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,130,1,130,1,130,1,130,1,130,1,130,1,130,1,131,1,131,1,131,1,131,1,131,1,131,1,131,1,132,1,132,1,132,1,132,1,132,1,133,1,133,1,133,1,133,1,133,1,133,1,133,1,133,1,133,1,134,1,134,1,134,1,134,1,134,1,134,1,134,1,135,1,135,1,135,1,135,1,135,1,136,1,136,1,136,1,136,1,136,1,136,1,136,1,136,1,136,1,136,1,137,1,137,1,137,1,137,1,137,1,137,1,137,1,137,1,138,1,138,1,138,1,138,1,138,1,138,1,138,1,138,1,139,1,139,1,139,1,139,1,139,1,139,1,139,1,139,1,139,1,140,1,140,1,140,1,141,1,141,1,141,1,141,1,141,1,142,1,142,1,142,1,142,1,142,1,143,1,143,1,143,1,143,1,143,1,144,1,144,1,144,1,144,1,144,1,144,1,145,1,145,1,145,1,145,1,145,1,145,1,145,1,145,1,145,1,145,1,145,1,145,1,145,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,147,1,147,1,147,1,147,1,148,1,148,1,148,1,148,1,148,1,149,1,149,1,149,1,149,1,149,1,149,1,150,1,150,1,150,1,150,1,150,1,150,1,151,1,151,1,151,1,151,1,151,1,151,1,151,1,152,1,152,1,152,1,152,1,152,1,152,1,152,1,152,1,152,1,153,1,153,1,153,1,153,1,153,1,153,1,153,1,154,1,154,1,154,1,154,1,154,1,154,1,154,1,154,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,156,1,156,1,156,1,156,1,156,1,156,1,156,1,156,1,156,1,156,1,157,1,157,1,157,1,157,1,157,1,157,1,157,1,158,1,158,1,158,1,158,1,158,1,158,1,158,1,158,1,159,1,159,1,159,1,159,1,159,1,159,1,159,1,160,1,160,1,160,1,160,1,160,1,160,1,160,1,160,1,160,1,161,1,161,1,161,1,161,1,161,1,162,1,162,1,162,1,162,1,162,1,162,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,164,1,164,1,164,1,164,1,164,1,164,1,164,1,165,1,165,1,165,1,165,1,165,1,165,1,166,1,166,1,166,1,166,1,166,1,166,1,166,1,166,1,167,1,167,1,167,1,167,1,167,1,168,1,168,1,168,1,168,1,168,1,168,1,168,1,168,1,168,1,168,1,169,1,169,1,169,1,169,1,170,1,170,1,170,1,170,1,170,1,170,1,170,1,170,1,171,1,171,1,171,1,171,1,171,1,172,1,172,1,172,1,172,1,172,1,173,1,173,1,173,1,173,1,173,1,173,1,173,1,173,1,173,1,174,1,174,1,174,1,174,1,174,1,175,1,175,1,175,1,175,1,175,1,175,1,175,1,176,1,176,1,176,1,176,1,176,1,176,1,177,1,177,1,177,1,177,1,177,1,177,1,178,1,178,1,178,1,178,1,178,1,178,1,178,1,178,1,178,1,179,1,179,1,179,1,179,1,179,1,179,1,179,1,180,1,180,1,180,1,180,1,180,1,181,1,181,1,181,1,181,1,181,1,181,1,181,1,182,1,182,1,182,1,182,1,183,1,183,1,183,1,184,1,184,1,184,1,184,1,184,1,184,1,184,1,185,1,185,1,185,1,185,1,185,1,185,1,186,1,186,1,186,1,186,1,186,1,186,1,186,1,186,1,186,1,186,1,187,1,187,1,187,1,187,1,187,1,187,1,187,1,188,1,188,1,188,1,189,1,189,1,189,1,189,1,189,1,189,1,189,1,189,1,189,1,189,1,190,1,190,1,190,1,190,1,190,1,190,1,190,1,190,1,190,1,190,1,190,1,190,1,191,1,191,1,191,1,191,1,191,1,191,1,192,1,192,1,192,1,192,1,192,1,192,1,192,1,192,1,193,1,193,1,193,1,193,1,193,1,193,1,193,1,193,1,193,1,194,1,194,1,194,1,194,1,194,1,194,1,194,1,194,1,195,1,195,1,195,1,195,1,195,1,195,1,195,1,195,1,195,1,195,1,196,1,196,1,196,1,196,1,196,1,196,1,197,1,197,1,197,1,197,1,197,1,197,1,197,1,198,1,198,1,198,1,198,1,198,1,198,1,198,1,198,1,199,1,199,1,199,1,199,1,199,1,199,1,199,1,199,1,199,1,199,1,200,1,200,1,200,1,200,1,200,1,201,1,201,1,201,1,202,1,202,1,202,1,202,1,202,1,202,1,202,1,203,1,203,1,203,1,203,1,203,1,204,1,204,1,204,1,204,1,204,1,204,1,204,1,204,1,204,1,204,1,204,1,204,1,205,1,205,1,205,1,205,1,205,1,205,1,205,1,205,1,205,1,205,1,205,1,206,1,206,1,206,1,206,1,206,1,206,1,206,1,206,1,206,1,206,1,206,1,207,1,207,1,207,1,207,1,208,1,208,1,208,1,208,1,208,1,209,1,209,1,209,1,209,1,209,1,210,1,210,1,210,1,210,1,210,1,210,1,210,1,211,1,211,1,211,1,211,1,211,1,212,1,212,1,212,1,212,1,212,1,212,1,213,1,213,1,213,1,213,1,213,1,214,1,214,1,214,1,214,1,214,1,214,1,215,1,215,1,215,1,215,1,215,1,215,1,216,1,216,1,216,1,216,1,216,1,216,1,216,1,217,1,217,1,217,1,217,1,217,1,217,1,218,1,218,1,218,1,218,1,218,1,218,1,218,1,218,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,221,1,221,1,221,1,221,1,221,1,221,1,221,1,221,1,221,1,221,1,221,1,221,1,221,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,223,1,223,1,223,1,223,1,223,1,223,1,223,1,224,1,224,1,224,1,224,1,224,1,224,1,224,1,224,1,224,1,224,1,224,1,224,1,225,1,225,1,225,1,225,1,225,1,225,1,225,1,225,1,226,1,226,1,226,1,226,1,226,1,227,1,227,1,227,1,228,1,228,1,228,1,228,1,228,1,228,1,228,1,228,1,229,1,229,1,229,1,229,1,230,1,230,1,230,1,230,1,230,1,230,1,230,1,230,1,231,1,231,1,231,1,231,1,231,1,232,1,232,1,232,1,232,1,232,1,232,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,234,1,234,1,234,1,235,1,235,1,235,1,235,1,235,1,235,1,235,1,236,1,236,1,236,1,236,1,236,1,237,1,237,1,237,1,238,1,238,1,238,1,238,1,239,1,239,1,239,1,239,1,239,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,241,1,241,1,241,1,241,1,241,1,241,1,241,1,241,1,241,1,242,1,242,1,242,1,243,1,243,1,243,1,243,1,243,1,243,1,244,1,244,1,244,1,244,1,244,1,244,1,244,1,245,1,245,1,245,1,245,1,245,1,245,1,246,1,246,1,246,1,246,1,246,1,247,1,247,1,247,1,247,1,247,1,247,1,247,1,247,1,247,1,248,1,248,1,248,1,248,1,248,1,248,1,248,1,248,1,248,1,248,1,249,1,249,1,249,1,249,1,249,1,249,1,249,1,249,1,250,1,250,1,250,1,250,1,250,1,250,1,250,1,250,1,250,1,251,1,251,1,251,1,251,1,251,1,252,1,252,1,252,1,252,1,252,1,252,1,252,1,252,1,253,1,253,1,253,1,253,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,255,1,255,1,255,1,255,1,255,1,256,1,256,1,256,1,256,1,256,1,257,1,257,1,257,1,257,1,257,1,257,1,257,1,258,1,258,1,258,1,258,1,258,1,258,1,258,1,258,1,258,1,258,1,259,1,259,1,259,1,259,1,259,1,259,1,259,1,259,1,260,1,260,1,260,1,260,1,260,1,260,1,260,1,260,1,261,1,261,1,261,1,261,1,261,1,261,1,261,1,261,1,261,1,261,1,261,1,262,1,262,1,262,1,262,1,262,1,262,1,262,1,262,1,263,1,263,1,263,1,263,1,263,1,263,1,264,1,264,1,264,1,264,1,264,1,264,1,265,1,265,1,265,1,265,1,265,1,265,1,266,1,266,1,266,1,266,1,266,1,266,1,267,1,267,1,267,1,267,1,267,1,267,1,267,1,268,1,268,1,268,1,268,1,268,1,268,1,268,1,268,1,268,1,268,1,268,1,269,1,269,1,269,1,269,1,269,1,269,1,269,1,270,1,270,1,270,1,270,1,270,1,270,1,270,1,270,1,271,1,271,1,271,1,271,1,271,1,271,1,271,1,271,1,272,1,272,1,272,1,272,1,272,1,272,1,272,1,273,1,273,1,273,1,273,1,273,1,273,1,273,1,274,1,274,1,274,1,274,1,274,1,274,1,274,1,274,1,274,1,274,1,274,1,275,1,275,1,275,1,275,1,275,1,275,1,275,1,275,1,276,1,276,1,276,1,276,1,276,1,276,1,276,1,276,1,276,1,276,1,276,1,276,1,277,1,277,1,277,1,277,1,277,1,277,1,278,1,278,1,278,1,278,1,278,1,278,1,278,1,278,1,278,1,279,1,279,1,279,1,279,1,279,1,279,1,279,1,279,1,280,1,280,1,280,1,280,1,280,1,280,1,280,1,280,1,281,1,281,1,281,1,281,1,281,1,281,1,281,1,281,1,282,1,282,1,282,1,282,1,282,1,282,1,282,1,282,1,282,1,283,1,283,1,283,1,283,1,283,1,283,1,283,1,284,1,284,1,284,1,284,1,284,1,284,1,284,1,285,1,285,1,285,1,285,1,285,1,285,1,285,1,285,1,285,1,285,1,286,1,286,1,286,1,286,1,286,1,286,1,286,1,287,1,287,1,287,1,287,1,287,1,287,1,287,1,288,1,288,1,288,1,288,1,288,1,288,1,289,1,289,1,289,1,289,1,289,1,289,1,290,1,290,1,290,1,290,1,290,1,290,1,290,1,290,1,290,1,291,1,291,1,291,1,291,1,291,1,291,1,291,1,292,1,292,1,292,1,292,1,293,1,293,1,293,1,293,1,293,1,294,1,294,1,294,1,294,1,294,1,294,1,294,1,295,1,295,1,295,1,295,1,295,1,295,1,295,1,295,1,295,1,295,1,296,1,296,1,296,1,296,1,296,1,296,1,296,1,297,1,297,1,297,1,297,1,297,1,297,1,297,1,297,1,298,1,298,1,298,1,298,1,298,1,299,1,299,1,299,1,299,1,299,1,299,1,299,1,300,1,300,1,300,1,300,1,300,1,301,1,301,1,301,1,301,1,302,1,302,1,302,1,302,1,302,1,303,1,303,1,303,1,303,1,303,1,304,1,304,1,304,1,304,1,304,1,305,1,305,1,305,1,305,1,305,1,305,1,305,1,305,1,305,1,306,1,306,1,306,1,306,1,306,1,306,1,306,1,307,1,307,1,307,1,307,1,307,1,307,1,308,1,308,1,308,1,308,1,308,1,308,1,308,1,309,1,309,1,309,1,309,1,309,1,309,1,309,1,310,1,310,1,310,1,310,1,310,1,310,1,310,1,310,1,310,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,312,1,312,1,312,1,312,1,312,1,312,1,312,1,312,1,313,1,313,1,313,1,313,1,313,1,313,1,313,1,313,1,313,1,313,1,314,1,314,1,314,1,314,1,314,1,315,1,315,1,315,1,315,1,315,1,315,1,315,1,316,1,316,1,316,1,316,1,316,1,316,1,317,1,317,1,317,1,317,1,317,1,317,1,317,1,318,1,318,1,318,1,318,1,318,1,318,1,318,1,318,1,318,1,318,1,318,1,318,1,319,1,319,1,319,1,319,1,319,1,319,1,319,1,319,1,319,1,319,1,319,1,320,1,320,1,320,1,320,1,320,1,320,1,320,1,321,1,321,1,321,1,321,1,321,1,322,1,322,1,322,1,322,1,322,1,322,1,322,1,322,1,322,1,322,1,323,1,323,1,323,1,323,1,323,1,324,1,324,1,324,1,324,1,324,1,325,1,325,1,325,1,326,1,326,1,326,1,326,1,326,1,326,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,328,1,328,1,328,1,328,1,328,1,328,1,328,1,328,1,328,1,329,1,329,1,329,1,329,1,329,1,329,1,329,1,329,1,330,1,330,1,330,1,330,1,330,1,331,1,331,1,331,1,331,1,331,1,331,1,332,1,332,1,332,1,332,1,332,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,334,1,334,1,334,1,334,1,334,1,334,1,334,1,334,1,334,1,334,1,334,1,334,1,334,1,334,1,335,1,335,1,335,1,335,1,335,1,335,1,336,1,336,1,336,1,336,1,336,1,336,1,336,1,337,1,337,1,337,1,337,1,337,1,337,1,337,1,337,1,338,1,338,1,338,1,338,1,338,1,338,1,338,1,338,1,338,1,338,1,339,1,339,1,339,1,339,1,339,1,339,1,339,1,340,1,340,1,340,1,340,1,340,1,340,1,340,1,341,1,341,1,341,1,341,1,342,1,342,1,342,1,342,1,342,1,343,1,343,1,343,1,343,1,343,1,343,1,344,1,344,1,344,1,344,1,344,1,344,1,344,1,345,1,345,1,345,1,345,1,345,1,345,1,345,1,346,1,346,1,346,1,346,1,346,1,346,1,346,1,346,1,347,1,347,1,347,1,347,1,347,1,348,1,348,1,348,1,348,1,348,1,348,1,348,1,348,1,349,1,349,1,349,1,349,1,349,1,350,1,350,1,350,1,350,1,350,1,350,1,351,1,351,1,351,1,351,1,351,1,351,1,351,1,352,1,352,1,352,1,352,1,352,1,353,1,353,1,353,1,353,1,353,1,353,1,353,1,353,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,355,1,355,1,355,1,355,1,356,1,356,1,356,1,356,3,356,2996,8,356,1,357,1,357,1,357,1,357,3,357,3002,8,357,1,358,1,358,5,358,3006,8,358,10,358,12,358,3009,9,358,1,358,1,358,1,359,1,359,5,359,3015,8,359,10,359,12,359,3018,9,359,1,359,1,359,1,360,1,360,5,360,3024,8,360,10,360,12,360,3027,9,360,1,360,1,360,4,360,3031,8,360,11,360,12,360,3032,1,360,3,360,3036,8,360,1,361,1,361,1,361,3,361,3041,8,361,1,361,1,361,1,361,1,361,1,361,1,361,1,361,1,361,3,361,3051,8,361,3,361,3053,8,361,1,362,1,362,1,362,5,362,3058,8,362,10,362,12,362,3061,9,362,1,363,1,363,1,363,1,363,1,363,3,363,3068,8,363,1,364,1,364,5,364,3072,8,364,10,364,12,364,3075,9,364,1,364,1,364,1,365,1,365,1,366,1,366,1,367,1,367,1,367,4,367,3086,8,367,11,367,12,367,3087,1,368,1,368,1,368,4,368,3093,8,368,11,368,12,368,3094,1,369,1,369,1,369,4,369,3100,8,369,11,369,12,369,3101,1,370,4,370,3105,8,370,11,370,12,370,3106,1,371,1,371,1,371,1,371,3,371,3113,8,371,1,372,1,372,1,372,3,372,3118,8,372,1,372,1,372,1,372,1,372,1,372,1,372,3,372,3126,8,372,1,373,1,373,1,373,3,373,3131,8,373,1,373,1,373,1,374,1,374,1,374,5,374,3138,8,374,10,374,12,374,3141,9,374,1,374,3,374,3144,8,374,1,374,1,374,1,374,3,374,3149,8,374,1,374,1,374,1,374,1,374,1,374,1,374,3,374,3157,8,374,3,374,3159,8,374,1,375,1,375,1,375,4,375,3164,8,375,11,375,12,375,3165,1,375,1,375,1,376,1,376,1,376,1,376,5,376,3174,8,376,10,376,12,376,3177,9,376,1,376,1,376,1,376,1,377,1,377,1,377,1,377,5,377,3186,8,377,10,377,12,377,3189,9,377,1,377,1,377,3,377,3193,8,377,1,377,3,377,3196,8,377,1,378,1,378,1,378,1,378,1,379,1,379,3,379,3204,8,379,1,379,1,379,2,3025,3175,0,380,1,1,3,2,5,3,7,4,9,5,11,6,13,7,15,8,17,9,19,10,21,11,23,12,25,13,27,14,29,15,31,16,33,17,35,18,37,19,39,20,41,21,43,22,45,23,47,24,49,25,51,26,53,27,55,28,57,29,59,30,61,31,63,32,65,33,67,34,69,35,71,36,73,37,75,0,77,0,79,0,81,0,83,0,85,0,87,0,89,0,91,0,93,0,95,0,97,0,99,0,101,0,103,0,105,0,107,0,109,0,111,0,113,0,115,0,117,0,119,0,121,0,123,0,125,0,127,0,129,0,131,0,133,0,135,0,137,38,139,39,141,40,143,41,145,42,147,43,149,44,151,45,153,46,155,47,157,48,159,49,161,50,163,51,165,52,167,53,169,54,171,55,173,56,175,57,177,58,179,59,181,60,183,61,185,62,187,63,189,64,191,65,193,66,195,67,197,68,199,69,201,70,203,71,205,72,207,73,209,74,211,75,213,76,215,77,217,78,219,79,221,80,223,81,225,82,227,83,229,84,231,85,233,86,235,87,237,88,239,89,241,90,243,91,245,92,247,93,249,94,251,95,253,96,255,97,257,98,259,99,261,100,263,101,265,102,267,103,269,104,271,105,273,106,275,107,277,108,279,109,281,110,283,111,285,112,287,113,289,114,291,115,293,116,295,117,297,118,299,119,301,120,303,121,305,122,307,123,309,124,311,125,313,126,315,127,317,128,319,129,321,130,323,131,325,132,327,133,329,134,331,135,333,136,335,137,337,138,339,139,341,140,343,141,345,142,347,143,349,144,351,145,353,146,355,147,357,148,359,149,361,150,363,151,365,152,367,153,369,154,371,155,373,156,375,157,377,158,379,159,381,160,383,161,385,162,387,163,389,164,391,165,393,166,395,167,397,168,399,169,401,170,403,171,405,172,407,173,409,174,411,175,413,176,415,177,417,178,419,179,421,180,423,181,425,182,427,183,429,184,431,185,433,186,435,187,437,188,439,189,441,190,443,191,445,192,447,193,449,194,451,195,453,196,455,197,457,198,459,199,461,200,463,201,465,202,467,203,469,204,471,205,473,206,475,207,477,208,479,209,481,210,483,211,485,212,487,213,489,214,491,215,493,216,495,217,497,218,499,219,501,220,503,221,505,222,507,223,509,224,511,225,513,226,515,227,517,228,519,229,521,230,523,231,525,232,527,233,529,234,531,235,533,236,535,237,537,238,539,239,541,240,543,241,545,242,547,243,549,244,551,245,553,246,555,247,557,248,559,249,561,250,563,251,565,252,567,253,569,254,571,255,573,256,575,257,577,258,579,259,581,260,583,261,585,262,587,263,589,264,591,265,593,266,595,267,597,268,599,269,601,270,603,271,605,272,607,273,609,274,611,275,613,276,615,277,617,278,619,279,621,280,623,281,625,282,627,283,629,284,631,285,633,286,635,287,637,288,639,289,641,290,643,291,645,292,647,293,649,294,651,295,653,296,655,297,657,298,659,299,661,300,663,301,665,302,667,303,669,304,671,305,673,306,675,307,677,308,679,309,681,310,683,311,685,312,687,313,689,314,691,315,693,316,695,317,697,318,699,319,701,320,703,321,705,322,707,323,709,324,711,325,713,0,715,0,717,0,719,0,721,0,723,326,725,327,727,0,729,328,731,0,733,0,735,0,737,0,739,0,741,0,743,329,745,330,747,0,749,331,751,332,753,0,755,0,757,333,759,334,1,0,35,2,0,65,65,97,97,2,0,66,66,98,98,2,0,67,67,99,99,2,0,68,68,100,100,2,0,69,69,101,101,2,0,70,70,102,102,2,0,71,71,103,103,2,0,72,72,104,104,2,0,73,73,105,105,2,0,74,74,106,106,2,0,75,75,107,107,2,0,76,76,108,108,2,0,77,77,109,109,2,0,78,78,110,110,2,0,79,79,111,111,2,0,80,80,112,112,2,0,81,81,113,113,2,0,82,82,114,114,2,0,83,83,115,115,2,0,84,84,116,116,2,0,85,85,117,117,2,0,86,86,118,118,2,0,87,87,119,119,2,0,88,88,120,120,2,0,89,89,121,121,2,0,90,90,122,122,2,0,39,39,92,92,2,0,34,34,92,92,3,0,65,90,95,95,97,122,2,0,92,92,96,96,3,0,48,57,65,70,97,102,2,0,52,52,56,56,2,0,10,10,13,13,1,1,10,10,3,0,9,10,12,13,32,32,3212,0,1,1,0,0,0,0,3,1,0,0,0,0,5,1,0,0,0,0,7,1,0,0,0,0,9,1,0,0,0,0,11,1,0,0,0,0,13,1,0,0,0,0,15,1,0,0,0,0,17,1,0,0,0,0,19,1,0,0,0,0,21,1,0,0,0,0,23,1,0,0,0,0,25,1,0,0,0,0,27,1,0,0,0,0,29,1,0,0,0,0,31,1,0,0,0,0,33,1,0,0,0,0,35,1,0,0,0,0,37,1,0,0,0,0,39,1,0,0,0,0,41,1,0,0,0,0,43,1,0,0,0,0,45,1,0,0,0,0,47,1,0,0,0,0,49,1,0,0,0,0,51,1,0,0,0,0,53,1,0,0,0,0,55,1,0,0,0,0,57,1,0,0,0,0,59,1,0,0,0,0,61,1,0,0,0,0,63,1,0,0,0,0,65,1,0,0,0,0,67,1,0,0,0,0,69,1,0,0,0,0,71,1,0,0,0,0,73,1,0,0,0,0,137,1,0,0,0,0,139,1,0,0,0,0,141,1,0,0,0,0,143,1,0,0,0,0,145,1,0,0,0,0,147,1,0,0,0,0,149,1,0,0,0,0,151,1,0,0,0,0,153,1,0,0,0,0,155,1,0,0,0,0,157,1,0,0,0,0,159,1,0,0,0,0,161,1,0,0,0,0,163,1,0,0,0,0,165,1,0,0,0,0,167,1,0,0,0,0,169,1,0,0,0,0,171,1,0,0,0,0,173,1,0,0,0,0,175,1,0,0,0,0,177,1,0,0,0,0,179,1,0,0,0,0,181,1,0,0,0,0,183,1,0,0,0,0,185,1,0,0,0,0,187,1,0,0,0,0,189,1,0,0,0,0,191,1,0,0,0,0,193,1,0,0,0,0,195,1,0,0,0,0,197,1,0,0,0,0,199,1,0,0,0,0,201,1,0,0,0,0,203,1,0,0,0,0,205,1,0,0,0,0,207,1,0,0,0,0,209,1,0,0,0,0,211,1,0,0,0,0,213,1,0,0,0,0,215,1,0,0,0,0,217,1,0,0,0,0,219,1,0,0,0,0,221,1,0,0,0,0,223,1,0,0,0,0,225,1,0,0,0,0,227,1,0,0,0,0,229,1,0,0,0,0,231,1,0,0,0,0,233,1,0,0,0,0,235,1,0,0,0,0,237,1,0,0,0,0,239,1,0,0,0,0,241,1,0,0,0,0,243,1,0,0,0,0,245,1,0,0,0,0,247,1,0,0,0,0,249,1,0,0,0,0,251,1,0,0,0,0,253,1,0,0,0,0,255,1,0,0,0,0,257,1,0,0,0,0,259,1,0,0,0,0,261,1,0,0,0,0,263,1,0,0,0,0,265,1,0,0,0,0,267,1,0,0,0,0,269,1,0,0,0,0,271,1,0,0,0,0,273,1,0,0,0,0,275,1,0,0,0,0,277,1,0,0,0,0,279,1,0,0,0,0,281,1,0,0,0,0,283,1,0,0,0,0,285,1,0,0,0,0,287,1,0,0,0,0,289,1,0,0,0,0,291,1,0,0,0,0,293,1,0,0,0,0,295,1,0,0,0,0,297,1,0,0,0,0,299,1,0,0,0,0,301,1,0,0,0,0,303,1,0,0,0,0,305,1,0,0,0,0,307,1,0,0,0,0,309,1,0,0,0,0,311,1,0,0,0,0,313,1,0,0,0,0,315,1,0,0,0,0,317,1,0,0,0,0,319,1,0,0,0,0,321,1,0,0,0,0,323,1,0,0,0,0,325,1,0,0,0,0,327,1,0,0,0,0,329,1,0,0,0,0,331,1,0,0,0,0,333,1,0,0,0,0,335,1,0,0,0,0,337,1,0,0,0,0,339,1,0,0,0,0,341,1,0,0,0,0,343,1,0,0,0,0,345,1,0,0,0,0,347,1,0,0,0,0,349,1,0,0,0,0,351,1,0,0,0,0,353,1,0,0,0,0,355,1,0,0,0,0,357,1,0,0,0,0,359,1,0,0,0,0,361,1,0,0,0,0,363,1,0,0,0,0,365,1,0,0,0,0,367,1,0,0,0,0,369,1,0,0,0,0,371,1,0,0,0,0,373,1,0,0,0,0,375,1,0,0,0,0,377,1,0,0,0,0,379,1,0,0,0,0,381,1,0,0,0,0,383,1,0,0,0,0,385,1,0,0,0,0,387,1,0,0,0,0,389,1,0,0,0,0,391,1,0,0,0,0,393,1,0,0,0,0,395,1,0,0,0,0,397,1,0,0,0,0,399,1,0,0,0,0,401,1,0,0,0,0,403,1,0,0,0,0,405,1,0,0,0,0,407,1,0,0,0,0,409,1,0,0,0,0,411,1,0,0,0,0,413,1,0,0,0,0,415,1,0,0,0,0,417,1,0,0,0,0,419,1,0,0,0,0,421,1,0,0,0,0,423,1,0,0,0,0,425,1,0,0,0,0,427,1,0,0,0,0,429,1,0,0,0,0,431,1,0,0,0,0,433,1,0,0,0,0,435,1,0,0,0,0,437,1,0,0,0,0,439,1,0,0,0,0,441,1,0,0,0,0,443,1,0,0,0,0,445,1,0,0,0,0,447,1,0,0,0,0,449,1,0,0,0,0,451,1,0,0,0,0,453,1,0,0,0,0,455,1,0,0,0,0,457,1,0,0,0,0,459,1,0,0,0,0,461,1,0,0,0,0,463,1,0,0,0,0,465,1,0,0,0,0,467,1,0,0,0,0,469,1,0,0,0,0,471,1,0,0,0,0,473,1,0,0,0,0,475,1,0,0,0,0,477,1,0,0,0,0,479,1,0,0,0,0,481,1,0,0,0,0,483,1,0,0,0,0,485,1,0,0,0,0,487,1,0,0,0,0,489,1,0,0,0,0,491,1,0,0,0,0,493,1,0,0,0,0,495,1,0,0,0,0,497,1,0,0,0,0,499,1,0,0,0,0,501,1,0,0,0,0,503,1,0,0,0,0,505,1,0,0,0,0,507,1,0,0,0,0,509,1,0,0,0,0,511,1,0,0,0,0,513,1,0,0,0,0,515,1,0,0,0,0,517,1,0,0,0,0,519,1,0,0,0,0,521,1,0,0,0,0,523,1,0,0,0,0,525,1,0,0,0,0,527,1,0,0,0,0,529,1,0,0,0,0,531,1,0,0,0,0,533,1,0,0,0,0,535,1,0,0,0,0,537,1,0,0,0,0,539,1,0,0,0,0,541,1,0,0,0,0,543,1,0,0,0,0,545,1,0,0,0,0,547,1,0,0,0,0,549,1,0,0,0,0,551,1,0,0,0,0,553,1,0,0,0,0,555,1,0,0,0,0,557,1,0,0,0,0,559,1,0,0,0,0,561,1,0,0,0,0,563,1,0,0,0,0,565,1,0,0,0,0,567,1,0,0,0,0,569,1,0,0,0,0,571,1,0,0,0,0,573,1,0,0,0,0,575,1,0,0,0,0,577,1,0,0,0,0,579,1,0,0,0,0,581,1,0,0,0,0,583,1,0,0,0,0,585,1,0,0,0,0,587,1,0,0,0,0,589,1,0,0,0,0,591,1,0,0,0,0,593,1,0,0,0,0,595,1,0,0,0,0,597,1,0,0,0,0,599,1,0,0,0,0,601,1,0,0,0,0,603,1,0,0,0,0,605,1,0,0,0,0,607,1,0,0,0,0,609,1,0,0,0,0,611,1,0,0,0,0,613,1,0,0,0,0,615,1,0,0,0,0,617,1,0,0,0,0,619,1,0,0,0,0,621,1,0,0,0,0,623,1,0,0,0,0,625,1,0,0,0,0,627,1,0,0,0,0,629,1,0,0,0,0,631,1,0,0,0,0,633,1,0,0,0,0,635,1,0,0,0,0,637,1,0,0,0,0,639,1,0,0,0,0,641,1,0,0,0,0,643,1,0,0,0,0,645,1,0,0,0,0,647,1,0,0,0,0,649,1,0,0,0,0,651,1,0,0,0,0,653,1,0,0,0,0,655,1,0,0,0,0,657,1,0,0,0,0,659,1,0,0,0,0,661,1,0,0,0,0,663,1,0,0,0,0,665,1,0,0,0,0,667,1,0,0,0,0,669,1,0,0,0,0,671,1,0,0,0,0,673,1,0,0,0,0,675,1,0,0,0,0,677,1,0,0,0,0,679,1,0,0,0,0,681,1,0,0,0,0,683,1,0,0,0,0,685,1,0,0,0,0,687,1,0,0,0,0,689,1,0,0,0,0,691,1,0,0,0,0,693,1,0,0,0,0,695,1,0,0,0,0,697,1,0,0,0,0,699,1,0,0,0,0,701,1,0,0,0,0,703,1,0,0,0,0,705,1,0,0,0,0,707,1,0,0,0,0,709,1,0,0,0,0,711,1,0,0,0,0,723,1,0,0,0,0,725,1,0,0,0,0,729,1,0,0,0,0,743,1,0,0,0,0,745,1,0,0,0,0,749,1,0,0,0,0,751,1,0,0,0,0,757,1,0,0,0,0,759,1,0,0,0,1,761,1,0,0,0,3,763,1,0,0,0,5,766,1,0,0,0,7,769,1,0,0,0,9,772,1,0,0,0,11,774,1,0,0,0,13,777,1,0,0,0,15,779,1,0,0,0,17,782,1,0,0,0,19,785,1,0,0,0,21,789,1,0,0,0,23,791,1,0,0,0,25,793,1,0,0,0,27,796,1,0,0,0,29,799,1,0,0,0,31,802,1,0,0,0,33,804,1,0,0,0,35,806,1,0,0,0,37,808,1,0,0,0,39,810,1,0,0,0,41,812,1,0,0,0,43,814,1,0,0,0,45,816,1,0,0,0,47,818,1,0,0,0,49,820,1,0,0,0,51,822,1,0,0,0,53,824,1,0,0,0,55,826,1,0,0,0,57,828,1,0,0,0,59,830,1,0,0,0,61,832,1,0,0,0,63,834,1,0,0,0,65,836,1,0,0,0,67,838,1,0,0,0,69,841,1,0,0,0,71,844,1,0,0,0,73,846,1,0,0,0,75,848,1,0,0,0,77,850,1,0,0,0,79,852,1,0,0,0,81,854,1,0,0,0,83,856,1,0,0,0,85,859,1,0,0,0,87,861,1,0,0,0,89,863,1,0,0,0,91,865,1,0,0,0,93,867,1,0,0,0,95,869,1,0,0,0,97,871,1,0,0,0,99,873,1,0,0,0,101,875,1,0,0,0,103,877,1,0,0,0,105,879,1,0,0,0,107,881,1,0,0,0,109,883,1,0,0,0,111,885,1,0,0,0,113,887,1,0,0,0,115,889,1,0,0,0,117,891,1,0,0,0,119,893,1,0,0,0,121,895,1,0,0,0,123,897,1,0,0,0,125,899,1,0,0,0,127,901,1,0,0,0,129,903,1,0,0,0,131,905,1,0,0,0,133,907,1,0,0,0,135,909,1,0,0,0,137,911,1,0,0,0,139,917,1,0,0,0,141,924,1,0,0,0,143,928,1,0,0,0,145,934,1,0,0,0,147,938,1,0,0,0,149,944,1,0,0,0,151,952,1,0,0,0,153,956,1,0,0,0,155,961,1,0,0,0,157,965,1,0,0,0,159,971,1,0,0,0,161,974,1,0,0,0,163,978,1,0,0,0,165,985,1,0,0,0,167,996,1,0,0,0,169,1002,1,0,0,0,171,1005,1,0,0,0,173,1012,1,0,0,0,175,1023,1,0,0,0,177,1037,1,0,0,0,179,1045,1,0,0,0,181,1052,1,0,0,0,183,1058,1,0,0,0,185,1069,1,0,0,0,187,1076,1,0,0,0,189,1082,1,0,0,0,191,1092,1,0,0,0,193,1100,1,0,0,0,195,1108,1,0,0,0,197,1111,1,0,0,0,199,1120,1,0,0,0,201,1128,1,0,0,0,203,1133,1,0,0,0,205,1138,1,0,0,0,207,1149,1,0,0,0,209,1155,1,0,0,0,211,1166,1,0,0,0,213,1174,1,0,0,0,215,1181,1,0,0,0,217,1189,1,0,0,0,219,1196,1,0,0,0,221,1204,1,0,0,0,223,1216,1,0,0,0,225,1225,1,0,0,0,227,1233,1,0,0,0,229,1244,1,0,0,0,231,1253,1,0,0,0,233,1259,1,0,0,0,235,1266,1,0,0,0,237,1272,1,0,0,0,239,1277,1,0,0,0,241,1285,1,0,0,0,243,1298,1,0,0,0,245,1311,1,0,0,0,247,1329,1,0,0,0,249,1334,1,0,0,0,251,1343,1,0,0,0,253,1351,1,0,0,0,255,1359,1,0,0,0,257,1367,1,0,0,0,259,1378,1,0,0,0,261,1387,1,0,0,0,263,1394,1,0,0,0,265,1401,1,0,0,0,267,1406,1,0,0,0,269,1415,1,0,0,0,271,1422,1,0,0,0,273,1427,1,0,0,0,275,1437,1,0,0,0,277,1445,1,0,0,0,279,1453,1,0,0,0,281,1462,1,0,0,0,283,1465,1,0,0,0,285,1470,1,0,0,0,287,1475,1,0,0,0,289,1480,1,0,0,0,291,1486,1,0,0,0,293,1499,1,0,0,0,295,1509,1,0,0,0,297,1513,1,0,0,0,299,1518,1,0,0,0,301,1524,1,0,0,0,303,1530,1,0,0,0,305,1537,1,0,0,0,307,1546,1,0,0,0,309,1553,1,0,0,0,311,1561,1,0,0,0,313,1571,1,0,0,0,315,1581,1,0,0,0,317,1588,1,0,0,0,319,1596,1,0,0,0,321,1603,1,0,0,0,323,1612,1,0,0,0,325,1617,1,0,0,0,327,1623,1,0,0,0,329,1630,1,0,0,0,331,1637,1,0,0,0,333,1643,1,0,0,0,335,1651,1,0,0,0,337,1656,1,0,0,0,339,1666,1,0,0,0,341,1670,1,0,0,0,343,1678,1,0,0,0,345,1683,1,0,0,0,347,1688,1,0,0,0,349,1697,1,0,0,0,351,1702,1,0,0,0,353,1709,1,0,0,0,355,1715,1,0,0,0,357,1721,1,0,0,0,359,1730,1,0,0,0,361,1737,1,0,0,0,363,1742,1,0,0,0,365,1749,1,0,0,0,367,1753,1,0,0,0,369,1756,1,0,0,0,371,1763,1,0,0,0,373,1769,1,0,0,0,375,1779,1,0,0,0,377,1786,1,0,0,0,379,1789,1,0,0,0,381,1799,1,0,0,0,383,1811,1,0,0,0,385,1817,1,0,0,0,387,1825,1,0,0,0,389,1834,1,0,0,0,391,1842,1,0,0,0,393,1852,1,0,0,0,395,1858,1,0,0,0,397,1865,1,0,0,0,399,1873,1,0,0,0,401,1883,1,0,0,0,403,1888,1,0,0,0,405,1891,1,0,0,0,407,1898,1,0,0,0,409,1903,1,0,0,0,411,1915,1,0,0,0,413,1926,1,0,0,0,415,1937,1,0,0,0,417,1941,1,0,0,0,419,1946,1,0,0,0,421,1951,1,0,0,0,423,1958,1,0,0,0,425,1963,1,0,0,0,427,1969,1,0,0,0,429,1974,1,0,0,0,431,1980,1,0,0,0,433,1986,1,0,0,0,435,1993,1,0,0,0,437,1999,1,0,0,0,439,2007,1,0,0,0,441,2023,1,0,0,0,443,2032,1,0,0,0,445,2045,1,0,0,0,447,2058,1,0,0,0,449,2065,1,0,0,0,451,2077,1,0,0,0,453,2085,1,0,0,0,455,2090,1,0,0,0,457,2093,1,0,0,0,459,2101,1,0,0,0,461,2105,1,0,0,0,463,2113,1,0,0,0,465,2118,1,0,0,0,467,2124,1,0,0,0,469,2131,1,0,0,0,471,2134,1,0,0,0,473,2141,1,0,0,0,475,2146,1,0,0,0,477,2149,1,0,0,0,479,2153,1,0,0,0,481,2158,1,0,0,0,483,2165,1,0,0,0,485,2174,1,0,0,0,487,2177,1,0,0,0,489,2183,1,0,0,0,491,2190,1,0,0,0,493,2196,1,0,0,0,495,2201,1,0,0,0,497,2210,1,0,0,0,499,2220,1,0,0,0,501,2228,1,0,0,0,503,2237,1,0,0,0,505,2242,1,0,0,0,507,2250,1,0,0,0,509,2254,1,0,0,0,511,2262,1,0,0,0,513,2267,1,0,0,0,515,2272,1,0,0,0,517,2279,1,0,0,0,519,2289,1,0,0,0,521,2297,1,0,0,0,523,2305,1,0,0,0,525,2316,1,0,0,0,527,2324,1,0,0,0,529,2330,1,0,0,0,531,2336,1,0,0,0,533,2342,1,0,0,0,535,2348,1,0,0,0,537,2355,1,0,0,0,539,2366,1,0,0,0,541,2373,1,0,0,0,543,2381,1,0,0,0,545,2389,1,0,0,0,547,2396,1,0,0,0,549,2403,1,0,0,0,551,2414,1,0,0,0,553,2422,1,0,0,0,555,2434,1,0,0,0,557,2440,1,0,0,0,559,2449,1,0,0,0,561,2457,1,0,0,0,563,2465,1,0,0,0,565,2473,1,0,0,0,567,2482,1,0,0,0,569,2489,1,0,0,0,571,2496,1,0,0,0,573,2506,1,0,0,0,575,2513,1,0,0,0,577,2520,1,0,0,0,579,2526,1,0,0,0,581,2532,1,0,0,0,583,2541,1,0,0,0,585,2548,1,0,0,0,587,2552,1,0,0,0,589,2557,1,0,0,0,591,2564,1,0,0,0,593,2574,1,0,0,0,595,2581,1,0,0,0,597,2589,1,0,0,0,599,2594,1,0,0,0,601,2601,1,0,0,0,603,2606,1,0,0,0,605,2610,1,0,0,0,607,2615,1,0,0,0,609,2620,1,0,0,0,611,2625,1,0,0,0,613,2634,1,0,0,0,615,2641,1,0,0,0,617,2647,1,0,0,0,619,2654,1,0,0,0,621,2661,1,0,0,0,623,2670,1,0,0,0,625,2677,1,0,0,0,627,2685,1,0,0,0,629,2695,1,0,0,0,631,2700,1,0,0,0,633,2707,1,0,0,0,635,2713,1,0,0,0,637,2720,1,0,0,0,639,2732,1,0,0,0,641,2743,1,0,0,0,643,2750,1,0,0,0,645,2755,1,0,0,0,647,2765,1,0,0,0,649,2770,1,0,0,0,651,2775,1,0,0,0,653,2778,1,0,0,0,655,2784,1,0,0,0,657,2796,1,0,0,0,659,2805,1,0,0,0,661,2813,1,0,0,0,663,2818,1,0,0,0,665,2824,1,0,0,0,667,2829,1,0,0,0,669,2839,1,0,0,0,671,2853,1,0,0,0,673,2859,1,0,0,0,675,2866,1,0,0,0,677,2874,1,0,0,0,679,2884,1,0,0,0,681,2891,1,0,0,0,683,2898,1,0,0,0,685,2902,1,0,0,0,687,2907,1,0,0,0,689,2913,1,0,0,0,691,2920,1,0,0,0,693,2927,1,0,0,0,695,2935,1,0,0,0,697,2940,1,0,0,0,699,2948,1,0,0,0,701,2953,1,0,0,0,703,2959,1,0,0,0,705,2966,1,0,0,0,707,2971,1,0,0,0,709,2979,1,0,0,0,711,2987,1,0,0,0,713,2995,1,0,0,0,715,3001,1,0,0,0,717,3003,1,0,0,0,719,3012,1,0,0,0,721,3030,1,0,0,0,723,3040,1,0,0,0,725,3054,1,0,0,0,727,3067,1,0,0,0,729,3069,1,0,0,0,731,3078,1,0,0,0,733,3080,1,0,0,0,735,3082,1,0,0,0,737,3089,1,0,0,0,739,3096,1,0,0,0,741,3104,1,0,0,0,743,3112,1,0,0,0,745,3114,1,0,0,0,747,3127,1,0,0,0,749,3148,1,0,0,0,751,3160,1,0,0,0,753,3169,1,0,0,0,755,3181,1,0,0,0,757,3197,1,0,0,0,759,3203,1,0,0,0,761,762,5,61,0,0,762,2,1,0,0,0,763,764,5,61,0,0,764,765,5,61,0,0,765,4,1,0,0,0,766,767,5,33,0,0,767,768,5,61,0,0,768,6,1,0,0,0,769,770,5,60,0,0,770,771,5,62,0,0,771,8,1,0,0,0,772,773,5,60,0,0,773,10,1,0,0,0,774,775,5,60,0,0,775,776,5,61,0,0,776,12,1,0,0,0,777,778,5,62,0,0,778,14,1,0,0,0,779,780,5,62,0,0,780,781,5,61,0,0,781,16,1,0,0,0,782,783,5,60,0,0,783,784,5,60,0,0,784,18,1,0,0,0,785,786,5,124,0,0,786,787,5,60,0,0,787,788,5,60,0,0,788,20,1,0,0,0,789,790,5,38,0,0,790,22,1,0,0,0,791,792,5,124,0,0,792,24,1,0,0,0,793,794,5,124,0,0,794,795,5,124,0,0,795,26,1,0,0,0,796,797,5,60,0,0,797,798,5,124,0,0,798,28,1,0,0,0,799,800,5,124,0,0,800,801,5,62,0,0,801,30,1,0,0,0,802,803,5,43,0,0,803,32,1,0,0,0,804,805,5,45,0,0,805,34,1,0,0,0,806,807,5,126,0,0,807,36,1,0,0,0,808,809,5,42,0,0,809,38,1,0,0,0,810,811,5,47,0,0,811,40,1,0,0,0,812,813,5,37,0,0,813,42,1,0,0,0,814,815,5,59,0,0,815,44,1,0,0,0,816,817,5,46,0,0,817,46,1,0,0,0,818,819,5,44,0,0,819,48,1,0,0,0,820,821,5,40,0,0,821,50,1,0,0,0,822,823,5,41,0,0,823,52,1,0,0,0,824,825,5,63,0,0,825,54,1,0,0,0,826,827,5,58,0,0,827,56,1,0,0,0,828,829,5,64,0,0,829,58,1,0,0,0,830,831,5,36,0,0,831,60,1,0,0,0,832,833,5,123,0,0,833,62,1,0,0,0,834,835,5,125,0,0,835,64,1,0,0,0,836,837,5,94,0,0,837,66,1,0,0,0,838,839,5,58,0,0,839,840,5,58,0,0,840,68,1,0,0,0,841,842,5,45,0,0,842,843,5,62,0,0,843,70,1,0,0,0,844,845,5,93,0,0,845,72,1,0,0,0,846,847,5,91,0,0,847,74,1,0,0,0,848,849,5,92,0,0,849,76,1,0,0,0,850,851,5,34,0,0,851,78,1,0,0,0,852,853,5,39,0,0,853,80,1,0,0,0,854,855,5,96,0,0,855,82,1,0,0,0,856,857,5,64,0,0,857,858,5,64,0,0,858,84,1,0,0,0,859,860,7,0,0,0,860,86,1,0,0,0,861,862,7,1,0,0,862,88,1,0,0,0,863,864,7,2,0,0,864,90,1,0,0,0,865,866,7,3,0,0,866,92,1,0,0,0,867,868,7,4,0,0,868,94,1,0,0,0,869,870,7,5,0,0,870,96,1,0,0,0,871,872,7,6,0,0,872,98,1,0,0,0,873,874,7,7,0,0,874,100,1,0,0,0,875,876,7,8,0,0,876,102,1,0,0,0,877,878,7,9,0,0,878,104,1,0,0,0,879,880,7,10,0,0,880,106,1,0,0,0,881,882,7,11,0,0,882,108,1,0,0,0,883,884,7,12,0,0,884,110,1,0,0,0,885,886,7,13,0,0,886,112,1,0,0,0,887,888,7,14,0,0,888,114,1,0,0,0,889,890,7,15,0,0,890,116,1,0,0,0,891,892,7,16,0,0,892,118,1,0,0,0,893,894,7,17,0,0,894,120,1,0,0,0,895,896,7,18,0,0,896,122,1,0,0,0,897,898,7,19,0,0,898,124,1,0,0,0,899,900,7,20,0,0,900,126,1,0,0,0,901,902,7,21,0,0,902,128,1,0,0,0,903,904,7,22,0,0,904,130,1,0,0,0,905,906,7,23,0,0,906,132,1,0,0,0,907,908,7,24,0,0,908,134,1,0,0,0,909,910,7,25,0,0,910,136,1,0,0,0,911,912,3,85,42,0,912,913,3,87,43,0,913,914,3,113,56,0,914,915,3,119,59,0,915,916,3,123,61,0,916,138,1,0,0,0,917,918,3,85,42,0,918,919,3,89,44,0,919,920,3,123,61,0,920,921,3,101,50,0,921,922,3,113,56,0,922,923,3,111,55,0,923,140,1,0,0,0,924,925,3,85,42,0,925,926,3,91,45,0,926,927,3,91,45,0,927,142,1,0,0,0,928,929,3,85,42,0,929,930,3,95,47,0,930,931,3,123,61,0,931,932,3,93,46,0,932,933,3,119,59,0,933,144,1,0,0,0,934,935,3,85,42,0,935,936,3,107,53,0,936,937,3,107,53,0,937,146,1,0,0,0,938,939,3,85,42,0,939,940,3,107,53,0,940,941,3,123,61,0,941,942,3,93,46,0,942,943,3,119,59,0,943,148,1,0,0,0,944,945,3,85,42,0,945,946,3,111,55,0,946,947,3,85,42,0,947,948,3,107,53,0,948,949,3,133,66,0,949,950,3,135,67,0,950,951,3,93,46,0,951,150,1,0,0,0,952,953,3,85,42,0,953,954,3,111,55,0,954,955,3,91,45,0,955,152,1,0,0,0,956,957,3,85,42,0,957,958,3,111,55,0,958,959,3,121,60,0,959,960,3,101,50,0,960,154,1,0,0,0,961,962,3,85,42,0,962,963,3,111,55,0,963,964,3,133,66,0,964,156,1,0,0,0,965,966,3,85,42,0,966,967,3,119,59,0,967,968,3,119,59,0,968,969,3,85,42,0,969,970,3,133,66,0,970,158,1,0,0,0,971,972,3,85,42,0,972,973,3,121,60,0,973,160,1,0,0,0,974,975,3,85,42,0,975,976,3,121,60,0,976,977,3,89,44,0,977,162,1,0,0,0,978,979,3,85,42,0,979,980,3,121,60,0,980,981,3,121,60,0,981,982,3,125,62,0,982,983,3,109,54,0,983,984,3,93,46,0,984,164,1,0,0,0,985,986,3,85,42,0,986,987,3,121,60,0,987,988,3,133,66,0,988,989,3,109,54,0,989,990,3,109,54,0,990,991,3,93,46,0,991,992,3,123,61,0,992,993,3,119,59,0,993,994,3,101,50,0,994,995,3,89,44,0,995,166,1,0,0,0,996,997,3,85,42,0,997,998,3,121,60,0,998,999,3,133,66,0,999,1e3,3,111,55,0,1e3,1001,3,89,44,0,1001,168,1,0,0,0,1002,1003,3,85,42,0,1003,1004,3,123,61,0,1004,170,1,0,0,0,1005,1006,3,85,42,0,1006,1007,3,123,61,0,1007,1008,3,123,61,0,1008,1009,3,85,42,0,1009,1010,3,89,44,0,1010,1011,3,99,49,0,1011,172,1,0,0,0,1012,1013,3,85,42,0,1013,1014,3,123,61,0,1014,1015,3,123,61,0,1015,1016,3,119,59,0,1016,1017,3,101,50,0,1017,1018,3,87,43,0,1018,1019,3,125,62,0,1019,1020,3,123,61,0,1020,1021,3,93,46,0,1021,1022,3,121,60,0,1022,174,1,0,0,0,1023,1024,3,85,42,0,1024,1025,3,125,62,0,1025,1026,3,123,61,0,1026,1027,3,113,56,0,1027,1028,3,101,50,0,1028,1029,3,111,55,0,1029,1030,3,89,44,0,1030,1031,3,119,59,0,1031,1032,3,93,46,0,1032,1033,3,109,54,0,1033,1034,3,93,46,0,1034,1035,3,111,55,0,1035,1036,3,123,61,0,1036,176,1,0,0,0,1037,1038,3,85,42,0,1038,1039,3,125,62,0,1039,1040,3,123,61,0,1040,1041,3,113,56,0,1041,1042,3,109,54,0,1042,1043,3,85,42,0,1043,1044,3,115,57,0,1044,178,1,0,0,0,1045,1046,3,87,43,0,1046,1047,3,85,42,0,1047,1048,3,89,44,0,1048,1049,3,105,52,0,1049,1050,3,125,62,0,1050,1051,3,115,57,0,1051,180,1,0,0,0,1052,1053,3,87,43,0,1053,1054,3,85,42,0,1054,1055,3,123,61,0,1055,1056,3,89,44,0,1056,1057,3,99,49,0,1057,182,1,0,0,0,1058,1059,3,89,44,0,1059,1060,3,113,56,0,1060,1061,3,107,53,0,1061,1062,3,107,53,0,1062,1063,3,93,46,0,1063,1064,3,89,44,0,1064,1065,3,123,61,0,1065,1066,3,101,50,0,1066,1067,3,113,56,0,1067,1068,3,111,55,0,1068,184,1,0,0,0,1069,1070,3,87,43,0,1070,1071,3,93,46,0,1071,1072,3,95,47,0,1072,1073,3,113,56,0,1073,1074,3,119,59,0,1074,1075,3,93,46,0,1075,186,1,0,0,0,1076,1077,3,87,43,0,1077,1078,3,93,46,0,1078,1079,3,97,48,0,1079,1080,3,101,50,0,1080,1081,3,111,55,0,1081,188,1,0,0,0,1082,1083,3,87,43,0,1083,1084,3,93,46,0,1084,1085,3,119,59,0,1085,1086,3,111,55,0,1086,1087,3,113,56,0,1087,1088,3,125,62,0,1088,1089,3,107,53,0,1089,1090,3,107,53,0,1090,1091,3,101,50,0,1091,190,1,0,0,0,1092,1093,3,87,43,0,1093,1094,3,93,46,0,1094,1095,3,123,61,0,1095,1096,3,129,64,0,1096,1097,3,93,46,0,1097,1098,3,93,46,0,1098,1099,3,111,55,0,1099,192,1,0,0,0,1100,1101,3,87,43,0,1101,1102,3,101,50,0,1102,1103,3,123,61,0,1103,1104,3,89,44,0,1104,1105,3,85,42,0,1105,1106,3,121,60,0,1106,1107,3,123,61,0,1107,194,1,0,0,0,1108,1109,3,87,43,0,1109,1110,3,133,66,0,1110,196,1,0,0,0,1111,1112,3,89,44,0,1112,1113,3,85,42,0,1113,1114,3,107,53,0,1114,1115,3,107,53,0,1115,1116,3,85,42,0,1116,1117,3,87,43,0,1117,1118,3,107,53,0,1118,1119,3,93,46,0,1119,198,1,0,0,0,1120,1121,3,89,44,0,1121,1122,3,85,42,0,1122,1123,3,121,60,0,1123,1124,3,89,44,0,1124,1125,3,85,42,0,1125,1126,3,91,45,0,1126,1127,3,93,46,0,1127,200,1,0,0,0,1128,1129,3,89,44,0,1129,1130,3,85,42,0,1130,1131,3,121,60,0,1131,1132,3,93,46,0,1132,202,1,0,0,0,1133,1134,3,89,44,0,1134,1135,3,85,42,0,1135,1136,3,121,60,0,1136,1137,3,123,61,0,1137,204,1,0,0,0,1138,1139,3,89,44,0,1139,1140,3,99,49,0,1140,1141,3,85,42,0,1141,1142,3,111,55,0,1142,1143,3,97,48,0,1143,1144,3,93,46,0,1144,1145,3,95,47,0,1145,1146,3,93,46,0,1146,1147,3,93,46,0,1147,1148,3,91,45,0,1148,206,1,0,0,0,1149,1150,3,89,44,0,1150,1151,3,99,49,0,1151,1152,3,93,46,0,1152,1153,3,89,44,0,1153,1154,3,105,52,0,1154,208,1,0,0,0,1155,1156,3,89,44,0,1156,1157,3,107,53,0,1157,1158,3,85,42,0,1158,1159,3,121,60,0,1159,1160,3,121,60,0,1160,1161,3,101,50,0,1161,1162,3,95,47,0,1162,1163,3,101,50,0,1163,1164,3,93,46,0,1164,1165,3,119,59,0,1165,210,1,0,0,0,1166,1167,3,89,44,0,1167,1168,3,113,56,0,1168,1169,3,107,53,0,1169,1170,3,107,53,0,1170,1171,3,85,42,0,1171,1172,3,123,61,0,1172,1173,3,93,46,0,1173,212,1,0,0,0,1174,1175,3,89,44,0,1175,1176,3,113,56,0,1176,1177,3,107,53,0,1177,1178,3,125,62,0,1178,1179,3,109,54,0,1179,1180,3,111,55,0,1180,214,1,0,0,0,1181,1182,3,89,44,0,1182,1183,3,113,56,0,1183,1184,3,107,53,0,1184,1185,3,125,62,0,1185,1186,3,109,54,0,1186,1187,3,111,55,0,1187,1188,3,121,60,0,1188,216,1,0,0,0,1189,1190,3,89,44,0,1190,1191,3,113,56,0,1191,1192,3,109,54,0,1192,1193,3,109,54,0,1193,1194,3,101,50,0,1194,1195,3,123,61,0,1195,218,1,0,0,0,1196,1197,3,89,44,0,1197,1198,3,113,56,0,1198,1199,3,109,54,0,1199,1200,3,115,57,0,1200,1201,3,85,42,0,1201,1202,3,89,44,0,1202,1203,3,123,61,0,1203,220,1,0,0,0,1204,1205,3,89,44,0,1205,1206,3,113,56,0,1206,1207,3,111,55,0,1207,1208,3,91,45,0,1208,1209,3,101,50,0,1209,1210,3,123,61,0,1210,1211,3,101,50,0,1211,1212,3,113,56,0,1212,1213,3,111,55,0,1213,1214,3,85,42,0,1214,1215,3,107,53,0,1215,222,1,0,0,0,1216,1217,3,89,44,0,1217,1218,3,113,56,0,1218,1219,3,111,55,0,1219,1220,3,95,47,0,1220,1221,3,107,53,0,1221,1222,3,101,50,0,1222,1223,3,89,44,0,1223,1224,3,123,61,0,1224,224,1,0,0,0,1225,1226,3,89,44,0,1226,1227,3,113,56,0,1227,1228,3,111,55,0,1228,1229,3,111,55,0,1229,1230,3,93,46,0,1230,1231,3,89,44,0,1231,1232,3,123,61,0,1232,226,1,0,0,0,1233,1234,3,89,44,0,1234,1235,3,113,56,0,1235,1236,3,111,55,0,1236,1237,3,121,60,0,1237,1238,3,123,61,0,1238,1239,3,119,59,0,1239,1240,3,85,42,0,1240,1241,3,101,50,0,1241,1242,3,111,55,0,1242,1243,3,123,61,0,1243,228,1,0,0,0,1244,1245,3,89,44,0,1245,1246,3,113,56,0,1246,1247,3,111,55,0,1247,1248,3,121,60,0,1248,1249,3,125,62,0,1249,1250,3,109,54,0,1250,1251,3,93,46,0,1251,1252,3,119,59,0,1252,230,1,0,0,0,1253,1254,3,89,44,0,1254,1255,3,113,56,0,1255,1256,3,127,63,0,1256,1257,3,93,46,0,1257,1258,3,119,59,0,1258,232,1,0,0,0,1259,1260,3,89,44,0,1260,1261,3,119,59,0,1261,1262,3,93,46,0,1262,1263,3,85,42,0,1263,1264,3,123,61,0,1264,1265,3,93,46,0,1265,234,1,0,0,0,1266,1267,3,89,44,0,1267,1268,3,119,59,0,1268,1269,3,113,56,0,1269,1270,3,121,60,0,1270,1271,3,121,60,0,1271,236,1,0,0,0,1272,1273,3,89,44,0,1273,1274,3,125,62,0,1274,1275,3,87,43,0,1275,1276,3,93,46,0,1276,238,1,0,0,0,1277,1278,3,89,44,0,1278,1279,3,125,62,0,1279,1280,3,119,59,0,1280,1281,3,119,59,0,1281,1282,3,93,46,0,1282,1283,3,111,55,0,1283,1284,3,123,61,0,1284,240,1,0,0,0,1285,1286,3,89,44,0,1286,1287,3,125,62,0,1287,1288,3,119,59,0,1288,1289,3,119,59,0,1289,1290,3,93,46,0,1290,1291,3,111,55,0,1291,1292,3,123,61,0,1292,1293,5,95,0,0,1293,1294,3,91,45,0,1294,1295,3,85,42,0,1295,1296,3,123,61,0,1296,1297,3,93,46,0,1297,242,1,0,0,0,1298,1299,3,89,44,0,1299,1300,3,125,62,0,1300,1301,3,119,59,0,1301,1302,3,119,59,0,1302,1303,3,93,46,0,1303,1304,3,111,55,0,1304,1305,3,123,61,0,1305,1306,5,95,0,0,1306,1307,3,123,61,0,1307,1308,3,101,50,0,1308,1309,3,109,54,0,1309,1310,3,93,46,0,1310,244,1,0,0,0,1311,1312,3,89,44,0,1312,1313,3,125,62,0,1313,1314,3,119,59,0,1314,1315,3,119,59,0,1315,1316,3,93,46,0,1316,1317,3,111,55,0,1317,1318,3,123,61,0,1318,1319,5,95,0,0,1319,1320,3,123,61,0,1320,1321,3,101,50,0,1321,1322,3,109,54,0,1322,1323,3,93,46,0,1323,1324,3,121,60,0,1324,1325,3,123,61,0,1325,1326,3,85,42,0,1326,1327,3,109,54,0,1327,1328,3,115,57,0,1328,246,1,0,0,0,1329,1330,3,91,45,0,1330,1331,3,85,42,0,1331,1332,3,123,61,0,1332,1333,3,85,42,0,1333,248,1,0,0,0,1334,1335,3,91,45,0,1335,1336,3,85,42,0,1336,1337,3,123,61,0,1337,1338,3,85,42,0,1338,1339,3,87,43,0,1339,1340,3,85,42,0,1340,1341,3,121,60,0,1341,1342,3,93,46,0,1342,250,1,0,0,0,1343,1344,3,91,45,0,1344,1345,3,93,46,0,1345,1346,3,89,44,0,1346,1347,3,101,50,0,1347,1348,3,109,54,0,1348,1349,3,85,42,0,1349,1350,3,107,53,0,1350,252,1,0,0,0,1351,1352,3,91,45,0,1352,1353,3,93,46,0,1353,1354,3,89,44,0,1354,1355,3,107,53,0,1355,1356,3,85,42,0,1356,1357,3,119,59,0,1357,1358,3,93,46,0,1358,254,1,0,0,0,1359,1360,3,91,45,0,1360,1361,3,93,46,0,1361,1362,3,95,47,0,1362,1363,3,85,42,0,1363,1364,3,125,62,0,1364,1365,3,107,53,0,1365,1366,3,123,61,0,1366,256,1,0,0,0,1367,1368,3,91,45,0,1368,1369,3,93,46,0,1369,1370,3,95,47,0,1370,1371,3,93,46,0,1371,1372,3,119,59,0,1372,1373,3,119,59,0,1373,1374,3,85,42,0,1374,1375,3,87,43,0,1375,1376,3,107,53,0,1376,1377,3,93,46,0,1377,258,1,0,0,0,1378,1379,3,91,45,0,1379,1380,3,93,46,0,1380,1381,3,95,47,0,1381,1382,3,93,46,0,1382,1383,3,119,59,0,1383,1384,3,119,59,0,1384,1385,3,93,46,0,1385,1386,3,91,45,0,1386,260,1,0,0,0,1387,1388,3,91,45,0,1388,1389,3,93,46,0,1389,1390,3,95,47,0,1390,1391,3,101,50,0,1391,1392,3,111,55,0,1392,1393,3,93,46,0,1393,262,1,0,0,0,1394,1395,3,91,45,0,1395,1396,3,93,46,0,1396,1397,3,107,53,0,1397,1398,3,93,46,0,1398,1399,3,123,61,0,1399,1400,3,93,46,0,1400,264,1,0,0,0,1401,1402,3,91,45,0,1402,1403,3,93,46,0,1403,1404,3,121,60,0,1404,1405,3,89,44,0,1405,266,1,0,0,0,1406,1407,3,91,45,0,1407,1408,3,93,46,0,1408,1409,3,121,60,0,1409,1410,3,89,44,0,1410,1411,3,119,59,0,1411,1412,3,101,50,0,1412,1413,3,87,43,0,1413,1414,3,93,46,0,1414,268,1,0,0,0,1415,1416,3,91,45,0,1416,1417,3,93,46,0,1417,1418,3,123,61,0,1418,1419,3,85,42,0,1419,1420,3,89,44,0,1420,1421,3,99,49,0,1421,270,1,0,0,0,1422,1423,3,91,45,0,1423,1424,3,101,50,0,1424,1425,3,89,44,0,1425,1426,3,123,61,0,1426,272,1,0,0,0,1427,1428,3,91,45,0,1428,1429,3,101,50,0,1429,1430,3,119,59,0,1430,1431,3,93,46,0,1431,1432,3,89,44,0,1432,1433,3,123,61,0,1433,1434,3,113,56,0,1434,1435,3,119,59,0,1435,1436,3,133,66,0,1436,274,1,0,0,0,1437,1438,3,91,45,0,1438,1439,3,101,50,0,1439,1440,3,121,60,0,1440,1441,3,85,42,0,1441,1442,3,87,43,0,1442,1443,3,107,53,0,1443,1444,3,93,46,0,1444,276,1,0,0,0,1445,1446,3,91,45,0,1446,1447,3,101,50,0,1447,1448,3,121,60,0,1448,1449,3,89,44,0,1449,1450,3,85,42,0,1450,1451,3,119,59,0,1451,1452,3,91,45,0,1452,278,1,0,0,0,1453,1454,3,91,45,0,1454,1455,3,101,50,0,1455,1456,3,121,60,0,1456,1457,3,123,61,0,1457,1458,3,101,50,0,1458,1459,3,111,55,0,1459,1460,3,89,44,0,1460,1461,3,123,61,0,1461,280,1,0,0,0,1462,1463,3,91,45,0,1463,1464,3,113,56,0,1464,282,1,0,0,0,1465,1466,3,91,45,0,1466,1467,3,119,59,0,1467,1468,3,113,56,0,1468,1469,3,115,57,0,1469,284,1,0,0,0,1470,1471,3,93,46,0,1471,1472,3,85,42,0,1472,1473,3,89,44,0,1473,1474,3,99,49,0,1474,286,1,0,0,0,1475,1476,3,93,46,0,1476,1477,3,107,53,0,1477,1478,3,121,60,0,1478,1479,3,93,46,0,1479,288,1,0,0,0,1480,1481,3,93,46,0,1481,1482,3,109,54,0,1482,1483,3,115,57,0,1483,1484,3,123,61,0,1484,1485,3,133,66,0,1485,290,1,0,0,0,1486,1487,3,93,46,0,1487,1488,3,109,54,0,1488,1489,3,115,57,0,1489,1490,3,123,61,0,1490,1491,3,133,66,0,1491,1492,5,95,0,0,1492,1493,3,85,42,0,1493,1494,3,89,44,0,1494,1495,3,123,61,0,1495,1496,3,101,50,0,1496,1497,3,113,56,0,1497,1498,3,111,55,0,1498,292,1,0,0,0,1499,1500,3,93,46,0,1500,1501,3,111,55,0,1501,1502,3,89,44,0,1502,1503,3,119,59,0,1503,1504,3,133,66,0,1504,1505,3,115,57,0,1505,1506,3,123,61,0,1506,1507,3,93,46,0,1507,1508,3,91,45,0,1508,294,1,0,0,0,1509,1510,3,93,46,0,1510,1511,3,111,55,0,1511,1512,3,91,45,0,1512,296,1,0,0,0,1513,1514,3,93,46,0,1514,1515,3,111,55,0,1515,1516,3,125,62,0,1516,1517,3,109,54,0,1517,298,1,0,0,0,1518,1519,3,93,46,0,1519,1520,3,119,59,0,1520,1521,3,85,42,0,1521,1522,3,121,60,0,1522,1523,3,93,46,0,1523,300,1,0,0,0,1524,1525,3,93,46,0,1525,1526,3,119,59,0,1526,1527,3,119,59,0,1527,1528,3,113,56,0,1528,1529,3,119,59,0,1529,302,1,0,0,0,1530,1531,3,93,46,0,1531,1532,3,121,60,0,1532,1533,3,89,44,0,1533,1534,3,85,42,0,1534,1535,3,115,57,0,1535,1536,3,93,46,0,1536,304,1,0,0,0,1537,1538,3,93,46,0,1538,1539,3,127,63,0,1539,1540,3,85,42,0,1540,1541,3,107,53,0,1541,1542,3,125,62,0,1542,1543,3,85,42,0,1543,1544,3,123,61,0,1544,1545,3,93,46,0,1545,306,1,0,0,0,1546,1547,3,93,46,0,1547,1548,3,131,65,0,1548,1549,3,89,44,0,1549,1550,3,93,46,0,1550,1551,3,115,57,0,1551,1552,3,123,61,0,1552,308,1,0,0,0,1553,1554,3,93,46,0,1554,1555,3,131,65,0,1555,1556,3,89,44,0,1556,1557,3,107,53,0,1557,1558,3,125,62,0,1558,1559,3,91,45,0,1559,1560,3,93,46,0,1560,310,1,0,0,0,1561,1562,3,93,46,0,1562,1563,3,131,65,0,1563,1564,3,89,44,0,1564,1565,3,107,53,0,1565,1566,3,125,62,0,1566,1567,3,121,60,0,1567,1568,3,101,50,0,1568,1569,3,113,56,0,1569,1570,3,111,55,0,1570,312,1,0,0,0,1571,1572,3,93,46,0,1572,1573,3,131,65,0,1573,1574,3,89,44,0,1574,1575,3,107,53,0,1575,1576,3,125,62,0,1576,1577,3,121,60,0,1577,1578,3,101,50,0,1578,1579,3,127,63,0,1579,1580,3,93,46,0,1580,314,1,0,0,0,1581,1582,3,93,46,0,1582,1583,3,131,65,0,1583,1584,3,101,50,0,1584,1585,3,121,60,0,1585,1586,3,123,61,0,1586,1587,3,121,60,0,1587,316,1,0,0,0,1588,1589,3,93,46,0,1589,1590,3,131,65,0,1590,1591,3,115,57,0,1591,1592,3,107,53,0,1592,1593,3,85,42,0,1593,1594,3,101,50,0,1594,1595,3,111,55,0,1595,318,1,0,0,0,1596,1597,3,93,46,0,1597,1598,3,131,65,0,1598,1599,3,115,57,0,1599,1600,3,113,56,0,1600,1601,3,119,59,0,1601,1602,3,123,61,0,1602,320,1,0,0,0,1603,1604,3,93,46,0,1604,1605,3,131,65,0,1605,1606,3,123,61,0,1606,1607,3,93,46,0,1607,1608,3,119,59,0,1608,1609,3,111,55,0,1609,1610,3,85,42,0,1610,1611,3,107,53,0,1611,322,1,0,0,0,1612,1613,3,95,47,0,1613,1614,3,85,42,0,1614,1615,3,101,50,0,1615,1616,3,107,53,0,1616,324,1,0,0,0,1617,1618,3,95,47,0,1618,1619,3,85,42,0,1619,1620,3,107,53,0,1620,1621,3,121,60,0,1621,1622,3,93,46,0,1622,326,1,0,0,0,1623,1624,3,95,47,0,1624,1625,3,85,42,0,1625,1626,3,109,54,0,1626,1627,3,101,50,0,1627,1628,3,107,53,0,1628,1629,3,133,66,0,1629,328,1,0,0,0,1630,1631,3,95,47,0,1631,1632,3,101,50,0,1632,1633,3,107,53,0,1633,1634,3,123,61,0,1634,1635,3,93,46,0,1635,1636,3,119,59,0,1636,330,1,0,0,0,1637,1638,3,95,47,0,1638,1639,3,101,50,0,1639,1640,3,119,59,0,1640,1641,3,121,60,0,1641,1642,3,123,61,0,1642,332,1,0,0,0,1643,1644,3,95,47,0,1644,1645,3,107,53,0,1645,1646,3,85,42,0,1646,1647,3,123,61,0,1647,1648,3,123,61,0,1648,1649,3,93,46,0,1649,1650,3,111,55,0,1650,334,1,0,0,0,1651,1652,3,95,47,0,1652,1653,3,107,53,0,1653,1654,3,113,56,0,1654,1655,3,129,64,0,1655,336,1,0,0,0,1656,1657,3,95,47,0,1657,1658,3,113,56,0,1658,1659,3,107,53,0,1659,1660,3,107,53,0,1660,1661,3,113,56,0,1661,1662,3,129,64,0,1662,1663,3,101,50,0,1663,1664,3,111,55,0,1664,1665,3,97,48,0,1665,338,1,0,0,0,1666,1667,3,95,47,0,1667,1668,3,113,56,0,1668,1669,3,119,59,0,1669,340,1,0,0,0,1670,1671,3,95,47,0,1671,1672,3,113,56,0,1672,1673,3,119,59,0,1673,1674,3,93,46,0,1674,1675,3,101,50,0,1675,1676,3,97,48,0,1676,1677,3,111,55,0,1677,342,1,0,0,0,1678,1679,3,95,47,0,1679,1680,3,119,59,0,1680,1681,3,113,56,0,1681,1682,3,109,54,0,1682,344,1,0,0,0,1683,1684,3,95,47,0,1684,1685,3,125,62,0,1685,1686,3,107,53,0,1686,1687,3,107,53,0,1687,346,1,0,0,0,1688,1689,3,95,47,0,1689,1690,3,125,62,0,1690,1691,3,111,55,0,1691,1692,3,89,44,0,1692,1693,3,123,61,0,1693,1694,3,101,50,0,1694,1695,3,113,56,0,1695,1696,3,111,55,0,1696,348,1,0,0,0,1697,1698,3,97,48,0,1698,1699,3,107,53,0,1699,1700,3,113,56,0,1700,1701,3,87,43,0,1701,350,1,0,0,0,1702,1703,3,97,48,0,1703,1704,3,107,53,0,1704,1705,3,113,56,0,1705,1706,3,87,43,0,1706,1707,3,85,42,0,1707,1708,3,107,53,0,1708,352,1,0,0,0,1709,1710,3,97,48,0,1710,1711,3,119,59,0,1711,1712,3,85,42,0,1712,1713,3,111,55,0,1713,1714,3,123,61,0,1714,354,1,0,0,0,1715,1716,3,97,48,0,1716,1717,3,119,59,0,1717,1718,3,113,56,0,1718,1719,3,125,62,0,1719,1720,3,115,57,0,1720,356,1,0,0,0,1721,1722,3,97,48,0,1722,1723,3,119,59,0,1723,1724,3,113,56,0,1724,1725,3,125,62,0,1725,1726,3,115,57,0,1726,1727,3,101,50,0,1727,1728,3,111,55,0,1728,1729,3,97,48,0,1729,358,1,0,0,0,1730,1731,3,97,48,0,1731,1732,3,119,59,0,1732,1733,3,113,56,0,1733,1734,3,125,62,0,1734,1735,3,115,57,0,1735,1736,3,121,60,0,1736,360,1,0,0,0,1737,1738,3,99,49,0,1738,1739,3,85,42,0,1739,1740,3,121,60,0,1740,1741,3,99,49,0,1741,362,1,0,0,0,1742,1743,3,99,49,0,1743,1744,3,85,42,0,1744,1745,3,127,63,0,1745,1746,3,101,50,0,1746,1747,3,111,55,0,1747,1748,3,97,48,0,1748,364,1,0,0,0,1749,1750,3,99,49,0,1750,1751,3,113,56,0,1751,1752,3,115,57,0,1752,366,1,0,0,0,1753,1754,3,101,50,0,1754,1755,3,95,47,0,1755,368,1,0,0,0,1756,1757,3,101,50,0,1757,1758,3,97,48,0,1758,1759,3,111,55,0,1759,1760,3,113,56,0,1760,1761,3,119,59,0,1761,1762,3,93,46,0,1762,370,1,0,0,0,1763,1764,3,101,50,0,1764,1765,3,107,53,0,1765,1766,3,101,50,0,1766,1767,3,105,52,0,1767,1768,3,93,46,0,1768,372,1,0,0,0,1769,1770,3,101,50,0,1770,1771,3,109,54,0,1771,1772,3,109,54,0,1772,1773,3,93,46,0,1773,1774,3,91,45,0,1774,1775,3,101,50,0,1775,1776,3,85,42,0,1776,1777,3,123,61,0,1777,1778,3,93,46,0,1778,374,1,0,0,0,1779,1780,3,101,50,0,1780,1781,3,109,54,0,1781,1782,3,115,57,0,1782,1783,3,113,56,0,1783,1784,3,119,59,0,1784,1785,3,123,61,0,1785,376,1,0,0,0,1786,1787,3,101,50,0,1787,1788,3,111,55,0,1788,378,1,0,0,0,1789,1790,3,101,50,0,1790,1791,3,111,55,0,1791,1792,3,89,44,0,1792,1793,3,119,59,0,1793,1794,3,93,46,0,1794,1795,3,109,54,0,1795,1796,3,93,46,0,1796,1797,3,111,55,0,1797,1798,3,123,61,0,1798,380,1,0,0,0,1799,1800,3,101,50,0,1800,1801,3,111,55,0,1801,1802,3,89,44,0,1802,1803,3,119,59,0,1803,1804,3,93,46,0,1804,1805,3,109,54,0,1805,1806,3,93,46,0,1806,1807,3,111,55,0,1807,1808,3,123,61,0,1808,1809,3,85,42,0,1809,1810,3,107,53,0,1810,382,1,0,0,0,1811,1812,3,101,50,0,1812,1813,3,111,55,0,1813,1814,3,91,45,0,1814,1815,3,93,46,0,1815,1816,3,131,65,0,1816,384,1,0,0,0,1817,1818,3,101,50,0,1818,1819,3,111,55,0,1819,1820,3,91,45,0,1820,1821,3,93,46,0,1821,1822,3,131,65,0,1822,1823,3,93,46,0,1823,1824,3,91,45,0,1824,386,1,0,0,0,1825,1826,3,101,50,0,1826,1827,3,111,55,0,1827,1828,3,99,49,0,1828,1829,3,93,46,0,1829,1830,3,119,59,0,1830,1831,3,101,50,0,1831,1832,3,123,61,0,1832,1833,3,121,60,0,1833,388,1,0,0,0,1834,1835,3,101,50,0,1835,1836,3,111,55,0,1836,1837,3,101,50,0,1837,1838,3,123,61,0,1838,1839,3,101,50,0,1839,1840,3,85,42,0,1840,1841,3,107,53,0,1841,390,1,0,0,0,1842,1843,3,101,50,0,1843,1844,3,111,55,0,1844,1845,3,101,50,0,1845,1846,3,123,61,0,1846,1847,3,101,50,0,1847,1848,3,85,42,0,1848,1849,3,107,53,0,1849,1850,3,107,53,0,1850,1851,3,133,66,0,1851,392,1,0,0,0,1852,1853,3,101,50,0,1853,1854,3,111,55,0,1854,1855,3,111,55,0,1855,1856,3,93,46,0,1856,1857,3,119,59,0,1857,394,1,0,0,0,1858,1859,3,101,50,0,1859,1860,3,111,55,0,1860,1861,3,121,60,0,1861,1862,3,93,46,0,1862,1863,3,119,59,0,1863,1864,3,123,61,0,1864,396,1,0,0,0,1865,1866,3,101,50,0,1866,1867,3,111,55,0,1867,1868,3,121,60,0,1868,1869,3,123,61,0,1869,1870,3,93,46,0,1870,1871,3,85,42,0,1871,1872,3,91,45,0,1872,398,1,0,0,0,1873,1874,3,101,50,0,1874,1875,3,111,55,0,1875,1876,3,123,61,0,1876,1877,3,93,46,0,1877,1878,3,119,59,0,1878,1879,3,121,60,0,1879,1880,3,93,46,0,1880,1881,3,89,44,0,1881,1882,3,123,61,0,1882,400,1,0,0,0,1883,1884,3,101,50,0,1884,1885,3,111,55,0,1885,1886,3,123,61,0,1886,1887,3,113,56,0,1887,402,1,0,0,0,1888,1889,3,101,50,0,1889,1890,3,121,60,0,1890,404,1,0,0,0,1891,1892,3,101,50,0,1892,1893,3,121,60,0,1893,1894,3,111,55,0,1894,1895,3,125,62,0,1895,1896,3,107,53,0,1896,1897,3,107,53,0,1897,406,1,0,0,0,1898,1899,3,103,51,0,1899,1900,3,113,56,0,1900,1901,3,101,50,0,1901,1902,3,111,55,0,1902,408,1,0,0,0,1903,1904,3,103,51,0,1904,1905,3,121,60,0,1905,1906,3,113,56,0,1906,1907,3,111,55,0,1907,1908,5,95,0,0,1908,1909,3,93,46,0,1909,1910,3,131,65,0,1910,1911,3,101,50,0,1911,1912,3,121,60,0,1912,1913,3,123,61,0,1913,1914,3,121,60,0,1914,410,1,0,0,0,1915,1916,3,103,51,0,1916,1917,3,121,60,0,1917,1918,3,113,56,0,1918,1919,3,111,55,0,1919,1920,5,95,0,0,1920,1921,3,117,58,0,1921,1922,3,125,62,0,1922,1923,3,93,46,0,1923,1924,3,119,59,0,1924,1925,3,133,66,0,1925,412,1,0,0,0,1926,1927,3,103,51,0,1927,1928,3,121,60,0,1928,1929,3,113,56,0,1929,1930,3,111,55,0,1930,1931,5,95,0,0,1931,1932,3,127,63,0,1932,1933,3,85,42,0,1933,1934,3,107,53,0,1934,1935,3,125,62,0,1935,1936,3,93,46,0,1936,414,1,0,0,0,1937,1938,3,105,52,0,1938,1939,3,93,46,0,1939,1940,3,133,66,0,1940,416,1,0,0,0,1941,1942,3,107,53,0,1942,1943,3,85,42,0,1943,1944,3,121,60,0,1944,1945,3,123,61,0,1945,418,1,0,0,0,1946,1947,3,107,53,0,1947,1948,3,93,46,0,1948,1949,3,95,47,0,1949,1950,3,123,61,0,1950,420,1,0,0,0,1951,1952,3,107,53,0,1952,1953,3,93,46,0,1953,1954,3,97,48,0,1954,1955,3,85,42,0,1955,1956,3,89,44,0,1956,1957,3,133,66,0,1957,422,1,0,0,0,1958,1959,3,107,53,0,1959,1960,3,101,50,0,1960,1961,3,105,52,0,1961,1962,3,93,46,0,1962,424,1,0,0,0,1963,1964,3,107,53,0,1964,1965,3,101,50,0,1965,1966,3,109,54,0,1966,1967,3,101,50,0,1967,1968,3,123,61,0,1968,426,1,0,0,0,1969,1970,3,107,53,0,1970,1971,3,101,50,0,1971,1972,3,121,60,0,1972,1973,3,123,61,0,1973,428,1,0,0,0,1974,1975,3,107,53,0,1975,1976,3,113,56,0,1976,1977,3,89,44,0,1977,1978,3,85,42,0,1978,1979,3,107,53,0,1979,430,1,0,0,0,1980,1981,3,107,53,0,1981,1982,3,113,56,0,1982,1983,3,97,48,0,1983,1984,3,101,50,0,1984,1985,3,111,55,0,1985,432,1,0,0,0,1986,1987,3,109,54,0,1987,1988,3,85,42,0,1988,1989,3,111,55,0,1989,1990,3,85,42,0,1990,1991,3,97,48,0,1991,1992,3,93,46,0,1992,434,1,0,0,0,1993,1994,3,109,54,0,1994,1995,3,85,42,0,1995,1996,3,123,61,0,1996,1997,3,89,44,0,1997,1998,3,99,49,0,1998,436,1,0,0,0,1999,2e3,3,109,54,0,2e3,2001,3,85,42,0,2001,2002,3,123,61,0,2002,2003,3,89,44,0,2003,2004,3,99,49,0,2004,2005,3,93,46,0,2005,2006,3,121,60,0,2006,438,1,0,0,0,2007,2008,3,109,54,0,2008,2009,3,85,42,0,2009,2010,3,123,61,0,2010,2011,3,89,44,0,2011,2012,3,99,49,0,2012,2013,5,95,0,0,2013,2014,3,119,59,0,2014,2015,3,93,46,0,2015,2016,3,89,44,0,2016,2017,3,113,56,0,2017,2018,3,97,48,0,2018,2019,3,111,55,0,2019,2020,3,101,50,0,2020,2021,3,135,67,0,2021,2022,3,93,46,0,2022,440,1,0,0,0,2023,2024,3,109,54,0,2024,2025,3,93,46,0,2025,2026,3,85,42,0,2026,2027,3,121,60,0,2027,2028,3,125,62,0,2028,2029,3,119,59,0,2029,2030,3,93,46,0,2030,2031,3,121,60,0,2031,442,1,0,0,0,2032,2033,3,109,54,0,2033,2034,3,101,50,0,2034,2035,3,89,44,0,2035,2036,3,119,59,0,2036,2037,3,113,56,0,2037,2038,3,121,60,0,2038,2039,3,93,46,0,2039,2040,3,89,44,0,2040,2041,3,113,56,0,2041,2042,3,111,55,0,2042,2043,3,91,45,0,2043,2044,3,121,60,0,2044,444,1,0,0,0,2045,2046,3,109,54,0,2046,2047,3,101,50,0,2047,2048,3,107,53,0,2048,2049,3,107,53,0,2049,2050,3,101,50,0,2050,2051,3,121,60,0,2051,2052,3,93,46,0,2052,2053,3,89,44,0,2053,2054,3,113,56,0,2054,2055,3,111,55,0,2055,2056,3,91,45,0,2056,2057,3,121,60,0,2057,446,1,0,0,0,2058,2059,3,109,54,0,2059,2060,3,113,56,0,2060,2061,3,91,45,0,2061,2062,3,101,50,0,2062,2063,3,95,47,0,2063,2064,3,133,66,0,2064,448,1,0,0,0,2065,2066,3,111,55,0,2066,2067,3,85,42,0,2067,2068,3,111,55,0,2068,2069,3,113,56,0,2069,2070,3,121,60,0,2070,2071,3,93,46,0,2071,2072,3,89,44,0,2072,2073,3,113,56,0,2073,2074,3,111,55,0,2074,2075,3,91,45,0,2075,2076,3,121,60,0,2076,450,1,0,0,0,2077,2078,3,111,55,0,2078,2079,3,85,42,0,2079,2080,3,123,61,0,2080,2081,3,125,62,0,2081,2082,3,119,59,0,2082,2083,3,85,42,0,2083,2084,3,107,53,0,2084,452,1,0,0,0,2085,2086,3,111,55,0,2086,2087,3,93,46,0,2087,2088,3,131,65,0,2088,2089,3,123,61,0,2089,454,1,0,0,0,2090,2091,3,111,55,0,2091,2092,3,113,56,0,2092,456,1,0,0,0,2093,2094,3,111,55,0,2094,2095,3,113,56,0,2095,2096,3,107,53,0,2096,2097,3,113,56,0,2097,2098,3,97,48,0,2098,2099,3,101,50,0,2099,2100,3,111,55,0,2100,458,1,0,0,0,2101,2102,3,111,55,0,2102,2103,3,113,56,0,2103,2104,3,123,61,0,2104,460,1,0,0,0,2105,2106,3,111,55,0,2106,2107,3,113,56,0,2107,2108,3,123,61,0,2108,2109,3,111,55,0,2109,2110,3,125,62,0,2110,2111,3,107,53,0,2111,2112,3,107,53,0,2112,462,1,0,0,0,2113,2114,3,111,55,0,2114,2115,3,125,62,0,2115,2116,3,107,53,0,2116,2117,3,107,53,0,2117,464,1,0,0,0,2118,2119,3,111,55,0,2119,2120,3,125,62,0,2120,2121,3,107,53,0,2121,2122,3,107,53,0,2122,2123,3,121,60,0,2123,466,1,0,0,0,2124,2125,3,113,56,0,2125,2126,3,87,43,0,2126,2127,3,103,51,0,2127,2128,3,93,46,0,2128,2129,3,89,44,0,2129,2130,3,123,61,0,2130,468,1,0,0,0,2131,2132,3,113,56,0,2132,2133,3,95,47,0,2133,470,1,0,0,0,2134,2135,3,113,56,0,2135,2136,3,95,47,0,2136,2137,3,95,47,0,2137,2138,3,121,60,0,2138,2139,3,93,46,0,2139,2140,3,123,61,0,2140,472,1,0,0,0,2141,2142,3,113,56,0,2142,2143,3,109,54,0,2143,2144,3,101,50,0,2144,2145,3,123,61,0,2145,474,1,0,0,0,2146,2147,3,113,56,0,2147,2148,3,111,55,0,2148,476,1,0,0,0,2149,2150,3,113,56,0,2150,2151,3,111,55,0,2151,2152,3,93,46,0,2152,478,1,0,0,0,2153,2154,3,113,56,0,2154,2155,3,111,55,0,2155,2156,3,107,53,0,2156,2157,3,133,66,0,2157,480,1,0,0,0,2158,2159,3,113,56,0,2159,2160,3,115,57,0,2160,2161,3,123,61,0,2161,2162,3,101,50,0,2162,2163,3,113,56,0,2163,2164,3,111,55,0,2164,482,1,0,0,0,2165,2166,3,113,56,0,2166,2167,3,115,57,0,2167,2168,3,123,61,0,2168,2169,3,101,50,0,2169,2170,3,113,56,0,2170,2171,3,111,55,0,2171,2172,3,85,42,0,2172,2173,3,107,53,0,2173,484,1,0,0,0,2174,2175,3,113,56,0,2175,2176,3,119,59,0,2176,486,1,0,0,0,2177,2178,3,113,56,0,2178,2179,3,119,59,0,2179,2180,3,91,45,0,2180,2181,3,93,46,0,2181,2182,3,119,59,0,2182,488,1,0,0,0,2183,2184,3,113,56,0,2184,2185,3,123,61,0,2185,2186,3,99,49,0,2186,2187,3,93,46,0,2187,2188,3,119,59,0,2188,2189,3,121,60,0,2189,490,1,0,0,0,2190,2191,3,113,56,0,2191,2192,3,125,62,0,2192,2193,3,123,61,0,2193,2194,3,93,46,0,2194,2195,3,119,59,0,2195,492,1,0,0,0,2196,2197,3,113,56,0,2197,2198,3,127,63,0,2198,2199,3,93,46,0,2199,2200,3,119,59,0,2200,494,1,0,0,0,2201,2202,3,115,57,0,2202,2203,3,85,42,0,2203,2204,3,119,59,0,2204,2205,3,85,42,0,2205,2206,3,107,53,0,2206,2207,3,107,53,0,2207,2208,3,93,46,0,2208,2209,3,107,53,0,2209,496,1,0,0,0,2210,2211,3,115,57,0,2211,2212,3,85,42,0,2212,2213,3,119,59,0,2213,2214,3,123,61,0,2214,2215,3,101,50,0,2215,2216,3,123,61,0,2216,2217,3,101,50,0,2217,2218,3,113,56,0,2218,2219,3,111,55,0,2219,498,1,0,0,0,2220,2221,3,115,57,0,2221,2222,3,85,42,0,2222,2223,3,121,60,0,2223,2224,3,121,60,0,2224,2225,3,101,50,0,2225,2226,3,111,55,0,2226,2227,3,97,48,0,2227,500,1,0,0,0,2228,2229,3,115,57,0,2229,2230,3,85,42,0,2230,2231,3,121,60,0,2231,2232,3,121,60,0,2232,2233,3,129,64,0,2233,2234,3,113,56,0,2234,2235,3,119,59,0,2235,2236,3,91,45,0,2236,502,1,0,0,0,2237,2238,3,115,57,0,2238,2239,3,85,42,0,2239,2240,3,121,60,0,2240,2241,3,123,61,0,2241,504,1,0,0,0,2242,2243,3,115,57,0,2243,2244,3,85,42,0,2244,2245,3,123,61,0,2245,2246,3,123,61,0,2246,2247,3,93,46,0,2247,2248,3,119,59,0,2248,2249,3,111,55,0,2249,506,1,0,0,0,2250,2251,3,115,57,0,2251,2252,3,93,46,0,2252,2253,3,119,59,0,2253,508,1,0,0,0,2254,2255,3,115,57,0,2255,2256,3,93,46,0,2256,2257,3,119,59,0,2257,2258,3,109,54,0,2258,2259,3,125,62,0,2259,2260,3,123,61,0,2260,2261,3,93,46,0,2261,510,1,0,0,0,2262,2263,3,115,57,0,2263,2264,3,107,53,0,2264,2265,3,85,42,0,2265,2266,3,111,55,0,2266,512,1,0,0,0,2267,2268,3,115,57,0,2268,2269,3,113,56,0,2269,2270,3,113,56,0,2270,2271,3,107,53,0,2271,514,1,0,0,0,2272,2273,3,115,57,0,2273,2274,3,119,59,0,2274,2275,3,85,42,0,2275,2276,3,97,48,0,2276,2277,3,109,54,0,2277,2278,3,85,42,0,2278,516,1,0,0,0,2279,2280,3,115,57,0,2280,2281,3,119,59,0,2281,2282,3,93,46,0,2282,2283,3,89,44,0,2283,2284,3,93,46,0,2284,2285,3,91,45,0,2285,2286,3,101,50,0,2286,2287,3,111,55,0,2287,2288,3,97,48,0,2288,518,1,0,0,0,2289,2290,3,115,57,0,2290,2291,3,119,59,0,2291,2292,3,93,46,0,2292,2293,3,121,60,0,2293,2294,3,113,56,0,2294,2295,3,119,59,0,2295,2296,3,123,61,0,2296,520,1,0,0,0,2297,2298,3,115,57,0,2298,2299,3,119,59,0,2299,2300,3,101,50,0,2300,2301,3,109,54,0,2301,2302,3,85,42,0,2302,2303,3,119,59,0,2303,2304,3,133,66,0,2304,522,1,0,0,0,2305,2306,3,115,57,0,2306,2307,3,119,59,0,2307,2308,3,101,50,0,2308,2309,3,127,63,0,2309,2310,3,101,50,0,2310,2311,3,107,53,0,2311,2312,3,93,46,0,2312,2313,3,97,48,0,2313,2314,3,93,46,0,2314,2315,3,121,60,0,2315,524,1,0,0,0,2316,2317,3,115,57,0,2317,2318,3,119,59,0,2318,2319,3,113,56,0,2319,2320,3,89,44,0,2320,2321,3,93,46,0,2321,2322,3,121,60,0,2322,2323,3,121,60,0,2323,526,1,0,0,0,2324,2325,3,117,58,0,2325,2326,3,125,62,0,2326,2327,3,93,46,0,2327,2328,3,119,59,0,2328,2329,3,133,66,0,2329,528,1,0,0,0,2330,2331,3,117,58,0,2331,2332,3,125,62,0,2332,2333,3,93,46,0,2333,2334,3,125,62,0,2334,2335,3,93,46,0,2335,530,1,0,0,0,2336,2337,3,119,59,0,2337,2338,3,85,42,0,2338,2339,3,101,50,0,2339,2340,3,121,60,0,2340,2341,3,93,46,0,2341,532,1,0,0,0,2342,2343,3,119,59,0,2343,2344,3,85,42,0,2344,2345,3,111,55,0,2345,2346,3,97,48,0,2346,2347,3,93,46,0,2347,534,1,0,0,0,2348,2349,3,119,59,0,2349,2350,3,93,46,0,2350,2351,3,91,45,0,2351,2352,3,125,62,0,2352,2353,3,89,44,0,2353,2354,3,93,46,0,2354,536,1,0,0,0,2355,2356,3,119,59,0,2356,2357,3,93,46,0,2357,2358,3,95,47,0,2358,2359,3,93,46,0,2359,2360,3,119,59,0,2360,2361,3,93,46,0,2361,2362,3,111,55,0,2362,2363,3,89,44,0,2363,2364,3,93,46,0,2364,2365,3,121,60,0,2365,538,1,0,0,0,2366,2367,3,119,59,0,2367,2368,3,93,46,0,2368,2369,3,97,48,0,2369,2370,3,93,46,0,2370,2371,3,131,65,0,2371,2372,3,115,57,0,2372,540,1,0,0,0,2373,2374,3,119,59,0,2374,2375,3,93,46,0,2375,2376,3,101,50,0,2376,2377,3,111,55,0,2377,2378,3,91,45,0,2378,2379,3,93,46,0,2379,2380,3,131,65,0,2380,542,1,0,0,0,2381,2382,3,119,59,0,2382,2383,3,93,46,0,2383,2384,3,107,53,0,2384,2385,3,93,46,0,2385,2386,3,85,42,0,2386,2387,3,121,60,0,2387,2388,3,93,46,0,2388,544,1,0,0,0,2389,2390,3,119,59,0,2390,2391,3,93,46,0,2391,2392,3,109,54,0,2392,2393,3,113,56,0,2393,2394,3,127,63,0,2394,2395,3,93,46,0,2395,546,1,0,0,0,2396,2397,3,119,59,0,2397,2398,3,93,46,0,2398,2399,3,111,55,0,2399,2400,3,85,42,0,2400,2401,3,109,54,0,2401,2402,3,93,46,0,2402,548,1,0,0,0,2403,2404,3,119,59,0,2404,2405,3,93,46,0,2405,2406,3,115,57,0,2406,2407,3,93,46,0,2407,2408,3,85,42,0,2408,2409,3,123,61,0,2409,2410,3,85,42,0,2410,2411,3,87,43,0,2411,2412,3,107,53,0,2412,2413,3,93,46,0,2413,550,1,0,0,0,2414,2415,3,119,59,0,2415,2416,3,93,46,0,2416,2417,3,115,57,0,2417,2418,3,107,53,0,2418,2419,3,85,42,0,2419,2420,3,89,44,0,2420,2421,3,93,46,0,2421,552,1,0,0,0,2422,2423,3,119,59,0,2423,2424,3,93,46,0,2424,2425,3,115,57,0,2425,2426,3,107,53,0,2426,2427,3,101,50,0,2427,2428,3,89,44,0,2428,2429,3,85,42,0,2429,2430,3,123,61,0,2430,2431,3,101,50,0,2431,2432,3,113,56,0,2432,2433,3,111,55,0,2433,554,1,0,0,0,2434,2435,3,119,59,0,2435,2436,3,93,46,0,2436,2437,3,121,60,0,2437,2438,3,93,46,0,2438,2439,3,123,61,0,2439,556,1,0,0,0,2440,2441,3,119,59,0,2441,2442,3,93,46,0,2442,2443,3,121,60,0,2443,2444,3,113,56,0,2444,2445,3,125,62,0,2445,2446,3,119,59,0,2446,2447,3,89,44,0,2447,2448,3,93,46,0,2448,558,1,0,0,0,2449,2450,3,119,59,0,2450,2451,3,93,46,0,2451,2452,3,121,60,0,2452,2453,3,115,57,0,2453,2454,3,93,46,0,2454,2455,3,89,44,0,2455,2456,3,123,61,0,2456,560,1,0,0,0,2457,2458,3,119,59,0,2458,2459,3,93,46,0,2459,2460,3,121,60,0,2460,2461,3,123,61,0,2461,2462,3,85,42,0,2462,2463,3,119,59,0,2463,2464,3,123,61,0,2464,562,1,0,0,0,2465,2466,3,119,59,0,2466,2467,3,93,46,0,2467,2468,3,121,60,0,2468,2469,3,123,61,0,2469,2470,3,113,56,0,2470,2471,3,119,59,0,2471,2472,3,93,46,0,2472,564,1,0,0,0,2473,2474,3,119,59,0,2474,2475,3,93,46,0,2475,2476,3,121,60,0,2476,2477,3,123,61,0,2477,2478,3,119,59,0,2478,2479,3,101,50,0,2479,2480,3,89,44,0,2480,2481,3,123,61,0,2481,566,1,0,0,0,2482,2483,3,119,59,0,2483,2484,3,93,46,0,2484,2485,3,121,60,0,2485,2486,3,125,62,0,2486,2487,3,107,53,0,2487,2488,3,123,61,0,2488,568,1,0,0,0,2489,2490,3,119,59,0,2490,2491,3,93,46,0,2491,2492,3,123,61,0,2492,2493,3,125,62,0,2493,2494,3,119,59,0,2494,2495,3,111,55,0,2495,570,1,0,0,0,2496,2497,3,119,59,0,2497,2498,3,93,46,0,2498,2499,3,123,61,0,2499,2500,3,125,62,0,2500,2501,3,119,59,0,2501,2502,3,111,55,0,2502,2503,3,101,50,0,2503,2504,3,111,55,0,2504,2505,3,97,48,0,2505,572,1,0,0,0,2506,2507,3,119,59,0,2507,2508,3,93,46,0,2508,2509,3,127,63,0,2509,2510,3,93,46,0,2510,2511,3,119,59,0,2511,2512,3,123,61,0,2512,574,1,0,0,0,2513,2514,3,119,59,0,2514,2515,3,93,46,0,2515,2516,3,127,63,0,2516,2517,3,113,56,0,2517,2518,3,105,52,0,2518,2519,3,93,46,0,2519,576,1,0,0,0,2520,2521,3,119,59,0,2521,2522,3,101,50,0,2522,2523,3,97,48,0,2523,2524,3,99,49,0,2524,2525,3,123,61,0,2525,578,1,0,0,0,2526,2527,3,119,59,0,2527,2528,3,107,53,0,2528,2529,3,101,50,0,2529,2530,3,105,52,0,2530,2531,3,93,46,0,2531,580,1,0,0,0,2532,2533,3,119,59,0,2533,2534,3,113,56,0,2534,2535,3,107,53,0,2535,2536,3,107,53,0,2536,2537,3,87,43,0,2537,2538,3,85,42,0,2538,2539,3,89,44,0,2539,2540,3,105,52,0,2540,582,1,0,0,0,2541,2542,3,119,59,0,2542,2543,3,113,56,0,2543,2544,3,107,53,0,2544,2545,3,107,53,0,2545,2546,3,125,62,0,2546,2547,3,115,57,0,2547,584,1,0,0,0,2548,2549,3,119,59,0,2549,2550,3,113,56,0,2550,2551,3,129,64,0,2551,586,1,0,0,0,2552,2553,3,119,59,0,2553,2554,3,113,56,0,2554,2555,3,129,64,0,2555,2556,3,121,60,0,2556,588,1,0,0,0,2557,2558,3,121,60,0,2558,2559,3,85,42,0,2559,2560,3,109,54,0,2560,2561,3,115,57,0,2561,2562,3,107,53,0,2562,2563,3,93,46,0,2563,590,1,0,0,0,2564,2565,3,121,60,0,2565,2566,3,85,42,0,2566,2567,3,127,63,0,2567,2568,3,93,46,0,2568,2569,3,115,57,0,2569,2570,3,113,56,0,2570,2571,3,101,50,0,2571,2572,3,111,55,0,2572,2573,3,123,61,0,2573,592,1,0,0,0,2574,2575,3,121,60,0,2575,2576,3,89,44,0,2576,2577,3,99,49,0,2577,2578,3,93,46,0,2578,2579,3,109,54,0,2579,2580,3,85,42,0,2580,594,1,0,0,0,2581,2582,3,121,60,0,2582,2583,3,93,46,0,2583,2584,3,89,44,0,2584,2585,3,113,56,0,2585,2586,3,111,55,0,2586,2587,3,91,45,0,2587,2588,3,121,60,0,2588,596,1,0,0,0,2589,2590,3,121,60,0,2590,2591,3,93,46,0,2591,2592,3,93,46,0,2592,2593,3,105,52,0,2593,598,1,0,0,0,2594,2595,3,121,60,0,2595,2596,3,93,46,0,2596,2597,3,107,53,0,2597,2598,3,93,46,0,2598,2599,3,89,44,0,2599,2600,3,123,61,0,2600,600,1,0,0,0,2601,2602,3,121,60,0,2602,2603,3,93,46,0,2603,2604,3,109,54,0,2604,2605,3,101,50,0,2605,602,1,0,0,0,2606,2607,3,121,60,0,2607,2608,3,93,46,0,2608,2609,3,123,61,0,2609,604,1,0,0,0,2610,2611,3,121,60,0,2611,2612,3,93,46,0,2612,2613,3,123,61,0,2613,2614,3,121,60,0,2614,606,1,0,0,0,2615,2616,3,121,60,0,2616,2617,3,99,49,0,2617,2618,3,113,56,0,2618,2619,3,129,64,0,2619,608,1,0,0,0,2620,2621,3,121,60,0,2621,2622,3,105,52,0,2622,2623,3,101,50,0,2623,2624,3,115,57,0,2624,610,1,0,0,0,2625,2626,3,121,60,0,2626,2627,3,93,46,0,2627,2628,3,117,58,0,2628,2629,3,125,62,0,2629,2630,3,93,46,0,2630,2631,3,111,55,0,2631,2632,3,89,44,0,2632,2633,3,93,46,0,2633,612,1,0,0,0,2634,2635,3,121,60,0,2635,2636,3,113,56,0,2636,2637,3,125,62,0,2637,2638,3,119,59,0,2638,2639,3,89,44,0,2639,2640,3,93,46,0,2640,614,1,0,0,0,2641,2642,3,121,60,0,2642,2643,3,123,61,0,2643,2644,3,85,42,0,2644,2645,3,119,59,0,2645,2646,3,123,61,0,2646,616,1,0,0,0,2647,2648,3,121,60,0,2648,2649,3,123,61,0,2649,2650,3,119,59,0,2650,2651,3,93,46,0,2651,2652,3,85,42,0,2652,2653,3,109,54,0,2653,618,1,0,0,0,2654,2655,3,121,60,0,2655,2656,3,123,61,0,2656,2657,3,119,59,0,2657,2658,3,125,62,0,2658,2659,3,89,44,0,2659,2660,3,123,61,0,2660,620,1,0,0,0,2661,2662,3,121,60,0,2662,2663,3,125,62,0,2663,2664,3,87,43,0,2664,2665,3,117,58,0,2665,2666,3,125,62,0,2666,2667,3,93,46,0,2667,2668,3,119,59,0,2668,2669,3,133,66,0,2669,622,1,0,0,0,2670,2671,3,121,60,0,2671,2672,3,125,62,0,2672,2673,3,87,43,0,2673,2674,3,121,60,0,2674,2675,3,93,46,0,2675,2676,3,123,61,0,2676,624,1,0,0,0,2677,2678,3,121,60,0,2678,2679,3,133,66,0,2679,2680,3,109,54,0,2680,2681,3,87,43,0,2681,2682,3,113,56,0,2682,2683,3,107,53,0,2683,2684,3,121,60,0,2684,626,1,0,0,0,2685,2686,3,121,60,0,2686,2687,3,133,66,0,2687,2688,3,109,54,0,2688,2689,3,109,54,0,2689,2690,3,93,46,0,2690,2691,3,123,61,0,2691,2692,3,119,59,0,2692,2693,3,101,50,0,2693,2694,3,89,44,0,2694,628,1,0,0,0,2695,2696,3,121,60,0,2696,2697,3,133,66,0,2697,2698,3,111,55,0,2698,2699,3,89,44,0,2699,630,1,0,0,0,2700,2701,3,121,60,0,2701,2702,3,133,66,0,2702,2703,3,121,60,0,2703,2704,3,123,61,0,2704,2705,3,93,46,0,2705,2706,3,109,54,0,2706,632,1,0,0,0,2707,2708,3,123,61,0,2708,2709,3,85,42,0,2709,2710,3,87,43,0,2710,2711,3,107,53,0,2711,2712,3,93,46,0,2712,634,1,0,0,0,2713,2714,3,123,61,0,2714,2715,3,85,42,0,2715,2716,3,87,43,0,2716,2717,3,107,53,0,2717,2718,3,93,46,0,2718,2719,3,121,60,0,2719,636,1,0,0,0,2720,2721,3,123,61,0,2721,2722,3,85,42,0,2722,2723,3,87,43,0,2723,2724,3,107,53,0,2724,2725,3,93,46,0,2725,2726,3,121,60,0,2726,2727,3,85,42,0,2727,2728,3,109,54,0,2728,2729,3,115,57,0,2729,2730,3,107,53,0,2730,2731,3,93,46,0,2731,638,1,0,0,0,2732,2733,3,123,61,0,2733,2734,3,85,42,0,2734,2735,3,87,43,0,2735,2736,3,107,53,0,2736,2737,3,93,46,0,2737,2738,3,121,60,0,2738,2739,3,123,61,0,2739,2740,3,113,56,0,2740,2741,3,119,59,0,2741,2742,3,93,46,0,2742,640,1,0,0,0,2743,2744,3,123,61,0,2744,2745,3,85,42,0,2745,2746,3,97,48,0,2746,2747,3,97,48,0,2747,2748,3,93,46,0,2748,2749,3,91,45,0,2749,642,1,0,0,0,2750,2751,3,123,61,0,2751,2752,3,93,46,0,2752,2753,3,109,54,0,2753,2754,3,115,57,0,2754,644,1,0,0,0,2755,2756,3,123,61,0,2756,2757,3,93,46,0,2757,2758,3,109,54,0,2758,2759,3,115,57,0,2759,2760,3,113,56,0,2760,2761,3,119,59,0,2761,2762,3,85,42,0,2762,2763,3,119,59,0,2763,2764,3,133,66,0,2764,646,1,0,0,0,2765,2766,3,123,61,0,2766,2767,3,99,49,0,2767,2768,3,93,46,0,2768,2769,3,111,55,0,2769,648,1,0,0,0,2770,2771,3,123,61,0,2771,2772,3,101,50,0,2772,2773,3,93,46,0,2773,2774,3,121,60,0,2774,650,1,0,0,0,2775,2776,3,123,61,0,2776,2777,3,113,56,0,2777,652,1,0,0,0,2778,2779,3,123,61,0,2779,2780,3,113,56,0,2780,2781,3,115,57,0,2781,2782,3,101,50,0,2782,2783,3,89,44,0,2783,654,1,0,0,0,2784,2785,3,123,61,0,2785,2786,3,119,59,0,2786,2787,3,85,42,0,2787,2788,3,111,55,0,2788,2789,3,121,60,0,2789,2790,3,85,42,0,2790,2791,3,89,44,0,2791,2792,3,123,61,0,2792,2793,3,101,50,0,2793,2794,3,113,56,0,2794,2795,3,111,55,0,2795,656,1,0,0,0,2796,2797,3,123,61,0,2797,2798,3,119,59,0,2798,2799,3,85,42,0,2799,2800,3,111,55,0,2800,2801,3,121,60,0,2801,2802,3,95,47,0,2802,2803,3,93,46,0,2803,2804,3,119,59,0,2804,658,1,0,0,0,2805,2806,3,123,61,0,2806,2807,3,119,59,0,2807,2808,3,101,50,0,2808,2809,3,97,48,0,2809,2810,3,97,48,0,2810,2811,3,93,46,0,2811,2812,3,119,59,0,2812,660,1,0,0,0,2813,2814,3,123,61,0,2814,2815,3,119,59,0,2815,2816,3,125,62,0,2816,2817,3,93,46,0,2817,662,1,0,0,0,2818,2819,3,123,61,0,2819,2820,3,125,62,0,2820,2821,3,115,57,0,2821,2822,3,107,53,0,2822,2823,3,93,46,0,2823,664,1,0,0,0,2824,2825,3,123,61,0,2825,2826,3,133,66,0,2826,2827,3,115,57,0,2827,2828,3,93,46,0,2828,666,1,0,0,0,2829,2830,3,125,62,0,2830,2831,3,111,55,0,2831,2832,3,87,43,0,2832,2833,3,113,56,0,2833,2834,3,125,62,0,2834,2835,3,111,55,0,2835,2836,3,91,45,0,2836,2837,3,93,46,0,2837,2838,3,91,45,0,2838,668,1,0,0,0,2839,2840,3,125,62,0,2840,2841,3,111,55,0,2841,2842,3,89,44,0,2842,2843,3,113,56,0,2843,2844,3,111,55,0,2844,2845,3,91,45,0,2845,2846,3,101,50,0,2846,2847,3,123,61,0,2847,2848,3,101,50,0,2848,2849,3,113,56,0,2849,2850,3,111,55,0,2850,2851,3,85,42,0,2851,2852,3,107,53,0,2852,670,1,0,0,0,2853,2854,3,125,62,0,2854,2855,3,111,55,0,2855,2856,3,101,50,0,2856,2857,3,113,56,0,2857,2858,3,111,55,0,2858,672,1,0,0,0,2859,2860,3,125,62,0,2860,2861,3,111,55,0,2861,2862,3,101,50,0,2862,2863,3,117,58,0,2863,2864,3,125,62,0,2864,2865,3,93,46,0,2865,674,1,0,0,0,2866,2867,3,125,62,0,2867,2868,3,111,55,0,2868,2869,3,105,52,0,2869,2870,3,111,55,0,2870,2871,3,113,56,0,2871,2872,3,129,64,0,2872,2873,3,111,55,0,2873,676,1,0,0,0,2874,2875,3,125,62,0,2875,2876,3,111,55,0,2876,2877,3,109,54,0,2877,2878,3,85,42,0,2878,2879,3,123,61,0,2879,2880,3,89,44,0,2880,2881,3,99,49,0,2881,2882,3,93,46,0,2882,2883,3,91,45,0,2883,678,1,0,0,0,2884,2885,3,125,62,0,2885,2886,3,115,57,0,2886,2887,3,91,45,0,2887,2888,3,85,42,0,2888,2889,3,123,61,0,2889,2890,3,93,46,0,2890,680,1,0,0,0,2891,2892,3,125,62,0,2892,2893,3,115,57,0,2893,2894,3,121,60,0,2894,2895,3,93,46,0,2895,2896,3,119,59,0,2896,2897,3,123,61,0,2897,682,1,0,0,0,2898,2899,3,125,62,0,2899,2900,3,121,60,0,2900,2901,3,93,46,0,2901,684,1,0,0,0,2902,2903,3,125,62,0,2903,2904,3,121,60,0,2904,2905,3,93,46,0,2905,2906,3,119,59,0,2906,686,1,0,0,0,2907,2908,3,125,62,0,2908,2909,3,121,60,0,2909,2910,3,101,50,0,2910,2911,3,111,55,0,2911,2912,3,97,48,0,2912,688,1,0,0,0,2913,2914,3,127,63,0,2914,2915,3,85,42,0,2915,2916,3,89,44,0,2916,2917,3,125,62,0,2917,2918,3,125,62,0,2918,2919,3,109,54,0,2919,690,1,0,0,0,2920,2921,3,127,63,0,2921,2922,3,85,42,0,2922,2923,3,107,53,0,2923,2924,3,125,62,0,2924,2925,3,93,46,0,2925,2926,3,121,60,0,2926,692,1,0,0,0,2927,2928,3,127,63,0,2928,2929,3,85,42,0,2929,2930,3,119,59,0,2930,2931,3,101,50,0,2931,2932,3,85,42,0,2932,2933,3,111,55,0,2933,2934,3,123,61,0,2934,694,1,0,0,0,2935,2936,3,127,63,0,2936,2937,3,101,50,0,2937,2938,3,93,46,0,2938,2939,3,129,64,0,2939,696,1,0,0,0,2940,2941,3,127,63,0,2941,2942,3,101,50,0,2942,2943,3,119,59,0,2943,2944,3,123,61,0,2944,2945,3,125,62,0,2945,2946,3,85,42,0,2946,2947,3,107,53,0,2947,698,1,0,0,0,2948,2949,3,129,64,0,2949,2950,3,99,49,0,2950,2951,3,93,46,0,2951,2952,3,111,55,0,2952,700,1,0,0,0,2953,2954,3,129,64,0,2954,2955,3,99,49,0,2955,2956,3,93,46,0,2956,2957,3,119,59,0,2957,2958,3,93,46,0,2958,702,1,0,0,0,2959,2960,3,129,64,0,2960,2961,3,101,50,0,2961,2962,3,111,55,0,2962,2963,3,91,45,0,2963,2964,3,113,56,0,2964,2965,3,129,64,0,2965,704,1,0,0,0,2966,2967,3,129,64,0,2967,2968,3,101,50,0,2968,2969,3,123,61,0,2969,2970,3,99,49,0,2970,706,1,0,0,0,2971,2972,3,129,64,0,2972,2973,3,101,50,0,2973,2974,3,123,61,0,2974,2975,3,99,49,0,2975,2976,3,113,56,0,2976,2977,3,125,62,0,2977,2978,3,123,61,0,2978,708,1,0,0,0,2979,2980,3,129,64,0,2980,2981,3,119,59,0,2981,2982,3,85,42,0,2982,2983,3,115,57,0,2983,2984,3,115,57,0,2984,2985,3,93,46,0,2985,2986,3,119,59,0,2986,710,1,0,0,0,2987,2988,3,131,65,0,2988,2989,3,113,56,0,2989,2990,3,119,59,0,2990,712,1,0,0,0,2991,2996,8,26,0,0,2992,2993,3,75,37,0,2993,2994,9,0,0,0,2994,2996,1,0,0,0,2995,2991,1,0,0,0,2995,2992,1,0,0,0,2996,714,1,0,0,0,2997,3002,8,27,0,0,2998,2999,3,75,37,0,2999,3e3,9,0,0,0,3e3,3002,1,0,0,0,3001,2997,1,0,0,0,3001,2998,1,0,0,0,3002,716,1,0,0,0,3003,3007,3,79,39,0,3004,3006,3,713,356,0,3005,3004,1,0,0,0,3006,3009,1,0,0,0,3007,3005,1,0,0,0,3007,3008,1,0,0,0,3008,3010,1,0,0,0,3009,3007,1,0,0,0,3010,3011,3,79,39,0,3011,718,1,0,0,0,3012,3016,3,77,38,0,3013,3015,3,715,357,0,3014,3013,1,0,0,0,3015,3018,1,0,0,0,3016,3014,1,0,0,0,3016,3017,1,0,0,0,3017,3019,1,0,0,0,3018,3016,1,0,0,0,3019,3020,3,77,38,0,3020,720,1,0,0,0,3021,3025,3,83,41,0,3022,3024,9,0,0,0,3023,3022,1,0,0,0,3024,3027,1,0,0,0,3025,3026,1,0,0,0,3025,3023,1,0,0,0,3026,3028,1,0,0,0,3027,3025,1,0,0,0,3028,3029,3,83,41,0,3029,3031,1,0,0,0,3030,3021,1,0,0,0,3031,3032,1,0,0,0,3032,3030,1,0,0,0,3032,3033,1,0,0,0,3033,3035,1,0,0,0,3034,3036,3,57,28,0,3035,3034,1,0,0,0,3035,3036,1,0,0,0,3036,722,1,0,0,0,3037,3041,3,717,358,0,3038,3041,3,719,359,0,3039,3041,3,721,360,0,3040,3037,1,0,0,0,3040,3038,1,0,0,0,3040,3039,1,0,0,0,3041,3052,1,0,0,0,3042,3053,3,121,60,0,3043,3053,3,125,62,0,3044,3053,3,133,66,0,3045,3053,3,103,51,0,3046,3050,3,115,57,0,3047,3051,3,123,61,0,3048,3051,3,87,43,0,3049,3051,3,127,63,0,3050,3047,1,0,0,0,3050,3048,1,0,0,0,3050,3049,1,0,0,0,3050,3051,1,0,0,0,3051,3053,1,0,0,0,3052,3042,1,0,0,0,3052,3043,1,0,0,0,3052,3044,1,0,0,0,3052,3045,1,0,0,0,3052,3046,1,0,0,0,3052,3053,1,0,0,0,3053,724,1,0,0,0,3054,3059,7,28,0,0,3055,3058,7,28,0,0,3056,3058,3,731,365,0,3057,3055,1,0,0,0,3057,3056,1,0,0,0,3058,3061,1,0,0,0,3059,3057,1,0,0,0,3059,3060,1,0,0,0,3060,726,1,0,0,0,3061,3059,1,0,0,0,3062,3063,5,92,0,0,3063,3068,9,0,0,0,3064,3065,5,96,0,0,3065,3068,5,96,0,0,3066,3068,8,29,0,0,3067,3062,1,0,0,0,3067,3064,1,0,0,0,3067,3066,1,0,0,0,3068,728,1,0,0,0,3069,3073,3,81,40,0,3070,3072,3,727,363,0,3071,3070,1,0,0,0,3072,3075,1,0,0,0,3073,3071,1,0,0,0,3073,3074,1,0,0,0,3074,3076,1,0,0,0,3075,3073,1,0,0,0,3076,3077,3,81,40,0,3077,730,1,0,0,0,3078,3079,2,48,57,0,3079,732,1,0,0,0,3080,3081,7,30,0,0,3081,734,1,0,0,0,3082,3083,5,48,0,0,3083,3085,3,131,65,0,3084,3086,3,733,366,0,3085,3084,1,0,0,0,3086,3087,1,0,0,0,3087,3085,1,0,0,0,3087,3088,1,0,0,0,3088,736,1,0,0,0,3089,3090,5,48,0,0,3090,3092,3,113,56,0,3091,3093,2,48,56,0,3092,3091,1,0,0,0,3093,3094,1,0,0,0,3094,3092,1,0,0,0,3094,3095,1,0,0,0,3095,738,1,0,0,0,3096,3097,5,48,0,0,3097,3099,3,87,43,0,3098,3100,2,48,49,0,3099,3098,1,0,0,0,3100,3101,1,0,0,0,3101,3099,1,0,0,0,3101,3102,1,0,0,0,3102,740,1,0,0,0,3103,3105,3,731,365,0,3104,3103,1,0,0,0,3105,3106,1,0,0,0,3106,3104,1,0,0,0,3106,3107,1,0,0,0,3107,742,1,0,0,0,3108,3113,3,741,370,0,3109,3113,3,735,367,0,3110,3113,3,737,368,0,3111,3113,3,739,369,0,3112,3108,1,0,0,0,3112,3109,1,0,0,0,3112,3110,1,0,0,0,3112,3111,1,0,0,0,3113,744,1,0,0,0,3114,3117,3,743,371,0,3115,3118,3,115,57,0,3116,3118,3,125,62,0,3117,3115,1,0,0,0,3117,3116,1,0,0,0,3117,3118,1,0,0,0,3118,3125,1,0,0,0,3119,3126,3,107,53,0,3120,3126,3,121,60,0,3121,3126,3,123,61,0,3122,3126,3,101,50,0,3123,3126,3,87,43,0,3124,3126,3,111,55,0,3125,3119,1,0,0,0,3125,3120,1,0,0,0,3125,3121,1,0,0,0,3125,3122,1,0,0,0,3125,3123,1,0,0,0,3125,3124,1,0,0,0,3125,3126,1,0,0,0,3126,746,1,0,0,0,3127,3130,3,93,46,0,3128,3131,3,31,15,0,3129,3131,3,33,16,0,3130,3128,1,0,0,0,3130,3129,1,0,0,0,3130,3131,1,0,0,0,3131,3132,1,0,0,0,3132,3133,3,741,370,0,3133,748,1,0,0,0,3134,3135,3,741,370,0,3135,3139,3,45,22,0,3136,3138,3,731,365,0,3137,3136,1,0,0,0,3138,3141,1,0,0,0,3139,3137,1,0,0,0,3139,3140,1,0,0,0,3140,3143,1,0,0,0,3141,3139,1,0,0,0,3142,3144,3,747,373,0,3143,3142,1,0,0,0,3143,3144,1,0,0,0,3144,3149,1,0,0,0,3145,3146,3,741,370,0,3146,3147,3,747,373,0,3147,3149,1,0,0,0,3148,3134,1,0,0,0,3148,3145,1,0,0,0,3149,3158,1,0,0,0,3150,3159,3,95,47,0,3151,3156,3,115,57,0,3152,3153,3,95,47,0,3153,3154,7,31,0,0,3154,3157,1,0,0,0,3155,3157,3,111,55,0,3156,3152,1,0,0,0,3156,3155,1,0,0,0,3156,3157,1,0,0,0,3157,3159,1,0,0,0,3158,3150,1,0,0,0,3158,3151,1,0,0,0,3158,3159,1,0,0,0,3159,750,1,0,0,0,3160,3161,3,131,65,0,3161,3163,3,79,39,0,3162,3164,3,733,366,0,3163,3162,1,0,0,0,3164,3165,1,0,0,0,3165,3163,1,0,0,0,3165,3166,1,0,0,0,3166,3167,1,0,0,0,3167,3168,3,79,39,0,3168,752,1,0,0,0,3169,3170,5,47,0,0,3170,3171,5,42,0,0,3171,3175,1,0,0,0,3172,3174,9,0,0,0,3173,3172,1,0,0,0,3174,3177,1,0,0,0,3175,3176,1,0,0,0,3175,3173,1,0,0,0,3176,3178,1,0,0,0,3177,3175,1,0,0,0,3178,3179,5,42,0,0,3179,3180,5,47,0,0,3180,754,1,0,0,0,3181,3182,5,45,0,0,3182,3183,5,45,0,0,3183,3187,1,0,0,0,3184,3186,8,32,0,0,3185,3184,1,0,0,0,3186,3189,1,0,0,0,3187,3185,1,0,0,0,3187,3188,1,0,0,0,3188,3195,1,0,0,0,3189,3187,1,0,0,0,3190,3192,5,13,0,0,3191,3193,5,10,0,0,3192,3191,1,0,0,0,3192,3193,1,0,0,0,3193,3196,1,0,0,0,3194,3196,7,33,0,0,3195,3190,1,0,0,0,3195,3194,1,0,0,0,3196,756,1,0,0,0,3197,3198,7,34,0,0,3198,3199,1,0,0,0,3199,3200,6,378,0,0,3200,758,1,0,0,0,3201,3204,3,753,376,0,3202,3204,3,755,377,0,3203,3201,1,0,0,0,3203,3202,1,0,0,0,3204,3205,1,0,0,0,3205,3206,6,379,1,0,3206,760,1,0,0,0,34,0,2995,3001,3007,3016,3025,3032,3035,3040,3050,3052,3057,3059,3067,3073,3087,3094,3101,3106,3112,3117,3125,3130,3139,3143,3148,3156,3158,3165,3175,3187,3192,3195,3203,2,0,1,0,6,0,0]}static get _ATN(){return e.__ATN||(e.__ATN=(new Be).deserialize(e._serializedATN)),e.__ATN}static{this.vocabulary=new f(e.literalNames,e.symbolicNames,[])}get vocabulary(){return e.vocabulary}static{this.decisionsToDFA=e._ATN.decisionToState.map(((e,t)=>new it(e,t)))}},rs=class e extends Gt{static{Si(this,"YQLParser")}static{this.EQUALS=1}static{this.EQUALS2=2}static{this.NOT_EQUALS=3}static{this.NOT_EQUALS2=4}static{this.LESS=5}static{this.LESS_OR_EQ=6}static{this.GREATER=7}static{this.GREATER_OR_EQ=8}static{this.SHIFT_LEFT=9}static{this.ROT_LEFT=10}static{this.AMPERSAND=11}static{this.PIPE=12}static{this.DOUBLE_PIPE=13}static{this.STRUCT_OPEN=14}static{this.STRUCT_CLOSE=15}static{this.PLUS=16}static{this.MINUS=17}static{this.TILDA=18}static{this.ASTERISK=19}static{this.SLASH=20}static{this.PERCENT=21}static{this.SEMICOLON=22}static{this.DOT=23}static{this.COMMA=24}static{this.LPAREN=25}static{this.RPAREN=26}static{this.QUESTION=27}static{this.COLON=28}static{this.COMMAT=29}static{this.DOLLAR=30}static{this.LBRACE_CURLY=31}static{this.RBRACE_CURLY=32}static{this.CARET=33}static{this.NAMESPACE=34}static{this.ARROW=35}static{this.RBRACE_SQUARE=36}static{this.LBRACE_SQUARE=37}static{this.ABORT=38}static{this.ACTION=39}static{this.ADD=40}static{this.AFTER=41}static{this.ALL=42}static{this.ALTER=43}static{this.ANALYZE=44}static{this.AND=45}static{this.ANSI=46}static{this.ANY=47}static{this.ARRAY=48}static{this.AS=49}static{this.ASC=50}static{this.ASSUME=51}static{this.ASYMMETRIC=52}static{this.ASYNC=53}static{this.AT=54}static{this.ATTACH=55}static{this.ATTRIBUTES=56}static{this.AUTOINCREMENT=57}static{this.AUTOMAP=58}static{this.BACKUP=59}static{this.BATCH=60}static{this.COLLECTION=61}static{this.BEFORE=62}static{this.BEGIN=63}static{this.BERNOULLI=64}static{this.BETWEEN=65}static{this.BITCAST=66}static{this.BY=67}static{this.CALLABLE=68}static{this.CASCADE=69}static{this.CASE=70}static{this.CAST=71}static{this.CHANGEFEED=72}static{this.CHECK=73}static{this.CLASSIFIER=74}static{this.COLLATE=75}static{this.COLUMN=76}static{this.COLUMNS=77}static{this.COMMIT=78}static{this.COMPACT=79}static{this.CONDITIONAL=80}static{this.CONFLICT=81}static{this.CONNECT=82}static{this.CONSTRAINT=83}static{this.CONSUMER=84}static{this.COVER=85}static{this.CREATE=86}static{this.CROSS=87}static{this.CUBE=88}static{this.CURRENT=89}static{this.CURRENT_DATE=90}static{this.CURRENT_TIME=91}static{this.CURRENT_TIMESTAMP=92}static{this.DATA=93}static{this.DATABASE=94}static{this.DECIMAL=95}static{this.DECLARE=96}static{this.DEFAULT=97}static{this.DEFERRABLE=98}static{this.DEFERRED=99}static{this.DEFINE=100}static{this.DELETE=101}static{this.DESC=102}static{this.DESCRIBE=103}static{this.DETACH=104}static{this.DICT=105}static{this.DIRECTORY=106}static{this.DISABLE=107}static{this.DISCARD=108}static{this.DISTINCT=109}static{this.DO=110}static{this.DROP=111}static{this.EACH=112}static{this.ELSE=113}static{this.EMPTY=114}static{this.EMPTY_ACTION=115}static{this.ENCRYPTED=116}static{this.END=117}static{this.ENUM=118}static{this.ERASE=119}static{this.ERROR=120}static{this.ESCAPE=121}static{this.EVALUATE=122}static{this.EXCEPT=123}static{this.EXCLUDE=124}static{this.EXCLUSION=125}static{this.EXCLUSIVE=126}static{this.EXISTS=127}static{this.EXPLAIN=128}static{this.EXPORT=129}static{this.EXTERNAL=130}static{this.FAIL=131}static{this.FALSE=132}static{this.FAMILY=133}static{this.FILTER=134}static{this.FIRST=135}static{this.FLATTEN=136}static{this.FLOW=137}static{this.FOLLOWING=138}static{this.FOR=139}static{this.FOREIGN=140}static{this.FROM=141}static{this.FULL=142}static{this.FUNCTION=143}static{this.GLOB=144}static{this.GLOBAL=145}static{this.GRANT=146}static{this.GROUP=147}static{this.GROUPING=148}static{this.GROUPS=149}static{this.HASH=150}static{this.HAVING=151}static{this.HOP=152}static{this.IF=153}static{this.IGNORE=154}static{this.ILIKE=155}static{this.IMMEDIATE=156}static{this.IMPORT=157}static{this.IN=158}static{this.INCREMENT=159}static{this.INCREMENTAL=160}static{this.INDEX=161}static{this.INDEXED=162}static{this.INHERITS=163}static{this.INITIAL=164}static{this.INITIALLY=165}static{this.INNER=166}static{this.INSERT=167}static{this.INSTEAD=168}static{this.INTERSECT=169}static{this.INTO=170}static{this.IS=171}static{this.ISNULL=172}static{this.JOIN=173}static{this.JSON_EXISTS=174}static{this.JSON_QUERY=175}static{this.JSON_VALUE=176}static{this.KEY=177}static{this.LAST=178}static{this.LEFT=179}static{this.LEGACY=180}static{this.LIKE=181}static{this.LIMIT=182}static{this.LIST=183}static{this.LOCAL=184}static{this.LOGIN=185}static{this.MANAGE=186}static{this.MATCH=187}static{this.MATCHES=188}static{this.MATCH_RECOGNIZE=189}static{this.MEASURES=190}static{this.MICROSECONDS=191}static{this.MILLISECONDS=192}static{this.MODIFY=193}static{this.NANOSECONDS=194}static{this.NATURAL=195}static{this.NEXT=196}static{this.NO=197}static{this.NOLOGIN=198}static{this.NOT=199}static{this.NOTNULL=200}static{this.NULL=201}static{this.NULLS=202}static{this.OBJECT=203}static{this.OF=204}static{this.OFFSET=205}static{this.OMIT=206}static{this.ON=207}static{this.ONE=208}static{this.ONLY=209}static{this.OPTION=210}static{this.OPTIONAL=211}static{this.OR=212}static{this.ORDER=213}static{this.OTHERS=214}static{this.OUTER=215}static{this.OVER=216}static{this.PARALLEL=217}static{this.PARTITION=218}static{this.PASSING=219}static{this.PASSWORD=220}static{this.PAST=221}static{this.PATTERN=222}static{this.PER=223}static{this.PERMUTE=224}static{this.PLAN=225}static{this.POOL=226}static{this.PRAGMA=227}static{this.PRECEDING=228}static{this.PRESORT=229}static{this.PRIMARY=230}static{this.PRIVILEGES=231}static{this.PROCESS=232}static{this.QUERY=233}static{this.QUEUE=234}static{this.RAISE=235}static{this.RANGE=236}static{this.REDUCE=237}static{this.REFERENCES=238}static{this.REGEXP=239}static{this.REINDEX=240}static{this.RELEASE=241}static{this.REMOVE=242}static{this.RENAME=243}static{this.REPEATABLE=244}static{this.REPLACE=245}static{this.REPLICATION=246}static{this.RESET=247}static{this.RESOURCE=248}static{this.RESPECT=249}static{this.RESTART=250}static{this.RESTORE=251}static{this.RESTRICT=252}static{this.RESULT=253}static{this.RETURN=254}static{this.RETURNING=255}static{this.REVERT=256}static{this.REVOKE=257}static{this.RIGHT=258}static{this.RLIKE=259}static{this.ROLLBACK=260}static{this.ROLLUP=261}static{this.ROW=262}static{this.ROWS=263}static{this.SAMPLE=264}static{this.SAVEPOINT=265}static{this.SCHEMA=266}static{this.SECONDS=267}static{this.SEEK=268}static{this.SELECT=269}static{this.SEMI=270}static{this.SET=271}static{this.SETS=272}static{this.SHOW=273}static{this.TSKIP=274}static{this.SEQUENCE=275}static{this.SOURCE=276}static{this.START=277}static{this.STREAM=278}static{this.STRUCT=279}static{this.SUBQUERY=280}static{this.SUBSET=281}static{this.SYMBOLS=282}static{this.SYMMETRIC=283}static{this.SYNC=284}static{this.SYSTEM=285}static{this.TABLE=286}static{this.TABLES=287}static{this.TABLESAMPLE=288}static{this.TABLESTORE=289}static{this.TAGGED=290}static{this.TEMP=291}static{this.TEMPORARY=292}static{this.THEN=293}static{this.TIES=294}static{this.TO=295}static{this.TOPIC=296}static{this.TRANSACTION=297}static{this.TRANSFER=298}static{this.TRIGGER=299}static{this.TRUE=300}static{this.TUPLE=301}static{this.TYPE=302}static{this.UNBOUNDED=303}static{this.UNCONDITIONAL=304}static{this.UNION=305}static{this.UNIQUE=306}static{this.UNKNOWN=307}static{this.UNMATCHED=308}static{this.UPDATE=309}static{this.UPSERT=310}static{this.USE=311}static{this.USER=312}static{this.USING=313}static{this.VACUUM=314}static{this.VALUES=315}static{this.VARIANT=316}static{this.VIEW=317}static{this.VIRTUAL=318}static{this.WHEN=319}static{this.WHERE=320}static{this.WINDOW=321}static{this.WITH=322}static{this.WITHOUT=323}static{this.WRAPPER=324}static{this.XOR=325}static{this.STRING_VALUE=326}static{this.ID_PLAIN=327}static{this.ID_QUOTED=328}static{this.DIGITS=329}static{this.INTEGER_VALUE=330}static{this.REAL=331}static{this.BLOB=332}static{this.WS=333}static{this.COMMENT=334}static{this.RULE_sql_query=0}static{this.RULE_sql_stmt_list=1}static{this.RULE_ansi_sql_stmt_list=2}static{this.RULE_lambda_body=3}static{this.RULE_lambda_stmt=4}static{this.RULE_sql_stmt=5}static{this.RULE_sql_stmt_core=6}static{this.RULE_expr=7}static{this.RULE_or_subexpr=8}static{this.RULE_and_subexpr=9}static{this.RULE_xor_subexpr=10}static{this.RULE_distinct_from_op=11}static{this.RULE_cond_expr=12}static{this.RULE_match_op=13}static{this.RULE_eq_subexpr=14}static{this.RULE_shift_right=15}static{this.RULE_rot_right=16}static{this.RULE_double_question=17}static{this.RULE_neq_subexpr=18}static{this.RULE_bit_subexpr=19}static{this.RULE_add_subexpr=20}static{this.RULE_mul_subexpr=21}static{this.RULE_con_subexpr=22}static{this.RULE_unary_op=23}static{this.RULE_unary_subexpr_suffix=24}static{this.RULE_unary_casual_subexpr=25}static{this.RULE_in_unary_casual_subexpr=26}static{this.RULE_unary_subexpr=27}static{this.RULE_in_unary_subexpr=28}static{this.RULE_list_literal=29}static{this.RULE_expr_dict_list=30}static{this.RULE_dict_literal=31}static{this.RULE_expr_struct_list=32}static{this.RULE_struct_literal=33}static{this.RULE_atom_expr=34}static{this.RULE_in_atom_expr=35}static{this.RULE_cast_expr=36}static{this.RULE_bitcast_expr=37}static{this.RULE_exists_expr=38}static{this.RULE_case_expr=39}static{this.RULE_lambda=40}static{this.RULE_in_expr=41}static{this.RULE_json_api_expr=42}static{this.RULE_jsonpath_spec=43}static{this.RULE_json_variable_name=44}static{this.RULE_json_variable=45}static{this.RULE_json_variables=46}static{this.RULE_json_common_args=47}static{this.RULE_json_case_handler=48}static{this.RULE_json_value=49}static{this.RULE_json_exists_handler=50}static{this.RULE_json_exists=51}static{this.RULE_json_query_wrapper=52}static{this.RULE_json_query_handler=53}static{this.RULE_json_query=54}static{this.RULE_smart_parenthesis=55}static{this.RULE_expr_list=56}static{this.RULE_pure_column_list=57}static{this.RULE_pure_column_or_named=58}static{this.RULE_pure_column_or_named_list=59}static{this.RULE_column_name=60}static{this.RULE_without_column_name=61}static{this.RULE_column_list=62}static{this.RULE_without_column_list=63}static{this.RULE_named_expr=64}static{this.RULE_named_expr_list=65}static{this.RULE_invoke_expr=66}static{this.RULE_invoke_expr_tail=67}static{this.RULE_using_call_expr=68}static{this.RULE_key_expr=69}static{this.RULE_when_expr=70}static{this.RULE_literal_value=71}static{this.RULE_bind_parameter=72}static{this.RULE_opt_bind_parameter=73}static{this.RULE_bind_parameter_list=74}static{this.RULE_named_bind_parameter=75}static{this.RULE_named_bind_parameter_list=76}static{this.RULE_signed_number=77}static{this.RULE_type_name_simple=78}static{this.RULE_integer_or_bind=79}static{this.RULE_type_name_tag=80}static{this.RULE_struct_arg=81}static{this.RULE_struct_arg_positional=82}static{this.RULE_variant_arg=83}static{this.RULE_callable_arg=84}static{this.RULE_callable_arg_list=85}static{this.RULE_type_name_decimal=86}static{this.RULE_type_name_optional=87}static{this.RULE_type_name_tuple=88}static{this.RULE_type_name_struct=89}static{this.RULE_type_name_variant=90}static{this.RULE_type_name_list=91}static{this.RULE_type_name_stream=92}static{this.RULE_type_name_flow=93}static{this.RULE_type_name_dict=94}static{this.RULE_type_name_set=95}static{this.RULE_type_name_enum=96}static{this.RULE_type_name_resource=97}static{this.RULE_type_name_tagged=98}static{this.RULE_type_name_callable=99}static{this.RULE_type_name_composite=100}static{this.RULE_type_name=101}static{this.RULE_type_name_or_bind=102}static{this.RULE_value_constructor_literal=103}static{this.RULE_value_constructor=104}static{this.RULE_declare_stmt=105}static{this.RULE_module_path=106}static{this.RULE_import_stmt=107}static{this.RULE_export_stmt=108}static{this.RULE_call_action=109}static{this.RULE_inline_action=110}static{this.RULE_do_stmt=111}static{this.RULE_pragma_stmt=112}static{this.RULE_pragma_value=113}static{this.RULE_sort_specification=114}static{this.RULE_sort_specification_list=115}static{this.RULE_select_stmt=116}static{this.RULE_select_unparenthesized_stmt=117}static{this.RULE_select_kind_parenthesis=118}static{this.RULE_select_op=119}static{this.RULE_select_kind_partial=120}static{this.RULE_select_kind=121}static{this.RULE_process_core=122}static{this.RULE_external_call_param=123}static{this.RULE_external_call_settings=124}static{this.RULE_reduce_core=125}static{this.RULE_opt_set_quantifier=126}static{this.RULE_select_core=127}static{this.RULE_row_pattern_recognition_clause=128}static{this.RULE_row_pattern_rows_per_match=129}static{this.RULE_row_pattern_empty_match_handling=130}static{this.RULE_row_pattern_measures=131}static{this.RULE_row_pattern_measure_list=132}static{this.RULE_row_pattern_measure_definition=133}static{this.RULE_row_pattern_common_syntax=134}static{this.RULE_row_pattern_skip_to=135}static{this.RULE_row_pattern_skip_to_variable_name=136}static{this.RULE_row_pattern_initial_or_seek=137}static{this.RULE_row_pattern=138}static{this.RULE_row_pattern_term=139}static{this.RULE_row_pattern_factor=140}static{this.RULE_row_pattern_quantifier=141}static{this.RULE_row_pattern_primary=142}static{this.RULE_row_pattern_primary_variable_name=143}static{this.RULE_row_pattern_permute=144}static{this.RULE_row_pattern_subset_clause=145}static{this.RULE_row_pattern_subset_list=146}static{this.RULE_row_pattern_subset_item=147}static{this.RULE_row_pattern_subset_item_variable_name=148}static{this.RULE_row_pattern_subset_rhs=149}static{this.RULE_row_pattern_subset_rhs_variable_name=150}static{this.RULE_row_pattern_definition_list=151}static{this.RULE_row_pattern_definition=152}static{this.RULE_row_pattern_definition_variable_name=153}static{this.RULE_row_pattern_definition_search_condition=154}static{this.RULE_search_condition=155}static{this.RULE_row_pattern_variable_name=156}static{this.RULE_order_by_clause=157}static{this.RULE_ext_order_by_clause=158}static{this.RULE_group_by_clause=159}static{this.RULE_grouping_element_list=160}static{this.RULE_grouping_element=161}static{this.RULE_ordinary_grouping_set=162}static{this.RULE_ordinary_grouping_set_list=163}static{this.RULE_rollup_list=164}static{this.RULE_cube_list=165}static{this.RULE_grouping_sets_specification=166}static{this.RULE_hopping_window_specification=167}static{this.RULE_result_column=168}static{this.RULE_join_source=169}static{this.RULE_named_column=170}static{this.RULE_flatten_by_arg=171}static{this.RULE_flatten_source=172}static{this.RULE_named_single_source=173}static{this.RULE_single_source=174}static{this.RULE_sample_clause=175}static{this.RULE_tablesample_clause=176}static{this.RULE_sampling_mode=177}static{this.RULE_repeatable_clause=178}static{this.RULE_join_op=179}static{this.RULE_join_constraint=180}static{this.RULE_returning_columns_list=181}static{this.RULE_into_table_stmt=182}static{this.RULE_into_table_stmt_yq=183}static{this.RULE_into_values_source=184}static{this.RULE_values_stmt=185}static{this.RULE_values_source=186}static{this.RULE_values_source_row_list=187}static{this.RULE_values_source_row=188}static{this.RULE_simple_values_source=189}static{this.RULE_create_external_data_source_stmt=190}static{this.RULE_alter_external_data_source_stmt=191}static{this.RULE_alter_external_data_source_action=192}static{this.RULE_drop_external_data_source_stmt=193}static{this.RULE_create_view_stmt=194}static{this.RULE_drop_view_stmt=195}static{this.RULE_upsert_object_stmt=196}static{this.RULE_create_object_stmt=197}static{this.RULE_create_object_features=198}static{this.RULE_alter_object_stmt=199}static{this.RULE_alter_object_features=200}static{this.RULE_drop_object_stmt=201}static{this.RULE_drop_object_features=202}static{this.RULE_object_feature_value=203}static{this.RULE_object_feature_kv=204}static{this.RULE_object_feature_flag=205}static{this.RULE_object_feature=206}static{this.RULE_object_features=207}static{this.RULE_object_type_ref=208}static{this.RULE_create_table_stmt=209}static{this.RULE_create_table_entry=210}static{this.RULE_create_backup_collection_stmt=211}static{this.RULE_alter_backup_collection_stmt=212}static{this.RULE_drop_backup_collection_stmt=213}static{this.RULE_create_backup_collection_entries=214}static{this.RULE_create_backup_collection_entries_many=215}static{this.RULE_table_list=216}static{this.RULE_alter_backup_collection_actions=217}static{this.RULE_alter_backup_collection_action=218}static{this.RULE_alter_backup_collection_entries=219}static{this.RULE_alter_backup_collection_entry=220}static{this.RULE_backup_collection=221}static{this.RULE_backup_collection_settings=222}static{this.RULE_backup_collection_settings_entry=223}static{this.RULE_backup_stmt=224}static{this.RULE_restore_stmt=225}static{this.RULE_table_inherits=226}static{this.RULE_table_partition_by=227}static{this.RULE_with_table_settings=228}static{this.RULE_table_tablestore=229}static{this.RULE_table_settings_entry=230}static{this.RULE_table_as_source=231}static{this.RULE_alter_table_stmt=232}static{this.RULE_alter_table_action=233}static{this.RULE_alter_external_table_stmt=234}static{this.RULE_alter_external_table_action=235}static{this.RULE_alter_table_store_stmt=236}static{this.RULE_alter_table_store_action=237}static{this.RULE_alter_table_add_column=238}static{this.RULE_alter_table_drop_column=239}static{this.RULE_alter_table_alter_column=240}static{this.RULE_alter_table_alter_column_drop_not_null=241}static{this.RULE_alter_table_add_column_family=242}static{this.RULE_alter_table_alter_column_family=243}static{this.RULE_alter_table_set_table_setting_uncompat=244}static{this.RULE_alter_table_set_table_setting_compat=245}static{this.RULE_alter_table_reset_table_setting=246}static{this.RULE_alter_table_add_index=247}static{this.RULE_alter_table_drop_index=248}static{this.RULE_alter_table_rename_to=249}static{this.RULE_alter_table_rename_index_to=250}static{this.RULE_alter_table_add_changefeed=251}static{this.RULE_alter_table_alter_changefeed=252}static{this.RULE_alter_table_drop_changefeed=253}static{this.RULE_alter_table_alter_index=254}static{this.RULE_column_schema=255}static{this.RULE_family_relation=256}static{this.RULE_opt_column_constraints=257}static{this.RULE_column_order_by_specification=258}static{this.RULE_table_constraint=259}static{this.RULE_table_index=260}static{this.RULE_table_index_type=261}static{this.RULE_global_index=262}static{this.RULE_local_index=263}static{this.RULE_index_subtype=264}static{this.RULE_with_index_settings=265}static{this.RULE_index_setting_entry=266}static{this.RULE_index_setting_value=267}static{this.RULE_changefeed=268}static{this.RULE_changefeed_settings=269}static{this.RULE_changefeed_settings_entry=270}static{this.RULE_changefeed_setting_value=271}static{this.RULE_changefeed_alter_settings=272}static{this.RULE_alter_table_setting_entry=273}static{this.RULE_table_setting_value=274}static{this.RULE_ttl_tier_list=275}static{this.RULE_ttl_tier_action=276}static{this.RULE_family_entry=277}static{this.RULE_family_settings=278}static{this.RULE_family_settings_entry=279}static{this.RULE_family_setting_value=280}static{this.RULE_split_boundaries=281}static{this.RULE_literal_value_list=282}static{this.RULE_alter_table_alter_index_action=283}static{this.RULE_drop_table_stmt=284}static{this.RULE_create_user_stmt=285}static{this.RULE_alter_user_stmt=286}static{this.RULE_create_group_stmt=287}static{this.RULE_alter_group_stmt=288}static{this.RULE_drop_role_stmt=289}static{this.RULE_role_name=290}static{this.RULE_user_option=291}static{this.RULE_authentication_option=292}static{this.RULE_password_option=293}static{this.RULE_hash_option=294}static{this.RULE_login_option=295}static{this.RULE_grant_permissions_stmt=296}static{this.RULE_revoke_permissions_stmt=297}static{this.RULE_permission_id=298}static{this.RULE_permission_name=299}static{this.RULE_permission_name_target=300}static{this.RULE_create_resource_pool_stmt=301}static{this.RULE_alter_resource_pool_stmt=302}static{this.RULE_alter_resource_pool_action=303}static{this.RULE_drop_resource_pool_stmt=304}static{this.RULE_create_resource_pool_classifier_stmt=305}static{this.RULE_alter_resource_pool_classifier_stmt=306}static{this.RULE_alter_resource_pool_classifier_action=307}static{this.RULE_drop_resource_pool_classifier_stmt=308}static{this.RULE_create_replication_stmt=309}static{this.RULE_replication_target=310}static{this.RULE_replication_settings=311}static{this.RULE_replication_settings_entry=312}static{this.RULE_alter_replication_stmt=313}static{this.RULE_alter_replication_action=314}static{this.RULE_alter_replication_set_setting=315}static{this.RULE_drop_replication_stmt=316}static{this.RULE_lambda_or_parameter=317}static{this.RULE_create_transfer_stmt=318}static{this.RULE_transfer_settings=319}static{this.RULE_transfer_settings_entry=320}static{this.RULE_alter_transfer_stmt=321}static{this.RULE_alter_transfer_action=322}static{this.RULE_alter_transfer_set_setting=323}static{this.RULE_alter_transfer_set_using=324}static{this.RULE_drop_transfer_stmt=325}static{this.RULE_action_or_subquery_args=326}static{this.RULE_define_action_or_subquery_stmt=327}static{this.RULE_define_action_or_subquery_body=328}static{this.RULE_if_stmt=329}static{this.RULE_for_stmt=330}static{this.RULE_table_ref=331}static{this.RULE_table_key=332}static{this.RULE_table_arg=333}static{this.RULE_table_hints=334}static{this.RULE_table_hint=335}static{this.RULE_object_ref=336}static{this.RULE_simple_table_ref_core=337}static{this.RULE_simple_table_ref=338}static{this.RULE_into_simple_table_ref=339}static{this.RULE_delete_stmt=340}static{this.RULE_update_stmt=341}static{this.RULE_set_clause_choice=342}static{this.RULE_set_clause_list=343}static{this.RULE_set_clause=344}static{this.RULE_set_target=345}static{this.RULE_multiple_column_assignment=346}static{this.RULE_set_target_list=347}static{this.RULE_create_topic_stmt=348}static{this.RULE_create_topic_entries=349}static{this.RULE_create_topic_entry=350}static{this.RULE_with_topic_settings=351}static{this.RULE_alter_topic_stmt=352}static{this.RULE_alter_topic_action=353}static{this.RULE_alter_topic_add_consumer=354}static{this.RULE_topic_create_consumer_entry=355}static{this.RULE_alter_topic_alter_consumer=356}static{this.RULE_alter_topic_alter_consumer_entry=357}static{this.RULE_alter_topic_drop_consumer=358}static{this.RULE_topic_alter_consumer_set=359}static{this.RULE_topic_alter_consumer_reset=360}static{this.RULE_alter_topic_set_settings=361}static{this.RULE_alter_topic_reset_settings=362}static{this.RULE_drop_topic_stmt=363}static{this.RULE_topic_settings=364}static{this.RULE_topic_settings_entry=365}static{this.RULE_topic_setting_value=366}static{this.RULE_topic_consumer_with_settings=367}static{this.RULE_topic_consumer_settings=368}static{this.RULE_topic_consumer_settings_entry=369}static{this.RULE_topic_consumer_setting_value=370}static{this.RULE_topic_ref=371}static{this.RULE_topic_consumer_ref=372}static{this.RULE_null_treatment=373}static{this.RULE_filter_clause=374}static{this.RULE_window_name_or_specification=375}static{this.RULE_window_name=376}static{this.RULE_window_clause=377}static{this.RULE_window_definition_list=378}static{this.RULE_window_definition=379}static{this.RULE_new_window_name=380}static{this.RULE_window_specification=381}static{this.RULE_window_specification_details=382}static{this.RULE_existing_window_name=383}static{this.RULE_window_partition_clause=384}static{this.RULE_window_order_clause=385}static{this.RULE_window_frame_clause=386}static{this.RULE_window_frame_units=387}static{this.RULE_window_frame_extent=388}static{this.RULE_window_frame_between=389}static{this.RULE_window_frame_bound=390}static{this.RULE_window_frame_exclusion=391}static{this.RULE_use_stmt=392}static{this.RULE_subselect_stmt=393}static{this.RULE_named_nodes_stmt=394}static{this.RULE_commit_stmt=395}static{this.RULE_rollback_stmt=396}static{this.RULE_analyze_table=397}static{this.RULE_analyze_table_list=398}static{this.RULE_analyze_stmt=399}static{this.RULE_alter_sequence_stmt=400}static{this.RULE_alter_sequence_action=401}static{this.RULE_identifier=402}static{this.RULE_id=403}static{this.RULE_id_schema=404}static{this.RULE_id_expr=405}static{this.RULE_id_expr_in=406}static{this.RULE_id_window=407}static{this.RULE_id_table=408}static{this.RULE_id_without=409}static{this.RULE_id_hint=410}static{this.RULE_id_as_compat=411}static{this.RULE_an_id=412}static{this.RULE_an_id_or_type=413}static{this.RULE_an_id_schema=414}static{this.RULE_an_id_expr=415}static{this.RULE_an_id_expr_in=416}static{this.RULE_an_id_window=417}static{this.RULE_an_id_table=418}static{this.RULE_an_id_without=419}static{this.RULE_an_id_hint=420}static{this.RULE_an_id_pure=421}static{this.RULE_an_id_as_compat=422}static{this.RULE_view_name=423}static{this.RULE_opt_id_prefix=424}static{this.RULE_cluster_expr=425}static{this.RULE_id_or_type=426}static{this.RULE_opt_id_prefix_or_type=427}static{this.RULE_id_or_at=428}static{this.RULE_id_table_or_type=429}static{this.RULE_id_table_or_at=430}static{this.RULE_keyword=431}static{this.RULE_keyword_expr_uncompat=432}static{this.RULE_keyword_table_uncompat=433}static{this.RULE_keyword_select_uncompat=434}static{this.RULE_keyword_alter_uncompat=435}static{this.RULE_keyword_in_uncompat=436}static{this.RULE_keyword_window_uncompat=437}static{this.RULE_keyword_hint_uncompat=438}static{this.RULE_keyword_as_compat=439}static{this.RULE_keyword_compat=440}static{this.RULE_type_id=441}static{this.RULE_bool_value=442}static{this.RULE_real=443}static{this.RULE_integer=444}static{this.RULE_sql_query_yq=445}static{this.RULE_sql_stmt_list_yq=446}static{this.RULE_sql_stmt_yq=447}static{this.RULE_sql_stmt_core_yq=448}static{this.RULE_replication_name=449}static{this.RULE_where_expr=450}static{this.literalNames=[null,"'='","'=='","'!='","'<>'","'<'","'<='","'>'","'>='","'<<'","'|<<'","'&'","'|'","'||'","'<|'","'|>'","'+'","'-'","'~'","'*'","'/'","'%'","';'","'.'","','","'('","')'","'?'","':'","'@'","'$'","'{'","'}'","'^'","'::'","'->'","']'","'['"]}static{this.symbolicNames=[null,"EQUALS","EQUALS2","NOT_EQUALS","NOT_EQUALS2","LESS","LESS_OR_EQ","GREATER","GREATER_OR_EQ","SHIFT_LEFT","ROT_LEFT","AMPERSAND","PIPE","DOUBLE_PIPE","STRUCT_OPEN","STRUCT_CLOSE","PLUS","MINUS","TILDA","ASTERISK","SLASH","PERCENT","SEMICOLON","DOT","COMMA","LPAREN","RPAREN","QUESTION","COLON","COMMAT","DOLLAR","LBRACE_CURLY","RBRACE_CURLY","CARET","NAMESPACE","ARROW","RBRACE_SQUARE","LBRACE_SQUARE","ABORT","ACTION","ADD","AFTER","ALL","ALTER","ANALYZE","AND","ANSI","ANY","ARRAY","AS","ASC","ASSUME","ASYMMETRIC","ASYNC","AT","ATTACH","ATTRIBUTES","AUTOINCREMENT","AUTOMAP","BACKUP","BATCH","COLLECTION","BEFORE","BEGIN","BERNOULLI","BETWEEN","BITCAST","BY","CALLABLE","CASCADE","CASE","CAST","CHANGEFEED","CHECK","CLASSIFIER","COLLATE","COLUMN","COLUMNS","COMMIT","COMPACT","CONDITIONAL","CONFLICT","CONNECT","CONSTRAINT","CONSUMER","COVER","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATA","DATABASE","DECIMAL","DECLARE","DEFAULT","DEFERRABLE","DEFERRED","DEFINE","DELETE","DESC","DESCRIBE","DETACH","DICT","DIRECTORY","DISABLE","DISCARD","DISTINCT","DO","DROP","EACH","ELSE","EMPTY","EMPTY_ACTION","ENCRYPTED","END","ENUM","ERASE","ERROR","ESCAPE","EVALUATE","EXCEPT","EXCLUDE","EXCLUSION","EXCLUSIVE","EXISTS","EXPLAIN","EXPORT","EXTERNAL","FAIL","FALSE","FAMILY","FILTER","FIRST","FLATTEN","FLOW","FOLLOWING","FOR","FOREIGN","FROM","FULL","FUNCTION","GLOB","GLOBAL","GRANT","GROUP","GROUPING","GROUPS","HASH","HAVING","HOP","IF","IGNORE","ILIKE","IMMEDIATE","IMPORT","IN","INCREMENT","INCREMENTAL","INDEX","INDEXED","INHERITS","INITIAL","INITIALLY","INNER","INSERT","INSTEAD","INTERSECT","INTO","IS","ISNULL","JOIN","JSON_EXISTS","JSON_QUERY","JSON_VALUE","KEY","LAST","LEFT","LEGACY","LIKE","LIMIT","LIST","LOCAL","LOGIN","MANAGE","MATCH","MATCHES","MATCH_RECOGNIZE","MEASURES","MICROSECONDS","MILLISECONDS","MODIFY","NANOSECONDS","NATURAL","NEXT","NO","NOLOGIN","NOT","NOTNULL","NULL","NULLS","OBJECT","OF","OFFSET","OMIT","ON","ONE","ONLY","OPTION","OPTIONAL","OR","ORDER","OTHERS","OUTER","OVER","PARALLEL","PARTITION","PASSING","PASSWORD","PAST","PATTERN","PER","PERMUTE","PLAN","POOL","PRAGMA","PRECEDING","PRESORT","PRIMARY","PRIVILEGES","PROCESS","QUERY","QUEUE","RAISE","RANGE","REDUCE","REFERENCES","REGEXP","REINDEX","RELEASE","REMOVE","RENAME","REPEATABLE","REPLACE","REPLICATION","RESET","RESOURCE","RESPECT","RESTART","RESTORE","RESTRICT","RESULT","RETURN","RETURNING","REVERT","REVOKE","RIGHT","RLIKE","ROLLBACK","ROLLUP","ROW","ROWS","SAMPLE","SAVEPOINT","SCHEMA","SECONDS","SEEK","SELECT","SEMI","SET","SETS","SHOW","TSKIP","SEQUENCE","SOURCE","START","STREAM","STRUCT","SUBQUERY","SUBSET","SYMBOLS","SYMMETRIC","SYNC","SYSTEM","TABLE","TABLES","TABLESAMPLE","TABLESTORE","TAGGED","TEMP","TEMPORARY","THEN","TIES","TO","TOPIC","TRANSACTION","TRANSFER","TRIGGER","TRUE","TUPLE","TYPE","UNBOUNDED","UNCONDITIONAL","UNION","UNIQUE","UNKNOWN","UNMATCHED","UPDATE","UPSERT","USE","USER","USING","VACUUM","VALUES","VARIANT","VIEW","VIRTUAL","WHEN","WHERE","WINDOW","WITH","WITHOUT","WRAPPER","XOR","STRING_VALUE","ID_PLAIN","ID_QUOTED","DIGITS","INTEGER_VALUE","REAL","BLOB","WS","COMMENT"]}static{this.ruleNames=["sql_query","sql_stmt_list","ansi_sql_stmt_list","lambda_body","lambda_stmt","sql_stmt","sql_stmt_core","expr","or_subexpr","and_subexpr","xor_subexpr","distinct_from_op","cond_expr","match_op","eq_subexpr","shift_right","rot_right","double_question","neq_subexpr","bit_subexpr","add_subexpr","mul_subexpr","con_subexpr","unary_op","unary_subexpr_suffix","unary_casual_subexpr","in_unary_casual_subexpr","unary_subexpr","in_unary_subexpr","list_literal","expr_dict_list","dict_literal","expr_struct_list","struct_literal","atom_expr","in_atom_expr","cast_expr","bitcast_expr","exists_expr","case_expr","lambda","in_expr","json_api_expr","jsonpath_spec","json_variable_name","json_variable","json_variables","json_common_args","json_case_handler","json_value","json_exists_handler","json_exists","json_query_wrapper","json_query_handler","json_query","smart_parenthesis","expr_list","pure_column_list","pure_column_or_named","pure_column_or_named_list","column_name","without_column_name","column_list","without_column_list","named_expr","named_expr_list","invoke_expr","invoke_expr_tail","using_call_expr","key_expr","when_expr","literal_value","bind_parameter","opt_bind_parameter","bind_parameter_list","named_bind_parameter","named_bind_parameter_list","signed_number","type_name_simple","integer_or_bind","type_name_tag","struct_arg","struct_arg_positional","variant_arg","callable_arg","callable_arg_list","type_name_decimal","type_name_optional","type_name_tuple","type_name_struct","type_name_variant","type_name_list","type_name_stream","type_name_flow","type_name_dict","type_name_set","type_name_enum","type_name_resource","type_name_tagged","type_name_callable","type_name_composite","type_name","type_name_or_bind","value_constructor_literal","value_constructor","declare_stmt","module_path","import_stmt","export_stmt","call_action","inline_action","do_stmt","pragma_stmt","pragma_value","sort_specification","sort_specification_list","select_stmt","select_unparenthesized_stmt","select_kind_parenthesis","select_op","select_kind_partial","select_kind","process_core","external_call_param","external_call_settings","reduce_core","opt_set_quantifier","select_core","row_pattern_recognition_clause","row_pattern_rows_per_match","row_pattern_empty_match_handling","row_pattern_measures","row_pattern_measure_list","row_pattern_measure_definition","row_pattern_common_syntax","row_pattern_skip_to","row_pattern_skip_to_variable_name","row_pattern_initial_or_seek","row_pattern","row_pattern_term","row_pattern_factor","row_pattern_quantifier","row_pattern_primary","row_pattern_primary_variable_name","row_pattern_permute","row_pattern_subset_clause","row_pattern_subset_list","row_pattern_subset_item","row_pattern_subset_item_variable_name","row_pattern_subset_rhs","row_pattern_subset_rhs_variable_name","row_pattern_definition_list","row_pattern_definition","row_pattern_definition_variable_name","row_pattern_definition_search_condition","search_condition","row_pattern_variable_name","order_by_clause","ext_order_by_clause","group_by_clause","grouping_element_list","grouping_element","ordinary_grouping_set","ordinary_grouping_set_list","rollup_list","cube_list","grouping_sets_specification","hopping_window_specification","result_column","join_source","named_column","flatten_by_arg","flatten_source","named_single_source","single_source","sample_clause","tablesample_clause","sampling_mode","repeatable_clause","join_op","join_constraint","returning_columns_list","into_table_stmt","into_table_stmt_yq","into_values_source","values_stmt","values_source","values_source_row_list","values_source_row","simple_values_source","create_external_data_source_stmt","alter_external_data_source_stmt","alter_external_data_source_action","drop_external_data_source_stmt","create_view_stmt","drop_view_stmt","upsert_object_stmt","create_object_stmt","create_object_features","alter_object_stmt","alter_object_features","drop_object_stmt","drop_object_features","object_feature_value","object_feature_kv","object_feature_flag","object_feature","object_features","object_type_ref","create_table_stmt","create_table_entry","create_backup_collection_stmt","alter_backup_collection_stmt","drop_backup_collection_stmt","create_backup_collection_entries","create_backup_collection_entries_many","table_list","alter_backup_collection_actions","alter_backup_collection_action","alter_backup_collection_entries","alter_backup_collection_entry","backup_collection","backup_collection_settings","backup_collection_settings_entry","backup_stmt","restore_stmt","table_inherits","table_partition_by","with_table_settings","table_tablestore","table_settings_entry","table_as_source","alter_table_stmt","alter_table_action","alter_external_table_stmt","alter_external_table_action","alter_table_store_stmt","alter_table_store_action","alter_table_add_column","alter_table_drop_column","alter_table_alter_column","alter_table_alter_column_drop_not_null","alter_table_add_column_family","alter_table_alter_column_family","alter_table_set_table_setting_uncompat","alter_table_set_table_setting_compat","alter_table_reset_table_setting","alter_table_add_index","alter_table_drop_index","alter_table_rename_to","alter_table_rename_index_to","alter_table_add_changefeed","alter_table_alter_changefeed","alter_table_drop_changefeed","alter_table_alter_index","column_schema","family_relation","opt_column_constraints","column_order_by_specification","table_constraint","table_index","table_index_type","global_index","local_index","index_subtype","with_index_settings","index_setting_entry","index_setting_value","changefeed","changefeed_settings","changefeed_settings_entry","changefeed_setting_value","changefeed_alter_settings","alter_table_setting_entry","table_setting_value","ttl_tier_list","ttl_tier_action","family_entry","family_settings","family_settings_entry","family_setting_value","split_boundaries","literal_value_list","alter_table_alter_index_action","drop_table_stmt","create_user_stmt","alter_user_stmt","create_group_stmt","alter_group_stmt","drop_role_stmt","role_name","user_option","authentication_option","password_option","hash_option","login_option","grant_permissions_stmt","revoke_permissions_stmt","permission_id","permission_name","permission_name_target","create_resource_pool_stmt","alter_resource_pool_stmt","alter_resource_pool_action","drop_resource_pool_stmt","create_resource_pool_classifier_stmt","alter_resource_pool_classifier_stmt","alter_resource_pool_classifier_action","drop_resource_pool_classifier_stmt","create_replication_stmt","replication_target","replication_settings","replication_settings_entry","alter_replication_stmt","alter_replication_action","alter_replication_set_setting","drop_replication_stmt","lambda_or_parameter","create_transfer_stmt","transfer_settings","transfer_settings_entry","alter_transfer_stmt","alter_transfer_action","alter_transfer_set_setting","alter_transfer_set_using","drop_transfer_stmt","action_or_subquery_args","define_action_or_subquery_stmt","define_action_or_subquery_body","if_stmt","for_stmt","table_ref","table_key","table_arg","table_hints","table_hint","object_ref","simple_table_ref_core","simple_table_ref","into_simple_table_ref","delete_stmt","update_stmt","set_clause_choice","set_clause_list","set_clause","set_target","multiple_column_assignment","set_target_list","create_topic_stmt","create_topic_entries","create_topic_entry","with_topic_settings","alter_topic_stmt","alter_topic_action","alter_topic_add_consumer","topic_create_consumer_entry","alter_topic_alter_consumer","alter_topic_alter_consumer_entry","alter_topic_drop_consumer","topic_alter_consumer_set","topic_alter_consumer_reset","alter_topic_set_settings","alter_topic_reset_settings","drop_topic_stmt","topic_settings","topic_settings_entry","topic_setting_value","topic_consumer_with_settings","topic_consumer_settings","topic_consumer_settings_entry","topic_consumer_setting_value","topic_ref","topic_consumer_ref","null_treatment","filter_clause","window_name_or_specification","window_name","window_clause","window_definition_list","window_definition","new_window_name","window_specification","window_specification_details","existing_window_name","window_partition_clause","window_order_clause","window_frame_clause","window_frame_units","window_frame_extent","window_frame_between","window_frame_bound","window_frame_exclusion","use_stmt","subselect_stmt","named_nodes_stmt","commit_stmt","rollback_stmt","analyze_table","analyze_table_list","analyze_stmt","alter_sequence_stmt","alter_sequence_action","identifier","id","id_schema","id_expr","id_expr_in","id_window","id_table","id_without","id_hint","id_as_compat","an_id","an_id_or_type","an_id_schema","an_id_expr","an_id_expr_in","an_id_window","an_id_table","an_id_without","an_id_hint","an_id_pure","an_id_as_compat","view_name","opt_id_prefix","cluster_expr","id_or_type","opt_id_prefix_or_type","id_or_at","id_table_or_type","id_table_or_at","keyword","keyword_expr_uncompat","keyword_table_uncompat","keyword_select_uncompat","keyword_alter_uncompat","keyword_in_uncompat","keyword_window_uncompat","keyword_hint_uncompat","keyword_as_compat","keyword_compat","type_id","bool_value","real","integer","sql_query_yq","sql_stmt_list_yq","sql_stmt_yq","sql_stmt_core_yq","replication_name","where_expr"]}get grammarFileName(){return"YQL.g4"}get literalNames(){return e.literalNames}get symbolicNames(){return e.symbolicNames}get ruleNames(){return e.ruleNames}get serializedATN(){return e._serializedATN}createFailedPredicateException(e,t){return new Ft(this,e,t)}constructor(t){super(t),this.interpreter=new gt(this,e._ATN,e.decisionsToDFA,new pt)}sql_query(){let t=new os(this.context,this.state);this.enterRule(t,0,e.RULE_sql_query);try{switch(this.state=907,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,0,this.context)){case 1:this.enterOuterAlt(t,1),this.state=902,this.sql_stmt_list();break;case 2:this.enterOuterAlt(t,2),this.state=903,this.match(e.PRAGMA),this.state=904,this.match(e.ANSI),this.state=905,this.match(e.DIGITS),this.state=906,this.ansi_sql_stmt_list()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}sql_stmt_list(){let t,i=new as(this.context,this.state);this.enterRule(i,2,e.RULE_sql_stmt_list);try{let s;for(this.enterOuterAlt(i,1),this.state=912,this.errorHandler.sync(this),t=this.tokenStream.LA(1);22===t;)this.state=909,this.match(e.SEMICOLON),this.state=914,this.errorHandler.sync(this),t=this.tokenStream.LA(1);for(this.state=915,this.sql_stmt(),this.state=924,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,3,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;){if(1===s){this.state=917,this.errorHandler.sync(this),t=this.tokenStream.LA(1);do{this.state=916,this.match(e.SEMICOLON),this.state=919,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}while(22===t);this.state=921,this.sql_stmt()}this.state=926,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,3,this.context)}for(this.state=930,this.errorHandler.sync(this),t=this.tokenStream.LA(1);22===t;)this.state=927,this.match(e.SEMICOLON),this.state=932,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=933,this.match(e.EOF)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}ansi_sql_stmt_list(){let t,i=new cs(this.context,this.state);this.enterRule(i,4,e.RULE_ansi_sql_stmt_list);try{for(this.enterOuterAlt(i,1),this.state=938,this.errorHandler.sync(this),t=this.tokenStream.LA(1);22===t;)this.state=935,this.match(e.SEMICOLON),this.state=940,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=941,this.match(e.EOF)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}lambda_body(){let t,i=new ls(this.context,this.state);this.enterRule(i,6,e.RULE_lambda_body);try{for(this.enterOuterAlt(i,1),this.state=946,this.errorHandler.sync(this),t=this.tokenStream.LA(1);22===t;)this.state=943,this.match(e.SEMICOLON),this.state=948,this.errorHandler.sync(this),t=this.tokenStream.LA(1);for(this.state=957,this.errorHandler.sync(this),t=this.tokenStream.LA(1);30===t||157===t;){this.state=949,this.lambda_stmt(),this.state=951,this.errorHandler.sync(this),t=this.tokenStream.LA(1);do{this.state=950,this.match(e.SEMICOLON),this.state=953,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}while(22===t);this.state=959,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}for(this.state=960,this.match(e.RETURN),this.state=961,this.expr(),this.state=965,this.errorHandler.sync(this),t=this.tokenStream.LA(1);22===t;)this.state=962,this.match(e.SEMICOLON),this.state=967,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}lambda_stmt(){let t=new hs(this.context,this.state);this.enterRule(t,8,e.RULE_lambda_stmt);try{switch(this.state=970,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DOLLAR:this.enterOuterAlt(t,1),this.state=968,this.named_nodes_stmt();break;case e.IMPORT:this.enterOuterAlt(t,2),this.state=969,this.import_stmt();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}sql_stmt(){let t,i=new ds(this.context,this.state);this.enterRule(i,10,e.RULE_sql_stmt);try{this.enterOuterAlt(i,1),this.state=977,this.errorHandler.sync(this),t=this.tokenStream.LA(1),128===t&&(this.state=972,this.match(e.EXPLAIN),this.state=975,this.errorHandler.sync(this),t=this.tokenStream.LA(1),233===t&&(this.state=973,this.match(e.QUERY),this.state=974,this.match(e.PLAN))),this.state=979,this.sql_stmt_core()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}sql_stmt_core(){let t=new us(this.context,this.state);this.enterRule(t,12,e.RULE_sql_stmt_core);try{switch(this.state=1041,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,13,this.context)){case 1:this.enterOuterAlt(t,1),this.state=981,this.pragma_stmt();break;case 2:this.enterOuterAlt(t,2),this.state=982,this.select_stmt();break;case 3:this.enterOuterAlt(t,3),this.state=983,this.named_nodes_stmt();break;case 4:this.enterOuterAlt(t,4),this.state=984,this.create_table_stmt();break;case 5:this.enterOuterAlt(t,5),this.state=985,this.drop_table_stmt();break;case 6:this.enterOuterAlt(t,6),this.state=986,this.use_stmt();break;case 7:this.enterOuterAlt(t,7),this.state=987,this.into_table_stmt();break;case 8:this.enterOuterAlt(t,8),this.state=988,this.commit_stmt();break;case 9:this.enterOuterAlt(t,9),this.state=989,this.update_stmt();break;case 10:this.enterOuterAlt(t,10),this.state=990,this.delete_stmt();break;case 11:this.enterOuterAlt(t,11),this.state=991,this.rollback_stmt();break;case 12:this.enterOuterAlt(t,12),this.state=992,this.declare_stmt();break;case 13:this.enterOuterAlt(t,13),this.state=993,this.import_stmt();break;case 14:this.enterOuterAlt(t,14),this.state=994,this.export_stmt();break;case 15:this.enterOuterAlt(t,15),this.state=995,this.alter_table_stmt();break;case 16:this.enterOuterAlt(t,16),this.state=996,this.alter_external_table_stmt();break;case 17:this.enterOuterAlt(t,17),this.state=997,this.do_stmt();break;case 18:this.enterOuterAlt(t,18),this.state=998,this.define_action_or_subquery_stmt();break;case 19:this.enterOuterAlt(t,19),this.state=999,this.if_stmt();break;case 20:this.enterOuterAlt(t,20),this.state=1e3,this.for_stmt();break;case 21:this.enterOuterAlt(t,21),this.state=1001,this.values_stmt();break;case 22:this.enterOuterAlt(t,22),this.state=1002,this.create_user_stmt();break;case 23:this.enterOuterAlt(t,23),this.state=1003,this.alter_user_stmt();break;case 24:this.enterOuterAlt(t,24),this.state=1004,this.create_group_stmt();break;case 25:this.enterOuterAlt(t,25),this.state=1005,this.alter_group_stmt();break;case 26:this.enterOuterAlt(t,26),this.state=1006,this.drop_role_stmt();break;case 27:this.enterOuterAlt(t,27),this.state=1007,this.create_object_stmt();break;case 28:this.enterOuterAlt(t,28),this.state=1008,this.alter_object_stmt();break;case 29:this.enterOuterAlt(t,29),this.state=1009,this.drop_object_stmt();break;case 30:this.enterOuterAlt(t,30),this.state=1010,this.create_external_data_source_stmt();break;case 31:this.enterOuterAlt(t,31),this.state=1011,this.alter_external_data_source_stmt();break;case 32:this.enterOuterAlt(t,32),this.state=1012,this.drop_external_data_source_stmt();break;case 33:this.enterOuterAlt(t,33),this.state=1013,this.create_replication_stmt();break;case 34:this.enterOuterAlt(t,34),this.state=1014,this.drop_replication_stmt();break;case 35:this.enterOuterAlt(t,35),this.state=1015,this.create_topic_stmt();break;case 36:this.enterOuterAlt(t,36),this.state=1016,this.alter_topic_stmt();break;case 37:this.enterOuterAlt(t,37),this.state=1017,this.drop_topic_stmt();break;case 38:this.enterOuterAlt(t,38),this.state=1018,this.grant_permissions_stmt();break;case 39:this.enterOuterAlt(t,39),this.state=1019,this.revoke_permissions_stmt();break;case 40:this.enterOuterAlt(t,40),this.state=1020,this.alter_table_store_stmt();break;case 41:this.enterOuterAlt(t,41),this.state=1021,this.upsert_object_stmt();break;case 42:this.enterOuterAlt(t,42),this.state=1022,this.create_view_stmt();break;case 43:this.enterOuterAlt(t,43),this.state=1023,this.drop_view_stmt();break;case 44:this.enterOuterAlt(t,44),this.state=1024,this.alter_replication_stmt();break;case 45:this.enterOuterAlt(t,45),this.state=1025,this.create_resource_pool_stmt();break;case 46:this.enterOuterAlt(t,46),this.state=1026,this.alter_resource_pool_stmt();break;case 47:this.enterOuterAlt(t,47),this.state=1027,this.drop_resource_pool_stmt();break;case 48:this.enterOuterAlt(t,48),this.state=1028,this.create_backup_collection_stmt();break;case 49:this.enterOuterAlt(t,49),this.state=1029,this.alter_backup_collection_stmt();break;case 50:this.enterOuterAlt(t,50),this.state=1030,this.drop_backup_collection_stmt();break;case 51:this.enterOuterAlt(t,51),this.state=1031,this.analyze_stmt();break;case 52:this.enterOuterAlt(t,52),this.state=1032,this.create_resource_pool_classifier_stmt();break;case 53:this.enterOuterAlt(t,53),this.state=1033,this.alter_resource_pool_classifier_stmt();break;case 54:this.enterOuterAlt(t,54),this.state=1034,this.drop_resource_pool_classifier_stmt();break;case 55:this.enterOuterAlt(t,55),this.state=1035,this.backup_stmt();break;case 56:this.enterOuterAlt(t,56),this.state=1036,this.restore_stmt();break;case 57:this.enterOuterAlt(t,57),this.state=1037,this.alter_sequence_stmt();break;case 58:this.enterOuterAlt(t,58),this.state=1038,this.create_transfer_stmt();break;case 59:this.enterOuterAlt(t,59),this.state=1039,this.alter_transfer_stmt();break;case 60:this.enterOuterAlt(t,60),this.state=1040,this.drop_transfer_stmt()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}expr(){let t=new gs(this.context,this.state);this.enterRule(t,14,e.RULE_expr);try{let i;switch(this.state=1052,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,15,this.context)){case 1:for(this.enterOuterAlt(t,1),this.state=1043,this.or_subexpr(),this.state=1048,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,14,this.context);2!==i&&i!==Z.INVALID_ALT_NUMBER;)1===i&&(this.state=1044,this.match(e.OR),this.state=1045,this.or_subexpr()),this.state=1050,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,14,this.context);break;case 2:this.enterOuterAlt(t,2),this.state=1051,this.type_name_composite()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}or_subexpr(){let t=new ps(this.context,this.state);this.enterRule(t,16,e.RULE_or_subexpr);try{let i;for(this.enterOuterAlt(t,1),this.state=1054,this.and_subexpr(),this.state=1059,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,16,this.context);2!==i&&i!==Z.INVALID_ALT_NUMBER;)1===i&&(this.state=1055,this.match(e.AND),this.state=1056,this.and_subexpr()),this.state=1061,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,16,this.context)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}and_subexpr(){let t=new ms(this.context,this.state);this.enterRule(t,18,e.RULE_and_subexpr);try{let i;for(this.enterOuterAlt(t,1),this.state=1062,this.xor_subexpr(),this.state=1067,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,17,this.context);2!==i&&i!==Z.INVALID_ALT_NUMBER;)1===i&&(this.state=1063,this.match(e.XOR),this.state=1064,this.xor_subexpr()),this.state=1069,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,17,this.context)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}xor_subexpr(){let t=new fs(this.context,this.state);this.enterRule(t,20,e.RULE_xor_subexpr);try{if(1===(this.enterOuterAlt(t,1),this.state=1070,this.eq_subexpr(),this.state=1072,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,18,this.context)))this.state=1071,this.cond_expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}distinct_from_op(){let t,i=new _s(this.context,this.state);this.enterRule(i,22,e.RULE_distinct_from_op);try{this.enterOuterAlt(i,1),this.state=1074,this.match(e.IS),this.state=1076,this.errorHandler.sync(this),t=this.tokenStream.LA(1),199===t&&(this.state=1075,this.match(e.NOT)),this.state=1078,this.match(e.DISTINCT),this.state=1079,this.match(e.FROM)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}cond_expr(){let t,i=new vs(this.context,this.state);this.enterRule(i,24,e.RULE_cond_expr);try{let s;switch(this.state=1132,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,30,this.context)){case 1:if(1===(this.enterOuterAlt(i,1),this.state=1082,this.errorHandler.sync(this),t=this.tokenStream.LA(1),199===t&&(this.state=1081,this.match(e.NOT)),this.state=1084,this.match_op(),this.state=1085,this.eq_subexpr(),this.state=1088,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,21,this.context)))this.state=1086,this.match(e.ESCAPE),this.state=1087,this.eq_subexpr();break;case 2:if(this.enterOuterAlt(i,2),1===(this.state=1091,this.errorHandler.sync(this),t=this.tokenStream.LA(1),199===t&&(this.state=1090,this.match(e.NOT)),this.state=1093,this.match(e.IN),this.state=1095,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,23,this.context)))this.state=1094,this.match(e.COMPACT);this.state=1097,this.in_expr();break;case 3:switch(this.enterOuterAlt(i,3),this.state=1107,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,25,this.context)){case 1:this.state=1098,this.match(e.ISNULL);break;case 2:this.state=1099,this.match(e.NOTNULL);break;case 3:this.state=1100,this.match(e.IS),this.state=1101,this.match(e.NULL);break;case 4:this.state=1103,this.errorHandler.sync(this),t=this.tokenStream.LA(1),171===t&&(this.state=1102,this.match(e.IS)),this.state=1105,this.match(e.NOT),this.state=1106,this.match(e.NULL)}break;case 4:if(this.enterOuterAlt(i,4),1===(this.state=1110,this.errorHandler.sync(this),t=this.tokenStream.LA(1),199===t&&(this.state=1109,this.match(e.NOT)),this.state=1112,this.match(e.BETWEEN),this.state=1114,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,27,this.context)))this.state=1113,t=this.tokenStream.LA(1),52===t||283===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this);this.state=1116,this.eq_subexpr(),this.state=1117,this.match(e.AND),this.state=1118,this.eq_subexpr();break;case 5:this.enterOuterAlt(i,5),this.state=1128,this.errorHandler.sync(this),s=1;do{if(1!==s)throw new lt(this);switch(this.state=1125,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.EQUALS:this.state=1120,this.match(e.EQUALS);break;case e.EQUALS2:this.state=1121,this.match(e.EQUALS2);break;case e.NOT_EQUALS:this.state=1122,this.match(e.NOT_EQUALS);break;case e.NOT_EQUALS2:this.state=1123,this.match(e.NOT_EQUALS2);break;case e.IS:this.state=1124,this.distinct_from_op();break;default:throw new lt(this)}this.state=1127,this.eq_subexpr(),this.state=1130,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,29,this.context)}while(2!==s&&s!==Z.INVALID_ALT_NUMBER)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}match_op(){let t,i=new Cs(this.context,this.state);this.enterRule(i,26,e.RULE_match_op);try{this.enterOuterAlt(i,1),this.state=1134,t=this.tokenStream.LA(1),144===t||155===t||181===t||187===t||239===t||259===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}eq_subexpr(){let t,i=new Es(this.context,this.state);this.enterRule(i,28,e.RULE_eq_subexpr);try{for(this.enterOuterAlt(i,1),this.state=1136,this.neq_subexpr(),this.state=1141,this.errorHandler.sync(this),t=this.tokenStream.LA(1);!(-32&t)&&1<<t&480;)this.state=1137,t=this.tokenStream.LA(1),!(-32&t)&&1<<t&480?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1138,this.neq_subexpr(),this.state=1143,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}shift_right(){let t=new bs(this.context,this.state);this.enterRule(t,30,e.RULE_shift_right);try{this.enterOuterAlt(t,1),this.state=1144,this.match(e.GREATER),this.state=1145,this.match(e.GREATER)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}rot_right(){let t=new Ss(this.context,this.state);this.enterRule(t,32,e.RULE_rot_right);try{this.enterOuterAlt(t,1),this.state=1147,this.match(e.GREATER),this.state=1148,this.match(e.GREATER),this.state=1149,this.match(e.PIPE)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}double_question(){let t=new ys(this.context,this.state);this.enterRule(t,34,e.RULE_double_question);try{this.enterOuterAlt(t,1),this.state=1151,this.match(e.QUESTION),this.state=1152,this.match(e.QUESTION)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}neq_subexpr(){let t,i=new ws(this.context,this.state);this.enterRule(i,36,e.RULE_neq_subexpr);try{let s;for(this.enterOuterAlt(i,1),this.state=1154,this.bit_subexpr(),this.state=1167,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,33,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;){if(1===s){switch(this.state=1162,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,32,this.context)){case 1:this.state=1155,this.match(e.SHIFT_LEFT);break;case 2:this.state=1156,this.shift_right();break;case 3:this.state=1157,this.match(e.ROT_LEFT);break;case 4:this.state=1158,this.rot_right();break;case 5:this.state=1159,this.match(e.AMPERSAND);break;case 6:this.state=1160,this.match(e.PIPE);break;case 7:this.state=1161,this.match(e.CARET)}this.state=1164,this.bit_subexpr()}this.state=1169,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,33,this.context)}switch(this.state=1178,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,35,this.context)){case 1:this.state=1170,this.double_question(),this.state=1171,this.neq_subexpr();break;case 2:this.state=1174,this.errorHandler.sync(this),t=this.tokenStream.LA(1);do{this.state=1173,this.match(e.QUESTION),this.state=1176,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}while(27===t)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}bit_subexpr(){let t,i=new Rs(this.context,this.state);this.enterRule(i,38,e.RULE_bit_subexpr);try{for(this.enterOuterAlt(i,1),this.state=1180,this.add_subexpr(),this.state=1185,this.errorHandler.sync(this),t=this.tokenStream.LA(1);16===t||17===t;)this.state=1181,t=this.tokenStream.LA(1),16===t||17===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1182,this.add_subexpr(),this.state=1187,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}add_subexpr(){let t,i=new Ls(this.context,this.state);this.enterRule(i,40,e.RULE_add_subexpr);try{for(this.enterOuterAlt(i,1),this.state=1188,this.mul_subexpr(),this.state=1193,this.errorHandler.sync(this),t=this.tokenStream.LA(1);!(-32&t)&&1<<t&3670016;)this.state=1189,t=this.tokenStream.LA(1),!(-32&t)&&1<<t&3670016?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1190,this.mul_subexpr(),this.state=1195,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}mul_subexpr(){let t,i=new Ts(this.context,this.state);this.enterRule(i,42,e.RULE_mul_subexpr);try{for(this.enterOuterAlt(i,1),this.state=1196,this.con_subexpr(),this.state=1201,this.errorHandler.sync(this),t=this.tokenStream.LA(1);13===t;)this.state=1197,this.match(e.DOUBLE_PIPE),this.state=1198,this.con_subexpr(),this.state=1203,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}con_subexpr(){let t=new xs(this.context,this.state);this.enterRule(t,44,e.RULE_con_subexpr);try{switch(this.state=1208,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,39,this.context)){case 1:this.enterOuterAlt(t,1),this.state=1204,this.unary_subexpr();break;case 2:this.enterOuterAlt(t,2),this.state=1205,this.unary_op(),this.state=1206,this.unary_subexpr()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}unary_op(){let t,i=new ks(this.context,this.state);this.enterRule(i,46,e.RULE_unary_op);try{this.enterOuterAlt(i,1),this.state=1210,t=this.tokenStream.LA(1),!(-32&t)&&1<<t&458752||199===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}unary_subexpr_suffix(){let t,i=new As(this.context,this.state);this.enterRule(i,48,e.RULE_unary_subexpr_suffix);try{for(this.enterOuterAlt(i,1),this.state=1224,this.errorHandler.sync(this),t=this.tokenStream.LA(1);!(t-23&-32)&&1<<t-23&16389;){switch(this.state=1220,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.LBRACE_SQUARE:this.state=1212,this.key_expr();break;case e.LPAREN:this.state=1213,this.invoke_expr();break;case e.DOT:switch(this.state=1214,this.match(e.DOT),this.state=1218,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DOLLAR:this.state=1215,this.bind_parameter();break;case e.DIGITS:this.state=1216,this.match(e.DIGITS);break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CALLABLE:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DICT:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ENUM:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FLOW:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LIST:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OPTIONAL:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESOURCE:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SET:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.STRUCT:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TAGGED:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TUPLE:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VARIANT:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.state=1217,this.an_id_or_type();break;default:throw new lt(this)}break;default:throw new lt(this)}this.state=1226,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}this.state=1229,this.errorHandler.sync(this),t=this.tokenStream.LA(1),75===t&&(this.state=1227,this.match(e.COLLATE),this.state=1228,this.an_id())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}unary_casual_subexpr(){let t=new Ns(this.context,this.state);this.enterRule(t,50,e.RULE_unary_casual_subexpr);try{switch(this.enterOuterAlt(t,1),this.state=1233,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,44,this.context)){case 1:this.state=1231,this.id_expr();break;case 2:this.state=1232,this.atom_expr()}this.state=1235,this.unary_subexpr_suffix()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}in_unary_casual_subexpr(){let t=new Is(this.context,this.state);this.enterRule(t,52,e.RULE_in_unary_casual_subexpr);try{switch(this.enterOuterAlt(t,1),this.state=1239,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,45,this.context)){case 1:this.state=1237,this.id_expr_in();break;case 2:this.state=1238,this.in_atom_expr()}this.state=1241,this.unary_subexpr_suffix()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}unary_subexpr(){let t=new Os(this.context,this.state);this.enterRule(t,54,e.RULE_unary_subexpr);try{switch(this.state=1245,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,46,this.context)){case 1:this.enterOuterAlt(t,1),this.state=1243,this.unary_casual_subexpr();break;case 2:this.enterOuterAlt(t,2),this.state=1244,this.json_api_expr()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}in_unary_subexpr(){let t=new Ds(this.context,this.state);this.enterRule(t,56,e.RULE_in_unary_subexpr);try{switch(this.state=1249,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,47,this.context)){case 1:this.enterOuterAlt(t,1),this.state=1247,this.in_unary_casual_subexpr();break;case 2:this.enterOuterAlt(t,2),this.state=1248,this.json_api_expr()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}list_literal(){let t,i=new Ms(this.context,this.state);this.enterRule(i,58,e.RULE_list_literal);try{this.enterOuterAlt(i,1),this.state=1251,this.match(e.LBRACE_SQUARE),this.state=1253,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(!(t-14&-32)&&1<<t-14&4286777373||!(t-46&-32)&&1<<t-46&4294963199||!(t-78&-32)&&1<<t-78&4294967295||!(t-110&-32)&&1<<t-110&4294967295||!(t-142&-32)&&1<<t-142&4294967295||!(t-174&-32)&&1<<t-174&4294967295||!(t-206&-32)&&1<<t-206&4294967295||!(t-238&-32)&&1<<t-238&4294967231||!(t-270&-32)&&1<<t-270&4294967295||!(t-302&-32)&&1<<t-302&2147483647)&&(this.state=1252,this.expr_list()),this.state=1256,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=1255,this.match(e.COMMA)),this.state=1258,this.match(e.RBRACE_SQUARE)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}expr_dict_list(){let t,i=new Ps(this.context,this.state);this.enterRule(i,60,e.RULE_expr_dict_list);try{let s;for(this.enterOuterAlt(i,1),this.state=1260,this.expr(),this.state=1263,this.errorHandler.sync(this),t=this.tokenStream.LA(1),28===t&&(this.state=1261,this.match(e.COLON),this.state=1262,this.expr()),this.state=1273,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,52,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=1265,this.match(e.COMMA),this.state=1266,this.expr(),this.state=1269,this.errorHandler.sync(this),t=this.tokenStream.LA(1),28===t&&(this.state=1267,this.match(e.COLON),this.state=1268,this.expr())),this.state=1275,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,52,this.context)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}dict_literal(){let t,i=new Fs(this.context,this.state);this.enterRule(i,62,e.RULE_dict_literal);try{this.enterOuterAlt(i,1),this.state=1276,this.match(e.LBRACE_CURLY),this.state=1278,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(!(t-14&-32)&&1<<t-14&4286777373||!(t-46&-32)&&1<<t-46&4294963199||!(t-78&-32)&&1<<t-78&4294967295||!(t-110&-32)&&1<<t-110&4294967295||!(t-142&-32)&&1<<t-142&4294967295||!(t-174&-32)&&1<<t-174&4294967295||!(t-206&-32)&&1<<t-206&4294967295||!(t-238&-32)&&1<<t-238&4294967231||!(t-270&-32)&&1<<t-270&4294967295||!(t-302&-32)&&1<<t-302&2147483647)&&(this.state=1277,this.expr_dict_list()),this.state=1281,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=1280,this.match(e.COMMA)),this.state=1283,this.match(e.RBRACE_CURLY)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}expr_struct_list(){let t=new Us(this.context,this.state);this.enterRule(t,64,e.RULE_expr_struct_list);try{let i;for(this.enterOuterAlt(t,1),this.state=1285,this.expr(),this.state=1286,this.match(e.COLON),this.state=1287,this.expr(),this.state=1295,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,55,this.context);2!==i&&i!==Z.INVALID_ALT_NUMBER;)1===i&&(this.state=1288,this.match(e.COMMA),this.state=1289,this.expr(),this.state=1290,this.match(e.COLON),this.state=1291,this.expr()),this.state=1297,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,55,this.context)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}struct_literal(){let t,i=new Hs(this.context,this.state);this.enterRule(i,66,e.RULE_struct_literal);try{this.enterOuterAlt(i,1),this.state=1298,this.match(e.STRUCT_OPEN),this.state=1300,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(!(t-14&-32)&&1<<t-14&4286777373||!(t-46&-32)&&1<<t-46&4294963199||!(t-78&-32)&&1<<t-78&4294967295||!(t-110&-32)&&1<<t-110&4294967295||!(t-142&-32)&&1<<t-142&4294967295||!(t-174&-32)&&1<<t-174&4294967295||!(t-206&-32)&&1<<t-206&4294967295||!(t-238&-32)&&1<<t-238&4294967231||!(t-270&-32)&&1<<t-270&4294967295||!(t-302&-32)&&1<<t-302&2147483647)&&(this.state=1299,this.expr_struct_list()),this.state=1303,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=1302,this.match(e.COMMA)),this.state=1305,this.match(e.STRUCT_CLOSE)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}atom_expr(){let t=new Bs(this.context,this.state);this.enterRule(t,68,e.RULE_atom_expr);try{switch(this.state=1324,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,59,this.context)){case 1:this.enterOuterAlt(t,1),this.state=1307,this.literal_value();break;case 2:this.enterOuterAlt(t,2),this.state=1308,this.bind_parameter();break;case 3:this.enterOuterAlt(t,3),this.state=1309,this.lambda();break;case 4:this.enterOuterAlt(t,4),this.state=1310,this.cast_expr();break;case 5:this.enterOuterAlt(t,5),this.state=1311,this.exists_expr();break;case 6:this.enterOuterAlt(t,6),this.state=1312,this.case_expr();break;case 7:switch(this.enterOuterAlt(t,7),this.state=1313,this.an_id_or_type(),this.state=1314,this.match(e.NAMESPACE),this.state=1317,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CALLABLE:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DICT:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ENUM:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FLOW:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LIST:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OPTIONAL:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESOURCE:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SET:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.STRUCT:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TAGGED:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TUPLE:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VARIANT:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.state=1315,this.id_or_type();break;case e.STRING_VALUE:this.state=1316,this.match(e.STRING_VALUE);break;default:throw new lt(this)}break;case 8:this.enterOuterAlt(t,8),this.state=1319,this.value_constructor();break;case 9:this.enterOuterAlt(t,9),this.state=1320,this.bitcast_expr();break;case 10:this.enterOuterAlt(t,10),this.state=1321,this.list_literal();break;case 11:this.enterOuterAlt(t,11),this.state=1322,this.dict_literal();break;case 12:this.enterOuterAlt(t,12),this.state=1323,this.struct_literal()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}in_atom_expr(){let t=new Ws(this.context,this.state);this.enterRule(t,70,e.RULE_in_atom_expr);try{switch(this.state=1346,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,61,this.context)){case 1:this.enterOuterAlt(t,1),this.state=1326,this.literal_value();break;case 2:this.enterOuterAlt(t,2),this.state=1327,this.bind_parameter();break;case 3:this.enterOuterAlt(t,3),this.state=1328,this.lambda();break;case 4:this.enterOuterAlt(t,4),this.state=1329,this.cast_expr();break;case 5:this.enterOuterAlt(t,5),this.state=1330,this.case_expr();break;case 6:switch(this.enterOuterAlt(t,6),this.state=1331,this.an_id_or_type(),this.state=1332,this.match(e.NAMESPACE),this.state=1335,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CALLABLE:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DICT:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ENUM:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FLOW:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LIST:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OPTIONAL:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESOURCE:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SET:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.STRUCT:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TAGGED:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TUPLE:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VARIANT:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.state=1333,this.id_or_type();break;case e.STRING_VALUE:this.state=1334,this.match(e.STRING_VALUE);break;default:throw new lt(this)}break;case 7:this.enterOuterAlt(t,7),this.state=1337,this.match(e.LPAREN),this.state=1338,this.select_stmt(),this.state=1339,this.match(e.RPAREN);break;case 8:this.enterOuterAlt(t,8),this.state=1341,this.value_constructor();break;case 9:this.enterOuterAlt(t,9),this.state=1342,this.bitcast_expr();break;case 10:this.enterOuterAlt(t,10),this.state=1343,this.list_literal();break;case 11:this.enterOuterAlt(t,11),this.state=1344,this.dict_literal();break;case 12:this.enterOuterAlt(t,12),this.state=1345,this.struct_literal()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}cast_expr(){let t=new Vs(this.context,this.state);this.enterRule(t,72,e.RULE_cast_expr);try{this.enterOuterAlt(t,1),this.state=1348,this.match(e.CAST),this.state=1349,this.match(e.LPAREN),this.state=1350,this.expr(),this.state=1351,this.match(e.AS),this.state=1352,this.type_name_or_bind(),this.state=1353,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}bitcast_expr(){let t=new zs(this.context,this.state);this.enterRule(t,74,e.RULE_bitcast_expr);try{this.enterOuterAlt(t,1),this.state=1355,this.match(e.BITCAST),this.state=1356,this.match(e.LPAREN),this.state=1357,this.expr(),this.state=1358,this.match(e.AS),this.state=1359,this.type_name_simple(),this.state=1360,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}exists_expr(){let t=new Gs(this.context,this.state);this.enterRule(t,76,e.RULE_exists_expr);try{switch(this.enterOuterAlt(t,1),this.state=1362,this.match(e.EXISTS),this.state=1363,this.match(e.LPAREN),this.state=1366,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.LPAREN:case e.DISCARD:case e.FROM:case e.PROCESS:case e.REDUCE:case e.SELECT:this.state=1364,this.select_stmt();break;case e.VALUES:this.state=1365,this.values_stmt();break;default:throw new lt(this)}this.state=1368,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}case_expr(){let t,i=new js(this.context,this.state);this.enterRule(i,78,e.RULE_case_expr);try{if(this.enterOuterAlt(i,1),1===(this.state=1370,this.match(e.CASE),this.state=1372,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,63,this.context)))this.state=1371,this.expr();this.state=1375,this.errorHandler.sync(this),t=this.tokenStream.LA(1);do{this.state=1374,this.when_expr(),this.state=1377,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}while(319===t);this.state=1381,this.errorHandler.sync(this),t=this.tokenStream.LA(1),113===t&&(this.state=1379,this.match(e.ELSE),this.state=1380,this.expr()),this.state=1383,this.match(e.END)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}lambda(){let t,i=new Ks(this.context,this.state);this.enterRule(i,80,e.RULE_lambda);try{if(this.enterOuterAlt(i,1),this.state=1385,this.smart_parenthesis(),this.state=1397,this.errorHandler.sync(this),t=this.tokenStream.LA(1),35===t)switch(this.state=1386,this.match(e.ARROW),this.state=1395,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.LPAREN:this.state=1387,this.match(e.LPAREN),this.state=1388,this.expr(),this.state=1389,this.match(e.RPAREN);break;case e.LBRACE_CURLY:this.state=1391,this.match(e.LBRACE_CURLY),this.state=1392,this.lambda_body(),this.state=1393,this.match(e.RBRACE_CURLY);break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}in_expr(){let t=new Ys(this.context,this.state);this.enterRule(t,82,e.RULE_in_expr);try{this.enterOuterAlt(t,1),this.state=1399,this.in_unary_subexpr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}json_api_expr(){let t=new qs(this.context,this.state);this.enterRule(t,84,e.RULE_json_api_expr);try{switch(this.state=1404,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.JSON_VALUE:this.enterOuterAlt(t,1),this.state=1401,this.json_value();break;case e.JSON_EXISTS:this.enterOuterAlt(t,2),this.state=1402,this.json_exists();break;case e.JSON_QUERY:this.enterOuterAlt(t,3),this.state=1403,this.json_query();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}jsonpath_spec(){let t=new $s(this.context,this.state);this.enterRule(t,86,e.RULE_jsonpath_spec);try{this.enterOuterAlt(t,1),this.state=1406,this.match(e.STRING_VALUE)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}json_variable_name(){let t=new Qs(this.context,this.state);this.enterRule(t,88,e.RULE_json_variable_name);try{switch(this.state=1410,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=1408,this.id_expr();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=1409,this.match(e.STRING_VALUE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}json_variable(){let t=new Xs(this.context,this.state);this.enterRule(t,90,e.RULE_json_variable);try{this.enterOuterAlt(t,1),this.state=1412,this.expr(),this.state=1413,this.match(e.AS),this.state=1414,this.json_variable_name()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}json_variables(){let t,i=new Zs(this.context,this.state);this.enterRule(i,92,e.RULE_json_variables);try{for(this.enterOuterAlt(i,1),this.state=1416,this.json_variable(),this.state=1421,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=1417,this.match(e.COMMA),this.state=1418,this.json_variable(),this.state=1423,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}json_common_args(){let t,i=new Js(this.context,this.state);this.enterRule(i,94,e.RULE_json_common_args);try{this.enterOuterAlt(i,1),this.state=1424,this.expr(),this.state=1425,this.match(e.COMMA),this.state=1426,this.jsonpath_spec(),this.state=1429,this.errorHandler.sync(this),t=this.tokenStream.LA(1),219===t&&(this.state=1427,this.match(e.PASSING),this.state=1428,this.json_variables())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}json_case_handler(){let t=new en(this.context,this.state);this.enterRule(t,96,e.RULE_json_case_handler);try{switch(this.state=1435,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ERROR:this.enterOuterAlt(t,1),this.state=1431,this.match(e.ERROR);break;case e.NULL:this.enterOuterAlt(t,2),this.state=1432,this.match(e.NULL);break;case e.DEFAULT:this.enterOuterAlt(t,3),this.state=1433,this.match(e.DEFAULT),this.state=1434,this.expr();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}json_value(){let t,i=new tn(this.context,this.state);this.enterRule(i,98,e.RULE_json_value);try{for(this.enterOuterAlt(i,1),this.state=1437,this.match(e.JSON_VALUE),this.state=1438,this.match(e.LPAREN),this.state=1439,this.json_common_args(),this.state=1442,this.errorHandler.sync(this),t=this.tokenStream.LA(1),255===t&&(this.state=1440,this.match(e.RETURNING),this.state=1441,this.type_name_simple()),this.state=1450,this.errorHandler.sync(this),t=this.tokenStream.LA(1);97===t||120===t||201===t;)this.state=1444,this.json_case_handler(),this.state=1445,this.match(e.ON),this.state=1446,t=this.tokenStream.LA(1),114===t||120===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1452,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=1453,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}json_exists_handler(){let t,i=new sn(this.context,this.state);this.enterRule(i,100,e.RULE_json_exists_handler);try{this.enterOuterAlt(i,1),this.state=1455,t=this.tokenStream.LA(1),120===t||132===t||300===t||307===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1456,this.match(e.ON),this.state=1457,this.match(e.ERROR)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}json_exists(){let t,i=new nn(this.context,this.state);this.enterRule(i,102,e.RULE_json_exists);try{this.enterOuterAlt(i,1),this.state=1459,this.match(e.JSON_EXISTS),this.state=1460,this.match(e.LPAREN),this.state=1461,this.json_common_args(),this.state=1463,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(120===t||132===t||300===t||307===t)&&(this.state=1462,this.json_exists_handler()),this.state=1465,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}json_query_wrapper(){let t,i=new rn(this.context,this.state);this.enterRule(i,104,e.RULE_json_query_wrapper);try{switch(this.state=1478,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.WITHOUT:this.enterOuterAlt(i,1),this.state=1467,this.match(e.WITHOUT),this.state=1469,this.errorHandler.sync(this),t=this.tokenStream.LA(1),48===t&&(this.state=1468,this.match(e.ARRAY));break;case e.WITH:this.enterOuterAlt(i,2),this.state=1471,this.match(e.WITH),this.state=1473,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(80===t||304===t)&&(this.state=1472,t=this.tokenStream.LA(1),80===t||304===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)),this.state=1476,this.errorHandler.sync(this),t=this.tokenStream.LA(1),48===t&&(this.state=1475,this.match(e.ARRAY));break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}json_query_handler(){let t=new on(this.context,this.state);this.enterRule(t,106,e.RULE_json_query_handler);try{switch(this.state=1486,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,80,this.context)){case 1:this.enterOuterAlt(t,1),this.state=1480,this.match(e.ERROR);break;case 2:this.enterOuterAlt(t,2),this.state=1481,this.match(e.NULL);break;case 3:this.enterOuterAlt(t,3),this.state=1482,this.match(e.EMPTY),this.state=1483,this.match(e.ARRAY);break;case 4:this.enterOuterAlt(t,4),this.state=1484,this.match(e.EMPTY),this.state=1485,this.match(e.OBJECT)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}json_query(){let t,i=new an(this.context,this.state);this.enterRule(i,108,e.RULE_json_query);try{if(this.enterOuterAlt(i,1),1===(this.state=1488,this.match(e.JSON_QUERY),this.state=1489,this.match(e.LPAREN),this.state=1490,this.json_common_args(),this.state=1494,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(322===t||323===t)&&(this.state=1491,this.json_query_wrapper(),this.state=1492,this.match(e.WRAPPER)),this.state=1500,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,82,this.context)))this.state=1496,this.json_query_handler(),this.state=1497,this.match(e.ON),this.state=1498,this.match(e.EMPTY);this.state=1506,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(114===t||120===t||201===t)&&(this.state=1502,this.json_query_handler(),this.state=1503,this.match(e.ON),this.state=1504,this.match(e.ERROR)),this.state=1508,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}smart_parenthesis(){let t,i=new cn(this.context,this.state);this.enterRule(i,110,e.RULE_smart_parenthesis);try{this.enterOuterAlt(i,1),this.state=1510,this.match(e.LPAREN),this.state=1512,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(!(t-14&-32)&&1<<t-14&4286777373||!(t-46&-32)&&1<<t-46&4294963199||!(t-78&-32)&&1<<t-78&4294967295||!(t-110&-32)&&1<<t-110&4294967295||!(t-142&-32)&&1<<t-142&4294967295||!(t-174&-32)&&1<<t-174&4294967295||!(t-206&-32)&&1<<t-206&4294967295||!(t-238&-32)&&1<<t-238&4294967231||!(t-270&-32)&&1<<t-270&4294967295||!(t-302&-32)&&1<<t-302&2147483647)&&(this.state=1511,this.named_expr_list()),this.state=1515,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=1514,this.match(e.COMMA)),this.state=1517,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}expr_list(){let t=new ln(this.context,this.state);this.enterRule(t,112,e.RULE_expr_list);try{let i;for(this.enterOuterAlt(t,1),this.state=1519,this.expr(),this.state=1524,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,86,this.context);2!==i&&i!==Z.INVALID_ALT_NUMBER;)1===i&&(this.state=1520,this.match(e.COMMA),this.state=1521,this.expr()),this.state=1526,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,86,this.context)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}pure_column_list(){let t,i=new hn(this.context,this.state);this.enterRule(i,114,e.RULE_pure_column_list);try{for(this.enterOuterAlt(i,1),this.state=1527,this.match(e.LPAREN),this.state=1528,this.an_id(),this.state=1533,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=1529,this.match(e.COMMA),this.state=1530,this.an_id(),this.state=1535,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=1536,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}pure_column_or_named(){let t=new dn(this.context,this.state);this.enterRule(t,116,e.RULE_pure_column_or_named);try{switch(this.state=1540,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DOLLAR:this.enterOuterAlt(t,1),this.state=1538,this.bind_parameter();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,2),this.state=1539,this.an_id();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}pure_column_or_named_list(){let t,i=new un(this.context,this.state);this.enterRule(i,118,e.RULE_pure_column_or_named_list);try{for(this.enterOuterAlt(i,1),this.state=1542,this.match(e.LPAREN),this.state=1543,this.pure_column_or_named(),this.state=1548,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=1544,this.match(e.COMMA),this.state=1545,this.pure_column_or_named(),this.state=1550,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=1551,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}column_name(){let t=new gn(this.context,this.state);this.enterRule(t,120,e.RULE_column_name);try{this.enterOuterAlt(t,1),this.state=1553,this.opt_id_prefix(),this.state=1554,this.an_id()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}without_column_name(){let t=new pn(this.context,this.state);this.enterRule(t,122,e.RULE_without_column_name);try{switch(this.state=1561,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,90,this.context)){case 1:this.enterOuterAlt(t,1),this.state=1556,this.an_id(),this.state=1557,this.match(e.DOT),this.state=1558,this.an_id();break;case 2:this.enterOuterAlt(t,2),this.state=1560,this.an_id_without()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}column_list(){let t,i=new mn(this.context,this.state);this.enterRule(i,124,e.RULE_column_list);try{let s;for(this.enterOuterAlt(i,1),this.state=1563,this.column_name(),this.state=1568,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,91,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=1564,this.match(e.COMMA),this.state=1565,this.column_name()),this.state=1570,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,91,this.context);this.state=1572,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=1571,this.match(e.COMMA))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}without_column_list(){let t,i=new fn(this.context,this.state);this.enterRule(i,126,e.RULE_without_column_list);try{let s;for(this.enterOuterAlt(i,1),this.state=1574,this.without_column_name(),this.state=1579,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,93,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=1575,this.match(e.COMMA),this.state=1576,this.without_column_name()),this.state=1581,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,93,this.context);this.state=1583,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=1582,this.match(e.COMMA))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}named_expr(){let t,i=new _n(this.context,this.state);this.enterRule(i,128,e.RULE_named_expr);try{this.enterOuterAlt(i,1),this.state=1585,this.expr(),this.state=1588,this.errorHandler.sync(this),t=this.tokenStream.LA(1),49===t&&(this.state=1586,this.match(e.AS),this.state=1587,this.an_id_or_type())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}named_expr_list(){let t=new vn(this.context,this.state);this.enterRule(t,130,e.RULE_named_expr_list);try{let i;for(this.enterOuterAlt(t,1),this.state=1590,this.named_expr(),this.state=1595,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,96,this.context);2!==i&&i!==Z.INVALID_ALT_NUMBER;)1===i&&(this.state=1591,this.match(e.COMMA),this.state=1592,this.named_expr()),this.state=1597,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,96,this.context)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}invoke_expr(){let t,i=new Cn(this.context,this.state);this.enterRule(i,132,e.RULE_invoke_expr);try{switch(this.enterOuterAlt(i,1),this.state=1598,this.match(e.LPAREN),this.state=1605,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.STRUCT_OPEN:case e.PLUS:case e.MINUS:case e.TILDA:case e.LPAREN:case e.DOLLAR:case e.LBRACE_CURLY:case e.LBRACE_SQUARE:case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CALLABLE:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DICT:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ENUM:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FALSE:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FLOW:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LIST:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OPTIONAL:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESOURCE:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SET:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.STRUCT:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TAGGED:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TRUE:case e.TUPLE:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VARIANT:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:case e.DIGITS:case e.INTEGER_VALUE:case e.REAL:case e.BLOB:this.state=1599,this.opt_set_quantifier(),this.state=1600,this.named_expr_list(),this.state=1602,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=1601,this.match(e.COMMA));break;case e.ASTERISK:this.state=1604,this.match(e.ASTERISK);case e.RPAREN:}this.state=1607,this.match(e.RPAREN),this.state=1608,this.invoke_expr_tail()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}invoke_expr_tail(){let t,i=new En(this.context,this.state);this.enterRule(i,134,e.RULE_invoke_expr_tail);try{switch(this.enterOuterAlt(i,1),this.state=1612,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,99,this.context)){case 1:this.state=1610,this.null_treatment();break;case 2:this.state=1611,this.filter_clause()}this.state=1616,this.errorHandler.sync(this),t=this.tokenStream.LA(1),216===t&&(this.state=1614,this.match(e.OVER),this.state=1615,this.window_name_or_specification())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}using_call_expr(){let t=new bn(this.context,this.state);this.enterRule(t,136,e.RULE_using_call_expr);try{switch(this.enterOuterAlt(t,1),this.state=1626,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,101,this.context)){case 1:this.state=1618,this.an_id_or_type(),this.state=1619,this.match(e.NAMESPACE),this.state=1620,this.an_id_or_type();break;case 2:this.state=1622,this.an_id_expr();break;case 3:this.state=1623,this.bind_parameter();break;case 4:this.state=1624,this.match(e.EXTERNAL),this.state=1625,this.match(e.FUNCTION)}this.state=1628,this.invoke_expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}key_expr(){let t=new Sn(this.context,this.state);this.enterRule(t,138,e.RULE_key_expr);try{this.enterOuterAlt(t,1),this.state=1630,this.match(e.LBRACE_SQUARE),this.state=1631,this.expr(),this.state=1632,this.match(e.RBRACE_SQUARE)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}when_expr(){let t=new yn(this.context,this.state);this.enterRule(t,140,e.RULE_when_expr);try{this.enterOuterAlt(t,1),this.state=1634,this.match(e.WHEN),this.state=1635,this.expr(),this.state=1636,this.match(e.THEN),this.state=1637,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}literal_value(){let t=new wn(this.context,this.state);this.enterRule(t,142,e.RULE_literal_value);try{switch(this.state=1649,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DIGITS:case e.INTEGER_VALUE:this.enterOuterAlt(t,1),this.state=1639,this.integer();break;case e.REAL:this.enterOuterAlt(t,2),this.state=1640,this.real();break;case e.STRING_VALUE:this.enterOuterAlt(t,3),this.state=1641,this.match(e.STRING_VALUE);break;case e.BLOB:this.enterOuterAlt(t,4),this.state=1642,this.match(e.BLOB);break;case e.NULL:this.enterOuterAlt(t,5),this.state=1643,this.match(e.NULL);break;case e.CURRENT_TIME:this.enterOuterAlt(t,6),this.state=1644,this.match(e.CURRENT_TIME);break;case e.CURRENT_DATE:this.enterOuterAlt(t,7),this.state=1645,this.match(e.CURRENT_DATE);break;case e.CURRENT_TIMESTAMP:this.enterOuterAlt(t,8),this.state=1646,this.match(e.CURRENT_TIMESTAMP);break;case e.FALSE:case e.TRUE:this.enterOuterAlt(t,9),this.state=1647,this.bool_value();break;case e.EMPTY_ACTION:this.enterOuterAlt(t,10),this.state=1648,this.match(e.EMPTY_ACTION);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}bind_parameter(){let t=new Rn(this.context,this.state);this.enterRule(t,144,e.RULE_bind_parameter);try{switch(this.enterOuterAlt(t,1),this.state=1651,this.match(e.DOLLAR),this.state=1655,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CALLABLE:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DICT:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ENUM:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FLOW:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LIST:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OPTIONAL:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESOURCE:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SET:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.STRUCT:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TAGGED:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TUPLE:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VARIANT:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.state=1652,this.an_id_or_type();break;case e.TRUE:this.state=1653,this.match(e.TRUE);break;case e.FALSE:this.state=1654,this.match(e.FALSE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}opt_bind_parameter(){let t,i=new Ln(this.context,this.state);this.enterRule(i,146,e.RULE_opt_bind_parameter);try{this.enterOuterAlt(i,1),this.state=1657,this.bind_parameter(),this.state=1659,this.errorHandler.sync(this),t=this.tokenStream.LA(1),27===t&&(this.state=1658,this.match(e.QUESTION))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}bind_parameter_list(){let t,i=new Tn(this.context,this.state);this.enterRule(i,148,e.RULE_bind_parameter_list);try{for(this.enterOuterAlt(i,1),this.state=1661,this.bind_parameter(),this.state=1666,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=1662,this.match(e.COMMA),this.state=1663,this.bind_parameter(),this.state=1668,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}named_bind_parameter(){let t,i=new xn(this.context,this.state);this.enterRule(i,150,e.RULE_named_bind_parameter);try{this.enterOuterAlt(i,1),this.state=1669,this.bind_parameter(),this.state=1672,this.errorHandler.sync(this),t=this.tokenStream.LA(1),49===t&&(this.state=1670,this.match(e.AS),this.state=1671,this.bind_parameter())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}named_bind_parameter_list(){let t,i=new kn(this.context,this.state);this.enterRule(i,152,e.RULE_named_bind_parameter_list);try{for(this.enterOuterAlt(i,1),this.state=1674,this.named_bind_parameter(),this.state=1679,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=1675,this.match(e.COMMA),this.state=1676,this.named_bind_parameter(),this.state=1681,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}signed_number(){let t,i=new An(this.context,this.state);this.enterRule(i,154,e.RULE_signed_number);try{switch(this.enterOuterAlt(i,1),this.state=1683,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(16===t||17===t)&&(this.state=1682,t=this.tokenStream.LA(1),16===t||17===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)),this.state=1687,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DIGITS:case e.INTEGER_VALUE:this.state=1685,this.integer();break;case e.REAL:this.state=1686,this.real();break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}type_name_simple(){let t=new Nn(this.context,this.state);this.enterRule(t,156,e.RULE_type_name_simple);try{this.enterOuterAlt(t,1),this.state=1689,this.an_id_pure()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}integer_or_bind(){let t=new In(this.context,this.state);this.enterRule(t,158,e.RULE_integer_or_bind);try{switch(this.state=1693,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DIGITS:case e.INTEGER_VALUE:this.enterOuterAlt(t,1),this.state=1691,this.integer();break;case e.DOLLAR:this.enterOuterAlt(t,2),this.state=1692,this.bind_parameter();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}type_name_tag(){let t=new On(this.context,this.state);this.enterRule(t,160,e.RULE_type_name_tag);try{switch(this.state=1698,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=1695,this.id();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=1696,this.match(e.STRING_VALUE);break;case e.DOLLAR:this.enterOuterAlt(t,3),this.state=1697,this.bind_parameter();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}struct_arg(){let t=new Dn(this.context,this.state);this.enterRule(t,162,e.RULE_struct_arg);try{this.enterOuterAlt(t,1),this.state=1700,this.type_name_tag(),this.state=1701,this.match(e.COLON),this.state=1702,this.type_name_or_bind()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}struct_arg_positional(){let t,i=new Mn(this.context,this.state);this.enterRule(i,164,e.RULE_struct_arg_positional);try{switch(this.state=1716,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,114,this.context)){case 1:this.enterOuterAlt(i,1),this.state=1704,this.type_name_tag(),this.state=1705,this.type_name_or_bind(),this.state=1710,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(199===t||201===t)&&(this.state=1707,this.errorHandler.sync(this),t=this.tokenStream.LA(1),199===t&&(this.state=1706,this.match(e.NOT)),this.state=1709,this.match(e.NULL));break;case 2:this.enterOuterAlt(i,2),this.state=1712,this.type_name_or_bind(),this.state=1713,this.match(e.AS),this.state=1714,this.type_name_tag()}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}variant_arg(){let t=new Pn(this.context,this.state);this.enterRule(t,166,e.RULE_variant_arg);try{if(this.enterOuterAlt(t,1),1===(this.state=1721,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,115,this.context)))this.state=1718,this.type_name_tag(),this.state=1719,this.match(e.COLON);this.state=1723,this.type_name_or_bind()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}callable_arg(){let t,i=new Fn(this.context,this.state);this.enterRule(i,168,e.RULE_callable_arg);try{this.enterOuterAlt(i,1),this.state=1725,this.variant_arg(),this.state=1729,this.errorHandler.sync(this),t=this.tokenStream.LA(1),31===t&&(this.state=1726,this.match(e.LBRACE_CURLY),this.state=1727,this.match(e.AUTOMAP),this.state=1728,this.match(e.RBRACE_CURLY))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}callable_arg_list(){let t=new Un(this.context,this.state);this.enterRule(t,170,e.RULE_callable_arg_list);try{let i;for(this.enterOuterAlt(t,1),this.state=1731,this.callable_arg(),this.state=1736,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,117,this.context);2!==i&&i!==Z.INVALID_ALT_NUMBER;)1===i&&(this.state=1732,this.match(e.COMMA),this.state=1733,this.callable_arg()),this.state=1738,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,117,this.context)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}type_name_decimal(){let t=new Hn(this.context,this.state);this.enterRule(t,172,e.RULE_type_name_decimal);try{this.enterOuterAlt(t,1),this.state=1739,this.match(e.DECIMAL),this.state=1740,this.match(e.LPAREN),this.state=1741,this.integer_or_bind(),this.state=1742,this.match(e.COMMA),this.state=1743,this.integer_or_bind(),this.state=1744,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}type_name_optional(){let t=new Bn(this.context,this.state);this.enterRule(t,174,e.RULE_type_name_optional);try{this.enterOuterAlt(t,1),this.state=1746,this.match(e.OPTIONAL),this.state=1747,this.match(e.LESS),this.state=1748,this.type_name_or_bind(),this.state=1749,this.match(e.GREATER)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}type_name_tuple(){let t,i=new Wn(this.context,this.state);this.enterRule(i,176,e.RULE_type_name_tuple);try{let s;switch(this.enterOuterAlt(i,1),this.state=1751,this.match(e.TUPLE),this.state=1768,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.LESS:if(this.state=1752,this.match(e.LESS),this.state=1764,this.errorHandler.sync(this),t=this.tokenStream.LA(1),30===t||68===t||95===t||105===t||118===t||137===t||183===t||211===t||!(t-248&-32)&&1<<t-248&3229614081||!(t-290&-32)&&1<<t-290&67110913||!(t-326&-32)&&1<<t-326&7){for(this.state=1753,this.type_name_or_bind(),this.state=1758,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,118,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=1754,this.match(e.COMMA),this.state=1755,this.type_name_or_bind()),this.state=1760,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,118,this.context);this.state=1762,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=1761,this.match(e.COMMA))}this.state=1766,this.match(e.GREATER);break;case e.NOT_EQUALS2:this.state=1767,this.match(e.NOT_EQUALS2);break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}type_name_struct(){let t,i=new Vn(this.context,this.state);this.enterRule(i,178,e.RULE_type_name_struct);try{let s;switch(this.enterOuterAlt(i,1),this.state=1770,this.match(e.STRUCT),this.state=1787,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.LESS:if(this.state=1771,this.match(e.LESS),this.state=1783,this.errorHandler.sync(this),t=this.tokenStream.LA(1),!(t-30&-32)&&1<<t-30&4026531585||!(t-62&-32)&&1<<t-62&4294967231||!(t-94&-32)&&1<<t-94&4278188031||!(t-126&-32)&&1<<t-126&4294965183||!(t-158&-32)&&1<<t-158&4261412863||!(t-190&-32)&&1<<t-190&4292870143||!(t-222&-32)&&1<<t-222&4223664127||!(t-254&-32)&&1<<t-254&4261281791||!(t-286&-32)&&1<<t-286&3221176303||!(t-318&-32)&&1<<t-318&2047){for(this.state=1772,this.struct_arg(),this.state=1777,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,122,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=1773,this.match(e.COMMA),this.state=1774,this.struct_arg()),this.state=1779,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,122,this.context);this.state=1781,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=1780,this.match(e.COMMA))}this.state=1785,this.match(e.GREATER);break;case e.NOT_EQUALS2:this.state=1786,this.match(e.NOT_EQUALS2);break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}type_name_variant(){let t,i=new zn(this.context,this.state);this.enterRule(i,180,e.RULE_type_name_variant);try{let s;for(this.enterOuterAlt(i,1),this.state=1789,this.match(e.VARIANT),this.state=1790,this.match(e.LESS),this.state=1791,this.variant_arg(),this.state=1796,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,126,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=1792,this.match(e.COMMA),this.state=1793,this.variant_arg()),this.state=1798,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,126,this.context);this.state=1800,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=1799,this.match(e.COMMA)),this.state=1802,this.match(e.GREATER)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}type_name_list(){let t=new Gn(this.context,this.state);this.enterRule(t,182,e.RULE_type_name_list);try{this.enterOuterAlt(t,1),this.state=1804,this.match(e.LIST),this.state=1805,this.match(e.LESS),this.state=1806,this.type_name_or_bind(),this.state=1807,this.match(e.GREATER)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}type_name_stream(){let t=new jn(this.context,this.state);this.enterRule(t,184,e.RULE_type_name_stream);try{this.enterOuterAlt(t,1),this.state=1809,this.match(e.STREAM),this.state=1810,this.match(e.LESS),this.state=1811,this.type_name_or_bind(),this.state=1812,this.match(e.GREATER)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}type_name_flow(){let t=new Kn(this.context,this.state);this.enterRule(t,186,e.RULE_type_name_flow);try{this.enterOuterAlt(t,1),this.state=1814,this.match(e.FLOW),this.state=1815,this.match(e.LESS),this.state=1816,this.type_name_or_bind(),this.state=1817,this.match(e.GREATER)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}type_name_dict(){let t=new Yn(this.context,this.state);this.enterRule(t,188,e.RULE_type_name_dict);try{this.enterOuterAlt(t,1),this.state=1819,this.match(e.DICT),this.state=1820,this.match(e.LESS),this.state=1821,this.type_name_or_bind(),this.state=1822,this.match(e.COMMA),this.state=1823,this.type_name_or_bind(),this.state=1824,this.match(e.GREATER)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}type_name_set(){let t=new qn(this.context,this.state);this.enterRule(t,190,e.RULE_type_name_set);try{this.enterOuterAlt(t,1),this.state=1826,this.match(e.SET),this.state=1827,this.match(e.LESS),this.state=1828,this.type_name_or_bind(),this.state=1829,this.match(e.GREATER)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}type_name_enum(){let t,i=new $n(this.context,this.state);this.enterRule(i,192,e.RULE_type_name_enum);try{let s;for(this.enterOuterAlt(i,1),this.state=1831,this.match(e.ENUM),this.state=1832,this.match(e.LESS),this.state=1833,this.type_name_tag(),this.state=1838,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,128,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=1834,this.match(e.COMMA),this.state=1835,this.type_name_tag()),this.state=1840,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,128,this.context);this.state=1842,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=1841,this.match(e.COMMA)),this.state=1844,this.match(e.GREATER)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}type_name_resource(){let t=new Qn(this.context,this.state);this.enterRule(t,194,e.RULE_type_name_resource);try{this.enterOuterAlt(t,1),this.state=1846,this.match(e.RESOURCE),this.state=1847,this.match(e.LESS),this.state=1848,this.type_name_tag(),this.state=1849,this.match(e.GREATER)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}type_name_tagged(){let t=new Xn(this.context,this.state);this.enterRule(t,196,e.RULE_type_name_tagged);try{this.enterOuterAlt(t,1),this.state=1851,this.match(e.TAGGED),this.state=1852,this.match(e.LESS),this.state=1853,this.type_name_or_bind(),this.state=1854,this.match(e.COMMA),this.state=1855,this.type_name_tag(),this.state=1856,this.match(e.GREATER)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}type_name_callable(){let t,i=new Zn(this.context,this.state);this.enterRule(i,198,e.RULE_type_name_callable);try{this.enterOuterAlt(i,1),this.state=1858,this.match(e.CALLABLE),this.state=1859,this.match(e.LESS),this.state=1860,this.match(e.LPAREN),this.state=1862,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(!(t-30&-32)&&1<<t-30&4026531585||!(t-62&-32)&&1<<t-62&4294967295||!(t-94&-32)&&1<<t-94&4294967295||!(t-126&-32)&&1<<t-126&4294967231||!(t-158&-32)&&1<<t-158&4294967295||!(t-190&-32)&&1<<t-190&4294967295||!(t-222&-32)&&1<<t-222&4290772991||!(t-254&-32)&&1<<t-254&4294967295||!(t-286&-32)&&1<<t-286&4294950911||!(t-318&-32)&&1<<t-318&2047)&&(this.state=1861,this.callable_arg_list()),this.state=1865,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=1864,this.match(e.COMMA)),this.state=1871,this.errorHandler.sync(this),t=this.tokenStream.LA(1),37===t&&(this.state=1867,this.match(e.LBRACE_SQUARE),this.state=1868,this.callable_arg_list(),this.state=1869,this.match(e.RBRACE_SQUARE)),this.state=1873,this.match(e.RPAREN),this.state=1874,this.match(e.ARROW),this.state=1875,this.type_name_or_bind(),this.state=1876,this.match(e.GREATER)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}type_name_composite(){let t,i=new Jn(this.context,this.state);this.enterRule(i,200,e.RULE_type_name_composite);try{switch(this.enterOuterAlt(i,1),this.state=1891,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.OPTIONAL:this.state=1878,this.type_name_optional();break;case e.TUPLE:this.state=1879,this.type_name_tuple();break;case e.STRUCT:this.state=1880,this.type_name_struct();break;case e.VARIANT:this.state=1881,this.type_name_variant();break;case e.LIST:this.state=1882,this.type_name_list();break;case e.STREAM:this.state=1883,this.type_name_stream();break;case e.FLOW:this.state=1884,this.type_name_flow();break;case e.DICT:this.state=1885,this.type_name_dict();break;case e.SET:this.state=1886,this.type_name_set();break;case e.ENUM:this.state=1887,this.type_name_enum();break;case e.RESOURCE:this.state=1888,this.type_name_resource();break;case e.TAGGED:this.state=1889,this.type_name_tagged();break;case e.CALLABLE:this.state=1890,this.type_name_callable();break;default:throw new lt(this)}for(this.state=1896,this.errorHandler.sync(this),t=this.tokenStream.LA(1);27===t;)this.state=1893,this.match(e.QUESTION),this.state=1898,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}type_name(){let t,i=new er(this.context,this.state);this.enterRule(i,202,e.RULE_type_name);try{switch(this.state=1910,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.CALLABLE:case e.DICT:case e.ENUM:case e.FLOW:case e.LIST:case e.OPTIONAL:case e.RESOURCE:case e.SET:case e.STREAM:case e.STRUCT:case e.TAGGED:case e.TUPLE:case e.VARIANT:this.enterOuterAlt(i,1),this.state=1899,this.type_name_composite();break;case e.DECIMAL:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:switch(this.enterOuterAlt(i,2),this.state=1902,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DECIMAL:this.state=1900,this.type_name_decimal();break;case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.state=1901,this.type_name_simple();break;default:throw new lt(this)}for(this.state=1907,this.errorHandler.sync(this),t=this.tokenStream.LA(1);27===t;)this.state=1904,this.match(e.QUESTION),this.state=1909,this.errorHandler.sync(this),t=this.tokenStream.LA(1);break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}type_name_or_bind(){let t=new tr(this.context,this.state);this.enterRule(t,204,e.RULE_type_name_or_bind);try{switch(this.state=1914,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.CALLABLE:case e.DECIMAL:case e.DICT:case e.ENUM:case e.FLOW:case e.LIST:case e.OPTIONAL:case e.RESOURCE:case e.SET:case e.STREAM:case e.STRUCT:case e.TAGGED:case e.TUPLE:case e.VARIANT:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=1912,this.type_name();break;case e.DOLLAR:this.enterOuterAlt(t,2),this.state=1913,this.bind_parameter();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}value_constructor_literal(){let t=new ir(this.context,this.state);this.enterRule(t,206,e.RULE_value_constructor_literal);try{this.enterOuterAlt(t,1),this.state=1916,this.match(e.STRING_VALUE)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}value_constructor(){let t=new sr(this.context,this.state);this.enterRule(t,208,e.RULE_value_constructor);try{switch(this.state=1941,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.VARIANT:this.enterOuterAlt(t,1),this.state=1918,this.match(e.VARIANT),this.state=1919,this.match(e.LPAREN),this.state=1920,this.expr(),this.state=1921,this.match(e.COMMA),this.state=1922,this.expr(),this.state=1923,this.match(e.COMMA),this.state=1924,this.expr(),this.state=1925,this.match(e.RPAREN);break;case e.ENUM:this.enterOuterAlt(t,2),this.state=1927,this.match(e.ENUM),this.state=1928,this.match(e.LPAREN),this.state=1929,this.expr(),this.state=1930,this.match(e.COMMA),this.state=1931,this.expr(),this.state=1932,this.match(e.RPAREN);break;case e.CALLABLE:this.enterOuterAlt(t,3),this.state=1934,this.match(e.CALLABLE),this.state=1935,this.match(e.LPAREN),this.state=1936,this.expr(),this.state=1937,this.match(e.COMMA),this.state=1938,this.expr(),this.state=1939,this.match(e.RPAREN);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}declare_stmt(){let t,i=new nr(this.context,this.state);this.enterRule(i,210,e.RULE_declare_stmt);try{this.enterOuterAlt(i,1),this.state=1943,this.match(e.DECLARE),this.state=1944,this.bind_parameter(),this.state=1945,this.match(e.AS),this.state=1946,this.type_name(),this.state=1949,this.errorHandler.sync(this),t=this.tokenStream.LA(1),1===t&&(this.state=1947,this.match(e.EQUALS),this.state=1948,this.literal_value())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}module_path(){let t,i=new rr(this.context,this.state);this.enterRule(i,212,e.RULE_module_path);try{for(this.enterOuterAlt(i,1),this.state=1952,this.errorHandler.sync(this),t=this.tokenStream.LA(1),23===t&&(this.state=1951,this.match(e.DOT)),this.state=1954,this.an_id(),this.state=1959,this.errorHandler.sync(this),t=this.tokenStream.LA(1);23===t;)this.state=1955,this.match(e.DOT),this.state=1956,this.an_id(),this.state=1961,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}import_stmt(){let t=new or(this.context,this.state);this.enterRule(t,214,e.RULE_import_stmt);try{this.enterOuterAlt(t,1),this.state=1962,this.match(e.IMPORT),this.state=1963,this.module_path(),this.state=1964,this.match(e.SYMBOLS),this.state=1965,this.named_bind_parameter_list()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}export_stmt(){let t=new ar(this.context,this.state);this.enterRule(t,216,e.RULE_export_stmt);try{this.enterOuterAlt(t,1),this.state=1967,this.match(e.EXPORT),this.state=1968,this.bind_parameter_list()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}call_action(){let t,i=new cr(this.context,this.state);this.enterRule(i,218,e.RULE_call_action);try{switch(this.enterOuterAlt(i,1),this.state=1972,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DOLLAR:this.state=1970,this.bind_parameter();break;case e.EMPTY_ACTION:this.state=1971,this.match(e.EMPTY_ACTION);break;default:throw new lt(this)}this.state=1974,this.match(e.LPAREN),this.state=1976,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(!(t-14&-32)&&1<<t-14&4286777373||!(t-46&-32)&&1<<t-46&4294963199||!(t-78&-32)&&1<<t-78&4294967295||!(t-110&-32)&&1<<t-110&4294967295||!(t-142&-32)&&1<<t-142&4294967295||!(t-174&-32)&&1<<t-174&4294967295||!(t-206&-32)&&1<<t-206&4294967295||!(t-238&-32)&&1<<t-238&4294967231||!(t-270&-32)&&1<<t-270&4294967295||!(t-302&-32)&&1<<t-302&2147483647)&&(this.state=1975,this.expr_list()),this.state=1978,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}inline_action(){let t=new lr(this.context,this.state);this.enterRule(t,220,e.RULE_inline_action);try{this.enterOuterAlt(t,1),this.state=1980,this.match(e.BEGIN),this.state=1981,this.define_action_or_subquery_body(),this.state=1982,this.match(e.END),this.state=1983,this.match(e.DO)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}do_stmt(){let t=new hr(this.context,this.state);this.enterRule(t,222,e.RULE_do_stmt);try{switch(this.enterOuterAlt(t,1),this.state=1985,this.match(e.DO),this.state=1988,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DOLLAR:case e.EMPTY_ACTION:this.state=1986,this.call_action();break;case e.BEGIN:this.state=1987,this.inline_action();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}pragma_stmt(){let t,i=new dr(this.context,this.state);this.enterRule(i,224,e.RULE_pragma_stmt);try{switch(this.enterOuterAlt(i,1),this.state=1990,this.match(e.PRAGMA),this.state=1991,this.opt_id_prefix_or_type(),this.state=1992,this.an_id(),this.state=2006,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.EQUALS:this.state=1993,this.match(e.EQUALS),this.state=1994,this.pragma_value();break;case e.LPAREN:for(this.state=1995,this.match(e.LPAREN),this.state=1996,this.pragma_value(),this.state=2001,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=1997,this.match(e.COMMA),this.state=1998,this.pragma_value(),this.state=2003,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=2004,this.match(e.RPAREN);case e.EOF:case e.SEMICOLON:case e.END:}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}pragma_value(){let t=new ur(this.context,this.state);this.enterRule(t,226,e.RULE_pragma_value);try{switch(this.state=2013,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.PLUS:case e.MINUS:case e.DIGITS:case e.INTEGER_VALUE:case e.REAL:this.enterOuterAlt(t,1),this.state=2008,this.signed_number();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,2),this.state=2009,this.id();break;case e.STRING_VALUE:this.enterOuterAlt(t,3),this.state=2010,this.match(e.STRING_VALUE);break;case e.FALSE:case e.TRUE:this.enterOuterAlt(t,4),this.state=2011,this.bool_value();break;case e.DOLLAR:this.enterOuterAlt(t,5),this.state=2012,this.bind_parameter();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}sort_specification(){let t,i=new gr(this.context,this.state);this.enterRule(i,228,e.RULE_sort_specification);try{this.enterOuterAlt(i,1),this.state=2015,this.expr(),this.state=2017,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(50===t||102===t)&&(this.state=2016,t=this.tokenStream.LA(1),50===t||102===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}sort_specification_list(){let t,i=new pr(this.context,this.state);this.enterRule(i,230,e.RULE_sort_specification_list);try{for(this.enterOuterAlt(i,1),this.state=2019,this.sort_specification(),this.state=2024,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2020,this.match(e.COMMA),this.state=2021,this.sort_specification(),this.state=2026,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}select_stmt(){let t,i=new mr(this.context,this.state);this.enterRule(i,232,e.RULE_select_stmt);try{for(this.enterOuterAlt(i,1),this.state=2027,this.select_kind_parenthesis(),this.state=2033,this.errorHandler.sync(this),t=this.tokenStream.LA(1);123===t||169===t||305===t;)this.state=2028,this.select_op(),this.state=2029,this.select_kind_parenthesis(),this.state=2035,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}select_unparenthesized_stmt(){let t,i=new fr(this.context,this.state);this.enterRule(i,234,e.RULE_select_unparenthesized_stmt);try{for(this.enterOuterAlt(i,1),this.state=2036,this.select_kind_partial(),this.state=2042,this.errorHandler.sync(this),t=this.tokenStream.LA(1);123===t||169===t||305===t;)this.state=2037,this.select_op(),this.state=2038,this.select_kind_parenthesis(),this.state=2044,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}select_kind_parenthesis(){let t=new _r(this.context,this.state);this.enterRule(t,236,e.RULE_select_kind_parenthesis);try{switch(this.state=2050,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DISCARD:case e.FROM:case e.PROCESS:case e.REDUCE:case e.SELECT:this.enterOuterAlt(t,1),this.state=2045,this.select_kind_partial();break;case e.LPAREN:this.enterOuterAlt(t,2),this.state=2046,this.match(e.LPAREN),this.state=2047,this.select_kind_partial(),this.state=2048,this.match(e.RPAREN);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}select_op(){let t,i=new vr(this.context,this.state);this.enterRule(i,238,e.RULE_select_op);try{switch(this.state=2058,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.UNION:this.enterOuterAlt(i,1),this.state=2052,this.match(e.UNION),this.state=2054,this.errorHandler.sync(this),t=this.tokenStream.LA(1),42===t&&(this.state=2053,this.match(e.ALL));break;case e.INTERSECT:this.enterOuterAlt(i,2),this.state=2056,this.match(e.INTERSECT);break;case e.EXCEPT:this.enterOuterAlt(i,3),this.state=2057,this.match(e.EXCEPT);break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}select_kind_partial(){let t,i=new Cr(this.context,this.state);this.enterRule(i,240,e.RULE_select_kind_partial);try{this.enterOuterAlt(i,1),this.state=2060,this.select_kind(),this.state=2067,this.errorHandler.sync(this),t=this.tokenStream.LA(1),182===t&&(this.state=2061,this.match(e.LIMIT),this.state=2062,this.expr(),this.state=2065,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(24===t||205===t)&&(this.state=2063,t=this.tokenStream.LA(1),24===t||205===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=2064,this.expr()))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}select_kind(){let t,i=new Er(this.context,this.state);this.enterRule(i,242,e.RULE_select_kind);try{switch(this.enterOuterAlt(i,1),this.state=2070,this.errorHandler.sync(this),t=this.tokenStream.LA(1),108===t&&(this.state=2069,this.match(e.DISCARD)),this.state=2075,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.PROCESS:this.state=2072,this.process_core();break;case e.REDUCE:this.state=2073,this.reduce_core();break;case e.FROM:case e.SELECT:this.state=2074,this.select_core();break;default:throw new lt(this)}this.state=2080,this.errorHandler.sync(this),t=this.tokenStream.LA(1),170===t&&(this.state=2077,this.match(e.INTO),this.state=2078,this.match(e.RESULT),this.state=2079,this.pure_column_or_named())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}process_core(){let t,i=new br(this.context,this.state);this.enterRule(i,244,e.RULE_process_core);try{if(this.enterOuterAlt(i,1),1===(this.state=2082,this.match(e.PROCESS),this.state=2084,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,161,this.context)))this.state=2083,this.match(e.STREAM);for(this.state=2086,this.named_single_source(),this.state=2091,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2087,this.match(e.COMMA),this.state=2088,this.named_single_source(),this.state=2093,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=2115,this.errorHandler.sync(this),t=this.tokenStream.LA(1),313===t&&(this.state=2094,this.match(e.USING),this.state=2095,this.using_call_expr(),this.state=2098,this.errorHandler.sync(this),t=this.tokenStream.LA(1),49===t&&(this.state=2096,this.match(e.AS),this.state=2097,this.an_id()),this.state=2102,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=2100,this.match(e.WITH),this.state=2101,this.external_call_settings()),this.state=2105,this.errorHandler.sync(this),t=this.tokenStream.LA(1),320===t&&(this.state=2104,this.where_expr()),this.state=2109,this.errorHandler.sync(this),t=this.tokenStream.LA(1),151===t&&(this.state=2107,this.match(e.HAVING),this.state=2108,this.expr()),this.state=2113,this.errorHandler.sync(this),t=this.tokenStream.LA(1),51===t&&(this.state=2111,this.match(e.ASSUME),this.state=2112,this.order_by_clause()))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}external_call_param(){let t=new Sr(this.context,this.state);this.enterRule(t,246,e.RULE_external_call_param);try{this.enterOuterAlt(t,1),this.state=2117,this.an_id(),this.state=2118,this.match(e.EQUALS),this.state=2119,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}external_call_settings(){let t,i=new yr(this.context,this.state);this.enterRule(i,248,e.RULE_external_call_settings);try{for(this.enterOuterAlt(i,1),this.state=2121,this.external_call_param(),this.state=2126,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2122,this.match(e.COMMA),this.state=2123,this.external_call_param(),this.state=2128,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}reduce_core(){let t,i=new wr(this.context,this.state);this.enterRule(i,250,e.RULE_reduce_core);try{for(this.enterOuterAlt(i,1),this.state=2129,this.match(e.REDUCE),this.state=2130,this.named_single_source(),this.state=2135,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2131,this.match(e.COMMA),this.state=2132,this.named_single_source(),this.state=2137,this.errorHandler.sync(this),t=this.tokenStream.LA(1);if(1===(this.state=2140,this.errorHandler.sync(this),t=this.tokenStream.LA(1),229===t&&(this.state=2138,this.match(e.PRESORT),this.state=2139,this.sort_specification_list()),this.state=2142,this.match(e.ON),this.state=2143,this.column_list(),this.state=2144,this.match(e.USING),this.state=2146,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,172,this.context)))this.state=2145,this.match(e.ALL);this.state=2148,this.using_call_expr(),this.state=2151,this.errorHandler.sync(this),t=this.tokenStream.LA(1),49===t&&(this.state=2149,this.match(e.AS),this.state=2150,this.an_id()),this.state=2154,this.errorHandler.sync(this),t=this.tokenStream.LA(1),320===t&&(this.state=2153,this.where_expr()),this.state=2158,this.errorHandler.sync(this),t=this.tokenStream.LA(1),151===t&&(this.state=2156,this.match(e.HAVING),this.state=2157,this.expr()),this.state=2162,this.errorHandler.sync(this),t=this.tokenStream.LA(1),51===t&&(this.state=2160,this.match(e.ASSUME),this.state=2161,this.order_by_clause())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}opt_set_quantifier(){let t,i=new Rr(this.context,this.state);this.enterRule(i,252,e.RULE_opt_set_quantifier);try{if(1===(this.enterOuterAlt(i,1),this.state=2165,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,177,this.context)))this.state=2164,t=this.tokenStream.LA(1),42===t||109===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}select_core(){let t,i=new Lr(this.context,this.state);this.enterRule(i,254,e.RULE_select_core);try{let s;if(this.enterOuterAlt(i,1),1===(this.state=2169,this.errorHandler.sync(this),t=this.tokenStream.LA(1),141===t&&(this.state=2167,this.match(e.FROM),this.state=2168,this.join_source()),this.state=2171,this.match(e.SELECT),this.state=2173,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,179,this.context)))this.state=2172,this.match(e.STREAM);for(this.state=2175,this.opt_set_quantifier(),this.state=2176,this.result_column(),this.state=2181,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,180,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=2177,this.match(e.COMMA),this.state=2178,this.result_column()),this.state=2183,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,180,this.context);this.state=2185,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=2184,this.match(e.COMMA)),this.state=2189,this.errorHandler.sync(this),t=this.tokenStream.LA(1),323===t&&(this.state=2187,this.match(e.WITHOUT),this.state=2188,this.without_column_list()),this.state=2193,this.errorHandler.sync(this),t=this.tokenStream.LA(1),141===t&&(this.state=2191,this.match(e.FROM),this.state=2192,this.join_source()),this.state=2196,this.errorHandler.sync(this),t=this.tokenStream.LA(1),320===t&&(this.state=2195,this.where_expr()),this.state=2199,this.errorHandler.sync(this),t=this.tokenStream.LA(1),147===t&&(this.state=2198,this.group_by_clause()),this.state=2203,this.errorHandler.sync(this),t=this.tokenStream.LA(1),151===t&&(this.state=2201,this.match(e.HAVING),this.state=2202,this.expr()),this.state=2206,this.errorHandler.sync(this),t=this.tokenStream.LA(1),321===t&&(this.state=2205,this.window_clause()),this.state=2209,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(51===t||213===t)&&(this.state=2208,this.ext_order_by_clause())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_recognition_clause(){let t,i=new Tr(this.context,this.state);this.enterRule(i,256,e.RULE_row_pattern_recognition_clause);try{this.enterOuterAlt(i,1),this.state=2211,this.match(e.MATCH_RECOGNIZE),this.state=2212,this.match(e.LPAREN),this.state=2214,this.errorHandler.sync(this),t=this.tokenStream.LA(1),218===t&&(this.state=2213,this.window_partition_clause()),this.state=2217,this.errorHandler.sync(this),t=this.tokenStream.LA(1),213===t&&(this.state=2216,this.order_by_clause()),this.state=2220,this.errorHandler.sync(this),t=this.tokenStream.LA(1),190===t&&(this.state=2219,this.row_pattern_measures()),this.state=2223,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(42===t||208===t)&&(this.state=2222,this.row_pattern_rows_per_match()),this.state=2225,this.row_pattern_common_syntax(),this.state=2226,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_rows_per_match(){let t,i=new xr(this.context,this.state);this.enterRule(i,258,e.RULE_row_pattern_rows_per_match);try{switch(this.state=2239,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ONE:this.enterOuterAlt(i,1),this.state=2228,this.match(e.ONE),this.state=2229,this.match(e.ROW),this.state=2230,this.match(e.PER),this.state=2231,this.match(e.MATCH);break;case e.ALL:this.enterOuterAlt(i,2),this.state=2232,this.match(e.ALL),this.state=2233,this.match(e.ROWS),this.state=2234,this.match(e.PER),this.state=2235,this.match(e.MATCH),this.state=2237,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(206===t||273===t||322===t)&&(this.state=2236,this.row_pattern_empty_match_handling());break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_empty_match_handling(){let t=new kr(this.context,this.state);this.enterRule(t,260,e.RULE_row_pattern_empty_match_handling);try{switch(this.state=2250,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.SHOW:this.enterOuterAlt(t,1),this.state=2241,this.match(e.SHOW),this.state=2242,this.match(e.EMPTY),this.state=2243,this.match(e.MATCHES);break;case e.OMIT:this.enterOuterAlt(t,2),this.state=2244,this.match(e.OMIT),this.state=2245,this.match(e.EMPTY),this.state=2246,this.match(e.MATCHES);break;case e.WITH:this.enterOuterAlt(t,3),this.state=2247,this.match(e.WITH),this.state=2248,this.match(e.UNMATCHED),this.state=2249,this.match(e.ROWS);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_measures(){let t=new Ar(this.context,this.state);this.enterRule(t,262,e.RULE_row_pattern_measures);try{this.enterOuterAlt(t,1),this.state=2252,this.match(e.MEASURES),this.state=2253,this.row_pattern_measure_list()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_measure_list(){let t,i=new Nr(this.context,this.state);this.enterRule(i,264,e.RULE_row_pattern_measure_list);try{for(this.enterOuterAlt(i,1),this.state=2255,this.row_pattern_measure_definition(),this.state=2260,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2256,this.match(e.COMMA),this.state=2257,this.row_pattern_measure_definition(),this.state=2262,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_measure_definition(){let t=new Ir(this.context,this.state);this.enterRule(t,266,e.RULE_row_pattern_measure_definition);try{this.enterOuterAlt(t,1),this.state=2263,this.expr(),this.state=2264,this.match(e.AS),this.state=2265,this.an_id()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_common_syntax(){let t,i=new Or(this.context,this.state);this.enterRule(i,268,e.RULE_row_pattern_common_syntax);try{this.enterOuterAlt(i,1),this.state=2270,this.errorHandler.sync(this),t=this.tokenStream.LA(1),41===t&&(this.state=2267,this.match(e.AFTER),this.state=2268,this.match(e.MATCH),this.state=2269,this.row_pattern_skip_to()),this.state=2273,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(164===t||268===t)&&(this.state=2272,this.row_pattern_initial_or_seek()),this.state=2275,this.match(e.PATTERN),this.state=2276,this.match(e.LPAREN),this.state=2277,this.row_pattern(),this.state=2278,this.match(e.RPAREN),this.state=2280,this.errorHandler.sync(this),t=this.tokenStream.LA(1),281===t&&(this.state=2279,this.row_pattern_subset_clause()),this.state=2282,this.match(e.DEFINE),this.state=2283,this.row_pattern_definition_list()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_skip_to(){let t=new Dr(this.context,this.state);this.enterRule(t,270,e.RULE_row_pattern_skip_to);try{switch(this.state=2304,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,200,this.context)){case 1:this.enterOuterAlt(t,1),this.state=2285,this.match(e.TSKIP),this.state=2286,this.match(e.TO),this.state=2287,this.match(e.NEXT),this.state=2288,this.match(e.ROW);break;case 2:this.enterOuterAlt(t,2),this.state=2289,this.match(e.TSKIP),this.state=2290,this.match(e.PAST),this.state=2291,this.match(e.LAST),this.state=2292,this.match(e.ROW);break;case 3:this.enterOuterAlt(t,3),this.state=2293,this.match(e.TSKIP),this.state=2294,this.match(e.TO),this.state=2295,this.match(e.FIRST),this.state=2296,this.row_pattern_skip_to_variable_name();break;case 4:this.enterOuterAlt(t,4),this.state=2297,this.match(e.TSKIP),this.state=2298,this.match(e.TO),this.state=2299,this.match(e.LAST),this.state=2300,this.row_pattern_skip_to_variable_name();break;case 5:this.enterOuterAlt(t,5),this.state=2301,this.match(e.TSKIP),this.state=2302,this.match(e.TO),this.state=2303,this.row_pattern_skip_to_variable_name()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_skip_to_variable_name(){let t=new Mr(this.context,this.state);this.enterRule(t,272,e.RULE_row_pattern_skip_to_variable_name);try{this.enterOuterAlt(t,1),this.state=2306,this.row_pattern_variable_name()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_initial_or_seek(){let t,i=new Pr(this.context,this.state);this.enterRule(i,274,e.RULE_row_pattern_initial_or_seek);try{this.enterOuterAlt(i,1),this.state=2308,t=this.tokenStream.LA(1),164===t||268===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern(){let t,i=new Fr(this.context,this.state);this.enterRule(i,276,e.RULE_row_pattern);try{for(this.enterOuterAlt(i,1),this.state=2310,this.row_pattern_term(),this.state=2315,this.errorHandler.sync(this),t=this.tokenStream.LA(1);12===t;)this.state=2311,this.match(e.PIPE),this.state=2312,this.row_pattern_term(),this.state=2317,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_term(){let t,i=new Ur(this.context,this.state);this.enterRule(i,278,e.RULE_row_pattern_term);try{this.enterOuterAlt(i,1),this.state=2319,this.errorHandler.sync(this),t=this.tokenStream.LA(1);do{this.state=2318,this.row_pattern_factor(),this.state=2321,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}while(!(t-25&-32)&&1<<t-25&353||224===t||327===t||328===t)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_factor(){let t=new Hr(this.context,this.state);this.enterRule(t,280,e.RULE_row_pattern_factor);try{if(1===(this.enterOuterAlt(t,1),this.state=2323,this.row_pattern_primary(),this.state=2325,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,203,this.context)))this.state=2324,this.row_pattern_quantifier()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_quantifier(){let t,i=new Br(this.context,this.state);this.enterRule(i,282,e.RULE_row_pattern_quantifier);try{switch(this.state=2355,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,210,this.context)){case 1:this.enterOuterAlt(i,1),this.state=2327,this.match(e.ASTERISK),this.state=2329,this.errorHandler.sync(this),t=this.tokenStream.LA(1),27===t&&(this.state=2328,this.match(e.QUESTION));break;case 2:this.enterOuterAlt(i,2),this.state=2331,this.match(e.PLUS),this.state=2333,this.errorHandler.sync(this),t=this.tokenStream.LA(1),27===t&&(this.state=2332,this.match(e.QUESTION));break;case 3:this.enterOuterAlt(i,3),this.state=2335,this.match(e.QUESTION),this.state=2337,this.errorHandler.sync(this),t=this.tokenStream.LA(1),27===t&&(this.state=2336,this.match(e.QUESTION));break;case 4:this.enterOuterAlt(i,4),this.state=2339,this.match(e.LBRACE_CURLY),this.state=2341,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(329===t||330===t)&&(this.state=2340,this.integer()),this.state=2343,this.match(e.COMMA),this.state=2345,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(329===t||330===t)&&(this.state=2344,this.integer()),this.state=2347,this.match(e.RBRACE_CURLY),this.state=2349,this.errorHandler.sync(this),t=this.tokenStream.LA(1),27===t&&(this.state=2348,this.match(e.QUESTION));break;case 5:this.enterOuterAlt(i,5),this.state=2351,this.match(e.LBRACE_CURLY),this.state=2352,this.integer(),this.state=2353,this.match(e.RBRACE_CURLY)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_primary(){let t,i=new Wr(this.context,this.state);this.enterRule(i,284,e.RULE_row_pattern_primary);try{switch(this.state=2372,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(i,1),this.state=2357,this.row_pattern_primary_variable_name();break;case e.DOLLAR:this.enterOuterAlt(i,2),this.state=2358,this.match(e.DOLLAR);break;case e.CARET:this.enterOuterAlt(i,3),this.state=2359,this.match(e.CARET);break;case e.LPAREN:this.enterOuterAlt(i,4),this.state=2360,this.match(e.LPAREN),this.state=2362,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(!(t-25&-32)&&1<<t-25&353||224===t||327===t||328===t)&&(this.state=2361,this.row_pattern()),this.state=2364,this.match(e.RPAREN);break;case e.LBRACE_CURLY:this.enterOuterAlt(i,5),this.state=2365,this.match(e.LBRACE_CURLY),this.state=2366,this.match(e.MINUS),this.state=2367,this.row_pattern(),this.state=2368,this.match(e.MINUS),this.state=2369,this.match(e.RBRACE_CURLY);break;case e.PERMUTE:this.enterOuterAlt(i,6),this.state=2371,this.row_pattern_permute();break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_primary_variable_name(){let t=new Vr(this.context,this.state);this.enterRule(t,286,e.RULE_row_pattern_primary_variable_name);try{this.enterOuterAlt(t,1),this.state=2374,this.row_pattern_variable_name()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_permute(){let t,i=new zr(this.context,this.state);this.enterRule(i,288,e.RULE_row_pattern_permute);try{for(this.enterOuterAlt(i,1),this.state=2376,this.match(e.PERMUTE),this.state=2377,this.match(e.LPAREN),this.state=2378,this.row_pattern(),this.state=2383,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2379,this.match(e.COMMA),this.state=2380,this.row_pattern(),this.state=2385,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=2386,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_subset_clause(){let t=new Gr(this.context,this.state);this.enterRule(t,290,e.RULE_row_pattern_subset_clause);try{this.enterOuterAlt(t,1),this.state=2388,this.match(e.SUBSET),this.state=2389,this.row_pattern_subset_list()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_subset_list(){let t,i=new jr(this.context,this.state);this.enterRule(i,292,e.RULE_row_pattern_subset_list);try{for(this.enterOuterAlt(i,1),this.state=2391,this.row_pattern_subset_item(),this.state=2396,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2392,this.match(e.COMMA),this.state=2393,this.row_pattern_subset_item(),this.state=2398,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_subset_item(){let t=new Kr(this.context,this.state);this.enterRule(t,294,e.RULE_row_pattern_subset_item);try{this.enterOuterAlt(t,1),this.state=2399,this.row_pattern_subset_item_variable_name(),this.state=2400,this.match(e.EQUALS),this.state=2401,this.match(e.LPAREN),this.state=2402,this.row_pattern_subset_rhs(),this.state=2403,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_subset_item_variable_name(){let t=new Yr(this.context,this.state);this.enterRule(t,296,e.RULE_row_pattern_subset_item_variable_name);try{this.enterOuterAlt(t,1),this.state=2405,this.row_pattern_variable_name()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_subset_rhs(){let t,i=new qr(this.context,this.state);this.enterRule(i,298,e.RULE_row_pattern_subset_rhs);try{for(this.enterOuterAlt(i,1),this.state=2407,this.row_pattern_subset_rhs_variable_name(),this.state=2412,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2408,this.match(e.COMMA),this.state=2409,this.row_pattern_subset_rhs_variable_name(),this.state=2414,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_subset_rhs_variable_name(){let t=new $r(this.context,this.state);this.enterRule(t,300,e.RULE_row_pattern_subset_rhs_variable_name);try{this.enterOuterAlt(t,1),this.state=2415,this.row_pattern_variable_name()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_definition_list(){let t,i=new Qr(this.context,this.state);this.enterRule(i,302,e.RULE_row_pattern_definition_list);try{for(this.enterOuterAlt(i,1),this.state=2417,this.row_pattern_definition(),this.state=2422,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2418,this.match(e.COMMA),this.state=2419,this.row_pattern_definition(),this.state=2424,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_definition(){let t=new Xr(this.context,this.state);this.enterRule(t,304,e.RULE_row_pattern_definition);try{this.enterOuterAlt(t,1),this.state=2425,this.row_pattern_definition_variable_name(),this.state=2426,this.match(e.AS),this.state=2427,this.row_pattern_definition_search_condition()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_definition_variable_name(){let t=new Zr(this.context,this.state);this.enterRule(t,306,e.RULE_row_pattern_definition_variable_name);try{this.enterOuterAlt(t,1),this.state=2429,this.row_pattern_variable_name()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_definition_search_condition(){let t=new Jr(this.context,this.state);this.enterRule(t,308,e.RULE_row_pattern_definition_search_condition);try{this.enterOuterAlt(t,1),this.state=2431,this.search_condition()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}search_condition(){let t=new eo(this.context,this.state);this.enterRule(t,310,e.RULE_search_condition);try{this.enterOuterAlt(t,1),this.state=2433,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_variable_name(){let t=new to(this.context,this.state);this.enterRule(t,312,e.RULE_row_pattern_variable_name);try{this.enterOuterAlt(t,1),this.state=2435,this.identifier()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}order_by_clause(){let t=new io(this.context,this.state);this.enterRule(t,314,e.RULE_order_by_clause);try{this.enterOuterAlt(t,1),this.state=2437,this.match(e.ORDER),this.state=2438,this.match(e.BY),this.state=2439,this.sort_specification_list()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}ext_order_by_clause(){let t,i=new so(this.context,this.state);this.enterRule(i,316,e.RULE_ext_order_by_clause);try{this.enterOuterAlt(i,1),this.state=2442,this.errorHandler.sync(this),t=this.tokenStream.LA(1),51===t&&(this.state=2441,this.match(e.ASSUME)),this.state=2444,this.order_by_clause()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}group_by_clause(){let t,i=new no(this.context,this.state);this.enterRule(i,318,e.RULE_group_by_clause);try{this.enterOuterAlt(i,1),this.state=2446,this.match(e.GROUP),this.state=2448,this.errorHandler.sync(this),t=this.tokenStream.LA(1),79===t&&(this.state=2447,this.match(e.COMPACT)),this.state=2450,this.match(e.BY),this.state=2451,this.opt_set_quantifier(),this.state=2452,this.grouping_element_list(),this.state=2455,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=2453,this.match(e.WITH),this.state=2454,this.an_id())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}grouping_element_list(){let t,i=new ro(this.context,this.state);this.enterRule(i,320,e.RULE_grouping_element_list);try{for(this.enterOuterAlt(i,1),this.state=2457,this.grouping_element(),this.state=2462,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2458,this.match(e.COMMA),this.state=2459,this.grouping_element(),this.state=2464,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}grouping_element(){let t=new oo(this.context,this.state);this.enterRule(t,322,e.RULE_grouping_element);try{switch(this.state=2470,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,221,this.context)){case 1:this.enterOuterAlt(t,1),this.state=2465,this.ordinary_grouping_set();break;case 2:this.enterOuterAlt(t,2),this.state=2466,this.rollup_list();break;case 3:this.enterOuterAlt(t,3),this.state=2467,this.cube_list();break;case 4:this.enterOuterAlt(t,4),this.state=2468,this.grouping_sets_specification();break;case 5:this.enterOuterAlt(t,5),this.state=2469,this.hopping_window_specification()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}ordinary_grouping_set(){let t=new ao(this.context,this.state);this.enterRule(t,324,e.RULE_ordinary_grouping_set);try{this.enterOuterAlt(t,1),this.state=2472,this.named_expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}ordinary_grouping_set_list(){let t,i=new co(this.context,this.state);this.enterRule(i,326,e.RULE_ordinary_grouping_set_list);try{for(this.enterOuterAlt(i,1),this.state=2474,this.ordinary_grouping_set(),this.state=2479,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2475,this.match(e.COMMA),this.state=2476,this.ordinary_grouping_set(),this.state=2481,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}rollup_list(){let t=new lo(this.context,this.state);this.enterRule(t,328,e.RULE_rollup_list);try{this.enterOuterAlt(t,1),this.state=2482,this.match(e.ROLLUP),this.state=2483,this.match(e.LPAREN),this.state=2484,this.ordinary_grouping_set_list(),this.state=2485,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}cube_list(){let t=new ho(this.context,this.state);this.enterRule(t,330,e.RULE_cube_list);try{this.enterOuterAlt(t,1),this.state=2487,this.match(e.CUBE),this.state=2488,this.match(e.LPAREN),this.state=2489,this.ordinary_grouping_set_list(),this.state=2490,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}grouping_sets_specification(){let t=new uo(this.context,this.state);this.enterRule(t,332,e.RULE_grouping_sets_specification);try{this.enterOuterAlt(t,1),this.state=2492,this.match(e.GROUPING),this.state=2493,this.match(e.SETS),this.state=2494,this.match(e.LPAREN),this.state=2495,this.grouping_element_list(),this.state=2496,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}hopping_window_specification(){let t=new go(this.context,this.state);this.enterRule(t,334,e.RULE_hopping_window_specification);try{this.enterOuterAlt(t,1),this.state=2498,this.match(e.HOP),this.state=2499,this.match(e.LPAREN),this.state=2500,this.expr(),this.state=2501,this.match(e.COMMA),this.state=2502,this.expr(),this.state=2503,this.match(e.COMMA),this.state=2504,this.expr(),this.state=2505,this.match(e.COMMA),this.state=2506,this.expr(),this.state=2507,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}result_column(){let t=new po(this.context,this.state);this.enterRule(t,336,e.RULE_result_column);try{switch(this.state=2518,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,224,this.context)){case 1:this.enterOuterAlt(t,1),this.state=2509,this.opt_id_prefix(),this.state=2510,this.match(e.ASTERISK);break;case 2:switch(this.enterOuterAlt(t,2),this.state=2512,this.expr(),this.state=2516,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,223,this.context)){case 1:this.state=2513,this.match(e.AS),this.state=2514,this.an_id_or_type();break;case 2:this.state=2515,this.an_id_as_compat()}}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}join_source(){let t,i=new mo(this.context,this.state);this.enterRule(i,338,e.RULE_join_source);try{if(this.enterOuterAlt(i,1),1===(this.state=2521,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,225,this.context)))this.state=2520,this.match(e.ANY);for(this.state=2523,this.flatten_source(),this.state=2534,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t||87===t||125===t||142===t||!(t-166&-32)&&1<<t-166&536879233||215===t||258===t;){if(1===(this.state=2524,this.join_op(),this.state=2526,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,226,this.context)))this.state=2525,this.match(e.ANY);this.state=2528,this.flatten_source(),this.state=2530,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(207===t||313===t)&&(this.state=2529,this.join_constraint()),this.state=2536,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}named_column(){let t,i=new fo(this.context,this.state);this.enterRule(i,340,e.RULE_named_column);try{this.enterOuterAlt(i,1),this.state=2537,this.column_name(),this.state=2540,this.errorHandler.sync(this),t=this.tokenStream.LA(1),49===t&&(this.state=2538,this.match(e.AS),this.state=2539,this.an_id())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}flatten_by_arg(){let t,i=new _o(this.context,this.state);this.enterRule(i,342,e.RULE_flatten_by_arg);try{switch(this.state=2550,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(i,1),this.state=2542,this.named_column();break;case e.LPAREN:this.enterOuterAlt(i,2),this.state=2543,this.match(e.LPAREN),this.state=2544,this.named_expr_list(),this.state=2546,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=2545,this.match(e.COMMA)),this.state=2548,this.match(e.RPAREN);break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}flatten_source(){let t,i=new vo(this.context,this.state);this.enterRule(i,344,e.RULE_flatten_source);try{if(this.enterOuterAlt(i,1),this.state=2552,this.named_single_source(),this.state=2562,this.errorHandler.sync(this),t=this.tokenStream.LA(1),136===t)switch(this.state=2553,this.match(e.FLATTEN),this.state=2560,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.BY:case e.DICT:case e.LIST:case e.OPTIONAL:this.state=2555,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(105===t||183===t||211===t)&&(this.state=2554,t=this.tokenStream.LA(1),105===t||183===t||211===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)),this.state=2557,this.match(e.BY),this.state=2558,this.flatten_by_arg();break;case e.COLUMNS:this.state=2559,this.match(e.COLUMNS);break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}named_single_source(){let t,i=new Co(this.context,this.state);this.enterRule(i,346,e.RULE_named_single_source);try{if(this.enterOuterAlt(i,1),1===(this.state=2564,this.single_source(),this.state=2566,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,235,this.context)))this.state=2565,this.row_pattern_recognition_clause();if(1===(this.state=2576,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,238,this.context))){switch(this.state=2571,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.AS:this.state=2568,this.match(e.AS),this.state=2569,this.an_id();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.LAST:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.OTHERS:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.REVERT:case e.REVOKE:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.VACUUM:case e.VALUES:case e.VIRTUAL:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.state=2570,this.an_id_as_compat();break;default:throw new lt(this)}this.state=2574,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=2573,this.pure_column_list())}switch(this.state=2580,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.SAMPLE:this.state=2578,this.sample_clause();break;case e.TABLESAMPLE:this.state=2579,this.tablesample_clause();case e.EOF:case e.SEMICOLON:case e.COMMA:case e.RPAREN:case e.ASSUME:case e.CROSS:case e.END:case e.EXCEPT:case e.EXCLUSION:case e.FLATTEN:case e.FULL:case e.GROUP:case e.HAVING:case e.INNER:case e.INTERSECT:case e.INTO:case e.JOIN:case e.LEFT:case e.LIMIT:case e.NATURAL:case e.ON:case e.ORDER:case e.OUTER:case e.PRESORT:case e.RETURNING:case e.RIGHT:case e.SELECT:case e.UNION:case e.USING:case e.WHERE:case e.WINDOW:}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}single_source(){let t=new Eo(this.context,this.state);this.enterRule(t,348,e.RULE_single_source);try{switch(this.state=2591,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,240,this.context)){case 1:this.enterOuterAlt(t,1),this.state=2582,this.table_ref();break;case 2:this.enterOuterAlt(t,2),this.state=2583,this.match(e.LPAREN),this.state=2584,this.select_stmt(),this.state=2585,this.match(e.RPAREN);break;case 3:this.enterOuterAlt(t,3),this.state=2587,this.match(e.LPAREN),this.state=2588,this.values_stmt(),this.state=2589,this.match(e.RPAREN)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}sample_clause(){let t=new bo(this.context,this.state);this.enterRule(t,350,e.RULE_sample_clause);try{this.enterOuterAlt(t,1),this.state=2593,this.match(e.SAMPLE),this.state=2594,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}tablesample_clause(){let t,i=new So(this.context,this.state);this.enterRule(i,352,e.RULE_tablesample_clause);try{this.enterOuterAlt(i,1),this.state=2596,this.match(e.TABLESAMPLE),this.state=2597,this.sampling_mode(),this.state=2598,this.match(e.LPAREN),this.state=2599,this.expr(),this.state=2600,this.match(e.RPAREN),this.state=2602,this.errorHandler.sync(this),t=this.tokenStream.LA(1),244===t&&(this.state=2601,this.repeatable_clause())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}sampling_mode(){let t,i=new yo(this.context,this.state);this.enterRule(i,354,e.RULE_sampling_mode);try{this.enterOuterAlt(i,1),this.state=2604,t=this.tokenStream.LA(1),64===t||285===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}repeatable_clause(){let t=new wo(this.context,this.state);this.enterRule(t,356,e.RULE_repeatable_clause);try{this.enterOuterAlt(t,1),this.state=2606,this.match(e.REPEATABLE),this.state=2607,this.match(e.LPAREN),this.state=2608,this.expr(),this.state=2609,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}join_op(){let t,i=new Ro(this.context,this.state);this.enterRule(i,358,e.RULE_join_op);try{switch(this.state=2635,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.COMMA:this.enterOuterAlt(i,1),this.state=2611,this.match(e.COMMA);break;case e.CROSS:case e.EXCLUSION:case e.FULL:case e.INNER:case e.JOIN:case e.LEFT:case e.NATURAL:case e.OUTER:case e.RIGHT:switch(this.enterOuterAlt(i,2),this.state=2613,this.errorHandler.sync(this),t=this.tokenStream.LA(1),195===t&&(this.state=2612,this.match(e.NATURAL)),this.state=2632,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.EXCLUSION:case e.FULL:case e.JOIN:case e.LEFT:case e.OUTER:case e.RIGHT:switch(this.state=2625,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.LEFT:this.state=2615,this.match(e.LEFT),this.state=2617,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(209===t||270===t)&&(this.state=2616,t=this.tokenStream.LA(1),209===t||270===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this));break;case e.RIGHT:this.state=2619,this.match(e.RIGHT),this.state=2621,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(209===t||270===t)&&(this.state=2620,t=this.tokenStream.LA(1),209===t||270===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this));break;case e.EXCLUSION:this.state=2623,this.match(e.EXCLUSION);break;case e.FULL:this.state=2624,this.match(e.FULL);case e.JOIN:case e.OUTER:}this.state=2628,this.errorHandler.sync(this),t=this.tokenStream.LA(1),215===t&&(this.state=2627,this.match(e.OUTER));break;case e.INNER:this.state=2630,this.match(e.INNER);break;case e.CROSS:this.state=2631,this.match(e.CROSS);break;default:throw new lt(this)}this.state=2634,this.match(e.JOIN);break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}join_constraint(){let t=new Lo(this.context,this.state);this.enterRule(t,360,e.RULE_join_constraint);try{switch(this.state=2641,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ON:this.enterOuterAlt(t,1),this.state=2637,this.match(e.ON),this.state=2638,this.expr();break;case e.USING:this.enterOuterAlt(t,2),this.state=2639,this.match(e.USING),this.state=2640,this.pure_column_or_named_list();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}returning_columns_list(){let t,i=new To(this.context,this.state);this.enterRule(i,362,e.RULE_returning_columns_list);try{switch(this.enterOuterAlt(i,1),this.state=2643,this.match(e.RETURNING),this.state=2653,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ASTERISK:this.state=2644,this.match(e.ASTERISK);break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:for(this.state=2645,this.an_id(),this.state=2650,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2646,this.match(e.COMMA),this.state=2647,this.an_id(),this.state=2652,this.errorHandler.sync(this),t=this.tokenStream.LA(1);break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}into_table_stmt(){let t,i=new xo(this.context,this.state);this.enterRule(i,364,e.RULE_into_table_stmt);try{switch(this.enterOuterAlt(i,1),this.state=2667,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,252,this.context)){case 1:this.state=2655,this.match(e.INSERT);break;case 2:this.state=2656,this.match(e.INSERT),this.state=2657,this.match(e.OR),this.state=2658,this.match(e.ABORT);break;case 3:this.state=2659,this.match(e.INSERT),this.state=2660,this.match(e.OR),this.state=2661,this.match(e.REVERT);break;case 4:this.state=2662,this.match(e.INSERT),this.state=2663,this.match(e.OR),this.state=2664,this.match(e.IGNORE);break;case 5:this.state=2665,this.match(e.UPSERT);break;case 6:this.state=2666,this.match(e.REPLACE)}this.state=2669,this.match(e.INTO),this.state=2670,this.into_simple_table_ref(),this.state=2671,this.into_values_source(),this.state=2673,this.errorHandler.sync(this),t=this.tokenStream.LA(1),255===t&&(this.state=2672,this.returning_columns_list())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}into_table_stmt_yq(){let t=new ko(this.context,this.state);this.enterRule(t,366,e.RULE_into_table_stmt_yq);try{switch(this.enterOuterAlt(t,1),this.state=2686,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,254,this.context)){case 1:this.state=2675,this.match(e.INSERT);break;case 2:this.state=2676,this.match(e.INSERT),this.state=2677,this.match(e.OR),this.state=2678,this.match(e.ABORT);break;case 3:this.state=2679,this.match(e.INSERT),this.state=2680,this.match(e.OR),this.state=2681,this.match(e.REVERT);break;case 4:this.state=2682,this.match(e.INSERT),this.state=2683,this.match(e.OR),this.state=2684,this.match(e.IGNORE);break;case 5:this.state=2685,this.match(e.REPLACE)}this.state=2688,this.match(e.INTO),this.state=2689,this.into_simple_table_ref(),this.state=2690,this.into_values_source()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}into_values_source(){let t=new Ao(this.context,this.state);this.enterRule(t,368,e.RULE_into_values_source);try{switch(this.state=2698,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.LPAREN:case e.DISCARD:case e.FROM:case e.PROCESS:case e.REDUCE:case e.SELECT:case e.VALUES:if(this.enterOuterAlt(t,1),1===(this.state=2693,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,255,this.context)))this.state=2692,this.pure_column_list();this.state=2695,this.values_source();break;case e.DEFAULT:this.enterOuterAlt(t,2),this.state=2696,this.match(e.DEFAULT),this.state=2697,this.match(e.VALUES);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}values_stmt(){let t=new No(this.context,this.state);this.enterRule(t,370,e.RULE_values_stmt);try{this.enterOuterAlt(t,1),this.state=2700,this.match(e.VALUES),this.state=2701,this.values_source_row_list()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}values_source(){let t=new Io(this.context,this.state);this.enterRule(t,372,e.RULE_values_source);try{switch(this.state=2705,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.VALUES:this.enterOuterAlt(t,1),this.state=2703,this.values_stmt();break;case e.LPAREN:case e.DISCARD:case e.FROM:case e.PROCESS:case e.REDUCE:case e.SELECT:this.enterOuterAlt(t,2),this.state=2704,this.select_stmt();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}values_source_row_list(){let t,i=new Oo(this.context,this.state);this.enterRule(i,374,e.RULE_values_source_row_list);try{for(this.enterOuterAlt(i,1),this.state=2707,this.values_source_row(),this.state=2712,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2708,this.match(e.COMMA),this.state=2709,this.values_source_row(),this.state=2714,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}values_source_row(){let t=new Do(this.context,this.state);this.enterRule(t,376,e.RULE_values_source_row);try{this.enterOuterAlt(t,1),this.state=2715,this.match(e.LPAREN),this.state=2716,this.expr_list(),this.state=2717,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}simple_values_source(){let t=new Mo(this.context,this.state);this.enterRule(t,378,e.RULE_simple_values_source);try{switch(this.state=2721,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,259,this.context)){case 1:this.enterOuterAlt(t,1),this.state=2719,this.expr_list();break;case 2:this.enterOuterAlt(t,2),this.state=2720,this.select_stmt()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}create_external_data_source_stmt(){let t,i=new Po(this.context,this.state);this.enterRule(i,380,e.RULE_create_external_data_source_stmt);try{if(this.enterOuterAlt(i,1),1===(this.state=2723,this.match(e.CREATE),this.state=2726,this.errorHandler.sync(this),t=this.tokenStream.LA(1),212===t&&(this.state=2724,this.match(e.OR),this.state=2725,this.match(e.REPLACE)),this.state=2728,this.match(e.EXTERNAL),this.state=2729,this.match(e.DATA),this.state=2730,this.match(e.SOURCE),this.state=2734,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,261,this.context)))this.state=2731,this.match(e.IF),this.state=2732,this.match(e.NOT),this.state=2733,this.match(e.EXISTS);this.state=2736,this.object_ref(),this.state=2737,this.with_table_settings()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_external_data_source_stmt(){let t,i=new Fo(this.context,this.state);this.enterRule(i,382,e.RULE_alter_external_data_source_stmt);try{for(this.enterOuterAlt(i,1),this.state=2739,this.match(e.ALTER),this.state=2740,this.match(e.EXTERNAL),this.state=2741,this.match(e.DATA),this.state=2742,this.match(e.SOURCE),this.state=2743,this.object_ref(),this.state=2744,this.alter_external_data_source_action(),this.state=2749,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2745,this.match(e.COMMA),this.state=2746,this.alter_external_data_source_action(),this.state=2751,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_external_data_source_action(){let t=new Uo(this.context,this.state);this.enterRule(t,384,e.RULE_alter_external_data_source_action);try{switch(this.state=2755,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,263,this.context)){case 1:this.enterOuterAlt(t,1),this.state=2752,this.alter_table_set_table_setting_uncompat();break;case 2:this.enterOuterAlt(t,2),this.state=2753,this.alter_table_set_table_setting_compat();break;case 3:this.enterOuterAlt(t,3),this.state=2754,this.alter_table_reset_table_setting()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}drop_external_data_source_stmt(){let t=new Ho(this.context,this.state);this.enterRule(t,386,e.RULE_drop_external_data_source_stmt);try{if(this.enterOuterAlt(t,1),1===(this.state=2757,this.match(e.DROP),this.state=2758,this.match(e.EXTERNAL),this.state=2759,this.match(e.DATA),this.state=2760,this.match(e.SOURCE),this.state=2763,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,264,this.context)))this.state=2761,this.match(e.IF),this.state=2762,this.match(e.EXISTS);this.state=2765,this.object_ref()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}create_view_stmt(){let t,i=new Bo(this.context,this.state);this.enterRule(i,388,e.RULE_create_view_stmt);try{if(this.enterOuterAlt(i,1),1===(this.state=2767,this.match(e.CREATE),this.state=2768,this.match(e.VIEW),this.state=2772,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,265,this.context)))this.state=2769,this.match(e.IF),this.state=2770,this.match(e.NOT),this.state=2771,this.match(e.EXISTS);this.state=2774,this.object_ref(),this.state=2776,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=2775,this.create_object_features()),this.state=2778,this.match(e.AS),this.state=2779,this.select_stmt()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}drop_view_stmt(){let t=new Wo(this.context,this.state);this.enterRule(t,390,e.RULE_drop_view_stmt);try{if(this.enterOuterAlt(t,1),1===(this.state=2781,this.match(e.DROP),this.state=2782,this.match(e.VIEW),this.state=2785,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,267,this.context)))this.state=2783,this.match(e.IF),this.state=2784,this.match(e.EXISTS);this.state=2787,this.object_ref()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}upsert_object_stmt(){let t,i=new Vo(this.context,this.state);this.enterRule(i,392,e.RULE_upsert_object_stmt);try{this.enterOuterAlt(i,1),this.state=2789,this.match(e.UPSERT),this.state=2790,this.match(e.OBJECT),this.state=2791,this.object_ref(),this.state=2792,this.match(e.LPAREN),this.state=2793,this.match(e.TYPE),this.state=2794,this.object_type_ref(),this.state=2795,this.match(e.RPAREN),this.state=2797,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=2796,this.create_object_features())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}create_object_stmt(){let t,i=new zo(this.context,this.state);this.enterRule(i,394,e.RULE_create_object_stmt);try{if(this.enterOuterAlt(i,1),1===(this.state=2799,this.match(e.CREATE),this.state=2800,this.match(e.OBJECT),this.state=2804,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,269,this.context)))this.state=2801,this.match(e.IF),this.state=2802,this.match(e.NOT),this.state=2803,this.match(e.EXISTS);this.state=2806,this.object_ref(),this.state=2807,this.match(e.LPAREN),this.state=2808,this.match(e.TYPE),this.state=2809,this.object_type_ref(),this.state=2810,this.match(e.RPAREN),this.state=2812,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=2811,this.create_object_features())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}create_object_features(){let t=new Go(this.context,this.state);this.enterRule(t,396,e.RULE_create_object_features);try{this.enterOuterAlt(t,1),this.state=2814,this.match(e.WITH),this.state=2815,this.object_features()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_object_stmt(){let t=new jo(this.context,this.state);this.enterRule(t,398,e.RULE_alter_object_stmt);try{this.enterOuterAlt(t,1),this.state=2817,this.match(e.ALTER),this.state=2818,this.match(e.OBJECT),this.state=2819,this.object_ref(),this.state=2820,this.match(e.LPAREN),this.state=2821,this.match(e.TYPE),this.state=2822,this.object_type_ref(),this.state=2823,this.match(e.RPAREN),this.state=2824,this.alter_object_features()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_object_features(){let t=new Ko(this.context,this.state);this.enterRule(t,400,e.RULE_alter_object_features);try{this.enterOuterAlt(t,1),this.state=2826,this.match(e.SET),this.state=2827,this.object_features()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}drop_object_stmt(){let t,i=new Yo(this.context,this.state);this.enterRule(i,402,e.RULE_drop_object_stmt);try{if(this.enterOuterAlt(i,1),1===(this.state=2829,this.match(e.DROP),this.state=2830,this.match(e.OBJECT),this.state=2833,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,271,this.context)))this.state=2831,this.match(e.IF),this.state=2832,this.match(e.EXISTS);this.state=2835,this.object_ref(),this.state=2836,this.match(e.LPAREN),this.state=2837,this.match(e.TYPE),this.state=2838,this.object_type_ref(),this.state=2839,this.match(e.RPAREN),this.state=2841,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=2840,this.drop_object_features())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}drop_object_features(){let t=new qo(this.context,this.state);this.enterRule(t,404,e.RULE_drop_object_features);try{this.enterOuterAlt(t,1),this.state=2843,this.match(e.WITH),this.state=2844,this.object_features()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}object_feature_value(){let t=new $o(this.context,this.state);this.enterRule(t,406,e.RULE_object_feature_value);try{switch(this.state=2850,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CALLABLE:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DICT:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ENUM:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FLOW:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LIST:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OPTIONAL:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESOURCE:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SET:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.STRUCT:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TAGGED:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TUPLE:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VARIANT:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=2846,this.id_or_type();break;case e.DOLLAR:this.enterOuterAlt(t,2),this.state=2847,this.bind_parameter();break;case e.STRING_VALUE:this.enterOuterAlt(t,3),this.state=2848,this.match(e.STRING_VALUE);break;case e.FALSE:case e.TRUE:this.enterOuterAlt(t,4),this.state=2849,this.bool_value();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}object_feature_kv(){let t=new Qo(this.context,this.state);this.enterRule(t,408,e.RULE_object_feature_kv);try{this.enterOuterAlt(t,1),this.state=2852,this.an_id_or_type(),this.state=2853,this.match(e.EQUALS),this.state=2854,this.object_feature_value()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}object_feature_flag(){let t=new Xo(this.context,this.state);this.enterRule(t,410,e.RULE_object_feature_flag);try{this.enterOuterAlt(t,1),this.state=2856,this.an_id_or_type()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}object_feature(){let t=new Zo(this.context,this.state);this.enterRule(t,412,e.RULE_object_feature);try{switch(this.state=2860,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,274,this.context)){case 1:this.enterOuterAlt(t,1),this.state=2858,this.object_feature_kv();break;case 2:this.enterOuterAlt(t,2),this.state=2859,this.object_feature_flag()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}object_features(){let t,i=new Jo(this.context,this.state);this.enterRule(i,414,e.RULE_object_features);try{switch(this.state=2874,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CALLABLE:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DICT:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ENUM:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FLOW:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LIST:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OPTIONAL:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESOURCE:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SET:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.STRUCT:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TAGGED:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TUPLE:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VARIANT:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(i,1),this.state=2862,this.object_feature();break;case e.LPAREN:for(this.enterOuterAlt(i,2),this.state=2863,this.match(e.LPAREN),this.state=2864,this.object_feature(),this.state=2869,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2865,this.match(e.COMMA),this.state=2866,this.object_feature(),this.state=2871,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=2872,this.match(e.RPAREN);break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}object_type_ref(){let t=new ea(this.context,this.state);this.enterRule(t,416,e.RULE_object_type_ref);try{this.enterOuterAlt(t,1),this.state=2876,this.an_id_or_type()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}create_table_stmt(){let t,i=new ta(this.context,this.state);this.enterRule(i,418,e.RULE_create_table_stmt);try{let s;switch(this.enterOuterAlt(i,1),this.state=2878,this.match(e.CREATE),this.state=2881,this.errorHandler.sync(this),t=this.tokenStream.LA(1),212===t&&(this.state=2879,this.match(e.OR),this.state=2880,this.match(e.REPLACE)),this.state=2891,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.TABLE:this.state=2883,this.match(e.TABLE);break;case e.TABLESTORE:this.state=2884,this.match(e.TABLESTORE);break;case e.EXTERNAL:this.state=2885,this.match(e.EXTERNAL),this.state=2886,this.match(e.TABLE);break;case e.TEMP:this.state=2887,this.match(e.TEMP),this.state=2888,this.match(e.TABLE);break;case e.TEMPORARY:this.state=2889,this.match(e.TEMPORARY),this.state=2890,this.match(e.TABLE);break;default:throw new lt(this)}if(1===(this.state=2896,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,279,this.context)))this.state=2893,this.match(e.IF),this.state=2894,this.match(e.NOT),this.state=2895,this.match(e.EXISTS);for(this.state=2898,this.simple_table_ref(),this.state=2899,this.match(e.LPAREN),this.state=2900,this.create_table_entry(),this.state=2905,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,280,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=2901,this.match(e.COMMA),this.state=2902,this.create_table_entry()),this.state=2907,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,280,this.context);this.state=2909,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=2908,this.match(e.COMMA)),this.state=2911,this.match(e.RPAREN),this.state=2913,this.errorHandler.sync(this),t=this.tokenStream.LA(1),163===t&&(this.state=2912,this.table_inherits()),this.state=2916,this.errorHandler.sync(this),t=this.tokenStream.LA(1),218===t&&(this.state=2915,this.table_partition_by()),this.state=2919,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=2918,this.with_table_settings()),this.state=2922,this.errorHandler.sync(this),t=this.tokenStream.LA(1),289===t&&(this.state=2921,this.table_tablestore()),this.state=2925,this.errorHandler.sync(this),t=this.tokenStream.LA(1),49===t&&(this.state=2924,this.table_as_source())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}create_table_entry(){let t=new ia(this.context,this.state);this.enterRule(t,420,e.RULE_create_table_entry);try{switch(this.state=2933,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,287,this.context)){case 1:this.enterOuterAlt(t,1),this.state=2927,this.column_schema();break;case 2:this.enterOuterAlt(t,2),this.state=2928,this.table_constraint();break;case 3:this.enterOuterAlt(t,3),this.state=2929,this.table_index();break;case 4:this.enterOuterAlt(t,4),this.state=2930,this.family_entry();break;case 5:this.enterOuterAlt(t,5),this.state=2931,this.changefeed();break;case 6:this.enterOuterAlt(t,6),this.state=2932,this.an_id_schema()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}create_backup_collection_stmt(){let t,i=new sa(this.context,this.state);this.enterRule(i,422,e.RULE_create_backup_collection_stmt);try{this.enterOuterAlt(i,1),this.state=2935,this.match(e.CREATE),this.state=2936,this.backup_collection(),this.state=2938,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(25===t||94===t)&&(this.state=2937,this.create_backup_collection_entries()),this.state=2940,this.match(e.WITH),this.state=2941,this.match(e.LPAREN),this.state=2942,this.backup_collection_settings(),this.state=2943,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_backup_collection_stmt(){let t=new na(this.context,this.state);this.enterRule(t,424,e.RULE_alter_backup_collection_stmt);try{switch(this.enterOuterAlt(t,1),this.state=2945,this.match(e.ALTER),this.state=2946,this.backup_collection(),this.state=2949,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.RESET:case e.SET:this.state=2947,this.alter_backup_collection_actions();break;case e.ADD:case e.DROP:this.state=2948,this.alter_backup_collection_entries();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}drop_backup_collection_stmt(){let t=new ra(this.context,this.state);this.enterRule(t,426,e.RULE_drop_backup_collection_stmt);try{this.enterOuterAlt(t,1),this.state=2951,this.match(e.DROP),this.state=2952,this.backup_collection()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}create_backup_collection_entries(){let t=new oa(this.context,this.state);this.enterRule(t,428,e.RULE_create_backup_collection_entries);try{switch(this.state=2956,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DATABASE:this.enterOuterAlt(t,1),this.state=2954,this.match(e.DATABASE);break;case e.LPAREN:this.enterOuterAlt(t,2),this.state=2955,this.create_backup_collection_entries_many();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}create_backup_collection_entries_many(){let t=new aa(this.context,this.state);this.enterRule(t,430,e.RULE_create_backup_collection_entries_many);try{this.enterOuterAlt(t,1),this.state=2958,this.match(e.LPAREN),this.state=2959,this.table_list(),this.state=2960,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}table_list(){let t,i=new ca(this.context,this.state);this.enterRule(i,432,e.RULE_table_list);try{for(this.enterOuterAlt(i,1),this.state=2962,this.match(e.TABLE),this.state=2963,this.an_id_table(),this.state=2969,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2964,this.match(e.COMMA),this.state=2965,this.match(e.TABLE),this.state=2966,this.an_id_table(),this.state=2971,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_backup_collection_actions(){let t,i=new la(this.context,this.state);this.enterRule(i,434,e.RULE_alter_backup_collection_actions);try{for(this.enterOuterAlt(i,1),this.state=2972,this.alter_backup_collection_action(),this.state=2977,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2973,this.match(e.COMMA),this.state=2974,this.alter_backup_collection_action(),this.state=2979,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_backup_collection_action(){let t=new ha(this.context,this.state);this.enterRule(t,436,e.RULE_alter_backup_collection_action);try{switch(this.state=2982,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.SET:this.enterOuterAlt(t,1),this.state=2980,this.alter_table_set_table_setting_compat();break;case e.RESET:this.enterOuterAlt(t,2),this.state=2981,this.alter_table_reset_table_setting();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_backup_collection_entries(){let t,i=new da(this.context,this.state);this.enterRule(i,438,e.RULE_alter_backup_collection_entries);try{for(this.enterOuterAlt(i,1),this.state=2984,this.alter_backup_collection_entry(),this.state=2989,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2985,this.match(e.COMMA),this.state=2986,this.alter_backup_collection_entry(),this.state=2991,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_backup_collection_entry(){let t=new ua(this.context,this.state);this.enterRule(t,440,e.RULE_alter_backup_collection_entry);try{switch(this.state=3002,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,295,this.context)){case 1:this.enterOuterAlt(t,1),this.state=2992,this.match(e.ADD),this.state=2993,this.match(e.DATABASE);break;case 2:this.enterOuterAlt(t,2),this.state=2994,this.match(e.DROP),this.state=2995,this.match(e.DATABASE);break;case 3:this.enterOuterAlt(t,3),this.state=2996,this.match(e.ADD),this.state=2997,this.match(e.TABLE),this.state=2998,this.an_id_table();break;case 4:this.enterOuterAlt(t,4),this.state=2999,this.match(e.DROP),this.state=3e3,this.match(e.TABLE),this.state=3001,this.an_id_table()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}backup_collection(){let t=new ga(this.context,this.state);this.enterRule(t,442,e.RULE_backup_collection);try{this.enterOuterAlt(t,1),this.state=3004,this.match(e.BACKUP),this.state=3005,this.match(e.COLLECTION),this.state=3006,this.object_ref()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}backup_collection_settings(){let t,i=new pa(this.context,this.state);this.enterRule(i,444,e.RULE_backup_collection_settings);try{for(this.enterOuterAlt(i,1),this.state=3008,this.backup_collection_settings_entry(),this.state=3013,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3009,this.match(e.COMMA),this.state=3010,this.backup_collection_settings_entry(),this.state=3015,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}backup_collection_settings_entry(){let t=new ma(this.context,this.state);this.enterRule(t,446,e.RULE_backup_collection_settings_entry);try{this.enterOuterAlt(t,1),this.state=3016,this.an_id(),this.state=3017,this.match(e.EQUALS),this.state=3018,this.table_setting_value()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}backup_stmt(){let t,i=new fa(this.context,this.state);this.enterRule(i,448,e.RULE_backup_stmt);try{this.enterOuterAlt(i,1),this.state=3020,this.match(e.BACKUP),this.state=3021,this.object_ref(),this.state=3023,this.errorHandler.sync(this),t=this.tokenStream.LA(1),160===t&&(this.state=3022,this.match(e.INCREMENTAL))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}restore_stmt(){let t,i=new _a(this.context,this.state);this.enterRule(i,450,e.RULE_restore_stmt);try{this.enterOuterAlt(i,1),this.state=3025,this.match(e.RESTORE),this.state=3026,this.object_ref(),this.state=3029,this.errorHandler.sync(this),t=this.tokenStream.LA(1),54===t&&(this.state=3027,this.match(e.AT),this.state=3028,this.match(e.STRING_VALUE))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}table_inherits(){let t,i=new va(this.context,this.state);this.enterRule(i,452,e.RULE_table_inherits);try{for(this.enterOuterAlt(i,1),this.state=3031,this.match(e.INHERITS),this.state=3032,this.match(e.LPAREN),this.state=3033,this.simple_table_ref_core(),this.state=3038,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3034,this.match(e.COMMA),this.state=3035,this.simple_table_ref_core(),this.state=3040,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3041,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}table_partition_by(){let t=new Ca(this.context,this.state);this.enterRule(t,454,e.RULE_table_partition_by);try{this.enterOuterAlt(t,1),this.state=3043,this.match(e.PARTITION),this.state=3044,this.match(e.BY),this.state=3045,this.match(e.HASH),this.state=3046,this.pure_column_list()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}with_table_settings(){let t,i=new Ea(this.context,this.state);this.enterRule(i,456,e.RULE_with_table_settings);try{for(this.enterOuterAlt(i,1),this.state=3048,this.match(e.WITH),this.state=3049,this.match(e.LPAREN),this.state=3050,this.table_settings_entry(),this.state=3055,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3051,this.match(e.COMMA),this.state=3052,this.table_settings_entry(),this.state=3057,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3058,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}table_tablestore(){let t=new ba(this.context,this.state);this.enterRule(t,458,e.RULE_table_tablestore);try{this.enterOuterAlt(t,1),this.state=3060,this.match(e.TABLESTORE),this.state=3061,this.simple_table_ref_core()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}table_settings_entry(){let t=new Sa(this.context,this.state);this.enterRule(t,460,e.RULE_table_settings_entry);try{this.enterOuterAlt(t,1),this.state=3063,this.an_id(),this.state=3064,this.match(e.EQUALS),this.state=3065,this.table_setting_value()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}table_as_source(){let t=new ya(this.context,this.state);this.enterRule(t,462,e.RULE_table_as_source);try{this.enterOuterAlt(t,1),this.state=3067,this.match(e.AS),this.state=3068,this.values_source()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_stmt(){let t,i=new wa(this.context,this.state);this.enterRule(i,464,e.RULE_alter_table_stmt);try{for(this.enterOuterAlt(i,1),this.state=3070,this.match(e.ALTER),this.state=3071,this.match(e.TABLE),this.state=3072,this.simple_table_ref(),this.state=3073,this.alter_table_action(),this.state=3078,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3074,this.match(e.COMMA),this.state=3075,this.alter_table_action(),this.state=3080,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_table_action(){let t=new Ra(this.context,this.state);this.enterRule(t,466,e.RULE_alter_table_action);try{switch(this.state=3098,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,302,this.context)){case 1:this.enterOuterAlt(t,1),this.state=3081,this.alter_table_add_column();break;case 2:this.enterOuterAlt(t,2),this.state=3082,this.alter_table_drop_column();break;case 3:this.enterOuterAlt(t,3),this.state=3083,this.alter_table_alter_column();break;case 4:this.enterOuterAlt(t,4),this.state=3084,this.alter_table_add_column_family();break;case 5:this.enterOuterAlt(t,5),this.state=3085,this.alter_table_alter_column_family();break;case 6:this.enterOuterAlt(t,6),this.state=3086,this.alter_table_set_table_setting_uncompat();break;case 7:this.enterOuterAlt(t,7),this.state=3087,this.alter_table_set_table_setting_compat();break;case 8:this.enterOuterAlt(t,8),this.state=3088,this.alter_table_reset_table_setting();break;case 9:this.enterOuterAlt(t,9),this.state=3089,this.alter_table_add_index();break;case 10:this.enterOuterAlt(t,10),this.state=3090,this.alter_table_drop_index();break;case 11:this.enterOuterAlt(t,11),this.state=3091,this.alter_table_rename_to();break;case 12:this.enterOuterAlt(t,12),this.state=3092,this.alter_table_add_changefeed();break;case 13:this.enterOuterAlt(t,13),this.state=3093,this.alter_table_alter_changefeed();break;case 14:this.enterOuterAlt(t,14),this.state=3094,this.alter_table_drop_changefeed();break;case 15:this.enterOuterAlt(t,15),this.state=3095,this.alter_table_rename_index_to();break;case 16:this.enterOuterAlt(t,16),this.state=3096,this.alter_table_alter_index();break;case 17:this.enterOuterAlt(t,17),this.state=3097,this.alter_table_alter_column_drop_not_null()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_external_table_stmt(){let t,i=new La(this.context,this.state);this.enterRule(i,468,e.RULE_alter_external_table_stmt);try{for(this.enterOuterAlt(i,1),this.state=3100,this.match(e.ALTER),this.state=3101,this.match(e.EXTERNAL),this.state=3102,this.match(e.TABLE),this.state=3103,this.simple_table_ref(),this.state=3104,this.alter_external_table_action(),this.state=3109,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3105,this.match(e.COMMA),this.state=3106,this.alter_external_table_action(),this.state=3111,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_external_table_action(){let t=new Ta(this.context,this.state);this.enterRule(t,470,e.RULE_alter_external_table_action);try{switch(this.state=3117,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,304,this.context)){case 1:this.enterOuterAlt(t,1),this.state=3112,this.alter_table_add_column();break;case 2:this.enterOuterAlt(t,2),this.state=3113,this.alter_table_drop_column();break;case 3:this.enterOuterAlt(t,3),this.state=3114,this.alter_table_set_table_setting_uncompat();break;case 4:this.enterOuterAlt(t,4),this.state=3115,this.alter_table_set_table_setting_compat();break;case 5:this.enterOuterAlt(t,5),this.state=3116,this.alter_table_reset_table_setting()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_store_stmt(){let t,i=new xa(this.context,this.state);this.enterRule(i,472,e.RULE_alter_table_store_stmt);try{for(this.enterOuterAlt(i,1),this.state=3119,this.match(e.ALTER),this.state=3120,this.match(e.TABLESTORE),this.state=3121,this.object_ref(),this.state=3122,this.alter_table_store_action(),this.state=3127,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3123,this.match(e.COMMA),this.state=3124,this.alter_table_store_action(),this.state=3129,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_table_store_action(){let t=new ka(this.context,this.state);this.enterRule(t,474,e.RULE_alter_table_store_action);try{switch(this.state=3132,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ADD:this.enterOuterAlt(t,1),this.state=3130,this.alter_table_add_column();break;case e.DROP:this.enterOuterAlt(t,2),this.state=3131,this.alter_table_drop_column();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_add_column(){let t,i=new Aa(this.context,this.state);this.enterRule(i,476,e.RULE_alter_table_add_column);try{this.enterOuterAlt(i,1),this.state=3134,this.match(e.ADD),this.state=3136,this.errorHandler.sync(this),t=this.tokenStream.LA(1),76===t&&(this.state=3135,this.match(e.COLUMN)),this.state=3138,this.column_schema()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_table_drop_column(){let t=new Na(this.context,this.state);this.enterRule(t,478,e.RULE_alter_table_drop_column);try{if(this.enterOuterAlt(t,1),1===(this.state=3140,this.match(e.DROP),this.state=3142,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,308,this.context)))this.state=3141,this.match(e.COLUMN);this.state=3144,this.an_id()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_alter_column(){let t=new Ia(this.context,this.state);this.enterRule(t,480,e.RULE_alter_table_alter_column);try{this.enterOuterAlt(t,1),this.state=3146,this.match(e.ALTER),this.state=3147,this.match(e.COLUMN),this.state=3148,this.an_id(),this.state=3149,this.match(e.SET),this.state=3150,this.family_relation()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_alter_column_drop_not_null(){let t=new Oa(this.context,this.state);this.enterRule(t,482,e.RULE_alter_table_alter_column_drop_not_null);try{this.enterOuterAlt(t,1),this.state=3152,this.match(e.ALTER),this.state=3153,this.match(e.COLUMN),this.state=3154,this.an_id(),this.state=3155,this.match(e.DROP),this.state=3156,this.match(e.NOT),this.state=3157,this.match(e.NULL)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_add_column_family(){let t=new Da(this.context,this.state);this.enterRule(t,484,e.RULE_alter_table_add_column_family);try{this.enterOuterAlt(t,1),this.state=3159,this.match(e.ADD),this.state=3160,this.family_entry()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_alter_column_family(){let t=new Ma(this.context,this.state);this.enterRule(t,486,e.RULE_alter_table_alter_column_family);try{this.enterOuterAlt(t,1),this.state=3162,this.match(e.ALTER),this.state=3163,this.match(e.FAMILY),this.state=3164,this.an_id(),this.state=3165,this.match(e.SET),this.state=3166,this.an_id(),this.state=3167,this.family_setting_value()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_set_table_setting_uncompat(){let t=new Pa(this.context,this.state);this.enterRule(t,488,e.RULE_alter_table_set_table_setting_uncompat);try{this.enterOuterAlt(t,1),this.state=3169,this.match(e.SET),this.state=3170,this.an_id(),this.state=3171,this.table_setting_value()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_set_table_setting_compat(){let t,i=new Fa(this.context,this.state);this.enterRule(i,490,e.RULE_alter_table_set_table_setting_compat);try{for(this.enterOuterAlt(i,1),this.state=3173,this.match(e.SET),this.state=3174,this.match(e.LPAREN),this.state=3175,this.alter_table_setting_entry(),this.state=3180,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3176,this.match(e.COMMA),this.state=3177,this.alter_table_setting_entry(),this.state=3182,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3183,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_table_reset_table_setting(){let t,i=new Ua(this.context,this.state);this.enterRule(i,492,e.RULE_alter_table_reset_table_setting);try{for(this.enterOuterAlt(i,1),this.state=3185,this.match(e.RESET),this.state=3186,this.match(e.LPAREN),this.state=3187,this.an_id(),this.state=3192,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3188,this.match(e.COMMA),this.state=3189,this.an_id(),this.state=3194,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3195,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_table_add_index(){let t=new Ha(this.context,this.state);this.enterRule(t,494,e.RULE_alter_table_add_index);try{this.enterOuterAlt(t,1),this.state=3197,this.match(e.ADD),this.state=3198,this.table_index()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_drop_index(){let t=new Ba(this.context,this.state);this.enterRule(t,496,e.RULE_alter_table_drop_index);try{this.enterOuterAlt(t,1),this.state=3200,this.match(e.DROP),this.state=3201,this.match(e.INDEX),this.state=3202,this.an_id()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_rename_to(){let t=new Wa(this.context,this.state);this.enterRule(t,498,e.RULE_alter_table_rename_to);try{this.enterOuterAlt(t,1),this.state=3204,this.match(e.RENAME),this.state=3205,this.match(e.TO),this.state=3206,this.an_id_table()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_rename_index_to(){let t=new Va(this.context,this.state);this.enterRule(t,500,e.RULE_alter_table_rename_index_to);try{this.enterOuterAlt(t,1),this.state=3208,this.match(e.RENAME),this.state=3209,this.match(e.INDEX),this.state=3210,this.an_id(),this.state=3211,this.match(e.TO),this.state=3212,this.an_id()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_add_changefeed(){let t=new za(this.context,this.state);this.enterRule(t,502,e.RULE_alter_table_add_changefeed);try{this.enterOuterAlt(t,1),this.state=3214,this.match(e.ADD),this.state=3215,this.changefeed()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_alter_changefeed(){let t=new Ga(this.context,this.state);this.enterRule(t,504,e.RULE_alter_table_alter_changefeed);try{this.enterOuterAlt(t,1),this.state=3217,this.match(e.ALTER),this.state=3218,this.match(e.CHANGEFEED),this.state=3219,this.an_id(),this.state=3220,this.changefeed_alter_settings()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_drop_changefeed(){let t=new ja(this.context,this.state);this.enterRule(t,506,e.RULE_alter_table_drop_changefeed);try{this.enterOuterAlt(t,1),this.state=3222,this.match(e.DROP),this.state=3223,this.match(e.CHANGEFEED),this.state=3224,this.an_id()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_alter_index(){let t=new Ka(this.context,this.state);this.enterRule(t,508,e.RULE_alter_table_alter_index);try{this.enterOuterAlt(t,1),this.state=3226,this.match(e.ALTER),this.state=3227,this.match(e.INDEX),this.state=3228,this.an_id(),this.state=3229,this.alter_table_alter_index_action()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}column_schema(){let t,i=new Ya(this.context,this.state);this.enterRule(i,510,e.RULE_column_schema);try{this.enterOuterAlt(i,1),this.state=3231,this.an_id_schema(),this.state=3232,this.type_name_or_bind(),this.state=3234,this.errorHandler.sync(this),t=this.tokenStream.LA(1),133===t&&(this.state=3233,this.family_relation()),this.state=3236,this.opt_column_constraints()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}family_relation(){let t=new qa(this.context,this.state);this.enterRule(t,512,e.RULE_family_relation);try{this.enterOuterAlt(t,1),this.state=3238,this.match(e.FAMILY),this.state=3239,this.an_id()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}opt_column_constraints(){let t,i=new $a(this.context,this.state);this.enterRule(i,514,e.RULE_opt_column_constraints);try{this.enterOuterAlt(i,1),this.state=3245,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(199===t||201===t)&&(this.state=3242,this.errorHandler.sync(this),t=this.tokenStream.LA(1),199===t&&(this.state=3241,this.match(e.NOT)),this.state=3244,this.match(e.NULL)),this.state=3249,this.errorHandler.sync(this),t=this.tokenStream.LA(1),97===t&&(this.state=3247,this.match(e.DEFAULT),this.state=3248,this.expr())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}column_order_by_specification(){let t,i=new Qa(this.context,this.state);this.enterRule(i,516,e.RULE_column_order_by_specification);try{this.enterOuterAlt(i,1),this.state=3251,this.an_id(),this.state=3253,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(50===t||102===t)&&(this.state=3252,t=this.tokenStream.LA(1),50===t||102===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}table_constraint(){let t,i=new Xa(this.context,this.state);this.enterRule(i,518,e.RULE_table_constraint);try{switch(this.state=3294,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.PRIMARY:for(this.enterOuterAlt(i,1),this.state=3255,this.match(e.PRIMARY),this.state=3256,this.match(e.KEY),this.state=3257,this.match(e.LPAREN),this.state=3258,this.an_id(),this.state=3263,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3259,this.match(e.COMMA),this.state=3260,this.an_id(),this.state=3265,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3266,this.match(e.RPAREN);break;case e.PARTITION:for(this.enterOuterAlt(i,2),this.state=3268,this.match(e.PARTITION),this.state=3269,this.match(e.BY),this.state=3270,this.match(e.LPAREN),this.state=3271,this.an_id(),this.state=3276,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3272,this.match(e.COMMA),this.state=3273,this.an_id(),this.state=3278,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3279,this.match(e.RPAREN);break;case e.ORDER:for(this.enterOuterAlt(i,3),this.state=3281,this.match(e.ORDER),this.state=3282,this.match(e.BY),this.state=3283,this.match(e.LPAREN),this.state=3284,this.column_order_by_specification(),this.state=3289,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3285,this.match(e.COMMA),this.state=3286,this.column_order_by_specification(),this.state=3291,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3292,this.match(e.RPAREN);break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}table_index(){let t,i=new Za(this.context,this.state);this.enterRule(i,520,e.RULE_table_index);try{for(this.enterOuterAlt(i,1),this.state=3296,this.match(e.INDEX),this.state=3297,this.an_id(),this.state=3298,this.table_index_type(),this.state=3299,this.match(e.ON),this.state=3300,this.match(e.LPAREN),this.state=3301,this.an_id_schema(),this.state=3306,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3302,this.match(e.COMMA),this.state=3303,this.an_id_schema(),this.state=3308,this.errorHandler.sync(this),t=this.tokenStream.LA(1);if(this.state=3309,this.match(e.RPAREN),this.state=3322,this.errorHandler.sync(this),t=this.tokenStream.LA(1),85===t){for(this.state=3310,this.match(e.COVER),this.state=3311,this.match(e.LPAREN),this.state=3312,this.an_id_schema(),this.state=3317,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3313,this.match(e.COMMA),this.state=3314,this.an_id_schema(),this.state=3319,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3320,this.match(e.RPAREN)}this.state=3325,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=3324,this.with_index_settings())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}table_index_type(){let t,i=new Ja(this.context,this.state);this.enterRule(i,522,e.RULE_table_index_type);try{switch(this.enterOuterAlt(i,1),this.state=3329,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.GLOBAL:this.state=3327,this.global_index();break;case e.LOCAL:this.state=3328,this.local_index();break;default:throw new lt(this)}this.state=3333,this.errorHandler.sync(this),t=this.tokenStream.LA(1),313===t&&(this.state=3331,this.match(e.USING),this.state=3332,this.index_subtype())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}global_index(){let t,i=new ec(this.context,this.state);this.enterRule(i,524,e.RULE_global_index);try{this.enterOuterAlt(i,1),this.state=3335,this.match(e.GLOBAL),this.state=3337,this.errorHandler.sync(this),t=this.tokenStream.LA(1),306===t&&(this.state=3336,this.match(e.UNIQUE)),this.state=3340,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(53===t||284===t)&&(this.state=3339,t=this.tokenStream.LA(1),53===t||284===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}local_index(){let t=new tc(this.context,this.state);this.enterRule(t,526,e.RULE_local_index);try{this.enterOuterAlt(t,1),this.state=3342,this.match(e.LOCAL)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}index_subtype(){let t=new ic(this.context,this.state);this.enterRule(t,528,e.RULE_index_subtype);try{this.enterOuterAlt(t,1),this.state=3344,this.an_id()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}with_index_settings(){let t,i=new sc(this.context,this.state);this.enterRule(i,530,e.RULE_with_index_settings);try{let s;for(this.enterOuterAlt(i,1),this.state=3346,this.match(e.WITH),this.state=3347,this.match(e.LPAREN),this.state=3348,this.index_setting_entry(),this.state=3353,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,328,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=3349,this.match(e.COMMA),this.state=3350,this.index_setting_entry()),this.state=3355,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,328,this.context);this.state=3357,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=3356,this.match(e.COMMA)),this.state=3359,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}index_setting_entry(){let t=new nc(this.context,this.state);this.enterRule(t,532,e.RULE_index_setting_entry);try{this.enterOuterAlt(t,1),this.state=3361,this.an_id(),this.state=3362,this.match(e.EQUALS),this.state=3363,this.index_setting_value()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}index_setting_value(){let t=new rc(this.context,this.state);this.enterRule(t,534,e.RULE_index_setting_value);try{switch(this.state=3369,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CALLABLE:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DICT:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ENUM:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FLOW:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LIST:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OPTIONAL:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESOURCE:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SET:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.STRUCT:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TAGGED:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TUPLE:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VARIANT:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=3365,this.id_or_type();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=3366,this.match(e.STRING_VALUE);break;case e.DIGITS:case e.INTEGER_VALUE:this.enterOuterAlt(t,3),this.state=3367,this.integer();break;case e.FALSE:case e.TRUE:this.enterOuterAlt(t,4),this.state=3368,this.bool_value();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}changefeed(){let t=new oc(this.context,this.state);this.enterRule(t,536,e.RULE_changefeed);try{this.enterOuterAlt(t,1),this.state=3371,this.match(e.CHANGEFEED),this.state=3372,this.an_id(),this.state=3373,this.match(e.WITH),this.state=3374,this.match(e.LPAREN),this.state=3375,this.changefeed_settings(),this.state=3376,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}changefeed_settings(){let t,i=new ac(this.context,this.state);this.enterRule(i,538,e.RULE_changefeed_settings);try{for(this.enterOuterAlt(i,1),this.state=3378,this.changefeed_settings_entry(),this.state=3383,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3379,this.match(e.COMMA),this.state=3380,this.changefeed_settings_entry(),this.state=3385,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}changefeed_settings_entry(){let t=new cc(this.context,this.state);this.enterRule(t,540,e.RULE_changefeed_settings_entry);try{this.enterOuterAlt(t,1),this.state=3386,this.an_id(),this.state=3387,this.match(e.EQUALS),this.state=3388,this.changefeed_setting_value()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}changefeed_setting_value(){let t=new lc(this.context,this.state);this.enterRule(t,542,e.RULE_changefeed_setting_value);try{this.enterOuterAlt(t,1),this.state=3390,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}changefeed_alter_settings(){let t=new hc(this.context,this.state);this.enterRule(t,544,e.RULE_changefeed_alter_settings);try{switch(this.state=3398,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DISABLE:this.enterOuterAlt(t,1),this.state=3392,this.match(e.DISABLE);break;case e.SET:this.enterOuterAlt(t,2),this.state=3393,this.match(e.SET),this.state=3394,this.match(e.LPAREN),this.state=3395,this.changefeed_settings(),this.state=3396,this.match(e.RPAREN);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_setting_entry(){let t=new dc(this.context,this.state);this.enterRule(t,546,e.RULE_alter_table_setting_entry);try{this.enterOuterAlt(t,1),this.state=3400,this.an_id(),this.state=3401,this.match(e.EQUALS),this.state=3402,this.table_setting_value()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}table_setting_value(){let t,i=new uc(this.context,this.state);this.enterRule(i,548,e.RULE_table_setting_value);try{switch(this.state=3416,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,334,this.context)){case 1:this.enterOuterAlt(i,1),this.state=3404,this.id();break;case 2:this.enterOuterAlt(i,2),this.state=3405,this.match(e.STRING_VALUE);break;case 3:this.enterOuterAlt(i,3),this.state=3406,this.integer();break;case 4:this.enterOuterAlt(i,4),this.state=3407,this.split_boundaries();break;case 5:this.enterOuterAlt(i,5),this.state=3408,this.ttl_tier_list(),this.state=3409,this.match(e.ON),this.state=3410,this.an_id(),this.state=3413,this.errorHandler.sync(this),t=this.tokenStream.LA(1),49===t&&(this.state=3411,this.match(e.AS),this.state=3412,t=this.tokenStream.LA(1),!(t-191&-32)&&1<<t-191&11||267===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this));break;case 6:this.enterOuterAlt(i,6),this.state=3415,this.bool_value()}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}ttl_tier_list(){let t,i=new gc(this.context,this.state);this.enterRule(i,550,e.RULE_ttl_tier_list);try{if(this.enterOuterAlt(i,1),this.state=3418,this.expr(),this.state=3429,this.errorHandler.sync(this),t=this.tokenStream.LA(1),101===t||295===t)for(this.state=3419,this.ttl_tier_action(),this.state=3426,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3420,this.match(e.COMMA),this.state=3421,this.expr(),this.state=3422,this.ttl_tier_action(),this.state=3428,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}ttl_tier_action(){let t=new pc(this.context,this.state);this.enterRule(t,552,e.RULE_ttl_tier_action);try{switch(this.state=3437,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.TO:this.enterOuterAlt(t,1),this.state=3431,this.match(e.TO),this.state=3432,this.match(e.EXTERNAL),this.state=3433,this.match(e.DATA),this.state=3434,this.match(e.SOURCE),this.state=3435,this.an_id();break;case e.DELETE:this.enterOuterAlt(t,2),this.state=3436,this.match(e.DELETE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}family_entry(){let t=new mc(this.context,this.state);this.enterRule(t,554,e.RULE_family_entry);try{this.enterOuterAlt(t,1),this.state=3439,this.match(e.FAMILY),this.state=3440,this.an_id(),this.state=3441,this.family_settings()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}family_settings(){let t,i=new fc(this.context,this.state);this.enterRule(i,556,e.RULE_family_settings);try{if(this.enterOuterAlt(i,1),this.state=3443,this.match(e.LPAREN),this.state=3452,this.errorHandler.sync(this),t=this.tokenStream.LA(1),!(t-38&-32)&&1<<t-38&3220176895||!(t-70&-32)&&1<<t-70&4294967295||!(t-102&-32)&&1<<t-102&3221159927||!(t-134&-32)&&1<<t-134&4294967287||!(t-166&-32)&&1<<t-166&4294836223||!(t-198&-32)&&1<<t-198&4294959103||!(t-230&-32)&&1<<t-230&4294688767||!(t-262&-32)&&1<<t-262&4026400255||!(t-294&-32)&&1<<t-294&4290772799||!(t-326&-32)&&1<<t-326&7)for(this.state=3444,this.family_settings_entry(),this.state=3449,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3445,this.match(e.COMMA),this.state=3446,this.family_settings_entry(),this.state=3451,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3454,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}family_settings_entry(){let t=new _c(this.context,this.state);this.enterRule(t,558,e.RULE_family_settings_entry);try{this.enterOuterAlt(t,1),this.state=3456,this.an_id(),this.state=3457,this.match(e.EQUALS),this.state=3458,this.family_setting_value()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}family_setting_value(){let t=new vc(this.context,this.state);this.enterRule(t,560,e.RULE_family_setting_value);try{switch(this.state=3462,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.STRING_VALUE:this.enterOuterAlt(t,1),this.state=3460,this.match(e.STRING_VALUE);break;case e.DIGITS:case e.INTEGER_VALUE:this.enterOuterAlt(t,2),this.state=3461,this.integer();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}split_boundaries(){let t,i=new Cc(this.context,this.state);this.enterRule(i,562,e.RULE_split_boundaries);try{switch(this.state=3476,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,342,this.context)){case 1:for(this.enterOuterAlt(i,1),this.state=3464,this.match(e.LPAREN),this.state=3465,this.literal_value_list(),this.state=3470,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3466,this.match(e.COMMA),this.state=3467,this.literal_value_list(),this.state=3472,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3473,this.match(e.RPAREN);break;case 2:this.enterOuterAlt(i,2),this.state=3475,this.literal_value_list()}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}literal_value_list(){let t,i=new Ec(this.context,this.state);this.enterRule(i,564,e.RULE_literal_value_list);try{for(this.enterOuterAlt(i,1),this.state=3478,this.match(e.LPAREN),this.state=3479,this.literal_value(),this.state=3484,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3480,this.match(e.COMMA),this.state=3481,this.literal_value(),this.state=3486,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3487,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_table_alter_index_action(){let t=new bc(this.context,this.state);this.enterRule(t,566,e.RULE_alter_table_alter_index_action);try{switch(this.state=3492,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,344,this.context)){case 1:this.enterOuterAlt(t,1),this.state=3489,this.alter_table_set_table_setting_uncompat();break;case 2:this.enterOuterAlt(t,2),this.state=3490,this.alter_table_set_table_setting_compat();break;case 3:this.enterOuterAlt(t,3),this.state=3491,this.alter_table_reset_table_setting()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}drop_table_stmt(){let t=new Sc(this.context,this.state);this.enterRule(t,568,e.RULE_drop_table_stmt);try{switch(this.enterOuterAlt(t,1),this.state=3494,this.match(e.DROP),this.state=3499,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.TABLE:this.state=3495,this.match(e.TABLE);break;case e.TABLESTORE:this.state=3496,this.match(e.TABLESTORE);break;case e.EXTERNAL:this.state=3497,this.match(e.EXTERNAL),this.state=3498,this.match(e.TABLE);break;default:throw new lt(this)}if(1===(this.state=3503,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,346,this.context)))this.state=3501,this.match(e.IF),this.state=3502,this.match(e.EXISTS);this.state=3505,this.simple_table_ref()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}create_user_stmt(){let t,i=new yc(this.context,this.state);this.enterRule(i,570,e.RULE_create_user_stmt);try{for(this.enterOuterAlt(i,1),this.state=3507,this.match(e.CREATE),this.state=3508,this.match(e.USER),this.state=3509,this.role_name(),this.state=3513,this.errorHandler.sync(this),t=this.tokenStream.LA(1);116===t||150===t||185===t||198===t||220===t;)this.state=3510,this.user_option(),this.state=3515,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_user_stmt(){let t,i=new wc(this.context,this.state);this.enterRule(i,572,e.RULE_alter_user_stmt);try{switch(this.enterOuterAlt(i,1),this.state=3516,this.match(e.ALTER),this.state=3517,this.match(e.USER),this.state=3518,this.role_name(),this.state=3530,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ENCRYPTED:case e.HASH:case e.LOGIN:case e.NOLOGIN:case e.PASSWORD:case e.WITH:this.state=3520,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=3519,this.match(e.WITH)),this.state=3523,this.errorHandler.sync(this),t=this.tokenStream.LA(1);do{this.state=3522,this.user_option(),this.state=3525,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}while(116===t||150===t||185===t||198===t||220===t);break;case e.RENAME:this.state=3527,this.match(e.RENAME),this.state=3528,this.match(e.TO),this.state=3529,this.role_name();break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}create_group_stmt(){let t,i=new Rc(this.context,this.state);this.enterRule(i,574,e.RULE_create_group_stmt);try{let s;if(this.enterOuterAlt(i,1),this.state=3532,this.match(e.CREATE),this.state=3533,this.match(e.GROUP),this.state=3534,this.role_name(),this.state=3548,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t){for(this.state=3535,this.match(e.WITH),this.state=3536,this.match(e.USER),this.state=3537,this.role_name(),this.state=3542,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,351,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=3538,this.match(e.COMMA),this.state=3539,this.role_name()),this.state=3544,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,351,this.context);this.state=3546,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=3545,this.match(e.COMMA))}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_group_stmt(){let t,i=new Lc(this.context,this.state);this.enterRule(i,576,e.RULE_alter_group_stmt);try{let s;switch(this.enterOuterAlt(i,1),this.state=3550,this.match(e.ALTER),this.state=3551,this.match(e.GROUP),this.state=3552,this.role_name(),this.state=3569,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ADD:case e.DROP:for(this.state=3553,t=this.tokenStream.LA(1),40===t||111===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3554,this.match(e.USER),this.state=3555,this.role_name(),this.state=3560,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,354,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=3556,this.match(e.COMMA),this.state=3557,this.role_name()),this.state=3562,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,354,this.context);this.state=3564,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=3563,this.match(e.COMMA));break;case e.RENAME:this.state=3566,this.match(e.RENAME),this.state=3567,this.match(e.TO),this.state=3568,this.role_name();break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}drop_role_stmt(){let t,i=new Tc(this.context,this.state);this.enterRule(i,578,e.RULE_drop_role_stmt);try{let s;if(this.enterOuterAlt(i,1),1===(this.state=3571,this.match(e.DROP),this.state=3572,t=this.tokenStream.LA(1),147===t||312===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3575,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,357,this.context)))this.state=3573,this.match(e.IF),this.state=3574,this.match(e.EXISTS);for(this.state=3577,this.role_name(),this.state=3582,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,358,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=3578,this.match(e.COMMA),this.state=3579,this.role_name()),this.state=3584,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,358,this.context);this.state=3586,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=3585,this.match(e.COMMA))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}role_name(){let t=new xc(this.context,this.state);this.enterRule(t,580,e.RULE_role_name);try{switch(this.state=3590,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CALLABLE:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DICT:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ENUM:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FLOW:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LIST:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OPTIONAL:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESOURCE:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SET:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.STRUCT:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TAGGED:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TUPLE:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VARIANT:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=3588,this.an_id_or_type();break;case e.DOLLAR:this.enterOuterAlt(t,2),this.state=3589,this.bind_parameter();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}user_option(){let t=new kc(this.context,this.state);this.enterRule(t,582,e.RULE_user_option);try{switch(this.state=3594,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ENCRYPTED:case e.HASH:case e.PASSWORD:this.enterOuterAlt(t,1),this.state=3592,this.authentication_option();break;case e.LOGIN:case e.NOLOGIN:this.enterOuterAlt(t,2),this.state=3593,this.login_option();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}authentication_option(){let t=new Ac(this.context,this.state);this.enterRule(t,584,e.RULE_authentication_option);try{switch(this.state=3598,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ENCRYPTED:case e.PASSWORD:this.enterOuterAlt(t,1),this.state=3596,this.password_option();break;case e.HASH:this.enterOuterAlt(t,2),this.state=3597,this.hash_option();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}password_option(){let t,i=new Nc(this.context,this.state);this.enterRule(i,586,e.RULE_password_option);try{this.enterOuterAlt(i,1),this.state=3601,this.errorHandler.sync(this),t=this.tokenStream.LA(1),116===t&&(this.state=3600,this.match(e.ENCRYPTED)),this.state=3603,this.match(e.PASSWORD),this.state=3604,this.expr()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}hash_option(){let t=new Ic(this.context,this.state);this.enterRule(t,588,e.RULE_hash_option);try{this.enterOuterAlt(t,1),this.state=3606,this.match(e.HASH),this.state=3607,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}login_option(){let t,i=new Oc(this.context,this.state);this.enterRule(i,590,e.RULE_login_option);try{this.enterOuterAlt(i,1),this.state=3609,t=this.tokenStream.LA(1),185===t||198===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}grant_permissions_stmt(){let t,i=new Dc(this.context,this.state);this.enterRule(i,592,e.RULE_grant_permissions_stmt);try{let s;for(this.enterOuterAlt(i,1),this.state=3611,this.match(e.GRANT),this.state=3612,this.permission_name_target(),this.state=3613,this.match(e.ON),this.state=3614,this.an_id_schema(),this.state=3619,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3615,this.match(e.COMMA),this.state=3616,this.an_id_schema(),this.state=3621,this.errorHandler.sync(this),t=this.tokenStream.LA(1);for(this.state=3622,this.match(e.TO),this.state=3623,this.role_name(),this.state=3628,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,365,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=3624,this.match(e.COMMA),this.state=3625,this.role_name()),this.state=3630,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,365,this.context);this.state=3632,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=3631,this.match(e.COMMA)),this.state=3637,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=3634,this.match(e.WITH),this.state=3635,this.match(e.GRANT),this.state=3636,this.match(e.OPTION))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}revoke_permissions_stmt(){let t,i=new Mc(this.context,this.state);this.enterRule(i,594,e.RULE_revoke_permissions_stmt);try{if(this.enterOuterAlt(i,1),1===(this.state=3639,this.match(e.REVOKE),this.state=3643,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,368,this.context)))this.state=3640,this.match(e.GRANT),this.state=3641,this.match(e.OPTION),this.state=3642,this.match(e.FOR);for(this.state=3645,this.permission_name_target(),this.state=3646,this.match(e.ON),this.state=3647,this.an_id_schema(),this.state=3652,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3648,this.match(e.COMMA),this.state=3649,this.an_id_schema(),this.state=3654,this.errorHandler.sync(this),t=this.tokenStream.LA(1);for(this.state=3655,this.match(e.FROM),this.state=3656,this.role_name(),this.state=3661,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3657,this.match(e.COMMA),this.state=3658,this.role_name(),this.state=3663,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}permission_id(){let t,i=new Pc(this.context,this.state);this.enterRule(i,596,e.RULE_permission_id);try{switch(this.state=3688,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.CONNECT:this.enterOuterAlt(i,1),this.state=3664,this.match(e.CONNECT);break;case e.LIST:this.enterOuterAlt(i,2),this.state=3665,this.match(e.LIST);break;case e.INSERT:this.enterOuterAlt(i,3),this.state=3666,this.match(e.INSERT);break;case e.MANAGE:this.enterOuterAlt(i,4),this.state=3667,this.match(e.MANAGE);break;case e.DROP:this.enterOuterAlt(i,5),this.state=3668,this.match(e.DROP);break;case e.GRANT:this.enterOuterAlt(i,6),this.state=3669,this.match(e.GRANT);break;case e.MODIFY:this.enterOuterAlt(i,7),this.state=3670,this.match(e.MODIFY),this.state=3671,t=this.tokenStream.LA(1),56===t||287===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this);break;case e.ERASE:case e.UPDATE:this.enterOuterAlt(i,8),this.state=3672,t=this.tokenStream.LA(1),119===t||309===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3673,this.match(e.ROW);break;case e.ALTER:case e.DESCRIBE:case e.REMOVE:this.enterOuterAlt(i,9),this.state=3674,t=this.tokenStream.LA(1),43===t||103===t||242===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3675,this.match(e.SCHEMA);break;case e.SELECT:this.enterOuterAlt(i,10),this.state=3676,this.match(e.SELECT),this.state=3678,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(56===t||262===t||287===t)&&(this.state=3677,t=this.tokenStream.LA(1),56===t||262===t||287===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this));break;case e.FULL:case e.USE:this.enterOuterAlt(i,11),this.state=3680,t=this.tokenStream.LA(1),142===t||311===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3682,this.errorHandler.sync(this),t=this.tokenStream.LA(1),180===t&&(this.state=3681,this.match(e.LEGACY));break;case e.CREATE:this.enterOuterAlt(i,12),this.state=3684,this.match(e.CREATE),this.state=3686,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(106===t||234===t||286===t)&&(this.state=3685,t=this.tokenStream.LA(1),106===t||234===t||286===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this));break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}permission_name(){let t=new Fc(this.context,this.state);this.enterRule(t,598,e.RULE_permission_name);try{switch(this.state=3692,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ALTER:case e.CONNECT:case e.CREATE:case e.DESCRIBE:case e.DROP:case e.ERASE:case e.FULL:case e.GRANT:case e.INSERT:case e.LIST:case e.MANAGE:case e.MODIFY:case e.REMOVE:case e.SELECT:case e.UPDATE:case e.USE:this.enterOuterAlt(t,1),this.state=3690,this.permission_id();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=3691,this.match(e.STRING_VALUE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}permission_name_target(){let t,i=new Uc(this.context,this.state);this.enterRule(i,600,e.RULE_permission_name_target);try{let s;switch(this.state=3709,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ALTER:case e.CONNECT:case e.CREATE:case e.DESCRIBE:case e.DROP:case e.ERASE:case e.FULL:case e.GRANT:case e.INSERT:case e.LIST:case e.MANAGE:case e.MODIFY:case e.REMOVE:case e.SELECT:case e.UPDATE:case e.USE:case e.STRING_VALUE:for(this.enterOuterAlt(i,1),this.state=3694,this.permission_name(),this.state=3699,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,376,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=3695,this.match(e.COMMA),this.state=3696,this.permission_name()),this.state=3701,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,376,this.context);this.state=3703,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=3702,this.match(e.COMMA));break;case e.ALL:this.enterOuterAlt(i,2),this.state=3705,this.match(e.ALL),this.state=3707,this.errorHandler.sync(this),t=this.tokenStream.LA(1),231===t&&(this.state=3706,this.match(e.PRIVILEGES));break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}create_resource_pool_stmt(){let t=new Hc(this.context,this.state);this.enterRule(t,602,e.RULE_create_resource_pool_stmt);try{this.enterOuterAlt(t,1),this.state=3711,this.match(e.CREATE),this.state=3712,this.match(e.RESOURCE),this.state=3713,this.match(e.POOL),this.state=3714,this.object_ref(),this.state=3715,this.with_table_settings()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_resource_pool_stmt(){let t,i=new Bc(this.context,this.state);this.enterRule(i,604,e.RULE_alter_resource_pool_stmt);try{for(this.enterOuterAlt(i,1),this.state=3717,this.match(e.ALTER),this.state=3718,this.match(e.RESOURCE),this.state=3719,this.match(e.POOL),this.state=3720,this.object_ref(),this.state=3721,this.alter_resource_pool_action(),this.state=3726,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3722,this.match(e.COMMA),this.state=3723,this.alter_resource_pool_action(),this.state=3728,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_resource_pool_action(){let t=new Wc(this.context,this.state);this.enterRule(t,606,e.RULE_alter_resource_pool_action);try{switch(this.state=3731,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.SET:this.enterOuterAlt(t,1),this.state=3729,this.alter_table_set_table_setting_compat();break;case e.RESET:this.enterOuterAlt(t,2),this.state=3730,this.alter_table_reset_table_setting();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}drop_resource_pool_stmt(){let t=new Vc(this.context,this.state);this.enterRule(t,608,e.RULE_drop_resource_pool_stmt);try{this.enterOuterAlt(t,1),this.state=3733,this.match(e.DROP),this.state=3734,this.match(e.RESOURCE),this.state=3735,this.match(e.POOL),this.state=3736,this.object_ref()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}create_resource_pool_classifier_stmt(){let t=new zc(this.context,this.state);this.enterRule(t,610,e.RULE_create_resource_pool_classifier_stmt);try{this.enterOuterAlt(t,1),this.state=3738,this.match(e.CREATE),this.state=3739,this.match(e.RESOURCE),this.state=3740,this.match(e.POOL),this.state=3741,this.match(e.CLASSIFIER),this.state=3742,this.object_ref(),this.state=3743,this.with_table_settings()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_resource_pool_classifier_stmt(){let t,i=new Gc(this.context,this.state);this.enterRule(i,612,e.RULE_alter_resource_pool_classifier_stmt);try{for(this.enterOuterAlt(i,1),this.state=3745,this.match(e.ALTER),this.state=3746,this.match(e.RESOURCE),this.state=3747,this.match(e.POOL),this.state=3748,this.match(e.CLASSIFIER),this.state=3749,this.object_ref(),this.state=3750,this.alter_resource_pool_classifier_action(),this.state=3755,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3751,this.match(e.COMMA),this.state=3752,this.alter_resource_pool_classifier_action(),this.state=3757,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_resource_pool_classifier_action(){let t=new jc(this.context,this.state);this.enterRule(t,614,e.RULE_alter_resource_pool_classifier_action);try{switch(this.state=3760,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.SET:this.enterOuterAlt(t,1),this.state=3758,this.alter_table_set_table_setting_compat();break;case e.RESET:this.enterOuterAlt(t,2),this.state=3759,this.alter_table_reset_table_setting();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}drop_resource_pool_classifier_stmt(){let t=new Kc(this.context,this.state);this.enterRule(t,616,e.RULE_drop_resource_pool_classifier_stmt);try{this.enterOuterAlt(t,1),this.state=3762,this.match(e.DROP),this.state=3763,this.match(e.RESOURCE),this.state=3764,this.match(e.POOL),this.state=3765,this.match(e.CLASSIFIER),this.state=3766,this.object_ref()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}create_replication_stmt(){let t,i=new Yc(this.context,this.state);this.enterRule(i,618,e.RULE_create_replication_stmt);try{for(this.enterOuterAlt(i,1),this.state=3768,this.match(e.CREATE),this.state=3769,this.match(e.ASYNC),this.state=3770,this.match(e.REPLICATION),this.state=3771,this.object_ref(),this.state=3772,this.match(e.FOR),this.state=3773,this.replication_target(),this.state=3778,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3774,this.match(e.COMMA),this.state=3775,this.replication_target(),this.state=3780,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3781,this.match(e.WITH),this.state=3782,this.match(e.LPAREN),this.state=3783,this.replication_settings(),this.state=3784,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}replication_target(){let t=new qc(this.context,this.state);this.enterRule(t,620,e.RULE_replication_target);try{this.enterOuterAlt(t,1),this.state=3786,this.object_ref(),this.state=3787,this.replication_name()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}replication_settings(){let t,i=new $c(this.context,this.state);this.enterRule(i,622,e.RULE_replication_settings);try{for(this.enterOuterAlt(i,1),this.state=3789,this.replication_settings_entry(),this.state=3794,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3790,this.match(e.COMMA),this.state=3791,this.replication_settings_entry(),this.state=3796,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}replication_settings_entry(){let t=new Qc(this.context,this.state);this.enterRule(t,624,e.RULE_replication_settings_entry);try{this.enterOuterAlt(t,1),this.state=3797,this.an_id(),this.state=3798,this.match(e.EQUALS),this.state=3799,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_replication_stmt(){let t,i=new Xc(this.context,this.state);this.enterRule(i,626,e.RULE_alter_replication_stmt);try{for(this.enterOuterAlt(i,1),this.state=3801,this.match(e.ALTER),this.state=3802,this.match(e.ASYNC),this.state=3803,this.match(e.REPLICATION),this.state=3804,this.object_ref(),this.state=3805,this.alter_replication_action(),this.state=3810,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3806,this.match(e.COMMA),this.state=3807,this.alter_replication_action(),this.state=3812,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_replication_action(){let t=new Zc(this.context,this.state);this.enterRule(t,628,e.RULE_alter_replication_action);try{this.enterOuterAlt(t,1),this.state=3813,this.alter_replication_set_setting()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_replication_set_setting(){let t=new Jc(this.context,this.state);this.enterRule(t,630,e.RULE_alter_replication_set_setting);try{this.enterOuterAlt(t,1),this.state=3815,this.match(e.SET),this.state=3816,this.match(e.LPAREN),this.state=3817,this.replication_settings(),this.state=3818,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}drop_replication_stmt(){let t,i=new el(this.context,this.state);this.enterRule(i,632,e.RULE_drop_replication_stmt);try{this.enterOuterAlt(i,1),this.state=3820,this.match(e.DROP),this.state=3821,this.match(e.ASYNC),this.state=3822,this.match(e.REPLICATION),this.state=3823,this.object_ref(),this.state=3825,this.errorHandler.sync(this),t=this.tokenStream.LA(1),69===t&&(this.state=3824,this.match(e.CASCADE))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}lambda_or_parameter(){let t=new tl(this.context,this.state);this.enterRule(t,634,e.RULE_lambda_or_parameter);try{switch(this.state=3829,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.LPAREN:this.enterOuterAlt(t,1),this.state=3827,this.lambda();break;case e.DOLLAR:this.enterOuterAlt(t,2),this.state=3828,this.bind_parameter();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}create_transfer_stmt(){let t,i=new il(this.context,this.state);this.enterRule(i,636,e.RULE_create_transfer_stmt);try{this.enterOuterAlt(i,1),this.state=3831,this.match(e.CREATE),this.state=3832,this.match(e.TRANSFER),this.state=3833,this.object_ref(),this.state=3834,this.match(e.FROM),this.state=3835,this.object_ref(),this.state=3836,this.match(e.TO),this.state=3837,this.object_ref(),this.state=3840,this.errorHandler.sync(this),t=this.tokenStream.LA(1),313===t&&(this.state=3838,this.match(e.USING),this.state=3839,this.lambda_or_parameter()),this.state=3842,this.match(e.WITH),this.state=3843,this.match(e.LPAREN),this.state=3844,this.transfer_settings(),this.state=3845,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}transfer_settings(){let t,i=new sl(this.context,this.state);this.enterRule(i,638,e.RULE_transfer_settings);try{for(this.enterOuterAlt(i,1),this.state=3847,this.transfer_settings_entry(),this.state=3852,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3848,this.match(e.COMMA),this.state=3849,this.transfer_settings_entry(),this.state=3854,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}transfer_settings_entry(){let t=new nl(this.context,this.state);this.enterRule(t,640,e.RULE_transfer_settings_entry);try{this.enterOuterAlt(t,1),this.state=3855,this.an_id(),this.state=3856,this.match(e.EQUALS),this.state=3857,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_transfer_stmt(){let t,i=new rl(this.context,this.state);this.enterRule(i,642,e.RULE_alter_transfer_stmt);try{for(this.enterOuterAlt(i,1),this.state=3859,this.match(e.ALTER),this.state=3860,this.match(e.TRANSFER),this.state=3861,this.object_ref(),this.state=3862,this.alter_transfer_action(),this.state=3867,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3863,this.match(e.COMMA),this.state=3864,this.alter_transfer_action(),this.state=3869,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_transfer_action(){let t=new ol(this.context,this.state);this.enterRule(t,644,e.RULE_alter_transfer_action);try{switch(this.state=3872,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,392,this.context)){case 1:this.enterOuterAlt(t,1),this.state=3870,this.alter_transfer_set_setting();break;case 2:this.enterOuterAlt(t,2),this.state=3871,this.alter_transfer_set_using()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_transfer_set_setting(){let t=new al(this.context,this.state);this.enterRule(t,646,e.RULE_alter_transfer_set_setting);try{this.enterOuterAlt(t,1),this.state=3874,this.match(e.SET),this.state=3875,this.match(e.LPAREN),this.state=3876,this.transfer_settings(),this.state=3877,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_transfer_set_using(){let t=new cl(this.context,this.state);this.enterRule(t,648,e.RULE_alter_transfer_set_using);try{this.enterOuterAlt(t,1),this.state=3879,this.match(e.SET),this.state=3880,this.match(e.USING),this.state=3881,this.lambda_or_parameter()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}drop_transfer_stmt(){let t,i=new ll(this.context,this.state);this.enterRule(i,650,e.RULE_drop_transfer_stmt);try{this.enterOuterAlt(i,1),this.state=3883,this.match(e.DROP),this.state=3884,this.match(e.TRANSFER),this.state=3885,this.object_ref(),this.state=3887,this.errorHandler.sync(this),t=this.tokenStream.LA(1),69===t&&(this.state=3886,this.match(e.CASCADE))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}action_or_subquery_args(){let t,i=new hl(this.context,this.state);this.enterRule(i,652,e.RULE_action_or_subquery_args);try{for(this.enterOuterAlt(i,1),this.state=3889,this.opt_bind_parameter(),this.state=3894,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3890,this.match(e.COMMA),this.state=3891,this.opt_bind_parameter(),this.state=3896,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}define_action_or_subquery_stmt(){let t,i=new dl(this.context,this.state);this.enterRule(i,654,e.RULE_define_action_or_subquery_stmt);try{this.enterOuterAlt(i,1),this.state=3897,this.match(e.DEFINE),this.state=3898,t=this.tokenStream.LA(1),39===t||280===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3899,this.bind_parameter(),this.state=3900,this.match(e.LPAREN),this.state=3902,this.errorHandler.sync(this),t=this.tokenStream.LA(1),30===t&&(this.state=3901,this.action_or_subquery_args()),this.state=3904,this.match(e.RPAREN),this.state=3905,this.match(e.AS),this.state=3906,this.define_action_or_subquery_body(),this.state=3907,this.match(e.END),this.state=3908,this.match(e.DEFINE)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}define_action_or_subquery_body(){let t,i=new ul(this.context,this.state);this.enterRule(i,656,e.RULE_define_action_or_subquery_body);try{let s;for(this.enterOuterAlt(i,1),this.state=3913,this.errorHandler.sync(this),t=this.tokenStream.LA(1);22===t;)this.state=3910,this.match(e.SEMICOLON),this.state=3915,this.errorHandler.sync(this),t=this.tokenStream.LA(1);if(this.state=3934,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t||30===t||!(t-43&-32)&&1<<t-43&196611||!(t-78&-32)&&1<<t-78&1086587137||!(t-110&-32)&&1<<t-110&2684882947||!(t-146&-32)&&1<<t-146&2099329||!(t-217&-32)&&1<<t-217&269517825||!(t-251&-32)&&1<<t-251&262721||!(t-309&-32)&&1<<t-309&71){for(this.state=3916,this.sql_stmt_core(),this.state=3925,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,398,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;){if(1===s){this.state=3918,this.errorHandler.sync(this),t=this.tokenStream.LA(1);do{this.state=3917,this.match(e.SEMICOLON),this.state=3920,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}while(22===t);this.state=3922,this.sql_stmt_core()}this.state=3927,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,398,this.context)}for(this.state=3931,this.errorHandler.sync(this),t=this.tokenStream.LA(1);22===t;)this.state=3928,this.match(e.SEMICOLON),this.state=3933,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}if_stmt(){let t,i=new gl(this.context,this.state);this.enterRule(i,658,e.RULE_if_stmt);try{this.enterOuterAlt(i,1),this.state=3937,this.errorHandler.sync(this),t=this.tokenStream.LA(1),122===t&&(this.state=3936,this.match(e.EVALUATE)),this.state=3939,this.match(e.IF),this.state=3940,this.expr(),this.state=3941,this.do_stmt(),this.state=3944,this.errorHandler.sync(this),t=this.tokenStream.LA(1),113===t&&(this.state=3942,this.match(e.ELSE),this.state=3943,this.do_stmt())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}for_stmt(){let t,i=new pl(this.context,this.state);this.enterRule(i,660,e.RULE_for_stmt);try{this.enterOuterAlt(i,1),this.state=3947,this.errorHandler.sync(this),t=this.tokenStream.LA(1),122===t&&(this.state=3946,this.match(e.EVALUATE)),this.state=3950,this.errorHandler.sync(this),t=this.tokenStream.LA(1),217===t&&(this.state=3949,this.match(e.PARALLEL)),this.state=3952,this.match(e.FOR),this.state=3953,this.bind_parameter(),this.state=3954,this.match(e.IN),this.state=3955,this.expr(),this.state=3956,this.do_stmt(),this.state=3959,this.errorHandler.sync(this),t=this.tokenStream.LA(1),113===t&&(this.state=3957,this.match(e.ELSE),this.state=3958,this.do_stmt())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}table_ref(){let t,i=new ml(this.context,this.state);this.enterRule(i,662,e.RULE_table_ref);try{let s;if(this.enterOuterAlt(i,1),1===(this.state=3964,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,406,this.context)))this.state=3961,this.cluster_expr(),this.state=3962,this.match(e.DOT);switch(this.state=3967,this.errorHandler.sync(this),t=this.tokenStream.LA(1),29===t&&(this.state=3966,this.match(e.COMMAT)),this.state=3999,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,414,this.context)){case 1:this.state=3969,this.table_key();break;case 2:if(this.state=3970,this.an_id_expr(),this.state=3971,this.match(e.LPAREN),this.state=3983,this.errorHandler.sync(this),t=this.tokenStream.LA(1),!(t-14&-32)&&1<<t-14&4286810141||!(t-46&-32)&&1<<t-46&4294963199||!(t-78&-32)&&1<<t-78&4294967295||!(t-110&-32)&&1<<t-110&4294967295||!(t-142&-32)&&1<<t-142&4294967295||!(t-174&-32)&&1<<t-174&4294967295||!(t-206&-32)&&1<<t-206&4294967295||!(t-238&-32)&&1<<t-238&4294967231||!(t-270&-32)&&1<<t-270&4294967295||!(t-302&-32)&&1<<t-302&2147483647){for(this.state=3972,this.table_arg(),this.state=3977,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,408,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=3973,this.match(e.COMMA),this.state=3974,this.table_arg()),this.state=3979,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,408,this.context);this.state=3981,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=3980,this.match(e.COMMA))}this.state=3985,this.match(e.RPAREN);break;case 3:this.state=3987,this.bind_parameter(),this.state=3993,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=3988,this.match(e.LPAREN),this.state=3990,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(!(t-14&-32)&&1<<t-14&4286777373||!(t-46&-32)&&1<<t-46&4294963199||!(t-78&-32)&&1<<t-78&4294967295||!(t-110&-32)&&1<<t-110&4294967295||!(t-142&-32)&&1<<t-142&4294967295||!(t-174&-32)&&1<<t-174&4294967295||!(t-206&-32)&&1<<t-206&4294967295||!(t-238&-32)&&1<<t-238&4294967231||!(t-270&-32)&&1<<t-270&4294967295||!(t-302&-32)&&1<<t-302&2147483647)&&(this.state=3989,this.expr_list()),this.state=3992,this.match(e.RPAREN)),this.state=3997,this.errorHandler.sync(this),t=this.tokenStream.LA(1),317===t&&(this.state=3995,this.match(e.VIEW),this.state=3996,this.view_name())}this.state=4002,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=4001,this.table_hints())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}table_key(){let t,i=new fl(this.context,this.state);this.enterRule(i,664,e.RULE_table_key);try{this.enterOuterAlt(i,1),this.state=4004,this.id_table_or_type(),this.state=4007,this.errorHandler.sync(this),t=this.tokenStream.LA(1),317===t&&(this.state=4005,this.match(e.VIEW),this.state=4006,this.view_name())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}table_arg(){let t,i=new _l(this.context,this.state);this.enterRule(i,666,e.RULE_table_arg);try{this.enterOuterAlt(i,1),this.state=4010,this.errorHandler.sync(this),t=this.tokenStream.LA(1),29===t&&(this.state=4009,this.match(e.COMMAT)),this.state=4012,this.named_expr(),this.state=4015,this.errorHandler.sync(this),t=this.tokenStream.LA(1),317===t&&(this.state=4013,this.match(e.VIEW),this.state=4014,this.view_name())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}table_hints(){let t,i=new vl(this.context,this.state);this.enterRule(i,668,e.RULE_table_hints);try{switch(this.enterOuterAlt(i,1),this.state=4017,this.match(e.WITH),this.state=4030,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.state=4018,this.table_hint();break;case e.LPAREN:for(this.state=4019,this.match(e.LPAREN),this.state=4020,this.table_hint(),this.state=4025,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=4021,this.match(e.COMMA),this.state=4022,this.table_hint(),this.state=4027,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=4028,this.match(e.RPAREN);break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}table_hint(){let t,i=new Cl(this.context,this.state);this.enterRule(i,670,e.RULE_table_hint);try{let s;switch(this.state=4077,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,430,this.context)){case 1:if(this.enterOuterAlt(i,1),this.state=4032,this.an_id_hint(),this.state=4051,this.errorHandler.sync(this),t=this.tokenStream.LA(1),1===t)switch(this.state=4033,this.match(e.EQUALS),this.state=4049,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DOLLAR:case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.state=4034,this.type_name_tag();break;case e.LPAREN:for(this.state=4035,this.match(e.LPAREN),this.state=4036,this.type_name_tag(),this.state=4041,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,421,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=4037,this.match(e.COMMA),this.state=4038,this.type_name_tag()),this.state=4043,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,421,this.context);this.state=4045,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=4044,this.match(e.COMMA)),this.state=4047,this.match(e.RPAREN);break;default:throw new lt(this)}break;case 2:this.enterOuterAlt(i,2),this.state=4053,t=this.tokenStream.LA(1),77===t||266===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=4055,this.errorHandler.sync(this),t=this.tokenStream.LA(1),1===t&&(this.state=4054,this.match(e.EQUALS)),this.state=4057,this.type_name_or_bind();break;case 3:if(this.enterOuterAlt(i,3),this.state=4058,this.match(e.SCHEMA),this.state=4060,this.errorHandler.sync(this),t=this.tokenStream.LA(1),1===t&&(this.state=4059,this.match(e.EQUALS)),this.state=4062,this.match(e.LPAREN),this.state=4071,this.errorHandler.sync(this),t=this.tokenStream.LA(1),!(t-30&-32)&&1<<t-30&4026531585||!(t-62&-32)&&1<<t-62&4294967295||!(t-94&-32)&&1<<t-94&4294967295||!(t-126&-32)&&1<<t-126&4294967231||!(t-158&-32)&&1<<t-158&4294967295||!(t-190&-32)&&1<<t-190&4294967295||!(t-222&-32)&&1<<t-222&4290772991||!(t-254&-32)&&1<<t-254&4294967295||!(t-286&-32)&&1<<t-286&4294950911||!(t-318&-32)&&1<<t-318&2047)for(this.state=4063,this.struct_arg_positional(),this.state=4068,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,427,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=4064,this.match(e.COMMA),this.state=4065,this.struct_arg_positional()),this.state=4070,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,427,this.context);this.state=4074,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=4073,this.match(e.COMMA)),this.state=4076,this.match(e.RPAREN)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}object_ref(){let t=new El(this.context,this.state);this.enterRule(t,672,e.RULE_object_ref);try{if(this.enterOuterAlt(t,1),1===(this.state=4082,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,431,this.context)))this.state=4079,this.cluster_expr(),this.state=4080,this.match(e.DOT);this.state=4084,this.id_or_at()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}simple_table_ref_core(){let t,i=new bl(this.context,this.state);this.enterRule(i,674,e.RULE_simple_table_ref_core);try{switch(this.state=4091,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,433,this.context)){case 1:this.enterOuterAlt(i,1),this.state=4086,this.object_ref();break;case 2:this.enterOuterAlt(i,2),this.state=4088,this.errorHandler.sync(this),t=this.tokenStream.LA(1),29===t&&(this.state=4087,this.match(e.COMMAT)),this.state=4090,this.bind_parameter()}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}simple_table_ref(){let t,i=new Sl(this.context,this.state);this.enterRule(i,676,e.RULE_simple_table_ref);try{this.enterOuterAlt(i,1),this.state=4093,this.simple_table_ref_core(),this.state=4095,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=4094,this.table_hints())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}into_simple_table_ref(){let t,i=new yl(this.context,this.state);this.enterRule(i,678,e.RULE_into_simple_table_ref);try{this.enterOuterAlt(i,1),this.state=4097,this.simple_table_ref(),this.state=4101,this.errorHandler.sync(this),t=this.tokenStream.LA(1),119===t&&(this.state=4098,this.match(e.ERASE),this.state=4099,this.match(e.BY),this.state=4100,this.pure_column_list())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}delete_stmt(){let t,i=new wl(this.context,this.state);this.enterRule(i,680,e.RULE_delete_stmt);try{switch(this.enterOuterAlt(i,1),this.state=4104,this.errorHandler.sync(this),t=this.tokenStream.LA(1),60===t&&(this.state=4103,this.match(e.BATCH)),this.state=4106,this.match(e.DELETE),this.state=4107,this.match(e.FROM),this.state=4108,this.simple_table_ref(),this.state=4112,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.WHERE:this.state=4109,this.where_expr();break;case e.ON:this.state=4110,this.match(e.ON),this.state=4111,this.into_values_source();case e.EOF:case e.SEMICOLON:case e.END:case e.RETURNING:}this.state=4115,this.errorHandler.sync(this),t=this.tokenStream.LA(1),255===t&&(this.state=4114,this.returning_columns_list())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}update_stmt(){let t,i=new Rl(this.context,this.state);this.enterRule(i,682,e.RULE_update_stmt);try{switch(this.enterOuterAlt(i,1),this.state=4118,this.errorHandler.sync(this),t=this.tokenStream.LA(1),60===t&&(this.state=4117,this.match(e.BATCH)),this.state=4120,this.match(e.UPDATE),this.state=4121,this.simple_table_ref(),this.state=4129,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.SET:this.state=4122,this.match(e.SET),this.state=4123,this.set_clause_choice(),this.state=4125,this.errorHandler.sync(this),t=this.tokenStream.LA(1),320===t&&(this.state=4124,this.where_expr());break;case e.ON:this.state=4127,this.match(e.ON),this.state=4128,this.into_values_source();break;default:throw new lt(this)}this.state=4132,this.errorHandler.sync(this),t=this.tokenStream.LA(1),255===t&&(this.state=4131,this.returning_columns_list())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}set_clause_choice(){let t=new Ll(this.context,this.state);this.enterRule(t,684,e.RULE_set_clause_choice);try{switch(this.state=4136,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4134,this.set_clause_list();break;case e.LPAREN:this.enterOuterAlt(t,2),this.state=4135,this.multiple_column_assignment();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}set_clause_list(){let t,i=new Tl(this.context,this.state);this.enterRule(i,686,e.RULE_set_clause_list);try{for(this.enterOuterAlt(i,1),this.state=4138,this.set_clause(),this.state=4143,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=4139,this.match(e.COMMA),this.state=4140,this.set_clause(),this.state=4145,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}set_clause(){let t=new xl(this.context,this.state);this.enterRule(t,688,e.RULE_set_clause);try{this.enterOuterAlt(t,1),this.state=4146,this.set_target(),this.state=4147,this.match(e.EQUALS),this.state=4148,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}set_target(){let t=new kl(this.context,this.state);this.enterRule(t,690,e.RULE_set_target);try{this.enterOuterAlt(t,1),this.state=4150,this.column_name()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}multiple_column_assignment(){let t=new Al(this.context,this.state);this.enterRule(t,692,e.RULE_multiple_column_assignment);try{this.enterOuterAlt(t,1),this.state=4152,this.set_target_list(),this.state=4153,this.match(e.EQUALS),this.state=4154,this.match(e.LPAREN),this.state=4155,this.simple_values_source(),this.state=4156,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}set_target_list(){let t,i=new Nl(this.context,this.state);this.enterRule(i,694,e.RULE_set_target_list);try{for(this.enterOuterAlt(i,1),this.state=4158,this.match(e.LPAREN),this.state=4159,this.set_target(),this.state=4164,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=4160,this.match(e.COMMA),this.state=4161,this.set_target(),this.state=4166,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=4167,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}create_topic_stmt(){let t,i=new Il(this.context,this.state);this.enterRule(i,696,e.RULE_create_topic_stmt);try{if(this.enterOuterAlt(i,1),1===(this.state=4169,this.match(e.CREATE),this.state=4170,this.match(e.TOPIC),this.state=4174,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,446,this.context)))this.state=4171,this.match(e.IF),this.state=4172,this.match(e.NOT),this.state=4173,this.match(e.EXISTS);this.state=4176,this.topic_ref(),this.state=4178,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=4177,this.create_topic_entries()),this.state=4181,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=4180,this.with_topic_settings())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}create_topic_entries(){let t,i=new Ol(this.context,this.state);this.enterRule(i,698,e.RULE_create_topic_entries);try{for(this.enterOuterAlt(i,1),this.state=4183,this.match(e.LPAREN),this.state=4184,this.create_topic_entry(),this.state=4189,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=4185,this.match(e.COMMA),this.state=4186,this.create_topic_entry(),this.state=4191,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=4192,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}create_topic_entry(){let t=new Dl(this.context,this.state);this.enterRule(t,700,e.RULE_create_topic_entry);try{this.enterOuterAlt(t,1),this.state=4194,this.topic_create_consumer_entry()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}with_topic_settings(){let t=new Ml(this.context,this.state);this.enterRule(t,702,e.RULE_with_topic_settings);try{this.enterOuterAlt(t,1),this.state=4196,this.match(e.WITH),this.state=4197,this.match(e.LPAREN),this.state=4198,this.topic_settings(),this.state=4199,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_topic_stmt(){let t,i=new Pl(this.context,this.state);this.enterRule(i,704,e.RULE_alter_topic_stmt);try{if(this.enterOuterAlt(i,1),1===(this.state=4201,this.match(e.ALTER),this.state=4202,this.match(e.TOPIC),this.state=4205,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,450,this.context)))this.state=4203,this.match(e.IF),this.state=4204,this.match(e.EXISTS);for(this.state=4207,this.topic_ref(),this.state=4208,this.alter_topic_action(),this.state=4213,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=4209,this.match(e.COMMA),this.state=4210,this.alter_topic_action(),this.state=4215,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_topic_action(){let t=new Fl(this.context,this.state);this.enterRule(t,706,e.RULE_alter_topic_action);try{switch(this.state=4221,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ADD:this.enterOuterAlt(t,1),this.state=4216,this.alter_topic_add_consumer();break;case e.ALTER:this.enterOuterAlt(t,2),this.state=4217,this.alter_topic_alter_consumer();break;case e.DROP:this.enterOuterAlt(t,3),this.state=4218,this.alter_topic_drop_consumer();break;case e.SET:this.enterOuterAlt(t,4),this.state=4219,this.alter_topic_set_settings();break;case e.RESET:this.enterOuterAlt(t,5),this.state=4220,this.alter_topic_reset_settings();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_topic_add_consumer(){let t=new Ul(this.context,this.state);this.enterRule(t,708,e.RULE_alter_topic_add_consumer);try{this.enterOuterAlt(t,1),this.state=4223,this.match(e.ADD),this.state=4224,this.topic_create_consumer_entry()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}topic_create_consumer_entry(){let t,i=new Hl(this.context,this.state);this.enterRule(i,710,e.RULE_topic_create_consumer_entry);try{this.enterOuterAlt(i,1),this.state=4226,this.match(e.CONSUMER),this.state=4227,this.an_id(),this.state=4229,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=4228,this.topic_consumer_with_settings())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_topic_alter_consumer(){let t=new Bl(this.context,this.state);this.enterRule(t,712,e.RULE_alter_topic_alter_consumer);try{this.enterOuterAlt(t,1),this.state=4231,this.match(e.ALTER),this.state=4232,this.match(e.CONSUMER),this.state=4233,this.topic_consumer_ref(),this.state=4234,this.alter_topic_alter_consumer_entry()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_topic_alter_consumer_entry(){let t=new Wl(this.context,this.state);this.enterRule(t,714,e.RULE_alter_topic_alter_consumer_entry);try{switch(this.state=4238,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.SET:this.enterOuterAlt(t,1),this.state=4236,this.topic_alter_consumer_set();break;case e.RESET:this.enterOuterAlt(t,2),this.state=4237,this.topic_alter_consumer_reset();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_topic_drop_consumer(){let t=new Vl(this.context,this.state);this.enterRule(t,716,e.RULE_alter_topic_drop_consumer);try{this.enterOuterAlt(t,1),this.state=4240,this.match(e.DROP),this.state=4241,this.match(e.CONSUMER),this.state=4242,this.topic_consumer_ref()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}topic_alter_consumer_set(){let t=new zl(this.context,this.state);this.enterRule(t,718,e.RULE_topic_alter_consumer_set);try{this.enterOuterAlt(t,1),this.state=4244,this.match(e.SET),this.state=4245,this.match(e.LPAREN),this.state=4246,this.topic_consumer_settings(),this.state=4247,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}topic_alter_consumer_reset(){let t,i=new Gl(this.context,this.state);this.enterRule(i,720,e.RULE_topic_alter_consumer_reset);try{for(this.enterOuterAlt(i,1),this.state=4249,this.match(e.RESET),this.state=4250,this.match(e.LPAREN),this.state=4251,this.an_id(),this.state=4256,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=4252,this.match(e.COMMA),this.state=4253,this.an_id(),this.state=4258,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=4259,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_topic_set_settings(){let t=new jl(this.context,this.state);this.enterRule(t,722,e.RULE_alter_topic_set_settings);try{this.enterOuterAlt(t,1),this.state=4261,this.match(e.SET),this.state=4262,this.match(e.LPAREN),this.state=4263,this.topic_settings(),this.state=4264,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_topic_reset_settings(){let t,i=new Kl(this.context,this.state);this.enterRule(i,724,e.RULE_alter_topic_reset_settings);try{for(this.enterOuterAlt(i,1),this.state=4266,this.match(e.RESET),this.state=4267,this.match(e.LPAREN),this.state=4268,this.an_id(),this.state=4273,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=4269,this.match(e.COMMA),this.state=4270,this.an_id_pure(),this.state=4275,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=4276,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}drop_topic_stmt(){let t=new Yl(this.context,this.state);this.enterRule(t,726,e.RULE_drop_topic_stmt);try{if(this.enterOuterAlt(t,1),1===(this.state=4278,this.match(e.DROP),this.state=4279,this.match(e.TOPIC),this.state=4282,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,457,this.context)))this.state=4280,this.match(e.IF),this.state=4281,this.match(e.EXISTS);this.state=4284,this.topic_ref()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}topic_settings(){let t,i=new ql(this.context,this.state);this.enterRule(i,728,e.RULE_topic_settings);try{for(this.enterOuterAlt(i,1),this.state=4286,this.topic_settings_entry(),this.state=4291,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=4287,this.match(e.COMMA),this.state=4288,this.topic_settings_entry(),this.state=4293,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}topic_settings_entry(){let t=new $l(this.context,this.state);this.enterRule(t,730,e.RULE_topic_settings_entry);try{this.enterOuterAlt(t,1),this.state=4294,this.an_id(),this.state=4295,this.match(e.EQUALS),this.state=4296,this.topic_setting_value()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}topic_setting_value(){let t=new Ql(this.context,this.state);this.enterRule(t,732,e.RULE_topic_setting_value);try{this.enterOuterAlt(t,1),this.state=4298,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}topic_consumer_with_settings(){let t=new Xl(this.context,this.state);this.enterRule(t,734,e.RULE_topic_consumer_with_settings);try{this.enterOuterAlt(t,1),this.state=4300,this.match(e.WITH),this.state=4301,this.match(e.LPAREN),this.state=4302,this.topic_consumer_settings(),this.state=4303,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}topic_consumer_settings(){let t,i=new Zl(this.context,this.state);this.enterRule(i,736,e.RULE_topic_consumer_settings);try{for(this.enterOuterAlt(i,1),this.state=4305,this.topic_consumer_settings_entry(),this.state=4310,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=4306,this.match(e.COMMA),this.state=4307,this.topic_consumer_settings_entry(),this.state=4312,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}topic_consumer_settings_entry(){let t=new Jl(this.context,this.state);this.enterRule(t,738,e.RULE_topic_consumer_settings_entry);try{this.enterOuterAlt(t,1),this.state=4313,this.an_id(),this.state=4314,this.match(e.EQUALS),this.state=4315,this.topic_consumer_setting_value()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}topic_consumer_setting_value(){let t=new eh(this.context,this.state);this.enterRule(t,740,e.RULE_topic_consumer_setting_value);try{this.enterOuterAlt(t,1),this.state=4317,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}topic_ref(){let t=new th(this.context,this.state);this.enterRule(t,742,e.RULE_topic_ref);try{if(this.enterOuterAlt(t,1),1===(this.state=4322,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,460,this.context)))this.state=4319,this.cluster_expr(),this.state=4320,this.match(e.DOT);this.state=4324,this.an_id()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}topic_consumer_ref(){let t=new ih(this.context,this.state);this.enterRule(t,744,e.RULE_topic_consumer_ref);try{this.enterOuterAlt(t,1),this.state=4326,this.an_id_pure()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}null_treatment(){let t=new sh(this.context,this.state);this.enterRule(t,746,e.RULE_null_treatment);try{switch(this.state=4332,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.RESPECT:this.enterOuterAlt(t,1),this.state=4328,this.match(e.RESPECT),this.state=4329,this.match(e.NULLS);break;case e.IGNORE:this.enterOuterAlt(t,2),this.state=4330,this.match(e.IGNORE),this.state=4331,this.match(e.NULLS);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}filter_clause(){let t=new nh(this.context,this.state);this.enterRule(t,748,e.RULE_filter_clause);try{this.enterOuterAlt(t,1),this.state=4334,this.match(e.FILTER),this.state=4335,this.match(e.LPAREN),this.state=4336,this.where_expr(),this.state=4337,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}window_name_or_specification(){let t=new rh(this.context,this.state);this.enterRule(t,750,e.RULE_window_name_or_specification);try{switch(this.state=4341,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4339,this.window_name();break;case e.LPAREN:this.enterOuterAlt(t,2),this.state=4340,this.window_specification();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}window_name(){let t=new oh(this.context,this.state);this.enterRule(t,752,e.RULE_window_name);try{this.enterOuterAlt(t,1),this.state=4343,this.an_id_window()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}window_clause(){let t=new ah(this.context,this.state);this.enterRule(t,754,e.RULE_window_clause);try{this.enterOuterAlt(t,1),this.state=4345,this.match(e.WINDOW),this.state=4346,this.window_definition_list()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}window_definition_list(){let t,i=new ch(this.context,this.state);this.enterRule(i,756,e.RULE_window_definition_list);try{for(this.enterOuterAlt(i,1),this.state=4348,this.window_definition(),this.state=4353,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=4349,this.match(e.COMMA),this.state=4350,this.window_definition(),this.state=4355,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}window_definition(){let t=new lh(this.context,this.state);this.enterRule(t,758,e.RULE_window_definition);try{this.enterOuterAlt(t,1),this.state=4356,this.new_window_name(),this.state=4357,this.match(e.AS),this.state=4358,this.window_specification()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}new_window_name(){let t=new hh(this.context,this.state);this.enterRule(t,760,e.RULE_new_window_name);try{this.enterOuterAlt(t,1),this.state=4360,this.window_name()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}window_specification(){let t=new dh(this.context,this.state);this.enterRule(t,762,e.RULE_window_specification);try{this.enterOuterAlt(t,1),this.state=4362,this.match(e.LPAREN),this.state=4363,this.window_specification_details(),this.state=4364,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}window_specification_details(){let t,i=new uh(this.context,this.state);this.enterRule(i,764,e.RULE_window_specification_details);try{if(this.enterOuterAlt(i,1),1===(this.state=4367,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,464,this.context)))this.state=4366,this.existing_window_name();this.state=4370,this.errorHandler.sync(this),t=this.tokenStream.LA(1),218===t&&(this.state=4369,this.window_partition_clause()),this.state=4373,this.errorHandler.sync(this),t=this.tokenStream.LA(1),213===t&&(this.state=4372,this.window_order_clause()),this.state=4376,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(149===t||236===t||263===t)&&(this.state=4375,this.window_frame_clause())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}existing_window_name(){let t=new gh(this.context,this.state);this.enterRule(t,766,e.RULE_existing_window_name);try{this.enterOuterAlt(t,1),this.state=4378,this.window_name()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}window_partition_clause(){let t,i=new ph(this.context,this.state);this.enterRule(i,768,e.RULE_window_partition_clause);try{this.enterOuterAlt(i,1),this.state=4380,this.match(e.PARTITION),this.state=4382,this.errorHandler.sync(this),t=this.tokenStream.LA(1),79===t&&(this.state=4381,this.match(e.COMPACT)),this.state=4384,this.match(e.BY),this.state=4385,this.named_expr_list()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}window_order_clause(){let t=new mh(this.context,this.state);this.enterRule(t,770,e.RULE_window_order_clause);try{this.enterOuterAlt(t,1),this.state=4387,this.order_by_clause()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}window_frame_clause(){let t,i=new fh(this.context,this.state);this.enterRule(i,772,e.RULE_window_frame_clause);try{this.enterOuterAlt(i,1),this.state=4389,this.window_frame_units(),this.state=4390,this.window_frame_extent(),this.state=4392,this.errorHandler.sync(this),t=this.tokenStream.LA(1),124===t&&(this.state=4391,this.window_frame_exclusion())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}window_frame_units(){let t,i=new _h(this.context,this.state);this.enterRule(i,774,e.RULE_window_frame_units);try{this.enterOuterAlt(i,1),this.state=4394,t=this.tokenStream.LA(1),149===t||236===t||263===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}window_frame_extent(){let t=new vh(this.context,this.state);this.enterRule(t,776,e.RULE_window_frame_extent);try{switch(this.state=4398,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,470,this.context)){case 1:this.enterOuterAlt(t,1),this.state=4396,this.window_frame_bound();break;case 2:this.enterOuterAlt(t,2),this.state=4397,this.window_frame_between()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}window_frame_between(){let t=new Ch(this.context,this.state);this.enterRule(t,778,e.RULE_window_frame_between);try{this.enterOuterAlt(t,1),this.state=4400,this.match(e.BETWEEN),this.state=4401,this.window_frame_bound(),this.state=4402,this.match(e.AND),this.state=4403,this.window_frame_bound()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}window_frame_bound(){let t,i=new Eh(this.context,this.state);this.enterRule(i,780,e.RULE_window_frame_bound);try{switch(this.state=4412,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,472,this.context)){case 1:this.enterOuterAlt(i,1),this.state=4405,this.match(e.CURRENT),this.state=4406,this.match(e.ROW);break;case 2:switch(this.enterOuterAlt(i,2),this.state=4409,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,471,this.context)){case 1:this.state=4407,this.expr();break;case 2:this.state=4408,this.match(e.UNBOUNDED)}this.state=4411,t=this.tokenStream.LA(1),138===t||228===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}window_frame_exclusion(){let t=new bh(this.context,this.state);this.enterRule(t,782,e.RULE_window_frame_exclusion);try{switch(this.state=4424,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,473,this.context)){case 1:this.enterOuterAlt(t,1),this.state=4414,this.match(e.EXCLUDE),this.state=4415,this.match(e.CURRENT),this.state=4416,this.match(e.ROW);break;case 2:this.enterOuterAlt(t,2),this.state=4417,this.match(e.EXCLUDE),this.state=4418,this.match(e.GROUP);break;case 3:this.enterOuterAlt(t,3),this.state=4419,this.match(e.EXCLUDE),this.state=4420,this.match(e.TIES);break;case 4:this.enterOuterAlt(t,4),this.state=4421,this.match(e.EXCLUDE),this.state=4422,this.match(e.NO),this.state=4423,this.match(e.OTHERS)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}use_stmt(){let t=new Sh(this.context,this.state);this.enterRule(t,784,e.RULE_use_stmt);try{this.enterOuterAlt(t,1),this.state=4426,this.match(e.USE),this.state=4427,this.cluster_expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}subselect_stmt(){let t=new yh(this.context,this.state);this.enterRule(t,786,e.RULE_subselect_stmt);try{switch(this.enterOuterAlt(t,1),this.state=4434,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.LPAREN:this.state=4429,this.match(e.LPAREN),this.state=4430,this.select_stmt(),this.state=4431,this.match(e.RPAREN);break;case e.DISCARD:case e.FROM:case e.PROCESS:case e.REDUCE:case e.SELECT:this.state=4433,this.select_unparenthesized_stmt();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}named_nodes_stmt(){let t=new wh(this.context,this.state);this.enterRule(t,788,e.RULE_named_nodes_stmt);try{switch(this.enterOuterAlt(t,1),this.state=4436,this.bind_parameter_list(),this.state=4437,this.match(e.EQUALS),this.state=4440,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,475,this.context)){case 1:this.state=4438,this.expr();break;case 2:this.state=4439,this.subselect_stmt()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}commit_stmt(){let t=new Rh(this.context,this.state);this.enterRule(t,790,e.RULE_commit_stmt);try{this.enterOuterAlt(t,1),this.state=4442,this.match(e.COMMIT)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}rollback_stmt(){let t=new Lh(this.context,this.state);this.enterRule(t,792,e.RULE_rollback_stmt);try{this.enterOuterAlt(t,1),this.state=4444,this.match(e.ROLLBACK)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}analyze_table(){let t,i=new Th(this.context,this.state);this.enterRule(i,794,e.RULE_analyze_table);try{this.enterOuterAlt(i,1),this.state=4446,this.simple_table_ref(),this.state=4451,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=4447,this.match(e.LPAREN),this.state=4448,this.column_list(),this.state=4449,this.match(e.RPAREN))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}analyze_table_list(){let t,i=new xh(this.context,this.state);this.enterRule(i,796,e.RULE_analyze_table_list);try{let s;for(this.enterOuterAlt(i,1),this.state=4453,this.analyze_table(),this.state=4458,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,477,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=4454,this.match(e.COMMA),this.state=4455,this.analyze_table()),this.state=4460,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,477,this.context);this.state=4462,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=4461,this.match(e.COMMA))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}analyze_stmt(){let t=new kh(this.context,this.state);this.enterRule(t,798,e.RULE_analyze_stmt);try{this.enterOuterAlt(t,1),this.state=4464,this.match(e.ANALYZE),this.state=4465,this.analyze_table_list()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_sequence_stmt(){let t,i=new Ah(this.context,this.state);this.enterRule(i,800,e.RULE_alter_sequence_stmt);try{if(this.enterOuterAlt(i,1),1===(this.state=4467,this.match(e.ALTER),this.state=4468,this.match(e.SEQUENCE),this.state=4471,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,479,this.context)))this.state=4469,this.match(e.IF),this.state=4470,this.match(e.EXISTS);this.state=4473,this.object_ref(),this.state=4475,this.errorHandler.sync(this),t=this.tokenStream.LA(1);do{this.state=4474,this.alter_sequence_action(),this.state=4477,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}while(159===t||250===t||277===t)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_sequence_action(){let t,i=new Nh(this.context,this.state);this.enterRule(i,802,e.RULE_alter_sequence_action);try{switch(this.state=4495,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,484,this.context)){case 1:this.enterOuterAlt(i,1),this.state=4479,this.match(e.START),this.state=4481,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=4480,this.match(e.WITH)),this.state=4483,this.integer();break;case 2:this.enterOuterAlt(i,2),this.state=4484,this.match(e.RESTART),this.state=4486,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=4485,this.match(e.WITH)),this.state=4488,this.integer();break;case 3:this.enterOuterAlt(i,3),this.state=4489,this.match(e.RESTART);break;case 4:this.enterOuterAlt(i,4),this.state=4490,this.match(e.INCREMENT),this.state=4492,this.errorHandler.sync(this),t=this.tokenStream.LA(1),67===t&&(this.state=4491,this.match(e.BY)),this.state=4494,this.integer()}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}identifier(){let t,i=new Ih(this.context,this.state);this.enterRule(i,804,e.RULE_identifier);try{this.enterOuterAlt(i,1),this.state=4497,t=this.tokenStream.LA(1),327===t||328===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}id(){let t=new Oh(this.context,this.state);this.enterRule(t,806,e.RULE_id);try{switch(this.state=4501,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4499,this.identifier();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:this.enterOuterAlt(t,2),this.state=4500,this.keyword();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}id_schema(){let t=new Dh(this.context,this.state);this.enterRule(t,808,e.RULE_id_schema);try{switch(this.state=4510,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4503,this.identifier();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.SAMPLE:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:this.enterOuterAlt(t,2),this.state=4504,this.keyword_compat();break;case e.ASYMMETRIC:case e.BETWEEN:case e.BITCAST:case e.CASE:case e.CAST:case e.CUBE:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.EMPTY_ACTION:case e.EXISTS:case e.FROM:case e.FULL:case e.HOP:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.NOT:case e.NULL:case e.PROCESS:case e.REDUCE:case e.RETURN:case e.RETURNING:case e.ROLLUP:case e.SELECT:case e.SYMMETRIC:case e.UNBOUNDED:case e.WHEN:case e.WHERE:this.enterOuterAlt(t,3),this.state=4505,this.keyword_expr_uncompat();break;case e.ALL:case e.AS:case e.ASSUME:case e.DISTINCT:case e.EXCEPT:case e.HAVING:case e.INTERSECT:case e.LIMIT:case e.UNION:case e.WINDOW:case e.WITHOUT:this.enterOuterAlt(t,4),this.state=4506,this.keyword_select_uncompat();break;case e.COMPACT:this.enterOuterAlt(t,5),this.state=4507,this.keyword_in_uncompat();break;case e.GROUPS:case e.RANGE:case e.ROWS:this.enterOuterAlt(t,6),this.state=4508,this.keyword_window_uncompat();break;case e.COLUMNS:case e.SCHEMA:this.enterOuterAlt(t,7),this.state=4509,this.keyword_hint_uncompat();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}id_expr(){let t=new Mh(this.context,this.state);this.enterRule(t,810,e.RULE_id_expr);try{switch(this.state=4518,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4512,this.identifier();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.SAMPLE:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:this.enterOuterAlt(t,2),this.state=4513,this.keyword_compat();break;case e.COLUMN:this.enterOuterAlt(t,3),this.state=4514,this.keyword_alter_uncompat();break;case e.COMPACT:this.enterOuterAlt(t,4),this.state=4515,this.keyword_in_uncompat();break;case e.GROUPS:case e.RANGE:case e.ROWS:this.enterOuterAlt(t,5),this.state=4516,this.keyword_window_uncompat();break;case e.COLUMNS:case e.SCHEMA:this.enterOuterAlt(t,6),this.state=4517,this.keyword_hint_uncompat();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}id_expr_in(){let t=new Ph(this.context,this.state);this.enterRule(t,812,e.RULE_id_expr_in);try{switch(this.state=4525,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4520,this.identifier();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.SAMPLE:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:this.enterOuterAlt(t,2),this.state=4521,this.keyword_compat();break;case e.COLUMN:this.enterOuterAlt(t,3),this.state=4522,this.keyword_alter_uncompat();break;case e.GROUPS:case e.RANGE:case e.ROWS:this.enterOuterAlt(t,4),this.state=4523,this.keyword_window_uncompat();break;case e.COLUMNS:case e.SCHEMA:this.enterOuterAlt(t,5),this.state=4524,this.keyword_hint_uncompat();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}id_window(){let t=new Fh(this.context,this.state);this.enterRule(t,814,e.RULE_id_window);try{switch(this.state=4535,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4527,this.identifier();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.SAMPLE:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:this.enterOuterAlt(t,2),this.state=4528,this.keyword_compat();break;case e.ASYMMETRIC:case e.BETWEEN:case e.BITCAST:case e.CASE:case e.CAST:case e.CUBE:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.EMPTY_ACTION:case e.EXISTS:case e.FROM:case e.FULL:case e.HOP:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.NOT:case e.NULL:case e.PROCESS:case e.REDUCE:case e.RETURN:case e.RETURNING:case e.ROLLUP:case e.SELECT:case e.SYMMETRIC:case e.UNBOUNDED:case e.WHEN:case e.WHERE:this.enterOuterAlt(t,3),this.state=4529,this.keyword_expr_uncompat();break;case e.ANY:case e.ERASE:case e.STREAM:this.enterOuterAlt(t,4),this.state=4530,this.keyword_table_uncompat();break;case e.ALL:case e.AS:case e.ASSUME:case e.DISTINCT:case e.EXCEPT:case e.HAVING:case e.INTERSECT:case e.LIMIT:case e.UNION:case e.WINDOW:case e.WITHOUT:this.enterOuterAlt(t,5),this.state=4531,this.keyword_select_uncompat();break;case e.COLUMN:this.enterOuterAlt(t,6),this.state=4532,this.keyword_alter_uncompat();break;case e.COMPACT:this.enterOuterAlt(t,7),this.state=4533,this.keyword_in_uncompat();break;case e.COLUMNS:case e.SCHEMA:this.enterOuterAlt(t,8),this.state=4534,this.keyword_hint_uncompat();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}id_table(){let t=new Uh(this.context,this.state);this.enterRule(t,816,e.RULE_id_table);try{switch(this.state=4544,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4537,this.identifier();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.SAMPLE:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:this.enterOuterAlt(t,2),this.state=4538,this.keyword_compat();break;case e.ASYMMETRIC:case e.BETWEEN:case e.BITCAST:case e.CASE:case e.CAST:case e.CUBE:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.EMPTY_ACTION:case e.EXISTS:case e.FROM:case e.FULL:case e.HOP:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.NOT:case e.NULL:case e.PROCESS:case e.REDUCE:case e.RETURN:case e.RETURNING:case e.ROLLUP:case e.SELECT:case e.SYMMETRIC:case e.UNBOUNDED:case e.WHEN:case e.WHERE:this.enterOuterAlt(t,3),this.state=4539,this.keyword_expr_uncompat();break;case e.ALL:case e.AS:case e.ASSUME:case e.DISTINCT:case e.EXCEPT:case e.HAVING:case e.INTERSECT:case e.LIMIT:case e.UNION:case e.WINDOW:case e.WITHOUT:this.enterOuterAlt(t,4),this.state=4540,this.keyword_select_uncompat();break;case e.COMPACT:this.enterOuterAlt(t,5),this.state=4541,this.keyword_in_uncompat();break;case e.GROUPS:case e.RANGE:case e.ROWS:this.enterOuterAlt(t,6),this.state=4542,this.keyword_window_uncompat();break;case e.COLUMNS:case e.SCHEMA:this.enterOuterAlt(t,7),this.state=4543,this.keyword_hint_uncompat();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}id_without(){let t=new Hh(this.context,this.state);this.enterRule(t,818,e.RULE_id_without);try{switch(this.state=4553,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4546,this.identifier();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.SAMPLE:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:this.enterOuterAlt(t,2),this.state=4547,this.keyword_compat();break;case e.ANY:case e.ERASE:case e.STREAM:this.enterOuterAlt(t,3),this.state=4548,this.keyword_table_uncompat();break;case e.COLUMN:this.enterOuterAlt(t,4),this.state=4549,this.keyword_alter_uncompat();break;case e.COMPACT:this.enterOuterAlt(t,5),this.state=4550,this.keyword_in_uncompat();break;case e.GROUPS:case e.RANGE:case e.ROWS:this.enterOuterAlt(t,6),this.state=4551,this.keyword_window_uncompat();break;case e.COLUMNS:case e.SCHEMA:this.enterOuterAlt(t,7),this.state=4552,this.keyword_hint_uncompat();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}id_hint(){let t=new Bh(this.context,this.state);this.enterRule(t,820,e.RULE_id_hint);try{switch(this.state=4563,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4555,this.identifier();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.SAMPLE:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:this.enterOuterAlt(t,2),this.state=4556,this.keyword_compat();break;case e.ASYMMETRIC:case e.BETWEEN:case e.BITCAST:case e.CASE:case e.CAST:case e.CUBE:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.EMPTY_ACTION:case e.EXISTS:case e.FROM:case e.FULL:case e.HOP:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.NOT:case e.NULL:case e.PROCESS:case e.REDUCE:case e.RETURN:case e.RETURNING:case e.ROLLUP:case e.SELECT:case e.SYMMETRIC:case e.UNBOUNDED:case e.WHEN:case e.WHERE:this.enterOuterAlt(t,3),this.state=4557,this.keyword_expr_uncompat();break;case e.ANY:case e.ERASE:case e.STREAM:this.enterOuterAlt(t,4),this.state=4558,this.keyword_table_uncompat();break;case e.ALL:case e.AS:case e.ASSUME:case e.DISTINCT:case e.EXCEPT:case e.HAVING:case e.INTERSECT:case e.LIMIT:case e.UNION:case e.WINDOW:case e.WITHOUT:this.enterOuterAlt(t,5),this.state=4559,this.keyword_select_uncompat();break;case e.COLUMN:this.enterOuterAlt(t,6),this.state=4560,this.keyword_alter_uncompat();break;case e.COMPACT:this.enterOuterAlt(t,7),this.state=4561,this.keyword_in_uncompat();break;case e.GROUPS:case e.RANGE:case e.ROWS:this.enterOuterAlt(t,8),this.state=4562,this.keyword_window_uncompat();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}id_as_compat(){let t=new Wh(this.context,this.state);this.enterRule(t,822,e.RULE_id_as_compat);try{switch(this.state=4567,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4565,this.identifier();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.LAST:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.OTHERS:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.REVERT:case e.REVOKE:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.VACUUM:case e.VALUES:case e.VIRTUAL:case e.WRAPPER:case e.XOR:this.enterOuterAlt(t,2),this.state=4566,this.keyword_as_compat();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}an_id(){let t=new Vh(this.context,this.state);this.enterRule(t,824,e.RULE_an_id);try{switch(this.state=4571,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4569,this.id();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4570,this.match(e.STRING_VALUE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}an_id_or_type(){let t=new zh(this.context,this.state);this.enterRule(t,826,e.RULE_an_id_or_type);try{switch(this.state=4575,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CALLABLE:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DICT:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ENUM:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FLOW:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LIST:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OPTIONAL:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESOURCE:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SET:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.STRUCT:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TAGGED:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TUPLE:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VARIANT:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4573,this.id_or_type();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4574,this.match(e.STRING_VALUE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}an_id_schema(){let t=new Gh(this.context,this.state);this.enterRule(t,828,e.RULE_an_id_schema);try{switch(this.state=4579,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4577,this.id_schema();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4578,this.match(e.STRING_VALUE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}an_id_expr(){let t=new jh(this.context,this.state);this.enterRule(t,830,e.RULE_an_id_expr);try{switch(this.state=4583,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4581,this.id_expr();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4582,this.match(e.STRING_VALUE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}an_id_expr_in(){let t=new Kh(this.context,this.state);this.enterRule(t,832,e.RULE_an_id_expr_in);try{switch(this.state=4587,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4585,this.id_expr_in();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4586,this.match(e.STRING_VALUE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}an_id_window(){let t=new Yh(this.context,this.state);this.enterRule(t,834,e.RULE_an_id_window);try{switch(this.state=4591,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4589,this.id_window();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4590,this.match(e.STRING_VALUE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}an_id_table(){let t=new qh(this.context,this.state);this.enterRule(t,836,e.RULE_an_id_table);try{switch(this.state=4595,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4593,this.id_table();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4594,this.match(e.STRING_VALUE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}an_id_without(){let t=new $h(this.context,this.state);this.enterRule(t,838,e.RULE_an_id_without);try{switch(this.state=4599,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4597,this.id_without();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4598,this.match(e.STRING_VALUE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}an_id_hint(){let t=new Qh(this.context,this.state);this.enterRule(t,840,e.RULE_an_id_hint);try{switch(this.state=4603,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4601,this.id_hint();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4602,this.match(e.STRING_VALUE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}an_id_pure(){let t=new Xh(this.context,this.state);this.enterRule(t,842,e.RULE_an_id_pure);try{switch(this.state=4607,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4605,this.identifier();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4606,this.match(e.STRING_VALUE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}an_id_as_compat(){let t=new Zh(this.context,this.state);this.enterRule(t,844,e.RULE_an_id_as_compat);try{switch(this.state=4611,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.LAST:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.OTHERS:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.REVERT:case e.REVOKE:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.VACUUM:case e.VALUES:case e.VIRTUAL:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4609,this.id_as_compat();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4610,this.match(e.STRING_VALUE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}view_name(){let t=new Jh(this.context,this.state);this.enterRule(t,846,e.RULE_view_name);try{switch(this.state=4616,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,505,this.context)){case 1:this.enterOuterAlt(t,1),this.state=4613,this.an_id();break;case 2:this.enterOuterAlt(t,2),this.state=4614,this.match(e.PRIMARY),this.state=4615,this.match(e.KEY)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}opt_id_prefix(){let t=new ed(this.context,this.state);this.enterRule(t,848,e.RULE_opt_id_prefix);try{if(1===(this.enterOuterAlt(t,1),this.state=4621,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,506,this.context)))this.state=4618,this.an_id(),this.state=4619,this.match(e.DOT)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}cluster_expr(){let t=new td(this.context,this.state);this.enterRule(t,850,e.RULE_cluster_expr);try{if(this.enterOuterAlt(t,1),1===(this.state=4626,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,507,this.context)))this.state=4623,this.an_id(),this.state=4624,this.match(e.COLON);switch(this.state=4630,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DOLLAR:case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.state=4628,this.pure_column_or_named();break;case e.ASTERISK:this.state=4629,this.match(e.ASTERISK);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}id_or_type(){let t=new id(this.context,this.state);this.enterRule(t,852,e.RULE_id_or_type);try{switch(this.state=4634,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4632,this.id();break;case e.CALLABLE:case e.DICT:case e.ENUM:case e.FLOW:case e.LIST:case e.OPTIONAL:case e.RESOURCE:case e.SET:case e.STRUCT:case e.TAGGED:case e.TUPLE:case e.VARIANT:this.enterOuterAlt(t,2),this.state=4633,this.type_id();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}opt_id_prefix_or_type(){let t=new sd(this.context,this.state);this.enterRule(t,854,e.RULE_opt_id_prefix_or_type);try{if(1===(this.enterOuterAlt(t,1),this.state=4639,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,510,this.context)))this.state=4636,this.an_id_or_type(),this.state=4637,this.match(e.DOT)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}id_or_at(){let t,i=new nd(this.context,this.state);this.enterRule(i,856,e.RULE_id_or_at);try{this.enterOuterAlt(i,1),this.state=4642,this.errorHandler.sync(this),t=this.tokenStream.LA(1),29===t&&(this.state=4641,this.match(e.COMMAT)),this.state=4644,this.an_id_or_type()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}id_table_or_type(){let t=new rd(this.context,this.state);this.enterRule(t,858,e.RULE_id_table_or_type);try{switch(this.state=4648,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4646,this.an_id_table();break;case e.CALLABLE:case e.DICT:case e.ENUM:case e.FLOW:case e.LIST:case e.OPTIONAL:case e.RESOURCE:case e.SET:case e.STRUCT:case e.TAGGED:case e.TUPLE:case e.VARIANT:this.enterOuterAlt(t,2),this.state=4647,this.type_id();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}id_table_or_at(){let t,i=new od(this.context,this.state);this.enterRule(i,860,e.RULE_id_table_or_at);try{this.enterOuterAlt(i,1),this.state=4651,this.errorHandler.sync(this),t=this.tokenStream.LA(1),29===t&&(this.state=4650,this.match(e.COMMAT)),this.state=4653,this.id_table_or_type()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}keyword(){let t=new ad(this.context,this.state);this.enterRule(t,862,e.RULE_keyword);try{switch(this.state=4663,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.SAMPLE:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:this.enterOuterAlt(t,1),this.state=4655,this.keyword_compat();break;case e.ASYMMETRIC:case e.BETWEEN:case e.BITCAST:case e.CASE:case e.CAST:case e.CUBE:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.EMPTY_ACTION:case e.EXISTS:case e.FROM:case e.FULL:case e.HOP:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.NOT:case e.NULL:case e.PROCESS:case e.REDUCE:case e.RETURN:case e.RETURNING:case e.ROLLUP:case e.SELECT:case e.SYMMETRIC:case e.UNBOUNDED:case e.WHEN:case e.WHERE:this.enterOuterAlt(t,2),this.state=4656,this.keyword_expr_uncompat();break;case e.ANY:case e.ERASE:case e.STREAM:this.enterOuterAlt(t,3),this.state=4657,this.keyword_table_uncompat();break;case e.ALL:case e.AS:case e.ASSUME:case e.DISTINCT:case e.EXCEPT:case e.HAVING:case e.INTERSECT:case e.LIMIT:case e.UNION:case e.WINDOW:case e.WITHOUT:this.enterOuterAlt(t,4),this.state=4658,this.keyword_select_uncompat();break;case e.COLUMN:this.enterOuterAlt(t,5),this.state=4659,this.keyword_alter_uncompat();break;case e.COMPACT:this.enterOuterAlt(t,6),this.state=4660,this.keyword_in_uncompat();break;case e.GROUPS:case e.RANGE:case e.ROWS:this.enterOuterAlt(t,7),this.state=4661,this.keyword_window_uncompat();break;case e.COLUMNS:case e.SCHEMA:this.enterOuterAlt(t,8),this.state=4662,this.keyword_hint_uncompat();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}keyword_expr_uncompat(){let t,i=new cd(this.context,this.state);this.enterRule(i,864,e.RULE_keyword_expr_uncompat);try{this.enterOuterAlt(i,1),this.state=4665,t=this.tokenStream.LA(1),!(t-52&-32)&&1<<t-52&811009||!(t-88&-32)&&1<<t-88&134217757||!(t-127&-32)&&1<<t-127&33603585||!(t-174&-32)&&1<<t-174&167772167||!(t-232&-32)&&1<<t-232&549453857||269===t||283===t||!(t-303&-32)&&1<<t-303&196609?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}keyword_table_uncompat(){let t,i=new ld(this.context,this.state);this.enterRule(i,866,e.RULE_keyword_table_uncompat);try{this.enterOuterAlt(i,1),this.state=4667,t=this.tokenStream.LA(1),47===t||119===t||278===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}keyword_select_uncompat(){let t,i=new hd(this.context,this.state);this.enterRule(i,868,e.RULE_keyword_select_uncompat);try{this.enterOuterAlt(i,1),this.state=4669,t=this.tokenStream.LA(1),!(t-42&-32)&&1<<t-42&641||109===t||123===t||!(t-151&-32)&&1<<t-151&2147745793||!(t-305&-32)&&1<<t-305&327681?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}keyword_alter_uncompat(){let t=new dd(this.context,this.state);this.enterRule(t,870,e.RULE_keyword_alter_uncompat);try{this.enterOuterAlt(t,1),this.state=4671,this.match(e.COLUMN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}keyword_in_uncompat(){let t=new ud(this.context,this.state);this.enterRule(t,872,e.RULE_keyword_in_uncompat);try{this.enterOuterAlt(t,1),this.state=4673,this.match(e.COMPACT)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}keyword_window_uncompat(){let t,i=new gd(this.context,this.state);this.enterRule(i,874,e.RULE_keyword_window_uncompat);try{this.enterOuterAlt(i,1),this.state=4675,t=this.tokenStream.LA(1),149===t||236===t||263===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}keyword_hint_uncompat(){let t,i=new pd(this.context,this.state);this.enterRule(i,876,e.RULE_keyword_hint_uncompat);try{this.enterOuterAlt(i,1),this.state=4677,t=this.tokenStream.LA(1),77===t||266===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}keyword_as_compat(){let t,i=new md(this.context,this.state);this.enterRule(i,878,e.RULE_keyword_as_compat);try{this.enterOuterAlt(i,1),this.state=4679,t=this.tokenStream.LA(1),!(t-38&-32)&&1<<t-38&2817496559||!(t-72&-32)&&1<<t-72&4024598343||!(t-104&-32)&&1<<t-104&4015470493||!(t-136&-32)&&1<<t-136&3221118877||!(t-168&-32)&&1<<t-168&2013213709||!(t-202&-32)&&1<<t-202&3086980575||!(t-234&-32)&&1<<t-234&2529672179||!(t-267&-32)&&1<<t-267&4286506979||!(t-299&-32)&&1<<t-299&101302185?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}keyword_compat(){let t,i=new fd(this.context,this.state);this.enterRule(i,880,e.RULE_keyword_compat);try{this.enterOuterAlt(i,1),this.state=4681,t=this.tokenStream.LA(1),!(t-38&-32)&&1<<t-38&2817496559||!(t-72&-32)&&1<<t-72&4293066575||!(t-104&-32)&&1<<t-104&4017567709||!(t-136&-32)&&1<<t-136&4294860701||!(t-168&-32)&&1<<t-168&2147434045||!(t-200&-32)&&1<<t-200&4294965245||!(t-233&-32)&&1<<t-233&2946463719||!(t-265&-32)&&1<<t-265&4261126061||!(t-297&-32)&&1<<t-297&439877287?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}type_id(){let t,i=new _d(this.context,this.state);this.enterRule(i,882,e.RULE_type_id);try{this.enterOuterAlt(i,1),this.state=4683,t=this.tokenStream.LA(1),68===t||105===t||118===t||137===t||183===t||211===t||!(t-248&-32)&&1<<t-248&2155872257||!(t-290&-32)&&1<<t-290&67110913?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}bool_value(){let t,i=new vd(this.context,this.state);this.enterRule(i,884,e.RULE_bool_value);try{this.enterOuterAlt(i,1),this.state=4685,t=this.tokenStream.LA(1),132===t||300===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}real(){let t=new Cd(this.context,this.state);this.enterRule(t,886,e.RULE_real);try{this.enterOuterAlt(t,1),this.state=4687,this.match(e.REAL)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}integer(){let t,i=new Ed(this.context,this.state);this.enterRule(i,888,e.RULE_integer);try{this.enterOuterAlt(i,1),this.state=4689,t=this.tokenStream.LA(1),329===t||330===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}sql_query_yq(){let t=new bd(this.context,this.state);this.enterRule(t,890,e.RULE_sql_query_yq);try{switch(this.state=4696,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,515,this.context)){case 1:this.enterOuterAlt(t,1),this.state=4691,this.sql_stmt_list_yq();break;case 2:this.enterOuterAlt(t,2),this.state=4692,this.match(e.PRAGMA),this.state=4693,this.match(e.ANSI),this.state=4694,this.match(e.DIGITS),this.state=4695,this.ansi_sql_stmt_list()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}sql_stmt_list_yq(){let t,i=new Sd(this.context,this.state);this.enterRule(i,892,e.RULE_sql_stmt_list_yq);try{let s;for(this.enterOuterAlt(i,1),this.state=4701,this.errorHandler.sync(this),t=this.tokenStream.LA(1);22===t;)this.state=4698,this.match(e.SEMICOLON),this.state=4703,this.errorHandler.sync(this),t=this.tokenStream.LA(1);for(this.state=4704,this.sql_stmt_yq(),this.state=4713,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,518,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;){if(1===s){this.state=4706,this.errorHandler.sync(this),t=this.tokenStream.LA(1);do{this.state=4705,this.match(e.SEMICOLON),this.state=4708,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}while(22===t);this.state=4710,this.sql_stmt_yq()}this.state=4715,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,518,this.context)}for(this.state=4719,this.errorHandler.sync(this),t=this.tokenStream.LA(1);22===t;)this.state=4716,this.match(e.SEMICOLON),this.state=4721,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=4722,this.match(e.EOF)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}sql_stmt_yq(){let t,i=new yd(this.context,this.state);this.enterRule(i,894,e.RULE_sql_stmt_yq);try{this.enterOuterAlt(i,1),this.state=4729,this.errorHandler.sync(this),t=this.tokenStream.LA(1),128===t&&(this.state=4724,this.match(e.EXPLAIN),this.state=4727,this.errorHandler.sync(this),t=this.tokenStream.LA(1),233===t&&(this.state=4725,this.match(e.QUERY),this.state=4726,this.match(e.PLAN))),this.state=4731,this.sql_stmt_core_yq()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}sql_stmt_core_yq(){let t=new wd(this.context,this.state);this.enterRule(t,896,e.RULE_sql_stmt_core_yq);try{switch(this.state=4746,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,522,this.context)){case 1:this.enterOuterAlt(t,1),this.state=4733,this.pragma_stmt();break;case 2:this.enterOuterAlt(t,2),this.state=4734,this.select_stmt();break;case 3:this.enterOuterAlt(t,3),this.state=4735,this.named_nodes_stmt();break;case 4:this.enterOuterAlt(t,4),this.state=4736,this.use_stmt();break;case 5:this.enterOuterAlt(t,5),this.state=4737,this.into_table_stmt_yq();break;case 6:this.enterOuterAlt(t,6),this.state=4738,this.declare_stmt();break;case 7:this.enterOuterAlt(t,7),this.state=4739,this.import_stmt();break;case 8:this.enterOuterAlt(t,8),this.state=4740,this.export_stmt();break;case 9:this.enterOuterAlt(t,9),this.state=4741,this.do_stmt();break;case 10:this.enterOuterAlt(t,10),this.state=4742,this.define_action_or_subquery_stmt();break;case 11:this.enterOuterAlt(t,11),this.state=4743,this.if_stmt();break;case 12:this.enterOuterAlt(t,12),this.state=4744,this.for_stmt();break;case 13:this.enterOuterAlt(t,13),this.state=4745,this.values_stmt()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}replication_name(){let t=new Rd(this.context,this.state);this.enterRule(t,898,e.RULE_replication_name);try{this.enterOuterAlt(t,1),this.state=4748,this.match(e.AS),this.state=4749,this.object_ref()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}where_expr(){let t=new Ld(this.context,this.state);this.enterRule(t,900,e.RULE_where_expr);try{this.enterOuterAlt(t,1),this.state=4751,this.match(e.WHERE),this.state=4752,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}static{this._serializedATN=[4,1,334,4755,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27,7,27,2,28,7,28,2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,32,2,33,7,33,2,34,7,34,2,35,7,35,2,36,7,36,2,37,7,37,2,38,7,38,2,39,7,39,2,40,7,40,2,41,7,41,2,42,7,42,2,43,7,43,2,44,7,44,2,45,7,45,2,46,7,46,2,47,7,47,2,48,7,48,2,49,7,49,2,50,7,50,2,51,7,51,2,52,7,52,2,53,7,53,2,54,7,54,2,55,7,55,2,56,7,56,2,57,7,57,2,58,7,58,2,59,7,59,2,60,7,60,2,61,7,61,2,62,7,62,2,63,7,63,2,64,7,64,2,65,7,65,2,66,7,66,2,67,7,67,2,68,7,68,2,69,7,69,2,70,7,70,2,71,7,71,2,72,7,72,2,73,7,73,2,74,7,74,2,75,7,75,2,76,7,76,2,77,7,77,2,78,7,78,2,79,7,79,2,80,7,80,2,81,7,81,2,82,7,82,2,83,7,83,2,84,7,84,2,85,7,85,2,86,7,86,2,87,7,87,2,88,7,88,2,89,7,89,2,90,7,90,2,91,7,91,2,92,7,92,2,93,7,93,2,94,7,94,2,95,7,95,2,96,7,96,2,97,7,97,2,98,7,98,2,99,7,99,2,100,7,100,2,101,7,101,2,102,7,102,2,103,7,103,2,104,7,104,2,105,7,105,2,106,7,106,2,107,7,107,2,108,7,108,2,109,7,109,2,110,7,110,2,111,7,111,2,112,7,112,2,113,7,113,2,114,7,114,2,115,7,115,2,116,7,116,2,117,7,117,2,118,7,118,2,119,7,119,2,120,7,120,2,121,7,121,2,122,7,122,2,123,7,123,2,124,7,124,2,125,7,125,2,126,7,126,2,127,7,127,2,128,7,128,2,129,7,129,2,130,7,130,2,131,7,131,2,132,7,132,2,133,7,133,2,134,7,134,2,135,7,135,2,136,7,136,2,137,7,137,2,138,7,138,2,139,7,139,2,140,7,140,2,141,7,141,2,142,7,142,2,143,7,143,2,144,7,144,2,145,7,145,2,146,7,146,2,147,7,147,2,148,7,148,2,149,7,149,2,150,7,150,2,151,7,151,2,152,7,152,2,153,7,153,2,154,7,154,2,155,7,155,2,156,7,156,2,157,7,157,2,158,7,158,2,159,7,159,2,160,7,160,2,161,7,161,2,162,7,162,2,163,7,163,2,164,7,164,2,165,7,165,2,166,7,166,2,167,7,167,2,168,7,168,2,169,7,169,2,170,7,170,2,171,7,171,2,172,7,172,2,173,7,173,2,174,7,174,2,175,7,175,2,176,7,176,2,177,7,177,2,178,7,178,2,179,7,179,2,180,7,180,2,181,7,181,2,182,7,182,2,183,7,183,2,184,7,184,2,185,7,185,2,186,7,186,2,187,7,187,2,188,7,188,2,189,7,189,2,190,7,190,2,191,7,191,2,192,7,192,2,193,7,193,2,194,7,194,2,195,7,195,2,196,7,196,2,197,7,197,2,198,7,198,2,199,7,199,2,200,7,200,2,201,7,201,2,202,7,202,2,203,7,203,2,204,7,204,2,205,7,205,2,206,7,206,2,207,7,207,2,208,7,208,2,209,7,209,2,210,7,210,2,211,7,211,2,212,7,212,2,213,7,213,2,214,7,214,2,215,7,215,2,216,7,216,2,217,7,217,2,218,7,218,2,219,7,219,2,220,7,220,2,221,7,221,2,222,7,222,2,223,7,223,2,224,7,224,2,225,7,225,2,226,7,226,2,227,7,227,2,228,7,228,2,229,7,229,2,230,7,230,2,231,7,231,2,232,7,232,2,233,7,233,2,234,7,234,2,235,7,235,2,236,7,236,2,237,7,237,2,238,7,238,2,239,7,239,2,240,7,240,2,241,7,241,2,242,7,242,2,243,7,243,2,244,7,244,2,245,7,245,2,246,7,246,2,247,7,247,2,248,7,248,2,249,7,249,2,250,7,250,2,251,7,251,2,252,7,252,2,253,7,253,2,254,7,254,2,255,7,255,2,256,7,256,2,257,7,257,2,258,7,258,2,259,7,259,2,260,7,260,2,261,7,261,2,262,7,262,2,263,7,263,2,264,7,264,2,265,7,265,2,266,7,266,2,267,7,267,2,268,7,268,2,269,7,269,2,270,7,270,2,271,7,271,2,272,7,272,2,273,7,273,2,274,7,274,2,275,7,275,2,276,7,276,2,277,7,277,2,278,7,278,2,279,7,279,2,280,7,280,2,281,7,281,2,282,7,282,2,283,7,283,2,284,7,284,2,285,7,285,2,286,7,286,2,287,7,287,2,288,7,288,2,289,7,289,2,290,7,290,2,291,7,291,2,292,7,292,2,293,7,293,2,294,7,294,2,295,7,295,2,296,7,296,2,297,7,297,2,298,7,298,2,299,7,299,2,300,7,300,2,301,7,301,2,302,7,302,2,303,7,303,2,304,7,304,2,305,7,305,2,306,7,306,2,307,7,307,2,308,7,308,2,309,7,309,2,310,7,310,2,311,7,311,2,312,7,312,2,313,7,313,2,314,7,314,2,315,7,315,2,316,7,316,2,317,7,317,2,318,7,318,2,319,7,319,2,320,7,320,2,321,7,321,2,322,7,322,2,323,7,323,2,324,7,324,2,325,7,325,2,326,7,326,2,327,7,327,2,328,7,328,2,329,7,329,2,330,7,330,2,331,7,331,2,332,7,332,2,333,7,333,2,334,7,334,2,335,7,335,2,336,7,336,2,337,7,337,2,338,7,338,2,339,7,339,2,340,7,340,2,341,7,341,2,342,7,342,2,343,7,343,2,344,7,344,2,345,7,345,2,346,7,346,2,347,7,347,2,348,7,348,2,349,7,349,2,350,7,350,2,351,7,351,2,352,7,352,2,353,7,353,2,354,7,354,2,355,7,355,2,356,7,356,2,357,7,357,2,358,7,358,2,359,7,359,2,360,7,360,2,361,7,361,2,362,7,362,2,363,7,363,2,364,7,364,2,365,7,365,2,366,7,366,2,367,7,367,2,368,7,368,2,369,7,369,2,370,7,370,2,371,7,371,2,372,7,372,2,373,7,373,2,374,7,374,2,375,7,375,2,376,7,376,2,377,7,377,2,378,7,378,2,379,7,379,2,380,7,380,2,381,7,381,2,382,7,382,2,383,7,383,2,384,7,384,2,385,7,385,2,386,7,386,2,387,7,387,2,388,7,388,2,389,7,389,2,390,7,390,2,391,7,391,2,392,7,392,2,393,7,393,2,394,7,394,2,395,7,395,2,396,7,396,2,397,7,397,2,398,7,398,2,399,7,399,2,400,7,400,2,401,7,401,2,402,7,402,2,403,7,403,2,404,7,404,2,405,7,405,2,406,7,406,2,407,7,407,2,408,7,408,2,409,7,409,2,410,7,410,2,411,7,411,2,412,7,412,2,413,7,413,2,414,7,414,2,415,7,415,2,416,7,416,2,417,7,417,2,418,7,418,2,419,7,419,2,420,7,420,2,421,7,421,2,422,7,422,2,423,7,423,2,424,7,424,2,425,7,425,2,426,7,426,2,427,7,427,2,428,7,428,2,429,7,429,2,430,7,430,2,431,7,431,2,432,7,432,2,433,7,433,2,434,7,434,2,435,7,435,2,436,7,436,2,437,7,437,2,438,7,438,2,439,7,439,2,440,7,440,2,441,7,441,2,442,7,442,2,443,7,443,2,444,7,444,2,445,7,445,2,446,7,446,2,447,7,447,2,448,7,448,2,449,7,449,2,450,7,450,1,0,1,0,1,0,1,0,1,0,3,0,908,8,0,1,1,5,1,911,8,1,10,1,12,1,914,9,1,1,1,1,1,4,1,918,8,1,11,1,12,1,919,1,1,5,1,923,8,1,10,1,12,1,926,9,1,1,1,5,1,929,8,1,10,1,12,1,932,9,1,1,1,1,1,1,2,5,2,937,8,2,10,2,12,2,940,9,2,1,2,1,2,1,3,5,3,945,8,3,10,3,12,3,948,9,3,1,3,1,3,4,3,952,8,3,11,3,12,3,953,5,3,956,8,3,10,3,12,3,959,9,3,1,3,1,3,1,3,5,3,964,8,3,10,3,12,3,967,9,3,1,4,1,4,3,4,971,8,4,1,5,1,5,1,5,3,5,976,8,5,3,5,978,8,5,1,5,1,5,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,3,6,1042,8,6,1,7,1,7,1,7,5,7,1047,8,7,10,7,12,7,1050,9,7,1,7,3,7,1053,8,7,1,8,1,8,1,8,5,8,1058,8,8,10,8,12,8,1061,9,8,1,9,1,9,1,9,5,9,1066,8,9,10,9,12,9,1069,9,9,1,10,1,10,3,10,1073,8,10,1,11,1,11,3,11,1077,8,11,1,11,1,11,1,11,1,12,3,12,1083,8,12,1,12,1,12,1,12,1,12,3,12,1089,8,12,1,12,3,12,1092,8,12,1,12,1,12,3,12,1096,8,12,1,12,1,12,1,12,1,12,1,12,1,12,3,12,1104,8,12,1,12,1,12,3,12,1108,8,12,1,12,3,12,1111,8,12,1,12,1,12,3,12,1115,8,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,3,12,1126,8,12,1,12,4,12,1129,8,12,11,12,12,12,1130,3,12,1133,8,12,1,13,1,13,1,14,1,14,1,14,5,14,1140,8,14,10,14,12,14,1143,9,14,1,15,1,15,1,15,1,16,1,16,1,16,1,16,1,17,1,17,1,17,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,3,18,1163,8,18,1,18,5,18,1166,8,18,10,18,12,18,1169,9,18,1,18,1,18,1,18,1,18,4,18,1175,8,18,11,18,12,18,1176,3,18,1179,8,18,1,19,1,19,1,19,5,19,1184,8,19,10,19,12,19,1187,9,19,1,20,1,20,1,20,5,20,1192,8,20,10,20,12,20,1195,9,20,1,21,1,21,1,21,5,21,1200,8,21,10,21,12,21,1203,9,21,1,22,1,22,1,22,1,22,3,22,1209,8,22,1,23,1,23,1,24,1,24,1,24,1,24,1,24,1,24,3,24,1219,8,24,3,24,1221,8,24,5,24,1223,8,24,10,24,12,24,1226,9,24,1,24,1,24,3,24,1230,8,24,1,25,1,25,3,25,1234,8,25,1,25,1,25,1,26,1,26,3,26,1240,8,26,1,26,1,26,1,27,1,27,3,27,1246,8,27,1,28,1,28,3,28,1250,8,28,1,29,1,29,3,29,1254,8,29,1,29,3,29,1257,8,29,1,29,1,29,1,30,1,30,1,30,3,30,1264,8,30,1,30,1,30,1,30,1,30,3,30,1270,8,30,5,30,1272,8,30,10,30,12,30,1275,9,30,1,31,1,31,3,31,1279,8,31,1,31,3,31,1282,8,31,1,31,1,31,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,5,32,1294,8,32,10,32,12,32,1297,9,32,1,33,1,33,3,33,1301,8,33,1,33,3,33,1304,8,33,1,33,1,33,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,3,34,1318,8,34,1,34,1,34,1,34,1,34,1,34,3,34,1325,8,34,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,3,35,1336,8,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,3,35,1347,8,35,1,36,1,36,1,36,1,36,1,36,1,36,1,36,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,38,1,38,1,38,1,38,3,38,1367,8,38,1,38,1,38,1,39,1,39,3,39,1373,8,39,1,39,4,39,1376,8,39,11,39,12,39,1377,1,39,1,39,3,39,1382,8,39,1,39,1,39,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,40,3,40,1396,8,40,3,40,1398,8,40,1,41,1,41,1,42,1,42,1,42,3,42,1405,8,42,1,43,1,43,1,44,1,44,3,44,1411,8,44,1,45,1,45,1,45,1,45,1,46,1,46,1,46,5,46,1420,8,46,10,46,12,46,1423,9,46,1,47,1,47,1,47,1,47,1,47,3,47,1430,8,47,1,48,1,48,1,48,1,48,3,48,1436,8,48,1,49,1,49,1,49,1,49,1,49,3,49,1443,8,49,1,49,1,49,1,49,1,49,5,49,1449,8,49,10,49,12,49,1452,9,49,1,49,1,49,1,50,1,50,1,50,1,50,1,51,1,51,1,51,1,51,3,51,1464,8,51,1,51,1,51,1,52,1,52,3,52,1470,8,52,1,52,1,52,3,52,1474,8,52,1,52,3,52,1477,8,52,3,52,1479,8,52,1,53,1,53,1,53,1,53,1,53,1,53,3,53,1487,8,53,1,54,1,54,1,54,1,54,1,54,1,54,3,54,1495,8,54,1,54,1,54,1,54,1,54,3,54,1501,8,54,1,54,1,54,1,54,1,54,3,54,1507,8,54,1,54,1,54,1,55,1,55,3,55,1513,8,55,1,55,3,55,1516,8,55,1,55,1,55,1,56,1,56,1,56,5,56,1523,8,56,10,56,12,56,1526,9,56,1,57,1,57,1,57,1,57,5,57,1532,8,57,10,57,12,57,1535,9,57,1,57,1,57,1,58,1,58,3,58,1541,8,58,1,59,1,59,1,59,1,59,5,59,1547,8,59,10,59,12,59,1550,9,59,1,59,1,59,1,60,1,60,1,60,1,61,1,61,1,61,1,61,1,61,3,61,1562,8,61,1,62,1,62,1,62,5,62,1567,8,62,10,62,12,62,1570,9,62,1,62,3,62,1573,8,62,1,63,1,63,1,63,5,63,1578,8,63,10,63,12,63,1581,9,63,1,63,3,63,1584,8,63,1,64,1,64,1,64,3,64,1589,8,64,1,65,1,65,1,65,5,65,1594,8,65,10,65,12,65,1597,9,65,1,66,1,66,1,66,1,66,3,66,1603,8,66,1,66,3,66,1606,8,66,1,66,1,66,1,66,1,67,1,67,3,67,1613,8,67,1,67,1,67,3,67,1617,8,67,1,68,1,68,1,68,1,68,1,68,1,68,1,68,1,68,3,68,1627,8,68,1,68,1,68,1,69,1,69,1,69,1,69,1,70,1,70,1,70,1,70,1,70,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,3,71,1650,8,71,1,72,1,72,1,72,1,72,3,72,1656,8,72,1,73,1,73,3,73,1660,8,73,1,74,1,74,1,74,5,74,1665,8,74,10,74,12,74,1668,9,74,1,75,1,75,1,75,3,75,1673,8,75,1,76,1,76,1,76,5,76,1678,8,76,10,76,12,76,1681,9,76,1,77,3,77,1684,8,77,1,77,1,77,3,77,1688,8,77,1,78,1,78,1,79,1,79,3,79,1694,8,79,1,80,1,80,1,80,3,80,1699,8,80,1,81,1,81,1,81,1,81,1,82,1,82,1,82,3,82,1708,8,82,1,82,3,82,1711,8,82,1,82,1,82,1,82,1,82,3,82,1717,8,82,1,83,1,83,1,83,3,83,1722,8,83,1,83,1,83,1,84,1,84,1,84,1,84,3,84,1730,8,84,1,85,1,85,1,85,5,85,1735,8,85,10,85,12,85,1738,9,85,1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,87,1,87,1,87,1,87,1,87,1,88,1,88,1,88,1,88,1,88,5,88,1757,8,88,10,88,12,88,1760,9,88,1,88,3,88,1763,8,88,3,88,1765,8,88,1,88,1,88,3,88,1769,8,88,1,89,1,89,1,89,1,89,1,89,5,89,1776,8,89,10,89,12,89,1779,9,89,1,89,3,89,1782,8,89,3,89,1784,8,89,1,89,1,89,3,89,1788,8,89,1,90,1,90,1,90,1,90,1,90,5,90,1795,8,90,10,90,12,90,1798,9,90,1,90,3,90,1801,8,90,1,90,1,90,1,91,1,91,1,91,1,91,1,91,1,92,1,92,1,92,1,92,1,92,1,93,1,93,1,93,1,93,1,93,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,95,1,95,1,95,1,95,1,95,1,96,1,96,1,96,1,96,1,96,5,96,1837,8,96,10,96,12,96,1840,9,96,1,96,3,96,1843,8,96,1,96,1,96,1,97,1,97,1,97,1,97,1,97,1,98,1,98,1,98,1,98,1,98,1,98,1,98,1,99,1,99,1,99,1,99,3,99,1863,8,99,1,99,3,99,1866,8,99,1,99,1,99,1,99,1,99,3,99,1872,8,99,1,99,1,99,1,99,1,99,1,99,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,3,100,1892,8,100,1,100,5,100,1895,8,100,10,100,12,100,1898,9,100,1,101,1,101,1,101,3,101,1903,8,101,1,101,5,101,1906,8,101,10,101,12,101,1909,9,101,3,101,1911,8,101,1,102,1,102,3,102,1915,8,102,1,103,1,103,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,3,104,1942,8,104,1,105,1,105,1,105,1,105,1,105,1,105,3,105,1950,8,105,1,106,3,106,1953,8,106,1,106,1,106,1,106,5,106,1958,8,106,10,106,12,106,1961,9,106,1,107,1,107,1,107,1,107,1,107,1,108,1,108,1,108,1,109,1,109,3,109,1973,8,109,1,109,1,109,3,109,1977,8,109,1,109,1,109,1,110,1,110,1,110,1,110,1,110,1,111,1,111,1,111,3,111,1989,8,111,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,112,5,112,2e3,8,112,10,112,12,112,2003,9,112,1,112,1,112,3,112,2007,8,112,1,113,1,113,1,113,1,113,1,113,3,113,2014,8,113,1,114,1,114,3,114,2018,8,114,1,115,1,115,1,115,5,115,2023,8,115,10,115,12,115,2026,9,115,1,116,1,116,1,116,1,116,5,116,2032,8,116,10,116,12,116,2035,9,116,1,117,1,117,1,117,1,117,5,117,2041,8,117,10,117,12,117,2044,9,117,1,118,1,118,1,118,1,118,1,118,3,118,2051,8,118,1,119,1,119,3,119,2055,8,119,1,119,1,119,3,119,2059,8,119,1,120,1,120,1,120,1,120,1,120,3,120,2066,8,120,3,120,2068,8,120,1,121,3,121,2071,8,121,1,121,1,121,1,121,3,121,2076,8,121,1,121,1,121,1,121,3,121,2081,8,121,1,122,1,122,3,122,2085,8,122,1,122,1,122,1,122,5,122,2090,8,122,10,122,12,122,2093,9,122,1,122,1,122,1,122,1,122,3,122,2099,8,122,1,122,1,122,3,122,2103,8,122,1,122,3,122,2106,8,122,1,122,1,122,3,122,2110,8,122,1,122,1,122,3,122,2114,8,122,3,122,2116,8,122,1,123,1,123,1,123,1,123,1,124,1,124,1,124,5,124,2125,8,124,10,124,12,124,2128,9,124,1,125,1,125,1,125,1,125,5,125,2134,8,125,10,125,12,125,2137,9,125,1,125,1,125,3,125,2141,8,125,1,125,1,125,1,125,1,125,3,125,2147,8,125,1,125,1,125,1,125,3,125,2152,8,125,1,125,3,125,2155,8,125,1,125,1,125,3,125,2159,8,125,1,125,1,125,3,125,2163,8,125,1,126,3,126,2166,8,126,1,127,1,127,3,127,2170,8,127,1,127,1,127,3,127,2174,8,127,1,127,1,127,1,127,1,127,5,127,2180,8,127,10,127,12,127,2183,9,127,1,127,3,127,2186,8,127,1,127,1,127,3,127,2190,8,127,1,127,1,127,3,127,2194,8,127,1,127,3,127,2197,8,127,1,127,3,127,2200,8,127,1,127,1,127,3,127,2204,8,127,1,127,3,127,2207,8,127,1,127,3,127,2210,8,127,1,128,1,128,1,128,3,128,2215,8,128,1,128,3,128,2218,8,128,1,128,3,128,2221,8,128,1,128,3,128,2224,8,128,1,128,1,128,1,128,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,129,3,129,2238,8,129,3,129,2240,8,129,1,130,1,130,1,130,1,130,1,130,1,130,1,130,1,130,1,130,3,130,2251,8,130,1,131,1,131,1,131,1,132,1,132,1,132,5,132,2259,8,132,10,132,12,132,2262,9,132,1,133,1,133,1,133,1,133,1,134,1,134,1,134,3,134,2271,8,134,1,134,3,134,2274,8,134,1,134,1,134,1,134,1,134,1,134,3,134,2281,8,134,1,134,1,134,1,134,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,3,135,2305,8,135,1,136,1,136,1,137,1,137,1,138,1,138,1,138,5,138,2314,8,138,10,138,12,138,2317,9,138,1,139,4,139,2320,8,139,11,139,12,139,2321,1,140,1,140,3,140,2326,8,140,1,141,1,141,3,141,2330,8,141,1,141,1,141,3,141,2334,8,141,1,141,1,141,3,141,2338,8,141,1,141,1,141,3,141,2342,8,141,1,141,1,141,3,141,2346,8,141,1,141,1,141,3,141,2350,8,141,1,141,1,141,1,141,1,141,3,141,2356,8,141,1,142,1,142,1,142,1,142,1,142,3,142,2363,8,142,1,142,1,142,1,142,1,142,1,142,1,142,1,142,1,142,3,142,2373,8,142,1,143,1,143,1,144,1,144,1,144,1,144,1,144,5,144,2382,8,144,10,144,12,144,2385,9,144,1,144,1,144,1,145,1,145,1,145,1,146,1,146,1,146,5,146,2395,8,146,10,146,12,146,2398,9,146,1,147,1,147,1,147,1,147,1,147,1,147,1,148,1,148,1,149,1,149,1,149,5,149,2411,8,149,10,149,12,149,2414,9,149,1,150,1,150,1,151,1,151,1,151,5,151,2421,8,151,10,151,12,151,2424,9,151,1,152,1,152,1,152,1,152,1,153,1,153,1,154,1,154,1,155,1,155,1,156,1,156,1,157,1,157,1,157,1,157,1,158,3,158,2443,8,158,1,158,1,158,1,159,1,159,3,159,2449,8,159,1,159,1,159,1,159,1,159,1,159,3,159,2456,8,159,1,160,1,160,1,160,5,160,2461,8,160,10,160,12,160,2464,9,160,1,161,1,161,1,161,1,161,1,161,3,161,2471,8,161,1,162,1,162,1,163,1,163,1,163,5,163,2478,8,163,10,163,12,163,2481,9,163,1,164,1,164,1,164,1,164,1,164,1,165,1,165,1,165,1,165,1,165,1,166,1,166,1,166,1,166,1,166,1,166,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,168,1,168,1,168,1,168,1,168,1,168,1,168,3,168,2517,8,168,3,168,2519,8,168,1,169,3,169,2522,8,169,1,169,1,169,1,169,3,169,2527,8,169,1,169,1,169,3,169,2531,8,169,5,169,2533,8,169,10,169,12,169,2536,9,169,1,170,1,170,1,170,3,170,2541,8,170,1,171,1,171,1,171,1,171,3,171,2547,8,171,1,171,1,171,3,171,2551,8,171,1,172,1,172,1,172,3,172,2556,8,172,1,172,1,172,1,172,3,172,2561,8,172,3,172,2563,8,172,1,173,1,173,3,173,2567,8,173,1,173,1,173,1,173,3,173,2572,8,173,1,173,3,173,2575,8,173,3,173,2577,8,173,1,173,1,173,3,173,2581,8,173,1,174,1,174,1,174,1,174,1,174,1,174,1,174,1,174,1,174,3,174,2592,8,174,1,175,1,175,1,175,1,176,1,176,1,176,1,176,1,176,1,176,3,176,2603,8,176,1,177,1,177,1,178,1,178,1,178,1,178,1,178,1,179,1,179,3,179,2614,8,179,1,179,1,179,3,179,2618,8,179,1,179,1,179,3,179,2622,8,179,1,179,1,179,3,179,2626,8,179,1,179,3,179,2629,8,179,1,179,1,179,3,179,2633,8,179,1,179,3,179,2636,8,179,1,180,1,180,1,180,1,180,3,180,2642,8,180,1,181,1,181,1,181,1,181,1,181,5,181,2649,8,181,10,181,12,181,2652,9,181,3,181,2654,8,181,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,3,182,2668,8,182,1,182,1,182,1,182,1,182,3,182,2674,8,182,1,183,1,183,1,183,1,183,1,183,1,183,1,183,1,183,1,183,1,183,1,183,3,183,2687,8,183,1,183,1,183,1,183,1,183,1,184,3,184,2694,8,184,1,184,1,184,1,184,3,184,2699,8,184,1,185,1,185,1,185,1,186,1,186,3,186,2706,8,186,1,187,1,187,1,187,5,187,2711,8,187,10,187,12,187,2714,9,187,1,188,1,188,1,188,1,188,1,189,1,189,3,189,2722,8,189,1,190,1,190,1,190,3,190,2727,8,190,1,190,1,190,1,190,1,190,1,190,1,190,3,190,2735,8,190,1,190,1,190,1,190,1,191,1,191,1,191,1,191,1,191,1,191,1,191,1,191,5,191,2748,8,191,10,191,12,191,2751,9,191,1,192,1,192,1,192,3,192,2756,8,192,1,193,1,193,1,193,1,193,1,193,1,193,3,193,2764,8,193,1,193,1,193,1,194,1,194,1,194,1,194,1,194,3,194,2773,8,194,1,194,1,194,3,194,2777,8,194,1,194,1,194,1,194,1,195,1,195,1,195,1,195,3,195,2786,8,195,1,195,1,195,1,196,1,196,1,196,1,196,1,196,1,196,1,196,1,196,3,196,2798,8,196,1,197,1,197,1,197,1,197,1,197,3,197,2805,8,197,1,197,1,197,1,197,1,197,1,197,1,197,3,197,2813,8,197,1,198,1,198,1,198,1,199,1,199,1,199,1,199,1,199,1,199,1,199,1,199,1,199,1,200,1,200,1,200,1,201,1,201,1,201,1,201,3,201,2834,8,201,1,201,1,201,1,201,1,201,1,201,1,201,3,201,2842,8,201,1,202,1,202,1,202,1,203,1,203,1,203,1,203,3,203,2851,8,203,1,204,1,204,1,204,1,204,1,205,1,205,1,206,1,206,3,206,2861,8,206,1,207,1,207,1,207,1,207,1,207,5,207,2868,8,207,10,207,12,207,2871,9,207,1,207,1,207,3,207,2875,8,207,1,208,1,208,1,209,1,209,1,209,3,209,2882,8,209,1,209,1,209,1,209,1,209,1,209,1,209,1,209,1,209,3,209,2892,8,209,1,209,1,209,1,209,3,209,2897,8,209,1,209,1,209,1,209,1,209,1,209,5,209,2904,8,209,10,209,12,209,2907,9,209,1,209,3,209,2910,8,209,1,209,1,209,3,209,2914,8,209,1,209,3,209,2917,8,209,1,209,3,209,2920,8,209,1,209,3,209,2923,8,209,1,209,3,209,2926,8,209,1,210,1,210,1,210,1,210,1,210,1,210,3,210,2934,8,210,1,211,1,211,1,211,3,211,2939,8,211,1,211,1,211,1,211,1,211,1,211,1,212,1,212,1,212,1,212,3,212,2950,8,212,1,213,1,213,1,213,1,214,1,214,3,214,2957,8,214,1,215,1,215,1,215,1,215,1,216,1,216,1,216,1,216,1,216,5,216,2968,8,216,10,216,12,216,2971,9,216,1,217,1,217,1,217,5,217,2976,8,217,10,217,12,217,2979,9,217,1,218,1,218,3,218,2983,8,218,1,219,1,219,1,219,5,219,2988,8,219,10,219,12,219,2991,9,219,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,220,3,220,3003,8,220,1,221,1,221,1,221,1,221,1,222,1,222,1,222,5,222,3012,8,222,10,222,12,222,3015,9,222,1,223,1,223,1,223,1,223,1,224,1,224,1,224,3,224,3024,8,224,1,225,1,225,1,225,1,225,3,225,3030,8,225,1,226,1,226,1,226,1,226,1,226,5,226,3037,8,226,10,226,12,226,3040,9,226,1,226,1,226,1,227,1,227,1,227,1,227,1,227,1,228,1,228,1,228,1,228,1,228,5,228,3054,8,228,10,228,12,228,3057,9,228,1,228,1,228,1,229,1,229,1,229,1,230,1,230,1,230,1,230,1,231,1,231,1,231,1,232,1,232,1,232,1,232,1,232,1,232,5,232,3077,8,232,10,232,12,232,3080,9,232,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,3,233,3099,8,233,1,234,1,234,1,234,1,234,1,234,1,234,1,234,5,234,3108,8,234,10,234,12,234,3111,9,234,1,235,1,235,1,235,1,235,1,235,3,235,3118,8,235,1,236,1,236,1,236,1,236,1,236,1,236,5,236,3126,8,236,10,236,12,236,3129,9,236,1,237,1,237,3,237,3133,8,237,1,238,1,238,3,238,3137,8,238,1,238,1,238,1,239,1,239,3,239,3143,8,239,1,239,1,239,1,240,1,240,1,240,1,240,1,240,1,240,1,241,1,241,1,241,1,241,1,241,1,241,1,241,1,242,1,242,1,242,1,243,1,243,1,243,1,243,1,243,1,243,1,243,1,244,1,244,1,244,1,244,1,245,1,245,1,245,1,245,1,245,5,245,3179,8,245,10,245,12,245,3182,9,245,1,245,1,245,1,246,1,246,1,246,1,246,1,246,5,246,3191,8,246,10,246,12,246,3194,9,246,1,246,1,246,1,247,1,247,1,247,1,248,1,248,1,248,1,248,1,249,1,249,1,249,1,249,1,250,1,250,1,250,1,250,1,250,1,250,1,251,1,251,1,251,1,252,1,252,1,252,1,252,1,252,1,253,1,253,1,253,1,253,1,254,1,254,1,254,1,254,1,254,1,255,1,255,1,255,3,255,3235,8,255,1,255,1,255,1,256,1,256,1,256,1,257,3,257,3243,8,257,1,257,3,257,3246,8,257,1,257,1,257,3,257,3250,8,257,1,258,1,258,3,258,3254,8,258,1,259,1,259,1,259,1,259,1,259,1,259,5,259,3262,8,259,10,259,12,259,3265,9,259,1,259,1,259,1,259,1,259,1,259,1,259,1,259,1,259,5,259,3275,8,259,10,259,12,259,3278,9,259,1,259,1,259,1,259,1,259,1,259,1,259,1,259,1,259,5,259,3288,8,259,10,259,12,259,3291,9,259,1,259,1,259,3,259,3295,8,259,1,260,1,260,1,260,1,260,1,260,1,260,1,260,1,260,5,260,3305,8,260,10,260,12,260,3308,9,260,1,260,1,260,1,260,1,260,1,260,1,260,5,260,3316,8,260,10,260,12,260,3319,9,260,1,260,1,260,3,260,3323,8,260,1,260,3,260,3326,8,260,1,261,1,261,3,261,3330,8,261,1,261,1,261,3,261,3334,8,261,1,262,1,262,3,262,3338,8,262,1,262,3,262,3341,8,262,1,263,1,263,1,264,1,264,1,265,1,265,1,265,1,265,1,265,5,265,3352,8,265,10,265,12,265,3355,9,265,1,265,3,265,3358,8,265,1,265,1,265,1,266,1,266,1,266,1,266,1,267,1,267,1,267,1,267,3,267,3370,8,267,1,268,1,268,1,268,1,268,1,268,1,268,1,268,1,269,1,269,1,269,5,269,3382,8,269,10,269,12,269,3385,9,269,1,270,1,270,1,270,1,270,1,271,1,271,1,272,1,272,1,272,1,272,1,272,1,272,3,272,3399,8,272,1,273,1,273,1,273,1,273,1,274,1,274,1,274,1,274,1,274,1,274,1,274,1,274,1,274,3,274,3414,8,274,1,274,3,274,3417,8,274,1,275,1,275,1,275,1,275,1,275,1,275,5,275,3425,8,275,10,275,12,275,3428,9,275,3,275,3430,8,275,1,276,1,276,1,276,1,276,1,276,1,276,3,276,3438,8,276,1,277,1,277,1,277,1,277,1,278,1,278,1,278,1,278,5,278,3448,8,278,10,278,12,278,3451,9,278,3,278,3453,8,278,1,278,1,278,1,279,1,279,1,279,1,279,1,280,1,280,3,280,3463,8,280,1,281,1,281,1,281,1,281,5,281,3469,8,281,10,281,12,281,3472,9,281,1,281,1,281,1,281,3,281,3477,8,281,1,282,1,282,1,282,1,282,5,282,3483,8,282,10,282,12,282,3486,9,282,1,282,1,282,1,283,1,283,1,283,3,283,3493,8,283,1,284,1,284,1,284,1,284,1,284,3,284,3500,8,284,1,284,1,284,3,284,3504,8,284,1,284,1,284,1,285,1,285,1,285,1,285,5,285,3512,8,285,10,285,12,285,3515,9,285,1,286,1,286,1,286,1,286,3,286,3521,8,286,1,286,4,286,3524,8,286,11,286,12,286,3525,1,286,1,286,1,286,3,286,3531,8,286,1,287,1,287,1,287,1,287,1,287,1,287,1,287,1,287,5,287,3541,8,287,10,287,12,287,3544,9,287,1,287,3,287,3547,8,287,3,287,3549,8,287,1,288,1,288,1,288,1,288,1,288,1,288,1,288,1,288,5,288,3559,8,288,10,288,12,288,3562,9,288,1,288,3,288,3565,8,288,1,288,1,288,1,288,3,288,3570,8,288,1,289,1,289,1,289,1,289,3,289,3576,8,289,1,289,1,289,1,289,5,289,3581,8,289,10,289,12,289,3584,9,289,1,289,3,289,3587,8,289,1,290,1,290,3,290,3591,8,290,1,291,1,291,3,291,3595,8,291,1,292,1,292,3,292,3599,8,292,1,293,3,293,3602,8,293,1,293,1,293,1,293,1,294,1,294,1,294,1,295,1,295,1,296,1,296,1,296,1,296,1,296,1,296,5,296,3618,8,296,10,296,12,296,3621,9,296,1,296,1,296,1,296,1,296,5,296,3627,8,296,10,296,12,296,3630,9,296,1,296,3,296,3633,8,296,1,296,1,296,1,296,3,296,3638,8,296,1,297,1,297,1,297,1,297,3,297,3644,8,297,1,297,1,297,1,297,1,297,1,297,5,297,3651,8,297,10,297,12,297,3654,9,297,1,297,1,297,1,297,1,297,5,297,3660,8,297,10,297,12,297,3663,9,297,1,298,1,298,1,298,1,298,1,298,1,298,1,298,1,298,1,298,1,298,1,298,1,298,1,298,1,298,3,298,3679,8,298,1,298,1,298,3,298,3683,8,298,1,298,1,298,3,298,3687,8,298,3,298,3689,8,298,1,299,1,299,3,299,3693,8,299,1,300,1,300,1,300,5,300,3698,8,300,10,300,12,300,3701,9,300,1,300,3,300,3704,8,300,1,300,1,300,3,300,3708,8,300,3,300,3710,8,300,1,301,1,301,1,301,1,301,1,301,1,301,1,302,1,302,1,302,1,302,1,302,1,302,1,302,5,302,3725,8,302,10,302,12,302,3728,9,302,1,303,1,303,3,303,3732,8,303,1,304,1,304,1,304,1,304,1,304,1,305,1,305,1,305,1,305,1,305,1,305,1,305,1,306,1,306,1,306,1,306,1,306,1,306,1,306,1,306,5,306,3754,8,306,10,306,12,306,3757,9,306,1,307,1,307,3,307,3761,8,307,1,308,1,308,1,308,1,308,1,308,1,308,1,309,1,309,1,309,1,309,1,309,1,309,1,309,1,309,5,309,3777,8,309,10,309,12,309,3780,9,309,1,309,1,309,1,309,1,309,1,309,1,310,1,310,1,310,1,311,1,311,1,311,5,311,3793,8,311,10,311,12,311,3796,9,311,1,312,1,312,1,312,1,312,1,313,1,313,1,313,1,313,1,313,1,313,1,313,5,313,3809,8,313,10,313,12,313,3812,9,313,1,314,1,314,1,315,1,315,1,315,1,315,1,315,1,316,1,316,1,316,1,316,1,316,3,316,3826,8,316,1,317,1,317,3,317,3830,8,317,1,318,1,318,1,318,1,318,1,318,1,318,1,318,1,318,1,318,3,318,3841,8,318,1,318,1,318,1,318,1,318,1,318,1,319,1,319,1,319,5,319,3851,8,319,10,319,12,319,3854,9,319,1,320,1,320,1,320,1,320,1,321,1,321,1,321,1,321,1,321,1,321,5,321,3866,8,321,10,321,12,321,3869,9,321,1,322,1,322,3,322,3873,8,322,1,323,1,323,1,323,1,323,1,323,1,324,1,324,1,324,1,324,1,325,1,325,1,325,1,325,3,325,3888,8,325,1,326,1,326,1,326,5,326,3893,8,326,10,326,12,326,3896,9,326,1,327,1,327,1,327,1,327,1,327,3,327,3903,8,327,1,327,1,327,1,327,1,327,1,327,1,327,1,328,5,328,3912,8,328,10,328,12,328,3915,9,328,1,328,1,328,4,328,3919,8,328,11,328,12,328,3920,1,328,5,328,3924,8,328,10,328,12,328,3927,9,328,1,328,5,328,3930,8,328,10,328,12,328,3933,9,328,3,328,3935,8,328,1,329,3,329,3938,8,329,1,329,1,329,1,329,1,329,1,329,3,329,3945,8,329,1,330,3,330,3948,8,330,1,330,3,330,3951,8,330,1,330,1,330,1,330,1,330,1,330,1,330,1,330,3,330,3960,8,330,1,331,1,331,1,331,3,331,3965,8,331,1,331,3,331,3968,8,331,1,331,1,331,1,331,1,331,1,331,1,331,5,331,3976,8,331,10,331,12,331,3979,9,331,1,331,3,331,3982,8,331,3,331,3984,8,331,1,331,1,331,1,331,1,331,1,331,3,331,3991,8,331,1,331,3,331,3994,8,331,1,331,1,331,3,331,3998,8,331,3,331,4e3,8,331,1,331,3,331,4003,8,331,1,332,1,332,1,332,3,332,4008,8,332,1,333,3,333,4011,8,333,1,333,1,333,1,333,3,333,4016,8,333,1,334,1,334,1,334,1,334,1,334,1,334,5,334,4024,8,334,10,334,12,334,4027,9,334,1,334,1,334,3,334,4031,8,334,1,335,1,335,1,335,1,335,1,335,1,335,1,335,5,335,4040,8,335,10,335,12,335,4043,9,335,1,335,3,335,4046,8,335,1,335,1,335,3,335,4050,8,335,3,335,4052,8,335,1,335,1,335,3,335,4056,8,335,1,335,1,335,1,335,3,335,4061,8,335,1,335,1,335,1,335,1,335,5,335,4067,8,335,10,335,12,335,4070,9,335,3,335,4072,8,335,1,335,3,335,4075,8,335,1,335,3,335,4078,8,335,1,336,1,336,1,336,3,336,4083,8,336,1,336,1,336,1,337,1,337,3,337,4089,8,337,1,337,3,337,4092,8,337,1,338,1,338,3,338,4096,8,338,1,339,1,339,1,339,1,339,3,339,4102,8,339,1,340,3,340,4105,8,340,1,340,1,340,1,340,1,340,1,340,1,340,3,340,4113,8,340,1,340,3,340,4116,8,340,1,341,3,341,4119,8,341,1,341,1,341,1,341,1,341,1,341,3,341,4126,8,341,1,341,1,341,3,341,4130,8,341,1,341,3,341,4133,8,341,1,342,1,342,3,342,4137,8,342,1,343,1,343,1,343,5,343,4142,8,343,10,343,12,343,4145,9,343,1,344,1,344,1,344,1,344,1,345,1,345,1,346,1,346,1,346,1,346,1,346,1,346,1,347,1,347,1,347,1,347,5,347,4163,8,347,10,347,12,347,4166,9,347,1,347,1,347,1,348,1,348,1,348,1,348,1,348,3,348,4175,8,348,1,348,1,348,3,348,4179,8,348,1,348,3,348,4182,8,348,1,349,1,349,1,349,1,349,5,349,4188,8,349,10,349,12,349,4191,9,349,1,349,1,349,1,350,1,350,1,351,1,351,1,351,1,351,1,351,1,352,1,352,1,352,1,352,3,352,4206,8,352,1,352,1,352,1,352,1,352,5,352,4212,8,352,10,352,12,352,4215,9,352,1,353,1,353,1,353,1,353,1,353,3,353,4222,8,353,1,354,1,354,1,354,1,355,1,355,1,355,3,355,4230,8,355,1,356,1,356,1,356,1,356,1,356,1,357,1,357,3,357,4239,8,357,1,358,1,358,1,358,1,358,1,359,1,359,1,359,1,359,1,359,1,360,1,360,1,360,1,360,1,360,5,360,4255,8,360,10,360,12,360,4258,9,360,1,360,1,360,1,361,1,361,1,361,1,361,1,361,1,362,1,362,1,362,1,362,1,362,5,362,4272,8,362,10,362,12,362,4275,9,362,1,362,1,362,1,363,1,363,1,363,1,363,3,363,4283,8,363,1,363,1,363,1,364,1,364,1,364,5,364,4290,8,364,10,364,12,364,4293,9,364,1,365,1,365,1,365,1,365,1,366,1,366,1,367,1,367,1,367,1,367,1,367,1,368,1,368,1,368,5,368,4309,8,368,10,368,12,368,4312,9,368,1,369,1,369,1,369,1,369,1,370,1,370,1,371,1,371,1,371,3,371,4323,8,371,1,371,1,371,1,372,1,372,1,373,1,373,1,373,1,373,3,373,4333,8,373,1,374,1,374,1,374,1,374,1,374,1,375,1,375,3,375,4342,8,375,1,376,1,376,1,377,1,377,1,377,1,378,1,378,1,378,5,378,4352,8,378,10,378,12,378,4355,9,378,1,379,1,379,1,379,1,379,1,380,1,380,1,381,1,381,1,381,1,381,1,382,3,382,4368,8,382,1,382,3,382,4371,8,382,1,382,3,382,4374,8,382,1,382,3,382,4377,8,382,1,383,1,383,1,384,1,384,3,384,4383,8,384,1,384,1,384,1,384,1,385,1,385,1,386,1,386,1,386,3,386,4393,8,386,1,387,1,387,1,388,1,388,3,388,4399,8,388,1,389,1,389,1,389,1,389,1,389,1,390,1,390,1,390,1,390,3,390,4410,8,390,1,390,3,390,4413,8,390,1,391,1,391,1,391,1,391,1,391,1,391,1,391,1,391,1,391,1,391,3,391,4425,8,391,1,392,1,392,1,392,1,393,1,393,1,393,1,393,1,393,3,393,4435,8,393,1,394,1,394,1,394,1,394,3,394,4441,8,394,1,395,1,395,1,396,1,396,1,397,1,397,1,397,1,397,1,397,3,397,4452,8,397,1,398,1,398,1,398,5,398,4457,8,398,10,398,12,398,4460,9,398,1,398,3,398,4463,8,398,1,399,1,399,1,399,1,400,1,400,1,400,1,400,3,400,4472,8,400,1,400,1,400,4,400,4476,8,400,11,400,12,400,4477,1,401,1,401,3,401,4482,8,401,1,401,1,401,1,401,3,401,4487,8,401,1,401,1,401,1,401,1,401,3,401,4493,8,401,1,401,3,401,4496,8,401,1,402,1,402,1,403,1,403,3,403,4502,8,403,1,404,1,404,1,404,1,404,1,404,1,404,1,404,3,404,4511,8,404,1,405,1,405,1,405,1,405,1,405,1,405,3,405,4519,8,405,1,406,1,406,1,406,1,406,1,406,3,406,4526,8,406,1,407,1,407,1,407,1,407,1,407,1,407,1,407,1,407,3,407,4536,8,407,1,408,1,408,1,408,1,408,1,408,1,408,1,408,3,408,4545,8,408,1,409,1,409,1,409,1,409,1,409,1,409,1,409,3,409,4554,8,409,1,410,1,410,1,410,1,410,1,410,1,410,1,410,1,410,3,410,4564,8,410,1,411,1,411,3,411,4568,8,411,1,412,1,412,3,412,4572,8,412,1,413,1,413,3,413,4576,8,413,1,414,1,414,3,414,4580,8,414,1,415,1,415,3,415,4584,8,415,1,416,1,416,3,416,4588,8,416,1,417,1,417,3,417,4592,8,417,1,418,1,418,3,418,4596,8,418,1,419,1,419,3,419,4600,8,419,1,420,1,420,3,420,4604,8,420,1,421,1,421,3,421,4608,8,421,1,422,1,422,3,422,4612,8,422,1,423,1,423,1,423,3,423,4617,8,423,1,424,1,424,1,424,3,424,4622,8,424,1,425,1,425,1,425,3,425,4627,8,425,1,425,1,425,3,425,4631,8,425,1,426,1,426,3,426,4635,8,426,1,427,1,427,1,427,3,427,4640,8,427,1,428,3,428,4643,8,428,1,428,1,428,1,429,1,429,3,429,4649,8,429,1,430,3,430,4652,8,430,1,430,1,430,1,431,1,431,1,431,1,431,1,431,1,431,1,431,1,431,3,431,4664,8,431,1,432,1,432,1,433,1,433,1,434,1,434,1,435,1,435,1,436,1,436,1,437,1,437,1,438,1,438,1,439,1,439,1,440,1,440,1,441,1,441,1,442,1,442,1,443,1,443,1,444,1,444,1,445,1,445,1,445,1,445,1,445,3,445,4697,8,445,1,446,5,446,4700,8,446,10,446,12,446,4703,9,446,1,446,1,446,4,446,4707,8,446,11,446,12,446,4708,1,446,5,446,4712,8,446,10,446,12,446,4715,9,446,1,446,5,446,4718,8,446,10,446,12,446,4721,9,446,1,446,1,446,1,447,1,447,1,447,3,447,4728,8,447,3,447,4730,8,447,1,447,1,447,1,448,1,448,1,448,1,448,1,448,1,448,1,448,1,448,1,448,1,448,1,448,1,448,1,448,3,448,4747,8,448,1,449,1,449,1,449,1,450,1,450,1,450,1,450,0,0,451,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,118,120,122,124,126,128,130,132,134,136,138,140,142,144,146,148,150,152,154,156,158,160,162,164,166,168,170,172,174,176,178,180,182,184,186,188,190,192,194,196,198,200,202,204,206,208,210,212,214,216,218,220,222,224,226,228,230,232,234,236,238,240,242,244,246,248,250,252,254,256,258,260,262,264,266,268,270,272,274,276,278,280,282,284,286,288,290,292,294,296,298,300,302,304,306,308,310,312,314,316,318,320,322,324,326,328,330,332,334,336,338,340,342,344,346,348,350,352,354,356,358,360,362,364,366,368,370,372,374,376,378,380,382,384,386,388,390,392,394,396,398,400,402,404,406,408,410,412,414,416,418,420,422,424,426,428,430,432,434,436,438,440,442,444,446,448,450,452,454,456,458,460,462,464,466,468,470,472,474,476,478,480,482,484,486,488,490,492,494,496,498,500,502,504,506,508,510,512,514,516,518,520,522,524,526,528,530,532,534,536,538,540,542,544,546,548,550,552,554,556,558,560,562,564,566,568,570,572,574,576,578,580,582,584,586,588,590,592,594,596,598,600,602,604,606,608,610,612,614,616,618,620,622,624,626,628,630,632,634,636,638,640,642,644,646,648,650,652,654,656,658,660,662,664,666,668,670,672,674,676,678,680,682,684,686,688,690,692,694,696,698,700,702,704,706,708,710,712,714,716,718,720,722,724,726,728,730,732,734,736,738,740,742,744,746,748,750,752,754,756,758,760,762,764,766,768,770,772,774,776,778,780,782,784,786,788,790,792,794,796,798,800,802,804,806,808,810,812,814,816,818,820,822,824,826,828,830,832,834,836,838,840,842,844,846,848,850,852,854,856,858,860,862,864,866,868,870,872,874,876,878,880,882,884,886,888,890,892,894,896,898,900,0,40,2,0,52,52,283,283,6,0,144,144,155,155,181,181,187,187,239,239,259,259,1,0,5,8,1,0,16,17,1,0,19,21,2,0,16,18,199,199,2,0,114,114,120,120,4,0,120,120,132,132,300,300,307,307,2,0,80,80,304,304,2,0,50,50,102,102,2,0,24,24,205,205,2,0,42,42,109,109,2,0,164,164,268,268,3,0,105,105,183,183,211,211,2,0,64,64,285,285,2,0,209,209,270,270,2,0,53,53,284,284,3,0,191,192,194,194,267,267,2,0,40,40,111,111,2,0,147,147,312,312,2,0,185,185,198,198,2,0,56,56,287,287,2,0,119,119,309,309,3,0,43,43,103,103,242,242,3,0,56,56,262,262,287,287,2,0,142,142,311,311,3,0,106,106,234,234,286,286,2,0,39,39,280,280,2,0,77,77,266,266,3,0,149,149,236,236,263,263,2,0,138,138,228,228,1,0,327,328,20,0,52,52,65,66,70,71,88,88,90,92,115,115,127,127,141,142,152,152,174,176,199,199,201,201,232,232,237,237,254,255,261,261,269,269,283,283,303,303,319,320,3,0,47,47,119,119,278,278,11,0,42,42,49,49,51,51,109,109,123,123,151,151,169,169,182,182,305,305,321,321,323,323,57,0,38,41,43,46,48,48,50,50,53,57,59,64,67,67,69,69,72,74,78,78,80,86,89,89,93,99,101,104,106,108,111,114,116,117,120,122,124,124,126,126,128,131,133,136,138,140,143,148,150,150,153,165,167,168,170,171,178,178,180,181,184,194,196,198,202,206,208,210,212,212,214,214,217,228,230,231,233,235,238,243,245,247,249,252,256,257,259,260,262,262,265,265,267,268,272,277,280,282,284,289,291,299,302,302,304,304,306,312,314,315,318,318,324,325,49,0,38,41,43,46,48,48,50,50,53,57,59,64,67,67,69,69,72,75,78,78,80,87,89,89,93,104,106,108,110,114,116,117,120,122,124,126,128,131,133,136,138,140,143,148,150,150,153,168,170,173,177,181,184,198,200,200,202,210,212,231,233,235,238,243,245,247,249,253,256,260,262,262,264,265,267,268,270,270,272,277,280,282,284,289,291,299,302,302,304,304,306,315,317,318,322,322,324,325,12,0,68,68,105,105,118,118,137,137,183,183,211,211,248,248,271,271,279,279,290,290,301,301,316,316,2,0,132,132,300,300,1,0,329,330,5094,0,907,1,0,0,0,2,912,1,0,0,0,4,938,1,0,0,0,6,946,1,0,0,0,8,970,1,0,0,0,10,977,1,0,0,0,12,1041,1,0,0,0,14,1052,1,0,0,0,16,1054,1,0,0,0,18,1062,1,0,0,0,20,1070,1,0,0,0,22,1074,1,0,0,0,24,1132,1,0,0,0,26,1134,1,0,0,0,28,1136,1,0,0,0,30,1144,1,0,0,0,32,1147,1,0,0,0,34,1151,1,0,0,0,36,1154,1,0,0,0,38,1180,1,0,0,0,40,1188,1,0,0,0,42,1196,1,0,0,0,44,1208,1,0,0,0,46,1210,1,0,0,0,48,1224,1,0,0,0,50,1233,1,0,0,0,52,1239,1,0,0,0,54,1245,1,0,0,0,56,1249,1,0,0,0,58,1251,1,0,0,0,60,1260,1,0,0,0,62,1276,1,0,0,0,64,1285,1,0,0,0,66,1298,1,0,0,0,68,1324,1,0,0,0,70,1346,1,0,0,0,72,1348,1,0,0,0,74,1355,1,0,0,0,76,1362,1,0,0,0,78,1370,1,0,0,0,80,1385,1,0,0,0,82,1399,1,0,0,0,84,1404,1,0,0,0,86,1406,1,0,0,0,88,1410,1,0,0,0,90,1412,1,0,0,0,92,1416,1,0,0,0,94,1424,1,0,0,0,96,1435,1,0,0,0,98,1437,1,0,0,0,100,1455,1,0,0,0,102,1459,1,0,0,0,104,1478,1,0,0,0,106,1486,1,0,0,0,108,1488,1,0,0,0,110,1510,1,0,0,0,112,1519,1,0,0,0,114,1527,1,0,0,0,116,1540,1,0,0,0,118,1542,1,0,0,0,120,1553,1,0,0,0,122,1561,1,0,0,0,124,1563,1,0,0,0,126,1574,1,0,0,0,128,1585,1,0,0,0,130,1590,1,0,0,0,132,1598,1,0,0,0,134,1612,1,0,0,0,136,1626,1,0,0,0,138,1630,1,0,0,0,140,1634,1,0,0,0,142,1649,1,0,0,0,144,1651,1,0,0,0,146,1657,1,0,0,0,148,1661,1,0,0,0,150,1669,1,0,0,0,152,1674,1,0,0,0,154,1683,1,0,0,0,156,1689,1,0,0,0,158,1693,1,0,0,0,160,1698,1,0,0,0,162,1700,1,0,0,0,164,1716,1,0,0,0,166,1721,1,0,0,0,168,1725,1,0,0,0,170,1731,1,0,0,0,172,1739,1,0,0,0,174,1746,1,0,0,0,176,1751,1,0,0,0,178,1770,1,0,0,0,180,1789,1,0,0,0,182,1804,1,0,0,0,184,1809,1,0,0,0,186,1814,1,0,0,0,188,1819,1,0,0,0,190,1826,1,0,0,0,192,1831,1,0,0,0,194,1846,1,0,0,0,196,1851,1,0,0,0,198,1858,1,0,0,0,200,1891,1,0,0,0,202,1910,1,0,0,0,204,1914,1,0,0,0,206,1916,1,0,0,0,208,1941,1,0,0,0,210,1943,1,0,0,0,212,1952,1,0,0,0,214,1962,1,0,0,0,216,1967,1,0,0,0,218,1972,1,0,0,0,220,1980,1,0,0,0,222,1985,1,0,0,0,224,1990,1,0,0,0,226,2013,1,0,0,0,228,2015,1,0,0,0,230,2019,1,0,0,0,232,2027,1,0,0,0,234,2036,1,0,0,0,236,2050,1,0,0,0,238,2058,1,0,0,0,240,2060,1,0,0,0,242,2070,1,0,0,0,244,2082,1,0,0,0,246,2117,1,0,0,0,248,2121,1,0,0,0,250,2129,1,0,0,0,252,2165,1,0,0,0,254,2169,1,0,0,0,256,2211,1,0,0,0,258,2239,1,0,0,0,260,2250,1,0,0,0,262,2252,1,0,0,0,264,2255,1,0,0,0,266,2263,1,0,0,0,268,2270,1,0,0,0,270,2304,1,0,0,0,272,2306,1,0,0,0,274,2308,1,0,0,0,276,2310,1,0,0,0,278,2319,1,0,0,0,280,2323,1,0,0,0,282,2355,1,0,0,0,284,2372,1,0,0,0,286,2374,1,0,0,0,288,2376,1,0,0,0,290,2388,1,0,0,0,292,2391,1,0,0,0,294,2399,1,0,0,0,296,2405,1,0,0,0,298,2407,1,0,0,0,300,2415,1,0,0,0,302,2417,1,0,0,0,304,2425,1,0,0,0,306,2429,1,0,0,0,308,2431,1,0,0,0,310,2433,1,0,0,0,312,2435,1,0,0,0,314,2437,1,0,0,0,316,2442,1,0,0,0,318,2446,1,0,0,0,320,2457,1,0,0,0,322,2470,1,0,0,0,324,2472,1,0,0,0,326,2474,1,0,0,0,328,2482,1,0,0,0,330,2487,1,0,0,0,332,2492,1,0,0,0,334,2498,1,0,0,0,336,2518,1,0,0,0,338,2521,1,0,0,0,340,2537,1,0,0,0,342,2550,1,0,0,0,344,2552,1,0,0,0,346,2564,1,0,0,0,348,2591,1,0,0,0,350,2593,1,0,0,0,352,2596,1,0,0,0,354,2604,1,0,0,0,356,2606,1,0,0,0,358,2635,1,0,0,0,360,2641,1,0,0,0,362,2643,1,0,0,0,364,2667,1,0,0,0,366,2686,1,0,0,0,368,2698,1,0,0,0,370,2700,1,0,0,0,372,2705,1,0,0,0,374,2707,1,0,0,0,376,2715,1,0,0,0,378,2721,1,0,0,0,380,2723,1,0,0,0,382,2739,1,0,0,0,384,2755,1,0,0,0,386,2757,1,0,0,0,388,2767,1,0,0,0,390,2781,1,0,0,0,392,2789,1,0,0,0,394,2799,1,0,0,0,396,2814,1,0,0,0,398,2817,1,0,0,0,400,2826,1,0,0,0,402,2829,1,0,0,0,404,2843,1,0,0,0,406,2850,1,0,0,0,408,2852,1,0,0,0,410,2856,1,0,0,0,412,2860,1,0,0,0,414,2874,1,0,0,0,416,2876,1,0,0,0,418,2878,1,0,0,0,420,2933,1,0,0,0,422,2935,1,0,0,0,424,2945,1,0,0,0,426,2951,1,0,0,0,428,2956,1,0,0,0,430,2958,1,0,0,0,432,2962,1,0,0,0,434,2972,1,0,0,0,436,2982,1,0,0,0,438,2984,1,0,0,0,440,3002,1,0,0,0,442,3004,1,0,0,0,444,3008,1,0,0,0,446,3016,1,0,0,0,448,3020,1,0,0,0,450,3025,1,0,0,0,452,3031,1,0,0,0,454,3043,1,0,0,0,456,3048,1,0,0,0,458,3060,1,0,0,0,460,3063,1,0,0,0,462,3067,1,0,0,0,464,3070,1,0,0,0,466,3098,1,0,0,0,468,3100,1,0,0,0,470,3117,1,0,0,0,472,3119,1,0,0,0,474,3132,1,0,0,0,476,3134,1,0,0,0,478,3140,1,0,0,0,480,3146,1,0,0,0,482,3152,1,0,0,0,484,3159,1,0,0,0,486,3162,1,0,0,0,488,3169,1,0,0,0,490,3173,1,0,0,0,492,3185,1,0,0,0,494,3197,1,0,0,0,496,3200,1,0,0,0,498,3204,1,0,0,0,500,3208,1,0,0,0,502,3214,1,0,0,0,504,3217,1,0,0,0,506,3222,1,0,0,0,508,3226,1,0,0,0,510,3231,1,0,0,0,512,3238,1,0,0,0,514,3245,1,0,0,0,516,3251,1,0,0,0,518,3294,1,0,0,0,520,3296,1,0,0,0,522,3329,1,0,0,0,524,3335,1,0,0,0,526,3342,1,0,0,0,528,3344,1,0,0,0,530,3346,1,0,0,0,532,3361,1,0,0,0,534,3369,1,0,0,0,536,3371,1,0,0,0,538,3378,1,0,0,0,540,3386,1,0,0,0,542,3390,1,0,0,0,544,3398,1,0,0,0,546,3400,1,0,0,0,548,3416,1,0,0,0,550,3418,1,0,0,0,552,3437,1,0,0,0,554,3439,1,0,0,0,556,3443,1,0,0,0,558,3456,1,0,0,0,560,3462,1,0,0,0,562,3476,1,0,0,0,564,3478,1,0,0,0,566,3492,1,0,0,0,568,3494,1,0,0,0,570,3507,1,0,0,0,572,3516,1,0,0,0,574,3532,1,0,0,0,576,3550,1,0,0,0,578,3571,1,0,0,0,580,3590,1,0,0,0,582,3594,1,0,0,0,584,3598,1,0,0,0,586,3601,1,0,0,0,588,3606,1,0,0,0,590,3609,1,0,0,0,592,3611,1,0,0,0,594,3639,1,0,0,0,596,3688,1,0,0,0,598,3692,1,0,0,0,600,3709,1,0,0,0,602,3711,1,0,0,0,604,3717,1,0,0,0,606,3731,1,0,0,0,608,3733,1,0,0,0,610,3738,1,0,0,0,612,3745,1,0,0,0,614,3760,1,0,0,0,616,3762,1,0,0,0,618,3768,1,0,0,0,620,3786,1,0,0,0,622,3789,1,0,0,0,624,3797,1,0,0,0,626,3801,1,0,0,0,628,3813,1,0,0,0,630,3815,1,0,0,0,632,3820,1,0,0,0,634,3829,1,0,0,0,636,3831,1,0,0,0,638,3847,1,0,0,0,640,3855,1,0,0,0,642,3859,1,0,0,0,644,3872,1,0,0,0,646,3874,1,0,0,0,648,3879,1,0,0,0,650,3883,1,0,0,0,652,3889,1,0,0,0,654,3897,1,0,0,0,656,3913,1,0,0,0,658,3937,1,0,0,0,660,3947,1,0,0,0,662,3964,1,0,0,0,664,4004,1,0,0,0,666,4010,1,0,0,0,668,4017,1,0,0,0,670,4077,1,0,0,0,672,4082,1,0,0,0,674,4091,1,0,0,0,676,4093,1,0,0,0,678,4097,1,0,0,0,680,4104,1,0,0,0,682,4118,1,0,0,0,684,4136,1,0,0,0,686,4138,1,0,0,0,688,4146,1,0,0,0,690,4150,1,0,0,0,692,4152,1,0,0,0,694,4158,1,0,0,0,696,4169,1,0,0,0,698,4183,1,0,0,0,700,4194,1,0,0,0,702,4196,1,0,0,0,704,4201,1,0,0,0,706,4221,1,0,0,0,708,4223,1,0,0,0,710,4226,1,0,0,0,712,4231,1,0,0,0,714,4238,1,0,0,0,716,4240,1,0,0,0,718,4244,1,0,0,0,720,4249,1,0,0,0,722,4261,1,0,0,0,724,4266,1,0,0,0,726,4278,1,0,0,0,728,4286,1,0,0,0,730,4294,1,0,0,0,732,4298,1,0,0,0,734,4300,1,0,0,0,736,4305,1,0,0,0,738,4313,1,0,0,0,740,4317,1,0,0,0,742,4322,1,0,0,0,744,4326,1,0,0,0,746,4332,1,0,0,0,748,4334,1,0,0,0,750,4341,1,0,0,0,752,4343,1,0,0,0,754,4345,1,0,0,0,756,4348,1,0,0,0,758,4356,1,0,0,0,760,4360,1,0,0,0,762,4362,1,0,0,0,764,4367,1,0,0,0,766,4378,1,0,0,0,768,4380,1,0,0,0,770,4387,1,0,0,0,772,4389,1,0,0,0,774,4394,1,0,0,0,776,4398,1,0,0,0,778,4400,1,0,0,0,780,4412,1,0,0,0,782,4424,1,0,0,0,784,4426,1,0,0,0,786,4434,1,0,0,0,788,4436,1,0,0,0,790,4442,1,0,0,0,792,4444,1,0,0,0,794,4446,1,0,0,0,796,4453,1,0,0,0,798,4464,1,0,0,0,800,4467,1,0,0,0,802,4495,1,0,0,0,804,4497,1,0,0,0,806,4501,1,0,0,0,808,4510,1,0,0,0,810,4518,1,0,0,0,812,4525,1,0,0,0,814,4535,1,0,0,0,816,4544,1,0,0,0,818,4553,1,0,0,0,820,4563,1,0,0,0,822,4567,1,0,0,0,824,4571,1,0,0,0,826,4575,1,0,0,0,828,4579,1,0,0,0,830,4583,1,0,0,0,832,4587,1,0,0,0,834,4591,1,0,0,0,836,4595,1,0,0,0,838,4599,1,0,0,0,840,4603,1,0,0,0,842,4607,1,0,0,0,844,4611,1,0,0,0,846,4616,1,0,0,0,848,4621,1,0,0,0,850,4626,1,0,0,0,852,4634,1,0,0,0,854,4639,1,0,0,0,856,4642,1,0,0,0,858,4648,1,0,0,0,860,4651,1,0,0,0,862,4663,1,0,0,0,864,4665,1,0,0,0,866,4667,1,0,0,0,868,4669,1,0,0,0,870,4671,1,0,0,0,872,4673,1,0,0,0,874,4675,1,0,0,0,876,4677,1,0,0,0,878,4679,1,0,0,0,880,4681,1,0,0,0,882,4683,1,0,0,0,884,4685,1,0,0,0,886,4687,1,0,0,0,888,4689,1,0,0,0,890,4696,1,0,0,0,892,4701,1,0,0,0,894,4729,1,0,0,0,896,4746,1,0,0,0,898,4748,1,0,0,0,900,4751,1,0,0,0,902,908,3,2,1,0,903,904,5,227,0,0,904,905,5,46,0,0,905,906,5,329,0,0,906,908,3,4,2,0,907,902,1,0,0,0,907,903,1,0,0,0,908,1,1,0,0,0,909,911,5,22,0,0,910,909,1,0,0,0,911,914,1,0,0,0,912,910,1,0,0,0,912,913,1,0,0,0,913,915,1,0,0,0,914,912,1,0,0,0,915,924,3,10,5,0,916,918,5,22,0,0,917,916,1,0,0,0,918,919,1,0,0,0,919,917,1,0,0,0,919,920,1,0,0,0,920,921,1,0,0,0,921,923,3,10,5,0,922,917,1,0,0,0,923,926,1,0,0,0,924,922,1,0,0,0,924,925,1,0,0,0,925,930,1,0,0,0,926,924,1,0,0,0,927,929,5,22,0,0,928,927,1,0,0,0,929,932,1,0,0,0,930,928,1,0,0,0,930,931,1,0,0,0,931,933,1,0,0,0,932,930,1,0,0,0,933,934,5,0,0,1,934,3,1,0,0,0,935,937,5,22,0,0,936,935,1,0,0,0,937,940,1,0,0,0,938,936,1,0,0,0,938,939,1,0,0,0,939,941,1,0,0,0,940,938,1,0,0,0,941,942,5,0,0,1,942,5,1,0,0,0,943,945,5,22,0,0,944,943,1,0,0,0,945,948,1,0,0,0,946,944,1,0,0,0,946,947,1,0,0,0,947,957,1,0,0,0,948,946,1,0,0,0,949,951,3,8,4,0,950,952,5,22,0,0,951,950,1,0,0,0,952,953,1,0,0,0,953,951,1,0,0,0,953,954,1,0,0,0,954,956,1,0,0,0,955,949,1,0,0,0,956,959,1,0,0,0,957,955,1,0,0,0,957,958,1,0,0,0,958,960,1,0,0,0,959,957,1,0,0,0,960,961,5,254,0,0,961,965,3,14,7,0,962,964,5,22,0,0,963,962,1,0,0,0,964,967,1,0,0,0,965,963,1,0,0,0,965,966,1,0,0,0,966,7,1,0,0,0,967,965,1,0,0,0,968,971,3,788,394,0,969,971,3,214,107,0,970,968,1,0,0,0,970,969,1,0,0,0,971,9,1,0,0,0,972,975,5,128,0,0,973,974,5,233,0,0,974,976,5,225,0,0,975,973,1,0,0,0,975,976,1,0,0,0,976,978,1,0,0,0,977,972,1,0,0,0,977,978,1,0,0,0,978,979,1,0,0,0,979,980,3,12,6,0,980,11,1,0,0,0,981,1042,3,224,112,0,982,1042,3,232,116,0,983,1042,3,788,394,0,984,1042,3,418,209,0,985,1042,3,568,284,0,986,1042,3,784,392,0,987,1042,3,364,182,0,988,1042,3,790,395,0,989,1042,3,682,341,0,990,1042,3,680,340,0,991,1042,3,792,396,0,992,1042,3,210,105,0,993,1042,3,214,107,0,994,1042,3,216,108,0,995,1042,3,464,232,0,996,1042,3,468,234,0,997,1042,3,222,111,0,998,1042,3,654,327,0,999,1042,3,658,329,0,1e3,1042,3,660,330,0,1001,1042,3,370,185,0,1002,1042,3,570,285,0,1003,1042,3,572,286,0,1004,1042,3,574,287,0,1005,1042,3,576,288,0,1006,1042,3,578,289,0,1007,1042,3,394,197,0,1008,1042,3,398,199,0,1009,1042,3,402,201,0,1010,1042,3,380,190,0,1011,1042,3,382,191,0,1012,1042,3,386,193,0,1013,1042,3,618,309,0,1014,1042,3,632,316,0,1015,1042,3,696,348,0,1016,1042,3,704,352,0,1017,1042,3,726,363,0,1018,1042,3,592,296,0,1019,1042,3,594,297,0,1020,1042,3,472,236,0,1021,1042,3,392,196,0,1022,1042,3,388,194,0,1023,1042,3,390,195,0,1024,1042,3,626,313,0,1025,1042,3,602,301,0,1026,1042,3,604,302,0,1027,1042,3,608,304,0,1028,1042,3,422,211,0,1029,1042,3,424,212,0,1030,1042,3,426,213,0,1031,1042,3,798,399,0,1032,1042,3,610,305,0,1033,1042,3,612,306,0,1034,1042,3,616,308,0,1035,1042,3,448,224,0,1036,1042,3,450,225,0,1037,1042,3,800,400,0,1038,1042,3,636,318,0,1039,1042,3,642,321,0,1040,1042,3,650,325,0,1041,981,1,0,0,0,1041,982,1,0,0,0,1041,983,1,0,0,0,1041,984,1,0,0,0,1041,985,1,0,0,0,1041,986,1,0,0,0,1041,987,1,0,0,0,1041,988,1,0,0,0,1041,989,1,0,0,0,1041,990,1,0,0,0,1041,991,1,0,0,0,1041,992,1,0,0,0,1041,993,1,0,0,0,1041,994,1,0,0,0,1041,995,1,0,0,0,1041,996,1,0,0,0,1041,997,1,0,0,0,1041,998,1,0,0,0,1041,999,1,0,0,0,1041,1e3,1,0,0,0,1041,1001,1,0,0,0,1041,1002,1,0,0,0,1041,1003,1,0,0,0,1041,1004,1,0,0,0,1041,1005,1,0,0,0,1041,1006,1,0,0,0,1041,1007,1,0,0,0,1041,1008,1,0,0,0,1041,1009,1,0,0,0,1041,1010,1,0,0,0,1041,1011,1,0,0,0,1041,1012,1,0,0,0,1041,1013,1,0,0,0,1041,1014,1,0,0,0,1041,1015,1,0,0,0,1041,1016,1,0,0,0,1041,1017,1,0,0,0,1041,1018,1,0,0,0,1041,1019,1,0,0,0,1041,1020,1,0,0,0,1041,1021,1,0,0,0,1041,1022,1,0,0,0,1041,1023,1,0,0,0,1041,1024,1,0,0,0,1041,1025,1,0,0,0,1041,1026,1,0,0,0,1041,1027,1,0,0,0,1041,1028,1,0,0,0,1041,1029,1,0,0,0,1041,1030,1,0,0,0,1041,1031,1,0,0,0,1041,1032,1,0,0,0,1041,1033,1,0,0,0,1041,1034,1,0,0,0,1041,1035,1,0,0,0,1041,1036,1,0,0,0,1041,1037,1,0,0,0,1041,1038,1,0,0,0,1041,1039,1,0,0,0,1041,1040,1,0,0,0,1042,13,1,0,0,0,1043,1048,3,16,8,0,1044,1045,5,212,0,0,1045,1047,3,16,8,0,1046,1044,1,0,0,0,1047,1050,1,0,0,0,1048,1046,1,0,0,0,1048,1049,1,0,0,0,1049,1053,1,0,0,0,1050,1048,1,0,0,0,1051,1053,3,200,100,0,1052,1043,1,0,0,0,1052,1051,1,0,0,0,1053,15,1,0,0,0,1054,1059,3,18,9,0,1055,1056,5,45,0,0,1056,1058,3,18,9,0,1057,1055,1,0,0,0,1058,1061,1,0,0,0,1059,1057,1,0,0,0,1059,1060,1,0,0,0,1060,17,1,0,0,0,1061,1059,1,0,0,0,1062,1067,3,20,10,0,1063,1064,5,325,0,0,1064,1066,3,20,10,0,1065,1063,1,0,0,0,1066,1069,1,0,0,0,1067,1065,1,0,0,0,1067,1068,1,0,0,0,1068,19,1,0,0,0,1069,1067,1,0,0,0,1070,1072,3,28,14,0,1071,1073,3,24,12,0,1072,1071,1,0,0,0,1072,1073,1,0,0,0,1073,21,1,0,0,0,1074,1076,5,171,0,0,1075,1077,5,199,0,0,1076,1075,1,0,0,0,1076,1077,1,0,0,0,1077,1078,1,0,0,0,1078,1079,5,109,0,0,1079,1080,5,141,0,0,1080,23,1,0,0,0,1081,1083,5,199,0,0,1082,1081,1,0,0,0,1082,1083,1,0,0,0,1083,1084,1,0,0,0,1084,1085,3,26,13,0,1085,1088,3,28,14,0,1086,1087,5,121,0,0,1087,1089,3,28,14,0,1088,1086,1,0,0,0,1088,1089,1,0,0,0,1089,1133,1,0,0,0,1090,1092,5,199,0,0,1091,1090,1,0,0,0,1091,1092,1,0,0,0,1092,1093,1,0,0,0,1093,1095,5,158,0,0,1094,1096,5,79,0,0,1095,1094,1,0,0,0,1095,1096,1,0,0,0,1096,1097,1,0,0,0,1097,1133,3,82,41,0,1098,1108,5,172,0,0,1099,1108,5,200,0,0,1100,1101,5,171,0,0,1101,1108,5,201,0,0,1102,1104,5,171,0,0,1103,1102,1,0,0,0,1103,1104,1,0,0,0,1104,1105,1,0,0,0,1105,1106,5,199,0,0,1106,1108,5,201,0,0,1107,1098,1,0,0,0,1107,1099,1,0,0,0,1107,1100,1,0,0,0,1107,1103,1,0,0,0,1108,1133,1,0,0,0,1109,1111,5,199,0,0,1110,1109,1,0,0,0,1110,1111,1,0,0,0,1111,1112,1,0,0,0,1112,1114,5,65,0,0,1113,1115,7,0,0,0,1114,1113,1,0,0,0,1114,1115,1,0,0,0,1115,1116,1,0,0,0,1116,1117,3,28,14,0,1117,1118,5,45,0,0,1118,1119,3,28,14,0,1119,1133,1,0,0,0,1120,1126,5,1,0,0,1121,1126,5,2,0,0,1122,1126,5,3,0,0,1123,1126,5,4,0,0,1124,1126,3,22,11,0,1125,1120,1,0,0,0,1125,1121,1,0,0,0,1125,1122,1,0,0,0,1125,1123,1,0,0,0,1125,1124,1,0,0,0,1126,1127,1,0,0,0,1127,1129,3,28,14,0,1128,1125,1,0,0,0,1129,1130,1,0,0,0,1130,1128,1,0,0,0,1130,1131,1,0,0,0,1131,1133,1,0,0,0,1132,1082,1,0,0,0,1132,1091,1,0,0,0,1132,1107,1,0,0,0,1132,1110,1,0,0,0,1132,1128,1,0,0,0,1133,25,1,0,0,0,1134,1135,7,1,0,0,1135,27,1,0,0,0,1136,1141,3,36,18,0,1137,1138,7,2,0,0,1138,1140,3,36,18,0,1139,1137,1,0,0,0,1140,1143,1,0,0,0,1141,1139,1,0,0,0,1141,1142,1,0,0,0,1142,29,1,0,0,0,1143,1141,1,0,0,0,1144,1145,5,7,0,0,1145,1146,5,7,0,0,1146,31,1,0,0,0,1147,1148,5,7,0,0,1148,1149,5,7,0,0,1149,1150,5,12,0,0,1150,33,1,0,0,0,1151,1152,5,27,0,0,1152,1153,5,27,0,0,1153,35,1,0,0,0,1154,1167,3,38,19,0,1155,1163,5,9,0,0,1156,1163,3,30,15,0,1157,1163,5,10,0,0,1158,1163,3,32,16,0,1159,1163,5,11,0,0,1160,1163,5,12,0,0,1161,1163,5,33,0,0,1162,1155,1,0,0,0,1162,1156,1,0,0,0,1162,1157,1,0,0,0,1162,1158,1,0,0,0,1162,1159,1,0,0,0,1162,1160,1,0,0,0,1162,1161,1,0,0,0,1163,1164,1,0,0,0,1164,1166,3,38,19,0,1165,1162,1,0,0,0,1166,1169,1,0,0,0,1167,1165,1,0,0,0,1167,1168,1,0,0,0,1168,1178,1,0,0,0,1169,1167,1,0,0,0,1170,1171,3,34,17,0,1171,1172,3,36,18,0,1172,1179,1,0,0,0,1173,1175,5,27,0,0,1174,1173,1,0,0,0,1175,1176,1,0,0,0,1176,1174,1,0,0,0,1176,1177,1,0,0,0,1177,1179,1,0,0,0,1178,1170,1,0,0,0,1178,1174,1,0,0,0,1178,1179,1,0,0,0,1179,37,1,0,0,0,1180,1185,3,40,20,0,1181,1182,7,3,0,0,1182,1184,3,40,20,0,1183,1181,1,0,0,0,1184,1187,1,0,0,0,1185,1183,1,0,0,0,1185,1186,1,0,0,0,1186,39,1,0,0,0,1187,1185,1,0,0,0,1188,1193,3,42,21,0,1189,1190,7,4,0,0,1190,1192,3,42,21,0,1191,1189,1,0,0,0,1192,1195,1,0,0,0,1193,1191,1,0,0,0,1193,1194,1,0,0,0,1194,41,1,0,0,0,1195,1193,1,0,0,0,1196,1201,3,44,22,0,1197,1198,5,13,0,0,1198,1200,3,44,22,0,1199,1197,1,0,0,0,1200,1203,1,0,0,0,1201,1199,1,0,0,0,1201,1202,1,0,0,0,1202,43,1,0,0,0,1203,1201,1,0,0,0,1204,1209,3,54,27,0,1205,1206,3,46,23,0,1206,1207,3,54,27,0,1207,1209,1,0,0,0,1208,1204,1,0,0,0,1208,1205,1,0,0,0,1209,45,1,0,0,0,1210,1211,7,5,0,0,1211,47,1,0,0,0,1212,1221,3,138,69,0,1213,1221,3,132,66,0,1214,1218,5,23,0,0,1215,1219,3,144,72,0,1216,1219,5,329,0,0,1217,1219,3,826,413,0,1218,1215,1,0,0,0,1218,1216,1,0,0,0,1218,1217,1,0,0,0,1219,1221,1,0,0,0,1220,1212,1,0,0,0,1220,1213,1,0,0,0,1220,1214,1,0,0,0,1221,1223,1,0,0,0,1222,1220,1,0,0,0,1223,1226,1,0,0,0,1224,1222,1,0,0,0,1224,1225,1,0,0,0,1225,1229,1,0,0,0,1226,1224,1,0,0,0,1227,1228,5,75,0,0,1228,1230,3,824,412,0,1229,1227,1,0,0,0,1229,1230,1,0,0,0,1230,49,1,0,0,0,1231,1234,3,810,405,0,1232,1234,3,68,34,0,1233,1231,1,0,0,0,1233,1232,1,0,0,0,1234,1235,1,0,0,0,1235,1236,3,48,24,0,1236,51,1,0,0,0,1237,1240,3,812,406,0,1238,1240,3,70,35,0,1239,1237,1,0,0,0,1239,1238,1,0,0,0,1240,1241,1,0,0,0,1241,1242,3,48,24,0,1242,53,1,0,0,0,1243,1246,3,50,25,0,1244,1246,3,84,42,0,1245,1243,1,0,0,0,1245,1244,1,0,0,0,1246,55,1,0,0,0,1247,1250,3,52,26,0,1248,1250,3,84,42,0,1249,1247,1,0,0,0,1249,1248,1,0,0,0,1250,57,1,0,0,0,1251,1253,5,37,0,0,1252,1254,3,112,56,0,1253,1252,1,0,0,0,1253,1254,1,0,0,0,1254,1256,1,0,0,0,1255,1257,5,24,0,0,1256,1255,1,0,0,0,1256,1257,1,0,0,0,1257,1258,1,0,0,0,1258,1259,5,36,0,0,1259,59,1,0,0,0,1260,1263,3,14,7,0,1261,1262,5,28,0,0,1262,1264,3,14,7,0,1263,1261,1,0,0,0,1263,1264,1,0,0,0,1264,1273,1,0,0,0,1265,1266,5,24,0,0,1266,1269,3,14,7,0,1267,1268,5,28,0,0,1268,1270,3,14,7,0,1269,1267,1,0,0,0,1269,1270,1,0,0,0,1270,1272,1,0,0,0,1271,1265,1,0,0,0,1272,1275,1,0,0,0,1273,1271,1,0,0,0,1273,1274,1,0,0,0,1274,61,1,0,0,0,1275,1273,1,0,0,0,1276,1278,5,31,0,0,1277,1279,3,60,30,0,1278,1277,1,0,0,0,1278,1279,1,0,0,0,1279,1281,1,0,0,0,1280,1282,5,24,0,0,1281,1280,1,0,0,0,1281,1282,1,0,0,0,1282,1283,1,0,0,0,1283,1284,5,32,0,0,1284,63,1,0,0,0,1285,1286,3,14,7,0,1286,1287,5,28,0,0,1287,1295,3,14,7,0,1288,1289,5,24,0,0,1289,1290,3,14,7,0,1290,1291,5,28,0,0,1291,1292,3,14,7,0,1292,1294,1,0,0,0,1293,1288,1,0,0,0,1294,1297,1,0,0,0,1295,1293,1,0,0,0,1295,1296,1,0,0,0,1296,65,1,0,0,0,1297,1295,1,0,0,0,1298,1300,5,14,0,0,1299,1301,3,64,32,0,1300,1299,1,0,0,0,1300,1301,1,0,0,0,1301,1303,1,0,0,0,1302,1304,5,24,0,0,1303,1302,1,0,0,0,1303,1304,1,0,0,0,1304,1305,1,0,0,0,1305,1306,5,15,0,0,1306,67,1,0,0,0,1307,1325,3,142,71,0,1308,1325,3,144,72,0,1309,1325,3,80,40,0,1310,1325,3,72,36,0,1311,1325,3,76,38,0,1312,1325,3,78,39,0,1313,1314,3,826,413,0,1314,1317,5,34,0,0,1315,1318,3,852,426,0,1316,1318,5,326,0,0,1317,1315,1,0,0,0,1317,1316,1,0,0,0,1318,1325,1,0,0,0,1319,1325,3,208,104,0,1320,1325,3,74,37,0,1321,1325,3,58,29,0,1322,1325,3,62,31,0,1323,1325,3,66,33,0,1324,1307,1,0,0,0,1324,1308,1,0,0,0,1324,1309,1,0,0,0,1324,1310,1,0,0,0,1324,1311,1,0,0,0,1324,1312,1,0,0,0,1324,1313,1,0,0,0,1324,1319,1,0,0,0,1324,1320,1,0,0,0,1324,1321,1,0,0,0,1324,1322,1,0,0,0,1324,1323,1,0,0,0,1325,69,1,0,0,0,1326,1347,3,142,71,0,1327,1347,3,144,72,0,1328,1347,3,80,40,0,1329,1347,3,72,36,0,1330,1347,3,78,39,0,1331,1332,3,826,413,0,1332,1335,5,34,0,0,1333,1336,3,852,426,0,1334,1336,5,326,0,0,1335,1333,1,0,0,0,1335,1334,1,0,0,0,1336,1347,1,0,0,0,1337,1338,5,25,0,0,1338,1339,3,232,116,0,1339,1340,5,26,0,0,1340,1347,1,0,0,0,1341,1347,3,208,104,0,1342,1347,3,74,37,0,1343,1347,3,58,29,0,1344,1347,3,62,31,0,1345,1347,3,66,33,0,1346,1326,1,0,0,0,1346,1327,1,0,0,0,1346,1328,1,0,0,0,1346,1329,1,0,0,0,1346,1330,1,0,0,0,1346,1331,1,0,0,0,1346,1337,1,0,0,0,1346,1341,1,0,0,0,1346,1342,1,0,0,0,1346,1343,1,0,0,0,1346,1344,1,0,0,0,1346,1345,1,0,0,0,1347,71,1,0,0,0,1348,1349,5,71,0,0,1349,1350,5,25,0,0,1350,1351,3,14,7,0,1351,1352,5,49,0,0,1352,1353,3,204,102,0,1353,1354,5,26,0,0,1354,73,1,0,0,0,1355,1356,5,66,0,0,1356,1357,5,25,0,0,1357,1358,3,14,7,0,1358,1359,5,49,0,0,1359,1360,3,156,78,0,1360,1361,5,26,0,0,1361,75,1,0,0,0,1362,1363,5,127,0,0,1363,1366,5,25,0,0,1364,1367,3,232,116,0,1365,1367,3,370,185,0,1366,1364,1,0,0,0,1366,1365,1,0,0,0,1367,1368,1,0,0,0,1368,1369,5,26,0,0,1369,77,1,0,0,0,1370,1372,5,70,0,0,1371,1373,3,14,7,0,1372,1371,1,0,0,0,1372,1373,1,0,0,0,1373,1375,1,0,0,0,1374,1376,3,140,70,0,1375,1374,1,0,0,0,1376,1377,1,0,0,0,1377,1375,1,0,0,0,1377,1378,1,0,0,0,1378,1381,1,0,0,0,1379,1380,5,113,0,0,1380,1382,3,14,7,0,1381,1379,1,0,0,0,1381,1382,1,0,0,0,1382,1383,1,0,0,0,1383,1384,5,117,0,0,1384,79,1,0,0,0,1385,1397,3,110,55,0,1386,1395,5,35,0,0,1387,1388,5,25,0,0,1388,1389,3,14,7,0,1389,1390,5,26,0,0,1390,1396,1,0,0,0,1391,1392,5,31,0,0,1392,1393,3,6,3,0,1393,1394,5,32,0,0,1394,1396,1,0,0,0,1395,1387,1,0,0,0,1395,1391,1,0,0,0,1396,1398,1,0,0,0,1397,1386,1,0,0,0,1397,1398,1,0,0,0,1398,81,1,0,0,0,1399,1400,3,56,28,0,1400,83,1,0,0,0,1401,1405,3,98,49,0,1402,1405,3,102,51,0,1403,1405,3,108,54,0,1404,1401,1,0,0,0,1404,1402,1,0,0,0,1404,1403,1,0,0,0,1405,85,1,0,0,0,1406,1407,5,326,0,0,1407,87,1,0,0,0,1408,1411,3,810,405,0,1409,1411,5,326,0,0,1410,1408,1,0,0,0,1410,1409,1,0,0,0,1411,89,1,0,0,0,1412,1413,3,14,7,0,1413,1414,5,49,0,0,1414,1415,3,88,44,0,1415,91,1,0,0,0,1416,1421,3,90,45,0,1417,1418,5,24,0,0,1418,1420,3,90,45,0,1419,1417,1,0,0,0,1420,1423,1,0,0,0,1421,1419,1,0,0,0,1421,1422,1,0,0,0,1422,93,1,0,0,0,1423,1421,1,0,0,0,1424,1425,3,14,7,0,1425,1426,5,24,0,0,1426,1429,3,86,43,0,1427,1428,5,219,0,0,1428,1430,3,92,46,0,1429,1427,1,0,0,0,1429,1430,1,0,0,0,1430,95,1,0,0,0,1431,1436,5,120,0,0,1432,1436,5,201,0,0,1433,1434,5,97,0,0,1434,1436,3,14,7,0,1435,1431,1,0,0,0,1435,1432,1,0,0,0,1435,1433,1,0,0,0,1436,97,1,0,0,0,1437,1438,5,176,0,0,1438,1439,5,25,0,0,1439,1442,3,94,47,0,1440,1441,5,255,0,0,1441,1443,3,156,78,0,1442,1440,1,0,0,0,1442,1443,1,0,0,0,1443,1450,1,0,0,0,1444,1445,3,96,48,0,1445,1446,5,207,0,0,1446,1447,7,6,0,0,1447,1449,1,0,0,0,1448,1444,1,0,0,0,1449,1452,1,0,0,0,1450,1448,1,0,0,0,1450,1451,1,0,0,0,1451,1453,1,0,0,0,1452,1450,1,0,0,0,1453,1454,5,26,0,0,1454,99,1,0,0,0,1455,1456,7,7,0,0,1456,1457,5,207,0,0,1457,1458,5,120,0,0,1458,101,1,0,0,0,1459,1460,5,174,0,0,1460,1461,5,25,0,0,1461,1463,3,94,47,0,1462,1464,3,100,50,0,1463,1462,1,0,0,0,1463,1464,1,0,0,0,1464,1465,1,0,0,0,1465,1466,5,26,0,0,1466,103,1,0,0,0,1467,1469,5,323,0,0,1468,1470,5,48,0,0,1469,1468,1,0,0,0,1469,1470,1,0,0,0,1470,1479,1,0,0,0,1471,1473,5,322,0,0,1472,1474,7,8,0,0,1473,1472,1,0,0,0,1473,1474,1,0,0,0,1474,1476,1,0,0,0,1475,1477,5,48,0,0,1476,1475,1,0,0,0,1476,1477,1,0,0,0,1477,1479,1,0,0,0,1478,1467,1,0,0,0,1478,1471,1,0,0,0,1479,105,1,0,0,0,1480,1487,5,120,0,0,1481,1487,5,201,0,0,1482,1483,5,114,0,0,1483,1487,5,48,0,0,1484,1485,5,114,0,0,1485,1487,5,203,0,0,1486,1480,1,0,0,0,1486,1481,1,0,0,0,1486,1482,1,0,0,0,1486,1484,1,0,0,0,1487,107,1,0,0,0,1488,1489,5,175,0,0,1489,1490,5,25,0,0,1490,1494,3,94,47,0,1491,1492,3,104,52,0,1492,1493,5,324,0,0,1493,1495,1,0,0,0,1494,1491,1,0,0,0,1494,1495,1,0,0,0,1495,1500,1,0,0,0,1496,1497,3,106,53,0,1497,1498,5,207,0,0,1498,1499,5,114,0,0,1499,1501,1,0,0,0,1500,1496,1,0,0,0,1500,1501,1,0,0,0,1501,1506,1,0,0,0,1502,1503,3,106,53,0,1503,1504,5,207,0,0,1504,1505,5,120,0,0,1505,1507,1,0,0,0,1506,1502,1,0,0,0,1506,1507,1,0,0,0,1507,1508,1,0,0,0,1508,1509,5,26,0,0,1509,109,1,0,0,0,1510,1512,5,25,0,0,1511,1513,3,130,65,0,1512,1511,1,0,0,0,1512,1513,1,0,0,0,1513,1515,1,0,0,0,1514,1516,5,24,0,0,1515,1514,1,0,0,0,1515,1516,1,0,0,0,1516,1517,1,0,0,0,1517,1518,5,26,0,0,1518,111,1,0,0,0,1519,1524,3,14,7,0,1520,1521,5,24,0,0,1521,1523,3,14,7,0,1522,1520,1,0,0,0,1523,1526,1,0,0,0,1524,1522,1,0,0,0,1524,1525,1,0,0,0,1525,113,1,0,0,0,1526,1524,1,0,0,0,1527,1528,5,25,0,0,1528,1533,3,824,412,0,1529,1530,5,24,0,0,1530,1532,3,824,412,0,1531,1529,1,0,0,0,1532,1535,1,0,0,0,1533,1531,1,0,0,0,1533,1534,1,0,0,0,1534,1536,1,0,0,0,1535,1533,1,0,0,0,1536,1537,5,26,0,0,1537,115,1,0,0,0,1538,1541,3,144,72,0,1539,1541,3,824,412,0,1540,1538,1,0,0,0,1540,1539,1,0,0,0,1541,117,1,0,0,0,1542,1543,5,25,0,0,1543,1548,3,116,58,0,1544,1545,5,24,0,0,1545,1547,3,116,58,0,1546,1544,1,0,0,0,1547,1550,1,0,0,0,1548,1546,1,0,0,0,1548,1549,1,0,0,0,1549,1551,1,0,0,0,1550,1548,1,0,0,0,1551,1552,5,26,0,0,1552,119,1,0,0,0,1553,1554,3,848,424,0,1554,1555,3,824,412,0,1555,121,1,0,0,0,1556,1557,3,824,412,0,1557,1558,5,23,0,0,1558,1559,3,824,412,0,1559,1562,1,0,0,0,1560,1562,3,838,419,0,1561,1556,1,0,0,0,1561,1560,1,0,0,0,1562,123,1,0,0,0,1563,1568,3,120,60,0,1564,1565,5,24,0,0,1565,1567,3,120,60,0,1566,1564,1,0,0,0,1567,1570,1,0,0,0,1568,1566,1,0,0,0,1568,1569,1,0,0,0,1569,1572,1,0,0,0,1570,1568,1,0,0,0,1571,1573,5,24,0,0,1572,1571,1,0,0,0,1572,1573,1,0,0,0,1573,125,1,0,0,0,1574,1579,3,122,61,0,1575,1576,5,24,0,0,1576,1578,3,122,61,0,1577,1575,1,0,0,0,1578,1581,1,0,0,0,1579,1577,1,0,0,0,1579,1580,1,0,0,0,1580,1583,1,0,0,0,1581,1579,1,0,0,0,1582,1584,5,24,0,0,1583,1582,1,0,0,0,1583,1584,1,0,0,0,1584,127,1,0,0,0,1585,1588,3,14,7,0,1586,1587,5,49,0,0,1587,1589,3,826,413,0,1588,1586,1,0,0,0,1588,1589,1,0,0,0,1589,129,1,0,0,0,1590,1595,3,128,64,0,1591,1592,5,24,0,0,1592,1594,3,128,64,0,1593,1591,1,0,0,0,1594,1597,1,0,0,0,1595,1593,1,0,0,0,1595,1596,1,0,0,0,1596,131,1,0,0,0,1597,1595,1,0,0,0,1598,1605,5,25,0,0,1599,1600,3,252,126,0,1600,1602,3,130,65,0,1601,1603,5,24,0,0,1602,1601,1,0,0,0,1602,1603,1,0,0,0,1603,1606,1,0,0,0,1604,1606,5,19,0,0,1605,1599,1,0,0,0,1605,1604,1,0,0,0,1605,1606,1,0,0,0,1606,1607,1,0,0,0,1607,1608,5,26,0,0,1608,1609,3,134,67,0,1609,133,1,0,0,0,1610,1613,3,746,373,0,1611,1613,3,748,374,0,1612,1610,1,0,0,0,1612,1611,1,0,0,0,1612,1613,1,0,0,0,1613,1616,1,0,0,0,1614,1615,5,216,0,0,1615,1617,3,750,375,0,1616,1614,1,0,0,0,1616,1617,1,0,0,0,1617,135,1,0,0,0,1618,1619,3,826,413,0,1619,1620,5,34,0,0,1620,1621,3,826,413,0,1621,1627,1,0,0,0,1622,1627,3,830,415,0,1623,1627,3,144,72,0,1624,1625,5,130,0,0,1625,1627,5,143,0,0,1626,1618,1,0,0,0,1626,1622,1,0,0,0,1626,1623,1,0,0,0,1626,1624,1,0,0,0,1627,1628,1,0,0,0,1628,1629,3,132,66,0,1629,137,1,0,0,0,1630,1631,5,37,0,0,1631,1632,3,14,7,0,1632,1633,5,36,0,0,1633,139,1,0,0,0,1634,1635,5,319,0,0,1635,1636,3,14,7,0,1636,1637,5,293,0,0,1637,1638,3,14,7,0,1638,141,1,0,0,0,1639,1650,3,888,444,0,1640,1650,3,886,443,0,1641,1650,5,326,0,0,1642,1650,5,332,0,0,1643,1650,5,201,0,0,1644,1650,5,91,0,0,1645,1650,5,90,0,0,1646,1650,5,92,0,0,1647,1650,3,884,442,0,1648,1650,5,115,0,0,1649,1639,1,0,0,0,1649,1640,1,0,0,0,1649,1641,1,0,0,0,1649,1642,1,0,0,0,1649,1643,1,0,0,0,1649,1644,1,0,0,0,1649,1645,1,0,0,0,1649,1646,1,0,0,0,1649,1647,1,0,0,0,1649,1648,1,0,0,0,1650,143,1,0,0,0,1651,1655,5,30,0,0,1652,1656,3,826,413,0,1653,1656,5,300,0,0,1654,1656,5,132,0,0,1655,1652,1,0,0,0,1655,1653,1,0,0,0,1655,1654,1,0,0,0,1656,145,1,0,0,0,1657,1659,3,144,72,0,1658,1660,5,27,0,0,1659,1658,1,0,0,0,1659,1660,1,0,0,0,1660,147,1,0,0,0,1661,1666,3,144,72,0,1662,1663,5,24,0,0,1663,1665,3,144,72,0,1664,1662,1,0,0,0,1665,1668,1,0,0,0,1666,1664,1,0,0,0,1666,1667,1,0,0,0,1667,149,1,0,0,0,1668,1666,1,0,0,0,1669,1672,3,144,72,0,1670,1671,5,49,0,0,1671,1673,3,144,72,0,1672,1670,1,0,0,0,1672,1673,1,0,0,0,1673,151,1,0,0,0,1674,1679,3,150,75,0,1675,1676,5,24,0,0,1676,1678,3,150,75,0,1677,1675,1,0,0,0,1678,1681,1,0,0,0,1679,1677,1,0,0,0,1679,1680,1,0,0,0,1680,153,1,0,0,0,1681,1679,1,0,0,0,1682,1684,7,3,0,0,1683,1682,1,0,0,0,1683,1684,1,0,0,0,1684,1687,1,0,0,0,1685,1688,3,888,444,0,1686,1688,3,886,443,0,1687,1685,1,0,0,0,1687,1686,1,0,0,0,1688,155,1,0,0,0,1689,1690,3,842,421,0,1690,157,1,0,0,0,1691,1694,3,888,444,0,1692,1694,3,144,72,0,1693,1691,1,0,0,0,1693,1692,1,0,0,0,1694,159,1,0,0,0,1695,1699,3,806,403,0,1696,1699,5,326,0,0,1697,1699,3,144,72,0,1698,1695,1,0,0,0,1698,1696,1,0,0,0,1698,1697,1,0,0,0,1699,161,1,0,0,0,1700,1701,3,160,80,0,1701,1702,5,28,0,0,1702,1703,3,204,102,0,1703,163,1,0,0,0,1704,1705,3,160,80,0,1705,1710,3,204,102,0,1706,1708,5,199,0,0,1707,1706,1,0,0,0,1707,1708,1,0,0,0,1708,1709,1,0,0,0,1709,1711,5,201,0,0,1710,1707,1,0,0,0,1710,1711,1,0,0,0,1711,1717,1,0,0,0,1712,1713,3,204,102,0,1713,1714,5,49,0,0,1714,1715,3,160,80,0,1715,1717,1,0,0,0,1716,1704,1,0,0,0,1716,1712,1,0,0,0,1717,165,1,0,0,0,1718,1719,3,160,80,0,1719,1720,5,28,0,0,1720,1722,1,0,0,0,1721,1718,1,0,0,0,1721,1722,1,0,0,0,1722,1723,1,0,0,0,1723,1724,3,204,102,0,1724,167,1,0,0,0,1725,1729,3,166,83,0,1726,1727,5,31,0,0,1727,1728,5,58,0,0,1728,1730,5,32,0,0,1729,1726,1,0,0,0,1729,1730,1,0,0,0,1730,169,1,0,0,0,1731,1736,3,168,84,0,1732,1733,5,24,0,0,1733,1735,3,168,84,0,1734,1732,1,0,0,0,1735,1738,1,0,0,0,1736,1734,1,0,0,0,1736,1737,1,0,0,0,1737,171,1,0,0,0,1738,1736,1,0,0,0,1739,1740,5,95,0,0,1740,1741,5,25,0,0,1741,1742,3,158,79,0,1742,1743,5,24,0,0,1743,1744,3,158,79,0,1744,1745,5,26,0,0,1745,173,1,0,0,0,1746,1747,5,211,0,0,1747,1748,5,5,0,0,1748,1749,3,204,102,0,1749,1750,5,7,0,0,1750,175,1,0,0,0,1751,1768,5,301,0,0,1752,1764,5,5,0,0,1753,1758,3,204,102,0,1754,1755,5,24,0,0,1755,1757,3,204,102,0,1756,1754,1,0,0,0,1757,1760,1,0,0,0,1758,1756,1,0,0,0,1758,1759,1,0,0,0,1759,1762,1,0,0,0,1760,1758,1,0,0,0,1761,1763,5,24,0,0,1762,1761,1,0,0,0,1762,1763,1,0,0,0,1763,1765,1,0,0,0,1764,1753,1,0,0,0,1764,1765,1,0,0,0,1765,1766,1,0,0,0,1766,1769,5,7,0,0,1767,1769,5,4,0,0,1768,1752,1,0,0,0,1768,1767,1,0,0,0,1769,177,1,0,0,0,1770,1787,5,279,0,0,1771,1783,5,5,0,0,1772,1777,3,162,81,0,1773,1774,5,24,0,0,1774,1776,3,162,81,0,1775,1773,1,0,0,0,1776,1779,1,0,0,0,1777,1775,1,0,0,0,1777,1778,1,0,0,0,1778,1781,1,0,0,0,1779,1777,1,0,0,0,1780,1782,5,24,0,0,1781,1780,1,0,0,0,1781,1782,1,0,0,0,1782,1784,1,0,0,0,1783,1772,1,0,0,0,1783,1784,1,0,0,0,1784,1785,1,0,0,0,1785,1788,5,7,0,0,1786,1788,5,4,0,0,1787,1771,1,0,0,0,1787,1786,1,0,0,0,1788,179,1,0,0,0,1789,1790,5,316,0,0,1790,1791,5,5,0,0,1791,1796,3,166,83,0,1792,1793,5,24,0,0,1793,1795,3,166,83,0,1794,1792,1,0,0,0,1795,1798,1,0,0,0,1796,1794,1,0,0,0,1796,1797,1,0,0,0,1797,1800,1,0,0,0,1798,1796,1,0,0,0,1799,1801,5,24,0,0,1800,1799,1,0,0,0,1800,1801,1,0,0,0,1801,1802,1,0,0,0,1802,1803,5,7,0,0,1803,181,1,0,0,0,1804,1805,5,183,0,0,1805,1806,5,5,0,0,1806,1807,3,204,102,0,1807,1808,5,7,0,0,1808,183,1,0,0,0,1809,1810,5,278,0,0,1810,1811,5,5,0,0,1811,1812,3,204,102,0,1812,1813,5,7,0,0,1813,185,1,0,0,0,1814,1815,5,137,0,0,1815,1816,5,5,0,0,1816,1817,3,204,102,0,1817,1818,5,7,0,0,1818,187,1,0,0,0,1819,1820,5,105,0,0,1820,1821,5,5,0,0,1821,1822,3,204,102,0,1822,1823,5,24,0,0,1823,1824,3,204,102,0,1824,1825,5,7,0,0,1825,189,1,0,0,0,1826,1827,5,271,0,0,1827,1828,5,5,0,0,1828,1829,3,204,102,0,1829,1830,5,7,0,0,1830,191,1,0,0,0,1831,1832,5,118,0,0,1832,1833,5,5,0,0,1833,1838,3,160,80,0,1834,1835,5,24,0,0,1835,1837,3,160,80,0,1836,1834,1,0,0,0,1837,1840,1,0,0,0,1838,1836,1,0,0,0,1838,1839,1,0,0,0,1839,1842,1,0,0,0,1840,1838,1,0,0,0,1841,1843,5,24,0,0,1842,1841,1,0,0,0,1842,1843,1,0,0,0,1843,1844,1,0,0,0,1844,1845,5,7,0,0,1845,193,1,0,0,0,1846,1847,5,248,0,0,1847,1848,5,5,0,0,1848,1849,3,160,80,0,1849,1850,5,7,0,0,1850,195,1,0,0,0,1851,1852,5,290,0,0,1852,1853,5,5,0,0,1853,1854,3,204,102,0,1854,1855,5,24,0,0,1855,1856,3,160,80,0,1856,1857,5,7,0,0,1857,197,1,0,0,0,1858,1859,5,68,0,0,1859,1860,5,5,0,0,1860,1862,5,25,0,0,1861,1863,3,170,85,0,1862,1861,1,0,0,0,1862,1863,1,0,0,0,1863,1865,1,0,0,0,1864,1866,5,24,0,0,1865,1864,1,0,0,0,1865,1866,1,0,0,0,1866,1871,1,0,0,0,1867,1868,5,37,0,0,1868,1869,3,170,85,0,1869,1870,5,36,0,0,1870,1872,1,0,0,0,1871,1867,1,0,0,0,1871,1872,1,0,0,0,1872,1873,1,0,0,0,1873,1874,5,26,0,0,1874,1875,5,35,0,0,1875,1876,3,204,102,0,1876,1877,5,7,0,0,1877,199,1,0,0,0,1878,1892,3,174,87,0,1879,1892,3,176,88,0,1880,1892,3,178,89,0,1881,1892,3,180,90,0,1882,1892,3,182,91,0,1883,1892,3,184,92,0,1884,1892,3,186,93,0,1885,1892,3,188,94,0,1886,1892,3,190,95,0,1887,1892,3,192,96,0,1888,1892,3,194,97,0,1889,1892,3,196,98,0,1890,1892,3,198,99,0,1891,1878,1,0,0,0,1891,1879,1,0,0,0,1891,1880,1,0,0,0,1891,1881,1,0,0,0,1891,1882,1,0,0,0,1891,1883,1,0,0,0,1891,1884,1,0,0,0,1891,1885,1,0,0,0,1891,1886,1,0,0,0,1891,1887,1,0,0,0,1891,1888,1,0,0,0,1891,1889,1,0,0,0,1891,1890,1,0,0,0,1892,1896,1,0,0,0,1893,1895,5,27,0,0,1894,1893,1,0,0,0,1895,1898,1,0,0,0,1896,1894,1,0,0,0,1896,1897,1,0,0,0,1897,201,1,0,0,0,1898,1896,1,0,0,0,1899,1911,3,200,100,0,1900,1903,3,172,86,0,1901,1903,3,156,78,0,1902,1900,1,0,0,0,1902,1901,1,0,0,0,1903,1907,1,0,0,0,1904,1906,5,27,0,0,1905,1904,1,0,0,0,1906,1909,1,0,0,0,1907,1905,1,0,0,0,1907,1908,1,0,0,0,1908,1911,1,0,0,0,1909,1907,1,0,0,0,1910,1899,1,0,0,0,1910,1902,1,0,0,0,1911,203,1,0,0,0,1912,1915,3,202,101,0,1913,1915,3,144,72,0,1914,1912,1,0,0,0,1914,1913,1,0,0,0,1915,205,1,0,0,0,1916,1917,5,326,0,0,1917,207,1,0,0,0,1918,1919,5,316,0,0,1919,1920,5,25,0,0,1920,1921,3,14,7,0,1921,1922,5,24,0,0,1922,1923,3,14,7,0,1923,1924,5,24,0,0,1924,1925,3,14,7,0,1925,1926,5,26,0,0,1926,1942,1,0,0,0,1927,1928,5,118,0,0,1928,1929,5,25,0,0,1929,1930,3,14,7,0,1930,1931,5,24,0,0,1931,1932,3,14,7,0,1932,1933,5,26,0,0,1933,1942,1,0,0,0,1934,1935,5,68,0,0,1935,1936,5,25,0,0,1936,1937,3,14,7,0,1937,1938,5,24,0,0,1938,1939,3,14,7,0,1939,1940,5,26,0,0,1940,1942,1,0,0,0,1941,1918,1,0,0,0,1941,1927,1,0,0,0,1941,1934,1,0,0,0,1942,209,1,0,0,0,1943,1944,5,96,0,0,1944,1945,3,144,72,0,1945,1946,5,49,0,0,1946,1949,3,202,101,0,1947,1948,5,1,0,0,1948,1950,3,142,71,0,1949,1947,1,0,0,0,1949,1950,1,0,0,0,1950,211,1,0,0,0,1951,1953,5,23,0,0,1952,1951,1,0,0,0,1952,1953,1,0,0,0,1953,1954,1,0,0,0,1954,1959,3,824,412,0,1955,1956,5,23,0,0,1956,1958,3,824,412,0,1957,1955,1,0,0,0,1958,1961,1,0,0,0,1959,1957,1,0,0,0,1959,1960,1,0,0,0,1960,213,1,0,0,0,1961,1959,1,0,0,0,1962,1963,5,157,0,0,1963,1964,3,212,106,0,1964,1965,5,282,0,0,1965,1966,3,152,76,0,1966,215,1,0,0,0,1967,1968,5,129,0,0,1968,1969,3,148,74,0,1969,217,1,0,0,0,1970,1973,3,144,72,0,1971,1973,5,115,0,0,1972,1970,1,0,0,0,1972,1971,1,0,0,0,1973,1974,1,0,0,0,1974,1976,5,25,0,0,1975,1977,3,112,56,0,1976,1975,1,0,0,0,1976,1977,1,0,0,0,1977,1978,1,0,0,0,1978,1979,5,26,0,0,1979,219,1,0,0,0,1980,1981,5,63,0,0,1981,1982,3,656,328,0,1982,1983,5,117,0,0,1983,1984,5,110,0,0,1984,221,1,0,0,0,1985,1988,5,110,0,0,1986,1989,3,218,109,0,1987,1989,3,220,110,0,1988,1986,1,0,0,0,1988,1987,1,0,0,0,1989,223,1,0,0,0,1990,1991,5,227,0,0,1991,1992,3,854,427,0,1992,2006,3,824,412,0,1993,1994,5,1,0,0,1994,2007,3,226,113,0,1995,1996,5,25,0,0,1996,2001,3,226,113,0,1997,1998,5,24,0,0,1998,2e3,3,226,113,0,1999,1997,1,0,0,0,2e3,2003,1,0,0,0,2001,1999,1,0,0,0,2001,2002,1,0,0,0,2002,2004,1,0,0,0,2003,2001,1,0,0,0,2004,2005,5,26,0,0,2005,2007,1,0,0,0,2006,1993,1,0,0,0,2006,1995,1,0,0,0,2006,2007,1,0,0,0,2007,225,1,0,0,0,2008,2014,3,154,77,0,2009,2014,3,806,403,0,2010,2014,5,326,0,0,2011,2014,3,884,442,0,2012,2014,3,144,72,0,2013,2008,1,0,0,0,2013,2009,1,0,0,0,2013,2010,1,0,0,0,2013,2011,1,0,0,0,2013,2012,1,0,0,0,2014,227,1,0,0,0,2015,2017,3,14,7,0,2016,2018,7,9,0,0,2017,2016,1,0,0,0,2017,2018,1,0,0,0,2018,229,1,0,0,0,2019,2024,3,228,114,0,2020,2021,5,24,0,0,2021,2023,3,228,114,0,2022,2020,1,0,0,0,2023,2026,1,0,0,0,2024,2022,1,0,0,0,2024,2025,1,0,0,0,2025,231,1,0,0,0,2026,2024,1,0,0,0,2027,2033,3,236,118,0,2028,2029,3,238,119,0,2029,2030,3,236,118,0,2030,2032,1,0,0,0,2031,2028,1,0,0,0,2032,2035,1,0,0,0,2033,2031,1,0,0,0,2033,2034,1,0,0,0,2034,233,1,0,0,0,2035,2033,1,0,0,0,2036,2042,3,240,120,0,2037,2038,3,238,119,0,2038,2039,3,236,118,0,2039,2041,1,0,0,0,2040,2037,1,0,0,0,2041,2044,1,0,0,0,2042,2040,1,0,0,0,2042,2043,1,0,0,0,2043,235,1,0,0,0,2044,2042,1,0,0,0,2045,2051,3,240,120,0,2046,2047,5,25,0,0,2047,2048,3,240,120,0,2048,2049,5,26,0,0,2049,2051,1,0,0,0,2050,2045,1,0,0,0,2050,2046,1,0,0,0,2051,237,1,0,0,0,2052,2054,5,305,0,0,2053,2055,5,42,0,0,2054,2053,1,0,0,0,2054,2055,1,0,0,0,2055,2059,1,0,0,0,2056,2059,5,169,0,0,2057,2059,5,123,0,0,2058,2052,1,0,0,0,2058,2056,1,0,0,0,2058,2057,1,0,0,0,2059,239,1,0,0,0,2060,2067,3,242,121,0,2061,2062,5,182,0,0,2062,2065,3,14,7,0,2063,2064,7,10,0,0,2064,2066,3,14,7,0,2065,2063,1,0,0,0,2065,2066,1,0,0,0,2066,2068,1,0,0,0,2067,2061,1,0,0,0,2067,2068,1,0,0,0,2068,241,1,0,0,0,2069,2071,5,108,0,0,2070,2069,1,0,0,0,2070,2071,1,0,0,0,2071,2075,1,0,0,0,2072,2076,3,244,122,0,2073,2076,3,250,125,0,2074,2076,3,254,127,0,2075,2072,1,0,0,0,2075,2073,1,0,0,0,2075,2074,1,0,0,0,2076,2080,1,0,0,0,2077,2078,5,170,0,0,2078,2079,5,253,0,0,2079,2081,3,116,58,0,2080,2077,1,0,0,0,2080,2081,1,0,0,0,2081,243,1,0,0,0,2082,2084,5,232,0,0,2083,2085,5,278,0,0,2084,2083,1,0,0,0,2084,2085,1,0,0,0,2085,2086,1,0,0,0,2086,2091,3,346,173,0,2087,2088,5,24,0,0,2088,2090,3,346,173,0,2089,2087,1,0,0,0,2090,2093,1,0,0,0,2091,2089,1,0,0,0,2091,2092,1,0,0,0,2092,2115,1,0,0,0,2093,2091,1,0,0,0,2094,2095,5,313,0,0,2095,2098,3,136,68,0,2096,2097,5,49,0,0,2097,2099,3,824,412,0,2098,2096,1,0,0,0,2098,2099,1,0,0,0,2099,2102,1,0,0,0,2100,2101,5,322,0,0,2101,2103,3,248,124,0,2102,2100,1,0,0,0,2102,2103,1,0,0,0,2103,2105,1,0,0,0,2104,2106,3,900,450,0,2105,2104,1,0,0,0,2105,2106,1,0,0,0,2106,2109,1,0,0,0,2107,2108,5,151,0,0,2108,2110,3,14,7,0,2109,2107,1,0,0,0,2109,2110,1,0,0,0,2110,2113,1,0,0,0,2111,2112,5,51,0,0,2112,2114,3,314,157,0,2113,2111,1,0,0,0,2113,2114,1,0,0,0,2114,2116,1,0,0,0,2115,2094,1,0,0,0,2115,2116,1,0,0,0,2116,245,1,0,0,0,2117,2118,3,824,412,0,2118,2119,5,1,0,0,2119,2120,3,14,7,0,2120,247,1,0,0,0,2121,2126,3,246,123,0,2122,2123,5,24,0,0,2123,2125,3,246,123,0,2124,2122,1,0,0,0,2125,2128,1,0,0,0,2126,2124,1,0,0,0,2126,2127,1,0,0,0,2127,249,1,0,0,0,2128,2126,1,0,0,0,2129,2130,5,237,0,0,2130,2135,3,346,173,0,2131,2132,5,24,0,0,2132,2134,3,346,173,0,2133,2131,1,0,0,0,2134,2137,1,0,0,0,2135,2133,1,0,0,0,2135,2136,1,0,0,0,2136,2140,1,0,0,0,2137,2135,1,0,0,0,2138,2139,5,229,0,0,2139,2141,3,230,115,0,2140,2138,1,0,0,0,2140,2141,1,0,0,0,2141,2142,1,0,0,0,2142,2143,5,207,0,0,2143,2144,3,124,62,0,2144,2146,5,313,0,0,2145,2147,5,42,0,0,2146,2145,1,0,0,0,2146,2147,1,0,0,0,2147,2148,1,0,0,0,2148,2151,3,136,68,0,2149,2150,5,49,0,0,2150,2152,3,824,412,0,2151,2149,1,0,0,0,2151,2152,1,0,0,0,2152,2154,1,0,0,0,2153,2155,3,900,450,0,2154,2153,1,0,0,0,2154,2155,1,0,0,0,2155,2158,1,0,0,0,2156,2157,5,151,0,0,2157,2159,3,14,7,0,2158,2156,1,0,0,0,2158,2159,1,0,0,0,2159,2162,1,0,0,0,2160,2161,5,51,0,0,2161,2163,3,314,157,0,2162,2160,1,0,0,0,2162,2163,1,0,0,0,2163,251,1,0,0,0,2164,2166,7,11,0,0,2165,2164,1,0,0,0,2165,2166,1,0,0,0,2166,253,1,0,0,0,2167,2168,5,141,0,0,2168,2170,3,338,169,0,2169,2167,1,0,0,0,2169,2170,1,0,0,0,2170,2171,1,0,0,0,2171,2173,5,269,0,0,2172,2174,5,278,0,0,2173,2172,1,0,0,0,2173,2174,1,0,0,0,2174,2175,1,0,0,0,2175,2176,3,252,126,0,2176,2181,3,336,168,0,2177,2178,5,24,0,0,2178,2180,3,336,168,0,2179,2177,1,0,0,0,2180,2183,1,0,0,0,2181,2179,1,0,0,0,2181,2182,1,0,0,0,2182,2185,1,0,0,0,2183,2181,1,0,0,0,2184,2186,5,24,0,0,2185,2184,1,0,0,0,2185,2186,1,0,0,0,2186,2189,1,0,0,0,2187,2188,5,323,0,0,2188,2190,3,126,63,0,2189,2187,1,0,0,0,2189,2190,1,0,0,0,2190,2193,1,0,0,0,2191,2192,5,141,0,0,2192,2194,3,338,169,0,2193,2191,1,0,0,0,2193,2194,1,0,0,0,2194,2196,1,0,0,0,2195,2197,3,900,450,0,2196,2195,1,0,0,0,2196,2197,1,0,0,0,2197,2199,1,0,0,0,2198,2200,3,318,159,0,2199,2198,1,0,0,0,2199,2200,1,0,0,0,2200,2203,1,0,0,0,2201,2202,5,151,0,0,2202,2204,3,14,7,0,2203,2201,1,0,0,0,2203,2204,1,0,0,0,2204,2206,1,0,0,0,2205,2207,3,754,377,0,2206,2205,1,0,0,0,2206,2207,1,0,0,0,2207,2209,1,0,0,0,2208,2210,3,316,158,0,2209,2208,1,0,0,0,2209,2210,1,0,0,0,2210,255,1,0,0,0,2211,2212,5,189,0,0,2212,2214,5,25,0,0,2213,2215,3,768,384,0,2214,2213,1,0,0,0,2214,2215,1,0,0,0,2215,2217,1,0,0,0,2216,2218,3,314,157,0,2217,2216,1,0,0,0,2217,2218,1,0,0,0,2218,2220,1,0,0,0,2219,2221,3,262,131,0,2220,2219,1,0,0,0,2220,2221,1,0,0,0,2221,2223,1,0,0,0,2222,2224,3,258,129,0,2223,2222,1,0,0,0,2223,2224,1,0,0,0,2224,2225,1,0,0,0,2225,2226,3,268,134,0,2226,2227,5,26,0,0,2227,257,1,0,0,0,2228,2229,5,208,0,0,2229,2230,5,262,0,0,2230,2231,5,223,0,0,2231,2240,5,187,0,0,2232,2233,5,42,0,0,2233,2234,5,263,0,0,2234,2235,5,223,0,0,2235,2237,5,187,0,0,2236,2238,3,260,130,0,2237,2236,1,0,0,0,2237,2238,1,0,0,0,2238,2240,1,0,0,0,2239,2228,1,0,0,0,2239,2232,1,0,0,0,2240,259,1,0,0,0,2241,2242,5,273,0,0,2242,2243,5,114,0,0,2243,2251,5,188,0,0,2244,2245,5,206,0,0,2245,2246,5,114,0,0,2246,2251,5,188,0,0,2247,2248,5,322,0,0,2248,2249,5,308,0,0,2249,2251,5,263,0,0,2250,2241,1,0,0,0,2250,2244,1,0,0,0,2250,2247,1,0,0,0,2251,261,1,0,0,0,2252,2253,5,190,0,0,2253,2254,3,264,132,0,2254,263,1,0,0,0,2255,2260,3,266,133,0,2256,2257,5,24,0,0,2257,2259,3,266,133,0,2258,2256,1,0,0,0,2259,2262,1,0,0,0,2260,2258,1,0,0,0,2260,2261,1,0,0,0,2261,265,1,0,0,0,2262,2260,1,0,0,0,2263,2264,3,14,7,0,2264,2265,5,49,0,0,2265,2266,3,824,412,0,2266,267,1,0,0,0,2267,2268,5,41,0,0,2268,2269,5,187,0,0,2269,2271,3,270,135,0,2270,2267,1,0,0,0,2270,2271,1,0,0,0,2271,2273,1,0,0,0,2272,2274,3,274,137,0,2273,2272,1,0,0,0,2273,2274,1,0,0,0,2274,2275,1,0,0,0,2275,2276,5,222,0,0,2276,2277,5,25,0,0,2277,2278,3,276,138,0,2278,2280,5,26,0,0,2279,2281,3,290,145,0,2280,2279,1,0,0,0,2280,2281,1,0,0,0,2281,2282,1,0,0,0,2282,2283,5,100,0,0,2283,2284,3,302,151,0,2284,269,1,0,0,0,2285,2286,5,274,0,0,2286,2287,5,295,0,0,2287,2288,5,196,0,0,2288,2305,5,262,0,0,2289,2290,5,274,0,0,2290,2291,5,221,0,0,2291,2292,5,178,0,0,2292,2305,5,262,0,0,2293,2294,5,274,0,0,2294,2295,5,295,0,0,2295,2296,5,135,0,0,2296,2305,3,272,136,0,2297,2298,5,274,0,0,2298,2299,5,295,0,0,2299,2300,5,178,0,0,2300,2305,3,272,136,0,2301,2302,5,274,0,0,2302,2303,5,295,0,0,2303,2305,3,272,136,0,2304,2285,1,0,0,0,2304,2289,1,0,0,0,2304,2293,1,0,0,0,2304,2297,1,0,0,0,2304,2301,1,0,0,0,2305,271,1,0,0,0,2306,2307,3,312,156,0,2307,273,1,0,0,0,2308,2309,7,12,0,0,2309,275,1,0,0,0,2310,2315,3,278,139,0,2311,2312,5,12,0,0,2312,2314,3,278,139,0,2313,2311,1,0,0,0,2314,2317,1,0,0,0,2315,2313,1,0,0,0,2315,2316,1,0,0,0,2316,277,1,0,0,0,2317,2315,1,0,0,0,2318,2320,3,280,140,0,2319,2318,1,0,0,0,2320,2321,1,0,0,0,2321,2319,1,0,0,0,2321,2322,1,0,0,0,2322,279,1,0,0,0,2323,2325,3,284,142,0,2324,2326,3,282,141,0,2325,2324,1,0,0,0,2325,2326,1,0,0,0,2326,281,1,0,0,0,2327,2329,5,19,0,0,2328,2330,5,27,0,0,2329,2328,1,0,0,0,2329,2330,1,0,0,0,2330,2356,1,0,0,0,2331,2333,5,16,0,0,2332,2334,5,27,0,0,2333,2332,1,0,0,0,2333,2334,1,0,0,0,2334,2356,1,0,0,0,2335,2337,5,27,0,0,2336,2338,5,27,0,0,2337,2336,1,0,0,0,2337,2338,1,0,0,0,2338,2356,1,0,0,0,2339,2341,5,31,0,0,2340,2342,3,888,444,0,2341,2340,1,0,0,0,2341,2342,1,0,0,0,2342,2343,1,0,0,0,2343,2345,5,24,0,0,2344,2346,3,888,444,0,2345,2344,1,0,0,0,2345,2346,1,0,0,0,2346,2347,1,0,0,0,2347,2349,5,32,0,0,2348,2350,5,27,0,0,2349,2348,1,0,0,0,2349,2350,1,0,0,0,2350,2356,1,0,0,0,2351,2352,5,31,0,0,2352,2353,3,888,444,0,2353,2354,5,32,0,0,2354,2356,1,0,0,0,2355,2327,1,0,0,0,2355,2331,1,0,0,0,2355,2335,1,0,0,0,2355,2339,1,0,0,0,2355,2351,1,0,0,0,2356,283,1,0,0,0,2357,2373,3,286,143,0,2358,2373,5,30,0,0,2359,2373,5,33,0,0,2360,2362,5,25,0,0,2361,2363,3,276,138,0,2362,2361,1,0,0,0,2362,2363,1,0,0,0,2363,2364,1,0,0,0,2364,2373,5,26,0,0,2365,2366,5,31,0,0,2366,2367,5,17,0,0,2367,2368,3,276,138,0,2368,2369,5,17,0,0,2369,2370,5,32,0,0,2370,2373,1,0,0,0,2371,2373,3,288,144,0,2372,2357,1,0,0,0,2372,2358,1,0,0,0,2372,2359,1,0,0,0,2372,2360,1,0,0,0,2372,2365,1,0,0,0,2372,2371,1,0,0,0,2373,285,1,0,0,0,2374,2375,3,312,156,0,2375,287,1,0,0,0,2376,2377,5,224,0,0,2377,2378,5,25,0,0,2378,2383,3,276,138,0,2379,2380,5,24,0,0,2380,2382,3,276,138,0,2381,2379,1,0,0,0,2382,2385,1,0,0,0,2383,2381,1,0,0,0,2383,2384,1,0,0,0,2384,2386,1,0,0,0,2385,2383,1,0,0,0,2386,2387,5,26,0,0,2387,289,1,0,0,0,2388,2389,5,281,0,0,2389,2390,3,292,146,0,2390,291,1,0,0,0,2391,2396,3,294,147,0,2392,2393,5,24,0,0,2393,2395,3,294,147,0,2394,2392,1,0,0,0,2395,2398,1,0,0,0,2396,2394,1,0,0,0,2396,2397,1,0,0,0,2397,293,1,0,0,0,2398,2396,1,0,0,0,2399,2400,3,296,148,0,2400,2401,5,1,0,0,2401,2402,5,25,0,0,2402,2403,3,298,149,0,2403,2404,5,26,0,0,2404,295,1,0,0,0,2405,2406,3,312,156,0,2406,297,1,0,0,0,2407,2412,3,300,150,0,2408,2409,5,24,0,0,2409,2411,3,300,150,0,2410,2408,1,0,0,0,2411,2414,1,0,0,0,2412,2410,1,0,0,0,2412,2413,1,0,0,0,2413,299,1,0,0,0,2414,2412,1,0,0,0,2415,2416,3,312,156,0,2416,301,1,0,0,0,2417,2422,3,304,152,0,2418,2419,5,24,0,0,2419,2421,3,304,152,0,2420,2418,1,0,0,0,2421,2424,1,0,0,0,2422,2420,1,0,0,0,2422,2423,1,0,0,0,2423,303,1,0,0,0,2424,2422,1,0,0,0,2425,2426,3,306,153,0,2426,2427,5,49,0,0,2427,2428,3,308,154,0,2428,305,1,0,0,0,2429,2430,3,312,156,0,2430,307,1,0,0,0,2431,2432,3,310,155,0,2432,309,1,0,0,0,2433,2434,3,14,7,0,2434,311,1,0,0,0,2435,2436,3,804,402,0,2436,313,1,0,0,0,2437,2438,5,213,0,0,2438,2439,5,67,0,0,2439,2440,3,230,115,0,2440,315,1,0,0,0,2441,2443,5,51,0,0,2442,2441,1,0,0,0,2442,2443,1,0,0,0,2443,2444,1,0,0,0,2444,2445,3,314,157,0,2445,317,1,0,0,0,2446,2448,5,147,0,0,2447,2449,5,79,0,0,2448,2447,1,0,0,0,2448,2449,1,0,0,0,2449,2450,1,0,0,0,2450,2451,5,67,0,0,2451,2452,3,252,126,0,2452,2455,3,320,160,0,2453,2454,5,322,0,0,2454,2456,3,824,412,0,2455,2453,1,0,0,0,2455,2456,1,0,0,0,2456,319,1,0,0,0,2457,2462,3,322,161,0,2458,2459,5,24,0,0,2459,2461,3,322,161,0,2460,2458,1,0,0,0,2461,2464,1,0,0,0,2462,2460,1,0,0,0,2462,2463,1,0,0,0,2463,321,1,0,0,0,2464,2462,1,0,0,0,2465,2471,3,324,162,0,2466,2471,3,328,164,0,2467,2471,3,330,165,0,2468,2471,3,332,166,0,2469,2471,3,334,167,0,2470,2465,1,0,0,0,2470,2466,1,0,0,0,2470,2467,1,0,0,0,2470,2468,1,0,0,0,2470,2469,1,0,0,0,2471,323,1,0,0,0,2472,2473,3,128,64,0,2473,325,1,0,0,0,2474,2479,3,324,162,0,2475,2476,5,24,0,0,2476,2478,3,324,162,0,2477,2475,1,0,0,0,2478,2481,1,0,0,0,2479,2477,1,0,0,0,2479,2480,1,0,0,0,2480,327,1,0,0,0,2481,2479,1,0,0,0,2482,2483,5,261,0,0,2483,2484,5,25,0,0,2484,2485,3,326,163,0,2485,2486,5,26,0,0,2486,329,1,0,0,0,2487,2488,5,88,0,0,2488,2489,5,25,0,0,2489,2490,3,326,163,0,2490,2491,5,26,0,0,2491,331,1,0,0,0,2492,2493,5,148,0,0,2493,2494,5,272,0,0,2494,2495,5,25,0,0,2495,2496,3,320,160,0,2496,2497,5,26,0,0,2497,333,1,0,0,0,2498,2499,5,152,0,0,2499,2500,5,25,0,0,2500,2501,3,14,7,0,2501,2502,5,24,0,0,2502,2503,3,14,7,0,2503,2504,5,24,0,0,2504,2505,3,14,7,0,2505,2506,5,24,0,0,2506,2507,3,14,7,0,2507,2508,5,26,0,0,2508,335,1,0,0,0,2509,2510,3,848,424,0,2510,2511,5,19,0,0,2511,2519,1,0,0,0,2512,2516,3,14,7,0,2513,2514,5,49,0,0,2514,2517,3,826,413,0,2515,2517,3,844,422,0,2516,2513,1,0,0,0,2516,2515,1,0,0,0,2516,2517,1,0,0,0,2517,2519,1,0,0,0,2518,2509,1,0,0,0,2518,2512,1,0,0,0,2519,337,1,0,0,0,2520,2522,5,47,0,0,2521,2520,1,0,0,0,2521,2522,1,0,0,0,2522,2523,1,0,0,0,2523,2534,3,344,172,0,2524,2526,3,358,179,0,2525,2527,5,47,0,0,2526,2525,1,0,0,0,2526,2527,1,0,0,0,2527,2528,1,0,0,0,2528,2530,3,344,172,0,2529,2531,3,360,180,0,2530,2529,1,0,0,0,2530,2531,1,0,0,0,2531,2533,1,0,0,0,2532,2524,1,0,0,0,2533,2536,1,0,0,0,2534,2532,1,0,0,0,2534,2535,1,0,0,0,2535,339,1,0,0,0,2536,2534,1,0,0,0,2537,2540,3,120,60,0,2538,2539,5,49,0,0,2539,2541,3,824,412,0,2540,2538,1,0,0,0,2540,2541,1,0,0,0,2541,341,1,0,0,0,2542,2551,3,340,170,0,2543,2544,5,25,0,0,2544,2546,3,130,65,0,2545,2547,5,24,0,0,2546,2545,1,0,0,0,2546,2547,1,0,0,0,2547,2548,1,0,0,0,2548,2549,5,26,0,0,2549,2551,1,0,0,0,2550,2542,1,0,0,0,2550,2543,1,0,0,0,2551,343,1,0,0,0,2552,2562,3,346,173,0,2553,2560,5,136,0,0,2554,2556,7,13,0,0,2555,2554,1,0,0,0,2555,2556,1,0,0,0,2556,2557,1,0,0,0,2557,2558,5,67,0,0,2558,2561,3,342,171,0,2559,2561,5,77,0,0,2560,2555,1,0,0,0,2560,2559,1,0,0,0,2561,2563,1,0,0,0,2562,2553,1,0,0,0,2562,2563,1,0,0,0,2563,345,1,0,0,0,2564,2566,3,348,174,0,2565,2567,3,256,128,0,2566,2565,1,0,0,0,2566,2567,1,0,0,0,2567,2576,1,0,0,0,2568,2569,5,49,0,0,2569,2572,3,824,412,0,2570,2572,3,844,422,0,2571,2568,1,0,0,0,2571,2570,1,0,0,0,2572,2574,1,0,0,0,2573,2575,3,114,57,0,2574,2573,1,0,0,0,2574,2575,1,0,0,0,2575,2577,1,0,0,0,2576,2571,1,0,0,0,2576,2577,1,0,0,0,2577,2580,1,0,0,0,2578,2581,3,350,175,0,2579,2581,3,352,176,0,2580,2578,1,0,0,0,2580,2579,1,0,0,0,2580,2581,1,0,0,0,2581,347,1,0,0,0,2582,2592,3,662,331,0,2583,2584,5,25,0,0,2584,2585,3,232,116,0,2585,2586,5,26,0,0,2586,2592,1,0,0,0,2587,2588,5,25,0,0,2588,2589,3,370,185,0,2589,2590,5,26,0,0,2590,2592,1,0,0,0,2591,2582,1,0,0,0,2591,2583,1,0,0,0,2591,2587,1,0,0,0,2592,349,1,0,0,0,2593,2594,5,264,0,0,2594,2595,3,14,7,0,2595,351,1,0,0,0,2596,2597,5,288,0,0,2597,2598,3,354,177,0,2598,2599,5,25,0,0,2599,2600,3,14,7,0,2600,2602,5,26,0,0,2601,2603,3,356,178,0,2602,2601,1,0,0,0,2602,2603,1,0,0,0,2603,353,1,0,0,0,2604,2605,7,14,0,0,2605,355,1,0,0,0,2606,2607,5,244,0,0,2607,2608,5,25,0,0,2608,2609,3,14,7,0,2609,2610,5,26,0,0,2610,357,1,0,0,0,2611,2636,5,24,0,0,2612,2614,5,195,0,0,2613,2612,1,0,0,0,2613,2614,1,0,0,0,2614,2632,1,0,0,0,2615,2617,5,179,0,0,2616,2618,7,15,0,0,2617,2616,1,0,0,0,2617,2618,1,0,0,0,2618,2626,1,0,0,0,2619,2621,5,258,0,0,2620,2622,7,15,0,0,2621,2620,1,0,0,0,2621,2622,1,0,0,0,2622,2626,1,0,0,0,2623,2626,5,125,0,0,2624,2626,5,142,0,0,2625,2615,1,0,0,0,2625,2619,1,0,0,0,2625,2623,1,0,0,0,2625,2624,1,0,0,0,2625,2626,1,0,0,0,2626,2628,1,0,0,0,2627,2629,5,215,0,0,2628,2627,1,0,0,0,2628,2629,1,0,0,0,2629,2633,1,0,0,0,2630,2633,5,166,0,0,2631,2633,5,87,0,0,2632,2625,1,0,0,0,2632,2630,1,0,0,0,2632,2631,1,0,0,0,2633,2634,1,0,0,0,2634,2636,5,173,0,0,2635,2611,1,0,0,0,2635,2613,1,0,0,0,2636,359,1,0,0,0,2637,2638,5,207,0,0,2638,2642,3,14,7,0,2639,2640,5,313,0,0,2640,2642,3,118,59,0,2641,2637,1,0,0,0,2641,2639,1,0,0,0,2642,361,1,0,0,0,2643,2653,5,255,0,0,2644,2654,5,19,0,0,2645,2650,3,824,412,0,2646,2647,5,24,0,0,2647,2649,3,824,412,0,2648,2646,1,0,0,0,2649,2652,1,0,0,0,2650,2648,1,0,0,0,2650,2651,1,0,0,0,2651,2654,1,0,0,0,2652,2650,1,0,0,0,2653,2644,1,0,0,0,2653,2645,1,0,0,0,2654,363,1,0,0,0,2655,2668,5,167,0,0,2656,2657,5,167,0,0,2657,2658,5,212,0,0,2658,2668,5,38,0,0,2659,2660,5,167,0,0,2660,2661,5,212,0,0,2661,2668,5,256,0,0,2662,2663,5,167,0,0,2663,2664,5,212,0,0,2664,2668,5,154,0,0,2665,2668,5,310,0,0,2666,2668,5,245,0,0,2667,2655,1,0,0,0,2667,2656,1,0,0,0,2667,2659,1,0,0,0,2667,2662,1,0,0,0,2667,2665,1,0,0,0,2667,2666,1,0,0,0,2668,2669,1,0,0,0,2669,2670,5,170,0,0,2670,2671,3,678,339,0,2671,2673,3,368,184,0,2672,2674,3,362,181,0,2673,2672,1,0,0,0,2673,2674,1,0,0,0,2674,365,1,0,0,0,2675,2687,5,167,0,0,2676,2677,5,167,0,0,2677,2678,5,212,0,0,2678,2687,5,38,0,0,2679,2680,5,167,0,0,2680,2681,5,212,0,0,2681,2687,5,256,0,0,2682,2683,5,167,0,0,2683,2684,5,212,0,0,2684,2687,5,154,0,0,2685,2687,5,245,0,0,2686,2675,1,0,0,0,2686,2676,1,0,0,0,2686,2679,1,0,0,0,2686,2682,1,0,0,0,2686,2685,1,0,0,0,2687,2688,1,0,0,0,2688,2689,5,170,0,0,2689,2690,3,678,339,0,2690,2691,3,368,184,0,2691,367,1,0,0,0,2692,2694,3,114,57,0,2693,2692,1,0,0,0,2693,2694,1,0,0,0,2694,2695,1,0,0,0,2695,2699,3,372,186,0,2696,2697,5,97,0,0,2697,2699,5,315,0,0,2698,2693,1,0,0,0,2698,2696,1,0,0,0,2699,369,1,0,0,0,2700,2701,5,315,0,0,2701,2702,3,374,187,0,2702,371,1,0,0,0,2703,2706,3,370,185,0,2704,2706,3,232,116,0,2705,2703,1,0,0,0,2705,2704,1,0,0,0,2706,373,1,0,0,0,2707,2712,3,376,188,0,2708,2709,5,24,0,0,2709,2711,3,376,188,0,2710,2708,1,0,0,0,2711,2714,1,0,0,0,2712,2710,1,0,0,0,2712,2713,1,0,0,0,2713,375,1,0,0,0,2714,2712,1,0,0,0,2715,2716,5,25,0,0,2716,2717,3,112,56,0,2717,2718,5,26,0,0,2718,377,1,0,0,0,2719,2722,3,112,56,0,2720,2722,3,232,116,0,2721,2719,1,0,0,0,2721,2720,1,0,0,0,2722,379,1,0,0,0,2723,2726,5,86,0,0,2724,2725,5,212,0,0,2725,2727,5,245,0,0,2726,2724,1,0,0,0,2726,2727,1,0,0,0,2727,2728,1,0,0,0,2728,2729,5,130,0,0,2729,2730,5,93,0,0,2730,2734,5,276,0,0,2731,2732,5,153,0,0,2732,2733,5,199,0,0,2733,2735,5,127,0,0,2734,2731,1,0,0,0,2734,2735,1,0,0,0,2735,2736,1,0,0,0,2736,2737,3,672,336,0,2737,2738,3,456,228,0,2738,381,1,0,0,0,2739,2740,5,43,0,0,2740,2741,5,130,0,0,2741,2742,5,93,0,0,2742,2743,5,276,0,0,2743,2744,3,672,336,0,2744,2749,3,384,192,0,2745,2746,5,24,0,0,2746,2748,3,384,192,0,2747,2745,1,0,0,0,2748,2751,1,0,0,0,2749,2747,1,0,0,0,2749,2750,1,0,0,0,2750,383,1,0,0,0,2751,2749,1,0,0,0,2752,2756,3,488,244,0,2753,2756,3,490,245,0,2754,2756,3,492,246,0,2755,2752,1,0,0,0,2755,2753,1,0,0,0,2755,2754,1,0,0,0,2756,385,1,0,0,0,2757,2758,5,111,0,0,2758,2759,5,130,0,0,2759,2760,5,93,0,0,2760,2763,5,276,0,0,2761,2762,5,153,0,0,2762,2764,5,127,0,0,2763,2761,1,0,0,0,2763,2764,1,0,0,0,2764,2765,1,0,0,0,2765,2766,3,672,336,0,2766,387,1,0,0,0,2767,2768,5,86,0,0,2768,2772,5,317,0,0,2769,2770,5,153,0,0,2770,2771,5,199,0,0,2771,2773,5,127,0,0,2772,2769,1,0,0,0,2772,2773,1,0,0,0,2773,2774,1,0,0,0,2774,2776,3,672,336,0,2775,2777,3,396,198,0,2776,2775,1,0,0,0,2776,2777,1,0,0,0,2777,2778,1,0,0,0,2778,2779,5,49,0,0,2779,2780,3,232,116,0,2780,389,1,0,0,0,2781,2782,5,111,0,0,2782,2785,5,317,0,0,2783,2784,5,153,0,0,2784,2786,5,127,0,0,2785,2783,1,0,0,0,2785,2786,1,0,0,0,2786,2787,1,0,0,0,2787,2788,3,672,336,0,2788,391,1,0,0,0,2789,2790,5,310,0,0,2790,2791,5,203,0,0,2791,2792,3,672,336,0,2792,2793,5,25,0,0,2793,2794,5,302,0,0,2794,2795,3,416,208,0,2795,2797,5,26,0,0,2796,2798,3,396,198,0,2797,2796,1,0,0,0,2797,2798,1,0,0,0,2798,393,1,0,0,0,2799,2800,5,86,0,0,2800,2804,5,203,0,0,2801,2802,5,153,0,0,2802,2803,5,199,0,0,2803,2805,5,127,0,0,2804,2801,1,0,0,0,2804,2805,1,0,0,0,2805,2806,1,0,0,0,2806,2807,3,672,336,0,2807,2808,5,25,0,0,2808,2809,5,302,0,0,2809,2810,3,416,208,0,2810,2812,5,26,0,0,2811,2813,3,396,198,0,2812,2811,1,0,0,0,2812,2813,1,0,0,0,2813,395,1,0,0,0,2814,2815,5,322,0,0,2815,2816,3,414,207,0,2816,397,1,0,0,0,2817,2818,5,43,0,0,2818,2819,5,203,0,0,2819,2820,3,672,336,0,2820,2821,5,25,0,0,2821,2822,5,302,0,0,2822,2823,3,416,208,0,2823,2824,5,26,0,0,2824,2825,3,400,200,0,2825,399,1,0,0,0,2826,2827,5,271,0,0,2827,2828,3,414,207,0,2828,401,1,0,0,0,2829,2830,5,111,0,0,2830,2833,5,203,0,0,2831,2832,5,153,0,0,2832,2834,5,127,0,0,2833,2831,1,0,0,0,2833,2834,1,0,0,0,2834,2835,1,0,0,0,2835,2836,3,672,336,0,2836,2837,5,25,0,0,2837,2838,5,302,0,0,2838,2839,3,416,208,0,2839,2841,5,26,0,0,2840,2842,3,404,202,0,2841,2840,1,0,0,0,2841,2842,1,0,0,0,2842,403,1,0,0,0,2843,2844,5,322,0,0,2844,2845,3,414,207,0,2845,405,1,0,0,0,2846,2851,3,852,426,0,2847,2851,3,144,72,0,2848,2851,5,326,0,0,2849,2851,3,884,442,0,2850,2846,1,0,0,0,2850,2847,1,0,0,0,2850,2848,1,0,0,0,2850,2849,1,0,0,0,2851,407,1,0,0,0,2852,2853,3,826,413,0,2853,2854,5,1,0,0,2854,2855,3,406,203,0,2855,409,1,0,0,0,2856,2857,3,826,413,0,2857,411,1,0,0,0,2858,2861,3,408,204,0,2859,2861,3,410,205,0,2860,2858,1,0,0,0,2860,2859,1,0,0,0,2861,413,1,0,0,0,2862,2875,3,412,206,0,2863,2864,5,25,0,0,2864,2869,3,412,206,0,2865,2866,5,24,0,0,2866,2868,3,412,206,0,2867,2865,1,0,0,0,2868,2871,1,0,0,0,2869,2867,1,0,0,0,2869,2870,1,0,0,0,2870,2872,1,0,0,0,2871,2869,1,0,0,0,2872,2873,5,26,0,0,2873,2875,1,0,0,0,2874,2862,1,0,0,0,2874,2863,1,0,0,0,2875,415,1,0,0,0,2876,2877,3,826,413,0,2877,417,1,0,0,0,2878,2881,5,86,0,0,2879,2880,5,212,0,0,2880,2882,5,245,0,0,2881,2879,1,0,0,0,2881,2882,1,0,0,0,2882,2891,1,0,0,0,2883,2892,5,286,0,0,2884,2892,5,289,0,0,2885,2886,5,130,0,0,2886,2892,5,286,0,0,2887,2888,5,291,0,0,2888,2892,5,286,0,0,2889,2890,5,292,0,0,2890,2892,5,286,0,0,2891,2883,1,0,0,0,2891,2884,1,0,0,0,2891,2885,1,0,0,0,2891,2887,1,0,0,0,2891,2889,1,0,0,0,2892,2896,1,0,0,0,2893,2894,5,153,0,0,2894,2895,5,199,0,0,2895,2897,5,127,0,0,2896,2893,1,0,0,0,2896,2897,1,0,0,0,2897,2898,1,0,0,0,2898,2899,3,676,338,0,2899,2900,5,25,0,0,2900,2905,3,420,210,0,2901,2902,5,24,0,0,2902,2904,3,420,210,0,2903,2901,1,0,0,0,2904,2907,1,0,0,0,2905,2903,1,0,0,0,2905,2906,1,0,0,0,2906,2909,1,0,0,0,2907,2905,1,0,0,0,2908,2910,5,24,0,0,2909,2908,1,0,0,0,2909,2910,1,0,0,0,2910,2911,1,0,0,0,2911,2913,5,26,0,0,2912,2914,3,452,226,0,2913,2912,1,0,0,0,2913,2914,1,0,0,0,2914,2916,1,0,0,0,2915,2917,3,454,227,0,2916,2915,1,0,0,0,2916,2917,1,0,0,0,2917,2919,1,0,0,0,2918,2920,3,456,228,0,2919,2918,1,0,0,0,2919,2920,1,0,0,0,2920,2922,1,0,0,0,2921,2923,3,458,229,0,2922,2921,1,0,0,0,2922,2923,1,0,0,0,2923,2925,1,0,0,0,2924,2926,3,462,231,0,2925,2924,1,0,0,0,2925,2926,1,0,0,0,2926,419,1,0,0,0,2927,2934,3,510,255,0,2928,2934,3,518,259,0,2929,2934,3,520,260,0,2930,2934,3,554,277,0,2931,2934,3,536,268,0,2932,2934,3,828,414,0,2933,2927,1,0,0,0,2933,2928,1,0,0,0,2933,2929,1,0,0,0,2933,2930,1,0,0,0,2933,2931,1,0,0,0,2933,2932,1,0,0,0,2934,421,1,0,0,0,2935,2936,5,86,0,0,2936,2938,3,442,221,0,2937,2939,3,428,214,0,2938,2937,1,0,0,0,2938,2939,1,0,0,0,2939,2940,1,0,0,0,2940,2941,5,322,0,0,2941,2942,5,25,0,0,2942,2943,3,444,222,0,2943,2944,5,26,0,0,2944,423,1,0,0,0,2945,2946,5,43,0,0,2946,2949,3,442,221,0,2947,2950,3,434,217,0,2948,2950,3,438,219,0,2949,2947,1,0,0,0,2949,2948,1,0,0,0,2950,425,1,0,0,0,2951,2952,5,111,0,0,2952,2953,3,442,221,0,2953,427,1,0,0,0,2954,2957,5,94,0,0,2955,2957,3,430,215,0,2956,2954,1,0,0,0,2956,2955,1,0,0,0,2957,429,1,0,0,0,2958,2959,5,25,0,0,2959,2960,3,432,216,0,2960,2961,5,26,0,0,2961,431,1,0,0,0,2962,2963,5,286,0,0,2963,2969,3,836,418,0,2964,2965,5,24,0,0,2965,2966,5,286,0,0,2966,2968,3,836,418,0,2967,2964,1,0,0,0,2968,2971,1,0,0,0,2969,2967,1,0,0,0,2969,2970,1,0,0,0,2970,433,1,0,0,0,2971,2969,1,0,0,0,2972,2977,3,436,218,0,2973,2974,5,24,0,0,2974,2976,3,436,218,0,2975,2973,1,0,0,0,2976,2979,1,0,0,0,2977,2975,1,0,0,0,2977,2978,1,0,0,0,2978,435,1,0,0,0,2979,2977,1,0,0,0,2980,2983,3,490,245,0,2981,2983,3,492,246,0,2982,2980,1,0,0,0,2982,2981,1,0,0,0,2983,437,1,0,0,0,2984,2989,3,440,220,0,2985,2986,5,24,0,0,2986,2988,3,440,220,0,2987,2985,1,0,0,0,2988,2991,1,0,0,0,2989,2987,1,0,0,0,2989,2990,1,0,0,0,2990,439,1,0,0,0,2991,2989,1,0,0,0,2992,2993,5,40,0,0,2993,3003,5,94,0,0,2994,2995,5,111,0,0,2995,3003,5,94,0,0,2996,2997,5,40,0,0,2997,2998,5,286,0,0,2998,3003,3,836,418,0,2999,3e3,5,111,0,0,3e3,3001,5,286,0,0,3001,3003,3,836,418,0,3002,2992,1,0,0,0,3002,2994,1,0,0,0,3002,2996,1,0,0,0,3002,2999,1,0,0,0,3003,441,1,0,0,0,3004,3005,5,59,0,0,3005,3006,5,61,0,0,3006,3007,3,672,336,0,3007,443,1,0,0,0,3008,3013,3,446,223,0,3009,3010,5,24,0,0,3010,3012,3,446,223,0,3011,3009,1,0,0,0,3012,3015,1,0,0,0,3013,3011,1,0,0,0,3013,3014,1,0,0,0,3014,445,1,0,0,0,3015,3013,1,0,0,0,3016,3017,3,824,412,0,3017,3018,5,1,0,0,3018,3019,3,548,274,0,3019,447,1,0,0,0,3020,3021,5,59,0,0,3021,3023,3,672,336,0,3022,3024,5,160,0,0,3023,3022,1,0,0,0,3023,3024,1,0,0,0,3024,449,1,0,0,0,3025,3026,5,251,0,0,3026,3029,3,672,336,0,3027,3028,5,54,0,0,3028,3030,5,326,0,0,3029,3027,1,0,0,0,3029,3030,1,0,0,0,3030,451,1,0,0,0,3031,3032,5,163,0,0,3032,3033,5,25,0,0,3033,3038,3,674,337,0,3034,3035,5,24,0,0,3035,3037,3,674,337,0,3036,3034,1,0,0,0,3037,3040,1,0,0,0,3038,3036,1,0,0,0,3038,3039,1,0,0,0,3039,3041,1,0,0,0,3040,3038,1,0,0,0,3041,3042,5,26,0,0,3042,453,1,0,0,0,3043,3044,5,218,0,0,3044,3045,5,67,0,0,3045,3046,5,150,0,0,3046,3047,3,114,57,0,3047,455,1,0,0,0,3048,3049,5,322,0,0,3049,3050,5,25,0,0,3050,3055,3,460,230,0,3051,3052,5,24,0,0,3052,3054,3,460,230,0,3053,3051,1,0,0,0,3054,3057,1,0,0,0,3055,3053,1,0,0,0,3055,3056,1,0,0,0,3056,3058,1,0,0,0,3057,3055,1,0,0,0,3058,3059,5,26,0,0,3059,457,1,0,0,0,3060,3061,5,289,0,0,3061,3062,3,674,337,0,3062,459,1,0,0,0,3063,3064,3,824,412,0,3064,3065,5,1,0,0,3065,3066,3,548,274,0,3066,461,1,0,0,0,3067,3068,5,49,0,0,3068,3069,3,372,186,0,3069,463,1,0,0,0,3070,3071,5,43,0,0,3071,3072,5,286,0,0,3072,3073,3,676,338,0,3073,3078,3,466,233,0,3074,3075,5,24,0,0,3075,3077,3,466,233,0,3076,3074,1,0,0,0,3077,3080,1,0,0,0,3078,3076,1,0,0,0,3078,3079,1,0,0,0,3079,465,1,0,0,0,3080,3078,1,0,0,0,3081,3099,3,476,238,0,3082,3099,3,478,239,0,3083,3099,3,480,240,0,3084,3099,3,484,242,0,3085,3099,3,486,243,0,3086,3099,3,488,244,0,3087,3099,3,490,245,0,3088,3099,3,492,246,0,3089,3099,3,494,247,0,3090,3099,3,496,248,0,3091,3099,3,498,249,0,3092,3099,3,502,251,0,3093,3099,3,504,252,0,3094,3099,3,506,253,0,3095,3099,3,500,250,0,3096,3099,3,508,254,0,3097,3099,3,482,241,0,3098,3081,1,0,0,0,3098,3082,1,0,0,0,3098,3083,1,0,0,0,3098,3084,1,0,0,0,3098,3085,1,0,0,0,3098,3086,1,0,0,0,3098,3087,1,0,0,0,3098,3088,1,0,0,0,3098,3089,1,0,0,0,3098,3090,1,0,0,0,3098,3091,1,0,0,0,3098,3092,1,0,0,0,3098,3093,1,0,0,0,3098,3094,1,0,0,0,3098,3095,1,0,0,0,3098,3096,1,0,0,0,3098,3097,1,0,0,0,3099,467,1,0,0,0,3100,3101,5,43,0,0,3101,3102,5,130,0,0,3102,3103,5,286,0,0,3103,3104,3,676,338,0,3104,3109,3,470,235,0,3105,3106,5,24,0,0,3106,3108,3,470,235,0,3107,3105,1,0,0,0,3108,3111,1,0,0,0,3109,3107,1,0,0,0,3109,3110,1,0,0,0,3110,469,1,0,0,0,3111,3109,1,0,0,0,3112,3118,3,476,238,0,3113,3118,3,478,239,0,3114,3118,3,488,244,0,3115,3118,3,490,245,0,3116,3118,3,492,246,0,3117,3112,1,0,0,0,3117,3113,1,0,0,0,3117,3114,1,0,0,0,3117,3115,1,0,0,0,3117,3116,1,0,0,0,3118,471,1,0,0,0,3119,3120,5,43,0,0,3120,3121,5,289,0,0,3121,3122,3,672,336,0,3122,3127,3,474,237,0,3123,3124,5,24,0,0,3124,3126,3,474,237,0,3125,3123,1,0,0,0,3126,3129,1,0,0,0,3127,3125,1,0,0,0,3127,3128,1,0,0,0,3128,473,1,0,0,0,3129,3127,1,0,0,0,3130,3133,3,476,238,0,3131,3133,3,478,239,0,3132,3130,1,0,0,0,3132,3131,1,0,0,0,3133,475,1,0,0,0,3134,3136,5,40,0,0,3135,3137,5,76,0,0,3136,3135,1,0,0,0,3136,3137,1,0,0,0,3137,3138,1,0,0,0,3138,3139,3,510,255,0,3139,477,1,0,0,0,3140,3142,5,111,0,0,3141,3143,5,76,0,0,3142,3141,1,0,0,0,3142,3143,1,0,0,0,3143,3144,1,0,0,0,3144,3145,3,824,412,0,3145,479,1,0,0,0,3146,3147,5,43,0,0,3147,3148,5,76,0,0,3148,3149,3,824,412,0,3149,3150,5,271,0,0,3150,3151,3,512,256,0,3151,481,1,0,0,0,3152,3153,5,43,0,0,3153,3154,5,76,0,0,3154,3155,3,824,412,0,3155,3156,5,111,0,0,3156,3157,5,199,0,0,3157,3158,5,201,0,0,3158,483,1,0,0,0,3159,3160,5,40,0,0,3160,3161,3,554,277,0,3161,485,1,0,0,0,3162,3163,5,43,0,0,3163,3164,5,133,0,0,3164,3165,3,824,412,0,3165,3166,5,271,0,0,3166,3167,3,824,412,0,3167,3168,3,560,280,0,3168,487,1,0,0,0,3169,3170,5,271,0,0,3170,3171,3,824,412,0,3171,3172,3,548,274,0,3172,489,1,0,0,0,3173,3174,5,271,0,0,3174,3175,5,25,0,0,3175,3180,3,546,273,0,3176,3177,5,24,0,0,3177,3179,3,546,273,0,3178,3176,1,0,0,0,3179,3182,1,0,0,0,3180,3178,1,0,0,0,3180,3181,1,0,0,0,3181,3183,1,0,0,0,3182,3180,1,0,0,0,3183,3184,5,26,0,0,3184,491,1,0,0,0,3185,3186,5,247,0,0,3186,3187,5,25,0,0,3187,3192,3,824,412,0,3188,3189,5,24,0,0,3189,3191,3,824,412,0,3190,3188,1,0,0,0,3191,3194,1,0,0,0,3192,3190,1,0,0,0,3192,3193,1,0,0,0,3193,3195,1,0,0,0,3194,3192,1,0,0,0,3195,3196,5,26,0,0,3196,493,1,0,0,0,3197,3198,5,40,0,0,3198,3199,3,520,260,0,3199,495,1,0,0,0,3200,3201,5,111,0,0,3201,3202,5,161,0,0,3202,3203,3,824,412,0,3203,497,1,0,0,0,3204,3205,5,243,0,0,3205,3206,5,295,0,0,3206,3207,3,836,418,0,3207,499,1,0,0,0,3208,3209,5,243,0,0,3209,3210,5,161,0,0,3210,3211,3,824,412,0,3211,3212,5,295,0,0,3212,3213,3,824,412,0,3213,501,1,0,0,0,3214,3215,5,40,0,0,3215,3216,3,536,268,0,3216,503,1,0,0,0,3217,3218,5,43,0,0,3218,3219,5,72,0,0,3219,3220,3,824,412,0,3220,3221,3,544,272,0,3221,505,1,0,0,0,3222,3223,5,111,0,0,3223,3224,5,72,0,0,3224,3225,3,824,412,0,3225,507,1,0,0,0,3226,3227,5,43,0,0,3227,3228,5,161,0,0,3228,3229,3,824,412,0,3229,3230,3,566,283,0,3230,509,1,0,0,0,3231,3232,3,828,414,0,3232,3234,3,204,102,0,3233,3235,3,512,256,0,3234,3233,1,0,0,0,3234,3235,1,0,0,0,3235,3236,1,0,0,0,3236,3237,3,514,257,0,3237,511,1,0,0,0,3238,3239,5,133,0,0,3239,3240,3,824,412,0,3240,513,1,0,0,0,3241,3243,5,199,0,0,3242,3241,1,0,0,0,3242,3243,1,0,0,0,3243,3244,1,0,0,0,3244,3246,5,201,0,0,3245,3242,1,0,0,0,3245,3246,1,0,0,0,3246,3249,1,0,0,0,3247,3248,5,97,0,0,3248,3250,3,14,7,0,3249,3247,1,0,0,0,3249,3250,1,0,0,0,3250,515,1,0,0,0,3251,3253,3,824,412,0,3252,3254,7,9,0,0,3253,3252,1,0,0,0,3253,3254,1,0,0,0,3254,517,1,0,0,0,3255,3256,5,230,0,0,3256,3257,5,177,0,0,3257,3258,5,25,0,0,3258,3263,3,824,412,0,3259,3260,5,24,0,0,3260,3262,3,824,412,0,3261,3259,1,0,0,0,3262,3265,1,0,0,0,3263,3261,1,0,0,0,3263,3264,1,0,0,0,3264,3266,1,0,0,0,3265,3263,1,0,0,0,3266,3267,5,26,0,0,3267,3295,1,0,0,0,3268,3269,5,218,0,0,3269,3270,5,67,0,0,3270,3271,5,25,0,0,3271,3276,3,824,412,0,3272,3273,5,24,0,0,3273,3275,3,824,412,0,3274,3272,1,0,0,0,3275,3278,1,0,0,0,3276,3274,1,0,0,0,3276,3277,1,0,0,0,3277,3279,1,0,0,0,3278,3276,1,0,0,0,3279,3280,5,26,0,0,3280,3295,1,0,0,0,3281,3282,5,213,0,0,3282,3283,5,67,0,0,3283,3284,5,25,0,0,3284,3289,3,516,258,0,3285,3286,5,24,0,0,3286,3288,3,516,258,0,3287,3285,1,0,0,0,3288,3291,1,0,0,0,3289,3287,1,0,0,0,3289,3290,1,0,0,0,3290,3292,1,0,0,0,3291,3289,1,0,0,0,3292,3293,5,26,0,0,3293,3295,1,0,0,0,3294,3255,1,0,0,0,3294,3268,1,0,0,0,3294,3281,1,0,0,0,3295,519,1,0,0,0,3296,3297,5,161,0,0,3297,3298,3,824,412,0,3298,3299,3,522,261,0,3299,3300,5,207,0,0,3300,3301,5,25,0,0,3301,3306,3,828,414,0,3302,3303,5,24,0,0,3303,3305,3,828,414,0,3304,3302,1,0,0,0,3305,3308,1,0,0,0,3306,3304,1,0,0,0,3306,3307,1,0,0,0,3307,3309,1,0,0,0,3308,3306,1,0,0,0,3309,3322,5,26,0,0,3310,3311,5,85,0,0,3311,3312,5,25,0,0,3312,3317,3,828,414,0,3313,3314,5,24,0,0,3314,3316,3,828,414,0,3315,3313,1,0,0,0,3316,3319,1,0,0,0,3317,3315,1,0,0,0,3317,3318,1,0,0,0,3318,3320,1,0,0,0,3319,3317,1,0,0,0,3320,3321,5,26,0,0,3321,3323,1,0,0,0,3322,3310,1,0,0,0,3322,3323,1,0,0,0,3323,3325,1,0,0,0,3324,3326,3,530,265,0,3325,3324,1,0,0,0,3325,3326,1,0,0,0,3326,521,1,0,0,0,3327,3330,3,524,262,0,3328,3330,3,526,263,0,3329,3327,1,0,0,0,3329,3328,1,0,0,0,3330,3333,1,0,0,0,3331,3332,5,313,0,0,3332,3334,3,528,264,0,3333,3331,1,0,0,0,3333,3334,1,0,0,0,3334,523,1,0,0,0,3335,3337,5,145,0,0,3336,3338,5,306,0,0,3337,3336,1,0,0,0,3337,3338,1,0,0,0,3338,3340,1,0,0,0,3339,3341,7,16,0,0,3340,3339,1,0,0,0,3340,3341,1,0,0,0,3341,525,1,0,0,0,3342,3343,5,184,0,0,3343,527,1,0,0,0,3344,3345,3,824,412,0,3345,529,1,0,0,0,3346,3347,5,322,0,0,3347,3348,5,25,0,0,3348,3353,3,532,266,0,3349,3350,5,24,0,0,3350,3352,3,532,266,0,3351,3349,1,0,0,0,3352,3355,1,0,0,0,3353,3351,1,0,0,0,3353,3354,1,0,0,0,3354,3357,1,0,0,0,3355,3353,1,0,0,0,3356,3358,5,24,0,0,3357,3356,1,0,0,0,3357,3358,1,0,0,0,3358,3359,1,0,0,0,3359,3360,5,26,0,0,3360,531,1,0,0,0,3361,3362,3,824,412,0,3362,3363,5,1,0,0,3363,3364,3,534,267,0,3364,533,1,0,0,0,3365,3370,3,852,426,0,3366,3370,5,326,0,0,3367,3370,3,888,444,0,3368,3370,3,884,442,0,3369,3365,1,0,0,0,3369,3366,1,0,0,0,3369,3367,1,0,0,0,3369,3368,1,0,0,0,3370,535,1,0,0,0,3371,3372,5,72,0,0,3372,3373,3,824,412,0,3373,3374,5,322,0,0,3374,3375,5,25,0,0,3375,3376,3,538,269,0,3376,3377,5,26,0,0,3377,537,1,0,0,0,3378,3383,3,540,270,0,3379,3380,5,24,0,0,3380,3382,3,540,270,0,3381,3379,1,0,0,0,3382,3385,1,0,0,0,3383,3381,1,0,0,0,3383,3384,1,0,0,0,3384,539,1,0,0,0,3385,3383,1,0,0,0,3386,3387,3,824,412,0,3387,3388,5,1,0,0,3388,3389,3,542,271,0,3389,541,1,0,0,0,3390,3391,3,14,7,0,3391,543,1,0,0,0,3392,3399,5,107,0,0,3393,3394,5,271,0,0,3394,3395,5,25,0,0,3395,3396,3,538,269,0,3396,3397,5,26,0,0,3397,3399,1,0,0,0,3398,3392,1,0,0,0,3398,3393,1,0,0,0,3399,545,1,0,0,0,3400,3401,3,824,412,0,3401,3402,5,1,0,0,3402,3403,3,548,274,0,3403,547,1,0,0,0,3404,3417,3,806,403,0,3405,3417,5,326,0,0,3406,3417,3,888,444,0,3407,3417,3,562,281,0,3408,3409,3,550,275,0,3409,3410,5,207,0,0,3410,3413,3,824,412,0,3411,3412,5,49,0,0,3412,3414,7,17,0,0,3413,3411,1,0,0,0,3413,3414,1,0,0,0,3414,3417,1,0,0,0,3415,3417,3,884,442,0,3416,3404,1,0,0,0,3416,3405,1,0,0,0,3416,3406,1,0,0,0,3416,3407,1,0,0,0,3416,3408,1,0,0,0,3416,3415,1,0,0,0,3417,549,1,0,0,0,3418,3429,3,14,7,0,3419,3426,3,552,276,0,3420,3421,5,24,0,0,3421,3422,3,14,7,0,3422,3423,3,552,276,0,3423,3425,1,0,0,0,3424,3420,1,0,0,0,3425,3428,1,0,0,0,3426,3424,1,0,0,0,3426,3427,1,0,0,0,3427,3430,1,0,0,0,3428,3426,1,0,0,0,3429,3419,1,0,0,0,3429,3430,1,0,0,0,3430,551,1,0,0,0,3431,3432,5,295,0,0,3432,3433,5,130,0,0,3433,3434,5,93,0,0,3434,3435,5,276,0,0,3435,3438,3,824,412,0,3436,3438,5,101,0,0,3437,3431,1,0,0,0,3437,3436,1,0,0,0,3438,553,1,0,0,0,3439,3440,5,133,0,0,3440,3441,3,824,412,0,3441,3442,3,556,278,0,3442,555,1,0,0,0,3443,3452,5,25,0,0,3444,3449,3,558,279,0,3445,3446,5,24,0,0,3446,3448,3,558,279,0,3447,3445,1,0,0,0,3448,3451,1,0,0,0,3449,3447,1,0,0,0,3449,3450,1,0,0,0,3450,3453,1,0,0,0,3451,3449,1,0,0,0,3452,3444,1,0,0,0,3452,3453,1,0,0,0,3453,3454,1,0,0,0,3454,3455,5,26,0,0,3455,557,1,0,0,0,3456,3457,3,824,412,0,3457,3458,5,1,0,0,3458,3459,3,560,280,0,3459,559,1,0,0,0,3460,3463,5,326,0,0,3461,3463,3,888,444,0,3462,3460,1,0,0,0,3462,3461,1,0,0,0,3463,561,1,0,0,0,3464,3465,5,25,0,0,3465,3470,3,564,282,0,3466,3467,5,24,0,0,3467,3469,3,564,282,0,3468,3466,1,0,0,0,3469,3472,1,0,0,0,3470,3468,1,0,0,0,3470,3471,1,0,0,0,3471,3473,1,0,0,0,3472,3470,1,0,0,0,3473,3474,5,26,0,0,3474,3477,1,0,0,0,3475,3477,3,564,282,0,3476,3464,1,0,0,0,3476,3475,1,0,0,0,3477,563,1,0,0,0,3478,3479,5,25,0,0,3479,3484,3,142,71,0,3480,3481,5,24,0,0,3481,3483,3,142,71,0,3482,3480,1,0,0,0,3483,3486,1,0,0,0,3484,3482,1,0,0,0,3484,3485,1,0,0,0,3485,3487,1,0,0,0,3486,3484,1,0,0,0,3487,3488,5,26,0,0,3488,565,1,0,0,0,3489,3493,3,488,244,0,3490,3493,3,490,245,0,3491,3493,3,492,246,0,3492,3489,1,0,0,0,3492,3490,1,0,0,0,3492,3491,1,0,0,0,3493,567,1,0,0,0,3494,3499,5,111,0,0,3495,3500,5,286,0,0,3496,3500,5,289,0,0,3497,3498,5,130,0,0,3498,3500,5,286,0,0,3499,3495,1,0,0,0,3499,3496,1,0,0,0,3499,3497,1,0,0,0,3500,3503,1,0,0,0,3501,3502,5,153,0,0,3502,3504,5,127,0,0,3503,3501,1,0,0,0,3503,3504,1,0,0,0,3504,3505,1,0,0,0,3505,3506,3,676,338,0,3506,569,1,0,0,0,3507,3508,5,86,0,0,3508,3509,5,312,0,0,3509,3513,3,580,290,0,3510,3512,3,582,291,0,3511,3510,1,0,0,0,3512,3515,1,0,0,0,3513,3511,1,0,0,0,3513,3514,1,0,0,0,3514,571,1,0,0,0,3515,3513,1,0,0,0,3516,3517,5,43,0,0,3517,3518,5,312,0,0,3518,3530,3,580,290,0,3519,3521,5,322,0,0,3520,3519,1,0,0,0,3520,3521,1,0,0,0,3521,3523,1,0,0,0,3522,3524,3,582,291,0,3523,3522,1,0,0,0,3524,3525,1,0,0,0,3525,3523,1,0,0,0,3525,3526,1,0,0,0,3526,3531,1,0,0,0,3527,3528,5,243,0,0,3528,3529,5,295,0,0,3529,3531,3,580,290,0,3530,3520,1,0,0,0,3530,3527,1,0,0,0,3531,573,1,0,0,0,3532,3533,5,86,0,0,3533,3534,5,147,0,0,3534,3548,3,580,290,0,3535,3536,5,322,0,0,3536,3537,5,312,0,0,3537,3542,3,580,290,0,3538,3539,5,24,0,0,3539,3541,3,580,290,0,3540,3538,1,0,0,0,3541,3544,1,0,0,0,3542,3540,1,0,0,0,3542,3543,1,0,0,0,3543,3546,1,0,0,0,3544,3542,1,0,0,0,3545,3547,5,24,0,0,3546,3545,1,0,0,0,3546,3547,1,0,0,0,3547,3549,1,0,0,0,3548,3535,1,0,0,0,3548,3549,1,0,0,0,3549,575,1,0,0,0,3550,3551,5,43,0,0,3551,3552,5,147,0,0,3552,3569,3,580,290,0,3553,3554,7,18,0,0,3554,3555,5,312,0,0,3555,3560,3,580,290,0,3556,3557,5,24,0,0,3557,3559,3,580,290,0,3558,3556,1,0,0,0,3559,3562,1,0,0,0,3560,3558,1,0,0,0,3560,3561,1,0,0,0,3561,3564,1,0,0,0,3562,3560,1,0,0,0,3563,3565,5,24,0,0,3564,3563,1,0,0,0,3564,3565,1,0,0,0,3565,3570,1,0,0,0,3566,3567,5,243,0,0,3567,3568,5,295,0,0,3568,3570,3,580,290,0,3569,3553,1,0,0,0,3569,3566,1,0,0,0,3570,577,1,0,0,0,3571,3572,5,111,0,0,3572,3575,7,19,0,0,3573,3574,5,153,0,0,3574,3576,5,127,0,0,3575,3573,1,0,0,0,3575,3576,1,0,0,0,3576,3577,1,0,0,0,3577,3582,3,580,290,0,3578,3579,5,24,0,0,3579,3581,3,580,290,0,3580,3578,1,0,0,0,3581,3584,1,0,0,0,3582,3580,1,0,0,0,3582,3583,1,0,0,0,3583,3586,1,0,0,0,3584,3582,1,0,0,0,3585,3587,5,24,0,0,3586,3585,1,0,0,0,3586,3587,1,0,0,0,3587,579,1,0,0,0,3588,3591,3,826,413,0,3589,3591,3,144,72,0,3590,3588,1,0,0,0,3590,3589,1,0,0,0,3591,581,1,0,0,0,3592,3595,3,584,292,0,3593,3595,3,590,295,0,3594,3592,1,0,0,0,3594,3593,1,0,0,0,3595,583,1,0,0,0,3596,3599,3,586,293,0,3597,3599,3,588,294,0,3598,3596,1,0,0,0,3598,3597,1,0,0,0,3599,585,1,0,0,0,3600,3602,5,116,0,0,3601,3600,1,0,0,0,3601,3602,1,0,0,0,3602,3603,1,0,0,0,3603,3604,5,220,0,0,3604,3605,3,14,7,0,3605,587,1,0,0,0,3606,3607,5,150,0,0,3607,3608,3,14,7,0,3608,589,1,0,0,0,3609,3610,7,20,0,0,3610,591,1,0,0,0,3611,3612,5,146,0,0,3612,3613,3,600,300,0,3613,3614,5,207,0,0,3614,3619,3,828,414,0,3615,3616,5,24,0,0,3616,3618,3,828,414,0,3617,3615,1,0,0,0,3618,3621,1,0,0,0,3619,3617,1,0,0,0,3619,3620,1,0,0,0,3620,3622,1,0,0,0,3621,3619,1,0,0,0,3622,3623,5,295,0,0,3623,3628,3,580,290,0,3624,3625,5,24,0,0,3625,3627,3,580,290,0,3626,3624,1,0,0,0,3627,3630,1,0,0,0,3628,3626,1,0,0,0,3628,3629,1,0,0,0,3629,3632,1,0,0,0,3630,3628,1,0,0,0,3631,3633,5,24,0,0,3632,3631,1,0,0,0,3632,3633,1,0,0,0,3633,3637,1,0,0,0,3634,3635,5,322,0,0,3635,3636,5,146,0,0,3636,3638,5,210,0,0,3637,3634,1,0,0,0,3637,3638,1,0,0,0,3638,593,1,0,0,0,3639,3643,5,257,0,0,3640,3641,5,146,0,0,3641,3642,5,210,0,0,3642,3644,5,139,0,0,3643,3640,1,0,0,0,3643,3644,1,0,0,0,3644,3645,1,0,0,0,3645,3646,3,600,300,0,3646,3647,5,207,0,0,3647,3652,3,828,414,0,3648,3649,5,24,0,0,3649,3651,3,828,414,0,3650,3648,1,0,0,0,3651,3654,1,0,0,0,3652,3650,1,0,0,0,3652,3653,1,0,0,0,3653,3655,1,0,0,0,3654,3652,1,0,0,0,3655,3656,5,141,0,0,3656,3661,3,580,290,0,3657,3658,5,24,0,0,3658,3660,3,580,290,0,3659,3657,1,0,0,0,3660,3663,1,0,0,0,3661,3659,1,0,0,0,3661,3662,1,0,0,0,3662,595,1,0,0,0,3663,3661,1,0,0,0,3664,3689,5,82,0,0,3665,3689,5,183,0,0,3666,3689,5,167,0,0,3667,3689,5,186,0,0,3668,3689,5,111,0,0,3669,3689,5,146,0,0,3670,3671,5,193,0,0,3671,3689,7,21,0,0,3672,3673,7,22,0,0,3673,3689,5,262,0,0,3674,3675,7,23,0,0,3675,3689,5,266,0,0,3676,3678,5,269,0,0,3677,3679,7,24,0,0,3678,3677,1,0,0,0,3678,3679,1,0,0,0,3679,3689,1,0,0,0,3680,3682,7,25,0,0,3681,3683,5,180,0,0,3682,3681,1,0,0,0,3682,3683,1,0,0,0,3683,3689,1,0,0,0,3684,3686,5,86,0,0,3685,3687,7,26,0,0,3686,3685,1,0,0,0,3686,3687,1,0,0,0,3687,3689,1,0,0,0,3688,3664,1,0,0,0,3688,3665,1,0,0,0,3688,3666,1,0,0,0,3688,3667,1,0,0,0,3688,3668,1,0,0,0,3688,3669,1,0,0,0,3688,3670,1,0,0,0,3688,3672,1,0,0,0,3688,3674,1,0,0,0,3688,3676,1,0,0,0,3688,3680,1,0,0,0,3688,3684,1,0,0,0,3689,597,1,0,0,0,3690,3693,3,596,298,0,3691,3693,5,326,0,0,3692,3690,1,0,0,0,3692,3691,1,0,0,0,3693,599,1,0,0,0,3694,3699,3,598,299,0,3695,3696,5,24,0,0,3696,3698,3,598,299,0,3697,3695,1,0,0,0,3698,3701,1,0,0,0,3699,3697,1,0,0,0,3699,3700,1,0,0,0,3700,3703,1,0,0,0,3701,3699,1,0,0,0,3702,3704,5,24,0,0,3703,3702,1,0,0,0,3703,3704,1,0,0,0,3704,3710,1,0,0,0,3705,3707,5,42,0,0,3706,3708,5,231,0,0,3707,3706,1,0,0,0,3707,3708,1,0,0,0,3708,3710,1,0,0,0,3709,3694,1,0,0,0,3709,3705,1,0,0,0,3710,601,1,0,0,0,3711,3712,5,86,0,0,3712,3713,5,248,0,0,3713,3714,5,226,0,0,3714,3715,3,672,336,0,3715,3716,3,456,228,0,3716,603,1,0,0,0,3717,3718,5,43,0,0,3718,3719,5,248,0,0,3719,3720,5,226,0,0,3720,3721,3,672,336,0,3721,3726,3,606,303,0,3722,3723,5,24,0,0,3723,3725,3,606,303,0,3724,3722,1,0,0,0,3725,3728,1,0,0,0,3726,3724,1,0,0,0,3726,3727,1,0,0,0,3727,605,1,0,0,0,3728,3726,1,0,0,0,3729,3732,3,490,245,0,3730,3732,3,492,246,0,3731,3729,1,0,0,0,3731,3730,1,0,0,0,3732,607,1,0,0,0,3733,3734,5,111,0,0,3734,3735,5,248,0,0,3735,3736,5,226,0,0,3736,3737,3,672,336,0,3737,609,1,0,0,0,3738,3739,5,86,0,0,3739,3740,5,248,0,0,3740,3741,5,226,0,0,3741,3742,5,74,0,0,3742,3743,3,672,336,0,3743,3744,3,456,228,0,3744,611,1,0,0,0,3745,3746,5,43,0,0,3746,3747,5,248,0,0,3747,3748,5,226,0,0,3748,3749,5,74,0,0,3749,3750,3,672,336,0,3750,3755,3,614,307,0,3751,3752,5,24,0,0,3752,3754,3,614,307,0,3753,3751,1,0,0,0,3754,3757,1,0,0,0,3755,3753,1,0,0,0,3755,3756,1,0,0,0,3756,613,1,0,0,0,3757,3755,1,0,0,0,3758,3761,3,490,245,0,3759,3761,3,492,246,0,3760,3758,1,0,0,0,3760,3759,1,0,0,0,3761,615,1,0,0,0,3762,3763,5,111,0,0,3763,3764,5,248,0,0,3764,3765,5,226,0,0,3765,3766,5,74,0,0,3766,3767,3,672,336,0,3767,617,1,0,0,0,3768,3769,5,86,0,0,3769,3770,5,53,0,0,3770,3771,5,246,0,0,3771,3772,3,672,336,0,3772,3773,5,139,0,0,3773,3778,3,620,310,0,3774,3775,5,24,0,0,3775,3777,3,620,310,0,3776,3774,1,0,0,0,3777,3780,1,0,0,0,3778,3776,1,0,0,0,3778,3779,1,0,0,0,3779,3781,1,0,0,0,3780,3778,1,0,0,0,3781,3782,5,322,0,0,3782,3783,5,25,0,0,3783,3784,3,622,311,0,3784,3785,5,26,0,0,3785,619,1,0,0,0,3786,3787,3,672,336,0,3787,3788,3,898,449,0,3788,621,1,0,0,0,3789,3794,3,624,312,0,3790,3791,5,24,0,0,3791,3793,3,624,312,0,3792,3790,1,0,0,0,3793,3796,1,0,0,0,3794,3792,1,0,0,0,3794,3795,1,0,0,0,3795,623,1,0,0,0,3796,3794,1,0,0,0,3797,3798,3,824,412,0,3798,3799,5,1,0,0,3799,3800,3,14,7,0,3800,625,1,0,0,0,3801,3802,5,43,0,0,3802,3803,5,53,0,0,3803,3804,5,246,0,0,3804,3805,3,672,336,0,3805,3810,3,628,314,0,3806,3807,5,24,0,0,3807,3809,3,628,314,0,3808,3806,1,0,0,0,3809,3812,1,0,0,0,3810,3808,1,0,0,0,3810,3811,1,0,0,0,3811,627,1,0,0,0,3812,3810,1,0,0,0,3813,3814,3,630,315,0,3814,629,1,0,0,0,3815,3816,5,271,0,0,3816,3817,5,25,0,0,3817,3818,3,622,311,0,3818,3819,5,26,0,0,3819,631,1,0,0,0,3820,3821,5,111,0,0,3821,3822,5,53,0,0,3822,3823,5,246,0,0,3823,3825,3,672,336,0,3824,3826,5,69,0,0,3825,3824,1,0,0,0,3825,3826,1,0,0,0,3826,633,1,0,0,0,3827,3830,3,80,40,0,3828,3830,3,144,72,0,3829,3827,1,0,0,0,3829,3828,1,0,0,0,3830,635,1,0,0,0,3831,3832,5,86,0,0,3832,3833,5,298,0,0,3833,3834,3,672,336,0,3834,3835,5,141,0,0,3835,3836,3,672,336,0,3836,3837,5,295,0,0,3837,3840,3,672,336,0,3838,3839,5,313,0,0,3839,3841,3,634,317,0,3840,3838,1,0,0,0,3840,3841,1,0,0,0,3841,3842,1,0,0,0,3842,3843,5,322,0,0,3843,3844,5,25,0,0,3844,3845,3,638,319,0,3845,3846,5,26,0,0,3846,637,1,0,0,0,3847,3852,3,640,320,0,3848,3849,5,24,0,0,3849,3851,3,640,320,0,3850,3848,1,0,0,0,3851,3854,1,0,0,0,3852,3850,1,0,0,0,3852,3853,1,0,0,0,3853,639,1,0,0,0,3854,3852,1,0,0,0,3855,3856,3,824,412,0,3856,3857,5,1,0,0,3857,3858,3,14,7,0,3858,641,1,0,0,0,3859,3860,5,43,0,0,3860,3861,5,298,0,0,3861,3862,3,672,336,0,3862,3867,3,644,322,0,3863,3864,5,24,0,0,3864,3866,3,644,322,0,3865,3863,1,0,0,0,3866,3869,1,0,0,0,3867,3865,1,0,0,0,3867,3868,1,0,0,0,3868,643,1,0,0,0,3869,3867,1,0,0,0,3870,3873,3,646,323,0,3871,3873,3,648,324,0,3872,3870,1,0,0,0,3872,3871,1,0,0,0,3873,645,1,0,0,0,3874,3875,5,271,0,0,3875,3876,5,25,0,0,3876,3877,3,638,319,0,3877,3878,5,26,0,0,3878,647,1,0,0,0,3879,3880,5,271,0,0,3880,3881,5,313,0,0,3881,3882,3,634,317,0,3882,649,1,0,0,0,3883,3884,5,111,0,0,3884,3885,5,298,0,0,3885,3887,3,672,336,0,3886,3888,5,69,0,0,3887,3886,1,0,0,0,3887,3888,1,0,0,0,3888,651,1,0,0,0,3889,3894,3,146,73,0,3890,3891,5,24,0,0,3891,3893,3,146,73,0,3892,3890,1,0,0,0,3893,3896,1,0,0,0,3894,3892,1,0,0,0,3894,3895,1,0,0,0,3895,653,1,0,0,0,3896,3894,1,0,0,0,3897,3898,5,100,0,0,3898,3899,7,27,0,0,3899,3900,3,144,72,0,3900,3902,5,25,0,0,3901,3903,3,652,326,0,3902,3901,1,0,0,0,3902,3903,1,0,0,0,3903,3904,1,0,0,0,3904,3905,5,26,0,0,3905,3906,5,49,0,0,3906,3907,3,656,328,0,3907,3908,5,117,0,0,3908,3909,5,100,0,0,3909,655,1,0,0,0,3910,3912,5,22,0,0,3911,3910,1,0,0,0,3912,3915,1,0,0,0,3913,3911,1,0,0,0,3913,3914,1,0,0,0,3914,3934,1,0,0,0,3915,3913,1,0,0,0,3916,3925,3,12,6,0,3917,3919,5,22,0,0,3918,3917,1,0,0,0,3919,3920,1,0,0,0,3920,3918,1,0,0,0,3920,3921,1,0,0,0,3921,3922,1,0,0,0,3922,3924,3,12,6,0,3923,3918,1,0,0,0,3924,3927,1,0,0,0,3925,3923,1,0,0,0,3925,3926,1,0,0,0,3926,3931,1,0,0,0,3927,3925,1,0,0,0,3928,3930,5,22,0,0,3929,3928,1,0,0,0,3930,3933,1,0,0,0,3931,3929,1,0,0,0,3931,3932,1,0,0,0,3932,3935,1,0,0,0,3933,3931,1,0,0,0,3934,3916,1,0,0,0,3934,3935,1,0,0,0,3935,657,1,0,0,0,3936,3938,5,122,0,0,3937,3936,1,0,0,0,3937,3938,1,0,0,0,3938,3939,1,0,0,0,3939,3940,5,153,0,0,3940,3941,3,14,7,0,3941,3944,3,222,111,0,3942,3943,5,113,0,0,3943,3945,3,222,111,0,3944,3942,1,0,0,0,3944,3945,1,0,0,0,3945,659,1,0,0,0,3946,3948,5,122,0,0,3947,3946,1,0,0,0,3947,3948,1,0,0,0,3948,3950,1,0,0,0,3949,3951,5,217,0,0,3950,3949,1,0,0,0,3950,3951,1,0,0,0,3951,3952,1,0,0,0,3952,3953,5,139,0,0,3953,3954,3,144,72,0,3954,3955,5,158,0,0,3955,3956,3,14,7,0,3956,3959,3,222,111,0,3957,3958,5,113,0,0,3958,3960,3,222,111,0,3959,3957,1,0,0,0,3959,3960,1,0,0,0,3960,661,1,0,0,0,3961,3962,3,850,425,0,3962,3963,5,23,0,0,3963,3965,1,0,0,0,3964,3961,1,0,0,0,3964,3965,1,0,0,0,3965,3967,1,0,0,0,3966,3968,5,29,0,0,3967,3966,1,0,0,0,3967,3968,1,0,0,0,3968,3999,1,0,0,0,3969,4e3,3,664,332,0,3970,3971,3,830,415,0,3971,3983,5,25,0,0,3972,3977,3,666,333,0,3973,3974,5,24,0,0,3974,3976,3,666,333,0,3975,3973,1,0,0,0,3976,3979,1,0,0,0,3977,3975,1,0,0,0,3977,3978,1,0,0,0,3978,3981,1,0,0,0,3979,3977,1,0,0,0,3980,3982,5,24,0,0,3981,3980,1,0,0,0,3981,3982,1,0,0,0,3982,3984,1,0,0,0,3983,3972,1,0,0,0,3983,3984,1,0,0,0,3984,3985,1,0,0,0,3985,3986,5,26,0,0,3986,4e3,1,0,0,0,3987,3993,3,144,72,0,3988,3990,5,25,0,0,3989,3991,3,112,56,0,3990,3989,1,0,0,0,3990,3991,1,0,0,0,3991,3992,1,0,0,0,3992,3994,5,26,0,0,3993,3988,1,0,0,0,3993,3994,1,0,0,0,3994,3997,1,0,0,0,3995,3996,5,317,0,0,3996,3998,3,846,423,0,3997,3995,1,0,0,0,3997,3998,1,0,0,0,3998,4e3,1,0,0,0,3999,3969,1,0,0,0,3999,3970,1,0,0,0,3999,3987,1,0,0,0,4e3,4002,1,0,0,0,4001,4003,3,668,334,0,4002,4001,1,0,0,0,4002,4003,1,0,0,0,4003,663,1,0,0,0,4004,4007,3,858,429,0,4005,4006,5,317,0,0,4006,4008,3,846,423,0,4007,4005,1,0,0,0,4007,4008,1,0,0,0,4008,665,1,0,0,0,4009,4011,5,29,0,0,4010,4009,1,0,0,0,4010,4011,1,0,0,0,4011,4012,1,0,0,0,4012,4015,3,128,64,0,4013,4014,5,317,0,0,4014,4016,3,846,423,0,4015,4013,1,0,0,0,4015,4016,1,0,0,0,4016,667,1,0,0,0,4017,4030,5,322,0,0,4018,4031,3,670,335,0,4019,4020,5,25,0,0,4020,4025,3,670,335,0,4021,4022,5,24,0,0,4022,4024,3,670,335,0,4023,4021,1,0,0,0,4024,4027,1,0,0,0,4025,4023,1,0,0,0,4025,4026,1,0,0,0,4026,4028,1,0,0,0,4027,4025,1,0,0,0,4028,4029,5,26,0,0,4029,4031,1,0,0,0,4030,4018,1,0,0,0,4030,4019,1,0,0,0,4031,669,1,0,0,0,4032,4051,3,840,420,0,4033,4049,5,1,0,0,4034,4050,3,160,80,0,4035,4036,5,25,0,0,4036,4041,3,160,80,0,4037,4038,5,24,0,0,4038,4040,3,160,80,0,4039,4037,1,0,0,0,4040,4043,1,0,0,0,4041,4039,1,0,0,0,4041,4042,1,0,0,0,4042,4045,1,0,0,0,4043,4041,1,0,0,0,4044,4046,5,24,0,0,4045,4044,1,0,0,0,4045,4046,1,0,0,0,4046,4047,1,0,0,0,4047,4048,5,26,0,0,4048,4050,1,0,0,0,4049,4034,1,0,0,0,4049,4035,1,0,0,0,4050,4052,1,0,0,0,4051,4033,1,0,0,0,4051,4052,1,0,0,0,4052,4078,1,0,0,0,4053,4055,7,28,0,0,4054,4056,5,1,0,0,4055,4054,1,0,0,0,4055,4056,1,0,0,0,4056,4057,1,0,0,0,4057,4078,3,204,102,0,4058,4060,5,266,0,0,4059,4061,5,1,0,0,4060,4059,1,0,0,0,4060,4061,1,0,0,0,4061,4062,1,0,0,0,4062,4071,5,25,0,0,4063,4068,3,164,82,0,4064,4065,5,24,0,0,4065,4067,3,164,82,0,4066,4064,1,0,0,0,4067,4070,1,0,0,0,4068,4066,1,0,0,0,4068,4069,1,0,0,0,4069,4072,1,0,0,0,4070,4068,1,0,0,0,4071,4063,1,0,0,0,4071,4072,1,0,0,0,4072,4074,1,0,0,0,4073,4075,5,24,0,0,4074,4073,1,0,0,0,4074,4075,1,0,0,0,4075,4076,1,0,0,0,4076,4078,5,26,0,0,4077,4032,1,0,0,0,4077,4053,1,0,0,0,4077,4058,1,0,0,0,4078,671,1,0,0,0,4079,4080,3,850,425,0,4080,4081,5,23,0,0,4081,4083,1,0,0,0,4082,4079,1,0,0,0,4082,4083,1,0,0,0,4083,4084,1,0,0,0,4084,4085,3,856,428,0,4085,673,1,0,0,0,4086,4092,3,672,336,0,4087,4089,5,29,0,0,4088,4087,1,0,0,0,4088,4089,1,0,0,0,4089,4090,1,0,0,0,4090,4092,3,144,72,0,4091,4086,1,0,0,0,4091,4088,1,0,0,0,4092,675,1,0,0,0,4093,4095,3,674,337,0,4094,4096,3,668,334,0,4095,4094,1,0,0,0,4095,4096,1,0,0,0,4096,677,1,0,0,0,4097,4101,3,676,338,0,4098,4099,5,119,0,0,4099,4100,5,67,0,0,4100,4102,3,114,57,0,4101,4098,1,0,0,0,4101,4102,1,0,0,0,4102,679,1,0,0,0,4103,4105,5,60,0,0,4104,4103,1,0,0,0,4104,4105,1,0,0,0,4105,4106,1,0,0,0,4106,4107,5,101,0,0,4107,4108,5,141,0,0,4108,4112,3,676,338,0,4109,4113,3,900,450,0,4110,4111,5,207,0,0,4111,4113,3,368,184,0,4112,4109,1,0,0,0,4112,4110,1,0,0,0,4112,4113,1,0,0,0,4113,4115,1,0,0,0,4114,4116,3,362,181,0,4115,4114,1,0,0,0,4115,4116,1,0,0,0,4116,681,1,0,0,0,4117,4119,5,60,0,0,4118,4117,1,0,0,0,4118,4119,1,0,0,0,4119,4120,1,0,0,0,4120,4121,5,309,0,0,4121,4129,3,676,338,0,4122,4123,5,271,0,0,4123,4125,3,684,342,0,4124,4126,3,900,450,0,4125,4124,1,0,0,0,4125,4126,1,0,0,0,4126,4130,1,0,0,0,4127,4128,5,207,0,0,4128,4130,3,368,184,0,4129,4122,1,0,0,0,4129,4127,1,0,0,0,4130,4132,1,0,0,0,4131,4133,3,362,181,0,4132,4131,1,0,0,0,4132,4133,1,0,0,0,4133,683,1,0,0,0,4134,4137,3,686,343,0,4135,4137,3,692,346,0,4136,4134,1,0,0,0,4136,4135,1,0,0,0,4137,685,1,0,0,0,4138,4143,3,688,344,0,4139,4140,5,24,0,0,4140,4142,3,688,344,0,4141,4139,1,0,0,0,4142,4145,1,0,0,0,4143,4141,1,0,0,0,4143,4144,1,0,0,0,4144,687,1,0,0,0,4145,4143,1,0,0,0,4146,4147,3,690,345,0,4147,4148,5,1,0,0,4148,4149,3,14,7,0,4149,689,1,0,0,0,4150,4151,3,120,60,0,4151,691,1,0,0,0,4152,4153,3,694,347,0,4153,4154,5,1,0,0,4154,4155,5,25,0,0,4155,4156,3,378,189,0,4156,4157,5,26,0,0,4157,693,1,0,0,0,4158,4159,5,25,0,0,4159,4164,3,690,345,0,4160,4161,5,24,0,0,4161,4163,3,690,345,0,4162,4160,1,0,0,0,4163,4166,1,0,0,0,4164,4162,1,0,0,0,4164,4165,1,0,0,0,4165,4167,1,0,0,0,4166,4164,1,0,0,0,4167,4168,5,26,0,0,4168,695,1,0,0,0,4169,4170,5,86,0,0,4170,4174,5,296,0,0,4171,4172,5,153,0,0,4172,4173,5,199,0,0,4173,4175,5,127,0,0,4174,4171,1,0,0,0,4174,4175,1,0,0,0,4175,4176,1,0,0,0,4176,4178,3,742,371,0,4177,4179,3,698,349,0,4178,4177,1,0,0,0,4178,4179,1,0,0,0,4179,4181,1,0,0,0,4180,4182,3,702,351,0,4181,4180,1,0,0,0,4181,4182,1,0,0,0,4182,697,1,0,0,0,4183,4184,5,25,0,0,4184,4189,3,700,350,0,4185,4186,5,24,0,0,4186,4188,3,700,350,0,4187,4185,1,0,0,0,4188,4191,1,0,0,0,4189,4187,1,0,0,0,4189,4190,1,0,0,0,4190,4192,1,0,0,0,4191,4189,1,0,0,0,4192,4193,5,26,0,0,4193,699,1,0,0,0,4194,4195,3,710,355,0,4195,701,1,0,0,0,4196,4197,5,322,0,0,4197,4198,5,25,0,0,4198,4199,3,728,364,0,4199,4200,5,26,0,0,4200,703,1,0,0,0,4201,4202,5,43,0,0,4202,4205,5,296,0,0,4203,4204,5,153,0,0,4204,4206,5,127,0,0,4205,4203,1,0,0,0,4205,4206,1,0,0,0,4206,4207,1,0,0,0,4207,4208,3,742,371,0,4208,4213,3,706,353,0,4209,4210,5,24,0,0,4210,4212,3,706,353,0,4211,4209,1,0,0,0,4212,4215,1,0,0,0,4213,4211,1,0,0,0,4213,4214,1,0,0,0,4214,705,1,0,0,0,4215,4213,1,0,0,0,4216,4222,3,708,354,0,4217,4222,3,712,356,0,4218,4222,3,716,358,0,4219,4222,3,722,361,0,4220,4222,3,724,362,0,4221,4216,1,0,0,0,4221,4217,1,0,0,0,4221,4218,1,0,0,0,4221,4219,1,0,0,0,4221,4220,1,0,0,0,4222,707,1,0,0,0,4223,4224,5,40,0,0,4224,4225,3,710,355,0,4225,709,1,0,0,0,4226,4227,5,84,0,0,4227,4229,3,824,412,0,4228,4230,3,734,367,0,4229,4228,1,0,0,0,4229,4230,1,0,0,0,4230,711,1,0,0,0,4231,4232,5,43,0,0,4232,4233,5,84,0,0,4233,4234,3,744,372,0,4234,4235,3,714,357,0,4235,713,1,0,0,0,4236,4239,3,718,359,0,4237,4239,3,720,360,0,4238,4236,1,0,0,0,4238,4237,1,0,0,0,4239,715,1,0,0,0,4240,4241,5,111,0,0,4241,4242,5,84,0,0,4242,4243,3,744,372,0,4243,717,1,0,0,0,4244,4245,5,271,0,0,4245,4246,5,25,0,0,4246,4247,3,736,368,0,4247,4248,5,26,0,0,4248,719,1,0,0,0,4249,4250,5,247,0,0,4250,4251,5,25,0,0,4251,4256,3,824,412,0,4252,4253,5,24,0,0,4253,4255,3,824,412,0,4254,4252,1,0,0,0,4255,4258,1,0,0,0,4256,4254,1,0,0,0,4256,4257,1,0,0,0,4257,4259,1,0,0,0,4258,4256,1,0,0,0,4259,4260,5,26,0,0,4260,721,1,0,0,0,4261,4262,5,271,0,0,4262,4263,5,25,0,0,4263,4264,3,728,364,0,4264,4265,5,26,0,0,4265,723,1,0,0,0,4266,4267,5,247,0,0,4267,4268,5,25,0,0,4268,4273,3,824,412,0,4269,4270,5,24,0,0,4270,4272,3,842,421,0,4271,4269,1,0,0,0,4272,4275,1,0,0,0,4273,4271,1,0,0,0,4273,4274,1,0,0,0,4274,4276,1,0,0,0,4275,4273,1,0,0,0,4276,4277,5,26,0,0,4277,725,1,0,0,0,4278,4279,5,111,0,0,4279,4282,5,296,0,0,4280,4281,5,153,0,0,4281,4283,5,127,0,0,4282,4280,1,0,0,0,4282,4283,1,0,0,0,4283,4284,1,0,0,0,4284,4285,3,742,371,0,4285,727,1,0,0,0,4286,4291,3,730,365,0,4287,4288,5,24,0,0,4288,4290,3,730,365,0,4289,4287,1,0,0,0,4290,4293,1,0,0,0,4291,4289,1,0,0,0,4291,4292,1,0,0,0,4292,729,1,0,0,0,4293,4291,1,0,0,0,4294,4295,3,824,412,0,4295,4296,5,1,0,0,4296,4297,3,732,366,0,4297,731,1,0,0,0,4298,4299,3,14,7,0,4299,733,1,0,0,0,4300,4301,5,322,0,0,4301,4302,5,25,0,0,4302,4303,3,736,368,0,4303,4304,5,26,0,0,4304,735,1,0,0,0,4305,4310,3,738,369,0,4306,4307,5,24,0,0,4307,4309,3,738,369,0,4308,4306,1,0,0,0,4309,4312,1,0,0,0,4310,4308,1,0,0,0,4310,4311,1,0,0,0,4311,737,1,0,0,0,4312,4310,1,0,0,0,4313,4314,3,824,412,0,4314,4315,5,1,0,0,4315,4316,3,740,370,0,4316,739,1,0,0,0,4317,4318,3,14,7,0,4318,741,1,0,0,0,4319,4320,3,850,425,0,4320,4321,5,23,0,0,4321,4323,1,0,0,0,4322,4319,1,0,0,0,4322,4323,1,0,0,0,4323,4324,1,0,0,0,4324,4325,3,824,412,0,4325,743,1,0,0,0,4326,4327,3,842,421,0,4327,745,1,0,0,0,4328,4329,5,249,0,0,4329,4333,5,202,0,0,4330,4331,5,154,0,0,4331,4333,5,202,0,0,4332,4328,1,0,0,0,4332,4330,1,0,0,0,4333,747,1,0,0,0,4334,4335,5,134,0,0,4335,4336,5,25,0,0,4336,4337,3,900,450,0,4337,4338,5,26,0,0,4338,749,1,0,0,0,4339,4342,3,752,376,0,4340,4342,3,762,381,0,4341,4339,1,0,0,0,4341,4340,1,0,0,0,4342,751,1,0,0,0,4343,4344,3,834,417,0,4344,753,1,0,0,0,4345,4346,5,321,0,0,4346,4347,3,756,378,0,4347,755,1,0,0,0,4348,4353,3,758,379,0,4349,4350,5,24,0,0,4350,4352,3,758,379,0,4351,4349,1,0,0,0,4352,4355,1,0,0,0,4353,4351,1,0,0,0,4353,4354,1,0,0,0,4354,757,1,0,0,0,4355,4353,1,0,0,0,4356,4357,3,760,380,0,4357,4358,5,49,0,0,4358,4359,3,762,381,0,4359,759,1,0,0,0,4360,4361,3,752,376,0,4361,761,1,0,0,0,4362,4363,5,25,0,0,4363,4364,3,764,382,0,4364,4365,5,26,0,0,4365,763,1,0,0,0,4366,4368,3,766,383,0,4367,4366,1,0,0,0,4367,4368,1,0,0,0,4368,4370,1,0,0,0,4369,4371,3,768,384,0,4370,4369,1,0,0,0,4370,4371,1,0,0,0,4371,4373,1,0,0,0,4372,4374,3,770,385,0,4373,4372,1,0,0,0,4373,4374,1,0,0,0,4374,4376,1,0,0,0,4375,4377,3,772,386,0,4376,4375,1,0,0,0,4376,4377,1,0,0,0,4377,765,1,0,0,0,4378,4379,3,752,376,0,4379,767,1,0,0,0,4380,4382,5,218,0,0,4381,4383,5,79,0,0,4382,4381,1,0,0,0,4382,4383,1,0,0,0,4383,4384,1,0,0,0,4384,4385,5,67,0,0,4385,4386,3,130,65,0,4386,769,1,0,0,0,4387,4388,3,314,157,0,4388,771,1,0,0,0,4389,4390,3,774,387,0,4390,4392,3,776,388,0,4391,4393,3,782,391,0,4392,4391,1,0,0,0,4392,4393,1,0,0,0,4393,773,1,0,0,0,4394,4395,7,29,0,0,4395,775,1,0,0,0,4396,4399,3,780,390,0,4397,4399,3,778,389,0,4398,4396,1,0,0,0,4398,4397,1,0,0,0,4399,777,1,0,0,0,4400,4401,5,65,0,0,4401,4402,3,780,390,0,4402,4403,5,45,0,0,4403,4404,3,780,390,0,4404,779,1,0,0,0,4405,4406,5,89,0,0,4406,4413,5,262,0,0,4407,4410,3,14,7,0,4408,4410,5,303,0,0,4409,4407,1,0,0,0,4409,4408,1,0,0,0,4410,4411,1,0,0,0,4411,4413,7,30,0,0,4412,4405,1,0,0,0,4412,4409,1,0,0,0,4413,781,1,0,0,0,4414,4415,5,124,0,0,4415,4416,5,89,0,0,4416,4425,5,262,0,0,4417,4418,5,124,0,0,4418,4425,5,147,0,0,4419,4420,5,124,0,0,4420,4425,5,294,0,0,4421,4422,5,124,0,0,4422,4423,5,197,0,0,4423,4425,5,214,0,0,4424,4414,1,0,0,0,4424,4417,1,0,0,0,4424,4419,1,0,0,0,4424,4421,1,0,0,0,4425,783,1,0,0,0,4426,4427,5,311,0,0,4427,4428,3,850,425,0,4428,785,1,0,0,0,4429,4430,5,25,0,0,4430,4431,3,232,116,0,4431,4432,5,26,0,0,4432,4435,1,0,0,0,4433,4435,3,234,117,0,4434,4429,1,0,0,0,4434,4433,1,0,0,0,4435,787,1,0,0,0,4436,4437,3,148,74,0,4437,4440,5,1,0,0,4438,4441,3,14,7,0,4439,4441,3,786,393,0,4440,4438,1,0,0,0,4440,4439,1,0,0,0,4441,789,1,0,0,0,4442,4443,5,78,0,0,4443,791,1,0,0,0,4444,4445,5,260,0,0,4445,793,1,0,0,0,4446,4451,3,676,338,0,4447,4448,5,25,0,0,4448,4449,3,124,62,0,4449,4450,5,26,0,0,4450,4452,1,0,0,0,4451,4447,1,0,0,0,4451,4452,1,0,0,0,4452,795,1,0,0,0,4453,4458,3,794,397,0,4454,4455,5,24,0,0,4455,4457,3,794,397,0,4456,4454,1,0,0,0,4457,4460,1,0,0,0,4458,4456,1,0,0,0,4458,4459,1,0,0,0,4459,4462,1,0,0,0,4460,4458,1,0,0,0,4461,4463,5,24,0,0,4462,4461,1,0,0,0,4462,4463,1,0,0,0,4463,797,1,0,0,0,4464,4465,5,44,0,0,4465,4466,3,796,398,0,4466,799,1,0,0,0,4467,4468,5,43,0,0,4468,4471,5,275,0,0,4469,4470,5,153,0,0,4470,4472,5,127,0,0,4471,4469,1,0,0,0,4471,4472,1,0,0,0,4472,4473,1,0,0,0,4473,4475,3,672,336,0,4474,4476,3,802,401,0,4475,4474,1,0,0,0,4476,4477,1,0,0,0,4477,4475,1,0,0,0,4477,4478,1,0,0,0,4478,801,1,0,0,0,4479,4481,5,277,0,0,4480,4482,5,322,0,0,4481,4480,1,0,0,0,4481,4482,1,0,0,0,4482,4483,1,0,0,0,4483,4496,3,888,444,0,4484,4486,5,250,0,0,4485,4487,5,322,0,0,4486,4485,1,0,0,0,4486,4487,1,0,0,0,4487,4488,1,0,0,0,4488,4496,3,888,444,0,4489,4496,5,250,0,0,4490,4492,5,159,0,0,4491,4493,5,67,0,0,4492,4491,1,0,0,0,4492,4493,1,0,0,0,4493,4494,1,0,0,0,4494,4496,3,888,444,0,4495,4479,1,0,0,0,4495,4484,1,0,0,0,4495,4489,1,0,0,0,4495,4490,1,0,0,0,4496,803,1,0,0,0,4497,4498,7,31,0,0,4498,805,1,0,0,0,4499,4502,3,804,402,0,4500,4502,3,862,431,0,4501,4499,1,0,0,0,4501,4500,1,0,0,0,4502,807,1,0,0,0,4503,4511,3,804,402,0,4504,4511,3,880,440,0,4505,4511,3,864,432,0,4506,4511,3,868,434,0,4507,4511,3,872,436,0,4508,4511,3,874,437,0,4509,4511,3,876,438,0,4510,4503,1,0,0,0,4510,4504,1,0,0,0,4510,4505,1,0,0,0,4510,4506,1,0,0,0,4510,4507,1,0,0,0,4510,4508,1,0,0,0,4510,4509,1,0,0,0,4511,809,1,0,0,0,4512,4519,3,804,402,0,4513,4519,3,880,440,0,4514,4519,3,870,435,0,4515,4519,3,872,436,0,4516,4519,3,874,437,0,4517,4519,3,876,438,0,4518,4512,1,0,0,0,4518,4513,1,0,0,0,4518,4514,1,0,0,0,4518,4515,1,0,0,0,4518,4516,1,0,0,0,4518,4517,1,0,0,0,4519,811,1,0,0,0,4520,4526,3,804,402,0,4521,4526,3,880,440,0,4522,4526,3,870,435,0,4523,4526,3,874,437,0,4524,4526,3,876,438,0,4525,4520,1,0,0,0,4525,4521,1,0,0,0,4525,4522,1,0,0,0,4525,4523,1,0,0,0,4525,4524,1,0,0,0,4526,813,1,0,0,0,4527,4536,3,804,402,0,4528,4536,3,880,440,0,4529,4536,3,864,432,0,4530,4536,3,866,433,0,4531,4536,3,868,434,0,4532,4536,3,870,435,0,4533,4536,3,872,436,0,4534,4536,3,876,438,0,4535,4527,1,0,0,0,4535,4528,1,0,0,0,4535,4529,1,0,0,0,4535,4530,1,0,0,0,4535,4531,1,0,0,0,4535,4532,1,0,0,0,4535,4533,1,0,0,0,4535,4534,1,0,0,0,4536,815,1,0,0,0,4537,4545,3,804,402,0,4538,4545,3,880,440,0,4539,4545,3,864,432,0,4540,4545,3,868,434,0,4541,4545,3,872,436,0,4542,4545,3,874,437,0,4543,4545,3,876,438,0,4544,4537,1,0,0,0,4544,4538,1,0,0,0,4544,4539,1,0,0,0,4544,4540,1,0,0,0,4544,4541,1,0,0,0,4544,4542,1,0,0,0,4544,4543,1,0,0,0,4545,817,1,0,0,0,4546,4554,3,804,402,0,4547,4554,3,880,440,0,4548,4554,3,866,433,0,4549,4554,3,870,435,0,4550,4554,3,872,436,0,4551,4554,3,874,437,0,4552,4554,3,876,438,0,4553,4546,1,0,0,0,4553,4547,1,0,0,0,4553,4548,1,0,0,0,4553,4549,1,0,0,0,4553,4550,1,0,0,0,4553,4551,1,0,0,0,4553,4552,1,0,0,0,4554,819,1,0,0,0,4555,4564,3,804,402,0,4556,4564,3,880,440,0,4557,4564,3,864,432,0,4558,4564,3,866,433,0,4559,4564,3,868,434,0,4560,4564,3,870,435,0,4561,4564,3,872,436,0,4562,4564,3,874,437,0,4563,4555,1,0,0,0,4563,4556,1,0,0,0,4563,4557,1,0,0,0,4563,4558,1,0,0,0,4563,4559,1,0,0,0,4563,4560,1,0,0,0,4563,4561,1,0,0,0,4563,4562,1,0,0,0,4564,821,1,0,0,0,4565,4568,3,804,402,0,4566,4568,3,878,439,0,4567,4565,1,0,0,0,4567,4566,1,0,0,0,4568,823,1,0,0,0,4569,4572,3,806,403,0,4570,4572,5,326,0,0,4571,4569,1,0,0,0,4571,4570,1,0,0,0,4572,825,1,0,0,0,4573,4576,3,852,426,0,4574,4576,5,326,0,0,4575,4573,1,0,0,0,4575,4574,1,0,0,0,4576,827,1,0,0,0,4577,4580,3,808,404,0,4578,4580,5,326,0,0,4579,4577,1,0,0,0,4579,4578,1,0,0,0,4580,829,1,0,0,0,4581,4584,3,810,405,0,4582,4584,5,326,0,0,4583,4581,1,0,0,0,4583,4582,1,0,0,0,4584,831,1,0,0,0,4585,4588,3,812,406,0,4586,4588,5,326,0,0,4587,4585,1,0,0,0,4587,4586,1,0,0,0,4588,833,1,0,0,0,4589,4592,3,814,407,0,4590,4592,5,326,0,0,4591,4589,1,0,0,0,4591,4590,1,0,0,0,4592,835,1,0,0,0,4593,4596,3,816,408,0,4594,4596,5,326,0,0,4595,4593,1,0,0,0,4595,4594,1,0,0,0,4596,837,1,0,0,0,4597,4600,3,818,409,0,4598,4600,5,326,0,0,4599,4597,1,0,0,0,4599,4598,1,0,0,0,4600,839,1,0,0,0,4601,4604,3,820,410,0,4602,4604,5,326,0,0,4603,4601,1,0,0,0,4603,4602,1,0,0,0,4604,841,1,0,0,0,4605,4608,3,804,402,0,4606,4608,5,326,0,0,4607,4605,1,0,0,0,4607,4606,1,0,0,0,4608,843,1,0,0,0,4609,4612,3,822,411,0,4610,4612,5,326,0,0,4611,4609,1,0,0,0,4611,4610,1,0,0,0,4612,845,1,0,0,0,4613,4617,3,824,412,0,4614,4615,5,230,0,0,4615,4617,5,177,0,0,4616,4613,1,0,0,0,4616,4614,1,0,0,0,4617,847,1,0,0,0,4618,4619,3,824,412,0,4619,4620,5,23,0,0,4620,4622,1,0,0,0,4621,4618,1,0,0,0,4621,4622,1,0,0,0,4622,849,1,0,0,0,4623,4624,3,824,412,0,4624,4625,5,28,0,0,4625,4627,1,0,0,0,4626,4623,1,0,0,0,4626,4627,1,0,0,0,4627,4630,1,0,0,0,4628,4631,3,116,58,0,4629,4631,5,19,0,0,4630,4628,1,0,0,0,4630,4629,1,0,0,0,4631,851,1,0,0,0,4632,4635,3,806,403,0,4633,4635,3,882,441,0,4634,4632,1,0,0,0,4634,4633,1,0,0,0,4635,853,1,0,0,0,4636,4637,3,826,413,0,4637,4638,5,23,0,0,4638,4640,1,0,0,0,4639,4636,1,0,0,0,4639,4640,1,0,0,0,4640,855,1,0,0,0,4641,4643,5,29,0,0,4642,4641,1,0,0,0,4642,4643,1,0,0,0,4643,4644,1,0,0,0,4644,4645,3,826,413,0,4645,857,1,0,0,0,4646,4649,3,836,418,0,4647,4649,3,882,441,0,4648,4646,1,0,0,0,4648,4647,1,0,0,0,4649,859,1,0,0,0,4650,4652,5,29,0,0,4651,4650,1,0,0,0,4651,4652,1,0,0,0,4652,4653,1,0,0,0,4653,4654,3,858,429,0,4654,861,1,0,0,0,4655,4664,3,880,440,0,4656,4664,3,864,432,0,4657,4664,3,866,433,0,4658,4664,3,868,434,0,4659,4664,3,870,435,0,4660,4664,3,872,436,0,4661,4664,3,874,437,0,4662,4664,3,876,438,0,4663,4655,1,0,0,0,4663,4656,1,0,0,0,4663,4657,1,0,0,0,4663,4658,1,0,0,0,4663,4659,1,0,0,0,4663,4660,1,0,0,0,4663,4661,1,0,0,0,4663,4662,1,0,0,0,4664,863,1,0,0,0,4665,4666,7,32,0,0,4666,865,1,0,0,0,4667,4668,7,33,0,0,4668,867,1,0,0,0,4669,4670,7,34,0,0,4670,869,1,0,0,0,4671,4672,5,76,0,0,4672,871,1,0,0,0,4673,4674,5,79,0,0,4674,873,1,0,0,0,4675,4676,7,29,0,0,4676,875,1,0,0,0,4677,4678,7,28,0,0,4678,877,1,0,0,0,4679,4680,7,35,0,0,4680,879,1,0,0,0,4681,4682,7,36,0,0,4682,881,1,0,0,0,4683,4684,7,37,0,0,4684,883,1,0,0,0,4685,4686,7,38,0,0,4686,885,1,0,0,0,4687,4688,5,331,0,0,4688,887,1,0,0,0,4689,4690,7,39,0,0,4690,889,1,0,0,0,4691,4697,3,892,446,0,4692,4693,5,227,0,0,4693,4694,5,46,0,0,4694,4695,5,329,0,0,4695,4697,3,4,2,0,4696,4691,1,0,0,0,4696,4692,1,0,0,0,4697,891,1,0,0,0,4698,4700,5,22,0,0,4699,4698,1,0,0,0,4700,4703,1,0,0,0,4701,4699,1,0,0,0,4701,4702,1,0,0,0,4702,4704,1,0,0,0,4703,4701,1,0,0,0,4704,4713,3,894,447,0,4705,4707,5,22,0,0,4706,4705,1,0,0,0,4707,4708,1,0,0,0,4708,4706,1,0,0,0,4708,4709,1,0,0,0,4709,4710,1,0,0,0,4710,4712,3,894,447,0,4711,4706,1,0,0,0,4712,4715,1,0,0,0,4713,4711,1,0,0,0,4713,4714,1,0,0,0,4714,4719,1,0,0,0,4715,4713,1,0,0,0,4716,4718,5,22,0,0,4717,4716,1,0,0,0,4718,4721,1,0,0,0,4719,4717,1,0,0,0,4719,4720,1,0,0,0,4720,4722,1,0,0,0,4721,4719,1,0,0,0,4722,4723,5,0,0,1,4723,893,1,0,0,0,4724,4727,5,128,0,0,4725,4726,5,233,0,0,4726,4728,5,225,0,0,4727,4725,1,0,0,0,4727,4728,1,0,0,0,4728,4730,1,0,0,0,4729,4724,1,0,0,0,4729,4730,1,0,0,0,4730,4731,1,0,0,0,4731,4732,3,896,448,0,4732,895,1,0,0,0,4733,4747,3,224,112,0,4734,4747,3,232,116,0,4735,4747,3,788,394,0,4736,4747,3,784,392,0,4737,4747,3,366,183,0,4738,4747,3,210,105,0,4739,4747,3,214,107,0,4740,4747,3,216,108,0,4741,4747,3,222,111,0,4742,4747,3,654,327,0,4743,4747,3,658,329,0,4744,4747,3,660,330,0,4745,4747,3,370,185,0,4746,4733,1,0,0,0,4746,4734,1,0,0,0,4746,4735,1,0,0,0,4746,4736,1,0,0,0,4746,4737,1,0,0,0,4746,4738,1,0,0,0,4746,4739,1,0,0,0,4746,4740,1,0,0,0,4746,4741,1,0,0,0,4746,4742,1,0,0,0,4746,4743,1,0,0,0,4746,4744,1,0,0,0,4746,4745,1,0,0,0,4747,897,1,0,0,0,4748,4749,5,49,0,0,4749,4750,3,672,336,0,4750,899,1,0,0,0,4751,4752,5,320,0,0,4752,4753,3,14,7,0,4753,901,1,0,0,0,523,907,912,919,924,930,938,946,953,957,965,970,975,977,1041,1048,1052,1059,1067,1072,1076,1082,1088,1091,1095,1103,1107,1110,1114,1125,1130,1132,1141,1162,1167,1176,1178,1185,1193,1201,1208,1218,1220,1224,1229,1233,1239,1245,1249,1253,1256,1263,1269,1273,1278,1281,1295,1300,1303,1317,1324,1335,1346,1366,1372,1377,1381,1395,1397,1404,1410,1421,1429,1435,1442,1450,1463,1469,1473,1476,1478,1486,1494,1500,1506,1512,1515,1524,1533,1540,1548,1561,1568,1572,1579,1583,1588,1595,1602,1605,1612,1616,1626,1649,1655,1659,1666,1672,1679,1683,1687,1693,1698,1707,1710,1716,1721,1729,1736,1758,1762,1764,1768,1777,1781,1783,1787,1796,1800,1838,1842,1862,1865,1871,1891,1896,1902,1907,1910,1914,1941,1949,1952,1959,1972,1976,1988,2001,2006,2013,2017,2024,2033,2042,2050,2054,2058,2065,2067,2070,2075,2080,2084,2091,2098,2102,2105,2109,2113,2115,2126,2135,2140,2146,2151,2154,2158,2162,2165,2169,2173,2181,2185,2189,2193,2196,2199,2203,2206,2209,2214,2217,2220,2223,2237,2239,2250,2260,2270,2273,2280,2304,2315,2321,2325,2329,2333,2337,2341,2345,2349,2355,2362,2372,2383,2396,2412,2422,2442,2448,2455,2462,2470,2479,2516,2518,2521,2526,2530,2534,2540,2546,2550,2555,2560,2562,2566,2571,2574,2576,2580,2591,2602,2613,2617,2621,2625,2628,2632,2635,2641,2650,2653,2667,2673,2686,2693,2698,2705,2712,2721,2726,2734,2749,2755,2763,2772,2776,2785,2797,2804,2812,2833,2841,2850,2860,2869,2874,2881,2891,2896,2905,2909,2913,2916,2919,2922,2925,2933,2938,2949,2956,2969,2977,2982,2989,3002,3013,3023,3029,3038,3055,3078,3098,3109,3117,3127,3132,3136,3142,3180,3192,3234,3242,3245,3249,3253,3263,3276,3289,3294,3306,3317,3322,3325,3329,3333,3337,3340,3353,3357,3369,3383,3398,3413,3416,3426,3429,3437,3449,3452,3462,3470,3476,3484,3492,3499,3503,3513,3520,3525,3530,3542,3546,3548,3560,3564,3569,3575,3582,3586,3590,3594,3598,3601,3619,3628,3632,3637,3643,3652,3661,3678,3682,3686,3688,3692,3699,3703,3707,3709,3726,3731,3755,3760,3778,3794,3810,3825,3829,3840,3852,3867,3872,3887,3894,3902,3913,3920,3925,3931,3934,3937,3944,3947,3950,3959,3964,3967,3977,3981,3983,3990,3993,3997,3999,4002,4007,4010,4015,4025,4030,4041,4045,4049,4051,4055,4060,4068,4071,4074,4077,4082,4088,4091,4095,4101,4104,4112,4115,4118,4125,4129,4132,4136,4143,4164,4174,4178,4181,4189,4205,4213,4221,4229,4238,4256,4273,4282,4291,4310,4322,4332,4341,4353,4367,4370,4373,4376,4382,4392,4398,4409,4412,4424,4434,4440,4451,4458,4462,4471,4477,4481,4486,4492,4495,4501,4510,4518,4525,4535,4544,4553,4563,4567,4571,4575,4579,4583,4587,4591,4595,4599,4603,4607,4611,4616,4621,4626,4630,4634,4639,4642,4648,4651,4663,4696,4701,4708,4713,4719,4727,4729,4746]}static get _ATN(){return e.__ATN||(e.__ATN=(new Be).deserialize(e._serializedATN)),e.__ATN}static{this.vocabulary=new f(e.literalNames,e.symbolicNames,[])}get vocabulary(){return e.vocabulary}static{this.decisionsToDFA=e._ATN.decisionToState.map(((e,t)=>new it(e,t)))}},os=class extends W{static{Si(this,"Sql_queryContext")}constructor(e,t){super(e,t)}sql_stmt_list(){return this.getRuleContext(0,as)}PRAGMA(){return this.getToken(rs.PRAGMA,0)}ANSI(){return this.getToken(rs.ANSI,0)}DIGITS(){return this.getToken(rs.DIGITS,0)}ansi_sql_stmt_list(){return this.getRuleContext(0,cs)}get ruleIndex(){return rs.RULE_sql_query}accept(e){return e.visitSql_query?e.visitSql_query(this):e.visitChildren(this)}},as=class extends W{static{Si(this,"Sql_stmt_listContext")}constructor(e,t){super(e,t)}sql_stmt(e){return void 0===e?this.getRuleContexts(ds):this.getRuleContext(e,ds)}EOF(){return this.getToken(rs.EOF,0)}SEMICOLON(e){return void 0===e?this.getTokens(rs.SEMICOLON):this.getToken(rs.SEMICOLON,e)}get ruleIndex(){return rs.RULE_sql_stmt_list}accept(e){return e.visitSql_stmt_list?e.visitSql_stmt_list(this):e.visitChildren(this)}},cs=class extends W{static{Si(this,"Ansi_sql_stmt_listContext")}constructor(e,t){super(e,t)}EOF(){return this.getToken(rs.EOF,0)}SEMICOLON(e){return void 0===e?this.getTokens(rs.SEMICOLON):this.getToken(rs.SEMICOLON,e)}get ruleIndex(){return rs.RULE_ansi_sql_stmt_list}accept(e){return e.visitAnsi_sql_stmt_list?e.visitAnsi_sql_stmt_list(this):e.visitChildren(this)}},ls=class extends W{static{Si(this,"Lambda_bodyContext")}constructor(e,t){super(e,t)}RETURN(){return this.getToken(rs.RETURN,0)}expr(){return this.getRuleContext(0,gs)}SEMICOLON(e){return void 0===e?this.getTokens(rs.SEMICOLON):this.getToken(rs.SEMICOLON,e)}lambda_stmt(e){return void 0===e?this.getRuleContexts(hs):this.getRuleContext(e,hs)}get ruleIndex(){return rs.RULE_lambda_body}accept(e){return e.visitLambda_body?e.visitLambda_body(this):e.visitChildren(this)}},hs=class extends W{static{Si(this,"Lambda_stmtContext")}constructor(e,t){super(e,t)}named_nodes_stmt(){return this.getRuleContext(0,wh)}import_stmt(){return this.getRuleContext(0,or)}get ruleIndex(){return rs.RULE_lambda_stmt}accept(e){return e.visitLambda_stmt?e.visitLambda_stmt(this):e.visitChildren(this)}},ds=class extends W{static{Si(this,"Sql_stmtContext")}constructor(e,t){super(e,t)}sql_stmt_core(){return this.getRuleContext(0,us)}EXPLAIN(){return this.getToken(rs.EXPLAIN,0)}QUERY(){return this.getToken(rs.QUERY,0)}PLAN(){return this.getToken(rs.PLAN,0)}get ruleIndex(){return rs.RULE_sql_stmt}accept(e){return e.visitSql_stmt?e.visitSql_stmt(this):e.visitChildren(this)}},us=class extends W{static{Si(this,"Sql_stmt_coreContext")}constructor(e,t){super(e,t)}pragma_stmt(){return this.getRuleContext(0,dr)}select_stmt(){return this.getRuleContext(0,mr)}named_nodes_stmt(){return this.getRuleContext(0,wh)}create_table_stmt(){return this.getRuleContext(0,ta)}drop_table_stmt(){return this.getRuleContext(0,Sc)}use_stmt(){return this.getRuleContext(0,Sh)}into_table_stmt(){return this.getRuleContext(0,xo)}commit_stmt(){return this.getRuleContext(0,Rh)}update_stmt(){return this.getRuleContext(0,Rl)}delete_stmt(){return this.getRuleContext(0,wl)}rollback_stmt(){return this.getRuleContext(0,Lh)}declare_stmt(){return this.getRuleContext(0,nr)}import_stmt(){return this.getRuleContext(0,or)}export_stmt(){return this.getRuleContext(0,ar)}alter_table_stmt(){return this.getRuleContext(0,wa)}alter_external_table_stmt(){return this.getRuleContext(0,La)}do_stmt(){return this.getRuleContext(0,hr)}define_action_or_subquery_stmt(){return this.getRuleContext(0,dl)}if_stmt(){return this.getRuleContext(0,gl)}for_stmt(){return this.getRuleContext(0,pl)}values_stmt(){return this.getRuleContext(0,No)}create_user_stmt(){return this.getRuleContext(0,yc)}alter_user_stmt(){return this.getRuleContext(0,wc)}create_group_stmt(){return this.getRuleContext(0,Rc)}alter_group_stmt(){return this.getRuleContext(0,Lc)}drop_role_stmt(){return this.getRuleContext(0,Tc)}create_object_stmt(){return this.getRuleContext(0,zo)}alter_object_stmt(){return this.getRuleContext(0,jo)}drop_object_stmt(){return this.getRuleContext(0,Yo)}create_external_data_source_stmt(){return this.getRuleContext(0,Po)}alter_external_data_source_stmt(){return this.getRuleContext(0,Fo)}drop_external_data_source_stmt(){return this.getRuleContext(0,Ho)}create_replication_stmt(){return this.getRuleContext(0,Yc)}drop_replication_stmt(){return this.getRuleContext(0,el)}create_topic_stmt(){return this.getRuleContext(0,Il)}alter_topic_stmt(){return this.getRuleContext(0,Pl)}drop_topic_stmt(){return this.getRuleContext(0,Yl)}grant_permissions_stmt(){return this.getRuleContext(0,Dc)}revoke_permissions_stmt(){return this.getRuleContext(0,Mc)}alter_table_store_stmt(){return this.getRuleContext(0,xa)}upsert_object_stmt(){return this.getRuleContext(0,Vo)}create_view_stmt(){return this.getRuleContext(0,Bo)}drop_view_stmt(){return this.getRuleContext(0,Wo)}alter_replication_stmt(){return this.getRuleContext(0,Xc)}create_resource_pool_stmt(){return this.getRuleContext(0,Hc)}alter_resource_pool_stmt(){return this.getRuleContext(0,Bc)}drop_resource_pool_stmt(){return this.getRuleContext(0,Vc)}create_backup_collection_stmt(){return this.getRuleContext(0,sa)}alter_backup_collection_stmt(){return this.getRuleContext(0,na)}drop_backup_collection_stmt(){return this.getRuleContext(0,ra)}analyze_stmt(){return this.getRuleContext(0,kh)}create_resource_pool_classifier_stmt(){return this.getRuleContext(0,zc)}alter_resource_pool_classifier_stmt(){return this.getRuleContext(0,Gc)}drop_resource_pool_classifier_stmt(){return this.getRuleContext(0,Kc)}backup_stmt(){return this.getRuleContext(0,fa)}restore_stmt(){return this.getRuleContext(0,_a)}alter_sequence_stmt(){return this.getRuleContext(0,Ah)}create_transfer_stmt(){return this.getRuleContext(0,il)}alter_transfer_stmt(){return this.getRuleContext(0,rl)}drop_transfer_stmt(){return this.getRuleContext(0,ll)}get ruleIndex(){return rs.RULE_sql_stmt_core}accept(e){return e.visitSql_stmt_core?e.visitSql_stmt_core(this):e.visitChildren(this)}},gs=class extends W{static{Si(this,"ExprContext")}constructor(e,t){super(e,t)}or_subexpr(e){return void 0===e?this.getRuleContexts(ps):this.getRuleContext(e,ps)}OR(e){return void 0===e?this.getTokens(rs.OR):this.getToken(rs.OR,e)}type_name_composite(){return this.getRuleContext(0,Jn)}get ruleIndex(){return rs.RULE_expr}accept(e){return e.visitExpr?e.visitExpr(this):e.visitChildren(this)}},ps=class extends W{static{Si(this,"Or_subexprContext")}constructor(e,t){super(e,t)}and_subexpr(e){return void 0===e?this.getRuleContexts(ms):this.getRuleContext(e,ms)}AND(e){return void 0===e?this.getTokens(rs.AND):this.getToken(rs.AND,e)}get ruleIndex(){return rs.RULE_or_subexpr}accept(e){return e.visitOr_subexpr?e.visitOr_subexpr(this):e.visitChildren(this)}},ms=class extends W{static{Si(this,"And_subexprContext")}constructor(e,t){super(e,t)}xor_subexpr(e){return void 0===e?this.getRuleContexts(fs):this.getRuleContext(e,fs)}XOR(e){return void 0===e?this.getTokens(rs.XOR):this.getToken(rs.XOR,e)}get ruleIndex(){return rs.RULE_and_subexpr}accept(e){return e.visitAnd_subexpr?e.visitAnd_subexpr(this):e.visitChildren(this)}},fs=class extends W{static{Si(this,"Xor_subexprContext")}constructor(e,t){super(e,t)}eq_subexpr(){return this.getRuleContext(0,Es)}cond_expr(){return this.getRuleContext(0,vs)}get ruleIndex(){return rs.RULE_xor_subexpr}accept(e){return e.visitXor_subexpr?e.visitXor_subexpr(this):e.visitChildren(this)}},_s=class extends W{static{Si(this,"Distinct_from_opContext")}constructor(e,t){super(e,t)}IS(){return this.getToken(rs.IS,0)}DISTINCT(){return this.getToken(rs.DISTINCT,0)}FROM(){return this.getToken(rs.FROM,0)}NOT(){return this.getToken(rs.NOT,0)}get ruleIndex(){return rs.RULE_distinct_from_op}accept(e){return e.visitDistinct_from_op?e.visitDistinct_from_op(this):e.visitChildren(this)}},vs=class extends W{static{Si(this,"Cond_exprContext")}constructor(e,t){super(e,t)}match_op(){return this.getRuleContext(0,Cs)}eq_subexpr(e){return void 0===e?this.getRuleContexts(Es):this.getRuleContext(e,Es)}NOT(){return this.getToken(rs.NOT,0)}ESCAPE(){return this.getToken(rs.ESCAPE,0)}IN(){return this.getToken(rs.IN,0)}in_expr(){return this.getRuleContext(0,Ys)}COMPACT(){return this.getToken(rs.COMPACT,0)}ISNULL(){return this.getToken(rs.ISNULL,0)}NOTNULL(){return this.getToken(rs.NOTNULL,0)}IS(){return this.getToken(rs.IS,0)}NULL(){return this.getToken(rs.NULL,0)}BETWEEN(){return this.getToken(rs.BETWEEN,0)}AND(){return this.getToken(rs.AND,0)}SYMMETRIC(){return this.getToken(rs.SYMMETRIC,0)}ASYMMETRIC(){return this.getToken(rs.ASYMMETRIC,0)}EQUALS(e){return void 0===e?this.getTokens(rs.EQUALS):this.getToken(rs.EQUALS,e)}EQUALS2(e){return void 0===e?this.getTokens(rs.EQUALS2):this.getToken(rs.EQUALS2,e)}NOT_EQUALS(e){return void 0===e?this.getTokens(rs.NOT_EQUALS):this.getToken(rs.NOT_EQUALS,e)}NOT_EQUALS2(e){return void 0===e?this.getTokens(rs.NOT_EQUALS2):this.getToken(rs.NOT_EQUALS2,e)}distinct_from_op(e){return void 0===e?this.getRuleContexts(_s):this.getRuleContext(e,_s)}get ruleIndex(){return rs.RULE_cond_expr}accept(e){return e.visitCond_expr?e.visitCond_expr(this):e.visitChildren(this)}},Cs=class extends W{static{Si(this,"Match_opContext")}constructor(e,t){super(e,t)}LIKE(){return this.getToken(rs.LIKE,0)}ILIKE(){return this.getToken(rs.ILIKE,0)}GLOB(){return this.getToken(rs.GLOB,0)}REGEXP(){return this.getToken(rs.REGEXP,0)}RLIKE(){return this.getToken(rs.RLIKE,0)}MATCH(){return this.getToken(rs.MATCH,0)}get ruleIndex(){return rs.RULE_match_op}accept(e){return e.visitMatch_op?e.visitMatch_op(this):e.visitChildren(this)}},Es=class extends W{static{Si(this,"Eq_subexprContext")}constructor(e,t){super(e,t)}neq_subexpr(e){return void 0===e?this.getRuleContexts(ws):this.getRuleContext(e,ws)}LESS(e){return void 0===e?this.getTokens(rs.LESS):this.getToken(rs.LESS,e)}LESS_OR_EQ(e){return void 0===e?this.getTokens(rs.LESS_OR_EQ):this.getToken(rs.LESS_OR_EQ,e)}GREATER(e){return void 0===e?this.getTokens(rs.GREATER):this.getToken(rs.GREATER,e)}GREATER_OR_EQ(e){return void 0===e?this.getTokens(rs.GREATER_OR_EQ):this.getToken(rs.GREATER_OR_EQ,e)}get ruleIndex(){return rs.RULE_eq_subexpr}accept(e){return e.visitEq_subexpr?e.visitEq_subexpr(this):e.visitChildren(this)}},bs=class extends W{static{Si(this,"Shift_rightContext")}constructor(e,t){super(e,t)}GREATER(e){return void 0===e?this.getTokens(rs.GREATER):this.getToken(rs.GREATER,e)}get ruleIndex(){return rs.RULE_shift_right}accept(e){return e.visitShift_right?e.visitShift_right(this):e.visitChildren(this)}},Ss=class extends W{static{Si(this,"Rot_rightContext")}constructor(e,t){super(e,t)}GREATER(e){return void 0===e?this.getTokens(rs.GREATER):this.getToken(rs.GREATER,e)}PIPE(){return this.getToken(rs.PIPE,0)}get ruleIndex(){return rs.RULE_rot_right}accept(e){return e.visitRot_right?e.visitRot_right(this):e.visitChildren(this)}},ys=class extends W{static{Si(this,"Double_questionContext")}constructor(e,t){super(e,t)}QUESTION(e){return void 0===e?this.getTokens(rs.QUESTION):this.getToken(rs.QUESTION,e)}get ruleIndex(){return rs.RULE_double_question}accept(e){return e.visitDouble_question?e.visitDouble_question(this):e.visitChildren(this)}},ws=class e extends W{static{Si(this,"Neq_subexprContext")}constructor(e,t){super(e,t)}bit_subexpr(e){return void 0===e?this.getRuleContexts(Rs):this.getRuleContext(e,Rs)}double_question(){return this.getRuleContext(0,ys)}neq_subexpr(){return this.getRuleContext(0,e)}SHIFT_LEFT(e){return void 0===e?this.getTokens(rs.SHIFT_LEFT):this.getToken(rs.SHIFT_LEFT,e)}shift_right(e){return void 0===e?this.getRuleContexts(bs):this.getRuleContext(e,bs)}ROT_LEFT(e){return void 0===e?this.getTokens(rs.ROT_LEFT):this.getToken(rs.ROT_LEFT,e)}rot_right(e){return void 0===e?this.getRuleContexts(Ss):this.getRuleContext(e,Ss)}AMPERSAND(e){return void 0===e?this.getTokens(rs.AMPERSAND):this.getToken(rs.AMPERSAND,e)}PIPE(e){return void 0===e?this.getTokens(rs.PIPE):this.getToken(rs.PIPE,e)}CARET(e){return void 0===e?this.getTokens(rs.CARET):this.getToken(rs.CARET,e)}QUESTION(e){return void 0===e?this.getTokens(rs.QUESTION):this.getToken(rs.QUESTION,e)}get ruleIndex(){return rs.RULE_neq_subexpr}accept(e){return e.visitNeq_subexpr?e.visitNeq_subexpr(this):e.visitChildren(this)}},Rs=class extends W{static{Si(this,"Bit_subexprContext")}constructor(e,t){super(e,t)}add_subexpr(e){return void 0===e?this.getRuleContexts(Ls):this.getRuleContext(e,Ls)}PLUS(e){return void 0===e?this.getTokens(rs.PLUS):this.getToken(rs.PLUS,e)}MINUS(e){return void 0===e?this.getTokens(rs.MINUS):this.getToken(rs.MINUS,e)}get ruleIndex(){return rs.RULE_bit_subexpr}accept(e){return e.visitBit_subexpr?e.visitBit_subexpr(this):e.visitChildren(this)}},Ls=class extends W{static{Si(this,"Add_subexprContext")}constructor(e,t){super(e,t)}mul_subexpr(e){return void 0===e?this.getRuleContexts(Ts):this.getRuleContext(e,Ts)}ASTERISK(e){return void 0===e?this.getTokens(rs.ASTERISK):this.getToken(rs.ASTERISK,e)}SLASH(e){return void 0===e?this.getTokens(rs.SLASH):this.getToken(rs.SLASH,e)}PERCENT(e){return void 0===e?this.getTokens(rs.PERCENT):this.getToken(rs.PERCENT,e)}get ruleIndex(){return rs.RULE_add_subexpr}accept(e){return e.visitAdd_subexpr?e.visitAdd_subexpr(this):e.visitChildren(this)}},Ts=class extends W{static{Si(this,"Mul_subexprContext")}constructor(e,t){super(e,t)}con_subexpr(e){return void 0===e?this.getRuleContexts(xs):this.getRuleContext(e,xs)}DOUBLE_PIPE(e){return void 0===e?this.getTokens(rs.DOUBLE_PIPE):this.getToken(rs.DOUBLE_PIPE,e)}get ruleIndex(){return rs.RULE_mul_subexpr}accept(e){return e.visitMul_subexpr?e.visitMul_subexpr(this):e.visitChildren(this)}},xs=class extends W{static{Si(this,"Con_subexprContext")}constructor(e,t){super(e,t)}unary_subexpr(){return this.getRuleContext(0,Os)}unary_op(){return this.getRuleContext(0,ks)}get ruleIndex(){return rs.RULE_con_subexpr}accept(e){return e.visitCon_subexpr?e.visitCon_subexpr(this):e.visitChildren(this)}},ks=class extends W{static{Si(this,"Unary_opContext")}constructor(e,t){super(e,t)}PLUS(){return this.getToken(rs.PLUS,0)}MINUS(){return this.getToken(rs.MINUS,0)}TILDA(){return this.getToken(rs.TILDA,0)}NOT(){return this.getToken(rs.NOT,0)}get ruleIndex(){return rs.RULE_unary_op}accept(e){return e.visitUnary_op?e.visitUnary_op(this):e.visitChildren(this)}},As=class extends W{static{Si(this,"Unary_subexpr_suffixContext")}constructor(e,t){super(e,t)}COLLATE(){return this.getToken(rs.COLLATE,0)}an_id(){return this.getRuleContext(0,Vh)}key_expr(e){return void 0===e?this.getRuleContexts(Sn):this.getRuleContext(e,Sn)}invoke_expr(e){return void 0===e?this.getRuleContexts(Cn):this.getRuleContext(e,Cn)}DOT(e){return void 0===e?this.getTokens(rs.DOT):this.getToken(rs.DOT,e)}bind_parameter(e){return void 0===e?this.getRuleContexts(Rn):this.getRuleContext(e,Rn)}DIGITS(e){return void 0===e?this.getTokens(rs.DIGITS):this.getToken(rs.DIGITS,e)}an_id_or_type(e){return void 0===e?this.getRuleContexts(zh):this.getRuleContext(e,zh)}get ruleIndex(){return rs.RULE_unary_subexpr_suffix}accept(e){return e.visitUnary_subexpr_suffix?e.visitUnary_subexpr_suffix(this):e.visitChildren(this)}},Ns=class extends W{static{Si(this,"Unary_casual_subexprContext")}constructor(e,t){super(e,t)}unary_subexpr_suffix(){return this.getRuleContext(0,As)}id_expr(){return this.getRuleContext(0,Mh)}atom_expr(){return this.getRuleContext(0,Bs)}get ruleIndex(){return rs.RULE_unary_casual_subexpr}accept(e){return e.visitUnary_casual_subexpr?e.visitUnary_casual_subexpr(this):e.visitChildren(this)}},Is=class extends W{static{Si(this,"In_unary_casual_subexprContext")}constructor(e,t){super(e,t)}unary_subexpr_suffix(){return this.getRuleContext(0,As)}id_expr_in(){return this.getRuleContext(0,Ph)}in_atom_expr(){return this.getRuleContext(0,Ws)}get ruleIndex(){return rs.RULE_in_unary_casual_subexpr}accept(e){return e.visitIn_unary_casual_subexpr?e.visitIn_unary_casual_subexpr(this):e.visitChildren(this)}},Os=class extends W{static{Si(this,"Unary_subexprContext")}constructor(e,t){super(e,t)}unary_casual_subexpr(){return this.getRuleContext(0,Ns)}json_api_expr(){return this.getRuleContext(0,qs)}get ruleIndex(){return rs.RULE_unary_subexpr}accept(e){return e.visitUnary_subexpr?e.visitUnary_subexpr(this):e.visitChildren(this)}},Ds=class extends W{static{Si(this,"In_unary_subexprContext")}constructor(e,t){super(e,t)}in_unary_casual_subexpr(){return this.getRuleContext(0,Is)}json_api_expr(){return this.getRuleContext(0,qs)}get ruleIndex(){return rs.RULE_in_unary_subexpr}accept(e){return e.visitIn_unary_subexpr?e.visitIn_unary_subexpr(this):e.visitChildren(this)}},Ms=class extends W{static{Si(this,"List_literalContext")}constructor(e,t){super(e,t)}LBRACE_SQUARE(){return this.getToken(rs.LBRACE_SQUARE,0)}RBRACE_SQUARE(){return this.getToken(rs.RBRACE_SQUARE,0)}expr_list(){return this.getRuleContext(0,ln)}COMMA(){return this.getToken(rs.COMMA,0)}get ruleIndex(){return rs.RULE_list_literal}accept(e){return e.visitList_literal?e.visitList_literal(this):e.visitChildren(this)}},Ps=class extends W{static{Si(this,"Expr_dict_listContext")}constructor(e,t){super(e,t)}expr(e){return void 0===e?this.getRuleContexts(gs):this.getRuleContext(e,gs)}COLON(e){return void 0===e?this.getTokens(rs.COLON):this.getToken(rs.COLON,e)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_expr_dict_list}accept(e){return e.visitExpr_dict_list?e.visitExpr_dict_list(this):e.visitChildren(this)}},Fs=class extends W{static{Si(this,"Dict_literalContext")}constructor(e,t){super(e,t)}LBRACE_CURLY(){return this.getToken(rs.LBRACE_CURLY,0)}RBRACE_CURLY(){return this.getToken(rs.RBRACE_CURLY,0)}expr_dict_list(){return this.getRuleContext(0,Ps)}COMMA(){return this.getToken(rs.COMMA,0)}get ruleIndex(){return rs.RULE_dict_literal}accept(e){return e.visitDict_literal?e.visitDict_literal(this):e.visitChildren(this)}},Us=class extends W{static{Si(this,"Expr_struct_listContext")}constructor(e,t){super(e,t)}expr(e){return void 0===e?this.getRuleContexts(gs):this.getRuleContext(e,gs)}COLON(e){return void 0===e?this.getTokens(rs.COLON):this.getToken(rs.COLON,e)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_expr_struct_list}accept(e){return e.visitExpr_struct_list?e.visitExpr_struct_list(this):e.visitChildren(this)}},Hs=class extends W{static{Si(this,"Struct_literalContext")}constructor(e,t){super(e,t)}STRUCT_OPEN(){return this.getToken(rs.STRUCT_OPEN,0)}STRUCT_CLOSE(){return this.getToken(rs.STRUCT_CLOSE,0)}expr_struct_list(){return this.getRuleContext(0,Us)}COMMA(){return this.getToken(rs.COMMA,0)}get ruleIndex(){return rs.RULE_struct_literal}accept(e){return e.visitStruct_literal?e.visitStruct_literal(this):e.visitChildren(this)}},Bs=class extends W{static{Si(this,"Atom_exprContext")}constructor(e,t){super(e,t)}literal_value(){return this.getRuleContext(0,wn)}bind_parameter(){return this.getRuleContext(0,Rn)}lambda(){return this.getRuleContext(0,Ks)}cast_expr(){return this.getRuleContext(0,Vs)}exists_expr(){return this.getRuleContext(0,Gs)}case_expr(){return this.getRuleContext(0,js)}an_id_or_type(){return this.getRuleContext(0,zh)}NAMESPACE(){return this.getToken(rs.NAMESPACE,0)}id_or_type(){return this.getRuleContext(0,id)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}value_constructor(){return this.getRuleContext(0,sr)}bitcast_expr(){return this.getRuleContext(0,zs)}list_literal(){return this.getRuleContext(0,Ms)}dict_literal(){return this.getRuleContext(0,Fs)}struct_literal(){return this.getRuleContext(0,Hs)}get ruleIndex(){return rs.RULE_atom_expr}accept(e){return e.visitAtom_expr?e.visitAtom_expr(this):e.visitChildren(this)}},Ws=class extends W{static{Si(this,"In_atom_exprContext")}constructor(e,t){super(e,t)}literal_value(){return this.getRuleContext(0,wn)}bind_parameter(){return this.getRuleContext(0,Rn)}lambda(){return this.getRuleContext(0,Ks)}cast_expr(){return this.getRuleContext(0,Vs)}case_expr(){return this.getRuleContext(0,js)}an_id_or_type(){return this.getRuleContext(0,zh)}NAMESPACE(){return this.getToken(rs.NAMESPACE,0)}id_or_type(){return this.getRuleContext(0,id)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}select_stmt(){return this.getRuleContext(0,mr)}RPAREN(){return this.getToken(rs.RPAREN,0)}value_constructor(){return this.getRuleContext(0,sr)}bitcast_expr(){return this.getRuleContext(0,zs)}list_literal(){return this.getRuleContext(0,Ms)}dict_literal(){return this.getRuleContext(0,Fs)}struct_literal(){return this.getRuleContext(0,Hs)}get ruleIndex(){return rs.RULE_in_atom_expr}accept(e){return e.visitIn_atom_expr?e.visitIn_atom_expr(this):e.visitChildren(this)}},Vs=class extends W{static{Si(this,"Cast_exprContext")}constructor(e,t){super(e,t)}CAST(){return this.getToken(rs.CAST,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}expr(){return this.getRuleContext(0,gs)}AS(){return this.getToken(rs.AS,0)}type_name_or_bind(){return this.getRuleContext(0,tr)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_cast_expr}accept(e){return e.visitCast_expr?e.visitCast_expr(this):e.visitChildren(this)}},zs=class extends W{static{Si(this,"Bitcast_exprContext")}constructor(e,t){super(e,t)}BITCAST(){return this.getToken(rs.BITCAST,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}expr(){return this.getRuleContext(0,gs)}AS(){return this.getToken(rs.AS,0)}type_name_simple(){return this.getRuleContext(0,Nn)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_bitcast_expr}accept(e){return e.visitBitcast_expr?e.visitBitcast_expr(this):e.visitChildren(this)}},Gs=class extends W{static{Si(this,"Exists_exprContext")}constructor(e,t){super(e,t)}EXISTS(){return this.getToken(rs.EXISTS,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}select_stmt(){return this.getRuleContext(0,mr)}values_stmt(){return this.getRuleContext(0,No)}get ruleIndex(){return rs.RULE_exists_expr}accept(e){return e.visitExists_expr?e.visitExists_expr(this):e.visitChildren(this)}},js=class extends W{static{Si(this,"Case_exprContext")}constructor(e,t){super(e,t)}CASE(){return this.getToken(rs.CASE,0)}END(){return this.getToken(rs.END,0)}expr(e){return void 0===e?this.getRuleContexts(gs):this.getRuleContext(e,gs)}when_expr(e){return void 0===e?this.getRuleContexts(yn):this.getRuleContext(e,yn)}ELSE(){return this.getToken(rs.ELSE,0)}get ruleIndex(){return rs.RULE_case_expr}accept(e){return e.visitCase_expr?e.visitCase_expr(this):e.visitChildren(this)}},Ks=class extends W{static{Si(this,"LambdaContext")}constructor(e,t){super(e,t)}smart_parenthesis(){return this.getRuleContext(0,cn)}ARROW(){return this.getToken(rs.ARROW,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}expr(){return this.getRuleContext(0,gs)}RPAREN(){return this.getToken(rs.RPAREN,0)}LBRACE_CURLY(){return this.getToken(rs.LBRACE_CURLY,0)}lambda_body(){return this.getRuleContext(0,ls)}RBRACE_CURLY(){return this.getToken(rs.RBRACE_CURLY,0)}get ruleIndex(){return rs.RULE_lambda}accept(e){return e.visitLambda?e.visitLambda(this):e.visitChildren(this)}},Ys=class extends W{static{Si(this,"In_exprContext")}constructor(e,t){super(e,t)}in_unary_subexpr(){return this.getRuleContext(0,Ds)}get ruleIndex(){return rs.RULE_in_expr}accept(e){return e.visitIn_expr?e.visitIn_expr(this):e.visitChildren(this)}},qs=class extends W{static{Si(this,"Json_api_exprContext")}constructor(e,t){super(e,t)}json_value(){return this.getRuleContext(0,tn)}json_exists(){return this.getRuleContext(0,nn)}json_query(){return this.getRuleContext(0,an)}get ruleIndex(){return rs.RULE_json_api_expr}accept(e){return e.visitJson_api_expr?e.visitJson_api_expr(this):e.visitChildren(this)}},$s=class extends W{static{Si(this,"Jsonpath_specContext")}constructor(e,t){super(e,t)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_jsonpath_spec}accept(e){return e.visitJsonpath_spec?e.visitJsonpath_spec(this):e.visitChildren(this)}},Qs=class extends W{static{Si(this,"Json_variable_nameContext")}constructor(e,t){super(e,t)}id_expr(){return this.getRuleContext(0,Mh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_json_variable_name}accept(e){return e.visitJson_variable_name?e.visitJson_variable_name(this):e.visitChildren(this)}},Xs=class extends W{static{Si(this,"Json_variableContext")}constructor(e,t){super(e,t)}expr(){return this.getRuleContext(0,gs)}AS(){return this.getToken(rs.AS,0)}json_variable_name(){return this.getRuleContext(0,Qs)}get ruleIndex(){return rs.RULE_json_variable}accept(e){return e.visitJson_variable?e.visitJson_variable(this):e.visitChildren(this)}},Zs=class extends W{static{Si(this,"Json_variablesContext")}constructor(e,t){super(e,t)}json_variable(e){return void 0===e?this.getRuleContexts(Xs):this.getRuleContext(e,Xs)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_json_variables}accept(e){return e.visitJson_variables?e.visitJson_variables(this):e.visitChildren(this)}},Js=class extends W{static{Si(this,"Json_common_argsContext")}constructor(e,t){super(e,t)}expr(){return this.getRuleContext(0,gs)}COMMA(){return this.getToken(rs.COMMA,0)}jsonpath_spec(){return this.getRuleContext(0,$s)}PASSING(){return this.getToken(rs.PASSING,0)}json_variables(){return this.getRuleContext(0,Zs)}get ruleIndex(){return rs.RULE_json_common_args}accept(e){return e.visitJson_common_args?e.visitJson_common_args(this):e.visitChildren(this)}},en=class extends W{static{Si(this,"Json_case_handlerContext")}constructor(e,t){super(e,t)}ERROR(){return this.getToken(rs.ERROR,0)}NULL(){return this.getToken(rs.NULL,0)}DEFAULT(){return this.getToken(rs.DEFAULT,0)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_json_case_handler}accept(e){return e.visitJson_case_handler?e.visitJson_case_handler(this):e.visitChildren(this)}},tn=class extends W{static{Si(this,"Json_valueContext")}constructor(e,t){super(e,t)}JSON_VALUE(){return this.getToken(rs.JSON_VALUE,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}json_common_args(){return this.getRuleContext(0,Js)}RPAREN(){return this.getToken(rs.RPAREN,0)}RETURNING(){return this.getToken(rs.RETURNING,0)}type_name_simple(){return this.getRuleContext(0,Nn)}json_case_handler(e){return void 0===e?this.getRuleContexts(en):this.getRuleContext(e,en)}ON(e){return void 0===e?this.getTokens(rs.ON):this.getToken(rs.ON,e)}EMPTY(e){return void 0===e?this.getTokens(rs.EMPTY):this.getToken(rs.EMPTY,e)}ERROR(e){return void 0===e?this.getTokens(rs.ERROR):this.getToken(rs.ERROR,e)}get ruleIndex(){return rs.RULE_json_value}accept(e){return e.visitJson_value?e.visitJson_value(this):e.visitChildren(this)}},sn=class extends W{static{Si(this,"Json_exists_handlerContext")}constructor(e,t){super(e,t)}ON(){return this.getToken(rs.ON,0)}ERROR(e){return void 0===e?this.getTokens(rs.ERROR):this.getToken(rs.ERROR,e)}TRUE(){return this.getToken(rs.TRUE,0)}FALSE(){return this.getToken(rs.FALSE,0)}UNKNOWN(){return this.getToken(rs.UNKNOWN,0)}get ruleIndex(){return rs.RULE_json_exists_handler}accept(e){return e.visitJson_exists_handler?e.visitJson_exists_handler(this):e.visitChildren(this)}},nn=class extends W{static{Si(this,"Json_existsContext")}constructor(e,t){super(e,t)}JSON_EXISTS(){return this.getToken(rs.JSON_EXISTS,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}json_common_args(){return this.getRuleContext(0,Js)}RPAREN(){return this.getToken(rs.RPAREN,0)}json_exists_handler(){return this.getRuleContext(0,sn)}get ruleIndex(){return rs.RULE_json_exists}accept(e){return e.visitJson_exists?e.visitJson_exists(this):e.visitChildren(this)}},rn=class extends W{static{Si(this,"Json_query_wrapperContext")}constructor(e,t){super(e,t)}WITHOUT(){return this.getToken(rs.WITHOUT,0)}ARRAY(){return this.getToken(rs.ARRAY,0)}WITH(){return this.getToken(rs.WITH,0)}CONDITIONAL(){return this.getToken(rs.CONDITIONAL,0)}UNCONDITIONAL(){return this.getToken(rs.UNCONDITIONAL,0)}get ruleIndex(){return rs.RULE_json_query_wrapper}accept(e){return e.visitJson_query_wrapper?e.visitJson_query_wrapper(this):e.visitChildren(this)}},on=class extends W{static{Si(this,"Json_query_handlerContext")}constructor(e,t){super(e,t)}ERROR(){return this.getToken(rs.ERROR,0)}NULL(){return this.getToken(rs.NULL,0)}EMPTY(){return this.getToken(rs.EMPTY,0)}ARRAY(){return this.getToken(rs.ARRAY,0)}OBJECT(){return this.getToken(rs.OBJECT,0)}get ruleIndex(){return rs.RULE_json_query_handler}accept(e){return e.visitJson_query_handler?e.visitJson_query_handler(this):e.visitChildren(this)}},an=class extends W{static{Si(this,"Json_queryContext")}constructor(e,t){super(e,t)}JSON_QUERY(){return this.getToken(rs.JSON_QUERY,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}json_common_args(){return this.getRuleContext(0,Js)}RPAREN(){return this.getToken(rs.RPAREN,0)}json_query_wrapper(){return this.getRuleContext(0,rn)}WRAPPER(){return this.getToken(rs.WRAPPER,0)}json_query_handler(e){return void 0===e?this.getRuleContexts(on):this.getRuleContext(e,on)}ON(e){return void 0===e?this.getTokens(rs.ON):this.getToken(rs.ON,e)}EMPTY(){return this.getToken(rs.EMPTY,0)}ERROR(){return this.getToken(rs.ERROR,0)}get ruleIndex(){return rs.RULE_json_query}accept(e){return e.visitJson_query?e.visitJson_query(this):e.visitChildren(this)}},cn=class extends W{static{Si(this,"Smart_parenthesisContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}named_expr_list(){return this.getRuleContext(0,vn)}COMMA(){return this.getToken(rs.COMMA,0)}get ruleIndex(){return rs.RULE_smart_parenthesis}accept(e){return e.visitSmart_parenthesis?e.visitSmart_parenthesis(this):e.visitChildren(this)}},ln=class extends W{static{Si(this,"Expr_listContext")}constructor(e,t){super(e,t)}expr(e){return void 0===e?this.getRuleContexts(gs):this.getRuleContext(e,gs)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_expr_list}accept(e){return e.visitExpr_list?e.visitExpr_list(this):e.visitChildren(this)}},hn=class extends W{static{Si(this,"Pure_column_listContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}an_id(e){return void 0===e?this.getRuleContexts(Vh):this.getRuleContext(e,Vh)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_pure_column_list}accept(e){return e.visitPure_column_list?e.visitPure_column_list(this):e.visitChildren(this)}},dn=class extends W{static{Si(this,"Pure_column_or_namedContext")}constructor(e,t){super(e,t)}bind_parameter(){return this.getRuleContext(0,Rn)}an_id(){return this.getRuleContext(0,Vh)}get ruleIndex(){return rs.RULE_pure_column_or_named}accept(e){return e.visitPure_column_or_named?e.visitPure_column_or_named(this):e.visitChildren(this)}},un=class extends W{static{Si(this,"Pure_column_or_named_listContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}pure_column_or_named(e){return void 0===e?this.getRuleContexts(dn):this.getRuleContext(e,dn)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_pure_column_or_named_list}accept(e){return e.visitPure_column_or_named_list?e.visitPure_column_or_named_list(this):e.visitChildren(this)}},gn=class extends W{static{Si(this,"Column_nameContext")}constructor(e,t){super(e,t)}opt_id_prefix(){return this.getRuleContext(0,ed)}an_id(){return this.getRuleContext(0,Vh)}get ruleIndex(){return rs.RULE_column_name}accept(e){return e.visitColumn_name?e.visitColumn_name(this):e.visitChildren(this)}},pn=class extends W{static{Si(this,"Without_column_nameContext")}constructor(e,t){super(e,t)}an_id(e){return void 0===e?this.getRuleContexts(Vh):this.getRuleContext(e,Vh)}DOT(){return this.getToken(rs.DOT,0)}an_id_without(){return this.getRuleContext(0,$h)}get ruleIndex(){return rs.RULE_without_column_name}accept(e){return e.visitWithout_column_name?e.visitWithout_column_name(this):e.visitChildren(this)}},mn=class extends W{static{Si(this,"Column_listContext")}constructor(e,t){super(e,t)}column_name(e){return void 0===e?this.getRuleContexts(gn):this.getRuleContext(e,gn)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_column_list}accept(e){return e.visitColumn_list?e.visitColumn_list(this):e.visitChildren(this)}},fn=class extends W{static{Si(this,"Without_column_listContext")}constructor(e,t){super(e,t)}without_column_name(e){return void 0===e?this.getRuleContexts(pn):this.getRuleContext(e,pn)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_without_column_list}accept(e){return e.visitWithout_column_list?e.visitWithout_column_list(this):e.visitChildren(this)}},_n=class extends W{static{Si(this,"Named_exprContext")}constructor(e,t){super(e,t)}expr(){return this.getRuleContext(0,gs)}AS(){return this.getToken(rs.AS,0)}an_id_or_type(){return this.getRuleContext(0,zh)}get ruleIndex(){return rs.RULE_named_expr}accept(e){return e.visitNamed_expr?e.visitNamed_expr(this):e.visitChildren(this)}},vn=class extends W{static{Si(this,"Named_expr_listContext")}constructor(e,t){super(e,t)}named_expr(e){return void 0===e?this.getRuleContexts(_n):this.getRuleContext(e,_n)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_named_expr_list}accept(e){return e.visitNamed_expr_list?e.visitNamed_expr_list(this):e.visitChildren(this)}},Cn=class extends W{static{Si(this,"Invoke_exprContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}invoke_expr_tail(){return this.getRuleContext(0,En)}opt_set_quantifier(){return this.getRuleContext(0,Rr)}named_expr_list(){return this.getRuleContext(0,vn)}ASTERISK(){return this.getToken(rs.ASTERISK,0)}COMMA(){return this.getToken(rs.COMMA,0)}get ruleIndex(){return rs.RULE_invoke_expr}accept(e){return e.visitInvoke_expr?e.visitInvoke_expr(this):e.visitChildren(this)}},En=class extends W{static{Si(this,"Invoke_expr_tailContext")}constructor(e,t){super(e,t)}null_treatment(){return this.getRuleContext(0,sh)}filter_clause(){return this.getRuleContext(0,nh)}OVER(){return this.getToken(rs.OVER,0)}window_name_or_specification(){return this.getRuleContext(0,rh)}get ruleIndex(){return rs.RULE_invoke_expr_tail}accept(e){return e.visitInvoke_expr_tail?e.visitInvoke_expr_tail(this):e.visitChildren(this)}},bn=class extends W{static{Si(this,"Using_call_exprContext")}constructor(e,t){super(e,t)}invoke_expr(){return this.getRuleContext(0,Cn)}an_id_or_type(e){return void 0===e?this.getRuleContexts(zh):this.getRuleContext(e,zh)}NAMESPACE(){return this.getToken(rs.NAMESPACE,0)}an_id_expr(){return this.getRuleContext(0,jh)}bind_parameter(){return this.getRuleContext(0,Rn)}EXTERNAL(){return this.getToken(rs.EXTERNAL,0)}FUNCTION(){return this.getToken(rs.FUNCTION,0)}get ruleIndex(){return rs.RULE_using_call_expr}accept(e){return e.visitUsing_call_expr?e.visitUsing_call_expr(this):e.visitChildren(this)}},Sn=class extends W{static{Si(this,"Key_exprContext")}constructor(e,t){super(e,t)}LBRACE_SQUARE(){return this.getToken(rs.LBRACE_SQUARE,0)}expr(){return this.getRuleContext(0,gs)}RBRACE_SQUARE(){return this.getToken(rs.RBRACE_SQUARE,0)}get ruleIndex(){return rs.RULE_key_expr}accept(e){return e.visitKey_expr?e.visitKey_expr(this):e.visitChildren(this)}},yn=class extends W{static{Si(this,"When_exprContext")}constructor(e,t){super(e,t)}WHEN(){return this.getToken(rs.WHEN,0)}expr(e){return void 0===e?this.getRuleContexts(gs):this.getRuleContext(e,gs)}THEN(){return this.getToken(rs.THEN,0)}get ruleIndex(){return rs.RULE_when_expr}accept(e){return e.visitWhen_expr?e.visitWhen_expr(this):e.visitChildren(this)}},wn=class extends W{static{Si(this,"Literal_valueContext")}constructor(e,t){super(e,t)}integer(){return this.getRuleContext(0,Ed)}real(){return this.getRuleContext(0,Cd)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}BLOB(){return this.getToken(rs.BLOB,0)}NULL(){return this.getToken(rs.NULL,0)}CURRENT_TIME(){return this.getToken(rs.CURRENT_TIME,0)}CURRENT_DATE(){return this.getToken(rs.CURRENT_DATE,0)}CURRENT_TIMESTAMP(){return this.getToken(rs.CURRENT_TIMESTAMP,0)}bool_value(){return this.getRuleContext(0,vd)}EMPTY_ACTION(){return this.getToken(rs.EMPTY_ACTION,0)}get ruleIndex(){return rs.RULE_literal_value}accept(e){return e.visitLiteral_value?e.visitLiteral_value(this):e.visitChildren(this)}},Rn=class extends W{static{Si(this,"Bind_parameterContext")}constructor(e,t){super(e,t)}DOLLAR(){return this.getToken(rs.DOLLAR,0)}an_id_or_type(){return this.getRuleContext(0,zh)}TRUE(){return this.getToken(rs.TRUE,0)}FALSE(){return this.getToken(rs.FALSE,0)}get ruleIndex(){return rs.RULE_bind_parameter}accept(e){return e.visitBind_parameter?e.visitBind_parameter(this):e.visitChildren(this)}},Ln=class extends W{static{Si(this,"Opt_bind_parameterContext")}constructor(e,t){super(e,t)}bind_parameter(){return this.getRuleContext(0,Rn)}QUESTION(){return this.getToken(rs.QUESTION,0)}get ruleIndex(){return rs.RULE_opt_bind_parameter}accept(e){return e.visitOpt_bind_parameter?e.visitOpt_bind_parameter(this):e.visitChildren(this)}},Tn=class extends W{static{Si(this,"Bind_parameter_listContext")}constructor(e,t){super(e,t)}bind_parameter(e){return void 0===e?this.getRuleContexts(Rn):this.getRuleContext(e,Rn)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_bind_parameter_list}accept(e){return e.visitBind_parameter_list?e.visitBind_parameter_list(this):e.visitChildren(this)}},xn=class extends W{static{Si(this,"Named_bind_parameterContext")}constructor(e,t){super(e,t)}bind_parameter(e){return void 0===e?this.getRuleContexts(Rn):this.getRuleContext(e,Rn)}AS(){return this.getToken(rs.AS,0)}get ruleIndex(){return rs.RULE_named_bind_parameter}accept(e){return e.visitNamed_bind_parameter?e.visitNamed_bind_parameter(this):e.visitChildren(this)}},kn=class extends W{static{Si(this,"Named_bind_parameter_listContext")}constructor(e,t){super(e,t)}named_bind_parameter(e){return void 0===e?this.getRuleContexts(xn):this.getRuleContext(e,xn)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_named_bind_parameter_list}accept(e){return e.visitNamed_bind_parameter_list?e.visitNamed_bind_parameter_list(this):e.visitChildren(this)}},An=class extends W{static{Si(this,"Signed_numberContext")}constructor(e,t){super(e,t)}integer(){return this.getRuleContext(0,Ed)}real(){return this.getRuleContext(0,Cd)}PLUS(){return this.getToken(rs.PLUS,0)}MINUS(){return this.getToken(rs.MINUS,0)}get ruleIndex(){return rs.RULE_signed_number}accept(e){return e.visitSigned_number?e.visitSigned_number(this):e.visitChildren(this)}},Nn=class extends W{static{Si(this,"Type_name_simpleContext")}constructor(e,t){super(e,t)}an_id_pure(){return this.getRuleContext(0,Xh)}get ruleIndex(){return rs.RULE_type_name_simple}accept(e){return e.visitType_name_simple?e.visitType_name_simple(this):e.visitChildren(this)}},In=class extends W{static{Si(this,"Integer_or_bindContext")}constructor(e,t){super(e,t)}integer(){return this.getRuleContext(0,Ed)}bind_parameter(){return this.getRuleContext(0,Rn)}get ruleIndex(){return rs.RULE_integer_or_bind}accept(e){return e.visitInteger_or_bind?e.visitInteger_or_bind(this):e.visitChildren(this)}},On=class extends W{static{Si(this,"Type_name_tagContext")}constructor(e,t){super(e,t)}id(){return this.getRuleContext(0,Oh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}bind_parameter(){return this.getRuleContext(0,Rn)}get ruleIndex(){return rs.RULE_type_name_tag}accept(e){return e.visitType_name_tag?e.visitType_name_tag(this):e.visitChildren(this)}},Dn=class extends W{static{Si(this,"Struct_argContext")}constructor(e,t){super(e,t)}type_name_tag(){return this.getRuleContext(0,On)}COLON(){return this.getToken(rs.COLON,0)}type_name_or_bind(){return this.getRuleContext(0,tr)}get ruleIndex(){return rs.RULE_struct_arg}accept(e){return e.visitStruct_arg?e.visitStruct_arg(this):e.visitChildren(this)}},Mn=class extends W{static{Si(this,"Struct_arg_positionalContext")}constructor(e,t){super(e,t)}type_name_tag(){return this.getRuleContext(0,On)}type_name_or_bind(){return this.getRuleContext(0,tr)}NULL(){return this.getToken(rs.NULL,0)}NOT(){return this.getToken(rs.NOT,0)}AS(){return this.getToken(rs.AS,0)}get ruleIndex(){return rs.RULE_struct_arg_positional}accept(e){return e.visitStruct_arg_positional?e.visitStruct_arg_positional(this):e.visitChildren(this)}},Pn=class extends W{static{Si(this,"Variant_argContext")}constructor(e,t){super(e,t)}type_name_or_bind(){return this.getRuleContext(0,tr)}type_name_tag(){return this.getRuleContext(0,On)}COLON(){return this.getToken(rs.COLON,0)}get ruleIndex(){return rs.RULE_variant_arg}accept(e){return e.visitVariant_arg?e.visitVariant_arg(this):e.visitChildren(this)}},Fn=class extends W{static{Si(this,"Callable_argContext")}constructor(e,t){super(e,t)}variant_arg(){return this.getRuleContext(0,Pn)}LBRACE_CURLY(){return this.getToken(rs.LBRACE_CURLY,0)}AUTOMAP(){return this.getToken(rs.AUTOMAP,0)}RBRACE_CURLY(){return this.getToken(rs.RBRACE_CURLY,0)}get ruleIndex(){return rs.RULE_callable_arg}accept(e){return e.visitCallable_arg?e.visitCallable_arg(this):e.visitChildren(this)}},Un=class extends W{static{Si(this,"Callable_arg_listContext")}constructor(e,t){super(e,t)}callable_arg(e){return void 0===e?this.getRuleContexts(Fn):this.getRuleContext(e,Fn)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_callable_arg_list}accept(e){return e.visitCallable_arg_list?e.visitCallable_arg_list(this):e.visitChildren(this)}},Hn=class extends W{static{Si(this,"Type_name_decimalContext")}constructor(e,t){super(e,t)}DECIMAL(){return this.getToken(rs.DECIMAL,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}integer_or_bind(e){return void 0===e?this.getRuleContexts(In):this.getRuleContext(e,In)}COMMA(){return this.getToken(rs.COMMA,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_type_name_decimal}accept(e){return e.visitType_name_decimal?e.visitType_name_decimal(this):e.visitChildren(this)}},Bn=class extends W{static{Si(this,"Type_name_optionalContext")}constructor(e,t){super(e,t)}OPTIONAL(){return this.getToken(rs.OPTIONAL,0)}LESS(){return this.getToken(rs.LESS,0)}type_name_or_bind(){return this.getRuleContext(0,tr)}GREATER(){return this.getToken(rs.GREATER,0)}get ruleIndex(){return rs.RULE_type_name_optional}accept(e){return e.visitType_name_optional?e.visitType_name_optional(this):e.visitChildren(this)}},Wn=class extends W{static{Si(this,"Type_name_tupleContext")}constructor(e,t){super(e,t)}TUPLE(){return this.getToken(rs.TUPLE,0)}LESS(){return this.getToken(rs.LESS,0)}GREATER(){return this.getToken(rs.GREATER,0)}NOT_EQUALS2(){return this.getToken(rs.NOT_EQUALS2,0)}type_name_or_bind(e){return void 0===e?this.getRuleContexts(tr):this.getRuleContext(e,tr)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_type_name_tuple}accept(e){return e.visitType_name_tuple?e.visitType_name_tuple(this):e.visitChildren(this)}},Vn=class extends W{static{Si(this,"Type_name_structContext")}constructor(e,t){super(e,t)}STRUCT(){return this.getToken(rs.STRUCT,0)}LESS(){return this.getToken(rs.LESS,0)}GREATER(){return this.getToken(rs.GREATER,0)}NOT_EQUALS2(){return this.getToken(rs.NOT_EQUALS2,0)}struct_arg(e){return void 0===e?this.getRuleContexts(Dn):this.getRuleContext(e,Dn)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_type_name_struct}accept(e){return e.visitType_name_struct?e.visitType_name_struct(this):e.visitChildren(this)}},zn=class extends W{static{Si(this,"Type_name_variantContext")}constructor(e,t){super(e,t)}VARIANT(){return this.getToken(rs.VARIANT,0)}LESS(){return this.getToken(rs.LESS,0)}variant_arg(e){return void 0===e?this.getRuleContexts(Pn):this.getRuleContext(e,Pn)}GREATER(){return this.getToken(rs.GREATER,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_type_name_variant}accept(e){return e.visitType_name_variant?e.visitType_name_variant(this):e.visitChildren(this)}},Gn=class extends W{static{Si(this,"Type_name_listContext")}constructor(e,t){super(e,t)}LIST(){return this.getToken(rs.LIST,0)}LESS(){return this.getToken(rs.LESS,0)}type_name_or_bind(){return this.getRuleContext(0,tr)}GREATER(){return this.getToken(rs.GREATER,0)}get ruleIndex(){return rs.RULE_type_name_list}accept(e){return e.visitType_name_list?e.visitType_name_list(this):e.visitChildren(this)}},jn=class extends W{static{Si(this,"Type_name_streamContext")}constructor(e,t){super(e,t)}STREAM(){return this.getToken(rs.STREAM,0)}LESS(){return this.getToken(rs.LESS,0)}type_name_or_bind(){return this.getRuleContext(0,tr)}GREATER(){return this.getToken(rs.GREATER,0)}get ruleIndex(){return rs.RULE_type_name_stream}accept(e){return e.visitType_name_stream?e.visitType_name_stream(this):e.visitChildren(this)}},Kn=class extends W{static{Si(this,"Type_name_flowContext")}constructor(e,t){super(e,t)}FLOW(){return this.getToken(rs.FLOW,0)}LESS(){return this.getToken(rs.LESS,0)}type_name_or_bind(){return this.getRuleContext(0,tr)}GREATER(){return this.getToken(rs.GREATER,0)}get ruleIndex(){return rs.RULE_type_name_flow}accept(e){return e.visitType_name_flow?e.visitType_name_flow(this):e.visitChildren(this)}},Yn=class extends W{static{Si(this,"Type_name_dictContext")}constructor(e,t){super(e,t)}DICT(){return this.getToken(rs.DICT,0)}LESS(){return this.getToken(rs.LESS,0)}type_name_or_bind(e){return void 0===e?this.getRuleContexts(tr):this.getRuleContext(e,tr)}COMMA(){return this.getToken(rs.COMMA,0)}GREATER(){return this.getToken(rs.GREATER,0)}get ruleIndex(){return rs.RULE_type_name_dict}accept(e){return e.visitType_name_dict?e.visitType_name_dict(this):e.visitChildren(this)}},qn=class extends W{static{Si(this,"Type_name_setContext")}constructor(e,t){super(e,t)}SET(){return this.getToken(rs.SET,0)}LESS(){return this.getToken(rs.LESS,0)}type_name_or_bind(){return this.getRuleContext(0,tr)}GREATER(){return this.getToken(rs.GREATER,0)}get ruleIndex(){return rs.RULE_type_name_set}accept(e){return e.visitType_name_set?e.visitType_name_set(this):e.visitChildren(this)}},$n=class extends W{static{Si(this,"Type_name_enumContext")}constructor(e,t){super(e,t)}ENUM(){return this.getToken(rs.ENUM,0)}LESS(){return this.getToken(rs.LESS,0)}type_name_tag(e){return void 0===e?this.getRuleContexts(On):this.getRuleContext(e,On)}GREATER(){return this.getToken(rs.GREATER,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_type_name_enum}accept(e){return e.visitType_name_enum?e.visitType_name_enum(this):e.visitChildren(this)}},Qn=class extends W{static{Si(this,"Type_name_resourceContext")}constructor(e,t){super(e,t)}RESOURCE(){return this.getToken(rs.RESOURCE,0)}LESS(){return this.getToken(rs.LESS,0)}type_name_tag(){return this.getRuleContext(0,On)}GREATER(){return this.getToken(rs.GREATER,0)}get ruleIndex(){return rs.RULE_type_name_resource}accept(e){return e.visitType_name_resource?e.visitType_name_resource(this):e.visitChildren(this)}},Xn=class extends W{static{Si(this,"Type_name_taggedContext")}constructor(e,t){super(e,t)}TAGGED(){return this.getToken(rs.TAGGED,0)}LESS(){return this.getToken(rs.LESS,0)}type_name_or_bind(){return this.getRuleContext(0,tr)}COMMA(){return this.getToken(rs.COMMA,0)}type_name_tag(){return this.getRuleContext(0,On)}GREATER(){return this.getToken(rs.GREATER,0)}get ruleIndex(){return rs.RULE_type_name_tagged}accept(e){return e.visitType_name_tagged?e.visitType_name_tagged(this):e.visitChildren(this)}},Zn=class extends W{static{Si(this,"Type_name_callableContext")}constructor(e,t){super(e,t)}CALLABLE(){return this.getToken(rs.CALLABLE,0)}LESS(){return this.getToken(rs.LESS,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}ARROW(){return this.getToken(rs.ARROW,0)}type_name_or_bind(){return this.getRuleContext(0,tr)}GREATER(){return this.getToken(rs.GREATER,0)}callable_arg_list(e){return void 0===e?this.getRuleContexts(Un):this.getRuleContext(e,Un)}COMMA(){return this.getToken(rs.COMMA,0)}LBRACE_SQUARE(){return this.getToken(rs.LBRACE_SQUARE,0)}RBRACE_SQUARE(){return this.getToken(rs.RBRACE_SQUARE,0)}get ruleIndex(){return rs.RULE_type_name_callable}accept(e){return e.visitType_name_callable?e.visitType_name_callable(this):e.visitChildren(this)}},Jn=class extends W{static{Si(this,"Type_name_compositeContext")}constructor(e,t){super(e,t)}type_name_optional(){return this.getRuleContext(0,Bn)}type_name_tuple(){return this.getRuleContext(0,Wn)}type_name_struct(){return this.getRuleContext(0,Vn)}type_name_variant(){return this.getRuleContext(0,zn)}type_name_list(){return this.getRuleContext(0,Gn)}type_name_stream(){return this.getRuleContext(0,jn)}type_name_flow(){return this.getRuleContext(0,Kn)}type_name_dict(){return this.getRuleContext(0,Yn)}type_name_set(){return this.getRuleContext(0,qn)}type_name_enum(){return this.getRuleContext(0,$n)}type_name_resource(){return this.getRuleContext(0,Qn)}type_name_tagged(){return this.getRuleContext(0,Xn)}type_name_callable(){return this.getRuleContext(0,Zn)}QUESTION(e){return void 0===e?this.getTokens(rs.QUESTION):this.getToken(rs.QUESTION,e)}get ruleIndex(){return rs.RULE_type_name_composite}accept(e){return e.visitType_name_composite?e.visitType_name_composite(this):e.visitChildren(this)}},er=class extends W{static{Si(this,"Type_nameContext")}constructor(e,t){super(e,t)}type_name_composite(){return this.getRuleContext(0,Jn)}type_name_decimal(){return this.getRuleContext(0,Hn)}type_name_simple(){return this.getRuleContext(0,Nn)}QUESTION(e){return void 0===e?this.getTokens(rs.QUESTION):this.getToken(rs.QUESTION,e)}get ruleIndex(){return rs.RULE_type_name}accept(e){return e.visitType_name?e.visitType_name(this):e.visitChildren(this)}},tr=class extends W{static{Si(this,"Type_name_or_bindContext")}constructor(e,t){super(e,t)}type_name(){return this.getRuleContext(0,er)}bind_parameter(){return this.getRuleContext(0,Rn)}get ruleIndex(){return rs.RULE_type_name_or_bind}accept(e){return e.visitType_name_or_bind?e.visitType_name_or_bind(this):e.visitChildren(this)}},ir=class extends W{static{Si(this,"Value_constructor_literalContext")}constructor(e,t){super(e,t)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_value_constructor_literal}accept(e){return e.visitValue_constructor_literal?e.visitValue_constructor_literal(this):e.visitChildren(this)}},sr=class extends W{static{Si(this,"Value_constructorContext")}constructor(e,t){super(e,t)}VARIANT(){return this.getToken(rs.VARIANT,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}expr(e){return void 0===e?this.getRuleContexts(gs):this.getRuleContext(e,gs)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}RPAREN(){return this.getToken(rs.RPAREN,0)}ENUM(){return this.getToken(rs.ENUM,0)}CALLABLE(){return this.getToken(rs.CALLABLE,0)}get ruleIndex(){return rs.RULE_value_constructor}accept(e){return e.visitValue_constructor?e.visitValue_constructor(this):e.visitChildren(this)}},nr=class extends W{static{Si(this,"Declare_stmtContext")}constructor(e,t){super(e,t)}DECLARE(){return this.getToken(rs.DECLARE,0)}bind_parameter(){return this.getRuleContext(0,Rn)}AS(){return this.getToken(rs.AS,0)}type_name(){return this.getRuleContext(0,er)}EQUALS(){return this.getToken(rs.EQUALS,0)}literal_value(){return this.getRuleContext(0,wn)}get ruleIndex(){return rs.RULE_declare_stmt}accept(e){return e.visitDeclare_stmt?e.visitDeclare_stmt(this):e.visitChildren(this)}},rr=class extends W{static{Si(this,"Module_pathContext")}constructor(e,t){super(e,t)}an_id(e){return void 0===e?this.getRuleContexts(Vh):this.getRuleContext(e,Vh)}DOT(e){return void 0===e?this.getTokens(rs.DOT):this.getToken(rs.DOT,e)}get ruleIndex(){return rs.RULE_module_path}accept(e){return e.visitModule_path?e.visitModule_path(this):e.visitChildren(this)}},or=class extends W{static{Si(this,"Import_stmtContext")}constructor(e,t){super(e,t)}IMPORT(){return this.getToken(rs.IMPORT,0)}module_path(){return this.getRuleContext(0,rr)}SYMBOLS(){return this.getToken(rs.SYMBOLS,0)}named_bind_parameter_list(){return this.getRuleContext(0,kn)}get ruleIndex(){return rs.RULE_import_stmt}accept(e){return e.visitImport_stmt?e.visitImport_stmt(this):e.visitChildren(this)}},ar=class extends W{static{Si(this,"Export_stmtContext")}constructor(e,t){super(e,t)}EXPORT(){return this.getToken(rs.EXPORT,0)}bind_parameter_list(){return this.getRuleContext(0,Tn)}get ruleIndex(){return rs.RULE_export_stmt}accept(e){return e.visitExport_stmt?e.visitExport_stmt(this):e.visitChildren(this)}},cr=class extends W{static{Si(this,"Call_actionContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}bind_parameter(){return this.getRuleContext(0,Rn)}EMPTY_ACTION(){return this.getToken(rs.EMPTY_ACTION,0)}expr_list(){return this.getRuleContext(0,ln)}get ruleIndex(){return rs.RULE_call_action}accept(e){return e.visitCall_action?e.visitCall_action(this):e.visitChildren(this)}},lr=class extends W{static{Si(this,"Inline_actionContext")}constructor(e,t){super(e,t)}BEGIN(){return this.getToken(rs.BEGIN,0)}define_action_or_subquery_body(){return this.getRuleContext(0,ul)}END(){return this.getToken(rs.END,0)}DO(){return this.getToken(rs.DO,0)}get ruleIndex(){return rs.RULE_inline_action}accept(e){return e.visitInline_action?e.visitInline_action(this):e.visitChildren(this)}},hr=class extends W{static{Si(this,"Do_stmtContext")}constructor(e,t){super(e,t)}DO(){return this.getToken(rs.DO,0)}call_action(){return this.getRuleContext(0,cr)}inline_action(){return this.getRuleContext(0,lr)}get ruleIndex(){return rs.RULE_do_stmt}accept(e){return e.visitDo_stmt?e.visitDo_stmt(this):e.visitChildren(this)}},dr=class extends W{static{Si(this,"Pragma_stmtContext")}constructor(e,t){super(e,t)}PRAGMA(){return this.getToken(rs.PRAGMA,0)}opt_id_prefix_or_type(){return this.getRuleContext(0,sd)}an_id(){return this.getRuleContext(0,Vh)}EQUALS(){return this.getToken(rs.EQUALS,0)}pragma_value(e){return void 0===e?this.getRuleContexts(ur):this.getRuleContext(e,ur)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_pragma_stmt}accept(e){return e.visitPragma_stmt?e.visitPragma_stmt(this):e.visitChildren(this)}},ur=class extends W{static{Si(this,"Pragma_valueContext")}constructor(e,t){super(e,t)}signed_number(){return this.getRuleContext(0,An)}id(){return this.getRuleContext(0,Oh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}bool_value(){return this.getRuleContext(0,vd)}bind_parameter(){return this.getRuleContext(0,Rn)}get ruleIndex(){return rs.RULE_pragma_value}accept(e){return e.visitPragma_value?e.visitPragma_value(this):e.visitChildren(this)}},gr=class extends W{static{Si(this,"Sort_specificationContext")}constructor(e,t){super(e,t)}expr(){return this.getRuleContext(0,gs)}ASC(){return this.getToken(rs.ASC,0)}DESC(){return this.getToken(rs.DESC,0)}get ruleIndex(){return rs.RULE_sort_specification}accept(e){return e.visitSort_specification?e.visitSort_specification(this):e.visitChildren(this)}},pr=class extends W{static{Si(this,"Sort_specification_listContext")}constructor(e,t){super(e,t)}sort_specification(e){return void 0===e?this.getRuleContexts(gr):this.getRuleContext(e,gr)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_sort_specification_list}accept(e){return e.visitSort_specification_list?e.visitSort_specification_list(this):e.visitChildren(this)}},mr=class extends W{static{Si(this,"Select_stmtContext")}constructor(e,t){super(e,t)}select_kind_parenthesis(e){return void 0===e?this.getRuleContexts(_r):this.getRuleContext(e,_r)}select_op(e){return void 0===e?this.getRuleContexts(vr):this.getRuleContext(e,vr)}get ruleIndex(){return rs.RULE_select_stmt}accept(e){return e.visitSelect_stmt?e.visitSelect_stmt(this):e.visitChildren(this)}},fr=class extends W{static{Si(this,"Select_unparenthesized_stmtContext")}constructor(e,t){super(e,t)}select_kind_partial(){return this.getRuleContext(0,Cr)}select_op(e){return void 0===e?this.getRuleContexts(vr):this.getRuleContext(e,vr)}select_kind_parenthesis(e){return void 0===e?this.getRuleContexts(_r):this.getRuleContext(e,_r)}get ruleIndex(){return rs.RULE_select_unparenthesized_stmt}accept(e){return e.visitSelect_unparenthesized_stmt?e.visitSelect_unparenthesized_stmt(this):e.visitChildren(this)}},_r=class extends W{static{Si(this,"Select_kind_parenthesisContext")}constructor(e,t){super(e,t)}select_kind_partial(){return this.getRuleContext(0,Cr)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_select_kind_parenthesis}accept(e){return e.visitSelect_kind_parenthesis?e.visitSelect_kind_parenthesis(this):e.visitChildren(this)}},vr=class extends W{static{Si(this,"Select_opContext")}constructor(e,t){super(e,t)}UNION(){return this.getToken(rs.UNION,0)}ALL(){return this.getToken(rs.ALL,0)}INTERSECT(){return this.getToken(rs.INTERSECT,0)}EXCEPT(){return this.getToken(rs.EXCEPT,0)}get ruleIndex(){return rs.RULE_select_op}accept(e){return e.visitSelect_op?e.visitSelect_op(this):e.visitChildren(this)}},Cr=class extends W{static{Si(this,"Select_kind_partialContext")}constructor(e,t){super(e,t)}select_kind(){return this.getRuleContext(0,Er)}LIMIT(){return this.getToken(rs.LIMIT,0)}expr(e){return void 0===e?this.getRuleContexts(gs):this.getRuleContext(e,gs)}OFFSET(){return this.getToken(rs.OFFSET,0)}COMMA(){return this.getToken(rs.COMMA,0)}get ruleIndex(){return rs.RULE_select_kind_partial}accept(e){return e.visitSelect_kind_partial?e.visitSelect_kind_partial(this):e.visitChildren(this)}},Er=class extends W{static{Si(this,"Select_kindContext")}constructor(e,t){super(e,t)}process_core(){return this.getRuleContext(0,br)}reduce_core(){return this.getRuleContext(0,wr)}select_core(){return this.getRuleContext(0,Lr)}DISCARD(){return this.getToken(rs.DISCARD,0)}INTO(){return this.getToken(rs.INTO,0)}RESULT(){return this.getToken(rs.RESULT,0)}pure_column_or_named(){return this.getRuleContext(0,dn)}get ruleIndex(){return rs.RULE_select_kind}accept(e){return e.visitSelect_kind?e.visitSelect_kind(this):e.visitChildren(this)}},br=class extends W{static{Si(this,"Process_coreContext")}constructor(e,t){super(e,t)}PROCESS(){return this.getToken(rs.PROCESS,0)}named_single_source(e){return void 0===e?this.getRuleContexts(Co):this.getRuleContext(e,Co)}STREAM(){return this.getToken(rs.STREAM,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}USING(){return this.getToken(rs.USING,0)}using_call_expr(){return this.getRuleContext(0,bn)}AS(){return this.getToken(rs.AS,0)}an_id(){return this.getRuleContext(0,Vh)}WITH(){return this.getToken(rs.WITH,0)}external_call_settings(){return this.getRuleContext(0,yr)}where_expr(){return this.getRuleContext(0,Ld)}HAVING(){return this.getToken(rs.HAVING,0)}expr(){return this.getRuleContext(0,gs)}ASSUME(){return this.getToken(rs.ASSUME,0)}order_by_clause(){return this.getRuleContext(0,io)}get ruleIndex(){return rs.RULE_process_core}accept(e){return e.visitProcess_core?e.visitProcess_core(this):e.visitChildren(this)}},Sr=class extends W{static{Si(this,"External_call_paramContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}EQUALS(){return this.getToken(rs.EQUALS,0)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_external_call_param}accept(e){return e.visitExternal_call_param?e.visitExternal_call_param(this):e.visitChildren(this)}},yr=class extends W{static{Si(this,"External_call_settingsContext")}constructor(e,t){super(e,t)}external_call_param(e){return void 0===e?this.getRuleContexts(Sr):this.getRuleContext(e,Sr)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_external_call_settings}accept(e){return e.visitExternal_call_settings?e.visitExternal_call_settings(this):e.visitChildren(this)}},wr=class extends W{static{Si(this,"Reduce_coreContext")}constructor(e,t){super(e,t)}REDUCE(){return this.getToken(rs.REDUCE,0)}named_single_source(e){return void 0===e?this.getRuleContexts(Co):this.getRuleContext(e,Co)}ON(){return this.getToken(rs.ON,0)}column_list(){return this.getRuleContext(0,mn)}USING(){return this.getToken(rs.USING,0)}using_call_expr(){return this.getRuleContext(0,bn)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}PRESORT(){return this.getToken(rs.PRESORT,0)}sort_specification_list(){return this.getRuleContext(0,pr)}ALL(){return this.getToken(rs.ALL,0)}AS(){return this.getToken(rs.AS,0)}an_id(){return this.getRuleContext(0,Vh)}where_expr(){return this.getRuleContext(0,Ld)}HAVING(){return this.getToken(rs.HAVING,0)}expr(){return this.getRuleContext(0,gs)}ASSUME(){return this.getToken(rs.ASSUME,0)}order_by_clause(){return this.getRuleContext(0,io)}get ruleIndex(){return rs.RULE_reduce_core}accept(e){return e.visitReduce_core?e.visitReduce_core(this):e.visitChildren(this)}},Rr=class extends W{static{Si(this,"Opt_set_quantifierContext")}constructor(e,t){super(e,t)}ALL(){return this.getToken(rs.ALL,0)}DISTINCT(){return this.getToken(rs.DISTINCT,0)}get ruleIndex(){return rs.RULE_opt_set_quantifier}accept(e){return e.visitOpt_set_quantifier?e.visitOpt_set_quantifier(this):e.visitChildren(this)}},Lr=class extends W{static{Si(this,"Select_coreContext")}constructor(e,t){super(e,t)}SELECT(){return this.getToken(rs.SELECT,0)}opt_set_quantifier(){return this.getRuleContext(0,Rr)}result_column(e){return void 0===e?this.getRuleContexts(po):this.getRuleContext(e,po)}FROM(e){return void 0===e?this.getTokens(rs.FROM):this.getToken(rs.FROM,e)}join_source(e){return void 0===e?this.getRuleContexts(mo):this.getRuleContext(e,mo)}STREAM(){return this.getToken(rs.STREAM,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}WITHOUT(){return this.getToken(rs.WITHOUT,0)}without_column_list(){return this.getRuleContext(0,fn)}where_expr(){return this.getRuleContext(0,Ld)}group_by_clause(){return this.getRuleContext(0,no)}HAVING(){return this.getToken(rs.HAVING,0)}expr(){return this.getRuleContext(0,gs)}window_clause(){return this.getRuleContext(0,ah)}ext_order_by_clause(){return this.getRuleContext(0,so)}get ruleIndex(){return rs.RULE_select_core}accept(e){return e.visitSelect_core?e.visitSelect_core(this):e.visitChildren(this)}},Tr=class extends W{static{Si(this,"Row_pattern_recognition_clauseContext")}constructor(e,t){super(e,t)}MATCH_RECOGNIZE(){return this.getToken(rs.MATCH_RECOGNIZE,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}row_pattern_common_syntax(){return this.getRuleContext(0,Or)}RPAREN(){return this.getToken(rs.RPAREN,0)}window_partition_clause(){return this.getRuleContext(0,ph)}order_by_clause(){return this.getRuleContext(0,io)}row_pattern_measures(){return this.getRuleContext(0,Ar)}row_pattern_rows_per_match(){return this.getRuleContext(0,xr)}get ruleIndex(){return rs.RULE_row_pattern_recognition_clause}accept(e){return e.visitRow_pattern_recognition_clause?e.visitRow_pattern_recognition_clause(this):e.visitChildren(this)}},xr=class extends W{static{Si(this,"Row_pattern_rows_per_matchContext")}constructor(e,t){super(e,t)}ONE(){return this.getToken(rs.ONE,0)}ROW(){return this.getToken(rs.ROW,0)}PER(){return this.getToken(rs.PER,0)}MATCH(){return this.getToken(rs.MATCH,0)}ALL(){return this.getToken(rs.ALL,0)}ROWS(){return this.getToken(rs.ROWS,0)}row_pattern_empty_match_handling(){return this.getRuleContext(0,kr)}get ruleIndex(){return rs.RULE_row_pattern_rows_per_match}accept(e){return e.visitRow_pattern_rows_per_match?e.visitRow_pattern_rows_per_match(this):e.visitChildren(this)}},kr=class extends W{static{Si(this,"Row_pattern_empty_match_handlingContext")}constructor(e,t){super(e,t)}SHOW(){return this.getToken(rs.SHOW,0)}EMPTY(){return this.getToken(rs.EMPTY,0)}MATCHES(){return this.getToken(rs.MATCHES,0)}OMIT(){return this.getToken(rs.OMIT,0)}WITH(){return this.getToken(rs.WITH,0)}UNMATCHED(){return this.getToken(rs.UNMATCHED,0)}ROWS(){return this.getToken(rs.ROWS,0)}get ruleIndex(){return rs.RULE_row_pattern_empty_match_handling}accept(e){return e.visitRow_pattern_empty_match_handling?e.visitRow_pattern_empty_match_handling(this):e.visitChildren(this)}},Ar=class extends W{static{Si(this,"Row_pattern_measuresContext")}constructor(e,t){super(e,t)}MEASURES(){return this.getToken(rs.MEASURES,0)}row_pattern_measure_list(){return this.getRuleContext(0,Nr)}get ruleIndex(){return rs.RULE_row_pattern_measures}accept(e){return e.visitRow_pattern_measures?e.visitRow_pattern_measures(this):e.visitChildren(this)}},Nr=class extends W{static{Si(this,"Row_pattern_measure_listContext")}constructor(e,t){super(e,t)}row_pattern_measure_definition(e){return void 0===e?this.getRuleContexts(Ir):this.getRuleContext(e,Ir)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_row_pattern_measure_list}accept(e){return e.visitRow_pattern_measure_list?e.visitRow_pattern_measure_list(this):e.visitChildren(this)}},Ir=class extends W{static{Si(this,"Row_pattern_measure_definitionContext")}constructor(e,t){super(e,t)}expr(){return this.getRuleContext(0,gs)}AS(){return this.getToken(rs.AS,0)}an_id(){return this.getRuleContext(0,Vh)}get ruleIndex(){return rs.RULE_row_pattern_measure_definition}accept(e){return e.visitRow_pattern_measure_definition?e.visitRow_pattern_measure_definition(this):e.visitChildren(this)}},Or=class extends W{static{Si(this,"Row_pattern_common_syntaxContext")}constructor(e,t){super(e,t)}PATTERN(){return this.getToken(rs.PATTERN,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}row_pattern(){return this.getRuleContext(0,Fr)}RPAREN(){return this.getToken(rs.RPAREN,0)}DEFINE(){return this.getToken(rs.DEFINE,0)}row_pattern_definition_list(){return this.getRuleContext(0,Qr)}AFTER(){return this.getToken(rs.AFTER,0)}MATCH(){return this.getToken(rs.MATCH,0)}row_pattern_skip_to(){return this.getRuleContext(0,Dr)}row_pattern_initial_or_seek(){return this.getRuleContext(0,Pr)}row_pattern_subset_clause(){return this.getRuleContext(0,Gr)}get ruleIndex(){return rs.RULE_row_pattern_common_syntax}accept(e){return e.visitRow_pattern_common_syntax?e.visitRow_pattern_common_syntax(this):e.visitChildren(this)}},Dr=class extends W{static{Si(this,"Row_pattern_skip_toContext")}constructor(e,t){super(e,t)}TSKIP(){return this.getToken(rs.TSKIP,0)}TO(){return this.getToken(rs.TO,0)}NEXT(){return this.getToken(rs.NEXT,0)}ROW(){return this.getToken(rs.ROW,0)}PAST(){return this.getToken(rs.PAST,0)}LAST(){return this.getToken(rs.LAST,0)}FIRST(){return this.getToken(rs.FIRST,0)}row_pattern_skip_to_variable_name(){return this.getRuleContext(0,Mr)}get ruleIndex(){return rs.RULE_row_pattern_skip_to}accept(e){return e.visitRow_pattern_skip_to?e.visitRow_pattern_skip_to(this):e.visitChildren(this)}},Mr=class extends W{static{Si(this,"Row_pattern_skip_to_variable_nameContext")}constructor(e,t){super(e,t)}row_pattern_variable_name(){return this.getRuleContext(0,to)}get ruleIndex(){return rs.RULE_row_pattern_skip_to_variable_name}accept(e){return e.visitRow_pattern_skip_to_variable_name?e.visitRow_pattern_skip_to_variable_name(this):e.visitChildren(this)}},Pr=class extends W{static{Si(this,"Row_pattern_initial_or_seekContext")}constructor(e,t){super(e,t)}INITIAL(){return this.getToken(rs.INITIAL,0)}SEEK(){return this.getToken(rs.SEEK,0)}get ruleIndex(){return rs.RULE_row_pattern_initial_or_seek}accept(e){return e.visitRow_pattern_initial_or_seek?e.visitRow_pattern_initial_or_seek(this):e.visitChildren(this)}},Fr=class extends W{static{Si(this,"Row_patternContext")}constructor(e,t){super(e,t)}row_pattern_term(e){return void 0===e?this.getRuleContexts(Ur):this.getRuleContext(e,Ur)}PIPE(e){return void 0===e?this.getTokens(rs.PIPE):this.getToken(rs.PIPE,e)}get ruleIndex(){return rs.RULE_row_pattern}accept(e){return e.visitRow_pattern?e.visitRow_pattern(this):e.visitChildren(this)}},Ur=class extends W{static{Si(this,"Row_pattern_termContext")}constructor(e,t){super(e,t)}row_pattern_factor(e){return void 0===e?this.getRuleContexts(Hr):this.getRuleContext(e,Hr)}get ruleIndex(){return rs.RULE_row_pattern_term}accept(e){return e.visitRow_pattern_term?e.visitRow_pattern_term(this):e.visitChildren(this)}},Hr=class extends W{static{Si(this,"Row_pattern_factorContext")}constructor(e,t){super(e,t)}row_pattern_primary(){return this.getRuleContext(0,Wr)}row_pattern_quantifier(){return this.getRuleContext(0,Br)}get ruleIndex(){return rs.RULE_row_pattern_factor}accept(e){return e.visitRow_pattern_factor?e.visitRow_pattern_factor(this):e.visitChildren(this)}},Br=class extends W{static{Si(this,"Row_pattern_quantifierContext")}constructor(e,t){super(e,t)}ASTERISK(){return this.getToken(rs.ASTERISK,0)}QUESTION(e){return void 0===e?this.getTokens(rs.QUESTION):this.getToken(rs.QUESTION,e)}PLUS(){return this.getToken(rs.PLUS,0)}LBRACE_CURLY(){return this.getToken(rs.LBRACE_CURLY,0)}COMMA(){return this.getToken(rs.COMMA,0)}RBRACE_CURLY(){return this.getToken(rs.RBRACE_CURLY,0)}integer(e){return void 0===e?this.getRuleContexts(Ed):this.getRuleContext(e,Ed)}get ruleIndex(){return rs.RULE_row_pattern_quantifier}accept(e){return e.visitRow_pattern_quantifier?e.visitRow_pattern_quantifier(this):e.visitChildren(this)}},Wr=class extends W{static{Si(this,"Row_pattern_primaryContext")}constructor(e,t){super(e,t)}row_pattern_primary_variable_name(){return this.getRuleContext(0,Vr)}DOLLAR(){return this.getToken(rs.DOLLAR,0)}CARET(){return this.getToken(rs.CARET,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}row_pattern(){return this.getRuleContext(0,Fr)}LBRACE_CURLY(){return this.getToken(rs.LBRACE_CURLY,0)}MINUS(e){return void 0===e?this.getTokens(rs.MINUS):this.getToken(rs.MINUS,e)}RBRACE_CURLY(){return this.getToken(rs.RBRACE_CURLY,0)}row_pattern_permute(){return this.getRuleContext(0,zr)}get ruleIndex(){return rs.RULE_row_pattern_primary}accept(e){return e.visitRow_pattern_primary?e.visitRow_pattern_primary(this):e.visitChildren(this)}},Vr=class extends W{static{Si(this,"Row_pattern_primary_variable_nameContext")}constructor(e,t){super(e,t)}row_pattern_variable_name(){return this.getRuleContext(0,to)}get ruleIndex(){return rs.RULE_row_pattern_primary_variable_name}accept(e){return e.visitRow_pattern_primary_variable_name?e.visitRow_pattern_primary_variable_name(this):e.visitChildren(this)}},zr=class extends W{static{Si(this,"Row_pattern_permuteContext")}constructor(e,t){super(e,t)}PERMUTE(){return this.getToken(rs.PERMUTE,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}row_pattern(e){return void 0===e?this.getRuleContexts(Fr):this.getRuleContext(e,Fr)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_row_pattern_permute}accept(e){return e.visitRow_pattern_permute?e.visitRow_pattern_permute(this):e.visitChildren(this)}},Gr=class extends W{static{Si(this,"Row_pattern_subset_clauseContext")}constructor(e,t){super(e,t)}SUBSET(){return this.getToken(rs.SUBSET,0)}row_pattern_subset_list(){return this.getRuleContext(0,jr)}get ruleIndex(){return rs.RULE_row_pattern_subset_clause}accept(e){return e.visitRow_pattern_subset_clause?e.visitRow_pattern_subset_clause(this):e.visitChildren(this)}},jr=class extends W{static{Si(this,"Row_pattern_subset_listContext")}constructor(e,t){super(e,t)}row_pattern_subset_item(e){return void 0===e?this.getRuleContexts(Kr):this.getRuleContext(e,Kr)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_row_pattern_subset_list}accept(e){return e.visitRow_pattern_subset_list?e.visitRow_pattern_subset_list(this):e.visitChildren(this)}},Kr=class extends W{static{Si(this,"Row_pattern_subset_itemContext")}constructor(e,t){super(e,t)}row_pattern_subset_item_variable_name(){return this.getRuleContext(0,Yr)}EQUALS(){return this.getToken(rs.EQUALS,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}row_pattern_subset_rhs(){return this.getRuleContext(0,qr)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_row_pattern_subset_item}accept(e){return e.visitRow_pattern_subset_item?e.visitRow_pattern_subset_item(this):e.visitChildren(this)}},Yr=class extends W{static{Si(this,"Row_pattern_subset_item_variable_nameContext")}constructor(e,t){super(e,t)}row_pattern_variable_name(){return this.getRuleContext(0,to)}get ruleIndex(){return rs.RULE_row_pattern_subset_item_variable_name}accept(e){return e.visitRow_pattern_subset_item_variable_name?e.visitRow_pattern_subset_item_variable_name(this):e.visitChildren(this)}},qr=class extends W{static{Si(this,"Row_pattern_subset_rhsContext")}constructor(e,t){super(e,t)}row_pattern_subset_rhs_variable_name(e){return void 0===e?this.getRuleContexts($r):this.getRuleContext(e,$r)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_row_pattern_subset_rhs}accept(e){return e.visitRow_pattern_subset_rhs?e.visitRow_pattern_subset_rhs(this):e.visitChildren(this)}},$r=class extends W{static{Si(this,"Row_pattern_subset_rhs_variable_nameContext")}constructor(e,t){super(e,t)}row_pattern_variable_name(){return this.getRuleContext(0,to)}get ruleIndex(){return rs.RULE_row_pattern_subset_rhs_variable_name}accept(e){return e.visitRow_pattern_subset_rhs_variable_name?e.visitRow_pattern_subset_rhs_variable_name(this):e.visitChildren(this)}},Qr=class extends W{static{Si(this,"Row_pattern_definition_listContext")}constructor(e,t){super(e,t)}row_pattern_definition(e){return void 0===e?this.getRuleContexts(Xr):this.getRuleContext(e,Xr)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_row_pattern_definition_list}accept(e){return e.visitRow_pattern_definition_list?e.visitRow_pattern_definition_list(this):e.visitChildren(this)}},Xr=class extends W{static{Si(this,"Row_pattern_definitionContext")}constructor(e,t){super(e,t)}row_pattern_definition_variable_name(){return this.getRuleContext(0,Zr)}AS(){return this.getToken(rs.AS,0)}row_pattern_definition_search_condition(){return this.getRuleContext(0,Jr)}get ruleIndex(){return rs.RULE_row_pattern_definition}accept(e){return e.visitRow_pattern_definition?e.visitRow_pattern_definition(this):e.visitChildren(this)}},Zr=class extends W{static{Si(this,"Row_pattern_definition_variable_nameContext")}constructor(e,t){super(e,t)}row_pattern_variable_name(){return this.getRuleContext(0,to)}get ruleIndex(){return rs.RULE_row_pattern_definition_variable_name}accept(e){return e.visitRow_pattern_definition_variable_name?e.visitRow_pattern_definition_variable_name(this):e.visitChildren(this)}},Jr=class extends W{static{Si(this,"Row_pattern_definition_search_conditionContext")}constructor(e,t){super(e,t)}search_condition(){return this.getRuleContext(0,eo)}get ruleIndex(){return rs.RULE_row_pattern_definition_search_condition}accept(e){return e.visitRow_pattern_definition_search_condition?e.visitRow_pattern_definition_search_condition(this):e.visitChildren(this)}},eo=class extends W{static{Si(this,"Search_conditionContext")}constructor(e,t){super(e,t)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_search_condition}accept(e){return e.visitSearch_condition?e.visitSearch_condition(this):e.visitChildren(this)}},to=class extends W{static{Si(this,"Row_pattern_variable_nameContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,Ih)}get ruleIndex(){return rs.RULE_row_pattern_variable_name}accept(e){return e.visitRow_pattern_variable_name?e.visitRow_pattern_variable_name(this):e.visitChildren(this)}},io=class extends W{static{Si(this,"Order_by_clauseContext")}constructor(e,t){super(e,t)}ORDER(){return this.getToken(rs.ORDER,0)}BY(){return this.getToken(rs.BY,0)}sort_specification_list(){return this.getRuleContext(0,pr)}get ruleIndex(){return rs.RULE_order_by_clause}accept(e){return e.visitOrder_by_clause?e.visitOrder_by_clause(this):e.visitChildren(this)}},so=class extends W{static{Si(this,"Ext_order_by_clauseContext")}constructor(e,t){super(e,t)}order_by_clause(){return this.getRuleContext(0,io)}ASSUME(){return this.getToken(rs.ASSUME,0)}get ruleIndex(){return rs.RULE_ext_order_by_clause}accept(e){return e.visitExt_order_by_clause?e.visitExt_order_by_clause(this):e.visitChildren(this)}},no=class extends W{static{Si(this,"Group_by_clauseContext")}constructor(e,t){super(e,t)}GROUP(){return this.getToken(rs.GROUP,0)}BY(){return this.getToken(rs.BY,0)}opt_set_quantifier(){return this.getRuleContext(0,Rr)}grouping_element_list(){return this.getRuleContext(0,ro)}COMPACT(){return this.getToken(rs.COMPACT,0)}WITH(){return this.getToken(rs.WITH,0)}an_id(){return this.getRuleContext(0,Vh)}get ruleIndex(){return rs.RULE_group_by_clause}accept(e){return e.visitGroup_by_clause?e.visitGroup_by_clause(this):e.visitChildren(this)}},ro=class extends W{static{Si(this,"Grouping_element_listContext")}constructor(e,t){super(e,t)}grouping_element(e){return void 0===e?this.getRuleContexts(oo):this.getRuleContext(e,oo)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_grouping_element_list}accept(e){return e.visitGrouping_element_list?e.visitGrouping_element_list(this):e.visitChildren(this)}},oo=class extends W{static{Si(this,"Grouping_elementContext")}constructor(e,t){super(e,t)}ordinary_grouping_set(){return this.getRuleContext(0,ao)}rollup_list(){return this.getRuleContext(0,lo)}cube_list(){return this.getRuleContext(0,ho)}grouping_sets_specification(){return this.getRuleContext(0,uo)}hopping_window_specification(){return this.getRuleContext(0,go)}get ruleIndex(){return rs.RULE_grouping_element}accept(e){return e.visitGrouping_element?e.visitGrouping_element(this):e.visitChildren(this)}},ao=class extends W{static{Si(this,"Ordinary_grouping_setContext")}constructor(e,t){super(e,t)}named_expr(){return this.getRuleContext(0,_n)}get ruleIndex(){return rs.RULE_ordinary_grouping_set}accept(e){return e.visitOrdinary_grouping_set?e.visitOrdinary_grouping_set(this):e.visitChildren(this)}},co=class extends W{static{Si(this,"Ordinary_grouping_set_listContext")}constructor(e,t){super(e,t)}ordinary_grouping_set(e){return void 0===e?this.getRuleContexts(ao):this.getRuleContext(e,ao)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_ordinary_grouping_set_list}accept(e){return e.visitOrdinary_grouping_set_list?e.visitOrdinary_grouping_set_list(this):e.visitChildren(this)}},lo=class extends W{static{Si(this,"Rollup_listContext")}constructor(e,t){super(e,t)}ROLLUP(){return this.getToken(rs.ROLLUP,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}ordinary_grouping_set_list(){return this.getRuleContext(0,co)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_rollup_list}accept(e){return e.visitRollup_list?e.visitRollup_list(this):e.visitChildren(this)}},ho=class extends W{static{Si(this,"Cube_listContext")}constructor(e,t){super(e,t)}CUBE(){return this.getToken(rs.CUBE,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}ordinary_grouping_set_list(){return this.getRuleContext(0,co)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_cube_list}accept(e){return e.visitCube_list?e.visitCube_list(this):e.visitChildren(this)}},uo=class extends W{static{Si(this,"Grouping_sets_specificationContext")}constructor(e,t){super(e,t)}GROUPING(){return this.getToken(rs.GROUPING,0)}SETS(){return this.getToken(rs.SETS,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}grouping_element_list(){return this.getRuleContext(0,ro)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_grouping_sets_specification}accept(e){return e.visitGrouping_sets_specification?e.visitGrouping_sets_specification(this):e.visitChildren(this)}},go=class extends W{static{Si(this,"Hopping_window_specificationContext")}constructor(e,t){super(e,t)}HOP(){return this.getToken(rs.HOP,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}expr(e){return void 0===e?this.getRuleContexts(gs):this.getRuleContext(e,gs)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_hopping_window_specification}accept(e){return e.visitHopping_window_specification?e.visitHopping_window_specification(this):e.visitChildren(this)}},po=class extends W{static{Si(this,"Result_columnContext")}constructor(e,t){super(e,t)}opt_id_prefix(){return this.getRuleContext(0,ed)}ASTERISK(){return this.getToken(rs.ASTERISK,0)}expr(){return this.getRuleContext(0,gs)}AS(){return this.getToken(rs.AS,0)}an_id_or_type(){return this.getRuleContext(0,zh)}an_id_as_compat(){return this.getRuleContext(0,Zh)}get ruleIndex(){return rs.RULE_result_column}accept(e){return e.visitResult_column?e.visitResult_column(this):e.visitChildren(this)}},mo=class extends W{static{Si(this,"Join_sourceContext")}constructor(e,t){super(e,t)}flatten_source(e){return void 0===e?this.getRuleContexts(vo):this.getRuleContext(e,vo)}ANY(e){return void 0===e?this.getTokens(rs.ANY):this.getToken(rs.ANY,e)}join_op(e){return void 0===e?this.getRuleContexts(Ro):this.getRuleContext(e,Ro)}join_constraint(e){return void 0===e?this.getRuleContexts(Lo):this.getRuleContext(e,Lo)}get ruleIndex(){return rs.RULE_join_source}accept(e){return e.visitJoin_source?e.visitJoin_source(this):e.visitChildren(this)}},fo=class extends W{static{Si(this,"Named_columnContext")}constructor(e,t){super(e,t)}column_name(){return this.getRuleContext(0,gn)}AS(){return this.getToken(rs.AS,0)}an_id(){return this.getRuleContext(0,Vh)}get ruleIndex(){return rs.RULE_named_column}accept(e){return e.visitNamed_column?e.visitNamed_column(this):e.visitChildren(this)}},_o=class extends W{static{Si(this,"Flatten_by_argContext")}constructor(e,t){super(e,t)}named_column(){return this.getRuleContext(0,fo)}LPAREN(){return this.getToken(rs.LPAREN,0)}named_expr_list(){return this.getRuleContext(0,vn)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(){return this.getToken(rs.COMMA,0)}get ruleIndex(){return rs.RULE_flatten_by_arg}accept(e){return e.visitFlatten_by_arg?e.visitFlatten_by_arg(this):e.visitChildren(this)}},vo=class extends W{static{Si(this,"Flatten_sourceContext")}constructor(e,t){super(e,t)}named_single_source(){return this.getRuleContext(0,Co)}FLATTEN(){return this.getToken(rs.FLATTEN,0)}BY(){return this.getToken(rs.BY,0)}flatten_by_arg(){return this.getRuleContext(0,_o)}COLUMNS(){return this.getToken(rs.COLUMNS,0)}OPTIONAL(){return this.getToken(rs.OPTIONAL,0)}LIST(){return this.getToken(rs.LIST,0)}DICT(){return this.getToken(rs.DICT,0)}get ruleIndex(){return rs.RULE_flatten_source}accept(e){return e.visitFlatten_source?e.visitFlatten_source(this):e.visitChildren(this)}},Co=class extends W{static{Si(this,"Named_single_sourceContext")}constructor(e,t){super(e,t)}single_source(){return this.getRuleContext(0,Eo)}row_pattern_recognition_clause(){return this.getRuleContext(0,Tr)}sample_clause(){return this.getRuleContext(0,bo)}tablesample_clause(){return this.getRuleContext(0,So)}AS(){return this.getToken(rs.AS,0)}an_id(){return this.getRuleContext(0,Vh)}an_id_as_compat(){return this.getRuleContext(0,Zh)}pure_column_list(){return this.getRuleContext(0,hn)}get ruleIndex(){return rs.RULE_named_single_source}accept(e){return e.visitNamed_single_source?e.visitNamed_single_source(this):e.visitChildren(this)}},Eo=class extends W{static{Si(this,"Single_sourceContext")}constructor(e,t){super(e,t)}table_ref(){return this.getRuleContext(0,ml)}LPAREN(){return this.getToken(rs.LPAREN,0)}select_stmt(){return this.getRuleContext(0,mr)}RPAREN(){return this.getToken(rs.RPAREN,0)}values_stmt(){return this.getRuleContext(0,No)}get ruleIndex(){return rs.RULE_single_source}accept(e){return e.visitSingle_source?e.visitSingle_source(this):e.visitChildren(this)}},bo=class extends W{static{Si(this,"Sample_clauseContext")}constructor(e,t){super(e,t)}SAMPLE(){return this.getToken(rs.SAMPLE,0)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_sample_clause}accept(e){return e.visitSample_clause?e.visitSample_clause(this):e.visitChildren(this)}},So=class extends W{static{Si(this,"Tablesample_clauseContext")}constructor(e,t){super(e,t)}TABLESAMPLE(){return this.getToken(rs.TABLESAMPLE,0)}sampling_mode(){return this.getRuleContext(0,yo)}LPAREN(){return this.getToken(rs.LPAREN,0)}expr(){return this.getRuleContext(0,gs)}RPAREN(){return this.getToken(rs.RPAREN,0)}repeatable_clause(){return this.getRuleContext(0,wo)}get ruleIndex(){return rs.RULE_tablesample_clause}accept(e){return e.visitTablesample_clause?e.visitTablesample_clause(this):e.visitChildren(this)}},yo=class extends W{static{Si(this,"Sampling_modeContext")}constructor(e,t){super(e,t)}BERNOULLI(){return this.getToken(rs.BERNOULLI,0)}SYSTEM(){return this.getToken(rs.SYSTEM,0)}get ruleIndex(){return rs.RULE_sampling_mode}accept(e){return e.visitSampling_mode?e.visitSampling_mode(this):e.visitChildren(this)}},wo=class extends W{static{Si(this,"Repeatable_clauseContext")}constructor(e,t){super(e,t)}REPEATABLE(){return this.getToken(rs.REPEATABLE,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}expr(){return this.getRuleContext(0,gs)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_repeatable_clause}accept(e){return e.visitRepeatable_clause?e.visitRepeatable_clause(this):e.visitChildren(this)}},Ro=class extends W{static{Si(this,"Join_opContext")}constructor(e,t){super(e,t)}COMMA(){return this.getToken(rs.COMMA,0)}JOIN(){return this.getToken(rs.JOIN,0)}INNER(){return this.getToken(rs.INNER,0)}CROSS(){return this.getToken(rs.CROSS,0)}NATURAL(){return this.getToken(rs.NATURAL,0)}LEFT(){return this.getToken(rs.LEFT,0)}RIGHT(){return this.getToken(rs.RIGHT,0)}EXCLUSION(){return this.getToken(rs.EXCLUSION,0)}FULL(){return this.getToken(rs.FULL,0)}OUTER(){return this.getToken(rs.OUTER,0)}ONLY(){return this.getToken(rs.ONLY,0)}SEMI(){return this.getToken(rs.SEMI,0)}get ruleIndex(){return rs.RULE_join_op}accept(e){return e.visitJoin_op?e.visitJoin_op(this):e.visitChildren(this)}},Lo=class extends W{static{Si(this,"Join_constraintContext")}constructor(e,t){super(e,t)}ON(){return this.getToken(rs.ON,0)}expr(){return this.getRuleContext(0,gs)}USING(){return this.getToken(rs.USING,0)}pure_column_or_named_list(){return this.getRuleContext(0,un)}get ruleIndex(){return rs.RULE_join_constraint}accept(e){return e.visitJoin_constraint?e.visitJoin_constraint(this):e.visitChildren(this)}},To=class extends W{static{Si(this,"Returning_columns_listContext")}constructor(e,t){super(e,t)}RETURNING(){return this.getToken(rs.RETURNING,0)}ASTERISK(){return this.getToken(rs.ASTERISK,0)}an_id(e){return void 0===e?this.getRuleContexts(Vh):this.getRuleContext(e,Vh)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_returning_columns_list}accept(e){return e.visitReturning_columns_list?e.visitReturning_columns_list(this):e.visitChildren(this)}},xo=class extends W{static{Si(this,"Into_table_stmtContext")}constructor(e,t){super(e,t)}INTO(){return this.getToken(rs.INTO,0)}into_simple_table_ref(){return this.getRuleContext(0,yl)}into_values_source(){return this.getRuleContext(0,Ao)}INSERT(){return this.getToken(rs.INSERT,0)}OR(){return this.getToken(rs.OR,0)}ABORT(){return this.getToken(rs.ABORT,0)}REVERT(){return this.getToken(rs.REVERT,0)}IGNORE(){return this.getToken(rs.IGNORE,0)}UPSERT(){return this.getToken(rs.UPSERT,0)}REPLACE(){return this.getToken(rs.REPLACE,0)}returning_columns_list(){return this.getRuleContext(0,To)}get ruleIndex(){return rs.RULE_into_table_stmt}accept(e){return e.visitInto_table_stmt?e.visitInto_table_stmt(this):e.visitChildren(this)}},ko=class extends W{static{Si(this,"Into_table_stmt_yqContext")}constructor(e,t){super(e,t)}INTO(){return this.getToken(rs.INTO,0)}into_simple_table_ref(){return this.getRuleContext(0,yl)}into_values_source(){return this.getRuleContext(0,Ao)}INSERT(){return this.getToken(rs.INSERT,0)}OR(){return this.getToken(rs.OR,0)}ABORT(){return this.getToken(rs.ABORT,0)}REVERT(){return this.getToken(rs.REVERT,0)}IGNORE(){return this.getToken(rs.IGNORE,0)}REPLACE(){return this.getToken(rs.REPLACE,0)}get ruleIndex(){return rs.RULE_into_table_stmt_yq}accept(e){return e.visitInto_table_stmt_yq?e.visitInto_table_stmt_yq(this):e.visitChildren(this)}},Ao=class extends W{static{Si(this,"Into_values_sourceContext")}constructor(e,t){super(e,t)}values_source(){return this.getRuleContext(0,Io)}pure_column_list(){return this.getRuleContext(0,hn)}DEFAULT(){return this.getToken(rs.DEFAULT,0)}VALUES(){return this.getToken(rs.VALUES,0)}get ruleIndex(){return rs.RULE_into_values_source}accept(e){return e.visitInto_values_source?e.visitInto_values_source(this):e.visitChildren(this)}},No=class extends W{static{Si(this,"Values_stmtContext")}constructor(e,t){super(e,t)}VALUES(){return this.getToken(rs.VALUES,0)}values_source_row_list(){return this.getRuleContext(0,Oo)}get ruleIndex(){return rs.RULE_values_stmt}accept(e){return e.visitValues_stmt?e.visitValues_stmt(this):e.visitChildren(this)}},Io=class extends W{static{Si(this,"Values_sourceContext")}constructor(e,t){super(e,t)}values_stmt(){return this.getRuleContext(0,No)}select_stmt(){return this.getRuleContext(0,mr)}get ruleIndex(){return rs.RULE_values_source}accept(e){return e.visitValues_source?e.visitValues_source(this):e.visitChildren(this)}},Oo=class extends W{static{Si(this,"Values_source_row_listContext")}constructor(e,t){super(e,t)}values_source_row(e){return void 0===e?this.getRuleContexts(Do):this.getRuleContext(e,Do)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_values_source_row_list}accept(e){return e.visitValues_source_row_list?e.visitValues_source_row_list(this):e.visitChildren(this)}},Do=class extends W{static{Si(this,"Values_source_rowContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}expr_list(){return this.getRuleContext(0,ln)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_values_source_row}accept(e){return e.visitValues_source_row?e.visitValues_source_row(this):e.visitChildren(this)}},Mo=class extends W{static{Si(this,"Simple_values_sourceContext")}constructor(e,t){super(e,t)}expr_list(){return this.getRuleContext(0,ln)}select_stmt(){return this.getRuleContext(0,mr)}get ruleIndex(){return rs.RULE_simple_values_source}accept(e){return e.visitSimple_values_source?e.visitSimple_values_source(this):e.visitChildren(this)}},Po=class extends W{static{Si(this,"Create_external_data_source_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}EXTERNAL(){return this.getToken(rs.EXTERNAL,0)}DATA(){return this.getToken(rs.DATA,0)}SOURCE(){return this.getToken(rs.SOURCE,0)}object_ref(){return this.getRuleContext(0,El)}with_table_settings(){return this.getRuleContext(0,Ea)}OR(){return this.getToken(rs.OR,0)}REPLACE(){return this.getToken(rs.REPLACE,0)}IF(){return this.getToken(rs.IF,0)}NOT(){return this.getToken(rs.NOT,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}get ruleIndex(){return rs.RULE_create_external_data_source_stmt}accept(e){return e.visitCreate_external_data_source_stmt?e.visitCreate_external_data_source_stmt(this):e.visitChildren(this)}},Fo=class extends W{static{Si(this,"Alter_external_data_source_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}EXTERNAL(){return this.getToken(rs.EXTERNAL,0)}DATA(){return this.getToken(rs.DATA,0)}SOURCE(){return this.getToken(rs.SOURCE,0)}object_ref(){return this.getRuleContext(0,El)}alter_external_data_source_action(e){return void 0===e?this.getRuleContexts(Uo):this.getRuleContext(e,Uo)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_external_data_source_stmt}accept(e){return e.visitAlter_external_data_source_stmt?e.visitAlter_external_data_source_stmt(this):e.visitChildren(this)}},Uo=class extends W{static{Si(this,"Alter_external_data_source_actionContext")}constructor(e,t){super(e,t)}alter_table_set_table_setting_uncompat(){return this.getRuleContext(0,Pa)}alter_table_set_table_setting_compat(){return this.getRuleContext(0,Fa)}alter_table_reset_table_setting(){return this.getRuleContext(0,Ua)}get ruleIndex(){return rs.RULE_alter_external_data_source_action}accept(e){return e.visitAlter_external_data_source_action?e.visitAlter_external_data_source_action(this):e.visitChildren(this)}},Ho=class extends W{static{Si(this,"Drop_external_data_source_stmtContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}EXTERNAL(){return this.getToken(rs.EXTERNAL,0)}DATA(){return this.getToken(rs.DATA,0)}SOURCE(){return this.getToken(rs.SOURCE,0)}object_ref(){return this.getRuleContext(0,El)}IF(){return this.getToken(rs.IF,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}get ruleIndex(){return rs.RULE_drop_external_data_source_stmt}accept(e){return e.visitDrop_external_data_source_stmt?e.visitDrop_external_data_source_stmt(this):e.visitChildren(this)}},Bo=class extends W{static{Si(this,"Create_view_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}VIEW(){return this.getToken(rs.VIEW,0)}object_ref(){return this.getRuleContext(0,El)}AS(){return this.getToken(rs.AS,0)}select_stmt(){return this.getRuleContext(0,mr)}IF(){return this.getToken(rs.IF,0)}NOT(){return this.getToken(rs.NOT,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}create_object_features(){return this.getRuleContext(0,Go)}get ruleIndex(){return rs.RULE_create_view_stmt}accept(e){return e.visitCreate_view_stmt?e.visitCreate_view_stmt(this):e.visitChildren(this)}},Wo=class extends W{static{Si(this,"Drop_view_stmtContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}VIEW(){return this.getToken(rs.VIEW,0)}object_ref(){return this.getRuleContext(0,El)}IF(){return this.getToken(rs.IF,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}get ruleIndex(){return rs.RULE_drop_view_stmt}accept(e){return e.visitDrop_view_stmt?e.visitDrop_view_stmt(this):e.visitChildren(this)}},Vo=class extends W{static{Si(this,"Upsert_object_stmtContext")}constructor(e,t){super(e,t)}UPSERT(){return this.getToken(rs.UPSERT,0)}OBJECT(){return this.getToken(rs.OBJECT,0)}object_ref(){return this.getRuleContext(0,El)}LPAREN(){return this.getToken(rs.LPAREN,0)}TYPE(){return this.getToken(rs.TYPE,0)}object_type_ref(){return this.getRuleContext(0,ea)}RPAREN(){return this.getToken(rs.RPAREN,0)}create_object_features(){return this.getRuleContext(0,Go)}get ruleIndex(){return rs.RULE_upsert_object_stmt}accept(e){return e.visitUpsert_object_stmt?e.visitUpsert_object_stmt(this):e.visitChildren(this)}},zo=class extends W{static{Si(this,"Create_object_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}OBJECT(){return this.getToken(rs.OBJECT,0)}object_ref(){return this.getRuleContext(0,El)}LPAREN(){return this.getToken(rs.LPAREN,0)}TYPE(){return this.getToken(rs.TYPE,0)}object_type_ref(){return this.getRuleContext(0,ea)}RPAREN(){return this.getToken(rs.RPAREN,0)}IF(){return this.getToken(rs.IF,0)}NOT(){return this.getToken(rs.NOT,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}create_object_features(){return this.getRuleContext(0,Go)}get ruleIndex(){return rs.RULE_create_object_stmt}accept(e){return e.visitCreate_object_stmt?e.visitCreate_object_stmt(this):e.visitChildren(this)}},Go=class extends W{static{Si(this,"Create_object_featuresContext")}constructor(e,t){super(e,t)}WITH(){return this.getToken(rs.WITH,0)}object_features(){return this.getRuleContext(0,Jo)}get ruleIndex(){return rs.RULE_create_object_features}accept(e){return e.visitCreate_object_features?e.visitCreate_object_features(this):e.visitChildren(this)}},jo=class extends W{static{Si(this,"Alter_object_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}OBJECT(){return this.getToken(rs.OBJECT,0)}object_ref(){return this.getRuleContext(0,El)}LPAREN(){return this.getToken(rs.LPAREN,0)}TYPE(){return this.getToken(rs.TYPE,0)}object_type_ref(){return this.getRuleContext(0,ea)}RPAREN(){return this.getToken(rs.RPAREN,0)}alter_object_features(){return this.getRuleContext(0,Ko)}get ruleIndex(){return rs.RULE_alter_object_stmt}accept(e){return e.visitAlter_object_stmt?e.visitAlter_object_stmt(this):e.visitChildren(this)}},Ko=class extends W{static{Si(this,"Alter_object_featuresContext")}constructor(e,t){super(e,t)}SET(){return this.getToken(rs.SET,0)}object_features(){return this.getRuleContext(0,Jo)}get ruleIndex(){return rs.RULE_alter_object_features}accept(e){return e.visitAlter_object_features?e.visitAlter_object_features(this):e.visitChildren(this)}},Yo=class extends W{static{Si(this,"Drop_object_stmtContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}OBJECT(){return this.getToken(rs.OBJECT,0)}object_ref(){return this.getRuleContext(0,El)}LPAREN(){return this.getToken(rs.LPAREN,0)}TYPE(){return this.getToken(rs.TYPE,0)}object_type_ref(){return this.getRuleContext(0,ea)}RPAREN(){return this.getToken(rs.RPAREN,0)}IF(){return this.getToken(rs.IF,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}drop_object_features(){return this.getRuleContext(0,qo)}get ruleIndex(){return rs.RULE_drop_object_stmt}accept(e){return e.visitDrop_object_stmt?e.visitDrop_object_stmt(this):e.visitChildren(this)}},qo=class extends W{static{Si(this,"Drop_object_featuresContext")}constructor(e,t){super(e,t)}WITH(){return this.getToken(rs.WITH,0)}object_features(){return this.getRuleContext(0,Jo)}get ruleIndex(){return rs.RULE_drop_object_features}accept(e){return e.visitDrop_object_features?e.visitDrop_object_features(this):e.visitChildren(this)}},$o=class extends W{static{Si(this,"Object_feature_valueContext")}constructor(e,t){super(e,t)}id_or_type(){return this.getRuleContext(0,id)}bind_parameter(){return this.getRuleContext(0,Rn)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}bool_value(){return this.getRuleContext(0,vd)}get ruleIndex(){return rs.RULE_object_feature_value}accept(e){return e.visitObject_feature_value?e.visitObject_feature_value(this):e.visitChildren(this)}},Qo=class extends W{static{Si(this,"Object_feature_kvContext")}constructor(e,t){super(e,t)}an_id_or_type(){return this.getRuleContext(0,zh)}EQUALS(){return this.getToken(rs.EQUALS,0)}object_feature_value(){return this.getRuleContext(0,$o)}get ruleIndex(){return rs.RULE_object_feature_kv}accept(e){return e.visitObject_feature_kv?e.visitObject_feature_kv(this):e.visitChildren(this)}},Xo=class extends W{static{Si(this,"Object_feature_flagContext")}constructor(e,t){super(e,t)}an_id_or_type(){return this.getRuleContext(0,zh)}get ruleIndex(){return rs.RULE_object_feature_flag}accept(e){return e.visitObject_feature_flag?e.visitObject_feature_flag(this):e.visitChildren(this)}},Zo=class extends W{static{Si(this,"Object_featureContext")}constructor(e,t){super(e,t)}object_feature_kv(){return this.getRuleContext(0,Qo)}object_feature_flag(){return this.getRuleContext(0,Xo)}get ruleIndex(){return rs.RULE_object_feature}accept(e){return e.visitObject_feature?e.visitObject_feature(this):e.visitChildren(this)}},Jo=class extends W{static{Si(this,"Object_featuresContext")}constructor(e,t){super(e,t)}object_feature(e){return void 0===e?this.getRuleContexts(Zo):this.getRuleContext(e,Zo)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_object_features}accept(e){return e.visitObject_features?e.visitObject_features(this):e.visitChildren(this)}},ea=class extends W{static{Si(this,"Object_type_refContext")}constructor(e,t){super(e,t)}an_id_or_type(){return this.getRuleContext(0,zh)}get ruleIndex(){return rs.RULE_object_type_ref}accept(e){return e.visitObject_type_ref?e.visitObject_type_ref(this):e.visitChildren(this)}},ta=class extends W{static{Si(this,"Create_table_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}simple_table_ref(){return this.getRuleContext(0,Sl)}LPAREN(){return this.getToken(rs.LPAREN,0)}create_table_entry(e){return void 0===e?this.getRuleContexts(ia):this.getRuleContext(e,ia)}RPAREN(){return this.getToken(rs.RPAREN,0)}TABLE(){return this.getToken(rs.TABLE,0)}TABLESTORE(){return this.getToken(rs.TABLESTORE,0)}EXTERNAL(){return this.getToken(rs.EXTERNAL,0)}TEMP(){return this.getToken(rs.TEMP,0)}TEMPORARY(){return this.getToken(rs.TEMPORARY,0)}OR(){return this.getToken(rs.OR,0)}REPLACE(){return this.getToken(rs.REPLACE,0)}IF(){return this.getToken(rs.IF,0)}NOT(){return this.getToken(rs.NOT,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}table_inherits(){return this.getRuleContext(0,va)}table_partition_by(){return this.getRuleContext(0,Ca)}with_table_settings(){return this.getRuleContext(0,Ea)}table_tablestore(){return this.getRuleContext(0,ba)}table_as_source(){return this.getRuleContext(0,ya)}get ruleIndex(){return rs.RULE_create_table_stmt}accept(e){return e.visitCreate_table_stmt?e.visitCreate_table_stmt(this):e.visitChildren(this)}},ia=class extends W{static{Si(this,"Create_table_entryContext")}constructor(e,t){super(e,t)}column_schema(){return this.getRuleContext(0,Ya)}table_constraint(){return this.getRuleContext(0,Xa)}table_index(){return this.getRuleContext(0,Za)}family_entry(){return this.getRuleContext(0,mc)}changefeed(){return this.getRuleContext(0,oc)}an_id_schema(){return this.getRuleContext(0,Gh)}get ruleIndex(){return rs.RULE_create_table_entry}accept(e){return e.visitCreate_table_entry?e.visitCreate_table_entry(this):e.visitChildren(this)}},sa=class extends W{static{Si(this,"Create_backup_collection_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}backup_collection(){return this.getRuleContext(0,ga)}WITH(){return this.getToken(rs.WITH,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}backup_collection_settings(){return this.getRuleContext(0,pa)}RPAREN(){return this.getToken(rs.RPAREN,0)}create_backup_collection_entries(){return this.getRuleContext(0,oa)}get ruleIndex(){return rs.RULE_create_backup_collection_stmt}accept(e){return e.visitCreate_backup_collection_stmt?e.visitCreate_backup_collection_stmt(this):e.visitChildren(this)}},na=class extends W{static{Si(this,"Alter_backup_collection_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}backup_collection(){return this.getRuleContext(0,ga)}alter_backup_collection_actions(){return this.getRuleContext(0,la)}alter_backup_collection_entries(){return this.getRuleContext(0,da)}get ruleIndex(){return rs.RULE_alter_backup_collection_stmt}accept(e){return e.visitAlter_backup_collection_stmt?e.visitAlter_backup_collection_stmt(this):e.visitChildren(this)}},ra=class extends W{static{Si(this,"Drop_backup_collection_stmtContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}backup_collection(){return this.getRuleContext(0,ga)}get ruleIndex(){return rs.RULE_drop_backup_collection_stmt}accept(e){return e.visitDrop_backup_collection_stmt?e.visitDrop_backup_collection_stmt(this):e.visitChildren(this)}},oa=class extends W{static{Si(this,"Create_backup_collection_entriesContext")}constructor(e,t){super(e,t)}DATABASE(){return this.getToken(rs.DATABASE,0)}create_backup_collection_entries_many(){return this.getRuleContext(0,aa)}get ruleIndex(){return rs.RULE_create_backup_collection_entries}accept(e){return e.visitCreate_backup_collection_entries?e.visitCreate_backup_collection_entries(this):e.visitChildren(this)}},aa=class extends W{static{Si(this,"Create_backup_collection_entries_manyContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}table_list(){return this.getRuleContext(0,ca)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_create_backup_collection_entries_many}accept(e){return e.visitCreate_backup_collection_entries_many?e.visitCreate_backup_collection_entries_many(this):e.visitChildren(this)}},ca=class extends W{static{Si(this,"Table_listContext")}constructor(e,t){super(e,t)}TABLE(e){return void 0===e?this.getTokens(rs.TABLE):this.getToken(rs.TABLE,e)}an_id_table(e){return void 0===e?this.getRuleContexts(qh):this.getRuleContext(e,qh)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_table_list}accept(e){return e.visitTable_list?e.visitTable_list(this):e.visitChildren(this)}},la=class extends W{static{Si(this,"Alter_backup_collection_actionsContext")}constructor(e,t){super(e,t)}alter_backup_collection_action(e){return void 0===e?this.getRuleContexts(ha):this.getRuleContext(e,ha)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_backup_collection_actions}accept(e){return e.visitAlter_backup_collection_actions?e.visitAlter_backup_collection_actions(this):e.visitChildren(this)}},ha=class extends W{static{Si(this,"Alter_backup_collection_actionContext")}constructor(e,t){super(e,t)}alter_table_set_table_setting_compat(){return this.getRuleContext(0,Fa)}alter_table_reset_table_setting(){return this.getRuleContext(0,Ua)}get ruleIndex(){return rs.RULE_alter_backup_collection_action}accept(e){return e.visitAlter_backup_collection_action?e.visitAlter_backup_collection_action(this):e.visitChildren(this)}},da=class extends W{static{Si(this,"Alter_backup_collection_entriesContext")}constructor(e,t){super(e,t)}alter_backup_collection_entry(e){return void 0===e?this.getRuleContexts(ua):this.getRuleContext(e,ua)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_backup_collection_entries}accept(e){return e.visitAlter_backup_collection_entries?e.visitAlter_backup_collection_entries(this):e.visitChildren(this)}},ua=class extends W{static{Si(this,"Alter_backup_collection_entryContext")}constructor(e,t){super(e,t)}ADD(){return this.getToken(rs.ADD,0)}DATABASE(){return this.getToken(rs.DATABASE,0)}DROP(){return this.getToken(rs.DROP,0)}TABLE(){return this.getToken(rs.TABLE,0)}an_id_table(){return this.getRuleContext(0,qh)}get ruleIndex(){return rs.RULE_alter_backup_collection_entry}accept(e){return e.visitAlter_backup_collection_entry?e.visitAlter_backup_collection_entry(this):e.visitChildren(this)}},ga=class extends W{static{Si(this,"Backup_collectionContext")}constructor(e,t){super(e,t)}BACKUP(){return this.getToken(rs.BACKUP,0)}COLLECTION(){return this.getToken(rs.COLLECTION,0)}object_ref(){return this.getRuleContext(0,El)}get ruleIndex(){return rs.RULE_backup_collection}accept(e){return e.visitBackup_collection?e.visitBackup_collection(this):e.visitChildren(this)}},pa=class extends W{static{Si(this,"Backup_collection_settingsContext")}constructor(e,t){super(e,t)}backup_collection_settings_entry(e){return void 0===e?this.getRuleContexts(ma):this.getRuleContext(e,ma)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_backup_collection_settings}accept(e){return e.visitBackup_collection_settings?e.visitBackup_collection_settings(this):e.visitChildren(this)}},ma=class extends W{static{Si(this,"Backup_collection_settings_entryContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}EQUALS(){return this.getToken(rs.EQUALS,0)}table_setting_value(){return this.getRuleContext(0,uc)}get ruleIndex(){return rs.RULE_backup_collection_settings_entry}accept(e){return e.visitBackup_collection_settings_entry?e.visitBackup_collection_settings_entry(this):e.visitChildren(this)}},fa=class extends W{static{Si(this,"Backup_stmtContext")}constructor(e,t){super(e,t)}BACKUP(){return this.getToken(rs.BACKUP,0)}object_ref(){return this.getRuleContext(0,El)}INCREMENTAL(){return this.getToken(rs.INCREMENTAL,0)}get ruleIndex(){return rs.RULE_backup_stmt}accept(e){return e.visitBackup_stmt?e.visitBackup_stmt(this):e.visitChildren(this)}},_a=class extends W{static{Si(this,"Restore_stmtContext")}constructor(e,t){super(e,t)}RESTORE(){return this.getToken(rs.RESTORE,0)}object_ref(){return this.getRuleContext(0,El)}AT(){return this.getToken(rs.AT,0)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_restore_stmt}accept(e){return e.visitRestore_stmt?e.visitRestore_stmt(this):e.visitChildren(this)}},va=class extends W{static{Si(this,"Table_inheritsContext")}constructor(e,t){super(e,t)}INHERITS(){return this.getToken(rs.INHERITS,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}simple_table_ref_core(e){return void 0===e?this.getRuleContexts(bl):this.getRuleContext(e,bl)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_table_inherits}accept(e){return e.visitTable_inherits?e.visitTable_inherits(this):e.visitChildren(this)}},Ca=class extends W{static{Si(this,"Table_partition_byContext")}constructor(e,t){super(e,t)}PARTITION(){return this.getToken(rs.PARTITION,0)}BY(){return this.getToken(rs.BY,0)}HASH(){return this.getToken(rs.HASH,0)}pure_column_list(){return this.getRuleContext(0,hn)}get ruleIndex(){return rs.RULE_table_partition_by}accept(e){return e.visitTable_partition_by?e.visitTable_partition_by(this):e.visitChildren(this)}},Ea=class extends W{static{Si(this,"With_table_settingsContext")}constructor(e,t){super(e,t)}WITH(){return this.getToken(rs.WITH,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}table_settings_entry(e){return void 0===e?this.getRuleContexts(Sa):this.getRuleContext(e,Sa)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_with_table_settings}accept(e){return e.visitWith_table_settings?e.visitWith_table_settings(this):e.visitChildren(this)}},ba=class extends W{static{Si(this,"Table_tablestoreContext")}constructor(e,t){super(e,t)}TABLESTORE(){return this.getToken(rs.TABLESTORE,0)}simple_table_ref_core(){return this.getRuleContext(0,bl)}get ruleIndex(){return rs.RULE_table_tablestore}accept(e){return e.visitTable_tablestore?e.visitTable_tablestore(this):e.visitChildren(this)}},Sa=class extends W{static{Si(this,"Table_settings_entryContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}EQUALS(){return this.getToken(rs.EQUALS,0)}table_setting_value(){return this.getRuleContext(0,uc)}get ruleIndex(){return rs.RULE_table_settings_entry}accept(e){return e.visitTable_settings_entry?e.visitTable_settings_entry(this):e.visitChildren(this)}},ya=class extends W{static{Si(this,"Table_as_sourceContext")}constructor(e,t){super(e,t)}AS(){return this.getToken(rs.AS,0)}values_source(){return this.getRuleContext(0,Io)}get ruleIndex(){return rs.RULE_table_as_source}accept(e){return e.visitTable_as_source?e.visitTable_as_source(this):e.visitChildren(this)}},wa=class extends W{static{Si(this,"Alter_table_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}TABLE(){return this.getToken(rs.TABLE,0)}simple_table_ref(){return this.getRuleContext(0,Sl)}alter_table_action(e){return void 0===e?this.getRuleContexts(Ra):this.getRuleContext(e,Ra)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_table_stmt}accept(e){return e.visitAlter_table_stmt?e.visitAlter_table_stmt(this):e.visitChildren(this)}},Ra=class extends W{static{Si(this,"Alter_table_actionContext")}constructor(e,t){super(e,t)}alter_table_add_column(){return this.getRuleContext(0,Aa)}alter_table_drop_column(){return this.getRuleContext(0,Na)}alter_table_alter_column(){return this.getRuleContext(0,Ia)}alter_table_add_column_family(){return this.getRuleContext(0,Da)}alter_table_alter_column_family(){return this.getRuleContext(0,Ma)}alter_table_set_table_setting_uncompat(){return this.getRuleContext(0,Pa)}alter_table_set_table_setting_compat(){return this.getRuleContext(0,Fa)}alter_table_reset_table_setting(){return this.getRuleContext(0,Ua)}alter_table_add_index(){return this.getRuleContext(0,Ha)}alter_table_drop_index(){return this.getRuleContext(0,Ba)}alter_table_rename_to(){return this.getRuleContext(0,Wa)}alter_table_add_changefeed(){return this.getRuleContext(0,za)}alter_table_alter_changefeed(){return this.getRuleContext(0,Ga)}alter_table_drop_changefeed(){return this.getRuleContext(0,ja)}alter_table_rename_index_to(){return this.getRuleContext(0,Va)}alter_table_alter_index(){return this.getRuleContext(0,Ka)}alter_table_alter_column_drop_not_null(){return this.getRuleContext(0,Oa)}get ruleIndex(){return rs.RULE_alter_table_action}accept(e){return e.visitAlter_table_action?e.visitAlter_table_action(this):e.visitChildren(this)}},La=class extends W{static{Si(this,"Alter_external_table_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}EXTERNAL(){return this.getToken(rs.EXTERNAL,0)}TABLE(){return this.getToken(rs.TABLE,0)}simple_table_ref(){return this.getRuleContext(0,Sl)}alter_external_table_action(e){return void 0===e?this.getRuleContexts(Ta):this.getRuleContext(e,Ta)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_external_table_stmt}accept(e){return e.visitAlter_external_table_stmt?e.visitAlter_external_table_stmt(this):e.visitChildren(this)}},Ta=class extends W{static{Si(this,"Alter_external_table_actionContext")}constructor(e,t){super(e,t)}alter_table_add_column(){return this.getRuleContext(0,Aa)}alter_table_drop_column(){return this.getRuleContext(0,Na)}alter_table_set_table_setting_uncompat(){return this.getRuleContext(0,Pa)}alter_table_set_table_setting_compat(){return this.getRuleContext(0,Fa)}alter_table_reset_table_setting(){return this.getRuleContext(0,Ua)}get ruleIndex(){return rs.RULE_alter_external_table_action}accept(e){return e.visitAlter_external_table_action?e.visitAlter_external_table_action(this):e.visitChildren(this)}},xa=class extends W{static{Si(this,"Alter_table_store_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}TABLESTORE(){return this.getToken(rs.TABLESTORE,0)}object_ref(){return this.getRuleContext(0,El)}alter_table_store_action(e){return void 0===e?this.getRuleContexts(ka):this.getRuleContext(e,ka)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_table_store_stmt}accept(e){return e.visitAlter_table_store_stmt?e.visitAlter_table_store_stmt(this):e.visitChildren(this)}},ka=class extends W{static{Si(this,"Alter_table_store_actionContext")}constructor(e,t){super(e,t)}alter_table_add_column(){return this.getRuleContext(0,Aa)}alter_table_drop_column(){return this.getRuleContext(0,Na)}get ruleIndex(){return rs.RULE_alter_table_store_action}accept(e){return e.visitAlter_table_store_action?e.visitAlter_table_store_action(this):e.visitChildren(this)}},Aa=class extends W{static{Si(this,"Alter_table_add_columnContext")}constructor(e,t){super(e,t)}ADD(){return this.getToken(rs.ADD,0)}column_schema(){return this.getRuleContext(0,Ya)}COLUMN(){return this.getToken(rs.COLUMN,0)}get ruleIndex(){return rs.RULE_alter_table_add_column}accept(e){return e.visitAlter_table_add_column?e.visitAlter_table_add_column(this):e.visitChildren(this)}},Na=class extends W{static{Si(this,"Alter_table_drop_columnContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}an_id(){return this.getRuleContext(0,Vh)}COLUMN(){return this.getToken(rs.COLUMN,0)}get ruleIndex(){return rs.RULE_alter_table_drop_column}accept(e){return e.visitAlter_table_drop_column?e.visitAlter_table_drop_column(this):e.visitChildren(this)}},Ia=class extends W{static{Si(this,"Alter_table_alter_columnContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}COLUMN(){return this.getToken(rs.COLUMN,0)}an_id(){return this.getRuleContext(0,Vh)}SET(){return this.getToken(rs.SET,0)}family_relation(){return this.getRuleContext(0,qa)}get ruleIndex(){return rs.RULE_alter_table_alter_column}accept(e){return e.visitAlter_table_alter_column?e.visitAlter_table_alter_column(this):e.visitChildren(this)}},Oa=class extends W{static{Si(this,"Alter_table_alter_column_drop_not_nullContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}COLUMN(){return this.getToken(rs.COLUMN,0)}an_id(){return this.getRuleContext(0,Vh)}DROP(){return this.getToken(rs.DROP,0)}NOT(){return this.getToken(rs.NOT,0)}NULL(){return this.getToken(rs.NULL,0)}get ruleIndex(){return rs.RULE_alter_table_alter_column_drop_not_null}accept(e){return e.visitAlter_table_alter_column_drop_not_null?e.visitAlter_table_alter_column_drop_not_null(this):e.visitChildren(this)}},Da=class extends W{static{Si(this,"Alter_table_add_column_familyContext")}constructor(e,t){super(e,t)}ADD(){return this.getToken(rs.ADD,0)}family_entry(){return this.getRuleContext(0,mc)}get ruleIndex(){return rs.RULE_alter_table_add_column_family}accept(e){return e.visitAlter_table_add_column_family?e.visitAlter_table_add_column_family(this):e.visitChildren(this)}},Ma=class extends W{static{Si(this,"Alter_table_alter_column_familyContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}FAMILY(){return this.getToken(rs.FAMILY,0)}an_id(e){return void 0===e?this.getRuleContexts(Vh):this.getRuleContext(e,Vh)}SET(){return this.getToken(rs.SET,0)}family_setting_value(){return this.getRuleContext(0,vc)}get ruleIndex(){return rs.RULE_alter_table_alter_column_family}accept(e){return e.visitAlter_table_alter_column_family?e.visitAlter_table_alter_column_family(this):e.visitChildren(this)}},Pa=class extends W{static{Si(this,"Alter_table_set_table_setting_uncompatContext")}constructor(e,t){super(e,t)}SET(){return this.getToken(rs.SET,0)}an_id(){return this.getRuleContext(0,Vh)}table_setting_value(){return this.getRuleContext(0,uc)}get ruleIndex(){return rs.RULE_alter_table_set_table_setting_uncompat}accept(e){return e.visitAlter_table_set_table_setting_uncompat?e.visitAlter_table_set_table_setting_uncompat(this):e.visitChildren(this)}},Fa=class extends W{static{Si(this,"Alter_table_set_table_setting_compatContext")}constructor(e,t){super(e,t)}SET(){return this.getToken(rs.SET,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}alter_table_setting_entry(e){return void 0===e?this.getRuleContexts(dc):this.getRuleContext(e,dc)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_table_set_table_setting_compat}accept(e){return e.visitAlter_table_set_table_setting_compat?e.visitAlter_table_set_table_setting_compat(this):e.visitChildren(this)}},Ua=class extends W{static{Si(this,"Alter_table_reset_table_settingContext")}constructor(e,t){super(e,t)}RESET(){return this.getToken(rs.RESET,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}an_id(e){return void 0===e?this.getRuleContexts(Vh):this.getRuleContext(e,Vh)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_table_reset_table_setting}accept(e){return e.visitAlter_table_reset_table_setting?e.visitAlter_table_reset_table_setting(this):e.visitChildren(this)}},Ha=class extends W{static{Si(this,"Alter_table_add_indexContext")}constructor(e,t){super(e,t)}ADD(){return this.getToken(rs.ADD,0)}table_index(){return this.getRuleContext(0,Za)}get ruleIndex(){return rs.RULE_alter_table_add_index}accept(e){return e.visitAlter_table_add_index?e.visitAlter_table_add_index(this):e.visitChildren(this)}},Ba=class extends W{static{Si(this,"Alter_table_drop_indexContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}INDEX(){return this.getToken(rs.INDEX,0)}an_id(){return this.getRuleContext(0,Vh)}get ruleIndex(){return rs.RULE_alter_table_drop_index}accept(e){return e.visitAlter_table_drop_index?e.visitAlter_table_drop_index(this):e.visitChildren(this)}},Wa=class extends W{static{Si(this,"Alter_table_rename_toContext")}constructor(e,t){super(e,t)}RENAME(){return this.getToken(rs.RENAME,0)}TO(){return this.getToken(rs.TO,0)}an_id_table(){return this.getRuleContext(0,qh)}get ruleIndex(){return rs.RULE_alter_table_rename_to}accept(e){return e.visitAlter_table_rename_to?e.visitAlter_table_rename_to(this):e.visitChildren(this)}},Va=class extends W{static{Si(this,"Alter_table_rename_index_toContext")}constructor(e,t){super(e,t)}RENAME(){return this.getToken(rs.RENAME,0)}INDEX(){return this.getToken(rs.INDEX,0)}an_id(e){return void 0===e?this.getRuleContexts(Vh):this.getRuleContext(e,Vh)}TO(){return this.getToken(rs.TO,0)}get ruleIndex(){return rs.RULE_alter_table_rename_index_to}accept(e){return e.visitAlter_table_rename_index_to?e.visitAlter_table_rename_index_to(this):e.visitChildren(this)}},za=class extends W{static{Si(this,"Alter_table_add_changefeedContext")}constructor(e,t){super(e,t)}ADD(){return this.getToken(rs.ADD,0)}changefeed(){return this.getRuleContext(0,oc)}get ruleIndex(){return rs.RULE_alter_table_add_changefeed}accept(e){return e.visitAlter_table_add_changefeed?e.visitAlter_table_add_changefeed(this):e.visitChildren(this)}},Ga=class extends W{static{Si(this,"Alter_table_alter_changefeedContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}CHANGEFEED(){return this.getToken(rs.CHANGEFEED,0)}an_id(){return this.getRuleContext(0,Vh)}changefeed_alter_settings(){return this.getRuleContext(0,hc)}get ruleIndex(){return rs.RULE_alter_table_alter_changefeed}accept(e){return e.visitAlter_table_alter_changefeed?e.visitAlter_table_alter_changefeed(this):e.visitChildren(this)}},ja=class extends W{static{Si(this,"Alter_table_drop_changefeedContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}CHANGEFEED(){return this.getToken(rs.CHANGEFEED,0)}an_id(){return this.getRuleContext(0,Vh)}get ruleIndex(){return rs.RULE_alter_table_drop_changefeed}accept(e){return e.visitAlter_table_drop_changefeed?e.visitAlter_table_drop_changefeed(this):e.visitChildren(this)}},Ka=class extends W{static{Si(this,"Alter_table_alter_indexContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}INDEX(){return this.getToken(rs.INDEX,0)}an_id(){return this.getRuleContext(0,Vh)}alter_table_alter_index_action(){return this.getRuleContext(0,bc)}get ruleIndex(){return rs.RULE_alter_table_alter_index}accept(e){return e.visitAlter_table_alter_index?e.visitAlter_table_alter_index(this):e.visitChildren(this)}},Ya=class extends W{static{Si(this,"Column_schemaContext")}constructor(e,t){super(e,t)}an_id_schema(){return this.getRuleContext(0,Gh)}type_name_or_bind(){return this.getRuleContext(0,tr)}opt_column_constraints(){return this.getRuleContext(0,$a)}family_relation(){return this.getRuleContext(0,qa)}get ruleIndex(){return rs.RULE_column_schema}accept(e){return e.visitColumn_schema?e.visitColumn_schema(this):e.visitChildren(this)}},qa=class extends W{static{Si(this,"Family_relationContext")}constructor(e,t){super(e,t)}FAMILY(){return this.getToken(rs.FAMILY,0)}an_id(){return this.getRuleContext(0,Vh)}get ruleIndex(){return rs.RULE_family_relation}accept(e){return e.visitFamily_relation?e.visitFamily_relation(this):e.visitChildren(this)}},$a=class extends W{static{Si(this,"Opt_column_constraintsContext")}constructor(e,t){super(e,t)}NULL(){return this.getToken(rs.NULL,0)}DEFAULT(){return this.getToken(rs.DEFAULT,0)}expr(){return this.getRuleContext(0,gs)}NOT(){return this.getToken(rs.NOT,0)}get ruleIndex(){return rs.RULE_opt_column_constraints}accept(e){return e.visitOpt_column_constraints?e.visitOpt_column_constraints(this):e.visitChildren(this)}},Qa=class extends W{static{Si(this,"Column_order_by_specificationContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}ASC(){return this.getToken(rs.ASC,0)}DESC(){return this.getToken(rs.DESC,0)}get ruleIndex(){return rs.RULE_column_order_by_specification}accept(e){return e.visitColumn_order_by_specification?e.visitColumn_order_by_specification(this):e.visitChildren(this)}},Xa=class extends W{static{Si(this,"Table_constraintContext")}constructor(e,t){super(e,t)}PRIMARY(){return this.getToken(rs.PRIMARY,0)}KEY(){return this.getToken(rs.KEY,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}an_id(e){return void 0===e?this.getRuleContexts(Vh):this.getRuleContext(e,Vh)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}PARTITION(){return this.getToken(rs.PARTITION,0)}BY(){return this.getToken(rs.BY,0)}ORDER(){return this.getToken(rs.ORDER,0)}column_order_by_specification(e){return void 0===e?this.getRuleContexts(Qa):this.getRuleContext(e,Qa)}get ruleIndex(){return rs.RULE_table_constraint}accept(e){return e.visitTable_constraint?e.visitTable_constraint(this):e.visitChildren(this)}},Za=class extends W{static{Si(this,"Table_indexContext")}constructor(e,t){super(e,t)}INDEX(){return this.getToken(rs.INDEX,0)}an_id(){return this.getRuleContext(0,Vh)}table_index_type(){return this.getRuleContext(0,Ja)}ON(){return this.getToken(rs.ON,0)}LPAREN(e){return void 0===e?this.getTokens(rs.LPAREN):this.getToken(rs.LPAREN,e)}an_id_schema(e){return void 0===e?this.getRuleContexts(Gh):this.getRuleContext(e,Gh)}RPAREN(e){return void 0===e?this.getTokens(rs.RPAREN):this.getToken(rs.RPAREN,e)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}COVER(){return this.getToken(rs.COVER,0)}with_index_settings(){return this.getRuleContext(0,sc)}get ruleIndex(){return rs.RULE_table_index}accept(e){return e.visitTable_index?e.visitTable_index(this):e.visitChildren(this)}},Ja=class extends W{static{Si(this,"Table_index_typeContext")}constructor(e,t){super(e,t)}global_index(){return this.getRuleContext(0,ec)}local_index(){return this.getRuleContext(0,tc)}USING(){return this.getToken(rs.USING,0)}index_subtype(){return this.getRuleContext(0,ic)}get ruleIndex(){return rs.RULE_table_index_type}accept(e){return e.visitTable_index_type?e.visitTable_index_type(this):e.visitChildren(this)}},ec=class extends W{static{Si(this,"Global_indexContext")}constructor(e,t){super(e,t)}GLOBAL(){return this.getToken(rs.GLOBAL,0)}UNIQUE(){return this.getToken(rs.UNIQUE,0)}SYNC(){return this.getToken(rs.SYNC,0)}ASYNC(){return this.getToken(rs.ASYNC,0)}get ruleIndex(){return rs.RULE_global_index}accept(e){return e.visitGlobal_index?e.visitGlobal_index(this):e.visitChildren(this)}},tc=class extends W{static{Si(this,"Local_indexContext")}constructor(e,t){super(e,t)}LOCAL(){return this.getToken(rs.LOCAL,0)}get ruleIndex(){return rs.RULE_local_index}accept(e){return e.visitLocal_index?e.visitLocal_index(this):e.visitChildren(this)}},ic=class extends W{static{Si(this,"Index_subtypeContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}get ruleIndex(){return rs.RULE_index_subtype}accept(e){return e.visitIndex_subtype?e.visitIndex_subtype(this):e.visitChildren(this)}},sc=class extends W{static{Si(this,"With_index_settingsContext")}constructor(e,t){super(e,t)}WITH(){return this.getToken(rs.WITH,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}index_setting_entry(e){return void 0===e?this.getRuleContexts(nc):this.getRuleContext(e,nc)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_with_index_settings}accept(e){return e.visitWith_index_settings?e.visitWith_index_settings(this):e.visitChildren(this)}},nc=class extends W{static{Si(this,"Index_setting_entryContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}EQUALS(){return this.getToken(rs.EQUALS,0)}index_setting_value(){return this.getRuleContext(0,rc)}get ruleIndex(){return rs.RULE_index_setting_entry}accept(e){return e.visitIndex_setting_entry?e.visitIndex_setting_entry(this):e.visitChildren(this)}},rc=class extends W{static{Si(this,"Index_setting_valueContext")}constructor(e,t){super(e,t)}id_or_type(){return this.getRuleContext(0,id)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}integer(){return this.getRuleContext(0,Ed)}bool_value(){return this.getRuleContext(0,vd)}get ruleIndex(){return rs.RULE_index_setting_value}accept(e){return e.visitIndex_setting_value?e.visitIndex_setting_value(this):e.visitChildren(this)}},oc=class extends W{static{Si(this,"ChangefeedContext")}constructor(e,t){super(e,t)}CHANGEFEED(){return this.getToken(rs.CHANGEFEED,0)}an_id(){return this.getRuleContext(0,Vh)}WITH(){return this.getToken(rs.WITH,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}changefeed_settings(){return this.getRuleContext(0,ac)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_changefeed}accept(e){return e.visitChangefeed?e.visitChangefeed(this):e.visitChildren(this)}},ac=class extends W{static{Si(this,"Changefeed_settingsContext")}constructor(e,t){super(e,t)}changefeed_settings_entry(e){return void 0===e?this.getRuleContexts(cc):this.getRuleContext(e,cc)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_changefeed_settings}accept(e){return e.visitChangefeed_settings?e.visitChangefeed_settings(this):e.visitChildren(this)}},cc=class extends W{static{Si(this,"Changefeed_settings_entryContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}EQUALS(){return this.getToken(rs.EQUALS,0)}changefeed_setting_value(){return this.getRuleContext(0,lc)}get ruleIndex(){return rs.RULE_changefeed_settings_entry}accept(e){return e.visitChangefeed_settings_entry?e.visitChangefeed_settings_entry(this):e.visitChildren(this)}},lc=class extends W{static{Si(this,"Changefeed_setting_valueContext")}constructor(e,t){super(e,t)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_changefeed_setting_value}accept(e){return e.visitChangefeed_setting_value?e.visitChangefeed_setting_value(this):e.visitChildren(this)}},hc=class extends W{static{Si(this,"Changefeed_alter_settingsContext")}constructor(e,t){super(e,t)}DISABLE(){return this.getToken(rs.DISABLE,0)}SET(){return this.getToken(rs.SET,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}changefeed_settings(){return this.getRuleContext(0,ac)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_changefeed_alter_settings}accept(e){return e.visitChangefeed_alter_settings?e.visitChangefeed_alter_settings(this):e.visitChildren(this)}},dc=class extends W{static{Si(this,"Alter_table_setting_entryContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}EQUALS(){return this.getToken(rs.EQUALS,0)}table_setting_value(){return this.getRuleContext(0,uc)}get ruleIndex(){return rs.RULE_alter_table_setting_entry}accept(e){return e.visitAlter_table_setting_entry?e.visitAlter_table_setting_entry(this):e.visitChildren(this)}},uc=class extends W{static{Si(this,"Table_setting_valueContext")}constructor(e,t){super(e,t)}id(){return this.getRuleContext(0,Oh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}integer(){return this.getRuleContext(0,Ed)}split_boundaries(){return this.getRuleContext(0,Cc)}ttl_tier_list(){return this.getRuleContext(0,gc)}ON(){return this.getToken(rs.ON,0)}an_id(){return this.getRuleContext(0,Vh)}AS(){return this.getToken(rs.AS,0)}SECONDS(){return this.getToken(rs.SECONDS,0)}MILLISECONDS(){return this.getToken(rs.MILLISECONDS,0)}MICROSECONDS(){return this.getToken(rs.MICROSECONDS,0)}NANOSECONDS(){return this.getToken(rs.NANOSECONDS,0)}bool_value(){return this.getRuleContext(0,vd)}get ruleIndex(){return rs.RULE_table_setting_value}accept(e){return e.visitTable_setting_value?e.visitTable_setting_value(this):e.visitChildren(this)}},gc=class extends W{static{Si(this,"Ttl_tier_listContext")}constructor(e,t){super(e,t)}expr(e){return void 0===e?this.getRuleContexts(gs):this.getRuleContext(e,gs)}ttl_tier_action(e){return void 0===e?this.getRuleContexts(pc):this.getRuleContext(e,pc)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_ttl_tier_list}accept(e){return e.visitTtl_tier_list?e.visitTtl_tier_list(this):e.visitChildren(this)}},pc=class extends W{static{Si(this,"Ttl_tier_actionContext")}constructor(e,t){super(e,t)}TO(){return this.getToken(rs.TO,0)}EXTERNAL(){return this.getToken(rs.EXTERNAL,0)}DATA(){return this.getToken(rs.DATA,0)}SOURCE(){return this.getToken(rs.SOURCE,0)}an_id(){return this.getRuleContext(0,Vh)}DELETE(){return this.getToken(rs.DELETE,0)}get ruleIndex(){return rs.RULE_ttl_tier_action}accept(e){return e.visitTtl_tier_action?e.visitTtl_tier_action(this):e.visitChildren(this)}},mc=class extends W{static{Si(this,"Family_entryContext")}constructor(e,t){super(e,t)}FAMILY(){return this.getToken(rs.FAMILY,0)}an_id(){return this.getRuleContext(0,Vh)}family_settings(){return this.getRuleContext(0,fc)}get ruleIndex(){return rs.RULE_family_entry}accept(e){return e.visitFamily_entry?e.visitFamily_entry(this):e.visitChildren(this)}},fc=class extends W{static{Si(this,"Family_settingsContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}family_settings_entry(e){return void 0===e?this.getRuleContexts(_c):this.getRuleContext(e,_c)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_family_settings}accept(e){return e.visitFamily_settings?e.visitFamily_settings(this):e.visitChildren(this)}},_c=class extends W{static{Si(this,"Family_settings_entryContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}EQUALS(){return this.getToken(rs.EQUALS,0)}family_setting_value(){return this.getRuleContext(0,vc)}get ruleIndex(){return rs.RULE_family_settings_entry}accept(e){return e.visitFamily_settings_entry?e.visitFamily_settings_entry(this):e.visitChildren(this)}},vc=class extends W{static{Si(this,"Family_setting_valueContext")}constructor(e,t){super(e,t)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}integer(){return this.getRuleContext(0,Ed)}get ruleIndex(){return rs.RULE_family_setting_value}accept(e){return e.visitFamily_setting_value?e.visitFamily_setting_value(this):e.visitChildren(this)}},Cc=class extends W{static{Si(this,"Split_boundariesContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}literal_value_list(e){return void 0===e?this.getRuleContexts(Ec):this.getRuleContext(e,Ec)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_split_boundaries}accept(e){return e.visitSplit_boundaries?e.visitSplit_boundaries(this):e.visitChildren(this)}},Ec=class extends W{static{Si(this,"Literal_value_listContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}literal_value(e){return void 0===e?this.getRuleContexts(wn):this.getRuleContext(e,wn)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_literal_value_list}accept(e){return e.visitLiteral_value_list?e.visitLiteral_value_list(this):e.visitChildren(this)}},bc=class extends W{static{Si(this,"Alter_table_alter_index_actionContext")}constructor(e,t){super(e,t)}alter_table_set_table_setting_uncompat(){return this.getRuleContext(0,Pa)}alter_table_set_table_setting_compat(){return this.getRuleContext(0,Fa)}alter_table_reset_table_setting(){return this.getRuleContext(0,Ua)}get ruleIndex(){return rs.RULE_alter_table_alter_index_action}accept(e){return e.visitAlter_table_alter_index_action?e.visitAlter_table_alter_index_action(this):e.visitChildren(this)}},Sc=class extends W{static{Si(this,"Drop_table_stmtContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}simple_table_ref(){return this.getRuleContext(0,Sl)}TABLE(){return this.getToken(rs.TABLE,0)}TABLESTORE(){return this.getToken(rs.TABLESTORE,0)}EXTERNAL(){return this.getToken(rs.EXTERNAL,0)}IF(){return this.getToken(rs.IF,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}get ruleIndex(){return rs.RULE_drop_table_stmt}accept(e){return e.visitDrop_table_stmt?e.visitDrop_table_stmt(this):e.visitChildren(this)}},yc=class extends W{static{Si(this,"Create_user_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}USER(){return this.getToken(rs.USER,0)}role_name(){return this.getRuleContext(0,xc)}user_option(e){return void 0===e?this.getRuleContexts(kc):this.getRuleContext(e,kc)}get ruleIndex(){return rs.RULE_create_user_stmt}accept(e){return e.visitCreate_user_stmt?e.visitCreate_user_stmt(this):e.visitChildren(this)}},wc=class extends W{static{Si(this,"Alter_user_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}USER(){return this.getToken(rs.USER,0)}role_name(e){return void 0===e?this.getRuleContexts(xc):this.getRuleContext(e,xc)}RENAME(){return this.getToken(rs.RENAME,0)}TO(){return this.getToken(rs.TO,0)}WITH(){return this.getToken(rs.WITH,0)}user_option(e){return void 0===e?this.getRuleContexts(kc):this.getRuleContext(e,kc)}get ruleIndex(){return rs.RULE_alter_user_stmt}accept(e){return e.visitAlter_user_stmt?e.visitAlter_user_stmt(this):e.visitChildren(this)}},Rc=class extends W{static{Si(this,"Create_group_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}GROUP(){return this.getToken(rs.GROUP,0)}role_name(e){return void 0===e?this.getRuleContexts(xc):this.getRuleContext(e,xc)}WITH(){return this.getToken(rs.WITH,0)}USER(){return this.getToken(rs.USER,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_create_group_stmt}accept(e){return e.visitCreate_group_stmt?e.visitCreate_group_stmt(this):e.visitChildren(this)}},Lc=class extends W{static{Si(this,"Alter_group_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}GROUP(){return this.getToken(rs.GROUP,0)}role_name(e){return void 0===e?this.getRuleContexts(xc):this.getRuleContext(e,xc)}USER(){return this.getToken(rs.USER,0)}RENAME(){return this.getToken(rs.RENAME,0)}TO(){return this.getToken(rs.TO,0)}ADD(){return this.getToken(rs.ADD,0)}DROP(){return this.getToken(rs.DROP,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_group_stmt}accept(e){return e.visitAlter_group_stmt?e.visitAlter_group_stmt(this):e.visitChildren(this)}},Tc=class extends W{static{Si(this,"Drop_role_stmtContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}role_name(e){return void 0===e?this.getRuleContexts(xc):this.getRuleContext(e,xc)}USER(){return this.getToken(rs.USER,0)}GROUP(){return this.getToken(rs.GROUP,0)}IF(){return this.getToken(rs.IF,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_drop_role_stmt}accept(e){return e.visitDrop_role_stmt?e.visitDrop_role_stmt(this):e.visitChildren(this)}},xc=class extends W{static{Si(this,"Role_nameContext")}constructor(e,t){super(e,t)}an_id_or_type(){return this.getRuleContext(0,zh)}bind_parameter(){return this.getRuleContext(0,Rn)}get ruleIndex(){return rs.RULE_role_name}accept(e){return e.visitRole_name?e.visitRole_name(this):e.visitChildren(this)}},kc=class extends W{static{Si(this,"User_optionContext")}constructor(e,t){super(e,t)}authentication_option(){return this.getRuleContext(0,Ac)}login_option(){return this.getRuleContext(0,Oc)}get ruleIndex(){return rs.RULE_user_option}accept(e){return e.visitUser_option?e.visitUser_option(this):e.visitChildren(this)}},Ac=class extends W{static{Si(this,"Authentication_optionContext")}constructor(e,t){super(e,t)}password_option(){return this.getRuleContext(0,Nc)}hash_option(){return this.getRuleContext(0,Ic)}get ruleIndex(){return rs.RULE_authentication_option}accept(e){return e.visitAuthentication_option?e.visitAuthentication_option(this):e.visitChildren(this)}},Nc=class extends W{static{Si(this,"Password_optionContext")}constructor(e,t){super(e,t)}PASSWORD(){return this.getToken(rs.PASSWORD,0)}expr(){return this.getRuleContext(0,gs)}ENCRYPTED(){return this.getToken(rs.ENCRYPTED,0)}get ruleIndex(){return rs.RULE_password_option}accept(e){return e.visitPassword_option?e.visitPassword_option(this):e.visitChildren(this)}},Ic=class extends W{static{Si(this,"Hash_optionContext")}constructor(e,t){super(e,t)}HASH(){return this.getToken(rs.HASH,0)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_hash_option}accept(e){return e.visitHash_option?e.visitHash_option(this):e.visitChildren(this)}},Oc=class extends W{static{Si(this,"Login_optionContext")}constructor(e,t){super(e,t)}LOGIN(){return this.getToken(rs.LOGIN,0)}NOLOGIN(){return this.getToken(rs.NOLOGIN,0)}get ruleIndex(){return rs.RULE_login_option}accept(e){return e.visitLogin_option?e.visitLogin_option(this):e.visitChildren(this)}},Dc=class extends W{static{Si(this,"Grant_permissions_stmtContext")}constructor(e,t){super(e,t)}GRANT(e){return void 0===e?this.getTokens(rs.GRANT):this.getToken(rs.GRANT,e)}permission_name_target(){return this.getRuleContext(0,Uc)}ON(){return this.getToken(rs.ON,0)}an_id_schema(e){return void 0===e?this.getRuleContexts(Gh):this.getRuleContext(e,Gh)}TO(){return this.getToken(rs.TO,0)}role_name(e){return void 0===e?this.getRuleContexts(xc):this.getRuleContext(e,xc)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}WITH(){return this.getToken(rs.WITH,0)}OPTION(){return this.getToken(rs.OPTION,0)}get ruleIndex(){return rs.RULE_grant_permissions_stmt}accept(e){return e.visitGrant_permissions_stmt?e.visitGrant_permissions_stmt(this):e.visitChildren(this)}},Mc=class extends W{static{Si(this,"Revoke_permissions_stmtContext")}constructor(e,t){super(e,t)}REVOKE(){return this.getToken(rs.REVOKE,0)}permission_name_target(){return this.getRuleContext(0,Uc)}ON(){return this.getToken(rs.ON,0)}an_id_schema(e){return void 0===e?this.getRuleContexts(Gh):this.getRuleContext(e,Gh)}FROM(){return this.getToken(rs.FROM,0)}role_name(e){return void 0===e?this.getRuleContexts(xc):this.getRuleContext(e,xc)}GRANT(){return this.getToken(rs.GRANT,0)}OPTION(){return this.getToken(rs.OPTION,0)}FOR(){return this.getToken(rs.FOR,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_revoke_permissions_stmt}accept(e){return e.visitRevoke_permissions_stmt?e.visitRevoke_permissions_stmt(this):e.visitChildren(this)}},Pc=class extends W{static{Si(this,"Permission_idContext")}constructor(e,t){super(e,t)}CONNECT(){return this.getToken(rs.CONNECT,0)}LIST(){return this.getToken(rs.LIST,0)}INSERT(){return this.getToken(rs.INSERT,0)}MANAGE(){return this.getToken(rs.MANAGE,0)}DROP(){return this.getToken(rs.DROP,0)}GRANT(){return this.getToken(rs.GRANT,0)}MODIFY(){return this.getToken(rs.MODIFY,0)}TABLES(){return this.getToken(rs.TABLES,0)}ATTRIBUTES(){return this.getToken(rs.ATTRIBUTES,0)}ROW(){return this.getToken(rs.ROW,0)}UPDATE(){return this.getToken(rs.UPDATE,0)}ERASE(){return this.getToken(rs.ERASE,0)}SCHEMA(){return this.getToken(rs.SCHEMA,0)}REMOVE(){return this.getToken(rs.REMOVE,0)}DESCRIBE(){return this.getToken(rs.DESCRIBE,0)}ALTER(){return this.getToken(rs.ALTER,0)}SELECT(){return this.getToken(rs.SELECT,0)}USE(){return this.getToken(rs.USE,0)}FULL(){return this.getToken(rs.FULL,0)}LEGACY(){return this.getToken(rs.LEGACY,0)}CREATE(){return this.getToken(rs.CREATE,0)}DIRECTORY(){return this.getToken(rs.DIRECTORY,0)}TABLE(){return this.getToken(rs.TABLE,0)}QUEUE(){return this.getToken(rs.QUEUE,0)}get ruleIndex(){return rs.RULE_permission_id}accept(e){return e.visitPermission_id?e.visitPermission_id(this):e.visitChildren(this)}},Fc=class extends W{static{Si(this,"Permission_nameContext")}constructor(e,t){super(e,t)}permission_id(){return this.getRuleContext(0,Pc)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_permission_name}accept(e){return e.visitPermission_name?e.visitPermission_name(this):e.visitChildren(this)}},Uc=class extends W{static{Si(this,"Permission_name_targetContext")}constructor(e,t){super(e,t)}permission_name(e){return void 0===e?this.getRuleContexts(Fc):this.getRuleContext(e,Fc)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}ALL(){return this.getToken(rs.ALL,0)}PRIVILEGES(){return this.getToken(rs.PRIVILEGES,0)}get ruleIndex(){return rs.RULE_permission_name_target}accept(e){return e.visitPermission_name_target?e.visitPermission_name_target(this):e.visitChildren(this)}},Hc=class extends W{static{Si(this,"Create_resource_pool_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}RESOURCE(){return this.getToken(rs.RESOURCE,0)}POOL(){return this.getToken(rs.POOL,0)}object_ref(){return this.getRuleContext(0,El)}with_table_settings(){return this.getRuleContext(0,Ea)}get ruleIndex(){return rs.RULE_create_resource_pool_stmt}accept(e){return e.visitCreate_resource_pool_stmt?e.visitCreate_resource_pool_stmt(this):e.visitChildren(this)}},Bc=class extends W{static{Si(this,"Alter_resource_pool_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}RESOURCE(){return this.getToken(rs.RESOURCE,0)}POOL(){return this.getToken(rs.POOL,0)}object_ref(){return this.getRuleContext(0,El)}alter_resource_pool_action(e){return void 0===e?this.getRuleContexts(Wc):this.getRuleContext(e,Wc)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_resource_pool_stmt}accept(e){return e.visitAlter_resource_pool_stmt?e.visitAlter_resource_pool_stmt(this):e.visitChildren(this)}},Wc=class extends W{static{Si(this,"Alter_resource_pool_actionContext")}constructor(e,t){super(e,t)}alter_table_set_table_setting_compat(){return this.getRuleContext(0,Fa)}alter_table_reset_table_setting(){return this.getRuleContext(0,Ua)}get ruleIndex(){return rs.RULE_alter_resource_pool_action}accept(e){return e.visitAlter_resource_pool_action?e.visitAlter_resource_pool_action(this):e.visitChildren(this)}},Vc=class extends W{static{Si(this,"Drop_resource_pool_stmtContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}RESOURCE(){return this.getToken(rs.RESOURCE,0)}POOL(){return this.getToken(rs.POOL,0)}object_ref(){return this.getRuleContext(0,El)}get ruleIndex(){return rs.RULE_drop_resource_pool_stmt}accept(e){return e.visitDrop_resource_pool_stmt?e.visitDrop_resource_pool_stmt(this):e.visitChildren(this)}},zc=class extends W{static{Si(this,"Create_resource_pool_classifier_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}RESOURCE(){return this.getToken(rs.RESOURCE,0)}POOL(){return this.getToken(rs.POOL,0)}CLASSIFIER(){return this.getToken(rs.CLASSIFIER,0)}object_ref(){return this.getRuleContext(0,El)}with_table_settings(){return this.getRuleContext(0,Ea)}get ruleIndex(){return rs.RULE_create_resource_pool_classifier_stmt}accept(e){return e.visitCreate_resource_pool_classifier_stmt?e.visitCreate_resource_pool_classifier_stmt(this):e.visitChildren(this)}},Gc=class extends W{static{Si(this,"Alter_resource_pool_classifier_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}RESOURCE(){return this.getToken(rs.RESOURCE,0)}POOL(){return this.getToken(rs.POOL,0)}CLASSIFIER(){return this.getToken(rs.CLASSIFIER,0)}object_ref(){return this.getRuleContext(0,El)}alter_resource_pool_classifier_action(e){return void 0===e?this.getRuleContexts(jc):this.getRuleContext(e,jc)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_resource_pool_classifier_stmt}accept(e){return e.visitAlter_resource_pool_classifier_stmt?e.visitAlter_resource_pool_classifier_stmt(this):e.visitChildren(this)}},jc=class extends W{static{Si(this,"Alter_resource_pool_classifier_actionContext")}constructor(e,t){super(e,t)}alter_table_set_table_setting_compat(){return this.getRuleContext(0,Fa)}alter_table_reset_table_setting(){return this.getRuleContext(0,Ua)}get ruleIndex(){return rs.RULE_alter_resource_pool_classifier_action}accept(e){return e.visitAlter_resource_pool_classifier_action?e.visitAlter_resource_pool_classifier_action(this):e.visitChildren(this)}},Kc=class extends W{static{Si(this,"Drop_resource_pool_classifier_stmtContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}RESOURCE(){return this.getToken(rs.RESOURCE,0)}POOL(){return this.getToken(rs.POOL,0)}CLASSIFIER(){return this.getToken(rs.CLASSIFIER,0)}object_ref(){return this.getRuleContext(0,El)}get ruleIndex(){return rs.RULE_drop_resource_pool_classifier_stmt}accept(e){return e.visitDrop_resource_pool_classifier_stmt?e.visitDrop_resource_pool_classifier_stmt(this):e.visitChildren(this)}},Yc=class extends W{static{Si(this,"Create_replication_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}ASYNC(){return this.getToken(rs.ASYNC,0)}REPLICATION(){return this.getToken(rs.REPLICATION,0)}object_ref(){return this.getRuleContext(0,El)}FOR(){return this.getToken(rs.FOR,0)}replication_target(e){return void 0===e?this.getRuleContexts(qc):this.getRuleContext(e,qc)}WITH(){return this.getToken(rs.WITH,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}replication_settings(){return this.getRuleContext(0,$c)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_create_replication_stmt}accept(e){return e.visitCreate_replication_stmt?e.visitCreate_replication_stmt(this):e.visitChildren(this)}},qc=class extends W{static{Si(this,"Replication_targetContext")}constructor(e,t){super(e,t)}object_ref(){return this.getRuleContext(0,El)}replication_name(){return this.getRuleContext(0,Rd)}get ruleIndex(){return rs.RULE_replication_target}accept(e){return e.visitReplication_target?e.visitReplication_target(this):e.visitChildren(this)}},$c=class extends W{static{Si(this,"Replication_settingsContext")}constructor(e,t){super(e,t)}replication_settings_entry(e){return void 0===e?this.getRuleContexts(Qc):this.getRuleContext(e,Qc)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_replication_settings}accept(e){return e.visitReplication_settings?e.visitReplication_settings(this):e.visitChildren(this)}},Qc=class extends W{static{Si(this,"Replication_settings_entryContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}EQUALS(){return this.getToken(rs.EQUALS,0)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_replication_settings_entry}accept(e){return e.visitReplication_settings_entry?e.visitReplication_settings_entry(this):e.visitChildren(this)}},Xc=class extends W{static{Si(this,"Alter_replication_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}ASYNC(){return this.getToken(rs.ASYNC,0)}REPLICATION(){return this.getToken(rs.REPLICATION,0)}object_ref(){return this.getRuleContext(0,El)}alter_replication_action(e){return void 0===e?this.getRuleContexts(Zc):this.getRuleContext(e,Zc)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_replication_stmt}accept(e){return e.visitAlter_replication_stmt?e.visitAlter_replication_stmt(this):e.visitChildren(this)}},Zc=class extends W{static{Si(this,"Alter_replication_actionContext")}constructor(e,t){super(e,t)}alter_replication_set_setting(){return this.getRuleContext(0,Jc)}get ruleIndex(){return rs.RULE_alter_replication_action}accept(e){return e.visitAlter_replication_action?e.visitAlter_replication_action(this):e.visitChildren(this)}},Jc=class extends W{static{Si(this,"Alter_replication_set_settingContext")}constructor(e,t){super(e,t)}SET(){return this.getToken(rs.SET,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}replication_settings(){return this.getRuleContext(0,$c)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_alter_replication_set_setting}accept(e){return e.visitAlter_replication_set_setting?e.visitAlter_replication_set_setting(this):e.visitChildren(this)}},el=class extends W{static{Si(this,"Drop_replication_stmtContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}ASYNC(){return this.getToken(rs.ASYNC,0)}REPLICATION(){return this.getToken(rs.REPLICATION,0)}object_ref(){return this.getRuleContext(0,El)}CASCADE(){return this.getToken(rs.CASCADE,0)}get ruleIndex(){return rs.RULE_drop_replication_stmt}accept(e){return e.visitDrop_replication_stmt?e.visitDrop_replication_stmt(this):e.visitChildren(this)}},tl=class extends W{static{Si(this,"Lambda_or_parameterContext")}constructor(e,t){super(e,t)}lambda(){return this.getRuleContext(0,Ks)}bind_parameter(){return this.getRuleContext(0,Rn)}get ruleIndex(){return rs.RULE_lambda_or_parameter}accept(e){return e.visitLambda_or_parameter?e.visitLambda_or_parameter(this):e.visitChildren(this)}},il=class extends W{static{Si(this,"Create_transfer_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}TRANSFER(){return this.getToken(rs.TRANSFER,0)}object_ref(e){return void 0===e?this.getRuleContexts(El):this.getRuleContext(e,El)}FROM(){return this.getToken(rs.FROM,0)}TO(){return this.getToken(rs.TO,0)}WITH(){return this.getToken(rs.WITH,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}transfer_settings(){return this.getRuleContext(0,sl)}RPAREN(){return this.getToken(rs.RPAREN,0)}USING(){return this.getToken(rs.USING,0)}lambda_or_parameter(){return this.getRuleContext(0,tl)}get ruleIndex(){return rs.RULE_create_transfer_stmt}accept(e){return e.visitCreate_transfer_stmt?e.visitCreate_transfer_stmt(this):e.visitChildren(this)}},sl=class extends W{static{Si(this,"Transfer_settingsContext")}constructor(e,t){super(e,t)}transfer_settings_entry(e){return void 0===e?this.getRuleContexts(nl):this.getRuleContext(e,nl)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_transfer_settings}accept(e){return e.visitTransfer_settings?e.visitTransfer_settings(this):e.visitChildren(this)}},nl=class extends W{static{Si(this,"Transfer_settings_entryContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}EQUALS(){return this.getToken(rs.EQUALS,0)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_transfer_settings_entry}accept(e){return e.visitTransfer_settings_entry?e.visitTransfer_settings_entry(this):e.visitChildren(this)}},rl=class extends W{static{Si(this,"Alter_transfer_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}TRANSFER(){return this.getToken(rs.TRANSFER,0)}object_ref(){return this.getRuleContext(0,El)}alter_transfer_action(e){return void 0===e?this.getRuleContexts(ol):this.getRuleContext(e,ol)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_transfer_stmt}accept(e){return e.visitAlter_transfer_stmt?e.visitAlter_transfer_stmt(this):e.visitChildren(this)}},ol=class extends W{static{Si(this,"Alter_transfer_actionContext")}constructor(e,t){super(e,t)}alter_transfer_set_setting(){return this.getRuleContext(0,al)}alter_transfer_set_using(){return this.getRuleContext(0,cl)}get ruleIndex(){return rs.RULE_alter_transfer_action}accept(e){return e.visitAlter_transfer_action?e.visitAlter_transfer_action(this):e.visitChildren(this)}},al=class extends W{static{Si(this,"Alter_transfer_set_settingContext")}constructor(e,t){super(e,t)}SET(){return this.getToken(rs.SET,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}transfer_settings(){return this.getRuleContext(0,sl)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_alter_transfer_set_setting}accept(e){return e.visitAlter_transfer_set_setting?e.visitAlter_transfer_set_setting(this):e.visitChildren(this)}},cl=class extends W{static{Si(this,"Alter_transfer_set_usingContext")}constructor(e,t){super(e,t)}SET(){return this.getToken(rs.SET,0)}USING(){return this.getToken(rs.USING,0)}lambda_or_parameter(){return this.getRuleContext(0,tl)}get ruleIndex(){return rs.RULE_alter_transfer_set_using}accept(e){return e.visitAlter_transfer_set_using?e.visitAlter_transfer_set_using(this):e.visitChildren(this)}},ll=class extends W{static{Si(this,"Drop_transfer_stmtContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}TRANSFER(){return this.getToken(rs.TRANSFER,0)}object_ref(){return this.getRuleContext(0,El)}CASCADE(){return this.getToken(rs.CASCADE,0)}get ruleIndex(){return rs.RULE_drop_transfer_stmt}accept(e){return e.visitDrop_transfer_stmt?e.visitDrop_transfer_stmt(this):e.visitChildren(this)}},hl=class extends W{static{Si(this,"Action_or_subquery_argsContext")}constructor(e,t){super(e,t)}opt_bind_parameter(e){return void 0===e?this.getRuleContexts(Ln):this.getRuleContext(e,Ln)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_action_or_subquery_args}accept(e){return e.visitAction_or_subquery_args?e.visitAction_or_subquery_args(this):e.visitChildren(this)}},dl=class extends W{static{Si(this,"Define_action_or_subquery_stmtContext")}constructor(e,t){super(e,t)}DEFINE(e){return void 0===e?this.getTokens(rs.DEFINE):this.getToken(rs.DEFINE,e)}bind_parameter(){return this.getRuleContext(0,Rn)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}AS(){return this.getToken(rs.AS,0)}define_action_or_subquery_body(){return this.getRuleContext(0,ul)}END(){return this.getToken(rs.END,0)}ACTION(){return this.getToken(rs.ACTION,0)}SUBQUERY(){return this.getToken(rs.SUBQUERY,0)}action_or_subquery_args(){return this.getRuleContext(0,hl)}get ruleIndex(){return rs.RULE_define_action_or_subquery_stmt}accept(e){return e.visitDefine_action_or_subquery_stmt?e.visitDefine_action_or_subquery_stmt(this):e.visitChildren(this)}},ul=class extends W{static{Si(this,"Define_action_or_subquery_bodyContext")}constructor(e,t){super(e,t)}SEMICOLON(e){return void 0===e?this.getTokens(rs.SEMICOLON):this.getToken(rs.SEMICOLON,e)}sql_stmt_core(e){return void 0===e?this.getRuleContexts(us):this.getRuleContext(e,us)}get ruleIndex(){return rs.RULE_define_action_or_subquery_body}accept(e){return e.visitDefine_action_or_subquery_body?e.visitDefine_action_or_subquery_body(this):e.visitChildren(this)}},gl=class extends W{static{Si(this,"If_stmtContext")}constructor(e,t){super(e,t)}IF(){return this.getToken(rs.IF,0)}expr(){return this.getRuleContext(0,gs)}do_stmt(e){return void 0===e?this.getRuleContexts(hr):this.getRuleContext(e,hr)}EVALUATE(){return this.getToken(rs.EVALUATE,0)}ELSE(){return this.getToken(rs.ELSE,0)}get ruleIndex(){return rs.RULE_if_stmt}accept(e){return e.visitIf_stmt?e.visitIf_stmt(this):e.visitChildren(this)}},pl=class extends W{static{Si(this,"For_stmtContext")}constructor(e,t){super(e,t)}FOR(){return this.getToken(rs.FOR,0)}bind_parameter(){return this.getRuleContext(0,Rn)}IN(){return this.getToken(rs.IN,0)}expr(){return this.getRuleContext(0,gs)}do_stmt(e){return void 0===e?this.getRuleContexts(hr):this.getRuleContext(e,hr)}EVALUATE(){return this.getToken(rs.EVALUATE,0)}PARALLEL(){return this.getToken(rs.PARALLEL,0)}ELSE(){return this.getToken(rs.ELSE,0)}get ruleIndex(){return rs.RULE_for_stmt}accept(e){return e.visitFor_stmt?e.visitFor_stmt(this):e.visitChildren(this)}},ml=class extends W{static{Si(this,"Table_refContext")}constructor(e,t){super(e,t)}table_key(){return this.getRuleContext(0,fl)}an_id_expr(){return this.getRuleContext(0,jh)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}bind_parameter(){return this.getRuleContext(0,Rn)}cluster_expr(){return this.getRuleContext(0,td)}DOT(){return this.getToken(rs.DOT,0)}COMMAT(){return this.getToken(rs.COMMAT,0)}table_hints(){return this.getRuleContext(0,vl)}table_arg(e){return void 0===e?this.getRuleContexts(_l):this.getRuleContext(e,_l)}VIEW(){return this.getToken(rs.VIEW,0)}view_name(){return this.getRuleContext(0,Jh)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}expr_list(){return this.getRuleContext(0,ln)}get ruleIndex(){return rs.RULE_table_ref}accept(e){return e.visitTable_ref?e.visitTable_ref(this):e.visitChildren(this)}},fl=class extends W{static{Si(this,"Table_keyContext")}constructor(e,t){super(e,t)}id_table_or_type(){return this.getRuleContext(0,rd)}VIEW(){return this.getToken(rs.VIEW,0)}view_name(){return this.getRuleContext(0,Jh)}get ruleIndex(){return rs.RULE_table_key}accept(e){return e.visitTable_key?e.visitTable_key(this):e.visitChildren(this)}},_l=class extends W{static{Si(this,"Table_argContext")}constructor(e,t){super(e,t)}named_expr(){return this.getRuleContext(0,_n)}COMMAT(){return this.getToken(rs.COMMAT,0)}VIEW(){return this.getToken(rs.VIEW,0)}view_name(){return this.getRuleContext(0,Jh)}get ruleIndex(){return rs.RULE_table_arg}accept(e){return e.visitTable_arg?e.visitTable_arg(this):e.visitChildren(this)}},vl=class extends W{static{Si(this,"Table_hintsContext")}constructor(e,t){super(e,t)}WITH(){return this.getToken(rs.WITH,0)}table_hint(e){return void 0===e?this.getRuleContexts(Cl):this.getRuleContext(e,Cl)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_table_hints}accept(e){return e.visitTable_hints?e.visitTable_hints(this):e.visitChildren(this)}},Cl=class extends W{static{Si(this,"Table_hintContext")}constructor(e,t){super(e,t)}an_id_hint(){return this.getRuleContext(0,Qh)}EQUALS(){return this.getToken(rs.EQUALS,0)}type_name_tag(e){return void 0===e?this.getRuleContexts(On):this.getRuleContext(e,On)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}type_name_or_bind(){return this.getRuleContext(0,tr)}SCHEMA(){return this.getToken(rs.SCHEMA,0)}COLUMNS(){return this.getToken(rs.COLUMNS,0)}struct_arg_positional(e){return void 0===e?this.getRuleContexts(Mn):this.getRuleContext(e,Mn)}get ruleIndex(){return rs.RULE_table_hint}accept(e){return e.visitTable_hint?e.visitTable_hint(this):e.visitChildren(this)}},El=class extends W{static{Si(this,"Object_refContext")}constructor(e,t){super(e,t)}id_or_at(){return this.getRuleContext(0,nd)}cluster_expr(){return this.getRuleContext(0,td)}DOT(){return this.getToken(rs.DOT,0)}get ruleIndex(){return rs.RULE_object_ref}accept(e){return e.visitObject_ref?e.visitObject_ref(this):e.visitChildren(this)}},bl=class extends W{static{Si(this,"Simple_table_ref_coreContext")}constructor(e,t){super(e,t)}object_ref(){return this.getRuleContext(0,El)}bind_parameter(){return this.getRuleContext(0,Rn)}COMMAT(){return this.getToken(rs.COMMAT,0)}get ruleIndex(){return rs.RULE_simple_table_ref_core}accept(e){return e.visitSimple_table_ref_core?e.visitSimple_table_ref_core(this):e.visitChildren(this)}},Sl=class extends W{static{Si(this,"Simple_table_refContext")}constructor(e,t){super(e,t)}simple_table_ref_core(){return this.getRuleContext(0,bl)}table_hints(){return this.getRuleContext(0,vl)}get ruleIndex(){return rs.RULE_simple_table_ref}accept(e){return e.visitSimple_table_ref?e.visitSimple_table_ref(this):e.visitChildren(this)}},yl=class extends W{static{Si(this,"Into_simple_table_refContext")}constructor(e,t){super(e,t)}simple_table_ref(){return this.getRuleContext(0,Sl)}ERASE(){return this.getToken(rs.ERASE,0)}BY(){return this.getToken(rs.BY,0)}pure_column_list(){return this.getRuleContext(0,hn)}get ruleIndex(){return rs.RULE_into_simple_table_ref}accept(e){return e.visitInto_simple_table_ref?e.visitInto_simple_table_ref(this):e.visitChildren(this)}},wl=class extends W{static{Si(this,"Delete_stmtContext")}constructor(e,t){super(e,t)}DELETE(){return this.getToken(rs.DELETE,0)}FROM(){return this.getToken(rs.FROM,0)}simple_table_ref(){return this.getRuleContext(0,Sl)}BATCH(){return this.getToken(rs.BATCH,0)}where_expr(){return this.getRuleContext(0,Ld)}ON(){return this.getToken(rs.ON,0)}into_values_source(){return this.getRuleContext(0,Ao)}returning_columns_list(){return this.getRuleContext(0,To)}get ruleIndex(){return rs.RULE_delete_stmt}accept(e){return e.visitDelete_stmt?e.visitDelete_stmt(this):e.visitChildren(this)}},Rl=class extends W{static{Si(this,"Update_stmtContext")}constructor(e,t){super(e,t)}UPDATE(){return this.getToken(rs.UPDATE,0)}simple_table_ref(){return this.getRuleContext(0,Sl)}SET(){return this.getToken(rs.SET,0)}set_clause_choice(){return this.getRuleContext(0,Ll)}ON(){return this.getToken(rs.ON,0)}into_values_source(){return this.getRuleContext(0,Ao)}BATCH(){return this.getToken(rs.BATCH,0)}returning_columns_list(){return this.getRuleContext(0,To)}where_expr(){return this.getRuleContext(0,Ld)}get ruleIndex(){return rs.RULE_update_stmt}accept(e){return e.visitUpdate_stmt?e.visitUpdate_stmt(this):e.visitChildren(this)}},Ll=class extends W{static{Si(this,"Set_clause_choiceContext")}constructor(e,t){super(e,t)}set_clause_list(){return this.getRuleContext(0,Tl)}multiple_column_assignment(){return this.getRuleContext(0,Al)}get ruleIndex(){return rs.RULE_set_clause_choice}accept(e){return e.visitSet_clause_choice?e.visitSet_clause_choice(this):e.visitChildren(this)}},Tl=class extends W{static{Si(this,"Set_clause_listContext")}constructor(e,t){super(e,t)}set_clause(e){return void 0===e?this.getRuleContexts(xl):this.getRuleContext(e,xl)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_set_clause_list}accept(e){return e.visitSet_clause_list?e.visitSet_clause_list(this):e.visitChildren(this)}},xl=class extends W{static{Si(this,"Set_clauseContext")}constructor(e,t){super(e,t)}set_target(){return this.getRuleContext(0,kl)}EQUALS(){return this.getToken(rs.EQUALS,0)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_set_clause}accept(e){return e.visitSet_clause?e.visitSet_clause(this):e.visitChildren(this)}},kl=class extends W{static{Si(this,"Set_targetContext")}constructor(e,t){super(e,t)}column_name(){return this.getRuleContext(0,gn)}get ruleIndex(){return rs.RULE_set_target}accept(e){return e.visitSet_target?e.visitSet_target(this):e.visitChildren(this)}},Al=class extends W{static{Si(this,"Multiple_column_assignmentContext")}constructor(e,t){super(e,t)}set_target_list(){return this.getRuleContext(0,Nl)}EQUALS(){return this.getToken(rs.EQUALS,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}simple_values_source(){return this.getRuleContext(0,Mo)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_multiple_column_assignment}accept(e){return e.visitMultiple_column_assignment?e.visitMultiple_column_assignment(this):e.visitChildren(this)}},Nl=class extends W{static{Si(this,"Set_target_listContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}set_target(e){return void 0===e?this.getRuleContexts(kl):this.getRuleContext(e,kl)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_set_target_list}accept(e){return e.visitSet_target_list?e.visitSet_target_list(this):e.visitChildren(this)}},Il=class extends W{static{Si(this,"Create_topic_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}TOPIC(){return this.getToken(rs.TOPIC,0)}topic_ref(){return this.getRuleContext(0,th)}IF(){return this.getToken(rs.IF,0)}NOT(){return this.getToken(rs.NOT,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}create_topic_entries(){return this.getRuleContext(0,Ol)}with_topic_settings(){return this.getRuleContext(0,Ml)}get ruleIndex(){return rs.RULE_create_topic_stmt}accept(e){return e.visitCreate_topic_stmt?e.visitCreate_topic_stmt(this):e.visitChildren(this)}},Ol=class extends W{static{Si(this,"Create_topic_entriesContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}create_topic_entry(e){return void 0===e?this.getRuleContexts(Dl):this.getRuleContext(e,Dl)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_create_topic_entries}accept(e){return e.visitCreate_topic_entries?e.visitCreate_topic_entries(this):e.visitChildren(this)}},Dl=class extends W{static{Si(this,"Create_topic_entryContext")}constructor(e,t){super(e,t)}topic_create_consumer_entry(){return this.getRuleContext(0,Hl)}get ruleIndex(){return rs.RULE_create_topic_entry}accept(e){return e.visitCreate_topic_entry?e.visitCreate_topic_entry(this):e.visitChildren(this)}},Ml=class extends W{static{Si(this,"With_topic_settingsContext")}constructor(e,t){super(e,t)}WITH(){return this.getToken(rs.WITH,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}topic_settings(){return this.getRuleContext(0,ql)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_with_topic_settings}accept(e){return e.visitWith_topic_settings?e.visitWith_topic_settings(this):e.visitChildren(this)}},Pl=class extends W{static{Si(this,"Alter_topic_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}TOPIC(){return this.getToken(rs.TOPIC,0)}topic_ref(){return this.getRuleContext(0,th)}alter_topic_action(e){return void 0===e?this.getRuleContexts(Fl):this.getRuleContext(e,Fl)}IF(){return this.getToken(rs.IF,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_topic_stmt}accept(e){return e.visitAlter_topic_stmt?e.visitAlter_topic_stmt(this):e.visitChildren(this)}},Fl=class extends W{static{Si(this,"Alter_topic_actionContext")}constructor(e,t){super(e,t)}alter_topic_add_consumer(){return this.getRuleContext(0,Ul)}alter_topic_alter_consumer(){return this.getRuleContext(0,Bl)}alter_topic_drop_consumer(){return this.getRuleContext(0,Vl)}alter_topic_set_settings(){return this.getRuleContext(0,jl)}alter_topic_reset_settings(){return this.getRuleContext(0,Kl)}get ruleIndex(){return rs.RULE_alter_topic_action}accept(e){return e.visitAlter_topic_action?e.visitAlter_topic_action(this):e.visitChildren(this)}},Ul=class extends W{static{Si(this,"Alter_topic_add_consumerContext")}constructor(e,t){super(e,t)}ADD(){return this.getToken(rs.ADD,0)}topic_create_consumer_entry(){return this.getRuleContext(0,Hl)}get ruleIndex(){return rs.RULE_alter_topic_add_consumer}accept(e){return e.visitAlter_topic_add_consumer?e.visitAlter_topic_add_consumer(this):e.visitChildren(this)}},Hl=class extends W{static{Si(this,"Topic_create_consumer_entryContext")}constructor(e,t){super(e,t)}CONSUMER(){return this.getToken(rs.CONSUMER,0)}an_id(){return this.getRuleContext(0,Vh)}topic_consumer_with_settings(){return this.getRuleContext(0,Xl)}get ruleIndex(){return rs.RULE_topic_create_consumer_entry}accept(e){return e.visitTopic_create_consumer_entry?e.visitTopic_create_consumer_entry(this):e.visitChildren(this)}},Bl=class extends W{static{Si(this,"Alter_topic_alter_consumerContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}CONSUMER(){return this.getToken(rs.CONSUMER,0)}topic_consumer_ref(){return this.getRuleContext(0,ih)}alter_topic_alter_consumer_entry(){return this.getRuleContext(0,Wl)}get ruleIndex(){return rs.RULE_alter_topic_alter_consumer}accept(e){return e.visitAlter_topic_alter_consumer?e.visitAlter_topic_alter_consumer(this):e.visitChildren(this)}},Wl=class extends W{static{Si(this,"Alter_topic_alter_consumer_entryContext")}constructor(e,t){super(e,t)}topic_alter_consumer_set(){return this.getRuleContext(0,zl)}topic_alter_consumer_reset(){return this.getRuleContext(0,Gl)}get ruleIndex(){return rs.RULE_alter_topic_alter_consumer_entry}accept(e){return e.visitAlter_topic_alter_consumer_entry?e.visitAlter_topic_alter_consumer_entry(this):e.visitChildren(this)}},Vl=class extends W{static{Si(this,"Alter_topic_drop_consumerContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}CONSUMER(){return this.getToken(rs.CONSUMER,0)}topic_consumer_ref(){return this.getRuleContext(0,ih)}get ruleIndex(){return rs.RULE_alter_topic_drop_consumer}accept(e){return e.visitAlter_topic_drop_consumer?e.visitAlter_topic_drop_consumer(this):e.visitChildren(this)}},zl=class extends W{static{Si(this,"Topic_alter_consumer_setContext")}constructor(e,t){super(e,t)}SET(){return this.getToken(rs.SET,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}topic_consumer_settings(){return this.getRuleContext(0,Zl)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_topic_alter_consumer_set}accept(e){return e.visitTopic_alter_consumer_set?e.visitTopic_alter_consumer_set(this):e.visitChildren(this)}},Gl=class extends W{static{Si(this,"Topic_alter_consumer_resetContext")}constructor(e,t){super(e,t)}RESET(){return this.getToken(rs.RESET,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}an_id(e){return void 0===e?this.getRuleContexts(Vh):this.getRuleContext(e,Vh)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_topic_alter_consumer_reset}accept(e){return e.visitTopic_alter_consumer_reset?e.visitTopic_alter_consumer_reset(this):e.visitChildren(this)}},jl=class extends W{static{Si(this,"Alter_topic_set_settingsContext")}constructor(e,t){super(e,t)}SET(){return this.getToken(rs.SET,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}topic_settings(){return this.getRuleContext(0,ql)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_alter_topic_set_settings}accept(e){return e.visitAlter_topic_set_settings?e.visitAlter_topic_set_settings(this):e.visitChildren(this)}},Kl=class extends W{static{Si(this,"Alter_topic_reset_settingsContext")}constructor(e,t){super(e,t)}RESET(){return this.getToken(rs.RESET,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}an_id(){return this.getRuleContext(0,Vh)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}an_id_pure(e){return void 0===e?this.getRuleContexts(Xh):this.getRuleContext(e,Xh)}get ruleIndex(){return rs.RULE_alter_topic_reset_settings}accept(e){return e.visitAlter_topic_reset_settings?e.visitAlter_topic_reset_settings(this):e.visitChildren(this)}},Yl=class extends W{static{Si(this,"Drop_topic_stmtContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}TOPIC(){return this.getToken(rs.TOPIC,0)}topic_ref(){return this.getRuleContext(0,th)}IF(){return this.getToken(rs.IF,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}get ruleIndex(){return rs.RULE_drop_topic_stmt}accept(e){return e.visitDrop_topic_stmt?e.visitDrop_topic_stmt(this):e.visitChildren(this)}},ql=class extends W{static{Si(this,"Topic_settingsContext")}constructor(e,t){super(e,t)}topic_settings_entry(e){return void 0===e?this.getRuleContexts($l):this.getRuleContext(e,$l)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_topic_settings}accept(e){return e.visitTopic_settings?e.visitTopic_settings(this):e.visitChildren(this)}},$l=class extends W{static{Si(this,"Topic_settings_entryContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}EQUALS(){return this.getToken(rs.EQUALS,0)}topic_setting_value(){return this.getRuleContext(0,Ql)}get ruleIndex(){return rs.RULE_topic_settings_entry}accept(e){return e.visitTopic_settings_entry?e.visitTopic_settings_entry(this):e.visitChildren(this)}},Ql=class extends W{static{Si(this,"Topic_setting_valueContext")}constructor(e,t){super(e,t)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_topic_setting_value}accept(e){return e.visitTopic_setting_value?e.visitTopic_setting_value(this):e.visitChildren(this)}},Xl=class extends W{static{Si(this,"Topic_consumer_with_settingsContext")}constructor(e,t){super(e,t)}WITH(){return this.getToken(rs.WITH,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}topic_consumer_settings(){return this.getRuleContext(0,Zl)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_topic_consumer_with_settings}accept(e){return e.visitTopic_consumer_with_settings?e.visitTopic_consumer_with_settings(this):e.visitChildren(this)}},Zl=class extends W{static{Si(this,"Topic_consumer_settingsContext")}constructor(e,t){super(e,t)}topic_consumer_settings_entry(e){return void 0===e?this.getRuleContexts(Jl):this.getRuleContext(e,Jl)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_topic_consumer_settings}accept(e){return e.visitTopic_consumer_settings?e.visitTopic_consumer_settings(this):e.visitChildren(this)}},Jl=class extends W{static{Si(this,"Topic_consumer_settings_entryContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}EQUALS(){return this.getToken(rs.EQUALS,0)}topic_consumer_setting_value(){return this.getRuleContext(0,eh)}get ruleIndex(){return rs.RULE_topic_consumer_settings_entry}accept(e){return e.visitTopic_consumer_settings_entry?e.visitTopic_consumer_settings_entry(this):e.visitChildren(this)}},eh=class extends W{static{Si(this,"Topic_consumer_setting_valueContext")}constructor(e,t){super(e,t)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_topic_consumer_setting_value}accept(e){return e.visitTopic_consumer_setting_value?e.visitTopic_consumer_setting_value(this):e.visitChildren(this)}},th=class extends W{static{Si(this,"Topic_refContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}cluster_expr(){return this.getRuleContext(0,td)}DOT(){return this.getToken(rs.DOT,0)}get ruleIndex(){return rs.RULE_topic_ref}accept(e){return e.visitTopic_ref?e.visitTopic_ref(this):e.visitChildren(this)}},ih=class extends W{static{Si(this,"Topic_consumer_refContext")}constructor(e,t){super(e,t)}an_id_pure(){return this.getRuleContext(0,Xh)}get ruleIndex(){return rs.RULE_topic_consumer_ref}accept(e){return e.visitTopic_consumer_ref?e.visitTopic_consumer_ref(this):e.visitChildren(this)}},sh=class extends W{static{Si(this,"Null_treatmentContext")}constructor(e,t){super(e,t)}RESPECT(){return this.getToken(rs.RESPECT,0)}NULLS(){return this.getToken(rs.NULLS,0)}IGNORE(){return this.getToken(rs.IGNORE,0)}get ruleIndex(){return rs.RULE_null_treatment}accept(e){return e.visitNull_treatment?e.visitNull_treatment(this):e.visitChildren(this)}},nh=class extends W{static{Si(this,"Filter_clauseContext")}constructor(e,t){super(e,t)}FILTER(){return this.getToken(rs.FILTER,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}where_expr(){return this.getRuleContext(0,Ld)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_filter_clause}accept(e){return e.visitFilter_clause?e.visitFilter_clause(this):e.visitChildren(this)}},rh=class extends W{static{Si(this,"Window_name_or_specificationContext")}constructor(e,t){super(e,t)}window_name(){return this.getRuleContext(0,oh)}window_specification(){return this.getRuleContext(0,dh)}get ruleIndex(){return rs.RULE_window_name_or_specification}accept(e){return e.visitWindow_name_or_specification?e.visitWindow_name_or_specification(this):e.visitChildren(this)}},oh=class extends W{static{Si(this,"Window_nameContext")}constructor(e,t){super(e,t)}an_id_window(){return this.getRuleContext(0,Yh)}get ruleIndex(){return rs.RULE_window_name}accept(e){return e.visitWindow_name?e.visitWindow_name(this):e.visitChildren(this)}},ah=class extends W{static{Si(this,"Window_clauseContext")}constructor(e,t){super(e,t)}WINDOW(){return this.getToken(rs.WINDOW,0)}window_definition_list(){return this.getRuleContext(0,ch)}get ruleIndex(){return rs.RULE_window_clause}accept(e){return e.visitWindow_clause?e.visitWindow_clause(this):e.visitChildren(this)}},ch=class extends W{static{Si(this,"Window_definition_listContext")}constructor(e,t){super(e,t)}window_definition(e){return void 0===e?this.getRuleContexts(lh):this.getRuleContext(e,lh)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_window_definition_list}accept(e){return e.visitWindow_definition_list?e.visitWindow_definition_list(this):e.visitChildren(this)}},lh=class extends W{static{Si(this,"Window_definitionContext")}constructor(e,t){super(e,t)}new_window_name(){return this.getRuleContext(0,hh)}AS(){return this.getToken(rs.AS,0)}window_specification(){return this.getRuleContext(0,dh)}get ruleIndex(){return rs.RULE_window_definition}accept(e){return e.visitWindow_definition?e.visitWindow_definition(this):e.visitChildren(this)}},hh=class extends W{static{Si(this,"New_window_nameContext")}constructor(e,t){super(e,t)}window_name(){return this.getRuleContext(0,oh)}get ruleIndex(){return rs.RULE_new_window_name}accept(e){return e.visitNew_window_name?e.visitNew_window_name(this):e.visitChildren(this)}},dh=class extends W{static{Si(this,"Window_specificationContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}window_specification_details(){return this.getRuleContext(0,uh)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_window_specification}accept(e){return e.visitWindow_specification?e.visitWindow_specification(this):e.visitChildren(this)}},uh=class extends W{static{Si(this,"Window_specification_detailsContext")}constructor(e,t){super(e,t)}existing_window_name(){return this.getRuleContext(0,gh)}window_partition_clause(){return this.getRuleContext(0,ph)}window_order_clause(){return this.getRuleContext(0,mh)}window_frame_clause(){return this.getRuleContext(0,fh)}get ruleIndex(){return rs.RULE_window_specification_details}accept(e){return e.visitWindow_specification_details?e.visitWindow_specification_details(this):e.visitChildren(this)}},gh=class extends W{static{Si(this,"Existing_window_nameContext")}constructor(e,t){super(e,t)}window_name(){return this.getRuleContext(0,oh)}get ruleIndex(){return rs.RULE_existing_window_name}accept(e){return e.visitExisting_window_name?e.visitExisting_window_name(this):e.visitChildren(this)}},ph=class extends W{static{Si(this,"Window_partition_clauseContext")}constructor(e,t){super(e,t)}PARTITION(){return this.getToken(rs.PARTITION,0)}BY(){return this.getToken(rs.BY,0)}named_expr_list(){return this.getRuleContext(0,vn)}COMPACT(){return this.getToken(rs.COMPACT,0)}get ruleIndex(){return rs.RULE_window_partition_clause}accept(e){return e.visitWindow_partition_clause?e.visitWindow_partition_clause(this):e.visitChildren(this)}},mh=class extends W{static{Si(this,"Window_order_clauseContext")}constructor(e,t){super(e,t)}order_by_clause(){return this.getRuleContext(0,io)}get ruleIndex(){return rs.RULE_window_order_clause}accept(e){return e.visitWindow_order_clause?e.visitWindow_order_clause(this):e.visitChildren(this)}},fh=class extends W{static{Si(this,"Window_frame_clauseContext")}constructor(e,t){super(e,t)}window_frame_units(){return this.getRuleContext(0,_h)}window_frame_extent(){return this.getRuleContext(0,vh)}window_frame_exclusion(){return this.getRuleContext(0,bh)}get ruleIndex(){return rs.RULE_window_frame_clause}accept(e){return e.visitWindow_frame_clause?e.visitWindow_frame_clause(this):e.visitChildren(this)}},_h=class extends W{static{Si(this,"Window_frame_unitsContext")}constructor(e,t){super(e,t)}ROWS(){return this.getToken(rs.ROWS,0)}RANGE(){return this.getToken(rs.RANGE,0)}GROUPS(){return this.getToken(rs.GROUPS,0)}get ruleIndex(){return rs.RULE_window_frame_units}accept(e){return e.visitWindow_frame_units?e.visitWindow_frame_units(this):e.visitChildren(this)}},vh=class extends W{static{Si(this,"Window_frame_extentContext")}constructor(e,t){super(e,t)}window_frame_bound(){return this.getRuleContext(0,Eh)}window_frame_between(){return this.getRuleContext(0,Ch)}get ruleIndex(){return rs.RULE_window_frame_extent}accept(e){return e.visitWindow_frame_extent?e.visitWindow_frame_extent(this):e.visitChildren(this)}},Ch=class extends W{static{Si(this,"Window_frame_betweenContext")}constructor(e,t){super(e,t)}BETWEEN(){return this.getToken(rs.BETWEEN,0)}window_frame_bound(e){return void 0===e?this.getRuleContexts(Eh):this.getRuleContext(e,Eh)}AND(){return this.getToken(rs.AND,0)}get ruleIndex(){return rs.RULE_window_frame_between}accept(e){return e.visitWindow_frame_between?e.visitWindow_frame_between(this):e.visitChildren(this)}},Eh=class extends W{static{Si(this,"Window_frame_boundContext")}constructor(e,t){super(e,t)}CURRENT(){return this.getToken(rs.CURRENT,0)}ROW(){return this.getToken(rs.ROW,0)}PRECEDING(){return this.getToken(rs.PRECEDING,0)}FOLLOWING(){return this.getToken(rs.FOLLOWING,0)}expr(){return this.getRuleContext(0,gs)}UNBOUNDED(){return this.getToken(rs.UNBOUNDED,0)}get ruleIndex(){return rs.RULE_window_frame_bound}accept(e){return e.visitWindow_frame_bound?e.visitWindow_frame_bound(this):e.visitChildren(this)}},bh=class extends W{static{Si(this,"Window_frame_exclusionContext")}constructor(e,t){super(e,t)}EXCLUDE(){return this.getToken(rs.EXCLUDE,0)}CURRENT(){return this.getToken(rs.CURRENT,0)}ROW(){return this.getToken(rs.ROW,0)}GROUP(){return this.getToken(rs.GROUP,0)}TIES(){return this.getToken(rs.TIES,0)}NO(){return this.getToken(rs.NO,0)}OTHERS(){return this.getToken(rs.OTHERS,0)}get ruleIndex(){return rs.RULE_window_frame_exclusion}accept(e){return e.visitWindow_frame_exclusion?e.visitWindow_frame_exclusion(this):e.visitChildren(this)}},Sh=class extends W{static{Si(this,"Use_stmtContext")}constructor(e,t){super(e,t)}USE(){return this.getToken(rs.USE,0)}cluster_expr(){return this.getRuleContext(0,td)}get ruleIndex(){return rs.RULE_use_stmt}accept(e){return e.visitUse_stmt?e.visitUse_stmt(this):e.visitChildren(this)}},yh=class extends W{static{Si(this,"Subselect_stmtContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}select_stmt(){return this.getRuleContext(0,mr)}RPAREN(){return this.getToken(rs.RPAREN,0)}select_unparenthesized_stmt(){return this.getRuleContext(0,fr)}get ruleIndex(){return rs.RULE_subselect_stmt}accept(e){return e.visitSubselect_stmt?e.visitSubselect_stmt(this):e.visitChildren(this)}},wh=class extends W{static{Si(this,"Named_nodes_stmtContext")}constructor(e,t){super(e,t)}bind_parameter_list(){return this.getRuleContext(0,Tn)}EQUALS(){return this.getToken(rs.EQUALS,0)}expr(){return this.getRuleContext(0,gs)}subselect_stmt(){return this.getRuleContext(0,yh)}get ruleIndex(){return rs.RULE_named_nodes_stmt}accept(e){return e.visitNamed_nodes_stmt?e.visitNamed_nodes_stmt(this):e.visitChildren(this)}},Rh=class extends W{static{Si(this,"Commit_stmtContext")}constructor(e,t){super(e,t)}COMMIT(){return this.getToken(rs.COMMIT,0)}get ruleIndex(){return rs.RULE_commit_stmt}accept(e){return e.visitCommit_stmt?e.visitCommit_stmt(this):e.visitChildren(this)}},Lh=class extends W{static{Si(this,"Rollback_stmtContext")}constructor(e,t){super(e,t)}ROLLBACK(){return this.getToken(rs.ROLLBACK,0)}get ruleIndex(){return rs.RULE_rollback_stmt}accept(e){return e.visitRollback_stmt?e.visitRollback_stmt(this):e.visitChildren(this)}},Th=class extends W{static{Si(this,"Analyze_tableContext")}constructor(e,t){super(e,t)}simple_table_ref(){return this.getRuleContext(0,Sl)}LPAREN(){return this.getToken(rs.LPAREN,0)}column_list(){return this.getRuleContext(0,mn)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_analyze_table}accept(e){return e.visitAnalyze_table?e.visitAnalyze_table(this):e.visitChildren(this)}},xh=class extends W{static{Si(this,"Analyze_table_listContext")}constructor(e,t){super(e,t)}analyze_table(e){return void 0===e?this.getRuleContexts(Th):this.getRuleContext(e,Th)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_analyze_table_list}accept(e){return e.visitAnalyze_table_list?e.visitAnalyze_table_list(this):e.visitChildren(this)}},kh=class extends W{static{Si(this,"Analyze_stmtContext")}constructor(e,t){super(e,t)}ANALYZE(){return this.getToken(rs.ANALYZE,0)}analyze_table_list(){return this.getRuleContext(0,xh)}get ruleIndex(){return rs.RULE_analyze_stmt}accept(e){return e.visitAnalyze_stmt?e.visitAnalyze_stmt(this):e.visitChildren(this)}},Ah=class extends W{static{Si(this,"Alter_sequence_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}SEQUENCE(){return this.getToken(rs.SEQUENCE,0)}object_ref(){return this.getRuleContext(0,El)}IF(){return this.getToken(rs.IF,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}alter_sequence_action(e){return void 0===e?this.getRuleContexts(Nh):this.getRuleContext(e,Nh)}get ruleIndex(){return rs.RULE_alter_sequence_stmt}accept(e){return e.visitAlter_sequence_stmt?e.visitAlter_sequence_stmt(this):e.visitChildren(this)}},Nh=class extends W{static{Si(this,"Alter_sequence_actionContext")}constructor(e,t){super(e,t)}START(){return this.getToken(rs.START,0)}integer(){return this.getRuleContext(0,Ed)}WITH(){return this.getToken(rs.WITH,0)}RESTART(){return this.getToken(rs.RESTART,0)}INCREMENT(){return this.getToken(rs.INCREMENT,0)}BY(){return this.getToken(rs.BY,0)}get ruleIndex(){return rs.RULE_alter_sequence_action}accept(e){return e.visitAlter_sequence_action?e.visitAlter_sequence_action(this):e.visitChildren(this)}},Ih=class extends W{static{Si(this,"IdentifierContext")}constructor(e,t){super(e,t)}ID_PLAIN(){return this.getToken(rs.ID_PLAIN,0)}ID_QUOTED(){return this.getToken(rs.ID_QUOTED,0)}get ruleIndex(){return rs.RULE_identifier}accept(e){return e.visitIdentifier?e.visitIdentifier(this):e.visitChildren(this)}},Oh=class extends W{static{Si(this,"IdContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,Ih)}keyword(){return this.getRuleContext(0,ad)}get ruleIndex(){return rs.RULE_id}accept(e){return e.visitId?e.visitId(this):e.visitChildren(this)}},Dh=class extends W{static{Si(this,"Id_schemaContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,Ih)}keyword_compat(){return this.getRuleContext(0,fd)}keyword_expr_uncompat(){return this.getRuleContext(0,cd)}keyword_select_uncompat(){return this.getRuleContext(0,hd)}keyword_in_uncompat(){return this.getRuleContext(0,ud)}keyword_window_uncompat(){return this.getRuleContext(0,gd)}keyword_hint_uncompat(){return this.getRuleContext(0,pd)}get ruleIndex(){return rs.RULE_id_schema}accept(e){return e.visitId_schema?e.visitId_schema(this):e.visitChildren(this)}},Mh=class extends W{static{Si(this,"Id_exprContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,Ih)}keyword_compat(){return this.getRuleContext(0,fd)}keyword_alter_uncompat(){return this.getRuleContext(0,dd)}keyword_in_uncompat(){return this.getRuleContext(0,ud)}keyword_window_uncompat(){return this.getRuleContext(0,gd)}keyword_hint_uncompat(){return this.getRuleContext(0,pd)}get ruleIndex(){return rs.RULE_id_expr}accept(e){return e.visitId_expr?e.visitId_expr(this):e.visitChildren(this)}},Ph=class extends W{static{Si(this,"Id_expr_inContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,Ih)}keyword_compat(){return this.getRuleContext(0,fd)}keyword_alter_uncompat(){return this.getRuleContext(0,dd)}keyword_window_uncompat(){return this.getRuleContext(0,gd)}keyword_hint_uncompat(){return this.getRuleContext(0,pd)}get ruleIndex(){return rs.RULE_id_expr_in}accept(e){return e.visitId_expr_in?e.visitId_expr_in(this):e.visitChildren(this)}},Fh=class extends W{static{Si(this,"Id_windowContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,Ih)}keyword_compat(){return this.getRuleContext(0,fd)}keyword_expr_uncompat(){return this.getRuleContext(0,cd)}keyword_table_uncompat(){return this.getRuleContext(0,ld)}keyword_select_uncompat(){return this.getRuleContext(0,hd)}keyword_alter_uncompat(){return this.getRuleContext(0,dd)}keyword_in_uncompat(){return this.getRuleContext(0,ud)}keyword_hint_uncompat(){return this.getRuleContext(0,pd)}get ruleIndex(){return rs.RULE_id_window}accept(e){return e.visitId_window?e.visitId_window(this):e.visitChildren(this)}},Uh=class extends W{static{Si(this,"Id_tableContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,Ih)}keyword_compat(){return this.getRuleContext(0,fd)}keyword_expr_uncompat(){return this.getRuleContext(0,cd)}keyword_select_uncompat(){return this.getRuleContext(0,hd)}keyword_in_uncompat(){return this.getRuleContext(0,ud)}keyword_window_uncompat(){return this.getRuleContext(0,gd)}keyword_hint_uncompat(){return this.getRuleContext(0,pd)}get ruleIndex(){return rs.RULE_id_table}accept(e){return e.visitId_table?e.visitId_table(this):e.visitChildren(this)}},Hh=class extends W{static{Si(this,"Id_withoutContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,Ih)}keyword_compat(){return this.getRuleContext(0,fd)}keyword_table_uncompat(){return this.getRuleContext(0,ld)}keyword_alter_uncompat(){return this.getRuleContext(0,dd)}keyword_in_uncompat(){return this.getRuleContext(0,ud)}keyword_window_uncompat(){return this.getRuleContext(0,gd)}keyword_hint_uncompat(){return this.getRuleContext(0,pd)}get ruleIndex(){return rs.RULE_id_without}accept(e){return e.visitId_without?e.visitId_without(this):e.visitChildren(this)}},Bh=class extends W{static{Si(this,"Id_hintContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,Ih)}keyword_compat(){return this.getRuleContext(0,fd)}keyword_expr_uncompat(){return this.getRuleContext(0,cd)}keyword_table_uncompat(){return this.getRuleContext(0,ld)}keyword_select_uncompat(){return this.getRuleContext(0,hd)}keyword_alter_uncompat(){return this.getRuleContext(0,dd)}keyword_in_uncompat(){return this.getRuleContext(0,ud)}keyword_window_uncompat(){return this.getRuleContext(0,gd)}get ruleIndex(){return rs.RULE_id_hint}accept(e){return e.visitId_hint?e.visitId_hint(this):e.visitChildren(this)}},Wh=class extends W{static{Si(this,"Id_as_compatContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,Ih)}keyword_as_compat(){return this.getRuleContext(0,md)}get ruleIndex(){return rs.RULE_id_as_compat}accept(e){return e.visitId_as_compat?e.visitId_as_compat(this):e.visitChildren(this)}},Vh=class extends W{static{Si(this,"An_idContext")}constructor(e,t){super(e,t)}id(){return this.getRuleContext(0,Oh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_an_id}accept(e){return e.visitAn_id?e.visitAn_id(this):e.visitChildren(this)}},zh=class extends W{static{Si(this,"An_id_or_typeContext")}constructor(e,t){super(e,t)}id_or_type(){return this.getRuleContext(0,id)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_an_id_or_type}accept(e){return e.visitAn_id_or_type?e.visitAn_id_or_type(this):e.visitChildren(this)}},Gh=class extends W{static{Si(this,"An_id_schemaContext")}constructor(e,t){super(e,t)}id_schema(){return this.getRuleContext(0,Dh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_an_id_schema}accept(e){return e.visitAn_id_schema?e.visitAn_id_schema(this):e.visitChildren(this)}},jh=class extends W{static{Si(this,"An_id_exprContext")}constructor(e,t){super(e,t)}id_expr(){return this.getRuleContext(0,Mh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_an_id_expr}accept(e){return e.visitAn_id_expr?e.visitAn_id_expr(this):e.visitChildren(this)}},Kh=class extends W{static{Si(this,"An_id_expr_inContext")}constructor(e,t){super(e,t)}id_expr_in(){return this.getRuleContext(0,Ph)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_an_id_expr_in}accept(e){return e.visitAn_id_expr_in?e.visitAn_id_expr_in(this):e.visitChildren(this)}},Yh=class extends W{static{Si(this,"An_id_windowContext")}constructor(e,t){super(e,t)}id_window(){return this.getRuleContext(0,Fh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_an_id_window}accept(e){return e.visitAn_id_window?e.visitAn_id_window(this):e.visitChildren(this)}},qh=class extends W{static{Si(this,"An_id_tableContext")}constructor(e,t){super(e,t)}id_table(){return this.getRuleContext(0,Uh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_an_id_table}accept(e){return e.visitAn_id_table?e.visitAn_id_table(this):e.visitChildren(this)}},$h=class extends W{static{Si(this,"An_id_withoutContext")}constructor(e,t){super(e,t)}id_without(){return this.getRuleContext(0,Hh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_an_id_without}accept(e){return e.visitAn_id_without?e.visitAn_id_without(this):e.visitChildren(this)}},Qh=class extends W{static{Si(this,"An_id_hintContext")}constructor(e,t){super(e,t)}id_hint(){return this.getRuleContext(0,Bh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_an_id_hint}accept(e){return e.visitAn_id_hint?e.visitAn_id_hint(this):e.visitChildren(this)}},Xh=class extends W{static{Si(this,"An_id_pureContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,Ih)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_an_id_pure}accept(e){return e.visitAn_id_pure?e.visitAn_id_pure(this):e.visitChildren(this)}},Zh=class extends W{static{Si(this,"An_id_as_compatContext")}constructor(e,t){super(e,t)}id_as_compat(){return this.getRuleContext(0,Wh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_an_id_as_compat}accept(e){return e.visitAn_id_as_compat?e.visitAn_id_as_compat(this):e.visitChildren(this)}},Jh=class extends W{static{Si(this,"View_nameContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}PRIMARY(){return this.getToken(rs.PRIMARY,0)}KEY(){return this.getToken(rs.KEY,0)}get ruleIndex(){return rs.RULE_view_name}accept(e){return e.visitView_name?e.visitView_name(this):e.visitChildren(this)}},ed=class extends W{static{Si(this,"Opt_id_prefixContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}DOT(){return this.getToken(rs.DOT,0)}get ruleIndex(){return rs.RULE_opt_id_prefix}accept(e){return e.visitOpt_id_prefix?e.visitOpt_id_prefix(this):e.visitChildren(this)}},td=class extends W{static{Si(this,"Cluster_exprContext")}constructor(e,t){super(e,t)}pure_column_or_named(){return this.getRuleContext(0,dn)}ASTERISK(){return this.getToken(rs.ASTERISK,0)}an_id(){return this.getRuleContext(0,Vh)}COLON(){return this.getToken(rs.COLON,0)}get ruleIndex(){return rs.RULE_cluster_expr}accept(e){return e.visitCluster_expr?e.visitCluster_expr(this):e.visitChildren(this)}},id=class extends W{static{Si(this,"Id_or_typeContext")}constructor(e,t){super(e,t)}id(){return this.getRuleContext(0,Oh)}type_id(){return this.getRuleContext(0,_d)}get ruleIndex(){return rs.RULE_id_or_type}accept(e){return e.visitId_or_type?e.visitId_or_type(this):e.visitChildren(this)}},sd=class extends W{static{Si(this,"Opt_id_prefix_or_typeContext")}constructor(e,t){super(e,t)}an_id_or_type(){return this.getRuleContext(0,zh)}DOT(){return this.getToken(rs.DOT,0)}get ruleIndex(){return rs.RULE_opt_id_prefix_or_type}accept(e){return e.visitOpt_id_prefix_or_type?e.visitOpt_id_prefix_or_type(this):e.visitChildren(this)}},nd=class extends W{static{Si(this,"Id_or_atContext")}constructor(e,t){super(e,t)}an_id_or_type(){return this.getRuleContext(0,zh)}COMMAT(){return this.getToken(rs.COMMAT,0)}get ruleIndex(){return rs.RULE_id_or_at}accept(e){return e.visitId_or_at?e.visitId_or_at(this):e.visitChildren(this)}},rd=class extends W{static{Si(this,"Id_table_or_typeContext")}constructor(e,t){super(e,t)}an_id_table(){return this.getRuleContext(0,qh)}type_id(){return this.getRuleContext(0,_d)}get ruleIndex(){return rs.RULE_id_table_or_type}accept(e){return e.visitId_table_or_type?e.visitId_table_or_type(this):e.visitChildren(this)}},od=class extends W{static{Si(this,"Id_table_or_atContext")}constructor(e,t){super(e,t)}id_table_or_type(){return this.getRuleContext(0,rd)}COMMAT(){return this.getToken(rs.COMMAT,0)}get ruleIndex(){return rs.RULE_id_table_or_at}accept(e){return e.visitId_table_or_at?e.visitId_table_or_at(this):e.visitChildren(this)}},ad=class extends W{static{Si(this,"KeywordContext")}constructor(e,t){super(e,t)}keyword_compat(){return this.getRuleContext(0,fd)}keyword_expr_uncompat(){return this.getRuleContext(0,cd)}keyword_table_uncompat(){return this.getRuleContext(0,ld)}keyword_select_uncompat(){return this.getRuleContext(0,hd)}keyword_alter_uncompat(){return this.getRuleContext(0,dd)}keyword_in_uncompat(){return this.getRuleContext(0,ud)}keyword_window_uncompat(){return this.getRuleContext(0,gd)}keyword_hint_uncompat(){return this.getRuleContext(0,pd)}get ruleIndex(){return rs.RULE_keyword}accept(e){return e.visitKeyword?e.visitKeyword(this):e.visitChildren(this)}},cd=class extends W{static{Si(this,"Keyword_expr_uncompatContext")}constructor(e,t){super(e,t)}ASYMMETRIC(){return this.getToken(rs.ASYMMETRIC,0)}BETWEEN(){return this.getToken(rs.BETWEEN,0)}BITCAST(){return this.getToken(rs.BITCAST,0)}CASE(){return this.getToken(rs.CASE,0)}CAST(){return this.getToken(rs.CAST,0)}CUBE(){return this.getToken(rs.CUBE,0)}CURRENT_DATE(){return this.getToken(rs.CURRENT_DATE,0)}CURRENT_TIME(){return this.getToken(rs.CURRENT_TIME,0)}CURRENT_TIMESTAMP(){return this.getToken(rs.CURRENT_TIMESTAMP,0)}EMPTY_ACTION(){return this.getToken(rs.EMPTY_ACTION,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}FROM(){return this.getToken(rs.FROM,0)}FULL(){return this.getToken(rs.FULL,0)}HOP(){return this.getToken(rs.HOP,0)}JSON_EXISTS(){return this.getToken(rs.JSON_EXISTS,0)}JSON_VALUE(){return this.getToken(rs.JSON_VALUE,0)}JSON_QUERY(){return this.getToken(rs.JSON_QUERY,0)}NOT(){return this.getToken(rs.NOT,0)}NULL(){return this.getToken(rs.NULL,0)}PROCESS(){return this.getToken(rs.PROCESS,0)}REDUCE(){return this.getToken(rs.REDUCE,0)}RETURN(){return this.getToken(rs.RETURN,0)}RETURNING(){return this.getToken(rs.RETURNING,0)}ROLLUP(){return this.getToken(rs.ROLLUP,0)}SELECT(){return this.getToken(rs.SELECT,0)}SYMMETRIC(){return this.getToken(rs.SYMMETRIC,0)}UNBOUNDED(){return this.getToken(rs.UNBOUNDED,0)}WHEN(){return this.getToken(rs.WHEN,0)}WHERE(){return this.getToken(rs.WHERE,0)}get ruleIndex(){return rs.RULE_keyword_expr_uncompat}accept(e){return e.visitKeyword_expr_uncompat?e.visitKeyword_expr_uncompat(this):e.visitChildren(this)}},ld=class extends W{static{Si(this,"Keyword_table_uncompatContext")}constructor(e,t){super(e,t)}ANY(){return this.getToken(rs.ANY,0)}ERASE(){return this.getToken(rs.ERASE,0)}STREAM(){return this.getToken(rs.STREAM,0)}get ruleIndex(){return rs.RULE_keyword_table_uncompat}accept(e){return e.visitKeyword_table_uncompat?e.visitKeyword_table_uncompat(this):e.visitChildren(this)}},hd=class extends W{static{Si(this,"Keyword_select_uncompatContext")}constructor(e,t){super(e,t)}ALL(){return this.getToken(rs.ALL,0)}AS(){return this.getToken(rs.AS,0)}ASSUME(){return this.getToken(rs.ASSUME,0)}DISTINCT(){return this.getToken(rs.DISTINCT,0)}EXCEPT(){return this.getToken(rs.EXCEPT,0)}HAVING(){return this.getToken(rs.HAVING,0)}INTERSECT(){return this.getToken(rs.INTERSECT,0)}LIMIT(){return this.getToken(rs.LIMIT,0)}UNION(){return this.getToken(rs.UNION,0)}WINDOW(){return this.getToken(rs.WINDOW,0)}WITHOUT(){return this.getToken(rs.WITHOUT,0)}get ruleIndex(){return rs.RULE_keyword_select_uncompat}accept(e){return e.visitKeyword_select_uncompat?e.visitKeyword_select_uncompat(this):e.visitChildren(this)}},dd=class extends W{static{Si(this,"Keyword_alter_uncompatContext")}constructor(e,t){super(e,t)}COLUMN(){return this.getToken(rs.COLUMN,0)}get ruleIndex(){return rs.RULE_keyword_alter_uncompat}accept(e){return e.visitKeyword_alter_uncompat?e.visitKeyword_alter_uncompat(this):e.visitChildren(this)}},ud=class extends W{static{Si(this,"Keyword_in_uncompatContext")}constructor(e,t){super(e,t)}COMPACT(){return this.getToken(rs.COMPACT,0)}get ruleIndex(){return rs.RULE_keyword_in_uncompat}accept(e){return e.visitKeyword_in_uncompat?e.visitKeyword_in_uncompat(this):e.visitChildren(this)}},gd=class extends W{static{Si(this,"Keyword_window_uncompatContext")}constructor(e,t){super(e,t)}GROUPS(){return this.getToken(rs.GROUPS,0)}RANGE(){return this.getToken(rs.RANGE,0)}ROWS(){return this.getToken(rs.ROWS,0)}get ruleIndex(){return rs.RULE_keyword_window_uncompat}accept(e){return e.visitKeyword_window_uncompat?e.visitKeyword_window_uncompat(this):e.visitChildren(this)}},pd=class extends W{static{Si(this,"Keyword_hint_uncompatContext")}constructor(e,t){super(e,t)}SCHEMA(){return this.getToken(rs.SCHEMA,0)}COLUMNS(){return this.getToken(rs.COLUMNS,0)}get ruleIndex(){return rs.RULE_keyword_hint_uncompat}accept(e){return e.visitKeyword_hint_uncompat?e.visitKeyword_hint_uncompat(this):e.visitChildren(this)}},md=class extends W{static{Si(this,"Keyword_as_compatContext")}constructor(e,t){super(e,t)}ABORT(){return this.getToken(rs.ABORT,0)}ACTION(){return this.getToken(rs.ACTION,0)}ADD(){return this.getToken(rs.ADD,0)}AFTER(){return this.getToken(rs.AFTER,0)}ALTER(){return this.getToken(rs.ALTER,0)}ANALYZE(){return this.getToken(rs.ANALYZE,0)}AND(){return this.getToken(rs.AND,0)}ANSI(){return this.getToken(rs.ANSI,0)}ARRAY(){return this.getToken(rs.ARRAY,0)}ASC(){return this.getToken(rs.ASC,0)}ASYNC(){return this.getToken(rs.ASYNC,0)}AT(){return this.getToken(rs.AT,0)}ATTACH(){return this.getToken(rs.ATTACH,0)}ATTRIBUTES(){return this.getToken(rs.ATTRIBUTES,0)}AUTOINCREMENT(){return this.getToken(rs.AUTOINCREMENT,0)}BACKUP(){return this.getToken(rs.BACKUP,0)}BATCH(){return this.getToken(rs.BATCH,0)}BEFORE(){return this.getToken(rs.BEFORE,0)}BEGIN(){return this.getToken(rs.BEGIN,0)}BERNOULLI(){return this.getToken(rs.BERNOULLI,0)}BY(){return this.getToken(rs.BY,0)}CASCADE(){return this.getToken(rs.CASCADE,0)}CHANGEFEED(){return this.getToken(rs.CHANGEFEED,0)}CHECK(){return this.getToken(rs.CHECK,0)}CLASSIFIER(){return this.getToken(rs.CLASSIFIER,0)}COLLECTION(){return this.getToken(rs.COLLECTION,0)}COMMIT(){return this.getToken(rs.COMMIT,0)}CONDITIONAL(){return this.getToken(rs.CONDITIONAL,0)}CONFLICT(){return this.getToken(rs.CONFLICT,0)}CONNECT(){return this.getToken(rs.CONNECT,0)}CONSTRAINT(){return this.getToken(rs.CONSTRAINT,0)}CONSUMER(){return this.getToken(rs.CONSUMER,0)}COVER(){return this.getToken(rs.COVER,0)}CREATE(){return this.getToken(rs.CREATE,0)}CURRENT(){return this.getToken(rs.CURRENT,0)}DATA(){return this.getToken(rs.DATA,0)}DATABASE(){return this.getToken(rs.DATABASE,0)}DECIMAL(){return this.getToken(rs.DECIMAL,0)}DECLARE(){return this.getToken(rs.DECLARE,0)}DEFAULT(){return this.getToken(rs.DEFAULT,0)}DEFERRABLE(){return this.getToken(rs.DEFERRABLE,0)}DEFERRED(){return this.getToken(rs.DEFERRED,0)}DELETE(){return this.getToken(rs.DELETE,0)}DESC(){return this.getToken(rs.DESC,0)}DESCRIBE(){return this.getToken(rs.DESCRIBE,0)}DETACH(){return this.getToken(rs.DETACH,0)}DIRECTORY(){return this.getToken(rs.DIRECTORY,0)}DISABLE(){return this.getToken(rs.DISABLE,0)}DISCARD(){return this.getToken(rs.DISCARD,0)}DROP(){return this.getToken(rs.DROP,0)}EACH(){return this.getToken(rs.EACH,0)}ELSE(){return this.getToken(rs.ELSE,0)}EMPTY(){return this.getToken(rs.EMPTY,0)}ENCRYPTED(){return this.getToken(rs.ENCRYPTED,0)}END(){return this.getToken(rs.END,0)}ERROR(){return this.getToken(rs.ERROR,0)}ESCAPE(){return this.getToken(rs.ESCAPE,0)}EVALUATE(){return this.getToken(rs.EVALUATE,0)}EXCLUDE(){return this.getToken(rs.EXCLUDE,0)}EXCLUSIVE(){return this.getToken(rs.EXCLUSIVE,0)}EXPLAIN(){return this.getToken(rs.EXPLAIN,0)}EXPORT(){return this.getToken(rs.EXPORT,0)}EXTERNAL(){return this.getToken(rs.EXTERNAL,0)}FAIL(){return this.getToken(rs.FAIL,0)}FAMILY(){return this.getToken(rs.FAMILY,0)}FILTER(){return this.getToken(rs.FILTER,0)}FIRST(){return this.getToken(rs.FIRST,0)}FLATTEN(){return this.getToken(rs.FLATTEN,0)}FOLLOWING(){return this.getToken(rs.FOLLOWING,0)}FOR(){return this.getToken(rs.FOR,0)}FOREIGN(){return this.getToken(rs.FOREIGN,0)}FUNCTION(){return this.getToken(rs.FUNCTION,0)}GLOB(){return this.getToken(rs.GLOB,0)}GLOBAL(){return this.getToken(rs.GLOBAL,0)}GRANT(){return this.getToken(rs.GRANT,0)}GROUP(){return this.getToken(rs.GROUP,0)}GROUPING(){return this.getToken(rs.GROUPING,0)}HASH(){return this.getToken(rs.HASH,0)}IF(){return this.getToken(rs.IF,0)}IGNORE(){return this.getToken(rs.IGNORE,0)}ILIKE(){return this.getToken(rs.ILIKE,0)}IMMEDIATE(){return this.getToken(rs.IMMEDIATE,0)}IMPORT(){return this.getToken(rs.IMPORT,0)}IN(){return this.getToken(rs.IN,0)}INCREMENT(){return this.getToken(rs.INCREMENT,0)}INCREMENTAL(){return this.getToken(rs.INCREMENTAL,0)}INDEX(){return this.getToken(rs.INDEX,0)}INDEXED(){return this.getToken(rs.INDEXED,0)}INHERITS(){return this.getToken(rs.INHERITS,0)}INITIAL(){return this.getToken(rs.INITIAL,0)}INITIALLY(){return this.getToken(rs.INITIALLY,0)}INSERT(){return this.getToken(rs.INSERT,0)}INSTEAD(){return this.getToken(rs.INSTEAD,0)}INTO(){return this.getToken(rs.INTO,0)}IS(){return this.getToken(rs.IS,0)}LAST(){return this.getToken(rs.LAST,0)}LEGACY(){return this.getToken(rs.LEGACY,0)}LIKE(){return this.getToken(rs.LIKE,0)}LOCAL(){return this.getToken(rs.LOCAL,0)}LOGIN(){return this.getToken(rs.LOGIN,0)}MANAGE(){return this.getToken(rs.MANAGE,0)}MATCH(){return this.getToken(rs.MATCH,0)}MATCHES(){return this.getToken(rs.MATCHES,0)}MATCH_RECOGNIZE(){return this.getToken(rs.MATCH_RECOGNIZE,0)}MEASURES(){return this.getToken(rs.MEASURES,0)}MICROSECONDS(){return this.getToken(rs.MICROSECONDS,0)}MILLISECONDS(){return this.getToken(rs.MILLISECONDS,0)}MODIFY(){return this.getToken(rs.MODIFY,0)}NANOSECONDS(){return this.getToken(rs.NANOSECONDS,0)}NEXT(){return this.getToken(rs.NEXT,0)}NO(){return this.getToken(rs.NO,0)}NOLOGIN(){return this.getToken(rs.NOLOGIN,0)}NULLS(){return this.getToken(rs.NULLS,0)}OBJECT(){return this.getToken(rs.OBJECT,0)}OF(){return this.getToken(rs.OF,0)}OFFSET(){return this.getToken(rs.OFFSET,0)}OMIT(){return this.getToken(rs.OMIT,0)}ONE(){return this.getToken(rs.ONE,0)}ONLY(){return this.getToken(rs.ONLY,0)}OPTION(){return this.getToken(rs.OPTION,0)}OR(){return this.getToken(rs.OR,0)}OTHERS(){return this.getToken(rs.OTHERS,0)}PARALLEL(){return this.getToken(rs.PARALLEL,0)}PARTITION(){return this.getToken(rs.PARTITION,0)}PASSING(){return this.getToken(rs.PASSING,0)}PASSWORD(){return this.getToken(rs.PASSWORD,0)}PAST(){return this.getToken(rs.PAST,0)}PATTERN(){return this.getToken(rs.PATTERN,0)}PER(){return this.getToken(rs.PER,0)}PERMUTE(){return this.getToken(rs.PERMUTE,0)}PLAN(){return this.getToken(rs.PLAN,0)}POOL(){return this.getToken(rs.POOL,0)}PRAGMA(){return this.getToken(rs.PRAGMA,0)}PRECEDING(){return this.getToken(rs.PRECEDING,0)}PRIMARY(){return this.getToken(rs.PRIMARY,0)}PRIVILEGES(){return this.getToken(rs.PRIVILEGES,0)}QUERY(){return this.getToken(rs.QUERY,0)}QUEUE(){return this.getToken(rs.QUEUE,0)}RAISE(){return this.getToken(rs.RAISE,0)}REFERENCES(){return this.getToken(rs.REFERENCES,0)}REGEXP(){return this.getToken(rs.REGEXP,0)}REINDEX(){return this.getToken(rs.REINDEX,0)}RELEASE(){return this.getToken(rs.RELEASE,0)}REMOVE(){return this.getToken(rs.REMOVE,0)}RENAME(){return this.getToken(rs.RENAME,0)}REPLACE(){return this.getToken(rs.REPLACE,0)}REPLICATION(){return this.getToken(rs.REPLICATION,0)}RESET(){return this.getToken(rs.RESET,0)}RESPECT(){return this.getToken(rs.RESPECT,0)}RESTART(){return this.getToken(rs.RESTART,0)}RESTORE(){return this.getToken(rs.RESTORE,0)}RESTRICT(){return this.getToken(rs.RESTRICT,0)}REVERT(){return this.getToken(rs.REVERT,0)}REVOKE(){return this.getToken(rs.REVOKE,0)}RLIKE(){return this.getToken(rs.RLIKE,0)}ROLLBACK(){return this.getToken(rs.ROLLBACK,0)}ROW(){return this.getToken(rs.ROW,0)}SAVEPOINT(){return this.getToken(rs.SAVEPOINT,0)}SECONDS(){return this.getToken(rs.SECONDS,0)}SEEK(){return this.getToken(rs.SEEK,0)}SETS(){return this.getToken(rs.SETS,0)}SHOW(){return this.getToken(rs.SHOW,0)}TSKIP(){return this.getToken(rs.TSKIP,0)}SEQUENCE(){return this.getToken(rs.SEQUENCE,0)}SOURCE(){return this.getToken(rs.SOURCE,0)}START(){return this.getToken(rs.START,0)}SUBQUERY(){return this.getToken(rs.SUBQUERY,0)}SUBSET(){return this.getToken(rs.SUBSET,0)}SYMBOLS(){return this.getToken(rs.SYMBOLS,0)}SYNC(){return this.getToken(rs.SYNC,0)}SYSTEM(){return this.getToken(rs.SYSTEM,0)}TABLE(){return this.getToken(rs.TABLE,0)}TABLES(){return this.getToken(rs.TABLES,0)}TABLESAMPLE(){return this.getToken(rs.TABLESAMPLE,0)}TABLESTORE(){return this.getToken(rs.TABLESTORE,0)}TEMP(){return this.getToken(rs.TEMP,0)}TEMPORARY(){return this.getToken(rs.TEMPORARY,0)}THEN(){return this.getToken(rs.THEN,0)}TIES(){return this.getToken(rs.TIES,0)}TO(){return this.getToken(rs.TO,0)}TOPIC(){return this.getToken(rs.TOPIC,0)}TRANSACTION(){return this.getToken(rs.TRANSACTION,0)}TRANSFER(){return this.getToken(rs.TRANSFER,0)}TRIGGER(){return this.getToken(rs.TRIGGER,0)}TYPE(){return this.getToken(rs.TYPE,0)}UNCONDITIONAL(){return this.getToken(rs.UNCONDITIONAL,0)}UNIQUE(){return this.getToken(rs.UNIQUE,0)}UNKNOWN(){return this.getToken(rs.UNKNOWN,0)}UNMATCHED(){return this.getToken(rs.UNMATCHED,0)}UPDATE(){return this.getToken(rs.UPDATE,0)}UPSERT(){return this.getToken(rs.UPSERT,0)}USE(){return this.getToken(rs.USE,0)}USER(){return this.getToken(rs.USER,0)}VACUUM(){return this.getToken(rs.VACUUM,0)}VALUES(){return this.getToken(rs.VALUES,0)}VIRTUAL(){return this.getToken(rs.VIRTUAL,0)}WRAPPER(){return this.getToken(rs.WRAPPER,0)}XOR(){return this.getToken(rs.XOR,0)}get ruleIndex(){return rs.RULE_keyword_as_compat}accept(e){return e.visitKeyword_as_compat?e.visitKeyword_as_compat(this):e.visitChildren(this)}},fd=class extends W{static{Si(this,"Keyword_compatContext")}constructor(e,t){super(e,t)}ABORT(){return this.getToken(rs.ABORT,0)}ACTION(){return this.getToken(rs.ACTION,0)}ADD(){return this.getToken(rs.ADD,0)}AFTER(){return this.getToken(rs.AFTER,0)}ALTER(){return this.getToken(rs.ALTER,0)}ANALYZE(){return this.getToken(rs.ANALYZE,0)}AND(){return this.getToken(rs.AND,0)}ANSI(){return this.getToken(rs.ANSI,0)}ARRAY(){return this.getToken(rs.ARRAY,0)}ASC(){return this.getToken(rs.ASC,0)}ASYNC(){return this.getToken(rs.ASYNC,0)}AT(){return this.getToken(rs.AT,0)}ATTACH(){return this.getToken(rs.ATTACH,0)}ATTRIBUTES(){return this.getToken(rs.ATTRIBUTES,0)}AUTOINCREMENT(){return this.getToken(rs.AUTOINCREMENT,0)}BACKUP(){return this.getToken(rs.BACKUP,0)}BATCH(){return this.getToken(rs.BATCH,0)}BEFORE(){return this.getToken(rs.BEFORE,0)}BEGIN(){return this.getToken(rs.BEGIN,0)}BERNOULLI(){return this.getToken(rs.BERNOULLI,0)}BY(){return this.getToken(rs.BY,0)}CASCADE(){return this.getToken(rs.CASCADE,0)}CHANGEFEED(){return this.getToken(rs.CHANGEFEED,0)}CHECK(){return this.getToken(rs.CHECK,0)}CLASSIFIER(){return this.getToken(rs.CLASSIFIER,0)}COLLATE(){return this.getToken(rs.COLLATE,0)}COLLECTION(){return this.getToken(rs.COLLECTION,0)}COMMIT(){return this.getToken(rs.COMMIT,0)}CONDITIONAL(){return this.getToken(rs.CONDITIONAL,0)}CONFLICT(){return this.getToken(rs.CONFLICT,0)}CONNECT(){return this.getToken(rs.CONNECT,0)}CONSTRAINT(){return this.getToken(rs.CONSTRAINT,0)}CONSUMER(){return this.getToken(rs.CONSUMER,0)}COVER(){return this.getToken(rs.COVER,0)}CREATE(){return this.getToken(rs.CREATE,0)}CROSS(){return this.getToken(rs.CROSS,0)}CURRENT(){return this.getToken(rs.CURRENT,0)}DATA(){return this.getToken(rs.DATA,0)}DATABASE(){return this.getToken(rs.DATABASE,0)}DECIMAL(){return this.getToken(rs.DECIMAL,0)}DECLARE(){return this.getToken(rs.DECLARE,0)}DEFAULT(){return this.getToken(rs.DEFAULT,0)}DEFERRABLE(){return this.getToken(rs.DEFERRABLE,0)}DEFERRED(){return this.getToken(rs.DEFERRED,0)}DEFINE(){return this.getToken(rs.DEFINE,0)}DELETE(){return this.getToken(rs.DELETE,0)}DESC(){return this.getToken(rs.DESC,0)}DESCRIBE(){return this.getToken(rs.DESCRIBE,0)}DETACH(){return this.getToken(rs.DETACH,0)}DIRECTORY(){return this.getToken(rs.DIRECTORY,0)}DISABLE(){return this.getToken(rs.DISABLE,0)}DISCARD(){return this.getToken(rs.DISCARD,0)}DO(){return this.getToken(rs.DO,0)}DROP(){return this.getToken(rs.DROP,0)}EACH(){return this.getToken(rs.EACH,0)}ELSE(){return this.getToken(rs.ELSE,0)}EMPTY(){return this.getToken(rs.EMPTY,0)}ENCRYPTED(){return this.getToken(rs.ENCRYPTED,0)}END(){return this.getToken(rs.END,0)}ERROR(){return this.getToken(rs.ERROR,0)}ESCAPE(){return this.getToken(rs.ESCAPE,0)}EVALUATE(){return this.getToken(rs.EVALUATE,0)}EXCLUDE(){return this.getToken(rs.EXCLUDE,0)}EXCLUSION(){return this.getToken(rs.EXCLUSION,0)}EXCLUSIVE(){return this.getToken(rs.EXCLUSIVE,0)}EXPLAIN(){return this.getToken(rs.EXPLAIN,0)}EXPORT(){return this.getToken(rs.EXPORT,0)}EXTERNAL(){return this.getToken(rs.EXTERNAL,0)}FAIL(){return this.getToken(rs.FAIL,0)}FAMILY(){return this.getToken(rs.FAMILY,0)}FILTER(){return this.getToken(rs.FILTER,0)}FIRST(){return this.getToken(rs.FIRST,0)}FLATTEN(){return this.getToken(rs.FLATTEN,0)}FOLLOWING(){return this.getToken(rs.FOLLOWING,0)}FOR(){return this.getToken(rs.FOR,0)}FOREIGN(){return this.getToken(rs.FOREIGN,0)}FUNCTION(){return this.getToken(rs.FUNCTION,0)}GLOB(){return this.getToken(rs.GLOB,0)}GLOBAL(){return this.getToken(rs.GLOBAL,0)}GRANT(){return this.getToken(rs.GRANT,0)}GROUP(){return this.getToken(rs.GROUP,0)}GROUPING(){return this.getToken(rs.GROUPING,0)}HASH(){return this.getToken(rs.HASH,0)}IF(){return this.getToken(rs.IF,0)}IGNORE(){return this.getToken(rs.IGNORE,0)}ILIKE(){return this.getToken(rs.ILIKE,0)}IMMEDIATE(){return this.getToken(rs.IMMEDIATE,0)}IMPORT(){return this.getToken(rs.IMPORT,0)}IN(){return this.getToken(rs.IN,0)}INCREMENT(){return this.getToken(rs.INCREMENT,0)}INCREMENTAL(){return this.getToken(rs.INCREMENTAL,0)}INDEX(){return this.getToken(rs.INDEX,0)}INDEXED(){return this.getToken(rs.INDEXED,0)}INHERITS(){return this.getToken(rs.INHERITS,0)}INITIAL(){return this.getToken(rs.INITIAL,0)}INITIALLY(){return this.getToken(rs.INITIALLY,0)}INNER(){return this.getToken(rs.INNER,0)}INSERT(){return this.getToken(rs.INSERT,0)}INSTEAD(){return this.getToken(rs.INSTEAD,0)}INTO(){return this.getToken(rs.INTO,0)}IS(){return this.getToken(rs.IS,0)}ISNULL(){return this.getToken(rs.ISNULL,0)}JOIN(){return this.getToken(rs.JOIN,0)}KEY(){return this.getToken(rs.KEY,0)}LAST(){return this.getToken(rs.LAST,0)}LEFT(){return this.getToken(rs.LEFT,0)}LEGACY(){return this.getToken(rs.LEGACY,0)}LIKE(){return this.getToken(rs.LIKE,0)}LOCAL(){return this.getToken(rs.LOCAL,0)}LOGIN(){return this.getToken(rs.LOGIN,0)}MANAGE(){return this.getToken(rs.MANAGE,0)}MATCH(){return this.getToken(rs.MATCH,0)}MATCHES(){return this.getToken(rs.MATCHES,0)}MATCH_RECOGNIZE(){return this.getToken(rs.MATCH_RECOGNIZE,0)}MEASURES(){return this.getToken(rs.MEASURES,0)}MICROSECONDS(){return this.getToken(rs.MICROSECONDS,0)}MILLISECONDS(){return this.getToken(rs.MILLISECONDS,0)}MODIFY(){return this.getToken(rs.MODIFY,0)}NANOSECONDS(){return this.getToken(rs.NANOSECONDS,0)}NATURAL(){return this.getToken(rs.NATURAL,0)}NEXT(){return this.getToken(rs.NEXT,0)}NO(){return this.getToken(rs.NO,0)}NOLOGIN(){return this.getToken(rs.NOLOGIN,0)}NOTNULL(){return this.getToken(rs.NOTNULL,0)}NULLS(){return this.getToken(rs.NULLS,0)}OBJECT(){return this.getToken(rs.OBJECT,0)}OF(){return this.getToken(rs.OF,0)}OFFSET(){return this.getToken(rs.OFFSET,0)}OMIT(){return this.getToken(rs.OMIT,0)}ON(){return this.getToken(rs.ON,0)}ONE(){return this.getToken(rs.ONE,0)}ONLY(){return this.getToken(rs.ONLY,0)}OPTION(){return this.getToken(rs.OPTION,0)}OR(){return this.getToken(rs.OR,0)}ORDER(){return this.getToken(rs.ORDER,0)}OTHERS(){return this.getToken(rs.OTHERS,0)}OUTER(){return this.getToken(rs.OUTER,0)}OVER(){return this.getToken(rs.OVER,0)}PARALLEL(){return this.getToken(rs.PARALLEL,0)}PARTITION(){return this.getToken(rs.PARTITION,0)}PASSING(){return this.getToken(rs.PASSING,0)}PASSWORD(){return this.getToken(rs.PASSWORD,0)}PAST(){return this.getToken(rs.PAST,0)}PATTERN(){return this.getToken(rs.PATTERN,0)}PER(){return this.getToken(rs.PER,0)}PERMUTE(){return this.getToken(rs.PERMUTE,0)}PLAN(){return this.getToken(rs.PLAN,0)}POOL(){return this.getToken(rs.POOL,0)}PRAGMA(){return this.getToken(rs.PRAGMA,0)}PRECEDING(){return this.getToken(rs.PRECEDING,0)}PRESORT(){return this.getToken(rs.PRESORT,0)}PRIMARY(){return this.getToken(rs.PRIMARY,0)}PRIVILEGES(){return this.getToken(rs.PRIVILEGES,0)}QUERY(){return this.getToken(rs.QUERY,0)}QUEUE(){return this.getToken(rs.QUEUE,0)}RAISE(){return this.getToken(rs.RAISE,0)}REFERENCES(){return this.getToken(rs.REFERENCES,0)}REGEXP(){return this.getToken(rs.REGEXP,0)}REINDEX(){return this.getToken(rs.REINDEX,0)}RELEASE(){return this.getToken(rs.RELEASE,0)}REMOVE(){return this.getToken(rs.REMOVE,0)}RENAME(){return this.getToken(rs.RENAME,0)}REPLACE(){return this.getToken(rs.REPLACE,0)}REPLICATION(){return this.getToken(rs.REPLICATION,0)}RESET(){return this.getToken(rs.RESET,0)}RESPECT(){return this.getToken(rs.RESPECT,0)}RESTART(){return this.getToken(rs.RESTART,0)}RESTORE(){return this.getToken(rs.RESTORE,0)}RESTRICT(){return this.getToken(rs.RESTRICT,0)}RESULT(){return this.getToken(rs.RESULT,0)}REVERT(){return this.getToken(rs.REVERT,0)}REVOKE(){return this.getToken(rs.REVOKE,0)}RIGHT(){return this.getToken(rs.RIGHT,0)}RLIKE(){return this.getToken(rs.RLIKE,0)}ROLLBACK(){return this.getToken(rs.ROLLBACK,0)}ROW(){return this.getToken(rs.ROW,0)}SAMPLE(){return this.getToken(rs.SAMPLE,0)}SAVEPOINT(){return this.getToken(rs.SAVEPOINT,0)}SECONDS(){return this.getToken(rs.SECONDS,0)}SEEK(){return this.getToken(rs.SEEK,0)}SEMI(){return this.getToken(rs.SEMI,0)}SETS(){return this.getToken(rs.SETS,0)}SHOW(){return this.getToken(rs.SHOW,0)}TSKIP(){return this.getToken(rs.TSKIP,0)}SEQUENCE(){return this.getToken(rs.SEQUENCE,0)}SOURCE(){return this.getToken(rs.SOURCE,0)}START(){return this.getToken(rs.START,0)}SUBQUERY(){return this.getToken(rs.SUBQUERY,0)}SUBSET(){return this.getToken(rs.SUBSET,0)}SYMBOLS(){return this.getToken(rs.SYMBOLS,0)}SYNC(){return this.getToken(rs.SYNC,0)}SYSTEM(){return this.getToken(rs.SYSTEM,0)}TABLE(){return this.getToken(rs.TABLE,0)}TABLES(){return this.getToken(rs.TABLES,0)}TABLESAMPLE(){return this.getToken(rs.TABLESAMPLE,0)}TABLESTORE(){return this.getToken(rs.TABLESTORE,0)}TEMP(){return this.getToken(rs.TEMP,0)}TEMPORARY(){return this.getToken(rs.TEMPORARY,0)}THEN(){return this.getToken(rs.THEN,0)}TIES(){return this.getToken(rs.TIES,0)}TO(){return this.getToken(rs.TO,0)}TOPIC(){return this.getToken(rs.TOPIC,0)}TRANSACTION(){return this.getToken(rs.TRANSACTION,0)}TRANSFER(){return this.getToken(rs.TRANSFER,0)}TRIGGER(){return this.getToken(rs.TRIGGER,0)}TYPE(){return this.getToken(rs.TYPE,0)}UNCONDITIONAL(){return this.getToken(rs.UNCONDITIONAL,0)}UNIQUE(){return this.getToken(rs.UNIQUE,0)}UNKNOWN(){return this.getToken(rs.UNKNOWN,0)}UNMATCHED(){return this.getToken(rs.UNMATCHED,0)}UPDATE(){return this.getToken(rs.UPDATE,0)}UPSERT(){return this.getToken(rs.UPSERT,0)}USE(){return this.getToken(rs.USE,0)}USER(){return this.getToken(rs.USER,0)}USING(){return this.getToken(rs.USING,0)}VACUUM(){return this.getToken(rs.VACUUM,0)}VALUES(){return this.getToken(rs.VALUES,0)}VIEW(){return this.getToken(rs.VIEW,0)}VIRTUAL(){return this.getToken(rs.VIRTUAL,0)}WITH(){return this.getToken(rs.WITH,0)}WRAPPER(){return this.getToken(rs.WRAPPER,0)}XOR(){return this.getToken(rs.XOR,0)}get ruleIndex(){return rs.RULE_keyword_compat}accept(e){return e.visitKeyword_compat?e.visitKeyword_compat(this):e.visitChildren(this)}},_d=class extends W{static{Si(this,"Type_idContext")}constructor(e,t){super(e,t)}OPTIONAL(){return this.getToken(rs.OPTIONAL,0)}TUPLE(){return this.getToken(rs.TUPLE,0)}STRUCT(){return this.getToken(rs.STRUCT,0)}VARIANT(){return this.getToken(rs.VARIANT,0)}LIST(){return this.getToken(rs.LIST,0)}FLOW(){return this.getToken(rs.FLOW,0)}DICT(){return this.getToken(rs.DICT,0)}SET(){return this.getToken(rs.SET,0)}ENUM(){return this.getToken(rs.ENUM,0)}RESOURCE(){return this.getToken(rs.RESOURCE,0)}TAGGED(){return this.getToken(rs.TAGGED,0)}CALLABLE(){return this.getToken(rs.CALLABLE,0)}get ruleIndex(){return rs.RULE_type_id}accept(e){return e.visitType_id?e.visitType_id(this):e.visitChildren(this)}},vd=class extends W{static{Si(this,"Bool_valueContext")}constructor(e,t){super(e,t)}TRUE(){return this.getToken(rs.TRUE,0)}FALSE(){return this.getToken(rs.FALSE,0)}get ruleIndex(){return rs.RULE_bool_value}accept(e){return e.visitBool_value?e.visitBool_value(this):e.visitChildren(this)}},Cd=class extends W{static{Si(this,"RealContext")}constructor(e,t){super(e,t)}REAL(){return this.getToken(rs.REAL,0)}get ruleIndex(){return rs.RULE_real}accept(e){return e.visitReal?e.visitReal(this):e.visitChildren(this)}},Ed=class extends W{static{Si(this,"IntegerContext")}constructor(e,t){super(e,t)}DIGITS(){return this.getToken(rs.DIGITS,0)}INTEGER_VALUE(){return this.getToken(rs.INTEGER_VALUE,0)}get ruleIndex(){return rs.RULE_integer}accept(e){return e.visitInteger?e.visitInteger(this):e.visitChildren(this)}},bd=class extends W{static{Si(this,"Sql_query_yqContext")}constructor(e,t){super(e,t)}sql_stmt_list_yq(){return this.getRuleContext(0,Sd)}PRAGMA(){return this.getToken(rs.PRAGMA,0)}ANSI(){return this.getToken(rs.ANSI,0)}DIGITS(){return this.getToken(rs.DIGITS,0)}ansi_sql_stmt_list(){return this.getRuleContext(0,cs)}get ruleIndex(){return rs.RULE_sql_query_yq}accept(e){return e.visitSql_query_yq?e.visitSql_query_yq(this):e.visitChildren(this)}},Sd=class extends W{static{Si(this,"Sql_stmt_list_yqContext")}constructor(e,t){super(e,t)}sql_stmt_yq(e){return void 0===e?this.getRuleContexts(yd):this.getRuleContext(e,yd)}EOF(){return this.getToken(rs.EOF,0)}SEMICOLON(e){return void 0===e?this.getTokens(rs.SEMICOLON):this.getToken(rs.SEMICOLON,e)}get ruleIndex(){return rs.RULE_sql_stmt_list_yq}accept(e){return e.visitSql_stmt_list_yq?e.visitSql_stmt_list_yq(this):e.visitChildren(this)}},yd=class extends W{static{Si(this,"Sql_stmt_yqContext")}constructor(e,t){super(e,t)}sql_stmt_core_yq(){return this.getRuleContext(0,wd)}EXPLAIN(){return this.getToken(rs.EXPLAIN,0)}QUERY(){return this.getToken(rs.QUERY,0)}PLAN(){return this.getToken(rs.PLAN,0)}get ruleIndex(){return rs.RULE_sql_stmt_yq}accept(e){return e.visitSql_stmt_yq?e.visitSql_stmt_yq(this):e.visitChildren(this)}},wd=class extends W{static{Si(this,"Sql_stmt_core_yqContext")}constructor(e,t){super(e,t)}pragma_stmt(){return this.getRuleContext(0,dr)}select_stmt(){return this.getRuleContext(0,mr)}named_nodes_stmt(){return this.getRuleContext(0,wh)}use_stmt(){return this.getRuleContext(0,Sh)}into_table_stmt_yq(){return this.getRuleContext(0,ko)}declare_stmt(){return this.getRuleContext(0,nr)}import_stmt(){return this.getRuleContext(0,or)}export_stmt(){return this.getRuleContext(0,ar)}do_stmt(){return this.getRuleContext(0,hr)}define_action_or_subquery_stmt(){return this.getRuleContext(0,dl)}if_stmt(){return this.getRuleContext(0,gl)}for_stmt(){return this.getRuleContext(0,pl)}values_stmt(){return this.getRuleContext(0,No)}get ruleIndex(){return rs.RULE_sql_stmt_core_yq}accept(e){return e.visitSql_stmt_core_yq?e.visitSql_stmt_core_yq(this):e.visitChildren(this)}},Rd=class extends W{static{Si(this,"Replication_nameContext")}constructor(e,t){super(e,t)}AS(){return this.getToken(rs.AS,0)}object_ref(){return this.getRuleContext(0,El)}get ruleIndex(){return rs.RULE_replication_name}accept(e){return e.visitReplication_name?e.visitReplication_name(this):e.visitChildren(this)}},Ld=class extends W{static{Si(this,"Where_exprContext")}constructor(e,t){super(e,t)}WHERE(){return this.getToken(rs.WHERE,0)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_where_expr}accept(e){return e.visitWhere_expr?e.visitWhere_expr(this):e.visitChildren(this)}},Td=class extends vt{static{Si(this,"YQLVisitor")}},xd={SPACE:rs.WS,FROM:rs.FROM,OPENING_BRACKET:rs.LPAREN,CLOSING_BRACKET:rs.RPAREN,ALTER:rs.ALTER,INSERT:rs.INSERT,UPSERT:rs.UPSERT,UPDATE:rs.UPDATE,JOIN:rs.JOIN,SEMICOLON:rs.SEMICOLON,SELECT:rs.SELECT};function kd(e,t,i,s){let n,r=i-1;do{if(n=e.get(r),n?.type===s)return!0;r--}while(n?.type===t.SPACE);return!1}function Ad(e){let t=new Map(e.map((e=>[e,!0])));return{anyRuleInList:e=>(Array.isArray(e)?e:[e]).some((e=>t.has(e))),allRulesInList:e=>!e.some((e=>!t.has(e)))}}function Nd({anyRuleInList:e,allRulesInList:t}){if(t([rs.RULE_select_stmt,rs.RULE_id_expr]))return!e([rs.RULE_window_specification_details,rs.RULE_group_by_clause,rs.RULE_table_ref,rs.RULE_where_expr])||void 0}function Id({anyRuleInList:e}){return e([rs.RULE_alter_object_stmt,rs.RULE_drop_object_stmt])&&e(rs.RULE_id_or_at)}function Od({anyRuleInList:e,tokenStream:t,cursorTokenIndex:i}){if(!e(rs.RULE_id_or_at))return;let s=e(rs.RULE_drop_table_stmt)&&!!ss(t,xd,i,rs.TABLESTORE);return e(rs.RULE_alter_table_store_stmt)||s}function Dd({anyRuleInList:e,allRulesInList:t,tokenStream:i,cursorTokenIndex:s}){if(!e([rs.RULE_id_or_at,rs.RULE_id_table_or_type]))return;let n=e(rs.RULE_replication_target)&&!e(rs.RULE_replication_name),r=t([rs.RULE_simple_table_ref])&&!ss(i,xd,s,rs.CREATE)&&!ss(i,xd,s,rs.EXTERNAL);return e([rs.RULE_table_ref,rs.RULE_table_inherits])||r||n}function Md({anyRuleInList:e,tokenStream:t,cursorTokenIndex:i}){if(!e(rs.RULE_role_name))return;let s=!!ss(t,xd,i,rs.USER),n=!!ss(t,xd,i,rs.RENAME),r=e(rs.RULE_revoke_permissions_stmt),o=e(rs.RULE_alter_group_stmt)&&!n&&s,a=e(rs.RULE_create_group_stmt)&&s,c=e(rs.RULE_alter_user_stmt)&&!n;return e(rs.RULE_drop_role_stmt)&&s||c||a||o||r}function Pd({anyRuleInList:e,tokenStream:t,cursorTokenIndex:i}){if(!e(rs.RULE_role_name))return;let s=!!ss(t,xd,i,rs.GROUP),n=!!ss(t,xd,i,rs.USER),r=!!ss(t,xd,i,rs.RENAME),o=e(rs.RULE_drop_role_stmt)&&s,a=e(rs.RULE_alter_group_stmt)&&!r&&!n;return e(rs.RULE_revoke_permissions_stmt)||a||o}function Fd({anyRuleInList:e}){if(e([rs.RULE_an_id,rs.RULE_topic_ref]))return e([rs.RULE_drop_topic_stmt,rs.RULE_alter_topic_stmt])}function Ud({allRulesInList:e}){return e([rs.RULE_drop_view_stmt,rs.RULE_id_or_at])||e([rs.RULE_table_ref,rs.RULE_id_table_or_type])}function Hd({anyRuleInList:e}){if(e(rs.RULE_id_or_at))return e([rs.RULE_alter_replication_stmt,rs.RULE_drop_replication_stmt])}function Bd({allRulesInList:e,tokenStream:t,cursorTokenIndex:i}){let s=!!ss(t,xd,i,rs.EXTERNAL);return e([rs.RULE_id_or_at,rs.RULE_drop_table_stmt])&&s||e([rs.RULE_table_ref,rs.RULE_id_table_or_type])}function Wd({anyRuleInList:e}){if(e(rs.RULE_id_or_at))return e([rs.RULE_drop_external_data_source_stmt,rs.RULE_alter_external_data_source_stmt])}function Vd({anyRuleInList:e}){return!!e(rs.RULE_an_id)&&e([rs.RULE_alter_table_drop_index,rs.RULE_alter_table_rename_index_to])}function zd({anyRuleInList:e,tokenStream:t,cursorTokenIndex:i}){if(!e([rs.RULE_an_id,rs.RULE_id_expr])||e([rs.RULE_table_ref,rs.RULE_values_stmt,rs.RULE_alter_table_add_column,rs.RULE_lambda_stmt]))return!1;let s=e(rs.RULE_select_kind)&&!ss(t,xd,i,rs.LIMIT),n=e(rs.RULE_alter_table_alter_column)&&!ss(t,xd,i,rs.FAMILY);return e([rs.RULE_pure_column_list,rs.RULE_pure_column_or_named,rs.RULE_column_name,rs.RULE_without_column_name,rs.RULE_alter_table_drop_column,rs.RULE_delete_stmt])||n||s}function Gd(e){if(!zd(e))return!1;let{tokenStream:t,cursorTokenIndex:i,anyRuleInList:s,allRulesInList:n}=e;return s([rs.RULE_into_table_stmt,rs.RULE_into_table_stmt_yq])&&s(rs.RULE_into_values_source)?kd(t,xd,i,rs.LPAREN):!!n([rs.RULE_select_stmt,rs.RULE_result_column])&&kd(t,xd,i,rs.SELECT)}function jd({anyRuleInList:e}){return e([rs.RULE_expr,rs.RULE_table_ref,rs.RULE_simple_table_ref_core,rs.RULE_pure_column_or_named,rs.RULE_using_call_expr])}function Kd({anyRuleInList:e,allRulesInList:t}){let i=t([rs.RULE_id_expr,rs.RULE_select_stmt])&&!e(rs.RULE_table_ref);return e(rs.RULE_type_name_simple)||i}function Yd({allRulesInList:e}){return e([rs.RULE_an_id,rs.RULE_pragma_stmt])}function qd({anyRuleInList:e}){if(e([rs.RULE_atom_expr,rs.RULE_in_atom_expr])&&!e(rs.RULE_table_ref))return e(rs.RULE_select_stmt)}function $d({allRulesInList:e}){return e([rs.RULE_id_expr,rs.RULE_table_ref])}function Qd({anyRuleInList:e}){if(e(rs.RULE_id_expr)&&!e(rs.RULE_table_ref))return e(rs.RULE_select_stmt)}function Xd({anyRuleInList:e,allRulesInList:t}){if(t([rs.RULE_select_stmt,rs.RULE_id_expr]))return!e([rs.RULE_group_by_clause,rs.RULE_table_ref,rs.RULE_where_expr])||void 0}function Zd({allRulesInList:e}){return e([rs.RULE_an_id_hint,rs.RULE_table_hint])}function Jd({allRulesInList:e,anyRuleInList:t}){if(!t([rs.RULE_table_setting_value,rs.RULE_topic_setting_value,rs.RULE_topic_consumer_setting_value])){if(e([rs.RULE_with_table_settings,rs.RULE_an_id]))return t(rs.RULE_create_external_data_source_stmt)?"externalDataSource":t(rs.RULE_create_view_stmt)?"view":t(rs.RULE_create_table_stmt)?"table":void 0;if(e([rs.RULE_with_topic_settings,rs.RULE_an_id]))return"topic";if(e([rs.RULE_topic_consumer_with_settings,rs.RULE_an_id]))return"topicConsumer";if(e([rs.RULE_replication_settings,rs.RULE_an_id]))return"replication"}}Si(kd,"isFirstPreviousTokenOfType"),Si(Ad,"getRuleCheckHelpers"),Si(Nd,"getWindowFunctionsSuggestions"),Si(Id,"getObjectSuggestions"),Si(Od,"getTablestoreSuggestions"),Si(Dd,"getTableSuggestions"),Si(Md,"getUserSuggestions"),Si(Pd,"getGroupSuggestions"),Si(Fd,"getTopicSuggestions"),Si(Ud,"getViewSuggestions"),Si(Hd,"getReplicationSuggestions"),Si(Bd,"getExternalTableSuggestions"),Si(Wd,"getExternalDatasourceSuggestions"),Si(Vd,"checkShouldSuggestTableIndexes"),Si(zd,"checkShouldSuggestColumns"),Si(Gd,"checkShouldSuggestAllColumns"),Si(jd,"checkShouldSuggestVariables"),Si(Kd,"getSimpleTypesSuggestions"),Si(Yd,"getPragmasSuggestions"),Si(qd,"getUdfsSuggestions"),Si($d,"getTableFunctionsSuggestions"),Si(Qd,"getFunctionsSuggestions"),Si(Xd,"getAggregateFunctionsSuggestions"),Si(Zd,"checkShouldSuggestTableHints"),Si(Jd,"getEntitySettingsSuggestions");var eu=rs.ruleNames;function tu(e){let t=e.findIndex((e=>e===rs.RULE_sql_stmt_core||e===rs.RULE_sql_stmt_core_yq));if(-1===t)return;let i=e[t+1];return i?eu[i]:void 0}Si(tu,"getParticularStatement");var iu={suggestObject:"object",suggestTableStore:"tableStore",suggestTable:"table",suggestExternalTable:"externalTable",suggestExternalDatasource:"externalDataSource",suggestTopic:"topic",suggestView:"view",suggestReplication:"replication",suggestGroup:"group",suggestUser:"user"};function su(e,t,i){let s={...Ad(e),cursorTokenIndex:t,tokenStream:i},n=Nd(s),r=Id(s),o=Od(s),a=Dd(s),c=Md(s),l=Pd(s),h=Fd(s),d=Ud(s),u=Hd(s),g=Bd(s),p=Wd(s),m=Vd(s),f=zd(s),_=Gd(s),v=Kd(s),C=Yd(s),E=qd(s),b=$d(s),S=Qd(s),y=Xd(s),w=Zd(s),R=Jd(s);return{suggestWindowFunctions:n,shouldSuggestTableIndexes:m,shouldSuggestColumns:f,shouldSuggestAllColumns:_,shouldSuggestColumnAliases:f,shouldSuggestVariables:jd(s),suggestSimpleTypes:v,suggestPragmas:C,suggestUdfs:E,suggestTableFunctions:b,suggestFunctions:S,suggestAggregateFunctions:y,suggestTableHints:w?tu(e):void 0,suggestEntitySettings:R,suggestObject:r,suggestTableStore:o,suggestTable:a,suggestUser:c,suggestGroup:l,suggestTopic:h,suggestView:d,suggestReplication:u,suggestExternalTable:g,suggestExternalDatasource:p}}function nu(e,t,i){for(let s=0;s<e.size;s++){let n=e.get(s),r=n.column,o=n.text?.length??0,a=n.column+o;if(n.line===t.line&&r<=t.column-1&&a>=t.column-1&&i.includes(n.type)){let t=s-1;for(;t>=0;){let n=e.get(t);if(!i.includes(n.type))return s+1-t;t-=1}}}return 0}function ru(e,t,i,s=[]){return ou(e,t,i,nu(t,i,s))}function ou(e,t,i,s){return e instanceof F?cu(e,i,s):lu(e,t,i,s)}function au(e,t,i,s,n){let r=e.column,o=e.column+t.length;return e.start>e.stop?{index:e.tokenIndex,context:s,text:t.substring(0,i.column)}:e.line===i.line&&r<=i.column-1-n&&o>=i.column-1-n?{index:e.tokenIndex,context:s,text:t.substring(0,i.column-r)}:void 0}function cu(e,t,i){return au(e.symbol,e.getText(),t,e,i)}function lu(e,t,i,s){if(!(!e.start||!e.stop||e.start.line>i.line||e.stop.line<i.line)){for(let n=0;n<e.getChildCount();n++){let r=e.getChild(n);if(!r)continue;let o=ou(r,t,i,s);if(o)return o}for(let n=e.start.tokenIndex;n<=e.stop.tokenIndex;n++){let r=au(t.get(n),t.get(n).text??"",i,e,s);if(r)return r}}}function hu(e,t,i,s,n,r,o,a=[]){let c=s(Di(e,t,o)),l=ru(c,n,r,a);if(!l)throw new Error(`Could not find tokenContext at Ln ${r.line}, Col ${r.column}`);return i.visit(c),du(i.symbolTable,l.context)}function du(e,t){let i=Ji(t,e),s=[];return i instanceof ci?s=i.getNestedSymbolsOfTypeSync(qi):e&&(s=e.getNestedSymbolsOfTypeSync(qi).filter((e=>!e.parent?.context))),s.map((e=>({name:e.name,value:e.value})))}function uu(e,t,i,s,n,r,o,a=[]){let c={},l=s(Di(e,t,o)),h=ru(l,n,r,a);if(!h)throw new Error(`Could not find tokenContext at Ln ${r.line}, Col ${r.column}`);i.visit(l);let d=gu(i.symbolTable,h.context),u=pu(i.symbolTable,h.context);return d.length&&(c.tableContextSuggestion={tables:d}),u.length&&(c.suggestColumnAliases=u),c}function gu(e,t){let i=Ji(t,e),s=[];return i instanceof ci?s=i.getNestedSymbolsOfTypeSync(Yi).filter((e=>e.parent?.context===i.context)):e&&(s=e.getNestedSymbolsOfTypeSync(Yi)),$i(s)}function pu(e,t){let i=Ji(t,e),s=[];return i instanceof ci?s=i.getNestedSymbolsOfTypeSync(Xi).filter((e=>e.parent?.context===i.context)):e&&(s=e.getNestedSymbolsOfTypeSync(Xi)),s.map((({name:e})=>({name:e})))}function mu(){let e=[],t=rs.LBRACE_SQUARE;for(let i=rs.EQUALS;i<=t;i++)i!==rs.ASTERISK&&e.push(i);return e.push(rs.STREAM),e.push(rs.STRING_VALUE),e.push(rs.REAL),e.push(rs.EOF),e.push(rs.DIGITS),e.push(rs.BLOB),e.push(rs.CURRENT_TIME),e.push(rs.CURRENT_DATE),e.push(rs.CURRENT_TIMESTAMP),e}Si(su,"getGranularSuggestions"),Si(nu,"getWhitespaceBeforeCursor"),Si(ru,"computeTokenContext"),Si(ou,"computeTokenContextInternal"),Si(au,"getTokenContext"),Si(cu,"computeTokenContextOfTerminalNode"),Si(lu,"computeTokenContextOfChildNode"),Si(hu,"getVariableSuggestions"),Si(du,"suggestVariables"),Si(uu,"getExtendedTableSuggestions"),Si(gu,"suggestTables"),Si(pu,"suggestColumnAliases"),Si(mu,"getIgnoredTokens");var fu=new Set(mu()),_u=new Set([rs.RULE_id_or_type,rs.RULE_cluster_expr,rs.RULE_identifier,rs.RULE_id,rs.RULE_integer,rs.RULE_type_id,rs.RULE_keyword,rs.RULE_keyword_compat,rs.RULE_keyword_as_compat,rs.RULE_keyword_expr_uncompat,rs.RULE_keyword_table_uncompat,rs.RULE_keyword_select_uncompat,rs.RULE_keyword_alter_uncompat,rs.RULE_keyword_in_uncompat,rs.RULE_keyword_window_uncompat,rs.RULE_keyword_hint_uncompat,rs.RULE_id_schema,rs.RULE_id_expr_in,rs.RULE_id_window,rs.RULE_id_table,rs.RULE_id_without,rs.RULE_id_hint,rs.RULE_id_as_compat]),vu=class extends Td{static{Si(this,"YQLSymbolTableVisitor")}constructor(){super(),this.symbolTable=new Ei("",{allowDuplicateSymbols:!0}),this.scope=this.symbolTable.addNewSymbolOfType(ci,void 0)}withScope(e,t,i,s){let n=this.symbolTable.addNewSymbolOfType(t,this.scope,...i);n.context=e,this.scope=n;try{return s()}finally{this.scope=n.parent}}getColumnsFromSelectCore(e){let t=[],i=0;for(;i>=0;){let s=e?.result_column(i);if(!s){i=-1;continue}let n=s.an_id_as_compat()?.getText()||s.an_id_or_type()?.getText();if(n)t.push(n);else{let e=s.expr()?.getText();e&&t.push(e)}i+=1}return t.length?t:void 0}defaultResult(){return this.symbolTable}},Cu=class extends vu{constructor(){super(...arguments),this.addVariableSymbol=(e,t)=>{try{let i=0;for(;null!==i;){let s=e(i);s?(this.symbolTable.addNewSymbolOfType(qi,this.scope,s,t),i++):i=null}}catch(Ai){if(!(Ai instanceof ai))throw Ai}},this.visitDeclare_stmt=e=>{try{let t=e.bind_parameter()?.an_id_or_type()?.getText();if(t){let i=e.literal_value()?.getText();this.symbolTable.addNewSymbolOfType(qi,this.scope,t,i)}}catch(t){if(!(t instanceof ai))throw t}return this.visitChildren(e)},this.visitAction_or_subquery_args=e=>(this.addVariableSymbol((t=>e.opt_bind_parameter(t)?.bind_parameter()?.an_id_or_type()?.getText())),this.visitChildren(e)),this.visitNamed_nodes_stmt=e=>{let t=(e.subselect_stmt()?.select_stmt()?.select_kind_parenthesis(0)||e.subselect_stmt()?.select_unparenthesized_stmt())?.select_kind_partial()?.select_kind()?.select_core(),i=t?this.getColumnsFromSelectCore(t):void 0;return this.addVariableSymbol((t=>e.bind_parameter_list()?.bind_parameter(t)?.an_id_or_type()?.getText()),i?{columns:i}:void 0),this.visitChildren(e)},this.visitDefine_action_or_subquery_stmt=e=>{try{let t=e.bind_parameter()?.an_id_or_type()?.getText();t&&this.symbolTable.addNewSymbolOfType(qi,this.scope,t,void 0)}catch(t){if(!(t instanceof ai))throw t}return this.withScope(e,gi,[e.bind_parameter()?.an_id_or_type()?.getText()],(()=>this.visitChildren(e)))??{}},this.visitLambda=e=>{let t=Si((()=>{let t=e.smart_parenthesis()?.named_expr_list();return this.addVariableSymbol((e=>{let i=t?.named_expr(e)?.expr()?.getText();if(i&&i.startsWith("$"))return i.slice(1)})),this.visitChildren(e)}),"addVariables");return this.withScope(e,gi,[e.getText()],t)??{}}}static{Si(this,"YQLVariableSymbolTableVisitor")}},Eu=class extends vu{constructor(){super(...arguments),this.visitSql_stmt_core=e=>this.withScope(e,gi,[e.getText()],(()=>this.visitChildren(e)))??{},this.visitSelect_stmt=e=>this.withScope(e,gi,[e.getText()],(()=>this.visitChildren(e)))??{},this.visitSql_stmt_core_yq=e=>this.withScope(e,gi,[e.getText()],(()=>this.visitChildren(e)))??{},this.visitSimple_table_ref_core=e=>{try{let t=e.object_ref()?.id_or_at()?.an_id_or_type()?.getText();t&&this.symbolTable.addNewSymbolOfType(Yi,this.scope,t)}catch(t){if(!(t instanceof ai))throw t}return this.visitChildren(e)},this.visitAlter_table_store_stmt=e=>{try{e.object_ref()?.id_or_at()?.getText()&&this.symbolTable.addNewSymbolOfType(Yi,this.scope,e.object_ref()?.id_or_at()?.getText())}catch(t){if(!(t instanceof ai))throw t}return this.visitChildren(e)},this.visitNamed_single_source=e=>{try{let t=e.single_source().table_ref()?.getText()??"",i=e.an_id()?.getText()??e.an_id_as_compat()?.getText(),s=e.single_source().select_stmt()?.select_kind_parenthesis(0)?.select_kind_partial()?.select_kind()?.select_core(),n=s?this.getColumnsFromSelectCore(s):void 0;this.symbolTable.addNewSymbolOfType(Yi,this.scope,t,i,n)}catch(t){if(!(t instanceof ai))throw t}return this.visitChildren(e)},this.visitNamed_column=e=>{try{let t=e.an_id()?.getText();t&&this.symbolTable.addNewSymbolOfType(Xi,this.scope,t)}catch(t){if(!(t instanceof ai))throw t}return this.visitChildren(e)},this.visitNamed_expr=e=>{try{let t=e.an_id_or_type()?.getText();t&&this.symbolTable.addNewSymbolOfType(Xi,this.scope,t)}catch(t){if(!(t instanceof ai))throw t}return this.visitChildren(e)},this.visitResult_column=e=>{try{let t=e.an_id_or_type()?.getText()??e.an_id_as_compat()?.getText();t&&this.symbolTable.addNewSymbolOfType(Xi,this.scope,t)}catch(t){if(!(t instanceof ai))throw t}return this.visitChildren(e)}}static{Si(this,"YQLTableSymbolTableVisitor")}};function bu(e,t,i){let s={};for(let[f,_]of e){if(!xi(t,_))break;switch(f){case rs.RULE_id_table:case rs.RULE_id_hint:case rs.RULE_identifier:case rs.RULE_id_or_type:case rs.RULE_id:{let e=su(_.ruleList,t,i),n=Object.fromEntries(Object.entries(e).filter((([e,t])=>t)));s={...s,...n}}}}let{suggestObject:n,suggestTableStore:r,suggestTable:o,suggestUser:a,suggestGroup:c,suggestTopic:l,suggestView:h,suggestReplication:d,suggestExternalTable:u,suggestExternalDatasource:g,...p}=s,m=Object.entries({suggestObject:n,suggestTableStore:r,suggestTable:o,suggestUser:a,suggestGroup:c,suggestTopic:l,suggestView:h,suggestReplication:d,suggestExternalTable:u,suggestExternalDatasource:g}).filter((([e,t])=>t)).map((([e])=>iu[e]));return{suggestEntity:m.length?m:void 0,...p}}function Su(e){return e.sql_query()}function yu(e){return e.sql_query_yq()}function wu(e){return(t,i,s,n,r,o)=>{let{shouldSuggestColumns:a,shouldSuggestAllColumns:c,shouldSuggestColumnAliases:l,shouldSuggestTableIndexes:h,shouldSuggestVariables:d,...u}=bu(i,n,s),g={...t,...u,suggestTemplates:Oi(o,r)},p=a||l||h;if(d){let t=new Cu,i=hu(ns,rs,t,e,s,r,o,[rs.WS]);i.length&&(g.suggestVariables=i)}if(p){let t=new Eu,{tableContextSuggestion:i,suggestColumnAliases:n}=uu(ns,rs,t,e,s,r,o,[rs.WS]);a&&i&&(g.suggestColumns={tables:i.tables},c&&(g.suggestColumns.all=!0)),h&&i&&(g.suggestTableIndexes={tables:i.tables}),l&&n&&(g.suggestColumnAliases=n)}return g}}Si(bu,"processVisitedRules"),Si(Su,"getParseTree"),Si(yu,"getParseTreeYQ"),Si(wu,"getEnrichAutocompleteResult");var Ru=new os(null,-1),Lu={Lexer:ns,Parser:rs,tokenDictionary:xd,ignoredTokens:fu,rulesToVisit:_u,getParseTree:Su,enrichAutocompleteResult:wu(Su),context:Ru},Tu=new bd(null,-1),xu={Lexer:ns,Parser:rs,tokenDictionary:xd,ignoredTokens:fu,rulesToVisit:_u,getParseTree:yu,enrichAutocompleteResult:wu(yu),context:Tu};function ku(e){return zi(Lu.Lexer,Lu.Parser,Lu.tokenDictionary.SPACE,Lu.getParseTree,e)}function Au(e,t){return ji(Lu.Lexer,Lu.Parser,Lu.tokenDictionary.SPACE,Lu.ignoredTokens,Lu.rulesToVisit,Lu.getParseTree,Lu.enrichAutocompleteResult,e,t,Lu.context)}function Nu(e,t){return ji(xu.Lexer,xu.Parser,xu.tokenDictionary.SPACE,xu.ignoredTokens,xu.rulesToVisit,xu.getParseTree,xu.enrichAutocompleteResult,e,t,xu.context)}Si(ku,"parseYqlQueryWithoutCursor"),Si(Au,"parseYqlQuery"),Si((function(e){return zi(xu.Lexer,xu.Parser,xu.tokenDictionary.SPACE,xu.getParseTree,e)}),"parseYqQueryWithoutCursor"),Si(Nu,"parseYqQuery"),Si((function(e){return Au(...Ki(e))}),"parseYqlQueryWithCursor"),Si((function(e){return Nu(...Ki(e))}),"parseYqQueryWithCursor"),Si((function(e){return Vi(ns,ns.symbolicNames,Lu.tokenDictionary.SPACE,e)}),"tokenizeYqlQuery"),Si((function(e){return Hi(e,Lu.Lexer,Lu.Parser,Lu.tokenDictionary.SPACE,[Lu.tokenDictionary.SPACE],Lu.tokenDictionary.SEMICOLON,rs.RULE_sql_stmt,Lu.getParseTree)}),"extractYqlStatementPositionsFromQuery")},41845:(e,t,i)=>{"use strict";i.d(t,{p:()=>s,t:()=>n});class s{constructor(e,t,i){this.changes=e,this.moves=t,this.hitTimeout=i}}class n{constructor(e,t){this.lineRangeMapping=e,this.changes=t}}},41893:(e,t,i)=>{e.exports=function(e){const t=i(94297),s=i(1019);return function(i,n,r){return(n=JSON.parse(JSON.stringify(n))).format=t.YSON,e(s(i.$value,n),n,r)}}},42144:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"typespec",extensions:[".tsp"],aliases:["TypeSpec"],loader:()=>i.e(1094).then(i.bind(i,51094))})},42291:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var s,n=i(91508);!function(e){e[e.Ignore=0]="Ignore",e[e.Info=1]="Info",e[e.Warning=2]="Warning",e[e.Error=3]="Error"}(s||(s={})),function(e){const t="error",i="warning",s="info";e.fromValue=function(r){return r?n.Q_(t,r)?e.Error:n.Q_(i,r)||n.Q_("warn",r)?e.Warning:n.Q_(s,r)?e.Info:e.Ignore:e.Ignore},e.toString=function(n){switch(n){case e.Error:return t;case e.Warning:return i;case e.Info:return s;default:return"ignore"}}}(s||(s={}));const r=s},42392:(e,t,i)=>{"use strict";i.d(t,{R:()=>n,iY:()=>s});const s={NO_DATA:"ERR.CK.NO_DATA",INVALID_DATA:"ERR.CK.INVALID_DATA",UNKNOWN:"ERR.CK.UNKNOWN_ERROR",UNKNOWN_PLUGIN:"ERR.CK.UNKNOWN_PLUGIN",TOO_MANY_LINES:"ERR.CK.TOO_MANY_LINES"};class n extends Error{constructor({originalError:e,message:t,code:i=s.UNKNOWN}={}){super(t),this.isCustomError=!0,this.code=i,e&&(this.name=e.name,this.stack=e.stack)}}},42522:(e,t,i)=>{"use strict";var s;i.d(t,{f:()=>s}),function(e){function t(e){return e&&"object"===typeof e&&"function"===typeof e[Symbol.iterator]}e.is=t;const i=Object.freeze([]);function*s(e){yield e}e.empty=function(){return i},e.single=s,e.wrap=function(e){return t(e)?e:s(e)},e.from=function(e){return e||i},e.reverse=function*(e){for(let t=e.length-1;t>=0;t--)yield e[t]},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){let i=0;for(const s of e)if(t(s,i++))return!0;return!1},e.find=function(e,t){for(const i of e)if(t(i))return i},e.filter=function*(e,t){for(const i of e)t(i)&&(yield i)},e.map=function*(e,t){let i=0;for(const s of e)yield t(s,i++)},e.flatMap=function*(e,t){let i=0;for(const s of e)yield*t(s,i++)},e.concat=function*(...e){for(const t of e)yield*t},e.reduce=function(e,t,i){let s=i;for(const n of e)s=t(s,n);return s},e.slice=function*(e,t,i=e.length){for(t<0&&(t+=e.length),i<0?i+=e.length:i>e.length&&(i=e.length);t<i;t++)yield e[t]},e.consume=function(t,i=Number.POSITIVE_INFINITY){const s=[];if(0===i)return[s,t];const n=t[Symbol.iterator]();for(let r=0;r<i;r++){const t=n.next();if(t.done)return[s,e.empty()];s.push(t.value)}return[s,{[Symbol.iterator]:()=>n}]},e.asyncToArray=async function(e){const t=[];for await(const i of e)t.push(i);return Promise.resolve(t)}}(s||(s={}))},42539:(e,t,i)=>{"use strict";i.d(t,{FW:()=>c,Zv:()=>n,dG:()=>o,z5:()=>l});var s=i(64383);function n(e,t){if("number"===typeof e){if(0===e)return null;const i=(65535&e)>>>0,s=(4294901760&e)>>>16;return new a(0!==s?[r(i,t),r(s,t)]:[r(i,t)])}{const i=[];for(let s=0;s<e.length;s++)i.push(r(e[s],t));return new a(i)}}function r(e,t){const i=!!(2048&e),s=!!(256&e);return new o(2===t?s:i,!!(1024&e),!!(512&e),2===t?i:s,255&e)}class o{constructor(e,t,i,s,n){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=s,this.keyCode=n}equals(e){return e instanceof o&&this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode}isModifierKey(){return 0===this.keyCode||5===this.keyCode||57===this.keyCode||6===this.keyCode||4===this.keyCode}isDuplicateModifierCase(){return this.ctrlKey&&5===this.keyCode||this.shiftKey&&4===this.keyCode||this.altKey&&6===this.keyCode||this.metaKey&&57===this.keyCode}}class a{constructor(e){if(0===e.length)throw(0,s.Qg)("chords");this.chords=e}}class c{constructor(e,t,i,s,n,r){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=s,this.keyLabel=n,this.keyAriaLabel=r}}class l{}},42572:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>i.e(957).then(i.bind(i,53338))})},42731:(e,t,i)=>{"use strict";i.d(t,{t:()=>s});const s={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:i(44320).K.text,INTERNAL_URI_LIST:"application/vnd.code.uri-list"}},42776:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"pla",extensions:[".pla"],loader:()=>i.e(4542).then(i.bind(i,14542))})},42904:(e,t,i)=>{"use strict";i.d(t,{MW:()=>a,bW:()=>l,nZ:()=>c});var s=i(91090);let n=()=>({get delay(){return-1},dispose:()=>{},showHover:()=>{}});const r=new s.d((()=>n("mouse",!1))),o=new s.d((()=>n("element",!1)));function a(e){n=e}function c(e){return"element"===e?o.value:r.value}function l(){return n("element",!0)}},43264:(e,t,i)=>{"use strict";i.d(t,{W5:()=>g,dr:()=>l,hB:()=>d,lt:()=>c,wC:()=>u});var s=i(91508),n=i(81782),r=i(83069),o=i(36677),a=i(16223);class c{constructor(e,t,i,s){this.searchString=e,this.isRegex=t,this.matchCase=i,this.wordSeparators=s}parseSearchRequest(){if(""===this.searchString)return null;let e;e=this.isRegex?function(e){if(!e||0===e.length)return!1;for(let t=0,i=e.length;t<i;t++){const s=e.charCodeAt(t);if(10===s)return!0;if(92===s){if(t++,t>=i)break;const s=e.charCodeAt(t);if(110===s||114===s||87===s)return!0}}return!1}(this.searchString):this.searchString.indexOf("\n")>=0;let t=null;try{t=s.OS(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0,unicode:!0})}catch(r){return null}if(!t)return null;let i=!this.isRegex&&!e;return i&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(i=this.matchCase),new a.L5(t,this.wordSeparators?(0,n.i)(this.wordSeparators,[]):null,i?this.searchString:null)}}function l(e,t,i){if(!i)return new a.Dg(e,null);const s=[];for(let n=0,r=t.length;n<r;n++)s[n]=t[n];return new a.Dg(e,s)}class h{constructor(e){const t=[];let i=0;for(let s=0,n=e.length;s<n;s++)10===e.charCodeAt(s)&&(t[i++]=s);this._lineFeedsOffsets=t}findLineFeedCountBeforeOffset(e){const t=this._lineFeedsOffsets;let i=0,s=t.length-1;if(-1===s)return 0;if(e<=t[0])return 0;for(;i<s;){const n=i+((s-i)/2|0);t[n]>=e?s=n-1:t[n+1]>=e?(i=n,s=n):i=n+1}return i+1}}class d{static findMatches(e,t,i,s,n){const r=t.parseSearchRequest();return r?r.regex.multiline?this._doFindMatchesMultiline(e,i,new g(r.wordSeparators,r.regex),s,n):this._doFindMatchesLineByLine(e,i,r,s,n):[]}static _getMultilineMatchRange(e,t,i,s,n,r){let a,c,l=0;if(s?(l=s.findLineFeedCountBeforeOffset(n),a=t+n+l):a=t+n,s){const e=s.findLineFeedCountBeforeOffset(n+r.length)-l;c=a+r.length+e}else c=a+r.length;const h=e.getPositionAt(a),d=e.getPositionAt(c);return new o.Q(h.lineNumber,h.column,d.lineNumber,d.column)}static _doFindMatchesMultiline(e,t,i,s,n){const r=e.getOffsetAt(t.getStartPosition()),o=e.getValueInRange(t,1),a="\r\n"===e.getEOL()?new h(o):null,c=[];let d,u=0;for(i.reset(0);d=i.next(o);)if(c[u++]=l(this._getMultilineMatchRange(e,r,o,a,d.index,d[0]),d,s),u>=n)return c;return c}static _doFindMatchesLineByLine(e,t,i,s,n){const r=[];let o=0;if(t.startLineNumber===t.endLineNumber){const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return o=this._findMatchesInLine(i,a,t.startLineNumber,t.startColumn-1,o,r,s,n),r}const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);o=this._findMatchesInLine(i,a,t.startLineNumber,t.startColumn-1,o,r,s,n);for(let c=t.startLineNumber+1;c<t.endLineNumber&&o<n;c++)o=this._findMatchesInLine(i,e.getLineContent(c),c,0,o,r,s,n);if(o<n){const a=e.getLineContent(t.endLineNumber).substring(0,t.endColumn-1);o=this._findMatchesInLine(i,a,t.endLineNumber,0,o,r,s,n)}return r}static _findMatchesInLine(e,t,i,s,n,r,c,h){const d=e.wordSeparators;if(!c&&e.simpleSearch){const c=e.simpleSearch,l=c.length,g=t.length;let p=-l;for(;-1!==(p=t.indexOf(c,p+l));)if((!d||u(d,t,g,p,l))&&(r[n++]=new a.Dg(new o.Q(i,p+1+s,i,p+1+l+s),null),n>=h))return n;return n}const p=new g(e.wordSeparators,e.regex);let m;p.reset(0);do{if(m=p.next(t),m&&(r[n++]=l(new o.Q(i,m.index+1+s,i,m.index+1+m[0].length+s),m,c),n>=h))return n}while(m);return n}static findNextMatch(e,t,i,s){const n=t.parseSearchRequest();if(!n)return null;const r=new g(n.wordSeparators,n.regex);return n.regex.multiline?this._doFindNextMatchMultiline(e,i,r,s):this._doFindNextMatchLineByLine(e,i,r,s)}static _doFindNextMatchMultiline(e,t,i,s){const n=new r.y(t.lineNumber,1),a=e.getOffsetAt(n),c=e.getLineCount(),d=e.getValueInRange(new o.Q(n.lineNumber,n.column,c,e.getLineMaxColumn(c)),1),u="\r\n"===e.getEOL()?new h(d):null;i.reset(t.column-1);const g=i.next(d);return g?l(this._getMultilineMatchRange(e,a,d,u,g.index,g[0]),g,s):1!==t.lineNumber||1!==t.column?this._doFindNextMatchMultiline(e,new r.y(1,1),i,s):null}static _doFindNextMatchLineByLine(e,t,i,s){const n=e.getLineCount(),r=t.lineNumber,o=e.getLineContent(r),a=this._findFirstMatchInLine(i,o,r,t.column,s);if(a)return a;for(let c=1;c<=n;c++){const t=(r+c-1)%n,o=e.getLineContent(t+1),a=this._findFirstMatchInLine(i,o,t+1,1,s);if(a)return a}return null}static _findFirstMatchInLine(e,t,i,s,n){e.reset(s-1);const r=e.next(t);return r?l(new o.Q(i,r.index+1,i,r.index+1+r[0].length),r,n):null}static findPreviousMatch(e,t,i,s){const n=t.parseSearchRequest();if(!n)return null;const r=new g(n.wordSeparators,n.regex);return n.regex.multiline?this._doFindPreviousMatchMultiline(e,i,r,s):this._doFindPreviousMatchLineByLine(e,i,r,s)}static _doFindPreviousMatchMultiline(e,t,i,s){const n=this._doFindMatchesMultiline(e,new o.Q(1,1,t.lineNumber,t.column),i,s,9990);if(n.length>0)return n[n.length-1];const a=e.getLineCount();return t.lineNumber!==a||t.column!==e.getLineMaxColumn(a)?this._doFindPreviousMatchMultiline(e,new r.y(a,e.getLineMaxColumn(a)),i,s):null}static _doFindPreviousMatchLineByLine(e,t,i,s){const n=e.getLineCount(),r=t.lineNumber,o=e.getLineContent(r).substring(0,t.column-1),a=this._findLastMatchInLine(i,o,r,s);if(a)return a;for(let c=1;c<=n;c++){const t=(n+r-c-1)%n,o=e.getLineContent(t+1),a=this._findLastMatchInLine(i,o,t+1,s);if(a)return a}return null}static _findLastMatchInLine(e,t,i,s){let n,r=null;for(e.reset(0);n=e.next(t);)r=l(new o.Q(i,n.index+1,i,n.index+1+n[0].length),n,s);return r}}function u(e,t,i,s,n){return function(e,t,i,s,n){if(0===s)return!0;const r=t.charCodeAt(s-1);if(0!==e.get(r))return!0;if(13===r||10===r)return!0;if(n>0){const i=t.charCodeAt(s);if(0!==e.get(i))return!0}return!1}(e,t,0,s,n)&&function(e,t,i,s,n){if(s+n===i)return!0;const r=t.charCodeAt(s+n);if(0!==e.get(r))return!0;if(13===r||10===r)return!0;if(n>0){const i=t.charCodeAt(s+n-1);if(0!==e.get(i))return!0}return!1}(e,t,i,s,n)}class g{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){const t=e.length;let i;do{if(this._prevMatchStartIndex+this._prevMatchLength===t)return null;if(i=this._searchRegex.exec(e),!i)return null;const n=i.index,r=i[0].length;if(n===this._prevMatchStartIndex&&r===this._prevMatchLength){if(0===r){s.Z5(e,t,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=n,this._prevMatchLength=r,!this._wordSeparators||u(this._wordSeparators,e,t,n,r))return i}while(i);return null}}},43932:(e,t,i)=>{e.exports=i(50629)},44026:(e,t,i)=>{"use strict";i.d(t,{tz:()=>a,yy:()=>n});const s={0:" ",1:"u",2:"r"},n=16777215,r=4278190080;class o{constructor(e){const t=Math.ceil(e/32);this._states=new Uint32Array(t)}get(e){const t=e/32|0,i=e%32;return 0!==(this._states[t]&1<<i)}set(e,t){const i=e/32|0,s=e%32,n=this._states[i];this._states[i]=t?n|1<<s:n&~(1<<s)}}class a{constructor(e,t,i){if(e.length!==t.length||e.length>65535)throw new Error("invalid startIndexes or endIndexes size");this._startIndexes=e,this._endIndexes=t,this._collapseStates=new o(e.length),this._userDefinedStates=new o(e.length),this._recoveredStates=new o(e.length),this._types=i,this._parentsComputed=!1}ensureParentIndices(){if(!this._parentsComputed){this._parentsComputed=!0;const e=[],t=(t,i)=>{const s=e[e.length-1];return this.getStartLineNumber(s)<=t&&this.getEndLineNumber(s)>=i};for(let i=0,s=this._startIndexes.length;i<s;i++){const s=this._startIndexes[i],r=this._endIndexes[i];if(s>n||r>n)throw new Error("startLineNumber or endLineNumber must not exceed "+n);for(;e.length>0&&!t(s,r);)e.pop();const o=e.length>0?e[e.length-1]:-1;e.push(i),this._startIndexes[i]=s+((255&o)<<24),this._endIndexes[i]=r+((65280&o)<<16)}}}get length(){return this._startIndexes.length}getStartLineNumber(e){return this._startIndexes[e]&n}getEndLineNumber(e){return this._endIndexes[e]&n}getType(e){return this._types?this._types[e]:void 0}hasTypes(){return!!this._types}isCollapsed(e){return this._collapseStates.get(e)}setCollapsed(e,t){this._collapseStates.set(e,t)}isUserDefined(e){return this._userDefinedStates.get(e)}setUserDefined(e,t){return this._userDefinedStates.set(e,t)}isRecovered(e){return this._recoveredStates.get(e)}setRecovered(e,t){return this._recoveredStates.set(e,t)}getSource(e){return this.isUserDefined(e)?1:this.isRecovered(e)?2:0}setSource(e,t){1===t?(this.setUserDefined(e,!0),this.setRecovered(e,!1)):2===t?(this.setUserDefined(e,!1),this.setRecovered(e,!0)):(this.setUserDefined(e,!1),this.setRecovered(e,!1))}setCollapsedAllOfType(e,t){let i=!1;if(this._types)for(let s=0;s<this._types.length;s++)this._types[s]===e&&(this.setCollapsed(s,t),i=!0);return i}toRegion(e){return new c(this,e)}getParentIndex(e){this.ensureParentIndices();const t=((this._startIndexes[e]&r)>>>24)+((this._endIndexes[e]&r)>>>16);return 65535===t?-1:t}contains(e,t){return this.getStartLineNumber(e)<=t&&this.getEndLineNumber(e)>=t}findIndex(e){let t=0,i=this._startIndexes.length;if(0===i)return-1;for(;t<i;){const s=Math.floor((t+i)/2);e<this.getStartLineNumber(s)?i=s:t=s+1}return t-1}findRange(e){let t=this.findIndex(e);if(t>=0){if(this.getEndLineNumber(t)>=e)return t;for(t=this.getParentIndex(t);-1!==t;){if(this.contains(t,e))return t;t=this.getParentIndex(t)}}return-1}toString(){const e=[];for(let t=0;t<this.length;t++)e[t]=`[${s[this.getSource(t)]}${this.isCollapsed(t)?"+":"-"}] ${this.getStartLineNumber(t)}/${this.getEndLineNumber(t)}`;return e.join(", ")}toFoldRange(e){return{startLineNumber:this._startIndexes[e]&n,endLineNumber:this._endIndexes[e]&n,type:this._types?this._types[e]:void 0,isCollapsed:this.isCollapsed(e),source:this.getSource(e)}}static fromFoldRanges(e){const t=e.length,i=new Uint32Array(t),s=new Uint32Array(t);let n=[],r=!1;for(let a=0;a<t;a++){const t=e[a];i[a]=t.startLineNumber,s[a]=t.endLineNumber,n.push(t.type),t.type&&(r=!0)}r||(n=void 0);const o=new a(i,s,n);for(let a=0;a<t;a++)e[a].isCollapsed&&o.setCollapsed(a,!0),o.setSource(a,e[a].source);return o}static sanitizeAndMerge(e,t,i,s){i=i??Number.MAX_VALUE;const n=(e,t)=>Array.isArray(e)?i=>i<t?e[i]:void 0:i=>i<t?e.toFoldRange(i):void 0,r=n(e,e.length),o=n(t,t.length);let a=0,c=0,l=r(0),h=o(0);const d=[];let u,g=0;const p=[];for(;l||h;){let e;if(h&&(!l||l.startLineNumber>=h.startLineNumber))l&&l.startLineNumber===h.startLineNumber?(1===h.source?e=h:(e=l,e.isCollapsed=h.isCollapsed&&(l.endLineNumber===h.endLineNumber||!s?.startsInside(l.startLineNumber+1,l.endLineNumber+1)),e.source=0),l=r(++a)):(e=h,h.isCollapsed&&0===h.source&&(e.source=2)),h=o(++c);else{let t=c,i=h;for(;;){if(!i||i.startLineNumber>l.endLineNumber){e=l;break}if(1===i.source&&i.endLineNumber>l.endLineNumber)break;i=o(++t)}l=r(++a)}if(e){for(;u&&u.endLineNumber<e.startLineNumber;)u=d.pop();e.endLineNumber>e.startLineNumber&&e.startLineNumber>g&&e.endLineNumber<=i&&(!u||u.endLineNumber>=e.endLineNumber)&&(p.push(e),g=e.startLineNumber,u&&d.push(u),u=e)}}return p}}class c{constructor(e,t){this.ranges=e,this.index=t}get startLineNumber(){return this.ranges.getStartLineNumber(this.index)}get endLineNumber(){return this.ranges.getEndLineNumber(this.index)}get regionIndex(){return this.index}get parentIndex(){return this.ranges.getParentIndex(this.index)}get isCollapsed(){return this.ranges.isCollapsed(this.index)}containedBy(e){return e.startLineNumber<=this.startLineNumber&&e.endLineNumber>=this.endLineNumber}containsLine(e){return this.startLineNumber<=e&&e<=this.endLineNumber}}},44320:(e,t,i)=>{"use strict";i.d(t,{K:()=>s});const s=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"})},44432:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ITreeSitterParserService:()=>s});const s=(0,i(63591).u1)("treeSitterParserService")},44588:(e,t,i)=>{"use strict";i.d(t,{WR:()=>B,BP:()=>W});var s=i(90766),n=i(18447),r=i(64383),o=i(24939),a=i(5662),c=i(91508),l=i(631),h=i(55190),d=i(31450),u=i(60002),g=i(62083),p=i(17469),m=i(52903),f=i(46041),_=i(41234),v=i(36677),C=i(64454);class E{get onDidChange(){return this._updateEventEmitter.event}get hiddenRanges(){return this._hiddenRanges}constructor(e){this._updateEventEmitter=new _.vl,this._hasLineChanges=!1,this._foldingModel=e,this._foldingModelListener=e.onDidChange((e=>this.updateHiddenRanges())),this._hiddenRanges=[],e.regions.length&&this.updateHiddenRanges()}notifyChangeModelContent(e){this._hiddenRanges.length&&!this._hasLineChanges&&(this._hasLineChanges=e.changes.some((e=>e.range.endLineNumber!==e.range.startLineNumber||0!==(0,C.W)(e.text)[0])))}updateHiddenRanges(){let e=!1;const t=[];let i=0,s=0,n=Number.MAX_VALUE,r=-1;const o=this._foldingModel.regions;for(;i<o.length;i++){if(!o.isCollapsed(i))continue;const a=o.getStartLineNumber(i)+1,c=o.getEndLineNumber(i);n<=a&&c<=r||(!e&&s<this._hiddenRanges.length&&this._hiddenRanges[s].startLineNumber===a&&this._hiddenRanges[s].endLineNumber===c?(t.push(this._hiddenRanges[s]),s++):(e=!0,t.push(new v.Q(a,1,c,1))),n=a,r=c)}(this._hasLineChanges||e||s<this._hiddenRanges.length)&&this.applyHiddenRanges(t)}applyHiddenRanges(e){this._hiddenRanges=e,this._hasLineChanges=!1,this._updateEventEmitter.fire(e)}hasRanges(){return this._hiddenRanges.length>0}isHidden(e){return null!==b(this._hiddenRanges,e)}adjustSelections(e){let t=!1;const i=this._foldingModel.textModel;let s=null;const n=e=>(s&&function(e,t){return e>=t.startLineNumber&&e<=t.endLineNumber}(e,s)||(s=b(this._hiddenRanges,e)),s?s.startLineNumber-1:null);for(let r=0,o=e.length;r<o;r++){let s=e[r];const o=n(s.startLineNumber);o&&(s=s.setStartPosition(o,i.getLineMaxColumn(o)),t=!0);const a=n(s.endLineNumber);a&&(s=s.setEndPosition(a,i.getLineMaxColumn(a)),t=!0),e[r]=s}return t}dispose(){this.hiddenRanges.length>0&&(this._hiddenRanges=[],this._updateEventEmitter.fire(this._hiddenRanges)),this._foldingModelListener&&(this._foldingModelListener.dispose(),this._foldingModelListener=null)}}function b(e,t){const i=(0,f.hw)(e,(e=>t<e.startLineNumber))-1;return i>=0&&e[i].endLineNumber>=t?e[i]:null}var S,y=i(76495),w=i(78209),R=i(32848),L=i(46109),T=i(44026),x=i(87784),k=i(58591),A=i(32500),N=i(78381),I=i(56942),O=i(50091),D=i(79400),M=i(23750),P=i(84001),F=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},U=function(e,t){return function(i,s){t(i,s,e)}};const H=new R.N1("foldingEnabled",!1);let B=class extends a.jG{static{S=this}static{this.ID="editor.contrib.folding"}static get(e){return e.getContribution(S.ID)}static getFoldingRangeProviders(e,t){const i=e.foldingRangeProvider.ordered(t);return S._foldingRangeSelector?.(i,t)??i}constructor(e,t,i,s,n,r){super(),this.contextKeyService=t,this.languageConfigurationService=i,this.languageFeaturesService=r,this.localToDispose=this._register(new a.Cm),this.editor=e,this._foldingLimitReporter=new W(e);const o=this.editor.getOptions();this._isEnabled=o.get(43),this._useFoldingProviders="indentation"!==o.get(44),this._unfoldOnClickAfterEndOfLine=o.get(48),this._restoringViewState=!1,this._currentModelHasFoldedImports=!1,this._foldingImportsByDefault=o.get(46),this.updateDebounceInfo=n.for(r.foldingRangeProvider,"Folding",{min:200}),this.foldingModel=null,this.hiddenRangeModel=null,this.rangeProvider=null,this.foldingRegionPromise=null,this.foldingModelPromise=null,this.updateScheduler=null,this.cursorChangedScheduler=null,this.mouseDownInfo=null,this.foldingDecorationProvider=new L.rv(e),this.foldingDecorationProvider.showFoldingControls=o.get(111),this.foldingDecorationProvider.showFoldingHighlights=o.get(45),this.foldingEnabled=H.bindTo(this.contextKeyService),this.foldingEnabled.set(this._isEnabled),this._register(this.editor.onDidChangeModel((()=>this.onModelChanged()))),this._register(this.editor.onDidChangeConfiguration((e=>{if(e.hasChanged(43)&&(this._isEnabled=this.editor.getOptions().get(43),this.foldingEnabled.set(this._isEnabled),this.onModelChanged()),e.hasChanged(47)&&this.onModelChanged(),e.hasChanged(111)||e.hasChanged(45)){const e=this.editor.getOptions();this.foldingDecorationProvider.showFoldingControls=e.get(111),this.foldingDecorationProvider.showFoldingHighlights=e.get(45),this.triggerFoldingModelChanged()}e.hasChanged(44)&&(this._useFoldingProviders="indentation"!==this.editor.getOptions().get(44),this.onFoldingStrategyChanged()),e.hasChanged(48)&&(this._unfoldOnClickAfterEndOfLine=this.editor.getOptions().get(48)),e.hasChanged(46)&&(this._foldingImportsByDefault=this.editor.getOptions().get(46))}))),this.onModelChanged()}saveViewState(){const e=this.editor.getModel();if(!e||!this._isEnabled||e.isTooLargeForTokenization())return{};if(this.foldingModel){const t=this.foldingModel.getMemento(),i=this.rangeProvider?this.rangeProvider.id:void 0;return{collapsedRegions:t,lineCount:e.getLineCount(),provider:i,foldedImports:this._currentModelHasFoldedImports}}}restoreViewState(e){const t=this.editor.getModel();if(t&&this._isEnabled&&!t.isTooLargeForTokenization()&&this.hiddenRangeModel&&e&&(this._currentModelHasFoldedImports=!!e.foldedImports,e.collapsedRegions&&e.collapsedRegions.length>0&&this.foldingModel)){this._restoringViewState=!0;try{this.foldingModel.applyMemento(e.collapsedRegions)}finally{this._restoringViewState=!1}}}onModelChanged(){this.localToDispose.clear();const e=this.editor.getModel();this._isEnabled&&e&&!e.isTooLargeForTokenization()&&(this._currentModelHasFoldedImports=!1,this.foldingModel=new m.pN(e,this.foldingDecorationProvider),this.localToDispose.add(this.foldingModel),this.hiddenRangeModel=new E(this.foldingModel),this.localToDispose.add(this.hiddenRangeModel),this.localToDispose.add(this.hiddenRangeModel.onDidChange((e=>this.onHiddenRangesChanges(e)))),this.updateScheduler=new s.ve(this.updateDebounceInfo.get(e)),this.cursorChangedScheduler=new s.uC((()=>this.revealCursor()),200),this.localToDispose.add(this.cursorChangedScheduler),this.localToDispose.add(this.languageFeaturesService.foldingRangeProvider.onDidChange((()=>this.onFoldingStrategyChanged()))),this.localToDispose.add(this.editor.onDidChangeModelLanguageConfiguration((()=>this.onFoldingStrategyChanged()))),this.localToDispose.add(this.editor.onDidChangeModelContent((e=>this.onDidChangeModelContent(e)))),this.localToDispose.add(this.editor.onDidChangeCursorPosition((()=>this.onCursorPositionChanged()))),this.localToDispose.add(this.editor.onMouseDown((e=>this.onEditorMouseDown(e)))),this.localToDispose.add(this.editor.onMouseUp((e=>this.onEditorMouseUp(e)))),this.localToDispose.add({dispose:()=>{this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),this.updateScheduler?.cancel(),this.updateScheduler=null,this.foldingModel=null,this.foldingModelPromise=null,this.hiddenRangeModel=null,this.cursorChangedScheduler=null,this.rangeProvider?.dispose(),this.rangeProvider=null}}),this.triggerFoldingModelChanged())}onFoldingStrategyChanged(){this.rangeProvider?.dispose(),this.rangeProvider=null,this.triggerFoldingModelChanged()}getRangeProvider(e){if(this.rangeProvider)return this.rangeProvider;const t=new y.hW(e,this.languageConfigurationService,this._foldingLimitReporter);if(this.rangeProvider=t,this._useFoldingProviders&&this.foldingModel){const i=S.getFoldingRangeProviders(this.languageFeaturesService,e);i.length>0&&(this.rangeProvider=new x.M(e,i,(()=>this.triggerFoldingModelChanged()),this._foldingLimitReporter,t))}return this.rangeProvider}getFoldingModel(){return this.foldingModelPromise}onDidChangeModelContent(e){this.hiddenRangeModel?.notifyChangeModelContent(e),this.triggerFoldingModelChanged()}triggerFoldingModelChanged(){this.updateScheduler&&(this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),this.foldingModelPromise=this.updateScheduler.trigger((()=>{const e=this.foldingModel;if(!e)return null;const t=new N.W,i=this.getRangeProvider(e.textModel),n=this.foldingRegionPromise=(0,s.SS)((e=>i.compute(e)));return n.then((i=>{if(i&&n===this.foldingRegionPromise){let s;if(this._foldingImportsByDefault&&!this._currentModelHasFoldedImports){const e=i.setCollapsedAllOfType(g.lO.Imports.value,!0);e&&(s=h.D.capture(this.editor),this._currentModelHasFoldedImports=e)}const n=this.editor.getSelections();e.update(i,function(e){if(!e||0===e.length)return{startsInside:()=>!1};return{startsInside(t,i){for(const s of e){const e=s.startLineNumber;if(e>=t&&e<=i)return!0}return!1}}}(n)),s?.restore(this.editor);const r=this.updateDebounceInfo.update(e.textModel,t.elapsed());this.updateScheduler&&(this.updateScheduler.defaultDelay=r)}return e}))})).then(void 0,(e=>((0,r.dz)(e),null))))}onHiddenRangesChanges(e){if(this.hiddenRangeModel&&e.length&&!this._restoringViewState){const e=this.editor.getSelections();e&&this.hiddenRangeModel.adjustSelections(e)&&this.editor.setSelections(e)}this.editor.setHiddenAreas(e,this)}onCursorPositionChanged(){this.hiddenRangeModel&&this.hiddenRangeModel.hasRanges()&&this.cursorChangedScheduler.schedule()}revealCursor(){const e=this.getFoldingModel();e&&e.then((e=>{if(e){const t=this.editor.getSelections();if(t&&t.length>0){const i=[];for(const s of t){const t=s.selectionStartLineNumber;this.hiddenRangeModel&&this.hiddenRangeModel.isHidden(t)&&i.push(...e.getAllRegionsAtLine(t,(e=>e.isCollapsed&&t>e.startLineNumber)))}i.length&&(e.toggleCollapseState(i),this.reveal(t[0].getPosition()))}}})).then(void 0,r.dz)}onEditorMouseDown(e){if(this.mouseDownInfo=null,!this.hiddenRangeModel||!e.target||!e.target.range)return;if(!e.event.leftButton&&!e.event.middleButton)return;const t=e.target.range;let i=!1;switch(e.target.type){case 4:{const t=e.target.detail,s=e.target.element.offsetLeft;if(t.offsetX-s<4)return;i=!0;break}case 7:if(this._unfoldOnClickAfterEndOfLine&&this.hiddenRangeModel.hasRanges()){if(!e.target.detail.isAfterLines)break}return;case 6:if(this.hiddenRangeModel.hasRanges()){const e=this.editor.getModel();if(e&&t.startColumn===e.getLineMaxColumn(t.startLineNumber))break}return;default:return}this.mouseDownInfo={lineNumber:t.startLineNumber,iconClicked:i}}onEditorMouseUp(e){const t=this.foldingModel;if(!t||!this.mouseDownInfo||!e.target)return;const i=this.mouseDownInfo.lineNumber,s=this.mouseDownInfo.iconClicked,n=e.target.range;if(!n||n.startLineNumber!==i)return;if(s){if(4!==e.target.type)return}else{const e=this.editor.getModel();if(!e||n.startColumn!==e.getLineMaxColumn(i))return}const r=t.getRegionAtLine(i);if(r&&r.startLineNumber===i){const n=r.isCollapsed;if(s||n){let s=[];if(e.event.altKey){const e=e=>!e.containedBy(r)&&!r.containedBy(e),i=t.getRegionsInside(null,e);for(const t of i)t.isCollapsed&&s.push(t);0===s.length&&(s=i)}else{const i=e.event.middleButton||e.event.shiftKey;if(i)for(const e of t.getRegionsInside(r))e.isCollapsed===n&&s.push(e);!n&&i&&0!==s.length||s.push(r)}t.toggleCollapseState(s),this.reveal({lineNumber:i,column:1})}}}reveal(e){this.editor.revealPositionInCenterIfOutsideViewport(e,0)}};B=S=F([U(1,R.fN),U(2,p.JZ),U(3,k.Ot),U(4,A.ILanguageFeatureDebounceService),U(5,I.ILanguageFeaturesService)],B);class W{constructor(e){this.editor=e,this._onDidChange=new _.vl,this._computed=0,this._limited=!1}get limit(){return this.editor.getOptions().get(47)}update(e,t){e===this._computed&&t===this._limited||(this._computed=e,this._limited=t,this._onDidChange.fire())}}class V extends d.ks{runEditorCommand(e,t,i){const s=e.get(p.JZ),n=B.get(t);if(!n)return;const r=n.getFoldingModel();return r?(this.reportTelemetry(e,t),r.then((e=>{if(e){this.invoke(n,e,t,i,s);const r=t.getSelection();r&&n.reveal(r.getStartPosition())}}))):void 0}getSelectedLines(e){const t=e.getSelections();return t?t.map((e=>e.startLineNumber)):[]}getLineNumbers(e,t){return e&&e.selectionLines?e.selectionLines.map((e=>e+1)):this.getSelectedLines(t)}run(e,t){}}function z(e){if(!l.b0(e)){if(!l.Gv(e))return!1;const t=e;if(!l.b0(t.levels)&&!l.Et(t.levels))return!1;if(!l.b0(t.direction)&&!l.Kg(t.direction))return!1;if(!l.b0(t.selectionLines)&&(!Array.isArray(t.selectionLines)||!t.selectionLines.every(l.Et)))return!1}return!0}class G extends V{static{this.ID_PREFIX="editor.foldLevel"}static{this.ID=e=>G.ID_PREFIX+e}getFoldingLevel(){return parseInt(this.id.substr(G.ID_PREFIX.length))}invoke(e,t,i){(0,m.sO)(t,this.getFoldingLevel(),!0,this.getSelectedLines(i))}}(0,d.HW)(B.ID,B,0),(0,d.Fl)(class extends V{constructor(){super({id:"editor.unfold",label:w.kg("unfoldAction.label","Unfold"),alias:"Unfold",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:3166,mac:{primary:2654},weight:100},metadata:{description:"Unfold the content in the editor",args:[{name:"Unfold editor argument",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t\t* 'levels': Number of levels to unfold. If not set, defaults to 1.\n\t\t\t\t\t\t* 'direction': If 'up', unfold given number of levels up otherwise unfolds down.\n\t\t\t\t\t\t* 'selectionLines': Array of the start lines (0-based) of the editor selections to apply the unfold action to. If not set, the active selection(s) will be used.\n\t\t\t\t\t\t",constraint:z,schema:{type:"object",properties:{levels:{type:"number",default:1},direction:{type:"string",enum:["up","down"],default:"down"},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(e,t,i,s){const n=s&&s.levels||1,r=this.getLineNumbers(s,i);s&&"up"===s.direction?(0,m.dN)(t,!1,n,r):(0,m.uV)(t,!1,n,r)}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.unfoldRecursively",label:w.kg("unFoldRecursivelyAction.label","Unfold Recursively"),alias:"Unfold Recursively",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2142),weight:100}})}invoke(e,t,i,s){(0,m.uV)(t,!1,Number.MAX_VALUE,this.getSelectedLines(i))}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.fold",label:w.kg("foldAction.label","Fold"),alias:"Fold",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:3164,mac:{primary:2652},weight:100},metadata:{description:"Fold the content in the editor",args:[{name:"Fold editor argument",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t\t\t* 'levels': Number of levels to fold.\n\t\t\t\t\t\t\t* 'direction': If 'up', folds given number of levels up otherwise folds down.\n\t\t\t\t\t\t\t* 'selectionLines': Array of the start lines (0-based) of the editor selections to apply the fold action to. If not set, the active selection(s) will be used.\n\t\t\t\t\t\t\tIf no levels or direction is set, folds the region at the locations or if already collapsed, the first uncollapsed parent instead.\n\t\t\t\t\t\t",constraint:z,schema:{type:"object",properties:{levels:{type:"number"},direction:{type:"string",enum:["up","down"]},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(e,t,i,s){const n=this.getLineNumbers(s,i),r=s&&s.levels,o=s&&s.direction;"number"!==typeof r&&"string"!==typeof o?(0,m.W8)(t,!0,n):"up"===o?(0,m.dN)(t,!0,r||1,n):(0,m.uV)(t,!0,r||1,n)}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.foldRecursively",label:w.kg("foldRecursivelyAction.label","Fold Recursively"),alias:"Fold Recursively",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2140),weight:100}})}invoke(e,t,i){const s=this.getSelectedLines(i);(0,m.uV)(t,!0,Number.MAX_VALUE,s)}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.toggleFoldRecursively",label:w.kg("toggleFoldRecursivelyAction.label","Toggle Fold Recursively"),alias:"Toggle Fold Recursively",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,3114),weight:100}})}invoke(e,t,i){const s=this.getSelectedLines(i);(0,m.bC)(t,Number.MAX_VALUE,s)}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.foldAll",label:w.kg("foldAllAction.label","Fold All"),alias:"Fold All",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2069),weight:100}})}invoke(e,t,i){(0,m.uV)(t,!0)}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.unfoldAll",label:w.kg("unfoldAllAction.label","Unfold All"),alias:"Unfold All",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2088),weight:100}})}invoke(e,t,i){(0,m.uV)(t,!1)}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.foldAllBlockComments",label:w.kg("foldAllBlockComments.label","Fold All Block Comments"),alias:"Fold All Block Comments",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2138),weight:100}})}invoke(e,t,i,s,n){if(t.regions.hasTypes())(0,m.cL)(t,g.lO.Comment.value,!0);else{const e=i.getModel();if(!e)return;const s=n.getLanguageConfiguration(e.getLanguageId()).comments;if(s&&s.blockCommentStartToken){const e=new RegExp("^\\s*"+(0,c.bm)(s.blockCommentStartToken));(0,m.AI)(t,e,!0)}}}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.foldAllMarkerRegions",label:w.kg("foldAllMarkerRegions.label","Fold All Regions"),alias:"Fold All Regions",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2077),weight:100}})}invoke(e,t,i,s,n){if(t.regions.hasTypes())(0,m.cL)(t,g.lO.Region.value,!0);else{const e=i.getModel();if(!e)return;const s=n.getLanguageConfiguration(e.getLanguageId()).foldingRules;if(s&&s.markers&&s.markers.start){const e=new RegExp(s.markers.start);(0,m.AI)(t,e,!0)}}}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.unfoldAllMarkerRegions",label:w.kg("unfoldAllMarkerRegions.label","Unfold All Regions"),alias:"Unfold All Regions",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2078),weight:100}})}invoke(e,t,i,s,n){if(t.regions.hasTypes())(0,m.cL)(t,g.lO.Region.value,!1);else{const e=i.getModel();if(!e)return;const s=n.getLanguageConfiguration(e.getLanguageId()).foldingRules;if(s&&s.markers&&s.markers.start){const e=new RegExp(s.markers.start);(0,m.AI)(t,e,!1)}}}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.foldAllExcept",label:w.kg("foldAllExcept.label","Fold All Except Selected"),alias:"Fold All Except Selected",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2136),weight:100}})}invoke(e,t,i){const s=this.getSelectedLines(i);(0,m.GR)(t,!0,s)}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.unfoldAllExcept",label:w.kg("unfoldAllExcept.label","Unfold All Except Selected"),alias:"Unfold All Except Selected",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2134),weight:100}})}invoke(e,t,i){const s=this.getSelectedLines(i);(0,m.GR)(t,!1,s)}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.toggleFold",label:w.kg("toggleFoldAction.label","Toggle Fold"),alias:"Toggle Fold",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2090),weight:100}})}invoke(e,t,i){const s=this.getSelectedLines(i);(0,m.bC)(t,1,s)}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.gotoParentFold",label:w.kg("gotoParentFold.label","Go to Parent Fold"),alias:"Go to Parent Fold",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,weight:100}})}invoke(e,t,i){const s=this.getSelectedLines(i);if(s.length>0){const e=(0,m.kK)(s[0],t);null!==e&&i.setSelection({startLineNumber:e,startColumn:1,endLineNumber:e,endColumn:1})}}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.gotoPreviousFold",label:w.kg("gotoPreviousFold.label","Go to Previous Folding Range"),alias:"Go to Previous Folding Range",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,weight:100}})}invoke(e,t,i){const s=this.getSelectedLines(i);if(s.length>0){const e=(0,m.JX)(s[0],t);null!==e&&i.setSelection({startLineNumber:e,startColumn:1,endLineNumber:e,endColumn:1})}}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.gotoNextFold",label:w.kg("gotoNextFold.label","Go to Next Folding Range"),alias:"Go to Next Folding Range",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,weight:100}})}invoke(e,t,i){const s=this.getSelectedLines(i);if(s.length>0){const e=(0,m.pr)(s[0],t);null!==e&&i.setSelection({startLineNumber:e,startColumn:1,endLineNumber:e,endColumn:1})}}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.createFoldingRangeFromSelection",label:w.kg("createManualFoldRange.label","Create Folding Range from Selection"),alias:"Create Folding Range from Selection",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2135),weight:100}})}invoke(e,t,i){const s=[],n=i.getSelections();if(n){for(const e of n){let t=e.endLineNumber;1===e.endColumn&&--t,t>e.startLineNumber&&(s.push({startLineNumber:e.startLineNumber,endLineNumber:t,type:void 0,isCollapsed:!0,source:1}),i.setSelection({startLineNumber:e.startLineNumber,startColumn:1,endLineNumber:e.startLineNumber,endColumn:1}))}if(s.length>0){s.sort(((e,t)=>e.startLineNumber-t.startLineNumber));const e=T.tz.sanitizeAndMerge(t.regions,s,i.getModel()?.getLineCount());t.updatePost(T.tz.fromFoldRanges(e))}}}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.removeManualFoldingRanges",label:w.kg("removeManualFoldingRanges.label","Remove Manual Folding Ranges"),alias:"Remove Manual Folding Ranges",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2137),weight:100}})}invoke(e,t,i){const s=i.getSelections();if(s){const i=[];for(const e of s){const{startLineNumber:t,endLineNumber:s}=e;i.push(s>=t?{startLineNumber:t,endLineNumber:s}:{endLineNumber:s,startLineNumber:t})}t.removeManualRanges(i),e.triggerFoldingModelChanged()}}});for(let j=1;j<=7;j++)(0,d.xX)(new G({id:G.ID(j),label:w.kg("foldLevelAction.label","Fold Level {0}",j),alias:`Fold Level ${j}`,precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2048|21+j),weight:100}}));O.w.registerCommand("_executeFoldingRangeProvider",(async function(e,...t){const[i]=t;if(!(i instanceof D.r))throw(0,r.Qg)();const s=e.get(I.ILanguageFeaturesService),o=e.get(M.IModelService).getModel(i);if(!o)throw(0,r.Qg)();const a=e.get(P.pG);if(!a.getValue("editor.folding",{resource:i}))return[];const c=e.get(p.JZ),l=a.getValue("editor.foldingStrategy",{resource:i}),h={get limit(){return a.getValue("editor.foldingMaximumRegions",{resource:i})},update:(e,t)=>{}},d=new y.hW(o,c,h);let u=d;if("indentation"!==l){const e=B.getFoldingRangeProviders(s,o);e.length&&(u=new x.M(o,e,(()=>{}),h,d))}const m=await u.compute(n.XO.None),f=[];try{if(m)for(let e=0;e<m.length;e++){const t=m.getType(e);f.push({start:m.getStartLineNumber(e),end:m.getEndLineNumber(e),kind:t?g.lO.fromValue(t):void 0})}return f}finally{u.dispose()}}))},44759:(e,t,i)=>{"use strict";i.d(t,{h:()=>s});const s=Symbol("MicrotaskDelay")},44798:(e,t,i)=>{"use strict";var s=i(90766),n=i(5662),r=i(31450),o=i(32371),a=i(84585),c=i(45538),l=i(84001),h=i(47612),d=i(32500),u=i(78381),g=i(56942),p=i(74243),m=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},f=function(e,t){return function(i,s){t(i,s,e)}};let _=class extends n.jG{static{this.ID="editor.contrib.viewportSemanticTokens"}constructor(e,t,i,n,r,o){super(),this._semanticTokensStylingService=t,this._themeService=i,this._configurationService=n,this._editor=e,this._provider=o.documentRangeSemanticTokensProvider,this._debounceInformation=r.for(this._provider,"DocumentRangeSemanticTokens",{min:100,max:500}),this._tokenizeViewport=this._register(new s.uC((()=>this._tokenizeViewportNow()),100)),this._outstandingRequests=[];const c=()=>{this._editor.hasModel()&&this._tokenizeViewport.schedule(this._debounceInformation.get(this._editor.getModel()))};this._register(this._editor.onDidScrollChange((()=>{c()}))),this._register(this._editor.onDidChangeModel((()=>{this._cancelAll(),c()}))),this._register(this._editor.onDidChangeModelContent((e=>{this._cancelAll(),c()}))),this._register(this._provider.onDidChange((()=>{this._cancelAll(),c()}))),this._register(this._configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration(a.r)&&(this._cancelAll(),c())}))),this._register(this._themeService.onDidColorThemeChange((()=>{this._cancelAll(),c()}))),c()}_cancelAll(){for(const e of this._outstandingRequests)e.cancel();this._outstandingRequests=[]}_removeOutstandingRequest(e){for(let t=0,i=this._outstandingRequests.length;t<i;t++)if(this._outstandingRequests[t]===e)return void this._outstandingRequests.splice(t,1)}_tokenizeViewportNow(){if(!this._editor.hasModel())return;const e=this._editor.getModel();if(e.tokenization.hasCompleteSemanticTokens())return;if(!(0,a.K)(e,this._themeService,this._configurationService))return void(e.tokenization.hasSomeSemanticTokens()&&e.tokenization.setSemanticTokens(null,!1));if(!(0,o.WG)(this._provider,e))return void(e.tokenization.hasSomeSemanticTokens()&&e.tokenization.setSemanticTokens(null,!1));const t=this._editor.getVisibleRangesPlusViewportAboveBelow();this._outstandingRequests=this._outstandingRequests.concat(t.map((t=>this._requestRange(e,t))))}_requestRange(e,t){const i=e.getVersionId(),n=(0,s.SS)((i=>Promise.resolve((0,o.nZ)(this._provider,e,t,i)))),r=new u.W(!1);return n.then((s=>{if(this._debounceInformation.update(e,r.elapsed()),!s||!s.tokens||e.isDisposed()||e.getVersionId()!==i)return;const{provider:n,tokens:o}=s,a=this._semanticTokensStylingService.getStyling(n);e.tokenization.setPartialSemanticTokens(t,(0,c.toMultilineTokens2)(o,a,e.getLanguageId()))})).then((()=>this._removeOutstandingRequest(n)),(()=>this._removeOutstandingRequest(n))),n}};_=m([f(1,p.ISemanticTokensStylingService),f(2,h.Gy),f(3,l.pG),f(4,d.ILanguageFeatureDebounceService),f(5,g.ILanguageFeaturesService)],_),(0,r.HW)(_.ID,_,1)},44915:(e,t,i)=>{"use strict";var s,n=i(11007),r=i(16980),o=i(24939),a=i(31450),c=i(75326),l=i(60002),h=i(78209),d=i(32848),u=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},g=function(e,t){return function(i,s){t(i,s,e)}};const p=new d.N1("selectionAnchorSet",!1);let m=class{static{s=this}static{this.ID="editor.contrib.selectionAnchorController"}static get(e){return e.getContribution(s.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=p.bindTo(t),this.modelChangeListener=e.onDidChangeModel((()=>this.selectionAnchorSetContextKey.reset()))}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations((t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(c.L.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:(new r.Bc).appendText((0,h.kg)("selectionAnchor","Selection Anchor")),className:"selection-anchor"})})),this.selectionAnchorSetContextKey.set(!!this.decorationId),(0,n.xE)((0,h.kg)("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(c.L.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations((t=>{t.removeDecoration(e),this.decorationId=void 0})),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};m=s=u([g(1,d.fN)],m);class f extends a.ks{constructor(){super({id:"editor.action.setSelectionAnchor",label:(0,h.kg)("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:l.R.editorTextFocus,primary:(0,o.m5)(2089,2080),weight:100}})}async run(e,t){m.get(t)?.setSelectionAnchor()}}class _ extends a.ks{constructor(){super({id:"editor.action.goToSelectionAnchor",label:(0,h.kg)("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:p})}async run(e,t){m.get(t)?.goToSelectionAnchor()}}class v extends a.ks{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:(0,h.kg)("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:p,kbOpts:{kbExpr:l.R.editorTextFocus,primary:(0,o.m5)(2089,2089),weight:100}})}async run(e,t){m.get(t)?.selectFromAnchorToCursor()}}class C extends a.ks{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:(0,h.kg)("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:p,kbOpts:{kbExpr:l.R.editorTextFocus,primary:9,weight:100}})}async run(e,t){m.get(t)?.cancelSelectionAnchor()}}(0,a.HW)(m.ID,m,4),(0,a.Fl)(f),(0,a.Fl)(_),(0,a.Fl)(v),(0,a.Fl)(C)},45345:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.5 8a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0M5.25 6.25a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1v3.5a1 1 0 0 1-1 1h-3.5a1 1 0 0 1-1-1z",clipRule:"evenodd"}))},45538:(e,t,i)=>{"use strict";i.r(t),i.d(t,{SemanticTokensProviderStyling:()=>m,toMultilineTokens2:()=>f});i(25982);var s=i(47612),n=i(18801),r=i(83069),o=i(36677),a=i(64454);class c{static create(e,t){return new c(e,new l(t))}get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._endLineNumber}constructor(e,t){this._startLineNumber=e,this._tokens=t,this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}toString(){return this._tokens.toString(this._startLineNumber)}_updateEndLineNumber(){this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}isEmpty(){return this._tokens.isEmpty()}getLineTokens(e){return this._startLineNumber<=e&&e<=this._endLineNumber?this._tokens.getLineTokens(e-this._startLineNumber):null}getRange(){const e=this._tokens.getRange();return e?new o.Q(this._startLineNumber+e.startLineNumber,e.startColumn,this._startLineNumber+e.endLineNumber,e.endColumn):e}removeTokens(e){const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber;this._startLineNumber+=this._tokens.removeTokens(t,e.startColumn-1,i,e.endColumn-1),this._updateEndLineNumber()}split(e){const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber,[s,n,r]=this._tokens.split(t,e.startColumn-1,i,e.endColumn-1);return[new c(this._startLineNumber,s),new c(this._startLineNumber+r,n)]}applyEdit(e,t){const[i,s,n]=(0,a.W)(t);this.acceptEdit(e,i,s,n,t.length>0?t.charCodeAt(0):0)}acceptEdit(e,t,i,s,n){this._acceptDeleteRange(e),this._acceptInsertText(new r.y(e.startLineNumber,e.startColumn),t,i,s,n),this._updateEndLineNumber()}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return;const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber;if(i<0){const e=i-t;return void(this._startLineNumber-=e)}const s=this._tokens.getMaxDeltaLine();if(!(t>=s+1)){if(t<0&&i>=s+1)return this._startLineNumber=0,void this._tokens.clear();if(t<0){const s=-t;this._startLineNumber-=s,this._tokens.acceptDeleteRange(e.startColumn-1,0,0,i,e.endColumn-1)}else this._tokens.acceptDeleteRange(0,t,e.startColumn-1,i,e.endColumn-1)}}_acceptInsertText(e,t,i,s,n){if(0===t&&0===i)return;const r=e.lineNumber-this._startLineNumber;if(r<0)return void(this._startLineNumber+=t);r>=this._tokens.getMaxDeltaLine()+1||this._tokens.acceptInsertText(r,e.column-1,t,i,s,n)}}class l{constructor(e){this._tokens=e,this._tokenCount=e.length/4}toString(e){const t=[];for(let i=0;i<this._tokenCount;i++)t.push(`(${this._getDeltaLine(i)+e},${this._getStartCharacter(i)}-${this._getEndCharacter(i)})`);return`[${t.join(",")}]`}getMaxDeltaLine(){const e=this._getTokenCount();return 0===e?-1:this._getDeltaLine(e-1)}getRange(){const e=this._getTokenCount();if(0===e)return null;const t=this._getStartCharacter(0),i=this._getDeltaLine(e-1),s=this._getEndCharacter(e-1);return new o.Q(0,t+1,i,s+1)}_getTokenCount(){return this._tokenCount}_getDeltaLine(e){return this._tokens[4*e]}_getStartCharacter(e){return this._tokens[4*e+1]}_getEndCharacter(e){return this._tokens[4*e+2]}isEmpty(){return 0===this._getTokenCount()}getLineTokens(e){let t=0,i=this._getTokenCount()-1;for(;t<i;){const s=t+Math.floor((i-t)/2),n=this._getDeltaLine(s);if(n<e)t=s+1;else{if(!(n>e)){let n=s;for(;n>t&&this._getDeltaLine(n-1)===e;)n--;let r=s;for(;r<i&&this._getDeltaLine(r+1)===e;)r++;return new h(this._tokens.subarray(4*n,4*r+4))}i=s-1}}return this._getDeltaLine(t)===e?new h(this._tokens.subarray(4*t,4*t+4)):null}clear(){this._tokenCount=0}removeTokens(e,t,i,s){const n=this._tokens,r=this._tokenCount;let o=0,a=!1,c=0;for(let l=0;l<r;l++){const r=4*l,h=n[r],d=n[r+1],u=n[r+2],g=n[r+3];if((h>e||h===e&&u>=t)&&(h<i||h===i&&d<=s))a=!0;else{if(0===o&&(c=h),a){const e=4*o;n[e]=h-c,n[e+1]=d,n[e+2]=u,n[e+3]=g}o++}}return this._tokenCount=o,c}split(e,t,i,s){const n=this._tokens,r=this._tokenCount,o=[],a=[];let c=o,h=0,d=0;for(let l=0;l<r;l++){const r=4*l,o=n[r],u=n[r+1],g=n[r+2],p=n[r+3];if(o>e||o===e&&g>=t){if(o<i||o===i&&u<=s)continue;c!==a&&(c=a,h=0,d=o)}c[h++]=o-d,c[h++]=u,c[h++]=g,c[h++]=p}return[new l(new Uint32Array(o)),new l(new Uint32Array(a)),d]}acceptDeleteRange(e,t,i,s,n){const r=this._tokens,o=this._tokenCount,a=s-t;let c=0,l=!1;for(let h=0;h<o;h++){const d=4*h;let u=r[d],g=r[d+1],p=r[d+2];const m=r[d+3];if(u<t||u===t&&p<=i){c++;continue}if(u===t&&g<i)u===s&&p>n?p-=n-i:p=i;else if(u===t&&g===i){if(!(u===s&&p>n)){l=!0;continue}p-=n-i}else if(u<s||u===s&&g<n){if(!(u===s&&p>n)){l=!0;continue}u=t,g=i,p=g+(p-n)}else if(u>s){if(0===a&&!l){c=o;break}u-=a}else{if(!(u===s&&g>=n))throw new Error("Not possible!");e&&0===u&&(g+=e,p+=e),u-=a,g-=n-i,p-=n-i}const f=4*c;r[f]=u,r[f+1]=g,r[f+2]=p,r[f+3]=m,c++}this._tokenCount=c}acceptInsertText(e,t,i,s,n,r){const o=0===i&&1===s&&(r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122),a=this._tokens,c=this._tokenCount;for(let l=0;l<c;l++){const r=4*l;let c=a[r],h=a[r+1],d=a[r+2];if(!(c<e||c===e&&d<t)){if(c===e&&d===t){if(!o)continue;d+=1}else if(c===e&&h<t&&t<d)0===i?d+=s:d=t;else{if(c===e&&h===t&&o)continue;if(c===e)if(c+=i,0===i)h+=s,d+=s;else{const e=d-h;h=n+(h-t),d=h+e}else c+=i}a[r]=c,a[r+1]=h,a[r+2]=d}}}}class h{constructor(e){this._tokens=e}getCount(){return this._tokens.length/4}getStartCharacter(e){return this._tokens[4*e+1]}getEndCharacter(e){return this._tokens[4*e+2]}getMetadata(e){return this._tokens[4*e+3]}}var d=i(10154),u=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},g=function(e,t){return function(i,s){t(i,s,e)}};const p=!1;let m=class{constructor(e,t,i,s){this._legend=e,this._themeService=t,this._languageService=i,this._logService=s,this._hasWarnedOverlappingTokens=!1,this._hasWarnedInvalidLengthTokens=!1,this._hasWarnedInvalidEditStart=!1,this._hashTable=new v}getMetadata(e,t,i){const s=this._languageService.languageIdCodec.encodeLanguageId(i),n=this._hashTable.get(e,t,s);let r;if(n)r=n.metadata;else{let n=this._legend.tokenTypes[e];const o=[];if(n){let e=t;for(let t=0;e>0&&t<this._legend.tokenModifiers.length;t++)1&e&&o.push(this._legend.tokenModifiers[t]),e>>=1;p;const s=this._themeService.getColorTheme().getTokenStyleMetadata(n,o,i);if("undefined"===typeof s)r=2147483647;else{if(r=0,"undefined"!==typeof s.italic){r|=1|(s.italic?1:0)<<11}if("undefined"!==typeof s.bold){r|=2|(s.bold?2:0)<<11}if("undefined"!==typeof s.underline){r|=4|(s.underline?4:0)<<11}if("undefined"!==typeof s.strikethrough){r|=8|(s.strikethrough?8:0)<<11}if(s.foreground){r|=16|s.foreground<<15}0===r&&(r=2147483647)}}else r=2147483647,n="not-in-legend";this._hashTable.add(e,t,s,r)}return r}warnOverlappingSemanticTokens(e,t){this._hasWarnedOverlappingTokens||(this._hasWarnedOverlappingTokens=!0,this._logService.warn(`Overlapping semantic tokens detected at lineNumber ${e}, column ${t}`))}warnInvalidLengthSemanticTokens(e,t){this._hasWarnedInvalidLengthTokens||(this._hasWarnedInvalidLengthTokens=!0,this._logService.warn(`Semantic token with invalid length detected at lineNumber ${e}, column ${t}`))}warnInvalidEditStart(e,t,i,s,n){this._hasWarnedInvalidEditStart||(this._hasWarnedInvalidEditStart=!0,this._logService.warn(`Invalid semantic tokens edit detected (previousResultId: ${e}, resultId: ${t}) at edit #${i}: The provided start offset ${s} is outside the previous data (length ${n}).`))}};function f(e,t,i){const s=e.data,n=e.data.length/5|0,r=Math.max(Math.ceil(n/1024),400),o=[];let a=0,l=1,h=0;for(;a<n;){const e=a;let d=Math.min(e+r,n);if(d<n){let t=d;for(;t-1>e&&0===s[5*t];)t--;if(t-1===e){let e=d;for(;e+1<n&&0===s[5*e];)e++;d=e}else d=t}let u=new Uint32Array(4*(d-e)),g=0,p=0,m=0,f=0;for(;a<d;){const e=5*a,n=s[e],r=s[e+1],o=l+n|0,c=0===n?h+r|0:r,d=c+s[e+2]|0,_=s[e+3],v=s[e+4];if(d<=c)t.warnInvalidLengthSemanticTokens(o,c+1);else if(m===o&&f>c)t.warnOverlappingSemanticTokens(o,c+1);else{const e=t.getMetadata(_,v,i);2147483647!==e&&(0===p&&(p=o),u[g]=o-p,u[g+1]=c,u[g+2]=d,u[g+3]=e,g+=4,m=o,f=d)}l=o,h=c,a++}g!==u.length&&(u=u.subarray(0,g));const _=c.create(p,u);o.push(_)}return o}m=u([g(1,s.Gy),g(2,d.L),g(3,n.rr)],m);class _{constructor(e,t,i,s){this.tokenTypeIndex=e,this.tokenModifierSet=t,this.languageId=i,this.metadata=s,this.next=null}}class v{static{this._SIZES=[3,7,13,31,61,127,251,509,1021,2039,4093,8191,16381,32749,65521,131071,262139,524287,1048573,2097143]}constructor(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=v._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<v._SIZES.length?2/3*this._currentLength:0),this._elements=[],v._nullOutEntries(this._elements,this._currentLength)}static _nullOutEntries(e,t){for(let i=0;i<t;i++)e[i]=null}_hash2(e,t){return(e<<5)-e+t|0}_hashFunc(e,t,i){return this._hash2(this._hash2(e,t),i)%this._currentLength}get(e,t,i){const s=this._hashFunc(e,t,i);let n=this._elements[s];for(;n;){if(n.tokenTypeIndex===e&&n.tokenModifierSet===t&&n.languageId===i)return n;n=n.next}return null}add(e,t,i,s){if(this._elementsCount++,0!==this._growCount&&this._elementsCount>=this._growCount){const e=this._elements;this._currentLengthIndex++,this._currentLength=v._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<v._SIZES.length?2/3*this._currentLength:0),this._elements=[],v._nullOutEntries(this._elements,this._currentLength);for(const t of e){let e=t;for(;e;){const t=e.next;e.next=null,this._add(e),e=t}}}this._add(new _(e,t,i,s))}_add(e){const t=this._hashFunc(e.tokenTypeIndex,e.tokenModifierSet,e.languageId);e.next=this._elements[t],this._elements[t]=e}}},46041:(e,t,i)=>{"use strict";function s(e,t){const i=function(e,t,i=e.length-1){for(let s=i;s>=0;s--){if(t(e[s]))return s}return-1}(e,t);if(-1!==i)return e[i]}function n(e,t){const i=r(e,t);return-1===i?void 0:e[i]}function r(e,t,i=0,s=e.length){let n=i,r=s;for(;n<r;){const i=Math.floor((n+r)/2);t(e[i])?n=i+1:r=i}return n-1}function o(e,t){const i=a(e,t);return i===e.length?void 0:e[i]}function a(e,t,i=0,s=e.length){let n=i,r=s;for(;n<r;){const i=Math.floor((n+r)/2);t(e[i])?r=i:n=i+1}return n}i.d(t,{Cn:()=>l,TM:()=>u,Uk:()=>s,XP:()=>o,hw:()=>a,iM:()=>r,kh:()=>d,lx:()=>n,oH:()=>g,ot:()=>h,vJ:()=>c});class c{static{this.assertInvariants=!1}constructor(e){this._array=e,this._findLastMonotonousLastIdx=0}findLastMonotonous(e){if(c.assertInvariants){if(this._prevFindLastPredicate)for(const t of this._array)if(this._prevFindLastPredicate(t)&&!e(t))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.");this._prevFindLastPredicate=e}const t=r(this._array,e,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=t+1,-1===t?void 0:this._array[t]}}function l(e,t){if(0===e.length)return;let i=e[0];for(let s=1;s<e.length;s++){const n=e[s];t(n,i)>0&&(i=n)}return i}function h(e,t){if(0===e.length)return;let i=e[0];for(let s=1;s<e.length;s++){const n=e[s];t(n,i)>=0&&(i=n)}return i}function d(e,t){return l(e,((e,i)=>-t(e,i)))}function u(e,t){if(0===e.length)return-1;let i=0;for(let s=1;s<e.length;s++){t(e[s],e[i])>0&&(i=s)}return i}function g(e,t){for(const i of e){const e=t(i);if(void 0!==e)return e}}},46109:(e,t,i)=>{"use strict";i.d(t,{E0:()=>d,k0:()=>u,rv:()=>v});var s=i(10350),n=i(87289),r=i(78209),o=i(66261),a=i(61394),c=i(47612),l=i(25689);const h=(0,o.x1A)("editor.foldBackground",{light:(0,o.JO0)(o.seu,.3),dark:(0,o.JO0)(o.seu,.3),hcDark:null,hcLight:null},(0,r.kg)("foldBackgroundBackground","Background color behind folded ranges. The color must not be opaque so as not to hide underlying decorations."),!0);(0,o.x1A)("editor.foldPlaceholderForeground",{light:"#808080",dark:"#808080",hcDark:null,hcLight:null},(0,r.kg)("collapsedTextColor","Color of the collapsed text after the first line of a folded range.")),(0,o.x1A)("editorGutter.foldingControlForeground",o.t4B,(0,r.kg)("editorGutter.foldingControlForeground","Color of the folding control in the editor gutter."));const d=(0,a.pU)("folding-expanded",s.W.chevronDown,(0,r.kg)("foldingExpandedIcon","Icon for expanded ranges in the editor glyph margin.")),u=(0,a.pU)("folding-collapsed",s.W.chevronRight,(0,r.kg)("foldingCollapsedIcon","Icon for collapsed ranges in the editor glyph margin.")),g=(0,a.pU)("folding-manual-collapsed",u,(0,r.kg)("foldingManualCollapedIcon","Icon for manually collapsed ranges in the editor glyph margin.")),p=(0,a.pU)("folding-manual-expanded",d,(0,r.kg)("foldingManualExpandedIcon","Icon for manually expanded ranges in the editor glyph margin.")),m={color:(0,c.Yf)(h),position:1},f=(0,r.kg)("linesCollapsed","Click to expand the range."),_=(0,r.kg)("linesExpanded","Click to collapse the range.");class v{static{this.COLLAPSED_VISUAL_DECORATION=n.kI.register({description:"folding-collapsed-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,linesDecorationsTooltip:f,firstLineDecorationClassName:l.L.asClassName(u)})}static{this.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=n.kI.register({description:"folding-collapsed-highlighted-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:m,isWholeLine:!0,linesDecorationsTooltip:f,firstLineDecorationClassName:l.L.asClassName(u)})}static{this.MANUALLY_COLLAPSED_VISUAL_DECORATION=n.kI.register({description:"folding-manually-collapsed-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,linesDecorationsTooltip:f,firstLineDecorationClassName:l.L.asClassName(g)})}static{this.MANUALLY_COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=n.kI.register({description:"folding-manually-collapsed-highlighted-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:m,isWholeLine:!0,linesDecorationsTooltip:f,firstLineDecorationClassName:l.L.asClassName(g)})}static{this.NO_CONTROLS_COLLAPSED_RANGE_DECORATION=n.kI.register({description:"folding-no-controls-range-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,linesDecorationsTooltip:f})}static{this.NO_CONTROLS_COLLAPSED_HIGHLIGHTED_RANGE_DECORATION=n.kI.register({description:"folding-no-controls-range-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:m,isWholeLine:!0,linesDecorationsTooltip:f})}static{this.EXPANDED_VISUAL_DECORATION=n.kI.register({description:"folding-expanded-visual-decoration",stickiness:1,isWholeLine:!0,firstLineDecorationClassName:"alwaysShowFoldIcons "+l.L.asClassName(d),linesDecorationsTooltip:_})}static{this.EXPANDED_AUTO_HIDE_VISUAL_DECORATION=n.kI.register({description:"folding-expanded-auto-hide-visual-decoration",stickiness:1,isWholeLine:!0,firstLineDecorationClassName:l.L.asClassName(d),linesDecorationsTooltip:_})}static{this.MANUALLY_EXPANDED_VISUAL_DECORATION=n.kI.register({description:"folding-manually-expanded-visual-decoration",stickiness:0,isWholeLine:!0,firstLineDecorationClassName:"alwaysShowFoldIcons "+l.L.asClassName(p),linesDecorationsTooltip:_})}static{this.MANUALLY_EXPANDED_AUTO_HIDE_VISUAL_DECORATION=n.kI.register({description:"folding-manually-expanded-auto-hide-visual-decoration",stickiness:0,isWholeLine:!0,firstLineDecorationClassName:l.L.asClassName(p),linesDecorationsTooltip:_})}static{this.NO_CONTROLS_EXPANDED_RANGE_DECORATION=n.kI.register({description:"folding-no-controls-range-decoration",stickiness:0,isWholeLine:!0})}static{this.HIDDEN_RANGE_DECORATION=n.kI.register({description:"folding-hidden-range-decoration",stickiness:1})}constructor(e){this.editor=e,this.showFoldingControls="mouseover",this.showFoldingHighlights=!0}getDecorationOption(e,t,i){return t?v.HIDDEN_RANGE_DECORATION:"never"===this.showFoldingControls?e?this.showFoldingHighlights?v.NO_CONTROLS_COLLAPSED_HIGHLIGHTED_RANGE_DECORATION:v.NO_CONTROLS_COLLAPSED_RANGE_DECORATION:v.NO_CONTROLS_EXPANDED_RANGE_DECORATION:e?i?this.showFoldingHighlights?v.MANUALLY_COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:v.MANUALLY_COLLAPSED_VISUAL_DECORATION:this.showFoldingHighlights?v.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:v.COLLAPSED_VISUAL_DECORATION:"mouseover"===this.showFoldingControls?i?v.MANUALLY_EXPANDED_AUTO_HIDE_VISUAL_DECORATION:v.EXPANDED_AUTO_HIDE_VISUAL_DECORATION:i?v.MANUALLY_EXPANDED_VISUAL_DECORATION:v.EXPANDED_VISUAL_DECORATION}changeDecorations(e){return this.editor.changeDecorations(e)}removeDecorations(e){this.editor.removeDecorations(e)}}},46133:(e,t,i)=>{e.exports=i(64066)},46304:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>i.e(5542).then(i.bind(i,15542))})},46359:(e,t,i)=>{"use strict";i.d(t,{O:()=>r});var s=i(66782),n=i(631);const r=new class{constructor(){this.data=new Map}add(e,t){s.ok(n.Kg(e)),s.ok(n.Gv(t)),s.ok(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)}as(e){return this.data.get(e)||null}}},46576:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>i.e(2182).then(i.bind(i,42182))})},46606:(e,t,i)=>{"use strict";var s=i(31450),n=i(97681),r=i(36677),o=i(60002),a=i(38728),c=i(50091);class l extends a.R7{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordPartLeft",precondition:o.R.writable,kbOpts:{kbExpr:o.R.textInputFocus,primary:0,mac:{primary:769},weight:100}})}_delete(e,t){const i=n.c.deleteWordPartLeft(e);return i||new r.Q(1,1,1,1)}}class h extends a.R7{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordPartRight",precondition:o.R.writable,kbOpts:{kbExpr:o.R.textInputFocus,primary:0,mac:{primary:788},weight:100}})}_delete(e,t){const i=n.c.deleteWordPartRight(e);if(i)return i;const s=e.model.getLineCount(),o=e.model.getLineMaxColumn(s);return new r.Q(s,o,s,o)}}class d extends a.Jk{_move(e,t,i,s,r){return n.c.moveWordPartLeft(e,t,i,r)}}c.w.registerCommandAlias("cursorWordPartStartLeft","cursorWordPartLeft");c.w.registerCommandAlias("cursorWordPartStartLeftSelect","cursorWordPartLeftSelect");class u extends a.Jk{_move(e,t,i,s,r){return n.c.moveWordPartRight(e,t,i)}}(0,s.E_)(new l),(0,s.E_)(new h),(0,s.E_)(new class extends d{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordPartLeft",precondition:void 0,kbOpts:{kbExpr:o.R.textInputFocus,primary:0,mac:{primary:783},weight:100}})}}),(0,s.E_)(new class extends d{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordPartLeftSelect",precondition:void 0,kbOpts:{kbExpr:o.R.textInputFocus,primary:0,mac:{primary:1807},weight:100}})}}),(0,s.E_)(new class extends u{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordPartRight",precondition:void 0,kbOpts:{kbExpr:o.R.textInputFocus,primary:0,mac:{primary:785},weight:100}})}}),(0,s.E_)(new class extends u{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordPartRightSelect",precondition:void 0,kbOpts:{kbExpr:o.R.textInputFocus,primary:0,mac:{primary:1809},weight:100}})}})},46648:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>i.e(110).then(i.bind(i,60110))})},46649:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 3.5H4A1.5 1.5 0 0 0 2.5 5v6A1.5 1.5 0 0 0 4 12.5h8a1.5 1.5 0 0 0 1.5-1.5V5A1.5 1.5 0 0 0 12 3.5M4 2a3 3 0 0 0-3 3v6a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V5a3 3 0 0 0-3-3zm.47 8.53a.75.75 0 0 1 0-1.06L5.94 8 4.47 6.53a.75.75 0 0 1 1.06-1.06l2 2a.75.75 0 0 1 0 1.06l-2 2a.75.75 0 0 1-1.06 0M8.75 9.5a.75.75 0 0 0 0 1.5h2.5a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"}))},46686:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>i.e(5888).then(i.bind(i,35888))})},46958:(e,t,i)=>{"use strict";i.d(t,{YW:()=>A,qg:()=>N});var s=i(90766),n=i(79326),r=i(74320),o=i(74027),a=i(98067),c=i(91508);const l="**",h="/",d="[/\\\\]",u="[^/\\\\]",g=/\//g;function p(e,t){switch(e){case 0:return"";case 1:return`${u}*?`;default:return`(?:${d}|${u}+${d}${t?`|${d}${u}+`:""})*?`}}function m(e,t){if(!e)return[];const i=[];let s=!1,n=!1,r="";for(const o of e){switch(o){case t:if(!s&&!n){i.push(r),r="";continue}break;case"{":s=!0;break;case"}":s=!1;break;case"[":n=!0;break;case"]":n=!1}r+=o}return r&&i.push(r),i}function f(e){if(!e)return"";let t="";const i=m(e,h);if(i.every((e=>e===l)))t=".*";else{let e=!1;i.forEach(((s,n)=>{if(s===l){if(e)return;t+=p(2,n===i.length-1)}else{let e=!1,r="",o=!1,a="";for(const i of s)if("}"!==i&&e)r+=i;else if(!o||"]"===i&&a)switch(i){case"{":e=!0;continue;case"[":o=!0;continue;case"}":{const i=`(?:${m(r,",").map((e=>f(e))).join("|")})`;t+=i,e=!1,r="";break}case"]":t+="["+a+"]",o=!1,a="";break;case"?":t+=u;continue;case"*":t+=p(1);continue;default:t+=(0,c.bm)(i)}else{let e;e="-"===i?i:"^"!==i&&"!"!==i||a?i===h?"":(0,c.bm)(i):"^",a+=e}n<i.length-1&&(i[n+1]!==l||n+2<i.length)&&(t+=d)}e=s===l}))}return t}const _=/^\*\*\/\*\.[\w\.-]+$/,v=/^\*\*\/([\w\.-]+)\/?$/,C=/^{\*\*\/\*?[\w\.-]+\/?(,\*\*\/\*?[\w\.-]+\/?)*}$/,E=/^{\*\*\/\*?[\w\.-]+(\/(\*\*)?)?(,\*\*\/\*?[\w\.-]+(\/(\*\*)?)?)*}$/,b=/^\*\*((\/[\w\.-]+)+)\/?$/,S=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,y=new r.qK(1e4),w=function(){return!1},R=function(){return null};function L(e,t){if(!e)return R;let i;i="string"!==typeof e?e.pattern:e,i=i.trim();const s=`${i}_${!!t.trimForExclusions}`;let n,r=y.get(s);return r||(r=_.test(i)?function(e,t){return function(i,s){return"string"===typeof i&&i.endsWith(e)?t:null}}(i.substr(4),i):(n=v.exec(x(i,t)))?function(e,t){const i=`/${e}`,s=`\\${e}`,n=function(n,r){return"string"!==typeof n?null:r?r===e?t:null:n===e||n.endsWith(i)||n.endsWith(s)?t:null},r=[e];return n.basenames=r,n.patterns=[t],n.allBasenames=r,n}(n[1],i):(t.trimForExclusions?E:C).test(i)?function(e,t){const i=I(e.slice(1,-1).split(",").map((e=>L(e,t))).filter((e=>e!==R)),e),s=i.length;if(!s)return R;if(1===s)return i[0];const n=function(t,s){for(let n=0,r=i.length;n<r;n++)if(i[n](t,s))return e;return null},r=i.find((e=>!!e.allBasenames));r&&(n.allBasenames=r.allBasenames);const o=i.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);o.length&&(n.allPaths=o);return n}(i,t):(n=b.exec(x(i,t)))?k(n[1].substr(1),i,!0):(n=S.exec(x(i,t)))?k(n[1],i,!1):function(e){try{const t=new RegExp(`^${f(e)}$`);return function(i){return t.lastIndex=0,"string"===typeof i&&t.test(i)?e:null}}catch(t){return R}}(i),y.set(s,r)),T(r,e)}function T(e,t){if("string"===typeof t)return e;const i=function(i,s){return(0,n._1)(i,t.base,!a.j9)?e((0,c.NB)(i.substr(t.base.length),o.Vn),s):null};return i.allBasenames=e.allBasenames,i.allPaths=e.allPaths,i.basenames=e.basenames,i.patterns=e.patterns,i}function x(e,t){return t.trimForExclusions&&e.endsWith("/**")?e.substr(0,e.length-2):e}function k(e,t,i){const s=o.Vn===o.SA.sep,n=s?e:e.replace(g,o.Vn),r=o.Vn+n,a=o.SA.sep+e;let c;return c=i?function(i,o){return"string"!==typeof i||i!==n&&!i.endsWith(r)&&(s||i!==e&&!i.endsWith(a))?null:t}:function(i,r){return"string"!==typeof i||i!==n&&(s||i!==e)?null:t},c.allPaths=[(i?"*/":"./")+e],c}function A(e,t,i){return!(!e||"string"!==typeof t)&&N(e)(t,void 0,i)}function N(e,t={}){if(!e)return w;if("string"===typeof e||function(e){const t=e;if(!t)return!1;return"string"===typeof t.base&&"string"===typeof t.pattern}(e)){const i=L(e,t);if(i===R)return w;const s=function(e,t){return!!i(e,t)};return i.allBasenames&&(s.allBasenames=i.allBasenames),i.allPaths&&(s.allPaths=i.allPaths),s}return function(e,t){const i=I(Object.getOwnPropertyNames(e).map((i=>function(e,t,i){if(!1===t)return R;const n=L(e,i);if(n===R)return R;if("boolean"===typeof t)return n;if(t){const i=t.when;if("string"===typeof i){const t=(t,r,o,a)=>{if(!a||!n(t,r))return null;const c=a(i.replace("$(basename)",(()=>o)));return(0,s.Qg)(c)?c.then((t=>t?e:null)):c?e:null};return t.requiresSiblings=!0,t}}return n}(i,e[i],t))).filter((e=>e!==R))),n=i.length;if(!n)return R;if(!i.some((e=>!!e.requiresSiblings))){if(1===n)return i[0];const e=function(e,t){let n;for(let r=0,o=i.length;r<o;r++){const o=i[r](e,t);if("string"===typeof o)return o;(0,s.Qg)(o)&&(n||(n=[]),n.push(o))}return n?(async()=>{for(const e of n){const t=await e;if("string"===typeof t)return t}return null})():null},t=i.find((e=>!!e.allBasenames));t&&(e.allBasenames=t.allBasenames);const r=i.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);return r.length&&(e.allPaths=r),e}const r=function(e,t,n){let r,a;for(let c=0,l=i.length;c<l;c++){const l=i[c];l.requiresSiblings&&n&&(t||(t=(0,o.P8)(e)),r||(r=t.substr(0,t.length-(0,o.LC)(e).length)));const h=l(e,t,r,n);if("string"===typeof h)return h;(0,s.Qg)(h)&&(a||(a=[]),a.push(h))}return a?(async()=>{for(const e of a){const t=await e;if("string"===typeof t)return t}return null})():null},a=i.find((e=>!!e.allBasenames));a&&(r.allBasenames=a.allBasenames);const c=i.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);c.length&&(r.allPaths=c);return r}(e,t)}function I(e,t){const i=e.filter((e=>!!e.basenames));if(i.length<2)return e;const s=i.reduce(((e,t)=>{const i=t.basenames;return i?e.concat(i):e}),[]);let n;if(t){n=[];for(let e=0,i=s.length;e<i;e++)n.push(t)}else n=i.reduce(((e,t)=>{const i=t.patterns;return i?e.concat(i):e}),[]);const r=function(e,t){if("string"!==typeof e)return null;if(!t){let i;for(i=e.length;i>0;i--){const t=e.charCodeAt(i-1);if(47===t||92===t)break}t=e.substr(i)}const i=s.indexOf(t);return-1!==i?n[i]:null};r.basenames=s,r.patterns=n,r.allBasenames=s;const o=e.filter((e=>!e.basenames));return o.push(r),o}},47210:(e,t,i)=>{"use strict";var s=i(5662),n=i(89403),r=i(31450),o=i(80301),a=i(78209),c=i(59599),l=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},h=function(e,t){return function(i,s){t(i,s,e)}};const d="ignoreUnusualLineTerminators";let u=class extends s.jG{static{this.ID="editor.contrib.unusualLineTerminatorsDetector"}constructor(e,t,i){super(),this._editor=e,this._dialogService=t,this._codeEditorService=i,this._isPresentingDialog=!1,this._config=this._editor.getOption(127),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(127)&&(this._config=this._editor.getOption(127),this._checkForUnusualLineTerminators())}))),this._register(this._editor.onDidChangeModel((()=>{this._checkForUnusualLineTerminators()}))),this._register(this._editor.onDidChangeModelContent((e=>{e.isUndoing||this._checkForUnusualLineTerminators()}))),this._checkForUnusualLineTerminators()}async _checkForUnusualLineTerminators(){if("off"===this._config)return;if(!this._editor.hasModel())return;const e=this._editor.getModel();if(!e.mightContainUnusualLineTerminators())return;const t=function(e,t){return e.getModelProperty(t.uri,d)}(this._codeEditorService,e);if(!0===t)return;if(this._editor.getOption(92))return;if("auto"===this._config)return void e.removeUnusualLineTerminators(this._editor.getSelections());if(this._isPresentingDialog)return;let i;try{this._isPresentingDialog=!0,i=await this._dialogService.confirm({title:a.kg("unusualLineTerminators.title","Unusual Line Terminators"),message:a.kg("unusualLineTerminators.message","Detected unusual line terminators"),detail:a.kg("unusualLineTerminators.detail","The file '{0}' contains one or more unusual line terminator characters, like Line Separator (LS) or Paragraph Separator (PS).\n\nIt is recommended to remove them from the file. This can be configured via `editor.unusualLineTerminators`.",(0,n.P8)(e.uri)),primaryButton:a.kg({key:"unusualLineTerminators.fix",comment:["&& denotes a mnemonic"]},"&&Remove Unusual Line Terminators"),cancelButton:a.kg("unusualLineTerminators.ignore","Ignore")})}finally{this._isPresentingDialog=!1}i.confirmed?e.removeUnusualLineTerminators(this._editor.getSelections()):function(e,t,i){e.setModelProperty(t.uri,d,i)}(this._codeEditorService,e,!0)}};u=l([h(1,c.X),h(2,o.T)],u),(0,r.HW)(u.ID,u,1)},47358:(e,t,i)=>{"use strict";i.d(t,{P:()=>c,$:()=>l});var s=i(60413);const n=new WeakMap;function r(e){if(!e.parent||e.parent===e)return null;try{const t=e.location,i=e.parent.location;if("null"!==t.origin&&"null"!==i.origin&&t.origin!==i.origin)return null}catch(t){return null}return e.parent}class o{static getSameOriginWindowChain(e){let t=n.get(e);if(!t){t=[],n.set(e,t);let i,s=e;do{i=r(s),i?t.push({window:new WeakRef(s),iframeElement:s.frameElement||null}):t.push({window:new WeakRef(s),iframeElement:null}),s=i}while(s)}return t.slice(0)}static getPositionOfChildWindowRelativeToAncestorWindow(e,t){if(!t||e===t)return{top:0,left:0};let i=0,s=0;const n=this.getSameOriginWindowChain(e);for(const r of n){const e=r.window.deref();if(i+=e?.scrollY??0,s+=e?.scrollX??0,e===t)break;if(!r.iframeElement)break;const n=r.iframeElement.getBoundingClientRect();i+=n.top,s+=n.left}return{top:i,left:s}}}var a=i(98067);class c{constructor(e,t){this.timestamp=Date.now(),this.browserEvent=t,this.leftButton=0===t.button,this.middleButton=1===t.button,this.rightButton=2===t.button,this.buttons=t.buttons,this.target=t.target,this.detail=t.detail||1,"dblclick"===t.type&&(this.detail=2),this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,"number"===typeof t.pageX?(this.posx=t.pageX,this.posy=t.pageY):(this.posx=t.clientX+this.target.ownerDocument.body.scrollLeft+this.target.ownerDocument.documentElement.scrollLeft,this.posy=t.clientY+this.target.ownerDocument.body.scrollTop+this.target.ownerDocument.documentElement.scrollTop);const i=o.getPositionOfChildWindowRelativeToAncestorWindow(e,t.view);this.posx-=i.left,this.posy-=i.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}}class l{constructor(e,t=0,i=0){this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=i,this.deltaX=t;let n=!1;if(s.H8){const e=navigator.userAgent.match(/Chrome\/(\d+)/);n=(e?parseInt(e[1]):123)<=122}if(e){const t=e,i=e,r=e.view?.devicePixelRatio||1;if("undefined"!==typeof t.wheelDeltaY)this.deltaY=n?t.wheelDeltaY/(120*r):t.wheelDeltaY/120;else if("undefined"!==typeof i.VERTICAL_AXIS&&i.axis===i.VERTICAL_AXIS)this.deltaY=-i.detail/3;else if("wheel"===e.type){const t=e;t.deltaMode===t.DOM_DELTA_LINE?s.gm&&!a.zx?this.deltaY=-e.deltaY/3:this.deltaY=-e.deltaY:this.deltaY=-e.deltaY/40}if("undefined"!==typeof t.wheelDeltaX)s.nr&&a.uF?this.deltaX=-t.wheelDeltaX/120:this.deltaX=n?t.wheelDeltaX/(120*r):t.wheelDeltaX/120;else if("undefined"!==typeof i.HORIZONTAL_AXIS&&i.axis===i.HORIZONTAL_AXIS)this.deltaX=-e.detail/3;else if("wheel"===e.type){const t=e;t.deltaMode===t.DOM_DELTA_LINE?s.gm&&!a.zx?this.deltaX=-e.deltaX/3:this.deltaX=-e.deltaX:this.deltaX=-e.deltaX/40}0===this.deltaY&&0===this.deltaX&&e.wheelDelta&&(this.deltaY=n?e.wheelDelta/(120*r):e.wheelDelta/120)}}preventDefault(){this.browserEvent?.preventDefault()}stopPropagation(){this.browserEvent?.stopPropagation()}}},47443:(e,t,i)=>{"use strict";i.r(t),i.d(t,{MirrorModel:()=>m,STOP_SYNC_MODEL_DELTA_TIME_MS:()=>u,WorkerTextModelSyncClient:()=>g,WorkerTextModelSyncServer:()=>p});var s=i(90766),n=i(5662),r=i(79400),o=i(83069),a=i(36677),c=i(26486),l=i(91508),h=i(27414);class d{constructor(e,t,i,s){this._uri=e,this._lines=t,this._eol=i,this._versionId=s,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const t=e.changes;for(const i of t)this._acceptDeleteRange(i.range),this._acceptInsertText(new o.y(i.range.startLineNumber,i.range.startColumn),i.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,t=this._lines.length,i=new Uint32Array(t);for(let s=0;s<t;s++)i[s]=this._lines[s].length+e;this._lineStarts=new h.N(i)}}_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)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);else{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))}}_acceptInsertText(e,t){if(0===t.length)return;const i=(0,l.uz)(t);if(1===i.length)return void this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+i[0]+this._lines[e.lineNumber-1].substring(e.column-1));i[i.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)+i[0]);const s=new Uint32Array(i.length-1);for(let n=1;n<i.length;n++)this._lines.splice(e.lineNumber+n-1,0,i[n]),s[n-1]=i[n].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,s)}}const u=6e4;class g extends n.jG{constructor(e,t,i=!1){if(super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=e,this._modelService=t,!i){const e=new s.vb;e.cancelAndSet((()=>this._checkStopModelSync()),Math.round(u/2)),this._register(e)}}dispose(){for(const e in this._syncedModels)(0,n.AS)(this._syncedModels[e]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(e,t=!1){for(const i of e){const e=i.toString();this._syncedModels[e]||this._beginModelSync(i,t),this._syncedModels[e]&&(this._syncedModelsLastUsedTime[e]=(new Date).getTime())}}_checkStopModelSync(){const e=(new Date).getTime(),t=[];for(const i in this._syncedModelsLastUsedTime){e-this._syncedModelsLastUsedTime[i]>u&&t.push(i)}for(const i of t)this._stopModelSync(i)}_beginModelSync(e,t){const i=this._modelService.getModel(e);if(!i)return;if(!t&&i.isTooLargeForSyncing())return;const s=e.toString();this._proxy.$acceptNewModel({url:i.uri.toString(),lines:i.getLinesContent(),EOL:i.getEOL(),versionId:i.getVersionId()});const r=new n.Cm;r.add(i.onDidChangeContent((e=>{this._proxy.$acceptModelChanged(s.toString(),e)}))),r.add(i.onWillDispose((()=>{this._stopModelSync(s)}))),r.add((0,n.s)((()=>{this._proxy.$acceptRemovedModel(s)}))),this._syncedModels[s]=r}_stopModelSync(e){const t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],(0,n.AS)(t)}}class p{constructor(){this._models=Object.create(null)}getModel(e){return this._models[e]}getModels(){const e=[];return Object.keys(this._models).forEach((t=>e.push(this._models[t]))),e}$acceptNewModel(e){this._models[e.url]=new m(r.r.parse(e.url),e.lines,e.EOL,e.versionId)}$acceptModelChanged(e,t){if(!this._models[e])return;this._models[e].onEvents(t)}$acceptRemovedModel(e){this._models[e]&&delete this._models[e]}}class m extends d{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){const t=[];for(let i=0;i<this._lines.length;i++){const s=this._lines[i],n=this.offsetAt(new o.y(i+1,1)),r=s.matchAll(e);for(const e of r)(e.index||0===e.index)&&(e.index=e.index+n),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){const i=(0,c.Th)(e.column,(0,c.Io)(t),this._lines[e.lineNumber-1],0);return i?new a.Q(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn):null}words(e){const t=this._lines,i=this._wordenize.bind(this);let s=0,n="",r=0,o=[];return{*[Symbol.iterator](){for(;;)if(r<o.length){const e=n.substring(o[r].start,o[r].end);r+=1,yield e}else{if(!(s<t.length))break;n=t[s],o=i(n,e),r=0,s+=1}}}}getLineWords(e,t){const i=this._lines[e-1],s=this._wordenize(i,t),n=[];for(const r of s)n.push({word:i.substring(r.start,r.end),startColumn:r.start+1,endColumn:r.end+1});return n}_wordenize(e,t){const i=[];let s;for(t.lastIndex=0;(s=t.exec(e))&&0!==s[0].length;)i.push({start:s.index,end:s.index+s[0].length});return i}getValueInRange(e){if((e=this._validateRange(e)).startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);const t=this._eol,i=e.startLineNumber-1,s=e.endLineNumber-1,n=[];n.push(this._lines[i].substring(e.startColumn-1));for(let r=i+1;r<s;r++)n.push(this._lines[r]);return n.push(this._lines[s].substring(0,e.endColumn-1)),n.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();const t=this._lineStarts.getIndexOf(e),i=this._lines[t.index].length;return{lineNumber:1+t.index,column:1+Math.min(t.remainder,i)}}_validateRange(e){const t=this._validatePosition({lineNumber:e.startLineNumber,column:e.startColumn}),i=this._validatePosition({lineNumber:e.endLineNumber,column:e.endColumn});return t.lineNumber!==e.startLineNumber||t.column!==e.startColumn||i.lineNumber!==e.endLineNumber||i.column!==e.endColumn?{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:i.lineNumber,endColumn:i.column}:e}_validatePosition(e){if(!o.y.isIPosition(e))throw new Error("bad position");let{lineNumber:t,column:i}=e,s=!1;if(t<1)t=1,i=1,s=!0;else if(t>this._lines.length)t=this._lines.length,i=this._lines[t-1].length+1,s=!0;else{const e=this._lines[t-1].length+1;i<1?(i=1,s=!0):i>e&&(i=e,s=!0)}return s?{lineNumber:t,column:i}:e}}},47508:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r,l:()=>n});var s=i(63591);const n=(0,s.u1)("contextViewService"),r=(0,s.u1)("contextMenuService")},47579:(e,t,i)=>{"use strict";i.d(t,{$D:()=>s,I_:()=>r,To:()=>n,Ym:()=>o});const s=(0,i(63591).u1)("undoRedoService");class n{constructor(e,t){this.resource=e,this.elements=t}}class r{static{this._ID=0}constructor(){this.id=r._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}static{this.None=new r}}class o{static{this._ID=0}constructor(){this.id=o._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}static{this.None=new o}}},47612:(e,t,i)=>{"use strict";i.d(t,{Fd:()=>d,Gy:()=>c,Pz:()=>h,Yf:()=>l,lR:()=>p,zy:()=>g});var s=i(41234),n=i(5662),r=i(63591),o=i(46359),a=i(86723);const c=(0,r.u1)("themeService");function l(e){return{id:e}}function h(e){switch(e){case a.zM.DARK:return"vs-dark";case a.zM.HIGH_CONTRAST_DARK:return"hc-black";case a.zM.HIGH_CONTRAST_LIGHT:return"hc-light";default:return"vs"}}const d={ThemingContribution:"base.contributions.theming"};const u=new class{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new s.vl}onColorThemeChange(e){return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),(0,n.s)((()=>{const t=this.themingParticipants.indexOf(e);this.themingParticipants.splice(t,1)}))}getThemingParticipants(){return this.themingParticipants}};function g(e){return u.onColorThemeChange(e)}o.O.add(d.ThemingContribution,u);class p extends n.jG{constructor(e){super(),this.themeService=e,this.theme=e.getColorTheme(),this._register(this.themeService.onDidColorThemeChange((e=>this.onThemeChange(e))))}onThemeChange(e){this.theme=e,this.updateStyles()}updateStyles(){}}},47625:(e,t,i)=>{"use strict";i.d(t,{x:()=>u,l:()=>d});var s=i(8597),n=i(48196),r=i(42904),o=i(83619),a=i(5662),c=i(10146),l=i(78209);const h=s.$,d={keybindingLabelBackground:void 0,keybindingLabelForeground:void 0,keybindingLabelBorder:void 0,keybindingLabelBottomBorder:void 0,keybindingLabelShadow:void 0};class u extends a.jG{constructor(e,t,i){super(),this.os=t,this.keyElements=new Set,this.options=i||Object.create(null);const o=this.options.keybindingLabelForeground;this.domNode=s.BC(e,h(".monaco-keybinding")),o&&(this.domNode.style.color=o),this.hover=this._register((0,n.i)().setupManagedHover((0,r.nZ)("mouse"),this.domNode,"")),this.didEverRender=!1,e.appendChild(this.domNode)}get element(){return this.domNode}set(e,t){this.didEverRender&&this.keybinding===e&&u.areSame(this.matches,t)||(this.keybinding=e,this.matches=t,this.render())}render(){if(this.clear(),this.keybinding){const e=this.keybinding.getChords();e[0]&&this.renderChord(this.domNode,e[0],this.matches?this.matches.firstPart:null);for(let i=1;i<e.length;i++)s.BC(this.domNode,h("span.monaco-keybinding-key-chord-separator",void 0," ")),this.renderChord(this.domNode,e[i],this.matches?this.matches.chordPart:null);const t=this.options.disableTitle?void 0:this.keybinding.getAriaLabel()||void 0;this.hover.update(t),this.domNode.setAttribute("aria-label",t||"")}else this.options&&this.options.renderUnboundKeybindings&&this.renderUnbound(this.domNode);this.didEverRender=!0}clear(){s.w_(this.domNode),this.keyElements.clear()}renderChord(e,t,i){const s=o.Of.modifierLabels[this.os];t.ctrlKey&&this.renderKey(e,s.ctrlKey,Boolean(i?.ctrlKey),s.separator),t.shiftKey&&this.renderKey(e,s.shiftKey,Boolean(i?.shiftKey),s.separator),t.altKey&&this.renderKey(e,s.altKey,Boolean(i?.altKey),s.separator),t.metaKey&&this.renderKey(e,s.metaKey,Boolean(i?.metaKey),s.separator);const n=t.keyLabel;n&&this.renderKey(e,n,Boolean(i?.keyCode),"")}renderKey(e,t,i,n){s.BC(e,this.createKeyElement(t,i?".highlight":"")),n&&s.BC(e,h("span.monaco-keybinding-key-separator",void 0,n))}renderUnbound(e){s.BC(e,this.createKeyElement((0,l.kg)("unbound","Unbound")))}createKeyElement(e,t=""){const i=h("span.monaco-keybinding-key"+t,void 0,e);return this.keyElements.add(i),this.options.keybindingLabelBackground&&(i.style.backgroundColor=this.options.keybindingLabelBackground),this.options.keybindingLabelBorder&&(i.style.borderColor=this.options.keybindingLabelBorder),this.options.keybindingLabelBottomBorder&&(i.style.borderBottomColor=this.options.keybindingLabelBottomBorder),this.options.keybindingLabelShadow&&(i.style.boxShadow=`inset 0 -1px 0 ${this.options.keybindingLabelShadow}`),i}static areSame(e,t){return e===t||!e&&!t||!!e&&!!t&&(0,c.aI)(e.firstPart,t.firstPart)&&(0,c.aI)(e.chordPart,t.chordPart)}}},47661:(e,t,i)=>{"use strict";function s(e,t){const i=Math.pow(10,t);return Math.round(e*i)/i}i.d(t,{$J:()=>o,Q1:()=>a,bU:()=>n,hB:()=>r});class n{constructor(e,t,i,n=1){this._rgbaBrand=void 0,this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,t)),this.b=0|Math.min(255,Math.max(0,i)),this.a=s(Math.max(Math.min(1,n),0),3)}static equals(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}}class r{constructor(e,t,i,n){this._hslaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=s(Math.max(Math.min(1,t),0),3),this.l=s(Math.max(Math.min(1,i),0),3),this.a=s(Math.max(Math.min(1,n),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(e){const t=e.r/255,i=e.g/255,s=e.b/255,n=e.a,o=Math.max(t,i,s),a=Math.min(t,i,s);let c=0,l=0;const h=(a+o)/2,d=o-a;if(d>0){switch(l=Math.min(h<=.5?d/(2*h):d/(2-2*h),1),o){case t:c=(i-s)/d+(i<s?6:0);break;case i:c=(s-t)/d+2;break;case s:c=(t-i)/d+4}c*=60,c=Math.round(c)}return new r(c,l,h,n)}static _hue2rgb(e,t,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}static toRGBA(e){const t=e.h/360,{s:i,l:s,a:o}=e;let a,c,l;if(0===i)a=c=l=s;else{const e=s<.5?s*(1+i):s+i-s*i,n=2*s-e;a=r._hue2rgb(n,e,t+1/3),c=r._hue2rgb(n,e,t),l=r._hue2rgb(n,e,t-1/3)}return new n(Math.round(255*a),Math.round(255*c),Math.round(255*l),o)}}class o{constructor(e,t,i,n){this._hsvaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=s(Math.max(Math.min(1,t),0),3),this.v=s(Math.max(Math.min(1,i),0),3),this.a=s(Math.max(Math.min(1,n),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(e){const t=e.r/255,i=e.g/255,s=e.b/255,n=Math.max(t,i,s),r=n-Math.min(t,i,s),a=0===n?0:r/n;let c;return c=0===r?0:n===t?((i-s)/r%6+6)%6:n===i?(s-t)/r+2:(t-i)/r+4,new o(Math.round(60*c),a,n,e.a)}static toRGBA(e){const{h:t,s:i,v:s,a:r}=e,o=s*i,a=o*(1-Math.abs(t/60%2-1)),c=s-o;let[l,h,d]=[0,0,0];return t<60?(l=o,h=a):t<120?(l=a,h=o):t<180?(h=o,d=a):t<240?(h=a,d=o):t<300?(l=a,d=o):t<=360&&(l=o,d=a),l=Math.round(255*(l+c)),h=Math.round(255*(h+c)),d=Math.round(255*(d+c)),new n(l,h,d,r)}}class a{static fromHex(e){return a.Format.CSS.parseHex(e)||a.red}static equals(e,t){return!e&&!t||!(!e||!t)&&e.equals(t)}get hsla(){return this._hsla?this._hsla:r.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:o.fromRGBA(this.rgba)}constructor(e){if(!e)throw new Error("Color needs a value");if(e instanceof n)this.rgba=e;else if(e instanceof r)this._hsla=e,this.rgba=r.toRGBA(e);else{if(!(e instanceof o))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=o.toRGBA(e)}}equals(e){return!!e&&n.equals(this.rgba,e.rgba)&&r.equals(this.hsla,e.hsla)&&o.equals(this.hsva,e.hsva)}getRelativeLuminance(){return s(.2126*a._relativeLuminanceForComponent(this.rgba.r)+.7152*a._relativeLuminanceForComponent(this.rgba.g)+.0722*a._relativeLuminanceForComponent(this.rgba.b),4)}static _relativeLuminanceForComponent(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}isLighter(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128}isLighterThan(e){return this.getRelativeLuminance()>e.getRelativeLuminance()}isDarkerThan(e){return this.getRelativeLuminance()<e.getRelativeLuminance()}lighten(e){return new a(new r(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*e,this.hsla.a))}darken(e){return new a(new r(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*e,this.hsla.a))}transparent(e){const{r:t,g:i,b:s,a:r}=this.rgba;return new a(new n(t,i,s,r*e))}isTransparent(){return 0===this.rgba.a}isOpaque(){return 1===this.rgba.a}opposite(){return new a(new n(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(e){if(this.isOpaque()||1!==e.rgba.a)return this;const{r:t,g:i,b:s,a:r}=this.rgba;return new a(new n(e.rgba.r-r*(e.rgba.r-t),e.rgba.g-r*(e.rgba.g-i),e.rgba.b-r*(e.rgba.b-s),1))}toString(){return this._toString||(this._toString=a.Format.CSS.format(this)),this._toString}static getLighterColor(e,t,i){if(e.isLighterThan(t))return e;i=i||.5;const s=e.getRelativeLuminance(),n=t.getRelativeLuminance();return i=i*(n-s)/n,e.lighten(i)}static getDarkerColor(e,t,i){if(e.isDarkerThan(t))return e;i=i||.5;const s=e.getRelativeLuminance();return i=i*(s-t.getRelativeLuminance())/s,e.darken(i)}static{this.white=new a(new n(255,255,255,1))}static{this.black=new a(new n(0,0,0,1))}static{this.red=new a(new n(255,0,0,1))}static{this.blue=new a(new n(0,0,255,1))}static{this.green=new a(new n(0,255,0,1))}static{this.cyan=new a(new n(0,255,255,1))}static{this.lightgrey=new a(new n(211,211,211,1))}static{this.transparent=new a(new n(0,0,0,0))}}!function(e){let t;!function(t){let i;!function(t){function i(e){const t=e.toString(16);return 2!==t.length?"0"+t:t}function s(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:case 65:return 10;case 98:case 66:return 11;case 99:case 67:return 12;case 100:case 68:return 13;case 101:case 69:return 14;case 102:case 70:return 15}return 0}t.formatRGB=function(t){return 1===t.rgba.a?`rgb(${t.rgba.r}, ${t.rgba.g}, ${t.rgba.b})`:e.Format.CSS.formatRGBA(t)},t.formatRGBA=function(e){return`rgba(${e.rgba.r}, ${e.rgba.g}, ${e.rgba.b}, ${+e.rgba.a.toFixed(2)})`},t.formatHSL=function(t){return 1===t.hsla.a?`hsl(${t.hsla.h}, ${(100*t.hsla.s).toFixed(2)}%, ${(100*t.hsla.l).toFixed(2)}%)`:e.Format.CSS.formatHSLA(t)},t.formatHSLA=function(e){return`hsla(${e.hsla.h}, ${(100*e.hsla.s).toFixed(2)}%, ${(100*e.hsla.l).toFixed(2)}%, ${e.hsla.a.toFixed(2)})`},t.formatHex=function(e){return`#${i(e.rgba.r)}${i(e.rgba.g)}${i(e.rgba.b)}`},t.formatHexA=function(t,s=!1){return s&&1===t.rgba.a?e.Format.CSS.formatHex(t):`#${i(t.rgba.r)}${i(t.rgba.g)}${i(t.rgba.b)}${i(Math.round(255*t.rgba.a))}`},t.format=function(t){return t.isOpaque()?e.Format.CSS.formatHex(t):e.Format.CSS.formatRGBA(t)},t.parseHex=function(t){const i=t.length;if(0===i)return null;if(35!==t.charCodeAt(0))return null;if(7===i){const i=16*s(t.charCodeAt(1))+s(t.charCodeAt(2)),r=16*s(t.charCodeAt(3))+s(t.charCodeAt(4)),o=16*s(t.charCodeAt(5))+s(t.charCodeAt(6));return new e(new n(i,r,o,1))}if(9===i){const i=16*s(t.charCodeAt(1))+s(t.charCodeAt(2)),r=16*s(t.charCodeAt(3))+s(t.charCodeAt(4)),o=16*s(t.charCodeAt(5))+s(t.charCodeAt(6)),a=16*s(t.charCodeAt(7))+s(t.charCodeAt(8));return new e(new n(i,r,o,a/255))}if(4===i){const i=s(t.charCodeAt(1)),r=s(t.charCodeAt(2)),o=s(t.charCodeAt(3));return new e(new n(16*i+i,16*r+r,16*o+o))}if(5===i){const i=s(t.charCodeAt(1)),r=s(t.charCodeAt(2)),o=s(t.charCodeAt(3)),a=s(t.charCodeAt(4));return new e(new n(16*i+i,16*r+r,16*o+o,(16*a+a)/255))}return null}}(i=t.CSS||(t.CSS={}))}(t=e.Format||(e.Format={}))}(a||(a={}))},48116:(e,t,i)=>{"use strict";i.d(t,{aR:()=>L,dt:()=>E,f3:()=>w,l1:()=>S,ob:()=>C,p3:()=>k,r3:()=>A});var s=i(18447),n=i(64383),r=i(26690),o=i(5662),a=i(78381),c=i(631),l=i(79400),h=i(83069),d=i(36677),u=i(18938),g=i(29319),p=i(78209),m=i(27195),f=i(50091),_=i(32848),v=i(56942);const C={Visible:i(89100).dg,HasFocusedSuggestion:new _.N1("suggestWidgetHasFocusedSuggestion",!1,(0,p.kg)("suggestWidgetHasSelection","Whether any suggestion is focused")),DetailsVisible:new _.N1("suggestWidgetDetailsVisible",!1,(0,p.kg)("suggestWidgetDetailsVisible","Whether suggestion details are visible")),MultipleSuggestions:new _.N1("suggestWidgetMultipleSuggestions",!1,(0,p.kg)("suggestWidgetMultipleSuggestions","Whether there are multiple suggestions to pick from")),MakesTextEdit:new _.N1("suggestionMakesTextEdit",!0,(0,p.kg)("suggestionMakesTextEdit","Whether inserting the current suggestion yields in a change or has everything already been typed")),AcceptSuggestionsOnEnter:new _.N1("acceptSuggestionOnEnter",!0,(0,p.kg)("acceptSuggestionOnEnter","Whether suggestions are inserted when pressing Enter")),HasInsertAndReplaceRange:new _.N1("suggestionHasInsertAndReplaceRange",!1,(0,p.kg)("suggestionHasInsertAndReplaceRange","Whether the current suggestion has insert and replace behaviour")),InsertMode:new _.N1("suggestionInsertMode",void 0,{type:"string",description:(0,p.kg)("suggestionInsertMode","Whether the default behaviour is to insert or replace")}),CanResolve:new _.N1("suggestionCanResolve",!1,(0,p.kg)("suggestionCanResolve","Whether the current suggestion supports to resolve further details"))},E=new m.D8("suggestWidgetStatusBar");class b{constructor(e,t,i,s){this.position=e,this.completion=t,this.container=i,this.provider=s,this.isInvalid=!1,this.score=r.ne.Default,this.distance=0,this.textLabel="string"===typeof t.label?t.label:t.label?.label,this.labelLow=this.textLabel.toLowerCase(),this.isInvalid=!this.textLabel,this.sortTextLow=t.sortText&&t.sortText.toLowerCase(),this.filterTextLow=t.filterText&&t.filterText.toLowerCase(),this.extensionId=t.extensionId,d.Q.isIRange(t.range)?(this.editStart=new h.y(t.range.startLineNumber,t.range.startColumn),this.editInsertEnd=new h.y(t.range.endLineNumber,t.range.endColumn),this.editReplaceEnd=new h.y(t.range.endLineNumber,t.range.endColumn),this.isInvalid=this.isInvalid||d.Q.spansMultipleLines(t.range)||t.range.startLineNumber!==e.lineNumber):(this.editStart=new h.y(t.range.insert.startLineNumber,t.range.insert.startColumn),this.editInsertEnd=new h.y(t.range.insert.endLineNumber,t.range.insert.endColumn),this.editReplaceEnd=new h.y(t.range.replace.endLineNumber,t.range.replace.endColumn),this.isInvalid=this.isInvalid||d.Q.spansMultipleLines(t.range.insert)||d.Q.spansMultipleLines(t.range.replace)||t.range.insert.startLineNumber!==e.lineNumber||t.range.replace.startLineNumber!==e.lineNumber||t.range.insert.startColumn!==t.range.replace.startColumn),"function"!==typeof s.resolveCompletionItem&&(this._resolveCache=Promise.resolve(),this._resolveDuration=0)}get isResolved(){return void 0!==this._resolveDuration}get resolveDuration(){return void 0!==this._resolveDuration?this._resolveDuration:-1}async resolve(e){if(!this._resolveCache){const t=e.onCancellationRequested((()=>{this._resolveCache=void 0,this._resolveDuration=void 0})),i=new a.W(!0);this._resolveCache=Promise.resolve(this.provider.resolveCompletionItem(this.completion,e)).then((e=>{Object.assign(this.completion,e),this._resolveDuration=i.elapsed()}),(e=>{(0,n.MB)(e)&&(this._resolveCache=void 0,this._resolveDuration=void 0)})).finally((()=>{t.dispose()}))}return this._resolveCache}}class S{static{this.default=new S}constructor(e=2,t=new Set,i=new Set,s=new Map,n=!0){this.snippetSortOrder=e,this.kindFilter=t,this.providerFilter=i,this.providerItemsToReuse=s,this.showDeprecated=n}}let y;function w(){return y}class R{constructor(e,t,i,s){this.items=e,this.needsClipboard=t,this.durations=i,this.disposable=s}}async function L(e,t,i,r=S.default,c={triggerKind:0},l=s.XO.None){const h=new a.W;i=i.clone();const u=t.getWordAtPosition(i),p=u?new d.Q(i.lineNumber,u.startColumn,i.lineNumber,u.endColumn):d.Q.fromPositions(i),m={replace:p,insert:p.setEndPosition(i.lineNumber,i.column)},f=[],_=new o.Cm,v=[];let C=!1;const E=(e,t,s)=>{let n=!1;if(!t)return n;for(const o of t.suggestions)if(!r.kindFilter.has(o.kind)){if(!r.showDeprecated&&o?.tags?.includes(1))continue;o.range||(o.range=m),o.sortText||(o.sortText="string"===typeof o.label?o.label:o.label.label),!C&&o.insertTextRules&&4&o.insertTextRules&&(C=g.fr.guessNeedsClipboard(o.insertText)),f.push(new b(i,o,t,e)),n=!0}return(0,o.Xm)(t)&&_.add(t),v.push({providerName:e._debugDisplayName??"unknown_provider",elapsedProvider:t.duration??-1,elapsedOverall:s.elapsed()}),n},w=(async()=>{if(!y||r.kindFilter.has(27))return;const e=r.providerItemsToReuse.get(y);if(e)return void e.forEach((e=>f.push(e)));if(r.providerFilter.size>0&&!r.providerFilter.has(y))return;const s=new a.W,n=await y.provideCompletionItems(t,i,c,l);E(y,n,s)})();for(const s of e.orderedGroups(t)){let e=!1;if(await Promise.all(s.map((async s=>{if(r.providerItemsToReuse.has(s)){const t=r.providerItemsToReuse.get(s);return t.forEach((e=>f.push(e))),void(e=e||t.length>0)}if(!(r.providerFilter.size>0)||r.providerFilter.has(s))try{const n=new a.W,r=await s.provideCompletionItems(t,i,c,l);e=E(s,r,n)||e}catch(o){(0,n.M_)(o)}}))),e||l.isCancellationRequested)break}return await w,l.isCancellationRequested?(_.dispose(),Promise.reject(new n.AL)):new R(f.sort((L=r.snippetSortOrder,x.get(L))),C,{entries:v,elapsed:h.elapsed()},_);var L}function T(e,t){if(e.sortTextLow&&t.sortTextLow){if(e.sortTextLow<t.sortTextLow)return-1;if(e.sortTextLow>t.sortTextLow)return 1}return e.textLabel<t.textLabel?-1:e.textLabel>t.textLabel?1:e.completion.kind-t.completion.kind}const x=new Map;function k(e,t){e.getContribution("editor.contrib.suggestController")?.triggerSuggest((new Set).add(t),void 0,!0)}x.set(0,(function(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return-1;if(27===t.completion.kind)return 1}return T(e,t)})),x.set(2,(function(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return 1;if(27===t.completion.kind)return-1}return T(e,t)})),x.set(1,T),f.w.registerCommand("_executeCompletionItemProvider",(async(e,...t)=>{const[i,n,r,o]=t;(0,c.j)(l.r.isUri(i)),(0,c.j)(h.y.isIPosition(n)),(0,c.j)("string"===typeof r||!r),(0,c.j)("number"===typeof o||!o);const{completionProvider:a}=e.get(v.ILanguageFeaturesService),d=await e.get(u.ITextModelService).createModelReference(i);try{const e={incomplete:!1,suggestions:[]},t=[],i=d.object.textEditorModel.validatePosition(n),c=await L(a,d.object.textEditorModel,i,void 0,{triggerCharacter:r??void 0,triggerKind:r?1:0});for(const n of c.items)t.length<(o??0)&&t.push(n.resolve(s.XO.None)),e.incomplete=e.incomplete||n.container.incomplete,e.suggestions.push(n.completion);try{return await Promise.all(t),e}finally{setTimeout((()=>c.disposable.dispose()),100)}}finally{d.dispose()}}));class A{static isAllOff(e){return"off"===e.other&&"off"===e.comments&&"off"===e.strings}static isAllOn(e){return"on"===e.other&&"on"===e.comments&&"on"===e.strings}static valueFor(e,t){switch(t){case 1:return e.comments;case 2:return e.strings;default:return e.other}}}},48196:(e,t,i)=>{"use strict";i.d(t,{e:()=>n,i:()=>r});let s={showHover:()=>{},hideHover:()=>{},showAndFocusLastHover:()=>{},setupManagedHover:()=>null,showManagedHover:()=>{}};function n(e){s=e}function r(){return s}},48215:()=>{},48279:(e,t,i)=>{"use strict";var s=i(25890),n=i(18447),r=i(64383),o=i(24939),a=i(5662),c=i(31450),l=i(80301),h=i(60534),d=i(36677),u=i(60002),g=i(10920),p=i(56942),m=i(49079),f=i(36998),_=i(78209),v=i(87213),C=i(50091),E=i(32848),b=i(63591),S=i(73823),y=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},w=function(e,t){return function(i,s){t(i,s,e)}};let R=class{static{this.ID="editor.contrib.autoFormat"}constructor(e,t,i,s){this._editor=e,this._languageFeaturesService=t,this._workerService=i,this._accessibilitySignalService=s,this._disposables=new a.Cm,this._sessionDisposables=new a.Cm,this._disposables.add(t.onTypeFormattingEditProvider.onDidChange(this._update,this)),this._disposables.add(e.onDidChangeModel((()=>this._update()))),this._disposables.add(e.onDidChangeModelLanguage((()=>this._update()))),this._disposables.add(e.onDidChangeConfiguration((e=>{e.hasChanged(56)&&this._update()}))),this._update()}dispose(){this._disposables.dispose(),this._sessionDisposables.dispose()}_update(){if(this._sessionDisposables.clear(),!this._editor.getOption(56))return;if(!this._editor.hasModel())return;const e=this._editor.getModel(),[t]=this._languageFeaturesService.onTypeFormattingEditProvider.ordered(e);if(!t||!t.autoFormatTriggerCharacters)return;const i=new h.y;for(const s of t.autoFormatTriggerCharacters)i.add(s.charCodeAt(0));this._sessionDisposables.add(this._editor.onDidType((e=>{const t=e.charCodeAt(e.length-1);i.has(t)&&this._trigger(String.fromCharCode(t))})))}_trigger(e){if(!this._editor.hasModel())return;if(this._editor.getSelections().length>1||!this._editor.getSelection().isEmpty())return;const t=this._editor.getModel(),i=this._editor.getPosition(),r=new n.Qi,o=this._editor.onDidChangeModelContent((e=>{if(e.isFlush)return r.cancel(),void o.dispose();for(let t=0,s=e.changes.length;t<s;t++){if(e.changes[t].range.endLineNumber<=i.lineNumber)return r.cancel(),void o.dispose()}}));(0,m._V)(this._workerService,this._languageFeaturesService,t,i,e,t.getFormattingOptions(),r.token).then((e=>{r.token.isCancellationRequested||(0,s.EI)(e)&&(this._accessibilitySignalService.playSignal(v.Rh.format,{userGesture:!1}),f.c.execute(this._editor,e,!0))})).finally((()=>{o.dispose()}))}};R=y([w(1,p.ILanguageFeaturesService),w(2,g.IEditorWorkerService),w(3,v.Nt)],R);let L=class{static{this.ID="editor.contrib.formatOnPaste"}constructor(e,t,i){this.editor=e,this._languageFeaturesService=t,this._instantiationService=i,this._callOnDispose=new a.Cm,this._callOnModel=new a.Cm,this._callOnDispose.add(e.onDidChangeConfiguration((()=>this._update()))),this._callOnDispose.add(e.onDidChangeModel((()=>this._update()))),this._callOnDispose.add(e.onDidChangeModelLanguage((()=>this._update()))),this._callOnDispose.add(t.documentRangeFormattingEditProvider.onDidChange(this._update,this))}dispose(){this._callOnDispose.dispose(),this._callOnModel.dispose()}_update(){this._callOnModel.clear(),this.editor.getOption(55)&&this.editor.hasModel()&&this._languageFeaturesService.documentRangeFormattingEditProvider.has(this.editor.getModel())&&this._callOnModel.add(this.editor.onDidPaste((({range:e})=>this._trigger(e))))}_trigger(e){this.editor.hasModel()&&(this.editor.getSelections().length>1||this._instantiationService.invokeFunction(m.jX,this.editor,e,2,S.ke.None,n.XO.None,!1).catch(r.dz))}};L=y([w(1,p.ILanguageFeaturesService),w(2,b._Y)],L);class T extends c.ks{constructor(){super({id:"editor.action.formatDocument",label:_.kg("formatDocument.label","Format Document"),alias:"Format Document",precondition:E.M$.and(u.R.notInCompositeEditor,u.R.writable,u.R.hasDocumentFormattingProvider),kbOpts:{kbExpr:u.R.editorTextFocus,primary:1572,linux:{primary:3111},weight:100},contextMenuOpts:{group:"1_modification",order:1.3}})}async run(e,t){if(t.hasModel()){const i=e.get(b._Y),s=e.get(S.N8);await s.showWhile(i.invokeFunction(m.vg,t,1,S.ke.None,n.XO.None,!0),250)}}}class x extends c.ks{constructor(){super({id:"editor.action.formatSelection",label:_.kg("formatSelection.label","Format Selection"),alias:"Format Selection",precondition:E.M$.and(u.R.writable,u.R.hasDocumentSelectionFormattingProvider),kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2084),weight:100},contextMenuOpts:{when:u.R.hasNonEmptySelection,group:"1_modification",order:1.31}})}async run(e,t){if(!t.hasModel())return;const i=e.get(b._Y),s=t.getModel(),r=t.getSelections().map((e=>e.isEmpty()?new d.Q(e.startLineNumber,1,e.startLineNumber,s.getLineMaxColumn(e.startLineNumber)):e)),o=e.get(S.N8);await o.showWhile(i.invokeFunction(m.jX,t,r,1,S.ke.None,n.XO.None,!0),250)}}(0,c.HW)(R.ID,R,2),(0,c.HW)(L.ID,L,2),(0,c.Fl)(T),(0,c.Fl)(x),C.w.registerCommand("editor.action.format",(async e=>{const t=e.get(l.T).getFocusedCodeEditor();if(!t||!t.hasModel())return;const i=e.get(C.d);t.getSelection().isEmpty()?await i.executeCommand("editor.action.formatDocument"):await i.executeCommand("editor.action.formatSelection")}))},48448:(e,t,i)=>{"use strict";var s=i(34918);(0,s.K)({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>i.e(6262).then(i.bind(i,66262))}),(0,s.K)({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>i.e(6262).then(i.bind(i,66262))})},48495:(e,t,i)=>{"use strict";function s(e,t){const i=[],s=[];for(const n of e)t.has(n)||i.push(n);for(const n of t)e.has(n)||s.push(n);return{removed:i,added:s}}function n(e,t){const i=new Set;for(const s of t)e.has(s)&&i.add(s);return i}i.d(t,{E:()=>n,Z:()=>s})},49079:(e,t,i)=>{"use strict";i.d(t,{Pj:()=>L,jX:()=>T,vg:()=>k,_V:()=>N});var s=i(25890),n=i(18447),r=i(64383),o=i(42522),a=i(58925),c=i(631),l=i(79400),h=i(50868),d=i(34326),u=i(83069),g=i(36677),p=i(75326),m=i(10920),f=i(18938),_=i(36998),v=i(50091);class C{constructor(e){this.value=e,this._lower=e.toLowerCase()}static toKey(e){return"string"===typeof e?e.toLowerCase():e._lower}}class E{constructor(e){if(this._set=new Set,e)for(const t of e)this.add(t)}add(e){this._set.add(C.toKey(e))}has(e){return this._set.has(C.toKey(e))}}var b=i(63591),S=i(56942),y=i(18801),w=i(87213);function R(e,t,i){const s=[],n=new E,r=e.ordered(i);for(const a of r)s.push(a),a.extensionId&&n.add(a.extensionId);const o=t.ordered(i);for(const a of o){if(a.extensionId){if(n.has(a.extensionId))continue;n.add(a.extensionId)}s.push({displayName:a.displayName,extensionId:a.extensionId,provideDocumentFormattingEdits:(e,t,i)=>a.provideDocumentRangeFormattingEdits(e,e.getFullModelRange(),t,i)})}return s}class L{static{this._selectors=new a.w}static setFormatterSelector(e){return{dispose:L._selectors.unshift(e)}}static async select(e,t,i,s){if(0===e.length)return;const n=o.f.first(L._selectors);return n?await n(e,t,i,s):void 0}}async function T(e,t,i,s,n,r,o){const a=e.get(b._Y),{documentRangeFormattingEditProvider:c}=e.get(S.ILanguageFeaturesService),l=(0,d.z9)(t)?t.getModel():t,h=c.ordered(l),u=await L.select(h,l,s,2);u&&(n.report(u),await a.invokeFunction(x,u,t,i,r,o))}async function x(e,t,i,n,r,o){const a=e.get(m.IEditorWorkerService),c=e.get(y.rr),l=e.get(w.Nt);let u,f;(0,d.z9)(i)?(u=i.getModel(),f=new h.gI(i,5,void 0,r)):(u=i,f=new h.ER(i,r));const v=[];let C=0;for(const h of(0,s._j)(n).sort(g.Q.compareRangesUsingStarts))C>0&&g.Q.areIntersectingOrTouching(v[C-1],h)?v[C-1]=g.Q.fromPositions(v[C-1].getStartPosition(),h.getEndPosition()):C=v.push(h);const E=async e=>{c.trace("[format][provideDocumentRangeFormattingEdits] (request)",t.extensionId?.value,e);const i=await t.provideDocumentRangeFormattingEdits(u,e,u.getFormattingOptions(),f.token)||[];return c.trace("[format][provideDocumentRangeFormattingEdits] (response)",t.extensionId?.value,i),i},b=(e,t)=>{if(!e.length||!t.length)return!1;const i=e.reduce(((e,t)=>g.Q.plusRange(e,t.range)),e[0].range);if(!t.some((e=>g.Q.intersectRanges(i,e.range))))return!1;for(const s of e)for(const e of t)if(g.Q.intersectRanges(s.range,e.range))return!0;return!1},S=[],R=[];try{if("function"===typeof t.provideDocumentRangesFormattingEdits){c.trace("[format][provideDocumentRangeFormattingEdits] (request)",t.extensionId?.value,v);const e=await t.provideDocumentRangesFormattingEdits(u,v,u.getFormattingOptions(),f.token)||[];c.trace("[format][provideDocumentRangeFormattingEdits] (response)",t.extensionId?.value,e),R.push(e)}else{for(const e of v){if(f.token.isCancellationRequested)return!0;R.push(await E(e))}for(let e=0;e<v.length;++e)for(let t=e+1;t<v.length;++t){if(f.token.isCancellationRequested)return!0;if(b(R[e],R[t])){const i=g.Q.plusRange(v[e],v[t]),s=await E(i);v.splice(t,1),v.splice(e,1),v.push(i),R.splice(t,1),R.splice(e,1),R.push(s),e=0,t=0}}}for(const e of R){if(f.token.isCancellationRequested)return!0;const t=await a.computeMoreMinimalEdits(u.uri,e);t&&S.push(...t)}}finally{f.dispose()}if(0===S.length)return!1;if((0,d.z9)(i))_.c.execute(i,S,!0),i.revealPositionInCenterIfOutsideViewport(i.getPosition(),1);else{const[{range:e}]=S,t=new p.L(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn);u.pushEditOperations([t],S.map((e=>({text:e.text,range:g.Q.lift(e.range),forceMoveMarkers:!0}))),(e=>{for(const{range:i}of e)if(g.Q.areIntersectingOrTouching(i,t))return[new p.L(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn)];return null}))}return l.playSignal(w.Rh.format,{userGesture:o}),!0}async function k(e,t,i,s,n,r){const o=e.get(b._Y),a=e.get(S.ILanguageFeaturesService),c=(0,d.z9)(t)?t.getModel():t,l=R(a.documentFormattingEditProvider,a.documentRangeFormattingEditProvider,c),h=await L.select(l,c,i,1);h&&(s.report(h),await o.invokeFunction(A,h,t,i,n,r))}async function A(e,t,i,s,n,r){const o=e.get(m.IEditorWorkerService),a=e.get(w.Nt);let c,l,u;(0,d.z9)(i)?(c=i.getModel(),l=new h.gI(i,5,void 0,n)):(c=i,l=new h.ER(i,n));try{const e=await t.provideDocumentFormattingEdits(c,c.getFormattingOptions(),l.token);if(u=await o.computeMoreMinimalEdits(c.uri,e),l.token.isCancellationRequested)return!0}finally{l.dispose()}if(!u||0===u.length)return!1;if((0,d.z9)(i))_.c.execute(i,u,2!==s),2!==s&&i.revealPositionInCenterIfOutsideViewport(i.getPosition(),1);else{const[{range:e}]=u,t=new p.L(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn);c.pushEditOperations([t],u.map((e=>({text:e.text,range:g.Q.lift(e.range),forceMoveMarkers:!0}))),(e=>{for(const{range:i}of e)if(g.Q.areIntersectingOrTouching(i,t))return[new p.L(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn)];return null}))}return a.playSignal(w.Rh.format,{userGesture:r}),!0}function N(e,t,i,s,n,o,a){const c=t.onTypeFormattingEditProvider.ordered(i);return 0===c.length||c[0].autoFormatTriggerCharacters.indexOf(n)<0?Promise.resolve(void 0):Promise.resolve(c[0].provideOnTypeFormattingEdits(i,s,n,o,a)).catch(r.M_).then((t=>e.computeMoreMinimalEdits(i.uri,t)))}v.w.registerCommand("_executeFormatRangeProvider",(async function(e,...t){const[i,o,a]=t;(0,c.j)(l.r.isUri(i)),(0,c.j)(g.Q.isIRange(o));const h=e.get(f.ITextModelService),d=e.get(m.IEditorWorkerService),u=e.get(S.ILanguageFeaturesService),p=await h.createModelReference(i);try{return async function(e,t,i,n,o,a){const c=t.documentRangeFormattingEditProvider.ordered(i);for(const l of c){const t=await Promise.resolve(l.provideDocumentRangeFormattingEdits(i,n,o,a)).catch(r.M_);if((0,s.EI)(t))return await e.computeMoreMinimalEdits(i.uri,t)}}(d,u,p.object.textEditorModel,g.Q.lift(o),a,n.XO.None)}finally{p.dispose()}})),v.w.registerCommand("_executeFormatDocumentProvider",(async function(e,...t){const[i,o]=t;(0,c.j)(l.r.isUri(i));const a=e.get(f.ITextModelService),h=e.get(m.IEditorWorkerService),d=e.get(S.ILanguageFeaturesService),u=await a.createModelReference(i);try{return async function(e,t,i,n,o){const a=R(t.documentFormattingEditProvider,t.documentRangeFormattingEditProvider,i);for(const c of a){const t=await Promise.resolve(c.provideDocumentFormattingEdits(i,n,o)).catch(r.M_);if((0,s.EI)(t))return await e.computeMoreMinimalEdits(i.uri,t)}}(h,d,u.object.textEditorModel,o,n.XO.None)}finally{u.dispose()}})),v.w.registerCommand("_executeFormatOnTypeProvider",(async function(e,...t){const[i,s,r,o]=t;(0,c.j)(l.r.isUri(i)),(0,c.j)(u.y.isIPosition(s)),(0,c.j)("string"===typeof r);const a=e.get(f.ITextModelService),h=e.get(m.IEditorWorkerService),d=e.get(S.ILanguageFeaturesService),g=await a.createModelReference(i);try{return N(h,d,g.object.textEditorModel,u.y.lift(s),r,o,n.XO.None)}finally{g.dispose()}}))},49099:(e,t,i)=>{"use strict";i.d(t,{C:()=>s,e:()=>n});const s=(0,i(63591).u1)("openerService");function n(e){let t;const i=/^L?(\d+)(?:,(\d+))?(-L?(\d+)(?:,(\d+))?)?/.exec(e.fragment);return i&&(t={startLineNumber:parseInt(i[1]),startColumn:i[2]?parseInt(i[2]):1,endLineNumber:i[4]?parseInt(i[4]):void 0,endColumn:i[4]?i[5]?parseInt(i[5]):1:void 0},e=e.with({fragment:""})),{selection:t,uri:e}}},49150:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>i.e(2016).then(i.bind(i,92016))})},49154:(e,t,i)=>{"use strict";i.d(t,{Bm:()=>h,FB:()=>d,FY:()=>E,Lj:()=>b,N2:()=>u,PO:()=>v,Rn:()=>m,X2:()=>S,XL:()=>C,YY:()=>f,ZK:()=>p,fL:()=>_,zV:()=>g});var s=i(51241),n=i(22311),r=i(94958);let o,a,c,l;function h(e){o=e}function d(e){a=e}function u(e){c=e}class g{get TChange(){return null}reportChanges(){this.get()}read(e){return e?e.readObservable(this):this.get()}map(e,t){const i=void 0===t?void 0:e,s=void 0===t?e:t;return c({owner:i,debugName:()=>{const e=(0,n.qQ)(s);if(void 0!==e)return e;const t=/^\s*\(?\s*([a-zA-Z_$][a-zA-Z_$0-9]*)\s*\)?\s*=>\s*\1(?:\??)\.([a-zA-Z_$][a-zA-Z_$0-9]*)\s*$/.exec(s.toString());return t?`${this.debugName}.${t[2]}`:i?void 0:`${this.debugName} (mapped)`},debugReferenceFn:s},(e=>s(this.read(e),e)))}flatten(){return c({owner:void 0,debugName:()=>`${this.debugName} (flattened)`},(e=>this.read(e).read(e)))}recomputeInitiallyAndOnChange(e,t){return e.add(o(this,t)),this}keepObserved(e){return e.add(a(this)),this}}class p extends g{constructor(){super(...arguments),this.observers=new Set}addObserver(e){const t=this.observers.size;this.observers.add(e),0===t&&this.onFirstObserverAdded()}removeObserver(e){this.observers.delete(e)&&0===this.observers.size&&this.onLastObserverRemoved()}onFirstObserverAdded(){}onLastObserverRemoved(){}}function m(e,t){const i=new C(e,t);try{e(i)}finally{i.finish()}}function f(e){if(l)e(l);else{const t=new C(e,void 0);l=t;try{e(t)}finally{t.finish(),l=void 0}}}async function _(e,t){const i=new C(e,t);try{await e(i)}finally{i.finish()}}function v(e,t,i){e?t(e):m(t,i)}class C{constructor(e,t){this._fn=e,this._getDebugName=t,this.updatingObservers=[],(0,r.tZ)()?.handleBeginTransaction(this)}getDebugName(){return this._getDebugName?this._getDebugName():(0,n.qQ)(this._fn)}updateObserver(e,t){this.updatingObservers.push({observer:e,observable:t}),e.beginUpdate(t)}finish(){const e=this.updatingObservers;for(let t=0;t<e.length;t++){const{observer:i,observable:s}=e[t];i.endUpdate(s)}this.updatingObservers=null,(0,r.tZ)()?.handleEndTransaction()}}function E(e,t){let i;return i="string"===typeof e?new n.nA(void 0,e,void 0):new n.nA(e,void 0,void 0),new b(i,t,s.nx)}class b extends p{get debugName(){return this._debugNameData.getDebugName(this)??"ObservableValue"}constructor(e,t,i){super(),this._debugNameData=e,this._equalityComparator=i,this._value=t}get(){return this._value}set(e,t,i){if(void 0===i&&this._equalityComparator(this._value,e))return;let s;t||(t=s=new C((()=>{}),(()=>`Setting ${this.debugName}`)));try{const s=this._value;this._setValue(e),(0,r.tZ)()?.handleObservableChanged(this,{oldValue:s,newValue:e,change:i,didChange:!0,hadValue:!0});for(const e of this.observers)t.updateObserver(e,this),e.handleChange(this,i)}finally{s&&s.finish()}}toString(){return`${this.debugName}: ${this._value}`}_setValue(e){this._value=e}}function S(e,t){let i;return i="string"===typeof e?new n.nA(void 0,e,void 0):new n.nA(e,void 0,void 0),new y(i,t,s.nx)}class y extends b{_setValue(e){this._value!==e&&(this._value&&this._value.dispose(),this._value=e)}dispose(){this._value?.dispose()}}},49265:(e,t,i)=>{"use strict";i.d(t,{T:()=>a,v:()=>c});var s=i(7936),n=i(71964),r=i(32799),o=i(26685);class a{static indent(e,t,i){if(null===t||null===i)return[];const n=[];for(let r=0,o=i.length;r<o;r++)n[r]=new s.Y(i[r],{isUnshift:!1,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent},e.languageConfigurationService);return n}static outdent(e,t,i){const n=[];for(let r=0,o=i.length;r<o;r++)n[r]=new s.Y(i[r],{isUnshift:!0,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent},e.languageConfigurationService);return n}static paste(e,t,i,s,n,r){return o.Dr.getEdits(e,t,i,s,n,r)}static tab(e,t,i){return o.h0.getCommands(e,t,i)}static compositionType(e,t,i,s,n,r,a,c){return o.YA.getEdits(e,t,i,s,n,r,a,c)}static compositionEndWithInterceptors(e,t,i,s,a,c){if(!s)return null;let l=null;for(const n of s)if(null===l)l=n.insertedText;else if(l!==n.insertedText)return null;if(!l||1!==l.length)return null;const h=l;let d=!1;for(const n of s)if(0!==n.deletedText.length){d=!0;break}if(d){if(!(0,o.ey)(t,h)||!t.surroundingPairs.hasOwnProperty(h))return null;const e=(0,r.vG)(h);for(const t of s){if(0!==t.deletedSelectionStart||t.deletedSelectionEnd!==t.deletedText.length)return null;if(/^[ \t]+$/.test(t.deletedText))return null;if(e&&(0,r.vG)(t.deletedText))return null}const i=[];for(const t of a){if(!t.isEmpty())return null;i.push(t.getPosition())}if(i.length!==s.length)return null;const c=[];for(let r=0,o=i.length;r<o;r++)c.push(new n.y(i[r],s[r].deletedText,t.surroundingPairs[h]));return new r.vY(4,c,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}const u=o.K4.getEdits(t,i,a,c,h);if(void 0!==u)return u;const g=o.oi.getEdits(t,i,a,h,!0,!1);return void 0!==g?g:null}static typeWithInterceptors(e,t,i,s,n,r,a){const c=o.AO.getEdits(i,s,n,a,e);if(void 0!==c)return c;const l=o.dU.getEdits(i,s,n,a,e);if(void 0!==l)return l;const h=o.sx.getEdits(t,i,s,n,r,a);if(void 0!==h)return h;const d=o.oi.getEdits(i,s,n,a,!1,e);if(void 0!==d)return d;const u=o.is.getEdits(i,s,n,a,e);if(void 0!==u)return u;const g=o.kr.getEdits(t,i,s,n,a,e);return void 0!==g?g:o.Ls.getEdits(t,n,a)}static typeWithoutInterceptors(e,t,i,s,n){return o.UN.getEdits(e,s,n)}}class c{constructor(e,t,i,s,n,r){this.deletedText=e,this.deletedSelectionStart=t,this.deletedSelectionEnd=i,this.insertedText=s,this.insertedSelectionStart=n,this.insertedSelectionEnd=r}}},49353:(e,t,i)=>{"use strict";i.d(t,{yE:()=>o});var s=i(41234),n=i(5662);class r{constructor(e,t,i,s,n,r,o){this._forceIntegerValues=e,this._scrollStateBrand=void 0,this._forceIntegerValues&&(t|=0,i|=0,s|=0,n|=0,r|=0,o|=0),this.rawScrollLeft=s,this.rawScrollTop=o,t<0&&(t=0),s+t>i&&(s=i-t),s<0&&(s=0),n<0&&(n=0),o+n>r&&(o=r-n),o<0&&(o=0),this.width=t,this.scrollWidth=i,this.scrollLeft=s,this.height=n,this.scrollHeight=r,this.scrollTop=o}equals(e){return this.rawScrollLeft===e.rawScrollLeft&&this.rawScrollTop===e.rawScrollTop&&this.width===e.width&&this.scrollWidth===e.scrollWidth&&this.scrollLeft===e.scrollLeft&&this.height===e.height&&this.scrollHeight===e.scrollHeight&&this.scrollTop===e.scrollTop}withScrollDimensions(e,t){return new r(this._forceIntegerValues,"undefined"!==typeof e.width?e.width:this.width,"undefined"!==typeof e.scrollWidth?e.scrollWidth:this.scrollWidth,t?this.rawScrollLeft:this.scrollLeft,"undefined"!==typeof e.height?e.height:this.height,"undefined"!==typeof e.scrollHeight?e.scrollHeight:this.scrollHeight,t?this.rawScrollTop:this.scrollTop)}withScrollPosition(e){return new r(this._forceIntegerValues,this.width,this.scrollWidth,"undefined"!==typeof e.scrollLeft?e.scrollLeft:this.rawScrollLeft,this.height,this.scrollHeight,"undefined"!==typeof e.scrollTop?e.scrollTop:this.rawScrollTop)}createScrollEvent(e,t){const i=this.width!==e.width,s=this.scrollWidth!==e.scrollWidth,n=this.scrollLeft!==e.scrollLeft,r=this.height!==e.height,o=this.scrollHeight!==e.scrollHeight,a=this.scrollTop!==e.scrollTop;return{inSmoothScrolling:t,oldWidth:e.width,oldScrollWidth:e.scrollWidth,oldScrollLeft:e.scrollLeft,width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,oldHeight:e.height,oldScrollHeight:e.scrollHeight,oldScrollTop:e.scrollTop,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:i,scrollWidthChanged:s,scrollLeftChanged:n,heightChanged:r,scrollHeightChanged:o,scrollTopChanged:a}}}class o extends n.jG{constructor(e){super(),this._scrollableBrand=void 0,this._onScroll=this._register(new s.vl),this.onScroll=this._onScroll.event,this._smoothScrollDuration=e.smoothScrollDuration,this._scheduleAtNextAnimationFrame=e.scheduleAtNextAnimationFrame,this._state=new r(e.forceIntegerValues,0,0,0,0,0,0),this._smoothScrolling=null}dispose(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),super.dispose()}setSmoothScrollDuration(e){this._smoothScrollDuration=e}validateScrollPosition(e){return this._state.withScrollPosition(e)}getScrollDimensions(){return this._state}setScrollDimensions(e,t){const i=this._state.withScrollDimensions(e,t);this._setState(i,Boolean(this._smoothScrolling)),this._smoothScrolling?.acceptScrollDimensions(this._state)}getFutureScrollPosition(){return this._smoothScrolling?this._smoothScrolling.to:this._state}getCurrentScrollPosition(){return this._state}setScrollPositionNow(e){const t=this._state.withScrollPosition(e);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(t,!1)}setScrollPositionSmooth(e,t){if(0===this._smoothScrollDuration)return this.setScrollPositionNow(e);if(this._smoothScrolling){e={scrollLeft:"undefined"===typeof e.scrollLeft?this._smoothScrolling.to.scrollLeft:e.scrollLeft,scrollTop:"undefined"===typeof e.scrollTop?this._smoothScrolling.to.scrollTop:e.scrollTop};const i=this._state.withScrollPosition(e);if(this._smoothScrolling.to.scrollLeft===i.scrollLeft&&this._smoothScrolling.to.scrollTop===i.scrollTop)return;let s;s=t?new l(this._smoothScrolling.from,i,this._smoothScrolling.startTime,this._smoothScrolling.duration):this._smoothScrolling.combine(this._state,i,this._smoothScrollDuration),this._smoothScrolling.dispose(),this._smoothScrolling=s}else{const t=this._state.withScrollPosition(e);this._smoothScrolling=l.start(this._state,t,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame((()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())}))}hasPendingScrollAnimation(){return Boolean(this._smoothScrolling)}_performSmoothScrolling(){if(!this._smoothScrolling)return;const e=this._smoothScrolling.tick(),t=this._state.withScrollPosition(e);return this._setState(t,!0),this._smoothScrolling?e.isDone?(this._smoothScrolling.dispose(),void(this._smoothScrolling=null)):void(this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame((()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())}))):void 0}_setState(e,t){const i=this._state;i.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(i,t)))}}class a{constructor(e,t,i){this.scrollLeft=e,this.scrollTop=t,this.isDone=i}}function c(e,t){const i=t-e;return function(t){return e+i*(1-function(e){return Math.pow(e,3)}(1-t))}}class l{constructor(e,t,i,s){this.from=e,this.to=t,this.duration=s,this.startTime=i,this.animationFrameDisposable=null,this._initAnimations()}_initAnimations(){this.scrollLeft=this._initAnimation(this.from.scrollLeft,this.to.scrollLeft,this.to.width),this.scrollTop=this._initAnimation(this.from.scrollTop,this.to.scrollTop,this.to.height)}_initAnimation(e,t,i){if(Math.abs(e-t)>2.5*i){let o,a;return e<t?(o=e+.75*i,a=t-.75*i):(o=e-.75*i,a=t+.75*i),s=c(e,o),n=c(a,t),r=.33,function(e){return e<r?s(e/r):n((e-r)/(1-r))}}var s,n,r;return c(e,t)}dispose(){null!==this.animationFrameDisposable&&(this.animationFrameDisposable.dispose(),this.animationFrameDisposable=null)}acceptScrollDimensions(e){this.to=e.withScrollPosition(this.to),this._initAnimations()}tick(){return this._tick(Date.now())}_tick(e){const t=(e-this.startTime)/this.duration;if(t<1){const e=this.scrollLeft(t),i=this.scrollTop(t);return new a(e,i,!1)}return new a(this.to.scrollLeft,this.to.scrollTop,!0)}combine(e,t,i){return l.start(e,t,i)}static start(e,t,i){i+=10;const s=Date.now()-10;return new l(e,t,s,i)}}},49435:(e,t,i)=>{"use strict";i.d(t,{z:()=>n});var s=i(98067);const n=s.uF?'"Segoe WPC", "Segoe UI", sans-serif':s.zx?"-apple-system, BlinkMacSystemFont, sans-serif":'system-ui, "Ubuntu", "Droid Sans", sans-serif'},50071:(e,t,i)=>{"use strict";var s=i(11007),n=i(90766),r=i(18447),o=i(64383),a=i(16980),c=i(5662),l=i(631),h=i(79400),d=i(31450),u=i(80537),g=i(80301),p=i(83069),m=i(36677),f=i(60002),_=i(62083),v=i(56942),C=i(90360),E=i(50868),b=i(99645),S=i(78209),y=i(27195),w=i(1646),R=i(32848),L=i(63591),T=i(18801),x=i(58591),k=i(73823),A=i(46359),N=i(90651),I=i(8597),O=i(72962),D=i(48196),M=i(42904),P=i(20370),F=i(93090),U=i(25890),H=i(10350),B=i(41234),W=i(78381),V=i(73157),z=i(98031),G=i(19070),j=i(66261),K=i(47612),Y=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},q=function(e,t){return function(i,s){t(i,s,e)}};const $=new R.N1("renameInputVisible",!1,S.kg("renameInputVisible","Whether the rename input widget is visible"));new R.N1("renameInputFocused",!1,S.kg("renameInputFocused","Whether the rename input widget is focused"));let Q=class{constructor(e,t,i,s,n,r){this._editor=e,this._acceptKeybindings=t,this._themeService=i,this._keybindingService=s,this._logService=r,this.allowEditorOverflow=!0,this._disposables=new c.Cm,this._visibleContextKey=$.bindTo(n),this._isEditingRenameCandidate=!1,this._nRenameSuggestionsInvocations=0,this._hadAutomaticRenameSuggestionsInvocation=!1,this._candidates=new Set,this._beforeFirstInputFieldEditSW=new W.W,this._inputWithButton=new Z,this._disposables.add(this._inputWithButton),this._editor.addContentWidget(this),this._disposables.add(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(50)&&this._updateFont()}))),this._disposables.add(i.onDidColorThemeChange(this._updateStyles,this))}dispose(){this._disposables.dispose(),this._editor.removeContentWidget(this)}getId(){return"__renameInputWidget"}getDomNode(){return this._domNode||(this._domNode=document.createElement("div"),this._domNode.className="monaco-editor rename-box",this._domNode.appendChild(this._inputWithButton.domNode),this._renameCandidateListView=this._disposables.add(new X(this._domNode,{fontInfo:this._editor.getOption(50),onFocusChange:e=>{this._inputWithButton.input.value=e,this._isEditingRenameCandidate=!1},onSelectionChange:()=>{this._isEditingRenameCandidate=!1,this.acceptInput(!1)}})),this._disposables.add(this._inputWithButton.onDidInputChange((()=>{void 0!==this._renameCandidateListView?.focusedCandidate&&(this._isEditingRenameCandidate=!0),this._timeBeforeFirstInputFieldEdit??=this._beforeFirstInputFieldEditSW.elapsed(),!1===this._renameCandidateProvidersCts?.token.isCancellationRequested&&this._renameCandidateProvidersCts.cancel(),this._renameCandidateListView?.clearFocus()}))),this._label=document.createElement("div"),this._label.className="rename-label",this._domNode.appendChild(this._label),this._updateFont(),this._updateStyles(this._themeService.getColorTheme())),this._domNode}_updateStyles(e){if(!this._domNode)return;const t=e.getColor(j.f9l),i=e.getColor(j.DSL);this._domNode.style.backgroundColor=String(e.getColor(j.CgL)??""),this._domNode.style.boxShadow=t?` 0 0 8px 2px ${t}`:"",this._domNode.style.border=i?`1px solid ${i}`:"",this._domNode.style.color=String(e.getColor(j.cws)??"");const s=e.getColor(j.Zgs);this._inputWithButton.domNode.style.backgroundColor=String(e.getColor(j.L4c)??""),this._inputWithButton.input.style.backgroundColor=String(e.getColor(j.L4c)??""),this._inputWithButton.domNode.style.borderWidth=s?"1px":"0px",this._inputWithButton.domNode.style.borderStyle=s?"solid":"none",this._inputWithButton.domNode.style.borderColor=s?.toString()??"none"}_updateFont(){if(void 0===this._domNode)return;(0,l.j)(void 0!==this._label,"RenameWidget#_updateFont: _label must not be undefined given _domNode is defined"),this._editor.applyFontInfo(this._inputWithButton.input);const e=this._editor.getOption(50);this._label.style.fontSize=`${this._computeLabelFontSize(e.fontSize)}px`}_computeLabelFontSize(e){return.8*e}getPosition(){if(!this._visible)return null;if(!this._editor.hasModel()||!this._editor.getDomNode())return null;const e=I.tG(this.getDomNode().ownerDocument.body),t=I.BK(this._editor.getDomNode()),i=this._getTopForPosition();this._nPxAvailableAbove=i+t.top,this._nPxAvailableBelow=e.height-this._nPxAvailableAbove;const s=this._editor.getOption(67),{totalHeight:n}=J.getLayoutInfo({lineHeight:s}),r=this._nPxAvailableBelow>6*n?[2,1]:[1,2];return{position:this._position,preference:r}}beforeRender(){const[e,t]=this._acceptKeybindings;return this._label.innerText=S.kg({key:"label",comment:['placeholders are keybindings, e.g "F2 to Rename, Shift+F2 to Preview"']},"{0} to Rename, {1} to Preview",this._keybindingService.lookupKeybinding(e)?.getLabel(),this._keybindingService.lookupKeybinding(t)?.getLabel()),this._domNode.style.minWidth="200px",null}afterRender(e){if(null===e)return void this.cancelInput(!0,"afterRender (because position is null)");if(!this._editor.hasModel()||!this._editor.getDomNode())return;(0,l.j)(this._renameCandidateListView),(0,l.j)(void 0!==this._nPxAvailableAbove),(0,l.j)(void 0!==this._nPxAvailableBelow);const t=I.OK(this._inputWithButton.domNode),i=I.OK(this._label);let s;s=2===e?this._nPxAvailableBelow:this._nPxAvailableAbove,this._renameCandidateListView.layout({height:s-i-t,width:I.Tr(this._inputWithButton.domNode)})}acceptInput(e){this._trace("invoking acceptInput"),this._currentAcceptInput?.(e)}cancelInput(e,t){this._currentCancelInput?.(e)}focusNextRenameSuggestion(){this._renameCandidateListView?.focusNext()||(this._inputWithButton.input.value=this._currentName)}focusPreviousRenameSuggestion(){this._renameCandidateListView?.focusPrevious()||(this._inputWithButton.input.value=this._currentName)}getInput(e,t,i,s,r){const{start:o,end:a}=this._getSelection(e,t);this._renameCts=r;const h=new c.Cm;this._nRenameSuggestionsInvocations=0,this._hadAutomaticRenameSuggestionsInvocation=!1,void 0===s?this._inputWithButton.button.style.display="none":(this._inputWithButton.button.style.display="flex",this._requestRenameCandidatesOnce=s,this._requestRenameCandidates(t,!1),h.add(I.ko(this._inputWithButton.button,"click",(()=>this._requestRenameCandidates(t,!0)))),h.add(I.ko(this._inputWithButton.button,I.Bx.KEY_DOWN,(e=>{const i=new O.Z(e);(i.equals(3)||i.equals(10))&&(i.stopPropagation(),i.preventDefault(),this._requestRenameCandidates(t,!0))})))),this._isEditingRenameCandidate=!1,this._domNode.classList.toggle("preview",i),this._position=new p.y(e.startLineNumber,e.startColumn),this._currentName=t,this._inputWithButton.input.value=t,this._inputWithButton.input.setAttribute("selectionStart",o.toString()),this._inputWithButton.input.setAttribute("selectionEnd",a.toString()),this._inputWithButton.input.size=Math.max(1.1*(e.endColumn-e.startColumn),20),this._beforeFirstInputFieldEditSW.reset(),h.add((0,c.s)((()=>{this._renameCts=void 0,r.dispose(!0)}))),h.add((0,c.s)((()=>{void 0!==this._renameCandidateProvidersCts&&(this._renameCandidateProvidersCts.dispose(!0),this._renameCandidateProvidersCts=void 0)}))),h.add((0,c.s)((()=>this._candidates.clear())));const d=new n.Zv;return d.p.finally((()=>{h.dispose(),this._hide()})),this._currentCancelInput=e=>(this._trace("invoking _currentCancelInput"),this._currentAcceptInput=void 0,this._currentCancelInput=void 0,this._renameCandidateListView?.clearCandidates(),d.complete(e),!0),this._currentAcceptInput=e=>{this._trace("invoking _currentAcceptInput"),(0,l.j)(void 0!==this._renameCandidateListView);const s=this._renameCandidateListView.nCandidates;let n,r;const o=this._renameCandidateListView.focusedCandidate;void 0!==o?(this._trace("using new name from renameSuggestion"),n=o,r={k:"renameSuggestion"}):(this._trace("using new name from inputField"),n=this._inputWithButton.input.value,r=this._isEditingRenameCandidate?{k:"userEditedRenameSuggestion"}:{k:"inputField"}),n!==t&&0!==n.trim().length?(this._currentAcceptInput=void 0,this._currentCancelInput=void 0,this._renameCandidateListView.clearCandidates(),d.complete({newName:n,wantsPreview:i&&e,stats:{source:r,nRenameSuggestions:s,timeBeforeFirstInputFieldEdit:this._timeBeforeFirstInputFieldEdit,nRenameSuggestionsInvocations:this._nRenameSuggestionsInvocations,hadAutomaticRenameSuggestionsInvocation:this._hadAutomaticRenameSuggestionsInvocation}})):this.cancelInput(!0,"_currentAcceptInput (because newName === value || newName.trim().length === 0)")},h.add(r.token.onCancellationRequested((()=>this.cancelInput(!0,"cts.token.onCancellationRequested")))),h.add(this._editor.onDidBlurEditorWidget((()=>this.cancelInput(!this._domNode?.ownerDocument.hasFocus(),"editor.onDidBlurEditorWidget")))),this._show(),d.p}_requestRenameCandidates(e,t){if(void 0!==this._requestRenameCandidatesOnce&&(void 0!==this._renameCandidateProvidersCts&&this._renameCandidateProvidersCts.dispose(!0),(0,l.j)(this._renameCts),"stop"!==this._inputWithButton.buttonState)){this._renameCandidateProvidersCts=new r.Qi;const i=t?_.YT.Invoke:_.YT.Automatic,s=this._requestRenameCandidatesOnce(i,this._renameCandidateProvidersCts.token);if(0===s.length)return void this._inputWithButton.setSparkleButton();t||(this._hadAutomaticRenameSuggestionsInvocation=!0),this._nRenameSuggestionsInvocations+=1,this._inputWithButton.setStopButton(),this._updateRenameCandidates(s,e,this._renameCts.token)}}_getSelection(e,t){(0,l.j)(this._editor.hasModel());const i=this._editor.getSelection();let s=0,n=t.length;return m.Q.isEmpty(i)||m.Q.spansMultipleLines(i)||!m.Q.containsRange(e,i)||(s=Math.max(0,i.startColumn-e.startColumn),n=Math.min(e.endColumn,i.endColumn)-e.startColumn),{start:s,end:n}}_show(){this._trace("invoking _show"),this._editor.revealLineInCenterIfOutsideViewport(this._position.lineNumber,0),this._visible=!0,this._visibleContextKey.set(!0),this._editor.layoutContentWidget(this),setTimeout((()=>{this._inputWithButton.input.focus(),this._inputWithButton.input.setSelectionRange(parseInt(this._inputWithButton.input.getAttribute("selectionStart")),parseInt(this._inputWithButton.input.getAttribute("selectionEnd")))}),100)}async _updateRenameCandidates(e,t,i){const s=(...e)=>this._trace("_updateRenameCandidates",...e);s("start");const r=await(0,n.PK)(Promise.allSettled(e),i);if(this._inputWithButton.setSparkleButton(),void 0===r)return void s("returning early - received updateRenameCandidates results - undefined");const o=r.flatMap((e=>"fulfilled"===e.status&&(0,l.O9)(e.value)?e.value:[]));s(`received updateRenameCandidates results - total (unfiltered) ${o.length} candidates.`);const a=U.dM(o,(e=>e.newSymbolName));s(`distinct candidates - ${a.length} candidates.`);const c=a.filter((({newSymbolName:e})=>e.trim().length>0&&e!==this._inputWithButton.input.value&&e!==t&&!this._candidates.has(e)));s(`valid distinct candidates - ${o.length} candidates.`),c.forEach((e=>this._candidates.add(e.newSymbolName))),c.length<1?s("returning early - no valid distinct candidates"):(s("setting candidates"),this._renameCandidateListView.setCandidates(c),s("asking editor to re-layout"),this._editor.layoutContentWidget(this))}_hide(){this._trace("invoked _hide"),this._visible=!1,this._visibleContextKey.reset(),this._editor.layoutContentWidget(this)}_getTopForPosition(){const e=this._editor.getVisibleRanges();let t;return e.length>0?t=e[0].startLineNumber:(this._logService.warn("RenameWidget#_getTopForPosition: this should not happen - visibleRanges is empty"),t=Math.max(1,this._position.lineNumber-5)),this._editor.getTopForLineNumber(this._position.lineNumber)-this._editor.getTopForLineNumber(t)}_trace(...e){this._logService.trace("RenameWidget",...e)}};Q=Y([q(2,K.Gy),q(3,z.b),q(4,R.fN),q(5,T.rr)],Q);class X{constructor(e,t){this._disposables=new c.Cm,this._availableHeight=0,this._minimumWidth=0,this._lineHeight=t.fontInfo.lineHeight,this._typicalHalfwidthCharacterWidth=t.fontInfo.typicalHalfwidthCharacterWidth,this._listContainer=document.createElement("div"),this._listContainer.className="rename-box rename-candidate-list-container",e.appendChild(this._listContainer),this._listWidget=X._createListWidget(this._listContainer,this._candidateViewHeight,t.fontInfo),this._listWidget.onDidChangeFocus((e=>{1===e.elements.length&&t.onFocusChange(e.elements[0].newSymbolName)}),this._disposables),this._listWidget.onDidChangeSelection((e=>{1===e.elements.length&&t.onSelectionChange()}),this._disposables),this._disposables.add(this._listWidget.onDidBlur((e=>{this._listWidget.setFocus([])}))),this._listWidget.style((0,G.t8)({listInactiveFocusForeground:j.nH,listInactiveFocusBackground:j.AlL}))}dispose(){this._listWidget.dispose(),this._disposables.dispose()}layout({height:e,width:t}){this._availableHeight=e,this._minimumWidth=t}setCandidates(e){this._listWidget.splice(0,0,e);const t=this._pickListHeight(this._listWidget.length),i=this._pickListWidth(e);this._listWidget.layout(t,i),this._listContainer.style.height=`${t}px`,this._listContainer.style.width=`${i}px`,s.h5(S.kg("renameSuggestionsReceivedAria","Received {0} rename suggestions",e.length))}clearCandidates(){this._listContainer.style.height="0px",this._listContainer.style.width="0px",this._listWidget.splice(0,this._listWidget.length,[])}get nCandidates(){return this._listWidget.length}get focusedCandidate(){if(0===this._listWidget.length)return;const e=this._listWidget.getSelectedElements()[0];if(void 0!==e)return e.newSymbolName;const t=this._listWidget.getFocusedElements()[0];return void 0!==t?t.newSymbolName:void 0}focusNext(){if(0===this._listWidget.length)return!1;const e=this._listWidget.getFocus();if(0===e.length)return this._listWidget.focusFirst(),this._listWidget.reveal(0),!0;if(e[0]===this._listWidget.length-1)return this._listWidget.setFocus([]),this._listWidget.reveal(0),!1;{this._listWidget.focusNext();const e=this._listWidget.getFocus()[0];return this._listWidget.reveal(e),!0}}focusPrevious(){if(0===this._listWidget.length)return!1;const e=this._listWidget.getFocus();if(0===e.length){this._listWidget.focusLast();const e=this._listWidget.getFocus()[0];return this._listWidget.reveal(e),!0}if(0===e[0])return this._listWidget.setFocus([]),!1;{this._listWidget.focusPrevious();const e=this._listWidget.getFocus()[0];return this._listWidget.reveal(e),!0}}clearFocus(){this._listWidget.setFocus([])}get _candidateViewHeight(){const{totalHeight:e}=J.getLayoutInfo({lineHeight:this._lineHeight});return e}_pickListHeight(e){const t=this._candidateViewHeight*e;return Math.min(t,this._availableHeight,7*this._candidateViewHeight)}_pickListWidth(e){const t=Math.ceil(Math.max(...e.map((e=>e.newSymbolName.length)))*this._typicalHalfwidthCharacterWidth);return Math.max(this._minimumWidth,25+t+10)}static _createListWidget(e,t,i){const s=new class{getTemplateId(e){return"candidate"}getHeight(e){return t}},n=new class{constructor(){this.templateId="candidate"}renderTemplate(e){return new J(e,i)}renderElement(e,t,i){i.populate(e)}disposeTemplate(e){e.dispose()}};return new F.B8("NewSymbolNameCandidates",e,s,[n],{keyboardSupport:!1,mouseSupport:!0,multipleSelectionSupport:!1})}}class Z{constructor(){this._onDidInputChange=new B.vl,this.onDidInputChange=this._onDidInputChange.event,this._disposables=new c.Cm}get domNode(){return this._domNode||(this._domNode=document.createElement("div"),this._domNode.className="rename-input-with-button",this._domNode.style.display="flex",this._domNode.style.flexDirection="row",this._domNode.style.alignItems="center",this._inputNode=document.createElement("input"),this._inputNode.className="rename-input",this._inputNode.type="text",this._inputNode.style.border="none",this._inputNode.setAttribute("aria-label",S.kg("renameAriaLabel","Rename input. Type new name and press Enter to commit.")),this._domNode.appendChild(this._inputNode),this._buttonNode=document.createElement("div"),this._buttonNode.className="rename-suggestions-button",this._buttonNode.setAttribute("tabindex","0"),this._buttonGenHoverText=S.kg("generateRenameSuggestionsButton","Generate new name suggestions"),this._buttonCancelHoverText=S.kg("cancelRenameSuggestionsButton","Cancel"),this._buttonHover=(0,D.i)().setupManagedHover((0,M.nZ)("element"),this._buttonNode,this._buttonGenHoverText),this._disposables.add(this._buttonHover),this._domNode.appendChild(this._buttonNode),this._disposables.add(I.ko(this.input,I.Bx.INPUT,(()=>this._onDidInputChange.fire()))),this._disposables.add(I.ko(this.input,I.Bx.KEY_DOWN,(e=>{const t=new O.Z(e);15!==t.keyCode&&17!==t.keyCode||this._onDidInputChange.fire()}))),this._disposables.add(I.ko(this.input,I.Bx.CLICK,(()=>this._onDidInputChange.fire()))),this._disposables.add(I.ko(this.input,I.Bx.FOCUS,(()=>{this.domNode.style.outlineWidth="1px",this.domNode.style.outlineStyle="solid",this.domNode.style.outlineOffset="-1px",this.domNode.style.outlineColor="var(--vscode-focusBorder)"}))),this._disposables.add(I.ko(this.input,I.Bx.BLUR,(()=>{this.domNode.style.outline="none"})))),this._domNode}get input(){return(0,l.j)(this._inputNode),this._inputNode}get button(){return(0,l.j)(this._buttonNode),this._buttonNode}get buttonState(){return this._buttonState}setSparkleButton(){this._buttonState="sparkle",this._sparkleIcon??=(0,P.s)(H.W.sparkle),I.w_(this.button),this.button.appendChild(this._sparkleIcon),this.button.setAttribute("aria-label","Generating new name suggestions"),this._buttonHover?.update(this._buttonGenHoverText),this.input.focus()}setStopButton(){this._buttonState="stop",this._stopIcon??=(0,P.s)(H.W.primitiveSquare),I.w_(this.button),this.button.appendChild(this._stopIcon),this.button.setAttribute("aria-label","Cancel generating new name suggestions"),this._buttonHover?.update(this._buttonCancelHoverText),this.input.focus()}dispose(){this._disposables.dispose()}}class J{static{this._PADDING=2}constructor(e,t){this._domNode=document.createElement("div"),this._domNode.className="rename-box rename-candidate",this._domNode.style.display="flex",this._domNode.style.columnGap="5px",this._domNode.style.alignItems="center",this._domNode.style.height=`${t.lineHeight}px`,this._domNode.style.padding=`${J._PADDING}px`;const i=document.createElement("div");i.style.display="flex",i.style.alignItems="center",i.style.width=i.style.height=.8*t.lineHeight+"px",this._domNode.appendChild(i),this._icon=(0,P.s)(H.W.sparkle),this._icon.style.display="none",i.appendChild(this._icon),this._label=document.createElement("div"),V.M(this._label,t),this._domNode.appendChild(this._label),e.appendChild(this._domNode)}populate(e){this._updateIcon(e),this._updateLabel(e)}_updateIcon(e){const t=!!e.tags?.includes(_.OV.AIGenerated);this._icon.style.display=t?"inherit":"none"}_updateLabel(e){this._label.innerText=e.newSymbolName}static getLayoutInfo({lineHeight:e}){return{totalHeight:e+2*J._PADDING}}dispose(){}}var ee,te=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},ie=function(e,t){return function(i,s){t(i,s,e)}};class se{constructor(e,t,i){this.model=e,this.position=t,this._providerRenameIdx=0,this._providers=i.ordered(e)}hasProvider(){return this._providers.length>0}async resolveRenameLocation(e){const t=[];for(this._providerRenameIdx=0;this._providerRenameIdx<this._providers.length;this._providerRenameIdx++){const i=this._providers[this._providerRenameIdx];if(!i.resolveRenameLocation)break;const s=await i.resolveRenameLocation(this.model,this.position,e);if(s){if(!s.rejectReason)return s;t.push(s.rejectReason)}}this._providerRenameIdx=0;const i=this.model.getWordAtPosition(this.position);return i?{range:new m.Q(this.position.lineNumber,i.startColumn,this.position.lineNumber,i.endColumn),text:i.word,rejectReason:t.length>0?t.join("\n"):void 0}:{range:m.Q.fromPositions(this.position),text:"",rejectReason:t.length>0?t.join("\n"):void 0}}async provideRenameEdits(e,t){return this._provideRenameEdits(e,this._providerRenameIdx,[],t)}async _provideRenameEdits(e,t,i,s){const n=this._providers[t];if(!n)return{edits:[],rejectReason:i.join("\n")};const r=await n.provideRenameEdits(this.model,this.position,e,s);return r?r.rejectReason?this._provideRenameEdits(e,t+1,i.concat(r.rejectReason),s):r:this._provideRenameEdits(e,t+1,i.concat(S.kg("no result","No result.")),s)}}let ne=class{static{ee=this}static{this.ID="editor.contrib.renameController"}static get(e){return e.getContribution(ee.ID)}constructor(e,t,i,s,n,o,a,l,h){this.editor=e,this._instaService=t,this._notificationService=i,this._bulkEditService=s,this._progressService=n,this._logService=o,this._configService=a,this._languageFeaturesService=l,this._telemetryService=h,this._disposableStore=new c.Cm,this._cts=new r.Qi,this._renameWidget=this._disposableStore.add(this._instaService.createInstance(Q,this.editor,["acceptRenameInput","acceptRenameInputWithPreview"]))}dispose(){this._disposableStore.dispose(),this._cts.dispose(!0)}async run(){const e=this._logService.trace.bind(this._logService,"[rename]");if(this._cts.dispose(!0),this._cts=new r.Qi,!this.editor.hasModel())return void e("editor has no model");const t=this.editor.getPosition(),i=new se(this.editor.getModel(),t,this._languageFeaturesService.renameProvider);if(!i.hasProvider())return void e("skeleton has no provider");const c=new E.gI(this.editor,5,void 0,this._cts.token);let l;try{e("resolving rename location");const t=i.resolveRenameLocation(c.token);this._progressService.showWhile(t,250),l=await t,e("resolved rename location")}catch(C){return void(C instanceof o.AL?e("resolve rename location cancelled",JSON.stringify(C,null,"\t")):(e("resolve rename location failed",C instanceof Error?C:JSON.stringify(C,null,"\t")),("string"===typeof C||(0,a.VS)(C))&&b.k.get(this.editor)?.showMessage(C||S.kg("resolveRenameLocationFailed","An unknown error occurred while resolving rename location"),t)))}finally{c.dispose()}if(!l)return void e("returning early - no loc");if(l.rejectReason)return e(`returning early - rejected with reason: ${l.rejectReason}`,l.rejectReason),void b.k.get(this.editor)?.showMessage(l.rejectReason,t);if(c.token.isCancellationRequested)return void e("returning early - cts1 cancelled");const h=new E.gI(this.editor,5,l.range,this._cts.token),d=this.editor.getModel(),u=this._languageFeaturesService.newSymbolNamesProvider.all(d),g=await Promise.all(u.map((async e=>[e,await e.supportsAutomaticNewSymbolNamesTriggerKind??!1])));e("creating rename input field and awaiting its result");const p=this._bulkEditService.hasPreviewHandler()&&this._configService.getValue(this.editor.getModel().uri,"editor.rename.enablePreview"),f=await this._renameWidget.getInput(l.range,l.text,p,u.length>0?(e,t)=>{let i=g.slice();return e===_.YT.Automatic&&(i=i.filter((([e,t])=>t))),i.map((([i])=>i.provideNewSymbolNames(d,l.range,e,t)))}:void 0,h);if(e("received response from rename input field"),u.length>0&&this._reportTelemetry(u.length,d.getLanguageId(),f),"boolean"===typeof f)return e(`returning early - rename input field response - ${f}`),f&&this.editor.focus(),void h.dispose();this.editor.focus(),e("requesting rename edits");const v=(0,n.PK)(i.provideRenameEdits(f.newName,h.token),h.token).then((async t=>{if(t)if(this.editor.hasModel()){if(t.rejectReason)return e(`returning early - rejected with reason: ${t.rejectReason}`),void this._notificationService.info(t.rejectReason);this.editor.setSelection(m.Q.fromPositions(this.editor.getSelection().getPosition())),e("applying edits"),this._bulkEditService.apply(t,{editor:this.editor,showPreview:f.wantsPreview,label:S.kg("label","Renaming '{0}' to '{1}'",l?.text,f.newName),code:"undoredo.rename",quotableLabel:S.kg("quotableLabel","Renaming {0} to {1}",l?.text,f.newName),respectAutoSaveConfig:!0}).then((t=>{e("edits applied"),t.ariaSummary&&(0,s.xE)(S.kg("aria","Successfully renamed '{0}' to '{1}'. Summary: {2}",l.text,f.newName,t.ariaSummary))})).catch((t=>{e(`error when applying edits ${JSON.stringify(t,null,"\t")}`),this._notificationService.error(S.kg("rename.failedApply","Rename failed to apply edits")),this._logService.error(t)}))}else e("returning early - no model after rename edits are provided");else e("returning early - no rename edits result")}),(t=>{e("error when providing rename edits",JSON.stringify(t,null,"\t")),this._notificationService.error(S.kg("rename.failed","Rename failed to compute edits")),this._logService.error(t)})).finally((()=>{h.dispose()}));return e("returning rename operation"),this._progressService.showWhile(v,250),v}acceptRenameInput(e){this._renameWidget.acceptInput(e)}cancelRenameInput(){this._renameWidget.cancelInput(!0,"cancelRenameInput command")}focusNextRenameSuggestion(){this._renameWidget.focusNextRenameSuggestion()}focusPreviousRenameSuggestion(){this._renameWidget.focusPreviousRenameSuggestion()}_reportTelemetry(e,t,i){const s="boolean"===typeof i?{kind:"cancelled",languageId:t,nRenameSuggestionProviders:e}:{kind:"accepted",languageId:t,nRenameSuggestionProviders:e,source:i.stats.source.k,nRenameSuggestions:i.stats.nRenameSuggestions,timeBeforeFirstInputFieldEdit:i.stats.timeBeforeFirstInputFieldEdit,wantsPreview:i.wantsPreview,nRenameSuggestionsInvocations:i.stats.nRenameSuggestionsInvocations,hadAutomaticRenameSuggestionsInvocation:i.stats.hadAutomaticRenameSuggestionsInvocation};this._telemetryService.publicLog2("renameInvokedEvent",s)}};ne=ee=te([ie(1,L._Y),ie(2,x.Ot),ie(3,u.nu),ie(4,k.N8),ie(5,T.rr),ie(6,C.ITextResourceConfigurationService),ie(7,v.ILanguageFeaturesService),ie(8,N.k)],ne);class re extends d.ks{constructor(){super({id:"editor.action.rename",label:S.kg("rename.label","Rename Symbol"),alias:"Rename Symbol",precondition:R.M$.and(f.R.writable,f.R.hasRenameProvider),kbOpts:{kbExpr:f.R.editorTextFocus,primary:60,weight:100},contextMenuOpts:{group:"1_modification",order:1.1}})}runCommand(e,t){const i=e.get(g.T),[s,n]=Array.isArray(t)&&t||[void 0,void 0];return h.r.isUri(s)&&p.y.isIPosition(n)?i.openCodeEditor({resource:s},i.getActiveCodeEditor()).then((e=>{e&&(e.setPosition(n),e.invokeWithinContext((t=>(this.reportTelemetry(t,e),this.run(t,e)))))}),o.dz):super.runCommand(e,t)}run(e,t){const i=e.get(T.rr),s=ne.get(t);return s?(i.trace("[RenameAction] got controller, running..."),s.run()):(i.trace("[RenameAction] returning early - controller missing"),Promise.resolve())}}(0,d.HW)(ne.ID,ne,4),(0,d.Fl)(re);const oe=d.DX.bindToContribution(ne.get);(0,d.E_)(new oe({id:"acceptRenameInput",precondition:$,handler:e=>e.acceptRenameInput(!1),kbOpts:{weight:199,kbExpr:R.M$.and(f.R.focus,R.M$.not("isComposing")),primary:3}})),(0,d.E_)(new oe({id:"acceptRenameInputWithPreview",precondition:R.M$.and($,R.M$.has("config.editor.rename.enablePreview")),handler:e=>e.acceptRenameInput(!0),kbOpts:{weight:199,kbExpr:R.M$.and(f.R.focus,R.M$.not("isComposing")),primary:2051}})),(0,d.E_)(new oe({id:"cancelRenameInput",precondition:$,handler:e=>e.cancelRenameInput(),kbOpts:{weight:199,kbExpr:f.R.focus,primary:9,secondary:[1033]}})),(0,y.ug)(class extends y.L{constructor(){super({id:"focusNextRenameSuggestion",title:{...S.aS("focusNextRenameSuggestion","Focus Next Rename Suggestion")},precondition:$,keybinding:[{primary:18,weight:199}]})}run(e){const t=e.get(g.T).getFocusedCodeEditor();if(!t)return;const i=ne.get(t);i&&i.focusNextRenameSuggestion()}}),(0,y.ug)(class extends y.L{constructor(){super({id:"focusPreviousRenameSuggestion",title:{...S.aS("focusPreviousRenameSuggestion","Focus Previous Rename Suggestion")},precondition:$,keybinding:[{primary:16,weight:199}]})}run(e){const t=e.get(g.T).getFocusedCodeEditor();if(!t)return;const i=ne.get(t);i&&i.focusPreviousRenameSuggestion()}}),(0,d.ke)("_executeDocumentRenameProvider",(function(e,t,i,...s){const[n]=s;(0,l.j)("string"===typeof n);const{renameProvider:o}=e.get(v.ILanguageFeaturesService);return async function(e,t,i,s){const n=new se(t,i,e),o=await n.resolveRenameLocation(r.XO.None);return o?.rejectReason?{edits:[],rejectReason:o.rejectReason}:n.provideRenameEdits(s,r.XO.None)}(o,t,i,n)})),(0,d.ke)("_executePrepareRename",(async function(e,t,i){const{renameProvider:s}=e.get(v.ILanguageFeaturesService),n=new se(t,i,s),o=await n.resolveRenameLocation(r.XO.None);if(o?.rejectReason)throw new Error(o.rejectReason);return o})),A.O.as(w.Fd.Configuration).registerConfiguration({id:"editor",properties:{"editor.rename.enablePreview":{scope:5,description:S.kg("enablePreview","Enable/disable the ability to preview changes before renaming"),default:!0,type:"boolean"}}})},50091:(e,t,i)=>{"use strict";i.d(t,{d:()=>c,w:()=>l});var s=i(41234),n=i(42522),r=i(5662),o=i(58925),a=i(631);const c=(0,i(63591).u1)("commandService"),l=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new s.vl,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(e,t){if(!e)throw new Error("invalid command");if("string"===typeof e){if(!t)throw new Error("invalid command");return this.registerCommand({id:e,handler:t})}if(e.metadata&&Array.isArray(e.metadata.args)){const t=[];for(const s of e.metadata.args)t.push(s.constraint);const i=e.handler;e.handler=function(e,...s){return(0,a.jx)(s,t),i(e,...s)}}const{id:i}=e;let s=this._commands.get(i);s||(s=new o.w,this._commands.set(i,s));const n=s.unshift(e),c=(0,r.s)((()=>{n();const e=this._commands.get(i);e?.isEmpty()&&this._commands.delete(i)}));return this._onDidRegisterCommand.fire(i),c}registerCommandAlias(e,t){return l.registerCommand(e,((e,...i)=>e.get(c).executeCommand(t,...i)))}getCommand(e){const t=this._commands.get(e);if(t&&!t.isEmpty())return n.f.first(t)}getCommands(){const e=new Map;for(const t of this._commands.keys()){const i=this.getCommand(t);i&&e.set(t,i)}return e}};l.registerCommand("noop",(()=>{}))},50166:(e,t,i)=>{"use strict";var s=i(78381),n=i(31450),r=i(78209);class o extends n.ks{constructor(){super({id:"editor.action.forceRetokenize",label:r.kg("forceRetokenize","Developer: Force Retokenize"),alias:"Developer: Force Retokenize",precondition:void 0})}run(e,t){if(!t.hasModel())return;const i=t.getModel();i.tokenization.resetTokenization();const n=new s.W;i.tokenization.forceTokenization(i.getLineCount()),n.stop(),console.log(`tokenization took ${n.elapsed()}`)}}(0,n.Fl)(o)},50352:(e,t,i)=>{"use strict";var s,n=i(11007),r=i(90766),o=i(24939),a=i(5662),c=i(31450),l=i(28291),h=i(36677),d=i(75326),u=i(60002),g=i(34175),p=i(78209),m=i(27195),f=i(32848),_=i(56942),v=i(13864),C=i(63591),E=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},b=function(e,t){return function(i,s){t(i,s,e)}};function S(e,t){const i=t.filter((t=>!e.find((e=>e.equals(t)))));if(i.length>=1){const e=i.map((e=>`line ${e.viewState.position.lineNumber} column ${e.viewState.position.column}`)).join(", "),t=1===i.length?p.kg("cursorAdded","Cursor added: {0}",e):p.kg("cursorsAdded","Cursors added: {0}",e);(0,n.h5)(t)}}class y extends c.ks{constructor(){super({id:"editor.action.insertCursorAbove",label:p.kg("mutlicursor.insertAbove","Add Cursor Above"),alias:"Add Cursor Above",precondition:void 0,kbOpts:{kbExpr:u.R.editorTextFocus,primary:2576,linux:{primary:1552,secondary:[3088]},weight:100},menuOpts:{menuId:m.D8.MenubarSelectionMenu,group:"3_multi",title:p.kg({key:"miInsertCursorAbove",comment:["&& denotes a mnemonic"]},"&&Add Cursor Above"),order:2}})}run(e,t,i){if(!t.hasModel())return;let s=!0;i&&!1===i.logicalLine&&(s=!1);const n=t._getViewModel();if(n.cursorConfig.readOnly)return;n.model.pushStackElement();const r=n.getCursorStates();n.setCursorStates(i.source,3,l.c.addCursorUp(n,r,s)),n.revealTopMostCursor(i.source),S(r,n.getCursorStates())}}class w extends c.ks{constructor(){super({id:"editor.action.insertCursorBelow",label:p.kg("mutlicursor.insertBelow","Add Cursor Below"),alias:"Add Cursor Below",precondition:void 0,kbOpts:{kbExpr:u.R.editorTextFocus,primary:2578,linux:{primary:1554,secondary:[3090]},weight:100},menuOpts:{menuId:m.D8.MenubarSelectionMenu,group:"3_multi",title:p.kg({key:"miInsertCursorBelow",comment:["&& denotes a mnemonic"]},"A&&dd Cursor Below"),order:3}})}run(e,t,i){if(!t.hasModel())return;let s=!0;i&&!1===i.logicalLine&&(s=!1);const n=t._getViewModel();if(n.cursorConfig.readOnly)return;n.model.pushStackElement();const r=n.getCursorStates();n.setCursorStates(i.source,3,l.c.addCursorDown(n,r,s)),n.revealBottomMostCursor(i.source),S(r,n.getCursorStates())}}class R extends c.ks{constructor(){super({id:"editor.action.insertCursorAtEndOfEachLineSelected",label:p.kg("mutlicursor.insertAtEndOfEachLineSelected","Add Cursors to Line Ends"),alias:"Add Cursors to Line Ends",precondition:void 0,kbOpts:{kbExpr:u.R.editorTextFocus,primary:1575,weight:100},menuOpts:{menuId:m.D8.MenubarSelectionMenu,group:"3_multi",title:p.kg({key:"miInsertCursorAtEndOfEachLineSelected",comment:["&& denotes a mnemonic"]},"Add C&&ursors to Line Ends"),order:4}})}getCursorsForSelection(e,t,i){if(!e.isEmpty()){for(let s=e.startLineNumber;s<e.endLineNumber;s++){const e=t.getLineMaxColumn(s);i.push(new d.L(s,e,s,e))}e.endColumn>1&&i.push(new d.L(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn))}}run(e,t){if(!t.hasModel())return;const i=t.getModel(),s=t.getSelections(),n=t._getViewModel(),r=n.getCursorStates(),o=[];s.forEach((e=>this.getCursorsForSelection(e,i,o))),o.length>0&&t.setSelections(o),S(r,n.getCursorStates())}}class L extends c.ks{constructor(){super({id:"editor.action.addCursorsToBottom",label:p.kg("mutlicursor.addCursorsToBottom","Add Cursors To Bottom"),alias:"Add Cursors To Bottom",precondition:void 0})}run(e,t){if(!t.hasModel())return;const i=t.getSelections(),s=t.getModel().getLineCount(),n=[];for(let a=i[0].startLineNumber;a<=s;a++)n.push(new d.L(a,i[0].startColumn,a,i[0].endColumn));const r=t._getViewModel(),o=r.getCursorStates();n.length>0&&t.setSelections(n),S(o,r.getCursorStates())}}class T extends c.ks{constructor(){super({id:"editor.action.addCursorsToTop",label:p.kg("mutlicursor.addCursorsToTop","Add Cursors To Top"),alias:"Add Cursors To Top",precondition:void 0})}run(e,t){if(!t.hasModel())return;const i=t.getSelections(),s=[];for(let o=i[0].startLineNumber;o>=1;o--)s.push(new d.L(o,i[0].startColumn,o,i[0].endColumn));const n=t._getViewModel(),r=n.getCursorStates();s.length>0&&t.setSelections(s),S(r,n.getCursorStates())}}class x{constructor(e,t,i){this.selections=e,this.revealRange=t,this.revealScrollType=i}}class k{static create(e,t){if(!e.hasModel())return null;const i=t.getState();if(!e.hasTextFocus()&&i.isRevealed&&i.searchString.length>0)return new k(e,t,!1,i.searchString,i.wholeWord,i.matchCase,null);let s,n,r=!1;const o=e.getSelections();1===o.length&&o[0].isEmpty()?(r=!0,s=!0,n=!0):(s=i.wholeWord,n=i.matchCase);const a=e.getSelection();let c,l=null;if(a.isEmpty()){const t=e.getConfiguredWordAtPosition(a.getStartPosition());if(!t)return null;c=t.word,l=new d.L(a.startLineNumber,t.startColumn,a.startLineNumber,t.endColumn)}else c=e.getModel().getValueInRange(a).replace(/\r\n/g,"\n");return new k(e,t,r,c,s,n,l)}constructor(e,t,i,s,n,r,o){this._editor=e,this.findController=t,this.isDisconnectedFromFindController=i,this.searchText=s,this.wholeWord=n,this.matchCase=r,this.currentMatch=o}addSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;const e=this._getNextMatch();if(!e)return null;const t=this._editor.getSelections();return new x(t.concat(e),e,0)}moveSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;const e=this._getNextMatch();if(!e)return null;const t=this._editor.getSelections();return new x(t.slice(0,t.length-1).concat(e),e,0)}_getNextMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){const e=this.currentMatch;return this.currentMatch=null,e}this.findController.highlightFindOptions();const e=this._editor.getSelections(),t=e[e.length-1],i=this._editor.getModel().findNextMatch(this.searchText,t.getEndPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(132):null,!1);return i?new d.L(i.range.startLineNumber,i.range.startColumn,i.range.endLineNumber,i.range.endColumn):null}addSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;const e=this._getPreviousMatch();if(!e)return null;const t=this._editor.getSelections();return new x(t.concat(e),e,0)}moveSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;const e=this._getPreviousMatch();if(!e)return null;const t=this._editor.getSelections();return new x(t.slice(0,t.length-1).concat(e),e,0)}_getPreviousMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){const e=this.currentMatch;return this.currentMatch=null,e}this.findController.highlightFindOptions();const e=this._editor.getSelections(),t=e[e.length-1],i=this._editor.getModel().findPreviousMatch(this.searchText,t.getStartPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(132):null,!1);return i?new d.L(i.range.startLineNumber,i.range.startColumn,i.range.endLineNumber,i.range.endColumn):null}selectAll(e){if(!this._editor.hasModel())return[];this.findController.highlightFindOptions();const t=this._editor.getModel();return e?t.findMatches(this.searchText,e,!1,this.matchCase,this.wholeWord?this._editor.getOption(132):null,!1,1073741824):t.findMatches(this.searchText,!0,!1,this.matchCase,this.wholeWord?this._editor.getOption(132):null,!1,1073741824)}}class A extends a.jG{static{this.ID="editor.contrib.multiCursorController"}static get(e){return e.getContribution(A.ID)}constructor(e){super(),this._sessionDispose=this._register(new a.Cm),this._editor=e,this._ignoreSelectionChange=!1,this._session=null}dispose(){this._endSession(),super.dispose()}_beginSessionIfNeeded(e){if(!this._session){const t=k.create(this._editor,e);if(!t)return;this._session=t;const i={searchString:this._session.searchText};this._session.isDisconnectedFromFindController&&(i.wholeWordOverride=1,i.matchCaseOverride=1,i.isRegexOverride=2),e.getState().change(i,!1),this._sessionDispose.add(this._editor.onDidChangeCursorSelection((e=>{this._ignoreSelectionChange||this._endSession()}))),this._sessionDispose.add(this._editor.onDidBlurEditorText((()=>{this._endSession()}))),this._sessionDispose.add(e.getState().onFindReplaceStateChange((e=>{(e.matchCase||e.wholeWord)&&this._endSession()})))}}_endSession(){if(this._sessionDispose.clear(),this._session&&this._session.isDisconnectedFromFindController){const e={wholeWordOverride:0,matchCaseOverride:0,isRegexOverride:0};this._session.findController.getState().change(e,!1)}this._session=null}_setSelections(e){this._ignoreSelectionChange=!0,this._editor.setSelections(e),this._ignoreSelectionChange=!1}_expandEmptyToWord(e,t){if(!t.isEmpty())return t;const i=this._editor.getConfiguredWordAtPosition(t.getStartPosition());return i?new d.L(t.startLineNumber,i.startColumn,t.startLineNumber,i.endColumn):t}_applySessionResult(e){e&&(this._setSelections(e.selections),e.revealRange&&this._editor.revealRangeInCenterIfOutsideViewport(e.revealRange,e.revealScrollType))}getSession(e){return this._session}addSelectionToNextFindMatch(e){if(this._editor.hasModel()){if(!this._session){const t=this._editor.getSelections();if(t.length>1){const i=e.getState().matchCase;if(!D(this._editor.getModel(),t,i)){const e=this._editor.getModel(),i=[];for(let s=0,n=t.length;s<n;s++)i[s]=this._expandEmptyToWord(e,t[s]);return void this._editor.setSelections(i)}}}this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.addSelectionToNextFindMatch())}}addSelectionToPreviousFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.addSelectionToPreviousFindMatch())}moveSelectionToNextFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.moveSelectionToNextFindMatch())}moveSelectionToPreviousFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.moveSelectionToPreviousFindMatch())}selectAll(e){if(!this._editor.hasModel())return;let t=null;const i=e.getState();if(i.isRevealed&&i.searchString.length>0&&i.isRegex){const e=this._editor.getModel();t=i.searchScope?e.findMatches(i.searchString,i.searchScope,i.isRegex,i.matchCase,i.wholeWord?this._editor.getOption(132):null,!1,1073741824):e.findMatches(i.searchString,!0,i.isRegex,i.matchCase,i.wholeWord?this._editor.getOption(132):null,!1,1073741824)}else{if(this._beginSessionIfNeeded(e),!this._session)return;t=this._session.selectAll(i.searchScope)}if(t.length>0){const e=this._editor.getSelection();for(let i=0,s=t.length;i<s;i++){const s=t[i];if(s.range.intersectRanges(e)){t[i]=t[0],t[0]=s;break}}this._setSelections(t.map((e=>new d.L(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn))))}}}class N extends c.ks{run(e,t){const i=A.get(t);if(!i)return;const s=t._getViewModel();if(s){const n=s.getCursorStates(),r=g.z0.get(t);if(r)this._run(i,r);else{const s=e.get(C._Y).createInstance(g.z0,t);this._run(i,s),s.dispose()}S(n,s.getCursorStates())}}}class I{constructor(e,t,i,s,n){this._model=e,this._searchText=t,this._matchCase=i,this._wordSeparators=s,this._modelVersionId=this._model.getVersionId(),this._cachedFindMatches=null,n&&this._model===n._model&&this._searchText===n._searchText&&this._matchCase===n._matchCase&&this._wordSeparators===n._wordSeparators&&this._modelVersionId===n._modelVersionId&&(this._cachedFindMatches=n._cachedFindMatches)}findMatches(){return null===this._cachedFindMatches&&(this._cachedFindMatches=this._model.findMatches(this._searchText,!0,!1,this._matchCase,this._wordSeparators,!1).map((e=>e.range)),this._cachedFindMatches.sort(h.Q.compareRangesUsingStarts)),this._cachedFindMatches}}let O=class extends a.jG{static{s=this}static{this.ID="editor.contrib.selectionHighlighter"}constructor(e,t){super(),this._languageFeaturesService=t,this.editor=e,this._isEnabled=e.getOption(109),this._decorations=e.createDecorationsCollection(),this.updateSoon=this._register(new r.uC((()=>this._update()),300)),this.state=null,this._register(e.onDidChangeConfiguration((t=>{this._isEnabled=e.getOption(109)}))),this._register(e.onDidChangeCursorSelection((e=>{this._isEnabled&&(e.selection.isEmpty()?3===e.reason?(this.state&&this._setState(null),this.updateSoon.schedule()):this._setState(null):this._update())}))),this._register(e.onDidChangeModel((e=>{this._setState(null)}))),this._register(e.onDidChangeModelContent((e=>{this._isEnabled&&this.updateSoon.schedule()})));const i=g.z0.get(e);i&&this._register(i.getState().onFindReplaceStateChange((e=>{this._update()}))),this.updateSoon.schedule()}_update(){this._setState(s._createState(this.state,this._isEnabled,this.editor))}static _createState(e,t,i){if(!t)return null;if(!i.hasModel())return null;const s=i.getSelection();if(s.startLineNumber!==s.endLineNumber)return null;const n=A.get(i);if(!n)return null;const r=g.z0.get(i);if(!r)return null;let o=n.getSession(r);if(!o){const e=i.getSelections();if(e.length>1){const t=r.getState().matchCase;if(!D(i.getModel(),e,t))return null}o=k.create(i,r)}if(!o)return null;if(o.currentMatch)return null;if(/^[ \t]+$/.test(o.searchText))return null;if(o.searchText.length>200)return null;const a=r.getState(),c=a.matchCase;if(a.isRevealed){let e=a.searchString;c||(e=e.toLowerCase());let t=o.searchText;if(c||(t=t.toLowerCase()),e===t&&o.matchCase===a.matchCase&&o.wholeWord===a.wholeWord&&!a.isRegex)return null}return new I(i.getModel(),o.searchText,o.matchCase,o.wholeWord?i.getOption(132):null,e)}_setState(e){if(this.state=e,!this.state)return void this._decorations.clear();if(!this.editor.hasModel())return;const t=this.editor.getModel();if(t.isTooLargeForTokenization())return;const i=this.state.findMatches(),s=this.editor.getSelections();s.sort(h.Q.compareRangesUsingStarts);const n=[];for(let c=0,l=0,d=i.length,u=s.length;c<d;){const e=i[c];if(l>=u)n.push(e),c++;else{const t=h.Q.compareRangesUsingStarts(e,s[l]);t<0?(!s[l].isEmpty()&&h.Q.areIntersecting(e,s[l])||n.push(e),c++):(t>0||c++,l++)}}const r="off"!==this.editor.getOption(81),o=this._languageFeaturesService.documentHighlightProvider.has(t)&&r,a=n.map((e=>({range:e,options:(0,v.v)(o)})));this._decorations.set(a)}dispose(){this._setState(null),super.dispose()}};function D(e,t,i){const s=M(e,t[0],!i);for(let n=1,r=t.length;n<r;n++){const r=t[n];if(r.isEmpty())return!1;if(s!==M(e,r,!i))return!1}return!0}function M(e,t,i){const s=e.getValueInRange(t);return i?s.toLowerCase():s}O=s=E([b(1,_.ILanguageFeaturesService)],O);class P extends c.ks{constructor(){super({id:"editor.action.focusNextCursor",label:p.kg("mutlicursor.focusNextCursor","Focus Next Cursor"),metadata:{description:p.kg("mutlicursor.focusNextCursor.description","Focuses the next cursor"),args:[]},alias:"Focus Next Cursor",precondition:void 0})}run(e,t,i){if(!t.hasModel())return;const s=t._getViewModel();if(s.cursorConfig.readOnly)return;s.model.pushStackElement();const n=Array.from(s.getCursorStates()),r=n.shift();r&&(n.push(r),s.setCursorStates(i.source,3,n),s.revealPrimaryCursor(i.source,!0),S(n,s.getCursorStates()))}}class F extends c.ks{constructor(){super({id:"editor.action.focusPreviousCursor",label:p.kg("mutlicursor.focusPreviousCursor","Focus Previous Cursor"),metadata:{description:p.kg("mutlicursor.focusPreviousCursor.description","Focuses the previous cursor"),args:[]},alias:"Focus Previous Cursor",precondition:void 0})}run(e,t,i){if(!t.hasModel())return;const s=t._getViewModel();if(s.cursorConfig.readOnly)return;s.model.pushStackElement();const n=Array.from(s.getCursorStates()),r=n.pop();r&&(n.unshift(r),s.setCursorStates(i.source,3,n),s.revealPrimaryCursor(i.source,!0),S(n,s.getCursorStates()))}}(0,c.HW)(A.ID,A,4),(0,c.HW)(O.ID,O,1),(0,c.Fl)(y),(0,c.Fl)(w),(0,c.Fl)(R),(0,c.Fl)(class extends N{constructor(){super({id:"editor.action.addSelectionToNextFindMatch",label:p.kg("addSelectionToNextFindMatch","Add Selection To Next Find Match"),alias:"Add Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:u.R.focus,primary:2082,weight:100},menuOpts:{menuId:m.D8.MenubarSelectionMenu,group:"3_multi",title:p.kg({key:"miAddSelectionToNextFindMatch",comment:["&& denotes a mnemonic"]},"Add &&Next Occurrence"),order:5}})}_run(e,t){e.addSelectionToNextFindMatch(t)}}),(0,c.Fl)(class extends N{constructor(){super({id:"editor.action.addSelectionToPreviousFindMatch",label:p.kg("addSelectionToPreviousFindMatch","Add Selection To Previous Find Match"),alias:"Add Selection To Previous Find Match",precondition:void 0,menuOpts:{menuId:m.D8.MenubarSelectionMenu,group:"3_multi",title:p.kg({key:"miAddSelectionToPreviousFindMatch",comment:["&& denotes a mnemonic"]},"Add P&&revious Occurrence"),order:6}})}_run(e,t){e.addSelectionToPreviousFindMatch(t)}}),(0,c.Fl)(class extends N{constructor(){super({id:"editor.action.moveSelectionToNextFindMatch",label:p.kg("moveSelectionToNextFindMatch","Move Last Selection To Next Find Match"),alias:"Move Last Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:u.R.focus,primary:(0,o.m5)(2089,2082),weight:100}})}_run(e,t){e.moveSelectionToNextFindMatch(t)}}),(0,c.Fl)(class extends N{constructor(){super({id:"editor.action.moveSelectionToPreviousFindMatch",label:p.kg("moveSelectionToPreviousFindMatch","Move Last Selection To Previous Find Match"),alias:"Move Last Selection To Previous Find Match",precondition:void 0})}_run(e,t){e.moveSelectionToPreviousFindMatch(t)}}),(0,c.Fl)(class extends N{constructor(){super({id:"editor.action.selectHighlights",label:p.kg("selectAllOccurrencesOfFindMatch","Select All Occurrences of Find Match"),alias:"Select All Occurrences of Find Match",precondition:void 0,kbOpts:{kbExpr:u.R.focus,primary:3114,weight:100},menuOpts:{menuId:m.D8.MenubarSelectionMenu,group:"3_multi",title:p.kg({key:"miSelectHighlights",comment:["&& denotes a mnemonic"]},"Select All &&Occurrences"),order:7}})}_run(e,t){e.selectAll(t)}}),(0,c.Fl)(class extends N{constructor(){super({id:"editor.action.changeAll",label:p.kg("changeAll.label","Change All Occurrences"),alias:"Change All Occurrences",precondition:f.M$.and(u.R.writable,u.R.editorTextFocus),kbOpts:{kbExpr:u.R.editorTextFocus,primary:2108,weight:100},contextMenuOpts:{group:"1_modification",order:1.2}})}_run(e,t){e.selectAll(t)}}),(0,c.Fl)(L),(0,c.Fl)(T),(0,c.Fl)(P),(0,c.Fl)(F)},50576:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>i.e(4870).then(i.bind(i,84870))})},50629:e=>{e.exports=function(){function e(e,t){return"yson"===t.format?"%"+e.$value:e.$value}return e.isScalar=!0,e}},50848:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>i.e(4662).then(i.bind(i,24662))})},50868:(e,t,i)=>{"use strict";i.d(t,{$t:()=>f,gI:()=>_,ER:()=>v});var s=i(91508),n=i(36677),r=i(18447),o=i(5662),a=i(31450),c=i(32848),l=i(58925),h=i(63591),d=i(14718),u=i(78209);const g=(0,h.u1)("IEditorCancelService"),p=new c.N1("cancellableOperation",!1,(0,u.kg)("cancellableOperation","Whether the editor runs a cancellable operation, e.g. like 'Peek References'"));(0,d.v)(g,class{constructor(){this._tokens=new WeakMap}add(e,t){let i,s=this._tokens.get(e);return s||(s=e.invokeWithinContext((e=>({key:p.bindTo(e.get(c.fN)),tokens:new l.w}))),this._tokens.set(e,s)),s.key.set(!0),i=s.tokens.push(t),()=>{i&&(i(),s.key.set(!s.tokens.isEmpty()),i=void 0)}}cancel(e){const t=this._tokens.get(e);if(!t)return;const i=t.tokens.pop();i&&(i.cancel(),t.key.set(!t.tokens.isEmpty()))}},1);class m extends r.Qi{constructor(e,t){super(t),this.editor=e,this._unregister=e.invokeWithinContext((t=>t.get(g).add(e,this)))}dispose(){this._unregister(),super.dispose()}}(0,a.E_)(new class extends a.DX{constructor(){super({id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:p})}runEditorCommand(e,t){e.get(g).cancel(t)}});class f{constructor(e,t){if(this.flags=t,0!==(1&this.flags)){const t=e.getModel();this.modelVersionId=t?s.GP("{0}#{1}",t.uri.toString(),t.getVersionId()):null}else this.modelVersionId=null;0!==(4&this.flags)?this.position=e.getPosition():this.position=null,0!==(2&this.flags)?this.selection=e.getSelection():this.selection=null,0!==(8&this.flags)?(this.scrollLeft=e.getScrollLeft(),this.scrollTop=e.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}_equals(e){if(!(e instanceof f))return!1;const t=e;return this.modelVersionId===t.modelVersionId&&(this.scrollLeft===t.scrollLeft&&this.scrollTop===t.scrollTop&&(!(!this.position&&t.position||this.position&&!t.position||this.position&&t.position&&!this.position.equals(t.position))&&!(!this.selection&&t.selection||this.selection&&!t.selection||this.selection&&t.selection&&!this.selection.equalsRange(t.selection))))}validate(e){return this._equals(new f(e,this.flags))}}class _ extends m{constructor(e,t,i,s){super(e,s),this._listener=new o.Cm,4&t&&this._listener.add(e.onDidChangeCursorPosition((e=>{i&&n.Q.containsPosition(i,e.position)||this.cancel()}))),2&t&&this._listener.add(e.onDidChangeCursorSelection((e=>{i&&n.Q.containsRange(i,e.selection)||this.cancel()}))),8&t&&this._listener.add(e.onDidScrollChange((e=>this.cancel()))),1&t&&(this._listener.add(e.onDidChangeModel((e=>this.cancel()))),this._listener.add(e.onDidChangeModelContent((e=>this.cancel()))))}dispose(){this._listener.dispose(),super.dispose()}}class v extends r.Qi{constructor(e,t){super(t),this._listener=e.onDidChangeContent((()=>this.cancel()))}dispose(){this._listener.dispose(),super.dispose()}}},50973:(e,t,i)=>{"use strict";i.d(t,{W:()=>r});var s=i(83069),n=i(36677);class r{static{this.zero=new r(0,0)}static betweenPositions(e,t){return e.lineNumber===t.lineNumber?new r(0,t.column-e.column):new r(t.lineNumber-e.lineNumber,t.column-1)}static ofRange(e){return r.betweenPositions(e.getStartPosition(),e.getEndPosition())}static ofText(e){let t=0,i=0;for(const s of e)"\n"===s?(t++,i=0):i++;return new r(t,i)}constructor(e,t){this.lineCount=e,this.columnCount=t}isGreaterThanOrEqualTo(e){return this.lineCount!==e.lineCount?this.lineCount>e.lineCount:this.columnCount>=e.columnCount}createRange(e){return 0===this.lineCount?new n.Q(e.lineNumber,e.column,e.lineNumber,e.column+this.columnCount):new n.Q(e.lineNumber,e.column,e.lineNumber+this.lineCount,this.columnCount+1)}addToPosition(e){return 0===this.lineCount?new s.y(e.lineNumber,e.column+this.columnCount):new s.y(e.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}}},51173:(e,t,i)=>{"use strict";i.d(t,{C:()=>a,O:()=>o});var s=i(25890),n=i(26690),r=i(91508);class o{constructor(e,t){this.leadingLineContent=e,this.characterCountDelta=t}}class a{constructor(e,t,i,s,r,o,c=n.Nd.default,l=void 0){this.clipboardText=l,this._snippetCompareFn=a._compareCompletionItems,this._items=e,this._column=t,this._wordDistance=s,this._options=r,this._refilterKind=1,this._lineContext=i,this._fuzzyScoreOptions=c,"top"===o?this._snippetCompareFn=a._compareCompletionItemsSnippetsUp:"bottom"===o&&(this._snippetCompareFn=a._compareCompletionItemsSnippetsDown)}get lineContext(){return this._lineContext}set lineContext(e){this._lineContext.leadingLineContent===e.leadingLineContent&&this._lineContext.characterCountDelta===e.characterCountDelta||(this._refilterKind=this._lineContext.characterCountDelta<e.characterCountDelta&&this._filteredItems?2:1,this._lineContext=e)}get items(){return this._ensureCachedState(),this._filteredItems}getItemsByProvider(){return this._ensureCachedState(),this._itemsByProvider}getIncompleteProvider(){this._ensureCachedState();const e=new Set;for(const[t,i]of this.getItemsByProvider())i.length>0&&i[0].container.incomplete&&e.add(t);return e}get stats(){return this._ensureCachedState(),this._stats}_ensureCachedState(){0!==this._refilterKind&&this._createCachedState()}_createCachedState(){this._itemsByProvider=new Map;const e=[],{leadingLineContent:t,characterCountDelta:i}=this._lineContext;let o="",a="";const c=1===this._refilterKind?this._items:this._filteredItems,l=[],h=!this._options.filterGraceful||c.length>2e3?n.dt:n.uU;for(let s=0;s<c.length;s++){const d=c[s];if(d.isInvalid)continue;const u=this._itemsByProvider.get(d.provider);u?u.push(d):this._itemsByProvider.set(d.provider,[d]);const g=d.position.column-d.editStart.column,p=g+i-(d.position.column-this._column);if(o.length!==p&&(o=0===p?"":t.slice(-p),a=o.toLowerCase()),d.word=o,0===p)d.score=n.ne.Default;else{let e=0;for(;e<g;){const t=o.charCodeAt(e);if(32!==t&&9!==t)break;e+=1}if(e>=p)d.score=n.ne.Default;else if("string"===typeof d.completion.filterText){const t=h(o,a,e,d.completion.filterText,d.filterTextLow,0,this._fuzzyScoreOptions);if(!t)continue;0===(0,r.W1)(d.completion.filterText,d.textLabel)?d.score=t:(d.score=(0,n.Jo)(o,a,e,d.textLabel,d.labelLow,0),d.score[0]=t[0])}else{const t=h(o,a,e,d.textLabel,d.labelLow,0,this._fuzzyScoreOptions);if(!t)continue;d.score=t}}d.idx=s,d.distance=this._wordDistance.distance(d.position,d.completion),l.push(d),e.push(d.textLabel.length)}this._filteredItems=l.sort(this._snippetCompareFn),this._refilterKind=0,this._stats={pLabelLen:e.length?(0,s.SO)(e.length-.85,e,((e,t)=>e-t)):0}}static _compareCompletionItems(e,t){return e.score[0]>t.score[0]?-1:e.score[0]<t.score[0]?1:e.distance<t.distance?-1:e.distance>t.distance?1:e.idx<t.idx?-1:e.idx>t.idx?1:0}static _compareCompletionItemsSnippetsDown(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return 1;if(27===t.completion.kind)return-1}return a._compareCompletionItems(e,t)}static _compareCompletionItemsSnippetsUp(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return-1;if(27===t.completion.kind)return 1}return a._compareCompletionItems(e,t)}}},51219:(e,t,i)=>{"use strict";i.d(t,{U:()=>n});var s=i(8597);function n(e,t,i){const n=s.BK(e);return!(t<n.left||t>n.left+n.width||i<n.top||i>n.top+n.height)}},51232:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>i.e(6374).then(i.bind(i,36374))})},51241:(e,t,i)=>{"use strict";i.d(t,{KC:()=>a,S3:()=>r,dB:()=>c,nx:()=>n,r:()=>o});var s=i(25890);const n=(e,t)=>e===t;function r(e=n){return(t,i)=>s.aI(t,i,e)}function o(){return(e,t)=>e.equals(t)}function a(e,t,i){if(void 0!==i){return void 0===e||null===e||void 0===t||null===t?t===e:i(e,t)}{const t=e;return(e,i)=>void 0===e||null===e||void 0===i||null===i?i===e:t(e,i)}}function c(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(!c(e[i],t[i]))return!1;return!0}if(e&&"object"===typeof e&&t&&"object"===typeof t&&Object.getPrototypeOf(e)===Object.prototype&&Object.getPrototypeOf(t)===Object.prototype){const i=e,s=t,n=Object.keys(i),r=Object.keys(s),o=new Set(r);if(n.length!==r.length)return!1;for(const e of n){if(!o.has(e))return!1;if(!c(i[e],s[e]))return!1}return!0}return!1}new WeakMap},51376:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>i.e(246).then(i.bind(i,10246))})},51465:(e,t,i)=>{"use strict";i.d(t,{L:()=>s});const s=(0,i(63591).u1)("workspaceTrustManagementService")},51467:(e,t,i)=>{"use strict";i.d(t,{C1:()=>o,Fp:()=>a,GK:()=>l,Ym:()=>n,dH:()=>c,kF:()=>r});var s=i(63591);const n={ctrlCmd:!1,alt:!1};var r,o,a,c;!function(e){e[e.Blur=1]="Blur",e[e.Gesture=2]="Gesture",e[e.Other=3]="Other"}(r||(r={})),function(e){e[e.NONE=0]="NONE",e[e.FIRST=1]="FIRST",e[e.SECOND=2]="SECOND",e[e.LAST=3]="LAST"}(o||(o={})),function(e){e[e.First=1]="First",e[e.Second=2]="Second",e[e.Last=3]="Last",e[e.Next=4]="Next",e[e.Previous=5]="Previous",e[e.NextPage=6]="NextPage",e[e.PreviousPage=7]="PreviousPage",e[e.NextSeparator=8]="NextSeparator",e[e.PreviousSeparator=9]="PreviousSeparator"}(a||(a={})),function(e){e[e.Title=1]="Title",e[e.Inline=2]="Inline"}(c||(c={}));new class{constructor(e){this.options=e}};const l=(0,s.u1)("quickInputService")},51861:(e,t,i)=>{"use strict";i.d(t,{E6:()=>l,Hw:()=>n,YN:()=>s,gf:()=>o,n9:()=>a,oq:()=>r,tu:()=>h,vp:()=>c});var s,n,r,o,a,c,l,h,d=i(78209);!function(e){e.inspectTokensAction=d.kg("inspectTokens","Developer: Inspect Tokens")}(s||(s={})),function(e){e.gotoLineActionLabel=d.kg("gotoLineActionLabel","Go to Line/Column...")}(n||(n={})),function(e){e.helpQuickAccessActionLabel=d.kg("helpQuickAccess","Show all Quick Access Providers")}(r||(r={})),function(e){e.quickCommandActionLabel=d.kg("quickCommandActionLabel","Command Palette"),e.quickCommandHelp=d.kg("quickCommandActionHelp","Show And Run Commands")}(o||(o={})),function(e){e.quickOutlineActionLabel=d.kg("quickOutlineActionLabel","Go to Symbol..."),e.quickOutlineByCategoryActionLabel=d.kg("quickOutlineByCategoryActionLabel","Go to Symbol by Category...")}(a||(a={})),function(e){e.editorViewAccessibleLabel=d.kg("editorViewAccessibleLabel","Editor content")}(c||(c={})),function(e){e.toggleHighContrast=d.kg("toggleHighContrast","Toggle High Contrast Theme")}(l||(l={})),function(e){e.bulkEditServiceSummary=d.kg("bulkEditServiceSummary","Made {0} edits in {1} files")}(h||(h={}))},51929:(e,t,i)=>{"use strict";i.r(t),i.d(t,{SimpleWorkerClient:()=>C,SimpleWorkerServer:()=>S,create:()=>y,logOnceWebWorkerWarning:()=>u});var s=i(64383),n=i(41234),r=i(5662),o=i(36456),a=i(98067),c=i(91508);const l="default",h="$initialize";let d=!1;function u(e){a.HZ&&(d||(d=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(e.message))}class g{constructor(e,t,i,s,n){this.vsWorker=e,this.req=t,this.channel=i,this.method=s,this.args=n,this.type=0}}class p{constructor(e,t,i,s){this.vsWorker=e,this.seq=t,this.res=i,this.err=s,this.type=1}}class m{constructor(e,t,i,s,n){this.vsWorker=e,this.req=t,this.channel=i,this.eventName=s,this.arg=n,this.type=2}}class f{constructor(e,t,i){this.vsWorker=e,this.req=t,this.event=i,this.type=3}}class _{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class v{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,t,i){const s=String(++this._lastSentReq);return new Promise(((n,r)=>{this._pendingReplies[s]={resolve:n,reject:r},this._send(new g(this._workerId,s,e,t,i))}))}listen(e,t,i){let s=null;const r=new n.vl({onWillAddFirstListener:()=>{s=String(++this._lastSentReq),this._pendingEmitters.set(s,r),this._send(new m(this._workerId,s,e,t,i))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(s),this._send(new _(this._workerId,s)),s=null}});return r.event}handleMessage(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))}createProxyToRemoteChannel(e,t){const i={get:(i,s)=>("string"!==typeof s||i[s]||(b(s)?i[s]=t=>this.listen(e,s,t):E(s)?i[s]=this.listen(e,s,void 0):36===s.charCodeAt(0)&&(i[s]=async(...i)=>(await(t?.()),this.sendMessage(e,s,i)))),i[s])};return new Proxy(Object.create(null),i)}_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])return void console.warn("Got reply to unknown seq");const t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let i=e.err;return e.err.$isError&&(i=new Error,i.name=e.err.name,i.message=e.err.message,i.stack=e.err.stack),void t.reject(i)}t.resolve(e.res)}_handleRequestMessage(e){const t=e.req;this._handler.handleMessage(e.channel,e.method,e.args).then((e=>{this._send(new p(this._workerId,t,e,void 0))}),(e=>{e.detail instanceof Error&&(e.detail=(0,s.cU)(e.detail)),this._send(new p(this._workerId,t,void 0,(0,s.cU)(e)))}))}_handleSubscribeEventMessage(e){const t=e.req,i=this._handler.handleEvent(e.channel,e.eventName,e.arg)((e=>{this._send(new f(this._workerId,t,e))}));this._pendingEvents.set(t,i)}_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){const t=[];if(0===e.type)for(let i=0;i<e.args.length;i++)e.args[i]instanceof ArrayBuffer&&t.push(e.args[i]);else 1===e.type&&e.res instanceof ArrayBuffer&&t.push(e.res);this._handler.sendMessage(e,t)}}class C extends r.jG{constructor(e,t){super(),this._localChannels=new Map,this._worker=this._register(e.create({amdModuleId:"vs/base/common/worker/simpleWorker",esmModuleLocation:t.esmModuleLocation,label:t.label},(e=>{this._protocol.handleMessage(e)}),(e=>{(0,s.dz)(e)}))),this._protocol=new v({sendMessage:(e,t)=>{this._worker.postMessage(e,t)},handleMessage:(e,t,i)=>this._handleMessage(e,t,i),handleEvent:(e,t,i)=>this._handleEvent(e,t,i)}),this._protocol.setWorkerId(this._worker.getId());let i=null;const n=globalThis.require;"undefined"!==typeof n&&"function"===typeof n.getConfig?i=n.getConfig():"undefined"!==typeof globalThis.requirejs&&(i=globalThis.requirejs.s.contexts._.config),this._onModuleLoaded=this._protocol.sendMessage(l,h,[this._worker.getId(),JSON.parse(JSON.stringify(i)),t.amdModuleId]),this.proxy=this._protocol.createProxyToRemoteChannel(l,(async()=>{await this._onModuleLoaded})),this._onModuleLoaded.catch((e=>{this._onError("Worker failed to load "+t.amdModuleId,e)}))}_handleMessage(e,t,i){const s=this._localChannels.get(e);if(!s)return Promise.reject(new Error(`Missing channel ${e} on main thread`));if("function"!==typeof s[t])return Promise.reject(new Error(`Missing method ${t} on main thread channel ${e}`));try{return Promise.resolve(s[t].apply(s,i))}catch(n){return Promise.reject(n)}}_handleEvent(e,t,i){const s=this._localChannels.get(e);if(!s)throw new Error(`Missing channel ${e} on main thread`);if(b(t)){const n=s[t].call(s,i);if("function"!==typeof n)throw new Error(`Missing dynamic event ${t} on main thread channel ${e}.`);return n}if(E(t)){const i=s[t];if("function"!==typeof i)throw new Error(`Missing event ${t} on main thread channel ${e}.`);return i}throw new Error(`Malformed event name ${t}`)}setChannel(e,t){this._localChannels.set(e,t)}_onError(e,t){console.error(e),console.info(t)}}function E(e){return"o"===e[0]&&"n"===e[1]&&c.Wv(e.charCodeAt(2))}function b(e){return/^onDynamic/.test(e)&&c.Wv(e.charCodeAt(9))}class S{constructor(e,t){this._localChannels=new Map,this._remoteChannels=new Map,this._requestHandlerFactory=t,this._requestHandler=null,this._protocol=new v({sendMessage:(t,i)=>{e(t,i)},handleMessage:(e,t,i)=>this._handleMessage(e,t,i),handleEvent:(e,t,i)=>this._handleEvent(e,t,i)})}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,t,i){if(e===l&&t===h)return this.initialize(i[0],i[1],i[2]);const s=e===l?this._requestHandler:this._localChannels.get(e);if(!s)return Promise.reject(new Error(`Missing channel ${e} on worker thread`));if("function"!==typeof s[t])return Promise.reject(new Error(`Missing method ${t} on worker thread channel ${e}`));try{return Promise.resolve(s[t].apply(s,i))}catch(n){return Promise.reject(n)}}_handleEvent(e,t,i){const s=e===l?this._requestHandler:this._localChannels.get(e);if(!s)throw new Error(`Missing channel ${e} on worker thread`);if(b(t)){const e=s[t].call(s,i);if("function"!==typeof e)throw new Error(`Missing dynamic event ${t} on request handler.`);return e}if(E(t)){const e=s[t];if("function"!==typeof e)throw new Error(`Missing event ${t} on request handler.`);return e}throw new Error(`Malformed event name ${t}`)}getChannel(e){if(!this._remoteChannels.has(e)){const t=this._protocol.createProxyToRemoteChannel(e);this._remoteChannels.set(e,t)}return this._remoteChannels.get(e)}async initialize(e,t,s){if(this._protocol.setWorkerId(e),!this._requestHandlerFactory){t&&("undefined"!==typeof t.baseUrl&&delete t.baseUrl,"undefined"!==typeof t.paths&&"undefined"!==typeof t.paths.vs&&delete t.paths.vs,"undefined"!==typeof t.trustedTypesPolicy&&delete t.trustedTypesPolicy,t.catchError=!0,globalThis.require.config(t));{const e=o.zl.asBrowserUri(`${s}.js`).toString(!0);return i(5890)(`${e}`).then((e=>{if(this._requestHandler=e.create(this),!this._requestHandler)throw new Error("No RequestHandler!")}))}}this._requestHandler=this._requestHandlerFactory(this)}}function y(e){return new S(e,null)}},51934:(e,t,i)=>{"use strict";i.d(t,{_:()=>d,ou:()=>c,tk:()=>l});var s=i(64383),n=i(25982),r=i(40579),o=i(19131),a=i(32956);class c{constructor(e,t,i,s,n){this.length=e,this.kind=t,this.bracketId=i,this.bracketIds=s,this.astNode=n}}class l{constructor(e,t){this.textModel=e,this.bracketTokens=t,this.reader=new h(this.textModel,this.bracketTokens),this._offset=o.Vp,this.didPeek=!1,this.peeked=null,this.textBufferLineCount=e.getLineCount(),this.textBufferLastLineLength=e.getLineLength(this.textBufferLineCount)}get offset(){return this._offset}get length(){return(0,o.qe)(this.textBufferLineCount-1,this.textBufferLastLineLength)}skip(e){this.didPeek=!1,this._offset=(0,o.QB)(this._offset,e);const t=(0,o.l4)(this._offset);this.reader.setPosition(t.lineCount,t.columnCount)}read(){let e;return this.peeked?(this.didPeek=!1,e=this.peeked):e=this.reader.read(),e&&(this._offset=(0,o.QB)(this._offset,e.length)),e}peek(){return this.didPeek||(this.peeked=this.reader.read(),this.didPeek=!0),this.peeked}}class h{constructor(e,t){this.textModel=e,this.bracketTokens=t,this.lineIdx=0,this.line=null,this.lineCharOffset=0,this.lineTokens=null,this.lineTokenOffset=0,this.peekedToken=null,this.textBufferLineCount=e.getLineCount(),this.textBufferLastLineLength=e.getLineLength(this.textBufferLineCount)}setPosition(e,t){e===this.lineIdx?(this.lineCharOffset=t,null!==this.line&&(this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset))):(this.lineIdx=e,this.lineCharOffset=t,this.line=null),this.peekedToken=null}read(){if(this.peekedToken){const e=this.peekedToken;return this.peekedToken=null,this.lineCharOffset+=(0,o.sS)(e.length),e}if(this.lineIdx>this.textBufferLineCount-1||this.lineIdx===this.textBufferLineCount-1&&this.lineCharOffset>=this.textBufferLastLineLength)return null;null===this.line&&(this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.line=this.lineTokens.getLineContent(),this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset));const e=this.lineIdx,t=this.lineCharOffset;let i=0;for(;;){const s=this.lineTokens,r=s.getCount();let a=null;if(this.lineTokenOffset<r){const c=s.getMetadata(this.lineTokenOffset);for(;this.lineTokenOffset+1<r&&c===s.getMetadata(this.lineTokenOffset+1);)this.lineTokenOffset++;const l=0===n.x.getTokenType(c),h=n.x.containsBalancedBrackets(c),d=s.getEndOffset(this.lineTokenOffset);if(h&&l&&this.lineCharOffset<d){const e=s.getLanguageId(this.lineTokenOffset),t=this.line.substring(this.lineCharOffset,d),i=this.bracketTokens.getSingleLanguageBracketTokens(e),n=i.regExpGlobal;if(n){n.lastIndex=0;const e=n.exec(t);e&&(a=i.getToken(e[0]),a&&(this.lineCharOffset+=e.index))}}if(i+=d-this.lineCharOffset,a){if(e!==this.lineIdx||t!==this.lineCharOffset){this.peekedToken=a;break}return this.lineCharOffset+=(0,o.sS)(a.length),a}this.lineTokenOffset++,this.lineCharOffset=d}else{if(this.lineIdx===this.textBufferLineCount-1)break;if(this.lineIdx++,this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.lineTokenOffset=0,this.line=this.lineTokens.getLineContent(),this.lineCharOffset=0,i+=33,i>1e3)break}if(i>1500)break}const s=(0,o.C7)(e,t,this.lineIdx,this.lineCharOffset);return new c(s,0,-1,a.gV.getEmpty(),new r.yF(s))}}class d{constructor(e,t){this.text=e,this._offset=o.Vp,this.idx=0;const i=t.getRegExpStr(),s=i?new RegExp(i+"|\n","gi"):null,n=[];let l,h=0,d=0,u=0,g=0;const p=[];for(let _=0;_<60;_++)p.push(new c((0,o.qe)(0,_),0,-1,a.gV.getEmpty(),new r.yF((0,o.qe)(0,_))));const m=[];for(let _=0;_<60;_++)m.push(new c((0,o.qe)(1,_),0,-1,a.gV.getEmpty(),new r.yF((0,o.qe)(1,_))));if(s)for(s.lastIndex=0;null!==(l=s.exec(e));){const e=l.index,i=l[0];if("\n"===i)h++,d=e+1;else{if(u!==e){let t;if(g===h){const i=e-u;if(i<p.length)t=p[i];else{const e=(0,o.qe)(0,i);t=new c(e,0,-1,a.gV.getEmpty(),new r.yF(e))}}else{const i=h-g,s=e-d;if(1===i&&s<m.length)t=m[s];else{const e=(0,o.qe)(i,s);t=new c(e,0,-1,a.gV.getEmpty(),new r.yF(e))}}n.push(t)}n.push(t.getToken(i)),u=e+i.length,g=h}}const f=e.length;if(u!==f){const e=g===h?(0,o.qe)(0,f-u):(0,o.qe)(h-g,f-d);n.push(new c(e,0,-1,a.gV.getEmpty(),new r.yF(e)))}this.length=(0,o.qe)(h,f-d),this.tokens=n}get offset(){return this._offset}read(){return this.tokens[this.idx++]||null}peek(){return this.tokens[this.idx]||null}skip(e){throw new s.EM}}},52358:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var s,n=i(59284);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},r.apply(null,arguments)}const o=function(e){return n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),s||(s=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 13.5a5.5 5.5 0 100-11 5.5 5.5 0 000 11M8 15A7 7 0 108 1a7 7 0 000 14m1-4.5a1 1 0 11-2 0 1 1 0 012 0M8.75 5a.75.75 0 00-1.5 0v2.5a.75.75 0 001.5 0z",clipRule:"evenodd"})))}},52363:(e,t,i)=>{"use strict";i.d(t,{L:()=>h});var s=i(47661),n=i(5662),r=i(56942),o=i(72466),a=i(10920),c=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},l=function(e,t){return function(i,s){t(i,s,e)}};let h=class{constructor(e){this._editorWorkerService=e}async provideDocumentColors(e,t){return this._editorWorkerService.computeDefaultDocumentColors(e.uri)}provideColorPresentations(e,t,i){const n=t.range,r=t.color,o=r.alpha,a=new s.Q1(new s.bU(Math.round(255*r.red),Math.round(255*r.green),Math.round(255*r.blue),o)),c=o?s.Q1.Format.CSS.formatRGB(a):s.Q1.Format.CSS.formatRGBA(a),l=o?s.Q1.Format.CSS.formatHSL(a):s.Q1.Format.CSS.formatHSLA(a),h=o?s.Q1.Format.CSS.formatHex(a):s.Q1.Format.CSS.formatHexA(a),d=[];return d.push({label:c,textEdit:{range:n,text:c}}),d.push({label:l,textEdit:{range:n,text:l}}),d.push({label:h,textEdit:{range:n,text:h}}),d}};h=c([l(0,a.IEditorWorkerService)],h);let d=class extends n.jG{constructor(e,t){super(),this._register(e.colorProvider.register("*",new h(t)))}};d=c([l(0,r.ILanguageFeaturesService),l(1,a.IEditorWorkerService)],d),(0,o.x)(d)},52400:(e,t,i)=>{"use strict";i.d(t,{_z:()=>v});var s,n=i(80781),r=i(67913),o=(i(59284),new Uint8Array(16));function a(){if(!s&&!(s="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return s(o)}var c=[];for(let E=0;E<256;++E)c.push((E+256).toString(16).slice(1));var l={randomUUID:"undefined"!==typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};var h=function(e,t,i){if(l.randomUUID&&!t&&!e)return l.randomUUID();const s=(e=e||{}).random||(e.rng||a)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t){i=i||0;for(let e=0;e<16;++e)t[i+e]=s[e];return t}return function(e,t=0){return c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]}(s)},d={debounceTime:200,suggestionCache:{enabled:!0},sessionId:h()};var u=class{constructor(){this.currentGroup=null,this.activeCompletion=null}setCompletionGroup(e){this.currentGroup=e}getCompletionGroup(){return this.currentGroup}getActiveCompletion(){return this.activeCompletion}getCachedCompletion(e,t){const i=[];if(this.currentGroup)for(const s of this.currentGroup.items){if(!s.range)continue;if(t.lineNumber<s.range.startLineNumber||t.column<s.range.startColumn)continue;const r=new n.Position(s.range.startLineNumber,s.range.startColumn),o=e.getOffsetAt(r),a=o+s.insertText.toString().length,c=e.getOffsetAt(t);if(c>a)continue;const l=s.insertText.toString().slice(0,c-o),h=new n.Range(s.range.startLineNumber,s.range.startColumn,t.lineNumber,t.column),d=e.getValueInRange(h);l.toLowerCase()===d.toLowerCase()&&i.push({insertText:d+s.insertText.toString().slice(c-o),range:h,command:s.command,pristine:s.pristine})}return i}emptyCache(){this.currentGroup=null,this.activeCompletion=null}incrementShownCount(e){if(this.currentGroup)for(const t of this.currentGroup.items)if(t.pristine===e){this.currentGroup.shownCount++,this.activeCompletion=e;break}}markAsAccepted(e){var t;(null==(t=this.currentGroup)?void 0:t.items.some((t=>t.pristine===e)))&&(this.currentGroup.wasAccepted=!0)}};var g=class{constructor(e,t){this.timer=null,this.pendingPromise=null,this.pendingResolve=null,this.config=e,this.events=t}async getSuggestions(e,t){this.timer&&window.clearTimeout(this.timer),this.pendingPromise||(this.pendingPromise=new Promise((e=>{this.pendingResolve=e})));const i=this.pendingPromise;return this.timer=window.setTimeout((async()=>{var i,s,r;try{let r=[],o="";const a=function(e,t,i=h()){const s=e.getLinesContent(),n=s[t.lineNumber-1];if(!n)return;const r=n.slice(0,t.column-1),o=n.slice(t.column-1),a=s.slice(0,t.lineNumber-1).concat([r]).join("\n"),c=[o].concat(s.slice(t.lineNumber)).join("\n"),l={lineNumber:t.lineNumber,column:t.column},d=[];if(a&&d.push({text:a,start:{lineNumber:1,column:1},end:l}),c){const e=s[s.length-1];if(!e)return;d.push({text:c,start:l,end:{lineNumber:s.length,column:e.length}})}return d.length?[{fragments:d,cursorPosition:l,path:`${i}`}]:void 0}(e,t,this.config.sessionId);if(!a)return void(null==(i=this.pendingResolve)||i.call(this,{suggestions:[],requestId:""}));const c=await this.config.api.getCodeAssistSuggestions(a);o=(null==c?void 0:c.requestId)||"";const{word:l,startColumn:d}=e.getWordUntilPosition(t);r=((null==c?void 0:c.items)||[]).map((e=>{const i=e,s=l+i;return{label:s,sortText:"a",insertText:s,pristine:i,range:new n.Range(t.lineNumber,d,t.lineNumber,t.column),command:{id:"acceptCodeAssistCompletion",title:"",arguments:[{requestId:o,suggestionText:i,prevWordLength:l.length}]}}})),null==(s=this.pendingResolve)||s.call(this,{suggestions:r,requestId:o})}catch(o){this.events.emit("completion:error",o instanceof Error?o:new Error(String(o))),null==(r=this.pendingResolve)||r.call(this,{suggestions:[],requestId:""})}finally{this.pendingPromise=null,this.pendingResolve=null,this.timer=null}}),this.config.debounceTime),i}},p=class{constructor(){this.events=new Map}on(e,t){var i;this.events.has(e)||this.events.set(e,new Set),null==(i=this.events.get(e))||i.add(t)}off(e,t){var i;null==(i=this.events.get(e))||i.delete(t)}emit(e,t){var i;null==(i=this.events.get(e))||i.forEach((i=>{try{i(t)}catch(s){console.error(`Error in event listener for ${e}:`,s)}}))}},m=class{constructor(e,t){this.events=new p,this.config=function(e,t){return{...d,...t,suggestionCache:{...d.suggestionCache,...(null==t?void 0:t.suggestionCache)||{}},api:e}}(e,t),this.cacheManager=new u,this.suggestionProvider=new g(this.config,this.events)}async provideInlineCompletions(e,t,i,s){if(this.config.suggestionCache.enabled){const i=this.cacheManager.getCachedCompletion(e,t);if(i.length)return{items:i}}const n=this.cacheManager.getCompletionGroup();n&&!n.wasAccepted&&this.dismissCompletion(n),this.cacheManager.emptyCache();const{suggestions:r,requestId:o}=await this.suggestionProvider.getSuggestions(e,t),a={items:r,shownCount:0,requestId:o};return this.cacheManager.setCompletionGroup(a),{items:r}}handleItemDidShow(e,t){this.config.suggestionCache.enabled&&this.cacheManager.incrementShownCount(t.pristine)}handlePartialAccept(e,t,i){var s,n;const{command:r}=t,o=null!=(n=null==(s=null==r?void 0:r.arguments)?void 0:s[0])?n:{},{suggestionText:a,requestId:c,prevWordLength:l=0}=o;if(c&&a&&"string"===typeof t.insertText){const e=t.insertText.slice(l,i);e&&(this.cacheManager.markAsAccepted(a),this.events.emit("completion:accept",{requestId:c,acceptedText:e}))}}handleAccept({requestId:e,suggestionText:t}){this.cacheManager.emptyCache(),this.events.emit("completion:accept",{requestId:e,acceptedText:t})}commandDiscard(e="OnCancel",t){var i,s;const n=this.cacheManager.getCompletionGroup();if((null==n?void 0:n.requestId)&&(null==(i=n.items)?void 0:i.length)){const t=n.items.map((e=>e.pristine)),i=this.cacheManager.getActiveCompletion()||(null==(s=n.items[0])?void 0:s.pristine)||"";this.events.emit("completion:decline",{requestId:n.requestId,suggestionText:i,reason:e,hitCount:n.shownCount,allSuggestions:t}),this.cacheManager.emptyCache()}t.trigger(void 0,"editor.action.inlineSuggest.hide",void 0)}emptyCache(){this.cacheManager.emptyCache()}hasActiveSuggestions(){return null!==this.cacheManager.getCompletionGroup()}freeInlineCompletions(){}dismissCompletion(e){var t;if(!e.requestId||!(null==(t=e.items)?void 0:t.length)||!e.shownCount||e.wasAccepted)return;const[i]=e.items;if(!i)return;const s=e.items.map((e=>e.pristine)),n=this.cacheManager.getActiveCompletion()||i.pristine||"";this.events.emit("completion:ignore",{requestId:e.requestId,suggestionText:n,allSuggestions:s})}};function f(e,t={}){return new m(e,t)}var _=class{constructor(e){this.editor=e,this.disposables=[],this.completionProvider=null}register({api:e,config:t,eventHandlers:i}){this.completionProvider=f(e,t);const s=r.languages.registerInlineCompletionsProvider([t.language],this.completionProvider);this.disposables.push(s);const n=C(r,this.completionProvider,this.editor);if(this.disposables.push(...n),i){const e=this.completionProvider;i.onCompletionAccept&&e.events.on("completion:accept",i.onCompletionAccept),i.onCompletionDecline&&e.events.on("completion:decline",i.onCompletionDecline),i.onCompletionIgnore&&e.events.on("completion:ignore",i.onCompletionIgnore),i.onCompletionError&&e.events.on("completion:error",i.onCompletionError)}}dispose(){this.disposables.forEach((e=>e.dispose())),this.disposables=[],this.completionProvider=null}};function v(e){const t=new _(e);return{register:e=>t.register(e),unregister:()=>t.dispose()}}function C(e,t,i){const s=[],n=e.editor.registerCommand("acceptCodeAssistCompletion",((e,...i)=>{var s;const n=null!=(s=i[0])?s:{};if(!n||"object"!==typeof n)return;const{requestId:r,suggestionText:o}=n;r&&o&&t.handleAccept({requestId:r,suggestionText:o})}));s.push(n);const r=e.editor.registerCommand("declineCodeAssistCompletion",(()=>{t.commandDiscard("OnCancel",i)}));s.push(r);const o=i.onKeyDown((s=>{var n,r,o,a;if(s.keyCode===e.KeyCode.Escape){const e=i.getContribution("editor.contrib.suggestController"),c=null!=(a=null==(o=null==(r=null==(n=null==e?void 0:e.widget)?void 0:n.value)?void 0:r.selectFirst)?void 0:o.call(r))&&a;t.hasActiveSuggestions()&&!c&&(s.preventDefault(),i.trigger("keyboard","declineCodeAssistCompletion",null))}}));return s.push(o),s}},52555:(e,t,i)=>{"use strict";i.d(t,{x:()=>Xn});var s=i(37550),n=i(31450),r=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},o=function(e,t){return function(i,s){t(i,s,e)}};let a=class{static{this.ID="editor.contrib.markerDecorations"}constructor(e,t){}dispose(){}};a=r([o(1,s.IMarkerDecorationsService)],a),(0,n.HW)(a.ID,a,0);var c=i(8597),l=i(64383),h=i(41234),d=i(5662),u=i(36456),g=i(73157),p=i(60413),m=i(25890),f=i(10146),_=i(98067),v=i(4983),C=i(28433);class E{static{this.items=[]}constructor(e,t){this.key=e,this.migrate=t}apply(e){const t=E._read(e,this.key);this.migrate(t,(t=>E._read(e,t)),((t,i)=>E._write(e,t,i)))}static _read(e,t){if("undefined"===typeof e)return;const i=t.indexOf(".");if(i>=0){const s=t.substring(0,i);return this._read(e[s],t.substring(i+1))}return e[t]}static _write(e,t,i){const s=t.indexOf(".");if(s>=0){const n=t.substring(0,s);return e[n]=e[n]||{},void this._write(e[n],t.substring(s+1),i)}e[t]=i}}function b(e,t){E.items.push(new E(e,t))}function S(e,t){b(e,((i,s,n)=>{if("undefined"!==typeof i)for(const[r,o]of t)if(i===r)return void n(e,o)}))}S("wordWrap",[[!0,"on"],[!1,"off"]]),S("lineNumbers",[[!0,"on"],[!1,"off"]]),S("cursorBlinking",[["visible","solid"]]),S("renderWhitespace",[[!0,"boundary"],[!1,"none"]]),S("renderLineHighlight",[[!0,"line"],[!1,"none"]]),S("acceptSuggestionOnEnter",[[!0,"on"],[!1,"off"]]),S("tabCompletion",[[!1,"off"],[!0,"onlySnippets"]]),S("hover",[[!0,{enabled:!0}],[!1,{enabled:!1}]]),S("parameterHints",[[!0,{enabled:!0}],[!1,{enabled:!1}]]),S("autoIndent",[[!1,"advanced"],[!0,"full"]]),S("matchBrackets",[[!0,"always"],[!1,"never"]]),S("renderFinalNewline",[[!0,"on"],[!1,"off"]]),S("cursorSmoothCaretAnimation",[[!0,"on"],[!1,"off"]]),S("occurrencesHighlight",[[!0,"singleFile"],[!1,"off"]]),S("wordBasedSuggestions",[[!0,"matchingDocuments"],[!1,"off"]]),b("autoClosingBrackets",((e,t,i)=>{!1===e&&(i("autoClosingBrackets","never"),"undefined"===typeof t("autoClosingQuotes")&&i("autoClosingQuotes","never"),"undefined"===typeof t("autoSurround")&&i("autoSurround","never"))})),b("renderIndentGuides",((e,t,i)=>{"undefined"!==typeof e&&(i("renderIndentGuides",void 0),"undefined"===typeof t("guides.indentation")&&i("guides.indentation",!!e))})),b("highlightActiveIndentGuide",((e,t,i)=>{"undefined"!==typeof e&&(i("highlightActiveIndentGuide",void 0),"undefined"===typeof t("guides.highlightActiveIndentation")&&i("guides.highlightActiveIndentation",!!e))}));const y={method:"showMethods",function:"showFunctions",constructor:"showConstructors",deprecated:"showDeprecated",field:"showFields",variable:"showVariables",class:"showClasses",struct:"showStructs",interface:"showInterfaces",module:"showModules",property:"showProperties",event:"showEvents",operator:"showOperators",unit:"showUnits",value:"showValues",constant:"showConstants",enum:"showEnums",enumMember:"showEnumMembers",keyword:"showKeywords",text:"showWords",color:"showColors",file:"showFiles",reference:"showReferences",folder:"showFolders",typeParameter:"showTypeParameters",snippet:"showSnippets"};b("suggest.filteredTypes",((e,t,i)=>{if(e&&"object"===typeof e){for(const s of Object.entries(y)){!1===e[s[0]]&&"undefined"===typeof t(`suggest.${s[1]}`)&&i(`suggest.${s[1]}`,!1)}i("suggest.filteredTypes",void 0)}})),b("quickSuggestions",((e,t,i)=>{if("boolean"===typeof e){const t=e?"on":"off";i("quickSuggestions",{comments:t,strings:t,other:t})}})),b("experimental.stickyScroll.enabled",((e,t,i)=>{"boolean"===typeof e&&(i("experimental.stickyScroll.enabled",void 0),"undefined"===typeof t("stickyScroll.enabled")&&i("stickyScroll.enabled",e))})),b("experimental.stickyScroll.maxLineCount",((e,t,i)=>{"number"===typeof e&&(i("experimental.stickyScroll.maxLineCount",void 0),"undefined"===typeof t("stickyScroll.maxLineCount")&&i("stickyScroll.maxLineCount",e))})),b("codeActionsOnSave",((e,t,i)=>{if(e&&"object"===typeof e){let t=!1;const s={};for(const i of Object.entries(e))"boolean"===typeof i[1]?(t=!0,s[i[0]]=i[1]?"explicit":"never"):s[i[0]]=i[1];t&&i("codeActionsOnSave",s)}})),b("codeActionWidget.includeNearbyQuickfixes",((e,t,i)=>{"boolean"===typeof e&&(i("codeActionWidget.includeNearbyQuickfixes",void 0),"undefined"===typeof t("codeActionWidget.includeNearbyQuickFixes")&&i("codeActionWidget.includeNearbyQuickFixes",e))})),b("lightbulb.enabled",((e,t,i)=>{"boolean"===typeof e&&i("lightbulb.enabled",e?void 0:"off")}));var w=i(77163),R=i(87908),L=i(79027),T=i(74196),x=i(253),k=i(94106),A=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},N=function(e,t){return function(i,s){t(i,s,e)}};let I=class extends d.jG{constructor(e,t,i,s,n){super(),this._accessibilityService=n,this._onDidChange=this._register(new h.vl),this.onDidChange=this._onDidChange.event,this._onDidChangeFast=this._register(new h.vl),this.onDidChangeFast=this._onDidChangeFast.event,this._isDominatedByLongLines=!1,this._viewLineCount=1,this._lineNumbersDigitCount=1,this._reservedHeight=0,this._glyphMarginDecorationLaneCount=1,this._computeOptionsMemory=new R.n0,this.isSimpleWidget=e,this.contextMenuId=t,this._containerObserver=this._register(new v.u(s,i.dimension)),this._targetWindowId=(0,c.zk)(s).vscodeWindowId,this._rawOptions=F(i),this._validatedOptions=P.validateOptions(this._rawOptions),this.options=this._computeOptions(),this.options.get(13)&&this._containerObserver.startObserving(),this._register(L.D.onDidChangeZoomLevel((()=>this._recomputeOptions()))),this._register(w.M.onDidChangeTabFocus((()=>this._recomputeOptions()))),this._register(this._containerObserver.onDidChange((()=>this._recomputeOptions()))),this._register(C.T.onDidChange((()=>this._recomputeOptions()))),this._register(k.c.getInstance((0,c.zk)(s)).onDidChange((()=>this._recomputeOptions()))),this._register(this._accessibilityService.onDidChangeScreenReaderOptimized((()=>this._recomputeOptions())))}_recomputeOptions(){const e=this._computeOptions(),t=P.checkEquals(this.options,e);null!==t&&(this.options=e,this._onDidChangeFast.fire(t),this._onDidChange.fire(t))}_computeOptions(){const e=this._readEnvConfiguration(),t=T._8.createFromValidatedSettings(this._validatedOptions,e.pixelRatio,this.isSimpleWidget),i=this._readFontInfo(t),s={memory:this._computeOptionsMemory,outerWidth:e.outerWidth,outerHeight:e.outerHeight-this._reservedHeight,fontInfo:i,extraEditorClassName:e.extraEditorClassName,isDominatedByLongLines:this._isDominatedByLongLines,viewLineCount:this._viewLineCount,lineNumbersDigitCount:this._lineNumbersDigitCount,emptySelectionClipboard:e.emptySelectionClipboard,pixelRatio:e.pixelRatio,tabFocusMode:w.M.getTabFocusMode(),accessibilitySupport:e.accessibilitySupport,glyphMarginDecorationLaneCount:this._glyphMarginDecorationLaneCount};return P.computeOptions(this._validatedOptions,s)}_readEnvConfiguration(){return{extraEditorClassName:O(),outerWidth:this._containerObserver.getWidth(),outerHeight:this._containerObserver.getHeight(),emptySelectionClipboard:p.Tc||p.gm,pixelRatio:k.c.getInstance((0,c.ZF)(this._targetWindowId,!0).window).value,accessibilitySupport:this._accessibilityService.isScreenReaderOptimized()?2:this._accessibilityService.getAccessibilitySupport()}}_readFontInfo(e){return C.T.readFontInfo((0,c.ZF)(this._targetWindowId,!0).window,e)}getRawOptions(){return this._rawOptions}updateOptions(e){const t=F(e);P.applyUpdate(this._rawOptions,t)&&(this._validatedOptions=P.validateOptions(this._rawOptions),this._recomputeOptions())}observeContainer(e){this._containerObserver.observe(e)}setIsDominatedByLongLines(e){this._isDominatedByLongLines!==e&&(this._isDominatedByLongLines=e,this._recomputeOptions())}setModelLineCount(e){const t=function(e){let t=0;for(;e;)e=Math.floor(e/10),t++;return t||1}(e);this._lineNumbersDigitCount!==t&&(this._lineNumbersDigitCount=t,this._recomputeOptions())}setViewLineCount(e){this._viewLineCount!==e&&(this._viewLineCount=e,this._recomputeOptions())}setReservedHeight(e){this._reservedHeight!==e&&(this._reservedHeight=e,this._recomputeOptions())}setGlyphMarginDecorationLaneCount(e){this._glyphMarginDecorationLaneCount!==e&&(this._glyphMarginDecorationLaneCount=e,this._recomputeOptions())}};function O(){let e="";return p.nr||p.c8||(e+="no-user-select "),p.nr&&(e+="no-minimap-shadow ",e+="enable-user-select "),_.zx&&(e+="mac "),e}I=A([N(4,x.j)],I);class D{constructor(){this._values=[]}_read(e){return this._values[e]}get(e){return this._values[e]}_write(e,t){this._values[e]=t}}class M{constructor(){this._values=[]}_read(e){if(e>=this._values.length)throw new Error("Cannot read uninitialized value");return this._values[e]}get(e){return this._read(e)}_write(e,t){this._values[e]=t}}class P{static validateOptions(e){const t=new D;for(const i of R.BE){const s="_never_"===i.name?void 0:e[i.name];t._write(i.id,i.validate(s))}return t}static computeOptions(e,t){const i=new M;for(const s of R.BE)i._write(s.id,s.compute(t,i,e._read(s.id)));return i}static _deepEquals(e,t){if("object"!==typeof e||"object"!==typeof t||!e||!t)return e===t;if(Array.isArray(e)||Array.isArray(t))return!(!Array.isArray(e)||!Array.isArray(t))&&m.aI(e,t);if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const i in e)if(!P._deepEquals(e[i],t[i]))return!1;return!0}static checkEquals(e,t){const i=[];let s=!1;for(const n of R.BE){const r=!P._deepEquals(e._read(n.id),t._read(n.id));i[n.id]=r,r&&(s=!0)}return s?new R.lw(i):null}static applyUpdate(e,t){let i=!1;for(const s of R.BE)if(t.hasOwnProperty(s.name)){const n=s.applyUpdate(e[s.name],t[s.name]);e[s.name]=n.newValue,i=i||n.didChange}return i}}function F(e){const t=f.Go(e);return function(e){E.items.forEach((t=>t.apply(e)))}(t),t}var U=i(80301),H=i(55275),B=i(5239),W=i(37734);class V extends d.jG{constructor(){super(),this._shouldRender=!0}shouldRender(){return this._shouldRender}forceShouldRender(){this._shouldRender=!0}setShouldRender(){this._shouldRender=!0}onDidRender(){this._shouldRender=!1}onCompositionStart(e){return!1}onCompositionEnd(e){return!1}onConfigurationChanged(e){return!1}onCursorStateChanged(e){return!1}onDecorationsChanged(e){return!1}onFlushed(e){return!1}onFocusChanged(e){return!1}onLanguageConfigurationChanged(e){return!1}onLineMappingChanged(e){return!1}onLinesChanged(e){return!1}onLinesDeleted(e){return!1}onLinesInserted(e){return!1}onRevealRangeRequest(e){return!1}onScrollChanged(e){return!1}onThemeChanged(e){return!1}onTokensChanged(e){return!1}onTokensColorsChanged(e){return!1}onZonesChanged(e){return!1}handleEvents(e){let t=!1;for(let i=0,s=e.length;i<s;i++){const s=e[i];switch(s.type){case 0:this.onCompositionStart(s)&&(t=!0);break;case 1:this.onCompositionEnd(s)&&(t=!0);break;case 2:this.onConfigurationChanged(s)&&(t=!0);break;case 3:this.onCursorStateChanged(s)&&(t=!0);break;case 4:this.onDecorationsChanged(s)&&(t=!0);break;case 5:this.onFlushed(s)&&(t=!0);break;case 6:this.onFocusChanged(s)&&(t=!0);break;case 7:this.onLanguageConfigurationChanged(s)&&(t=!0);break;case 8:this.onLineMappingChanged(s)&&(t=!0);break;case 9:this.onLinesChanged(s)&&(t=!0);break;case 10:this.onLinesDeleted(s)&&(t=!0);break;case 11:this.onLinesInserted(s)&&(t=!0);break;case 12:this.onRevealRangeRequest(s)&&(t=!0);break;case 13:this.onScrollChanged(s)&&(t=!0);break;case 15:this.onTokensChanged(s)&&(t=!0);break;case 14:this.onThemeChanged(s)&&(t=!0);break;case 16:this.onTokensColorsChanged(s)&&(t=!0);break;case 17:this.onZonesChanged(s)&&(t=!0);break;default:console.info("View received unknown event: "),console.info(s)}}t&&(this._shouldRender=!0)}}class z extends V{constructor(e){super(),this._context=e,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}}class G{static write(e,t){e.setAttribute("data-mprt",String(t))}static read(e){const t=e.getAttribute("data-mprt");return null===t?0:parseInt(t,10)}static collect(e,t){const i=[];let s=0;for(;e&&e!==e.ownerDocument.body&&e!==t;)e.nodeType===e.ELEMENT_NODE&&(i[s++]=this.read(e)),e=e.parentElement;const n=new Uint8Array(s);for(let r=0;r<s;r++)n[r]=i[s-r-1];return n}}var j,K=i(92473),Y=i(83069),q=i(36677),$=i(1245),Q=i(35817),X=i(91090);class Z{constructor(e=null){this.hitTarget=e,this.type=0}}class J{get hitTarget(){return this.spanNode}constructor(e,t,i){this.position=e,this.spanNode=t,this.injectedText=i,this.type=1}}!function(e){e.createFromDOMInfo=function(e,t,i){const s=e.getPositionFromDOMInfo(t,i);return s?new J(s,t,null):new Z(t)}}(j||(j={}));class ee{constructor(e,t){this.lastViewCursorsRenderData=e,this.lastTextareaPosition=t}}class te{static _deduceRage(e,t=null){return!t&&e?new q.Q(e.lineNumber,e.column,e.lineNumber,e.column):t??null}static createUnknown(e,t,i){return{type:0,element:e,mouseColumn:t,position:i,range:this._deduceRage(i)}}static createTextarea(e,t){return{type:1,element:e,mouseColumn:t,position:null,range:null}}static createMargin(e,t,i,s,n,r){return{type:e,element:t,mouseColumn:i,position:s,range:n,detail:r}}static createViewZone(e,t,i,s,n){return{type:e,element:t,mouseColumn:i,position:s,range:this._deduceRage(s),detail:n}}static createContentText(e,t,i,s,n){return{type:6,element:e,mouseColumn:t,position:i,range:this._deduceRage(i,s),detail:n}}static createContentEmpty(e,t,i,s){return{type:7,element:e,mouseColumn:t,position:i,range:this._deduceRage(i),detail:s}}static createContentWidget(e,t,i){return{type:9,element:e,mouseColumn:t,position:null,range:null,detail:i}}static createScrollbar(e,t,i){return{type:11,element:e,mouseColumn:t,position:i,range:this._deduceRage(i)}}static createOverlayWidget(e,t,i){return{type:12,element:e,mouseColumn:t,position:null,range:null,detail:i}}static createOutsideEditor(e,t,i,s){return{type:13,element:null,mouseColumn:e,position:t,range:this._deduceRage(t),outsidePosition:i,outsideDistance:s}}static _typeToString(e){return 1===e?"TEXTAREA":2===e?"GUTTER_GLYPH_MARGIN":3===e?"GUTTER_LINE_NUMBERS":4===e?"GUTTER_LINE_DECORATIONS":5===e?"GUTTER_VIEW_ZONE":6===e?"CONTENT_TEXT":7===e?"CONTENT_EMPTY":8===e?"CONTENT_VIEW_ZONE":9===e?"CONTENT_WIDGET":10===e?"OVERVIEW_RULER":11===e?"SCROLLBAR":12===e?"OVERLAY_WIDGET":"UNKNOWN"}static toString(e){return this._typeToString(e.type)+": "+e.position+" - "+e.range+" - "+JSON.stringify(e.detail)}}class ie{static isTextArea(e){return 2===e.length&&3===e[0]&&7===e[1]}static isChildOfViewLines(e){return e.length>=4&&3===e[0]&&8===e[3]}static isStrictChildOfViewLines(e){return e.length>4&&3===e[0]&&8===e[3]}static isChildOfScrollableElement(e){return e.length>=2&&3===e[0]&&6===e[1]}static isChildOfMinimap(e){return e.length>=2&&3===e[0]&&9===e[1]}static isChildOfContentWidgets(e){return e.length>=4&&3===e[0]&&1===e[3]}static isChildOfOverflowGuard(e){return e.length>=1&&3===e[0]}static isChildOfOverflowingContentWidgets(e){return e.length>=1&&2===e[0]}static isChildOfOverlayWidgets(e){return e.length>=2&&3===e[0]&&4===e[1]}static isChildOfOverflowingOverlayWidgets(e){return e.length>=1&&5===e[0]}}class se{constructor(e,t,i){this.viewModel=e.viewModel;const s=e.configuration.options;this.layoutInfo=s.get(146),this.viewDomNode=t.viewDomNode,this.lineHeight=s.get(67),this.stickyTabStops=s.get(117),this.typicalHalfwidthCharacterWidth=s.get(50).typicalHalfwidthCharacterWidth,this.lastRenderData=i,this._context=e,this._viewHelper=t}getZoneAtCoord(e){return se.getZoneAtCoord(this._context,e)}static getZoneAtCoord(e,t){const i=e.viewLayout.getWhitespaceAtVerticalOffset(t);if(i){const s=i.verticalOffset+i.height/2,n=e.viewModel.getLineCount();let r,o=null,a=null;return i.afterLineNumber!==n&&(a=new Y.y(i.afterLineNumber+1,1)),i.afterLineNumber>0&&(o=new Y.y(i.afterLineNumber,e.viewModel.getLineMaxColumn(i.afterLineNumber))),r=null===a?o:null===o?a:t<s?o:a,{viewZoneId:i.id,afterLineNumber:i.afterLineNumber,positionBefore:o,positionAfter:a,position:r}}return null}getFullLineRangeAtCoord(e){if(this._context.viewLayout.isAfterLines(e)){const e=this._context.viewModel.getLineCount(),t=this._context.viewModel.getLineMaxColumn(e);return{range:new q.Q(e,t,e,t),isAfterLines:!0}}const t=this._context.viewLayout.getLineNumberAtVerticalOffset(e),i=this._context.viewModel.getLineMaxColumn(t);return{range:new q.Q(t,1,t,i),isAfterLines:!1}}getLineNumberAtVerticalOffset(e){return this._context.viewLayout.getLineNumberAtVerticalOffset(e)}isAfterLines(e){return this._context.viewLayout.isAfterLines(e)}isInTopPadding(e){return this._context.viewLayout.isInTopPadding(e)}isInBottomPadding(e){return this._context.viewLayout.isInBottomPadding(e)}getVerticalOffsetForLineNumber(e){return this._context.viewLayout.getVerticalOffsetForLineNumber(e)}findAttribute(e,t){return se._findAttribute(e,t,this._viewHelper.viewDomNode)}static _findAttribute(e,t,i){for(;e&&e!==e.ownerDocument.body;){if(e.hasAttribute&&e.hasAttribute(t))return e.getAttribute(t);if(e===i)return null;e=e.parentNode}return null}getLineWidth(e){return this._viewHelper.getLineWidth(e)}visibleRangeForPosition(e,t){return this._viewHelper.visibleRangeForPosition(e,t)}getPositionFromDOMInfo(e,t){return this._viewHelper.getPositionFromDOMInfo(e,t)}getCurrentScrollTop(){return this._context.viewLayout.getCurrentScrollTop()}getCurrentScrollLeft(){return this._context.viewLayout.getCurrentScrollLeft()}}class ne{constructor(e,t,i,s){this.editorPos=t,this.pos=i,this.relativePos=s,this.mouseVerticalOffset=Math.max(0,e.getCurrentScrollTop()+this.relativePos.y),this.mouseContentHorizontalOffset=e.getCurrentScrollLeft()+this.relativePos.x-e.layoutInfo.contentLeft,this.isInMarginArea=this.relativePos.x<e.layoutInfo.contentLeft&&this.relativePos.x>=e.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,ce._getMouseColumn(this.mouseContentHorizontalOffset,e.typicalHalfwidthCharacterWidth))}}class re extends ne{get target(){return this._useHitTestTarget?this.hitTestResult.value.hitTarget:this._eventTarget}get targetPath(){return this._targetPathCacheElement!==this.target&&(this._targetPathCacheElement=this.target,this._targetPathCacheValue=G.collect(this.target,this._ctx.viewDomNode)),this._targetPathCacheValue}constructor(e,t,i,s,n){super(e,t,i,s),this.hitTestResult=new X.d((()=>ce.doHitTest(this._ctx,this))),this._targetPathCacheElement=null,this._targetPathCacheValue=new Uint8Array(0),this._ctx=e,this._eventTarget=n;const r=Boolean(this._eventTarget);this._useHitTestTarget=!r}toString(){return`pos(${this.pos.x},${this.pos.y}), editorPos(${this.editorPos.x},${this.editorPos.y}), relativePos(${this.relativePos.x},${this.relativePos.y}), mouseVerticalOffset: ${this.mouseVerticalOffset}, mouseContentHorizontalOffset: ${this.mouseContentHorizontalOffset}\n\ttarget: ${this.target?this.target.outerHTML:null}`}get wouldBenefitFromHitTestTargetSwitch(){return!this._useHitTestTarget&&null!==this.hitTestResult.value.hitTarget&&this.target!==this.hitTestResult.value.hitTarget}switchToHitTestTarget(){this._useHitTestTarget=!0}_getMouseColumn(e=null){return e&&e.column<this._ctx.viewModel.getLineMaxColumn(e.lineNumber)?$.A.visibleColumnFromColumn(this._ctx.viewModel.getLineContent(e.lineNumber),e.column,this._ctx.viewModel.model.getOptions().tabSize)+1:this.mouseColumn}fulfillUnknown(e=null){return te.createUnknown(this.target,this._getMouseColumn(e),e)}fulfillTextarea(){return te.createTextarea(this.target,this._getMouseColumn())}fulfillMargin(e,t,i,s){return te.createMargin(e,this.target,this._getMouseColumn(t),t,i,s)}fulfillViewZone(e,t,i){return te.createViewZone(e,this.target,this._getMouseColumn(t),t,i)}fulfillContentText(e,t,i){return te.createContentText(this.target,this._getMouseColumn(e),e,t,i)}fulfillContentEmpty(e,t){return te.createContentEmpty(this.target,this._getMouseColumn(e),e,t)}fulfillContentWidget(e){return te.createContentWidget(this.target,this._getMouseColumn(),e)}fulfillScrollbar(e){return te.createScrollbar(this.target,this._getMouseColumn(e),e)}fulfillOverlayWidget(e){return te.createOverlayWidget(this.target,this._getMouseColumn(),e)}}const oe={isAfterLines:!0};function ae(e){return{isAfterLines:!1,horizontalDistanceToText:e}}class ce{constructor(e,t){this._context=e,this._viewHelper=t}mouseTargetIsWidget(e){const t=e.target,i=G.collect(t,this._viewHelper.viewDomNode);return!(!ie.isChildOfContentWidgets(i)&&!ie.isChildOfOverflowingContentWidgets(i))||!(!ie.isChildOfOverlayWidgets(i)&&!ie.isChildOfOverflowingOverlayWidgets(i))}createMouseTarget(e,t,i,s,n){const r=new se(this._context,this._viewHelper,e),o=new re(r,t,i,s,n);try{const e=ce._createMouseTarget(r,o);if(6===e.type&&r.stickyTabStops&&null!==e.position){const t=ce._snapToSoftTabBoundary(e.position,r.viewModel),i=q.Q.fromPositions(t,t).plusRange(e.range);return o.fulfillContentText(t,i,e.detail)}return e}catch(a){return o.fulfillUnknown()}}static _createMouseTarget(e,t){if(null===t.target)return t.fulfillUnknown();const i=t;let s=null;return ie.isChildOfOverflowGuard(t.targetPath)||ie.isChildOfOverflowingContentWidgets(t.targetPath)||ie.isChildOfOverflowingOverlayWidgets(t.targetPath)||(s=s||t.fulfillUnknown()),s=s||ce._hitTestContentWidget(e,i),s=s||ce._hitTestOverlayWidget(e,i),s=s||ce._hitTestMinimap(e,i),s=s||ce._hitTestScrollbarSlider(e,i),s=s||ce._hitTestViewZone(e,i),s=s||ce._hitTestMargin(e,i),s=s||ce._hitTestViewCursor(e,i),s=s||ce._hitTestTextArea(e,i),s=s||ce._hitTestViewLines(e,i),s=s||ce._hitTestScrollbar(e,i),s||t.fulfillUnknown()}static _hitTestContentWidget(e,t){if(ie.isChildOfContentWidgets(t.targetPath)||ie.isChildOfOverflowingContentWidgets(t.targetPath)){const i=e.findAttribute(t.target,"widgetId");return i?t.fulfillContentWidget(i):t.fulfillUnknown()}return null}static _hitTestOverlayWidget(e,t){if(ie.isChildOfOverlayWidgets(t.targetPath)||ie.isChildOfOverflowingOverlayWidgets(t.targetPath)){const i=e.findAttribute(t.target,"widgetId");return i?t.fulfillOverlayWidget(i):t.fulfillUnknown()}return null}static _hitTestViewCursor(e,t){if(t.target){const i=e.lastRenderData.lastViewCursorsRenderData;for(const e of i)if(t.target===e.domNode)return t.fulfillContentText(e.position,null,{mightBeForeignElement:!1,injectedText:null})}if(t.isInContentArea){const i=e.lastRenderData.lastViewCursorsRenderData,s=t.mouseContentHorizontalOffset,n=t.mouseVerticalOffset;for(const r of i){if(s<r.contentLeft)continue;if(s>r.contentLeft+r.width)continue;const i=e.getVerticalOffsetForLineNumber(r.position.lineNumber);if(i<=n&&n<=i+r.height)return t.fulfillContentText(r.position,null,{mightBeForeignElement:!1,injectedText:null})}}return null}static _hitTestViewZone(e,t){const i=e.getZoneAtCoord(t.mouseVerticalOffset);if(i){const e=t.isInContentArea?8:5;return t.fulfillViewZone(e,i.position,i)}return null}static _hitTestTextArea(e,t){return ie.isTextArea(t.targetPath)?e.lastRenderData.lastTextareaPosition?t.fulfillContentText(e.lastRenderData.lastTextareaPosition,null,{mightBeForeignElement:!1,injectedText:null}):t.fulfillTextarea():null}static _hitTestMargin(e,t){if(t.isInMarginArea){const i=e.getFullLineRangeAtCoord(t.mouseVerticalOffset),s=i.range.getStartPosition();let n=Math.abs(t.relativePos.x);const r={isAfterLines:i.isAfterLines,glyphMarginLeft:e.layoutInfo.glyphMarginLeft,glyphMarginWidth:e.layoutInfo.glyphMarginWidth,lineNumbersWidth:e.layoutInfo.lineNumbersWidth,offsetX:n};if(n-=e.layoutInfo.glyphMarginLeft,n<=e.layoutInfo.glyphMarginWidth){const o=e.viewModel.coordinatesConverter.convertViewPositionToModelPosition(i.range.getStartPosition()),a=e.viewModel.glyphLanes.getLanesAtLine(o.lineNumber);return r.glyphMarginLane=a[Math.floor(n/e.lineHeight)],t.fulfillMargin(2,s,i.range,r)}return n-=e.layoutInfo.glyphMarginWidth,n<=e.layoutInfo.lineNumbersWidth?t.fulfillMargin(3,s,i.range,r):(n-=e.layoutInfo.lineNumbersWidth,t.fulfillMargin(4,s,i.range,r))}return null}static _hitTestViewLines(e,t){if(!ie.isChildOfViewLines(t.targetPath))return null;if(e.isInTopPadding(t.mouseVerticalOffset))return t.fulfillContentEmpty(new Y.y(1,1),oe);if(e.isAfterLines(t.mouseVerticalOffset)||e.isInBottomPadding(t.mouseVerticalOffset)){const i=e.viewModel.getLineCount(),s=e.viewModel.getLineMaxColumn(i);return t.fulfillContentEmpty(new Y.y(i,s),oe)}if(ie.isStrictChildOfViewLines(t.targetPath)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset);if(0===e.viewModel.getLineLength(i)){const s=e.getLineWidth(i),n=ae(t.mouseContentHorizontalOffset-s);return t.fulfillContentEmpty(new Y.y(i,1),n)}const s=e.getLineWidth(i);if(t.mouseContentHorizontalOffset>=s){const n=ae(t.mouseContentHorizontalOffset-s),r=new Y.y(i,e.viewModel.getLineMaxColumn(i));return t.fulfillContentEmpty(r,n)}}const i=t.hitTestResult.value;return 1===i.type?ce.createMouseTargetFromHitTestPosition(e,t,i.spanNode,i.position,i.injectedText):t.wouldBenefitFromHitTestTargetSwitch?(t.switchToHitTestTarget(),this._createMouseTarget(e,t)):t.fulfillUnknown()}static _hitTestMinimap(e,t){if(ie.isChildOfMinimap(t.targetPath)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),s=e.viewModel.getLineMaxColumn(i);return t.fulfillScrollbar(new Y.y(i,s))}return null}static _hitTestScrollbarSlider(e,t){if(ie.isChildOfScrollableElement(t.targetPath)&&t.target&&1===t.target.nodeType){const i=t.target.className;if(i&&/\b(slider|scrollbar)\b/.test(i)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),s=e.viewModel.getLineMaxColumn(i);return t.fulfillScrollbar(new Y.y(i,s))}}return null}static _hitTestScrollbar(e,t){if(ie.isChildOfScrollableElement(t.targetPath)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),s=e.viewModel.getLineMaxColumn(i);return t.fulfillScrollbar(new Y.y(i,s))}return null}getMouseColumn(e){const t=this._context.configuration.options,i=t.get(146),s=this._context.viewLayout.getCurrentScrollLeft()+e.x-i.contentLeft;return ce._getMouseColumn(s,t.get(50).typicalHalfwidthCharacterWidth)}static _getMouseColumn(e,t){if(e<0)return 1;return Math.round(e/t)+1}static createMouseTargetFromHitTestPosition(e,t,i,s,n){const r=s.lineNumber,o=s.column,a=e.getLineWidth(r);if(t.mouseContentHorizontalOffset>a){const e=ae(t.mouseContentHorizontalOffset-a);return t.fulfillContentEmpty(s,e)}const l=e.visibleRangeForPosition(r,o);if(!l)return t.fulfillUnknown(s);const h=l.left;if(Math.abs(t.mouseContentHorizontalOffset-h)<1)return t.fulfillContentText(s,null,{mightBeForeignElement:!!n,injectedText:n});const d=[];if(d.push({offset:l.left,column:o}),o>1){const t=e.visibleRangeForPosition(r,o-1);t&&d.push({offset:t.left,column:o-1})}if(o<e.viewModel.getLineMaxColumn(r)){const t=e.visibleRangeForPosition(r,o+1);t&&d.push({offset:t.left,column:o+1})}d.sort(((e,t)=>e.offset-t.offset));const u=t.pos.toClientCoordinates(c.zk(e.viewDomNode)),g=i.getBoundingClientRect(),p=g.left<=u.clientX&&u.clientX<=g.right;let m=null;for(let c=1;c<d.length;c++){const e=d[c-1],i=d[c];if(e.offset<=t.mouseContentHorizontalOffset&&t.mouseContentHorizontalOffset<=i.offset){m=new q.Q(r,e.column,r,i.column);s=Math.abs(e.offset-t.mouseContentHorizontalOffset)<Math.abs(i.offset-t.mouseContentHorizontalOffset)?new Y.y(r,e.column):new Y.y(r,i.column);break}}return t.fulfillContentText(s,m,{mightBeForeignElement:!p||!!n,injectedText:n})}static _doHitTestWithCaretRangeFromPoint(e,t){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),s=e.getVerticalOffsetForLineNumber(i),n=s+e.lineHeight;if(!(i===e.viewModel.getLineCount()&&t.mouseVerticalOffset>n)){const i=Math.floor((s+n)/2);let r=t.pos.y+(i-t.mouseVerticalOffset);r<=t.editorPos.y&&(r=t.editorPos.y+1),r>=t.editorPos.y+t.editorPos.height&&(r=t.editorPos.y+t.editorPos.height-1);const o=new W.nz(t.pos.x,r),a=this._actualDoHitTestWithCaretRangeFromPoint(e,o.toClientCoordinates(c.zk(e.viewDomNode)));if(1===a.type)return a}return this._actualDoHitTestWithCaretRangeFromPoint(e,t.pos.toClientCoordinates(c.zk(e.viewDomNode)))}static _actualDoHitTestWithCaretRangeFromPoint(e,t){const i=c.jG(e.viewDomNode);let s;if(s=i?"undefined"===typeof i.caretRangeFromPoint?function(e,t,i){const s=document.createRange();let n=e.elementFromPoint(t,i);if(null!==n){for(;n&&n.firstChild&&n.firstChild.nodeType!==n.firstChild.TEXT_NODE&&n.lastChild&&n.lastChild.firstChild;)n=n.lastChild;const e=n.getBoundingClientRect(),i=c.zk(n),r=`${i.getComputedStyle(n,null).getPropertyValue("font-style")} ${i.getComputedStyle(n,null).getPropertyValue("font-variant")} ${i.getComputedStyle(n,null).getPropertyValue("font-weight")} ${i.getComputedStyle(n,null).getPropertyValue("font-size")}/${i.getComputedStyle(n,null).getPropertyValue("line-height")} ${i.getComputedStyle(n,null).getPropertyValue("font-family")}`,o=n.innerText;let a,l=e.left,h=0;if(t>e.left+e.width)h=o.length;else{const e=le.getInstance();for(let i=0;i<o.length+1;i++){if(a=e.getCharWidth(o.charAt(i),r)/2,l+=a,t<l){h=i;break}l+=a}}s.setStart(n.firstChild,h),s.setEnd(n.firstChild,h)}return s}(i,t.clientX,t.clientY):i.caretRangeFromPoint(t.clientX,t.clientY):e.viewDomNode.ownerDocument.caretRangeFromPoint(t.clientX,t.clientY),!s||!s.startContainer)return new Z;const n=s.startContainer;if(n.nodeType===n.TEXT_NODE){const t=n.parentNode,i=t?t.parentNode:null,r=i?i.parentNode:null;return(r&&r.nodeType===r.ELEMENT_NODE?r.className:null)===K.Gb.CLASS_NAME?j.createFromDOMInfo(e,t,s.startOffset):new Z(n.parentNode)}if(n.nodeType===n.ELEMENT_NODE){const t=n.parentNode,i=t?t.parentNode:null;return(i&&i.nodeType===i.ELEMENT_NODE?i.className:null)===K.Gb.CLASS_NAME?j.createFromDOMInfo(e,n,n.textContent.length):new Z(n)}return new Z}static _doHitTestWithCaretPositionFromPoint(e,t){const i=e.viewDomNode.ownerDocument.caretPositionFromPoint(t.clientX,t.clientY);if(i.offsetNode.nodeType===i.offsetNode.TEXT_NODE){const t=i.offsetNode.parentNode,s=t?t.parentNode:null,n=s?s.parentNode:null;return(n&&n.nodeType===n.ELEMENT_NODE?n.className:null)===K.Gb.CLASS_NAME?j.createFromDOMInfo(e,i.offsetNode.parentNode,i.offset):new Z(i.offsetNode.parentNode)}if(i.offsetNode.nodeType===i.offsetNode.ELEMENT_NODE){const t=i.offsetNode.parentNode,s=t&&t.nodeType===t.ELEMENT_NODE?t.className:null,n=t?t.parentNode:null,r=n&&n.nodeType===n.ELEMENT_NODE?n.className:null;if(s===K.Gb.CLASS_NAME){const t=i.offsetNode.childNodes[Math.min(i.offset,i.offsetNode.childNodes.length-1)];if(t)return j.createFromDOMInfo(e,t,0)}else if(r===K.Gb.CLASS_NAME)return j.createFromDOMInfo(e,i.offsetNode,0)}return new Z(i.offsetNode)}static _snapToSoftTabBoundary(e,t){const i=t.getLineContent(e.lineNumber),{tabSize:s}=t.model.getOptions(),n=Q.s.atomicPosition(i,e.column-1,s,2);return-1!==n?new Y.y(e.lineNumber,n+1):e}static doHitTest(e,t){let i=new Z;if("function"===typeof e.viewDomNode.ownerDocument.caretRangeFromPoint?i=this._doHitTestWithCaretRangeFromPoint(e,t):e.viewDomNode.ownerDocument.caretPositionFromPoint&&(i=this._doHitTestWithCaretPositionFromPoint(e,t.pos.toClientCoordinates(c.zk(e.viewDomNode)))),1===i.type){const t=e.viewModel.getInjectedTextAt(i.position),s=e.viewModel.normalizePosition(i.position,2);!t&&s.equals(i.position)||(i=new J(s,i.spanNode,t))}return i}}class le{static{this._INSTANCE=null}static getInstance(){return le._INSTANCE||(le._INSTANCE=new le),le._INSTANCE}constructor(){this._cache={},this._canvas=document.createElement("canvas")}getCharWidth(e,t){const i=e+t;if(this._cache[i])return this._cache[i];const s=this._canvas.getContext("2d");s.font=t;const n=s.measureText(e).width;return this._cache[i]=n,n}}var he=i(55089),de=i(25154),ue=i(25893),ge=i(47358),pe=i(75326),me=i(31295);class fe extends V{constructor(e,t,i){super(),this._mouseLeaveMonitor=null,this._context=e,this.viewController=t,this.viewHelper=i,this.mouseTargetFactory=new ce(this._context,i),this._mouseDownOperation=this._register(new _e(this._context,this.viewController,this.viewHelper,this.mouseTargetFactory,((e,t)=>this._createMouseTarget(e,t)),(e=>this._getMouseColumn(e)))),this.lastMouseLeaveTime=-1,this._height=this._context.configuration.options.get(146).height;const s=new W.$z(this.viewHelper.viewDomNode);this._register(s.onContextMenu(this.viewHelper.viewDomNode,(e=>this._onContextMenu(e,!0)))),this._register(s.onMouseMove(this.viewHelper.viewDomNode,(e=>{this._onMouseMove(e),this._mouseLeaveMonitor||(this._mouseLeaveMonitor=c.ko(this.viewHelper.viewDomNode.ownerDocument,"mousemove",(e=>{this.viewHelper.viewDomNode.contains(e.target)||this._onMouseLeave(new W.dO(e,!1,this.viewHelper.viewDomNode))})))}))),this._register(s.onMouseUp(this.viewHelper.viewDomNode,(e=>this._onMouseUp(e)))),this._register(s.onMouseLeave(this.viewHelper.viewDomNode,(e=>this._onMouseLeave(e))));let n=0;this._register(s.onPointerDown(this.viewHelper.viewDomNode,((e,t)=>{n=t}))),this._register(c.ko(this.viewHelper.viewDomNode,c.Bx.POINTER_UP,(e=>{this._mouseDownOperation.onPointerUp()}))),this._register(s.onMouseDown(this.viewHelper.viewDomNode,(e=>this._onMouseDown(e,n)))),this._setupMouseWheelZoomListener(),this._context.addEventHandler(this)}_setupMouseWheelZoomListener(){const e=me.QC.INSTANCE;let t=0,i=L.D.getZoomLevel(),s=!1,n=0;function r(e){return _.zx?(e.metaKey||e.ctrlKey)&&!e.shiftKey&&!e.altKey:e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey}this._register(c.ko(this.viewHelper.viewDomNode,c.Bx.MOUSE_WHEEL,(o=>{if(this.viewController.emitMouseWheel(o),!this._context.configuration.options.get(76))return;const a=new ge.$(o);if(e.acceptStandardWheelEvent(a),e.isPhysicalMouseWheel()){if(r(o)){const e=L.D.getZoomLevel(),t=a.deltaY>0?1:-1;L.D.setZoomLevel(e+t),a.preventDefault(),a.stopPropagation()}}else Date.now()-t>50&&(i=L.D.getZoomLevel(),s=r(o),n=0),t=Date.now(),n+=a.deltaY,s&&(L.D.setZoomLevel(i+n/5),a.preventDefault(),a.stopPropagation())}),{capture:!0,passive:!1}))}dispose(){this._context.removeEventHandler(this),this._mouseLeaveMonitor&&(this._mouseLeaveMonitor.dispose(),this._mouseLeaveMonitor=null),super.dispose()}onConfigurationChanged(e){if(e.hasChanged(146)){const e=this._context.configuration.options.get(146).height;this._height!==e&&(this._height=e,this._mouseDownOperation.onHeightChanged())}return!1}onCursorStateChanged(e){return this._mouseDownOperation.onCursorStateChanged(e),!1}onFocusChanged(e){return!1}getTargetAtClientPoint(e,t){const i=new W.Hh(e,t).toPageCoordinates(c.zk(this.viewHelper.viewDomNode)),s=(0,W.wt)(this.viewHelper.viewDomNode);if(i.y<s.y||i.y>s.y+s.height||i.x<s.x||i.x>s.x+s.width)return null;const n=(0,W.i_)(this.viewHelper.viewDomNode,s,i);return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),s,i,n,null)}_createMouseTarget(e,t){let i=e.target;if(!this.viewHelper.viewDomNode.contains(i)){const t=c.jG(this.viewHelper.viewDomNode);t&&(i=t.elementsFromPoint(e.posx,e.posy).find((e=>this.viewHelper.viewDomNode.contains(e))))}return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),e.editorPos,e.pos,e.relativePos,t?i:null)}_getMouseColumn(e){return this.mouseTargetFactory.getMouseColumn(e.relativePos)}_onContextMenu(e,t){this.viewController.emitContextMenu({event:e,target:this._createMouseTarget(e,t)})}_onMouseMove(e){if(this.mouseTargetFactory.mouseTargetIsWidget(e)||e.preventDefault(),this._mouseDownOperation.isActive())return;e.timestamp<this.lastMouseLeaveTime||this.viewController.emitMouseMove({event:e,target:this._createMouseTarget(e,!0)})}_onMouseLeave(e){this._mouseLeaveMonitor&&(this._mouseLeaveMonitor.dispose(),this._mouseLeaveMonitor=null),this.lastMouseLeaveTime=(new Date).getTime(),this.viewController.emitMouseLeave({event:e,target:null})}_onMouseUp(e){this.viewController.emitMouseUp({event:e,target:this._createMouseTarget(e,!0)})}_onMouseDown(e,t){const i=this._createMouseTarget(e,!0),s=6===i.type||7===i.type,n=2===i.type||3===i.type||4===i.type,r=3===i.type,o=this._context.configuration.options.get(110),a=8===i.type||5===i.type,c=9===i.type;let l=e.leftButton||e.middleButton;_.zx&&e.leftButton&&e.ctrlKey&&(l=!1);const h=()=>{e.preventDefault(),this.viewHelper.focusTextArea()};if(l&&(s||r&&o))h(),this._mouseDownOperation.start(i.type,e,t);else if(n)e.preventDefault();else if(a){const s=i.detail;l&&this.viewHelper.shouldSuppressMouseDownOnViewZone(s.viewZoneId)&&(h(),this._mouseDownOperation.start(i.type,e,t),e.preventDefault())}else c&&this.viewHelper.shouldSuppressMouseDownOnWidget(i.detail)&&(h(),e.preventDefault());this.viewController.emitMouseDown({event:e,target:i})}}class _e extends d.jG{constructor(e,t,i,s,n,r){super(),this._context=e,this._viewController=t,this._viewHelper=i,this._mouseTargetFactory=s,this._createMouseTarget=n,this._getMouseColumn=r,this._mouseMoveMonitor=this._register(new W.BA(this._viewHelper.viewDomNode)),this._topBottomDragScrolling=this._register(new ve(this._context,this._viewHelper,this._mouseTargetFactory,((e,t,i)=>this._dispatchMouse(e,t,i)))),this._mouseState=new Ee,this._currentSelection=new pe.L(1,1,1,1),this._isActive=!1,this._lastMouseEvent=null}dispose(){super.dispose()}isActive(){return this._isActive}_onMouseDownThenMove(e){this._lastMouseEvent=e,this._mouseState.setModifiers(e);const t=this._findMousePosition(e,!1);t&&(this._mouseState.isDragAndDrop?this._viewController.emitMouseDrag({event:e,target:t}):13!==t.type||"above"!==t.outsidePosition&&"below"!==t.outsidePosition?(this._topBottomDragScrolling.stop(),this._dispatchMouse(t,!0,1)):this._topBottomDragScrolling.start(t,e))}start(e,t,i){this._lastMouseEvent=t,this._mouseState.setStartedOnLineNumbers(3===e),this._mouseState.setStartButtons(t),this._mouseState.setModifiers(t);const s=this._findMousePosition(t,!0);if(!s||!s.position)return;this._mouseState.trySetCount(t.detail,s.position),t.detail=this._mouseState.count;const n=this._context.configuration.options;if(!n.get(92)&&n.get(35)&&!n.get(22)&&!this._mouseState.altKey&&t.detail<2&&!this._isActive&&!this._currentSelection.isEmpty()&&6===s.type&&s.position&&this._currentSelection.containsPosition(s.position))return this._mouseState.isDragAndDrop=!0,this._isActive=!0,void this._mouseMoveMonitor.startMonitoring(this._viewHelper.viewLinesDomNode,i,t.buttons,(e=>this._onMouseDownThenMove(e)),(e=>{const t=this._findMousePosition(this._lastMouseEvent,!1);c.kx(e)?this._viewController.emitMouseDropCanceled():this._viewController.emitMouseDrop({event:this._lastMouseEvent,target:t?this._createMouseTarget(this._lastMouseEvent,!0):null}),this._stop()}));this._mouseState.isDragAndDrop=!1,this._dispatchMouse(s,t.shiftKey,1),this._isActive||(this._isActive=!0,this._mouseMoveMonitor.startMonitoring(this._viewHelper.viewLinesDomNode,i,t.buttons,(e=>this._onMouseDownThenMove(e)),(()=>this._stop())))}_stop(){this._isActive=!1,this._topBottomDragScrolling.stop()}onHeightChanged(){this._mouseMoveMonitor.stopMonitoring()}onPointerUp(){this._mouseMoveMonitor.stopMonitoring()}onCursorStateChanged(e){this._currentSelection=e.selections[0]}_getPositionOutsideEditor(e){const t=e.editorPos,i=this._context.viewModel,s=this._context.viewLayout,n=this._getMouseColumn(e);if(e.posy<t.y){const i=t.y-e.posy,r=Math.max(s.getCurrentScrollTop()-i,0),o=se.getZoneAtCoord(this._context,r);if(o){const e=this._helpPositionJumpOverViewZone(o);if(e)return te.createOutsideEditor(n,e,"above",i)}const a=s.getLineNumberAtVerticalOffset(r);return te.createOutsideEditor(n,new Y.y(a,1),"above",i)}if(e.posy>t.y+t.height){const r=e.posy-t.y-t.height,o=s.getCurrentScrollTop()+e.relativePos.y,a=se.getZoneAtCoord(this._context,o);if(a){const e=this._helpPositionJumpOverViewZone(a);if(e)return te.createOutsideEditor(n,e,"below",r)}const c=s.getLineNumberAtVerticalOffset(o);return te.createOutsideEditor(n,new Y.y(c,i.getLineMaxColumn(c)),"below",r)}const r=s.getLineNumberAtVerticalOffset(s.getCurrentScrollTop()+e.relativePos.y);if(e.posx<t.x){const i=t.x-e.posx;return te.createOutsideEditor(n,new Y.y(r,1),"left",i)}if(e.posx>t.x+t.width){const s=e.posx-t.x-t.width;return te.createOutsideEditor(n,new Y.y(r,i.getLineMaxColumn(r)),"right",s)}return null}_findMousePosition(e,t){const i=this._getPositionOutsideEditor(e);if(i)return i;const s=this._createMouseTarget(e,t);if(!s.position)return null;if(8===s.type||5===s.type){const e=this._helpPositionJumpOverViewZone(s.detail);if(e)return te.createViewZone(s.type,s.element,s.mouseColumn,e,s.detail)}return s}_helpPositionJumpOverViewZone(e){const t=new Y.y(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),i=e.positionBefore,s=e.positionAfter;return i&&s?i.isBefore(t)?i:s:null}_dispatchMouse(e,t,i){e.position&&this._viewController.dispatchMouse({position:e.position,mouseColumn:e.mouseColumn,startedOnLineNumbers:this._mouseState.startedOnLineNumbers,revealType:i,inSelectionMode:t,mouseDownCount:this._mouseState.count,altKey:this._mouseState.altKey,ctrlKey:this._mouseState.ctrlKey,metaKey:this._mouseState.metaKey,shiftKey:this._mouseState.shiftKey,leftButton:this._mouseState.leftButton,middleButton:this._mouseState.middleButton,onInjectedText:6===e.type&&null!==e.detail.injectedText})}}class ve extends d.jG{constructor(e,t,i,s){super(),this._context=e,this._viewHelper=t,this._mouseTargetFactory=i,this._dispatchMouse=s,this._operation=null}dispose(){super.dispose(),this.stop()}start(e,t){this._operation?this._operation.setPosition(e,t):this._operation=new Ce(this._context,this._viewHelper,this._mouseTargetFactory,this._dispatchMouse,e,t)}stop(){this._operation&&(this._operation.dispose(),this._operation=null)}}class Ce extends d.jG{constructor(e,t,i,s,n,r){super(),this._context=e,this._viewHelper=t,this._mouseTargetFactory=i,this._dispatchMouse=s,this._position=n,this._mouseEvent=r,this._lastTime=Date.now(),this._animationFrameDisposable=c.PG(c.zk(r.browserEvent),(()=>this._execute()))}dispose(){this._animationFrameDisposable.dispose(),super.dispose()}setPosition(e,t){this._position=e,this._mouseEvent=t}_tick(){const e=Date.now(),t=e-this._lastTime;return this._lastTime=e,t}_getScrollSpeed(){const e=this._context.configuration.options.get(67),t=this._context.configuration.options.get(146).height/e,i=this._position.outsideDistance/e;return i<=1.5?Math.max(30,t*(1+i)):i<=3?Math.max(60,t*(2+i)):Math.max(200,t*(7+i))}_execute(){const e=this._context.configuration.options.get(67),t=this._getScrollSpeed()*(this._tick()/1e3)*e,i="above"===this._position.outsidePosition?-t:t;this._context.viewModel.viewLayout.deltaScrollNow(0,i),this._viewHelper.renderNow();const s=this._context.viewLayout.getLinesViewportData(),n="above"===this._position.outsidePosition?s.startLineNumber:s.endLineNumber;let r;{const e=(0,W.wt)(this._viewHelper.viewDomNode),t=this._context.configuration.options.get(146).horizontalScrollbarHeight,i=new W.nz(this._mouseEvent.pos.x,e.y+e.height-t-.1),s=(0,W.i_)(this._viewHelper.viewDomNode,e,i);r=this._mouseTargetFactory.createMouseTarget(this._viewHelper.getLastRenderData(),e,i,s,null)}r.position&&r.position.lineNumber===n||(r="above"===this._position.outsidePosition?te.createOutsideEditor(this._position.mouseColumn,new Y.y(n,1),"above",this._position.outsideDistance):te.createOutsideEditor(this._position.mouseColumn,new Y.y(n,this._context.viewModel.getLineMaxColumn(n)),"below",this._position.outsideDistance)),this._dispatchMouse(r,!0,2),this._animationFrameDisposable=c.PG(c.zk(r.element),(()=>this._execute()))}}class Ee{static{this.CLEAR_MOUSE_DOWN_COUNT_TIME=400}get altKey(){return this._altKey}get ctrlKey(){return this._ctrlKey}get metaKey(){return this._metaKey}get shiftKey(){return this._shiftKey}get leftButton(){return this._leftButton}get middleButton(){return this._middleButton}get startedOnLineNumbers(){return this._startedOnLineNumbers}constructor(){this._altKey=!1,this._ctrlKey=!1,this._metaKey=!1,this._shiftKey=!1,this._leftButton=!1,this._middleButton=!1,this._startedOnLineNumbers=!1,this._lastMouseDownPosition=null,this._lastMouseDownPositionEqualCount=0,this._lastMouseDownCount=0,this._lastSetMouseDownCountTime=0,this.isDragAndDrop=!1}get count(){return this._lastMouseDownCount}setModifiers(e){this._altKey=e.altKey,this._ctrlKey=e.ctrlKey,this._metaKey=e.metaKey,this._shiftKey=e.shiftKey}setStartButtons(e){this._leftButton=e.leftButton,this._middleButton=e.middleButton}setStartedOnLineNumbers(e){this._startedOnLineNumbers=e}trySetCount(e,t){const i=(new Date).getTime();i-this._lastSetMouseDownCountTime>Ee.CLEAR_MOUSE_DOWN_COUNT_TIME&&(e=1),this._lastSetMouseDownCountTime=i,e>this._lastMouseDownCount+1&&(e=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(t)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=t,this._lastMouseDownCount=Math.min(e,this._lastMouseDownPositionEqualCount)}}var be=i(68792);class Se extends fe{constructor(e,t,i){super(e,t,i),this._register(de.q.addTarget(this.viewHelper.linesContentDomNode)),this._register(c.ko(this.viewHelper.linesContentDomNode,de.B.Tap,(e=>this.onTap(e)))),this._register(c.ko(this.viewHelper.linesContentDomNode,de.B.Change,(e=>this.onChange(e)))),this._register(c.ko(this.viewHelper.linesContentDomNode,de.B.Contextmenu,(e=>this._onContextMenu(new W.dO(e,!1,this.viewHelper.viewDomNode),!1)))),this._lastPointerType="mouse",this._register(c.ko(this.viewHelper.linesContentDomNode,"pointerdown",(e=>{const t=e.pointerType;this._lastPointerType="mouse"!==t?"touch"===t?"touch":"pen":"mouse"})));const s=new W.DW(this.viewHelper.viewDomNode);this._register(s.onPointerMove(this.viewHelper.viewDomNode,(e=>this._onMouseMove(e)))),this._register(s.onPointerUp(this.viewHelper.viewDomNode,(e=>this._onMouseUp(e)))),this._register(s.onPointerLeave(this.viewHelper.viewDomNode,(e=>this._onMouseLeave(e)))),this._register(s.onPointerDown(this.viewHelper.viewDomNode,((e,t)=>this._onMouseDown(e,t))))}onTap(e){e.initialTarget&&this.viewHelper.linesContentDomNode.contains(e.initialTarget)&&(e.preventDefault(),this.viewHelper.focusTextArea(),this._dispatchGesture(e,!1))}onChange(e){"touch"===this._lastPointerType&&this._context.viewModel.viewLayout.deltaScrollNow(-e.translationX,-e.translationY),"pen"===this._lastPointerType&&this._dispatchGesture(e,!0)}_dispatchGesture(e,t){const i=this._createMouseTarget(new W.dO(e,!1,this.viewHelper.viewDomNode),!1);i.position&&this.viewController.dispatchMouse({position:i.position,mouseColumn:i.position.column,startedOnLineNumbers:!1,revealType:1,mouseDownCount:e.tapCount,inSelectionMode:t,altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,leftButton:!1,middleButton:!1,onInjectedText:6===i.type&&null!==i.detail.injectedText})}_onMouseDown(e,t){"touch"!==e.browserEvent.pointerType&&super._onMouseDown(e,t)}}class ye extends fe{constructor(e,t,i){super(e,t,i),this._register(de.q.addTarget(this.viewHelper.linesContentDomNode)),this._register(c.ko(this.viewHelper.linesContentDomNode,de.B.Tap,(e=>this.onTap(e)))),this._register(c.ko(this.viewHelper.linesContentDomNode,de.B.Change,(e=>this.onChange(e)))),this._register(c.ko(this.viewHelper.linesContentDomNode,de.B.Contextmenu,(e=>this._onContextMenu(new W.dO(e,!1,this.viewHelper.viewDomNode),!1))))}onTap(e){e.preventDefault(),this.viewHelper.focusTextArea();const t=this._createMouseTarget(new W.dO(e,!1,this.viewHelper.viewDomNode),!1);if(t.position){const e=document.createEvent("CustomEvent");e.initEvent(be.$D.Tap,!1,!0),this.viewHelper.dispatchTextAreaEvent(e),this.viewController.moveTo(t.position,1)}}onChange(e){this._context.viewModel.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)}}class we extends d.jG{constructor(e,t,i){super();(_.un||_.m0&&_.Fr)&&he.e.pointerEvents?this.handler=this._register(new Se(e,t,i)):ue.G.TouchEvent?this.handler=this._register(new ye(e,t,i)):this.handler=this._register(new fe(e,t,i))}getTargetAtClientPoint(e,t){return this.handler.getTargetAtClientPoint(e,t)}}var Re=i(78209),Le=i(91508),Te=i(69785);class xe extends V{}var ke=i(47612),Ae=i(87119);class Ne extends xe{static{this.CLASS_NAME="line-numbers"}constructor(e){super(),this._context=e,this._readConfig(),this._lastCursorModelPosition=new Y.y(1,1),this._renderResult=null,this._activeLineNumber=1,this._context.addEventHandler(this)}_readConfig(){const e=this._context.configuration.options;this._lineHeight=e.get(67);const t=e.get(68);this._renderLineNumbers=t.renderType,this._renderCustomLineNumbers=t.renderFn,this._renderFinalNewline=e.get(96);const i=e.get(146);this._lineNumbersLeft=i.lineNumbersLeft,this._lineNumbersWidth=i.lineNumbersWidth}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){return this._readConfig(),!0}onCursorStateChanged(e){const t=e.selections[0].getPosition();this._lastCursorModelPosition=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(t);let i=!1;return this._activeLineNumber!==t.lineNumber&&(this._activeLineNumber=t.lineNumber,i=!0),2!==this._renderLineNumbers&&3!==this._renderLineNumbers||(i=!0),i}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}onDecorationsChanged(e){return e.affectsLineNumber}_getLineRenderLineNumber(e){const t=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new Y.y(e,1));if(1!==t.column)return"";const i=t.lineNumber;if(this._renderCustomLineNumbers)return this._renderCustomLineNumbers(i);if(2===this._renderLineNumbers){const e=Math.abs(this._lastCursorModelPosition.lineNumber-i);return 0===e?'<span class="relative-current-line-number">'+i+"</span>":String(e)}if(3===this._renderLineNumbers){if(this._lastCursorModelPosition.lineNumber===i)return String(i);if(i%10===0)return String(i);return i===this._context.viewModel.getLineCount()?String(i):""}return String(i)}prepareRender(e){if(0===this._renderLineNumbers)return void(this._renderResult=null);const t=_.j9?this._lineHeight%2===0?" lh-even":" lh-odd":"",i=e.visibleRange.startLineNumber,s=e.visibleRange.endLineNumber,n=this._context.viewModel.getDecorationsInViewport(e.visibleRange).filter((e=>!!e.options.lineNumberClassName));n.sort(((e,t)=>q.Q.compareRangesUsingEnds(e.range,t.range)));let r=0;const o=this._context.viewModel.getLineCount(),a=[];for(let c=i;c<=s;c++){const e=c-i;let s=this._getLineRenderLineNumber(c),l="";for(;r<n.length&&n[r].range.endLineNumber<c;)r++;for(let t=r;t<n.length;t++){const{range:e,options:i}=n[t];e.startLineNumber<=c&&(l+=" "+i.lineNumberClassName)}s||l?(c===o&&0===this._context.viewModel.getLineLength(c)&&("off"===this._renderFinalNewline&&(s=""),"dimmed"===this._renderFinalNewline&&(l+=" dimmed-line-number")),c===this._activeLineNumber&&(l+=" active-line-number"),a[e]=`<div class="${Ne.CLASS_NAME}${t}${l}" style="left:${this._lineNumbersLeft}px;width:${this._lineNumbersWidth}px;">${s}</div>`):a[e]=""}this._renderResult=a}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}(0,ke.zy)(((e,t)=>{const i=e.getColor(Ae.Qt),s=e.getColor(Ae.JB);s?t.addRule(`.monaco-editor .line-numbers.dimmed-line-number { color: ${s}; }`):i&&t.addRule(`.monaco-editor .line-numbers.dimmed-line-number { color: ${i.transparent(.4)}; }`)}));class Ie extends z{static{this.CLASS_NAME="glyph-margin"}static{this.OUTER_CLASS_NAME="margin"}constructor(e){super(e);const t=this._context.configuration.options,i=t.get(146);this._canUseLayerHinting=!t.get(32),this._contentLeft=i.contentLeft,this._glyphMarginLeft=i.glyphMarginLeft,this._glyphMarginWidth=i.glyphMarginWidth,this._domNode=(0,H.Z)(document.createElement("div")),this._domNode.setClassName(Ie.OUTER_CLASS_NAME),this._domNode.setPosition("absolute"),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._glyphMarginBackgroundDomNode=(0,H.Z)(document.createElement("div")),this._glyphMarginBackgroundDomNode.setClassName(Ie.CLASS_NAME),this._domNode.appendChild(this._glyphMarginBackgroundDomNode)}dispose(){super.dispose()}getDomNode(){return this._domNode}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(146);return this._canUseLayerHinting=!t.get(32),this._contentLeft=i.contentLeft,this._glyphMarginLeft=i.glyphMarginLeft,this._glyphMarginWidth=i.glyphMarginWidth,!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollTopChanged}prepareRender(e){}render(e){this._domNode.setLayerHinting(this._canUseLayerHinting),this._domNode.setContain("strict");const t=e.scrollTop-e.bigNumbersDelta;this._domNode.setTop(-t);const i=Math.min(e.scrollHeight,1e6);this._domNode.setHeight(i),this._domNode.setWidth(this._contentLeft),this._glyphMarginBackgroundDomNode.setLeft(this._glyphMarginLeft),this._glyphMarginBackgroundDomNode.setWidth(this._glyphMarginWidth),this._glyphMarginBackgroundDomNode.setHeight(i)}}var Oe=i(81782);const De="monaco-mouse-cursor-text";var Me=i(62083),Pe=i(47661),Fe=i(2299),Ue=i(98031),He=i(63591),Be=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},We=function(e,t){return function(i,s){t(i,s,e)}};class Ve{constructor(e,t,i,s,n){this._context=e,this.modelLineNumber=t,this.distanceToModelLineStart=i,this.widthOfHiddenLineTextBefore=s,this.distanceToModelLineEnd=n,this._visibleTextAreaBrand=void 0,this.startPosition=null,this.endPosition=null,this.visibleTextareaStart=null,this.visibleTextareaEnd=null,this._previousPresentation=null}prepareRender(e){const t=new Y.y(this.modelLineNumber,this.distanceToModelLineStart+1),i=new Y.y(this.modelLineNumber,this._context.viewModel.model.getLineMaxColumn(this.modelLineNumber)-this.distanceToModelLineEnd);this.startPosition=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(t),this.endPosition=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(i),this.startPosition.lineNumber===this.endPosition.lineNumber?(this.visibleTextareaStart=e.visibleRangeForPosition(this.startPosition),this.visibleTextareaEnd=e.visibleRangeForPosition(this.endPosition)):(this.visibleTextareaStart=null,this.visibleTextareaEnd=null)}definePresentation(e){return this._previousPresentation||(this._previousPresentation=e||{foreground:1,italic:!1,bold:!1,underline:!1,strikethrough:!1}),this._previousPresentation}}const ze=p.gm;let Ge=class extends z{constructor(e,t,i,s,n){super(e),this._keybindingService=s,this._instantiationService=n,this._primaryCursorPosition=new Y.y(1,1),this._primaryCursorVisibleRange=null,this._viewController=t,this._visibleRangeProvider=i,this._scrollLeft=0,this._scrollTop=0;const r=this._context.configuration.options,o=r.get(146);this._setAccessibilityOptions(r),this._contentLeft=o.contentLeft,this._contentWidth=o.contentWidth,this._contentHeight=o.height,this._fontInfo=r.get(50),this._lineHeight=r.get(67),this._emptySelectionClipboard=r.get(37),this._copyWithSyntaxHighlighting=r.get(25),this._visibleTextArea=null,this._selections=[new pe.L(1,1,1,1)],this._modelSelections=[new pe.L(1,1,1,1)],this._lastRenderPosition=null,this.textArea=(0,H.Z)(document.createElement("textarea")),G.write(this.textArea,7),this.textArea.setClassName(`inputarea ${De}`),this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off");const{tabSize:a}=this._context.viewModel.model.getOptions();this.textArea.domNode.style.tabSize=a*this._fontInfo.spaceWidth+"px",this.textArea.setAttribute("autocorrect","off"),this.textArea.setAttribute("autocapitalize","off"),this.textArea.setAttribute("autocomplete","off"),this.textArea.setAttribute("spellcheck","false"),this.textArea.setAttribute("aria-label",this._getAriaLabel(r)),this.textArea.setAttribute("aria-required",r.get(5)?"true":"false"),this.textArea.setAttribute("tabindex",String(r.get(125))),this.textArea.setAttribute("role","textbox"),this.textArea.setAttribute("aria-roledescription",Re.kg("editor","editor")),this.textArea.setAttribute("aria-multiline","true"),this.textArea.setAttribute("aria-autocomplete",r.get(92)?"none":"both"),this._ensureReadOnlyAttribute(),this.textAreaCover=(0,H.Z)(document.createElement("div")),this.textAreaCover.setPosition("absolute");const c={getLineCount:()=>this._context.viewModel.getLineCount(),getLineMaxColumn:e=>this._context.viewModel.getLineMaxColumn(e),getValueInRange:(e,t)=>this._context.viewModel.getValueInRange(e,t),getValueLengthInRange:(e,t)=>this._context.viewModel.getValueLengthInRange(e,t),modifyPosition:(e,t)=>this._context.viewModel.modifyPosition(e,t)},l={getDataToCopy:()=>{const e=this._context.viewModel.getPlainTextToCopy(this._modelSelections,this._emptySelectionClipboard,_.uF),t=this._context.viewModel.model.getEOL(),i=this._emptySelectionClipboard&&1===this._modelSelections.length&&this._modelSelections[0].isEmpty(),s=Array.isArray(e)?e:null,n=Array.isArray(e)?e.join(t):e;let r,o=null;if(be.Eq.forceCopyWithSyntaxHighlighting||this._copyWithSyntaxHighlighting&&n.length<65536){const e=this._context.viewModel.getRichTextToCopy(this._modelSelections,this._emptySelectionClipboard);e&&(r=e.html,o=e.mode)}return{isFromEmptySelection:i,multicursorText:s,text:n,html:r,mode:o}},getScreenReaderContent:()=>{if(1===this._accessibilitySupport){const e=this._selections[0];if(_.zx&&e.isEmpty()){const t=e.getStartPosition();let i=this._getWordBeforePosition(t);if(0===i.length&&(i=this._getCharacterBeforePosition(t)),i.length>0)return new Te._O(i,i.length,i.length,q.Q.fromPositions(t),0)}const t=500;if(_.zx&&!e.isEmpty()&&c.getValueLengthInRange(e,0)<t){const t=c.getValueInRange(e,0);return new Te._O(t,0,t.length,e,0)}if(p.nr&&!e.isEmpty()){const e="vscode-placeholder";return new Te._O(e,0,e.length,null,void 0)}return Te._O.EMPTY}if(p.m0){const e=this._selections[0];if(e.isEmpty()){const t=e.getStartPosition(),[i,s]=this._getAndroidWordAtPosition(t);if(i.length>0)return new Te._O(i,s,s,q.Q.fromPositions(t),0)}return Te._O.EMPTY}return Te.Al.fromEditorSelection(c,this._selections[0],this._accessibilityPageSize,0===this._accessibilitySupport)},deduceModelPosition:(e,t,i)=>this._context.viewModel.deduceModelPositionRelativeToViewPosition(e,t,i)},h=this._register(new be.M0(this.textArea.domNode));this._textAreaInput=this._register(this._instantiationService.createInstance(be.No,l,h,_.OS,{isAndroid:p.m0,isChrome:p.H8,isFirefox:p.gm,isSafari:p.nr})),this._register(this._textAreaInput.onKeyDown((e=>{this._viewController.emitKeyDown(e)}))),this._register(this._textAreaInput.onKeyUp((e=>{this._viewController.emitKeyUp(e)}))),this._register(this._textAreaInput.onPaste((e=>{let t=!1,i=null,s=null;e.metadata&&(t=this._emptySelectionClipboard&&!!e.metadata.isFromEmptySelection,i="undefined"!==typeof e.metadata.multicursorText?e.metadata.multicursorText:null,s=e.metadata.mode),this._viewController.paste(e.text,t,i,s)}))),this._register(this._textAreaInput.onCut((()=>{this._viewController.cut()}))),this._register(this._textAreaInput.onType((e=>{e.replacePrevCharCnt||e.replaceNextCharCnt||e.positionDelta?(Te.Hf&&console.log(` => compositionType: <<${e.text}>>, ${e.replacePrevCharCnt}, ${e.replaceNextCharCnt}, ${e.positionDelta}`),this._viewController.compositionType(e.text,e.replacePrevCharCnt,e.replaceNextCharCnt,e.positionDelta)):(Te.Hf&&console.log(` => type: <<${e.text}>>`),this._viewController.type(e.text))}))),this._register(this._textAreaInput.onSelectionChangeRequest((e=>{this._viewController.setSelection(e)}))),this._register(this._textAreaInput.onCompositionStart((e=>{const t=this.textArea.domNode,i=this._modelSelections[0],{distanceToModelLineStart:s,widthOfHiddenTextBefore:n}=(()=>{const e=t.value.substring(0,Math.min(t.selectionStart,t.selectionEnd)),s=e.lastIndexOf("\n"),n=e.substring(s+1),r=n.lastIndexOf("\t"),o=n.length-r-1,a=i.getStartPosition(),c=Math.min(a.column-1,o),l=a.column-1-c,h=n.substring(0,n.length-c),{tabSize:d}=this._context.viewModel.model.getOptions(),u=function(e,t,i,s){if(0===t.length)return 0;const n=e.createElement("div");n.style.position="absolute",n.style.top="-50000px",n.style.width="50000px";const r=e.createElement("span");(0,g.M)(r,i),r.style.whiteSpace="pre",r.style.tabSize=s*i.spaceWidth+"px",r.append(t),n.appendChild(r),e.body.appendChild(n);const o=r.offsetWidth;return n.remove(),o}(this.textArea.domNode.ownerDocument,h,this._fontInfo,d);return{distanceToModelLineStart:l,widthOfHiddenTextBefore:u}})(),{distanceToModelLineEnd:r}=(()=>{const e=t.value.substring(Math.max(t.selectionStart,t.selectionEnd)),s=e.indexOf("\n"),n=-1===s?e:e.substring(0,s),r=n.indexOf("\t"),o=-1===r?n.length:n.length-r-1,a=i.getEndPosition(),c=Math.min(this._context.viewModel.model.getLineMaxColumn(a.lineNumber)-a.column,o);return{distanceToModelLineEnd:this._context.viewModel.model.getLineMaxColumn(a.lineNumber)-a.column-c}})();this._context.viewModel.revealRange("keyboard",!0,q.Q.fromPositions(this._selections[0].getStartPosition()),0,1),this._visibleTextArea=new Ve(this._context,i.startLineNumber,s,n,r),this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off"),this._visibleTextArea.prepareRender(this._visibleRangeProvider),this._render(),this.textArea.setClassName(`inputarea ${De} ime-input`),this._viewController.compositionStart(),this._context.viewModel.onCompositionStart()}))),this._register(this._textAreaInput.onCompositionUpdate((e=>{this._visibleTextArea&&(this._visibleTextArea.prepareRender(this._visibleRangeProvider),this._render())}))),this._register(this._textAreaInput.onCompositionEnd((()=>{this._visibleTextArea=null,this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off"),this._render(),this.textArea.setClassName(`inputarea ${De}`),this._viewController.compositionEnd(),this._context.viewModel.onCompositionEnd()}))),this._register(this._textAreaInput.onFocus((()=>{this._context.viewModel.setHasFocus(!0)}))),this._register(this._textAreaInput.onBlur((()=>{this._context.viewModel.setHasFocus(!1)}))),this._register(Fe.M.onDidChange((()=>{this._ensureReadOnlyAttribute()})))}writeScreenReaderContent(e){this._textAreaInput.writeNativeTextAreaContent(e)}dispose(){super.dispose()}_getAndroidWordAtPosition(e){const t=this._context.viewModel.getLineContent(e.lineNumber),i=(0,Oe.i)('`~!@#$%^&*()-=+[{]}\\|;:",.<>/?',[]);let s=!0,n=e.column,r=!0,o=e.column,a=0;for(;a<50&&(s||r);){if(s&&n<=1&&(s=!1),s){const e=t.charCodeAt(n-2);0!==i.get(e)?s=!1:n--}if(r&&o>t.length&&(r=!1),r){const e=t.charCodeAt(o-1);0!==i.get(e)?r=!1:o++}a++}return[t.substring(n-1,o-1),e.column-n]}_getWordBeforePosition(e){const t=this._context.viewModel.getLineContent(e.lineNumber),i=(0,Oe.i)(this._context.configuration.options.get(132),[]);let s=e.column,n=0;for(;s>1;){const r=t.charCodeAt(s-2);if(0!==i.get(r)||n>50)return t.substring(s-1,e.column-1);n++,s--}return t.substring(0,e.column-1)}_getCharacterBeforePosition(e){if(e.column>1){const t=this._context.viewModel.getLineContent(e.lineNumber).charAt(e.column-2);if(!Le.pc(t.charCodeAt(0)))return t}return""}_getAriaLabel(e){if(1===e.get(2)){const e=this._keybindingService.lookupKeybinding("editor.action.toggleScreenReaderAccessibilityMode")?.getAriaLabel(),t=this._keybindingService.lookupKeybinding("workbench.action.showCommands")?.getAriaLabel(),i=this._keybindingService.lookupKeybinding("workbench.action.openGlobalKeybindings")?.getAriaLabel(),s=Re.kg("accessibilityModeOff","The editor is not accessible at this time.");return e?Re.kg("accessibilityOffAriaLabel","{0} To enable screen reader optimized mode, use {1}",s,e):t?Re.kg("accessibilityOffAriaLabelNoKb","{0} To enable screen reader optimized mode, open the quick pick with {1} and run the command Toggle Screen Reader Accessibility Mode, which is currently not triggerable via keyboard.",s,t):i?Re.kg("accessibilityOffAriaLabelNoKbs","{0} Please assign a keybinding for the command Toggle Screen Reader Accessibility Mode by accessing the keybindings editor with {1} and run it.",s,i):s}return e.get(4)}_setAccessibilityOptions(e){this._accessibilitySupport=e.get(2);const t=e.get(3);2===this._accessibilitySupport&&t===R.qB.accessibilityPageSize.defaultValue?this._accessibilityPageSize=500:this._accessibilityPageSize=t;const i=e.get(146).wrappingColumn;if(-1!==i&&1!==this._accessibilitySupport){const t=e.get(50);this._textAreaWrapping=!0,this._textAreaWidth=Math.round(i*t.typicalHalfwidthCharacterWidth)}else this._textAreaWrapping=!1,this._textAreaWidth=ze?0:1}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(146);this._setAccessibilityOptions(t),this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,this._contentHeight=i.height,this._fontInfo=t.get(50),this._lineHeight=t.get(67),this._emptySelectionClipboard=t.get(37),this._copyWithSyntaxHighlighting=t.get(25),this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off");const{tabSize:s}=this._context.viewModel.model.getOptions();return this.textArea.domNode.style.tabSize=s*this._fontInfo.spaceWidth+"px",this.textArea.setAttribute("aria-label",this._getAriaLabel(t)),this.textArea.setAttribute("aria-required",t.get(5)?"true":"false"),this.textArea.setAttribute("tabindex",String(t.get(125))),(e.hasChanged(34)||e.hasChanged(92))&&this._ensureReadOnlyAttribute(),e.hasChanged(2)&&this._textAreaInput.writeNativeTextAreaContent("strategy changed"),!0}onCursorStateChanged(e){return this._selections=e.selections.slice(0),this._modelSelections=e.modelSelections.slice(0),this._textAreaInput.writeNativeTextAreaContent("selection changed"),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return this._scrollLeft=e.scrollLeft,this._scrollTop=e.scrollTop,!0}onZonesChanged(e){return!0}isFocused(){return this._textAreaInput.isFocused()}focusTextArea(){this._textAreaInput.focusTextArea()}getLastRenderData(){return this._lastRenderPosition}setAriaOptions(e){e.activeDescendant?(this.textArea.setAttribute("aria-haspopup","true"),this.textArea.setAttribute("aria-autocomplete","list"),this.textArea.setAttribute("aria-activedescendant",e.activeDescendant)):(this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),this.textArea.removeAttribute("aria-activedescendant")),e.role&&this.textArea.setAttribute("role",e.role)}_ensureReadOnlyAttribute(){const e=this._context.configuration.options;!Fe.M.enabled||e.get(34)&&e.get(92)?this.textArea.setAttribute("readonly","true"):this.textArea.removeAttribute("readonly")}prepareRender(e){this._primaryCursorPosition=new Y.y(this._selections[0].positionLineNumber,this._selections[0].positionColumn),this._primaryCursorVisibleRange=e.visibleRangeForPosition(this._primaryCursorPosition),this._visibleTextArea?.prepareRender(e)}render(e){this._textAreaInput.writeNativeTextAreaContent("render"),this._render()}_render(){if(this._visibleTextArea){const e=this._visibleTextArea.visibleTextareaStart,t=this._visibleTextArea.visibleTextareaEnd,i=this._visibleTextArea.startPosition,s=this._visibleTextArea.endPosition;if(i&&s&&e&&t&&t.left>=this._scrollLeft&&e.left<=this._scrollLeft+this._contentWidth){const n=this._context.viewLayout.getVerticalOffsetForLineNumber(this._primaryCursorPosition.lineNumber)-this._scrollTop,r=this._newlinecount(this.textArea.domNode.value.substr(0,this.textArea.domNode.selectionStart));let o=this._visibleTextArea.widthOfHiddenLineTextBefore,a=this._contentLeft+e.left-this._scrollLeft,c=t.left-e.left+1;if(a<this._contentLeft){const e=this._contentLeft-a;a+=e,o+=e,c-=e}c>this._contentWidth&&(c=this._contentWidth);const l=this._context.viewModel.getViewLineData(i.lineNumber),h=l.tokens.findTokenIndexAtOffset(i.column-1),d=h===l.tokens.findTokenIndexAtOffset(s.column-1),u=this._visibleTextArea.definePresentation(d?l.tokens.getPresentation(h):null);this.textArea.domNode.scrollTop=r*this._lineHeight,this.textArea.domNode.scrollLeft=o,this._doRender({lastRenderPosition:null,top:n,left:a,width:c,height:this._lineHeight,useCover:!1,color:(Me.dG.getColorMap()||[])[u.foreground],italic:u.italic,bold:u.bold,underline:u.underline,strikethrough:u.strikethrough})}return}if(!this._primaryCursorVisibleRange)return void this._renderAtTopLeft();const e=this._contentLeft+this._primaryCursorVisibleRange.left-this._scrollLeft;if(e<this._contentLeft||e>this._contentLeft+this._contentWidth)return void this._renderAtTopLeft();const t=this._context.viewLayout.getVerticalOffsetForLineNumber(this._selections[0].positionLineNumber)-this._scrollTop;if(t<0||t>this._contentHeight)this._renderAtTopLeft();else if(_.zx||2===this._accessibilitySupport){this._doRender({lastRenderPosition:this._primaryCursorPosition,top:t,left:this._textAreaWrapping?this._contentLeft:e,width:this._textAreaWidth,height:this._lineHeight,useCover:!1}),this.textArea.domNode.scrollLeft=this._primaryCursorVisibleRange.left;const i=this._textAreaInput.textAreaState.newlineCountBeforeSelection??this._newlinecount(this.textArea.domNode.value.substr(0,this.textArea.domNode.selectionStart));this.textArea.domNode.scrollTop=i*this._lineHeight}else this._doRender({lastRenderPosition:this._primaryCursorPosition,top:t,left:this._textAreaWrapping?this._contentLeft:e,width:this._textAreaWidth,height:ze?0:1,useCover:!1})}_newlinecount(e){let t=0,i=-1;for(;;){if(i=e.indexOf("\n",i+1),-1===i)break;t++}return t}_renderAtTopLeft(){this._doRender({lastRenderPosition:null,top:0,left:0,width:this._textAreaWidth,height:ze?0:1,useCover:!0})}_doRender(e){this._lastRenderPosition=e.lastRenderPosition;const t=this.textArea,i=this.textAreaCover;(0,g.M)(t,this._fontInfo),t.setTop(e.top),t.setLeft(e.left),t.setWidth(e.width),t.setHeight(e.height),t.setColor(e.color?Pe.Q1.Format.CSS.formatHex(e.color):""),t.setFontStyle(e.italic?"italic":""),e.bold&&t.setFontWeight("bold"),t.setTextDecoration(`${e.underline?" underline":""}${e.strikethrough?" line-through":""}`),i.setTop(e.useCover?e.top:0),i.setLeft(e.useCover?e.left:0),i.setWidth(e.useCover?e.width:0),i.setHeight(e.useCover?e.height:0);const s=this._context.configuration.options;s.get(57)?i.setClassName("monaco-editor-background textAreaCover "+Ie.OUTER_CLASS_NAME):0!==s.get(68).renderType?i.setClassName("monaco-editor-background textAreaCover "+Ne.CLASS_NAME):i.setClassName("monaco-editor-background textAreaCover")}};Ge=Be([We(3,Ue.b),We(4,He._Y)],Ge);var je=i(80624),Ke=i(36999);class Ye{constructor(e,t,i,s){this.configuration=e,this.viewModel=t,this.userInputEvents=i,this.commandDelegate=s}paste(e,t,i,s){this.commandDelegate.paste(e,t,i,s)}type(e){this.commandDelegate.type(e)}compositionType(e,t,i,s){this.commandDelegate.compositionType(e,t,i,s)}compositionStart(){this.commandDelegate.startComposition()}compositionEnd(){this.commandDelegate.endComposition()}cut(){this.commandDelegate.cut()}setSelection(e){Ke.QM.SetSelection.runCoreEditorCommand(this.viewModel,{source:"keyboard",selection:e})}_validateViewColumn(e){const t=this.viewModel.getLineMinColumn(e.lineNumber);return e.column<t?new Y.y(e.lineNumber,t):e}_hasMulticursorModifier(e){switch(this.configuration.options.get(78)){case"altKey":return e.altKey;case"ctrlKey":return e.ctrlKey;case"metaKey":return e.metaKey;default:return!1}}_hasNonMulticursorModifier(e){switch(this.configuration.options.get(78)){case"altKey":return e.ctrlKey||e.metaKey;case"ctrlKey":return e.altKey||e.metaKey;case"metaKey":return e.ctrlKey||e.altKey;default:return!1}}dispatchMouse(e){const t=this.configuration.options,i=_.j9&&t.get(108),s=t.get(22);e.middleButton&&!i?this._columnSelect(e.position,e.mouseColumn,e.inSelectionMode):e.startedOnLineNumbers?this._hasMulticursorModifier(e)?e.inSelectionMode?this._lastCursorLineSelect(e.position,e.revealType):this._createCursor(e.position,!0):e.inSelectionMode?this._lineSelectDrag(e.position,e.revealType):this._lineSelect(e.position,e.revealType):e.mouseDownCount>=4?this._selectAll():3===e.mouseDownCount?this._hasMulticursorModifier(e)?e.inSelectionMode?this._lastCursorLineSelectDrag(e.position,e.revealType):this._lastCursorLineSelect(e.position,e.revealType):e.inSelectionMode?this._lineSelectDrag(e.position,e.revealType):this._lineSelect(e.position,e.revealType):2===e.mouseDownCount?e.onInjectedText||(this._hasMulticursorModifier(e)?this._lastCursorWordSelect(e.position,e.revealType):e.inSelectionMode?this._wordSelectDrag(e.position,e.revealType):this._wordSelect(e.position,e.revealType)):this._hasMulticursorModifier(e)?this._hasNonMulticursorModifier(e)||(e.shiftKey?this._columnSelect(e.position,e.mouseColumn,!0):e.inSelectionMode?this._lastCursorMoveToSelect(e.position,e.revealType):this._createCursor(e.position,!1)):e.inSelectionMode?e.altKey||s?this._columnSelect(e.position,e.mouseColumn,!0):this._moveToSelect(e.position,e.revealType):this.moveTo(e.position,e.revealType)}_usualArgs(e,t){return e=this._validateViewColumn(e),{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,revealType:t}}moveTo(e,t){Ke.QM.MoveTo.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_moveToSelect(e,t){Ke.QM.MoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_columnSelect(e,t,i){e=this._validateViewColumn(e),Ke.QM.ColumnSelect.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,mouseColumn:t,doColumnSelect:i})}_createCursor(e,t){e=this._validateViewColumn(e),Ke.QM.CreateCursor.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,wholeLine:t})}_lastCursorMoveToSelect(e,t){Ke.QM.LastCursorMoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_wordSelect(e,t){Ke.QM.WordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_wordSelectDrag(e,t){Ke.QM.WordSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lastCursorWordSelect(e,t){Ke.QM.LastCursorWordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lineSelect(e,t){Ke.QM.LineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lineSelectDrag(e,t){Ke.QM.LineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lastCursorLineSelect(e,t){Ke.QM.LastCursorLineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lastCursorLineSelectDrag(e,t){Ke.QM.LastCursorLineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_selectAll(){Ke.QM.SelectAll.runCoreEditorCommand(this.viewModel,{source:"mouse"})}_convertViewToModelPosition(e){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(e)}emitKeyDown(e){this.userInputEvents.emitKeyDown(e)}emitKeyUp(e){this.userInputEvents.emitKeyUp(e)}emitContextMenu(e){this.userInputEvents.emitContextMenu(e)}emitMouseMove(e){this.userInputEvents.emitMouseMove(e)}emitMouseLeave(e){this.userInputEvents.emitMouseLeave(e)}emitMouseUp(e){this.userInputEvents.emitMouseUp(e)}emitMouseDown(e){this.userInputEvents.emitMouseDown(e)}emitMouseDrag(e){this.userInputEvents.emitMouseDrag(e)}emitMouseDrop(e){this.userInputEvents.emitMouseDrop(e)}emitMouseDropCanceled(){this.userInputEvents.emitMouseDropCanceled()}emitMouseWheel(e){this.userInputEvents.emitMouseWheel(e)}}var qe=i(80789),$e=i(99020);class Qe{constructor(e){this._lineFactory=e,this._set(1,[])}flush(){this._set(1,[])}_set(e,t){this._lines=t,this._rendLineNumberStart=e}_get(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines}}getStartLineNumber(){return this._rendLineNumberStart}getEndLineNumber(){return this._rendLineNumberStart+this._lines.length-1}getCount(){return this._lines.length}getLine(e){const t=e-this._rendLineNumberStart;if(t<0||t>=this._lines.length)throw new l.D7("Illegal value for lineNumber");return this._lines[t]}onLinesDeleted(e,t){if(0===this.getCount())return null;const i=this.getStartLineNumber(),s=this.getEndLineNumber();if(t<i){const i=t-e+1;return this._rendLineNumberStart-=i,null}if(e>s)return null;let n=0,r=0;for(let o=i;o<=s;o++){const i=o-this._rendLineNumberStart;e<=o&&o<=t&&(0===r?(n=i,r=1):r++)}if(e<i){let s=0;s=t<i?t-e+1:i-e,this._rendLineNumberStart-=s}return this._lines.splice(n,r)}onLinesChanged(e,t){const i=e+t-1;if(0===this.getCount())return!1;const s=this.getStartLineNumber(),n=this.getEndLineNumber();let r=!1;for(let o=e;o<=i;o++)o>=s&&o<=n&&(this._lines[o-this._rendLineNumberStart].onContentChanged(),r=!0);return r}onLinesInserted(e,t){if(0===this.getCount())return null;const i=t-e+1,s=this.getStartLineNumber(),n=this.getEndLineNumber();if(e<=s)return this._rendLineNumberStart+=i,null;if(e>n)return null;if(i+e>n){return this._lines.splice(e-this._rendLineNumberStart,n-e+1)}const r=[];for(let h=0;h<i;h++)r[h]=this._lineFactory.createLine();const o=e-this._rendLineNumberStart,a=this._lines.slice(0,o),c=this._lines.slice(o,this._lines.length-i),l=this._lines.slice(this._lines.length-i,this._lines.length);return this._lines=a.concat(r).concat(c),l}onTokensChanged(e){if(0===this.getCount())return!1;const t=this.getStartLineNumber(),i=this.getEndLineNumber();let s=!1;for(let n=0,r=e.length;n<r;n++){const r=e[n];if(r.toLineNumber<t||r.fromLineNumber>i)continue;const o=Math.max(t,r.fromLineNumber),a=Math.min(i,r.toLineNumber);for(let e=o;e<=a;e++){const t=e-this._rendLineNumberStart;this._lines[t].onTokensChanged(),s=!0}}return s}}class Xe{constructor(e){this._lineFactory=e,this.domNode=this._createDomNode(),this._linesCollection=new Qe(this._lineFactory)}_createDomNode(){const e=(0,H.Z)(document.createElement("div"));return e.setClassName("view-layer"),e.setPosition("absolute"),e.domNode.setAttribute("role","presentation"),e.domNode.setAttribute("aria-hidden","true"),e}onConfigurationChanged(e){return!!e.hasChanged(146)}onFlushed(e){return this._linesCollection.flush(),!0}onLinesChanged(e){return this._linesCollection.onLinesChanged(e.fromLineNumber,e.count)}onLinesDeleted(e){const t=this._linesCollection.onLinesDeleted(e.fromLineNumber,e.toLineNumber);if(t)for(let i=0,s=t.length;i<s;i++){const e=t[i].getDomNode();e?.remove()}return!0}onLinesInserted(e){const t=this._linesCollection.onLinesInserted(e.fromLineNumber,e.toLineNumber);if(t)for(let i=0,s=t.length;i<s;i++){const e=t[i].getDomNode();e?.remove()}return!0}onScrollChanged(e){return e.scrollTopChanged}onTokensChanged(e){return this._linesCollection.onTokensChanged(e.ranges)}onZonesChanged(e){return!0}getStartLineNumber(){return this._linesCollection.getStartLineNumber()}getEndLineNumber(){return this._linesCollection.getEndLineNumber()}getVisibleLine(e){return this._linesCollection.getLine(e)}renderLines(e){const t=this._linesCollection._get(),i=new Ze(this.domNode.domNode,this._lineFactory,e),s={rendLineNumberStart:t.rendLineNumberStart,lines:t.lines,linesLength:t.lines.length},n=i.render(s,e.startLineNumber,e.endLineNumber,e.relativeVerticalOffset);this._linesCollection._set(n.rendLineNumberStart,n.lines)}}class Ze{static{this._ttPolicy=(0,qe.H)("editorViewLayer",{createHTML:e=>e})}constructor(e,t,i){this._domNode=e,this._lineFactory=t,this._viewportData=i}render(e,t,i,s){const n={rendLineNumberStart:e.rendLineNumberStart,lines:e.lines.slice(0),linesLength:e.linesLength};if(n.rendLineNumberStart+n.linesLength-1<t||i<n.rendLineNumberStart){n.rendLineNumberStart=t,n.linesLength=i-t+1,n.lines=[];for(let e=t;e<=i;e++)n.lines[e-t]=this._lineFactory.createLine();return this._finishRendering(n,!0,s),n}if(this._renderUntouchedLines(n,Math.max(t-n.rendLineNumberStart,0),Math.min(i-n.rendLineNumberStart,n.linesLength-1),s,t),n.rendLineNumberStart>t){const e=t,r=Math.min(i,n.rendLineNumberStart-1);e<=r&&(this._insertLinesBefore(n,e,r,s,t),n.linesLength+=r-e+1)}else if(n.rendLineNumberStart<t){const e=Math.min(n.linesLength,t-n.rendLineNumberStart);e>0&&(this._removeLinesBefore(n,e),n.linesLength-=e)}if(n.rendLineNumberStart=t,n.rendLineNumberStart+n.linesLength-1<i){const e=n.rendLineNumberStart+n.linesLength,r=i;e<=r&&(this._insertLinesAfter(n,e,r,s,t),n.linesLength+=r-e+1)}else if(n.rendLineNumberStart+n.linesLength-1>i){const e=Math.max(0,i-n.rendLineNumberStart+1),t=n.linesLength-1-e+1;t>0&&(this._removeLinesAfter(n,t),n.linesLength-=t)}return this._finishRendering(n,!1,s),n}_renderUntouchedLines(e,t,i,s,n){const r=e.rendLineNumberStart,o=e.lines;for(let a=t;a<=i;a++){const e=r+a;o[a].layoutLine(e,s[e-n],this._viewportData.lineHeight)}}_insertLinesBefore(e,t,i,s,n){const r=[];let o=0;for(let a=t;a<=i;a++)r[o++]=this._lineFactory.createLine();e.lines=r.concat(e.lines)}_removeLinesBefore(e,t){for(let i=0;i<t;i++){const t=e.lines[i].getDomNode();t?.remove()}e.lines.splice(0,t)}_insertLinesAfter(e,t,i,s,n){const r=[];let o=0;for(let a=t;a<=i;a++)r[o++]=this._lineFactory.createLine();e.lines=e.lines.concat(r)}_removeLinesAfter(e,t){const i=e.linesLength-t;for(let s=0;s<t;s++){const t=e.lines[i+s].getDomNode();t?.remove()}e.lines.splice(i,t)}_finishRenderingNewLines(e,t,i,s){Ze._ttPolicy&&(i=Ze._ttPolicy.createHTML(i));const n=this._domNode.lastChild;t||!n?this._domNode.innerHTML=i:n.insertAdjacentHTML("afterend",i);let r=this._domNode.lastChild;for(let o=e.linesLength-1;o>=0;o--){const t=e.lines[o];s[o]&&(t.setDomNode(r),r=r.previousSibling)}}_finishRenderingInvalidLines(e,t,i){const s=document.createElement("div");Ze._ttPolicy&&(t=Ze._ttPolicy.createHTML(t)),s.innerHTML=t;for(let n=0;n<e.linesLength;n++){const t=e.lines[n];if(i[n]){const e=s.firstChild,i=t.getDomNode();i.parentNode.replaceChild(e,i),t.setDomNode(e)}}}static{this._sb=new $e.fe(1e5)}_finishRendering(e,t,i){const s=Ze._sb,n=e.linesLength,r=e.lines,o=e.rendLineNumberStart,a=[];{s.reset();let c=!1;for(let e=0;e<n;e++){const t=r[e];a[e]=!1;if(t.getDomNode())continue;t.renderLine(e+o,i[e],this._viewportData.lineHeight,this._viewportData,s)&&(a[e]=!0,c=!0)}c&&this._finishRenderingNewLines(e,t,s.build(),a)}{s.reset();let t=!1;const c=[];for(let e=0;e<n;e++){const n=r[e];if(c[e]=!1,a[e])continue;n.renderLine(e+o,i[e],this._viewportData.lineHeight,this._viewportData,s)&&(c[e]=!0,t=!0)}t&&this._finishRenderingInvalidLines(e,s.build(),c)}}}class Je extends z{constructor(e){super(e),this._dynamicOverlays=[],this._isFocused=!1,this._visibleLines=new Xe({createLine:()=>new et(this._dynamicOverlays)}),this.domNode=this._visibleLines.domNode;const t=this._context.configuration.options.get(50);(0,g.M)(this.domNode,t),this.domNode.setClassName("view-overlays")}shouldRender(){if(super.shouldRender())return!0;for(let e=0,t=this._dynamicOverlays.length;e<t;e++){if(this._dynamicOverlays[e].shouldRender())return!0}return!1}dispose(){super.dispose();for(let e=0,t=this._dynamicOverlays.length;e<t;e++){this._dynamicOverlays[e].dispose()}this._dynamicOverlays=[]}getDomNode(){return this.domNode}addDynamicOverlay(e){this._dynamicOverlays.push(e)}onConfigurationChanged(e){this._visibleLines.onConfigurationChanged(e);const t=this._context.configuration.options.get(50);return(0,g.M)(this.domNode,t),!0}onFlushed(e){return this._visibleLines.onFlushed(e)}onFocusChanged(e){return this._isFocused=e.isFocused,!0}onLinesChanged(e){return this._visibleLines.onLinesChanged(e)}onLinesDeleted(e){return this._visibleLines.onLinesDeleted(e)}onLinesInserted(e){return this._visibleLines.onLinesInserted(e)}onScrollChanged(e){return this._visibleLines.onScrollChanged(e)||!0}onTokensChanged(e){return this._visibleLines.onTokensChanged(e)}onZonesChanged(e){return this._visibleLines.onZonesChanged(e)}prepareRender(e){const t=this._dynamicOverlays.filter((e=>e.shouldRender()));for(let i=0,s=t.length;i<s;i++){const s=t[i];s.prepareRender(e),s.onDidRender()}}render(e){this._viewOverlaysRender(e),this.domNode.toggleClassName("focused",this._isFocused)}_viewOverlaysRender(e){this._visibleLines.renderLines(e.viewportData)}}class et{constructor(e){this._dynamicOverlays=e,this._domNode=null,this._renderedContent=null}getDomNode(){return this._domNode?this._domNode.domNode:null}setDomNode(e){this._domNode=(0,H.Z)(e)}onContentChanged(){}onTokensChanged(){}renderLine(e,t,i,s,n){let r="";for(let o=0,a=this._dynamicOverlays.length;o<a;o++){r+=this._dynamicOverlays[o].render(s.startLineNumber,e)}return this._renderedContent!==r&&(this._renderedContent=r,n.appendString('<div style="top:'),n.appendString(String(t)),n.appendString("px;height:"),n.appendString(String(i)),n.appendString('px;">'),n.appendString(r),n.appendString("</div>"),!0)}layoutLine(e,t,i){this._domNode&&(this._domNode.setTop(t),this._domNode.setHeight(i))}}class tt extends Je{constructor(e){super(e);const t=this._context.configuration.options.get(146);this._contentWidth=t.contentWidth,this.domNode.setHeight(0)}onConfigurationChanged(e){const t=this._context.configuration.options.get(146);return this._contentWidth=t.contentWidth,super.onConfigurationChanged(e)||!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollWidthChanged}_viewOverlaysRender(e){super._viewOverlaysRender(e),this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth))}}class it extends Je{constructor(e){super(e);const t=this._context.configuration.options,i=t.get(146);this._contentLeft=i.contentLeft,this.domNode.setClassName("margin-view-overlays"),this.domNode.setWidth(1),(0,g.M)(this.domNode,t.get(50))}onConfigurationChanged(e){const t=this._context.configuration.options;(0,g.M)(this.domNode,t.get(50));const i=t.get(146);return this._contentLeft=i.contentLeft,super.onConfigurationChanged(e)||!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollHeightChanged}_viewOverlaysRender(e){super._viewOverlaysRender(e);const t=Math.min(e.scrollHeight,1e6);this.domNode.setHeight(t),this.domNode.setWidth(this._contentLeft)}}class st{constructor(e){this.onKeyDown=null,this.onKeyUp=null,this.onContextMenu=null,this.onMouseMove=null,this.onMouseLeave=null,this.onMouseDown=null,this.onMouseUp=null,this.onMouseDrag=null,this.onMouseDrop=null,this.onMouseDropCanceled=null,this.onMouseWheel=null,this._coordinatesConverter=e}emitKeyDown(e){this.onKeyDown?.(e)}emitKeyUp(e){this.onKeyUp?.(e)}emitContextMenu(e){this.onContextMenu?.(this._convertViewToModelMouseEvent(e))}emitMouseMove(e){this.onMouseMove?.(this._convertViewToModelMouseEvent(e))}emitMouseLeave(e){this.onMouseLeave?.(this._convertViewToModelMouseEvent(e))}emitMouseDown(e){this.onMouseDown?.(this._convertViewToModelMouseEvent(e))}emitMouseUp(e){this.onMouseUp?.(this._convertViewToModelMouseEvent(e))}emitMouseDrag(e){this.onMouseDrag?.(this._convertViewToModelMouseEvent(e))}emitMouseDrop(e){this.onMouseDrop?.(this._convertViewToModelMouseEvent(e))}emitMouseDropCanceled(){this.onMouseDropCanceled?.()}emitMouseWheel(e){this.onMouseWheel?.(e)}_convertViewToModelMouseEvent(e){return e.target?{event:e.event,target:this._convertViewToModelMouseTarget(e.target)}:e}_convertViewToModelMouseTarget(e){return st.convertViewToModelMouseTarget(e,this._coordinatesConverter)}static convertViewToModelMouseTarget(e,t){const i={...e};return i.position&&(i.position=t.convertViewPositionToModelPosition(i.position)),i.range&&(i.range=t.convertViewRangeToModelRange(i.range)),5!==i.type&&8!==i.type||(i.detail=this.convertViewToModelViewZoneData(i.detail,t)),i}static convertViewToModelViewZoneData(e,t){return{viewZoneId:e.viewZoneId,positionBefore:e.positionBefore?t.convertViewPositionToModelPosition(e.positionBefore):e.positionBefore,positionAfter:e.positionAfter?t.convertViewPositionToModelPosition(e.positionAfter):e.positionAfter,position:t.convertViewPositionToModelPosition(e.position),afterLineNumber:t.convertViewPositionToModelPosition(new Y.y(e.afterLineNumber,1)).lineNumber}}}class nt extends z{constructor(e){super(e),this.blocks=[],this.contentWidth=-1,this.contentLeft=0,this.domNode=(0,H.Z)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.domNode.setClassName("blockDecorations-container"),this.update()}update(){let e=!1;const t=this._context.configuration.options.get(146),i=t.contentWidth-t.verticalScrollbarWidth;this.contentWidth!==i&&(this.contentWidth=i,e=!0);const s=t.contentLeft;return this.contentLeft!==s&&(this.contentLeft=s,e=!0),e}dispose(){super.dispose()}onConfigurationChanged(e){return this.update()}onScrollChanged(e){return e.scrollTopChanged||e.scrollLeftChanged}onDecorationsChanged(e){return!0}onZonesChanged(e){return!0}prepareRender(e){}render(e){let t=0;const i=e.getDecorationsInViewport();for(const s of i){if(!s.options.blockClassName)continue;let i,n,r=this.blocks[t];r||(r=this.blocks[t]=(0,H.Z)(document.createElement("div")),this.domNode.appendChild(r)),s.options.blockIsAfterEnd?(i=e.getVerticalOffsetAfterLineNumber(s.range.endLineNumber,!1),n=e.getVerticalOffsetAfterLineNumber(s.range.endLineNumber,!0)):(i=e.getVerticalOffsetForLineNumber(s.range.startLineNumber,!0),n=s.range.isEmpty()&&!s.options.blockDoesNotCollapse?e.getVerticalOffsetForLineNumber(s.range.startLineNumber,!1):e.getVerticalOffsetAfterLineNumber(s.range.endLineNumber,!0));const[o,a,c,l]=s.options.blockPadding??[0,0,0,0];r.setClassName("blockDecorations-block "+s.options.blockClassName),r.setLeft(this.contentLeft-l),r.setWidth(this.contentWidth+l+a),r.setTop(i-e.scrollTop-o),r.setHeight(n-i+o+c),t++}for(let s=t;s<this.blocks.length;s++)this.blocks[s].domNode.remove();this.blocks.length=t}}class rt extends z{constructor(e,t){super(e),this._viewDomNode=t,this._widgets={},this.domNode=(0,H.Z)(document.createElement("div")),G.write(this.domNode,1),this.domNode.setClassName("contentWidgets"),this.domNode.setPosition("absolute"),this.domNode.setTop(0),this.overflowingContentWidgetsDomNode=(0,H.Z)(document.createElement("div")),G.write(this.overflowingContentWidgetsDomNode,2),this.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets")}dispose(){super.dispose(),this._widgets={}}onConfigurationChanged(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].onConfigurationChanged(e);return!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLineMappingChanged(e){return this._updateAnchorsViewPositions(),!0}onLinesChanged(e){return this._updateAnchorsViewPositions(),!0}onLinesDeleted(e){return this._updateAnchorsViewPositions(),!0}onLinesInserted(e){return this._updateAnchorsViewPositions(),!0}onScrollChanged(e){return!0}onZonesChanged(e){return!0}_updateAnchorsViewPositions(){const e=Object.keys(this._widgets);for(const t of e)this._widgets[t].updateAnchorViewPosition()}addWidget(e){const t=new ot(this._context,this._viewDomNode,e);this._widgets[t.id]=t,t.allowEditorOverflow?this.overflowingContentWidgetsDomNode.appendChild(t.domNode):this.domNode.appendChild(t.domNode),this.setShouldRender()}setWidgetPosition(e,t,i,s,n){this._widgets[e.getId()].setPosition(t,i,s,n),this.setShouldRender()}removeWidget(e){const t=e.getId();if(this._widgets.hasOwnProperty(t)){const e=this._widgets[t];delete this._widgets[t];const i=e.domNode.domNode;i.remove(),i.removeAttribute("monaco-visible-content-widget"),this.setShouldRender()}}shouldSuppressMouseDownOnWidget(e){return!!this._widgets.hasOwnProperty(e)&&this._widgets[e].suppressMouseDown}onBeforeRender(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].onBeforeRender(e)}prepareRender(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].prepareRender(e)}render(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].render(e)}}class ot{constructor(e,t,i){this._primaryAnchor=new at(null,null),this._secondaryAnchor=new at(null,null),this._context=e,this._viewDomNode=t,this._actual=i,this.domNode=(0,H.Z)(this._actual.getDomNode()),this.id=this._actual.getId(),this.allowEditorOverflow=this._actual.allowEditorOverflow||!1,this.suppressMouseDown=this._actual.suppressMouseDown||!1;const s=this._context.configuration.options,n=s.get(146);this._fixedOverflowWidgets=s.get(42),this._contentWidth=n.contentWidth,this._contentLeft=n.contentLeft,this._lineHeight=s.get(67),this._affinity=null,this._preference=[],this._cachedDomNodeOffsetWidth=-1,this._cachedDomNodeOffsetHeight=-1,this._maxWidth=this._getMaxWidth(),this._isVisible=!1,this._renderData=null,this.domNode.setPosition(this._fixedOverflowWidgets&&this.allowEditorOverflow?"fixed":"absolute"),this.domNode.setDisplay("none"),this.domNode.setVisibility("hidden"),this.domNode.setAttribute("widgetId",this.id),this.domNode.setMaxWidth(this._maxWidth)}onConfigurationChanged(e){const t=this._context.configuration.options;if(this._lineHeight=t.get(67),e.hasChanged(146)){const e=t.get(146);this._contentLeft=e.contentLeft,this._contentWidth=e.contentWidth,this._maxWidth=this._getMaxWidth()}}updateAnchorViewPosition(){this._setPosition(this._affinity,this._primaryAnchor.modelPosition,this._secondaryAnchor.modelPosition)}_setPosition(e,t,i){function s(e,t,i){if(!e)return new at(null,null);const s=t.model.validatePosition(e);if(t.coordinatesConverter.modelPositionIsVisible(s)){const n=t.coordinatesConverter.convertModelPositionToViewPosition(s,i??void 0);return new at(e,n)}return new at(e,null)}this._affinity=e,this._primaryAnchor=s(t,this._context.viewModel,this._affinity),this._secondaryAnchor=s(i,this._context.viewModel,this._affinity)}_getMaxWidth(){const e=this.domNode.domNode.ownerDocument,t=e.defaultView;return this.allowEditorOverflow?t?.innerWidth||e.documentElement.offsetWidth||e.body.offsetWidth:this._contentWidth}setPosition(e,t,i,s){this._setPosition(s,e,t),this._preference=i,this._primaryAnchor.viewPosition&&this._preference&&this._preference.length>0?this.domNode.setDisplay("block"):this.domNode.setDisplay("none"),this._cachedDomNodeOffsetWidth=-1,this._cachedDomNodeOffsetHeight=-1}_layoutBoxInViewport(e,t,i,s){const n=e.top,r=n,o=e.top+e.height,a=n-i,c=r>=i,l=o,h=s.viewportHeight-o>=i;let d=e.left;return d+t>s.scrollLeft+s.viewportWidth&&(d=s.scrollLeft+s.viewportWidth-t),d<s.scrollLeft&&(d=s.scrollLeft),{fitsAbove:c,aboveTop:a,fitsBelow:h,belowTop:l,left:d}}_layoutHorizontalSegmentInPage(e,t,i,s){const n=Math.max(15,t.left-s),r=Math.min(t.left+t.width+s,e.width-15),o=this._viewDomNode.domNode.ownerDocument.defaultView;let a=t.left+i-(o?.scrollX??0);if(a+s>r){const e=a-(r-s);a-=e,i-=e}if(a<n){const e=a-n;a-=e,i-=e}return[i,a]}_layoutBoxInPage(e,t,i,s){const n=e.top-i,r=e.top+e.height,o=c.BK(this._viewDomNode.domNode),a=this._viewDomNode.domNode.ownerDocument,l=a.defaultView,h=o.top+n-(l?.scrollY??0),d=o.top+r-(l?.scrollY??0),u=c.tG(a.body),[g,p]=this._layoutHorizontalSegmentInPage(u,o,e.left-s.scrollLeft+this._contentLeft,t),m=h>=22,f=d+i<=u.height-22;return this._fixedOverflowWidgets?{fitsAbove:m,aboveTop:Math.max(h,22),fitsBelow:f,belowTop:d,left:p}:{fitsAbove:m,aboveTop:n,fitsBelow:f,belowTop:r,left:g}}_prepareRenderWidgetAtExactPositionOverflowing(e){return new ct(e.top,e.left+this._contentLeft)}_getAnchorsCoordinates(e){return{primary:t(this._primaryAnchor.viewPosition,this._affinity,this._lineHeight),secondary:t(this._secondaryAnchor.viewPosition?.lineNumber===this._primaryAnchor.viewPosition?.lineNumber?this._secondaryAnchor.viewPosition:null,this._affinity,this._lineHeight)};function t(t,i,s){if(!t)return null;const n=e.visibleRangeForPosition(t);if(!n)return null;const r=1===t.column&&3===i?0:n.left,o=e.getVerticalOffsetForLineNumber(t.lineNumber)-e.scrollTop;return new lt(o,r,s)}}_reduceAnchorCoordinates(e,t,i){if(!t)return e;const s=this._context.configuration.options.get(50);let n=t.left;return n=n<e.left?Math.max(n,e.left-i+s.typicalFullwidthCharacterWidth):Math.min(n,e.left+i-s.typicalFullwidthCharacterWidth),new lt(e.top,n,e.height)}_prepareRenderWidget(e){if(!this._preference||0===this._preference.length)return null;const{primary:t,secondary:i}=this._getAnchorsCoordinates(e);if(!t)return{kind:"offViewport",preserveFocus:this.domNode.domNode.contains(this.domNode.domNode.ownerDocument.activeElement)};if(-1===this._cachedDomNodeOffsetWidth||-1===this._cachedDomNodeOffsetHeight){let e=null;if("function"===typeof this._actual.beforeRender&&(e=ht(this._actual.beforeRender,this._actual)),e)this._cachedDomNodeOffsetWidth=e.width,this._cachedDomNodeOffsetHeight=e.height;else{const e=this.domNode.domNode.getBoundingClientRect();this._cachedDomNodeOffsetWidth=Math.round(e.width),this._cachedDomNodeOffsetHeight=Math.round(e.height)}}const s=this._reduceAnchorCoordinates(t,i,this._cachedDomNodeOffsetWidth);let n;n=this.allowEditorOverflow?this._layoutBoxInPage(s,this._cachedDomNodeOffsetWidth,this._cachedDomNodeOffsetHeight,e):this._layoutBoxInViewport(s,this._cachedDomNodeOffsetWidth,this._cachedDomNodeOffsetHeight,e);for(let r=1;r<=2;r++)for(const e of this._preference)if(1===e){if(!n)return null;if(2===r||n.fitsAbove)return{kind:"inViewport",coordinate:new ct(n.aboveTop,n.left),position:1}}else{if(2!==e)return this.allowEditorOverflow?{kind:"inViewport",coordinate:this._prepareRenderWidgetAtExactPositionOverflowing(new ct(s.top,s.left)),position:0}:{kind:"inViewport",coordinate:new ct(s.top,s.left),position:0};if(!n)return null;if(2===r||n.fitsBelow)return{kind:"inViewport",coordinate:new ct(n.belowTop,n.left),position:2}}return null}onBeforeRender(e){this._primaryAnchor.viewPosition&&this._preference&&(this._primaryAnchor.viewPosition.lineNumber<e.startLineNumber||this._primaryAnchor.viewPosition.lineNumber>e.endLineNumber||this.domNode.setMaxWidth(this._maxWidth))}prepareRender(e){this._renderData=this._prepareRenderWidget(e)}render(e){if(!this._renderData||"offViewport"===this._renderData.kind)return this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,"offViewport"===this._renderData?.kind&&this._renderData.preserveFocus?this.domNode.setTop(-1e3):this.domNode.setVisibility("hidden")),void("function"===typeof this._actual.afterRender&&ht(this._actual.afterRender,this._actual,null));this.allowEditorOverflow?(this.domNode.setTop(this._renderData.coordinate.top),this.domNode.setLeft(this._renderData.coordinate.left)):(this.domNode.setTop(this._renderData.coordinate.top+e.scrollTop-e.bigNumbersDelta),this.domNode.setLeft(this._renderData.coordinate.left)),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0),"function"===typeof this._actual.afterRender&&ht(this._actual.afterRender,this._actual,this._renderData.position)}}class at{constructor(e,t){this.modelPosition=e,this.viewPosition=t}}class ct{constructor(e,t){this.top=e,this.left=t,this._coordinateBrand=void 0}}class lt{constructor(e,t,i){this.top=e,this.left=t,this.height=i,this._anchorCoordinateBrand=void 0}}function ht(e,t,...i){try{return e.call(t,...i)}catch{return null}}var dt=i(86723);class ut extends xe{constructor(e){super(),this._context=e;const t=this._context.configuration.options,i=t.get(146);this._renderLineHighlight=t.get(97),this._renderLineHighlightOnlyWhenFocus=t.get(98),this._wordWrap=i.isViewportWrapping,this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,this._selectionIsEmpty=!0,this._focused=!1,this._cursorLineNumbers=[1],this._selections=[new pe.L(1,1,1,1)],this._renderData=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}_readFromSelections(){let e=!1;const t=new Set;for(const n of this._selections)t.add(n.positionLineNumber);const i=Array.from(t);i.sort(((e,t)=>e-t)),m.aI(this._cursorLineNumbers,i)||(this._cursorLineNumbers=i,e=!0);const s=this._selections.every((e=>e.isEmpty()));return this._selectionIsEmpty!==s&&(this._selectionIsEmpty=s,e=!0),e}onThemeChanged(e){return this._readFromSelections()}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(146);return this._renderLineHighlight=t.get(97),this._renderLineHighlightOnlyWhenFocus=t.get(98),this._wordWrap=i.isViewportWrapping,this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,!0}onCursorStateChanged(e){return this._selections=e.selections,this._readFromSelections()}onFlushed(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollWidthChanged||e.scrollTopChanged}onZonesChanged(e){return!0}onFocusChanged(e){return!!this._renderLineHighlightOnlyWhenFocus&&(this._focused=e.isFocused,!0)}prepareRender(e){if(!this._shouldRenderThis())return void(this._renderData=null);const t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,s=[];for(let r=t;r<=i;r++){s[r-t]=""}if(this._wordWrap){const n=this._renderOne(e,!1);for(const e of this._cursorLineNumbers){const r=this._context.viewModel.coordinatesConverter,o=r.convertViewPositionToModelPosition(new Y.y(e,1)).lineNumber,a=r.convertModelPositionToViewPosition(new Y.y(o,1)).lineNumber,c=r.convertModelPositionToViewPosition(new Y.y(o,this._context.viewModel.model.getLineMaxColumn(o))).lineNumber,l=Math.max(a,t),h=Math.min(c,i);for(let e=l;e<=h;e++){s[e-t]=n}}}const n=this._renderOne(e,!0);for(const r of this._cursorLineNumbers){if(r<t||r>i)continue;s[r-t]=n}this._renderData=s}render(e,t){if(!this._renderData)return"";const i=t-e;return i>=this._renderData.length?"":this._renderData[i]}_shouldRenderInMargin(){return("gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}_shouldRenderInContent(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}}class gt extends ut{_renderOne(e,t){return`<div class="${"current-line"+(this._shouldRenderInMargin()?" current-line-both":"")+(t?" current-line-exact":"")}" style="width:${Math.max(e.scrollWidth,this._contentWidth)}px;"></div>`}_shouldRenderThis(){return this._shouldRenderInContent()}_shouldRenderOther(){return this._shouldRenderInMargin()}}class pt extends ut{_renderOne(e,t){return`<div class="${"current-line"+(this._shouldRenderInMargin()?" current-line-margin":"")+(this._shouldRenderOther()?" current-line-margin-both":"")+(this._shouldRenderInMargin()&&t?" current-line-exact-margin":"")}" style="width:${this._contentLeft}px"></div>`}_shouldRenderThis(){return!0}_shouldRenderOther(){return this._shouldRenderInContent()}}(0,ke.zy)(((e,t)=>{const i=e.getColor(Ae.kG);if(i&&(t.addRule(`.monaco-editor .view-overlays .current-line { background-color: ${i}; }`),t.addRule(`.monaco-editor .margin-view-overlays .current-line-margin { background-color: ${i}; border: none; }`)),!i||i.isTransparent()||e.defines(Ae.Mf)){const i=e.getColor(Ae.Mf);i&&(t.addRule(`.monaco-editor .view-overlays .current-line-exact { border: 2px solid ${i}; }`),t.addRule(`.monaco-editor .margin-view-overlays .current-line-exact-margin { border: 2px solid ${i}; }`),(0,dt.Bb)(e.type)&&(t.addRule(".monaco-editor .view-overlays .current-line-exact { border-width: 1px; }"),t.addRule(".monaco-editor .margin-view-overlays .current-line-exact-margin { border-width: 1px; }")))}}));class mt extends xe{constructor(e){super(),this._context=e;const t=this._context.configuration.options;this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged||e.scrollWidthChanged}onZonesChanged(e){return!0}prepareRender(e){const t=e.getDecorationsInViewport();let i=[],s=0;for(let a=0,c=t.length;a<c;a++){const e=t[a];e.options.className&&(i[s++]=e)}i=i.sort(((e,t)=>{if(e.options.zIndex<t.options.zIndex)return-1;if(e.options.zIndex>t.options.zIndex)return 1;const i=e.options.className,s=t.options.className;return i<s?-1:i>s?1:q.Q.compareRangesUsingStarts(e.range,t.range)}));const n=e.visibleRange.startLineNumber,r=e.visibleRange.endLineNumber,o=[];for(let a=n;a<=r;a++){o[a-n]=""}this._renderWholeLineDecorations(e,i,o),this._renderNormalDecorations(e,i,o),this._renderResult=o}_renderWholeLineDecorations(e,t,i){const s=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber;for(let r=0,o=t.length;r<o;r++){const e=t[r];if(!e.options.isWholeLine)continue;const o='<div class="cdr '+e.options.className+'" style="left:0;width:100%;"></div>',a=Math.max(e.range.startLineNumber,s),c=Math.min(e.range.endLineNumber,n);for(let t=a;t<=c;t++){i[t-s]+=o}}}_renderNormalDecorations(e,t,i){const s=e.visibleRange.startLineNumber;let n=null,r=!1,o=null,a=!1;for(let c=0,l=t.length;c<l;c++){const l=t[c];if(l.options.isWholeLine)continue;const h=l.options.className,d=Boolean(l.options.showIfCollapsed);let u=l.range;d&&1===u.endColumn&&u.endLineNumber!==u.startLineNumber&&(u=new q.Q(u.startLineNumber,u.startColumn,u.endLineNumber-1,this._context.viewModel.getLineMaxColumn(u.endLineNumber-1))),n===h&&r===d&&q.Q.areIntersectingOrTouching(o,u)?o=q.Q.plusRange(o,u):(null!==n&&this._renderNormalDecoration(e,o,n,a,r,s,i),n=h,r=d,o=u,a=l.options.shouldFillLineOnLineBreak??!1)}null!==n&&this._renderNormalDecoration(e,o,n,a,r,s,i)}_renderNormalDecoration(e,t,i,s,n,r,o){const a=e.linesVisibleRangesForRange(t,"findMatch"===i);if(a)for(let c=0,l=a.length;c<l;c++){const e=a[c];if(e.outsideRenderedLine)continue;const t=e.lineNumber-r;if(n&&1===e.ranges.length){const t=e.ranges[0];if(t.width<this._typicalHalfwidthCharacterWidth){const i=Math.round(t.left+t.width/2),s=Math.max(0,Math.round(i-this._typicalHalfwidthCharacterWidth/2));e.ranges[0]=new je.Y(s,this._typicalHalfwidthCharacterWidth)}}for(let n=0,r=e.ranges.length;n<r;n++){const a=s&&e.continuesOnNextLine&&1===r,c=e.ranges[n],l='<div class="cdr '+i+'" style="left:'+String(c.left)+"px;width:"+(a?"100%;":String(c.width)+"px;")+'"></div>';o[t]+=l}}}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}class ft extends z{constructor(e,t,i,s){super(e);const n=this._context.configuration.options,r=n.get(104),o=n.get(75),a=n.get(40),l=n.get(107),h={listenOnDomNode:i.domNode,className:"editor-scrollable "+(0,ke.Pz)(e.theme.type),useShadows:!1,lazyRender:!0,vertical:r.vertical,horizontal:r.horizontal,verticalHasArrows:r.verticalHasArrows,horizontalHasArrows:r.horizontalHasArrows,verticalScrollbarSize:r.verticalScrollbarSize,verticalSliderSize:r.verticalSliderSize,horizontalScrollbarSize:r.horizontalScrollbarSize,horizontalSliderSize:r.horizontalSliderSize,handleMouseWheel:r.handleMouseWheel,alwaysConsumeMouseWheel:r.alwaysConsumeMouseWheel,arrowSize:r.arrowSize,mouseWheelScrollSensitivity:o,fastScrollSensitivity:a,scrollPredominantAxis:l,scrollByPage:r.scrollByPage};this.scrollbar=this._register(new me.oO(t.domNode,h,this._context.viewLayout.getScrollable())),G.write(this.scrollbar.getDomNode(),6),this.scrollbarDomNode=(0,H.Z)(this.scrollbar.getDomNode()),this.scrollbarDomNode.setPosition("absolute"),this._setLayout();const d=(e,t,i)=>{const s={};if(t){const t=e.scrollTop;t&&(s.scrollTop=this._context.viewLayout.getCurrentScrollTop()+t,e.scrollTop=0)}if(i){const t=e.scrollLeft;t&&(s.scrollLeft=this._context.viewLayout.getCurrentScrollLeft()+t,e.scrollLeft=0)}this._context.viewModel.viewLayout.setScrollPosition(s,1)};this._register(c.ko(i.domNode,"scroll",(e=>d(i.domNode,!0,!0)))),this._register(c.ko(t.domNode,"scroll",(e=>d(t.domNode,!0,!1)))),this._register(c.ko(s.domNode,"scroll",(e=>d(s.domNode,!0,!1)))),this._register(c.ko(this.scrollbarDomNode.domNode,"scroll",(e=>d(this.scrollbarDomNode.domNode,!0,!1))))}dispose(){super.dispose()}_setLayout(){const e=this._context.configuration.options,t=e.get(146);this.scrollbarDomNode.setLeft(t.contentLeft);"right"===e.get(73).side?this.scrollbarDomNode.setWidth(t.contentWidth+t.minimap.minimapWidth):this.scrollbarDomNode.setWidth(t.contentWidth),this.scrollbarDomNode.setHeight(t.height)}getOverviewRulerLayoutInfo(){return this.scrollbar.getOverviewRulerLayoutInfo()}getDomNode(){return this.scrollbarDomNode}delegateVerticalScrollbarPointerDown(e){this.scrollbar.delegateVerticalScrollbarPointerDown(e)}delegateScrollFromMouseWheelEvent(e){this.scrollbar.delegateScrollFromMouseWheelEvent(e)}onConfigurationChanged(e){if(e.hasChanged(104)||e.hasChanged(75)||e.hasChanged(40)){const e=this._context.configuration.options,t=e.get(104),i=e.get(75),s=e.get(40),n=e.get(107),r={vertical:t.vertical,horizontal:t.horizontal,verticalScrollbarSize:t.verticalScrollbarSize,horizontalScrollbarSize:t.horizontalScrollbarSize,scrollByPage:t.scrollByPage,handleMouseWheel:t.handleMouseWheel,mouseWheelScrollSensitivity:i,fastScrollSensitivity:s,scrollPredominantAxis:n};this.scrollbar.updateOptions(r)}return e.hasChanged(146)&&this._setLayout(),!0}onScrollChanged(e){return!0}onThemeChanged(e){return this.scrollbar.updateClassName("editor-scrollable "+(0,ke.Pz)(this._context.theme.type)),!0}prepareRender(e){}render(e){this.scrollbar.renderNow()}}var _t=i(16223);class vt{constructor(e,t,i,s,n){this.startLineNumber=e,this.endLineNumber=t,this.className=i,this.tooltip=s,this._decorationToRenderBrand=void 0,this.zIndex=n??0}}class Ct{constructor(e,t,i){this.className=e,this.zIndex=t,this.tooltip=i}}class Et{constructor(){this.decorations=[]}add(e){this.decorations.push(e)}getDecorations(){return this.decorations}}class bt extends xe{_render(e,t,i){const s=[];for(let o=e;o<=t;o++){s[o-e]=new Et}if(0===i.length)return s;i.sort(((e,t)=>e.className===t.className?e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber:e.className<t.className?-1:1));let n=null,r=0;for(let o=0,a=i.length;o<a;o++){const a=i[o],c=a.className,l=a.zIndex;let h=Math.max(a.startLineNumber,e)-e;const d=Math.min(a.endLineNumber,t)-e;n===c?(h=Math.max(r+1,h),r=Math.max(r,d)):(n=c,r=d);for(let e=h;e<=r;e++)s[e].add(new Ct(c,l,a.tooltip))}return s}}class St extends z{constructor(e){super(e),this._widgets={},this._context=e;const t=this._context.configuration.options,i=t.get(146);this.domNode=(0,H.Z)(document.createElement("div")),this.domNode.setClassName("glyph-margin-widgets"),this.domNode.setPosition("absolute"),this.domNode.setTop(0),this._lineHeight=t.get(67),this._glyphMargin=t.get(57),this._glyphMarginLeft=i.glyphMarginLeft,this._glyphMarginWidth=i.glyphMarginWidth,this._glyphMarginDecorationLaneCount=i.glyphMarginDecorationLaneCount,this._managedDomNodes=[],this._decorationGlyphsToRender=[]}dispose(){this._managedDomNodes=[],this._decorationGlyphsToRender=[],this._widgets={},super.dispose()}getWidgets(){return Object.values(this._widgets)}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(146);return this._lineHeight=t.get(67),this._glyphMargin=t.get(57),this._glyphMarginLeft=i.glyphMarginLeft,this._glyphMarginWidth=i.glyphMarginWidth,this._glyphMarginDecorationLaneCount=i.glyphMarginDecorationLaneCount,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}addWidget(e){const t=(0,H.Z)(e.getDomNode());this._widgets[e.getId()]={widget:e,preference:e.getPosition(),domNode:t,renderInfo:null},t.setPosition("absolute"),t.setDisplay("none"),t.setAttribute("widgetId",e.getId()),this.domNode.appendChild(t),this.setShouldRender()}setWidgetPosition(e,t){const i=this._widgets[e.getId()];return(i.preference.lane!==t.lane||i.preference.zIndex!==t.zIndex||!q.Q.equalsRange(i.preference.range,t.range))&&(i.preference=t,this.setShouldRender(),!0)}removeWidget(e){const t=e.getId();if(this._widgets[t]){const e=this._widgets[t].domNode.domNode;delete this._widgets[t],e.remove(),this.setShouldRender()}}_collectDecorationBasedGlyphRenderRequest(e,t){const i=e.visibleRange.startLineNumber,s=e.visibleRange.endLineNumber,n=e.getDecorationsInViewport();for(const r of n){const e=r.options.glyphMarginClassName;if(!e)continue;const n=Math.max(r.range.startLineNumber,i),o=Math.min(r.range.endLineNumber,s),a=r.options.glyphMargin?.position??_t.ZS.Center,c=r.options.zIndex??0;for(let i=n;i<=o;i++){const s=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new Y.y(i,0)),n=this._context.viewModel.glyphLanes.getLanesAtLine(s.lineNumber).indexOf(a);t.push(new yt(i,n,c,e))}}}_collectWidgetBasedGlyphRenderRequest(e,t){const i=e.visibleRange.startLineNumber,s=e.visibleRange.endLineNumber;for(const n of Object.values(this._widgets)){const e=n.preference.range,{startLineNumber:r,endLineNumber:o}=this._context.viewModel.coordinatesConverter.convertModelRangeToViewRange(q.Q.lift(e));if(!r||!o||o<i||r>s)continue;const a=Math.max(r,i),c=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new Y.y(a,0)),l=this._context.viewModel.glyphLanes.getLanesAtLine(c.lineNumber).indexOf(n.preference.lane);t.push(new wt(a,l,n.preference.zIndex,n))}}_collectSortedGlyphRenderRequests(e){const t=[];return this._collectDecorationBasedGlyphRenderRequest(e,t),this._collectWidgetBasedGlyphRenderRequest(e,t),t.sort(((e,t)=>e.lineNumber===t.lineNumber?e.laneIndex===t.laneIndex?e.zIndex===t.zIndex?t.type===e.type?0===e.type&&0===t.type?e.className<t.className?-1:1:0:t.type-e.type:t.zIndex-e.zIndex:e.laneIndex-t.laneIndex:e.lineNumber-t.lineNumber)),t}prepareRender(e){if(!this._glyphMargin)return void(this._decorationGlyphsToRender=[]);for(const s of Object.values(this._widgets))s.renderInfo=null;const t=new m.j3(this._collectSortedGlyphRenderRequests(e)),i=[];for(;t.length>0;){const e=t.peek();if(!e)break;const s=t.takeWhile((t=>t.lineNumber===e.lineNumber&&t.laneIndex===e.laneIndex));if(!s||0===s.length)break;const n=s[0];if(0===n.type){const e=[];for(const t of s){if(t.zIndex!==n.zIndex||t.type!==n.type)break;0!==e.length&&e[e.length-1]===t.className||e.push(t.className)}i.push(n.accept(e.join(" ")))}else n.widget.renderInfo={lineNumber:n.lineNumber,laneIndex:n.laneIndex}}this._decorationGlyphsToRender=i}render(e){if(!this._glyphMargin){for(const e of Object.values(this._widgets))e.domNode.setDisplay("none");for(;this._managedDomNodes.length>0;){const e=this._managedDomNodes.pop();e?.domNode.remove()}return}const t=Math.round(this._glyphMarginWidth/this._glyphMarginDecorationLaneCount);for(const i of Object.values(this._widgets))if(i.renderInfo){const s=e.viewportData.relativeVerticalOffset[i.renderInfo.lineNumber-e.viewportData.startLineNumber],n=this._glyphMarginLeft+i.renderInfo.laneIndex*this._lineHeight;i.domNode.setDisplay("block"),i.domNode.setTop(s),i.domNode.setLeft(n),i.domNode.setWidth(t),i.domNode.setHeight(this._lineHeight)}else i.domNode.setDisplay("none");for(let i=0;i<this._decorationGlyphsToRender.length;i++){const s=this._decorationGlyphsToRender[i],n=e.viewportData.relativeVerticalOffset[s.lineNumber-e.viewportData.startLineNumber],r=this._glyphMarginLeft+s.laneIndex*this._lineHeight;let o;i<this._managedDomNodes.length?o=this._managedDomNodes[i]:(o=(0,H.Z)(document.createElement("div")),this._managedDomNodes.push(o),this.domNode.appendChild(o)),o.setClassName("cgmr codicon "+s.combinedClassName),o.setPosition("absolute"),o.setTop(n),o.setLeft(r),o.setWidth(t),o.setHeight(this._lineHeight)}for(;this._managedDomNodes.length>this._decorationGlyphsToRender.length;){const e=this._managedDomNodes.pop();e?.domNode.remove()}}}class yt{constructor(e,t,i,s){this.lineNumber=e,this.laneIndex=t,this.zIndex=i,this.className=s,this.type=0}accept(e){return new Rt(this.lineNumber,this.laneIndex,e)}}class wt{constructor(e,t,i,s){this.lineNumber=e,this.laneIndex=t,this.zIndex=i,this.widget=s,this.type=1}}class Rt{constructor(e,t,i){this.lineNumber=e,this.laneIndex=t,this.combinedClassName=i}}var Lt=i(631),Tt=i(53450),xt=i(84739);class kt extends xe{constructor(e){super(),this._context=e,this._primaryPosition=null;const t=this._context.configuration.options,i=t.get(147),s=t.get(50);this._spaceWidth=s.spaceWidth,this._maxIndentLeft=-1===i.wrappingColumn?-1:i.wrappingColumn*s.typicalHalfwidthCharacterWidth,this._bracketPairGuideOptions=t.get(16),this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(147),s=t.get(50);return this._spaceWidth=s.spaceWidth,this._maxIndentLeft=-1===i.wrappingColumn?-1:i.wrappingColumn*s.typicalHalfwidthCharacterWidth,this._bracketPairGuideOptions=t.get(16),!0}onCursorStateChanged(e){const t=e.selections[0].getPosition();return!this._primaryPosition?.equals(t)&&(this._primaryPosition=t,!0)}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}onLanguageConfigurationChanged(e){return!0}prepareRender(e){if(!this._bracketPairGuideOptions.indentation&&!1===this._bracketPairGuideOptions.bracketPairs)return void(this._renderResult=null);const t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,s=e.scrollWidth,n=this._primaryPosition,r=this.getGuidesByLine(t,Math.min(i+1,this._context.viewModel.getLineCount()),n),o=[];for(let a=t;a<=i;a++){const i=a-t,n=r[i];let c="";const l=e.visibleRangeForPosition(new Y.y(a,1))?.left??0;for(const t of n){const i=-1===t.column?l+(t.visibleColumn-1)*this._spaceWidth:e.visibleRangeForPosition(new Y.y(a,t.column)).left;if(i>s||this._maxIndentLeft>0&&i>this._maxIndentLeft)break;const n=t.horizontalLine?t.horizontalLine.top?"horizontal-top":"horizontal-bottom":"vertical",r=t.horizontalLine?(e.visibleRangeForPosition(new Y.y(a,t.horizontalLine.endColumn))?.left??i+this._spaceWidth)-i:this._spaceWidth;c+=`<div class="core-guide ${t.className} ${n}" style="left:${i}px;width:${r}px"></div>`}o[i]=c}this._renderResult=o}getGuidesByLine(e,t,i){const s=!1!==this._bracketPairGuideOptions.bracketPairs?this._context.viewModel.getBracketGuidesInRangeByLine(e,t,i,{highlightActive:this._bracketPairGuideOptions.highlightActiveBracketPair,horizontalGuides:!0===this._bracketPairGuideOptions.bracketPairsHorizontal?xt.N6.Enabled:"active"===this._bracketPairGuideOptions.bracketPairsHorizontal?xt.N6.EnabledForActive:xt.N6.Disabled,includeInactive:!0===this._bracketPairGuideOptions.bracketPairs}):null,n=this._bracketPairGuideOptions.indentation?this._context.viewModel.getLinesIndentGuides(e,t):null;let r=0,o=0,a=0;if(!1!==this._bracketPairGuideOptions.highlightActiveIndentation&&i){const s=this._context.viewModel.getActiveIndentGuide(i.lineNumber,e,t);r=s.startLineNumber,o=s.endLineNumber,a=s.indent}const{indentSize:c}=this._context.viewModel.model.getOptions(),l=[];for(let h=e;h<=t;h++){const t=new Array;l.push(t);const i=s?s[h-e]:[],d=new m.j3(i),u=n?n[h-e]:0;for(let e=1;e<=u;e++){const s=(e-1)*c+1,n=("always"===this._bracketPairGuideOptions.highlightActiveIndentation||0===i.length)&&r<=h&&h<=o&&e===a;t.push(...d.takeWhile((e=>e.visibleColumn<s))||[]);const l=d.peek();l&&l.visibleColumn===s&&!l.horizontalLine||t.push(new xt.TH(s,-1,"core-guide-indent lvl-"+(e-1)%30+(n?" indent-active":""),null,-1,-1))}t.push(...d.takeWhile((e=>!0))||[])}return l}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}function At(e){if(!e||!e.isTransparent())return e}(0,ke.zy)(((e,t)=>{const i=[{bracketColor:Ae.sN,guideColor:Ae.n4,guideColorActive:Ae.bB},{bracketColor:Ae.lQ,guideColor:Ae.I2,guideColorActive:Ae.WS},{bracketColor:Ae.ss,guideColor:Ae.Bo,guideColorActive:Ae.Pe},{bracketColor:Ae.l5,guideColor:Ae.If,guideColorActive:Ae.WD},{bracketColor:Ae.sH,guideColor:Ae.BD,guideColorActive:Ae.P1},{bracketColor:Ae.zp,guideColor:Ae.IW,guideColorActive:Ae.WY}],s=new Tt.k,n=[{indentColor:Ae.vV,indentColorActive:Ae.H0},{indentColor:Ae.ob,indentColorActive:Ae.Am},{indentColor:Ae.hz,indentColorActive:Ae.tK},{indentColor:Ae.ow,indentColorActive:Ae.A3},{indentColor:Ae.vP,indentColorActive:Ae.tp},{indentColor:Ae.CM,indentColorActive:Ae.As}],r=i.map((t=>{const i=e.getColor(t.bracketColor),s=e.getColor(t.guideColor),n=e.getColor(t.guideColorActive),r=At(At(s)??i?.transparent(.3)),o=At(At(n)??i);if(r&&o)return{guideColor:r,guideColorActive:o}})).filter(Lt.O9),o=n.map((t=>{const i=e.getColor(t.indentColor),s=e.getColor(t.indentColorActive),n=At(i),r=At(s);if(n&&r)return{indentColor:n,indentColorActive:r}})).filter(Lt.O9);if(r.length>0){for(let e=0;e<30;e++){const i=r[e%r.length];t.addRule(`.monaco-editor .${s.getInlineClassNameOfLevel(e).replace(/ /g,".")} { --guide-color: ${i.guideColor}; --guide-color-active: ${i.guideColorActive}; }`)}t.addRule(".monaco-editor .vertical { box-shadow: 1px 0 0 0 var(--guide-color) inset; }"),t.addRule(".monaco-editor .horizontal-top { border-top: 1px solid var(--guide-color); }"),t.addRule(".monaco-editor .horizontal-bottom { border-bottom: 1px solid var(--guide-color); }"),t.addRule(`.monaco-editor .vertical.${s.activeClassName} { box-shadow: 1px 0 0 0 var(--guide-color-active) inset; }`),t.addRule(`.monaco-editor .horizontal-top.${s.activeClassName} { border-top: 1px solid var(--guide-color-active); }`),t.addRule(`.monaco-editor .horizontal-bottom.${s.activeClassName} { border-bottom: 1px solid var(--guide-color-active); }`)}if(o.length>0){for(let e=0;e<30;e++){const i=o[e%o.length];t.addRule(`.monaco-editor .lines-content .core-guide-indent.lvl-${e} { --indent-color: ${i.indentColor}; --indent-color-active: ${i.indentColorActive}; }`)}t.addRule(".monaco-editor .lines-content .core-guide-indent { box-shadow: 1px 0 0 0 var(--indent-color) inset; }"),t.addRule(".monaco-editor .lines-content .core-guide-indent.indent-active { box-shadow: 1px 0 0 0 var(--indent-color-active) inset; }")}}));var Nt=i(90766);class It{get didDomLayout(){return this._didDomLayout}readClientRect(){if(!this._clientRectRead){this._clientRectRead=!0;const e=this._domNode.getBoundingClientRect();this.markDidDomLayout(),this._clientRectDeltaLeft=e.left,this._clientRectScale=e.width/this._domNode.offsetWidth}}get clientRectDeltaLeft(){return this._clientRectRead||this.readClientRect(),this._clientRectDeltaLeft}get clientRectScale(){return this._clientRectRead||this.readClientRect(),this._clientRectScale}constructor(e,t){this._domNode=e,this.endNode=t,this._didDomLayout=!1,this._clientRectDeltaLeft=0,this._clientRectScale=1,this._clientRectRead=!1}markDidDomLayout(){this._didDomLayout=!0}}class Ot{constructor(){this._currentVisibleRange=new q.Q(1,1,1,1)}getCurrentVisibleRange(){return this._currentVisibleRange}setCurrentVisibleRange(e){this._currentVisibleRange=e}}class Dt{constructor(e,t,i,s,n,r,o){this.minimalReveal=e,this.lineNumber=t,this.startColumn=i,this.endColumn=s,this.startScrollTop=n,this.stopScrollTop=r,this.scrollType=o,this.type="range",this.minLineNumber=t,this.maxLineNumber=t}}class Mt{constructor(e,t,i,s,n){this.minimalReveal=e,this.selections=t,this.startScrollTop=i,this.stopScrollTop=s,this.scrollType=n,this.type="selections";let r=t[0].startLineNumber,o=t[0].endLineNumber;for(let a=1,c=t.length;a<c;a++){const e=t[a];r=Math.min(r,e.startLineNumber),o=Math.max(o,e.endLineNumber)}this.minLineNumber=r,this.maxLineNumber=o}}class Pt extends z{static{this.HORIZONTAL_EXTRA_PX=30}constructor(e,t){super(e);const i=this._context.configuration,s=this._context.configuration.options,n=s.get(50),r=s.get(147);this._lineHeight=s.get(67),this._typicalHalfwidthCharacterWidth=n.typicalHalfwidthCharacterWidth,this._isViewportWrapping=r.isViewportWrapping,this._revealHorizontalRightPadding=s.get(101),this._cursorSurroundingLines=s.get(29),this._cursorSurroundingLinesStyle=s.get(30),this._canUseLayerHinting=!s.get(32),this._viewLineOptions=new K.Ax(i,this._context.theme.type),this._linesContent=t,this._textRangeRestingSpot=document.createElement("div"),this._visibleLines=new Xe({createLine:()=>new K.Gb(this._viewLineOptions)}),this.domNode=this._visibleLines.domNode,G.write(this.domNode,8),this.domNode.setClassName(`view-lines ${De}`),(0,g.M)(this.domNode,n),this._maxLineWidth=0,this._asyncUpdateLineWidths=new Nt.uC((()=>{this._updateLineWidthsSlow()}),200),this._asyncCheckMonospaceFontAssumptions=new Nt.uC((()=>{this._checkMonospaceFontAssumptions()}),2e3),this._lastRenderedData=new Ot,this._horizontalRevealRequest=null,this._stickyScrollEnabled=s.get(116).enabled,this._maxNumberStickyLines=s.get(116).maxLineCount}dispose(){this._asyncUpdateLineWidths.dispose(),this._asyncCheckMonospaceFontAssumptions.dispose(),super.dispose()}getDomNode(){return this.domNode}onConfigurationChanged(e){this._visibleLines.onConfigurationChanged(e),e.hasChanged(147)&&(this._maxLineWidth=0);const t=this._context.configuration.options,i=t.get(50),s=t.get(147);return this._lineHeight=t.get(67),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._isViewportWrapping=s.isViewportWrapping,this._revealHorizontalRightPadding=t.get(101),this._cursorSurroundingLines=t.get(29),this._cursorSurroundingLinesStyle=t.get(30),this._canUseLayerHinting=!t.get(32),this._stickyScrollEnabled=t.get(116).enabled,this._maxNumberStickyLines=t.get(116).maxLineCount,(0,g.M)(this.domNode,i),this._onOptionsMaybeChanged(),e.hasChanged(146)&&(this._maxLineWidth=0),!0}_onOptionsMaybeChanged(){const e=this._context.configuration,t=new K.Ax(e,this._context.theme.type);if(!this._viewLineOptions.equals(t)){this._viewLineOptions=t;const e=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();for(let t=e;t<=i;t++){this._visibleLines.getVisibleLine(t).onOptionsChanged(this._viewLineOptions)}return!0}return!1}onCursorStateChanged(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();let s=!1;for(let n=t;n<=i;n++)s=this._visibleLines.getVisibleLine(n).onSelectionChanged()||s;return s}onDecorationsChanged(e){{const e=this._visibleLines.getStartLineNumber(),t=this._visibleLines.getEndLineNumber();for(let i=e;i<=t;i++)this._visibleLines.getVisibleLine(i).onDecorationsChanged()}return!0}onFlushed(e){const t=this._visibleLines.onFlushed(e);return this._maxLineWidth=0,t}onLinesChanged(e){return this._visibleLines.onLinesChanged(e)}onLinesDeleted(e){return this._visibleLines.onLinesDeleted(e)}onLinesInserted(e){return this._visibleLines.onLinesInserted(e)}onRevealRangeRequest(e){const t=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),e.source,e.minimalReveal,e.range,e.selections,e.verticalType);if(-1===t)return!1;let i=this._context.viewLayout.validateScrollPosition({scrollTop:t});e.revealHorizontal?e.range&&e.range.startLineNumber!==e.range.endLineNumber?i={scrollTop:i.scrollTop,scrollLeft:0}:e.range?this._horizontalRevealRequest=new Dt(e.minimalReveal,e.range.startLineNumber,e.range.startColumn,e.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),i.scrollTop,e.scrollType):e.selections&&e.selections.length>0&&(this._horizontalRevealRequest=new Mt(e.minimalReveal,e.selections,this._context.viewLayout.getCurrentScrollTop(),i.scrollTop,e.scrollType)):this._horizontalRevealRequest=null;const s=Math.abs(this._context.viewLayout.getCurrentScrollTop()-i.scrollTop)<=this._lineHeight?1:e.scrollType;return this._context.viewModel.viewLayout.setScrollPosition(i,s),!0}onScrollChanged(e){if(this._horizontalRevealRequest&&e.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&e.scrollTopChanged){const t=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),i=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(e.scrollTop<t||e.scrollTop>i)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(e.scrollWidth),this._visibleLines.onScrollChanged(e)||!0}onTokensChanged(e){return this._visibleLines.onTokensChanged(e)}onZonesChanged(e){return this._context.viewModel.viewLayout.setMaxLineWidth(this._maxLineWidth),this._visibleLines.onZonesChanged(e)}onThemeChanged(e){return this._onOptionsMaybeChanged()}getPositionFromDOMInfo(e,t){const i=this._getViewLineDomNode(e);if(null===i)return null;const s=this._getLineNumberFor(i);if(-1===s)return null;if(s<1||s>this._context.viewModel.getLineCount())return null;if(1===this._context.viewModel.getLineMaxColumn(s))return new Y.y(s,1);const n=this._visibleLines.getStartLineNumber(),r=this._visibleLines.getEndLineNumber();if(s<n||s>r)return null;let o=this._visibleLines.getVisibleLine(s).getColumnOfNodeOffset(e,t);const a=this._context.viewModel.getLineMinColumn(s);return o<a&&(o=a),new Y.y(s,o)}_getViewLineDomNode(e){for(;e&&1===e.nodeType;){if(e.className===K.Gb.CLASS_NAME)return e;e=e.parentElement}return null}_getLineNumberFor(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();for(let s=t;s<=i;s++){if(e===this._visibleLines.getVisibleLine(s).getDomNode())return s}return-1}getLineWidth(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();if(e<t||e>i)return-1;const s=new It(this.domNode.domNode,this._textRangeRestingSpot),n=this._visibleLines.getVisibleLine(e).getWidth(s);return this._updateLineWidthsSlowIfDomDidLayout(s),n}linesVisibleRangesForRange(e,t){if(this.shouldRender())return null;const i=e.endLineNumber,s=q.Q.intersectRanges(e,this._lastRenderedData.getCurrentVisibleRange());if(!s)return null;const n=[];let r=0;const o=new It(this.domNode.domNode,this._textRangeRestingSpot);let a=0;t&&(a=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new Y.y(s.startLineNumber,1)).lineNumber);const c=this._visibleLines.getStartLineNumber(),l=this._visibleLines.getEndLineNumber();for(let h=s.startLineNumber;h<=s.endLineNumber;h++){if(h<c||h>l)continue;const e=h===s.startLineNumber?s.startColumn:1,d=h!==s.endLineNumber,u=d?this._context.viewModel.getLineMaxColumn(h):s.endColumn,g=this._visibleLines.getVisibleLine(h).getVisibleRangesForRange(h,e,u,o);if(g){if(t&&h<i){const e=a;a=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new Y.y(h+1,1)).lineNumber,e!==a&&(g.ranges[g.ranges.length-1].width+=this._typicalHalfwidthCharacterWidth)}n[r++]=new je.BG(g.outsideRenderedLine,h,je.Y.from(g.ranges),d)}}return this._updateLineWidthsSlowIfDomDidLayout(o),0===r?null:n}_visibleRangesForLineRange(e,t,i){if(this.shouldRender())return null;if(e<this._visibleLines.getStartLineNumber()||e>this._visibleLines.getEndLineNumber())return null;const s=new It(this.domNode.domNode,this._textRangeRestingSpot),n=this._visibleLines.getVisibleLine(e).getVisibleRangesForRange(e,t,i,s);return this._updateLineWidthsSlowIfDomDidLayout(s),n}visibleRangeForPosition(e){const t=this._visibleRangesForLineRange(e.lineNumber,e.column,e.column);return t?new je.qN(t.outsideRenderedLine,t.ranges[0].left):null}_updateLineWidthsFast(){return this._updateLineWidths(!0)}_updateLineWidthsSlow(){this._updateLineWidths(!1)}_updateLineWidthsSlowIfDomDidLayout(e){e.didDomLayout&&(this._asyncUpdateLineWidths.isScheduled()||(this._asyncUpdateLineWidths.cancel(),this._updateLineWidthsSlow()))}_updateLineWidths(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();let s=1,n=!0;for(let r=t;r<=i;r++){const t=this._visibleLines.getVisibleLine(r);!e||t.getWidthIsFast()?s=Math.max(s,t.getWidth(null)):n=!1}return n&&1===t&&i===this._context.viewModel.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(s),n}_checkMonospaceFontAssumptions(){let e=-1,t=-1;const i=this._visibleLines.getStartLineNumber(),s=this._visibleLines.getEndLineNumber();for(let n=i;n<=s;n++){const i=this._visibleLines.getVisibleLine(n);if(i.needsMonospaceFontCheck()){const s=i.getWidth(null);s>t&&(t=s,e=n)}}if(-1!==e&&!this._visibleLines.getVisibleLine(e).monospaceAssumptionsAreValid())for(let n=i;n<=s;n++){this._visibleLines.getVisibleLine(n).onMonospaceAssumptionsInvalidated()}}prepareRender(){throw new Error("Not supported")}render(){throw new Error("Not supported")}renderText(e){if(this._visibleLines.renderLines(e),this._lastRenderedData.setCurrentVisibleRange(e.visibleRange),this.domNode.setWidth(this._context.viewLayout.getScrollWidth()),this.domNode.setHeight(Math.min(this._context.viewLayout.getScrollHeight(),1e6)),this._horizontalRevealRequest){const t=this._horizontalRevealRequest;if(e.startLineNumber<=t.minLineNumber&&t.maxLineNumber<=e.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();const e=this._computeScrollLeftToReveal(t);e&&(this._isViewportWrapping||this._ensureMaxLineWidth(e.maxHorizontalOffset),this._context.viewModel.viewLayout.setScrollPosition({scrollLeft:e.scrollLeft},t.scrollType))}}if(this._updateLineWidthsFast()?this._asyncUpdateLineWidths.cancel():this._asyncUpdateLineWidths.schedule(),_.j9&&!this._asyncCheckMonospaceFontAssumptions.isScheduled()){const e=this._visibleLines.getStartLineNumber(),t=this._visibleLines.getEndLineNumber();for(let i=e;i<=t;i++){if(this._visibleLines.getVisibleLine(i).needsMonospaceFontCheck()){this._asyncCheckMonospaceFontAssumptions.schedule();break}}}this._linesContent.setLayerHinting(this._canUseLayerHinting),this._linesContent.setContain("strict");const t=this._context.viewLayout.getCurrentScrollTop()-e.bigNumbersDelta;this._linesContent.setTop(-t),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())}_ensureMaxLineWidth(e){const t=Math.ceil(e);this._maxLineWidth<t&&(this._maxLineWidth=t,this._context.viewModel.viewLayout.setMaxLineWidth(this._maxLineWidth))}_computeScrollTopToRevealRange(e,t,i,s,n,r){const o=e.top,a=e.height,c=o+a;let l,h,d;if(n&&n.length>0){let e=n[0].startLineNumber,t=n[0].endLineNumber;for(let i=1,s=n.length;i<s;i++){const s=n[i];e=Math.min(e,s.startLineNumber),t=Math.max(t,s.endLineNumber)}l=!1,h=this._context.viewLayout.getVerticalOffsetForLineNumber(e),d=this._context.viewLayout.getVerticalOffsetForLineNumber(t)+this._lineHeight}else{if(!s)return-1;l=!0,h=this._context.viewLayout.getVerticalOffsetForLineNumber(s.startLineNumber),d=this._context.viewLayout.getVerticalOffsetForLineNumber(s.endLineNumber)+this._lineHeight}let u,g=0,p=0;if(("mouse"===t||i)&&"default"===this._cursorSurroundingLinesStyle)i||(g=this._lineHeight);else{const e=a/this._lineHeight,t=Math.max(this._cursorSurroundingLines,this._stickyScrollEnabled?this._maxNumberStickyLines:0),i=Math.min(e/2,t);g=i*this._lineHeight,p=Math.max(0,i-1)*this._lineHeight}if(i||0!==r&&4!==r||(p+=this._lineHeight),h-=g,d+=p,d-h>a){if(!l)return-1;u=h}else if(5===r||6===r)if(6===r&&o<=h&&d<=c)u=o;else{const e=h-Math.max(5*this._lineHeight,.2*a),t=d-a;u=Math.max(t,e)}else if(1===r||2===r)if(2===r&&o<=h&&d<=c)u=o;else{const e=(h+d)/2;u=Math.max(0,e-a/2)}else u=this._computeMinimumScrolling(o,c,h,d,3===r,4===r);return u}_computeScrollLeftToReveal(e){const t=this._context.viewLayout.getCurrentViewport(),i=this._context.configuration.options.get(146),s=t.left,n=s+t.width-i.verticalScrollbarWidth;let r=1073741824,o=0;if("range"===e.type){const t=this._visibleRangesForLineRange(e.lineNumber,e.startColumn,e.endColumn);if(!t)return null;for(const e of t.ranges)r=Math.min(r,Math.round(e.left)),o=Math.max(o,Math.round(e.left+e.width))}else for(const a of e.selections){if(a.startLineNumber!==a.endLineNumber)return null;const e=this._visibleRangesForLineRange(a.startLineNumber,a.startColumn,a.endColumn);if(!e)return null;for(const t of e.ranges)r=Math.min(r,Math.round(t.left)),o=Math.max(o,Math.round(t.left+t.width))}if(e.minimalReveal||(r=Math.max(0,r-Pt.HORIZONTAL_EXTRA_PX),o+=this._revealHorizontalRightPadding),"selections"===e.type&&o-r>t.width)return null;return{scrollLeft:this._computeMinimumScrolling(s,n,r,o),maxHorizontalOffset:o}}_computeMinimumScrolling(e,t,i,s,n,r){n=!!n,r=!!r;const o=(t|=0)-(e|=0);return(s|=0)-(i|=0)<o?n?i:r?Math.max(0,s-o):i<e?i:s>t?Math.max(0,s-o):e:i}}class Ft extends bt{constructor(e){super(),this._context=e;const t=this._context.configuration.options.get(146);this._decorationsLeft=t.decorationsLeft,this._decorationsWidth=t.decorationsWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options.get(146);return this._decorationsLeft=t.decorationsLeft,this._decorationsWidth=t.decorationsWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getDecorations(e){const t=e.getDecorationsInViewport(),i=[];let s=0;for(let n=0,r=t.length;n<r;n++){const e=t[n],r=e.options.linesDecorationsClassName,o=e.options.zIndex;r&&(i[s++]=new vt(e.range.startLineNumber,e.range.endLineNumber,r,e.options.linesDecorationsTooltip??null,o));const a=e.options.firstLineDecorationClassName;a&&(i[s++]=new vt(e.range.startLineNumber,e.range.startLineNumber,a,e.options.linesDecorationsTooltip??null,o))}return i}prepareRender(e){const t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,s=this._render(t,i,this._getDecorations(e)),n='" style="left:'+this._decorationsLeft.toString()+"px;width:"+this._decorationsWidth.toString()+'px;"></div>',r=[];for(let o=t;o<=i;o++){const e=o-t,i=s[e].getDecorations();let a="";for(const t of i){let e='<div class="cldr '+t.className;null!==t.tooltip&&(e+='" title="'+t.tooltip),e+=n,a+=e}r[e]=a}this._renderResult=r}render(e,t){return this._renderResult?this._renderResult[t-e]:""}}class Ut extends bt{constructor(e){super(),this._context=e,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){return!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getDecorations(e){const t=e.getDecorationsInViewport(),i=[];let s=0;for(let n=0,r=t.length;n<r;n++){const e=t[n],r=e.options.marginClassName,o=e.options.zIndex;r&&(i[s++]=new vt(e.range.startLineNumber,e.range.endLineNumber,r,null,o))}return i}prepareRender(e){const t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,s=this._render(t,i,this._getDecorations(e)),n=[];for(let r=t;r<=i;r++){const e=r-t,i=s[e].getDecorations();let o="";for(const t of i)o+='<div class="cmdr '+t.className+'" style=""></div>';n[e]=o}this._renderResult=n}render(e,t){return this._renderResult?this._renderResult[t-e]:""}}var Ht=i(34072);class Bt{static{this.Empty=new Bt(0,0,0,0)}constructor(e,t,i,s){this._rgba8Brand=void 0,this.r=Bt._clamp(e),this.g=Bt._clamp(t),this.b=Bt._clamp(i),this.a=Bt._clamp(s)}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}static _clamp(e){return e<0?0:e>255?255:0|e}}class Wt extends d.jG{static{this._INSTANCE=null}static getInstance(){return this._INSTANCE||(this._INSTANCE=(0,d.lC)(new Wt)),this._INSTANCE}constructor(){super(),this._onDidChange=new h.vl,this.onDidChange=this._onDidChange.event,this._updateColorMap(),this._register(Me.dG.onDidChange((e=>{e.changedColorMap&&this._updateColorMap()})))}_updateColorMap(){const e=Me.dG.getColorMap();if(!e)return this._colors=[Bt.Empty],void(this._backgroundIsLight=!0);this._colors=[Bt.Empty];for(let i=1;i<e.length;i++){const t=e[i].rgba;this._colors[i]=new Bt(t.r,t.g,t.b,Math.round(255*t.a))}const t=e[2].getRelativeLuminance();this._backgroundIsLight=t>=.5,this._onDidChange.fire(void 0)}getColor(e){return(e<1||e>=this._colors.length)&&(e=2),this._colors[e]}backgroundIsLight(){return this._backgroundIsLight}}var Vt=i(92896),zt=i(66261);const Gt=(()=>{const e=[];for(let t=32;t<=126;t++)e.push(t);return e.push(65533),e})();var jt=i(85152);class Kt{constructor(e,t){this.scale=t,this._minimapCharRendererBrand=void 0,this.charDataNormal=Kt.soften(e,.8),this.charDataLight=Kt.soften(e,50/60)}static soften(e,t){const i=new Uint8ClampedArray(e.length);for(let s=0,n=e.length;s<n;s++)i[s]=(0,jt.W)(e[s]*t);return i}renderChar(e,t,i,s,n,r,o,a,c,l,h){const d=1*this.scale,u=2*this.scale,g=h?1:u;if(t+d>e.width||i+g>e.height)return void console.warn("bad render request outside image data");const p=l?this.charDataLight:this.charDataNormal,m=((e,t)=>(e-=32)<0||e>96?t<=2?(e+96)%96:95:e)(s,c),f=4*e.width,_=o.r,v=o.g,C=o.b,E=n.r-_,b=n.g-v,S=n.b-C,y=Math.max(r,a),w=e.data;let R=m*d*u,L=i*f+4*t;for(let T=0;T<g;T++){let e=L;for(let t=0;t<d;t++){const t=p[R++]/255*(r/255);w[e++]=_+E*t,w[e++]=v+b*t,w[e++]=C+S*t,w[e++]=y}L+=f}}blockRenderChar(e,t,i,s,n,r,o,a){const c=1*this.scale,l=2*this.scale,h=a?1:l;if(t+c>e.width||i+h>e.height)return void console.warn("bad render request outside image data");const d=4*e.width,u=n/255*.5,g=r.r,p=r.g,m=r.b,f=g+(s.r-g)*u,_=p+(s.g-p)*u,v=m+(s.b-m)*u,C=Math.max(n,o),E=e.data;let b=i*d+4*t;for(let S=0;S<h;S++){let e=b;for(let t=0;t<c;t++)E[e++]=f,E[e++]=_,E[e++]=v,E[e++]=C;b+=d}}}var Yt=i(6921);const qt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15},$t=e=>{const t=new Uint8ClampedArray(e.length/2);for(let i=0;i<e.length;i+=2)t[i>>1]=qt[e[i]]<<4|15&qt[e[i+1]];return t},Qt={1:(0,Yt.P)((()=>$t("0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792"))),2:(0,Yt.P)((()=>$t("000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126")))};class Xt{static create(e,t){if(this.lastCreated&&e===this.lastCreated.scale&&t===this.lastFontFamily)return this.lastCreated;let i;return i=Qt[e]?new Kt(Qt[e](),e):Xt.createFromSampleData(Xt.createSampleData(t).data,e),this.lastFontFamily=t,this.lastCreated=i,i}static createSampleData(e){const t=document.createElement("canvas"),i=t.getContext("2d");t.style.height="16px",t.height=16,t.width=960,t.style.width="960px",i.fillStyle="#ffffff",i.font=`bold 16px ${e}`,i.textBaseline="middle";let s=0;for(const n of Gt)i.fillText(String.fromCharCode(n),s,8),s+=10;return i.getImageData(0,0,960,16)}static createFromSampleData(e,t){if(61440!==e.length)throw new Error("Unexpected source in MinimapCharRenderer");const i=Xt._downsample(e,t);return new Kt(i,t)}static _downsampleChar(e,t,i,s,n){const r=1*n,o=2*n;let a=s,c=0;for(let l=0;l<o;l++){const s=l/o*16,n=(l+1)/o*16;for(let o=0;o<r;o++){const l=o/r*10,h=(o+1)/r*10;let d=0,u=0;for(let i=s;i<n;i++){const s=t+3840*Math.floor(i),n=1-(i-Math.floor(i));for(let t=l;t<h;t++){const i=1-(t-Math.floor(t)),r=s+4*Math.floor(t),o=i*n;u+=o,d+=e[r]*e[r+3]/255*o}}const g=d/u;c=Math.max(c,g),i[a++]=(0,jt.W)(g)}}return c}static _downsample(e,t){const i=2*t*1*t,s=96*i,n=new Uint8ClampedArray(s);let r=0,o=0,a=0;for(let c=0;c<96;c++)a=Math.max(a,this._downsampleChar(e,o,n,r,t)),r+=i,o+=40;if(a>0){const e=255/a;for(let t=0;t<s;t++)n[t]*=e}return n}}var Zt=i(74320),Jt=i(49435);class ei{constructor(e,t,i){const s=e.options,n=s.get(144),r=s.get(146),o=r.minimap,a=s.get(50),c=s.get(73);this.renderMinimap=o.renderMinimap,this.size=c.size,this.minimapHeightIsEditorHeight=o.minimapHeightIsEditorHeight,this.scrollBeyondLastLine=s.get(106),this.paddingTop=s.get(84).top,this.paddingBottom=s.get(84).bottom,this.showSlider=c.showSlider,this.autohide=c.autohide,this.pixelRatio=n,this.typicalHalfwidthCharacterWidth=a.typicalHalfwidthCharacterWidth,this.lineHeight=s.get(67),this.minimapLeft=o.minimapLeft,this.minimapWidth=o.minimapWidth,this.minimapHeight=r.height,this.canvasInnerWidth=o.minimapCanvasInnerWidth,this.canvasInnerHeight=o.minimapCanvasInnerHeight,this.canvasOuterWidth=o.minimapCanvasOuterWidth,this.canvasOuterHeight=o.minimapCanvasOuterHeight,this.isSampling=o.minimapIsSampling,this.editorHeight=r.height,this.fontScale=o.minimapScale,this.minimapLineHeight=o.minimapLineHeight,this.minimapCharWidth=1*this.fontScale,this.sectionHeaderFontFamily=Jt.z,this.sectionHeaderFontSize=c.sectionHeaderFontSize*n,this.sectionHeaderLetterSpacing=c.sectionHeaderLetterSpacing,this.sectionHeaderFontColor=ei._getSectionHeaderColor(t,i.getColor(1)),this.charRenderer=(0,Yt.P)((()=>Xt.create(this.fontScale,a.fontFamily))),this.defaultBackgroundColor=i.getColor(2),this.backgroundColor=ei._getMinimapBackground(t,this.defaultBackgroundColor),this.foregroundAlpha=ei._getMinimapForegroundOpacity(t)}static _getMinimapBackground(e,t){const i=e.getColor(zt.ILr);return i?new Bt(i.rgba.r,i.rgba.g,i.rgba.b,Math.round(255*i.rgba.a)):t}static _getMinimapForegroundOpacity(e){const t=e.getColor(zt.K1Z);return t?Bt._clamp(Math.round(255*t.rgba.a)):255}static _getSectionHeaderColor(e,t){const i=e.getColor(zt.By2);return i?new Bt(i.rgba.r,i.rgba.g,i.rgba.b,Math.round(255*i.rgba.a)):t}equals(e){return this.renderMinimap===e.renderMinimap&&this.size===e.size&&this.minimapHeightIsEditorHeight===e.minimapHeightIsEditorHeight&&this.scrollBeyondLastLine===e.scrollBeyondLastLine&&this.paddingTop===e.paddingTop&&this.paddingBottom===e.paddingBottom&&this.showSlider===e.showSlider&&this.autohide===e.autohide&&this.pixelRatio===e.pixelRatio&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.lineHeight===e.lineHeight&&this.minimapLeft===e.minimapLeft&&this.minimapWidth===e.minimapWidth&&this.minimapHeight===e.minimapHeight&&this.canvasInnerWidth===e.canvasInnerWidth&&this.canvasInnerHeight===e.canvasInnerHeight&&this.canvasOuterWidth===e.canvasOuterWidth&&this.canvasOuterHeight===e.canvasOuterHeight&&this.isSampling===e.isSampling&&this.editorHeight===e.editorHeight&&this.fontScale===e.fontScale&&this.minimapLineHeight===e.minimapLineHeight&&this.minimapCharWidth===e.minimapCharWidth&&this.sectionHeaderFontSize===e.sectionHeaderFontSize&&this.sectionHeaderLetterSpacing===e.sectionHeaderLetterSpacing&&this.defaultBackgroundColor&&this.defaultBackgroundColor.equals(e.defaultBackgroundColor)&&this.backgroundColor&&this.backgroundColor.equals(e.backgroundColor)&&this.foregroundAlpha===e.foregroundAlpha}}class ti{constructor(e,t,i,s,n,r,o,a,c){this.scrollTop=e,this.scrollHeight=t,this.sliderNeeded=i,this._computedSliderRatio=s,this.sliderTop=n,this.sliderHeight=r,this.topPaddingLineCount=o,this.startLineNumber=a,this.endLineNumber=c}getDesiredScrollTopFromDelta(e){return Math.round(this.scrollTop+e/this._computedSliderRatio)}getDesiredScrollTopFromTouchLocation(e){return Math.round((e-this.sliderHeight/2)/this._computedSliderRatio)}intersectWithViewport(e){const t=Math.max(this.startLineNumber,e.startLineNumber),i=Math.min(this.endLineNumber,e.endLineNumber);return t>i?null:[t,i]}getYForLineNumber(e,t){return+(e-this.startLineNumber+this.topPaddingLineCount)*t}static create(e,t,i,s,n,r,o,a,c,l,h){const d=e.pixelRatio,u=e.minimapLineHeight,g=Math.floor(e.canvasInnerHeight/u),p=e.lineHeight;if(e.minimapHeightIsEditorHeight){let t=a*e.lineHeight+e.paddingTop+e.paddingBottom;e.scrollBeyondLastLine&&(t+=Math.max(0,n-e.lineHeight-e.paddingBottom));const i=Math.max(1,Math.floor(n*n/t)),s=Math.max(0,e.minimapHeight-i),r=s/(l-n),h=c*r,d=s>0,u=Math.floor(e.canvasInnerHeight/e.minimapLineHeight),g=Math.floor(e.paddingTop/e.lineHeight);return new ti(c,l,d,r,h,i,g,1,Math.min(o,u))}let m;if(r&&i!==o){const e=i-t+1;m=Math.floor(e*u/d)}else{const e=n/p;m=Math.floor(e*u/d)}const f=Math.floor(e.paddingTop/p);let _,v=Math.floor(e.paddingBottom/p);if(e.scrollBeyondLastLine){const e=n/p;v=Math.max(v,e-1)}if(v>0){_=(f+o+v-n/p-1)*u/d}else _=Math.max(0,(f+o)*u/d-m);_=Math.min(e.minimapHeight-m,_);const C=_/(l-n),E=c*C;if(g>=f+o+v){return new ti(c,l,_>0,C,E,m,f,1,o)}{let i,n;i=t>1?t+f:Math.max(1,c/p);let r=Math.max(1,Math.floor(i-E*d/u));r<f?(n=f-r+1,r=1):(n=0,r=Math.max(1,r-f)),h&&h.scrollHeight===l&&(h.scrollTop>c&&(r=Math.min(r,h.startLineNumber),n=Math.max(n,h.topPaddingLineCount)),h.scrollTop<c&&(r=Math.max(r,h.startLineNumber),n=Math.min(n,h.topPaddingLineCount)));const a=Math.min(o,r-n+g-1),_=(c-s)/p;let v;return v=c>=e.paddingTop?(t-r+n+_)*u/d:c/e.paddingTop*(n+_)*u/d,new ti(c,l,!0,C,v,m,n,r,a)}}}class ii{static{this.INVALID=new ii(-1)}constructor(e){this.dy=e}onContentChanged(){this.dy=-1}onTokensChanged(){this.dy=-1}}class si{constructor(e,t,i){this.renderedLayout=e,this._imageData=t,this._renderedLines=new Qe({createLine:()=>ii.INVALID}),this._renderedLines._set(e.startLineNumber,i)}linesEquals(e){if(!this.scrollEquals(e))return!1;const t=this._renderedLines._get().lines;for(let i=0,s=t.length;i<s;i++)if(-1===t[i].dy)return!1;return!0}scrollEquals(e){return this.renderedLayout.startLineNumber===e.startLineNumber&&this.renderedLayout.endLineNumber===e.endLineNumber}_get(){const e=this._renderedLines._get();return{imageData:this._imageData,rendLineNumberStart:e.rendLineNumberStart,lines:e.lines}}onLinesChanged(e,t){return this._renderedLines.onLinesChanged(e,t)}onLinesDeleted(e,t){this._renderedLines.onLinesDeleted(e,t)}onLinesInserted(e,t){this._renderedLines.onLinesInserted(e,t)}onTokensChanged(e){return this._renderedLines.onTokensChanged(e)}}class ni{constructor(e,t,i,s){this._backgroundFillData=ni._createBackgroundFillData(t,i,s),this._buffers=[e.createImageData(t,i),e.createImageData(t,i)],this._lastUsedBuffer=0}getBuffer(){this._lastUsedBuffer=1-this._lastUsedBuffer;const e=this._buffers[this._lastUsedBuffer];return e.data.set(this._backgroundFillData),e}static _createBackgroundFillData(e,t,i){const s=i.r,n=i.g,r=i.b,o=i.a,a=new Uint8ClampedArray(e*t*4);let c=0;for(let l=0;l<t;l++)for(let t=0;t<e;t++)a[c]=s,a[c+1]=n,a[c+2]=r,a[c+3]=o,c+=4;return a}}class ri{static compute(e,t,i){if(0===e.renderMinimap||!e.isSampling)return[null,[]];const{minimapLineCount:s}=R.xZ.computeContainedMinimapLineCount({viewLineCount:t,scrollBeyondLastLine:e.scrollBeyondLastLine,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:e.editorHeight,lineHeight:e.lineHeight,pixelRatio:e.pixelRatio}),n=t/s,r=n/2;if(!i||0===i.minimapLines.length){const e=[];if(e[0]=1,s>1){for(let t=0,i=s-1;t<i;t++)e[t]=Math.round(t*n+r);e[s-1]=t}return[new ri(n,e),[]]}const o=i.minimapLines,a=o.length,c=[];let l=0,h=0,d=1;let u=[],g=null;for(let p=0;p<s;p++){const e=Math.max(d,Math.round(p*n)),i=Math.max(e,Math.round((p+1)*n));for(;l<a&&o[l]<e;){if(u.length<10){const e=l+1+h;g&&"deleted"===g.type&&g._oldIndex===l-1?g.deleteToLineNumber++:(g={type:"deleted",_oldIndex:l,deleteFromLineNumber:e,deleteToLineNumber:e},u.push(g)),h--}l++}let m;if(l<a&&o[l]<=i)m=o[l],l++;else if(m=0===p?1:p+1===s?t:Math.round(p*n+r),u.length<10){const e=l+1+h;g&&"inserted"===g.type&&g._i===p-1?g.insertToLineNumber++:(g={type:"inserted",_i:p,insertFromLineNumber:e,insertToLineNumber:e},u.push(g)),h++}c[p]=m,d=m}if(u.length<10)for(;l<a;){const e=l+1+h;g&&"deleted"===g.type&&g._oldIndex===l-1?g.deleteToLineNumber++:(g={type:"deleted",_oldIndex:l,deleteFromLineNumber:e,deleteToLineNumber:e},u.push(g)),h--,l++}else u=[{type:"flush"}];return[new ri(n,c),u]}constructor(e,t){this.samplingRatio=e,this.minimapLines=t}modelLineToMinimapLine(e){return Math.min(this.minimapLines.length,Math.max(1,Math.round(e/this.samplingRatio)))}modelLineRangeToMinimapLineRange(e,t){let i=this.modelLineToMinimapLine(e)-1;for(;i>0&&this.minimapLines[i-1]>=e;)i--;let s=this.modelLineToMinimapLine(t)-1;for(;s+1<this.minimapLines.length&&this.minimapLines[s+1]<=t;)s++;if(i===s){const s=this.minimapLines[i];if(s<e||s>t)return null}return[i+1,s+1]}decorationLineRangeToMinimapLineRange(e,t){let i=this.modelLineToMinimapLine(e),s=this.modelLineToMinimapLine(t);return e!==t&&s===i&&(s===this.minimapLines.length?i>1&&i--:s++),[i,s]}onLinesDeleted(e){const t=e.toLineNumber-e.fromLineNumber+1;let i=this.minimapLines.length,s=0;for(let n=this.minimapLines.length-1;n>=0&&!(this.minimapLines[n]<e.fromLineNumber);n--)this.minimapLines[n]<=e.toLineNumber?(this.minimapLines[n]=Math.max(1,e.fromLineNumber-1),i=Math.min(i,n),s=Math.max(s,n)):this.minimapLines[n]-=t;return[i,s]}onLinesInserted(e){const t=e.toLineNumber-e.fromLineNumber+1;for(let i=this.minimapLines.length-1;i>=0&&!(this.minimapLines[i]<e.fromLineNumber);i--)this.minimapLines[i]+=t}}class oi extends z{constructor(e){super(e),this._sectionHeaderCache=new Zt.qK(10,1.5),this.tokensColorTracker=Wt.getInstance(),this._selections=[],this._minimapSelections=null,this.options=new ei(this._context.configuration,this._context.theme,this.tokensColorTracker);const[t]=ri.compute(this.options,this._context.viewModel.getLineCount(),null);this._samplingState=t,this._shouldCheckSampling=!1,this._actual=new ai(e.theme,this)}dispose(){this._actual.dispose(),super.dispose()}getDomNode(){return this._actual.getDomNode()}_onOptionsMaybeChanged(){const e=new ei(this._context.configuration,this._context.theme,this.tokensColorTracker);return!this.options.equals(e)&&(this.options=e,this._recreateLineSampling(),this._actual.onDidChangeOptions(),!0)}onConfigurationChanged(e){return this._onOptionsMaybeChanged()}onCursorStateChanged(e){return this._selections=e.selections,this._minimapSelections=null,this._actual.onSelectionChanged()}onDecorationsChanged(e){return!!e.affectsMinimap&&this._actual.onDecorationsChanged()}onFlushed(e){return this._samplingState&&(this._shouldCheckSampling=!0),this._actual.onFlushed()}onLinesChanged(e){if(this._samplingState){const t=this._samplingState.modelLineRangeToMinimapLineRange(e.fromLineNumber,e.fromLineNumber+e.count-1);return!!t&&this._actual.onLinesChanged(t[0],t[1]-t[0]+1)}return this._actual.onLinesChanged(e.fromLineNumber,e.count)}onLinesDeleted(e){if(this._samplingState){const[t,i]=this._samplingState.onLinesDeleted(e);return t<=i&&this._actual.onLinesChanged(t+1,i-t+1),this._shouldCheckSampling=!0,!0}return this._actual.onLinesDeleted(e.fromLineNumber,e.toLineNumber)}onLinesInserted(e){return this._samplingState?(this._samplingState.onLinesInserted(e),this._shouldCheckSampling=!0,!0):this._actual.onLinesInserted(e.fromLineNumber,e.toLineNumber)}onScrollChanged(e){return this._actual.onScrollChanged()}onThemeChanged(e){return this._actual.onThemeChanged(),this._onOptionsMaybeChanged(),!0}onTokensChanged(e){if(this._samplingState){const t=[];for(const i of e.ranges){const e=this._samplingState.modelLineRangeToMinimapLineRange(i.fromLineNumber,i.toLineNumber);e&&t.push({fromLineNumber:e[0],toLineNumber:e[1]})}return!!t.length&&this._actual.onTokensChanged(t)}return this._actual.onTokensChanged(e.ranges)}onTokensColorsChanged(e){return this._onOptionsMaybeChanged(),this._actual.onTokensColorsChanged()}onZonesChanged(e){return this._actual.onZonesChanged()}prepareRender(e){this._shouldCheckSampling&&(this._shouldCheckSampling=!1,this._recreateLineSampling())}render(e){let t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber;this._samplingState&&(t=this._samplingState.modelLineToMinimapLine(t),i=this._samplingState.modelLineToMinimapLine(i));const s={viewportContainsWhitespaceGaps:e.viewportData.whitespaceViewportData.length>0,scrollWidth:e.scrollWidth,scrollHeight:e.scrollHeight,viewportStartLineNumber:t,viewportEndLineNumber:i,viewportStartLineNumberVerticalOffset:e.getVerticalOffsetForLineNumber(t),scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,viewportWidth:e.viewportWidth,viewportHeight:e.viewportHeight};this._actual.render(s)}_recreateLineSampling(){this._minimapSelections=null;const e=Boolean(this._samplingState),[t,i]=ri.compute(this.options,this._context.viewModel.getLineCount(),this._samplingState);if(this._samplingState=t,e&&this._samplingState)for(const s of i)switch(s.type){case"deleted":this._actual.onLinesDeleted(s.deleteFromLineNumber,s.deleteToLineNumber);break;case"inserted":this._actual.onLinesInserted(s.insertFromLineNumber,s.insertToLineNumber);break;case"flush":this._actual.onFlushed()}}getLineCount(){return this._samplingState?this._samplingState.minimapLines.length:this._context.viewModel.getLineCount()}getRealLineCount(){return this._context.viewModel.getLineCount()}getLineContent(e){return this._samplingState?this._context.viewModel.getLineContent(this._samplingState.minimapLines[e-1]):this._context.viewModel.getLineContent(e)}getLineMaxColumn(e){return this._samplingState?this._context.viewModel.getLineMaxColumn(this._samplingState.minimapLines[e-1]):this._context.viewModel.getLineMaxColumn(e)}getMinimapLinesRenderingData(e,t,i){if(this._samplingState){const s=[];for(let n=0,r=t-e+1;n<r;n++)i[n]?s[n]=this._context.viewModel.getViewLineData(this._samplingState.minimapLines[e+n-1]):s[n]=null;return s}return this._context.viewModel.getMinimapLinesRenderingData(e,t,i).data}getSelections(){if(null===this._minimapSelections)if(this._samplingState){this._minimapSelections=[];for(const e of this._selections){const[t,i]=this._samplingState.decorationLineRangeToMinimapLineRange(e.startLineNumber,e.endLineNumber);this._minimapSelections.push(new pe.L(t,e.startColumn,i,e.endColumn))}}else this._minimapSelections=this._selections;return this._minimapSelections}getMinimapDecorationsInViewport(e,t){const i=this._getMinimapDecorationsInViewport(e,t).filter((e=>!e.options.minimap?.sectionHeaderStyle));if(this._samplingState){const e=[];for(const t of i){if(!t.options.minimap)continue;const i=t.range,s=this._samplingState.modelLineToMinimapLine(i.startLineNumber),n=this._samplingState.modelLineToMinimapLine(i.endLineNumber);e.push(new Vt.vo(new q.Q(s,i.startColumn,n,i.endColumn),t.options))}return e}return i}getSectionHeaderDecorationsInViewport(e,t){const i=this.options.minimapLineHeight,s=this.options.sectionHeaderFontSize/i;return e=Math.floor(Math.max(1,e-s)),this._getMinimapDecorationsInViewport(e,t).filter((e=>!!e.options.minimap?.sectionHeaderStyle))}_getMinimapDecorationsInViewport(e,t){let i;if(this._samplingState){const s=this._samplingState.minimapLines[e-1],n=this._samplingState.minimapLines[t-1];i=new q.Q(s,1,n,this._context.viewModel.getLineMaxColumn(n))}else i=new q.Q(e,1,t,this._context.viewModel.getLineMaxColumn(t));return this._context.viewModel.getMinimapDecorationsInRange(i)}getSectionHeaderText(e,t){const i=e.options.minimap?.sectionHeaderText;if(!i)return null;const s=this._sectionHeaderCache.get(i);if(s)return s;const n=t(i);return this._sectionHeaderCache.set(i,n),n}getOptions(){return this._context.viewModel.model.getOptions()}revealLineNumber(e){this._samplingState&&(e=this._samplingState.minimapLines[e-1]),this._context.viewModel.revealRange("mouse",!1,new q.Q(e,1,e,1),1,0)}setScrollTop(e){this._context.viewModel.viewLayout.setScrollPosition({scrollTop:e},1)}}class ai extends d.jG{constructor(e,t){super(),this._renderDecorations=!1,this._gestureInProgress=!1,this._theme=e,this._model=t,this._lastRenderData=null,this._buffers=null,this._selectionColor=this._theme.getColor(zt.yr0),this._domNode=(0,H.Z)(document.createElement("div")),G.write(this._domNode,9),this._domNode.setClassName(this._getMinimapDomNodeClassName()),this._domNode.setPosition("absolute"),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._shadow=(0,H.Z)(document.createElement("div")),this._shadow.setClassName("minimap-shadow-hidden"),this._domNode.appendChild(this._shadow),this._canvas=(0,H.Z)(document.createElement("canvas")),this._canvas.setPosition("absolute"),this._canvas.setLeft(0),this._domNode.appendChild(this._canvas),this._decorationsCanvas=(0,H.Z)(document.createElement("canvas")),this._decorationsCanvas.setPosition("absolute"),this._decorationsCanvas.setClassName("minimap-decorations-layer"),this._decorationsCanvas.setLeft(0),this._domNode.appendChild(this._decorationsCanvas),this._slider=(0,H.Z)(document.createElement("div")),this._slider.setPosition("absolute"),this._slider.setClassName("minimap-slider"),this._slider.setLayerHinting(!0),this._slider.setContain("strict"),this._domNode.appendChild(this._slider),this._sliderHorizontal=(0,H.Z)(document.createElement("div")),this._sliderHorizontal.setPosition("absolute"),this._sliderHorizontal.setClassName("minimap-slider-horizontal"),this._slider.appendChild(this._sliderHorizontal),this._applyLayout(),this._pointerDownListener=c.b2(this._domNode.domNode,c.Bx.POINTER_DOWN,(e=>{e.preventDefault();if(0===this._model.options.renderMinimap)return;if(!this._lastRenderData)return;if("proportional"!==this._model.options.size){if(0===e.button&&this._lastRenderData){const t=c.BK(this._slider.domNode),i=t.top+t.height/2;this._startSliderDragging(e,i,this._lastRenderData.renderedLayout)}return}const t=this._model.options.minimapLineHeight,i=this._model.options.canvasInnerHeight/this._model.options.canvasOuterHeight*e.offsetY;let s=Math.floor(i/t)+this._lastRenderData.renderedLayout.startLineNumber-this._lastRenderData.renderedLayout.topPaddingLineCount;s=Math.min(s,this._model.getLineCount()),this._model.revealLineNumber(s)})),this._sliderPointerMoveMonitor=new Ht._,this._sliderPointerDownListener=c.b2(this._slider.domNode,c.Bx.POINTER_DOWN,(e=>{e.preventDefault(),e.stopPropagation(),0===e.button&&this._lastRenderData&&this._startSliderDragging(e,e.pageY,this._lastRenderData.renderedLayout)})),this._gestureDisposable=de.q.addTarget(this._domNode.domNode),this._sliderTouchStartListener=c.ko(this._domNode.domNode,de.B.Start,(e=>{e.preventDefault(),e.stopPropagation(),this._lastRenderData&&(this._slider.toggleClassName("active",!0),this._gestureInProgress=!0,this.scrollDueToTouchEvent(e))}),{passive:!1}),this._sliderTouchMoveListener=c.ko(this._domNode.domNode,de.B.Change,(e=>{e.preventDefault(),e.stopPropagation(),this._lastRenderData&&this._gestureInProgress&&this.scrollDueToTouchEvent(e)}),{passive:!1}),this._sliderTouchEndListener=c.b2(this._domNode.domNode,de.B.End,(e=>{e.preventDefault(),e.stopPropagation(),this._gestureInProgress=!1,this._slider.toggleClassName("active",!1)}))}_startSliderDragging(e,t,i){if(!e.target||!(e.target instanceof Element))return;const s=e.pageX;this._slider.toggleClassName("active",!0);const n=(e,n)=>{const r=c.BK(this._domNode.domNode),o=Math.min(Math.abs(n-s),Math.abs(n-r.left),Math.abs(n-r.left-r.width));if(_.uF&&o>140)return void this._model.setScrollTop(i.scrollTop);const a=e-t;this._model.setScrollTop(i.getDesiredScrollTopFromDelta(a))};e.pageY!==t&&n(e.pageY,s),this._sliderPointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,(e=>n(e.pageY,e.pageX)),(()=>{this._slider.toggleClassName("active",!1)}))}scrollDueToTouchEvent(e){const t=this._domNode.domNode.getBoundingClientRect().top,i=this._lastRenderData.renderedLayout.getDesiredScrollTopFromTouchLocation(e.pageY-t);this._model.setScrollTop(i)}dispose(){this._pointerDownListener.dispose(),this._sliderPointerMoveMonitor.dispose(),this._sliderPointerDownListener.dispose(),this._gestureDisposable.dispose(),this._sliderTouchStartListener.dispose(),this._sliderTouchMoveListener.dispose(),this._sliderTouchEndListener.dispose(),super.dispose()}_getMinimapDomNodeClassName(){const e=["minimap"];return"always"===this._model.options.showSlider?e.push("slider-always"):e.push("slider-mouseover"),this._model.options.autohide&&e.push("autohide"),e.join(" ")}getDomNode(){return this._domNode}_applyLayout(){this._domNode.setLeft(this._model.options.minimapLeft),this._domNode.setWidth(this._model.options.minimapWidth),this._domNode.setHeight(this._model.options.minimapHeight),this._shadow.setHeight(this._model.options.minimapHeight),this._canvas.setWidth(this._model.options.canvasOuterWidth),this._canvas.setHeight(this._model.options.canvasOuterHeight),this._canvas.domNode.width=this._model.options.canvasInnerWidth,this._canvas.domNode.height=this._model.options.canvasInnerHeight,this._decorationsCanvas.setWidth(this._model.options.canvasOuterWidth),this._decorationsCanvas.setHeight(this._model.options.canvasOuterHeight),this._decorationsCanvas.domNode.width=this._model.options.canvasInnerWidth,this._decorationsCanvas.domNode.height=this._model.options.canvasInnerHeight,this._slider.setWidth(this._model.options.minimapWidth)}_getBuffer(){return this._buffers||this._model.options.canvasInnerWidth>0&&this._model.options.canvasInnerHeight>0&&(this._buffers=new ni(this._canvas.domNode.getContext("2d"),this._model.options.canvasInnerWidth,this._model.options.canvasInnerHeight,this._model.options.backgroundColor)),this._buffers?this._buffers.getBuffer():null}onDidChangeOptions(){this._lastRenderData=null,this._buffers=null,this._applyLayout(),this._domNode.setClassName(this._getMinimapDomNodeClassName())}onSelectionChanged(){return this._renderDecorations=!0,!0}onDecorationsChanged(){return this._renderDecorations=!0,!0}onFlushed(){return this._lastRenderData=null,!0}onLinesChanged(e,t){return!!this._lastRenderData&&this._lastRenderData.onLinesChanged(e,t)}onLinesDeleted(e,t){return this._lastRenderData?.onLinesDeleted(e,t),!0}onLinesInserted(e,t){return this._lastRenderData?.onLinesInserted(e,t),!0}onScrollChanged(){return this._renderDecorations=!0,!0}onThemeChanged(){return this._selectionColor=this._theme.getColor(zt.yr0),this._renderDecorations=!0,!0}onTokensChanged(e){return!!this._lastRenderData&&this._lastRenderData.onTokensChanged(e)}onTokensColorsChanged(){return this._lastRenderData=null,this._buffers=null,!0}onZonesChanged(){return this._lastRenderData=null,!0}render(e){if(0===this._model.options.renderMinimap)return this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),void this._sliderHorizontal.setHeight(0);e.scrollLeft+e.viewportWidth>=e.scrollWidth?this._shadow.setClassName("minimap-shadow-hidden"):this._shadow.setClassName("minimap-shadow-visible");const t=ti.create(this._model.options,e.viewportStartLineNumber,e.viewportEndLineNumber,e.viewportStartLineNumberVerticalOffset,e.viewportHeight,e.viewportContainsWhitespaceGaps,this._model.getLineCount(),this._model.getRealLineCount(),e.scrollTop,e.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null);this._slider.setDisplay(t.sliderNeeded?"block":"none"),this._slider.setTop(t.sliderTop),this._slider.setHeight(t.sliderHeight),this._sliderHorizontal.setLeft(0),this._sliderHorizontal.setWidth(this._model.options.minimapWidth),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(t.sliderHeight),this.renderDecorations(t),this._lastRenderData=this.renderLines(t)}renderDecorations(e){if(this._renderDecorations){this._renderDecorations=!1;const t=this._model.getSelections();t.sort(q.Q.compareRangesUsingStarts);const i=this._model.getMinimapDecorationsInViewport(e.startLineNumber,e.endLineNumber);i.sort(((e,t)=>(e.options.zIndex||0)-(t.options.zIndex||0)));const{canvasInnerWidth:s,canvasInnerHeight:n}=this._model.options,r=this._model.options.minimapLineHeight,o=this._model.options.minimapCharWidth,a=this._model.getOptions().tabSize,c=this._decorationsCanvas.domNode.getContext("2d");c.clearRect(0,0,s,n);const l=new ci(e.startLineNumber,e.endLineNumber,!1);this._renderSelectionLineHighlights(c,t,l,e,r),this._renderDecorationsLineHighlights(c,i,l,e,r);const h=new ci(e.startLineNumber,e.endLineNumber,null);this._renderSelectionsHighlights(c,t,h,e,r,a,o,s),this._renderDecorationsHighlights(c,i,h,e,r,a,o,s),this._renderSectionHeaders(e)}}_renderSelectionLineHighlights(e,t,i,s,n){if(!this._selectionColor||this._selectionColor.isTransparent())return;e.fillStyle=this._selectionColor.transparent(.5).toString();let r=0,o=0;for(const a of t){const t=s.intersectWithViewport(a);if(!t)continue;const[c,l]=t;for(let e=c;e<=l;e++)i.set(e,!0);const h=s.getYForLineNumber(c,n),d=s.getYForLineNumber(l,n);o>=h||(o>r&&e.fillRect(R.xq,r,e.canvas.width,o-r),r=h),o=d}o>r&&e.fillRect(R.xq,r,e.canvas.width,o-r)}_renderDecorationsLineHighlights(e,t,i,s,n){const r=new Map;for(let o=t.length-1;o>=0;o--){const a=t[o],c=a.options.minimap;if(!c||1!==c.position)continue;const l=s.intersectWithViewport(a.range);if(!l)continue;const[h,d]=l,u=c.getColor(this._theme.value);if(!u||u.isTransparent())continue;let g=r.get(u.toString());g||(g=u.transparent(.5).toString(),r.set(u.toString(),g)),e.fillStyle=g;for(let t=h;t<=d;t++){if(i.has(t))continue;i.set(t,!0);const r=s.getYForLineNumber(h,n);e.fillRect(R.xq,r,e.canvas.width,n)}}}_renderSelectionsHighlights(e,t,i,s,n,r,o,a){if(this._selectionColor&&!this._selectionColor.isTransparent())for(const c of t){const t=s.intersectWithViewport(c);if(!t)continue;const[l,h]=t;for(let d=l;d<=h;d++)this.renderDecorationOnLine(e,i,c,this._selectionColor,s,d,n,n,r,o,a)}}_renderDecorationsHighlights(e,t,i,s,n,r,o,a){for(const c of t){const t=c.options.minimap;if(!t)continue;const l=s.intersectWithViewport(c.range);if(!l)continue;const[h,d]=l,u=t.getColor(this._theme.value);if(u&&!u.isTransparent())for(let g=h;g<=d;g++)switch(t.position){case 1:this.renderDecorationOnLine(e,i,c.range,u,s,g,n,n,r,o,a);continue;case 2:{const t=s.getYForLineNumber(g,n),i=2;this.renderDecoration(e,u,i,t,2,n);continue}}}}renderDecorationOnLine(e,t,i,s,n,r,o,a,c,l,h){const d=n.getYForLineNumber(r,a);if(d+o<0||d>this._model.options.canvasInnerHeight)return;const{startLineNumber:u,endLineNumber:g}=i,p=u===r?i.startColumn:1,m=g===r?i.endColumn:this._model.getLineMaxColumn(r),f=this.getXOffsetForPosition(t,r,p,c,l,h),_=this.getXOffsetForPosition(t,r,m,c,l,h);this.renderDecoration(e,s,f,d,_-f,o)}getXOffsetForPosition(e,t,i,s,n,r){if(1===i)return R.xq;if((i-1)*n>=r)return r;let o=e.get(t);if(!o){const i=this._model.getLineContent(t);o=[R.xq];let a=R.xq;for(let e=1;e<i.length+1;e++){const t=i.charCodeAt(e-1),c=a+(9===t?s*n:Le.ne(t)?2*n:n);if(c>=r){o[e]=r;break}o[e]=c,a=c}e.set(t,o)}return i-1<o.length?o[i-1]:r}renderDecoration(e,t,i,s,n,r){e.fillStyle=t&&t.toString()||"",e.fillRect(i,s,n,r)}_renderSectionHeaders(e){const t=this._model.options.minimapLineHeight,i=this._model.options.sectionHeaderFontSize,s=this._model.options.sectionHeaderLetterSpacing,n=1.5*i,{canvasInnerWidth:r}=this._model.options,o=this._model.options.backgroundColor,a=`rgb(${o.r} ${o.g} ${o.b} / .7)`,c=this._model.options.sectionHeaderFontColor,l=`rgb(${c.r} ${c.g} ${c.b})`,h=l,d=this._decorationsCanvas.domNode.getContext("2d");d.letterSpacing=s+"px",d.font="500 "+i+"px "+this._model.options.sectionHeaderFontFamily,d.strokeStyle=h,d.lineWidth=.2;const u=this._model.getSectionHeaderDecorationsInViewport(e.startLineNumber,e.endLineNumber);u.sort(((e,t)=>e.range.startLineNumber-t.range.startLineNumber));const g=ai._fitSectionHeader.bind(null,d,r-R.xq);for(const p of u){const s=e.getYForLineNumber(p.range.startLineNumber,t)+i,o=s-i,c=o+2,h=this._model.getSectionHeaderText(p,g);ai._renderSectionLabel(d,h,2===p.options.minimap?.sectionHeaderStyle,a,l,r,o,n,s,c)}}static _fitSectionHeader(e,t,i){if(!i)return i;const s=e.measureText(i).width,n=e.measureText("\u2026").width;if(s<=t||s<=n)return i;const r=i.length,o=s/i.length,a=Math.floor((t-n)/o)-1;let c=Math.ceil(a/2);for(;c>0&&/\s/.test(i[c-1]);)--c;return i.substring(0,c)+"\u2026"+i.substring(r-(a-c))}static _renderSectionLabel(e,t,i,s,n,r,o,a,c,l){t&&(e.fillStyle=s,e.fillRect(0,o,r,a),e.fillStyle=n,e.fillText(t,R.xq,c)),i&&(e.beginPath(),e.moveTo(0,l),e.lineTo(r,l),e.closePath(),e.stroke())}renderLines(e){const t=e.startLineNumber,i=e.endLineNumber,s=this._model.options.minimapLineHeight;if(this._lastRenderData&&this._lastRenderData.linesEquals(e)){const t=this._lastRenderData._get();return new si(e,t.imageData,t.lines)}const n=this._getBuffer();if(!n)return null;const[r,o,a]=ai._renderUntouchedLines(n,e.topPaddingLineCount,t,i,s,this._lastRenderData),c=this._model.getMinimapLinesRenderingData(t,i,a),l=this._model.getOptions().tabSize,h=this._model.options.defaultBackgroundColor,d=this._model.options.backgroundColor,u=this._model.options.foregroundAlpha,g=this._model.tokensColorTracker,p=g.backgroundIsLight(),m=this._model.options.renderMinimap,f=this._model.options.charRenderer(),_=this._model.options.fontScale,v=this._model.options.minimapCharWidth,C=(1===m?2:3)*_,E=s>C?Math.floor((s-C)/2):0,b=d.a/255,S=new Bt(Math.round((d.r-h.r)*b+h.r),Math.round((d.g-h.g)*b+h.g),Math.round((d.b-h.b)*b+h.b),255);let y=e.topPaddingLineCount*s;const w=[];for(let T=0,x=i-t+1;T<x;T++)a[T]&&ai._renderLine(n,S,d.a,p,m,v,g,u,f,y,E,l,c[T],_,s),w[T]=new ii(y),y+=s;const R=-1===r?0:r,L=(-1===o?n.height:o)-R;return this._canvas.domNode.getContext("2d").putImageData(n,0,0,0,R,n.width,L),new si(e,n,w)}static _renderUntouchedLines(e,t,i,s,n,r){const o=[];if(!r){for(let e=0,t=s-i+1;e<t;e++)o[e]=!0;return[-1,-1,o]}const a=r._get(),c=a.imageData.data,l=a.rendLineNumberStart,h=a.lines,d=h.length,u=e.width,g=e.data,p=(s-i+1)*n*u*4;let m=-1,f=-1,_=-1,v=-1,C=-1,E=-1,b=t*n;for(let S=i;S<=s;S++){const e=S-i,t=S-l,s=t>=0&&t<d?h[t].dy:-1;if(-1===s){o[e]=!0,b+=n;continue}const r=s*u*4,a=(s+n)*u*4,y=b*u*4,w=(b+n)*u*4;v===r&&E===y?(v=a,E=w):(-1!==_&&(g.set(c.subarray(_,v),C),-1===m&&0===_&&_===C&&(m=v),-1===f&&v===p&&_===C&&(f=_)),_=r,v=a,C=y,E=w),o[e]=!1,b+=n}-1!==_&&(g.set(c.subarray(_,v),C),-1===m&&0===_&&_===C&&(m=v),-1===f&&v===p&&_===C&&(f=_));return[-1===m?-1:m/(4*u),-1===f?-1:f/(4*u),o]}static _renderLine(e,t,i,s,n,r,o,a,c,l,h,d,u,g,p){const m=u.content,f=u.tokens,_=e.width-r,v=1===p;let C=R.xq,E=0,b=0;for(let S=0,y=f.getCount();S<y;S++){const u=f.getEndOffset(S),p=f.getForeground(S),y=o.getColor(p);for(;E<u;E++){if(C>_)return;const o=m.charCodeAt(E);if(9===o){const e=d-(E+b)%d;b+=e-1,C+=e*r}else if(32===o)C+=r;else{const d=Le.ne(o)?2:1;for(let u=0;u<d;u++)if(2===n?c.blockRenderChar(e,C,l+h,y,a,t,i,v):c.renderChar(e,C,l+h,o,y,a,t,i,g,s,v),C+=r,C>_)return}}}}}class ci{constructor(e,t,i){this._startLineNumber=e,this._endLineNumber=t,this._defaultValue=i,this._values=[];for(let s=0,n=this._endLineNumber-this._startLineNumber+1;s<n;s++)this._values[s]=i}has(e){return this.get(e)!==this._defaultValue}set(e,t){e<this._startLineNumber||e>this._endLineNumber||(this._values[e-this._startLineNumber]=t)}get(e){return e<this._startLineNumber||e>this._endLineNumber?this._defaultValue:this._values[e-this._startLineNumber]}}class li extends z{constructor(e,t){super(e),this._viewDomNode=t;const i=this._context.configuration.options.get(146);this._widgets={},this._verticalScrollbarWidth=i.verticalScrollbarWidth,this._minimapWidth=i.minimap.minimapWidth,this._horizontalScrollbarHeight=i.horizontalScrollbarHeight,this._editorHeight=i.height,this._editorWidth=i.width,this._viewDomNodeRect={top:0,left:0,width:0,height:0},this._domNode=(0,H.Z)(document.createElement("div")),G.write(this._domNode,4),this._domNode.setClassName("overlayWidgets"),this.overflowingOverlayWidgetsDomNode=(0,H.Z)(document.createElement("div")),G.write(this.overflowingOverlayWidgetsDomNode,5),this.overflowingOverlayWidgetsDomNode.setClassName("overflowingOverlayWidgets")}dispose(){super.dispose(),this._widgets={}}getDomNode(){return this._domNode}onConfigurationChanged(e){const t=this._context.configuration.options.get(146);return this._verticalScrollbarWidth=t.verticalScrollbarWidth,this._minimapWidth=t.minimap.minimapWidth,this._horizontalScrollbarHeight=t.horizontalScrollbarHeight,this._editorHeight=t.height,this._editorWidth=t.width,!0}addWidget(e){const t=(0,H.Z)(e.getDomNode());this._widgets[e.getId()]={widget:e,preference:null,domNode:t},t.setPosition("absolute"),t.setAttribute("widgetId",e.getId()),e.allowEditorOverflow?this.overflowingOverlayWidgetsDomNode.appendChild(t):this._domNode.appendChild(t),this.setShouldRender(),this._updateMaxMinWidth()}setWidgetPosition(e,t){const i=this._widgets[e.getId()],s=t?t.preference:null,n=t?.stackOridinal;return i.preference===s&&i.stack===n?(this._updateMaxMinWidth(),!1):(i.preference=s,i.stack=n,this.setShouldRender(),this._updateMaxMinWidth(),!0)}removeWidget(e){const t=e.getId();if(this._widgets.hasOwnProperty(t)){const e=this._widgets[t].domNode.domNode;delete this._widgets[t],e.remove(),this.setShouldRender(),this._updateMaxMinWidth()}}_updateMaxMinWidth(){let e=0;const t=Object.keys(this._widgets);for(let i=0,s=t.length;i<s;i++){const s=t[i],n=this._widgets[s],r=n.widget.getMinContentWidthInPx?.();"undefined"!==typeof r&&(e=Math.max(e,r))}this._context.viewLayout.setOverlayWidgetsMinWidth(e)}_renderWidget(e,t){const i=e.domNode;if(null===e.preference)return void i.setTop("");const s=2*this._verticalScrollbarWidth+this._minimapWidth;if(0===e.preference||1===e.preference){if(1===e.preference){const e=i.domNode.clientHeight;i.setTop(this._editorHeight-e-2*this._horizontalScrollbarHeight)}else i.setTop(0);void 0!==e.stack?(i.setTop(t[e.preference]),t[e.preference]+=i.domNode.clientWidth):i.setRight(s)}else if(2===e.preference)i.domNode.style.right="50%",void 0!==e.stack?(i.setTop(t[2]),t[2]+=i.domNode.clientHeight):i.setTop(0);else{const{top:t,left:s}=e.preference;if(this._context.configuration.options.get(42)&&e.widget.allowEditorOverflow){const e=this._viewDomNodeRect;i.setTop(t+e.top),i.setLeft(s+e.left),i.setPosition("fixed")}else i.setTop(t),i.setLeft(s),i.setPosition("absolute")}}prepareRender(e){this._viewDomNodeRect=c.BK(this._viewDomNode.domNode)}render(e){this._domNode.setWidth(this._editorWidth);const t=Object.keys(this._widgets),i=Array.from({length:3},(()=>0));t.sort(((e,t)=>(this._widgets[e].stack||0)-(this._widgets[t].stack||0)));for(let s=0,n=t.length;s<n;s++){const e=t[s];this._renderWidget(this._widgets[e],i)}}}class hi{constructor(e,t){const i=e.options;this.lineHeight=i.get(67),this.pixelRatio=i.get(144),this.overviewRulerLanes=i.get(83),this.renderBorder=i.get(82);const s=t.getColor(Ae.x9);this.borderColor=s?s.toString():null,this.hideCursor=i.get(59);const n=t.getColor(Ae.D0);this.cursorColorSingle=n?n.transparent(.7).toString():null;const r=t.getColor(Ae.sC);this.cursorColorPrimary=r?r.transparent(.7).toString():null;const o=t.getColor(Ae.we);this.cursorColorSecondary=o?o.transparent(.7).toString():null,this.themeType=t.type;const a=i.get(73),c=a.enabled,l=a.side,h=t.getColor(Ae.Xr),d=Me.dG.getDefaultBackground();this.backgroundColor=h||(c&&"right"===l?d:null);const u=i.get(146).overviewRuler;this.top=u.top,this.right=u.right,this.domWidth=u.width,this.domHeight=u.height,0===this.overviewRulerLanes?(this.canvasWidth=0,this.canvasHeight=0):(this.canvasWidth=this.domWidth*this.pixelRatio|0,this.canvasHeight=this.domHeight*this.pixelRatio|0);const[g,p]=this._initLanes(1,this.canvasWidth,this.overviewRulerLanes);this.x=g,this.w=p}_initLanes(e,t,i){const s=t-e;if(i>=3){const t=Math.floor(s/3),i=Math.floor(s/3),n=s-t-i,r=e+t;return[[0,e,r,e,e+t+n,e,r,e],[0,t,n,t+n,i,t+n+i,n+i,t+n+i]]}if(2===i){const t=Math.floor(s/2),i=s-t;return[[0,e,e,e,e+t,e,e,e],[0,t,t,t,i,t+i,t+i,t+i]]}return[[0,e,e,e,e,e,e,e],[0,s,s,s,s,s,s,s]]}equals(e){return this.lineHeight===e.lineHeight&&this.pixelRatio===e.pixelRatio&&this.overviewRulerLanes===e.overviewRulerLanes&&this.renderBorder===e.renderBorder&&this.borderColor===e.borderColor&&this.hideCursor===e.hideCursor&&this.cursorColorSingle===e.cursorColorSingle&&this.cursorColorPrimary===e.cursorColorPrimary&&this.cursorColorSecondary===e.cursorColorSecondary&&this.themeType===e.themeType&&Pe.Q1.equals(this.backgroundColor,e.backgroundColor)&&this.top===e.top&&this.right===e.right&&this.domWidth===e.domWidth&&this.domHeight===e.domHeight&&this.canvasWidth===e.canvasWidth&&this.canvasHeight===e.canvasHeight}}class di extends z{constructor(e){super(e),this._actualShouldRender=0,this._renderedDecorations=[],this._renderedCursorPositions=[],this._domNode=(0,H.Z)(document.createElement("canvas")),this._domNode.setClassName("decorationsOverviewRuler"),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._domNode.setAttribute("aria-hidden","true"),this._updateSettings(!1),this._tokensColorTrackerListener=Me.dG.onDidChange((e=>{e.changedColorMap&&this._updateSettings(!0)})),this._cursorPositions=[{position:new Y.y(1,1),color:this._settings.cursorColorSingle}]}dispose(){super.dispose(),this._tokensColorTrackerListener.dispose()}_updateSettings(e){const t=new hi(this._context.configuration,this._context.theme);return(!this._settings||!this._settings.equals(t))&&(this._settings=t,this._domNode.setTop(this._settings.top),this._domNode.setRight(this._settings.right),this._domNode.setWidth(this._settings.domWidth),this._domNode.setHeight(this._settings.domHeight),this._domNode.domNode.width=this._settings.canvasWidth,this._domNode.domNode.height=this._settings.canvasHeight,e&&this._render(),!0)}_markRenderingIsNeeded(){return this._actualShouldRender=2,!0}_markRenderingIsMaybeNeeded(){return this._actualShouldRender=1,!0}onConfigurationChanged(e){return!!this._updateSettings(!1)&&this._markRenderingIsNeeded()}onCursorStateChanged(e){this._cursorPositions=[];for(let t=0,i=e.selections.length;t<i;t++){let s=this._settings.cursorColorSingle;i>1&&(s=0===t?this._settings.cursorColorPrimary:this._settings.cursorColorSecondary),this._cursorPositions.push({position:e.selections[t].getPosition(),color:s})}return this._cursorPositions.sort(((e,t)=>Y.y.compare(e.position,t.position))),this._markRenderingIsMaybeNeeded()}onDecorationsChanged(e){return!!e.affectsOverviewRuler&&this._markRenderingIsMaybeNeeded()}onFlushed(e){return this._markRenderingIsNeeded()}onScrollChanged(e){return!!e.scrollHeightChanged&&this._markRenderingIsNeeded()}onZonesChanged(e){return this._markRenderingIsNeeded()}onThemeChanged(e){return!!this._updateSettings(!1)&&this._markRenderingIsNeeded()}getDomNode(){return this._domNode.domNode}prepareRender(e){}render(e){this._render(),this._actualShouldRender=0}_render(){const e=this._settings.backgroundColor;if(0===this._settings.overviewRulerLanes)return this._domNode.setBackgroundColor(e?Pe.Q1.Format.CSS.formatHexA(e):""),void this._domNode.setDisplay("none");const t=this._context.viewModel.getAllOverviewRulerDecorations(this._context.theme);if(t.sort(Vt.Uv.compareByRenderingProps),1!==this._actualShouldRender||Vt.Uv.equalsArr(this._renderedDecorations,t)||(this._actualShouldRender=2),1!==this._actualShouldRender||(0,m.aI)(this._renderedCursorPositions,this._cursorPositions,((e,t)=>e.position.lineNumber===t.position.lineNumber&&e.color===t.color))||(this._actualShouldRender=2),1===this._actualShouldRender)return;this._renderedDecorations=t,this._renderedCursorPositions=this._cursorPositions,this._domNode.setDisplay("block");const i=this._settings.canvasWidth,s=this._settings.canvasHeight,n=this._settings.lineHeight,r=this._context.viewLayout,o=s/this._context.viewLayout.getScrollHeight(),a=6*this._settings.pixelRatio|0,c=a/2|0,l=this._domNode.domNode.getContext("2d");e?e.isOpaque()?(l.fillStyle=Pe.Q1.Format.CSS.formatHexA(e),l.fillRect(0,0,i,s)):(l.clearRect(0,0,i,s),l.fillStyle=Pe.Q1.Format.CSS.formatHexA(e),l.fillRect(0,0,i,s)):l.clearRect(0,0,i,s);const h=this._settings.x,d=this._settings.w;for(const u of t){const e=u.color,t=u.data;l.fillStyle=e;let i=0,g=0,p=0;for(let u=0,m=t.length/3;u<m;u++){const e=t[3*u],m=t[3*u+1],f=t[3*u+2];let _=r.getVerticalOffsetForLineNumber(m)*o|0,v=(r.getVerticalOffsetForLineNumber(f)+n)*o|0;if(v-_<a){let e=(_+v)/2|0;e<c?e=c:e+c>s&&(e=s-c),_=e-c,v=e+c}_>p+1||e!==i?(0!==u&&l.fillRect(h[i],g,d[i],p-g),i=e,g=_,p=v):v>p&&(p=v)}l.fillRect(h[i],g,d[i],p-g)}if(!this._settings.hideCursor){const e=2*this._settings.pixelRatio|0,t=e/2|0,i=this._settings.x[7],n=this._settings.w[7];let a=-100,c=-100,h=null;for(let d=0,u=this._cursorPositions.length;d<u;d++){const u=this._cursorPositions[d].color;if(!u)continue;const g=this._cursorPositions[d].position;let p=r.getVerticalOffsetForLineNumber(g.lineNumber)*o|0;p<t?p=t:p+t>s&&(p=s-t);const m=p-t,f=m+e;m>c+1||u!==h?(0!==d&&h&&l.fillRect(i,a,n,c-a),a=m,c=f):f>c&&(c=f),h=u,l.fillStyle=u}h&&l.fillRect(i,a,n,c-a)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(l.beginPath(),l.lineWidth=1,l.strokeStyle=this._settings.borderColor,l.moveTo(0,0),l.lineTo(0,s),l.moveTo(1,0),l.lineTo(i,0),l.stroke())}}var ui,gi=i(19531);class pi extends V{constructor(e,t){super(),this._context=e;const i=this._context.configuration.options;this._domNode=(0,H.Z)(document.createElement("canvas")),this._domNode.setClassName(t),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._zoneManager=new gi.rW((e=>this._context.viewLayout.getVerticalOffsetForLineNumber(e))),this._zoneManager.setDOMWidth(0),this._zoneManager.setDOMHeight(0),this._zoneManager.setOuterHeight(this._context.viewLayout.getScrollHeight()),this._zoneManager.setLineHeight(i.get(67)),this._zoneManager.setPixelRatio(i.get(144)),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return e.hasChanged(67)&&(this._zoneManager.setLineHeight(t.get(67)),this._render()),e.hasChanged(144)&&(this._zoneManager.setPixelRatio(t.get(144)),this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render()),!0}onFlushed(e){return this._render(),!0}onScrollChanged(e){return e.scrollHeightChanged&&(this._zoneManager.setOuterHeight(e.scrollHeight),this._render()),!0}onZonesChanged(e){return this._render(),!0}getDomNode(){return this._domNode.domNode}setLayout(e){this._domNode.setTop(e.top),this._domNode.setRight(e.right);let t=!1;t=this._zoneManager.setDOMWidth(e.width)||t,t=this._zoneManager.setDOMHeight(e.height)||t,t&&(this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render())}setZones(e){this._zoneManager.setZones(e),this._render()}_render(){if(0===this._zoneManager.getOuterHeight())return!1;const e=this._zoneManager.getCanvasWidth(),t=this._zoneManager.getCanvasHeight(),i=this._zoneManager.resolveColorZones(),s=this._zoneManager.getId2Color(),n=this._domNode.domNode.getContext("2d");return n.clearRect(0,0,e,t),i.length>0&&this._renderOneLane(n,i,s,e),!0}_renderOneLane(e,t,i,s){let n=0,r=0,o=0;for(const a of t){const t=a.colorId,c=a.from,l=a.to;t!==n?(e.fillRect(0,r,s,o-r),n=t,e.fillStyle=i[n],r=c,o=l):o>=c?o=Math.max(o,l):(e.fillRect(0,r,s,o-r),r=c,o=l)}e.fillRect(0,r,s,o-r)}}class mi extends z{constructor(e){super(e),this.domNode=(0,H.Z)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.domNode.setClassName("view-rulers"),this._renderedRulers=[];const t=this._context.configuration.options;this._rulers=t.get(103),this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth}dispose(){super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._rulers=t.get(103),this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,!0}onScrollChanged(e){return e.scrollHeightChanged}prepareRender(e){}_ensureRulersCount(){const e=this._renderedRulers.length,t=this._rulers.length;if(e===t)return;if(e<t){const{tabSize:i}=this._context.viewModel.model.getOptions(),s=i;let n=t-e;for(;n>0;){const e=(0,H.Z)(document.createElement("div"));e.setClassName("view-ruler"),e.setWidth(s),this.domNode.appendChild(e),this._renderedRulers.push(e),n--}return}let i=e-t;for(;i>0;){const e=this._renderedRulers.pop();this.domNode.removeChild(e),i--}}render(e){this._ensureRulersCount();for(let t=0,i=this._rulers.length;t<i;t++){const i=this._renderedRulers[t],s=this._rulers[t];i.setBoxShadow(s.color?`1px 0 0 0 ${s.color} inset`:""),i.setHeight(Math.min(e.scrollHeight,1e6)),i.setLeft(s.column*this._typicalHalfwidthCharacterWidth)}}}class fi extends z{constructor(e){super(e),this._scrollTop=0,this._width=0,this._updateWidth(),this._shouldShow=!1;const t=this._context.configuration.options.get(104);this._useShadows=t.useShadows,this._domNode=(0,H.Z)(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true")}dispose(){super.dispose()}_updateShouldShow(){const e=this._useShadows&&this._scrollTop>0;return this._shouldShow!==e&&(this._shouldShow=e,!0)}getDomNode(){return this._domNode}_updateWidth(){const e=this._context.configuration.options.get(146);0===e.minimap.renderMinimap||e.minimap.minimapWidth>0&&0===e.minimap.minimapLeft?this._width=e.width:this._width=e.width-e.verticalScrollbarWidth}onConfigurationChanged(e){const t=this._context.configuration.options.get(104);return this._useShadows=t.useShadows,this._updateWidth(),this._updateShouldShow(),!0}onScrollChanged(e){return this._scrollTop=e.scrollTop,this._updateShouldShow()}prepareRender(e){}render(e){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")}}class _i{constructor(e){this.left=e.left,this.width=e.width,this.startStyle=null,this.endStyle=null}}class vi{constructor(e,t){this.lineNumber=e,this.ranges=t}}function Ci(e){return new _i(e)}function Ei(e){return new vi(e.lineNumber,e.ranges.map(Ci))}class bi extends xe{static{this.SELECTION_CLASS_NAME="selected-text"}static{this.SELECTION_TOP_LEFT="top-left-radius"}static{this.SELECTION_BOTTOM_LEFT="bottom-left-radius"}static{this.SELECTION_TOP_RIGHT="top-right-radius"}static{this.SELECTION_BOTTOM_RIGHT="bottom-right-radius"}static{this.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background"}static{this.ROUNDED_PIECE_WIDTH=10}constructor(e){super(),this._previousFrameVisibleRangesWithStyle=[],this._context=e;const t=this._context.configuration.options;this._roundedSelection=t.get(102),this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,this._selections=[],this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._roundedSelection=t.get(102),this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,!0}onCursorStateChanged(e){return this._selections=e.selections.slice(0),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_visibleRangesHaveGaps(e){for(let t=0,i=e.length;t<i;t++){if(e[t].ranges.length>1)return!0}return!1}_enrichVisibleRangesWithStyle(e,t,i){const s=this._typicalHalfwidthCharacterWidth/4;let n=null,r=null;if(i&&i.length>0&&t.length>0){const s=t[0].lineNumber;if(s===e.startLineNumber)for(let e=0;!n&&e<i.length;e++)i[e].lineNumber===s&&(n=i[e].ranges[0]);const o=t[t.length-1].lineNumber;if(o===e.endLineNumber)for(let e=i.length-1;!r&&e>=0;e--)i[e].lineNumber===o&&(r=i[e].ranges[0]);n&&!n.startStyle&&(n=null),r&&!r.startStyle&&(r=null)}for(let o=0,a=t.length;o<a;o++){const e=t[o].ranges[0],i=e.left,c=e.left+e.width,l={top:0,bottom:0},h={top:0,bottom:0};if(o>0){const e=t[o-1].ranges[0].left,n=t[o-1].ranges[0].left+t[o-1].ranges[0].width;Si(i-e)<s?l.top=2:i>e&&(l.top=1),Si(c-n)<s?h.top=2:e<c&&c<n&&(h.top=1)}else n&&(l.top=n.startStyle.top,h.top=n.endStyle.top);if(o+1<a){const e=t[o+1].ranges[0].left,n=t[o+1].ranges[0].left+t[o+1].ranges[0].width;Si(i-e)<s?l.bottom=2:e<i&&i<n&&(l.bottom=1),Si(c-n)<s?h.bottom=2:c<n&&(h.bottom=1)}else r&&(l.bottom=r.startStyle.bottom,h.bottom=r.endStyle.bottom);e.startStyle=l,e.endStyle=h}}_getVisibleRangesWithStyle(e,t,i){const s=(t.linesVisibleRangesForRange(e,!0)||[]).map(Ei);return!this._visibleRangesHaveGaps(s)&&this._roundedSelection&&this._enrichVisibleRangesWithStyle(t.visibleRange,s,i),s}_createSelectionPiece(e,t,i,s,n){return'<div class="cslr '+i+'" style="top:'+e.toString()+"px;bottom:"+t.toString()+"px;left:"+s.toString()+"px;width:"+n.toString()+'px;"></div>'}_actualRenderOneSelection(e,t,i,s){if(0===s.length)return;const n=!!s[0].ranges[0].startStyle,r=s[0].lineNumber,o=s[s.length-1].lineNumber;for(let a=0,c=s.length;a<c;a++){const c=s[a],l=c.lineNumber,h=l-t,d=i&&l===r?1:0,u=i&&l!==r&&l===o?1:0;let g="",p="";for(let e=0,t=c.ranges.length;e<t;e++){const t=c.ranges[e];if(n){const e=t.startStyle,i=t.endStyle;if(1===e.top||1===e.bottom){g+=this._createSelectionPiece(d,u,bi.SELECTION_CLASS_NAME,t.left-bi.ROUNDED_PIECE_WIDTH,bi.ROUNDED_PIECE_WIDTH);let i=bi.EDITOR_BACKGROUND_CLASS_NAME;1===e.top&&(i+=" "+bi.SELECTION_TOP_RIGHT),1===e.bottom&&(i+=" "+bi.SELECTION_BOTTOM_RIGHT),g+=this._createSelectionPiece(d,u,i,t.left-bi.ROUNDED_PIECE_WIDTH,bi.ROUNDED_PIECE_WIDTH)}if(1===i.top||1===i.bottom){g+=this._createSelectionPiece(d,u,bi.SELECTION_CLASS_NAME,t.left+t.width,bi.ROUNDED_PIECE_WIDTH);let e=bi.EDITOR_BACKGROUND_CLASS_NAME;1===i.top&&(e+=" "+bi.SELECTION_TOP_LEFT),1===i.bottom&&(e+=" "+bi.SELECTION_BOTTOM_LEFT),g+=this._createSelectionPiece(d,u,e,t.left+t.width,bi.ROUNDED_PIECE_WIDTH)}}let i=bi.SELECTION_CLASS_NAME;if(n){const e=t.startStyle,s=t.endStyle;0===e.top&&(i+=" "+bi.SELECTION_TOP_LEFT),0===e.bottom&&(i+=" "+bi.SELECTION_BOTTOM_LEFT),0===s.top&&(i+=" "+bi.SELECTION_TOP_RIGHT),0===s.bottom&&(i+=" "+bi.SELECTION_BOTTOM_RIGHT)}p+=this._createSelectionPiece(d,u,i,t.left,t.width)}e[h][0]+=g,e[h][1]+=p}}prepareRender(e){const t=[],i=e.visibleRange.startLineNumber,s=e.visibleRange.endLineNumber;for(let r=i;r<=s;r++){t[r-i]=["",""]}const n=[];for(let r=0,o=this._selections.length;r<o;r++){const s=this._selections[r];if(s.isEmpty()){n[r]=null;continue}const o=this._getVisibleRangesWithStyle(s,e,this._previousFrameVisibleRangesWithStyle[r]);n[r]=o,this._actualRenderOneSelection(t,i,this._selections.length>1,o)}this._previousFrameVisibleRangesWithStyle=n,this._renderResult=t.map((([e,t])=>e+t))}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}function Si(e){return e<0?-e:e}(0,ke.zy)(((e,t)=>{const i=e.getColor(zt.rm4);i&&!i.isTransparent()&&t.addRule(`.monaco-editor .view-line span.inline-selected-text { color: ${i}; }`)}));class yi{constructor(e,t,i,s,n,r,o){this.top=e,this.left=t,this.paddingLeft=i,this.width=s,this.height=n,this.textContent=r,this.textContentClassName=o}}!function(e){e[e.Single=0]="Single",e[e.MultiPrimary=1]="MultiPrimary",e[e.MultiSecondary=2]="MultiSecondary"}(ui||(ui={}));class wi{constructor(e,t){this._context=e;const i=this._context.configuration.options,s=i.get(50);this._cursorStyle=i.get(28),this._lineHeight=i.get(67),this._typicalHalfwidthCharacterWidth=s.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(i.get(31),this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=(0,H.Z)(document.createElement("div")),this._domNode.setClassName(`cursor ${De}`),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),(0,g.M)(this._domNode,s),this._domNode.setDisplay("none"),this._position=new Y.y(1,1),this._pluralityClass="",this.setPlurality(t),this._lastRenderedContent="",this._renderData=null}getDomNode(){return this._domNode}getPosition(){return this._position}setPlurality(e){switch(e){default:case ui.Single:this._pluralityClass="";break;case ui.MultiPrimary:this._pluralityClass="cursor-primary";break;case ui.MultiSecondary:this._pluralityClass="cursor-secondary"}}show(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)}hide(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(50);return this._cursorStyle=t.get(28),this._lineHeight=t.get(67),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(31),this._typicalHalfwidthCharacterWidth),(0,g.M)(this._domNode,i),!0}onCursorPositionChanged(e,t){return this._domNode.domNode.style.transitionProperty=t?"none":"",this._position=e,!0}_getGraphemeAwarePosition(){const{lineNumber:e,column:t}=this._position,i=this._context.viewModel.getLineContent(e),[s,n]=Le.m(i,t-1);return[new Y.y(e,s+1),i.substring(s,n)]}_prepareRender(e){let t="",i="";const[s,n]=this._getGraphemeAwarePosition();if(this._cursorStyle===R.m9.Line||this._cursorStyle===R.m9.LineThin){const r=e.visibleRangeForPosition(s);if(!r||r.outsideRenderedLine)return null;const o=c.zk(this._domNode.domNode);let a;this._cursorStyle===R.m9.Line?(a=c.vT(o,this._lineCursorWidth>0?this._lineCursorWidth:2),a>2&&(t=n,i=this._getTokenClassName(s))):a=c.vT(o,1);let l=r.left,h=0;a>=2&&l>=1&&(h=1,l-=h);const d=e.getVerticalOffsetForLineNumber(s.lineNumber)-e.bigNumbersDelta;return new yi(d,l,h,a,this._lineHeight,t,i)}const r=e.linesVisibleRangesForRange(new q.Q(s.lineNumber,s.column,s.lineNumber,s.column+n.length),!1);if(!r||0===r.length)return null;const o=r[0];if(o.outsideRenderedLine||0===o.ranges.length)return null;const a=o.ranges[0],l="\t"===n||a.width<1?this._typicalHalfwidthCharacterWidth:a.width;this._cursorStyle===R.m9.Block&&(t=n,i=this._getTokenClassName(s));let h=e.getVerticalOffsetForLineNumber(s.lineNumber)-e.bigNumbersDelta,d=this._lineHeight;return this._cursorStyle!==R.m9.Underline&&this._cursorStyle!==R.m9.UnderlineThin||(h+=this._lineHeight-2,d=2),new yi(h,a.left,0,l,d,t,i)}_getTokenClassName(e){const t=this._context.viewModel.getViewLineData(e.lineNumber),i=t.tokens.findTokenIndexAtOffset(e.column-1);return t.tokens.getClassName(i)}prepareRender(e){this._renderData=this._prepareRender(e)}render(e){return this._renderData?(this._lastRenderedContent!==this._renderData.textContent&&(this._lastRenderedContent=this._renderData.textContent,this._domNode.domNode.textContent=this._lastRenderedContent),this._domNode.setClassName(`cursor ${this._pluralityClass} ${De} ${this._renderData.textContentClassName}`),this._domNode.setDisplay("block"),this._domNode.setTop(this._renderData.top),this._domNode.setLeft(this._renderData.left),this._domNode.setPaddingLeft(this._renderData.paddingLeft),this._domNode.setWidth(this._renderData.width),this._domNode.setLineHeight(this._renderData.height),this._domNode.setHeight(this._renderData.height),{domNode:this._domNode.domNode,position:this._position,contentLeft:this._renderData.left,height:this._renderData.height,width:2}):(this._domNode.setDisplay("none"),null)}}class Ri extends z{static{this.BLINK_INTERVAL=500}constructor(e){super(e);const t=this._context.configuration.options;this._readOnly=t.get(92),this._cursorBlinking=t.get(26),this._cursorStyle=t.get(28),this._cursorSmoothCaretAnimation=t.get(27),this._selectionIsEmpty=!0,this._isComposingInput=!1,this._isVisible=!1,this._primaryCursor=new wi(this._context,ui.Single),this._secondaryCursors=[],this._renderData=[],this._domNode=(0,H.Z)(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._updateDomClassName(),this._domNode.appendChild(this._primaryCursor.getDomNode()),this._startCursorBlinkAnimation=new Nt.pc,this._cursorFlatBlinkInterval=new c.Be,this._blinkingEnabled=!1,this._editorHasFocus=!1,this._updateBlinking()}dispose(){super.dispose(),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()}getDomNode(){return this._domNode}onCompositionStart(e){return this._isComposingInput=!0,this._updateBlinking(),!0}onCompositionEnd(e){return this._isComposingInput=!1,this._updateBlinking(),!0}onConfigurationChanged(e){const t=this._context.configuration.options;this._readOnly=t.get(92),this._cursorBlinking=t.get(26),this._cursorStyle=t.get(28),this._cursorSmoothCaretAnimation=t.get(27),this._updateBlinking(),this._updateDomClassName(),this._primaryCursor.onConfigurationChanged(e);for(let i=0,s=this._secondaryCursors.length;i<s;i++)this._secondaryCursors[i].onConfigurationChanged(e);return!0}_onCursorPositionChanged(e,t,i){const s=this._secondaryCursors.length!==t.length||"explicit"===this._cursorSmoothCaretAnimation&&3!==i;if(this._primaryCursor.setPlurality(t.length?ui.MultiPrimary:ui.Single),this._primaryCursor.onCursorPositionChanged(e,s),this._updateBlinking(),this._secondaryCursors.length<t.length){const e=t.length-this._secondaryCursors.length;for(let t=0;t<e;t++){const e=new wi(this._context,ui.MultiSecondary);this._domNode.domNode.insertBefore(e.getDomNode().domNode,this._primaryCursor.getDomNode().domNode.nextSibling),this._secondaryCursors.push(e)}}else if(this._secondaryCursors.length>t.length){const e=this._secondaryCursors.length-t.length;for(let t=0;t<e;t++)this._domNode.removeChild(this._secondaryCursors[0].getDomNode()),this._secondaryCursors.splice(0,1)}for(let n=0;n<t.length;n++)this._secondaryCursors[n].onCursorPositionChanged(t[n],s)}onCursorStateChanged(e){const t=[];for(let s=0,n=e.selections.length;s<n;s++)t[s]=e.selections[s].getPosition();this._onCursorPositionChanged(t[0],t.slice(1),e.reason);const i=e.selections[0].isEmpty();return this._selectionIsEmpty!==i&&(this._selectionIsEmpty=i,this._updateDomClassName()),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onFocusChanged(e){return this._editorHasFocus=e.isFocused,this._updateBlinking(),!1}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return!0}onTokensChanged(e){const t=t=>{for(let i=0,s=e.ranges.length;i<s;i++)if(e.ranges[i].fromLineNumber<=t.lineNumber&&t.lineNumber<=e.ranges[i].toLineNumber)return!0;return!1};if(t(this._primaryCursor.getPosition()))return!0;for(const i of this._secondaryCursors)if(t(i.getPosition()))return!0;return!1}onZonesChanged(e){return!0}_getCursorBlinking(){return this._isComposingInput?0:this._editorHasFocus?this._readOnly?5:this._cursorBlinking:0}_updateBlinking(){this._startCursorBlinkAnimation.cancel(),this._cursorFlatBlinkInterval.cancel();const e=this._getCursorBlinking(),t=0===e,i=5===e;t?this._hide():this._show(),this._blinkingEnabled=!1,this._updateDomClassName(),t||i||(1===e?this._cursorFlatBlinkInterval.cancelAndSet((()=>{this._isVisible?this._hide():this._show()}),Ri.BLINK_INTERVAL,(0,c.zk)(this._domNode.domNode)):this._startCursorBlinkAnimation.setIfNotSet((()=>{this._blinkingEnabled=!0,this._updateDomClassName()}),Ri.BLINK_INTERVAL))}_updateDomClassName(){this._domNode.setClassName(this._getClassName())}_getClassName(){let e="cursors-layer";switch(this._selectionIsEmpty||(e+=" has-selection"),this._cursorStyle){case R.m9.Line:e+=" cursor-line-style";break;case R.m9.Block:e+=" cursor-block-style";break;case R.m9.Underline:e+=" cursor-underline-style";break;case R.m9.LineThin:e+=" cursor-line-thin-style";break;case R.m9.BlockOutline:e+=" cursor-block-outline-style";break;case R.m9.UnderlineThin:e+=" cursor-underline-thin-style";break;default:e+=" cursor-line-style"}if(this._blinkingEnabled)switch(this._getCursorBlinking()){case 1:e+=" cursor-blink";break;case 2:e+=" cursor-smooth";break;case 3:e+=" cursor-phase";break;case 4:e+=" cursor-expand";break;default:e+=" cursor-solid"}else e+=" cursor-solid";return"on"!==this._cursorSmoothCaretAnimation&&"explicit"!==this._cursorSmoothCaretAnimation||(e+=" cursor-smooth-caret-animation"),e}_show(){this._primaryCursor.show();for(let e=0,t=this._secondaryCursors.length;e<t;e++)this._secondaryCursors[e].show();this._isVisible=!0}_hide(){this._primaryCursor.hide();for(let e=0,t=this._secondaryCursors.length;e<t;e++)this._secondaryCursors[e].hide();this._isVisible=!1}prepareRender(e){this._primaryCursor.prepareRender(e);for(let t=0,i=this._secondaryCursors.length;t<i;t++)this._secondaryCursors[t].prepareRender(e)}render(e){const t=[];let i=0;const s=this._primaryCursor.render(e);s&&(t[i++]=s);for(let n=0,r=this._secondaryCursors.length;n<r;n++){const s=this._secondaryCursors[n].render(e);s&&(t[i++]=s)}this._renderData=t}getLastRenderData(){return this._renderData}}(0,ke.zy)(((e,t)=>{const i=[{class:".cursor",foreground:Ae.D0,background:Ae.kM},{class:".cursor-primary",foreground:Ae.sC,background:Ae.je},{class:".cursor-secondary",foreground:Ae.we,background:Ae.L0}];for(const s of i){const i=e.getColor(s.foreground);if(i){let n=e.getColor(s.background);n||(n=i.opposite()),t.addRule(`.monaco-editor .cursors-layer ${s.class} { background-color: ${i}; border-color: ${i}; color: ${n}; }`),(0,dt.Bb)(e.type)&&t.addRule(`.monaco-editor .cursors-layer.has-selection ${s.class} { border-left: 1px solid ${n}; border-right: 1px solid ${n}; }`)}}}));const Li=()=>{throw new Error("Invalid change accessor")};class Ti extends z{constructor(e){super(e);const t=this._context.configuration.options,i=t.get(146);this._lineHeight=t.get(67),this._contentWidth=i.contentWidth,this._contentLeft=i.contentLeft,this.domNode=(0,H.Z)(document.createElement("div")),this.domNode.setClassName("view-zones"),this.domNode.setPosition("absolute"),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.marginDomNode=(0,H.Z)(document.createElement("div")),this.marginDomNode.setClassName("margin-view-zones"),this.marginDomNode.setPosition("absolute"),this.marginDomNode.setAttribute("role","presentation"),this.marginDomNode.setAttribute("aria-hidden","true"),this._zones={}}dispose(){super.dispose(),this._zones={}}_recomputeWhitespacesProps(){const e=this._context.viewLayout.getWhitespaces(),t=new Map;for(const s of e)t.set(s.id,s);let i=!1;return this._context.viewModel.changeWhitespace((e=>{const s=Object.keys(this._zones);for(let n=0,r=s.length;n<r;n++){const r=s[n],o=this._zones[r],a=this._computeWhitespaceProps(o.delegate);o.isInHiddenArea=a.isInHiddenArea;const c=t.get(r);!c||c.afterLineNumber===a.afterViewLineNumber&&c.height===a.heightInPx||(e.changeOneWhitespace(r,a.afterViewLineNumber,a.heightInPx),this._safeCallOnComputedHeight(o.delegate,a.heightInPx),i=!0)}})),i}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(146);return this._lineHeight=t.get(67),this._contentWidth=i.contentWidth,this._contentLeft=i.contentLeft,e.hasChanged(67)&&this._recomputeWhitespacesProps(),!0}onLineMappingChanged(e){return this._recomputeWhitespacesProps()}onLinesDeleted(e){return!0}onScrollChanged(e){return e.scrollTopChanged||e.scrollWidthChanged}onZonesChanged(e){return!0}onLinesInserted(e){return!0}_getZoneOrdinal(e){return e.ordinal??e.afterColumn??1e4}_computeWhitespaceProps(e){if(0===e.afterLineNumber)return{isInHiddenArea:!1,afterViewLineNumber:0,heightInPx:this._heightInPixels(e),minWidthInPx:this._minWidthInPixels(e)};let t,i;if("undefined"!==typeof e.afterColumn)t=this._context.viewModel.model.validatePosition({lineNumber:e.afterLineNumber,column:e.afterColumn});else{const i=this._context.viewModel.model.validatePosition({lineNumber:e.afterLineNumber,column:1}).lineNumber;t=new Y.y(i,this._context.viewModel.model.getLineMaxColumn(i))}i=t.column===this._context.viewModel.model.getLineMaxColumn(t.lineNumber)?this._context.viewModel.model.validatePosition({lineNumber:t.lineNumber+1,column:1}):this._context.viewModel.model.validatePosition({lineNumber:t.lineNumber,column:t.column+1});const s=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(t,e.afterColumnAffinity,!0),n=e.showInHiddenAreas||this._context.viewModel.coordinatesConverter.modelPositionIsVisible(i);return{isInHiddenArea:!n,afterViewLineNumber:s.lineNumber,heightInPx:n?this._heightInPixels(e):0,minWidthInPx:this._minWidthInPixels(e)}}changeViewZones(e){let t=!1;return this._context.viewModel.changeWhitespace((i=>{const s={addZone:e=>(t=!0,this._addZone(i,e)),removeZone:e=>{e&&(t=this._removeZone(i,e)||t)},layoutZone:e=>{e&&(t=this._layoutZone(i,e)||t)}};!function(e,t){try{return e(t)}catch(i){(0,l.dz)(i)}}(e,s),s.addZone=Li,s.removeZone=Li,s.layoutZone=Li})),t}_addZone(e,t){const i=this._computeWhitespaceProps(t),s={whitespaceId:e.insertWhitespace(i.afterViewLineNumber,this._getZoneOrdinal(t),i.heightInPx,i.minWidthInPx),delegate:t,isInHiddenArea:i.isInHiddenArea,isVisible:!1,domNode:(0,H.Z)(t.domNode),marginDomNode:t.marginDomNode?(0,H.Z)(t.marginDomNode):null};return this._safeCallOnComputedHeight(s.delegate,i.heightInPx),s.domNode.setPosition("absolute"),s.domNode.domNode.style.width="100%",s.domNode.setDisplay("none"),s.domNode.setAttribute("monaco-view-zone",s.whitespaceId),this.domNode.appendChild(s.domNode),s.marginDomNode&&(s.marginDomNode.setPosition("absolute"),s.marginDomNode.domNode.style.width="100%",s.marginDomNode.setDisplay("none"),s.marginDomNode.setAttribute("monaco-view-zone",s.whitespaceId),this.marginDomNode.appendChild(s.marginDomNode)),this._zones[s.whitespaceId]=s,this.setShouldRender(),s.whitespaceId}_removeZone(e,t){if(this._zones.hasOwnProperty(t)){const i=this._zones[t];return delete this._zones[t],e.removeWhitespace(i.whitespaceId),i.domNode.removeAttribute("monaco-visible-view-zone"),i.domNode.removeAttribute("monaco-view-zone"),i.domNode.domNode.remove(),i.marginDomNode&&(i.marginDomNode.removeAttribute("monaco-visible-view-zone"),i.marginDomNode.removeAttribute("monaco-view-zone"),i.marginDomNode.domNode.remove()),this.setShouldRender(),!0}return!1}_layoutZone(e,t){if(this._zones.hasOwnProperty(t)){const i=this._zones[t],s=this._computeWhitespaceProps(i.delegate);return i.isInHiddenArea=s.isInHiddenArea,e.changeOneWhitespace(i.whitespaceId,s.afterViewLineNumber,s.heightInPx),this._safeCallOnComputedHeight(i.delegate,s.heightInPx),this.setShouldRender(),!0}return!1}shouldSuppressMouseDownOnViewZone(e){if(this._zones.hasOwnProperty(e)){const t=this._zones[e];return Boolean(t.delegate.suppressMouseDown)}return!1}_heightInPixels(e){return"number"===typeof e.heightInPx?e.heightInPx:"number"===typeof e.heightInLines?this._lineHeight*e.heightInLines:this._lineHeight}_minWidthInPixels(e){return"number"===typeof e.minWidthInPx?e.minWidthInPx:0}_safeCallOnComputedHeight(e,t){if("function"===typeof e.onComputedHeight)try{e.onComputedHeight(t)}catch(i){(0,l.dz)(i)}}_safeCallOnDomNodeTop(e,t){if("function"===typeof e.onDomNodeTop)try{e.onDomNodeTop(t)}catch(i){(0,l.dz)(i)}}prepareRender(e){}render(e){const t=e.viewportData.whitespaceViewportData,i={};let s=!1;for(const r of t)this._zones[r.id].isInHiddenArea||(i[r.id]=r,s=!0);const n=Object.keys(this._zones);for(let r=0,o=n.length;r<o;r++){const t=n[r],s=this._zones[t];let o=0,a=0,c="none";i.hasOwnProperty(t)?(o=i[t].verticalOffset-e.bigNumbersDelta,a=i[t].height,c="block",s.isVisible||(s.domNode.setAttribute("monaco-visible-view-zone","true"),s.isVisible=!0),this._safeCallOnDomNodeTop(s.delegate,e.getScrolledTopFromAbsoluteTop(i[t].verticalOffset))):(s.isVisible&&(s.domNode.removeAttribute("monaco-visible-view-zone"),s.isVisible=!1),this._safeCallOnDomNodeTop(s.delegate,e.getScrolledTopFromAbsoluteTop(-1e6))),s.domNode.setTop(o),s.domNode.setHeight(a),s.domNode.setDisplay(c),s.marginDomNode&&(s.marginDomNode.setTop(o),s.marginDomNode.setHeight(a),s.marginDomNode.setDisplay(c))}s&&(this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth)),this.marginDomNode.setWidth(this._contentLeft))}}var xi=i(35600);class ki extends xe{constructor(e){super(),this._context=e,this._options=new Ai(this._context.configuration),this._selection=[],this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=new Ai(this._context.configuration);return this._options.equals(t)?e.hasChanged(146):(this._options=t,!0)}onCursorStateChanged(e){return this._selection=e.selections,"selection"===this._options.renderWhitespace}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}prepareRender(e){if("none"===this._options.renderWhitespace)return void(this._renderResult=null);const t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber-t+1,s=new Array(i);for(let r=0;r<i;r++)s[r]=!0;const n=this._context.viewModel.getMinimapLinesRenderingData(e.viewportData.startLineNumber,e.viewportData.endLineNumber,s);this._renderResult=[];for(let r=e.viewportData.startLineNumber;r<=e.viewportData.endLineNumber;r++){const t=r-e.viewportData.startLineNumber,i=n.data[t];let s=null;if("selection"===this._options.renderWhitespace){const e=this._selection;for(const t of e){if(t.endLineNumber<r||t.startLineNumber>r)continue;const e=t.startLineNumber===r?t.startColumn:i.minColumn,n=t.endLineNumber===r?t.endColumn:i.maxColumn;e<n&&(s||(s=[]),s.push(new xi.MT(e-1,n-1)))}}this._renderResult[t]=this._applyRenderWhitespace(e,r,s,i)}}_applyRenderWhitespace(e,t,i,s){if("selection"===this._options.renderWhitespace&&!i)return"";if("trailing"===this._options.renderWhitespace&&s.continuesWithWrappedLine)return"";const n=this._context.theme.getColor(Ae.w4),r=this._options.renderWithSVG,o=s.content,a=-1===this._options.stopRenderingLineAfter?o.length:Math.min(this._options.stopRenderingLineAfter,o.length),c=s.continuesWithWrappedLine,l=s.minColumn-1,h="boundary"===this._options.renderWhitespace,d="trailing"===this._options.renderWhitespace,u=this._options.lineHeight,g=this._options.middotWidth,p=this._options.wsmiddotWidth,m=this._options.spaceWidth,f=Math.abs(p-m)<Math.abs(g-m)?11825:183,_=this._options.canUseHalfwidthRightwardsArrow;let v,C="",E=!1,b=Le.HG(o);-1===b?(E=!0,b=a,v=a):v=Le.lT(o);let S=0,y=i&&i[S],w=0;for(let R=l;R<a;R++){const s=o.charCodeAt(R);if(y&&R>=y.endOffset&&(S++,y=i&&i[S]),9!==s&&32!==s)continue;if(d&&!E&&R<=v)continue;if(h&&R>=b&&R<=v&&32===s){const e=R-1>=0?o.charCodeAt(R-1):0,t=R+1<a?o.charCodeAt(R+1):0;if(32!==e&&32!==t)continue}if(h&&c&&R===a-1){const e=R-1>=0?o.charCodeAt(R-1):0;if(32===s&&32!==e&&9!==e)continue}if(i&&(!y||y.startOffset>R||y.endOffset<=R))continue;const n=e.visibleRangeForPosition(new Y.y(t,R+1));n&&(r?(w=Math.max(w,n.left),C+=9===s?this._renderArrow(u,m,n.left):`<circle cx="${(n.left+m/2).toFixed(2)}" cy="${(u/2).toFixed(2)}" r="${(m/7).toFixed(2)}" />`):C+=9===s?`<div class="mwh" style="left:${n.left}px;height:${u}px;">${_?String.fromCharCode(65515):String.fromCharCode(8594)}</div>`:`<div class="mwh" style="left:${n.left}px;height:${u}px;">${String.fromCharCode(f)}</div>`)}return r?(w=Math.round(w+m),`<svg style="bottom:0;position:absolute;width:${w}px;height:${u}px" viewBox="0 0 ${w} ${u}" xmlns="http://www.w3.org/2000/svg" fill="${n}">`+C+"</svg>"):C}_renderArrow(e,t,i){const s=e/2,n=i,r={x:0,y:t/7/2},o={x:.8*t,y:r.y},a={x:o.x-.2*o.x,y:o.y+.2*o.x},c={x:a.x+.1*o.x,y:a.y+.1*o.x},l={x:c.x+.35*o.x,y:c.y-.35*o.x};return`<path d="M ${[r,o,a,c,l,{x:l.x,y:-l.y},{x:c.x,y:-c.y},{x:a.x,y:-a.y},{x:o.x,y:-o.y},{x:r.x,y:-r.y}].map((e=>`${(n+e.x).toFixed(2)} ${(s+e.y).toFixed(2)}`)).join(" L ")}" />`}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}class Ai{constructor(e){const t=e.options,i=t.get(50),s=t.get(38);"off"===s?(this.renderWhitespace="none",this.renderWithSVG=!1):"svg"===s?(this.renderWhitespace=t.get(100),this.renderWithSVG=!0):(this.renderWhitespace=t.get(100),this.renderWithSVG=!1),this.spaceWidth=i.spaceWidth,this.middotWidth=i.middotWidth,this.wsmiddotWidth=i.wsmiddotWidth,this.canUseHalfwidthRightwardsArrow=i.canUseHalfwidthRightwardsArrow,this.lineHeight=t.get(67),this.stopRenderingLineAfter=t.get(118)}equals(e){return this.renderWhitespace===e.renderWhitespace&&this.renderWithSVG===e.renderWithSVG&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineHeight===e.lineHeight&&this.stopRenderingLineAfter===e.stopRenderingLineAfter}}class Ni{constructor(e,t,i,s){this.selections=e,this.startLineNumber=0|t.startLineNumber,this.endLineNumber=0|t.endLineNumber,this.relativeVerticalOffset=t.relativeVerticalOffset,this.bigNumbersDelta=0|t.bigNumbersDelta,this.lineHeight=0|t.lineHeight,this.whitespaceViewportData=i,this._model=s,this.visibleRange=new q.Q(t.startLineNumber,this._model.getLineMinColumn(t.startLineNumber),t.endLineNumber,this._model.getLineMaxColumn(t.endLineNumber))}getViewLineRenderingData(e){return this._model.getViewportViewLineRenderingData(this.visibleRange,e)}getDecorationsInViewport(){return this._model.getDecorationsInViewport(this.visibleRange)}}class Ii{get type(){return this._theme.type}get value(){return this._theme}constructor(e){this._theme=e}update(e){this._theme=e}getColor(e){return this._theme.getColor(e)}}class Oi{constructor(e,t,i){this.configuration=e,this.theme=new Ii(t),this.viewModel=i,this.viewLayout=i.viewLayout}addEventHandler(e){this.viewModel.addViewEventHandler(e)}removeEventHandler(e){this.viewModel.removeViewEventHandler(e)}}var Di=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Mi=function(e,t){return function(i,s){t(i,s,e)}};let Pi=class extends V{constructor(e,t,i,s,n,r,o){super(),this._instantiationService=o,this._shouldRecomputeGlyphMarginLanes=!1,this._selections=[new pe.L(1,1,1,1)],this._renderAnimationFrame=null;const a=new Ye(t,s,n,e);this._context=new Oi(t,i,s),this._context.addEventHandler(this),this._viewParts=[],this._textAreaHandler=this._instantiationService.createInstance(Ge,this._context,a,this._createTextAreaHandlerHelper()),this._viewParts.push(this._textAreaHandler),this._linesContent=(0,H.Z)(document.createElement("div")),this._linesContent.setClassName("lines-content monaco-editor-background"),this._linesContent.setPosition("absolute"),this.domNode=(0,H.Z)(document.createElement("div")),this.domNode.setClassName(this._getEditorClassName()),this.domNode.setAttribute("role","code"),this._overflowGuardContainer=(0,H.Z)(document.createElement("div")),G.write(this._overflowGuardContainer,3),this._overflowGuardContainer.setClassName("overflow-guard"),this._scrollbar=new ft(this._context,this._linesContent,this.domNode,this._overflowGuardContainer),this._viewParts.push(this._scrollbar),this._viewLines=new Pt(this._context,this._linesContent),this._viewZones=new Ti(this._context),this._viewParts.push(this._viewZones);const c=new di(this._context);this._viewParts.push(c);const l=new fi(this._context);this._viewParts.push(l);const h=new tt(this._context);this._viewParts.push(h),h.addDynamicOverlay(new gt(this._context)),h.addDynamicOverlay(new bi(this._context)),h.addDynamicOverlay(new kt(this._context)),h.addDynamicOverlay(new mt(this._context)),h.addDynamicOverlay(new ki(this._context));const d=new it(this._context);this._viewParts.push(d),d.addDynamicOverlay(new pt(this._context)),d.addDynamicOverlay(new Ut(this._context)),d.addDynamicOverlay(new Ft(this._context)),d.addDynamicOverlay(new Ne(this._context)),this._glyphMarginWidgets=new St(this._context),this._viewParts.push(this._glyphMarginWidgets);const u=new Ie(this._context);u.getDomNode().appendChild(this._viewZones.marginDomNode),u.getDomNode().appendChild(d.getDomNode()),u.getDomNode().appendChild(this._glyphMarginWidgets.domNode),this._viewParts.push(u),this._contentWidgets=new rt(this._context,this.domNode),this._viewParts.push(this._contentWidgets),this._viewCursors=new Ri(this._context),this._viewParts.push(this._viewCursors),this._overlayWidgets=new li(this._context,this.domNode),this._viewParts.push(this._overlayWidgets);const g=new mi(this._context);this._viewParts.push(g);const p=new nt(this._context);this._viewParts.push(p);const m=new oi(this._context);if(this._viewParts.push(m),c){const e=this._scrollbar.getOverviewRulerLayoutInfo();e.parent.insertBefore(c.getDomNode(),e.insertBefore)}this._linesContent.appendChild(h.getDomNode()),this._linesContent.appendChild(g.domNode),this._linesContent.appendChild(this._viewZones.domNode),this._linesContent.appendChild(this._viewLines.getDomNode()),this._linesContent.appendChild(this._contentWidgets.domNode),this._linesContent.appendChild(this._viewCursors.getDomNode()),this._overflowGuardContainer.appendChild(u.getDomNode()),this._overflowGuardContainer.appendChild(this._scrollbar.getDomNode()),this._overflowGuardContainer.appendChild(l.getDomNode()),this._overflowGuardContainer.appendChild(this._textAreaHandler.textArea),this._overflowGuardContainer.appendChild(this._textAreaHandler.textAreaCover),this._overflowGuardContainer.appendChild(this._overlayWidgets.getDomNode()),this._overflowGuardContainer.appendChild(m.getDomNode()),this._overflowGuardContainer.appendChild(p.domNode),this.domNode.appendChild(this._overflowGuardContainer),r?(r.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode.domNode),r.appendChild(this._overlayWidgets.overflowingOverlayWidgetsDomNode.domNode)):(this.domNode.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode),this.domNode.appendChild(this._overlayWidgets.overflowingOverlayWidgetsDomNode)),this._applyLayout(),this._pointerHandler=this._register(new we(this._context,a,this._createPointerHandlerHelper()))}_computeGlyphMarginLanes(){const e=this._context.viewModel.model,t=this._context.viewModel.glyphLanes;let i=[],s=0;i=i.concat(e.getAllMarginDecorations().map((e=>{const t=e.options.glyphMargin?.position??_t.ZS.Center;return s=Math.max(s,e.range.endLineNumber),{range:e.range,lane:t,persist:e.options.glyphMargin?.persistLane}}))),i=i.concat(this._glyphMarginWidgets.getWidgets().map((t=>{const i=e.validateRange(t.preference.range);return s=Math.max(s,i.endLineNumber),{range:i,lane:t.preference.lane}}))),i.sort(((e,t)=>q.Q.compareRangesUsingStarts(e.range,t.range))),t.reset(s);for(const n of i)t.push(n.lane,n.range,n.persist);return t}_createPointerHandlerHelper(){return{viewDomNode:this.domNode.domNode,linesContentDomNode:this._linesContent.domNode,viewLinesDomNode:this._viewLines.getDomNode().domNode,focusTextArea:()=>{this.focus()},dispatchTextAreaEvent:e=>{this._textAreaHandler.textArea.domNode.dispatchEvent(e)},getLastRenderData:()=>{const e=this._viewCursors.getLastRenderData()||[],t=this._textAreaHandler.getLastRenderData();return new ee(e,t)},renderNow:()=>{this.render(!0,!1)},shouldSuppressMouseDownOnViewZone:e=>this._viewZones.shouldSuppressMouseDownOnViewZone(e),shouldSuppressMouseDownOnWidget:e=>this._contentWidgets.shouldSuppressMouseDownOnWidget(e),getPositionFromDOMInfo:(e,t)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getPositionFromDOMInfo(e,t)),visibleRangeForPosition:(e,t)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(new Y.y(e,t))),getLineWidth:e=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getLineWidth(e))}}_createTextAreaHandlerHelper(){return{visibleRangeForPosition:e=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(e))}}_applyLayout(){const e=this._context.configuration.options.get(146);this.domNode.setWidth(e.width),this.domNode.setHeight(e.height),this._overflowGuardContainer.setWidth(e.width),this._overflowGuardContainer.setHeight(e.height),this._linesContent.setWidth(16777216),this._linesContent.setHeight(16777216)}_getEditorClassName(){const e=this._textAreaHandler.isFocused()?" focused":"";return this._context.configuration.options.get(143)+" "+(0,ke.Pz)(this._context.theme.type)+e}handleEvents(e){super.handleEvents(e),this._scheduleRender()}onConfigurationChanged(e){return this.domNode.setClassName(this._getEditorClassName()),this._applyLayout(),!1}onCursorStateChanged(e){return this._selections=e.selections,!1}onDecorationsChanged(e){return e.affectsGlyphMargin&&(this._shouldRecomputeGlyphMarginLanes=!0),!1}onFocusChanged(e){return this.domNode.setClassName(this._getEditorClassName()),!1}onThemeChanged(e){return this._context.theme.update(e.theme),this.domNode.setClassName(this._getEditorClassName()),!1}dispose(){null!==this._renderAnimationFrame&&(this._renderAnimationFrame.dispose(),this._renderAnimationFrame=null),this._contentWidgets.overflowingContentWidgetsDomNode.domNode.remove(),this._context.removeEventHandler(this),this._viewLines.dispose();for(const e of this._viewParts)e.dispose();super.dispose()}_scheduleRender(){if(this._store.isDisposed)throw new l.D7;if(null===this._renderAnimationFrame){const e=this._createCoordinatedRendering();this._renderAnimationFrame=Ui.INSTANCE.scheduleCoordinatedRendering({window:c.zk(this.domNode?.domNode),prepareRenderText:()=>{if(this._store.isDisposed)throw new l.D7;try{return e.prepareRenderText()}finally{this._renderAnimationFrame=null}},renderText:()=>{if(this._store.isDisposed)throw new l.D7;return e.renderText()},prepareRender:(t,i)=>{if(this._store.isDisposed)throw new l.D7;return e.prepareRender(t,i)},render:(t,i)=>{if(this._store.isDisposed)throw new l.D7;return e.render(t,i)}})}}_flushAccumulatedAndRenderNow(){const e=this._createCoordinatedRendering();Fi((()=>e.prepareRenderText()));const t=Fi((()=>e.renderText()));if(t){const[i,s]=t;Fi((()=>e.prepareRender(i,s))),Fi((()=>e.render(i,s)))}}_getViewPartsToRender(){const e=[];let t=0;for(const i of this._viewParts)i.shouldRender()&&(e[t++]=i);return e}_createCoordinatedRendering(){return{prepareRenderText:()=>{if(this._shouldRecomputeGlyphMarginLanes){this._shouldRecomputeGlyphMarginLanes=!1;const e=this._computeGlyphMarginLanes();this._context.configuration.setGlyphMarginDecorationLaneCount(e.requiredLanes)}B.p.onRenderStart()},renderText:()=>{if(!this.domNode.domNode.isConnected)return null;let e=this._getViewPartsToRender();if(!this._viewLines.shouldRender()&&0===e.length)return null;const t=this._context.viewLayout.getLinesViewportData();this._context.viewModel.setViewport(t.startLineNumber,t.endLineNumber,t.centeredLineNumber);const i=new Ni(this._selections,t,this._context.viewLayout.getWhitespaceViewportData(),this._context.viewModel);return this._contentWidgets.shouldRender()&&this._contentWidgets.onBeforeRender(i),this._viewLines.shouldRender()&&(this._viewLines.renderText(i),this._viewLines.onDidRender(),e=this._getViewPartsToRender()),[e,new je.eh(this._context.viewLayout,i,this._viewLines)]},prepareRender:(e,t)=>{for(const i of e)i.prepareRender(t)},render:(e,t)=>{for(const i of e)i.render(t),i.onDidRender()}}}delegateVerticalScrollbarPointerDown(e){this._scrollbar.delegateVerticalScrollbarPointerDown(e)}delegateScrollFromMouseWheelEvent(e){this._scrollbar.delegateScrollFromMouseWheelEvent(e)}restoreState(e){this._context.viewModel.viewLayout.setScrollPosition({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft},1),this._context.viewModel.visibleLinesStabilized()}getOffsetForColumn(e,t){const i=this._context.viewModel.model.validatePosition({lineNumber:e,column:t}),s=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(i);this._flushAccumulatedAndRenderNow();const n=this._viewLines.visibleRangeForPosition(new Y.y(s.lineNumber,s.column));return n?n.left:-1}getTargetAtClientPoint(e,t){const i=this._pointerHandler.getTargetAtClientPoint(e,t);return i?st.convertViewToModelMouseTarget(i,this._context.viewModel.coordinatesConverter):null}createOverviewRuler(e){return new pi(this._context,e)}change(e){this._viewZones.changeViewZones(e),this._scheduleRender()}render(e,t){if(t){this._viewLines.forceShouldRender();for(const e of this._viewParts)e.forceShouldRender()}e?this._flushAccumulatedAndRenderNow():this._scheduleRender()}writeScreenReaderContent(e){this._textAreaHandler.writeScreenReaderContent(e)}focus(){this._textAreaHandler.focusTextArea()}isFocused(){return this._textAreaHandler.isFocused()}setAriaOptions(e){this._textAreaHandler.setAriaOptions(e)}addContentWidget(e){this._contentWidgets.addWidget(e.widget),this.layoutContentWidget(e),this._scheduleRender()}layoutContentWidget(e){this._contentWidgets.setWidgetPosition(e.widget,e.position?.position??null,e.position?.secondaryPosition??null,e.position?.preference??null,e.position?.positionAffinity??null),this._scheduleRender()}removeContentWidget(e){this._contentWidgets.removeWidget(e.widget),this._scheduleRender()}addOverlayWidget(e){this._overlayWidgets.addWidget(e.widget),this.layoutOverlayWidget(e),this._scheduleRender()}layoutOverlayWidget(e){this._overlayWidgets.setWidgetPosition(e.widget,e.position)&&this._scheduleRender()}removeOverlayWidget(e){this._overlayWidgets.removeWidget(e.widget),this._scheduleRender()}addGlyphMarginWidget(e){this._glyphMarginWidgets.addWidget(e.widget),this._shouldRecomputeGlyphMarginLanes=!0,this._scheduleRender()}layoutGlyphMarginWidget(e){const t=e.position;this._glyphMarginWidgets.setWidgetPosition(e.widget,t)&&(this._shouldRecomputeGlyphMarginLanes=!0,this._scheduleRender())}removeGlyphMarginWidget(e){this._glyphMarginWidgets.removeWidget(e.widget),this._shouldRecomputeGlyphMarginLanes=!0,this._scheduleRender()}};function Fi(e){try{return e()}catch(t){return(0,l.dz)(t),null}}Pi=Di([Mi(6,He._Y)],Pi);class Ui{static{this.INSTANCE=new Ui}constructor(){this._coordinatedRenderings=[],this._animationFrameRunners=new Map}scheduleCoordinatedRendering(e){return this._coordinatedRenderings.push(e),this._scheduleRender(e.window),{dispose:()=>{const t=this._coordinatedRenderings.indexOf(e);if(-1!==t&&(this._coordinatedRenderings.splice(t,1),0===this._coordinatedRenderings.length)){for(const[e,t]of this._animationFrameRunners)t.dispose();this._animationFrameRunners.clear()}}}}_scheduleRender(e){if(!this._animationFrameRunners.has(e)){const t=()=>{this._animationFrameRunners.delete(e),this._onRenderScheduled()};this._animationFrameRunners.set(e,c.Oq(e,t,100))}}_onRenderScheduled(){const e=this._coordinatedRenderings.slice(0);this._coordinatedRenderings=[];for(const i of e)Fi((()=>i.prepareRenderText()));const t=[];for(let i=0,s=e.length;i<s;i++){const s=e[i];t[i]=Fi((()=>s.renderText()))}for(let i=0,s=e.length;i<s;i++){const s=e[i],n=t[i];if(!n)continue;const[r,o]=n;Fi((()=>s.prepareRender(r,o)))}for(let i=0,s=e.length;i<s;i++){const s=e[i],n=t[i];if(!n)continue;const[r,o]=n;Fi((()=>s.render(r,o)))}}}var Hi=i(66782);class Bi{constructor(e,t,i,s,n){this.injectionOffsets=e,this.injectionOptions=t,this.breakOffsets=i,this.breakOffsetsVisibleColumn=s,this.wrappedTextIndentLength=n}getOutputLineCount(){return this.breakOffsets.length}getMinOutputOffset(e){return e>0?this.wrappedTextIndentLength:0}getLineLength(e){const t=e>0?this.breakOffsets[e-1]:0;let i=this.breakOffsets[e]-t;return e>0&&(i+=this.wrappedTextIndentLength),i}getMaxOutputOffset(e){return this.getLineLength(e)}translateToInputOffset(e,t){e>0&&(t=Math.max(0,t-this.wrappedTextIndentLength));let i=0===e?t:this.breakOffsets[e-1]+t;if(null!==this.injectionOffsets)for(let s=0;s<this.injectionOffsets.length&&i>this.injectionOffsets[s];s++)i<this.injectionOffsets[s]+this.injectionOptions[s].content.length?i=this.injectionOffsets[s]:i-=this.injectionOptions[s].content.length;return i}translateToOutputPosition(e,t=2){let i=e;if(null!==this.injectionOffsets)for(let s=0;s<this.injectionOffsets.length&&!(e<this.injectionOffsets[s])&&(1===t||e!==this.injectionOffsets[s]);s++)i+=this.injectionOptions[s].content.length;return this.offsetInInputWithInjectionsToOutputPosition(i,t)}offsetInInputWithInjectionsToOutputPosition(e,t=2){let i=0,s=this.breakOffsets.length-1,n=0,r=0;for(;i<=s;){n=i+(s-i)/2|0;const o=this.breakOffsets[n];if(r=n>0?this.breakOffsets[n-1]:0,0===t)if(e<=r)s=n-1;else{if(!(e>o))break;i=n+1}else if(e<r)s=n-1;else{if(!(e>=o))break;i=n+1}}let o=e-r;return n>0&&(o+=this.wrappedTextIndentLength),new zi(n,o)}normalizeOutputPosition(e,t,i){if(null!==this.injectionOffsets){const s=this.outputPositionToOffsetInInputWithInjections(e,t),n=this.normalizeOffsetInInputWithInjectionsAroundInjections(s,i);if(n!==s)return this.offsetInInputWithInjectionsToOutputPosition(n,i)}if(0===i){if(e>0&&t===this.getMinOutputOffset(e))return new zi(e-1,this.getMaxOutputOffset(e-1))}else if(1===i){if(e<this.getOutputLineCount()-1&&t===this.getMaxOutputOffset(e))return new zi(e+1,this.getMinOutputOffset(e+1))}return new zi(e,t)}outputPositionToOffsetInInputWithInjections(e,t){e>0&&(t=Math.max(0,t-this.wrappedTextIndentLength));return(e>0?this.breakOffsets[e-1]:0)+t}normalizeOffsetInInputWithInjectionsAroundInjections(e,t){const i=this.getInjectedTextAtOffset(e);if(!i)return e;if(2===t){if(e===i.offsetInInputWithInjections+i.length&&Wi(this.injectionOptions[i.injectedTextIndex].cursorStops))return i.offsetInInputWithInjections+i.length;{let e=i.offsetInInputWithInjections;if(Vi(this.injectionOptions[i.injectedTextIndex].cursorStops))return e;let t=i.injectedTextIndex-1;for(;t>=0&&this.injectionOffsets[t]===this.injectionOffsets[i.injectedTextIndex]&&!Wi(this.injectionOptions[t].cursorStops)&&(e-=this.injectionOptions[t].content.length,!Vi(this.injectionOptions[t].cursorStops));)t--;return e}}if(1===t||4===t){let e=i.offsetInInputWithInjections+i.length,t=i.injectedTextIndex;for(;t+1<this.injectionOffsets.length&&this.injectionOffsets[t+1]===this.injectionOffsets[t];)e+=this.injectionOptions[t+1].content.length,t++;return e}if(0===t||3===t){let e=i.offsetInInputWithInjections,t=i.injectedTextIndex;for(;t-1>=0&&this.injectionOffsets[t-1]===this.injectionOffsets[t];)e-=this.injectionOptions[t-1].content.length,t--;return e}(0,Hi.xb)(t)}getInjectedText(e,t){const i=this.outputPositionToOffsetInInputWithInjections(e,t),s=this.getInjectedTextAtOffset(i);return s?{options:this.injectionOptions[s.injectedTextIndex]}:null}getInjectedTextAtOffset(e){const t=this.injectionOffsets,i=this.injectionOptions;if(null!==t){let s=0;for(let n=0;n<t.length;n++){const r=i[n].content.length,o=t[n]+s,a=t[n]+s+r;if(o>e)break;if(e<=a)return{injectedTextIndex:n,offsetInInputWithInjections:o,length:r};s+=r}}}}function Wi(e){return null===e||void 0===e||(e===_t.VW.Right||e===_t.VW.Both)}function Vi(e){return null===e||void 0===e||(e===_t.VW.Left||e===_t.VW.Both)}class zi{constructor(e,t){this.outputLineIndex=e,this.outputOffset=t}toString(){return`${this.outputLineIndex}:${this.outputOffset}`}toPosition(e){return new Y.y(e+this.outputLineIndex,this.outputOffset+1)}}var Gi=i(64727);const ji=(0,qe.H)("domLineBreaksComputer",{createHTML:e=>e});class Ki{static create(e){return new Ki(new WeakRef(e))}constructor(e){this.targetWindow=e}createLineBreaksComputer(e,t,i,s,n){const r=[],o=[];return{addRequest:(e,t,i)=>{r.push(e),o.push(t)},finalize:()=>function(e,t,i,s,n,r,o,a){function c(e){const i=a[e];if(i){const s=Gi.uK.applyInjectedText(t[e],i),n=i.map((e=>e.options)),r=i.map((e=>e.column-1));return new Bi(r,n,[s.length],[],0)}return null}if(-1===n){const e=[];for(let i=0,s=t.length;i<s;i++)e[i]=c(i);return e}const l=Math.round(n*i.typicalHalfwidthCharacterWidth),h=3===r?2:2===r?1:0,d=Math.round(s*h),u=Math.ceil(i.spaceWidth*d),p=document.createElement("div");(0,g.M)(p,i);const m=new $e.fe(1e4),f=[],_=[],v=[],C=[],E=[];for(let g=0;g<t.length;g++){const e=Gi.uK.applyInjectedText(t[g],a[g]);let n=0,o=0,c=l;if(0!==r)if(n=Le.HG(e),-1===n)n=0;else{for(let i=0;i<n;i++){o+=9===e.charCodeAt(i)?s-o%s:1}const t=Math.ceil(i.spaceWidth*o);t+i.typicalFullwidthCharacterWidth>l?(n=0,o=0):c=l-t}const h=e.substr(n),d=Yi(h,o,s,c,m,u);f[g]=n,_[g]=o,v[g]=h,C[g]=d[0],E[g]=d[1]}const b=m.build(),S=ji?.createHTML(b)??b;p.innerHTML=S,p.style.position="absolute",p.style.top="10000","keepAll"===o?(p.style.wordBreak="keep-all",p.style.overflowWrap="anywhere"):(p.style.wordBreak="inherit",p.style.overflowWrap="break-word");e.document.body.appendChild(p);const y=document.createRange(),w=Array.prototype.slice.call(p.children,0),R=[];for(let g=0;g<t.length;g++){const e=qi(y,w[g],v[g],C[g]);if(null===e){R[g]=c(g);continue}const t=f[g],i=_[g]+d,s=E[g],n=[];for(let a=0,c=e.length;a<c;a++)n[a]=s[e[a]];if(0!==t)for(let a=0,c=e.length;a<c;a++)e[a]+=t;let r,o;const l=a[g];l?(r=l.map((e=>e.options)),o=l.map((e=>e.column-1))):(r=null,o=null),R[g]=new Bi(o,r,e,n,i)}return p.remove(),R}((0,Lt.eU)(this.targetWindow.deref()),r,e,t,i,s,n,o)}}}function Yi(e,t,i,s,n,r){if(0!==r){const e=String(r);n.appendString('<div style="text-indent: -'),n.appendString(e),n.appendString("px; padding-left: "),n.appendString(e),n.appendString("px; box-sizing: border-box; width:")}else n.appendString('<div style="width:');n.appendString(String(s)),n.appendString('px;">');const o=e.length;let a=t,c=0;const l=[],h=[];let d=0<o?e.charCodeAt(0):0;n.appendString("<span>");for(let u=0;u<o;u++){0!==u&&u%16384===0&&n.appendString("</span><span>"),l[u]=c,h[u]=a;const t=d;d=u+1<o?e.charCodeAt(u+1):0;let s=1,r=1;switch(t){case 9:s=i-a%i,r=s;for(let e=1;e<=s;e++)e<s?n.appendCharCode(160):n.appendASCIICharCode(32);break;case 32:32===d?n.appendCharCode(160):n.appendASCIICharCode(32);break;case 60:n.appendString("<");break;case 62:n.appendString(">");break;case 38:n.appendString("&");break;case 0:n.appendString("�");break;case 65279:case 8232:case 8233:case 133:n.appendCharCode(65533);break;default:Le.ne(t)&&r++,t<32?n.appendCharCode(9216+t):n.appendCharCode(t)}c+=s,a+=r}return n.appendString("</span>"),l[e.length]=c,h[e.length]=a,n.appendString("</div>"),[l,h]}function qi(e,t,i,s){if(i.length<=1)return null;const n=Array.prototype.slice.call(t.children,0),r=[];try{$i(e,n,s,0,null,i.length-1,null,r)}catch(o){return console.log(o),null}return 0===r.length?null:(r.push(i.length),r)}function $i(e,t,i,s,n,r,o,a){if(s===r)return;if(n=n||Qi(e,t,i[s],i[s+1]),o=o||Qi(e,t,i[r],i[r+1]),Math.abs(n[0].top-o[0].top)<=.1)return;if(s+1===r)return void a.push(r);const c=s+(r-s)/2|0,l=Qi(e,t,i[c],i[c+1]);$i(e,t,i,s,n,c,l,a),$i(e,t,i,c,l,r,o,a)}function Qi(e,t,i,s){return e.setStart(t[i/16384|0].firstChild,i%16384),e.setEnd(t[s/16384|0].firstChild,s%16384),e.getClientRects()}class Xi extends d.jG{constructor(){super(),this._editor=null,this._instantiationService=null,this._instances=this._register(new d.$w),this._pending=new Map,this._finishedInstantiation=[],this._finishedInstantiation[0]=!1,this._finishedInstantiation[1]=!1,this._finishedInstantiation[2]=!1,this._finishedInstantiation[3]=!1}initialize(e,t,i){this._editor=e,this._instantiationService=i;for(const s of t)this._pending.has(s.id)?(0,l.dz)(new Error(`Cannot have two contributions with the same id ${s.id}`)):this._pending.set(s.id,s);this._instantiateSome(0),this._register((0,c.U3)((0,c.zk)(this._editor.getDomNode()),(()=>{this._instantiateSome(1)}))),this._register((0,c.U3)((0,c.zk)(this._editor.getDomNode()),(()=>{this._instantiateSome(2)}))),this._register((0,c.U3)((0,c.zk)(this._editor.getDomNode()),(()=>{this._instantiateSome(3)}),5e3))}saveViewState(){const e={};for(const[t,i]of this._instances)"function"===typeof i.saveViewState&&(e[t]=i.saveViewState());return e}restoreViewState(e){for(const[t,i]of this._instances)"function"===typeof i.restoreViewState&&i.restoreViewState(e[t])}get(e){return this._instantiateById(e),this._instances.get(e)||null}onBeforeInteractionEvent(){this._instantiateSome(2)}onAfterModelAttached(){return(0,c.U3)((0,c.zk)(this._editor?.getDomNode()),(()=>{this._instantiateSome(1)}),50)}_instantiateSome(e){if(this._finishedInstantiation[e])return;this._finishedInstantiation[e]=!0;const t=this._findPendingContributionsByInstantiation(e);for(const i of t)this._instantiateById(i.id)}_findPendingContributionsByInstantiation(e){const t=[];for(const[,i]of this._pending)i.instantiation===e&&t.push(i);return t}_instantiateById(e){const t=this._pending.get(e);if(t){if(this._pending.delete(e),!this._instantiationService||!this._editor)throw new Error("Cannot instantiate contributions before being initialized!");try{const e=this._instantiationService.createInstance(t.ctor,this._editor);this._instances.set(t.id,e),"function"===typeof e.restoreViewState&&0!==t.instantiation&&console.warn(`Editor contribution '${t.id}' should be eager instantiated because it uses saveViewState / restoreViewState.`)}catch(i){(0,l.dz)(i)}}}}var Zi=i(97681),Ji=i(29611),es=i(23452),ts=i(60002),is=i(17469),ss=i(87289),ns=i(56942),rs=i(60534);class os{static create(e){return new os(e.get(135),e.get(134))}constructor(e,t){this.classifier=new as(e,t)}createLineBreaksComputer(e,t,i,s,n){const r=[],o=[],a=[];return{addRequest:(e,t,i)=>{r.push(e),o.push(t),a.push(i)},finalize:()=>{const c=e.typicalFullwidthCharacterWidth/e.typicalHalfwidthCharacterWidth,l=[];for(let e=0,h=r.length;e<h;e++){const h=o[e],d=a[e];!d||d.injectionOptions||h?l[e]=ds(this.classifier,r[e],h,t,i,c,s,n):l[e]=hs(this.classifier,d,r[e],t,i,c,s,n)}return cs.length=0,ls.length=0,l}}}}class as extends rs.V{constructor(e,t){super(0);for(let i=0;i<e.length;i++)this.set(e.charCodeAt(i),1);for(let i=0;i<t.length;i++)this.set(t.charCodeAt(i),2)}get(e){return e>=0&&e<256?this._asciiMap[e]:e>=12352&&e<=12543||e>=13312&&e<=19903||e>=19968&&e<=40959?3:this._map.get(e)||this._defaultValue}}let cs=[],ls=[];function hs(e,t,i,s,n,r,o,a){if(-1===n)return null;const c=i.length;if(c<=1)return null;const l="keepAll"===a,h=t.breakOffsets,d=t.breakOffsetsVisibleColumn,u=ms(i,s,n,r,o),g=n-u,p=cs,m=ls;let f=0,_=0,v=0,C=n;const E=h.length;let b=0;if(b>=0){let e=Math.abs(d[b]-C);for(;b+1<E;){const t=Math.abs(d[b+1]-C);if(t>=e)break;e=t,b++}}for(;b<E;){let t=b<0?0:h[b],n=b<0?0:d[b];_>t&&(t=_,n=v);let o=0,a=0,u=0,S=0;if(n<=C){let v=n,E=0===t?0:i.charCodeAt(t-1),b=0===t?0:e.get(E),y=!0;for(let n=t;n<c;n++){const t=n,c=i.charCodeAt(n);let h,d;if(Le.pc(c)?(n++,h=0,d=2):(h=e.get(c),d=us(c,v,s,r)),t>_&&ps(E,b,c,h,l)&&(o=t,a=v),v+=d,v>C){t>_?(u=t,S=v-d):(u=n+1,S=v),v-a>g&&(o=0),y=!1;break}E=c,b=h}if(y){f>0&&(p[f]=h[h.length-1],m[f]=d[h.length-1],f++);break}}if(0===o){let c=n,h=i.charCodeAt(t),d=e.get(h),p=!1;for(let s=t-1;s>=_;s--){const t=s+1,n=i.charCodeAt(s);if(9===n){p=!0;break}let m,f;if(Le.LJ(n)?(s--,m=0,f=2):(m=e.get(n),f=Le.ne(n)?r:1),c<=C){if(0===u&&(u=t,S=c),c<=C-g)break;if(ps(n,m,h,d,l)){o=t,a=c;break}}c-=f,h=n,d=m}if(0!==o){const e=g-(S-a);if(e<=s){const t=i.charCodeAt(u);let n;n=Le.pc(t)?2:us(t,S,s,r),e-n<0&&(o=0)}}if(p){b--;continue}}if(0===o&&(o=u,a=S),o<=_){const e=i.charCodeAt(_);Le.pc(e)?(o=_+2,a=v+2):(o=_+1,a=v+us(e,v,s,r))}for(_=o,p[f]=o,v=a,m[f]=a,f++,C=a+g;b<0||b<E&&d[b]<a;)b++;let y=Math.abs(d[b]-C);for(;b+1<E;){const e=Math.abs(d[b+1]-C);if(e>=y)break;y=e,b++}}return 0===f?null:(p.length=f,m.length=f,cs=t.breakOffsets,ls=t.breakOffsetsVisibleColumn,t.breakOffsets=p,t.breakOffsetsVisibleColumn=m,t.wrappedTextIndentLength=u,t)}function ds(e,t,i,s,n,r,o,a){const c=Gi.uK.applyInjectedText(t,i);let l,h;if(i&&i.length>0?(l=i.map((e=>e.options)),h=i.map((e=>e.column-1))):(l=null,h=null),-1===n)return l?new Bi(h,l,[c.length],[],0):null;const d=c.length;if(d<=1)return l?new Bi(h,l,[c.length],[],0):null;const u="keepAll"===a,g=ms(c,s,n,r,o),p=n-g,m=[],f=[];let _=0,v=0,C=0,E=n,b=c.charCodeAt(0),S=e.get(b),y=us(b,0,s,r),w=1;Le.pc(b)&&(y+=1,b=c.charCodeAt(1),S=e.get(b),w++);for(let R=w;R<d;R++){const t=R,i=c.charCodeAt(R);let n,o;Le.pc(i)?(R++,n=0,o=2):(n=e.get(i),o=us(i,y,s,r)),ps(b,S,i,n,u)&&(v=t,C=y),y+=o,y>E&&((0===v||y-C>p)&&(v=t,C=y-o),m[_]=v,f[_]=C,_++,E=C+p,v=0),b=i,S=n}return 0!==_||i&&0!==i.length?(m[_]=d,f[_]=y,new Bi(h,l,m,f,g)):null}function us(e,t,i,s){return 9===e?i-t%i:Le.ne(e)||e<32?s:1}function gs(e,t){return t-e%t}function ps(e,t,i,s,n){return 32!==i&&(2===t&&2!==s||1!==t&&1===s||!n&&3===t&&2!==s||!n&&3===s&&1!==t)}function ms(e,t,i,s,n){let r=0;if(0!==n){const o=Le.HG(e);if(-1!==o){for(let i=0;i<o;i++){r+=9===e.charCodeAt(i)?gs(r,t):1}const a=3===n?2:2===n?1:0;for(let e=0;e<a;e++){r+=gs(r,t)}r+s>i&&(r=0)}}return r}var fs=i(46041),_s=i(32799);class vs{constructor(e){this._selTrackedRange=null,this._trackSelection=!0,this._setState(e,new _s.mG(new q.Q(1,1,1,1),0,0,new Y.y(1,1),0),new _s.mG(new q.Q(1,1,1,1),0,0,new Y.y(1,1),0))}dispose(e){this._removeTrackedRange(e)}startTrackingSelection(e){this._trackSelection=!0,this._updateTrackedRange(e)}stopTrackingSelection(e){this._trackSelection=!1,this._removeTrackedRange(e)}_updateTrackedRange(e){this._trackSelection&&(this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,this.modelState.selection,0))}_removeTrackedRange(e){this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,null,0)}asCursorState(){return new _s.MF(this.modelState,this.viewState)}readSelectionFromMarkers(e){const t=e.model._getTrackedRange(this._selTrackedRange);return this.modelState.selection.isEmpty()&&!t.isEmpty()?pe.L.fromRange(t.collapseToEnd(),this.modelState.selection.getDirection()):pe.L.fromRange(t,this.modelState.selection.getDirection())}ensureValidState(e){this._setState(e,this.modelState,this.viewState)}setState(e,t,i){this._setState(e,t,i)}static _validatePositionWithCache(e,t,i,s){return t.equals(i)?s:e.normalizePosition(t,2)}static _validateViewState(e,t){const i=t.position,s=t.selectionStart.getStartPosition(),n=t.selectionStart.getEndPosition(),r=e.normalizePosition(i,2),o=this._validatePositionWithCache(e,s,i,r),a=this._validatePositionWithCache(e,n,s,o);return i.equals(r)&&s.equals(o)&&n.equals(a)?t:new _s.mG(q.Q.fromPositions(o,a),t.selectionStartKind,t.selectionStartLeftoverVisibleColumns+s.column-o.column,r,t.leftoverVisibleColumns+i.column-r.column)}_setState(e,t,i){if(i&&(i=vs._validateViewState(e.viewModel,i)),t){const i=e.model.validateRange(t.selectionStart),s=t.selectionStart.equalsRange(i)?t.selectionStartLeftoverVisibleColumns:0,n=e.model.validatePosition(t.position),r=t.position.equals(n)?t.leftoverVisibleColumns:0;t=new _s.mG(i,t.selectionStartKind,s,n,r)}else{if(!i)return;const s=e.model.validateRange(e.coordinatesConverter.convertViewRangeToModelRange(i.selectionStart)),n=e.model.validatePosition(e.coordinatesConverter.convertViewPositionToModelPosition(i.position));t=new _s.mG(s,i.selectionStartKind,i.selectionStartLeftoverVisibleColumns,n,i.leftoverVisibleColumns)}if(i){const s=e.coordinatesConverter.validateViewRange(i.selectionStart,t.selectionStart),n=e.coordinatesConverter.validateViewPosition(i.position,t.position);i=new _s.mG(s,t.selectionStartKind,t.selectionStartLeftoverVisibleColumns,n,t.leftoverVisibleColumns)}else{const s=e.coordinatesConverter.convertModelPositionToViewPosition(new Y.y(t.selectionStart.startLineNumber,t.selectionStart.startColumn)),n=e.coordinatesConverter.convertModelPositionToViewPosition(new Y.y(t.selectionStart.endLineNumber,t.selectionStart.endColumn)),r=new q.Q(s.lineNumber,s.column,n.lineNumber,n.column),o=e.coordinatesConverter.convertModelPositionToViewPosition(t.position);i=new _s.mG(r,t.selectionStartKind,t.selectionStartLeftoverVisibleColumns,o,t.leftoverVisibleColumns)}this.modelState=t,this.viewState=i,this._updateTrackedRange(e)}}class Cs{constructor(e){this.context=e,this.cursors=[new vs(e)],this.lastAddedCursorIndex=0}dispose(){for(const e of this.cursors)e.dispose(this.context)}startTrackingSelections(){for(const e of this.cursors)e.startTrackingSelection(this.context)}stopTrackingSelections(){for(const e of this.cursors)e.stopTrackingSelection(this.context)}updateContext(e){this.context=e}ensureValidState(){for(const e of this.cursors)e.ensureValidState(this.context)}readSelectionFromMarkers(){return this.cursors.map((e=>e.readSelectionFromMarkers(this.context)))}getAll(){return this.cursors.map((e=>e.asCursorState()))}getViewPositions(){return this.cursors.map((e=>e.viewState.position))}getTopMostViewPosition(){return(0,fs.kh)(this.cursors,(0,m.VE)((e=>e.viewState.position),Y.y.compare)).viewState.position}getBottomMostViewPosition(){return(0,fs.ot)(this.cursors,(0,m.VE)((e=>e.viewState.position),Y.y.compare)).viewState.position}getSelections(){return this.cursors.map((e=>e.modelState.selection))}getViewSelections(){return this.cursors.map((e=>e.viewState.selection))}setSelections(e){this.setStates(_s.MF.fromModelSelections(e))}getPrimaryCursor(){return this.cursors[0].asCursorState()}setStates(e){null!==e&&(this.cursors[0].setState(this.context,e[0].modelState,e[0].viewState),this._setSecondaryStates(e.slice(1)))}_setSecondaryStates(e){const t=this.cursors.length-1,i=e.length;if(t<i){const e=i-t;for(let t=0;t<e;t++)this._addSecondaryCursor()}else if(t>i){const e=t-i;for(let t=0;t<e;t++)this._removeSecondaryCursor(this.cursors.length-2)}for(let s=0;s<i;s++)this.cursors[s+1].setState(this.context,e[s].modelState,e[s].viewState)}killSecondaryCursors(){this._setSecondaryStates([])}_addSecondaryCursor(){this.cursors.push(new vs(this.context)),this.lastAddedCursorIndex=this.cursors.length-1}getLastAddedCursorIndex(){return 1===this.cursors.length||0===this.lastAddedCursorIndex?0:this.lastAddedCursorIndex}_removeSecondaryCursor(e){this.lastAddedCursorIndex>=e+1&&this.lastAddedCursorIndex--,this.cursors[e+1].dispose(this.context),this.cursors.splice(e+1,1)}normalize(){if(1===this.cursors.length)return;const e=this.cursors.slice(0),t=[];for(let i=0,s=e.length;i<s;i++)t.push({index:i,selection:e[i].modelState.selection});t.sort((0,m.VE)((e=>e.selection),q.Q.compareRangesUsingStarts));for(let i=0;i<t.length-1;i++){const s=t[i],n=t[i+1],r=s.selection,o=n.selection;if(!this.context.cursorConfig.multiCursorMergeOverlapping)continue;let a;if(a=o.isEmpty()||r.isEmpty()?o.getStartPosition().isBeforeOrEqual(r.getEndPosition()):o.getStartPosition().isBefore(r.getEndPosition()),a){const r=s.index<n.index?i:i+1,o=s.index<n.index?i+1:i,a=t[o].index,c=t[r].index,l=t[o].selection,h=t[r].selection;if(!l.equalsSelection(h)){const i=l.plusRange(h),s=l.selectionStartLineNumber===l.startLineNumber&&l.selectionStartColumn===l.startColumn,n=h.selectionStartLineNumber===h.startLineNumber&&h.selectionStartColumn===h.startColumn;let o,d;a===this.lastAddedCursorIndex?(o=s,this.lastAddedCursorIndex=c):o=n,d=o?new pe.L(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn):new pe.L(i.endLineNumber,i.endColumn,i.startLineNumber,i.startColumn),t[r].selection=d;const u=_s.MF.fromModelSelection(d);e[c].setState(this.context,u.modelState,u.viewState)}for(const e of t)e.index>a&&e.index--;e.splice(a,1),t.splice(o,1),this._removeSecondaryCursor(a-1),i--}}}}class Es{constructor(e,t,i,s){this._cursorContextBrand=void 0,this.model=e,this.viewModel=t,this.coordinatesConverter=i,this.cursorConfig=s}}var bs=i(1226),Ss=i(49265),ys=i(26685);class ws{constructor(){this.type=0}}class Rs{constructor(){this.type=1}}class Ls{constructor(e){this.type=2,this._source=e}hasChanged(e){return this._source.hasChanged(e)}}class Ts{constructor(e,t,i){this.selections=e,this.modelSelections=t,this.reason=i,this.type=3}}class xs{constructor(e){this.type=4,e?(this.affectsMinimap=e.affectsMinimap,this.affectsOverviewRuler=e.affectsOverviewRuler,this.affectsGlyphMargin=e.affectsGlyphMargin,this.affectsLineNumber=e.affectsLineNumber):(this.affectsMinimap=!0,this.affectsOverviewRuler=!0,this.affectsGlyphMargin=!0,this.affectsLineNumber=!0)}}class ks{constructor(){this.type=5}}class As{constructor(e){this.type=6,this.isFocused=e}}class Ns{constructor(){this.type=7}}class Is{constructor(){this.type=8}}class Os{constructor(e,t){this.fromLineNumber=e,this.count=t,this.type=9}}class Ds{constructor(e,t){this.type=10,this.fromLineNumber=e,this.toLineNumber=t}}class Ms{constructor(e,t){this.type=11,this.fromLineNumber=e,this.toLineNumber=t}}class Ps{constructor(e,t,i,s,n,r,o){this.source=e,this.minimalReveal=t,this.range=i,this.selections=s,this.verticalType=n,this.revealHorizontal=r,this.scrollType=o,this.type=12}}class Fs{constructor(e){this.type=13,this.scrollWidth=e.scrollWidth,this.scrollLeft=e.scrollLeft,this.scrollHeight=e.scrollHeight,this.scrollTop=e.scrollTop,this.scrollWidthChanged=e.scrollWidthChanged,this.scrollLeftChanged=e.scrollLeftChanged,this.scrollHeightChanged=e.scrollHeightChanged,this.scrollTopChanged=e.scrollTopChanged}}class Us{constructor(e){this.theme=e,this.type=14}}class Hs{constructor(e){this.type=15,this.ranges=e}}class Bs{constructor(){this.type=16}}class Ws{constructor(){this.type=17}}class Vs extends d.jG{constructor(){super(),this._onEvent=this._register(new h.vl),this.onEvent=this._onEvent.event,this._eventHandlers=[],this._viewEventQueue=null,this._isConsumingViewEventQueue=!1,this._collector=null,this._collectorCnt=0,this._outgoingEvents=[]}emitOutgoingEvent(e){this._addOutgoingEvent(e),this._emitOutgoingEvents()}_addOutgoingEvent(e){for(let t=0,i=this._outgoingEvents.length;t<i;t++){const i=this._outgoingEvents[t].kind===e.kind?this._outgoingEvents[t].attemptToMerge(e):null;if(i)return void(this._outgoingEvents[t]=i)}this._outgoingEvents.push(e)}_emitOutgoingEvents(){for(;this._outgoingEvents.length>0;){if(this._collector||this._isConsumingViewEventQueue)return;const e=this._outgoingEvents.shift();e.isNoOp()||this._onEvent.fire(e)}}addViewEventHandler(e){for(let t=0,i=this._eventHandlers.length;t<i;t++)this._eventHandlers[t]===e&&console.warn("Detected duplicate listener in ViewEventDispatcher",e);this._eventHandlers.push(e)}removeViewEventHandler(e){for(let t=0;t<this._eventHandlers.length;t++)if(this._eventHandlers[t]===e){this._eventHandlers.splice(t,1);break}}beginEmitViewEvents(){return this._collectorCnt++,1===this._collectorCnt&&(this._collector=new zs),this._collector}endEmitViewEvents(){if(this._collectorCnt--,0===this._collectorCnt){const e=this._collector.outgoingEvents,t=this._collector.viewEvents;this._collector=null;for(const i of e)this._addOutgoingEvent(i);t.length>0&&this._emitMany(t)}this._emitOutgoingEvents()}emitSingleViewEvent(e){try{this.beginEmitViewEvents().emitViewEvent(e)}finally{this.endEmitViewEvents()}}_emitMany(e){this._viewEventQueue?this._viewEventQueue=this._viewEventQueue.concat(e):this._viewEventQueue=e,this._isConsumingViewEventQueue||this._consumeViewEventQueue()}_consumeViewEventQueue(){try{this._isConsumingViewEventQueue=!0,this._doConsumeQueue()}finally{this._isConsumingViewEventQueue=!1}}_doConsumeQueue(){for(;this._viewEventQueue;){const e=this._viewEventQueue;this._viewEventQueue=null;const t=this._eventHandlers.slice(0);for(const i of t)i.handleEvents(e)}}}class zs{constructor(){this.viewEvents=[],this.outgoingEvents=[]}emitViewEvent(e){this.viewEvents.push(e)}emitOutgoingEvent(e){this.outgoingEvents.push(e)}}class Gs{constructor(e,t,i,s){this.kind=0,this._oldContentWidth=e,this._oldContentHeight=t,this.contentWidth=i,this.contentHeight=s,this.contentWidthChanged=this._oldContentWidth!==this.contentWidth,this.contentHeightChanged=this._oldContentHeight!==this.contentHeight}isNoOp(){return!this.contentWidthChanged&&!this.contentHeightChanged}attemptToMerge(e){return e.kind!==this.kind?null:new Gs(this._oldContentWidth,this._oldContentHeight,e.contentWidth,e.contentHeight)}}class js{constructor(e,t){this.kind=1,this.oldHasFocus=e,this.hasFocus=t}isNoOp(){return this.oldHasFocus===this.hasFocus}attemptToMerge(e){return e.kind!==this.kind?null:new js(this.oldHasFocus,e.hasFocus)}}class Ks{constructor(e,t,i,s,n,r,o,a){this.kind=2,this._oldScrollWidth=e,this._oldScrollLeft=t,this._oldScrollHeight=i,this._oldScrollTop=s,this.scrollWidth=n,this.scrollLeft=r,this.scrollHeight=o,this.scrollTop=a,this.scrollWidthChanged=this._oldScrollWidth!==this.scrollWidth,this.scrollLeftChanged=this._oldScrollLeft!==this.scrollLeft,this.scrollHeightChanged=this._oldScrollHeight!==this.scrollHeight,this.scrollTopChanged=this._oldScrollTop!==this.scrollTop}isNoOp(){return!this.scrollWidthChanged&&!this.scrollLeftChanged&&!this.scrollHeightChanged&&!this.scrollTopChanged}attemptToMerge(e){return e.kind!==this.kind?null:new Ks(this._oldScrollWidth,this._oldScrollLeft,this._oldScrollHeight,this._oldScrollTop,e.scrollWidth,e.scrollLeft,e.scrollHeight,e.scrollTop)}}class Ys{constructor(){this.kind=3}isNoOp(){return!1}attemptToMerge(e){return e.kind!==this.kind?null:this}}class qs{constructor(){this.kind=4}isNoOp(){return!1}attemptToMerge(e){return e.kind!==this.kind?null:this}}class $s{constructor(e,t,i,s,n,r,o){this.kind=6,this.oldSelections=e,this.selections=t,this.oldModelVersionId=i,this.modelVersionId=s,this.source=n,this.reason=r,this.reachedMaxCursorCount=o}static _selectionsAreEqual(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;const i=e.length;if(i!==t.length)return!1;for(let s=0;s<i;s++)if(!e[s].equalsSelection(t[s]))return!1;return!0}isNoOp(){return $s._selectionsAreEqual(this.oldSelections,this.selections)&&this.oldModelVersionId===this.modelVersionId}attemptToMerge(e){return e.kind!==this.kind?null:new $s(this.oldSelections,e.selections,this.oldModelVersionId,e.modelVersionId,e.source,e.reason,this.reachedMaxCursorCount||e.reachedMaxCursorCount)}}class Qs{constructor(){this.kind=5}isNoOp(){return!1}attemptToMerge(e){return e.kind!==this.kind?null:this}}class Xs{constructor(e){this.event=e,this.kind=7}isNoOp(){return!1}attemptToMerge(e){return null}}class Zs{constructor(e){this.event=e,this.kind=8}isNoOp(){return!1}attemptToMerge(e){return null}}class Js{constructor(e){this.event=e,this.kind=9}isNoOp(){return!1}attemptToMerge(e){return null}}class en{constructor(e){this.event=e,this.kind=10}isNoOp(){return!1}attemptToMerge(e){return null}}class tn{constructor(e){this.event=e,this.kind=11}isNoOp(){return!1}attemptToMerge(e){return null}}class sn{constructor(e){this.event=e,this.kind=12}isNoOp(){return!1}attemptToMerge(e){return null}}class nn extends d.jG{constructor(e,t,i,s){super(),this._model=e,this._knownModelVersionId=this._model.getVersionId(),this._viewModel=t,this._coordinatesConverter=i,this.context=new Es(this._model,this._viewModel,this._coordinatesConverter,s),this._cursors=new Cs(this.context),this._hasFocus=!1,this._isHandling=!1,this._compositionState=null,this._columnSelectData=null,this._autoClosedActions=[],this._prevEditOperationType=0}dispose(){this._cursors.dispose(),this._autoClosedActions=(0,d.AS)(this._autoClosedActions),super.dispose()}updateConfiguration(e){this.context=new Es(this._model,this._viewModel,this._coordinatesConverter,e),this._cursors.updateContext(this.context)}onLineMappingChanged(e){this._knownModelVersionId===this._model.getVersionId()&&this.setStates(e,"viewModel",0,this.getCursorStates())}setHasFocus(e){this._hasFocus=e}_validateAutoClosedActions(){if(this._autoClosedActions.length>0){const e=this._cursors.getSelections();for(let t=0;t<this._autoClosedActions.length;t++){const i=this._autoClosedActions[t];i.isValid(e)||(i.dispose(),this._autoClosedActions.splice(t,1),t--)}}}getPrimaryCursorState(){return this._cursors.getPrimaryCursor()}getLastAddedCursorIndex(){return this._cursors.getLastAddedCursorIndex()}getCursorStates(){return this._cursors.getAll()}setStates(e,t,i,s){let n=!1;const r=this.context.cursorConfig.multiCursorLimit;null!==s&&s.length>r&&(s=s.slice(0,r),n=!0);const o=rn.from(this._model,this);return this._cursors.setStates(s),this._cursors.normalize(),this._columnSelectData=null,this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,t,i,o,n)}setCursorColumnSelectData(e){this._columnSelectData=e}revealAll(e,t,i,s,n,r){const o=this._cursors.getViewPositions();let a=null,c=null;o.length>1?c=this._cursors.getViewSelections():a=q.Q.fromPositions(o[0],o[0]),e.emitViewEvent(new Ps(t,i,a,c,s,n,r))}revealPrimary(e,t,i,s,n,r){const o=[this._cursors.getPrimaryCursor().viewState.selection];e.emitViewEvent(new Ps(t,i,null,o,s,n,r))}saveState(){const e=[],t=this._cursors.getSelections();for(let i=0,s=t.length;i<s;i++){const s=t[i];e.push({inSelectionMode:!s.isEmpty(),selectionStart:{lineNumber:s.selectionStartLineNumber,column:s.selectionStartColumn},position:{lineNumber:s.positionLineNumber,column:s.positionColumn}})}return e}restoreState(e,t){const i=[];for(let s=0,n=t.length;s<n;s++){const e=t[s];let n=1,r=1;e.position&&e.position.lineNumber&&(n=e.position.lineNumber),e.position&&e.position.column&&(r=e.position.column);let o=n,a=r;e.selectionStart&&e.selectionStart.lineNumber&&(o=e.selectionStart.lineNumber),e.selectionStart&&e.selectionStart.column&&(a=e.selectionStart.column),i.push({selectionStartLineNumber:o,selectionStartColumn:a,positionLineNumber:n,positionColumn:r})}this.setStates(e,"restoreState",0,_s.MF.fromModelSelections(i)),this.revealAll(e,"restoreState",!1,0,!0,1)}onModelContentChanged(e,t){if(t instanceof Gi.vn){if(this._isHandling)return;this._isHandling=!0;try{this.setStates(e,"modelChange",0,this.getCursorStates())}finally{this._isHandling=!1}}else{const i=t.rawContentChangedEvent;if(this._knownModelVersionId=i.versionId,this._isHandling)return;const s=i.containsEvent(1);if(this._prevEditOperationType=0,s)this._cursors.dispose(),this._cursors=new Cs(this.context),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,"model",1,null,!1);else if(this._hasFocus&&i.resultingSelection&&i.resultingSelection.length>0){const t=_s.MF.fromModelSelections(i.resultingSelection);this.setStates(e,"modelChange",i.isUndoing?5:i.isRedoing?6:2,t)&&this.revealAll(e,"modelChange",!1,0,!0,0)}else{const t=this._cursors.readSelectionFromMarkers();this.setStates(e,"modelChange",2,_s.MF.fromModelSelections(t))}}}getSelection(){return this._cursors.getPrimaryCursor().modelState.selection}getTopMostViewPosition(){return this._cursors.getTopMostViewPosition()}getBottomMostViewPosition(){return this._cursors.getBottomMostViewPosition()}getCursorColumnSelectData(){if(this._columnSelectData)return this._columnSelectData;const e=this._cursors.getPrimaryCursor(),t=e.viewState.selectionStart.getStartPosition(),i=e.viewState.position;return{isReal:!1,fromViewLineNumber:t.lineNumber,fromViewVisualColumn:this.context.cursorConfig.visibleColumnFromColumn(this._viewModel,t),toViewLineNumber:i.lineNumber,toViewVisualColumn:this.context.cursorConfig.visibleColumnFromColumn(this._viewModel,i)}}getSelections(){return this._cursors.getSelections()}setSelections(e,t,i,s){this.setStates(e,t,s,_s.MF.fromModelSelections(i))}getPrevEditOperationType(){return this._prevEditOperationType}setPrevEditOperationType(e){this._prevEditOperationType=e}_pushAutoClosedAction(e,t){const i=[],s=[];for(let o=0,a=e.length;o<a;o++)i.push({range:e[o],options:{description:"auto-closed-character",inlineClassName:"auto-closed-character",stickiness:1}}),s.push({range:t[o],options:{description:"auto-closed-enclosing",stickiness:1}});const n=this._model.deltaDecorations([],i),r=this._model.deltaDecorations([],s);this._autoClosedActions.push(new on(this._model,n,r))}_executeEditOperation(e){if(!e)return;e.shouldPushStackElementBefore&&this._model.pushStackElement();const t=an.executeCommands(this._model,this._cursors.getSelections(),e.commands);if(t){this._interpretCommandResult(t);const i=[],s=[];for(let t=0;t<e.commands.length;t++){const n=e.commands[t];n instanceof ys.Hs&&n.enclosingRange&&n.closeCharacterRange&&(i.push(n.closeCharacterRange),s.push(n.enclosingRange))}i.length>0&&this._pushAutoClosedAction(i,s),this._prevEditOperationType=e.type}e.shouldPushStackElementAfter&&this._model.pushStackElement()}_interpretCommandResult(e){e&&0!==e.length||(e=this._cursors.readSelectionFromMarkers()),this._columnSelectData=null,this._cursors.setSelections(e),this._cursors.normalize()}_emitStateChangedIfNecessary(e,t,i,s,n){const r=rn.from(this._model,this);if(r.equals(s))return!1;const o=this._cursors.getSelections(),a=this._cursors.getViewSelections();if(e.emitViewEvent(new Ts(a,o,i)),!s||s.cursorState.length!==r.cursorState.length||r.cursorState.some(((e,t)=>!e.modelState.equals(s.cursorState[t].modelState)))){const a=s?s.cursorState.map((e=>e.modelState.selection)):null,c=s?s.modelVersionId:0;e.emitOutgoingEvent(new $s(a,o,c,r.modelVersionId,t||"keyboard",i,n))}return!0}_findAutoClosingPairs(e){if(!e.length)return null;const t=[];for(let i=0,s=e.length;i<s;i++){const s=e[i];if(!s.text||s.text.indexOf("\n")>=0)return null;const n=s.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!n)return null;const r=n[1],o=this.context.cursorConfig.autoClosingPairs.autoClosingPairsCloseSingleChar.get(r);if(!o||1!==o.length)return null;const a=o[0].open,c=s.text.length-n[2].length-1,l=s.text.lastIndexOf(a,c-1);if(-1===l)return null;t.push([l,c])}return t}executeEdits(e,t,i,s){let n=null;"snippet"===t&&(n=this._findAutoClosingPairs(i)),n&&(i[0]._isTracked=!0);const r=[],o=[],a=this._model.pushEditOperations(this.getSelections(),i,(e=>{if(n)for(let i=0,s=n.length;i<s;i++){const[t,s]=n[i],a=e[i],c=a.range.startLineNumber,l=a.range.startColumn-1+t,h=a.range.startColumn-1+s;r.push(new q.Q(c,h+1,c,h+2)),o.push(new q.Q(c,l+1,c,h+2))}const t=s(e);return t&&(this._isHandling=!0),t}));a&&(this._isHandling=!1,this.setSelections(e,t,a,0)),r.length>0&&this._pushAutoClosedAction(r,o)}_executeEdit(e,t,i,s=0){if(this.context.cursorConfig.readOnly)return;const n=rn.from(this._model,this);this._cursors.stopTrackingSelections(),this._isHandling=!0;try{this._cursors.ensureValidState(),e()}catch(r){(0,l.dz)(r)}this._isHandling=!1,this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(t,i,s,n,!1)&&this.revealAll(t,i,!1,0,!0,0)}getAutoClosedCharacters(){return on.getAllAutoClosedCharacters(this._autoClosedActions)}startComposition(e){this._compositionState=new ln(this._model,this.getSelections())}endComposition(e,t){const i=this._compositionState?this._compositionState.deduceOutcome(this._model,this.getSelections()):null;this._compositionState=null,this._executeEdit((()=>{"keyboard"===t&&this._executeEditOperation(Ss.T.compositionEndWithInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,i,this.getSelections(),this.getAutoClosedCharacters()))}),e,t)}type(e,t,i){this._executeEdit((()=>{if("keyboard"===i){const e=t.length;let i=0;for(;i<e;){const e=Le.iy(t,i),s=t.substr(i,e);this._executeEditOperation(Ss.T.typeWithInterceptors(!!this._compositionState,this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),this.getAutoClosedCharacters(),s)),i+=e}}else this._executeEditOperation(Ss.T.typeWithoutInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),t))}),e,i)}compositionType(e,t,i,s,n,r){if(0!==t.length||0!==i||0!==s)this._executeEdit((()=>{this._executeEditOperation(Ss.T.compositionType(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),t,i,s,n))}),e,r);else if(0!==n){const t=this.getSelections().map((e=>{const t=e.getPosition();return new pe.L(t.lineNumber,t.column+n,t.lineNumber,t.column+n)}));this.setSelections(e,r,t,0)}}paste(e,t,i,s,n){this._executeEdit((()=>{this._executeEditOperation(Ss.T.paste(this.context.cursorConfig,this._model,this.getSelections(),t,i,s||[]))}),e,n,4)}cut(e,t){this._executeEdit((()=>{this._executeEditOperation(bs.g.cut(this.context.cursorConfig,this._model,this.getSelections()))}),e,t)}executeCommand(e,t,i){this._executeEdit((()=>{this._cursors.killSecondaryCursors(),this._executeEditOperation(new _s.vY(0,[t],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))}),e,i)}executeCommands(e,t,i){this._executeEdit((()=>{this._executeEditOperation(new _s.vY(0,t,{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))}),e,i)}}class rn{static from(e,t){return new rn(e.getVersionId(),t.getCursorStates())}constructor(e,t){this.modelVersionId=e,this.cursorState=t}equals(e){if(!e)return!1;if(this.modelVersionId!==e.modelVersionId)return!1;if(this.cursorState.length!==e.cursorState.length)return!1;for(let t=0,i=this.cursorState.length;t<i;t++)if(!this.cursorState[t].equals(e.cursorState[t]))return!1;return!0}}class on{static getAllAutoClosedCharacters(e){let t=[];for(const i of e)t=t.concat(i.getAutoClosedCharactersRanges());return t}constructor(e,t,i){this._model=e,this._autoClosedCharactersDecorations=t,this._autoClosedEnclosingDecorations=i}dispose(){this._autoClosedCharactersDecorations=this._model.deltaDecorations(this._autoClosedCharactersDecorations,[]),this._autoClosedEnclosingDecorations=this._model.deltaDecorations(this._autoClosedEnclosingDecorations,[])}getAutoClosedCharactersRanges(){const e=[];for(let t=0;t<this._autoClosedCharactersDecorations.length;t++){const i=this._model.getDecorationRange(this._autoClosedCharactersDecorations[t]);i&&e.push(i)}return e}isValid(e){const t=[];for(let i=0;i<this._autoClosedEnclosingDecorations.length;i++){const e=this._model.getDecorationRange(this._autoClosedEnclosingDecorations[i]);if(e&&(t.push(e),e.startLineNumber!==e.endLineNumber))return!1}t.sort(q.Q.compareRangesUsingStarts),e.sort(q.Q.compareRangesUsingStarts);for(let i=0;i<e.length;i++){if(i>=t.length)return!1;if(!t[i].strictContainsRange(e[i]))return!1}return!0}}class an{static executeCommands(e,t,i){const s={model:e,selectionsBefore:t,trackedRanges:[],trackedRangesDirection:[]},n=this._innerExecuteCommands(s,i);for(let r=0,o=s.trackedRanges.length;r<o;r++)s.model._setTrackedRange(s.trackedRanges[r],null,0);return n}static _innerExecuteCommands(e,t){if(this._arrayIsEmpty(t))return null;const i=this._getEditOperations(e,t);if(0===i.operations.length)return null;const s=i.operations,n=this._getLoserCursorMap(s);if(n.hasOwnProperty("0"))return console.warn("Ignoring commands"),null;const r=[];for(let c=0,l=s.length;c<l;c++)n.hasOwnProperty(s[c].identifier.major.toString())||r.push(s[c]);i.hadTrackedEditOperation&&r.length>0&&(r[0]._isTracked=!0);let o=e.model.pushEditOperations(e.selectionsBefore,r,(i=>{const s=[];for(let t=0;t<e.selectionsBefore.length;t++)s[t]=[];for(const e of i)e.identifier&&s[e.identifier.major].push(e);const n=(e,t)=>e.identifier.minor-t.identifier.minor,r=[];for(let o=0;o<e.selectionsBefore.length;o++)s[o].length>0?(s[o].sort(n),r[o]=t[o].computeCursorState(e.model,{getInverseEditOperations:()=>s[o],getTrackedSelection:t=>{const i=parseInt(t,10),s=e.model._getTrackedRange(e.trackedRanges[i]);return 0===e.trackedRangesDirection[i]?new pe.L(s.startLineNumber,s.startColumn,s.endLineNumber,s.endColumn):new pe.L(s.endLineNumber,s.endColumn,s.startLineNumber,s.startColumn)}})):r[o]=e.selectionsBefore[o];return r}));o||(o=e.selectionsBefore);const a=[];for(const c in n)n.hasOwnProperty(c)&&a.push(parseInt(c,10));a.sort(((e,t)=>t-e));for(const c of a)o.splice(c,1);return o}static _arrayIsEmpty(e){for(let t=0,i=e.length;t<i;t++)if(e[t])return!1;return!0}static _getEditOperations(e,t){let i=[],s=!1;for(let n=0,r=t.length;n<r;n++){const r=t[n];if(r){const t=this._getEditOperationsFromCommand(e,n,r);i=i.concat(t.operations),s=s||t.hadTrackedEditOperation}}return{operations:i,hadTrackedEditOperation:s}}static _getEditOperationsFromCommand(e,t,i){const s=[];let n=0;const r=(e,r,o=!1)=>{q.Q.isEmpty(e)&&""===r||s.push({identifier:{major:t,minor:n++},range:e,text:r,forceMoveMarkers:o,isAutoWhitespaceEdit:i.insertsAutoWhitespace})};let o=!1;const a={addEditOperation:r,addTrackedEditOperation:(e,t,i)=>{o=!0,r(e,t,i)},trackSelection:(t,i)=>{const s=pe.L.liftSelection(t);let n;if(s.isEmpty())if("boolean"===typeof i)n=i?2:3;else{const t=e.model.getLineMaxColumn(s.startLineNumber);n=s.startColumn===t?2:3}else n=1;const r=e.trackedRanges.length,o=e.model._setTrackedRange(null,s,n);return e.trackedRanges[r]=o,e.trackedRangesDirection[r]=s.getDirection(),r.toString()}};try{i.getEditOperations(e.model,a)}catch(c){return(0,l.dz)(c),{operations:[],hadTrackedEditOperation:!1}}return{operations:s,hadTrackedEditOperation:o}}static _getLoserCursorMap(e){(e=e.slice(0)).sort(((e,t)=>-q.Q.compareRangesUsingEnds(e.range,t.range)));const t={};for(let i=1;i<e.length;i++){const s=e[i-1],n=e[i];if(q.Q.getStartPosition(s.range).isBefore(q.Q.getEndPosition(n.range))){let r;r=s.identifier.major>n.identifier.major?s.identifier.major:n.identifier.major,t[r.toString()]=!0;for(let t=0;t<e.length;t++)e[t].identifier.major===r&&(e.splice(t,1),t<i&&i--,t--);i>0&&i--}}return t}}class cn{constructor(e,t,i){this.text=e,this.startSelection=t,this.endSelection=i}}class ln{static _capture(e,t){const i=[];for(const s of t){if(s.startLineNumber!==s.endLineNumber)return null;i.push(new cn(e.getLineContent(s.startLineNumber),s.startColumn-1,s.endColumn-1))}return i}constructor(e,t){this._original=ln._capture(e,t)}deduceOutcome(e,t){if(!this._original)return null;const i=ln._capture(e,t);if(!i)return null;if(this._original.length!==i.length)return null;const s=[];for(let n=0,r=this._original.length;n<r;n++)s.push(ln._deduceOutcome(this._original[n],i[n]));return s}static _deduceOutcome(e,t){const i=Math.min(e.startSelection,t.startSelection,Le.Qp(e.text,t.text)),s=Math.min(e.text.length-e.endSelection,t.text.length-t.endSelection,Le.Vi(e.text,t.text)),n=e.text.substring(i,e.text.length-s),r=t.text.substring(i,t.text.length-s);return new Ss.v(n,e.startSelection-i,e.endSelection-i,r,t.startSelection-i,t.endSelection-i)}}var hn=i(83941),dn=i(58314),un=i(49353);class gn{constructor(){this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[]}insert(e){this._hasPending=!0,this._inserts.push(e)}change(e){this._hasPending=!0,this._changes.push(e)}remove(e){this._hasPending=!0,this._removes.push(e)}mustCommit(){return this._hasPending}commit(e){if(!this._hasPending)return;const t=this._inserts,i=this._changes,s=this._removes;this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[],e._commitPendingChanges(t,i,s)}}class pn{constructor(e,t,i,s,n){this.id=e,this.afterLineNumber=t,this.ordinal=i,this.height=s,this.minWidth=n,this.prefixSum=0}}class mn{static{this.INSTANCE_COUNT=0}constructor(e,t,i,s){this._instanceId=Le.tk(++mn.INSTANCE_COUNT),this._pendingChanges=new gn,this._lastWhitespaceId=0,this._arr=[],this._prefixSumValidIndex=-1,this._minWidth=-1,this._lineCount=e,this._lineHeight=t,this._paddingTop=i,this._paddingBottom=s}static findInsertionIndex(e,t,i){let s=0,n=e.length;for(;s<n;){const r=s+n>>>1;t===e[r].afterLineNumber?i<e[r].ordinal?n=r:s=r+1:t<e[r].afterLineNumber?n=r:s=r+1}return s}setLineHeight(e){this._checkPendingChanges(),this._lineHeight=e}setPadding(e,t){this._paddingTop=e,this._paddingBottom=t}onFlushed(e){this._checkPendingChanges(),this._lineCount=e}changeWhitespace(e){let t=!1;try{e({insertWhitespace:(e,i,s,n)=>{t=!0,e|=0,i|=0,s|=0,n|=0;const r=this._instanceId+ ++this._lastWhitespaceId;return this._pendingChanges.insert(new pn(r,e,i,s,n)),r},changeOneWhitespace:(e,i,s)=>{t=!0,i|=0,s|=0,this._pendingChanges.change({id:e,newAfterLineNumber:i,newHeight:s})},removeWhitespace:e=>{t=!0,this._pendingChanges.remove({id:e})}})}finally{this._pendingChanges.commit(this)}return t}_commitPendingChanges(e,t,i){if((e.length>0||i.length>0)&&(this._minWidth=-1),e.length+t.length+i.length<=1){for(const t of e)this._insertWhitespace(t);for(const e of t)this._changeOneWhitespace(e.id,e.newAfterLineNumber,e.newHeight);for(const e of i){const t=this._findWhitespaceIndex(e.id);-1!==t&&this._removeWhitespace(t)}return}const s=new Set;for(const a of i)s.add(a.id);const n=new Map;for(const a of t)n.set(a.id,a);const r=e=>{const t=[];for(const i of e)if(!s.has(i.id)){if(n.has(i.id)){const e=n.get(i.id);i.afterLineNumber=e.newAfterLineNumber,i.height=e.newHeight}t.push(i)}return t},o=r(this._arr).concat(r(e));o.sort(((e,t)=>e.afterLineNumber===t.afterLineNumber?e.ordinal-t.ordinal:e.afterLineNumber-t.afterLineNumber)),this._arr=o,this._prefixSumValidIndex=-1}_checkPendingChanges(){this._pendingChanges.mustCommit()&&this._pendingChanges.commit(this)}_insertWhitespace(e){const t=mn.findInsertionIndex(this._arr,e.afterLineNumber,e.ordinal);this._arr.splice(t,0,e),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,t-1)}_findWhitespaceIndex(e){const t=this._arr;for(let i=0,s=t.length;i<s;i++)if(t[i].id===e)return i;return-1}_changeOneWhitespace(e,t,i){const s=this._findWhitespaceIndex(e);if(-1!==s&&(this._arr[s].height!==i&&(this._arr[s].height=i,this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,s-1)),this._arr[s].afterLineNumber!==t)){const e=this._arr[s];this._removeWhitespace(s),e.afterLineNumber=t,this._insertWhitespace(e)}}_removeWhitespace(e){this._arr.splice(e,1),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,e-1)}onLinesDeleted(e,t){this._checkPendingChanges(),e|=0,t|=0,this._lineCount-=t-e+1;for(let i=0,s=this._arr.length;i<s;i++){const s=this._arr[i].afterLineNumber;e<=s&&s<=t?this._arr[i].afterLineNumber=e-1:s>t&&(this._arr[i].afterLineNumber-=t-e+1)}}onLinesInserted(e,t){this._checkPendingChanges(),e|=0,t|=0,this._lineCount+=t-e+1;for(let i=0,s=this._arr.length;i<s;i++){e<=this._arr[i].afterLineNumber&&(this._arr[i].afterLineNumber+=t-e+1)}}getWhitespacesTotalHeight(){return this._checkPendingChanges(),0===this._arr.length?0:this.getWhitespacesAccumulatedHeight(this._arr.length-1)}getWhitespacesAccumulatedHeight(e){this._checkPendingChanges(),e|=0;let t=Math.max(0,this._prefixSumValidIndex+1);0===t&&(this._arr[0].prefixSum=this._arr[0].height,t++);for(let i=t;i<=e;i++)this._arr[i].prefixSum=this._arr[i-1].prefixSum+this._arr[i].height;return this._prefixSumValidIndex=Math.max(this._prefixSumValidIndex,e),this._arr[e].prefixSum}getLinesTotalHeight(){this._checkPendingChanges();return this._lineHeight*this._lineCount+this.getWhitespacesTotalHeight()+this._paddingTop+this._paddingBottom}getWhitespaceAccumulatedHeightBeforeLineNumber(e){this._checkPendingChanges(),e|=0;const t=this._findLastWhitespaceBeforeLineNumber(e);return-1===t?0:this.getWhitespacesAccumulatedHeight(t)}_findLastWhitespaceBeforeLineNumber(e){e|=0;const t=this._arr;let i=0,s=t.length-1;for(;i<=s;){const n=i+((s-i|0)/2|0)|0;if(t[n].afterLineNumber<e){if(n+1>=t.length||t[n+1].afterLineNumber>=e)return n;i=n+1|0}else s=n-1|0}return-1}_findFirstWhitespaceAfterLineNumber(e){e|=0;const t=this._findLastWhitespaceBeforeLineNumber(e)+1;return t<this._arr.length?t:-1}getFirstWhitespaceIndexAfterLineNumber(e){return this._checkPendingChanges(),e|=0,this._findFirstWhitespaceAfterLineNumber(e)}getVerticalOffsetForLineNumber(e,t=!1){let i;this._checkPendingChanges(),i=(e|=0)>1?this._lineHeight*(e-1):0;return i+this.getWhitespaceAccumulatedHeightBeforeLineNumber(e-(t?1:0))+this._paddingTop}getVerticalOffsetAfterLineNumber(e,t=!1){this._checkPendingChanges(),e|=0;return this._lineHeight*e+this.getWhitespaceAccumulatedHeightBeforeLineNumber(e+(t?1:0))+this._paddingTop}getWhitespaceMinWidth(){if(this._checkPendingChanges(),-1===this._minWidth){let e=0;for(let t=0,i=this._arr.length;t<i;t++)e=Math.max(e,this._arr[t].minWidth);this._minWidth=e}return this._minWidth}isAfterLines(e){this._checkPendingChanges();return e>this.getLinesTotalHeight()}isInTopPadding(e){return 0!==this._paddingTop&&(this._checkPendingChanges(),e<this._paddingTop)}isInBottomPadding(e){if(0===this._paddingBottom)return!1;this._checkPendingChanges();return e>=this.getLinesTotalHeight()-this._paddingBottom}getLineNumberAtOrAfterVerticalOffset(e){if(this._checkPendingChanges(),(e|=0)<0)return 1;const t=0|this._lineCount,i=this._lineHeight;let s=1,n=t;for(;s<n;){const t=(s+n)/2|0,r=0|this.getVerticalOffsetForLineNumber(t);if(e>=r+i)s=t+1;else{if(e>=r)return t;n=t}}return s>t?t:s}getLinesViewportData(e,t){this._checkPendingChanges(),e|=0,t|=0;const i=this._lineHeight,s=0|this.getLineNumberAtOrAfterVerticalOffset(e),n=0|this.getVerticalOffsetForLineNumber(s);let r=0|this._lineCount,o=0|this.getFirstWhitespaceIndexAfterLineNumber(s);const a=0|this.getWhitespacesCount();let c,l;-1===o?(o=a,l=r+1,c=0):(l=0|this.getAfterLineNumberForWhitespaceIndex(o),c=0|this.getHeightForWhitespaceIndex(o));let h=n,d=h;const u=5e5;let g=0;n>=u&&(g=Math.floor(n/u)*u,g=Math.floor(g/i)*i,d-=g);const p=[],m=e+(t-e)/2;let f=-1;for(let E=s;E<=r;E++){if(-1===f){(h<=m&&m<h+i||h>m)&&(f=E)}for(h+=i,p[E-s]=d,d+=i;l===E;)d+=c,h+=c,o++,o>=a?l=r+1:(l=0|this.getAfterLineNumberForWhitespaceIndex(o),c=0|this.getHeightForWhitespaceIndex(o));if(h>=t){r=E;break}}-1===f&&(f=r);const _=0|this.getVerticalOffsetForLineNumber(r);let v=s,C=r;return v<C&&n<e&&v++,v<C&&_+i>t&&C--,{bigNumbersDelta:g,startLineNumber:s,endLineNumber:r,relativeVerticalOffset:p,centeredLineNumber:f,completelyVisibleStartLineNumber:v,completelyVisibleEndLineNumber:C,lineHeight:this._lineHeight}}getVerticalOffsetForWhitespaceIndex(e){this._checkPendingChanges(),e|=0;const t=this.getAfterLineNumberForWhitespaceIndex(e);let i,s;return i=t>=1?this._lineHeight*t:0,s=e>0?this.getWhitespacesAccumulatedHeight(e-1):0,i+s+this._paddingTop}getWhitespaceIndexAtOrAfterVerticallOffset(e){this._checkPendingChanges(),e|=0;let t=0,i=this.getWhitespacesCount()-1;if(i<0)return-1;if(e>=this.getVerticalOffsetForWhitespaceIndex(i)+this.getHeightForWhitespaceIndex(i))return-1;for(;t<i;){const s=Math.floor((t+i)/2),n=this.getVerticalOffsetForWhitespaceIndex(s);if(e>=n+this.getHeightForWhitespaceIndex(s))t=s+1;else{if(e>=n)return s;i=s}}return t}getWhitespaceAtVerticalOffset(e){this._checkPendingChanges(),e|=0;const t=this.getWhitespaceIndexAtOrAfterVerticallOffset(e);if(t<0)return null;if(t>=this.getWhitespacesCount())return null;const i=this.getVerticalOffsetForWhitespaceIndex(t);if(i>e)return null;const s=this.getHeightForWhitespaceIndex(t);return{id:this.getIdForWhitespaceIndex(t),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(t),verticalOffset:i,height:s}}getWhitespaceViewportData(e,t){this._checkPendingChanges(),e|=0,t|=0;const i=this.getWhitespaceIndexAtOrAfterVerticallOffset(e),s=this.getWhitespacesCount()-1;if(i<0)return[];const n=[];for(let r=i;r<=s;r++){const e=this.getVerticalOffsetForWhitespaceIndex(r),i=this.getHeightForWhitespaceIndex(r);if(e>=t)break;n.push({id:this.getIdForWhitespaceIndex(r),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(r),verticalOffset:e,height:i})}return n}getWhitespaces(){return this._checkPendingChanges(),this._arr.slice(0)}getWhitespacesCount(){return this._checkPendingChanges(),this._arr.length}getIdForWhitespaceIndex(e){return this._checkPendingChanges(),e|=0,this._arr[e].id}getAfterLineNumberForWhitespaceIndex(e){return this._checkPendingChanges(),e|=0,this._arr[e].afterLineNumber}getHeightForWhitespaceIndex(e){return this._checkPendingChanges(),e|=0,this._arr[e].height}}class fn{constructor(e,t,i,s){(e|=0)<0&&(e=0),(t|=0)<0&&(t=0),(i|=0)<0&&(i=0),(s|=0)<0&&(s=0),this.width=e,this.contentWidth=t,this.scrollWidth=Math.max(e,t),this.height=i,this.contentHeight=s,this.scrollHeight=Math.max(i,s)}equals(e){return this.width===e.width&&this.contentWidth===e.contentWidth&&this.height===e.height&&this.contentHeight===e.contentHeight}}class _n extends d.jG{constructor(e,t){super(),this._onDidContentSizeChange=this._register(new h.vl),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._dimensions=new fn(0,0,0,0),this._scrollable=this._register(new un.yE({forceIntegerValues:!0,smoothScrollDuration:e,scheduleAtNextAnimationFrame:t})),this.onDidScroll=this._scrollable.onScroll}getScrollable(){return this._scrollable}setSmoothScrollDuration(e){this._scrollable.setSmoothScrollDuration(e)}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}getScrollDimensions(){return this._dimensions}setScrollDimensions(e){if(this._dimensions.equals(e))return;const t=this._dimensions;this._dimensions=e,this._scrollable.setScrollDimensions({width:e.width,scrollWidth:e.scrollWidth,height:e.height,scrollHeight:e.scrollHeight},!0);const i=t.contentWidth!==e.contentWidth,s=t.contentHeight!==e.contentHeight;(i||s)&&this._onDidContentSizeChange.fire(new Gs(t.contentWidth,t.contentHeight,e.contentWidth,e.contentHeight))}getFutureScrollPosition(){return this._scrollable.getFutureScrollPosition()}getCurrentScrollPosition(){return this._scrollable.getCurrentScrollPosition()}setScrollPositionNow(e){this._scrollable.setScrollPositionNow(e)}setScrollPositionSmooth(e){this._scrollable.setScrollPositionSmooth(e)}hasPendingScrollAnimation(){return this._scrollable.hasPendingScrollAnimation()}}class vn extends d.jG{constructor(e,t,i){super(),this._configuration=e;const s=this._configuration.options,n=s.get(146),r=s.get(84);this._linesLayout=new mn(t,s.get(67),r.top,r.bottom),this._maxLineWidth=0,this._overlayWidgetsMinWidth=0,this._scrollable=this._register(new _n(0,i)),this._configureSmoothScrollDuration(),this._scrollable.setScrollDimensions(new fn(n.contentWidth,0,n.height,0)),this.onDidScroll=this._scrollable.onDidScroll,this.onDidContentSizeChange=this._scrollable.onDidContentSizeChange,this._updateHeight()}dispose(){super.dispose()}getScrollable(){return this._scrollable.getScrollable()}onHeightMaybeChanged(){this._updateHeight()}_configureSmoothScrollDuration(){this._scrollable.setSmoothScrollDuration(this._configuration.options.get(115)?125:0)}onConfigurationChanged(e){const t=this._configuration.options;if(e.hasChanged(67)&&this._linesLayout.setLineHeight(t.get(67)),e.hasChanged(84)){const e=t.get(84);this._linesLayout.setPadding(e.top,e.bottom)}if(e.hasChanged(146)){const e=t.get(146),i=e.contentWidth,s=e.height,n=this._scrollable.getScrollDimensions(),r=n.contentWidth;this._scrollable.setScrollDimensions(new fn(i,n.contentWidth,s,this._getContentHeight(i,s,r)))}else this._updateHeight();e.hasChanged(115)&&this._configureSmoothScrollDuration()}onFlushed(e){this._linesLayout.onFlushed(e)}onLinesDeleted(e,t){this._linesLayout.onLinesDeleted(e,t)}onLinesInserted(e,t){this._linesLayout.onLinesInserted(e,t)}_getHorizontalScrollbarHeight(e,t){const i=this._configuration.options.get(104);return 2===i.horizontal||e>=t?0:i.horizontalScrollbarSize}_getContentHeight(e,t,i){const s=this._configuration.options;let n=this._linesLayout.getLinesTotalHeight();return s.get(106)?n+=Math.max(0,t-s.get(67)-s.get(84).bottom):s.get(104).ignoreHorizontalScrollbarInContentHeight||(n+=this._getHorizontalScrollbarHeight(e,i)),n}_updateHeight(){const e=this._scrollable.getScrollDimensions(),t=e.width,i=e.height,s=e.contentWidth;this._scrollable.setScrollDimensions(new fn(t,e.contentWidth,i,this._getContentHeight(t,i,s)))}getCurrentViewport(){const e=this._scrollable.getScrollDimensions(),t=this._scrollable.getCurrentScrollPosition();return new Vt.LM(t.scrollTop,t.scrollLeft,e.width,e.height)}getFutureViewport(){const e=this._scrollable.getScrollDimensions(),t=this._scrollable.getFutureScrollPosition();return new Vt.LM(t.scrollTop,t.scrollLeft,e.width,e.height)}_computeContentWidth(){const e=this._configuration.options,t=this._maxLineWidth,i=e.get(147),s=e.get(50),n=e.get(146);if(i.isViewportWrapping){const i=e.get(73);return t>n.contentWidth+s.typicalHalfwidthCharacterWidth&&i.enabled&&"right"===i.side?t+n.verticalScrollbarWidth:t}{const i=e.get(105)*s.typicalHalfwidthCharacterWidth,r=this._linesLayout.getWhitespaceMinWidth();return Math.max(t+i+n.verticalScrollbarWidth,r,this._overlayWidgetsMinWidth)}}setMaxLineWidth(e){this._maxLineWidth=e,this._updateContentWidth()}setOverlayWidgetsMinWidth(e){this._overlayWidgetsMinWidth=e,this._updateContentWidth()}_updateContentWidth(){const e=this._scrollable.getScrollDimensions();this._scrollable.setScrollDimensions(new fn(e.width,this._computeContentWidth(),e.height,e.contentHeight)),this._updateHeight()}saveState(){const e=this._scrollable.getFutureScrollPosition(),t=e.scrollTop,i=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t);return{scrollTop:t,scrollTopWithoutViewZones:t-this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(i),scrollLeft:e.scrollLeft}}changeWhitespace(e){const t=this._linesLayout.changeWhitespace(e);return t&&this.onHeightMaybeChanged(),t}getVerticalOffsetForLineNumber(e,t=!1){return this._linesLayout.getVerticalOffsetForLineNumber(e,t)}getVerticalOffsetAfterLineNumber(e,t=!1){return this._linesLayout.getVerticalOffsetAfterLineNumber(e,t)}isAfterLines(e){return this._linesLayout.isAfterLines(e)}isInTopPadding(e){return this._linesLayout.isInTopPadding(e)}isInBottomPadding(e){return this._linesLayout.isInBottomPadding(e)}getLineNumberAtVerticalOffset(e){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(e)}getWhitespaceAtVerticalOffset(e){return this._linesLayout.getWhitespaceAtVerticalOffset(e)}getLinesViewportData(){const e=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(e.top,e.top+e.height)}getLinesViewportDataAtScrollTop(e){const t=this._scrollable.getScrollDimensions();return e+t.height>t.scrollHeight&&(e=t.scrollHeight-t.height),e<0&&(e=0),this._linesLayout.getLinesViewportData(e,e+t.height)}getWhitespaceViewportData(){const e=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(e.top,e.top+e.height)}getWhitespaces(){return this._linesLayout.getWhitespaces()}getContentWidth(){return this._scrollable.getScrollDimensions().contentWidth}getScrollWidth(){return this._scrollable.getScrollDimensions().scrollWidth}getContentHeight(){return this._scrollable.getScrollDimensions().contentHeight}getScrollHeight(){return this._scrollable.getScrollDimensions().scrollHeight}getCurrentScrollLeft(){return this._scrollable.getCurrentScrollPosition().scrollLeft}getCurrentScrollTop(){return this._scrollable.getCurrentScrollPosition().scrollTop}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}setScrollPosition(e,t){1===t?this._scrollable.setScrollPositionNow(e):this._scrollable.setScrollPositionSmooth(e)}hasPendingScrollAnimation(){return this._scrollable.hasPendingScrollAnimation()}deltaScrollNow(e,t){const i=this._scrollable.getCurrentScrollPosition();this._scrollable.setScrollPositionNow({scrollLeft:i.scrollLeft+e,scrollTop:i.scrollTop+t})}}var Cn=i(32398),En=i(87469);function bn(e,t){return null===e?t?yn.INSTANCE:wn.INSTANCE:new Sn(e,t)}class Sn{constructor(e,t){this._projectionData=e,this._isVisible=t}isVisible(){return this._isVisible}setVisible(e){return this._isVisible=e,this}getProjectionData(){return this._projectionData}getViewLineCount(){return this._isVisible?this._projectionData.getOutputLineCount():0}getViewLineContent(e,t,i){this._assertVisible();const s=i>0?this._projectionData.breakOffsets[i-1]:0,n=this._projectionData.breakOffsets[i];let r;if(null!==this._projectionData.injectionOffsets){const i=this._projectionData.injectionOffsets.map(((e,t)=>new Gi.uK(0,0,e+1,this._projectionData.injectionOptions[t],0)));r=Gi.uK.applyInjectedText(e.getLineContent(t),i).substring(s,n)}else r=e.getValueInRange({startLineNumber:t,startColumn:s+1,endLineNumber:t,endColumn:n+1});return i>0&&(r=Ln(this._projectionData.wrappedTextIndentLength)+r),r}getViewLineLength(e,t,i){return this._assertVisible(),this._projectionData.getLineLength(i)}getViewLineMinColumn(e,t,i){return this._assertVisible(),this._projectionData.getMinOutputOffset(i)+1}getViewLineMaxColumn(e,t,i){return this._assertVisible(),this._projectionData.getMaxOutputOffset(i)+1}getViewLineData(e,t,i){const s=new Array;return this.getViewLinesData(e,t,i,1,0,[!0],s),s[0]}getViewLinesData(e,t,i,s,n,r,o){this._assertVisible();const a=this._projectionData,c=a.injectionOffsets,l=a.injectionOptions;let h,d=null;if(c){d=[];let e=0,t=0;for(let i=0;i<a.getOutputLineCount();i++){const s=new Array;d[i]=s;const n=i>0?a.breakOffsets[i-1]:0,r=a.breakOffsets[i];for(;t<c.length;){const o=l[t].content.length,h=c[t]+e,d=h+o;if(h>r)break;if(n<d){const e=l[t];if(e.inlineClassName){const t=i>0?a.wrappedTextIndentLength:0,o=t+Math.max(h-n,0),c=t+Math.min(d-n,r-n);o!==c&&s.push(new Vt.or(o,c,e.inlineClassName,e.inlineClassNameAffectsLetterSpacing))}}if(!(d<=r))break;e+=o,t++}}}h=c?e.tokenization.getLineTokens(t).withInserted(c.map(((e,t)=>({offset:e,text:l[t].content,tokenMetadata:En.f.defaultTokenMetadata})))):e.tokenization.getLineTokens(t);for(let u=i;u<i+s;u++){const e=n+u-i;r[e]?o[e]=this._getViewLineData(h,d?d[u]:null,u):o[e]=null}}_getViewLineData(e,t,i){this._assertVisible();const s=this._projectionData,n=i>0?s.wrappedTextIndentLength:0,r=i>0?s.breakOffsets[i-1]:0,o=s.breakOffsets[i],a=e.sliceAndInflate(r,o,n);let c=a.getLineContent();i>0&&(c=Ln(s.wrappedTextIndentLength)+c);const l=this._projectionData.getMinOutputOffset(i)+1,h=c.length+1,d=i+1<this.getViewLineCount(),u=0===i?0:s.breakOffsetsVisibleColumn[i-1];return new Vt.GP(c,d,l,h,u,a,t)}getModelColumnOfViewPosition(e,t){return this._assertVisible(),this._projectionData.translateToInputOffset(e,t-1)+1}getViewPositionOfModelPosition(e,t,i=2){this._assertVisible();return this._projectionData.translateToOutputPosition(t-1,i).toPosition(e)}getViewLineNumberOfModelPosition(e,t){this._assertVisible();return e+this._projectionData.translateToOutputPosition(t-1).outputLineIndex}normalizePosition(e,t,i){const s=t.lineNumber-e;return this._projectionData.normalizeOutputPosition(e,t.column-1,i).toPosition(s)}getInjectedTextAt(e,t){return this._projectionData.getInjectedText(e,t-1)}_assertVisible(){if(!this._isVisible)throw new Error("Not supported")}}class yn{static{this.INSTANCE=new yn}constructor(){}isVisible(){return!0}setVisible(e){return e?this:wn.INSTANCE}getProjectionData(){return null}getViewLineCount(){return 1}getViewLineContent(e,t,i){return e.getLineContent(t)}getViewLineLength(e,t,i){return e.getLineLength(t)}getViewLineMinColumn(e,t,i){return e.getLineMinColumn(t)}getViewLineMaxColumn(e,t,i){return e.getLineMaxColumn(t)}getViewLineData(e,t,i){const s=e.tokenization.getLineTokens(t),n=s.getLineContent();return new Vt.GP(n,!1,1,n.length+1,0,s.inflate(),null)}getViewLinesData(e,t,i,s,n,r,o){r[n]?o[n]=this.getViewLineData(e,t,0):o[n]=null}getModelColumnOfViewPosition(e,t){return t}getViewPositionOfModelPosition(e,t){return new Y.y(e,t)}getViewLineNumberOfModelPosition(e,t){return e}normalizePosition(e,t,i){return t}getInjectedTextAt(e,t){return null}}class wn{static{this.INSTANCE=new wn}constructor(){}isVisible(){return!1}setVisible(e){return e?yn.INSTANCE:this}getProjectionData(){return null}getViewLineCount(){return 0}getViewLineContent(e,t,i){throw new Error("Not supported")}getViewLineLength(e,t,i){throw new Error("Not supported")}getViewLineMinColumn(e,t,i){throw new Error("Not supported")}getViewLineMaxColumn(e,t,i){throw new Error("Not supported")}getViewLineData(e,t,i){throw new Error("Not supported")}getViewLinesData(e,t,i,s,n,r,o){throw new Error("Not supported")}getModelColumnOfViewPosition(e,t){throw new Error("Not supported")}getViewPositionOfModelPosition(e,t){throw new Error("Not supported")}getViewLineNumberOfModelPosition(e,t){throw new Error("Not supported")}normalizePosition(e,t,i){throw new Error("Not supported")}getInjectedTextAt(e,t){throw new Error("Not supported")}}const Rn=[""];function Ln(e){if(e>=Rn.length)for(let t=1;t<=e;t++)Rn[t]=Tn(t);return Rn[e]}function Tn(e){return new Array(e+1).join(" ")}var xn=i(27414);class kn{constructor(e,t,i,s,n,r,o,a,c,l){this._editorId=e,this.model=t,this._validModelVersionId=-1,this._domLineBreaksComputerFactory=i,this._monospaceLineBreaksComputerFactory=s,this.fontInfo=n,this.tabSize=r,this.wrappingStrategy=o,this.wrappingColumn=a,this.wrappingIndent=c,this.wordBreak=l,this._constructLines(!0,null)}dispose(){this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,[])}createCoordinatesConverter(){return new In(this)}_constructLines(e,t){this.modelLineProjections=[],e&&(this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,[]));const i=this.model.getLinesContent(),s=this.model.getInjectedTextDecorations(this._editorId),n=i.length,r=this.createLineBreaksComputer(),o=new m.j3(Gi.uK.fromDecorations(s));for(let p=0;p<n;p++){const e=o.takeWhile((e=>e.lineNumber===p+1));r.addRequest(i[p],e,t?t[p]:null)}const a=r.finalize(),c=[],l=this.hiddenAreasDecorationIds.map((e=>this.model.getDecorationRange(e))).sort(q.Q.compareRangesUsingStarts);let h=1,d=0,u=-1,g=u+1<l.length?d+1:n+2;for(let p=0;p<n;p++){const e=p+1;e===g&&(u++,h=l[u].startLineNumber,d=l[u].endLineNumber,g=u+1<l.length?d+1:n+2);const t=e>=h&&e<=d,i=bn(a[p],!t);c[p]=i.getViewLineCount(),this.modelLineProjections[p]=i}this._validModelVersionId=this.model.getVersionId(),this.projectedModelLineLineCounts=new xn.c2(c)}getHiddenAreas(){return this.hiddenAreasDecorationIds.map((e=>this.model.getDecorationRange(e)))}setHiddenAreas(e){const t=function(e){if(0===e.length)return[];const t=e.slice();t.sort(q.Q.compareRangesUsingStarts);const i=[];let s=t[0].startLineNumber,n=t[0].endLineNumber;for(let r=1,o=t.length;r<o;r++){const e=t[r];e.startLineNumber>n+1?(i.push(new q.Q(s,1,n,1)),s=e.startLineNumber,n=e.endLineNumber):e.endLineNumber>n&&(n=e.endLineNumber)}return i.push(new q.Q(s,1,n,1)),i}(e.map((e=>this.model.validateRange(e)))),i=this.hiddenAreasDecorationIds.map((e=>this.model.getDecorationRange(e))).sort(q.Q.compareRangesUsingStarts);if(t.length===i.length){let e=!1;for(let s=0;s<t.length;s++)if(!t[s].equalsRange(i[s])){e=!0;break}if(!e)return!1}const s=t.map((e=>({range:e,options:ss.kI.EMPTY})));this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,s);const n=t;let r=1,o=0,a=-1,c=a+1<n.length?o+1:this.modelLineProjections.length+2,l=!1;for(let h=0;h<this.modelLineProjections.length;h++){const e=h+1;e===c&&(a++,r=n[a].startLineNumber,o=n[a].endLineNumber,c=a+1<n.length?o+1:this.modelLineProjections.length+2);let t=!1;if(e>=r&&e<=o?this.modelLineProjections[h].isVisible()&&(this.modelLineProjections[h]=this.modelLineProjections[h].setVisible(!1),t=!0):(l=!0,this.modelLineProjections[h].isVisible()||(this.modelLineProjections[h]=this.modelLineProjections[h].setVisible(!0),t=!0)),t){const e=this.modelLineProjections[h].getViewLineCount();this.projectedModelLineLineCounts.setValue(h,e)}}return l||this.setHiddenAreas([]),!0}modelPositionIsVisible(e,t){return!(e<1||e>this.modelLineProjections.length)&&this.modelLineProjections[e-1].isVisible()}getModelLineViewLineCount(e){return e<1||e>this.modelLineProjections.length?1:this.modelLineProjections[e-1].getViewLineCount()}setTabSize(e){return this.tabSize!==e&&(this.tabSize=e,this._constructLines(!1,null),!0)}setWrappingSettings(e,t,i,s,n){const r=this.fontInfo.equals(e),o=this.wrappingStrategy===t,a=this.wrappingColumn===i,c=this.wrappingIndent===s,l=this.wordBreak===n;if(r&&o&&a&&c&&l)return!1;const h=r&&o&&!a&&c&&l;this.fontInfo=e,this.wrappingStrategy=t,this.wrappingColumn=i,this.wrappingIndent=s,this.wordBreak=n;let d=null;if(h){d=[];for(let e=0,t=this.modelLineProjections.length;e<t;e++)d[e]=this.modelLineProjections[e].getProjectionData()}return this._constructLines(!1,d),!0}createLineBreaksComputer(){return("advanced"===this.wrappingStrategy?this._domLineBreaksComputerFactory:this._monospaceLineBreaksComputerFactory).createLineBreaksComputer(this.fontInfo,this.tabSize,this.wrappingColumn,this.wrappingIndent,this.wordBreak)}onModelFlushed(){this._constructLines(!0,null)}onModelLinesDeleted(e,t,i){if(!e||e<=this._validModelVersionId)return null;const s=1===t?1:this.projectedModelLineLineCounts.getPrefixSum(t-1)+1,n=this.projectedModelLineLineCounts.getPrefixSum(i);return this.modelLineProjections.splice(t-1,i-t+1),this.projectedModelLineLineCounts.removeValues(t-1,i-t+1),new Ds(s,n)}onModelLinesInserted(e,t,i,s){if(!e||e<=this._validModelVersionId)return null;const n=t>2&&!this.modelLineProjections[t-2].isVisible(),r=1===t?1:this.projectedModelLineLineCounts.getPrefixSum(t-1)+1;let o=0;const a=[],c=[];for(let l=0,h=s.length;l<h;l++){const e=bn(s[l],!n);a.push(e);const t=e.getViewLineCount();o+=t,c[l]=t}return this.modelLineProjections=this.modelLineProjections.slice(0,t-1).concat(a).concat(this.modelLineProjections.slice(t-1)),this.projectedModelLineLineCounts.insertValues(t-1,c),new Ms(r,r+o-1)}onModelLineChanged(e,t,i){if(null!==e&&e<=this._validModelVersionId)return[!1,null,null,null];const s=t-1,n=this.modelLineProjections[s].getViewLineCount(),r=bn(i,this.modelLineProjections[s].isVisible());this.modelLineProjections[s]=r;const o=this.modelLineProjections[s].getViewLineCount();let a=!1,c=0,l=-1,h=0,d=-1,u=0,g=-1;n>o?(c=this.projectedModelLineLineCounts.getPrefixSum(t-1)+1,l=c+o-1,u=l+1,g=u+(n-o)-1,a=!0):n<o?(c=this.projectedModelLineLineCounts.getPrefixSum(t-1)+1,l=c+n-1,h=l+1,d=h+(o-n)-1,a=!0):(c=this.projectedModelLineLineCounts.getPrefixSum(t-1)+1,l=c+o-1),this.projectedModelLineLineCounts.setValue(s,o);return[a,c<=l?new Os(c,l-c+1):null,h<=d?new Ms(h,d):null,u<=g?new Ds(u,g):null]}acceptVersionId(e){this._validModelVersionId=e,1!==this.modelLineProjections.length||this.modelLineProjections[0].isVisible()||this.setHiddenAreas([])}getViewLineCount(){return this.projectedModelLineLineCounts.getTotalSum()}_toValidViewLineNumber(e){if(e<1)return 1;const t=this.getViewLineCount();return e>t?t:0|e}getActiveIndentGuide(e,t,i){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t),i=this._toValidViewLineNumber(i);const s=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),n=this.convertViewPositionToModelPosition(t,this.getViewLineMinColumn(t)),r=this.convertViewPositionToModelPosition(i,this.getViewLineMinColumn(i)),o=this.model.guides.getActiveIndentGuide(s.lineNumber,n.lineNumber,r.lineNumber),a=this.convertModelPositionToViewPosition(o.startLineNumber,1),c=this.convertModelPositionToViewPosition(o.endLineNumber,this.model.getLineMaxColumn(o.endLineNumber));return{startLineNumber:a.lineNumber,endLineNumber:c.lineNumber,indent:o.indent}}getViewLineInfo(e){e=this._toValidViewLineNumber(e);const t=this.projectedModelLineLineCounts.getIndexOf(e-1),i=t.index,s=t.remainder;return new An(i+1,s)}getMinColumnOfViewLine(e){return this.modelLineProjections[e.modelLineNumber-1].getViewLineMinColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx)}getMaxColumnOfViewLine(e){return this.modelLineProjections[e.modelLineNumber-1].getViewLineMaxColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx)}getModelStartPositionOfViewLine(e){const t=this.modelLineProjections[e.modelLineNumber-1],i=t.getViewLineMinColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx),s=t.getModelColumnOfViewPosition(e.modelLineWrappedLineIdx,i);return new Y.y(e.modelLineNumber,s)}getModelEndPositionOfViewLine(e){const t=this.modelLineProjections[e.modelLineNumber-1],i=t.getViewLineMaxColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx),s=t.getModelColumnOfViewPosition(e.modelLineWrappedLineIdx,i);return new Y.y(e.modelLineNumber,s)}getViewLineInfosGroupedByModelRanges(e,t){const i=this.getViewLineInfo(e),s=this.getViewLineInfo(t),n=new Array;let r=this.getModelStartPositionOfViewLine(i),o=new Array;for(let a=i.modelLineNumber;a<=s.modelLineNumber;a++){const e=this.modelLineProjections[a-1];if(e.isVisible()){const t=a===i.modelLineNumber?i.modelLineWrappedLineIdx:0,n=a===s.modelLineNumber?s.modelLineWrappedLineIdx+1:e.getViewLineCount();for(let e=t;e<n;e++)o.push(new An(a,e))}if(!e.isVisible()&&r){const e=new Y.y(a-1,this.model.getLineMaxColumn(a-1)+1),t=q.Q.fromPositions(r,e);n.push(new Nn(t,o)),o=[],r=null}else e.isVisible()&&!r&&(r=new Y.y(a,1))}if(r){const e=q.Q.fromPositions(r,this.getModelEndPositionOfViewLine(s));n.push(new Nn(e,o))}return n}getViewLinesBracketGuides(e,t,i,s){const n=i?this.convertViewPositionToModelPosition(i.lineNumber,i.column):null,r=[];for(const o of this.getViewLineInfosGroupedByModelRanges(e,t)){const e=o.modelRange.startLineNumber,t=this.model.guides.getLinesBracketGuides(e,o.modelRange.endLineNumber,n,s);for(const i of o.viewLines){const s=t[i.modelLineNumber-e].map((e=>{if(-1!==e.forWrappedLinesAfterColumn){if(this.modelLineProjections[i.modelLineNumber-1].getViewPositionOfModelPosition(0,e.forWrappedLinesAfterColumn).lineNumber>=i.modelLineWrappedLineIdx)return}if(-1!==e.forWrappedLinesBeforeOrAtColumn){if(this.modelLineProjections[i.modelLineNumber-1].getViewPositionOfModelPosition(0,e.forWrappedLinesBeforeOrAtColumn).lineNumber<i.modelLineWrappedLineIdx)return}if(!e.horizontalLine)return e;let t=-1;if(-1!==e.column){const s=this.modelLineProjections[i.modelLineNumber-1].getViewPositionOfModelPosition(0,e.column);if(s.lineNumber===i.modelLineWrappedLineIdx)t=s.column;else if(s.lineNumber<i.modelLineWrappedLineIdx)t=this.getMinColumnOfViewLine(i);else if(s.lineNumber>i.modelLineWrappedLineIdx)return}const s=this.convertModelPositionToViewPosition(i.modelLineNumber,e.horizontalLine.endColumn),n=this.modelLineProjections[i.modelLineNumber-1].getViewPositionOfModelPosition(0,e.horizontalLine.endColumn);return n.lineNumber===i.modelLineWrappedLineIdx?new xt.TH(e.visibleColumn,t,e.className,new xt.pv(e.horizontalLine.top,s.column),-1,-1):n.lineNumber<i.modelLineWrappedLineIdx||-1!==e.visibleColumn?void 0:new xt.TH(e.visibleColumn,t,e.className,new xt.pv(e.horizontalLine.top,this.getMaxColumnOfViewLine(i)),-1,-1)}));r.push(s.filter((e=>!!e)))}}return r}getViewLinesIndentGuides(e,t){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);const i=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),s=this.convertViewPositionToModelPosition(t,this.getViewLineMaxColumn(t));let n=[];const r=[],o=[],a=i.lineNumber-1,c=s.lineNumber-1;let l=null;for(let g=a;g<=c;g++){const e=this.modelLineProjections[g];if(e.isVisible()){const t=e.getViewLineNumberOfModelPosition(0,g===a?i.column:1),s=e.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(g+1)),n=s-t+1;let c=0;n>1&&1===e.getViewLineMinColumn(this.model,g+1,s)&&(c=0===t?1:2),r.push(n),o.push(c),null===l&&(l=new Y.y(g+1,0))}else null!==l&&(n=n.concat(this.model.guides.getLinesIndentGuides(l.lineNumber,g)),l=null)}null!==l&&(n=n.concat(this.model.guides.getLinesIndentGuides(l.lineNumber,s.lineNumber)),l=null);const h=t-e+1,d=new Array(h);let u=0;for(let g=0,p=n.length;g<p;g++){let e=n[g];const t=Math.min(h-u,r[g]),i=o[g];let s;s=2===i?0:1===i?1:t;for(let n=0;n<t;n++)n===s&&(e=0),d[u++]=e}return d}getViewLineContent(e){const t=this.getViewLineInfo(e);return this.modelLineProjections[t.modelLineNumber-1].getViewLineContent(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}getViewLineLength(e){const t=this.getViewLineInfo(e);return this.modelLineProjections[t.modelLineNumber-1].getViewLineLength(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}getViewLineMinColumn(e){const t=this.getViewLineInfo(e);return this.modelLineProjections[t.modelLineNumber-1].getViewLineMinColumn(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}getViewLineMaxColumn(e){const t=this.getViewLineInfo(e);return this.modelLineProjections[t.modelLineNumber-1].getViewLineMaxColumn(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}getViewLineData(e){const t=this.getViewLineInfo(e);return this.modelLineProjections[t.modelLineNumber-1].getViewLineData(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}getViewLinesData(e,t,i){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);const s=this.projectedModelLineLineCounts.getIndexOf(e-1);let n=e;const r=s.index,o=s.remainder,a=[];for(let c=r,l=this.model.getLineCount();c<l;c++){const s=this.modelLineProjections[c];if(!s.isVisible())continue;const l=c===r?o:0;let h=s.getViewLineCount()-l,d=!1;if(n+h>t&&(d=!0,h=t-n+1),s.getViewLinesData(this.model,c+1,l,h,n-e,i,a),n+=h,d)break}return a}validateViewPosition(e,t,i){e=this._toValidViewLineNumber(e);const s=this.projectedModelLineLineCounts.getIndexOf(e-1),n=s.index,r=s.remainder,o=this.modelLineProjections[n],a=o.getViewLineMinColumn(this.model,n+1,r),c=o.getViewLineMaxColumn(this.model,n+1,r);t<a&&(t=a),t>c&&(t=c);const l=o.getModelColumnOfViewPosition(r,t);return this.model.validatePosition(new Y.y(n+1,l)).equals(i)?new Y.y(e,t):this.convertModelPositionToViewPosition(i.lineNumber,i.column)}validateViewRange(e,t){const i=this.validateViewPosition(e.startLineNumber,e.startColumn,t.getStartPosition()),s=this.validateViewPosition(e.endLineNumber,e.endColumn,t.getEndPosition());return new q.Q(i.lineNumber,i.column,s.lineNumber,s.column)}convertViewPositionToModelPosition(e,t){const i=this.getViewLineInfo(e),s=this.modelLineProjections[i.modelLineNumber-1].getModelColumnOfViewPosition(i.modelLineWrappedLineIdx,t);return this.model.validatePosition(new Y.y(i.modelLineNumber,s))}convertViewRangeToModelRange(e){const t=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),i=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);return new q.Q(t.lineNumber,t.column,i.lineNumber,i.column)}convertModelPositionToViewPosition(e,t,i=2,s=!1,n=!1){const r=this.model.validatePosition(new Y.y(e,t)),o=r.lineNumber,a=r.column;let c=o-1,l=!1;if(n)for(;c<this.modelLineProjections.length&&!this.modelLineProjections[c].isVisible();)c++,l=!0;else for(;c>0&&!this.modelLineProjections[c].isVisible();)c--,l=!0;if(0===c&&!this.modelLineProjections[c].isVisible())return new Y.y(s?0:1,1);const h=1+this.projectedModelLineLineCounts.getPrefixSum(c);let d;return d=l?n?this.modelLineProjections[c].getViewPositionOfModelPosition(h,1,i):this.modelLineProjections[c].getViewPositionOfModelPosition(h,this.model.getLineMaxColumn(c+1),i):this.modelLineProjections[o-1].getViewPositionOfModelPosition(h,a,i),d}convertModelRangeToViewRange(e,t=0){if(e.isEmpty()){const i=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn,t);return q.Q.fromPositions(i)}{const t=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn,1),i=this.convertModelPositionToViewPosition(e.endLineNumber,e.endColumn,0);return new q.Q(t.lineNumber,t.column,i.lineNumber,i.column)}}getViewLineNumberOfModelPosition(e,t){let i=e-1;if(this.modelLineProjections[i].isVisible()){const e=1+this.projectedModelLineLineCounts.getPrefixSum(i);return this.modelLineProjections[i].getViewLineNumberOfModelPosition(e,t)}for(;i>0&&!this.modelLineProjections[i].isVisible();)i--;if(0===i&&!this.modelLineProjections[i].isVisible())return 1;const s=1+this.projectedModelLineLineCounts.getPrefixSum(i);return this.modelLineProjections[i].getViewLineNumberOfModelPosition(s,this.model.getLineMaxColumn(i+1))}getDecorationsInRange(e,t,i,s,n){const r=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),o=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);if(o.lineNumber-r.lineNumber<=e.endLineNumber-e.startLineNumber)return this.model.getDecorationsInRange(new q.Q(r.lineNumber,1,o.lineNumber,o.column),t,i,s,n);let a=[];const c=r.lineNumber-1,l=o.lineNumber-1;let h=null;for(let p=c;p<=l;p++){if(this.modelLineProjections[p].isVisible())null===h&&(h=new Y.y(p+1,p===c?r.column:1));else if(null!==h){const e=this.model.getLineMaxColumn(p);a=a.concat(this.model.getDecorationsInRange(new q.Q(h.lineNumber,h.column,p,e),t,i,s)),h=null}}null!==h&&(a=a.concat(this.model.getDecorationsInRange(new q.Q(h.lineNumber,h.column,o.lineNumber,o.column),t,i,s)),h=null),a.sort(((e,t)=>{const i=q.Q.compareRangesUsingStarts(e.range,t.range);return 0===i?e.id<t.id?-1:e.id>t.id?1:0:i}));const d=[];let u=0,g=null;for(const p of a){const e=p.id;g!==e&&(g=e,d[u++]=p)}return d}getInjectedTextAt(e){const t=this.getViewLineInfo(e.lineNumber);return this.modelLineProjections[t.modelLineNumber-1].getInjectedTextAt(t.modelLineWrappedLineIdx,e.column)}normalizePosition(e,t){const i=this.getViewLineInfo(e.lineNumber);return this.modelLineProjections[i.modelLineNumber-1].normalizePosition(i.modelLineWrappedLineIdx,e,t)}getLineIndentColumn(e){const t=this.getViewLineInfo(e);return 0===t.modelLineWrappedLineIdx?this.model.getLineIndentColumn(t.modelLineNumber):0}}class An{constructor(e,t){this.modelLineNumber=e,this.modelLineWrappedLineIdx=t}}class Nn{constructor(e,t){this.modelRange=e,this.viewLines=t}}class In{constructor(e){this._lines=e}convertViewPositionToModelPosition(e){return this._lines.convertViewPositionToModelPosition(e.lineNumber,e.column)}convertViewRangeToModelRange(e){return this._lines.convertViewRangeToModelRange(e)}validateViewPosition(e,t){return this._lines.validateViewPosition(e.lineNumber,e.column,t)}validateViewRange(e,t){return this._lines.validateViewRange(e,t)}convertModelPositionToViewPosition(e,t,i,s){return this._lines.convertModelPositionToViewPosition(e.lineNumber,e.column,t,i,s)}convertModelRangeToViewRange(e,t){return this._lines.convertModelRangeToViewRange(e,t)}modelPositionIsVisible(e){return this._lines.modelPositionIsVisible(e.lineNumber,e.column)}getModelLineViewLineCount(e){return this._lines.getModelLineViewLineCount(e)}getViewLineNumberOfModelPosition(e,t){return this._lines.getViewLineNumberOfModelPosition(e,t)}}class On{constructor(e){this.model=e}dispose(){}createCoordinatesConverter(){return new Dn(this)}getHiddenAreas(){return[]}setHiddenAreas(e){return!1}setTabSize(e){return!1}setWrappingSettings(e,t,i,s){return!1}createLineBreaksComputer(){const e=[];return{addRequest:(t,i,s)=>{e.push(null)},finalize:()=>e}}onModelFlushed(){}onModelLinesDeleted(e,t,i){return new Ds(t,i)}onModelLinesInserted(e,t,i,s){return new Ms(t,i)}onModelLineChanged(e,t,i){return[!1,new Os(t,1),null,null]}acceptVersionId(e){}getViewLineCount(){return this.model.getLineCount()}getActiveIndentGuide(e,t,i){return{startLineNumber:e,endLineNumber:e,indent:0}}getViewLinesBracketGuides(e,t,i){return new Array(t-e+1).fill([])}getViewLinesIndentGuides(e,t){const i=t-e+1,s=new Array(i);for(let n=0;n<i;n++)s[n]=0;return s}getViewLineContent(e){return this.model.getLineContent(e)}getViewLineLength(e){return this.model.getLineLength(e)}getViewLineMinColumn(e){return this.model.getLineMinColumn(e)}getViewLineMaxColumn(e){return this.model.getLineMaxColumn(e)}getViewLineData(e){const t=this.model.tokenization.getLineTokens(e),i=t.getLineContent();return new Vt.GP(i,!1,1,i.length+1,0,t.inflate(),null)}getViewLinesData(e,t,i){const s=this.model.getLineCount();e=Math.min(Math.max(1,e),s),t=Math.min(Math.max(1,t),s);const n=[];for(let r=e;r<=t;r++){const t=r-e;n[t]=i[t]?this.getViewLineData(r):null}return n}getDecorationsInRange(e,t,i,s,n){return this.model.getDecorationsInRange(e,t,i,s,n)}normalizePosition(e,t){return this.model.normalizePosition(e,t)}getLineIndentColumn(e){return this.model.getLineIndentColumn(e)}getInjectedTextAt(e){return null}}class Dn{constructor(e){this._lines=e}_validPosition(e){return this._lines.model.validatePosition(e)}_validRange(e){return this._lines.model.validateRange(e)}convertViewPositionToModelPosition(e){return this._validPosition(e)}convertViewRangeToModelRange(e){return this._validRange(e)}validateViewPosition(e,t){return this._validPosition(t)}validateViewRange(e,t){return this._validRange(t)}convertModelPositionToViewPosition(e){return this._validPosition(e)}convertModelRangeToViewRange(e){return this._validRange(e)}modelPositionIsVisible(e){const t=this._lines.model.getLineCount();return!(e.lineNumber<1||e.lineNumber>t)}getModelLineViewLineCount(e){return 1}getViewLineNumberOfModelPosition(e,t){return e}}const Mn=_t.ZS.Right;class Pn{constructor(e){this.persist=0,this._requiredLanes=1,this.lanes=new Uint8Array(Math.ceil((e+1)*Mn/8))}reset(e){const t=Math.ceil((e+1)*Mn/8);this.lanes.length<t?this.lanes=new Uint8Array(t):this.lanes.fill(0),this._requiredLanes=1}get requiredLanes(){return this._requiredLanes}push(e,t,i){i&&(this.persist|=1<<e-1);for(let s=t.startLineNumber;s<=t.endLineNumber;s++){const t=Mn*s+(e-1);this.lanes[t>>>3]|=1<<t%8,this._requiredLanes=Math.max(this._requiredLanes,this.countAtLine(s))}}getLanesAtLine(e){const t=[];let i=Mn*e;for(let s=0;s<Mn;s++)(this.persist&1<<s||this.lanes[i>>>3]&1<<i%8)&&t.push(s+1),i++;return t.length?t:[_t.ZS.Center]}countAtLine(e){let t=Mn*e,i=0;for(let s=0;s<Mn;s++)(this.persist&1<<s||this.lanes[t>>>3]&1<<t%8)&&i++,t++;return i}}class Fn extends d.jG{constructor(e,t,i,s,n,r,o,a,c,l){if(super(),this.languageConfigurationService=o,this._themeService=a,this._attachedView=c,this._transactionalTarget=l,this.hiddenAreasModel=new Bn,this.previousHiddenAreas=[],this._editorId=e,this._configuration=t,this.model=i,this._eventDispatcher=new Vs,this.onEvent=this._eventDispatcher.onEvent,this.cursorConfig=new _s.d$(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._updateConfigurationViewLineCount=this._register(new Nt.uC((()=>this._updateConfigurationViewLineCountNow()),0)),this._hasFocus=!1,this._viewportStart=Un.create(this.model),this.glyphLanes=new Pn(0),this.model.isTooLargeForTokenization())this._lines=new On(this.model);else{const e=this._configuration.options,t=e.get(50),i=e.get(140),r=e.get(147),o=e.get(139),a=e.get(130);this._lines=new kn(this._editorId,this.model,s,n,t,this.model.getOptions().tabSize,i,r.wrappingColumn,o,a)}this.coordinatesConverter=this._lines.createCoordinatesConverter(),this._cursor=this._register(new nn(i,this,this.coordinatesConverter,this.cursorConfig)),this.viewLayout=this._register(new vn(this._configuration,this.getLineCount(),r)),this._register(this.viewLayout.onDidScroll((e=>{e.scrollTopChanged&&this._handleVisibleLinesChanged(),e.scrollTopChanged&&this._viewportStart.invalidate(),this._eventDispatcher.emitSingleViewEvent(new Fs(e)),this._eventDispatcher.emitOutgoingEvent(new Ks(e.oldScrollWidth,e.oldScrollLeft,e.oldScrollHeight,e.oldScrollTop,e.scrollWidth,e.scrollLeft,e.scrollHeight,e.scrollTop))}))),this._register(this.viewLayout.onDidContentSizeChange((e=>{this._eventDispatcher.emitOutgoingEvent(e)}))),this._decorations=new Cn.UB(this._editorId,this.model,this._configuration,this._lines,this.coordinatesConverter),this._registerModelEvents(),this._register(this._configuration.onDidChangeFast((e=>{try{const t=this._eventDispatcher.beginEmitViewEvents();this._onConfigurationChanged(t,e)}finally{this._eventDispatcher.endEmitViewEvents()}}))),this._register(Wt.getInstance().onDidChange((()=>{this._eventDispatcher.emitSingleViewEvent(new Bs)}))),this._register(this._themeService.onDidColorThemeChange((e=>{this._invalidateDecorationsColorCache(),this._eventDispatcher.emitSingleViewEvent(new Us(e))}))),this._updateConfigurationViewLineCountNow()}dispose(){super.dispose(),this._decorations.dispose(),this._lines.dispose(),this._viewportStart.dispose(),this._eventDispatcher.dispose()}createLineBreaksComputer(){return this._lines.createLineBreaksComputer()}addViewEventHandler(e){this._eventDispatcher.addViewEventHandler(e)}removeViewEventHandler(e){this._eventDispatcher.removeViewEventHandler(e)}_updateConfigurationViewLineCountNow(){this._configuration.setViewLineCount(this._lines.getViewLineCount())}getModelVisibleRanges(){const e=this.viewLayout.getLinesViewportData(),t=new q.Q(e.startLineNumber,this.getLineMinColumn(e.startLineNumber),e.endLineNumber,this.getLineMaxColumn(e.endLineNumber));return this._toModelVisibleRanges(t)}visibleLinesStabilized(){const e=this.getModelVisibleRanges();this._attachedView.setVisibleLines(e,!0)}_handleVisibleLinesChanged(){const e=this.getModelVisibleRanges();this._attachedView.setVisibleLines(e,!1)}setHasFocus(e){this._hasFocus=e,this._cursor.setHasFocus(e),this._eventDispatcher.emitSingleViewEvent(new As(e)),this._eventDispatcher.emitOutgoingEvent(new js(!e,e))}onCompositionStart(){this._eventDispatcher.emitSingleViewEvent(new ws)}onCompositionEnd(){this._eventDispatcher.emitSingleViewEvent(new Rs)}_captureStableViewport(){if(this._viewportStart.isValid&&this.viewLayout.getCurrentScrollTop()>0){const e=new Y.y(this._viewportStart.viewLineNumber,this.getLineMinColumn(this._viewportStart.viewLineNumber)),t=this.coordinatesConverter.convertViewPositionToModelPosition(e);return new Vn(t,this._viewportStart.startLineDelta)}return new Vn(null,0)}_onConfigurationChanged(e,t){const i=this._captureStableViewport(),s=this._configuration.options,n=s.get(50),r=s.get(140),o=s.get(147),a=s.get(139),c=s.get(130);this._lines.setWrappingSettings(n,r,o.wrappingColumn,a,c)&&(e.emitViewEvent(new ks),e.emitViewEvent(new Is),e.emitViewEvent(new xs(null)),this._cursor.onLineMappingChanged(e),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this._updateConfigurationViewLineCount.schedule()),t.hasChanged(92)&&(this._decorations.reset(),e.emitViewEvent(new xs(null))),t.hasChanged(99)&&(this._decorations.reset(),e.emitViewEvent(new xs(null))),e.emitViewEvent(new Ls(t)),this.viewLayout.onConfigurationChanged(t),i.recoverViewportStart(this.coordinatesConverter,this.viewLayout),_s.d$.shouldRecreate(t)&&(this.cursorConfig=new _s.d$(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig))}_registerModelEvents(){this._register(this.model.onDidChangeContentOrInjectedText((e=>{try{const t=this._eventDispatcher.beginEmitViewEvents();let i=!1,s=!1;const n=e instanceof Gi.Ic?e.rawContentChangedEvent.changes:e.changes,r=e instanceof Gi.Ic?e.rawContentChangedEvent.versionId:null,o=this._lines.createLineBreaksComputer();for(const e of n)switch(e.changeType){case 4:for(let t=0;t<e.detail.length;t++){const i=e.detail[t];let s=e.injectedTexts[t];s&&(s=s.filter((e=>!e.ownerId||e.ownerId===this._editorId))),o.addRequest(i,s,null)}break;case 2:{let t=null;e.injectedText&&(t=e.injectedText.filter((e=>!e.ownerId||e.ownerId===this._editorId))),o.addRequest(e.detail,t,null);break}}const a=o.finalize(),c=new m.j3(a);for(const e of n)switch(e.changeType){case 1:this._lines.onModelFlushed(),t.emitViewEvent(new ks),this._decorations.reset(),this.viewLayout.onFlushed(this.getLineCount()),i=!0;break;case 3:{const s=this._lines.onModelLinesDeleted(r,e.fromLineNumber,e.toLineNumber);null!==s&&(t.emitViewEvent(s),this.viewLayout.onLinesDeleted(s.fromLineNumber,s.toLineNumber)),i=!0;break}case 4:{const s=c.takeCount(e.detail.length),n=this._lines.onModelLinesInserted(r,e.fromLineNumber,e.toLineNumber,s);null!==n&&(t.emitViewEvent(n),this.viewLayout.onLinesInserted(n.fromLineNumber,n.toLineNumber)),i=!0;break}case 2:{const i=c.dequeue(),[n,o,a,l]=this._lines.onModelLineChanged(r,e.lineNumber,i);s=n,o&&t.emitViewEvent(o),a&&(t.emitViewEvent(a),this.viewLayout.onLinesInserted(a.fromLineNumber,a.toLineNumber)),l&&(t.emitViewEvent(l),this.viewLayout.onLinesDeleted(l.fromLineNumber,l.toLineNumber));break}}null!==r&&this._lines.acceptVersionId(r),this.viewLayout.onHeightMaybeChanged(),!i&&s&&(t.emitViewEvent(new Is),t.emitViewEvent(new xs(null)),this._cursor.onLineMappingChanged(t),this._decorations.onLineMappingChanged())}finally{this._eventDispatcher.endEmitViewEvents()}const t=this._viewportStart.isValid;if(this._viewportStart.invalidate(),this._configuration.setModelLineCount(this.model.getLineCount()),this._updateConfigurationViewLineCountNow(),!this._hasFocus&&this.model.getAttachedEditorCount()>=2&&t){const e=this.model._getTrackedRange(this._viewportStart.modelTrackedRange);if(e){const t=this.coordinatesConverter.convertModelPositionToViewPosition(e.getStartPosition()),i=this.viewLayout.getVerticalOffsetForLineNumber(t.lineNumber);this.viewLayout.setScrollPosition({scrollTop:i+this._viewportStart.startLineDelta},1)}}try{const t=this._eventDispatcher.beginEmitViewEvents();e instanceof Gi.Ic&&t.emitOutgoingEvent(new en(e.contentChangedEvent)),this._cursor.onModelContentChanged(t,e)}finally{this._eventDispatcher.endEmitViewEvents()}this._handleVisibleLinesChanged()}))),this._register(this.model.onDidChangeTokens((e=>{const t=[];for(let i=0,s=e.ranges.length;i<s;i++){const s=e.ranges[i],n=this.coordinatesConverter.convertModelPositionToViewPosition(new Y.y(s.fromLineNumber,1)).lineNumber,r=this.coordinatesConverter.convertModelPositionToViewPosition(new Y.y(s.toLineNumber,this.model.getLineMaxColumn(s.toLineNumber))).lineNumber;t[i]={fromLineNumber:n,toLineNumber:r}}this._eventDispatcher.emitSingleViewEvent(new Hs(t)),this._eventDispatcher.emitOutgoingEvent(new sn(e))}))),this._register(this.model.onDidChangeLanguageConfiguration((e=>{this._eventDispatcher.emitSingleViewEvent(new Ns),this.cursorConfig=new _s.d$(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new Js(e))}))),this._register(this.model.onDidChangeLanguage((e=>{this.cursorConfig=new _s.d$(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new Zs(e))}))),this._register(this.model.onDidChangeOptions((e=>{if(this._lines.setTabSize(this.model.getOptions().tabSize)){try{const e=this._eventDispatcher.beginEmitViewEvents();e.emitViewEvent(new ks),e.emitViewEvent(new Is),e.emitViewEvent(new xs(null)),this._cursor.onLineMappingChanged(e),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount())}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule()}this.cursorConfig=new _s.d$(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new tn(e))}))),this._register(this.model.onDidChangeDecorations((e=>{this._decorations.onModelDecorationsChanged(),this._eventDispatcher.emitSingleViewEvent(new xs(e)),this._eventDispatcher.emitOutgoingEvent(new Xs(e))})))}setHiddenAreas(e,t){this.hiddenAreasModel.setHiddenAreas(t,e);const i=this.hiddenAreasModel.getMergedRanges();if(i===this.previousHiddenAreas)return;this.previousHiddenAreas=i;const s=this._captureStableViewport();let n=!1;try{const e=this._eventDispatcher.beginEmitViewEvents();n=this._lines.setHiddenAreas(i),n&&(e.emitViewEvent(new ks),e.emitViewEvent(new Is),e.emitViewEvent(new xs(null)),this._cursor.onLineMappingChanged(e),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.onHeightMaybeChanged());const t=s.viewportStartModelPosition?.lineNumber;t&&i.some((e=>e.startLineNumber<=t&&t<=e.endLineNumber))||s.recoverViewportStart(this.coordinatesConverter,this.viewLayout)}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule(),n&&this._eventDispatcher.emitOutgoingEvent(new qs)}getVisibleRangesPlusViewportAboveBelow(){const e=this._configuration.options.get(146),t=this._configuration.options.get(67),i=Math.max(20,Math.round(e.height/t)),s=this.viewLayout.getLinesViewportData(),n=Math.max(1,s.completelyVisibleStartLineNumber-i),r=Math.min(this.getLineCount(),s.completelyVisibleEndLineNumber+i);return this._toModelVisibleRanges(new q.Q(n,this.getLineMinColumn(n),r,this.getLineMaxColumn(r)))}getVisibleRanges(){const e=this.getCompletelyVisibleViewRange();return this._toModelVisibleRanges(e)}getHiddenAreas(){return this._lines.getHiddenAreas()}_toModelVisibleRanges(e){const t=this.coordinatesConverter.convertViewRangeToModelRange(e),i=this._lines.getHiddenAreas();if(0===i.length)return[t];const s=[];let n=0,r=t.startLineNumber,o=t.startColumn;const a=t.endLineNumber,c=t.endColumn;for(let l=0,h=i.length;l<h;l++){const e=i[l].startLineNumber,t=i[l].endLineNumber;t<r||(e>a||(r<e&&(s[n++]=new q.Q(r,o,e-1,this.model.getLineMaxColumn(e-1))),r=t+1,o=1))}return(r<a||r===a&&o<c)&&(s[n++]=new q.Q(r,o,a,c)),s}getCompletelyVisibleViewRange(){const e=this.viewLayout.getLinesViewportData(),t=e.completelyVisibleStartLineNumber,i=e.completelyVisibleEndLineNumber;return new q.Q(t,this.getLineMinColumn(t),i,this.getLineMaxColumn(i))}getCompletelyVisibleViewRangeAtScrollTop(e){const t=this.viewLayout.getLinesViewportDataAtScrollTop(e),i=t.completelyVisibleStartLineNumber,s=t.completelyVisibleEndLineNumber;return new q.Q(i,this.getLineMinColumn(i),s,this.getLineMaxColumn(s))}saveState(){const e=this.viewLayout.saveState(),t=e.scrollTop,i=this.viewLayout.getLineNumberAtVerticalOffset(t),s=this.coordinatesConverter.convertViewPositionToModelPosition(new Y.y(i,this.getLineMinColumn(i))),n=this.viewLayout.getVerticalOffsetForLineNumber(i)-t;return{scrollLeft:e.scrollLeft,firstPosition:s,firstPositionDeltaTop:n}}reduceRestoreState(e){if("undefined"===typeof e.firstPosition)return this._reduceRestoreStateCompatibility(e);const t=this.model.validatePosition(e.firstPosition),i=this.coordinatesConverter.convertModelPositionToViewPosition(t),s=this.viewLayout.getVerticalOffsetForLineNumber(i.lineNumber)-e.firstPositionDeltaTop;return{scrollLeft:e.scrollLeft,scrollTop:s}}_reduceRestoreStateCompatibility(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTopWithoutViewZones}}getTabSize(){return this.model.getOptions().tabSize}getLineCount(){return this._lines.getViewLineCount()}setViewport(e,t,i){this._viewportStart.update(this,e)}getActiveIndentGuide(e,t,i){return this._lines.getActiveIndentGuide(e,t,i)}getLinesIndentGuides(e,t){return this._lines.getViewLinesIndentGuides(e,t)}getBracketGuidesInRangeByLine(e,t,i,s){return this._lines.getViewLinesBracketGuides(e,t,i,s)}getLineContent(e){return this._lines.getViewLineContent(e)}getLineLength(e){return this._lines.getViewLineLength(e)}getLineMinColumn(e){return this._lines.getViewLineMinColumn(e)}getLineMaxColumn(e){return this._lines.getViewLineMaxColumn(e)}getLineFirstNonWhitespaceColumn(e){const t=Le.HG(this.getLineContent(e));return-1===t?0:t+1}getLineLastNonWhitespaceColumn(e){const t=Le.lT(this.getLineContent(e));return-1===t?0:t+2}getMinimapDecorationsInRange(e){return this._decorations.getMinimapDecorationsInRange(e)}getDecorationsInViewport(e){return this._decorations.getDecorationsViewportData(e).decorations}getInjectedTextAt(e){return this._lines.getInjectedTextAt(e)}getViewportViewLineRenderingData(e,t){const i=this._decorations.getDecorationsViewportData(e).inlineDecorations[t-e.startLineNumber];return this._getViewLineRenderingData(t,i)}getViewLineRenderingData(e){const t=this._decorations.getInlineDecorationsOnLine(e);return this._getViewLineRenderingData(e,t)}_getViewLineRenderingData(e,t){const i=this.model.mightContainRTL(),s=this.model.mightContainNonBasicASCII(),n=this.getTabSize(),r=this._lines.getViewLineData(e);return r.inlineDecorations&&(t=[...t,...r.inlineDecorations.map((t=>t.toInlineDecoration(e)))]),new Vt.qL(r.minColumn,r.maxColumn,r.content,r.continuesWithWrappedLine,i,s,r.tokens,t,n,r.startVisibleColumn)}getViewLineData(e){return this._lines.getViewLineData(e)}getMinimapLinesRenderingData(e,t,i){const s=this._lines.getViewLinesData(e,t,i);return new Vt.nt(this.getTabSize(),s)}getAllOverviewRulerDecorations(e){const t=this.model.getOverviewRulerDecorations(this._editorId,(0,R.$C)(this._configuration.options)),i=new Hn;for(const s of t){const t=s.options,n=t.overviewRuler;if(!n)continue;const r=n.position;if(0===r)continue;const o=n.getColor(e.value),a=this.coordinatesConverter.getViewLineNumberOfModelPosition(s.range.startLineNumber,s.range.startColumn),c=this.coordinatesConverter.getViewLineNumberOfModelPosition(s.range.endLineNumber,s.range.endColumn);i.accept(o,t.zIndex,a,c,r)}return i.asArray}_invalidateDecorationsColorCache(){const e=this.model.getOverviewRulerDecorations();for(const t of e){const e=t.options.overviewRuler;e?.invalidateCachedColor();const i=t.options.minimap;i?.invalidateCachedColor()}}getValueInRange(e,t){const i=this.coordinatesConverter.convertViewRangeToModelRange(e);return this.model.getValueInRange(i,t)}getValueLengthInRange(e,t){const i=this.coordinatesConverter.convertViewRangeToModelRange(e);return this.model.getValueLengthInRange(i,t)}modifyPosition(e,t){const i=this.coordinatesConverter.convertViewPositionToModelPosition(e),s=this.model.modifyPosition(i,t);return this.coordinatesConverter.convertModelPositionToViewPosition(s)}deduceModelPositionRelativeToViewPosition(e,t,i){const s=this.coordinatesConverter.convertViewPositionToModelPosition(e);2===this.model.getEOL().length&&(t<0?t-=i:t+=i);const n=this.model.getOffsetAt(s)+t;return this.model.getPositionAt(n)}getPlainTextToCopy(e,t,i){const s=i?"\r\n":this.model.getEOL();(e=e.slice(0)).sort(q.Q.compareRangesUsingStarts);let n=!1,r=!1;for(const a of e)a.isEmpty()?n=!0:r=!0;if(!r){if(!t)return"";const i=e.map((e=>e.startLineNumber));let n="";for(let e=0;e<i.length;e++)e>0&&i[e-1]===i[e]||(n+=this.model.getLineContent(i[e])+s);return n}if(n&&t){const t=[];let s=0;for(const n of e){const e=n.startLineNumber;n.isEmpty()?e!==s&&t.push(this.model.getLineContent(e)):t.push(this.model.getValueInRange(n,i?2:0)),s=e}return 1===t.length?t[0]:t}const o=[];for(const a of e)a.isEmpty()||o.push(this.model.getValueInRange(a,i?2:0));return 1===o.length?o[0]:o}getRichTextToCopy(e,t){const i=this.model.getLanguageId();if(i===hn.vH)return null;if(1!==e.length)return null;let s=e[0];if(s.isEmpty()){if(!t)return null;const e=s.startLineNumber;s=new q.Q(e,this.model.getLineMinColumn(e),e,this.model.getLineMaxColumn(e))}const n=this._configuration.options.get(50),r=this._getColorMap();let o;if(/[:;\\\/<>]/.test(n.fontFamily)||n.fontFamily===R.jU.fontFamily)o=R.jU.fontFamily;else{o=n.fontFamily,o=o.replace(/"/g,"'");if(!/[,']/.test(o)){/[+ ]/.test(o)&&(o=`'${o}'`)}o=`${o}, ${R.jU.fontFamily}`}return{mode:i,html:`<div style="color: ${r[1]};background-color: ${r[2]};font-family: ${o};font-weight: ${n.fontWeight};font-size: ${n.fontSize}px;line-height: ${n.lineHeight}px;white-space: pre;">`+this._getHTMLToCopy(s,r)+"</div>"}}_getHTMLToCopy(e,t){const i=e.startLineNumber,s=e.startColumn,n=e.endLineNumber,r=e.endColumn,o=this.getTabSize();let a="";for(let c=i;c<=n;c++){const e=this.model.tokenization.getLineTokens(c),l=e.getLineContent(),h=c===i?s-1:0,d=c===n?r-1:l.length;a+=""===l?"<br>":(0,dn.s0)(l,e.inflate(),t,h,d,o,_.uF)}return a}_getColorMap(){const e=Me.dG.getColorMap(),t=["#000000"];if(e)for(let i=1,s=e.length;i<s;i++)t[i]=Pe.Q1.Format.CSS.formatHex(e[i]);return t}getPrimaryCursorState(){return this._cursor.getPrimaryCursorState()}getLastAddedCursorIndex(){return this._cursor.getLastAddedCursorIndex()}getCursorStates(){return this._cursor.getCursorStates()}setCursorStates(e,t,i){return this._withViewEventsCollector((s=>this._cursor.setStates(s,e,t,i)))}getCursorColumnSelectData(){return this._cursor.getCursorColumnSelectData()}getCursorAutoClosedCharacters(){return this._cursor.getAutoClosedCharacters()}setCursorColumnSelectData(e){this._cursor.setCursorColumnSelectData(e)}getPrevEditOperationType(){return this._cursor.getPrevEditOperationType()}setPrevEditOperationType(e){this._cursor.setPrevEditOperationType(e)}getSelection(){return this._cursor.getSelection()}getSelections(){return this._cursor.getSelections()}getPosition(){return this._cursor.getPrimaryCursorState().modelState.position}setSelections(e,t,i=0){this._withViewEventsCollector((s=>this._cursor.setSelections(s,e,t,i)))}saveCursorState(){return this._cursor.saveState()}restoreCursorState(e){this._withViewEventsCollector((t=>this._cursor.restoreState(t,e)))}_executeCursorEdit(e){this._cursor.context.cursorConfig.readOnly?this._eventDispatcher.emitOutgoingEvent(new Qs):this._withViewEventsCollector(e)}executeEdits(e,t,i){this._executeCursorEdit((s=>this._cursor.executeEdits(s,e,t,i)))}startComposition(){this._executeCursorEdit((e=>this._cursor.startComposition(e)))}endComposition(e){this._executeCursorEdit((t=>this._cursor.endComposition(t,e)))}type(e,t){this._executeCursorEdit((i=>this._cursor.type(i,e,t)))}compositionType(e,t,i,s,n){this._executeCursorEdit((r=>this._cursor.compositionType(r,e,t,i,s,n)))}paste(e,t,i,s){this._executeCursorEdit((n=>this._cursor.paste(n,e,t,i,s)))}cut(e){this._executeCursorEdit((t=>this._cursor.cut(t,e)))}executeCommand(e,t){this._executeCursorEdit((i=>this._cursor.executeCommand(i,e,t)))}executeCommands(e,t){this._executeCursorEdit((i=>this._cursor.executeCommands(i,e,t)))}revealAllCursors(e,t,i=!1){this._withViewEventsCollector((s=>this._cursor.revealAll(s,e,i,0,t,0)))}revealPrimaryCursor(e,t,i=!1){this._withViewEventsCollector((s=>this._cursor.revealPrimary(s,e,i,0,t,0)))}revealTopMostCursor(e){const t=this._cursor.getTopMostViewPosition(),i=new q.Q(t.lineNumber,t.column,t.lineNumber,t.column);this._withViewEventsCollector((t=>t.emitViewEvent(new Ps(e,!1,i,null,0,!0,0))))}revealBottomMostCursor(e){const t=this._cursor.getBottomMostViewPosition(),i=new q.Q(t.lineNumber,t.column,t.lineNumber,t.column);this._withViewEventsCollector((t=>t.emitViewEvent(new Ps(e,!1,i,null,0,!0,0))))}revealRange(e,t,i,s,n){this._withViewEventsCollector((r=>r.emitViewEvent(new Ps(e,!1,i,null,s,t,n))))}changeWhitespace(e){this.viewLayout.changeWhitespace(e)&&(this._eventDispatcher.emitSingleViewEvent(new Ws),this._eventDispatcher.emitOutgoingEvent(new Ys))}_withViewEventsCollector(e){return this._transactionalTarget.batchChanges((()=>{try{const t=this._eventDispatcher.beginEmitViewEvents();return e(t)}finally{this._eventDispatcher.endEmitViewEvents()}}))}batchEvents(e){this._withViewEventsCollector((()=>{e()}))}normalizePosition(e,t){return this._lines.normalizePosition(e,t)}getLineIndentColumn(e){return this._lines.getLineIndentColumn(e)}}class Un{static create(e){const t=e._setTrackedRange(null,new q.Q(1,1,1,1),1);return new Un(e,1,!1,t,0)}get viewLineNumber(){return this._viewLineNumber}get isValid(){return this._isValid}get modelTrackedRange(){return this._modelTrackedRange}get startLineDelta(){return this._startLineDelta}constructor(e,t,i,s,n){this._model=e,this._viewLineNumber=t,this._isValid=i,this._modelTrackedRange=s,this._startLineDelta=n}dispose(){this._model._setTrackedRange(this._modelTrackedRange,null,1)}update(e,t){const i=e.coordinatesConverter.convertViewPositionToModelPosition(new Y.y(t,e.getLineMinColumn(t))),s=e.model._setTrackedRange(this._modelTrackedRange,new q.Q(i.lineNumber,i.column,i.lineNumber,i.column),1),n=e.viewLayout.getVerticalOffsetForLineNumber(t),r=e.viewLayout.getCurrentScrollTop();this._viewLineNumber=t,this._isValid=!0,this._modelTrackedRange=s,this._startLineDelta=r-n}invalidate(){this._isValid=!1}}class Hn{constructor(){this._asMap=Object.create(null),this.asArray=[]}accept(e,t,i,s,n){const r=this._asMap[e];if(r){const e=r.data,t=e[e.length-3],o=e[e.length-1];if(t===n&&o+1>=i)return void(s>o&&(e[e.length-1]=s));e.push(n,i,s)}else{const r=new Vt.Uv(e,t,[n,i,s]);this._asMap[e]=r,this.asArray.push(r)}}}class Bn{constructor(){this.hiddenAreas=new Map,this.shouldRecompute=!1,this.ranges=[]}setHiddenAreas(e,t){const i=this.hiddenAreas.get(e);i&&Wn(i,t)||(this.hiddenAreas.set(e,t),this.shouldRecompute=!0)}getMergedRanges(){if(!this.shouldRecompute)return this.ranges;this.shouldRecompute=!1;const e=Array.from(this.hiddenAreas.values()).reduce(((e,t)=>function(e,t){const i=[];let s=0,n=0;for(;s<e.length&&n<t.length;){const r=e[s],o=t[n];if(r.endLineNumber<o.startLineNumber-1)i.push(e[s++]);else if(o.endLineNumber<r.startLineNumber-1)i.push(t[n++]);else{const e=Math.min(r.startLineNumber,o.startLineNumber),t=Math.max(r.endLineNumber,o.endLineNumber);i.push(new q.Q(e,1,t,1)),s++,n++}}for(;s<e.length;)i.push(e[s++]);for(;n<t.length;)i.push(t[n++]);return i}(e,t)),[]);return Wn(this.ranges,e)||(this.ranges=e),this.ranges}}function Wn(e,t){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(!e[i].equalsRange(t[i]))return!1;return!0}class Vn{constructor(e,t){this.viewportStartModelPosition=e,this.startLineDelta=t}recoverViewportStart(e,t){if(!this.viewportStartModelPosition)return;const i=e.convertModelPositionToViewPosition(this.viewportStartModelPosition),s=t.getVerticalOffsetForLineNumber(i.lineNumber);t.setScrollPosition({scrollTop:s+this.startLineDelta},1)}}var zn,Gn=i(50091),jn=i(32848),Kn=i(58345),Yn=i(58591),qn=i(27195),$n=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Qn=function(e,t){return function(i,s){t(i,s,e)}};let Xn=class extends d.jG{static{zn=this}static{this.dropIntoEditorDecorationOptions=ss.kI.register({description:"workbench-dnd-target",className:"dnd-target"})}get isSimpleWidget(){return this._configuration.isSimpleWidget}get contextMenuId(){return this._configuration.contextMenuId}constructor(e,t,i,s,r,o,a,d,u,g,p,m){super(),this.languageConfigurationService=p,this._deliveryQueue=(0,h.Qy)(),this._contributions=this._register(new Xi),this._onDidDispose=this._register(new h.vl),this.onDidDispose=this._onDidDispose.event,this._onDidChangeModelContent=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelContent=this._onDidChangeModelContent.event,this._onDidChangeModelLanguage=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelLanguage=this._onDidChangeModelLanguage.event,this._onDidChangeModelLanguageConfiguration=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelLanguageConfiguration=this._onDidChangeModelLanguageConfiguration.event,this._onDidChangeModelOptions=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelOptions=this._onDidChangeModelOptions.event,this._onDidChangeModelDecorations=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelDecorations=this._onDidChangeModelDecorations.event,this._onDidChangeModelTokens=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelTokens=this._onDidChangeModelTokens.event,this._onDidChangeConfiguration=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._onWillChangeModel=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onWillChangeModel=this._onWillChangeModel.event,this._onDidChangeModel=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeModel=this._onDidChangeModel.event,this._onDidChangeCursorPosition=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeCursorPosition=this._onDidChangeCursorPosition.event,this._onDidChangeCursorSelection=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeCursorSelection=this._onDidChangeCursorSelection.event,this._onDidAttemptReadOnlyEdit=this._register(new tr(this._contributions,this._deliveryQueue)),this.onDidAttemptReadOnlyEdit=this._onDidAttemptReadOnlyEdit.event,this._onDidLayoutChange=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidLayoutChange=this._onDidLayoutChange.event,this._editorTextFocus=this._register(new er({deliveryQueue:this._deliveryQueue})),this.onDidFocusEditorText=this._editorTextFocus.onDidChangeToTrue,this.onDidBlurEditorText=this._editorTextFocus.onDidChangeToFalse,this._editorWidgetFocus=this._register(new er({deliveryQueue:this._deliveryQueue})),this.onDidFocusEditorWidget=this._editorWidgetFocus.onDidChangeToTrue,this.onDidBlurEditorWidget=this._editorWidgetFocus.onDidChangeToFalse,this._onWillType=this._register(new tr(this._contributions,this._deliveryQueue)),this.onWillType=this._onWillType.event,this._onDidType=this._register(new tr(this._contributions,this._deliveryQueue)),this.onDidType=this._onDidType.event,this._onDidCompositionStart=this._register(new tr(this._contributions,this._deliveryQueue)),this.onDidCompositionStart=this._onDidCompositionStart.event,this._onDidCompositionEnd=this._register(new tr(this._contributions,this._deliveryQueue)),this.onDidCompositionEnd=this._onDidCompositionEnd.event,this._onDidPaste=this._register(new tr(this._contributions,this._deliveryQueue)),this.onDidPaste=this._onDidPaste.event,this._onMouseUp=this._register(new tr(this._contributions,this._deliveryQueue)),this.onMouseUp=this._onMouseUp.event,this._onMouseDown=this._register(new tr(this._contributions,this._deliveryQueue)),this.onMouseDown=this._onMouseDown.event,this._onMouseDrag=this._register(new tr(this._contributions,this._deliveryQueue)),this.onMouseDrag=this._onMouseDrag.event,this._onMouseDrop=this._register(new tr(this._contributions,this._deliveryQueue)),this.onMouseDrop=this._onMouseDrop.event,this._onMouseDropCanceled=this._register(new tr(this._contributions,this._deliveryQueue)),this.onMouseDropCanceled=this._onMouseDropCanceled.event,this._onDropIntoEditor=this._register(new tr(this._contributions,this._deliveryQueue)),this.onDropIntoEditor=this._onDropIntoEditor.event,this._onContextMenu=this._register(new tr(this._contributions,this._deliveryQueue)),this.onContextMenu=this._onContextMenu.event,this._onMouseMove=this._register(new tr(this._contributions,this._deliveryQueue)),this.onMouseMove=this._onMouseMove.event,this._onMouseLeave=this._register(new tr(this._contributions,this._deliveryQueue)),this.onMouseLeave=this._onMouseLeave.event,this._onMouseWheel=this._register(new tr(this._contributions,this._deliveryQueue)),this.onMouseWheel=this._onMouseWheel.event,this._onKeyUp=this._register(new tr(this._contributions,this._deliveryQueue)),this.onKeyUp=this._onKeyUp.event,this._onKeyDown=this._register(new tr(this._contributions,this._deliveryQueue)),this.onKeyDown=this._onKeyDown.event,this._onDidContentSizeChange=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._onDidScrollChange=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidScrollChange=this._onDidScrollChange.event,this._onDidChangeViewZones=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeViewZones=this._onDidChangeViewZones.event,this._onDidChangeHiddenAreas=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeHiddenAreas=this._onDidChangeHiddenAreas.event,this._updateCounter=0,this._onBeginUpdate=this._register(new h.vl),this.onBeginUpdate=this._onBeginUpdate.event,this._onEndUpdate=this._register(new h.vl),this.onEndUpdate=this._onEndUpdate.event,this._actions=new Map,this._bannerDomNode=null,this._dropIntoEditorDecorations=this.createDecorationsCollection(),r.willCreateCodeEditor();const f={...t};let _;this._domElement=e,this._overflowWidgetsDomNode=f.overflowWidgetsDomNode,delete f.overflowWidgetsDomNode,this._id=++Zn,this._decorationTypeKeysToIds={},this._decorationTypeSubtypes={},this._telemetryData=i.telemetryData,this._configuration=this._register(this._createConfiguration(i.isSimpleWidget||!1,i.contextMenuId??(i.isSimpleWidget?qn.D8.SimpleEditorContext:qn.D8.EditorContext),f,g)),this._register(this._configuration.onDidChange((e=>{this._onDidChangeConfiguration.fire(e);const t=this._configuration.options;if(e.hasChanged(146)){const e=t.get(146);this._onDidLayoutChange.fire(e)}}))),this._contextKeyService=this._register(a.createScoped(this._domElement)),this._notificationService=u,this._codeEditorService=r,this._commandService=o,this._themeService=d,this._register(new ir(this,this._contextKeyService)),this._register(new sr(this,this._contextKeyService,m)),this._instantiationService=this._register(s.createChild(new Kn.a([jn.fN,this._contextKeyService]))),this._modelData=null,this._focusTracker=new nr(e,this._overflowWidgetsDomNode),this._register(this._focusTracker.onChange((()=>{this._editorWidgetFocus.setValue(this._focusTracker.hasFocus())}))),this._contentWidgets={},this._overlayWidgets={},this._glyphMarginWidgets={},_=Array.isArray(i.contributions)?i.contributions:n.dS.getEditorContributions(),this._contributions.initialize(this,_,this._instantiationService);for(const c of n.dS.getEditorActions()){if(this._actions.has(c.id)){(0,l.dz)(new Error(`Cannot have two actions with the same id ${c.id}`));continue}const e=new Ji.f(c.id,c.label,c.alias,c.metadata,c.precondition??void 0,(e=>this._instantiationService.invokeFunction((t=>Promise.resolve(c.runEditorCommand(t,this,e))))),this._contextKeyService);this._actions.set(e.id,e)}const v=()=>!this._configuration.options.get(92)&&this._configuration.options.get(36).enabled;this._register(new c.pN(this._domElement,{onDragOver:e=>{if(!v())return;const t=this.getTargetAtClientPoint(e.clientX,e.clientY);t?.position&&this.showDropIndicatorAt(t.position)},onDrop:async e=>{if(!v())return;if(this.removeDropIndicator(),!e.dataTransfer)return;const t=this.getTargetAtClientPoint(e.clientX,e.clientY);t?.position&&this._onDropIntoEditor.fire({position:t.position,event:e})},onDragLeave:()=>{this.removeDropIndicator()},onDragEnd:()=>{this.removeDropIndicator()}})),this._codeEditorService.addCodeEditor(this)}writeScreenReaderContent(e){this._modelData?.view.writeScreenReaderContent(e)}_createConfiguration(e,t,i,s){return new I(e,t,i,this._domElement,s)}getId(){return this.getEditorType()+":"+this._id}getEditorType(){return es._.ICodeEditor}dispose(){this._codeEditorService.removeCodeEditor(this),this._focusTracker.dispose(),this._actions.clear(),this._contentWidgets={},this._overlayWidgets={},this._removeDecorationTypes(),this._postDetachModelCleanup(this._detachModel()),this._onDidDispose.fire(),super.dispose()}invokeWithinContext(e){return this._instantiationService.invokeFunction(e)}updateOptions(e){this._configuration.updateOptions(e||{})}getOptions(){return this._configuration.options}getOption(e){return this._configuration.options.get(e)}getRawOptions(){return this._configuration.getRawOptions()}getOverflowWidgetsDomNode(){return this._overflowWidgetsDomNode}getConfiguredWordAtPosition(e){return this._modelData?Zi.z.getWordAtPosition(this._modelData.model,this._configuration.options.get(132),this._configuration.options.get(131),e):null}getValue(e=null){if(!this._modelData)return"";const t=!(!e||!e.preserveBOM);let i=0;return e&&e.lineEnding&&"\n"===e.lineEnding?i=1:e&&e.lineEnding&&"\r\n"===e.lineEnding&&(i=2),this._modelData.model.getValue(i,t)}setValue(e){try{if(this._beginUpdate(),!this._modelData)return;this._modelData.model.setValue(e)}finally{this._endUpdate()}}getModel(){return this._modelData?this._modelData.model:null}setModel(e=null){try{this._beginUpdate();const t=e;if(null===this._modelData&&null===t)return;if(this._modelData&&this._modelData.model===t)return;const i={oldModelUrl:this._modelData?.model.uri||null,newModelUrl:t?.uri||null};this._onWillChangeModel.fire(i);const s=this.hasTextFocus(),n=this._detachModel();this._attachModel(t),s&&this.hasModel()&&this.focus(),this._removeDecorationTypes(),this._onDidChangeModel.fire(i),this._postDetachModelCleanup(n),this._contributionsDisposable=this._contributions.onAfterModelAttached()}finally{this._endUpdate()}}_removeDecorationTypes(){if(this._decorationTypeKeysToIds={},this._decorationTypeSubtypes){for(const e in this._decorationTypeSubtypes){const t=this._decorationTypeSubtypes[e];for(const i in t)this._removeDecorationType(e+"-"+i)}this._decorationTypeSubtypes={}}}getVisibleRanges(){return this._modelData?this._modelData.viewModel.getVisibleRanges():[]}getVisibleRangesPlusViewportAboveBelow(){return this._modelData?this._modelData.viewModel.getVisibleRangesPlusViewportAboveBelow():[]}getWhitespaces(){return this._modelData?this._modelData.viewModel.viewLayout.getWhitespaces():[]}static _getVerticalOffsetAfterPosition(e,t,i,s){const n=e.model.validatePosition({lineNumber:t,column:i}),r=e.viewModel.coordinatesConverter.convertModelPositionToViewPosition(n);return e.viewModel.viewLayout.getVerticalOffsetAfterLineNumber(r.lineNumber,s)}getTopForLineNumber(e,t=!1){return this._modelData?zn._getVerticalOffsetForPosition(this._modelData,e,1,t):-1}getTopForPosition(e,t){return this._modelData?zn._getVerticalOffsetForPosition(this._modelData,e,t,!1):-1}static _getVerticalOffsetForPosition(e,t,i,s=!1){const n=e.model.validatePosition({lineNumber:t,column:i}),r=e.viewModel.coordinatesConverter.convertModelPositionToViewPosition(n);return e.viewModel.viewLayout.getVerticalOffsetForLineNumber(r.lineNumber,s)}getBottomForLineNumber(e,t=!1){if(!this._modelData)return-1;const i=this._modelData.model.getLineMaxColumn(e);return zn._getVerticalOffsetAfterPosition(this._modelData,e,i,t)}setHiddenAreas(e,t){this._modelData?.viewModel.setHiddenAreas(e.map((e=>q.Q.lift(e))),t)}getVisibleColumnFromPosition(e){if(!this._modelData)return e.column;const t=this._modelData.model.validatePosition(e),i=this._modelData.model.getOptions().tabSize;return $.A.visibleColumnFromColumn(this._modelData.model.getLineContent(t.lineNumber),t.column,i)+1}getPosition(){return this._modelData?this._modelData.viewModel.getPosition():null}setPosition(e,t="api"){if(this._modelData){if(!Y.y.isIPosition(e))throw new Error("Invalid arguments");this._modelData.viewModel.setSelections(t,[{selectionStartLineNumber:e.lineNumber,selectionStartColumn:e.column,positionLineNumber:e.lineNumber,positionColumn:e.column}])}}_sendRevealRange(e,t,i,s){if(!this._modelData)return;if(!q.Q.isIRange(e))throw new Error("Invalid arguments");const n=this._modelData.model.validateRange(e),r=this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange(n);this._modelData.viewModel.revealRange("api",i,r,t,s)}revealLine(e,t=0){this._revealLine(e,0,t)}revealLineInCenter(e,t=0){this._revealLine(e,1,t)}revealLineInCenterIfOutsideViewport(e,t=0){this._revealLine(e,2,t)}revealLineNearTop(e,t=0){this._revealLine(e,5,t)}_revealLine(e,t,i){if("number"!==typeof e)throw new Error("Invalid arguments");this._sendRevealRange(new q.Q(e,1,e,1),t,!1,i)}revealPosition(e,t=0){this._revealPosition(e,0,!0,t)}revealPositionInCenter(e,t=0){this._revealPosition(e,1,!0,t)}revealPositionInCenterIfOutsideViewport(e,t=0){this._revealPosition(e,2,!0,t)}revealPositionNearTop(e,t=0){this._revealPosition(e,5,!0,t)}_revealPosition(e,t,i,s){if(!Y.y.isIPosition(e))throw new Error("Invalid arguments");this._sendRevealRange(new q.Q(e.lineNumber,e.column,e.lineNumber,e.column),t,i,s)}getSelection(){return this._modelData?this._modelData.viewModel.getSelection():null}getSelections(){return this._modelData?this._modelData.viewModel.getSelections():null}setSelection(e,t="api"){const i=pe.L.isISelection(e),s=q.Q.isIRange(e);if(!i&&!s)throw new Error("Invalid arguments");if(i)this._setSelectionImpl(e,t);else if(s){const i={selectionStartLineNumber:e.startLineNumber,selectionStartColumn:e.startColumn,positionLineNumber:e.endLineNumber,positionColumn:e.endColumn};this._setSelectionImpl(i,t)}}_setSelectionImpl(e,t){if(!this._modelData)return;const i=new pe.L(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn);this._modelData.viewModel.setSelections(t,[i])}revealLines(e,t,i=0){this._revealLines(e,t,0,i)}revealLinesInCenter(e,t,i=0){this._revealLines(e,t,1,i)}revealLinesInCenterIfOutsideViewport(e,t,i=0){this._revealLines(e,t,2,i)}revealLinesNearTop(e,t,i=0){this._revealLines(e,t,5,i)}_revealLines(e,t,i,s){if("number"!==typeof e||"number"!==typeof t)throw new Error("Invalid arguments");this._sendRevealRange(new q.Q(e,1,t,1),i,!1,s)}revealRange(e,t=0,i=!1,s=!0){this._revealRange(e,i?1:0,s,t)}revealRangeInCenter(e,t=0){this._revealRange(e,1,!0,t)}revealRangeInCenterIfOutsideViewport(e,t=0){this._revealRange(e,2,!0,t)}revealRangeNearTop(e,t=0){this._revealRange(e,5,!0,t)}revealRangeNearTopIfOutsideViewport(e,t=0){this._revealRange(e,6,!0,t)}revealRangeAtTop(e,t=0){this._revealRange(e,3,!0,t)}_revealRange(e,t,i,s){if(!q.Q.isIRange(e))throw new Error("Invalid arguments");this._sendRevealRange(q.Q.lift(e),t,i,s)}setSelections(e,t="api",i=0){if(this._modelData){if(!e||0===e.length)throw new Error("Invalid arguments");for(let t=0,i=e.length;t<i;t++)if(!pe.L.isISelection(e[t]))throw new Error("Invalid arguments");this._modelData.viewModel.setSelections(t,e,i)}}getContentWidth(){return this._modelData?this._modelData.viewModel.viewLayout.getContentWidth():-1}getScrollWidth(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollWidth():-1}getScrollLeft(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollLeft():-1}getContentHeight(){return this._modelData?this._modelData.viewModel.viewLayout.getContentHeight():-1}getScrollHeight(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollHeight():-1}getScrollTop(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollTop():-1}setScrollLeft(e,t=1){if(this._modelData){if("number"!==typeof e)throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPosition({scrollLeft:e},t)}}setScrollTop(e,t=1){if(this._modelData){if("number"!==typeof e)throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPosition({scrollTop:e},t)}}setScrollPosition(e,t=1){this._modelData&&this._modelData.viewModel.viewLayout.setScrollPosition(e,t)}hasPendingScrollAnimation(){return!!this._modelData&&this._modelData.viewModel.viewLayout.hasPendingScrollAnimation()}saveViewState(){if(!this._modelData)return null;const e=this._contributions.saveViewState();return{cursorState:this._modelData.viewModel.saveCursorState(),viewState:this._modelData.viewModel.saveState(),contributionsState:e}}restoreViewState(e){if(!this._modelData||!this._modelData.hasRealView)return;const t=e;if(t&&t.cursorState&&t.viewState){const e=t.cursorState;Array.isArray(e)?e.length>0&&this._modelData.viewModel.restoreCursorState(e):this._modelData.viewModel.restoreCursorState([e]),this._contributions.restoreViewState(t.contributionsState||{});const i=this._modelData.viewModel.reduceRestoreState(t.viewState);this._modelData.view.restoreState(i)}}handleInitialized(){this._getViewModel()?.visibleLinesStabilized()}getContribution(e){return this._contributions.get(e)}getActions(){return Array.from(this._actions.values())}getSupportedActions(){let e=this.getActions();return e=e.filter((e=>e.isSupported())),e}getAction(e){return this._actions.get(e)||null}trigger(e,t,i){i=i||{};try{switch(this._beginUpdate(),t){case"compositionStart":return void this._startComposition();case"compositionEnd":return void this._endComposition(e);case"type":{const t=i;return void this._type(e,t.text||"")}case"replacePreviousChar":{const t=i;return void this._compositionType(e,t.text||"",t.replaceCharCnt||0,0,0)}case"compositionType":{const t=i;return void this._compositionType(e,t.text||"",t.replacePrevCharCnt||0,t.replaceNextCharCnt||0,t.positionDelta||0)}case"paste":{const t=i;return void this._paste(e,t.text||"",t.pasteOnNewLine||!1,t.multicursorText||null,t.mode||null,t.clipboardEvent)}case"cut":return void this._cut(e)}const s=this.getAction(t);if(s)return void Promise.resolve(s.run(i)).then(void 0,l.dz);if(!this._modelData)return;if(this._triggerEditorCommand(e,t,i))return;this._triggerCommand(t,i)}finally{this._endUpdate()}}_triggerCommand(e,t){this._commandService.executeCommand(e,t)}_startComposition(){this._modelData&&(this._modelData.viewModel.startComposition(),this._onDidCompositionStart.fire())}_endComposition(e){this._modelData&&(this._modelData.viewModel.endComposition(e),this._onDidCompositionEnd.fire())}_type(e,t){this._modelData&&0!==t.length&&("keyboard"===e&&this._onWillType.fire(t),this._modelData.viewModel.type(t,e),"keyboard"===e&&this._onDidType.fire(t))}_compositionType(e,t,i,s,n){this._modelData&&this._modelData.viewModel.compositionType(t,i,s,n,e)}_paste(e,t,i,s,n,r){if(!this._modelData)return;const o=this._modelData.viewModel,a=o.getSelection().getStartPosition();o.paste(t,i,s,e);const c=o.getSelection().getStartPosition();"keyboard"===e&&this._onDidPaste.fire({clipboardEvent:r,range:new q.Q(a.lineNumber,a.column,c.lineNumber,c.column),languageId:n})}_cut(e){this._modelData&&this._modelData.viewModel.cut(e)}_triggerEditorCommand(e,t,i){const s=n.dS.getEditorCommand(t);return!!s&&((i=i||{}).source=e,this._instantiationService.invokeFunction((e=>{Promise.resolve(s.runEditorCommand(e,this,i)).then(void 0,l.dz)})),!0)}_getViewModel(){return this._modelData?this._modelData.viewModel:null}pushUndoStop(){return!!this._modelData&&(!this._configuration.options.get(92)&&(this._modelData.model.pushStackElement(),!0))}popUndoStop(){return!!this._modelData&&(!this._configuration.options.get(92)&&(this._modelData.model.popStackElement(),!0))}executeEdits(e,t,i){if(!this._modelData)return!1;if(this._configuration.options.get(92))return!1;let s;return s=i?Array.isArray(i)?()=>i:i:()=>null,this._modelData.viewModel.executeEdits(e,t,s),!0}executeCommand(e,t){this._modelData&&this._modelData.viewModel.executeCommand(t,e)}executeCommands(e,t){this._modelData&&this._modelData.viewModel.executeCommands(t,e)}createDecorationsCollection(e){return new rr(this,e)}changeDecorations(e){return this._modelData?this._modelData.model.changeDecorations(e,this._id):null}getLineDecorations(e){return this._modelData?this._modelData.model.getLineDecorations(e,this._id,(0,R.$C)(this._configuration.options)):null}getDecorationsInRange(e){return this._modelData?this._modelData.model.getDecorationsInRange(e,this._id,(0,R.$C)(this._configuration.options)):null}deltaDecorations(e,t){return this._modelData?0===e.length&&0===t.length?e:this._modelData.model.deltaDecorations(e,t,this._id):[]}removeDecorations(e){this._modelData&&0!==e.length&&this._modelData.model.changeDecorations((t=>{t.deltaDecorations(e,[])}))}removeDecorationsByType(e){const t=this._decorationTypeKeysToIds[e];t&&this.changeDecorations((e=>e.deltaDecorations(t,[]))),this._decorationTypeKeysToIds.hasOwnProperty(e)&&delete this._decorationTypeKeysToIds[e],this._decorationTypeSubtypes.hasOwnProperty(e)&&delete this._decorationTypeSubtypes[e]}getLayoutInfo(){return this._configuration.options.get(146)}createOverviewRuler(e){return this._modelData&&this._modelData.hasRealView?this._modelData.view.createOverviewRuler(e):null}getContainerDomNode(){return this._domElement}getDomNode(){return this._modelData&&this._modelData.hasRealView?this._modelData.view.domNode.domNode:null}delegateVerticalScrollbarPointerDown(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.delegateVerticalScrollbarPointerDown(e)}delegateScrollFromMouseWheelEvent(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.delegateScrollFromMouseWheelEvent(e)}layout(e,t=!1){this._configuration.observeContainer(e),t||this.render()}focus(){this._modelData&&this._modelData.hasRealView&&this._modelData.view.focus()}hasTextFocus(){return!(!this._modelData||!this._modelData.hasRealView)&&this._modelData.view.isFocused()}hasWidgetFocus(){return this._focusTracker&&this._focusTracker.hasFocus()}addContentWidget(e){const t={widget:e,position:e.getPosition()};this._contentWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting a content widget with the same id:"+e.getId()),this._contentWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addContentWidget(t)}layoutContentWidget(e){const t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){const i=this._contentWidgets[t];i.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutContentWidget(i)}}removeContentWidget(e){const t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){const e=this._contentWidgets[t];delete this._contentWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeContentWidget(e)}}addOverlayWidget(e){const t={widget:e,position:e.getPosition()};this._overlayWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting an overlay widget with the same id."),this._overlayWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addOverlayWidget(t)}layoutOverlayWidget(e){const t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){const i=this._overlayWidgets[t];i.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutOverlayWidget(i)}}removeOverlayWidget(e){const t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){const e=this._overlayWidgets[t];delete this._overlayWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeOverlayWidget(e)}}addGlyphMarginWidget(e){const t={widget:e,position:e.getPosition()};this._glyphMarginWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting a glyph margin widget with the same id."),this._glyphMarginWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addGlyphMarginWidget(t)}layoutGlyphMarginWidget(e){const t=e.getId();if(this._glyphMarginWidgets.hasOwnProperty(t)){const i=this._glyphMarginWidgets[t];i.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutGlyphMarginWidget(i)}}removeGlyphMarginWidget(e){const t=e.getId();if(this._glyphMarginWidgets.hasOwnProperty(t)){const e=this._glyphMarginWidgets[t];delete this._glyphMarginWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeGlyphMarginWidget(e)}}changeViewZones(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.change(e)}getTargetAtClientPoint(e,t){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getTargetAtClientPoint(e,t):null}getScrolledVisiblePosition(e){if(!this._modelData||!this._modelData.hasRealView)return null;const t=this._modelData.model.validatePosition(e),i=this._configuration.options,s=i.get(146);return{top:zn._getVerticalOffsetForPosition(this._modelData,t.lineNumber,t.column)-this.getScrollTop(),left:this._modelData.view.getOffsetForColumn(t.lineNumber,t.column)+s.glyphMarginWidth+s.lineNumbersWidth+s.decorationsWidth-this.getScrollLeft(),height:i.get(67)}}getOffsetForColumn(e,t){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getOffsetForColumn(e,t):-1}render(e=!1){this._modelData&&this._modelData.hasRealView&&this._modelData.viewModel.batchEvents((()=>{this._modelData.view.render(!0,e)}))}setAriaOptions(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.setAriaOptions(e)}applyFontInfo(e){(0,g.M)(e,this._configuration.options.get(50))}setBanner(e,t){this._bannerDomNode&&this._domElement.contains(this._bannerDomNode)&&this._bannerDomNode.remove(),this._bannerDomNode=e,this._configuration.setReservedHeight(e?t:0),this._bannerDomNode&&this._domElement.prepend(this._bannerDomNode)}_attachModel(e){if(!e)return void(this._modelData=null);const t=[];this._domElement.setAttribute("data-mode-id",e.getLanguageId()),this._configuration.setIsDominatedByLongLines(e.isDominatedByLongLines()),this._configuration.setModelLineCount(e.getLineCount());const i=e.onBeforeAttached(),s=new Fn(this._id,this._configuration,e,Ki.create(c.zk(this._domElement)),os.create(this._configuration.options),(e=>c.PG(c.zk(this._domElement),e)),this.languageConfigurationService,this._themeService,i,{batchChanges:e=>{try{return this._beginUpdate(),e()}finally{this._endUpdate()}}});t.push(e.onWillDispose((()=>this.setModel(null)))),t.push(s.onEvent((t=>{switch(t.kind){case 0:this._onDidContentSizeChange.fire(t);break;case 1:this._editorTextFocus.setValue(t.hasFocus);break;case 2:this._onDidScrollChange.fire(t);break;case 3:this._onDidChangeViewZones.fire();break;case 4:this._onDidChangeHiddenAreas.fire();break;case 5:this._onDidAttemptReadOnlyEdit.fire();break;case 6:{if(t.reachedMaxCursorCount){const e=this.getOption(80),t=Re.kg("cursors.maximum","The number of cursors has been limited to {0}. Consider using [find and replace](https://code.visualstudio.com/docs/editor/codebasics#_find-and-replace) for larger changes or increase the editor multi cursor limit setting.",e);this._notificationService.prompt(Yn.AI.Warning,t,[{label:"Find and Replace",run:()=>{this._commandService.executeCommand("editor.action.startFindReplaceAction")}},{label:Re.kg("goToSetting","Increase Multi Cursor Limit"),run:()=>{this._commandService.executeCommand("workbench.action.openSettings2",{query:"editor.multiCursorLimit"})}}])}const e=[];for(let n=0,r=t.selections.length;n<r;n++)e[n]=t.selections[n].getPosition();const i={position:e[0],secondaryPositions:e.slice(1),reason:t.reason,source:t.source};this._onDidChangeCursorPosition.fire(i);const s={selection:t.selections[0],secondarySelections:t.selections.slice(1),modelVersionId:t.modelVersionId,oldSelections:t.oldSelections,oldModelVersionId:t.oldModelVersionId,source:t.source,reason:t.reason};this._onDidChangeCursorSelection.fire(s);break}case 7:this._onDidChangeModelDecorations.fire(t.event);break;case 8:this._domElement.setAttribute("data-mode-id",e.getLanguageId()),this._onDidChangeModelLanguage.fire(t.event);break;case 9:this._onDidChangeModelLanguageConfiguration.fire(t.event);break;case 10:this._onDidChangeModelContent.fire(t.event);break;case 11:this._onDidChangeModelOptions.fire(t.event);break;case 12:this._onDidChangeModelTokens.fire(t.event)}})));const[n,r]=this._createView(s);if(r){this._domElement.appendChild(n.domNode.domNode);let t=Object.keys(this._contentWidgets);for(let e=0,i=t.length;e<i;e++){const i=t[e];n.addContentWidget(this._contentWidgets[i])}t=Object.keys(this._overlayWidgets);for(let e=0,i=t.length;e<i;e++){const i=t[e];n.addOverlayWidget(this._overlayWidgets[i])}t=Object.keys(this._glyphMarginWidgets);for(let e=0,i=t.length;e<i;e++){const i=t[e];n.addGlyphMarginWidget(this._glyphMarginWidgets[i])}n.render(!1,!0),n.domNode.domNode.setAttribute("data-uri",e.uri.toString())}this._modelData=new Jn(e,s,n,r,t,i)}_createView(e){let t;t=this.isSimpleWidget?{paste:(e,t,i,s)=>{this._paste("keyboard",e,t,i,s)},type:e=>{this._type("keyboard",e)},compositionType:(e,t,i,s)=>{this._compositionType("keyboard",e,t,i,s)},startComposition:()=>{this._startComposition()},endComposition:()=>{this._endComposition("keyboard")},cut:()=>{this._cut("keyboard")}}:{paste:(e,t,i,s)=>{const n={text:e,pasteOnNewLine:t,multicursorText:i,mode:s};this._commandService.executeCommand("paste",n)},type:e=>{const t={text:e};this._commandService.executeCommand("type",t)},compositionType:(e,t,i,s)=>{if(i||s){const n={text:e,replacePrevCharCnt:t,replaceNextCharCnt:i,positionDelta:s};this._commandService.executeCommand("compositionType",n)}else{const i={text:e,replaceCharCnt:t};this._commandService.executeCommand("replacePreviousChar",i)}},startComposition:()=>{this._commandService.executeCommand("compositionStart",{})},endComposition:()=>{this._commandService.executeCommand("compositionEnd",{})},cut:()=>{this._commandService.executeCommand("cut",{})}};const i=new st(e.coordinatesConverter);i.onKeyDown=e=>this._onKeyDown.fire(e),i.onKeyUp=e=>this._onKeyUp.fire(e),i.onContextMenu=e=>this._onContextMenu.fire(e),i.onMouseMove=e=>this._onMouseMove.fire(e),i.onMouseLeave=e=>this._onMouseLeave.fire(e),i.onMouseDown=e=>this._onMouseDown.fire(e),i.onMouseUp=e=>this._onMouseUp.fire(e),i.onMouseDrag=e=>this._onMouseDrag.fire(e),i.onMouseDrop=e=>this._onMouseDrop.fire(e),i.onMouseDropCanceled=e=>this._onMouseDropCanceled.fire(e),i.onMouseWheel=e=>this._onMouseWheel.fire(e);return[new Pi(t,this._configuration,this._themeService.getColorTheme(),e,i,this._overflowWidgetsDomNode,this._instantiationService),!0]}_postDetachModelCleanup(e){e?.removeAllDecorationsWithOwnerId(this._id)}_detachModel(){if(this._contributionsDisposable?.dispose(),this._contributionsDisposable=void 0,!this._modelData)return null;const e=this._modelData.model,t=this._modelData.hasRealView?this._modelData.view.domNode.domNode:null;return this._modelData.dispose(),this._modelData=null,this._domElement.removeAttribute("data-mode-id"),t&&this._domElement.contains(t)&&t.remove(),this._bannerDomNode&&this._domElement.contains(this._bannerDomNode)&&this._bannerDomNode.remove(),e}_removeDecorationType(e){this._codeEditorService.removeDecorationType(e)}hasModel(){return null!==this._modelData}showDropIndicatorAt(e){const t=[{range:new q.Q(e.lineNumber,e.column,e.lineNumber,e.column),options:zn.dropIntoEditorDecorationOptions}];this._dropIntoEditorDecorations.set(t),this.revealPosition(e,1)}removeDropIndicator(){this._dropIntoEditorDecorations.clear()}setContextValue(e,t){this._contextKeyService.createKey(e,t)}_beginUpdate(){this._updateCounter++,1===this._updateCounter&&this._onBeginUpdate.fire()}_endUpdate(){this._updateCounter--,0===this._updateCounter&&this._onEndUpdate.fire()}};Xn=zn=$n([Qn(3,He._Y),Qn(4,U.T),Qn(5,Gn.d),Qn(6,jn.fN),Qn(7,ke.Gy),Qn(8,Yn.Ot),Qn(9,x.j),Qn(10,is.JZ),Qn(11,ns.ILanguageFeaturesService)],Xn);let Zn=0;class Jn{constructor(e,t,i,s,n,r){this.model=e,this.viewModel=t,this.view=i,this.hasRealView=s,this.listenersToRemove=n,this.attachedView=r}dispose(){(0,d.AS)(this.listenersToRemove),this.model.onBeforeDetached(this.attachedView),this.hasRealView&&this.view.dispose(),this.viewModel.dispose()}}class er extends d.jG{constructor(e){super(),this._emitterOptions=e,this._onDidChangeToTrue=this._register(new h.vl(this._emitterOptions)),this.onDidChangeToTrue=this._onDidChangeToTrue.event,this._onDidChangeToFalse=this._register(new h.vl(this._emitterOptions)),this.onDidChangeToFalse=this._onDidChangeToFalse.event,this._value=0}setValue(e){const t=e?2:1;this._value!==t&&(this._value=t,2===this._value?this._onDidChangeToTrue.fire():1===this._value&&this._onDidChangeToFalse.fire())}}class tr extends h.vl{constructor(e,t){super({deliveryQueue:t}),this._contributions=e}fire(e){this._contributions.onBeforeInteractionEvent(),super.fire(e)}}class ir extends d.jG{constructor(e,t){super(),this._editor=e,t.createKey("editorId",e.getId()),this._editorSimpleInput=ts.R.editorSimpleInput.bindTo(t),this._editorFocus=ts.R.focus.bindTo(t),this._textInputFocus=ts.R.textInputFocus.bindTo(t),this._editorTextFocus=ts.R.editorTextFocus.bindTo(t),this._tabMovesFocus=ts.R.tabMovesFocus.bindTo(t),this._editorReadonly=ts.R.readOnly.bindTo(t),this._inDiffEditor=ts.R.inDiffEditor.bindTo(t),this._editorColumnSelection=ts.R.columnSelection.bindTo(t),this._hasMultipleSelections=ts.R.hasMultipleSelections.bindTo(t),this._hasNonEmptySelection=ts.R.hasNonEmptySelection.bindTo(t),this._canUndo=ts.R.canUndo.bindTo(t),this._canRedo=ts.R.canRedo.bindTo(t),this._register(this._editor.onDidChangeConfiguration((()=>this._updateFromConfig()))),this._register(this._editor.onDidChangeCursorSelection((()=>this._updateFromSelection()))),this._register(this._editor.onDidFocusEditorWidget((()=>this._updateFromFocus()))),this._register(this._editor.onDidBlurEditorWidget((()=>this._updateFromFocus()))),this._register(this._editor.onDidFocusEditorText((()=>this._updateFromFocus()))),this._register(this._editor.onDidBlurEditorText((()=>this._updateFromFocus()))),this._register(this._editor.onDidChangeModel((()=>this._updateFromModel()))),this._register(this._editor.onDidChangeConfiguration((()=>this._updateFromModel()))),this._register(w.M.onDidChangeTabFocus((e=>this._tabMovesFocus.set(e)))),this._updateFromConfig(),this._updateFromSelection(),this._updateFromFocus(),this._updateFromModel(),this._editorSimpleInput.set(this._editor.isSimpleWidget)}_updateFromConfig(){const e=this._editor.getOptions();this._tabMovesFocus.set(w.M.getTabFocusMode()),this._editorReadonly.set(e.get(92)),this._inDiffEditor.set(e.get(61)),this._editorColumnSelection.set(e.get(22))}_updateFromSelection(){const e=this._editor.getSelections();e?(this._hasMultipleSelections.set(e.length>1),this._hasNonEmptySelection.set(e.some((e=>!e.isEmpty())))):(this._hasMultipleSelections.reset(),this._hasNonEmptySelection.reset())}_updateFromFocus(){this._editorFocus.set(this._editor.hasWidgetFocus()&&!this._editor.isSimpleWidget),this._editorTextFocus.set(this._editor.hasTextFocus()&&!this._editor.isSimpleWidget),this._textInputFocus.set(this._editor.hasTextFocus())}_updateFromModel(){const e=this._editor.getModel();this._canUndo.set(Boolean(e&&e.canUndo())),this._canRedo.set(Boolean(e&&e.canRedo()))}}class sr extends d.jG{constructor(e,t,i){super(),this._editor=e,this._contextKeyService=t,this._languageFeaturesService=i,this._langId=ts.R.languageId.bindTo(t),this._hasCompletionItemProvider=ts.R.hasCompletionItemProvider.bindTo(t),this._hasCodeActionsProvider=ts.R.hasCodeActionsProvider.bindTo(t),this._hasCodeLensProvider=ts.R.hasCodeLensProvider.bindTo(t),this._hasDefinitionProvider=ts.R.hasDefinitionProvider.bindTo(t),this._hasDeclarationProvider=ts.R.hasDeclarationProvider.bindTo(t),this._hasImplementationProvider=ts.R.hasImplementationProvider.bindTo(t),this._hasTypeDefinitionProvider=ts.R.hasTypeDefinitionProvider.bindTo(t),this._hasHoverProvider=ts.R.hasHoverProvider.bindTo(t),this._hasDocumentHighlightProvider=ts.R.hasDocumentHighlightProvider.bindTo(t),this._hasDocumentSymbolProvider=ts.R.hasDocumentSymbolProvider.bindTo(t),this._hasReferenceProvider=ts.R.hasReferenceProvider.bindTo(t),this._hasRenameProvider=ts.R.hasRenameProvider.bindTo(t),this._hasSignatureHelpProvider=ts.R.hasSignatureHelpProvider.bindTo(t),this._hasInlayHintsProvider=ts.R.hasInlayHintsProvider.bindTo(t),this._hasDocumentFormattingProvider=ts.R.hasDocumentFormattingProvider.bindTo(t),this._hasDocumentSelectionFormattingProvider=ts.R.hasDocumentSelectionFormattingProvider.bindTo(t),this._hasMultipleDocumentFormattingProvider=ts.R.hasMultipleDocumentFormattingProvider.bindTo(t),this._hasMultipleDocumentSelectionFormattingProvider=ts.R.hasMultipleDocumentSelectionFormattingProvider.bindTo(t),this._isInEmbeddedEditor=ts.R.isInEmbeddedEditor.bindTo(t);const s=()=>this._update();this._register(e.onDidChangeModel(s)),this._register(e.onDidChangeModelLanguage(s)),this._register(i.completionProvider.onDidChange(s)),this._register(i.codeActionProvider.onDidChange(s)),this._register(i.codeLensProvider.onDidChange(s)),this._register(i.definitionProvider.onDidChange(s)),this._register(i.declarationProvider.onDidChange(s)),this._register(i.implementationProvider.onDidChange(s)),this._register(i.typeDefinitionProvider.onDidChange(s)),this._register(i.hoverProvider.onDidChange(s)),this._register(i.documentHighlightProvider.onDidChange(s)),this._register(i.documentSymbolProvider.onDidChange(s)),this._register(i.referenceProvider.onDidChange(s)),this._register(i.renameProvider.onDidChange(s)),this._register(i.documentFormattingEditProvider.onDidChange(s)),this._register(i.documentRangeFormattingEditProvider.onDidChange(s)),this._register(i.signatureHelpProvider.onDidChange(s)),this._register(i.inlayHintsProvider.onDidChange(s)),s()}dispose(){super.dispose()}reset(){this._contextKeyService.bufferChangeEvents((()=>{this._langId.reset(),this._hasCompletionItemProvider.reset(),this._hasCodeActionsProvider.reset(),this._hasCodeLensProvider.reset(),this._hasDefinitionProvider.reset(),this._hasDeclarationProvider.reset(),this._hasImplementationProvider.reset(),this._hasTypeDefinitionProvider.reset(),this._hasHoverProvider.reset(),this._hasDocumentHighlightProvider.reset(),this._hasDocumentSymbolProvider.reset(),this._hasReferenceProvider.reset(),this._hasRenameProvider.reset(),this._hasDocumentFormattingProvider.reset(),this._hasDocumentSelectionFormattingProvider.reset(),this._hasSignatureHelpProvider.reset(),this._isInEmbeddedEditor.reset()}))}_update(){const e=this._editor.getModel();e?this._contextKeyService.bufferChangeEvents((()=>{this._langId.set(e.getLanguageId()),this._hasCompletionItemProvider.set(this._languageFeaturesService.completionProvider.has(e)),this._hasCodeActionsProvider.set(this._languageFeaturesService.codeActionProvider.has(e)),this._hasCodeLensProvider.set(this._languageFeaturesService.codeLensProvider.has(e)),this._hasDefinitionProvider.set(this._languageFeaturesService.definitionProvider.has(e)),this._hasDeclarationProvider.set(this._languageFeaturesService.declarationProvider.has(e)),this._hasImplementationProvider.set(this._languageFeaturesService.implementationProvider.has(e)),this._hasTypeDefinitionProvider.set(this._languageFeaturesService.typeDefinitionProvider.has(e)),this._hasHoverProvider.set(this._languageFeaturesService.hoverProvider.has(e)),this._hasDocumentHighlightProvider.set(this._languageFeaturesService.documentHighlightProvider.has(e)),this._hasDocumentSymbolProvider.set(this._languageFeaturesService.documentSymbolProvider.has(e)),this._hasReferenceProvider.set(this._languageFeaturesService.referenceProvider.has(e)),this._hasRenameProvider.set(this._languageFeaturesService.renameProvider.has(e)),this._hasSignatureHelpProvider.set(this._languageFeaturesService.signatureHelpProvider.has(e)),this._hasInlayHintsProvider.set(this._languageFeaturesService.inlayHintsProvider.has(e)),this._hasDocumentFormattingProvider.set(this._languageFeaturesService.documentFormattingEditProvider.has(e)||this._languageFeaturesService.documentRangeFormattingEditProvider.has(e)),this._hasDocumentSelectionFormattingProvider.set(this._languageFeaturesService.documentRangeFormattingEditProvider.has(e)),this._hasMultipleDocumentFormattingProvider.set(this._languageFeaturesService.documentFormattingEditProvider.all(e).length+this._languageFeaturesService.documentRangeFormattingEditProvider.all(e).length>1),this._hasMultipleDocumentSelectionFormattingProvider.set(this._languageFeaturesService.documentRangeFormattingEditProvider.all(e).length>1),this._isInEmbeddedEditor.set(e.uri.scheme===u.ny.walkThroughSnippet||e.uri.scheme===u.ny.vscodeChatCodeBlock)})):this.reset()}}class nr extends d.jG{constructor(e,t){super(),this._onChange=this._register(new h.vl),this.onChange=this._onChange.event,this._hadFocus=void 0,this._hasDomElementFocus=!1,this._domFocusTracker=this._register(c.w5(e)),this._overflowWidgetsDomNodeHasFocus=!1,this._register(this._domFocusTracker.onDidFocus((()=>{this._hasDomElementFocus=!0,this._update()}))),this._register(this._domFocusTracker.onDidBlur((()=>{this._hasDomElementFocus=!1,this._update()}))),t&&(this._overflowWidgetsDomNode=this._register(c.w5(t)),this._register(this._overflowWidgetsDomNode.onDidFocus((()=>{this._overflowWidgetsDomNodeHasFocus=!0,this._update()}))),this._register(this._overflowWidgetsDomNode.onDidBlur((()=>{this._overflowWidgetsDomNodeHasFocus=!1,this._update()}))))}_update(){const e=this._hasDomElementFocus||this._overflowWidgetsDomNodeHasFocus;this._hadFocus!==e&&(this._hadFocus=e,this._onChange.fire(void 0))}hasFocus(){return this._hadFocus??!1}}class rr{get length(){return this._decorationIds.length}constructor(e,t){this._editor=e,this._decorationIds=[],this._isChangingDecorations=!1,Array.isArray(t)&&t.length>0&&this.set(t)}onDidChange(e,t,i){return this._editor.onDidChangeModelDecorations((i=>{this._isChangingDecorations||e.call(t,i)}),i)}getRange(e){return this._editor.hasModel()?e>=this._decorationIds.length?null:this._editor.getModel().getDecorationRange(this._decorationIds[e]):null}getRanges(){if(!this._editor.hasModel())return[];const e=this._editor.getModel(),t=[];for(const i of this._decorationIds){const s=e.getDecorationRange(i);s&&t.push(s)}return t}has(e){return this._decorationIds.includes(e.id)}clear(){0!==this._decorationIds.length&&this.set([])}set(e){try{this._isChangingDecorations=!0,this._editor.changeDecorations((t=>{this._decorationIds=t.deltaDecorations(this._decorationIds,e)}))}finally{this._isChangingDecorations=!1}return this._decorationIds}append(e){let t=[];try{this._isChangingDecorations=!0,this._editor.changeDecorations((i=>{t=i.deltaDecorations([],e),this._decorationIds=this._decorationIds.concat(t)}))}finally{this._isChangingDecorations=!1}return t}}const or=encodeURIComponent("<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 3' enable-background='new 0 0 6 3' height='3' width='6'><g fill='"),ar=encodeURIComponent("'><polygon points='5.5,0 2.5,3 1.1,3 4.1,0'/><polygon points='4,0 6,2 6,0.6 5.4,0'/><polygon points='0,2 1,3 2.4,3 0,0.6'/></g></svg>");function cr(e){return or+encodeURIComponent(e.toString())+ar}const lr=encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" height="3" width="12"><g fill="'),hr=encodeURIComponent('"><circle cx="1" cy="1" r="1"/><circle cx="5" cy="1" r="1"/><circle cx="9" cy="1" r="1"/></g></svg>');(0,ke.zy)(((e,t)=>{const i=e.getColor(zt.Rbi);i&&t.addRule(`.monaco-editor .squiggly-error { background: url("data:image/svg+xml,${cr(i)}") repeat-x bottom left; }`);const s=e.getColor(zt.Hng);s&&t.addRule(`.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,${cr(s)}") repeat-x bottom left; }`);const n=e.getColor(zt.pOz);n&&t.addRule(`.monaco-editor .squiggly-info { background: url("data:image/svg+xml,${cr(n)}") repeat-x bottom left; }`);const r=e.getColor(zt.i61);r&&t.addRule(`.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,${function(e){return lr+encodeURIComponent(e.toString())+hr}(r)}") no-repeat bottom left; }`);const o=e.getColor(Ae.yw);o&&t.addRule(`.monaco-editor.showUnused .squiggly-inline-unnecessary { opacity: ${o.rgba.a}; }`)}))},52708:(e,t,i)=>{var s=i(634),n=i(35647)((function(e,t,i,n){s(e,t,i,n)}));e.exports=n},52776:(e,t,i)=>{"use strict";i.d(t,{vV:()=>u,jQ:()=>h,N4:()=>l,M4:()=>g,vr:()=>d});var s=i(8597),n=i(72962),r=i(31295),o=i(5662),a=i(78209);const c=s.$;class l extends o.jG{constructor(){super(),this.containerDomNode=document.createElement("div"),this.containerDomNode.className="monaco-hover",this.containerDomNode.tabIndex=0,this.containerDomNode.setAttribute("role","tooltip"),this.contentsDomNode=document.createElement("div"),this.contentsDomNode.className="monaco-hover-content",this.scrollbar=this._register(new r.MU(this.contentsDomNode,{consumeMouseWheelIfScrollbarIsNeeded:!0})),this.containerDomNode.appendChild(this.scrollbar.getDomNode())}onContentsChanged(){this.scrollbar.scanDomNode()}}class h extends o.jG{static render(e,t,i){return new h(e,t,i)}constructor(e,t,i){super(),this.actionLabel=t.label,this.actionKeybindingLabel=i,this.actionContainer=s.BC(e,c("div.action-container")),this.actionContainer.setAttribute("tabindex","0"),this.action=s.BC(this.actionContainer,c("a.action")),this.action.setAttribute("role","button"),t.iconClass&&s.BC(this.action,c(`span.icon.${t.iconClass}`));s.BC(this.action,c("span")).textContent=i?`${t.label} (${i})`:t.label,this._store.add(new u(this.actionContainer,t.run)),this._store.add(new g(this.actionContainer,t.run,[3,10])),this.setEnabled(!0)}setEnabled(e){e?(this.actionContainer.classList.remove("disabled"),this.actionContainer.removeAttribute("aria-disabled")):(this.actionContainer.classList.add("disabled"),this.actionContainer.setAttribute("aria-disabled","true"))}}function d(e,t){return e&&t?(0,a.kg)("acessibleViewHint","Inspect this in the accessible view with {0}.",t):e?(0,a.kg)("acessibleViewHintNoKbOpen","Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding."):""}class u extends o.jG{constructor(e,t){super(),this._register(s.ko(e,s.Bx.CLICK,(i=>{i.stopPropagation(),i.preventDefault(),t(e)})))}}class g extends o.jG{constructor(e,t,i){super(),this._register(s.ko(e,s.Bx.KEY_DOWN,(s=>{const r=new n.Z(s);i.some((e=>r.equals(e)))&&(s.stopPropagation(),s.preventDefault(),t(e))})))}}},52894:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>i.e(9728).then(i.bind(i,19728))})},52903:(e,t,i)=>{"use strict";i.d(t,{AI:()=>g,GR:()=>u,JX:()=>f,W8:()=>h,bC:()=>a,cL:()=>p,dN:()=>l,kK:()=>m,pN:()=>o,pr:()=>_,sO:()=>d,uV:()=>c});var s=i(41234),n=i(44026),r=i(85600);class o{get regions(){return this._regions}get textModel(){return this._textModel}constructor(e,t){this._updateEventEmitter=new s.vl,this.onDidChange=this._updateEventEmitter.event,this._textModel=e,this._decorationProvider=t,this._regions=new n.tz(new Uint32Array(0),new Uint32Array(0)),this._editorDecorationIds=[]}toggleCollapseState(e){if(!e.length)return;e=e.sort(((e,t)=>e.regionIndex-t.regionIndex));const t={};this._decorationProvider.changeDecorations((i=>{let s=0,n=-1,r=-1;const o=e=>{for(;s<e;){const e=this._regions.getEndLineNumber(s),t=this._regions.isCollapsed(s);if(e<=n){const n=0!==this.regions.getSource(s);i.changeDecorationOptions(this._editorDecorationIds[s],this._decorationProvider.getDecorationOption(t,e<=r,n))}t&&e>r&&(r=e),s++}};for(const a of e){const e=a.regionIndex,i=this._editorDecorationIds[e];if(i&&!t[i]){t[i]=!0,o(e);const s=!this._regions.isCollapsed(e);this._regions.setCollapsed(e,s),n=Math.max(n,this._regions.getEndLineNumber(e))}}o(this._regions.length)})),this._updateEventEmitter.fire({model:this,collapseStateChanged:e})}removeManualRanges(e){const t=new Array,i=t=>{for(const i of e)if(!(i.startLineNumber>t.endLineNumber||t.startLineNumber>i.endLineNumber))return!0;return!1};for(let s=0;s<this._regions.length;s++){const e=this._regions.toFoldRange(s);0!==e.source&&i(e)||t.push(e)}this.updatePost(n.tz.fromFoldRanges(t))}update(e,t){const i=this._currentFoldedOrManualRanges(t),s=n.tz.sanitizeAndMerge(e,i,this._textModel.getLineCount(),t);this.updatePost(n.tz.fromFoldRanges(s))}updatePost(e){const t=[];let i=-1;for(let s=0,n=e.length;s<n;s++){const n=e.getStartLineNumber(s),r=e.getEndLineNumber(s),o=e.isCollapsed(s),a=0!==e.getSource(s),c={startLineNumber:n,startColumn:this._textModel.getLineMaxColumn(n),endLineNumber:r,endColumn:this._textModel.getLineMaxColumn(r)+1};t.push({range:c,options:this._decorationProvider.getDecorationOption(o,r<=i,a)}),o&&r>i&&(i=r)}this._decorationProvider.changeDecorations((e=>this._editorDecorationIds=e.deltaDecorations(this._editorDecorationIds,t))),this._regions=e,this._updateEventEmitter.fire({model:this})}_currentFoldedOrManualRanges(e){const t=[];for(let i=0,s=this._regions.length;i<s;i++){let s=this.regions.isCollapsed(i);const n=this.regions.getSource(i);if(s||0!==n){const r=this._regions.toFoldRange(i),o=this._textModel.getDecorationRange(this._editorDecorationIds[i]);o&&(s&&e?.startsInside(o.startLineNumber+1,o.endLineNumber)&&(s=!1),t.push({startLineNumber:o.startLineNumber,endLineNumber:o.endLineNumber,type:r.type,isCollapsed:s,source:n}))}}return t}getMemento(){const e=this._currentFoldedOrManualRanges(),t=[],i=this._textModel.getLineCount();for(let s=0,n=e.length;s<n;s++){const n=e[s];if(n.startLineNumber>=n.endLineNumber||n.startLineNumber<1||n.endLineNumber>i)continue;const r=this._getLinesChecksum(n.startLineNumber+1,n.endLineNumber);t.push({startLineNumber:n.startLineNumber,endLineNumber:n.endLineNumber,isCollapsed:n.isCollapsed,source:n.source,checksum:r})}return t.length>0?t:void 0}applyMemento(e){if(!Array.isArray(e))return;const t=[],i=this._textModel.getLineCount();for(const n of e){if(n.startLineNumber>=n.endLineNumber||n.startLineNumber<1||n.endLineNumber>i)continue;const e=this._getLinesChecksum(n.startLineNumber+1,n.endLineNumber);n.checksum&&e!==n.checksum||t.push({startLineNumber:n.startLineNumber,endLineNumber:n.endLineNumber,type:void 0,isCollapsed:n.isCollapsed??!0,source:n.source??0})}const s=n.tz.sanitizeAndMerge(this._regions,t,i);this.updatePost(n.tz.fromFoldRanges(s))}_getLinesChecksum(e,t){return(0,r.tW)(this._textModel.getLineContent(e)+this._textModel.getLineContent(t))%1e6}dispose(){this._decorationProvider.removeDecorations(this._editorDecorationIds)}getAllRegionsAtLine(e,t){const i=[];if(this._regions){let s=this._regions.findRange(e),n=1;for(;s>=0;){const e=this._regions.toRegion(s);t&&!t(e,n)||i.push(e),n++,s=e.parentIndex}}return i}getRegionAtLine(e){if(this._regions){const t=this._regions.findRange(e);if(t>=0)return this._regions.toRegion(t)}return null}getRegionsInside(e,t){const i=[],s=e?e.regionIndex+1:0,n=e?e.endLineNumber:Number.MAX_VALUE;if(t&&2===t.length){const e=[];for(let r=s,o=this._regions.length;r<o;r++){const s=this._regions.toRegion(r);if(!(this._regions.getStartLineNumber(r)<n))break;for(;e.length>0&&!s.containedBy(e[e.length-1]);)e.pop();e.push(s),t(s,e.length)&&i.push(s)}}else for(let r=s,o=this._regions.length;r<o;r++){const e=this._regions.toRegion(r);if(!(this._regions.getStartLineNumber(r)<n))break;t&&!t(e)||i.push(e)}return i}}function a(e,t,i){const s=[];for(const n of i){const i=e.getRegionAtLine(n);if(i){const n=!i.isCollapsed;if(s.push(i),t>1){const r=e.getRegionsInside(i,((e,i)=>e.isCollapsed!==n&&i<t));s.push(...r)}}}e.toggleCollapseState(s)}function c(e,t,i=Number.MAX_VALUE,s){const n=[];if(s&&s.length>0)for(const r of s){const s=e.getRegionAtLine(r);if(s&&(s.isCollapsed!==t&&n.push(s),i>1)){const r=e.getRegionsInside(s,((e,s)=>e.isCollapsed!==t&&s<i));n.push(...r)}}else{const s=e.getRegionsInside(null,((e,s)=>e.isCollapsed!==t&&s<i));n.push(...s)}e.toggleCollapseState(n)}function l(e,t,i,s){const n=[];for(const r of s){const s=e.getAllRegionsAtLine(r,((e,s)=>e.isCollapsed!==t&&s<=i));n.push(...s)}e.toggleCollapseState(n)}function h(e,t,i){const s=[];for(const n of i){const i=e.getAllRegionsAtLine(n,(e=>e.isCollapsed!==t));i.length>0&&s.push(i[0])}e.toggleCollapseState(s)}function d(e,t,i,s){const n=e.getRegionsInside(null,((e,n)=>n===t&&e.isCollapsed!==i&&!s.some((t=>e.containsLine(t)))));e.toggleCollapseState(n)}function u(e,t,i){const s=[];for(const r of i){const t=e.getAllRegionsAtLine(r,void 0);t.length>0&&s.push(t[0])}const n=e.getRegionsInside(null,(e=>s.every((t=>!t.containedBy(e)&&!e.containedBy(t)))&&e.isCollapsed!==t));e.toggleCollapseState(n)}function g(e,t,i){const s=e.textModel,n=e.regions,r=[];for(let o=n.length-1;o>=0;o--)if(i!==n.isCollapsed(o)){const e=n.getStartLineNumber(o);t.test(s.getLineContent(e))&&r.push(n.toRegion(o))}e.toggleCollapseState(r)}function p(e,t,i){const s=e.regions,n=[];for(let r=s.length-1;r>=0;r--)i!==s.isCollapsed(r)&&t===s.getType(r)&&n.push(s.toRegion(r));e.toggleCollapseState(n)}function m(e,t){let i=null;const s=t.getRegionAtLine(e);if(null!==s&&(i=s.startLineNumber,e===i)){const e=s.parentIndex;i=-1!==e?t.regions.getStartLineNumber(e):null}return i}function f(e,t){let i=t.getRegionAtLine(e);if(null!==i&&i.startLineNumber===e){if(e!==i.startLineNumber)return i.startLineNumber;{const e=i.parentIndex;let s=0;for(-1!==e&&(s=t.regions.getStartLineNumber(i.parentIndex));null!==i;){if(!(i.regionIndex>0))return null;if(i=t.regions.toRegion(i.regionIndex-1),i.startLineNumber<=s)return null;if(i.parentIndex===e)return i.startLineNumber}}}else if(t.regions.length>0)for(i=t.regions.toRegion(t.regions.length-1);null!==i;){if(i.startLineNumber<e)return i.startLineNumber;i=i.regionIndex>0?t.regions.toRegion(i.regionIndex-1):null}return null}function _(e,t){let i=t.getRegionAtLine(e);if(null!==i&&i.startLineNumber===e){const e=i.parentIndex;let s=0;if(-1!==e)s=t.regions.getEndLineNumber(i.parentIndex);else{if(0===t.regions.length)return null;s=t.regions.getEndLineNumber(t.regions.length-1)}for(;null!==i;){if(!(i.regionIndex<t.regions.length))return null;if(i=t.regions.toRegion(i.regionIndex+1),i.startLineNumber>=s)return null;if(i.parentIndex===e)return i.startLineNumber}}else if(t.regions.length>0)for(i=t.regions.toRegion(0);null!==i;){if(i.startLineNumber>e)return i.startLineNumber;i=i.regionIndex<t.regions.length?t.regions.toRegion(i.regionIndex+1):null}return null}},53068:(e,t,i)=>{"use strict";i.r(t),i.d(t,{getIconClasses:()=>h});var s=i(36456),n=i(89403),r=i(79400),o=i(83941),a=i(7291),c=i(25689);const l=/(?:\/|^)(?:([^\/]+)\/)?([^\/]+)$/;function h(e,t,i,h,u){if(c.L.isThemeIcon(u))return[`codicon-${u.id}`,"predefined-file-icon"];if(r.r.isUri(u))return[];const g=h===a.p.ROOT_FOLDER?["rootfolder-icon"]:h===a.p.FOLDER?["folder-icon"]:["file-icon"];if(i){let r;if(i.scheme===s.ny.data){r=n.B6.parseMetaData(i).get(n.B6.META_DATA_LABEL)}else{const e=i.path.match(l);e?(r=d(e[2].toLowerCase()),e[1]&&g.push(`${d(e[1].toLowerCase())}-name-dir-icon`)):r=d(i.authority.toLowerCase())}if(h===a.p.ROOT_FOLDER)g.push(`${r}-root-name-folder-icon`);else if(h===a.p.FOLDER)g.push(`${r}-name-folder-icon`);else{if(r){if(g.push(`${r}-name-file-icon`),g.push("name-file-icon"),r.length<=255){const e=r.split(".");for(let t=1;t<e.length;t++)g.push(`${e.slice(t).join(".")}-ext-file-icon`)}g.push("ext-file-icon")}const a=function(e,t,i){if(!i)return null;let r=null;if(i.scheme===s.ny.data){const e=n.B6.parseMetaData(i).get(n.B6.META_DATA_MIME);e&&(r=t.getLanguageIdByMimeType(e))}else{const t=e.getModel(i);t&&(r=t.getLanguageId())}if(r&&r!==o.vH)return r;return t.guessLanguageIdByFilepathOrFirstLine(i)}(e,t,i);a&&g.push(`${d(a)}-lang-file-icon`)}}return g}function d(e){return e.replace(/[\s]/g,"/")}},53302:(e,t,i)=>{"use strict";i.d(t,{o:()=>s});const s=(0,i(82435).withNaming)({e:"__",m:"_"})},53396:()=>{},53450:(e,t,i)=>{"use strict";i.d(t,{P:()=>d,k:()=>u});var s=i(46041),n=i(91508),r=i(1245),o=i(36677),a=i(20761),c=i(78049),l=i(84739),h=i(64383);class d extends a._{constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t}getLanguageConfiguration(e){return this.languageConfigurationService.getLanguageConfiguration(e)}_computeIndentLevel(e){return(0,c.G)(this.textModel.getLineContent(e+1),this.textModel.getOptions().tabSize)}getActiveIndentGuide(e,t,i){this.assertNotDisposed();const s=this.textModel.getLineCount();if(e<1||e>s)throw new h.D7("Illegal value for lineNumber");const n=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,r=Boolean(n&&n.offSide);let o=-2,a=-1,c=-2,l=-1;const d=e=>{if(-1!==o&&(-2===o||o>e-1)){o=-1,a=-1;for(let t=e-2;t>=0;t--){const e=this._computeIndentLevel(t);if(e>=0){o=t,a=e;break}}}if(-2===c){c=-1,l=-1;for(let t=e;t<s;t++){const e=this._computeIndentLevel(t);if(e>=0){c=t,l=e;break}}}};let u=-2,g=-1,p=-2,m=-1;const f=e=>{if(-2===u){u=-1,g=-1;for(let t=e-2;t>=0;t--){const e=this._computeIndentLevel(t);if(e>=0){u=t,g=e;break}}}if(-1!==p&&(-2===p||p<e-1)){p=-1,m=-1;for(let t=e;t<s;t++){const e=this._computeIndentLevel(t);if(e>=0){p=t,m=e;break}}}};let _=0,v=!0,C=0,E=!0,b=0,S=0;for(let h=0;v||E;h++){const n=e-h,o=e+h;h>1&&(n<1||n<t)&&(v=!1),h>1&&(o>s||o>i)&&(E=!1),h>5e4&&(v=!1,E=!1);let p=-1;if(v&&n>=1){const e=this._computeIndentLevel(n-1);e>=0?(c=n-1,l=e,p=Math.ceil(e/this.textModel.getOptions().indentSize)):(d(n),p=this._getIndentLevelForWhitespaceLine(r,a,l))}let y=-1;if(E&&o<=s){const e=this._computeIndentLevel(o-1);e>=0?(u=o-1,g=e,y=Math.ceil(e/this.textModel.getOptions().indentSize)):(f(o),y=this._getIndentLevelForWhitespaceLine(r,g,m))}if(0!==h){if(1===h){if(o<=s&&y>=0&&S+1===y){v=!1,_=o,C=o,b=y;continue}if(n>=1&&p>=0&&p-1===S){E=!1,_=n,C=n,b=p;continue}if(_=e,C=e,b=S,0===b)return{startLineNumber:_,endLineNumber:C,indent:b}}v&&(p>=b?_=n:v=!1),E&&(y>=b?C=o:E=!1)}else S=p}return{startLineNumber:_,endLineNumber:C,indent:b}}getLinesBracketGuides(e,t,i,r){const a=[];for(let s=e;s<=t;s++)a.push([]);const c=!0,h=this.textModel.bracketPairs.getBracketPairsInRangeWithMinIndentation(new o.Q(e,1,t,this.textModel.getLineMaxColumn(t))).toArray();let d;if(i&&h.length>0){const n=(e<=i.lineNumber&&i.lineNumber<=t?h:this.textModel.bracketPairs.getBracketPairsInRange(o.Q.fromPositions(i)).toArray()).filter((e=>o.Q.strictContainsPosition(e.range,i)));d=(0,s.Uk)(n,(e=>c))?.range}const g=this.textModel.getOptions().bracketPairColorizationOptions.independentColorPoolPerBracketType,p=new u;for(const s of h){if(!s.closingBracketRange)continue;const i=d&&s.range.equalsRange(d);if(!i&&!r.includeInactive)continue;const o=p.getInlineClassName(s.nestingLevel,s.nestingLevelOfEqualBracketType,g)+(r.highlightActive&&i?" "+p.activeClassName:""),c=s.openingBracketRange.getStartPosition(),h=s.closingBracketRange.getStartPosition(),u=r.horizontalGuides===l.N6.Enabled||r.horizontalGuides===l.N6.EnabledForActive&&i;if(s.range.startLineNumber===s.range.endLineNumber){u&&a[s.range.startLineNumber-e].push(new l.TH(-1,s.openingBracketRange.getEndPosition().column,o,new l.pv(!1,h.column),-1,-1));continue}const m=this.getVisibleColumnFromPosition(h),f=this.getVisibleColumnFromPosition(s.openingBracketRange.getStartPosition()),_=Math.min(f,m,s.minVisibleColumnIndentation+1);let v=!1;n.HG(this.textModel.getLineContent(s.closingBracketRange.startLineNumber))<s.closingBracketRange.startColumn-1&&(v=!0);const C=Math.max(c.lineNumber,e),E=Math.min(h.lineNumber,t),b=v?1:0;for(let t=C;t<E+b;t++)a[t-e].push(new l.TH(_,-1,o,null,t===c.lineNumber?c.column:-1,t===h.lineNumber?h.column:-1));u&&(c.lineNumber>=e&&f>_&&a[c.lineNumber-e].push(new l.TH(_,-1,o,new l.pv(!1,c.column),-1,-1)),h.lineNumber<=t&&m>_&&a[h.lineNumber-e].push(new l.TH(_,-1,o,new l.pv(!v,h.column),-1,-1)))}for(const s of a)s.sort(((e,t)=>e.visibleColumn-t.visibleColumn));return a}getVisibleColumnFromPosition(e){return r.A.visibleColumnFromColumn(this.textModel.getLineContent(e.lineNumber),e.column,this.textModel.getOptions().tabSize)+1}getLinesIndentGuides(e,t){this.assertNotDisposed();const i=this.textModel.getLineCount();if(e<1||e>i)throw new Error("Illegal value for startLineNumber");if(t<1||t>i)throw new Error("Illegal value for endLineNumber");const s=this.textModel.getOptions(),n=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,r=Boolean(n&&n.offSide),o=new Array(t-e+1);let a=-2,c=-1,l=-2,h=-1;for(let d=e;d<=t;d++){const t=d-e,n=this._computeIndentLevel(d-1);if(n>=0)a=d-1,c=n,o[t]=Math.ceil(n/s.indentSize);else{if(-2===a){a=-1,c=-1;for(let e=d-2;e>=0;e--){const t=this._computeIndentLevel(e);if(t>=0){a=e,c=t;break}}}if(-1!==l&&(-2===l||l<d-1)){l=-1,h=-1;for(let e=d;e<i;e++){const t=this._computeIndentLevel(e);if(t>=0){l=e,h=t;break}}}o[t]=this._getIndentLevelForWhitespaceLine(r,c,h)}}return o}_getIndentLevelForWhitespaceLine(e,t,i){const s=this.textModel.getOptions();return-1===t||-1===i?0:t<i?1+Math.floor(t/s.indentSize):t===i||e?Math.ceil(i/s.indentSize):1+Math.floor(i/s.indentSize)}}class u{constructor(){this.activeClassName="indent-active"}getInlineClassName(e,t,i){return this.getInlineClassNameOfLevel(i?t:e)}getInlineClassNameOfLevel(e){return"bracket-indent-guide lvl-"+e%30}}},53472:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.97 12.53a.75.75 0 1 0 1.06-1.06l-3.5-3.5a.75.75 0 0 0-1.06 0l-3.5 3.5a.75.75 0 1 0 1.06 1.06L8 9.56zm0-5a.75.75 0 1 0 1.06-1.06l-3.5-3.5a.75.75 0 0 0-1.06 0l-3.5 3.5a.75.75 0 0 0 1.06 1.06L8 4.56z",clipRule:"evenodd"}))},54459:(e,t,i)=>{"use strict";i.d(t,{f:()=>r});var s=i(46958),n=i(74027);function r(e,t,i,o,a,c){if(Array.isArray(e)){let s=0;for(const n of e){const e=r(n,t,i,o,a,c);if(10===e)return e;e>s&&(s=e)}return s}if("string"===typeof e)return o?"*"===e?5:e===i?10:0:0;if(e){const{language:r,pattern:l,scheme:h,hasAccessToAllModels:d,notebookType:u}=e;if(!o&&!d)return 0;u&&a&&(t=a);let g=0;if(h)if(h===t.scheme)g=10;else{if("*"!==h)return 0;g=5}if(r)if(r===i)g=10;else{if("*"!==r)return 0;g=Math.max(g,5)}if(u)if(u===c)g=10;else{if("*"!==u||void 0===c)return 0;g=Math.max(g,5)}if(l){let e;if(e="string"===typeof l?l:{...l,base:(0,n.S8)(l.base)},e!==t.fsPath&&!(0,s.YW)(e,t.fsPath))return 0;g=10}return g}return 0}},54503:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.5 8a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0m-7.75 3.031L11 8.866a1 1 0 0 0 0-1.732L7.25 4.969a1 1 0 0 0-1.5.866v4.33a1 1 0 0 0 1.5.866",clipRule:"evenodd"}))},54770:(e,t,i)=>{"use strict";i.d(t,{h:()=>s});const s=(0,i(63591).u1)("clipboardService")},55089:(e,t,i)=>{"use strict";i.d(t,{e:()=>o});var s=i(60413),n=i(25893),r=i(98067);const o={clipboard:{writeText:r.ib||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:r.ib||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:r.ib||s.Qu()?0:navigator.keyboard||s.nr?1:2,touch:"ontouchstart"in n.G||navigator.maxTouchPoints>0,pointerEvents:n.G.PointerEvent&&("ontouchstart"in n.G||navigator.maxTouchPoints>0)}},55130:(e,t,i)=>{"use strict";i.d(t,{C9:()=>R,Qp:()=>I,Rw:()=>T,Uy:()=>L,W4:()=>O,Xj:()=>w,dU:()=>A,k_:()=>b,pQ:()=>S,pR:()=>y});var s=i(25890),n=i(18447),r=i(64383),o=i(5662),a=i(79400),c=i(80537),l=i(36677),h=i(75326),d=i(56942),u=i(23750),g=i(50868),p=i(78209),m=i(50091),f=i(58591),_=i(73823),v=i(90651),C=i(61407),E=i(8995);const b="editor.action.codeAction",S="editor.action.quickFix",y="editor.action.autoFix",w="editor.action.refactor",R="editor.action.sourceAction",L="editor.action.organizeImports",T="editor.action.fixAll";class x extends o.jG{static codeActionsPreferredComparator(e,t){return e.isPreferred&&!t.isPreferred?-1:!e.isPreferred&&t.isPreferred?1:0}static codeActionsComparator({action:e},{action:t}){return e.isAI&&!t.isAI?1:!e.isAI&&t.isAI?-1:(0,s.EI)(e.diagnostics)?(0,s.EI)(t.diagnostics)?x.codeActionsPreferredComparator(e,t):-1:(0,s.EI)(t.diagnostics)?1:x.codeActionsPreferredComparator(e,t)}constructor(e,t,i){super(),this.documentation=t,this._register(i),this.allActions=[...e].sort(x.codeActionsComparator),this.validActions=this.allActions.filter((({action:e})=>!e.disabled))}get hasAutoFix(){return this.validActions.some((({action:e})=>!!e.kind&&C.gB.QuickFix.contains(new E.k(e.kind))&&!!e.isPreferred))}get hasAIFix(){return this.validActions.some((({action:e})=>!!e.isAI))}get allAIFixes(){return this.validActions.every((({action:e})=>!!e.isAI))}}const k={actions:[],documentation:void 0};async function A(e,t,i,n,a,c){const l=n.filter||{},h={...l,excludes:[...l.excludes||[],C.gB.Notebook]},d={only:l.include?.value,trigger:n.type},u=new g.ER(t,c),p=2===n.type,m=function(e,t,i){return e.all(t).filter((e=>!e.providedCodeActionKinds||e.providedCodeActionKinds.some((e=>(0,C.uJ)(i,new E.k(e))))))}(e,t,p?h:l),f=new o.Cm,_=m.map((async e=>{try{a.report(e);const s=await e.provideCodeActions(t,i,d,u.token);if(s&&f.add(s),u.token.isCancellationRequested)return k;const n=(s?.actions||[]).filter((e=>e&&(0,C.aF)(l,e))),r=function(e,t,i){if(!e.documentation)return;const s=e.documentation.map((e=>({kind:new E.k(e.kind),command:e.command})));if(i){let e;for(const t of s)t.kind.contains(i)&&(e?e.kind.contains(t.kind)&&(e=t):e=t);if(e)return e?.command}for(const n of t)if(n.kind)for(const e of s)if(e.kind.contains(new E.k(n.kind)))return e.command;return}(e,n,l.include);return{actions:n.map((t=>new C.Vi(t,e))),documentation:r}}catch(s){if((0,r.MB)(s))throw s;return(0,r.M_)(s),k}})),v=e.onDidChange((()=>{const i=e.all(t);(0,s.aI)(i,m)||u.cancel()}));try{const i=await Promise.all(_),r=i.map((e=>e.actions)).flat(),o=[...(0,s.Yc)(i.map((e=>e.documentation))),...N(e,t,n,r)];return new x(r,o,f)}finally{v.dispose(),u.dispose()}}function*N(e,t,i,s){if(t&&s.length)for(const n of e.all(t))n._getAdditionalMenuItems&&(yield*n._getAdditionalMenuItems?.({trigger:i.type,only:i.filter?.include?.value},s.map((e=>e.action))))}var I;async function O(e,t,i,s,r=n.XO.None){const o=e.get(c.nu),a=e.get(m.d),l=e.get(v.k),h=e.get(f.Ot);if(l.publicLog2("codeAction.applyCodeAction",{codeActionTitle:t.action.title,codeActionKind:t.action.kind,codeActionIsPreferred:!!t.action.isPreferred,reason:i}),await t.resolve(r),!r.isCancellationRequested){if(t.action.edit?.edits.length){if(!(await o.apply(t.action.edit,{editor:s?.editor,label:t.action.title,quotableLabel:t.action.title,code:"undoredo.codeAction",respectAutoSaveConfig:i!==I.OnSave,showPreview:s?.preview})).isApplied)return}if(t.action.command)try{await a.executeCommand(t.action.command.id,...t.action.command.arguments||[])}catch(d){const e=function(e){return"string"===typeof e?e:e instanceof Error&&"string"===typeof e.message?e.message:void 0}(d);h.error("string"===typeof e?e:p.kg("applyCodeActionFailed","An unknown error occurred while applying the code action"))}}}!function(e){e.OnSave="onSave",e.FromProblemsView="fromProblemsView",e.FromCodeActions="fromCodeActions",e.FromAILightbulb="fromAILightbulb"}(I||(I={})),m.w.registerCommand("_executeCodeActionProvider",(async function(e,t,i,s,o){if(!(t instanceof a.r))throw(0,r.Qg)();const{codeActionProvider:c}=e.get(d.ILanguageFeaturesService),g=e.get(u.IModelService).getModel(t);if(!g)throw(0,r.Qg)();const p=h.L.isISelection(i)?h.L.liftSelection(i):l.Q.isIRange(i)?g.validateRange(i):void 0;if(!p)throw(0,r.Qg)();const m="string"===typeof s?new E.k(s):void 0,f=await A(c,g,p,{type:1,triggerAction:C.fo.Default,filter:{includeSourceActions:!0,include:m}},_.ke.None,n.XO.None),v=[],b=Math.min(f.validActions.length,"number"===typeof o?o:0);for(let r=0;r<b;r++)v.push(f.validActions[r].resolve(n.XO.None));try{return await Promise.all(v),f.validActions.map((e=>e.action))}finally{setTimeout((()=>f.dispose()),100)}}))},55190:(e,t,i)=>{"use strict";i.d(t,{D:()=>s});class s{static capture(e){if(0===e.getScrollTop()||e.hasPendingScrollAnimation())return new s(e.getScrollTop(),e.getContentHeight(),null,0,null);let t=null,i=0;const n=e.getVisibleRanges();if(n.length>0){t=n[0].getStartPosition();const s=e.getTopForPosition(t.lineNumber,t.column);i=e.getScrollTop()-s}return new s(e.getScrollTop(),e.getContentHeight(),t,i,e.getPosition())}constructor(e,t,i,s,n){this._initialScrollTop=e,this._initialContentHeight=t,this._visiblePosition=i,this._visiblePositionScrollDelta=s,this._cursorPosition=n}restore(e){if((this._initialContentHeight!==e.getContentHeight()||this._initialScrollTop!==e.getScrollTop())&&this._visiblePosition){const t=e.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);e.setScrollTop(t+this._visiblePositionScrollDelta)}}restoreRelativeVerticalPositionOfCursor(e){if(this._initialContentHeight===e.getContentHeight()&&this._initialScrollTop===e.getScrollTop())return;const t=e.getPosition();if(!this._cursorPosition||!t)return;const i=e.getTopForLineNumber(t.lineNumber)-e.getTopForLineNumber(this._cursorPosition.lineNumber);e.setScrollTop(e.getScrollTop()+i,1)}}},55275:(e,t,i)=>{"use strict";i.d(t,{D:()=>s,Z:()=>r});class s{constructor(e){this.domNode=e,this._maxWidth="",this._width="",this._height="",this._top="",this._left="",this._bottom="",this._right="",this._paddingLeft="",this._fontFamily="",this._fontWeight="",this._fontSize="",this._fontStyle="",this._fontFeatureSettings="",this._fontVariationSettings="",this._textDecoration="",this._lineHeight="",this._letterSpacing="",this._className="",this._display="",this._position="",this._visibility="",this._color="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}setMaxWidth(e){const t=n(e);this._maxWidth!==t&&(this._maxWidth=t,this.domNode.style.maxWidth=this._maxWidth)}setWidth(e){const t=n(e);this._width!==t&&(this._width=t,this.domNode.style.width=this._width)}setHeight(e){const t=n(e);this._height!==t&&(this._height=t,this.domNode.style.height=this._height)}setTop(e){const t=n(e);this._top!==t&&(this._top=t,this.domNode.style.top=this._top)}setLeft(e){const t=n(e);this._left!==t&&(this._left=t,this.domNode.style.left=this._left)}setBottom(e){const t=n(e);this._bottom!==t&&(this._bottom=t,this.domNode.style.bottom=this._bottom)}setRight(e){const t=n(e);this._right!==t&&(this._right=t,this.domNode.style.right=this._right)}setPaddingLeft(e){const t=n(e);this._paddingLeft!==t&&(this._paddingLeft=t,this.domNode.style.paddingLeft=this._paddingLeft)}setFontFamily(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(e){const t=n(e);this._fontSize!==t&&(this._fontSize=t,this.domNode.style.fontSize=this._fontSize)}setFontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this.domNode.style.fontStyle=this._fontStyle)}setFontFeatureSettings(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setFontVariationSettings(e){this._fontVariationSettings!==e&&(this._fontVariationSettings=e,this.domNode.style.fontVariationSettings=this._fontVariationSettings)}setTextDecoration(e){this._textDecoration!==e&&(this._textDecoration=e,this.domNode.style.textDecoration=this._textDecoration)}setLineHeight(e){const t=n(e);this._lineHeight!==t&&(this._lineHeight=t,this.domNode.style.lineHeight=this._lineHeight)}setLetterSpacing(e){const t=n(e);this._letterSpacing!==t&&(this._letterSpacing=t,this.domNode.style.letterSpacing=this._letterSpacing)}setClassName(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)}toggleClassName(e,t){this.domNode.classList.toggle(e,t),this._className=this.domNode.className}setDisplay(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)}setPosition(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)}setColor(e){this._color!==e&&(this._color=e,this.domNode.style.color=this._color)}setBackgroundColor(e){this._backgroundColor!==e&&(this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}setBoxShadow(e){this._boxShadow!==e&&(this._boxShadow=e,this.domNode.style.boxShadow=e)}setContain(e){this._contain!==e&&(this._contain=e,this.domNode.style.contain=this._contain)}setAttribute(e,t){this.domNode.setAttribute(e,t)}removeAttribute(e){this.domNode.removeAttribute(e)}appendChild(e){this.domNode.appendChild(e.domNode)}removeChild(e){this.domNode.removeChild(e.domNode)}}function n(e){return"number"===typeof e?`${e}px`:e}function r(e){return new s(e)}},55433:(e,t,i)=>{"use strict";i.d(t,{Rj:()=>U,lr:()=>P,qs:()=>M});var s,n=i(8597),r=i(25890),o=i(90766),a=i(18447),c=i(17799),l=i(8995),h=i(5662),d=i(44320),u=i(98067),g=i(58255),p=i(68792),m=i(85411),f=i(80537),_=i(36677),v=i(62083),C=i(56942),E=i(90208),b=i(85541),S=i(50868),y=i(9948),w=i(99645),R=i(78209),L=i(54770),T=i(32848),x=i(63591),k=i(73823),A=i(51467),N=i(56687),I=i(64383),O=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},D=function(e,t){return function(i,s){t(i,s,e)}};const M="editor.changePasteType",P=new T.N1("pasteWidgetVisible",!1,(0,R.kg)("pasteWidgetVisible","Whether the paste widget is showing")),F="application/vnd.code.copyMetadata";let U=class extends h.jG{static{s=this}static{this.ID="editor.contrib.copyPasteActionController"}static get(e){return e.getContribution(s.ID)}constructor(e,t,i,s,r,o,a){super(),this._bulkEditService=i,this._clipboardService=s,this._languageFeaturesService=r,this._quickInputService=o,this._progressService=a,this._editor=e;const c=e.getContainerDomNode();this._register((0,n.ko)(c,"copy",(e=>this.handleCopy(e)))),this._register((0,n.ko)(c,"cut",(e=>this.handleCopy(e)))),this._register((0,n.ko)(c,"paste",(e=>this.handlePaste(e)),!0)),this._pasteProgressManager=this._register(new y.I("pasteIntoEditor",e,t)),this._postPasteWidgetManager=this._register(t.createInstance(N.G,"pasteIntoEditor",e,P,{id:M,label:(0,R.kg)("postPasteWidgetTitle","Show paste options...")}))}changePasteType(){this._postPasteWidgetManager.tryShowSelector()}pasteAs(e){this._editor.focus();try{this._pasteAsActionContext={preferred:e},(0,n.a)().execCommand("paste")}finally{this._pasteAsActionContext=void 0}}clearWidgets(){this._postPasteWidgetManager.clear()}isPasteAsEnabled(){return this._editor.getOption(85).enabled}async finishedPaste(){await this._currentPasteOperation}handleCopy(e){if(!this._editor.hasTextFocus())return;if(this._clipboardService.clearInternalState?.(),!e.clipboardData||!this.isPasteAsEnabled())return;const t=this._editor.getModel(),i=this._editor.getSelections();if(!t||!i?.length)return;const n=this._editor.getOption(37);let a=i;const c=1===i.length&&i[0].isEmpty();if(c){if(!n)return;a=[new _.Q(a[0].startLineNumber,1,a[0].startLineNumber,1+t.getLineLength(a[0].startLineNumber))]}const l=this._editor._getViewModel()?.getPlainTextToCopy(i,n,u.uF),h={multicursorText:Array.isArray(l)?l:null,pasteOnNewLine:c,mode:null},d=this._languageFeaturesService.documentPasteEditProvider.ordered(t).filter((e=>!!e.prepareDocumentPaste));if(!d.length)return void this.setCopyMetadata(e.clipboardData,{defaultPastePayload:h});const p=(0,m.q)(e.clipboardData),f=d.flatMap((e=>e.copyMimeTypes??[])),v=(0,g.b)();this.setCopyMetadata(e.clipboardData,{id:v,providerCopyMimeTypes:f,defaultPastePayload:h});const C=(0,o.SS)((async e=>{const i=(0,r.Yc)(await Promise.all(d.map((async i=>{try{return await i.prepareDocumentPaste(t,a,p,e)}catch(s){return void console.error(s)}}))));i.reverse();for(const t of i)for(const[e,i]of t)p.replace(e,i);return p}));s._currentCopyOperation?.dataTransferPromise.cancel(),s._currentCopyOperation={handle:v,dataTransferPromise:C}}async handlePaste(e){if(!e.clipboardData||!this._editor.hasTextFocus())return;w.k.get(this._editor)?.closeMessage(),this._currentPasteOperation?.cancel(),this._currentPasteOperation=void 0;const t=this._editor.getModel(),i=this._editor.getSelections();if(!i?.length||!t)return;if(this._editor.getOption(92)||!this.isPasteAsEnabled()&&!this._pasteAsActionContext)return;const s=this.fetchCopyMetadata(e),n=(0,m.l)(e.clipboardData);n.delete(F);const r=[...e.clipboardData.types,...s?.providerCopyMimeTypes??[],d.K.uriList],o=this._languageFeaturesService.documentPasteEditProvider.ordered(t).filter((e=>{const t=this._pasteAsActionContext?.preferred;return!(t&&e.providedPasteEditKinds&&!this.providerMatchesPreference(e,t))&&e.pasteMimeTypes?.some((e=>(0,c.Y)(e,r)))}));o.length?(e.preventDefault(),e.stopImmediatePropagation(),this._pasteAsActionContext?this.showPasteAsPick(this._pasteAsActionContext.preferred,o,i,n,s):this.doPasteInline(o,i,n,s,e)):this._pasteAsActionContext?.preferred&&this.showPasteAsNoEditMessage(i,this._pasteAsActionContext.preferred)}showPasteAsNoEditMessage(e,t){w.k.get(this._editor)?.showMessage((0,R.kg)("pasteAsError","No paste edits for '{0}' found",t instanceof l.k?t.value:t.providerId),e[0].getStartPosition())}doPasteInline(e,t,i,s,n){const r=this._editor;if(!r.hasModel())return;const c=new S.gI(r,3,void 0),l=(0,o.SS)((async r=>{const d=this._editor;if(!d.hasModel())return;const u=d.getModel(),g=new h.Cm,p=g.add(new a.Qi(r));g.add(c.token.onCancellationRequested((()=>p.cancel())));const m=p.token;try{if(await this.mergeInDataFromCopy(i,s,m),m.isCancellationRequested)return;const r=e.filter((e=>this.isSupportedPasteProvider(e,i)));if(!r.length||1===r.length&&r[0]instanceof E.LR)return this.applyDefaultPasteHandler(i,s,m,n);const a={triggerKind:v.FX.Automatic},c=await this.getPasteEdits(r,i,u,t,a,m);if(g.add(c),m.isCancellationRequested)return;if(1===c.edits.length&&c.edits[0].provider instanceof E.LR)return this.applyDefaultPasteHandler(i,s,m,n);if(c.edits.length){const e="afterPaste"===d.getOption(85).showPasteSelector;return this._postPasteWidgetManager.applyEditAndShowIfNeeded(t,{activeEditIndex:0,allEdits:c.edits},e,((e,i)=>new Promise(((s,n)=>{(async()=>{try{const r=e.provider.resolveDocumentPasteEdit?.(e,i),a=new o.Zv,c=r&&await this._pasteProgressManager.showWhile(t[0].getEndPosition(),(0,R.kg)("resolveProcess","Resolving paste edit. Click to cancel"),Promise.race([a.p,r]),{cancel:()=>(a.cancel(),n(new I.AL))},0);return c&&(e.additionalEdit=c.additionalEdit),s(e)}catch(r){return n(r)}})()}))),m)}await this.applyDefaultPasteHandler(i,s,m,n)}finally{g.dispose(),this._currentPasteOperation===l&&(this._currentPasteOperation=void 0)}}));this._pasteProgressManager.showWhile(t[0].getEndPosition(),(0,R.kg)("pasteIntoEditorProgress","Running paste handlers. Click to cancel and do basic paste"),l,{cancel:async()=>{try{if(l.cancel(),c.token.isCancellationRequested)return;await this.applyDefaultPasteHandler(i,s,c.token,n)}finally{c.dispose()}}}).then((()=>{c.dispose()})),this._currentPasteOperation=l}showPasteAsPick(e,t,i,s,n){const r=(0,o.SS)((async o=>{const a=this._editor;if(!a.hasModel())return;const c=a.getModel(),d=new h.Cm,u=d.add(new S.gI(a,3,void 0,o));try{if(await this.mergeInDataFromCopy(s,n,u.token),u.token.isCancellationRequested)return;let r=t.filter((t=>this.isSupportedPasteProvider(t,s,e)));e&&(r=r.filter((t=>this.providerMatchesPreference(t,e))));const o={triggerKind:v.FX.PasteAs,only:e&&e instanceof l.k?e:void 0};let a,h=d.add(await this.getPasteEdits(r,s,c,i,o,u.token));if(u.token.isCancellationRequested)return;if(e&&(h={edits:h.edits.filter((t=>e instanceof l.k?e.contains(t.kind):e.providerId===t.provider.id)),dispose:h.dispose}),!h.edits.length)return void(o.only&&this.showPasteAsNoEditMessage(i,o.only));if(e)a=h.edits.at(0);else{const e=await this._quickInputService.pick(h.edits.map((e=>({label:e.title,description:e.kind?.value,edit:e}))),{placeHolder:(0,R.kg)("pasteAsPickerPlaceholder","Select Paste Action")});a=e?.edit}if(!a)return;const g=(0,b.v)(c.uri,i,a);await this._bulkEditService.apply(g,{editor:this._editor})}finally{d.dispose(),this._currentPasteOperation===r&&(this._currentPasteOperation=void 0)}}));this._progressService.withProgress({location:10,title:(0,R.kg)("pasteAsProgress","Running paste handlers")},(()=>r))}setCopyMetadata(e,t){e.setData(F,JSON.stringify(t))}fetchCopyMetadata(e){if(!e.clipboardData)return;const t=e.clipboardData.getData(F);if(t)try{return JSON.parse(t)}catch{return}const[i,s]=p.Mz.getTextData(e.clipboardData);return s?{defaultPastePayload:{mode:s.mode,multicursorText:s.multicursorText??null,pasteOnNewLine:!!s.isFromEmptySelection}}:void 0}async mergeInDataFromCopy(e,t,i){if(t?.id&&s._currentCopyOperation?.handle===t.id){const t=await s._currentCopyOperation.dataTransferPromise;if(i.isCancellationRequested)return;for(const[i,s]of t)e.replace(i,s)}if(!e.has(d.K.uriList)){const t=await this._clipboardService.readResources();if(i.isCancellationRequested)return;t.length&&e.append(d.K.uriList,(0,c.gf)(c.jt.create(t)))}}async getPasteEdits(e,t,i,s,n,a){const c=new h.Cm,l=await(0,o.PK)(Promise.all(e.map((async e=>{try{const r=await(e.provideDocumentPasteEdits?.(i,s,t,n,a));return r&&c.add(r),r?.edits?.map((t=>({...t,provider:e})))}catch(r){return void((0,I.MB)(r)||console.error(r))}}))),a),d=(0,r.Yc)(l??[]).flat().filter((e=>!n.only||n.only.contains(e.kind)));return{edits:(0,b.H)(d),dispose:()=>c.dispose()}}async applyDefaultPasteHandler(e,t,i,s){const n=e.get(d.K.text)??e.get("text"),r=await(n?.asString())??"";if(i.isCancellationRequested)return;const o={clipboardEvent:s,text:r,pasteOnNewLine:t?.defaultPastePayload.pasteOnNewLine??!1,multicursorText:t?.defaultPastePayload.multicursorText??null,mode:null};this._editor.trigger("keyboard","paste",o)}isSupportedPasteProvider(e,t,i){return!!e.pasteMimeTypes?.some((e=>t.matches(e)))&&(!i||this.providerMatchesPreference(e,i))}providerMatchesPreference(e,t){return t instanceof l.k?!e.providedPasteEditKinds||e.providedPasteEditKinds.some((e=>t.contains(e))):e.id===t.providerId}};U=s=O([D(1,x._Y),D(2,f.nu),D(3,L.h),D(4,C.ILanguageFeaturesService),D(5,A.GK),D(6,k.G5)],U)},56245:(e,t,i)=>{"use strict";i.d(t,{f:()=>n});var s=i(41234);class n{get event(){return this.emitter.event}constructor(e,t,i){const n=e=>this.emitter.fire(e);this.emitter=new s.vl({onWillAddFirstListener:()=>e.addEventListener(t,n,i),onDidRemoveLastListener:()=>e.removeEventListener(t,n,i)})}dispose(){this.emitter.dispose()}}},56687:(e,t,i)=>{"use strict";i.d(t,{G:()=>S});var s,n=i(8597),r=i(62890),o=i(36921),a=i(70125),c=i(64383),l=i(41234),h=i(5662),d=i(80537),u=i(85541),g=i(78209),p=i(32848),m=i(47508),f=i(63591),_=i(98031),v=i(58591),C=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},E=function(e,t){return function(i,s){t(i,s,e)}};let b=class extends h.jG{static{s=this}static{this.baseId="editor.widget.postEditWidget"}constructor(e,t,i,s,n,r,o,a,c,d){super(),this.typeId=e,this.editor=t,this.showCommand=s,this.range=n,this.edits=r,this.onSelectNewEdit=o,this._contextMenuService=a,this._keybindingService=d,this.allowEditorOverflow=!0,this.suppressMouseDown=!0,this.create(),this.visibleContext=i.bindTo(c),this.visibleContext.set(!0),this._register((0,h.s)((()=>this.visibleContext.reset()))),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this),this._register((0,h.s)((()=>this.editor.removeContentWidget(this)))),this._register(this.editor.onDidChangeCursorPosition((e=>{n.containsPosition(e.position)||this.dispose()}))),this._register(l.Jh.runAndSubscribe(d.onDidUpdateKeybindings,(()=>{this._updateButtonTitle()})))}_updateButtonTitle(){const e=this._keybindingService.lookupKeybinding(this.showCommand.id)?.getLabel();this.button.element.title=this.showCommand.label+(e?` (${e})`:"")}create(){this.domNode=n.$(".post-edit-widget"),this.button=this._register(new r.$(this.domNode,{supportIcons:!0})),this.button.label="$(insert)",this._register(n.ko(this.domNode,n.Bx.CLICK,(()=>this.showSelector())))}getId(){return s.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:this.range.getEndPosition(),preference:[2]}}showSelector(){this._contextMenuService.showContextMenu({getAnchor:()=>{const e=n.BK(this.button.element);return{x:e.left+e.width,y:e.top+e.height}},getActions:()=>this.edits.allEdits.map(((e,t)=>(0,o.ih)({id:"",label:e.title,checked:t===this.edits.activeEditIndex,run:()=>{if(t!==this.edits.activeEditIndex)return this.onSelectNewEdit(t)}})))})}};b=s=C([E(7,m.Z),E(8,p.fN),E(9,_.b)],b);let S=class extends h.jG{constructor(e,t,i,s,n,r,o){super(),this._id=e,this._editor=t,this._visibleContext=i,this._showCommand=s,this._instantiationService=n,this._bulkEditService=r,this._notificationService=o,this._currentWidget=this._register(new h.HE),this._register(l.Jh.any(t.onDidChangeModel,t.onDidChangeModelContent)((()=>this.clear())))}async applyEditAndShowIfNeeded(e,t,i,s,n){const r=this._editor.getModel();if(!r||!e.length)return;const o=t.allEdits.at(t.activeEditIndex);if(!o)return;const l=async r=>{const o=this._editor.getModel();o&&(await o.undo(),this.applyEditAndShowIfNeeded(e,{activeEditIndex:r,allEdits:t.allEdits},i,s,n))},h=(s,n)=>{(0,c.MB)(s)||(this._notificationService.error(n),i&&this.show(e[0],t,l))};let d;try{d=await s(o,n)}catch(C){return h(C,(0,g.kg)("resolveError","Error resolving edit '{0}':\n{1}",o.title,(0,a.r)(C)))}if(n.isCancellationRequested)return;const p=(0,u.v)(r.uri,e,d),m=e[0],f=r.deltaDecorations([],[{range:m,options:{description:"paste-line-suffix",stickiness:0}}]);let _,v;this._editor.focus();try{_=await this._bulkEditService.apply(p,{editor:this._editor,token:n}),v=r.getDecorationRange(f[0])}catch(C){return h(C,(0,g.kg)("applyError","Error applying edit '{0}':\n{1}",o.title,(0,a.r)(C)))}finally{r.deltaDecorations(f,[])}n.isCancellationRequested||i&&_.isApplied&&t.allEdits.length>1&&this.show(v??m,t,l)}show(e,t,i){this.clear(),this._editor.hasModel()&&(this._currentWidget.value=this._instantiationService.createInstance(b,this._id,this._editor,this._visibleContext,this._showCommand,e,t,i))}clear(){this._currentWidget.clear()}tryShowSelector(){this._currentWidget.value?.showSelector()}};S=C([E(4,f._Y),E(5,d.nu),E(6,v.Ot)],S)},56691:(e,t,i)=>{"use strict";i.r(t),i.d(t,{findSectionHeaders:()=>r});const s=new RegExp("\\bMARK:\\s*(.*)$","d"),n=/^-+|-+$/g;function r(e,t){let i=[];if(t.findRegionSectionHeaders&&t.foldingRules?.markers){const s=function(e,t){const i=[],s=e.getLineCount();for(let n=1;n<=s;n++){const s=e.getLineContent(n),r=s.match(t.foldingRules.markers.start);if(r){const e={startLineNumber:n,startColumn:r[0].length+1,endLineNumber:n,endColumn:s.length+1};if(e.endColumn>e.startColumn){const t={range:e,...a(s.substring(r[0].length)),shouldBeInComments:!1};(t.text||t.hasSeparatorLine)&&i.push(t)}}}return i}(e,t);i=i.concat(s)}if(t.findMarkSectionHeaders){const t=function(e){const t=[],i=e.getLineCount();for(let s=1;s<=i;s++){o(e.getLineContent(s),s,t)}return t}(e);i=i.concat(t)}return i}function o(e,t,i){s.lastIndex=0;const n=s.exec(e);if(n){const e={startLineNumber:t,startColumn:n.indices[1][0]+1,endLineNumber:t,endColumn:n.indices[1][1]+1};if(e.endColumn>e.startColumn){const t={range:e,...a(n[1]),shouldBeInComments:!0};(t.text||t.hasSeparatorLine)&&i.push(t)}}}function a(e){const t=(e=e.trim()).startsWith("-");return{text:e=e.replace(n,""),hasSeparatorLine:t}}},56772:(e,t,i)=>{"use strict";i.d(t,{Fu:()=>p,az:()=>a,xb:()=>u});var s=i(91508),n=i(99020),r=i(36677);class o{constructor(e,t,i,s,n,r){this._richEditBracketBrand=void 0,this.languageId=e,this.index=t,this.open=i,this.close=s,this.forwardRegex=n,this.reversedRegex=r,this._openSet=o._toSet(this.open),this._closeSet=o._toSet(this.close)}isOpen(e){return this._openSet.has(e)}isClose(e){return this._closeSet.has(e)}static _toSet(e){const t=new Set;for(const i of e)t.add(i);return t}}class a{constructor(e,t){this._richEditBracketsBrand=void 0;const i=function(e){const t=e.length;e=e.map((e=>[e[0].toLowerCase(),e[1].toLowerCase()]));const i=[];for(let o=0;o<t;o++)i[o]=o;const s=(e,t)=>{const[i,s]=e,[n,r]=t;return i===n||i===r||s===n||s===r},n=(e,s)=>{const n=Math.min(e,s),r=Math.max(e,s);for(let o=0;o<t;o++)i[o]===r&&(i[o]=n)};for(let o=0;o<t;o++){const r=e[o];for(let a=o+1;a<t;a++)s(r,e[a])&&n(i[o],i[a])}const r=[];for(let o=0;o<t;o++){const s=[],n=[];for(let r=0;r<t;r++)if(i[r]===o){const[t,i]=e[r];s.push(t),n.push(i)}s.length>0&&r.push({open:s,close:n})}return r}(t);this.brackets=i.map(((t,s)=>new o(e,s,t.open,t.close,function(e,t,i,s){let n=[];n=n.concat(e),n=n.concat(t);for(let r=0,o=n.length;r<o;r++)c(n[r],i,s,n);return n=h(n),n.sort(l),n.reverse(),u(n)}(t.open,t.close,i,s),function(e,t,i,s){let n=[];n=n.concat(e),n=n.concat(t);for(let r=0,o=n.length;r<o;r++)c(n[r],i,s,n);return n=h(n),n.sort(l),n.reverse(),u(n.map(g))}(t.open,t.close,i,s)))),this.forwardRegex=function(e){let t=[];for(const i of e){for(const e of i.open)t.push(e);for(const e of i.close)t.push(e)}return t=h(t),u(t)}(this.brackets),this.reversedRegex=function(e){let t=[];for(const i of e){for(const e of i.open)t.push(e);for(const e of i.close)t.push(e)}return t=h(t),u(t.map(g))}(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(const s of this.brackets){for(const e of s.open)this.textIsBracket[e]=s,this.textIsOpenBracket[e]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,e.length);for(const e of s.close)this.textIsBracket[e]=s,this.textIsOpenBracket[e]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,e.length)}}}function c(e,t,i,s){for(let n=0,r=t.length;n<r;n++){if(n===i)continue;const r=t[n];for(const t of r.open)t.indexOf(e)>=0&&s.push(t);for(const t of r.close)t.indexOf(e)>=0&&s.push(t)}}function l(e,t){return e.length-t.length}function h(e){if(e.length<=1)return e;const t=[],i=new Set;for(const s of e)i.has(s)||(t.push(s),i.add(s));return t}function d(e){const t=/^[\w ]+$/.test(e);return e=s.bm(e),t?`\\b${e}\\b`:e}function u(e,t){const i=`(${e.map(d).join(")|(")})`;return s.OS(i,!0,t)}const g=function(){let e=null,t=null;return function(i){return e!==i&&(e=i,t=function(e){const t=new Uint16Array(e.length);let i=0;for(let s=e.length-1;s>=0;s--)t[i++]=e.charCodeAt(s);return n.b7().decode(t)}(e)),t}}();class p{static _findPrevBracketInText(e,t,i,s){const n=i.match(e);if(!n)return null;const o=i.length-(n.index||0),a=n[0].length,c=s+o;return new r.Q(t,c-a+1,t,c+1)}static findPrevBracketInRange(e,t,i,s,n){const r=g(i).substring(i.length-n,i.length-s);return this._findPrevBracketInText(e,t,r,s)}static findNextBracketInText(e,t,i,s){const n=i.match(e);if(!n)return null;const o=n.index||0,a=n[0].length;if(0===a)return null;const c=s+o;return new r.Q(t,c+1,t,c+1+a)}static findNextBracketInRange(e,t,i,s,n){const r=i.substring(s,n);return this.findNextBracketInText(e,t,r,s)}}},56800:(e,t,i)=>{"use strict";var s=i(8597),n=i(5662),r=i(31450),o=i(98067);class a extends n.jG{static{this.ID="editor.contrib.iPadShowKeyboard"}constructor(e){super(),this.editor=e,this.widget=null,o.un&&(this._register(e.onDidChangeConfiguration((()=>this.update()))),this.update())}update(){const e=!this.editor.getOption(92);!this.widget&&e?this.widget=new c(this.editor):this.widget&&!e&&(this.widget.dispose(),this.widget=null)}dispose(){super.dispose(),this.widget&&(this.widget.dispose(),this.widget=null)}}class c extends n.jG{static{this.ID="editor.contrib.ShowKeyboardWidget"}constructor(e){super(),this.editor=e,this._domNode=document.createElement("textarea"),this._domNode.className="iPadShowKeyboard",this._register(s.ko(this._domNode,"touchstart",(e=>{this.editor.focus()}))),this._register(s.ko(this._domNode,"focus",(e=>{this.editor.focus()}))),this.editor.addOverlayWidget(this)}dispose(){this.editor.removeOverlayWidget(this),super.dispose()}getId(){return c.ID}getDomNode(){return this._domNode}getPosition(){return{preference:1}}}(0,r.HW)(a.ID,a,3)},56942:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ILanguageFeaturesService:()=>s});const s=(0,i(63591).u1)("ILanguageFeaturesService")},56976:(e,t,i)=>{e.exports=i(34529)},57039:(e,t,i)=>{"use strict";i.d(t,{B2:()=>o,Ke:()=>r,hx:()=>s,mm:()=>n});class s{constructor(e,t,i,s){this.priority=e,this.range=t,this.initialMousePosX=i,this.initialMousePosY=s,this.type=1}equals(e){return 1===e.type&&this.range.equalsRange(e.range)}canAdoptVisibleHover(e,t){return 1===e.type&&t.lineNumber===this.range.startLineNumber}}class n{constructor(e,t,i,s,n,r){this.priority=e,this.owner=t,this.range=i,this.initialMousePosX=s,this.initialMousePosY=n,this.supportsMarkerHover=r,this.type=2}equals(e){return 2===e.type&&this.owner===e.owner}canAdoptVisibleHover(e,t){return 2===e.type&&this.owner===e.owner}}class r{constructor(e){this.renderedHoverParts=e}dispose(){for(const e of this.renderedHoverParts)e.dispose()}}const o=new class{constructor(){this._participants=[]}register(e){this._participants.push(e)}getAll(){return this._participants}}},57197:(e,t,i)=>{"use strict";var s=i(31450),n=i(78209);const r=Object.freeze({View:(0,n.aS)("view","View"),Help:(0,n.aS)("help","Help"),Test:(0,n.aS)("test","Test"),File:(0,n.aS)("file","File"),Preferences:(0,n.aS)("preferences","Preferences"),Developer:(0,n.aS)({key:"developer",comment:["A developer on Code itself or someone diagnosing issues in Code"]},"Developer")});var o=i(27195),a=i(84001),c=i(32848),l=i(60002),h=i(5662),d=i(56942),u=i(8597),g=i(80789),p=i(25890),m=i(25689),f=i(92473),_=i(29163),v=i(83069),C=i(99020),E=i(25521),b=i(35600),S=i(46109);class y{constructor(e,t,i,s=null){this.startLineNumbers=e,this.endLineNumbers=t,this.lastLineRelativePosition=i,this.showEndForLine=s}equals(e){return!!e&&this.lastLineRelativePosition===e.lastLineRelativePosition&&this.showEndForLine===e.showEndForLine&&(0,p.aI)(this.startLineNumbers,e.startLineNumbers)&&(0,p.aI)(this.endLineNumbers,e.endLineNumbers)}static get Empty(){return new y([],[],0)}}const w=(0,g.H)("stickyScrollViewLayer",{createHTML:e=>e}),R="data-sticky-line-index",L="data-sticky-is-line",T="data-sticky-is-folding-icon";class x extends h.jG{constructor(e){super(),this._editor=e,this._foldingIconStore=new h.Cm,this._rootDomNode=document.createElement("div"),this._lineNumbersDomNode=document.createElement("div"),this._linesDomNodeScrollable=document.createElement("div"),this._linesDomNode=document.createElement("div"),this._lineHeight=this._editor.getOption(67),this._renderedStickyLines=[],this._lineNumbers=[],this._lastLineRelativePosition=0,this._minContentWidthInPx=0,this._isOnGlyphMargin=!1,this._lineNumbersDomNode.className="sticky-widget-line-numbers",this._lineNumbersDomNode.setAttribute("role","none"),this._linesDomNode.className="sticky-widget-lines",this._linesDomNode.setAttribute("role","list"),this._linesDomNodeScrollable.className="sticky-widget-lines-scrollable",this._linesDomNodeScrollable.appendChild(this._linesDomNode),this._rootDomNode.className="sticky-widget",this._rootDomNode.classList.toggle("peek",e instanceof _.t),this._rootDomNode.appendChild(this._lineNumbersDomNode),this._rootDomNode.appendChild(this._linesDomNodeScrollable);const t=()=>{this._linesDomNode.style.left=this._editor.getOption(116).scrollWithEditor?`-${this._editor.getScrollLeft()}px`:"0px"};this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(116)&&t(),e.hasChanged(67)&&(this._lineHeight=this._editor.getOption(67))}))),this._register(this._editor.onDidScrollChange((e=>{e.scrollLeftChanged&&t(),e.scrollWidthChanged&&this._updateWidgetWidth()}))),this._register(this._editor.onDidChangeModel((()=>{t(),this._updateWidgetWidth()}))),this._register(this._foldingIconStore),t(),this._register(this._editor.onDidLayoutChange((e=>{this._updateWidgetWidth()}))),this._updateWidgetWidth()}get lineNumbers(){return this._lineNumbers}get lineNumberCount(){return this._lineNumbers.length}getRenderedStickyLine(e){return this._renderedStickyLines.find((t=>t.lineNumber===e))}getCurrentLines(){return this._lineNumbers}setState(e,t,i){if(void 0===i&&(!this._previousState&&!e||this._previousState&&this._previousState.equals(e)))return;const s=this._isWidgetHeightZero(e),n=s?void 0:e,r=s?0:this._findLineToRebuildWidgetFrom(e,i);this._renderRootNode(n,t,r),this._previousState=e}_isWidgetHeightZero(e){if(!e)return!0;const t=e.startLineNumbers.length*this._lineHeight+e.lastLineRelativePosition;if(t>0){this._lastLineRelativePosition=e.lastLineRelativePosition;const t=[...e.startLineNumbers];null!==e.showEndForLine&&(t[e.showEndForLine]=e.endLineNumbers[e.showEndForLine]),this._lineNumbers=t}else this._lastLineRelativePosition=0,this._lineNumbers=[];return 0===t}_findLineToRebuildWidgetFrom(e,t){if(!e||!this._previousState)return 0;if(void 0!==t)return t;const i=this._previousState,s=e.startLineNumbers.findIndex((e=>!i.startLineNumbers.includes(e)));return-1===s?0:s}_updateWidgetWidth(){const e=this._editor.getLayoutInfo(),t=e.contentLeft;this._lineNumbersDomNode.style.width=`${t}px`,this._linesDomNodeScrollable.style.setProperty("--vscode-editorStickyScroll-scrollableWidth",this._editor.getScrollWidth()-e.verticalScrollbarWidth+"px"),this._rootDomNode.style.width=e.width-e.verticalScrollbarWidth+"px"}_clearStickyLinesFromLine(e){this._foldingIconStore.clear();for(let t=e;t<this._renderedStickyLines.length;t++){const e=this._renderedStickyLines[t];e.lineNumberDomNode.remove(),e.lineDomNode.remove()}this._renderedStickyLines=this._renderedStickyLines.slice(0,e),this._rootDomNode.style.display="none"}_useFoldingOpacityTransition(e){this._lineNumbersDomNode.style.setProperty("--vscode-editorStickyScroll-foldingOpacityTransition",`opacity ${e?.5:0}s`)}_setFoldingIconsVisibility(e){for(const t of this._renderedStickyLines){const i=t.foldingIcon;i&&i.setVisible(!!e||i.isCollapsed)}}async _renderRootNode(e,t,i){if(this._clearStickyLinesFromLine(i),!e)return;for(const o of this._renderedStickyLines)this._updateTopAndZIndexOfStickyLine(o);const s=this._editor.getLayoutInfo(),n=this._lineNumbers.slice(i);for(const[o,a]of n.entries()){const e=this._renderChildNode(o+i,a,t,s);e&&(this._linesDomNode.appendChild(e.lineDomNode),this._lineNumbersDomNode.appendChild(e.lineNumberDomNode),this._renderedStickyLines.push(e))}t&&(this._setFoldingHoverListeners(),this._useFoldingOpacityTransition(!this._isOnGlyphMargin));const r=this._lineNumbers.length*this._lineHeight+this._lastLineRelativePosition;this._rootDomNode.style.display="block",this._lineNumbersDomNode.style.height=`${r}px`,this._linesDomNodeScrollable.style.height=`${r}px`,this._rootDomNode.style.height=`${r}px`,this._rootDomNode.style.marginLeft="0px",this._minContentWidthInPx=Math.max(...this._renderedStickyLines.map((e=>e.scrollWidth)))+s.verticalScrollbarWidth,this._editor.layoutOverlayWidget(this)}_setFoldingHoverListeners(){"mouseover"===this._editor.getOption(111)&&(this._foldingIconStore.add(u.ko(this._lineNumbersDomNode,u.Bx.MOUSE_ENTER,(()=>{this._isOnGlyphMargin=!0,this._setFoldingIconsVisibility(!0)}))),this._foldingIconStore.add(u.ko(this._lineNumbersDomNode,u.Bx.MOUSE_LEAVE,(()=>{this._isOnGlyphMargin=!1,this._useFoldingOpacityTransition(!0),this._setFoldingIconsVisibility(!1)}))))}_renderChildNode(e,t,i,s){const n=this._editor._getViewModel();if(!n)return;const r=n.coordinatesConverter.convertModelPositionToViewPosition(new v.y(t,1)).lineNumber,o=n.getViewLineRenderingData(r),a=this._editor.getOption(68);let c;try{c=E.d.filter(o.inlineDecorations,r,o.minColumn,o.maxColumn)}catch(y){c=[]}const l=new b.zL(!0,!0,o.content,o.continuesWithWrappedLine,o.isBasicASCII,o.containsRTL,0,o.tokens,c,o.tabSize,o.startVisibleColumn,1,1,1,500,"none",!0,!0,null),h=new C.fe(2e3),d=(0,b.UW)(l,h);let u;u=w?w.createHTML(h.build()):h.build();const g=document.createElement("span");g.setAttribute(R,String(e)),g.setAttribute(L,""),g.setAttribute("role","listitem"),g.tabIndex=0,g.className="sticky-line-content",g.classList.add(`stickyLine${t}`),g.style.lineHeight=`${this._lineHeight}px`,g.innerHTML=u;const p=document.createElement("span");p.setAttribute(R,String(e)),p.setAttribute("data-sticky-is-line-number",""),p.className="sticky-line-number",p.style.lineHeight=`${this._lineHeight}px`;const m=s.contentLeft;p.style.width=`${m}px`;const f=document.createElement("span");1===a.renderType||3===a.renderType&&t%10===0?f.innerText=t.toString():2===a.renderType&&(f.innerText=Math.abs(t-this._editor.getPosition().lineNumber).toString()),f.className="sticky-line-number-inner",f.style.lineHeight=`${this._lineHeight}px`,f.style.width=`${s.lineNumbersWidth}px`,f.style.paddingLeft=`${s.lineNumbersLeft}px`,p.appendChild(f);const _=this._renderFoldingIconForLine(i,t);_&&p.appendChild(_.domNode),this._editor.applyFontInfo(g),this._editor.applyFontInfo(f),p.style.lineHeight=`${this._lineHeight}px`,g.style.lineHeight=`${this._lineHeight}px`,p.style.height=`${this._lineHeight}px`,g.style.height=`${this._lineHeight}px`;const S=new k(e,t,g,p,_,d.characterMapping,g.scrollWidth);return this._updateTopAndZIndexOfStickyLine(S)}_updateTopAndZIndexOfStickyLine(e){const t=e.index,i=e.lineDomNode,s=e.lineNumberDomNode,n=t===this._lineNumbers.length-1;i.style.zIndex=n?"0":"1",s.style.zIndex=n?"0":"1";const r=`${t*this._lineHeight+this._lastLineRelativePosition+(e.foldingIcon?.isCollapsed?1:0)}px`,o=t*this._lineHeight+"px";return i.style.top=n?r:o,s.style.top=n?r:o,e}_renderFoldingIconForLine(e,t){const i=this._editor.getOption(111);if(!e||"never"===i)return;const s=e.regions,n=s.findRange(t),r=s.getStartLineNumber(n);if(!(t===r))return;const o=s.isCollapsed(n),a=new A(o,r,s.getEndLineNumber(n),this._lineHeight);return a.setVisible(!!this._isOnGlyphMargin||(o||"always"===i)),a.domNode.setAttribute(T,""),a}getId(){return"editor.contrib.stickyScrollWidget"}getDomNode(){return this._rootDomNode}getPosition(){return{preference:2,stackOridinal:10}}getMinContentWidthInPx(){return this._minContentWidthInPx}focusLineWithIndex(e){0<=e&&e<this._renderedStickyLines.length&&this._renderedStickyLines[e].lineDomNode.focus()}getEditorPositionFromNode(e){if(!e||e.children.length>0)return null;const t=this._getRenderedStickyLineFromChildDomNode(e);if(!t)return null;const i=(0,f.rk)(t.characterMapping,e,0);return new v.y(t.lineNumber,i)}getLineNumberFromChildDomNode(e){return this._getRenderedStickyLineFromChildDomNode(e)?.lineNumber??null}_getRenderedStickyLineFromChildDomNode(e){const t=this.getLineIndexFromChildDomNode(e);return null===t||t<0||t>=this._renderedStickyLines.length?null:this._renderedStickyLines[t]}getLineIndexFromChildDomNode(e){const t=this._getAttributeValue(e,R);return t?parseInt(t,10):null}isInStickyLine(e){return void 0!==this._getAttributeValue(e,L)}isInFoldingIconDomNode(e){return void 0!==this._getAttributeValue(e,T)}_getAttributeValue(e,t){for(;e&&e!==this._rootDomNode;){const i=e.getAttribute(t);if(null!==i)return i;e=e.parentElement}}}class k{constructor(e,t,i,s,n,r,o){this.index=e,this.lineNumber=t,this.lineDomNode=i,this.lineNumberDomNode=s,this.foldingIcon=n,this.characterMapping=r,this.scrollWidth=o}}class A{constructor(e,t,i,s){this.isCollapsed=e,this.foldingStartLine=t,this.foldingEndLine=i,this.dimension=s,this.domNode=document.createElement("div"),this.domNode.style.width=`${s}px`,this.domNode.style.height=`${s}px`,this.domNode.className=m.L.asClassName(e?S.k0:S.E0)}setVisible(e){this.domNode.style.cursor=e?"pointer":"default",this.domNode.style.opacity=e?"1":"0"}}var N=i(18447),I=i(90766),O=i(41234),D=i(17469),M=i(29999),P=i(44588),F=i(87784),U=i(76495),H=i(64383);class B{constructor(e,t){this.startLineNumber=e,this.endLineNumber=t}}class W{constructor(e,t,i){this.range=e,this.children=t,this.parent=i}}class V{constructor(e,t,i,s){this.uri=e,this.version=t,this.element=i,this.outlineProviderId=s}}var z,G,j=i(42522),K=i(63591),Y=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},q=function(e,t){return function(i,s){t(i,s,e)}};!function(e){e.OUTLINE_MODEL="outlineModel",e.FOLDING_PROVIDER_MODEL="foldingProviderModel",e.INDENTATION_MODEL="indentationModel"}(z||(z={})),function(e){e[e.VALID=0]="VALID",e[e.INVALID=1]="INVALID",e[e.CANCELED=2]="CANCELED"}(G||(G={}));let $=class extends h.jG{constructor(e,t,i,s){switch(super(),this._editor=e,this._modelProviders=[],this._modelPromise=null,this._updateScheduler=this._register(new I.ve(300)),this._updateOperation=this._register(new h.Cm),this._editor.getOption(116).defaultModel){case z.OUTLINE_MODEL:this._modelProviders.push(new X(this._editor,s));case z.FOLDING_PROVIDER_MODEL:this._modelProviders.push(new ee(this._editor,t,s));case z.INDENTATION_MODEL:this._modelProviders.push(new J(this._editor,i))}}dispose(){this._modelProviders.forEach((e=>e.dispose())),this._updateOperation.clear(),this._cancelModelPromise(),super.dispose()}_cancelModelPromise(){this._modelPromise&&(this._modelPromise.cancel(),this._modelPromise=null)}async update(e){return this._updateOperation.clear(),this._updateOperation.add({dispose:()=>{this._cancelModelPromise(),this._updateScheduler.cancel()}}),this._cancelModelPromise(),await this._updateScheduler.trigger((async()=>{for(const t of this._modelProviders){const{statusPromise:i,modelPromise:s}=t.computeStickyModel(e);this._modelPromise=s;const n=await i;if(this._modelPromise!==s)return null;switch(n){case G.CANCELED:return this._updateOperation.clear(),null;case G.VALID:return t.stickyModel}}return null})).catch((e=>((0,H.dz)(e),null)))}};$=Y([q(2,K._Y),q(3,d.ILanguageFeaturesService)],$);class Q extends h.jG{constructor(e){super(),this._editor=e,this._stickyModel=null}get stickyModel(){return this._stickyModel}_invalid(){return this._stickyModel=null,G.INVALID}computeStickyModel(e){if(e.isCancellationRequested||!this.isProviderValid())return{statusPromise:this._invalid(),modelPromise:null};const t=(0,I.SS)((e=>this.createModelFromProvider(e)));return{statusPromise:t.then((t=>this.isModelValid(t)?e.isCancellationRequested?G.CANCELED:(this._stickyModel=this.createStickyModel(e,t),G.VALID):this._invalid())).then(void 0,(e=>((0,H.dz)(e),G.CANCELED))),modelPromise:t}}isModelValid(e){return!0}isProviderValid(){return!0}}let X=class extends Q{constructor(e,t){super(e),this._languageFeaturesService=t}createModelFromProvider(e){return M.i9.create(this._languageFeaturesService.documentSymbolProvider,this._editor.getModel(),e)}createStickyModel(e,t){const{stickyOutlineElement:i,providerID:s}=this._stickyModelFromOutlineModel(t,this._stickyModel?.outlineProviderId),n=this._editor.getModel();return new V(n.uri,n.getVersionId(),i,s)}isModelValid(e){return e&&e.children.size>0}_stickyModelFromOutlineModel(e,t){let i;if(j.f.first(e.children.values())instanceof M.e0){const s=j.f.find(e.children.values(),(e=>e.id===t));if(s)i=s.children;else{let s,n="",r=-1;for(const[t,i]of e.children.entries()){const e=this._findSumOfRangesOfGroup(i);e>r&&(s=i,r=e,n=i.id)}t=n,i=s.children}}else i=e.children;const s=[],n=Array.from(i.values()).sort(((e,t)=>{const i=new B(e.symbol.range.startLineNumber,e.symbol.range.endLineNumber),s=new B(t.symbol.range.startLineNumber,t.symbol.range.endLineNumber);return this._comparator(i,s)}));for(const r of n)s.push(this._stickyModelFromOutlineElement(r,r.symbol.selectionRange.startLineNumber));return{stickyOutlineElement:new W(void 0,s,void 0),providerID:t}}_stickyModelFromOutlineElement(e,t){const i=[];for(const n of e.children.values())if(n.symbol.selectionRange.startLineNumber!==n.symbol.range.endLineNumber)if(n.symbol.selectionRange.startLineNumber!==t)i.push(this._stickyModelFromOutlineElement(n,n.symbol.selectionRange.startLineNumber));else for(const e of n.children.values())i.push(this._stickyModelFromOutlineElement(e,n.symbol.selectionRange.startLineNumber));i.sort(((e,t)=>this._comparator(e.range,t.range)));const s=new B(e.symbol.selectionRange.startLineNumber,e.symbol.range.endLineNumber);return new W(s,i,void 0)}_comparator(e,t){return e.startLineNumber!==t.startLineNumber?e.startLineNumber-t.startLineNumber:t.endLineNumber-e.endLineNumber}_findSumOfRangesOfGroup(e){let t=0;for(const i of e.children.values())t+=this._findSumOfRangesOfGroup(i);return e instanceof M.LC?t+e.symbol.range.endLineNumber-e.symbol.selectionRange.startLineNumber:t}};X=Y([q(1,d.ILanguageFeaturesService)],X);class Z extends Q{constructor(e){super(e),this._foldingLimitReporter=new P.BP(e)}createStickyModel(e,t){const i=this._fromFoldingRegions(t),s=this._editor.getModel();return new V(s.uri,s.getVersionId(),i,void 0)}isModelValid(e){return null!==e}_fromFoldingRegions(e){const t=e.length,i=[],s=new W(void 0,[],void 0);for(let n=0;n<t;n++){const t=e.getParentIndex(n);let r;r=-1!==t?i[t]:s;const o=new W(new B(e.getStartLineNumber(n),e.getEndLineNumber(n)+1),[],r);r.children.push(o),i.push(o)}return s}}let J=class extends Z{constructor(e,t){super(e),this._languageConfigurationService=t,this.provider=this._register(new U.hW(e.getModel(),this._languageConfigurationService,this._foldingLimitReporter))}async createModelFromProvider(e){return this.provider.compute(e)}};J=Y([q(1,D.JZ)],J);let ee=class extends Z{constructor(e,t,i){super(e),this._languageFeaturesService=i;const s=P.WR.getFoldingRangeProviders(this._languageFeaturesService,e.getModel());s.length>0&&(this.provider=this._register(new F.M(e.getModel(),s,t,this._foldingLimitReporter,void 0)))}isProviderValid(){return void 0!==this.provider}async createModelFromProvider(e){return this.provider?.compute(e)??null}};ee=Y([q(2,d.ILanguageFeaturesService)],ee);var te=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},ie=function(e,t){return function(i,s){t(i,s,e)}};class se{constructor(e,t,i){this.startLineNumber=e,this.endLineNumber=t,this.nestingDepth=i}}let ne=class extends h.jG{constructor(e,t,i){super(),this._languageFeaturesService=t,this._languageConfigurationService=i,this._onDidChangeStickyScroll=this._register(new O.vl),this.onDidChangeStickyScroll=this._onDidChangeStickyScroll.event,this._model=null,this._cts=null,this._stickyModelProvider=null,this._editor=e,this._sessionStore=this._register(new h.Cm),this._updateSoon=this._register(new I.uC((()=>this.update()),50)),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(116)&&this.readConfiguration()}))),this.readConfiguration()}readConfiguration(){this._sessionStore.clear();this._editor.getOption(116).enabled&&(this._sessionStore.add(this._editor.onDidChangeModel((()=>{this._model=null,this.updateStickyModelProvider(),this._onDidChangeStickyScroll.fire(),this.update()}))),this._sessionStore.add(this._editor.onDidChangeHiddenAreas((()=>this.update()))),this._sessionStore.add(this._editor.onDidChangeModelContent((()=>this._updateSoon.schedule()))),this._sessionStore.add(this._languageFeaturesService.documentSymbolProvider.onDidChange((()=>this.update()))),this._sessionStore.add((0,h.s)((()=>{this._stickyModelProvider?.dispose(),this._stickyModelProvider=null}))),this.updateStickyModelProvider(),this.update())}getVersionId(){return this._model?.version}updateStickyModelProvider(){this._stickyModelProvider?.dispose(),this._stickyModelProvider=null;const e=this._editor;e.hasModel()&&(this._stickyModelProvider=new $(e,(()=>this._updateSoon.schedule()),this._languageConfigurationService,this._languageFeaturesService))}async update(){this._cts?.dispose(!0),this._cts=new N.Qi,await this.updateStickyModel(this._cts.token),this._onDidChangeStickyScroll.fire()}async updateStickyModel(e){if(!this._editor.hasModel()||!this._stickyModelProvider||this._editor.getModel().isTooLargeForTokenization())return void(this._model=null);const t=await this._stickyModelProvider.update(e);e.isCancellationRequested||(this._model=t)}updateIndex(e){return-1===e?e=0:e<0&&(e=-e-2),e}getCandidateStickyLinesIntersectingFromStickyModel(e,t,i,s,n){if(0===t.children.length)return;let r=n;const o=[];for(let l=0;l<t.children.length;l++){const e=t.children[l];e.range&&o.push(e.range.startLineNumber)}const a=this.updateIndex((0,p.El)(o,e.startLineNumber,((e,t)=>e-t))),c=this.updateIndex((0,p.El)(o,e.startLineNumber+s,((e,t)=>e-t)));for(let l=a;l<=c;l++){const o=t.children[l];if(!o)return;if(o.range){const t=o.range.startLineNumber,n=o.range.endLineNumber;e.startLineNumber<=n+1&&t-1<=e.endLineNumber&&t!==r&&(r=t,i.push(new se(t,n-1,s+1)),this.getCandidateStickyLinesIntersectingFromStickyModel(e,o,i,s+1,t))}else this.getCandidateStickyLinesIntersectingFromStickyModel(e,o,i,s,n)}}getCandidateStickyLinesIntersecting(e){if(!this._model?.element)return[];let t=[];this.getCandidateStickyLinesIntersectingFromStickyModel(e,this._model.element,t,0,-1);const i=this._editor._getViewModel()?.getHiddenAreas();if(i)for(const s of i)t=t.filter((e=>!(e.startLineNumber>=s.startLineNumber&&e.endLineNumber<=s.endLineNumber+1)));return t}};ne=te([ie(1,d.ILanguageFeaturesService),ie(2,D.JZ)],ne);var re,oe=i(47508),ae=i(37927),ce=i(36677),le=i(80538),he=i(60952),de=i(32500),ue=i(47358),ge=i(52903),pe=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},me=function(e,t){return function(i,s){t(i,s,e)}};let fe=class extends h.jG{static{re=this}static{this.ID="store.contrib.stickyScrollController"}constructor(e,t,i,s,n,r,o){super(),this._editor=e,this._contextMenuService=t,this._languageFeaturesService=i,this._instaService=s,this._contextKeyService=o,this._sessionStore=new h.Cm,this._maxStickyLines=Number.MAX_SAFE_INTEGER,this._candidateDefinitionsLength=-1,this._focusedStickyElementIndex=-1,this._enabled=!1,this._focused=!1,this._positionRevealed=!1,this._onMouseDown=!1,this._endLineNumbers=[],this._stickyScrollWidget=new x(this._editor),this._stickyLineCandidateProvider=new ne(this._editor,i,n),this._register(this._stickyScrollWidget),this._register(this._stickyLineCandidateProvider),this._widgetState=y.Empty,this._onDidResize(),this._readConfiguration();const a=this._stickyScrollWidget.getDomNode();this._register(this._editor.onDidChangeConfiguration((e=>{this._readConfigurationChange(e)}))),this._register(u.ko(a,u.Bx.CONTEXT_MENU,(async e=>{this._onContextMenu(u.zk(a),e)}))),this._stickyScrollFocusedContextKey=l.R.stickyScrollFocused.bindTo(this._contextKeyService),this._stickyScrollVisibleContextKey=l.R.stickyScrollVisible.bindTo(this._contextKeyService);const c=this._register(u.w5(a));this._register(c.onDidBlur((e=>{!1===this._positionRevealed&&0===a.clientHeight?(this._focusedStickyElementIndex=-1,this.focus()):this._disposeFocusStickyScrollStore()}))),this._register(c.onDidFocus((e=>{this.focus()}))),this._registerMouseListeners(),this._register(u.ko(a,u.Bx.MOUSE_DOWN,(e=>{this._onMouseDown=!0})))}static get(e){return e.getContribution(re.ID)}_disposeFocusStickyScrollStore(){this._stickyScrollFocusedContextKey.set(!1),this._focusDisposableStore?.dispose(),this._focused=!1,this._positionRevealed=!1,this._onMouseDown=!1}focus(){if(this._onMouseDown)return this._onMouseDown=!1,void this._editor.focus();!0!==this._stickyScrollFocusedContextKey.get()&&(this._focused=!0,this._focusDisposableStore=new h.Cm,this._stickyScrollFocusedContextKey.set(!0),this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumbers.length-1,this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex))}focusNext(){this._focusedStickyElementIndex<this._stickyScrollWidget.lineNumberCount-1&&this._focusNav(!0)}focusPrevious(){this._focusedStickyElementIndex>0&&this._focusNav(!1)}selectEditor(){this._editor.focus()}_focusNav(e){this._focusedStickyElementIndex=e?this._focusedStickyElementIndex+1:this._focusedStickyElementIndex-1,this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex)}goToFocused(){const e=this._stickyScrollWidget.lineNumbers;this._disposeFocusStickyScrollStore(),this._revealPosition({lineNumber:e[this._focusedStickyElementIndex],column:1})}_revealPosition(e){this._reveaInEditor(e,(()=>this._editor.revealPosition(e)))}_revealLineInCenterIfOutsideViewport(e){this._reveaInEditor(e,(()=>this._editor.revealLineInCenterIfOutsideViewport(e.lineNumber,0)))}_reveaInEditor(e,t){this._focused&&this._disposeFocusStickyScrollStore(),this._positionRevealed=!0,t(),this._editor.setSelection(ce.Q.fromPositions(e)),this._editor.focus()}_registerMouseListeners(){const e=this._register(new h.Cm),t=this._register(new ae.gi(this._editor,{extractLineNumberFromMouseEvent:e=>{const t=this._stickyScrollWidget.getEditorPositionFromNode(e.target.element);return t?t.lineNumber:0}})),i=e=>{if(!this._editor.hasModel())return null;if(12!==e.target.type||e.target.detail!==this._stickyScrollWidget.getId())return null;const t=e.target.element;if(!t||t.innerText!==t.innerHTML)return null;const i=this._stickyScrollWidget.getEditorPositionFromNode(t);return i?{range:new ce.Q(i.lineNumber,i.column,i.lineNumber,i.column+t.innerText.length),textElement:t}:null},s=this._stickyScrollWidget.getDomNode();this._register(u.b2(s,u.Bx.CLICK,(e=>{if(e.ctrlKey||e.altKey||e.metaKey)return;if(!e.leftButton)return;if(e.shiftKey){const t=this._stickyScrollWidget.getLineIndexFromChildDomNode(e.target);if(null===t)return;const i=new v.y(this._endLineNumbers[t],1);return void this._revealLineInCenterIfOutsideViewport(i)}if(this._stickyScrollWidget.isInFoldingIconDomNode(e.target)){const t=this._stickyScrollWidget.getLineNumberFromChildDomNode(e.target);return void this._toggleFoldingRegionForLine(t)}if(!this._stickyScrollWidget.isInStickyLine(e.target))return;let t=this._stickyScrollWidget.getEditorPositionFromNode(e.target);if(!t){const i=this._stickyScrollWidget.getLineNumberFromChildDomNode(e.target);if(null===i)return;t=new v.y(i,1)}this._revealPosition(t)}))),this._register(u.b2(s,u.Bx.MOUSE_MOVE,(e=>{if(e.shiftKey){const t=this._stickyScrollWidget.getLineIndexFromChildDomNode(e.target);if(null===t||null!==this._showEndForLine&&this._showEndForLine===t)return;return this._showEndForLine=t,void this._renderStickyScroll()}void 0!==this._showEndForLine&&(this._showEndForLine=void 0,this._renderStickyScroll())}))),this._register(u.ko(s,u.Bx.MOUSE_LEAVE,(e=>{void 0!==this._showEndForLine&&(this._showEndForLine=void 0,this._renderStickyScroll())}))),this._register(t.onMouseMoveOrRelevantKeyDown((([t,s])=>{const n=i(t);if(!n||!t.hasTriggerModifier||!this._editor.hasModel())return void e.clear();const{range:r,textElement:o}=n;if(r.equalsRange(this._stickyRangeProjectedOnEditor)){if("underline"===o.style.textDecoration)return}else this._stickyRangeProjectedOnEditor=r,e.clear();const a=new N.Qi;let c;e.add((0,h.s)((()=>a.dispose(!0)))),(0,le.hE)(this._languageFeaturesService.definitionProvider,this._editor.getModel(),new v.y(r.startLineNumber,r.startColumn+1),!1,a.token).then((t=>{if(!a.token.isCancellationRequested)if(0!==t.length){this._candidateDefinitionsLength=t.length;const i=o;c!==i?(e.clear(),c=i,c.style.textDecoration="underline",e.add((0,h.s)((()=>{c.style.textDecoration="none"})))):c||(c=i,c.style.textDecoration="underline",e.add((0,h.s)((()=>{c.style.textDecoration="none"}))))}else e.clear()}))}))),this._register(t.onCancel((()=>{e.clear()}))),this._register(t.onExecute((async e=>{if(12!==e.target.type||e.target.detail!==this._stickyScrollWidget.getId())return;const t=this._stickyScrollWidget.getEditorPositionFromNode(e.target.element);t&&this._editor.hasModel()&&this._stickyRangeProjectedOnEditor&&(this._candidateDefinitionsLength>1&&(this._focused&&this._disposeFocusStickyScrollStore(),this._revealPosition({lineNumber:t.lineNumber,column:1})),this._instaService.invokeFunction(he.U,e,this._editor,{uri:this._editor.getModel().uri,range:this._stickyRangeProjectedOnEditor}))})))}_onContextMenu(e,t){const i=new ue.P(e,t);this._contextMenuService.showContextMenu({menuId:o.D8.StickyScrollContext,getAnchor:()=>i})}_toggleFoldingRegionForLine(e){if(!this._foldingModel||null===e)return;const t=this._stickyScrollWidget.getRenderedStickyLine(e),i=t?.foldingIcon;if(!i)return;(0,ge.bC)(this._foldingModel,Number.MAX_VALUE,[e]),i.isCollapsed=!i.isCollapsed;const s=(i.isCollapsed?this._editor.getTopForLineNumber(i.foldingEndLine):this._editor.getTopForLineNumber(i.foldingStartLine))-this._editor.getOption(67)*t.index+1;this._editor.setScrollTop(s),this._renderStickyScroll(e)}_readConfiguration(){const e=this._editor.getOption(116);if(!1===e.enabled)return this._editor.removeOverlayWidget(this._stickyScrollWidget),this._sessionStore.clear(),void(this._enabled=!1);e.enabled&&!this._enabled&&(this._editor.addOverlayWidget(this._stickyScrollWidget),this._sessionStore.add(this._editor.onDidScrollChange((e=>{e.scrollTopChanged&&(this._showEndForLine=void 0,this._renderStickyScroll())}))),this._sessionStore.add(this._editor.onDidLayoutChange((()=>this._onDidResize()))),this._sessionStore.add(this._editor.onDidChangeModelTokens((e=>this._onTokensChange(e)))),this._sessionStore.add(this._stickyLineCandidateProvider.onDidChangeStickyScroll((()=>{this._showEndForLine=void 0,this._renderStickyScroll()}))),this._enabled=!0);2===this._editor.getOption(68).renderType&&this._sessionStore.add(this._editor.onDidChangeCursorPosition((()=>{this._showEndForLine=void 0,this._renderStickyScroll(0)})))}_readConfigurationChange(e){(e.hasChanged(116)||e.hasChanged(73)||e.hasChanged(67)||e.hasChanged(111)||e.hasChanged(68))&&this._readConfiguration(),e.hasChanged(68)&&this._renderStickyScroll(0)}_needsUpdate(e){const t=this._stickyScrollWidget.getCurrentLines();for(const i of t)for(const t of e.ranges)if(i>=t.fromLineNumber&&i<=t.toLineNumber)return!0;return!1}_onTokensChange(e){this._needsUpdate(e)&&this._renderStickyScroll(0)}_onDidResize(){const e=this._editor.getLayoutInfo().height/this._editor.getOption(67);this._maxStickyLines=Math.round(.25*e)}async _renderStickyScroll(e){const t=this._editor.getModel();if(!t||t.isTooLargeForTokenization())return void this._resetState();const i=this._updateAndGetMinRebuildFromLine(e),s=this._stickyLineCandidateProvider.getVersionId();if(void 0===s||s===t.getVersionId())if(this._focused)if(-1===this._focusedStickyElementIndex)await this._updateState(i),this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumberCount-1,-1!==this._focusedStickyElementIndex&&this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex);else{const e=this._stickyScrollWidget.lineNumbers[this._focusedStickyElementIndex];if(await this._updateState(i),0===this._stickyScrollWidget.lineNumberCount)this._focusedStickyElementIndex=-1;else{this._stickyScrollWidget.lineNumbers.includes(e)||(this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumberCount-1),this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex)}}else await this._updateState(i)}_updateAndGetMinRebuildFromLine(e){if(void 0!==e){const t=void 0!==this._minRebuildFromLine?this._minRebuildFromLine:1/0;this._minRebuildFromLine=Math.min(e,t)}return this._minRebuildFromLine}async _updateState(e){this._minRebuildFromLine=void 0,this._foldingModel=await(P.WR.get(this._editor)?.getFoldingModel())??void 0,this._widgetState=this.findScrollWidgetState();const t=this._widgetState.startLineNumbers.length>0;this._stickyScrollVisibleContextKey.set(t),this._stickyScrollWidget.setState(this._widgetState,this._foldingModel,e)}async _resetState(){this._minRebuildFromLine=void 0,this._foldingModel=void 0,this._widgetState=y.Empty,this._stickyScrollVisibleContextKey.set(!1),this._stickyScrollWidget.setState(void 0,void 0)}findScrollWidgetState(){const e=this._editor.getOption(67),t=Math.min(this._maxStickyLines,this._editor.getOption(116).maxLineCount),i=this._editor.getScrollTop();let s=0;const n=[],r=[],o=this._editor.getVisibleRanges();if(0!==o.length){const a=new B(o[0].startLineNumber,o[o.length-1].endLineNumber),c=this._stickyLineCandidateProvider.getCandidateStickyLinesIntersecting(a);for(const o of c){const a=o.startLineNumber,c=o.endLineNumber,l=o.nestingDepth;if(c-a>0){const o=(l-1)*e,h=l*e,d=this._editor.getBottomForLineNumber(a)-i,u=this._editor.getTopForLineNumber(c)-i,g=this._editor.getBottomForLineNumber(c)-i;if(o>u&&o<=g){n.push(a),r.push(c+1),s=g-h;break}if(h>d&&h<=g&&(n.push(a),r.push(c+1)),n.length===t)break}}}return this._endLineNumbers=r,new y(n,r,s,this._showEndForLine)}dispose(){super.dispose(),this._sessionStore.dispose()}};fe=re=pe([me(1,oe.Z),me(2,d.ILanguageFeaturesService),me(3,K._Y),me(4,D.JZ),me(5,de.ILanguageFeatureDebounceService),me(6,c.fN)],fe);class _e extends o.L{constructor(){super({id:"editor.action.toggleStickyScroll",title:{...(0,n.aS)("toggleEditorStickyScroll","Toggle Editor Sticky Scroll"),mnemonicTitle:(0,n.kg)({key:"mitoggleStickyScroll",comment:["&& denotes a mnemonic"]},"&&Toggle Editor Sticky Scroll")},metadata:{description:(0,n.aS)("toggleEditorStickyScroll.description","Toggle/enable the editor sticky scroll which shows the nested scopes at the top of the viewport")},category:r.View,toggled:{condition:c.M$.equals("config.editor.stickyScroll.enabled",!0),title:(0,n.kg)("stickyScroll","Sticky Scroll"),mnemonicTitle:(0,n.kg)({key:"miStickyScroll",comment:["&& denotes a mnemonic"]},"&&Sticky Scroll")},menu:[{id:o.D8.CommandPalette},{id:o.D8.MenubarAppearanceMenu,group:"4_editor",order:3},{id:o.D8.StickyScrollContext}]})}async run(e){const t=e.get(a.pG),i=!t.getValue("editor.stickyScroll.enabled");return t.updateValue("editor.stickyScroll.enabled",i)}}const ve=100;class Ce extends s.qO{constructor(){super({id:"editor.action.focusStickyScroll",title:{...(0,n.aS)("focusStickyScroll","Focus on the editor sticky scroll"),mnemonicTitle:(0,n.kg)({key:"mifocusStickyScroll",comment:["&& denotes a mnemonic"]},"&&Focus Sticky Scroll")},precondition:c.M$.and(c.M$.has("config.editor.stickyScroll.enabled"),l.R.stickyScrollVisible),menu:[{id:o.D8.CommandPalette}]})}runEditorCommand(e,t){fe.get(t)?.focus()}}class Ee extends s.qO{constructor(){super({id:"editor.action.selectNextStickyScrollLine",title:(0,n.aS)("selectNextStickyScrollLine.title","Select the next editor sticky scroll line"),precondition:l.R.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:ve,primary:18}})}runEditorCommand(e,t){fe.get(t)?.focusNext()}}class be extends s.qO{constructor(){super({id:"editor.action.selectPreviousStickyScrollLine",title:(0,n.aS)("selectPreviousStickyScrollLine.title","Select the previous sticky scroll line"),precondition:l.R.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:ve,primary:16}})}runEditorCommand(e,t){fe.get(t)?.focusPrevious()}}class Se extends s.qO{constructor(){super({id:"editor.action.goToFocusedStickyScrollLine",title:(0,n.aS)("goToFocusedStickyScrollLine.title","Go to the focused sticky scroll line"),precondition:l.R.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:ve,primary:3}})}runEditorCommand(e,t){fe.get(t)?.goToFocused()}}class ye extends s.qO{constructor(){super({id:"editor.action.selectEditor",title:(0,n.aS)("selectEditor.title","Select Editor"),precondition:l.R.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:ve,primary:9}})}runEditorCommand(e,t){fe.get(t)?.selectEditor()}}(0,s.HW)(fe.ID,fe,1),(0,o.ug)(_e),(0,o.ug)(Ce),(0,o.ug)(be),(0,o.ug)(Ee),(0,o.ug)(Se),(0,o.ug)(ye)},57233:(e,t,i)=>{e.exports=function(e){const t=i(94297);function s(e){return"yql_tagged"+t.WHITESPACE+"tagged"+t.WHITESPACE+"tag_"+e}function n(e,i,s){return"url"===e?t.normalizeUrl(i,s):"data:"+t.escape(e)+";base64,"+t.escape(i)}function r(e){return function(i,r){return function(e,i,r={}){const{asHTML:o}=r;function a(e,t){return'<img class="'+s("image")+'" src="'+e+'"'+(t?'" style="'+t+'"':"")+"/>"}return"tag_value"===e.$type?function(){const s=n(i,e.$value.src,r);if(!o)return s;const c={width:e.$value.width,height:e.$value.height,"max-width":e.$value.maxWidth,"max-height":e.$value.maxHeight},l=["width","height","max-width","max-height"].map((function(e){const t=c[e];return t?e+":"+(isNaN(t)?t:t+"px"):""})).filter(Boolean).join(";");return a(s,t.escape(l))}():function(){const t=n(i,e.$value,r);return o?a(t):t}()}(i,e,r)}}function o(e){return function(i,r){return function(e,i,r){const{asHTML:o}=r;function a(e,t){return'<video class="'+s("video")+'" controls src="'+e+'"'+(t?' style="'+t+'"':"")+"></video>"}return"tag_value"===e.$type?function(){const s=n(i,e.$value.src,r);if(!o)return s;const c={width:e.$value.width,height:e.$value.height,"max-width":e.$value.maxWidth,"max-height":e.$value.maxHeight},l=["width","height","max-width","max-height"].map((function(e){const t=c[e];return t?e+":"+(isNaN(t)?t:t+"px"):""})).filter(Boolean).join(";");return a(s,t.escape(l))}():function(){const t=n(i,e.$value,r);return o?a(t):t}()}(i,e,r)}}function a(e){return function(i,r){return function(e,i,r){const{asHTML:o}=r,a=s("audio"),c=n(i,e,r);return o?'<audio class="'+a+'" controls src="'+c+'"></audio>':t.escape(e)}(i.$value,e,r)}}const c={"image/svg":r("image/svg+xml"),"image/svg+xml":r("image/svg+xml"),"image/jpeg":r("image/jpeg"),"image/png":r("image/png"),"image/gif":r("image/gif"),"image/webp":r("image/webp"),imageurl:r("url"),"video/mp4":o("video/mp4"),"video/webm":o("video/webm"),videourl:o("url"),"audio/mpeg":a("audio/mpeg"),"audio/webm":a("audio/webm"),"audio/wav":a("audio/wav"),audiourl:a("url"),url:function(i,n,r){function o(e,i,n){return'<a class="'+s("url")+'" target="_blank" href="'+e+'"'+(n?' title="'+t.escape(n)+'"':"")+">"+i+"</a>"}if(n.asHTML){if("tag_value"===i.$type)return function(){const e=t.escape(i.$value.text||i.$value.href);return o(t.normalizeUrl(i.$value.href||"",n),e,i.$value.title)}();if("string"===typeof i.$value)return function(){const e=t.escape(i.$value);return o(t.normalizeUrl(i.$value,n),e,"")}()}return e(i,n,r)}};return function(t,i,s){return(c[t.$tag]||e)(t.$value,i,s)}}},57244:(e,t,i)=>{"use strict";var s=i(5662),n=i(91508),r=i(31450),o=i(7936),a=i(36677),c=i(60002),l=i(17469),h=i(23750),d=i(64395),u=i(78209),g=i(51467),p=i(82365),m=i(7085),f=i(93895),_=i(75326),v=i(27760);function C(e,t,i,s){if(1===e.getLineCount()&&1===e.getLineMaxColumn(1))return[];const r=t.getLanguageConfiguration(e.getLanguageId()).indentRulesSupport;if(!r)return[];const a=new v.no(e,r,t);for(s=Math.min(s,e.getLineCount());i<=s&&a.shouldIgnore(i);)i++;if(i>s-1)return[];const{tabSize:c,indentSize:l,insertSpaces:h}=e.getOptions(),d=(e,t)=>(t=t||1,o.Y.shiftIndent(e,e.length+t,c,l,h)),u=(e,t)=>(t=t||1,o.Y.unshiftIndent(e,e.length+t,c,l,h)),g=[],p=e.getLineContent(i);let C=n.UU(p),b=C;a.shouldIncrease(i)?(b=d(b),C=d(C)):a.shouldIndentNextLine(i)&&(b=d(b));for(let o=++i;o<=s;o++){if(E(e,o))continue;const t=e.getLineContent(o),i=n.UU(t),s=b;a.shouldDecrease(o,s)&&(b=u(b),C=u(C)),i!==b&&g.push(m.k.replaceMove(new _.L(o,1,o,i.length+1),(0,f.P)(b,l,h))),a.shouldIgnore(o)||(a.shouldIncrease(o,s)?(C=d(C),b=C):b=a.shouldIndentNextLine(o,s)?d(b):C)}return g}function E(e,t){if(!e.tokenization.isCheapToTokenize(t))return!1;return 2===e.tokenization.getLineTokens(t).getStandardTokenType(0)}var b=i(87469),S=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},y=function(e,t){return function(i,s){t(i,s,e)}};class w extends r.ks{static{this.ID="editor.action.indentationToSpaces"}constructor(){super({id:w.ID,label:u.kg("indentationToSpaces","Convert Indentation to Spaces"),alias:"Convert Indentation to Spaces",precondition:c.R.writable,metadata:{description:u.aS("indentationToSpacesDescription","Convert the tab indentation to spaces.")}})}run(e,t){const i=t.getModel();if(!i)return;const s=i.getOptions(),n=t.getSelection();if(!n)return;const r=new P(n,s.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[r]),t.pushUndoStop(),i.updateOptions({insertSpaces:!0})}}class R extends r.ks{static{this.ID="editor.action.indentationToTabs"}constructor(){super({id:R.ID,label:u.kg("indentationToTabs","Convert Indentation to Tabs"),alias:"Convert Indentation to Tabs",precondition:c.R.writable,metadata:{description:u.aS("indentationToTabsDescription","Convert the spaces indentation to tabs.")}})}run(e,t){const i=t.getModel();if(!i)return;const s=i.getOptions(),n=t.getSelection();if(!n)return;const r=new F(n,s.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[r]),t.pushUndoStop(),i.updateOptions({insertSpaces:!1})}}class L extends r.ks{constructor(e,t,i){super(i),this.insertSpaces=e,this.displaySizeOnly=t}run(e,t){const i=e.get(g.GK),s=e.get(h.IModelService),n=t.getModel();if(!n)return;const r=s.getCreationOptions(n.getLanguageId(),n.uri,n.isForSimpleWidget),o=n.getOptions(),a=[1,2,3,4,5,6,7,8].map((e=>({id:e.toString(),label:e.toString(),description:e===r.tabSize&&e===o.tabSize?u.kg("configuredTabSize","Configured Tab Size"):e===r.tabSize?u.kg("defaultTabSize","Default Tab Size"):e===o.tabSize?u.kg("currentTabSize","Current Tab Size"):void 0}))),c=Math.min(n.getOptions().tabSize-1,7);setTimeout((()=>{i.pick(a,{placeHolder:u.kg({key:"selectTabWidth",comment:["Tab corresponds to the tab key"]},"Select Tab Size for Current File"),activeItem:a[c]}).then((e=>{if(e&&n&&!n.isDisposed()){const t=parseInt(e.label,10);this.displaySizeOnly?n.updateOptions({tabSize:t}):n.updateOptions({tabSize:t,indentSize:t,insertSpaces:this.insertSpaces})}}))}),50)}}class T extends L{static{this.ID="editor.action.indentUsingTabs"}constructor(){super(!1,!1,{id:T.ID,label:u.kg("indentUsingTabs","Indent Using Tabs"),alias:"Indent Using Tabs",precondition:void 0,metadata:{description:u.aS("indentUsingTabsDescription","Use indentation with tabs.")}})}}class x extends L{static{this.ID="editor.action.indentUsingSpaces"}constructor(){super(!0,!1,{id:x.ID,label:u.kg("indentUsingSpaces","Indent Using Spaces"),alias:"Indent Using Spaces",precondition:void 0,metadata:{description:u.aS("indentUsingSpacesDescription","Use indentation with spaces.")}})}}class k extends L{static{this.ID="editor.action.changeTabDisplaySize"}constructor(){super(!0,!0,{id:k.ID,label:u.kg("changeTabDisplaySize","Change Tab Display Size"),alias:"Change Tab Display Size",precondition:void 0,metadata:{description:u.aS("changeTabDisplaySizeDescription","Change the space size equivalent of the tab.")}})}}class A extends r.ks{static{this.ID="editor.action.detectIndentation"}constructor(){super({id:A.ID,label:u.kg("detectIndentation","Detect Indentation from Content"),alias:"Detect Indentation from Content",precondition:void 0,metadata:{description:u.aS("detectIndentationDescription","Detect the indentation from content.")}})}run(e,t){const i=e.get(h.IModelService),s=t.getModel();if(!s)return;const n=i.getCreationOptions(s.getLanguageId(),s.uri,s.isForSimpleWidget);s.detectIndentation(n.insertSpaces,n.tabSize)}}class N extends r.ks{constructor(){super({id:"editor.action.reindentlines",label:u.kg("editor.reindentlines","Reindent Lines"),alias:"Reindent Lines",precondition:c.R.writable,metadata:{description:u.aS("editor.reindentlinesDescription","Reindent the lines of the editor.")}})}run(e,t){const i=e.get(l.JZ),s=t.getModel();if(!s)return;const n=C(s,i,1,s.getLineCount());n.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,n),t.pushUndoStop())}}class I extends r.ks{constructor(){super({id:"editor.action.reindentselectedlines",label:u.kg("editor.reindentselectedlines","Reindent Selected Lines"),alias:"Reindent Selected Lines",precondition:c.R.writable,metadata:{description:u.aS("editor.reindentselectedlinesDescription","Reindent the selected lines of the editor.")}})}run(e,t){const i=e.get(l.JZ),s=t.getModel();if(!s)return;const n=t.getSelections();if(null===n)return;const r=[];for(const o of n){let e=o.startLineNumber,t=o.endLineNumber;if(e!==t&&1===o.endColumn&&t--,1===e){if(e===t)continue}else e--;const n=C(s,i,e,t);r.push(...n)}r.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,r),t.pushUndoStop())}}class O{constructor(e,t){this._initialSelection=t,this._edits=[],this._selectionId=null;for(const i of e)i.range&&"string"===typeof i.text&&this._edits.push(i)}getEditOperations(e,t){for(const s of this._edits)t.addEditOperation(a.Q.lift(s.range),s.text);let i=!1;Array.isArray(this._edits)&&1===this._edits.length&&this._initialSelection.isEmpty()&&(this._edits[0].range.startColumn===this._initialSelection.endColumn&&this._edits[0].range.startLineNumber===this._initialSelection.endLineNumber?(i=!0,this._selectionId=t.trackSelection(this._initialSelection,!0)):this._edits[0].range.endColumn===this._initialSelection.startColumn&&this._edits[0].range.endLineNumber===this._initialSelection.startLineNumber&&(i=!0,this._selectionId=t.trackSelection(this._initialSelection,!1))),i||(this._selectionId=t.trackSelection(this._initialSelection))}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}let D=class{static{this.ID="editor.contrib.autoIndentOnPaste"}constructor(e,t){this.editor=e,this._languageConfigurationService=t,this.callOnDispose=new s.Cm,this.callOnModel=new s.Cm,this.callOnDispose.add(e.onDidChangeConfiguration((()=>this.update()))),this.callOnDispose.add(e.onDidChangeModel((()=>this.update()))),this.callOnDispose.add(e.onDidChangeModelLanguage((()=>this.update())))}update(){this.callOnModel.clear(),this.editor.getOption(12)<4||this.editor.getOption(55)||this.editor.hasModel()&&this.callOnModel.add(this.editor.onDidPaste((({range:e})=>{this.trigger(e)})))}trigger(e){const t=this.editor.getSelections();if(null===t||t.length>1)return;const i=this.editor.getModel();if(!i)return;if(this.rangeContainsOnlyWhitespaceCharacters(i,e))return;if(function(e,t){const i=t=>2===(0,b.T)(e,t);return i(t.getStartPosition())||i(t.getEndPosition())}(i,e))return;if(!i.tokenization.isCheapToTokenize(e.getStartPosition().lineNumber))return;const s=this.editor.getOption(12),{tabSize:r,indentSize:c,insertSpaces:l}=i.getOptions(),h=[],u={shiftIndent:e=>o.Y.shiftIndent(e,e.length+1,r,c,l),unshiftIndent:e=>o.Y.unshiftIndent(e,e.length+1,r,c,l)};let g=e.startLineNumber;for(;g<=e.endLineNumber&&this.shouldIgnoreLine(i,g);)g++;if(g>e.endLineNumber)return;let m=i.getLineContent(g);if(!/\S/.test(m.substring(0,e.startColumn-1))){const e=(0,p.$f)(s,i,i.getLanguageId(),g,u,this._languageConfigurationService);if(null!==e){const t=n.UU(m),s=d.c(e,r);if(s!==d.c(t,r)){const e=d.k(s,r,l);h.push({range:new a.Q(g,1,g,t.length+1),text:e}),m=e+m.substring(t.length)}else{const e=(0,p.Yb)(i,g,this._languageConfigurationService);if(0===e||8===e)return}}}const f=g;for(;g<e.endLineNumber&&!/\S/.test(i.getLineContent(g+1));)g++;if(g!==e.endLineNumber){const t={tokenization:{getLineTokens:e=>i.tokenization.getLineTokens(e),getLanguageId:()=>i.getLanguageId(),getLanguageIdAtPosition:(e,t)=>i.getLanguageIdAtPosition(e,t)},getLineContent:e=>e===f?m:i.getLineContent(e)},o=(0,p.$f)(s,t,i.getLanguageId(),g+1,u,this._languageConfigurationService);if(null!==o){const t=d.c(o,r),s=d.c(n.UU(i.getLineContent(g+1)),r);if(t!==s){const o=t-s;for(let t=g+1;t<=e.endLineNumber;t++){const e=i.getLineContent(t),s=n.UU(e),c=d.c(s,r)+o,u=d.k(c,r,l);u!==s&&h.push({range:new a.Q(t,1,t,s.length+1),text:u})}}}}if(h.length>0){this.editor.pushUndoStop();const e=new O(h,this.editor.getSelection());this.editor.executeCommand("autoIndentOnPaste",e),this.editor.pushUndoStop()}}rangeContainsOnlyWhitespaceCharacters(e,t){const i=e=>0===e.trim().length;let s=!0;if(t.startLineNumber===t.endLineNumber){s=i(e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1))}else for(let n=t.startLineNumber;n<=t.endLineNumber;n++){const r=e.getLineContent(n);if(n===t.startLineNumber){s=i(r.substring(t.startColumn-1))}else if(n===t.endLineNumber){s=i(r.substring(0,t.endColumn-1))}else s=0===e.getLineFirstNonWhitespaceColumn(n);if(!s)break}return s}shouldIgnoreLine(e,t){e.tokenization.forceTokenization(t);const i=e.getLineFirstNonWhitespaceColumn(t);if(0===i)return!0;const s=e.tokenization.getLineTokens(t);if(s.getCount()>0){const e=s.findTokenIndexAtOffset(i);if(e>=0&&1===s.getStandardTokenType(e))return!0}return!1}dispose(){this.callOnDispose.dispose(),this.callOnModel.dispose()}};function M(e,t,i,s){if(1===e.getLineCount()&&1===e.getLineMaxColumn(1))return;let n="";for(let o=0;o<i;o++)n+=" ";const r=new RegExp(n,"gi");for(let o=1,c=e.getLineCount();o<=c;o++){let i=e.getLineFirstNonWhitespaceColumn(o);if(0===i&&(i=e.getLineMaxColumn(o)),1===i)continue;const c=new a.Q(o,1,o,i),l=e.getValueInRange(c),h=s?l.replace(/\t/gi,n):l.replace(r,"\t");t.addEditOperation(c,h)}}D=S([y(1,l.JZ)],D);class P{constructor(e,t){this.selection=e,this.tabSize=t,this.selectionId=null}getEditOperations(e,t){this.selectionId=t.trackSelection(this.selection),M(e,t,this.tabSize,!0)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}}class F{constructor(e,t){this.selection=e,this.tabSize=t,this.selectionId=null}getEditOperations(e,t){this.selectionId=t.trackSelection(this.selection),M(e,t,this.tabSize,!1)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}}(0,r.HW)(D.ID,D,2),(0,r.Fl)(w),(0,r.Fl)(R),(0,r.Fl)(T),(0,r.Fl)(x),(0,r.Fl)(k),(0,r.Fl)(A),(0,r.Fl)(N),(0,r.Fl)(I)},57286:(e,t,i)=>{"use strict";i.d(t,{eH:()=>O,fm:()=>U,xJ:()=>M});var s=i(8597),n=i(25890),r=i(18447),o=i(16980),a=i(5662),c=i(20492),l=i(87758),h=i(36677),d=i(10154),u=i(57039),g=i(78209),p=i(84001),m=i(49099),f=i(56942),_=i(62083),v=i(61394),C=i(10350),E=i(25689),b=i(64383),S=i(98031),y=i(52776),w=i(67220),R=i(90766),L=i(7142),T=i(50091),x=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},k=function(e,t){return function(i,s){t(i,s,e)}};const A=s.$,N=(0,v.pU)("hover-increase-verbosity",C.W.add,g.kg("increaseHoverVerbosity","Icon for increaseing hover verbosity.")),I=(0,v.pU)("hover-decrease-verbosity",C.W.remove,g.kg("decreaseHoverVerbosity","Icon for decreasing hover verbosity."));class O{constructor(e,t,i,s,n,r=void 0){this.owner=e,this.range=t,this.contents=i,this.isBeforeContent=s,this.ordinal=n,this.source=r}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}class D{constructor(e,t,i){this.hover=e,this.hoverProvider=t,this.hoverPosition=i}supportsVerbosityAction(e){switch(e){case _.M$.Increase:return this.hover.canIncreaseVerbosity??!1;case _.M$.Decrease:return this.hover.canDecreaseVerbosity??!1}}}let M=class{constructor(e,t,i,s,n,r,o,a){this._editor=e,this._languageService=t,this._openerService=i,this._configurationService=s,this._languageFeaturesService=n,this._keybindingService=r,this._hoverService=o,this._commandService=a,this.hoverOrdinal=3}createLoadingMessage(e){return new O(this,e.range,[(new o.Bc).appendText(g.kg("modesContentHover.loading","Loading..."))],!1,2e3)}computeSync(e,t){if(!this._editor.hasModel()||1!==e.type)return[];const i=this._editor.getModel(),s=e.range.startLineNumber,r=i.getLineMaxColumn(s),a=[];let c=1e3;const l=i.getLineLength(s),d=i.getLanguageIdAtPosition(e.range.startLineNumber,e.range.startColumn),u=this._editor.getOption(118),p=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:d});let m=!1;u>=0&&l>u&&e.range.startColumn>=u&&(m=!0,a.push(new O(this,e.range,[{value:g.kg("stopped rendering","Rendering paused for long line for performance reasons. This can be configured via `editor.stopRenderingLineAfter`.")}],!1,c++))),!m&&"number"===typeof p&&l>=p&&a.push(new O(this,e.range,[{value:g.kg("too many characters","Tokenization is skipped for long lines for performance reasons. This can be configured via `editor.maxTokenizationLineLength`.")}],!1,c++));let f=!1;for(const g of t){const t=g.range.startLineNumber===s?g.range.startColumn:1,i=g.range.endLineNumber===s?g.range.endColumn:r,l=g.options.hoverMessage;if(!l||(0,o.it)(l))continue;g.options.beforeContentClassName&&(f=!0);const d=new h.Q(e.range.startLineNumber,t,e.range.startLineNumber,i);a.push(new O(this,d,(0,n._j)(l),f,c++))}return a}computeAsync(e,t,i){if(!this._editor.hasModel()||1!==e.type)return R.AE.EMPTY;const s=this._editor.getModel(),n=this._languageFeaturesService.hoverProvider;if(!n.has(s))return R.AE.EMPTY;return this._getMarkdownHovers(n,s,e,i)}_getMarkdownHovers(e,t,i,s){const n=i.range.getStartPosition();return(0,L.U)(e,t,n,s).filter((e=>!(0,o.it)(e.hover.contents))).map((e=>{const t=e.hover.range?h.Q.lift(e.hover.range):i.range,s=new D(e.hover,e.provider,n);return new O(this,t,e.hover.contents,!1,e.ordinal,s)}))}renderHoverParts(e,t){return this._renderedHoverParts=new F(t,e.fragment,this,this._editor,this._languageService,this._openerService,this._commandService,this._keybindingService,this._hoverService,this._configurationService,e.onContentsChanged),this._renderedHoverParts}updateMarkdownHoverVerbosityLevel(e,t,i){return Promise.resolve(this._renderedHoverParts?.updateMarkdownHoverPartVerbosityLevel(e,t,i))}};M=x([k(1,d.L),k(2,m.C),k(3,p.pG),k(4,f.ILanguageFeaturesService),k(5,S.b),k(6,w.TN),k(7,T.d)],M);class P{constructor(e,t,i){this.hoverPart=e,this.hoverElement=t,this.disposables=i}dispose(){this.disposables.dispose()}}class F{constructor(e,t,i,s,n,r,o,c,l,h,d){this._hoverParticipant=i,this._editor=s,this._languageService=n,this._openerService=r,this._commandService=o,this._keybindingService=c,this._hoverService=l,this._configurationService=h,this._onFinishedRendering=d,this._ongoingHoverOperations=new Map,this._disposables=new a.Cm,this.renderedHoverParts=this._renderHoverParts(e,t,this._onFinishedRendering),this._disposables.add((0,a.s)((()=>{this.renderedHoverParts.forEach((e=>{e.dispose()})),this._ongoingHoverOperations.forEach((e=>{e.tokenSource.dispose(!0)}))})))}_renderHoverParts(e,t,i){return e.sort((0,n.VE)((e=>e.ordinal),n.U9)),e.map((e=>{const s=this._renderHoverPart(e,i);return t.appendChild(s.hoverElement),s}))}_renderHoverPart(e,t){const i=this._renderMarkdownHover(e,t),s=i.hoverElement,n=e.source,r=new a.Cm;if(r.add(i),!n)return new P(e,s,r);const o=n.supportsVerbosityAction(_.M$.Increase),c=n.supportsVerbosityAction(_.M$.Decrease);if(!o&&!c)return new P(e,s,r);const l=A("div.verbosity-actions");return s.prepend(l),r.add(this._renderHoverExpansionAction(l,_.M$.Increase,o)),r.add(this._renderHoverExpansionAction(l,_.M$.Decrease,c)),new P(e,s,r)}_renderMarkdownHover(e,t){return H(this._editor,e,this._languageService,this._openerService,t)}_renderHoverExpansionAction(e,t,i){const n=new a.Cm,r=t===_.M$.Increase,o=s.BC(e,A(E.L.asCSSSelector(r?N:I)));o.tabIndex=0;const c=new w.fO("mouse",!1,{target:e,position:{hoverPosition:0}},this._configurationService,this._hoverService);if(n.add(this._hoverService.setupManagedHover(c,o,function(e,t){switch(t){case _.M$.Increase:{const t=e.lookupKeybinding(l.jq);return t?g.kg("increaseVerbosityWithKb","Increase Hover Verbosity ({0})",t.getLabel()):g.kg("increaseVerbosity","Increase Hover Verbosity")}case _.M$.Decrease:{const t=e.lookupKeybinding(l.Zp);return t?g.kg("decreaseVerbosityWithKb","Decrease Hover Verbosity ({0})",t.getLabel()):g.kg("decreaseVerbosity","Decrease Hover Verbosity")}}}(this._keybindingService,t))),!i)return o.classList.add("disabled"),n;o.classList.add("enabled");const h=()=>this._commandService.executeCommand(t===_.M$.Increase?l.jq:l.Zp);return n.add(new y.vV(o,h)),n.add(new y.M4(o,h,[3,10])),n}async updateMarkdownHoverPartVerbosityLevel(e,t,i=!0){const s=this._editor.getModel();if(!s)return;const n=this._getRenderedHoverPartAtIndex(t),r=n?.hoverPart.source;if(!n||!r?.supportsVerbosityAction(e))return;const o=await this._fetchHover(r,s,e);if(!o)return;const a=new D(o,r.hoverProvider,r.hoverPosition),c=n.hoverPart,l=new O(this._hoverParticipant,c.range,o.contents,c.isBeforeContent,c.ordinal,a),h=this._renderHoverPart(l,this._onFinishedRendering);return this._replaceRenderedHoverPartAtIndex(t,h,l),i&&this._focusOnHoverPartWithIndex(t),{hoverPart:l,hoverElement:h.hoverElement}}async _fetchHover(e,t,i){let s=i===_.M$.Increase?1:-1;const n=e.hoverProvider,o=this._ongoingHoverOperations.get(n);o&&(o.tokenSource.cancel(),s+=o.verbosityDelta);const a=new r.Qi;this._ongoingHoverOperations.set(n,{verbosityDelta:s,tokenSource:a});const c={verbosityRequest:{verbosityDelta:s,previousHover:e.hover}};let l;try{l=await Promise.resolve(n.provideHover(t,e.hoverPosition,a.token,c))}catch(h){(0,b.M_)(h)}return a.dispose(),this._ongoingHoverOperations.delete(n),l}_replaceRenderedHoverPartAtIndex(e,t,i){if(e>=this.renderedHoverParts.length||e<0)return;const s=this.renderedHoverParts[e],n=s.hoverElement,r=t.hoverElement,o=Array.from(r.children);n.replaceChildren(...o);const a=new P(i,n,t.disposables);n.focus(),s.dispose(),this.renderedHoverParts[e]=a}_focusOnHoverPartWithIndex(e){this.renderedHoverParts[e].hoverElement.focus()}_getRenderedHoverPartAtIndex(e){return this.renderedHoverParts[e]}dispose(){this._disposables.dispose()}}function U(e,t,i,s,r){t.sort((0,n.VE)((e=>e.ordinal),n.U9));const o=[];for(const n of t)o.push(H(i,n,s,r,e.onContentsChanged));return new u.Ke(o)}function H(e,t,i,n,r){const l=new a.Cm,h=A("div.hover-row"),d=A("div.hover-row-contents");h.appendChild(d);const u=t.contents;for(const a of u){if((0,o.it)(a))continue;const t=A("div.markdown-hover"),h=s.BC(t,A("div.hover-contents")),u=l.add(new c.T({editor:e},i,n));l.add(u.onDidRenderAsync((()=>{h.className="hover-contents code-hover-contents",r()})));const g=l.add(u.render(a));h.appendChild(g.element),d.appendChild(t)}return{hoverPart:t,hoverElement:h,dispose(){l.dispose()}}}},57377:(e,t,i)=>{"use strict";var s=i(31450),n=i(80301),r=i(23646),o=i(84001),a=i(32848),c=i(63591),l=i(58591),h=i(9711),d=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},u=function(e,t){return function(i,s){t(i,s,e)}};let g=class extends r.X{constructor(e,t,i,s,n,r,o){super(!0,e,t,i,s,n,r,o)}};g=d([u(1,a.fN),u(2,n.T),u(3,l.Ot),u(4,c._Y),u(5,h.CS),u(6,o.pG)],g),(0,s.HW)(r.X.ID,g,4)},57439:(e,t,i)=>{"use strict";i.d(t,{u:()=>w});var s=i(59284),n=i(96873),r=i(98192);const o=(0,r.om)("definition-list");const a=e=>"label"in e&&!("name"in e),c=e=>!e.some((e=>a(e)));function l(e,t){return e||("string"===typeof t||"number"===typeof t?String(t):void 0)}function h({copyText:e,content:t,copyPosition:i}){const r="inside"===i,a=null!==t&&void 0!==t?t:"\u2014";return e?s.createElement("div",{className:o("copy-container",{"icon-inside":r})},s.createElement("span",null,a),s.createElement(n.b,{size:"s",text:e,className:o("copy-button"),view:r?"raised":"flat-secondary"})):a}var d=i(98089);function u({label:e}){return s.createElement("div",{className:o("group-title")},s.createElement(d.E,{variant:"subheader-1",color:"complementary"},e))}var g=i(6170),p=i(72837);const m=JSON.parse('{"label_note":"Note"}'),f=JSON.parse('{"label_note":"\u0421\u043f\u0440\u0430\u0432\u043a\u0430"}'),_=(0,p.N)({en:m,ru:f},`${r.CU}definition-list`);var v=function(e,t){var i={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(i[s]=e[s]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var n=0;for(s=Object.getOwnPropertySymbols(e);n<s.length;n++)t.indexOf(s[n])<0&&Object.prototype.propertyIsEnumerable.call(e,s[n])&&(i[s[n]]=e[s[n]])}return i};function C({note:e}){if(!e)return null;const t=o("item-note-tooltip");if("string"===typeof e)return s.createElement(g.B,{className:t,content:e,placement:["bottom","top"],buttonProps:{"aria-label":_("label_note")}});if("object"===typeof e){const{buttonProps:i}=e,n=v(e,["buttonProps"]);return s.createElement(g.B,Object.assign({className:t,placement:["bottom","top"],buttonProps:Object.assign({"aria-label":_("label_note")},i)},n))}return null}function E({note:e,name:t,nameTitle:i,multilineName:n,direction:r}){const a=s.createElement(s.Fragment,null,"\xa0",s.createElement(C,{note:e}));return s.createElement(s.Fragment,null,s.createElement("div",{className:o("term-wrapper")},s.createElement("span",{title:l(i,t)},t),n&&a),!n&&a,"horizontal"===r&&s.createElement("div",{className:o("dots",{"with-note":Boolean(e)})}))}var b=function(e,t){var i={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(i[s]=e[s]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var n=0;for(s=Object.getOwnPropertySymbols(e);n<s.length;n++)t.indexOf(s[n])<0&&Object.prototype.propertyIsEnumerable.call(e,s[n])&&(i[s[n]]=e[s[n]])}return i};function S({items:e,responsive:t,direction:i="horizontal",nameMaxWidth:n,contentMaxWidth:r="auto",className:a,itemClassName:c,copyPosition:d="outside",qa:u}){const g=n?{maxWidth:n,width:n}:{},p="number"===typeof r?{width:r,maxWidth:r}:{},m=s.useMemo((()=>e.map(((e,t)=>Object.assign(Object.assign({},e),{key:t})))),[e]);return s.createElement("div",{className:o({responsive:t,vertical:"vertical"===i},a),"data-qa":u},s.createElement("dl",{className:o("list")},m.map((e=>{const{name:t,key:n,content:r,contentTitle:a,nameTitle:u,copyText:m,note:f,multilineName:_}=e;return s.createElement("div",{key:n,className:o("item",c)},s.createElement("dt",{className:o("term-container",{multiline:_}),style:g},s.createElement(E,{direction:i,name:t,nameTitle:u,note:f,multilineName:_})),s.createElement("dd",{className:o("definition"),title:l(a,r),style:Object.assign(Object.assign({},p),{lineBreak:"string"===typeof r&&(v=20,function(e){return e.split(/\s+/).some((e=>e.length>v))})(r)?"anywhere":void 0})},s.createElement(h,{copyPosition:d,copyText:m,content:r})));var v}))))}function y(e){var{items:t,className:i,itemClassName:n}=e,r=b(e,["items","className","itemClassName"]);const a=s.useMemo((()=>t.map(((e,t)=>Object.assign(Object.assign({},e),{key:t})))),[t]);return s.createElement("div",{className:o({vertical:"vertical"===r.direction},i)},a.map((e=>{const{key:t,label:i}=e;return s.createElement(s.Fragment,{key:t},i&&s.createElement(u,{label:i}),e.items&&s.createElement(S,Object.assign({},r,{className:o({margin:!i}),items:e.items,itemClassName:o("item",{grouped:Boolean(i)},n)})))})))}function w(e){var{items:t}=e,i=b(e,["items"]);if(c(t))return s.createElement(S,Object.assign({},i,{items:t}));const n=function(e){const t=[];let i=[];for(const s of e)a(s)?(i.length&&(t.push({items:i,label:null}),i=[]),t.push(s)):i.push(s);return i.length&&(t.push({items:i,label:null}),i=[]),t}(t);return s.createElement(y,Object.assign({},i,{items:n}))}},57629:(e,t,i)=>{"use strict";i.d(t,{oq:()=>I,rr:()=>O,rN:()=>F,Ot:()=>A,$u:()=>k});var s=i(8597),n=i(72962),r=i(5646),o=i(89506),a=i(36921),c=i(83619),l=i(5662),h=i(98067),d=i(78209),u=i(27195),g=i(73983),p=i(32848),m=i(47508),f=i(63591),_=i(98031),v=i(58591),C=i(9711),E=i(47612),b=i(25689),S=i(86723),y=i(631),w=i(66261),R=i(19070),L=i(253),T=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},x=function(e,t){return function(i,s){t(i,s,e)}};function k(e,t,i,n){let r,o,a;if(Array.isArray(e))a=e,r=t,o=i;else{const s=t;a=e.getActions(s),r=i,o=n}const c=s.Di.getInstance();N(a,r,c.keyStatus.altKey||(h.uF||h.j9)&&c.keyStatus.shiftKey,o?e=>e===o:e=>"navigation"===e)}function A(e,t,i,s,n,r){let o,a,c,l,h;if(Array.isArray(e))h=e,o=t,a=i,c=s,l=n;else{const d=t;h=e.getActions(d),o=i,a=s,c=n,l=r}N(h,o,!1,"string"===typeof a?e=>e===a:a,c,l)}function N(e,t,i,s=e=>"navigation"===e,n=()=>!1,r=!1){let o,c;Array.isArray(t)?(o=t,c=t):(o=t.primary,c=t.secondary);const l=new Set;for(const[h,d]of e){let e;s(h)?(e=o,e.length>0&&r&&e.push(new a.wv)):(e=c,e.length>0&&e.push(new a.wv));for(let t of d){i&&(t=t instanceof u.Xe&&t.alt?t.alt:t);const s=e.push(t);t instanceof a.YH&&l.add({group:h,action:t,index:s-1})}}for(const{group:a,action:h,index:d}of l){const e=s(a)?o:c,t=h.actions;n(h,a,e.length)&&e.splice(d,1,...t)}}let I=class extends r.Z4{constructor(e,t,i,n,r,o,a,c){super(void 0,e,{icon:!(!e.class&&!e.item.icon),label:!e.class&&!e.item.icon,draggable:t?.draggable,keybinding:t?.keybinding,hoverDelegate:t?.hoverDelegate}),this._options=t,this._keybindingService=i,this._notificationService=n,this._contextKeyService=r,this._themeService=o,this._contextMenuService=a,this._accessibilityService=c,this._wantsAltCommand=!1,this._itemClassDispose=this._register(new l.HE),this._altKey=s.Di.getInstance()}get _menuItemAction(){return this._action}get _commandAction(){return this._wantsAltCommand&&this._menuItemAction.alt||this._menuItemAction}async onClick(e){e.preventDefault(),e.stopPropagation();try{await this.actionRunner.run(this._commandAction,this._context)}catch(t){this._notificationService.error(t)}}render(e){if(super.render(e),e.classList.add("menu-entry"),this.options.icon&&this._updateItemClass(this._menuItemAction.item),this._menuItemAction.alt){let t=!1;const i=()=>{const e=!!this._menuItemAction.alt?.enabled&&(!this._accessibilityService.isMotionReduced()||t)&&(this._altKey.keyStatus.altKey||this._altKey.keyStatus.shiftKey&&t);e!==this._wantsAltCommand&&(this._wantsAltCommand=e,this.updateLabel(),this.updateTooltip(),this.updateClass())};this._register(this._altKey.event(i)),this._register((0,s.ko)(e,"mouseleave",(e=>{t=!1,i()}))),this._register((0,s.ko)(e,"mouseenter",(e=>{t=!0,i()}))),i()}}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this._commandAction.label)}getTooltip(){const e=this._keybindingService.lookupKeybinding(this._commandAction.id,this._contextKeyService),t=e&&e.getLabel(),i=this._commandAction.tooltip||this._commandAction.label;let s=t?(0,d.kg)("titleAndKb","{0} ({1})",i,t):i;if(!this._wantsAltCommand&&this._menuItemAction.alt?.enabled){const e=this._menuItemAction.alt.tooltip||this._menuItemAction.alt.label,t=this._keybindingService.lookupKeybinding(this._menuItemAction.alt.id,this._contextKeyService),i=t&&t.getLabel(),n=i?(0,d.kg)("titleAndKb","{0} ({1})",e,i):e;s=(0,d.kg)("titleAndKbAndAlt","{0}\n[{1}] {2}",s,c.Of.modifierLabels[h.OS].altKey,n)}return s}updateClass(){this.options.icon&&(this._commandAction!==this._menuItemAction?this._menuItemAction.alt&&this._updateItemClass(this._menuItemAction.alt.item):this._updateItemClass(this._menuItemAction.item))}_updateItemClass(e){this._itemClassDispose.value=void 0;const{element:t,label:i}=this;if(!t||!i)return;const n=this._commandAction.checked&&(0,g.N)(e.toggled)&&e.toggled.icon?e.toggled.icon:e.icon;if(n)if(b.L.isThemeIcon(n)){const e=b.L.asClassNameArray(n);i.classList.add(...e),this._itemClassDispose.value=(0,l.s)((()=>{i.classList.remove(...e)}))}else i.style.backgroundImage=(0,S.HD)(this._themeService.getColorTheme().type)?(0,s.Tf)(n.dark):(0,s.Tf)(n.light),i.classList.add("icon"),this._itemClassDispose.value=(0,l.qE)((0,l.s)((()=>{i.style.backgroundImage="",i.classList.remove("icon")})),this._themeService.onDidColorThemeChange((()=>{this.updateClass()})))}};I=T([x(2,_.b),x(3,v.Ot),x(4,p.fN),x(5,E.Gy),x(6,m.Z),x(7,L.j)],I);class O extends I{render(e){this.options.label=!0,this.options.icon=!1,super.render(e),e.classList.add("text-only"),e.classList.toggle("use-comma",this._options?.useComma??!1)}updateLabel(){const e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();if(this.label){const t=O._symbolPrintEnter(e);this._options?.conversational?this.label.textContent=(0,d.kg)({key:"content2",comment:['A label with keybindg like "ESC to dismiss"']},"{1} to {0}",this._action.label,t):this.label.textContent=(0,d.kg)({key:"content",comment:["A label","A keybinding"]},"{0} ({1})",this._action.label,t)}}static _symbolPrintEnter(e){return e.getLabel()?.replace(/\benter\b/gi,"\u23ce").replace(/\bEscape\b/gi,"Esc")}}let D=class extends o.d{constructor(e,t,i,s,n){const r={...t,menuAsChild:t?.menuAsChild??!1,classNames:t?.classNames??(b.L.isThemeIcon(e.item.icon)?b.L.asClassName(e.item.icon):void 0),keybindingProvider:t?.keybindingProvider??(e=>i.lookupKeybinding(e.id))};super(e,{getActions:()=>e.actions},s,r),this._keybindingService=i,this._contextMenuService=s,this._themeService=n}render(e){super.render(e),(0,y.j)(this.element),e.classList.add("menu-entry");const t=this._action,{icon:i}=t.item;if(i&&!b.L.isThemeIcon(i)){this.element.classList.add("icon");const e=()=>{this.element&&(this.element.style.backgroundImage=(0,S.HD)(this._themeService.getColorTheme().type)?(0,s.Tf)(i.dark):(0,s.Tf)(i.light))};e(),this._register(this._themeService.onDidColorThemeChange((()=>{e()})))}}};D=T([x(2,_.b),x(3,m.Z),x(4,E.Gy)],D);let M=class extends r.EH{constructor(e,t,i,s,n,r,c,l){let h;super(null,e),this._keybindingService=i,this._notificationService=s,this._contextMenuService=n,this._menuService=r,this._instaService=c,this._storageService=l,this._container=null,this._options=t,this._storageKey=`${e.item.submenu.id}_lastActionId`;const d=t?.persistLastActionId?l.get(this._storageKey,1):void 0;d&&(h=e.actions.find((e=>d===e.id))),h||(h=e.actions[0]),this._defaultAction=this._instaService.createInstance(I,h,{keybinding:this._getDefaultActionKeybindingLabel(h)});const g={keybindingProvider:e=>this._keybindingService.lookupKeybinding(e.id),...t,menuAsChild:t?.menuAsChild??!0,classNames:t?.classNames??["codicon","codicon-chevron-down"],actionRunner:t?.actionRunner??new a.LN};this._dropdown=new o.d(e,e.actions,this._contextMenuService,g),this._register(this._dropdown.actionRunner.onDidRun((e=>{e.action instanceof u.Xe&&this.update(e.action)})))}update(e){this._options?.persistLastActionId&&this._storageService.store(this._storageKey,e.id,1,1),this._defaultAction.dispose(),this._defaultAction=this._instaService.createInstance(I,e,{keybinding:this._getDefaultActionKeybindingLabel(e)}),this._defaultAction.actionRunner=new class extends a.LN{async runAction(e,t){await e.run(void 0)}},this._container&&this._defaultAction.render((0,s.Hs)(this._container,(0,s.$)(".action-container")))}_getDefaultActionKeybindingLabel(e){let t;if(this._options?.renderKeybindingWithDefaultActionLabel){const i=this._keybindingService.lookupKeybinding(e.id);i&&(t=`(${i.getLabel()})`)}return t}setActionContext(e){super.setActionContext(e),this._defaultAction.setActionContext(e),this._dropdown.setActionContext(e)}render(e){this._container=e,super.render(this._container),this._container.classList.add("monaco-dropdown-with-default");const t=(0,s.$)(".action-container");this._defaultAction.render((0,s.BC)(this._container,t)),this._register((0,s.ko)(t,s.Bx.KEY_DOWN,(e=>{const t=new n.Z(e);t.equals(17)&&(this._defaultAction.element.tabIndex=-1,this._dropdown.focus(),t.stopPropagation())})));const i=(0,s.$)(".dropdown-action-container");this._dropdown.render((0,s.BC)(this._container,i)),this._register((0,s.ko)(i,s.Bx.KEY_DOWN,(e=>{const t=new n.Z(e);t.equals(15)&&(this._defaultAction.element.tabIndex=0,this._dropdown.setFocusable(!1),this._defaultAction.element?.focus(),t.stopPropagation())})))}focus(e){e?this._dropdown.focus():(this._defaultAction.element.tabIndex=0,this._defaultAction.element.focus())}blur(){this._defaultAction.element.tabIndex=-1,this._dropdown.blur(),this._container.blur()}setFocusable(e){e?this._defaultAction.element.tabIndex=0:(this._defaultAction.element.tabIndex=-1,this._dropdown.setFocusable(!1))}dispose(){this._defaultAction.dispose(),this._dropdown.dispose(),super.dispose()}};M=T([x(2,_.b),x(3,v.Ot),x(4,m.Z),x(5,u.ez),x(6,f._Y),x(7,C.CS)],M);let P=class extends r.XF{constructor(e,t){super(null,e,e.actions.map((e=>({text:e.id===a.wv.ID?"\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500":e.label,isDisabled:!e.enabled}))),0,t,R.RE,{ariaLabel:e.tooltip,optionsAsChildren:!0}),this.select(Math.max(0,e.actions.findIndex((e=>e.checked))))}render(e){super.render(e),e.style.borderColor=(0,w.GuP)(w.HcB)}runAction(e,t){const i=this.action.actions[t];i&&this.actionRunner.run(i)}};function F(e,t,i){return t instanceof u.Xe?e.createInstance(I,t,i):t instanceof u.nI?t.item.isSelection?e.createInstance(P,t):t.item.rememberDefaultAction?e.createInstance(M,t,{...i,persistLastActionId:!0}):e.createInstance(D,t,i):void 0}P=T([x(1,m.l)],P)},57664:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>i.e(1414).then(i.bind(i,51414))})},57680:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>i.e(2726).then(i.bind(i,2726))})},58145:(e,t,i)=>{"use strict";var s=i(31450),n=i(60002);var r=i(5662),o=i(31308),a=i(7085),c=i(83069),l=i(36677),h=i(10154),d=i(16223),u=i(25521),g=i(73401),p=i(10691),m=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},f=function(e,t){return function(i,s){t(i,s,e)}};const _="inline-edit";let v=class extends r.jG{constructor(e,t,i){super(),this.editor=e,this.model=t,this.languageService=i,this.isDisposed=(0,o.FY)(this,!1),this.currentTextModel=(0,o.y0)(this,this.editor.onDidChangeModel,(()=>this.editor.getModel())),this.uiState=(0,o.un)(this,(e=>{if(this.isDisposed.read(e))return;const t=this.currentTextModel.read(e);if(t!==this.model.targetTextModel.read(e))return;const i=this.model.ghostText.read(e);if(!i)return;let s=this.model.range?.read(e);s&&s.startLineNumber===s.endLineNumber&&s.startColumn===s.endColumn&&(s=void 0);const n=(!s||s.startLineNumber===s.endLineNumber)&&1===i.parts.length&&1===i.parts[0].lines.length,r=1===i.parts.length&&i.parts[0].lines.every((e=>0===e.length)),o=[],a=[];function c(e,t){if(a.length>0){const i=a[a.length-1];t&&i.decorations.push(new u.d(i.content.length+1,i.content.length+1+e[0].length,t,0)),i.content+=e[0],e=e.slice(1)}for(const i of e)a.push({content:i,decorations:t?[new u.d(1,i.length+1,t,0)]:[]})}const l=t.getLineContent(i.lineNumber);let h,d=0;if(!r&&(n||!s)){for(const e of i.parts){let t=e.lines;s&&!n&&(c(t,_),t=[]),void 0===h?(o.push({column:e.column,text:t[0],preview:e.preview}),t=t.slice(1)):c([l.substring(d,e.column-1)],void 0),t.length>0&&(c(t,_),void 0===h&&e.column<=l.length&&(h=e.column)),d=e.column-1}void 0!==h&&c([l.substring(d)],void 0)}const p=void 0!==h?new g.GM(h,l.length+1):void 0,m=n||!s?i.lineNumber:s.endLineNumber-1;return{inlineTexts:o,additionalLines:a,hiddenRange:p,lineNumber:m,additionalReservedLineCount:this.model.minReservedLineCount.read(e),targetTextModel:t,range:s,isSingleLine:n,isPureRemove:r}})),this.decorations=(0,o.un)(this,(e=>{const t=this.uiState.read(e);if(!t)return[];const i=[];if(t.hiddenRange&&i.push({range:t.hiddenRange.toRange(t.lineNumber),options:{inlineClassName:"inline-edit-hidden",description:"inline-edit-hidden"}}),t.range){const e=[];if(t.isSingleLine)e.push(t.range);else if(!t.isPureRemove){const i=t.range.endLineNumber-t.range.startLineNumber;for(let s=0;s<i;s++){const i=t.range.startLineNumber+s,n=t.targetTextModel.getLineFirstNonWhitespaceColumn(i),r=t.targetTextModel.getLineLastNonWhitespaceColumn(i),o=new l.Q(i,n,i,r);e.push(o)}}for(const t of e)i.push({range:t,options:p.Zb})}if(t.range&&!t.isSingleLine&&t.isPureRemove){const e=new l.Q(t.range.startLineNumber,1,t.range.endLineNumber-1,1);i.push({range:e,options:p.Ob})}for(const s of t.inlineTexts)i.push({range:l.Q.fromPositions(new c.y(t.lineNumber,s.column)),options:{description:_,after:{content:s.text,inlineClassName:s.preview?"inline-edit-decoration-preview":"inline-edit-decoration",cursorStops:d.VW.Left},showIfCollapsed:!0}});return i})),this._register((0,r.s)((()=>{this.isDisposed.set(!0,void 0)}))),this._register((0,g.pY)(this.editor,this.decorations))}};v=m([f(2,h.L)],v);var C,E=i(32848),b=i(63591),S=i(62083),y=i(56942),w=i(18447),R=i(92674),L=i(50091),T=i(8597),x=i(47625),k=i(36921),A=i(25890),N=i(98067),I=i(57629),O=i(65644),D=i(27195),M=i(47508),P=i(98031),F=i(90651),U=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},H=function(e,t){return function(i,s){t(i,s,e)}};let B=class extends r.jG{constructor(e,t,i){super(),this.editor=e,this.model=t,this.instantiationService=i,this.alwaysShowToolbar=(0,o.y0)(this,this.editor.onDidChangeConfiguration,(()=>"always"===this.editor.getOption(63).showToolbar)),this.sessionPosition=void 0,this.position=(0,o.un)(this,(e=>{const t=this.model.read(e)?.model.ghostText.read(e);if(!this.alwaysShowToolbar.read(e)||!t||0===t.parts.length)return this.sessionPosition=void 0,null;const i=t.parts[0].column;this.sessionPosition&&this.sessionPosition.lineNumber!==t.lineNumber&&(this.sessionPosition=void 0);const s=new c.y(t.lineNumber,Math.min(i,this.sessionPosition?.column??Number.MAX_SAFE_INTEGER));return this.sessionPosition=s,s})),this._register((0,o.yC)(((t,i)=>{if(!this.model.read(t)||!this.alwaysShowToolbar.read(t))return;const s=i.add(this.instantiationService.createInstance(W,this.editor,!0,this.position));e.addContentWidget(s),i.add((0,r.s)((()=>e.removeContentWidget(s))))})))}};B=U([H(2,b._Y)],B);let W=class extends r.jG{static{C=this}static{this._dropDownVisible=!1}static{this.id=0}constructor(e,t,i,s,n,r){super(),this.editor=e,this.withBorder=t,this._position=i,this._contextKeyService=n,this._menuService=r,this.id="InlineEditHintsContentWidget"+C.id++,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.nodes=(0,T.h)("div.inlineEditHints",{className:this.withBorder?".withBorder":""},[(0,T.h)("div@toolBar")]),this.inlineCompletionsActionsMenus=this._register(this._menuService.createMenu(D.D8.InlineEditActions,this._contextKeyService)),this.toolBar=this._register(s.createInstance(z,this.nodes.toolBar,this.editor,D.D8.InlineEditToolbar,{menuOptions:{renderShortTitle:!0},toolbarOptions:{primaryGroup:e=>e.startsWith("primary")},actionViewItemProvider:(e,t)=>{if(e instanceof D.Xe)return s.createInstance(V,e,void 0)},telemetrySource:"InlineEditToolbar"})),this._register(this.toolBar.onDidChangeDropdownVisibility((e=>{C._dropDownVisible=e}))),this._register((0,o.fm)((e=>{this._position.read(e),this.editor.layoutContentWidget(this)}))),this._register((0,o.fm)((e=>{const t=[];for(const[i,s]of this.inlineCompletionsActionsMenus.getActions())for(const e of s)e instanceof D.Xe&&t.push(e);t.length>0&&t.unshift(new k.wv),this.toolBar.setAdditionalSecondaryActions(t)})))}getId(){return this.id}getDomNode(){return this.nodes.root}getPosition(){return{position:this._position.get(),preference:[1,2],positionAffinity:3}}};W=C=U([H(3,b._Y),H(4,E.fN),H(5,D.ez)],W);class V extends I.oq{updateLabel(){const e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();if(this.label){const t=(0,T.h)("div.keybinding").root;this._register(new x.x(t,N.OS,{disableTitle:!0,...x.l})).set(e),this.label.textContent=this._action.label,this.label.appendChild(t),this.label.classList.add("inlineEditStatusBarItemLabel")}}updateTooltip(){}}let z=class extends O.p{constructor(e,t,i,s,n,r,o,a,c,l){super(e,{resetMenu:i,...s},n,r,o,a,c,l),this.editor=t,this.menuId=i,this.options2=s,this.menuService=n,this.contextKeyService=r,this.menu=this._store.add(this.menuService.createMenu(this.menuId,this.contextKeyService,{emitEventsForSubmenuChanges:!0})),this.additionalActions=[],this.prependedPrimaryActions=[],this._store.add(this.menu.onDidChange((()=>this.updateToolbar()))),this._store.add(this.editor.onDidChangeCursorPosition((()=>this.updateToolbar()))),this.updateToolbar()}updateToolbar(){const e=[],t=[];(0,I.Ot)(this.menu,this.options2?.menuOptions,{primary:e,secondary:t},this.options2?.toolbarOptions?.primaryGroup,this.options2?.toolbarOptions?.shouldInlineSubmenu,this.options2?.toolbarOptions?.useSeparatorsInPrimaryActions),t.push(...this.additionalActions),e.unshift(...this.prependedPrimaryActions),this.setActions(e,t)}setAdditionalSecondaryActions(e){(0,A.aI)(this.additionalActions,e,((e,t)=>e===t))||(this.additionalActions=e,this.updateToolbar())}};z=U([H(4,D.ez),H(5,E.fN),H(6,M.Z),H(7,P.b),H(8,L.d),H(9,F.k)],z);var G,j,K=i(84001),Y=i(64383),q=i(87958),$=i(79400),Q=i(38844),X=i(29163),Z=i(94746),J=i(83941),ee=i(87289),te=i(23750),ie=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},se=function(e,t){return function(i,s){t(i,s,e)}};function ne(e){const t=e[0].match(/^\s*/)?.[0]??"",i=t.length;return{text:e.map((e=>e.replace(new RegExp("^"+t),""))),shift:i}}let re=class extends r.jG{static{G=this}static{this._modelId=0}static _createUniqueUri(){return $.r.from({scheme:"inline-edit-widget",path:(new Date).toString()+String(G._modelId++)})}constructor(e,t,i,s,n){super(),this._editor=e,this._model=t,this._instantiationService=i,this._diffProviderFactoryService=s,this._modelService=n,this._position=(0,o.un)(this,(e=>{const t=this._model.read(e);if(!t||0===t.text.length)return null;if(t.range.startLineNumber===t.range.endLineNumber&&(t.range.startColumn!==t.range.endColumn||1!==t.range.startColumn))return null;const i=this._editor.getModel();if(!i)return null;const s=Array.from(function*(e,t,i=1){void 0===t&&([t,e]=[e,0]);for(let s=e;s<t;s+=i)yield s}(t.range.startLineNumber,t.range.endLineNumber+1)),n=s.map((e=>i.getLineLastNonWhitespaceColumn(e))),r=Math.max(...n),o=s[n.indexOf(r)],a=new c.y(o,r);return{top:t.range.startLineNumber,left:a}})),this._text=(0,o.un)(this,(e=>{const t=this._model.read(e);if(!t)return{text:"",shift:0};const i=ne(t.text.split("\n"));return{text:i.text.join("\n"),shift:i.shift}})),this._originalModel=(0,q.a0)((()=>this._modelService.createModel("",null,G._createUniqueUri()))).keepObserved(this._store),this._modifiedModel=(0,q.a0)((()=>this._modelService.createModel("",null,G._createUniqueUri()))).keepObserved(this._store),this._diff=(0,o.un)(this,(e=>this._diffPromise.read(e)?.promiseResult.read(e)?.data)),this._diffPromise=(0,o.un)(this,(e=>{const t=this._model.read(e);if(!t)return;const i=this._editor.getModel();if(!i)return;const s=ne(i.getValueInRange(t.range).split("\n")).text.join("\n"),n=ne(t.text.split("\n")).text.join("\n");this._originalModel.get().setValue(s),this._modifiedModel.get().setValue(n);const r=this._diffProviderFactoryService.createDiffProvider({diffAlgorithm:"advanced"});return o.BK.fromFn((async()=>{const e=await r.computeDiff(this._originalModel.get(),this._modifiedModel.get(),{computeMoves:!1,ignoreTrimWhitespace:!1,maxComputationTimeMs:1e3},w.XO.None);if(!e.identical)return e.changes}))})),this._register((0,o.yC)(((t,i)=>{if(!this._model.read(t))return;if(null===this._position.get())return;const s=i.add(this._instantiationService.createInstance(oe,this._editor,this._position,this._text.map((e=>e.text)),this._text.map((e=>e.shift)),this._diff));e.addOverlayWidget(s),i.add((0,r.s)((()=>e.removeOverlayWidget(s))))})))}};re=G=ie([se(2,b._Y),se(3,Z.Hg),se(4,te.IModelService)],re);let oe=class extends r.jG{static{j=this}static{this.id=0}constructor(e,t,i,s,n,r){super(),this._editor=e,this._position=t,this._text=i,this._shift=s,this._diff=n,this._instantiationService=r,this.id="InlineEditSideBySideContentWidget"+j.id++,this.allowEditorOverflow=!1,this._nodes=(0,T.$)("div.inlineEditSideBySide",void 0),this._scrollChanged=(0,o.yQ)("editor.onDidScrollChange",this._editor.onDidScrollChange),this._previewEditor=this._register(this._instantiationService.createInstance(X.t,this._nodes,{glyphMargin:!1,lineNumbers:"off",minimap:{enabled:!1},guides:{indentation:!1,bracketPairs:!1,bracketPairsHorizontal:!1,highlightActiveIndentation:!1},folding:!1,selectOnLineNumbers:!1,selectionHighlight:!1,columnSelection:!1,overviewRulerBorder:!1,overviewRulerLanes:0,lineDecorationsWidth:0,lineNumbersMinChars:0,scrollbar:{vertical:"hidden",horizontal:"hidden",alwaysConsumeMouseWheel:!1,handleMouseWheel:!1},readOnly:!0,wordWrap:"off",wordWrapOverride1:"off",wordWrapOverride2:"off",wrappingIndent:"none",wrappingStrategy:void 0},{contributions:[],isSimpleWidget:!0},this._editor)),this._previewEditorObs=(0,Q.Ud)(this._previewEditor),this._editorObs=(0,Q.Ud)(this._editor),this._previewTextModel=this._register(this._instantiationService.createInstance(ee.Bz,"",this._editor.getModel()?.getLanguageId()??J.vH,ee.Bz.DEFAULT_CREATION_OPTIONS,null)),this._setText=(0,o.un)((e=>{const t=this._text.read(e);t&&this._previewTextModel.setValue(t)})).recomputeInitiallyAndOnChange(this._store),this._decorations=(0,o.un)(this,(e=>{this._setText.read(e);const t=this._position.read(e);if(!t)return{org:[],mod:[]};const i=this._diff.read(e);if(!i)return{org:[],mod:[]};const s=[],n=[];if(1===i.length&&i[0].innerChanges[0].modifiedRange.equalsRange(this._previewTextModel.getFullModelRange()))return{org:[],mod:[]};const r=this._shift.get(),o=e=>new l.Q(e.startLineNumber+t.top-1,e.startColumn+r,e.endLineNumber+t.top-1,e.endColumn+r);for(const a of i)if(a.original.isEmpty||s.push({range:o(a.original.toInclusiveRange()),options:p.Ob}),a.modified.isEmpty||n.push({range:a.modified.toInclusiveRange(),options:p.Kl}),a.modified.isEmpty||a.original.isEmpty)a.original.isEmpty||s.push({range:o(a.original.toInclusiveRange()),options:p.KL}),a.modified.isEmpty||n.push({range:a.modified.toInclusiveRange(),options:p.Ou});else for(const e of a.innerChanges||[])a.original.contains(e.originalRange.startLineNumber)&&s.push({range:o(e.originalRange),options:e.originalRange.isEmpty()?p.wp:p.Zb}),a.modified.contains(e.modifiedRange.startLineNumber)&&n.push({range:e.modifiedRange,options:e.modifiedRange.isEmpty()?p.GM:p.bk});return{org:s,mod:n}})),this._originalDecorations=(0,o.un)(this,(e=>this._decorations.read(e).org)),this._modifiedDecorations=(0,o.un)(this,(e=>this._decorations.read(e).mod)),this._previewEditor.setModel(this._previewTextModel),this._register(this._editorObs.setDecorations(this._originalDecorations)),this._register(this._previewEditorObs.setDecorations(this._modifiedDecorations)),this._register((0,o.fm)((e=>{const t=this._previewEditorObs.contentWidth.read(e),i=this._text.read(e).split("\n").length-1,s=this._editor.getOption(67)*i;t<=0||this._previewEditor.layout({height:s,width:t})}))),this._register((0,o.fm)((e=>{this._position.read(e),this._editor.layoutOverlayWidget(this)}))),this._register((0,o.fm)((e=>{this._scrollChanged.read(e);this._position.read(e)&&this._editor.layoutOverlayWidget(this)})))}getId(){return this.id}getDomNode(){return this._nodes}getPosition(){const e=this._position.get();if(!e)return null;const t=this._editor.getLayoutInfo(),i=this._editor.getScrolledVisiblePosition(new c.y(e.top,1));if(!i)return null;const s=i.top-1,n=this._editor.getOffsetForColumn(e.left.lineNumber,e.left.column);return{preference:{left:t.contentLeft+n+10,top:s}}}};oe=j=ie([se(5,b._Y)],oe);var ae,ce=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},le=function(e,t){return function(i,s){t(i,s,e)}};let he=class extends r.jG{static{ae=this}static{this.ID="editor.contrib.inlineEditController"}static{this.inlineEditVisibleKey="inlineEditVisible"}static{this.inlineEditVisibleContext=new E.N1(this.inlineEditVisibleKey,!1)}static{this.cursorAtInlineEditKey="cursorAtInlineEdit"}static{this.cursorAtInlineEditContext=new E.N1(this.cursorAtInlineEditKey,!1)}static get(e){return e.getContribution(ae.ID)}constructor(e,t,i,s,n,r,a,c){super(),this.editor=e,this.instantiationService=t,this.contextKeyService=i,this.languageFeaturesService=s,this._commandService=n,this._configurationService=r,this._diffProviderFactoryService=a,this._modelService=c,this._isVisibleContext=ae.inlineEditVisibleContext.bindTo(this.contextKeyService),this._isCursorAtInlineEditContext=ae.cursorAtInlineEditContext.bindTo(this.contextKeyService),this._currentEdit=(0,o.FY)(this,void 0),this._currentWidget=(0,q.a0)(this._currentEdit,(e=>{const t=this._currentEdit.read(e);if(!t)return;const i=t.range.endLineNumber,s=t.range.endColumn,n=!t.text.endsWith("\n")||t.range.startLineNumber===t.range.endLineNumber&&t.range.startColumn===t.range.endColumn?t.text:t.text.slice(0,-1),r=new R.xD(i,[new R.yP(s,n,!1)]),a=t.range.startLineNumber===t.range.endLineNumber&&1===r.parts.length&&1===r.parts[0].lines.length,c=""===t.text;if(!a&&!c)return;return this.instantiationService.createInstance(v,this.editor,{ghostText:(0,o.lk)(r),minReservedLineCount:(0,o.lk)(0),targetTextModel:(0,o.lk)(this.editor.getModel()??void 0),range:(0,o.lk)(t.range)})})),this._isAccepting=(0,o.FY)(this,!1),this._enabled=(0,o.y0)(this,this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(63).enabled)),this._fontFamily=(0,o.y0)(this,this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(63).fontFamily));const l=(0,o.yQ)("InlineEditController.modelContentChangedSignal",e.onDidChangeModelContent);this._register((0,o.fm)((t=>{this._enabled.read(t)&&(l.read(t),this._isAccepting.read(t)||this.getInlineEdit(e,!0))})));const h=(0,o.y0)(this,e.onDidChangeCursorPosition,(()=>e.getPosition()));this._register((0,o.fm)((e=>{if(!this._enabled.read(e))return;const t=h.read(e);t&&this.checkCursorPosition(t)}))),this._register((0,o.fm)((t=>{const i=this._currentEdit.read(t);if(this._isCursorAtInlineEditContext.set(!1),!i)return void this._isVisibleContext.set(!1);this._isVisibleContext.set(!0);const s=e.getPosition();s&&this.checkCursorPosition(s)})));const d=(0,o.yQ)("InlineEditController.editorBlurSignal",e.onDidBlurEditorWidget);this._register((0,o.fm)((async t=>{this._enabled.read(t)&&(d.read(t),this._configurationService.getValue("editor.experimentalInlineEdit.keepOnBlur")||e.getOption(63).keepOnBlur||(this._currentRequestCts?.dispose(!0),this._currentRequestCts=void 0,await this.clear(!1)))})));const u=(0,o.yQ)("InlineEditController.editorFocusSignal",e.onDidFocusEditorText);this._register((0,o.fm)((t=>{this._enabled.read(t)&&(u.read(t),this.getInlineEdit(e,!0))})));const g=this._register((0,T.jh)());this._register((0,o.fm)((e=>{const t=this._fontFamily.read(e);g.setStyle(""===t||"default"===t?"":`\n.monaco-editor .inline-edit-decoration,\n.monaco-editor .inline-edit-decoration-preview,\n.monaco-editor .inline-edit {\n\tfont-family: ${t};\n}`)}))),this._register(new B(this.editor,this._currentWidget,this.instantiationService)),this._register(new re(this.editor,this._currentEdit,this.instantiationService,this._diffProviderFactoryService,this._modelService))}checkCursorPosition(e){if(!this._currentEdit)return void this._isCursorAtInlineEditContext.set(!1);const t=this._currentEdit.get();t?this._isCursorAtInlineEditContext.set(l.Q.containsPosition(t.range,e)):this._isCursorAtInlineEditContext.set(!1)}validateInlineEdit(e,t){if(t.text.includes("\n")&&t.range.startLineNumber!==t.range.endLineNumber&&t.range.startColumn!==t.range.endColumn){if(1!==t.range.startColumn)return!1;const i=t.range.endLineNumber;if(t.range.endColumn!==(e.getModel()?.getLineLength(i)??0)+1)return!1}return!0}async fetchInlineEdit(e,t){this._currentRequestCts&&this._currentRequestCts.dispose(!0);const i=e.getModel();if(!i)return;const s=i.getVersionId(),n=this.languageFeaturesService.inlineEditProvider.all(i);if(0===n.length)return;const r=n[0];this._currentRequestCts=new w.Qi;const o=this._currentRequestCts.token,a=t?S.sm.Automatic:S.sm.Invoke;var c,l;if(t&&await(c=50,l=o,new Promise((e=>{let t;const i=setTimeout((()=>{t&&t.dispose(),e()}),c);l&&(t=l.onCancellationRequested((()=>{clearTimeout(i),t&&t.dispose(),e()})))}))),o.isCancellationRequested||i.isDisposed()||i.getVersionId()!==s)return;const h=await r.provideInlineEdit(i,{triggerKind:a},o);return h&&!o.isCancellationRequested&&!i.isDisposed()&&i.getVersionId()===s&&this.validateInlineEdit(e,h)?h:void 0}async getInlineEdit(e,t){this._isCursorAtInlineEditContext.set(!1),await this.clear();const i=await this.fetchInlineEdit(e,t);i&&this._currentEdit.set(i,void 0)}async trigger(){await this.getInlineEdit(this.editor,!1)}async jumpBack(){this._jumpBackPosition&&(this.editor.setPosition(this._jumpBackPosition),this.editor.revealPositionInCenterIfOutsideViewport(this._jumpBackPosition))}async accept(){this._isAccepting.set(!0,void 0);const e=this._currentEdit.get();if(!e)return;let t=e.text;e.text.startsWith("\n")&&(t=e.text.substring(1)),this.editor.pushUndoStop(),this.editor.executeEdits("acceptCurrent",[a.k.replace(l.Q.lift(e.range),t)]),e.accepted&&await this._commandService.executeCommand(e.accepted.id,...e.accepted.arguments||[]).then(void 0,Y.M_),this.freeEdit(e),(0,o.Rn)((e=>{this._currentEdit.set(void 0,e),this._isAccepting.set(!1,e)}))}jumpToCurrent(){this._jumpBackPosition=this.editor.getSelection()?.getStartPosition();const e=this._currentEdit.get();if(!e)return;const t=c.y.lift({lineNumber:e.range.startLineNumber,column:e.range.startColumn});this.editor.setPosition(t),this.editor.revealPositionInCenterIfOutsideViewport(t)}async clear(e=!0){const t=this._currentEdit.get();t&&t?.rejected&&e&&await this._commandService.executeCommand(t.rejected.id,...t.rejected.arguments||[]).then(void 0,Y.M_),t&&this.freeEdit(t),this._currentEdit.set(void 0,void 0)}freeEdit(e){const t=this.editor.getModel();if(!t)return;const i=this.languageFeaturesService.inlineEditProvider.all(t);0!==i.length&&i[0].freeInlineEdit(e)}};he=ae=ce([le(1,b._Y),le(2,E.fN),le(3,y.ILanguageFeaturesService),le(4,L.d),le(5,K.pG),le(6,Z.Hg),le(7,te.IModelService)],he);class de extends s.ks{constructor(){super({id:"editor.action.inlineEdit.accept",label:"Accept Inline Edit",alias:"Accept Inline Edit",precondition:E.M$.and(n.R.writable,he.inlineEditVisibleContext),kbOpts:[{weight:101,primary:2,kbExpr:E.M$.and(n.R.writable,he.inlineEditVisibleContext,he.cursorAtInlineEditContext)}],menuOpts:[{menuId:D.D8.InlineEditToolbar,title:"Accept",group:"primary",order:1}]})}async run(e,t){const i=he.get(t);await(i?.accept())}}class ue extends s.ks{constructor(){const e=E.M$.and(n.R.writable,E.M$.not(he.inlineEditVisibleKey));super({id:"editor.action.inlineEdit.trigger",label:"Trigger Inline Edit",alias:"Trigger Inline Edit",precondition:e,kbOpts:{weight:101,primary:2646,kbExpr:e}})}async run(e,t){const i=he.get(t);i?.trigger()}}class ge extends s.ks{constructor(){const e=E.M$.and(n.R.writable,he.inlineEditVisibleContext,E.M$.not(he.cursorAtInlineEditKey));super({id:"editor.action.inlineEdit.jumpTo",label:"Jump to Inline Edit",alias:"Jump to Inline Edit",precondition:e,kbOpts:{weight:101,primary:2646,kbExpr:e},menuOpts:[{menuId:D.D8.InlineEditToolbar,title:"Jump To Edit",group:"primary",order:3,when:e}]})}async run(e,t){const i=he.get(t);i?.jumpToCurrent()}}class pe extends s.ks{constructor(){const e=E.M$.and(n.R.writable,he.cursorAtInlineEditContext);super({id:"editor.action.inlineEdit.jumpBack",label:"Jump Back from Inline Edit",alias:"Jump Back from Inline Edit",precondition:e,kbOpts:{weight:110,primary:2646,kbExpr:e},menuOpts:[{menuId:D.D8.InlineEditToolbar,title:"Jump Back",group:"primary",order:3,when:e}]})}async run(e,t){const i=he.get(t);i?.jumpBack()}}class me extends s.ks{constructor(){const e=E.M$.and(n.R.writable,he.inlineEditVisibleContext);super({id:"editor.action.inlineEdit.reject",label:"Reject Inline Edit",alias:"Reject Inline Edit",precondition:e,kbOpts:{weight:100,primary:9,kbExpr:e},menuOpts:[{menuId:D.D8.InlineEditToolbar,title:"Reject",group:"secondary",order:2}]})}async run(e,t){const i=he.get(t);await(i?.clear())}}(0,s.Fl)(de),(0,s.Fl)(me),(0,s.Fl)(ge),(0,s.Fl)(pe),(0,s.Fl)(ue),(0,s.HW)(he.ID,he,3)},58255:(e,t,i)=>{"use strict";i.d(t,{b:()=>s});const s=function(){if("object"===typeof crypto&&"function"===typeof crypto.randomUUID)return crypto.randomUUID.bind(crypto);let e;e="object"===typeof crypto&&"function"===typeof crypto.getRandomValues?crypto.getRandomValues.bind(crypto):function(e){for(let t=0;t<e.length;t++)e[t]=Math.floor(256*Math.random());return e};const t=new Uint8Array(16),i=[];for(let s=0;s<256;s++)i.push(s.toString(16).padStart(2,"0"));return function(){e(t),t[6]=15&t[6]|64,t[8]=63&t[8]|128;let s=0,n="";return n+=i[t[s++]],n+=i[t[s++]],n+=i[t[s++]],n+=i[t[s++]],n+="-",n+=i[t[s++]],n+=i[t[s++]],n+="-",n+=i[t[s++]],n+=i[t[s++]],n+="-",n+=i[t[s++]],n+=i[t[s++]],n+="-",n+=i[t[s++]],n+=i[t[s++]],n+=i[t[s++]],n+=i[t[s++]],n+=i[t[s++]],n+=i[t[s++]],n}}()},58272:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.323 12.383a5.5 5.5 0 0 1-7.706-7.706zm1.06-1.06L4.677 3.617a5.5 5.5 0 0 1 7.706 7.706M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0",clipRule:"evenodd"}))},58314:(e,t,i)=>{"use strict";i.d(t,{Yj:()=>c,s0:()=>l});var s=i(91508),n=i(87469),r=i(62083),o=i(20788);const a={getInitialState:()=>o.r3,tokenizeEncoded:(e,t,i)=>(0,o.Lh)(0,i)};async function c(e,t,i){if(!i)return h(t,e.languageIdCodec,a);const s=await r.dG.getOrCreate(i);return h(t,e.languageIdCodec,s||a)}function l(e,t,i,s,n,r,o){let a="<div>",c=s,l=0,h=!0;for(let d=0,u=t.getCount();d<u;d++){const u=t.getEndOffset(d);if(u<=s)continue;let g="";for(;c<u&&c<n;c++){const t=e.charCodeAt(c);switch(t){case 9:{let e=r-(c+l)%r;for(l+=e-1;e>0;)o&&h?(g+=" ",h=!1):(g+=" ",h=!0),e--;break}case 60:g+="<",h=!1;break;case 62:g+=">",h=!1;break;case 38:g+="&",h=!1;break;case 0:g+="�",h=!1;break;case 65279:case 8232:case 8233:case 133:g+="\ufffd",h=!1;break;case 13:g+="​",h=!1;break;case 32:o&&h?(g+=" ",h=!1):(g+=" ",h=!0);break;default:g+=String.fromCharCode(t),h=!1}}if(a+=`<span style="${t.getInlineStyle(d,i)}">${g}</span>`,u>n||c>=n)break}return a+="</div>",a}function h(e,t,i){let r='<div class="monaco-tokenized-source">';const o=s.uz(e);let a=i.getInitialState();for(let c=0,l=o.length;c<l;c++){const e=o[c];c>0&&(r+="<br/>");const l=i.tokenizeEncoded(e,!0,a);n.f.convertToEndOffset(l.tokens,e.length);const h=new n.f(l.tokens,e,t).inflate();let d=0;for(let t=0,i=h.getCount();t<i;t++){const i=h.getClassName(t),n=h.getEndOffset(t);r+=`<span class="${i}">${s.ih(e.substring(d,n))}</span>`,d=n}a=l.endState}return r+="</div>",r}},58345:(e,t,i)=>{"use strict";i.d(t,{a:()=>s});class s{constructor(...e){this._entries=new Map;for(const[t,i]of e)this.set(t,i)}set(e,t){const i=this._entries.get(e);return this._entries.set(e,t),i}get(e){return this._entries.get(e)}}},58466:(e,t,i)=>{"use strict";var s,n=i(87758),r=i(24939),o=i(31450),a=i(36677),c=i(60002),l=i(62427),h=i(77011),d=i(62083),u=i(78209);i(82320);!function(e){e.NoAutoFocus="noAutoFocus",e.FocusIfVisible="focusIfVisible",e.AutoFocusImmediately="autoFocusImmediately"}(s||(s={}));class g extends o.ks{constructor(){super({id:n.jA,label:u.kg({key:"showOrFocusHover",comment:["Label for action that will trigger the showing/focusing of a hover in the editor.","If the hover is not visible, it will show the hover.","This allows for users to show the hover without using the mouse."]},"Show or Focus Hover"),metadata:{description:u.aS("showOrFocusHoverDescription","Show or focus the editor hover which shows documentation, references, and other content for a symbol at the current cursor position."),args:[{name:"args",schema:{type:"object",properties:{focus:{description:"Controls if and when the hover should take focus upon being triggered by this action.",enum:[s.NoAutoFocus,s.FocusIfVisible,s.AutoFocusImmediately],enumDescriptions:[u.kg("showOrFocusHover.focus.noAutoFocus","The hover will not automatically take focus."),u.kg("showOrFocusHover.focus.focusIfVisible","The hover will take focus only if it is already visible."),u.kg("showOrFocusHover.focus.autoFocusImmediately","The hover will automatically take focus when it appears.")],default:s.FocusIfVisible}}}}]},alias:"Show or Focus Hover",precondition:void 0,kbOpts:{kbExpr:c.R.editorTextFocus,primary:(0,r.m5)(2089,2087),weight:100}})}run(e,t,i){if(!t.hasModel())return;const n=h.A.get(t);if(!n)return;const r=i?.focus;let o=s.FocusIfVisible;Object.values(s).includes(r)?o=r:"boolean"===typeof r&&r&&(o=s.AutoFocusImmediately);const c=e=>{const i=t.getPosition(),s=new a.Q(i.lineNumber,i.column,i.lineNumber,i.column);n.showContentHover(s,1,1,e)},l=2===t.getOption(2);n.isHoverVisible?o!==s.NoAutoFocus?n.focus():c(l):c(l||o===s.AutoFocusImmediately)}}class p extends o.ks{constructor(){super({id:n.dV,label:u.kg({key:"showDefinitionPreviewHover",comment:["Label for action that will trigger the showing of definition preview hover in the editor.","This allows for users to show the definition preview hover without using the mouse."]},"Show Definition Preview Hover"),alias:"Show Definition Preview Hover",precondition:void 0,metadata:{description:u.aS("showDefinitionPreviewHoverDescription","Show the definition preview hover in the editor.")}})}run(e,t){const i=h.A.get(t);if(!i)return;const s=t.getPosition();if(!s)return;const n=new a.Q(s.lineNumber,s.column,s.lineNumber,s.column),r=l.k.get(t);if(!r)return;r.startFindDefinitionFromCursor(s).then((()=>{i.showContentHover(n,1,1,!0)}))}}class m extends o.ks{constructor(){super({id:n.K6,label:u.kg({key:"scrollUpHover",comment:["Action that allows to scroll up in the hover widget with the up arrow when the hover widget is focused."]},"Scroll Up Hover"),alias:"Scroll Up Hover",precondition:c.R.hoverFocused,kbOpts:{kbExpr:c.R.hoverFocused,primary:16,weight:100},metadata:{description:u.aS("scrollUpHoverDescription","Scroll up the editor hover.")}})}run(e,t){const i=h.A.get(t);i&&i.scrollUp()}}class f extends o.ks{constructor(){super({id:n.Hp,label:u.kg({key:"scrollDownHover",comment:["Action that allows to scroll down in the hover widget with the up arrow when the hover widget is focused."]},"Scroll Down Hover"),alias:"Scroll Down Hover",precondition:c.R.hoverFocused,kbOpts:{kbExpr:c.R.hoverFocused,primary:18,weight:100},metadata:{description:u.aS("scrollDownHoverDescription","Scroll down the editor hover.")}})}run(e,t){const i=h.A.get(t);i&&i.scrollDown()}}class _ extends o.ks{constructor(){super({id:n.MB,label:u.kg({key:"scrollLeftHover",comment:["Action that allows to scroll left in the hover widget with the left arrow when the hover widget is focused."]},"Scroll Left Hover"),alias:"Scroll Left Hover",precondition:c.R.hoverFocused,kbOpts:{kbExpr:c.R.hoverFocused,primary:15,weight:100},metadata:{description:u.aS("scrollLeftHoverDescription","Scroll left the editor hover.")}})}run(e,t){const i=h.A.get(t);i&&i.scrollLeft()}}class v extends o.ks{constructor(){super({id:n.vf,label:u.kg({key:"scrollRightHover",comment:["Action that allows to scroll right in the hover widget with the right arrow when the hover widget is focused."]},"Scroll Right Hover"),alias:"Scroll Right Hover",precondition:c.R.hoverFocused,kbOpts:{kbExpr:c.R.hoverFocused,primary:17,weight:100},metadata:{description:u.aS("scrollRightHoverDescription","Scroll right the editor hover.")}})}run(e,t){const i=h.A.get(t);i&&i.scrollRight()}}class C extends o.ks{constructor(){super({id:n.ih,label:u.kg({key:"pageUpHover",comment:["Action that allows to page up in the hover widget with the page up command when the hover widget is focused."]},"Page Up Hover"),alias:"Page Up Hover",precondition:c.R.hoverFocused,kbOpts:{kbExpr:c.R.hoverFocused,primary:11,secondary:[528],weight:100},metadata:{description:u.aS("pageUpHoverDescription","Page up the editor hover.")}})}run(e,t){const i=h.A.get(t);i&&i.pageUp()}}class E extends o.ks{constructor(){super({id:n.Hm,label:u.kg({key:"pageDownHover",comment:["Action that allows to page down in the hover widget with the page down command when the hover widget is focused."]},"Page Down Hover"),alias:"Page Down Hover",precondition:c.R.hoverFocused,kbOpts:{kbExpr:c.R.hoverFocused,primary:12,secondary:[530],weight:100},metadata:{description:u.aS("pageDownHoverDescription","Page down the editor hover.")}})}run(e,t){const i=h.A.get(t);i&&i.pageDown()}}class b extends o.ks{constructor(){super({id:n.Xp,label:u.kg({key:"goToTopHover",comment:["Action that allows to go to the top of the hover widget with the home command when the hover widget is focused."]},"Go To Top Hover"),alias:"Go To Bottom Hover",precondition:c.R.hoverFocused,kbOpts:{kbExpr:c.R.hoverFocused,primary:14,secondary:[2064],weight:100},metadata:{description:u.aS("goToTopHoverDescription","Go to the top of the editor hover.")}})}run(e,t){const i=h.A.get(t);i&&i.goToTop()}}class S extends o.ks{constructor(){super({id:n.vx,label:u.kg({key:"goToBottomHover",comment:["Action that allows to go to the bottom in the hover widget with the end command when the hover widget is focused."]},"Go To Bottom Hover"),alias:"Go To Bottom Hover",precondition:c.R.hoverFocused,kbOpts:{kbExpr:c.R.hoverFocused,primary:13,secondary:[2066],weight:100},metadata:{description:u.aS("goToBottomHoverDescription","Go to the bottom of the editor hover.")}})}run(e,t){const i=h.A.get(t);i&&i.goToBottom()}}class y extends o.ks{constructor(){super({id:n.jq,label:n.iM,alias:"Increase Hover Verbosity Level",precondition:c.R.hoverVisible})}run(e,t,i){const s=h.A.get(t);if(!s)return;const n=void 0!==i?.index?i.index:s.focusedHoverPartIndex();s.updateHoverVerbosityLevel(d.M$.Increase,n,i?.focus)}}class w extends o.ks{constructor(){super({id:n.Zp,label:n.G8,alias:"Decrease Hover Verbosity Level",precondition:c.R.hoverVisible})}run(e,t,i){const s=h.A.get(t);if(!s)return;const n=void 0!==i?.index?i.index:s.focusedHoverPartIndex();h.A.get(t)?.updateHoverVerbosityLevel(d.M$.Decrease,n,i?.focus)}}var R=i(66261),L=i(47612),T=i(57039),x=i(57286),k=i(8597),A=i(25890),N=i(90766),I=i(64383),O=i(5662),D=i(89403),M=i(56942),P=i(37550),F=i(55130),U=i(71933),H=i(61407),B=i(65877),W=i(75147),V=i(49099),z=i(73823),G=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},j=function(e,t){return function(i,s){t(i,s,e)}};const K=k.$;class Y{constructor(e,t,i){this.owner=e,this.range=t,this.marker=i}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}const q={type:1,filter:{include:H.gB.QuickFix},triggerAction:H.fo.QuickFixHover};let $=class{constructor(e,t,i,s){this._editor=e,this._markerDecorationsService=t,this._openerService=i,this._languageFeaturesService=s,this.hoverOrdinal=1,this.recentMarkerCodeActionsInfo=void 0}computeSync(e,t){if(!this._editor.hasModel()||1!==e.type&&!e.supportsMarkerHover)return[];const i=this._editor.getModel(),s=e.range.startLineNumber,n=i.getLineMaxColumn(s),r=[];for(const o of t){const t=o.range.startLineNumber===s?o.range.startColumn:1,c=o.range.endLineNumber===s?o.range.endColumn:n,l=this._markerDecorationsService.getMarker(i.uri,o);if(!l)continue;const h=new a.Q(e.range.startLineNumber,t,e.range.startLineNumber,c);r.push(new Y(this,h,l))}return r}renderHoverParts(e,t){if(!t.length)return new T.Ke([]);const i=new O.Cm,s=[];t.forEach((t=>{const i=this._renderMarkerHover(t);e.fragment.appendChild(i.hoverElement),s.push(i)}));const n=1===t.length?t[0]:t.sort(((e,t)=>W.cj.compare(e.marker.severity,t.marker.severity)))[0];return this.renderMarkerStatusbar(e,n,i),new T.Ke(s)}_renderMarkerHover(e){const t=new O.Cm,i=K("div.hover-row"),s=k.BC(i,K("div.marker.hover-contents")),{source:n,message:r,code:o,relatedInformation:a}=e.marker;this._editor.applyFontInfo(s);const c=k.BC(s,K("span"));if(c.style.whiteSpace="pre-wrap",c.innerText=r,n||o)if(o&&"string"!==typeof o){const e=K("span");if(n){k.BC(e,K("span")).innerText=n}const i=k.BC(e,K("a.code-link"));i.setAttribute("href",o.target.toString()),t.add(k.ko(i,"click",(e=>{this._openerService.open(o.target,{allowCommands:!0}),e.preventDefault(),e.stopPropagation()})));k.BC(i,K("span")).innerText=o.value;const r=k.BC(s,e);r.style.opacity="0.6",r.style.paddingLeft="6px"}else{const e=k.BC(s,K("span"));e.style.opacity="0.6",e.style.paddingLeft="6px",e.innerText=n&&o?`${n}(${o})`:n||`(${o})`}if((0,A.EI)(a))for(const{message:l,resource:h,startLineNumber:d,startColumn:u}of a){const e=k.BC(s,K("div"));e.style.marginTop="8px";const i=k.BC(e,K("a"));i.innerText=`${(0,D.P8)(h)}(${d}, ${u}): `,i.style.cursor="pointer",t.add(k.ko(i,"click",(e=>{if(e.stopPropagation(),e.preventDefault(),this._openerService){const e={selection:{startLineNumber:d,startColumn:u}};this._openerService.open(h,{fromUserGesture:!0,editorOptions:e}).catch(I.dz)}})));const n=k.BC(e,K("span"));n.innerText=l,this._editor.applyFontInfo(n)}return{hoverPart:e,hoverElement:i,dispose:()=>t.dispose()}}renderMarkerStatusbar(e,t,i){if(t.marker.severity===W.cj.Error||t.marker.severity===W.cj.Warning||t.marker.severity===W.cj.Info){const i=B.j.get(this._editor);i&&e.statusBar.addAction({label:u.kg("view problem","View Problem"),commandId:B.i.ID,run:()=>{e.hide(),i.showAtMarker(t.marker),this._editor.focus()}})}if(!this._editor.getOption(92)){const s=e.statusBar.append(K("div"));this.recentMarkerCodeActionsInfo&&(W.oc.makeKey(this.recentMarkerCodeActionsInfo.marker)===W.oc.makeKey(t.marker)?this.recentMarkerCodeActionsInfo.hasCodeActions||(s.textContent=u.kg("noQuickFixes","No quick fixes available")):this.recentMarkerCodeActionsInfo=void 0);const n=this.recentMarkerCodeActionsInfo&&!this.recentMarkerCodeActionsInfo.hasCodeActions?O.jG.None:(0,N.EQ)((()=>s.textContent=u.kg("checkingForQuickFixes","Checking for quick fixes...")),200,i);s.textContent||(s.textContent=String.fromCharCode(160));const r=this.getCodeActions(t.marker);i.add((0,O.s)((()=>r.cancel()))),r.then((r=>{if(n.dispose(),this.recentMarkerCodeActionsInfo={marker:t.marker,hasCodeActions:r.validActions.length>0},!this.recentMarkerCodeActionsInfo.hasCodeActions)return r.dispose(),void(s.textContent=u.kg("noQuickFixes","No quick fixes available"));s.style.display="none";let o=!1;i.add((0,O.s)((()=>{o||r.dispose()}))),e.statusBar.addAction({label:u.kg("quick fixes","Quick Fix..."),commandId:F.pQ,run:t=>{o=!0;const i=U.C.get(this._editor),s=k.BK(t);e.hide(),i?.showCodeActions(q,r,{x:s.left,y:s.top,width:s.width,height:s.height})}})}),I.dz)}}getCodeActions(e){return(0,N.SS)((t=>(0,F.dU)(this._languageFeaturesService.codeActionProvider,this._editor.getModel(),new a.Q(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),q,z.ke.None,t)))}};$=G([j(1,P.IMarkerDecorationsService),j(2,V.C),j(3,M.ILanguageFeaturesService)],$);var Q=i(63591),X=i(51219),Z=i(20492),J=i(10154),ee=i(12143),te=i(52776),ie=i(16980),se=i(16223);class ne{get lineNumber(){return this._lineNumber}set lineNumber(e){this._lineNumber=e}get lane(){return this._laneOrLine}set lane(e){this._laneOrLine=e}constructor(e){this._editor=e,this._lineNumber=-1,this._laneOrLine=se.ZS.Center}computeSync(){const e=e=>({value:e}),t=this._editor.getLineDecorations(this._lineNumber),i=[],s="lineNo"===this._laneOrLine;if(!t)return i;for(const n of t){const t=n.options.glyphMargin?.position??se.ZS.Center;if(!s&&t!==this._laneOrLine)continue;const r=s?n.options.lineNumberHoverMessage:n.options.glyphMarginHoverMessage;r&&!(0,ie.it)(r)&&i.push(...(0,A._j)(r).map(e))}return i}}var re,oe=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},ae=function(e,t){return function(i,s){t(i,s,e)}};const ce=k.$;let le=class extends O.jG{static{re=this}static{this.ID="editor.contrib.modesGlyphHoverWidget"}constructor(e,t,i){super(),this._renderDisposeables=this._register(new O.Cm),this._editor=e,this._isVisible=!1,this._messages=[],this._hover=this._register(new te.N4),this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible),this._markdownRenderer=this._register(new Z.T({editor:this._editor},t,i)),this._computer=new ne(this._editor),this._hoverOperation=this._register(new ee.w(this._editor,this._computer)),this._register(this._hoverOperation.onResult((e=>{this._withResult(e.value)}))),this._register(this._editor.onDidChangeModelDecorations((()=>this._onModelDecorationsChanged()))),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(50)&&this._updateFont()}))),this._register(k.b2(this._hover.containerDomNode,"mouseleave",(e=>{this._onMouseLeave(e)}))),this._editor.addOverlayWidget(this)}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return re.ID}getDomNode(){return this._hover.containerDomNode}getPosition(){return null}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach((e=>this._editor.applyFontInfo(e)))}_onModelDecorationsChanged(){this._isVisible&&(this._hoverOperation.cancel(),this._hoverOperation.start(0))}showsOrWillShow(e){const t=e.target;return 2===t.type&&t.detail.glyphMarginLane?(this._startShowingAt(t.position.lineNumber,t.detail.glyphMarginLane),!0):3===t.type&&(this._startShowingAt(t.position.lineNumber,"lineNo"),!0)}_startShowingAt(e,t){this._computer.lineNumber===e&&this._computer.lane===t||(this._hoverOperation.cancel(),this.hide(),this._computer.lineNumber=e,this._computer.lane=t,this._hoverOperation.start(0))}hide(){this._computer.lineNumber=-1,this._hoverOperation.cancel(),this._isVisible&&(this._isVisible=!1,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible))}_withResult(e){this._messages=e,this._messages.length>0?this._renderMessages(this._computer.lineNumber,this._messages):this.hide()}_renderMessages(e,t){this._renderDisposeables.clear();const i=document.createDocumentFragment();for(const s of t){const e=ce("div.hover-row.markdown-hover"),t=k.BC(e,ce("div.hover-contents")),n=this._renderDisposeables.add(this._markdownRenderer.render(s.value));t.appendChild(n.element),i.appendChild(e)}this._updateContents(i),this._showAt(e)}_updateContents(e){this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this._updateFont()}_showAt(e){this._isVisible||(this._isVisible=!0,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible));const t=this._editor.getLayoutInfo(),i=this._editor.getTopForLineNumber(e),s=this._editor.getScrollTop(),n=this._editor.getOption(67),r=i-s-(this._hover.containerDomNode.clientHeight-n)/2,o=t.glyphMarginLeft+t.glyphMarginWidth+("lineNo"===this._computer.lane?t.lineNumbersWidth:0);this._hover.containerDomNode.style.left=`${o}px`,this._hover.containerDomNode.style.top=`${Math.max(Math.round(r),0)}px`}_onMouseLeave(e){const t=this._editor.getDomNode();(!t||!(0,X.U)(t,e.x,e.y))&&this.hide()}};le=re=oe([ae(1,J.L),ae(2,V.C)],le);var he=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},de=function(e,t){return function(i,s){t(i,s,e)}};let ue=class extends O.jG{static{this.ID="editor.contrib.marginHover"}constructor(e,t){super(),this._editor=e,this._instantiationService=t,this.shouldKeepOpenOnEditorMouseMoveOrLeave=!1,this._listenersStore=new O.Cm,this._hoverState={mouseDown:!1},this._reactToEditorMouseMoveRunner=this._register(new N.uC((()=>this._reactToEditorMouseMove(this._mouseMoveEvent)),0)),this._hookListeners(),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(60)&&(this._unhookListeners(),this._hookListeners())})))}_hookListeners(){const e=this._editor.getOption(60);this._hoverSettings={enabled:e.enabled,sticky:e.sticky,hidingDelay:e.hidingDelay},e.enabled?(this._listenersStore.add(this._editor.onMouseDown((e=>this._onEditorMouseDown(e)))),this._listenersStore.add(this._editor.onMouseUp((()=>this._onEditorMouseUp()))),this._listenersStore.add(this._editor.onMouseMove((e=>this._onEditorMouseMove(e)))),this._listenersStore.add(this._editor.onKeyDown((e=>this._onKeyDown(e))))):(this._listenersStore.add(this._editor.onMouseMove((e=>this._onEditorMouseMove(e)))),this._listenersStore.add(this._editor.onKeyDown((e=>this._onKeyDown(e))))),this._listenersStore.add(this._editor.onMouseLeave((e=>this._onEditorMouseLeave(e)))),this._listenersStore.add(this._editor.onDidChangeModel((()=>{this._cancelScheduler(),this._hideWidgets()}))),this._listenersStore.add(this._editor.onDidChangeModelContent((()=>this._cancelScheduler()))),this._listenersStore.add(this._editor.onDidScrollChange((e=>this._onEditorScrollChanged(e))))}_unhookListeners(){this._listenersStore.clear()}_cancelScheduler(){this._mouseMoveEvent=void 0,this._reactToEditorMouseMoveRunner.cancel()}_onEditorScrollChanged(e){(e.scrollTopChanged||e.scrollLeftChanged)&&this._hideWidgets()}_onEditorMouseDown(e){this._hoverState.mouseDown=!0;this._isMouseOnMarginHoverWidget(e)||this._hideWidgets()}_isMouseOnMarginHoverWidget(e){const t=this._glyphWidget?.getDomNode();return!!t&&(0,X.U)(t,e.event.posx,e.event.posy)}_onEditorMouseUp(){this._hoverState.mouseDown=!1}_onEditorMouseLeave(e){if(this.shouldKeepOpenOnEditorMouseMoveOrLeave)return;this._cancelScheduler();this._isMouseOnMarginHoverWidget(e)||this._hideWidgets()}_shouldNotRecomputeCurrentHoverWidget(e){const t=this._hoverSettings.sticky,i=this._isMouseOnMarginHoverWidget(e);return t&&i}_onEditorMouseMove(e){if(this.shouldKeepOpenOnEditorMouseMoveOrLeave)return;this._mouseMoveEvent=e;this._shouldNotRecomputeCurrentHoverWidget(e)?this._reactToEditorMouseMoveRunner.cancel():this._reactToEditorMouseMove(e)}_reactToEditorMouseMove(e){if(!e)return;this._tryShowHoverWidget(e)||this._hideWidgets()}_tryShowHoverWidget(e){return this._getOrCreateGlyphWidget().showsOrWillShow(e)}_onKeyDown(e){this._editor.hasModel()&&5!==e.keyCode&&6!==e.keyCode&&57!==e.keyCode&&4!==e.keyCode&&this._hideWidgets()}_hideWidgets(){this._glyphWidget?.hide()}_getOrCreateGlyphWidget(){return this._glyphWidget||(this._glyphWidget=this._instantiationService.createInstance(le,this._editor)),this._glyphWidget}dispose(){super.dispose(),this._unhookListeners(),this._listenersStore.dispose(),this._glyphWidget?.dispose()}};ue=he([de(1,Q._Y)],ue);var ge=i(96282);(0,o.HW)(h.A.ID,h.A,2),(0,o.HW)(ue.ID,ue,2),(0,o.Fl)(g),(0,o.Fl)(p),(0,o.Fl)(m),(0,o.Fl)(f),(0,o.Fl)(_),(0,o.Fl)(v),(0,o.Fl)(C),(0,o.Fl)(E),(0,o.Fl)(b),(0,o.Fl)(S),(0,o.Fl)(y),(0,o.Fl)(w),T.B2.register(x.xJ),T.B2.register($),(0,L.zy)(((e,t)=>{const i=e.getColor(R.oZ8);i&&(t.addRule(`.monaco-editor .monaco-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${i.transparent(.5)}; }`),t.addRule(`.monaco-editor .monaco-hover hr { border-top: 1px solid ${i.transparent(.5)}; }`),t.addRule(`.monaco-editor .monaco-hover hr { border-bottom: 0px solid ${i.transparent(.5)}; }`))})),ge.Z.register(new class{}),ge.Z.register(new class{}),ge.Z.register(new class{})},58568:(e,t,i)=>{"use strict";var s=i(18447),n=i(631),r=i(79400),o=i(18938),a=i(29999);i(50091).w.registerCommand("_executeDocumentSymbolProvider",(async function(e,...t){const[i]=t;(0,n.j)(r.r.isUri(i));const c=e.get(a.gW),l=e.get(o.ITextModelService),h=await l.createModelReference(i);try{return(await c.getOrCreate(h.object.textEditorModel,s.XO.None)).getTopLevelSymbols()}finally{h.dispose()}}))},58590:(e,t,i)=>{"use strict";var s=i(31450),n=i(60002),r=i(36677),o=i(75326);class a{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;const i=this._selection.startLineNumber,s=this._selection.startColumn,n=this._selection.endColumn;if((!this._isMovingLeft||1!==s)&&(this._isMovingLeft||n!==e.getLineMaxColumn(i)))if(this._isMovingLeft){const o=new r.Q(i,s-1,i,s),a=e.getValueInRange(o);t.addEditOperation(o,null),t.addEditOperation(new r.Q(i,n,i,n),a)}else{const o=new r.Q(i,n,i,n+1),a=e.getValueInRange(o);t.addEditOperation(o,null),t.addEditOperation(new r.Q(i,s,i,s),a)}}computeCursorState(e,t){return this._isMovingLeft?new o.L(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new o.L(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}var c=i(78209);class l extends s.ks{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;const i=[],s=t.getSelections();for(const n of s)i.push(new a(n,this.left));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}(0,s.Fl)(class extends l{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:c.kg("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:n.R.writable})}}),(0,s.Fl)(class extends l{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:c.kg("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:n.R.writable})}})},58591:(e,t,i)=>{"use strict";i.d(t,{AI:()=>r,Kz:()=>a,Ot:()=>o});var s=i(42291),n=i(63591),r=s.A;const o=(0,n.u1)("notificationService");class a{}},58694:(e,t,i)=>{"use strict";function s(e,t,i){let s=null,n=null;if("function"===typeof i.value?(s="value",n=i.value,0!==n.length&&console.warn("Memoize should only be used in functions with zero parameters")):"function"===typeof i.get&&(s="get",n=i.get),!n)throw new Error("not supported");const r=`$memoize$${t}`;i[s]=function(...e){return this.hasOwnProperty(r)||Object.defineProperty(this,r,{configurable:!1,enumerable:!1,writable:!1,value:n.apply(this,e)}),this[r]}}i.d(t,{B:()=>s})},58820:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>i.e(4818).then(i.bind(i,4818))})},58925:(e,t,i)=>{"use strict";i.d(t,{w:()=>n});class s{static{this.Undefined=new s(void 0)}constructor(e){this.element=e,this.next=s.Undefined,this.prev=s.Undefined}}class n{constructor(){this._first=s.Undefined,this._last=s.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===s.Undefined}clear(){let e=this._first;for(;e!==s.Undefined;){const t=e.next;e.prev=s.Undefined,e.next=s.Undefined,e=t}this._first=s.Undefined,this._last=s.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const i=new s(e);if(this._first===s.Undefined)this._first=i,this._last=i;else if(t){const e=this._last;this._last=i,i.prev=e,e.next=i}else{const e=this._first;this._first=i,i.next=e,e.prev=i}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(i))}}shift(){if(this._first!==s.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==s.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==s.Undefined&&e.next!==s.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===s.Undefined&&e.next===s.Undefined?(this._first=s.Undefined,this._last=s.Undefined):e.next===s.Undefined?(this._last=this._last.prev,this._last.next=s.Undefined):e.prev===s.Undefined&&(this._first=this._first.next,this._first.prev=s.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==s.Undefined;)yield e.element,e=e.next}}},59136:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var s,n=i(59284);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},r.apply(null,arguments)}const o=function(e){return n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),s||(s=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.97 5.47a.75.75 0 011.06 0L8 9.44l3.97-3.97a.75.75 0 111.06 1.06l-4.5 4.5a.75.75 0 01-1.06 0l-4.5-4.5a.75.75 0 010-1.06",clipRule:"evenodd"})))}},59170:function(e,t,i){var s;e=i.nmd(e),function(){var n=t,r=(e&&e.exports,"object"==typeof i.g&&i.g);r.global!==r&&r.window;var o,a,c,l,h=String.fromCharCode;function d(e){for(var t,i,s=[],n=0,r=e.length;n<r;)(t=e.charCodeAt(n++))>=55296&&t<=56319&&n<r?56320==(64512&(i=e.charCodeAt(n++)))?s.push(((1023&t)<<10)+(1023&i)+65536):(s.push(t),n--):s.push(t);return s}function u(e){if(e>=55296&&e<=57343)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value")}function g(e,t){return h(e>>t&63|128)}function p(e){if(0==(4294967168&e))return h(e);var t="";return 0==(4294965248&e)?t=h(e>>6&31|192):0==(4294901760&e)?(u(e),t=h(e>>12&15|224),t+=g(e,6)):0==(4292870144&e)&&(t=h(e>>18&7|240),t+=g(e,12),t+=g(e,6)),t+=h(63&e|128)}function m(){if(c>=a){if(l)return!1;throw Error("Invalid byte index")}var e=255&o[c];if(c++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function f(){var e,t,i,s,n;if(c>a)throw Error("Invalid byte index");if(c==a)return!1;if(e=255&o[c],c++,0==(128&e))return e;if(192==(224&e)){if(!1===(t=m()))return!1;if((n=(31&e)<<6|t)>=128)return n;throw Error("Invalid continuation byte")}if(224==(240&e)){if(t=m(),!1===(i=m()))return!1;if((n=(15&e)<<12|t<<6|i)>=2048)return u(n),n;throw Error("Invalid continuation byte")}if(240==(248&e)){if(t=m(),i=m(),!1===(s=m()))return!1;if((n=(7&e)<<18|t<<12|i<<6|s)>=65536&&n<=1114111)return n}throw Error("Invalid UTF-8 detected")}var _={version:"2.1.2",encode:function(e){for(var t=d(e),i=t.length,s=-1,n="";++s<i;)n+=p(t[s]);return n},decode:function(e,t){l="undefined"!=typeof t&&t.allowTruncatedEnd,o=d(e),a=o.length,c=0;for(var i,s=[];!1!==(i=f());)s.push(i);return function(e){for(var t,i=e.length,s=-1,n="";++s<i;)(t=e[s])>65535&&(n+=h((t-=65536)>>>10&1023|55296),t=56320|1023&t),n+=h(t);return n}(s)}};void 0===(s=function(){return _}.call(t,i,t,e))||(e.exports=s)}()},59261:(e,t,i)=>{"use strict";i.d(t,{f:()=>h});var s=i(42539),n=i(98067),r=i(50091),o=i(46359),a=i(5662),c=i(58925);class l{constructor(){this._coreKeybindings=new c.w,this._extensionKeybindings=[],this._cachedMergedKeybindings=null}static bindToCurrentPlatform(e){if(1===n.OS){if(e&&e.win)return e.win}else if(2===n.OS){if(e&&e.mac)return e.mac}else if(e&&e.linux)return e.linux;return e}registerKeybindingRule(e){const t=l.bindToCurrentPlatform(e),i=new a.Cm;if(t&&t.primary){const r=(0,s.Zv)(t.primary,n.OS);r&&i.add(this._registerDefaultKeybinding(r,e.id,e.args,e.weight,0,e.when))}if(t&&Array.isArray(t.secondary))for(let r=0,o=t.secondary.length;r<o;r++){const o=t.secondary[r],a=(0,s.Zv)(o,n.OS);a&&i.add(this._registerDefaultKeybinding(a,e.id,e.args,e.weight,-r-1,e.when))}return i}registerCommandAndKeybindingRule(e){return(0,a.qE)(this.registerKeybindingRule(e),r.w.registerCommand(e))}_registerDefaultKeybinding(e,t,i,s,n,r){const o=this._coreKeybindings.push({keybinding:e,command:t,commandArgs:i,when:r,weight1:s,weight2:n,extensionId:null,isBuiltinExtension:!1});return this._cachedMergedKeybindings=null,(0,a.s)((()=>{o(),this._cachedMergedKeybindings=null}))}getDefaultKeybindings(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=Array.from(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(d)),this._cachedMergedKeybindings.slice(0)}}const h=new l;function d(e,t){if(e.weight1!==t.weight1)return e.weight1-t.weight1;if(e.command&&t.command){if(e.command<t.command)return-1;if(e.command>t.command)return 1}return e.weight2-t.weight2}o.O.add("platform.keybindingsRegistry",h)},59473:(e,t,i)=>{"use strict";i.d(t,{D_:()=>_,Dc:()=>S});var s=i(90766),n=i(64383),r=i(41234),o=i(5662),a=i(89403),c=i(87908),l=i(83069),h=i(75326),d=i(32848),u=i(73823),g=i(61407),p=i(55130),m=i(8995),f=i(78381);const _=new d.N1("supportedCodeAction",""),v="_typescript.applyFixAllCodeAction";class C extends o.jG{constructor(e,t,i,n=250){super(),this._editor=e,this._markerService=t,this._signalChange=i,this._delay=n,this._autoTriggerTimer=this._register(new s.pc),this._register(this._markerService.onMarkerChanged((e=>this._onMarkerChanges(e)))),this._register(this._editor.onDidChangeCursorPosition((()=>this._tryAutoTrigger())))}trigger(e){const t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);this._signalChange(t?{trigger:e,selection:t}:void 0)}_onMarkerChanges(e){const t=this._editor.getModel();t&&e.some((e=>(0,a.n4)(e,t.uri)))&&this._tryAutoTrigger()}_tryAutoTrigger(){this._autoTriggerTimer.cancelAndSet((()=>{this.trigger({type:2,triggerAction:g.fo.Default})}),this._delay)}_getRangeOfSelectionUnlessWhitespaceEnclosed(e){if(!this._editor.hasModel())return;const t=this._editor.getSelection();if(1===e.type)return t;const i=this._editor.getOption(65).enabled;if(i!==c.jT.Off){if(i===c.jT.On)return t;if(i===c.jT.OnCode){if(!t.isEmpty())return t;const e=this._editor.getModel(),{lineNumber:i,column:s}=t.getPosition(),n=e.getLineContent(i);if(0===n.length)return;if(1===s){if(/\s/.test(n[0]))return}else if(s===e.getLineMaxColumn(i)){if(/\s/.test(n[n.length-1]))return}else if(/\s/.test(n[s-2])&&/\s/.test(n[s-1]))return}return t}}}var E;!function(e){e.Empty={type:0};e.Triggered=class{constructor(e,t,i){this.trigger=e,this.position=t,this._cancellablePromise=i,this.type=1,this.actions=i.catch((e=>{if((0,n.MB)(e))return b;throw e}))}cancel(){this._cancellablePromise.cancel()}}}(E||(E={}));const b=Object.freeze({allActions:[],validActions:[],dispose:()=>{},documentation:[],hasAutoFix:!1,hasAIFix:!1,allAIFixes:!1});class S extends o.jG{constructor(e,t,i,s,n,a,c){super(),this._editor=e,this._registry=t,this._markerService=i,this._progressService=n,this._configurationService=a,this._telemetryService=c,this._codeActionOracle=this._register(new o.HE),this._state=E.Empty,this._onDidChangeState=this._register(new r.vl),this.onDidChangeState=this._onDidChangeState.event,this._disposed=!1,this._supportedCodeActions=_.bindTo(s),this._register(this._editor.onDidChangeModel((()=>this._update()))),this._register(this._editor.onDidChangeModelLanguage((()=>this._update()))),this._register(this._registry.onDidChange((()=>this._update()))),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(65)&&this._update()}))),this._update()}dispose(){this._disposed||(this._disposed=!0,super.dispose(),this.setState(E.Empty,!0))}_settingEnabledNearbyQuickfixes(){const e=this._editor?.getModel();return!!this._configurationService&&this._configurationService.getValue("editor.codeActionWidget.includeNearbyQuickFixes",{resource:e?.uri})}_update(){if(this._disposed)return;this._codeActionOracle.value=void 0,this.setState(E.Empty);const e=this._editor.getModel();if(e&&this._registry.has(e)&&!this._editor.getOption(92)){const t=this._registry.all(e).flatMap((e=>e.providedCodeActionKinds??[]));this._supportedCodeActions.set(t.join(" ")),this._codeActionOracle.value=new C(this._editor,this._markerService,(t=>{if(!t)return void this.setState(E.Empty);const i=t.selection.getStartPosition(),n=(0,s.SS)((async i=>{if(this._settingEnabledNearbyQuickfixes()&&1===t.trigger.type&&(t.trigger.triggerAction===g.fo.QuickFix||t.trigger.filter?.include?.contains(g.gB.QuickFix))){const s=await(0,p.dU)(this._registry,e,t.selection,t.trigger,u.ke.None,i),n=[...s.allActions];if(i.isCancellationRequested)return b;const r=s.validActions?.some((e=>!!e.action.kind&&g.gB.QuickFix.contains(new m.k(e.action.kind)))),o=this._markerService.read({resource:e.uri});if(r){for(const e of s.validActions)e.action.command?.arguments?.some((e=>"string"===typeof e&&e.includes(v)))&&(e.action.diagnostics=[...o.filter((e=>e.relatedInformation))]);return{validActions:s.validActions,allActions:n,documentation:s.documentation,hasAutoFix:s.hasAutoFix,hasAIFix:s.hasAIFix,allAIFixes:s.allAIFixes,dispose:()=>{s.dispose()}}}if(!r&&o.length>0){const r=t.selection.getPosition();let a=r,c=Number.MAX_VALUE;const d=[...s.validActions];for(const f of o){const m=f.endColumn,_=f.endLineNumber,C=f.startLineNumber;if(_===r.lineNumber||C===r.lineNumber){a=new l.y(_,m);const f={type:t.trigger.type,triggerAction:t.trigger.triggerAction,filter:{include:t.trigger.filter?.include?t.trigger.filter?.include:g.gB.QuickFix},autoApply:t.trigger.autoApply,context:{notAvailableMessage:t.trigger.context?.notAvailableMessage||"",position:a}},C=new h.L(a.lineNumber,a.column,a.lineNumber,a.column),E=await(0,p.dU)(this._registry,e,C,f,u.ke.None,i);if(0!==E.validActions.length){for(const e of E.validActions)e.action.command?.arguments?.some((e=>"string"===typeof e&&e.includes(v)))&&(e.action.diagnostics=[...o.filter((e=>e.relatedInformation))]);0===s.allActions.length&&n.push(...E.allActions),Math.abs(r.column-m)<c?d.unshift(...E.validActions):d.push(...E.validActions)}c=Math.abs(r.column-m)}}const m=d.filter(((e,t,i)=>i.findIndex((t=>t.action.title===e.action.title))===t));return m.sort(((e,t)=>e.action.isPreferred&&!t.action.isPreferred?-1:!e.action.isPreferred&&t.action.isPreferred||e.action.isAI&&!t.action.isAI?1:!e.action.isAI&&t.action.isAI?-1:0)),{validActions:m,allActions:n,documentation:s.documentation,hasAutoFix:s.hasAutoFix,hasAIFix:s.hasAIFix,allAIFixes:s.allAIFixes,dispose:()=>{s.dispose()}}}}if(1===t.trigger.type){const s=new f.W,n=await(0,p.dU)(this._registry,e,t.selection,t.trigger,u.ke.None,i);return this._telemetryService&&this._telemetryService.publicLog2("codeAction.invokedDurations",{codeActions:n.validActions.length,duration:s.elapsed()}),n}return(0,p.dU)(this._registry,e,t.selection,t.trigger,u.ke.None,i)}));1===t.trigger.type&&this._progressService?.showWhile(n,250);const r=new E.Triggered(t.trigger,i,n);let o=!1;1===this._state.type&&(o=1===this._state.trigger.type&&1===r.type&&2===r.trigger.type&&this._state.position!==r.position),o?setTimeout((()=>{this.setState(r)}),500):this.setState(r)}),void 0),this._codeActionOracle.value.trigger({type:2,triggerAction:g.fo.Default})}else this._supportedCodeActions.reset()}trigger(e){this._codeActionOracle.value?.trigger(e)}setState(e,t){e!==this._state&&(1===this._state.type&&this._state.cancel(),this._state=e,t||this._disposed||this._onDidChangeState.fire(e))}}},59520:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>i.e(3702).then(i.bind(i,23702))})},59599:(e,t,i)=>{"use strict";i.d(t,{X:()=>s});const s=(0,i(63591).u1)("dialogService")},59731:(e,t,i)=>{"use strict";var s=i(16980),n=i(5662),r=i(31450),o=i(99645),a=i(78209);class c extends n.jG{static{this.ID="editor.contrib.readOnlyMessageController"}constructor(e){super(),this.editor=e,this._register(this.editor.onDidAttemptReadOnlyEdit((()=>this._onDidAttemptReadOnlyEdit())))}_onDidAttemptReadOnlyEdit(){const e=o.k.get(this.editor);if(e&&this.editor.hasModel()){let t=this.editor.getOptions().get(93);t||(t=this.editor.isSimpleWidget?new s.Bc(a.kg("editor.simple.readonly","Cannot edit in read-only input")):new s.Bc(a.kg("editor.readonly","Cannot edit in read-only editor"))),e.showMessage(t,this.editor.getPosition())}}}(0,r.HW)(c.ID,c,2)},59896:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>i.e(654).then(i.bind(i,20654))})},59911:(e,t,i)=>{"use strict";i.d(t,{_K:()=>a,bJ:()=>o,iD:()=>c});var s=i(98067);let n;const r=globalThis.vscode;if("undefined"!==typeof r&&"undefined"!==typeof r.process){const e=r.process;n={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd:()=>e.cwd()}}else n="undefined"!==typeof process&&"string"===typeof process?.versions?.node?{get platform(){return process.platform},get arch(){return process.arch},get env(){return{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}},cwd:()=>({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}.VSCODE_CWD||process.cwd())}:{get platform(){return s.uF?"win32":s.zx?"darwin":"linux"},get arch(){},get env(){return{}},cwd:()=>"/"};const o=n.cwd,a=n.env,c=n.platform},60002:(e,t,i)=>{"use strict";i.d(t,{R:()=>s});var s,n=i(78209),r=i(32848);!function(e){e.editorSimpleInput=new r.N1("editorSimpleInput",!1,!0),e.editorTextFocus=new r.N1("editorTextFocus",!1,n.kg("editorTextFocus","Whether the editor text has focus (cursor is blinking)")),e.focus=new r.N1("editorFocus",!1,n.kg("editorFocus","Whether the editor or an editor widget has focus (e.g. focus is in the find widget)")),e.textInputFocus=new r.N1("textInputFocus",!1,n.kg("textInputFocus","Whether an editor or a rich text input has focus (cursor is blinking)")),e.readOnly=new r.N1("editorReadonly",!1,n.kg("editorReadonly","Whether the editor is read-only")),e.inDiffEditor=new r.N1("inDiffEditor",!1,n.kg("inDiffEditor","Whether the context is a diff editor")),e.isEmbeddedDiffEditor=new r.N1("isEmbeddedDiffEditor",!1,n.kg("isEmbeddedDiffEditor","Whether the context is an embedded diff editor")),e.inMultiDiffEditor=new r.N1("inMultiDiffEditor",!1,n.kg("inMultiDiffEditor","Whether the context is a multi diff editor")),e.multiDiffEditorAllCollapsed=new r.N1("multiDiffEditorAllCollapsed",void 0,n.kg("multiDiffEditorAllCollapsed","Whether all files in multi diff editor are collapsed")),e.hasChanges=new r.N1("diffEditorHasChanges",!1,n.kg("diffEditorHasChanges","Whether the diff editor has changes")),e.comparingMovedCode=new r.N1("comparingMovedCode",!1,n.kg("comparingMovedCode","Whether a moved code block is selected for comparison")),e.accessibleDiffViewerVisible=new r.N1("accessibleDiffViewerVisible",!1,n.kg("accessibleDiffViewerVisible","Whether the accessible diff viewer is visible")),e.diffEditorRenderSideBySideInlineBreakpointReached=new r.N1("diffEditorRenderSideBySideInlineBreakpointReached",!1,n.kg("diffEditorRenderSideBySideInlineBreakpointReached","Whether the diff editor render side by side inline breakpoint is reached")),e.diffEditorInlineMode=new r.N1("diffEditorInlineMode",!1,n.kg("diffEditorInlineMode","Whether inline mode is active")),e.diffEditorOriginalWritable=new r.N1("diffEditorOriginalWritable",!1,n.kg("diffEditorOriginalWritable","Whether modified is writable in the diff editor")),e.diffEditorModifiedWritable=new r.N1("diffEditorModifiedWritable",!1,n.kg("diffEditorModifiedWritable","Whether modified is writable in the diff editor")),e.diffEditorOriginalUri=new r.N1("diffEditorOriginalUri","",n.kg("diffEditorOriginalUri","The uri of the original document")),e.diffEditorModifiedUri=new r.N1("diffEditorModifiedUri","",n.kg("diffEditorModifiedUri","The uri of the modified document")),e.columnSelection=new r.N1("editorColumnSelection",!1,n.kg("editorColumnSelection","Whether `editor.columnSelection` is enabled")),e.writable=e.readOnly.toNegated(),e.hasNonEmptySelection=new r.N1("editorHasSelection",!1,n.kg("editorHasSelection","Whether the editor has text selected")),e.hasOnlyEmptySelection=e.hasNonEmptySelection.toNegated(),e.hasMultipleSelections=new r.N1("editorHasMultipleSelections",!1,n.kg("editorHasMultipleSelections","Whether the editor has multiple selections")),e.hasSingleSelection=e.hasMultipleSelections.toNegated(),e.tabMovesFocus=new r.N1("editorTabMovesFocus",!1,n.kg("editorTabMovesFocus","Whether `Tab` will move focus out of the editor")),e.tabDoesNotMoveFocus=e.tabMovesFocus.toNegated(),e.isInEmbeddedEditor=new r.N1("isInEmbeddedEditor",!1,!0),e.canUndo=new r.N1("canUndo",!1,!0),e.canRedo=new r.N1("canRedo",!1,!0),e.hoverVisible=new r.N1("editorHoverVisible",!1,n.kg("editorHoverVisible","Whether the editor hover is visible")),e.hoverFocused=new r.N1("editorHoverFocused",!1,n.kg("editorHoverFocused","Whether the editor hover is focused")),e.stickyScrollFocused=new r.N1("stickyScrollFocused",!1,n.kg("stickyScrollFocused","Whether the sticky scroll is focused")),e.stickyScrollVisible=new r.N1("stickyScrollVisible",!1,n.kg("stickyScrollVisible","Whether the sticky scroll is visible")),e.standaloneColorPickerVisible=new r.N1("standaloneColorPickerVisible",!1,n.kg("standaloneColorPickerVisible","Whether the standalone color picker is visible")),e.standaloneColorPickerFocused=new r.N1("standaloneColorPickerFocused",!1,n.kg("standaloneColorPickerFocused","Whether the standalone color picker is focused")),e.inCompositeEditor=new r.N1("inCompositeEditor",void 0,n.kg("inCompositeEditor","Whether the editor is part of a larger editor (e.g. notebooks)")),e.notInCompositeEditor=e.inCompositeEditor.toNegated(),e.languageId=new r.N1("editorLangId","",n.kg("editorLangId","The language identifier of the editor")),e.hasCompletionItemProvider=new r.N1("editorHasCompletionItemProvider",!1,n.kg("editorHasCompletionItemProvider","Whether the editor has a completion item provider")),e.hasCodeActionsProvider=new r.N1("editorHasCodeActionsProvider",!1,n.kg("editorHasCodeActionsProvider","Whether the editor has a code actions provider")),e.hasCodeLensProvider=new r.N1("editorHasCodeLensProvider",!1,n.kg("editorHasCodeLensProvider","Whether the editor has a code lens provider")),e.hasDefinitionProvider=new r.N1("editorHasDefinitionProvider",!1,n.kg("editorHasDefinitionProvider","Whether the editor has a definition provider")),e.hasDeclarationProvider=new r.N1("editorHasDeclarationProvider",!1,n.kg("editorHasDeclarationProvider","Whether the editor has a declaration provider")),e.hasImplementationProvider=new r.N1("editorHasImplementationProvider",!1,n.kg("editorHasImplementationProvider","Whether the editor has an implementation provider")),e.hasTypeDefinitionProvider=new r.N1("editorHasTypeDefinitionProvider",!1,n.kg("editorHasTypeDefinitionProvider","Whether the editor has a type definition provider")),e.hasHoverProvider=new r.N1("editorHasHoverProvider",!1,n.kg("editorHasHoverProvider","Whether the editor has a hover provider")),e.hasDocumentHighlightProvider=new r.N1("editorHasDocumentHighlightProvider",!1,n.kg("editorHasDocumentHighlightProvider","Whether the editor has a document highlight provider")),e.hasDocumentSymbolProvider=new r.N1("editorHasDocumentSymbolProvider",!1,n.kg("editorHasDocumentSymbolProvider","Whether the editor has a document symbol provider")),e.hasReferenceProvider=new r.N1("editorHasReferenceProvider",!1,n.kg("editorHasReferenceProvider","Whether the editor has a reference provider")),e.hasRenameProvider=new r.N1("editorHasRenameProvider",!1,n.kg("editorHasRenameProvider","Whether the editor has a rename provider")),e.hasSignatureHelpProvider=new r.N1("editorHasSignatureHelpProvider",!1,n.kg("editorHasSignatureHelpProvider","Whether the editor has a signature help provider")),e.hasInlayHintsProvider=new r.N1("editorHasInlayHintsProvider",!1,n.kg("editorHasInlayHintsProvider","Whether the editor has an inline hints provider")),e.hasDocumentFormattingProvider=new r.N1("editorHasDocumentFormattingProvider",!1,n.kg("editorHasDocumentFormattingProvider","Whether the editor has a document formatting provider")),e.hasDocumentSelectionFormattingProvider=new r.N1("editorHasDocumentSelectionFormattingProvider",!1,n.kg("editorHasDocumentSelectionFormattingProvider","Whether the editor has a document selection formatting provider")),e.hasMultipleDocumentFormattingProvider=new r.N1("editorHasMultipleDocumentFormattingProvider",!1,n.kg("editorHasMultipleDocumentFormattingProvider","Whether the editor has multiple document formatting providers")),e.hasMultipleDocumentSelectionFormattingProvider=new r.N1("editorHasMultipleDocumentSelectionFormattingProvider",!1,n.kg("editorHasMultipleDocumentSelectionFormattingProvider","Whether the editor has multiple document selection formatting providers"))}(s||(s={}))},60352:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>i.e(4534).then(i.bind(i,24534))})},60413:(e,t,i)=>{"use strict";i.d(t,{Dy:()=>r,H8:()=>h,Qu:()=>m,Tc:()=>l,c8:()=>u,gm:()=>c,m0:()=>g,nr:()=>d,pR:()=>o});var s=i(25893);class n{constructor(){this.mapWindowIdToZoomFactor=new Map}static{this.INSTANCE=new n}getZoomFactor(e){return this.mapWindowIdToZoomFactor.get(this.getWindowId(e))??1}getWindowId(e){return e.vscodeWindowId}}function r(e,t,i){"string"===typeof t&&(t=e.matchMedia(t)),t.addEventListener("change",i)}function o(e){return n.INSTANCE.getZoomFactor(e)}const a=navigator.userAgent,c=a.indexOf("Firefox")>=0,l=a.indexOf("AppleWebKit")>=0,h=a.indexOf("Chrome")>=0,d=!h&&a.indexOf("Safari")>=0,u=!h&&!d&&l,g=(a.indexOf("Electron/"),a.indexOf("Android")>=0);let p=!1;if("function"===typeof s.G.matchMedia){const e=s.G.matchMedia("(display-mode: standalone) or (display-mode: window-controls-overlay)"),t=s.G.matchMedia("(display-mode: fullscreen)");p=e.matches,r(s.G,e,(({matches:e})=>{p&&t.matches||(p=e)}))}function m(){return p}},60534:(e,t,i)=>{"use strict";i.d(t,{V:()=>n,y:()=>r});var s=i(85152);class n{constructor(e){const t=(0,s.W)(e);this._defaultValue=t,this._asciiMap=n._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){const t=new Uint8Array(256);return t.fill(e),t}set(e,t){const i=(0,s.W)(t);e>=0&&e<256?this._asciiMap[e]=i:this._map.set(e,i)}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()}}class r{constructor(){this._actual=new n(0)}add(e){this._actual.set(e,1)}has(e){return 1===this._actual.get(e)}clear(){return this._actual.clear()}}},60858:(e,t,i)=>{"use strict";i.d(t,{$:()=>v,D:()=>w});var s,n,r=i(90766),o=i(41234),a=i(5662),c=i(27195),l=i(50091),h=i(32848),d=i(36921),u=i(9711),g=i(25890),p=i(78209),m=i(98031),f=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},_=function(e,t){return function(i,s){t(i,s,e)}};let v=class{constructor(e,t,i){this._commandService=e,this._keybindingService=t,this._hiddenStates=new C(i)}createMenu(e,t,i){return new S(e,this._hiddenStates,{emitEventsForSubmenuChanges:!1,eventDebounceDelay:50,...i},this._commandService,this._keybindingService,t)}getMenuActions(e,t,i){const s=new S(e,this._hiddenStates,{emitEventsForSubmenuChanges:!1,eventDebounceDelay:50,...i},this._commandService,this._keybindingService,t),n=s.getActions(i);return s.dispose(),n}resetHiddenStates(e){this._hiddenStates.reset(e)}};v=f([_(0,l.d),_(1,m.b),_(2,u.CS)],v);let C=class{static{s=this}static{this._key="menu.hiddenCommands"}constructor(e){this._storageService=e,this._disposables=new a.Cm,this._onDidChange=new o.vl,this.onDidChange=this._onDidChange.event,this._ignoreChangeEvent=!1,this._hiddenByDefaultCache=new Map;try{const t=e.get(s._key,0,"{}");this._data=JSON.parse(t)}catch(t){this._data=Object.create(null)}this._disposables.add(e.onDidChangeValue(0,s._key,this._disposables)((()=>{if(!this._ignoreChangeEvent)try{const t=e.get(s._key,0,"{}");this._data=JSON.parse(t)}catch(t){console.log("FAILED to read storage after UPDATE",t)}this._onDidChange.fire()})))}dispose(){this._onDidChange.dispose(),this._disposables.dispose()}_isHiddenByDefault(e,t){return this._hiddenByDefaultCache.get(`${e.id}/${t}`)??!1}setDefaultState(e,t,i){this._hiddenByDefaultCache.set(`${e.id}/${t}`,i)}isHidden(e,t){const i=this._isHiddenByDefault(e,t),s=this._data[e.id]?.includes(t)??!1;return i?!s:s}updateHidden(e,t,i){this._isHiddenByDefault(e,t)&&(i=!i);const s=this._data[e.id];if(i)if(s){s.indexOf(t)<0&&s.push(t)}else this._data[e.id]=[t];else if(s){const i=s.indexOf(t);i>=0&&(0,g.UH)(s,i),0===s.length&&delete this._data[e.id]}this._persist()}reset(e){if(void 0===e)this._data=Object.create(null),this._persist();else{for(const{id:t}of e)this._data[t]&&delete this._data[t];this._persist()}}_persist(){try{this._ignoreChangeEvent=!0;const e=JSON.stringify(this._data);this._storageService.store(s._key,e,0,0)}finally{this._ignoreChangeEvent=!1}}};C=s=f([_(0,u.CS)],C);class E{constructor(e,t){this._id=e,this._collectContextKeysForSubmenus=t,this._menuGroups=[],this._allMenuIds=new Set,this._structureContextKeys=new Set,this._preconditionContextKeys=new Set,this._toggledContextKeys=new Set,this.refresh()}get allMenuIds(){return this._allMenuIds}get structureContextKeys(){return this._structureContextKeys}get preconditionContextKeys(){return this._preconditionContextKeys}get toggledContextKeys(){return this._toggledContextKeys}refresh(){this._menuGroups.length=0,this._allMenuIds.clear(),this._structureContextKeys.clear(),this._preconditionContextKeys.clear(),this._toggledContextKeys.clear();const e=this._sort(c.ZG.getMenuItems(this._id));let t;for(const i of e){const e=i.group||"";t&&t[0]===e||(t=[e,[]],this._menuGroups.push(t)),t[1].push(i),this._collectContextKeysAndSubmenuIds(i)}this._allMenuIds.add(this._id)}_sort(e){return e}_collectContextKeysAndSubmenuIds(e){if(E._fillInKbExprKeys(e.when,this._structureContextKeys),(0,c.is)(e)){if(e.command.precondition&&E._fillInKbExprKeys(e.command.precondition,this._preconditionContextKeys),e.command.toggled){const t=e.command.toggled.condition||e.command.toggled;E._fillInKbExprKeys(t,this._toggledContextKeys)}}else this._collectContextKeysForSubmenus&&(c.ZG.getMenuItems(e.submenu).forEach(this._collectContextKeysAndSubmenuIds,this),this._allMenuIds.add(e.submenu))}static _fillInKbExprKeys(e,t){if(e)for(const i of e.keys())t.add(i)}}let b=n=class extends E{constructor(e,t,i,s,n,r){super(e,i),this._hiddenStates=t,this._commandService=s,this._keybindingService=n,this._contextKeyService=r,this.refresh()}createActionGroups(e){const t=[];for(const i of this._menuGroups){const[s,r]=i;let o;for(const t of r)if(this._contextKeyService.contextMatchesRules(t.when)){const i=(0,c.is)(t);i&&this._hiddenStates.setDefaultState(this._id,t.command.id,!!t.isHiddenByDefault);const s=y(this._id,i?t.command:t,this._hiddenStates);if(i){const i=w(this._commandService,this._keybindingService,t.command.id,t.when);(o??=[]).push(new c.Xe(t.command,t.alt,e,s,i,this._contextKeyService,this._commandService))}else{const i=new n(t.submenu,this._hiddenStates,this._collectContextKeysForSubmenus,this._commandService,this._keybindingService,this._contextKeyService).createActionGroups(e),r=d.wv.join(...i.map((e=>e[1])));r.length>0&&(o??=[]).push(new c.nI(t,s,r))}}o&&o.length>0&&t.push([s,o])}return t}_sort(e){return e.sort(n._compareMenuItems)}static _compareMenuItems(e,t){const i=e.group,s=t.group;if(i!==s){if(!i)return 1;if(!s)return-1;if("navigation"===i)return-1;if("navigation"===s)return 1;const e=i.localeCompare(s);if(0!==e)return e}const r=e.order||0,o=t.order||0;return r<o?-1:r>o?1:n._compareTitles((0,c.is)(e)?e.command.title:e.title,(0,c.is)(t)?t.command.title:t.title)}static _compareTitles(e,t){const i="string"===typeof e?e:e.original,s="string"===typeof t?t:t.original;return i.localeCompare(s)}};b=n=f([_(3,l.d),_(4,m.b),_(5,h.fN)],b);let S=class{constructor(e,t,i,s,n,l){this._disposables=new a.Cm,this._menuInfo=new b(e,t,i.emitEventsForSubmenuChanges,s,n,l);const h=new r.uC((()=>{this._menuInfo.refresh(),this._onDidChange.fire({menu:this,isStructuralChange:!0,isEnablementChange:!0,isToggleChange:!0})}),i.eventDebounceDelay);this._disposables.add(h),this._disposables.add(c.ZG.onDidChangeMenu((e=>{for(const t of this._menuInfo.allMenuIds)if(e.has(t)){h.schedule();break}})));const d=this._disposables.add(new a.Cm);this._onDidChange=new o.uI({onWillAddFirstListener:()=>{d.add(l.onDidChangeContext((e=>{const t=e.affectsSome(this._menuInfo.structureContextKeys),i=e.affectsSome(this._menuInfo.preconditionContextKeys),s=e.affectsSome(this._menuInfo.toggledContextKeys);(t||i||s)&&this._onDidChange.fire({menu:this,isStructuralChange:t,isEnablementChange:i,isToggleChange:s})}))),d.add(t.onDidChange((e=>{this._onDidChange.fire({menu:this,isStructuralChange:!0,isEnablementChange:!1,isToggleChange:!1})})))},onDidRemoveLastListener:d.clear.bind(d),delay:i.eventDebounceDelay,merge:e=>{let t=!1,i=!1,s=!1;for(const n of e)if(t=t||n.isStructuralChange,i=i||n.isEnablementChange,s=s||n.isToggleChange,t&&i&&s)break;return{menu:this,isStructuralChange:t,isEnablementChange:i,isToggleChange:s}}}),this.onDidChange=this._onDidChange.event}getActions(e){return this._menuInfo.createActionGroups(e)}dispose(){this._disposables.dispose(),this._onDidChange.dispose()}};function y(e,t,i){const s=(0,c.i1)(t)?t.submenu.id:t.id,n="string"===typeof t.title?t.title:t.title.value,r=(0,d.ih)({id:`hide/${e.id}/${s}`,label:(0,p.kg)("hide.label","Hide '{0}'",n),run(){i.updateHidden(e,s,!0)}}),o=(0,d.ih)({id:`toggle/${e.id}/${s}`,label:n,get checked(){return!i.isHidden(e,s)},run(){i.updateHidden(e,s,!!this.checked)}});return{hide:r,toggle:o,get isHidden(){return!o.checked}}}function w(e,t,i,s=void 0,n=!0){return(0,d.ih)({id:`configureKeybinding/${i}`,label:(0,p.kg)("configure keybinding","Configure Keybinding"),enabled:n,run(){const n=!!!t.lookupKeybinding(i)&&s?s.serialize():void 0;e.executeCommand("workbench.action.openGlobalKeybindings",`@command:${i}`+(n?` +when:${n}`:""))}})}S=f([_(3,l.d),_(4,m.b),_(5,h.fN)],S)},60952:(e,t,i)=>{"use strict";i.d(t,{U:()=>v,h:()=>_});var s=i(8597),n=i(36921),r=i(18447),o=i(58255),a=i(36677),c=i(18938),l=i(99312),h=i(84226),d=i(27195),u=i(50091),g=i(32848),p=i(47508),m=i(63591),f=i(58591);async function _(e,t,i,h){const g=e.get(c.ITextModelService),_=e.get(p.Z),v=e.get(u.d),C=e.get(m._Y),E=e.get(f.Ot);if(await h.item.resolve(r.XO.None),!h.part.location)return;const b=h.part.location,S=[],y=new Set(d.ZG.getMenuItems(d.D8.EditorContext).map((e=>(0,d.is)(e)?e.command.id:(0,o.b)())));for(const s of l.bn.all())y.has(s.desc.id)&&S.push(new n.rc(s.desc.id,d.Xe.label(s.desc,{renderShortTitle:!0}),void 0,!0,(async()=>{const e=await g.createModelReference(b.uri);try{const i=new l.QS(e.object.textEditorModel,a.Q.getStartPosition(b.range)),n=h.item.anchor.range;await C.invokeFunction(s.runEditorCommand.bind(s),t,i,n)}finally{e.dispose()}})));if(h.part.command){const{command:e}=h.part;S.push(new n.wv),S.push(new n.rc(e.id,e.title,void 0,!0,(async()=>{try{await v.executeCommand(e.id,...e.arguments??[])}catch(t){E.notify({severity:f.AI.Error,source:h.item.provider.displayName,message:t})}})))}const w=t.getOption(128);_.showContextMenu({domForShadowRoot:w?t.getDomNode()??void 0:void 0,getAnchor:()=>{const e=s.BK(i);return{x:e.left,y:e.top+e.height+8}},getActions:()=>S,onHide:()=>{t.focus()},autoSelectFirstItem:!0})}async function v(e,t,i,s){const n=e.get(c.ITextModelService),r=await n.createModelReference(s.uri);await i.invokeWithinContext((async e=>{const n=t.hasSideBySideModifier,o=e.get(g.fN),c=h.x2.inPeekEditor.getValue(o),d=!n&&i.getOption(89)&&!c;return new l.mR({openToSide:n,openInPeek:d,muteMessage:!0},{title:{value:"",original:""},id:"",precondition:void 0}).run(e,new l.QS(r.object.textEditorModel,a.Q.getStartPosition(s.range)),a.Q.lift(s.range))})),r.dispose()}},61059:(e,t,i)=>{"use strict";i.d(t,{q:()=>s});const s={enableSplitViewResizing:!0,splitViewDefaultRatio:.5,renderSideBySide:!0,renderMarginRevertIcon:!0,renderGutterMenu:!0,maxComputationTime:5e3,maxFileSize:50,ignoreTrimWhitespace:!0,renderIndicators:!0,originalEditable:!1,diffCodeLens:!1,renderOverviewRuler:!0,diffWordWrap:"inherit",diffAlgorithm:"advanced",accessibilityVerbose:!1,experimental:{showMoves:!1,showEmptyDecorations:!0,useTrueInlineView:!1},hideUnchangedRegions:{enabled:!1,contextLineCount:3,minimumLineCount:3,revealLineCount:20},isInEmbeddedEditor:!1,onlyShowAccessibleDiffViewer:!1,renderSideBySideInlineBreakpoint:900,useInlineViewWhenSpaceIsLimited:!0,compactMode:!1}},61082:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>i.e(5252).then(i.bind(i,65252))})},61199:(e,t,i)=>{var s=i(16320),n=i(59698);e.exports=function(e){return"number"==typeof e||n(e)&&"[object Number]"==s(e)}},61283:(e,t,i)=>{"use strict";i.d(t,{A:()=>x});var s=i(59284),n=i(13260),r=i.n(n),o="undefined"!==typeof window?window:null,a=null===o,c=a?void 0:o.document,l="addEventListener",h="removeEventListener",d="getBoundingClientRect",u="_a",g="_b",p="_c",m="horizontal",f=function(){return!1},_=a?"calc":["","-webkit-","-moz-","-o-"].filter((function(e){var t=c.createElement("div");return t.style.cssText="width:"+e+"calc(9px)",!!t.style.length})).shift()+"calc",v=function(e){return"string"===typeof e||e instanceof String},C=function(e){if(v(e)){var t=c.querySelector(e);if(!t)throw new Error("Selector "+e+" did not match a DOM element");return t}return e},E=function(e,t,i){var s=e[t];return void 0!==s?s:i},b=function(e,t,i,s){if(t){if("end"===s)return 0;if("center"===s)return e/2}else if(i){if("start"===s)return 0;if("center"===s)return e/2}return e},S=function(e,t){var i=c.createElement("div");return i.className="gutter gutter-"+t,i},y=function(e,t,i){var s={};return v(t)?s[e]=t:s[e]=_+"("+t+"% - "+i+"px)",s},w=function(e,t){var i;return(i={})[e]=t+"px",i};const R=function(e,t){if(void 0===t&&(t={}),a)return{};var i,s,n,r,_,v,R=e;Array.from&&(R=Array.from(R));var L=C(R[0]).parentNode,T=getComputedStyle?getComputedStyle(L):null,x=T?T.flexDirection:null,k=E(t,"sizes")||R.map((function(){return 100/R.length})),A=E(t,"minSize",100),N=Array.isArray(A)?A:R.map((function(){return A})),I=E(t,"maxSize",1/0),O=Array.isArray(I)?I:R.map((function(){return I})),D=E(t,"expandToMin",!1),M=E(t,"gutterSize",10),P=E(t,"gutterAlign","center"),F=E(t,"snapOffset",30),U=Array.isArray(F)?F:R.map((function(){return F})),H=E(t,"dragInterval",1),B=E(t,"direction",m),W=E(t,"cursor",B===m?"col-resize":"row-resize"),V=E(t,"gutter",S),z=E(t,"elementStyle",y),G=E(t,"gutterStyle",w);function j(e,t,s,n){var r=z(i,t,s,n);Object.keys(r).forEach((function(t){e.style[t]=r[t]}))}function K(){return v.map((function(e){return e.size}))}function Y(e){return"touches"in e?e.touches[0][s]:e[s]}function q(e){var t=v[this.a],i=v[this.b],s=t.size+i.size;t.size=e/this.size*s,i.size=s-e/this.size*s,j(t.element,t.size,this[g],t.i),j(i.element,i.size,this[p],i.i)}function $(e){var i,s=v[this.a],n=v[this.b];this.dragging&&(i=Y(e)-this.start+(this[g]-this.dragOffset),H>1&&(i=Math.round(i/H)*H),i<=s.minSize+s.snapOffset+this[g]?i=s.minSize+this[g]:i>=this.size-(n.minSize+n.snapOffset+this[p])&&(i=this.size-(n.minSize+this[p])),i>=s.maxSize-s.snapOffset+this[g]?i=s.maxSize+this[g]:i<=this.size-(n.maxSize-n.snapOffset+this[p])&&(i=this.size-(n.maxSize+this[p])),q.call(this,i),E(t,"onDrag",f)(K()))}function Q(){var e=v[this.a].element,t=v[this.b].element,s=e[d](),o=t[d]();this.size=s[i]+o[i]+this[g]+this[p],this.start=s[n],this.end=s[r]}function X(e){var t=function(e){if(!getComputedStyle)return null;var t=getComputedStyle(e);if(!t)return null;var i=e[_];return 0===i?null:i-=B===m?parseFloat(t.paddingLeft)+parseFloat(t.paddingRight):parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)}(L);if(null===t)return e;if(N.reduce((function(e,t){return e+t}),0)>t)return e;var i=0,s=[],n=e.map((function(n,r){var o=t*n/100,a=b(M,0===r,r===e.length-1,P),c=N[r]+a;return o<c?(i+=c-o,s.push(0),c):(s.push(o-c),o)}));return 0===i?e:n.map((function(e,n){var r=e;if(i>0&&s[n]-i>0){var o=Math.min(i,s[n]-i);i-=o,r=e-o}return r/t*100}))}function Z(){var e=this,i=v[e.a].element,s=v[e.b].element;e.dragging&&E(t,"onDragEnd",f)(K()),e.dragging=!1,o[h]("mouseup",e.stop),o[h]("touchend",e.stop),o[h]("touchcancel",e.stop),o[h]("mousemove",e.move),o[h]("touchmove",e.move),e.stop=null,e.move=null,i[h]("selectstart",f),i[h]("dragstart",f),s[h]("selectstart",f),s[h]("dragstart",f),i.style.userSelect="",i.style.webkitUserSelect="",i.style.MozUserSelect="",i.style.pointerEvents="",s.style.userSelect="",s.style.webkitUserSelect="",s.style.MozUserSelect="",s.style.pointerEvents="",e.gutter.style.cursor="",e.parent.style.cursor="",c.body.style.cursor=""}function J(e){if(!("button"in e)||0===e.button){var i=this,s=v[i.a].element,n=v[i.b].element;i.dragging||E(t,"onDragStart",f)(K()),e.preventDefault(),i.dragging=!0,i.move=$.bind(i),i.stop=Z.bind(i),o[l]("mouseup",i.stop),o[l]("touchend",i.stop),o[l]("touchcancel",i.stop),o[l]("mousemove",i.move),o[l]("touchmove",i.move),s[l]("selectstart",f),s[l]("dragstart",f),n[l]("selectstart",f),n[l]("dragstart",f),s.style.userSelect="none",s.style.webkitUserSelect="none",s.style.MozUserSelect="none",s.style.pointerEvents="none",n.style.userSelect="none",n.style.webkitUserSelect="none",n.style.MozUserSelect="none",n.style.pointerEvents="none",i.gutter.style.cursor=W,i.parent.style.cursor=W,c.body.style.cursor=W,Q.call(i),i.dragOffset=Y(e)-i.end}}B===m?(i="width",s="clientX",n="left",r="right",_="clientWidth"):"vertical"===B&&(i="height",s="clientY",n="top",r="bottom",_="clientHeight"),k=X(k);var ee=[];function te(e){var t=e.i===ee.length,i=t?ee[e.i-1]:ee[e.i];Q.call(i);var s=t?i.size-e.minSize-i[p]:e.minSize+i[g];q.call(i,s)}return(v=R.map((function(e,t){var s,n={element:C(e),size:k[t],minSize:N[t],maxSize:O[t],snapOffset:U[t],i:t};if(t>0&&((s={a:t-1,b:t,dragging:!1,direction:B,parent:L})[g]=b(M,t-1===0,!1,P),s[p]=b(M,!1,t===R.length-1,P),"row-reverse"===x||"column-reverse"===x)){var r=s.a;s.a=s.b,s.b=r}if(t>0){var o=V(t,B,n.element);!function(e,t,s){var n=G(i,t,s);Object.keys(n).forEach((function(t){e.style[t]=n[t]}))}(o,M,t),s[u]=J.bind(s),o[l]("mousedown",s[u]),o[l]("touchstart",s[u]),L.insertBefore(o,n.element),s.gutter=o}return j(n.element,n.size,b(M,0===t,t===R.length-1,P),t),t>0&&ee.push(s),n}))).forEach((function(e){var t=e.element[d]()[i];t<e.minSize&&(D?te(e):e.minSize=t)})),{setSizes:function(e){var t=X(e);t.forEach((function(e,i){if(i>0){var s=ee[i-1],n=v[s.a],r=v[s.b];n.size=t[i-1],r.size=e,j(n.element,n.size,s[g],n.i),j(r.element,r.size,s[p],r.i)}}))},getSizes:K,collapse:function(e){te(v[e])},destroy:function(e,t){ee.forEach((function(s){if(!0!==t?s.parent.removeChild(s.gutter):(s.gutter[h]("mousedown",s[u]),s.gutter[h]("touchstart",s[u])),!0!==e){var n=z(i,s.a.size,s[g]);Object.keys(n).forEach((function(e){v[s.a].element.style[e]="",v[s.b].element.style[e]=""}))}}))},parent:L,pairs:ee}};function L(e,t){var i={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&-1===t.indexOf(s)&&(i[s]=e[s]);return i}var T=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.componentDidMount=function(){var e=this.props;e.children;var t=e.gutter,i=L(e,["children","gutter"]);i.gutter=function(e,i){var s;return t?s=t(e,i):(s=document.createElement("div")).className="gutter gutter-"+i,s.__isSplitGutter=!0,s},this.split=R(this.parent.children,i)},t.prototype.componentDidUpdate=function(e){var t=this,i=this.props;i.children;var s=i.minSize,n=i.sizes,r=i.collapsed,o=L(i,["children","minSize","sizes","collapsed"]),a=e.minSize,c=e.sizes,l=e.collapsed,h=["maxSize","expandToMin","gutterSize","gutterAlign","snapOffset","dragInterval","direction","cursor"].map((function(i){return t.props[i]!==e[i]})).reduce((function(e,t){return e||t}),!1);if(Array.isArray(s)&&Array.isArray(a)){var d=!1;s.forEach((function(e,t){d=d||e!==a[t]})),h=h||d}else h=!(!Array.isArray(s)&&!Array.isArray(a))||(h||s!==a);if(h)o.minSize=s,o.sizes=n||this.split.getSizes(),this.split.destroy(!0,!0),o.gutter=function(e,t,i){return i.previousSibling},this.split=R(Array.from(this.parent.children).filter((function(e){return!e.__isSplitGutter})),o);else if(n){var u=!1;n.forEach((function(e,t){u=u||e!==c[t]})),u&&this.split.setSizes(this.props.sizes)}Number.isInteger(r)&&(r!==l||h)&&this.split.collapse(r)},t.prototype.componentWillUnmount=function(){this.split.destroy(),delete this.split},t.prototype.render=function(){var e=this,t=this.props;t.sizes,t.minSize,t.maxSize,t.expandToMin,t.gutterSize,t.gutterAlign,t.snapOffset,t.dragInterval,t.direction,t.cursor,t.gutter,t.elementStyle,t.gutterStyle,t.onDrag,t.onDragStart,t.onDragEnd,t.collapsed;var i=t.children,n=L(t,["sizes","minSize","maxSize","expandToMin","gutterSize","gutterAlign","snapOffset","dragInterval","direction","cursor","gutter","elementStyle","gutterStyle","onDrag","onDragStart","onDragEnd","collapsed","children"]);return s.createElement("div",Object.assign({},{ref:function(t){e.parent=t}},n),i)},t}(s.Component);T.propTypes={sizes:r().arrayOf(r().number),minSize:r().oneOfType([r().number,r().arrayOf(r().number)]),maxSize:r().oneOfType([r().number,r().arrayOf(r().number)]),expandToMin:r().bool,gutterSize:r().number,gutterAlign:r().string,snapOffset:r().oneOfType([r().number,r().arrayOf(r().number)]),dragInterval:r().number,direction:r().string,cursor:r().string,gutter:r().func,elementStyle:r().func,gutterStyle:r().func,onDrag:r().func,onDragStart:r().func,onDragEnd:r().func,collapsed:r().number,children:r().arrayOf(r().element)},T.defaultProps={sizes:void 0,minSize:void 0,maxSize:void 0,expandToMin:void 0,gutterSize:void 0,gutterAlign:void 0,snapOffset:void 0,dragInterval:void 0,direction:void 0,cursor:void 0,gutter:void 0,elementStyle:void 0,gutterStyle:void 0,onDrag:void 0,onDragStart:void 0,onDragEnd:void 0,collapsed:void 0,children:void 0};const x=T},61292:(e,t,i)=>{"use strict";i.d(t,{PD:()=>r,sV:()=>n});var s=i(46359);const n={EDITORS:"CodeEditors",FILES:"CodeFiles"};s.O.add("workbench.contributions.dragAndDrop",new class{});class r{static{this.INSTANCE=new r}constructor(){}static getInstance(){return r.INSTANCE}hasData(e){return e&&e===this.proto}getData(e){if(this.hasData(e))return this.data}}},61394:(e,t,i)=>{"use strict";i.d(t,{$_:()=>b,HT:()=>_,pU:()=>f});var s=i(90766),n=i(10350),r=i(18956),o=i(25689),a=i(41234),c=i(631),l=i(79400),h=i(78209),d=i(78748),u=i(46359);var g,p;!function(e){e.getDefinition=function(e,t){let i=e.defaults;for(;o.L.isThemeIcon(i);){const e=m.getIcon(i.id);if(!e)return;i=e.defaults}return i}}(g||(g={})),function(e){e.toJSONObject=function(e){return{weight:e.weight,style:e.style,src:e.src.map((e=>({format:e.format,location:e.location.toString()})))}},e.fromJSONObject=function(e){const t=e=>(0,c.Kg)(e)?e:void 0;if(e&&Array.isArray(e.src)&&e.src.every((e=>(0,c.Kg)(e.format)&&(0,c.Kg)(e.location))))return{weight:t(e.weight),style:t(e.style),src:e.src.map((e=>({format:e.format,location:l.r.parse(e.location)})))}}}(p||(p={}));const m=new class{constructor(){this._onDidChange=new a.vl,this.onDidChange=this._onDidChange.event,this.iconSchema={definitions:{icons:{type:"object",properties:{fontId:{type:"string",description:(0,h.kg)("iconDefinition.fontId","The id of the font to use. If not set, the font that is defined first is used.")},fontCharacter:{type:"string",description:(0,h.kg)("iconDefinition.fontCharacter","The font character associated with the icon definition.")}},additionalProperties:!1,defaultSnippets:[{body:{fontCharacter:"\\\\e030"}}]}},type:"object",properties:{}},this.iconReferenceSchema={type:"string",pattern:`^${o.L.iconNameExpression}$`,enum:[],enumDescriptions:[]},this.iconsById={},this.iconFontsById={}}registerIcon(e,t,i,s){const n=this.iconsById[e];if(n){if(i&&!n.description){n.description=i,this.iconSchema.properties[e].markdownDescription=`${i} $(${e})`;const t=this.iconReferenceSchema.enum.indexOf(e);-1!==t&&(this.iconReferenceSchema.enumDescriptions[t]=i),this._onDidChange.fire()}return n}const r={id:e,description:i,defaults:t,deprecationMessage:s};this.iconsById[e]=r;const o={$ref:"#/definitions/icons"};return s&&(o.deprecationMessage=s),i&&(o.markdownDescription=`${i}: $(${e})`),this.iconSchema.properties[e]=o,this.iconReferenceSchema.enum.push(e),this.iconReferenceSchema.enumDescriptions.push(i||""),this._onDidChange.fire(),{id:e}}getIcons(){return Object.keys(this.iconsById).map((e=>this.iconsById[e]))}getIcon(e){return this.iconsById[e]}getIconSchema(){return this.iconSchema}toString(){const e=(e,t)=>e.id.localeCompare(t.id),t=e=>{for(;o.L.isThemeIcon(e.defaults);)e=this.iconsById[e.defaults.id];return`codicon codicon-${e?e.id:""}`},i=[];i.push("| preview | identifier | default codicon ID | description"),i.push("| ----------- | --------------------------------- | --------------------------------- | --------------------------------- |");const s=Object.keys(this.iconsById).map((e=>this.iconsById[e]));for(const n of s.filter((e=>!!e.description)).sort(e))i.push(`|<i class="${t(n)}"></i>|${n.id}|${o.L.isThemeIcon(n.defaults)?n.defaults.id:n.id}|${n.description||""}|`);i.push("| preview | identifier "),i.push("| ----------- | --------------------------------- |");for(const n of s.filter((e=>!o.L.isThemeIcon(e.defaults))).sort(e))i.push(`|<i class="${t(n)}"></i>|${n.id}|`);return i.join("\n")}};function f(e,t,i,s){return m.registerIcon(e,t,i,s)}function _(){return m}u.O.add("base.contributions.icons",m),function(){const e=(0,r.J)();for(const t in e){const i="\\"+e[t].toString(16);m.registerIcon(t,{fontCharacter:i})}}();const v="vscode://schemas/icons",C=u.O.as(d.F.JSONContribution);C.registerSchema(v,m.getIconSchema());const E=new s.uC((()=>C.notifySchemaChanged(v)),200);m.onDidChange((()=>{E.isScheduled()||E.schedule()}));const b=f("widget-close",n.W.close,(0,h.kg)("widgetClose","Icon for the close action in widgets."));f("goto-previous-location",n.W.arrowUp,(0,h.kg)("previousChangeIcon","Icon for goto previous editor location.")),f("goto-next-location",n.W.arrowDown,(0,h.kg)("nextChangeIcon","Icon for goto next editor location.")),o.L.modify(n.W.sync,"spin"),o.L.modify(n.W.loading,"spin")},61407:(e,t,i)=>{"use strict";i.d(t,{QA:()=>h,Vi:()=>d,aF:()=>c,fo:()=>o,gB:()=>r,uJ:()=>a});var s=i(64383),n=i(8995);const r=new class{constructor(){this.QuickFix=new n.k("quickfix"),this.Refactor=new n.k("refactor"),this.RefactorExtract=this.Refactor.append("extract"),this.RefactorInline=this.Refactor.append("inline"),this.RefactorMove=this.Refactor.append("move"),this.RefactorRewrite=this.Refactor.append("rewrite"),this.Notebook=new n.k("notebook"),this.Source=new n.k("source"),this.SourceOrganizeImports=this.Source.append("organizeImports"),this.SourceFixAll=this.Source.append("fixAll"),this.SurroundWith=this.Refactor.append("surround")}};var o;function a(e,t){return!(e.include&&!e.include.intersects(t))&&((!e.excludes||!e.excludes.some((i=>l(t,i,e.include))))&&!(!e.includeSourceActions&&r.Source.contains(t)))}function c(e,t){const i=t.kind?new n.k(t.kind):void 0;return!!(!e.include||i&&e.include.contains(i))&&(!(e.excludes&&i&&e.excludes.some((t=>l(i,t,e.include))))&&(!(!e.includeSourceActions&&i&&r.Source.contains(i))&&!(e.onlyIncludePreferredActions&&!t.isPreferred)))}function l(e,t,i){return!!t.contains(e)&&(!i||!t.contains(i))}!function(e){e.Refactor="refactor",e.RefactorPreview="refactor preview",e.Lightbulb="lightbulb",e.Default="other (default)",e.SourceAction="source action",e.QuickFix="quick fix action",e.FixAll="fix all",e.OrganizeImports="organize imports",e.AutoFix="auto fix",e.QuickFixHover="quick fix hover window",e.OnSave="save participants",e.ProblemsView="problems view"}(o||(o={}));class h{static fromUser(e,t){return e&&"object"===typeof e?new h(h.getKindFromUser(e,t.kind),h.getApplyFromUser(e,t.apply),h.getPreferredUser(e)):new h(t.kind,t.apply,!1)}static getApplyFromUser(e,t){switch("string"===typeof e.apply?e.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}}static getKindFromUser(e,t){return"string"===typeof e.kind?new n.k(e.kind):t}static getPreferredUser(e){return"boolean"===typeof e.preferred&&e.preferred}constructor(e,t,i){this.kind=e,this.apply=t,this.preferred=i}}class d{constructor(e,t,i){this.action=e,this.provider=t,this.highlightRange=i}async resolve(e){if(this.provider?.resolveCodeAction&&!this.action.edit){let i;try{i=await this.provider.resolveCodeAction(this.action,e)}catch(t){(0,s.M_)(t)}i&&(this.action.edit=i.edit)}return this}}},61472:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"xml",extensions:[".xml",".xsd",".dtd",".ascx",".csproj",".config",".props",".targets",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xslt",".xsl"],firstLine:"(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)",aliases:["XML","xml"],mimetypes:["text/xml","application/xml","application/xaml+xml","application/xml-dtd"],loader:()=>i.e(7718).then(i.bind(i,77718))})},61562:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>i.e(5636).then(i.bind(i,25636))})},61674:(e,t,i)=>{e.exports=function(e){const t=i(37403),s={say:i(27769),format:t.format,formatFromYSON:t.formatFromYSON,formatFromYQL:t.formatFromYQL,formatRaw:t.formatRaw,formatAttributes:t.formatAttributes,formatKey:t.formatKey,formatValue:t.formatValue,converters:{yson:i(1019),yql:i(34132),raw:i(34420)},utils:{format:i(94297),yson:i(76531),utf8:i(1449),type:i(85858)}};if((e=e||{}).exportBrowserModule){if("undefined"===typeof window)return s;let e;const t="function"===typeof window.define&&window.define.amd,i="object"===typeof window.modules,n=function(e){return e},r=function(e){return t?e.bind(null,n):i?e:e.bind(null,n)};e=t?window.define:i?window.modules.define.bind(window.modules):function(e,t){window[e]=t()},e("unipika",r((function(e){"use strict";return e(s)})))}return s}},61731:(e,t,i)=>{"use strict";var s,n=i(31450),r=i(94371),o=i(72466),a=i(90208),c=i(78209),l=i(1646),h=i(46359),d=i(25890),u=i(90766),g=i(17799),p=i(8995),m=i(5662),f=i(85411),_=i(36677),v=i(56942),C=i(36723),E=i(29100),b=i(50868),S=i(9948),y=i(84001),w=i(32848),R=i(61292),L=i(63591),T=i(85541),x=i(56687),k=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},A=function(e,t){return function(i,s){t(i,s,e)}};const N="editor.experimental.dropIntoEditor.defaultProvider",I="editor.changeDropType",O=new w.N1("dropWidgetVisible",!1,(0,c.kg)("dropWidgetVisible","Whether the drop widget is showing"));let D=class extends m.jG{static{s=this}static{this.ID="editor.contrib.dropIntoEditorController"}static get(e){return e.getContribution(s.ID)}constructor(e,t,i,s,n){super(),this._configService=i,this._languageFeaturesService=s,this._treeViewsDragAndDropService=n,this.treeItemsTransfer=R.PD.getInstance(),this._dropProgressManager=this._register(t.createInstance(S.I,"dropIntoEditor",e)),this._postDropWidgetManager=this._register(t.createInstance(x.G,"dropIntoEditor",e,O,{id:I,label:(0,c.kg)("postDropWidgetTitle","Show drop options...")})),this._register(e.onDropIntoEditor((t=>this.onDropIntoEditor(e,t.position,t.event))))}clearWidgets(){this._postDropWidgetManager.clear()}changeDropType(){this._postDropWidgetManager.tryShowSelector()}async onDropIntoEditor(e,t,i){if(!i.dataTransfer||!e.hasModel())return;this._currentOperation?.cancel(),e.focus(),e.setPosition(t);const s=(0,u.SS)((async n=>{const r=new m.Cm,o=r.add(new b.gI(e,1,void 0,n));try{const s=await this.extractDataTransferData(i);if(0===s.size||o.token.isCancellationRequested)return;const a=e.getModel();if(!a)return;const c=this._languageFeaturesService.documentDropEditProvider.ordered(a).filter((e=>!e.dropMimeTypes||e.dropMimeTypes.some((e=>s.matches(e))))),l=r.add(await this.getDropEdits(c,a,t,s,o));if(o.token.isCancellationRequested)return;if(l.edits.length){const i=this.getInitialActiveEditIndex(a,l.edits),s="afterDrop"===e.getOption(36).showDropSelector;await this._postDropWidgetManager.applyEditAndShowIfNeeded([_.Q.fromPositions(t)],{activeEditIndex:i,allEdits:l.edits},s,(async e=>e),n)}}finally{r.dispose(),this._currentOperation===s&&(this._currentOperation=void 0)}}));this._dropProgressManager.showWhile(t,(0,c.kg)("dropIntoEditorProgress","Running drop handlers. Click to cancel"),s,{cancel:()=>s.cancel()}),this._currentOperation=s}async getDropEdits(e,t,i,s,n){const r=new m.Cm,o=await(0,u.PK)(Promise.all(e.map((async e=>{try{const o=await e.provideDocumentDropEdits(t,i,s,n.token);return o&&r.add(o),o?.edits.map((t=>({...t,providerId:e.id})))}catch(o){console.error(o)}}))),n.token),a=(0,d.Yc)(o??[]).flat();return{edits:(0,T.H)(a),dispose:()=>r.dispose()}}getInitialActiveEditIndex(e,t){const i=this._configService.getValue(N,{resource:e.uri});for(const[s,n]of Object.entries(i)){const e=new p.k(n),i=t.findIndex((t=>e.value===t.providerId&&t.handledMimeType&&(0,g.Y)(s,[t.handledMimeType])));if(i>=0)return i}return 0}async extractDataTransferData(e){if(!e.dataTransfer)return new g.Vq;const t=(0,f.l)(e.dataTransfer);if(this.treeItemsTransfer.hasData(C.DraggedTreeItemsIdentifier.prototype)){const e=this.treeItemsTransfer.getData(C.DraggedTreeItemsIdentifier.prototype);if(Array.isArray(e))for(const i of e){const e=await this._treeViewsDragAndDropService.removeDragOperationTransfer(i.identifier);if(e)for(const[i,s]of e)t.replace(i,s)}}return t}};D=s=k([A(1,L._Y),A(2,y.pG),A(3,v.ILanguageFeaturesService),A(4,E.ITreeViewsDnDService)],D),(0,n.HW)(D.ID,D,2),(0,o.x)(a.ZR),(0,n.E_)(new class extends n.DX{constructor(){super({id:I,precondition:O,kbOpts:{weight:100,primary:2137}})}runEditorCommand(e,t,i){D.get(t)?.changeDropType()}}),(0,n.E_)(new class extends n.DX{constructor(){super({id:"editor.hideDropWidget",precondition:O,kbOpts:{weight:100,primary:9}})}runEditorCommand(e,t,i){D.get(t)?.clearWidgets()}}),h.O.as(l.Fd.Configuration).registerConfiguration({...r.JJ,properties:{[N]:{type:"object",scope:5,description:c.kg("defaultProviderDescription","Configures the default drop provider to use for content of a given mime type."),default:{},additionalProperties:{type:"string"}}}})},61764:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>i.e(2162).then(i.bind(i,2162))})},61850:(e,t,i)=>{"use strict";i.d(t,{IK:()=>h,bC:()=>u,RQ:()=>d,KV:()=>c});const s=new RegExp("^[$A-Z_\\s]+$");var n=i(92727);const r={},o={};class a{static getOrCreate(e){return o[e]||(o[e]=new a(e)),o[e]}constructor(e){this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise(((e,t)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=t}))}whenLoaded(){return this._lazyLoadPromise}load(){return this._loadingTriggered||(this._loadingTriggered=!0,r[this._languageId].loader().then((e=>this._lazyLoadPromiseResolve(e)),(e=>this._lazyLoadPromiseReject(e)))),this._lazyLoadPromise}}function c(e){const t=e.id;r[t]=e,n.eo.register(e);const i=a.getOrCreate(t);n.eo.setMonarchTokensProvider(t,i.whenLoaded().then((e=>e.language))),n.eo.onLanguage(t,(()=>{i.load().then((e=>{n.eo.setLanguageConfiguration(t,e.conf)}))})),i.whenLoaded().then((e=>{e.completions&&l(t,e.completions)}))}function l(e,t){const i=[];const r=n.eo[e];r&&!r.modeConfiguration.completionItems||i.push(n.eo.registerCompletionItemProvider(e,function(e,t){const i=[];for(const n in t)if(!isNaN(Number(n))){const r=`${t[n].toLowerCase()}List`;if(r in e)for(const t of e[r])i.push({label:t,filterText:s.test(t)?t.toLowerCase():t,insertText:t,kind:Number(n),range:{startLineNumber:1,startColumn:1,endLineNumber:1,endColumn:1}})}return i.sort(((e,t)=>e.filterText.localeCompare(t.filterText))),{provideCompletionItems(e,t,s,n){const r=e.getWordUntilPosition(t),o={startLineNumber:t.lineNumber,startColumn:r.startColumn,endLineNumber:t.lineNumber,endColumn:r.endColumn};return{suggestions:i.map((e=>Object.assign(Object.assign({},e),{range:o})))}}}}(t,n.eo.CompletionItemKind))),r&&i.push(r.onDidChange((()=>{!function(){for(var e;i.length>0;)null===(e=i.pop())||void 0===e||e.dispose()}(),l(e,t)})))}class h{constructor(e,t,i){this._onDidChange=new n.vl,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}}const d={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},u={validate:!0}},62051:(e,t,i)=>{"use strict";i.d(t,{p:()=>l});var s=i(31308),n=i(91508),r=i(1245),o=i(32848),a=i(5662),c=i(78209);class l extends a.jG{static{this.inlineSuggestionVisible=new o.N1("inlineSuggestionVisible",!1,(0,c.kg)("inlineSuggestionVisible","Whether an inline suggestion is visible"))}static{this.inlineSuggestionHasIndentation=new o.N1("inlineSuggestionHasIndentation",!1,(0,c.kg)("inlineSuggestionHasIndentation","Whether the inline suggestion starts with whitespace"))}static{this.inlineSuggestionHasIndentationLessThanTabSize=new o.N1("inlineSuggestionHasIndentationLessThanTabSize",!0,(0,c.kg)("inlineSuggestionHasIndentationLessThanTabSize","Whether the inline suggestion starts with whitespace that is less than what would be inserted by tab"))}static{this.suppressSuggestions=new o.N1("inlineSuggestionSuppressSuggestions",void 0,(0,c.kg)("suppressSuggestions","Whether suggestions should be suppressed for the current suggestion"))}constructor(e,t){super(),this.contextKeyService=e,this.model=t,this.inlineCompletionVisible=l.inlineSuggestionVisible.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentation=l.inlineSuggestionHasIndentation.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentationLessThanTabSize=l.inlineSuggestionHasIndentationLessThanTabSize.bindTo(this.contextKeyService),this.suppressSuggestions=l.suppressSuggestions.bindTo(this.contextKeyService),this._register((0,s.fm)((e=>{const t=this.model.read(e),i=t?.state.read(e),s=!!i?.inlineCompletion&&void 0!==i?.primaryGhostText&&!i?.primaryGhostText.isEmpty();this.inlineCompletionVisible.set(s),i?.primaryGhostText&&i?.inlineCompletion&&this.suppressSuggestions.set(i.inlineCompletion.inlineCompletion.source.inlineCompletions.suppressSuggestions)}))),this._register((0,s.fm)((e=>{const t=this.model.read(e);let i=!1,s=!0;const o=t?.primaryGhostText.read(e);if(t?.selectedSuggestItem&&o&&o.parts.length>0){const{column:e,lines:a}=o.parts[0],c=a[0];if(e<=t.textModel.getLineIndentColumn(o.lineNumber)){let e=(0,n.HG)(c);-1===e&&(e=c.length-1),i=e>0;const o=t.textModel.getOptions().tabSize;s=r.A.visibleColumnFromColumn(c,e+1,o)<o}}this.inlineCompletionSuggestsIndentation.set(i),this.inlineCompletionSuggestsIndentationLessThanTabSize.set(s)})))}}},62083:(e,t,i)=>{"use strict";i.d(t,{uB:()=>T,HC:()=>d,Kb:()=>m,FX:()=>g,rY:()=>C,lO:()=>k,M$:()=>h,r4:()=>x,qw:()=>u,sm:()=>O,v_:()=>A,OV:()=>R,YT:()=>L,GE:()=>E,WA:()=>p,gP:()=>w,ou:()=>_,dG:()=>N,$M:()=>v,OB:()=>I,PK:()=>y,Iu:()=>b});var s=i(10350),n=i(79400),r=i(36677),o=i(41234),a=i(5662);class c{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new o.vl,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]),(0,a.s)((()=>{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();const i=new l(this,e,t);return this._factories.set(e,i),(0,a.s)((()=>{const t=this._factories.get(e);t&&t===i&&(this._factories.delete(e),t.dispose())}))}async getOrCreate(e){const t=this.get(e);if(t)return t;const i=this._factories.get(e);return!i||i.isResolved?null:(await i.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;const 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}}class l extends a.jG{get isResolved(){return this._isResolved}constructor(e,t,i){super(),this._registry=e,this._languageId=t,this._factory=i,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){const e=await this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}}var h,d,u,g,p,m,f=i(78209);class _{constructor(e,t,i){this.offset=e,this.type=t,this.language=i,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}class v{constructor(e,t){this.tokens=e,this.endState=t,this._tokenizationResultBrand=void 0}}class C{constructor(e,t){this.tokens=e,this.endState=t,this._encodedTokenizationResultBrand=void 0}}!function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(h||(h={})),function(e){const t=new Map;t.set(0,s.W.symbolMethod),t.set(1,s.W.symbolFunction),t.set(2,s.W.symbolConstructor),t.set(3,s.W.symbolField),t.set(4,s.W.symbolVariable),t.set(5,s.W.symbolClass),t.set(6,s.W.symbolStruct),t.set(7,s.W.symbolInterface),t.set(8,s.W.symbolModule),t.set(9,s.W.symbolProperty),t.set(10,s.W.symbolEvent),t.set(11,s.W.symbolOperator),t.set(12,s.W.symbolUnit),t.set(13,s.W.symbolValue),t.set(15,s.W.symbolEnum),t.set(14,s.W.symbolConstant),t.set(15,s.W.symbolEnum),t.set(16,s.W.symbolEnumMember),t.set(17,s.W.symbolKeyword),t.set(27,s.W.symbolSnippet),t.set(18,s.W.symbolText),t.set(19,s.W.symbolColor),t.set(20,s.W.symbolFile),t.set(21,s.W.symbolReference),t.set(22,s.W.symbolCustomColor),t.set(23,s.W.symbolFolder),t.set(24,s.W.symbolTypeParameter),t.set(25,s.W.account),t.set(26,s.W.issues),e.toIcon=function(e){let i=t.get(e);return i||(console.info("No codicon found for CompletionItemKind "+e),i=s.W.symbolProperty),i};const i=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",27),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),e.fromString=function(e,t){let s=i.get(e);return"undefined"!==typeof s||t||(s=9),s}}(d||(d={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(u||(u={}));class E{constructor(e,t,i,s){this.range=e,this.text=t,this.completionKind=i,this.isSnippetText=s}equals(e){return r.Q.lift(this.range).equalsRange(e.range)&&this.text===e.text&&this.completionKind===e.completionKind&&this.isSnippetText===e.isSnippetText}}function b(e){return e&&n.r.isUri(e.uri)&&r.Q.isIRange(e.range)&&(r.Q.isIRange(e.originSelectionRange)||r.Q.isIRange(e.targetSelectionRange))}!function(e){e[e.Automatic=0]="Automatic",e[e.PasteAs=1]="PasteAs"}(g||(g={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(p||(p={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(m||(m={}));const S={17:(0,f.kg)("Array","array"),16:(0,f.kg)("Boolean","boolean"),4:(0,f.kg)("Class","class"),13:(0,f.kg)("Constant","constant"),8:(0,f.kg)("Constructor","constructor"),9:(0,f.kg)("Enum","enumeration"),21:(0,f.kg)("EnumMember","enumeration member"),23:(0,f.kg)("Event","event"),7:(0,f.kg)("Field","field"),0:(0,f.kg)("File","file"),11:(0,f.kg)("Function","function"),10:(0,f.kg)("Interface","interface"),19:(0,f.kg)("Key","key"),5:(0,f.kg)("Method","method"),1:(0,f.kg)("Module","module"),2:(0,f.kg)("Namespace","namespace"),20:(0,f.kg)("Null","null"),15:(0,f.kg)("Number","number"),18:(0,f.kg)("Object","object"),24:(0,f.kg)("Operator","operator"),3:(0,f.kg)("Package","package"),6:(0,f.kg)("Property","property"),14:(0,f.kg)("String","string"),22:(0,f.kg)("Struct","struct"),25:(0,f.kg)("TypeParameter","type parameter"),12:(0,f.kg)("Variable","variable")};function y(e,t){return(0,f.kg)("symbolAriaLabel","{0} ({1})",e,S[t])}var w,R,L,T,x;!function(e){const t=new Map;t.set(0,s.W.symbolFile),t.set(1,s.W.symbolModule),t.set(2,s.W.symbolNamespace),t.set(3,s.W.symbolPackage),t.set(4,s.W.symbolClass),t.set(5,s.W.symbolMethod),t.set(6,s.W.symbolProperty),t.set(7,s.W.symbolField),t.set(8,s.W.symbolConstructor),t.set(9,s.W.symbolEnum),t.set(10,s.W.symbolInterface),t.set(11,s.W.symbolFunction),t.set(12,s.W.symbolVariable),t.set(13,s.W.symbolConstant),t.set(14,s.W.symbolString),t.set(15,s.W.symbolNumber),t.set(16,s.W.symbolBoolean),t.set(17,s.W.symbolArray),t.set(18,s.W.symbolObject),t.set(19,s.W.symbolKey),t.set(20,s.W.symbolNull),t.set(21,s.W.symbolEnumMember),t.set(22,s.W.symbolStruct),t.set(23,s.W.symbolEvent),t.set(24,s.W.symbolOperator),t.set(25,s.W.symbolTypeParameter),e.toIcon=function(e){let i=t.get(e);return i||(console.info("No codicon found for SymbolKind "+e),i=s.W.symbolProperty),i}}(w||(w={}));class k{static{this.Comment=new k("comment")}static{this.Imports=new k("imports")}static{this.Region=new k("region")}static fromValue(e){switch(e){case"comment":return k.Comment;case"imports":return k.Imports;case"region":return k.Region}return new k(e)}constructor(e){this.value=e}}!function(e){e[e.AIGenerated=1]="AIGenerated"}(R||(R={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(L||(L={})),function(e){e.is=function(e){return!(!e||"object"!==typeof e)&&("string"===typeof e.id&&"string"===typeof e.title)}}(T||(T={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(x||(x={}));class A{constructor(e){this.createSupport=e,this._tokenizationSupport=null}dispose(){this._tokenizationSupport&&this._tokenizationSupport.then((e=>{e&&e.dispose()}))}get tokenizationSupport(){return this._tokenizationSupport||(this._tokenizationSupport=this.createSupport()),this._tokenizationSupport}}const N=new c,I=new c;var O;!function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(O||(O={}))},62091:(e,t,i)=>{var s=i(54380),n=i(35367),r=i(80531),o=i(68097),a=i(62871),c=i(24410),l=i(34408),h=i(35725),d=l((function(e,t){var i={};if(null==e)return i;var l=!1;t=s(t,(function(t){return t=o(t,e),l||(l=t.length>1),t})),a(e,h(e),i),l&&(i=n(i,7,c));for(var d=t.length;d--;)r(i,t[d]);return i}));e.exports=d},62427:(e,t,i)=>{"use strict";i.d(t,{k:()=>y});var s,n=i(90766),r=i(64383),o=i(16980),a=i(5662),c=i(50868),l=i(31450),h=i(36677),d=i(10154),u=i(18938),g=i(37927),p=i(84226),m=i(78209),f=i(32848),_=i(99312),v=i(80538),C=i(56942),E=i(87289),b=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},S=function(e,t){return function(i,s){t(i,s,e)}};let y=class{static{s=this}static{this.ID="editor.contrib.gotodefinitionatposition"}static{this.MAX_SOURCE_PREVIEW_LINES=8}constructor(e,t,i,s){this.textModelResolverService=t,this.languageService=i,this.languageFeaturesService=s,this.toUnhook=new a.Cm,this.toUnhookForKeyboard=new a.Cm,this.currentWordAtPosition=null,this.previousPromise=null,this.editor=e,this.linkDecorations=this.editor.createDecorationsCollection();const n=new g.gi(e);this.toUnhook.add(n),this.toUnhook.add(n.onMouseMoveOrRelevantKeyDown((([e,t])=>{this.startFindDefinitionFromMouse(e,t??void 0)}))),this.toUnhook.add(n.onExecute((e=>{this.isEnabled(e)&&this.gotoDefinition(e.target.position,e.hasSideBySideModifier).catch((e=>{(0,r.dz)(e)})).finally((()=>{this.removeLinkDecorations()}))}))),this.toUnhook.add(n.onCancel((()=>{this.removeLinkDecorations(),this.currentWordAtPosition=null})))}static get(e){return e.getContribution(s.ID)}async startFindDefinitionFromCursor(e){await this.startFindDefinition(e),this.toUnhookForKeyboard.add(this.editor.onDidChangeCursorPosition((()=>{this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear()}))),this.toUnhookForKeyboard.add(this.editor.onKeyDown((e=>{e&&(this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear())})))}startFindDefinitionFromMouse(e,t){if(9===e.target.type&&this.linkDecorations.length>0)return;if(!this.editor.hasModel()||!this.isEnabled(e,t))return this.currentWordAtPosition=null,void this.removeLinkDecorations();const i=e.target.position;this.startFindDefinition(i)}async startFindDefinition(e){this.toUnhookForKeyboard.clear();const t=e?this.editor.getModel()?.getWordAtPosition(e):null;if(!t)return this.currentWordAtPosition=null,void this.removeLinkDecorations();if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===t.startColumn&&this.currentWordAtPosition.endColumn===t.endColumn&&this.currentWordAtPosition.word===t.word)return;this.currentWordAtPosition=t;const i=new c.$t(this.editor,15);let s;this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=(0,n.SS)((t=>this.findDefinition(e,t)));try{s=await this.previousPromise}catch(l){return void(0,r.dz)(l)}if(!s||!s.length||!i.validate(this.editor))return void this.removeLinkDecorations();const a=s[0].originSelectionRange?h.Q.lift(s[0].originSelectionRange):new h.Q(e.lineNumber,t.startColumn,e.lineNumber,t.endColumn);if(s.length>1){let e=a;for(const{originSelectionRange:t}of s)t&&(e=h.Q.plusRange(e,t));this.addDecoration(e,(new o.Bc).appendText(m.kg("multipleResults","Click to show {0} definitions.",s.length)))}else{const e=s[0];if(!e.uri)return;this.textModelResolverService.createModelReference(e.uri).then((t=>{if(!t.object||!t.object.textEditorModel)return void t.dispose();const{object:{textEditorModel:i}}=t,{startLineNumber:s}=e.range;if(s<1||s>i.getLineCount())return void t.dispose();const n=this.getPreviewValue(i,s,e),r=this.languageService.guessLanguageIdByFilepathOrFirstLine(i.uri);this.addDecoration(a,n?(new o.Bc).appendCodeblock(r||"",n):void 0),t.dispose()}))}}getPreviewValue(e,t,i){let n=i.range;n.endLineNumber-n.startLineNumber>=s.MAX_SOURCE_PREVIEW_LINES&&(n=this.getPreviewRangeBasedOnIndentation(e,t));return this.stripIndentationFromPreviewRange(e,t,n)}stripIndentationFromPreviewRange(e,t,i){let s=e.getLineFirstNonWhitespaceColumn(t);for(let n=t+1;n<i.endLineNumber;n++){const t=e.getLineFirstNonWhitespaceColumn(n);s=Math.min(s,t)}return e.getValueInRange(i).replace(new RegExp(`^\\s{${s-1}}`,"gm"),"").trim()}getPreviewRangeBasedOnIndentation(e,t){const i=e.getLineFirstNonWhitespaceColumn(t),n=Math.min(e.getLineCount(),t+s.MAX_SOURCE_PREVIEW_LINES);let r=t+1;for(;r<n;r++){if(i===e.getLineFirstNonWhitespaceColumn(r))break}return new h.Q(t,1,r+1,1)}addDecoration(e,t){const i={range:e,options:{description:"goto-definition-link",inlineClassName:"goto-definition-link",hoverMessage:t}};this.linkDecorations.set([i])}removeLinkDecorations(){this.linkDecorations.clear()}isEnabled(e,t){return this.editor.hasModel()&&e.isLeftClick&&e.isNoneOrSingleMouseDown&&6===e.target.type&&!(e.target.detail.injectedText?.options instanceof E.Ho)&&(e.hasTriggerModifier||!!t&&t.keyCodeIsTriggerKey)&&this.languageFeaturesService.definitionProvider.has(this.editor.getModel())}findDefinition(e,t){const i=this.editor.getModel();return i?(0,v.hE)(this.languageFeaturesService.definitionProvider,i,e,!1,t):Promise.resolve(null)}gotoDefinition(e,t){return this.editor.setPosition(e),this.editor.invokeWithinContext((e=>{const i=!t&&this.editor.getOption(89)&&!this.isInPeekEditor(e);return new _.mR({openToSide:t,openInPeek:i,muteMessage:!0},{title:{value:"",original:""},id:"",precondition:void 0}).run(e)}))}isInPeekEditor(e){const t=e.get(f.fN);return p.x2.inPeekEditor.getValue(t)}dispose(){this.toUnhook.dispose(),this.toUnhookForKeyboard.dispose()}};y=s=b([S(1,u.ITextModelService),S(2,d.L),S(3,C.ILanguageFeaturesService)],y),(0,l.HW)(y.ID,y,2)},62469:()=>{},62890:(e,t,i)=>{"use strict";i.d(t,{$:()=>f});var s=i(8597),n=i(83750),r=i(72962),o=i(68214),a=i(25154),c=i(42904),l=i(20370),h=i(47661),d=i(41234),u=i(16980),g=i(5662),p=i(25689),m=i(48196);h.Q1.white.toString(),h.Q1.white.toString();class f extends g.jG{get onDidClick(){return this._onDidClick.event}constructor(e,t){super(),this._label="",this._onDidClick=this._register(new d.vl),this._onDidEscape=this._register(new d.vl),this.options=t,this._element=document.createElement("a"),this._element.classList.add("monaco-button"),this._element.tabIndex=0,this._element.setAttribute("role","button"),this._element.classList.toggle("secondary",!!t.secondary);const i=t.secondary?t.buttonSecondaryBackground:t.buttonBackground,n=t.secondary?t.buttonSecondaryForeground:t.buttonForeground;this._element.style.color=n||"",this._element.style.backgroundColor=i||"",t.supportShortLabel&&(this._labelShortElement=document.createElement("div"),this._labelShortElement.classList.add("monaco-button-label-short"),this._element.appendChild(this._labelShortElement),this._labelElement=document.createElement("div"),this._labelElement.classList.add("monaco-button-label"),this._element.appendChild(this._labelElement),this._element.classList.add("monaco-text-button-with-short-label")),"string"===typeof t.title&&this.setTitle(t.title),"string"===typeof t.ariaLabel&&this._element.setAttribute("aria-label",t.ariaLabel),e.appendChild(this._element),this._register(a.q.addTarget(this._element)),[s.Bx.CLICK,a.B.Tap].forEach((e=>{this._register((0,s.ko)(this._element,e,(e=>{this.enabled?this._onDidClick.fire(e):s.fs.stop(e)})))})),this._register((0,s.ko)(this._element,s.Bx.KEY_DOWN,(e=>{const t=new r.Z(e);let i=!1;this.enabled&&(t.equals(3)||t.equals(10))?(this._onDidClick.fire(e),i=!0):t.equals(9)&&(this._onDidEscape.fire(e),this._element.blur(),i=!0),i&&s.fs.stop(t,!0)}))),this._register((0,s.ko)(this._element,s.Bx.MOUSE_OVER,(e=>{this._element.classList.contains("disabled")||this.updateBackground(!0)}))),this._register((0,s.ko)(this._element,s.Bx.MOUSE_OUT,(e=>{this.updateBackground(!1)}))),this.focusTracker=this._register((0,s.w5)(this._element)),this._register(this.focusTracker.onDidFocus((()=>{this.enabled&&this.updateBackground(!0)}))),this._register(this.focusTracker.onDidBlur((()=>{this.enabled&&this.updateBackground(!1)})))}dispose(){super.dispose(),this._element.remove()}getContentElements(e){const t=[];for(let i of(0,l.n)(e))if("string"===typeof i){if(i=i.trim(),""===i)continue;const e=document.createElement("span");e.textContent=i,t.push(e)}else t.push(i);return t}updateBackground(e){let t;t=this.options.secondary?e?this.options.buttonSecondaryHoverBackground:this.options.buttonSecondaryBackground:e?this.options.buttonHoverBackground:this.options.buttonBackground,t&&(this._element.style.backgroundColor=t)}get element(){return this._element}set label(e){if(this._label===e)return;if((0,u.VS)(this._label)&&(0,u.VS)(e)&&(0,u.nK)(this._label,e))return;this._element.classList.add("monaco-text-button");const t=this.options.supportShortLabel?this._labelElement:this._element;if((0,u.VS)(e)){const i=(0,o.Gc)(e,{inline:!0});i.dispose();const r=i.element.querySelector("p")?.innerHTML;if(r){const e=(0,n.aj)(r,{ADD_TAGS:["b","i","u","code","span"],ALLOWED_ATTR:["class"],RETURN_TRUSTED_TYPE:!0});t.innerHTML=e}else(0,s.Ln)(t)}else this.options.supportIcons?(0,s.Ln)(t,...this.getContentElements(e)):t.textContent=e;let i="";"string"===typeof this.options.title?i=this.options.title:this.options.title&&(i=(0,o.R9)(e)),this.setTitle(i),"string"===typeof this.options.ariaLabel?this._element.setAttribute("aria-label",this.options.ariaLabel):this.options.ariaLabel&&this._element.setAttribute("aria-label",i),this._label=e}get label(){return this._label}set icon(e){this._element.classList.add(...p.L.asClassNameArray(e))}set enabled(e){e?(this._element.classList.remove("disabled"),this._element.setAttribute("aria-disabled",String(!1)),this._element.tabIndex=0):(this._element.classList.add("disabled"),this._element.setAttribute("aria-disabled",String(!0)))}get enabled(){return!this._element.classList.contains("disabled")}setTitle(e){this._hover||""===e?this._hover&&this._hover.update(e):this._hover=this._register((0,m.i)().setupManagedHover(this.options.hoverDelegate??(0,c.nZ)("mouse"),this._element,e))}}},63010:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e,i){return null!=e&&t.call(e,i)}},63126:(e,t,i)=>{"use strict";i.d(t,{G:()=>l});var s=i(60712),n=i(59284),r=i(40569),o=i(53302);const a="--ydb-tree-view-level",c=(0,o.o)("ydb-tree-view");function l({children:e,name:t,title:i,icon:o,collapsed:l=!0,active:h=!1,onClick:d,onArrowClick:u,onActionsOpenToggle:g,hasArrow:p=!1,actions:m,additionalNodeElements:f,level:_}){const v=n.useCallback((e=>{if(!d)return;e.nativeEvent.composedPath().some((e=>e instanceof HTMLElement&&("BUTTON"===e.nodeName&&!e.hasAttribute("disabled")||e.hasAttribute("tabindex")&&e.tabIndex>-1)))||d()}),[d]),C=u||d;let E="tree-view_arrow",b="tree-view_children";return l&&(E+=" tree-view_arrow-collapsed",b+=" tree-view_children-collapsed"),(0,s.jsx)("div",{className:c(),style:{[a]:_},children:(0,s.jsxs)("div",{className:"tree-view",children:[(0,s.jsxs)("div",{className:`tree-view_item ${c("item",{active:h})}`,onClick:v,children:[(0,s.jsx)("button",{type:"button",className:`${E} ${c("arrow",{collapsed:l,hidden:!p})}`,disabled:!C,onClick:C}),(0,s.jsxs)("div",{className:c("content"),children:[o&&(0,s.jsx)("div",{className:c("icon"),children:o}),(0,s.jsx)("div",{className:c("text"),title:i,children:t}),m&&m.length>0&&(0,s.jsxs)("div",{className:c("actions"),children:[f,(0,s.jsx)(r.r,{onOpenToggle:g,defaultSwitcherProps:{view:"flat-secondary",size:"s",pin:"brick-brick"},items:m})]})]})]}),(0,s.jsx)("div",{className:`${b} ${c("container",{collapsed:l})}`,children:l?null:e})]})})}},63346:(e,t,i)=>{"use strict";i.d(t,{h:()=>o});var s=i(38566),n=i(17469),r=i(27760);function o(e,t,i,o){t.tokenization.forceTokenization(i.startLineNumber);const a=t.getLanguageIdAtPosition(i.startLineNumber,i.startColumn),c=o.getLanguageConfiguration(a);if(!c)return null;const l=new r.V(t,o).getProcessedTokenContextAroundRange(i),h=l.previousLineProcessedTokens.getLineContent(),d=l.beforeRangeProcessedTokens.getLineContent(),u=l.afterRangeProcessedTokens.getLineContent(),g=c.onEnter(e,h,d,u);if(!g)return null;const p=g.indentAction;let m=g.appendText;const f=g.removeText||0;m?p===s.l.Indent&&(m="\t"+m):m=p===s.l.Indent||p===s.l.IndentOutdent?"\t":"";let _=(0,n.Cw)(t,i.startLineNumber,i.startColumn);return f&&(_=_.substring(0,_.length-f)),{indentAction:p,appendText:m,removeText:f,indentation:_}}},63591:(e,t,i)=>{"use strict";var s;i.d(t,{_$:()=>s,_Y:()=>n,u1:()=>r}),function(e){e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=function(t){return t[e.DI_DEPENDENCIES]||[]}}(s||(s={}));const n=r("instantiationService");function r(e){if(s.serviceIds.has(e))return s.serviceIds.get(e);const t=function(e,i,n){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");!function(e,t,i){t[s.DI_TARGET]===t?t[s.DI_DEPENDENCIES].push({id:e,index:i}):(t[s.DI_DEPENDENCIES]=[{id:e,index:i}],t[s.DI_TARGET]=t)}(t,e,n)};return t.toString=()=>e,s.serviceIds.set(e,t),t}},63819:(e,t,i)=>{var s=i(537),n=i(52964),r=i(19305),o=s?s.isConcatSpreadable:void 0;e.exports=function(e){return r(e)||n(e)||!!(o&&e&&e[o])}},63867:(e,t,i)=>{"use strict";var s=i(8995),n=i(31450),r=i(60002),o=i(72466),a=i(55433),c=i(90208),l=i(78209);(0,n.HW)(a.Rj.ID,a.Rj,0),(0,o.x)(c.L9),(0,n.E_)(new class extends n.DX{constructor(){super({id:a.qs,precondition:a.lr,kbOpts:{weight:100,primary:2137}})}runEditorCommand(e,t){return a.Rj.get(t)?.changePasteType()}}),(0,n.E_)(new class extends n.DX{constructor(){super({id:"editor.hidePasteWidget",precondition:a.lr,kbOpts:{weight:100,primary:9}})}runEditorCommand(e,t){a.Rj.get(t)?.clearWidgets()}}),(0,n.Fl)(class e extends n.ks{static{this.argsSchema={type:"object",properties:{kind:{type:"string",description:l.kg("pasteAs.kind","The kind of the paste edit to try applying. If not provided or there are multiple edits for this kind, the editor will show a picker.")}}}}constructor(){super({id:"editor.action.pasteAs",label:l.kg("pasteAs","Paste As..."),alias:"Paste As...",precondition:r.R.writable,metadata:{description:"Paste as",args:[{name:"args",schema:e.argsSchema}]}})}run(e,t,i){let n="string"===typeof i?.kind?i.kind:void 0;return!n&&i&&(n="string"===typeof i.id?i.id:void 0),a.Rj.get(t)?.pasteAs(n?new s.k(n):void 0)}}),(0,n.Fl)(class extends n.ks{constructor(){super({id:"editor.action.pasteAsText",label:l.kg("pasteAsText","Paste as Text"),alias:"Paste as Text",precondition:r.R.writable})}run(e,t){return a.Rj.get(t)?.pasteAs({providerId:c.LR.id})}})},64066:e=>{e.exports=function(){function e(e,t){let i=e.$value;return"function"===typeof t.customNumberFormatter&&(i=t.customNumberFormatter(e.$value,e.$type)),i}return e.isScalar=!0,e}},64215:(e,t,i)=>{"use strict";var s=i(90766),n=i(64383),r=i(5662),o=i(55190),a=i(31450),c=i(87908),l=i(60002),h=i(18447),d=i(631),u=i(79400),g=i(23750),p=i(50091),m=i(56942);class f{constructor(){this.lenses=[],this._disposables=new r.Cm}dispose(){this._disposables.dispose()}get isDisposed(){return this._disposables.isDisposed}add(e,t){this._disposables.add(e);for(const i of e.lenses)this.lenses.push({symbol:i,provider:t})}}async function _(e,t,i){const s=e.ordered(t),r=new Map,o=new f,a=s.map((async(e,s)=>{r.set(e,s);try{const s=await Promise.resolve(e.provideCodeLenses(t,i));s&&o.add(s,e)}catch(a){(0,n.M_)(a)}}));return await Promise.all(a),o.lenses=o.lenses.sort(((e,t)=>e.symbol.range.startLineNumber<t.symbol.range.startLineNumber?-1:e.symbol.range.startLineNumber>t.symbol.range.startLineNumber?1:r.get(e.provider)<r.get(t.provider)?-1:r.get(e.provider)>r.get(t.provider)?1:e.symbol.range.startColumn<t.symbol.range.startColumn?-1:e.symbol.range.startColumn>t.symbol.range.startColumn?1:0)),o}p.w.registerCommand("_executeCodeLensProvider",(function(e,...t){let[i,s]=t;(0,d.j)(u.r.isUri(i)),(0,d.j)("number"===typeof s||!s);const{codeLensProvider:o}=e.get(m.ILanguageFeaturesService),a=e.get(g.IModelService).getModel(i);if(!a)throw(0,n.Qg)();const c=[],l=new r.Cm;return _(o,a,h.XO.None).then((e=>{l.add(e);const t=[];for(const i of e.lenses)void 0===s||null===s||Boolean(i.symbol.command)?c.push(i.symbol):s-- >0&&i.provider.resolveCodeLens&&t.push(Promise.resolve(i.provider.resolveCodeLens(a,i.symbol,h.XO.None)).then((e=>c.push(e||i.symbol))));return Promise.all(t)})).then((()=>c)).finally((()=>{setTimeout((()=>l.dispose()),100)}))}));var v=i(41234),C=i(74320),E=i(36677),b=i(14718),S=i(63591),y=i(9711),w=i(25893),R=i(8597),L=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},T=function(e,t){return function(i,s){t(i,s,e)}};const x=(0,S.u1)("ICodeLensCache");class k{constructor(e,t){this.lineCount=e,this.data=t}}let A=class{constructor(e){this._fakeProvider=new class{provideCodeLenses(){throw new Error("not supported")}},this._cache=new C.qK(20,.75);(0,R.U3)(w.G,(()=>e.remove("codelens/cache",1)));const t="codelens/cache2",i=e.get(t,1,"{}");this._deserialize(i);const s=v.Jh.filter(e.onWillSaveState,(e=>e.reason===y.LP.SHUTDOWN));v.Jh.once(s)((i=>{e.store(t,this._serialize(),1,1)}))}put(e,t){const i=t.lenses.map((e=>({range:e.symbol.range,command:e.symbol.command&&{id:"",title:e.symbol.command?.title}}))),s=new f;s.add({lenses:i,dispose:()=>{}},this._fakeProvider);const n=new k(e.getLineCount(),s);this._cache.set(e.uri.toString(),n)}get(e){const t=this._cache.get(e.uri.toString());return t&&t.lineCount===e.getLineCount()?t.data:void 0}delete(e){this._cache.delete(e.uri.toString())}_serialize(){const e=Object.create(null);for(const[t,i]of this._cache){const s=new Set;for(const e of i.data.lenses)s.add(e.symbol.range.startLineNumber);e[t]={lineCount:i.lineCount,lines:[...s.values()]}}return JSON.stringify(e)}_deserialize(e){try{const t=JSON.parse(e);for(const e in t){const i=t[e],s=[];for(const e of i.lines)s.push({range:new E.Q(e,1,e,11)});const n=new f;n.add({lenses:s,dispose(){}},this._fakeProvider),this._cache.set(e,new k(i.lineCount,n))}}catch{}}};A=L([T(0,y.CS)],A),(0,b.v)(x,A,1);var N=i(20370),I=i(87289);class O{constructor(e,t,i){this.afterColumn=1073741824,this.afterLineNumber=e,this.heightInPx=t,this._onHeight=i,this.suppressMouseDown=!0,this.domNode=document.createElement("div")}onComputedHeight(e){void 0===this._lastHeight?this._lastHeight=e:this._lastHeight!==e&&(this._lastHeight=e,this._onHeight())}isVisible(){return 0!==this._lastHeight&&this.domNode.hasAttribute("monaco-visible-view-zone")}}class D{static{this._idPool=0}constructor(e,t){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._isEmpty=!0,this._editor=e,this._id="codelens.widget-"+D._idPool++,this.updatePosition(t),this._domNode=document.createElement("span"),this._domNode.className="codelens-decoration"}withCommands(e,t){this._commands.clear();const i=[];let s=!1;for(let n=0;n<e.length;n++){const t=e[n];if(t&&(s=!0,t.command)){const s=(0,N.n)(t.command.title.trim());if(t.command.id){const e="c"+D._idPool++;i.push(R.$("a",{id:e,title:t.command.tooltip,role:"button"},...s)),this._commands.set(e,t.command)}else i.push(R.$("span",{title:t.command.tooltip},...s));n+1<e.length&&i.push(R.$("span",void 0,"\xa0|\xa0"))}}s?(R.Ln(this._domNode,...i),this._isEmpty&&t&&this._domNode.classList.add("fadein"),this._isEmpty=!1):R.Ln(this._domNode,R.$("span",void 0,"no commands"))}getCommand(e){return e.parentElement===this._domNode?this._commands.get(e.id):void 0}getId(){return this._id}getDomNode(){return this._domNode}updatePosition(e){const t=this._editor.getModel().getLineFirstNonWhitespaceColumn(e);this._widgetPosition={position:{lineNumber:e,column:t},preference:[1]}}getPosition(){return this._widgetPosition||null}}class M{constructor(){this._removeDecorations=[],this._addDecorations=[],this._addDecorationsCallbacks=[]}addDecoration(e,t){this._addDecorations.push(e),this._addDecorationsCallbacks.push(t)}removeDecoration(e){this._removeDecorations.push(e)}commit(e){const t=e.deltaDecorations(this._removeDecorations,this._addDecorations);for(let i=0,s=t.length;i<s;i++)this._addDecorationsCallbacks[i](t[i])}}const P=I.kI.register({collapseOnReplaceEdit:!0,description:"codelens"});class F{constructor(e,t,i,s,n,r){let o;this._isDisposed=!1,this._editor=t,this._data=e,this._decorationIds=[];const a=[];this._data.forEach(((e,t)=>{e.symbol.command&&a.push(e.symbol),i.addDecoration({range:e.symbol.range,options:P},(e=>this._decorationIds[t]=e)),o=o?E.Q.plusRange(o,e.symbol.range):E.Q.lift(e.symbol.range)})),this._viewZone=new O(o.startLineNumber-1,n,r),this._viewZoneId=s.addZone(this._viewZone),a.length>0&&(this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(a,!1))}_createContentWidgetIfNecessary(){this._contentWidget?this._editor.layoutContentWidget(this._contentWidget):(this._contentWidget=new D(this._editor,this._viewZone.afterLineNumber+1),this._editor.addContentWidget(this._contentWidget))}dispose(e,t){this._decorationIds.forEach(e.removeDecoration,e),this._decorationIds=[],t?.removeZone(this._viewZoneId),this._contentWidget&&(this._editor.removeContentWidget(this._contentWidget),this._contentWidget=void 0),this._isDisposed=!0}isDisposed(){return this._isDisposed}isValid(){return this._decorationIds.some(((e,t)=>{const i=this._editor.getModel().getDecorationRange(e),s=this._data[t].symbol;return!(!i||E.Q.isEmpty(s.range)!==i.isEmpty())}))}updateCodeLensSymbols(e,t){this._decorationIds.forEach(t.removeDecoration,t),this._decorationIds=[],this._data=e,this._data.forEach(((e,i)=>{t.addDecoration({range:e.symbol.range,options:P},(e=>this._decorationIds[i]=e))}))}updateHeight(e,t){this._viewZone.heightInPx=e,t.layoutZone(this._viewZoneId),this._contentWidget&&this._editor.layoutContentWidget(this._contentWidget)}computeIfNecessary(e){if(!this._viewZone.isVisible())return null;for(let t=0;t<this._decorationIds.length;t++){const i=e.getDecorationRange(this._decorationIds[t]);i&&(this._data[t].symbol.range=i)}return this._data}updateCommands(e){this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(e,!0);for(let t=0;t<this._data.length;t++){const i=e[t];if(i){const{symbol:e}=this._data[t];e.command=i.command||e.command}}}getCommand(e){return this._contentWidget?.getCommand(e)}getLineNumber(){const e=this._editor.getModel().getDecorationRange(this._decorationIds[0]);return e?e.startLineNumber:-1}update(e){if(this.isValid()){const t=this._editor.getModel().getDecorationRange(this._decorationIds[0]);t&&(this._viewZone.afterLineNumber=t.startLineNumber-1,e.layoutZone(this._viewZoneId),this._contentWidget&&(this._contentWidget.updatePosition(t.startLineNumber),this._editor.layoutContentWidget(this._contentWidget)))}}}var U=i(78209),H=i(58591),B=i(51467),W=i(32500),V=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},z=function(e,t){return function(i,s){t(i,s,e)}};let G=class{static{this.ID="css.editor.codeLens"}constructor(e,t,i,n,o,a){this._editor=e,this._languageFeaturesService=t,this._commandService=n,this._notificationService=o,this._codeLensCache=a,this._disposables=new r.Cm,this._localToDispose=new r.Cm,this._lenses=[],this._oldCodeLensModels=new r.Cm,this._provideCodeLensDebounce=i.for(t.codeLensProvider,"CodeLensProvide",{min:250}),this._resolveCodeLensesDebounce=i.for(t.codeLensProvider,"CodeLensResolve",{min:250,salt:"resolve"}),this._resolveCodeLensesScheduler=new s.uC((()=>this._resolveCodeLensesInViewport()),this._resolveCodeLensesDebounce.default()),this._disposables.add(this._editor.onDidChangeModel((()=>this._onModelChange()))),this._disposables.add(this._editor.onDidChangeModelLanguage((()=>this._onModelChange()))),this._disposables.add(this._editor.onDidChangeConfiguration((e=>{(e.hasChanged(50)||e.hasChanged(19)||e.hasChanged(18))&&this._updateLensStyle(),e.hasChanged(17)&&this._onModelChange()}))),this._disposables.add(t.codeLensProvider.onDidChange(this._onModelChange,this)),this._onModelChange(),this._updateLensStyle()}dispose(){this._localDispose(),this._disposables.dispose(),this._oldCodeLensModels.dispose(),this._currentCodeLensModel?.dispose()}_getLayoutInfo(){const e=Math.max(1.3,this._editor.getOption(67)/this._editor.getOption(52));let t=this._editor.getOption(19);return(!t||t<5)&&(t=.9*this._editor.getOption(52)|0),{fontSize:t,codeLensHeight:t*e|0}}_updateLensStyle(){const{codeLensHeight:e,fontSize:t}=this._getLayoutInfo(),i=this._editor.getOption(18),s=this._editor.getOption(50),{style:n}=this._editor.getContainerDomNode();n.setProperty("--vscode-editorCodeLens-lineHeight",`${e}px`),n.setProperty("--vscode-editorCodeLens-fontSize",`${t}px`),n.setProperty("--vscode-editorCodeLens-fontFeatureSettings",s.fontFeatureSettings),i&&(n.setProperty("--vscode-editorCodeLens-fontFamily",i),n.setProperty("--vscode-editorCodeLens-fontFamilyDefault",c.jU.fontFamily)),this._editor.changeViewZones((t=>{for(const i of this._lenses)i.updateHeight(e,t)}))}_localDispose(){this._getCodeLensModelPromise?.cancel(),this._getCodeLensModelPromise=void 0,this._resolveCodeLensesPromise?.cancel(),this._resolveCodeLensesPromise=void 0,this._localToDispose.clear(),this._oldCodeLensModels.clear(),this._currentCodeLensModel?.dispose()}_onModelChange(){this._localDispose();const e=this._editor.getModel();if(!e)return;if(!this._editor.getOption(17)||e.isTooLargeForTokenization())return;const t=this._codeLensCache.get(e);if(t&&this._renderCodeLensSymbols(t),!this._languageFeaturesService.codeLensProvider.has(e))return void(t&&(0,s.EQ)((()=>{const i=this._codeLensCache.get(e);t===i&&(this._codeLensCache.delete(e),this._onModelChange())}),3e4,this._localToDispose));for(const s of this._languageFeaturesService.codeLensProvider.all(e))if("function"===typeof s.onDidChange){const e=s.onDidChange((()=>i.schedule()));this._localToDispose.add(e)}const i=new s.uC((()=>{const t=Date.now();this._getCodeLensModelPromise?.cancel(),this._getCodeLensModelPromise=(0,s.SS)((t=>_(this._languageFeaturesService.codeLensProvider,e,t))),this._getCodeLensModelPromise.then((s=>{this._currentCodeLensModel&&this._oldCodeLensModels.add(this._currentCodeLensModel),this._currentCodeLensModel=s,this._codeLensCache.put(e,s);const n=this._provideCodeLensDebounce.update(e,Date.now()-t);i.delay=n,this._renderCodeLensSymbols(s),this._resolveCodeLensesInViewportSoon()}),n.dz)}),this._provideCodeLensDebounce.get(e));this._localToDispose.add(i),this._localToDispose.add((0,r.s)((()=>this._resolveCodeLensesScheduler.cancel()))),this._localToDispose.add(this._editor.onDidChangeModelContent((()=>{this._editor.changeDecorations((e=>{this._editor.changeViewZones((t=>{const i=[];let s=-1;this._lenses.forEach((e=>{e.isValid()&&s!==e.getLineNumber()?(e.update(t),s=e.getLineNumber()):i.push(e)}));const n=new M;i.forEach((e=>{e.dispose(n,t),this._lenses.splice(this._lenses.indexOf(e),1)})),n.commit(e)}))})),i.schedule(),this._resolveCodeLensesScheduler.cancel(),this._resolveCodeLensesPromise?.cancel(),this._resolveCodeLensesPromise=void 0}))),this._localToDispose.add(this._editor.onDidFocusEditorText((()=>{i.schedule()}))),this._localToDispose.add(this._editor.onDidBlurEditorText((()=>{i.cancel()}))),this._localToDispose.add(this._editor.onDidScrollChange((e=>{e.scrollTopChanged&&this._lenses.length>0&&this._resolveCodeLensesInViewportSoon()}))),this._localToDispose.add(this._editor.onDidLayoutChange((()=>{this._resolveCodeLensesInViewportSoon()}))),this._localToDispose.add((0,r.s)((()=>{if(this._editor.getModel()){const e=o.D.capture(this._editor);this._editor.changeDecorations((e=>{this._editor.changeViewZones((t=>{this._disposeAllLenses(e,t)}))})),e.restore(this._editor)}else this._disposeAllLenses(void 0,void 0)}))),this._localToDispose.add(this._editor.onMouseDown((e=>{if(9!==e.target.type)return;let t=e.target.element;if("SPAN"===t?.tagName&&(t=t.parentElement),"A"===t?.tagName)for(const i of this._lenses){const e=i.getCommand(t);if(e){this._commandService.executeCommand(e.id,...e.arguments||[]).catch((e=>this._notificationService.error(e)));break}}}))),i.schedule()}_disposeAllLenses(e,t){const i=new M;for(const s of this._lenses)s.dispose(i,t);e&&i.commit(e),this._lenses.length=0}_renderCodeLensSymbols(e){if(!this._editor.hasModel())return;const t=this._editor.getModel().getLineCount(),i=[];let s;for(const o of e.lenses){const e=o.symbol.range.startLineNumber;e<1||e>t||(s&&s[s.length-1].symbol.range.startLineNumber===e?s.push(o):(s=[o],i.push(s)))}if(!i.length&&!this._lenses.length)return;const n=o.D.capture(this._editor),r=this._getLayoutInfo();this._editor.changeDecorations((e=>{this._editor.changeViewZones((t=>{const s=new M;let n=0,o=0;for(;o<i.length&&n<this._lenses.length;){const e=i[o][0].symbol.range.startLineNumber,a=this._lenses[n].getLineNumber();a<e?(this._lenses[n].dispose(s,t),this._lenses.splice(n,1)):a===e?(this._lenses[n].updateCodeLensSymbols(i[o],s),o++,n++):(this._lenses.splice(n,0,new F(i[o],this._editor,s,t,r.codeLensHeight,(()=>this._resolveCodeLensesInViewportSoon()))),n++,o++)}for(;n<this._lenses.length;)this._lenses[n].dispose(s,t),this._lenses.splice(n,1);for(;o<i.length;)this._lenses.push(new F(i[o],this._editor,s,t,r.codeLensHeight,(()=>this._resolveCodeLensesInViewportSoon()))),o++;s.commit(e)}))})),n.restore(this._editor)}_resolveCodeLensesInViewportSoon(){this._editor.getModel()&&this._resolveCodeLensesScheduler.schedule()}_resolveCodeLensesInViewport(){this._resolveCodeLensesPromise?.cancel(),this._resolveCodeLensesPromise=void 0;const e=this._editor.getModel();if(!e)return;const t=[],i=[];if(this._lenses.forEach((s=>{const n=s.computeIfNecessary(e);n&&(t.push(n),i.push(s))})),0===t.length)return;const r=Date.now(),o=(0,s.SS)((s=>{const r=t.map(((t,r)=>{const o=new Array(t.length),a=t.map(((t,i)=>t.symbol.command||"function"!==typeof t.provider.resolveCodeLens?(o[i]=t.symbol,Promise.resolve(void 0)):Promise.resolve(t.provider.resolveCodeLens(e,t.symbol,s)).then((e=>{o[i]=e}),n.M_)));return Promise.all(a).then((()=>{s.isCancellationRequested||i[r].isDisposed()||i[r].updateCommands(o)}))}));return Promise.all(r)}));this._resolveCodeLensesPromise=o,this._resolveCodeLensesPromise.then((()=>{const t=this._resolveCodeLensesDebounce.update(e,Date.now()-r);this._resolveCodeLensesScheduler.delay=t,this._currentCodeLensModel&&this._codeLensCache.put(e,this._currentCodeLensModel),this._oldCodeLensModels.clear(),o===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)}),(e=>{(0,n.dz)(e),o===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)}))}async getModel(){return await this._getCodeLensModelPromise,await this._resolveCodeLensesPromise,this._currentCodeLensModel?.isDisposed?void 0:this._currentCodeLensModel}};G=V([z(1,m.ILanguageFeaturesService),z(2,W.ILanguageFeatureDebounceService),z(3,p.d),z(4,H.Ot),z(5,x)],G),(0,a.HW)(G.ID,G,1),(0,a.Fl)(class extends a.ks{constructor(){super({id:"codelens.showLensesInCurrentLine",precondition:l.R.hasCodeLensProvider,label:(0,U.kg)("showLensOnLine","Show CodeLens Commands For Current Line"),alias:"Show CodeLens Commands For Current Line"})}async run(e,t){if(!t.hasModel())return;const i=e.get(B.GK),s=e.get(p.d),n=e.get(H.Ot),r=t.getSelection().positionLineNumber,o=t.getContribution(G.ID);if(!o)return;const a=await o.getModel();if(!a)return;const c=[];for(const u of a.lenses)u.symbol.command&&u.symbol.range.startLineNumber===r&&c.push({label:u.symbol.command.title,command:u.symbol.command});if(0===c.length)return;const l=await i.pick(c,{canPickMany:!1,placeHolder:(0,U.kg)("placeHolder","Select a command")});if(!l)return;let h=l.command;if(a.isDisposed){const e=await o.getModel(),t=e?.lenses.find((e=>e.symbol.range.startLineNumber===r&&e.symbol.command?.title===h.title));if(!t||!t.symbol.command)return;h=t.symbol.command}try{await s.executeCommand(h.id,...h.arguments||[])}catch(d){n.error(d)}}})},64256:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"perl",extensions:[".pl",".pm"],aliases:["Perl","pl"],loader:()=>i.e(3158).then(i.bind(i,23158))})},64280:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14M6.44 4.54c.43-.354.994-.565 1.56-.565 1.217 0 2.34.82 2.34 2.14 0 .377-.079.745-.298 1.1-.208.339-.513.614-.875.867-.217.153-.326.257-.379.328-.038.052-.038.07-.038.089a.75.75 0 0 1-1.5 0c0-.794.544-1.286 1.056-1.645.28-.196.402-.332.46-.425a.54.54 0 0 0 .073-.313c0-.3-.243-.641-.839-.641a1 1 0 0 0-.608.224c-.167.137-.231.286-.231.417a.75.75 0 0 1-1.5 0c0-.673.345-1.22.78-1.577M9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0",clipRule:"evenodd"}))},64317:(e,t,i)=>{"use strict";i.d(t,{Pm:()=>I,bo:()=>M});var s,n=i(8597),r=i(5646),o=i(47625),a=i(36921),c=i(25890),l=i(90766),h=i(10350),d=i(5662),u=i(31308),g=i(87958),p=i(98067),m=i(25689),f=i(83069),_=i(62083),v=i(78244),C=i(78209),E=i(57629),b=i(65644),S=i(27195),y=i(50091),w=i(32848),R=i(47508),L=i(63591),T=i(98031),x=i(90651),k=i(61394),A=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},N=function(e,t){return function(i,s){t(i,s,e)}};let I=class extends d.jG{constructor(e,t,i){super(),this.editor=e,this.model=t,this.instantiationService=i,this.alwaysShowToolbar=(0,u.y0)(this,this.editor.onDidChangeConfiguration,(()=>"always"===this.editor.getOption(62).showToolbar)),this.sessionPosition=void 0,this.position=(0,u.un)(this,(e=>{const t=this.model.read(e)?.primaryGhostText.read(e);if(!this.alwaysShowToolbar.read(e)||!t||0===t.parts.length)return this.sessionPosition=void 0,null;const i=t.parts[0].column;this.sessionPosition&&this.sessionPosition.lineNumber!==t.lineNumber&&(this.sessionPosition=void 0);const s=new f.y(t.lineNumber,Math.min(i,this.sessionPosition?.column??Number.MAX_SAFE_INTEGER));return this.sessionPosition=s,s})),this._register((0,u.yC)(((t,i)=>{const s=this.model.read(t);if(!s||!this.alwaysShowToolbar.read(t))return;const n=(0,g.rm)(((t,i)=>{const n=i.add(this.instantiationService.createInstance(M,this.editor,!0,this.position,s.selectedInlineCompletionIndex,s.inlineCompletionsCount,s.activeCommands));return e.addContentWidget(n),i.add((0,d.s)((()=>e.removeContentWidget(n)))),i.add((0,u.fm)((e=>{this.position.read(e)&&s.lastTriggerKind.read(e)!==_.qw.Explicit&&s.triggerExplicitly()}))),n})),r=(0,u.ZX)(this,((e,t)=>!!this.position.read(e)||!!t));i.add((0,u.fm)((e=>{r.read(e)&&n.read(e)})))})))}};I=A([N(2,L._Y)],I);const O=(0,k.pU)("inline-suggestion-hints-next",h.W.chevronRight,(0,C.kg)("parameterHintsNextIcon","Icon for show next parameter hint.")),D=(0,k.pU)("inline-suggestion-hints-previous",h.W.chevronLeft,(0,C.kg)("parameterHintsPreviousIcon","Icon for show previous parameter hint."));let M=class extends d.jG{static{s=this}static{this._dropDownVisible=!1}static get dropDownVisible(){return this._dropDownVisible}static{this.id=0}createCommandAction(e,t,i){const s=new a.rc(e,t,i,!0,(()=>this._commandService.executeCommand(e))),n=this.keybindingService.lookupKeybinding(e,this._contextKeyService);let r=t;return n&&(r=(0,C.kg)({key:"content",comment:["A label","A keybinding"]},"{0} ({1})",t,n.getLabel())),s.tooltip=r,s}constructor(e,t,i,r,o,c,h,d,g,p,f){super(),this.editor=e,this.withBorder=t,this._position=i,this._currentSuggestionIdx=r,this._suggestionCount=o,this._extraCommands=c,this._commandService=h,this.keybindingService=g,this._contextKeyService=p,this._menuService=f,this.id="InlineSuggestionHintsContentWidget"+s.id++,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.nodes=(0,n.h)("div.inlineSuggestionsHints",{className:this.withBorder?".withBorder":""},[(0,n.h)("div@toolBar")]),this.previousAction=this.createCommandAction(v.Vl,(0,C.kg)("previous","Previous"),m.L.asClassName(D)),this.availableSuggestionCountAction=new a.rc("inlineSuggestionHints.availableSuggestionCount","",void 0,!1),this.nextAction=this.createCommandAction(v.PA,(0,C.kg)("next","Next"),m.L.asClassName(O)),this.inlineCompletionsActionsMenus=this._register(this._menuService.createMenu(S.D8.InlineCompletionsActions,this._contextKeyService)),this.clearAvailableSuggestionCountLabelDebounced=this._register(new l.uC((()=>{this.availableSuggestionCountAction.label=""}),100)),this.disableButtonsDebounced=this._register(new l.uC((()=>{this.previousAction.enabled=this.nextAction.enabled=!1}),100)),this.toolBar=this._register(d.createInstance(U,this.nodes.toolBar,S.D8.InlineSuggestionToolbar,{menuOptions:{renderShortTitle:!0},toolbarOptions:{primaryGroup:e=>e.startsWith("primary")},actionViewItemProvider:(e,t)=>{if(e instanceof S.Xe)return d.createInstance(F,e,void 0);if(e===this.availableSuggestionCountAction){const t=new P(void 0,e,{label:!0,icon:!1});return t.setClass("availableSuggestionCount"),t}},telemetrySource:"InlineSuggestionToolbar"})),this.toolBar.setPrependedPrimaryActions([this.previousAction,this.availableSuggestionCountAction,this.nextAction]),this._register(this.toolBar.onDidChangeDropdownVisibility((e=>{s._dropDownVisible=e}))),this._register((0,u.fm)((e=>{this._position.read(e),this.editor.layoutContentWidget(this)}))),this._register((0,u.fm)((e=>{const t=this._suggestionCount.read(e),i=this._currentSuggestionIdx.read(e);void 0!==t?(this.clearAvailableSuggestionCountLabelDebounced.cancel(),this.availableSuggestionCountAction.label=`${i+1}/${t}`):this.clearAvailableSuggestionCountLabelDebounced.schedule(),void 0!==t&&t>1?(this.disableButtonsDebounced.cancel(),this.previousAction.enabled=this.nextAction.enabled=!0):this.disableButtonsDebounced.schedule()}))),this._register((0,u.fm)((e=>{const t=this._extraCommands.read(e).map((e=>({class:void 0,id:e.id,enabled:!0,tooltip:e.tooltip||"",label:e.title,run:t=>this._commandService.executeCommand(e.id)})));for(const[i,s]of this.inlineCompletionsActionsMenus.getActions())for(const e of s)e instanceof S.Xe&&t.push(e);t.length>0&&t.unshift(new a.wv),this.toolBar.setAdditionalSecondaryActions(t)})))}getId(){return this.id}getDomNode(){return this.nodes.root}getPosition(){return{position:this._position.get(),preference:[1,2],positionAffinity:3}}};M=s=A([N(6,y.d),N(7,L._Y),N(8,T.b),N(9,w.fN),N(10,S.ez)],M);class P extends r.Z4{constructor(){super(...arguments),this._className=void 0}setClass(e){this._className=e}render(e){super.render(e),this._className&&e.classList.add(this._className)}updateTooltip(){}}class F extends E.oq{updateLabel(){const e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();if(this.label){const t=(0,n.h)("div.keybinding").root;this._register(new o.x(t,p.OS,{disableTitle:!0,...o.l})).set(e),this.label.textContent=this._action.label,this.label.appendChild(t),this.label.classList.add("inlineSuggestionStatusBarItemLabel")}}updateTooltip(){}}let U=class extends b.p{constructor(e,t,i,s,n,r,o,a,c){super(e,{resetMenu:t,...i},s,n,r,o,a,c),this.menuId=t,this.options2=i,this.menuService=s,this.contextKeyService=n,this.menu=this._store.add(this.menuService.createMenu(this.menuId,this.contextKeyService,{emitEventsForSubmenuChanges:!0})),this.additionalActions=[],this.prependedPrimaryActions=[],this._store.add(this.menu.onDidChange((()=>this.updateToolbar()))),this.updateToolbar()}updateToolbar(){const e=[],t=[];(0,E.Ot)(this.menu,this.options2?.menuOptions,{primary:e,secondary:t},this.options2?.toolbarOptions?.primaryGroup,this.options2?.toolbarOptions?.shouldInlineSubmenu,this.options2?.toolbarOptions?.useSeparatorsInPrimaryActions),t.push(...this.additionalActions),e.unshift(...this.prependedPrimaryActions),this.setActions(e,t)}setPrependedPrimaryActions(e){(0,c.aI)(this.prependedPrimaryActions,e,((e,t)=>e===t))||(this.prependedPrimaryActions=e,this.updateToolbar())}setAdditionalSecondaryActions(e){(0,c.aI)(this.additionalActions,e,((e,t)=>e===t))||(this.additionalActions=e,this.updateToolbar())}};U=A([N(3,S.ez),N(4,w.fN),N(5,R.Z),N(6,T.b),N(7,y.d),N(8,x.k)],U)},64383:(e,t,i)=>{"use strict";i.d(t,{AL:()=>l,D7:()=>m,EM:()=>g,MB:()=>c,M_:()=>r,Qg:()=>d,aD:()=>h,cU:()=>o,dz:()=>n,iH:()=>u});const s=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((()=>{if(e.stack){if(p.isErrorNoTelemetry(e))throw new p(e.message+"\n\n"+e.stack);throw new Error(e.message+"\n\n"+e.stack)}throw e}),0)}}emit(e){this.listeners.forEach((t=>{t(e)}))}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function n(e){c(e)||s.onUnexpectedError(e)}function r(e){c(e)||s.onUnexpectedExternalError(e)}function o(e){if(e instanceof Error){const{name:t,message:i}=e;return{$isError:!0,name:t,message:i,stack:e.stacktrace||e.stack,noTelemetry:p.isErrorNoTelemetry(e)}}return e}const a="Canceled";function c(e){return e instanceof l||e instanceof Error&&e.name===a&&e.message===a}class l extends Error{constructor(){super(a),this.name=this.message}}function h(){const e=new Error(a);return e.name=e.message,e}function d(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")}function u(e){return e?new Error(`Illegal state: ${e}`):new Error("Illegal state")}class g extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class p extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof p)return e;const t=new p;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return"CodeExpectedError"===e.name}}class m extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,m.prototype)}}},64395:(e,t,i)=>{"use strict";function s(e,t){let i=0;for(let s=0;s<e.length;s++)"\t"===e.charAt(s)?i+=t:i++;return i}function n(e,t,i){e=e<0?0:e;let s="";if(!i){const i=Math.floor(e/t);e%=t;for(let e=0;e<i;e++)s+="\t"}for(let n=0;n<e;n++)s+=" ";return s}i.d(t,{c:()=>s,k:()=>n})},64454:(e,t,i)=>{"use strict";function s(e){let t=0,i=0,s=0,n=0;for(let r=0,o=e.length;r<o;r++){const a=e.charCodeAt(r);13===a?(0===t&&(i=r),t++,r+1<o&&10===e.charCodeAt(r+1)?(n|=2,r++):n|=3,s=r+1):10===a&&(n|=1,0===t&&(i=r),t++,s=r+1)}return 0===t&&(i=e.length),[t,i,e.length-s,n]}i.d(t,{W:()=>s})},64470:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M9 2H7a.5.5 0 0 0-.5.5V3h3v-.5A.5.5 0 0 0 9 2m2 1v-.5a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2V3H2.251a.75.75 0 0 0 0 1.5h.312l.317 7.625A3 3 0 0 0 5.878 15h4.245a3 3 0 0 0 2.997-2.875l.318-7.625h.312a.75.75 0 0 0 0-1.5zm.936 1.5H4.064l.315 7.562A1.5 1.5 0 0 0 5.878 13.5h4.245a1.5 1.5 0 0 0 1.498-1.438zm-6.186 2v5a.75.75 0 0 0 1.5 0v-5a.75.75 0 0 0-1.5 0m3.75-.75a.75.75 0 0 1 .75.75v5a.75.75 0 0 1-1.5 0v-5a.75.75 0 0 1 .75-.75",clipRule:"evenodd"}))},64727:(e,t,i)=>{"use strict";i.d(t,{E$:()=>o,HP:()=>l,Ic:()=>d,U0:()=>r,Wn:()=>s,bg:()=>a,mS:()=>c,uK:()=>n,vn:()=>h});class s{constructor(){this.changeType=1}}class n{static applyInjectedText(e,t){if(!t||0===t.length)return e;let i="",s=0;for(const n of t)i+=e.substring(s,n.column-1),s=n.column-1,i+=n.options.content;return i+=e.substring(s),i}static fromDecorations(e){const t=[];for(const i of e)i.options.before&&i.options.before.content.length>0&&t.push(new n(i.ownerId,i.range.startLineNumber,i.range.startColumn,i.options.before,0)),i.options.after&&i.options.after.content.length>0&&t.push(new n(i.ownerId,i.range.endLineNumber,i.range.endColumn,i.options.after,1));return t.sort(((e,t)=>e.lineNumber===t.lineNumber?e.column===t.column?e.order-t.order:e.column-t.column:e.lineNumber-t.lineNumber)),t}constructor(e,t,i,s,n){this.ownerId=e,this.lineNumber=t,this.column=i,this.options=s,this.order=n}}class r{constructor(e,t,i){this.changeType=2,this.lineNumber=e,this.detail=t,this.injectedText=i}}class o{constructor(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t}}class a{constructor(e,t,i,s){this.changeType=4,this.injectedTexts=s,this.fromLineNumber=e,this.toLineNumber=t,this.detail=i}}class c{constructor(){this.changeType=5}}class l{constructor(e,t,i,s){this.changes=e,this.versionId=t,this.isUndoing=i,this.isRedoing=s,this.resultingSelection=null}containsEvent(e){for(let t=0,i=this.changes.length;t<i;t++){if(this.changes[t].changeType===e)return!0}return!1}static merge(e,t){const i=[].concat(e.changes).concat(t.changes),s=t.versionId,n=e.isUndoing||t.isUndoing,r=e.isRedoing||t.isRedoing;return new l(i,s,n,r)}}class h{constructor(e){this.changes=e}}class d{constructor(e,t){this.rawContentChangedEvent=e,this.contentChangedEvent=t}merge(e){const t=l.merge(this.rawContentChangedEvent,e.rawContentChangedEvent),i=d._mergeChangeEvents(this.contentChangedEvent,e.contentChangedEvent);return new d(t,i)}static _mergeChangeEvents(e,t){const i=[].concat(e.changes).concat(t.changes),s=t.eol,n=t.versionId,r=e.isUndoing||t.isUndoing,o=e.isRedoing||t.isRedoing,a=e.isFlush||t.isFlush;return{changes:i,eol:s,isEolChange:e.isEolChange&&t.isEolChange,versionId:n,isUndoing:r,isRedoing:o,isFlush:a}}}},64829:(e,t,i)=>{"use strict";i.d(t,{k:()=>o,x:()=>a});var s=i(81674),n=i(99020);function r(e){return e.replace(/\n/g,"\\n").replace(/\r/g,"\\r")}class o{get oldLength(){return this.oldText.length}get oldEnd(){return this.oldPosition+this.oldText.length}get newLength(){return this.newText.length}get newEnd(){return this.newPosition+this.newText.length}constructor(e,t,i,s){this.oldPosition=e,this.oldText=t,this.newPosition=i,this.newText=s}toString(){return 0===this.oldText.length?`(insert@${this.oldPosition} "${r(this.newText)}")`:0===this.newText.length?`(delete@${this.oldPosition} "${r(this.oldText)}")`:`(replace@${this.oldPosition} "${r(this.oldText)}" with "${r(this.newText)}")`}static _writeStringSize(e){return 4+2*e.length}static _writeString(e,t,i){const n=t.length;s.Sw(e,n,i),i+=4;for(let r=0;r<n;r++)s.gN(e,t.charCodeAt(r),i),i+=2;return i}static _readString(e,t){const i=s.bb(e,t);return t+=4,(0,n.Su)(e,t,i)}writeSize(){return 8+o._writeStringSize(this.oldText)+o._writeStringSize(this.newText)}write(e,t){return s.Sw(e,this.oldPosition,t),t+=4,s.Sw(e,this.newPosition,t),t+=4,t=o._writeString(e,this.oldText,t),t=o._writeString(e,this.newText,t)}static read(e,t,i){const n=s.bb(e,t);t+=4;const r=s.bb(e,t);t+=4;const a=o._readString(e,t);t+=o._writeStringSize(a);const c=o._readString(e,t);return t+=o._writeStringSize(c),i.push(new o(n,a,r,c)),t}}function a(e,t){if(null===e||0===e.length)return t;return new c(e,t).compress()}class c{constructor(e,t){this._prevEdits=e,this._currEdits=t,this._result=[],this._resultLen=0,this._prevLen=this._prevEdits.length,this._prevDeltaOffset=0,this._currLen=this._currEdits.length,this._currDeltaOffset=0}compress(){let e=0,t=0,i=this._getPrev(e),s=this._getCurr(t);for(;e<this._prevLen||t<this._currLen;){if(null===i){this._acceptCurr(s),s=this._getCurr(++t);continue}if(null===s){this._acceptPrev(i),i=this._getPrev(++e);continue}if(s.oldEnd<=i.newPosition){this._acceptCurr(s),s=this._getCurr(++t);continue}if(i.newEnd<=s.oldPosition){this._acceptPrev(i),i=this._getPrev(++e);continue}if(s.oldPosition<i.newPosition){const[e,t]=c._splitCurr(s,i.newPosition-s.oldPosition);this._acceptCurr(e),s=t;continue}if(i.newPosition<s.oldPosition){const[e,t]=c._splitPrev(i,s.oldPosition-i.newPosition);this._acceptPrev(e),i=t;continue}let n,r;if(s.oldEnd===i.newEnd)n=i,r=s,i=this._getPrev(++e),s=this._getCurr(++t);else if(s.oldEnd<i.newEnd){const[e,o]=c._splitPrev(i,s.oldLength);n=e,r=s,i=o,s=this._getCurr(++t)}else{const[t,o]=c._splitCurr(s,i.newLength);n=i,r=t,i=this._getPrev(++e),s=o}this._result[this._resultLen++]=new o(n.oldPosition,n.oldText,r.newPosition,r.newText),this._prevDeltaOffset+=n.newLength-n.oldLength,this._currDeltaOffset+=r.newLength-r.oldLength}const n=c._merge(this._result);return c._removeNoOps(n)}_acceptCurr(e){this._result[this._resultLen++]=c._rebaseCurr(this._prevDeltaOffset,e),this._currDeltaOffset+=e.newLength-e.oldLength}_getCurr(e){return e<this._currLen?this._currEdits[e]:null}_acceptPrev(e){this._result[this._resultLen++]=c._rebasePrev(this._currDeltaOffset,e),this._prevDeltaOffset+=e.newLength-e.oldLength}_getPrev(e){return e<this._prevLen?this._prevEdits[e]:null}static _rebaseCurr(e,t){return new o(t.oldPosition-e,t.oldText,t.newPosition,t.newText)}static _rebasePrev(e,t){return new o(t.oldPosition,t.oldText,t.newPosition+e,t.newText)}static _splitPrev(e,t){const i=e.newText.substr(0,t),s=e.newText.substr(t);return[new o(e.oldPosition,e.oldText,e.newPosition,i),new o(e.oldEnd,"",e.newPosition+t,s)]}static _splitCurr(e,t){const i=e.oldText.substr(0,t),s=e.oldText.substr(t);return[new o(e.oldPosition,i,e.newPosition,e.newText),new o(e.oldPosition+t,s,e.newEnd,"")]}static _merge(e){if(0===e.length)return e;const t=[];let i=0,s=e[0];for(let n=1;n<e.length;n++){const r=e[n];s.oldEnd===r.oldPosition?s=new o(s.oldPosition,s.oldText+r.oldText,s.newPosition,s.newText+r.newText):(t[i++]=s,s=r)}return t[i++]=s,t}static _removeNoOps(e){if(0===e.length)return e;const t=[];let i=0;for(let s=0;s<e.length;s++){const n=e[s];n.oldText!==n.newText&&(t[i++]=n)}return t}}},65644:(e,t,i)=>{"use strict";i.d(t,{m:()=>N,p:()=>A});var s=i(8597),n=i(47358),r=i(11799),o=i(89506),a=i(36921),c=i(10350),l=i(25689),h=i(41234),d=i(5662),u=i(78209),g=i(42904);class p extends d.jG{constructor(e,t,i={orientation:0}){super(),this.submenuActionViewItems=[],this.hasSecondaryActions=!1,this._onDidChangeDropdownVisibility=this._register(new h._B),this.onDidChangeDropdownVisibility=this._onDidChangeDropdownVisibility.event,this.disposables=this._register(new d.Cm),i.hoverDelegate=i.hoverDelegate??this._register((0,g.bW)()),this.options=i,this.toggleMenuAction=this._register(new m((()=>this.toggleMenuActionViewItem?.show()),i.toggleMenuTitle)),this.element=document.createElement("div"),this.element.className="monaco-toolbar",e.appendChild(this.element),this.actionBar=this._register(new r.E(this.element,{orientation:i.orientation,ariaLabel:i.ariaLabel,actionRunner:i.actionRunner,allowContextMenu:i.allowContextMenu,highlightToggledItems:i.highlightToggledItems,hoverDelegate:i.hoverDelegate,actionViewItemProvider:(e,s)=>{if(e.id===m.ID)return this.toggleMenuActionViewItem=new o.d(e,e.menuActions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:l.L.asClassNameArray(i.moreIcon??c.W.toolBarMore),anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement,skipTelemetry:this.options.skipTelemetry,isMenu:!0,hoverDelegate:this.options.hoverDelegate}),this.toggleMenuActionViewItem.setActionContext(this.actionBar.context),this.disposables.add(this._onDidChangeDropdownVisibility.add(this.toggleMenuActionViewItem.onDidChangeVisibility)),this.toggleMenuActionViewItem;if(i.actionViewItemProvider){const t=i.actionViewItemProvider(e,s);if(t)return t}if(e instanceof a.YH){const i=new o.d(e,e.actions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:e.class,anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement,skipTelemetry:this.options.skipTelemetry,hoverDelegate:this.options.hoverDelegate});return i.setActionContext(this.actionBar.context),this.submenuActionViewItems.push(i),this.disposables.add(this._onDidChangeDropdownVisibility.add(i.onDidChangeVisibility)),i}}}))}set actionRunner(e){this.actionBar.actionRunner=e}get actionRunner(){return this.actionBar.actionRunner}getElement(){return this.element}getItemAction(e){return this.actionBar.getAction(e)}setActions(e,t){this.clear();const i=e?e.slice(0):[];this.hasSecondaryActions=!!(t&&t.length>0),this.hasSecondaryActions&&t&&(this.toggleMenuAction.menuActions=t.slice(0),i.push(this.toggleMenuAction)),i.forEach((e=>{this.actionBar.push(e,{icon:this.options.icon??!0,label:this.options.label??!1,keybinding:this.getKeybindingLabel(e)})}))}getKeybindingLabel(e){const t=this.options.getKeyBinding?.(e);return t?.getLabel()??void 0}clear(){this.submenuActionViewItems=[],this.disposables.clear(),this.actionBar.clear()}dispose(){this.clear(),this.disposables.dispose(),super.dispose()}}class m extends a.rc{static{this.ID="toolbar.toggle.more"}constructor(e,t){t=t||u.kg("moreActions","More Actions..."),super(m.ID,t,void 0,!0),this._menuActions=[],this.toggleDropdownMenu=e}async run(){this.toggleDropdownMenu()}get menuActions(){return this._menuActions}set menuActions(e){this._menuActions=e}}var f=i(25890),_=i(48495),v=i(64383),C=i(42522),E=i(57629),b=i(27195),S=i(60858),y=i(50091),w=i(32848),R=i(47508),L=i(98031),T=i(90651),x=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},k=function(e,t){return function(i,s){t(i,s,e)}};let A=class extends p{constructor(e,t,i,s,n,r,o,a){super(e,n,{getKeyBinding:e=>r.lookupKeybinding(e.id)??void 0,...t,allowContextMenu:!0,skipTelemetry:"string"===typeof t?.telemetrySource}),this._options=t,this._menuService=i,this._contextKeyService=s,this._contextMenuService=n,this._keybindingService=r,this._commandService=o,this._sessionDisposables=this._store.add(new d.Cm);const c=t?.telemetrySource;c&&this._store.add(this.actionBar.onDidRun((e=>a.publicLog2("workbenchActionExecuted",{id:e.action.id,from:c}))))}setActions(e,t=[],i){this._sessionDisposables.clear();const r=e.slice(),o=t.slice(),c=[];let l=0;const h=[];let d=!1;if(-1!==this._options?.hiddenItemStrategy)for(let s=0;s<r.length;s++){const e=r[s];(e instanceof b.Xe||e instanceof b.nI)&&(e.hideActions&&(c.push(e.hideActions.toggle),e.hideActions.toggle.checked&&l++,e.hideActions.isHidden&&(d=!0,r[s]=void 0,0!==this._options?.hiddenItemStrategy&&(h[s]=e))))}if(void 0!==this._options?.overflowBehavior){const e=(0,_.E)(new Set(this._options.overflowBehavior.exempted),C.f.map(r,(e=>e?.id))),t=this._options.overflowBehavior.maxItems-e.size;let i=0;for(let s=0;s<r.length;s++){const n=r[s];n&&(i++,e.has(n.id)||i>=t&&(r[s]=void 0,h[s]=n))}}(0,f.SK)(r),(0,f.SK)(h),super.setActions(r,a.wv.join(h,o)),(c.length>0||r.length>0)&&this._sessionDisposables.add((0,s.ko)(this.getElement(),"contextmenu",(e=>{const t=new n.P((0,s.zk)(this.getElement()),e),r=this.getItemAction(t.target);if(!r)return;t.preventDefault(),t.stopPropagation();const o=[];if(r instanceof b.Xe&&r.menuKeybinding)o.push(r.menuKeybinding);else if(!(r instanceof b.nI||r instanceof m)){const e=!!this._keybindingService.lookupKeybinding(r.id);o.push((0,S.D)(this._commandService,this._keybindingService,r.id,void 0,e))}if(c.length>0){let e=!1;if(1===l&&0===this._options?.hiddenItemStrategy){e=!0;for(let e=0;e<c.length;e++)if(c[e].checked){c[e]=(0,a.ih)({id:r.id,label:r.label,checked:!0,enabled:!1,run(){}});break}}if(!e&&(r instanceof b.Xe||r instanceof b.nI)){if(!r.hideActions)return;o.push(r.hideActions.hide)}else o.push((0,a.ih)({id:"label",label:(0,u.kg)("hide","Hide"),enabled:!1,run(){}}))}const h=a.wv.join(o,c);this._options?.resetMenu&&!i&&(i=[this._options.resetMenu]),d&&i&&(h.push(new a.wv),h.push((0,a.ih)({id:"resetThisMenu",label:(0,u.kg)("resetThisMenu","Reset Menu"),run:()=>this._menuService.resetHiddenStates(i)}))),0!==h.length&&this._contextMenuService.showContextMenu({getAnchor:()=>t,getActions:()=>h,menuId:this._options?.contextMenu,menuActionOptions:{renderShortTitle:!0,...this._options?.menuOptions},skipTelemetry:"string"===typeof this._options?.telemetrySource,contextKeyService:this._contextKeyService})})))}};A=x([k(2,b.ez),k(3,w.fN),k(4,R.Z),k(5,L.b),k(6,y.d),k(7,T.k)],A);let N=class extends A{constructor(e,t,i,s,n,r,o,a,c){super(e,{resetMenu:t,...i},s,n,r,o,a,c),this._onDidChangeMenuItems=this._store.add(new h.vl),this.onDidChangeMenuItems=this._onDidChangeMenuItems.event;const l=this._store.add(s.createMenu(t,n,{emitEventsForSubmenuChanges:!0})),d=()=>{const t=[],s=[];(0,E.Ot)(l,i?.menuOptions,{primary:t,secondary:s},i?.toolbarOptions?.primaryGroup,i?.toolbarOptions?.shouldInlineSubmenu,i?.toolbarOptions?.useSeparatorsInPrimaryActions),e.classList.toggle("has-no-actions",0===t.length&&0===s.length),super.setActions(t,s)};this._store.add(l.onDidChange((()=>{d(),this._onDidChangeMenuItems.fire(this)}))),d()}setActions(){throw new v.D7("This toolbar is populated from a menu.")}};N=x([k(3,b.ez),k(4,w.fN),k(5,R.Z),k(6,L.b),k(7,y.d),k(8,T.k)],N)},65872:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.423 1A3.577 3.577 0 0 1 15 4.577c0 .27-.108.53-.3.722l-.528.529-1.971 1.971-5.059 5.059a3 3 0 0 1-1.533.82l-2.638.528a1 1 0 0 1-1.177-1.177l.528-2.638a3 3 0 0 1 .82-1.533l5.059-5.059 2.5-2.5c.191-.191.451-.299.722-.299m-2.31 4.009-4.91 4.91a1.5 1.5 0 0 0-.41.766l-.38 1.903 1.902-.38a1.5 1.5 0 0 0 .767-.41l4.91-4.91a2.08 2.08 0 0 0-1.88-1.88m3.098.658a3.6 3.6 0 0 0-1.878-1.879l1.28-1.28c.995.09 1.788.884 1.878 1.88z",clipRule:"evenodd"}))},65877:(e,t,i)=>{"use strict";i.d(t,{j:()=>oe,i:()=>ce});var s=i(10350),n=i(5662),r=i(31450),o=i(80301),a=i(83069),c=i(36677),l=i(60002),h=i(25890),d=i(41234),u=i(58925),g=i(91508),p=i(79400),m=i(14718),f=i(63591),_=i(75147),v=i(84001),C=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},E=function(e,t){return function(i,s){t(i,s,e)}};class b{constructor(e,t,i){this.marker=e,this.index=t,this.total=i}}let S=class{constructor(e,t,i){this._markerService=t,this._configService=i,this._onDidChange=new d.vl,this.onDidChange=this._onDidChange.event,this._dispoables=new n.Cm,this._markers=[],this._nextIdx=-1,p.r.isUri(e)?this._resourceFilter=t=>t.toString()===e.toString():e&&(this._resourceFilter=e);const s=this._configService.getValue("problems.sortOrder"),r=(e,t)=>{let i=(0,g.UD)(e.resource.toString(),t.resource.toString());return 0===i&&(i="position"===s?c.Q.compareRangesUsingStarts(e,t)||_.cj.compare(e.severity,t.severity):_.cj.compare(e.severity,t.severity)||c.Q.compareRangesUsingStarts(e,t)),i},o=()=>{this._markers=this._markerService.read({resource:p.r.isUri(e)?e:void 0,severities:_.cj.Error|_.cj.Warning|_.cj.Info}),"function"===typeof e&&(this._markers=this._markers.filter((e=>this._resourceFilter(e.resource)))),this._markers.sort(r)};o(),this._dispoables.add(t.onMarkerChanged((e=>{this._resourceFilter&&!e.some((e=>this._resourceFilter(e)))||(o(),this._nextIdx=-1,this._onDidChange.fire())})))}dispose(){this._dispoables.dispose(),this._onDidChange.dispose()}matches(e){return!this._resourceFilter&&!e||!(!this._resourceFilter||!e)&&this._resourceFilter(e)}get selected(){const e=this._markers[this._nextIdx];return e&&new b(e,this._nextIdx+1,this._markers.length)}_initIdx(e,t,i){let s=!1,n=this._markers.findIndex((t=>t.resource.toString()===e.uri.toString()));n<0&&(n=(0,h.El)(this._markers,{resource:e.uri},((e,t)=>(0,g.UD)(e.resource.toString(),t.resource.toString()))),n<0&&(n=~n));for(let r=n;r<this._markers.length;r++){let i=c.Q.lift(this._markers[r]);if(i.isEmpty()){const t=e.getWordAtPosition(i.getStartPosition());t&&(i=new c.Q(i.startLineNumber,t.startColumn,i.startLineNumber,t.endColumn))}if(t&&(i.containsPosition(t)||t.isBeforeOrEqual(i.getStartPosition()))){this._nextIdx=r,s=!0;break}if(this._markers[r].resource.toString()!==e.uri.toString())break}s||(this._nextIdx=i?0:this._markers.length-1),this._nextIdx<0&&(this._nextIdx=this._markers.length-1)}resetIndex(){this._nextIdx=-1}move(e,t,i){if(0===this._markers.length)return!1;const s=this._nextIdx;return-1===this._nextIdx?this._initIdx(t,i,e):e?this._nextIdx=(this._nextIdx+1)%this._markers.length:e||(this._nextIdx=(this._nextIdx-1+this._markers.length)%this._markers.length),s!==this._nextIdx}find(e,t){let i=this._markers.findIndex((t=>t.resource.toString()===e.toString()));if(!(i<0))for(;i<this._markers.length;i++)if(c.Q.containsPosition(this._markers[i],t))return new b(this._markers[i],i+1,this._markers.length)}};S=C([E(1,_.DR),E(2,v.pG)],S);const y=(0,f.u1)("IMarkerNavigationService");let w=class{constructor(e,t){this._markerService=e,this._configService=t,this._provider=new u.w}getMarkerList(e){for(const t of this._provider){const i=t.getMarkerList(e);if(i)return i}return new S(e,this._markerService,this._configService)}};w=C([E(0,_.DR),E(1,v.pG)],w),(0,m.v)(y,w,1);var R,L=i(78209),T=i(27195),x=i(32848),k=i(61394),A=i(8597),N=i(31295),I=i(47661),O=i(89403),D=i(84226),M=i(57629),P=i(67841),F=i(49099),U=i(25689),H=i(42291);!function(e){e.className=function(e){switch(e){case H.A.Ignore:return"severity-ignore "+U.L.asClassName(s.W.info);case H.A.Info:return U.L.asClassName(s.W.info);case H.A.Warning:return U.L.asClassName(s.W.warning);case H.A.Error:return U.L.asClassName(s.W.error);default:return""}}}(R||(R={}));var B,W=i(66261),V=i(47612),z=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},G=function(e,t){return function(i,s){t(i,s,e)}};class j{constructor(e,t,i,s,r){this._openerService=s,this._labelService=r,this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new n.Cm,this._editor=t;const o=document.createElement("div");o.className="descriptioncontainer",this._messageBlock=document.createElement("div"),this._messageBlock.classList.add("message"),this._messageBlock.setAttribute("aria-live","assertive"),this._messageBlock.setAttribute("role","alert"),o.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),o.appendChild(this._relatedBlock),this._disposables.add(A.b2(this._relatedBlock,"click",(e=>{e.preventDefault();const t=this._relatedDiagnostics.get(e.target);t&&i(t)}))),this._scrollable=new N.Se(o,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:6,verticalScrollbarSize:6}),e.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll((e=>{o.style.left=`-${e.scrollLeft}px`,o.style.top=`-${e.scrollTop}px`}))),this._disposables.add(this._scrollable)}dispose(){(0,n.AS)(this._disposables)}update(e){const{source:t,message:i,relatedInformation:s,code:n}=e;let r=(t?.length||0)+2;n&&(r+="string"===typeof n?n.length:n.value.length);const o=(0,g.uz)(i);this._lines=o.length,this._longestLineLength=0;for(const h of o)this._longestLineLength=Math.max(h.length+r,this._longestLineLength);A.w_(this._messageBlock),this._messageBlock.setAttribute("aria-label",this.getAriaLabel(e)),this._editor.applyFontInfo(this._messageBlock);let a=this._messageBlock;for(const h of o)a=document.createElement("div"),a.innerText=h,""===h&&(a.style.height=this._messageBlock.style.lineHeight),this._messageBlock.appendChild(a);if(t||n){const e=document.createElement("span");if(e.classList.add("details"),a.appendChild(e),t){const i=document.createElement("span");i.innerText=t,i.classList.add("source"),e.appendChild(i)}if(n)if("string"===typeof n){const t=document.createElement("span");t.innerText=`(${n})`,t.classList.add("code"),e.appendChild(t)}else{this._codeLink=A.$("a.code-link"),this._codeLink.setAttribute("href",`${n.target.toString()}`),this._codeLink.onclick=e=>{this._openerService.open(n.target,{allowCommands:!0}),e.preventDefault(),e.stopPropagation()};A.BC(this._codeLink,A.$("span")).innerText=n.value,e.appendChild(this._codeLink)}}if(A.w_(this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),(0,h.EI)(s)){const e=this._relatedBlock.appendChild(document.createElement("div"));e.style.paddingTop=`${Math.floor(.66*this._editor.getOption(67))}px`,this._lines+=1;for(const t of s){const i=document.createElement("div"),s=document.createElement("a");s.classList.add("filename"),s.innerText=`${this._labelService.getUriBasenameLabel(t.resource)}(${t.startLineNumber}, ${t.startColumn}): `,s.title=this._labelService.getUriLabel(t.resource),this._relatedDiagnostics.set(s,t);const n=document.createElement("span");n.innerText=t.message,i.appendChild(s),i.appendChild(n),this._lines+=1,e.appendChild(i)}}const c=this._editor.getOption(50),l=Math.ceil(c.typicalFullwidthCharacterWidth*this._longestLineLength*.75),d=c.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:l,scrollHeight:d})}layout(e,t){this._scrollable.getDomNode().style.height=`${e}px`,this._scrollable.getDomNode().style.width=`${t}px`,this._scrollable.setScrollDimensions({width:t,height:e})}getHeightInLines(){return Math.min(17,this._lines)}getAriaLabel(e){let t="";switch(e.severity){case _.cj.Error:t=L.kg("Error","Error");break;case _.cj.Warning:t=L.kg("Warning","Warning");break;case _.cj.Info:t=L.kg("Info","Info");break;case _.cj.Hint:t=L.kg("Hint","Hint")}let i=L.kg("marker aria","{0} at {1}. ",t,e.startLineNumber+":"+e.startColumn);const s=this._editor.getModel();if(s&&e.startLineNumber<=s.getLineCount()&&e.startLineNumber>=1){i=`${s.getLineContent(e.startLineNumber)}, ${i}`}return i}}let K=class extends D.j6{static{B=this}static{this.TitleMenu=new T.D8("gotoErrorTitleMenu")}constructor(e,t,i,s,r,o,a){super(e,{showArrow:!0,showFrame:!0,isAccessible:!0,frameWidth:1},r),this._themeService=t,this._openerService=i,this._menuService=s,this._contextKeyService=o,this._labelService=a,this._callOnDispose=new n.Cm,this._onDidSelectRelatedInformation=new d.vl,this.onDidSelectRelatedInformation=this._onDidSelectRelatedInformation.event,this._severity=_.cj.Warning,this._backgroundColor=I.Q1.white,this._applyTheme(t.getColorTheme()),this._callOnDispose.add(t.onDidColorThemeChange(this._applyTheme.bind(this))),this.create()}_applyTheme(e){this._backgroundColor=e.getColor(ie);let t=Q,i=X;this._severity===_.cj.Warning?(t=Z,i=J):this._severity===_.cj.Info&&(t=ee,i=te);const s=e.getColor(t),n=e.getColor(i);this.style({arrowColor:s,frameColor:s,headerBackgroundColor:n,primaryHeadingColor:e.getColor(D._X),secondaryHeadingColor:e.getColor(D.e3)})}_applyStyles(){this._parentContainer&&(this._parentContainer.style.backgroundColor=this._backgroundColor?this._backgroundColor.toString():""),super._applyStyles()}dispose(){this._callOnDispose.dispose(),super.dispose()}_fillHead(e){super._fillHead(e),this._disposables.add(this._actionbarWidget.actionRunner.onWillRun((e=>this.editor.focus())));const t=[],i=this._menuService.getMenuActions(B.TitleMenu,this._contextKeyService);(0,M.Ot)(i,t),this._actionbarWidget.push(t,{label:!1,icon:!0,index:0})}_fillTitleIcon(e){this._icon=A.BC(e,A.$(""))}_fillBody(e){this._parentContainer=e,e.classList.add("marker-widget"),this._parentContainer.tabIndex=0,this._parentContainer.setAttribute("role","tooltip"),this._container=document.createElement("div"),e.appendChild(this._container),this._message=new j(this._container,this.editor,(e=>this._onDidSelectRelatedInformation.fire(e)),this._openerService,this._labelService),this._disposables.add(this._message)}show(){throw new Error("call showAtMarker")}showAtMarker(e,t,i){this._container.classList.remove("stale"),this._message.update(e),this._severity=e.severity,this._applyTheme(this._themeService.getColorTheme());const s=c.Q.lift(e),n=this.editor.getPosition(),r=n&&s.containsPosition(n)?n:s.getStartPosition();super.show(r,this.computeRequiredHeight());const o=this.editor.getModel();if(o){const e=i>1?L.kg("problems","{0} of {1} problems",t,i):L.kg("change","{0} of {1} problem",t,i);this.setTitle((0,O.P8)(o.uri),e)}this._icon.className=`codicon ${R.className(_.cj.toSeverity(this._severity))}`,this.editor.revealPositionNearTop(r,0),this.editor.focus()}updateMarker(e){this._container.classList.remove("stale"),this._message.update(e)}showStale(){this._container.classList.add("stale"),this._relayout()}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._heightInPixel=e,this._message.layout(e,t),this._container.style.height=`${e}px`}_onWidth(e){this._message.layout(this._heightInPixel,e)}_relayout(){super._relayout(this.computeRequiredHeight())}computeRequiredHeight(){return 3+this._message.getHeightInLines()}};K=B=z([G(1,V.Gy),G(2,F.C),G(3,T.ez),G(4,f._Y),G(5,x.fN),G(6,P.L)],K);const Y=(0,W.yLr)(W.Rbi,W.AN$),q=(0,W.yLr)(W.Hng,W.Stt),$=(0,W.yLr)(W.pOz,W.IIb),Q=(0,W.x1A)("editorMarkerNavigationError.background",{dark:Y,light:Y,hcDark:W.b1q,hcLight:W.b1q},L.kg("editorMarkerNavigationError","Editor marker navigation widget error color.")),X=(0,W.x1A)("editorMarkerNavigationError.headerBackground",{dark:(0,W.JO0)(Q,.1),light:(0,W.JO0)(Q,.1),hcDark:null,hcLight:null},L.kg("editorMarkerNavigationErrorHeaderBackground","Editor marker navigation widget error heading background.")),Z=(0,W.x1A)("editorMarkerNavigationWarning.background",{dark:q,light:q,hcDark:W.b1q,hcLight:W.b1q},L.kg("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),J=(0,W.x1A)("editorMarkerNavigationWarning.headerBackground",{dark:(0,W.JO0)(Z,.1),light:(0,W.JO0)(Z,.1),hcDark:"#0C141F",hcLight:(0,W.JO0)(Z,.2)},L.kg("editorMarkerNavigationWarningBackground","Editor marker navigation widget warning heading background.")),ee=(0,W.x1A)("editorMarkerNavigationInfo.background",{dark:$,light:$,hcDark:W.b1q,hcLight:W.b1q},L.kg("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),te=(0,W.x1A)("editorMarkerNavigationInfo.headerBackground",{dark:(0,W.JO0)(ee,.1),light:(0,W.JO0)(ee,.1),hcDark:null,hcLight:null},L.kg("editorMarkerNavigationInfoHeaderBackground","Editor marker navigation widget info heading background.")),ie=(0,W.x1A)("editorMarkerNavigation.background",W.YtV,L.kg("editorMarkerNavigationBackground","Editor marker navigation widget background."));var se,ne=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},re=function(e,t){return function(i,s){t(i,s,e)}};let oe=class{static{se=this}static{this.ID="editor.contrib.markerController"}static get(e){return e.getContribution(se.ID)}constructor(e,t,i,s,r){this._markerNavigationService=t,this._contextKeyService=i,this._editorService=s,this._instantiationService=r,this._sessionDispoables=new n.Cm,this._editor=e,this._widgetVisible=he.bindTo(this._contextKeyService)}dispose(){this._cleanUp(),this._sessionDispoables.dispose()}_cleanUp(){this._widgetVisible.reset(),this._sessionDispoables.clear(),this._widget=void 0,this._model=void 0}_getOrCreateModel(e){if(this._model&&this._model.matches(e))return this._model;let t=!1;return this._model&&(t=!0,this._cleanUp()),this._model=this._markerNavigationService.getMarkerList(e),t&&this._model.move(!0,this._editor.getModel(),this._editor.getPosition()),this._widget=this._instantiationService.createInstance(K,this._editor),this._widget.onDidClose((()=>this.close()),this,this._sessionDispoables),this._widgetVisible.set(!0),this._sessionDispoables.add(this._model),this._sessionDispoables.add(this._widget),this._sessionDispoables.add(this._editor.onDidChangeCursorPosition((e=>{this._model?.selected&&c.Q.containsPosition(this._model?.selected.marker,e.position)||this._model?.resetIndex()}))),this._sessionDispoables.add(this._model.onDidChange((()=>{if(!this._widget||!this._widget.position||!this._model)return;const e=this._model.find(this._editor.getModel().uri,this._widget.position);e?this._widget.updateMarker(e.marker):this._widget.showStale()}))),this._sessionDispoables.add(this._widget.onDidSelectRelatedInformation((e=>{this._editorService.openCodeEditor({resource:e.resource,options:{pinned:!0,revealIfOpened:!0,selection:c.Q.lift(e).collapseToStart()}},this._editor),this.close(!1)}))),this._sessionDispoables.add(this._editor.onDidChangeModel((()=>this._cleanUp()))),this._model}close(e=!0){this._cleanUp(),e&&this._editor.focus()}showAtMarker(e){if(this._editor.hasModel()){const t=this._getOrCreateModel(this._editor.getModel().uri);t.resetIndex(),t.move(!0,this._editor.getModel(),new a.y(e.startLineNumber,e.startColumn)),t.selected&&this._widget.showAtMarker(t.selected.marker,t.selected.index,t.selected.total)}}async nagivate(e,t){if(this._editor.hasModel()){const i=this._getOrCreateModel(t?void 0:this._editor.getModel().uri);if(i.move(e,this._editor.getModel(),this._editor.getPosition()),!i.selected)return;if(i.selected.marker.resource.toString()!==this._editor.getModel().uri.toString()){this._cleanUp();const s=await this._editorService.openCodeEditor({resource:i.selected.marker.resource,options:{pinned:!1,revealIfOpened:!0,selectionRevealType:2,selection:i.selected.marker}},this._editor);s&&(se.get(s)?.close(),se.get(s)?.nagivate(e,t))}else this._widget.showAtMarker(i.selected.marker,i.selected.index,i.selected.total)}}};oe=se=ne([re(1,y),re(2,x.fN),re(3,o.T),re(4,f._Y)],oe);class ae extends r.ks{constructor(e,t,i){super(i),this._next=e,this._multiFile=t}async run(e,t){t.hasModel()&&oe.get(t)?.nagivate(this._next,this._multiFile)}}class ce extends ae{static{this.ID="editor.action.marker.next"}static{this.LABEL=L.kg("markerAction.next.label","Go to Next Problem (Error, Warning, Info)")}constructor(){super(!0,!1,{id:ce.ID,label:ce.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:l.R.focus,primary:578,weight:100},menuOpts:{menuId:K.TitleMenu,title:ce.LABEL,icon:(0,k.pU)("marker-navigation-next",s.W.arrowDown,L.kg("nextMarkerIcon","Icon for goto next marker.")),group:"navigation",order:1}})}}class le extends ae{static{this.ID="editor.action.marker.prev"}static{this.LABEL=L.kg("markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)")}constructor(){super(!1,!1,{id:le.ID,label:le.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:l.R.focus,primary:1602,weight:100},menuOpts:{menuId:K.TitleMenu,title:le.LABEL,icon:(0,k.pU)("marker-navigation-previous",s.W.arrowUp,L.kg("previousMarkerIcon","Icon for goto previous marker.")),group:"navigation",order:2}})}}(0,r.HW)(oe.ID,oe,4),(0,r.Fl)(ce),(0,r.Fl)(le),(0,r.Fl)(class extends ae{constructor(){super(!0,!0,{id:"editor.action.marker.nextInFiles",label:L.kg("markerAction.nextInFiles.label","Go to Next Problem in Files (Error, Warning, Info)"),alias:"Go to Next Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:l.R.focus,primary:66,weight:100},menuOpts:{menuId:T.D8.MenubarGoMenu,title:L.kg({key:"miGotoNextProblem",comment:["&& denotes a mnemonic"]},"Next &&Problem"),group:"6_problem_nav",order:1}})}}),(0,r.Fl)(class extends ae{constructor(){super(!1,!0,{id:"editor.action.marker.prevInFiles",label:L.kg("markerAction.previousInFiles.label","Go to Previous Problem in Files (Error, Warning, Info)"),alias:"Go to Previous Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:l.R.focus,primary:1090,weight:100},menuOpts:{menuId:T.D8.MenubarGoMenu,title:L.kg({key:"miGotoPreviousProblem",comment:["&& denotes a mnemonic"]},"Previous &&Problem"),group:"6_problem_nav",order:2}})}});const he=new x.N1("markersNavigationVisible",!1),de=r.DX.bindToContribution(oe.get);(0,r.E_)(new de({id:"closeMarkersNavigation",precondition:he,handler:e=>e.close(),kbOpts:{weight:150,kbExpr:l.R.focus,primary:9,secondary:[1033]}}))},66235:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>i.e(30).then(i.bind(i,80030))})},66261:(e,t,i)=>{"use strict";i.d(t,{FdG:()=>s.Fd,buw:()=>h,GuP:()=>s.Gu,Bbc:()=>s.Bb,HP_:()=>s.HP,WMx:()=>u,zRE:()=>g,sAS:()=>le,vV$:()=>ae,etE:()=>ce,mc0:()=>oe,XJc:()=>Ze,raQ:()=>et,G_h:()=>Qe,T9h:()=>Je,xOA:()=>it,Inn:()=>tt,nZG:()=>st,Q1$:()=>Xe,OcU:()=>dt,C5U:()=>gt,t0B:()=>ut,b1q:()=>l,EY1:()=>X,ZEf:()=>Z,Gj6:()=>J,ld8:()=>te,$BZ:()=>ie,GNm:()=>ee,Ztu:()=>I,YtV:()=>C,AN$:()=>R,Rbi:()=>w,f3U:()=>F,Ubg:()=>U,ECk:()=>B,p8Y:()=>H,S5J:()=>W,By2:()=>E,i61:()=>N,WfR:()=>V,oZ8:()=>z,tan:()=>M,IIb:()=>A,pOz:()=>k,WL6:()=>j,P6i:()=>G,B2L:()=>$,sjA:()=>q,_pU:()=>Y,HwT:()=>K,seu:()=>O,rm4:()=>D,QwA:()=>P,whs:()=>L,Stt:()=>x,Hng:()=>T,CgL:()=>b,sIe:()=>y,FiB:()=>S,tAP:()=>c,CU6:()=>o,t4B:()=>a,c1f:()=>Me,uNK:()=>Oe,$$0:()=>Pe,L4c:()=>Ae,Zgs:()=>Ie,cws:()=>Ne,_$n:()=>ze,eYZ:()=>je,h9z:()=>Ge,I$A:()=>Fe,YSW:()=>He,L9Z:()=>Ue,ULt:()=>Be,C1n:()=>Ve,T5N:()=>We,HDX:()=>pt,zUX:()=>ft,Qfh:()=>_t,eUu:()=>mt,Rjz:()=>St,GVV:()=>yt,fED:()=>wt,yIp:()=>Ot,Yoe:()=>It,pnl:()=>Pt,P9Z:()=>Ut,fiM:()=>Ft,H8q:()=>Ht,gtq:()=>bt,VFX:()=>vt,efJ:()=>Ct,eMz:()=>Mt,p7Y:()=>Et,QI5:()=>Dt,lO1:()=>At,QRv:()=>Nt,CQ3:()=>xt,ijf:()=>kt,uNx:()=>Rt,f4y:()=>Lt,C9U:()=>Tt,c6Y:()=>Kt,g$2:()=>Gt,dd_:()=>jt,Ux$:()=>qt,SNb:()=>$t,pmr:()=>Yt,D7X:()=>Qt,ILr:()=>xe,yLC:()=>Te,AjU:()=>Se,K1Z:()=>ke,KoI:()=>Re,yr0:()=>we,Xp1:()=>ye,uMG:()=>Le,yLr:()=>s.yL,fAP:()=>_e,z5H:()=>ve,iwL:()=>ti,NBf:()=>ei,tYX:()=>Ce,bNw:()=>be,JPj:()=>Ee,BTi:()=>v,ELA:()=>Xt,HJZ:()=>Zt,AlL:()=>ri,nH:()=>si,c7i:()=>ni,er1:()=>Jt,Ukx:()=>rt,Ips:()=>ot,jOE:()=>nt,xWN:()=>ct,ZBU:()=>lt,kPT:()=>at,jr9:()=>ht,x1A:()=>s.x1,bXl:()=>p,mhZ:()=>_,gnV:()=>m,cI_:()=>f,rvE:()=>Ke,HcB:()=>$e,yqq:()=>qe,lWP:()=>Ye,k5u:()=>Vt,sbQ:()=>zt,vwp:()=>d,JO0:()=>s.JO,pft:()=>Wt,U4U:()=>Bt,DSL:()=>ne,f9l:()=>se});var s=i(83844),n=i(78209),r=i(47661);const o=(0,s.x1)("foreground",{dark:"#CCCCCC",light:"#616161",hcDark:"#FFFFFF",hcLight:"#292929"},n.kg("foreground","Overall foreground color. This color is only used if not overridden by a component.")),a=((0,s.x1)("disabledForeground",{dark:"#CCCCCC80",light:"#61616180",hcDark:"#A5A5A5",hcLight:"#7F7F7F"},n.kg("disabledForeground","Overall foreground for disabled elements. This color is only used if not overridden by a component.")),(0,s.x1)("errorForeground",{dark:"#F48771",light:"#A1260D",hcDark:"#F48771",hcLight:"#B5200D"},n.kg("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),(0,s.x1)("descriptionForeground",{light:"#717171",dark:(0,s.JO)(o,.7),hcDark:(0,s.JO)(o,.7),hcLight:(0,s.JO)(o,.7)},n.kg("descriptionForeground","Foreground color for description text providing additional information, for example for a label.")),(0,s.x1)("icon.foreground",{dark:"#C5C5C5",light:"#424242",hcDark:"#FFFFFF",hcLight:"#292929"},n.kg("iconForeground","The default color for icons in the workbench."))),c=(0,s.x1)("focusBorder",{dark:"#007FD4",light:"#0090F1",hcDark:"#F38518",hcLight:"#006BBD"},n.kg("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),l=(0,s.x1)("contrastBorder",{light:null,dark:null,hcDark:"#6FC3DF",hcLight:"#0F4A85"},n.kg("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),h=(0,s.x1)("contrastActiveBorder",{light:null,dark:null,hcDark:c,hcLight:c},n.kg("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),d=((0,s.x1)("selection.background",null,n.kg("selectionBackground","The background color of text selections in the workbench (e.g. for input fields or text areas). Note that this does not apply to selections within the editor.")),(0,s.x1)("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},n.kg("textLinkForeground","Foreground color for links in text."))),u=((0,s.x1)("textLink.activeForeground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},n.kg("textLinkActiveForeground","Foreground color for links in text when clicked on and on mouse hover.")),(0,s.x1)("textSeparator.foreground",{light:"#0000002e",dark:"#ffffff2e",hcDark:r.Q1.black,hcLight:"#292929"},n.kg("textSeparatorForeground","Color for text separators.")),(0,s.x1)("textPreformat.foreground",{light:"#A31515",dark:"#D7BA7D",hcDark:"#000000",hcLight:"#FFFFFF"},n.kg("textPreformatForeground","Foreground color for preformatted text segments.")),(0,s.x1)("textPreformat.background",{light:"#0000001A",dark:"#FFFFFF1A",hcDark:"#FFFFFF",hcLight:"#09345f"},n.kg("textPreformatBackground","Background color for preformatted text segments.")),(0,s.x1)("textBlockQuote.background",{light:"#f2f2f2",dark:"#222222",hcDark:null,hcLight:"#F2F2F2"},n.kg("textBlockQuoteBackground","Background color for block quotes in text.")),(0,s.x1)("textBlockQuote.border",{light:"#007acc80",dark:"#007acc80",hcDark:r.Q1.white,hcLight:"#292929"},n.kg("textBlockQuoteBorder","Border color for block quotes in text.")),(0,s.x1)("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hcDark:r.Q1.black,hcLight:"#F2F2F2"},n.kg("textCodeBlockBackground","Background color for code blocks in text.")),(0,s.x1)("sash.hoverBorder",c,n.kg("sashActiveBorder","Border color of active sashes.")),(0,s.x1)("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hcDark:r.Q1.black,hcLight:"#0F4A85"},n.kg("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count."))),g=(0,s.x1)("badge.foreground",{dark:r.Q1.white,light:"#333",hcDark:r.Q1.white,hcLight:r.Q1.white},n.kg("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),p=(0,s.x1)("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hcDark:null,hcLight:null},n.kg("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled.")),m=(0,s.x1)("scrollbarSlider.background",{dark:r.Q1.fromHex("#797979").transparent(.4),light:r.Q1.fromHex("#646464").transparent(.4),hcDark:(0,s.JO)(l,.6),hcLight:(0,s.JO)(l,.4)},n.kg("scrollbarSliderBackground","Scrollbar slider background color.")),f=(0,s.x1)("scrollbarSlider.hoverBackground",{dark:r.Q1.fromHex("#646464").transparent(.7),light:r.Q1.fromHex("#646464").transparent(.7),hcDark:(0,s.JO)(l,.8),hcLight:(0,s.JO)(l,.8)},n.kg("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),_=(0,s.x1)("scrollbarSlider.activeBackground",{dark:r.Q1.fromHex("#BFBFBF").transparent(.4),light:r.Q1.fromHex("#000000").transparent(.6),hcDark:l,hcLight:l},n.kg("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),v=(0,s.x1)("progressBar.background",{dark:r.Q1.fromHex("#0E70C0"),light:r.Q1.fromHex("#0E70C0"),hcDark:l,hcLight:l},n.kg("progressBarBackground","Background color of the progress bar that can show for long running operations.")),C=(0,s.x1)("editor.background",{light:"#ffffff",dark:"#1E1E1E",hcDark:r.Q1.black,hcLight:r.Q1.white},n.kg("editorBackground","Editor background color.")),E=(0,s.x1)("editor.foreground",{light:"#333333",dark:"#BBBBBB",hcDark:r.Q1.white,hcLight:o},n.kg("editorForeground","Editor default foreground color.")),b=((0,s.x1)("editorStickyScroll.background",C,n.kg("editorStickyScrollBackground","Background color of sticky scroll in the editor")),(0,s.x1)("editorStickyScrollHover.background",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:null,hcLight:r.Q1.fromHex("#0F4A85").transparent(.1)},n.kg("editorStickyScrollHoverBackground","Background color of sticky scroll on hover in the editor")),(0,s.x1)("editorStickyScroll.border",{dark:null,light:null,hcDark:l,hcLight:l},n.kg("editorStickyScrollBorder","Border color of sticky scroll in the editor")),(0,s.x1)("editorStickyScroll.shadow",p,n.kg("editorStickyScrollShadow"," Shadow color of sticky scroll in the editor")),(0,s.x1)("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hcDark:"#0C141F",hcLight:r.Q1.white},n.kg("editorWidgetBackground","Background color of editor widgets, such as find/replace."))),S=(0,s.x1)("editorWidget.foreground",o,n.kg("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),y=(0,s.x1)("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hcDark:l,hcLight:l},n.kg("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),w=((0,s.x1)("editorWidget.resizeBorder",null,n.kg("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),(0,s.x1)("editorError.background",null,n.kg("editorError.background","Background color of error text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1)("editorError.foreground",{dark:"#F14C4C",light:"#E51400",hcDark:"#F48771",hcLight:"#B5200D"},n.kg("editorError.foreground","Foreground color of error squigglies in the editor."))),R=(0,s.x1)("editorError.border",{dark:null,light:null,hcDark:r.Q1.fromHex("#E47777").transparent(.8),hcLight:"#B5200D"},n.kg("errorBorder","If set, color of double underlines for errors in the editor.")),L=(0,s.x1)("editorWarning.background",null,n.kg("editorWarning.background","Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),T=(0,s.x1)("editorWarning.foreground",{dark:"#CCA700",light:"#BF8803",hcDark:"#FFD370",hcLight:"#895503"},n.kg("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),x=(0,s.x1)("editorWarning.border",{dark:null,light:null,hcDark:r.Q1.fromHex("#FFCC00").transparent(.8),hcLight:r.Q1.fromHex("#FFCC00").transparent(.8)},n.kg("warningBorder","If set, color of double underlines for warnings in the editor.")),k=((0,s.x1)("editorInfo.background",null,n.kg("editorInfo.background","Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1)("editorInfo.foreground",{dark:"#3794FF",light:"#1a85ff",hcDark:"#3794FF",hcLight:"#1a85ff"},n.kg("editorInfo.foreground","Foreground color of info squigglies in the editor."))),A=(0,s.x1)("editorInfo.border",{dark:null,light:null,hcDark:r.Q1.fromHex("#3794FF").transparent(.8),hcLight:"#292929"},n.kg("infoBorder","If set, color of double underlines for infos in the editor.")),N=(0,s.x1)("editorHint.foreground",{dark:r.Q1.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hcDark:null,hcLight:null},n.kg("editorHint.foreground","Foreground color of hint squigglies in the editor.")),I=((0,s.x1)("editorHint.border",{dark:null,light:null,hcDark:r.Q1.fromHex("#eeeeee").transparent(.8),hcLight:"#292929"},n.kg("hintBorder","If set, color of double underlines for hints in the editor.")),(0,s.x1)("editorLink.activeForeground",{dark:"#4E94CE",light:r.Q1.blue,hcDark:r.Q1.cyan,hcLight:"#292929"},n.kg("activeLinkForeground","Color of active links."))),O=(0,s.x1)("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hcDark:"#f3f518",hcLight:"#0F4A85"},n.kg("editorSelectionBackground","Color of the editor selection.")),D=(0,s.x1)("editor.selectionForeground",{light:null,dark:null,hcDark:"#000000",hcLight:r.Q1.white},n.kg("editorSelectionForeground","Color of the selected text for high contrast.")),M=(0,s.x1)("editor.inactiveSelectionBackground",{light:(0,s.JO)(O,.5),dark:(0,s.JO)(O,.5),hcDark:(0,s.JO)(O,.7),hcLight:(0,s.JO)(O,.5)},n.kg("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),P=(0,s.x1)("editor.selectionHighlightBackground",{light:(0,s.oG)(O,C,.3,.6),dark:(0,s.oG)(O,C,.3,.6),hcDark:null,hcLight:null},n.kg("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),F=((0,s.x1)("editor.selectionHighlightBorder",{light:null,dark:null,hcDark:h,hcLight:h},n.kg("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),(0,s.x1)("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hcDark:null,hcLight:null},n.kg("editorFindMatch","Color of the current search match.")),(0,s.x1)("editor.findMatchForeground",null,n.kg("editorFindMatchForeground","Text color of the current search match."))),U=(0,s.x1)("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hcDark:null,hcLight:null},n.kg("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0),H=(0,s.x1)("editor.findMatchHighlightForeground",null,n.kg("findMatchHighlightForeground","Foreground color of the other search matches."),!0),B=((0,s.x1)("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hcDark:null,hcLight:null},n.kg("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1)("editor.findMatchBorder",{light:null,dark:null,hcDark:h,hcLight:h},n.kg("editorFindMatchBorder","Border color of the current search match.")),(0,s.x1)("editor.findMatchHighlightBorder",{light:null,dark:null,hcDark:h,hcLight:h},n.kg("findMatchHighlightBorder","Border color of the other search matches."))),W=(0,s.x1)("editor.findRangeHighlightBorder",{dark:null,light:null,hcDark:(0,s.JO)(h,.4),hcLight:(0,s.JO)(h,.4)},n.kg("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),V=((0,s.x1)("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hcDark:"#ADD6FF26",hcLight:null},n.kg("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1)("editorHoverWidget.background",b,n.kg("hoverBackground","Background color of the editor hover."))),z=((0,s.x1)("editorHoverWidget.foreground",S,n.kg("hoverForeground","Foreground color of the editor hover.")),(0,s.x1)("editorHoverWidget.border",y,n.kg("hoverBorder","Border color of the editor hover."))),G=((0,s.x1)("editorHoverWidget.statusBarBackground",{dark:(0,s.a)(V,.2),light:(0,s.e$)(V,.05),hcDark:b,hcLight:b},n.kg("statusBarBackground","Background color of the editor hover status bar.")),(0,s.x1)("editorInlayHint.foreground",{dark:"#969696",light:"#969696",hcDark:r.Q1.white,hcLight:r.Q1.black},n.kg("editorInlayHintForeground","Foreground color of inline hints"))),j=(0,s.x1)("editorInlayHint.background",{dark:(0,s.JO)(u,.1),light:(0,s.JO)(u,.1),hcDark:(0,s.JO)(r.Q1.white,.1),hcLight:(0,s.JO)(u,.1)},n.kg("editorInlayHintBackground","Background color of inline hints")),K=(0,s.x1)("editorInlayHint.typeForeground",G,n.kg("editorInlayHintForegroundTypes","Foreground color of inline hints for types")),Y=(0,s.x1)("editorInlayHint.typeBackground",j,n.kg("editorInlayHintBackgroundTypes","Background color of inline hints for types")),q=(0,s.x1)("editorInlayHint.parameterForeground",G,n.kg("editorInlayHintForegroundParameter","Foreground color of inline hints for parameters")),$=(0,s.x1)("editorInlayHint.parameterBackground",j,n.kg("editorInlayHintBackgroundParameter","Background color of inline hints for parameters")),Q=(0,s.x1)("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hcDark:"#FFCC00",hcLight:"#007ACC"},n.kg("editorLightBulbForeground","The color used for the lightbulb actions icon.")),X=((0,s.x1)("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},n.kg("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),(0,s.x1)("editorLightBulbAi.foreground",Q,n.kg("editorLightBulbAiForeground","The color used for the lightbulb AI icon.")),(0,s.x1)("editor.snippetTabstopHighlightBackground",{dark:new r.Q1(new r.bU(124,124,124,.3)),light:new r.Q1(new r.bU(10,50,100,.2)),hcDark:new r.Q1(new r.bU(124,124,124,.3)),hcLight:new r.Q1(new r.bU(10,50,100,.2))},n.kg("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),(0,s.x1)("editor.snippetTabstopHighlightBorder",null,n.kg("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),(0,s.x1)("editor.snippetFinalTabstopHighlightBackground",null,n.kg("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),(0,s.x1)("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new r.Q1(new r.bU(10,50,100,.5)),hcDark:"#525252",hcLight:"#292929"},n.kg("snippetFinalTabstopHighlightBorder","Highlight border color of the final tabstop of a snippet.")),new r.Q1(new r.bU(155,185,85,.2))),Z=new r.Q1(new r.bU(255,0,0,.2)),J=(0,s.x1)("diffEditor.insertedTextBackground",{dark:"#9ccc2c33",light:"#9ccc2c40",hcDark:null,hcLight:null},n.kg("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),ee=(0,s.x1)("diffEditor.removedTextBackground",{dark:"#ff000033",light:"#ff000033",hcDark:null,hcLight:null},n.kg("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),te=((0,s.x1)("diffEditor.insertedLineBackground",{dark:X,light:X,hcDark:null,hcLight:null},n.kg("diffEditorInsertedLines","Background color for lines that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1)("diffEditor.removedLineBackground",{dark:Z,light:Z,hcDark:null,hcLight:null},n.kg("diffEditorRemovedLines","Background color for lines that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1)("diffEditorGutter.insertedLineBackground",null,n.kg("diffEditorInsertedLineGutter","Background color for the margin where lines got inserted.")),(0,s.x1)("diffEditorGutter.removedLineBackground",null,n.kg("diffEditorRemovedLineGutter","Background color for the margin where lines got removed.")),(0,s.x1)("diffEditorOverview.insertedForeground",null,n.kg("diffEditorOverviewInserted","Diff overview ruler foreground for inserted content."))),ie=(0,s.x1)("diffEditorOverview.removedForeground",null,n.kg("diffEditorOverviewRemoved","Diff overview ruler foreground for removed content.")),se=((0,s.x1)("diffEditor.insertedTextBorder",{dark:null,light:null,hcDark:"#33ff2eff",hcLight:"#374E06"},n.kg("diffEditorInsertedOutline","Outline color for the text that got inserted.")),(0,s.x1)("diffEditor.removedTextBorder",{dark:null,light:null,hcDark:"#FF008F",hcLight:"#AD0707"},n.kg("diffEditorRemovedOutline","Outline color for text that got removed.")),(0,s.x1)("diffEditor.border",{dark:null,light:null,hcDark:l,hcLight:l},n.kg("diffEditorBorder","Border color between the two text editors.")),(0,s.x1)("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hcDark:null,hcLight:null},n.kg("diffDiagonalFill","Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.")),(0,s.x1)("diffEditor.unchangedRegionBackground","sideBar.background",n.kg("diffEditor.unchangedRegionBackground","The background color of unchanged blocks in the diff editor.")),(0,s.x1)("diffEditor.unchangedRegionForeground","foreground",n.kg("diffEditor.unchangedRegionForeground","The foreground color of unchanged blocks in the diff editor.")),(0,s.x1)("diffEditor.unchangedCodeBackground",{dark:"#74747429",light:"#b8b8b829",hcDark:null,hcLight:null},n.kg("diffEditor.unchangedCodeBackground","The background color of unchanged code in the diff editor.")),(0,s.x1)("widget.shadow",{dark:(0,s.JO)(r.Q1.black,.36),light:(0,s.JO)(r.Q1.black,.16),hcDark:null,hcLight:null},n.kg("widgetShadow","Shadow color of widgets such as find/replace inside the editor."))),ne=(0,s.x1)("widget.border",{dark:null,light:null,hcDark:l,hcLight:l},n.kg("widgetBorder","Border color of widgets such as find/replace inside the editor.")),re=(0,s.x1)("toolbar.hoverBackground",{dark:"#5a5d5e50",light:"#b8b8b850",hcDark:null,hcLight:null},n.kg("toolbarHoverBackground","Toolbar background when hovering over actions using the mouse")),oe=((0,s.x1)("toolbar.hoverOutline",{dark:null,light:null,hcDark:h,hcLight:h},n.kg("toolbarHoverOutline","Toolbar outline when hovering over actions using the mouse")),(0,s.x1)("toolbar.activeBackground",{dark:(0,s.a)(re,.1),light:(0,s.e$)(re,.1),hcDark:null,hcLight:null},n.kg("toolbarActiveBackground","Toolbar background when holding the mouse over actions")),(0,s.x1)("breadcrumb.foreground",(0,s.JO)(o,.8),n.kg("breadcrumbsFocusForeground","Color of focused breadcrumb items."))),ae=(0,s.x1)("breadcrumb.background",C,n.kg("breadcrumbsBackground","Background color of breadcrumb items.")),ce=(0,s.x1)("breadcrumb.focusForeground",{light:(0,s.e$)(o,.2),dark:(0,s.a)(o,.1),hcDark:(0,s.a)(o,.1),hcLight:(0,s.a)(o,.1)},n.kg("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),le=(0,s.x1)("breadcrumb.activeSelectionForeground",{light:(0,s.e$)(o,.2),dark:(0,s.a)(o,.1),hcDark:(0,s.a)(o,.1),hcLight:(0,s.a)(o,.1)},n.kg("breadcrumbsSelectedForeground","Color of selected breadcrumb items.")),he=((0,s.x1)("breadcrumbPicker.background",b,n.kg("breadcrumbsSelectedBackground","Background color of breadcrumb item picker.")),r.Q1.fromHex("#40C8AE").transparent(.5)),de=r.Q1.fromHex("#40A6FF").transparent(.5),ue=r.Q1.fromHex("#606060").transparent(.4),ge=(0,s.x1)("merge.currentHeaderBackground",{dark:he,light:he,hcDark:null,hcLight:null},n.kg("mergeCurrentHeaderBackground","Current header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),pe=((0,s.x1)("merge.currentContentBackground",(0,s.JO)(ge,.4),n.kg("mergeCurrentContentBackground","Current content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1)("merge.incomingHeaderBackground",{dark:de,light:de,hcDark:null,hcLight:null},n.kg("mergeIncomingHeaderBackground","Incoming header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0)),me=((0,s.x1)("merge.incomingContentBackground",(0,s.JO)(pe,.4),n.kg("mergeIncomingContentBackground","Incoming content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1)("merge.commonHeaderBackground",{dark:ue,light:ue,hcDark:null,hcLight:null},n.kg("mergeCommonHeaderBackground","Common ancestor header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0)),fe=((0,s.x1)("merge.commonContentBackground",(0,s.JO)(me,.4),n.kg("mergeCommonContentBackground","Common ancestor content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1)("merge.border",{dark:null,light:null,hcDark:"#C3DF6F",hcLight:"#007ACC"},n.kg("mergeBorder","Border color on headers and the splitter in inline merge-conflicts."))),_e=((0,s.x1)("editorOverviewRuler.currentContentForeground",{dark:(0,s.JO)(ge,1),light:(0,s.JO)(ge,1),hcDark:fe,hcLight:fe},n.kg("overviewRulerCurrentContentForeground","Current overview ruler foreground for inline merge-conflicts.")),(0,s.x1)("editorOverviewRuler.incomingContentForeground",{dark:(0,s.JO)(pe,1),light:(0,s.JO)(pe,1),hcDark:fe,hcLight:fe},n.kg("overviewRulerIncomingContentForeground","Incoming overview ruler foreground for inline merge-conflicts.")),(0,s.x1)("editorOverviewRuler.commonContentForeground",{dark:(0,s.JO)(me,1),light:(0,s.JO)(me,1),hcDark:fe,hcLight:fe},n.kg("overviewRulerCommonContentForeground","Common ancestor overview ruler foreground for inline merge-conflicts.")),(0,s.x1)("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hcDark:"#AB5A00",hcLight:"#AB5A00"},n.kg("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0)),ve=(0,s.x1)("editorOverviewRuler.selectionHighlightForeground","#A0A0A0CC",n.kg("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),Ce=(0,s.x1)("problemsErrorIcon.foreground",w,n.kg("problemsErrorIconForeground","The color used for the problems error icon.")),Ee=(0,s.x1)("problemsWarningIcon.foreground",T,n.kg("problemsWarningIconForeground","The color used for the problems warning icon.")),be=(0,s.x1)("problemsInfoIcon.foreground",k,n.kg("problemsInfoIconForeground","The color used for the problems info icon.")),Se=(0,s.x1)("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hcDark:"#AB5A00",hcLight:"#0F4A85"},n.kg("minimapFindMatchHighlight","Minimap marker color for find matches."),!0),ye=(0,s.x1)("minimap.selectionOccurrenceHighlight",{light:"#c9c9c9",dark:"#676767",hcDark:"#ffffff",hcLight:"#0F4A85"},n.kg("minimapSelectionOccurrenceHighlight","Minimap marker color for repeating editor selections."),!0),we=(0,s.x1)("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hcDark:"#ffffff",hcLight:"#0F4A85"},n.kg("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),Re=(0,s.x1)("minimap.infoHighlight",{dark:k,light:k,hcDark:A,hcLight:A},n.kg("minimapInfo","Minimap marker color for infos.")),Le=(0,s.x1)("minimap.warningHighlight",{dark:T,light:T,hcDark:x,hcLight:x},n.kg("overviewRuleWarning","Minimap marker color for warnings.")),Te=(0,s.x1)("minimap.errorHighlight",{dark:new r.Q1(new r.bU(255,18,18,.7)),light:new r.Q1(new r.bU(255,18,18,.7)),hcDark:new r.Q1(new r.bU(255,50,50,1)),hcLight:"#B5200D"},n.kg("minimapError","Minimap marker color for errors.")),xe=(0,s.x1)("minimap.background",null,n.kg("minimapBackground","Minimap background color.")),ke=(0,s.x1)("minimap.foregroundOpacity",r.Q1.fromHex("#000f"),n.kg("minimapForegroundOpacity",'Opacity of foreground elements rendered in the minimap. For example, "#000000c0" will render the elements with 75% opacity.')),Ae=((0,s.x1)("minimapSlider.background",(0,s.JO)(m,.5),n.kg("minimapSliderBackground","Minimap slider background color.")),(0,s.x1)("minimapSlider.hoverBackground",(0,s.JO)(f,.5),n.kg("minimapSliderHoverBackground","Minimap slider background color when hovering.")),(0,s.x1)("minimapSlider.activeBackground",(0,s.JO)(_,.5),n.kg("minimapSliderActiveBackground","Minimap slider background color when clicked on.")),(0,s.x1)("charts.foreground",o,n.kg("chartsForeground","The foreground color used in charts.")),(0,s.x1)("charts.lines",(0,s.JO)(o,.5),n.kg("chartsLines","The color used for horizontal lines in charts.")),(0,s.x1)("charts.red",w,n.kg("chartsRed","The red color used in chart visualizations.")),(0,s.x1)("charts.blue",k,n.kg("chartsBlue","The blue color used in chart visualizations.")),(0,s.x1)("charts.yellow",T,n.kg("chartsYellow","The yellow color used in chart visualizations.")),(0,s.x1)("charts.orange",Se,n.kg("chartsOrange","The orange color used in chart visualizations.")),(0,s.x1)("charts.green",{dark:"#89D185",light:"#388A34",hcDark:"#89D185",hcLight:"#374e06"},n.kg("chartsGreen","The green color used in chart visualizations.")),(0,s.x1)("charts.purple",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},n.kg("chartsPurple","The purple color used in chart visualizations.")),(0,s.x1)("input.background",{dark:"#3C3C3C",light:r.Q1.white,hcDark:r.Q1.black,hcLight:r.Q1.white},n.kg("inputBoxBackground","Input box background."))),Ne=(0,s.x1)("input.foreground",o,n.kg("inputBoxForeground","Input box foreground.")),Ie=(0,s.x1)("input.border",{dark:null,light:null,hcDark:l,hcLight:l},n.kg("inputBoxBorder","Input box border.")),Oe=(0,s.x1)("inputOption.activeBorder",{dark:"#007ACC",light:"#007ACC",hcDark:l,hcLight:l},n.kg("inputBoxActiveOptionBorder","Border color of activated options in input fields.")),De=(0,s.x1)("inputOption.hoverBackground",{dark:"#5a5d5e80",light:"#b8b8b850",hcDark:null,hcLight:null},n.kg("inputOption.hoverBackground","Background color of activated options in input fields.")),Me=(0,s.x1)("inputOption.activeBackground",{dark:(0,s.JO)(c,.4),light:(0,s.JO)(c,.2),hcDark:r.Q1.transparent,hcLight:r.Q1.transparent},n.kg("inputOption.activeBackground","Background hover color of options in input fields.")),Pe=(0,s.x1)("inputOption.activeForeground",{dark:r.Q1.white,light:r.Q1.black,hcDark:o,hcLight:o},n.kg("inputOption.activeForeground","Foreground color of activated options in input fields.")),Fe=((0,s.x1)("input.placeholderForeground",{light:(0,s.JO)(o,.5),dark:(0,s.JO)(o,.5),hcDark:(0,s.JO)(o,.7),hcLight:(0,s.JO)(o,.7)},n.kg("inputPlaceholderForeground","Input box foreground color for placeholder text.")),(0,s.x1)("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hcDark:r.Q1.black,hcLight:r.Q1.white},n.kg("inputValidationInfoBackground","Input validation background color for information severity."))),Ue=(0,s.x1)("inputValidation.infoForeground",{dark:null,light:null,hcDark:null,hcLight:o},n.kg("inputValidationInfoForeground","Input validation foreground color for information severity.")),He=(0,s.x1)("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hcDark:l,hcLight:l},n.kg("inputValidationInfoBorder","Input validation border color for information severity.")),Be=(0,s.x1)("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hcDark:r.Q1.black,hcLight:r.Q1.white},n.kg("inputValidationWarningBackground","Input validation background color for warning severity.")),We=(0,s.x1)("inputValidation.warningForeground",{dark:null,light:null,hcDark:null,hcLight:o},n.kg("inputValidationWarningForeground","Input validation foreground color for warning severity.")),Ve=(0,s.x1)("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hcDark:l,hcLight:l},n.kg("inputValidationWarningBorder","Input validation border color for warning severity.")),ze=(0,s.x1)("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hcDark:r.Q1.black,hcLight:r.Q1.white},n.kg("inputValidationErrorBackground","Input validation background color for error severity.")),Ge=(0,s.x1)("inputValidation.errorForeground",{dark:null,light:null,hcDark:null,hcLight:o},n.kg("inputValidationErrorForeground","Input validation foreground color for error severity.")),je=(0,s.x1)("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hcDark:l,hcLight:l},n.kg("inputValidationErrorBorder","Input validation border color for error severity.")),Ke=(0,s.x1)("dropdown.background",{dark:"#3C3C3C",light:r.Q1.white,hcDark:r.Q1.black,hcLight:r.Q1.white},n.kg("dropdownBackground","Dropdown background.")),Ye=(0,s.x1)("dropdown.listBackground",{dark:null,light:null,hcDark:r.Q1.black,hcLight:r.Q1.white},n.kg("dropdownListBackground","Dropdown list background.")),qe=(0,s.x1)("dropdown.foreground",{dark:"#F0F0F0",light:o,hcDark:r.Q1.white,hcLight:o},n.kg("dropdownForeground","Dropdown foreground.")),$e=(0,s.x1)("dropdown.border",{dark:Ke,light:"#CECECE",hcDark:l,hcLight:l},n.kg("dropdownBorder","Dropdown border.")),Qe=(0,s.x1)("button.foreground",r.Q1.white,n.kg("buttonForeground","Button foreground color.")),Xe=(0,s.x1)("button.separator",(0,s.JO)(Qe,.4),n.kg("buttonSeparator","Button separator color.")),Ze=(0,s.x1)("button.background",{dark:"#0E639C",light:"#007ACC",hcDark:null,hcLight:"#0F4A85"},n.kg("buttonBackground","Button background color.")),Je=(0,s.x1)("button.hoverBackground",{dark:(0,s.a)(Ze,.2),light:(0,s.e$)(Ze,.2),hcDark:Ze,hcLight:Ze},n.kg("buttonHoverBackground","Button background color when hovering.")),et=(0,s.x1)("button.border",l,n.kg("buttonBorder","Button border color.")),tt=(0,s.x1)("button.secondaryForeground",{dark:r.Q1.white,light:r.Q1.white,hcDark:r.Q1.white,hcLight:o},n.kg("buttonSecondaryForeground","Secondary button foreground color.")),it=(0,s.x1)("button.secondaryBackground",{dark:"#3A3D41",light:"#5F6A79",hcDark:null,hcLight:r.Q1.white},n.kg("buttonSecondaryBackground","Secondary button background color.")),st=(0,s.x1)("button.secondaryHoverBackground",{dark:(0,s.a)(it,.2),light:(0,s.e$)(it,.2),hcDark:null,hcLight:null},n.kg("buttonSecondaryHoverBackground","Secondary button background color when hovering.")),nt=(0,s.x1)("radio.activeForeground",Pe,n.kg("radioActiveForeground","Foreground color of active radio option.")),rt=(0,s.x1)("radio.activeBackground",Me,n.kg("radioBackground","Background color of active radio option.")),ot=(0,s.x1)("radio.activeBorder",Oe,n.kg("radioActiveBorder","Border color of the active radio option.")),at=(0,s.x1)("radio.inactiveForeground",null,n.kg("radioInactiveForeground","Foreground color of inactive radio option.")),ct=(0,s.x1)("radio.inactiveBackground",null,n.kg("radioInactiveBackground","Background color of inactive radio option.")),lt=(0,s.x1)("radio.inactiveBorder",{light:(0,s.JO)(nt,.2),dark:(0,s.JO)(nt,.2),hcDark:(0,s.JO)(nt,.4),hcLight:(0,s.JO)(nt,.2)},n.kg("radioInactiveBorder","Border color of the inactive radio option.")),ht=(0,s.x1)("radio.inactiveHoverBackground",De,n.kg("radioHoverBackground","Background color of inactive active radio option when hovering.")),dt=(0,s.x1)("checkbox.background",Ke,n.kg("checkbox.background","Background color of checkbox widget.")),ut=((0,s.x1)("checkbox.selectBackground",b,n.kg("checkbox.select.background","Background color of checkbox widget when the element it's in is selected.")),(0,s.x1)("checkbox.foreground",qe,n.kg("checkbox.foreground","Foreground color of checkbox widget."))),gt=(0,s.x1)("checkbox.border",$e,n.kg("checkbox.border","Border color of checkbox widget.")),pt=((0,s.x1)("checkbox.selectBorder",a,n.kg("checkbox.select.border","Border color of checkbox widget when the element it's in is selected.")),(0,s.x1)("keybindingLabel.background",{dark:new r.Q1(new r.bU(128,128,128,.17)),light:new r.Q1(new r.bU(221,221,221,.4)),hcDark:r.Q1.transparent,hcLight:r.Q1.transparent},n.kg("keybindingLabelBackground","Keybinding label background color. The keybinding label is used to represent a keyboard shortcut."))),mt=(0,s.x1)("keybindingLabel.foreground",{dark:r.Q1.fromHex("#CCCCCC"),light:r.Q1.fromHex("#555555"),hcDark:r.Q1.white,hcLight:o},n.kg("keybindingLabelForeground","Keybinding label foreground color. The keybinding label is used to represent a keyboard shortcut.")),ft=(0,s.x1)("keybindingLabel.border",{dark:new r.Q1(new r.bU(51,51,51,.6)),light:new r.Q1(new r.bU(204,204,204,.4)),hcDark:new r.Q1(new r.bU(111,195,223)),hcLight:l},n.kg("keybindingLabelBorder","Keybinding label border color. The keybinding label is used to represent a keyboard shortcut.")),_t=(0,s.x1)("keybindingLabel.bottomBorder",{dark:new r.Q1(new r.bU(68,68,68,.6)),light:new r.Q1(new r.bU(187,187,187,.4)),hcDark:new r.Q1(new r.bU(111,195,223)),hcLight:o},n.kg("keybindingLabelBottomBorder","Keybinding label border bottom color. The keybinding label is used to represent a keyboard shortcut.")),vt=(0,s.x1)("list.focusBackground",null,n.kg("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Ct=(0,s.x1)("list.focusForeground",null,n.kg("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Et=(0,s.x1)("list.focusOutline",{dark:c,light:c,hcDark:h,hcLight:h},n.kg("listFocusOutline","List/Tree outline color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),bt=(0,s.x1)("list.focusAndSelectionOutline",null,n.kg("listFocusAndSelectionOutline","List/Tree outline color for the focused item when the list/tree is active and selected. An active list/tree has keyboard focus, an inactive does not.")),St=(0,s.x1)("list.activeSelectionBackground",{dark:"#04395E",light:"#0060C0",hcDark:null,hcLight:r.Q1.fromHex("#0F4A85").transparent(.1)},n.kg("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),yt=(0,s.x1)("list.activeSelectionForeground",{dark:r.Q1.white,light:r.Q1.white,hcDark:null,hcLight:null},n.kg("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),wt=(0,s.x1)("list.activeSelectionIconForeground",null,n.kg("listActiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Rt=(0,s.x1)("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hcDark:null,hcLight:r.Q1.fromHex("#0F4A85").transparent(.1)},n.kg("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),Lt=(0,s.x1)("list.inactiveSelectionForeground",null,n.kg("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),Tt=(0,s.x1)("list.inactiveSelectionIconForeground",null,n.kg("listInactiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),xt=(0,s.x1)("list.inactiveFocusBackground",null,n.kg("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),kt=(0,s.x1)("list.inactiveFocusOutline",null,n.kg("listInactiveFocusOutline","List/Tree outline color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),At=(0,s.x1)("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:r.Q1.white.transparent(.1),hcLight:r.Q1.fromHex("#0F4A85").transparent(.1)},n.kg("listHoverBackground","List/Tree background when hovering over items using the mouse.")),Nt=(0,s.x1)("list.hoverForeground",null,n.kg("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),It=(0,s.x1)("list.dropBackground",{dark:"#062F4A",light:"#D6EBFF",hcDark:null,hcLight:null},n.kg("listDropBackground","List/Tree drag and drop background when moving items over other items when using the mouse.")),Ot=(0,s.x1)("list.dropBetweenBackground",{dark:a,light:a,hcDark:null,hcLight:null},n.kg("listDropBetweenBackground","List/Tree drag and drop border color when moving items between items when using the mouse.")),Dt=(0,s.x1)("list.highlightForeground",{dark:"#2AAAFF",light:"#0066BF",hcDark:c,hcLight:c},n.kg("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")),Mt=(0,s.x1)("list.focusHighlightForeground",{dark:Dt,light:(0,s.Hz)(St,Dt,"#BBE7FF"),hcDark:Dt,hcLight:Dt},n.kg("listFocusHighlightForeground","List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree.")),Pt=((0,s.x1)("list.invalidItemForeground",{dark:"#B89500",light:"#B89500",hcDark:"#B89500",hcLight:"#B5200D"},n.kg("invalidItemForeground","List/Tree foreground color for invalid items, for example an unresolved root in explorer.")),(0,s.x1)("list.errorForeground",{dark:"#F88070",light:"#B01011",hcDark:null,hcLight:null},n.kg("listErrorForeground","Foreground color of list items containing errors.")),(0,s.x1)("list.warningForeground",{dark:"#CCA700",light:"#855F00",hcDark:null,hcLight:null},n.kg("listWarningForeground","Foreground color of list items containing warnings.")),(0,s.x1)("listFilterWidget.background",{light:(0,s.e$)(b,0),dark:(0,s.a)(b,0),hcDark:b,hcLight:b},n.kg("listFilterWidgetBackground","Background color of the type filter widget in lists and trees."))),Ft=(0,s.x1)("listFilterWidget.outline",{dark:r.Q1.transparent,light:r.Q1.transparent,hcDark:"#f38518",hcLight:"#007ACC"},n.kg("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),Ut=(0,s.x1)("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hcDark:l,hcLight:l},n.kg("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),Ht=(0,s.x1)("listFilterWidget.shadow",se,n.kg("listFilterWidgetShadow","Shadow color of the type filter widget in lists and trees.")),Bt=((0,s.x1)("list.filterMatchBackground",{dark:U,light:U,hcDark:null,hcLight:null},n.kg("listFilterMatchHighlight","Background color of the filtered match.")),(0,s.x1)("list.filterMatchBorder",{dark:B,light:B,hcDark:l,hcLight:h},n.kg("listFilterMatchHighlightBorder","Border color of the filtered match.")),(0,s.x1)("list.deemphasizedForeground",{dark:"#8C8C8C",light:"#8E8E90",hcDark:"#A7A8A9",hcLight:"#666666"},n.kg("listDeemphasizedForeground","List/Tree foreground color for items that are deemphasized.")),(0,s.x1)("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hcDark:"#a9a9a9",hcLight:"#a5a5a5"},n.kg("treeIndentGuidesStroke","Tree stroke color for the indentation guides."))),Wt=(0,s.x1)("tree.inactiveIndentGuidesStroke",(0,s.JO)(Bt,.4),n.kg("treeInactiveIndentGuidesStroke","Tree stroke color for the indentation guides that are not active.")),Vt=(0,s.x1)("tree.tableColumnsBorder",{dark:"#CCCCCC20",light:"#61616120",hcDark:null,hcLight:null},n.kg("tableColumnsBorder","Table border color between columns.")),zt=(0,s.x1)("tree.tableOddRowsBackground",{dark:(0,s.JO)(o,.04),light:(0,s.JO)(o,.04),hcDark:null,hcLight:null},n.kg("tableOddRowsBackgroundColor","Background color for odd table rows.")),Gt=((0,s.x1)("editorActionList.background",b,n.kg("editorActionListBackground","Action List background color.")),(0,s.x1)("editorActionList.foreground",S,n.kg("editorActionListForeground","Action List foreground color.")),(0,s.x1)("editorActionList.focusForeground",yt,n.kg("editorActionListFocusForeground","Action List foreground color for the focused item.")),(0,s.x1)("editorActionList.focusBackground",St,n.kg("editorActionListFocusBackground","Action List background color for the focused item.")),(0,s.x1)("menu.border",{dark:null,light:null,hcDark:l,hcLight:l},n.kg("menuBorder","Border color of menus."))),jt=(0,s.x1)("menu.foreground",qe,n.kg("menuForeground","Foreground color of menu items.")),Kt=(0,s.x1)("menu.background",Ke,n.kg("menuBackground","Background color of menu items.")),Yt=(0,s.x1)("menu.selectionForeground",yt,n.kg("menuSelectionForeground","Foreground color of the selected menu item in menus.")),qt=(0,s.x1)("menu.selectionBackground",St,n.kg("menuSelectionBackground","Background color of the selected menu item in menus.")),$t=(0,s.x1)("menu.selectionBorder",{dark:null,light:null,hcDark:h,hcLight:h},n.kg("menuSelectionBorder","Border color of the selected menu item in menus.")),Qt=(0,s.x1)("menu.separatorBackground",{dark:"#606060",light:"#D4D4D4",hcDark:l,hcLight:l},n.kg("menuSeparatorBackground","Color of a separator menu item in menus.")),Xt=(0,s.x1)("quickInput.background",b,n.kg("pickerBackground","Quick picker background color. The quick picker widget is the container for pickers like the command palette.")),Zt=(0,s.x1)("quickInput.foreground",S,n.kg("pickerForeground","Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")),Jt=(0,s.x1)("quickInputTitle.background",{dark:new r.Q1(new r.bU(255,255,255,.105)),light:new r.Q1(new r.bU(0,0,0,.06)),hcDark:"#000000",hcLight:r.Q1.white},n.kg("pickerTitleBackground","Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")),ei=(0,s.x1)("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hcDark:r.Q1.white,hcLight:"#0F4A85"},n.kg("pickerGroupForeground","Quick picker color for grouping labels.")),ti=(0,s.x1)("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hcDark:r.Q1.white,hcLight:"#0F4A85"},n.kg("pickerGroupBorder","Quick picker color for grouping borders.")),ii=(0,s.x1)("quickInput.list.focusBackground",null,"",void 0,n.kg("quickInput.list.focusBackground deprecation","Please use quickInputList.focusBackground instead")),si=(0,s.x1)("quickInputList.focusForeground",yt,n.kg("quickInput.listFocusForeground","Quick picker foreground color for the focused item.")),ni=(0,s.x1)("quickInputList.focusIconForeground",wt,n.kg("quickInput.listFocusIconForeground","Quick picker icon foreground color for the focused item.")),ri=(0,s.x1)("quickInputList.focusBackground",{dark:(0,s.yL)(ii,St),light:(0,s.yL)(ii,St),hcDark:null,hcLight:null},n.kg("quickInput.listFocusBackground","Quick picker background color for the focused item."));(0,s.x1)("search.resultsInfoForeground",{light:o,dark:(0,s.JO)(o,.65),hcDark:o,hcLight:o},n.kg("search.resultsInfoForeground","Color of the text in the search viewlet's completion message.")),(0,s.x1)("searchEditor.findMatchBackground",{light:(0,s.JO)(U,.66),dark:(0,s.JO)(U,.66),hcDark:U,hcLight:U},n.kg("searchEditor.queryMatch","Color of the Search Editor query matches.")),(0,s.x1)("searchEditor.findMatchBorder",{light:(0,s.JO)(B,.66),dark:(0,s.JO)(B,.66),hcDark:B,hcLight:B},n.kg("searchEditor.editorFindMatchBorder","Border color of the Search Editor query matches."))},66643:(e,t,i)=>{"use strict";i.d(t,{W:()=>p});var s=i(3357),n=i(87924),r=i.n(n),o=i(52708),a=i.n(o),c=i(8964);var l=i(38469),h=i.n(l);function d(e,t,i){if("plugins"===i){const i=[...e],s=[...t];let n=i.map((e=>{const t=s.findIndex((({type:t})=>t===e.type));if(-1!==t){const i=s[t];return s.splice(t,1),{type:e.type,renderer:i.renderer}}return e}));return s.length>0&&(n=[...n,...s]),n}return h()(e)?a()(e,t,d):t}const u=new class{constructor(){this.events={}}on(e,t){this.events[e]?this.events[e].push(t):this.events[e]=[t]}off(e,t){this.events[e]&&(this.events[e]=this.events[e].filter((({id:e})=>e!==t)))}dispatch(e,t){this.events[e]&&this.events[e].forEach((({action:e})=>{e(t)}))}},g=e=>{(0,s.jK)({lang:e}),c.J.setLang(e)};const p=new class{constructor(){this.settings={plugins:[],lang:"en"},g(this.get("lang"))}get(e){return r()(this.settings,e)}set(e){const t=(i=e,Object.entries(i).reduce(((e,[t,i])=>("undefined"!==typeof i&&(e[t]=i),e)),{}));var i;if(this.settings=a()(this.settings,t,d),t.lang){const e=t.lang||this.get("lang");g(e),u.dispatch("change-lang",e)}}}},66668:(e,t,i)=>{e.exports=i(64066)},66700:(e,t,i)=>{"use strict";i.d(t,{ur:()=>w,uO:()=>x});var s=i(42731),n=i(8597),r=i(56245),o=i(25154),a=i(31295),c=i(25890),l=i(90766),h=i(58694),d=i(41234),u=i(5662),g=i(92719),p=i(49353);function m(e,t){const i=[];for(const s of t){if(e.start>=s.range.end)continue;if(e.end<s.range.start)break;const t=g.Q.intersect(e,s.range);g.Q.isEmpty(t)||i.push({range:t,size:s.size})}return i}function f({start:e,end:t},i){return{start:e+i,end:t+i}}class _{get paddingTop(){return this._paddingTop}set paddingTop(e){this._size=this._size+e-this._paddingTop,this._paddingTop=e}constructor(e){this.groups=[],this._size=0,this._paddingTop=0,this._paddingTop=e??0,this._size=this._paddingTop}splice(e,t,i=[]){const s=i.length-t,n=m({start:0,end:e},this.groups),r=m({start:e+t,end:Number.POSITIVE_INFINITY},this.groups).map((e=>({range:f(e.range,s),size:e.size}))),o=i.map(((t,i)=>({range:{start:e+i,end:e+i+1},size:t.size})));this.groups=function(...e){return function(e){const t=[];let i=null;for(const s of e){const e=s.range.start,n=s.range.end,r=s.size;i&&r===i.size?i.range.end=n:(i={range:{start:e,end:n},size:r},t.push(i))}return t}(e.reduce(((e,t)=>e.concat(t)),[]))}(n,o,r),this._size=this._paddingTop+this.groups.reduce(((e,t)=>e+t.size*(t.range.end-t.range.start)),0)}get count(){const e=this.groups.length;return e?this.groups[e-1].range.end:0}get size(){return this._size}indexAt(e){if(e<0)return-1;if(e<this._paddingTop)return 0;let t=0,i=this._paddingTop;for(const s of this.groups){const n=s.range.end-s.range.start,r=i+n*s.size;if(e<r)return t+Math.floor((e-i)/s.size);t+=n,i=r}return t}indexAfter(e){return Math.min(this.indexAt(e)+1,this.count)}positionAt(e){if(e<0)return-1;let t=0,i=0;for(const s of this.groups){const n=s.range.end-s.range.start,r=i+n;if(e<r)return this._paddingTop+t+(e-i)*s.size;t+=n*s.size,i=r}return-1}}class v{constructor(e){this.renderers=e,this.cache=new Map,this.transactionNodesPendingRemoval=new Set,this.inTransaction=!1}alloc(e){let t=this.getTemplateCache(e).pop(),i=!1;if(t)i=this.transactionNodesPendingRemoval.has(t.domNode),i&&this.transactionNodesPendingRemoval.delete(t.domNode);else{const i=(0,n.$)(".monaco-list-row");t={domNode:i,templateId:e,templateData:this.getRenderer(e).renderTemplate(i)}}return{row:t,isReusingConnectedDomNode:i}}release(e){e&&this.releaseRow(e)}transact(e){if(this.inTransaction)throw new Error("Already in transaction");this.inTransaction=!0;try{e()}finally{for(const e of this.transactionNodesPendingRemoval)this.doRemoveNode(e);this.transactionNodesPendingRemoval.clear(),this.inTransaction=!1}}releaseRow(e){const{domNode:t,templateId:i}=e;t&&(this.inTransaction?this.transactionNodesPendingRemoval.add(t):this.doRemoveNode(t));this.getTemplateCache(i).push(e)}doRemoveNode(e){e.classList.remove("scrolling"),e.remove()}getTemplateCache(e){let t=this.cache.get(e);return t||(t=[],this.cache.set(e,t)),t}dispose(){this.cache.forEach(((e,t)=>{for(const i of e){this.getRenderer(t).disposeTemplate(i.templateData),i.templateData=null}})),this.cache.clear(),this.transactionNodesPendingRemoval.clear()}getRenderer(e){const t=this.renderers.get(e);if(!t)throw new Error(`No renderer found for ${e}`);return t}}var C=i(64383),E=i(1592),b=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};const S={CurrentDragAndDropData:void 0},y={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0,setRowHeight:!0,supportDynamicHeights:!1,dnd:{getDragElements:e=>[e],getDragURI:()=>null,onDragStart(){},onDragOver:()=>!1,drop(){},dispose(){}},horizontalScrolling:!1,transformOptimization:!0,alwaysConsumeMouseWheel:!0};class w{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class R{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class L{constructor(){this.types=[],this.files=[]}update(e){if(e.types&&this.types.splice(0,this.types.length,...e.types),e.files){this.files.splice(0,this.files.length);for(let t=0;t<e.files.length;t++){const i=e.files.item(t);i&&(i.size||i.type)&&this.files.push(i)}}}getData(){return{types:this.types,files:this.files}}}class T{constructor(e){this.getSetSize=e?.getSetSize?e.getSetSize.bind(e):(e,t,i)=>i,this.getPosInSet=e?.getPosInSet?e.getPosInSet.bind(e):(e,t)=>t+1,this.getRole=e?.getRole?e.getRole.bind(e):e=>"listitem",this.isChecked=e?.isChecked?e.isChecked.bind(e):e=>{}}}class x{static{this.InstanceCount=0}get contentHeight(){return this.rangeMap.size}get onDidScroll(){return this.scrollableElement.onScroll}get scrollableElementDomNode(){return this.scrollableElement.getDomNode()}get horizontalScrolling(){return this._horizontalScrolling}set horizontalScrolling(e){if(e!==this._horizontalScrolling){if(e&&this.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");if(this._horizontalScrolling=e,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this._horizontalScrolling){for(const e of this.items)this.measureItemWidth(e);this.updateScrollWidth(),this.scrollableElement.setScrollDimensions({width:(0,n.y6)(this.domNode)}),this.rowsContainer.style.width=`${Math.max(this.scrollWidth||0,this.renderWidth)}px`}else this.scrollableElementWidthDelayer.cancel(),this.scrollableElement.setScrollDimensions({width:this.renderWidth,scrollWidth:this.renderWidth}),this.rowsContainer.style.width=""}}constructor(e,t,i,s=y){if(this.virtualDelegate=t,this.domId="list_id_"+ ++x.InstanceCount,this.renderers=new Map,this.renderWidth=0,this._scrollHeight=0,this.scrollableElementUpdateDisposable=null,this.scrollableElementWidthDelayer=new l.ve(50),this.splicing=!1,this.dragOverAnimationStopDisposable=u.jG.None,this.dragOverMouseY=0,this.canDrop=!1,this.currentDragFeedbackDisposable=u.jG.None,this.onDragLeaveTimeout=u.jG.None,this.disposables=new u.Cm,this._onDidChangeContentHeight=new d.vl,this._onDidChangeContentWidth=new d.vl,this.onDidChangeContentHeight=d.Jh.latch(this._onDidChangeContentHeight.event,void 0,this.disposables),this._horizontalScrolling=!1,s.horizontalScrolling&&s.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");this.items=[],this.itemId=0,this.rangeMap=this.createRangeMap(s.paddingTop??0);for(const n of i)this.renderers.set(n.templateId,n);this.cache=this.disposables.add(new v(this.renderers)),this.lastRenderTop=0,this.lastRenderHeight=0,this.domNode=document.createElement("div"),this.domNode.className="monaco-list",this.domNode.classList.add(this.domId),this.domNode.tabIndex=0,this.domNode.classList.toggle("mouse-support","boolean"!==typeof s.mouseSupport||s.mouseSupport),this._horizontalScrolling=s.horizontalScrolling??y.horizontalScrolling,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this.paddingBottom="undefined"===typeof s.paddingBottom?0:s.paddingBottom,this.accessibilityProvider=new T(s.accessibilityProvider),this.rowsContainer=document.createElement("div"),this.rowsContainer.className="monaco-list-rows";(s.transformOptimization??y.transformOptimization)&&(this.rowsContainer.style.transform="translate3d(0px, 0px, 0px)",this.rowsContainer.style.overflow="hidden",this.rowsContainer.style.contain="strict"),this.disposables.add(o.q.addTarget(this.rowsContainer)),this.scrollable=this.disposables.add(new p.yE({forceIntegerValues:!0,smoothScrollDuration:s.smoothScrolling?125:0,scheduleAtNextAnimationFrame:e=>(0,n.PG)((0,n.zk)(this.domNode),e)})),this.scrollableElement=this.disposables.add(new a.oO(this.rowsContainer,{alwaysConsumeMouseWheel:s.alwaysConsumeMouseWheel??y.alwaysConsumeMouseWheel,horizontal:1,vertical:s.verticalScrollMode??y.verticalScrollMode,useShadows:s.useShadows??y.useShadows,mouseWheelScrollSensitivity:s.mouseWheelScrollSensitivity,fastScrollSensitivity:s.fastScrollSensitivity,scrollByPage:s.scrollByPage},this.scrollable)),this.domNode.appendChild(this.scrollableElement.getDomNode()),e.appendChild(this.domNode),this.scrollableElement.onScroll(this.onScroll,this,this.disposables),this.disposables.add((0,n.ko)(this.rowsContainer,o.B.Change,(e=>this.onTouchChange(e)))),this.disposables.add((0,n.ko)(this.scrollableElement.getDomNode(),"scroll",(e=>e.target.scrollTop=0))),this.disposables.add((0,n.ko)(this.domNode,"dragover",(e=>this.onDragOver(this.toDragEvent(e))))),this.disposables.add((0,n.ko)(this.domNode,"drop",(e=>this.onDrop(this.toDragEvent(e))))),this.disposables.add((0,n.ko)(this.domNode,"dragleave",(e=>this.onDragLeave(this.toDragEvent(e))))),this.disposables.add((0,n.ko)(this.domNode,"dragend",(e=>this.onDragEnd(e)))),this.setRowLineHeight=s.setRowLineHeight??y.setRowLineHeight,this.setRowHeight=s.setRowHeight??y.setRowHeight,this.supportDynamicHeights=s.supportDynamicHeights??y.supportDynamicHeights,this.dnd=s.dnd??this.disposables.add(y.dnd),this.layout(s.initialSize?.height,s.initialSize?.width)}updateOptions(e){let t;if(void 0!==e.paddingBottom&&(this.paddingBottom=e.paddingBottom,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),void 0!==e.smoothScrolling&&this.scrollable.setSmoothScrollDuration(e.smoothScrolling?125:0),void 0!==e.horizontalScrolling&&(this.horizontalScrolling=e.horizontalScrolling),void 0!==e.scrollByPage&&(t={...t??{},scrollByPage:e.scrollByPage}),void 0!==e.mouseWheelScrollSensitivity&&(t={...t??{},mouseWheelScrollSensitivity:e.mouseWheelScrollSensitivity}),void 0!==e.fastScrollSensitivity&&(t={...t??{},fastScrollSensitivity:e.fastScrollSensitivity}),t&&this.scrollableElement.updateOptions(t),void 0!==e.paddingTop&&e.paddingTop!==this.rangeMap.paddingTop){const t=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),i=e.paddingTop-this.rangeMap.paddingTop;this.rangeMap.paddingTop=e.paddingTop,this.render(t,Math.max(0,this.lastRenderTop+i),this.lastRenderHeight,void 0,void 0,!0),this.setScrollTop(this.lastRenderTop),this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.lastRenderTop,this.lastRenderHeight)}}createRangeMap(e){return new _(e)}splice(e,t,i=[]){if(this.splicing)throw new Error("Can't run recursive splices.");this.splicing=!0;try{return this._splice(e,t,i)}finally{this.splicing=!1,this._onDidChangeContentHeight.fire(this.contentHeight)}}_splice(e,t,i=[]){const s=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),n={start:e,end:e+t},r=g.Q.intersect(s,n),o=new Map;for(let u=r.end-1;u>=r.start;u--){const e=this.items[u];if(e.dragStartDisposable.dispose(),e.checkedDisposable.dispose(),e.row){let t=o.get(e.templateId);t||(t=[],o.set(e.templateId,t));const i=this.renderers.get(e.templateId);i&&i.disposeElement&&i.disposeElement(e.element,u,e.row.templateData,e.size),t.unshift(e.row)}e.row=null,e.stale=!0}const a={start:e+t,end:this.items.length},c=g.Q.intersect(a,s),l=g.Q.relativeComplement(a,s),h=i.map((e=>({id:String(this.itemId++),element:e,templateId:this.virtualDelegate.getTemplateId(e),size:this.virtualDelegate.getHeight(e),width:void 0,hasDynamicHeight:!!this.virtualDelegate.hasDynamicHeight&&this.virtualDelegate.hasDynamicHeight(e),lastDynamicHeightWidth:void 0,row:null,uri:void 0,dropTarget:!1,dragStartDisposable:u.jG.None,checkedDisposable:u.jG.None,stale:!1})));let d;0===e&&t>=this.items.length?(this.rangeMap=this.createRangeMap(this.rangeMap.paddingTop),this.rangeMap.splice(0,0,h),d=this.items,this.items=h):(this.rangeMap.splice(e,t,h),d=this.items.splice(e,t,...h));const p=i.length-t,m=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),_=f(c,p),v=g.Q.intersect(m,_);for(let u=v.start;u<v.end;u++)this.updateItemInDOM(this.items[u],u);const C=g.Q.relativeComplement(_,m);for(const u of C)for(let e=u.start;e<u.end;e++)this.removeItemFromDOM(e);const E=l.map((e=>f(e,p))),b=[{start:e,end:e+i.length},...E].map((e=>g.Q.intersect(m,e))).reverse();for(const u of b)for(let e=u.end-1;e>=u.start;e--){const t=this.items[e],i=o.get(t.templateId),s=i?.pop();this.insertItemInDOM(e,s)}for(const u of o.values())for(const e of u)this.cache.release(e);return this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),d.map((e=>e.element))}eventuallyUpdateScrollDimensions(){this._scrollHeight=this.contentHeight,this.rowsContainer.style.height=`${this._scrollHeight}px`,this.scrollableElementUpdateDisposable||(this.scrollableElementUpdateDisposable=(0,n.PG)((0,n.zk)(this.domNode),(()=>{this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight}),this.updateScrollWidth(),this.scrollableElementUpdateDisposable=null})))}eventuallyUpdateScrollWidth(){this.horizontalScrolling?this.scrollableElementWidthDelayer.trigger((()=>this.updateScrollWidth())):this.scrollableElementWidthDelayer.cancel()}updateScrollWidth(){if(!this.horizontalScrolling)return;let e=0;for(const t of this.items)"undefined"!==typeof t.width&&(e=Math.max(e,t.width));this.scrollWidth=e,this.scrollableElement.setScrollDimensions({scrollWidth:0===e?0:e+10}),this._onDidChangeContentWidth.fire(this.scrollWidth)}rerender(){if(this.supportDynamicHeights){for(const e of this.items)e.lastDynamicHeightWidth=void 0;this._rerender(this.lastRenderTop,this.lastRenderHeight)}}get length(){return this.items.length}get renderHeight(){return this.scrollableElement.getScrollDimensions().height}get firstVisibleIndex(){return this.getRenderRange(this.lastRenderTop,this.lastRenderHeight).start}element(e){return this.items[e].element}indexOf(e){return this.items.findIndex((t=>t.element===e))}domElement(e){const t=this.items[e].row;return t&&t.domNode}elementHeight(e){return this.items[e].size}elementTop(e){return this.rangeMap.positionAt(e)}indexAt(e){return this.rangeMap.indexAt(e)}indexAfter(e){return this.rangeMap.indexAfter(e)}layout(e,t){const i={height:"number"===typeof e?e:(0,n.H4)(this.domNode)};this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,i.scrollHeight=this.scrollHeight),this.scrollableElement.setScrollDimensions(i),"undefined"!==typeof t&&(this.renderWidth=t,this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight)),this.horizontalScrolling&&this.scrollableElement.setScrollDimensions({width:"number"===typeof t?t:(0,n.y6)(this.domNode)})}render(e,t,i,s,n,r=!1){const o=this.getRenderRange(t,i),a=g.Q.relativeComplement(o,e).reverse(),c=g.Q.relativeComplement(e,o);if(r){const t=g.Q.intersect(e,o);for(let e=t.start;e<t.end;e++)this.updateItemInDOM(this.items[e],e)}this.cache.transact((()=>{for(const e of c)for(let t=e.start;t<e.end;t++)this.removeItemFromDOM(t);for(const e of a)for(let t=e.end-1;t>=e.start;t--)this.insertItemInDOM(t)})),void 0!==s&&(this.rowsContainer.style.left=`-${s}px`),this.rowsContainer.style.top=`-${t}px`,this.horizontalScrolling&&void 0!==n&&(this.rowsContainer.style.width=`${Math.max(n,this.renderWidth)}px`),this.lastRenderTop=t,this.lastRenderHeight=i}insertItemInDOM(e,t){const i=this.items[e];if(!i.row)if(t)i.row=t,i.stale=!0;else{const e=this.cache.alloc(i.templateId);i.row=e.row,i.stale||=e.isReusingConnectedDomNode}const s=this.accessibilityProvider.getRole(i.element)||"listitem";i.row.domNode.setAttribute("role",s);const r=this.accessibilityProvider.isChecked(i.element);if("boolean"===typeof r)i.row.domNode.setAttribute("aria-checked",String(!!r));else if(r){const e=e=>i.row.domNode.setAttribute("aria-checked",String(!!e));e(r.value),i.checkedDisposable=r.onDidChange((()=>e(r.value)))}if(i.stale||!i.row.domNode.parentElement){const t=this.items.at(e+1)?.row?.domNode??null;i.row.domNode.parentElement===this.rowsContainer&&i.row.domNode.nextElementSibling===t||this.rowsContainer.insertBefore(i.row.domNode,t),i.stale=!1}this.updateItemInDOM(i,e);const o=this.renderers.get(i.templateId);if(!o)throw new Error(`No renderer found for template id ${i.templateId}`);o?.renderElement(i.element,e,i.row.templateData,i.size);const a=this.dnd.getDragURI(i.element);i.dragStartDisposable.dispose(),i.row.domNode.draggable=!!a,a&&(i.dragStartDisposable=(0,n.ko)(i.row.domNode,"dragstart",(e=>this.onDragStart(i.element,a,e)))),this.horizontalScrolling&&(this.measureItemWidth(i),this.eventuallyUpdateScrollWidth())}measureItemWidth(e){if(!e.row||!e.row.domNode)return;e.row.domNode.style.width="fit-content",e.width=(0,n.y6)(e.row.domNode);const t=(0,n.zk)(e.row.domNode).getComputedStyle(e.row.domNode);t.paddingLeft&&(e.width+=parseFloat(t.paddingLeft)),t.paddingRight&&(e.width+=parseFloat(t.paddingRight)),e.row.domNode.style.width=""}updateItemInDOM(e,t){e.row.domNode.style.top=`${this.elementTop(t)}px`,this.setRowHeight&&(e.row.domNode.style.height=`${e.size}px`),this.setRowLineHeight&&(e.row.domNode.style.lineHeight=`${e.size}px`),e.row.domNode.setAttribute("data-index",`${t}`),e.row.domNode.setAttribute("data-last-element",t===this.length-1?"true":"false"),e.row.domNode.setAttribute("data-parity",t%2===0?"even":"odd"),e.row.domNode.setAttribute("aria-setsize",String(this.accessibilityProvider.getSetSize(e.element,t,this.length))),e.row.domNode.setAttribute("aria-posinset",String(this.accessibilityProvider.getPosInSet(e.element,t))),e.row.domNode.setAttribute("id",this.getElementDomId(t)),e.row.domNode.classList.toggle("drop-target",e.dropTarget)}removeItemFromDOM(e){const t=this.items[e];if(t.dragStartDisposable.dispose(),t.checkedDisposable.dispose(),t.row){const i=this.renderers.get(t.templateId);i&&i.disposeElement&&i.disposeElement(t.element,e,t.row.templateData,t.size),this.cache.release(t.row),t.row=null}this.horizontalScrolling&&this.eventuallyUpdateScrollWidth()}getScrollTop(){return this.scrollableElement.getScrollPosition().scrollTop}setScrollTop(e,t){this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),this.scrollableElement.setScrollPosition({scrollTop:e,reuseAnimation:t})}get scrollTop(){return this.getScrollTop()}set scrollTop(e){this.setScrollTop(e)}get scrollHeight(){return this._scrollHeight+(this.horizontalScrolling?10:0)+this.paddingBottom}get onMouseClick(){return d.Jh.map(this.disposables.add(new r.f(this.domNode,"click")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onMouseDblClick(){return d.Jh.map(this.disposables.add(new r.f(this.domNode,"dblclick")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onMouseMiddleClick(){return d.Jh.filter(d.Jh.map(this.disposables.add(new r.f(this.domNode,"auxclick")).event,(e=>this.toMouseEvent(e)),this.disposables),(e=>1===e.browserEvent.button),this.disposables)}get onMouseDown(){return d.Jh.map(this.disposables.add(new r.f(this.domNode,"mousedown")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onMouseOver(){return d.Jh.map(this.disposables.add(new r.f(this.domNode,"mouseover")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onMouseOut(){return d.Jh.map(this.disposables.add(new r.f(this.domNode,"mouseout")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onContextMenu(){return d.Jh.any(d.Jh.map(this.disposables.add(new r.f(this.domNode,"contextmenu")).event,(e=>this.toMouseEvent(e)),this.disposables),d.Jh.map(this.disposables.add(new r.f(this.domNode,o.B.Contextmenu)).event,(e=>this.toGestureEvent(e)),this.disposables))}get onTouchStart(){return d.Jh.map(this.disposables.add(new r.f(this.domNode,"touchstart")).event,(e=>this.toTouchEvent(e)),this.disposables)}get onTap(){return d.Jh.map(this.disposables.add(new r.f(this.rowsContainer,o.B.Tap)).event,(e=>this.toGestureEvent(e)),this.disposables)}toMouseEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i="undefined"===typeof t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element}}toTouchEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i="undefined"===typeof t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element}}toGestureEvent(e){const t=this.getItemIndexFromEventTarget(e.initialTarget||null),i="undefined"===typeof t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element}}toDragEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i="undefined"===typeof t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element,sector:this.getTargetSector(e,t)}}onScroll(e){try{const t=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight);this.render(t,e.scrollTop,e.height,e.scrollLeft,e.scrollWidth),this.supportDynamicHeights&&this._rerender(e.scrollTop,e.height,e.inSmoothScrolling)}catch(t){throw console.error("Got bad scroll event:",e),t}}onTouchChange(e){e.preventDefault(),e.stopPropagation(),this.scrollTop-=e.translationY}onDragStart(e,t,i){if(!i.dataTransfer)return;const r=this.dnd.getDragElements(e);if(i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setData(s.t.TEXT,t),i.dataTransfer.setDragImage){let e;this.dnd.getDragLabel&&(e=this.dnd.getDragLabel(r,i)),"undefined"===typeof e&&(e=String(r.length));const t=(0,n.$)(".monaco-drag-image");t.textContent=e;(e=>{for(;e&&!e.classList.contains("monaco-workbench");)e=e.parentElement;return e||this.domNode.ownerDocument})(this.domNode).appendChild(t),i.dataTransfer.setDragImage(t,-10,-10),setTimeout((()=>t.remove()),0)}this.domNode.classList.add("dragging"),this.currentDragData=new w(r),S.CurrentDragAndDropData=new R(r),this.dnd.onDragStart?.(this.currentDragData,i)}onDragOver(e){if(e.browserEvent.preventDefault(),this.onDragLeaveTimeout.dispose(),S.CurrentDragAndDropData&&"vscode-ui"===S.CurrentDragAndDropData.getData())return!1;if(this.setupDragAndDropScrollTopAnimation(e.browserEvent),!e.browserEvent.dataTransfer)return!1;if(!this.currentDragData)if(S.CurrentDragAndDropData)this.currentDragData=S.CurrentDragAndDropData;else{if(!e.browserEvent.dataTransfer.types)return!1;this.currentDragData=new L}const t=this.dnd.onDragOver(this.currentDragData,e.element,e.index,e.sector,e.browserEvent);if(this.canDrop="boolean"===typeof t?t:t.accept,!this.canDrop)return this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),!1;let i;e.browserEvent.dataTransfer.dropEffect="boolean"!==typeof t&&0===t.effect?.type?"copy":"move",i="boolean"!==typeof t&&t.feedback?t.feedback:"undefined"===typeof e.index?[-1]:[e.index],i=(0,c.dM)(i).filter((e=>e>=-1&&e<this.length)).sort(((e,t)=>e-t)),i=-1===i[0]?[-1]:i;let s="boolean"!==typeof t&&t.effect&&t.effect.position?t.effect.position:"drop-target";if(n=this.currentDragFeedback,r=i,(Array.isArray(n)&&Array.isArray(r)?(0,c.aI)(n,r):n===r)&&this.currentDragFeedbackPosition===s)return!0;var n,r;if(this.currentDragFeedback=i,this.currentDragFeedbackPosition=s,this.currentDragFeedbackDisposable.dispose(),-1===i[0])this.domNode.classList.add(s),this.rowsContainer.classList.add(s),this.currentDragFeedbackDisposable=(0,u.s)((()=>{this.domNode.classList.remove(s),this.rowsContainer.classList.remove(s)}));else{if(i.length>1&&"drop-target"!==s)throw new Error("Can't use multiple feedbacks with position different than 'over'");"drop-target-after"===s&&i[0]<this.length-1&&(i[0]+=1,s="drop-target-before");for(const e of i){const t=this.items[e];t.dropTarget=!0,t.row?.domNode.classList.add(s)}this.currentDragFeedbackDisposable=(0,u.s)((()=>{for(const e of i){const t=this.items[e];t.dropTarget=!1,t.row?.domNode.classList.remove(s)}}))}return!0}onDragLeave(e){this.onDragLeaveTimeout.dispose(),this.onDragLeaveTimeout=(0,l.EQ)((()=>this.clearDragOverFeedback()),100,this.disposables),this.currentDragData&&this.dnd.onDragLeave?.(this.currentDragData,e.element,e.index,e.browserEvent)}onDrop(e){if(!this.canDrop)return;const t=this.currentDragData;this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.domNode.classList.remove("dragging"),this.currentDragData=void 0,S.CurrentDragAndDropData=void 0,t&&e.browserEvent.dataTransfer&&(e.browserEvent.preventDefault(),t.update(e.browserEvent.dataTransfer),this.dnd.drop(t,e.element,e.index,e.sector,e.browserEvent))}onDragEnd(e){this.canDrop=!1,this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.domNode.classList.remove("dragging"),this.currentDragData=void 0,S.CurrentDragAndDropData=void 0,this.dnd.onDragEnd?.(e)}clearDragOverFeedback(){this.currentDragFeedback=void 0,this.currentDragFeedbackPosition=void 0,this.currentDragFeedbackDisposable.dispose(),this.currentDragFeedbackDisposable=u.jG.None}setupDragAndDropScrollTopAnimation(e){if(!this.dragOverAnimationDisposable){const e=(0,n.cL)(this.domNode).top;this.dragOverAnimationDisposable=(0,n.i0)((0,n.zk)(this.domNode),this.animateDragAndDropScrollTop.bind(this,e))}this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationStopDisposable=(0,l.EQ)((()=>{this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)}),1e3,this.disposables),this.dragOverMouseY=e.pageY}animateDragAndDropScrollTop(e){if(void 0===this.dragOverMouseY)return;const t=this.dragOverMouseY-e,i=this.renderHeight-35;t<35?this.scrollTop+=Math.max(-14,Math.floor(.3*(t-35))):t>i&&(this.scrollTop+=Math.min(14,Math.floor(.3*(t-i))))}teardownDragAndDropScrollTopAnimation(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)}getTargetSector(e,t){if(void 0===t)return;const i=e.offsetY/this.items[t].size,s=Math.floor(i/.25);return(0,E.qE)(s,0,3)}getItemIndexFromEventTarget(e){const t=this.scrollableElement.getDomNode();let i=e;for(;((0,n.sb)(i)||(0,n.xZ)(i))&&i!==this.rowsContainer&&t.contains(i);){const e=i.getAttribute("data-index");if(e){const t=Number(e);if(!isNaN(t))return t}i=i.parentElement}}getRenderRange(e,t){return{start:this.rangeMap.indexAt(e),end:this.rangeMap.indexAfter(e+t-1)}}_rerender(e,t,i){const s=this.getRenderRange(e,t);let n,r;e===this.elementTop(s.start)?(n=s.start,r=0):s.end-s.start>1&&(n=s.start+1,r=this.elementTop(n)-e);let o=0;for(;;){const a=this.getRenderRange(e,t);let c=!1;for(let e=a.start;e<a.end;e++){const t=this.probeDynamicHeight(e);0!==t&&this.rangeMap.splice(e,1,[this.items[e]]),o+=t,c=c||0!==t}if(!c){0!==o&&this.eventuallyUpdateScrollDimensions();const t=g.Q.relativeComplement(s,a);for(const e of t)for(let t=e.start;t<e.end;t++)this.items[t].row&&this.removeItemFromDOM(t);const c=g.Q.relativeComplement(a,s).reverse();for(const e of c)for(let t=e.end-1;t>=e.start;t--)this.insertItemInDOM(t);for(let e=a.start;e<a.end;e++)this.items[e].row&&this.updateItemInDOM(this.items[e],e);if("number"===typeof n){const t=this.scrollable.getFutureScrollPosition().scrollTop-e,s=this.elementTop(n)-r+t;this.setScrollTop(s,i)}return void this._onDidChangeContentHeight.fire(this.contentHeight)}}}probeDynamicHeight(e){const t=this.items[e];if(this.virtualDelegate.getDynamicHeight){const e=this.virtualDelegate.getDynamicHeight(t.element);if(null!==e){const i=t.size;return t.size=e,t.lastDynamicHeightWidth=this.renderWidth,e-i}}if(!t.hasDynamicHeight||t.lastDynamicHeightWidth===this.renderWidth)return 0;if(this.virtualDelegate.hasDynamicHeight&&!this.virtualDelegate.hasDynamicHeight(t.element))return 0;const i=t.size;if(t.row)return t.row.domNode.style.height="",t.size=t.row.domNode.offsetHeight,0!==t.size||(0,n.QX)(t.row.domNode,(0,n.zk)(t.row.domNode).document.body)||console.warn("Measuring item node that is not in DOM! Add ListView to the DOM before measuring row height!",(new Error).stack),t.lastDynamicHeightWidth=this.renderWidth,t.size-i;const{row:s}=this.cache.alloc(t.templateId);s.domNode.style.height="",this.rowsContainer.appendChild(s.domNode);const r=this.renderers.get(t.templateId);if(!r)throw new C.D7("Missing renderer for templateId: "+t.templateId);return r.renderElement(t.element,e,s.templateData,void 0),t.size=s.domNode.offsetHeight,r.disposeElement?.(t.element,e,s.templateData,void 0),this.virtualDelegate.setDynamicHeight?.(t.element,t.size),t.lastDynamicHeightWidth=this.renderWidth,s.domNode.remove(),this.cache.release(s),t.size-i}getElementDomId(e){return`${this.domId}_${e}`}dispose(){for(const e of this.items)if(e.dragStartDisposable.dispose(),e.checkedDisposable.dispose(),e.row){const t=this.renderers.get(e.row.templateId);t&&(t.disposeElement?.(e.element,-1,e.row.templateData,void 0),t.disposeTemplate(e.row.templateData))}this.items=[],this.domNode?.remove(),this.dragOverAnimationDisposable?.dispose(),this.disposables.dispose()}}b([h.B],x.prototype,"onMouseClick",null),b([h.B],x.prototype,"onMouseDblClick",null),b([h.B],x.prototype,"onMouseMiddleClick",null),b([h.B],x.prototype,"onMouseDown",null),b([h.B],x.prototype,"onMouseOver",null),b([h.B],x.prototype,"onMouseOut",null),b([h.B],x.prototype,"onContextMenu",null),b([h.B],x.prototype,"onTouchStart",null),b([h.B],x.prototype,"onTap",null)},66782:(e,t,i)=>{"use strict";i.d(t,{Ft:()=>a,V7:()=>o,Xo:()=>c,ok:()=>n,xb:()=>r});var s=i(64383);function n(e,t){if(!e)throw new Error(t?`Assertion failed (${t})`:"Assertion Failed")}function r(e,t="Unreachable"){throw new Error(t)}function o(e){e||(0,s.dz)(new s.D7("Soft Assertion Failed"))}function a(e){e()||(e(),(0,s.dz)(new s.D7("Assertion Failed")))}function c(e,t){let i=0;for(;i<e.length-1;){if(!t(e[i],e[i+1]))return!1;i++}return!0}},67220:(e,t,i)=>{"use strict";i.d(t,{TN:()=>l,fO:()=>h});var s=i(63591),n=i(5662),r=i(84001),o=i(8597),a=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},c=function(e,t){return function(i,s){t(i,s,e)}};const l=(0,s.u1)("hoverService");let h=class extends n.jG{get delay(){return this.isInstantlyHovering()?0:this._delay}constructor(e,t,i={},s,r){super(),this.placement=e,this.instantHover=t,this.overrideOptions=i,this.configurationService=s,this.hoverService=r,this.lastHoverHideTime=0,this.timeLimit=200,this.hoverDisposables=this._register(new n.Cm),this._delay=this.configurationService.getValue("workbench.hover.delay"),this._register(this.configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration("workbench.hover.delay")&&(this._delay=this.configurationService.getValue("workbench.hover.delay"))})))}showHover(e,t){const i="function"===typeof this.overrideOptions?this.overrideOptions(e,t):this.overrideOptions;this.hoverDisposables.clear();const s=(0,o.sb)(e.target)?[e.target]:e.target.targetElements;for(const r of s)this.hoverDisposables.add((0,o.b2)(r,"keydown",(e=>{e.equals(9)&&this.hoverService.hideHover()})));const n=(0,o.sb)(e.content)?void 0:e.content.toString();return this.hoverService.showHover({...e,...i,persistence:{hideOnKeyDown:!0,...i.persistence},id:n,appearance:{...e.appearance,compact:!0,skipFadeInAnimation:this.isInstantlyHovering(),...i.appearance}},t)}isInstantlyHovering(){return this.instantHover&&Date.now()-this.lastHoverHideTime<this.timeLimit}onDidHideHover(){this.hoverDisposables.clear(),this.instantHover&&(this.lastHoverHideTime=Date.now())}};h=a([c(3,r.pG),c(4,l)],h)},67841:(e,t,i)=>{"use strict";i.d(t,{L:()=>s});const s=(0,i(63591).u1)("labelService")},67913:(e,t,i)=>{"use strict";i.r(t),i.d(t,{CancellationTokenSource:()=>r.CancellationTokenSource,Emitter:()=>r.Emitter,KeyCode:()=>r.KeyCode,KeyMod:()=>r.KeyMod,MarkerSeverity:()=>r.MarkerSeverity,MarkerTag:()=>r.MarkerTag,Position:()=>r.Position,Range:()=>r.Range,Selection:()=>r.Selection,SelectionDirection:()=>r.SelectionDirection,Token:()=>r.Token,Uri:()=>r.Uri,default:()=>o,editor:()=>r.editor,languages:()=>r.languages});var s={};i.r(s),i.d(s,{CancellationTokenSource:()=>r.CancellationTokenSource,Emitter:()=>r.Emitter,KeyCode:()=>r.KeyCode,KeyMod:()=>r.KeyMod,MarkerSeverity:()=>r.MarkerSeverity,MarkerTag:()=>r.MarkerTag,Position:()=>r.Position,Range:()=>r.Range,Selection:()=>r.Selection,SelectionDirection:()=>r.SelectionDirection,Token:()=>r.Token,Uri:()=>r.Uri,editor:()=>r.editor,languages:()=>r.languages});i(44915),i(88952),i(36999),i(58590),i(6438),i(94908),i(4836),i(52555),i(64215),i(31659),i(99822),i(40142),i(18864),i(32516),i(20961),i(40800),i(2183),i(58568),i(63867),i(61731),i(34175),i(44588),i(70552),i(48279),i(65877),i(81091),i(99312),i(62427),i(58466),i(56800),i(28449),i(57244),i(76440),i(80409),i(58145),i(40677),i(9948),i(84325),i(15040),i(75639),i(85117),i(14614),i(95200),i(50352),i(4519),i(85646),i(77047),i(6429),i(28211),i(59731),i(57377),i(50071),i(18278),i(98745),i(44798),i(10617),i(30936),i(57197),i(90870),i(10846),i(22890),i(98472),i(50166),i(68887),i(47210),i(79907),i(38728),i(46606);var n,r=i(80781);i(61562),i(94318),i(23304),i(59896),i(75208),i(51232),i(77888),i(46686),i(27020),i(15600),i(80200),i(87152),i(60352),i(66235),i(31474),i(84840),i(94803),i(74304),i(37954),i(74800),i(25922),i(46648),i(61082),i(19856),i(97884),i(83488),i(3254),i(57680),i(796),i(89336),i(19436),i(40340),i(86492),i(52894),i(73374),i(38320),i(92080),i(57664),i(8868),i(31396),i(18544),i(538),i(25064),i(64256),i(32624),i(97360),i(42776),i(97144),i(46304),i(58820),i(82560),i(74276),i(39866),i(73020),i(71316),i(70492),i(50848),i(59520),i(46576),i(49150),i(33358),i(96716),i(28304),i(14720),i(27734),i(2068),i(71468),i(15482),i(42572),i(77668),i(36e3),i(10072),i(48448),i(51376),i(61764),i(85872),i(42144),i(22362),i(98408),i(61472),i(50576),i(11272),i(89518),i(99669),i(24152),i(51861),i(97791),i(23934);self.MonacoEnvironment=(n={editorWorkerService:"editor.worker.js",css:"css.worker.js",html:"html.worker.js",json:"json.worker.js",typescript:"ts.worker.js",javascript:"ts.worker.js",less:"css.worker.js",scss:"css.worker.js",handlebars:"html.worker.js",razor:"html.worker.js"},{globalAPI:!1,getWorkerUrl:function(e,t){var s=i.p,r=(s?s.replace(/\/$/,"")+"/":"")+n[t];if(/^((http:)|(https:)|(file:)|(\/\/))/.test(r)){var o=String(window.location),a=o.substr(0,o.length-window.location.hash.length-window.location.search.length-window.location.pathname.length);if(r.substring(0,a.length)!==a){/^(\/\/)/.test(r)&&(r=window.location.protocol+r);var c=new Blob(["/*"+t+'*/importScripts("'+r+'");'],{type:"application/javascript"});return URL.createObjectURL(c)}}return r}});const o=s},68214:(e,t,i)=>{"use strict";i.d(t,{Gc:()=>A,R9:()=>P});var s=i(8597),n=i(83750),r=i(56245),o=i(27661),a=i(72962),c=i(47358),l=i(20370),h=i(64383),d=i(41234),u=i(16980),g=i(37882),p=i(96032),m=i(91090),f=i(5662);let _={};!function(){function e(e,t){t(_)}var t,i;e.amd=!0,t=this,i=function(e){function t(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function i(t){e.defaults=t}e.defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};const s=/[&<>"']/,n=new RegExp(s.source,"g"),r=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,o=new RegExp(r.source,"g"),a={"&":"&","<":"<",">":">",'"':""","'":"'"},c=e=>a[e];function l(e,t){if(t){if(s.test(e))return e.replace(n,c)}else if(r.test(e))return e.replace(o,c);return e}const h=/(^|[^\[])\^/g;function d(e,t){let i="string"===typeof e?e:e.source;t=t||"";const s={replace:(e,t)=>{let n="string"===typeof t?t:t.source;return n=n.replace(h,"$1"),i=i.replace(e,n),s},getRegex:()=>new RegExp(i,t)};return s}function u(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const g={exec:()=>null};function p(e,t){const i=e.replace(/\|/g,((e,t,i)=>{let s=!1,n=t;for(;--n>=0&&"\\"===i[n];)s=!s;return s?"|":" |"})).split(/ \|/);let s=0;if(i[0].trim()||i.shift(),i.length>0&&!i[i.length-1].trim()&&i.pop(),t)if(i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;s<i.length;s++)i[s]=i[s].trim().replace(/\\\|/g,"|");return i}function m(e,t,i){const s=e.length;if(0===s)return"";let n=0;for(;n<s;){const r=e.charAt(s-n-1);if(r!==t||i){if(r===t||!i)break;n++}else n++}return e.slice(0,s-n)}function f(e,t,i,s){const n=t.href,r=t.title?l(t.title):null,o=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){s.state.inLink=!0;const e={type:"link",raw:i,href:n,title:r,text:o,tokens:s.inlineTokens(o)};return s.state.inLink=!1,e}return{type:"image",raw:i,href:n,title:r,text:l(o)}}class _{options;rules;lexer;constructor(t){this.options=t||e.defaults}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:m(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],i=function(e,t){const i=e.match(/^(\s+)(?:```)/);if(null===i)return t;const s=i[1];return t.split("\n").map((e=>{const t=e.match(/^\s+/);if(null===t)return e;const[i]=t;return i.length>=s.length?e.slice(s.length):e})).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:i}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=m(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:m(t[0],"\n")}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){let e=m(t[0],"\n").split("\n"),i="",s="";const n=[];for(;e.length>0;){let t=!1;const r=[];let o;for(o=0;o<e.length;o++)if(/^ {0,3}>/.test(e[o]))r.push(e[o]),t=!0;else{if(t)break;r.push(e[o])}e=e.slice(o);const a=r.join("\n"),c=a.replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,"\n $1").replace(/^ {0,3}>[ \t]?/gm,"");i=i?`${i}\n${a}`:a,s=s?`${s}\n${c}`:c;const l=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,n,!0),this.lexer.state.top=l,0===e.length)break;const h=n[n.length-1];if("code"===h?.type)break;if("blockquote"===h?.type){const t=h,r=t.raw+"\n"+e.join("\n"),o=this.blockquote(r);n[n.length-1]=o,i=i.substring(0,i.length-t.raw.length)+o.raw,s=s.substring(0,s.length-t.text.length)+o.text;break}if("list"!==h?.type);else{const t=h,r=t.raw+"\n"+e.join("\n"),o=this.list(r);n[n.length-1]=o,i=i.substring(0,i.length-h.raw.length)+o.raw,s=s.substring(0,s.length-t.raw.length)+o.raw,e=r.substring(n[n.length-1].raw.length).split("\n")}}return{type:"blockquote",raw:i,tokens:n,text:s}}}list(e){let t=this.rules.block.list.exec(e);if(t){let i=t[1].trim();const s=i.length>1,n={type:"list",raw:"",ordered:s,start:s?+i.slice(0,-1):"",loose:!1,items:[]};i=s?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=s?i:"[*+-]");const r=new RegExp(`^( {0,3}${i})((?:[\t ][^\\n]*)?(?:\\n|$))`);let o=!1;for(;e;){let i=!1,s="",a="";if(!(t=r.exec(e)))break;if(this.rules.block.hr.test(e))break;s=t[0],e=e.substring(s.length);let c=t[2].split("\n",1)[0].replace(/^\t+/,(e=>" ".repeat(3*e.length))),l=e.split("\n",1)[0],h=!c.trim(),d=0;if(this.options.pedantic?(d=2,a=c.trimStart()):h?d=t[1].length+1:(d=t[2].search(/[^ ]/),d=d>4?1:d,a=c.slice(d),d+=t[1].length),h&&/^ *$/.test(l)&&(s+=l+"\n",e=e.substring(l.length+1),i=!0),!i){const t=new RegExp(`^ {0,${Math.min(3,d-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),i=new RegExp(`^ {0,${Math.min(3,d-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),n=new RegExp(`^ {0,${Math.min(3,d-1)}}(?:\`\`\`|~~~)`),r=new RegExp(`^ {0,${Math.min(3,d-1)}}#`);for(;e;){const o=e.split("\n",1)[0];if(l=o,this.options.pedantic&&(l=l.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),n.test(l))break;if(r.test(l))break;if(t.test(l))break;if(i.test(e))break;if(l.search(/[^ ]/)>=d||!l.trim())a+="\n"+l.slice(d);else{if(h)break;if(c.search(/[^ ]/)>=4)break;if(n.test(c))break;if(r.test(c))break;if(i.test(c))break;a+="\n"+l}h||l.trim()||(h=!0),s+=o+"\n",e=e.substring(o.length+1),c=l.slice(d)}}n.loose||(o?n.loose=!0:/\n *\n *$/.test(s)&&(o=!0));let u,g=null;this.options.gfm&&(g=/^\[[ xX]\] /.exec(a),g&&(u="[ ] "!==g[0],a=a.replace(/^\[[ xX]\] +/,""))),n.items.push({type:"list_item",raw:s,task:!!g,checked:u,loose:!1,text:a,tokens:[]}),n.raw+=s}n.items[n.items.length-1].raw=n.items[n.items.length-1].raw.trimEnd(),n.items[n.items.length-1].text=n.items[n.items.length-1].text.trimEnd(),n.raw=n.raw.trimEnd();for(let e=0;e<n.items.length;e++)if(this.lexer.state.top=!1,n.items[e].tokens=this.lexer.blockTokens(n.items[e].text,[]),!n.loose){const t=n.items[e].tokens.filter((e=>"space"===e.type)),i=t.length>0&&t.some((e=>/\n.*\n/.test(e.raw)));n.loose=i}if(n.loose)for(let e=0;e<n.items.length;e++)n.items[e].loose=!0;return n}}html(e){const t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){const t=this.rules.block.def.exec(e);if(t){const e=t[1].toLowerCase().replace(/\s+/g," "),i=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:i,title:s}}}table(e){const t=this.rules.block.table.exec(e);if(!t)return;if(!/[:|]/.test(t[2]))return;const i=p(t[1]),s=t[2].replace(/^\||\| *$/g,"").split("|"),n=t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[],r={type:"table",raw:t[0],header:[],align:[],rows:[]};if(i.length===s.length){for(const e of s)/^ *-+: *$/.test(e)?r.align.push("right"):/^ *:-+: *$/.test(e)?r.align.push("center"):/^ *:-+ *$/.test(e)?r.align.push("left"):r.align.push(null);for(let e=0;e<i.length;e++)r.header.push({text:i[e],tokens:this.lexer.inline(i[e]),header:!0,align:r.align[e]});for(const e of n)r.rows.push(p(e,r.header.length).map(((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:r.align[t]}))));return r}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:l(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^</.test(e)){if(!/>$/.test(e))return;const t=m(e.slice(0,-1),"\\");if((e.length-t.length)%2===0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;let i=0;for(let s=0;s<e.length;s++)if("\\"===e[s])s++;else if(e[s]===t[0])i++;else if(e[s]===t[1]&&(i--,i<0))return s;return-1}(t[2],"()");if(e>-1){const i=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,i).trim(),t[3]=""}}let i=t[2],s="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);e&&(i=e[1],s=e[3])}else s=t[3]?t[3].slice(1,-1):"";return i=i.trim(),/^</.test(i)&&(i=this.options.pedantic&&!/>$/.test(e)?i.slice(1):i.slice(1,-1)),f(t,{href:i?i.replace(this.rules.inline.anyPunctuation,"$1"):i,title:s?s.replace(this.rules.inline.anyPunctuation,"$1"):s},t[0],this.lexer)}}reflink(e,t){let i;if((i=this.rules.inline.reflink.exec(e))||(i=this.rules.inline.nolink.exec(e))){const e=t[(i[2]||i[1]).replace(/\s+/g," ").toLowerCase()];if(!e){const e=i[0].charAt(0);return{type:"text",raw:e,text:e}}return f(i,e,i[0],this.lexer)}}emStrong(e,t,i=""){let s=this.rules.inline.emStrongLDelim.exec(e);if(s&&(!s[3]||!i.match(/[\p{L}\p{N}]/u))&&(!s[1]&&!s[2]||!i||this.rules.inline.punctuation.exec(i))){const i=[...s[0]].length-1;let n,r,o=i,a=0;const c="*"===s[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+i);null!=(s=c.exec(t));){if(n=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!n)continue;if(r=[...n].length,s[3]||s[4]){o+=r;continue}if((s[5]||s[6])&&i%3&&!((i+r)%3)){a+=r;continue}if(o-=r,o>0)continue;r=Math.min(r,r+o+a);const t=[...s[0]][0].length,c=e.slice(0,i+s.index+t+r);if(Math.min(i,r)%2){const e=c.slice(1,-1);return{type:"em",raw:c,text:e,tokens:this.lexer.inlineTokens(e)}}const l=c.slice(2,-2);return{type:"strong",raw:c,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const i=/[^ ]/.test(e),s=/^ /.test(e)&&/ $/.test(e);return i&&s&&(e=e.substring(1,e.length-1)),e=l(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let e,i;return"@"===t[2]?(e=l(t[1]),i="mailto:"+e):(e=l(t[1]),i=e),{type:"link",raw:t[0],text:e,href:i,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,i;if("@"===t[2])e=l(t[0]),i="mailto:"+e;else{let s;do{s=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??""}while(s!==t[0]);e=l(t[0]),i="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:i,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){let e;return e=this.lexer.state.inRawBlock?t[0]:l(t[0]),{type:"text",raw:t[0],text:e}}}}const v=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,C=/(?:[*+-]|\d{1,9}[.)])/,E=d(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,C).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),b=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,S=/(?!\s*\])(?:\\.|[^\[\]\\])+/,y=d(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",S).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),w=d(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,C).getRegex(),R="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",L=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,T=d("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",L).replace("tag",R).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),x=d(b).replace("hr",v).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",R).getRegex(),k={blockquote:d(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",x).getRegex(),code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,def:y,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:v,html:T,lheading:E,list:w,newline:/^(?: *(?:\n|$))+/,paragraph:x,table:g,text:/^[^\n]+/},A=d("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",v).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",R).getRegex(),N={...k,table:A,paragraph:d(b).replace("hr",v).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",A).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",R).getRegex()},I={...k,html:d("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",L).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:g,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:d(b).replace("hr",v).replace("heading"," *#{1,6} *[^\n]").replace("lheading",E).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},O=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,D=/^( {2,}|\\)\n(?!\s*$)/,M="\\p{P}\\p{S}",P=d(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,M).getRegex(),F=d(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,M).getRegex(),U=d("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,M).getRegex(),H=d("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,M).getRegex(),B=d(/\\([punct])/,"gu").replace(/punct/g,M).getRegex(),W=d(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),V=d(L).replace("(?:--\x3e|$)","--\x3e").getRegex(),z=d("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",V).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),G=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,j=d(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",G).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),K=d(/^!?\[(label)\]\[(ref)\]/).replace("label",G).replace("ref",S).getRegex(),Y=d(/^!?\[(ref)\](?:\[\])?/).replace("ref",S).getRegex(),q={_backpedal:g,anyPunctuation:B,autolink:W,blockSkip:/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,br:D,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:g,emStrongLDelim:F,emStrongRDelimAst:U,emStrongRDelimUnd:H,escape:O,link:j,nolink:Y,punctuation:P,reflink:K,reflinkSearch:d("reflink|nolink(?!\\()","g").replace("reflink",K).replace("nolink",Y).getRegex(),tag:z,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:g},$={...q,link:d(/^!?\[(label)\]\((.*?)\)/).replace("label",G).getRegex(),reflink:d(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",G).getRegex()},Q={...q,escape:d(O).replace("])","~|])").getRegex(),url:d(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},X={...Q,br:d(D).replace("{2,}","*").getRegex(),text:d(Q.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Z={normal:k,gfm:N,pedantic:I},J={normal:q,gfm:Q,breaks:X,pedantic:$};class ee{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||e.defaults,this.options.tokenizer=this.options.tokenizer||new _,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const i={block:Z.normal,inline:J.normal};this.options.pedantic?(i.block=Z.pedantic,i.inline=J.pedantic):this.options.gfm&&(i.block=Z.gfm,this.options.breaks?i.inline=J.breaks:i.inline=J.gfm),this.tokenizer.rules=i}static get rules(){return{block:Z,inline:J}}static lex(e,t){return new ee(t).lex(e)}static lexInline(e,t){return new ee(t).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){const e=this.inlineQueue[t];this.inlineTokens(e.src,e.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],i=!1){let s,n,r;for(e=this.options.pedantic?e.replace(/\t/g," ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,((e,t,i)=>t+" ".repeat(i.length)));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((i=>!!(s=i.call({lexer:this},e,t))&&(e=e.substring(s.raw.length),t.push(s),!0)))))if(s=this.tokenizer.space(e))e=e.substring(s.raw.length),1===s.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(s);else if(s=this.tokenizer.code(e))e=e.substring(s.raw.length),n=t[t.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?t.push(s):(n.raw+="\n"+s.raw,n.text+="\n"+s.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(s=this.tokenizer.fences(e))e=e.substring(s.raw.length),t.push(s);else if(s=this.tokenizer.heading(e))e=e.substring(s.raw.length),t.push(s);else if(s=this.tokenizer.hr(e))e=e.substring(s.raw.length),t.push(s);else if(s=this.tokenizer.blockquote(e))e=e.substring(s.raw.length),t.push(s);else if(s=this.tokenizer.list(e))e=e.substring(s.raw.length),t.push(s);else if(s=this.tokenizer.html(e))e=e.substring(s.raw.length),t.push(s);else if(s=this.tokenizer.def(e))e=e.substring(s.raw.length),n=t[t.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title}):(n.raw+="\n"+s.raw,n.text+="\n"+s.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(s=this.tokenizer.table(e))e=e.substring(s.raw.length),t.push(s);else if(s=this.tokenizer.lheading(e))e=e.substring(s.raw.length),t.push(s);else{if(r=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const i=e.slice(1);let s;this.options.extensions.startBlock.forEach((e=>{s=e.call({lexer:this},i),"number"===typeof s&&s>=0&&(t=Math.min(t,s))})),t<1/0&&t>=0&&(r=e.substring(0,t+1))}if(this.state.top&&(s=this.tokenizer.paragraph(r)))n=t[t.length-1],i&&"paragraph"===n?.type?(n.raw+="\n"+s.raw,n.text+="\n"+s.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(s),i=r.length!==e.length,e=e.substring(s.raw.length);else if(s=this.tokenizer.text(e))e=e.substring(s.raw.length),n=t[t.length-1],n&&"text"===n.type?(n.raw+="\n"+s.raw,n.text+="\n"+s.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(s);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let i,s,n,r,o,a,c=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(r=this.tokenizer.rules.inline.reflinkSearch.exec(c));)e.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(c=c.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(r=this.tokenizer.rules.inline.blockSkip.exec(c));)c=c.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(r=this.tokenizer.rules.inline.anyPunctuation.exec(c));)c=c.slice(0,r.index)+"++"+c.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(o||(a=""),o=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((s=>!!(i=s.call({lexer:this},e,t))&&(e=e.substring(i.raw.length),t.push(i),!0)))))if(i=this.tokenizer.escape(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.tag(e))e=e.substring(i.raw.length),s=t[t.length-1],s&&"text"===i.type&&"text"===s.type?(s.raw+=i.raw,s.text+=i.text):t.push(i);else if(i=this.tokenizer.link(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(i.raw.length),s=t[t.length-1],s&&"text"===i.type&&"text"===s.type?(s.raw+=i.raw,s.text+=i.text):t.push(i);else if(i=this.tokenizer.emStrong(e,c,a))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.codespan(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.br(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.del(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.autolink(e))e=e.substring(i.raw.length),t.push(i);else if(this.state.inLink||!(i=this.tokenizer.url(e))){if(n=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const i=e.slice(1);let s;this.options.extensions.startInline.forEach((e=>{s=e.call({lexer:this},i),"number"===typeof s&&s>=0&&(t=Math.min(t,s))})),t<1/0&&t>=0&&(n=e.substring(0,t+1))}if(i=this.tokenizer.inlineText(n))e=e.substring(i.raw.length),"_"!==i.raw.slice(-1)&&(a=i.raw.slice(-1)),o=!0,s=t[t.length-1],s&&"text"===s.type?(s.raw+=i.raw,s.text+=i.text):t.push(i);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}else e=e.substring(i.raw.length),t.push(i);return t}}class te{options;parser;constructor(t){this.options=t||e.defaults}space(e){return""}code({text:e,lang:t,escaped:i}){const s=(t||"").match(/^\S*/)?.[0],n=e.replace(/\n$/,"")+"\n";return s?'<pre><code class="language-'+l(s)+'">'+(i?n:l(n,!0))+"</code></pre>\n":"<pre><code>"+(i?n:l(n,!0))+"</code></pre>\n"}blockquote({tokens:e}){return`<blockquote>\n${this.parser.parse(e)}</blockquote>\n`}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>\n`}hr(e){return"<hr>\n"}list(e){const t=e.ordered,i=e.start;let s="";for(let r=0;r<e.items.length;r++){const t=e.items[r];s+=this.listitem(t)}const n=t?"ol":"ul";return"<"+n+(t&&1!==i?' start="'+i+'"':"")+">\n"+s+"</"+n+">\n"}listitem(e){let t="";if(e.task){const i=this.checkbox({checked:!!e.checked});e.loose?e.tokens.length>0&&"paragraph"===e.tokens[0].type?(e.tokens[0].text=i+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&"text"===e.tokens[0].tokens[0].type&&(e.tokens[0].tokens[0].text=i+" "+e.tokens[0].tokens[0].text)):e.tokens.unshift({type:"text",raw:i+" ",text:i+" "}):t+=i+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>\n`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>\n`}table(e){let t="",i="";for(let n=0;n<e.header.length;n++)i+=this.tablecell(e.header[n]);t+=this.tablerow({text:i});let s="";for(let n=0;n<e.rows.length;n++){const t=e.rows[n];i="";for(let e=0;e<t.length;e++)i+=this.tablecell(t[e]);s+=this.tablerow({text:i})}return s&&(s=`<tbody>${s}</tbody>`),"<table>\n<thead>\n"+t+"</thead>\n"+s+"</table>\n"}tablerow({text:e}){return`<tr>\n${e}</tr>\n`}tablecell(e){const t=this.parser.parseInline(e.tokens),i=e.header?"th":"td";return(e.align?`<${i} align="${e.align}">`:`<${i}>`)+t+`</${i}>\n`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${e}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:i}){const s=this.parser.parseInline(i),n=u(e);if(null===n)return s;let r='<a href="'+(e=n)+'"';return t&&(r+=' title="'+t+'"'),r+=">"+s+"</a>",r}image({href:e,title:t,text:i}){const s=u(e);if(null===s)return i;let n=`<img src="${e=s}" alt="${i}"`;return t&&(n+=` title="${t}"`),n+=">",n}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):e.text}}class ie{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}}class se{options;renderer;textRenderer;constructor(t){this.options=t||e.defaults,this.options.renderer=this.options.renderer||new te,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ie}static parse(e,t){return new se(t).parse(e)}static parseInline(e,t){return new se(t).parseInline(e)}parse(e,t=!0){let i="";for(let s=0;s<e.length;s++){const n=e[s];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[n.type]){const e=n,t=this.options.extensions.renderers[e.type].call({parser:this},e);if(!1!==t||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(e.type)){i+=t||"";continue}}const r=n;switch(r.type){case"space":i+=this.renderer.space(r);continue;case"hr":i+=this.renderer.hr(r);continue;case"heading":i+=this.renderer.heading(r);continue;case"code":i+=this.renderer.code(r);continue;case"table":i+=this.renderer.table(r);continue;case"blockquote":i+=this.renderer.blockquote(r);continue;case"list":i+=this.renderer.list(r);continue;case"html":i+=this.renderer.html(r);continue;case"paragraph":i+=this.renderer.paragraph(r);continue;case"text":{let n=r,o=this.renderer.text(n);for(;s+1<e.length&&"text"===e[s+1].type;)n=e[++s],o+="\n"+this.renderer.text(n);i+=t?this.renderer.paragraph({type:"paragraph",raw:o,text:o,tokens:[{type:"text",raw:o,text:o}]}):o;continue}default:{const e='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return i}parseInline(e,t){t=t||this.renderer;let i="";for(let s=0;s<e.length;s++){const n=e[s];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[n.type]){const e=this.options.extensions.renderers[n.type].call({parser:this},n);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(n.type)){i+=e||"";continue}}const r=n;switch(r.type){case"escape":case"text":i+=t.text(r);break;case"html":i+=t.html(r);break;case"link":i+=t.link(r);break;case"image":i+=t.image(r);break;case"strong":i+=t.strong(r);break;case"em":i+=t.em(r);break;case"codespan":i+=t.codespan(r);break;case"br":i+=t.br(r);break;case"del":i+=t.del(r);break;default:{const e='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return i}}class ne{options;constructor(t){this.options=t||e.defaults}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}}class re{defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};options=this.setOptions;parse=this.parseMarkdown(ee.lex,se.parse);parseInline=this.parseMarkdown(ee.lexInline,se.parseInline);Parser=se;Renderer=te;TextRenderer=ie;Lexer=ee;Tokenizer=_;Hooks=ne;constructor(...e){this.use(...e)}walkTokens(e,t){let i=[];for(const s of e)switch(i=i.concat(t.call(this,s)),s.type){case"table":{const e=s;for(const s of e.header)i=i.concat(this.walkTokens(s.tokens,t));for(const s of e.rows)for(const e of s)i=i.concat(this.walkTokens(e.tokens,t));break}case"list":{const e=s;i=i.concat(this.walkTokens(e.items,t));break}default:{const e=s;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach((s=>{const n=e[s].flat(1/0);i=i.concat(this.walkTokens(n,t))})):e.tokens&&(i=i.concat(this.walkTokens(e.tokens,t)))}}return i}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach((e=>{const i={...e};if(i.async=this.defaults.async||i.async||!1,e.extensions&&(e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if("renderer"in e){const i=t.renderers[e.name];t.renderers[e.name]=i?function(...t){let s=e.renderer.apply(this,t);return!1===s&&(s=i.apply(this,t)),s}:e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");const i=t[e.level];i?i.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)})),i.extensions=t),e.renderer){const t=this.defaults.renderer||new te(this.defaults);for(const i in e.renderer){if(!(i in t))throw new Error(`renderer '${i}' does not exist`);if(["options","parser"].includes(i))continue;const s=i,n=e.renderer[s],r=t[s];t[s]=(...e)=>{let i=n.apply(t,e);return!1===i&&(i=r.apply(t,e)),i||""}}i.renderer=t}if(e.tokenizer){const t=this.defaults.tokenizer||new _(this.defaults);for(const i in e.tokenizer){if(!(i in t))throw new Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;const s=i,n=e.tokenizer[s],r=t[s];t[s]=(...e)=>{let i=n.apply(t,e);return!1===i&&(i=r.apply(t,e)),i}}i.tokenizer=t}if(e.hooks){const t=this.defaults.hooks||new ne;for(const i in e.hooks){if(!(i in t))throw new Error(`hook '${i}' does not exist`);if("options"===i)continue;const s=i,n=e.hooks[s],r=t[s];ne.passThroughHooks.has(i)?t[s]=e=>{if(this.defaults.async)return Promise.resolve(n.call(t,e)).then((e=>r.call(t,e)));const i=n.call(t,e);return r.call(t,i)}:t[s]=(...e)=>{let i=n.apply(t,e);return!1===i&&(i=r.apply(t,e)),i}}i.hooks=t}if(e.walkTokens){const t=this.defaults.walkTokens,s=e.walkTokens;i.walkTokens=function(e){let i=[];return i.push(s.call(this,e)),t&&(i=i.concat(t.call(this,e))),i}}this.defaults={...this.defaults,...i}})),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return ee.lex(e,t??this.defaults)}parser(e,t){return se.parse(e,t??this.defaults)}parseMarkdown(e,t){return(i,s)=>{const n={...s},r={...this.defaults,...n},o=this.onError(!!r.silent,!!r.async);if(!0===this.defaults.async&&!1===n.async)return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if("undefined"===typeof i||null===i)return o(new Error("marked(): input parameter is undefined or null"));if("string"!==typeof i)return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected"));if(r.hooks&&(r.hooks.options=r),r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(i):i).then((t=>e(t,r))).then((e=>r.hooks?r.hooks.processAllTokens(e):e)).then((e=>r.walkTokens?Promise.all(this.walkTokens(e,r.walkTokens)).then((()=>e)):e)).then((e=>t(e,r))).then((e=>r.hooks?r.hooks.postprocess(e):e)).catch(o);try{r.hooks&&(i=r.hooks.preprocess(i));let s=e(i,r);r.hooks&&(s=r.hooks.processAllTokens(s)),r.walkTokens&&this.walkTokens(s,r.walkTokens);let n=t(s,r);return r.hooks&&(n=r.hooks.postprocess(n)),n}catch(a){return o(a)}}}onError(e,t){return i=>{if(i.message+="\nPlease report this to https://github.com/markedjs/marked.",e){const e="<p>An error occurred:</p><pre>"+l(i.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(i);throw i}}}const oe=new re;function ae(e,t){return oe.parse(e,t)}ae.options=ae.setOptions=function(e){return oe.setOptions(e),ae.defaults=oe.defaults,i(ae.defaults),ae},ae.getDefaults=t,ae.defaults=e.defaults,ae.use=function(...e){return oe.use(...e),ae.defaults=oe.defaults,i(ae.defaults),ae},ae.walkTokens=function(e,t){return oe.walkTokens(e,t)},ae.parseInline=oe.parseInline,ae.Parser=se,ae.parser=se.parse,ae.Renderer=te,ae.TextRenderer=ie,ae.Lexer=ee,ae.lexer=ee.lex,ae.Tokenizer=_,ae.Hooks=ne,ae.parse=ae;const ce=ae.options,le=ae.setOptions,he=ae.use,de=ae.walkTokens,ue=ae.parseInline,ge=ae,pe=se.parse,me=ee.lex;e.Hooks=ne,e.Lexer=ee,e.Marked=re,e.Parser=se,e.Renderer=te,e.TextRenderer=ie,e.Tokenizer=_,e.getDefaults=t,e.lexer=me,e.marked=ae,e.options=ce,e.parse=ge,e.parseInline=ue,e.parser=pe,e.setOptions=le,e.use=he,e.walkTokens=de},e.amd?e(0,i):"object"===typeof exports?i(exports):i((t="undefined"!==typeof globalThis?globalThis:t||self).marked={})}();_.Hooks||exports.Hooks,_.Lexer||exports.Lexer,_.Marked||exports.Marked,_.Parser||exports.Parser;var v=_.Renderer||exports.Renderer,C=(_.TextRenderer||exports.TextRenderer,_.Tokenizer||exports.Tokenizer,_.defaults||exports.defaults),E=(_.getDefaults||exports.getDefaults,_.lexer||exports.lexer),b=(_.marked||exports.marked,_.options||exports.options,_.parse||exports.parse),S=(_.parseInline||exports.parseInline,_.parser||exports.parser),y=(_.setOptions||exports.setOptions,_.use||exports.use,_.walkTokens||exports.walkTokens,i(908)),w=i(36456),R=i(10146),L=i(89403),T=i(91508),x=i(79400);const k=Object.freeze({image:({href:e,title:t,text:i})=>{let s=[],n=[];return e&&(({href:e,dimensions:s}=(0,u.nI)(e)),n.push(`src="${(0,u.oO)(e)}"`)),i&&n.push(`alt="${(0,u.oO)(i)}"`),t&&n.push(`title="${(0,u.oO)(t)}"`),s.length&&(n=n.concat(s)),"<img "+n.join(" ")+">"},paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>`},link({href:e,title:t,tokens:i}){let s=this.parser.parseInline(i);return"string"!==typeof e?"":(e===s&&(s=(0,u._W)(s)),t="string"===typeof t?(0,u.oO)((0,u._W)(t)):"",`<a href="${e=(e=(0,u._W)(e)).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}" title="${t||e}" draggable="false">${s}</a>`)}});function A(e,t={},i={}){const n=new f.Cm;let u=!1;const m=(0,o.n)(t),_=function(t){let i;try{i=(0,y.qg)(decodeURIComponent(t))}catch(s){}return i?(i=(0,R.PI)(i,(t=>e.uris&&e.uris[t]?x.r.revive(e.uris[t]):void 0)),encodeURIComponent(JSON.stringify(i))):t},L=function(t,i){const s=e.uris&&e.uris[t];let n=x.r.revive(s);return i?t.startsWith(w.ny.data+":")?t:(n||(n=x.r.parse(t)),w.zl.uriToBrowserUri(n).toString(!0)):n?x.r.parse(t).toString()===n.toString()?t:(n.query&&(n=n.with({query:_(n.query)})),n.toString()):t},A=new v;A.image=k.image,A.link=k.link,A.paragraph=k.paragraph;const O=[],M=[];if(t.codeBlockRendererSync?A.code=({text:e,lang:i})=>{const s=p.r.nextId(),n=t.codeBlockRendererSync(N(i),e);return M.push([s,n]),`<div class="code" data-code="${s}">${(0,T.ih)(e)}</div>`}:t.codeBlockRenderer&&(A.code=({text:e,lang:i})=>{const s=p.r.nextId(),n=t.codeBlockRenderer(N(i),e);return O.push(n.then((e=>[s,e]))),`<div class="code" data-code="${s}">${(0,T.ih)(e)}</div>`}),t.actionHandler){const i=function(i){let s=i.target;if("A"===s.tagName||(s=s.parentElement,s&&"A"===s.tagName))try{let n=s.dataset.href;n&&(e.baseUri&&(n=I(x.r.from(e.baseUri),n)),t.actionHandler.callback(n,i))}catch(n){(0,h.dz)(n)}finally{i.preventDefault()}},n=t.actionHandler.disposables.add(new r.f(m,"click")),o=t.actionHandler.disposables.add(new r.f(m,"auxclick"));t.actionHandler.disposables.add(d.Jh.any(n.event,o.event)((e=>{const t=new c.P(s.zk(m),e);(t.leftButton||t.middleButton)&&i(t)}))),t.actionHandler.disposables.add(s.ko(m,"keydown",(e=>{const t=new a.Z(e);(t.equals(10)||t.equals(3))&&i(t)})))}e.supportHtml||(A.html=({text:i})=>{if(t.sanitizerOptions?.replaceWithPlaintext)return(0,T.ih)(i);return(e.isTrusted?i.match(/^(<span[^>]+>)|(<\/\s*span>)$/):void 0)?i:""}),i.renderer=A;let P,F=e.value??"";if(F.length>1e5&&(F=`${F.substr(0,1e5)}\u2026`),e.supportThemeIcons&&(F=(0,g.sA)(F)),t.fillInIncompleteTokens){const e={...C,...i},t=function(e){for(let t=0;t<j;t++){const t=K(e);if(!t)break;e=t}return e}(E(F,e));P=S(t,e)}else P=b(F,{...i,async:!1});if(e.supportThemeIcons){P=(0,l.n)(P).map((e=>"string"===typeof e?e:e.outerHTML)).join("")}const U=(new DOMParser).parseFromString(D({isTrusted:e.isTrusted,...t.sanitizerOptions},P),"text/html");if(U.body.querySelectorAll("img, audio, video, source").forEach((i=>{const n=i.getAttribute("src");if(n){let o=n;try{e.baseUri&&(o=I(x.r.from(e.baseUri),o))}catch(r){}if(i.setAttribute("src",L(o,!0)),t.remoteImageIsAllowed){const e=x.r.parse(o);e.scheme===w.ny.file||e.scheme===w.ny.data||t.remoteImageIsAllowed(e)||i.replaceWith(s.$("",void 0,i.outerHTML))}}})),U.body.querySelectorAll("a").forEach((t=>{const i=t.getAttribute("href");if(t.setAttribute("href",""),!i||/^data:|javascript:/i.test(i)||/^command:/i.test(i)&&!e.isTrusted||/^command:(\/\/\/)?_workbench\.downloadResource/i.test(i))t.replaceWith(...t.childNodes);else{let s=L(i,!1);e.baseUri&&(s=I(x.r.from(e.baseUri),i)),t.dataset.href=s}})),m.innerHTML=D({isTrusted:e.isTrusted,...t.sanitizerOptions},U.body.innerHTML),O.length>0)Promise.all(O).then((e=>{if(u)return;const i=new Map(e),n=m.querySelectorAll("div[data-code]");for(const t of n){const e=i.get(t.dataset.code??"");e&&s.Ln(t,e)}t.asyncRenderCallback?.()}));else if(M.length>0){const e=new Map(M),t=m.querySelectorAll("div[data-code]");for(const i of t){const t=e.get(i.dataset.code??"");t&&s.Ln(i,t)}}if(t.asyncRenderCallback)for(const r of m.getElementsByTagName("img")){const e=n.add(s.ko(r,"load",(()=>{e.dispose(),t.asyncRenderCallback()})))}return{element:m,dispose:()=>{u=!0,n.dispose()}}}function N(e){if(!e)return"";const t=e.split(/[\s+|:|,|\{|\?]/,1);return t.length?t[0]:e}function I(e,t){return/^\w[\w\d+.-]*:/.test(t)?t:e.path.endsWith("/")?(0,L.o1)(e,t).toString():(0,L.o1)((0,L.pD)(e),t).toString()}const O=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];function D(e,t){const{config:i,allowedSchemes:r}=function(e){const t=[w.ny.http,w.ny.https,w.ny.mailto,w.ny.data,w.ny.file,w.ny.vscodeFileResource,w.ny.vscodeRemote,w.ny.vscodeRemoteResource];e.isTrusted&&t.push(w.ny.command);return{config:{ALLOWED_TAGS:e.allowedTags??[...s.TT],ALLOWED_ATTR:M,ALLOW_UNKNOWN_PROTOCOLS:!0},allowedSchemes:t}}(e),o=new f.Cm;o.add(ie("uponSanitizeAttribute",((e,t)=>{if("style"!==t.attrName&&"class"!==t.attrName){if("INPUT"===e.tagName&&"checkbox"===e.attributes.getNamedItem("type")?.value){if("type"===t.attrName&&"checkbox"===t.attrValue||"disabled"===t.attrName||"checked"===t.attrName)return void(t.keepAttr=!0);t.keepAttr=!1}}else{if("SPAN"===e.tagName){if("style"===t.attrName)return void(t.keepAttr=/^(color\:(#[0-9a-fA-F]+|var\(--vscode(-[a-zA-Z]+)+\));)?(background-color\:(#[0-9a-fA-F]+|var\(--vscode(-[a-zA-Z]+)+\));)?(border-radius:[0-9]+px;)?$/.test(t.attrValue));if("class"===t.attrName)return void(t.keepAttr=/^codicon codicon-[a-z\-]+( codicon-modifier-[a-z\-]+)?$/.test(t.attrValue))}t.keepAttr=!1}}))),o.add(ie("uponSanitizeElement",((t,i)=>{if("input"===i.tagName&&("checkbox"===t.attributes.getNamedItem("type")?.value?t.setAttribute("disabled",""):e.replaceWithPlaintext||t.remove()),e.replaceWithPlaintext&&!i.allowedTags[i.tagName]&&"body"!==i.tagName&&t.parentElement){let e,s;if("#comment"===i.tagName)e=`\x3c!--${t.textContent}--\x3e`;else{const n=O.includes(i.tagName),r=t.attributes.length?" "+Array.from(t.attributes).map((e=>`${e.name}="${e.value}"`)).join(" "):"";e=`<${i.tagName}${r}>`,n||(s=`</${i.tagName}>`)}const n=document.createDocumentFragment(),r=t.parentElement.ownerDocument.createTextNode(e);n.appendChild(r);const o=s?t.parentElement.ownerDocument.createTextNode(s):void 0;for(;t.firstChild;)n.appendChild(t.firstChild);o&&n.appendChild(o),t.nodeType===Node.COMMENT_NODE?t.parentElement.insertBefore(n,t):t.parentElement.replaceChild(n,t)}}))),o.add(s.a4(r));try{return n.aj(t,{...i,RETURN_TRUSTED_TYPE:!0})}finally{o.dispose()}}const M=["align","autoplay","alt","checked","class","colspan","controls","data-code","data-href","disabled","draggable","height","href","loop","muted","playsinline","poster","rowspan","src","style","target","title","type","width","start"];function P(e){return"string"===typeof e?e:function(e,t){let i=e.value??"";i.length>1e5&&(i=`${i.substr(0,1e5)}\u2026`);return D({isTrusted:!1},b(i,{async:!1,renderer:t?B.value:H.value}).replace(/&(#\d+|[a-zA-Z]+);/g,(e=>F.get(e)??e))).toString()}(e)}const F=new Map([[""",'"'],[" "," "],["&","&"],["'","'"],["<","<"],[">",">"]]);function U(){const e=new v;return e.code=({text:e})=>e,e.blockquote=({text:e})=>e+"\n",e.html=e=>"",e.heading=function({tokens:e}){return this.parser.parseInline(e)+"\n"},e.hr=()=>"",e.list=function({items:e}){return e.map((e=>this.listitem(e))).join("\n")+"\n"},e.listitem=({text:e})=>e+"\n",e.paragraph=function({tokens:e}){return this.parser.parseInline(e)+"\n"},e.table=function({header:e,rows:t}){return e.map((e=>this.tablecell(e))).join(" ")+"\n"+t.map((e=>e.map((e=>this.tablecell(e))).join(" "))).join("\n")+"\n"},e.tablerow=({text:e})=>e,e.tablecell=function({tokens:e}){return this.parser.parseInline(e)},e.strong=({text:e})=>e,e.em=({text:e})=>e,e.codespan=({text:e})=>e,e.br=e=>"\n",e.del=({text:e})=>e,e.image=e=>"",e.text=({text:e})=>e,e.link=({text:e})=>e,e}const H=new m.d((e=>U())),B=new m.d((()=>{const e=U();return e.code=({text:e})=>`\n\`\`\`\n${e}\n\`\`\`\n`,e}));function W(e){let t="";return e.forEach((e=>{t+=e.raw})),t}function V(e){if(e.tokens)for(let t=e.tokens.length-1;t>=0;t--){const i=e.tokens[t];if("text"===i.type){const s=i.raw.split("\n"),n=s[s.length-1];if(n.includes("`"))return Y(e);if(n.includes("**"))return ee(e,"**");if(n.match(/\*\w/))return q(e);if(n.match(/(^|\s)__\w/))return J(e);if(n.match(/(^|\s)_\w/))return $(e);if(n.match(/(^|\s)\[.*\]\(\w*/)||z(n)&&e.tokens.slice(0,t).some((e=>"text"===e.type&&e.raw.match(/\[[^\]]*$/)))){const i=e.tokens.slice(t+1);return"link"===i[0]?.type&&"text"===i[1]?.type&&i[1].raw.match(/^ *"[^"]*$/)||n.match(/^[^"]* +"[^"]*$/)?X(e):Q(e)}if(n.match(/(^|\s)\[\w*/))return Z(e)}}}function z(e){return!!e.match(/^[^\[]*\]\([^\)]*$/)}function G(e){const t=e.items[e.items.length-1],i=t.tokens?t.tokens[t.tokens.length-1]:void 0;let s;if("text"!==i?.type||"inRawBlock"in t||(s=V(i)),!s||"paragraph"!==s.type)return;const n=W(e.items.slice(0,-1)),r=t.raw.match(/^(\s*(-|\d+\.|\*) +)/)?.[0];if(!r)return;const o=r+W(t.tokens.slice(0,-1))+s.raw,a=E(n+o)[0];return"list"===a.type?a:void 0}const j=3;function K(e){let t,i;for(t=0;t<e.length;t++){const s=e[t];if("paragraph"===s.type&&s.raw.match(/(\n|^)\|/)){i=te(e.slice(t));break}if(t===e.length-1&&"list"===s.type){const e=G(s);if(e){i=[e];break}}if(t===e.length-1&&"paragraph"===s.type){const e=V(s);if(e){i=[e];break}}}if(i){const s=[...e.slice(0,t),...i];return s.links=e.links,s}return null}function Y(e){return ee(e,"`")}function q(e){return ee(e,"*")}function $(e){return ee(e,"_")}function Q(e){return ee(e,")")}function X(e){return ee(e,'")')}function Z(e){return ee(e,"](https://microsoft.com)")}function J(e){return ee(e,"__")}function ee(e,t){const i=W(Array.isArray(e)?e:[e]);return E(i+t)[0]}function te(e){const t=W(e),i=t.split("\n");let s,n=!1;for(let r=0;r<i.length;r++){const e=i[r].trim();if("undefined"===typeof s&&e.match(/^\s*\|/)){const t=e.match(/(\|[^\|]+)(?=\||$)/g);t&&(s=t.length)}else if("number"===typeof s){if(!e.match(/^\s*\|/))return;if(r!==i.length-1)return;n=!0}}if("number"===typeof s&&s>0){const e=n?i.slice(0,-1).join("\n"):t,r=!!e.match(/\|\s*$/),o=e+(r?"":"|")+`\n|${" --- |".repeat(s)}`;return E(o)}}function ie(e,t){return n.$w(e,t),(0,f.s)((()=>n.SV(e)))}},68250:(e,t,i)=>{"use strict";i.d(t,{u:()=>L});var s=i(90766),n=i(16980),r=i(83069),o=i(87289),a=i(57039),c=i(10154),l=i(18938),h=i(7142),d=i(57286),u=i(21478),g=i(84001),p=i(49099),m=i(56942),f=i(78209),_=i(98067),v=i(3730),C=i(25890),E=i(98031),b=i(67220),S=i(50091),y=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},w=function(e,t){return function(i,s){t(i,s,e)}};class R extends a.mm{constructor(e,t,i,s){super(10,t,e.item.anchor.range,i,s,!0),this.part=e}}let L=class extends d.xJ{constructor(e,t,i,s,n,r,o,a,c){super(e,t,i,r,a,s,n,c),this._resolverService=o,this.hoverOrdinal=6}suggestHoverAnchor(e){if(!u.M.get(this._editor))return null;if(6!==e.target.type)return null;const t=e.target.detail.injectedText?.options;return t instanceof o.Ho&&t.attachedData instanceof u.z?new R(t.attachedData,this,e.event.posx,e.event.posy):null}computeSync(){return[]}computeAsync(e,t,i){return e instanceof R?new s.AE((async t=>{const{part:s}=e;if(await s.item.resolve(i),i.isCancellationRequested)return;let r,o;if("string"===typeof s.item.hint.tooltip?r=(new n.Bc).appendText(s.item.hint.tooltip):s.item.hint.tooltip&&(r=s.item.hint.tooltip),r&&t.emitOne(new d.eH(this,e.range,[r],!1,0)),(0,C.EI)(s.item.hint.textEdits)&&t.emitOne(new d.eH(this,e.range,[(new n.Bc).appendText((0,f.kg)("hint.dbl","Double-click to insert"))],!1,10001)),"string"===typeof s.part.tooltip?o=(new n.Bc).appendText(s.part.tooltip):s.part.tooltip&&(o=s.part.tooltip),o&&t.emitOne(new d.eH(this,e.range,[o],!1,1)),s.part.location||s.part.command){let i;const r="altKey"===this._editor.getOption(78)?_.zx?(0,f.kg)("links.navigate.kb.meta.mac","cmd + click"):(0,f.kg)("links.navigate.kb.meta","ctrl + click"):_.zx?(0,f.kg)("links.navigate.kb.alt.mac","option + click"):(0,f.kg)("links.navigate.kb.alt","alt + click");s.part.location&&s.part.command?i=(new n.Bc).appendText((0,f.kg)("hint.defAndCommand","Go to Definition ({0}), right click for more",r)):s.part.location?i=(new n.Bc).appendText((0,f.kg)("hint.def","Go to Definition ({0})",r)):s.part.command&&(i=new n.Bc(`[${(0,f.kg)("hint.cmd","Execute Command")}](${(0,v.CN)(s.part.command)} "${s.part.command.title}") (${r})`,{isTrusted:!0})),i&&t.emitOne(new d.eH(this,e.range,[i],!1,1e4))}const a=await this._resolveInlayHintLabelPartHover(s,i);for await(const e of a)t.emitOne(e)})):s.AE.EMPTY}async _resolveInlayHintLabelPartHover(e,t){if(!e.part.location)return s.AE.EMPTY;const{uri:i,range:o}=e.part.location,a=await this._resolverService.createModelReference(i);try{const i=a.object.textEditorModel;return this._languageFeaturesService.hoverProvider.has(i)?(0,h.U)(this._languageFeaturesService.hoverProvider,i,new r.y(o.startLineNumber,o.startColumn),t).filter((e=>!(0,n.it)(e.hover.contents))).map((t=>new d.eH(this,e.item.anchor.range,t.hover.contents,!1,2+t.ordinal))):s.AE.EMPTY}finally{a.dispose()}}};L=y([w(1,c.L),w(2,p.C),w(3,E.b),w(4,b.TN),w(5,g.pG),w(6,l.ITextModelService),w(7,m.ILanguageFeaturesService),w(8,S.d)],L)},68310:(e,t,i)=>{"use strict";i.d(t,{R:()=>g,j:()=>u});var s=i(18447),n=i(64383),r=i(79400),o=i(36677),a=i(23750),c=i(50091),l=i(56942),h=i(52363),d=i(84001);async function u(e,t,i,s=!0){return _(new p,e,t,i,s)}function g(e,t,i,s){return Promise.resolve(i.provideColorPresentations(e,t,s))}class p{constructor(){}async compute(e,t,i,s){const n=await e.provideDocumentColors(t,i);if(Array.isArray(n))for(const r of n)s.push({colorInfo:r,provider:e});return Array.isArray(n)}}class m{constructor(){}async compute(e,t,i,s){const n=await e.provideDocumentColors(t,i);if(Array.isArray(n))for(const r of n)s.push({range:r.range,color:[r.color.red,r.color.green,r.color.blue,r.color.alpha]});return Array.isArray(n)}}class f{constructor(e){this.colorInfo=e}async compute(e,t,i,n){const r=await e.provideColorPresentations(t,this.colorInfo,s.XO.None);return Array.isArray(r)&&n.push(...r),Array.isArray(r)}}async function _(e,t,i,s,r){let o,a=!1;const c=[],l=t.ordered(i);for(let u=l.length-1;u>=0;u--){const t=l[u];if(t instanceof h.L)o=t;else try{await e.compute(t,i,s,c)&&(a=!0)}catch(d){(0,n.M_)(d)}}return a?c:o&&r?(await e.compute(o,i,s,c),c):[]}function v(e,t){const{colorProvider:i}=e.get(l.ILanguageFeaturesService),s=e.get(a.IModelService).getModel(t);if(!s)throw(0,n.Qg)();return{model:s,colorProviderRegistry:i,isDefaultColorDecoratorsEnabled:e.get(d.pG).getValue("editor.defaultColorDecorators",{resource:t})}}c.w.registerCommand("_executeDocumentColorProvider",(function(e,...t){const[i]=t;if(!(i instanceof r.r))throw(0,n.Qg)();const{model:o,colorProviderRegistry:a,isDefaultColorDecoratorsEnabled:c}=v(e,i);return _(new m,a,o,s.XO.None,c)})),c.w.registerCommand("_executeColorPresentationProvider",(function(e,...t){const[i,a]=t,{uri:c,range:l}=a;if(!(c instanceof r.r)||!Array.isArray(i)||4!==i.length||!o.Q.isIRange(l))throw(0,n.Qg)();const{model:h,colorProviderRegistry:d,isDefaultColorDecoratorsEnabled:u}=v(e,c),[g,p,m,C]=i;return _(new f({range:l,color:{red:g,green:p,blue:m,alpha:C}}),d,h,s.XO.None,u)}))},68792:(e,t,i)=>{"use strict";i.d(t,{$D:()=>s,Eq:()=>E,M0:()=>R,Mz:()=>w,No:()=>y,bs:()=>b});var s,n=i(60413),r=i(8597),o=i(56245),a=i(72962),c=i(5239),l=i(90766),h=i(41234),d=i(5662),u=i(44320),g=i(91508),p=i(69785),m=i(75326),f=i(253),_=i(18801),v=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},C=function(e,t){return function(i,s){t(i,s,e)}};!function(e){e.Tap="-monaco-textarea-synthetic-tap"}(s||(s={}));const E={forceCopyWithSyntaxHighlighting:!1};class b{static{this.INSTANCE=new b}constructor(){this._lastState=null}set(e,t){this._lastState={lastCopiedValue:e,data:t}}get(e){return this._lastState&&this._lastState.lastCopiedValue===e?this._lastState.data:(this._lastState=null,null)}}class S{constructor(){this._lastTypeTextLength=0}handleCompositionUpdate(e){const t={text:e=e||"",replacePrevCharCnt:this._lastTypeTextLength,replaceNextCharCnt:0,positionDelta:0};return this._lastTypeTextLength=e.length,t}}let y=class extends d.jG{get textAreaState(){return this._textAreaState}constructor(e,t,i,s,n,r){super(),this._host=e,this._textArea=t,this._OS=i,this._browser=s,this._accessibilityService=n,this._logService=r,this._onFocus=this._register(new h.vl),this.onFocus=this._onFocus.event,this._onBlur=this._register(new h.vl),this.onBlur=this._onBlur.event,this._onKeyDown=this._register(new h.vl),this.onKeyDown=this._onKeyDown.event,this._onKeyUp=this._register(new h.vl),this.onKeyUp=this._onKeyUp.event,this._onCut=this._register(new h.vl),this.onCut=this._onCut.event,this._onPaste=this._register(new h.vl),this.onPaste=this._onPaste.event,this._onType=this._register(new h.vl),this.onType=this._onType.event,this._onCompositionStart=this._register(new h.vl),this.onCompositionStart=this._onCompositionStart.event,this._onCompositionUpdate=this._register(new h.vl),this.onCompositionUpdate=this._onCompositionUpdate.event,this._onCompositionEnd=this._register(new h.vl),this.onCompositionEnd=this._onCompositionEnd.event,this._onSelectionChangeRequest=this._register(new h.vl),this.onSelectionChangeRequest=this._onSelectionChangeRequest.event,this._asyncFocusGainWriteScreenReaderContent=this._register(new d.HE),this._asyncTriggerCut=this._register(new l.uC((()=>this._onCut.fire()),0)),this._textAreaState=p._O.EMPTY,this._selectionChangeListener=null,this._accessibilityService.isScreenReaderOptimized()&&this.writeNativeTextAreaContent("ctor"),this._register(h.Jh.runAndSubscribe(this._accessibilityService.onDidChangeScreenReaderOptimized,(()=>{this._accessibilityService.isScreenReaderOptimized()&&!this._asyncFocusGainWriteScreenReaderContent.value?this._asyncFocusGainWriteScreenReaderContent.value=this._register(new l.uC((()=>this.writeNativeTextAreaContent("asyncFocusGain")),0)):this._asyncFocusGainWriteScreenReaderContent.clear()}))),this._hasFocus=!1,this._currentComposition=null;let o=null;this._register(this._textArea.onKeyDown((e=>{const t=new a.Z(e);(114===t.keyCode||this._currentComposition&&1===t.keyCode)&&t.stopPropagation(),t.equals(9)&&t.preventDefault(),o=t,this._onKeyDown.fire(t)}))),this._register(this._textArea.onKeyUp((e=>{const t=new a.Z(e);this._onKeyUp.fire(t)}))),this._register(this._textArea.onCompositionStart((e=>{p.Hf&&console.log("[compositionstart]",e);const t=new S;if(this._currentComposition)this._currentComposition=t;else{if(this._currentComposition=t,2===this._OS&&o&&o.equals(114)&&this._textAreaState.selectionStart===this._textAreaState.selectionEnd&&this._textAreaState.selectionStart>0&&this._textAreaState.value.substr(this._textAreaState.selectionStart-1,1)===e.data&&("ArrowRight"===o.code||"ArrowLeft"===o.code))return p.Hf&&console.log("[compositionstart] Handling long press case on macOS + arrow key",e),t.handleCompositionUpdate("x"),void this._onCompositionStart.fire({data:e.data});this._browser.isAndroid,this._onCompositionStart.fire({data:e.data})}}))),this._register(this._textArea.onCompositionUpdate((e=>{p.Hf&&console.log("[compositionupdate]",e);const t=this._currentComposition;if(!t)return;if(this._browser.isAndroid){const t=p._O.readFromTextArea(this._textArea,this._textAreaState),i=p._O.deduceAndroidCompositionInput(this._textAreaState,t);return this._textAreaState=t,this._onType.fire(i),void this._onCompositionUpdate.fire(e)}const i=t.handleCompositionUpdate(e.data);this._textAreaState=p._O.readFromTextArea(this._textArea,this._textAreaState),this._onType.fire(i),this._onCompositionUpdate.fire(e)}))),this._register(this._textArea.onCompositionEnd((e=>{p.Hf&&console.log("[compositionend]",e);const t=this._currentComposition;if(!t)return;if(this._currentComposition=null,this._browser.isAndroid){const e=p._O.readFromTextArea(this._textArea,this._textAreaState),t=p._O.deduceAndroidCompositionInput(this._textAreaState,e);return this._textAreaState=e,this._onType.fire(t),void this._onCompositionEnd.fire()}const i=t.handleCompositionUpdate(e.data);this._textAreaState=p._O.readFromTextArea(this._textArea,this._textAreaState),this._onType.fire(i),this._onCompositionEnd.fire()}))),this._register(this._textArea.onInput((e=>{if(p.Hf&&console.log("[input]",e),this._textArea.setIgnoreSelectionChangeTime("received input event"),this._currentComposition)return;const t=p._O.readFromTextArea(this._textArea,this._textAreaState),i=p._O.deduceInput(this._textAreaState,t,2===this._OS);(0!==i.replacePrevCharCnt||1!==i.text.length||!g.pc(i.text.charCodeAt(0))&&127!==i.text.charCodeAt(0))&&(this._textAreaState=t,""===i.text&&0===i.replacePrevCharCnt&&0===i.replaceNextCharCnt&&0===i.positionDelta||this._onType.fire(i))}))),this._register(this._textArea.onCut((e=>{this._textArea.setIgnoreSelectionChangeTime("received cut event"),this._ensureClipboardGetsEditorSelection(e),this._asyncTriggerCut.schedule()}))),this._register(this._textArea.onCopy((e=>{this._ensureClipboardGetsEditorSelection(e)}))),this._register(this._textArea.onPaste((e=>{if(this._textArea.setIgnoreSelectionChangeTime("received paste event"),e.preventDefault(),!e.clipboardData)return;let[t,i]=w.getTextData(e.clipboardData);t&&(i=i||b.INSTANCE.get(t),this._onPaste.fire({text:t,metadata:i}))}))),this._register(this._textArea.onFocus((()=>{const e=this._hasFocus;this._setHasFocus(!0),this._accessibilityService.isScreenReaderOptimized()&&this._browser.isSafari&&!e&&this._hasFocus&&(this._asyncFocusGainWriteScreenReaderContent.value||(this._asyncFocusGainWriteScreenReaderContent.value=new l.uC((()=>this.writeNativeTextAreaContent("asyncFocusGain")),0)),this._asyncFocusGainWriteScreenReaderContent.value.schedule())}))),this._register(this._textArea.onBlur((()=>{this._currentComposition&&(this._currentComposition=null,this.writeNativeTextAreaContent("blurWithoutCompositionEnd"),this._onCompositionEnd.fire()),this._setHasFocus(!1)}))),this._register(this._textArea.onSyntheticTap((()=>{this._browser.isAndroid&&this._currentComposition&&(this._currentComposition=null,this.writeNativeTextAreaContent("tapWithoutCompositionEnd"),this._onCompositionEnd.fire())})))}_installSelectionChangeListener(){let e=0;return r.ko(this._textArea.ownerDocument,"selectionchange",(t=>{if(c.p.onSelectionChange(),!this._hasFocus)return;if(this._currentComposition)return;if(!this._browser.isChrome)return;const i=Date.now(),s=i-e;if(e=i,s<5)return;const n=i-this._textArea.getIgnoreSelectionChangeTime();if(this._textArea.resetSelectionChangeTime(),n<100)return;if(!this._textAreaState.selection)return;const r=this._textArea.getValue();if(this._textAreaState.value!==r)return;const o=this._textArea.getSelectionStart(),a=this._textArea.getSelectionEnd();if(this._textAreaState.selectionStart===o&&this._textAreaState.selectionEnd===a)return;const l=this._textAreaState.deduceEditorPosition(o),h=this._host.deduceModelPosition(l[0],l[1],l[2]),d=this._textAreaState.deduceEditorPosition(a),u=this._host.deduceModelPosition(d[0],d[1],d[2]),g=new m.L(h.lineNumber,h.column,u.lineNumber,u.column);this._onSelectionChangeRequest.fire(g)}))}dispose(){super.dispose(),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)}focusTextArea(){this._setHasFocus(!0),this.refreshFocusState()}isFocused(){return this._hasFocus}refreshFocusState(){this._setHasFocus(this._textArea.hasFocus())}_setHasFocus(e){this._hasFocus!==e&&(this._hasFocus=e,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&this.writeNativeTextAreaContent("focusgain"),this._hasFocus?this._onFocus.fire():this._onBlur.fire())}_setAndWriteTextAreaState(e,t){this._hasFocus||(t=t.collapseSelection()),t.writeToTextArea(e,this._textArea,this._hasFocus),this._textAreaState=t}writeNativeTextAreaContent(e){!this._accessibilityService.isScreenReaderOptimized()&&"render"===e||this._currentComposition||(this._logService.trace(`writeTextAreaState(reason: ${e})`),this._setAndWriteTextAreaState(e,this._host.getScreenReaderContent()))}_ensureClipboardGetsEditorSelection(e){const t=this._host.getDataToCopy(),i={version:1,isFromEmptySelection:t.isFromEmptySelection,multicursorText:t.multicursorText,mode:t.mode};b.INSTANCE.set(this._browser.isFirefox?t.text.replace(/\r\n/g,"\n"):t.text,i),e.preventDefault(),e.clipboardData&&w.setTextData(e.clipboardData,t.text,t.html,i)}};y=v([C(4,f.j),C(5,_.rr)],y);const w={getTextData(e){const t=e.getData(u.K.text);let i=null;const s=e.getData("vscode-editor-data");if("string"===typeof s)try{i=JSON.parse(s),1!==i.version&&(i=null)}catch(n){}if(0===t.length&&null===i&&e.files.length>0){return[Array.prototype.slice.call(e.files,0).map((e=>e.name)).join("\n"),null]}return[t,i]},setTextData(e,t,i,s){e.setData(u.K.text,t),"string"===typeof i&&e.setData("text/html",i),e.setData("vscode-editor-data",JSON.stringify(s))}};class R extends d.jG{get ownerDocument(){return this._actual.ownerDocument}constructor(e){super(),this._actual=e,this.onKeyDown=this._register(new o.f(this._actual,"keydown")).event,this.onKeyUp=this._register(new o.f(this._actual,"keyup")).event,this.onCompositionStart=this._register(new o.f(this._actual,"compositionstart")).event,this.onCompositionUpdate=this._register(new o.f(this._actual,"compositionupdate")).event,this.onCompositionEnd=this._register(new o.f(this._actual,"compositionend")).event,this.onBeforeInput=this._register(new o.f(this._actual,"beforeinput")).event,this.onInput=this._register(new o.f(this._actual,"input")).event,this.onCut=this._register(new o.f(this._actual,"cut")).event,this.onCopy=this._register(new o.f(this._actual,"copy")).event,this.onPaste=this._register(new o.f(this._actual,"paste")).event,this.onFocus=this._register(new o.f(this._actual,"focus")).event,this.onBlur=this._register(new o.f(this._actual,"blur")).event,this._onSyntheticTap=this._register(new h.vl),this.onSyntheticTap=this._onSyntheticTap.event,this._ignoreSelectionChangeTime=0,this._register(this.onKeyDown((()=>c.p.onKeyDown()))),this._register(this.onBeforeInput((()=>c.p.onBeforeInput()))),this._register(this.onInput((()=>c.p.onInput()))),this._register(this.onKeyUp((()=>c.p.onKeyUp()))),this._register(r.ko(this._actual,s.Tap,(()=>this._onSyntheticTap.fire())))}hasFocus(){const e=r.jG(this._actual);return e?e.activeElement===this._actual:!!this._actual.isConnected&&r.bq()===this._actual}setIgnoreSelectionChangeTime(e){this._ignoreSelectionChangeTime=Date.now()}getIgnoreSelectionChangeTime(){return this._ignoreSelectionChangeTime}resetSelectionChangeTime(){this._ignoreSelectionChangeTime=0}getValue(){return this._actual.value}setValue(e,t){const i=this._actual;i.value!==t&&(this.setIgnoreSelectionChangeTime("setValue"),i.value=t)}getSelectionStart(){return"backward"===this._actual.selectionDirection?this._actual.selectionEnd:this._actual.selectionStart}getSelectionEnd(){return"backward"===this._actual.selectionDirection?this._actual.selectionStart:this._actual.selectionEnd}setSelectionRange(e,t,i){const s=this._actual;let o=null;const a=r.jG(s);o=a?a.activeElement:r.bq();const c=r.zk(o),l=o===s,h=s.selectionStart,d=s.selectionEnd;if(l&&h===t&&d===i)n.gm&&c.parent!==c&&s.focus();else{if(l)return this.setIgnoreSelectionChangeTime("setSelectionRange"),s.setSelectionRange(t,i),void(n.gm&&c.parent!==c&&s.focus());try{const e=r.zK(s);this.setIgnoreSelectionChangeTime("setSelectionRange"),s.focus(),s.setSelectionRange(t,i),r.wk(s,e)}catch(u){}}}}},68887:(e,t,i)=>{"use strict";var s=i(90766),n=i(10350),r=i(16980),o=i(5662),a=i(98067),c=i(91508),l=i(31450),h=i(87908),d=i(87289),u=i(74855),g=i(10920),p=i(10154),m=i(32398),f=i(57039),_=i(57286),v=i(8597),C=i(11799),E=i(36921),b=i(20492),S=i(63591),y=i(56245),w=i(72962),R=i(25154),L=i(41234),T=i(49099),x=i(42904),k=i(67220),A=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},N=function(e,t){return function(i,s){t(i,s,e)}};let I=class extends o.jG{get enabled(){return this._enabled}set enabled(e){e?(this.el.setAttribute("aria-disabled","false"),this.el.tabIndex=0,this.el.style.pointerEvents="auto",this.el.style.opacity="1",this.el.style.cursor="pointer",this._enabled=!1):(this.el.setAttribute("aria-disabled","true"),this.el.tabIndex=-1,this.el.style.pointerEvents="none",this.el.style.opacity="0.4",this.el.style.cursor="default",this._enabled=!0),this._enabled=e}constructor(e,t,i={},s,n){super(),this._link=t,this._hoverService=s,this._enabled=!0,this.el=(0,v.BC)(e,(0,v.$)("a.monaco-link",{tabIndex:t.tabIndex??0,href:t.href},t.label)),this.hoverDelegate=i.hoverDelegate??(0,x.nZ)("mouse"),this.setTooltip(t.title),this.el.setAttribute("role","button");const r=this._register(new y.f(this.el,"click")),o=this._register(new y.f(this.el,"keypress")),a=L.Jh.chain(o.event,(e=>e.map((e=>new w.Z(e))).filter((e=>3===e.keyCode)))),c=this._register(new y.f(this.el,R.B.Tap)).event;this._register(R.q.addTarget(this.el));const l=L.Jh.any(r.event,a,c);this._register(l((e=>{this.enabled&&(v.fs.stop(e,!0),i?.opener?i.opener(this._link.href):n.open(this._link.href,{allowCommands:!0}))}))),this.enabled=!0}setTooltip(e){this.hoverDelegate.showNativeHover?this.el.title=e??"":!this.hover&&e?this.hover=this._register(this._hoverService.setupManagedHover(this.hoverDelegate,this.el,e)):this.hover&&this.hover.update(e)}};I=A([N(3,k.TN),N(4,T.C)],I);var O=i(61394),D=i(25689),M=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},P=function(e,t){return function(i,s){t(i,s,e)}};let F=class extends o.jG{constructor(e,t){super(),this._editor=e,this.instantiationService=t,this.banner=this._register(this.instantiationService.createInstance(U))}hide(){this._editor.setBanner(null,0),this.banner.clear()}show(e){this.banner.show({...e,onClose:()=>{this.hide(),e.onClose?.()}}),this._editor.setBanner(this.banner.element,26)}};F=M([P(1,S._Y)],F);let U=class extends o.jG{constructor(e){super(),this.instantiationService=e,this.markdownRenderer=this.instantiationService.createInstance(b.T,{}),this.element=(0,v.$)("div.editor-banner"),this.element.tabIndex=0}getAriaLabel(e){return e.ariaLabel?e.ariaLabel:"string"===typeof e.message?e.message:void 0}getBannerMessage(e){if("string"===typeof e){const t=(0,v.$)("span");return t.innerText=e,t}return this.markdownRenderer.render(e).element}clear(){(0,v.w_)(this.element)}show(e){(0,v.w_)(this.element);const t=this.getAriaLabel(e);t&&this.element.setAttribute("aria-label",t);const i=(0,v.BC)(this.element,(0,v.$)("div.icon-container"));i.setAttribute("aria-hidden","true"),e.icon&&i.appendChild((0,v.$)(`div${D.L.asCSSSelector(e.icon)}`));const s=(0,v.BC)(this.element,(0,v.$)("div.message-container"));if(s.setAttribute("aria-hidden","true"),s.appendChild(this.getBannerMessage(e.message)),this.messageActionsContainer=(0,v.BC)(this.element,(0,v.$)("div.message-actions-container")),e.actions)for(const r of e.actions)this._register(this.instantiationService.createInstance(I,this.messageActionsContainer,{...r,tabIndex:-1},{}));const n=(0,v.BC)(this.element,(0,v.$)("div.action-container"));this.actionBar=this._register(new C.E(n)),this.actionBar.push(this._register(new E.rc("banner.close","Close Banner",D.L.asClassName(O.$_),!0,(()=>{"function"===typeof e.onClose&&e.onClose()}))),{icon:!0,label:!1}),this.actionBar.setFocusable(!1)}};U=M([P(0,S._Y)],U);var H=i(78209),B=i(84001),W=i(51467),V=i(51465),z=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},G=function(e,t){return function(i,s){t(i,s,e)}};const j=(0,O.pU)("extensions-warning-message",n.W.warning,H.kg("warningIcon","Icon shown with a warning message in the extensions editor."));let K=class extends o.jG{static{this.ID="editor.contrib.unicodeHighlighter"}constructor(e,t,i,s){super(),this._editor=e,this._editorWorkerService=t,this._workspaceTrustService=i,this._highlighter=null,this._bannerClosed=!1,this._updateState=e=>{if(e&&e.hasMore){if(this._bannerClosed)return;const t=Math.max(e.ambiguousCharacterCount,e.nonBasicAsciiCharacterCount,e.invisibleCharacterCount);let i;if(e.nonBasicAsciiCharacterCount>=t)i={message:H.kg("unicodeHighlighting.thisDocumentHasManyNonBasicAsciiUnicodeCharacters","This document contains many non-basic ASCII unicode characters"),command:new re};else if(e.ambiguousCharacterCount>=t)i={message:H.kg("unicodeHighlighting.thisDocumentHasManyAmbiguousUnicodeCharacters","This document contains many ambiguous unicode characters"),command:new se};else{if(!(e.invisibleCharacterCount>=t))throw new Error("Unreachable");i={message:H.kg("unicodeHighlighting.thisDocumentHasManyInvisibleUnicodeCharacters","This document contains many invisible unicode characters"),command:new ne}}this._bannerController.show({id:"unicodeHighlightBanner",message:i.message,icon:j,actions:[{label:i.command.shortLabel,href:`command:${i.command.id}`}],onClose:()=>{this._bannerClosed=!0}})}else this._bannerController.hide()},this._bannerController=this._register(s.createInstance(F,e)),this._register(this._editor.onDidChangeModel((()=>{this._bannerClosed=!1,this._updateHighlighter()}))),this._options=e.getOption(126),this._register(i.onDidChangeTrust((e=>{this._updateHighlighter()}))),this._register(e.onDidChangeConfiguration((t=>{t.hasChanged(126)&&(this._options=e.getOption(126),this._updateHighlighter())}))),this._updateHighlighter()}dispose(){this._highlighter&&(this._highlighter.dispose(),this._highlighter=null),super.dispose()}_updateHighlighter(){if(this._updateState(null),this._highlighter&&(this._highlighter.dispose(),this._highlighter=null),!this._editor.hasModel())return;const e=function(e,t){return{nonBasicASCII:t.nonBasicASCII===h.XR?!e:t.nonBasicASCII,ambiguousCharacters:t.ambiguousCharacters,invisibleCharacters:t.invisibleCharacters,includeComments:t.includeComments===h.XR?!e:t.includeComments,includeStrings:t.includeStrings===h.XR?!e:t.includeStrings,allowedCharacters:t.allowedCharacters,allowedLocales:t.allowedLocales}}(this._workspaceTrustService.isWorkspaceTrusted(),this._options);if([e.nonBasicASCII,e.ambiguousCharacters,e.invisibleCharacters].every((e=>!1===e)))return;const t={nonBasicASCII:e.nonBasicASCII,ambiguousCharacters:e.ambiguousCharacters,invisibleCharacters:e.invisibleCharacters,includeComments:e.includeComments,includeStrings:e.includeStrings,allowedCodePoints:Object.keys(e.allowedCharacters).map((e=>e.codePointAt(0))),allowedLocales:Object.keys(e.allowedLocales).map((e=>{if("_os"===e){return(new Intl.NumberFormat).resolvedOptions().locale}return"_vscode"===e?a.BH:e}))};this._editorWorkerService.canComputeUnicodeHighlights(this._editor.getModel().uri)?this._highlighter=new Y(this._editor,t,this._updateState,this._editorWorkerService):this._highlighter=new q(this._editor,t,this._updateState)}getDecorationInfo(e){return this._highlighter?this._highlighter.getDecorationInfo(e):null}};K=z([G(1,g.IEditorWorkerService),G(2,V.L),G(3,S._Y)],K);let Y=class extends o.jG{constructor(e,t,i,n){super(),this._editor=e,this._options=t,this._updateState=i,this._editorWorkerService=n,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new s.uC((()=>this._update()),250)),this._register(this._editor.onDidChangeModelContent((()=>{this._updateSoon.schedule()}))),this._updateSoon.schedule()}dispose(){this._decorations.clear(),super.dispose()}_update(){if(this._model.isDisposed())return;if(!this._model.mightContainNonBasicASCII())return void this._decorations.clear();const e=this._model.getVersionId();this._editorWorkerService.computedUnicodeHighlights(this._model.uri,this._options).then((t=>{if(this._model.isDisposed())return;if(this._model.getVersionId()!==e)return;this._updateState(t);const i=[];if(!t.hasMore)for(const e of t.ranges)i.push({range:e,options:ee.instance.getDecorationFromOptions(this._options)});this._decorations.set(i)}))}getDecorationInfo(e){if(!this._decorations.has(e))return null;const t=this._editor.getModel();if(!(0,m.GN)(t,e))return null;return{reason:J(t.getValueInRange(e.range),this._options),inComment:(0,m.a6)(t,e),inString:(0,m.wc)(t,e)}}};Y=z([G(3,g.IEditorWorkerService)],Y);class q extends o.jG{constructor(e,t,i){super(),this._editor=e,this._options=t,this._updateState=i,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new s.uC((()=>this._update()),250)),this._register(this._editor.onDidLayoutChange((()=>{this._updateSoon.schedule()}))),this._register(this._editor.onDidScrollChange((()=>{this._updateSoon.schedule()}))),this._register(this._editor.onDidChangeHiddenAreas((()=>{this._updateSoon.schedule()}))),this._register(this._editor.onDidChangeModelContent((()=>{this._updateSoon.schedule()}))),this._updateSoon.schedule()}dispose(){this._decorations.clear(),super.dispose()}_update(){if(this._model.isDisposed())return;if(!this._model.mightContainNonBasicASCII())return void this._decorations.clear();const e=this._editor.getVisibleRanges(),t=[],i={ranges:[],ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0,hasMore:!1};for(const s of e){const e=u.UnicodeTextModelHighlighter.computeUnicodeHighlights(this._model,this._options,s);for(const t of e.ranges)i.ranges.push(t);i.ambiguousCharacterCount+=i.ambiguousCharacterCount,i.invisibleCharacterCount+=i.invisibleCharacterCount,i.nonBasicAsciiCharacterCount+=i.nonBasicAsciiCharacterCount,i.hasMore=i.hasMore||e.hasMore}if(!i.hasMore)for(const s of i.ranges)t.push({range:s,options:ee.instance.getDecorationFromOptions(this._options)});this._updateState(i),this._decorations.set(t)}getDecorationInfo(e){if(!this._decorations.has(e))return null;const t=this._editor.getModel(),i=t.getValueInRange(e.range);return(0,m.GN)(t,e)?{reason:J(i,this._options),inComment:(0,m.a6)(t,e),inString:(0,m.wc)(t,e)}:null}}const $=H.kg("unicodeHighlight.configureUnicodeHighlightOptions","Configure Unicode Highlight Options");let Q=class{constructor(e,t,i){this._editor=e,this._languageService=t,this._openerService=i,this.hoverOrdinal=5}computeSync(e,t){if(!this._editor.hasModel()||1!==e.type)return[];const i=this._editor.getModel(),s=this._editor.getContribution(K.ID);if(!s)return[];const n=[],o=new Set;let a=300;for(const l of t){const e=s.getDecorationInfo(l);if(!e)continue;const t=i.getValueInRange(l.range).codePointAt(0),h=Z(t);let d;switch(e.reason.kind){case 0:d=(0,c.aC)(e.reason.confusableWith)?H.kg("unicodeHighlight.characterIsAmbiguousASCII","The character {0} could be confused with the ASCII character {1}, which is more common in source code.",h,Z(e.reason.confusableWith.codePointAt(0))):H.kg("unicodeHighlight.characterIsAmbiguous","The character {0} could be confused with the character {1}, which is more common in source code.",h,Z(e.reason.confusableWith.codePointAt(0)));break;case 1:d=H.kg("unicodeHighlight.characterIsInvisible","The character {0} is invisible.",h);break;case 2:d=H.kg("unicodeHighlight.characterIsNonBasicAscii","The character {0} is not a basic ASCII character.",h)}if(o.has(d))continue;o.add(d);const u={codePoint:t,reason:e.reason,inComment:e.inComment,inString:e.inString},g=H.kg("unicodeHighlight.adjustSettings","Adjust settings"),p=`command:${oe.ID}?${encodeURIComponent(JSON.stringify(u))}`,m=new r.Bc("",!0).appendMarkdown(d).appendText(" ").appendLink(p,g,$);n.push(new _.eH(this,l.range,[m],!1,a++))}return n}renderHoverParts(e,t){return(0,_.fm)(e,t,this._editor,this._languageService,this._openerService)}};function X(e){return`U+${e.toString(16).padStart(4,"0")}`}function Z(e){let t=`\`${X(e)}\``;return c.y_.isInvisibleCharacter(e)||(t+=` "${function(e){if(96===e)return"`` ` ``";return"`"+String.fromCodePoint(e)+"`"}(e)}"`),t}function J(e,t){return u.UnicodeTextModelHighlighter.computeUnicodeHighlightReason(e,t)}Q=z([G(1,p.L),G(2,T.C)],Q);class ee{constructor(){this.map=new Map}static{this.instance=new ee}getDecorationFromOptions(e){return this.getDecoration(!e.includeComments,!e.includeStrings)}getDecoration(e,t){const i=`${e}${t}`;let s=this.map.get(i);return s||(s=d.kI.createDynamic({description:"unicode-highlight",stickiness:1,className:"unicode-highlight",showIfCollapsed:!0,overviewRuler:null,minimap:null,hideInCommentTokens:e,hideInStringTokens:t}),this.map.set(i,s)),s}}class te extends l.ks{constructor(){super({id:se.ID,label:H.kg("action.unicodeHighlight.disableHighlightingInComments","Disable highlighting of characters in comments"),alias:"Disable highlighting of characters in comments",precondition:void 0}),this.shortLabel=H.kg("unicodeHighlight.disableHighlightingInComments.shortLabel","Disable Highlight In Comments")}async run(e,t,i){const s=e?.get(B.pG);s&&this.runAction(s)}async runAction(e){await e.updateValue(h.Of.includeComments,!1,2)}}class ie extends l.ks{constructor(){super({id:se.ID,label:H.kg("action.unicodeHighlight.disableHighlightingInStrings","Disable highlighting of characters in strings"),alias:"Disable highlighting of characters in strings",precondition:void 0}),this.shortLabel=H.kg("unicodeHighlight.disableHighlightingInStrings.shortLabel","Disable Highlight In Strings")}async run(e,t,i){const s=e?.get(B.pG);s&&this.runAction(s)}async runAction(e){await e.updateValue(h.Of.includeStrings,!1,2)}}class se extends l.ks{static{this.ID="editor.action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters"}constructor(){super({id:se.ID,label:H.kg("action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters","Disable highlighting of ambiguous characters"),alias:"Disable highlighting of ambiguous characters",precondition:void 0}),this.shortLabel=H.kg("unicodeHighlight.disableHighlightingOfAmbiguousCharacters.shortLabel","Disable Ambiguous Highlight")}async run(e,t,i){const s=e?.get(B.pG);s&&this.runAction(s)}async runAction(e){await e.updateValue(h.Of.ambiguousCharacters,!1,2)}}class ne extends l.ks{static{this.ID="editor.action.unicodeHighlight.disableHighlightingOfInvisibleCharacters"}constructor(){super({id:ne.ID,label:H.kg("action.unicodeHighlight.disableHighlightingOfInvisibleCharacters","Disable highlighting of invisible characters"),alias:"Disable highlighting of invisible characters",precondition:void 0}),this.shortLabel=H.kg("unicodeHighlight.disableHighlightingOfInvisibleCharacters.shortLabel","Disable Invisible Highlight")}async run(e,t,i){const s=e?.get(B.pG);s&&this.runAction(s)}async runAction(e){await e.updateValue(h.Of.invisibleCharacters,!1,2)}}class re extends l.ks{static{this.ID="editor.action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters"}constructor(){super({id:re.ID,label:H.kg("action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters","Disable highlighting of non basic ASCII characters"),alias:"Disable highlighting of non basic ASCII characters",precondition:void 0}),this.shortLabel=H.kg("unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters.shortLabel","Disable Non ASCII Highlight")}async run(e,t,i){const s=e?.get(B.pG);s&&this.runAction(s)}async runAction(e){await e.updateValue(h.Of.nonBasicASCII,!1,2)}}class oe extends l.ks{static{this.ID="editor.action.unicodeHighlight.showExcludeOptions"}constructor(){super({id:oe.ID,label:H.kg("action.unicodeHighlight.showExcludeOptions","Show Exclude Options"),alias:"Show Exclude Options",precondition:void 0})}async run(e,t,i){const{codePoint:s,reason:n,inString:r,inComment:o}=i,a=String.fromCodePoint(s),l=e.get(W.GK),d=e.get(B.pG);const u=[];if(0===n.kind)for(const c of n.notAmbiguousInLocales)u.push({label:H.kg("unicodeHighlight.allowCommonCharactersInLanguage",'Allow unicode characters that are more common in the language "{0}".',c),run:async()=>{ae(d,[c])}});if(u.push({label:function(e){return c.y_.isInvisibleCharacter(e)?H.kg("unicodeHighlight.excludeInvisibleCharFromBeingHighlighted","Exclude {0} (invisible character) from being highlighted",X(e)):H.kg("unicodeHighlight.excludeCharFromBeingHighlighted","Exclude {0} from being highlighted",`${X(e)} "${a}"`)}(s),run:()=>async function(e,t){const i=e.getValue(h.Of.allowedCharacters);let s;s="object"===typeof i&&i?i:{};for(const n of t)s[String.fromCodePoint(n)]=!0;await e.updateValue(h.Of.allowedCharacters,s,2)}(d,[s])}),o){const e=new te;u.push({label:e.label,run:async()=>e.runAction(d)})}else if(r){const e=new ie;u.push({label:e.label,run:async()=>e.runAction(d)})}if(0===n.kind){const e=new se;u.push({label:e.label,run:async()=>e.runAction(d)})}else if(1===n.kind){const e=new ne;u.push({label:e.label,run:async()=>e.runAction(d)})}else if(2===n.kind){const e=new re;u.push({label:e.label,run:async()=>e.runAction(d)})}else!function(e){throw new Error(`Unexpected value: ${e}`)}(n);const g=await l.pick(u,{title:$});g&&await g.run()}}async function ae(e,t){const i=e.inspect(h.Of.allowedLocales).user?.value;let s;s="object"===typeof i&&i?Object.assign({},i):{};for(const n of t)s[n]=!0;await e.updateValue(h.Of.allowedLocales,s,2)}(0,l.Fl)(se),(0,l.Fl)(ne),(0,l.Fl)(re),(0,l.Fl)(oe),(0,l.HW)(K.ID,K,1),f.B2.register(Q)},68938:(e,t,i)=>{"use strict";i.d(t,{$8:()=>a,SL:()=>o,_3:()=>c,aY:()=>h,uY:()=>l});var s=i(25890),n=i(64383),r=i(74444);class o{static trivial(e,t){return new o([new a(r.L.ofLength(e.length),r.L.ofLength(t.length))],!1)}static trivialTimedOut(e,t){return new o([new a(r.L.ofLength(e.length),r.L.ofLength(t.length))],!0)}constructor(e,t){this.diffs=e,this.hitTimeout=t}}class a{static invert(e,t){const i=[];return(0,s.pN)(e,((e,s)=>{i.push(a.fromOffsetPairs(e?e.getEndExclusives():c.zero,s?s.getStarts():new c(t,(e?e.seq2Range.endExclusive-e.seq1Range.endExclusive:0)+t)))})),i}static fromOffsetPairs(e,t){return new a(new r.L(e.offset1,t.offset1),new r.L(e.offset2,t.offset2))}static assertSorted(e){let t;for(const i of e){if(t&&!(t.seq1Range.endExclusive<=i.seq1Range.start&&t.seq2Range.endExclusive<=i.seq2Range.start))throw new n.D7("Sequence diffs must be sorted");t=i}}constructor(e,t){this.seq1Range=e,this.seq2Range=t}swap(){return new a(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(e){return new a(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}delta(e){return 0===e?this:new a(this.seq1Range.delta(e),this.seq2Range.delta(e))}deltaStart(e){return 0===e?this:new a(this.seq1Range.deltaStart(e),this.seq2Range.deltaStart(e))}deltaEnd(e){return 0===e?this:new a(this.seq1Range.deltaEnd(e),this.seq2Range.deltaEnd(e))}intersect(e){const t=this.seq1Range.intersect(e.seq1Range),i=this.seq2Range.intersect(e.seq2Range);if(t&&i)return new a(t,i)}getStarts(){return new c(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new c(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}class c{static{this.zero=new c(0,0)}static{this.max=new c(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER)}constructor(e,t){this.offset1=e,this.offset2=t}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(e){return 0===e?this:new c(this.offset1+e,this.offset2+e)}equals(e){return this.offset1===e.offset1&&this.offset2===e.offset2}}class l{static{this.instance=new l}isValid(){return!0}}class h{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new n.D7("timeout must be positive")}isValid(){return!(Date.now()-this.startTime<this.timeout)&&this.valid&&(this.valid=!1),this.valid}}},69259:(e,t,i)=>{"use strict";i.r(t),i.d(t,{LanguageIdCodec:()=>u,LanguagesRegistry:()=>g});var s=i(41234),n=i(5662),r=i(91508),o=i(99908),a=i(83941),c=i(1646),l=i(46359);const h=Object.prototype.hasOwnProperty,d="vs.editor.nullLanguage";class u{constructor(){this._languageIdToLanguage=[],this._languageToLanguageId=new Map,this._register(d,0),this._register(a.vH,1),this._nextLanguageId=2}_register(e,t){this._languageIdToLanguage[t]=e,this._languageToLanguageId.set(e,t)}register(e){if(this._languageToLanguageId.has(e))return;const t=this._nextLanguageId++;this._register(e,t)}encodeLanguageId(e){return this._languageToLanguageId.get(e)||0}decodeLanguageId(e){return this._languageIdToLanguage[e]||d}}class g extends n.jG{static{this.instanceCount=0}constructor(e=!0,t=!1){super(),this._onDidChange=this._register(new s.vl),this.onDidChange=this._onDidChange.event,g.instanceCount++,this._warnOnOverwrite=t,this.languageIdCodec=new u,this._dynamicLanguages=[],this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},e&&(this._initializeFromRegistry(),this._register(a.W6.onDidChangeLanguages((e=>{this._initializeFromRegistry()}))))}dispose(){g.instanceCount--,super.dispose()}_initializeFromRegistry(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},(0,o.clearPlatformLanguageAssociations)();const e=[].concat(a.W6.getLanguages()).concat(this._dynamicLanguages);this._registerLanguages(e)}_registerLanguages(e){for(const t of e)this._registerLanguage(t);this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach((e=>{const t=this._languages[e];t.name&&(this._nameMap[t.name]=t.identifier),t.aliases.forEach((e=>{this._lowercaseNameMap[e.toLowerCase()]=t.identifier})),t.mimetypes.forEach((e=>{this._mimeTypesMap[e]=t.identifier}))})),l.O.as(c.Fd.Configuration).registerOverrideIdentifiers(this.getRegisteredLanguageIds()),this._onDidChange.fire()}_registerLanguage(e){const t=e.id;let i;h.call(this._languages,t)?i=this._languages[t]:(this.languageIdCodec.register(t),i={identifier:t,name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[],icons:[]},this._languages[t]=i),this._mergeLanguage(i,e)}_mergeLanguage(e,t){const i=t.id;let s=null;if(Array.isArray(t.mimetypes)&&t.mimetypes.length>0&&(e.mimetypes.push(...t.mimetypes),s=t.mimetypes[0]),s||(s=`text/x-${i}`,e.mimetypes.push(s)),Array.isArray(t.extensions)){t.configuration?e.extensions=t.extensions.concat(e.extensions):e.extensions=e.extensions.concat(t.extensions);for(const e of t.extensions)(0,o.registerPlatformLanguageAssociation)({id:i,mime:s,extension:e},this._warnOnOverwrite)}if(Array.isArray(t.filenames))for(const r of t.filenames)(0,o.registerPlatformLanguageAssociation)({id:i,mime:s,filename:r},this._warnOnOverwrite),e.filenames.push(r);if(Array.isArray(t.filenamePatterns))for(const r of t.filenamePatterns)(0,o.registerPlatformLanguageAssociation)({id:i,mime:s,filepattern:r},this._warnOnOverwrite);if("string"===typeof t.firstLine&&t.firstLine.length>0){let e=t.firstLine;"^"!==e.charAt(0)&&(e="^"+e);try{const t=new RegExp(e);(0,r.eY)(t)||(0,o.registerPlatformLanguageAssociation)({id:i,mime:s,firstline:t},this._warnOnOverwrite)}catch(c){console.warn(`[${t.id}]: Invalid regular expression \`${e}\`: `,c)}}e.aliases.push(i);let n=null;if("undefined"!==typeof t.aliases&&Array.isArray(t.aliases)&&(n=0===t.aliases.length?[null]:t.aliases),null!==n)for(const r of n)r&&0!==r.length&&e.aliases.push(r);const a=null!==n&&n.length>0;if(a&&null===n[0]);else{const t=(a?n[0]:null)||i;!a&&e.name||(e.name=t)}t.configuration&&e.configurationFiles.push(t.configuration),t.icon&&e.icons.push(t.icon)}isRegisteredLanguageId(e){return!!e&&h.call(this._languages,e)}getRegisteredLanguageIds(){return Object.keys(this._languages)}getLanguageIdByLanguageName(e){const t=e.toLowerCase();return h.call(this._lowercaseNameMap,t)?this._lowercaseNameMap[t]:null}getLanguageIdByMimeType(e){return e&&h.call(this._mimeTypesMap,e)?this._mimeTypesMap[e]:null}guessLanguageIdByFilepathOrFirstLine(e,t){return e||t?(0,o.getLanguageIds)(e,t):[]}}},69785:(e,t,i)=>{"use strict";i.d(t,{Al:()=>a,Hf:()=>r,_O:()=>o});var s=i(91508),n=i(36677);const r=!1;class o{static{this.EMPTY=new o("",0,0,null,void 0)}constructor(e,t,i,s,n){this.value=e,this.selectionStart=t,this.selectionEnd=i,this.selection=s,this.newlineCountBeforeSelection=n}toString(){return`[ <${this.value}>, selectionStart: ${this.selectionStart}, selectionEnd: ${this.selectionEnd}]`}static readFromTextArea(e,t){const i=e.getValue(),s=e.getSelectionStart(),n=e.getSelectionEnd();let r;if(t){i.substring(0,s)===t.value.substring(0,t.selectionStart)&&(r=t.newlineCountBeforeSelection)}return new o(i,s,n,null,r)}collapseSelection(){return this.selectionStart===this.value.length?this:new o(this.value,this.value.length,this.value.length,null,void 0)}writeToTextArea(e,t,i){r&&console.log(`writeToTextArea ${e}: ${this.toString()}`),t.setValue(e,this.value),i&&t.setSelectionRange(e,this.selectionStart,this.selectionEnd)}deduceEditorPosition(e){if(e<=this.selectionStart){const t=this.value.substring(e,this.selectionStart);return this._finishDeduceEditorPosition(this.selection?.getStartPosition()??null,t,-1)}if(e>=this.selectionEnd){const t=this.value.substring(this.selectionEnd,e);return this._finishDeduceEditorPosition(this.selection?.getEndPosition()??null,t,1)}const t=this.value.substring(this.selectionStart,e);if(-1===t.indexOf(String.fromCharCode(8230)))return this._finishDeduceEditorPosition(this.selection?.getStartPosition()??null,t,1);const i=this.value.substring(e,this.selectionEnd);return this._finishDeduceEditorPosition(this.selection?.getEndPosition()??null,i,-1)}_finishDeduceEditorPosition(e,t,i){let s=0,n=-1;for(;-1!==(n=t.indexOf("\n",n+1));)s++;return[e,i*t.length,s]}static deduceInput(e,t,i){if(!e)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};r&&(console.log("------------------------deduceInput"),console.log(`PREVIOUS STATE: ${e.toString()}`),console.log(`CURRENT STATE: ${t.toString()}`));const n=Math.min(s.Qp(e.value,t.value),e.selectionStart,t.selectionStart),o=Math.min(s.Vi(e.value,t.value),e.value.length-e.selectionEnd,t.value.length-t.selectionEnd),a=e.value.substring(n,e.value.length-o),c=t.value.substring(n,t.value.length-o),l=e.selectionStart-n,h=e.selectionEnd-n,d=t.selectionStart-n,u=t.selectionEnd-n;if(r&&(console.log(`AFTER DIFFING PREVIOUS STATE: <${a}>, selectionStart: ${l}, selectionEnd: ${h}`),console.log(`AFTER DIFFING CURRENT STATE: <${c}>, selectionStart: ${d}, selectionEnd: ${u}`)),d===u){const t=e.selectionStart-n;return r&&console.log(`REMOVE PREVIOUS: ${t} chars`),{text:c,replacePrevCharCnt:t,replaceNextCharCnt:0,positionDelta:0}}return{text:c,replacePrevCharCnt:h-l,replaceNextCharCnt:0,positionDelta:0}}static deduceAndroidCompositionInput(e,t){if(!e)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};if(r&&(console.log("------------------------deduceAndroidCompositionInput"),console.log(`PREVIOUS STATE: ${e.toString()}`),console.log(`CURRENT STATE: ${t.toString()}`)),e.value===t.value)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:t.selectionEnd-e.selectionEnd};const i=Math.min(s.Qp(e.value,t.value),e.selectionEnd),n=Math.min(s.Vi(e.value,t.value),e.value.length-e.selectionEnd),o=e.value.substring(i,e.value.length-n),a=t.value.substring(i,t.value.length-n),c=e.selectionStart-i,l=e.selectionEnd-i,h=t.selectionStart-i,d=t.selectionEnd-i;return r&&(console.log(`AFTER DIFFING PREVIOUS STATE: <${o}>, selectionStart: ${c}, selectionEnd: ${l}`),console.log(`AFTER DIFFING CURRENT STATE: <${a}>, selectionStart: ${h}, selectionEnd: ${d}`)),{text:a,replacePrevCharCnt:l,replaceNextCharCnt:o.length-l,positionDelta:d-a.length}}}class a{static _getPageOfLine(e,t){return Math.floor((e-1)/t)}static _getRangeForPage(e,t){const i=e*t,s=i+1,r=i+t;return new n.Q(s,1,r+1,1)}static fromEditorSelection(e,t,i,s){const r=500,c=a._getPageOfLine(t.startLineNumber,i),l=a._getRangeForPage(c,i),h=a._getPageOfLine(t.endLineNumber,i),d=a._getRangeForPage(h,i);let u=l.intersectRanges(new n.Q(1,1,t.startLineNumber,t.startColumn));if(s&&e.getValueLengthInRange(u,1)>r){const t=e.modifyPosition(u.getEndPosition(),-500);u=n.Q.fromPositions(t,u.getEndPosition())}const g=e.getValueInRange(u,1),p=e.getLineCount(),m=e.getLineMaxColumn(p);let f=d.intersectRanges(new n.Q(t.endLineNumber,t.endColumn,p,m));if(s&&e.getValueLengthInRange(f,1)>r){const t=e.modifyPosition(f.getStartPosition(),r);f=n.Q.fromPositions(f.getStartPosition(),t)}const _=e.getValueInRange(f,1);let v;if(c===h||c+1===h)v=e.getValueInRange(t,1);else{const i=l.intersectRanges(t),s=d.intersectRanges(t);v=e.getValueInRange(i,1)+String.fromCharCode(8230)+e.getValueInRange(s,1)}return s&&v.length>1e3&&(v=v.substring(0,r)+String.fromCharCode(8230)+v.substring(v.length-r,v.length)),new o(g+v+_,g.length,g.length+v.length,t,u.endLineNumber-u.startLineNumber)}}},70125:(e,t,i)=>{"use strict";i.d(t,{r:()=>l});var s=i(25890),n=i(631),r=i(78209);function o(e,t){return t&&(e.stack||e.stacktrace)?r.kg("stackTrace.format","{0}: {1}",c(e),a(e.stack)||a(e.stacktrace)):c(e)}function a(e){return Array.isArray(e)?e.join("\n"):e}function c(e){return"ERR_UNC_HOST_NOT_ALLOWED"===e.code?`${e.message}. Please update the 'security.allowedUNCHosts' setting if you want to allow this host.`:"string"===typeof e.code&&"number"===typeof e.errno&&"string"===typeof e.syscall?r.kg("nodeExceptionMessage","A system error occurred ({0})",e.message):e.message||r.kg("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}function l(e=null,t=!1){if(!e)return r.kg("error.defaultMessage","An unknown error occurred. Please consult the log for more details.");if(Array.isArray(e)){const i=s.Yc(e),n=l(i[0],t);return i.length>1?r.kg("error.moreErrors","{0} ({1} errors in total)",n,i.length):n}if(n.Kg(e))return e;if(e.detail){const i=e.detail;if(i.error)return o(i.error,t);if(i.exception)return o(i.exception,t)}return e.stack?o(e,t):e.message?e.message:r.kg("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}},70206:(e,t)=>{var i;i=function(e){e.version="1.2.2";var t=function(){for(var e=0,t=new Array(256),i=0;256!=i;++i)e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=i)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1,t[i]=e;return"undefined"!==typeof Int32Array?new Int32Array(t):t}(),i=function(e){var t=0,i=0,s=0,n="undefined"!==typeof Int32Array?new Int32Array(4096):new Array(4096);for(s=0;256!=s;++s)n[s]=e[s];for(s=0;256!=s;++s)for(i=e[s],t=256+s;t<4096;t+=256)i=n[t]=i>>>8^e[255&i];var r=[];for(s=1;16!=s;++s)r[s-1]="undefined"!==typeof Int32Array?n.subarray(256*s,256*s+256):n.slice(256*s,256*s+256);return r}(t),s=i[0],n=i[1],r=i[2],o=i[3],a=i[4],c=i[5],l=i[6],h=i[7],d=i[8],u=i[9],g=i[10],p=i[11],m=i[12],f=i[13],_=i[14];e.table=t,e.bstr=function(e,i){for(var s=~i,n=0,r=e.length;n<r;)s=s>>>8^t[255&(s^e.charCodeAt(n++))];return~s},e.buf=function(e,i){for(var v=~i,C=e.length-15,E=0;E<C;)v=_[e[E++]^255&v]^f[e[E++]^v>>8&255]^m[e[E++]^v>>16&255]^p[e[E++]^v>>>24]^g[e[E++]]^u[e[E++]]^d[e[E++]]^h[e[E++]]^l[e[E++]]^c[e[E++]]^a[e[E++]]^o[e[E++]]^r[e[E++]]^n[e[E++]]^s[e[E++]]^t[e[E++]];for(C+=15;E<C;)v=v>>>8^t[255&(v^e[E++])];return~v},e.str=function(e,i){for(var s=~i,n=0,r=e.length,o=0,a=0;n<r;)(o=e.charCodeAt(n++))<128?s=s>>>8^t[255&(s^o)]:o<2048?s=(s=s>>>8^t[255&(s^(192|o>>6&31))])>>>8^t[255&(s^(128|63&o))]:o>=55296&&o<57344?(o=64+(1023&o),a=1023&e.charCodeAt(n++),s=(s=(s=(s=s>>>8^t[255&(s^(240|o>>8&7))])>>>8^t[255&(s^(128|o>>2&63))])>>>8^t[255&(s^(128|a>>6&15|(3&o)<<4))])>>>8^t[255&(s^(128|63&a))]):s=(s=(s=s>>>8^t[255&(s^(224|o>>12&15))])>>>8^t[255&(s^(128|o>>6&63))])>>>8^t[255&(s^(128|63&o))];return~s}},"undefined"===typeof DO_NOT_EXPORT_CRC?i(t):i({})},70492:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>i.e(8986).then(i.bind(i,58986))})},70552:(e,t,i)=>{"use strict";var s=i(31450),n=i(79027),r=i(78209);class o extends s.ks{constructor(){super({id:"editor.action.fontZoomIn",label:r.kg("EditorFontZoomIn.label","Increase Editor Font Size"),alias:"Increase Editor Font Size",precondition:void 0})}run(e,t){n.D.setZoomLevel(n.D.getZoomLevel()+1)}}class a extends s.ks{constructor(){super({id:"editor.action.fontZoomOut",label:r.kg("EditorFontZoomOut.label","Decrease Editor Font Size"),alias:"Decrease Editor Font Size",precondition:void 0})}run(e,t){n.D.setZoomLevel(n.D.getZoomLevel()-1)}}class c extends s.ks{constructor(){super({id:"editor.action.fontZoomReset",label:r.kg("EditorFontZoomReset.label","Reset Editor Font Size"),alias:"Reset Editor Font Size",precondition:void 0})}run(e,t){n.D.setZoomLevel(0)}}(0,s.Fl)(o),(0,s.Fl)(a),(0,s.Fl)(c)},70983:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var s,n=i(59284);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},r.apply(null,arguments)}const o=function(e){return n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),s||(s=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10 1.5A.75.75 0 0010 3h1.94L6.97 7.97a.75.75 0 001.06 1.06L13 4.06V6a.75.75 0 001.5 0V2.25a.75.75 0 00-.75-.75zM7.5 3.25a.75.75 0 00-.75-.75H4.5a3 3 0 00-3 3v6a3 3 0 003 3h6a3 3 0 003-3V9.25a.75.75 0 00-1.5 0v2.25a1.5 1.5 0 01-1.5 1.5h-6A1.5 1.5 0 013 11.5v-6A1.5 1.5 0 014.5 4h2.25a.75.75 0 00.75-.75",clipRule:"evenodd"})))}},71316:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>i.e(6658).then(i.bind(i,86658))})},71319:(e,t,i)=>{"use strict";i.d(t,{V:()=>r,w:()=>o});var s=i(31308),n=i(13850);function r(e,t,i){return(0,n.eP)({debugName:()=>`Configuration Key "${e}"`},(t=>i.onDidChangeConfiguration((i=>{i.affectsConfiguration(e)&&t(i)}))),(()=>i.getValue(e)??t))}function o(e,t,i){const n=e.bindTo(t);return(0,s.zL)({debugName:()=>`Set Context Key "${e.key}"`},(e=>{n.set(i(e))}))}},71468:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>i.e(8234).then(i.bind(i,98234))})},71597:(e,t,i)=>{"use strict";i.d(t,{Fd:()=>a,aJ:()=>s});var s,n=i(25890),r=i(5662),o=i(46359);!function(e){e[e.PRESERVE=0]="PRESERVE",e[e.LAST=1]="LAST"}(s||(s={}));const a={Quickaccess:"workbench.contributions.quickaccess"};o.O.add(a.Quickaccess,new class{constructor(){this.providers=[],this.defaultProvider=void 0}registerQuickAccessProvider(e){return 0===e.prefix.length?this.defaultProvider=e:this.providers.push(e),this.providers.sort(((e,t)=>t.prefix.length-e.prefix.length)),(0,r.s)((()=>{this.providers.splice(this.providers.indexOf(e),1),this.defaultProvider===e&&(this.defaultProvider=void 0)}))}getQuickAccessProviders(){return(0,n.Yc)([this.defaultProvider,...this.providers])}getQuickAccessProvider(e){return e&&this.providers.find((t=>e.startsWith(t.prefix)))||void 0||this.defaultProvider}})},71933:(e,t,i)=>{"use strict";i.d(t,{C:()=>ue});var s,n=i(8597),r=i(11007),o=i(64383),a=i(91090),c=i(5662),l=i(83069),h=i(87289),d=i(56942),u=i(55130),g=i(8995),p=i(61407),m=i(98031),f=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},_=function(e,t){return function(i,s){t(i,s,e)}};let v=class{static{s=this}static{this.codeActionCommands=[u.Xj,u.k_,u.C9,u.Uy,u.Rw]}constructor(e){this.keybindingService=e}getResolver(){const e=new a.d((()=>this.keybindingService.getKeybindings().filter((e=>s.codeActionCommands.indexOf(e.command)>=0)).filter((e=>e.resolvedKeybinding)).map((e=>{let t=e.commandArgs;return e.command===u.Uy?t={kind:p.gB.SourceOrganizeImports.value}:e.command===u.Rw&&(t={kind:p.gB.SourceFixAll.value}),{resolvedKeybinding:e.resolvedKeybinding,...p.QA.fromUser(t,{kind:g.k.None,apply:"never"})}}))));return t=>{if(t.kind){const i=this.bestKeybindingForCodeAction(t,e.value);return i?.resolvedKeybinding}}}bestKeybindingForCodeAction(e,t){if(!e.kind)return;const i=new g.k(e.kind);return t.filter((e=>e.kind.contains(i))).filter((t=>!t.preferred||e.isPreferred)).reduceRight(((e,t)=>e?e.kind.contains(t.kind)?t:e:t),void 0)}};v=s=f([_(0,m.b)],v);i(97791);var C=i(10350),E=(i(93409),i(78209));const b=Object.freeze({kind:g.k.Empty,title:(0,E.kg)("codeAction.widget.id.more","More Actions...")}),S=Object.freeze([{kind:p.gB.QuickFix,title:(0,E.kg)("codeAction.widget.id.quickfix","Quick Fix")},{kind:p.gB.RefactorExtract,title:(0,E.kg)("codeAction.widget.id.extract","Extract"),icon:C.W.wrench},{kind:p.gB.RefactorInline,title:(0,E.kg)("codeAction.widget.id.inline","Inline"),icon:C.W.wrench},{kind:p.gB.RefactorRewrite,title:(0,E.kg)("codeAction.widget.id.convert","Rewrite"),icon:C.W.wrench},{kind:p.gB.RefactorMove,title:(0,E.kg)("codeAction.widget.id.move","Move"),icon:C.W.wrench},{kind:p.gB.SurroundWith,title:(0,E.kg)("codeAction.widget.id.surround","Surround With"),icon:C.W.surroundWith},{kind:p.gB.Source,title:(0,E.kg)("codeAction.widget.id.source","Source Action"),icon:C.W.symbolFile},b]);var y=i(96758),w=i(99645),R=i(11799),L=i(47625),T=i(93090),x=i(18447),k=i(98067),A=i(25689),N=i(47508),I=i(19070),O=i(66261),D=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},M=function(e,t){return function(i,s){t(i,s,e)}};const P="acceptSelectedCodeAction",F="previewSelectedCodeAction";class U{get templateId(){return"header"}renderTemplate(e){e.classList.add("group-header");const t=document.createElement("span");return e.append(t),{container:e,text:t}}renderElement(e,t,i){i.text.textContent=e.group?.title??""}disposeTemplate(e){}}let H=class{get templateId(){return"action"}constructor(e,t){this._supportsPreview=e,this._keybindingService=t}renderTemplate(e){e.classList.add(this.templateId);const t=document.createElement("div");t.className="icon",e.append(t);const i=document.createElement("span");i.className="title",e.append(i);return{container:e,icon:t,text:i,keybinding:new L.x(e,k.OS)}}renderElement(e,t,i){if(e.group?.icon?(i.icon.className=A.L.asClassName(e.group.icon),e.group.icon.color&&(i.icon.style.color=(0,O.GuP)(e.group.icon.color.id))):(i.icon.className=A.L.asClassName(C.W.lightBulb),i.icon.style.color="var(--vscode-editorLightBulb-foreground)"),!e.item||!e.label)return;i.text.textContent=G(e.label),i.keybinding.set(e.keybinding),n.bo(!!e.keybinding,i.keybinding.element);const s=this._keybindingService.lookupKeybinding(P)?.getLabel(),r=this._keybindingService.lookupKeybinding(F)?.getLabel();i.container.classList.toggle("option-disabled",e.disabled),e.disabled?i.container.title=e.label:s&&r?this._supportsPreview&&e.canPreview?i.container.title=(0,E.kg)({key:"label-preview",comment:['placeholders are keybindings, e.g "F2 to Apply, Shift+F2 to Preview"']},"{0} to Apply, {1} to Preview",s,r):i.container.title=(0,E.kg)({key:"label",comment:['placeholder is a keybinding, e.g "F2 to Apply"']},"{0} to Apply",s):i.container.title=""}disposeTemplate(e){e.keybinding.dispose()}};H=D([M(1,m.b)],H);class B extends UIEvent{constructor(){super("acceptSelectedAction")}}class W extends UIEvent{constructor(){super("previewSelectedAction")}}function V(e){if("action"===e.kind)return e.label}let z=class extends c.jG{constructor(e,t,i,s,n,r){super(),this._delegate=s,this._contextViewService=n,this._keybindingService=r,this._actionLineHeight=24,this._headerLineHeight=26,this.cts=this._register(new x.Qi),this.domNode=document.createElement("div"),this.domNode.classList.add("actionList");const o={getHeight:e=>"header"===e.kind?this._headerLineHeight:this._actionLineHeight,getTemplateId:e=>e.kind};this._list=this._register(new T.B8(e,this.domNode,o,[new H(t,this._keybindingService),new U],{keyboardSupport:!1,typeNavigationEnabled:!0,keyboardNavigationLabelProvider:{getKeyboardNavigationLabel:V},accessibilityProvider:{getAriaLabel:e=>{if("action"===e.kind){let t=e.label?G(e?.label):"";return e.disabled&&(t=(0,E.kg)({key:"customQuickFixWidget.labels",comment:["Action widget labels for accessibility."]},"{0}, Disabled Reason: {1}",t,e.disabled)),t}return null},getWidgetAriaLabel:()=>(0,E.kg)({key:"customQuickFixWidget",comment:["An action widget option"]},"Action Widget"),getRole:e=>"action"===e.kind?"option":"separator",getWidgetRole:()=>"listbox"}})),this._list.style(I.IN),this._register(this._list.onMouseClick((e=>this.onListClick(e)))),this._register(this._list.onMouseOver((e=>this.onListHover(e)))),this._register(this._list.onDidChangeFocus((()=>this.onFocus()))),this._register(this._list.onDidChangeSelection((e=>this.onListSelection(e)))),this._allMenuItems=i,this._list.splice(0,this._list.length,this._allMenuItems),this._list.length&&this.focusNext()}focusCondition(e){return!e.disabled&&"action"===e.kind}hide(e){this._delegate.onHide(e),this.cts.cancel(),this._contextViewService.hideContextView()}layout(e){const t=this._allMenuItems.filter((e=>"header"===e.kind)).length,i=this._allMenuItems.length*this._actionLineHeight+t*this._headerLineHeight-t*this._actionLineHeight;this._list.layout(i);let s=e;if(this._allMenuItems.length>=50)s=380;else{const t=this._allMenuItems.map(((e,t)=>{const i=this.domNode.ownerDocument.getElementById(this._list.getElementID(t));if(i){i.style.width="auto";const e=i.getBoundingClientRect().width;return i.style.width="",e}return 0}));s=Math.max(...t,e)}const n=Math.min(i,.7*this.domNode.ownerDocument.body.clientHeight);return this._list.layout(n,s),this.domNode.style.height=`${n}px`,this._list.domFocus(),s}focusPrevious(){this._list.focusPrevious(1,!0,void 0,this.focusCondition)}focusNext(){this._list.focusNext(1,!0,void 0,this.focusCondition)}acceptSelected(e){const t=this._list.getFocus();if(0===t.length)return;const i=t[0],s=this._list.element(i);if(!this.focusCondition(s))return;const n=e?new W:new B;this._list.setSelection([i],n)}onListSelection(e){if(!e.elements.length)return;const t=e.elements[0];t.item&&this.focusCondition(t)?this._delegate.onSelect(t.item,e.browserEvent instanceof W):this._list.setSelection([])}onFocus(){const e=this._list.getFocus();if(0===e.length)return;const t=e[0],i=this._list.element(t);this._delegate.onFocus?.(i.item)}async onListHover(e){const t=e.element;if(t&&t.item&&this.focusCondition(t)){if(this._delegate.onHover&&!t.disabled&&"action"===t.kind){const e=await this._delegate.onHover(t.item,this.cts.token);t.canPreview=e?e.canPreview:void 0}e.index&&this._list.splice(e.index,1,[t])}this._list.setFocus("number"===typeof e.index?[e.index]:[])}onListClick(e){e.element&&this.focusCondition(e.element)&&this._list.setFocus([])}};function G(e){return e.replace(/\r\n|\r|\n/g," ")}z=D([M(4,N.l),M(5,m.b)],z);var j=i(27195),K=i(32848),Y=i(14718),q=i(63591),$=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Q=function(e,t){return function(i,s){t(i,s,e)}};(0,O.x1A)("actionBar.toggledBackground",O.c1f,(0,E.kg)("actionBar.toggledBackground","Background color for toggled action items in action bar."));const X={Visible:new K.N1("codeActionMenuVisible",!1,(0,E.kg)("codeActionMenuVisible","Whether the action widget list is visible"))},Z=(0,q.u1)("actionWidgetService");let J=class extends c.jG{get isVisible(){return X.Visible.getValue(this._contextKeyService)||!1}constructor(e,t,i){super(),this._contextViewService=e,this._contextKeyService=t,this._instantiationService=i,this._list=this._register(new c.HE)}show(e,t,i,s,n,r,o){const a=X.Visible.bindTo(this._contextKeyService),c=this._instantiationService.createInstance(z,e,t,i,s);this._contextViewService.showContextView({getAnchor:()=>n,render:e=>(a.set(!0),this._renderWidget(e,c,o??[])),onHide:e=>{a.reset(),this._onWidgetClosed(e)}},r,!1)}acceptSelected(e){this._list.value?.acceptSelected(e)}focusPrevious(){this._list?.value?.focusPrevious()}focusNext(){this._list?.value?.focusNext()}hide(e){this._list.value?.hide(e),this._list.clear()}_renderWidget(e,t,i){const s=document.createElement("div");if(s.classList.add("action-widget"),e.appendChild(s),this._list.value=t,!this._list.value)throw new Error("List has no value");s.appendChild(this._list.value.domNode);const r=new c.Cm,o=document.createElement("div"),a=e.appendChild(o);a.classList.add("context-view-block"),r.add(n.ko(a,n.Bx.MOUSE_DOWN,(e=>e.stopPropagation())));const l=document.createElement("div"),h=e.appendChild(l);h.classList.add("context-view-pointerBlock"),r.add(n.ko(h,n.Bx.POINTER_MOVE,(()=>h.remove()))),r.add(n.ko(h,n.Bx.MOUSE_DOWN,(()=>h.remove())));let d=0;if(i.length){const e=this._createActionBar(".action-widget-action-bar",i);e&&(s.appendChild(e.getContainer().parentElement),r.add(e),d=e.getContainer().offsetWidth)}const u=this._list.value?.layout(d);s.style.width=`${u}px`;const g=r.add(n.w5(e));return r.add(g.onDidBlur((()=>this.hide(!0)))),r}_createActionBar(e,t){if(!t.length)return;const i=n.$(e),s=new R.E(i);return s.push(t,{icon:!1,label:!0}),s}_onWidgetClosed(e){this._list.value?.hide(e)}};J=$([Q(0,N.l),Q(1,K.fN),Q(2,q._Y)],J),(0,Y.v)(Z,J,1);const ee=1100;(0,j.ug)(class extends j.L{constructor(){super({id:"hideCodeActionWidget",title:(0,E.aS)("hideCodeActionWidget.title","Hide action widget"),precondition:X.Visible,keybinding:{weight:ee,primary:9,secondary:[1033]}})}run(e){e.get(Z).hide(!0)}}),(0,j.ug)(class extends j.L{constructor(){super({id:"selectPrevCodeAction",title:(0,E.aS)("selectPrevCodeAction.title","Select previous action"),precondition:X.Visible,keybinding:{weight:ee,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})}run(e){const t=e.get(Z);t instanceof J&&t.focusPrevious()}}),(0,j.ug)(class extends j.L{constructor(){super({id:"selectNextCodeAction",title:(0,E.aS)("selectNextCodeAction.title","Select next action"),precondition:X.Visible,keybinding:{weight:ee,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})}run(e){const t=e.get(Z);t instanceof J&&t.focusNext()}}),(0,j.ug)(class extends j.L{constructor(){super({id:P,title:(0,E.aS)("acceptSelected.title","Accept selected action"),precondition:X.Visible,keybinding:{weight:ee,primary:3,secondary:[2137]}})}run(e){const t=e.get(Z);t instanceof J&&t.acceptSelected()}}),(0,j.ug)(class extends j.L{constructor(){super({id:F,title:(0,E.aS)("previewSelected.title","Preview selected action"),precondition:X.Visible,keybinding:{weight:ee,primary:2051}})}run(e){const t=e.get(Z);t instanceof J&&t.acceptSelected(!0)}});var te,ie=i(50091),se=i(84001),ne=i(75147),re=i(73823),oe=i(86723),ae=i(47612),ce=i(59473),le=i(90651),he=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},de=function(e,t){return function(i,s){t(i,s,e)}};let ue=class extends c.jG{static{te=this}static{this.ID="editor.contrib.codeActionController"}static get(e){return e.getContribution(te.ID)}constructor(e,t,i,s,n,r,o,l,h,d,u){super(),this._commandService=o,this._configurationService=l,this._actionWidgetService=h,this._instantiationService=d,this._telemetryService=u,this._activeCodeActions=this._register(new c.HE),this._showDisabled=!1,this._disposed=!1,this._editor=e,this._model=this._register(new ce.Dc(this._editor,n.codeActionProvider,t,i,r,l,this._telemetryService)),this._register(this._model.onDidChangeState((e=>this.update(e)))),this._lightBulbWidget=new a.d((()=>{const e=this._editor.getContribution(y.E.ID);return e&&this._register(e.onClick((e=>this.showCodeActionsFromLightbulb(e.actions,e)))),e})),this._resolver=s.createInstance(v),this._register(this._editor.onDidLayoutChange((()=>this._actionWidgetService.hide())))}dispose(){this._disposed=!0,super.dispose()}async showCodeActionsFromLightbulb(e,t){if(e.allAIFixes&&1===e.validActions.length){const t=e.validActions[0],i=t.action.command;return i&&"inlineChat.start"===i.id&&i.arguments&&i.arguments.length>=1&&(i.arguments[0]={...i.arguments[0],autoSend:!1}),void await this._applyCodeAction(t,!1,!1,u.Qp.FromAILightbulb)}await this.showCodeActionList(e,t,{includeDisabledActions:!1,fromLightbulb:!0})}showCodeActions(e,t,i){return this.showCodeActionList(t,i,{includeDisabledActions:!1,fromLightbulb:!1})}manualTriggerAtCurrentPosition(e,t,i,s){if(!this._editor.hasModel())return;w.k.get(this._editor)?.closeMessage();const n=this._editor.getPosition();this._trigger({type:1,triggerAction:t,filter:i,autoApply:s,context:{notAvailableMessage:e,position:n}})}_trigger(e){return this._model.trigger(e)}async _applyCodeAction(e,t,i,s){try{await this._instantiationService.invokeFunction(u.W4,e,s,{preview:i,editor:this._editor})}finally{t&&this._trigger({type:2,triggerAction:p.fo.QuickFix,filter:{}})}}hideLightBulbWidget(){this._lightBulbWidget.rawValue?.hide(),this._lightBulbWidget.rawValue?.gutterHide()}async update(e){if(1!==e.type)return void this.hideLightBulbWidget();let t;try{t=await e.actions}catch(s){return void(0,o.dz)(s)}if(this._disposed)return;const i=this._editor.getSelection();if(i?.startLineNumber===e.position.lineNumber)if(this._lightBulbWidget.value?.update(t,e.trigger,e.position),1===e.trigger.type){if(e.trigger.filter?.include){const i=this.tryGetValidActionToApply(e.trigger,t);if(i){try{this.hideLightBulbWidget(),await this._applyCodeAction(i,!1,!1,u.Qp.FromCodeActions)}finally{t.dispose()}return}if(e.trigger.context){const i=this.getInvalidActionThatWouldHaveBeenApplied(e.trigger,t);if(i&&i.action.disabled)return w.k.get(this._editor)?.showMessage(i.action.disabled,e.trigger.context.position),void t.dispose()}}const i=!!e.trigger.filter?.include;if(e.trigger.context&&(!t.allActions.length||!i&&!t.validActions.length))return w.k.get(this._editor)?.showMessage(e.trigger.context.notAvailableMessage,e.trigger.context.position),this._activeCodeActions.value=t,void t.dispose();this._activeCodeActions.value=t,this.showCodeActionList(t,this.toCoords(e.position),{includeDisabledActions:i,fromLightbulb:!1})}else this._actionWidgetService.isVisible?t.dispose():this._activeCodeActions.value=t}getInvalidActionThatWouldHaveBeenApplied(e,t){if(t.allActions.length)return"first"===e.autoApply&&0===t.validActions.length||"ifSingle"===e.autoApply&&1===t.allActions.length?t.allActions.find((({action:e})=>e.disabled)):void 0}tryGetValidActionToApply(e,t){if(t.validActions.length)return"first"===e.autoApply&&t.validActions.length>0||"ifSingle"===e.autoApply&&1===t.validActions.length?t.validActions[0]:void 0}static{this.DECORATION=h.kI.register({description:"quickfix-highlight",className:"quickfix-edit-highlight"})}async showCodeActionList(e,t,i){const s=this._editor.createDecorationsCollection(),n=this._editor.getDomNode();if(!n)return;const o=i.includeDisabledActions&&(this._showDisabled||0===e.validActions.length)?e.allActions:e.validActions;if(!o.length)return;const a=l.y.isIPosition(t)?this.toCoords(t):t,c={onSelect:async(e,t)=>{this._applyCodeAction(e,!0,!!t,i.fromLightbulb?u.Qp.FromAILightbulb:u.Qp.FromCodeActions),this._actionWidgetService.hide(!1),s.clear()},onHide:e=>{this._editor?.focus(),s.clear()},onHover:async(e,t)=>{if(t.isCancellationRequested)return;let i=!1;const s=e.action.kind;if(s){const e=new g.k(s);i=[p.gB.RefactorExtract,p.gB.RefactorInline,p.gB.RefactorRewrite,p.gB.RefactorMove,p.gB.Source].some((t=>t.contains(e)))}return{canPreview:i||!!e.action.edit?.edits.length}},onFocus:e=>{if(e&&e.action){const t=e.action.ranges,i=e.action.diagnostics;if(s.clear(),t&&t.length>0){const e=i&&i?.length>1?i.map((e=>({range:e,options:te.DECORATION}))):t.map((e=>({range:e,options:te.DECORATION})));s.set(e)}else if(i&&i.length>0){const e=i.map((e=>({range:e,options:te.DECORATION})));s.set(e);const t=i[0];if(t.startLineNumber&&t.startColumn){const e=this._editor.getModel()?.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn})?.word;r.h5((0,E.kg)("editingNewSelection","Context: {0} at line {1} and column {2}.",e,t.startLineNumber,t.startColumn))}}}else s.clear()}};this._actionWidgetService.show("codeActionWidget",!0,function(e,t,i){if(!t)return e.map((e=>({kind:"action",item:e,group:b,disabled:!!e.action.disabled,label:e.action.disabled||e.action.title,canPreview:!!e.action.edit?.edits.length})));const s=S.map((e=>({group:e,actions:[]})));for(const r of e){const e=r.action.kind?new g.k(r.action.kind):g.k.None;for(const t of s)if(t.group.kind.contains(e)){t.actions.push(r);break}}const n=[];for(const r of s)if(r.actions.length){n.push({kind:"header",group:r.group});for(const e of r.actions){const t=r.group;n.push({kind:"action",item:e,group:e.action.isAI?{title:t.title,kind:t.kind,icon:C.W.sparkle}:t,label:e.action.title,disabled:!!e.action.disabled,keybinding:i(e.action)})}}return n}(o,this._shouldShowHeaders(),this._resolver.getResolver()),c,a,n,this._getActionBarActions(e,t,i))}toCoords(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();const t=this._editor.getScrolledVisiblePosition(e),i=(0,n.BK)(this._editor.getDomNode());return{x:i.left+t.left,y:i.top+t.top+t.height}}_shouldShowHeaders(){const e=this._editor?.getModel();return this._configurationService.getValue("editor.codeActionWidget.showHeaders",{resource:e?.uri})}_getActionBarActions(e,t,i){if(i.fromLightbulb)return[];const s=e.documentation.map((e=>({id:e.id,label:e.title,tooltip:e.tooltip??"",class:void 0,enabled:!0,run:()=>this._commandService.executeCommand(e.id,...e.arguments??[])})));return i.includeDisabledActions&&e.validActions.length>0&&e.allActions.length!==e.validActions.length&&s.push(this._showDisabled?{id:"hideMoreActions",label:(0,E.kg)("hideMoreActions","Hide Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!1,this.showCodeActionList(e,t,i))}:{id:"showMoreActions",label:(0,E.kg)("showMoreActions","Show Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!0,this.showCodeActionList(e,t,i))}),s}};ue=te=he([de(1,ne.DR),de(2,K.fN),de(3,q._Y),de(4,d.ILanguageFeaturesService),de(5,re.N8),de(6,ie.d),de(7,se.pG),de(8,Z),de(9,q._Y),de(10,le.k)],ue),(0,ae.zy)(((e,t)=>{var i,s;i=".quickfix-edit-highlight",(s=e.getColor(O.Ubg))&&t.addRule(`.monaco-editor ${i} { background-color: ${s}; }`);const n=e.getColor(O.ECk);n&&t.addRule(`.monaco-editor .quickfix-edit-highlight { border: 1px ${(0,oe.Bb)(e.type)?"dotted":"solid"} ${n}; box-sizing: border-box; }`)}))},71964:(e,t,i)=>{"use strict";i.d(t,{i:()=>r,y:()=>o});var s=i(36677),n=i(75326);class r{constructor(e,t,i){this._range=e,this._charBeforeSelection=t,this._charAfterSelection=i}getEditOperations(e,t){t.addTrackedEditOperation(new s.Q(this._range.startLineNumber,this._range.startColumn,this._range.startLineNumber,this._range.startColumn),this._charBeforeSelection),t.addTrackedEditOperation(new s.Q(this._range.endLineNumber,this._range.endColumn,this._range.endLineNumber,this._range.endColumn),this._charAfterSelection)}computeCursorState(e,t){const i=t.getInverseEditOperations(),s=i[0].range,r=i[1].range;return new n.L(s.endLineNumber,s.endColumn,r.endLineNumber,r.endColumn-this._charAfterSelection.length)}}class o{constructor(e,t,i){this._position=e,this._text=t,this._charAfter=i}getEditOperations(e,t){t.addTrackedEditOperation(new s.Q(this._position.lineNumber,this._position.column,this._position.lineNumber,this._position.column),this._text+this._charAfter)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return new n.L(i.endLineNumber,i.startColumn,i.endLineNumber,i.endColumn-this._charAfter.length)}}},72093:(e,t,i)=>{"use strict";i.d(t,{A:()=>h});const s={randomUUID:"undefined"!==typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};var n,r=new Uint8Array(16);function o(){if(!n&&!(n="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(r)}for(var a=[],c=0;c<256;++c)a.push((c+256).toString(16).slice(1));function l(e,t=0){return(a[e[t+0]]+a[e[t+1]]+a[e[t+2]]+a[e[t+3]]+"-"+a[e[t+4]]+a[e[t+5]]+"-"+a[e[t+6]]+a[e[t+7]]+"-"+a[e[t+8]]+a[e[t+9]]+"-"+a[e[t+10]]+a[e[t+11]]+a[e[t+12]]+a[e[t+13]]+a[e[t+14]]+a[e[t+15]]).toLowerCase()}const h=function(e,t,i){if(s.randomUUID&&!t&&!e)return s.randomUUID();var n=(e=e||{}).random||(e.rng||o)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){i=i||0;for(var r=0;r<16;++r)t[i+r]=n[r];return t}return l(n)}},72466:(e,t,i)=>{"use strict";i.d(t,{T:()=>r,x:()=>n});const s=[];function n(e){s.push(e)}function r(){return s.slice(0)}},72962:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var s=i(60413),n=i(24939),r=i(42539),o=i(98067);const a=o.zx?256:2048,c=o.zx?2048:256;class l{constructor(e){this._standardKeyboardEventBrand=!0;const t=e;this.browserEvent=t,this.target=t.target,this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,this.altGraphKey=t.getModifierState?.("AltGraph"),this.keyCode=function(e){if(e.charCode){const t=String.fromCharCode(e.charCode).toUpperCase();return n.YM.fromString(t)}const t=e.keyCode;if(3===t)return 7;if(s.gm)switch(t){case 59:return 85;case 60:if(o.j9)return 97;break;case 61:return 86;case 107:return 109;case 109:return 111;case 173:return 88;case 224:if(o.zx)return 57}else if(s.Tc){if(o.zx&&93===t)return 57;if(!o.zx&&92===t)return 57}return n.uw[t]||0}(t),this.code=t.code,this.ctrlKey=this.ctrlKey||5===this.keyCode,this.altKey=this.altKey||6===this.keyCode,this.shiftKey=this.shiftKey||4===this.keyCode,this.metaKey=this.metaKey||57===this.keyCode,this._asKeybinding=this._computeKeybinding(),this._asKeyCodeChord=this._computeKeyCodeChord()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeyCodeChord(){return this._asKeyCodeChord}equals(e){return this._asKeybinding===e}_computeKeybinding(){let e=0;5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode);let t=0;return this.ctrlKey&&(t|=a),this.altKey&&(t|=512),this.shiftKey&&(t|=1024),this.metaKey&&(t|=c),t|=e,t}_computeKeyCodeChord(){let e=0;return 5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode),new r.dG(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}}},73020:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>i.e(5866).then(i.bind(i,5866))})},73157:(e,t,i)=>{"use strict";i.d(t,{M:()=>n});var s=i(55275);function n(e,t){e instanceof s.D?(e.setFontFamily(t.getMassagedFontFamily()),e.setFontWeight(t.fontWeight),e.setFontSize(t.fontSize),e.setFontFeatureSettings(t.fontFeatureSettings),e.setFontVariationSettings(t.fontVariationSettings),e.setLineHeight(t.lineHeight),e.setLetterSpacing(t.letterSpacing)):(e.style.fontFamily=t.getMassagedFontFamily(),e.style.fontWeight=t.fontWeight,e.style.fontSize=t.fontSize+"px",e.style.fontFeatureSettings=t.fontFeatureSettings,e.style.fontVariationSettings=t.fontVariationSettings,e.style.lineHeight=t.lineHeight+"px",e.style.letterSpacing=t.letterSpacing+"px")}},73253:(e,t,i)=>{"use strict";i.d(t,{og:()=>L,SO:()=>me});var s=i(7252);function n(e,t){const i=document.createElement("button");return i.innerText=e,i.className=`paranoid-button paranoid-button_${t}`,i}const r="ParanoidC";function o(e,t){const i=document.getElementById(e);if(!i)throw new Error(`Not found element with id ${e}`);i.style.position="relative";const o=n("+","plus"),a=n("-","minus"),c=n("1:1","normal"),l=function(e,t){const i=document.createElement("canvas");i.setAttribute("id",r),i.setAttribute("width",String(e.offsetWidth)),i.setAttribute("height",String(e.offsetHeight)),e.appendChild(i);const n=t.colors||{};return new s.fabric.Canvas(r,{selection:!1,backgroundColor:n.fill,defaultCursor:"grab"})}(i,t),h=function(e,t,i,s){const n=document.createElement("div");n.className="paranoid-controls";const r=document.createElement("style");return r.innerText=function(e){return`\n .paranoid-controls {\n position: absolute;\n top: 10px;\n right: 10px;\n }\n .paranoid-button {\n margin-left: 12px;\n border-radius: 4px;\n height: 36px;\n width: 36px;\n line-height: 13px;\n font-family: Arial, sans-serif;\n font-size: 13px;\n text-align: center;\n padding: 0;\n box-shadow: 0px 5px 6px ${e.nodeShadow};\n border: 1px solid ${e.buttonBorderColor};\n background-color: ${e.nodeFill};\n color: ${e.textColor};\n cursor: pointer;\n }\n .paranoid-button:focus {\n outline: none;\n }\n .paranoid-button:active {\n border: 1px solid ${e.buttonBorderColor};\n }\n .paranoid-button_plus {\n margin-left: 0;\n border-left: none;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n .paranoid-button_minus {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n`}(s),n.appendChild(r),n.appendChild(t),n.appendChild(e),n.appendChild(i),n}(o,a,c,t.colors);return i.appendChild(h),function(e,t,i,s,n){const r=n.minZoom||.2,o=n.zoomStep||.2,a=n.maxZoom||2,c=n.startZoom||1;e.setZoom(c),i.addEventListener("click",(t=>{t.preventDefault(),t.stopPropagation();let i=e.getZoom();i-=o,i<r&&(i=r),e.setZoom(i)})),t.addEventListener("click",(t=>{t.preventDefault(),t.stopPropagation();let i=e.getZoom();i+=o,i>a&&(i=a),e.setZoom(i)})),s.addEventListener("click",(t=>{t.preventDefault(),t.stopPropagation(),e.setZoom(1)}))}(l,o,a,c,t),function(e){let t=!1,i=0,s=0;e.on("mouse:down",(n=>{n.target||(e.setCursor("grabbing"),t=!0,i=n.pointer.x,s=n.pointer.y)})),e.on("mouse:move",(n=>{t&&(e.viewportTransform[4]+=n.pointer.x-i,e.viewportTransform[5]+=n.pointer.y-s,e.setCursor("grabbing"),e.getObjects().forEach((e=>e.setCoords())),e.requestRenderAll(),i=n.pointer.x,s=n.pointer.y)})),e.on("mouse:up",(()=>{t&&(e.setCursor("grab"),t=!1)}))}(l),l}const a={success:"rgba(59, 201, 53, 0.75)",error:"#ff0400",warning:"#ff7700",errorBackground:"rgba(235,50,38,0.08)",warningBackground:"rgba(255,219,77,0.3)",mute:"rgba(0,0,0,0.15)",stroke:"rgba(0,0,0,0.3)",fill:"#fafafa",nodeFill:"#ffffff",nodeShadow:"rgba(0,0,0,0.15)",titleColor:"#000000",textColor:"rgba(0,0,0,0.7)",buttonBorderColor:"rgba(0,0,0,0.07)",groupBorderColor:"rgba(2, 123, 243, 0.14)",groupFill:"rgba(2, 123, 243, 0.08)",titleHoverColor:"#004080",nodeHover:"#f3f3f3",specialHover:"rgba(2,123,243,1)"},c={hasControls:!1,hasRotatingPoint:!1,lockMovementX:!0,lockMovementY:!0,selectable:!1,hoverCursor:"default",subTargetCheck:!0},l="Arial, sans-serif",h=13,d=1.38;var u;!function(e){e.Group="GROUP"}(u||(u={}));i(32133);class g{constructor(e,t){this.children=[],this.members=[],this.data=e,this.canvasNode=t}add(e,t){const i=new g(e,t);i.addParent(this),this.children.push(i)}addNode(e){e.addParent(this),this.children.push(e)}addNodes(e){e.forEach((e=>{e.addParent(this)})),this.children=this.children.concat(e)}addCanvasNode(e){this.canvasNode=e}addShapeInstance(e){this.shapeInstance=e}hasChildren(){return this.children.length>0}addParent(e){this.parent=e}getLeftSibling(){if(!this.parent)return;const e=this.parent.children.findIndex((e=>e===this));return this.parent.children[e-1]}getRightSibling(){if(!this.parent)return;const e=this.parent.children.findIndex((e=>e===this));return this.parent.children[e+1]}}class p{constructor(e){this.nodesWithChildren=[],this.root=e}traverseBF(e){const t=[this.root];for(;t.length>0;){const i=t.shift();i&&(t.push(...i.children),e(i))}}traverseDF(e){const t=[this.root];for(;t.length;){const i=t.shift();let s=!1;i&&(i.children.length>0?t.unshift(...i.children):s=!0,e(i,s))}}traverseByLevels(e){let t=0,i=this.root.children;for(e([this.root],0);i.length>0;)t++,e(i,t),i=i.reduce(((e,t)=>e.concat(t.children)),[])}getTreeDepth(){let e=0;return this.traverseByLevels(((t,i)=>{e=i})),e}setCanvas(e){this.canvas=e}setNodesWithChildren(e){this.nodesWithChildren=e}}class m{constructor(e,t){this.nodes=new Map,this.data=e,this.opts=t}parseData(){const e=this.data,t=this.getGroups(e),i=[...e.nodes];t.forEach(((e,t)=>{i.push({name:t,children:e,type:u.Group})}));const s=this.findSources(i,e.links);let n=[],r={},o=new Map;return s.forEach((t=>{const s=this.mapNodesToTree(t,i,e.links);r=Object.assign(Object.assign({},s.groups),r),o=new Map([...o,...s.notGroupMemebersChildren]),n.push(s.tree)})),o.forEach(((e,t)=>{r[t]&&r[t].addNodes(e)})),n=n.reduce(((e,t)=>{const i=t.root.data.group;return i?r[i].members.push(t):e.push(t),e}),[]),n}getGroups({nodes:e}){const t=new Map;return e.forEach((e=>{if(e.group){const i=t.get(e.group);i?i.push(e.name):t.set(e.group,[e.name])}})),t}findSources(e,t){const i=t.map((({to:e})=>e));return e.reduce(((e,t)=>(i.includes(t.name)||e.push(t),e)),[])}mapNodesToTree(e,t,i){var s;const n=this.createNode(e),r={};this.appendGoup(r,n);const o=t.map((e=>{const t=i.reduce(((t,i)=>(i.from===e.name&&t.push(i.to),t)),[]);return Object.assign(Object.assign({},e),{children:t})})),a=this.getAppender(o,r)(n,(null===(s=o.find((t=>t.name===e.name)))||void 0===s?void 0:s.children)||[]);return{tree:new p(n),groups:r,notGroupMemebersChildren:a}}appendGoup(e,t){const i=t.data;t.data.type===u.Group&&(e[i.name]=t)}getAppender(e,t){const i=new Map,s=(n,r)=>{const o=r.map((i=>{const n=e.find((({name:e})=>e===i)),r=this.createNode(n);return this.appendGoup(t,r),n.children.length>0&&s(r,n.children),r})),a=n.data.group,c=Boolean(a),l=[],h=[];if(o.forEach((e=>{const t=e.data.group;c?a===t?l.push(e):h.push(e):l.push(e)})),n.addNodes(l),a&&h.length>0){const e=i.get(a);e?e.push(...h):i.set(a,h)}return i};return s}createNode(e){const t=new g(e);return this.nodes.set(e.name,t),t}}class f extends CustomEvent{}class _ extends EventTarget{dispatch(e,t){this.dispatchEvent(new f(e,{detail:t}))}}function v(e){switch(e){case 0:return 0;case 1:return 16;default:return 24}}function C(e,t,i,s,n,r){const o=function(e,t,i,s,n,r,o){const a=new Map,c=new Map,l=new Map,h=[];return s.traverseBF((s=>{const{object:n,width:r,height:c}=function(e,t,i,s,n,r,o){var a,c;const l=null!==(a=t.shapeInstance)&&void 0!==a?a:r.node(e,{top:i,left:s},t,n,o),h=null!==(c=t.canvasNode)&&void 0!==c?c:l.getShape();return t.addShapeInstance(l),t.addCanvasNode(h),{object:h,top:i,left:s,width:h.getScaledWidth(),height:h.getScaledHeight()}}(e,s,0,0,t,i,o);a.set(s,{width:r,height:c}),h.push(n)})),function e(t){const{width:i}=a.get(t);let s=i,n=0;if(t.parent&&1===t.parent.children.length&&c.has(t.parent)){const e=c.get(t.parent);s<e&&(s=e)}return c.set(t,s),t.children.length>0&&(n=16*(t.children.length-1)+t.children.reduce(((t,i)=>t+e(i)),0),l.set(t,n)),s=Math.max(s,n),c.set(t,s),s}(s.root),function e(t,i,s){let n=s,r=s;for(const o of t){const{width:t,height:s}=a.get(o),h=c.get(o),d=i,u=n+Math.floor(h/2)-Math.floor(t/2);if(o.canvasNode.set({top:d,left:u}),o.canvasNode.setCoords(),n=n+h+16,o.children.length){let t=0;const n=l.get(o);n<h&&(t=Math.floor((h-n)/2));const a=i+s+v(o.children.length),c=r+t;e(o.children,a,c)}r=n}}([s.root],n,r),h}(e.canvas,s,n,e,t,i,r);let a=0,c=0;return o.forEach((e=>{a=Math.max(a,(e.left||0)+e.getScaledWidth()),c=Math.max(c,(e.top||0)+e.getScaledHeight())})),{nodes:o,bottom:c,right:a}}function E(e){const t=e.canvasNode;if(t){const e=t.left||0,i=(t.top||0)+t.getScaledHeight();return{x:e+t.getScaledWidth()/2,y:i}}return{x:0,y:0}}function b(e){const t=e.canvasNode;if(t){const e=t.left||0,i=t.top||0;return{x:e+t.getScaledWidth()/2,y:i}}return{x:0,y:0}}class S{constructor(e,t,i,s){this.canvas=o(e,t),this.parser=new m(i,t),this.opts=t,this.shapes=s,this.em=new _,this.trees=[],this.nodes=[],this.links=[],this.listenNodeResize()}render(){requestAnimationFrame((()=>{this.trees=this.parser.parseData(),this.renderIntoCanvas(),this.opts.initialZoomFitsCanvas&&this.zoomObjectsToFitCanvas()}))}destroy(){const e=document.getElementById(r);e&&(this.canvas.dispose(),e.remove())}getEventEmmiter(){return this.em}getGraphNode(e){return this.parser.nodes.get(e)}getOpts(){return this.opts}getColors(){return this.opts.colors}getCanvas(){return this.canvas}renderIntoCanvas(){this.nodes.forEach((e=>{this.canvas.remove(e)})),this.nodes=[],this.links.forEach((e=>{this.canvas.remove(e)})),this.links=[];const e=this.canvas.getHeight()||0,t=this.canvas.getWidth()||0;let i=e,n=t;const r=this.opts.initialTop;let o=this.opts.initialLeft;this.trees.forEach((e=>{e.setCanvas(this.canvas);const{nodes:t,bottom:s,right:a}=C(e,r,o,this.opts,this.shapes,this.em);o=a+15,i=Math.max(s,i),n=Math.max(a,n),this.nodes.push(...t),this.canvas.add(...t)}));const a=function(e,t){const i=t.colors,n=[];return e.data.links.reduce(((t,{from:r})=>{const o=e.nodes.get(r);if(o&&1===o.children.length&&!n.includes(r)){const{x:e,y:a}=E(o),l=new s.fabric.Path(`M ${e} ${a}\n V ${a+16}`,{fill:"",stroke:i.stroke,strokeWidth:1});t.push(new s.fabric.Group([l],Object.assign({},c))),n.push(r)}if(o&&o.children.length>1&&!n.includes(r)){const{x:e,y:a}=E(o),l=12,h=6,d=[new s.fabric.Path(`M ${e} ${a}\n V ${a+l}`,{fill:"",stroke:i.stroke,strokeWidth:1})],{x:u,y:g}=b(o.children[0]),{x:p,y:m}=b(o.children[o.children.length-1]),f=new s.fabric.Path(`M ${u} ${g}\n V ${g-l+h}\n Q ${u} ${g-l} ${u+h} ${g-l}\n H ${p-h}\n Q ${p} ${m-l} ${p} ${m+h-l}\n V ${m}\n `,{fill:"",stroke:i.stroke,strokeWidth:1});d.push(f),o.children.forEach(((e,t)=>{if(0===t||t===o.children.length-1)return;const{x:n,y:r}=b(e),a=new s.fabric.Path(`M ${n} ${r}\n V ${r-l}\n `,{fill:"",stroke:i.stroke,strokeWidth:1});d.push(a)})),t.push(new s.fabric.Group(d,Object.assign({},c))),n.push(r)}return t}),[])}(this.parser,this.opts);this.links.push(...a),this.canvas.add(...a),this.bringNodesToFront()}bringNodesToFront(){var e;const t=null===(e=this.parser)||void 0===e?void 0:e.nodes;t&&t.forEach((e=>{e.canvasNode&&e.canvasNode.bringToFront()}))}listenNodeResize(){this.em.addEventListener("node:resize",(()=>{this.renderIntoCanvas()}))}zoomObjectsToFitCanvas(){let e=0,t=0;this.canvas.getObjects().forEach((i=>{const{top:s,left:n,height:r,width:o}=i.getBoundingRect(),a=n+o,c=s+r;a>e&&(e=a),c>t&&(t=c)})),e+=this.opts.initialLeft,t+=this.opts.initialTop;const i=this.canvas.getWidth()/e,n=this.canvas.getHeight()/t,r=Math.min(i,n);if(r<1){this.canvas.setZoom(r);const e=this.opts.initialTop*r,t=this.opts.initialLeft*r,i=this.opts.initialTop-e,n=this.opts.initialLeft-t;this.canvas.relativePan(new s.fabric.Point(n,i))}}}function y(){const e={success:"--g-color-text-positive",error:"--g-color-text-danger",warning:"--g-color-text-warning",errorBackground:"--g-color-base-danger-light",warningBackground:"--g-color-base-warning-light",mute:"--g-color-line-generic",stroke:"--g-color-text-hint",fill:"--g-color-base-generic-ultralight",nodeFill:"--g-color-base-float",nodeShadow:"--g-color-sfx-shadow",titleColor:"--g-color-text-primary",textColor:"--g-color-text-complementary",buttonBorderColor:"--g-color-line-generic",groupBorderColor:"--g-color-base-info-light-hover",groupFill:"--g-color-base-info-light",titleHoverColor:"--g-color-text-link-hover",nodeHover:"--g-color-base-float-hover",specialHover:"--g-color-line-brand"},t=getComputedStyle(document.body),i=Object.keys(e).reduce(((i,s)=>{const n=t.getPropertyValue(e[s]).replace(/ /g,"");return n&&(i[s]=n),i}),{});return Object.assign(Object.assign(Object.assign({},a),i),{getCommonColor:e=>t.getPropertyValue(`--g-color-${e}`).replace(/ /g,"")})}const w={linkType:"arrow"};function R(e=w){const t=e.colors||{};return Object.assign(Object.assign({initialTop:10,initialLeft:10},e),{colors:Object.assign(Object.assign(Object.assign({},a),y()),t)})}function L(e,t,i,s){const n=R(i);return new S(e,n,t,s)}var T=i(59284),x=(i(43781),i(62060),function(){if("undefined"!==typeof Map)return Map;function e(e,t){var i=-1;return e.some((function(e,s){return e[0]===t&&(i=s,!0)})),i}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var i=e(this.__entries__,t),s=this.__entries__[i];return s&&s[1]},t.prototype.set=function(t,i){var s=e(this.__entries__,t);~s?this.__entries__[s][1]=i:this.__entries__.push([t,i])},t.prototype.delete=function(t){var i=this.__entries__,s=e(i,t);~s&&i.splice(s,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var i=0,s=this.__entries__;i<s.length;i++){var n=s[i];e.call(t,n[1],n[0])}},t}()}()),k="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,A="undefined"!==typeof i.g&&i.g.Math===Math?i.g:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")(),N="function"===typeof requestAnimationFrame?requestAnimationFrame.bind(A):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var I=["top","right","bottom","left","width","height","size","weight"],O="undefined"!==typeof MutationObserver,D=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var i=!1,s=!1,n=0;function r(){i&&(i=!1,e()),s&&a()}function o(){N(r)}function a(){var e=Date.now();if(i){if(e-n<2)return;s=!0}else i=!0,s=!1,setTimeout(o,t);n=e}return a}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,i=t.indexOf(e);~i&&t.splice(i,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){k&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),O?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){k&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,i=void 0===t?"":t;I.some((function(e){return!!~i.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),M=function(e,t){for(var i=0,s=Object.keys(t);i<s.length;i++){var n=s[i];Object.defineProperty(e,n,{value:t[n],enumerable:!1,writable:!1,configurable:!0})}return e},P=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||A},F=z(0,0,0,0);function U(e){return parseFloat(e)||0}function H(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];return t.reduce((function(t,i){return t+U(e["border-"+i+"-width"])}),0)}function B(e){var t=e.clientWidth,i=e.clientHeight;if(!t&&!i)return F;var s=P(e).getComputedStyle(e),n=function(e){for(var t={},i=0,s=["top","right","bottom","left"];i<s.length;i++){var n=s[i],r=e["padding-"+n];t[n]=U(r)}return t}(s),r=n.left+n.right,o=n.top+n.bottom,a=U(s.width),c=U(s.height);if("border-box"===s.boxSizing&&(Math.round(a+r)!==t&&(a-=H(s,"left","right")+r),Math.round(c+o)!==i&&(c-=H(s,"top","bottom")+o)),!function(e){return e===P(e).document.documentElement}(e)){var l=Math.round(a+r)-t,h=Math.round(c+o)-i;1!==Math.abs(l)&&(a-=l),1!==Math.abs(h)&&(c-=h)}return z(n.left,n.top,a,c)}var W="undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof P(e).SVGGraphicsElement}:function(e){return e instanceof P(e).SVGElement&&"function"===typeof e.getBBox};function V(e){return k?W(e)?function(e){var t=e.getBBox();return z(0,0,t.width,t.height)}(e):B(e):F}function z(e,t,i,s){return{x:e,y:t,width:i,height:s}}var G=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=z(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=V(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),j=function(e,t){var i=function(e){var t=e.x,i=e.y,s=e.width,n=e.height,r="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,o=Object.create(r.prototype);return M(o,{x:t,y:i,width:s,height:n,top:i,right:t+s,bottom:n+i,left:t}),o}(t);M(this,{target:e,contentRect:i})},K=function(){function e(e,t,i){if(this.activeObservations_=[],this.observations_=new x,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=i}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof P(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new G(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof P(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new j(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Y="undefined"!==typeof WeakMap?new WeakMap:new x,q=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var i=D.getInstance(),s=new K(t,i,this);Y.set(this,s)};["observe","unobserve","disconnect"].forEach((function(e){q.prototype[e]=function(){var t;return(t=Y.get(this))[e].apply(t,arguments)}}));"undefined"!==typeof A.ResizeObserver&&A.ResizeObserver;T.Component;T.Component;var $=i(87924),Q=i.n($);const X={width:280,expandedWidth:360,borderRadius:4,titleFontSize:h,titleLineHeight:d,textFontSize:h,textLineHeight:d,padding:12,timeMaxWidth:25,percentageMaxWidth:25,textOffset:8,tagLeftOffset:4,tagTopOffset:5,statsOffset:24};class Z{constructor(e,t,i,s){this.top=0,this.left=0,this.canvas=e,this.stats=t,this.coords=i,this.colors=s,this.textProps={fontSize:X.textFontSize,lineHeight:X.textLineHeight,fontFamily:l,fill:null===s||void 0===s?void 0:s.titleColor},this.selectedGroup=t[0].group;const n=this.createTitles(),r=n.map((e=>e.getScaledHeight())),o=Math.max.apply(null,r);this.lineTop=this.top+o+X.textOffset;const a=this.createLine();this.content=this.createContent(n),this.group=this.createGroup(n,a,this.content),this.initListeners()}getCanvasObject(){return this.group}createTitles(){let e=this.left;return this.stats.map((({group:e})=>e)).map((t=>{var i,n;const r=new s.fabric.Text(t,Object.assign(Object.assign({left:e,top:this.top},this.textProps),{fill:t===this.selectedGroup?null===(i=this.colors)||void 0===i?void 0:i.titleColor:null===(n=this.colors)||void 0===n?void 0:n.textColor}));return e+=r.getScaledWidth()+X.statsOffset,r}))}createLine(){return new s.fabric.Path(`M ${this.left} ${this.lineTop}\n H ${X.expandedWidth-2*X.padding}`,{fill:"",stroke:this.colors.stroke,strokeWidth:1})}createContent(e){return this.stats.map((({group:t,stats:i},n)=>{const r=this.getContentItems(i,this.lineTop),o=e[n],a=o.left||0,c=a+o.getScaledWidth();return{group:t,items:new s.fabric.Group(r,{opacity:this.selectedGroup===t?1:0}),title:o,hoverLine:this.createHoverLine(a,c,t)}}))}getContentItems(e,t){let i=t+2*X.textOffset;const n=[],r=e=>{e.forEach((({name:e,value:t})=>{var r;const o=new s.fabric.Text(e,Object.assign({left:this.left,top:i},this.textProps)),a=X.expandedWidth/2-X.padding,c=X.expandedWidth-2*X.padding,l=new s.fabric.Textbox(String(t),Object.assign(Object.assign({left:a,top:i},this.textProps),{fill:null===(r=this.colors)||void 0===r?void 0:r.textColor,splitByGrapheme:!0,width:c-a}));n.push(o,l),i+=Math.max(o.getScaledHeight(),l.getScaledHeight())+X.textOffset}))};return!function(e){var t;return Boolean(null===(t=e[0])||void 0===t?void 0:t.items)}(e)?r(e):e.forEach((({name:t,items:o},a)=>{const c=new s.fabric.Text(t,Object.assign(Object.assign({left:this.left,top:i},this.textProps),{fontWeight:"bold"}));if(n.push(c),i+=c.getScaledHeight()+X.textOffset,r(o),a!==e.length-1){const e=new s.fabric.Path(`M ${this.left} ${i}\n H ${X.expandedWidth-2*X.padding}`,{fill:"",stroke:this.colors.stroke,strokeWidth:1,strokeDashArray:[6,4]});n.push(e),i+=e.getScaledHeight()+X.textOffset}})),n}createGroup(e,t,i){const n=i.map((({items:e})=>e)),r=i.map((({hoverLine:e})=>e));return new s.fabric.Group([...e,t,...n,...r],Object.assign({left:this.coords.left,top:this.coords.top},c))}createHoverLine(e,t,i){return new s.fabric.Path(`M ${e} ${this.lineTop-1}\n H ${t}`,{fill:"",stroke:this.colors.specialHover,strokeWidth:2,opacity:this.selectedGroup===i?1:0})}initListeners(){this.content.forEach((({group:e,title:t,items:i,hoverLine:s})=>{t.on("mousedown",(()=>{const n=this.selectedGroup,r=this.content.find((e=>e.group===n));r&&(r.title.set({fill:this.colors.textColor}),r.items.set({opacity:0}),r.hoverLine.set({opacity:0}),t.set({fill:this.colors.titleColor}),i.set({opacity:1}),s.set({opacity:1}),this.selectedGroup=e,this.canvas.requestRenderAll())}))}))}}function J(e,t,i,s,n){return new Z(e,t,{top:i,left:s},n).getCanvasObject()}function ee(e,t,i){return new s.fabric.Textbox(e?`#${e}`:"",{fontSize:12,lineHeight:14,textAlign:"right",fontFamily:l,fill:i.getCommonColor("text-secondary"),hoverCursor:t?"pointer":"default"})}const te={width:112,expandedWidth:360,borderRadius:6,titleFontSize:h,titleLineHeight:d,textFontSize:h,textLineHeight:d,padding:16,textOffset:8},ie={scaleX:16/512,scaleY:16/512,originY:"center"};function se(e,t,i){const n=new s.fabric.Text(e,{fontSize:te.textFontSize,lineHeight:te.textFontSize,fontFamily:l,fill:i.getCommonColor("text-misc"),originY:"center"}),r=[n];let o;switch(e){case"Merge":o=new s.fabric.Path("M232.5 5.171C247.4-1.718 264.6-1.718 279.5 5.171L498.1 106.2C506.6 110.1 512 118.6 512 127.1C512 137.3 506.6 145.8 498.1 149.8L279.5 250.8C264.6 257.7 247.4 257.7 232.5 250.8L13.93 149.8C5.438 145.8 0 137.3 0 127.1C0 118.6 5.437 110.1 13.93 106.2L232.5 5.171zM498.1 234.2C506.6 238.1 512 246.6 512 255.1C512 265.3 506.6 273.8 498.1 277.8L279.5 378.8C264.6 385.7 247.4 385.7 232.5 378.8L13.93 277.8C5.438 273.8 0 265.3 0 255.1C0 246.6 5.437 238.1 13.93 234.2L67.13 209.6L219.1 279.8C242.5 290.7 269.5 290.7 292.9 279.8L444.9 209.6L498.1 234.2zM292.9 407.8L444.9 337.6L498.1 362.2C506.6 366.1 512 374.6 512 383.1C512 393.3 506.6 401.8 498.1 405.8L279.5 506.8C264.6 513.7 247.4 513.7 232.5 506.8L13.93 405.8C5.438 401.8 0 393.3 0 383.1C0 374.6 5.437 366.1 13.93 362.2L67.13 337.6L219.1 407.8C242.5 418.7 269.5 418.7 292.9 407.8V407.8z",ie);break;case"UnionAll":o=new s.fabric.Path("M200 288H88c-21.4 0-32.1 25.8-17 41l32.9 31-99.2 99.3c-6.2 6.2-6.2 16.4 0 22.6l25.4 25.4c6.2 6.2 16.4 6.2 22.6 0L152 408l31.1 33c15.1 15.1 40.9 4.4 40.9-17V312c0-13.3-10.7-24-24-24zm112-64h112c21.4 0 32.1-25.9 17-41l-33-31 99.3-99.3c6.2-6.2 6.2-16.4 0-22.6L481.9 4.7c-6.2-6.2-16.4-6.2-22.6 0L360 104l-31.1-33C313.8 55.9 288 66.6 288 88v112c0 13.3 10.7 24 24 24zm96 136l33-31.1c15.1-15.1 4.4-40.9-17-40.9H312c-13.3 0-24 10.7-24 24v112c0 21.4 25.9 32.1 41 17l31-32.9 99.3 99.3c6.2 6.2 16.4 6.2 22.6 0l25.4-25.4c6.2-6.2 6.2-16.4 0-22.6L408 360zM183 71.1L152 104 52.7 4.7c-6.2-6.2-16.4-6.2-22.6 0L4.7 30.1c-6.2 6.2-6.2 16.4 0 22.6L104 152l-33 31.1C55.9 198.2 66.6 224 88 224h112c13.3 0 24-10.7 24-24V88c0-21.3-25.9-32-41-16.9z",ie);break;case"HashShuffle":o=new s.fabric.Path("M504.971 359.029c9.373 9.373 9.373 24.569 0 33.941l-80 79.984c-15.01 15.01-40.971 4.49-40.971-16.971V416h-58.785a12.004 12.004 0 0 1-8.773-3.812l-70.556-75.596 53.333-57.143L352 336h32v-39.981c0-21.438 25.943-31.998 40.971-16.971l80 79.981zM12 176h84l52.781 56.551 53.333-57.143-70.556-75.596A11.999 11.999 0 0 0 122.785 96H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12zm372 0v39.984c0 21.46 25.961 31.98 40.971 16.971l80-79.984c9.373-9.373 9.373-24.569 0-33.941l-80-79.981C409.943 24.021 384 34.582 384 56.019V96h-58.785a12.004 12.004 0 0 0-8.773 3.812L96 336H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12h110.785c3.326 0 6.503-1.381 8.773-3.812L352 176h32z",ie);break;case"Map":o=new s.fabric.Path("M256 8c137 0 248 111 248 248S393 504 256 504 8 393 8 256 119 8 256 8zm-28.9 143.6l75.5 72.4H120c-13.3 0-24 10.7-24 24v16c0 13.3 10.7 24 24 24h182.6l-75.5 72.4c-9.7 9.3-9.9 24.8-.4 34.3l11 10.9c9.4 9.4 24.6 9.4 33.9 0L404.3 273c9.4-9.4 9.4-24.6 0-33.9L271.6 106.3c-9.4-9.4-24.6-9.4-33.9 0l-11 10.9c-9.5 9.6-9.3 25.1.4 34.4z",ie);break;case"Broadcast":o=new s.fabric.Path("M377.941 169.941V216H134.059v-46.059c0-21.382-25.851-32.09-40.971-16.971L7.029 239.029c-9.373 9.373-9.373 24.568 0 33.941l86.059 86.059c15.119 15.119 40.971 4.411 40.971-16.971V296h243.882v46.059c0 21.382 25.851 32.09 40.971 16.971l86.059-86.059c9.373-9.373 9.373-24.568 0-33.941l-86.059-86.059c-15.119-15.12-40.971-4.412-40.971 16.97z",ie)}return o&&(o.set({fill:i.getCommonColor("text-misc"),top:0,left:0,originY:"center"}),n.set({left:22}),r.push(o)),new s.fabric.Group(r,Object.assign(Object.assign({},c),{hoverCursor:t?"pointer":"default"}))}class ne{constructor(e,t,i,s,n){this.expanded=!1,this.expandedNodeHeight=0,this.nodeHeight=0,this.canvas=e,this.coords=t,this.treeNode=i,this.opts=s,this.em=n,this.data=Q()(i,["data","data"]),this.objects=this.prepareShapeObjects(),this.setShapeObjectsCoords(),this.body=this.prepareNodeBody(),this.group=this.createGroup(),this.initListeners()}getShape(){return this.group}getFillColor(){return this.opts.colors.getCommonColor("base-misc-light")}getHoverFillColor(){return this.opts.colors.getCommonColor("base-misc-light-hover")}getShadow(){}getHoverShadow(){}toggleHighlight(e){this.isExpandable()&&!this.expanded&&this.body.set({fill:e?this.getHoverFillColor():this.getFillColor()}),this.canvas.requestRenderAll()}prepareNodeBody(){const e=this.opts.colors,t=this.objects[this.objects.length-1];return this.nodeHeight=(t.top||0)+t.getScaledHeight()+te.padding,new s.fabric.Rect({width:te.width,height:this.nodeHeight,fill:this.getFillColor(),shadow:this.getShadow(),stroke:e.getCommonColor("line-misc"),rx:te.borderRadius,ry:te.borderRadius,hoverCursor:this.isExpandable()?"pointer":"default"})}prepareShapeObjects(){return[ee(this.data.id,this.isExpandable(),this.opts.colors),se(this.data.name||"",this.isExpandable(),this.opts.colors)]}setShapeObjectsCoords(){const[e,t]=this.objects,i=te.padding,s=this.expanded?te.expandedWidth:te.width,n=t.getScaledWidth();e.set({left:0,top:4,width:s-4}),t.set({left:s/2-n/2,top:i})}createGroup(){const{top:e,left:t}=this.coords;return new s.fabric.Group([this.body,...this.objects],Object.assign({top:e,left:t},c))}initListeners(){this.initHover(),this.isExpandable()&&this.initExpand()}initHover(){this.group.on("mouseover",(()=>{this.em.dispatch("node:mouseover",this.treeNode),this.toggleHighlight(!0)})),this.group.on("mouseout",(()=>{this.em.dispatch("node:mouseout",this.treeNode),this.toggleHighlight(!1)}))}initExpand(){this.group.on("mousedown",(e=>{var t;this.stats&&(null===(t=e.subTargets)||void 0===t?void 0:t.includes(this.stats))||(this.expanded=!this.expanded,this.updateDimensions(),this.em.dispatch("node:resize",this.treeNode))}))}updateDimensions(){const e=this.opts.colors,[t,i]=this.objects,s=i.getScaledWidth();let n,r;this.expanded?(this.stats=J(this.canvas,this.data.stats,(this.group.top||0)+this.body.getScaledHeight()+te.padding,(this.group.left||0)+te.padding,e),this.expandedNodeHeight=this.nodeHeight+this.stats.getScaledHeight()+2*te.padding,n=te.expandedWidth,r=this.expandedNodeHeight,this.group.addWithUpdate(this.stats)):(n=te.width,r=this.nodeHeight,this.group.removeWithUpdate(this.stats),this.stats=void 0);const o=function(e,t){const i=[];return t.forEachObject((s=>{i.push(s),t.removeWithUpdate(s),e.add(s)})),()=>{i.forEach((i=>{e.remove(i),t.addWithUpdate(i)}))}}(this.canvas,this.group);this.body.set({width:n,height:r,fill:this.getFillColor(),shadow:this.getShadow()}),t.set({width:n-4}),i.set({left:(this.body.left||0)+(this.body.width||0)/2-s/2}),o()}isExpandable(){return Boolean(this.data.stats&&this.data.stats.length>0)}}const re={width:190,bevelSize:10,titleFontSize:h,titleLineHeight:d,padding:12};class oe{constructor(e,t,i,n,r){this.nodeHeight=0,this.coords=t,this.opts=n,this.data=Q()(i,["data","data"]),this.shadow=new s.fabric.Shadow({color:n.colors.nodeShadow,offsetY:1,blur:5}),this.hoverShadow=new s.fabric.Shadow({color:n.colors.nodeShadow,offsetY:3,blur:8}),this.objects=this.prepareShapeObjects(),this.setShapeObjectsCoords(),this.body=this.prepareNodeBody(),this.group=this.createGroup()}getShape(){return this.group}getFillColor(){return this.opts.colors.nodeFill}getHoverFillColor(){return this.opts.colors.nodeHover}getShadow(){return this.shadow}getHoverShadow(){return this.hoverShadow}toggleHighlight(){}prepareNodeBody(){const e=this.opts.colors,t=this.objects[this.objects.length-1];return this.nodeHeight=(t.top||0)+t.getScaledHeight()+re.padding,new s.fabric.Polygon([{x:re.bevelSize,y:0},{x:re.width-re.bevelSize,y:0},{x:re.width,y:re.bevelSize},{x:re.width,y:this.nodeHeight-re.bevelSize},{x:re.width-re.bevelSize,y:this.nodeHeight},{x:re.bevelSize,y:this.nodeHeight},{x:0,y:this.nodeHeight-re.bevelSize},{x:0,y:re.bevelSize}],{fill:this.getFillColor(),stroke:null===e||void 0===e?void 0:e.nodeShadow,shadow:this.getShadow(),hoverCursor:"default"})}prepareShapeObjects(){var e,t;return[(e=[this.data.name||""],t=this.opts.colors,new s.fabric.Text(e.join("\n"),{fontSize:re.titleFontSize,lineHeight:re.titleLineHeight,left:0,top:26,fontFamily:l,fontStyle:"italic",fill:t.getCommonColor("text-primary")}))]}setShapeObjectsCoords(){const[e]=this.objects,t=re.padding,i=e.getScaledWidth();e.set({left:re.width/2-i/2,top:t})}createGroup(){const{top:e,left:t}=this.coords;return new s.fabric.Group([this.body,...this.objects],Object.assign({top:e,left:t},c))}}const ae=40,ce=40,le=20;class he{constructor(e,t,i,n,r){this.coords=t,this.opts=n,this.shadow=new s.fabric.Shadow({color:n.colors.nodeShadow,offsetY:1,blur:5}),this.hoverShadow=new s.fabric.Shadow({color:n.colors.nodeShadow,offsetY:3,blur:8}),this.body=this.prepareNodeBody(),this.group=this.createGroup()}getShape(){return this.group}getFillColor(){return this.opts.colors.nodeFill}getHoverFillColor(){return this.opts.colors.nodeHover}getShadow(){return this.shadow}getHoverShadow(){return this.hoverShadow}toggleHighlight(){}prepareNodeBody(){const e=this.opts.colors;return new s.fabric.Rect({width:ae,height:ce,fill:this.getFillColor(),stroke:null===e||void 0===e?void 0:e.nodeShadow,rx:le,ry:le,shadow:this.getShadow(),hoverCursor:"default"})}createGroup(){const{top:e,left:t}=this.coords;return new s.fabric.Group([this.body],Object.assign({top:e,left:t},c))}}const de={width:112,borderRadius:6,titleFontSize:h,titleLineHeight:d,textFontSize:h,textLineHeight:d,padding:12,textOffset:8};class ue{constructor(e,t,i,n,r){this.nodeHeight=0,this.coords=t,this.opts=n,this.data=Q()(i,["data","data"]),this.shadow=new s.fabric.Shadow({color:n.colors.nodeShadow,offsetY:1,blur:5}),this.hoverShadow=new s.fabric.Shadow({color:n.colors.nodeShadow,offsetY:3,blur:8}),this.objects=this.prepareShapeObjects(),this.setShapeObjectsCoords(),this.body=this.prepareNodeBody(),this.group=this.createGroup()}getShape(){return this.group}getFillColor(){return this.opts.colors.nodeFill}getHoverFillColor(){return this.opts.colors.nodeHover}getShadow(){return this.shadow}getHoverShadow(){return this.hoverShadow}toggleHighlight(){}prepareNodeBody(){const e=this.opts.colors,t=this.objects[this.objects.length-1];return this.nodeHeight=(t.top||0)+t.getScaledHeight()+de.padding,new s.fabric.Rect({width:de.width,height:this.nodeHeight,fill:this.getFillColor(),stroke:null===e||void 0===e?void 0:e.nodeShadow,shadow:this.getShadow(),hoverCursor:"default"})}prepareShapeObjects(){var e,t;return[(e=[this.data.name||""],t=this.opts.colors,new s.fabric.Text(e.join("\n"),{fontSize:de.textFontSize,lineHeight:de.textLineHeight,left:0,top:26,fontFamily:l,fill:t.getCommonColor("text-primary")}))]}setShapeObjectsCoords(){const[e]=this.objects,t=de.padding,i=e.getScaledWidth();e.set({left:de.width/2-i/2,top:t})}createGroup(){const{top:e,left:t}=this.coords;return new s.fabric.Group([this.body,...this.objects],Object.assign({top:e,left:t},c))}}const ge={width:248,expandedWidth:360,borderRadius:6,titleFontSize:h,titleLineHeight:d,textFontSize:h,textLineHeight:d,padding:12,textOffset:8};class pe{constructor(e,t,i,n,r){this.expanded=!1,this.expandedNodeHeight=0,this.nodeHeight=0,this.canvas=e,this.coords=t,this.treeNode=i,this.opts=n,this.em=r,this.data=Q()(i,["data","data"]),this.shadow=new s.fabric.Shadow({color:n.colors.nodeShadow,offsetY:1,blur:5}),this.hoverShadow=new s.fabric.Shadow({color:n.colors.nodeShadow,offsetY:3,blur:8}),this.objects=this.prepareShapeObjects(),this.setShapeObjectsCoords(),this.body=this.prepareNodeBody(),this.group=this.createGroup(),this.initListeners()}getShape(){return this.group}getFillColor(){return this.opts.colors.nodeFill}getHoverFillColor(){return this.opts.colors.nodeHover}getShadow(){return this.shadow}getHoverShadow(){return this.hoverShadow}toggleHighlight(e){this.isExpandable()&&!this.expanded&&this.body.set({fill:e?this.getHoverFillColor():this.getFillColor(),shadow:e?this.getHoverShadow():this.getShadow()}),this.canvas.requestRenderAll()}prepareNodeBody(){const e=this.opts.colors,t=this.objects[this.objects.length-1];return this.nodeHeight=(t.top||0)+t.getScaledHeight()+ge.padding,new s.fabric.Rect({width:ge.width,height:this.nodeHeight,fill:this.getFillColor(),stroke:null===e||void 0===e?void 0:e.nodeShadow,rx:ge.borderRadius,ry:ge.borderRadius,shadow:this.getShadow(),hoverCursor:this.isExpandable()?"pointer":"default"})}prepareShapeObjects(){const e=ee(this.data.id,this.isExpandable(),this.opts.colors),t=(i=this.data.operators||[this.data.name||""],n=this.isExpandable(),r=this.opts.colors,new s.fabric.Text(i.join("\n"),{fontSize:ge.textFontSize,lineHeight:ge.textLineHeight,fontFamily:l,fill:r.getCommonColor("text-primary"),hoverCursor:n?"pointer":"default"}));var i,n,r;const o=function(e,t){if(0===e.length)return new s.fabric.Group([],Object.assign({top:0,left:0},c));const i=new s.fabric.Text("Tables:",{fontSize:ge.textFontSize,lineHeight:ge.textLineHeight,fontFamily:l,fill:t.getCommonColor("text-secondary"),hoverCursor:"pointer"}),n=i.getScaledWidth()+2,r=ge.width-2*ge.padding-n,o=new s.fabric.Textbox(e.join("\n"),{left:n,width:r,fontSize:ge.textFontSize,lineHeight:ge.textLineHeight,fontFamily:l,fill:t.getCommonColor("text-primary"),splitByGrapheme:!0,hoverCursor:"pointer"});return new s.fabric.Group([i,o],Object.assign({top:0,left:0},c))}(this.data.tables||[],this.opts.colors),a=function(e,t){if(!e)return new s.fabric.Group([],Object.assign({top:0,left:0},c));const i=new s.fabric.Text("CTE:",{fontSize:ge.textFontSize,lineHeight:ge.textLineHeight,fontFamily:l,fill:t.getCommonColor("text-secondary"),hoverCursor:"pointer"}),n=i.getScaledWidth()+2,r=ge.width-2*ge.padding-n,o=new s.fabric.Textbox(e,{left:n,width:r,fontSize:ge.textFontSize,lineHeight:ge.textLineHeight,fontFamily:l,fill:t.getCommonColor("text-primary"),splitByGrapheme:!0,hoverCursor:"pointer"});return new s.fabric.Group([i,o],Object.assign({top:0,left:0},c))}(this.data.cte||"",this.opts.colors);return[e,t,o,a]}setShapeObjectsCoords(){const[e,t,i,s]=this.objects;let n=ge.padding;const r=ge.padding;e.set({left:0,top:4,width:(this.expanded?ge.expandedWidth:ge.width)-4}),t.set({left:r,top:n}),n+=t.getScaledHeight(),i.set({left:r,top:n+(0===i.size()?0:ge.textOffset)}),n+=i.getScaledHeight(),s.set({left:r,top:n+(0===s.size()?0:ge.textOffset)})}createGroup(){const{top:e,left:t}=this.coords;return new s.fabric.Group([this.body,...this.objects],Object.assign({top:e,left:t},c))}initListeners(){this.initHover(),this.isExpandable()&&this.initExpand()}initHover(){this.group.on("mouseover",(()=>{this.em.dispatch("node:mouseover",this.treeNode),this.toggleHighlight(!0)})),this.group.on("mouseout",(()=>{this.em.dispatch("node:mouseout",this.treeNode),this.toggleHighlight(!1)}))}initExpand(){this.group.on("mousedown",(e=>{var t;this.stats&&(null===(t=e.subTargets)||void 0===t?void 0:t.includes(this.stats))||(this.updateDimensions(),this.expanded=!this.expanded,this.em.dispatch("node:resize",this.treeNode))}))}updateDimensions(){const e=this.opts.colors;if(this.expanded){const e=ge.width,t=this.nodeHeight;this.body.set({width:e,height:t,fill:this.getFillColor(),shadow:this.getShadow()}).setCoords(),this.objects[0].set({width:e-4}).setCoords(),this.group.removeWithUpdate(this.stats),this.stats=void 0}else{this.stats=J(this.canvas,this.data.stats,(this.group.top||0)+this.body.getScaledHeight()+ge.padding,(this.group.left||0)+ge.padding,e),this.expandedNodeHeight=this.nodeHeight+this.stats.getScaledHeight()+2*ge.padding;const t=ge.expandedWidth,i=this.expandedNodeHeight;this.body.set({width:t,height:i,fill:this.getFillColor(),shadow:this.getShadow()}).setCoords(),this.objects[0].set({width:t-4}).setCoords(),this.group.addWithUpdate(this.stats)}}isExpandable(){return Boolean(this.data.stats&&this.data.stats.length>0)}}function me(e,t,i,s,n){return function(e){const t=Q()(e,["data","data"]);return"connection"===(null===t||void 0===t?void 0:t.type)}(i)?new ne(e,t,i,s,n):function(e){const t=Q()(e,["data","data"]);return"result"===(null===t||void 0===t?void 0:t.type)}(i)?new ue(e,t,i,s,n):function(e){const t=Q()(e,["data","data"]);return"query"===(null===t||void 0===t?void 0:t.type)}(i)?new he(e,t,i,s,n):function(e){const t=Q()(e,["data","data"]);return"materialize"===(null===t||void 0===t?void 0:t.type)}(i)?new oe(e,t,i,s,n):new pe(e,t,i,s,n)}},73374:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>i.e(9312).then(i.bind(i,79312))})},73401:(e,t,i)=>{"use strict";i.d(t,{GM:()=>h,OA:()=>u,pY:()=>d,tN:()=>g,zk:()=>l});var s=i(64383),n=i(5662),r=i(31308),o=i(83069),a=i(36677);const c=[];function l(){return c}class h{constructor(e,t){if(this.startColumn=e,this.endColumnExclusive=t,e>t)throw new s.D7(`startColumn ${e} cannot be after endColumnExclusive ${t}`)}toRange(e){return new a.Q(e,this.startColumn,e,this.endColumnExclusive)}equals(e){return this.startColumn===e.startColumn&&this.endColumnExclusive===e.endColumnExclusive}}function d(e,t){const i=new n.Cm,s=e.createDecorationsCollection();return i.add((0,r.zL)({debugName:()=>`Apply decorations from ${t.debugName}`},(e=>{const i=t.read(e);s.set(i)}))),i.add({dispose:()=>{s.clear()}}),i}function u(e,t){return new o.y(e.lineNumber+t.lineNumber-1,1===t.lineNumber?e.column+t.column-1:t.column)}function g(e,t){return new o.y(e.lineNumber-t.lineNumber+1,e.lineNumber-t.lineNumber===0?e.column-t.column+1:e.column)}},73823:(e,t,i)=>{"use strict";i.d(t,{G5:()=>n,N8:()=>o,ke:()=>r});var s=i(63591);const n=(0,s.u1)("progressService");Object.freeze({total(){},worked(){},done(){}});class r{static{this.None=Object.freeze({report(){}})}constructor(e){this.callback=e}report(e){this._value=e,this.callback(this._value)}}const o=(0,s.u1)("editorProgressService")},73848:(e,t,i)=>{"use strict";i.r(t),i.d(t,{KeyMod:()=>u,createMonacoBaseAPI:()=>g});var s=i(18447),n=i(41234),r=i(24939),o=i(79400),a=i(83069),c=i(36677),l=i(75326),h=i(62083),d=i(35015);class u{static{this.CtrlCmd=2048}static{this.Shift=1024}static{this.Alt=512}static{this.WinCtrl=256}static chord(e,t){return(0,r.m5)(e,t)}}function g(){return{editor:void 0,languages:void 0,CancellationTokenSource:s.Qi,Emitter:n.vl,KeyCode:d.DD,KeyMod:u,Position:a.y,Range:c.Q,Selection:l.L,SelectionDirection:d.SB,MarkerSeverity:d.cj,MarkerTag:d.d_,Uri:o.r,Token:h.ou}}},73917:(e,t,i)=>{var s=i(79064);e.exports=function(e){return(null==e?0:e.length)?s(e,1):[]}},73983:(e,t,i)=>{"use strict";function s(e){return e&&"object"===typeof e&&"string"===typeof e.original&&"string"===typeof e.value}function n(e){return!!e&&void 0!==e.condition}i.d(t,{N:()=>n,f:()=>s})},74027:(e,t,i)=>{"use strict";i.d(t,{IN:()=>f,LC:()=>R,P8:()=>w,S8:()=>C,SA:()=>v,V8:()=>S,Vn:()=>L,fj:()=>E,hd:()=>b,pD:()=>y});var s=i(59911);const n=46,r=47,o=92,a=58;class c extends Error{constructor(e,t,i){let s;"string"===typeof t&&0===t.indexOf("not ")?(s="must not be",t=t.replace(/^not /,"")):s="must be";const n=-1!==e.indexOf(".")?"property":"argument";let r=`The "${e}" ${n} ${s} of type ${t}`;r+=". Received type "+typeof i,super(r),this.code="ERR_INVALID_ARG_TYPE"}}function l(e,t){if("string"!==typeof e)throw new c(t,"string",e)}const h="win32"===s.iD;function d(e){return e===r||e===o}function u(e){return e===r}function g(e){return e>=65&&e<=90||e>=97&&e<=122}function p(e,t,i,s){let o="",a=0,c=-1,l=0,h=0;for(let d=0;d<=e.length;++d){if(d<e.length)h=e.charCodeAt(d);else{if(s(h))break;h=r}if(s(h)){if(c===d-1||1===l);else if(2===l){if(o.length<2||2!==a||o.charCodeAt(o.length-1)!==n||o.charCodeAt(o.length-2)!==n){if(o.length>2){const e=o.lastIndexOf(i);-1===e?(o="",a=0):(o=o.slice(0,e),a=o.length-1-o.lastIndexOf(i)),c=d,l=0;continue}if(0!==o.length){o="",a=0,c=d,l=0;continue}}t&&(o+=o.length>0?`${i}..`:"..",a=2)}else o.length>0?o+=`${i}${e.slice(c+1,d)}`:o=e.slice(c+1,d),a=d-c-1;c=d,l=0}else h===n&&-1!==l?++l:l=-1}return o}function m(e,t){!function(e,t){if(null===e||"object"!==typeof e)throw new c(t,"Object",e)}(t,"pathObject");const i=t.dir||t.root,s=t.base||`${t.name||""}${n=t.ext,n?`${"."===n[0]?"":"."}${n}`:""}`;var n;return i?i===t.root?`${i}${s}`:`${i}${e}${s}`:s}const f={resolve(...e){let t="",i="",n=!1;for(let r=e.length-1;r>=-1;r--){let c;if(r>=0){if(c=e[r],l(c,`paths[${r}]`),0===c.length)continue}else 0===t.length?c=s.bJ():(c={NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}[`=${t}`]||s.bJ(),(void 0===c||c.slice(0,2).toLowerCase()!==t.toLowerCase()&&c.charCodeAt(2)===o)&&(c=`${t}\\`));const h=c.length;let u=0,p="",m=!1;const f=c.charCodeAt(0);if(1===h)d(f)&&(u=1,m=!0);else if(d(f))if(m=!0,d(c.charCodeAt(1))){let e=2,t=e;for(;e<h&&!d(c.charCodeAt(e));)e++;if(e<h&&e!==t){const i=c.slice(t,e);for(t=e;e<h&&d(c.charCodeAt(e));)e++;if(e<h&&e!==t){for(t=e;e<h&&!d(c.charCodeAt(e));)e++;e!==h&&e===t||(p=`\\\\${i}\\${c.slice(t,e)}`,u=e)}}}else u=1;else g(f)&&c.charCodeAt(1)===a&&(p=c.slice(0,2),u=2,h>2&&d(c.charCodeAt(2))&&(m=!0,u=3));if(p.length>0)if(t.length>0){if(p.toLowerCase()!==t.toLowerCase())continue}else t=p;if(n){if(t.length>0)break}else if(i=`${c.slice(u)}\\${i}`,n=m,m&&t.length>0)break}return i=p(i,!n,"\\",d),n?`${t}\\${i}`:`${t}${i}`||"."},normalize(e){l(e,"path");const t=e.length;if(0===t)return".";let i,s=0,n=!1;const r=e.charCodeAt(0);if(1===t)return u(r)?"\\":e;if(d(r))if(n=!0,d(e.charCodeAt(1))){let n=2,r=n;for(;n<t&&!d(e.charCodeAt(n));)n++;if(n<t&&n!==r){const o=e.slice(r,n);for(r=n;n<t&&d(e.charCodeAt(n));)n++;if(n<t&&n!==r){for(r=n;n<t&&!d(e.charCodeAt(n));)n++;if(n===t)return`\\\\${o}\\${e.slice(r)}\\`;n!==r&&(i=`\\\\${o}\\${e.slice(r,n)}`,s=n)}}}else s=1;else g(r)&&e.charCodeAt(1)===a&&(i=e.slice(0,2),s=2,t>2&&d(e.charCodeAt(2))&&(n=!0,s=3));let o=s<t?p(e.slice(s),!n,"\\",d):"";return 0!==o.length||n||(o="."),o.length>0&&d(e.charCodeAt(t-1))&&(o+="\\"),void 0===i?n?`\\${o}`:o:n?`${i}\\${o}`:`${i}${o}`},isAbsolute(e){l(e,"path");const t=e.length;if(0===t)return!1;const i=e.charCodeAt(0);return d(i)||t>2&&g(i)&&e.charCodeAt(1)===a&&d(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let t,i;for(let r=0;r<e.length;++r){const s=e[r];l(s,"path"),s.length>0&&(void 0===t?t=i=s:t+=`\\${s}`)}if(void 0===t)return".";let s=!0,n=0;if("string"===typeof i&&d(i.charCodeAt(0))){++n;const e=i.length;e>1&&d(i.charCodeAt(1))&&(++n,e>2&&(d(i.charCodeAt(2))?++n:s=!1))}if(s){for(;n<t.length&&d(t.charCodeAt(n));)n++;n>=2&&(t=`\\${t.slice(n)}`)}return f.normalize(t)},relative(e,t){if(l(e,"from"),l(t,"to"),e===t)return"";const i=f.resolve(e),s=f.resolve(t);if(i===s)return"";if((e=i.toLowerCase())===(t=s.toLowerCase()))return"";let n=0;for(;n<e.length&&e.charCodeAt(n)===o;)n++;let r=e.length;for(;r-1>n&&e.charCodeAt(r-1)===o;)r--;const a=r-n;let c=0;for(;c<t.length&&t.charCodeAt(c)===o;)c++;let h=t.length;for(;h-1>c&&t.charCodeAt(h-1)===o;)h--;const d=h-c,u=a<d?a:d;let g=-1,p=0;for(;p<u;p++){const i=e.charCodeAt(n+p);if(i!==t.charCodeAt(c+p))break;i===o&&(g=p)}if(p!==u){if(-1===g)return s}else{if(d>u){if(t.charCodeAt(c+p)===o)return s.slice(c+p+1);if(2===p)return s.slice(c+p)}a>u&&(e.charCodeAt(n+p)===o?g=p:2===p&&(g=3)),-1===g&&(g=0)}let m="";for(p=n+g+1;p<=r;++p)p!==r&&e.charCodeAt(p)!==o||(m+=0===m.length?"..":"\\..");return c+=g,m.length>0?`${m}${s.slice(c,h)}`:(s.charCodeAt(c)===o&&++c,s.slice(c,h))},toNamespacedPath(e){if("string"!==typeof e||0===e.length)return e;const t=f.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===o){if(t.charCodeAt(1)===o){const e=t.charCodeAt(2);if(63!==e&&e!==n)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(g(t.charCodeAt(0))&&t.charCodeAt(1)===a&&t.charCodeAt(2)===o)return`\\\\?\\${t}`;return e},dirname(e){l(e,"path");const t=e.length;if(0===t)return".";let i=-1,s=0;const n=e.charCodeAt(0);if(1===t)return d(n)?e:".";if(d(n)){if(i=s=1,d(e.charCodeAt(1))){let n=2,r=n;for(;n<t&&!d(e.charCodeAt(n));)n++;if(n<t&&n!==r){for(r=n;n<t&&d(e.charCodeAt(n));)n++;if(n<t&&n!==r){for(r=n;n<t&&!d(e.charCodeAt(n));)n++;if(n===t)return e;n!==r&&(i=s=n+1)}}}}else g(n)&&e.charCodeAt(1)===a&&(i=t>2&&d(e.charCodeAt(2))?3:2,s=i);let r=-1,o=!0;for(let a=t-1;a>=s;--a)if(d(e.charCodeAt(a))){if(!o){r=a;break}}else o=!1;if(-1===r){if(-1===i)return".";r=i}return e.slice(0,r)},basename(e,t){void 0!==t&&l(t,"suffix"),l(e,"path");let i,s=0,n=-1,r=!0;if(e.length>=2&&g(e.charCodeAt(0))&&e.charCodeAt(1)===a&&(s=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(i=e.length-1;i>=s;--i){const c=e.charCodeAt(i);if(d(c)){if(!r){s=i+1;break}}else-1===a&&(r=!1,a=i+1),o>=0&&(c===t.charCodeAt(o)?-1===--o&&(n=i):(o=-1,n=a))}return s===n?n=a:-1===n&&(n=e.length),e.slice(s,n)}for(i=e.length-1;i>=s;--i)if(d(e.charCodeAt(i))){if(!r){s=i+1;break}}else-1===n&&(r=!1,n=i+1);return-1===n?"":e.slice(s,n)},extname(e){l(e,"path");let t=0,i=-1,s=0,r=-1,o=!0,c=0;e.length>=2&&e.charCodeAt(1)===a&&g(e.charCodeAt(0))&&(t=s=2);for(let a=e.length-1;a>=t;--a){const t=e.charCodeAt(a);if(d(t)){if(!o){s=a+1;break}}else-1===r&&(o=!1,r=a+1),t===n?-1===i?i=a:1!==c&&(c=1):-1!==i&&(c=-1)}return-1===i||-1===r||0===c||1===c&&i===r-1&&i===s+1?"":e.slice(i,r)},format:m.bind(null,"\\"),parse(e){l(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const i=e.length;let s=0,r=e.charCodeAt(0);if(1===i)return d(r)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(d(r)){if(s=1,d(e.charCodeAt(1))){let t=2,n=t;for(;t<i&&!d(e.charCodeAt(t));)t++;if(t<i&&t!==n){for(n=t;t<i&&d(e.charCodeAt(t));)t++;if(t<i&&t!==n){for(n=t;t<i&&!d(e.charCodeAt(t));)t++;t===i?s=t:t!==n&&(s=t+1)}}}}else if(g(r)&&e.charCodeAt(1)===a){if(i<=2)return t.root=t.dir=e,t;if(s=2,d(e.charCodeAt(2))){if(3===i)return t.root=t.dir=e,t;s=3}}s>0&&(t.root=e.slice(0,s));let o=-1,c=s,h=-1,u=!0,p=e.length-1,m=0;for(;p>=s;--p)if(r=e.charCodeAt(p),d(r)){if(!u){c=p+1;break}}else-1===h&&(u=!1,h=p+1),r===n?-1===o?o=p:1!==m&&(m=1):-1!==o&&(m=-1);return-1!==h&&(-1===o||0===m||1===m&&o===h-1&&o===c+1?t.base=t.name=e.slice(c,h):(t.name=e.slice(c,o),t.base=e.slice(c,h),t.ext=e.slice(o,h))),t.dir=c>0&&c!==s?e.slice(0,c-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},_=(()=>{if(h){const e=/\\/g;return()=>{const t=s.bJ().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>s.bJ()})(),v={resolve(...e){let t="",i=!1;for(let s=e.length-1;s>=-1&&!i;s--){const n=s>=0?e[s]:_();l(n,`paths[${s}]`),0!==n.length&&(t=`${n}/${t}`,i=n.charCodeAt(0)===r)}return t=p(t,!i,"/",u),i?`/${t}`:t.length>0?t:"."},normalize(e){if(l(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===r,i=e.charCodeAt(e.length-1)===r;return 0===(e=p(e,!t,"/",u)).length?t?"/":i?"./":".":(i&&(e+="/"),t?`/${e}`:e)},isAbsolute:e=>(l(e,"path"),e.length>0&&e.charCodeAt(0)===r),join(...e){if(0===e.length)return".";let t;for(let i=0;i<e.length;++i){const s=e[i];l(s,"path"),s.length>0&&(void 0===t?t=s:t+=`/${s}`)}return void 0===t?".":v.normalize(t)},relative(e,t){if(l(e,"from"),l(t,"to"),e===t)return"";if((e=v.resolve(e))===(t=v.resolve(t)))return"";const i=e.length,s=i-1,n=t.length-1,o=s<n?s:n;let a=-1,c=0;for(;c<o;c++){const i=e.charCodeAt(1+c);if(i!==t.charCodeAt(1+c))break;i===r&&(a=c)}if(c===o)if(n>o){if(t.charCodeAt(1+c)===r)return t.slice(1+c+1);if(0===c)return t.slice(1+c)}else s>o&&(e.charCodeAt(1+c)===r?a=c:0===c&&(a=0));let h="";for(c=1+a+1;c<=i;++c)c!==i&&e.charCodeAt(c)!==r||(h+=0===h.length?"..":"/..");return`${h}${t.slice(1+a)}`},toNamespacedPath:e=>e,dirname(e){if(l(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===r;let i=-1,s=!0;for(let n=e.length-1;n>=1;--n)if(e.charCodeAt(n)===r){if(!s){i=n;break}}else s=!1;return-1===i?t?"/":".":t&&1===i?"//":e.slice(0,i)},basename(e,t){void 0!==t&&l(t,"ext"),l(e,"path");let i,s=0,n=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let a=t.length-1,c=-1;for(i=e.length-1;i>=0;--i){const l=e.charCodeAt(i);if(l===r){if(!o){s=i+1;break}}else-1===c&&(o=!1,c=i+1),a>=0&&(l===t.charCodeAt(a)?-1===--a&&(n=i):(a=-1,n=c))}return s===n?n=c:-1===n&&(n=e.length),e.slice(s,n)}for(i=e.length-1;i>=0;--i)if(e.charCodeAt(i)===r){if(!o){s=i+1;break}}else-1===n&&(o=!1,n=i+1);return-1===n?"":e.slice(s,n)},extname(e){l(e,"path");let t=-1,i=0,s=-1,o=!0,a=0;for(let c=e.length-1;c>=0;--c){const l=e.charCodeAt(c);if(l!==r)-1===s&&(o=!1,s=c+1),l===n?-1===t?t=c:1!==a&&(a=1):-1!==t&&(a=-1);else if(!o){i=c+1;break}}return-1===t||-1===s||0===a||1===a&&t===s-1&&t===i+1?"":e.slice(t,s)},format:m.bind(null,"/"),parse(e){l(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const i=e.charCodeAt(0)===r;let s;i?(t.root="/",s=1):s=0;let o=-1,a=0,c=-1,h=!0,d=e.length-1,u=0;for(;d>=s;--d){const t=e.charCodeAt(d);if(t!==r)-1===c&&(h=!1,c=d+1),t===n?-1===o?o=d:1!==u&&(u=1):-1!==o&&(u=-1);else if(!h){a=d+1;break}}if(-1!==c){const s=0===a&&i?1:a;-1===o||0===u||1===u&&o===c-1&&o===a+1?t.base=t.name=e.slice(s,c):(t.name=e.slice(s,o),t.base=e.slice(s,c),t.ext=e.slice(o,c))}return a>0?t.dir=e.slice(0,a-1):i&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};v.win32=f.win32=f,v.posix=f.posix=v;const C=h?f.normalize:v.normalize,E=h?f.join:v.join,b=h?f.resolve:v.resolve,S=h?f.relative:v.relative,y=h?f.dirname:v.dirname,w=h?f.basename:v.basename,R=h?f.extname:v.extname,L=h?f.sep:v.sep},74196:(e,t,i)=>{"use strict";i.d(t,{YJ:()=>c,_8:()=>a});var s=i(98067),n=i(87908),r=i(79027);const o=s.zx?1.5:1.35;class a{static createFromValidatedSettings(e,t,i){const s=e.get(49),n=e.get(53),r=e.get(52),o=e.get(51),c=e.get(54),l=e.get(67),h=e.get(64);return a._create(s,n,r,o,c,l,h,t,i)}static _create(e,t,i,s,c,l,h,d,u){0===l?l=o*i:l<8&&(l*=i),(l=Math.round(l))<8&&(l=8);const g=1+(u?0:.1*r.D.getZoomLevel());if(i*=g,l*=g,c===n.r_.TRANSLATE)if("normal"===t||"bold"===t)c=n.r_.OFF;else{c=`'wght' ${parseInt(t,10)}`,t="normal"}return new a({pixelRatio:d,fontFamily:e,fontWeight:t,fontSize:i,fontFeatureSettings:s,fontVariationSettings:c,lineHeight:l,letterSpacing:h})}constructor(e){this._bareFontInfoBrand=void 0,this.pixelRatio=e.pixelRatio,this.fontFamily=String(e.fontFamily),this.fontWeight=String(e.fontWeight),this.fontSize=e.fontSize,this.fontFeatureSettings=e.fontFeatureSettings,this.fontVariationSettings=e.fontVariationSettings,this.lineHeight=0|e.lineHeight,this.letterSpacing=e.letterSpacing}getId(){return`${this.pixelRatio}-${this.fontFamily}-${this.fontWeight}-${this.fontSize}-${this.fontFeatureSettings}-${this.fontVariationSettings}-${this.lineHeight}-${this.letterSpacing}`}getMassagedFontFamily(){const e=n.jU.fontFamily,t=a._wrapInQuotes(this.fontFamily);return e&&this.fontFamily!==e?`${t}, ${e}`:t}static _wrapInQuotes(e){return/[,"']/.test(e)?e:/[+ ]/.test(e)?`"${e}"`:e}}class c extends a{constructor(e,t){super(e),this._editorStylingBrand=void 0,this.version=2,this.isTrusted=t,this.isMonospace=e.isMonospace,this.typicalHalfwidthCharacterWidth=e.typicalHalfwidthCharacterWidth,this.typicalFullwidthCharacterWidth=e.typicalFullwidthCharacterWidth,this.canUseHalfwidthRightwardsArrow=e.canUseHalfwidthRightwardsArrow,this.spaceWidth=e.spaceWidth,this.middotWidth=e.middotWidth,this.wsmiddotWidth=e.wsmiddotWidth,this.maxDigitWidth=e.maxDigitWidth}equals(e){return this.fontFamily===e.fontFamily&&this.fontWeight===e.fontWeight&&this.fontSize===e.fontSize&&this.fontFeatureSettings===e.fontFeatureSettings&&this.fontVariationSettings===e.fontVariationSettings&&this.lineHeight===e.lineHeight&&this.letterSpacing===e.letterSpacing&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.typicalFullwidthCharacterWidth===e.typicalFullwidthCharacterWidth&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.maxDigitWidth===e.maxDigitWidth}}},74243:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ISemanticTokensStylingService:()=>s});const s=(0,i(63591).u1)("semanticTokensStylingService")},74276:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>i.e(9394).then(i.bind(i,29394))})},74304:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>i.e(2854).then(i.bind(i,32854))})},74320:(e,t,i)=>{"use strict";var s,n;i.d(t,{cO:()=>h,db:()=>d,fT:()=>o,qK:()=>l});class r{constructor(e,t){this.uri=e,this.value=t}}class o{static{this.defaultToKey=e=>e.toString()}constructor(e,t){if(this[s]="ResourceMap",e instanceof o)this.map=new Map(e.map),this.toKey=t??o.defaultToKey;else if(function(e){return Array.isArray(e)}(e)){this.map=new Map,this.toKey=t??o.defaultToKey;for(const[t,i]of e)this.set(t,i)}else this.map=new Map,this.toKey=e??o.defaultToKey}set(e,t){return this.map.set(this.toKey(e),new r(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){"undefined"!==typeof t&&(e=e.bind(t));for(const[i,s]of this.map)e(s.value,s.uri,this)}*values(){for(const e of this.map.values())yield e.value}*keys(){for(const e of this.map.values())yield e.uri}*entries(){for(const e of this.map.values())yield[e.uri,e.value]}*[(s=Symbol.toStringTag,Symbol.iterator)](){for(const[,e]of this.map)yield[e.uri,e.value]}}class a{constructor(){this[n]="LinkedMap",this._map=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){const i=this._map.get(e);if(i)return 0!==t&&this.touch(i,t),i.value}set(e,t,i=0){let s=this._map.get(e);if(s)s.value=t,0!==i&&this.touch(s,i);else{switch(s={key:e,value:t,next:void 0,previous:void 0},i){case 0:case 2:default:this.addItemLast(s);break;case 1:this.addItemFirst(s)}this._map.set(e,s),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const 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 new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const i=this._state;let s=this._head;for(;s;){if(t?e.bind(t)(s.value,s.key,this):e(s.value,s.key,this),this._state!==i)throw new Error("LinkedMap got modified during iteration.");s=s.next}}keys(){const e=this,t=this._state;let i=this._head;const s={[Symbol.iterator]:()=>s,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const e={value:i.key,done:!1};return i=i.next,e}return{value:void 0,done:!0}}};return s}values(){const e=this,t=this._state;let i=this._head;const s={[Symbol.iterator]:()=>s,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const e={value:i.value,done:!1};return i=i.next,e}return{value:void 0,done:!0}}};return s}entries(){const e=this,t=this._state;let i=this._head;const s={[Symbol.iterator]:()=>s,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const e={value:[i.key,i.value],done:!1};return i=i.next,e}return{value:void 0,done:!0}}};return s}[(n=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,i=this.size;for(;t&&i>e;)this._map.delete(t.key),t=t.next,i--;this._head=t,this._size=i,t&&(t.previous=void 0),this._state++}trimNew(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._tail,i=this.size;for(;t&&i>e;)this._map.delete(t.key),t=t.previous,i--;this._tail=t,this._size=i,t&&(t.next=void 0),this._state++}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;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 new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,i=e.previous;if(!t||!i)throw new Error("Invalid list");t.previous=i,i.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;const t=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(t.previous=i,i.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(2===t){if(e===this._tail)return;const t=e.next,i=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=i,i.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){const e=[];return this.forEach(((t,i)=>{e.push([i,t])})),e}fromJSON(e){this.clear();for(const[t,i]of e)this.set(t,i)}}class c extends a{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))}}class l extends c{constructor(e,t=1){super(e,t)}trim(e){this.trimOld(e)}set(e,t){return super.set(e,t),this.checkTrim(),this}}class h{constructor(e){if(this._m1=new Map,this._m2=new Map,e)for(const[t,i]of e)this.set(t,i)}clear(){this._m1.clear(),this._m2.clear()}set(e,t){this._m1.set(e,t),this._m2.set(t,e)}get(e){return this._m1.get(e)}getKey(e){return this._m2.get(e)}delete(e){const t=this._m1.get(e);return void 0!==t&&(this._m1.delete(e),this._m2.delete(t),!0)}keys(){return this._m1.keys()}values(){return this._m1.values()}}class d{constructor(){this.map=new Map}add(e,t){let i=this.map.get(e);i||(i=new Set,this.map.set(e,i)),i.add(t)}delete(e,t){const i=this.map.get(e);i&&(i.delete(t),0===i.size&&this.map.delete(e))}forEach(e,t){const i=this.map.get(e);i&&i.forEach(t)}get(e){const t=this.map.get(e);return t||new Set}}},74444:(e,t,i)=>{"use strict";i.d(t,{L:()=>n,h:()=>r});var s=i(64383);class n{static addRange(e,t){let i=0;for(;i<t.length&&t[i].endExclusive<e.start;)i++;let s=i;for(;s<t.length&&t[s].start<=e.endExclusive;)s++;if(i===s)t.splice(i,0,e);else{const r=Math.min(e.start,t[i].start),o=Math.max(e.endExclusive,t[s-1].endExclusive);t.splice(i,s-i,new n(r,o))}}static tryCreate(e,t){if(!(e>t))return new n(e,t)}static ofLength(e){return new n(0,e)}static ofStartAndLength(e,t){return new n(e,e+t)}constructor(e,t){if(this.start=e,this.endExclusive=t,e>t)throw new s.D7(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new n(this.start+e,this.endExclusive+e)}deltaStart(e){return new n(this.start+e,this.endExclusive)}deltaEnd(e){return new n(this.start,this.endExclusive+e)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}contains(e){return this.start<=e&&e<this.endExclusive}join(e){return new n(Math.min(this.start,e.start),Math.max(this.endExclusive,e.endExclusive))}intersect(e){const t=Math.max(this.start,e.start),i=Math.min(this.endExclusive,e.endExclusive);if(t<=i)return new n(t,i)}intersects(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 s.D7(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,e))}clipCyclic(e){if(this.isEmpty)throw new s.D7(`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)}}class r{constructor(){this._sortedRanges=[]}addRange(e){let t=0;for(;t<this._sortedRanges.length&&this._sortedRanges[t].endExclusive<e.start;)t++;let i=t;for(;i<this._sortedRanges.length&&this._sortedRanges[i].start<=e.endExclusive;)i++;if(t===i)this._sortedRanges.splice(t,0,e);else{const s=Math.min(e.start,this._sortedRanges[t].start),r=Math.max(e.endExclusive,this._sortedRanges[i-1].endExclusive);this._sortedRanges.splice(t,i-t,new n(s,r))}}toString(){return this._sortedRanges.map((e=>e.toString())).join(", ")}intersectsStrict(e){let t=0;for(;t<this._sortedRanges.length&&this._sortedRanges[t].endExclusive<=e.start;)t++;return t<this._sortedRanges.length&&this._sortedRanges[t].start<e.endExclusive}intersectWithRange(e){const t=new r;for(const i of this._sortedRanges){const s=i.intersect(e);s&&t.addRange(s)}return t}intersectWithRangeLength(e){return this.intersectWithRange(e).length}get length(){return this._sortedRanges.reduce(((e,t)=>e+t.length),0)}}},74688:(e,t,i)=>{e.exports=i(57233)},74800:(e,t,i)=>{"use strict";var s=i(34918);(0,s.K)({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>i.e(118).then(i.bind(i,90118)).then((e=>e.TagAutoInterpolationDollar))}),(0,s.K)({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>i.e(118).then(i.bind(i,90118)).then((e=>e.TagAngleInterpolationDollar))}),(0,s.K)({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>i.e(118).then(i.bind(i,90118)).then((e=>e.TagBracketInterpolationDollar))}),(0,s.K)({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>i.e(118).then(i.bind(i,90118)).then((e=>e.TagAngleInterpolationBracket))}),(0,s.K)({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>i.e(118).then(i.bind(i,90118)).then((e=>e.TagBracketInterpolationBracket))}),(0,s.K)({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>i.e(118).then(i.bind(i,90118)).then((e=>e.TagAutoInterpolationDollar))}),(0,s.K)({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>i.e(118).then(i.bind(i,90118)).then((e=>e.TagAutoInterpolationBracket))})},74850:(e,t,i)=>{"use strict";i.d(t,{m:()=>s});class s{constructor(e,t,i,s,n,r){this._scrollbarSize=Math.round(t),this._oppositeScrollbarSize=Math.round(i),this._arrowSize=Math.round(e),this._visibleSize=s,this._scrollSize=n,this._scrollPosition=r,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}clone(){return new s(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)}setVisibleSize(e){const t=Math.round(e);return this._visibleSize!==t&&(this._visibleSize=t,this._refreshComputedValues(),!0)}setScrollSize(e){const t=Math.round(e);return this._scrollSize!==t&&(this._scrollSize=t,this._refreshComputedValues(),!0)}setScrollPosition(e){const t=Math.round(e);return this._scrollPosition!==t&&(this._scrollPosition=t,this._refreshComputedValues(),!0)}setScrollbarSize(e){this._scrollbarSize=Math.round(e)}setOppositeScrollbarSize(e){this._oppositeScrollbarSize=Math.round(e)}static _computeValues(e,t,i,s,n){const r=Math.max(0,i-e),o=Math.max(0,r-2*t),a=s>0&&s>i;if(!a)return{computedAvailableSize:Math.round(r),computedIsNeeded:a,computedSliderSize:Math.round(o),computedSliderRatio:0,computedSliderPosition:0};const c=Math.round(Math.max(20,Math.floor(i*o/s))),l=(o-c)/(s-i),h=n*l;return{computedAvailableSize:Math.round(r),computedIsNeeded:a,computedSliderSize:Math.round(c),computedSliderRatio:l,computedSliderPosition:Math.round(h)}}_refreshComputedValues(){const e=s._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=e.computedAvailableSize,this._computedIsNeeded=e.computedIsNeeded,this._computedSliderSize=e.computedSliderSize,this._computedSliderRatio=e.computedSliderRatio,this._computedSliderPosition=e.computedSliderPosition}getArrowSize(){return this._arrowSize}getScrollPosition(){return this._scrollPosition}getRectangleLargeSize(){return this._computedAvailableSize}getRectangleSmallSize(){return this._scrollbarSize}isNeeded(){return this._computedIsNeeded}getSliderSize(){return this._computedSliderSize}getSliderPosition(){return this._computedSliderPosition}getDesiredScrollPositionFromOffset(e){if(!this._computedIsNeeded)return 0;const t=e-this._arrowSize-this._computedSliderSize/2;return Math.round(t/this._computedSliderRatio)}getDesiredScrollPositionFromOffsetPaged(e){if(!this._computedIsNeeded)return 0;const t=e-this._arrowSize;let i=this._scrollPosition;return t<this._computedSliderPosition?i-=this._visibleSize:i+=this._visibleSize,i}getDesiredScrollPositionFromDelta(e){if(!this._computedIsNeeded)return 0;const t=this._computedSliderPosition+e;return Math.round(t/this._computedSliderRatio)}}},74855:(e,t,i)=>{"use strict";i.r(t),i.d(t,{UnicodeTextModelHighlighter:()=>c});var s=i(36677),n=i(43264),r=i(91508),o=i(66782),a=i(26486);class c{static computeUnicodeHighlights(e,t,i){const c=i?i.startLineNumber:1,h=i?i.endLineNumber:e.getLineCount(),d=new l(t),u=d.getCandidateCodePoints();let g;var p;g="allNonBasicAscii"===u?new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):new RegExp(""+(p=Array.from(u),`[${r.bm(p.map((e=>String.fromCodePoint(e))).join(""))}]`),"g");const m=new n.W5(null,g),f=[];let _,v=!1,C=0,E=0,b=0;e:for(let n=c,l=h;n<=l;n++){const t=e.getLineContent(n),i=t.length;m.reset(0);do{if(_=m.next(t),_){let e=_.index,c=_.index+_[0].length;if(e>0){const i=t.charCodeAt(e-1);r.pc(i)&&e--}if(c+1<i){const e=t.charCodeAt(c-1);r.pc(e)&&c++}const l=t.substring(e,c);let h=(0,a.Th)(e+1,a.Ld,t,0);h&&h.endColumn<=e+1&&(h=null);const u=d.shouldHighlightNonBasicASCII(l,h?h.word:null);if(0!==u){3===u?C++:2===u?E++:1===u?b++:(0,o.xb)(u);const t=1e3;if(f.length>=t){v=!0;break e}f.push(new s.Q(n,e+1,n,c+1))}}}while(_)}return{ranges:f,hasMore:v,ambiguousCharacterCount:C,invisibleCharacterCount:E,nonBasicAsciiCharacterCount:b}}static computeUnicodeHighlightReason(e,t){const i=new l(t);switch(i.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const s=e.codePointAt(0),n=i.ambiguousCharacters.getPrimaryConfusable(s),o=r.tl.getLocales().filter((e=>!r.tl.getInstance(new Set([...t.allowedLocales,e])).isAmbiguous(s)));return{kind:0,confusableWith:String.fromCodePoint(n),notAmbiguousInLocales:o}}case 1:return{kind:2}}}}class l{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=r.tl.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const t of r.y_.codePoints)h(String.fromCodePoint(t))||e.add(t);if(this.options.ambiguousCharacters)for(const t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(const t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e,t){const i=e.codePointAt(0);if(this.allowedCodePoints.has(i))return 0;if(this.options.nonBasicASCII)return 1;let s=!1,n=!1;if(t)for(const o of t){const e=o.codePointAt(0),t=r.aC(o);s=s||t,t||this.ambiguousCharacters.isAmbiguous(e)||r.y_.isInvisibleCharacter(e)||(n=!0)}return!s&&n?0:this.options.invisibleCharacters&&!h(e)&&r.y_.isInvisibleCharacter(i)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(i)?3:0}}function h(e){return" "===e||"\n"===e||"\t"===e}},75147:(e,t,i)=>{"use strict";i.d(t,{DR:()=>c,cj:()=>s,oc:()=>n});var s,n,r=i(42291),o=i(78209),a=i(63591);!function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(s||(s={})),function(e){e.compare=function(e,t){return t-e};const t=Object.create(null);t[e.Error]=(0,o.kg)("sev.error","Error"),t[e.Warning]=(0,o.kg)("sev.warning","Warning"),t[e.Info]=(0,o.kg)("sev.info","Info"),e.toString=function(e){return t[e]||""},e.fromSeverity=function(t){switch(t){case r.A.Error:return e.Error;case r.A.Warning:return e.Warning;case r.A.Info:return e.Info;case r.A.Ignore:return e.Hint}},e.toSeverity=function(t){switch(t){case e.Error:return r.A.Error;case e.Warning:return r.A.Warning;case e.Info:return r.A.Info;case e.Hint:return r.A.Ignore}}}(s||(s={})),function(e){const t="";function i(e,i){const n=[t];return e.source?n.push(e.source.replace("\xa6","\\\xa6")):n.push(t),e.code?"string"===typeof e.code?n.push(e.code.replace("\xa6","\\\xa6")):n.push(e.code.value.replace("\xa6","\\\xa6")):n.push(t),void 0!==e.severity&&null!==e.severity?n.push(s.toString(e.severity)):n.push(t),e.message&&i?n.push(e.message.replace("\xa6","\\\xa6")):n.push(t),void 0!==e.startLineNumber&&null!==e.startLineNumber?n.push(e.startLineNumber.toString()):n.push(t),void 0!==e.startColumn&&null!==e.startColumn?n.push(e.startColumn.toString()):n.push(t),void 0!==e.endLineNumber&&null!==e.endLineNumber?n.push(e.endLineNumber.toString()):n.push(t),void 0!==e.endColumn&&null!==e.endColumn?n.push(e.endColumn.toString()):n.push(t),n.push(t),n.join("\xa6")}e.makeKey=function(e){return i(e,!0)},e.makeKeyOptionalMessage=i}(n||(n={}));const c=(0,a.u1)("markerService")},75162:(e,t,i)=>{e.exports=function(){const e=i(94297);function t(t){try{const i=BigInt(t.$value),s=BigInt(1e3),n=i%s,r=new Date(Number(i/s)),o=r.getFullYear();return o<=0&&r.setFullYear(o-1),r.toISOString().replace("Z","")+function(t){const i=String(t);return e.repeatChar("0",3-i.length)+i}(n)+"Z"}catch(i){return"Invalid timestamp"}}return t.isScalar=!0,t}},75208:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>i.e(8014).then(i.bind(i,98014))})},75295:(e,t,i)=>{"use strict";i.d(t,{CO:()=>g,WR:()=>d,mF:()=>h});var s=i(66782),n=i(64383),r=i(83069),o=i(74444),a=i(50973);class c{constructor(e){this.text=e,this.lineStartOffsetByLineIdx=[],this.lineStartOffsetByLineIdx.push(0);for(let t=0;t<e.length;t++)"\n"===e.charAt(t)&&this.lineStartOffsetByLineIdx.push(t+1)}getOffset(e){return this.lineStartOffsetByLineIdx[e.lineNumber-1]+e.column-1}getOffsetRange(e){return new o.L(this.getOffset(e.getStartPosition()),this.getOffset(e.getEndPosition()))}get textLength(){const e=this.lineStartOffsetByLineIdx.length-1;return new a.W(e,this.text.length-this.lineStartOffsetByLineIdx[e])}}var l=i(36677);class h{constructor(e){this.edits=e,(0,s.Ft)((()=>(0,s.Xo)(e,((e,t)=>e.range.getEndPosition().isBeforeOrEqual(t.range.getStartPosition())))))}apply(e){let t="",i=new r.y(1,1);for(const n of this.edits){const s=n.range,r=s.getStartPosition(),o=s.getEndPosition(),a=u(i,r);a.isEmpty()||(t+=e.getValueOfRange(a)),t+=n.text,i=o}const s=u(i,e.endPositionExclusive);return s.isEmpty()||(t+=e.getValueOfRange(s)),t}applyToString(e){const t=new p(e);return this.apply(t)}getNewRanges(){const e=[];let t=0,i=0,s=0;for(const n of this.edits){const o=a.W.ofText(n.text),c=r.y.lift({lineNumber:n.range.startLineNumber+i,column:n.range.startColumn+(n.range.startLineNumber===t?s:0)}),l=o.createRange(c);e.push(l),i=l.endLineNumber-n.range.endLineNumber,s=l.endColumn-n.range.endColumn,t=n.range.endLineNumber}return e}}class d{constructor(e,t){this.range=e,this.text=t}toSingleEditOperation(){return{range:this.range,text:this.text}}}function u(e,t){if(e.lineNumber===t.lineNumber&&e.column===Number.MAX_SAFE_INTEGER)return l.Q.fromPositions(t,t);if(!e.isBeforeOrEqual(t))throw new n.D7("start must be before end");return new l.Q(e.lineNumber,e.column,t.lineNumber,t.column)}class g{get endPositionExclusive(){return this.length.addToPosition(new r.y(1,1))}}class p extends g{constructor(e){super(),this.value=e,this._t=new c(this.value)}getValueOfRange(e){return this._t.getOffsetRange(e).substring(this.value)}get length(){return this._t.textLength}}},75326:(e,t,i)=>{"use strict";i.d(t,{L:()=>r});var s=i(83069),n=i(36677);class r extends n.Q{constructor(e,t,i,s){super(e,t,i,s),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=i,this.positionColumn=s}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return r.selectionsEqual(this,e)}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(e,t){return 0===this.getDirection()?new r(this.startLineNumber,this.startColumn,e,t):new r(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new s.y(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new s.y(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return 0===this.getDirection()?new r(e,t,this.endLineNumber,this.endColumn):new r(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new r(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return 0===t?new r(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new r(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new r(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.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 i=0,s=e.length;i<s;i++)if(!this.selectionsEqual(e[i],t[i]))return!1;return!0}static isISelection(e){return e&&"number"===typeof e.selectionStartLineNumber&&"number"===typeof e.selectionStartColumn&&"number"===typeof e.positionLineNumber&&"number"===typeof e.positionColumn}static createWithDirection(e,t,i,s,n){return 0===n?new r(e,t,i,s):new r(i,s,e,t)}}},75639:(e,t,i)=>{"use strict";var s=i(24939),n=i(36999),r=i(31450),o=i(15092),a=i(91508),c=i(7085),l=i(36677);class h{constructor(e,t,i){this._selection=e,this._cursors=t,this._selectionId=null,this._trimInRegexesAndStrings=i}getEditOperations(e,t){const i=function(e,t,i){t.sort(((e,t)=>e.lineNumber===t.lineNumber?e.column-t.column:e.lineNumber-t.lineNumber));for(let a=t.length-2;a>=0;a--)t[a].lineNumber===t[a+1].lineNumber&&t.splice(a,1);const s=[];let n=0,r=0;const o=t.length;for(let h=1,d=e.getLineCount();h<=d;h++){const d=e.getLineContent(h),u=d.length+1;let g=0;if(r<o&&t[r].lineNumber===h&&(g=t[r].column,r++,g===u))continue;if(0===d.length)continue;const p=a.lT(d);let m=0;if(-1===p)m=1;else{if(p===d.length-1)continue;m=p+2}if(!i){if(!e.tokenization.hasAccurateTokensForLine(h))continue;const t=e.tokenization.getLineTokens(h),i=t.getStandardTokenType(t.findTokenIndexAtOffset(m));if(2===i||3===i)continue}m=Math.max(g,m),s[n++]=c.k.delete(new l.Q(h,m,h,u))}return s}(e,this._cursors,this._trimInRegexesAndStrings);for(let s=0,n=i.length;s<n;s++){const e=i[s];t.addEditOperation(e.range,e.text)}this._selectionId=t.trackSelection(this._selection)}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}var d=i(49265),u=i(26685),g=i(83069),p=i(75326),m=i(60002);class f{constructor(e,t,i){this._selection=e,this._isCopyingDown=t,this._noop=i||!1,this._selectionDirection=0,this._selectionId=null,this._startLineNumberDelta=0,this._endLineNumberDelta=0}getEditOperations(e,t){let i=this._selection;this._startLineNumberDelta=0,this._endLineNumberDelta=0,i.startLineNumber<i.endLineNumber&&1===i.endColumn&&(this._endLineNumberDelta=1,i=i.setEndPosition(i.endLineNumber-1,e.getLineMaxColumn(i.endLineNumber-1)));const s=[];for(let r=i.startLineNumber;r<=i.endLineNumber;r++)s.push(e.getLineContent(r));const n=s.join("\n");""===n&&this._isCopyingDown&&(this._startLineNumberDelta++,this._endLineNumberDelta++),this._noop?t.addEditOperation(new l.Q(i.endLineNumber,e.getLineMaxColumn(i.endLineNumber),i.endLineNumber+1,1),i.endLineNumber===e.getLineCount()?"":"\n"):this._isCopyingDown?t.addEditOperation(new l.Q(i.startLineNumber,1,i.startLineNumber,1),n+"\n"):t.addEditOperation(new l.Q(i.endLineNumber,e.getLineMaxColumn(i.endLineNumber),i.endLineNumber,e.getLineMaxColumn(i.endLineNumber)),"\n"+n),this._selectionId=t.trackSelection(i),this._selectionDirection=this._selection.getDirection()}computeCursorState(e,t){let i=t.getTrackedSelection(this._selectionId);if(0!==this._startLineNumberDelta||0!==this._endLineNumberDelta){let e=i.startLineNumber,t=i.startColumn,s=i.endLineNumber,n=i.endColumn;0!==this._startLineNumberDelta&&(e+=this._startLineNumberDelta,t=1),0!==this._endLineNumberDelta&&(s+=this._endLineNumberDelta,n=1),i=p.L.createWithDirection(e,t,s,n,this._selectionDirection)}return i}}var _=i(7936),v=i(38566),C=i(17469),E=i(64395),b=i(82365),S=i(63346),y=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},w=function(e,t){return function(i,s){t(i,s,e)}};let R=class{constructor(e,t,i,s){this._languageConfigurationService=s,this._selection=e,this._isMovingDown=t,this._autoIndent=i,this._selectionId=null,this._moveEndLineSelectionShrink=!1}getEditOperations(e,t){const i=()=>e.getLanguageId(),s=(t,i)=>e.getLanguageIdAtPosition(t,i),n=e.getLineCount();if(this._isMovingDown&&this._selection.endLineNumber===n)return void(this._selectionId=t.trackSelection(this._selection));if(!this._isMovingDown&&1===this._selection.startLineNumber)return void(this._selectionId=t.trackSelection(this._selection));this._moveEndPositionDown=!1;let r=this._selection;r.startLineNumber<r.endLineNumber&&1===r.endColumn&&(this._moveEndPositionDown=!0,r=r.setEndPosition(r.endLineNumber-1,e.getLineMaxColumn(r.endLineNumber-1)));const{tabSize:o,indentSize:c,insertSpaces:h}=e.getOptions(),d=this.buildIndentConverter(o,c,h);if(r.startLineNumber===r.endLineNumber&&1===e.getLineMaxColumn(r.startLineNumber)){const i=r.startLineNumber,s=this._isMovingDown?i+1:i-1;1===e.getLineMaxColumn(s)?t.addEditOperation(new l.Q(1,1,1,1),null):(t.addEditOperation(new l.Q(i,1,i,1),e.getLineContent(s)),t.addEditOperation(new l.Q(s,1,s,e.getLineMaxColumn(s)),null)),r=new p.L(s,1,s,1)}else{let n,c;if(this._isMovingDown){n=r.endLineNumber+1,c=e.getLineContent(n),t.addEditOperation(new l.Q(n-1,e.getLineMaxColumn(n-1),n,e.getLineMaxColumn(n)),null);let u=c;if(this.shouldAutoIndent(e,r)){const g=this.matchEnterRule(e,d,o,n,r.startLineNumber-1);if(null!==g){const t=a.UU(e.getLineContent(n)),i=g+E.c(t,o),s=E.k(i,o,h);u=s+this.trimStart(c)}else{const t={tokenization:{getLineTokens:t=>t===r.startLineNumber?e.tokenization.getLineTokens(n):e.tokenization.getLineTokens(t),getLanguageId:i,getLanguageIdAtPosition:s},getLineContent:t=>t===r.startLineNumber?e.getLineContent(n):e.getLineContent(t)},l=(0,b.$f)(this._autoIndent,t,e.getLanguageIdAtPosition(n,1),r.startLineNumber,d,this._languageConfigurationService);if(null!==l){const t=a.UU(e.getLineContent(n)),i=E.c(l,o);if(i!==E.c(t,o)){const e=E.k(i,o,h);u=e+this.trimStart(c)}}}t.addEditOperation(new l.Q(r.startLineNumber,1,r.startLineNumber,1),u+"\n");const p=this.matchEnterRuleMovingDown(e,d,o,r.startLineNumber,n,u);if(null!==p)0!==p&&this.getIndentEditsOfMovingBlock(e,t,r,o,h,p);else{const c={tokenization:{getLineTokens:t=>t===r.startLineNumber?e.tokenization.getLineTokens(n):t>=r.startLineNumber+1&&t<=r.endLineNumber+1?e.tokenization.getLineTokens(t-1):e.tokenization.getLineTokens(t),getLanguageId:i,getLanguageIdAtPosition:s},getLineContent:t=>t===r.startLineNumber?u:t>=r.startLineNumber+1&&t<=r.endLineNumber+1?e.getLineContent(t-1):e.getLineContent(t)},l=(0,b.$f)(this._autoIndent,c,e.getLanguageIdAtPosition(n,1),r.startLineNumber+1,d,this._languageConfigurationService);if(null!==l){const i=a.UU(e.getLineContent(r.startLineNumber)),s=E.c(l,o),n=E.c(i,o);if(s!==n){const i=s-n;this.getIndentEditsOfMovingBlock(e,t,r,o,h,i)}}}}else t.addEditOperation(new l.Q(r.startLineNumber,1,r.startLineNumber,1),u+"\n")}else if(n=r.startLineNumber-1,c=e.getLineContent(n),t.addEditOperation(new l.Q(n,1,n+1,1),null),t.addEditOperation(new l.Q(r.endLineNumber,e.getLineMaxColumn(r.endLineNumber),r.endLineNumber,e.getLineMaxColumn(r.endLineNumber)),"\n"+c),this.shouldAutoIndent(e,r)){const c={tokenization:{getLineTokens:t=>t===n?e.tokenization.getLineTokens(r.startLineNumber):e.tokenization.getLineTokens(t),getLanguageId:i,getLanguageIdAtPosition:s},getLineContent:t=>t===n?e.getLineContent(r.startLineNumber):e.getLineContent(t)},l=this.matchEnterRule(e,d,o,r.startLineNumber,r.startLineNumber-2);if(null!==l)0!==l&&this.getIndentEditsOfMovingBlock(e,t,r,o,h,l);else{const i=(0,b.$f)(this._autoIndent,c,e.getLanguageIdAtPosition(r.startLineNumber,1),n,d,this._languageConfigurationService);if(null!==i){const s=a.UU(e.getLineContent(r.startLineNumber)),n=E.c(i,o),c=E.c(s,o);if(n!==c){const i=n-c;this.getIndentEditsOfMovingBlock(e,t,r,o,h,i)}}}}}this._selectionId=t.trackSelection(r)}buildIndentConverter(e,t,i){return{shiftIndent:s=>_.Y.shiftIndent(s,s.length+1,e,t,i),unshiftIndent:s=>_.Y.unshiftIndent(s,s.length+1,e,t,i)}}parseEnterResult(e,t,i,s,n){if(n){let r=n.indentation;n.indentAction===v.l.None||n.indentAction===v.l.Indent?r=n.indentation+n.appendText:n.indentAction===v.l.IndentOutdent?r=n.indentation:n.indentAction===v.l.Outdent&&(r=t.unshiftIndent(n.indentation)+n.appendText);const o=e.getLineContent(s);if(this.trimStart(o).indexOf(this.trimStart(r))>=0){const n=a.UU(e.getLineContent(s));let o=a.UU(r);const c=(0,b.Yb)(e,s,this._languageConfigurationService);null!==c&&2&c&&(o=t.unshiftIndent(o));return E.c(o,i)-E.c(n,i)}}return null}matchEnterRuleMovingDown(e,t,i,s,n,r){if(a.lT(r)>=0){const r=e.getLineMaxColumn(n),o=(0,S.h)(this._autoIndent,e,new l.Q(n,r,n,r),this._languageConfigurationService);return this.parseEnterResult(e,t,i,s,o)}{let n=s-1;for(;n>=1;){const t=e.getLineContent(n);if(a.lT(t)>=0)break;n--}if(n<1||s>e.getLineCount())return null;const r=e.getLineMaxColumn(n),o=(0,S.h)(this._autoIndent,e,new l.Q(n,r,n,r),this._languageConfigurationService);return this.parseEnterResult(e,t,i,s,o)}}matchEnterRule(e,t,i,s,n,r){let o=n;for(;o>=1;){let t;t=o===n&&void 0!==r?r:e.getLineContent(o);if(a.lT(t)>=0)break;o--}if(o<1||s>e.getLineCount())return null;const c=e.getLineMaxColumn(o),h=(0,S.h)(this._autoIndent,e,new l.Q(o,c,o,c),this._languageConfigurationService);return this.parseEnterResult(e,t,i,s,h)}trimStart(e){return e.replace(/^\s+/,"")}shouldAutoIndent(e,t){if(this._autoIndent<4)return!1;if(!e.tokenization.isCheapToTokenize(t.startLineNumber))return!1;const i=e.getLanguageIdAtPosition(t.startLineNumber,1);return i===e.getLanguageIdAtPosition(t.endLineNumber,1)&&null!==this._languageConfigurationService.getLanguageConfiguration(i).indentRulesSupport}getIndentEditsOfMovingBlock(e,t,i,s,n,r){for(let o=i.startLineNumber;o<=i.endLineNumber;o++){const c=e.getLineContent(o),h=a.UU(c),d=E.c(h,s)+r,u=E.k(d,s,n);u!==h&&(t.addEditOperation(new l.Q(o,1,o,h.length+1),u),o===i.endLineNumber&&i.endColumn<=h.length+1&&""===u&&(this._moveEndLineSelectionShrink=!0))}}computeCursorState(e,t){let i=t.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(i=i.setEndPosition(i.endLineNumber+1,1)),this._moveEndLineSelectionShrink&&i.startLineNumber<i.endLineNumber&&(i=i.setEndPosition(i.endLineNumber,2)),i}};R=y([w(3,C.JZ)],R);class L{static{this._COLLATOR=null}static getCollator(){return L._COLLATOR||(L._COLLATOR=new Intl.Collator),L._COLLATOR}constructor(e,t){this.selection=e,this.descending=t,this.selectionId=null}getEditOperations(e,t){const i=function(e,t,i){const s=T(e,t,i);if(!s)return null;return c.k.replace(new l.Q(s.startLineNumber,1,s.endLineNumber,e.getLineMaxColumn(s.endLineNumber)),s.after.join("\n"))}(e,this.selection,this.descending);i&&t.addEditOperation(i.range,i.text),this.selectionId=t.trackSelection(this.selection)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}static canRun(e,t,i){if(null===e)return!1;const s=T(e,t,i);if(!s)return!1;for(let n=0,r=s.before.length;n<r;n++)if(s.before[n]!==s.after[n])return!0;return!1}}function T(e,t,i){const s=t.startLineNumber;let n=t.endLineNumber;if(1===t.endColumn&&n--,s>=n)return null;const r=[];for(let a=s;a<=n;a++)r.push(e.getLineContent(a));let o=r.slice(0);return o.sort(L.getCollator().compare),!0===i&&(o=o.reverse()),{startLineNumber:s,endLineNumber:n,before:r,after:o}}var x=i(78209),k=i(27195),A=i(84001);class N extends r.ks{constructor(e,t){super(t),this.down=e}run(e,t){if(!t.hasModel())return;const i=t.getSelections().map(((e,t)=>({selection:e,index:t,ignore:!1})));i.sort(((e,t)=>l.Q.compareRangesUsingStarts(e.selection,t.selection)));let s=i[0];for(let r=1;r<i.length;r++){const e=i[r];s.selection.endLineNumber===e.selection.startLineNumber&&(s.index<e.index?e.ignore=!0:(s.ignore=!0,s=e))}const n=[];for(const r of i)n.push(new f(r.selection,this.down,r.ignore));t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}}class I extends r.ks{constructor(){super({id:"editor.action.duplicateSelection",label:x.kg("duplicateSelection","Duplicate Selection"),alias:"Duplicate Selection",precondition:m.R.writable,menuOpts:{menuId:k.D8.MenubarSelectionMenu,group:"2_line",title:x.kg({key:"miDuplicateSelection",comment:["&& denotes a mnemonic"]},"&&Duplicate Selection"),order:5}})}run(e,t,i){if(!t.hasModel())return;const s=[],n=t.getSelections(),r=t.getModel();for(const a of n)if(a.isEmpty())s.push(new f(a,!0));else{const e=new p.L(a.endLineNumber,a.endColumn,a.endLineNumber,a.endColumn);s.push(new o.tA(e,r.getValueInRange(a)))}t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop()}}class O extends r.ks{constructor(e,t){super(t),this.down=e}run(e,t){const i=e.get(C.JZ),s=[],n=t.getSelections()||[],r=t.getOption(12);for(const o of n)s.push(new R(o,this.down,r,i));t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop()}}class D extends r.ks{constructor(e,t){super(t),this.descending=e}run(e,t){if(!t.hasModel())return;const i=t.getModel();let s=t.getSelections();1===s.length&&s[0].isEmpty()&&(s=[new p.L(1,1,i.getLineCount(),i.getLineMaxColumn(i.getLineCount()))]);for(const r of s)if(!L.canRun(t.getModel(),r,this.descending))return;const n=[];for(let r=0,o=s.length;r<o;r++)n[r]=new L(s[r],this.descending);t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}}class M extends r.ks{constructor(){super({id:"editor.action.removeDuplicateLines",label:x.kg("lines.deleteDuplicates","Delete Duplicate Lines"),alias:"Delete Duplicate Lines",precondition:m.R.writable})}run(e,t){if(!t.hasModel())return;const i=t.getModel();if(1===i.getLineCount()&&1===i.getLineMaxColumn(1))return;const s=[],n=[];let r=0,o=!0,a=t.getSelections();1===a.length&&a[0].isEmpty()&&(a=[new p.L(1,1,i.getLineCount(),i.getLineMaxColumn(i.getLineCount()))],o=!1);for(const l of a){const e=new Set,t=[];for(let s=l.startLineNumber;s<=l.endLineNumber;s++){const n=i.getLineContent(s);e.has(n)||(t.push(n),e.add(n))}const o=new p.L(l.startLineNumber,1,l.endLineNumber,i.getLineMaxColumn(l.endLineNumber)),a=l.startLineNumber-r,h=new p.L(a,1,a+t.length-1,t[t.length-1].length);s.push(c.k.replace(o,t.join("\n"))),n.push(h),r+=l.endLineNumber-l.startLineNumber+1-t.length}t.pushUndoStop(),t.executeEdits(this.id,s,o?n:void 0),t.pushUndoStop()}}class P extends r.ks{static{this.ID="editor.action.trimTrailingWhitespace"}constructor(){super({id:P.ID,label:x.kg("lines.trimTrailingWhitespace","Trim Trailing Whitespace"),alias:"Trim Trailing Whitespace",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:(0,s.m5)(2089,2102),weight:100}})}run(e,t,i){let s=[];"auto-save"===i.reason&&(s=(t.getSelections()||[]).map((e=>new g.y(e.positionLineNumber,e.positionColumn))));const n=t.getSelection();if(null===n)return;const r=e.get(A.pG),o=t.getModel(),a=r.getValue("files.trimTrailingWhitespaceInRegexAndStrings",{overrideIdentifier:o?.getLanguageId(),resource:o?.uri}),c=new h(n,s,a);t.pushUndoStop(),t.executeCommands(this.id,[c]),t.pushUndoStop()}}class F extends r.ks{constructor(){super({id:"editor.action.deleteLines",label:x.kg("lines.delete","Delete Line"),alias:"Delete Line",precondition:m.R.writable,kbOpts:{kbExpr:m.R.textInputFocus,primary:3113,weight:100}})}run(e,t){if(!t.hasModel())return;const i=this._getLinesToRemove(t),s=t.getModel();if(1===s.getLineCount()&&1===s.getLineMaxColumn(1))return;let n=0;const r=[],o=[];for(let a=0,l=i.length;a<l;a++){const e=i[a];let t=e.startLineNumber,l=e.endLineNumber,h=1,d=s.getLineMaxColumn(l);l<s.getLineCount()?(l+=1,d=1):t>1&&(t-=1,h=s.getLineMaxColumn(t)),r.push(c.k.replace(new p.L(t,h,l,d),"")),o.push(new p.L(t-n,e.positionColumn,t-n,e.positionColumn)),n+=e.endLineNumber-e.startLineNumber+1}t.pushUndoStop(),t.executeEdits(this.id,r,o),t.pushUndoStop()}_getLinesToRemove(e){const t=e.getSelections().map((e=>{let t=e.endLineNumber;return e.startLineNumber<e.endLineNumber&&1===e.endColumn&&(t-=1),{startLineNumber:e.startLineNumber,selectionStartColumn:e.selectionStartColumn,endLineNumber:t,positionColumn:e.positionColumn}}));t.sort(((e,t)=>e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber));const i=[];let s=t[0];for(let n=1;n<t.length;n++)s.endLineNumber+1>=t[n].startLineNumber?s.endLineNumber=t[n].endLineNumber:(i.push(s),s=t[n]);return i.push(s),i}}class U extends r.ks{constructor(){super({id:"editor.action.indentLines",label:x.kg("lines.indent","Indent Line"),alias:"Indent Line",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:2142,weight:100}})}run(e,t){const i=t._getViewModel();i&&(t.pushUndoStop(),t.executeCommands(this.id,d.T.indent(i.cursorConfig,t.getModel(),t.getSelections())),t.pushUndoStop())}}class H extends r.ks{constructor(){super({id:"editor.action.outdentLines",label:x.kg("lines.outdent","Outdent Line"),alias:"Outdent Line",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:2140,weight:100}})}run(e,t){n.Yh.Outdent.runEditorCommand(e,t,null)}}class B extends r.ks{constructor(){super({id:"editor.action.insertLineBefore",label:x.kg("lines.insertBefore","Insert Line Above"),alias:"Insert Line Above",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:3075,weight:100}})}run(e,t){const i=t._getViewModel();i&&(t.pushUndoStop(),t.executeCommands(this.id,u.AO.lineInsertBefore(i.cursorConfig,t.getModel(),t.getSelections())))}}class W extends r.ks{constructor(){super({id:"editor.action.insertLineAfter",label:x.kg("lines.insertAfter","Insert Line Below"),alias:"Insert Line Below",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:2051,weight:100}})}run(e,t){const i=t._getViewModel();i&&(t.pushUndoStop(),t.executeCommands(this.id,u.AO.lineInsertAfter(i.cursorConfig,t.getModel(),t.getSelections())))}}class V extends r.ks{run(e,t){if(!t.hasModel())return;const i=t.getSelection(),s=this._getRangesToDelete(t),n=[];for(let a=0,c=s.length-1;a<c;a++){const e=s[a],t=s[a+1];null===l.Q.intersectRanges(e,t)?n.push(e):s[a+1]=l.Q.plusRange(e,t)}n.push(s[s.length-1]);const r=this._getEndCursorState(i,n),o=n.map((e=>c.k.replace(e,"")));t.pushUndoStop(),t.executeEdits(this.id,o,r),t.pushUndoStop()}}class z extends r.ks{constructor(){super({id:"editor.action.joinLines",label:x.kg("lines.joinLines","Join Lines"),alias:"Join Lines",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:0,mac:{primary:296},weight:100}})}run(e,t){const i=t.getSelections();if(null===i)return;let s=t.getSelection();if(null===s)return;i.sort(l.Q.compareRangesUsingStarts);const n=[],r=i.reduce(((e,t)=>e.isEmpty()?e.endLineNumber===t.startLineNumber?(s.equalsSelection(e)&&(s=t),t):t.startLineNumber>e.endLineNumber+1?(n.push(e),t):new p.L(e.startLineNumber,e.startColumn,t.endLineNumber,t.endColumn):t.startLineNumber>e.endLineNumber?(n.push(e),t):new p.L(e.startLineNumber,e.startColumn,t.endLineNumber,t.endColumn)));n.push(r);const o=t.getModel();if(null===o)return;const a=[],h=[];let d=s,u=0;for(let g=0,m=n.length;g<m;g++){const e=n[g],t=e.startLineNumber,i=1;let r,m,f=0;const _=o.getLineLength(e.endLineNumber)-e.endColumn;if(e.isEmpty()||e.startLineNumber===e.endLineNumber){const i=e.getStartPosition();i.lineNumber<o.getLineCount()?(r=t+1,m=o.getLineMaxColumn(r)):(r=i.lineNumber,m=o.getLineMaxColumn(i.lineNumber))}else r=e.endLineNumber,m=o.getLineMaxColumn(r);let v=o.getLineContent(t);for(let s=t+1;s<=r;s++){const e=o.getLineContent(s),t=o.getLineFirstNonWhitespaceColumn(s);if(t>=1){let i=!0;""===v&&(i=!1),!i||" "!==v.charAt(v.length-1)&&"\t"!==v.charAt(v.length-1)||(i=!1,v=v.replace(/[\s\uFEFF\xA0]+$/g," "));const s=e.substr(t-1);v+=(i?" ":"")+s,f=i?s.length+1:s.length}else f=0}const C=new l.Q(t,i,r,m);if(!C.isEmpty()){let i;e.isEmpty()?(a.push(c.k.replace(C,v)),i=new p.L(C.startLineNumber-u,v.length-f+1,t-u,v.length-f+1)):e.startLineNumber===e.endLineNumber?(a.push(c.k.replace(C,v)),i=new p.L(e.startLineNumber-u,e.startColumn,e.endLineNumber-u,e.endColumn)):(a.push(c.k.replace(C,v)),i=new p.L(e.startLineNumber-u,e.startColumn,e.startLineNumber-u,v.length-_)),null!==l.Q.intersectRanges(C,s)?d=i:h.push(i)}u+=C.endLineNumber-C.startLineNumber}h.unshift(d),t.pushUndoStop(),t.executeEdits(this.id,a,h),t.pushUndoStop()}}class G extends r.ks{constructor(){super({id:"editor.action.transpose",label:x.kg("editor.transpose","Transpose Characters around the Cursor"),alias:"Transpose Characters around the Cursor",precondition:m.R.writable})}run(e,t){const i=t.getSelections();if(null===i)return;const s=t.getModel();if(null===s)return;const n=[];for(let r=0,a=i.length;r<a;r++){const e=i[r];if(!e.isEmpty())continue;const t=e.getStartPosition(),a=s.getLineMaxColumn(t.lineNumber);if(t.column>=a){if(t.lineNumber===s.getLineCount())continue;const e=new l.Q(t.lineNumber,Math.max(1,t.column-1),t.lineNumber+1,1),i=s.getValueInRange(e).split("").reverse().join("");n.push(new o.iu(new p.L(t.lineNumber,Math.max(1,t.column-1),t.lineNumber+1,1),i))}else{const e=new l.Q(t.lineNumber,Math.max(1,t.column-1),t.lineNumber,t.column+1),i=s.getValueInRange(e).split("").reverse().join("");n.push(new o.ui(e,i,new p.L(t.lineNumber,t.column+1,t.lineNumber,t.column+1)))}}t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}}class j extends r.ks{run(e,t){const i=t.getSelections();if(null===i)return;const s=t.getModel();if(null===s)return;const n=t.getOption(132),r=[];for(const o of i)if(o.isEmpty()){const e=o.getStartPosition(),i=t.getConfiguredWordAtPosition(e);if(!i)continue;const a=new l.Q(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn),h=s.getValueInRange(a);r.push(c.k.replace(a,this._modifyText(h,n)))}else{const e=s.getValueInRange(o);r.push(c.k.replace(o,this._modifyText(e,n)))}t.pushUndoStop(),t.executeEdits(this.id,r),t.pushUndoStop()}}class K{constructor(e,t){this._pattern=e,this._flags=t,this._actual=null,this._evaluated=!1}get(){if(!this._evaluated){this._evaluated=!0;try{this._actual=new RegExp(this._pattern,this._flags)}catch(e){}}return this._actual}isSupported(){return null!==this.get()}}class Y extends j{static{this.titleBoundary=new K("(^|[^\\p{L}\\p{N}']|((^|\\P{L})'))\\p{L}","gmu")}constructor(){super({id:"editor.action.transformToTitlecase",label:x.kg("editor.transformToTitlecase","Transform to Title Case"),alias:"Transform to Title Case",precondition:m.R.writable})}_modifyText(e,t){const i=Y.titleBoundary.get();return i?e.toLocaleLowerCase().replace(i,(e=>e.toLocaleUpperCase())):e}}class q extends j{static{this.caseBoundary=new K("(\\p{Ll})(\\p{Lu})","gmu")}static{this.singleLetters=new K("(\\p{Lu}|\\p{N})(\\p{Lu})(\\p{Ll})","gmu")}constructor(){super({id:"editor.action.transformToSnakecase",label:x.kg("editor.transformToSnakecase","Transform to Snake Case"),alias:"Transform to Snake Case",precondition:m.R.writable})}_modifyText(e,t){const i=q.caseBoundary.get(),s=q.singleLetters.get();return i&&s?e.replace(i,"$1_$2").replace(s,"$1_$2$3").toLocaleLowerCase():e}}class $ extends j{static{this.wordBoundary=new K("[_\\s-]","gm")}constructor(){super({id:"editor.action.transformToCamelcase",label:x.kg("editor.transformToCamelcase","Transform to Camel Case"),alias:"Transform to Camel Case",precondition:m.R.writable})}_modifyText(e,t){const i=$.wordBoundary.get();if(!i)return e;const s=e.split(i);return s.shift()+s.map((e=>e.substring(0,1).toLocaleUpperCase()+e.substring(1))).join("")}}class Q extends j{static{this.wordBoundary=new K("[_\\s-]","gm")}static{this.wordBoundaryToMaintain=new K("(?<=\\.)","gm")}constructor(){super({id:"editor.action.transformToPascalcase",label:x.kg("editor.transformToPascalcase","Transform to Pascal Case"),alias:"Transform to Pascal Case",precondition:m.R.writable})}_modifyText(e,t){const i=Q.wordBoundary.get(),s=Q.wordBoundaryToMaintain.get();if(!i||!s)return e;return e.split(s).map((e=>e.split(i))).flat().map((e=>e.substring(0,1).toLocaleUpperCase()+e.substring(1))).join("")}}class X extends j{static isSupported(){return[this.caseBoundary,this.singleLetters,this.underscoreBoundary].every((e=>e.isSupported()))}static{this.caseBoundary=new K("(\\p{Ll})(\\p{Lu})","gmu")}static{this.singleLetters=new K("(\\p{Lu}|\\p{N})(\\p{Lu}\\p{Ll})","gmu")}static{this.underscoreBoundary=new K("(\\S)(_)(\\S)","gm")}constructor(){super({id:"editor.action.transformToKebabcase",label:x.kg("editor.transformToKebabcase","Transform to Kebab Case"),alias:"Transform to Kebab Case",precondition:m.R.writable})}_modifyText(e,t){const i=X.caseBoundary.get(),s=X.singleLetters.get(),n=X.underscoreBoundary.get();return i&&s&&n?e.replace(n,"$1-$3").replace(i,"$1-$2").replace(s,"$1-$2").toLocaleLowerCase():e}}(0,r.Fl)(class extends N{constructor(){super(!1,{id:"editor.action.copyLinesUpAction",label:x.kg("lines.copyUp","Copy Line Up"),alias:"Copy Line Up",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:1552,linux:{primary:3600},weight:100},menuOpts:{menuId:k.D8.MenubarSelectionMenu,group:"2_line",title:x.kg({key:"miCopyLinesUp",comment:["&& denotes a mnemonic"]},"&&Copy Line Up"),order:1}})}}),(0,r.Fl)(class extends N{constructor(){super(!0,{id:"editor.action.copyLinesDownAction",label:x.kg("lines.copyDown","Copy Line Down"),alias:"Copy Line Down",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:1554,linux:{primary:3602},weight:100},menuOpts:{menuId:k.D8.MenubarSelectionMenu,group:"2_line",title:x.kg({key:"miCopyLinesDown",comment:["&& denotes a mnemonic"]},"Co&&py Line Down"),order:2}})}}),(0,r.Fl)(I),(0,r.Fl)(class extends O{constructor(){super(!1,{id:"editor.action.moveLinesUpAction",label:x.kg("lines.moveUp","Move Line Up"),alias:"Move Line Up",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:528,linux:{primary:528},weight:100},menuOpts:{menuId:k.D8.MenubarSelectionMenu,group:"2_line",title:x.kg({key:"miMoveLinesUp",comment:["&& denotes a mnemonic"]},"Mo&&ve Line Up"),order:3}})}}),(0,r.Fl)(class extends O{constructor(){super(!0,{id:"editor.action.moveLinesDownAction",label:x.kg("lines.moveDown","Move Line Down"),alias:"Move Line Down",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:530,linux:{primary:530},weight:100},menuOpts:{menuId:k.D8.MenubarSelectionMenu,group:"2_line",title:x.kg({key:"miMoveLinesDown",comment:["&& denotes a mnemonic"]},"Move &&Line Down"),order:4}})}}),(0,r.Fl)(class extends D{constructor(){super(!1,{id:"editor.action.sortLinesAscending",label:x.kg("lines.sortAscending","Sort Lines Ascending"),alias:"Sort Lines Ascending",precondition:m.R.writable})}}),(0,r.Fl)(class extends D{constructor(){super(!0,{id:"editor.action.sortLinesDescending",label:x.kg("lines.sortDescending","Sort Lines Descending"),alias:"Sort Lines Descending",precondition:m.R.writable})}}),(0,r.Fl)(M),(0,r.Fl)(P),(0,r.Fl)(F),(0,r.Fl)(U),(0,r.Fl)(H),(0,r.Fl)(B),(0,r.Fl)(W),(0,r.Fl)(class extends V{constructor(){super({id:"deleteAllLeft",label:x.kg("lines.deleteAllLeft","Delete All Left"),alias:"Delete All Left",precondition:m.R.writable,kbOpts:{kbExpr:m.R.textInputFocus,primary:0,mac:{primary:2049},weight:100}})}_getEndCursorState(e,t){let i=null;const s=[];let n=0;return t.forEach((t=>{let r;if(1===t.endColumn&&n>0){const e=t.startLineNumber-n;r=new p.L(e,t.startColumn,e,t.startColumn)}else r=new p.L(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn);n+=t.endLineNumber-t.startLineNumber,t.intersectRanges(e)?i=r:s.push(r)})),i&&s.unshift(i),s}_getRangesToDelete(e){const t=e.getSelections();if(null===t)return[];let i=t;const s=e.getModel();return null===s?[]:(i.sort(l.Q.compareRangesUsingStarts),i=i.map((e=>{if(e.isEmpty()){if(1===e.startColumn){const t=Math.max(1,e.startLineNumber-1),i=1===e.startLineNumber?1:s.getLineLength(t)+1;return new l.Q(t,i,e.startLineNumber,1)}return new l.Q(e.startLineNumber,1,e.startLineNumber,e.startColumn)}return new l.Q(e.startLineNumber,1,e.endLineNumber,e.endColumn)})),i)}}),(0,r.Fl)(class extends V{constructor(){super({id:"deleteAllRight",label:x.kg("lines.deleteAllRight","Delete All Right"),alias:"Delete All Right",precondition:m.R.writable,kbOpts:{kbExpr:m.R.textInputFocus,primary:0,mac:{primary:297,secondary:[2068]},weight:100}})}_getEndCursorState(e,t){let i=null;const s=[];for(let n=0,r=t.length,o=0;n<r;n++){const r=t[n],a=new p.L(r.startLineNumber-o,r.startColumn,r.startLineNumber-o,r.startColumn);r.intersectRanges(e)?i=a:s.push(a)}return i&&s.unshift(i),s}_getRangesToDelete(e){const t=e.getModel();if(null===t)return[];const i=e.getSelections();if(null===i)return[];const s=i.map((e=>{if(e.isEmpty()){const i=t.getLineMaxColumn(e.startLineNumber);return e.startColumn===i?new l.Q(e.startLineNumber,e.startColumn,e.startLineNumber+1,1):new l.Q(e.startLineNumber,e.startColumn,e.startLineNumber,i)}return e}));return s.sort(l.Q.compareRangesUsingStarts),s}}),(0,r.Fl)(z),(0,r.Fl)(G),(0,r.Fl)(class extends j{constructor(){super({id:"editor.action.transformToUppercase",label:x.kg("editor.transformToUppercase","Transform to Uppercase"),alias:"Transform to Uppercase",precondition:m.R.writable})}_modifyText(e,t){return e.toLocaleUpperCase()}}),(0,r.Fl)(class extends j{constructor(){super({id:"editor.action.transformToLowercase",label:x.kg("editor.transformToLowercase","Transform to Lowercase"),alias:"Transform to Lowercase",precondition:m.R.writable})}_modifyText(e,t){return e.toLocaleLowerCase()}}),q.caseBoundary.isSupported()&&q.singleLetters.isSupported()&&(0,r.Fl)(q),$.wordBoundary.isSupported()&&(0,r.Fl)($),Q.wordBoundary.isSupported()&&(0,r.Fl)(Q),Y.titleBoundary.isSupported()&&(0,r.Fl)(Y),X.isSupported()&&(0,r.Fl)(X)},76007:(e,t,i)=>{"use strict";i.r(t),i.d(t,{LanguageFeaturesService:()=>g});var s=i(41234),n=i(5662),r=i(16223),o=i(54459);function a(e){return"string"!==typeof e&&(Array.isArray(e)?e.every(a):!!e.exclusive)}class c{constructor(e,t,i,s,n){this.uri=e,this.languageId=t,this.notebookUri=i,this.notebookType=s,this.recursive=n}equals(e){return this.notebookType===e.notebookType&&this.languageId===e.languageId&&this.uri.toString()===e.uri.toString()&&this.notebookUri?.toString()===e.notebookUri?.toString()&&this.recursive===e.recursive}}class l{constructor(e){this._notebookInfoResolver=e,this._clock=0,this._entries=[],this._onDidChange=new s.vl,this.onDidChange=this._onDidChange.event}register(e,t){let i={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(i),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),(0,n.s)((()=>{if(i){const e=this._entries.indexOf(i);e>=0&&(this._entries.splice(e,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),i=void 0)}}))}has(e){return this.all(e).length>0}all(e){if(!e)return[];this._updateScores(e,!1);const t=[];for(const i of this._entries)i._score>0&&t.push(i.provider);return t}ordered(e,t=!1){const i=[];return this._orderedForEach(e,t,(e=>i.push(e.provider))),i}orderedGroups(e){const t=[];let i,s;return this._orderedForEach(e,!1,(e=>{i&&s===e._score?i.push(e.provider):(s=e._score,i=[e.provider],t.push(i))})),t}_orderedForEach(e,t,i){this._updateScores(e,t);for(const s of this._entries)s._score>0&&i(s)}_updateScores(e,t){const i=this._notebookInfoResolver?.(e.uri),s=i?new c(e.uri,e.getLanguageId(),i.uri,i.type,t):new c(e.uri,e.getLanguageId(),void 0,void 0,t);if(!this._lastCandidate?.equals(s)){this._lastCandidate=s;for(const i of this._entries)if(i._score=(0,o.f)(i.selector,s.uri,s.languageId,(0,r.vd)(e),s.notebookUri,s.notebookType),a(i.selector)&&i._score>0){if(!t){for(const e of this._entries)e._score=0;i._score=1e3;break}i._score=0}this._entries.sort(l._compareByScoreAndTime)}}static _compareByScoreAndTime(e,t){return e._score<t._score?1:e._score>t._score?-1:h(e.selector)&&!h(t.selector)?1:!h(e.selector)&&h(t.selector)?-1:e._time<t._time?1:e._time>t._time?-1:0}}function h(e){return"string"!==typeof e&&(Array.isArray(e)?e.some(h):Boolean(e.isBuiltin))}var d=i(56942),u=i(14718);class g{constructor(){this.referenceProvider=new l(this._score.bind(this)),this.renameProvider=new l(this._score.bind(this)),this.newSymbolNamesProvider=new l(this._score.bind(this)),this.codeActionProvider=new l(this._score.bind(this)),this.definitionProvider=new l(this._score.bind(this)),this.typeDefinitionProvider=new l(this._score.bind(this)),this.declarationProvider=new l(this._score.bind(this)),this.implementationProvider=new l(this._score.bind(this)),this.documentSymbolProvider=new l(this._score.bind(this)),this.inlayHintsProvider=new l(this._score.bind(this)),this.colorProvider=new l(this._score.bind(this)),this.codeLensProvider=new l(this._score.bind(this)),this.documentFormattingEditProvider=new l(this._score.bind(this)),this.documentRangeFormattingEditProvider=new l(this._score.bind(this)),this.onTypeFormattingEditProvider=new l(this._score.bind(this)),this.signatureHelpProvider=new l(this._score.bind(this)),this.hoverProvider=new l(this._score.bind(this)),this.documentHighlightProvider=new l(this._score.bind(this)),this.multiDocumentHighlightProvider=new l(this._score.bind(this)),this.selectionRangeProvider=new l(this._score.bind(this)),this.foldingRangeProvider=new l(this._score.bind(this)),this.linkProvider=new l(this._score.bind(this)),this.inlineCompletionsProvider=new l(this._score.bind(this)),this.inlineEditProvider=new l(this._score.bind(this)),this.completionProvider=new l(this._score.bind(this)),this.linkedEditingRangeProvider=new l(this._score.bind(this)),this.documentRangeSemanticTokensProvider=new l(this._score.bind(this)),this.documentSemanticTokensProvider=new l(this._score.bind(this)),this.documentDropEditProvider=new l(this._score.bind(this)),this.documentPasteEditProvider=new l(this._score.bind(this))}_score(e){return this._notebookTypeResolver?.(e)}}(0,u.v)(d.ILanguageFeaturesService,g,1)},76319:(e,t,i)=>{e.exports=function(e){const t=i(94297);return function(i,s,n){const r=s.limitListLength>0&&i.length>s.limitListLength;return(r?i.slice(0,s.limitListLength-1):i).map((function(t){return e(t,s,n+1)})).concat(r?["... "+(i.length-s.limitListLength+1)+" hidden items"]:[]).join(t.getExpressionTerminator(s)+t.getIndent(s,n))}}},76440:(e,t,i)=>{"use strict";var s=i(31450),n=i(57039),r=i(21478),o=i(68250);(0,s.HW)(r.M.ID,r.M,1),n.B2.register(o.u)},76495:(e,t,i)=>{"use strict";i.d(t,{hW:()=>r});var s=i(78049),n=i(44026);class r{constructor(e,t,i){this.editorModel=e,this.languageConfigurationService=t,this.foldingRangesLimit=i,this.id="indent"}dispose(){}compute(e){const t=this.languageConfigurationService.getLanguageConfiguration(this.editorModel.getLanguageId()).foldingRules,i=t&&!!t.offSide,n=t&&t.markers;return Promise.resolve(function(e,t,i,n=a){const r=e.getOptions().tabSize,c=new o(n);let l;i&&(l=new RegExp(`(${i.start.source})|(?:${i.end.source})`));const h=[],d=e.getLineCount()+1;h.push({indent:-1,endAbove:d,line:d});for(let o=e.getLineCount();o>0;o--){const i=e.getLineContent(o),n=(0,s.G)(i,r);let a,d=h[h.length-1];if(-1!==n){if(l&&(a=i.match(l))){if(!a[1]){h.push({indent:-2,endAbove:o,line:o});continue}{let e=h.length-1;for(;e>0&&-2!==h[e].indent;)e--;if(e>0){h.length=e+1,d=h[e],c.insertFirst(o,d.line,n),d.line=o,d.indent=n,d.endAbove=o;continue}}}if(d.indent>n){do{h.pop(),d=h[h.length-1]}while(d.indent>n);const e=d.endAbove-1;e-o>=1&&c.insertFirst(o,e,n)}d.indent===n?d.endAbove=o:h.push({indent:n,endAbove:o,line:o})}else t&&(d.endAbove=o)}return c.toIndentRanges(e)}(this.editorModel,i,n,this.foldingRangesLimit))}}class o{constructor(e){this._startIndexes=[],this._endIndexes=[],this._indentOccurrences=[],this._length=0,this._foldingRangesLimit=e}insertFirst(e,t,i){if(e>n.yy||t>n.yy)return;const s=this._length;this._startIndexes[s]=e,this._endIndexes[s]=t,this._length++,i<1e3&&(this._indentOccurrences[i]=(this._indentOccurrences[i]||0)+1)}toIndentRanges(e){const t=this._foldingRangesLimit.limit;if(this._length<=t){this._foldingRangesLimit.update(this._length,!1);const e=new Uint32Array(this._length),t=new Uint32Array(this._length);for(let i=this._length-1,s=0;i>=0;i--,s++)e[s]=this._startIndexes[i],t[s]=this._endIndexes[i];return new n.tz(e,t)}{this._foldingRangesLimit.update(this._length,t);let i=0,r=this._indentOccurrences.length;for(let e=0;e<this._indentOccurrences.length;e++){const s=this._indentOccurrences[e];if(s){if(s+i>t){r=e;break}i+=s}}const o=e.getOptions().tabSize,a=new Uint32Array(t),c=new Uint32Array(t);for(let n=this._length-1,l=0;n>=0;n--){const h=this._startIndexes[n],d=e.getLineContent(h),u=(0,s.G)(d,o);(u<r||u===r&&i++<t)&&(a[l]=h,c[l]=this._endIndexes[n],l++)}return new n.tz(a,c)}}}const a={limit:5e3,update:()=>{}}},76531:(e,t,i)=>{!function(){"use strict";const t=i(85858),s="$type",n="$value",r="$attributes";function o(e,t){return e&&Object.prototype.hasOwnProperty.call(e,t)&&"undefined"!==typeof e[t]}function a(e){return o(e,n)?e[n]:e}e.exports={hasSpecialProperty:o,attributes:function(e){return o(e,r)?e[r]:{}},value:a,type:function(e){return o(e,s)?e[s]:t(a(e))},ATTRIBUTES_KEY:r,VALUE_KEY:n,TYPE_KEY:s,INCOMPLETE_KEY:"$incomplete",BINARY_KEY:"$binary"}}()},77011:(e,t,i)=>{"use strict";i.d(t,{A:()=>q});var s=i(87758),n=i(5662),r=i(63591),o=i(64317),a=i(98031),c=i(90766),l=i(51219),h=i(8597),d=i(62083),u=i(12143),g=i(57039),p=i(88807),m=i(83069);class f extends n.jG{constructor(e,t=new h.fg(10,10)){super(),this._editor=e,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._resizableNode=this._register(new p.v),this._contentPosition=null,this._isResizing=!1,this._resizableNode.domNode.style.position="absolute",this._resizableNode.minSize=h.fg.lift(t),this._resizableNode.layout(t.height,t.width),this._resizableNode.enableSashes(!0,!0,!0,!0),this._register(this._resizableNode.onDidResize((e=>{this._resize(new h.fg(e.dimension.width,e.dimension.height)),e.done&&(this._isResizing=!1)}))),this._register(this._resizableNode.onDidWillResize((()=>{this._isResizing=!0})))}get isResizing(){return this._isResizing}getDomNode(){return this._resizableNode.domNode}getPosition(){return this._contentPosition}get position(){return this._contentPosition?.position?m.y.lift(this._contentPosition.position):void 0}_availableVerticalSpaceAbove(e){const t=this._editor.getDomNode(),i=this._editor.getScrolledVisiblePosition(e);if(!t||!i)return;return h.BK(t).top+i.top-30}_availableVerticalSpaceBelow(e){const t=this._editor.getDomNode(),i=this._editor.getScrolledVisiblePosition(e);if(!t||!i)return;const s=h.BK(t),n=h.tG(t.ownerDocument.body),r=s.top+i.top+i.height;return n.height-r-24}_findPositionPreference(e,t){const i=Math.min(this._availableVerticalSpaceBelow(t)??1/0,e),s=Math.min(this._availableVerticalSpaceAbove(t)??1/0,e),n=Math.min(Math.max(s,i),e),r=Math.min(e,n);let o;return o=this._editor.getOption(60).above?r<=s?1:2:r<=i?2:1,1===o?this._resizableNode.enableSashes(!0,!0,!1,!1):this._resizableNode.enableSashes(!1,!0,!0,!1),o}_resize(e){this._resizableNode.layout(e.height,e.width)}}var _,v=i(32848),C=i(84001),E=i(253),b=i(60002),S=i(52776),y=i(41234),w=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},R=function(e,t){return function(i,s){t(i,s,e)}};let L=class extends f{static{_=this}static{this.ID="editor.contrib.resizableContentHoverWidget"}static{this._lastDimensions=new h.fg(0,0)}get isVisibleFromKeyboard(){return 1===this._renderedHover?.source}get isVisible(){return this._hoverVisibleKey.get()??!1}get isFocused(){return this._hoverFocusedKey.get()??!1}constructor(e,t,i,s,n){const r=e.getOption(67)+8,o=new h.fg(150,r);super(e,o),this._configurationService=i,this._accessibilityService=s,this._keybindingService=n,this._hover=this._register(new S.N4),this._onDidResize=this._register(new y.vl),this.onDidResize=this._onDidResize.event,this._minimumSize=o,this._hoverVisibleKey=b.R.hoverVisible.bindTo(t),this._hoverFocusedKey=b.R.hoverFocused.bindTo(t),h.BC(this._resizableNode.domNode,this._hover.containerDomNode),this._resizableNode.domNode.style.zIndex="50",this._register(this._editor.onDidLayoutChange((()=>{this.isVisible&&this._updateMaxDimensions()}))),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(50)&&this._updateFont()})));const a=this._register(h.w5(this._resizableNode.domNode));this._register(a.onDidFocus((()=>{this._hoverFocusedKey.set(!0)}))),this._register(a.onDidBlur((()=>{this._hoverFocusedKey.set(!1)}))),this._setRenderedHover(void 0),this._editor.addContentWidget(this)}dispose(){super.dispose(),this._renderedHover?.dispose(),this._editor.removeContentWidget(this)}getId(){return _.ID}static _applyDimensions(e,t,i){const s="number"===typeof t?`${t}px`:t,n="number"===typeof i?`${i}px`:i;e.style.width=s,e.style.height=n}_setContentsDomNodeDimensions(e,t){const i=this._hover.contentsDomNode;return _._applyDimensions(i,e,t)}_setContainerDomNodeDimensions(e,t){const i=this._hover.containerDomNode;return _._applyDimensions(i,e,t)}_setHoverWidgetDimensions(e,t){this._setContentsDomNodeDimensions(e,t),this._setContainerDomNodeDimensions(e,t),this._layoutContentWidget()}static _applyMaxDimensions(e,t,i){const s="number"===typeof t?`${t}px`:t,n="number"===typeof i?`${i}px`:i;e.style.maxWidth=s,e.style.maxHeight=n}_setHoverWidgetMaxDimensions(e,t){_._applyMaxDimensions(this._hover.contentsDomNode,e,t),_._applyMaxDimensions(this._hover.containerDomNode,e,t),this._hover.containerDomNode.style.setProperty("--vscode-hover-maxWidth","number"===typeof e?`${e}px`:e),this._layoutContentWidget()}_setAdjustedHoverWidgetDimensions(e){this._setHoverWidgetMaxDimensions("none","none");const t=e.width,i=e.height;this._setHoverWidgetDimensions(t,i)}_updateResizableNodeMaxDimensions(){const e=this._findMaximumRenderingWidth()??1/0,t=this._findMaximumRenderingHeight()??1/0;this._resizableNode.maxSize=new h.fg(e,t),this._setHoverWidgetMaxDimensions(e,t)}_resize(e){_._lastDimensions=new h.fg(e.width,e.height),this._setAdjustedHoverWidgetDimensions(e),this._resizableNode.layout(e.height,e.width),this._updateResizableNodeMaxDimensions(),this._hover.scrollbar.scanDomNode(),this._editor.layoutContentWidget(this),this._onDidResize.fire()}_findAvailableSpaceVertically(){const e=this._renderedHover?.showAtPosition;if(e)return 1===this._positionPreference?this._availableVerticalSpaceAbove(e):this._availableVerticalSpaceBelow(e)}_findMaximumRenderingHeight(){const e=this._findAvailableSpaceVertically();if(!e)return;let t=6;return Array.from(this._hover.contentsDomNode.children).forEach((e=>{t+=e.clientHeight})),Math.min(e,t)}_isHoverTextOverflowing(){this._hover.containerDomNode.style.setProperty("--vscode-hover-whiteSpace","nowrap"),this._hover.containerDomNode.style.setProperty("--vscode-hover-sourceWhiteSpace","nowrap");const e=Array.from(this._hover.contentsDomNode.children).some((e=>e.scrollWidth>e.clientWidth));return this._hover.containerDomNode.style.removeProperty("--vscode-hover-whiteSpace"),this._hover.containerDomNode.style.removeProperty("--vscode-hover-sourceWhiteSpace"),e}_findMaximumRenderingWidth(){if(!this._editor||!this._editor.hasModel())return;const e=this._isHoverTextOverflowing(),t="undefined"===typeof this._contentWidth?0:this._contentWidth-2;if(e||this._hover.containerDomNode.clientWidth<t){return h.tG(this._hover.containerDomNode.ownerDocument.body).width-14}return this._hover.containerDomNode.clientWidth+2}isMouseGettingCloser(e,t){if(!this._renderedHover)return!1;if(void 0===this._renderedHover.initialMousePosX||void 0===this._renderedHover.initialMousePosY)return this._renderedHover.initialMousePosX=e,this._renderedHover.initialMousePosY=t,!1;const i=h.BK(this.getDomNode());void 0===this._renderedHover.closestMouseDistance&&(this._renderedHover.closestMouseDistance=T(this._renderedHover.initialMousePosX,this._renderedHover.initialMousePosY,i.left,i.top,i.width,i.height));const s=T(e,t,i.left,i.top,i.width,i.height);return!(s>this._renderedHover.closestMouseDistance+4)&&(this._renderedHover.closestMouseDistance=Math.min(this._renderedHover.closestMouseDistance,s),!0)}_setRenderedHover(e){this._renderedHover?.dispose(),this._renderedHover=e,this._hoverVisibleKey.set(!!e),this._hover.containerDomNode.classList.toggle("hidden",!e)}_updateFont(){const{fontSize:e,lineHeight:t}=this._editor.getOption(50),i=this._hover.contentsDomNode;i.style.fontSize=`${e}px`,i.style.lineHeight=""+t/e;Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach((e=>this._editor.applyFontInfo(e)))}_updateContent(e){const t=this._hover.contentsDomNode;t.style.paddingBottom="",t.textContent="",t.appendChild(e)}_layoutContentWidget(){this._editor.layoutContentWidget(this),this._hover.onContentsChanged()}_updateMaxDimensions(){const e=Math.max(this._editor.getLayoutInfo().height/4,250,_._lastDimensions.height),t=Math.max(.66*this._editor.getLayoutInfo().width,500,_._lastDimensions.width);this._setHoverWidgetMaxDimensions(t,e)}_render(e){this._setRenderedHover(e),this._updateFont(),this._updateContent(e.domNode),this._updateMaxDimensions(),this.onContentsChanged(),this._editor.render()}getPosition(){return this._renderedHover?{position:this._renderedHover.showAtPosition,secondaryPosition:this._renderedHover.showAtSecondaryPosition,positionAffinity:this._renderedHover.shouldAppearBeforeContent?3:void 0,preference:[this._positionPreference??1]}:null}show(e){if(!this._editor||!this._editor.hasModel())return;this._render(e);const t=h.OK(this._hover.containerDomNode),i=e.showAtPosition;this._positionPreference=this._findPositionPreference(t,i)??1,this.onContentsChanged(),e.shouldFocus&&this._hover.containerDomNode.focus(),this._onDidResize.fire();const s=this._hover.containerDomNode.ownerDocument.activeElement===this._hover.containerDomNode&&(0,S.vr)(!0===this._configurationService.getValue("accessibility.verbosity.hover")&&this._accessibilityService.isScreenReaderOptimized(),this._keybindingService.lookupKeybinding("editor.action.accessibleView")?.getAriaLabel()??"");s&&(this._hover.contentsDomNode.ariaLabel=this._hover.contentsDomNode.textContent+", "+s)}hide(){if(!this._renderedHover)return;const e=this._renderedHover.shouldFocus||this._hoverFocusedKey.get();this._setRenderedHover(void 0),this._resizableNode.maxSize=new h.fg(1/0,1/0),this._resizableNode.clearSashHoverState(),this._hoverFocusedKey.set(!1),this._editor.layoutContentWidget(this),e&&this._editor.focus()}_removeConstraintsRenderNormally(){const e=this._editor.getLayoutInfo();this._resizableNode.layout(e.height,e.width),this._setHoverWidgetDimensions("auto","auto")}setMinimumDimensions(e){this._minimumSize=new h.fg(Math.max(this._minimumSize.width,e.width),Math.max(this._minimumSize.height,e.height)),this._updateMinimumWidth()}_updateMinimumWidth(){const e="undefined"===typeof this._contentWidth?this._minimumSize.width:Math.min(this._contentWidth,this._minimumSize.width);this._resizableNode.minSize=new h.fg(e,this._minimumSize.height)}onContentsChanged(){this._removeConstraintsRenderNormally();const e=this._hover.containerDomNode;let t=h.OK(e),i=h.Tr(e);if(this._resizableNode.layout(t,i),this._setHoverWidgetDimensions(i,t),t=h.OK(e),i=h.Tr(e),this._contentWidth=i,this._updateMinimumWidth(),this._resizableNode.layout(t,i),this._renderedHover?.showAtPosition){const e=h.OK(this._hover.containerDomNode);this._positionPreference=this._findPositionPreference(e,this._renderedHover.showAtPosition)}this._layoutContentWidget()}focus(){this._hover.containerDomNode.focus()}scrollUp(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._editor.getOption(50);this._hover.scrollbar.setScrollPosition({scrollTop:e-t.lineHeight})}scrollDown(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._editor.getOption(50);this._hover.scrollbar.setScrollPosition({scrollTop:e+t.lineHeight})}scrollLeft(){const e=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:e-30})}scrollRight(){const e=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:e+30})}pageUp(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:e-t})}pageDown(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:e+t})}goToTop(){this._hover.scrollbar.setScrollPosition({scrollTop:0})}goToBottom(){this._hover.scrollbar.setScrollPosition({scrollTop:this._hover.scrollbar.getScrollDimensions().scrollHeight})}};function T(e,t,i,s,n,r){const o=i+n/2,a=s+r/2,c=Math.max(Math.abs(e-o)-n/2,0),l=Math.max(Math.abs(t-a)-r/2,0);return Math.sqrt(c*c+l*l)}L=_=w([R(1,v.fN),R(2,C.pG),R(3,E.j),R(4,a.b)],L);var x=i(25890);class k{get anchor(){return this._anchor}set anchor(e){this._anchor=e}get shouldFocus(){return this._shouldFocus}set shouldFocus(e){this._shouldFocus=e}get source(){return this._source}set source(e){this._source=e}get insistOnKeepingHoverVisible(){return this._insistOnKeepingHoverVisible}set insistOnKeepingHoverVisible(e){this._insistOnKeepingHoverVisible=e}constructor(e,t){this._editor=e,this._participants=t,this._anchor=null,this._shouldFocus=!1,this._source=0,this._insistOnKeepingHoverVisible=!1}static _getLineDecorations(e,t){if(1!==t.type&&!t.supportsMarkerHover)return[];const i=e.getModel(),s=t.range.startLineNumber;if(s>i.getLineCount())return[];const n=i.getLineMaxColumn(s);return e.getLineDecorations(s).filter((e=>{if(e.options.isWholeLine)return!0;const i=e.range.startLineNumber===s?e.range.startColumn:1,r=e.range.endLineNumber===s?e.range.endColumn:n;if(e.options.showIfCollapsed){if(i>t.range.startColumn+1||t.range.endColumn-1>r)return!1}else if(i>t.range.startColumn||t.range.endColumn>r)return!1;return!0}))}computeAsync(e){const t=this._anchor;if(!this._editor.hasModel()||!t)return c.AE.EMPTY;const i=k._getLineDecorations(this._editor,t);return c.AE.merge(this._participants.map((s=>s.computeAsync?s.computeAsync(t,i,e):c.AE.EMPTY)))}computeSync(){if(!this._editor.hasModel()||!this._anchor)return[];const e=k._getLineDecorations(this._editor,this._anchor);let t=[];for(const i of this._participants)t=t.concat(i.computeSync(this._anchor,e));return(0,x.Yc)(t)}}class A{constructor(e,t,i){this.anchor=e,this.hoverParts=t,this.isComplete=i}filter(e){const t=this.hoverParts.filter((t=>t.isValidForHoverAnchor(e)));return t.length===this.hoverParts.length?this:new N(this,this.anchor,t,this.isComplete)}}class N extends A{constructor(e,t,i,s){super(t,i,s),this.original=e}filter(e){return this.original.filter(e)}}var I=i(9270),O=i(87289),D=i(36677),M=i(57286),P=i(28712),F=i(68250),U=i(64383);class H extends n.jG{constructor(e,t,i,s,n,r){super();const o=t.anchor,a=t.hoverParts;this._renderedHoverParts=this._register(new W(e,i,a,r,n));const{showAtPosition:c,showAtSecondaryPosition:l}=H.computeHoverPositions(e,o.range,a);this.shouldAppearBeforeContent=a.some((e=>e.isBeforeContent)),this.showAtPosition=c,this.showAtSecondaryPosition=l,this.initialMousePosX=o.initialMousePosX,this.initialMousePosY=o.initialMousePosY,this.shouldFocus=s.shouldFocus,this.source=s.source}get domNode(){return this._renderedHoverParts.domNode}get domNodeHasChildren(){return this._renderedHoverParts.domNodeHasChildren}get focusedHoverPartIndex(){return this._renderedHoverParts.focusedHoverPartIndex}async updateHoverVerbosityLevel(e,t,i){this._renderedHoverParts.updateHoverVerbosityLevel(e,t,i)}isColorPickerVisible(){return this._renderedHoverParts.isColorPickerVisible()}static computeHoverPositions(e,t,i){let s=1;if(e.hasModel()){const i=e._getViewModel(),n=i.coordinatesConverter,r=n.convertModelRangeToViewRange(t),o=i.getLineMinColumn(r.startLineNumber),a=new m.y(r.startLineNumber,o);s=n.convertViewPositionToModelPosition(a).column}const n=t.startLineNumber;let r,o,a,c=t.startColumn;for(const l of i){const e=l.range,t=e.startLineNumber===n,i=e.endLineNumber===n;if(t&&i){const t=e.startColumn,i=Math.min(c,t);c=Math.max(i,s)}l.forceShowAtRange&&(r=e)}if(r){const e=r.getStartPosition();o=e,a=e}else o=t.getStartPosition(),a=new m.y(n,c);return{showAtPosition:o,showAtSecondaryPosition:a}}}class B{constructor(e,t){this._statusBar=t,e.appendChild(this._statusBar.hoverElement)}get hoverElement(){return this._statusBar.hoverElement}get actions(){return this._statusBar.actions}dispose(){this._statusBar.dispose()}}class W extends n.jG{static{this._DECORATION_OPTIONS=O.kI.register({description:"content-hover-highlight",className:"hoverHighlight"})}constructor(e,t,i,s,n){super(),this._renderedParts=[],this._focusedHoverPartIndex=-1,this._context=n,this._fragment=document.createDocumentFragment(),this._register(this._renderParts(t,i,n,s)),this._register(this._registerListenersOnRenderedParts()),this._register(this._createEditorDecorations(e,i)),this._updateMarkdownAndColorParticipantInfo(t)}_createEditorDecorations(e,t){if(0===t.length)return n.jG.None;let i=t[0].range;for(const n of t){const e=n.range;i=D.Q.plusRange(i,e)}const s=e.createDecorationsCollection();return s.set([{range:i,options:W._DECORATION_OPTIONS}]),(0,n.s)((()=>{s.clear()}))}_renderParts(e,t,i,s){const r=new I.L(s),o={fragment:this._fragment,statusBar:r,...i},a=new n.Cm;for(const n of e){const e=this._renderHoverPartsForParticipant(t,n,o);a.add(e);for(const t of e.renderedHoverParts)this._renderedParts.push({type:"hoverPart",participant:n,hoverPart:t.hoverPart,hoverElement:t.hoverElement})}const c=this._renderStatusBar(this._fragment,r);return c&&(a.add(c),this._renderedParts.push({type:"statusBar",hoverElement:c.hoverElement,actions:c.actions})),(0,n.s)((()=>{a.dispose()}))}_renderHoverPartsForParticipant(e,t,i){const s=e.filter((e=>e.owner===t));return s.length>0?t.renderHoverParts(i,s):new g.Ke([])}_renderStatusBar(e,t){if(t.hasContent)return new B(e,t)}_registerListenersOnRenderedParts(){const e=new n.Cm;return this._renderedParts.forEach(((t,i)=>{const s=t.hoverElement;s.tabIndex=0,e.add(h.ko(s,h.Bx.FOCUS_IN,(e=>{e.stopPropagation(),this._focusedHoverPartIndex=i}))),e.add(h.ko(s,h.Bx.FOCUS_OUT,(e=>{e.stopPropagation(),this._focusedHoverPartIndex=-1})))})),e}_updateMarkdownAndColorParticipantInfo(e){const t=e.find((e=>e instanceof M.xJ&&!(e instanceof F.u)));t&&(this._markdownHoverParticipant=t),this._colorHoverParticipant=e.find((e=>e instanceof P.BJ))}async updateHoverVerbosityLevel(e,t,i){if(!this._markdownHoverParticipant)return;const s=this._normalizedIndexToMarkdownHoverIndexRange(this._markdownHoverParticipant,t);if(void 0===s)return;const n=await this._markdownHoverParticipant.updateMarkdownHoverVerbosityLevel(e,s,i);n&&(this._renderedParts[t]={type:"hoverPart",participant:this._markdownHoverParticipant,hoverPart:n.hoverPart,hoverElement:n.hoverElement},this._context.onContentsChanged())}isColorPickerVisible(){return this._colorHoverParticipant?.isColorPickerVisible()??!1}_normalizedIndexToMarkdownHoverIndexRange(e,t){const i=this._renderedParts[t];if(!i||"hoverPart"!==i.type)return;if(!(i.participant===e))return;const s=this._renderedParts.findIndex((t=>"hoverPart"===t.type&&t.participant===e));if(-1===s)throw new U.D7;return t-s}get domNode(){return this._fragment}get domNodeHasChildren(){return this._fragment.hasChildNodes()}get focusedHoverPartIndex(){return this._focusedHoverPartIndex}}var V=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},z=function(e,t){return function(i,s){t(i,s,e)}};let G=class extends n.jG{constructor(e,t,i){super(),this._editor=e,this._instantiationService=t,this._keybindingService=i,this._currentResult=null,this._onContentsChanged=this._register(new y.vl),this.onContentsChanged=this._onContentsChanged.event,this._contentHoverWidget=this._register(this._instantiationService.createInstance(L,this._editor)),this._participants=this._initializeHoverParticipants(),this._computer=new k(this._editor,this._participants),this._hoverOperation=this._register(new u.w(this._editor,this._computer)),this._registerListeners()}_initializeHoverParticipants(){const e=[];for(const t of g.B2.getAll()){const i=this._instantiationService.createInstance(t,this._editor);e.push(i)}return e.sort(((e,t)=>e.hoverOrdinal-t.hoverOrdinal)),this._register(this._contentHoverWidget.onDidResize((()=>{this._participants.forEach((e=>e.handleResize?.()))}))),e}_registerListeners(){this._register(this._hoverOperation.onResult((e=>{if(!this._computer.anchor)return;const t=e.hasLoadingMessage?this._addLoadingMessage(e.value):e.value;this._withResult(new A(this._computer.anchor,t,e.isComplete))})));const e=this._contentHoverWidget.getDomNode();this._register(h.b2(e,"keydown",(e=>{e.equals(9)&&this.hide()}))),this._register(h.b2(e,"mouseleave",(e=>{this._onMouseLeave(e)}))),this._register(d.dG.onDidChange((()=>{this._contentHoverWidget.position&&this._currentResult&&this._setCurrentResult(this._currentResult)})))}_startShowingOrUpdateHover(e,t,i,s,n){if(!(this._contentHoverWidget.position&&this._currentResult))return!!e&&(this._startHoverOperationIfNecessary(e,t,i,s,!1),!0);const r=this._editor.getOption(60).sticky,o=n&&this._contentHoverWidget.isMouseGettingCloser(n.event.posx,n.event.posy);if(r&&o)return e&&this._startHoverOperationIfNecessary(e,t,i,s,!0),!0;if(!e)return this._setCurrentResult(null),!1;if(this._currentResult.anchor.equals(e))return!0;return e.canAdoptVisibleHover(this._currentResult.anchor,this._contentHoverWidget.position)?(this._setCurrentResult(this._currentResult.filter(e)),this._startHoverOperationIfNecessary(e,t,i,s,!1),!0):(this._setCurrentResult(null),this._startHoverOperationIfNecessary(e,t,i,s,!1),!0)}_startHoverOperationIfNecessary(e,t,i,s,n){this._computer.anchor&&this._computer.anchor.equals(e)||(this._hoverOperation.cancel(),this._computer.anchor=e,this._computer.shouldFocus=s,this._computer.source=i,this._computer.insistOnKeepingHoverVisible=n,this._hoverOperation.start(t))}_setCurrentResult(e){let t=e;if(this._currentResult===t)return;t&&0===t.hoverParts.length&&(t=null),this._currentResult=t,this._currentResult?this._showHover(this._currentResult):this._hideHover()}_addLoadingMessage(e){if(!this._computer.anchor)return e;for(const t of this._participants){if(!t.createLoadingMessage)continue;const i=t.createLoadingMessage(this._computer.anchor);if(i)return e.slice(0).concat([i])}return e}_withResult(e){this._contentHoverWidget.position&&this._currentResult&&this._currentResult.isComplete||this._setCurrentResult(e);if(!e.isComplete)return;const t=0===e.hoverParts.length,i=this._computer.insistOnKeepingHoverVisible;t&&i||this._setCurrentResult(e)}_showHover(e){const t=this._getHoverContext();this._renderedContentHover=new H(this._editor,e,this._participants,this._computer,t,this._keybindingService),this._renderedContentHover.domNodeHasChildren?this._contentHoverWidget.show(this._renderedContentHover):this._renderedContentHover.dispose()}_hideHover(){this._contentHoverWidget.hide()}_getHoverContext(){return{hide:()=>{this.hide()},onContentsChanged:()=>{this._onContentsChanged.fire(),this._contentHoverWidget.onContentsChanged()},setMinimumDimensions:e=>{this._contentHoverWidget.setMinimumDimensions(e)}}}showsOrWillShow(e){if(this._contentHoverWidget.isResizing)return!0;const t=this._findHoverAnchorCandidates(e);if(!(t.length>0))return this._startShowingOrUpdateHover(null,0,0,!1,e);const i=t[0];return this._startShowingOrUpdateHover(i,0,0,!1,e)}_findHoverAnchorCandidates(e){const t=[];for(const s of this._participants){if(!s.suggestHoverAnchor)continue;const i=s.suggestHoverAnchor(e);i&&t.push(i)}const i=e.target;switch(i.type){case 6:t.push(new g.hx(0,i.range,e.event.posx,e.event.posy));break;case 7:{const s=this._editor.getOption(50).typicalHalfwidthCharacterWidth/2;if(!(!i.detail.isAfterLines&&"number"===typeof i.detail.horizontalDistanceToText&&i.detail.horizontalDistanceToText<s))break;t.push(new g.hx(0,i.range,e.event.posx,e.event.posy));break}}return t.sort(((e,t)=>t.priority-e.priority)),t}_onMouseLeave(e){const t=this._editor.getDomNode();(!t||!(0,l.U)(t,e.x,e.y))&&this.hide()}startShowingAtRange(e,t,i,s){this._startShowingOrUpdateHover(new g.hx(0,e,void 0,void 0),t,i,s,null)}async updateHoverVerbosityLevel(e,t,i){this._renderedContentHover?.updateHoverVerbosityLevel(e,t,i)}focusedHoverPartIndex(){return this._renderedContentHover?.focusedHoverPartIndex??-1}containsNode(e){return!!e&&this._contentHoverWidget.getDomNode().contains(e)}focus(){this._contentHoverWidget.focus()}scrollUp(){this._contentHoverWidget.scrollUp()}scrollDown(){this._contentHoverWidget.scrollDown()}scrollLeft(){this._contentHoverWidget.scrollLeft()}scrollRight(){this._contentHoverWidget.scrollRight()}pageUp(){this._contentHoverWidget.pageUp()}pageDown(){this._contentHoverWidget.pageDown()}goToTop(){this._contentHoverWidget.goToTop()}goToBottom(){this._contentHoverWidget.goToBottom()}hide(){this._computer.anchor=null,this._hoverOperation.cancel(),this._setCurrentResult(null)}getDomNode(){return this._contentHoverWidget.getDomNode()}get isColorPickerVisible(){return this._renderedContentHover?.isColorPickerVisible()??!1}get isVisibleFromKeyboard(){return this._contentHoverWidget.isVisibleFromKeyboard}get isVisible(){return this._contentHoverWidget.isVisible}get isFocused(){return this._contentHoverWidget.isFocused}get isResizing(){return this._contentHoverWidget.isResizing}get widget(){return this._contentHoverWidget}};G=V([z(1,r._Y),z(2,a.b)],G);i(82320);var j,K=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Y=function(e,t){return function(i,s){t(i,s,e)}};let q=class extends n.jG{static{j=this}static{this.ID="editor.contrib.contentHover"}constructor(e,t,i){super(),this._editor=e,this._instantiationService=t,this._keybindingService=i,this._onHoverContentsChanged=this._register(new y.vl),this.shouldKeepOpenOnEditorMouseMoveOrLeave=!1,this._listenersStore=new n.Cm,this._hoverState={mouseDown:!1,activatedByDecoratorClick:!1},this._reactToEditorMouseMoveRunner=this._register(new c.uC((()=>this._reactToEditorMouseMove(this._mouseMoveEvent)),0)),this._hookListeners(),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(60)&&(this._unhookListeners(),this._hookListeners())})))}static get(e){return e.getContribution(j.ID)}_hookListeners(){const e=this._editor.getOption(60);this._hoverSettings={enabled:e.enabled,sticky:e.sticky,hidingDelay:e.hidingDelay},e.enabled?(this._listenersStore.add(this._editor.onMouseDown((e=>this._onEditorMouseDown(e)))),this._listenersStore.add(this._editor.onMouseUp((()=>this._onEditorMouseUp()))),this._listenersStore.add(this._editor.onMouseMove((e=>this._onEditorMouseMove(e)))),this._listenersStore.add(this._editor.onKeyDown((e=>this._onKeyDown(e))))):(this._listenersStore.add(this._editor.onMouseMove((e=>this._onEditorMouseMove(e)))),this._listenersStore.add(this._editor.onKeyDown((e=>this._onKeyDown(e))))),this._listenersStore.add(this._editor.onMouseLeave((e=>this._onEditorMouseLeave(e)))),this._listenersStore.add(this._editor.onDidChangeModel((()=>{this._cancelScheduler(),this._hideWidgets()}))),this._listenersStore.add(this._editor.onDidChangeModelContent((()=>this._cancelScheduler()))),this._listenersStore.add(this._editor.onDidScrollChange((e=>this._onEditorScrollChanged(e))))}_unhookListeners(){this._listenersStore.clear()}_cancelScheduler(){this._mouseMoveEvent=void 0,this._reactToEditorMouseMoveRunner.cancel()}_onEditorScrollChanged(e){(e.scrollTopChanged||e.scrollLeftChanged)&&this._hideWidgets()}_onEditorMouseDown(e){this._hoverState.mouseDown=!0;this._shouldNotHideCurrentHoverWidget(e)||this._hideWidgets()}_shouldNotHideCurrentHoverWidget(e){return this._isMouseOnContentHoverWidget(e)||this._isContentWidgetResizing()}_isMouseOnContentHoverWidget(e){const t=this._contentWidget?.getDomNode();return!!t&&(0,l.U)(t,e.event.posx,e.event.posy)}_onEditorMouseUp(){this._hoverState.mouseDown=!1}_onEditorMouseLeave(e){if(this.shouldKeepOpenOnEditorMouseMoveOrLeave)return;this._cancelScheduler();this._shouldNotHideCurrentHoverWidget(e)||this._hideWidgets()}_shouldNotRecomputeCurrentHoverWidget(e){const t=this._hoverSettings.sticky;return((e,t)=>{const i=this._isMouseOnContentHoverWidget(e);return t&&i})(e,t)||(e=>{const t=this._isMouseOnContentHoverWidget(e),i=this._contentWidget?.isColorPickerVisible??!1;return t&&i})(e)||((e,t)=>(t&&this._contentWidget?.containsNode(e.event.browserEvent.view?.document.activeElement)&&!e.event.browserEvent.view?.getSelection()?.isCollapsed)??!1)(e,t)}_onEditorMouseMove(e){if(this.shouldKeepOpenOnEditorMouseMoveOrLeave)return;if(this._mouseMoveEvent=e,this._contentWidget?.isFocused||this._contentWidget?.isResizing)return;const t=this._hoverSettings.sticky;if(t&&this._contentWidget?.isVisibleFromKeyboard)return;if(this._shouldNotRecomputeCurrentHoverWidget(e))return void this._reactToEditorMouseMoveRunner.cancel();const i=this._hoverSettings.hidingDelay,s=this._contentWidget?.isVisible;s&&t&&i>0?this._reactToEditorMouseMoveRunner.isScheduled()||this._reactToEditorMouseMoveRunner.schedule(i):this._reactToEditorMouseMove(e)}_reactToEditorMouseMove(e){if(!e)return;const t=e.target,i=t.element?.classList.contains("colorpicker-color-decoration"),s=this._editor.getOption(149),n=this._hoverSettings.enabled,r=this._hoverState.activatedByDecoratorClick;if(i&&("click"===s&&!r||"hover"===s&&!n||"clickAndHover"===s&&!n&&!r)||!i&&!n&&!r)return void this._hideWidgets();this._tryShowHoverWidget(e)||this._hideWidgets()}_tryShowHoverWidget(e){return this._getOrCreateContentWidget().showsOrWillShow(e)}_onKeyDown(e){if(!this._editor.hasModel())return;const t=this._keybindingService.softDispatch(e,this._editor.getDomNode()),i=1===t.kind||2===t.kind&&(t.commandId===s.jA||t.commandId===s.jq||t.commandId===s.Zp)&&this._contentWidget?.isVisible;5===e.keyCode||6===e.keyCode||57===e.keyCode||4===e.keyCode||i||this._hideWidgets()}_hideWidgets(){this._hoverState.mouseDown&&this._contentWidget?.isColorPickerVisible||o.bo.dropDownVisible||(this._hoverState.activatedByDecoratorClick=!1,this._contentWidget?.hide())}_getOrCreateContentWidget(){return this._contentWidget||(this._contentWidget=this._instantiationService.createInstance(G,this._editor),this._listenersStore.add(this._contentWidget.onContentsChanged((()=>this._onHoverContentsChanged.fire())))),this._contentWidget}showContentHover(e,t,i,s,n=!1){this._hoverState.activatedByDecoratorClick=n,this._getOrCreateContentWidget().startShowingAtRange(e,t,i,s)}_isContentWidgetResizing(){return this._contentWidget?.widget.isResizing||!1}focusedHoverPartIndex(){return this._getOrCreateContentWidget().focusedHoverPartIndex()}updateHoverVerbosityLevel(e,t,i){this._getOrCreateContentWidget().updateHoverVerbosityLevel(e,t,i)}focus(){this._contentWidget?.focus()}scrollUp(){this._contentWidget?.scrollUp()}scrollDown(){this._contentWidget?.scrollDown()}scrollLeft(){this._contentWidget?.scrollLeft()}scrollRight(){this._contentWidget?.scrollRight()}pageUp(){this._contentWidget?.pageUp()}pageDown(){this._contentWidget?.pageDown()}goToTop(){this._contentWidget?.goToTop()}goToBottom(){this._contentWidget?.goToBottom()}get isColorPickerVisible(){return this._contentWidget?.isColorPickerVisible}get isHoverVisible(){return this._contentWidget?.isVisible}dispose(){super.dispose(),this._unhookListeners(),this._listenersStore.dispose(),this._contentWidget?.dispose()}};q=j=K([Y(1,r._Y),Y(2,a.b)],q)},77047:(e,t,i)=>{"use strict";var s=i(46359),n=i(71597),r=i(51861),o=i(80301),a=i(37882),c=i(73983),l=i(70125),h=i(64383),d=i(26690),u=i(6921),g=i(5662),p=i(74320);class m{constructor(){this.chunkCount=0,this.chunkOccurrences=new Map,this.documents=new Map}calculateScores(e,t){const i=this.computeEmbedding(e),s=new Map,n=[];for(const[r,o]of this.documents){if(t.isCancellationRequested)return[];for(const e of o.chunks){const t=this.computeSimilarityScore(e,i,s);t>0&&n.push({key:r,score:t})}}return n}static termFrequencies(e){return function(e){const t=new Map;for(const i of e)t.set(i,(t.get(i)??0)+1);return t}(m.splitTerms(e))}static*splitTerms(e){const t=e=>e.toLowerCase();for(const[i]of e.matchAll(/\b\p{Letter}[\p{Letter}\d]{2,}\b/gu)){yield t(i);const e=i.replace(/([a-z])([A-Z])/g,"$1 $2").split(/\s+/g);if(e.length>1)for(const i of e)i.length>2&&/\p{Letter}{3,}/gu.test(i)&&(yield t(i))}}updateDocuments(e){for(const{key:t}of e)this.deleteDocument(t);for(const t of e){const e=[];for(const i of t.textChunks){const t=m.termFrequencies(i);for(const e of t.keys())this.chunkOccurrences.set(e,(this.chunkOccurrences.get(e)??0)+1);e.push({text:i,tf:t})}this.chunkCount+=e.length,this.documents.set(t.key,{chunks:e})}return this}deleteDocument(e){const t=this.documents.get(e);if(t){this.documents.delete(e),this.chunkCount-=t.chunks.length;for(const e of t.chunks)for(const t of e.tf.keys()){const e=this.chunkOccurrences.get(t);if("number"===typeof e){const i=e-1;i<=0?this.chunkOccurrences.delete(t):this.chunkOccurrences.set(t,i)}}}}computeSimilarityScore(e,t,i){let s=0;for(const[n,r]of Object.entries(t)){const t=e.tf.get(n);if(!t)continue;let o=i.get(n);"number"!==typeof o&&(o=this.computeIdf(n),i.set(n,o));s+=t*o*r}return s}computeEmbedding(e){const t=m.termFrequencies(e);return this.computeTfidf(t)}computeIdf(e){const t=this.chunkOccurrences.get(e)??0;return t>0?Math.log((this.chunkCount+1)/t):0}computeTfidf(e){const t=Object.create(null);for(const[i,s]of e){const e=this.computeIdf(i);e>0&&(t[i]=s*e)}return t}}var f,_=i(78209),v=i(50091),C=i(84001),E=i(59599),b=i(63591),S=i(98031),y=i(18801),w=i(90766),R=i(18447),L=i(631);function T(e){const t=e;return Array.isArray(t.items)}function x(e){const t=e;return!!t.picks&&t.additionalPicks instanceof Promise}!function(e){e[e.NO_ACTION=0]="NO_ACTION",e[e.CLOSE_PICKER=1]="CLOSE_PICKER",e[e.REFRESH_PICKER=2]="REFRESH_PICKER",e[e.REMOVE_ITEM=3]="REMOVE_ITEM"}(f||(f={}));class k extends g.jG{constructor(e,t){super(),this.prefix=e,this.options=t}provide(e,t,i){const s=new g.Cm;let n;e.canAcceptInBackground=!!this.options?.canAcceptInBackground,e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;const r=s.add(new g.HE),o=async()=>{const s=r.value=new g.Cm;n?.dispose(!0),e.busy=!1,n=new R.Qi(t);const o=n.token;let a=e.value.substring(this.prefix.length);this.options?.shouldSkipTrimPickFilter||(a=a.trim());const c=this._getPicks(a,s,o,i),l=(t,i)=>{let s,n;if(T(t)?(s=t.items,n=t.active):s=t,0===s.length){if(i)return!1;(a.length>0||e.hideInput)&&this.options?.noResultsPick&&(s=(0,L.Tn)(this.options.noResultsPick)?[this.options.noResultsPick(a)]:[this.options.noResultsPick])}return e.items=s,n&&(e.activeItems=[n]),!0},h=async t=>{let i=!1,s=!1;await Promise.all([(async()=>{"number"===typeof t.mergeDelay&&(await(0,w.wR)(t.mergeDelay),o.isCancellationRequested)||s||(i=l(t.picks,!0))})(),(async()=>{e.busy=!0;try{const s=await t.additionalPicks;if(o.isCancellationRequested)return;let n,r,a,c;if(T(t.picks)?(n=t.picks.items,r=t.picks.active):n=t.picks,T(s)?(a=s.items,c=s.active):a=s,a.length>0||!i){let t;if(!r&&!c){const i=e.activeItems[0];i&&-1!==n.indexOf(i)&&(t=i)}l({items:[...n,...a],active:r||c||t})}}finally{o.isCancellationRequested||(e.busy=!1),s=!0}})()])};if(null===c);else if(x(c))await h(c);else if(c instanceof Promise){e.busy=!0;try{const e=await c;if(o.isCancellationRequested)return;x(e)?await h(e):l(e)}finally{o.isCancellationRequested||(e.busy=!1)}}else l(c)};s.add(e.onDidChangeValue((()=>o()))),o(),s.add(e.onDidAccept((t=>{if(i?.handleAccept)return t.inBackground||e.hide(),void i.handleAccept?.(e.activeItems[0]);const[s]=e.selectedItems;"function"===typeof s?.accept&&(t.inBackground||e.hide(),s.accept(e.keyMods,t))})));const a=async(i,s)=>{if("function"!==typeof s.trigger)return;const n=s.buttons?.indexOf(i)??-1;if(n>=0){const i=s.trigger(n,e.keyMods),r="number"===typeof i?i:await i;if(t.isCancellationRequested)return;switch(r){case f.NO_ACTION:break;case f.CLOSE_PICKER:e.hide();break;case f.REFRESH_PICKER:o();break;case f.REMOVE_ITEM:{const t=e.items.indexOf(s);if(-1!==t){const i=e.items.slice(),s=i.splice(t,1),n=e.activeItems.filter((e=>e!==s[0])),r=e.keepScrollPosition;e.keepScrollPosition=!0,e.items=i,n&&(e.activeItems=n),e.keepScrollPosition=r}break}}}};return s.add(e.onDidTriggerItemButton((({button:e,item:t})=>a(e,t)))),s.add(e.onDidTriggerSeparatorButton((({button:e,separator:t})=>a(e,t)))),s}}var A,N,I=i(9711),O=i(90651),D=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},M=function(e,t){return function(i,s){t(i,s,e)}};let P=class extends k{static{A=this}static{this.PREFIX=">"}static{this.TFIDF_THRESHOLD=.5}static{this.TFIDF_MAX_RESULTS=5}static{this.WORD_FILTER=(0,d.or)(d.WP,d.J1,d.Tt)}constructor(e,t,i,s,n,r){super(A.PREFIX,e),this.instantiationService=t,this.keybindingService=i,this.commandService=s,this.telemetryService=n,this.dialogService=r,this.commandsHistory=this._register(this.instantiationService.createInstance(F)),this.options=e}async _getPicks(e,t,i,s){const n=await this.getCommandPicks(i);if(i.isCancellationRequested)return[];const r=(0,u.P)((()=>{const t=new m;t.updateDocuments(n.map((e=>({key:e.commandId,textChunks:[this.getTfIdfChunk(e)]}))));return function(e){const t=e.slice(0);t.sort(((e,t)=>t.score-e.score));const i=t[0]?.score??0;if(i>0)for(const s of t)s.score/=i;return t}(t.calculateScores(e,i)).filter((e=>e.score>A.TFIDF_THRESHOLD)).slice(0,A.TFIDF_MAX_RESULTS)})),o=[];for(const u of n){const t=A.WORD_FILTER(e,u.label)??void 0,s=u.commandAlias?A.WORD_FILTER(e,u.commandAlias)??void 0:void 0;if(t||s)u.highlights={label:t,detail:this.options.showAlias?s:void 0},o.push(u);else if(e===u.commandId)o.push(u);else if(e.length>=3){const e=r();if(i.isCancellationRequested)return[];const t=e.find((e=>e.key===u.commandId));t&&(u.tfIdfScore=t.score,o.push(u))}}const a=new Map;for(const u of o){const e=a.get(u.label);e?(u.description=u.commandId,e.description=e.commandId):a.set(u.label,u)}o.sort(((e,t)=>{if(e.tfIdfScore&&t.tfIdfScore)return e.tfIdfScore===t.tfIdfScore?e.label.localeCompare(t.label):t.tfIdfScore-e.tfIdfScore;if(e.tfIdfScore)return 1;if(t.tfIdfScore)return-1;const i=this.commandsHistory.peek(e.commandId),s=this.commandsHistory.peek(t.commandId);if(i&&s)return i>s?-1:1;if(i)return-1;if(s)return 1;if(this.options.suggestedCommandIds){const i=this.options.suggestedCommandIds.has(e.commandId),s=this.options.suggestedCommandIds.has(t.commandId);if(i&&s)return 0;if(i)return-1;if(s)return 1}return e.label.localeCompare(t.label)}));const c=[];let l=!1,h=!0,d=!!this.options.suggestedCommandIds;for(let u=0;u<o.length;u++){const e=o[u];0===u&&this.commandsHistory.peek(e.commandId)&&(c.push({type:"separator",label:(0,_.kg)("recentlyUsed","recently used")}),l=!0),h&&void 0!==e.tfIdfScore&&(c.push({type:"separator",label:(0,_.kg)("suggested","similar commands")}),h=!1),d&&void 0===e.tfIdfScore&&!this.commandsHistory.peek(e.commandId)&&this.options.suggestedCommandIds?.has(e.commandId)&&(c.push({type:"separator",label:(0,_.kg)("commonlyUsed","commonly used")}),l=!0,d=!1),!l||void 0!==e.tfIdfScore||this.commandsHistory.peek(e.commandId)||this.options.suggestedCommandIds?.has(e.commandId)||(c.push({type:"separator",label:(0,_.kg)("morecCommands","other commands")}),l=!1),c.push(this.toCommandPick(e,s))}return this.hasAdditionalCommandPicks(e,i)?{picks:c,additionalPicks:(async()=>{const t=await this.getAdditionalCommandPicks(n,o,e,i);if(i.isCancellationRequested)return[];const r=t.map((e=>this.toCommandPick(e,s)));return h&&"separator"!==r[0]?.type&&r.unshift({type:"separator",label:(0,_.kg)("suggested","similar commands")}),r})()}:c}toCommandPick(e,t){if("separator"===e.type)return e;const i=this.keybindingService.lookupKeybinding(e.commandId),s=i?(0,_.kg)("commandPickAriaLabelWithKeybinding","{0}, {1}",e.label,i.getAriaLabel()):e.label;return{...e,ariaLabel:s,detail:this.options.showAlias&&e.commandAlias!==e.label?e.commandAlias:void 0,keybinding:i,accept:async()=>{this.commandsHistory.push(e.commandId),this.telemetryService.publicLog2("workbenchActionExecuted",{id:e.commandId,from:t?.from??"quick open"});try{e.args?.length?await this.commandService.executeCommand(e.commandId,...e.args):await this.commandService.executeCommand(e.commandId)}catch(i){(0,h.MB)(i)||this.dialogService.error((0,_.kg)("canNotRun","Command '{0}' resulted in an error",e.label),(0,l.r)(i))}}}}getTfIdfChunk({label:e,commandAlias:t,commandDescription:i}){let s=e;return t&&t!==e&&(s+=` - ${t}`),i&&i.value!==e&&(s+=` - ${i.value===i.original?i.value:`${i.value} (${i.original})`}`),s}};P=A=D([M(1,b._Y),M(2,S.b),M(3,v.d),M(4,O.k),M(5,E.X)],P);let F=class extends g.jG{static{N=this}static{this.DEFAULT_COMMANDS_HISTORY_LENGTH=50}static{this.PREF_KEY_CACHE="commandPalette.mru.cache"}static{this.PREF_KEY_COUNTER="commandPalette.mru.counter"}static{this.counter=1}static{this.hasChanges=!1}constructor(e,t,i){super(),this.storageService=e,this.configurationService=t,this.logService=i,this.configuredCommandsHistoryLength=0,this.updateConfiguration(),this.load(),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration((e=>this.updateConfiguration(e)))),this._register(this.storageService.onWillSaveState((e=>{e.reason===I.LP.SHUTDOWN&&this.saveState()})))}updateConfiguration(e){e&&!e.affectsConfiguration("workbench.commandPalette.history")||(this.configuredCommandsHistoryLength=N.getConfiguredCommandHistoryLength(this.configurationService),N.cache&&N.cache.limit!==this.configuredCommandsHistoryLength&&(N.cache.limit=this.configuredCommandsHistoryLength,N.hasChanges=!0))}load(){const e=this.storageService.get(N.PREF_KEY_CACHE,0);let t;if(e)try{t=JSON.parse(e)}catch(s){this.logService.error(`[CommandsHistory] invalid data: ${s}`)}const i=N.cache=new p.qK(this.configuredCommandsHistoryLength,1);if(t){let e;e=t.usesLRU?t.entries:t.entries.sort(((e,t)=>e.value-t.value)),e.forEach((e=>i.set(e.key,e.value)))}N.counter=this.storageService.getNumber(N.PREF_KEY_COUNTER,0,N.counter)}push(e){N.cache&&(N.cache.set(e,N.counter++),N.hasChanges=!0)}peek(e){return N.cache?.peek(e)}saveState(){if(!N.cache)return;if(!N.hasChanges)return;const e={usesLRU:!0,entries:[]};N.cache.forEach(((t,i)=>e.entries.push({key:i,value:t}))),this.storageService.store(N.PREF_KEY_CACHE,JSON.stringify(e),0,0),this.storageService.store(N.PREF_KEY_COUNTER,N.counter,0,0),N.hasChanges=!1}static getConfiguredCommandHistoryLength(e){const t=e.getValue(),i=t.workbench?.commandPalette?.history;return"number"===typeof i?i:N.DEFAULT_COMMANDS_HISTORY_LENGTH}};F=N=D([M(0,I.CS),M(1,C.pG),M(2,y.rr)],F);class U extends P{constructor(e,t,i,s,n,r){super(e,t,i,s,n,r)}getCodeEditorCommandPicks(){const e=this.activeTextEditorControl;if(!e)return[];const t=[];for(const i of e.getSupportedActions()){let e;i.metadata?.description&&(e=(0,c.f)(i.metadata.description)?i.metadata.description:{original:i.metadata.description,value:i.metadata.description}),t.push({commandId:i.id,commandAlias:i.alias,commandDescription:e,label:(0,a.pS)(i.label)||i.id})}return t}}var H=i(31450),B=i(60002),W=i(51467),V=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},z=function(e,t){return function(i,s){t(i,s,e)}};let G=class extends U{get activeTextEditorControl(){return this.codeEditorService.getFocusedCodeEditor()??void 0}constructor(e,t,i,s,n,r){super({showAlias:!1},e,i,s,n,r),this.codeEditorService=t}async getCommandPicks(){return this.getCodeEditorCommandPicks()}hasAdditionalCommandPicks(){return!1}async getAdditionalCommandPicks(){return[]}};G=V([z(0,b._Y),z(1,o.T),z(2,S.b),z(3,v.d),z(4,O.k),z(5,E.X)],G);class j extends H.ks{static{this.ID="editor.action.quickCommand"}constructor(){super({id:j.ID,label:r.gf.quickCommandActionLabel,alias:"Command Palette",precondition:void 0,kbOpts:{kbExpr:B.R.focus,primary:59,weight:100},contextMenuOpts:{group:"z_commands",order:1}})}run(e){e.get(W.GK).quickAccess.show(G.PREFIX)}}(0,H.Fl)(j),s.O.as(n.Fd.Quickaccess).registerQuickAccessProvider({ctor:G,prefix:G.PREFIX,helpEntries:[{description:r.gf.quickCommandHelp,commandId:j.ID}]})},77163:(e,t,i)=>{"use strict";i.d(t,{M:()=>n});var s=i(41234);const n=new class{constructor(){this._tabFocus=!1,this._onDidChangeTabFocus=new s.vl,this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}getTabFocusMode(){return this._tabFocus}setTabFocusMode(e){this._tabFocus=e,this._onDidChangeTabFocus.fire(this._tabFocus)}}},77668:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>i.e(9778).then(i.bind(i,49778))})},77888:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>i.e(7206).then(i.bind(i,57206))})},78049:(e,t,i)=>{"use strict";function s(e,t){let i=0,s=0;const n=e.length;for(;s<n;){const n=e.charCodeAt(s);if(32===n)i++;else{if(9!==n)break;i=i-i%t+t}s++}return s===n?-1:i}i.d(t,{G:()=>s})},78209:(e,t,i)=>{"use strict";function s(){return globalThis._VSCODE_NLS_MESSAGES}function n(){return globalThis._VSCODE_NLS_LANGUAGE}i.d(t,{i8:()=>n,Ec:()=>s,kg:()=>a,aS:()=>l});const r="pseudo"===n()||"undefined"!==typeof document&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function o(e,t){let i;return i=0===t.length?e:e.replace(/\{(\d+)\}/g,((e,i)=>{const s=i[0],n=t[s];let r=e;return"string"===typeof n?r=n:"number"!==typeof n&&"boolean"!==typeof n&&void 0!==n&&null!==n||(r=String(n)),r})),r&&(i="\uff3b"+i.replace(/[aouei]/g,"$&$&")+"\uff3d"),i}function a(e,t,...i){return o("number"===typeof e?c(e,t):t,i)}function c(e,t){const i=s()?.[e];if("string"!==typeof i){if("string"===typeof t)return t;throw new Error(`!!! NLS MISSING: ${e} !!!`)}return i}function l(e,t,...i){let s;s="number"===typeof e?c(e,t):t;const n=o(s,i);return{value:n,original:t===s?n:o(t,i)}}},78244:(e,t,i)=>{"use strict";i.d(t,{PA:()=>r,Vl:()=>n,Wt:()=>s});const s="editor.action.inlineSuggest.commit",n="editor.action.inlineSuggest.showPrevious",r="editor.action.inlineSuggest.showNext"},78381:(e,t,i)=>{"use strict";i.d(t,{W:()=>n});const s=globalThis.performance&&"function"===typeof globalThis.performance.now;class n{static create(e){return new n(e)}constructor(e){this._now=s&&!1===e?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}}},78748:(e,t,i)=>{"use strict";i.d(t,{F:()=>r});var s=i(41234),n=i(46359);const r={JSONContribution:"base.contributions.json"};const o=new class{constructor(){this._onDidChangeSchema=new s.vl,this.schemasById={}}registerSchema(e,t){var i;this.schemasById[(i=e,i.length>0&&"#"===i.charAt(i.length-1)?i.substring(0,i.length-1):i)]=t,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}};n.O.add(r.JSONContribution,o)},79027:(e,t,i)=>{"use strict";i.d(t,{D:()=>n});var s=i(41234);const n=new class{constructor(){this._zoomLevel=0,this._onDidChangeZoomLevel=new s.vl,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}getZoomLevel(){return this._zoomLevel}setZoomLevel(e){e=Math.min(Math.max(-5,e),20),this._zoomLevel!==e&&(this._zoomLevel=e,this._onDidChangeZoomLevel.fire(this._zoomLevel))}}},79064:(e,t,i)=>{var s=i(59368),n=i(63819);e.exports=function e(t,i,r,o,a){var c=-1,l=t.length;for(r||(r=n),a||(a=[]);++c<l;){var h=t[c];i>0&&r(h)?i>1?e(h,i-1,r,o,a):s(a,h):o||(a[a.length]=h)}return a}},79326:(e,t,i)=>{"use strict";i.d(t,{No:()=>u,TH:()=>a,Zn:()=>l,_1:()=>h,kb:()=>c});var s=i(74027),n=i(98067),r=i(91508);function o(e){return 47===e||92===e}function a(e){return e.replace(/[\\/]/g,s.SA.sep)}function c(e){return-1===e.indexOf("/")&&(e=a(e)),/^[a-zA-Z]:(\/|$)/.test(e)&&(e="/"+e),e}function l(e,t=s.SA.sep){if(!e)return"";const i=e.length,n=e.charCodeAt(0);if(o(n)){if(o(e.charCodeAt(1))&&!o(e.charCodeAt(2))){let s=3;const n=s;for(;s<i&&!o(e.charCodeAt(s));s++);if(n!==s&&!o(e.charCodeAt(s+1)))for(s+=1;s<i;s++)if(o(e.charCodeAt(s)))return e.slice(0,s+1).replace(/[\\/]/g,t)}return t}if(d(n)&&58===e.charCodeAt(1))return o(e.charCodeAt(2))?e.slice(0,2)+t:e.slice(0,2);let r=e.indexOf("://");if(-1!==r)for(r+=3;r<i;r++)if(o(e.charCodeAt(r)))return e.slice(0,r+1);return""}function h(e,t,i,n=s.Vn){if(e===t)return!0;if(!e||!t)return!1;if(t.length>e.length)return!1;if(i){if(!(0,r.ns)(e,t))return!1;if(t.length===e.length)return!0;let i=t.length;return t.charAt(t.length-1)===n&&i--,e.charAt(i)===n}return t.charAt(t.length-1)!==n&&(t+=n),0===e.indexOf(t)}function d(e){return e>=65&&e<=90||e>=97&&e<=122}function u(e,t=n.uF){return!!t&&(d(e.charCodeAt(0))&&58===e.charCodeAt(1))}},79400:(e,t,i)=>{"use strict";i.d(t,{I:()=>_,r:()=>d});var s=i(74027),n=i(98067);const r=/^\w[\w\d+.-]*$/,o=/^\//,a=/^\/\//;const c="",l="/",h=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class d{static isUri(e){return e instanceof d||!!e&&("string"===typeof e.authority&&"string"===typeof e.fragment&&"string"===typeof e.path&&"string"===typeof e.query&&"string"===typeof e.scheme&&"string"===typeof e.fsPath&&"function"===typeof e.with&&"function"===typeof e.toString)}constructor(e,t,i,s,n,h=!1){"object"===typeof e?(this.scheme=e.scheme||c,this.authority=e.authority||c,this.path=e.path||c,this.query=e.query||c,this.fragment=e.fragment||c):(this.scheme=function(e,t){return e||t?e:"file"}(e,h),this.authority=t||c,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==l&&(t=l+t):t=l}return t}(this.scheme,i||c),this.query=s||c,this.fragment=n||c,function(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!r.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!o.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(a.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,h))}get fsPath(){return _(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:i,path:s,query:n,fragment:r}=e;return void 0===t?t=this.scheme:null===t&&(t=c),void 0===i?i=this.authority:null===i&&(i=c),void 0===s?s=this.path:null===s&&(s=c),void 0===n?n=this.query:null===n&&(n=c),void 0===r?r=this.fragment:null===r&&(r=c),t===this.scheme&&i===this.authority&&s===this.path&&n===this.query&&r===this.fragment?this:new g(t,i,s,n,r)}static parse(e,t=!1){const i=h.exec(e);return i?new g(i[2]||c,b(i[4]||c),b(i[5]||c),b(i[7]||c),b(i[9]||c),t):new g(c,c,c,c,c)}static file(e){let t=c;if(n.uF&&(e=e.replace(/\\/g,l)),e[0]===l&&e[1]===l){const i=e.indexOf(l,2);-1===i?(t=e.substring(2),e=l):(t=e.substring(2,i),e=e.substring(i)||l)}return new g("file",t,e,c,c)}static from(e,t){return new g(e.scheme,e.authority,e.path,e.query,e.fragment,t)}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let i;return i=n.uF&&"file"===e.scheme?d.file(s.IN.join(_(e,!0),...t)).path:s.SA.join(e.path,...t),e.with({path:i})}toString(e=!1){return v(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof d)return e;{const t=new g(e);return t._formatted=e.external??null,t._fsPath=e._sep===u?e.fsPath??null:null,t}}return e}}const u=n.uF?1:void 0;class g extends d{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=_(this,!1)),this._fsPath}toString(e=!1){return e?v(this,!0):(this._formatted||(this._formatted=v(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=u),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}}const p={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 m(e,t,i){let s,n=-1;for(let r=0;r<e.length;r++){const o=e.charCodeAt(r);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o||i&&91===o||i&&93===o||i&&58===o)-1!==n&&(s+=encodeURIComponent(e.substring(n,r)),n=-1),void 0!==s&&(s+=e.charAt(r));else{void 0===s&&(s=e.substr(0,r));const t=p[o];void 0!==t?(-1!==n&&(s+=encodeURIComponent(e.substring(n,r)),n=-1),s+=t):-1===n&&(n=r)}}return-1!==n&&(s+=encodeURIComponent(e.substring(n))),void 0!==s?s:e}function f(e){let t;for(let i=0;i<e.length;i++){const s=e.charCodeAt(i);35===s||63===s?(void 0===t&&(t=e.substr(0,i)),t+=p[s]):void 0!==t&&(t+=e[i])}return void 0!==t?t:e}function _(e,t){let i;return i=e.authority&&e.path.length>1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,n.uF&&(i=i.replace(/\//g,"\\")),i}function v(e,t){const i=t?f:m;let s="",{scheme:n,authority:r,path:o,query:a,fragment:c}=e;if(n&&(s+=n,s+=":"),(r||"file"===n)&&(s+=l,s+=l),r){let e=r.indexOf("@");if(-1!==e){const t=r.substr(0,e);r=r.substr(e+1),e=t.lastIndexOf(":"),-1===e?s+=i(t,!1,!1):(s+=i(t.substr(0,e),!1,!1),s+=":",s+=i(t.substr(e+1),!1,!0)),s+="@"}r=r.toLowerCase(),e=r.lastIndexOf(":"),-1===e?s+=i(r,!1,!0):(s+=i(r.substr(0,e),!1,!0),s+=r.substr(e))}if(o){if(o.length>=3&&47===o.charCodeAt(0)&&58===o.charCodeAt(2)){const e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&58===o.charCodeAt(1)){const e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}s+=i(o,!0,!1)}return a&&(s+="?",s+=i(a,!1,!1)),c&&(s+="#",s+=t?c:m(c,!1,!1)),s}function C(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+C(e.substr(3)):e}}const E=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function b(e){return e.match(E)?e.replace(E,(e=>C(e))):e}},79614:(e,t,i)=>{"use strict";i.d(t,{$L:()=>p,y4:()=>m,yc:()=>u});var s=i(64383),n=i(41234),r=i(96032),o=i(5662),a=i(74320),c=i(89403),l=i(91508),h=i(36677),d=i(78209);class u{constructor(e,t,i,s){this.isProviderFirst=e,this.parent=t,this.link=i,this._rangeCallback=s,this.id=r.r.nextId()}get uri(){return this.link.uri}get range(){return this._range??this.link.targetSelectionRange??this.link.range}set range(e){this._range=e,this._rangeCallback(this)}get ariaMessage(){const e=this.parent.getPreview(this)?.preview(this.range);return e?(0,d.kg)({key:"aria.oneReference.preview",comment:["Placeholders are: 0: filename, 1:line number, 2: column number, 3: preview snippet of source code"]},"{0} in {1} on line {2} at column {3}",e.value,(0,c.P8)(this.uri),this.range.startLineNumber,this.range.startColumn):(0,d.kg)("aria.oneReference","in {0} on line {1} at column {2}",(0,c.P8)(this.uri),this.range.startLineNumber,this.range.startColumn)}}class g{constructor(e){this._modelReference=e}dispose(){this._modelReference.dispose()}preview(e,t=8){const i=this._modelReference.object.textEditorModel;if(!i)return;const{startLineNumber:s,startColumn:n,endLineNumber:r,endColumn:o}=e,a=i.getWordUntilPosition({lineNumber:s,column:n-t}),c=new h.Q(s,a.startColumn,s,n),l=new h.Q(r,o,r,1073741824),d=i.getValueInRange(c).replace(/^\s+/,""),u=i.getValueInRange(e);return{value:d+u+i.getValueInRange(l).replace(/\s+$/,""),highlight:{start:d.length,end:d.length+u.length}}}}class p{constructor(e,t){this.parent=e,this.uri=t,this.children=[],this._previews=new a.fT}dispose(){(0,o.AS)(this._previews.values()),this._previews.clear()}getPreview(e){return this._previews.get(e.uri)}get ariaMessage(){const e=this.children.length;return 1===e?(0,d.kg)("aria.fileReferences.1","1 symbol in {0}, full path {1}",(0,c.P8)(this.uri),this.uri.fsPath):(0,d.kg)("aria.fileReferences.N","{0} symbols in {1}, full path {2}",e,(0,c.P8)(this.uri),this.uri.fsPath)}async resolve(e){if(0!==this._previews.size)return this;for(const i of this.children)if(!this._previews.has(i.uri))try{const t=await e.createModelReference(i.uri);this._previews.set(i.uri,new g(t))}catch(t){(0,s.dz)(t)}return this}}class m{constructor(e,t){this.groups=[],this.references=[],this._onDidChangeReferenceRange=new n.vl,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=e,this._title=t;const[i]=e;let s;e.sort(m._compareReferences);for(const n of e)if(s&&c.er.isEqual(s.uri,n.uri,!0)||(s=new p(this,n.uri),this.groups.push(s)),0===s.children.length||0!==m._compareReferences(n,s.children[s.children.length-1])){const e=new u(i===n,s,n,(e=>this._onDidChangeReferenceRange.fire(e)));this.references.push(e),s.children.push(e)}}dispose(){(0,o.AS)(this.groups),this._onDidChangeReferenceRange.dispose(),this.groups.length=0}clone(){return new m(this._links,this._title)}get title(){return this._title}get isEmpty(){return 0===this.groups.length}get ariaMessage(){return this.isEmpty?(0,d.kg)("aria.result.0","No results found"):1===this.references.length?(0,d.kg)("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):1===this.groups.length?(0,d.kg)("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):(0,d.kg)("aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length)}nextOrPreviousReference(e,t){const{parent:i}=e;let s=i.children.indexOf(e);const n=i.children.length,r=i.parent.groups.length;return 1===r||t&&s+1<n||!t&&s>0?(s=t?(s+1)%n:(s+n-1)%n,i.children[s]):(s=i.parent.groups.indexOf(i),t?(s=(s+1)%r,i.parent.groups[s].children[0]):(s=(s+r-1)%r,i.parent.groups[s].children[i.parent.groups[s].children.length-1]))}nearestReference(e,t){const i=this.references.map(((i,s)=>({idx:s,prefixLen:l.Qp(i.uri.toString(),e.toString()),offsetDist:100*Math.abs(i.range.startLineNumber-t.lineNumber)+Math.abs(i.range.startColumn-t.column)}))).sort(((e,t)=>e.prefixLen>t.prefixLen?-1:e.prefixLen<t.prefixLen?1:e.offsetDist<t.offsetDist?-1:e.offsetDist>t.offsetDist?1:0))[0];if(i)return this.references[i.idx]}referenceAt(e,t){for(const i of this.references)if(i.uri.toString()===e.toString()&&h.Q.containsPosition(i.range,t))return i}firstReference(){for(const e of this.references)if(e.isProviderFirst)return e;return this.references[0]}static _compareReferences(e,t){return c.er.compare(e.uri,t.uri)||h.Q.compareRangesUsingStarts(e.range,t.range)}}},79907:(e,t,i)=>{"use strict";var s=i(78209),n=i(11007),r=i(90766),o=i(18447),a=i(64383),c=i(5662),l=i(34326),h=i(31450),d=i(80301),u=i(36677),g=i(60002),p=i(16223),m=i(56942),f=i(13864),_=i(32848),v=i(36456),C=i(74320),E=i(54459),b=i(89403),S=i(26486),y=i(62083),w=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},R=function(e,t){return function(i,s){t(i,s,e)}};class L{constructor(){this.selector={language:"*"}}provideDocumentHighlights(e,t,i){const s=[],n=e.getWordAtPosition({lineNumber:t.lineNumber,column:t.column});if(!n)return Promise.resolve(s);if(e.isDisposed())return;return e.findMatches(n.word,!0,!1,!0,S.J3,!1).map((e=>({range:e.range,kind:y.Kb.Text})))}provideMultiDocumentHighlights(e,t,i,s){const n=new C.fT,r=e.getWordAtPosition({lineNumber:t.lineNumber,column:t.column});if(!r)return Promise.resolve(n);for(const o of[e,...i]){if(o.isDisposed())continue;const e=o.findMatches(r.word,!0,!1,!0,S.J3,!1).map((e=>({range:e.range,kind:y.Kb.Text})));e&&n.set(o.uri,e)}return n}}let T=class extends c.jG{constructor(e){super(),this._register(e.documentHighlightProvider.register("*",new L)),this._register(e.multiDocumentHighlightProvider.register("*",new L))}};T=w([R(0,m.ILanguageFeaturesService)],T);var x,k,A=i(72466),N=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},I=function(e,t){return function(i,s){t(i,s,e)}};const O=new _.N1("hasWordHighlights",!1);function D(e,t,i,s){const n=e.ordered(t);return(0,r.$1)(n.map((e=>()=>Promise.resolve(e.provideDocumentHighlights(t,i,s)).then(void 0,a.M_))),(e=>void 0!==e&&null!==e)).then((e=>{if(e){const i=new C.fT;return i.set(t.uri,e),i}return new C.fT}))}class M{constructor(e,t,i){this._model=e,this._selection=t,this._wordSeparators=i,this._wordRange=this._getCurrentWordRange(e,t),this._result=null}get result(){return this._result||(this._result=(0,r.SS)((e=>this._compute(this._model,this._selection,this._wordSeparators,e)))),this._result}_getCurrentWordRange(e,t){const i=e.getWordAtPosition(t.getPosition());return i?new u.Q(t.startLineNumber,i.startColumn,t.startLineNumber,i.endColumn):null}isValid(e,t,i){const s=t.startLineNumber,n=t.startColumn,r=t.endColumn,o=this._getCurrentWordRange(e,t);let a=Boolean(this._wordRange&&this._wordRange.equalsRange(o));for(let c=0,l=i.length;!a&&c<l;c++){const e=i.getRange(c);e&&e.startLineNumber===s&&e.startColumn<=n&&e.endColumn>=r&&(a=!0)}return a}cancel(){this.result.cancel()}}class P extends M{constructor(e,t,i,s){super(e,t,i),this._providers=s}_compute(e,t,i,s){return D(this._providers,e,t.getPosition(),s).then((e=>e||new C.fT))}}class F extends M{constructor(e,t,i,s,n){super(e,t,i),this._providers=s,this._otherModels=n}_compute(e,t,i,s){return function(e,t,i,s,n,o){const c=e.ordered(t);return(0,r.$1)(c.map((e=>()=>{const s=o.filter((e=>(0,p.vd)(e))).filter((t=>(0,E.f)(e.selector,t.uri,t.getLanguageId(),!0,void 0,void 0)>0));return Promise.resolve(e.provideMultiDocumentHighlights(t,i,s,n)).then(void 0,a.M_)})),(e=>void 0!==e&&null!==e))}(this._providers,e,t.getPosition(),0,s,this._otherModels).then((e=>e||new C.fT))}}(0,h.ke)("_executeDocumentHighlights",(async(e,t,i)=>{const s=e.get(m.ILanguageFeaturesService),n=await D(s.documentHighlightProvider,t,i,o.XO.None);return n?.get(t.uri)}));let U=class{static{x=this}static{this.storedDecorationIDs=new C.fT}static{this.query=null}constructor(e,t,i,s,n){this.toUnhook=new c.Cm,this.workerRequestTokenId=0,this.workerRequestCompleted=!1,this.workerRequestValue=new C.fT,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,this.runDelayer=this.toUnhook.add(new r.ve(50)),this.editor=e,this.providers=t,this.multiDocumentProviders=i,this.codeEditorService=n,this._hasWordHighlights=O.bindTo(s),this._ignorePositionChangeEvent=!1,this.occurrencesHighlight=this.editor.getOption(81),this.model=this.editor.getModel(),this.toUnhook.add(e.onDidChangeCursorPosition((e=>{this._ignorePositionChangeEvent||"off"!==this.occurrencesHighlight&&this.runDelayer.trigger((()=>{this._onPositionChanged(e)}))}))),this.toUnhook.add(e.onDidFocusEditorText((e=>{"off"!==this.occurrencesHighlight&&(this.workerRequest||this.runDelayer.trigger((()=>{this._run()})))}))),this.toUnhook.add(e.onDidChangeModelContent((e=>{(0,v.v$)(this.model.uri,"output")||this._stopAll()}))),this.toUnhook.add(e.onDidChangeModel((e=>{!e.newModelUrl&&e.oldModelUrl?this._stopSingular():x.query&&this._run()}))),this.toUnhook.add(e.onDidChangeConfiguration((e=>{const t=this.editor.getOption(81);if(this.occurrencesHighlight!==t)switch(this.occurrencesHighlight=t,t){case"off":this._stopAll();break;case"singleFile":this._stopAll(x.query?.modelInfo?.model);break;case"multiFile":x.query&&this._run(!0);break;default:console.warn("Unknown occurrencesHighlight setting value:",t)}}))),this.decorations=this.editor.createDecorationsCollection(),this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,x.query&&this._run()}hasDecorations(){return this.decorations.length>0}restore(){"off"!==this.occurrencesHighlight&&(this.runDelayer.cancel(),this._run())}_getSortedHighlights(){return this.decorations.getRanges().sort(u.Q.compareRangesUsingStarts)}moveNext(){const e=this._getSortedHighlights(),t=e.findIndex((e=>e.containsPosition(this.editor.getPosition()))),i=(t+1)%e.length,s=e[i];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(s.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(s);const t=this._getWord();if(t){const r=this.editor.getModel().getLineContent(s.startLineNumber);(0,n.xE)(`${r}, ${i+1} of ${e.length} for '${t.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}moveBack(){const e=this._getSortedHighlights(),t=e.findIndex((e=>e.containsPosition(this.editor.getPosition()))),i=(t-1+e.length)%e.length,s=e[i];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(s.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(s);const t=this._getWord();if(t){const r=this.editor.getModel().getLineContent(s.startLineNumber);(0,n.xE)(`${r}, ${i+1} of ${e.length} for '${t.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}_removeSingleDecorations(){if(!this.editor.hasModel())return;const e=x.storedDecorationIDs.get(this.editor.getModel().uri);e&&(this.editor.removeDecorations(e),x.storedDecorationIDs.delete(this.editor.getModel().uri),this.decorations.length>0&&(this.decorations.clear(),this._hasWordHighlights.set(!1)))}_removeAllDecorations(e){const t=this.codeEditorService.listCodeEditors(),i=[];for(const s of t){if(!s.hasModel()||(0,b.n4)(s.getModel().uri,e?.uri))continue;const t=x.storedDecorationIDs.get(s.getModel().uri);if(!t)continue;s.removeDecorations(t),i.push(s.getModel().uri);const n=H.get(s);n?.wordHighlighter&&(n.wordHighlighter.decorations.length>0&&(n.wordHighlighter.decorations.clear(),n.wordHighlighter.workerRequest=null,n.wordHighlighter._hasWordHighlights.set(!1)))}for(const s of i)x.storedDecorationIDs.delete(s)}_stopSingular(){this._removeSingleDecorations(),this.editor.hasTextFocus()&&(this.editor.getModel()?.uri.scheme!==v.ny.vscodeNotebookCell&&x.query?.modelInfo?.model.uri.scheme!==v.ny.vscodeNotebookCell?(x.query=null,this._run()):x.query?.modelInfo&&(x.query.modelInfo=null)),-1!==this.renderDecorationsTimer&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),null!==this.workerRequest&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0)}_stopAll(e){this._removeAllDecorations(e),-1!==this.renderDecorationsTimer&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),null!==this.workerRequest&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0)}_onPositionChanged(e){"off"!==this.occurrencesHighlight&&(3===e.reason||this.editor.getModel()?.uri.scheme===v.ny.vscodeNotebookCell)?this._run():this._stopAll()}_getWord(){const e=this.editor.getSelection(),t=e.startLineNumber,i=e.startColumn;return this.model.isDisposed()?null:this.model.getWordAtPosition({lineNumber:t,column:i})}getOtherModelsToHighlight(e){if(!e)return[];if(e.uri.scheme===v.ny.vscodeNotebookCell){const t=[],i=this.codeEditorService.listCodeEditors();for(const s of i){const i=s.getModel();i&&i!==e&&i.uri.scheme===v.ny.vscodeNotebookCell&&t.push(i)}return t}const t=[],i=this.codeEditorService.listCodeEditors();for(const s of i){if(!(0,l.Np)(s))continue;const i=s.getModel();i&&(e===i.modified&&t.push(i.modified))}if(t.length)return t;if("singleFile"===this.occurrencesHighlight)return[];for(const s of i){const i=s.getModel();i&&i!==e&&t.push(i)}return t}_run(e){let t;if(this.editor.hasTextFocus()){const e=this.editor.getSelection();if(!e||e.startLineNumber!==e.endLineNumber)return x.query=null,void this._stopAll();const i=e.startColumn,s=e.endColumn,n=this._getWord();if(!n||n.startColumn>i||n.endColumn<s)return x.query=null,void this._stopAll();t=this.workerRequest&&this.workerRequest.isValid(this.model,e,this.decorations),x.query={modelInfo:{model:this.model,selection:e},word:n}}else if(!x.query)return void this._stopAll();if(this.lastCursorPositionChangeTime=(new Date).getTime(),t)this.workerRequestCompleted&&-1!==this.renderDecorationsTimer&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1,this._beginRenderDecorations());else if((0,b.n4)(this.editor.getModel().uri,x.query.modelInfo?.model.uri)){if(!e){const e=this.decorations.getRanges();for(const t of e)if(t.containsPosition(this.editor.getPosition()))return}this._stopAll(e?this.model:void 0);const t=++this.workerRequestTokenId;this.workerRequestCompleted=!1;const i=this.getOtherModelsToHighlight(this.editor.getModel());if(!x.query||!x.query.modelInfo||x.query.modelInfo.model.isDisposed())return;this.workerRequest=this.computeWithModel(x.query.modelInfo.model,x.query.modelInfo.selection,x.query.word,i),this.workerRequest?.result.then((e=>{t===this.workerRequestTokenId&&(this.workerRequestCompleted=!0,this.workerRequestValue=e||[],this._beginRenderDecorations())}),a.dz)}}computeWithModel(e,t,i,s){return s.length?function(e,t,i,s,n,r){return new F(t,i,n,e,r)}(this.multiDocumentProviders,e,t,0,this.editor.getOption(132),s):function(e,t,i,s,n){return new P(t,i,n,e)}(this.providers,e,t,0,this.editor.getOption(132))}_beginRenderDecorations(){const e=(new Date).getTime(),t=this.lastCursorPositionChangeTime+250;e>=t?(this.renderDecorationsTimer=-1,this.renderDecorations()):this.renderDecorationsTimer=setTimeout((()=>{this.renderDecorations()}),t-e)}renderDecorations(){this.renderDecorationsTimer=-1;const e=this.codeEditorService.listCodeEditors();for(const t of e){const e=H.get(t);if(!e)continue;const i=[],s=t.getModel()?.uri;if(s&&this.workerRequestValue.has(s)){const n=x.storedDecorationIDs.get(s),r=this.workerRequestValue.get(s);if(r)for(const e of r)e.range&&i.push({range:e.range,options:(0,f.P)(e.kind)});let o=[];t.changeDecorations((e=>{o=e.deltaDecorations(n??[],i)})),x.storedDecorationIDs=x.storedDecorationIDs.set(s,o),i.length>0&&(e.wordHighlighter?.decorations.set(i),e.wordHighlighter?._hasWordHighlights.set(!0))}}}dispose(){this._stopSingular(),this.toUnhook.dispose()}};U=x=N([I(4,d.T)],U);let H=class extends c.jG{static{k=this}static{this.ID="editor.contrib.wordHighlighter"}static get(e){return e.getContribution(k.ID)}constructor(e,t,i,s){super(),this._wordHighlighter=null;const n=()=>{e.hasModel()&&!e.getModel().isTooLargeForTokenization()&&(this._wordHighlighter=new U(e,i.documentHighlightProvider,i.multiDocumentHighlightProvider,t,s))};this._register(e.onDidChangeModel((e=>{this._wordHighlighter&&(this._wordHighlighter.dispose(),this._wordHighlighter=null),n()}))),n()}get wordHighlighter(){return this._wordHighlighter}saveViewState(){return!(!this._wordHighlighter||!this._wordHighlighter.hasDecorations())}moveNext(){this._wordHighlighter?.moveNext()}moveBack(){this._wordHighlighter?.moveBack()}restoreViewState(e){this._wordHighlighter&&e&&this._wordHighlighter.restore()}dispose(){this._wordHighlighter&&(this._wordHighlighter.dispose(),this._wordHighlighter=null),super.dispose()}};H=k=N([I(1,_.fN),I(2,m.ILanguageFeaturesService),I(3,d.T)],H);class B extends h.ks{constructor(e,t){super(t),this._isNext=e}run(e,t){const i=H.get(t);i&&(this._isNext?i.moveNext():i.moveBack())}}class W extends h.ks{constructor(){super({id:"editor.action.wordHighlight.trigger",label:s.kg("wordHighlight.trigger.label","Trigger Symbol Highlight"),alias:"Trigger Symbol Highlight",precondition:void 0,kbOpts:{kbExpr:g.R.editorTextFocus,primary:0,weight:100}})}run(e,t,i){const s=H.get(t);s&&s.restoreViewState(!0)}}(0,h.HW)(H.ID,H,0),(0,h.Fl)(class extends B{constructor(){super(!0,{id:"editor.action.wordHighlight.next",label:s.kg("wordHighlight.next.label","Go to Next Symbol Highlight"),alias:"Go to Next Symbol Highlight",precondition:O,kbOpts:{kbExpr:g.R.editorTextFocus,primary:65,weight:100}})}}),(0,h.Fl)(class extends B{constructor(){super(!1,{id:"editor.action.wordHighlight.prev",label:s.kg("wordHighlight.previous.label","Go to Previous Symbol Highlight"),alias:"Go to Previous Symbol Highlight",precondition:O,kbOpts:{kbExpr:g.R.editorTextFocus,primary:1089,weight:100}})}}),(0,h.Fl)(W),(0,A.x)(T)},79928:e=>{e.exports=function(){function e(e){return e.$value}return e.isScalar=!0,e}},80200:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"csp",extensions:[".csp"],aliases:["CSP","csp"],loader:()=>i.e(5454).then(i.bind(i,55454))})},80301:(e,t,i)=>{"use strict";i.d(t,{T:()=>s});const s=(0,i(63591).u1)("codeEditorService")},80409:(e,t,i)=>{"use strict";var s=i(31450),n=i(57039),r=i(31308),o=i(49154),a=i(60002),c=i(78244),l=i(62051),h=i(8597),d=i(5662);var u=i(11007),g=i(90766),p=i(18447),m=i(87958),f=i(13850),_=i(631),v=i(36999),C=i(38844),E=i(83069),b=i(32500),S=i(56942),y=i(80789),w=i(41234),R=i(91508),L=i(73157),T=i(87908),x=i(36677),k=i(99020),A=i(10154),N=i(16223),I=i(87469),O=i(25521),D=i(35600),M=i(92674),P=i(73401),F=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},U=function(e,t){return function(i,s){t(i,s,e)}};const H="ghost-text";let B=class extends d.jG{constructor(e,t,i){super(),this.editor=e,this.model=t,this.languageService=i,this.isDisposed=(0,r.FY)(this,!1),this.currentTextModel=(0,r.y0)(this,this.editor.onDidChangeModel,(()=>this.editor.getModel())),this.uiState=(0,r.un)(this,(e=>{if(this.isDisposed.read(e))return;const t=this.currentTextModel.read(e);if(t!==this.model.targetTextModel.read(e))return;const i=this.model.ghostText.read(e);if(!i)return;const s=i instanceof M.Vs?i.columnRange:void 0,n=[],r=[];function o(e,t){if(r.length>0){const i=r[r.length-1];t&&i.decorations.push(new O.d(i.content.length+1,i.content.length+1+e[0].length,t,0)),i.content+=e[0],e=e.slice(1)}for(const i of e)r.push({content:i,decorations:t?[new O.d(1,i.length+1,t,0)]:[]})}const a=t.getLineContent(i.lineNumber);let c,l=0;for(const d of i.parts){let e=d.lines;void 0===c?(n.push({column:d.column,text:e[0],preview:d.preview}),e=e.slice(1)):o([a.substring(l,d.column-1)],void 0),e.length>0&&(o(e,H),void 0===c&&d.column<=a.length&&(c=d.column)),l=d.column-1}void 0!==c&&o([a.substring(l)],void 0);const h=void 0!==c?new P.GM(c,a.length+1):void 0;return{replacedRange:s,inlineTexts:n,additionalLines:r,hiddenRange:h,lineNumber:i.lineNumber,additionalReservedLineCount:this.model.minReservedLineCount.read(e),targetTextModel:t}})),this.decorations=(0,r.un)(this,(e=>{const t=this.uiState.read(e);if(!t)return[];const i=[];t.replacedRange&&i.push({range:t.replacedRange.toRange(t.lineNumber),options:{inlineClassName:"inline-completion-text-to-replace",description:"GhostTextReplacement"}}),t.hiddenRange&&i.push({range:t.hiddenRange.toRange(t.lineNumber),options:{inlineClassName:"ghost-text-hidden",description:"ghost-text-hidden"}});for(const s of t.inlineTexts)i.push({range:x.Q.fromPositions(new E.y(t.lineNumber,s.column)),options:{description:H,after:{content:s.text,inlineClassName:s.preview?"ghost-text-decoration-preview":"ghost-text-decoration",cursorStops:N.VW.Left},showIfCollapsed:!0}});return i})),this.additionalLinesWidget=this._register(new W(this.editor,this.languageService.languageIdCodec,(0,r.un)((e=>{const t=this.uiState.read(e);return t?{lineNumber:t.lineNumber,additionalLines:t.additionalLines,minReservedLineCount:t.additionalReservedLineCount,targetTextModel:t.targetTextModel}:void 0})))),this._register((0,d.s)((()=>{this.isDisposed.set(!0,void 0)}))),this._register((0,P.pY)(this.editor,this.decorations))}ownsViewZone(e){return this.additionalLinesWidget.viewZoneId===e}};B=F([U(2,A.L)],B);class W extends d.jG{get viewZoneId(){return this._viewZoneId}constructor(e,t,i){super(),this.editor=e,this.languageIdCodec=t,this.lines=i,this._viewZoneId=void 0,this.editorOptionsChanged=(0,r.yQ)("editorOptionChanged",w.Jh.filter(this.editor.onDidChangeConfiguration,(e=>e.hasChanged(33)||e.hasChanged(118)||e.hasChanged(100)||e.hasChanged(95)||e.hasChanged(51)||e.hasChanged(50)||e.hasChanged(67)))),this._register((0,r.fm)((e=>{const t=this.lines.read(e);this.editorOptionsChanged.read(e),t?this.updateLines(t.lineNumber,t.additionalLines,t.minReservedLineCount):this.clear()})))}dispose(){super.dispose(),this.clear()}clear(){this.editor.changeViewZones((e=>{this._viewZoneId&&(e.removeZone(this._viewZoneId),this._viewZoneId=void 0)}))}updateLines(e,t,i){const s=this.editor.getModel();if(!s)return;const{tabSize:n}=s.getOptions();this.editor.changeViewZones((s=>{this._viewZoneId&&(s.removeZone(this._viewZoneId),this._viewZoneId=void 0);const r=Math.max(t.length,i);if(r>0){const i=document.createElement("div");!function(e,t,i,s,n){const r=s.get(33),o=s.get(118),a="none",c=s.get(95),l=s.get(51),h=s.get(50),d=s.get(67),u=new k.fe(1e4);u.appendString('<div class="suggest-preview-text">');for(let m=0,f=i.length;m<f;m++){const e=i[m],s=e.content;u.appendString('<div class="view-line'),u.appendString('" style="top:'),u.appendString(String(m*d)),u.appendString('px;width:1000000px;">');const g=R.aC(s),p=R.E_(s),f=I.f.createEmpty(s,n);(0,D.UW)(new D.zL(h.isMonospace&&!r,h.canUseHalfwidthRightwardsArrow,s,!1,g,p,0,f,e.decorations,t,0,h.spaceWidth,h.middotWidth,h.wsmiddotWidth,o,a,c,l!==T.Bc.OFF,null),u),u.appendString("</div>")}u.appendString("</div>"),(0,L.M)(e,h);const g=u.build(),p=V?V.createHTML(g):g;e.innerHTML=p}(i,n,t,this.editor.getOptions(),this.languageIdCodec),this._viewZoneId=s.addZone({afterLineNumber:e,heightInLines:r,domNode:i,afterColumnAffinity:1})}}))}}const V=(0,y.H)("editorGhostText",{createHTML:e=>e});var z=i(64317),G=i(25890),j=i(46041),K=i(51241),Y=i(64383),q=i(7085),$=i(75326),Q=i(75295),X=i(50973),Z=i(62083),J=i(17469),ee=i(26690),te=i(20940),ie=i(83993);function se(e,t,i){const s=i?e.range.intersectRanges(i):e.range;if(!s)return e;const n=t.getValueInRange(s,1),r=(0,R.Qp)(n,e.text),o=X.W.ofText(n.substring(0,r)).addToPosition(e.range.getStartPosition()),a=e.text.substring(r),c=x.Q.fromPositions(o,e.range.getEndPosition());return new Q.WR(c,a)}function ne(e,t){return e.text.startsWith(t.text)&&(i=e.range,(s=t.range).getStartPosition().equals(i.getStartPosition())&&s.getEndPosition().isBeforeOrEqual(i.getEndPosition()));var i,s}function re(e,t,i,s,n=0){let r=se(e,t);if(r.range.endLineNumber!==r.range.startLineNumber)return;const o=t.getLineContent(r.range.startLineNumber),a=(0,R.UU)(o).length;if(r.range.startColumn-1<=a){const e=(0,R.UU)(r.text).length,t=o.substring(r.range.startColumn-1,a),[i,s]=[r.range.getStartPosition(),r.range.getEndPosition()],n=i.column+t.length<=s.column?i.delta(0,t.length):s,c=x.Q.fromPositions(n,s),l=r.text.startsWith(t)?r.text.substring(t.length):r.text.substring(e);r=new Q.WR(c,l)}const c=t.getValueInRange(r.range),l=function(e,t){if(oe?.originalValue===e&&oe?.newValue===t)return oe?.changes;{let i=ce(e,t,!0);if(i){const s=ae(i);if(s>0){const n=ce(e,t,!1);n&&ae(n)<s&&(i=n)}}return oe={originalValue:e,newValue:t,changes:i},i}}(c,r.text);if(!l)return;const h=r.range.startLineNumber,d=new Array;if("prefix"===i){const e=l.filter((e=>0===e.originalLength));if(e.length>1||1===e.length&&e[0].originalStart!==c.length)return}const u=r.text.length-n;for(const g of l){const e=r.range.startColumn+g.originalStart+g.originalLength;if("subwordSmart"===i&&s&&s.lineNumber===r.range.startLineNumber&&e<s.column)return;if(g.originalLength>0)return;if(0===g.modifiedLength)continue;const t=g.modifiedStart+g.modifiedLength,n=Math.max(g.modifiedStart,Math.min(t,u)),o=r.text.substring(g.modifiedStart,n),a=r.text.substring(n,Math.max(g.modifiedStart,t));o.length>0&&d.push(new M.yP(e,o,!1)),a.length>0&&d.push(new M.yP(e,a,!0))}return new M.xD(h,d)}let oe;function ae(e){let t=0;for(const i of e)t+=i.originalLength;return t}function ce(e,t,i){if(e.length>5e3||t.length>5e3)return;function s(e){let t=0;for(let i=0,s=e.length;i<s;i++){const s=e.charCodeAt(i);s>t&&(t=s)}return t}const n=Math.max(s(e),s(t));function r(e){if(e<0)throw new Error("unexpected");return n+e+1}function o(e){let t=0,s=0;const n=new Int32Array(e.length);for(let o=0,a=e.length;o<a;o++)if(i&&"("===e[o]){const e=100*s+t;n[o]=r(2*e),t++}else if(i&&")"===e[o]){t=Math.max(t-1,0);const e=100*s+t;n[o]=r(2*e+1),0===t&&s++}else n[o]=e.charCodeAt(o);return n}const a=o(e),c=o(t);return new ie.uP({getElements:()=>a},{getElements:()=>c}).ComputeDiff(!1).changes}var le=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},he=function(e,t){return function(i,s){t(i,s,e)}};let de=class extends d.jG{constructor(e,t,i,s,n){super(),this.textModel=e,this.versionId=t,this._debounceValue=i,this.languageFeaturesService=s,this.languageConfigurationService=n,this._updateOperation=this._register(new d.HE),this.inlineCompletions=(0,r.X2)("inlineCompletions",void 0),this.suggestWidgetInlineCompletions=(0,r.X2)("suggestWidgetInlineCompletions",void 0),this._register(this.textModel.onDidChangeContent((()=>{this._updateOperation.clear()})))}fetch(e,t,i){const s=new ue(e,t,this.textModel.getVersionId()),n=t.selectedSuggestionInfo?this.suggestWidgetInlineCompletions:this.inlineCompletions;if(this._updateOperation.value?.request.satisfies(s))return this._updateOperation.value.promise;if(n.get()?.request.satisfies(s))return Promise.resolve(!0);const o=!!this._updateOperation.value;this._updateOperation.clear();const a=new p.Qi,c=(async()=>{var c,l;if((o||t.triggerKind===Z.qw.Automatic)&&await(c=this._debounceValue.get(this.textModel),l=a.token,new Promise((e=>{let t;const i=setTimeout((()=>{t&&t.dispose(),e()}),c);l&&(t=l.onCancellationRequested((()=>{clearTimeout(i),t&&t.dispose(),e()})))}))),a.token.isCancellationRequested||this._store.isDisposed||this.textModel.getVersionId()!==s.versionId)return!1;const h=new Date,d=await(0,te.Yk)(this.languageFeaturesService.inlineCompletionsProvider,e,this.textModel,t,a.token,this.languageConfigurationService);if(a.token.isCancellationRequested||this._store.isDisposed||this.textModel.getVersionId()!==s.versionId)return!1;const u=new Date;this._debounceValue.update(this.textModel,u.getTime()-h.getTime());const g=new pe(d,s,this.textModel,this.versionId);if(i){const t=i.toInlineCompletion(void 0);i.canBeReused(this.textModel,e)&&!d.has(t)&&g.prepend(i.inlineCompletion,t.range,!0)}return this._updateOperation.clear(),(0,r.Rn)((e=>{n.set(g,e)})),!0})(),l=new ge(s,a,c);return this._updateOperation.value=l,c}clear(e){this._updateOperation.clear(),this.inlineCompletions.set(void 0,e),this.suggestWidgetInlineCompletions.set(void 0,e)}clearSuggestWidgetInlineCompletions(e){this._updateOperation.value?.request.context.selectedSuggestionInfo&&this._updateOperation.clear(),this.suggestWidgetInlineCompletions.set(void 0,e)}cancelUpdate(){this._updateOperation.clear()}};de=le([he(3,S.ILanguageFeaturesService),he(4,J.JZ)],de);class ue{constructor(e,t,i){this.position=e,this.context=t,this.versionId=i}satisfies(e){return this.position.equals(e.position)&&(0,K.KC)(this.context.selectedSuggestionInfo,e.context.selectedSuggestionInfo,(0,K.r)())&&(e.context.triggerKind===Z.qw.Automatic||this.context.triggerKind===Z.qw.Explicit)&&this.versionId===e.versionId}}class ge{constructor(e,t,i){this.request=e,this.cancellationTokenSource=t,this.promise=i}dispose(){this.cancellationTokenSource.cancel()}}class pe{get inlineCompletions(){return this._inlineCompletions}constructor(e,t,i,s){this.inlineCompletionProviderResult=e,this.request=t,this._textModel=i,this._versionId=s,this._refCount=1,this._prependedInlineCompletionItems=[];const n=i.deltaDecorations([],e.completions.map((e=>({range:e.range,options:{description:"inline-completion-tracking-range"}}))));this._inlineCompletions=e.completions.map(((e,t)=>new me(e,n[t],this._textModel,this._versionId)))}clone(){return this._refCount++,this}dispose(){if(this._refCount--,0===this._refCount){setTimeout((()=>{this._textModel.isDisposed()||this._textModel.deltaDecorations(this._inlineCompletions.map((e=>e.decorationId)),[])}),0),this.inlineCompletionProviderResult.dispose();for(const e of this._prependedInlineCompletionItems)e.source.removeRef()}}prepend(e,t,i){i&&e.source.addRef();const s=this._textModel.deltaDecorations([],[{range:t,options:{description:"inline-completion-tracking-range"}}])[0];this._inlineCompletions.unshift(new me(e,s,this._textModel,this._versionId)),this._prependedInlineCompletionItems.push(e)}}class me{get forwardStable(){return this.inlineCompletion.source.inlineCompletions.enableForwardStability??!1}constructor(e,t,i,s){this.inlineCompletion=e,this.decorationId=t,this._textModel=i,this._modelVersion=s,this.semanticId=JSON.stringify([this.inlineCompletion.filterText,this.inlineCompletion.insertText,this.inlineCompletion.range.getStartPosition().toString()]),this._updatedRange=(0,r.C)({owner:this,equalsFn:x.Q.equalsRange},(e=>(this._modelVersion.read(e),this._textModel.getDecorationRange(this.decorationId))))}toInlineCompletion(e){return this.inlineCompletion.withRange(this._updatedRange.read(e)??fe)}toSingleTextEdit(e){return new Q.WR(this._updatedRange.read(e)??fe,this.inlineCompletion.insertText)}isVisible(e,t,i){const s=se(this._toFilterTextReplacement(i),e),n=this._updatedRange.read(i);if(!n||!this.inlineCompletion.range.getStartPosition().equals(n.getStartPosition())||t.lineNumber!==s.range.startLineNumber)return!1;const r=e.getValueInRange(s.range,1),o=s.text,a=Math.max(0,t.column-s.range.startColumn);let c=o.substring(0,a),l=o.substring(a),h=r.substring(0,a),d=r.substring(a);const u=e.getLineIndentColumn(s.range.startLineNumber);return s.range.startColumn<=u&&(h=h.trimStart(),0===h.length&&(d=d.trimStart()),c=c.trimStart(),0===c.length&&(l=l.trimStart())),c.startsWith(h)&&!!(0,ee.dE)(d,l)}canBeReused(e,t){const i=this._updatedRange.read(void 0);return!!i&&i.containsPosition(t)&&this.isVisible(e,t,void 0)&&X.W.ofRange(i).isGreaterThanOrEqualTo(X.W.ofRange(this.inlineCompletion.range))}_toFilterTextReplacement(e){return new Q.WR(this._updatedRange.read(e)??fe,this.inlineCompletion.filterText)}}const fe=new x.Q(1,1,1,1);var _e=i(30936),ve=i(50091),Ce=i(63591),Ee=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},be=function(e,t){return function(i,s){t(i,s,e)}};let Se=class extends d.jG{get isAcceptingPartially(){return this._isAcceptingPartially}constructor(e,t,i,s,n,o,a,c,l,h,d,u){let g;super(),this.textModel=e,this.selectedSuggestItem=t,this._textModelVersionId=i,this._positions=s,this._debounceValue=n,this._suggestPreviewEnabled=o,this._suggestPreviewMode=a,this._inlineSuggestMode=c,this._enabled=l,this._instantiationService=h,this._commandService=d,this._languageConfigurationService=u,this._source=this._register(this._instantiationService.createInstance(de,this.textModel,this._textModelVersionId,this._debounceValue)),this._isActive=(0,r.FY)(this,!1),this._forceUpdateExplicitlySignal=(0,r.Yd)(this),this._selectedInlineCompletionId=(0,r.FY)(this,void 0),this._primaryPosition=(0,r.un)(this,(e=>this._positions.read(e)[0]??new E.y(1,1))),this._isAcceptingPartially=!1,this._preserveCurrentCompletionReasons=new Set([ye.Redo,ye.Undo,ye.AcceptWord]),this._fetchInlineCompletionsPromise=(0,r.nb)({owner:this,createEmptyChangeSummary:()=>({preserveCurrentCompletion:!1,inlineCompletionTriggerKind:Z.qw.Automatic}),handleChange:(e,t)=>(e.didChange(this._textModelVersionId)&&this._preserveCurrentCompletionReasons.has(this._getReason(e.change))?t.preserveCurrentCompletion=!0:e.didChange(this._forceUpdateExplicitlySignal)&&(t.inlineCompletionTriggerKind=Z.qw.Explicit),!0)},((e,t)=>{this._forceUpdateExplicitlySignal.read(e);if(!(this._enabled.read(e)&&this.selectedSuggestItem.read(e)||this._isActive.read(e)))return void this._source.cancelUpdate();this._textModelVersionId.read(e);const i=this._source.suggestWidgetInlineCompletions.get(),s=this.selectedSuggestItem.read(e);if(i&&!s){const e=this._source.inlineCompletions.get();(0,r.Rn)((t=>{(!e||i.request.versionId>e.request.versionId)&&this._source.inlineCompletions.set(i.clone(),t),this._source.clearSuggestWidgetInlineCompletions(t)}))}const n=this._primaryPosition.read(e),o={triggerKind:t.inlineCompletionTriggerKind,selectedSuggestionInfo:s?.toSelectedSuggestionInfo()},a=this.selectedInlineCompletion.get(),c=t.preserveCurrentCompletion||a?.forwardStable?a:void 0;return this._source.fetch(n,o,c)})),this._filteredInlineCompletionItems=(0,r.C)({owner:this,equalsFn:(0,K.S3)()},(e=>{const t=this._source.inlineCompletions.read(e);if(!t)return[];const i=this._primaryPosition.read(e),s=t.inlineCompletions.filter((t=>t.isVisible(this.textModel,i,e)));return s})),this.selectedInlineCompletionIndex=(0,r.un)(this,(e=>{const t=this._selectedInlineCompletionId.read(e),i=this._filteredInlineCompletionItems.read(e),s=void 0===this._selectedInlineCompletionId?-1:i.findIndex((e=>e.semanticId===t));return-1===s?(this._selectedInlineCompletionId.set(void 0,void 0),0):s})),this.selectedInlineCompletion=(0,r.un)(this,(e=>this._filteredInlineCompletionItems.read(e)[this.selectedInlineCompletionIndex.read(e)])),this.activeCommands=(0,r.C)({owner:this,equalsFn:(0,K.S3)()},(e=>this.selectedInlineCompletion.read(e)?.inlineCompletion.source.inlineCompletions.commands??[])),this.lastTriggerKind=this._source.inlineCompletions.map(this,(e=>e?.request.context.triggerKind)),this.inlineCompletionsCount=(0,r.un)(this,(e=>this.lastTriggerKind.read(e)===Z.qw.Explicit?this._filteredInlineCompletionItems.read(e).length:void 0)),this.state=(0,r.C)({owner:this,equalsFn:(e,t)=>e&&t?(0,M.AL)(e.ghostTexts,t.ghostTexts)&&e.inlineCompletion===t.inlineCompletion&&e.suggestItem===t.suggestItem:e===t},(e=>{const t=this.textModel,i=this.selectedSuggestItem.read(e);if(i){const s=se(i.toSingleTextEdit(),t),n=this._computeAugmentation(s,e);if(!this._suggestPreviewEnabled.read(e)&&!n)return;const r=n?.edit??s,o=n?n.edit.text.length-s.text.length:0,a=this._suggestPreviewMode.read(e),c=this._positions.read(e),l=[r,...we(this.textModel,c,r)],h=l.map(((e,i)=>re(e,t,a,c[i],o))).filter(_.O9);return{edits:l,primaryGhostText:h[0]??new M.xD(r.range.endLineNumber,[]),ghostTexts:h,inlineCompletion:n?.completion,suggestItem:i}}{if(!this._isActive.read(e))return;const i=this.selectedInlineCompletion.read(e);if(!i)return;const s=i.toSingleTextEdit(e),n=this._inlineSuggestMode.read(e),r=this._positions.read(e),o=[s,...we(this.textModel,r,s)],a=o.map(((e,i)=>re(e,t,n,r[i],0))).filter(_.O9);if(!a[0])return;return{edits:o,primaryGhostText:a[0],ghostTexts:a,inlineCompletion:i,suggestItem:void 0}}})),this.ghostTexts=(0,r.C)({owner:this,equalsFn:M.AL},(e=>{const t=this.state.read(e);if(t)return t.ghostTexts})),this.primaryGhostText=(0,r.C)({owner:this,equalsFn:M.x9},(e=>{const t=this.state.read(e);if(t)return t?.primaryGhostText})),this._register((0,r.OI)(this._fetchInlineCompletionsPromise)),this._register((0,r.fm)((e=>{const t=this.state.read(e),i=t?.inlineCompletion;if(i?.semanticId!==g?.semanticId&&(g=i,i)){const e=i.inlineCompletion,t=e.source;t.provider.handleItemDidShow?.(t.inlineCompletions,e.sourceInlineCompletion,e.insertText)}})))}_getReason(e){return e?.isUndoing?ye.Undo:e?.isRedoing?ye.Redo:this.isAcceptingPartially?ye.AcceptWord:ye.Other}async trigger(e){this._isActive.set(!0,e),await this._fetchInlineCompletionsPromise.get()}async triggerExplicitly(e){(0,r.PO)(e,(e=>{this._isActive.set(!0,e),this._forceUpdateExplicitlySignal.trigger(e)})),await this._fetchInlineCompletionsPromise.get()}stop(e){(0,r.PO)(e,(e=>{this._isActive.set(!1,e),this._source.clear(e)}))}_computeAugmentation(e,t){const i=this.textModel,s=this._source.suggestWidgetInlineCompletions.read(t),n=s?s.inlineCompletions:[this.selectedInlineCompletion.read(t)].filter(_.O9);return(0,j.oH)(n,(s=>{let n=s.toSingleTextEdit(t);return n=se(n,i,x.Q.fromPositions(n.range.getStartPosition(),e.range.getEndPosition())),ne(n,e)?{completion:s,edit:n}:void 0}))}async _deltaSelectedInlineCompletionIndex(e){await this.triggerExplicitly();const t=this._filteredInlineCompletionItems.get()||[];if(t.length>0){const i=(this.selectedInlineCompletionIndex.get()+e+t.length)%t.length;this._selectedInlineCompletionId.set(t[i].semanticId,void 0)}else this._selectedInlineCompletionId.set(void 0,void 0)}async next(){await this._deltaSelectedInlineCompletionIndex(1)}async previous(){await this._deltaSelectedInlineCompletionIndex(-1)}async accept(e){if(e.getModel()!==this.textModel)throw new Y.D7;const t=this.state.get();if(!t||t.primaryGhostText.isEmpty()||!t.inlineCompletion)return;const i=t.inlineCompletion.toInlineCompletion(void 0);if(i.command&&i.source.addRef(),e.pushUndoStop(),i.snippetInfo)e.executeEdits("inlineSuggestion.accept",[q.k.replace(i.range,""),...i.additionalTextEdits]),e.setPosition(i.snippetInfo.range.getStartPosition(),"inlineCompletionAccept"),_e.O.get(e)?.insert(i.snippetInfo.snippet,{undoStopBefore:!1});else{const s=t.edits,n=Re(s).map((e=>$.L.fromPositions(e)));e.executeEdits("inlineSuggestion.accept",[...s.map((e=>q.k.replace(e.range,e.text))),...i.additionalTextEdits]),e.setSelections(n,"inlineCompletionAccept")}this.stop(),i.command&&(await this._commandService.executeCommand(i.command.id,...i.command.arguments||[]).then(void 0,Y.M_),i.source.removeRef())}async acceptNextWord(e){await this._acceptNext(e,((e,t)=>{const i=this.textModel.getLanguageIdAtPosition(e.lineNumber,e.column),s=this._languageConfigurationService.getLanguageConfiguration(i),n=new RegExp(s.wordDefinition.source,s.wordDefinition.flags.replace("g","")),r=t.match(n);let o=0;o=r&&void 0!==r.index?0===r.index?r[0].length:r.index:t.length;const a=/\s+/g.exec(t);return a&&void 0!==a.index&&a.index+a[0].length<o&&(o=a.index+a[0].length),o}),0)}async acceptNextLine(e){await this._acceptNext(e,((e,t)=>{const i=t.match(/\n/);return i&&void 0!==i.index?i.index+1:t.length}),1)}async _acceptNext(e,t,i){if(e.getModel()!==this.textModel)throw new Y.D7;const s=this.state.get();if(!s||s.primaryGhostText.isEmpty()||!s.inlineCompletion)return;const n=s.primaryGhostText,r=s.inlineCompletion.toInlineCompletion(void 0);if(r.snippetInfo||r.filterText!==r.insertText)return void await this.accept(e);const o=n.parts[0],a=new E.y(n.lineNumber,o.column),c=o.text,l=t(a,c);if(l===c.length&&1===n.parts.length)return void this.accept(e);const h=c.substring(0,l),d=this._positions.get(),u=d[0];r.source.addRef();try{this._isAcceptingPartially=!0;try{e.pushUndoStop();const t=x.Q.fromPositions(u,a),i=e.getModel().getValueInRange(t)+h,s=new Q.WR(t,i),n=[s,...we(this.textModel,d,s)],r=Re(n).map((e=>$.L.fromPositions(e)));e.executeEdits("inlineSuggestion.accept",n.map((e=>q.k.replace(e.range,e.text)))),e.setSelections(r,"inlineCompletionPartialAccept"),e.revealPositionInCenterIfOutsideViewport(e.getPosition(),1)}finally{this._isAcceptingPartially=!1}if(r.source.provider.handlePartialAccept){const t=x.Q.fromPositions(r.range.getStartPosition(),X.W.ofText(h).addToPosition(a)),s=e.getModel().getValueInRange(t,1);r.source.provider.handlePartialAccept(r.source.inlineCompletions,r.sourceInlineCompletion,s.length,{kind:i})}}finally{r.source.removeRef()}}handleSuggestAccepted(e){const t=se(e.toSingleTextEdit(),this.textModel),i=this._computeAugmentation(t,void 0);if(!i)return;const s=i.completion.inlineCompletion;s.source.provider.handlePartialAccept?.(s.source.inlineCompletions,s.sourceInlineCompletion,t.text.length,{kind:2})}};var ye;function we(e,t,i){if(1===t.length)return[];const s=t[0],n=t.slice(1),r=i.range.getStartPosition(),o=i.range.getEndPosition(),a=e.getValueInRange(x.Q.fromPositions(s,o)),c=(0,P.tN)(s,r);if(c.lineNumber<1)return(0,Y.dz)(new Y.D7(`positionWithinTextEdit line number should be bigger than 0.\n\t\t\tInvalid subtraction between ${s.toString()} and ${r.toString()}`)),[];const l=function(e,t){let i="";const s=(0,R.en)(e);for(let n=t.lineNumber-1;n<s.length;n++)i+=s[n].substring(n===t.lineNumber-1?t.column-1:0);return i}(i.text,c);return n.map((t=>{const i=(0,P.OA)((0,P.tN)(t,r),o),s=e.getValueInRange(x.Q.fromPositions(t,i)),n=(0,R.Qp)(a,s),c=x.Q.fromPositions(t,t.delta(0,n));return new Q.WR(c,l)}))}function Re(e){const t=G.t9.createSortPermutation(e,(0,G.VE)((e=>e.range),x.Q.compareRangesUsingStarts)),i=new Q.mF(t.apply(e)).getNewRanges();return t.inverse().apply(i).map((e=>e.getEndPosition()))}Se=Ee([be(9,Ce._Y),be(10,ve.d),be(11,J.JZ)],Se),function(e){e[e.Undo=0]="Undo",e[e.Redo=1]="Redo",e[e.AcceptWord=2]="AcceptWord",e[e.Other=3]="Other"}(ye||(ye={}));var Le=i(29319),Te=i(38280),xe=i(90870);class ke extends d.jG{get selectedItem(){return this._currentSuggestItemInfo}constructor(e,t,i){super(),this.editor=e,this.suggestControllerPreselector=t,this.onWillAccept=i,this.isSuggestWidgetVisible=!1,this.isShiftKeyPressed=!1,this._isActive=!1,this._currentSuggestItemInfo=void 0,this._onDidSelectedItemChange=this._register(new w.vl),this.onDidSelectedItemChange=this._onDidSelectedItemChange.event,this._register(e.onKeyDown((e=>{e.shiftKey&&!this.isShiftKeyPressed&&(this.isShiftKeyPressed=!0,this.update(this._isActive))}))),this._register(e.onKeyUp((e=>{e.shiftKey&&this.isShiftKeyPressed&&(this.isShiftKeyPressed=!1,this.update(this._isActive))})));const s=xe.D.get(this.editor);if(s){this._register(s.registerSelector({priority:100,select:(e,t,i)=>{const n=this.editor.getModel();if(!n)return-1;const r=this.suggestControllerPreselector(),o=r?se(r,n):void 0;if(!o)return-1;const a=E.y.lift(t),c=i.map(((e,t)=>{const i=se(Ae.fromSuggestion(s,n,a,e,this.isShiftKeyPressed).toSingleTextEdit(),n);return{index:t,valid:ne(o,i),prefixLength:i.text.length,suggestItem:e}})).filter((e=>e&&e.valid&&e.prefixLength>0)),l=(0,j.Cn)(c,(0,G.VE)((e=>e.prefixLength),G.U9));return l?l.index:-1}}));let e=!1;const t=()=>{e||(e=!0,this._register(s.widget.value.onDidShow((()=>{this.isSuggestWidgetVisible=!0,this.update(!0)}))),this._register(s.widget.value.onDidHide((()=>{this.isSuggestWidgetVisible=!1,this.update(!1)}))),this._register(s.widget.value.onDidFocus((()=>{this.isSuggestWidgetVisible=!0,this.update(!0)}))))};this._register(w.Jh.once(s.model.onDidTrigger)((e=>{t()}))),this._register(s.onWillInsertSuggestItem((e=>{const t=this.editor.getPosition(),i=this.editor.getModel();if(!t||!i)return;const n=Ae.fromSuggestion(s,i,t,e.item,this.isShiftKeyPressed);this.onWillAccept(n)})))}this.update(this._isActive)}update(e){const t=this.getSuggestItemInfo();this._isActive===e&&function(e,t){if(e===t)return!0;if(!e||!t)return!1;return e.equals(t)}(this._currentSuggestItemInfo,t)||(this._isActive=e,this._currentSuggestItemInfo=t,this._onDidSelectedItemChange.fire())}getSuggestItemInfo(){const e=xe.D.get(this.editor);if(!e||!this.isSuggestWidgetVisible)return;const t=e.widget.value.getFocusedItem(),i=this.editor.getPosition(),s=this.editor.getModel();return t&&i&&s?Ae.fromSuggestion(e,s,i,t.item,this.isShiftKeyPressed):void 0}stopForceRenderingAbove(){const e=xe.D.get(this.editor);e?.stopForceRenderingAbove()}forceRenderingAbove(){const e=xe.D.get(this.editor);e?.forceRenderingAbove()}}class Ae{static fromSuggestion(e,t,i,s,n){let{insertText:r}=s.completion,o=!1;if(4&s.completion.insertTextRules){const e=(new Le.fr).parse(r);e.children.length<100&&Te.O.adjustWhitespace(t,i,!0,e),r=e.toString(),o=!0}const a=e.getOverwriteInfo(s,n);return new Ae(x.Q.fromPositions(i.delta(0,-a.overwriteBefore),i.delta(0,Math.max(a.overwriteAfter,0))),r,s.completion.kind,o)}constructor(e,t,i,s){this.range=e,this.insertText=t,this.completionItemKind=i,this.isSnippetText=s}equals(e){return this.range.equalsRange(e.range)&&this.insertText===e.insertText&&this.completionItemKind===e.completionItemKind&&this.isSnippetText===e.isSnippetText}toSelectedSuggestionInfo(){return new Z.GE(this.range,this.insertText,this.completionItemKind,this.isSnippetText)}toSingleTextEdit(){return new Q.WR(this.range,this.insertText)}}var Ne,Ie=i(78209),Oe=i(253),De=i(87213),Me=i(84001),Pe=i(32848),Fe=i(98031),Ue=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},He=function(e,t){return function(i,s){t(i,s,e)}};let Be=class extends d.jG{static{Ne=this}static{this.ID="editor.contrib.inlineCompletionsController"}static get(e){return e.getContribution(Ne.ID)}constructor(e,t,i,s,n,o,a,u,b,S){super(),this.editor=e,this._instantiationService=t,this._contextKeyService=i,this._configurationService=s,this._commandService=n,this._debounceService=o,this._languageFeaturesService=a,this._accessibilitySignalService=u,this._keybindingService=b,this._accessibilityService=S,this._editorObs=(0,C.Ud)(this.editor),this._positions=(0,r.un)(this,(e=>this._editorObs.selections.read(e)?.map((e=>e.getEndPosition()))??[new E.y(1,1)])),this._suggestWidgetAdaptor=this._register(new ke(this.editor,(()=>(this._editorObs.forceUpdate(),this.model.get()?.selectedInlineCompletion.get()?.toSingleTextEdit(void 0))),(e=>this._editorObs.forceUpdate((t=>{this.model.get()?.handleSuggestAccepted(e)}))))),this._suggestWidgetSelectedItem=(0,r.y0)(this,(e=>this._suggestWidgetAdaptor.onDidSelectedItemChange((()=>{this._editorObs.forceUpdate((t=>e(void 0)))}))),(()=>this._suggestWidgetAdaptor.selectedItem)),this._enabledInConfig=(0,r.y0)(this,this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(62).enabled)),this._isScreenReaderEnabled=(0,r.y0)(this,this._accessibilityService.onDidChangeScreenReaderOptimized,(()=>this._accessibilityService.isScreenReaderOptimized())),this._editorDictationInProgress=(0,r.y0)(this,this._contextKeyService.onDidChangeContext,(()=>!0===this._contextKeyService.getContext(this.editor.getDomNode()).getValue("editorDictation.inProgress"))),this._enabled=(0,r.un)(this,(e=>this._enabledInConfig.read(e)&&(!this._isScreenReaderEnabled.read(e)||!this._editorDictationInProgress.read(e)))),this._debounceValue=this._debounceService.for(this._languageFeaturesService.inlineCompletionsProvider,"InlineCompletionsDebounce",{min:50,max:50}),this.model=(0,m.a0)(this,(e=>{if(this._editorObs.isReadonly.read(e))return;const t=this._editorObs.model.read(e);if(!t)return;return this._instantiationService.createInstance(Se,t,this._suggestWidgetSelectedItem,this._editorObs.versionId,this._positions,this._debounceValue,(0,r.y0)(this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(119).preview)),(0,r.y0)(this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(119).previewMode)),(0,r.y0)(this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(62).mode)),this._enabled)})).recomputeInitiallyAndOnChange(this._store),this._ghostTexts=(0,r.un)(this,(e=>{const t=this.model.read(e);return t?.ghostTexts.read(e)??[]})),this._stablizedGhostTexts=function(e,t){const i=(0,r.FY)("result",[]),s=[];return t.add((0,r.fm)((t=>{const n=e.read(t);(0,r.Rn)((e=>{if(n.length!==s.length){s.length=n.length;for(let e=0;e<s.length;e++)s[e]||(s[e]=(0,r.FY)("item",n[e]));i.set([...s],e)}s.forEach(((t,i)=>t.set(n[i],e)))}))}))),i}(this._ghostTexts,this._store),this._ghostTextWidgets=(0,f.Rl)(this,this._stablizedGhostTexts,((e,t)=>t.add(this._instantiationService.createInstance(B,this.editor,{ghostText:e,minReservedLineCount:(0,r.lk)(0),targetTextModel:this.model.map((e=>e?.textModel))})))).recomputeInitiallyAndOnChange(this._store),this._playAccessibilitySignal=(0,r.Yd)(this),this._fontFamily=(0,r.y0)(this,this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(62).fontFamily)),this._register(new l.p(this._contextKeyService,this.model)),this._register((0,C.jD)(this._editorObs.onDidType,((e,t)=>{this._enabled.get()&&this.model.get()?.trigger()}))),this._register(this._commandService.onDidExecuteCommand((t=>{new Set([v.Yh.Tab.id,v.Yh.DeleteLeft.id,v.Yh.DeleteRight.id,c.Wt,"acceptSelectedSuggestion"]).has(t.commandId)&&e.hasTextFocus()&&this._enabled.get()&&this._editorObs.forceUpdate((e=>{this.model.get()?.trigger(e)}))}))),this._register((0,C.jD)(this._editorObs.selections,((e,t)=>{t.some((e=>3===e.reason||"api"===e.source))&&this.model.get()?.stop()}))),this._register(this.editor.onDidBlurEditorWidget((()=>{this._contextKeyService.getContextKeyValue("accessibleViewIsShown")||this._configurationService.getValue("editor.inlineSuggest.keepOnBlur")||e.getOption(62).keepOnBlur||z.bo.dropDownVisible||(0,r.Rn)((e=>{this.model.get()?.stop(e)}))}))),this._register((0,r.fm)((e=>{const t=this.model.read(e)?.state.read(e);t?.suggestItem?t.primaryGhostText.lineCount>=2&&this._suggestWidgetAdaptor.forceRenderingAbove():this._suggestWidgetAdaptor.stopForceRenderingAbove()}))),this._register((0,d.s)((()=>{this._suggestWidgetAdaptor.stopForceRenderingAbove()})));const y=(0,f.ZX)(this,((e,t)=>{const i=this.model.read(e),s=i?.state.read(e);return this._suggestWidgetSelectedItem.get()?t:s?.inlineCompletion?.semanticId}));this._register((0,C.Qg)((0,r.un)((e=>(this._playAccessibilitySignal.read(e),y.read(e),{}))),(async(e,t,i)=>{const s=this.model.get(),n=s?.state.get();if(!n||!s)return;const o=s.textModel.getLineContent(n.primaryGhostText.lineNumber);await(0,g.wR)(50,(0,p.bs)(i)),await(0,r.oJ)(this._suggestWidgetSelectedItem,_.b0,(()=>!1),(0,p.bs)(i)),await this._accessibilitySignalService.playSignal(De.Rh.inlineSuggestion),this.editor.getOption(8)&&this._provideScreenReaderUpdate(n.primaryGhostText.renderForScreenReader(o))}))),this._register(new z.Pm(this.editor,this.model,this._instantiationService)),this._register(function(e){const t=new d.Cm,i=t.add((0,h.jh)());return t.add((0,r.fm)((t=>{i.setStyle(e.read(t))}))),t}((0,r.un)((e=>{const t=this._fontFamily.read(e);return""===t||"default"===t?"":`\n.monaco-editor .ghost-text-decoration,\n.monaco-editor .ghost-text-decoration-preview,\n.monaco-editor .ghost-text {\n\tfont-family: ${t};\n}`})))),this._register(this._configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration("accessibility.verbosity.inlineCompletions")&&this.editor.updateOptions({inlineCompletionsAccessibilityVerbose:this._configurationService.getValue("accessibility.verbosity.inlineCompletions")})}))),this.editor.updateOptions({inlineCompletionsAccessibilityVerbose:this._configurationService.getValue("accessibility.verbosity.inlineCompletions")})}playAccessibilitySignal(e){this._playAccessibilitySignal.trigger(e)}_provideScreenReaderUpdate(e){const t=this._contextKeyService.getContextKeyValue("accessibleViewIsShown"),i=this._keybindingService.lookupKeybinding("editor.action.accessibleView");let s;!t&&i&&this.editor.getOption(150)&&(s=(0,Ie.kg)("showAccessibleViewHint","Inspect this in the accessible view ({0})",i.getAriaLabel())),(0,u.xE)(s?e+", "+s:e)}shouldShowHoverAt(e){const t=this.model.get()?.primaryGhostText.get();return!!t&&t.parts.some((i=>e.containsPosition(new E.y(t.lineNumber,i.column))))}shouldShowHoverAtViewZone(e){return this._ghostTextWidgets.get()[0]?.ownsViewZone(e)??!1}};Be=Ne=Ue([He(1,Ce._Y),He(2,Pe.fN),He(3,Me.pG),He(4,ve.d),He(5,b.ILanguageFeatureDebounceService),He(6,S.ILanguageFeaturesService),He(7,De.Nt),He(8,Fe.b),He(9,Oe.j)],Be);var We=i(48116),Ve=i(27195);class ze extends s.ks{static{this.ID=c.PA}constructor(){super({id:ze.ID,label:Ie.kg("action.inlineSuggest.showNext","Show Next Inline Suggestion"),alias:"Show Next Inline Suggestion",precondition:Pe.M$.and(a.R.writable,l.p.inlineSuggestionVisible),kbOpts:{weight:100,primary:606}})}async run(e,t){const i=Be.get(t);i?.model.get()?.next()}}class Ge extends s.ks{static{this.ID=c.Vl}constructor(){super({id:Ge.ID,label:Ie.kg("action.inlineSuggest.showPrevious","Show Previous Inline Suggestion"),alias:"Show Previous Inline Suggestion",precondition:Pe.M$.and(a.R.writable,l.p.inlineSuggestionVisible),kbOpts:{weight:100,primary:604}})}async run(e,t){const i=Be.get(t);i?.model.get()?.previous()}}class je extends s.ks{constructor(){super({id:"editor.action.inlineSuggest.trigger",label:Ie.kg("action.inlineSuggest.trigger","Trigger Inline Suggestion"),alias:"Trigger Inline Suggestion",precondition:a.R.writable})}async run(e,t){const i=Be.get(t);await(0,o.fL)((async e=>{await(i?.model.get()?.triggerExplicitly(e)),i?.playAccessibilitySignal(e)}))}}class Ke extends s.ks{constructor(){super({id:"editor.action.inlineSuggest.acceptNextWord",label:Ie.kg("action.inlineSuggest.acceptNextWord","Accept Next Word Of Inline Suggestion"),alias:"Accept Next Word Of Inline Suggestion",precondition:Pe.M$.and(a.R.writable,l.p.inlineSuggestionVisible),kbOpts:{weight:101,primary:2065,kbExpr:Pe.M$.and(a.R.writable,l.p.inlineSuggestionVisible)},menuOpts:[{menuId:Ve.D8.InlineSuggestionToolbar,title:Ie.kg("acceptWord","Accept Word"),group:"primary",order:2}]})}async run(e,t){const i=Be.get(t);await(i?.model.get()?.acceptNextWord(i.editor))}}class Ye extends s.ks{constructor(){super({id:"editor.action.inlineSuggest.acceptNextLine",label:Ie.kg("action.inlineSuggest.acceptNextLine","Accept Next Line Of Inline Suggestion"),alias:"Accept Next Line Of Inline Suggestion",precondition:Pe.M$.and(a.R.writable,l.p.inlineSuggestionVisible),kbOpts:{weight:101},menuOpts:[{menuId:Ve.D8.InlineSuggestionToolbar,title:Ie.kg("acceptLine","Accept Line"),group:"secondary",order:2}]})}async run(e,t){const i=Be.get(t);await(i?.model.get()?.acceptNextLine(i.editor))}}class qe extends s.ks{constructor(){super({id:c.Wt,label:Ie.kg("action.inlineSuggest.accept","Accept Inline Suggestion"),alias:"Accept Inline Suggestion",precondition:l.p.inlineSuggestionVisible,menuOpts:[{menuId:Ve.D8.InlineSuggestionToolbar,title:Ie.kg("accept","Accept"),group:"primary",order:1}],kbOpts:{primary:2,weight:200,kbExpr:Pe.M$.and(l.p.inlineSuggestionVisible,a.R.tabMovesFocus.toNegated(),l.p.inlineSuggestionHasIndentationLessThanTabSize,We.ob.Visible.toNegated(),a.R.hoverFocused.toNegated())}})}async run(e,t){const i=Be.get(t);i&&(i.model.get()?.accept(i.editor),i.editor.focus())}}class $e extends s.ks{static{this.ID="editor.action.inlineSuggest.hide"}constructor(){super({id:$e.ID,label:Ie.kg("action.inlineSuggest.hide","Hide Inline Suggestion"),alias:"Hide Inline Suggestion",precondition:l.p.inlineSuggestionVisible,kbOpts:{weight:100,primary:9}})}async run(e,t){const i=Be.get(t);(0,r.Rn)((e=>{i?.model.get()?.stop(e)}))}}class Qe extends Ve.L{static{this.ID="editor.action.inlineSuggest.toggleAlwaysShowToolbar"}constructor(){super({id:Qe.ID,title:Ie.kg("action.inlineSuggest.alwaysShowToolbar","Always Show Toolbar"),f1:!1,precondition:void 0,menu:[{id:Ve.D8.InlineSuggestionToolbar,group:"secondary",order:10}],toggled:Pe.M$.equals("config.editor.inlineSuggest.showToolbar","always")})}async run(e,t){const i=e.get(Me.pG),s="always"===i.getValue("editor.inlineSuggest.showToolbar")?"onHover":"always";i.updateValue("editor.inlineSuggest.showToolbar",s)}}var Xe=i(16980),Ze=i(20492),Je=i(49099),et=i(90651),tt=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},it=function(e,t){return function(i,s){t(i,s,e)}};class st{constructor(e,t,i){this.owner=e,this.range=t,this.controller=i}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let nt=class{constructor(e,t,i,s,n,r){this._editor=e,this._languageService=t,this._openerService=i,this.accessibilityService=s,this._instantiationService=n,this._telemetryService=r,this.hoverOrdinal=4}suggestHoverAnchor(e){const t=Be.get(this._editor);if(!t)return null;const i=e.target;if(8===i.type){const s=i.detail;if(t.shouldShowHoverAtViewZone(s.viewZoneId))return new n.mm(1e3,this,x.Q.fromPositions(this._editor.getModel().validatePosition(s.positionBefore||s.position)),e.event.posx,e.event.posy,!1)}if(7===i.type&&t.shouldShowHoverAt(i.range))return new n.mm(1e3,this,i.range,e.event.posx,e.event.posy,!1);if(6===i.type){if(i.detail.mightBeForeignElement&&t.shouldShowHoverAt(i.range))return new n.mm(1e3,this,i.range,e.event.posx,e.event.posy,!1)}return null}computeSync(e,t){if("onHover"!==this._editor.getOption(62).showToolbar)return[];const i=Be.get(this._editor);return i&&i.shouldShowHoverAt(e.range)?[new st(this,e.range,i)]:[]}renderHoverParts(e,t){const i=new d.Cm,s=t[0];this._telemetryService.publicLog2("inlineCompletionHover.shown"),this.accessibilityService.isScreenReaderOptimized()&&!this._editor.getOption(8)&&i.add(this.renderScreenReaderText(e,s));const o=s.controller.model.get(),a=this._instantiationService.createInstance(z.bo,this._editor,!1,(0,r.lk)(null),o.selectedInlineCompletionIndex,o.inlineCompletionsCount,o.activeCommands),c=a.getDomNode();e.fragment.appendChild(c),o.triggerExplicitly(),i.add(a);const l={hoverPart:s,hoverElement:c,dispose(){i.dispose()}};return new n.Ke([l])}renderScreenReaderText(e,t){const i=new d.Cm,s=h.$,n=s("div.hover-row.markdown-hover"),o=h.BC(n,s("div.hover-contents",{"aria-live":"assertive"})),a=i.add(new Ze.T({editor:this._editor},this._languageService,this._openerService));return i.add((0,r.fm)((s=>{const n=t.controller.model.read(s)?.primaryGhostText.read(s);if(n){const t=this._editor.getModel().getLineContent(n.lineNumber);(t=>{i.add(a.onDidRenderAsync((()=>{o.className="hover-contents code-hover-contents",e.onContentsChanged()})));const s=Ie.kg("inlineSuggestionFollows","Suggestion:"),n=i.add(a.render((new Xe.Bc).appendText(s).appendCodeblock("text",t)));o.replaceChildren(n.element)})(n.renderForScreenReader(t))}else h.Ln(o)}))),e.fragment.appendChild(n),i}};nt=tt([it(1,A.L),it(2,Je.C),it(3,Oe.j),it(4,Ce._Y),it(5,et.k)],nt);var rt=i(96282);(0,s.HW)(Be.ID,Be,3),(0,s.Fl)(je),(0,s.Fl)(ze),(0,s.Fl)(Ge),(0,s.Fl)(Ke),(0,s.Fl)(Ye),(0,s.Fl)(qe),(0,s.Fl)($e),(0,Ve.ug)(Qe),n.B2.register(nt),rt.Z.register(new class{})},80449:(e,t,i)=>{e.exports=i(17184)},80531:(e,t,i)=>{var s=i(68097),n=i(88834),r=i(12529),o=i(92061);e.exports=function(e,t){return t=s(t,e),null==(e=r(e,t))||delete e[o(n(t))]}},80537:(e,t,i)=>{"use strict";i.d(t,{cw:()=>c,jN:()=>a,nu:()=>o});var s=i(63591),n=i(79400),r=i(631);const o=(0,s.u1)("IWorkspaceEditService");class a{constructor(e){this.metadata=e}static convert(e){return e.edits.map((e=>{if(c.is(e))return c.lift(e);if(l.is(e))return l.lift(e);throw new Error("Unsupported edit")}))}}class c extends a{static is(e){return e instanceof c||(0,r.Gv)(e)&&n.r.isUri(e.resource)&&(0,r.Gv)(e.textEdit)}static lift(e){return e instanceof c?e:new c(e.resource,e.textEdit,e.versionId,e.metadata)}constructor(e,t,i=void 0,s){super(s),this.resource=e,this.textEdit=t,this.versionId=i}}class l extends a{static is(e){return e instanceof l||(0,r.Gv)(e)&&(Boolean(e.newResource)||Boolean(e.oldResource))}static lift(e){return e instanceof l?e:new l(e.oldResource,e.newResource,e.options,e.metadata)}constructor(e,t,i={},s){super(s),this.oldResource=e,this.newResource=t,this.options=i}}},80538:(e,t,i)=>{"use strict";i.d(t,{NN:()=>f,eS:()=>p,f9:()=>m,hE:()=>u,sv:()=>g});var s=i(25890),n=i(18447),r=i(64383),o=i(36456),a=i(31450),c=i(56942),l=i(79614);function h(e,t){return t.uri.scheme===e.uri.scheme||!(0,o.fV)(t.uri,o.ny.walkThroughSnippet,o.ny.vscodeChatCodeBlock,o.ny.vscodeChatCodeCompareBlock)}async function d(e,t,i,n,o){const a=i.ordered(e,n).map((i=>Promise.resolve(o(i,e,t)).then(void 0,(e=>{(0,r.M_)(e)})))),c=await Promise.all(a);return(0,s.Yc)(c.flat()).filter((t=>h(e,t)))}function u(e,t,i,s,n){return d(t,i,e,s,((e,t,i)=>e.provideDefinition(t,i,n)))}function g(e,t,i,s,n){return d(t,i,e,s,((e,t,i)=>e.provideDeclaration(t,i,n)))}function p(e,t,i,s,n){return d(t,i,e,s,((e,t,i)=>e.provideImplementation(t,i,n)))}function m(e,t,i,s,n){return d(t,i,e,s,((e,t,i)=>e.provideTypeDefinition(t,i,n)))}function f(e,t,i,s,n,r){return d(t,i,e,n,(async(e,t,i)=>{const n=(await e.provideReferences(t,i,{includeDeclaration:!0},r))?.filter((e=>h(t,e)));if(!s||!n||2!==n.length)return n;const o=(await e.provideReferences(t,i,{includeDeclaration:!1},r))?.filter((e=>h(t,e)));return o&&1===o.length?o:n}))}async function _(e){const t=await e(),i=new l.y4(t,""),s=i.references.map((e=>e.link));return i.dispose(),s}(0,a.ke)("_executeDefinitionProvider",((e,t,i)=>{const s=u(e.get(c.ILanguageFeaturesService).definitionProvider,t,i,!1,n.XO.None);return _((()=>s))})),(0,a.ke)("_executeDefinitionProvider_recursive",((e,t,i)=>{const s=u(e.get(c.ILanguageFeaturesService).definitionProvider,t,i,!0,n.XO.None);return _((()=>s))})),(0,a.ke)("_executeTypeDefinitionProvider",((e,t,i)=>{const s=m(e.get(c.ILanguageFeaturesService).typeDefinitionProvider,t,i,!1,n.XO.None);return _((()=>s))})),(0,a.ke)("_executeTypeDefinitionProvider_recursive",((e,t,i)=>{const s=m(e.get(c.ILanguageFeaturesService).typeDefinitionProvider,t,i,!0,n.XO.None);return _((()=>s))})),(0,a.ke)("_executeDeclarationProvider",((e,t,i)=>{const s=g(e.get(c.ILanguageFeaturesService).declarationProvider,t,i,!1,n.XO.None);return _((()=>s))})),(0,a.ke)("_executeDeclarationProvider_recursive",((e,t,i)=>{const s=g(e.get(c.ILanguageFeaturesService).declarationProvider,t,i,!0,n.XO.None);return _((()=>s))})),(0,a.ke)("_executeReferenceProvider",((e,t,i)=>{const s=f(e.get(c.ILanguageFeaturesService).referenceProvider,t,i,!1,!1,n.XO.None);return _((()=>s))})),(0,a.ke)("_executeReferenceProvider_recursive",((e,t,i)=>{const s=f(e.get(c.ILanguageFeaturesService).referenceProvider,t,i,!1,!0,n.XO.None);return _((()=>s))})),(0,a.ke)("_executeImplementationProvider",((e,t,i)=>{const s=p(e.get(c.ILanguageFeaturesService).implementationProvider,t,i,!1,n.XO.None);return _((()=>s))})),(0,a.ke)("_executeImplementationProvider_recursive",((e,t,i)=>{const s=p(e.get(c.ILanguageFeaturesService).implementationProvider,t,i,!0,n.XO.None);return _((()=>s))}))},80604:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var s=i(27145),n=i(59284),r=i(46734),o=i(9296);const a=(0,i(69220).om)("card"),c=n.forwardRef((function(e,t){const{type:i="container",theme:c,view:l,size:h="m",children:d,className:u,onClick:g,disabled:p,selected:m}=e,f=(0,s.Tt)(e,["type","theme","view","size","children","className","onClick","disabled","selected"]),_="selection"===i,v="container"===i,C=("action"===i||_)&&Boolean(g)&&!p,E=v?"normal":void 0,b=v||_?"outlined":void 0,S=C?g:void 0,{onKeyDown:y}=(0,r.N)(g);return n.createElement(o.a,Object.assign({ref:t,role:C?"button":void 0,className:a({theme:c||E,view:l||b,type:i,selected:m,size:h,disabled:p,clickable:C},u),onClick:S,onKeyDown:C?y:void 0,tabIndex:C?0:void 0},f),d)}))},80624:(e,t,i)=>{"use strict";i.d(t,{BG:()=>r,IO:()=>a,Y:()=>o,eh:()=>n,pj:()=>l,qN:()=>c});class s{constructor(e,t){this._restrictedRenderingContextBrand=void 0,this._viewLayout=e,this.viewportData=t,this.scrollWidth=this._viewLayout.getScrollWidth(),this.scrollHeight=this._viewLayout.getScrollHeight(),this.visibleRange=this.viewportData.visibleRange,this.bigNumbersDelta=this.viewportData.bigNumbersDelta;const i=this._viewLayout.getCurrentViewport();this.scrollTop=i.top,this.scrollLeft=i.left,this.viewportWidth=i.width,this.viewportHeight=i.height}getScrolledTopFromAbsoluteTop(e){return e-this.scrollTop}getVerticalOffsetForLineNumber(e,t){return this._viewLayout.getVerticalOffsetForLineNumber(e,t)}getVerticalOffsetAfterLineNumber(e,t){return this._viewLayout.getVerticalOffsetAfterLineNumber(e,t)}getDecorationsInViewport(){return this.viewportData.getDecorationsInViewport()}}class n extends s{constructor(e,t,i){super(e,t),this._renderingContextBrand=void 0,this._viewLines=i}linesVisibleRangesForRange(e,t){return this._viewLines.linesVisibleRangesForRange(e,t)}visibleRangeForPosition(e){return this._viewLines.visibleRangeForPosition(e)}}class r{constructor(e,t,i,s){this.outsideRenderedLine=e,this.lineNumber=t,this.ranges=i,this.continuesOnNextLine=s}}class o{static from(e){const t=new Array(e.length);for(let i=0,s=e.length;i<s;i++){const s=e[i];t[i]=new o(s.left,s.width)}return t}constructor(e,t){this._horizontalRangeBrand=void 0,this.left=Math.round(e),this.width=Math.round(t)}toString(){return`[${this.left},${this.width}]`}}class a{constructor(e,t){this._floatHorizontalRangeBrand=void 0,this.left=e,this.width=t}toString(){return`[${this.left},${this.width}]`}static compare(e,t){return e.left-t.left}}class c{constructor(e,t){this.outsideRenderedLine=e,this.originalLeft=t,this.left=Math.round(this.originalLeft)}}class l{constructor(e,t){this.outsideRenderedLine=e,this.ranges=t}}},80718:(e,t,i)=>{"use strict";i.r(t),i.d(t,{EditorWorkerHost:()=>s});class s{static{this.CHANNEL_NAME="editorWorkerHost"}static getChannel(e){return e.getChannel(s.CHANNEL_NAME)}static setChannel(e,t){e.setChannel(s.CHANNEL_NAME,t)}}},80781:(e,t,i)=>{"use strict";i.r(t),i.d(t,{CancellationTokenSource:()=>Pc,Emitter:()=>Fc,KeyCode:()=>Uc,KeyMod:()=>Hc,MarkerSeverity:()=>Gc,MarkerTag:()=>jc,Position:()=>Bc,Range:()=>Wc,Selection:()=>Vc,SelectionDirection:()=>zc,Token:()=>Yc,Uri:()=>Kc,default:()=>Zc,editor:()=>qc,languages:()=>$c});var s={};i.r(s),i.d(s,{CancellationTokenSource:()=>Pc,Emitter:()=>Fc,KeyCode:()=>Uc,KeyMod:()=>Hc,MarkerSeverity:()=>Gc,MarkerTag:()=>jc,Position:()=>Bc,Range:()=>Wc,Selection:()=>Vc,SelectionDirection:()=>zc,Token:()=>Yc,Uri:()=>Kc,editor:()=>qc,languages:()=>$c});i(44915),i(88952),i(36999),i(58590),i(6438),i(94908),i(4836);var n=i(52555),r=(i(64215),i(31659),i(99822),i(40142),i(18864),i(32516),i(20961),i(40800),i(2183),i(58568),i(63867),i(61731),i(34175),i(44588),i(70552),i(48279),i(65877),i(81091),i(99312),i(62427),i(58466),i(56800),i(28449),i(57244),i(76440),i(80409),i(58145),i(40677),i(9948),i(84325),i(15040),i(75639),i(85117),i(14614),i(95200),i(50352),i(4519),i(85646),i(77047),i(6429),i(28211),i(59731),i(57377),i(50071),i(18278),i(98745),i(44798),i(10617),i(30936),i(57197),i(90870),i(10846),i(22890),i(98472),i(50166),i(68887),i(47210),i(79907),i(38728),i(46606),i(87908)),o=i(73848),a=i(25893),c=i(5662),l=i(91508),h=i(79400),d=i(28433),u=i(31450),g=i(80301),p=i(10146),m=i(90766),f=i(51929),_=i(80789),v=i(64383),C=i(36456),E=i(25890),b=i(78209);let S;function y(e,t){const i=globalThis.MonacoEnvironment;if(i){if("function"===typeof i.getWorker)return i.getWorker("workerMain.js",t);if("function"===typeof i.getWorkerUrl){const e=i.getWorkerUrl("workerMain.js",t);return new Worker(S?S.createScriptURL(e):e,{name:t,type:"module"})}}if(e){const i=function(e,t,i){const s=/^((http:)|(https:)|(file:)|(vscode-file:))/.test(t);if(s&&t.substring(0,globalThis.origin.length)!==globalThis.origin);else{const i=t.lastIndexOf("?"),s=t.lastIndexOf("#",i),n=i>0?new URLSearchParams(t.substring(i+1,~s?s:void 0)):new URLSearchParams;C.SJ.addSearchParam(n,!0,!0);t=n.toString()?`${t}?${n.toString()}#${e}`:`${t}#${e}`}0;const n=new Blob([(0,E.Yc)([`/*${e}*/`,i?`globalThis.MonacoEnvironment = { baseUrl: '${i}' };`:void 0,`globalThis._VSCODE_NLS_MESSAGES = ${JSON.stringify((0,b.Ec)())};`,`globalThis._VSCODE_NLS_LANGUAGE = ${JSON.stringify((0,b.i8)())};`,`globalThis._VSCODE_FILE_ROOT = '${globalThis._VSCODE_FILE_ROOT}';`,"const ttPolicy = globalThis.trustedTypes?.createPolicy('defaultWorkerFactory', { createScriptURL: value => value });","globalThis.workerttPolicy = ttPolicy;",`await import(ttPolicy?.createScriptURL('${t}') ?? '${t}');`,"globalThis.postMessage({ type: 'vscode-worker-ready' });",`/*${e}*/`]).join("")],{type:"application/javascript"});return URL.createObjectURL(n)}(t,e.toString(!0)),s=new Worker(S?S.createScriptURL(i):i,{name:t,type:"module"});return function(e){return new Promise(((t,i)=>{e.onmessage=function(i){"vscode-worker-ready"===i.data.type&&(e.onmessage=null,t(e))},e.onerror=i}))}(s)}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}S="object"===typeof self&&self.constructor&&"DedicatedWorkerGlobalScope"===self.constructor.name&&void 0!==globalThis.workerttPolicy?globalThis.workerttPolicy:(0,_.H)("defaultWorkerFactory",{createScriptURL:e=>e});class w extends c.jG{constructor(e,t,i,s,n,r){super(),this.id=i,this.label=s;const o=y(e,s);"function"===typeof o.then?this.worker=o:this.worker=Promise.resolve(o),this.postMessage(t,[]),this.worker.then((e=>{e.onmessage=function(e){n(e.data)},e.onmessageerror=r,"function"===typeof e.addEventListener&&e.addEventListener("error",r)})),this._register((0,c.s)((()=>{this.worker?.then((e=>{e.onmessage=null,e.onmessageerror=null,e.removeEventListener("error",r),e.terminate()})),this.worker=null})))}getId(){return this.id}postMessage(e,t){this.worker?.then((i=>{try{i.postMessage(e,t)}catch(s){(0,v.dz)(s),(0,v.dz)(new Error(`FAILED to post message to '${this.label}'-worker`,{cause:s}))}}))}}class R{constructor(e,t){this.amdModuleId=e,this.label=t,this.esmModuleLocation=C.zl.asBrowserUri(`${e}.esm.js`)}}class L{static{this.LAST_WORKER_ID=0}constructor(){this._webWorkerFailedBeforeError=!1}create(e,t,i){const s=++L.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new w(e.esmModuleLocation,e.amdModuleId,s,e.label||"anonymous"+s,t,(e=>{(0,f.logOnceWebWorkerWarning)(e),this._webWorkerFailedBeforeError=e,i(e)}))}}var T=i(36677),x=i(17469),k=i(16545),A=i(23750),N=i(90360),I=i(18801),O=i(78381),D=i(56942),M=i(41845),P=i(87723),F=i(86571),U=i(8597),H=i(47443),B=i(80718),W=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},V=function(e,t){return function(i,s){t(i,s,e)}};const z=3e5;function G(e,t){const i=e.getModel(t);return!!i&&!i.isTooLargeForSyncing()}let j=class extends c.jG{constructor(e,t,i,s,n,r){super(),this._languageConfigurationService=n,this._modelService=t,this._workerManager=this._register(new Y(e,this._modelService)),this._logService=s,this._register(r.linkProvider.register({language:"*",hasAccessToAllModels:!0},{provideLinks:async(e,t)=>{if(!G(this._modelService,e.uri))return Promise.resolve({links:[]});const i=await this._workerWithResources([e.uri]),s=await i.$computeLinks(e.uri.toString());return s&&{links:s}}})),this._register(r.completionProvider.register("*",new K(this._workerManager,i,this._modelService,this._languageConfigurationService)))}dispose(){super.dispose()}canComputeUnicodeHighlights(e){return G(this._modelService,e)}async computedUnicodeHighlights(e,t,i){return(await this._workerWithResources([e])).$computeUnicodeHighlights(e.toString(),t,i)}async computeDiff(e,t,i,s){const n=await this._workerWithResources([e,t],!0),r=await n.$computeDiff(e.toString(),t.toString(),i,s);if(!r)return null;return{identical:r.identical,quitEarly:r.quitEarly,changes:o(r.changes),moves:r.moves.map((e=>new M.t(new P.WL(new F.M(e[0],e[1]),new F.M(e[2],e[3])),o(e[4]))))};function o(e){return e.map((e=>new P.wm(new F.M(e[0],e[1]),new F.M(e[2],e[3]),e[4]?.map((e=>new P.q6(new T.Q(e[0],e[1],e[2],e[3]),new T.Q(e[4],e[5],e[6],e[7])))))))}}async computeMoreMinimalEdits(e,t,i=!1){if((0,E.EI)(t)){if(!G(this._modelService,e))return Promise.resolve(t);const s=O.W.create(),n=this._workerWithResources([e]).then((s=>s.$computeMoreMinimalEdits(e.toString(),t,i)));return n.finally((()=>this._logService.trace("FORMAT#computeMoreMinimalEdits",e.toString(!0),s.elapsed()))),Promise.race([n,(0,m.wR)(1e3).then((()=>t))])}return Promise.resolve(void 0)}canNavigateValueSet(e){return G(this._modelService,e)}async navigateValueSet(e,t,i){const s=this._modelService.getModel(e);if(!s)return null;const n=this._languageConfigurationService.getLanguageConfiguration(s.getLanguageId()).getWordDefinition(),r=n.source,o=n.flags;return(await this._workerWithResources([e])).$navigateValueSet(e.toString(),t,i,r,o)}canComputeWordRanges(e){return G(this._modelService,e)}async computeWordRanges(e,t){const i=this._modelService.getModel(e);if(!i)return Promise.resolve(null);const s=this._languageConfigurationService.getLanguageConfiguration(i.getLanguageId()).getWordDefinition(),n=s.source,r=s.flags;return(await this._workerWithResources([e])).$computeWordRanges(e.toString(),t,n,r)}async findSectionHeaders(e,t){return(await this._workerWithResources([e])).$findSectionHeaders(e.toString(),t)}async computeDefaultDocumentColors(e){return(await this._workerWithResources([e])).$computeDefaultDocumentColors(e.toString())}async _workerWithResources(e,t=!1){const i=await this._workerManager.withWorker();return await i.workerWithSyncedResources(e,t)}};j=W([V(1,A.IModelService),V(2,N.ITextResourceConfigurationService),V(3,I.rr),V(4,x.JZ),V(5,D.ILanguageFeaturesService)],j);class K{constructor(e,t,i,s){this.languageConfigurationService=s,this._debugDisplayName="wordbasedCompletions",this._workerManager=e,this._configurationService=t,this._modelService=i}async provideCompletionItems(e,t){const i=this._configurationService.getValue(e.uri,t,"editor");if("off"===i.wordBasedSuggestions)return;const s=[];if("currentDocument"===i.wordBasedSuggestions)G(this._modelService,e.uri)&&s.push(e.uri);else for(const h of this._modelService.getModels())G(this._modelService,h.uri)&&(h===e?s.unshift(h.uri):"allDocuments"!==i.wordBasedSuggestions&&h.getLanguageId()!==e.getLanguageId()||s.push(h.uri));if(0===s.length)return;const n=this.languageConfigurationService.getLanguageConfiguration(e.getLanguageId()).getWordDefinition(),r=e.getWordAtPosition(t),o=r?new T.Q(t.lineNumber,r.startColumn,t.lineNumber,r.endColumn):T.Q.fromPositions(t),a=o.setEndPosition(t.lineNumber,t.column),c=await this._workerManager.withWorker(),l=await c.textualSuggest(s,r?.word,n);return l?{duration:l.duration,suggestions:l.words.map((e=>({kind:18,label:e,insertText:e,range:{insert:a,replace:o}})))}:void 0}}let Y=class extends c.jG{constructor(e,t){super(),this._workerDescriptor=e,this._modelService=t,this._editorWorkerClient=null,this._lastWorkerUsedTime=(new Date).getTime();this._register(new U.Be).cancelAndSet((()=>this._checkStopIdleWorker()),Math.round(15e4),a.G),this._register(this._modelService.onModelRemoved((e=>this._checkStopEmptyWorker())))}dispose(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),super.dispose()}_checkStopEmptyWorker(){if(!this._editorWorkerClient)return;0===this._modelService.getModels().length&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}_checkStopIdleWorker(){if(!this._editorWorkerClient)return;(new Date).getTime()-this._lastWorkerUsedTime>z&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}withWorker(){return this._lastWorkerUsedTime=(new Date).getTime(),this._editorWorkerClient||(this._editorWorkerClient=new $(this._workerDescriptor,!1,this._modelService)),Promise.resolve(this._editorWorkerClient)}};Y=W([V(1,A.IModelService)],Y);class q{constructor(e){this._instance=e,this.proxy=this._instance}dispose(){this._instance.dispose()}setChannel(e,t){throw new Error("Not supported")}}let $=class extends c.jG{constructor(e,t,i){super(),this._workerDescriptor=e,this._disposed=!1,this._modelService=i,this._keepIdleModels=t,this._worker=null,this._modelManager=null}fhr(e,t){throw new Error("Not implemented!")}_getOrCreateWorker(){if(!this._worker)try{this._worker=this._register(function(e,t){const i="string"===typeof e?new R(e,t):e;return new f.SimpleWorkerClient(new L,i)}(this._workerDescriptor)),B.EditorWorkerHost.setChannel(this._worker,this._createEditorWorkerHost())}catch(e){(0,f.logOnceWebWorkerWarning)(e),this._worker=this._createFallbackLocalWorker()}return this._worker}async _getProxy(){try{const e=this._getOrCreateWorker().proxy;return await e.$ping(),e}catch(e){return(0,f.logOnceWebWorkerWarning)(e),this._worker=this._createFallbackLocalWorker(),this._worker.proxy}}_createFallbackLocalWorker(){return new q(new k.EditorSimpleWorker(this._createEditorWorkerHost(),null))}_createEditorWorkerHost(){return{$fhr:(e,t)=>this.fhr(e,t)}}_getOrCreateModelManager(e){return this._modelManager||(this._modelManager=this._register(new H.WorkerTextModelSyncClient(e,this._modelService,this._keepIdleModels))),this._modelManager}async workerWithSyncedResources(e,t=!1){if(this._disposed)return Promise.reject((0,v.aD)());const i=await this._getProxy();return this._getOrCreateModelManager(i).ensureSyncedResources(e,t),i}async textualSuggest(e,t,i){const s=await this.workerWithSyncedResources(e),n=i.source,r=i.flags;return s.$textualSuggest(e.map((e=>e.toString())),t,n,r)}dispose(){super.dispose(),this._disposed=!0}};$=W([V(2,A.IModelService)],$);var Q=i(41234),X=i(58925),Z=i(47612),J=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},ee=function(e,t){return function(i,s){t(i,s,e)}};let te=class extends c.jG{constructor(e){super(),this._themeService=e,this._onWillCreateCodeEditor=this._register(new Q.vl),this._onCodeEditorAdd=this._register(new Q.vl),this.onCodeEditorAdd=this._onCodeEditorAdd.event,this._onCodeEditorRemove=this._register(new Q.vl),this.onCodeEditorRemove=this._onCodeEditorRemove.event,this._onWillCreateDiffEditor=this._register(new Q.vl),this._onDiffEditorAdd=this._register(new Q.vl),this.onDiffEditorAdd=this._onDiffEditorAdd.event,this._onDiffEditorRemove=this._register(new Q.vl),this.onDiffEditorRemove=this._onDiffEditorRemove.event,this._decorationOptionProviders=new Map,this._codeEditorOpenHandlers=new X.w,this._modelProperties=new Map,this._codeEditors=Object.create(null),this._diffEditors=Object.create(null),this._globalStyleSheet=null}willCreateCodeEditor(){this._onWillCreateCodeEditor.fire()}addCodeEditor(e){this._codeEditors[e.getId()]=e,this._onCodeEditorAdd.fire(e)}removeCodeEditor(e){delete this._codeEditors[e.getId()]&&this._onCodeEditorRemove.fire(e)}listCodeEditors(){return Object.keys(this._codeEditors).map((e=>this._codeEditors[e]))}willCreateDiffEditor(){this._onWillCreateDiffEditor.fire()}addDiffEditor(e){this._diffEditors[e.getId()]=e,this._onDiffEditorAdd.fire(e)}listDiffEditors(){return Object.keys(this._diffEditors).map((e=>this._diffEditors[e]))}getFocusedCodeEditor(){let e=null;const t=this.listCodeEditors();for(const i of t){if(i.hasTextFocus())return i;i.hasWidgetFocus()&&(e=i)}return e}removeDecorationType(e){const t=this._decorationOptionProviders.get(e);t&&(t.refCount--,t.refCount<=0&&(this._decorationOptionProviders.delete(e),t.dispose(),this.listCodeEditors().forEach((t=>t.removeDecorationsByType(e)))))}setModelProperty(e,t,i){const s=e.toString();let n;this._modelProperties.has(s)?n=this._modelProperties.get(s):(n=new Map,this._modelProperties.set(s,n)),n.set(t,i)}getModelProperty(e,t){const i=e.toString();if(this._modelProperties.has(i)){return this._modelProperties.get(i).get(t)}}async openCodeEditor(e,t,i){for(const s of this._codeEditorOpenHandlers){const n=await s(e,t,i);if(null!==n)return n}return null}registerCodeEditorOpenHandler(e){const t=this._codeEditorOpenHandlers.unshift(e);return(0,c.s)(t)}};te=J([ee(0,Z.Gy)],te);var ie=i(32848),se=i(14718),ne=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},re=function(e,t){return function(i,s){t(i,s,e)}};let oe=class extends te{constructor(e,t){super(t),this._register(this.onCodeEditorAdd((()=>this._checkContextKey()))),this._register(this.onCodeEditorRemove((()=>this._checkContextKey()))),this._editorIsOpen=e.createKey("editorIsOpen",!1),this._activeCodeEditor=null,this._register(this.registerCodeEditorOpenHandler((async(e,t,i)=>t?this.doOpenEditor(t,e):null)))}_checkContextKey(){let e=!1;for(const t of this.listCodeEditors())if(!t.isSimpleWidget){e=!0;break}this._editorIsOpen.set(e)}setActiveCodeEditor(e){this._activeCodeEditor=e}getActiveCodeEditor(){return this._activeCodeEditor}doOpenEditor(e,t){if(!this.findModel(e,t.resource)){if(t.resource){const i=t.resource.scheme;if(i===C.ny.http||i===C.ny.https)return(0,U.CE)(t.resource.toString()),e}return null}const i=t.options?t.options.selection:null;if(i)if("number"===typeof i.endLineNumber&&"number"===typeof i.endColumn)e.setSelection(i),e.revealRangeInCenter(i,1);else{const t={lineNumber:i.startLineNumber,column:i.startColumn};e.setPosition(t),e.revealPositionInCenter(t,1)}return e}findModel(e,t){const i=e.getModel();return i&&i.uri.toString()!==t.toString()?null:i}};oe=ne([re(0,ie.fN),re(1,Z.Gy)],oe),(0,se.v)(g.T,oe,0);var ae=i(63591);const ce=(0,ae.u1)("layoutService");var le=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},he=function(e,t){return function(i,s){t(i,s,e)}};let de=class{get mainContainer(){return(0,E.Fy)(this._codeEditorService.listCodeEditors())?.getContainerDomNode()??a.G.document.body}get activeContainer(){const e=this._codeEditorService.getFocusedCodeEditor()??this._codeEditorService.getActiveCodeEditor();return e?.getContainerDomNode()??this.mainContainer}get mainContainerDimension(){return U.tG(this.mainContainer)}get activeContainerDimension(){return U.tG(this.activeContainer)}get containers(){return(0,E.Yc)(this._codeEditorService.listCodeEditors().map((e=>e.getContainerDomNode())))}getContainer(){return this.activeContainer}whenContainerStylesLoaded(){}focus(){this._codeEditorService.getFocusedCodeEditor()?.focus()}constructor(e){this._codeEditorService=e,this.onDidLayoutMainContainer=Q.Jh.None,this.onDidLayoutActiveContainer=Q.Jh.None,this.onDidLayoutContainer=Q.Jh.None,this.onDidChangeActiveContainer=Q.Jh.None,this.onDidAddContainer=Q.Jh.None,this.mainContainerOffset={top:0,quickPickTop:0},this.activeContainerOffset={top:0,quickPickTop:0}}};de=le([he(0,g.T)],de);let ue=class extends de{get mainContainer(){return this._container}constructor(e,t){super(t),this._container=e}};ue=le([he(1,g.T)],ue),(0,se.v)(ce,de,1);var ge=i(42291),pe=i(59599),me=i(58591),fe=i(47579),_e=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},ve=function(e,t){return function(i,s){t(i,s,e)}};const Ce=!1;function Ee(e){return e.scheme===C.ny.file?e.fsPath:e.path}let be=0;class Se{constructor(e,t,i,s,n,r,o){this.id=++be,this.type=0,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabel=t,this.strResource=i,this.resourceLabels=[this.resourceLabel],this.strResources=[this.strResource],this.groupId=s,this.groupOrder=n,this.sourceId=r,this.sourceOrder=o,this.isValid=!0}setValid(e){this.isValid=e}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.isValid?" VALID":"INVALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class ye{constructor(e,t){this.resourceLabel=e,this.reason=t}}class we{constructor(){this.elements=new Map}createMessage(){const e=[],t=[];for(const[,s]of this.elements){(0===s.reason?e:t).push(s.resourceLabel)}const i=[];return e.length>0&&i.push(b.kg({key:"externalRemoval",comment:["{0} is a list of filenames"]},"The following files have been closed and modified on disk: {0}.",e.join(", "))),t.length>0&&i.push(b.kg({key:"noParallelUniverses",comment:["{0} is a list of filenames"]},"The following files have been modified in an incompatible way: {0}.",t.join(", "))),i.join("\n")}get size(){return this.elements.size}has(e){return this.elements.has(e)}set(e,t){this.elements.set(e,t)}delete(e){return this.elements.delete(e)}}class Re{constructor(e,t,i,s,n,r,o){this.id=++be,this.type=1,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabels=t,this.strResources=i,this.groupId=s,this.groupOrder=n,this.sourceId=r,this.sourceOrder=o,this.removedResources=null,this.invalidatedResources=null}canSplit(){return"function"===typeof this.actual.split}removeResource(e,t,i){this.removedResources||(this.removedResources=new we),this.removedResources.has(t)||this.removedResources.set(t,new ye(e,i))}setValid(e,t,i){i?this.invalidatedResources&&(this.invalidatedResources.delete(t),0===this.invalidatedResources.size&&(this.invalidatedResources=null)):(this.invalidatedResources||(this.invalidatedResources=new we),this.invalidatedResources.has(t)||this.invalidatedResources.set(t,new ye(e,0)))}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.invalidatedResources?"INVALID":" VALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class Le{constructor(e,t){this.resourceLabel=e,this.strResource=t,this._past=[],this._future=[],this.locked=!1,this.versionId=1}dispose(){for(const e of this._past)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,0);for(const e of this._future)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,0);this.versionId++}toString(){const e=[];e.push(`* ${this.strResource}:`);for(let t=0;t<this._past.length;t++)e.push(` * [UNDO] ${this._past[t]}`);for(let t=this._future.length-1;t>=0;t--)e.push(` * [REDO] ${this._future[t]}`);return e.join("\n")}flushAllElements(){this._past=[],this._future=[],this.versionId++}_setElementValidFlag(e,t){1===e.type?e.setValid(this.resourceLabel,this.strResource,t):e.setValid(t)}setElementsValidFlag(e,t){for(const i of this._past)t(i.actual)&&this._setElementValidFlag(i,e);for(const i of this._future)t(i.actual)&&this._setElementValidFlag(i,e)}pushElement(e){for(const t of this._future)1===t.type&&t.removeResource(this.resourceLabel,this.strResource,1);this._future=[],this._past.push(e),this.versionId++}createSnapshot(e){const t=[];for(let i=0,s=this._past.length;i<s;i++)t.push(this._past[i].id);for(let i=this._future.length-1;i>=0;i--)t.push(this._future[i].id);return new fe.To(e,t)}restoreSnapshot(e){const t=e.elements.length;let i=!0,s=0,n=-1;for(let o=0,a=this._past.length;o<a;o++,s++){const r=this._past[o];i&&(s>=t||r.id!==e.elements[s])&&(i=!1,n=0),i||1!==r.type||r.removeResource(this.resourceLabel,this.strResource,0)}let r=-1;for(let o=this._future.length-1;o>=0;o--,s++){const n=this._future[o];i&&(s>=t||n.id!==e.elements[s])&&(i=!1,r=o),i||1!==n.type||n.removeResource(this.resourceLabel,this.strResource,0)}-1!==n&&(this._past=this._past.slice(0,n)),-1!==r&&(this._future=this._future.slice(r+1)),this.versionId++}getElements(){const e=[],t=[];for(const i of this._past)e.push(i.actual);for(const i of this._future)t.push(i.actual);return{past:e,future:t}}getClosestPastElement(){return 0===this._past.length?null:this._past[this._past.length-1]}getSecondClosestPastElement(){return this._past.length<2?null:this._past[this._past.length-2]}getClosestFutureElement(){return 0===this._future.length?null:this._future[this._future.length-1]}hasPastElements(){return this._past.length>0}hasFutureElements(){return this._future.length>0}splitPastWorkspaceElement(e,t){for(let i=this._past.length-1;i>=0;i--)if(this._past[i]===e){t.has(this.strResource)?this._past[i]=t.get(this.strResource):this._past.splice(i,1);break}this.versionId++}splitFutureWorkspaceElement(e,t){for(let i=this._future.length-1;i>=0;i--)if(this._future[i]===e){t.has(this.strResource)?this._future[i]=t.get(this.strResource):this._future.splice(i,1);break}this.versionId++}moveBackward(e){this._past.pop(),this._future.push(e),this.versionId++}moveForward(e){this._future.pop(),this._past.push(e),this.versionId++}}class Te{constructor(e){this.editStacks=e,this._versionIds=[];for(let t=0,i=this.editStacks.length;t<i;t++)this._versionIds[t]=this.editStacks[t].versionId}isValid(){for(let e=0,t=this.editStacks.length;e<t;e++)if(this._versionIds[e]!==this.editStacks[e].versionId)return!1;return!0}}const xe=new Le("","");xe.locked=!0;let ke=class{constructor(e,t){this._dialogService=e,this._notificationService=t,this._editStacks=new Map,this._uriComparisonKeyComputers=[]}getUriComparisonKey(e){for(const t of this._uriComparisonKeyComputers)if(t[0]===e.scheme)return t[1].getComparisonKey(e);return e.toString()}_print(e){console.log("------------------------------------"),console.log(`AFTER ${e}: `);const t=[];for(const i of this._editStacks)t.push(i[1].toString());console.log(t.join("\n"))}pushElement(e,t=fe.I_.None,i=fe.Ym.None){if(0===e.type){const s=Ee(e.resource),n=this.getUriComparisonKey(e.resource);this._pushElement(new Se(e,s,n,t.id,t.nextOrder(),i.id,i.nextOrder()))}else{const s=new Set,n=[],r=[];for(const t of e.resources){const e=Ee(t),i=this.getUriComparisonKey(t);s.has(i)||(s.add(i),n.push(e),r.push(i))}1===n.length?this._pushElement(new Se(e,n[0],r[0],t.id,t.nextOrder(),i.id,i.nextOrder())):this._pushElement(new Re(e,n,r,t.id,t.nextOrder(),i.id,i.nextOrder()))}}_pushElement(e){for(let t=0,i=e.strResources.length;t<i;t++){const i=e.resourceLabels[t],s=e.strResources[t];let n;this._editStacks.has(s)?n=this._editStacks.get(s):(n=new Le(i,s),this._editStacks.set(s,n)),n.pushElement(e)}}getLastElement(e){const t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){const e=this._editStacks.get(t);if(e.hasFutureElements())return null;const i=e.getClosestPastElement();return i?i.actual:null}return null}_splitPastWorkspaceElement(e,t){const i=e.actual.split(),s=new Map;for(const n of i){const e=Ee(n.resource),t=this.getUriComparisonKey(n.resource),i=new Se(n,e,t,0,0,0,0);s.set(i.strResource,i)}for(const n of e.strResources){if(t&&t.has(n))continue;this._editStacks.get(n).splitPastWorkspaceElement(e,s)}}_splitFutureWorkspaceElement(e,t){const i=e.actual.split(),s=new Map;for(const n of i){const e=Ee(n.resource),t=this.getUriComparisonKey(n.resource),i=new Se(n,e,t,0,0,0,0);s.set(i.strResource,i)}for(const n of e.strResources){if(t&&t.has(n))continue;this._editStacks.get(n).splitFutureWorkspaceElement(e,s)}}removeElements(e){const t="string"===typeof e?e:this.getUriComparisonKey(e);if(this._editStacks.has(t)){this._editStacks.get(t).dispose(),this._editStacks.delete(t)}}setElementsValidFlag(e,t,i){const s=this.getUriComparisonKey(e);if(this._editStacks.has(s)){this._editStacks.get(s).setElementsValidFlag(t,i)}}createSnapshot(e){const t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){return this._editStacks.get(t).createSnapshot(e)}return new fe.To(e,[])}restoreSnapshot(e){const t=this.getUriComparisonKey(e.resource);if(this._editStacks.has(t)){const i=this._editStacks.get(t);i.restoreSnapshot(e),i.hasPastElements()||i.hasFutureElements()||(i.dispose(),this._editStacks.delete(t))}}getElements(e){const t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){return this._editStacks.get(t).getElements()}return{past:[],future:[]}}_findClosestUndoElementWithSource(e){if(!e)return[null,null];let t=null,i=null;for(const[s,n]of this._editStacks){const r=n.getClosestPastElement();r&&(r.sourceId===e&&(!t||r.sourceOrder>t.sourceOrder)&&(t=r,i=s))}return[t,i]}canUndo(e){if(e instanceof fe.Ym){const[,t]=this._findClosestUndoElementWithSource(e.id);return!!t}const t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){return this._editStacks.get(t).hasPastElements()}return!1}_onError(e,t){(0,v.dz)(e);for(const i of t.strResources)this.removeElements(i);this._notificationService.error(e)}_acquireLocks(e){for(const t of e.editStacks)if(t.locked)throw new Error("Cannot acquire edit stack lock");for(const t of e.editStacks)t.locked=!0;return()=>{for(const t of e.editStacks)t.locked=!1}}_safeInvokeWithLocks(e,t,i,s,n){const r=this._acquireLocks(i);let o;try{o=t()}catch(a){return r(),s.dispose(),this._onError(a,e)}return o?o.then((()=>(r(),s.dispose(),n())),(t=>(r(),s.dispose(),this._onError(t,e)))):(r(),s.dispose(),n())}async _invokeWorkspacePrepare(e){if("undefined"===typeof e.actual.prepareUndoRedo)return c.jG.None;const t=e.actual.prepareUndoRedo();return"undefined"===typeof t?c.jG.None:t}_invokeResourcePrepare(e,t){if(1!==e.actual.type||"undefined"===typeof e.actual.prepareUndoRedo)return t(c.jG.None);const i=e.actual.prepareUndoRedo();return i?(0,c.Xm)(i)?t(i):i.then((e=>t(e))):t(c.jG.None)}_getAffectedEditStacks(e){const t=[];for(const i of e.strResources)t.push(this._editStacks.get(i)||xe);return new Te(t)}_tryToSplitAndUndo(e,t,i,s){if(t.canSplit())return this._splitPastWorkspaceElement(t,i),this._notificationService.warn(s),new Ae(this._undo(e,0,!0));for(const n of t.strResources)this.removeElements(n);return this._notificationService.warn(s),new Ae}_checkWorkspaceUndo(e,t,i,s){if(t.removedResources)return this._tryToSplitAndUndo(e,t,t.removedResources,b.kg({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",t.label,t.removedResources.createMessage()));if(s&&t.invalidatedResources)return this._tryToSplitAndUndo(e,t,t.invalidatedResources,b.kg({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",t.label,t.invalidatedResources.createMessage()));const n=[];for(const o of i.editStacks)o.getClosestPastElement()!==t&&n.push(o.resourceLabel);if(n.length>0)return this._tryToSplitAndUndo(e,t,null,b.kg({key:"cannotWorkspaceUndoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because changes were made to {1}",t.label,n.join(", ")));const r=[];for(const o of i.editStacks)o.locked&&r.push(o.resourceLabel);return r.length>0?this._tryToSplitAndUndo(e,t,null,b.kg({key:"cannotWorkspaceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,r.join(", "))):i.isValid()?null:this._tryToSplitAndUndo(e,t,null,b.kg({key:"cannotWorkspaceUndoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceUndo(e,t,i){const s=this._getAffectedEditStacks(t),n=this._checkWorkspaceUndo(e,t,s,!1);return n?n.returnValue:this._confirmAndExecuteWorkspaceUndo(e,t,s,i)}_isPartOfUndoGroup(e){if(!e.groupId)return!1;for(const[,t]of this._editStacks){const i=t.getClosestPastElement();if(i){if(i===e){const i=t.getSecondClosestPastElement();if(i&&i.groupId===e.groupId)return!0}if(i.groupId===e.groupId)return!0}}return!1}async _confirmAndExecuteWorkspaceUndo(e,t,i,s){if(t.canSplit()&&!this._isPartOfUndoGroup(t)){let n;!function(e){e[e.All=0]="All",e[e.This=1]="This",e[e.Cancel=2]="Cancel"}(n||(n={}));const{result:r}=await this._dialogService.prompt({type:ge.A.Info,message:b.kg("confirmWorkspace","Would you like to undo '{0}' across all files?",t.label),buttons:[{label:b.kg({key:"ok",comment:["{0} denotes a number that is > 1, && denotes a mnemonic"]},"&&Undo in {0} Files",i.editStacks.length),run:()=>n.All},{label:b.kg({key:"nok",comment:["&& denotes a mnemonic"]},"Undo this &&File"),run:()=>n.This}],cancelButton:{run:()=>n.Cancel}});if(r===n.Cancel)return;if(r===n.This)return this._splitPastWorkspaceElement(t,null),this._undo(e,0,!0);const o=this._checkWorkspaceUndo(e,t,i,!1);if(o)return o.returnValue;s=!0}let n;try{n=await this._invokeWorkspacePrepare(t)}catch(o){return this._onError(o,t)}const r=this._checkWorkspaceUndo(e,t,i,!0);if(r)return n.dispose(),r.returnValue;for(const a of i.editStacks)a.moveBackward(t);return this._safeInvokeWithLocks(t,(()=>t.actual.undo()),i,n,(()=>this._continueUndoInGroup(t.groupId,s)))}_resourceUndo(e,t,i){if(t.isValid){if(!e.locked)return this._invokeResourcePrepare(t,(s=>(e.moveBackward(t),this._safeInvokeWithLocks(t,(()=>t.actual.undo()),new Te([e]),s,(()=>this._continueUndoInGroup(t.groupId,i))))));{const e=b.kg({key:"cannotResourceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not undo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(e)}}else e.flushAllElements()}_findClosestUndoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(const[s,n]of this._editStacks){const r=n.getClosestPastElement();r&&(r.groupId===e&&(!t||r.groupOrder>t.groupOrder)&&(t=r,i=s))}return[t,i]}_continueUndoInGroup(e,t){if(!e)return;const[,i]=this._findClosestUndoElementInGroup(e);return i?this._undo(i,0,t):void 0}undo(e){if(e instanceof fe.Ym){const[,t]=this._findClosestUndoElementWithSource(e.id);return t?this._undo(t,e.id,!1):void 0}return"string"===typeof e?this._undo(e,0,!1):this._undo(this.getUriComparisonKey(e),0,!1)}_undo(e,t=0,i){if(!this._editStacks.has(e))return;const s=this._editStacks.get(e),n=s.getClosestPastElement();if(!n)return;if(n.groupId){const[e,s]=this._findClosestUndoElementInGroup(n.groupId);if(n!==e&&s)return this._undo(s,t,i)}if((n.sourceId!==t||n.confirmBeforeUndo)&&!i)return this._confirmAndContinueUndo(e,t,n);try{return 1===n.type?this._workspaceUndo(e,n,i):this._resourceUndo(s,n,i)}finally{Ce}}async _confirmAndContinueUndo(e,t,i){if((await this._dialogService.confirm({message:b.kg("confirmDifferentSource","Would you like to undo '{0}'?",i.label),primaryButton:b.kg({key:"confirmDifferentSource.yes",comment:["&& denotes a mnemonic"]},"&&Yes"),cancelButton:b.kg("confirmDifferentSource.no","No")})).confirmed)return this._undo(e,t,!0)}_findClosestRedoElementWithSource(e){if(!e)return[null,null];let t=null,i=null;for(const[s,n]of this._editStacks){const r=n.getClosestFutureElement();r&&(r.sourceId===e&&(!t||r.sourceOrder<t.sourceOrder)&&(t=r,i=s))}return[t,i]}canRedo(e){if(e instanceof fe.Ym){const[,t]=this._findClosestRedoElementWithSource(e.id);return!!t}const t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){return this._editStacks.get(t).hasFutureElements()}return!1}_tryToSplitAndRedo(e,t,i,s){if(t.canSplit())return this._splitFutureWorkspaceElement(t,i),this._notificationService.warn(s),new Ae(this._redo(e));for(const n of t.strResources)this.removeElements(n);return this._notificationService.warn(s),new Ae}_checkWorkspaceRedo(e,t,i,s){if(t.removedResources)return this._tryToSplitAndRedo(e,t,t.removedResources,b.kg({key:"cannotWorkspaceRedo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not redo '{0}' across all files. {1}",t.label,t.removedResources.createMessage()));if(s&&t.invalidatedResources)return this._tryToSplitAndRedo(e,t,t.invalidatedResources,b.kg({key:"cannotWorkspaceRedo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not redo '{0}' across all files. {1}",t.label,t.invalidatedResources.createMessage()));const n=[];for(const o of i.editStacks)o.getClosestFutureElement()!==t&&n.push(o.resourceLabel);if(n.length>0)return this._tryToSplitAndRedo(e,t,null,b.kg({key:"cannotWorkspaceRedoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because changes were made to {1}",t.label,n.join(", ")));const r=[];for(const o of i.editStacks)o.locked&&r.push(o.resourceLabel);return r.length>0?this._tryToSplitAndRedo(e,t,null,b.kg({key:"cannotWorkspaceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,r.join(", "))):i.isValid()?null:this._tryToSplitAndRedo(e,t,null,b.kg({key:"cannotWorkspaceRedoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceRedo(e,t){const i=this._getAffectedEditStacks(t),s=this._checkWorkspaceRedo(e,t,i,!1);return s?s.returnValue:this._executeWorkspaceRedo(e,t,i)}async _executeWorkspaceRedo(e,t,i){let s;try{s=await this._invokeWorkspacePrepare(t)}catch(r){return this._onError(r,t)}const n=this._checkWorkspaceRedo(e,t,i,!0);if(n)return s.dispose(),n.returnValue;for(const o of i.editStacks)o.moveForward(t);return this._safeInvokeWithLocks(t,(()=>t.actual.redo()),i,s,(()=>this._continueRedoInGroup(t.groupId)))}_resourceRedo(e,t){if(t.isValid){if(!e.locked)return this._invokeResourcePrepare(t,(i=>(e.moveForward(t),this._safeInvokeWithLocks(t,(()=>t.actual.redo()),new Te([e]),i,(()=>this._continueRedoInGroup(t.groupId))))));{const e=b.kg({key:"cannotResourceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not redo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(e)}}else e.flushAllElements()}_findClosestRedoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(const[s,n]of this._editStacks){const r=n.getClosestFutureElement();r&&(r.groupId===e&&(!t||r.groupOrder<t.groupOrder)&&(t=r,i=s))}return[t,i]}_continueRedoInGroup(e){if(!e)return;const[,t]=this._findClosestRedoElementInGroup(e);return t?this._redo(t):void 0}redo(e){if(e instanceof fe.Ym){const[,t]=this._findClosestRedoElementWithSource(e.id);return t?this._redo(t):void 0}return"string"===typeof e?this._redo(e):this._redo(this.getUriComparisonKey(e))}_redo(e){if(!this._editStacks.has(e))return;const t=this._editStacks.get(e),i=t.getClosestFutureElement();if(i){if(i.groupId){const[e,t]=this._findClosestRedoElementInGroup(i.groupId);if(i!==e&&t)return this._redo(t)}try{return 1===i.type?this._workspaceRedo(e,i):this._resourceRedo(t,i)}finally{Ce}}}};ke=_e([ve(0,pe.X),ve(1,me.Ot)],ke);class Ae{constructor(e){this.returnValue=e}}(0,se.v)(fe.$D,ke,1);i(32500),i(27004),i(76007);var Ne=i(66261),Ie=i(67220),Oe=i(47508),De=i(98031),Me=i(84001),Pe=i(52776),Fe=i(17390),Ue=i(49099),He=i(20492),Be=i(16980),We=i(98067),Ve=i(253),ze=i(11007),Ge=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},je=function(e,t){return function(i,s){t(i,s,e)}};const Ke=U.$;let Ye=class extends Fe.x{get _targetWindow(){return U.zk(this._target.targetElements[0])}get _targetDocumentElement(){return U.zk(this._target.targetElements[0]).document.documentElement}get isDisposed(){return this._isDisposed}get isMouseIn(){return this._lockMouseTracker.isMouseIn}get domNode(){return this._hover.containerDomNode}get onDispose(){return this._onDispose.event}get onRequestLayout(){return this._onRequestLayout.event}get anchor(){return 2===this._hoverPosition?0:1}get x(){return this._x}get y(){return this._y}get isLocked(){return this._isLocked}set isLocked(e){this._isLocked!==e&&(this._isLocked=e,this._hoverContainer.classList.toggle("locked",this._isLocked))}constructor(e,t,i,s,n,o){super(),this._keybindingService=t,this._configurationService=i,this._openerService=s,this._instantiationService=n,this._accessibilityService=o,this._messageListeners=new c.Cm,this._isDisposed=!1,this._forcePosition=!1,this._x=0,this._y=0,this._isLocked=!1,this._enableFocusTraps=!1,this._addedFocusTrap=!1,this._onDispose=this._register(new Q.vl),this._onRequestLayout=this._register(new Q.vl),this._linkHandler=e.linkHandler||(t=>(0,He.i)(this._openerService,t,(0,Be.VS)(e.content)?e.content.isTrusted:void 0)),this._target="targetElements"in e.target?e.target:new $e(e.target),this._hoverPointer=e.appearance?.showPointer?Ke("div.workbench-hover-pointer"):void 0,this._hover=this._register(new Pe.N4),this._hover.containerDomNode.classList.add("workbench-hover","fadeIn"),e.appearance?.compact&&this._hover.containerDomNode.classList.add("workbench-hover","compact"),e.appearance?.skipFadeInAnimation&&this._hover.containerDomNode.classList.add("skip-fade-in"),e.additionalClasses&&this._hover.containerDomNode.classList.add(...e.additionalClasses),e.position?.forcePosition&&(this._forcePosition=!0),e.trapFocus&&(this._enableFocusTraps=!0),this._hoverPosition=e.position?.hoverPosition??3,this.onmousedown(this._hover.containerDomNode,(e=>e.stopPropagation())),this.onkeydown(this._hover.containerDomNode,(e=>{e.equals(9)&&this.dispose()})),this._register(U.ko(this._targetWindow,"blur",(()=>this.dispose())));const a=Ke("div.hover-row.markdown-hover"),l=Ke("div.hover-contents");if("string"===typeof e.content)l.textContent=e.content,l.style.whiteSpace="pre-wrap";else if(U.sb(e.content))l.appendChild(e.content),l.classList.add("html-hover-contents");else{const t=e.content,i=this._instantiationService.createInstance(He.T,{codeBlockFontFamily:this._configurationService.getValue("editor").fontFamily||r.jU.fontFamily}),{element:s}=i.render(t,{actionHandler:{callback:e=>this._linkHandler(e),disposables:this._messageListeners},asyncRenderCallback:()=>{l.classList.add("code-hover-contents"),this.layout(),this._onRequestLayout.fire()}});l.appendChild(s)}if(a.appendChild(l),this._hover.contentsDomNode.appendChild(a),e.actions&&e.actions.length>0){const t=Ke("div.hover-row.status-bar"),i=Ke("div.actions");e.actions.forEach((e=>{const t=this._keybindingService.lookupKeybinding(e.commandId),s=t?t.getLabel():null;Pe.jQ.render(i,{label:e.label,commandId:e.commandId,run:t=>{e.run(t),this.dispose()},iconClass:e.iconClass},s)})),t.appendChild(i),this._hover.containerDomNode.appendChild(t)}let h;if(this._hoverContainer=Ke("div.workbench-hover-container"),this._hoverPointer&&this._hoverContainer.appendChild(this._hoverPointer),this._hoverContainer.appendChild(this._hover.containerDomNode),h=!(e.actions&&e.actions.length>0)&&(void 0===e.persistence?.hideOnHover?"string"===typeof e.content||(0,Be.VS)(e.content)&&!e.content.value.includes("](")&&!e.content.value.includes("</a>"):e.persistence.hideOnHover),e.appearance?.showHoverHint){const e=Ke("div.hover-row.status-bar"),t=Ke("div.info");t.textContent=(0,b.kg)("hoverhint","Hold {0} key to mouse over",We.zx?"Option":"Alt"),e.appendChild(t),this._hover.containerDomNode.appendChild(e)}const d=[...this._target.targetElements];h||d.push(this._hoverContainer);const u=this._register(new qe(d));if(this._register(u.onMouseOut((()=>{this._isLocked||this.dispose()}))),h){const e=[...this._target.targetElements,this._hoverContainer];this._lockMouseTracker=this._register(new qe(e)),this._register(this._lockMouseTracker.onMouseOut((()=>{this._isLocked||this.dispose()})))}else this._lockMouseTracker=u}addFocusTrap(){if(!this._enableFocusTraps||this._addedFocusTrap)return;this._addedFocusTrap=!0;const e=this._hover.containerDomNode,t=this.findLastFocusableChild(this._hover.containerDomNode);if(t){const i=U.Hs(this._hoverContainer,Ke("div")),s=U.BC(this._hoverContainer,Ke("div"));i.tabIndex=0,s.tabIndex=0,this._register(U.ko(s,"focus",(t=>{e.focus(),t.preventDefault()}))),this._register(U.ko(i,"focus",(e=>{t.focus(),e.preventDefault()})))}}findLastFocusableChild(e){if(e.hasChildNodes())for(let t=0;t<e.childNodes.length;t++){const i=e.childNodes.item(e.childNodes.length-t-1);if(i.nodeType===i.ELEMENT_NODE){const e=i;if("number"===typeof e.tabIndex&&e.tabIndex>=0)return e}const s=this.findLastFocusableChild(i);if(s)return s}}render(e){e.appendChild(this._hoverContainer);const t=this._hoverContainer.contains(this._hoverContainer.ownerDocument.activeElement)&&(0,Pe.vr)(!0===this._configurationService.getValue("accessibility.verbosity.hover")&&this._accessibilityService.isScreenReaderOptimized(),this._keybindingService.lookupKeybinding("editor.action.accessibleView")?.getAriaLabel());t&&(0,ze.h5)(t),this.layout(),this.addFocusTrap()}layout(){this._hover.containerDomNode.classList.remove("right-aligned"),this._hover.contentsDomNode.style.maxHeight="";const e=this._target.targetElements.map((e=>(e=>{const t=U.mU(e),i=e.getBoundingClientRect();return{top:i.top*t,bottom:i.bottom*t,right:i.right*t,left:i.left*t}})(e))),{top:t,right:i,bottom:s,left:n}=e[0],r=i-n,o=s-t,a={top:t,right:i,bottom:s,left:n,width:r,height:o,center:{x:n+r/2,y:t+o/2}};if(this.adjustHorizontalHoverPosition(a),this.adjustVerticalHoverPosition(a),this.adjustHoverMaxHeight(a),this._hoverContainer.style.padding="",this._hoverContainer.style.margin="",this._hoverPointer){switch(this._hoverPosition){case 1:a.left+=3,a.right+=3,this._hoverContainer.style.paddingLeft="3px",this._hoverContainer.style.marginLeft="-3px";break;case 0:a.left-=3,a.right-=3,this._hoverContainer.style.paddingRight="3px",this._hoverContainer.style.marginRight="-3px";break;case 2:a.top+=3,a.bottom+=3,this._hoverContainer.style.paddingTop="3px",this._hoverContainer.style.marginTop="-3px";break;case 3:a.top-=3,a.bottom-=3,this._hoverContainer.style.paddingBottom="3px",this._hoverContainer.style.marginBottom="-3px"}a.center.x=a.left+r/2,a.center.y=a.top+o/2}this.computeXCordinate(a),this.computeYCordinate(a),this._hoverPointer&&(this._hoverPointer.classList.remove("top"),this._hoverPointer.classList.remove("left"),this._hoverPointer.classList.remove("right"),this._hoverPointer.classList.remove("bottom"),this.setHoverPointerPosition(a)),this._hover.onContentsChanged()}computeXCordinate(e){const t=this._hover.containerDomNode.clientWidth+2;void 0!==this._target.x?this._x=this._target.x:1===this._hoverPosition?this._x=e.right:0===this._hoverPosition?this._x=e.left-t:(this._hoverPointer?this._x=e.center.x-this._hover.containerDomNode.clientWidth/2:this._x=e.left,this._x+t>=this._targetDocumentElement.clientWidth&&(this._hover.containerDomNode.classList.add("right-aligned"),this._x=Math.max(this._targetDocumentElement.clientWidth-t-2,this._targetDocumentElement.clientLeft))),this._x<this._targetDocumentElement.clientLeft&&(this._x=e.left+2)}computeYCordinate(e){void 0!==this._target.y?this._y=this._target.y:3===this._hoverPosition?this._y=e.top:2===this._hoverPosition?this._y=e.bottom-2:this._hoverPointer?this._y=e.center.y+this._hover.containerDomNode.clientHeight/2:this._y=e.bottom,this._y>this._targetWindow.innerHeight&&(this._y=e.bottom)}adjustHorizontalHoverPosition(e){if(void 0!==this._target.x)return;const t=this._hoverPointer?3:0;if(this._forcePosition){const i=t+2;1===this._hoverPosition?this._hover.containerDomNode.style.maxWidth=this._targetDocumentElement.clientWidth-e.right-i+"px":0===this._hoverPosition&&(this._hover.containerDomNode.style.maxWidth=e.left-i+"px")}else if(1===this._hoverPosition){if(this._targetDocumentElement.clientWidth-e.right<this._hover.containerDomNode.clientWidth+t){e.left>=this._hover.containerDomNode.clientWidth+t?this._hoverPosition=0:this._hoverPosition=2}}else if(0===this._hoverPosition){if(e.left<this._hover.containerDomNode.clientWidth+t){this._targetDocumentElement.clientWidth-e.right>=this._hover.containerDomNode.clientWidth+t?this._hoverPosition=1:this._hoverPosition=2}e.left-this._hover.containerDomNode.clientWidth-t<=this._targetDocumentElement.clientLeft&&(this._hoverPosition=1)}}adjustVerticalHoverPosition(e){if(void 0!==this._target.y||this._forcePosition)return;const t=this._hoverPointer?3:0;3===this._hoverPosition?e.top-this._hover.containerDomNode.clientHeight-t<0&&(this._hoverPosition=2):2===this._hoverPosition&&e.bottom+this._hover.containerDomNode.clientHeight+t>this._targetWindow.innerHeight&&(this._hoverPosition=3)}adjustHoverMaxHeight(e){let t=this._targetWindow.innerHeight/2;if(this._forcePosition){const i=2+(this._hoverPointer?3:0);3===this._hoverPosition?t=Math.min(t,e.top-i):2===this._hoverPosition&&(t=Math.min(t,this._targetWindow.innerHeight-e.bottom-i))}if(this._hover.containerDomNode.style.maxHeight=`${t}px`,this._hover.contentsDomNode.clientHeight<this._hover.contentsDomNode.scrollHeight){const e=`${this._hover.scrollbar.options.verticalScrollbarSize}px`;this._hover.contentsDomNode.style.paddingRight!==e&&(this._hover.contentsDomNode.style.paddingRight=e)}}setHoverPointerPosition(e){if(this._hoverPointer)switch(this._hoverPosition){case 0:case 1:{this._hoverPointer.classList.add(0===this._hoverPosition?"right":"left");const t=this._hover.containerDomNode.clientHeight;t>e.height?this._hoverPointer.style.top=e.center.y-(this._y-t)-3+"px":this._hoverPointer.style.top=Math.round(t/2)-3+"px";break}case 3:case 2:{this._hoverPointer.classList.add(3===this._hoverPosition?"bottom":"top");const t=this._hover.containerDomNode.clientWidth;let i=Math.round(t/2)-3;const s=this._x+i;(s<e.left||s>e.right)&&(i=e.center.x-this._x-3),this._hoverPointer.style.left=`${i}px`;break}}}focus(){this._hover.containerDomNode.focus()}dispose(){this._isDisposed||(this._onDispose.fire(),this._hoverContainer.remove(),this._messageListeners.dispose(),this._target.dispose(),super.dispose()),this._isDisposed=!0}};Ye=Ge([je(1,De.b),je(2,Me.pG),je(3,Ue.C),je(4,ae._Y),je(5,Ve.j)],Ye);class qe extends Fe.x{get onMouseOut(){return this._onMouseOut.event}get isMouseIn(){return this._isMouseIn}constructor(e){super(),this._elements=e,this._isMouseIn=!0,this._onMouseOut=this._register(new Q.vl),this._elements.forEach((e=>this.onmouseover(e,(()=>this._onTargetMouseOver(e))))),this._elements.forEach((e=>this.onmouseleave(e,(()=>this._onTargetMouseLeave(e)))))}_onTargetMouseOver(e){this._isMouseIn=!0,this._clearEvaluateMouseStateTimeout(e)}_onTargetMouseLeave(e){this._isMouseIn=!1,this._evaluateMouseState(e)}_evaluateMouseState(e){this._clearEvaluateMouseStateTimeout(e),this._mouseTimeout=U.zk(e).setTimeout((()=>this._fireIfMouseOutside()),0)}_clearEvaluateMouseStateTimeout(e){this._mouseTimeout&&(U.zk(e).clearTimeout(this._mouseTimeout),this._mouseTimeout=void 0)}_fireIfMouseOutside(){this._isMouseIn||this._onMouseOut.fire()}}class $e{constructor(e){this._element=e,this.targetElements=[this._element]}dispose(){}}var Qe,Xe=i(72962),Ze=i(55089),Je=i(92719);function et(e,t,i){const s=i.mode===Qe.ALIGN?i.offset:i.offset+i.size,n=i.mode===Qe.ALIGN?i.offset+i.size:i.offset;return 0===i.position?t<=e-s?s:t<=n?n-t:Math.max(e-t,0):t<=n?n-t:t<=e-s?s:0}!function(e){e[e.AVOID=0]="AVOID",e[e.ALIGN=1]="ALIGN"}(Qe||(Qe={}));class tt extends c.jG{static{this.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"]}static{this.BUBBLE_DOWN_EVENTS=["click"]}constructor(e,t){super(),this.container=null,this.useFixedPosition=!1,this.useShadowDOM=!1,this.delegate=null,this.toDisposeOnClean=c.jG.None,this.toDisposeOnSetContainer=c.jG.None,this.shadowRoot=null,this.shadowRootHostElement=null,this.view=U.$(".context-view"),U.jD(this.view),this.setContainer(e,t),this._register((0,c.s)((()=>this.setContainer(null,1))))}setContainer(e,t){this.useFixedPosition=1!==t;const i=this.useShadowDOM;if(this.useShadowDOM=3===t,(e!==this.container||i!==this.useShadowDOM)&&(this.container&&(this.toDisposeOnSetContainer.dispose(),this.view.remove(),this.shadowRoot&&(this.shadowRoot=null,this.shadowRootHostElement?.remove(),this.shadowRootHostElement=null),this.container=null),e)){if(this.container=e,this.useShadowDOM){this.shadowRootHostElement=U.$(".shadow-root-host"),this.container.appendChild(this.shadowRootHostElement),this.shadowRoot=this.shadowRootHostElement.attachShadow({mode:"open"});const e=document.createElement("style");e.textContent=it,this.shadowRoot.appendChild(e),this.shadowRoot.appendChild(this.view),this.shadowRoot.appendChild(U.$("slot"))}else this.container.appendChild(this.view);const t=new c.Cm;tt.BUBBLE_UP_EVENTS.forEach((e=>{t.add(U.b2(this.container,e,(e=>{this.onDOMEvent(e,!1)})))})),tt.BUBBLE_DOWN_EVENTS.forEach((e=>{t.add(U.b2(this.container,e,(e=>{this.onDOMEvent(e,!0)}),!0))})),this.toDisposeOnSetContainer=t}}show(e){this.isVisible()&&this.hide(),U.w_(this.view),this.view.className="context-view monaco-component",this.view.style.top="0px",this.view.style.left="0px",this.view.style.zIndex=`${2575+(e.layer??0)}`,this.view.style.position=this.useFixedPosition?"fixed":"absolute",U.WU(this.view),this.toDisposeOnClean=e.render(this.view)||c.jG.None,this.delegate=e,this.doLayout(),this.delegate.focus?.()}getViewElement(){return this.view}layout(){this.isVisible()&&(!1!==this.delegate.canRelayout||We.un&&Ze.e.pointerEvents?(this.delegate?.layout?.(),this.doLayout()):this.hide())}doLayout(){if(!this.isVisible())return;const e=this.delegate.getAnchor();let t;if(U.sb(e)){const i=U.BK(e),s=U.mU(e);t={top:i.top*s,left:i.left*s,width:i.width*s,height:i.height*s}}else t=function(e){const t=e;return!!t&&"number"===typeof t.x&&"number"===typeof t.y}(e)?{top:e.y,left:e.x,width:e.width||1,height:e.height||2}:{top:e.posy,left:e.posx,width:2,height:2};const i=U.Tr(this.view),s=U.OK(this.view),n=this.delegate.anchorPosition||0,r=this.delegate.anchorAlignment||0,o=this.delegate.anchorAxisAlignment||0;let a,c;const l=U.fz();if(0===o){const e={offset:t.top-l.pageYOffset,size:t.height,position:0===n?0:1},o={offset:t.left,size:t.width,position:0===r?0:1,mode:Qe.ALIGN};a=et(l.innerHeight,s,e)+l.pageYOffset,Je.Q.intersects({start:a,end:a+s},{start:e.offset,end:e.offset+e.size})&&(o.mode=Qe.AVOID),c=et(l.innerWidth,i,o)}else{const e={offset:t.left,size:t.width,position:0===r?0:1},o={offset:t.top,size:t.height,position:0===n?0:1,mode:Qe.ALIGN};c=et(l.innerWidth,i,e),Je.Q.intersects({start:c,end:c+i},{start:e.offset,end:e.offset+e.size})&&(o.mode=Qe.AVOID),a=et(l.innerHeight,s,o)+l.pageYOffset}this.view.classList.remove("top","bottom","left","right"),this.view.classList.add(0===n?"bottom":"top"),this.view.classList.add(0===r?"left":"right"),this.view.classList.toggle("fixed",this.useFixedPosition);const h=U.BK(this.container);this.view.style.top=a-(this.useFixedPosition?U.BK(this.view).top:h.top)+"px",this.view.style.left=c-(this.useFixedPosition?U.BK(this.view).left:h.left)+"px",this.view.style.width="initial"}hide(e){const t=this.delegate;this.delegate=null,t?.onHide&&t.onHide(e),this.toDisposeOnClean.dispose(),U.jD(this.view)}isVisible(){return!!this.delegate}onDOMEvent(e,t){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(e,U.zk(e).document.activeElement):t&&!U.QX(e.target,this.container)&&this.hide())}dispose(){this.hide(),super.dispose()}}const it='\n\t:host {\n\t\tall: initial; /* 1st rule so subsequent properties are reset. */\n\t}\n\n\t.codicon[class*=\'codicon-\'] {\n\t\tfont: normal normal normal 16px/1 codicon;\n\t\tdisplay: inline-block;\n\t\ttext-decoration: none;\n\t\ttext-rendering: auto;\n\t\ttext-align: center;\n\t\t-webkit-font-smoothing: antialiased;\n\t\t-moz-osx-font-smoothing: grayscale;\n\t\tuser-select: none;\n\t\t-webkit-user-select: none;\n\t\t-ms-user-select: none;\n\t}\n\n\t:host {\n\t\tfont-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "HelveticaNeue-Light", system-ui, "Ubuntu", "Droid Sans", sans-serif;\n\t}\n\n\t:host-context(.mac) { font-family: -apple-system, BlinkMacSystemFont, sans-serif; }\n\t:host-context(.mac:lang(zh-Hans)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", sans-serif; }\n\t:host-context(.mac:lang(zh-Hant)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", sans-serif; }\n\t:host-context(.mac:lang(ja)) { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic Pro", sans-serif; }\n\t:host-context(.mac:lang(ko)) { font-family: -apple-system, BlinkMacSystemFont, "Nanum Gothic", "Apple SD Gothic Neo", "AppleGothic", sans-serif; }\n\n\t:host-context(.windows) { font-family: "Segoe WPC", "Segoe UI", sans-serif; }\n\t:host-context(.windows:lang(zh-Hans)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft YaHei", sans-serif; }\n\t:host-context(.windows:lang(zh-Hant)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft Jhenghei", sans-serif; }\n\t:host-context(.windows:lang(ja)) { font-family: "Segoe WPC", "Segoe UI", "Yu Gothic UI", "Meiryo UI", sans-serif; }\n\t:host-context(.windows:lang(ko)) { font-family: "Segoe WPC", "Segoe UI", "Malgun Gothic", "Dotom", sans-serif; }\n\n\t:host-context(.linux) { font-family: system-ui, "Ubuntu", "Droid Sans", sans-serif; }\n\t:host-context(.linux:lang(zh-Hans)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans SC", "Source Han Sans CN", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(zh-Hant)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans TC", "Source Han Sans TW", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(ja)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans J", "Source Han Sans JP", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(ko)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans K", "Source Han Sans JR", "Source Han Sans", "UnDotum", "FBaekmuk Gulim", sans-serif; }\n';var st=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},nt=function(e,t){return function(i,s){t(i,s,e)}};let rt=class extends c.jG{constructor(e){super(),this.layoutService=e,this.contextView=this._register(new tt(this.layoutService.mainContainer,1)),this.layout(),this._register(e.onDidLayoutContainer((()=>this.layout())))}showContextView(e,t,i){let s;s=t?t===this.layoutService.getContainer((0,U.zk)(t))?1:i?3:2:1,this.contextView.setContainer(t??this.layoutService.activeContainer,s),this.contextView.show(e);const n={close:()=>{this.openContextView===n&&this.hideContextView()}};return this.openContextView=n,n}layout(){this.contextView.layout()}hideContextView(e){this.contextView.hide(e),this.openContextView=void 0}};rt=st([nt(0,ce)],rt);class ot extends rt{getContextViewElement(){return this.contextView.getViewElement()}}var at=i(18447),ct=i(631);class lt{constructor(e,t,i){this.hoverDelegate=e,this.target=t,this.fadeInAnimation=i}async update(e,t,i){if(this._cancellationTokenSource&&(this._cancellationTokenSource.dispose(!0),this._cancellationTokenSource=void 0),this.isDisposed)return;let s;if(void 0===e||(0,ct.Kg)(e)||(0,U.sb)(e))s=e;else if((0,ct.Tn)(e.markdown)){this._hoverWidget||this.show((0,b.kg)("iconLabel.loading","Loading..."),t,i),this._cancellationTokenSource=new at.Qi;const n=this._cancellationTokenSource.token;if(s=await e.markdown(n),void 0===s&&(s=e.markdownNotSupportedFallback),this.isDisposed||n.isCancellationRequested)return}else s=e.markdown??e.markdownNotSupportedFallback;this.show(s,t,i)}show(e,t,i){const s=this._hoverWidget;if(this.hasContent(e)){const n={content:e,target:this.target,actions:i?.actions,linkHandler:i?.linkHandler,trapFocus:i?.trapFocus,appearance:{showPointer:"element"===this.hoverDelegate.placement,skipFadeInAnimation:!this.fadeInAnimation||!!s,showHoverHint:i?.appearance?.showHoverHint},position:{hoverPosition:2}};this._hoverWidget=this.hoverDelegate.showHover(n,t)}s?.dispose()}hasContent(e){return!!e&&(!(0,Be.VS)(e)||!!e.value)}get isDisposed(){return this._hoverWidget?.isDisposed}dispose(){this._hoverWidget?.dispose(),this._cancellationTokenSource?.dispose(!0),this._cancellationTokenSource=void 0}}var ht=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},dt=function(e,t){return function(i,s){t(i,s,e)}};let ut=class extends c.jG{constructor(e,t,i,s,n){super(),this._instantiationService=e,this._keybindingService=i,this._layoutService=s,this._accessibilityService=n,this._managedHovers=new Map,t.onDidShowContextMenu((()=>this.hideHover())),this._contextViewHandler=this._register(new rt(this._layoutService))}showHover(e,t,i){if(gt(this._currentHoverOptions)===gt(e))return;if(this._currentHover&&this._currentHoverOptions?.persistence?.sticky)return;this._currentHoverOptions=e,this._lastHoverOptions=e;const s=e.trapFocus||this._accessibilityService.isScreenReaderOptimized(),n=(0,U.bq)();i||(s&&n?n.classList.contains("monaco-hover")||(this._lastFocusedElementBeforeOpen=n):this._lastFocusedElementBeforeOpen=void 0);const r=new c.Cm,o=this._instantiationService.createInstance(Ye,e);if(e.persistence?.sticky&&(o.isLocked=!0),o.onDispose((()=>{this._currentHover?.domNode&&(0,U.nR)(this._currentHover.domNode)&&this._lastFocusedElementBeforeOpen?.focus(),this._currentHoverOptions===e&&(this._currentHoverOptions=void 0),r.dispose()}),void 0,r),!e.container){const t=(0,U.sb)(e.target)?e.target:e.target.targetElements[0];e.container=this._layoutService.getContainer((0,U.zk)(t))}if(this._contextViewHandler.showContextView(new pt(o,t),e.container),o.onRequestLayout((()=>this._contextViewHandler.layout()),void 0,r),e.persistence?.sticky)r.add((0,U.ko)((0,U.zk)(e.container).document,U.Bx.MOUSE_DOWN,(e=>{(0,U.QX)(e.target,o.domNode)||this.doHideHover()})));else{if("targetElements"in e.target)for(const i of e.target.targetElements)r.add((0,U.ko)(i,U.Bx.CLICK,(()=>this.hideHover())));else r.add((0,U.ko)(e.target,U.Bx.CLICK,(()=>this.hideHover())));const t=(0,U.bq)();if(t){const i=(0,U.zk)(t).document;r.add((0,U.ko)(t,U.Bx.KEY_DOWN,(t=>this._keyDown(t,o,!!e.persistence?.hideOnKeyDown)))),r.add((0,U.ko)(i,U.Bx.KEY_DOWN,(t=>this._keyDown(t,o,!!e.persistence?.hideOnKeyDown)))),r.add((0,U.ko)(t,U.Bx.KEY_UP,(e=>this._keyUp(e,o)))),r.add((0,U.ko)(i,U.Bx.KEY_UP,(e=>this._keyUp(e,o))))}}if("IntersectionObserver"in a.G){const t=new IntersectionObserver((e=>this._intersectionChange(e,o)),{threshold:0}),i="targetElements"in e.target?e.target.targetElements[0]:e.target;t.observe(i),r.add((0,c.s)((()=>t.disconnect())))}return this._currentHover=o,o}hideHover(){!this._currentHover?.isLocked&&this._currentHoverOptions&&this.doHideHover()}doHideHover(){this._currentHover=void 0,this._currentHoverOptions=void 0,this._contextViewHandler.hideContextView()}_intersectionChange(e,t){e[e.length-1].isIntersecting||t.dispose()}showAndFocusLastHover(){this._lastHoverOptions&&this.showHover(this._lastHoverOptions,!0,!0)}_keyDown(e,t,i){if("Alt"===e.key)return void(t.isLocked=!0);const s=new Xe.Z(e);this._keybindingService.resolveKeyboardEvent(s).getSingleModifierDispatchChords().some((e=>!!e))||0!==this._keybindingService.softDispatch(s,s.target).kind||!i||this._currentHoverOptions?.trapFocus&&"Tab"===e.key||(this.hideHover(),this._lastFocusedElementBeforeOpen?.focus())}_keyUp(e,t){"Alt"===e.key&&(t.isLocked=!1,t.isMouseIn||(this.hideHover(),this._lastFocusedElementBeforeOpen?.focus()))}setupManagedHover(e,t,i,s){let n,r;t.setAttribute("custom-hover","true"),""!==t.title&&(console.warn("HTML element already has a title attribute, which will conflict with the custom hover. Please remove the title attribute."),console.trace("Stack trace:",t.title),t.title="");const o=(t,i)=>{const s=void 0!==r;t&&(r?.dispose(),r=void 0),i&&(n?.dispose(),n=void 0),s&&(e.onDidHideHover?.(),r=void 0)},a=(n,o,a,c)=>new m.pc((async()=>{r&&!r.isDisposed||(r=new lt(e,a||t,n>0),await r.update("function"===typeof i?i():i,o,{...s,trapFocus:c}))}),n);let l=!1;const h=(0,U.ko)(t,U.Bx.MOUSE_DOWN,(()=>{l=!0,o(!0,!0)}),!0),d=(0,U.ko)(t,U.Bx.MOUSE_UP,(()=>{l=!1}),!0),u=(0,U.ko)(t,U.Bx.MOUSE_LEAVE,(e=>{l=!1,o(!1,e.fromElement===t)}),!0),g=(0,U.ko)(t,U.Bx.MOUSE_OVER,(i=>{if(n)return;const s=new c.Cm,r={targetElements:[t],dispose:()=>{}};if(void 0===e.placement||"mouse"===e.placement){const e=e=>{r.x=e.x+10,(0,U.sb)(e.target)&&mt(e.target,t)!==t&&o(!0,!0)};s.add((0,U.ko)(t,U.Bx.MOUSE_MOVE,e,!0))}n=s,(0,U.sb)(i.target)&&mt(i.target,t)!==t||s.add(a(e.delay,!1,r))}),!0),p=()=>{if(l||n)return;const i={targetElements:[t],dispose:()=>{}},s=new c.Cm;s.add((0,U.ko)(t,U.Bx.BLUR,(()=>o(!0,!0)),!0)),s.add(a(e.delay,!1,i)),n=s};let f;const _=t.tagName.toLowerCase();"input"!==_&&"textarea"!==_&&(f=(0,U.ko)(t,U.Bx.FOCUS,p,!0));const v={show:e=>{o(!1,!0),a(0,e,void 0,e)},hide:()=>{o(!0,!0)},update:async(e,t)=>{i=e,await(r?.update(i,void 0,t))},dispose:()=>{this._managedHovers.delete(t),g.dispose(),u.dispose(),h.dispose(),d.dispose(),f?.dispose(),o(!0,!0)}};return this._managedHovers.set(t,v),v}showManagedHover(e){const t=this._managedHovers.get(e);t&&t.show(!0)}dispose(){this._managedHovers.forEach((e=>e.dispose())),super.dispose()}};function gt(e){if(void 0!==e)return e?.id??e}ut=ht([dt(0,ae._Y),dt(1,Oe.Z),dt(2,De.b),dt(3,ce),dt(4,Ve.j)],ut);class pt{get anchorPosition(){return this._hover.anchor}constructor(e,t=!1){this._hover=e,this._focus=t,this.layer=1}render(e){return this._hover.render(e),this._focus&&this._hover.focus(),this._hover}getAnchor(){return{x:this._hover.x,y:this._hover.y}}layout(){this._hover.layout()}}function mt(e,t){for(t=t??(0,U.zk)(e).document.body;!e.hasAttribute("custom-hover")&&e!==t;)e=e.parentElement;return e}(0,se.v)(Ie.TN,ut,1),(0,Z.zy)(((e,t)=>{const i=e.getColor(Ne.oZ8);i&&(t.addRule(`.monaco-workbench .workbench-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${i.transparent(.5)}; }`),t.addRule(`.monaco-workbench .workbench-hover hr { border-top: 1px solid ${i.transparent(.5)}; }`))}));var ft=i(42539),_t=i(80537),vt=i(94371),Ct=i(7085),Et=i(83069),bt=i(18938),St=i(50091),yt=i(74320),wt=i(1646),Rt=i(46359);function Lt(e){return Object.isFrozen(e)?e:p.ol(e)}class Tt{static createEmptyModel(e){return new Tt({},[],[],void 0,e)}constructor(e,t,i,s,n){this._contents=e,this._keys=t,this._overrides=i,this.raw=s,this.logService=n,this.overrideConfigurations=new Map}get rawConfiguration(){if(!this._rawConfiguration)if(this.raw?.length){const e=this.raw.map((e=>{if(e instanceof Tt)return e;const t=new xt("",this.logService);return t.parseRaw(e),t.configurationModel}));this._rawConfiguration=e.reduce(((e,t)=>t===e?t:e.merge(t)),e[0])}else this._rawConfiguration=this;return this._rawConfiguration}get contents(){return this._contents}get overrides(){return this._overrides}get keys(){return this._keys}isEmpty(){return 0===this._keys.length&&0===Object.keys(this._contents).length&&0===this._overrides.length}getValue(e){return e?(0,Me.gD)(this.contents,e):this.contents}inspect(e,t){const i=this;return{get value(){return Lt(i.rawConfiguration.getValue(e))},get override(){return t?Lt(i.rawConfiguration.getOverrideValue(e,t)):void 0},get merged(){return Lt(t?i.rawConfiguration.override(t).getValue(e):i.rawConfiguration.getValue(e))},get overrides(){const t=[];for(const{contents:s,identifiers:n,keys:r}of i.rawConfiguration.overrides){const o=new Tt(s,r,[],void 0,i.logService).getValue(e);void 0!==o&&t.push({identifiers:n,value:o})}return t.length?Lt(t):void 0}}}getOverrideValue(e,t){const i=this.getContentsForOverrideIdentifer(t);return i?e?(0,Me.gD)(i,e):i:void 0}override(e){let t=this.overrideConfigurations.get(e);return t||(t=this.createOverrideConfigurationModel(e),this.overrideConfigurations.set(e,t)),t}merge(...e){const t=p.Go(this.contents),i=p.Go(this.overrides),s=[...this.keys],n=this.raw?.length?[...this.raw]:[this];for(const r of e)if(n.push(...r.raw?.length?r.raw:[r]),!r.isEmpty()){this.mergeContents(t,r.contents);for(const e of r.overrides){const[t]=i.filter((t=>E.aI(t.identifiers,e.identifiers)));t?(this.mergeContents(t.contents,e.contents),t.keys.push(...e.keys),t.keys=E.dM(t.keys)):i.push(p.Go(e))}for(const e of r.keys)-1===s.indexOf(e)&&s.push(e)}return new Tt(t,s,i,n.every((e=>e instanceof Tt))?void 0:n,this.logService)}createOverrideConfigurationModel(e){const t=this.getContentsForOverrideIdentifer(e);if(!t||"object"!==typeof t||!Object.keys(t).length)return this;const i={};for(const s of E.dM([...Object.keys(this.contents),...Object.keys(t)])){let e=this.contents[s];const n=t[s];n&&("object"===typeof e&&"object"===typeof n?(e=p.Go(e),this.mergeContents(e,n)):e=n),i[s]=e}return new Tt(i,this.keys,this.overrides,void 0,this.logService)}mergeContents(e,t){for(const i of Object.keys(t))i in e&&ct.Gv(e[i])&&ct.Gv(t[i])?this.mergeContents(e[i],t[i]):e[i]=p.Go(t[i])}getContentsForOverrideIdentifer(e){let t=null,i=null;const s=e=>{e&&(i?this.mergeContents(i,e):i=p.Go(e))};for(const n of this.overrides)1===n.identifiers.length&&n.identifiers[0]===e?t=n.contents:n.identifiers.includes(e)&&s(n.contents);return s(t),i}toJSON(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}}setValue(e,t){this.updateValue(e,t,!1)}removeValue(e){const t=this.keys.indexOf(e);-1!==t&&(this.keys.splice(t,1),(0,Me.iB)(this.contents,e),wt.rC.test(e)&&this.overrides.splice(this.overrides.findIndex((t=>E.aI(t.identifiers,(0,wt.Gv)(e)))),1))}updateValue(e,t,i){if((0,Me.kW)(this.contents,e,t,(e=>this.logService.error(e))),(i=i||-1===this.keys.indexOf(e))&&this.keys.push(e),wt.rC.test(e)){const t=(0,wt.Gv)(e),i={identifiers:t,keys:Object.keys(this.contents[e]),contents:(0,Me.ad)(this.contents[e],(e=>this.logService.error(e)))},s=this.overrides.findIndex((e=>E.aI(e.identifiers,t)));-1!==s?this.overrides[s]=i:this.overrides.push(i)}}}class xt{constructor(e,t){this._name=e,this.logService=t,this._raw=null,this._configurationModel=null,this._restrictedConfigurations=[]}get configurationModel(){return this._configurationModel||Tt.createEmptyModel(this.logService)}parseRaw(e,t){this._raw=e;const{contents:i,keys:s,overrides:n,restricted:r,hasExcludedProperties:o}=this.doParseRaw(e,t);this._configurationModel=new Tt(i,s,n,o?[e]:void 0,this.logService),this._restrictedConfigurations=r||[]}doParseRaw(e,t){const i=Rt.O.as(wt.Fd.Configuration).getConfigurationProperties(),s=this.filter(e,i,!0,t);e=s.raw;return{contents:(0,Me.ad)(e,(e=>this.logService.error(`Conflict in settings file ${this._name}: ${e}`))),keys:Object.keys(e),overrides:this.toOverrides(e,(e=>this.logService.error(`Conflict in settings file ${this._name}: ${e}`))),restricted:s.restricted,hasExcludedProperties:s.hasExcludedProperties}}filter(e,t,i,s){let n=!1;if(!s?.scopes&&!s?.skipRestricted&&!s?.exclude?.length)return{raw:e,restricted:[],hasExcludedProperties:n};const r={},o=[];for(const a in e)if(wt.rC.test(a)&&i){const i=this.filter(e[a],t,!1,s);r[a]=i.raw,n=n||i.hasExcludedProperties,o.push(...i.restricted)}else{const i=t[a],c=i?"undefined"!==typeof i.scope?i.scope:3:void 0;i?.restricted&&o.push(a),s.exclude?.includes(a)||!s.include?.includes(a)&&(void 0!==c&&void 0!==s.scopes&&!s.scopes.includes(c)||s.skipRestricted&&i?.restricted)?n=!0:r[a]=e[a]}return{raw:r,restricted:o,hasExcludedProperties:n}}toOverrides(e,t){const i=[];for(const s of Object.keys(e))if(wt.rC.test(s)){const n={};for(const t in e[s])n[t]=e[s][t];i.push({identifiers:(0,wt.Gv)(s),keys:Object.keys(n),contents:(0,Me.ad)(n,t)})}return i}}class kt{constructor(e,t,i,s,n,r,o,a,c,l,h,d,u){this.key=e,this.overrides=t,this._value=i,this.overrideIdentifiers=s,this.defaultConfiguration=n,this.policyConfiguration=r,this.applicationConfiguration=o,this.userConfiguration=a,this.localUserConfiguration=c,this.remoteUserConfiguration=l,this.workspaceConfiguration=h,this.folderConfigurationModel=d,this.memoryConfigurationModel=u}toInspectValue(e){return void 0!==e?.value||void 0!==e?.override||void 0!==e?.overrides?e:void 0}get userInspectValue(){return this._userInspectValue||(this._userInspectValue=this.userConfiguration.inspect(this.key,this.overrides.overrideIdentifier)),this._userInspectValue}get user(){return this.toInspectValue(this.userInspectValue)}}class At{constructor(e,t,i,s,n,r,o,a,c,l){this._defaultConfiguration=e,this._policyConfiguration=t,this._applicationConfiguration=i,this._localUserConfiguration=s,this._remoteUserConfiguration=n,this._workspaceConfiguration=r,this._folderConfigurations=o,this._memoryConfiguration=a,this._memoryConfigurationByResource=c,this.logService=l,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations=new yt.fT,this._userConfiguration=null}getValue(e,t,i){return this.getConsolidatedConfigurationModel(e,t,i).getValue(e)}updateValue(e,t,i={}){let s;i.resource?(s=this._memoryConfigurationByResource.get(i.resource),s||(s=Tt.createEmptyModel(this.logService),this._memoryConfigurationByResource.set(i.resource,s))):s=this._memoryConfiguration,void 0===t?s.removeValue(e):s.setValue(e,t),i.resource||(this._workspaceConsolidatedConfiguration=null)}inspect(e,t,i){const s=this.getConsolidatedConfigurationModel(e,t,i),n=this.getFolderConfigurationModelForResource(t.resource,i),r=t.resource&&this._memoryConfigurationByResource.get(t.resource)||this._memoryConfiguration,o=new Set;for(const a of s.overrides)for(const t of a.identifiers)void 0!==s.getOverrideValue(e,t)&&o.add(t);return new kt(e,t,s.getValue(e),o.size?[...o]:void 0,this._defaultConfiguration,this._policyConfiguration.isEmpty()?void 0:this._policyConfiguration,this.applicationConfiguration.isEmpty()?void 0:this.applicationConfiguration,this.userConfiguration,this.localUserConfiguration,this.remoteUserConfiguration,i?this._workspaceConfiguration:void 0,n||void 0,r)}get applicationConfiguration(){return this._applicationConfiguration}get userConfiguration(){return this._userConfiguration||(this._userConfiguration=this._remoteUserConfiguration.isEmpty()?this._localUserConfiguration:this._localUserConfiguration.merge(this._remoteUserConfiguration)),this._userConfiguration}get localUserConfiguration(){return this._localUserConfiguration}get remoteUserConfiguration(){return this._remoteUserConfiguration}getConsolidatedConfigurationModel(e,t,i){let s=this.getConsolidatedConfigurationModelForResource(t,i);return t.overrideIdentifier&&(s=s.override(t.overrideIdentifier)),this._policyConfiguration.isEmpty()||void 0===this._policyConfiguration.getValue(e)||(s=s.merge(this._policyConfiguration)),s}getConsolidatedConfigurationModelForResource({resource:e},t){let i=this.getWorkspaceConsolidatedConfiguration();if(t&&e){const s=t.getFolder(e);s&&(i=this.getFolderConsolidatedConfiguration(s.uri)||i);const n=this._memoryConfigurationByResource.get(e);n&&(i=i.merge(n))}return i}getWorkspaceConsolidatedConfiguration(){return this._workspaceConsolidatedConfiguration||(this._workspaceConsolidatedConfiguration=this._defaultConfiguration.merge(this.applicationConfiguration,this.userConfiguration,this._workspaceConfiguration,this._memoryConfiguration)),this._workspaceConsolidatedConfiguration}getFolderConsolidatedConfiguration(e){let t=this._foldersConsolidatedConfigurations.get(e);if(!t){const i=this.getWorkspaceConsolidatedConfiguration(),s=this._folderConfigurations.get(e);s?(t=i.merge(s),this._foldersConsolidatedConfigurations.set(e,t)):t=i}return t}getFolderConfigurationModelForResource(e,t){if(t&&e){const i=t.getFolder(e);if(i)return this._folderConfigurations.get(i.uri)}}toData(){return{defaults:{contents:this._defaultConfiguration.contents,overrides:this._defaultConfiguration.overrides,keys:this._defaultConfiguration.keys},policy:{contents:this._policyConfiguration.contents,overrides:this._policyConfiguration.overrides,keys:this._policyConfiguration.keys},application:{contents:this.applicationConfiguration.contents,overrides:this.applicationConfiguration.overrides,keys:this.applicationConfiguration.keys},user:{contents:this.userConfiguration.contents,overrides:this.userConfiguration.overrides,keys:this.userConfiguration.keys},workspace:{contents:this._workspaceConfiguration.contents,overrides:this._workspaceConfiguration.overrides,keys:this._workspaceConfiguration.keys},folders:[...this._folderConfigurations.keys()].reduce(((e,t)=>{const{contents:i,overrides:s,keys:n}=this._folderConfigurations.get(t);return e.push([t,{contents:i,overrides:s,keys:n}]),e}),[])}}static parse(e,t){const i=this.parseConfigurationModel(e.defaults,t),s=this.parseConfigurationModel(e.policy,t),n=this.parseConfigurationModel(e.application,t),r=this.parseConfigurationModel(e.user,t),o=this.parseConfigurationModel(e.workspace,t),a=e.folders.reduce(((e,i)=>(e.set(h.r.revive(i[0]),this.parseConfigurationModel(i[1],t)),e)),new yt.fT);return new At(i,s,n,r,Tt.createEmptyModel(t),o,a,Tt.createEmptyModel(t),new yt.fT,t)}static parseConfigurationModel(e,t){return new Tt(e.contents,e.keys,e.overrides,void 0,t)}}class Nt{constructor(e,t,i,s,n){this.change=e,this.previous=t,this.currentConfiguraiton=i,this.currentWorkspace=s,this.logService=n,this._marker="\n",this._markerCode1=this._marker.charCodeAt(0),this._markerCode2=".".charCodeAt(0),this.affectedKeys=new Set,this._previousConfiguration=void 0;for(const r of e.keys)this.affectedKeys.add(r);for(const[,r]of e.overrides)for(const e of r)this.affectedKeys.add(e);this._affectsConfigStr=this._marker;for(const r of this.affectedKeys)this._affectsConfigStr+=r+this._marker}get previousConfiguration(){return!this._previousConfiguration&&this.previous&&(this._previousConfiguration=At.parse(this.previous.data,this.logService)),this._previousConfiguration}affectsConfiguration(e,t){const i=this._marker+e,s=this._affectsConfigStr.indexOf(i);if(s<0)return!1;const n=s+i.length;if(n>=this._affectsConfigStr.length)return!1;const r=this._affectsConfigStr.charCodeAt(n);if(r!==this._markerCode1&&r!==this._markerCode2)return!1;if(t){const i=this.previousConfiguration?this.previousConfiguration.getValue(e,t,this.previous?.workspace):void 0,s=this.currentConfiguraiton.getValue(e,t,this.currentWorkspace);return!p.aI(i,s)}return!0}}var It=i(2299);const Ot={kind:0},Dt={kind:1};class Mt{constructor(e,t,i){this._log=i,this._defaultKeybindings=e,this._defaultBoundCommands=new Map;for(const s of e){const e=s.command;e&&"-"!==e.charAt(0)&&this._defaultBoundCommands.set(e,!0)}this._map=new Map,this._lookupMap=new Map,this._keybindings=Mt.handleRemovals([].concat(e).concat(t));for(let s=0,n=this._keybindings.length;s<n;s++){const e=this._keybindings[s];if(0===e.chords.length)continue;const t=e.when?.substituteConstants();t&&0===t.type||this._addKeyPress(e.chords[0],e)}}static _isTargetedForRemoval(e,t,i){if(t)for(let s=0;s<t.length;s++)if(t[s]!==e.chords[s])return!1;if(i&&1!==i.type){if(!e.when)return!1;if(!(0,ie.jQ)(i,e.when))return!1}return!0}static handleRemovals(e){const t=new Map;for(let s=0,n=e.length;s<n;s++){const i=e[s];if(i.command&&"-"===i.command.charAt(0)){const e=i.command.substring(1);t.has(e)?t.get(e).push(i):t.set(e,[i])}}if(0===t.size)return e;const i=[];for(let s=0,n=e.length;s<n;s++){const n=e[s];if(!n.command||0===n.command.length){i.push(n);continue}if("-"===n.command.charAt(0))continue;const r=t.get(n.command);if(!r||!n.isDefault){i.push(n);continue}let o=!1;for(const e of r){const t=e.when;if(this._isTargetedForRemoval(n,e.chords,t)){o=!0;break}}o||i.push(n)}return i}_addKeyPress(e,t){const i=this._map.get(e);if("undefined"===typeof i)return this._map.set(e,[t]),void this._addToLookupMap(t);for(let s=i.length-1;s>=0;s--){const e=i[s];if(e.command===t.command)continue;let n=!0;for(let i=1;i<e.chords.length&&i<t.chords.length;i++)if(e.chords[i]!==t.chords[i]){n=!1;break}n&&(Mt.whenIsEntirelyIncluded(e.when,t.when)&&this._removeFromLookupMap(e))}i.push(t),this._addToLookupMap(t)}_addToLookupMap(e){if(!e.command)return;let t=this._lookupMap.get(e.command);"undefined"===typeof t?(t=[e],this._lookupMap.set(e.command,t)):t.push(e)}_removeFromLookupMap(e){if(!e.command)return;const t=this._lookupMap.get(e.command);if("undefined"!==typeof t)for(let i=0,s=t.length;i<s;i++)if(t[i]===e)return void t.splice(i,1)}static whenIsEntirelyIncluded(e,t){return!t||1===t.type||!(!e||1===e.type)&&(0,ie.M0)(e,t)}getKeybindings(){return this._keybindings}lookupPrimaryKeybinding(e,t){const i=this._lookupMap.get(e);if("undefined"===typeof i||0===i.length)return null;if(1===i.length)return i[0];for(let s=i.length-1;s>=0;s--){const e=i[s];if(t.contextMatchesRules(e.when))return e}return i[i.length-1]}resolve(e,t,i){const s=[...t,i];this._log(`| Resolving ${s}`);const n=this._map.get(s[0]);if(void 0===n)return this._log("\\ No keybinding entries."),Ot;let r=null;if(s.length<2)r=n;else{r=[];for(let e=0,t=n.length;e<t;e++){const t=n[e];if(s.length>t.chords.length)continue;let i=!0;for(let e=1;e<s.length;e++)if(t.chords[e]!==s[e]){i=!1;break}i&&r.push(t)}}const o=this._findCommand(e,r);return o?s.length<o.chords.length?(this._log(`\\ From ${r.length} keybinding entries, awaiting ${o.chords.length-s.length} more chord(s), when: ${Pt(o.when)}, source: ${Ft(o)}.`),Dt):(this._log(`\\ From ${r.length} keybinding entries, matched ${o.command}, when: ${Pt(o.when)}, source: ${Ft(o)}.`),a=o.command,c=o.commandArgs,l=o.bubble,{kind:2,commandId:a,commandArgs:c,isBubble:l}):(this._log(`\\ From ${r.length} keybinding entries, no when clauses matched the context.`),Ot);var a,c,l}_findCommand(e,t){for(let i=t.length-1;i>=0;i--){const s=t[i];if(Mt._contextMatchesRules(e,s.when))return s}return null}static _contextMatchesRules(e,t){return!t||t.evaluate(e)}}function Pt(e){return e?`${e.serialize()}`:"no when condition"}function Ft(e){return e.extensionId?e.isBuiltinExtension?`built-in extension ${e.extensionId}`:`user extension ${e.extensionId}`:e.isDefault?"built-in":"user"}const Ut=/^(cursor|delete|undo|redo|tab|editor\.action\.clipboard)/;class Ht extends c.jG{get onDidUpdateKeybindings(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:Q.Jh.None}get inChordMode(){return this._currentChords.length>0}constructor(e,t,i,s,n){super(),this._contextKeyService=e,this._commandService=t,this._telemetryService=i,this._notificationService=s,this._logService=n,this._onDidUpdateKeybindings=this._register(new Q.vl),this._currentChords=[],this._currentChordChecker=new m.vb,this._currentChordStatusMessage=null,this._ignoreSingleModifiers=Bt.EMPTY,this._currentSingleModifier=null,this._currentSingleModifierClearTimeout=new m.pc,this._currentlyDispatchingCommandId=null,this._logging=!1}dispose(){super.dispose()}_log(e){this._logging&&this._logService.info(`[KeybindingService]: ${e}`)}getKeybindings(){return this._getResolver().getKeybindings()}lookupKeybinding(e,t){const i=this._getResolver().lookupPrimaryKeybinding(e,t||this._contextKeyService);if(i)return i.resolvedKeybinding}dispatchEvent(e,t){return this._dispatch(e,t)}softDispatch(e,t){this._log("/ Soft dispatching keyboard event");const i=this.resolveKeyboardEvent(e);if(i.hasMultipleChords())return console.warn("keyboard event should not be mapped to multiple chords"),Ot;const[s]=i.getDispatchChords();if(null===s)return this._log("\\ Keyboard event cannot be dispatched"),Ot;const n=this._contextKeyService.getContext(t),r=this._currentChords.map((({keypress:e})=>e));return this._getResolver().resolve(n,r,s)}_scheduleLeaveChordMode(){const e=Date.now();this._currentChordChecker.cancelAndSet((()=>{this._documentHasFocus()?Date.now()-e>5e3&&this._leaveChordMode():this._leaveChordMode()}),500)}_expectAnotherChord(e,t){switch(this._currentChords.push({keypress:e,label:t}),this._currentChords.length){case 0:throw(0,v.iH)("impossible");case 1:this._currentChordStatusMessage=this._notificationService.status(b.kg("first.chord","({0}) was pressed. Waiting for second key of chord...",t));break;default:{const e=this._currentChords.map((({label:e})=>e)).join(", ");this._currentChordStatusMessage=this._notificationService.status(b.kg("next.chord","({0}) was pressed. Waiting for next key of chord...",e))}}this._scheduleLeaveChordMode(),It.M.enabled&&It.M.disable()}_leaveChordMode(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChords=[],It.M.enable()}_dispatch(e,t){return this._doDispatch(this.resolveKeyboardEvent(e),t,!1)}_singleModifierDispatch(e,t){const i=this.resolveKeyboardEvent(e),[s]=i.getSingleModifierDispatchChords();if(s)return this._ignoreSingleModifiers.has(s)?(this._log(`+ Ignoring single modifier ${s} due to it being pressed together with other keys.`),this._ignoreSingleModifiers=Bt.EMPTY,this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1):(this._ignoreSingleModifiers=Bt.EMPTY,null===this._currentSingleModifier?(this._log(`+ Storing single modifier for possible chord ${s}.`),this._currentSingleModifier=s,this._currentSingleModifierClearTimeout.cancelAndSet((()=>{this._log("+ Clearing single modifier due to 300ms elapsed."),this._currentSingleModifier=null}),300),!1):s===this._currentSingleModifier?(this._log(`/ Dispatching single modifier chord ${s} ${s}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,this._doDispatch(i,t,!0)):(this._log(`+ Clearing single modifier due to modifier mismatch: ${this._currentSingleModifier} ${s}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1));const[n]=i.getChords();return this._ignoreSingleModifiers=new Bt(n),null!==this._currentSingleModifier&&this._log("+ Clearing single modifier due to other key up."),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1}_doDispatch(e,t,i=!1){let s=!1;if(e.hasMultipleChords())return console.warn("Unexpected keyboard event mapped to multiple chords"),!1;let n=null,r=null;if(i){const[t]=e.getSingleModifierDispatchChords();n=t,r=t?[t]:[]}else[n]=e.getDispatchChords(),r=this._currentChords.map((({keypress:e})=>e));if(null===n)return this._log("\\ Keyboard event cannot be dispatched in keydown phase."),s;const o=this._contextKeyService.getContext(t),a=e.getLabel(),c=this._getResolver().resolve(o,r,n);switch(c.kind){case 0:if(this._logService.trace("KeybindingService#dispatch",a,"[ No matching keybinding ]"),this.inChordMode){const e=this._currentChords.map((({label:e})=>e)).join(", ");this._log(`+ Leaving multi-chord mode: Nothing bound to "${e}, ${a}".`),this._notificationService.status(b.kg("missing.chord","The key combination ({0}, {1}) is not a command.",e,a),{hideAfter:1e4}),this._leaveChordMode(),s=!0}return s;case 1:return this._logService.trace("KeybindingService#dispatch",a,"[ Several keybindings match - more chords needed ]"),s=!0,this._expectAnotherChord(n,a),this._log(1===this._currentChords.length?"+ Entering multi-chord mode...":"+ Continuing multi-chord mode..."),s;case 2:if(this._logService.trace("KeybindingService#dispatch",a,`[ Will dispatch command ${c.commandId} ]`),null===c.commandId||""===c.commandId){if(this.inChordMode){const e=this._currentChords.map((({label:e})=>e)).join(", ");this._log(`+ Leaving chord mode: Nothing bound to "${e}, ${a}".`),this._notificationService.status(b.kg("missing.chord","The key combination ({0}, {1}) is not a command.",e,a),{hideAfter:1e4}),this._leaveChordMode(),s=!0}}else{this.inChordMode&&this._leaveChordMode(),c.isBubble||(s=!0),this._log(`+ Invoking command ${c.commandId}.`),this._currentlyDispatchingCommandId=c.commandId;try{"undefined"===typeof c.commandArgs?this._commandService.executeCommand(c.commandId).then(void 0,(e=>this._notificationService.warn(e))):this._commandService.executeCommand(c.commandId,c.commandArgs).then(void 0,(e=>this._notificationService.warn(e)))}finally{this._currentlyDispatchingCommandId=null}Ut.test(c.commandId)||this._telemetryService.publicLog2("workbenchActionExecuted",{id:c.commandId,from:"keybinding",detail:e.getUserSettingsLabel()??void 0})}return s}}mightProducePrintableCharacter(e){return!e.ctrlKey&&!e.metaKey&&(e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30)}}class Bt{static{this.EMPTY=new Bt(null)}constructor(e){this._ctrlKey=!!e&&e.ctrlKey,this._shiftKey=!!e&&e.shiftKey,this._altKey=!!e&&e.altKey,this._metaKey=!!e&&e.metaKey}has(e){switch(e){case"ctrl":return this._ctrlKey;case"shift":return this._shiftKey;case"alt":return this._altKey;case"meta":return this._metaKey}}}var Wt=i(59261);class Vt{constructor(e,t,i,s,n,r,o){this._resolvedKeybindingItemBrand=void 0,this.resolvedKeybinding=e,this.chords=e?zt(e.getDispatchChords()):[],e&&0===this.chords.length&&(this.chords=zt(e.getSingleModifierDispatchChords())),this.bubble=!!t&&94===t.charCodeAt(0),this.command=this.bubble?t.substr(1):t,this.commandArgs=i,this.when=s,this.isDefault=n,this.extensionId=r,this.isBuiltinExtension=o}}function zt(e){const t=[];for(let i=0,s=e.length;i<s;i++){const s=e[i];if(!s)return[];t.push(s)}return t}var Gt=i(24939),jt=i(83619);class Kt extends ft.z5{constructor(e,t){if(super(),0===t.length)throw(0,v.Qg)("chords");this._os=e,this._chords=t}getLabel(){return jt.Of.toLabel(this._os,this._chords,(e=>this._getLabel(e)))}getAriaLabel(){return jt.r0.toLabel(this._os,this._chords,(e=>this._getAriaLabel(e)))}getElectronAccelerator(){return this._chords.length>1||this._chords[0].isDuplicateModifierCase()?null:jt.rr.toLabel(this._os,this._chords,(e=>this._getElectronAccelerator(e)))}getUserSettingsLabel(){return jt.G$.toLabel(this._os,this._chords,(e=>this._getUserSettingsLabel(e)))}hasMultipleChords(){return this._chords.length>1}getChords(){return this._chords.map((e=>this._getChord(e)))}_getChord(e){return new ft.FW(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,this._getLabel(e),this._getAriaLabel(e))}getDispatchChords(){return this._chords.map((e=>this._getChordDispatch(e)))}getSingleModifierDispatchChords(){return this._chords.map((e=>this._getSingleModifierChordDispatch(e)))}}class Yt extends Kt{constructor(e,t){super(t,e)}_keyCodeToUILabel(e){if(2===this._os)switch(e){case 15:return"\u2190";case 16:return"\u2191";case 17:return"\u2192";case 18:return"\u2193"}return Gt.YM.toString(e)}_getLabel(e){return e.isDuplicateModifierCase()?"":this._keyCodeToUILabel(e.keyCode)}_getAriaLabel(e){return e.isDuplicateModifierCase()?"":Gt.YM.toString(e.keyCode)}_getElectronAccelerator(e){return Gt.YM.toElectronAccelerator(e.keyCode)}_getUserSettingsLabel(e){if(e.isDuplicateModifierCase())return"";const t=Gt.YM.toUserSettingsUS(e.keyCode);return t?t.toLowerCase():t}_getChordDispatch(e){return Yt.getDispatchStr(e)}static getDispatchStr(e){if(e.isModifierKey())return null;let t="";return e.ctrlKey&&(t+="ctrl+"),e.shiftKey&&(t+="shift+"),e.altKey&&(t+="alt+"),e.metaKey&&(t+="meta+"),t+=Gt.YM.toString(e.keyCode),t}_getSingleModifierChordDispatch(e){return 5!==e.keyCode||e.shiftKey||e.altKey||e.metaKey?4!==e.keyCode||e.ctrlKey||e.altKey||e.metaKey?6!==e.keyCode||e.ctrlKey||e.shiftKey||e.metaKey?57!==e.keyCode||e.ctrlKey||e.shiftKey||e.altKey?null:"meta":"alt":"shift":"ctrl"}static _scanCodeToKeyCode(e){const t=Gt.Fo[e];if(-1!==t)return t;switch(e){case 10:return 31;case 11:return 32;case 12:return 33;case 13:return 34;case 14:return 35;case 15:return 36;case 16:return 37;case 17:return 38;case 18:return 39;case 19:return 40;case 20:return 41;case 21:return 42;case 22:return 43;case 23:return 44;case 24:return 45;case 25:return 46;case 26:return 47;case 27:return 48;case 28:return 49;case 29:return 50;case 30:return 51;case 31:return 52;case 32:return 53;case 33:return 54;case 34:return 55;case 35:return 56;case 36:return 22;case 37:return 23;case 38:return 24;case 39:return 25;case 40:return 26;case 41:return 27;case 42:return 28;case 43:return 29;case 44:return 30;case 45:return 21;case 51:return 88;case 52:return 86;case 53:return 92;case 54:return 94;case 55:return 93;case 56:return 0;case 57:return 85;case 58:return 95;case 59:return 91;case 60:return 87;case 61:return 89;case 62:return 90;case 106:return 97}return 0}static _toKeyCodeChord(e){if(!e)return null;if(e instanceof ft.dG)return e;const t=this._scanCodeToKeyCode(e.scanCode);return 0===t?null:new ft.dG(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,t)}static resolveKeybinding(e,t){const i=zt(e.chords.map((e=>this._toKeyCodeChord(e))));return i.length>0?[new Yt(i,t)]:[]}}var qt=i(67841),$t=i(73823),Qt=i(90651),Xt=i(37227),Zt=i(51861),Jt=i(89403),ei=i(51465),ti=i(17890),ii=i(36921),si=i(57629),ni=i(27195),ri=i(47358),oi=i(60413),ai=i(25154),ci=i(11799),li=i(5646),hi=i(31295),di=i(10350),ui=i(18956),gi=i(25689),pi=i(37882);const mi=/\(&([^\s&])\)|(^|[^&])&([^\s&])/,fi=/(&)?(&)([^\s&])/g;var _i,vi;!function(e){e[e.Right=0]="Right",e[e.Left=1]="Left"}(_i||(_i={})),function(e){e[e.Above=0]="Above",e[e.Below=1]="Below"}(vi||(vi={}));class Ci extends ci.E{constructor(e,t,i,s){e.classList.add("monaco-menu-container"),e.setAttribute("role","presentation");const n=document.createElement("div");n.classList.add("monaco-menu"),n.setAttribute("role","presentation"),super(n,{orientation:1,actionViewItemProvider:e=>this.doGetActionViewItem(e,i,r),context:i.context,actionRunner:i.actionRunner,ariaLabel:i.ariaLabel,ariaRole:"menu",focusOnlyEnabledItems:!0,triggerKeys:{keys:[3,...We.zx||We.j9?[10]:[]],keyDown:!0}}),this.menuStyles=s,this.menuElement=n,this.actionsList.tabIndex=0,this.initializeOrUpdateStyleSheet(e,s),this._register(ai.q.addTarget(n)),this._register((0,U.ko)(n,U.Bx.KEY_DOWN,(e=>{new Xe.Z(e).equals(2)&&e.preventDefault()}))),i.enableMnemonics&&this._register((0,U.ko)(n,U.Bx.KEY_DOWN,(e=>{const t=e.key.toLocaleLowerCase();if(this.mnemonics.has(t)){U.fs.stop(e,!0);const i=this.mnemonics.get(t);if(1===i.length&&(i[0]instanceof bi&&i[0].container&&this.focusItemByElement(i[0].container),i[0].onClick(e)),i.length>1){const e=i.shift();e&&e.container&&(this.focusItemByElement(e.container),i.push(e)),this.mnemonics.set(t,i)}}}))),We.j9&&this._register((0,U.ko)(n,U.Bx.KEY_DOWN,(e=>{const t=new Xe.Z(e);t.equals(14)||t.equals(11)?(this.focusedItem=this.viewItems.length-1,this.focusNext(),U.fs.stop(e,!0)):(t.equals(13)||t.equals(12))&&(this.focusedItem=0,this.focusPrevious(),U.fs.stop(e,!0))}))),this._register((0,U.ko)(this.domNode,U.Bx.MOUSE_OUT,(e=>{const t=e.relatedTarget;(0,U.QX)(t,this.domNode)||(this.focusedItem=void 0,this.updateFocus(),e.stopPropagation())}))),this._register((0,U.ko)(this.actionsList,U.Bx.MOUSE_OVER,(e=>{let t=e.target;if(t&&(0,U.QX)(t,this.actionsList)&&t!==this.actionsList){for(;t.parentElement!==this.actionsList&&null!==t.parentElement;)t=t.parentElement;if(t.classList.contains("action-item")){const e=this.focusedItem;this.setFocusedItem(t),e!==this.focusedItem&&this.updateFocus()}}}))),this._register(ai.q.addTarget(this.actionsList)),this._register((0,U.ko)(this.actionsList,ai.B.Tap,(e=>{let t=e.initialTarget;if(t&&(0,U.QX)(t,this.actionsList)&&t!==this.actionsList){for(;t.parentElement!==this.actionsList&&null!==t.parentElement;)t=t.parentElement;if(t.classList.contains("action-item")){const e=this.focusedItem;this.setFocusedItem(t),e!==this.focusedItem&&this.updateFocus()}}})));const r={parent:this};this.mnemonics=new Map,this.scrollableElement=this._register(new hi.MU(n,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0}));const o=this.scrollableElement.getDomNode();o.style.position="",this.styleScrollElement(o,s),this._register((0,U.ko)(n,ai.B.Change,(e=>{U.fs.stop(e,!0);const t=this.scrollableElement.getScrollPosition().scrollTop;this.scrollableElement.setScrollPosition({scrollTop:t-e.translationY})}))),this._register((0,U.ko)(o,U.Bx.MOUSE_UP,(e=>{e.preventDefault()})));const a=(0,U.zk)(e);n.style.maxHeight=`${Math.max(10,a.innerHeight-e.getBoundingClientRect().top-35)}px`,t=t.filter(((e,s)=>{if(i.submenuIds?.has(e.id))return console.warn(`Found submenu cycle: ${e.id}`),!1;if(e instanceof ii.wv){if(s===t.length-1||0===s)return!1;if(t[s-1]instanceof ii.wv)return!1}return!0})),this.push(t,{icon:!0,label:!0,isMenu:!0}),e.appendChild(this.scrollableElement.getDomNode()),this.scrollableElement.scanDomNode(),this.viewItems.filter((e=>!(e instanceof Si))).forEach(((e,t,i)=>{e.updatePositionInSet(t+1,i.length)}))}initializeOrUpdateStyleSheet(e,t){this.styleSheet||((0,U.Cl)(e)?this.styleSheet=(0,U.li)(e):(Ci.globalStyleSheet||(Ci.globalStyleSheet=(0,U.li)()),this.styleSheet=Ci.globalStyleSheet)),this.styleSheet.textContent=function(e,t){let i=`\n.monaco-menu {\n\tfont-size: 13px;\n\tborder-radius: 5px;\n\tmin-width: 160px;\n}\n\n${yi(di.W.menuSelection)}\n${yi(di.W.menuSubmenu)}\n\n.monaco-menu .monaco-action-bar {\n\ttext-align: right;\n\toverflow: hidden;\n\twhite-space: nowrap;\n}\n\n.monaco-menu .monaco-action-bar .actions-container {\n\tdisplay: flex;\n\tmargin: 0 auto;\n\tpadding: 0;\n\twidth: 100%;\n\tjustify-content: flex-end;\n}\n\n.monaco-menu .monaco-action-bar.vertical .actions-container {\n\tdisplay: inline-block;\n}\n\n.monaco-menu .monaco-action-bar.reverse .actions-container {\n\tflex-direction: row-reverse;\n}\n\n.monaco-menu .monaco-action-bar .action-item {\n\tcursor: pointer;\n\tdisplay: inline-block;\n\ttransition: transform 50ms ease;\n\tposition: relative; /* DO NOT REMOVE - this is the key to preventing the ghosting icon bug in Chrome 42 */\n}\n\n.monaco-menu .monaco-action-bar .action-item.disabled {\n\tcursor: default;\n}\n\n.monaco-menu .monaco-action-bar .action-item .icon,\n.monaco-menu .monaco-action-bar .action-item .codicon {\n\tdisplay: inline-block;\n}\n\n.monaco-menu .monaco-action-bar .action-item .codicon {\n\tdisplay: flex;\n\talign-items: center;\n}\n\n.monaco-menu .monaco-action-bar .action-label {\n\tfont-size: 11px;\n\tmargin-right: 4px;\n}\n\n.monaco-menu .monaco-action-bar .action-item.disabled .action-label,\n.monaco-menu .monaco-action-bar .action-item.disabled .action-label:hover {\n\tcolor: var(--vscode-disabledForeground);\n}\n\n/* Vertical actions */\n\n.monaco-menu .monaco-action-bar.vertical {\n\ttext-align: left;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tdisplay: block;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tdisplay: block;\n\tborder-bottom: 1px solid var(--vscode-menu-separatorBackground);\n\tpadding-top: 1px;\n\tpadding: 30px;\n}\n\n.monaco-menu .secondary-actions .monaco-action-bar .action-label {\n\tmargin-left: 6px;\n}\n\n/* Action Items */\n.monaco-menu .monaco-action-bar .action-item.select-container {\n\toverflow: hidden; /* somehow the dropdown overflows its container, we prevent it here to not push */\n\tflex: 1;\n\tmax-width: 170px;\n\tmin-width: 60px;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tmargin-right: 10px;\n}\n\n.monaco-menu .monaco-action-bar.vertical {\n\tmargin-left: 0;\n\toverflow: visible;\n}\n\n.monaco-menu .monaco-action-bar.vertical .actions-container {\n\tdisplay: block;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tpadding: 0;\n\ttransform: none;\n\tdisplay: flex;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item.active {\n\ttransform: none;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item {\n\tflex: 1 1 auto;\n\tdisplay: flex;\n\theight: 2em;\n\talign-items: center;\n\tposition: relative;\n\tmargin: 0 4px;\n\tborder-radius: 4px;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .keybinding,\n.monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .keybinding {\n\topacity: unset;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label {\n\tflex: 1 1 auto;\n\ttext-decoration: none;\n\tpadding: 0 1em;\n\tbackground: none;\n\tfont-size: 12px;\n\tline-height: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .keybinding,\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\tdisplay: inline-block;\n\tflex: 2 1 auto;\n\tpadding: 0 1em;\n\ttext-align: right;\n\tfont-size: 12px;\n\tline-height: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\theight: 100%;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon {\n\tfont-size: 16px !important;\n\tdisplay: flex;\n\talign-items: center;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon::before {\n\tmargin-left: auto;\n\tmargin-right: -20px;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item.disabled .keybinding,\n.monaco-menu .monaco-action-bar.vertical .action-item.disabled .submenu-indicator {\n\topacity: 0.4;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator) {\n\tdisplay: inline-block;\n\tbox-sizing: border-box;\n\tmargin: 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tposition: static;\n\toverflow: visible;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item .monaco-submenu {\n\tposition: absolute;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\twidth: 100%;\n\theight: 0px !important;\n\topacity: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator.text {\n\tpadding: 0.7em 1em 0.1em 1em;\n\tfont-weight: bold;\n\topacity: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:hover {\n\tcolor: inherit;\n}\n\n.monaco-menu .monaco-action-bar.vertical .menu-item-check {\n\tposition: absolute;\n\tvisibility: hidden;\n\twidth: 1em;\n\theight: 100%;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item.checked .menu-item-check {\n\tvisibility: visible;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n/* Context Menu */\n\n.context-view.monaco-menu-container {\n\toutline: 0;\n\tborder: none;\n\tanimation: fadeIn 0.083s linear;\n\t-webkit-app-region: no-drag;\n}\n\n.context-view.monaco-menu-container :focus,\n.context-view.monaco-menu-container .monaco-action-bar.vertical:focus,\n.context-view.monaco-menu-container .monaco-action-bar.vertical :focus {\n\toutline: 0;\n}\n\n.hc-black .context-view.monaco-menu-container,\n.hc-light .context-view.monaco-menu-container,\n:host-context(.hc-black) .context-view.monaco-menu-container,\n:host-context(.hc-light) .context-view.monaco-menu-container {\n\tbox-shadow: none;\n}\n\n.hc-black .monaco-menu .monaco-action-bar.vertical .action-item.focused,\n.hc-light .monaco-menu .monaco-action-bar.vertical .action-item.focused,\n:host-context(.hc-black) .monaco-menu .monaco-action-bar.vertical .action-item.focused,\n:host-context(.hc-light) .monaco-menu .monaco-action-bar.vertical .action-item.focused {\n\tbackground: none;\n}\n\n/* Vertical Action Bar Styles */\n\n.monaco-menu .monaco-action-bar.vertical {\n\tpadding: 4px 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item {\n\theight: 2em;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator),\n.monaco-menu .monaco-action-bar.vertical .keybinding {\n\tfont-size: inherit;\n\tpadding: 0 2em;\n\tmax-height: 100%;\n}\n\n.monaco-menu .monaco-action-bar.vertical .menu-item-check {\n\tfont-size: inherit;\n\twidth: 2em;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tfont-size: inherit;\n\tmargin: 5px 0 !important;\n\tpadding: 0;\n\tborder-radius: 0;\n}\n\n.linux .monaco-menu .monaco-action-bar.vertical .action-label.separator,\n:host-context(.linux) .monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tmargin-left: 0;\n\tmargin-right: 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\tfont-size: 60%;\n\tpadding: 0 1.8em;\n}\n\n.linux .monaco-menu .monaco-action-bar.vertical .submenu-indicator,\n:host-context(.linux) .monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\theight: 100%;\n\tmask-size: 10px 10px;\n\t-webkit-mask-size: 10px 10px;\n}\n\n.monaco-menu .action-item {\n\tcursor: default;\n}`;if(t){i+="\n\t\t\t/* Arrows */\n\t\t\t.monaco-scrollable-element > .scrollbar > .scra {\n\t\t\t\tcursor: pointer;\n\t\t\t\tfont-size: 11px !important;\n\t\t\t}\n\n\t\t\t.monaco-scrollable-element > .visible {\n\t\t\t\topacity: 1;\n\n\t\t\t\t/* Background rule added for IE9 - to allow clicks on dom node */\n\t\t\t\tbackground:rgba(0,0,0,0);\n\n\t\t\t\ttransition: opacity 100ms linear;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .invisible {\n\t\t\t\topacity: 0;\n\t\t\t\tpointer-events: none;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .invisible.fade {\n\t\t\t\ttransition: opacity 800ms linear;\n\t\t\t}\n\n\t\t\t/* Scrollable Content Inset Shadow */\n\t\t\t.monaco-scrollable-element > .shadow {\n\t\t\t\tposition: absolute;\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .shadow.top {\n\t\t\t\tdisplay: block;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 3px;\n\t\t\t\theight: 3px;\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .shadow.left {\n\t\t\t\tdisplay: block;\n\t\t\t\ttop: 3px;\n\t\t\t\tleft: 0;\n\t\t\t\theight: 100%;\n\t\t\t\twidth: 3px;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .shadow.top-left-corner {\n\t\t\t\tdisplay: block;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 0;\n\t\t\t\theight: 3px;\n\t\t\t\twidth: 3px;\n\t\t\t}\n\t\t";const t=e.scrollbarShadow;t&&(i+=`\n\t\t\t\t.monaco-scrollable-element > .shadow.top {\n\t\t\t\t\tbox-shadow: ${t} 0 6px 6px -6px inset;\n\t\t\t\t}\n\n\t\t\t\t.monaco-scrollable-element > .shadow.left {\n\t\t\t\t\tbox-shadow: ${t} 6px 0 6px -6px inset;\n\t\t\t\t}\n\n\t\t\t\t.monaco-scrollable-element > .shadow.top.left {\n\t\t\t\t\tbox-shadow: ${t} 6px 6px 6px -6px inset;\n\t\t\t\t}\n\t\t\t`);const s=e.scrollbarSliderBackground;s&&(i+=`\n\t\t\t\t.monaco-scrollable-element > .scrollbar > .slider {\n\t\t\t\t\tbackground: ${s};\n\t\t\t\t}\n\t\t\t`);const n=e.scrollbarSliderHoverBackground;n&&(i+=`\n\t\t\t\t.monaco-scrollable-element > .scrollbar > .slider:hover {\n\t\t\t\t\tbackground: ${n};\n\t\t\t\t}\n\t\t\t`);const r=e.scrollbarSliderActiveBackground;r&&(i+=`\n\t\t\t\t.monaco-scrollable-element > .scrollbar > .slider.active {\n\t\t\t\t\tbackground: ${r};\n\t\t\t\t}\n\t\t\t`)}return i}(t,(0,U.Cl)(e))}styleScrollElement(e,t){const i=t.foregroundColor??"",s=t.backgroundColor??"",n=t.borderColor?`1px solid ${t.borderColor}`:"",r=t.shadowColor?`0 2px 8px ${t.shadowColor}`:"";e.style.outline=n,e.style.borderRadius="5px",e.style.color=i,e.style.backgroundColor=s,e.style.boxShadow=r}getContainer(){return this.scrollableElement.getDomNode()}get onScroll(){return this.scrollableElement.onScroll}focusItemByElement(e){const t=this.focusedItem;this.setFocusedItem(e),t!==this.focusedItem&&this.updateFocus()}setFocusedItem(e){for(let t=0;t<this.actionsList.children.length;t++){if(e===this.actionsList.children[t]){this.focusedItem=t;break}}}updateFocus(e){super.updateFocus(e,!0,!0),"undefined"!==typeof this.focusedItem&&this.scrollableElement.setScrollPosition({scrollTop:Math.round(this.menuElement.scrollTop)})}doGetActionViewItem(e,t,i){if(e instanceof ii.wv)return new Si(t.context,e,{icon:!0},this.menuStyles);if(e instanceof ii.YH){const s=new bi(e,e.actions,i,{...t,submenuIds:new Set([...t.submenuIds||[],e.id])},this.menuStyles);if(t.enableMnemonics){const e=s.getMnemonic();if(e&&s.isEnabled()){let t=[];this.mnemonics.has(e)&&(t=this.mnemonics.get(e)),t.push(s),this.mnemonics.set(e,t)}}return s}{const i={enableMnemonics:t.enableMnemonics,useEventAsContext:t.useEventAsContext};if(t.getKeyBinding){const s=t.getKeyBinding(e);if(s){const e=s.getLabel();e&&(i.keybinding=e)}}const s=new Ei(t.context,e,i,this.menuStyles);if(t.enableMnemonics){const e=s.getMnemonic();if(e&&s.isEnabled()){let t=[];this.mnemonics.has(e)&&(t=this.mnemonics.get(e)),t.push(s),this.mnemonics.set(e,t)}}return s}}}class Ei extends li.EH{constructor(e,t,i,s){if(i.isMenu=!0,super(t,t,i),this.menuStyle=s,this.options=i,this.options.icon=void 0!==i.icon&&i.icon,this.options.label=void 0===i.label||i.label,this.cssClass="",this.options.label&&i.enableMnemonics){const e=this.action.label;if(e){const t=mi.exec(e);t&&(this.mnemonic=(t[1]?t[1]:t[3]).toLocaleLowerCase())}}this.runOnceToEnableMouseUp=new m.uC((()=>{this.element&&(this._register((0,U.ko)(this.element,U.Bx.MOUSE_UP,(e=>{if(U.fs.stop(e,!0),oi.gm){if(new ri.P((0,U.zk)(this.element),e).rightButton)return;this.onClick(e)}else setTimeout((()=>{this.onClick(e)}),0)}))),this._register((0,U.ko)(this.element,U.Bx.CONTEXT_MENU,(e=>{U.fs.stop(e,!0)}))))}),100),this._register(this.runOnceToEnableMouseUp)}render(e){super.render(e),this.element&&(this.container=e,this.item=(0,U.BC)(this.element,(0,U.$)("a.action-menu-item")),this._action.id===ii.wv.ID?this.item.setAttribute("role","presentation"):(this.item.setAttribute("role","menuitem"),this.mnemonic&&this.item.setAttribute("aria-keyshortcuts",`${this.mnemonic}`)),this.check=(0,U.BC)(this.item,(0,U.$)("span.menu-item-check"+gi.L.asCSSSelector(di.W.menuSelection))),this.check.setAttribute("role","none"),this.label=(0,U.BC)(this.item,(0,U.$)("span.action-label")),this.options.label&&this.options.keybinding&&((0,U.BC)(this.item,(0,U.$)("span.keybinding")).textContent=this.options.keybinding),this.runOnceToEnableMouseUp.schedule(),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked(),this.applyStyle())}blur(){super.blur(),this.applyStyle()}focus(){super.focus(),this.item?.focus(),this.applyStyle()}updatePositionInSet(e,t){this.item&&(this.item.setAttribute("aria-posinset",`${e}`),this.item.setAttribute("aria-setsize",`${t}`))}updateLabel(){if(this.label&&this.options.label){(0,U.w_)(this.label);let e=(0,pi.pS)(this.action.label);if(e){const t=function(e){const t=mi,i=t.exec(e);if(!i)return e;const s=!i[1];return e.replace(t,s?"$2$3":"").trim()}(e);this.options.enableMnemonics||(e=t),this.label.setAttribute("aria-label",t.replace(/&&/g,"&"));const i=mi.exec(e);if(i){e=l.ih(e),fi.lastIndex=0;let t=fi.exec(e);for(;t&&t[1];)t=fi.exec(e);const s=e=>e.replace(/&&/g,"&");t?this.label.append(l.NB(s(e.substr(0,t.index))," "),(0,U.$)("u",{"aria-hidden":"true"},t[3]),l.BO(s(e.substr(t.index+t[0].length))," ")):this.label.innerText=s(e).trim(),this.item?.setAttribute("aria-keyshortcuts",(i[1]?i[1]:i[3]).toLocaleLowerCase())}else this.label.innerText=e.replace(/&&/g,"&").trim()}}}updateTooltip(){}updateClass(){this.cssClass&&this.item&&this.item.classList.remove(...this.cssClass.split(" ")),this.options.icon&&this.label?(this.cssClass=this.action.class||"",this.label.classList.add("icon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" ")),this.updateEnabled()):this.label&&this.label.classList.remove("icon")}updateEnabled(){this.action.enabled?(this.element&&(this.element.classList.remove("disabled"),this.element.removeAttribute("aria-disabled")),this.item&&(this.item.classList.remove("disabled"),this.item.removeAttribute("aria-disabled"),this.item.tabIndex=0)):(this.element&&(this.element.classList.add("disabled"),this.element.setAttribute("aria-disabled","true")),this.item&&(this.item.classList.add("disabled"),this.item.setAttribute("aria-disabled","true")))}updateChecked(){if(!this.item)return;const e=this.action.checked;this.item.classList.toggle("checked",!!e),void 0!==e?(this.item.setAttribute("role","menuitemcheckbox"),this.item.setAttribute("aria-checked",e?"true":"false")):(this.item.setAttribute("role","menuitem"),this.item.setAttribute("aria-checked",""))}getMnemonic(){return this.mnemonic}applyStyle(){const e=this.element&&this.element.classList.contains("focused"),t=e&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor,i=e&&this.menuStyle.selectionBackgroundColor?this.menuStyle.selectionBackgroundColor:void 0,s=e&&this.menuStyle.selectionBorderColor?`1px solid ${this.menuStyle.selectionBorderColor}`:"",n=e&&this.menuStyle.selectionBorderColor?"-1px":"";this.item&&(this.item.style.color=t??"",this.item.style.backgroundColor=i??"",this.item.style.outline=s,this.item.style.outlineOffset=n),this.check&&(this.check.style.color=t??"")}}class bi extends Ei{constructor(e,t,i,s,n){super(e,e,s,n),this.submenuActions=t,this.parentData=i,this.submenuOptions=s,this.mysubmenu=null,this.submenuDisposables=this._register(new c.Cm),this.mouseOver=!1,this.expandDirection=s&&void 0!==s.expandDirection?s.expandDirection:{horizontal:_i.Right,vertical:vi.Below},this.showScheduler=new m.uC((()=>{this.mouseOver&&(this.cleanupExistingSubmenu(!1),this.createSubmenu(!1))}),250),this.hideScheduler=new m.uC((()=>{this.element&&!(0,U.QX)((0,U.bq)(),this.element)&&this.parentData.submenu===this.mysubmenu&&(this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!0))}),750)}render(e){super.render(e),this.element&&(this.item&&(this.item.classList.add("monaco-submenu-item"),this.item.tabIndex=0,this.item.setAttribute("aria-haspopup","true"),this.updateAriaExpanded("false"),this.submenuIndicator=(0,U.BC)(this.item,(0,U.$)("span.submenu-indicator"+gi.L.asCSSSelector(di.W.menuSubmenu))),this.submenuIndicator.setAttribute("aria-hidden","true")),this._register((0,U.ko)(this.element,U.Bx.KEY_UP,(e=>{const t=new Xe.Z(e);(t.equals(17)||t.equals(3))&&(U.fs.stop(e,!0),this.createSubmenu(!0))}))),this._register((0,U.ko)(this.element,U.Bx.KEY_DOWN,(e=>{const t=new Xe.Z(e);(0,U.bq)()===this.item&&(t.equals(17)||t.equals(3))&&U.fs.stop(e,!0)}))),this._register((0,U.ko)(this.element,U.Bx.MOUSE_OVER,(e=>{this.mouseOver||(this.mouseOver=!0,this.showScheduler.schedule())}))),this._register((0,U.ko)(this.element,U.Bx.MOUSE_LEAVE,(e=>{this.mouseOver=!1}))),this._register((0,U.ko)(this.element,U.Bx.FOCUS_OUT,(e=>{this.element&&!(0,U.QX)((0,U.bq)(),this.element)&&this.hideScheduler.schedule()}))),this._register(this.parentData.parent.onScroll((()=>{this.parentData.submenu===this.mysubmenu&&(this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!0))}))))}updateEnabled(){}onClick(e){U.fs.stop(e,!0),this.cleanupExistingSubmenu(!1),this.createSubmenu(!0)}cleanupExistingSubmenu(e){if(this.parentData.submenu&&(e||this.parentData.submenu!==this.mysubmenu)){try{this.parentData.submenu.dispose()}catch{}this.parentData.submenu=void 0,this.updateAriaExpanded("false"),this.submenuContainer&&(this.submenuDisposables.clear(),this.submenuContainer=void 0)}}calculateSubmenuMenuLayout(e,t,i,s){const n={top:0,left:0};return n.left=et(e.width,t.width,{position:s.horizontal===_i.Right?0:1,offset:i.left,size:i.width}),n.left>=i.left&&n.left<i.left+i.width&&(i.left+10+t.width<=e.width&&(n.left=i.left+10),i.top+=10,i.height=0),n.top=et(e.height,t.height,{position:0,offset:i.top,size:0}),n.top+t.height===i.top&&n.top+i.height+t.height<=e.height&&(n.top+=i.height),n}createSubmenu(e=!0){if(this.element)if(this.parentData.submenu)this.parentData.submenu.focus(!1);else{this.updateAriaExpanded("true"),this.submenuContainer=(0,U.BC)(this.element,(0,U.$)("div.monaco-submenu")),this.submenuContainer.classList.add("menubar-menu-items-holder","context-view");const t=(0,U.zk)(this.parentData.parent.domNode).getComputedStyle(this.parentData.parent.domNode),i=parseFloat(t.paddingTop||"0")||0;this.submenuContainer.style.zIndex="1",this.submenuContainer.style.position="fixed",this.submenuContainer.style.top="0",this.submenuContainer.style.left="0",this.parentData.submenu=new Ci(this.submenuContainer,this.submenuActions.length?this.submenuActions:[new ii.HJ],this.submenuOptions,this.menuStyle);const s=this.element.getBoundingClientRect(),n={top:s.top-i,left:s.left,height:s.height+2*i,width:s.width},r=this.submenuContainer.getBoundingClientRect(),o=(0,U.zk)(this.element),{top:a,left:c}=this.calculateSubmenuMenuLayout(new U.fg(o.innerWidth,o.innerHeight),U.fg.lift(r),n,this.expandDirection);this.submenuContainer.style.left=c-r.left+"px",this.submenuContainer.style.top=a-r.top+"px",this.submenuDisposables.add((0,U.ko)(this.submenuContainer,U.Bx.KEY_UP,(e=>{new Xe.Z(e).equals(15)&&(U.fs.stop(e,!0),this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0))}))),this.submenuDisposables.add((0,U.ko)(this.submenuContainer,U.Bx.KEY_DOWN,(e=>{new Xe.Z(e).equals(15)&&U.fs.stop(e,!0)}))),this.submenuDisposables.add(this.parentData.submenu.onDidCancel((()=>{this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0)}))),this.parentData.submenu.focus(e),this.mysubmenu=this.parentData.submenu}}updateAriaExpanded(e){this.item&&this.item?.setAttribute("aria-expanded",e)}applyStyle(){super.applyStyle();const e=this.element&&this.element.classList.contains("focused")&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor;this.submenuIndicator&&(this.submenuIndicator.style.color=e??"")}dispose(){super.dispose(),this.hideScheduler.dispose(),this.mysubmenu&&(this.mysubmenu.dispose(),this.mysubmenu=null),this.submenuContainer&&(this.submenuContainer=void 0)}}class Si extends li.Z4{constructor(e,t,i,s){super(e,t,i),this.menuStyles=s}render(e){super.render(e),this.label&&(this.label.style.borderBottomColor=this.menuStyles.separatorColor?`${this.menuStyles.separatorColor}`:"")}}function yi(e){const t=(0,ui.J)()[e.id];return`.codicon-${e.id}:before { content: '\\${t.toString(16)}'; }`}var wi=i(19070);class Ri{constructor(e,t,i,s){this.contextViewService=e,this.telemetryService=t,this.notificationService=i,this.keybindingService=s,this.focusToReturn=null,this.lastContainer=null,this.block=null,this.blockDisposable=null,this.options={blockMouse:!0}}configure(e){this.options=e}showContextMenu(e){const t=e.getActions();if(!t.length)return;let i;this.focusToReturn=(0,U.bq)();const s=(0,U.sb)(e.domForShadowRoot)?e.domForShadowRoot:void 0;this.contextViewService.showContextView({getAnchor:()=>e.getAnchor(),canRelayout:!1,anchorAlignment:e.anchorAlignment,anchorAxisAlignment:e.anchorAxisAlignment,render:s=>{this.lastContainer=s;const n=e.getMenuClassName?e.getMenuClassName():"";n&&(s.className+=" "+n),this.options.blockMouse&&(this.block=s.appendChild((0,U.$)(".context-view-block")),this.block.style.position="fixed",this.block.style.cursor="initial",this.block.style.left="0",this.block.style.top="0",this.block.style.width="100%",this.block.style.height="100%",this.block.style.zIndex="-1",this.blockDisposable?.dispose(),this.blockDisposable=(0,U.ko)(this.block,U.Bx.MOUSE_DOWN,(e=>e.stopPropagation())));const r=new c.Cm,o=e.actionRunner||new ii.LN;o.onWillRun((t=>this.onActionRun(t,!e.skipTelemetry)),this,r),o.onDidRun(this.onDidActionRun,this,r),i=new Ci(s,t,{actionViewItemProvider:e.getActionViewItem,context:e.getActionsContext?e.getActionsContext():null,actionRunner:o,getKeyBinding:e.getKeyBinding?e.getKeyBinding:e=>this.keybindingService.lookupKeybinding(e.id)},wi.XS),i.onDidCancel((()=>this.contextViewService.hideContextView(!0)),null,r),i.onDidBlur((()=>this.contextViewService.hideContextView(!0)),null,r);const a=(0,U.zk)(s);return r.add((0,U.ko)(a,U.Bx.BLUR,(()=>this.contextViewService.hideContextView(!0)))),r.add((0,U.ko)(a,U.Bx.MOUSE_DOWN,(e=>{if(e.defaultPrevented)return;const t=new ri.P(a,e);let i=t.target;if(!t.rightButton){for(;i;){if(i===s)return;i=i.parentElement}this.contextViewService.hideContextView(!0)}}))),(0,c.qE)(r,i)},focus:()=>{i?.focus(!!e.autoSelectFirstItem)},onHide:t=>{e.onHide?.(!!t),this.block&&(this.block.remove(),this.block=null),this.blockDisposable?.dispose(),this.blockDisposable=null,this.lastContainer&&((0,U.bq)()===this.lastContainer||(0,U.QX)((0,U.bq)(),this.lastContainer))&&this.focusToReturn?.focus(),this.lastContainer=null}},s,!!s)}onActionRun(e,t){t&&this.telemetryService.publicLog2("workbenchActionExecuted",{id:e.action.id,from:"contextMenu"}),this.contextViewService.hideContextView(!1)}onDidActionRun(e){e.error&&!(0,v.MB)(e.error)&&this.notificationService.error(e.error)}}var Li=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Ti=function(e,t){return function(i,s){t(i,s,e)}};let xi=class extends c.jG{get contextMenuHandler(){return this._contextMenuHandler||(this._contextMenuHandler=new Ri(this.contextViewService,this.telemetryService,this.notificationService,this.keybindingService)),this._contextMenuHandler}constructor(e,t,i,s,n,r){super(),this.telemetryService=e,this.notificationService=t,this.contextViewService=i,this.keybindingService=s,this.menuService=n,this.contextKeyService=r,this._contextMenuHandler=void 0,this._onDidShowContextMenu=this._store.add(new Q.vl),this.onDidShowContextMenu=this._onDidShowContextMenu.event,this._onDidHideContextMenu=this._store.add(new Q.vl)}configure(e){this.contextMenuHandler.configure(e)}showContextMenu(e){e=ki.transform(e,this.menuService,this.contextKeyService),this.contextMenuHandler.showContextMenu({...e,onHide:t=>{e.onHide?.(t),this._onDidHideContextMenu.fire()}}),U.Di.getInstance().resetKeyStatus(),this._onDidShowContextMenu.fire()}};var ki;xi=Li([Ti(0,Qt.k),Ti(1,me.Ot),Ti(2,Oe.l),Ti(3,De.b),Ti(4,ni.ez),Ti(5,ie.fN)],xi),function(e){e.transform=function(e,t,i){if(!((s=e)&&s.menuId instanceof ni.D8))return e;var s;const{menuId:n,menuActionOptions:r,contextKeyService:o}=e;return{...e,getActions:()=>{const s=[];if(n){const e=t.getMenuActions(n,o??i,r);(0,si.$u)(e,s)}return e.getActions?ii.wv.join(e.getActions(),s):s}}}}(ki||(ki={}));var Ai,Ni=i(908);!function(e){e[e.API=0]="API",e[e.USER=1]="USER"}(Ai||(Ai={}));var Ii=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Oi=function(e,t){return function(i,s){t(i,s,e)}};let Di=class{constructor(e){this._commandService=e}async open(e,t){if(!(0,C.v$)(e,C.ny.command))return!1;if(!t?.allowCommands)return!0;if("string"===typeof e&&(e=h.r.parse(e)),Array.isArray(t.allowCommands)&&!t.allowCommands.includes(e.path))return!0;let i=[];try{i=(0,Ni.qg)(decodeURIComponent(e.query))}catch{try{i=(0,Ni.qg)(e.query)}catch{}}return Array.isArray(i)||(i=[i]),await this._commandService.executeCommand(e.path,...i),!0}};Di=Ii([Oi(0,St.d)],Di);let Mi=class{constructor(e){this._editorService=e}async open(e,t){"string"===typeof e&&(e=h.r.parse(e));const{selection:i,uri:s}=(0,Ue.e)(e);return(e=s).scheme===C.ny.file&&(e=(0,Jt.Fd)(e)),await this._editorService.openCodeEditor({resource:e,options:{selection:i,source:t?.fromUserGesture?Ai.USER:Ai.API,...t?.editorOptions}},this._editorService.getFocusedCodeEditor(),t?.openToSide),!0}};Mi=Ii([Oi(0,g.T)],Mi);let Pi=class{constructor(e,t){this._openers=new X.w,this._validators=new X.w,this._resolvers=new X.w,this._resolvedUriTargets=new yt.fT((e=>e.with({path:null,fragment:null,query:null}).toString())),this._externalOpeners=new X.w,this._defaultExternalOpener={openExternal:async e=>((0,C.fV)(e,C.ny.http,C.ny.https)?U.CE(e):a.G.location.href=e,!0)},this._openers.push({open:async(e,t)=>!(!t?.openExternal&&!(0,C.fV)(e,C.ny.mailto,C.ny.http,C.ny.https,C.ny.vsls))&&(await this._doOpenExternal(e,t),!0)}),this._openers.push(new Di(t)),this._openers.push(new Mi(e))}registerOpener(e){return{dispose:this._openers.unshift(e)}}async open(e,t){const i="string"===typeof e?h.r.parse(e):e,s=this._resolvedUriTargets.get(i)??e;for(const n of this._validators)if(!await n.shouldOpen(s,t))return!1;for(const n of this._openers){if(await n.open(e,t))return!0}return!1}async resolveExternalUri(e,t){for(const i of this._resolvers)try{const s=await i.resolveExternalUri(e,t);if(s)return this._resolvedUriTargets.has(s.resolved)||this._resolvedUriTargets.set(s.resolved,e),s}catch{}throw new Error("Could not resolve external URI: "+e.toString())}async _doOpenExternal(e,t){const i="string"===typeof e?h.r.parse(e):e;let s,n;try{s=(await this.resolveExternalUri(i,t)).resolved}catch{s=i}if(n="string"===typeof e&&i.toString()===s.toString()?e:encodeURI(s.toString(!0)),t?.allowContributedOpeners){const e="string"===typeof t?.allowContributedOpeners?t?.allowContributedOpeners:void 0;for(const t of this._externalOpeners){if(await t.openExternal(n,{sourceUri:i,preferredOpenerId:e},at.XO.None))return!0}}return this._defaultExternalOpener.openExternal(n,{sourceUri:i},at.XO.None)}dispose(){this._validators.clear()}};Pi=Ii([Oi(0,g.T),Oi(1,St.d)],Pi);var Fi=i(10920),Ui=i(10154),Hi=i(30707),Bi=i(37550),Wi=i(16363),Vi=i(71597),zi=i(51467),Gi=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},ji=function(e,t){return function(i,s){t(i,s,e)}};let Ki=class extends c.jG{constructor(e,t){super(),this.quickInputService=e,this.instantiationService=t,this.registry=Rt.O.as(Vi.Fd.Quickaccess),this.mapProviderToDescriptor=new Map,this.lastAcceptedPickerValues=new Map,this.visibleQuickAccess=void 0}show(e="",t){this.doShowOrPick(e,!1,t)}doShowOrPick(e,t,i){const[s,n]=this.getOrInstantiateProvider(e,i?.enabledProviderPrefixes),r=this.visibleQuickAccess,o=r?.descriptor;if(r&&n&&o===n)return e===n.prefix||i?.preserveValue||(r.picker.value=e),void this.adjustValueSelection(r.picker,n,i);if(n&&!i?.preserveValue){let t;if(r&&o&&o!==n){const e=r.value.substr(o.prefix.length);e&&(t=`${n.prefix}${e}`)}if(!t){const e=s?.defaultFilterValue;e===Vi.aJ.LAST?t=this.lastAcceptedPickerValues.get(n):"string"===typeof e&&(t=`${n.prefix}${e}`)}"string"===typeof t&&(e=t)}const a=r?.picker?.valueSelection,l=r?.picker?.value,h=new c.Cm,d=h.add(this.quickInputService.createQuickPick({useSeparators:!0}));let u;d.value=e,this.adjustValueSelection(d,n,i),d.placeholder=i?.placeholder??n?.placeholder,d.quickNavigate=i?.quickNavigateConfiguration,d.hideInput=!!d.quickNavigate&&!r,("number"===typeof i?.itemActivation||i?.quickNavigateConfiguration)&&(d.itemActivation=i?.itemActivation??zi.C1.SECOND),d.contextKey=n?.contextKey,d.filterValue=e=>e.substring(n?n.prefix.length:0),t&&(u=new m.Zv,h.add(Q.Jh.once(d.onWillAccept)((e=>{e.veto(),d.hide()})))),h.add(this.registerPickerListeners(d,s,n,e,i));const g=h.add(new at.Qi);return s&&h.add(s.provide(d,g.token,i?.providerOptions)),Q.Jh.once(d.onDidHide)((()=>{0===d.selectedItems.length&&g.cancel(),h.dispose(),u?.complete(d.selectedItems.slice(0))})),d.show(),a&&l===e&&(d.valueSelection=a),t?u?.p:void 0}adjustValueSelection(e,t,i){let s;s=i?.preserveValue?[e.value.length,e.value.length]:[t?.prefix.length??0,e.value.length],e.valueSelection=s}registerPickerListeners(e,t,i,s,n){const r=new c.Cm,o=this.visibleQuickAccess={picker:e,descriptor:i,value:s};return r.add((0,c.s)((()=>{o===this.visibleQuickAccess&&(this.visibleQuickAccess=void 0)}))),r.add(e.onDidChangeValue((e=>{const[i]=this.getOrInstantiateProvider(e,n?.enabledProviderPrefixes);i!==t?this.show(e,{enabledProviderPrefixes:n?.enabledProviderPrefixes,preserveValue:!0,providerOptions:n?.providerOptions}):o.value=e}))),i&&r.add(e.onDidAccept((()=>{this.lastAcceptedPickerValues.set(i,e.value)}))),r}getOrInstantiateProvider(e,t){const i=this.registry.getQuickAccessProvider(e);if(!i||t&&!t?.includes(i.prefix))return[void 0,void 0];let s=this.mapProviderToDescriptor.get(i);return s||(s=this.instantiationService.createInstance(i.ctor),this.mapProviderToDescriptor.set(i,s)),[s,i]}};Ki=Gi([ji(0,zi.GK),ji(1,ae._Y)],Ki);var Yi=i(35315),qi=i(56245),$i=i(20370),Qi=i(96032),Xi=i(58694),Zi=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class Ji{constructor(e){this.nodes=e}toString(){return this.nodes.map((e=>"string"===typeof e?e:e.label)).join("")}}Zi([Xi.B],Ji.prototype,"toString",null);const es=/\[([^\]]+)\]\(((?:https?:\/\/|command:|file:)[^\)\s]+)(?: (["'])(.+?)(\3))?\)/gi;const ts={},is=new Qi.n("quick-input-button-icon-");function ss(e,t,i){let s=e.iconClass||function(e){if(!e)return;let t;const i=e.dark.toString();return ts[i]?t=ts[i]:(t=is.nextId(),U.Wt(`.${t}, .hc-light .${t}`,`background-image: ${U.Tf(e.light||e.dark)}`),U.Wt(`.vs-dark .${t}, .hc-black .${t}`,`background-image: ${U.Tf(e.dark)}`),ts[i]=t),t}(e.iconPath);return e.alwaysVisible&&(s=s?`${s} always-visible`:"always-visible"),{id:t,label:"",tooltip:e.tooltip||"",class:s,enabled:!0,run:i}}function ns(e,t,i){U.Ln(t);const s=function(e){const t=[];let i,s=0;for(;i=es.exec(e);){i.index-s>0&&t.push(e.substring(s,i.index));const[,n,r,,o]=i;o?t.push({label:n,href:r,title:o}):t.push({label:n,href:r}),s=i.index+i[0].length}return s<e.length&&t.push(e.substring(s)),new Ji(t)}(e);let n=0;for(const r of s.nodes)if("string"===typeof r)t.append(...(0,$i.n)(r));else{let e=r.title;!e&&r.href.startsWith("command:")?e=(0,b.kg)("executeCommand","Click to execute command '{0}'",r.href.substring(8)):e||(e=r.href);const s=U.$("a",{href:r.href,title:e,tabIndex:n++},r.label);s.style.textDecoration="underline";const o=e=>{U.sd(e)&&U.fs.stop(e,!0),i.callback(r.href)},a=i.disposables.add(new qi.f(s,U.Bx.CLICK)).event,c=i.disposables.add(new qi.f(s,U.Bx.KEY_DOWN)).event,l=Q.Jh.chain(c,(e=>e.filter((e=>{const t=new Xe.Z(e);return t.equals(10)||t.equals(3)}))));i.disposables.add(ai.q.addTarget(s));const h=i.disposables.add(new qi.f(s,ai.B.Tap)).event;Q.Jh.any(a,h,l)(o,null,i.disposables),t.appendChild(s)}}var rs=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},os=function(e,t){return function(i,s){t(i,s,e)}};const as="inQuickInput",cs=new ie.N1(as,!1,(0,b.kg)("inQuickInput","Whether keyboard focus is inside the quick input control")),ls=ie.M$.has(as),hs="quickInputType",ds=new ie.N1(hs,void 0,(0,b.kg)("quickInputType","The type of the currently visible quick input")),us="cursorAtEndOfQuickInputBox",gs=new ie.N1(us,!1,(0,b.kg)("cursorAtEndOfQuickInputBox","Whether the cursor in the quick input is at the end of the input box")),ps=ie.M$.has(us),ms={iconClass:gi.L.asClassName(di.W.quickInputBack),tooltip:(0,b.kg)("quickInput.back","Back"),handle:-1};class fs extends c.jG{static{this.noPromptMessage=(0,b.kg)("inputModeEntry","Press 'Enter' to confirm your input or 'Escape' to cancel")}constructor(e){super(),this.ui=e,this._widgetUpdated=!1,this.visible=!1,this._enabled=!0,this._busy=!1,this._ignoreFocusOut=!1,this._leftButtons=[],this._rightButtons=[],this._inlineButtons=[],this.buttonsUpdated=!1,this._toggles=[],this.togglesUpdated=!1,this.noValidationMessage=fs.noPromptMessage,this._severity=ge.A.Ignore,this.onDidTriggerButtonEmitter=this._register(new Q.vl),this.onDidHideEmitter=this._register(new Q.vl),this.onWillHideEmitter=this._register(new Q.vl),this.onDisposeEmitter=this._register(new Q.vl),this.visibleDisposables=this._register(new c.Cm),this.onDidHide=this.onDidHideEmitter.event}get title(){return this._title}set title(e){this._title=e,this.update()}get description(){return this._description}set description(e){this._description=e,this.update()}get step(){return this._steps}set step(e){this._steps=e,this.update()}get totalSteps(){return this._totalSteps}set totalSteps(e){this._totalSteps=e,this.update()}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this.update()}get contextKey(){return this._contextKey}set contextKey(e){this._contextKey=e,this.update()}get busy(){return this._busy}set busy(e){this._busy=e,this.update()}get ignoreFocusOut(){return this._ignoreFocusOut}set ignoreFocusOut(e){const t=this._ignoreFocusOut!==e&&!We.un;this._ignoreFocusOut=e&&!We.un,t&&this.update()}get titleButtons(){return this._leftButtons.length?[...this._leftButtons,this._rightButtons]:this._rightButtons}get buttons(){return[...this._leftButtons,...this._rightButtons,...this._inlineButtons]}set buttons(e){this._leftButtons=e.filter((e=>e===ms)),this._rightButtons=e.filter((e=>e!==ms&&e.location!==zi.dH.Inline)),this._inlineButtons=e.filter((e=>e.location===zi.dH.Inline)),this.buttonsUpdated=!0,this.update()}get toggles(){return this._toggles}set toggles(e){this._toggles=e??[],this.togglesUpdated=!0,this.update()}get validationMessage(){return this._validationMessage}set validationMessage(e){this._validationMessage=e,this.update()}get severity(){return this._severity}set severity(e){this._severity=e,this.update()}show(){this.visible||(this.visibleDisposables.add(this.ui.onDidTriggerButton((e=>{-1!==this.buttons.indexOf(e)&&this.onDidTriggerButtonEmitter.fire(e)}))),this.ui.show(this),this.visible=!0,this._lastValidationMessage=void 0,this._lastSeverity=void 0,this.buttons.length&&(this.buttonsUpdated=!0),this.toggles.length&&(this.togglesUpdated=!0),this.update())}hide(){this.visible&&this.ui.hide()}didHide(e=zi.kF.Other){this.visible=!1,this.visibleDisposables.clear(),this.onDidHideEmitter.fire({reason:e})}willHide(e=zi.kF.Other){this.onWillHideEmitter.fire({reason:e})}update(){if(!this.visible)return;const e=this.getTitle();e&&this.ui.title.textContent!==e?this.ui.title.textContent=e:e||" "===this.ui.title.innerHTML||(this.ui.title.innerText="\xa0");const t=this.getDescription();if(this.ui.description1.textContent!==t&&(this.ui.description1.textContent=t),this.ui.description2.textContent!==t&&(this.ui.description2.textContent=t),this._widgetUpdated&&(this._widgetUpdated=!1,this._widget?U.Ln(this.ui.widget,this._widget):U.Ln(this.ui.widget)),this.busy&&!this.busyDelay&&(this.busyDelay=new m.pc,this.busyDelay.setIfNotSet((()=>{this.visible&&this.ui.progressBar.infinite()}),800)),!this.busy&&this.busyDelay&&(this.ui.progressBar.stop(),this.busyDelay.cancel(),this.busyDelay=void 0),this.buttonsUpdated){this.buttonsUpdated=!1,this.ui.leftActionBar.clear();const e=this._leftButtons.map(((e,t)=>ss(e,`id-${t}`,(async()=>this.onDidTriggerButtonEmitter.fire(e)))));this.ui.leftActionBar.push(e,{icon:!0,label:!1}),this.ui.rightActionBar.clear();const t=this._rightButtons.map(((e,t)=>ss(e,`id-${t}`,(async()=>this.onDidTriggerButtonEmitter.fire(e)))));this.ui.rightActionBar.push(t,{icon:!0,label:!1}),this.ui.inlineActionBar.clear();const i=this._inlineButtons.map(((e,t)=>ss(e,`id-${t}`,(async()=>this.onDidTriggerButtonEmitter.fire(e)))));this.ui.inlineActionBar.push(i,{icon:!0,label:!1})}if(this.togglesUpdated){this.togglesUpdated=!1;const e=this.toggles?.filter((e=>e instanceof Yi.l))??[];this.ui.inputBox.toggles=e}this.ui.ignoreFocusOut=this.ignoreFocusOut,this.ui.setEnabled(this.enabled),this.ui.setContextKey(this.contextKey);const i=this.validationMessage||this.noValidationMessage;this._lastValidationMessage!==i&&(this._lastValidationMessage=i,U.Ln(this.ui.message),ns(i,this.ui.message,{callback:e=>{this.ui.linkOpenerDelegate(e)},disposables:this.visibleDisposables})),this._lastSeverity!==this.severity&&(this._lastSeverity=this.severity,this.showMessageDecoration(this.severity))}getTitle(){return this.title&&this.step?`${this.title} (${this.getSteps()})`:this.title?this.title:this.step?this.getSteps():""}getDescription(){return this.description||""}getSteps(){return this.step&&this.totalSteps?(0,b.kg)("quickInput.steps","{0}/{1}",this.step,this.totalSteps):this.step?String(this.step):""}showMessageDecoration(e){if(this.ui.inputBox.showDecoration(e),e!==ge.A.Ignore){const t=this.ui.inputBox.stylesForType(e);this.ui.message.style.color=t.foreground?`${t.foreground}`:"",this.ui.message.style.backgroundColor=t.background?`${t.background}`:"",this.ui.message.style.border=t.border?`1px solid ${t.border}`:"",this.ui.message.style.marginBottom="-2px"}else this.ui.message.style.color="",this.ui.message.style.backgroundColor="",this.ui.message.style.border="",this.ui.message.style.marginBottom=""}dispose(){this.hide(),this.onDisposeEmitter.fire(),super.dispose()}}class _s extends fs{constructor(){super(...arguments),this._value="",this.onDidChangeValueEmitter=this._register(new Q.vl),this.onWillAcceptEmitter=this._register(new Q.vl),this.onDidAcceptEmitter=this._register(new Q.vl),this.onDidCustomEmitter=this._register(new Q.vl),this._items=[],this.itemsUpdated=!1,this._canSelectMany=!1,this._canAcceptInBackground=!1,this._matchOnDescription=!1,this._matchOnDetail=!1,this._matchOnLabel=!0,this._matchOnLabelMode="fuzzy",this._sortByLabel=!0,this._keepScrollPosition=!1,this._itemActivation=zi.C1.FIRST,this._activeItems=[],this.activeItemsUpdated=!1,this.activeItemsToConfirm=[],this.onDidChangeActiveEmitter=this._register(new Q.vl),this._selectedItems=[],this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=[],this.onDidChangeSelectionEmitter=this._register(new Q.vl),this.onDidTriggerItemButtonEmitter=this._register(new Q.vl),this.onDidTriggerSeparatorButtonEmitter=this._register(new Q.vl),this.valueSelectionUpdated=!0,this._ok="default",this._customButton=!1,this._focusEventBufferer=new Q.at,this.type="quickPick",this.filterValue=e=>e,this.onDidChangeValue=this.onDidChangeValueEmitter.event,this.onWillAccept=this.onWillAcceptEmitter.event,this.onDidAccept=this.onDidAcceptEmitter.event,this.onDidChangeActive=this.onDidChangeActiveEmitter.event,this.onDidChangeSelection=this.onDidChangeSelectionEmitter.event,this.onDidTriggerItemButton=this.onDidTriggerItemButtonEmitter.event,this.onDidTriggerSeparatorButton=this.onDidTriggerSeparatorButtonEmitter.event}static{this.DEFAULT_ARIA_LABEL=(0,b.kg)("quickInputBox.ariaLabel","Type to narrow down results.")}get quickNavigate(){return this._quickNavigate}set quickNavigate(e){this._quickNavigate=e,this.update()}get value(){return this._value}set value(e){this.doSetValue(e)}doSetValue(e,t){if(this._value!==e){if(this._value=e,t||this.update(),this.visible){this.ui.list.filter(this.filterValue(this._value))&&this.trySelectFirst()}this.onDidChangeValueEmitter.fire(this._value)}}set ariaLabel(e){this._ariaLabel=e,this.update()}get ariaLabel(){return this._ariaLabel}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.update()}get items(){return this._items}get scrollTop(){return this.ui.list.scrollTop}set scrollTop(e){this.ui.list.scrollTop=e}set items(e){this._items=e,this.itemsUpdated=!0,this.update()}get canSelectMany(){return this._canSelectMany}set canSelectMany(e){this._canSelectMany=e,this.update()}get canAcceptInBackground(){return this._canAcceptInBackground}set canAcceptInBackground(e){this._canAcceptInBackground=e}get matchOnDescription(){return this._matchOnDescription}set matchOnDescription(e){this._matchOnDescription=e,this.update()}get matchOnDetail(){return this._matchOnDetail}set matchOnDetail(e){this._matchOnDetail=e,this.update()}get matchOnLabel(){return this._matchOnLabel}set matchOnLabel(e){this._matchOnLabel=e,this.update()}get matchOnLabelMode(){return this._matchOnLabelMode}set matchOnLabelMode(e){this._matchOnLabelMode=e,this.update()}get sortByLabel(){return this._sortByLabel}set sortByLabel(e){this._sortByLabel=e,this.update()}get keepScrollPosition(){return this._keepScrollPosition}set keepScrollPosition(e){this._keepScrollPosition=e}get itemActivation(){return this._itemActivation}set itemActivation(e){this._itemActivation=e}get activeItems(){return this._activeItems}set activeItems(e){this._activeItems=e,this.activeItemsUpdated=!0,this.update()}get selectedItems(){return this._selectedItems}set selectedItems(e){this._selectedItems=e,this.selectedItemsUpdated=!0,this.update()}get keyMods(){return this._quickNavigate?zi.Ym:this.ui.keyMods}get valueSelection(){const e=this.ui.inputBox.getSelection();if(e)return[e.start,e.end]}set valueSelection(e){this._valueSelection=e,this.valueSelectionUpdated=!0,this.update()}get customButton(){return this._customButton}set customButton(e){this._customButton=e,this.update()}get customLabel(){return this._customButtonLabel}set customLabel(e){this._customButtonLabel=e,this.update()}get customHover(){return this._customButtonHover}set customHover(e){this._customButtonHover=e,this.update()}get ok(){return this._ok}set ok(e){this._ok=e,this.update()}get hideInput(){return!!this._hideInput}set hideInput(e){this._hideInput=e,this.update()}trySelectFirst(){this.canSelectMany||this.ui.list.focus(zi.Fp.First)}show(){this.visible||(this.visibleDisposables.add(this.ui.inputBox.onDidChange((e=>{this.doSetValue(e,!0)}))),this.visibleDisposables.add(this.ui.onDidAccept((()=>{this.canSelectMany?this.ui.list.getCheckedElements().length||(this._selectedItems=[],this.onDidChangeSelectionEmitter.fire(this.selectedItems)):this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems)),this.handleAccept(!1)}))),this.visibleDisposables.add(this.ui.onDidCustom((()=>{this.onDidCustomEmitter.fire()}))),this.visibleDisposables.add(this._focusEventBufferer.wrapEvent(this.ui.list.onDidChangeFocus,((e,t)=>t))((e=>{this.activeItemsUpdated||this.activeItemsToConfirm!==this._activeItems&&(0,E.aI)(e,this._activeItems,((e,t)=>e===t))||(this._activeItems=e,this.onDidChangeActiveEmitter.fire(e))}))),this.visibleDisposables.add(this.ui.list.onDidChangeSelection((({items:e,event:t})=>{this.canSelectMany?e.length&&this.ui.list.setSelectedElements([]):this.selectedItemsToConfirm!==this._selectedItems&&(0,E.aI)(e,this._selectedItems,((e,t)=>e===t))||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e),e.length&&this.handleAccept(U.Er(t)&&1===t.button))}))),this.visibleDisposables.add(this.ui.list.onChangedCheckedElements((e=>{this.canSelectMany&&this.visible&&(this.selectedItemsToConfirm!==this._selectedItems&&(0,E.aI)(e,this._selectedItems,((e,t)=>e===t))||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e)))}))),this.visibleDisposables.add(this.ui.list.onButtonTriggered((e=>this.onDidTriggerItemButtonEmitter.fire(e)))),this.visibleDisposables.add(this.ui.list.onSeparatorButtonTriggered((e=>this.onDidTriggerSeparatorButtonEmitter.fire(e)))),this.visibleDisposables.add(this.registerQuickNavigation()),this.valueSelectionUpdated=!0),super.show()}handleAccept(e){let t=!1;this.onWillAcceptEmitter.fire({veto:()=>t=!0}),t||this.onDidAcceptEmitter.fire({inBackground:e})}registerQuickNavigation(){return U.ko(this.ui.container,U.Bx.KEY_UP,(e=>{if(this.canSelectMany||!this._quickNavigate)return;const t=new Xe.Z(e),i=t.keyCode;this._quickNavigate.keybindings.some((e=>{const s=e.getChords();return!(s.length>1)&&(s[0].shiftKey&&4===i?!(t.ctrlKey||t.altKey||t.metaKey):!(!s[0].altKey||6!==i)||(!(!s[0].ctrlKey||5!==i)||!(!s[0].metaKey||57!==i)))}))&&(this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(!1)),this._quickNavigate=void 0)}))}update(){if(!this.visible)return;const e=this.keepScrollPosition?this.scrollTop:0,t=!!this.description,i={title:!!this.title||!!this.step||!!this.titleButtons.length,description:t,checkAll:this.canSelectMany&&!this._hideCheckAll,checkBox:this.canSelectMany,inputBox:!this._hideInput,progressBar:!this._hideInput||t,visibleCount:!0,count:this.canSelectMany&&!this._hideCountBadge,ok:"default"===this.ok?this.canSelectMany:this.ok,list:!0,message:!!this.validationMessage,customButton:this.customButton};this.ui.setVisibilities(i),super.update(),this.ui.inputBox.value!==this.value&&(this.ui.inputBox.value=this.value),this.valueSelectionUpdated&&(this.valueSelectionUpdated=!1,this.ui.inputBox.select(this._valueSelection&&{start:this._valueSelection[0],end:this._valueSelection[1]})),this.ui.inputBox.placeholder!==(this.placeholder||"")&&(this.ui.inputBox.placeholder=this.placeholder||"");let s=this.ariaLabel;!s&&i.inputBox&&(s=this.placeholder||_s.DEFAULT_ARIA_LABEL,this.title&&(s+=` - ${this.title}`)),this.ui.list.ariaLabel!==s&&(this.ui.list.ariaLabel=s??null),this.ui.list.matchOnDescription=this.matchOnDescription,this.ui.list.matchOnDetail=this.matchOnDetail,this.ui.list.matchOnLabel=this.matchOnLabel,this.ui.list.matchOnLabelMode=this.matchOnLabelMode,this.ui.list.sortByLabel=this.sortByLabel,this.itemsUpdated&&(this.itemsUpdated=!1,this._focusEventBufferer.bufferEvents((()=>{switch(this.ui.list.setElements(this.items),this.ui.list.shouldLoop=!this.canSelectMany,this.ui.list.filter(this.filterValue(this.ui.inputBox.value)),this._itemActivation){case zi.C1.NONE:this._itemActivation=zi.C1.FIRST;break;case zi.C1.SECOND:this.ui.list.focus(zi.Fp.Second),this._itemActivation=zi.C1.FIRST;break;case zi.C1.LAST:this.ui.list.focus(zi.Fp.Last),this._itemActivation=zi.C1.FIRST;break;default:this.trySelectFirst()}}))),this.ui.container.classList.contains("show-checkboxes")!==!!this.canSelectMany&&(this.canSelectMany?this.ui.list.clearFocus():this.trySelectFirst()),this.activeItemsUpdated&&(this.activeItemsUpdated=!1,this.activeItemsToConfirm=this._activeItems,this.ui.list.setFocusedElements(this.activeItems),this.activeItemsToConfirm===this._activeItems&&(this.activeItemsToConfirm=null)),this.selectedItemsUpdated&&(this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=this._selectedItems,this.canSelectMany?this.ui.list.setCheckedElements(this.selectedItems):this.ui.list.setSelectedElements(this.selectedItems),this.selectedItemsToConfirm===this._selectedItems&&(this.selectedItemsToConfirm=null)),this.ui.customButton.label=this.customLabel||"",this.ui.customButton.element.title=this.customHover||"",i.inputBox||(this.ui.list.domFocus(),this.canSelectMany&&this.ui.list.focus(zi.Fp.First)),this.keepScrollPosition&&(this.scrollTop=e)}focus(e){this.ui.list.focus(e),this.canSelectMany&&this.ui.list.domFocus()}accept(e){e&&!this._canAcceptInBackground||this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(e??!1))}}class vs extends fs{constructor(){super(...arguments),this._value="",this.valueSelectionUpdated=!0,this._password=!1,this.onDidValueChangeEmitter=this._register(new Q.vl),this.onDidAcceptEmitter=this._register(new Q.vl),this.type="inputBox",this.onDidChangeValue=this.onDidValueChangeEmitter.event,this.onDidAccept=this.onDidAcceptEmitter.event}get value(){return this._value}set value(e){this._value=e||"",this.update()}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.update()}get password(){return this._password}set password(e){this._password=e,this.update()}show(){this.visible||(this.visibleDisposables.add(this.ui.inputBox.onDidChange((e=>{e!==this.value&&(this._value=e,this.onDidValueChangeEmitter.fire(e))}))),this.visibleDisposables.add(this.ui.onDidAccept((()=>this.onDidAcceptEmitter.fire()))),this.valueSelectionUpdated=!0),super.show()}update(){if(!this.visible)return;this.ui.container.classList.remove("hidden-input");const e={title:!!this.title||!!this.step||!!this.titleButtons.length,description:!!this.description||!!this.step,inputBox:!0,message:!0,progressBar:!0};this.ui.setVisibilities(e),super.update(),this.ui.inputBox.value!==this.value&&(this.ui.inputBox.value=this.value),this.valueSelectionUpdated&&(this.valueSelectionUpdated=!1,this.ui.inputBox.select(this._valueSelection&&{start:this._valueSelection[0],end:this._valueSelection[1]})),this.ui.inputBox.placeholder!==(this.placeholder||"")&&(this.ui.inputBox.placeholder=this.placeholder||""),this.ui.inputBox.password!==this.password&&(this.ui.inputBox.password=this.password)}}let Cs=class extends Ie.fO{constructor(e,t){super("element",!1,(e=>this.getOverrideOptions(e)),e,t)}getOverrideOptions(e){return{persistence:{hideOnKeyDown:!1},appearance:{showHoverHint:(U.sb(e.content)?e.content.textContent??"":"string"===typeof e.content?e.content:e.content.value).includes("\n"),skipFadeInAnimation:!0}}}};Cs=rs([os(0,Me.pG),os(1,Ie.TN)],Cs);var Es=i(62890),bs=i(3828);const Ss="done",ys="active",ws="infinite",Rs="infinite-long-running",Ls="discrete";class Ts extends c.jG{static{this.LONG_RUNNING_INFINITE_THRESHOLD=1e4}constructor(e,t){super(),this.progressSignal=this._register(new c.HE),this.workedVal=0,this.showDelayedScheduler=this._register(new m.uC((()=>(0,U.WU)(this.element)),0)),this.longRunningScheduler=this._register(new m.uC((()=>this.infiniteLongRunning()),Ts.LONG_RUNNING_INFINITE_THRESHOLD)),this.create(e,t)}create(e,t){this.element=document.createElement("div"),this.element.classList.add("monaco-progress-container"),this.element.setAttribute("role","progressbar"),this.element.setAttribute("aria-valuemin","0"),e.appendChild(this.element),this.bit=document.createElement("div"),this.bit.classList.add("progress-bit"),this.bit.style.backgroundColor=t?.progressBarBackground||"#0E70C0",this.element.appendChild(this.bit)}off(){this.bit.style.width="inherit",this.bit.style.opacity="1",this.element.classList.remove(ys,ws,Rs,Ls),this.workedVal=0,this.totalWork=void 0,this.longRunningScheduler.cancel(),this.progressSignal.clear()}stop(){return this.doDone(!1)}doDone(e){return this.element.classList.add(Ss),this.element.classList.contains(ws)?(this.bit.style.opacity="0",e?setTimeout((()=>this.off()),200):this.off()):(this.bit.style.width="inherit",e?setTimeout((()=>this.off()),200):this.off()),this}infinite(){return this.bit.style.width="2%",this.bit.style.opacity="1",this.element.classList.remove(Ls,Ss,Rs),this.element.classList.add(ys,ws),this.longRunningScheduler.schedule(),this}infiniteLongRunning(){this.element.classList.add(Rs)}getContainer(){return this.element}}var xs=i(88443);const ks=U.$;class As extends c.jG{constructor(e,t,i){super(),this.parent=e,this.onKeyDown=e=>U.b2(this.findInput.inputBox.inputElement,U.Bx.KEY_DOWN,e),this.onDidChange=e=>this.findInput.onDidChange(e),this.container=U.BC(this.parent,ks(".quick-input-box")),this.findInput=this._register(new xs.c(this.container,void 0,{label:"",inputBoxStyles:t,toggleStyles:i}));const s=this.findInput.inputBox.inputElement;s.role="combobox",s.ariaHasPopup="menu",s.ariaAutoComplete="list",s.ariaExpanded="true"}get value(){return this.findInput.getValue()}set value(e){this.findInput.setValue(e)}select(e=null){this.findInput.inputBox.select(e)}getSelection(){return this.findInput.inputBox.getSelection()}isSelectionAtEnd(){return this.findInput.inputBox.isSelectionAtEnd()}get placeholder(){return this.findInput.inputBox.inputElement.getAttribute("placeholder")||""}set placeholder(e){this.findInput.inputBox.setPlaceHolder(e)}get password(){return"password"===this.findInput.inputBox.inputElement.type}set password(e){this.findInput.inputBox.inputElement.type=e?"password":"text"}set enabled(e){this.findInput.inputBox.inputElement.toggleAttribute("readonly",!e)}set toggles(e){this.findInput.setAdditionalToggles(e)}setAttribute(e,t){this.findInput.inputBox.inputElement.setAttribute(e,t)}showDecoration(e){e===ge.A.Ignore?this.findInput.clearMessage():this.findInput.showMessage({type:e===ge.A.Info?1:e===ge.A.Warning?2:3,content:""})}stylesForType(e){return this.findInput.inputBox.stylesForType(e===ge.A.Info?1:e===ge.A.Warning?2:3)}setFocus(){this.findInput.focus()}layout(){this.findInput.inputBox.layout()}}var Ns=i(36584),Is=i(21852),Os=i(47625),Ds=i(86723),Ms=i(91090);const Ps=new Ms.d((()=>{const e=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});return{collator:e,collatorIsNumeric:e.resolvedOptions().numeric}}));new Ms.d((()=>({collator:new Intl.Collator(void 0,{numeric:!0})}))),new Ms.d((()=>({collator:new Intl.Collator(void 0,{numeric:!0,sensitivity:"accent"})})));function Fs(e,t,i){const s=e.toLowerCase(),n=t.toLowerCase(),r=function(e,t,i){const s=e.toLowerCase(),n=t.toLowerCase(),r=s.startsWith(i),o=n.startsWith(i);if(r!==o)return r?-1:1;if(r&&o){if(s.length<n.length)return-1;if(s.length>n.length)return 1}return 0}(e,t,i);if(r)return r;const o=s.endsWith(i);if(o!==n.endsWith(i))return o?-1:1;const a=function(e,t){const i=e||"",s=t||"",n=Ps.value.collator.compare(i,s);return Ps.value.collatorIsNumeric&&0===n&&i!==s?i<s?-1:1:n}(s,n);return 0!==a?a:s.localeCompare(n)}var Us,Hs=i(19466),Bs=i(31308),Ws=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Vs=function(e,t){return function(i,s){t(i,s,e)}};const zs=U.$;class Gs{constructor(e,t,i){this.index=e,this.hasCheckbox=t,this._hidden=!1,this._init=new Ms.d((()=>{const e=i.label??"",t=(0,pi._k)(e).text.trim(),s=i.ariaLabel||[e,this.saneDescription,this.saneDetail].map((e=>(0,pi.R$)(e))).filter((e=>!!e)).join(", ");return{saneLabel:e,saneSortLabel:t,saneAriaLabel:s}})),this._saneDescription=i.description,this._saneTooltip=i.tooltip}get saneLabel(){return this._init.value.saneLabel}get saneSortLabel(){return this._init.value.saneSortLabel}get saneAriaLabel(){return this._init.value.saneAriaLabel}get element(){return this._element}set element(e){this._element=e}get hidden(){return this._hidden}set hidden(e){this._hidden=e}get saneDescription(){return this._saneDescription}set saneDescription(e){this._saneDescription=e}get saneDetail(){return this._saneDetail}set saneDetail(e){this._saneDetail=e}get saneTooltip(){return this._saneTooltip}set saneTooltip(e){this._saneTooltip=e}get labelHighlights(){return this._labelHighlights}set labelHighlights(e){this._labelHighlights=e}get descriptionHighlights(){return this._descriptionHighlights}set descriptionHighlights(e){this._descriptionHighlights=e}get detailHighlights(){return this._detailHighlights}set detailHighlights(e){this._detailHighlights=e}}class js extends Gs{constructor(e,t,i,s,n,r){super(e,t,n),this.fireButtonTriggered=i,this._onChecked=s,this.item=n,this._separator=r,this._checked=!1,this.onChecked=t?Q.Jh.map(Q.Jh.filter(this._onChecked.event,(e=>e.element===this)),(e=>e.checked)):Q.Jh.None,this._saneDetail=n.detail,this._labelHighlights=n.highlights?.label,this._descriptionHighlights=n.highlights?.description,this._detailHighlights=n.highlights?.detail}get separator(){return this._separator}set separator(e){this._separator=e}get checked(){return this._checked}set checked(e){e!==this._checked&&(this._checked=e,this._onChecked.fire({element:this,checked:e}))}get checkboxDisabled(){return!!this.item.disabled}}var Ks;!function(e){e[e.NONE=0]="NONE",e[e.MOUSE_HOVER=1]="MOUSE_HOVER",e[e.ACTIVE_ITEM=2]="ACTIVE_ITEM"}(Ks||(Ks={}));class Ys extends Gs{constructor(e,t,i){super(e,!1,i),this.fireSeparatorButtonTriggered=t,this.separator=i,this.children=new Array,this.focusInsideSeparator=Ks.NONE}}class qs{getHeight(e){return e instanceof Ys?30:e.saneDetail?44:22}getTemplateId(e){return e instanceof js?Xs.ID:Zs.ID}}class $s{getWidgetAriaLabel(){return(0,b.kg)("quickInput","Quick Input")}getAriaLabel(e){return e.separator?.label?`${e.saneAriaLabel}, ${e.separator.label}`:e.saneAriaLabel}getWidgetRole(){return"listbox"}getRole(e){return e.hasCheckbox?"checkbox":"option"}isChecked(e){if(e.hasCheckbox&&e instanceof js)return{get value(){return e.checked},onDidChange:t=>e.onChecked((()=>t()))}}}class Qs{constructor(e){this.hoverDelegate=e}renderTemplate(e){const t=Object.create(null);t.toDisposeElement=new c.Cm,t.toDisposeTemplate=new c.Cm,t.entry=U.BC(e,zs(".quick-input-list-entry"));const i=U.BC(t.entry,zs("label.quick-input-list-label"));t.toDisposeTemplate.add(U.b2(i,U.Bx.CLICK,(e=>{t.checkbox.offsetParent||e.preventDefault()}))),t.checkbox=U.BC(i,zs("input.quick-input-list-checkbox")),t.checkbox.type="checkbox";const s=U.BC(i,zs(".quick-input-list-rows")),n=U.BC(s,zs(".quick-input-list-row")),r=U.BC(s,zs(".quick-input-list-row"));t.label=new Is.s(n,{supportHighlights:!0,supportDescriptionHighlights:!0,supportIcons:!0,hoverDelegate:this.hoverDelegate}),t.toDisposeTemplate.add(t.label),t.icon=U.Hs(t.label.element,zs(".quick-input-list-icon"));const o=U.BC(n,zs(".quick-input-list-entry-keybinding"));t.keybinding=new Os.x(o,We.OS),t.toDisposeTemplate.add(t.keybinding);const a=U.BC(r,zs(".quick-input-list-label-meta"));return t.detail=new Is.s(a,{supportHighlights:!0,supportIcons:!0,hoverDelegate:this.hoverDelegate}),t.toDisposeTemplate.add(t.detail),t.separator=U.BC(t.entry,zs(".quick-input-list-separator")),t.actionBar=new ci.E(t.entry,this.hoverDelegate?{hoverDelegate:this.hoverDelegate}:void 0),t.actionBar.domNode.classList.add("quick-input-list-entry-action-bar"),t.toDisposeTemplate.add(t.actionBar),t}disposeTemplate(e){e.toDisposeElement.dispose(),e.toDisposeTemplate.dispose()}disposeElement(e,t,i){i.toDisposeElement.clear(),i.actionBar.clear()}}let Xs=class extends Qs{static{Us=this}static{this.ID="quickpickitem"}constructor(e,t){super(e),this.themeService=t,this._itemsWithSeparatorsFrequency=new Map}get templateId(){return Us.ID}renderTemplate(e){const t=super.renderTemplate(e);return t.toDisposeTemplate.add(U.b2(t.checkbox,U.Bx.CHANGE,(e=>{t.element.checked=t.checkbox.checked}))),t}renderElement(e,t,i){const s=e.element;i.element=s,s.element=i.entry??void 0;const n=s.item;i.checkbox.checked=s.checked,i.toDisposeElement.add(s.onChecked((e=>i.checkbox.checked=e))),i.checkbox.disabled=s.checkboxDisabled;const{labelHighlights:r,descriptionHighlights:o,detailHighlights:a}=s;if(n.iconPath){const e=(0,Ds.HD)(this.themeService.getColorTheme().type)?n.iconPath.dark:n.iconPath.light??n.iconPath.dark,t=h.r.revive(e);i.icon.className="quick-input-list-icon",i.icon.style.backgroundImage=U.Tf(t)}else i.icon.style.backgroundImage="",i.icon.className=n.iconClass?`quick-input-list-icon ${n.iconClass}`:"";let c;!s.saneTooltip&&s.saneDescription&&(c={markdown:{value:s.saneDescription,supportThemeIcons:!0},markdownNotSupportedFallback:s.saneDescription});const l={matches:r||[],descriptionTitle:c,descriptionMatches:o||[],labelEscapeNewLines:!0};if(l.extraClasses=n.iconClasses,l.italic=n.italic,l.strikethrough=n.strikethrough,i.entry.classList.remove("quick-input-list-separator-as-item"),i.label.setLabel(s.saneLabel,s.saneDescription,l),i.keybinding.set(n.keybinding),s.saneDetail){let e;s.saneTooltip||(e={markdown:{value:s.saneDetail,supportThemeIcons:!0},markdownNotSupportedFallback:s.saneDetail}),i.detail.element.style.display="",i.detail.setLabel(s.saneDetail,void 0,{matches:a,title:e,labelEscapeNewLines:!0})}else i.detail.element.style.display="none";s.separator?.label?(i.separator.textContent=s.separator.label,i.separator.style.display="",this.addItemWithSeparator(s)):i.separator.style.display="none",i.entry.classList.toggle("quick-input-list-separator-border",!!s.separator);const d=n.buttons;d&&d.length?(i.actionBar.push(d.map(((e,t)=>ss(e,`id-${t}`,(()=>s.fireButtonTriggered({button:e,item:s.item}))))),{icon:!0,label:!1}),i.entry.classList.add("has-actions")):i.entry.classList.remove("has-actions")}disposeElement(e,t,i){this.removeItemWithSeparator(e.element),super.disposeElement(e,t,i)}isItemWithSeparatorVisible(e){return this._itemsWithSeparatorsFrequency.has(e)}addItemWithSeparator(e){this._itemsWithSeparatorsFrequency.set(e,(this._itemsWithSeparatorsFrequency.get(e)||0)+1)}removeItemWithSeparator(e){const t=this._itemsWithSeparatorsFrequency.get(e)||0;t>1?this._itemsWithSeparatorsFrequency.set(e,t-1):this._itemsWithSeparatorsFrequency.delete(e)}};Xs=Us=Ws([Vs(1,Z.Gy)],Xs);class Zs extends Qs{constructor(){super(...arguments),this._visibleSeparatorsFrequency=new Map}static{this.ID="quickpickseparator"}get templateId(){return Zs.ID}get visibleSeparators(){return[...this._visibleSeparatorsFrequency.keys()]}isSeparatorVisible(e){return this._visibleSeparatorsFrequency.has(e)}renderTemplate(e){const t=super.renderTemplate(e);return t.checkbox.style.display="none",t}renderElement(e,t,i){const s=e.element;i.element=s,s.element=i.entry??void 0,s.element.classList.toggle("focus-inside",!!s.focusInsideSeparator);const n=s.separator,{labelHighlights:r,descriptionHighlights:o,detailHighlights:a}=s;let c;i.icon.style.backgroundImage="",i.icon.className="",!s.saneTooltip&&s.saneDescription&&(c={markdown:{value:s.saneDescription,supportThemeIcons:!0},markdownNotSupportedFallback:s.saneDescription});const l={matches:r||[],descriptionTitle:c,descriptionMatches:o||[],labelEscapeNewLines:!0};if(i.entry.classList.add("quick-input-list-separator-as-item"),i.label.setLabel(s.saneLabel,s.saneDescription,l),s.saneDetail){let e;s.saneTooltip||(e={markdown:{value:s.saneDetail,supportThemeIcons:!0},markdownNotSupportedFallback:s.saneDetail}),i.detail.element.style.display="",i.detail.setLabel(s.saneDetail,void 0,{matches:a,title:e,labelEscapeNewLines:!0})}else i.detail.element.style.display="none";i.separator.style.display="none",i.entry.classList.add("quick-input-list-separator-border");const h=n.buttons;h&&h.length?(i.actionBar.push(h.map(((e,t)=>ss(e,`id-${t}`,(()=>s.fireSeparatorButtonTriggered({button:e,separator:s.separator}))))),{icon:!0,label:!1}),i.entry.classList.add("has-actions")):i.entry.classList.remove("has-actions"),this.addSeparator(s)}disposeElement(e,t,i){this.removeSeparator(e.element),this.isSeparatorVisible(e.element)||e.element.element?.classList.remove("focus-inside"),super.disposeElement(e,t,i)}addSeparator(e){this._visibleSeparatorsFrequency.set(e,(this._visibleSeparatorsFrequency.get(e)||0)+1)}removeSeparator(e){const t=this._visibleSeparatorsFrequency.get(e)||0;t>1?this._visibleSeparatorsFrequency.set(e,t-1):this._visibleSeparatorsFrequency.delete(e)}}let Js=class extends c.jG{constructor(e,t,i,s,n,r){super(),this.parent=e,this.hoverDelegate=t,this.linkOpenerDelegate=i,this.accessibilityService=r,this._onKeyDown=new Q.vl,this._onLeave=new Q.vl,this.onLeave=this._onLeave.event,this._visibleCountObservable=(0,Bs.FY)("VisibleCount",0),this.onChangedVisibleCount=Q.Jh.fromObservable(this._visibleCountObservable,this._store),this._allVisibleCheckedObservable=(0,Bs.FY)("AllVisibleChecked",!1),this.onChangedAllVisibleChecked=Q.Jh.fromObservable(this._allVisibleCheckedObservable,this._store),this._checkedCountObservable=(0,Bs.FY)("CheckedCount",0),this.onChangedCheckedCount=Q.Jh.fromObservable(this._checkedCountObservable,this._store),this._checkedElementsObservable=(0,Bs.Zh)({equalsFn:E.aI},new Array),this.onChangedCheckedElements=Q.Jh.fromObservable(this._checkedElementsObservable,this._store),this._onButtonTriggered=new Q.vl,this.onButtonTriggered=this._onButtonTriggered.event,this._onSeparatorButtonTriggered=new Q.vl,this.onSeparatorButtonTriggered=this._onSeparatorButtonTriggered.event,this._elementChecked=new Q.vl,this._elementCheckedEventBufferer=new Q.at,this._hasCheckboxes=!1,this._inputElements=new Array,this._elementTree=new Array,this._itemElements=new Array,this._elementDisposable=this._register(new c.Cm),this._matchOnDescription=!1,this._matchOnDetail=!1,this._matchOnLabel=!0,this._matchOnLabelMode="fuzzy",this._sortByLabel=!0,this._shouldLoop=!0,this._container=U.BC(this.parent,zs(".quick-input-list")),this._separatorRenderer=new Zs(t),this._itemRenderer=n.createInstance(Xs,t),this._tree=this._register(n.createInstance(Ns.zL,"QuickInput",this._container,new qs,[this._itemRenderer,this._separatorRenderer],{filter:{filter:e=>e.hidden?0:e instanceof Ys?2:1},sorter:{compare:(e,t)=>{if(!this.sortByLabel||!this._lastQueryString)return 0;return function(e,t,i){const s=e.labelHighlights||[],n=t.labelHighlights||[];if(s.length&&!n.length)return-1;if(!s.length&&n.length)return 1;if(0===s.length&&0===n.length)return 0;return Fs(e.saneSortLabel,t.saneSortLabel,i)}(e,t,this._lastQueryString.toLowerCase())}},accessibilityProvider:new $s,setRowLineHeight:!1,multipleSelectionSupport:!1,hideTwistiesOfChildlessElements:!0,renderIndentGuides:Hs.KP.None,findWidgetEnabled:!1,indent:0,horizontalScrolling:!1,allowNonCollapsibleParents:!0,alwaysConsumeMouseWheel:!0})),this._tree.getHTMLElement().id=s,this._registerListeners()}get onDidChangeFocus(){return Q.Jh.map(this._tree.onDidChangeFocus,(e=>e.elements.filter((e=>e instanceof js)).map((e=>e.item))),this._store)}get onDidChangeSelection(){return Q.Jh.map(this._tree.onDidChangeSelection,(e=>({items:e.elements.filter((e=>e instanceof js)).map((e=>e.item)),event:e.browserEvent})),this._store)}get displayed(){return"none"!==this._container.style.display}set displayed(e){this._container.style.display=e?"":"none"}get scrollTop(){return this._tree.scrollTop}set scrollTop(e){this._tree.scrollTop=e}get ariaLabel(){return this._tree.ariaLabel}set ariaLabel(e){this._tree.ariaLabel=e??""}set enabled(e){this._tree.getHTMLElement().style.pointerEvents=e?"":"none"}get matchOnDescription(){return this._matchOnDescription}set matchOnDescription(e){this._matchOnDescription=e}get matchOnDetail(){return this._matchOnDetail}set matchOnDetail(e){this._matchOnDetail=e}get matchOnLabel(){return this._matchOnLabel}set matchOnLabel(e){this._matchOnLabel=e}get matchOnLabelMode(){return this._matchOnLabelMode}set matchOnLabelMode(e){this._matchOnLabelMode=e}get sortByLabel(){return this._sortByLabel}set sortByLabel(e){this._sortByLabel=e}get shouldLoop(){return this._shouldLoop}set shouldLoop(e){this._shouldLoop=e}_registerListeners(){this._registerOnKeyDown(),this._registerOnContainerClick(),this._registerOnMouseMiddleClick(),this._registerOnTreeModelChanged(),this._registerOnElementChecked(),this._registerOnContextMenu(),this._registerHoverListeners(),this._registerSelectionChangeListener(),this._registerSeparatorActionShowingListeners()}_registerOnKeyDown(){this._register(this._tree.onKeyDown((e=>{const t=new Xe.Z(e);if(10===t.keyCode)this.toggleCheckbox();this._onKeyDown.fire(t)})))}_registerOnContainerClick(){this._register(U.ko(this._container,U.Bx.CLICK,(e=>{(e.x||e.y)&&this._onLeave.fire()})))}_registerOnMouseMiddleClick(){this._register(U.ko(this._container,U.Bx.AUXCLICK,(e=>{1===e.button&&this._onLeave.fire()})))}_registerOnTreeModelChanged(){this._register(this._tree.onDidChangeModel((()=>{const e=this._itemElements.filter((e=>!e.hidden)).length;this._visibleCountObservable.set(e,void 0),this._hasCheckboxes&&this._updateCheckedObservables()})))}_registerOnElementChecked(){this._register(this._elementCheckedEventBufferer.wrapEvent(this._elementChecked.event,((e,t)=>t))((e=>this._updateCheckedObservables())))}_registerOnContextMenu(){this._register(this._tree.onContextMenu((e=>{e.element&&(e.browserEvent.preventDefault(),this._tree.setSelection([e.element]))})))}_registerHoverListeners(){const e=this._register(new m.Th(this.hoverDelegate.delay));this._register(this._tree.onMouseOver((async t=>{if(U.nY(t.browserEvent.target))e.cancel();else if(U.nY(t.browserEvent.relatedTarget)||!U.QX(t.browserEvent.relatedTarget,t.element?.element))try{await e.trigger((async()=>{t.element instanceof js&&this.showHover(t.element)}))}catch(t){if(!(0,v.MB)(t))throw t}}))),this._register(this._tree.onMouseOut((t=>{U.QX(t.browserEvent.relatedTarget,t.element?.element)||e.cancel()})))}_registerSeparatorActionShowingListeners(){this._register(this._tree.onDidChangeFocus((e=>{const t=e.elements[0]?this._tree.getParentElement(e.elements[0]):null;for(const i of this._separatorRenderer.visibleSeparators){const e=i===t;!!(i.focusInsideSeparator&Ks.ACTIVE_ITEM)!==e&&(e?i.focusInsideSeparator|=Ks.ACTIVE_ITEM:i.focusInsideSeparator&=~Ks.ACTIVE_ITEM,this._tree.rerender(i))}}))),this._register(this._tree.onMouseOver((e=>{const t=e.element?this._tree.getParentElement(e.element):null;for(const i of this._separatorRenderer.visibleSeparators){if(i!==t)continue;!!(i.focusInsideSeparator&Ks.MOUSE_HOVER)||(i.focusInsideSeparator|=Ks.MOUSE_HOVER,this._tree.rerender(i))}}))),this._register(this._tree.onMouseOut((e=>{const t=e.element?this._tree.getParentElement(e.element):null;for(const i of this._separatorRenderer.visibleSeparators){if(i!==t)continue;!!(i.focusInsideSeparator&Ks.MOUSE_HOVER)&&(i.focusInsideSeparator&=~Ks.MOUSE_HOVER,this._tree.rerender(i))}})))}_registerSelectionChangeListener(){this._register(this._tree.onDidChangeSelection((e=>{const t=e.elements.filter((e=>e instanceof js));t.length!==e.elements.length&&(1===e.elements.length&&e.elements[0]instanceof Ys&&(this._tree.setFocus([e.elements[0].children[0]]),this._tree.reveal(e.elements[0],0)),this._tree.setSelection(t))})))}setAllVisibleChecked(e){this._elementCheckedEventBufferer.bufferEvents((()=>{this._itemElements.forEach((t=>{t.hidden||t.checkboxDisabled||(t.checked=e)}))}))}setElements(e){let t;this._elementDisposable.clear(),this._lastQueryString=void 0,this._inputElements=e,this._hasCheckboxes=this.parent.classList.contains("show-checkboxes"),this._itemElements=new Array,this._elementTree=e.reduce(((i,s,n)=>{let r;if("separator"===s.type){if(!s.buttons)return i;t=new Ys(n,(e=>this._onSeparatorButtonTriggered.fire(e)),s),r=t}else{const o=n>0?e[n-1]:void 0;let a;o&&"separator"===o.type&&!o.buttons&&(t=void 0,a=o);const c=new js(n,this._hasCheckboxes,(e=>this._onButtonTriggered.fire(e)),this._elementChecked,s,a);if(this._itemElements.push(c),t)return t.children.push(c),i;r=c}return i.push(r),i}),new Array),this._setElementsToTree(this._elementTree),this.accessibilityService.isScreenReaderOptimized()&&setTimeout((()=>{const e=this._tree.getHTMLElement().querySelector(".monaco-list-row.focused"),t=e?.parentNode;if(e&&t){const i=e.nextSibling;e.remove(),t.insertBefore(e,i)}}),0)}setFocusedElements(e){const t=e.map((e=>this._itemElements.find((t=>t.item===e)))).filter((e=>!!e)).filter((e=>!e.hidden));if(this._tree.setFocus(t),e.length>0){const e=this._tree.getFocus()[0];e&&this._tree.reveal(e)}}getActiveDescendant(){return this._tree.getHTMLElement().getAttribute("aria-activedescendant")}setSelectedElements(e){const t=e.map((e=>this._itemElements.find((t=>t.item===e)))).filter((e=>!!e));this._tree.setSelection(t)}getCheckedElements(){return this._itemElements.filter((e=>e.checked)).map((e=>e.item))}setCheckedElements(e){this._elementCheckedEventBufferer.bufferEvents((()=>{const t=new Set;for(const i of e)t.add(i);for(const e of this._itemElements)e.checked=t.has(e.item)}))}focus(e){if(this._itemElements.length)switch(e===zi.Fp.Second&&this._itemElements.length<2&&(e=zi.Fp.First),e){case zi.Fp.First:this._tree.scrollTop=0,this._tree.focusFirst(void 0,(e=>e.element instanceof js));break;case zi.Fp.Second:{this._tree.scrollTop=0;let e=!1;this._tree.focusFirst(void 0,(t=>t.element instanceof js&&(!!e||(e=!e,!1))));break}case zi.Fp.Last:this._tree.scrollTop=this._tree.scrollHeight,this._tree.focusLast(void 0,(e=>e.element instanceof js));break;case zi.Fp.Next:{const e=this._tree.getFocus();this._tree.focusNext(void 0,this._shouldLoop,void 0,(e=>e.element instanceof js&&(this._tree.reveal(e.element),!0)));const t=this._tree.getFocus();e.length&&e[0]===t[0]&&e[0]===this._itemElements[this._itemElements.length-1]&&this._onLeave.fire();break}case zi.Fp.Previous:{const e=this._tree.getFocus();this._tree.focusPrevious(void 0,this._shouldLoop,void 0,(e=>{if(!(e.element instanceof js))return!1;const t=this._tree.getParentElement(e.element);return null===t||t.children[0]!==e.element?this._tree.reveal(e.element):this._tree.reveal(t),!0}));const t=this._tree.getFocus();e.length&&e[0]===t[0]&&e[0]===this._itemElements[0]&&this._onLeave.fire();break}case zi.Fp.NextPage:this._tree.focusNextPage(void 0,(e=>e.element instanceof js&&(this._tree.reveal(e.element),!0)));break;case zi.Fp.PreviousPage:this._tree.focusPreviousPage(void 0,(e=>{if(!(e.element instanceof js))return!1;const t=this._tree.getParentElement(e.element);return null===t||t.children[0]!==e.element?this._tree.reveal(e.element):this._tree.reveal(t),!0}));break;case zi.Fp.NextSeparator:{let e=!1;const t=this._tree.getFocus()[0];this._tree.focusNext(void 0,!0,void 0,(t=>{if(e)return!0;if(t.element instanceof Ys)e=!0,this._separatorRenderer.isSeparatorVisible(t.element)?this._tree.reveal(t.element.children[0]):this._tree.reveal(t.element,0);else if(t.element instanceof js){if(t.element.separator)return this._itemRenderer.isItemWithSeparatorVisible(t.element)?this._tree.reveal(t.element):this._tree.reveal(t.element,0),!0;if(t.element===this._elementTree[0])return this._tree.reveal(t.element,0),!0}return!1}));t===this._tree.getFocus()[0]&&(this._tree.scrollTop=this._tree.scrollHeight,this._tree.focusLast(void 0,(e=>e.element instanceof js)));break}case zi.Fp.PreviousSeparator:{let e,t=!!this._tree.getFocus()[0]?.separator;this._tree.focusPrevious(void 0,!0,void 0,(i=>{if(i.element instanceof Ys)t?e||(this._separatorRenderer.isSeparatorVisible(i.element)?this._tree.reveal(i.element):this._tree.reveal(i.element,0),e=i.element.children[0]):t=!0;else if(i.element instanceof js&&!e)if(i.element.separator)this._itemRenderer.isItemWithSeparatorVisible(i.element)?this._tree.reveal(i.element):this._tree.reveal(i.element,0),e=i.element;else if(i.element===this._elementTree[0])return this._tree.reveal(i.element,0),!0;return!1})),e&&this._tree.setFocus([e]);break}}}clearFocus(){this._tree.setFocus([])}domFocus(){this._tree.domFocus()}layout(e){this._tree.getHTMLElement().style.maxHeight=e?44*Math.floor(e/44)+6+"px":"",this._tree.layout()}filter(e){if(this._lastQueryString=e,!(this._sortByLabel||this._matchOnLabel||this._matchOnDescription||this._matchOnDetail))return this._tree.layout(),!1;const t=e;if((e=e.trim())&&(this.matchOnLabel||this.matchOnDescription||this.matchOnDetail)){let i;this._itemElements.forEach((s=>{let n;n="fuzzy"===this.matchOnLabelMode?this.matchOnLabel?(0,pi.pz)(e,(0,pi._k)(s.saneLabel))??void 0:void 0:this.matchOnLabel?function(e,t){const{text:i,iconOffsets:s}=t;if(!s||0===s.length)return en(e,i);const n=(0,l.NB)(i," "),r=i.length-n.length,o=en(e,n);if(o)for(const a of o){const e=s[a.start+r]+r;a.start+=e,a.end+=e}return o}(t,(0,pi._k)(s.saneLabel))??void 0:void 0;const r=this.matchOnDescription?(0,pi.pz)(e,(0,pi._k)(s.saneDescription||""))??void 0:void 0,o=this.matchOnDetail?(0,pi.pz)(e,(0,pi._k)(s.saneDetail||""))??void 0:void 0;if(n||r||o?(s.labelHighlights=n,s.descriptionHighlights=r,s.detailHighlights=o,s.hidden=!1):(s.labelHighlights=void 0,s.descriptionHighlights=void 0,s.detailHighlights=void 0,s.hidden=!s.item||!s.item.alwaysShow),s.item?s.separator=void 0:s.separator&&(s.hidden=!0),!this.sortByLabel){const e=s.index&&this._inputElements[s.index-1]||void 0;"separator"!==e?.type||e.buttons||(i=e),i&&!s.hidden&&(s.separator=i,i=void 0)}}))}else this._itemElements.forEach((e=>{e.labelHighlights=void 0,e.descriptionHighlights=void 0,e.detailHighlights=void 0,e.hidden=!1;const t=e.index&&this._inputElements[e.index-1];e.item&&(e.separator=t&&"separator"===t.type&&!t.buttons?t:void 0)}));return this._setElementsToTree(this._sortByLabel&&e?this._itemElements:this._elementTree),this._tree.layout(),!0}toggleCheckbox(){this._elementCheckedEventBufferer.bufferEvents((()=>{const e=this._tree.getFocus().filter((e=>e instanceof js)),t=this._allVisibleChecked(e);for(const i of e)i.checkboxDisabled||(i.checked=!t)}))}style(e){this._tree.style(e)}toggleHover(){const e=this._tree.getFocus()[0];if(!e?.saneTooltip||!(e instanceof js))return;if(this._lastHover&&!this._lastHover.isDisposed)return void this._lastHover.dispose();this.showHover(e);const t=new c.Cm;t.add(this._tree.onDidChangeFocus((e=>{e.elements[0]instanceof js&&this.showHover(e.elements[0])}))),this._lastHover&&t.add(this._lastHover),this._elementDisposable.add(t)}_setElementsToTree(e){const t=new Array;for(const i of e)i instanceof Ys?t.push({element:i,collapsible:!1,collapsed:!1,children:i.children.map((e=>({element:e,collapsible:!1,collapsed:!1})))}):t.push({element:i,collapsible:!1,collapsed:!1});this._tree.setChildren(null,t)}_allVisibleChecked(e,t=!0){for(let i=0,s=e.length;i<s;i++){const s=e[i];if(!s.hidden){if(!s.checked)return!1;t=!0}}return t}_updateCheckedObservables(){(0,Bs.Rn)((e=>{this._allVisibleCheckedObservable.set(this._allVisibleChecked(this._itemElements,!1),e);const t=this._itemElements.filter((e=>e.checked)).length;this._checkedCountObservable.set(t,e),this._checkedElementsObservable.set(this.getCheckedElements(),e)}))}showHover(e){this._lastHover&&!this._lastHover.isDisposed&&(this.hoverDelegate.onDidHideHover?.(),this._lastHover?.dispose()),e.element&&e.saneTooltip&&(this._lastHover=this.hoverDelegate.showHover({content:e.saneTooltip,target:e.element,linkHandler:e=>{this.linkOpenerDelegate(e)},appearance:{showPointer:!0},container:this._container,position:{hoverPosition:1}},!1))}};function en(e,t){const i=t.toLowerCase().indexOf(e.toLowerCase());return-1!==i?[{start:i,end:i+e.length}]:null}Ws([Xi.B],Js.prototype,"onDidChangeFocus",null),Ws([Xi.B],Js.prototype,"onDidChangeSelection",null),Js=Ws([Vs(4,ae._Y),Vs(5,Ve.j)],Js);var tn=i(28290);const sn={weight:200,when:ie.M$.and(ie.M$.equals(hs,"quickPick"),ls),metadata:{description:(0,b.kg)("quickPick","Used while in the context of the quick pick. If you change one keybinding for this command, you should change all of the other keybindings (modifier variants) of this command as well.")}};function nn(e,t={}){Wt.f.registerCommandAndKeybindingRule({...sn,...e,secondary:on(e.primary,e.secondary??[],t)})}const rn=We.zx?256:2048;function on(e,t,i={}){return i.withAltMod&&t.push(512+e),i.withCtrlMod&&(t.push(rn+e),i.withAltMod&&t.push(512+rn+e)),i.withCmdMod&&We.zx&&(t.push(2048+e),i.withCtrlMod&&t.push(2304+e),i.withAltMod&&(t.push(2560+e),i.withCtrlMod&&t.push(2816+e))),t}function an(e,t){return i=>{const s=i.get(zi.GK).currentQuickInput;if(s)return t&&s.quickNavigate?s.focus(t):s.focus(e)}}nn({id:"quickInput.pageNext",primary:12,handler:an(zi.Fp.NextPage)},{withAltMod:!0,withCtrlMod:!0,withCmdMod:!0}),nn({id:"quickInput.pagePrevious",primary:11,handler:an(zi.Fp.PreviousPage)},{withAltMod:!0,withCtrlMod:!0,withCmdMod:!0}),nn({id:"quickInput.first",primary:rn+14,handler:an(zi.Fp.First)},{withAltMod:!0,withCmdMod:!0}),nn({id:"quickInput.last",primary:rn+13,handler:an(zi.Fp.Last)},{withAltMod:!0,withCmdMod:!0}),nn({id:"quickInput.next",primary:18,handler:an(zi.Fp.Next)},{withCtrlMod:!0}),nn({id:"quickInput.previous",primary:16,handler:an(zi.Fp.Previous)},{withCtrlMod:!0});const cn=(0,b.kg)("quickInput.nextSeparatorWithQuickAccessFallback","If we're in quick access mode, this will navigate to the next item. If we are not in quick access mode, this will navigate to the next separator."),ln=(0,b.kg)("quickInput.previousSeparatorWithQuickAccessFallback","If we're in quick access mode, this will navigate to the previous item. If we are not in quick access mode, this will navigate to the previous separator.");We.zx?(nn({id:"quickInput.nextSeparatorWithQuickAccessFallback",primary:2066,handler:an(zi.Fp.NextSeparator,zi.Fp.Next),metadata:{description:cn}}),nn({id:"quickInput.nextSeparator",primary:2578,secondary:[2322],handler:an(zi.Fp.NextSeparator)},{withCtrlMod:!0}),nn({id:"quickInput.previousSeparatorWithQuickAccessFallback",primary:2064,handler:an(zi.Fp.PreviousSeparator,zi.Fp.Previous),metadata:{description:ln}}),nn({id:"quickInput.previousSeparator",primary:2576,secondary:[2320],handler:an(zi.Fp.PreviousSeparator)},{withCtrlMod:!0})):(nn({id:"quickInput.nextSeparatorWithQuickAccessFallback",primary:530,handler:an(zi.Fp.NextSeparator,zi.Fp.Next),metadata:{description:cn}}),nn({id:"quickInput.nextSeparator",primary:2578,handler:an(zi.Fp.NextSeparator)}),nn({id:"quickInput.previousSeparatorWithQuickAccessFallback",primary:528,handler:an(zi.Fp.PreviousSeparator,zi.Fp.Previous),metadata:{description:ln}}),nn({id:"quickInput.previousSeparator",primary:2576,handler:an(zi.Fp.PreviousSeparator)})),nn({id:"quickInput.acceptInBackground",when:ie.M$.and(sn.when,ie.M$.or(tn.J7.negate(),ps)),primary:17,weight:250,handler:e=>{const t=e.get(zi.GK).currentQuickInput;t?.accept(!0)}},{withAltMod:!0,withCtrlMod:!0,withCmdMod:!0});var hn,dn=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},un=function(e,t){return function(i,s){t(i,s,e)}};const gn=U.$;let pn=class extends c.jG{static{hn=this}static{this.MAX_WIDTH=600}get currentQuickInput(){return this.controller??void 0}get container(){return this._container}constructor(e,t,i,s){super(),this.options=e,this.layoutService=t,this.instantiationService=i,this.contextKeyService=s,this.enabled=!0,this.onDidAcceptEmitter=this._register(new Q.vl),this.onDidCustomEmitter=this._register(new Q.vl),this.onDidTriggerButtonEmitter=this._register(new Q.vl),this.keyMods={ctrlCmd:!1,alt:!1},this.controller=null,this.onShowEmitter=this._register(new Q.vl),this.onShow=this.onShowEmitter.event,this.onHideEmitter=this._register(new Q.vl),this.onHide=this.onHideEmitter.event,this.inQuickInputContext=cs.bindTo(this.contextKeyService),this.quickInputTypeContext=ds.bindTo(this.contextKeyService),this.endOfQuickInputBoxContext=gs.bindTo(this.contextKeyService),this.idPrefix=e.idPrefix,this._container=e.container,this.styles=e.styles,this._register(Q.Jh.runAndSubscribe(U.Iv,(({window:e,disposables:t})=>this.registerKeyModsListeners(e,t)),{window:a.G,disposables:this._store})),this._register(U.q3((e=>{this.ui&&U.zk(this.ui.container)===e&&(this.reparentUI(this.layoutService.mainContainer),this.layout(this.layoutService.mainContainerDimension,this.layoutService.mainContainerOffset.quickPickTop))})))}registerKeyModsListeners(e,t){const i=e=>{this.keyMods.ctrlCmd=e.ctrlKey||e.metaKey,this.keyMods.alt=e.altKey};for(const s of[U.Bx.KEY_DOWN,U.Bx.KEY_UP,U.Bx.MOUSE_DOWN])t.add(U.ko(e,s,i,!0))}getUI(e){if(this.ui)return e&&U.zk(this._container)!==U.zk(this.layoutService.activeContainer)&&(this.reparentUI(this.layoutService.activeContainer),this.layout(this.layoutService.activeContainerDimension,this.layoutService.activeContainerOffset.quickPickTop)),this.ui;const t=U.BC(this._container,gn(".quick-input-widget.show-file-icons"));t.tabIndex=-1,t.style.display="none";const i=U.li(t),s=U.BC(t,gn(".quick-input-titlebar")),n=this._register(new ci.E(s,{hoverDelegate:this.options.hoverDelegate}));n.domNode.classList.add("quick-input-left-action-bar");const r=U.BC(s,gn(".quick-input-title")),o=this._register(new ci.E(s,{hoverDelegate:this.options.hoverDelegate}));o.domNode.classList.add("quick-input-right-action-bar");const a=U.BC(t,gn(".quick-input-header")),c=U.BC(a,gn("input.quick-input-check-all"));c.type="checkbox",c.setAttribute("aria-label",(0,b.kg)("quickInput.checkAll","Toggle all checkboxes")),this._register(U.b2(c,U.Bx.CHANGE,(e=>{const t=c.checked;x.setAllVisibleChecked(t)}))),this._register(U.ko(c,U.Bx.CLICK,(e=>{(e.x||e.y)&&u.setFocus()})));const l=U.BC(a,gn(".quick-input-description")),h=U.BC(a,gn(".quick-input-and-message")),d=U.BC(h,gn(".quick-input-filter")),u=this._register(new As(d,this.styles.inputBox,this.styles.toggle));u.setAttribute("aria-describedby",`${this.idPrefix}message`);const g=U.BC(d,gn(".quick-input-visible-count"));g.setAttribute("aria-live","polite"),g.setAttribute("aria-atomic","true");const p=new bs.x(g,{countFormat:(0,b.kg)({key:"quickInput.visibleCount",comment:["This tells the user how many items are shown in a list of items to select from. The items can be anything. Currently not visible, but read by screen readers."]},"{0} Results")},this.styles.countBadge),m=U.BC(d,gn(".quick-input-count"));m.setAttribute("aria-live","polite");const f=new bs.x(m,{countFormat:(0,b.kg)({key:"quickInput.countSelected",comment:["This tells the user how many items are selected in a list of items to select from. The items can be anything."]},"{0} Selected")},this.styles.countBadge),_=this._register(new ci.E(a,{hoverDelegate:this.options.hoverDelegate}));_.domNode.classList.add("quick-input-inline-action-bar");const v=U.BC(a,gn(".quick-input-action")),C=this._register(new Es.$(v,this.styles.button));C.label=(0,b.kg)("ok","OK"),this._register(C.onDidClick((e=>{this.onDidAcceptEmitter.fire()})));const E=U.BC(a,gn(".quick-input-action")),S=this._register(new Es.$(E,{...this.styles.button,supportIcons:!0}));S.label=(0,b.kg)("custom","Custom"),this._register(S.onDidClick((e=>{this.onDidCustomEmitter.fire()})));const y=U.BC(h,gn(`#${this.idPrefix}message.quick-input-message`)),w=this._register(new Ts(t,this.styles.progressBar));w.getContainer().classList.add("quick-input-progress");const R=U.BC(t,gn(".quick-input-html-widget"));R.tabIndex=-1;const L=U.BC(t,gn(".quick-input-description")),T=this.idPrefix+"list",x=this._register(this.instantiationService.createInstance(Js,t,this.options.hoverDelegate,this.options.linkOpenerDelegate,T));u.setAttribute("aria-controls",T),this._register(x.onDidChangeFocus((()=>{u.setAttribute("aria-activedescendant",x.getActiveDescendant()??"")}))),this._register(x.onChangedAllVisibleChecked((e=>{c.checked=e}))),this._register(x.onChangedVisibleCount((e=>{p.setCount(e)}))),this._register(x.onChangedCheckedCount((e=>{f.setCount(e)}))),this._register(x.onLeave((()=>{setTimeout((()=>{this.controller&&(u.setFocus(),this.controller instanceof _s&&this.controller.canSelectMany&&x.clearFocus())}),0)})));const k=U.w5(t);return this._register(k),this._register(U.ko(t,U.Bx.FOCUS,(e=>{const t=this.getUI();if(U.QX(e.relatedTarget,t.inputContainer)){const e=t.inputBox.isSelectionAtEnd();this.endOfQuickInputBoxContext.get()!==e&&this.endOfQuickInputBoxContext.set(e)}U.QX(e.relatedTarget,t.container)||(this.inQuickInputContext.set(!0),this.previousFocusElement=U.sb(e.relatedTarget)?e.relatedTarget:void 0)}),!0)),this._register(k.onDidBlur((()=>{this.getUI().ignoreFocusOut||this.options.ignoreFocusOut()||this.hide(zi.kF.Blur),this.inQuickInputContext.set(!1),this.endOfQuickInputBoxContext.set(!1),this.previousFocusElement=void 0}))),this._register(u.onKeyDown((e=>{const t=this.getUI().inputBox.isSelectionAtEnd();this.endOfQuickInputBoxContext.get()!==t&&this.endOfQuickInputBoxContext.set(t)}))),this._register(U.ko(t,U.Bx.FOCUS,(e=>{u.setFocus()}))),this._register(U.b2(t,U.Bx.KEY_DOWN,(e=>{if(!U.QX(e.target,R))switch(e.keyCode){case 3:U.fs.stop(e,!0),this.enabled&&this.onDidAcceptEmitter.fire();break;case 9:U.fs.stop(e,!0),this.hide(zi.kF.Gesture);break;case 2:if(!e.altKey&&!e.ctrlKey&&!e.metaKey){const i=[".quick-input-list .monaco-action-bar .always-visible",".quick-input-list-entry:hover .monaco-action-bar",".monaco-list-row.focused .monaco-action-bar"];if(t.classList.contains("show-checkboxes")?i.push("input"):i.push("input[type=text]"),this.getUI().list.displayed&&i.push(".monaco-list"),this.getUI().message&&i.push(".quick-input-message a"),this.getUI().widget){if(U.QX(e.target,this.getUI().widget))break;i.push(".quick-input-html-widget")}const s=t.querySelectorAll(i.join(", "));e.shiftKey&&e.target===s[0]?(U.fs.stop(e,!0),x.clearFocus()):!e.shiftKey&&U.QX(e.target,s[s.length-1])&&(U.fs.stop(e,!0),s[0].focus())}break;case 10:e.ctrlKey&&(U.fs.stop(e,!0),this.getUI().list.toggleHover())}}))),this.ui={container:t,styleSheet:i,leftActionBar:n,titleBar:s,title:r,description1:L,description2:l,widget:R,rightActionBar:o,inlineActionBar:_,checkAll:c,inputContainer:h,filterContainer:d,inputBox:u,visibleCountContainer:g,visibleCount:p,countContainer:m,count:f,okContainer:v,ok:C,message:y,customButtonContainer:E,customButton:S,list:x,progressBar:w,onDidAccept:this.onDidAcceptEmitter.event,onDidCustom:this.onDidCustomEmitter.event,onDidTriggerButton:this.onDidTriggerButtonEmitter.event,ignoreFocusOut:!1,keyMods:this.keyMods,show:e=>this.show(e),hide:()=>this.hide(),setVisibilities:e=>this.setVisibilities(e),setEnabled:e=>this.setEnabled(e),setContextKey:e=>this.options.setContextKey(e),linkOpenerDelegate:e=>this.options.linkOpenerDelegate(e)},this.updateStyles(),this.ui}reparentUI(e){this.ui&&(this._container=e,U.BC(this._container,this.ui.container))}pick(e,t={},i=at.XO.None){return new Promise(((s,n)=>{let r=e=>{r=s,t.onKeyMods?.(o.keyMods),s(e)};if(i.isCancellationRequested)return void r(void 0);const o=this.createQuickPick({useSeparators:!0});let a;const l=[o,o.onDidAccept((()=>{if(o.canSelectMany)r(o.selectedItems.slice()),o.hide();else{const e=o.activeItems[0];e&&(r(e),o.hide())}})),o.onDidChangeActive((e=>{const i=e[0];i&&t.onDidFocus&&t.onDidFocus(i)})),o.onDidChangeSelection((e=>{if(!o.canSelectMany){const t=e[0];t&&(r(t),o.hide())}})),o.onDidTriggerItemButton((e=>t.onDidTriggerItemButton&&t.onDidTriggerItemButton({...e,removeItem:()=>{const t=o.items.indexOf(e.item);if(-1!==t){const e=o.items.slice(),i=e.splice(t,1),s=o.activeItems.filter((e=>e!==i[0])),n=o.keepScrollPosition;o.keepScrollPosition=!0,o.items=e,s&&(o.activeItems=s),o.keepScrollPosition=n}}}))),o.onDidTriggerSeparatorButton((e=>t.onDidTriggerSeparatorButton?.(e))),o.onDidChangeValue((e=>{!a||e||1===o.activeItems.length&&o.activeItems[0]===a||(o.activeItems=[a])})),i.onCancellationRequested((()=>{o.hide()})),o.onDidHide((()=>{(0,c.AS)(l),r(void 0)}))];o.title=t.title,t.value&&(o.value=t.value),o.canSelectMany=!!t.canPickMany,o.placeholder=t.placeHolder,o.ignoreFocusOut=!!t.ignoreFocusLost,o.matchOnDescription=!!t.matchOnDescription,o.matchOnDetail=!!t.matchOnDetail,o.matchOnLabel=void 0===t.matchOnLabel||t.matchOnLabel,o.quickNavigate=t.quickNavigate,o.hideInput=!!t.hideInput,o.contextKey=t.contextKey,o.busy=!0,Promise.all([e,t.activeItem]).then((([e,t])=>{a=t,o.busy=!1,o.items=e,o.canSelectMany&&(o.selectedItems=e.filter((e=>"separator"!==e.type&&e.picked))),a&&(o.activeItems=[a])})),o.show(),Promise.resolve(e).then(void 0,(e=>{n(e),o.hide()}))}))}createQuickPick(e={useSeparators:!1}){const t=this.getUI(!0);return new _s(t)}createInputBox(){const e=this.getUI(!0);return new vs(e)}show(e){const t=this.getUI(!0);this.onShowEmitter.fire();const i=this.controller;this.controller=e,i?.didHide(),this.setEnabled(!0),t.leftActionBar.clear(),t.title.textContent="",t.description1.textContent="",t.description2.textContent="",U.Ln(t.widget),t.rightActionBar.clear(),t.inlineActionBar.clear(),t.checkAll.checked=!1,t.inputBox.placeholder="",t.inputBox.password=!1,t.inputBox.showDecoration(ge.A.Ignore),t.visibleCount.setCount(0),t.count.setCount(0),U.Ln(t.message),t.progressBar.stop(),t.list.setElements([]),t.list.matchOnDescription=!1,t.list.matchOnDetail=!1,t.list.matchOnLabel=!0,t.list.sortByLabel=!0,t.ignoreFocusOut=!1,t.inputBox.toggles=void 0;const s=this.options.backKeybindingLabel();ms.tooltip=s?(0,b.kg)("quickInput.backWithKeybinding","Back ({0})",s):(0,b.kg)("quickInput.back","Back"),t.container.style.display="",this.updateLayout(),t.inputBox.setFocus(),this.quickInputTypeContext.set(e.type)}isVisible(){return!!this.ui&&"none"!==this.ui.container.style.display}setVisibilities(e){const t=this.getUI();t.title.style.display=e.title?"":"none",t.description1.style.display=e.description&&(e.inputBox||e.checkAll)?"":"none",t.description2.style.display=!e.description||e.inputBox||e.checkAll?"none":"",t.checkAll.style.display=e.checkAll?"":"none",t.inputContainer.style.display=e.inputBox?"":"none",t.filterContainer.style.display=e.inputBox?"":"none",t.visibleCountContainer.style.display=e.visibleCount?"":"none",t.countContainer.style.display=e.count?"":"none",t.okContainer.style.display=e.ok?"":"none",t.customButtonContainer.style.display=e.customButton?"":"none",t.message.style.display=e.message?"":"none",t.progressBar.getContainer().style.display=e.progressBar?"":"none",t.list.displayed=!!e.list,t.container.classList.toggle("show-checkboxes",!!e.checkBox),t.container.classList.toggle("hidden-input",!e.inputBox&&!e.description),this.updateLayout()}setEnabled(e){if(e!==this.enabled){this.enabled=e;for(const t of this.getUI().leftActionBar.viewItems)t.action.enabled=e;for(const t of this.getUI().rightActionBar.viewItems)t.action.enabled=e;this.getUI().checkAll.disabled=!e,this.getUI().inputBox.enabled=e,this.getUI().ok.enabled=e,this.getUI().list.enabled=e}}hide(e){const t=this.controller;if(!t)return;t.willHide(e);const i=this.ui?.container,s=i&&!U.nR(i);if(this.controller=null,this.onHideEmitter.fire(),i&&(i.style.display="none"),!s){let e=this.previousFocusElement;for(;e&&!e.offsetParent;)e=e.parentElement??void 0;e?.offsetParent?(e.focus(),this.previousFocusElement=void 0):this.options.returnFocus()}t.didHide(e)}layout(e,t){this.dimension=e,this.titleBarOffset=t,this.updateLayout()}updateLayout(){if(this.ui&&this.isVisible()){this.ui.container.style.top=`${this.titleBarOffset}px`;const e=this.ui.container.style,t=Math.min(.62*this.dimension.width,hn.MAX_WIDTH);e.width=t+"px",e.marginLeft="-"+t/2+"px",this.ui.inputBox.layout(),this.ui.list.layout(this.dimension&&.4*this.dimension.height)}}applyStyles(e){this.styles=e,this.updateStyles()}updateStyles(){if(this.ui){const{quickInputTitleBackground:e,quickInputBackground:t,quickInputForeground:i,widgetBorder:s,widgetShadow:n}=this.styles.widget;this.ui.titleBar.style.backgroundColor=e??"",this.ui.container.style.backgroundColor=t??"",this.ui.container.style.color=i??"",this.ui.container.style.border=s?`1px solid ${s}`:"",this.ui.container.style.boxShadow=n?`0 0 8px 2px ${n}`:"",this.ui.list.style(this.styles.list);const r=[];this.styles.pickerGroup.pickerGroupBorder&&r.push(`.quick-input-list .quick-input-list-entry { border-top-color: ${this.styles.pickerGroup.pickerGroupBorder}; }`),this.styles.pickerGroup.pickerGroupForeground&&r.push(`.quick-input-list .quick-input-list-separator { color: ${this.styles.pickerGroup.pickerGroupForeground}; }`),this.styles.pickerGroup.pickerGroupForeground&&r.push(".quick-input-list .quick-input-list-separator-as-item { color: var(--vscode-descriptionForeground); }"),(this.styles.keybindingLabel.keybindingLabelBackground||this.styles.keybindingLabel.keybindingLabelBorder||this.styles.keybindingLabel.keybindingLabelBottomBorder||this.styles.keybindingLabel.keybindingLabelShadow||this.styles.keybindingLabel.keybindingLabelForeground)&&(r.push(".quick-input-list .monaco-keybinding > .monaco-keybinding-key {"),this.styles.keybindingLabel.keybindingLabelBackground&&r.push(`background-color: ${this.styles.keybindingLabel.keybindingLabelBackground};`),this.styles.keybindingLabel.keybindingLabelBorder&&r.push(`border-color: ${this.styles.keybindingLabel.keybindingLabelBorder};`),this.styles.keybindingLabel.keybindingLabelBottomBorder&&r.push(`border-bottom-color: ${this.styles.keybindingLabel.keybindingLabelBottomBorder};`),this.styles.keybindingLabel.keybindingLabelShadow&&r.push(`box-shadow: inset 0 -1px 0 ${this.styles.keybindingLabel.keybindingLabelShadow};`),this.styles.keybindingLabel.keybindingLabelForeground&&r.push(`color: ${this.styles.keybindingLabel.keybindingLabelForeground};`),r.push("}"));const o=r.join("\n");o!==this.ui.styleSheet.textContent&&(this.ui.styleSheet.textContent=o)}}};pn=hn=dn([un(1,ce),un(2,ae._Y),un(3,ie.fN)],pn);var mn=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},fn=function(e,t){return function(i,s){t(i,s,e)}};let _n=class extends Z.lR{get controller(){return this._controller||(this._controller=this._register(this.createController())),this._controller}get hasController(){return!!this._controller}get currentQuickInput(){return this.controller.currentQuickInput}get quickAccess(){return this._quickAccess||(this._quickAccess=this._register(this.instantiationService.createInstance(Ki))),this._quickAccess}constructor(e,t,i,s,n){super(i),this.instantiationService=e,this.contextKeyService=t,this.layoutService=s,this.configurationService=n,this._onShow=this._register(new Q.vl),this._onHide=this._register(new Q.vl),this.contexts=new Map}createController(e=this.layoutService,t){const i={idPrefix:"quickInput_",container:e.activeContainer,ignoreFocusOut:()=>!1,backKeybindingLabel:()=>{},setContextKey:e=>this.setContextKey(e),linkOpenerDelegate:e=>{this.instantiationService.invokeFunction((t=>{t.get(Ue.C).open(e,{allowCommands:!0,fromUserGesture:!0})}))},returnFocus:()=>e.focus(),styles:this.computeStyles(),hoverDelegate:this._register(this.instantiationService.createInstance(Cs))},s=this._register(this.instantiationService.createInstance(pn,{...i,...t}));return s.layout(e.activeContainerDimension,e.activeContainerOffset.quickPickTop),this._register(e.onDidLayoutActiveContainer((t=>{(0,U.zk)(e.activeContainer)===(0,U.zk)(s.container)&&s.layout(t,e.activeContainerOffset.quickPickTop)}))),this._register(e.onDidChangeActiveContainer((()=>{s.isVisible()||s.layout(e.activeContainerDimension,e.activeContainerOffset.quickPickTop)}))),this._register(s.onShow((()=>{this.resetContextKeys(),this._onShow.fire()}))),this._register(s.onHide((()=>{this.resetContextKeys(),this._onHide.fire()}))),s}setContextKey(e){let t;e&&(t=this.contexts.get(e),t||(t=new ie.N1(e,!1).bindTo(this.contextKeyService),this.contexts.set(e,t))),t&&t.get()||(this.resetContextKeys(),t?.set(!0))}resetContextKeys(){this.contexts.forEach((e=>{e.get()&&e.reset()}))}pick(e,t,i=at.XO.None){return this.controller.pick(e,t,i)}createQuickPick(e={useSeparators:!1}){return this.controller.createQuickPick(e)}createInputBox(){return this.controller.createInputBox()}updateStyles(){this.hasController&&this.controller.applyStyles(this.computeStyles())}computeStyles(){return{widget:{quickInputBackground:(0,Ne.GuP)(Ne.ELA),quickInputForeground:(0,Ne.GuP)(Ne.HJZ),quickInputTitleBackground:(0,Ne.GuP)(Ne.er1),widgetBorder:(0,Ne.GuP)(Ne.DSL),widgetShadow:(0,Ne.GuP)(Ne.f9l)},inputBox:wi.ho,toggle:wi.mk,countBadge:wi.m$,button:wi.cv,progressBar:wi.oJ,keybindingLabel:wi.ir,list:(0,wi.t8)({listBackground:Ne.ELA,listFocusBackground:Ne.AlL,listFocusForeground:Ne.nH,listInactiveFocusForeground:Ne.nH,listInactiveSelectionIconForeground:Ne.c7i,listInactiveFocusBackground:Ne.AlL,listFocusOutline:Ne.buw,listInactiveFocusOutline:Ne.buw}),pickerGroup:{pickerGroupBorder:(0,Ne.GuP)(Ne.iwL),pickerGroupForeground:(0,Ne.GuP)(Ne.NBf)}}}};_n=mn([fn(0,ae._Y),fn(1,ie.fN),fn(2,Z.Gy),fn(3,ce),fn(4,Me.pG)],_n);var vn=i(6921),Cn=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},En=function(e,t){return function(i,s){t(i,s,e)}};let bn=class extends _n{constructor(e,t,i,s,n,r){super(t,i,s,new ue(e.getContainerDomNode(),n),r),this.host=void 0;const o=yn.get(e);if(o){const t=o.widget;this.host={_serviceBrand:void 0,get mainContainer(){return t.getDomNode()},getContainer:()=>t.getDomNode(),whenContainerStylesLoaded(){},get containers(){return[t.getDomNode()]},get activeContainer(){return t.getDomNode()},get mainContainerDimension(){return e.getLayoutInfo()},get activeContainerDimension(){return e.getLayoutInfo()},get onDidLayoutMainContainer(){return e.onDidLayoutChange},get onDidLayoutActiveContainer(){return e.onDidLayoutChange},get onDidLayoutContainer(){return Q.Jh.map(e.onDidLayoutChange,(e=>({container:t.getDomNode(),dimension:e})))},get onDidChangeActiveContainer(){return Q.Jh.None},get onDidAddContainer(){return Q.Jh.None},get mainContainerOffset(){return{top:0,quickPickTop:0}},get activeContainerOffset(){return{top:0,quickPickTop:0}},focus:()=>e.focus()}}else this.host=void 0}createController(){return super.createController(this.host)}};bn=Cn([En(1,ae._Y),En(2,ie.fN),En(3,Z.Gy),En(4,g.T),En(5,Me.pG)],bn);let Sn=class{get activeService(){const e=this.codeEditorService.getFocusedCodeEditor();if(!e)throw new Error("Quick input service needs a focused editor to work.");let t=this.mapEditorToService.get(e);if(!t){const i=t=this.instantiationService.createInstance(bn,e);this.mapEditorToService.set(e,t),(0,vn.P)(e.onDidDispose)((()=>{i.dispose(),this.mapEditorToService.delete(e)}))}return t}get currentQuickInput(){return this.activeService.currentQuickInput}get quickAccess(){return this.activeService.quickAccess}constructor(e,t){this.instantiationService=e,this.codeEditorService=t,this.mapEditorToService=new Map}pick(e,t,i=at.XO.None){return this.activeService.pick(e,t,i)}createQuickPick(e={useSeparators:!1}){return this.activeService.createQuickPick(e)}createInputBox(){return this.activeService.createInputBox()}};Sn=Cn([En(0,ae._Y),En(1,g.T)],Sn);class yn{static{this.ID="editor.controller.quickInput"}static get(e){return e.getContribution(yn.ID)}constructor(e){this.editor=e,this.widget=new wn(this.editor)}dispose(){this.widget.dispose()}}class wn{static{this.ID="editor.contrib.quickInputWidget"}constructor(e){this.codeEditor=e,this.domNode=document.createElement("div"),this.codeEditor.addOverlayWidget(this)}getId(){return wn.ID}getDomNode(){return this.domNode}getPosition(){return{preference:2}}dispose(){this.codeEditor.removeOverlayWidget(this)}}(0,u.HW)(yn.ID,yn,4);var Rn=i(10424),Ln=i(24520),Tn=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},xn=function(e,t){return function(i,s){t(i,s,e)}};let kn=class extends c.jG{constructor(e,t,i){super(),this._contextKeyService=e,this._layoutService=t,this._configurationService=i,this._accessibilitySupport=0,this._onDidChangeScreenReaderOptimized=new Q.vl,this._onDidChangeReducedMotion=new Q.vl,this._onDidChangeLinkUnderline=new Q.vl,this._accessibilityModeEnabledContext=Ve.f.bindTo(this._contextKeyService);const s=()=>this._accessibilityModeEnabledContext.set(this.isScreenReaderOptimized());this._register(this._configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration("editor.accessibilitySupport")&&(s(),this._onDidChangeScreenReaderOptimized.fire()),e.affectsConfiguration("workbench.reduceMotion")&&(this._configMotionReduced=this._configurationService.getValue("workbench.reduceMotion"),this._onDidChangeReducedMotion.fire())}))),s(),this._register(this.onDidChangeScreenReaderOptimized((()=>s())));const n=a.G.matchMedia("(prefers-reduced-motion: reduce)");this._systemMotionReduced=n.matches,this._configMotionReduced=this._configurationService.getValue("workbench.reduceMotion"),this._linkUnderlinesEnabled=this._configurationService.getValue("accessibility.underlineLinks"),this.initReducedMotionListeners(n),this.initLinkUnderlineListeners()}initReducedMotionListeners(e){this._register((0,U.ko)(e,"change",(()=>{this._systemMotionReduced=e.matches,"auto"===this._configMotionReduced&&this._onDidChangeReducedMotion.fire()})));const t=()=>{const e=this.isMotionReduced();this._layoutService.mainContainer.classList.toggle("reduce-motion",e),this._layoutService.mainContainer.classList.toggle("enable-motion",!e)};t(),this._register(this.onDidChangeReducedMotion((()=>t())))}initLinkUnderlineListeners(){this._register(this._configurationService.onDidChangeConfiguration((e=>{if(e.affectsConfiguration("accessibility.underlineLinks")){const e=this._configurationService.getValue("accessibility.underlineLinks");this._linkUnderlinesEnabled=e,this._onDidChangeLinkUnderline.fire()}})));const e=()=>{const e=this._linkUnderlinesEnabled;this._layoutService.mainContainer.classList.toggle("underline-links",e)};e(),this._register(this.onDidChangeLinkUnderlines((()=>e())))}onDidChangeLinkUnderlines(e){return this._onDidChangeLinkUnderline.event(e)}get onDidChangeScreenReaderOptimized(){return this._onDidChangeScreenReaderOptimized.event}isScreenReaderOptimized(){const e=this._configurationService.getValue("editor.accessibilitySupport");return"on"===e||"auto"===e&&2===this._accessibilitySupport}get onDidChangeReducedMotion(){return this._onDidChangeReducedMotion.event}isMotionReduced(){const e=this._configMotionReduced;return"on"===e||"auto"===e&&this._systemMotionReduced}getAccessibilitySupport(){return this._accessibilitySupport}};kn=Tn([xn(0,ie.fN),xn(1,ce),xn(2,Me.pG)],kn);var An,Nn=i(60858),In=i(85600),On=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Dn=function(e,t){return function(i,s){t(i,s,e)}};const Mn="application/vnd.code.resources";let Pn=class extends c.jG{static{An=this}constructor(e,t){super(),this.layoutService=e,this.logService=t,this.mapTextToType=new Map,this.findText="",this.resources=[],this.resourcesStateHash=void 0,(oi.nr||oi.c8)&&this.installWebKitWriteTextWorkaround(),this._register(Q.Jh.runAndSubscribe(U.Iv,(({window:e,disposables:t})=>{t.add((0,U.ko)(e.document,"copy",(()=>this.clearResourcesState())))}),{window:a.G,disposables:this._store}))}installWebKitWriteTextWorkaround(){const e=()=>{const e=new m.Zv;this.webKitPendingClipboardWritePromise&&!this.webKitPendingClipboardWritePromise.isSettled&&this.webKitPendingClipboardWritePromise.cancel(),this.webKitPendingClipboardWritePromise=e,(0,U.fz)().navigator.clipboard.write([new ClipboardItem({"text/plain":e.p})]).catch((async t=>{t instanceof Error&&"NotAllowedError"===t.name&&e.isRejected||this.logService.error(t)}))};this._register(Q.Jh.runAndSubscribe(this.layoutService.onDidAddContainer,(({container:t,disposables:i})=>{i.add((0,U.ko)(t,"click",e)),i.add((0,U.ko)(t,"keydown",e))}),{container:this.layoutService.mainContainer,disposables:this._store}))}async writeText(e,t){if(this.clearResourcesState(),t)this.mapTextToType.set(t,e);else{if(this.webKitPendingClipboardWritePromise)return this.webKitPendingClipboardWritePromise.complete(e);try{return await(0,U.fz)().navigator.clipboard.writeText(e)}catch(i){console.error(i)}this.fallbackWriteText(e)}}fallbackWriteText(e){const t=(0,U.a)(),i=t.activeElement,s=t.body.appendChild((0,U.$)("textarea",{"aria-hidden":!0}));s.style.height="1px",s.style.width="1px",s.style.position="absolute",s.value=e,s.focus(),s.select(),t.execCommand("copy"),(0,U.sb)(i)&&i.focus(),s.remove()}async readText(e){if(e)return this.mapTextToType.get(e)||"";try{return await(0,U.fz)().navigator.clipboard.readText()}catch(t){console.error(t)}return""}async readFindText(){return this.findText}async writeFindText(e){this.findText=e}static{this.MAX_RESOURCE_STATE_SOURCE_LENGTH=1e3}async readResources(){try{const e=await(0,U.fz)().navigator.clipboard.read();for(const t of e)if(t.types.includes(`web ${Mn}`)){const e=await t.getType(`web ${Mn}`);return JSON.parse(await e.text()).map((e=>h.r.from(e)))}}catch(t){}const e=await this.computeResourcesStateHash();return this.resourcesStateHash!==e&&this.clearResourcesState(),this.resources}async computeResourcesStateHash(){if(0===this.resources.length)return;const e=await this.readText();return(0,In.tW)(e.substring(0,An.MAX_RESOURCE_STATE_SOURCE_LENGTH))}clearInternalState(){this.clearResourcesState()}clearResourcesState(){this.resources=[],this.resourcesStateHash=void 0}};Pn=An=On([Dn(0,ce),Dn(1,I.rr)],Pn);var Fn=i(54770),Un=i(42522),Hn=i(4853),Bn=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Wn=function(e,t){return function(i,s){t(i,s,e)}};const Vn="data-keybinding-context";class zn{constructor(e,t){this._id=e,this._parent=t,this._value=Object.create(null),this._value._contextId=e}get value(){return{...this._value}}setValue(e,t){return this._value[e]!==t&&(this._value[e]=t,!0)}removeValue(e){return e in this._value&&(delete this._value[e],!0)}getValue(e){const t=this._value[e];return"undefined"===typeof t&&this._parent?this._parent.getValue(e):t}}class Gn extends zn{static{this.INSTANCE=new Gn}constructor(){super(-1,null)}setValue(e,t){return!1}removeValue(e){return!1}getValue(e){}}class jn extends zn{static{this._keyPrefix="config."}constructor(e,t,i){super(e,null),this._configurationService=t,this._values=Hn.cB.forConfigKeys(),this._listener=this._configurationService.onDidChangeConfiguration((e=>{if(7===e.source){const e=Array.from(this._values,(([e])=>e));this._values.clear(),i.fire(new qn(e))}else{const t=[];for(const i of e.affectedKeys){const e=`config.${i}`,s=this._values.findSuperstr(e);void 0!==s&&(t.push(...Un.f.map(s,(([e])=>e))),this._values.deleteSuperstr(e)),this._values.has(e)&&(t.push(e),this._values.delete(e))}i.fire(new qn(t))}}))}dispose(){this._listener.dispose()}getValue(e){if(0!==e.indexOf(jn._keyPrefix))return super.getValue(e);if(this._values.has(e))return this._values.get(e);const t=e.substr(jn._keyPrefix.length),i=this._configurationService.getValue(t);let s;switch(typeof i){case"number":case"boolean":case"string":s=i;break;default:s=Array.isArray(i)?JSON.stringify(i):i}return this._values.set(e,s),s}setValue(e,t){return super.setValue(e,t)}removeValue(e){return super.removeValue(e)}}class Kn{constructor(e,t,i){this._service=e,this._key=t,this._defaultValue=i,this.reset()}set(e){this._service.setContext(this._key,e)}reset(){"undefined"===typeof this._defaultValue?this._service.removeContext(this._key):this._service.setContext(this._key,this._defaultValue)}get(){return this._service.getContextKeyValue(this._key)}}class Yn{constructor(e){this.key=e}affectsSome(e){return e.has(this.key)}allKeysContainedIn(e){return this.affectsSome(e)}}class qn{constructor(e){this.keys=e}affectsSome(e){for(const t of this.keys)if(e.has(t))return!0;return!1}allKeysContainedIn(e){return this.keys.every((t=>e.has(t)))}}class $n{constructor(e){this.events=e}affectsSome(e){for(const t of this.events)if(t.affectsSome(e))return!0;return!1}allKeysContainedIn(e){return this.events.every((t=>t.allKeysContainedIn(e)))}}class Qn extends c.jG{constructor(e){super(),this._onDidChangeContext=this._register(new Q.fV({merge:e=>new $n(e)})),this.onDidChangeContext=this._onDidChangeContext.event,this._isDisposed=!1,this._myContextId=e}createKey(e,t){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new Kn(this,e,t)}bufferChangeEvents(e){this._onDidChangeContext.pause();try{e()}finally{this._onDidChangeContext.resume()}}createScoped(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new Zn(this,e)}contextMatchesRules(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");const t=this.getContextValuesContainer(this._myContextId);return!e||e.evaluate(t)}getContextKeyValue(e){if(!this._isDisposed)return this.getContextValuesContainer(this._myContextId).getValue(e)}setContext(e,t){if(this._isDisposed)return;const i=this.getContextValuesContainer(this._myContextId);i&&i.setValue(e,t)&&this._onDidChangeContext.fire(new Yn(e))}removeContext(e){this._isDisposed||this.getContextValuesContainer(this._myContextId).removeValue(e)&&this._onDidChangeContext.fire(new Yn(e))}getContext(e){return this._isDisposed?Gn.INSTANCE:this.getContextValuesContainer(function(e){for(;e;){if(e.hasAttribute(Vn)){const t=e.getAttribute(Vn);return t?parseInt(t,10):NaN}e=e.parentElement}return 0}(e))}dispose(){super.dispose(),this._isDisposed=!0}}let Xn=class extends Qn{constructor(e){super(0),this._contexts=new Map,this._lastContextId=0;const t=this._register(new jn(this._myContextId,e,this._onDidChangeContext));this._contexts.set(this._myContextId,t)}getContextValuesContainer(e){return this._isDisposed?Gn.INSTANCE:this._contexts.get(e)||Gn.INSTANCE}createChildContext(e=this._myContextId){if(this._isDisposed)throw new Error("ContextKeyService has been disposed");const t=++this._lastContextId;return this._contexts.set(t,new zn(t,this.getContextValuesContainer(e))),t}disposeContext(e){this._isDisposed||this._contexts.delete(e)}};Xn=Bn([Wn(0,Me.pG)],Xn);class Zn extends Qn{constructor(e,t){if(super(e.createChildContext()),this._parentChangeListener=this._register(new c.HE),this._parent=e,this._updateParentChangeListener(),this._domNode=t,this._domNode.hasAttribute(Vn)){let e="";this._domNode.classList&&(e=Array.from(this._domNode.classList.values()).join(", ")),console.error("Element already has context attribute"+(e?": "+e:""))}this._domNode.setAttribute(Vn,String(this._myContextId))}_updateParentChangeListener(){this._parentChangeListener.value=this._parent.onDidChangeContext((e=>{const t=this._parent.getContextValuesContainer(this._myContextId).value;var i;i=t,e.allKeysContainedIn(new Set(Object.keys(i)))||this._onDidChangeContext.fire(e)}))}dispose(){this._isDisposed||(this._parent.disposeContext(this._myContextId),this._domNode.removeAttribute(Vn),super.dispose())}getContextValuesContainer(e){return this._isDisposed?Gn.INSTANCE:this._parent.getContextValuesContainer(e)}createChildContext(e=this._myContextId){if(this._isDisposed)throw new Error("ScopedContextKeyService has been disposed");return this._parent.createChildContext(e)}disposeContext(e){this._isDisposed||this._parent.disposeContext(e)}}St.w.registerCommand("_setContext",(function(e,t,i){e.get(ie.fN).createKey(String(t),function(e){return(0,p.PI)(e,(e=>"object"===typeof e&&1===e.$mid?h.r.revive(e).toString():e instanceof h.r?e.toString():void 0))}(i))})),St.w.registerCommand({id:"getContextKeyInfo",handler:()=>[...ie.N1.all()].sort(((e,t)=>e.key.localeCompare(t.key))),metadata:{description:(0,b.kg)("getContextKeyInfo","A command that returns information about context keys"),args:[]}}),St.w.registerCommand("_generateContextKeyInfo",(function(){const e=[],t=new Set;for(const i of ie.N1.all())t.has(i.key)||(t.add(i.key),e.push(i));e.sort(((e,t)=>e.key.localeCompare(t.key))),console.log(JSON.stringify(e,void 0,2))}));var Jn=i(84040);class er{constructor(e,t){this.key=e,this.data=t,this.incoming=new Map,this.outgoing=new Map}}class tr{constructor(e){this._hashFn=e,this._nodes=new Map}roots(){const e=[];for(const t of this._nodes.values())0===t.outgoing.size&&e.push(t);return e}insertEdge(e,t){const i=this.lookupOrInsertNode(e),s=this.lookupOrInsertNode(t);i.outgoing.set(s.key,s),s.incoming.set(i.key,i)}removeNode(e){const t=this._hashFn(e);this._nodes.delete(t);for(const i of this._nodes.values())i.outgoing.delete(t),i.incoming.delete(t)}lookupOrInsertNode(e){const t=this._hashFn(e);let i=this._nodes.get(t);return i||(i=new er(t,e),this._nodes.set(t,i)),i}isEmpty(){return 0===this._nodes.size}toString(){const e=[];for(const[t,i]of this._nodes)e.push(`${t}\n\t(-> incoming)[${[...i.incoming.keys()].join(", ")}]\n\t(outgoing ->)[${[...i.outgoing.keys()].join(",")}]\n`);return e.join("\n")}findCycleSlow(){for(const[e,t]of this._nodes){const i=new Set([e]),s=this._findCycle(t,i);if(s)return s}}_findCycle(e,t){for(const[i,s]of e.outgoing){if(t.has(i))return[...t,i].join(" -> ");t.add(i);const e=this._findCycle(s,t);if(e)return e;t.delete(i)}}}var ir=i(58345);class sr extends Error{constructor(e){super("cyclic dependency between services"),this.message=e.findCycleSlow()??`UNABLE to detect cycle, dumping graph: \n${e.toString()}`}}class nr{constructor(e=new ir.a,t=!1,i,s=false){this._services=e,this._strict=t,this._parent=i,this._enableTracing=s,this._isDisposed=!1,this._servicesToMaybeDispose=new Set,this._children=new Set,this._activeInstantiations=new Set,this._services.set(ae._Y,this),this._globalGraph=s?i?._globalGraph??new tr((e=>e)):void 0}dispose(){if(!this._isDisposed){this._isDisposed=!0,(0,c.AS)(this._children),this._children.clear();for(const e of this._servicesToMaybeDispose)(0,c.Xm)(e)&&e.dispose();this._servicesToMaybeDispose.clear()}}_throwIfDisposed(){if(this._isDisposed)throw new Error("InstantiationService has been disposed")}createChild(e,t){this._throwIfDisposed();const i=this,s=new class extends nr{dispose(){i._children.delete(s),super.dispose()}}(e,this._strict,this,this._enableTracing);return this._children.add(s),t?.add(s),s}invokeFunction(e,...t){this._throwIfDisposed();const i=rr.traceInvocation(this._enableTracing,e);let s=!1;try{return e({get:e=>{if(s)throw(0,v.iH)("service accessor is only valid during the invocation of its target method");const t=this._getOrCreateServiceInstance(e,i);if(!t)throw new Error(`[invokeFunction] unknown service '${e}'`);return t}},...t)}finally{s=!0,i.stop()}}createInstance(e,...t){let i,s;return this._throwIfDisposed(),e instanceof Jn.d?(i=rr.traceCreation(this._enableTracing,e.ctor),s=this._createInstance(e.ctor,e.staticArguments.concat(t),i)):(i=rr.traceCreation(this._enableTracing,e),s=this._createInstance(e,t,i)),i.stop(),s}_createInstance(e,t=[],i){const s=ae._$.getServiceDependencies(e).sort(((e,t)=>e.index-t.index)),n=[];for(const o of s){const t=this._getOrCreateServiceInstance(o.id,i);t||this._throwIfStrict(`[createInstance] ${e.name} depends on UNKNOWN service ${o.id}.`,!1),n.push(t)}const r=s.length>0?s[0].index:t.length;if(t.length!==r){console.trace(`[createInstance] First service dependency of ${e.name} at position ${r+1} conflicts with ${t.length} static arguments`);const i=r-t.length;t=i>0?t.concat(new Array(i)):t.slice(0,r)}return Reflect.construct(e,t.concat(n))}_setCreatedServiceInstance(e,t){if(this._services.get(e)instanceof Jn.d)this._services.set(e,t);else{if(!this._parent)throw new Error("illegalState - setting UNKNOWN service instance");this._parent._setCreatedServiceInstance(e,t)}}_getServiceInstanceOrDescriptor(e){const t=this._services.get(e);return!t&&this._parent?this._parent._getServiceInstanceOrDescriptor(e):t}_getOrCreateServiceInstance(e,t){this._globalGraph&&this._globalGraphImplicitDependency&&this._globalGraph.insertEdge(this._globalGraphImplicitDependency,String(e));const i=this._getServiceInstanceOrDescriptor(e);return i instanceof Jn.d?this._safeCreateAndCacheServiceInstance(e,i,t.branch(e,!0)):(t.branch(e,!1),i)}_safeCreateAndCacheServiceInstance(e,t,i){if(this._activeInstantiations.has(e))throw new Error(`illegal state - RECURSIVELY instantiating service '${e}'`);this._activeInstantiations.add(e);try{return this._createAndCacheServiceInstance(e,t,i)}finally{this._activeInstantiations.delete(e)}}_createAndCacheServiceInstance(e,t,i){const s=new tr((e=>e.id.toString()));let n=0;const r=[{id:e,desc:t,_trace:i}],o=new Set;for(;r.length;){const t=r.pop();if(!o.has(String(t.id))){if(o.add(String(t.id)),s.lookupOrInsertNode(t),n++>1e3)throw new sr(s);for(const i of ae._$.getServiceDependencies(t.desc.ctor)){const n=this._getServiceInstanceOrDescriptor(i.id);if(n||this._throwIfStrict(`[createInstance] ${e} depends on ${i.id} which is NOT registered.`,!0),this._globalGraph?.insertEdge(String(t.id),String(i.id)),n instanceof Jn.d){const e={id:i.id,desc:n,_trace:t._trace.branch(i.id,!0)};s.insertEdge(t,e),r.push(e)}}}}for(;;){const e=s.roots();if(0===e.length){if(!s.isEmpty())throw new sr(s);break}for(const{data:t}of e){if(this._getServiceInstanceOrDescriptor(t.id)instanceof Jn.d){const e=this._createServiceInstanceWithOwner(t.id,t.desc.ctor,t.desc.staticArguments,t.desc.supportsDelayedInstantiation,t._trace);this._setCreatedServiceInstance(t.id,e)}s.removeNode(t)}}return this._getServiceInstanceOrDescriptor(e)}_createServiceInstanceWithOwner(e,t,i=[],s,n){if(this._services.get(e)instanceof Jn.d)return this._createServiceInstance(e,t,i,s,n,this._servicesToMaybeDispose);if(this._parent)return this._parent._createServiceInstanceWithOwner(e,t,i,s,n);throw new Error(`illegalState - creating UNKNOWN service instance ${t.name}`)}_createServiceInstance(e,t,i=[],s,n,r){if(s){const s=new nr(void 0,this._strict,this,this._enableTracing);s._globalGraphImplicitDependency=String(e);const o=new Map,a=new m.F6((()=>{const e=s._createInstance(t,i,n);for(const[t,i]of o){const s=e[t];if("function"===typeof s)for(const t of i)t.disposable=s.apply(e,t.listener)}return o.clear(),r.add(e),e}));return new Proxy(Object.create(null),{get(e,t){if(!a.isInitialized&&"string"===typeof t&&(t.startsWith("onDid")||t.startsWith("onWill"))){let e=o.get(t);e||(e=new X.w,o.set(t,e));return(i,s,n)=>{if(a.isInitialized)return a.value[t](i,s,n);{const t={listener:[i,s,n],disposable:void 0},r=e.push(t);return(0,c.s)((()=>{r(),t.disposable?.dispose()}))}}}if(t in e)return e[t];const i=a.value;let s=i[t];return"function"!==typeof s||(s=s.bind(i),e[t]=s),s},set:(e,t,i)=>(a.value[t]=i,!0),getPrototypeOf:e=>t.prototype})}{const e=this._createInstance(t,i,n);return r.add(e),e}}_throwIfStrict(e,t){if(t&&console.warn(e),this._strict)throw new Error(e)}}class rr{static{this.all=new Set}static{this._None=new class extends rr{constructor(){super(0,null)}stop(){}branch(){return this}}}static traceInvocation(e,t){return e?new rr(2,t.name||(new Error).stack.split("\n").slice(3,4).join("\n")):rr._None}static traceCreation(e,t){return e?new rr(1,t.name):rr._None}static{this._totals=0}constructor(e,t){this.type=e,this.name=t,this._start=Date.now(),this._dep=[]}branch(e,t){const i=new rr(3,e.toString());return this._dep.push([e,t,i]),i}stop(){const e=Date.now()-this._start;rr._totals+=e;let t=!1;const i=[`${1===this.type?"CREATE":"CALL"} ${this.name}`,`${function e(i,s){const n=[],r=new Array(i+1).join("\t");for(const[o,a,c]of s._dep)if(a&&c){t=!0,n.push(`${r}CREATES -> ${o}`);const s=e(i+1,c);s&&n.push(s)}else n.push(`${r}uses -> ${o}`);return n.join("\n")}(1,this)}`,`DONE, took ${e.toFixed(2)}ms (grand total ${rr._totals.toFixed(2)}ms)`];(e>2||t)&&rr.all.add(i.join("\n"))}}var or=i(75147);const ar=new Set([C.ny.inMemory,C.ny.vscodeSourceControl,C.ny.walkThrough,C.ny.walkThroughSnippet,C.ny.vscodeChatCodeBlock]);class cr{constructor(){this._byResource=new yt.fT,this._byOwner=new Map}set(e,t,i){let s=this._byResource.get(e);s||(s=new Map,this._byResource.set(e,s)),s.set(t,i);let n=this._byOwner.get(t);n||(n=new yt.fT,this._byOwner.set(t,n)),n.set(e,i)}get(e,t){const i=this._byResource.get(e);return i?.get(t)}delete(e,t){let i=!1,s=!1;const n=this._byResource.get(e);n&&(i=n.delete(t));const r=this._byOwner.get(t);if(r&&(s=r.delete(e)),i!==s)throw new Error("illegal state");return i&&s}values(e){return"string"===typeof e?this._byOwner.get(e)?.values()??Un.f.empty():h.r.isUri(e)?this._byResource.get(e)?.values()??Un.f.empty():Un.f.map(Un.f.concat(...this._byOwner.values()),(e=>e[1]))}}class lr{constructor(e){this.errors=0,this.infos=0,this.warnings=0,this.unknowns=0,this._data=new yt.fT,this._service=e,this._subscription=e.onMarkerChanged(this._update,this)}dispose(){this._subscription.dispose()}_update(e){for(const t of e){const e=this._data.get(t);e&&this._substract(e);const i=this._resourceStats(t);this._add(i),this._data.set(t,i)}}_resourceStats(e){const t={errors:0,warnings:0,infos:0,unknowns:0};if(ar.has(e.scheme))return t;for(const{severity:i}of this._service.read({resource:e}))i===or.cj.Error?t.errors+=1:i===or.cj.Warning?t.warnings+=1:i===or.cj.Info?t.infos+=1:t.unknowns+=1;return t}_substract(e){this.errors-=e.errors,this.warnings-=e.warnings,this.infos-=e.infos,this.unknowns-=e.unknowns}_add(e){this.errors+=e.errors,this.warnings+=e.warnings,this.infos+=e.infos,this.unknowns+=e.unknowns}}class hr{constructor(){this._onMarkerChanged=new Q.uI({delay:0,merge:hr._merge}),this.onMarkerChanged=this._onMarkerChanged.event,this._data=new cr,this._stats=new lr(this)}dispose(){this._stats.dispose(),this._onMarkerChanged.dispose()}remove(e,t){for(const i of t||[])this.changeOne(e,i,[])}changeOne(e,t,i){if((0,E.Ct)(i)){this._data.delete(t,e)&&this._onMarkerChanged.fire([t])}else{const s=[];for(const n of i){const i=hr._toMarker(e,t,n);i&&s.push(i)}this._data.set(t,e,s),this._onMarkerChanged.fire([t])}}static _toMarker(e,t,i){let{code:s,severity:n,message:r,source:o,startLineNumber:a,startColumn:c,endLineNumber:l,endColumn:h,relatedInformation:d,tags:u}=i;if(r)return a=a>0?a:1,c=c>0?c:1,l=l>=a?l:a,h=h>0?h:c,{resource:t,owner:e,code:s,severity:n,message:r,source:o,startLineNumber:a,startColumn:c,endLineNumber:l,endColumn:h,relatedInformation:d,tags:u}}changeAll(e,t){const i=[],s=this._data.values(e);if(s)for(const n of s){const t=Un.f.first(n);t&&(i.push(t.resource),this._data.delete(t.resource,e))}if((0,E.EI)(t)){const s=new yt.fT;for(const{resource:n,marker:r}of t){const t=hr._toMarker(e,n,r);if(!t)continue;const o=s.get(n);o?o.push(t):(s.set(n,[t]),i.push(n))}for(const[t,i]of s)this._data.set(t,e,i)}i.length>0&&this._onMarkerChanged.fire(i)}read(e=Object.create(null)){let{owner:t,resource:i,severities:s,take:n}=e;if((!n||n<0)&&(n=-1),t&&i){const e=this._data.get(i,t);if(e){const t=[];for(const i of e)if(hr._accept(i,s)){const e=t.push(i);if(n>0&&e===n)break}return t}return[]}if(t||i){const e=this._data.values(i??t),r=[];for(const t of e)for(const e of t)if(hr._accept(e,s)){const t=r.push(e);if(n>0&&t===n)return r}return r}{const e=[];for(const t of this._data.values())for(const i of t)if(hr._accept(i,s)){const t=e.push(i);if(n>0&&t===n)return e}return e}}static _accept(e,t){return void 0===t||(t&e.severity)===e.severity}static _merge(e){const t=new yt.fT;for(const i of e)for(const e of i)t.set(e,!0);return Array.from(t.keys())}}var dr=i(9711);class ur extends c.jG{get configurationModel(){return this._configurationModel}constructor(e){super(),this.logService=e,this._configurationModel=Tt.createEmptyModel(this.logService)}reload(){return this.resetConfigurationModel(),this.configurationModel}getConfigurationDefaultOverrides(){return{}}resetConfigurationModel(){this._configurationModel=Tt.createEmptyModel(this.logService);const e=Rt.O.as(wt.Fd.Configuration).getConfigurationProperties();this.updateConfigurationModel(Object.keys(e),e)}updateConfigurationModel(e,t){const i=this.getConfigurationDefaultOverrides();for(const s of e){const e=i[s],n=t[s];void 0!==e?this._configurationModel.setValue(s,e):n?this._configurationModel.setValue(s,n.default):this._configurationModel.removeValue(s)}}}var gr=i(87213);class pr extends c.jG{constructor(e,t=[]){super(),this.logger=new I.Dk([e,...t]),this._register(e.onDidChangeLogLevel((e=>this.setLevel(e))))}get onDidChangeLogLevel(){return this.logger.onDidChangeLogLevel}setLevel(e){this.logger.setLevel(e)}getLevel(){return this.logger.getLevel()}trace(e,...t){this.logger.trace(e,...t)}debug(e,...t){this.logger.debug(e,...t)}info(e,...t){this.logger.info(e,...t)}warn(e,...t){this.logger.warn(e,...t)}error(e,...t){this.logger.error(e,...t)}}var mr=i(72466),fr=i(97035),_r=i(44432);var vr=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Cr=function(e,t){return function(i,s){t(i,s,e)}};class Er{constructor(e){this.disposed=!1,this.model=e,this._onWillDispose=new Q.vl}get textEditorModel(){return this.model}dispose(){this.disposed=!0,this._onWillDispose.fire()}}let br=class{constructor(e){this.modelService=e}createModelReference(e){const t=this.modelService.getModel(e);return t?Promise.resolve(new c.BO(new Er(t))):Promise.reject(new Error("Model not found"))}};br=vr([Cr(0,A.IModelService)],br);class Sr{static{this.NULL_PROGRESS_RUNNER={done:()=>{},total:()=>{},worked:()=>{}}}show(){return Sr.NULL_PROGRESS_RUNNER}async showWhile(e,t){await e}}class yr{static{this.NO_OP=new me.Kz}info(e){return this.notify({severity:ge.A.Info,message:e})}warn(e){return this.notify({severity:ge.A.Warning,message:e})}error(e){return this.notify({severity:ge.A.Error,message:e})}notify(e){switch(e.severity){case ge.A.Error:console.error(e.message);break;case ge.A.Warning:console.warn(e.message);break;default:console.log(e.message)}return yr.NO_OP}prompt(e,t,i,s){return yr.NO_OP}status(e,t){return c.jG.None}}let wr=class{constructor(e){this._onWillExecuteCommand=new Q.vl,this._onDidExecuteCommand=new Q.vl,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this._instantiationService=e}executeCommand(e,...t){const i=St.w.getCommand(e);if(!i)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});const s=this._instantiationService.invokeFunction.apply(this._instantiationService,[i.handler,...t]);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(s)}catch(s){return Promise.reject(s)}}};wr=vr([Cr(0,ae._Y)],wr);let Rr=class extends Ht{constructor(e,t,i,s,n,r){super(e,t,i,s,n),this._cachedResolver=null,this._dynamicKeybindings=[],this._domNodeListeners=[];const o=e=>{const t=new c.Cm;t.add(U.ko(e,U.Bx.KEY_DOWN,(e=>{const t=new Xe.Z(e);this._dispatch(t,t.target)&&(t.preventDefault(),t.stopPropagation())}))),t.add(U.ko(e,U.Bx.KEY_UP,(e=>{const t=new Xe.Z(e);this._singleModifierDispatch(t,t.target)&&t.preventDefault()}))),this._domNodeListeners.push(new Lr(e,t))},a=e=>{for(let t=0;t<this._domNodeListeners.length;t++){const i=this._domNodeListeners[t];i.domNode===e&&(this._domNodeListeners.splice(t,1),i.dispose())}},l=e=>{e.getOption(61)||o(e.getContainerDomNode())};this._register(r.onCodeEditorAdd(l)),this._register(r.onCodeEditorRemove((e=>{e.getOption(61)||a(e.getContainerDomNode())}))),r.listCodeEditors().forEach(l);const h=e=>{o(e.getContainerDomNode())};this._register(r.onDiffEditorAdd(h)),this._register(r.onDiffEditorRemove((e=>{a(e.getContainerDomNode())}))),r.listDiffEditors().forEach(h)}addDynamicKeybinding(e,t,i,s){return(0,c.qE)(St.w.registerCommand(e,i),this.addDynamicKeybindings([{keybinding:t,command:e,when:s}]))}addDynamicKeybindings(e){const t=e.map((e=>({keybinding:(0,ft.Zv)(e.keybinding,We.OS),command:e.command??null,commandArgs:e.commandArgs,when:e.when,weight1:1e3,weight2:0,extensionId:null,isBuiltinExtension:!1})));return this._dynamicKeybindings=this._dynamicKeybindings.concat(t),this.updateResolver(),(0,c.s)((()=>{for(let e=0;e<this._dynamicKeybindings.length;e++)if(this._dynamicKeybindings[e]===t[0])return this._dynamicKeybindings.splice(e,t.length),void this.updateResolver()}))}updateResolver(){this._cachedResolver=null,this._onDidUpdateKeybindings.fire()}_getResolver(){if(!this._cachedResolver){const e=this._toNormalizedKeybindingItems(Wt.f.getDefaultKeybindings(),!0),t=this._toNormalizedKeybindingItems(this._dynamicKeybindings,!1);this._cachedResolver=new Mt(e,t,(e=>this._log(e)))}return this._cachedResolver}_documentHasFocus(){return a.G.document.hasFocus()}_toNormalizedKeybindingItems(e,t){const i=[];let s=0;for(const n of e){const e=n.when||void 0,r=n.keybinding;if(r){const o=Yt.resolveKeybinding(r,We.OS);for(const r of o)i[s++]=new Vt(r,n.command,n.commandArgs,e,t,null,!1)}else i[s++]=new Vt(void 0,n.command,n.commandArgs,e,t,null,!1)}return i}resolveKeyboardEvent(e){const t=new ft.dG(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,e.keyCode);return new Yt([t],We.OS)}};Rr=vr([Cr(0,ie.fN),Cr(1,St.d),Cr(2,Qt.k),Cr(3,me.Ot),Cr(4,I.rr),Cr(5,g.T)],Rr);class Lr extends c.jG{constructor(e,t){super(),this.domNode=e,this._register(t)}}function Tr(e){return e&&"object"===typeof e&&(!e.overrideIdentifier||"string"===typeof e.overrideIdentifier)&&(!e.resource||e.resource instanceof h.r)}let xr=class{constructor(e){this.logService=e,this._onDidChangeConfiguration=new Q.vl,this.onDidChangeConfiguration=this._onDidChangeConfiguration.event;const t=new ur(e);this._configuration=new At(t.reload(),Tt.createEmptyModel(e),Tt.createEmptyModel(e),Tt.createEmptyModel(e),Tt.createEmptyModel(e),Tt.createEmptyModel(e),new yt.fT,Tt.createEmptyModel(e),new yt.fT,e),t.dispose()}getValue(e,t){const i="string"===typeof e?e:void 0,s=Tr(e)?e:Tr(t)?t:{};return this._configuration.getValue(i,s,void 0)}updateValues(e){const t={data:this._configuration.toData()},i=[];for(const s of e){const[e,t]=s;this.getValue(e)!==t&&(this._configuration.updateValue(e,t),i.push(e))}if(i.length>0){const e=new Nt({keys:i,overrides:[]},t,this._configuration,void 0,this.logService);e.source=8,this._onDidChangeConfiguration.fire(e)}return Promise.resolve()}updateValue(e,t,i,s){return this.updateValues([[e,t]])}inspect(e,t={}){return this._configuration.inspect(e,t,void 0)}};xr=vr([Cr(0,I.rr)],xr);let kr=class{constructor(e,t,i){this.configurationService=e,this.modelService=t,this.languageService=i,this._onDidChangeConfiguration=new Q.vl,this.configurationService.onDidChangeConfiguration((e=>{this._onDidChangeConfiguration.fire({affectedKeys:e.affectedKeys,affectsConfiguration:(t,i)=>e.affectsConfiguration(i)})}))}getValue(e,t,i){const s=Et.y.isIPosition(t)?t:null,n=s?"string"===typeof i?i:void 0:"string"===typeof t?t:void 0,r=e?this.getLanguage(e,s):void 0;return"undefined"===typeof n?this.configurationService.getValue({resource:e,overrideIdentifier:r}):this.configurationService.getValue(n,{resource:e,overrideIdentifier:r})}getLanguage(e,t){const i=this.modelService.getModel(e);return i?t?i.getLanguageIdAtPosition(t.lineNumber,t.column):i.getLanguageId():this.languageService.guessLanguageIdByFilepathOrFirstLine(e)}};kr=vr([Cr(0,Me.pG),Cr(1,A.IModelService),Cr(2,Ui.L)],kr);let Ar=class{constructor(e){this.configurationService=e}getEOL(e,t){const i=this.configurationService.getValue("files.eol",{overrideIdentifier:t,resource:e});return i&&"string"===typeof i&&"auto"!==i?i:We.j9||We.zx?"\n":"\r\n"}};Ar=vr([Cr(0,Me.pG)],Ar);class Nr{static{this.SCHEME="inmemory"}constructor(){const e=h.r.from({scheme:Nr.SCHEME,authority:"model",path:"/"});this.workspace={id:Xt.cn,folders:[new Xt.mX({uri:e,name:"",index:0})]}}getWorkspace(){return this.workspace}getWorkspaceFolder(e){return e&&e.scheme===Nr.SCHEME?this.workspace.folders[0]:null}}function Ir(e,t,i){if(!t)return;if(!(e instanceof xr))return;const s=[];Object.keys(t).forEach((e=>{(0,vt.vf)(e)&&s.push([`editor.${e}`,t[e]]),i&&(0,vt.Gn)(e)&&s.push([`diffEditor.${e}`,t[e]])})),s.length>0&&e.updateValues(s)}let Or=class{constructor(e){this._modelService=e}hasPreviewHandler(){return!1}async apply(e,t){const i=Array.isArray(e)?e:_t.jN.convert(e),s=new Map;for(const o of i){if(!(o instanceof _t.cw))throw new Error("bad edit - only text edits are supported");const e=this._modelService.getModel(o.resource);if(!e)throw new Error("bad edit - model not found");if("number"===typeof o.versionId&&e.getVersionId()!==o.versionId)throw new Error("bad state - model changed in the meantime");let t=s.get(e);t||(t=[],s.set(e,t)),t.push(Ct.k.replaceMove(T.Q.lift(o.textEdit.range),o.textEdit.text))}let n=0,r=0;for(const[o,a]of s)o.pushStackElement(),o.pushEditOperations([],a,(()=>[])),o.pushStackElement(),r+=1,n+=a.length;return{ariaSummary:l.GP(Zt.tu.bulkEditServiceSummary,n,r),isApplied:n>0}}};Or=vr([Cr(0,A.IModelService)],Or);let Dr=class extends ot{constructor(e,t){super(e),this._codeEditorService=t}showContextView(e,t,i){if(!t){const e=this._codeEditorService.getFocusedCodeEditor()||this._codeEditorService.getActiveCodeEditor();e&&(t=e.getContainerDomNode())}return super.showContextView(e,t,i)}};Dr=vr([Cr(0,ce),Cr(1,g.T)],Dr);class Mr extends ti.LanguageService{constructor(){super()}}let Pr=class extends xi{constructor(e,t,i,s,n,r){super(e,t,i,s,n,r),this.configure({blockMouse:!1})}};Pr=vr([Cr(0,Qt.k),Cr(1,me.Ot),Cr(2,Oe.l),Cr(3,De.b),Cr(4,ni.ez),Cr(5,ie.fN)],Pr);const Fr={amdModuleId:"vs/editor/common/services/editorSimpleWorker",esmModuleLocation:void 0,label:"editorWorkerService"};let Ur=class extends j{constructor(e,t,i,s,n){super(Fr,e,t,i,s,n)}};Ur=vr([Cr(0,A.IModelService),Cr(1,N.ITextResourceConfigurationService),Cr(2,I.rr),Cr(3,x.JZ),Cr(4,D.ILanguageFeaturesService)],Ur);var Hr;(0,se.v)(I.rr,class extends pr{constructor(){super(new I.Cr)}},0),(0,se.v)(Me.pG,xr,0),(0,se.v)(N.ITextResourceConfigurationService,kr,0),(0,se.v)(N.ITextResourcePropertiesService,Ar,0),(0,se.v)(Xt.VR,Nr,0),(0,se.v)(qt.L,class{getUriLabel(e,t){return"file"===e.scheme?e.fsPath:e.path}getUriBasenameLabel(e){return(0,Jt.P8)(e)}},0),(0,se.v)(Qt.k,class{publicLog2(){}},0),(0,se.v)(pe.X,class{async confirm(e){return{confirmed:this.doConfirm(e.message,e.detail),checkboxChecked:!1}}doConfirm(e,t){let i=e;return t&&(i=i+"\n\n"+t),a.G.confirm(i)}async prompt(e){let t;if(this.doConfirm(e.message,e.detail)){const i=[...e.buttons??[]];e.cancelButton&&"string"!==typeof e.cancelButton&&"boolean"!==typeof e.cancelButton&&i.push(e.cancelButton),t=await(i[0]?.run({checkboxChecked:!1}))}return{result:t}}async error(e,t){await this.prompt({type:ge.A.Error,message:e,detail:t})}},0),(0,se.v)(fr.k,class{constructor(){this.isExtensionDevelopment=!1,this.isBuilt=!1}},0),(0,se.v)(me.Ot,yr,0),(0,se.v)(or.DR,hr,0),(0,se.v)(Ui.L,Mr,0),(0,se.v)(Ln.L,Rn.Sx,0),(0,se.v)(A.IModelService,Wi.ModelService,0),(0,se.v)(Bi.IMarkerDecorationsService,Hi.MarkerDecorationsService,0),(0,se.v)(ie.fN,Xn,0),(0,se.v)($t.G5,class{withProgress(e,t,i){return t({report:()=>{}})}},0),(0,se.v)($t.N8,Sr,0),(0,se.v)(dr.CS,dr.pc,0),(0,se.v)(Fi.IEditorWorkerService,Ur,0),(0,se.v)(_t.nu,Or,0),(0,se.v)(ei.L,class{constructor(){this._neverEmitter=new Q.vl,this.onDidChangeTrust=this._neverEmitter.event}isWorkspaceTrusted(){return!0}},0),(0,se.v)(bt.ITextModelService,br,0),(0,se.v)(Ve.j,kn,0),(0,se.v)(Ns.PE,Ns.aG,0),(0,se.v)(St.d,wr,0),(0,se.v)(De.b,Rr,0),(0,se.v)(zi.GK,Sn,0),(0,se.v)(Oe.l,Dr,0),(0,se.v)(Ue.C,Pi,0),(0,se.v)(Fn.h,Pn,0),(0,se.v)(Oe.Z,Pr,0),(0,se.v)(ni.ez,Nn.$,0),(0,se.v)(gr.Nt,class{async playSignal(e,t){}},0),(0,se.v)(_r.ITreeSitterParserService,class{getParseResult(e){}},0),function(e){const t=new ir.a;for(const[o,a]of(0,se.N)())t.set(o,a);const i=new nr(t,!0);t.set(ae._Y,i),e.get=function(e){s||r({});const n=t.get(e);if(!n)throw new Error("Missing service "+e);return n instanceof Jn.d?i.invokeFunction((t=>t.get(e))):n};let s=!1;const n=new Q.vl;function r(e){if(s)return i;s=!0;for(const[i,s]of(0,se.N)())t.get(i)||t.set(i,s);for(const i in e)if(e.hasOwnProperty(i)){const s=(0,ae.u1)(i);t.get(s)instanceof Jn.d&&t.set(s,e[i])}const r=(0,mr.T)();for(const t of r)try{i.createInstance(t)}catch(o){(0,v.dz)(o)}return n.fire(),i}e.initialize=r,e.withServices=function(e){if(s)return e();const t=new c.Cm,i=t.add(n.event((()=>{i.dispose(),t.add(e())})));return t}}(Hr||(Hr={}));class Br extends ${constructor(e,t){super({amdModuleId:Fr.amdModuleId,esmModuleLocation:Fr.esmModuleLocation,label:t.label},t.keepIdleModels||!1,e),this._foreignModuleId=t.moduleId,this._foreignModuleCreateData=t.createData||null,this._foreignModuleHost=t.host||null,this._foreignProxy=null}fhr(e,t){if(!this._foreignModuleHost||"function"!==typeof this._foreignModuleHost[e])return Promise.reject(new Error("Missing method "+e+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[e].apply(this._foreignModuleHost,t))}catch(i){return Promise.reject(i)}}_getForeignProxy(){return this._foreignProxy||(this._foreignProxy=this._getProxy().then((e=>{const t=this._foreignModuleHost?(0,p.V0)(this._foreignModuleHost):[];return e.$loadForeignModule(this._foreignModuleId,this._foreignModuleCreateData,t).then((t=>{this._foreignModuleCreateData=null;const i=(t,i)=>e.$fmr(t,i),s=(e,t)=>function(){const i=Array.prototype.slice.call(arguments,0);return t(e,i)},n={};for(const e of t)n[e]=s(e,i);return n}))}))),this._foreignProxy}getProxy(){return this._getForeignProxy()}withSyncedResources(e){return this.workerWithSyncedResources(e).then((e=>this.getProxy()))}}var Wr=i(79027),Vr=i(74196),zr=i(23452),Gr=i(62083),jr=i(83941),Kr=i(20788),Yr=i(16223),qr=i(35015),$r=i(87469),Qr=i(35600),Xr=i(92896);function Zr(e){return!function(e){return Array.isArray(e)}(e)}function Jr(e){return"string"===typeof e}function eo(e){return!Jr(e)}function to(e){return!e}function io(e,t){return e.ignoreCase&&t?t.toLowerCase():t}function so(e){return e.replace(/[&<>'"_]/g,"-")}function no(e,t){return new Error(`${e.languageId}: ${t}`)}function ro(e,t,i,s,n){let r=null;return t.replace(/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,(function(t,o,a,c,l,h,d,u,g){return to(a)?to(c)?!to(l)&&l<s.length?io(e,s[l]):!to(d)&&e&&"string"===typeof e[d]?e[d]:(null===r&&(r=n.split("."),r.unshift(n)),!to(h)&&h<r.length?io(e,r[h]):""):io(e,i):"$"}))}function oo(e,t){let i=t;for(;i&&i.length>0;){const t=e.tokenizer[i];if(t)return t;const s=i.lastIndexOf(".");i=s<0?null:i.substr(0,s)}return null}var ao,co=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},lo=function(e,t){return function(i,s){t(i,s,e)}};class ho{static{this._INSTANCE=new ho(5)}static create(e,t){return this._INSTANCE.create(e,t)}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}create(e,t){if(null!==e&&e.depth>=this._maxCacheDepth)return new uo(e,t);let i=uo.getStackElementId(e);i.length>0&&(i+="|"),i+=t;let s=this._entries[i];return s||(s=new uo(e,t),this._entries[i]=s,s)}}class uo{constructor(e,t){this.parent=e,this.state=t,this.depth=(this.parent?this.parent.depth:0)+1}static getStackElementId(e){let t="";for(;null!==e;)t.length>0&&(t+="|"),t+=e.state,e=e.parent;return t}static _equals(e,t){for(;null!==e&&null!==t;){if(e===t)return!0;if(e.state!==t.state)return!1;e=e.parent,t=t.parent}return null===e&&null===t}equals(e){return uo._equals(this,e)}push(e){return ho.create(this,e)}pop(){return this.parent}popall(){let e=this;for(;e.parent;)e=e.parent;return e}switchTo(e){return ho.create(this.parent,e)}}class go{constructor(e,t){this.languageId=e,this.state=t}equals(e){return this.languageId===e.languageId&&this.state.equals(e.state)}clone(){return this.state.clone()===this.state?this:new go(this.languageId,this.state)}}class po{static{this._INSTANCE=new po(5)}static create(e,t){return this._INSTANCE.create(e,t)}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}create(e,t){if(null!==t)return new mo(e,t);if(null!==e&&e.depth>=this._maxCacheDepth)return new mo(e,t);const i=uo.getStackElementId(e);let s=this._entries[i];return s||(s=new mo(e,null),this._entries[i]=s,s)}}class mo{constructor(e,t){this.stack=e,this.embeddedLanguageData=t}clone(){return(this.embeddedLanguageData?this.embeddedLanguageData.clone():null)===this.embeddedLanguageData?this:po.create(this.stack,this.embeddedLanguageData)}equals(e){return e instanceof mo&&(!!this.stack.equals(e.stack)&&(null===this.embeddedLanguageData&&null===e.embeddedLanguageData||null!==this.embeddedLanguageData&&null!==e.embeddedLanguageData&&this.embeddedLanguageData.equals(e.embeddedLanguageData)))}}class fo{constructor(){this._tokens=[],this._languageId=null,this._lastTokenType=null,this._lastTokenLanguage=null}enterLanguage(e){this._languageId=e}emit(e,t){this._lastTokenType===t&&this._lastTokenLanguage===this._languageId||(this._lastTokenType=t,this._lastTokenLanguage=this._languageId,this._tokens.push(new Gr.ou(e,t,this._languageId)))}nestedLanguageTokenize(e,t,i,s){const n=i.languageId,r=i.state,o=Gr.dG.get(n);if(!o)return this.enterLanguage(n),this.emit(s,""),r;const a=o.tokenize(e,t,r);if(0!==s)for(const c of a.tokens)this._tokens.push(new Gr.ou(c.offset+s,c.type,c.language));else this._tokens=this._tokens.concat(a.tokens);return this._lastTokenType=null,this._lastTokenLanguage=null,this._languageId=null,a.endState}finalize(e){return new Gr.$M(this._tokens,e)}}class _o{constructor(e,t){this._languageService=e,this._theme=t,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}enterLanguage(e){this._currentLanguageId=this._languageService.languageIdCodec.encodeLanguageId(e)}emit(e,t){const i=1024|this._theme.match(this._currentLanguageId,t);this._lastTokenMetadata!==i&&(this._lastTokenMetadata=i,this._tokens.push(e),this._tokens.push(i))}static _merge(e,t,i){const s=null!==e?e.length:0,n=t.length,r=null!==i?i.length:0;if(0===s&&0===n&&0===r)return new Uint32Array(0);if(0===s&&0===n)return i;if(0===n&&0===r)return e;const o=new Uint32Array(s+n+r);null!==e&&o.set(e);for(let a=0;a<n;a++)o[s+a]=t[a];return null!==i&&o.set(i,s+n),o}nestedLanguageTokenize(e,t,i,s){const n=i.languageId,r=i.state,o=Gr.dG.get(n);if(!o)return this.enterLanguage(n),this.emit(s,""),r;const a=o.tokenizeEncoded(e,t,r);if(0!==s)for(let c=0,l=a.tokens.length;c<l;c+=2)a.tokens[c]+=s;return this._prependTokens=_o._merge(this._prependTokens,this._tokens,a.tokens),this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0,a.endState}finalize(e){return new Gr.rY(_o._merge(this._prependTokens,this._tokens,null),e)}}let vo=ao=class extends c.jG{constructor(e,t,i,s,n){super(),this._configurationService=n,this._languageService=e,this._standaloneThemeService=t,this._languageId=i,this._lexer=s,this._embeddedLanguages=Object.create(null),this.embeddedLoaded=Promise.resolve(void 0);let r=!1;this._register(Gr.dG.onDidChange((e=>{if(r)return;let t=!1;for(let i=0,s=e.changedLanguages.length;i<s;i++){const s=e.changedLanguages[i];if(this._embeddedLanguages[s]){t=!0;break}}t&&(r=!0,Gr.dG.handleChange([this._languageId]),r=!1)}))),this._maxTokenizationLineLength=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:this._languageId}),this._register(this._configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration("editor.maxTokenizationLineLength")&&(this._maxTokenizationLineLength=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:this._languageId}))})))}getLoadStatus(){const e=[];for(const t in this._embeddedLanguages){const i=Gr.dG.get(t);if(i){if(i instanceof ao){const t=i.getLoadStatus();!1===t.loaded&&e.push(t.promise)}}else Gr.dG.isResolved(t)||e.push(Gr.dG.getOrCreate(t))}return 0===e.length?{loaded:!0}:{loaded:!1,promise:Promise.all(e).then((e=>{}))}}getInitialState(){const e=ho.create(null,this._lexer.start);return po.create(e,null)}tokenize(e,t,i){if(e.length>=this._maxTokenizationLineLength)return(0,Kr.$H)(this._languageId,i);const s=new fo,n=this._tokenize(e,t,i,s);return s.finalize(n)}tokenizeEncoded(e,t,i){if(e.length>=this._maxTokenizationLineLength)return(0,Kr.Lh)(this._languageService.languageIdCodec.encodeLanguageId(this._languageId),i);const s=new _o(this._languageService,this._standaloneThemeService.getColorTheme().tokenTheme),n=this._tokenize(e,t,i,s);return s.finalize(n)}_tokenize(e,t,i,s){return i.embeddedLanguageData?this._nestedTokenize(e,t,i,0,s):this._myTokenize(e,t,i,0,s)}_findLeavingNestedLanguageOffset(e,t){let i=this._lexer.tokenizer[t.stack.state];if(!i&&(i=oo(this._lexer,t.stack.state),!i))throw no(this._lexer,"tokenizer state is not defined: "+t.stack.state);let s=-1,n=!1;for(const r of i){if(!eo(r.action)||"@pop"!==r.action.nextEmbedded)continue;n=!0;let i=r.resolveRegex(t.stack.state);const o=i.source;if("^(?:"===o.substr(0,4)&&")"===o.substr(o.length-1,1)){const e=(i.ignoreCase?"i":"")+(i.unicode?"u":"");i=new RegExp(o.substr(4,o.length-5),e)}const a=e.search(i);-1===a||0!==a&&r.matchOnlyAtLineStart||(-1===s||a<s)&&(s=a)}if(!n)throw no(this._lexer,'no rule containing nextEmbedded: "@pop" in tokenizer embedded state: '+t.stack.state);return s}_nestedTokenize(e,t,i,s,n){const r=this._findLeavingNestedLanguageOffset(e,i);if(-1===r){const r=n.nestedLanguageTokenize(e,t,i.embeddedLanguageData,s);return po.create(i.stack,new go(i.embeddedLanguageData.languageId,r))}const o=e.substring(0,r);o.length>0&&n.nestedLanguageTokenize(o,!1,i.embeddedLanguageData,s);const a=e.substring(r);return this._myTokenize(a,t,i,s+r,n)}_safeRuleName(e){return e?e.name:"(unknown)"}_myTokenize(e,t,i,s,n){n.enterLanguage(this._languageId);const r=e.length,o=t&&this._lexer.includeLF?e+"\n":e,a=o.length;let c=i.embeddedLanguageData,l=i.stack,h=0,d=null,u=!0;for(;u||h<a;){const i=h,m=l.depth,f=d?d.groups.length:0,_=l.state;let v=null,C=null,E=null,b=null,S=null;if(d){v=d.matches;const e=d.groups.shift();C=e.matched,E=e.action,b=d.rule,0===d.groups.length&&(d=null)}else{if(!u&&h>=a)break;u=!1;let e=this._lexer.tokenizer[_];if(!e&&(e=oo(this._lexer,_),!e))throw no(this._lexer,"tokenizer state is not defined: "+_);const t=o.substr(h);for(const i of e)if((0===h||!i.matchOnlyAtLineStart)&&(v=t.match(i.resolveRegex(_)),v)){C=v[0],E=i.action;break}}if(v||(v=[""],C=""),E||(h<a&&(v=[o.charAt(h)],C=v[0]),E=this._lexer.defaultToken),null===C)break;for(h+=C.length;Zr(E)&&eo(E)&&E.test;)E=E.test(C,v,_,h===a);let y=null;if("string"===typeof E||Array.isArray(E))y=E;else if(E.group)y=E.group;else if(null!==E.token&&void 0!==E.token){if(y=E.tokenSubst?ro(this._lexer,E.token,C,v,_):E.token,E.nextEmbedded)if("@pop"===E.nextEmbedded){if(!c)throw no(this._lexer,"cannot pop embedded language if not inside one");c=null}else{if(c)throw no(this._lexer,"cannot enter embedded language from within an embedded language");S=ro(this._lexer,E.nextEmbedded,C,v,_)}if(E.goBack&&(h=Math.max(0,h-E.goBack)),E.switchTo&&"string"===typeof E.switchTo){let e=ro(this._lexer,E.switchTo,C,v,_);if("@"===e[0]&&(e=e.substr(1)),!oo(this._lexer,e))throw no(this._lexer,"trying to switch to a state '"+e+"' that is undefined in rule: "+this._safeRuleName(b));l=l.switchTo(e)}else{if(E.transform&&"function"===typeof E.transform)throw no(this._lexer,"action.transform not supported");if(E.next)if("@push"===E.next){if(l.depth>=this._lexer.maxStack)throw no(this._lexer,"maximum tokenizer stack size reached: ["+l.state+","+l.parent.state+",...]");l=l.push(_)}else if("@pop"===E.next){if(l.depth<=1)throw no(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(b));l=l.pop()}else if("@popall"===E.next)l=l.popall();else{let e=ro(this._lexer,E.next,C,v,_);if("@"===e[0]&&(e=e.substr(1)),!oo(this._lexer,e))throw no(this._lexer,"trying to set a next state '"+e+"' that is undefined in rule: "+this._safeRuleName(b));l=l.push(e)}}E.log&&"string"===typeof E.log&&(g=this._lexer,p=this._lexer.languageId+": "+ro(this._lexer,E.log,C,v,_),console.log(`${g.languageId}: ${p}`))}if(null===y)throw no(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(b));const w=i=>{const r=this._languageService.getLanguageIdByLanguageName(i)||this._languageService.getLanguageIdByMimeType(i)||i,o=this._getNestedEmbeddedLanguageData(r);if(h<a){const i=e.substr(h);return this._nestedTokenize(i,t,po.create(l,o),s+h,n)}return po.create(l,o)};if(Array.isArray(y)){if(d&&d.groups.length>0)throw no(this._lexer,"groups cannot be nested: "+this._safeRuleName(b));if(v.length!==y.length+1)throw no(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(b));let e=0;for(let t=1;t<v.length;t++)e+=v[t].length;if(e!==C.length)throw no(this._lexer,"with groups, all characters should be matched in consecutive groups in rule: "+this._safeRuleName(b));d={rule:b,matches:v,groups:[]};for(let t=0;t<y.length;t++)d.groups[t]={action:y[t],matched:v[t+1]};h-=C.length}else{{if("@rematch"===y&&(h-=C.length,C="",v=null,y="",null!==S))return w(S);if(0===C.length){if(0===a||m!==l.depth||_!==l.state||(d?d.groups.length:0)!==f)continue;throw no(this._lexer,"no progress in tokenizer in rule: "+this._safeRuleName(b))}let e=null;if(Jr(y)&&0===y.indexOf("@brackets")){const t=y.substr(9),i=Co(this._lexer,C);if(!i)throw no(this._lexer,"@brackets token returned but no bracket defined as: "+C);e=so(i.token+t)}else{e=so(""===y?"":y+this._lexer.tokenPostfix)}i<r&&n.emit(i+s,e)}if(null!==S)return w(S)}}var g,p;return po.create(l,c)}_getNestedEmbeddedLanguageData(e){if(!this._languageService.isRegisteredLanguageId(e))return new go(e,Kr.r3);e!==this._languageId&&(this._languageService.requestBasicLanguageFeatures(e),Gr.dG.getOrCreate(e),this._embeddedLanguages[e]=!0);const t=Gr.dG.get(e);return new go(e,t?t.getInitialState():Kr.r3)}};function Co(e,t){if(!t)return null;t=io(e,t);const i=e.brackets;for(const s of i){if(s.open===t)return{token:s.token,bracketType:1};if(s.close===t)return{token:s.token,bracketType:-1}}return null}vo=ao=co([lo(4,Me.pG)],vo);const Eo=(0,_.H)("standaloneColorizer",{createHTML:e=>e});class bo{static colorizeElement(e,t,i,s){const n=(s=s||{}).theme||"vs",r=s.mimeType||i.getAttribute("lang")||i.getAttribute("data-lang");if(!r)return console.error("Mode not detected"),Promise.resolve();const o=t.getLanguageIdByMimeType(r)||r;e.setTheme(n);const a=i.firstChild?i.firstChild.nodeValue:"";i.className+=" "+n;return this.colorize(t,a||"",o,s).then((e=>{const t=Eo?.createHTML(e)??e;i.innerHTML=t}),(e=>console.error(e)))}static async colorize(e,t,i,s){const n=e.languageIdCodec;let r=4;s&&"number"===typeof s.tabSize&&(r=s.tabSize),l.LU(t)&&(t=t.substr(1));const o=l.uz(t);if(!e.isRegisteredLanguageId(i))return So(o,r,n);const a=await Gr.dG.getOrCreate(i);return a?function(e,t,i,s){return new Promise(((n,r)=>{const o=()=>{const a=function(e,t,i,s){let n=[],r=i.getInitialState();for(let o=0,a=e.length;o<a;o++){const a=e[o],c=i.tokenizeEncoded(a,!0,r);$r.f.convertToEndOffset(c.tokens,a.length);const l=new $r.f(c.tokens,a,s),h=Xr.qL.isBasicASCII(a,!0),d=Xr.qL.containsRTL(a,h,!0),u=(0,Qr.Md)(new Qr.zL(!1,!0,a,!1,h,d,0,l.inflate(),[],t,0,0,0,0,-1,"none",!1,!1,null));n=n.concat(u.html),n.push("<br/>"),r=c.endState}return n.join("")}(e,t,i,s);if(i instanceof vo){const e=i.getLoadStatus();if(!1===e.loaded)return void e.promise.then(o,r)}n(a)};o()}))}(o,r,a,n):So(o,r,n)}static colorizeLine(e,t,i,s,n=4){const r=Xr.qL.isBasicASCII(e,t),o=Xr.qL.containsRTL(e,r,i);return(0,Qr.Md)(new Qr.zL(!1,!0,e,!1,r,o,0,s,[],n,0,0,0,0,-1,"none",!1,!1,null)).html}static colorizeModelLine(e,t,i=4){const s=e.getLineContent(t);e.tokenization.forceTokenization(t);const n=e.tokenization.getLineTokens(t).inflate();return this.colorizeLine(s,e.mightContainNonBasicASCII(),e.mightContainRTL(),n,i)}}function So(e,t,i){let s=[];const n=new Uint32Array(2);n[0]=0,n[1]=33587200;for(let r=0,o=e.length;r<o;r++){const o=e[r];n[0]=o.length;const a=new $r.f(n,o,i),c=Xr.qL.isBasicASCII(o,!0),l=Xr.qL.containsRTL(o,c,!0),h=(0,Qr.Md)(new Qr.zL(!1,!0,o,!1,c,l,0,a,[],t,0,0,0,0,-1,"none",!1,!1,null));s=s.concat(h.html),s.push("<br/>")}return s.join("")}var yo=i(29611),wo=i(4360),Ro=i(42904),Lo=i(48196),To=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},xo=function(e,t){return function(i,s){t(i,s,e)}};let ko=0,Ao=!1;let No=class extends n.x{constructor(e,t,i,s,n,r,o,c,l,h,d,u,g){const p={...t};p.ariaLabel=p.ariaLabel||Zt.vp.editorViewAccessibleLabel,super(e,p,{},i,s,n,r,l,h,d,u,g),this._standaloneKeybindingService=c instanceof Rr?c:null,function(e){if(!e){if(Ao)return;Ao=!0}ze.vr(e||a.G.document.body)}(p.ariaContainerElement),(0,Ro.MW)(((e,t)=>i.createInstance(Ie.fO,e,t,{}))),(0,Lo.e)(o)}addCommand(e,t,i){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;const s="DYNAMIC_"+ ++ko,n=ie.M$.deserialize(i);return this._standaloneKeybindingService.addDynamicKeybinding(s,e,t,n),s}createContextKey(e,t){return this._contextKeyService.createKey(e,t)}addAction(e){if("string"!==typeof e.id||"string"!==typeof e.label||"function"!==typeof e.run)throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");if(!this._standaloneKeybindingService)return console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),c.jG.None;const t=e.id,i=e.label,s=ie.M$.and(ie.M$.equals("editorId",this.getId()),ie.M$.deserialize(e.precondition)),n=e.keybindings,r=ie.M$.and(s,ie.M$.deserialize(e.keybindingContext)),o=e.contextMenuGroupId||null,a=e.contextMenuOrder||0,l=(t,...i)=>Promise.resolve(e.run(this,...i)),h=new c.Cm,d=this.getId()+":"+t;if(h.add(St.w.registerCommand(d,l)),o){const e={command:{id:d,title:i},when:s,group:o,order:a};h.add(ni.ZG.appendMenuItem(ni.D8.EditorContext,e))}if(Array.isArray(n))for(const c of n)h.add(this._standaloneKeybindingService.addDynamicKeybinding(d,c,l,r));const u=new yo.f(d,i,i,void 0,s,((...t)=>Promise.resolve(e.run(this,...t))),this._contextKeyService);return this._actions.set(t,u),h.add((0,c.s)((()=>{this._actions.delete(t)}))),h}_triggerCommand(e,t){if(this._codeEditorService instanceof oe)try{this._codeEditorService.setActiveCodeEditor(this),super._triggerCommand(e,t)}finally{this._codeEditorService.setActiveCodeEditor(null)}else super._triggerCommand(e,t)}};No=To([xo(2,ae._Y),xo(3,g.T),xo(4,St.d),xo(5,ie.fN),xo(6,Ie.TN),xo(7,De.b),xo(8,Z.Gy),xo(9,me.Ot),xo(10,Ve.j),xo(11,x.JZ),xo(12,D.ILanguageFeaturesService)],No);let Io=class extends No{constructor(e,t,i,s,n,r,o,a,c,l,h,d,u,g,p,m){const f={...t};Ir(h,f,!1);const _=c.registerEditorContainer(e);"string"===typeof f.theme&&c.setTheme(f.theme),"undefined"!==typeof f.autoDetectHighContrast&&c.setAutoDetectHighContrast(Boolean(f.autoDetectHighContrast));const v=f.model;let C;if(delete f.model,super(e,f,i,s,n,r,o,a,c,l,d,p,m),this._configurationService=h,this._standaloneThemeService=c,this._register(_),"undefined"===typeof v){const e=g.getLanguageIdByMimeType(f.language)||f.language||jr.vH;C=Do(u,g,f.value||"",e,void 0),this._ownsModel=!0}else C=v,this._ownsModel=!1;if(this._attachModel(C),C){const e={oldModelUrl:null,newModelUrl:C.uri};this._onDidChangeModel.fire(e)}}dispose(){super.dispose()}updateOptions(e){Ir(this._configurationService,e,!1),"string"===typeof e.theme&&this._standaloneThemeService.setTheme(e.theme),"undefined"!==typeof e.autoDetectHighContrast&&this._standaloneThemeService.setAutoDetectHighContrast(Boolean(e.autoDetectHighContrast)),super.updateOptions(e)}_postDetachModelCleanup(e){super._postDetachModelCleanup(e),e&&this._ownsModel&&(e.dispose(),this._ownsModel=!1)}};Io=To([xo(2,ae._Y),xo(3,g.T),xo(4,St.d),xo(5,ie.fN),xo(6,Ie.TN),xo(7,De.b),xo(8,Ln.L),xo(9,me.Ot),xo(10,Me.pG),xo(11,Ve.j),xo(12,A.IModelService),xo(13,Ui.L),xo(14,x.JZ),xo(15,D.ILanguageFeaturesService)],Io);let Oo=class extends wo.T{constructor(e,t,i,s,n,r,o,a,c,l,h,d){const u={...t};Ir(a,u,!0);const g=r.registerEditorContainer(e);"string"===typeof u.theme&&r.setTheme(u.theme),"undefined"!==typeof u.autoDetectHighContrast&&r.setAutoDetectHighContrast(Boolean(u.autoDetectHighContrast)),super(e,u,{},s,i,n,d,l),this._configurationService=a,this._standaloneThemeService=r,this._register(g)}dispose(){super.dispose()}updateOptions(e){Ir(this._configurationService,e,!0),"string"===typeof e.theme&&this._standaloneThemeService.setTheme(e.theme),"undefined"!==typeof e.autoDetectHighContrast&&this._standaloneThemeService.setAutoDetectHighContrast(Boolean(e.autoDetectHighContrast)),super.updateOptions(e)}_createInnerEditor(e,t,i){return e.createInstance(No,t,i)}getOriginalEditor(){return super.getOriginalEditor()}getModifiedEditor(){return super.getModifiedEditor()}addCommand(e,t,i){return this.getModifiedEditor().addCommand(e,t,i)}createContextKey(e,t){return this.getModifiedEditor().createContextKey(e,t)}addAction(e){return this.getModifiedEditor().addAction(e)}};function Do(e,t,i,s,n){if(i=i||"",!s){const s=i.indexOf("\n");let r=i;return-1!==s&&(r=i.substring(0,s)),Mo(e,i,t.createByFilepathOrFirstLine(n||null,r),n)}return Mo(e,i,t.createById(s),n)}function Mo(e,t,i,s){return e.createModel(t,i,s)}Oo=To([xo(2,ae._Y),xo(3,ie.fN),xo(4,g.T),xo(5,Ln.L),xo(6,me.Ot),xo(7,Me.pG),xo(8,Oe.Z),xo(9,$t.N8),xo(10,Fn.h),xo(11,gr.Nt)],Oo);var Po=i(41127),Fo=i(46041),Uo=i(49154),Ho=i(49353),Bo=i(92368),Wo=i(74444),Vo=i(75326),zo=i(60002),Go=i(38844),jo=i(65644),Ko=i(25791),Yo=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},qo=function(e,t){return function(i,s){t(i,s,e)}};class $o{constructor(e,t){this.viewModel=e,this.deltaScrollVertical=t}getId(){return this.viewModel}}let Qo=class extends c.jG{constructor(e,t,i,s,n){super(),this._container=e,this._overflowWidgetsDomNode=t,this._workbenchUIElementFactory=i,this._instantiationService=s,this._viewModel=(0,Uo.FY)(this,void 0),this._collapsed=(0,Bs.un)(this,(e=>this._viewModel.read(e)?.collapsed.read(e))),this._editorContentHeight=(0,Uo.FY)(this,500),this.contentHeight=(0,Bs.un)(this,(e=>(this._collapsed.read(e)?0:this._editorContentHeight.read(e))+this._outerEditorHeight)),this._modifiedContentWidth=(0,Uo.FY)(this,0),this._modifiedWidth=(0,Uo.FY)(this,0),this._originalContentWidth=(0,Uo.FY)(this,0),this._originalWidth=(0,Uo.FY)(this,0),this.maxScroll=(0,Bs.un)(this,(e=>{const t=this._modifiedContentWidth.read(e)-this._modifiedWidth.read(e),i=this._originalContentWidth.read(e)-this._originalWidth.read(e);return t>i?{maxScroll:t,width:this._modifiedWidth.read(e)}:{maxScroll:i,width:this._originalWidth.read(e)}})),this._elements=(0,U.h)("div.multiDiffEntry",[(0,U.h)("div.header@header",[(0,U.h)("div.header-content",[(0,U.h)("div.collapse-button@collapseButton"),(0,U.h)("div.file-path",[(0,U.h)("div.title.modified.show-file-icons@primaryPath",[]),(0,U.h)("div.status.deleted@status",["R"]),(0,U.h)("div.title.original.show-file-icons@secondaryPath",[])]),(0,U.h)("div.actions@actions")])]),(0,U.h)("div.editorParent",[(0,U.h)("div.editorContainer@editor")])]),this.editor=this._register(this._instantiationService.createInstance(wo.T,this._elements.editor,{overflowWidgetsDomNode:this._overflowWidgetsDomNode},{})),this.isModifedFocused=(0,Go.Ud)(this.editor.getModifiedEditor()).isFocused,this.isOriginalFocused=(0,Go.Ud)(this.editor.getOriginalEditor()).isFocused,this.isFocused=(0,Bs.un)(this,(e=>this.isModifedFocused.read(e)||this.isOriginalFocused.read(e))),this._resourceLabel=this._workbenchUIElementFactory.createResourceLabel?this._register(this._workbenchUIElementFactory.createResourceLabel(this._elements.primaryPath)):void 0,this._resourceLabel2=this._workbenchUIElementFactory.createResourceLabel?this._register(this._workbenchUIElementFactory.createResourceLabel(this._elements.secondaryPath)):void 0,this._dataStore=this._register(new c.Cm),this._headerHeight=40,this._lastScrollTop=-1,this._isSettingScrollTop=!1;const r=new Es.$(this._elements.collapseButton,{});this._register((0,Bs.fm)((e=>{r.element.className="",r.icon=this._collapsed.read(e)?di.W.chevronRight:di.W.chevronDown}))),this._register(r.onDidClick((()=>{this._viewModel.get()?.collapsed.set(!this._collapsed.get(),void 0)}))),this._register((0,Bs.fm)((e=>{this._elements.editor.style.display=this._collapsed.read(e)?"none":"block"}))),this._register(this.editor.getModifiedEditor().onDidLayoutChange((e=>{const t=this.editor.getModifiedEditor().getLayoutInfo().contentWidth;this._modifiedWidth.set(t,void 0)}))),this._register(this.editor.getOriginalEditor().onDidLayoutChange((e=>{const t=this.editor.getOriginalEditor().getLayoutInfo().contentWidth;this._originalWidth.set(t,void 0)}))),this._register(this.editor.onDidContentSizeChange((e=>{(0,Uo.YY)((t=>{this._editorContentHeight.set(e.contentHeight,t),this._modifiedContentWidth.set(this.editor.getModifiedEditor().getContentWidth(),t),this._originalContentWidth.set(this.editor.getOriginalEditor().getContentWidth(),t)}))}))),this._register(this.editor.getOriginalEditor().onDidScrollChange((e=>{if(this._isSettingScrollTop)return;if(!e.scrollTopChanged||!this._data)return;const t=e.scrollTop-this._lastScrollTop;this._data.deltaScrollVertical(t)}))),this._register((0,Bs.fm)((e=>{const t=this._viewModel.read(e)?.isActive.read(e);this._elements.root.classList.toggle("active",t)}))),this._container.appendChild(this._elements.root),this._outerEditorHeight=this._headerHeight,this._contextKeyService=this._register(n.createScoped(this._elements.actions));const o=this._register(this._instantiationService.createChild(new ir.a([ie.fN,this._contextKeyService])));this._register(o.createInstance(jo.m,this._elements.actions,ni.D8.MultiDiffEditorFileToolbar,{actionRunner:this._register(new Ko.I((()=>this._viewModel.get()?.modifiedUri))),menuOptions:{shouldForwardArgs:!0},toolbarOptions:{primaryGroup:e=>e.startsWith("navigation")},actionViewItemProvider:(e,t)=>(0,si.rN)(o,e,t)}))}setScrollLeft(e){this._modifiedContentWidth.get()-this._modifiedWidth.get()>this._originalContentWidth.get()-this._originalWidth.get()?this.editor.getModifiedEditor().setScrollLeft(e):this.editor.getOriginalEditor().setScrollLeft(e)}setData(e){function t(e){return{...e,scrollBeyondLastLine:!1,hideUnchangedRegions:{enabled:!0},scrollbar:{vertical:"hidden",horizontal:"hidden",handleMouseWheel:!1,useShadows:!1},renderOverviewRuler:!1,fixedOverflowWidgets:!0,overviewRulerBorder:!1}}if(this._data=e,!e)return void(0,Uo.YY)((e=>{this._viewModel.set(void 0,e),this.editor.setDiffModel(null,e),this._dataStore.clear()}));const i=e.viewModel.documentDiffItem;if((0,Uo.YY)((s=>{this._resourceLabel?.setUri(e.viewModel.modifiedUri??e.viewModel.originalUri,{strikethrough:void 0===e.viewModel.modifiedUri});let n=!1,r=!1,o=!1,a="";e.viewModel.modifiedUri&&e.viewModel.originalUri&&e.viewModel.modifiedUri.path!==e.viewModel.originalUri.path?(a="R",n=!0):e.viewModel.modifiedUri?e.viewModel.originalUri||(a="A",o=!0):(a="D",r=!0),this._elements.status.classList.toggle("renamed",n),this._elements.status.classList.toggle("deleted",r),this._elements.status.classList.toggle("added",o),this._elements.status.innerText=a,this._resourceLabel2?.setUri(n?e.viewModel.originalUri:void 0,{strikethrough:!0}),this._dataStore.clear(),this._viewModel.set(e.viewModel,s),this.editor.setDiffModel(e.viewModel.diffEditorViewModelRef,s),this.editor.updateOptions(t(i.options??{}))})),i.onOptionsDidChange&&this._dataStore.add(i.onOptionsDidChange((()=>{this.editor.updateOptions(t(i.options??{}))}))),e.viewModel.isAlive.recomputeInitiallyAndOnChange(this._dataStore,(e=>{e||this.setData(void 0)})),e.viewModel.documentDiffItem.contextKeys)for(const[s,n]of Object.entries(e.viewModel.documentDiffItem.contextKeys))this._contextKeyService.createKey(s,n)}render(e,t,i,s){this._elements.root.style.visibility="visible",this._elements.root.style.top=`${e.start}px`,this._elements.root.style.height=`${e.length}px`,this._elements.root.style.width=`${t}px`,this._elements.root.style.position="absolute";const n=e.length-this._headerHeight,r=Math.max(0,Math.min(s.start-e.start,n));this._elements.header.style.transform=`translateY(${r}px)`,(0,Uo.YY)((i=>{this.editor.layout({width:t-16-2,height:e.length-this._outerEditorHeight})}));try{this._isSettingScrollTop=!0,this._lastScrollTop=i,this.editor.getOriginalEditor().setScrollTop(i)}finally{this._isSettingScrollTop=!1}this._elements.header.classList.toggle("shadow",r>0||i>0),this._elements.header.classList.toggle("collapsed",r===n)}hide(){this._elements.root.style.top="-100000px",this._elements.root.style.visibility="hidden"}};Qo=Yo([qo(3,ae._Y),qo(4,ie.fN)],Qo);class Xo{constructor(e){this._create=e,this._unused=new Set,this._used=new Set,this._itemData=new Map}getUnusedObj(e){let t;if(0===this._unused.size)t=this._create(e),this._itemData.set(t,e);else{const i=[...this._unused.values()];t=i.find((t=>this._itemData.get(t).getId()===e.getId()))??i[0],this._unused.delete(t),this._itemData.set(t,e),t.setData(e)}return this._used.add(t),{object:t,dispose:()=>{this._used.delete(t),this._unused.size>5?t.dispose():this._unused.add(t)}}}dispose(){for(const e of this._used)e.dispose();for(const e of this._unused)e.dispose();this._used.clear(),this._unused.clear()}}var Zo=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Jo=function(e,t){return function(i,s){t(i,s,e)}};let ea=class extends c.jG{constructor(e,t,i,s,n,r){super(),this._element=e,this._dimension=t,this._viewModel=i,this._workbenchUIElementFactory=s,this._parentContextKeyService=n,this._parentInstantiationService=r,this._scrollableElements=(0,U.h)("div.scrollContent",[(0,U.h)("div@content",{style:{overflow:"hidden"}}),(0,U.h)("div.monaco-editor@overflowWidgetsDomNode",{})]),this._scrollable=this._register(new Ho.yE({forceIntegerValues:!1,scheduleAtNextAnimationFrame:e=>(0,U.PG)((0,U.zk)(this._element),e),smoothScrollDuration:100})),this._scrollableElement=this._register(new hi.oO(this._scrollableElements.root,{vertical:1,horizontal:1,useShadows:!1},this._scrollable)),this._elements=(0,U.h)("div.monaco-component.multiDiffEditor",{},[(0,U.h)("div",{},[this._scrollableElement.getDomNode()]),(0,U.h)("div.placeholder@placeholder",{},[(0,U.h)("div",[(0,b.kg)("noChangedFiles","No Changed Files")])])]),this._sizeObserver=this._register(new Bo.pN(this._element,void 0)),this._objectPool=this._register(new Xo((e=>{const t=this._instantiationService.createInstance(Qo,this._scrollableElements.content,this._scrollableElements.overflowWidgetsDomNode,this._workbenchUIElementFactory);return t.setData(e),t}))),this.scrollTop=(0,Bs.y0)(this,this._scrollableElement.onScroll,(()=>this._scrollableElement.getScrollPosition().scrollTop)),this.scrollLeft=(0,Bs.y0)(this,this._scrollableElement.onScroll,(()=>this._scrollableElement.getScrollPosition().scrollLeft)),this._viewItemsInfo=(0,Bs.rm)(this,((e,t)=>{const i=this._viewModel.read(e);if(!i)return{items:[],getItem:e=>{throw new v.D7}};const s=i.items.read(e),n=new Map;return{items:s.map((e=>{const i=t.add(new ta(e,this._objectPool,this.scrollLeft,(e=>{this._scrollableElement.setScrollPosition({scrollTop:this._scrollableElement.getScrollPosition().scrollTop+e})}))),s=this._lastDocStates?.[i.getKey()];return s&&(0,Uo.Rn)((e=>{i.setViewState(s,e)})),n.set(e,i),i})),getItem:e=>n.get(e)}})),this._viewItems=this._viewItemsInfo.map(this,(e=>e.items)),this._spaceBetweenPx=0,this._totalHeight=this._viewItems.map(this,((e,t)=>e.reduce(((e,i)=>e+i.contentHeight.read(t)+this._spaceBetweenPx),0))),this._contextKeyService=this._register(this._parentContextKeyService.createScoped(this._element)),this._instantiationService=this._register(this._parentInstantiationService.createChild(new ir.a([ie.fN,this._contextKeyService]))),this._lastDocStates={},this._contextKeyService.createKey(zo.R.inMultiDiffEditor.key,!0),this._register((0,Bs.yC)(((e,t)=>{const i=this._viewModel.read(e);if(i&&i.contextKeys)for(const[s,n]of Object.entries(i.contextKeys)){const e=this._contextKeyService.createKey(s,void 0);e.set(n),t.add((0,c.s)((()=>e.reset())))}})));const o=this._parentContextKeyService.createKey(zo.R.multiDiffEditorAllCollapsed.key,!1);this._register((0,Bs.fm)((e=>{const t=this._viewModel.read(e);if(t){const i=t.items.read(e).every((t=>t.collapsed.read(e)));o.set(i)}}))),this._register((0,Bs.fm)((e=>{const t=this._dimension.read(e);this._sizeObserver.observe(t)}))),this._register((0,Bs.fm)((e=>{const t=this._viewItems.read(e);this._elements.placeholder.classList.toggle("visible",0===t.length)}))),this._scrollableElements.content.style.position="relative",this._register((0,Bs.fm)((e=>{const t=this._sizeObserver.height.read(e);this._scrollableElements.root.style.height=`${t}px`;const i=this._totalHeight.read(e);this._scrollableElements.content.style.height=`${i}px`;const s=this._sizeObserver.width.read(e);let n=s;const r=this._viewItems.read(e),o=(0,Fo.Cn)(r,(0,E.VE)((t=>t.maxScroll.read(e).maxScroll),E.U9));if(o){n=s+o.maxScroll.read(e).maxScroll}this._scrollableElement.setScrollDimensions({width:s,height:t,scrollHeight:i,scrollWidth:n})}))),e.replaceChildren(this._elements.root),this._register((0,c.s)((()=>{e.replaceChildren()}))),this._register(this._register((0,Bs.fm)((e=>{(0,Uo.YY)((t=>{this.render(e)}))}))))}render(e){const t=this.scrollTop.read(e);let i=0,s=0,n=0;const r=this._sizeObserver.height.read(e),o=Wo.L.ofStartAndLength(t,r),a=this._sizeObserver.width.read(e);for(const c of this._viewItems.read(e)){const l=c.contentHeight.read(e),h=Math.min(l,r),d=Wo.L.ofStartAndLength(s,h),u=Wo.L.ofStartAndLength(n,l);if(u.isBefore(o))i-=l-h,c.hide();else if(u.isAfter(o))c.hide();else{const e=Math.max(0,Math.min(o.start-u.start,l-h));i-=e;const s=Wo.L.ofStartAndLength(t+i,r);c.render(d,e,a,s)}s+=h+this._spaceBetweenPx,n+=l+this._spaceBetweenPx}this._scrollableElements.content.style.transform=`translateY(${-(t+i)}px)`}};ea=Zo([Jo(4,ie.fN),Jo(5,ae._Y)],ea);class ta extends c.jG{constructor(e,t,i,s){super(),this.viewModel=e,this._objectPool=t,this._scrollLeft=i,this._deltaScrollVertical=s,this._templateRef=this._register((0,Uo.X2)(this,void 0)),this.contentHeight=(0,Bs.un)(this,(e=>this._templateRef.read(e)?.object.contentHeight?.read(e)??this.viewModel.lastTemplateData.read(e).contentHeight)),this.maxScroll=(0,Bs.un)(this,(e=>this._templateRef.read(e)?.object.maxScroll.read(e)??{maxScroll:0,scrollWidth:0})),this.template=(0,Bs.un)(this,(e=>this._templateRef.read(e)?.object)),this._isHidden=(0,Bs.FY)(this,!1),this._isFocused=(0,Bs.un)(this,(e=>this.template.read(e)?.isFocused.read(e)??!1)),this.viewModel.setIsFocused(this._isFocused,void 0),this._register((0,Bs.fm)((e=>{const t=this._scrollLeft.read(e);this._templateRef.read(e)?.object.setScrollLeft(t)}))),this._register((0,Bs.fm)((e=>{const t=this._templateRef.read(e);if(!t)return;if(!this._isHidden.read(e))return;t.object.isFocused.read(e)||this._clear()})))}dispose(){this._clear(),super.dispose()}toString(){return`VirtualViewItem(${this.viewModel.documentDiffItem.modified?.uri.toString()})`}getKey(){return this.viewModel.getKey()}setViewState(e,t){this.viewModel.collapsed.set(e.collapsed,t),this._updateTemplateData(t);const i=this.viewModel.lastTemplateData.get(),s=e.selections?.map(Vo.L.liftSelection);this.viewModel.lastTemplateData.set({...i,selections:s},t);const n=this._templateRef.get();n&&s&&n.object.editor.setSelections(s)}_updateTemplateData(e){const t=this._templateRef.get();t&&this.viewModel.lastTemplateData.set({contentHeight:t.object.contentHeight.get(),selections:t.object.editor.getSelections()??void 0},e)}_clear(){const e=this._templateRef.get();e&&(0,Uo.Rn)((t=>{this._updateTemplateData(t),e.object.hide(),this._templateRef.set(void 0,t)}))}hide(){this._isHidden.set(!0,void 0)}render(e,t,i,s){this._isHidden.set(!1,void 0);let n=this._templateRef.get();if(!n){n=this._objectPool.getUnusedObj(new $o(this.viewModel,this._deltaScrollVertical)),this._templateRef.set(n,void 0);const e=this.viewModel.lastTemplateData.get().selections;e&&n.object.editor.setSelections(e)}n.object.render(e,i,t,s)}}(0,Ne.x1A)("multiDiffEditor.headerBackground",{dark:"#262626",light:"tab.inactiveBackground",hcDark:"tab.inactiveBackground",hcLight:"tab.inactiveBackground"},(0,b.kg)("multiDiffEditor.headerBackground","The background color of the diff editor's header")),(0,Ne.x1A)("multiDiffEditor.background",Ne.YtV,(0,b.kg)("multiDiffEditor.background","The background color of the multi file diff editor")),(0,Ne.x1A)("multiDiffEditor.border",{dark:"sideBarSectionHeader.border",light:"#cccccc",hcDark:"sideBarSectionHeader.border",hcLight:"#cccccc"},(0,b.kg)("multiDiffEditor.border","The border color of the multi file diff editor"));var ia=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},sa=function(e,t){return function(i,s){t(i,s,e)}};let na=class extends c.jG{constructor(e,t,i){super(),this._element=e,this._workbenchUIElementFactory=t,this._instantiationService=i,this._dimension=(0,Bs.FY)(this,void 0),this._viewModel=(0,Bs.FY)(this,void 0),this._widgetImpl=(0,Bs.rm)(this,((e,t)=>((0,Po.b)(Qo,e),t.add(this._instantiationService.createInstance((0,Po.b)(ea,e),this._element,this._dimension,this._viewModel,this._workbenchUIElementFactory))))),this._register((0,Bs.OI)(this._widgetImpl))}};function ra(e,t,i){return Hr.initialize(i||{}).createInstance(Io,e,t)}function oa(e){return Hr.get(g.T).onCodeEditorAdd((t=>{e(t)}))}function aa(e){return Hr.get(g.T).onDiffEditorAdd((t=>{e(t)}))}function ca(){return Hr.get(g.T).listCodeEditors()}function la(){return Hr.get(g.T).listDiffEditors()}function ha(e,t,i){return Hr.initialize(i||{}).createInstance(Oo,e,t)}function da(e,t){const i=Hr.initialize(t||{});return new na(e,{},i)}function ua(e){if("string"!==typeof e.id||"function"!==typeof e.run)throw new Error("Invalid command descriptor, `id` and `run` are required properties!");return St.w.registerCommand(e.id,e.run)}function ga(e){if("string"!==typeof e.id||"string"!==typeof e.label||"function"!==typeof e.run)throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");const t=ie.M$.deserialize(e.precondition),i=new c.Cm;if(i.add(St.w.registerCommand(e.id,((i,...s)=>u.DX.runEditorCommand(i,s,t,((t,i,s)=>Promise.resolve(e.run(i,...s))))))),e.contextMenuGroupId){const s={command:{id:e.id,title:e.label},when:t,group:e.contextMenuGroupId,order:e.contextMenuOrder||0};i.add(ni.ZG.appendMenuItem(ni.D8.EditorContext,s))}if(Array.isArray(e.keybindings)){const s=Hr.get(De.b);if(s instanceof Rr){const n=ie.M$.and(t,ie.M$.deserialize(e.keybindingContext));i.add(s.addDynamicKeybindings(e.keybindings.map((t=>({keybinding:t,command:e.id,when:n})))))}else console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService")}return i}function pa(e){return ma([e])}function ma(e){const t=Hr.get(De.b);return t instanceof Rr?t.addDynamicKeybindings(e.map((e=>({keybinding:e.keybinding,command:e.command,commandArgs:e.commandArgs,when:ie.M$.deserialize(e.when)})))):(console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),c.jG.None)}function fa(e,t,i){const s=Hr.get(Ui.L),n=s.getLanguageIdByMimeType(t)||t;return Do(Hr.get(A.IModelService),s,e,n,i)}function _a(e,t){const i=Hr.get(Ui.L),s=i.getLanguageIdByMimeType(t)||t||jr.vH;e.setLanguage(i.createById(s))}function va(e,t,i){if(e){Hr.get(or.DR).changeOne(t,e.uri,i)}}function Ca(e){Hr.get(or.DR).changeAll(e,[])}function Ea(e){return Hr.get(or.DR).read(e)}function ba(e){return Hr.get(or.DR).onMarkerChanged(e)}function Sa(e){return Hr.get(A.IModelService).getModel(e)}function ya(){return Hr.get(A.IModelService).getModels()}function wa(e){return Hr.get(A.IModelService).onModelAdded(e)}function Ra(e){return Hr.get(A.IModelService).onModelRemoved(e)}function La(e){return Hr.get(A.IModelService).onModelLanguageChanged((t=>{e({model:t.model,oldLanguage:t.oldLanguageId})}))}function Ta(e){return function(e,t){return new Br(e,t)}(Hr.get(A.IModelService),e)}function xa(e,t){const i=Hr.get(Ui.L),s=Hr.get(Ln.L);return bo.colorizeElement(s,i,e,t).then((()=>{s.registerEditorContainer(e)}))}function ka(e,t,i){const s=Hr.get(Ui.L);return Hr.get(Ln.L).registerEditorContainer(a.G.document.body),bo.colorize(s,e,t,i)}function Aa(e,t,i=4){return Hr.get(Ln.L).registerEditorContainer(a.G.document.body),bo.colorizeModelLine(e,t,i)}function Na(e,t){Gr.dG.getOrCreate(t);const i=function(e){const t=Gr.dG.get(e);return t||{getInitialState:()=>Kr.r3,tokenize:(t,i,s)=>(0,Kr.$H)(e,s)}}(t),s=(0,l.uz)(e),n=[];let r=i.getInitialState();for(let o=0,a=s.length;o<a;o++){const e=s[o],t=i.tokenize(e,!0,r);n[o]=t.tokens,r=t.endState}return n}function Ia(e,t){Hr.get(Ln.L).defineTheme(e,t)}function Oa(e){Hr.get(Ln.L).setTheme(e)}function Da(){d.T.clearAllFontInfos()}function Ma(e,t){return St.w.registerCommand({id:e,handler:t})}function Pa(e){return Hr.get(Ue.C).registerOpener({open:async t=>("string"===typeof t&&(t=h.r.parse(t)),e.open(t))})}function Fa(e){return Hr.get(g.T).registerCodeEditorOpenHandler((async(t,i,s)=>{if(!i)return null;const n=t.options?.selection;let r;return n&&"number"===typeof n.endLineNumber&&"number"===typeof n.endColumn?r=n:n&&(r={lineNumber:n.startLineNumber,column:n.startColumn}),await e.openCodeEditor(i,t.resource,r)?i:null}))}na=ia([sa(2,ae._Y)],na);var Ua=i(47661);function Ha(e,t){return"boolean"===typeof e?e:t}function Ba(e,t){return"string"===typeof e?e:t}function Wa(e,t=!1){t&&(e=e.map((function(e){return e.toLowerCase()})));const i=function(e){const t={};for(const i of e)t[i]=!0;return t}(e);return t?function(e){return void 0!==i[e.toLowerCase()]&&i.hasOwnProperty(e.toLowerCase())}:function(e){return void 0!==i[e]&&i.hasOwnProperty(e)}}function Va(e,t,i){t=t.replace(/@@/g,"\x01");let s,n=0;do{s=!1,t=t.replace(/@(\w+)/g,(function(i,n){s=!0;let r="";if("string"===typeof e[n])r=e[n];else{if(!(e[n]&&e[n]instanceof RegExp))throw void 0===e[n]?no(e,"language definition does not contain attribute '"+n+"', used at: "+t):no(e,"attribute reference '"+n+"' must be a string, used at: "+t);r=e[n].source}return to(r)?"":"(?:"+r+")"})),n++}while(s&&n<5);t=t.replace(/\x01/g,"@");const r=(e.ignoreCase?"i":"")+(e.unicode?"u":"");if(i){if(t.match(/\$[sS](\d\d?)/g)){let i=null,s=null;return n=>(s&&i===n||(i=n,s=new RegExp(function(e,t,i){let s=null;return t.replace(/\$[sS](\d\d?)/g,(function(t,n){return null===s&&(s=i.split("."),s.unshift(i)),!to(n)&&n<s.length?io(e,s[n]):""}))}(e,t,n),r)),s)}}return new RegExp(t,r)}function za(e,t,i,s){let n=-1,r=i,o=i.match(/^\$(([sS]?)(\d\d?)|#)(.*)$/);o&&(o[3]&&(n=parseInt(o[3]),o[2]&&(n+=100)),r=o[4]);let a,c="~",l=r;if(r&&0!==r.length?/^\w*$/.test(l)?c="==":(o=r.match(/^(@|!@|~|!~|==|!=)(.*)$/),o&&(c=o[1],l=o[2])):(c="!=",l=""),"~"!==c&&"!~"!==c||!/^(\w|\|)*$/.test(l))if("@"===c||"!@"===c){const i=e[l];if(!i)throw no(e,"the @ match target '"+l+"' is not defined, in rule: "+t);if(!function(e,t){if(!t)return!1;if(!Array.isArray(t))return!1;for(const i of t)if(!e(i))return!1;return!0}((function(e){return"string"===typeof e}),i))throw no(e,"the @ match target '"+l+"' must be an array of strings, in rule: "+t);const s=Wa(i,e.ignoreCase);a=function(e){return"@"===c?s(e):!s(e)}}else if("~"===c||"!~"===c)if(l.indexOf("$")<0){const t=Va(e,"^"+l+"$",!1);a=function(e){return"~"===c?t.test(e):!t.test(e)}}else a=function(t,i,s,n){return Va(e,"^"+ro(e,l,i,s,n)+"$",!1).test(t)};else if(l.indexOf("$")<0){const t=io(e,l);a=function(e){return"=="===c?e===t:e!==t}}else{const t=io(e,l);a=function(i,s,n,r,o){const a=ro(e,t,s,n,r);return"=="===c?i===a:i!==a}}else{const t=Wa(l.split("|"),e.ignoreCase);a=function(e){return"~"===c?t(e):!t(e)}}return-1===n?{name:i,value:s,test:function(e,t,i,s){return a(e,e,t,i,s)}}:{name:i,value:s,test:function(e,t,i,s){const r=function(e,t,i,s){if(s<0)return e;if(s<t.length)return t[s];if(s>=100){s-=100;const e=i.split(".");if(e.unshift(i),s<e.length)return e[s]}return null}(e,t,i,n);return a(r||"",e,t,i,s)}}}function Ga(e,t,i){if(i){if("string"===typeof i)return i;if(i.token||""===i.token){if("string"!==typeof i.token)throw no(e,"a 'token' attribute must be of type string, in rule: "+t);{const s={token:i.token};if(i.token.indexOf("$")>=0&&(s.tokenSubst=!0),"string"===typeof i.bracket)if("@open"===i.bracket)s.bracket=1;else{if("@close"!==i.bracket)throw no(e,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+t);s.bracket=-1}if(i.next){if("string"!==typeof i.next)throw no(e,"the next state must be a string value in rule: "+t);{let n=i.next;if(!/^(@pop|@push|@popall)$/.test(n)&&("@"===n[0]&&(n=n.substr(1)),n.indexOf("$")<0&&!function(e,t){let i=t;for(;i&&i.length>0;){if(e.stateNames[i])return!0;const t=i.lastIndexOf(".");i=t<0?null:i.substr(0,t)}return!1}(e,ro(e,n,"",[],""))))throw no(e,"the next state '"+i.next+"' is not defined in rule: "+t);s.next=n}}return"number"===typeof i.goBack&&(s.goBack=i.goBack),"string"===typeof i.switchTo&&(s.switchTo=i.switchTo),"string"===typeof i.log&&(s.log=i.log),"string"===typeof i.nextEmbedded&&(s.nextEmbedded=i.nextEmbedded,e.usesEmbedded=!0),s}}if(Array.isArray(i)){const s=[];for(let n=0,r=i.length;n<r;n++)s[n]=Ga(e,t,i[n]);return{group:s}}if(i.cases){const s=[];for(const r in i.cases)if(i.cases.hasOwnProperty(r)){const n=Ga(e,t,i.cases[r]);"@default"===r||"@"===r||""===r?s.push({test:void 0,value:n,name:r}):"@eos"===r?s.push({test:function(e,t,i,s){return s},value:n,name:r}):s.push(za(e,t,r,n))}const n=e.defaultToken;return{test:function(e,t,i,r){for(const n of s){if(!n.test||n.test(e,t,i,r))return n.value}return n}}}throw no(e,"an action must be a string, an object with a 'token' or 'cases' attribute, or an array of actions; in rule: "+t)}return{token:""}}class ja{constructor(e){this.regex=new RegExp(""),this.action={token:""},this.matchOnlyAtLineStart=!1,this.name="",this.name=e}setRegex(e,t){let i;if("string"===typeof t)i=t;else{if(!(t instanceof RegExp))throw no(e,"rules must start with a match string or regular expression: "+this.name);i=t.source}this.matchOnlyAtLineStart=i.length>0&&"^"===i[0],this.name=this.name+": "+i,this.regex=Va(e,"^(?:"+(this.matchOnlyAtLineStart?i.substr(1):i)+")",!0)}setAction(e,t){this.action=Ga(e,this.name,t)}resolveRegex(e){return this.regex instanceof RegExp?this.regex:this.regex(e)}}function Ka(e,t){if(!t||"object"!==typeof t)throw new Error("Monarch: expecting a language definition object");const i={languageId:e,includeLF:Ha(t.includeLF,!1),noThrow:!1,maxStack:100,start:"string"===typeof t.start?t.start:null,ignoreCase:Ha(t.ignoreCase,!1),unicode:Ha(t.unicode,!1),tokenPostfix:Ba(t.tokenPostfix,"."+e),defaultToken:Ba(t.defaultToken,"source"),usesEmbedded:!1,stateNames:{},tokenizer:{},brackets:[]},s=t;function n(e,r,o){for(const a of o){let o=a.include;if(o){if("string"!==typeof o)throw no(i,"an 'include' attribute must be a string at: "+e);if("@"===o[0]&&(o=o.substr(1)),!t.tokenizer[o])throw no(i,"include target '"+o+"' is not defined at: "+e);n(e+"."+o,r,t.tokenizer[o])}else{const t=new ja(e);if(Array.isArray(a)&&a.length>=1&&a.length<=3)if(t.setRegex(s,a[0]),a.length>=3)if("string"===typeof a[1])t.setAction(s,{token:a[1],next:a[2]});else{if("object"!==typeof a[1])throw no(i,"a next state as the last element of a rule can only be given if the action is either an object or a string, at: "+e);{const e=a[1];e.next=a[2],t.setAction(s,e)}}else t.setAction(s,a[1]);else{if(!a.regex)throw no(i,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+e);a.name&&"string"===typeof a.name&&(t.name=a.name),a.matchOnlyAtStart&&(t.matchOnlyAtLineStart=Ha(a.matchOnlyAtLineStart,!1)),t.setRegex(s,a.regex),t.setAction(s,a.action)}r.push(t)}}}if(s.languageId=e,s.includeLF=i.includeLF,s.ignoreCase=i.ignoreCase,s.unicode=i.unicode,s.noThrow=i.noThrow,s.usesEmbedded=i.usesEmbedded,s.stateNames=t.tokenizer,s.defaultToken=i.defaultToken,!t.tokenizer||"object"!==typeof t.tokenizer)throw no(i,"a language definition must define the 'tokenizer' attribute as an object");i.tokenizer=[];for(const o in t.tokenizer)if(t.tokenizer.hasOwnProperty(o)){i.start||(i.start=o);const e=t.tokenizer[o];i.tokenizer[o]=new Array,n("tokenizer."+o,i.tokenizer[o],e)}if(i.usesEmbedded=s.usesEmbedded,t.brackets){if(!Array.isArray(t.brackets))throw no(i,"the 'brackets' attribute must be defined as an array")}else t.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];const r=[];for(const o of t.brackets){let e=o;if(e&&Array.isArray(e)&&3===e.length&&(e={token:e[2],open:e[0],close:e[1]}),e.open===e.close)throw no(i,"open and close brackets in a 'brackets' attribute must be different: "+e.open+"\n hint: use the 'bracket' attribute if matching on equal brackets is required.");if("string"!==typeof e.open||"string"!==typeof e.token||"string"!==typeof e.close)throw no(i,"every element in the 'brackets' array must be a '{open,close,token}' object or array");r.push({token:e.token+i.tokenPostfix,open:io(i,e.open),close:io(i,e.close)})}return i.brackets=r,i.noThrow=!0,i}function Ya(e){jr.W6.registerLanguage(e)}function qa(){let e=[];return e=e.concat(jr.W6.getLanguages()),e}function $a(e){return Hr.get(Ui.L).languageIdCodec.encodeLanguageId(e)}function Qa(e,t){return Hr.withServices((()=>{const i=Hr.get(Ui.L).onDidRequestRichLanguageFeatures((s=>{s===e&&(i.dispose(),t())}));return i}))}function Xa(e,t){return Hr.withServices((()=>{const i=Hr.get(Ui.L).onDidRequestBasicLanguageFeatures((s=>{s===e&&(i.dispose(),t())}));return i}))}function Za(e,t){if(!Hr.get(Ui.L).isRegisteredLanguageId(e))throw new Error(`Cannot set configuration for unknown language ${e}`);return Hr.get(x.JZ).register(e,t,100)}class Ja{constructor(e,t){this._languageId=e,this._actual=t}dispose(){}getInitialState(){return this._actual.getInitialState()}tokenize(e,t,i){if("function"===typeof this._actual.tokenize)return ec.adaptTokenize(this._languageId,this._actual,e,i);throw new Error("Not supported!")}tokenizeEncoded(e,t,i){const s=this._actual.tokenizeEncoded(e,i);return new Gr.rY(s.tokens,s.endState)}}class ec{constructor(e,t,i,s){this._languageId=e,this._actual=t,this._languageService=i,this._standaloneThemeService=s}dispose(){}getInitialState(){return this._actual.getInitialState()}static _toClassicTokens(e,t){const i=[];let s=0;for(let n=0,r=e.length;n<r;n++){const r=e[n];let o=r.startIndex;0===n?o=0:o<s&&(o=s),i[n]=new Gr.ou(o,r.scopes,t),s=o}return i}static adaptTokenize(e,t,i,s){const n=t.tokenize(i,s),r=ec._toClassicTokens(n.tokens,e);let o;return o=n.endState.equals(s)?s:n.endState,new Gr.$M(r,o)}tokenize(e,t,i){return ec.adaptTokenize(this._languageId,this._actual,e,i)}_toBinaryTokens(e,t){const i=e.encodeLanguageId(this._languageId),s=this._standaloneThemeService.getColorTheme().tokenTheme,n=[];let r=0,o=0;for(let c=0,l=t.length;c<l;c++){const e=t[c],a=1024|s.match(i,e.scopes);if(r>0&&n[r-1]===a)continue;let l=e.startIndex;0===c?l=0:l<o&&(l=o),n[r++]=l,n[r++]=a,o=l}const a=new Uint32Array(r);for(let c=0;c<r;c++)a[c]=n[c];return a}tokenizeEncoded(e,t,i){const s=this._actual.tokenize(e,i),n=this._toBinaryTokens(this._languageService.languageIdCodec,s.tokens);let r;return r=s.endState.equals(i)?i:s.endState,new Gr.rY(n,r)}}function tc(e){return e&&"function"===typeof e.then}function ic(e){const t=Hr.get(Ln.L);if(e){const i=[null];for(let t=1,s=e.length;t<s;t++)i[t]=Ua.Q1.fromHex(e[t]);t.setColorMapOverride(i)}else t.setColorMapOverride(null)}function sc(e,t){return function(e){return"tokenizeEncoded"in e}(t)?new Ja(e,t):new ec(e,t,Hr.get(Ui.L),Hr.get(Ln.L))}function nc(e,t){const i=new Gr.v_((async()=>{const i=await Promise.resolve(t.create());return i?"function"===typeof i.getInitialState?sc(e,i):new vo(Hr.get(Ui.L),Hr.get(Ln.L),e,Ka(e,i),Hr.get(Me.pG)):null}));return Gr.dG.registerFactory(e,i)}function rc(e,t){if(!Hr.get(Ui.L).isRegisteredLanguageId(e))throw new Error(`Cannot set tokens provider for unknown language ${e}`);return tc(t)?nc(e,{create:()=>t}):Gr.dG.register(e,sc(e,t))}function oc(e,t){return tc(t)?nc(e,{create:()=>t}):Gr.dG.register(e,(t=>new vo(Hr.get(Ui.L),Hr.get(Ln.L),e,Ka(e,t),Hr.get(Me.pG)))(t))}function ac(e,t){return Hr.get(D.ILanguageFeaturesService).referenceProvider.register(e,t)}function cc(e,t){return Hr.get(D.ILanguageFeaturesService).renameProvider.register(e,t)}function lc(e,t){return Hr.get(D.ILanguageFeaturesService).newSymbolNamesProvider.register(e,t)}function hc(e,t){return Hr.get(D.ILanguageFeaturesService).signatureHelpProvider.register(e,t)}function dc(e,t){return Hr.get(D.ILanguageFeaturesService).hoverProvider.register(e,{provideHover:async(e,i,s,n)=>{const r=e.getWordAtPosition(i);return Promise.resolve(t.provideHover(e,i,s,n)).then((e=>{if(e)return!e.range&&r&&(e.range=new T.Q(i.lineNumber,r.startColumn,i.lineNumber,r.endColumn)),e.range||(e.range=new T.Q(i.lineNumber,i.column,i.lineNumber,i.column)),e}))}})}function uc(e,t){return Hr.get(D.ILanguageFeaturesService).documentSymbolProvider.register(e,t)}function gc(e,t){return Hr.get(D.ILanguageFeaturesService).documentHighlightProvider.register(e,t)}function pc(e,t){return Hr.get(D.ILanguageFeaturesService).linkedEditingRangeProvider.register(e,t)}function mc(e,t){return Hr.get(D.ILanguageFeaturesService).definitionProvider.register(e,t)}function fc(e,t){return Hr.get(D.ILanguageFeaturesService).implementationProvider.register(e,t)}function _c(e,t){return Hr.get(D.ILanguageFeaturesService).typeDefinitionProvider.register(e,t)}function vc(e,t){return Hr.get(D.ILanguageFeaturesService).codeLensProvider.register(e,t)}function Cc(e,t,i){return Hr.get(D.ILanguageFeaturesService).codeActionProvider.register(e,{providedCodeActionKinds:i?.providedCodeActionKinds,documentation:i?.documentation,provideCodeActions:(e,i,s,n)=>{const r=Hr.get(or.DR).read({resource:e.uri}).filter((e=>T.Q.areIntersectingOrTouching(e,i)));return t.provideCodeActions(e,i,{markers:r,only:s.only,trigger:s.trigger},n)},resolveCodeAction:t.resolveCodeAction})}function Ec(e,t){return Hr.get(D.ILanguageFeaturesService).documentFormattingEditProvider.register(e,t)}function bc(e,t){return Hr.get(D.ILanguageFeaturesService).documentRangeFormattingEditProvider.register(e,t)}function Sc(e,t){return Hr.get(D.ILanguageFeaturesService).onTypeFormattingEditProvider.register(e,t)}function yc(e,t){return Hr.get(D.ILanguageFeaturesService).linkProvider.register(e,t)}function wc(e,t){return Hr.get(D.ILanguageFeaturesService).completionProvider.register(e,t)}function Rc(e,t){return Hr.get(D.ILanguageFeaturesService).colorProvider.register(e,t)}function Lc(e,t){return Hr.get(D.ILanguageFeaturesService).foldingRangeProvider.register(e,t)}function Tc(e,t){return Hr.get(D.ILanguageFeaturesService).declarationProvider.register(e,t)}function xc(e,t){return Hr.get(D.ILanguageFeaturesService).selectionRangeProvider.register(e,t)}function kc(e,t){return Hr.get(D.ILanguageFeaturesService).documentSemanticTokensProvider.register(e,t)}function Ac(e,t){return Hr.get(D.ILanguageFeaturesService).documentRangeSemanticTokensProvider.register(e,t)}function Nc(e,t){return Hr.get(D.ILanguageFeaturesService).inlineCompletionsProvider.register(e,t)}function Ic(e,t){return Hr.get(D.ILanguageFeaturesService).inlineEditProvider.register(e,t)}function Oc(e,t){return Hr.get(D.ILanguageFeaturesService).inlayHintsProvider.register(e,t)}var Dc=i(49079);r.qB.wrappingIndent.defaultValue=0,r.qB.glyphMargin.defaultValue=!1,r.qB.autoIndent.defaultValue=3,r.qB.overviewRulerLanes.defaultValue=2,Dc.Pj.setFormatterSelector(((e,t,i)=>Promise.resolve(e[0])));const Mc=(0,o.createMonacoBaseAPI)();Mc.editor={create:ra,getEditors:ca,getDiffEditors:la,onDidCreateEditor:oa,onDidCreateDiffEditor:aa,createDiffEditor:ha,addCommand:ua,addEditorAction:ga,addKeybindingRule:pa,addKeybindingRules:ma,createModel:fa,setModelLanguage:_a,setModelMarkers:va,getModelMarkers:Ea,removeAllMarkers:Ca,onDidChangeMarkers:ba,getModels:ya,getModel:Sa,onDidCreateModel:wa,onWillDisposeModel:Ra,onDidChangeModelLanguage:La,createWebWorker:Ta,colorizeElement:xa,colorize:ka,colorizeModelLine:Aa,tokenize:Na,defineTheme:Ia,setTheme:Oa,remeasureFonts:Da,registerCommand:Ma,registerLinkOpener:Pa,registerEditorOpener:Fa,AccessibilitySupport:qr.Gn,ContentWidgetPositionPreference:qr.Qj,CursorChangeReason:qr.h5,DefaultEndOfLine:qr.of,EditorAutoIndentStrategy:qr.e0,EditorOption:qr.p2,EndOfLinePreference:qr.kf,EndOfLineSequence:qr.WU,MinimapPosition:qr.R3,MinimapSectionHeaderStyle:qr.VX,MouseTargetType:qr.hS,OverlayWidgetPositionPreference:qr.dE,OverviewRulerLane:qr.A5,GlyphMarginLane:qr.ZS,RenderLineNumbersType:qr.DO,RenderMinimap:qr.hW,ScrollbarVisibility:qr.XR,ScrollType:qr.ov,TextEditorCursorBlinkingStyle:qr.U7,TextEditorCursorStyle:qr.m9,TrackedRangeStickiness:qr.kK,WrappingIndent:qr.tJ,InjectedTextCursorStops:qr.VW,PositionAffinity:qr.Ic,ShowLightbulbIconMode:qr.jT,ConfigurationChangedEvent:r.lw,BareFontInfo:Vr._8,FontInfo:Vr.YJ,TextModelResolvedOptions:Yr.X2,FindMatch:Yr.Dg,ApplyUpdateResult:r.hZ,EditorZoom:Wr.D,createMultiFileDiffEditor:da,EditorType:zr._,EditorOptions:r.qB},Mc.languages={register:Ya,getLanguages:qa,onLanguage:Qa,onLanguageEncountered:Xa,getEncodedLanguageId:$a,setLanguageConfiguration:Za,setColorMap:ic,registerTokensProviderFactory:nc,setTokensProvider:rc,setMonarchTokensProvider:oc,registerReferenceProvider:ac,registerRenameProvider:cc,registerNewSymbolNameProvider:lc,registerCompletionItemProvider:wc,registerSignatureHelpProvider:hc,registerHoverProvider:dc,registerDocumentSymbolProvider:uc,registerDocumentHighlightProvider:gc,registerLinkedEditingRangeProvider:pc,registerDefinitionProvider:mc,registerImplementationProvider:fc,registerTypeDefinitionProvider:_c,registerCodeLensProvider:vc,registerCodeActionProvider:Cc,registerDocumentFormattingEditProvider:Ec,registerDocumentRangeFormattingEditProvider:bc,registerOnTypeFormattingEditProvider:Sc,registerLinkProvider:yc,registerColorProvider:Rc,registerFoldingRangeProvider:Lc,registerDeclarationProvider:Tc,registerSelectionRangeProvider:xc,registerDocumentSemanticTokensProvider:kc,registerDocumentRangeSemanticTokensProvider:Ac,registerInlineCompletionsProvider:Nc,registerInlineEditProvider:Ic,registerInlayHintsProvider:Oc,DocumentHighlightKind:qr.Kb,CompletionItemKind:qr.Io,CompletionItemTag:qr.QP,CompletionItemInsertTextRule:qr._E,SymbolKind:qr.v0,SymbolTag:qr.H_,IndentAction:qr.l,CompletionTriggerKind:qr.t7,SignatureHelpTriggerKind:qr.WA,InlayHintKind:qr.r4,InlineCompletionTriggerKind:qr.qw,InlineEditTriggerKind:qr.sm,CodeActionTriggerType:qr.ok,NewSymbolNameTag:qr.OV,NewSymbolNameTriggerKind:qr.YT,PartialAcceptTriggerKind:qr.Ah,HoverVerbosityAction:qr.M$,FoldingRangeKind:Gr.lO,SelectedSuggestionInfo:Gr.GE};const Pc=Mc.CancellationTokenSource,Fc=Mc.Emitter,Uc=Mc.KeyCode,Hc=Mc.KeyMod,Bc=Mc.Position,Wc=Mc.Range,Vc=Mc.Selection,zc=Mc.SelectionDirection,Gc=Mc.MarkerSeverity,jc=Mc.MarkerTag,Kc=Mc.Uri,Yc=Mc.Token,qc=Mc.editor,$c=Mc.languages,Qc=globalThis.MonacoEnvironment;(Qc?.globalAPI||"function"===typeof define&&i.amdO)&&(globalThis.monaco=Mc),"undefined"!==typeof globalThis.require&&"function"===typeof globalThis.require.config&&globalThis.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-languageserver-textdocument","vscode-languageserver-textdocument/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index","vs/basic-languages/typescript/typescript"]});var Xc;i(61562),i(94318),i(23304),i(59896),i(75208),i(51232),i(77888),i(46686),i(27020),i(15600),i(80200),i(87152),i(11272),i(60352),i(66235),i(31474),i(84840),i(94803),i(74304),i(74800),i(37954),i(25922),i(46648),i(61082),i(19856),i(97884),i(89518),i(83488),i(3254),i(57680),i(99669),i(796),i(89336),i(19436),i(40340),i(52894),i(86492),i(73374),i(38320),i(92080),i(57664),i(8868),i(31396),i(18544),i(538),i(25064),i(64256),i(32624),i(97360),i(42776),i(97144),i(46304),i(58820),i(82560),i(74276),i(39866),i(73020),i(71316),i(70492),i(50848),i(59520),i(46576),i(49150),i(33358),i(96716),i(28304),i(14720),i(27734),i(2068),i(71468),i(15482),i(42572),i(77668),i(36e3),i(10072),i(48448),i(51376),i(61764),i(85872),i(24152),i(42144),i(22362),i(98408),i(61472),i(50576),i(23934);self.MonacoEnvironment=(Xc={editorWorkerService:"editor.worker.js",css:"css.worker.js",html:"html.worker.js",json:"json.worker.js",typescript:"ts.worker.js",javascript:"ts.worker.js",less:"css.worker.js",scss:"css.worker.js",handlebars:"html.worker.js",razor:"html.worker.js"},{globalAPI:!1,getWorkerUrl:function(e,t){var s=i.p,n=(s?s.replace(/\/$/,"")+"/":"")+Xc[t];if(/^((http:)|(https:)|(file:)|(\/\/))/.test(n)){var r=String(window.location),o=r.substr(0,r.length-window.location.hash.length-window.location.search.length-window.location.pathname.length);if(n.substring(0,o.length)!==o){/^(\/\/)/.test(n)&&(n=window.location.protocol+n);var a=new Blob(["/*"+t+'*/importScripts("'+n+'");'],{type:"application/javascript"});return URL.createObjectURL(a)}}return n}});const Zc=s},80789:(e,t,i)=>{"use strict";i.d(t,{H:()=>n});var s=i(64383);function n(e,t){const i=globalThis.MonacoEnvironment;if(i?.createTrustedTypesPolicy)try{return i.createTrustedTypesPolicy(e,t)}catch(n){return void(0,s.dz)(n)}try{return globalThis.trustedTypes?.createPolicy(e,t)}catch(n){return void(0,s.dz)(n)}}},80953:(e,t,i)=>{"use strict";i.d(t,{t:()=>r});var s=i(59284);const n=(0,i(69220).om)("spin"),r=s.forwardRef((function(e,t){const{size:i="m",style:r,className:o,qa:a}=e;return s.createElement("div",{ref:t,style:r,className:n({size:i},o),"data-qa":a},s.createElement("div",{className:n("inner")}))}))},81091:(e,t,i)=>{"use strict";var s=i(5662),n=i(34326),r=i(12437),o=i(78209);class a extends r.o{static{this.PREFIX=":"}constructor(){super({canAcceptInBackground:!0})}provideWithoutTextEditor(e){const t=(0,o.kg)("cannotRunGotoLine","Open a text editor first to go to a line.");return e.items=[{label:t}],e.ariaLabel=t,s.jG.None}provideWithTextEditor(e,t,i){const r=e.editor,o=new s.Cm;o.add(t.onDidAccept((i=>{const[s]=t.selectedItems;if(s){if(!this.isValidLineNumber(r,s.lineNumber))return;this.gotoLocation(e,{range:this.toRange(s.lineNumber,s.column),keyMods:t.keyMods,preserveFocus:i.inBackground}),i.inBackground||t.hide()}})));const c=()=>{const e=this.parsePosition(r,t.value.trim().substr(a.PREFIX.length)),i=this.getPickLabel(r,e.lineNumber,e.column);if(t.items=[{lineNumber:e.lineNumber,column:e.column,label:i}],t.ariaLabel=i,!this.isValidLineNumber(r,e.lineNumber))return void this.clearDecorations(r);const s=this.toRange(e.lineNumber,e.column);r.revealRangeInCenter(s,0),this.addDecorations(r,s)};c(),o.add(t.onDidChangeValue((()=>c())));const l=(0,n.jA)(r);if(l){2===l.getOptions().get(68).renderType&&(l.updateOptions({lineNumbers:"on"}),o.add((0,s.s)((()=>l.updateOptions({lineNumbers:"relative"})))))}return o}toRange(e=1,t=1){return{startLineNumber:e,startColumn:t,endLineNumber:e,endColumn:t}}parsePosition(e,t){const i=t.split(/,|:|#/).map((e=>parseInt(e,10))).filter((e=>!isNaN(e))),s=this.lineCount(e)+1;return{lineNumber:i[0]>0?i[0]:s+i[0],column:i[1]}}getPickLabel(e,t,i){if(this.isValidLineNumber(e,t))return this.isValidColumn(e,t,i)?(0,o.kg)("gotoLineColumnLabel","Go to line {0} and character {1}.",t,i):(0,o.kg)("gotoLineLabel","Go to line {0}.",t);const s=e.getPosition()||{lineNumber:1,column:1},n=this.lineCount(e);return n>1?(0,o.kg)("gotoLineLabelEmptyWithLimit","Current Line: {0}, Character: {1}. Type a line number between 1 and {2} to navigate to.",s.lineNumber,s.column,n):(0,o.kg)("gotoLineLabelEmpty","Current Line: {0}, Character: {1}. Type a line number to navigate to.",s.lineNumber,s.column)}isValidLineNumber(e,t){return!(!t||"number"!==typeof t)&&(t>0&&t<=this.lineCount(e))}isValidColumn(e,t,i){if(!i||"number"!==typeof i)return!1;const s=this.getModel(e);if(!s)return!1;const n={lineNumber:t,column:i};return s.validatePosition(n).equals(n)}lineCount(e){return this.getModel(e)?.getLineCount()??0}}var c=i(46359),l=i(71597),h=i(80301),d=i(51861),u=i(41234),g=i(31450),p=i(60002),m=i(51467),f=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},_=function(e,t){return function(i,s){t(i,s,e)}};let v=class extends a{constructor(e){super(),this.editorService=e,this.onDidActiveTextEditorControlChange=u.Jh.None}get activeTextEditorControl(){return this.editorService.getFocusedCodeEditor()??void 0}};v=f([_(0,h.T)],v);class C extends g.ks{static{this.ID="editor.action.gotoLine"}constructor(){super({id:C.ID,label:d.Hw.gotoLineActionLabel,alias:"Go to Line/Column...",precondition:void 0,kbOpts:{kbExpr:p.R.focus,primary:2085,mac:{primary:293},weight:100}})}run(e){e.get(m.GK).quickAccess.show(v.PREFIX)}}(0,g.Fl)(C),c.O.as(l.Fd.Quickaccess).registerQuickAccessProvider({ctor:v,prefix:v.PREFIX,helpEntries:[{description:d.Hw.gotoLineActionLabel,commandId:C.ID}]})},81674:(e,t,i)=>{"use strict";i.d(t,{$l:()=>a,Gs:()=>u,MB:()=>o,Sw:()=>h,bb:()=>l,gN:()=>c,pJ:()=>d});var s=i(91090);const n="undefined"!==typeof Buffer;new s.d((()=>new Uint8Array(256)));let r;class o{static wrap(e){return n&&!Buffer.isBuffer(e)&&(e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),new o(e)}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}toString(){return n?this.buffer.toString():(r||(r=new TextDecoder),r.decode(this.buffer))}}function a(e,t){return(e[t+0]|0)>>>0|e[t+1]<<8>>>0}function c(e,t,i){e[i+0]=255&t,t>>>=8,e[i+1]=255&t}function l(e,t){return e[t]*2**24+65536*e[t+1]+256*e[t+2]+e[t+3]}function h(e,t,i){e[i+3]=t,t>>>=8,e[i+2]=t,t>>>=8,e[i+1]=t,t>>>=8,e[i]=t}function d(e,t){return e[t]}function u(e,t,i){e[i]=t}},81782:(e,t,i)=>{"use strict";i.d(t,{i:()=>a});var s=i(74320),n=i(60534);class r extends n.V{constructor(e,t){super(0),this._segmenter=null,this._cachedLine=null,this._cachedSegments=[],this.intlSegmenterLocales=t,this.intlSegmenterLocales.length>0?this._segmenter=new Intl.Segmenter(this.intlSegmenterLocales,{granularity:"word"}):this._segmenter=null;for(let i=0,s=e.length;i<s;i++)this.set(e.charCodeAt(i),2);this.set(32,1),this.set(9,1)}findPrevIntlWordBeforeOrAtOffset(e,t){let i=null;for(const s of this._getIntlSegmenterWordsOnLine(e)){if(s.index>t)break;i=s}return i}findNextIntlWordAtOrAfterOffset(e,t){for(const i of this._getIntlSegmenterWordsOnLine(e))if(!(i.index<t))return i;return null}_getIntlSegmenterWordsOnLine(e){return this._segmenter?(this._cachedLine===e||(this._cachedLine=e,this._cachedSegments=this._filterWordSegments(this._segmenter.segment(e))),this._cachedSegments):[]}_filterWordSegments(e){const t=[];for(const i of e)this._isWordLike(i)&&t.push(i);return t}_isWordLike(e){return!!e.isWordLike}}const o=new s.qK(10);function a(e,t){const i=`${e}/${t.join(",")}`;let s=o.get(i);return s||(s=new r(e,t),o.set(i,s)),s}},81788:(e,t,i)=>{"use strict";function s(e){return e}i.d(t,{VV:()=>r,o5:()=>n});class n{constructor(e,t){this.lastCache=void 0,this.lastArgKey=void 0,"function"===typeof e?(this._fn=e,this._computeKey=s):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this._fn(e)),this.lastCache}}class r{get cachedValues(){return this._map}constructor(e,t){this._map=new Map,this._map2=new Map,"function"===typeof e?(this._fn=e,this._computeKey=s):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);if(this._map2.has(t))return this._map2.get(t);const i=this._fn(e);return this._map.set(e,i),this._map2.set(t,i),i}}},81824:(e,t,i)=>{var s=i(63010),n=i(78326);e.exports=function(e,t){return null!=e&&n(e,t,s)}},82320:()=>{},82365:(e,t,i)=>{"use strict";i.d(t,{$f:()=>a,MU:()=>c,Yb:()=>h,_t:()=>l,vn:()=>o});var s=i(91508),n=i(38566),r=i(27760);function o(e,t,i,o=!0,a){if(e<4)return null;const c=a.getLanguageConfiguration(t.tokenization.getLanguageId()).indentRulesSupport;if(!c)return null;const l=new r.no(t,c,a);if(i<=1)return{indentation:"",action:null};for(let s=i-1;s>0&&""===t.getLineContent(s);s--)if(1===s)return{indentation:"",action:null};const h=function(e,t,i){const s=e.tokenization.getLanguageIdAtPosition(t,0);if(t>1){let n,r=-1;for(n=t-1;n>=1;n--){if(e.tokenization.getLanguageIdAtPosition(n,0)!==s)return r;const t=e.getLineContent(n);if(!i.shouldIgnore(n)&&!/^\s+$/.test(t)&&""!==t)return n;r=n}}return-1}(t,i,l);if(h<0)return null;if(h<1)return{indentation:"",action:null};if(l.shouldIncrease(h)||l.shouldIndentNextLine(h)){const e=t.getLineContent(h);return{indentation:s.UU(e),action:n.l.Indent,line:h}}if(l.shouldDecrease(h)){const e=t.getLineContent(h);return{indentation:s.UU(e),action:null,line:h}}{if(1===h)return{indentation:s.UU(t.getLineContent(h)),action:null,line:h};const e=h-1,i=c.getIndentMetadata(t.getLineContent(e));if(!(3&i)&&4&i){let i=0;for(let t=e-1;t>0;t--)if(!l.shouldIndentNextLine(t)){i=t;break}return{indentation:s.UU(t.getLineContent(i+1)),action:null,line:i+1}}if(o)return{indentation:s.UU(t.getLineContent(h)),action:null,line:h};for(let r=h;r>0;r--){if(l.shouldIncrease(r))return{indentation:s.UU(t.getLineContent(r)),action:n.l.Indent,line:r};if(l.shouldIndentNextLine(r)){let e=0;for(let t=r-1;t>0;t--)if(!l.shouldIndentNextLine(r)){e=t;break}return{indentation:s.UU(t.getLineContent(e+1)),action:null,line:e+1}}if(l.shouldDecrease(r))return{indentation:s.UU(t.getLineContent(r)),action:null,line:r}}return{indentation:s.UU(t.getLineContent(1)),action:null,line:1}}}function a(e,t,i,a,c,l){if(e<4)return null;const h=l.getLanguageConfiguration(i);if(!h)return null;const d=l.getLanguageConfiguration(i).indentRulesSupport;if(!d)return null;const u=new r.no(t,d,l),g=o(e,t,a,void 0,l);if(g){const i=g.line;if(void 0!==i){let r=!0;for(let e=i;e<a-1;e++)if(!/^\s*$/.test(t.getLineContent(e))){r=!1;break}if(r){const r=h.onEnter(e,"",t.getLineContent(i),"");if(r){let e=s.UU(t.getLineContent(i));return r.removeText&&(e=e.substring(0,e.length-r.removeText)),r.indentAction===n.l.Indent||r.indentAction===n.l.IndentOutdent?e=c.shiftIndent(e):r.indentAction===n.l.Outdent&&(e=c.unshiftIndent(e)),u.shouldDecrease(a)&&(e=c.unshiftIndent(e)),r.appendText&&(e+=r.appendText),s.UU(e)}}}return u.shouldDecrease(a)?g.action===n.l.Indent?g.indentation:c.unshiftIndent(g.indentation):g.action===n.l.Indent?c.shiftIndent(g.indentation):g.indentation}return null}function c(e,t,i,a,c){if(e<4)return null;const l=t.getLanguageIdAtPosition(i.startLineNumber,i.startColumn),h=c.getLanguageConfiguration(l).indentRulesSupport;if(!h)return null;t.tokenization.forceTokenization(i.startLineNumber);const d=new r.V(t,c).getProcessedTokenContextAroundRange(i),u=d.afterRangeProcessedTokens,g=d.beforeRangeProcessedTokens,p=s.UU(g.getLineContent()),m=function(e,t,i){const s={tokenization:{getLineTokens:s=>s===t?i:e.tokenization.getLineTokens(s),getLanguageId:()=>e.getLanguageId(),getLanguageIdAtPosition:(t,i)=>e.getLanguageIdAtPosition(t,i)},getLineContent:s=>s===t?i.getLineContent():e.getLineContent(s)};return s}(t,i.startLineNumber,g),f=(0,r.WR)(t,i.getStartPosition()),_=t.getLineContent(i.startLineNumber),v=s.UU(_),C=o(e,m,i.startLineNumber+1,void 0,c);if(!C){const e=f?v:p;return{beforeEnter:e,afterEnter:e}}let E=f?v:C.indentation;return C.action===n.l.Indent&&(E=a.shiftIndent(E)),h.shouldDecrease(u.getLineContent())&&(E=a.unshiftIndent(E)),{beforeEnter:f?v:p,afterEnter:E}}function l(e,t,i,a,c,l){const h=e.autoIndent;if(h<4)return null;if((0,r.WR)(t,i.getStartPosition()))return null;const d=t.getLanguageIdAtPosition(i.startLineNumber,i.startColumn),u=l.getLanguageConfiguration(d).indentRulesSupport;if(!u)return null;const g=new r.V(t,l).getProcessedTokenContextAroundRange(i),p=g.beforeRangeProcessedTokens.getLineContent(),m=g.afterRangeProcessedTokens.getLineContent(),f=p+m,_=p+a+m;if(!u.shouldDecrease(f)&&u.shouldDecrease(_)){const e=o(h,t,i.startLineNumber,!1,l);if(!e)return null;let s=e.indentation;return e.action!==n.l.Indent&&(s=c.unshiftIndent(s)),s}const v=i.startLineNumber-1;if(v>0){const n=t.getLineContent(v);if(u.shouldIndentNextLine(n)&&u.shouldIncrease(_)){const n=o(h,t,i.startLineNumber,!1,l),r=n?.indentation;if(void 0!==r){const n=t.getLineContent(i.startLineNumber),o=s.UU(n),l=c.shiftIndent(r)===o,h=/^\s*$/.test(f),d=e.autoClosingPairs.autoClosingPairsOpenByEnd.get(a),u=d&&d.length>0;if(l&&(u&&h))return r}}}return null}function h(e,t,i){const s=i.getLanguageConfiguration(e.getLanguageId()).indentRulesSupport;return s?t<1||t>e.getLineCount()?null:s.getIndentMetadata(e.getLineContent(t)):null}},82518:(e,t,i)=>{"use strict";i.d(t,{Lk:()=>h,NC:()=>o,Rl:()=>u,X5:()=>d,sq:()=>l});var s=i(25890),n=i(74444),r=i(68938);function o(e,t,i){let s=i;return s=a(e,t,s),s=a(e,t,s),s=function(e,t,i){if(!e.getBoundaryScore||!t.getBoundaryScore)return i;for(let s=0;s<i.length;s++){const r=s>0?i[s-1]:void 0,o=i[s],a=s+1<i.length?i[s+1]:void 0,l=new n.L(r?r.seq1Range.endExclusive+1:0,a?a.seq1Range.start-1:e.length),h=new n.L(r?r.seq2Range.endExclusive+1:0,a?a.seq2Range.start-1:t.length);o.seq1Range.isEmpty?i[s]=c(o,e,t,l,h):o.seq2Range.isEmpty&&(i[s]=c(o.swap(),t,e,h,l).swap())}return i}(e,t,s),s}function a(e,t,i){if(0===i.length)return i;const s=[];s.push(i[0]);for(let a=1;a<i.length;a++){const o=s[s.length-1];let c=i[a];if(c.seq1Range.isEmpty||c.seq2Range.isEmpty){const i=c.seq1Range.start-o.seq1Range.endExclusive;let a;for(a=1;a<=i&&(e.getElement(c.seq1Range.start-a)===e.getElement(c.seq1Range.endExclusive-a)&&t.getElement(c.seq2Range.start-a)===t.getElement(c.seq2Range.endExclusive-a));a++);if(a--,a===i){s[s.length-1]=new r.$8(new n.L(o.seq1Range.start,c.seq1Range.endExclusive-i),new n.L(o.seq2Range.start,c.seq2Range.endExclusive-i));continue}c=c.delta(-a)}s.push(c)}const o=[];for(let a=0;a<s.length-1;a++){const i=s[a+1];let c=s[a];if(c.seq1Range.isEmpty||c.seq2Range.isEmpty){const o=i.seq1Range.start-c.seq1Range.endExclusive;let l;for(l=0;l<o&&(e.isStronglyEqual(c.seq1Range.start+l,c.seq1Range.endExclusive+l)&&t.isStronglyEqual(c.seq2Range.start+l,c.seq2Range.endExclusive+l));l++);if(l===o){s[a+1]=new r.$8(new n.L(c.seq1Range.start+o,i.seq1Range.endExclusive),new n.L(c.seq2Range.start+o,i.seq2Range.endExclusive));continue}l>0&&(c=c.delta(l))}o.push(c)}return s.length>0&&o.push(s[s.length-1]),o}function c(e,t,i,s,n){let r=1;for(;e.seq1Range.start-r>=s.start&&e.seq2Range.start-r>=n.start&&i.isStronglyEqual(e.seq2Range.start-r,e.seq2Range.endExclusive-r)&&r<100;)r++;r--;let o=0;for(;e.seq1Range.start+o<s.endExclusive&&e.seq2Range.endExclusive+o<n.endExclusive&&i.isStronglyEqual(e.seq2Range.start+o,e.seq2Range.endExclusive+o)&&o<100;)o++;if(0===r&&0===o)return e;let a=0,c=-1;for(let l=-r;l<=o;l++){const s=e.seq2Range.start+l,n=e.seq2Range.endExclusive+l,r=e.seq1Range.start+l,o=t.getBoundaryScore(r)+i.getBoundaryScore(s)+i.getBoundaryScore(n);o>c&&(c=o,a=l)}return e.delta(a)}function l(e,t,i){const s=[];for(const n of i){const e=s[s.length-1];e?n.seq1Range.start-e.seq1Range.endExclusive<=2||n.seq2Range.start-e.seq2Range.endExclusive<=2?s[s.length-1]=new r.$8(e.seq1Range.join(n.seq1Range),e.seq2Range.join(n.seq2Range)):s.push(n):s.push(n)}return s}function h(e,t,i){const s=r.$8.invert(i,e.length),n=[];let o=new r._3(0,0);function a(i,a){if(i.offset1<o.offset1||i.offset2<o.offset2)return;const c=e.findWordContaining(i.offset1),l=t.findWordContaining(i.offset2);if(!c||!l)return;let h=new r.$8(c,l);const d=h.intersect(a);let u=d.seq1Range.length,g=d.seq2Range.length;for(;s.length>0;){const i=s[0];if(!(i.seq1Range.intersects(h.seq1Range)||i.seq2Range.intersects(h.seq2Range)))break;const n=e.findWordContaining(i.seq1Range.start),o=t.findWordContaining(i.seq2Range.start),a=new r.$8(n,o),c=a.intersect(i);if(u+=c.seq1Range.length,g+=c.seq2Range.length,h=h.join(a),!(h.seq1Range.endExclusive>=i.seq1Range.endExclusive))break;s.shift()}u+g<2*(h.seq1Range.length+h.seq2Range.length)/3&&n.push(h),o=h.getEndExclusives()}for(;s.length>0;){const e=s.shift();e.seq1Range.isEmpty||(a(e.getStarts(),e),a(e.getEndExclusives().delta(-1),e))}return function(e,t){const i=[];for(;e.length>0||t.length>0;){const s=e[0],n=t[0];let r;r=s&&(!n||s.seq1Range.start<n.seq1Range.start)?e.shift():t.shift(),i.length>0&&i[i.length-1].seq1Range.endExclusive>=r.seq1Range.start?i[i.length-1]=i[i.length-1].join(r):i.push(r)}return i}(i,n)}function d(e,t,i){let s=i;if(0===s.length)return s;let r,o=0;do{r=!1;const a=[s[0]];for(let c=1;c<s.length;c++){const l=s[c],h=a[a.length-1];function d(t,i){const s=new n.L(h.seq1Range.endExclusive,l.seq1Range.start);return e.getText(s).replace(/\s/g,"").length<=4&&(t.seq1Range.length+t.seq2Range.length>5||i.seq1Range.length+i.seq2Range.length>5)}d(h,l)?(r=!0,a[a.length-1]=a[a.length-1].join(l)):a.push(l)}s=a}while(o++<10&&r);return s}function u(e,t,i){let o=i;if(0===o.length)return o;let a,c=0;do{a=!1;const h=[o[0]];for(let d=1;d<o.length;d++){const u=o[d],g=h[h.length-1];function p(i,s){const r=new n.L(g.seq1Range.endExclusive,u.seq1Range.start);if(e.countLinesIn(r)>5||r.length>500)return!1;const o=e.getText(r).trim();if(o.length>20||o.split(/\r\n|\r|\n/).length>1)return!1;const a=e.countLinesIn(i.seq1Range),c=i.seq1Range.length,l=t.countLinesIn(i.seq2Range),h=i.seq2Range.length,d=e.countLinesIn(s.seq1Range),p=s.seq1Range.length,m=t.countLinesIn(s.seq2Range),f=s.seq2Range.length;function _(e){return Math.min(e,130)}return Math.pow(Math.pow(_(40*a+c),1.5)+Math.pow(_(40*l+h),1.5),1.5)+Math.pow(Math.pow(_(40*d+p),1.5)+Math.pow(_(40*m+f),1.5),1.5)>74184.96480721243}p(g,u)?(a=!0,h[h.length-1]=h[h.length-1].join(u)):h.push(u)}o=h}while(c++<10&&a);const l=[];return(0,s.kj)(o,((t,i,s)=>{let o=i;function a(e){return e.length>0&&e.trim().length<=3&&i.seq1Range.length+i.seq2Range.length>100}const c=e.extendToFullLines(i.seq1Range),h=e.getText(new n.L(c.start,i.seq1Range.start));a(h)&&(o=o.deltaStart(-h.length));const d=e.getText(new n.L(i.seq1Range.endExclusive,c.endExclusive));a(d)&&(o=o.deltaEnd(d.length));const u=r.$8.fromOffsetPairs(t?t.getEndExclusives():r._3.zero,s?s.getStarts():r._3.max),g=o.intersect(u);l.length>0&&g.getStarts().equals(l[l.length-1].getEndExclusives())?l[l.length-1]=l[l.length-1].join(g):l.push(g)})),l}},82560:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>i.e(902).then(i.bind(i,10902))})},83069:(e,t,i)=>{"use strict";i.d(t,{y:()=>s});class s{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new s(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return s.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return s.isBefore(this,e)}static isBefore(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column}isBeforeOrEqual(e){return s.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<=t.column}static compare(e,t){const i=0|e.lineNumber,s=0|t.lineNumber;if(i===s){return(0|e.column)-(0|t.column)}return i-s}clone(){return new s(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new s(e.lineNumber,e.column)}static isIPosition(e){return e&&"number"===typeof e.lineNumber&&"number"===typeof e.column}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}}},83488:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>i.e(4678).then(i.bind(i,54678))})},83619:(e,t,i)=>{"use strict";i.d(t,{G$:()=>c,Of:()=>r,r0:()=>o,rr:()=>a});var s=i(78209);class n{constructor(e,t,i=t){this.modifierLabels=[null],this.modifierLabels[2]=e,this.modifierLabels[1]=t,this.modifierLabels[3]=i}toLabel(e,t,i){if(0===t.length)return null;const s=[];for(let n=0,r=t.length;n<r;n++){const r=t[n],o=i(r);if(null===o)return null;s[n]=l(r,o,this.modifierLabels[e])}return s.join(" ")}}const r=new n({ctrlKey:"\u2303",shiftKey:"\u21e7",altKey:"\u2325",metaKey:"\u2318",separator:""},{ctrlKey:s.kg({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:s.kg({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:s.kg({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:s.kg({key:"windowsKey",comment:["This is the short form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:s.kg({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:s.kg({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:s.kg({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:s.kg({key:"superKey",comment:["This is the short form for the Super key on the keyboard"]},"Super"),separator:"+"}),o=new n({ctrlKey:s.kg({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:s.kg({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:s.kg({key:"optKey.long",comment:["This is the long form for the Alt/Option key on the keyboard"]},"Option"),metaKey:s.kg({key:"cmdKey.long",comment:["This is the long form for the Command key on the keyboard"]},"Command"),separator:"+"},{ctrlKey:s.kg({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:s.kg({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:s.kg({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:s.kg({key:"windowsKey.long",comment:["This is the long form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:s.kg({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:s.kg({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:s.kg({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:s.kg({key:"superKey.long",comment:["This is the long form for the Super key on the keyboard"]},"Super"),separator:"+"}),a=new n({ctrlKey:"Ctrl",shiftKey:"Shift",altKey:"Alt",metaKey:"Cmd",separator:"+"},{ctrlKey:"Ctrl",shiftKey:"Shift",altKey:"Alt",metaKey:"Super",separator:"+"}),c=new n({ctrlKey:"ctrl",shiftKey:"shift",altKey:"alt",metaKey:"cmd",separator:"+"},{ctrlKey:"ctrl",shiftKey:"shift",altKey:"alt",metaKey:"win",separator:"+"},{ctrlKey:"ctrl",shiftKey:"shift",altKey:"alt",metaKey:"meta",separator:"+"});function l(e,t,i){if(null===t)return"";const s=[];return e.ctrlKey&&s.push(i.ctrlKey),e.shiftKey&&s.push(i.shiftKey),e.altKey&&s.push(i.altKey),e.metaKey&&s.push(i.metaKey),""!==t&&s.push(t),s.join(i.separator)}},83750:(e,t,i)=>{"use strict";i.d(t,{$w:()=>ae,SV:()=>ce,aj:()=>oe});const{entries:s,setPrototypeOf:n,isFrozen:r,getPrototypeOf:o,getOwnPropertyDescriptor:a}=Object;let{freeze:c,seal:l,create:h}=Object,{apply:d,construct:u}="undefined"!==typeof Reflect&&Reflect;c||(c=function(e){return e}),l||(l=function(e){return e}),d||(d=function(e,t,i){return e.apply(t,i)}),u||(u=function(e,t){return new e(...t)});const g=L(Array.prototype.forEach),p=L(Array.prototype.pop),m=L(Array.prototype.push),f=L(String.prototype.toLowerCase),_=L(String.prototype.toString),v=L(String.prototype.match),C=L(String.prototype.replace),E=L(String.prototype.indexOf),b=L(String.prototype.trim),S=L(Object.prototype.hasOwnProperty),y=L(RegExp.prototype.test),w=(R=TypeError,function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return u(R,t)});var R;function L(e){return function(t){for(var i=arguments.length,s=new Array(i>1?i-1:0),n=1;n<i;n++)s[n-1]=arguments[n];return d(e,t,s)}}function T(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f;n&&n(e,null);let s=t.length;for(;s--;){let n=t[s];if("string"===typeof n){const e=i(n);e!==n&&(r(t)||(t[s]=e),n=e)}e[n]=!0}return e}function x(e){for(let t=0;t<e.length;t++){S(e,t)||(e[t]=null)}return e}function k(e){const t=h(null);for(const[i,n]of s(e)){S(e,i)&&(Array.isArray(n)?t[i]=x(n):n&&"object"===typeof n&&n.constructor===Object?t[i]=k(n):t[i]=n)}return t}function A(e,t){for(;null!==e;){const i=a(e,t);if(i){if(i.get)return L(i.get);if("function"===typeof i.value)return L(i.value)}e=o(e)}return function(){return null}}const N=c(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),I=c(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),O=c(["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"]),D=c(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),M=c(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),P=c(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),F=c(["#text"]),U=c(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),H=c(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),B=c(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),W=c(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),V=l(/\{\{[\w\W]*|[\w\W]*\}\}/gm),z=l(/<%[\w\W]*|[\w\W]*%>/gm),G=l(/\${[\w\W]*}/gm),j=l(/^data-[\-\w.\u00B7-\uFFFF]/),K=l(/^aria-[\-\w]+$/),Y=l(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),q=l(/^(?:\w+script|data):/i),$=l(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Q=l(/^html$/i),X=l(/^[a-z][.\w]*(-[.\w]+)+$/i);var Z=Object.freeze({__proto__:null,MUSTACHE_EXPR:V,ERB_EXPR:z,TMPLIT_EXPR:G,DATA_ATTR:j,ARIA_ATTR:K,IS_ALLOWED_URI:Y,IS_SCRIPT_OR_DATA:q,ATTR_WHITESPACE:$,DOCTYPE_NAME:Q,CUSTOM_ELEMENT:X});const J=1,ee=3,te=7,ie=8,se=9,ne=function(){return"undefined"===typeof window?null:window};var re=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ne();const i=t=>e(t);if(i.version="3.1.7",i.removed=[],!t||!t.document||t.document.nodeType!==se)return i.isSupported=!1,i;let{document:n}=t;const r=n,o=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:l,Node:d,Element:u,NodeFilter:R,NamedNodeMap:L=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:x,DOMParser:V,trustedTypes:z}=t,G=u.prototype,j=A(G,"cloneNode"),K=A(G,"remove"),q=A(G,"nextSibling"),$=A(G,"childNodes"),X=A(G,"parentNode");if("function"===typeof l){const e=n.createElement("template");e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let re,oe="";const{implementation:ae,createNodeIterator:ce,createDocumentFragment:le,getElementsByTagName:he}=n,{importNode:de}=r;let ue={};i.isSupported="function"===typeof s&&"function"===typeof X&&ae&&void 0!==ae.createHTMLDocument;const{MUSTACHE_EXPR:ge,ERB_EXPR:pe,TMPLIT_EXPR:me,DATA_ATTR:fe,ARIA_ATTR:_e,IS_SCRIPT_OR_DATA:ve,ATTR_WHITESPACE:Ce,CUSTOM_ELEMENT:Ee}=Z;let{IS_ALLOWED_URI:be}=Z,Se=null;const ye=T({},[...N,...I,...O,...M,...F]);let we=null;const Re=T({},[...U,...H,...B,...W]);let Le=Object.seal(h(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Te=null,xe=null,ke=!0,Ae=!0,Ne=!1,Ie=!0,Oe=!1,De=!0,Me=!1,Pe=!1,Fe=!1,Ue=!1,He=!1,Be=!1,We=!0,Ve=!1,ze=!0,Ge=!1,je={},Ke=null;const Ye=T({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let qe=null;const $e=T({},["audio","video","img","source","image","track"]);let Qe=null;const Xe=T({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ze="http://www.w3.org/1998/Math/MathML",Je="http://www.w3.org/2000/svg",et="http://www.w3.org/1999/xhtml";let tt=et,it=!1,st=null;const nt=T({},[Ze,Je,et],_);let rt=null;const ot=["application/xhtml+xml","text/html"];let at=null,ct=null;const lt=n.createElement("form"),ht=function(e){return e instanceof RegExp||e instanceof Function},dt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ct||ct!==e){if(e&&"object"===typeof e||(e={}),e=k(e),rt=-1===ot.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,at="application/xhtml+xml"===rt?_:f,Se=S(e,"ALLOWED_TAGS")?T({},e.ALLOWED_TAGS,at):ye,we=S(e,"ALLOWED_ATTR")?T({},e.ALLOWED_ATTR,at):Re,st=S(e,"ALLOWED_NAMESPACES")?T({},e.ALLOWED_NAMESPACES,_):nt,Qe=S(e,"ADD_URI_SAFE_ATTR")?T(k(Xe),e.ADD_URI_SAFE_ATTR,at):Xe,qe=S(e,"ADD_DATA_URI_TAGS")?T(k($e),e.ADD_DATA_URI_TAGS,at):$e,Ke=S(e,"FORBID_CONTENTS")?T({},e.FORBID_CONTENTS,at):Ye,Te=S(e,"FORBID_TAGS")?T({},e.FORBID_TAGS,at):{},xe=S(e,"FORBID_ATTR")?T({},e.FORBID_ATTR,at):{},je=!!S(e,"USE_PROFILES")&&e.USE_PROFILES,ke=!1!==e.ALLOW_ARIA_ATTR,Ae=!1!==e.ALLOW_DATA_ATTR,Ne=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ie=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Oe=e.SAFE_FOR_TEMPLATES||!1,De=!1!==e.SAFE_FOR_XML,Me=e.WHOLE_DOCUMENT||!1,Ue=e.RETURN_DOM||!1,He=e.RETURN_DOM_FRAGMENT||!1,Be=e.RETURN_TRUSTED_TYPE||!1,Fe=e.FORCE_BODY||!1,We=!1!==e.SANITIZE_DOM,Ve=e.SANITIZE_NAMED_PROPS||!1,ze=!1!==e.KEEP_CONTENT,Ge=e.IN_PLACE||!1,be=e.ALLOWED_URI_REGEXP||Y,tt=e.NAMESPACE||et,Le=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&ht(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Le.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ht(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Le.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"===typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Le.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Oe&&(Ae=!1),He&&(Ue=!0),je&&(Se=T({},F),we=[],!0===je.html&&(T(Se,N),T(we,U)),!0===je.svg&&(T(Se,I),T(we,H),T(we,W)),!0===je.svgFilters&&(T(Se,O),T(we,H),T(we,W)),!0===je.mathMl&&(T(Se,M),T(we,B),T(we,W))),e.ADD_TAGS&&(Se===ye&&(Se=k(Se)),T(Se,e.ADD_TAGS,at)),e.ADD_ATTR&&(we===Re&&(we=k(we)),T(we,e.ADD_ATTR,at)),e.ADD_URI_SAFE_ATTR&&T(Qe,e.ADD_URI_SAFE_ATTR,at),e.FORBID_CONTENTS&&(Ke===Ye&&(Ke=k(Ke)),T(Ke,e.FORBID_CONTENTS,at)),ze&&(Se["#text"]=!0),Me&&T(Se,["html","head","body"]),Se.table&&(T(Se,["tbody"]),delete Te.tbody),e.TRUSTED_TYPES_POLICY){if("function"!==typeof e.TRUSTED_TYPES_POLICY.createHTML)throw w('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!==typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw w('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');re=e.TRUSTED_TYPES_POLICY,oe=re.createHTML("")}else void 0===re&&(re=function(e,t){if("object"!==typeof e||"function"!==typeof e.createPolicy)return null;let i=null;const s="data-tt-policy-suffix";t&&t.hasAttribute(s)&&(i=t.getAttribute(s));const n="dompurify"+(i?"#"+i:"");try{return e.createPolicy(n,{createHTML:e=>e,createScriptURL:e=>e})}catch(r){return console.warn("TrustedTypes policy "+n+" could not be created."),null}}(z,o)),null!==re&&"string"===typeof oe&&(oe=re.createHTML(""));c&&c(e),ct=e}},ut=T({},["mi","mo","mn","ms","mtext"]),gt=T({},["annotation-xml"]),pt=T({},["title","style","font","a","script"]),mt=T({},[...I,...O,...D]),ft=T({},[...M,...P]),_t=function(e){m(i.removed,{element:e});try{X(e).removeChild(e)}catch(t){K(e)}},vt=function(e,t){try{m(i.removed,{attribute:t.getAttributeNode(e),from:t})}catch(s){m(i.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!we[e])if(Ue||He)try{_t(t)}catch(s){}else try{t.setAttribute(e,"")}catch(s){}},Ct=function(e){let t=null,i=null;if(Fe)e="<remove></remove>"+e;else{const t=v(e,/^[\r\n\t ]+/);i=t&&t[0]}"application/xhtml+xml"===rt&&tt===et&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const s=re?re.createHTML(e):e;if(tt===et)try{t=(new V).parseFromString(s,rt)}catch(o){}if(!t||!t.documentElement){t=ae.createDocument(tt,"template",null);try{t.documentElement.innerHTML=it?oe:s}catch(o){}}const r=t.body||t.documentElement;return e&&i&&r.insertBefore(n.createTextNode(i),r.childNodes[0]||null),tt===et?he.call(t,Me?"html":"body")[0]:Me?t.documentElement:r},Et=function(e){return ce.call(e.ownerDocument||e,e,R.SHOW_ELEMENT|R.SHOW_COMMENT|R.SHOW_TEXT|R.SHOW_PROCESSING_INSTRUCTION|R.SHOW_CDATA_SECTION,null)},bt=function(e){return e instanceof x&&("string"!==typeof e.nodeName||"string"!==typeof e.textContent||"function"!==typeof e.removeChild||!(e.attributes instanceof L)||"function"!==typeof e.removeAttribute||"function"!==typeof e.setAttribute||"string"!==typeof e.namespaceURI||"function"!==typeof e.insertBefore||"function"!==typeof e.hasChildNodes)},St=function(e){return"function"===typeof d&&e instanceof d},yt=function(e,t,s){ue[e]&&g(ue[e],(e=>{e.call(i,t,s,ct)}))},wt=function(e){let t=null;if(yt("beforeSanitizeElements",e,null),bt(e))return _t(e),!0;const s=at(e.nodeName);if(yt("uponSanitizeElement",e,{tagName:s,allowedTags:Se}),e.hasChildNodes()&&!St(e.firstElementChild)&&y(/<[/\w]/g,e.innerHTML)&&y(/<[/\w]/g,e.textContent))return _t(e),!0;if(e.nodeType===te)return _t(e),!0;if(De&&e.nodeType===ie&&y(/<[/\w]/g,e.data))return _t(e),!0;if(!Se[s]||Te[s]){if(!Te[s]&&Lt(s)){if(Le.tagNameCheck instanceof RegExp&&y(Le.tagNameCheck,s))return!1;if(Le.tagNameCheck instanceof Function&&Le.tagNameCheck(s))return!1}if(ze&&!Ke[s]){const t=X(e)||e.parentNode,i=$(e)||e.childNodes;if(i&&t){for(let s=i.length-1;s>=0;--s){const n=j(i[s],!0);n.__removalCount=(e.__removalCount||0)+1,t.insertBefore(n,q(e))}}}return _t(e),!0}return e instanceof u&&!function(e){let t=X(e);t&&t.tagName||(t={namespaceURI:tt,tagName:"template"});const i=f(e.tagName),s=f(t.tagName);return!!st[e.namespaceURI]&&(e.namespaceURI===Je?t.namespaceURI===et?"svg"===i:t.namespaceURI===Ze?"svg"===i&&("annotation-xml"===s||ut[s]):Boolean(mt[i]):e.namespaceURI===Ze?t.namespaceURI===et?"math"===i:t.namespaceURI===Je?"math"===i&>[s]:Boolean(ft[i]):e.namespaceURI===et?!(t.namespaceURI===Je&&!gt[s])&&!(t.namespaceURI===Ze&&!ut[s])&&!ft[i]&&(pt[i]||!mt[i]):!("application/xhtml+xml"!==rt||!st[e.namespaceURI]))}(e)?(_t(e),!0):"noscript"!==s&&"noembed"!==s&&"noframes"!==s||!y(/<\/no(script|embed|frames)/i,e.innerHTML)?(Oe&&e.nodeType===ee&&(t=e.textContent,g([ge,pe,me],(e=>{t=C(t,e," ")})),e.textContent!==t&&(m(i.removed,{element:e.cloneNode()}),e.textContent=t)),yt("afterSanitizeElements",e,null),!1):(_t(e),!0)},Rt=function(e,t,i){if(We&&("id"===t||"name"===t)&&(i in n||i in lt))return!1;if(Ae&&!xe[t]&&y(fe,t));else if(ke&&y(_e,t));else if(!we[t]||xe[t]){if(!(Lt(e)&&(Le.tagNameCheck instanceof RegExp&&y(Le.tagNameCheck,e)||Le.tagNameCheck instanceof Function&&Le.tagNameCheck(e))&&(Le.attributeNameCheck instanceof RegExp&&y(Le.attributeNameCheck,t)||Le.attributeNameCheck instanceof Function&&Le.attributeNameCheck(t))||"is"===t&&Le.allowCustomizedBuiltInElements&&(Le.tagNameCheck instanceof RegExp&&y(Le.tagNameCheck,i)||Le.tagNameCheck instanceof Function&&Le.tagNameCheck(i))))return!1}else if(Qe[t]);else if(y(be,C(i,Ce,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==E(i,"data:")||!qe[e]){if(Ne&&!y(ve,C(i,Ce,"")));else if(i)return!1}else;return!0},Lt=function(e){return"annotation-xml"!==e&&v(e,Ee)},Tt=function(e){yt("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:we};let n=t.length;for(;n--;){const o=t[n],{name:a,namespaceURI:c,value:l}=o,h=at(a);let d="value"===a?l:b(l);if(s.attrName=h,s.attrValue=d,s.keepAttr=!0,s.forceKeepAttr=void 0,yt("uponSanitizeAttribute",e,s),d=s.attrValue,s.forceKeepAttr)continue;if(vt(a,e),!s.keepAttr)continue;if(!Ie&&y(/\/>/i,d)){vt(a,e);continue}Oe&&g([ge,pe,me],(e=>{d=C(d,e," ")}));const u=at(e.nodeName);if(Rt(u,h,d))if(!Ve||"id"!==h&&"name"!==h||(vt(a,e),d="user-content-"+d),De&&y(/((--!?|])>)|<\/(style|title)/i,d))vt(a,e);else{if(re&&"object"===typeof z&&"function"===typeof z.getAttributeType)if(c);else switch(z.getAttributeType(u,h)){case"TrustedHTML":d=re.createHTML(d);break;case"TrustedScriptURL":d=re.createScriptURL(d)}try{c?e.setAttributeNS(c,a,d):e.setAttribute(a,d),bt(e)?_t(e):p(i.removed)}catch(r){}}}yt("afterSanitizeAttributes",e,null)},xt=function e(t){let i=null;const s=Et(t);for(yt("beforeSanitizeShadowDOM",t,null);i=s.nextNode();)yt("uponSanitizeShadowNode",i,null),wt(i)||(i.content instanceof a&&e(i.content),Tt(i));yt("afterSanitizeShadowDOM",t,null)};return i.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=null,n=null,o=null,c=null;if(it=!e,it&&(e="\x3c!--\x3e"),"string"!==typeof e&&!St(e)){if("function"!==typeof e.toString)throw w("toString is not a function");if("string"!==typeof(e=e.toString()))throw w("dirty is not a string, aborting")}if(!i.isSupported)return e;if(Pe||dt(t),i.removed=[],"string"===typeof e&&(Ge=!1),Ge){if(e.nodeName){const t=at(e.nodeName);if(!Se[t]||Te[t])throw w("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof d)s=Ct("\x3c!----\x3e"),n=s.ownerDocument.importNode(e,!0),n.nodeType===J&&"BODY"===n.nodeName||"HTML"===n.nodeName?s=n:s.appendChild(n);else{if(!Ue&&!Oe&&!Me&&-1===e.indexOf("<"))return re&&Be?re.createHTML(e):e;if(s=Ct(e),!s)return Ue?null:Be?oe:""}s&&Fe&&_t(s.firstChild);const l=Et(Ge?e:s);for(;o=l.nextNode();)wt(o)||(o.content instanceof a&&xt(o.content),Tt(o));if(Ge)return e;if(Ue){if(He)for(c=le.call(s.ownerDocument);s.firstChild;)c.appendChild(s.firstChild);else c=s;return(we.shadowroot||we.shadowrootmode)&&(c=de.call(r,c,!0)),c}let h=Me?s.outerHTML:s.innerHTML;return Me&&Se["!doctype"]&&s.ownerDocument&&s.ownerDocument.doctype&&s.ownerDocument.doctype.name&&y(Q,s.ownerDocument.doctype.name)&&(h="<!DOCTYPE "+s.ownerDocument.doctype.name+">\n"+h),Oe&&g([ge,pe,me],(e=>{h=C(h,e," ")})),re&&Be?re.createHTML(h):h},i.setConfig=function(){dt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Pe=!0},i.clearConfig=function(){ct=null,Pe=!1},i.isValidAttribute=function(e,t,i){ct||dt({});const s=at(e),n=at(t);return Rt(s,n,i)},i.addHook=function(e,t){"function"===typeof t&&(ue[e]=ue[e]||[],m(ue[e],t))},i.removeHook=function(e){if(ue[e])return p(ue[e])},i.removeHooks=function(e){ue[e]&&(ue[e]=[])},i.removeAllHooks=function(){ue={}},i}();re.version,re.isSupported;const oe=re.sanitize,ae=(re.setConfig,re.clearConfig,re.isValidAttribute,re.addHook),ce=re.removeHook;re.removeHooks,re.removeAllHooks},83823:(e,t,i)=>{e.exports=function(e){const t=i(94297),s={string:null,"yql.string":null};function n(e,t){const i=e[0],n=t[0];return(Object.prototype.hasOwnProperty.call(s,i.$type)&&Object.prototype.hasOwnProperty.call(s,n.$type)&&i.$value)>n.$value?1:-1}return function(i,s,r){let o=i.slice().sort(n);const a=s.limitMapLength>0&&i.length>s.limitMapLength;return a&&(o=o.slice(0,s.limitMapLength-1)),o.map((function(i){let n="";return n+=e(i[0],s,r+1),n+=t.getKeyValueSeparator(s),n+=e(i[1],s,r+1),n})).concat(a?["... "+(i.length-s.limitMapLength+1)+" hidden keys"]:[]).join(t.getExpressionTerminator(s)+t.getIndent(s,r))}}},83844:(e,t,i)=>{"use strict";i.d(t,{Bb:()=>h,Fd:()=>g,Gu:()=>d,HP:()=>u,Hz:()=>E,JO:()=>v,a:()=>_,e$:()=>f,oG:()=>b,x1:()=>m,yL:()=>C});var s=i(66782),n=i(90766),r=i(47661),o=i(41234),a=i(78748),c=i(46359),l=i(78209);function h(e){return`--vscode-${e.replace(/\./g,"-")}`}function d(e){return`var(${h(e)})`}function u(e,t){return`var(${h(e)}, ${t})`}const g={ColorContribution:"base.contributions.colors"};const p=new class{constructor(){this._onDidChangeSchema=new o.vl,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}registerColor(e,t,i,s=!1,n){const r={id:e,description:i,defaults:t,needsTransparency:s,deprecationMessage:n};this.colorsById[e]=r;const o={type:"string",format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return n&&(o.deprecationMessage=n),s&&(o.pattern="^#(?:(?<rgba>[0-9a-fA-f]{3}[0-9a-eA-E])|(?:[0-9a-fA-F]{6}(?:(?![fF]{2})(?:[0-9a-fA-F]{2}))))?$",o.patternErrorMessage=l.kg("transparecyRequired","This color must be transparent or it will obscure content")),this.colorSchema.properties[e]={description:i,oneOf:[o,{type:"string",const:"default",description:l.kg("useDefault","Use the default color.")}]},this.colorReferenceSchema.enum.push(e),this.colorReferenceSchema.enumDescriptions.push(i),this._onDidChangeSchema.fire(),e}getColors(){return Object.keys(this.colorsById).map((e=>this.colorsById[e]))}resolveDefaultColor(e,t){const i=this.colorsById[e];if(i?.defaults){return S(null!==(s=i.defaults)&&"object"===typeof s&&"light"in s&&"dark"in s?i.defaults[t.type]:i.defaults,t)}var s}getColorSchema(){return this.colorSchema}toString(){return Object.keys(this.colorsById).sort(((e,t)=>{const i=-1===e.indexOf(".")?0:1,s=-1===t.indexOf(".")?0:1;return i!==s?i-s:e.localeCompare(t)})).map((e=>`- \`${e}\`: ${this.colorsById[e].description}`)).join("\n")}};function m(e,t,i,s,n){return p.registerColor(e,t,i,s,n)}function f(e,t){return{op:0,value:e,factor:t}}function _(e,t){return{op:1,value:e,factor:t}}function v(e,t){return{op:2,value:e,factor:t}}function C(...e){return{op:4,values:e}}function E(e,t,i){return{op:6,if:e,then:t,else:i}}function b(e,t,i,s){return{op:5,value:e,background:t,factor:i,transparency:s}}function S(e,t){if(null!==e)return"string"===typeof e?"#"===e[0]?r.Q1.fromHex(e):t.getColor(e):e instanceof r.Q1?e:"object"===typeof e?function(e,t){switch(e.op){case 0:return S(e.value,t)?.darken(e.factor);case 1:return S(e.value,t)?.lighten(e.factor);case 2:return S(e.value,t)?.transparent(e.factor);case 3:{const i=S(e.background,t);return i?S(e.value,t)?.makeOpaque(i):S(e.value,t)}case 4:for(const i of e.values){const e=S(i,t);if(e)return e}return;case 6:return S(t.defines(e.if)?e.then:e.else,t);case 5:{const i=S(e.value,t);if(!i)return;const s=S(e.background,t);return s?i.isDarkerThan(s)?r.Q1.getLighterColor(i,s,e.factor).transparent(e.transparency):r.Q1.getDarkerColor(i,s,e.factor).transparent(e.transparency):i.transparent(e.factor*e.transparency)}default:throw(0,s.xb)(e)}}(e,t):void 0}c.O.add(g.ColorContribution,p);const y="vscode://schemas/workbench-colors",w=c.O.as(a.F.JSONContribution);w.registerSchema(y,p.getColorSchema());const R=new n.uC((()=>w.notifySchemaChanged(y)),200);p.onDidChangeSchema((()=>{R.isScheduled()||R.schedule()}))},83941:(e,t,i)=>{"use strict";i.d(t,{W6:()=>c,vH:()=>l});var s=i(78209),n=i(41234),r=i(46359),o=i(44320),a=i(1646);const c=new class{constructor(){this._onDidChangeLanguages=new n.vl,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[]}registerLanguage(e){return this._languages.push(e),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let t=0,i=this._languages.length;t<i;t++)if(this._languages[t]===e)return void this._languages.splice(t,1)}}}getLanguages(){return this._languages}};r.O.add("editor.modesRegistry",c);const l="plaintext";c.registerLanguage({id:l,extensions:[".txt"],aliases:[s.kg("plainText.alias","Plain Text"),"text"],mimetypes:[o.K.text]}),r.O.as(a.Fd.Configuration).registerDefaultConfigurations([{overrides:{"[plaintext]":{"editor.unicodeHighlight.ambiguousCharacters":!1,"editor.unicodeHighlight.invisibleCharacters":!1}}}])},83993:(e,t,i)=>{"use strict";i.d(t,{uP:()=>h,F1:()=>o});class s{constructor(e,t,i,s){this.originalStart=e,this.originalLength=t,this.modifiedStart=i,this.modifiedLength=s}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}var n=i(85600);class r{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let i=0,s=e.length;i<s;i++)t[i]=e.charCodeAt(i);return t}}function o(e,t,i){return new h(new r(e),new r(t)).ComputeDiff(i).changes}class a{static Assert(e,t){if(!e)throw new Error(t)}}class c{static Copy(e,t,i,s,n){for(let r=0;r<n;r++)i[s+r]=e[t+r]}static Copy2(e,t,i,s,n){for(let r=0;r<n;r++)i[s+r]=e[t+r]}}class l{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 s(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}}class h{constructor(e,t,i=null){this.ContinueProcessingPredicate=i,this._originalSequence=e,this._modifiedSequence=t;const[s,n,r]=h._getElements(e),[o,a,c]=h._getElements(t);this._hasStrings=r&&c,this._originalStringElements=s,this._originalElementsOrHash=n,this._modifiedStringElements=o,this._modifiedElementsOrHash=a,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"===typeof e[0]}static _getElements(e){const t=e.getElements();if(h._isStringArray(t)){const e=new Int32Array(t.length);for(let i=0,s=t.length;i<s;i++)e[i]=(0,n.e2)(t[i],0);return[t,e,!0]}return t instanceof Int32Array?[[],t,!1]:[[],new Int32Array(t),!1]}ElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._modifiedStringElements[t])}ElementsAreStrictEqual(e,t){if(!this.ElementsAreEqual(e,t))return!1;return h._getStrictElement(this._originalSequence,e)===h._getStrictElement(this._modifiedSequence,t)}static _getStrictElement(e,t){return"function"===typeof e.getStrictElement?e.getStrictElement(t):null}OriginalElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._originalElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._originalStringElements[t])}ModifiedElementsAreEqual(e,t){return this._modifiedElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._modifiedStringElements[e]===this._modifiedStringElements[t])}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,t,i,s,n){const r=[!1];let o=this.ComputeDiffRecursive(e,t,i,s,r);return n&&(o=this.PrettifyChanges(o)),{quitEarly:r[0],changes:o}}ComputeDiffRecursive(e,t,i,n,r){for(r[0]=!1;e<=t&&i<=n&&this.ElementsAreEqual(e,i);)e++,i++;for(;t>=e&&n>=i&&this.ElementsAreEqual(t,n);)t--,n--;if(e>t||i>n){let r;return i<=n?(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),r=[new s(e,0,i,n-i+1)]):e<=t?(a.Assert(i===n+1,"modifiedStart should only be one more than modifiedEnd"),r=[new s(e,t-e+1,i,0)]):(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),a.Assert(i===n+1,"modifiedStart should only be one more than modifiedEnd"),r=[]),r}const o=[0],c=[0],l=this.ComputeRecursionPoint(e,t,i,n,o,c,r),h=o[0],d=c[0];if(null!==l)return l;if(!r[0]){const o=this.ComputeDiffRecursive(e,h,i,d,r);let a=[];return a=r[0]?[new s(h+1,t-(h+1)+1,d+1,n-(d+1)+1)]:this.ComputeDiffRecursive(h+1,t,d+1,n,r),this.ConcatenateChanges(o,a)}return[new s(e,t-e+1,i,n-i+1)]}WALKTRACE(e,t,i,n,r,o,a,c,h,d,u,g,p,m,f,_,v,C){let E=null,b=null,S=new l,y=t,w=i,R=p[0]-_[0]-n,L=-1073741824,T=this.m_forwardHistory.length-1;do{const t=R+e;t===y||t<w&&h[t-1]<h[t+1]?(m=(u=h[t+1])-R-n,u<L&&S.MarkNextChange(),L=u,S.AddModifiedElement(u+1,m),R=t+1-e):(m=(u=h[t-1]+1)-R-n,u<L&&S.MarkNextChange(),L=u-1,S.AddOriginalElement(u,m+1),R=t-1-e),T>=0&&(e=(h=this.m_forwardHistory[T])[0],y=1,w=h.length-1)}while(--T>=-1);if(E=S.getReverseChanges(),C[0]){let e=p[0]+1,t=_[0]+1;if(null!==E&&E.length>0){const i=E[E.length-1];e=Math.max(e,i.getOriginalEnd()),t=Math.max(t,i.getModifiedEnd())}b=[new s(e,g-e+1,t,f-t+1)]}else{S=new l,y=o,w=a,R=p[0]-_[0]-c,L=1073741824,T=v?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=R+r;e===y||e<w&&d[e-1]>=d[e+1]?(m=(u=d[e+1]-1)-R-c,u>L&&S.MarkNextChange(),L=u+1,S.AddOriginalElement(u+1,m+1),R=e+1-r):(m=(u=d[e-1])-R-c,u>L&&S.MarkNextChange(),L=u,S.AddModifiedElement(u+1,m+1),R=e-1-r),T>=0&&(r=(d=this.m_reverseHistory[T])[0],y=1,w=d.length-1)}while(--T>=-1);b=S.getChanges()}return this.ConcatenateChanges(E,b)}ComputeRecursionPoint(e,t,i,n,r,o,a){let l=0,h=0,d=0,u=0,g=0,p=0;e--,i--,r[0]=0,o[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const m=t-e+(n-i),f=m+1,_=new Int32Array(f),v=new Int32Array(f),C=n-i,E=t-e,b=e-i,S=t-n,y=(E-C)%2===0;_[C]=e,v[E]=t,a[0]=!1;for(let w=1;w<=m/2+1;w++){let m=0,R=0;d=this.ClipDiagonalBound(C-w,w,C,f),u=this.ClipDiagonalBound(C+w,w,C,f);for(let e=d;e<=u;e+=2){l=e===d||e<u&&_[e-1]<_[e+1]?_[e+1]:_[e-1]+1,h=l-(e-C)-b;const i=l;for(;l<t&&h<n&&this.ElementsAreEqual(l+1,h+1);)l++,h++;if(_[e]=l,l+h>m+R&&(m=l,R=h),!y&&Math.abs(e-E)<=w-1&&l>=v[e])return r[0]=l,o[0]=h,i<=v[e]&&w<=1448?this.WALKTRACE(C,d,u,b,E,g,p,S,_,v,l,t,r,h,n,o,y,a):null}const L=(m-e+(R-i)-w)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(m,L))return a[0]=!0,r[0]=m,o[0]=R,L>0&&w<=1448?this.WALKTRACE(C,d,u,b,E,g,p,S,_,v,l,t,r,h,n,o,y,a):(e++,i++,[new s(e,t-e+1,i,n-i+1)]);g=this.ClipDiagonalBound(E-w,w,E,f),p=this.ClipDiagonalBound(E+w,w,E,f);for(let s=g;s<=p;s+=2){l=s===g||s<p&&v[s-1]>=v[s+1]?v[s+1]-1:v[s-1],h=l-(s-E)-S;const c=l;for(;l>e&&h>i&&this.ElementsAreEqual(l,h);)l--,h--;if(v[s]=l,y&&Math.abs(s-C)<=w&&l<=_[s])return r[0]=l,o[0]=h,c>=_[s]&&w<=1448?this.WALKTRACE(C,d,u,b,E,g,p,S,_,v,l,t,r,h,n,o,y,a):null}if(w<=1447){let e=new Int32Array(u-d+2);e[0]=C-d+1,c.Copy2(_,d,e,1,u-d+1),this.m_forwardHistory.push(e),e=new Int32Array(p-g+2),e[0]=E-g+1,c.Copy2(v,g,e,1,p-g+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(C,d,u,b,E,g,p,S,_,v,l,t,r,h,n,o,y,a)}PrettifyChanges(e){for(let t=0;t<e.length;t++){const i=e[t],s=t<e.length-1?e[t+1].originalStart:this._originalElementsOrHash.length,n=t<e.length-1?e[t+1].modifiedStart:this._modifiedElementsOrHash.length,r=i.originalLength>0,o=i.modifiedLength>0;for(;i.originalStart+i.originalLength<s&&i.modifiedStart+i.modifiedLength<n&&(!r||this.OriginalElementsAreEqual(i.originalStart,i.originalStart+i.originalLength))&&(!o||this.ModifiedElementsAreEqual(i.modifiedStart,i.modifiedStart+i.modifiedLength));){const e=this.ElementsAreStrictEqual(i.originalStart,i.modifiedStart);if(this.ElementsAreStrictEqual(i.originalStart+i.originalLength,i.modifiedStart+i.modifiedLength)&&!e)break;i.originalStart++,i.modifiedStart++}const a=[null];t<e.length-1&&this.ChangesOverlap(e[t],e[t+1],a)&&(e[t]=a[0],e.splice(t+1,1),t--)}for(let t=e.length-1;t>=0;t--){const i=e[t];let s=0,n=0;if(t>0){const i=e[t-1];s=i.originalStart+i.originalLength,n=i.modifiedStart+i.modifiedLength}const r=i.originalLength>0,o=i.modifiedLength>0;let a=0,c=this._boundaryScore(i.originalStart,i.originalLength,i.modifiedStart,i.modifiedLength);for(let e=1;;e++){const t=i.originalStart-e,l=i.modifiedStart-e;if(t<s||l<n)break;if(r&&!this.OriginalElementsAreEqual(t,t+i.originalLength))break;if(o&&!this.ModifiedElementsAreEqual(l,l+i.modifiedLength))break;const h=(t===s&&l===n?5:0)+this._boundaryScore(t,i.originalLength,l,i.modifiedLength);h>c&&(c=h,a=e)}i.originalStart-=a,i.modifiedStart-=a;const 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,i=e.length;t<i;t++){const i=e[t-1],s=e[t],n=s.originalStart-i.originalStart-i.originalLength,r=i.originalStart,o=s.originalStart+s.originalLength,a=o-r,c=i.modifiedStart,l=s.modifiedStart+s.modifiedLength,h=l-c;if(n<5&&a<20&&h<20){const e=this._findBetterContiguousSequence(r,a,c,h,n);if(e){const[t,r]=e;t===i.originalStart+i.originalLength&&r===i.modifiedStart+i.modifiedLength||(i.originalLength=t-i.originalStart,i.modifiedLength=r-i.modifiedStart,s.originalStart=t+n,s.modifiedStart=r+n,s.originalLength=o-s.originalStart,s.modifiedLength=l-s.modifiedStart)}}}return e}_findBetterContiguousSequence(e,t,i,s,n){if(t<n||s<n)return null;const r=e+t-n+1,o=i+s-n+1;let a=0,c=0,l=0;for(let h=e;h<r;h++)for(let e=i;e<o;e++){const t=this._contiguousSequenceScore(h,e,n);t>0&&t>a&&(a=t,c=h,l=e)}return a>0?[c,l]:null}_contiguousSequenceScore(e,t,i){let s=0;for(let n=0;n<i;n++){if(!this.ElementsAreEqual(e+n,t+n))return 0;s+=this._originalStringElements[e+n].length}return s}_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){const i=e+t;if(this._OriginalIsBoundary(i-1)||this._OriginalIsBoundary(i))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){const i=e+t;if(this._ModifiedIsBoundary(i-1)||this._ModifiedIsBoundary(i))return!0}return!1}_boundaryScore(e,t,i,s){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(i,s)?1:0)}ConcatenateChanges(e,t){const i=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],i)){const s=new Array(e.length+t.length-1);return c.Copy(e,0,s,0,e.length-1),s[e.length-1]=i[0],c.Copy(t,1,s,e.length,t.length-1),s}{const i=new Array(e.length+t.length);return c.Copy(e,0,i,0,e.length),c.Copy(t,0,i,e.length,t.length),i}}ChangesOverlap(e,t,i){if(a.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),a.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){const n=e.originalStart;let r=e.originalLength;const o=e.modifiedStart;let a=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(r=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(a=t.modifiedStart+t.modifiedLength-e.modifiedStart),i[0]=new s(n,r,o,a),!0}return i[0]=null,!1}ClipDiagonalBound(e,t,i,s){if(e>=0&&e<s)return e;const n=t%2===0;if(e<0){return n===(i%2===0)?0:1}return n===((s-i-1)%2===0)?s-1:s-2}}},84001:(e,t,i)=>{"use strict";i.d(t,{Mo:()=>l,ad:()=>n,gD:()=>c,iB:()=>o,kW:()=>r,pG:()=>s});const s=(0,i(63591).u1)("configurationService");function n(e,t){const i=Object.create(null);for(const s in e)r(i,s,e[s],t);return i}function r(e,t,i,s){const n=t.split("."),r=n.pop();let o=e;for(let c=0;c<n.length;c++){const e=n[c];let i=o[e];switch(typeof i){case"undefined":i=o[e]=Object.create(null);break;case"object":if(null===i)return void s(`Ignoring ${t} as ${n.slice(0,c+1).join(".")} is null`);break;default:return void s(`Ignoring ${t} as ${n.slice(0,c+1).join(".")} is ${JSON.stringify(i)}`)}o=i}if("object"===typeof o&&null!==o)try{o[r]=i}catch(a){s(`Ignoring ${t} as ${n.join(".")} is ${JSON.stringify(o)}`)}else s(`Ignoring ${t} as ${n.join(".")} is ${JSON.stringify(o)}`)}function o(e,t){a(e,t.split("."))}function a(e,t){const i=t.shift();if(0!==t.length){if(-1!==Object.keys(e).indexOf(i)){const s=e[i];"object"!==typeof s||Array.isArray(s)||(a(s,t),0===Object.keys(s).length&&delete e[i])}}else delete e[i]}function c(e,t,i){const s=function(e,t){let i=e;for(const s of t){if("object"!==typeof i||null===i)return;i=i[s]}return i}(e,t.split("."));return"undefined"===typeof s?i:s}function l(e){return e.replace(/[\[\]]/g,"")}},84040:(e,t,i)=>{"use strict";i.d(t,{d:()=>s});class s{constructor(e,t=[],i=!1){this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=i}}},84084:(e,t,i)=>{"use strict";i.d(t,{M:()=>o});var s=i(25890),n=i(94650),r=i(19131);function o(e,t){if(0===e.length)return t;if(0===t.length)return e;const i=new s.j3(c(e)),o=c(t);o.push({modified:!1,lengthBefore:void 0,lengthAfter:void 0});let l=i.dequeue();function h(e){if(void 0===e){const e=i.takeWhile((e=>!0))||[];return l&&e.unshift(l),e}const t=[];for(;l&&!(0,r.Vh)(e);){const[s,n]=l.splitAt(e);t.push(s),e=(0,r.MS)(s.lengthAfter,e),l=n??i.dequeue()}return(0,r.Vh)(e)||t.push(new a(!1,e,e)),t}const d=[];function u(e,t,i){if(d.length>0&&(0,r.wP)(d[d.length-1].endOffset,e)){const e=d[d.length-1];d[d.length-1]=new n.c(e.startOffset,t,(0,r.QB)(e.newLength,i))}else d.push({startOffset:e,endOffset:t,newLength:i})}let g=r.Vp;for(const s of o){const e=h(s.lengthBefore);if(s.modified){const t=(0,r.pW)(e,(e=>e.lengthBefore)),i=(0,r.QB)(g,t);u(g,i,s.lengthAfter),g=i}else for(const t of e){const e=g;g=(0,r.QB)(g,t.lengthBefore),t.modified&&u(e,g,t.lengthAfter)}}return d}class a{constructor(e,t,i){this.modified=e,this.lengthBefore=t,this.lengthAfter=i}splitAt(e){const t=(0,r.MS)(e,this.lengthAfter);return(0,r.wP)(t,r.Vp)?[this,void 0]:this.modified?[new a(this.modified,this.lengthBefore,e),new a(this.modified,r.Vp,t)]:[new a(this.modified,e,e),new a(this.modified,t,t)]}toString(){return`${this.modified?"M":"U"}:${(0,r.l4)(this.lengthBefore)} -> ${(0,r.l4)(this.lengthAfter)}`}}function c(e){const t=[];let i=r.Vp;for(const s of e){const e=(0,r.MS)(i,s.startOffset);(0,r.Vh)(e)||t.push(new a(!1,e,e));const n=(0,r.MS)(s.startOffset,s.endOffset);t.push(new a(!0,n,s.newLength)),i=s.endOffset}return t}},84226:(e,t,i)=>{"use strict";i.d(t,{zn:()=>O,x2:()=>D,j6:()=>U,RL:()=>P,zl:()=>V,n6:()=>z,z0:()=>H,_X:()=>B,e3:()=>W});var s=i(8597),n=i(11799),r=i(36921),o=i(10350),a=i(25689),c=i(47661),l=i(41234),h=i(10146),d=i(31450),u=i(80301),g=i(29163),p=i(92403),m=i(96032),f=i(5662),_=i(36677),v=i(87289);const C=new c.Q1(new c.bU(0,122,204)),E={showArrow:!0,showFrame:!0,className:"",frameColor:C,arrowColor:C,keepEditorSelection:!1};class b{constructor(e,t,i,s,n,r,o,a){this.id="",this.domNode=e,this.afterLineNumber=t,this.afterColumn=i,this.heightInLines=s,this.showInHiddenAreas=o,this.ordinal=a,this._onDomNodeTop=n,this._onComputedHeight=r}onDomNodeTop(e){this._onDomNodeTop(e)}onComputedHeight(e){this._onComputedHeight(e)}}class S{constructor(e,t){this._id=e,this._domNode=t}getId(){return this._id}getDomNode(){return this._domNode}getPosition(){return null}}class y{static{this._IdGenerator=new m.n(".arrow-decoration-")}constructor(e){this._editor=e,this._ruleName=y._IdGenerator.nextId(),this._decorations=this._editor.createDecorationsCollection(),this._color=null,this._height=-1}dispose(){this.hide(),s.U2(this._ruleName)}set color(e){this._color!==e&&(this._color=e,this._updateStyle())}set height(e){this._height!==e&&(this._height=e,this._updateStyle())}_updateStyle(){s.U2(this._ruleName),s.Wt(`.monaco-editor ${this._ruleName}`,`border-style: solid; border-color: transparent; border-bottom-color: ${this._color}; border-width: ${this._height}px; bottom: -${this._height}px !important; margin-left: -${this._height}px; `)}show(e){1===e.column&&(e={lineNumber:e.lineNumber,column:2}),this._decorations.set([{range:_.Q.fromPositions(e),options:{description:"zone-widget-arrow",className:this._ruleName,stickiness:1}}])}hide(){this._decorations.clear()}}class w{constructor(e,t={}){this._arrow=null,this._overlayWidget=null,this._resizeSash=null,this._viewZone=null,this._disposables=new f.Cm,this.container=null,this._isShowing=!1,this.editor=e,this._positionMarkerId=this.editor.createDecorationsCollection(),this.options=h.Go(t),h.co(this.options,E,!1),this.domNode=document.createElement("div"),this.options.isAccessible||(this.domNode.setAttribute("aria-hidden","true"),this.domNode.setAttribute("role","presentation")),this._disposables.add(this.editor.onDidLayoutChange((e=>{const t=this._getWidth(e);this.domNode.style.width=t+"px",this.domNode.style.left=this._getLeft(e)+"px",this._onWidth(t)})))}dispose(){this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._viewZone&&this.editor.changeViewZones((e=>{this._viewZone&&e.removeZone(this._viewZone.id),this._viewZone=null})),this._positionMarkerId.clear(),this._disposables.dispose()}create(){this.domNode.classList.add("zone-widget"),this.options.className&&this.domNode.classList.add(this.options.className),this.container=document.createElement("div"),this.container.classList.add("zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new y(this.editor),this._disposables.add(this._arrow)),this._fillContainer(this.container),this._initSash(),this._applyStyles()}style(e){e.frameColor&&(this.options.frameColor=e.frameColor),e.arrowColor&&(this.options.arrowColor=e.arrowColor),this._applyStyles()}_applyStyles(){if(this.container&&this.options.frameColor){const e=this.options.frameColor.toString();this.container.style.borderTopColor=e,this.container.style.borderBottomColor=e}if(this._arrow&&this.options.arrowColor){const e=this.options.arrowColor.toString();this._arrow.color=e}}_getWidth(e){return e.width-e.minimap.minimapWidth-e.verticalScrollbarWidth}_getLeft(e){return e.minimap.minimapWidth>0&&0===e.minimap.minimapLeft?e.minimap.minimapWidth:0}_onViewZoneTop(e){this.domNode.style.top=e+"px"}_onViewZoneHeight(e){if(this.domNode.style.height=`${e}px`,this.container){const t=e-this._decoratingElementsHeight();this.container.style.height=`${t}px`;const i=this.editor.getLayoutInfo();this._doLayout(t,this._getWidth(i))}this._resizeSash?.layout()}get position(){const e=this._positionMarkerId.getRange(0);if(e)return e.getStartPosition()}show(e,t){const i=_.Q.isIRange(e)?_.Q.lift(e):_.Q.fromPositions(e);this._isShowing=!0,this._showImpl(i,t),this._isShowing=!1,this._positionMarkerId.set([{range:i,options:v.kI.EMPTY}])}hide(){this._viewZone&&(this.editor.changeViewZones((e=>{this._viewZone&&e.removeZone(this._viewZone.id)})),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._arrow?.hide(),this._positionMarkerId.clear()}_decoratingElementsHeight(){const e=this.editor.getOption(67);let t=0;if(this.options.showArrow){t+=2*Math.round(e/3)}if(this.options.showFrame){t+=2*Math.round(e/9)}return t}_showImpl(e,t){const i=e.getStartPosition(),s=this.editor.getLayoutInfo(),n=this._getWidth(s);this.domNode.style.width=`${n}px`,this.domNode.style.left=this._getLeft(s)+"px";const r=document.createElement("div");r.style.overflow="hidden";const o=this.editor.getOption(67);if(!this.options.allowUnlimitedHeight){const e=Math.max(12,this.editor.getLayoutInfo().height/o*.8);t=Math.min(t,e)}let a=0,c=0;if(this._arrow&&this.options.showArrow&&(a=Math.round(o/3),this._arrow.height=a,this._arrow.show(i)),this.options.showFrame&&(c=Math.round(o/9)),this.editor.changeViewZones((e=>{this._viewZone&&e.removeZone(this._viewZone.id),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this.domNode.style.top="-1000px",this._viewZone=new b(r,i.lineNumber,i.column,t,(e=>this._onViewZoneTop(e)),(e=>this._onViewZoneHeight(e)),this.options.showInHiddenAreas,this.options.ordinal),this._viewZone.id=e.addZone(this._viewZone),this._overlayWidget=new S("vs.editor.contrib.zoneWidget"+this._viewZone.id,this.domNode),this.editor.addOverlayWidget(this._overlayWidget)})),this.container&&this.options.showFrame){const e=this.options.frameWidth?this.options.frameWidth:c;this.container.style.borderTopWidth=e+"px",this.container.style.borderBottomWidth=e+"px"}const l=t*o-this._decoratingElementsHeight();this.container&&(this.container.style.top=a+"px",this.container.style.height=l+"px",this.container.style.overflow="hidden"),this._doLayout(l,n),this.options.keepEditorSelection||this.editor.setSelection(e);const h=this.editor.getModel();if(h){const t=h.validateRange(new _.Q(e.startLineNumber,1,e.endLineNumber+1,1));this.revealRange(t,t.startLineNumber===h.getLineCount())}}revealRange(e,t){t?this.editor.revealLineNearTop(e.endLineNumber,0):this.editor.revealRange(e,0)}setCssClass(e,t){this.container&&(t&&this.container.classList.remove(t),this.container.classList.add(e))}_onWidth(e){}_doLayout(e,t){}_relayout(e){this._viewZone&&this._viewZone.heightInLines!==e&&this.editor.changeViewZones((t=>{this._viewZone&&(this._viewZone.heightInLines=e,t.layoutZone(this._viewZone.id))}))}_initSash(){if(this._resizeSash)return;let e;this._resizeSash=this._disposables.add(new p.m(this.domNode,this,{orientation:1})),this.options.isResizeable||(this._resizeSash.state=0),this._disposables.add(this._resizeSash.onDidStart((t=>{this._viewZone&&(e={startY:t.startY,heightInLines:this._viewZone.heightInLines})}))),this._disposables.add(this._resizeSash.onDidEnd((()=>{e=void 0}))),this._disposables.add(this._resizeSash.onDidChange((t=>{if(e){const i=(t.currentY-e.startY)/this.editor.getOption(67),s=i<0?Math.ceil(i):Math.floor(i),n=e.heightInLines+s;n>5&&n<35&&this._relayout(n)}})))}getHorizontalSashLeft(){return 0}getHorizontalSashTop(){return(null===this.domNode.style.height?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2}getHorizontalSashWidth(){const e=this.editor.getLayoutInfo();return e.width-e.minimap.minimapWidth}}var R=i(78209),L=i(57629),T=i(32848),x=i(14718),k=i(63591),A=i(66261),N=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},I=function(e,t){return function(i,s){t(i,s,e)}};const O=(0,k.u1)("IPeekViewService");var D;(0,x.v)(O,class{constructor(){this._widgets=new Map}addExclusiveWidget(e,t){const i=this._widgets.get(e);i&&(i.listener.dispose(),i.widget.dispose());this._widgets.set(e,{widget:t,listener:t.onDidClose((()=>{const i=this._widgets.get(e);i&&i.widget===t&&(i.listener.dispose(),this._widgets.delete(e))}))})}},1),function(e){e.inPeekEditor=new T.N1("inReferenceSearchEditor",!0,R.kg("inReferenceSearchEditor","Whether the current code editor is embedded inside peek")),e.notInPeekEditor=e.inPeekEditor.toNegated()}(D||(D={}));let M=class{static{this.ID="editor.contrib.referenceController"}constructor(e,t){e instanceof g.t&&D.inPeekEditor.bindTo(t)}dispose(){}};function P(e){const t=e.get(u.T).getFocusedCodeEditor();return t instanceof g.t?t.getParentEditor():t}M=N([I(1,T.fN)],M),(0,d.HW)(M.ID,M,0);const F={headerBackgroundColor:c.Q1.white,primaryHeadingColor:c.Q1.fromHex("#333333"),secondaryHeadingColor:c.Q1.fromHex("#6c6c6cb3")};let U=class extends w{constructor(e,t,i){super(e,t),this.instantiationService=i,this._onDidClose=new l.vl,this.onDidClose=this._onDidClose.event,h.co(this.options,F,!1)}dispose(){this.disposed||(this.disposed=!0,super.dispose(),this._onDidClose.fire(this))}style(e){const t=this.options;e.headerBackgroundColor&&(t.headerBackgroundColor=e.headerBackgroundColor),e.primaryHeadingColor&&(t.primaryHeadingColor=e.primaryHeadingColor),e.secondaryHeadingColor&&(t.secondaryHeadingColor=e.secondaryHeadingColor),super.style(e)}_applyStyles(){super._applyStyles();const e=this.options;this._headElement&&e.headerBackgroundColor&&(this._headElement.style.backgroundColor=e.headerBackgroundColor.toString()),this._primaryHeading&&e.primaryHeadingColor&&(this._primaryHeading.style.color=e.primaryHeadingColor.toString()),this._secondaryHeading&&e.secondaryHeadingColor&&(this._secondaryHeading.style.color=e.secondaryHeadingColor.toString()),this._bodyElement&&e.frameColor&&(this._bodyElement.style.borderColor=e.frameColor.toString())}_fillContainer(e){this.setCssClass("peekview-widget"),this._headElement=s.$(".head"),this._bodyElement=s.$(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),e.appendChild(this._headElement),e.appendChild(this._bodyElement)}_fillHead(e,t){this._titleElement=s.$(".peekview-title"),this.options.supportOnTitleClick&&(this._titleElement.classList.add("clickable"),s.b2(this._titleElement,"click",(e=>this._onTitleClick(e)))),s.BC(this._headElement,this._titleElement),this._fillTitleIcon(this._titleElement),this._primaryHeading=s.$("span.filename"),this._secondaryHeading=s.$("span.dirname"),this._metaHeading=s.$("span.meta"),s.BC(this._titleElement,this._primaryHeading,this._secondaryHeading,this._metaHeading);const i=s.$(".peekview-actions");s.BC(this._headElement,i);const c=this._getActionBarOptions();this._actionbarWidget=new n.E(i,c),this._disposables.add(this._actionbarWidget),t||this._actionbarWidget.push(new r.rc("peekview.close",R.kg("label.close","Close"),a.L.asClassName(o.W.close),!0,(()=>(this.dispose(),Promise.resolve()))),{label:!1,icon:!0})}_fillTitleIcon(e){}_getActionBarOptions(){return{actionViewItemProvider:L.rN.bind(void 0,this.instantiationService),orientation:0}}_onTitleClick(e){}setTitle(e,t){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerText=e,this._primaryHeading.setAttribute("title",e),t?this._secondaryHeading.innerText=t:s.w_(this._secondaryHeading))}setMetaTitle(e){this._metaHeading&&(e?(this._metaHeading.innerText=e,s.WU(this._metaHeading)):s.jD(this._metaHeading))}_doLayout(e,t){if(!this._isShowing&&e<0)return void this.dispose();const i=Math.ceil(1.2*this.editor.getOption(67)),s=Math.round(e-(i+2));this._doLayoutHead(i,t),this._doLayoutBody(s,t)}_doLayoutHead(e,t){this._headElement&&(this._headElement.style.height=`${e}px`,this._headElement.style.lineHeight=this._headElement.style.height)}_doLayoutBody(e,t){this._bodyElement&&(this._bodyElement.style.height=`${e}px`)}};U=N([I(2,k._Y)],U);const H=(0,A.x1A)("peekViewTitle.background",{dark:"#252526",light:"#F3F3F3",hcDark:c.Q1.black,hcLight:c.Q1.white},R.kg("peekViewTitleBackground","Background color of the peek view title area.")),B=(0,A.x1A)("peekViewTitleLabel.foreground",{dark:c.Q1.white,light:c.Q1.black,hcDark:c.Q1.white,hcLight:A.By2},R.kg("peekViewTitleForeground","Color of the peek view title.")),W=(0,A.x1A)("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161",hcDark:"#FFFFFF99",hcLight:"#292929"},R.kg("peekViewTitleInfoForeground","Color of the peek view title info.")),V=(0,A.x1A)("peekView.border",{dark:A.pOz,light:A.pOz,hcDark:A.b1q,hcLight:A.b1q},R.kg("peekViewBorder","Color of the peek view borders and arrow.")),z=(0,A.x1A)("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hcDark:c.Q1.black,hcLight:c.Q1.white},R.kg("peekViewResultsBackground","Background color of the peek view result list.")),G=((0,A.x1A)("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hcDark:c.Q1.white,hcLight:A.By2},R.kg("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list.")),(0,A.x1A)("peekViewResult.fileForeground",{dark:c.Q1.white,light:"#1E1E1E",hcDark:c.Q1.white,hcLight:A.By2},R.kg("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list.")),(0,A.x1A)("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hcDark:null,hcLight:null},R.kg("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list.")),(0,A.x1A)("peekViewResult.selectionForeground",{dark:c.Q1.white,light:"#6C6C6C",hcDark:c.Q1.white,hcLight:A.By2},R.kg("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list.")),(0,A.x1A)("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hcDark:c.Q1.black,hcLight:c.Q1.white},R.kg("peekViewEditorBackground","Background color of the peek view editor.")));(0,A.x1A)("peekViewEditorGutter.background",G,R.kg("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor.")),(0,A.x1A)("peekViewEditorStickyScroll.background",G,R.kg("peekViewEditorStickScrollBackground","Background color of sticky scroll in the peek view editor.")),(0,A.x1A)("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hcDark:null,hcLight:null},R.kg("peekViewResultsMatchHighlight","Match highlight color in the peek view result list.")),(0,A.x1A)("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hcDark:null,hcLight:null},R.kg("peekViewEditorMatchHighlight","Match highlight color in the peek view editor.")),(0,A.x1A)("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hcDark:A.buw,hcLight:A.buw},R.kg("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."))},84316:e=>{e.exports=function(){function e(e){const t=864e5*Number(e.$value),i=new Date(t),s=i.getFullYear();return s<=0&&i.setFullYear(s-1),isNaN(i.valueOf())?"Invalid date":i.toISOString().split("T")[0]}return e.isScalar=!0,e}},84325:(e,t,i)=>{"use strict";var s,n=i(8597),r=i(47661),o=i(5662),a=i(31450),c=i(62083),l=i(25982),h=i(20788),d=i(10154),u=i(24520),g=i(51861),p=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},m=function(e,t){return function(i,s){t(i,s,e)}};let f=class extends o.jG{static{s=this}static{this.ID="editor.contrib.inspectTokens"}static get(e){return e.getContribution(s.ID)}constructor(e,t,i){super(),this._editor=e,this._languageService=i,this._widget=null,this._register(this._editor.onDidChangeModel((e=>this.stop()))),this._register(this._editor.onDidChangeModelLanguage((e=>this.stop()))),this._register(c.dG.onDidChange((e=>this.stop()))),this._register(this._editor.onKeyUp((e=>9===e.keyCode&&this.stop())))}dispose(){this.stop(),super.dispose()}launch(){this._widget||this._editor.hasModel()&&(this._widget=new v(this._editor,this._languageService))}stop(){this._widget&&(this._widget.dispose(),this._widget=null)}};f=s=p([m(1,u.L),m(2,d.L)],f);class _ extends a.ks{constructor(){super({id:"editor.action.inspectTokens",label:g.YN.inspectTokensAction,alias:"Developer: Inspect Tokens",precondition:void 0})}run(e,t){const i=f.get(t);i?.launch()}}class v extends o.jG{static{this._ID="editor.contrib.inspectTokensWidget"}constructor(e,t){super(),this.allowEditorOverflow=!0,this._editor=e,this._languageService=t,this._model=this._editor.getModel(),this._domNode=document.createElement("div"),this._domNode.className="tokens-inspect-widget",this._tokenizationSupport=function(e,t){const i=c.dG.get(t);if(i)return i;const s=e.encodeLanguageId(t);return{getInitialState:()=>h.r3,tokenize:(e,i,s)=>(0,h.$H)(t,s),tokenizeEncoded:(e,t,i)=>(0,h.Lh)(s,i)}}(this._languageService.languageIdCodec,this._model.getLanguageId()),this._compute(this._editor.getPosition()),this._register(this._editor.onDidChangeCursorPosition((e=>this._compute(this._editor.getPosition())))),this._editor.addContentWidget(this)}dispose(){this._editor.removeContentWidget(this),super.dispose()}getId(){return v._ID}_compute(e){const t=this._getTokensAtLine(e.lineNumber);let i=0;for(let n=t.tokens1.length-1;n>=0;n--){const s=t.tokens1[n];if(e.column-1>=s.offset){i=n;break}}let s=0;for(let n=t.tokens2.length>>>1;n>=0;n--)if(e.column-1>=t.tokens2[n<<1]){s=n;break}const o=this._model.getLineContent(e.lineNumber);let a="";if(i<t.tokens1.length){const e=t.tokens1[i].offset,s=i+1<t.tokens1.length?t.tokens1[i+1].offset:o.length;a=o.substring(e,s)}(0,n.Ln)(this._domNode,(0,n.$)("h2.tm-token",void 0,function(e){let t="";for(let i=0,s=e.length;i<s;i++){const s=e.charCodeAt(i);switch(s){case 9:t+="\u2192";break;case 32:t+="\xb7";break;default:t+=String.fromCharCode(s)}}return t}(a),(0,n.$)("span.tm-token-length",void 0,`${a.length} ${1===a.length?"char":"chars"}`))),(0,n.BC)(this._domNode,(0,n.$)("hr.tokens-inspect-separator",{style:"clear:both"}));const c=1+(s<<1)<t.tokens2.length?this._decodeMetadata(t.tokens2[1+(s<<1)]):null;(0,n.BC)(this._domNode,(0,n.$)("table.tm-metadata-table",void 0,(0,n.$)("tbody",void 0,(0,n.$)("tr",void 0,(0,n.$)("td.tm-metadata-key",void 0,"language"),(0,n.$)("td.tm-metadata-value",void 0,`${c?c.languageId:"-?-"}`)),(0,n.$)("tr",void 0,(0,n.$)("td.tm-metadata-key",void 0,"token type"),(0,n.$)("td.tm-metadata-value",void 0,`${c?this._tokenTypeToString(c.tokenType):"-?-"}`)),(0,n.$)("tr",void 0,(0,n.$)("td.tm-metadata-key",void 0,"font style"),(0,n.$)("td.tm-metadata-value",void 0,`${c?this._fontStyleToString(c.fontStyle):"-?-"}`)),(0,n.$)("tr",void 0,(0,n.$)("td.tm-metadata-key",void 0,"foreground"),(0,n.$)("td.tm-metadata-value",void 0,`${c?r.Q1.Format.CSS.formatHex(c.foreground):"-?-"}`)),(0,n.$)("tr",void 0,(0,n.$)("td.tm-metadata-key",void 0,"background"),(0,n.$)("td.tm-metadata-value",void 0,`${c?r.Q1.Format.CSS.formatHex(c.background):"-?-"}`))))),(0,n.BC)(this._domNode,(0,n.$)("hr.tokens-inspect-separator")),i<t.tokens1.length&&(0,n.BC)(this._domNode,(0,n.$)("span.tm-token-type",void 0,t.tokens1[i].type)),this._editor.layoutContentWidget(this)}_decodeMetadata(e){const t=c.dG.getColorMap(),i=l.x.getLanguageId(e),s=l.x.getTokenType(e),n=l.x.getFontStyle(e),r=l.x.getForeground(e),o=l.x.getBackground(e);return{languageId:this._languageService.languageIdCodec.decodeLanguageId(i),tokenType:s,fontStyle:n,foreground:t[r],background:t[o]}}_tokenTypeToString(e){switch(e){case 0:return"Other";case 1:return"Comment";case 2:return"String";case 3:return"RegEx";default:return"??"}}_fontStyleToString(e){let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),8&e&&(t+="strikethrough "),0===t.length&&(t="---"),t}_getTokensAtLine(e){const t=this._getStateBeforeLine(e),i=this._tokenizationSupport.tokenize(this._model.getLineContent(e),!0,t),s=this._tokenizationSupport.tokenizeEncoded(this._model.getLineContent(e),!0,t);return{startState:t,tokens1:i.tokens,tokens2:s.tokens,endState:i.endState}}_getStateBeforeLine(e){let t=this._tokenizationSupport.getInitialState();for(let i=1;i<e;i++){t=this._tokenizationSupport.tokenize(this._model.getLineContent(i),!0,t).endState}return t}getDomNode(){return this._domNode}getPosition(){return{position:this._editor.getPosition(),preference:[2,1]}}}(0,a.HW)(f.ID,f,4),(0,a.Fl)(_)},84565:(e,t,i)=>{"use strict";var s,n;i.d(t,{Lx:()=>n,Yo:()=>s,jh:()=>r,y2:()=>o}),function(e){e[e.Expanded=0]="Expanded",e[e.Collapsed=1]="Collapsed",e[e.PreserveOrExpanded=2]="PreserveOrExpanded",e[e.PreserveOrCollapsed=3]="PreserveOrCollapsed"}(s||(s={})),function(e){e[e.Unknown=0]="Unknown",e[e.Twistie=1]="Twistie",e[e.Element=2]="Element",e[e.Filter=3]="Filter"}(n||(n={}));class r extends Error{constructor(e,t){super(`TreeError [${e}] ${t}`)}}class o{constructor(e){this.fn=e,this._map=new WeakMap}map(e){let t=this._map.get(e);return t||(t=this.fn(e),this._map.set(e,t)),t}}},84585:(e,t,i)=>{"use strict";i.d(t,{K:()=>n,r:()=>s});const s="editor.semanticHighlighting";function n(e,t,i){const n=i.getValue(s,{overrideIdentifier:e.getLanguageId(),resource:e.uri})?.enabled;return"boolean"===typeof n?n:t.getColorTheme().semanticHighlighting}},84739:(e,t,i)=>{"use strict";var s;i.d(t,{N6:()=>s,TH:()=>n,pv:()=>r}),function(e){e[e.Disabled=0]="Disabled",e[e.EnabledForActive=1]="EnabledForActive",e[e.Enabled=2]="Enabled"}(s||(s={}));class n{constructor(e,t,i,s,n,r){if(this.visibleColumn=e,this.column=t,this.className=i,this.horizontalLine=s,this.forWrappedLinesAfterColumn=n,this.forWrappedLinesBeforeOrAtColumn=r,-1!==e===(-1!==t))throw new Error}}class r{constructor(e,t){this.top=e,this.endColumn=t}}},84840:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>i.e(734).then(i.bind(i,734))})},85117:(e,t,i)=>{"use strict";var s,n=i(25890),r=i(90766),o=i(18447),a=i(47661),c=i(64383),l=i(41234),h=i(5662),d=i(91508),u=i(79400),g=i(31450),p=i(80301),m=i(83069),f=i(36677),_=i(60002),v=i(87289),C=i(17469),E=i(78209),b=i(32848),S=i(56942),y=i(66261),w=i(32500),R=i(78381),L=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},T=function(e,t){return function(i,s){t(i,s,e)}};const x=new b.N1("LinkedEditingInputVisible",!1);let k=class extends h.jG{static{s=this}static{this.ID="editor.contrib.linkedEditing"}static{this.DECORATION=v.kI.register({description:"linked-editing",stickiness:0,className:"linked-editing-decoration"})}static get(e){return e.getContribution(s.ID)}constructor(e,t,i,s,n){super(),this.languageConfigurationService=s,this._syncRangesToken=0,this._localToDispose=this._register(new h.Cm),this._editor=e,this._providers=i.linkedEditingRangeProvider,this._enabled=!1,this._visibleContextKey=x.bindTo(t),this._debounceInformation=n.for(this._providers,"Linked Editing",{max:200}),this._currentDecorations=this._editor.createDecorationsCollection(),this._languageWordPattern=null,this._currentWordPattern=null,this._ignoreChangeEvent=!1,this._localToDispose=this._register(new h.Cm),this._rangeUpdateTriggerPromise=null,this._rangeSyncTriggerPromise=null,this._currentRequestCts=null,this._currentRequestPosition=null,this._currentRequestModelVersion=null,this._register(this._editor.onDidChangeModel((()=>this.reinitialize(!0)))),this._register(this._editor.onDidChangeConfiguration((e=>{(e.hasChanged(70)||e.hasChanged(94))&&this.reinitialize(!1)}))),this._register(this._providers.onDidChange((()=>this.reinitialize(!1)))),this._register(this._editor.onDidChangeModelLanguage((()=>this.reinitialize(!0)))),this.reinitialize(!0)}reinitialize(e){const t=this._editor.getModel(),i=null!==t&&(this._editor.getOption(70)||this._editor.getOption(94))&&this._providers.has(t);if(i===this._enabled&&!e)return;if(this._enabled=i,this.clearRanges(),this._localToDispose.clear(),!i||null===t)return;this._localToDispose.add(l.Jh.runAndSubscribe(t.onDidChangeLanguageConfiguration,(()=>{this._languageWordPattern=this.languageConfigurationService.getLanguageConfiguration(t.getLanguageId()).getWordDefinition()})));const s=new r.ve(this._debounceInformation.get(t)),n=()=>{this._rangeUpdateTriggerPromise=s.trigger((()=>this.updateRanges()),this._debounceDuration??this._debounceInformation.get(t))},o=new r.ve(0),a=e=>{this._rangeSyncTriggerPromise=o.trigger((()=>this._syncRanges(e)))};this._localToDispose.add(this._editor.onDidChangeCursorPosition((()=>{n()}))),this._localToDispose.add(this._editor.onDidChangeModelContent((e=>{if(!this._ignoreChangeEvent&&this._currentDecorations.length>0){const t=this._currentDecorations.getRange(0);if(t&&e.changes.every((e=>t.intersectRanges(e.range))))return void a(this._syncRangesToken)}n()}))),this._localToDispose.add({dispose:()=>{s.dispose(),o.dispose()}}),this.updateRanges()}_syncRanges(e){if(!this._editor.hasModel()||e!==this._syncRangesToken||0===this._currentDecorations.length)return;const t=this._editor.getModel(),i=this._currentDecorations.getRange(0);if(!i||i.startLineNumber!==i.endLineNumber)return this.clearRanges();const s=t.getValueInRange(i);if(this._currentWordPattern){const e=s.match(this._currentWordPattern);if((e?e[0].length:0)!==s.length)return this.clearRanges()}const n=[];for(let r=1,o=this._currentDecorations.length;r<o;r++){const e=this._currentDecorations.getRange(r);if(e)if(e.startLineNumber!==e.endLineNumber)n.push({range:e,text:s});else{let i=t.getValueInRange(e),r=s,o=e.startColumn,a=e.endColumn;const c=d.Qp(i,r);o+=c,i=i.substr(c),r=r.substr(c);const l=d.Vi(i,r);a-=l,i=i.substr(0,i.length-l),r=r.substr(0,r.length-l),o===a&&0===r.length||n.push({range:new f.Q(e.startLineNumber,o,e.endLineNumber,a),text:r})}}if(0!==n.length)try{this._editor.popUndoStop(),this._ignoreChangeEvent=!0;const e=this._editor._getViewModel().getPrevEditOperationType();this._editor.executeEdits("linkedEditing",n),this._editor._getViewModel().setPrevEditOperationType(e)}finally{this._ignoreChangeEvent=!1}}dispose(){this.clearRanges(),super.dispose()}clearRanges(){this._visibleContextKey.set(!1),this._currentDecorations.clear(),this._currentRequestCts&&(this._currentRequestCts.cancel(),this._currentRequestCts=null,this._currentRequestPosition=null)}async updateRanges(e=!1){if(!this._editor.hasModel())return void this.clearRanges();const t=this._editor.getPosition();if(!this._enabled&&!e||this._editor.getSelections().length>1)return void this.clearRanges();const i=this._editor.getModel(),n=i.getVersionId();if(this._currentRequestPosition&&this._currentRequestModelVersion===n){if(t.equals(this._currentRequestPosition))return;if(this._currentDecorations.length>0){const e=this._currentDecorations.getRange(0);if(e&&e.containsPosition(t))return}}this.clearRanges(),this._currentRequestPosition=t,this._currentRequestModelVersion=n;const r=this._currentRequestCts=new o.Qi;try{const e=new R.W(!1),o=await I(this._providers,i,t,r.token);if(this._debounceInformation.update(i,e.elapsed()),r!==this._currentRequestCts)return;if(this._currentRequestCts=null,n!==i.getVersionId())return;let a=[];o?.ranges&&(a=o.ranges),this._currentWordPattern=o?.wordPattern||this._languageWordPattern;let c=!1;for(let i=0,s=a.length;i<s;i++)if(f.Q.containsPosition(a[i],t)){if(c=!0,0!==i){const e=a[i];a.splice(i,1),a.unshift(e)}break}if(!c)return void this.clearRanges();const l=a.map((e=>({range:e,options:s.DECORATION})));this._visibleContextKey.set(!0),this._currentDecorations.set(l),this._syncRangesToken++}catch(a){(0,c.MB)(a)||(0,c.dz)(a),this._currentRequestCts!==r&&this._currentRequestCts||this.clearRanges()}}};k=s=L([T(1,b.fN),T(2,S.ILanguageFeaturesService),T(3,C.JZ),T(4,w.ILanguageFeatureDebounceService)],k);class A extends g.ks{constructor(){super({id:"editor.action.linkedEditing",label:E.kg("linkedEditing.label","Start Linked Editing"),alias:"Start Linked Editing",precondition:b.M$.and(_.R.writable,_.R.hasRenameProvider),kbOpts:{kbExpr:_.R.editorTextFocus,primary:3132,weight:100}})}runCommand(e,t){const i=e.get(p.T),[s,n]=Array.isArray(t)&&t||[void 0,void 0];return u.r.isUri(s)&&m.y.isIPosition(n)?i.openCodeEditor({resource:s},i.getActiveCodeEditor()).then((e=>{e&&(e.setPosition(n),e.invokeWithinContext((t=>(this.reportTelemetry(t,e),this.run(t,e)))))}),c.dz):super.runCommand(e,t)}run(e,t){const i=k.get(t);return i?Promise.resolve(i.updateRanges(!0)):Promise.resolve()}}const N=g.DX.bindToContribution(k.get);function I(e,t,i,s){const o=e.ordered(t);return(0,r.$1)(o.map((e=>async()=>{try{return await e.provideLinkedEditingRanges(t,i,s)}catch(n){return void(0,c.M_)(n)}})),(e=>!!e&&n.EI(e?.ranges)))}(0,g.E_)(new N({id:"cancelLinkedEditingInput",precondition:x,handler:e=>e.clearRanges(),kbOpts:{kbExpr:_.R.editorTextFocus,weight:199,primary:9,secondary:[1033]}}));(0,y.x1A)("editor.linkedEditingBackground",{dark:a.Q1.fromHex("#f00").transparent(.3),light:a.Q1.fromHex("#f00").transparent(.3),hcDark:a.Q1.fromHex("#f00").transparent(.3),hcLight:a.Q1.white},E.kg("editorLinkedEditingBackground","Background color when the editor auto renames on type."));(0,g.ke)("_executeLinkedEditingProvider",((e,t,i)=>{const{linkedEditingRangeProvider:s}=e.get(S.ILanguageFeaturesService);return I(s,t,i,o.XO.None)})),(0,g.HW)(k.ID,k,1),(0,g.Fl)(A)},85152:(e,t,i)=>{"use strict";function s(e){return e<0?0:e>255?255:0|e}function n(e){return e<0?0:e>4294967295?4294967295:0|e}i.d(t,{W:()=>s,j:()=>n})},85283:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var s,n=i(59284);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},r.apply(null,arguments)}const o=function(e){return n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),s||(s=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.53 11.78a.75.75 0 01-1.06 0l-2.5-2.5a.75.75 0 011.06-1.06l1.22 1.22V1.75a.75.75 0 011.5 0v7.69l1.22-1.22a.75.75 0 111.06 1.06zM1.75 13.5a.75.75 0 000 1.5h12.5a.75.75 0 000-1.5z",clipRule:"evenodd"})))}},85411:(e,t,i)=>{"use strict";i.d(t,{l:()=>d,q:()=>c});var s=i(42731),n=i(17799),r=i(44320),o=i(79400),a=i(61292);function c(e){const t=new n.Vq;for(const i of e.items){const e=i.type;if("string"===i.kind){const s=new Promise((e=>i.getAsString(e)));t.append(e,(0,n.gf)(s))}else if("file"===i.kind){const s=i.getAsFile();s&&t.append(e,l(s))}}return t}function l(e){const t=e.path?o.r.parse(e.path):void 0;return(0,n.VX)(e.name,t,(async()=>new Uint8Array(await e.arrayBuffer())))}const h=Object.freeze([a.sV.EDITORS,a.sV.FILES,s.t.RESOURCES,s.t.INTERNAL_URI_LIST]);function d(e,t=!1){const i=c(e),a=i.get(s.t.INTERNAL_URI_LIST);if(a)i.replace(r.K.uriList,a);else if(t||!i.has(r.K.uriList)){const t=[];for(const i of e.items){const e=i.getAsFile();if(e){const i=e.path;try{i?t.push(o.r.file(i).toString()):t.push(o.r.parse(e.name,!0).toString())}catch{}}}t.length&&i.replace(r.K.uriList,(0,n.gf)(n.jt.create(t)))}for(const s of h)i.delete(s);return i}},85541:(e,t,i)=>{"use strict";i.d(t,{H:()=>o,v:()=>r});var s=i(80537),n=i(29319);function r(e,t,i){return("string"===typeof i.insertText?""===i.insertText:""===i.insertText.snippet)?{edits:i.additionalEdit?.edits??[]}:{edits:[...t.map((t=>new s.cw(e,{range:t,text:"string"===typeof i.insertText?n.fr.escape(i.insertText)+"$0":i.insertText.snippet,insertAsSnippet:!0}))),...i.additionalEdit?.edits??[]]}}function o(e){function t(e,t){return"mimeType"in e?e.mimeType===t.handledMimeType:!!t.kind&&e.kind.contains(t.kind)}const i=new Map;for(const r of e)for(const s of r.yieldTo??[])for(const n of e)if(n!==r&&t(s,n)){let e=i.get(r);e||(e=[],i.set(r,e)),e.push(n)}if(!i.size)return Array.from(e);const s=new Set,n=[];return function e(t){if(!t.length)return[];const r=t[0];if(n.includes(r))return console.warn("Yield to cycle detected",r),t;if(s.has(r))return e(t.slice(1));let o=[];const a=i.get(r);return a&&(n.push(r),o=e(a),n.pop()),s.add(r),[...o,r,...e(t.slice(1))]}(Array.from(e))}},85600:(e,t,i)=>{"use strict";i.d(t,{e2:()=>a,sN:()=>r,tW:()=>n,v7:()=>d});var s=i(91508);function n(e){return r(e,0)}function r(e,t){switch(typeof e){case"object":return null===e?o(349,t):Array.isArray(e)?(i=e,s=o(104579,s=t),i.reduce(((e,t)=>r(t,e)),s)):function(e,t){return t=o(181387,t),Object.keys(e).sort().reduce(((t,i)=>(t=a(i,t),r(e[i],t))),t)}(e,t);case"string":return a(e,t);case"boolean":return function(e,t){return o(e?433:863,t)}(e,t);case"number":return o(e,t);case"undefined":return o(937,t);default:return o(617,t)}var i,s}function o(e,t){return(t<<5)-t+e|0}function a(e,t){t=o(149417,t);for(let i=0,s=e.length;i<s;i++)t=o(e.charCodeAt(i),t);return t}function c(e,t,i=32){const s=i-t;return(e<<t|(~((1<<s)-1)&e)>>>s)>>>0}function l(e,t=0,i=e.byteLength,s=0){for(let n=0;n<i;n++)e[t+n]=s}function h(e,t=32){return e instanceof ArrayBuffer?Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join(""):function(e,t,i="0"){for(;e.length<t;)e=i+e;return e}((e>>>0).toString(16),t/4)}class d{static{this._bigBlock32=new DataView(new ArrayBuffer(320))}constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(0===t)return;const i=this._buff;let n,r,o=this._buffLen,a=this._leftoverHighSurrogate;for(0!==a?(n=a,r=-1,a=0):(n=e.charCodeAt(0),r=0);;){let c=n;if(s.pc(n)){if(!(r+1<t)){a=n;break}{const t=e.charCodeAt(r+1);s.LJ(t)?(r++,c=s.z_(n,t)):c=65533}}else s.LJ(n)&&(c=65533);if(o=this._push(i,o,c),r++,!(r<t))break;n=e.charCodeAt(r)}this._buffLen=o,this._leftoverHighSurrogate=a}_push(e,t,i){return i<128?e[t++]=i:i<2048?(e[t++]=192|(1984&i)>>>6,e[t++]=128|(63&i)>>>0):i<65536?(e[t++]=224|(61440&i)>>>12,e[t++]=128|(4032&i)>>>6,e[t++]=128|(63&i)>>>0):(e[t++]=240|(1835008&i)>>>18,e[t++]=128|(258048&i)>>>12,e[t++]=128|(4032&i)>>>6,e[t++]=128|(63&i)>>>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()),h(this._h0)+h(this._h1)+h(this._h2)+h(this._h3)+h(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,l(this._buff,this._buffLen),this._buffLen>56&&(this._step(),l(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=d._bigBlock32,t=this._buffDV;for(let c=0;c<64;c+=4)e.setUint32(c,t.getUint32(c,!1),!1);for(let d=64;d<320;d+=4)e.setUint32(d,c(e.getUint32(d-12,!1)^e.getUint32(d-32,!1)^e.getUint32(d-56,!1)^e.getUint32(d-64,!1),1),!1);let i,s,n,r=this._h0,o=this._h1,a=this._h2,l=this._h3,h=this._h4;for(let d=0;d<80;d++)d<20?(i=o&a|~o&l,s=1518500249):d<40?(i=o^a^l,s=1859775393):d<60?(i=o&a|o&l|a&l,s=2400959708):(i=o^a^l,s=3395469782),n=c(r,5)+i+h+s+e.getUint32(4*d,!1)&4294967295,h=l,l=a,a=c(o,30),o=r,r=n;this._h0=this._h0+r&4294967295,this._h1=this._h1+o&4294967295,this._h2=this._h2+a&4294967295,this._h3=this._h3+l&4294967295,this._h4=this._h4+h&4294967295}}},85646:(e,t,i)=>{"use strict";var s=i(31450),n=i(87119),r=i(78209),o=i(83844),a=i(1098),c=i(30076),l=i(41127),h=i(31308),d=i(63591),u=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},g=function(e,t){return function(i,s){t(i,s,e)}};class p{constructor(e){this.instantiationService=e}init(...e){}}let m=class extends p{constructor(e,t){super(t),this.init(e)}};var f;m=u([g(1,d._Y)],m),(0,s.HW)(a.X.ID,(f=()=>a.X,(0,c.e)()?function(e,t){return class extends t{constructor(){super(...arguments),this._autorun=void 0}init(...t){this._autorun=(0,h.yC)(((i,s)=>{const n=(0,l.b)(e(),i);s.add(this.instantiationService.createInstance(n,...t))}))}dispose(){this._autorun?.dispose()}}}(f,m):f()),0),(0,o.x1)("editor.placeholder.foreground",n.Ek,(0,r.kg)("placeholderForeground","Foreground color of the placeholder text in the editor."))},85858:e=>{!function(){"use strict";const t=function(e){if(void 0===e)return"undefined";if(null===e)return"null";if(e&&(1===e.nodeType||9===e.nodeType))return"element";const t=Object.prototype.toString.call(e),i=t.substring(8,t.length-1).toLowerCase();if("number"===i){if(isNaN(e))return"nan";if(!isFinite(e))return"infinity"}return i},i=["Null","Undefined","Object","Array","String","Number","Boolean","Function","RegExp","Element","NaN","Infinite","Symbol"],s=function(e){t["is"+e]=function(i){return t(i)===e.toLowerCase()}};for(let e=0;e<i.length;e++)s(i[e]);e.exports=t}()},85872:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"typescript",extensions:[".ts",".tsx",".cts",".mts"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>i.e(1606).then(i.bind(i,1606))})},86492:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>i.e(5050).then(i.bind(i,95050))})},86571:(e,t,i)=>{"use strict";i.d(t,{M:()=>a,S:()=>c});var s=i(64383),n=i(74444),r=i(36677),o=i(46041);class a{static fromRangeInclusive(e){return new a(e.startLineNumber,e.endLineNumber+1)}static joinMany(e){if(0===e.length)return[];let t=new c(e[0].slice());for(let i=1;i<e.length;i++)t=t.getUnion(new c(e[i].slice()));return t.ranges}static join(e){if(0===e.length)throw new s.D7("lineRanges cannot be empty");let t=e[0].startLineNumber,i=e[0].endLineNumberExclusive;for(let s=1;s<e.length;s++)t=Math.min(t,e[s].startLineNumber),i=Math.max(i,e[s].endLineNumberExclusive);return new a(t,i)}static ofLength(e,t){return new a(e,e+t)}static deserialize(e){return new a(e[0],e[1])}constructor(e,t){if(e>t)throw new s.D7(`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(e){return new a(this.startLineNumber+e,this.endLineNumberExclusive+e)}deltaLength(e){return new a(this.startLineNumber,this.endLineNumberExclusive+e)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(e){return new a(Math.min(this.startLineNumber,e.startLineNumber),Math.max(this.endLineNumberExclusive,e.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(e){const t=Math.max(this.startLineNumber,e.startLineNumber),i=Math.min(this.endLineNumberExclusive,e.endLineNumberExclusive);if(t<=i)return new a(t,i)}intersectsStrict(e){return this.startLineNumber<e.endLineNumberExclusive&&e.startLineNumber<this.endLineNumberExclusive}overlapOrTouch(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 r.Q(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new r.Q(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(e){const t=[];for(let i=this.startLineNumber;i<this.endLineNumberExclusive;i++)t.push(e(i));return t}forEach(e){for(let t=this.startLineNumber;t<this.endLineNumberExclusive;t++)e(t)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}includes(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}toOffsetRange(){return new n.L(this.startLineNumber-1,this.endLineNumberExclusive-1)}}class c{constructor(e=[]){this._normalizedRanges=e}get ranges(){return this._normalizedRanges}addRange(e){if(0===e.length)return;const t=(0,o.hw)(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),i=(0,o.iM)(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===i)this._normalizedRanges.splice(t,0,e);else if(t===i-1){const i=this._normalizedRanges[t];this._normalizedRanges[t]=i.join(e)}else{const s=this._normalizedRanges[t].join(this._normalizedRanges[i-1]).join(e);this._normalizedRanges.splice(t,i-t,s)}}contains(e){const t=(0,o.lx)(this._normalizedRanges,(t=>t.startLineNumber<=e));return!!t&&t.endLineNumberExclusive>e}intersects(e){const t=(0,o.lx)(this._normalizedRanges,(t=>t.startLineNumber<e.endLineNumberExclusive));return!!t&&t.endLineNumberExclusive>e.startLineNumber}getUnion(e){if(0===this._normalizedRanges.length)return e;if(0===e._normalizedRanges.length)return this;const t=[];let i=0,s=0,n=null;for(;i<this._normalizedRanges.length||s<e._normalizedRanges.length;){let r=null;if(i<this._normalizedRanges.length&&s<e._normalizedRanges.length){const t=this._normalizedRanges[i],n=e._normalizedRanges[s];t.startLineNumber<n.startLineNumber?(r=t,i++):(r=n,s++)}else i<this._normalizedRanges.length?(r=this._normalizedRanges[i],i++):(r=e._normalizedRanges[s],s++);null===n?n=r:n.endLineNumberExclusive>=r.startLineNumber?n=new a(n.startLineNumber,Math.max(n.endLineNumberExclusive,r.endLineNumberExclusive)):(t.push(n),n=r)}return null!==n&&t.push(n),new c(t)}subtractFrom(e){const t=(0,o.hw)(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),i=(0,o.iM)(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===i)return new c([e]);const s=[];let n=e.startLineNumber;for(let r=t;r<i;r++){const e=this._normalizedRanges[r];e.startLineNumber>n&&s.push(new a(n,e.startLineNumber)),n=e.endLineNumberExclusive}return n<e.endLineNumberExclusive&&s.push(new a(n,e.endLineNumberExclusive)),new c(s)}toString(){return this._normalizedRanges.map((e=>e.toString())).join(", ")}getIntersection(e){const t=[];let i=0,s=0;for(;i<this._normalizedRanges.length&&s<e._normalizedRanges.length;){const n=this._normalizedRanges[i],r=e._normalizedRanges[s],o=n.intersect(r);o&&!o.isEmpty&&t.push(o),n.endLineNumberExclusive<r.endLineNumberExclusive?i++:s++}return new c(t)}getWithDelta(e){return new c(this._normalizedRanges.map((t=>t.delta(e))))}}},86723:(e,t,i)=>{"use strict";var s;function n(e){return e===s.HIGH_CONTRAST_DARK||e===s.HIGH_CONTRAST_LIGHT}function r(e){return e===s.DARK||e===s.HIGH_CONTRAST_DARK}i.d(t,{Bb:()=>n,HD:()=>r,zM:()=>s}),function(e){e.DARK="dark",e.LIGHT="light",e.HIGH_CONTRAST_DARK="hcDark",e.HIGH_CONTRAST_LIGHT="hcLight"}(s||(s={}))},87119:(e,t,i)=>{"use strict";i.d(t,{A3:()=>x,AQ:()=>W,Am:()=>L,As:()=>A,BD:()=>J,Bo:()=>X,CM:()=>w,D0:()=>l,Ek:()=>P,H0:()=>R,I2:()=>Q,IW:()=>ee,If:()=>Z,JB:()=>I,L0:()=>p,Mf:()=>c,P1:()=>re,Pe:()=>se,Qt:()=>f,WD:()=>ne,WS:()=>ie,WY:()=>oe,Xr:()=>D,aZ:()=>B,bB:()=>te,hz:()=>b,je:()=>u,kG:()=>a,kM:()=>h,l5:()=>j,lQ:()=>z,n4:()=>$,ob:()=>E,ow:()=>S,s7:()=>q,sC:()=>d,sH:()=>K,sN:()=>V,ss:()=>G,tK:()=>T,tp:()=>k,vP:()=>y,vV:()=>C,vp:()=>U,w4:()=>m,we:()=>g,x9:()=>O,yI:()=>H,yw:()=>M,zp:()=>Y});var s=i(78209),n=i(47661),r=i(66261),o=i(47612);const a=(0,r.x1A)("editor.lineHighlightBackground",null,s.kg("lineHighlight","Background color for the highlight of line at the cursor position.")),c=(0,r.x1A)("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hcDark:"#f38518",hcLight:r.b1q},s.kg("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),l=((0,r.x1A)("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hcDark:null,hcLight:null},s.kg("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),(0,r.x1A)("editor.rangeHighlightBorder",{dark:null,light:null,hcDark:r.buw,hcLight:r.buw},s.kg("rangeHighlightBorder","Background color of the border around highlighted ranges.")),(0,r.x1A)("editor.symbolHighlightBackground",{dark:r.Ubg,light:r.Ubg,hcDark:null,hcLight:null},s.kg("symbolHighlight","Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."),!0),(0,r.x1A)("editor.symbolHighlightBorder",{dark:null,light:null,hcDark:r.buw,hcLight:r.buw},s.kg("symbolHighlightBorder","Background color of the border around highlighted symbols.")),(0,r.x1A)("editorCursor.foreground",{dark:"#AEAFAD",light:n.Q1.black,hcDark:n.Q1.white,hcLight:"#0F4A85"},s.kg("caret","Color of the editor cursor."))),h=(0,r.x1A)("editorCursor.background",null,s.kg("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),d=(0,r.x1A)("editorMultiCursor.primary.foreground",l,s.kg("editorMultiCursorPrimaryForeground","Color of the primary editor cursor when multiple cursors are present.")),u=(0,r.x1A)("editorMultiCursor.primary.background",h,s.kg("editorMultiCursorPrimaryBackground","The background color of the primary editor cursor when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),g=(0,r.x1A)("editorMultiCursor.secondary.foreground",l,s.kg("editorMultiCursorSecondaryForeground","Color of secondary editor cursors when multiple cursors are present.")),p=(0,r.x1A)("editorMultiCursor.secondary.background",h,s.kg("editorMultiCursorSecondaryBackground","The background color of secondary editor cursors when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),m=(0,r.x1A)("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hcDark:"#e3e4e229",hcLight:"#CCCCCC"},s.kg("editorWhitespaces","Color of whitespace characters in the editor.")),f=(0,r.x1A)("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hcDark:n.Q1.white,hcLight:"#292929"},s.kg("editorLineNumbers","Color of editor line numbers.")),_=(0,r.x1A)("editorIndentGuide.background",m,s.kg("editorIndentGuides","Color of the editor indentation guides."),!1,s.kg("deprecatedEditorIndentGuides","'editorIndentGuide.background' is deprecated. Use 'editorIndentGuide.background1' instead.")),v=(0,r.x1A)("editorIndentGuide.activeBackground",m,s.kg("editorActiveIndentGuide","Color of the active editor indentation guides."),!1,s.kg("deprecatedEditorActiveIndentGuide","'editorIndentGuide.activeBackground' is deprecated. Use 'editorIndentGuide.activeBackground1' instead.")),C=(0,r.x1A)("editorIndentGuide.background1",_,s.kg("editorIndentGuides1","Color of the editor indentation guides (1).")),E=(0,r.x1A)("editorIndentGuide.background2","#00000000",s.kg("editorIndentGuides2","Color of the editor indentation guides (2).")),b=(0,r.x1A)("editorIndentGuide.background3","#00000000",s.kg("editorIndentGuides3","Color of the editor indentation guides (3).")),S=(0,r.x1A)("editorIndentGuide.background4","#00000000",s.kg("editorIndentGuides4","Color of the editor indentation guides (4).")),y=(0,r.x1A)("editorIndentGuide.background5","#00000000",s.kg("editorIndentGuides5","Color of the editor indentation guides (5).")),w=(0,r.x1A)("editorIndentGuide.background6","#00000000",s.kg("editorIndentGuides6","Color of the editor indentation guides (6).")),R=(0,r.x1A)("editorIndentGuide.activeBackground1",v,s.kg("editorActiveIndentGuide1","Color of the active editor indentation guides (1).")),L=(0,r.x1A)("editorIndentGuide.activeBackground2","#00000000",s.kg("editorActiveIndentGuide2","Color of the active editor indentation guides (2).")),T=(0,r.x1A)("editorIndentGuide.activeBackground3","#00000000",s.kg("editorActiveIndentGuide3","Color of the active editor indentation guides (3).")),x=(0,r.x1A)("editorIndentGuide.activeBackground4","#00000000",s.kg("editorActiveIndentGuide4","Color of the active editor indentation guides (4).")),k=(0,r.x1A)("editorIndentGuide.activeBackground5","#00000000",s.kg("editorActiveIndentGuide5","Color of the active editor indentation guides (5).")),A=(0,r.x1A)("editorIndentGuide.activeBackground6","#00000000",s.kg("editorActiveIndentGuide6","Color of the active editor indentation guides (6).")),N=(0,r.x1A)("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hcDark:r.buw,hcLight:r.buw},s.kg("editorActiveLineNumber","Color of editor active line number"),!1,s.kg("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead.")),I=((0,r.x1A)("editorLineNumber.activeForeground",N,s.kg("editorActiveLineNumber","Color of editor active line number")),(0,r.x1A)("editorLineNumber.dimmedForeground",null,s.kg("editorDimmedLineNumber","Color of the final editor line when editor.renderFinalNewline is set to dimmed."))),O=((0,r.x1A)("editorRuler.foreground",{dark:"#5A5A5A",light:n.Q1.lightgrey,hcDark:n.Q1.white,hcLight:"#292929"},s.kg("editorRuler","Color of the editor rulers.")),(0,r.x1A)("editorCodeLens.foreground",{dark:"#999999",light:"#919191",hcDark:"#999999",hcLight:"#292929"},s.kg("editorCodeLensForeground","Foreground color of editor CodeLens")),(0,r.x1A)("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hcDark:"#0064001a",hcLight:"#0000"},s.kg("editorBracketMatchBackground","Background color behind matching brackets")),(0,r.x1A)("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hcDark:r.b1q,hcLight:r.b1q},s.kg("editorBracketMatchBorder","Color for matching brackets boxes")),(0,r.x1A)("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hcDark:"#7f7f7f4d",hcLight:"#666666"},s.kg("editorOverviewRulerBorder","Color of the overview ruler border."))),D=(0,r.x1A)("editorOverviewRuler.background",null,s.kg("editorOverviewRulerBackground","Background color of the editor overview ruler.")),M=((0,r.x1A)("editorGutter.background",r.YtV,s.kg("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),(0,r.x1A)("editorUnnecessaryCode.border",{dark:null,light:null,hcDark:n.Q1.fromHex("#fff").transparent(.8),hcLight:r.b1q},s.kg("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),(0,r.x1A)("editorUnnecessaryCode.opacity",{dark:n.Q1.fromHex("#000a"),light:n.Q1.fromHex("#0007"),hcDark:null,hcLight:null},s.kg("unnecessaryCodeOpacity","Opacity of unnecessary (unused) source code in the editor. For example, \"#000000c0\" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out."))),P=((0,r.x1A)("editorGhostText.border",{dark:null,light:null,hcDark:n.Q1.fromHex("#fff").transparent(.8),hcLight:n.Q1.fromHex("#292929").transparent(.8)},s.kg("editorGhostTextBorder","Border color of ghost text in the editor.")),(0,r.x1A)("editorGhostText.foreground",{dark:n.Q1.fromHex("#ffffff56"),light:n.Q1.fromHex("#0007"),hcDark:null,hcLight:null},s.kg("editorGhostTextForeground","Foreground color of the ghost text in the editor."))),F=((0,r.x1A)("editorGhostText.background",null,s.kg("editorGhostTextBackground","Background color of the ghost text in the editor.")),new n.Q1(new n.bU(0,122,204,.6))),U=(0,r.x1A)("editorOverviewRuler.rangeHighlightForeground",F,s.kg("overviewRulerRangeHighlight","Overview ruler marker color for range highlights. The color must not be opaque so as not to hide underlying decorations."),!0),H=(0,r.x1A)("editorOverviewRuler.errorForeground",{dark:new n.Q1(new n.bU(255,18,18,.7)),light:new n.Q1(new n.bU(255,18,18,.7)),hcDark:new n.Q1(new n.bU(255,50,50,1)),hcLight:"#B5200D"},s.kg("overviewRuleError","Overview ruler marker color for errors.")),B=(0,r.x1A)("editorOverviewRuler.warningForeground",{dark:r.Hng,light:r.Hng,hcDark:r.Stt,hcLight:r.Stt},s.kg("overviewRuleWarning","Overview ruler marker color for warnings.")),W=(0,r.x1A)("editorOverviewRuler.infoForeground",{dark:r.pOz,light:r.pOz,hcDark:r.IIb,hcLight:r.IIb},s.kg("overviewRuleInfo","Overview ruler marker color for infos.")),V=(0,r.x1A)("editorBracketHighlight.foreground1",{dark:"#FFD700",light:"#0431FAFF",hcDark:"#FFD700",hcLight:"#0431FAFF"},s.kg("editorBracketHighlightForeground1","Foreground color of brackets (1). Requires enabling bracket pair colorization.")),z=(0,r.x1A)("editorBracketHighlight.foreground2",{dark:"#DA70D6",light:"#319331FF",hcDark:"#DA70D6",hcLight:"#319331FF"},s.kg("editorBracketHighlightForeground2","Foreground color of brackets (2). Requires enabling bracket pair colorization.")),G=(0,r.x1A)("editorBracketHighlight.foreground3",{dark:"#179FFF",light:"#7B3814FF",hcDark:"#87CEFA",hcLight:"#7B3814FF"},s.kg("editorBracketHighlightForeground3","Foreground color of brackets (3). Requires enabling bracket pair colorization.")),j=(0,r.x1A)("editorBracketHighlight.foreground4","#00000000",s.kg("editorBracketHighlightForeground4","Foreground color of brackets (4). Requires enabling bracket pair colorization.")),K=(0,r.x1A)("editorBracketHighlight.foreground5","#00000000",s.kg("editorBracketHighlightForeground5","Foreground color of brackets (5). Requires enabling bracket pair colorization.")),Y=(0,r.x1A)("editorBracketHighlight.foreground6","#00000000",s.kg("editorBracketHighlightForeground6","Foreground color of brackets (6). Requires enabling bracket pair colorization.")),q=(0,r.x1A)("editorBracketHighlight.unexpectedBracket.foreground",{dark:new n.Q1(new n.bU(255,18,18,.8)),light:new n.Q1(new n.bU(255,18,18,.8)),hcDark:"new Color(new RGBA(255, 50, 50, 1))",hcLight:"#B5200D"},s.kg("editorBracketHighlightUnexpectedBracketForeground","Foreground color of unexpected brackets.")),$=(0,r.x1A)("editorBracketPairGuide.background1","#00000000",s.kg("editorBracketPairGuide.background1","Background color of inactive bracket pair guides (1). Requires enabling bracket pair guides.")),Q=(0,r.x1A)("editorBracketPairGuide.background2","#00000000",s.kg("editorBracketPairGuide.background2","Background color of inactive bracket pair guides (2). Requires enabling bracket pair guides.")),X=(0,r.x1A)("editorBracketPairGuide.background3","#00000000",s.kg("editorBracketPairGuide.background3","Background color of inactive bracket pair guides (3). Requires enabling bracket pair guides.")),Z=(0,r.x1A)("editorBracketPairGuide.background4","#00000000",s.kg("editorBracketPairGuide.background4","Background color of inactive bracket pair guides (4). Requires enabling bracket pair guides.")),J=(0,r.x1A)("editorBracketPairGuide.background5","#00000000",s.kg("editorBracketPairGuide.background5","Background color of inactive bracket pair guides (5). Requires enabling bracket pair guides.")),ee=(0,r.x1A)("editorBracketPairGuide.background6","#00000000",s.kg("editorBracketPairGuide.background6","Background color of inactive bracket pair guides (6). Requires enabling bracket pair guides.")),te=(0,r.x1A)("editorBracketPairGuide.activeBackground1","#00000000",s.kg("editorBracketPairGuide.activeBackground1","Background color of active bracket pair guides (1). Requires enabling bracket pair guides.")),ie=(0,r.x1A)("editorBracketPairGuide.activeBackground2","#00000000",s.kg("editorBracketPairGuide.activeBackground2","Background color of active bracket pair guides (2). Requires enabling bracket pair guides.")),se=(0,r.x1A)("editorBracketPairGuide.activeBackground3","#00000000",s.kg("editorBracketPairGuide.activeBackground3","Background color of active bracket pair guides (3). Requires enabling bracket pair guides.")),ne=(0,r.x1A)("editorBracketPairGuide.activeBackground4","#00000000",s.kg("editorBracketPairGuide.activeBackground4","Background color of active bracket pair guides (4). Requires enabling bracket pair guides.")),re=(0,r.x1A)("editorBracketPairGuide.activeBackground5","#00000000",s.kg("editorBracketPairGuide.activeBackground5","Background color of active bracket pair guides (5). Requires enabling bracket pair guides.")),oe=(0,r.x1A)("editorBracketPairGuide.activeBackground6","#00000000",s.kg("editorBracketPairGuide.activeBackground6","Background color of active bracket pair guides (6). Requires enabling bracket pair guides."));(0,r.x1A)("editorUnicodeHighlight.border",r.Hng,s.kg("editorUnicodeHighlight.border","Border color used to highlight unicode characters.")),(0,r.x1A)("editorUnicodeHighlight.background",r.whs,s.kg("editorUnicodeHighlight.background","Background color used to highlight unicode characters."));(0,o.zy)(((e,t)=>{const i=e.getColor(r.YtV),s=e.getColor(a),n=s&&!s.isTransparent()?s:i;n&&t.addRule(`.monaco-editor .inputarea.ime-input { background-color: ${n}; }`)}))},87152:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>i.e(2742).then(i.bind(i,32742))})},87213:(e,t,i)=>{"use strict";i.d(t,{Nt:()=>n,Rh:()=>a});var s=i(78209);const n=(0,i(63591).u1)("accessibilitySignalService");Symbol("AcknowledgeDocCommentsToken");class r{static register(e){return new r(e.fileName)}static{this.error=r.register({fileName:"error.mp3"})}static{this.warning=r.register({fileName:"warning.mp3"})}static{this.success=r.register({fileName:"success.mp3"})}static{this.foldedArea=r.register({fileName:"foldedAreas.mp3"})}static{this.break=r.register({fileName:"break.mp3"})}static{this.quickFixes=r.register({fileName:"quickFixes.mp3"})}static{this.taskCompleted=r.register({fileName:"taskCompleted.mp3"})}static{this.taskFailed=r.register({fileName:"taskFailed.mp3"})}static{this.terminalBell=r.register({fileName:"terminalBell.mp3"})}static{this.diffLineInserted=r.register({fileName:"diffLineInserted.mp3"})}static{this.diffLineDeleted=r.register({fileName:"diffLineDeleted.mp3"})}static{this.diffLineModified=r.register({fileName:"diffLineModified.mp3"})}static{this.chatRequestSent=r.register({fileName:"chatRequestSent.mp3"})}static{this.chatResponseReceived1=r.register({fileName:"chatResponseReceived1.mp3"})}static{this.chatResponseReceived2=r.register({fileName:"chatResponseReceived2.mp3"})}static{this.chatResponseReceived3=r.register({fileName:"chatResponseReceived3.mp3"})}static{this.chatResponseReceived4=r.register({fileName:"chatResponseReceived4.mp3"})}static{this.clear=r.register({fileName:"clear.mp3"})}static{this.save=r.register({fileName:"save.mp3"})}static{this.format=r.register({fileName:"format.mp3"})}static{this.voiceRecordingStarted=r.register({fileName:"voiceRecordingStarted.mp3"})}static{this.voiceRecordingStopped=r.register({fileName:"voiceRecordingStopped.mp3"})}static{this.progress=r.register({fileName:"progress.mp3"})}constructor(e){this.fileName=e}}class o{constructor(e){this.randomOneOf=e}}class a{constructor(e,t,i,s,n,r){this.sound=e,this.name=t,this.legacySoundSettingsKey=i,this.settingsKey=s,this.legacyAnnouncementSettingsKey=n,this.announcementMessage=r}static{this._signals=new Set}static register(e){const t=new o("randomOneOf"in e.sound?e.sound.randomOneOf:[e.sound]),i=new a(t,e.name,e.legacySoundSettingsKey,e.settingsKey,e.legacyAnnouncementSettingsKey,e.announcementMessage);return a._signals.add(i),i}static{this.errorAtPosition=a.register({name:(0,s.kg)("accessibilitySignals.positionHasError.name","Error at Position"),sound:r.error,announcementMessage:(0,s.kg)("accessibility.signals.positionHasError","Error"),settingsKey:"accessibility.signals.positionHasError",delaySettingsKey:"accessibility.signalOptions.delays.errorAtPosition"})}static{this.warningAtPosition=a.register({name:(0,s.kg)("accessibilitySignals.positionHasWarning.name","Warning at Position"),sound:r.warning,announcementMessage:(0,s.kg)("accessibility.signals.positionHasWarning","Warning"),settingsKey:"accessibility.signals.positionHasWarning",delaySettingsKey:"accessibility.signalOptions.delays.warningAtPosition"})}static{this.errorOnLine=a.register({name:(0,s.kg)("accessibilitySignals.lineHasError.name","Error on Line"),sound:r.error,legacySoundSettingsKey:"audioCues.lineHasError",legacyAnnouncementSettingsKey:"accessibility.alert.error",announcementMessage:(0,s.kg)("accessibility.signals.lineHasError","Error on Line"),settingsKey:"accessibility.signals.lineHasError"})}static{this.warningOnLine=a.register({name:(0,s.kg)("accessibilitySignals.lineHasWarning.name","Warning on Line"),sound:r.warning,legacySoundSettingsKey:"audioCues.lineHasWarning",legacyAnnouncementSettingsKey:"accessibility.alert.warning",announcementMessage:(0,s.kg)("accessibility.signals.lineHasWarning","Warning on Line"),settingsKey:"accessibility.signals.lineHasWarning"})}static{this.foldedArea=a.register({name:(0,s.kg)("accessibilitySignals.lineHasFoldedArea.name","Folded Area on Line"),sound:r.foldedArea,legacySoundSettingsKey:"audioCues.lineHasFoldedArea",legacyAnnouncementSettingsKey:"accessibility.alert.foldedArea",announcementMessage:(0,s.kg)("accessibility.signals.lineHasFoldedArea","Folded"),settingsKey:"accessibility.signals.lineHasFoldedArea"})}static{this.break=a.register({name:(0,s.kg)("accessibilitySignals.lineHasBreakpoint.name","Breakpoint on Line"),sound:r.break,legacySoundSettingsKey:"audioCues.lineHasBreakpoint",legacyAnnouncementSettingsKey:"accessibility.alert.breakpoint",announcementMessage:(0,s.kg)("accessibility.signals.lineHasBreakpoint","Breakpoint"),settingsKey:"accessibility.signals.lineHasBreakpoint"})}static{this.inlineSuggestion=a.register({name:(0,s.kg)("accessibilitySignals.lineHasInlineSuggestion.name","Inline Suggestion on Line"),sound:r.quickFixes,legacySoundSettingsKey:"audioCues.lineHasInlineSuggestion",settingsKey:"accessibility.signals.lineHasInlineSuggestion"})}static{this.terminalQuickFix=a.register({name:(0,s.kg)("accessibilitySignals.terminalQuickFix.name","Terminal Quick Fix"),sound:r.quickFixes,legacySoundSettingsKey:"audioCues.terminalQuickFix",legacyAnnouncementSettingsKey:"accessibility.alert.terminalQuickFix",announcementMessage:(0,s.kg)("accessibility.signals.terminalQuickFix","Quick Fix"),settingsKey:"accessibility.signals.terminalQuickFix"})}static{this.onDebugBreak=a.register({name:(0,s.kg)("accessibilitySignals.onDebugBreak.name","Debugger Stopped on Breakpoint"),sound:r.break,legacySoundSettingsKey:"audioCues.onDebugBreak",legacyAnnouncementSettingsKey:"accessibility.alert.onDebugBreak",announcementMessage:(0,s.kg)("accessibility.signals.onDebugBreak","Breakpoint"),settingsKey:"accessibility.signals.onDebugBreak"})}static{this.noInlayHints=a.register({name:(0,s.kg)("accessibilitySignals.noInlayHints","No Inlay Hints on Line"),sound:r.error,legacySoundSettingsKey:"audioCues.noInlayHints",legacyAnnouncementSettingsKey:"accessibility.alert.noInlayHints",announcementMessage:(0,s.kg)("accessibility.signals.noInlayHints","No Inlay Hints"),settingsKey:"accessibility.signals.noInlayHints"})}static{this.taskCompleted=a.register({name:(0,s.kg)("accessibilitySignals.taskCompleted","Task Completed"),sound:r.taskCompleted,legacySoundSettingsKey:"audioCues.taskCompleted",legacyAnnouncementSettingsKey:"accessibility.alert.taskCompleted",announcementMessage:(0,s.kg)("accessibility.signals.taskCompleted","Task Completed"),settingsKey:"accessibility.signals.taskCompleted"})}static{this.taskFailed=a.register({name:(0,s.kg)("accessibilitySignals.taskFailed","Task Failed"),sound:r.taskFailed,legacySoundSettingsKey:"audioCues.taskFailed",legacyAnnouncementSettingsKey:"accessibility.alert.taskFailed",announcementMessage:(0,s.kg)("accessibility.signals.taskFailed","Task Failed"),settingsKey:"accessibility.signals.taskFailed"})}static{this.terminalCommandFailed=a.register({name:(0,s.kg)("accessibilitySignals.terminalCommandFailed","Terminal Command Failed"),sound:r.error,legacySoundSettingsKey:"audioCues.terminalCommandFailed",legacyAnnouncementSettingsKey:"accessibility.alert.terminalCommandFailed",announcementMessage:(0,s.kg)("accessibility.signals.terminalCommandFailed","Command Failed"),settingsKey:"accessibility.signals.terminalCommandFailed"})}static{this.terminalCommandSucceeded=a.register({name:(0,s.kg)("accessibilitySignals.terminalCommandSucceeded","Terminal Command Succeeded"),sound:r.success,announcementMessage:(0,s.kg)("accessibility.signals.terminalCommandSucceeded","Command Succeeded"),settingsKey:"accessibility.signals.terminalCommandSucceeded"})}static{this.terminalBell=a.register({name:(0,s.kg)("accessibilitySignals.terminalBell","Terminal Bell"),sound:r.terminalBell,legacySoundSettingsKey:"audioCues.terminalBell",legacyAnnouncementSettingsKey:"accessibility.alert.terminalBell",announcementMessage:(0,s.kg)("accessibility.signals.terminalBell","Terminal Bell"),settingsKey:"accessibility.signals.terminalBell"})}static{this.notebookCellCompleted=a.register({name:(0,s.kg)("accessibilitySignals.notebookCellCompleted","Notebook Cell Completed"),sound:r.taskCompleted,legacySoundSettingsKey:"audioCues.notebookCellCompleted",legacyAnnouncementSettingsKey:"accessibility.alert.notebookCellCompleted",announcementMessage:(0,s.kg)("accessibility.signals.notebookCellCompleted","Notebook Cell Completed"),settingsKey:"accessibility.signals.notebookCellCompleted"})}static{this.notebookCellFailed=a.register({name:(0,s.kg)("accessibilitySignals.notebookCellFailed","Notebook Cell Failed"),sound:r.taskFailed,legacySoundSettingsKey:"audioCues.notebookCellFailed",legacyAnnouncementSettingsKey:"accessibility.alert.notebookCellFailed",announcementMessage:(0,s.kg)("accessibility.signals.notebookCellFailed","Notebook Cell Failed"),settingsKey:"accessibility.signals.notebookCellFailed"})}static{this.diffLineInserted=a.register({name:(0,s.kg)("accessibilitySignals.diffLineInserted","Diff Line Inserted"),sound:r.diffLineInserted,legacySoundSettingsKey:"audioCues.diffLineInserted",settingsKey:"accessibility.signals.diffLineInserted"})}static{this.diffLineDeleted=a.register({name:(0,s.kg)("accessibilitySignals.diffLineDeleted","Diff Line Deleted"),sound:r.diffLineDeleted,legacySoundSettingsKey:"audioCues.diffLineDeleted",settingsKey:"accessibility.signals.diffLineDeleted"})}static{this.diffLineModified=a.register({name:(0,s.kg)("accessibilitySignals.diffLineModified","Diff Line Modified"),sound:r.diffLineModified,legacySoundSettingsKey:"audioCues.diffLineModified",settingsKey:"accessibility.signals.diffLineModified"})}static{this.chatRequestSent=a.register({name:(0,s.kg)("accessibilitySignals.chatRequestSent","Chat Request Sent"),sound:r.chatRequestSent,legacySoundSettingsKey:"audioCues.chatRequestSent",legacyAnnouncementSettingsKey:"accessibility.alert.chatRequestSent",announcementMessage:(0,s.kg)("accessibility.signals.chatRequestSent","Chat Request Sent"),settingsKey:"accessibility.signals.chatRequestSent"})}static{this.chatResponseReceived=a.register({name:(0,s.kg)("accessibilitySignals.chatResponseReceived","Chat Response Received"),legacySoundSettingsKey:"audioCues.chatResponseReceived",sound:{randomOneOf:[r.chatResponseReceived1,r.chatResponseReceived2,r.chatResponseReceived3,r.chatResponseReceived4]},settingsKey:"accessibility.signals.chatResponseReceived"})}static{this.progress=a.register({name:(0,s.kg)("accessibilitySignals.progress","Progress"),sound:r.progress,legacySoundSettingsKey:"audioCues.chatResponsePending",legacyAnnouncementSettingsKey:"accessibility.alert.progress",announcementMessage:(0,s.kg)("accessibility.signals.progress","Progress"),settingsKey:"accessibility.signals.progress"})}static{this.clear=a.register({name:(0,s.kg)("accessibilitySignals.clear","Clear"),sound:r.clear,legacySoundSettingsKey:"audioCues.clear",legacyAnnouncementSettingsKey:"accessibility.alert.clear",announcementMessage:(0,s.kg)("accessibility.signals.clear","Clear"),settingsKey:"accessibility.signals.clear"})}static{this.save=a.register({name:(0,s.kg)("accessibilitySignals.save","Save"),sound:r.save,legacySoundSettingsKey:"audioCues.save",legacyAnnouncementSettingsKey:"accessibility.alert.save",announcementMessage:(0,s.kg)("accessibility.signals.save","Save"),settingsKey:"accessibility.signals.save"})}static{this.format=a.register({name:(0,s.kg)("accessibilitySignals.format","Format"),sound:r.format,legacySoundSettingsKey:"audioCues.format",legacyAnnouncementSettingsKey:"accessibility.alert.format",announcementMessage:(0,s.kg)("accessibility.signals.format","Format"),settingsKey:"accessibility.signals.format"})}static{this.voiceRecordingStarted=a.register({name:(0,s.kg)("accessibilitySignals.voiceRecordingStarted","Voice Recording Started"),sound:r.voiceRecordingStarted,legacySoundSettingsKey:"audioCues.voiceRecordingStarted",settingsKey:"accessibility.signals.voiceRecordingStarted"})}static{this.voiceRecordingStopped=a.register({name:(0,s.kg)("accessibilitySignals.voiceRecordingStopped","Voice Recording Stopped"),sound:r.voiceRecordingStopped,legacySoundSettingsKey:"audioCues.voiceRecordingStopped",settingsKey:"accessibility.signals.voiceRecordingStopped"})}}},87285:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var s,n=i(59284);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},r.apply(null,arguments)}const o=function(e){return n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),s||(s=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.87 8.515L1.641 8l.229-.515a6.708 6.708 0 0112.26 0l.228.515-.229.515a6.708 6.708 0 01-12.259 0M.5 6.876l-.26.585a1.33 1.33 0 000 1.079l.26.584a8.208 8.208 0 0015 0l.26-.584a1.33 1.33 0 000-1.08l-.26-.584a8.208 8.208 0 00-15 0M9.5 8a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0M11 8a3 3 0 11-6 0 3 3 0 016 0",clipRule:"evenodd"})))}},87289:(e,t,i)=>{"use strict";i.d(t,{Ho:()=>Qt,kI:()=>Xt,Bz:()=>Wt});var s=i(25890),n=i(47661),r=i(64383),o=i(41234),a=i(5662),c=i(91508),l=i(79400),h=i(64454),d=i(93895),u=i(83069),g=i(36677),p=i(75326),m=i(24329),f=i(10154),_=i(17469),v=i(16223),C=i(12296),E=i(56772);class b{constructor(e,t,i,s){this.range=e,this.nestingLevel=t,this.nestingLevelOfEqualBracketType=i,this.isInvalid=s}}class S{constructor(e,t,i,s,n,r){this.range=e,this.openingBracketRange=t,this.closingBracketRange=i,this.nestingLevel=s,this.nestingLevelOfEqualBracketType=n,this.bracketPairNode=r}get openingBracketInfo(){return this.bracketPairNode.openingBracket.bracketInfo}}class y extends S{constructor(e,t,i,s,n,r,o){super(e,t,i,s,n,r),this.minVisibleColumnIndentation=o}}var w=i(94650),R=i(93630),L=i(19131),T=i(19562),x=i(32956),k=i(51934),A=i(84084);class N extends a.jG{didLanguageChange(e){return this.brackets.didLanguageChange(e)}constructor(e,t){if(super(),this.textModel=e,this.getLanguageConfiguration=t,this.didChangeEmitter=new o.vl,this.denseKeyProvider=new x.Mg,this.brackets=new R.Z(this.denseKeyProvider,this.getLanguageConfiguration),this.onDidChange=this.didChangeEmitter.event,this.queuedTextEditsForInitialAstWithoutTokens=[],this.queuedTextEdits=[],e.tokenization.hasTokens)2===e.tokenization.backgroundTokenizationState?(this.initialAstWithoutTokens=void 0,this.astWithTokens=this.parseDocumentFromTextBuffer([],void 0,!1)):(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer([],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens);else{const e=this.brackets.getSingleLanguageBracketTokens(this.textModel.getLanguageId()),t=new k._(this.textModel.getValue(),e);this.initialAstWithoutTokens=(0,T.T)(t,[],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens}}handleDidChangeBackgroundTokenizationState(){if(2===this.textModel.tokenization.backgroundTokenizationState){const e=void 0===this.initialAstWithoutTokens;this.initialAstWithoutTokens=void 0,e||this.didChangeEmitter.fire()}}handleDidChangeTokens({ranges:e}){const t=e.map((e=>new w.c((0,L.qe)(e.fromLineNumber-1,0),(0,L.qe)(e.toLineNumber,0),(0,L.qe)(e.toLineNumber-e.fromLineNumber+1,0))));this.handleEdits(t,!0),this.initialAstWithoutTokens||this.didChangeEmitter.fire()}handleContentChanged(e){const t=w.c.fromModelContentChanges(e.changes);this.handleEdits(t,!1)}handleEdits(e,t){const i=(0,A.M)(this.queuedTextEdits,e);this.queuedTextEdits=i,this.initialAstWithoutTokens&&!t&&(this.queuedTextEditsForInitialAstWithoutTokens=(0,A.M)(this.queuedTextEditsForInitialAstWithoutTokens,e))}flushQueue(){this.queuedTextEdits.length>0&&(this.astWithTokens=this.parseDocumentFromTextBuffer(this.queuedTextEdits,this.astWithTokens,!1),this.queuedTextEdits=[]),this.queuedTextEditsForInitialAstWithoutTokens.length>0&&(this.initialAstWithoutTokens&&(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer(this.queuedTextEditsForInitialAstWithoutTokens,this.initialAstWithoutTokens,!1)),this.queuedTextEditsForInitialAstWithoutTokens=[])}parseDocumentFromTextBuffer(e,t,i){const s=t,n=new k.tk(this.textModel,this.brackets);return(0,T.T)(n,e,s,i)}getBracketsInRange(e,t){this.flushQueue();const i=(0,L.qe)(e.startLineNumber-1,e.startColumn-1),n=(0,L.qe)(e.endLineNumber-1,e.endColumn-1);return new s.c1((e=>{const s=this.initialAstWithoutTokens||this.astWithTokens;D(s,L.Vp,s.length,i,n,e,0,0,new Map,t)}))}getBracketPairsInRange(e,t){this.flushQueue();const i=(0,L.VL)(e.getStartPosition()),n=(0,L.VL)(e.getEndPosition());return new s.c1((e=>{const s=this.initialAstWithoutTokens||this.astWithTokens,r=new M(e,t,this.textModel);P(s,L.Vp,s.length,i,n,r,0,new Map)}))}getFirstBracketAfter(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return O(t,L.Vp,t.length,(0,L.VL)(e))}getFirstBracketBefore(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return I(t,L.Vp,t.length,(0,L.VL)(e))}}function I(e,t,i,s){if(4===e.kind||2===e.kind){const n=[];for(const s of e.children)i=(0,L.QB)(t,s.length),n.push({nodeOffsetStart:t,nodeOffsetEnd:i}),t=i;for(let t=n.length-1;t>=0;t--){const{nodeOffsetStart:i,nodeOffsetEnd:r}=n[t];if((0,L.zG)(i,s)){const n=I(e.children[t],i,r,s);if(n)return n}}return null}if(3===e.kind)return null;if(1===e.kind){const s=(0,L.Qx)(t,i);return{bracketInfo:e.bracketInfo,range:s}}return null}function O(e,t,i,s){if(4===e.kind||2===e.kind){for(const n of e.children){if(i=(0,L.QB)(t,n.length),(0,L.zG)(s,i)){const e=O(n,t,i,s);if(e)return e}t=i}return null}if(3===e.kind)return null;if(1===e.kind){const s=(0,L.Qx)(t,i);return{bracketInfo:e.bracketInfo,range:s}}return null}function D(e,t,i,s,n,r,o,a,c,l,h=!1){if(o>200)return!0;e:for(;;)switch(e.kind){case 4:{const a=e.childrenLength;for(let h=0;h<a;h++){const a=e.getChild(h);if(a){if(i=(0,L.QB)(t,a.length),(0,L.vr)(t,n)&&(0,L.o0)(i,s)){if((0,L.o0)(i,n)){e=a;continue e}if(!D(a,t,i,s,n,r,o,0,c,l))return!1}t=i}}return!0}case 2:{const h=!l||!e.closingBracket||e.closingBracket.bracketInfo.closesColorized(e.openingBracket.bracketInfo);let d=0;if(c){let t=c.get(e.openingBracket.text);void 0===t&&(t=0),d=t,h&&(t++,c.set(e.openingBracket.text,t))}const u=e.childrenLength;for(let g=0;g<u;g++){const u=e.getChild(g);if(u){if(i=(0,L.QB)(t,u.length),(0,L.vr)(t,n)&&(0,L.o0)(i,s)){if((0,L.o0)(i,n)&&1!==u.kind){e=u,h?(o++,a=d+1):a=d;continue e}if(h||1!==u.kind||!e.closingBracket){if(!D(u,t,i,s,n,r,h?o+1:o,h?d+1:d,c,l,!e.closingBracket))return!1}}t=i}}return c?.set(e.openingBracket.text,d),!0}case 3:{const e=(0,L.Qx)(t,i);return r(new b(e,o-1,0,!0))}case 1:{const e=(0,L.Qx)(t,i);return r(new b(e,o-1,a-1,h))}case 0:return!0}}class M{constructor(e,t,i){this.push=e,this.includeMinIndentation=t,this.textModel=i}}function P(e,t,i,s,n,r,o,a){if(o>200)return!0;let c=!0;if(2===e.kind){let l=0;if(a){let t=a.get(e.openingBracket.text);void 0===t&&(t=0),l=t,t++,a.set(e.openingBracket.text,t)}const h=(0,L.QB)(t,e.openingBracket.length);let d=-1;if(r.includeMinIndentation&&(d=e.computeMinIndentation(t,r.textModel)),c=r.push(new y((0,L.Qx)(t,i),(0,L.Qx)(t,h),e.closingBracket?(0,L.Qx)((0,L.QB)(h,e.child?.length||L.Vp),i):void 0,o,l,e,d)),t=h,c&&e.child){const l=e.child;if(i=(0,L.QB)(t,l.length),(0,L.vr)(t,n)&&(0,L.o0)(i,s)&&(c=P(l,t,i,s,n,r,o+1,a),!c))return!1}a?.set(e.openingBracket.text,l)}else{let i=t;for(const t of e.children){const e=i;if(i=(0,L.QB)(i,t.length),(0,L.vr)(e,n)&&(0,L.vr)(s,i)&&(c=P(t,e,i,s,n,r,o,a),!c))return!1}}return c}class F extends a.jG{get canBuildAST(){return this.textModel.getValueLength()<=5e6}constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t,this.bracketPairsTree=this._register(new a.HE),this.onDidChangeEmitter=new o.vl,this.onDidChange=this.onDidChangeEmitter.event,this.bracketsRequested=!1}handleLanguageConfigurationServiceChange(e){e.languageId&&!this.bracketPairsTree.value?.object.didLanguageChange(e.languageId)||(this.bracketPairsTree.clear(),this.updateBracketPairsTree())}handleDidChangeOptions(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeLanguage(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeContent(e){this.bracketPairsTree.value?.object.handleContentChanged(e)}handleDidChangeBackgroundTokenizationState(){this.bracketPairsTree.value?.object.handleDidChangeBackgroundTokenizationState()}handleDidChangeTokens(e){this.bracketPairsTree.value?.object.handleDidChangeTokens(e)}updateBracketPairsTree(){if(this.bracketsRequested&&this.canBuildAST){if(!this.bracketPairsTree.value){const i=new a.Cm;this.bracketPairsTree.value=(e=i.add(new N(this.textModel,(e=>this.languageConfigurationService.getLanguageConfiguration(e)))),t=i,{object:e,dispose:()=>t?.dispose()}),i.add(this.bracketPairsTree.value.object.onDidChange((e=>this.onDidChangeEmitter.fire(e)))),this.onDidChangeEmitter.fire()}}else this.bracketPairsTree.value&&(this.bracketPairsTree.clear(),this.onDidChangeEmitter.fire());var e,t}getBracketPairsInRange(e){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketPairsInRange(e,!1)||s.c1.empty}getBracketPairsInRangeWithMinIndentation(e){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketPairsInRange(e,!0)||s.c1.empty}getBracketsInRange(e,t=!1){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketsInRange(e,t)||s.c1.empty}findMatchingBracketUp(e,t,i){const s=this.textModel.validatePosition(t),n=this.textModel.getLanguageIdAtPosition(s.lineNumber,s.column);if(this.canBuildAST){const i=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew.getClosingBracketInfo(e);if(!i)return null;const s=this.getBracketPairsInRange(g.Q.fromPositions(t,t)).findLast((e=>i.closes(e.openingBracketInfo)));return s?s.openingBracketRange:null}{const t=e.toLowerCase(),r=this.languageConfigurationService.getLanguageConfiguration(n).brackets;if(!r)return null;const o=r.textIsBracket[t];return o?B(this._findMatchingBracketUp(o,s,U(i))):null}}matchBracket(e,t){if(this.canBuildAST){const t=this.getBracketPairsInRange(g.Q.fromPositions(e,e)).filter((t=>void 0!==t.closingBracketRange&&(t.openingBracketRange.containsPosition(e)||t.closingBracketRange.containsPosition(e)))).findLastMaxBy((0,s.VE)((t=>t.openingBracketRange.containsPosition(e)?t.openingBracketRange:t.closingBracketRange),g.Q.compareRangesUsingStarts));return t?[t.openingBracketRange,t.closingBracketRange]:null}{const i=U(t);return this._matchBracket(this.textModel.validatePosition(e),i)}}_establishBracketSearchOffsets(e,t,i,s){const n=t.getCount(),r=t.getLanguageId(s);let o=Math.max(0,e.column-1-i.maxBracketLength);for(let c=s-1;c>=0;c--){const e=t.getEndOffset(c);if(e<=o)break;if((0,C.Yo)(t.getStandardTokenType(c))||t.getLanguageId(c)!==r){o=e;break}}let a=Math.min(t.getLineContent().length,e.column-1+i.maxBracketLength);for(let c=s+1;c<n;c++){const e=t.getStartOffset(c);if(e>=a)break;if((0,C.Yo)(t.getStandardTokenType(c))||t.getLanguageId(c)!==r){a=e;break}}return{searchStartOffset:o,searchEndOffset:a}}_matchBracket(e,t){const i=e.lineNumber,s=this.textModel.tokenization.getLineTokens(i),n=this.textModel.getLineContent(i),r=s.findTokenIndexAtOffset(e.column-1);if(r<0)return null;const o=this.languageConfigurationService.getLanguageConfiguration(s.getLanguageId(r)).brackets;if(o&&!(0,C.Yo)(s.getStandardTokenType(r))){let{searchStartOffset:a,searchEndOffset:c}=this._establishBracketSearchOffsets(e,s,o,r),l=null;for(;;){const s=E.Fu.findNextBracketInRange(o.forwardRegex,i,n,a,c);if(!s)break;if(s.startColumn<=e.column&&e.column<=s.endColumn){const e=n.substring(s.startColumn-1,s.endColumn-1).toLowerCase(),i=this._matchFoundBracket(s,o.textIsBracket[e],o.textIsOpenBracket[e],t);if(i){if(i instanceof H)return null;l=i}}a=s.endColumn-1}if(l)return l}if(r>0&&s.getStartOffset(r)===e.column-1){const o=r-1,a=this.languageConfigurationService.getLanguageConfiguration(s.getLanguageId(o)).brackets;if(a&&!(0,C.Yo)(s.getStandardTokenType(o))){const{searchStartOffset:r,searchEndOffset:c}=this._establishBracketSearchOffsets(e,s,a,o),l=E.Fu.findPrevBracketInRange(a.reversedRegex,i,n,r,c);if(l&&l.startColumn<=e.column&&e.column<=l.endColumn){const e=n.substring(l.startColumn-1,l.endColumn-1).toLowerCase(),i=this._matchFoundBracket(l,a.textIsBracket[e],a.textIsOpenBracket[e],t);if(i)return i instanceof H?null:i}}}return null}_matchFoundBracket(e,t,i,s){if(!t)return null;const n=i?this._findMatchingBracketDown(t,e.getEndPosition(),s):this._findMatchingBracketUp(t,e.getStartPosition(),s);return n?n instanceof H?n:[e,n]:null}_findMatchingBracketUp(e,t,i){const s=e.languageId,n=e.reversedRegex;let r=-1,o=0;const a=(t,s,a,c)=>{for(;;){if(i&&++o%100===0&&!i())return H.INSTANCE;const l=E.Fu.findPrevBracketInRange(n,t,s,a,c);if(!l)break;const h=s.substring(l.startColumn-1,l.endColumn-1).toLowerCase();if(e.isOpen(h)?r++:e.isClose(h)&&r--,0===r)return l;c=l.startColumn-1}return null};for(let c=t.lineNumber;c>=1;c--){const e=this.textModel.tokenization.getLineTokens(c),i=e.getCount(),n=this.textModel.getLineContent(c);let r=i-1,o=n.length,l=n.length;c===t.lineNumber&&(r=e.findTokenIndexAtOffset(t.column-1),o=t.column-1,l=t.column-1);let h=!0;for(;r>=0;r--){const t=e.getLanguageId(r)===s&&!(0,C.Yo)(e.getStandardTokenType(r));if(t)h?o=e.getStartOffset(r):(o=e.getStartOffset(r),l=e.getEndOffset(r));else if(h&&o!==l){const e=a(c,n,o,l);if(e)return e}h=t}if(h&&o!==l){const e=a(c,n,o,l);if(e)return e}}return null}_findMatchingBracketDown(e,t,i){const s=e.languageId,n=e.forwardRegex;let r=1,o=0;const a=(t,s,a,c)=>{for(;;){if(i&&++o%100===0&&!i())return H.INSTANCE;const l=E.Fu.findNextBracketInRange(n,t,s,a,c);if(!l)break;const h=s.substring(l.startColumn-1,l.endColumn-1).toLowerCase();if(e.isOpen(h)?r++:e.isClose(h)&&r--,0===r)return l;a=l.endColumn-1}return null},c=this.textModel.getLineCount();for(let l=t.lineNumber;l<=c;l++){const e=this.textModel.tokenization.getLineTokens(l),i=e.getCount(),n=this.textModel.getLineContent(l);let r=0,o=0,c=0;l===t.lineNumber&&(r=e.findTokenIndexAtOffset(t.column-1),o=t.column-1,c=t.column-1);let h=!0;for(;r<i;r++){const t=e.getLanguageId(r)===s&&!(0,C.Yo)(e.getStandardTokenType(r));if(t)h||(o=e.getStartOffset(r)),c=e.getEndOffset(r);else if(h&&o!==c){const e=a(l,n,o,c);if(e)return e}h=t}if(h&&o!==c){const e=a(l,n,o,c);if(e)return e}}return null}findPrevBracket(e){const t=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getFirstBracketBefore(t)||null;let i=null,s=null,n=null;for(let r=t.lineNumber;r>=1;r--){const e=this.textModel.tokenization.getLineTokens(r),o=e.getCount(),a=this.textModel.getLineContent(r);let c=o-1,l=a.length,h=a.length;if(r===t.lineNumber){c=e.findTokenIndexAtOffset(t.column-1),l=t.column-1,h=t.column-1;const r=e.getLanguageId(c);i!==r&&(i=r,s=this.languageConfigurationService.getLanguageConfiguration(i).brackets,n=this.languageConfigurationService.getLanguageConfiguration(i).bracketsNew)}let d=!0;for(;c>=0;c--){const t=e.getLanguageId(c);if(i!==t){if(s&&n&&d&&l!==h){const e=E.Fu.findPrevBracketInRange(s.reversedRegex,r,a,l,h);if(e)return this._toFoundBracket(n,e);d=!1}i=t,s=this.languageConfigurationService.getLanguageConfiguration(i).brackets,n=this.languageConfigurationService.getLanguageConfiguration(i).bracketsNew}const o=!!s&&!(0,C.Yo)(e.getStandardTokenType(c));if(o)d?l=e.getStartOffset(c):(l=e.getStartOffset(c),h=e.getEndOffset(c));else if(n&&s&&d&&l!==h){const e=E.Fu.findPrevBracketInRange(s.reversedRegex,r,a,l,h);if(e)return this._toFoundBracket(n,e)}d=o}if(n&&s&&d&&l!==h){const e=E.Fu.findPrevBracketInRange(s.reversedRegex,r,a,l,h);if(e)return this._toFoundBracket(n,e)}}return null}findNextBracket(e){const t=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getFirstBracketAfter(t)||null;const i=this.textModel.getLineCount();let s=null,n=null,r=null;for(let o=t.lineNumber;o<=i;o++){const e=this.textModel.tokenization.getLineTokens(o),i=e.getCount(),a=this.textModel.getLineContent(o);let c=0,l=0,h=0;if(o===t.lineNumber){c=e.findTokenIndexAtOffset(t.column-1),l=t.column-1,h=t.column-1;const i=e.getLanguageId(c);s!==i&&(s=i,n=this.languageConfigurationService.getLanguageConfiguration(s).brackets,r=this.languageConfigurationService.getLanguageConfiguration(s).bracketsNew)}let d=!0;for(;c<i;c++){const t=e.getLanguageId(c);if(s!==t){if(r&&n&&d&&l!==h){const e=E.Fu.findNextBracketInRange(n.forwardRegex,o,a,l,h);if(e)return this._toFoundBracket(r,e);d=!1}s=t,n=this.languageConfigurationService.getLanguageConfiguration(s).brackets,r=this.languageConfigurationService.getLanguageConfiguration(s).bracketsNew}const i=!!n&&!(0,C.Yo)(e.getStandardTokenType(c));if(i)d||(l=e.getStartOffset(c)),h=e.getEndOffset(c);else if(r&&n&&d&&l!==h){const e=E.Fu.findNextBracketInRange(n.forwardRegex,o,a,l,h);if(e)return this._toFoundBracket(r,e)}d=i}if(r&&n&&d&&l!==h){const e=E.Fu.findNextBracketInRange(n.forwardRegex,o,a,l,h);if(e)return this._toFoundBracket(r,e)}}return null}findEnclosingBrackets(e,t){const i=this.textModel.validatePosition(e);if(this.canBuildAST){const e=g.Q.fromPositions(i),t=this.getBracketPairsInRange(g.Q.fromPositions(i,i)).findLast((t=>void 0!==t.closingBracketRange&&t.range.strictContainsRange(e)));return t?[t.openingBracketRange,t.closingBracketRange]:null}const s=U(t),n=this.textModel.getLineCount(),r=new Map;let o=[];const a=(e,t)=>{if(!r.has(e)){const i=[];for(let e=0,s=t?t.brackets.length:0;e<s;e++)i[e]=0;r.set(e,i)}o=r.get(e)};let c=0;const l=(e,t,i,n,r)=>{for(;;){if(s&&++c%100===0&&!s())return H.INSTANCE;const a=E.Fu.findNextBracketInRange(e.forwardRegex,t,i,n,r);if(!a)break;const l=i.substring(a.startColumn-1,a.endColumn-1).toLowerCase(),h=e.textIsBracket[l];if(h&&(h.isOpen(l)?o[h.index]++:h.isClose(l)&&o[h.index]--,-1===o[h.index]))return this._matchFoundBracket(a,h,!1,s);n=a.endColumn-1}return null};let h=null,d=null;for(let u=i.lineNumber;u<=n;u++){const e=this.textModel.tokenization.getLineTokens(u),t=e.getCount(),s=this.textModel.getLineContent(u);let n=0,r=0,o=0;if(u===i.lineNumber){n=e.findTokenIndexAtOffset(i.column-1),r=i.column-1,o=i.column-1;const t=e.getLanguageId(n);h!==t&&(h=t,d=this.languageConfigurationService.getLanguageConfiguration(h).brackets,a(h,d))}let c=!0;for(;n<t;n++){const t=e.getLanguageId(n);if(h!==t){if(d&&c&&r!==o){const e=l(d,u,s,r,o);if(e)return B(e);c=!1}h=t,d=this.languageConfigurationService.getLanguageConfiguration(h).brackets,a(h,d)}const i=!!d&&!(0,C.Yo)(e.getStandardTokenType(n));if(i)c||(r=e.getStartOffset(n)),o=e.getEndOffset(n);else if(d&&c&&r!==o){const e=l(d,u,s,r,o);if(e)return B(e)}c=i}if(d&&c&&r!==o){const e=l(d,u,s,r,o);if(e)return B(e)}}return null}_toFoundBracket(e,t){if(!t)return null;let i=this.textModel.getValueInRange(t);i=i.toLowerCase();const s=e.getBracketInfo(i);return s?{range:t,bracketInfo:s}:null}}function U(e){if("undefined"===typeof e)return()=>!0;{const t=Date.now();return()=>Date.now()-t<=e}}class H{static{this.INSTANCE=new H}constructor(){this._searchCanceledBrand=void 0}}function B(e){return e instanceof H?null:e}var W=i(87119),V=i(47612);class z extends a.jG{constructor(e){super(),this.textModel=e,this.colorProvider=new G,this.onDidChangeEmitter=new o.vl,this.onDidChange=this.onDidChangeEmitter.event,this.colorizationOptions=e.getOptions().bracketPairColorizationOptions,this._register(e.bracketPairs.onDidChange((e=>{this.onDidChangeEmitter.fire()})))}handleDidChangeOptions(e){this.colorizationOptions=this.textModel.getOptions().bracketPairColorizationOptions}getDecorationsInRange(e,t,i,s){if(s)return[];if(void 0===t)return[];if(!this.colorizationOptions.enabled)return[];return this.textModel.bracketPairs.getBracketsInRange(e,!0).map((e=>({id:`bracket${e.range.toString()}-${e.nestingLevel}`,options:{description:"BracketPairColorization",inlineClassName:this.colorProvider.getInlineClassName(e,this.colorizationOptions.independentColorPoolPerBracketType)},ownerId:0,range:e.range}))).toArray()}getAllDecorations(e,t){return void 0===e?[]:this.colorizationOptions.enabled?this.getDecorationsInRange(new g.Q(1,1,this.textModel.getLineCount(),1),e,t):[]}}class G{constructor(){this.unexpectedClosingBracketClassName="unexpected-closing-bracket"}getInlineClassName(e,t){return e.isInvalid?this.unexpectedClosingBracketClassName:this.getInlineClassNameOfLevel(t?e.nestingLevelOfEqualBracketType:e.nestingLevel)}getInlineClassNameOfLevel(e){return"bracket-highlighting-"+e%30}}(0,V.zy)(((e,t)=>{const i=[W.sN,W.lQ,W.ss,W.l5,W.sH,W.zp],s=new G;t.addRule(`.monaco-editor .${s.unexpectedClosingBracketClassName} { color: ${e.getColor(W.s7)}; }`);const n=i.map((t=>e.getColor(t))).filter((e=>!!e)).filter((e=>!e.isTransparent()));for(let r=0;r<30;r++){const e=n[r%n.length];t.addRule(`.monaco-editor .${s.getInlineClassNameOfLevel(r)} { color: ${e}; }`)}}));var j=i(26656),K=i(53450);class Y{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}}function q(e,t,i,s,n){let r;for(n.spacesDiff=0,n.looksLikeAlignment=!1,r=0;r<t&&r<s;r++){if(e.charCodeAt(r)!==i.charCodeAt(r))break}let o=0,a=0;for(let u=r;u<t;u++){32===e.charCodeAt(u)?o++:a++}let c=0,l=0;for(let u=r;u<s;u++){32===i.charCodeAt(u)?c++:l++}if(o>0&&a>0)return;if(c>0&&l>0)return;const h=Math.abs(a-l),d=Math.abs(o-c);if(0===h)return n.spacesDiff=d,void(d>0&&0<=c-1&&c-1<e.length&&c<i.length&&32!==i.charCodeAt(c)&&32===e.charCodeAt(c-1)&&44===e.charCodeAt(e.length-1)&&(n.looksLikeAlignment=!0));d%h!==0||(n.spacesDiff=d/h)}function $(e,t,i){const s=Math.min(e.getLineCount(),1e4);let n=0,r=0,o="",a=0;const c=[2,4,6,8,3,5,7],l=[0,0,0,0,0,0,0,0,0],h=new Y;for(let g=1;g<=s;g++){const s=e.getLineLength(g),c=e.getLineContent(g),d=s<=65536;let u=!1,p=0,m=0,f=0;for(let t=0,i=s;t<i;t++){const i=d?c.charCodeAt(t):e.getLineCharCode(g,t);if(9===i)f++;else{if(32!==i){u=!0,p=t;break}m++}}if(!u)continue;if(f>0?n++:m>1&&r++,q(o,a,c,p,h),h.looksLikeAlignment&&(!i||t!==h.spacesDiff))continue;const _=h.spacesDiff;_<=8&&l[_]++,o=c,a=p}let d=i;n!==r&&(d=n<r);let u=t;if(d){let e=d?0:.1*s;c.forEach((t=>{const i=l[t];i>e&&(e=i,u=t)})),4===u&&l[4]>0&&l[2]>0&&l[2]>=l[4]/2&&(u=2)}return{insertSpaces:d,tabSize:u}}function Q(e){return(1&e.metadata)>>>0}function X(e,t){e.metadata=254&e.metadata|t}function Z(e){return(2&e.metadata)>>>1===1}function J(e,t){e.metadata=253&e.metadata|(t?1:0)<<1}function ee(e){return(4&e.metadata)>>>2===1}function te(e,t){e.metadata=251&e.metadata|(t?1:0)<<2}function ie(e){return(64&e.metadata)>>>6===1}function se(e,t){e.metadata=191&e.metadata|(t?1:0)<<6}function ne(e,t){e.metadata=231&e.metadata|t<<3}function re(e,t){e.metadata=223&e.metadata|(t?1:0)<<5}class oe{constructor(e,t,i){this.metadata=0,this.parent=this,this.left=this,this.right=this,X(this,1),this.start=t,this.end=i,this.delta=0,this.maxEnd=i,this.id=e,this.ownerId=0,this.options=null,te(this,!1),se(this,!1),ne(this,1),re(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=i,this.range=null,J(this,!1)}reset(e,t,i,s){this.start=t,this.end=i,this.maxEnd=i,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=i,this.range=s}setOptions(e){this.options=e;const t=this.options.className;te(this,"squiggly-error"===t||"squiggly-warning"===t||"squiggly-info"===t),se(this,null!==this.options.glyphMarginClassName),ne(this,this.options.stickiness),re(this,this.options.collapseOnReplaceEdit)}setCachedOffsets(e,t,i){this.cachedVersionId!==i&&(this.range=null),this.cachedVersionId=i,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t}detach(){this.parent=null,this.left=null,this.right=null}}const ae=new oe(null,0,0);ae.parent=ae,ae.left=ae,ae.right=ae,X(ae,0);class ce{constructor(){this.root=ae,this.requestNormalizeDelta=!1}intervalSearch(e,t,i,s,n,r){return this.root===ae?[]:function(e,t,i,s,n,r,o){let a=e.root,c=0,l=0,h=0,d=0;const u=[];let g=0;for(;a!==ae;)if(Z(a))J(a.left,!1),J(a.right,!1),a===a.parent.right&&(c-=a.parent.delta),a=a.parent;else{if(!Z(a.left)){if(l=c+a.maxEnd,l<t){J(a,!0);continue}if(a.left!==ae){a=a.left;continue}}if(h=c+a.start,h>i)J(a,!0);else{if(d=c+a.end,d>=t){a.setCachedOffsets(h,d,r);let e=!0;s&&a.ownerId&&a.ownerId!==s&&(e=!1),n&&ee(a)&&(e=!1),o&&!ie(a)&&(e=!1),e&&(u[g++]=a)}J(a,!0),a.right===ae||Z(a.right)||(c+=a.delta,a=a.right)}}return J(e.root,!1),u}(this,e,t,i,s,n,r)}search(e,t,i,s){return this.root===ae?[]:function(e,t,i,s,n){let r=e.root,o=0,a=0,c=0;const l=[];let h=0;for(;r!==ae;){if(Z(r)){J(r.left,!1),J(r.right,!1),r===r.parent.right&&(o-=r.parent.delta),r=r.parent;continue}if(r.left!==ae&&!Z(r.left)){r=r.left;continue}a=o+r.start,c=o+r.end,r.setCachedOffsets(a,c,s);let e=!0;t&&r.ownerId&&r.ownerId!==t&&(e=!1),i&&ee(r)&&(e=!1),n&&!ie(r)&&(e=!1),e&&(l[h++]=r),J(r,!0),r.right===ae||Z(r.right)||(o+=r.delta,r=r.right)}return J(e.root,!1),l}(this,e,t,i,s)}collectNodesFromOwner(e){return function(e,t){let i=e.root;const s=[];let n=0;for(;i!==ae;)Z(i)?(J(i.left,!1),J(i.right,!1),i=i.parent):i.left===ae||Z(i.left)?(i.ownerId===t&&(s[n++]=i),J(i,!0),i.right===ae||Z(i.right)||(i=i.right)):i=i.left;return J(e.root,!1),s}(this,e)}collectNodesPostOrder(){return function(e){let t=e.root;const i=[];let s=0;for(;t!==ae;)Z(t)?(J(t.left,!1),J(t.right,!1),t=t.parent):t.left===ae||Z(t.left)?t.right===ae||Z(t.right)?(i[s++]=t,J(t,!0)):t=t.right:t=t.left;return J(e.root,!1),i}(this)}insert(e){de(this,e),this._normalizeDeltaIfNecessary()}delete(e){ue(this,e),this._normalizeDeltaIfNecessary()}resolveNode(e,t){const i=e;let s=0;for(;e!==this.root;)e===e.parent.right&&(s+=e.parent.delta),e=e.parent;const n=i.start+s,r=i.end+s;i.setCachedOffsets(n,r,t)}acceptReplace(e,t,i,s){const n=function(e,t,i){let s=e.root,n=0,r=0,o=0,a=0;const c=[];let l=0;for(;s!==ae;)if(Z(s))J(s.left,!1),J(s.right,!1),s===s.parent.right&&(n-=s.parent.delta),s=s.parent;else{if(!Z(s.left)){if(r=n+s.maxEnd,r<t){J(s,!0);continue}if(s.left!==ae){s=s.left;continue}}o=n+s.start,o>i?J(s,!0):(a=n+s.end,a>=t&&(s.setCachedOffsets(o,a,0),c[l++]=s),J(s,!0),s.right===ae||Z(s.right)||(n+=s.delta,s=s.right))}return J(e.root,!1),c}(this,e,e+t);for(let r=0,o=n.length;r<o;r++){ue(this,n[r])}this._normalizeDeltaIfNecessary(),function(e,t,i,s){let n=e.root,r=0,o=0,a=0;const c=s-(i-t);for(;n!==ae;)if(Z(n))J(n.left,!1),J(n.right,!1),n===n.parent.right&&(r-=n.parent.delta),_e(n),n=n.parent;else{if(!Z(n.left)){if(o=r+n.maxEnd,o<t){J(n,!0);continue}if(n.left!==ae){n=n.left;continue}}a=r+n.start,a>i?(n.start+=c,n.end+=c,n.delta+=c,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),J(n,!0)):(J(n,!0),n.right===ae||Z(n.right)||(r+=n.delta,n=n.right))}J(e.root,!1)}(this,e,e+t,i),this._normalizeDeltaIfNecessary();for(let r=0,o=n.length;r<o;r++){const o=n[r];o.start=o.cachedAbsoluteStart,o.end=o.cachedAbsoluteEnd,he(o,e,e+t,i,s),o.maxEnd=o.end,de(this,o)}this._normalizeDeltaIfNecessary()}_normalizeDeltaIfNecessary(){this.requestNormalizeDelta&&(this.requestNormalizeDelta=!1,function(e){let t=e.root,i=0;for(;t!==ae;)t.left===ae||Z(t.left)?t.right===ae||Z(t.right)?(t.start=i+t.start,t.end=i+t.end,t.delta=0,_e(t),J(t,!0),J(t.left,!1),J(t.right,!1),t===t.parent.right&&(i-=t.parent.delta),t=t.parent):(i+=t.delta,t=t.right):t=t.left;J(e.root,!1)}(this))}}function le(e,t,i,s){return e<i||!(e>i)&&(1!==s&&(2===s||t))}function he(e,t,i,s,n){const r=function(e){return(24&e.metadata)>>>3}(e),o=0===r||2===r,a=1===r||2===r,c=i-t,l=s,h=Math.min(c,l),d=e.start;let u=!1;const g=e.end;let p=!1;t<=d&&g<=i&&function(e){return(32&e.metadata)>>>5===1}(e)&&(e.start=t,u=!0,e.end=t,p=!0);{const e=n?1:c>0?2:0;!u&&le(d,o,t,e)&&(u=!0),!p&&le(g,a,t,e)&&(p=!0)}if(h>0&&!n){const e=c>l?2:0;!u&&le(d,o,t+h,e)&&(u=!0),!p&&le(g,a,t+h,e)&&(p=!0)}{const s=n?1:0;!u&&le(d,o,i,s)&&(e.start=t+l,u=!0),!p&&le(g,a,i,s)&&(e.end=t+l,p=!0)}const m=l-c;u||(e.start=Math.max(0,d+m)),p||(e.end=Math.max(0,g+m)),e.start>e.end&&(e.end=e.start)}function de(e,t){if(e.root===ae)return t.parent=ae,t.left=ae,t.right=ae,X(t,0),e.root=t,e.root;!function(e,t){let i=0,s=e.root;const n=t.start,r=t.end;for(;;){if(Ce(n,r,s.start+i,s.end+i)<0){if(s.left===ae){t.start-=i,t.end-=i,t.maxEnd-=i,s.left=t;break}s=s.left}else{if(s.right===ae){t.start-=i+s.delta,t.end-=i+s.delta,t.maxEnd-=i+s.delta,s.right=t;break}i+=s.delta,s=s.right}}t.parent=s,t.left=ae,t.right=ae,X(t,1)}(e,t),ve(t.parent);let i=t;for(;i!==e.root&&1===Q(i.parent);)if(i.parent===i.parent.parent.left){const t=i.parent.parent.right;1===Q(t)?(X(i.parent,0),X(t,0),X(i.parent.parent,1),i=i.parent.parent):(i===i.parent.right&&(i=i.parent,pe(e,i)),X(i.parent,0),X(i.parent.parent,1),me(e,i.parent.parent))}else{const t=i.parent.parent.left;1===Q(t)?(X(i.parent,0),X(t,0),X(i.parent.parent,1),i=i.parent.parent):(i===i.parent.left&&(i=i.parent,me(e,i)),X(i.parent,0),X(i.parent.parent,1),pe(e,i.parent.parent))}return X(e.root,0),t}function ue(e,t){let i,s;if(t.left===ae?(i=t.right,s=t,i.delta+=t.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0),i.start+=t.delta,i.end+=t.delta):t.right===ae?(i=t.left,s=t):(s=function(e){for(;e.left!==ae;)e=e.left;return e}(t.right),i=s.right,i.start+=s.delta,i.end+=s.delta,i.delta+=s.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0),s.start+=t.delta,s.end+=t.delta,s.delta=t.delta,(s.delta<-1073741824||s.delta>1073741824)&&(e.requestNormalizeDelta=!0)),s===e.root)return e.root=i,X(i,0),t.detach(),ge(),_e(i),void(e.root.parent=ae);const n=1===Q(s);if(s===s.parent.left?s.parent.left=i:s.parent.right=i,s===t?i.parent=s.parent:(s.parent===t?i.parent=s:i.parent=s.parent,s.left=t.left,s.right=t.right,s.parent=t.parent,X(s,Q(t)),t===e.root?e.root=s:t===t.parent.left?t.parent.left=s:t.parent.right=s,s.left!==ae&&(s.left.parent=s),s.right!==ae&&(s.right.parent=s)),t.detach(),n)return ve(i.parent),s!==t&&(ve(s),ve(s.parent)),void ge();let r;for(ve(i),ve(i.parent),s!==t&&(ve(s),ve(s.parent));i!==e.root&&0===Q(i);)i===i.parent.left?(r=i.parent.right,1===Q(r)&&(X(r,0),X(i.parent,1),pe(e,i.parent),r=i.parent.right),0===Q(r.left)&&0===Q(r.right)?(X(r,1),i=i.parent):(0===Q(r.right)&&(X(r.left,0),X(r,1),me(e,r),r=i.parent.right),X(r,Q(i.parent)),X(i.parent,0),X(r.right,0),pe(e,i.parent),i=e.root)):(r=i.parent.left,1===Q(r)&&(X(r,0),X(i.parent,1),me(e,i.parent),r=i.parent.left),0===Q(r.left)&&0===Q(r.right)?(X(r,1),i=i.parent):(0===Q(r.left)&&(X(r.right,0),X(r,1),pe(e,r),r=i.parent.left),X(r,Q(i.parent)),X(i.parent,0),X(r.left,0),me(e,i.parent),i=e.root));X(i,0),ge()}function ge(){ae.parent=ae,ae.delta=0,ae.start=0,ae.end=0}function pe(e,t){const i=t.right;i.delta+=t.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0),i.start+=t.delta,i.end+=t.delta,t.right=i.left,i.left!==ae&&(i.left.parent=t),i.parent=t.parent,t.parent===ae?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left=t,t.parent=i,_e(t),_e(i)}function me(e,t){const i=t.left;t.delta-=i.delta,(t.delta<-1073741824||t.delta>1073741824)&&(e.requestNormalizeDelta=!0),t.start-=i.delta,t.end-=i.delta,t.left=i.right,i.right!==ae&&(i.right.parent=t),i.parent=t.parent,t.parent===ae?e.root=i:t===t.parent.right?t.parent.right=i:t.parent.left=i,i.right=t,t.parent=i,_e(t),_e(i)}function fe(e){let t=e.end;if(e.left!==ae){const i=e.left.maxEnd;i>t&&(t=i)}if(e.right!==ae){const i=e.right.maxEnd+e.delta;i>t&&(t=i)}return t}function _e(e){e.maxEnd=fe(e)}function ve(e){for(;e!==ae;){const t=fe(e);if(e.maxEnd===t)return;e.maxEnd=t,e=e.parent}}function Ce(e,t,i,s){return e===i?t-s:e-i}class Ee{constructor(e,t){this.piece=e,this.color=t,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}next(){if(this.right!==be)return Se(this.right);let e=this;for(;e.parent!==be&&e.parent.left!==e;)e=e.parent;return e.parent===be?be:e.parent}prev(){if(this.left!==be)return ye(this.left);let e=this;for(;e.parent!==be&&e.parent.right!==e;)e=e.parent;return e.parent===be?be:e.parent}detach(){this.parent=null,this.left=null,this.right=null}}const be=new Ee(null,0);function Se(e){for(;e.left!==be;)e=e.left;return e}function ye(e){for(;e.right!==be;)e=e.right;return e}function we(e){return e===be?0:e.size_left+e.piece.length+we(e.right)}function Re(e){return e===be?0:e.lf_left+e.piece.lineFeedCnt+Re(e.right)}function Le(){be.parent=be}function Te(e,t){const i=t.right;i.size_left+=t.size_left+(t.piece?t.piece.length:0),i.lf_left+=t.lf_left+(t.piece?t.piece.lineFeedCnt:0),t.right=i.left,i.left!==be&&(i.left.parent=t),i.parent=t.parent,t.parent===be?e.root=i:t.parent.left===t?t.parent.left=i:t.parent.right=i,i.left=t,t.parent=i}function xe(e,t){const i=t.left;t.left=i.right,i.right!==be&&(i.right.parent=t),i.parent=t.parent,t.size_left-=i.size_left+(i.piece?i.piece.length:0),t.lf_left-=i.lf_left+(i.piece?i.piece.lineFeedCnt:0),t.parent===be?e.root=i:t===t.parent.right?t.parent.right=i:t.parent.left=i,i.right=t,t.parent=i}function ke(e,t){let i,s;if(t.left===be?(s=t,i=s.right):t.right===be?(s=t,i=s.left):(s=Se(t.right),i=s.right),s===e.root)return e.root=i,i.color=0,t.detach(),Le(),void(e.root.parent=be);const n=1===s.color;if(s===s.parent.left?s.parent.left=i:s.parent.right=i,s===t?(i.parent=s.parent,Ie(e,i)):(s.parent===t?i.parent=s:i.parent=s.parent,Ie(e,i),s.left=t.left,s.right=t.right,s.parent=t.parent,s.color=t.color,t===e.root?e.root=s:t===t.parent.left?t.parent.left=s:t.parent.right=s,s.left!==be&&(s.left.parent=s),s.right!==be&&(s.right.parent=s),s.size_left=t.size_left,s.lf_left=t.lf_left,Ie(e,s)),t.detach(),i.parent.left===i){const t=we(i),s=Re(i);if(t!==i.parent.size_left||s!==i.parent.lf_left){const n=t-i.parent.size_left,r=s-i.parent.lf_left;i.parent.size_left=t,i.parent.lf_left=s,Ne(e,i.parent,n,r)}}if(Ie(e,i.parent),n)return void Le();let r;for(;i!==e.root&&0===i.color;)i===i.parent.left?(r=i.parent.right,1===r.color&&(r.color=0,i.parent.color=1,Te(e,i.parent),r=i.parent.right),0===r.left.color&&0===r.right.color?(r.color=1,i=i.parent):(0===r.right.color&&(r.left.color=0,r.color=1,xe(e,r),r=i.parent.right),r.color=i.parent.color,i.parent.color=0,r.right.color=0,Te(e,i.parent),i=e.root)):(r=i.parent.left,1===r.color&&(r.color=0,i.parent.color=1,xe(e,i.parent),r=i.parent.left),0===r.left.color&&0===r.right.color?(r.color=1,i=i.parent):(0===r.left.color&&(r.right.color=0,r.color=1,Te(e,r),r=i.parent.left),r.color=i.parent.color,i.parent.color=0,r.left.color=0,xe(e,i.parent),i=e.root));i.color=0,Le()}function Ae(e,t){for(Ie(e,t);t!==e.root&&1===t.parent.color;)if(t.parent===t.parent.parent.left){const i=t.parent.parent.right;1===i.color?(t.parent.color=0,i.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.right&&Te(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,xe(e,t.parent.parent))}else{const i=t.parent.parent.left;1===i.color?(t.parent.color=0,i.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.left&&xe(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,Te(e,t.parent.parent))}e.root.color=0}function Ne(e,t,i,s){for(;t!==e.root&&t!==be;)t.parent.left===t&&(t.parent.size_left+=i,t.parent.lf_left+=s),t=t.parent}function Ie(e,t){let i=0,s=0;if(t!==e.root){for(;t!==e.root&&t===t.parent.right;)t=t.parent;if(t!==e.root)for(i=we((t=t.parent).left)-t.size_left,s=Re(t.left)-t.lf_left,t.size_left+=i,t.lf_left+=s;t!==e.root&&(0!==i||0!==s);)t.parent.left===t&&(t.parent.size_left+=i,t.parent.lf_left+=s),t=t.parent}}be.parent=be,be.left=be,be.right=be,be.color=0;var Oe=i(43264);const De=65535;function Me(e){let t;return t=e[e.length-1]<65536?new Uint16Array(e.length):new Uint32Array(e.length),t.set(e,0),t}class Pe{constructor(e,t,i,s,n){this.lineStarts=e,this.cr=t,this.lf=i,this.crlf=s,this.isBasicASCII=n}}function Fe(e,t=!0){const i=[0];let s=1;for(let n=0,r=e.length;n<r;n++){const t=e.charCodeAt(n);13===t?n+1<r&&10===e.charCodeAt(n+1)?(i[s++]=n+2,n++):i[s++]=n+1:10===t&&(i[s++]=n+1)}return t?Me(i):i}class Ue{constructor(e,t,i,s,n){this.bufferIndex=e,this.start=t,this.end=i,this.lineFeedCnt=s,this.length=n}}class He{constructor(e,t){this.buffer=e,this.lineStarts=t}}class Be{constructor(e,t){this._pieces=[],this._tree=e,this._BOM=t,this._index=0,e.root!==be&&e.iterate(e.root,(e=>(e!==be&&this._pieces.push(e.piece),!0)))}read(){return 0===this._pieces.length?0===this._index?(this._index++,this._BOM):null:this._index>this._pieces.length-1?null:0===this._index?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])}}class We{constructor(e){this._limit=e,this._cache=[]}get(e){for(let t=this._cache.length-1;t>=0;t--){const i=this._cache[t];if(i.nodeStartOffset<=e&&i.nodeStartOffset+i.node.piece.length>=e)return i}return null}get2(e){for(let t=this._cache.length-1;t>=0;t--){const i=this._cache[t];if(i.nodeStartLineNumber&&i.nodeStartLineNumber<e&&i.nodeStartLineNumber+i.node.piece.lineFeedCnt>=e)return i}return null}set(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)}validate(e){let t=!1;const i=this._cache;for(let s=0;s<i.length;s++){const n=i[s];(null===n.node.parent||n.nodeStartOffset>=e)&&(i[s]=null,t=!0)}if(t){const e=[];for(const t of i)null!==t&&e.push(t);this._cache=e}}}class Ve{constructor(e,t,i){this.create(e,t,i)}create(e,t,i){this._buffers=[new He("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=be,this._lineCnt=1,this._length=0,this._EOL=t,this._EOLLength=t.length,this._EOLNormalized=i;let s=null;for(let n=0,r=e.length;n<r;n++)if(e[n].buffer.length>0){e[n].lineStarts||(e[n].lineStarts=Fe(e[n].buffer));const t=new Ue(n+1,{line:0,column:0},{line:e[n].lineStarts.length-1,column:e[n].buffer.length-e[n].lineStarts[e[n].lineStarts.length-1]},e[n].lineStarts.length-1,e[n].buffer.length);this._buffers.push(e[n]),s=this.rbInsertRight(s,t)}this._searchCache=new We(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()}normalizeEOL(e){const t=De,i=t-Math.floor(21845),s=2*i;let n="",r=0;const o=[];if(this.iterate(this.root,(t=>{const a=this.getNodeContent(t),c=a.length;if(r<=i||r+c<s)return n+=a,r+=c,!0;const l=n.replace(/\r\n|\r|\n/g,e);return o.push(new He(l,Fe(l))),n=a,r=c,!0})),r>0){const t=n.replace(/\r\n|\r|\n/g,e);o.push(new He(t,Fe(t)))}this.create(o,e,!0)}getEOL(){return this._EOL}setEOL(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)}createSnapshot(e){return new Be(this,e)}getOffsetAt(e,t){let i=0,s=this.root;for(;s!==be;)if(s.left!==be&&s.lf_left+1>=e)s=s.left;else{if(s.lf_left+s.piece.lineFeedCnt+1>=e){i+=s.size_left;return i+(this.getAccumulatedValue(s,e-s.lf_left-2)+t-1)}e-=s.lf_left+s.piece.lineFeedCnt,i+=s.size_left+s.piece.length,s=s.right}return i}getPositionAt(e){e=Math.floor(e),e=Math.max(0,e);let t=this.root,i=0;const s=e;for(;t!==be;)if(0!==t.size_left&&t.size_left>=e)t=t.left;else{if(t.size_left+t.piece.length>=e){const n=this.getIndexOf(t,e-t.size_left);if(i+=t.lf_left+n.index,0===n.index){const e=s-this.getOffsetAt(i+1,1);return new u.y(i+1,e+1)}return new u.y(i+1,n.remainder+1)}if(e-=t.size_left+t.piece.length,i+=t.lf_left+t.piece.lineFeedCnt,t.right===be){const t=s-e-this.getOffsetAt(i+1,1);return new u.y(i+1,t+1)}t=t.right}return new u.y(1,1)}getValueInRange(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";const i=this.nodeAt2(e.startLineNumber,e.startColumn),s=this.nodeAt2(e.endLineNumber,e.endColumn),n=this.getValueInRange2(i,s);return t?t===this._EOL&&this._EOLNormalized&&t===this.getEOL()&&this._EOLNormalized?n:n.replace(/\r\n|\r|\n/g,t):n}getValueInRange2(e,t){if(e.node===t.node){const i=e.node,s=this._buffers[i.piece.bufferIndex].buffer,n=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return s.substring(n+e.remainder,n+t.remainder)}let i=e.node;const s=this._buffers[i.piece.bufferIndex].buffer,n=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);let r=s.substring(n+e.remainder,n+i.piece.length);for(i=i.next();i!==be;){const e=this._buffers[i.piece.bufferIndex].buffer,s=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);if(i===t.node){r+=e.substring(s,s+t.remainder);break}r+=e.substr(s,i.piece.length),i=i.next()}return r}getLinesContent(){const e=[];let t=0,i="",s=!1;return this.iterate(this.root,(n=>{if(n===be)return!0;const r=n.piece;let o=r.length;if(0===o)return!0;const a=this._buffers[r.bufferIndex].buffer,c=this._buffers[r.bufferIndex].lineStarts,l=r.start.line,h=r.end.line;let d=c[l]+r.start.column;if(s&&(10===a.charCodeAt(d)&&(d++,o--),e[t++]=i,i="",s=!1,0===o))return!0;if(l===h)return this._EOLNormalized||13!==a.charCodeAt(d+o-1)?i+=a.substr(d,o):(s=!0,i+=a.substr(d,o-1)),!0;i+=this._EOLNormalized?a.substring(d,Math.max(d,c[l+1]-this._EOLLength)):a.substring(d,c[l+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=i;for(let s=l+1;s<h;s++)i=this._EOLNormalized?a.substring(c[s],c[s+1]-this._EOLLength):a.substring(c[s],c[s+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=i;return this._EOLNormalized||13!==a.charCodeAt(c[h]+r.end.column-1)?i=a.substr(c[h],r.end.column):(s=!0,0===r.end.column?t--:i=a.substr(c[h],r.end.column-1)),!0})),s&&(e[t++]=i,i=""),e[t++]=i,e}getLength(){return this._length}getLineCount(){return this._lineCnt}getLineContent(e){return this._lastVisitedLine.lineNumber===e||(this._lastVisitedLine.lineNumber=e,e===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(e):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(e,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(e).replace(/(\r\n|\r|\n)$/,"")),this._lastVisitedLine.value}_getCharCode(e){if(e.remainder===e.node.piece.length){const t=e.node.next();if(!t)return 0;const i=this._buffers[t.piece.bufferIndex],s=this.offsetInBuffer(t.piece.bufferIndex,t.piece.start);return i.buffer.charCodeAt(s)}{const t=this._buffers[e.node.piece.bufferIndex],i=this.offsetInBuffer(e.node.piece.bufferIndex,e.node.piece.start)+e.remainder;return t.buffer.charCodeAt(i)}}getLineCharCode(e,t){const i=this.nodeAt2(e,t+1);return this._getCharCode(i)}getLineLength(e){if(e===this.getLineCount()){const t=this.getOffsetAt(e,1);return this.getLength()-t}return this.getOffsetAt(e+1,1)-this.getOffsetAt(e,1)-this._EOLLength}findMatchesInNode(e,t,i,s,n,r,o,a,c,l,h){const d=this._buffers[e.piece.bufferIndex],u=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start),p=this.offsetInBuffer(e.piece.bufferIndex,n),m=this.offsetInBuffer(e.piece.bufferIndex,r);let f;const _={line:0,column:0};let v,C;t._wordSeparators?(v=d.buffer.substring(p,m),C=e=>e+p,t.reset(0)):(v=d.buffer,C=e=>e,t.reset(p));do{if(f=t.next(v),f){if(C(f.index)>=m)return l;this.positionInBuffer(e,C(f.index)-u,_);const t=this.getLineFeedCnt(e.piece.bufferIndex,n,_),r=_.line===n.line?_.column-n.column+s:_.column+1,o=r+f[0].length;if(h[l++]=(0,Oe.dr)(new g.Q(i+t,r,i+t,o),f,a),C(f.index)+f[0].length>=m)return l;if(l>=c)return l}}while(f);return l}findMatchesLineByLine(e,t,i,s){const n=[];let r=0;const o=new Oe.W5(t.wordSeparators,t.regex);let a=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===a)return[];const c=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===c)return[];let l=this.positionInBuffer(a.node,a.remainder);const h=this.positionInBuffer(c.node,c.remainder);if(a.node===c.node)return this.findMatchesInNode(a.node,o,e.startLineNumber,e.startColumn,l,h,t,i,s,r,n),n;let d=e.startLineNumber,u=a.node;for(;u!==c.node;){const c=this.getLineFeedCnt(u.piece.bufferIndex,l,u.piece.end);if(c>=1){const a=this._buffers[u.piece.bufferIndex].lineStarts,h=this.offsetInBuffer(u.piece.bufferIndex,u.piece.start),g=a[l.line+c],p=d===e.startLineNumber?e.startColumn:1;if(r=this.findMatchesInNode(u,o,d,p,l,this.positionInBuffer(u,g-h),t,i,s,r,n),r>=s)return n;d+=c}const h=d===e.startLineNumber?e.startColumn-1:0;if(d===e.endLineNumber){const a=this.getLineContent(d).substring(h,e.endColumn-1);return r=this._findMatchesInLine(t,o,a,e.endLineNumber,h,r,n,i,s),n}if(r=this._findMatchesInLine(t,o,this.getLineContent(d).substr(h),d,h,r,n,i,s),r>=s)return n;d++,a=this.nodeAt2(d,1),u=a.node,l=this.positionInBuffer(a.node,a.remainder)}if(d===e.endLineNumber){const a=d===e.startLineNumber?e.startColumn-1:0,c=this.getLineContent(d).substring(a,e.endColumn-1);return r=this._findMatchesInLine(t,o,c,e.endLineNumber,a,r,n,i,s),n}const g=d===e.startLineNumber?e.startColumn:1;return r=this.findMatchesInNode(c.node,o,d,g,l,h,t,i,s,r,n),n}_findMatchesInLine(e,t,i,s,n,r,o,a,c){const l=e.wordSeparators;if(!a&&e.simpleSearch){const t=e.simpleSearch,a=t.length,h=i.length;let d=-a;for(;-1!==(d=i.indexOf(t,d+a));)if((!l||(0,Oe.wC)(l,i,h,d,a))&&(o[r++]=new v.Dg(new g.Q(s,d+1+n,s,d+1+a+n),null),r>=c))return r;return r}let h;t.reset(0);do{if(h=t.next(i),h&&(o[r++]=(0,Oe.dr)(new g.Q(s,h.index+1+n,s,h.index+1+h[0].length+n),h,a),r>=c))return r}while(h);return r}insert(e,t,i=!1){if(this._EOLNormalized=this._EOLNormalized&&i,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==be){const{node:i,remainder:s,nodeStartOffset:n}=this.nodeAt(e),r=i.piece,o=r.bufferIndex,a=this.positionInBuffer(i,s);if(0===i.piece.bufferIndex&&r.end.line===this._lastChangeBufferPos.line&&r.end.column===this._lastChangeBufferPos.column&&n+r.length===e&&t.length<De)return this.appendToNode(i,t),void this.computeBufferMetadata();if(n===e)this.insertContentToNodeLeft(t,i),this._searchCache.validate(e);else if(n+i.piece.length>e){const e=[];let n=new Ue(r.bufferIndex,a,r.end,this.getLineFeedCnt(r.bufferIndex,a,r.end),this.offsetInBuffer(o,r.end)-this.offsetInBuffer(o,a));if(this.shouldCheckCRLF()&&this.endWithCR(t)){if(10===this.nodeCharCodeAt(i,s)){const e={line:n.start.line+1,column:0};n=new Ue(n.bufferIndex,e,n.end,this.getLineFeedCnt(n.bufferIndex,e,n.end),n.length-1),t+="\n"}}if(this.shouldCheckCRLF()&&this.startWithLF(t)){if(13===this.nodeCharCodeAt(i,s-1)){const n=this.positionInBuffer(i,s-1);this.deleteNodeTail(i,n),t="\r"+t,0===i.piece.length&&e.push(i)}else this.deleteNodeTail(i,a)}else this.deleteNodeTail(i,a);const c=this.createNewPieces(t);n.length>0&&this.rbInsertRight(i,n);let l=i;for(let t=0;t<c.length;t++)l=this.rbInsertRight(l,c[t]);this.deleteNodes(e)}else this.insertContentToNodeRight(t,i)}else{const e=this.createNewPieces(t);let i=this.rbInsertLeft(null,e[0]);for(let t=1;t<e.length;t++)i=this.rbInsertRight(i,e[t])}this.computeBufferMetadata()}delete(e,t){if(this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",t<=0||this.root===be)return;const i=this.nodeAt(e),s=this.nodeAt(e+t),n=i.node,r=s.node;if(n===r){const r=this.positionInBuffer(n,i.remainder),o=this.positionInBuffer(n,s.remainder);if(i.nodeStartOffset===e){if(t===n.piece.length){const e=n.next();return ke(this,n),this.validateCRLFWithPrevNode(e),void this.computeBufferMetadata()}return this.deleteNodeHead(n,o),this._searchCache.validate(e),this.validateCRLFWithPrevNode(n),void this.computeBufferMetadata()}return i.nodeStartOffset+n.piece.length===e+t?(this.deleteNodeTail(n,r),this.validateCRLFWithNextNode(n),void this.computeBufferMetadata()):(this.shrinkNode(n,r,o),void this.computeBufferMetadata())}const o=[],a=this.positionInBuffer(n,i.remainder);this.deleteNodeTail(n,a),this._searchCache.validate(e),0===n.piece.length&&o.push(n);const c=this.positionInBuffer(r,s.remainder);this.deleteNodeHead(r,c),0===r.piece.length&&o.push(r);for(let h=n.next();h!==be&&h!==r;h=h.next())o.push(h);const l=0===n.piece.length?n.prev():n;this.deleteNodes(o),this.validateCRLFWithNextNode(l),this.computeBufferMetadata()}insertContentToNodeLeft(e,t){const i=[];if(this.shouldCheckCRLF()&&this.endWithCR(e)&&this.startWithLF(t)){const s=t.piece,n={line:s.start.line+1,column:0},r=new Ue(s.bufferIndex,n,s.end,this.getLineFeedCnt(s.bufferIndex,n,s.end),s.length-1);t.piece=r,e+="\n",Ne(this,t,-1,-1),0===t.piece.length&&i.push(t)}const s=this.createNewPieces(e);let n=this.rbInsertLeft(t,s[s.length-1]);for(let r=s.length-2;r>=0;r--)n=this.rbInsertLeft(n,s[r]);this.validateCRLFWithPrevNode(n),this.deleteNodes(i)}insertContentToNodeRight(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+="\n");const i=this.createNewPieces(e),s=this.rbInsertRight(t,i[0]);let n=s;for(let r=1;r<i.length;r++)n=this.rbInsertRight(n,i[r]);this.validateCRLFWithPrevNode(s)}positionInBuffer(e,t,i){const s=e.piece,n=e.piece.bufferIndex,r=this._buffers[n].lineStarts,o=r[s.start.line]+s.start.column+t;let a=s.start.line,c=s.end.line,l=0,h=0,d=0;for(;a<=c&&(l=a+(c-a)/2|0,d=r[l],l!==c);)if(h=r[l+1],o<d)c=l-1;else{if(!(o>=h))break;a=l+1}return i?(i.line=l,i.column=o-d,null):{line:l,column:o-d}}getLineFeedCnt(e,t,i){if(0===i.column)return i.line-t.line;const s=this._buffers[e].lineStarts;if(i.line===s.length-1)return i.line-t.line;const n=s[i.line+1],r=s[i.line]+i.column;if(n>r+1)return i.line-t.line;const o=r-1;return 13===this._buffers[e].buffer.charCodeAt(o)?i.line-t.line+1:i.line-t.line}offsetInBuffer(e,t){return this._buffers[e].lineStarts[t.line]+t.column}deleteNodes(e){for(let t=0;t<e.length;t++)ke(this,e[t])}createNewPieces(e){if(e.length>De){const t=[];for(;e.length>De;){const i=e.charCodeAt(65534);let s;13===i||i>=55296&&i<=56319?(s=e.substring(0,65534),e=e.substring(65534)):(s=e.substring(0,De),e=e.substring(De));const n=Fe(s);t.push(new Ue(this._buffers.length,{line:0,column:0},{line:n.length-1,column:s.length-n[n.length-1]},n.length-1,s.length)),this._buffers.push(new He(s,n))}const i=Fe(e);return t.push(new Ue(this._buffers.length,{line:0,column:0},{line:i.length-1,column:e.length-i[i.length-1]},i.length-1,e.length)),this._buffers.push(new He(e,i)),t}let t=this._buffers[0].buffer.length;const i=Fe(e,!1);let s=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===t&&0!==t&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},s=this._lastChangeBufferPos;for(let e=0;e<i.length;e++)i[e]+=t+1;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(i.slice(1)),this._buffers[0].buffer+="_"+e,t+=1}else{if(0!==t)for(let e=0;e<i.length;e++)i[e]+=t;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(i.slice(1)),this._buffers[0].buffer+=e}const n=this._buffers[0].buffer.length,r=this._buffers[0].lineStarts.length-1,o={line:r,column:n-this._buffers[0].lineStarts[r]},a=new Ue(0,s,o,this.getLineFeedCnt(0,s,o),n-t);return this._lastChangeBufferPos=o,[a]}getLineRawContent(e,t=0){let i=this.root,s="";const n=this._searchCache.get2(e);if(n){i=n.node;const r=this.getAccumulatedValue(i,e-n.nodeStartLineNumber-1),o=this._buffers[i.piece.bufferIndex].buffer,a=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);if(n.nodeStartLineNumber+i.piece.lineFeedCnt!==e){const s=this.getAccumulatedValue(i,e-n.nodeStartLineNumber);return o.substring(a+r,a+s-t)}s=o.substring(a+r,a+i.piece.length)}else{let n=0;const r=e;for(;i!==be;)if(i.left!==be&&i.lf_left>=e-1)i=i.left;else{if(i.lf_left+i.piece.lineFeedCnt>e-1){const s=this.getAccumulatedValue(i,e-i.lf_left-2),o=this.getAccumulatedValue(i,e-i.lf_left-1),a=this._buffers[i.piece.bufferIndex].buffer,c=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return n+=i.size_left,this._searchCache.set({node:i,nodeStartOffset:n,nodeStartLineNumber:r-(e-1-i.lf_left)}),a.substring(c+s,c+o-t)}if(i.lf_left+i.piece.lineFeedCnt===e-1){const t=this.getAccumulatedValue(i,e-i.lf_left-2),n=this._buffers[i.piece.bufferIndex].buffer,r=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);s=n.substring(r+t,r+i.piece.length);break}e-=i.lf_left+i.piece.lineFeedCnt,n+=i.size_left+i.piece.length,i=i.right}}for(i=i.next();i!==be;){const e=this._buffers[i.piece.bufferIndex].buffer;if(i.piece.lineFeedCnt>0){const n=this.getAccumulatedValue(i,0),r=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return s+=e.substring(r,r+n-t),s}{const t=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);s+=e.substr(t,i.piece.length)}i=i.next()}return s}computeBufferMetadata(){let e=this.root,t=1,i=0;for(;e!==be;)t+=e.lf_left+e.piece.lineFeedCnt,i+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=i,this._searchCache.validate(this._length)}getIndexOf(e,t){const i=e.piece,s=this.positionInBuffer(e,t),n=s.line-i.start.line;if(this.offsetInBuffer(i.bufferIndex,i.end)-this.offsetInBuffer(i.bufferIndex,i.start)===t){const t=this.getLineFeedCnt(e.piece.bufferIndex,i.start,s);if(t!==n)return{index:t,remainder:0}}return{index:n,remainder:s.column}}getAccumulatedValue(e,t){if(t<0)return 0;const i=e.piece,s=this._buffers[i.bufferIndex].lineStarts,n=i.start.line+t+1;return n>i.end.line?s[i.end.line]+i.end.column-s[i.start.line]-i.start.column:s[n]-s[i.start.line]-i.start.column}deleteNodeTail(e,t){const i=e.piece,s=i.lineFeedCnt,n=this.offsetInBuffer(i.bufferIndex,i.end),r=t,o=this.offsetInBuffer(i.bufferIndex,r),a=this.getLineFeedCnt(i.bufferIndex,i.start,r),c=a-s,l=o-n,h=i.length+l;e.piece=new Ue(i.bufferIndex,i.start,r,a,h),Ne(this,e,l,c)}deleteNodeHead(e,t){const i=e.piece,s=i.lineFeedCnt,n=this.offsetInBuffer(i.bufferIndex,i.start),r=t,o=this.getLineFeedCnt(i.bufferIndex,r,i.end),a=o-s,c=n-this.offsetInBuffer(i.bufferIndex,r),l=i.length+c;e.piece=new Ue(i.bufferIndex,r,i.end,o,l),Ne(this,e,c,a)}shrinkNode(e,t,i){const s=e.piece,n=s.start,r=s.end,o=s.length,a=s.lineFeedCnt,c=t,l=this.getLineFeedCnt(s.bufferIndex,s.start,c),h=this.offsetInBuffer(s.bufferIndex,t)-this.offsetInBuffer(s.bufferIndex,n);e.piece=new Ue(s.bufferIndex,s.start,c,l,h),Ne(this,e,h-o,l-a);const d=new Ue(s.bufferIndex,i,r,this.getLineFeedCnt(s.bufferIndex,i,r),this.offsetInBuffer(s.bufferIndex,r)-this.offsetInBuffer(s.bufferIndex,i)),u=this.rbInsertRight(e,d);this.validateCRLFWithPrevNode(u)}appendToNode(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+="\n");const i=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),s=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;const n=Fe(t,!1);for(let d=0;d<n.length;d++)n[d]+=s;if(i){const e=this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-2];this._buffers[0].lineStarts.pop(),this._lastChangeBufferPos={line:this._lastChangeBufferPos.line-1,column:s-e}}this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(n.slice(1));const r=this._buffers[0].lineStarts.length-1,o={line:r,column:this._buffers[0].buffer.length-this._buffers[0].lineStarts[r]},a=e.piece.length+t.length,c=e.piece.lineFeedCnt,l=this.getLineFeedCnt(0,e.piece.start,o),h=l-c;e.piece=new Ue(e.piece.bufferIndex,e.piece.start,o,l,a),this._lastChangeBufferPos=o,Ne(this,e,t.length,h)}nodeAt(e){let t=this.root;const i=this._searchCache.get(e);if(i)return{node:i.node,nodeStartOffset:i.nodeStartOffset,remainder:e-i.nodeStartOffset};let s=0;for(;t!==be;)if(t.size_left>e)t=t.left;else{if(t.size_left+t.piece.length>=e){s+=t.size_left;const i={node:t,remainder:e-t.size_left,nodeStartOffset:s};return this._searchCache.set(i),i}e-=t.size_left+t.piece.length,s+=t.size_left+t.piece.length,t=t.right}return null}nodeAt2(e,t){let i=this.root,s=0;for(;i!==be;)if(i.left!==be&&i.lf_left>=e-1)i=i.left;else{if(i.lf_left+i.piece.lineFeedCnt>e-1){const n=this.getAccumulatedValue(i,e-i.lf_left-2),r=this.getAccumulatedValue(i,e-i.lf_left-1);return s+=i.size_left,{node:i,remainder:Math.min(n+t-1,r),nodeStartOffset:s}}if(i.lf_left+i.piece.lineFeedCnt===e-1){const n=this.getAccumulatedValue(i,e-i.lf_left-2);if(n+t-1<=i.piece.length)return{node:i,remainder:n+t-1,nodeStartOffset:s};t-=i.piece.length-n;break}e-=i.lf_left+i.piece.lineFeedCnt,s+=i.size_left+i.piece.length,i=i.right}for(i=i.next();i!==be;){if(i.piece.lineFeedCnt>0){const e=this.getAccumulatedValue(i,0),s=this.offsetOfNode(i);return{node:i,remainder:Math.min(t-1,e),nodeStartOffset:s}}if(i.piece.length>=t-1){return{node:i,remainder:t-1,nodeStartOffset:this.offsetOfNode(i)}}t-=i.piece.length,i=i.next()}return null}nodeCharCodeAt(e,t){if(e.piece.lineFeedCnt<1)return-1;const i=this._buffers[e.piece.bufferIndex],s=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return i.buffer.charCodeAt(s)}offsetOfNode(e){if(!e)return 0;let t=e.size_left;for(;e!==this.root;)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t}shouldCheckCRLF(){return!(this._EOLNormalized&&"\n"===this._EOL)}startWithLF(e){if("string"===typeof e)return 10===e.charCodeAt(0);if(e===be||0===e.piece.lineFeedCnt)return!1;const t=e.piece,i=this._buffers[t.bufferIndex].lineStarts,s=t.start.line,n=i[s]+t.start.column;if(s===i.length-1)return!1;return!(i[s+1]>n+1)&&10===this._buffers[t.bufferIndex].buffer.charCodeAt(n)}endWithCR(e){return"string"===typeof e?13===e.charCodeAt(e.length-1):e!==be&&0!==e.piece.lineFeedCnt&&13===this.nodeCharCodeAt(e,e.piece.length-1)}validateCRLFWithPrevNode(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){const t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}}validateCRLFWithNextNode(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}}fixCRLF(e,t){const i=[],s=this._buffers[e.piece.bufferIndex].lineStarts;let n;n=0===e.piece.end.column?{line:e.piece.end.line-1,column:s[e.piece.end.line]-s[e.piece.end.line-1]-1}:{line:e.piece.end.line,column:e.piece.end.column-1};const r=e.piece.length-1,o=e.piece.lineFeedCnt-1;e.piece=new Ue(e.piece.bufferIndex,e.piece.start,n,o,r),Ne(this,e,-1,-1),0===e.piece.length&&i.push(e);const a={line:t.piece.start.line+1,column:0},c=t.piece.length-1,l=this.getLineFeedCnt(t.piece.bufferIndex,a,t.piece.end);t.piece=new Ue(t.piece.bufferIndex,a,t.piece.end,l,c),Ne(this,t,-1,-1),0===t.piece.length&&i.push(t);const h=this.createNewPieces("\r\n");this.rbInsertRight(e,h[0]);for(let d=0;d<i.length;d++)ke(this,i[d])}adjustCarriageReturnFromNext(e,t){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const i=t.next();if(this.startWithLF(i)){if(e+="\n",1===i.piece.length)ke(this,i);else{const e=i.piece,t={line:e.start.line+1,column:0},s=e.length-1,n=this.getLineFeedCnt(e.bufferIndex,t,e.end);i.piece=new Ue(e.bufferIndex,t,e.end,n,s),Ne(this,i,-1,-1)}return!0}}return!1}iterate(e,t){if(e===be)return t(be);const i=this.iterate(e.left,t);return i?t(e)&&this.iterate(e.right,t):i}getNodeContent(e){if(e===be)return"";const t=this._buffers[e.piece.bufferIndex],i=e.piece,s=this.offsetInBuffer(i.bufferIndex,i.start),n=this.offsetInBuffer(i.bufferIndex,i.end);return t.buffer.substring(s,n)}getPieceContent(e){const t=this._buffers[e.bufferIndex],i=this.offsetInBuffer(e.bufferIndex,e.start),s=this.offsetInBuffer(e.bufferIndex,e.end);return t.buffer.substring(i,s)}rbInsertRight(e,t){const i=new Ee(t,1);i.left=be,i.right=be,i.parent=be,i.size_left=0,i.lf_left=0;if(this.root===be)this.root=i,i.color=0;else if(e.right===be)e.right=i,i.parent=e;else{const t=Se(e.right);t.left=i,i.parent=t}return Ae(this,i),i}rbInsertLeft(e,t){const i=new Ee(t,1);if(i.left=be,i.right=be,i.parent=be,i.size_left=0,i.lf_left=0,this.root===be)this.root=i,i.color=0;else if(e.left===be)e.left=i,i.parent=e;else{const t=ye(e.left);t.right=i,i.parent=t}return Ae(this,i),i}}var ze=i(64829);class Ge extends a.jG{constructor(e,t,i,s,n,r,a){super(),this._onDidChangeContent=this._register(new o.vl),this._BOM=t,this._mightContainNonBasicASCII=!r,this._mightContainRTL=s,this._mightContainUnusualLineTerminators=n,this._pieceTree=new Ve(e,i,a)}mightContainRTL(){return this._mightContainRTL}mightContainUnusualLineTerminators(){return this._mightContainUnusualLineTerminators}resetMightContainUnusualLineTerminators(){this._mightContainUnusualLineTerminators=!1}mightContainNonBasicASCII(){return this._mightContainNonBasicASCII}getBOM(){return this._BOM}getEOL(){return this._pieceTree.getEOL()}createSnapshot(e){return this._pieceTree.createSnapshot(e?this._BOM:"")}getOffsetAt(e,t){return this._pieceTree.getOffsetAt(e,t)}getPositionAt(e){return this._pieceTree.getPositionAt(e)}getRangeAt(e,t){const i=e+t,s=this.getPositionAt(e),n=this.getPositionAt(i);return new g.Q(s.lineNumber,s.column,n.lineNumber,n.column)}getValueInRange(e,t=0){if(e.isEmpty())return"";const i=this._getEndOfLine(t);return this._pieceTree.getValueInRange(e,i)}getValueLengthInRange(e,t=0){if(e.isEmpty())return 0;if(e.startLineNumber===e.endLineNumber)return e.endColumn-e.startColumn;const i=this.getOffsetAt(e.startLineNumber,e.startColumn),s=this.getOffsetAt(e.endLineNumber,e.endColumn);let n=0;const r=this._getEndOfLine(t),o=this.getEOL();if(r.length!==o.length){n=(r.length-o.length)*(e.endLineNumber-e.startLineNumber)}return s-i+n}getCharacterCountInRange(e,t=0){if(this._mightContainNonBasicASCII){let i=0;const s=e.startLineNumber,n=e.endLineNumber;for(let t=s;t<=n;t++){const r=this.getLineContent(t),o=t===s?e.startColumn-1:0,a=t===n?e.endColumn-1:r.length;for(let e=o;e<a;e++)c.pc(r.charCodeAt(e))?(i+=1,e+=1):i+=1}return i+=this._getEndOfLine(t).length*(n-s),i}return this.getValueLengthInRange(e,t)}getLength(){return this._pieceTree.getLength()}getLineCount(){return this._pieceTree.getLineCount()}getLinesContent(){return this._pieceTree.getLinesContent()}getLineContent(e){return this._pieceTree.getLineContent(e)}getLineCharCode(e,t){return this._pieceTree.getLineCharCode(e,t)}getLineLength(e){return this._pieceTree.getLineLength(e)}getLineFirstNonWhitespaceColumn(e){const t=c.HG(this.getLineContent(e));return-1===t?0:t+1}getLineLastNonWhitespaceColumn(e){const t=c.lT(this.getLineContent(e));return-1===t?0:t+2}_getEndOfLine(e){switch(e){case 1:return"\n";case 2:return"\r\n";case 0:return this.getEOL();default:throw new Error("Unknown EOL preference")}}setEOL(e){this._pieceTree.setEOL(e)}applyEdits(e,t,i){let s=this._mightContainRTL,n=this._mightContainUnusualLineTerminators,r=this._mightContainNonBasicASCII,o=!0,a=[];for(let f=0;f<e.length;f++){const t=e[f];o&&t._isTracked&&(o=!1);const i=t.range;if(t.text){let e=!0;r||(e=!c.aC(t.text),r=e),!s&&e&&(s=c.E_(t.text)),!n&&e&&(n=c.$X(t.text))}let l="",d=0,u=0,g=0;if(t.text){let e;[d,u,g,e]=(0,h.W)(t.text);const i=this.getEOL();l=0===e||e===("\r\n"===i?2:1)?t.text:t.text.replace(/\r\n|\r|\n/g,i)}a[f]={sortIndex:f,identifier:t.identifier||null,range:i,rangeOffset:this.getOffsetAt(i.startLineNumber,i.startColumn),rangeLength:this.getValueLengthInRange(i),text:l,eolCount:d,firstLineLength:u,lastLineLength:g,forceMoveMarkers:Boolean(t.forceMoveMarkers),isAutoWhitespaceEdit:t.isAutoWhitespaceEdit||!1}}a.sort(Ge._sortOpsAscending);let l=!1;for(let c=0,h=a.length-1;c<h;c++){const e=a[c].range.getEndPosition(),t=a[c+1].range.getStartPosition();if(t.isBeforeOrEqual(e)){if(t.isBefore(e))throw new Error("Overlapping ranges are not allowed!");l=!0}}o&&(a=this._reduceOperations(a));const d=i||t?Ge._getInverseEditRanges(a):[],u=[];if(t)for(let h=0;h<a.length;h++){const e=a[h],t=d[h];if(e.isAutoWhitespaceEdit&&e.range.isEmpty())for(let i=t.startLineNumber;i<=t.endLineNumber;i++){let s="";i===t.startLineNumber&&(s=this.getLineContent(e.range.startLineNumber),-1!==c.HG(s))||u.push({lineNumber:i,oldContent:s})}}let g=null;if(i){let e=0;g=[];for(let t=0;t<a.length;t++){const i=a[t],s=d[t],n=this.getValueInRange(i.range),r=i.rangeOffset+e;e+=i.text.length-n.length,g[t]={sortIndex:i.sortIndex,identifier:i.identifier,range:s,text:n,textChange:new ze.k(i.rangeOffset,n,r,i.text)}}l||g.sort(((e,t)=>e.sortIndex-t.sortIndex))}this._mightContainRTL=s,this._mightContainUnusualLineTerminators=n,this._mightContainNonBasicASCII=r;const p=this._doApplyEdits(a);let m=null;if(t&&u.length>0){u.sort(((e,t)=>t.lineNumber-e.lineNumber)),m=[];for(let e=0,t=u.length;e<t;e++){const t=u[e].lineNumber;if(e>0&&u[e-1].lineNumber===t)continue;const i=u[e].oldContent,s=this.getLineContent(t);0!==s.length&&s!==i&&-1===c.HG(s)&&m.push(t)}}return this._onDidChangeContent.fire(),new v.F4(g,p,m)}_reduceOperations(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]}_toSingleEditOperation(e){let t=!1;const i=e[0].range,s=e[e.length-1].range,n=new g.Q(i.startLineNumber,i.startColumn,s.endLineNumber,s.endColumn);let r=i.startLineNumber,o=i.startColumn;const a=[];for(let h=0,p=e.length;h<p;h++){const i=e[h],s=i.range;t=t||i.forceMoveMarkers,a.push(this.getValueInRange(new g.Q(r,o,s.startLineNumber,s.startColumn))),i.text.length>0&&a.push(i.text),r=s.endLineNumber,o=s.endColumn}const c=a.join(""),[l,d,u]=(0,h.W)(c);return{sortIndex:0,identifier:e[0].identifier,range:n,rangeOffset:this.getOffsetAt(n.startLineNumber,n.startColumn),rangeLength:this.getValueLengthInRange(n,0),text:c,eolCount:l,firstLineLength:d,lastLineLength:u,forceMoveMarkers:t,isAutoWhitespaceEdit:!1}}_doApplyEdits(e){e.sort(Ge._sortOpsDescending);const t=[];for(let i=0;i<e.length;i++){const s=e[i],n=s.range.startLineNumber,r=s.range.startColumn,o=s.range.endLineNumber,a=s.range.endColumn;if(n===o&&r===a&&0===s.text.length)continue;s.text?(this._pieceTree.delete(s.rangeOffset,s.rangeLength),this._pieceTree.insert(s.rangeOffset,s.text,!0)):this._pieceTree.delete(s.rangeOffset,s.rangeLength);const c=new g.Q(n,r,o,a);t.push({range:c,rangeLength:s.rangeLength,text:s.text,rangeOffset:s.rangeOffset,forceMoveMarkers:s.forceMoveMarkers})}return t}findMatchesLineByLine(e,t,i,s){return this._pieceTree.findMatchesLineByLine(e,t,i,s)}static _getInverseEditRanges(e){const t=[];let i=0,s=0,n=null;for(let r=0,o=e.length;r<o;r++){const o=e[r];let a,c,l;if(n?n.range.endLineNumber===o.range.startLineNumber?(a=i,c=s+(o.range.startColumn-n.range.endColumn)):(a=i+(o.range.startLineNumber-n.range.endLineNumber),c=o.range.startColumn):(a=o.range.startLineNumber,c=o.range.startColumn),o.text.length>0){const e=o.eolCount+1;l=1===e?new g.Q(a,c,a,c+o.firstLineLength):new g.Q(a,c,a+e-1,o.lastLineLength+1)}else l=new g.Q(a,c,a,c);i=l.endLineNumber,s=l.endColumn,t.push(l),n=o}return t}static _sortOpsAscending(e,t){const i=g.Q.compareRangesUsingEnds(e.range,t.range);return 0===i?e.sortIndex-t.sortIndex:i}static _sortOpsDescending(e,t){const i=g.Q.compareRangesUsingEnds(e.range,t.range);return 0===i?t.sortIndex-e.sortIndex:-i}}class je{constructor(e,t,i,s,n,r,o,a,c){this._chunks=e,this._bom=t,this._cr=i,this._lf=s,this._crlf=n,this._containsRTL=r,this._containsUnusualLineTerminators=o,this._isBasicASCII=a,this._normalizeEOL=c}_getEOL(e){const t=this._cr+this._lf+this._crlf,i=this._cr+this._crlf;return 0===t?1===e?"\n":"\r\n":i>t/2?"\r\n":"\n"}create(e){const t=this._getEOL(e),i=this._chunks;if(this._normalizeEOL&&("\r\n"===t&&(this._cr>0||this._lf>0)||"\n"===t&&(this._cr>0||this._crlf>0)))for(let n=0,r=i.length;n<r;n++){const e=i[n].buffer.replace(/\r\n|\r|\n/g,t),s=Fe(e);i[n]=new He(e,s)}const s=new Ge(i,this._bom,t,this._containsRTL,this._containsUnusualLineTerminators,this._isBasicASCII,this._normalizeEOL);return{textBuffer:s,disposable:s}}}class Ke{constructor(){this.chunks=[],this.BOM="",this._hasPreviousChar=!1,this._previousChar=0,this._tmpLineStarts=[],this.cr=0,this.lf=0,this.crlf=0,this.containsRTL=!1,this.containsUnusualLineTerminators=!1,this.isBasicASCII=!0}acceptChunk(e){if(0===e.length)return;0===this.chunks.length&&c.LU(e)&&(this.BOM=c.r_,e=e.substr(1));const t=e.charCodeAt(e.length-1);13===t||t>=55296&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0,this._previousChar=t):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1,this._previousChar=t)}_acceptChunk1(e,t){(t||0!==e.length)&&(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))}_acceptChunk2(e){const t=function(e,t){e.length=0,e[0]=0;let i=1,s=0,n=0,r=0,o=!0;for(let c=0,l=t.length;c<l;c++){const a=t.charCodeAt(c);13===a?c+1<l&&10===t.charCodeAt(c+1)?(r++,e[i++]=c+2,c++):(s++,e[i++]=c+1):10===a?(n++,e[i++]=c+1):o&&9!==a&&(a<32||a>126)&&(o=!1)}const a=new Pe(Me(e),s,n,r,o);return e.length=0,a}(this._tmpLineStarts,e);this.chunks.push(new He(e,t.lineStarts)),this.cr+=t.cr,this.lf+=t.lf,this.crlf+=t.crlf,t.isBasicASCII||(this.isBasicASCII=!1,this.containsRTL||(this.containsRTL=c.E_(e)),this.containsUnusualLineTerminators||(this.containsUnusualLineTerminators=c.$X(e)))}finish(e=!0){return this._finish(),new je(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,e)}_finish(){if(0===this.chunks.length&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;const e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);const t=Fe(e.buffer);e.lineStarts=t,13===this._previousChar&&this.cr++}}}var Ye=i(86571),qe=i(26486),$e=i(62083),Qe=i(20761),Xe=i(90766),Ze=i(98067),Je=i(78381),et=i(74444),tt=i(20788);class it{constructor(e){this._default=e,this._store=[]}get(e){return e<this._store.length?this._store[e]:this._default}set(e,t){for(;e>=this._store.length;)this._store[this._store.length]=this._default;this._store[e]=t}replace(e,t,i){if(e>=this._store.length)return;if(0===t)return void this.insert(e,i);if(0===i)return void this.delete(e,t);const s=this._store.slice(0,e),n=this._store.slice(e+t),r=function(e,t){const i=[];for(let s=0;s<e;s++)i[s]=t;return i}(i,this._default);this._store=s.concat(r,n)}delete(e,t){0===t||e>=this._store.length||this._store.splice(e,t)}insert(e,t){if(0===t||e>=this._store.length)return;const i=[];for(let s=0;s<t;s++)i[s]=this._default;this._store=(0,s.nK)(this._store,e,i)}}class st{get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._startLineNumber+this._tokens.length-1}constructor(e,t){this._startLineNumber=e,this._tokens=t}getLineTokens(e){return this._tokens[e-this._startLineNumber]}appendLineTokens(e){this._tokens.push(e)}}class nt{constructor(){this._tokens=[]}add(e,t){if(this._tokens.length>0){const i=this._tokens[this._tokens.length-1];if(i.endLineNumber+1===e)return void i.appendLineTokens(t)}this._tokens.push(new st(e,[t]))}finalize(){return this._tokens}}var rt=i(87469);class ot{constructor(e,t){this.tokenizationSupport=t,this.initialState=this.tokenizationSupport.getInitialState(),this.store=new ct(e)}getStartState(e){return this.store.getStartState(e,this.initialState)}getFirstInvalidLine(){return this.store.getFirstInvalidLine(this.initialState)}}class at extends ot{constructor(e,t,i,s){super(e,t),this._textModel=i,this._languageIdCodec=s}updateTokensUntilLine(e,t){const i=this._textModel.getLanguageId();for(;;){const s=this.getFirstInvalidLine();if(!s||s.lineNumber>t)break;const n=this._textModel.getLineContent(s.lineNumber),r=dt(this._languageIdCodec,i,this.tokenizationSupport,n,!0,s.startState);e.add(s.lineNumber,r.tokens),this.store.setEndState(s.lineNumber,r.endState)}}getTokenTypeIfInsertingCharacter(e,t){const i=this.getStartState(e.lineNumber);if(!i)return 0;const s=this._textModel.getLanguageId(),n=this._textModel.getLineContent(e.lineNumber),r=n.substring(0,e.column-1)+t+n.substring(e.column-1),o=dt(this._languageIdCodec,s,this.tokenizationSupport,r,!0,i),a=new rt.f(o.tokens,r,this._languageIdCodec);if(0===a.getCount())return 0;const c=a.findTokenIndexAtOffset(e.column-1);return a.getStandardTokenType(c)}tokenizeLineWithEdit(e,t,i){const s=e.lineNumber,n=e.column,r=this.getStartState(s);if(!r)return null;const o=this._textModel.getLineContent(s),a=o.substring(0,n-1)+i+o.substring(n-1+t),c=this._textModel.getLanguageIdAtPosition(s,0),l=dt(this._languageIdCodec,c,this.tokenizationSupport,a,!0,r);return new rt.f(l.tokens,a,this._languageIdCodec)}hasAccurateTokensForLine(e){return e<this.store.getFirstInvalidEndStateLineNumberOrMax()}isCheapToTokenize(e){const t=this.store.getFirstInvalidEndStateLineNumberOrMax();return e<t||e===t&&this._textModel.getLineLength(e)<2048}tokenizeHeuristically(e,t,i){if(i<=this.store.getFirstInvalidEndStateLineNumberOrMax())return{heuristicTokens:!1};if(t<=this.store.getFirstInvalidEndStateLineNumberOrMax())return this.updateTokensUntilLine(e,i),{heuristicTokens:!1};let s=this.guessStartState(t);const n=this._textModel.getLanguageId();for(let r=t;r<=i;r++){const t=this._textModel.getLineContent(r),i=dt(this._languageIdCodec,n,this.tokenizationSupport,t,!0,s);e.add(r,i.tokens),s=i.endState}return{heuristicTokens:!0}}guessStartState(e){let t=this._textModel.getLineFirstNonWhitespaceColumn(e);const i=[];let s=null;for(let o=e-1;t>1&&o>=1;o--){const e=this._textModel.getLineFirstNonWhitespaceColumn(o);if(0!==e&&(e<t&&(i.push(this._textModel.getLineContent(o)),t=e,s=this.getStartState(o),s)))break}s||(s=this.tokenizationSupport.getInitialState()),i.reverse();const n=this._textModel.getLanguageId();let r=s;for(const o of i){r=dt(this._languageIdCodec,n,this.tokenizationSupport,o,!1,r).endState}return r}}class ct{constructor(e){this.lineCount=e,this._tokenizationStateStore=new lt,this._invalidEndStatesLineNumbers=new ht,this._invalidEndStatesLineNumbers.addRange(new et.L(1,e+1))}getEndState(e){return this._tokenizationStateStore.getEndState(e)}setEndState(e,t){if(!t)throw new r.D7("Cannot set null/undefined state");this._invalidEndStatesLineNumbers.delete(e);const i=this._tokenizationStateStore.setEndState(e,t);return i&&e<this.lineCount&&this._invalidEndStatesLineNumbers.addRange(new et.L(e+1,e+2)),i}acceptChange(e,t){this.lineCount+=t-e.length,this._tokenizationStateStore.acceptChange(e,t),this._invalidEndStatesLineNumbers.addRangeAndResize(new et.L(e.startLineNumber,e.endLineNumberExclusive),t)}acceptChanges(e){for(const t of e){const[e]=(0,h.W)(t.text);this.acceptChange(new Ye.M(t.range.startLineNumber,t.range.endLineNumber+1),e+1)}}invalidateEndStateRange(e){this._invalidEndStatesLineNumbers.addRange(new et.L(e.startLineNumber,e.endLineNumberExclusive))}getFirstInvalidEndStateLineNumber(){return this._invalidEndStatesLineNumbers.min}getFirstInvalidEndStateLineNumberOrMax(){return this.getFirstInvalidEndStateLineNumber()||Number.MAX_SAFE_INTEGER}allStatesValid(){return null===this._invalidEndStatesLineNumbers.min}getStartState(e,t){return 1===e?t:this.getEndState(e-1)}getFirstInvalidLine(e){const t=this.getFirstInvalidEndStateLineNumber();if(null===t)return null;const i=this.getStartState(t,e);if(!i)throw new r.D7("Start state must be defined");return{lineNumber:t,startState:i}}}class lt{constructor(){this._lineEndStates=new it(null)}getEndState(e){return this._lineEndStates.get(e)}setEndState(e,t){const i=this._lineEndStates.get(e);return(!i||!i.equals(t))&&(this._lineEndStates.set(e,t),!0)}acceptChange(e,t){let i=e.length;t>0&&i>0&&(i--,t--),this._lineEndStates.replace(e.startLineNumber,i,t)}}class ht{constructor(){this._ranges=[]}get min(){return 0===this._ranges.length?null:this._ranges[0].start}delete(e){const t=this._ranges.findIndex((t=>t.contains(e)));if(-1!==t){const i=this._ranges[t];i.start===e?i.endExclusive===e+1?this._ranges.splice(t,1):this._ranges[t]=new et.L(e+1,i.endExclusive):i.endExclusive===e+1?this._ranges[t]=new et.L(i.start,e):this._ranges.splice(t,1,new et.L(i.start,e),new et.L(e+1,i.endExclusive))}}addRange(e){et.L.addRange(e,this._ranges)}addRangeAndResize(e,t){let i=0;for(;!(i>=this._ranges.length||e.start<=this._ranges[i].endExclusive);)i++;let s=i;for(;!(s>=this._ranges.length||e.endExclusive<this._ranges[s].start);)s++;const n=t-e.length;for(let r=s;r<this._ranges.length;r++)this._ranges[r]=this._ranges[r].delta(n);if(i===s){const s=new et.L(e.start,e.start+t);s.isEmpty||this._ranges.splice(i,0,s)}else{const t=Math.min(e.start,this._ranges[i].start),r=Math.max(e.endExclusive,this._ranges[s-1].endExclusive),o=new et.L(t,r+n);o.isEmpty?this._ranges.splice(i,s-i):this._ranges.splice(i,s-i,o)}}toString(){return this._ranges.map((e=>e.toString())).join(" + ")}}function dt(e,t,i,s,n,o){let a=null;if(i)try{a=i.tokenizeEncoded(s,n,o.clone())}catch(c){(0,r.dz)(c)}return a||(a=(0,tt.Lh)(e.encodeLanguageId(t),o)),rt.f.convertToEndOffset(a.tokens,s.length),a}class ut{constructor(e,t){this._tokenizerWithStateStore=e,this._backgroundTokenStore=t,this._isDisposed=!1,this._isScheduled=!1}dispose(){this._isDisposed=!0}handleChanges(){this._beginBackgroundTokenization()}_beginBackgroundTokenization(){!this._isScheduled&&this._tokenizerWithStateStore._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&(this._isScheduled=!0,(0,Xe.$6)((e=>{this._isScheduled=!1,this._backgroundTokenizeWithDeadline(e)})))}_backgroundTokenizeWithDeadline(e){const t=Date.now()+e.timeRemaining(),i=()=>{!this._isDisposed&&this._tokenizerWithStateStore._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&(this._backgroundTokenizeForAtLeast1ms(),Date.now()<t?(0,Ze._p)(i):this._beginBackgroundTokenization())};i()}_backgroundTokenizeForAtLeast1ms(){const e=this._tokenizerWithStateStore._textModel.getLineCount(),t=new nt,i=Je.W.create(!1);do{if(i.elapsed()>1)break;if(this._tokenizeOneInvalidLine(t)>=e)break}while(this._hasLinesToTokenize());this._backgroundTokenStore.setTokens(t.finalize()),this.checkFinished()}_hasLinesToTokenize(){return!!this._tokenizerWithStateStore&&!this._tokenizerWithStateStore.store.allStatesValid()}_tokenizeOneInvalidLine(e){const t=this._tokenizerWithStateStore?.getFirstInvalidLine();return t?(this._tokenizerWithStateStore.updateTokensUntilLine(e,t.lineNumber),t.lineNumber):this._tokenizerWithStateStore._textModel.getLineCount()+1}checkFinished(){this._isDisposed||this._tokenizerWithStateStore.store.allStatesValid()&&this._backgroundTokenStore.backgroundTokenizationFinished()}requestTokens(e,t){this._tokenizerWithStateStore.store.invalidateEndStateRange(new Ye.M(e,t))}}class gt{constructor(){this._onDidChangeVisibleRanges=new o.vl,this.onDidChangeVisibleRanges=this._onDidChangeVisibleRanges.event,this._views=new Set}attachView(){const e=new pt((t=>{this._onDidChangeVisibleRanges.fire({view:e,state:t})}));return this._views.add(e),e}detachView(e){this._views.delete(e),this._onDidChangeVisibleRanges.fire({view:e,state:void 0})}}class pt{constructor(e){this.handleStateChange=e}setVisibleLines(e,t){const i=e.map((e=>new Ye.M(e.startLineNumber,e.endLineNumber+1)));this.handleStateChange({visibleLineRanges:i,stabilized:t})}}class mt extends a.jG{get lineRanges(){return this._lineRanges}constructor(e){super(),this._refreshTokens=e,this.runner=this._register(new Xe.uC((()=>this.update()),50)),this._computedLineRanges=[],this._lineRanges=[]}update(){(0,s.aI)(this._computedLineRanges,this._lineRanges,((e,t)=>e.equals(t)))||(this._computedLineRanges=this._lineRanges,this._refreshTokens())}handleStateChange(e){this._lineRanges=e.visibleLineRanges,e.stabilized?(this.runner.cancel(),this.update()):this.runner.schedule()}}class ft extends a.jG{get backgroundTokenizationState(){return this._backgroundTokenizationState}constructor(e,t,i){super(),this._languageIdCodec=e,this._textModel=t,this.getLanguageId=i,this._backgroundTokenizationState=1,this._onDidChangeBackgroundTokenizationState=this._register(new o.vl),this.onDidChangeBackgroundTokenizationState=this._onDidChangeBackgroundTokenizationState.event,this._onDidChangeTokens=this._register(new o.vl),this.onDidChangeTokens=this._onDidChangeTokens.event}tokenizeIfCheap(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)}}class _t extends ft{constructor(e,t,i,s){super(t,i,s),this._treeSitterService=e,this._tokenizationSupport=null,this._initialize()}_initialize(){const e=this.getLanguageId();this._tokenizationSupport&&this._lastLanguageId===e||(this._lastLanguageId=e,this._tokenizationSupport=$e.OB.get(e))}getLineTokens(e){const t=this._textModel.getLineContent(e);if(this._tokenizationSupport){const i=this._tokenizationSupport.tokenizeEncoded(e,this._textModel);if(i)return new rt.f(i,t,this._languageIdCodec)}return rt.f.createEmpty(t,this._languageIdCodec)}resetTokenization(e=!0){e&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]}),this._initialize()}handleDidChangeAttached(){}handleDidChangeContent(e){e.isFlush&&this.resetTokenization(!1)}forceTokenization(e){}hasAccurateTokensForLine(e){return!0}isCheapToTokenize(e){return!0}getTokenTypeIfInsertingCharacter(e,t,i){return 0}tokenizeLineWithEdit(e,t,i){return null}get hasTokens(){return void 0!==this._treeSitterService.getParseResult(this._textModel)}}var vt=i(44432);const Ct=new Uint32Array(0).buffer;class Et{static deleteBeginning(e,t){return null===e||e===Ct?e:Et.delete(e,0,t)}static deleteEnding(e,t){if(null===e||e===Ct)return e;const i=bt(e),s=i[i.length-2];return Et.delete(e,t,s)}static delete(e,t,i){if(null===e||e===Ct||t===i)return e;const s=bt(e),n=s.length>>>1;if(0===t&&s[s.length-2]===i)return Ct;const r=rt.f.findIndexInTokensArray(s,t),o=r>0?s[r-1<<1]:0;if(i<s[r<<1]){const o=i-t;for(let e=r;e<n;e++)s[e<<1]-=o;return e}let a,c;o!==t?(s[r<<1]=t,a=r+1<<1,c=t):(a=r<<1,c=o);const l=i-t;for(let d=r+1;d<n;d++){const e=s[d<<1]-l;e>c&&(s[a++]=e,s[a++]=s[1+(d<<1)],c=e)}if(a===s.length)return e;const h=new Uint32Array(a);return h.set(s.subarray(0,a),0),h.buffer}static append(e,t){if(t===Ct)return e;if(e===Ct)return t;if(null===e)return e;if(null===t)return null;const i=bt(e),s=bt(t),n=s.length>>>1,r=new Uint32Array(i.length+s.length);r.set(i,0);let o=i.length;const a=i[i.length-2];for(let c=0;c<n;c++)r[o++]=s[c<<1]+a,r[o++]=s[1+(c<<1)];return r.buffer}static insert(e,t,i){if(null===e||e===Ct)return e;const s=bt(e),n=s.length>>>1;let r=rt.f.findIndexInTokensArray(s,t);if(r>0){s[r-1<<1]===t&&r--}for(let o=r;o<n;o++)s[o<<1]+=i;return e}}function bt(e){return e instanceof Uint32Array?e:new Uint32Array(e)}var St=i(25982);class yt{constructor(e){this._lineTokens=[],this._len=0,this._languageIdCodec=e}flush(){this._lineTokens=[],this._len=0}get hasTokens(){return this._lineTokens.length>0}getTokens(e,t,i){let s=null;if(t<this._len&&(s=this._lineTokens[t]),null!==s&&s!==Ct)return new rt.f(bt(s),i,this._languageIdCodec);const n=new Uint32Array(2);return n[0]=i.length,n[1]=wt(this._languageIdCodec.encodeLanguageId(e)),new rt.f(n,i,this._languageIdCodec)}static _massageTokens(e,t,i){const s=i?bt(i):null;if(0===t){let t=!1;if(s&&s.length>1&&(t=St.x.getLanguageId(s[1])!==e),!t)return Ct}if(!s||0===s.length){const i=new Uint32Array(2);return i[0]=t,i[1]=wt(e),i.buffer}return s[s.length-2]=t,0===s.byteOffset&&s.byteLength===s.buffer.byteLength?s.buffer:s}_ensureLine(e){for(;e>=this._len;)this._lineTokens[this._len]=null,this._len++}_deleteLines(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._lineTokens.splice(e,t),this._len-=t)}_insertLines(e,t){if(0===t)return;const i=[];for(let s=0;s<t;s++)i[s]=null;this._lineTokens=s.nK(this._lineTokens,e,i),this._len+=t}setTokens(e,t,i,s,n){const r=yt._massageTokens(this._languageIdCodec.encodeLanguageId(e),i,s);this._ensureLine(t);const o=this._lineTokens[t];return this._lineTokens[t]=r,!!n&&!yt._equals(o,r)}static _equals(e,t){if(!e||!t)return!e&&!t;const i=bt(e),s=bt(t);if(i.length!==s.length)return!1;for(let n=0,r=i.length;n<r;n++)if(i[n]!==s[n])return!1;return!0}acceptEdit(e,t,i){this._acceptDeleteRange(e),this._acceptInsertText(new u.y(e.startLineNumber,e.startColumn),t,i)}_acceptDeleteRange(e){const t=e.startLineNumber-1;if(t>=this._len)return;if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;return void(this._lineTokens[t]=Et.delete(this._lineTokens[t],e.startColumn-1,e.endColumn-1))}this._lineTokens[t]=Et.deleteEnding(this._lineTokens[t],e.startColumn-1);const i=e.endLineNumber-1;let s=null;i<this._len&&(s=Et.deleteBeginning(this._lineTokens[i],e.endColumn-1)),this._lineTokens[t]=Et.append(this._lineTokens[t],s),this._deleteLines(e.startLineNumber,e.endLineNumber-e.startLineNumber)}_acceptInsertText(e,t,i){if(0===t&&0===i)return;const s=e.lineNumber-1;s>=this._len||(0!==t?(this._lineTokens[s]=Et.deleteEnding(this._lineTokens[s],e.column-1),this._lineTokens[s]=Et.insert(this._lineTokens[s],e.column-1,i),this._insertLines(e.lineNumber,t)):this._lineTokens[s]=Et.insert(this._lineTokens[s],e.column-1,i))}setMultilineTokens(e,t){if(0===e.length)return{changes:[]};const i=[];for(let s=0,n=e.length;s<n;s++){const n=e[s];let r=0,o=0,a=!1;for(let e=n.startLineNumber;e<=n.endLineNumber;e++)if(a)this.setTokens(t.getLanguageId(),e-1,t.getLineLength(e),n.getLineTokens(e),!1),o=e;else{this.setTokens(t.getLanguageId(),e-1,t.getLineLength(e),n.getLineTokens(e),!0)&&(a=!0,r=e,o=e)}a&&i.push({fromLineNumber:r,toLineNumber:o})}return{changes:i}}}function wt(e){return(32768|e|2<<24|1024)>>>0}class Rt{constructor(e){this._pieces=[],this._isComplete=!1,this._languageIdCodec=e}flush(){this._pieces=[],this._isComplete=!1}isEmpty(){return 0===this._pieces.length}set(e,t){this._pieces=e||[],this._isComplete=t}setPartial(e,t){let i=e;if(t.length>0){const s=t[0].getRange(),n=t[t.length-1].getRange();if(!s||!n)return e;i=e.plusRange(s).plusRange(n)}let n=null;for(let s=0,r=this._pieces.length;s<r;s++){const e=this._pieces[s];if(e.endLineNumber<i.startLineNumber)continue;if(e.startLineNumber>i.endLineNumber){n=n||{index:s};break}if(e.removeTokens(i),e.isEmpty()){this._pieces.splice(s,1),s--,r--;continue}if(e.endLineNumber<i.startLineNumber)continue;if(e.startLineNumber>i.endLineNumber){n=n||{index:s};continue}const[t,o]=e.split(i);t.isEmpty()?n=n||{index:s}:o.isEmpty()||(this._pieces.splice(s,1,t,o),s++,r++,n=n||{index:s})}return n=n||{index:this._pieces.length},t.length>0&&(this._pieces=s.nK(this._pieces,n.index,t)),i}isComplete(){return this._isComplete}addSparseTokens(e,t){if(0===t.getLineContent().length)return t;const i=this._pieces;if(0===i.length)return t;const s=i[Rt._findFirstPieceWithLine(i,e)].getLineTokens(e);if(!s)return t;const n=t.getCount(),r=s.getCount();let o=0;const a=[];let c=0,l=0;const h=(e,t)=>{e!==l&&(l=e,a[c++]=e,a[c++]=t)};for(let d=0;d<r;d++){const e=s.getStartCharacter(d),i=s.getEndCharacter(d),r=s.getMetadata(d),a=((1&r?2048:0)|(2&r?4096:0)|(4&r?8192:0)|(8&r?16384:0)|(16&r?16744448:0)|(32&r?4278190080:0))>>>0,c=~a>>>0;for(;o<n&&t.getEndOffset(o)<=e;)h(t.getEndOffset(o),t.getMetadata(o)),o++;for(o<n&&t.getStartOffset(o)<e&&h(e,t.getMetadata(o));o<n&&t.getEndOffset(o)<i;)h(t.getEndOffset(o),t.getMetadata(o)&c|r&a),o++;if(o<n)h(i,t.getMetadata(o)&c|r&a),t.getEndOffset(o)===i&&o++;else{const e=Math.min(Math.max(0,o-1),n-1);h(i,t.getMetadata(e)&c|r&a)}}for(;o<n;)h(t.getEndOffset(o),t.getMetadata(o)),o++;return new rt.f(new Uint32Array(a),t.getLineContent(),this._languageIdCodec)}static _findFirstPieceWithLine(e,t){let i=0,s=e.length-1;for(;i<s;){let n=i+Math.floor((s-i)/2);if(e[n].endLineNumber<t)i=n+1;else{if(!(e[n].startLineNumber>t)){for(;n>i&&e[n-1].startLineNumber<=t&&t<=e[n-1].endLineNumber;)n--;return n}s=n-1}}return i}acceptEdit(e,t,i,s,n){for(const r of this._pieces)r.acceptEdit(e,t,i,s,n)}}var Lt,Tt=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},xt=function(e,t){return function(i,s){t(i,s,e)}};let kt=Lt=class extends Qe._{constructor(e,t,i,s,n,r,c){super(),this._textModel=e,this._bracketPairsTextModelPart=t,this._languageId=i,this._attachedViews=s,this._languageService=n,this._languageConfigurationService=r,this._treeSitterService=c,this._semanticTokens=new Rt(this._languageService.languageIdCodec),this._onDidChangeLanguage=this._register(new o.vl),this.onDidChangeLanguage=this._onDidChangeLanguage.event,this._onDidChangeLanguageConfiguration=this._register(new o.vl),this.onDidChangeLanguageConfiguration=this._onDidChangeLanguageConfiguration.event,this._onDidChangeTokens=this._register(new o.vl),this.onDidChangeTokens=this._onDidChangeTokens.event,this._tokensDisposables=this._register(new a.Cm),this._register(this._languageConfigurationService.onDidChange((e=>{e.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})}))),this._register(o.Jh.filter($e.OB.onDidChange,(e=>e.changedLanguages.includes(this._languageId)))((()=>{this.createPreferredTokenProvider()}))),this.createPreferredTokenProvider()}createGrammarTokens(){return this._register(new At(this._languageService.languageIdCodec,this._textModel,(()=>this._languageId),this._attachedViews))}createTreeSitterTokens(){return this._register(new _t(this._treeSitterService,this._languageService.languageIdCodec,this._textModel,(()=>this._languageId)))}createTokens(e){const t=void 0!==this._tokens;this._tokens?.dispose(),this._tokens=e?this.createTreeSitterTokens():this.createGrammarTokens(),this._tokensDisposables.clear(),this._tokensDisposables.add(this._tokens.onDidChangeTokens((e=>{this._emitModelTokensChangedEvent(e)}))),this._tokensDisposables.add(this._tokens.onDidChangeBackgroundTokenizationState((e=>{this._bracketPairsTextModelPart.handleDidChangeBackgroundTokenizationState()}))),t&&this._tokens.resetTokenization()}createPreferredTokenProvider(){$e.OB.get(this._languageId)?this._tokens instanceof _t||this.createTokens(!0):this._tokens instanceof At||this.createTokens(!1)}handleLanguageConfigurationServiceChange(e){e.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})}handleDidChangeContent(e){if(e.isFlush)this._semanticTokens.flush();else if(!e.isEolChange)for(const t of e.changes){const[e,i,s]=(0,h.W)(t.text);this._semanticTokens.acceptEdit(t.range,e,i,s,t.text.length>0?t.text.charCodeAt(0):0)}this._tokens.handleDidChangeContent(e)}handleDidChangeAttached(){this._tokens.handleDidChangeAttached()}getLineTokens(e){this.validateLineNumber(e);const t=this._tokens.getLineTokens(e);return this._semanticTokens.addSparseTokens(e,t)}_emitModelTokensChangedEvent(e){this._textModel._isDisposing()||(this._bracketPairsTextModelPart.handleDidChangeTokens(e),this._onDidChangeTokens.fire(e))}validateLineNumber(e){if(e<1||e>this._textModel.getLineCount())throw new r.D7("Illegal value for lineNumber")}get hasTokens(){return this._tokens.hasTokens}resetTokenization(){this._tokens.resetTokenization()}get backgroundTokenizationState(){return this._tokens.backgroundTokenizationState}forceTokenization(e){this.validateLineNumber(e),this._tokens.forceTokenization(e)}hasAccurateTokensForLine(e){return this.validateLineNumber(e),this._tokens.hasAccurateTokensForLine(e)}isCheapToTokenize(e){return this.validateLineNumber(e),this._tokens.isCheapToTokenize(e)}tokenizeIfCheap(e){this.validateLineNumber(e),this._tokens.tokenizeIfCheap(e)}getTokenTypeIfInsertingCharacter(e,t,i){return this._tokens.getTokenTypeIfInsertingCharacter(e,t,i)}tokenizeLineWithEdit(e,t,i){return this._tokens.tokenizeLineWithEdit(e,t,i)}setSemanticTokens(e,t){this._semanticTokens.set(e,t),this._emitModelTokensChangedEvent({semanticTokensApplied:null!==e,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]})}hasCompleteSemanticTokens(){return this._semanticTokens.isComplete()}hasSomeSemanticTokens(){return!this._semanticTokens.isEmpty()}setPartialSemanticTokens(e,t){if(this.hasCompleteSemanticTokens())return;const i=this._textModel.validateRange(this._semanticTokens.setPartial(e,t));this._emitModelTokensChangedEvent({semanticTokensApplied:!0,ranges:[{fromLineNumber:i.startLineNumber,toLineNumber:i.endLineNumber}]})}getWordAtPosition(e){this.assertNotDisposed();const t=this._textModel.validatePosition(e),i=this._textModel.getLineContent(t.lineNumber),s=this.getLineTokens(t.lineNumber),n=s.findTokenIndexAtOffset(t.column-1),[r,o]=Lt._findLanguageBoundaries(s,n),a=(0,qe.Th)(t.column,this.getLanguageConfiguration(s.getLanguageId(n)).getWordDefinition(),i.substring(r,o),r);if(a&&a.startColumn<=e.column&&e.column<=a.endColumn)return a;if(n>0&&r===t.column-1){const[r,o]=Lt._findLanguageBoundaries(s,n-1),a=(0,qe.Th)(t.column,this.getLanguageConfiguration(s.getLanguageId(n-1)).getWordDefinition(),i.substring(r,o),r);if(a&&a.startColumn<=e.column&&e.column<=a.endColumn)return a}return null}getLanguageConfiguration(e){return this._languageConfigurationService.getLanguageConfiguration(e)}static _findLanguageBoundaries(e,t){const i=e.getLanguageId(t);let s=0;for(let r=t;r>=0&&e.getLanguageId(r)===i;r--)s=e.getStartOffset(r);let n=e.getLineContent().length;for(let r=t,o=e.getCount();r<o&&e.getLanguageId(r)===i;r++)n=e.getEndOffset(r);return[s,n]}getWordUntilPosition(e){const t=this.getWordAtPosition(e);return t?{word:t.word.substr(0,e.column-t.startColumn),startColumn:t.startColumn,endColumn:e.column}:{word:"",startColumn:e.column,endColumn:e.column}}getLanguageId(){return this._languageId}getLanguageIdAtPosition(e,t){const i=this._textModel.validatePosition(new u.y(e,t)),s=this.getLineTokens(i.lineNumber);return s.getLanguageId(s.findTokenIndexAtOffset(i.column-1))}setLanguageId(e,t="api"){if(this._languageId===e)return;const i={oldLanguage:this._languageId,newLanguage:e,source:t};this._languageId=e,this._bracketPairsTextModelPart.handleDidChangeLanguage(i),this._tokens.resetTokenization(),this.createPreferredTokenProvider(),this._onDidChangeLanguage.fire(i),this._onDidChangeLanguageConfiguration.fire({})}};kt=Lt=Tt([xt(4,f.L),xt(5,_.JZ),xt(6,vt.ITreeSitterParserService)],kt);class At extends ft{constructor(e,t,i,s){super(e,t,i),this._tokenizer=null,this._defaultBackgroundTokenizer=null,this._backgroundTokenizer=this._register(new a.HE),this._tokens=new yt(this._languageIdCodec),this._debugBackgroundTokenizer=this._register(new a.HE),this._attachedViewStates=this._register(new a.$w),this._register($e.dG.onDidChange((e=>{const t=this.getLanguageId();-1!==e.changedLanguages.indexOf(t)&&this.resetTokenization()}))),this.resetTokenization(),this._register(s.onDidChangeVisibleRanges((({view:e,state:t})=>{if(t){let i=this._attachedViewStates.get(e);i||(i=new mt((()=>this.refreshRanges(i.lineRanges))),this._attachedViewStates.set(e,i)),i.handleStateChange(t)}else this._attachedViewStates.deleteAndDispose(e)})))}resetTokenization(e=!0){this._tokens.flush(),this._debugBackgroundTokens?.flush(),this._debugBackgroundStates&&(this._debugBackgroundStates=new ct(this._textModel.getLineCount())),e&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]});const[t,i]=(()=>{if(this._textModel.isTooLargeForTokenization())return[null,null];const e=$e.dG.get(this.getLanguageId());if(!e)return[null,null];let t;try{t=e.getInitialState()}catch(i){return(0,r.dz)(i),[null,null]}return[e,t]})();if(this._tokenizer=t&&i?new at(this._textModel.getLineCount(),t,this._textModel,this._languageIdCodec):null,this._backgroundTokenizer.clear(),this._defaultBackgroundTokenizer=null,this._tokenizer){const e={setTokens:e=>{this.setTokens(e)},backgroundTokenizationFinished:()=>{if(2===this._backgroundTokenizationState)return;this._backgroundTokenizationState=2,this._onDidChangeBackgroundTokenizationState.fire()},setEndState:(e,t)=>{if(!this._tokenizer)return;const i=this._tokenizer.store.getFirstInvalidEndStateLineNumber();null!==i&&e>=i&&this._tokenizer?.store.setEndState(e,t)}};t&&t.createBackgroundTokenizer&&!t.backgroundTokenizerShouldOnlyVerifyTokens&&(this._backgroundTokenizer.value=t.createBackgroundTokenizer(this._textModel,e)),this._backgroundTokenizer.value||this._textModel.isTooLargeForTokenization()||(this._backgroundTokenizer.value=this._defaultBackgroundTokenizer=new ut(this._tokenizer,e),this._defaultBackgroundTokenizer.handleChanges()),t?.backgroundTokenizerShouldOnlyVerifyTokens&&t.createBackgroundTokenizer?(this._debugBackgroundTokens=new yt(this._languageIdCodec),this._debugBackgroundStates=new ct(this._textModel.getLineCount()),this._debugBackgroundTokenizer.clear(),this._debugBackgroundTokenizer.value=t.createBackgroundTokenizer(this._textModel,{setTokens:e=>{this._debugBackgroundTokens?.setMultilineTokens(e,this._textModel)},backgroundTokenizationFinished(){},setEndState:(e,t)=>{this._debugBackgroundStates?.setEndState(e,t)}})):(this._debugBackgroundTokens=void 0,this._debugBackgroundStates=void 0,this._debugBackgroundTokenizer.value=void 0)}this.refreshAllVisibleLineTokens()}handleDidChangeAttached(){this._defaultBackgroundTokenizer?.handleChanges()}handleDidChangeContent(e){if(e.isFlush)this.resetTokenization(!1);else if(!e.isEolChange){for(const t of e.changes){const[e,i]=(0,h.W)(t.text);this._tokens.acceptEdit(t.range,e,i),this._debugBackgroundTokens?.acceptEdit(t.range,e,i)}this._debugBackgroundStates?.acceptChanges(e.changes),this._tokenizer&&this._tokenizer.store.acceptChanges(e.changes),this._defaultBackgroundTokenizer?.handleChanges()}}setTokens(e){const{changes:t}=this._tokens.setMultilineTokens(e,this._textModel);return t.length>0&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:t}),{changes:t}}refreshAllVisibleLineTokens(){const e=Ye.M.joinMany([...this._attachedViewStates].map((([e,t])=>t.lineRanges)));this.refreshRanges(e)}refreshRanges(e){for(const t of e)this.refreshRange(t.startLineNumber,t.endLineNumberExclusive-1)}refreshRange(e,t){if(!this._tokenizer)return;e=Math.max(1,Math.min(this._textModel.getLineCount(),e)),t=Math.min(this._textModel.getLineCount(),t);const i=new nt,{heuristicTokens:s}=this._tokenizer.tokenizeHeuristically(i,e,t),n=this.setTokens(i.finalize());if(s)for(const r of n.changes)this._backgroundTokenizer.value?.requestTokens(r.fromLineNumber,r.toLineNumber+1);this._defaultBackgroundTokenizer?.checkFinished()}forceTokenization(e){const t=new nt;this._tokenizer?.updateTokensUntilLine(t,e),this.setTokens(t.finalize()),this._defaultBackgroundTokenizer?.checkFinished()}hasAccurateTokensForLine(e){return!this._tokenizer||this._tokenizer.hasAccurateTokensForLine(e)}isCheapToTokenize(e){return!this._tokenizer||this._tokenizer.isCheapToTokenize(e)}getLineTokens(e){const t=this._textModel.getLineContent(e),i=this._tokens.getTokens(this._textModel.getLanguageId(),e-1,t);if(this._debugBackgroundTokens&&this._debugBackgroundStates&&this._tokenizer&&this._debugBackgroundStates.getFirstInvalidEndStateLineNumberOrMax()>e&&this._tokenizer.store.getFirstInvalidEndStateLineNumberOrMax()>e){const s=this._debugBackgroundTokens.getTokens(this._textModel.getLanguageId(),e-1,t);!i.equals(s)&&this._debugBackgroundTokenizer.value?.reportMismatchingTokens&&this._debugBackgroundTokenizer.value.reportMismatchingTokens(e)}return i}getTokenTypeIfInsertingCharacter(e,t,i){if(!this._tokenizer)return 0;const s=this._textModel.validatePosition(new u.y(e,t));return this.forceTokenization(s.lineNumber),this._tokenizer.getTokenTypeIfInsertingCharacter(s,i)}tokenizeLineWithEdit(e,t,i){if(!this._tokenizer)return null;const s=this._textModel.validatePosition(e);return this.forceTokenization(s.lineNumber),this._tokenizer.tokenizeLineWithEdit(s,t,i)}get hasTokens(){return this._tokens.hasTokens}}var Nt,It=i(64727),Ot=i(63591),Dt=i(47579),Mt=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Pt=function(e,t){return function(i,s){t(i,s,e)}};function Ft(e,t){let i;return i="string"===typeof e?function(e){const t=new Ke;return t.acceptChunk(e),t.finish()}(e):v.nk(e)?function(e){const t=new Ke;let i;for(;"string"===typeof(i=e.read());)t.acceptChunk(i);return t.finish()}(e):e,i.create(t)}let Ut=0;class Ht{constructor(e){this._source=e,this._eos=!1}read(){if(this._eos)return null;const e=[];let t=0,i=0;for(;;){const s=this._source.read();if(null===s)return this._eos=!0,0===t?null:e.join("");if(s.length>0&&(e[t++]=s,i+=s.length),i>=65536)return e.join("")}}}const Bt=()=>{throw new Error("Invalid change accessor")};let Wt=class extends a.jG{static{Nt=this}static{this._MODEL_SYNC_LIMIT=52428800}static{this.LARGE_FILE_SIZE_THRESHOLD=20971520}static{this.LARGE_FILE_LINE_COUNT_THRESHOLD=3e5}static{this.LARGE_FILE_HEAP_OPERATION_THRESHOLD=268435456}static{this.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:m.R.tabSize,indentSize:m.R.indentSize,insertSpaces:m.R.insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:m.R.trimAutoWhitespace,largeFileOptimizations:m.R.largeFileOptimizations,bracketPairColorizationOptions:m.R.bracketPairColorizationOptions}}static resolveOptions(e,t){if(t.detectIndentation){const i=$(e,t.tabSize,t.insertSpaces);return new v.X2({tabSize:i.tabSize,indentSize:"tabSize",insertSpaces:i.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL,bracketPairColorizationOptions:t.bracketPairColorizationOptions})}return new v.X2(t)}get onDidChangeLanguage(){return this._tokenizationTextModelPart.onDidChangeLanguage}get onDidChangeLanguageConfiguration(){return this._tokenizationTextModelPart.onDidChangeLanguageConfiguration}get onDidChangeTokens(){return this._tokenizationTextModelPart.onDidChangeTokens}onDidChangeContent(e){return this._eventEmitter.slowEvent((t=>e(t.contentChangedEvent)))}onDidChangeContentOrInjectedText(e){return(0,a.qE)(this._eventEmitter.fastEvent((t=>e(t))),this._onDidChangeInjectedText.event((t=>e(t))))}_isDisposing(){return this.__isDisposing}get tokenization(){return this._tokenizationTextModelPart}get bracketPairs(){return this._bracketPairs}get guides(){return this._guidesTextModelPart}constructor(e,t,i,s=null,n,r,h,d){super(),this._undoRedoService=n,this._languageService=r,this._languageConfigurationService=h,this.instantiationService=d,this._onWillDispose=this._register(new o.vl),this.onWillDispose=this._onWillDispose.event,this._onDidChangeDecorations=this._register(new ei((e=>this.handleBeforeFireDecorationsChangedEvent(e)))),this.onDidChangeDecorations=this._onDidChangeDecorations.event,this._onDidChangeOptions=this._register(new o.vl),this.onDidChangeOptions=this._onDidChangeOptions.event,this._onDidChangeAttached=this._register(new o.vl),this.onDidChangeAttached=this._onDidChangeAttached.event,this._onDidChangeInjectedText=this._register(new o.vl),this._eventEmitter=this._register(new ti),this._languageSelectionListener=this._register(new a.HE),this._deltaDecorationCallCnt=0,this._attachedViews=new gt,Ut++,this.id="$model"+Ut,this.isForSimpleWidget=i.isForSimpleWidget,this._associatedResource="undefined"===typeof s||null===s?l.r.parse("inmemory://model/"+Ut):s,this._attachedEditorCount=0;const{textBuffer:u,disposable:p}=Ft(e,i.defaultEOL);this._buffer=u,this._bufferDisposable=p,this._options=Nt.resolveOptions(this._buffer,i);const m="string"===typeof t?t:t.languageId;"string"!==typeof t&&(this._languageSelectionListener.value=t.onDidChange((()=>this._setLanguage(t.languageId)))),this._bracketPairs=this._register(new F(this,this._languageConfigurationService)),this._guidesTextModelPart=this._register(new K.P(this,this._languageConfigurationService)),this._decorationProvider=this._register(new z(this)),this._tokenizationTextModelPart=this.instantiationService.createInstance(kt,this,this._bracketPairs,m,this._attachedViews);const f=this._buffer.getLineCount(),_=this._buffer.getValueLengthInRange(new g.Q(1,1,f,this._buffer.getLineLength(f)+1),0);i.largeFileOptimizations?(this._isTooLargeForTokenization=_>Nt.LARGE_FILE_SIZE_THRESHOLD||f>Nt.LARGE_FILE_LINE_COUNT_THRESHOLD,this._isTooLargeForHeapOperation=_>Nt.LARGE_FILE_HEAP_OPERATION_THRESHOLD):(this._isTooLargeForTokenization=!1,this._isTooLargeForHeapOperation=!1),this._isTooLargeForSyncing=_>Nt._MODEL_SYNC_LIMIT,this._versionId=1,this._alternativeVersionId=1,this._initialUndoRedoSnapshot=null,this._isDisposed=!1,this.__isDisposing=!1,this._instanceId=c.tk(Ut),this._lastDecorationId=0,this._decorations=Object.create(null),this._decorationsTree=new Gt,this._commandManager=new j.z8(this,this._undoRedoService),this._isUndoing=!1,this._isRedoing=!1,this._trimAutoWhitespaceLines=null,this._register(this._decorationProvider.onDidChange((()=>{this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._onDidChangeDecorations.endDeferredEmit()}))),this._languageService.requestRichLanguageFeatures(m),this._register(this._languageConfigurationService.onDidChange((e=>{this._bracketPairs.handleLanguageConfigurationServiceChange(e),this._tokenizationTextModelPart.handleLanguageConfigurationServiceChange(e)})))}dispose(){this.__isDisposing=!0,this._onWillDispose.fire(),this._tokenizationTextModelPart.dispose(),this._isDisposed=!0,super.dispose(),this._bufferDisposable.dispose(),this.__isDisposing=!1;const e=new Ge([],"","\n",!1,!1,!0,!0);e.dispose(),this._buffer=e,this._bufferDisposable=a.jG.None}_assertNotDisposed(){if(this._isDisposed)throw new r.D7("Model is disposed!")}_emitContentChangedEvent(e,t){this.__isDisposing||(this._tokenizationTextModelPart.handleDidChangeContent(t),this._bracketPairs.handleDidChangeContent(t),this._eventEmitter.fire(new It.Ic(e,t)))}setValue(e){if(this._assertNotDisposed(),null===e||void 0===e)throw(0,r.Qg)();const{textBuffer:t,disposable:i}=Ft(e,this._options.defaultEOL);this._setValueFromTextBuffer(t,i)}_createContentChanged2(e,t,i,s,n,r,o,a){return{changes:[{range:e,rangeOffset:t,rangeLength:i,text:s}],eol:this._buffer.getEOL(),isEolChange:a,versionId:this.getVersionId(),isUndoing:n,isRedoing:r,isFlush:o}}_setValueFromTextBuffer(e,t){this._assertNotDisposed();const i=this.getFullModelRange(),s=this.getValueLengthInRange(i),n=this.getLineCount(),r=this.getLineMaxColumn(n);this._buffer=e,this._bufferDisposable.dispose(),this._bufferDisposable=t,this._increaseVersionId(),this._decorations=Object.create(null),this._decorationsTree=new Gt,this._commandManager.clear(),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new It.HP([new It.Wn],this._versionId,!1,!1),this._createContentChanged2(new g.Q(1,1,n,r),0,s,this.getValue(),!1,!1,!0,!1))}setEOL(e){this._assertNotDisposed();const t=1===e?"\r\n":"\n";if(this._buffer.getEOL()===t)return;const i=this.getFullModelRange(),s=this.getValueLengthInRange(i),n=this.getLineCount(),r=this.getLineMaxColumn(n);this._onBeforeEOLChange(),this._buffer.setEOL(t),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new It.HP([new It.mS],this._versionId,!1,!1),this._createContentChanged2(new g.Q(1,1,n,r),0,s,this.getValue(),!1,!1,!1,!0))}_onBeforeEOLChange(){this._decorationsTree.ensureAllNodesHaveRanges(this)}_onAfterEOLChange(){const e=this.getVersionId(),t=this._decorationsTree.collectNodesPostOrder();for(let i=0,s=t.length;i<s;i++){const s=t[i],n=s.range,r=s.cachedAbsoluteStart-s.start,o=this._buffer.getOffsetAt(n.startLineNumber,n.startColumn),a=this._buffer.getOffsetAt(n.endLineNumber,n.endColumn);s.cachedAbsoluteStart=o,s.cachedAbsoluteEnd=a,s.cachedVersionId=e,s.start=o-r,s.end=a-r,_e(s)}}onBeforeAttached(){return this._attachedEditorCount++,1===this._attachedEditorCount&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0)),this._attachedViews.attachView()}onBeforeDetached(e){this._attachedEditorCount--,0===this._attachedEditorCount&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0)),this._attachedViews.detachView(e)}isAttachedToEditor(){return this._attachedEditorCount>0}getAttachedEditorCount(){return this._attachedEditorCount}isTooLargeForSyncing(){return this._isTooLargeForSyncing}isTooLargeForTokenization(){return this._isTooLargeForTokenization}isTooLargeForHeapOperation(){return this._isTooLargeForHeapOperation}isDisposed(){return this._isDisposed}isDominatedByLongLines(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;let e=0,t=0;const i=this._buffer.getLineCount();for(let s=1;s<=i;s++){const i=this._buffer.getLineLength(s);i>=1e4?t+=i:e+=i}return t>e}get uri(){return this._associatedResource}getOptions(){return this._assertNotDisposed(),this._options}getFormattingOptions(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}}updateOptions(e){this._assertNotDisposed();const t="undefined"!==typeof e.tabSize?e.tabSize:this._options.tabSize,i="undefined"!==typeof e.indentSize?e.indentSize:this._options.originalIndentSize,s="undefined"!==typeof e.insertSpaces?e.insertSpaces:this._options.insertSpaces,n="undefined"!==typeof e.trimAutoWhitespace?e.trimAutoWhitespace:this._options.trimAutoWhitespace,r="undefined"!==typeof e.bracketColorizationOptions?e.bracketColorizationOptions:this._options.bracketPairColorizationOptions,o=new v.X2({tabSize:t,indentSize:i,insertSpaces:s,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:n,bracketPairColorizationOptions:r});if(this._options.equals(o))return;const a=this._options.createChangeEvent(o);this._options=o,this._bracketPairs.handleDidChangeOptions(a),this._decorationProvider.handleDidChangeOptions(a),this._onDidChangeOptions.fire(a)}detectIndentation(e,t){this._assertNotDisposed();const i=$(this._buffer,t,e);this.updateOptions({insertSpaces:i.insertSpaces,tabSize:i.tabSize,indentSize:i.tabSize})}normalizeIndentation(e){return this._assertNotDisposed(),(0,d.P)(e,this._options.indentSize,this._options.insertSpaces)}getVersionId(){return this._assertNotDisposed(),this._versionId}mightContainRTL(){return this._buffer.mightContainRTL()}mightContainUnusualLineTerminators(){return this._buffer.mightContainUnusualLineTerminators()}removeUnusualLineTerminators(e=null){const t=this.findMatches(c._J.source,!1,!0,!1,null,!1,1073741824);this._buffer.resetMightContainUnusualLineTerminators(),this.pushEditOperations(e,t.map((e=>({range:e.range,text:null}))),(()=>null))}mightContainNonBasicASCII(){return this._buffer.mightContainNonBasicASCII()}getAlternativeVersionId(){return this._assertNotDisposed(),this._alternativeVersionId}getInitialUndoRedoSnapshot(){return this._assertNotDisposed(),this._initialUndoRedoSnapshot}getOffsetAt(e){this._assertNotDisposed();const t=this._validatePosition(e.lineNumber,e.column,0);return this._buffer.getOffsetAt(t.lineNumber,t.column)}getPositionAt(e){this._assertNotDisposed();const t=Math.min(this._buffer.getLength(),Math.max(0,e));return this._buffer.getPositionAt(t)}_increaseVersionId(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId}_overwriteVersionId(e){this._versionId=e}_overwriteAlternativeVersionId(e){this._alternativeVersionId=e}_overwriteInitialUndoRedoSnapshot(e){this._initialUndoRedoSnapshot=e}getValue(e,t=!1){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new r.D7("Operation would exceed heap memory limits");const i=this.getFullModelRange(),s=this.getValueInRange(i,e);return t?this._buffer.getBOM()+s:s}createSnapshot(e=!1){return new Ht(this._buffer.createSnapshot(e))}getValueLength(e,t=!1){this._assertNotDisposed();const i=this.getFullModelRange(),s=this.getValueLengthInRange(i,e);return t?this._buffer.getBOM().length+s:s}getValueInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(e),t)}getValueLengthInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(e),t)}getCharacterCountInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(e),t)}getLineCount(){return this._assertNotDisposed(),this._buffer.getLineCount()}getLineContent(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new r.D7("Illegal value for lineNumber");return this._buffer.getLineContent(e)}getLineLength(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new r.D7("Illegal value for lineNumber");return this._buffer.getLineLength(e)}getLinesContent(){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new r.D7("Operation would exceed heap memory limits");return this._buffer.getLinesContent()}getEOL(){return this._assertNotDisposed(),this._buffer.getEOL()}getEndOfLineSequence(){return this._assertNotDisposed(),"\n"===this._buffer.getEOL()?0:1}getLineMinColumn(e){return this._assertNotDisposed(),1}getLineMaxColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new r.D7("Illegal value for lineNumber");return this._buffer.getLineLength(e)+1}getLineFirstNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new r.D7("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)}getLineLastNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new r.D7("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)}_validateRangeRelaxedNoAllocations(e){const t=this._buffer.getLineCount(),i=e.startLineNumber,s=e.startColumn;let n=Math.floor("number"!==typeof i||isNaN(i)?1:i),r=Math.floor("number"!==typeof s||isNaN(s)?1:s);if(n<1)n=1,r=1;else if(n>t)n=t,r=this.getLineMaxColumn(n);else if(r<=1)r=1;else{const e=this.getLineMaxColumn(n);r>=e&&(r=e)}const o=e.endLineNumber,a=e.endColumn;let c=Math.floor("number"!==typeof o||isNaN(o)?1:o),l=Math.floor("number"!==typeof a||isNaN(a)?1:a);if(c<1)c=1,l=1;else if(c>t)c=t,l=this.getLineMaxColumn(c);else if(l<=1)l=1;else{const e=this.getLineMaxColumn(c);l>=e&&(l=e)}return i===n&&s===r&&o===c&&a===l&&e instanceof g.Q&&!(e instanceof p.L)?e:new g.Q(n,r,c,l)}_isValidPosition(e,t,i){if("number"!==typeof e||"number"!==typeof t)return!1;if(isNaN(e)||isNaN(t))return!1;if(e<1||t<1)return!1;if((0|e)!==e||(0|t)!==t)return!1;if(e>this._buffer.getLineCount())return!1;if(1===t)return!0;if(t>this.getLineMaxColumn(e))return!1;if(1===i){const i=this._buffer.getLineCharCode(e,t-2);if(c.pc(i))return!1}return!0}_validatePosition(e,t,i){const s=Math.floor("number"!==typeof e||isNaN(e)?1:e),n=Math.floor("number"!==typeof t||isNaN(t)?1:t),r=this._buffer.getLineCount();if(s<1)return new u.y(1,1);if(s>r)return new u.y(r,this.getLineMaxColumn(r));if(n<=1)return new u.y(s,1);const o=this.getLineMaxColumn(s);if(n>=o)return new u.y(s,o);if(1===i){const e=this._buffer.getLineCharCode(s,n-2);if(c.pc(e))return new u.y(s,n-1)}return new u.y(s,n)}validatePosition(e){return this._assertNotDisposed(),e instanceof u.y&&this._isValidPosition(e.lineNumber,e.column,1)?e:this._validatePosition(e.lineNumber,e.column,1)}_isValidRange(e,t){const i=e.startLineNumber,s=e.startColumn,n=e.endLineNumber,r=e.endColumn;if(!this._isValidPosition(i,s,0))return!1;if(!this._isValidPosition(n,r,0))return!1;if(1===t){const e=s>1?this._buffer.getLineCharCode(i,s-2):0,t=r>1&&r<=this._buffer.getLineLength(n)?this._buffer.getLineCharCode(n,r-2):0,o=c.pc(e),a=c.pc(t);return!o&&!a}return!0}validateRange(e){if(this._assertNotDisposed(),e instanceof g.Q&&!(e instanceof p.L)&&this._isValidRange(e,1))return e;const t=this._validatePosition(e.startLineNumber,e.startColumn,0),i=this._validatePosition(e.endLineNumber,e.endColumn,0),s=t.lineNumber,n=t.column,r=i.lineNumber,o=i.column;{const e=n>1?this._buffer.getLineCharCode(s,n-2):0,t=o>1&&o<=this._buffer.getLineLength(r)?this._buffer.getLineCharCode(r,o-2):0,i=c.pc(e),a=c.pc(t);return i||a?s===r&&n===o?new g.Q(s,n-1,r,o-1):i&&a?new g.Q(s,n-1,r,o+1):i?new g.Q(s,n-1,r,o):new g.Q(s,n,r,o+1):new g.Q(s,n,r,o)}}modifyPosition(e,t){this._assertNotDisposed();const i=this.getOffsetAt(e)+t;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,i)))}getFullModelRange(){this._assertNotDisposed();const e=this.getLineCount();return new g.Q(1,1,e,this.getLineMaxColumn(e))}findMatchesLineByLine(e,t,i,s){return this._buffer.findMatchesLineByLine(e,t,i,s)}findMatches(e,t,i,s,n,r,o=999){this._assertNotDisposed();let a=null;null!==t&&(Array.isArray(t)||(t=[t]),t.every((e=>g.Q.isIRange(e)))&&(a=t.map((e=>this.validateRange(e))))),null===a&&(a=[this.getFullModelRange()]),a=a.sort(((e,t)=>e.startLineNumber-t.startLineNumber||e.startColumn-t.startColumn));const c=[];let l;if(c.push(a.reduce(((e,t)=>g.Q.areIntersecting(e,t)?e.plusRange(t):(c.push(e),t)))),!i&&e.indexOf("\n")<0){const t=new Oe.lt(e,i,s,n).parseSearchRequest();if(!t)return[];l=e=>this.findMatchesLineByLine(e,t,r,o)}else l=t=>Oe.hB.findMatches(this,new Oe.lt(e,i,s,n),t,r,o);return c.map(l).reduce(((e,t)=>e.concat(t)),[])}findNextMatch(e,t,i,s,n,r){this._assertNotDisposed();const o=this.validatePosition(t);if(!i&&e.indexOf("\n")<0){const t=new Oe.lt(e,i,s,n).parseSearchRequest();if(!t)return null;const a=this.getLineCount();let c=new g.Q(o.lineNumber,o.column,a,this.getLineMaxColumn(a)),l=this.findMatchesLineByLine(c,t,r,1);return Oe.hB.findNextMatch(this,new Oe.lt(e,i,s,n),o,r),l.length>0?l[0]:(c=new g.Q(1,1,o.lineNumber,this.getLineMaxColumn(o.lineNumber)),l=this.findMatchesLineByLine(c,t,r,1),l.length>0?l[0]:null)}return Oe.hB.findNextMatch(this,new Oe.lt(e,i,s,n),o,r)}findPreviousMatch(e,t,i,s,n,r){this._assertNotDisposed();const o=this.validatePosition(t);return Oe.hB.findPreviousMatch(this,new Oe.lt(e,i,s,n),o,r)}pushStackElement(){this._commandManager.pushStackElement()}popStackElement(){this._commandManager.popStackElement()}pushEOL(e){if(("\n"===this.getEOL()?0:1)!==e)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEOL(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_validateEditOperation(e){return e instanceof v.Wo?e:new v.Wo(e.identifier||null,this.validateRange(e.range),e.text,e.forceMoveMarkers||!1,e.isAutoWhitespaceEdit||!1,e._isTracked||!1)}_validateEditOperations(e){const t=[];for(let i=0,s=e.length;i<s;i++)t[i]=this._validateEditOperation(e[i]);return t}pushEditOperations(e,t,i,s){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(e,this._validateEditOperations(t),i,s)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_pushEditOperations(e,t,i,s){if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){const i=t.map((e=>({range:this.validateRange(e.range),text:e.text})));let s=!0;if(e)for(let t=0,n=e.length;t<n;t++){const n=e[t];let r=!1;for(let e=0,t=i.length;e<t;e++){const t=i[e].range,s=t.startLineNumber>n.endLineNumber,o=n.startLineNumber>t.endLineNumber;if(!s&&!o){r=!0;break}}if(!r){s=!1;break}}if(s)for(let e=0,n=this._trimAutoWhitespaceLines.length;e<n;e++){const s=this._trimAutoWhitespaceLines[e],n=this.getLineMaxColumn(s);let r=!0;for(let e=0,t=i.length;e<t;e++){const t=i[e].range,o=i[e].text;if(!(s<t.startLineNumber||s>t.endLineNumber)&&(!(s===t.startLineNumber&&t.startColumn===n&&t.isEmpty()&&o&&o.length>0&&"\n"===o.charAt(0))&&!(s===t.startLineNumber&&1===t.startColumn&&t.isEmpty()&&o&&o.length>0&&"\n"===o.charAt(o.length-1)))){r=!1;break}}if(r){const e=new g.Q(s,1,s,n);t.push(new v.Wo(null,e,null,!1,!1,!1))}}this._trimAutoWhitespaceLines=null}return null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEditOperation(e,t,i,s)}_applyUndo(e,t,i,s){const n=e.map((e=>{const t=this.getPositionAt(e.newPosition),i=this.getPositionAt(e.newEnd);return{range:new g.Q(t.lineNumber,t.column,i.lineNumber,i.column),text:e.oldText}}));this._applyUndoRedoEdits(n,t,!0,!1,i,s)}_applyRedo(e,t,i,s){const n=e.map((e=>{const t=this.getPositionAt(e.oldPosition),i=this.getPositionAt(e.oldEnd);return{range:new g.Q(t.lineNumber,t.column,i.lineNumber,i.column),text:e.newText}}));this._applyUndoRedoEdits(n,t,!1,!0,i,s)}_applyUndoRedoEdits(e,t,i,s,n,r){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._isUndoing=i,this._isRedoing=s,this.applyEdits(e,!1),this.setEOL(t),this._overwriteAlternativeVersionId(n)}finally{this._isUndoing=!1,this._isRedoing=!1,this._eventEmitter.endDeferredEmit(r),this._onDidChangeDecorations.endDeferredEmit()}}applyEdits(e,t=!1){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit();const i=this._validateEditOperations(e);return this._doApplyEdits(i,t)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_doApplyEdits(e,t){const i=this._buffer.getLineCount(),n=this._buffer.applyEdits(e,this._options.trimAutoWhitespace,t),r=this._buffer.getLineCount(),o=n.changes;if(this._trimAutoWhitespaceLines=n.trimAutoWhitespaceLineNumbers,0!==o.length){for(let i=0,s=o.length;i<s;i++){const e=o[i];this._decorationsTree.acceptReplace(e.rangeOffset,e.rangeLength,e.text.length,e.forceMoveMarkers)}const e=[];this._increaseVersionId();let t=i;for(let i=0,n=o.length;i<n;i++){const n=o[i],[a]=(0,h.W)(n.text);this._onDidChangeDecorations.fire();const c=n.range.startLineNumber,l=n.range.endLineNumber,d=l-c,g=a,p=Math.min(d,g),m=g-d,f=r-t-m+c,_=f,v=f+g,C=this._decorationsTree.getInjectedTextInInterval(this,this.getOffsetAt(new u.y(_,1)),this.getOffsetAt(new u.y(v,this.getLineMaxColumn(v))),0),E=It.uK.fromDecorations(C),b=new s.j3(E);for(let t=p;t>=0;t--){const i=c+t,s=f+t;b.takeFromEndWhile((e=>e.lineNumber>s));const n=b.takeFromEndWhile((e=>e.lineNumber===s));e.push(new It.U0(i,this.getLineContent(s),n))}if(p<d){const t=c+p;e.push(new It.E$(t+1,l))}if(p<g){const i=new s.j3(E),n=c+p,o=g-p,a=r-t-o+n+1,l=[],h=[];for(let e=0;e<o;e++){const t=a+e;h[e]=this.getLineContent(t),i.takeWhile((e=>e.lineNumber<t)),l[e]=i.takeWhile((e=>e.lineNumber===t))}e.push(new It.bg(n+1,c+g,h,l))}t+=m}this._emitContentChangedEvent(new It.HP(e,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:o,eol:this._buffer.getEOL(),isEolChange:!1,versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return null===n.reverseEdits?void 0:n.reverseEdits}undo(){return this._undoRedoService.undo(this.uri)}canUndo(){return this._undoRedoService.canUndo(this.uri)}redo(){return this._undoRedoService.redo(this.uri)}canRedo(){return this._undoRedoService.canRedo(this.uri)}handleBeforeFireDecorationsChangedEvent(e){if(null===e||0===e.size)return;const t=Array.from(e).map((e=>new It.U0(e,this.getLineContent(e),this._getInjectedTextInLine(e))));this._onDidChangeInjectedText.fire(new It.vn(t))}changeDecorations(e,t=0){this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(t,e)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_changeDecorations(e,t){const i={addDecoration:(t,i)=>this._deltaDecorationsImpl(e,[],[{range:t,options:i}])[0],changeDecoration:(e,t)=>{this._changeDecorationImpl(e,t)},changeDecorationOptions:(e,t)=>{this._changeDecorationOptionsImpl(e,Jt(t))},removeDecoration:t=>{this._deltaDecorationsImpl(e,[t],[])},deltaDecorations:(t,i)=>0===t.length&&0===i.length?[]:this._deltaDecorationsImpl(e,t,i)};let s=null;try{s=t(i)}catch(n){(0,r.dz)(n)}return i.addDecoration=Bt,i.changeDecoration=Bt,i.changeDecorationOptions=Bt,i.removeDecoration=Bt,i.deltaDecorations=Bt,s}deltaDecorations(e,t,i=0){if(this._assertNotDisposed(),e||(e=[]),0===e.length&&0===t.length)return[];try{return this._deltaDecorationCallCnt++,this._deltaDecorationCallCnt>1&&(console.warn("Invoking deltaDecorations recursively could lead to leaking decorations."),(0,r.dz)(new Error("Invoking deltaDecorations recursively could lead to leaking decorations."))),this._onDidChangeDecorations.beginDeferredEmit(),this._deltaDecorationsImpl(i,e,t)}finally{this._onDidChangeDecorations.endDeferredEmit(),this._deltaDecorationCallCnt--}}_getTrackedRange(e){return this.getDecorationRange(e)}_setTrackedRange(e,t,i){const s=e?this._decorations[e]:null;if(!s)return t?this._deltaDecorationsImpl(0,[],[{range:t,options:Zt[i]}],!0)[0]:null;if(!t)return this._decorationsTree.delete(s),delete this._decorations[s.id],null;const n=this._validateRangeRelaxedNoAllocations(t),r=this._buffer.getOffsetAt(n.startLineNumber,n.startColumn),o=this._buffer.getOffsetAt(n.endLineNumber,n.endColumn);return this._decorationsTree.delete(s),s.reset(this.getVersionId(),r,o,n),s.setOptions(Zt[i]),this._decorationsTree.insert(s),s.id}removeAllDecorationsWithOwnerId(e){if(this._isDisposed)return;const t=this._decorationsTree.collectNodesFromOwner(e);for(let i=0,s=t.length;i<s;i++){const e=t[i];this._decorationsTree.delete(e),delete this._decorations[e.id]}}getDecorationOptions(e){const t=this._decorations[e];return t?t.options:null}getDecorationRange(e){const t=this._decorations[e];return t?this._decorationsTree.getNodeRange(this,t):null}getLineDecorations(e,t=0,i=!1){return e<1||e>this.getLineCount()?[]:this.getLinesDecorations(e,e,t,i)}getLinesDecorations(e,t,i=0,n=!1,r=!1){const o=this.getLineCount(),a=Math.min(o,Math.max(1,e)),c=Math.min(o,Math.max(1,t)),l=this.getLineMaxColumn(c),h=new g.Q(a,1,c,l),d=this._getDecorationsInRange(h,i,n,r);return(0,s.E4)(d,this._decorationProvider.getDecorationsInRange(h,i,n)),d}getDecorationsInRange(e,t=0,i=!1,n=!1,r=!1){const o=this.validateRange(e),a=this._getDecorationsInRange(o,t,i,r);return(0,s.E4)(a,this._decorationProvider.getDecorationsInRange(o,t,i,n)),a}getOverviewRulerDecorations(e=0,t=!1){return this._decorationsTree.getAll(this,e,t,!0,!1)}getInjectedTextDecorations(e=0){return this._decorationsTree.getAllInjectedText(this,e)}_getInjectedTextInLine(e){const t=this._buffer.getOffsetAt(e,1),i=t+this._buffer.getLineLength(e),s=this._decorationsTree.getInjectedTextInInterval(this,t,i,0);return It.uK.fromDecorations(s).filter((t=>t.lineNumber===e))}getAllDecorations(e=0,t=!1){let i=this._decorationsTree.getAll(this,e,t,!1,!1);return i=i.concat(this._decorationProvider.getAllDecorations(e,t)),i}getAllMarginDecorations(e=0){return this._decorationsTree.getAll(this,e,!1,!1,!0)}_getDecorationsInRange(e,t,i,s){const n=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),r=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn);return this._decorationsTree.getAllInInterval(this,n,r,t,i,s)}getRangeAt(e,t){return this._buffer.getRangeAt(e,t-e)}_changeDecorationImpl(e,t){const i=this._decorations[e];if(!i)return;if(i.options.after){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.endLineNumber)}if(i.options.before){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.startLineNumber)}const s=this._validateRangeRelaxedNoAllocations(t),n=this._buffer.getOffsetAt(s.startLineNumber,s.startColumn),r=this._buffer.getOffsetAt(s.endLineNumber,s.endColumn);this._decorationsTree.delete(i),i.reset(this.getVersionId(),n,r,s),this._decorationsTree.insert(i),this._onDidChangeDecorations.checkAffectedAndFire(i.options),i.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(s.endLineNumber),i.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(s.startLineNumber)}_changeDecorationOptionsImpl(e,t){const i=this._decorations[e];if(!i)return;const s=!(!i.options.overviewRuler||!i.options.overviewRuler.color),n=!(!t.overviewRuler||!t.overviewRuler.color);if(this._onDidChangeDecorations.checkAffectedAndFire(i.options),this._onDidChangeDecorations.checkAffectedAndFire(t),i.options.after||t.after){const e=this._decorationsTree.getNodeRange(this,i);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(i.options.before||t.before){const e=this._decorationsTree.getNodeRange(this,i);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}const r=s!==n,o=function(e){return!!e.after||!!e.before}(t)!==zt(i);r||o?(this._decorationsTree.delete(i),i.setOptions(t),this._decorationsTree.insert(i)):i.setOptions(t)}_deltaDecorationsImpl(e,t,i,s=!1){const n=this.getVersionId(),r=t.length;let o=0;const a=i.length;let c=0;this._onDidChangeDecorations.beginDeferredEmit();try{const l=new Array(a);for(;o<r||c<a;){let h=null;if(o<r){do{h=this._decorations[t[o++]]}while(!h&&o<r);if(h){if(h.options.after){const e=this._decorationsTree.getNodeRange(this,h);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(h.options.before){const e=this._decorationsTree.getNodeRange(this,h);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}this._decorationsTree.delete(h),s||this._onDidChangeDecorations.checkAffectedAndFire(h.options)}}if(c<a){if(!h){const e=++this._lastDecorationId,t=`${this._instanceId};${e}`;h=new oe(t,0,0),this._decorations[t]=h}const t=i[c],r=this._validateRangeRelaxedNoAllocations(t.range),o=Jt(t.options),a=this._buffer.getOffsetAt(r.startLineNumber,r.startColumn),d=this._buffer.getOffsetAt(r.endLineNumber,r.endColumn);h.ownerId=e,h.reset(n,a,d,r),h.setOptions(o),h.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(r.endLineNumber),h.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(r.startLineNumber),s||this._onDidChangeDecorations.checkAffectedAndFire(o),this._decorationsTree.insert(h),l[c]=h.id,c++}else h&&delete this._decorations[h.id]}return l}finally{this._onDidChangeDecorations.endDeferredEmit()}}getLanguageId(){return this.tokenization.getLanguageId()}setLanguage(e,t){"string"===typeof e?(this._languageSelectionListener.clear(),this._setLanguage(e,t)):(this._languageSelectionListener.value=e.onDidChange((()=>this._setLanguage(e.languageId,t))),this._setLanguage(e.languageId,t))}_setLanguage(e,t){this.tokenization.setLanguageId(e,t),this._languageService.requestRichLanguageFeatures(e)}getLanguageIdAtPosition(e,t){return this.tokenization.getLanguageIdAtPosition(e,t)}getWordAtPosition(e){return this._tokenizationTextModelPart.getWordAtPosition(e)}getWordUntilPosition(e){return this._tokenizationTextModelPart.getWordUntilPosition(e)}normalizePosition(e,t){return e}getLineIndentColumn(e){return function(e){let t=0;for(const i of e){if(" "!==i&&"\t"!==i)break;t++}return t}(this.getLineContent(e))+1}};function Vt(e){return!(!e.options.overviewRuler||!e.options.overviewRuler.color)}function zt(e){return!!e.options.after||!!e.options.before}Wt=Nt=Mt([Pt(4,Dt.$D),Pt(5,f.L),Pt(6,_.JZ),Pt(7,Ot._Y)],Wt);class Gt{constructor(){this._decorationsTree0=new ce,this._decorationsTree1=new ce,this._injectedTextDecorationsTree=new ce}ensureAllNodesHaveRanges(e){this.getAll(e,0,!1,!1,!1)}_ensureNodesHaveRanges(e,t){for(const i of t)null===i.range&&(i.range=e.getRangeAt(i.cachedAbsoluteStart,i.cachedAbsoluteEnd));return t}getAllInInterval(e,t,i,s,n,r){const o=e.getVersionId(),a=this._intervalSearch(t,i,s,n,o,r);return this._ensureNodesHaveRanges(e,a)}_intervalSearch(e,t,i,s,n,r){const o=this._decorationsTree0.intervalSearch(e,t,i,s,n,r),a=this._decorationsTree1.intervalSearch(e,t,i,s,n,r),c=this._injectedTextDecorationsTree.intervalSearch(e,t,i,s,n,r);return o.concat(a).concat(c)}getInjectedTextInInterval(e,t,i,s){const n=e.getVersionId(),r=this._injectedTextDecorationsTree.intervalSearch(t,i,s,!1,n,!1);return this._ensureNodesHaveRanges(e,r).filter((e=>e.options.showIfCollapsed||!e.range.isEmpty()))}getAllInjectedText(e,t){const i=e.getVersionId(),s=this._injectedTextDecorationsTree.search(t,!1,i,!1);return this._ensureNodesHaveRanges(e,s).filter((e=>e.options.showIfCollapsed||!e.range.isEmpty()))}getAll(e,t,i,s,n){const r=e.getVersionId(),o=this._search(t,i,s,r,n);return this._ensureNodesHaveRanges(e,o)}_search(e,t,i,s,n){if(i)return this._decorationsTree1.search(e,t,s,n);{const i=this._decorationsTree0.search(e,t,s,n),r=this._decorationsTree1.search(e,t,s,n),o=this._injectedTextDecorationsTree.search(e,t,s,n);return i.concat(r).concat(o)}}collectNodesFromOwner(e){const t=this._decorationsTree0.collectNodesFromOwner(e),i=this._decorationsTree1.collectNodesFromOwner(e),s=this._injectedTextDecorationsTree.collectNodesFromOwner(e);return t.concat(i).concat(s)}collectNodesPostOrder(){const e=this._decorationsTree0.collectNodesPostOrder(),t=this._decorationsTree1.collectNodesPostOrder(),i=this._injectedTextDecorationsTree.collectNodesPostOrder();return e.concat(t).concat(i)}insert(e){zt(e)?this._injectedTextDecorationsTree.insert(e):Vt(e)?this._decorationsTree1.insert(e):this._decorationsTree0.insert(e)}delete(e){zt(e)?this._injectedTextDecorationsTree.delete(e):Vt(e)?this._decorationsTree1.delete(e):this._decorationsTree0.delete(e)}getNodeRange(e,t){const i=e.getVersionId();return t.cachedVersionId!==i&&this._resolveNode(t,i),null===t.range&&(t.range=e.getRangeAt(t.cachedAbsoluteStart,t.cachedAbsoluteEnd)),t.range}_resolveNode(e,t){zt(e)?this._injectedTextDecorationsTree.resolveNode(e,t):Vt(e)?this._decorationsTree1.resolveNode(e,t):this._decorationsTree0.resolveNode(e,t)}acceptReplace(e,t,i,s){this._decorationsTree0.acceptReplace(e,t,i,s),this._decorationsTree1.acceptReplace(e,t,i,s),this._injectedTextDecorationsTree.acceptReplace(e,t,i,s)}}function jt(e){return e.replace(/[^a-z0-9\-_]/gi," ")}class Kt{constructor(e){this.color=e.color||"",this.darkColor=e.darkColor||""}}class Yt extends Kt{constructor(e){super(e),this._resolvedColor=null,this.position="number"===typeof e.position?e.position:v.A5.Center}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=null}_resolveColor(e,t){if("string"===typeof e)return e;const i=e?t.getColor(e.id):null;return i?i.toString():""}}class qt{constructor(e){this.position=e?.position??v.ZS.Center,this.persistLane=e?.persistLane}}class $t extends Kt{constructor(e){super(e),this.position=e.position,this.sectionHeaderStyle=e.sectionHeaderStyle??null,this.sectionHeaderText=e.sectionHeaderText??null}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=void 0}_resolveColor(e,t){return"string"===typeof e?n.Q1.fromHex(e):t.getColor(e.id)}}class Qt{static from(e){return e instanceof Qt?e:new Qt(e)}constructor(e){this.content=e.content||"",this.inlineClassName=e.inlineClassName||null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.attachedData=e.attachedData||null,this.cursorStops=e.cursorStops||null}}class Xt{static register(e){return new Xt(e)}static createDynamic(e){return new Xt(e)}constructor(e){this.description=e.description,this.blockClassName=e.blockClassName?jt(e.blockClassName):null,this.blockDoesNotCollapse=e.blockDoesNotCollapse??null,this.blockIsAfterEnd=e.blockIsAfterEnd??null,this.blockPadding=e.blockPadding??null,this.stickiness=e.stickiness||0,this.zIndex=e.zIndex||0,this.className=e.className?jt(e.className):null,this.shouldFillLineOnLineBreak=e.shouldFillLineOnLineBreak??null,this.hoverMessage=e.hoverMessage||null,this.glyphMarginHoverMessage=e.glyphMarginHoverMessage||null,this.lineNumberHoverMessage=e.lineNumberHoverMessage||null,this.isWholeLine=e.isWholeLine||!1,this.showIfCollapsed=e.showIfCollapsed||!1,this.collapseOnReplaceEdit=e.collapseOnReplaceEdit||!1,this.overviewRuler=e.overviewRuler?new Yt(e.overviewRuler):null,this.minimap=e.minimap?new $t(e.minimap):null,this.glyphMargin=e.glyphMarginClassName?new qt(e.glyphMargin):null,this.glyphMarginClassName=e.glyphMarginClassName?jt(e.glyphMarginClassName):null,this.linesDecorationsClassName=e.linesDecorationsClassName?jt(e.linesDecorationsClassName):null,this.lineNumberClassName=e.lineNumberClassName?jt(e.lineNumberClassName):null,this.linesDecorationsTooltip=e.linesDecorationsTooltip?c.jy(e.linesDecorationsTooltip):null,this.firstLineDecorationClassName=e.firstLineDecorationClassName?jt(e.firstLineDecorationClassName):null,this.marginClassName=e.marginClassName?jt(e.marginClassName):null,this.inlineClassName=e.inlineClassName?jt(e.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=e.beforeContentClassName?jt(e.beforeContentClassName):null,this.afterContentClassName=e.afterContentClassName?jt(e.afterContentClassName):null,this.after=e.after?Qt.from(e.after):null,this.before=e.before?Qt.from(e.before):null,this.hideInCommentTokens=e.hideInCommentTokens??!1,this.hideInStringTokens=e.hideInStringTokens??!1}}Xt.EMPTY=Xt.register({description:"empty"});const Zt=[Xt.register({description:"tracked-range-always-grows-when-typing-at-edges",stickiness:0}),Xt.register({description:"tracked-range-never-grows-when-typing-at-edges",stickiness:1}),Xt.register({description:"tracked-range-grows-only-when-typing-before",stickiness:2}),Xt.register({description:"tracked-range-grows-only-when-typing-after",stickiness:3})];function Jt(e){return e instanceof Xt?e:Xt.createDynamic(e)}class ei extends a.jG{constructor(e){super(),this.handleBeforeFire=e,this._actual=this._register(new o.vl),this.event=this._actual.event,this._affectedInjectedTextLines=null,this._deferredCnt=0,this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._affectsLineNumber=!1}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(){this._deferredCnt--,0===this._deferredCnt&&(this._shouldFireDeferred&&this.doFire(),this._affectedInjectedTextLines?.clear(),this._affectedInjectedTextLines=null)}recordLineAffectedByInjectedText(e){this._affectedInjectedTextLines||(this._affectedInjectedTextLines=new Set),this._affectedInjectedTextLines.add(e)}checkAffectedAndFire(e){this._affectsMinimap||=!!e.minimap?.position,this._affectsOverviewRuler||=!!e.overviewRuler?.color,this._affectsGlyphMargin||=!!e.glyphMarginClassName,this._affectsLineNumber||=!!e.lineNumberClassName,this.tryFire()}fire(){this._affectsMinimap=!0,this._affectsOverviewRuler=!0,this._affectsGlyphMargin=!0,this.tryFire()}tryFire(){0===this._deferredCnt?this.doFire():this._shouldFireDeferred=!0}doFire(){this.handleBeforeFire(this._affectedInjectedTextLines);const e={affectsMinimap:this._affectsMinimap,affectsOverviewRuler:this._affectsOverviewRuler,affectsGlyphMargin:this._affectsGlyphMargin,affectsLineNumber:this._affectsLineNumber};this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._actual.fire(e)}}class ti extends a.jG{constructor(){super(),this._fastEmitter=this._register(new o.vl),this.fastEvent=this._fastEmitter.event,this._slowEmitter=this._register(new o.vl),this.slowEvent=this._slowEmitter.event,this._deferredCnt=0,this._deferredEvent=null}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(e=null){if(this._deferredCnt--,0===this._deferredCnt&&null!==this._deferredEvent){this._deferredEvent.rawContentChangedEvent.resultingSelection=e;const t=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(t),this._slowEmitter.fire(t)}}fire(e){this._deferredCnt>0?this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e:(this._fastEmitter.fire(e),this._slowEmitter.fire(e))}}},87469:(e,t,i)=>{"use strict";i.d(t,{T:()=>o,f:()=>n});var s=i(25982);class n{static{this.defaultTokenMetadata=33587200}static createEmpty(e,t){const i=n.defaultTokenMetadata,s=new Uint32Array(2);return s[0]=e.length,s[1]=i,new n(s,e,t)}static createFromTextAndMetadata(e,t){let i=0,s="";const r=new Array;for(const{text:n,metadata:o}of e)r.push(i+n.length,o),i+=n.length,s+=n;return new n(new Uint32Array(r),s,t)}constructor(e,t,i){this._lineTokensBrand=void 0,this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t,this.languageIdCodec=i}equals(e){return e instanceof n&&this.slicedEquals(e,0,this._tokensCount)}slicedEquals(e,t,i){if(this._text!==e._text)return!1;if(this._tokensCount!==e._tokensCount)return!1;const s=t<<1,n=s+(i<<1);for(let r=s;r<n;r++)if(this._tokens[r]!==e._tokens[r])return!1;return!0}getLineContent(){return this._text}getCount(){return this._tokensCount}getStartOffset(e){return e>0?this._tokens[e-1<<1]:0}getMetadata(e){return this._tokens[1+(e<<1)]}getLanguageId(e){const t=this._tokens[1+(e<<1)],i=s.x.getLanguageId(t);return this.languageIdCodec.decodeLanguageId(i)}getStandardTokenType(e){const t=this._tokens[1+(e<<1)];return s.x.getTokenType(t)}getForeground(e){const t=this._tokens[1+(e<<1)];return s.x.getForeground(t)}getClassName(e){const t=this._tokens[1+(e<<1)];return s.x.getClassNameFromMetadata(t)}getInlineStyle(e,t){const i=this._tokens[1+(e<<1)];return s.x.getInlineStyleFromMetadata(i,t)}getPresentation(e){const t=this._tokens[1+(e<<1)];return s.x.getPresentationFromMetadata(t)}getEndOffset(e){return this._tokens[e<<1]}findTokenIndexAtOffset(e){return n.findIndexInTokensArray(this._tokens,e)}inflate(){return this}sliceAndInflate(e,t,i){return new r(this,e,t,i)}static convertToEndOffset(e,t){const i=(e.length>>>1)-1;for(let s=0;s<i;s++)e[s<<1]=e[s+1<<1];e[i<<1]=t}static findIndexInTokensArray(e,t){if(e.length<=2)return 0;let i=0,s=(e.length>>>1)-1;for(;i<s;){const n=i+Math.floor((s-i)/2),r=e[n<<1];if(r===t)return n+1;r<t?i=n+1:r>t&&(s=n)}return i}withInserted(e){if(0===e.length)return this;let t=0,i=0,s="";const r=new Array;let o=0;for(;;){const n=t<this._tokensCount?this._tokens[t<<1]:-1,a=i<e.length?e[i]:null;if(-1!==n&&(null===a||n<=a.offset)){s+=this._text.substring(o,n);const e=this._tokens[1+(t<<1)];r.push(s.length,e),t++,o=n}else{if(!a)break;if(a.offset>o){s+=this._text.substring(o,a.offset);const e=this._tokens[1+(t<<1)];r.push(s.length,e),o=a.offset}s+=a.text,r.push(s.length,a.tokenMetadata),i++}}return new n(new Uint32Array(r),s,this.languageIdCodec)}getTokenText(e){const t=this.getStartOffset(e),i=this.getEndOffset(e);return this._text.substring(t,i)}forEach(e){const t=this.getCount();for(let i=0;i<t;i++)e(i)}}class r{constructor(e,t,i,s){this._source=e,this._startOffset=t,this._endOffset=i,this._deltaOffset=s,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this.languageIdCodec=e.languageIdCodec,this._tokensCount=0;for(let n=this._firstTokenIndex,r=e.getCount();n<r;n++){if(e.getStartOffset(n)>=i)break;this._tokensCount++}}getMetadata(e){return this._source.getMetadata(this._firstTokenIndex+e)}getLanguageId(e){return this._source.getLanguageId(this._firstTokenIndex+e)}getLineContent(){return this._source.getLineContent().substring(this._startOffset,this._endOffset)}equals(e){return e instanceof r&&(this._startOffset===e._startOffset&&this._endOffset===e._endOffset&&this._deltaOffset===e._deltaOffset&&this._source.slicedEquals(e._source,this._firstTokenIndex,this._tokensCount))}getCount(){return this._tokensCount}getStandardTokenType(e){return this._source.getStandardTokenType(this._firstTokenIndex+e)}getForeground(e){return this._source.getForeground(this._firstTokenIndex+e)}getEndOffset(e){const t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset}getClassName(e){return this._source.getClassName(this._firstTokenIndex+e)}getInlineStyle(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)}getPresentation(e){return this._source.getPresentation(this._firstTokenIndex+e)}findTokenIndexAtOffset(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex}getTokenText(e){const t=this._firstTokenIndex+e,i=this._source.getStartOffset(t),s=this._source.getEndOffset(t);let n=this._source.getTokenText(t);return i<this._startOffset&&(n=n.substring(this._startOffset-i)),s>this._endOffset&&(n=n.substring(0,n.length-(s-this._endOffset))),n}forEach(e){for(let t=0;t<this.getCount();t++)e(t)}}function o(e,t){const i=t.lineNumber;if(!e.tokenization.isCheapToTokenize(i))return;e.tokenization.forceTokenization(i);const s=e.tokenization.getLineTokens(i),n=s.findTokenIndexAtOffset(t.column-1);return s.getStandardTokenType(n)}},87723:(e,t,i)=>{"use strict";i.d(t,{WL:()=>c,q6:()=>u,wm:()=>d});var s=i(64383),n=i(86571),r=i(83069),o=i(36677),a=i(75295);class c{static inverse(e,t,i){const s=[];let r=1,o=1;for(const l of e){const e=new c(new n.M(r,l.original.startLineNumber),new n.M(o,l.modified.startLineNumber));e.modified.isEmpty||s.push(e),r=l.original.endLineNumberExclusive,o=l.modified.endLineNumberExclusive}const a=new c(new n.M(r,t+1),new n.M(o,i+1));return a.modified.isEmpty||s.push(a),s}static clip(e,t,i){const s=[];for(const n of e){const e=n.original.intersect(t),r=n.modified.intersect(i);e&&!e.isEmpty&&r&&!r.isEmpty&&s.push(new c(e,r))}return s}constructor(e,t){this.original=e,this.modified=t}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new c(this.modified,this.original)}join(e){return new c(this.original.join(e.original),this.modified.join(e.modified))}toRangeMapping(){const e=this.original.toInclusiveRange(),t=this.modified.toInclusiveRange();if(e&&t)return new u(e,t);if(1===this.original.startLineNumber||1===this.modified.startLineNumber){if(1!==this.modified.startLineNumber||1!==this.original.startLineNumber)throw new s.D7("not a valid diff");return new u(new o.Q(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new o.Q(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}return new u(new o.Q(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new o.Q(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}toRangeMapping2(e,t){if(h(this.original.endLineNumberExclusive,e)&&h(this.modified.endLineNumberExclusive,t))return new u(new o.Q(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new o.Q(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1));if(!this.original.isEmpty&&!this.modified.isEmpty)return new u(o.Q.fromPositions(new r.y(this.original.startLineNumber,1),l(new r.y(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),o.Q.fromPositions(new r.y(this.modified.startLineNumber,1),l(new r.y(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)));if(this.original.startLineNumber>1&&this.modified.startLineNumber>1)return new u(o.Q.fromPositions(l(new r.y(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER),e),l(new r.y(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),o.Q.fromPositions(l(new r.y(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER),t),l(new r.y(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)));throw new s.D7}}function l(e,t){if(e.lineNumber<1)return new r.y(1,1);if(e.lineNumber>t.length)return new r.y(t.length,t[t.length-1].length+1);const i=t[e.lineNumber-1];return e.column>i.length+1?new r.y(e.lineNumber,i.length+1):e}function h(e,t){return e>=1&&e<=t.length}class d extends c{static fromRangeMappings(e){const t=n.M.join(e.map((e=>n.M.fromRangeInclusive(e.originalRange)))),i=n.M.join(e.map((e=>n.M.fromRangeInclusive(e.modifiedRange))));return new d(t,i,e)}constructor(e,t,i){super(e,t),this.innerChanges=i}flip(){return new d(this.modified,this.original,this.innerChanges?.map((e=>e.flip())))}withInnerChangesFromLineRanges(){return new d(this.original,this.modified,[this.toRangeMapping()])}}class u{static assertSorted(e){for(let t=1;t<e.length;t++){const i=e[t-1],n=e[t];if(!i.originalRange.getEndPosition().isBeforeOrEqual(n.originalRange.getStartPosition())||!i.modifiedRange.getEndPosition().isBeforeOrEqual(n.modifiedRange.getStartPosition()))throw new s.D7("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 u(this.modifiedRange,this.originalRange)}toTextEdit(e){const t=e.getValueOfRange(this.modifiedRange);return new a.WR(this.originalRange,t)}}},87758:(e,t,i)=>{"use strict";i.d(t,{G8:()=>_,Hm:()=>d,Hp:()=>a,K6:()=>o,MB:()=>c,Xp:()=>u,Zp:()=>f,dV:()=>r,iM:()=>m,ih:()=>h,jA:()=>n,jq:()=>p,vf:()=>l,vx:()=>g});var s=i(78209);const n="editor.action.showHover",r="editor.action.showDefinitionPreviewHover",o="editor.action.scrollUpHover",a="editor.action.scrollDownHover",c="editor.action.scrollLeftHover",l="editor.action.scrollRightHover",h="editor.action.pageUpHover",d="editor.action.pageDownHover",u="editor.action.goToTopHover",g="editor.action.goToBottomHover",p="editor.action.increaseHoverVerbosityLevel",m=s.kg({key:"increaseHoverVerbosityLevel",comment:["Label for action that will increase the hover verbosity level."]},"Increase Hover Verbosity Level"),f="editor.action.decreaseHoverVerbosityLevel",_=s.kg({key:"decreaseHoverVerbosityLevel",comment:["Label for action that will decrease the hover verbosity level."]},"Decrease Hover Verbosity Level")},87784:(e,t,i)=>{"use strict";i.d(t,{M:()=>a});var s=i(64383),n=i(5662),r=i(44026);const o={};class a{constructor(e,t,i,s,r){this.editorModel=e,this.providers=t,this.handleFoldingRangesChange=i,this.foldingRangesLimit=s,this.fallbackRangeProvider=r,this.id="syntax",this.disposables=new n.Cm,r&&this.disposables.add(r);for(const n of t)"function"===typeof n.onDidChange&&this.disposables.add(n.onDidChange(i))}compute(e){return function(e,t,i){let n=null;const r=e.map(((e,r)=>Promise.resolve(e.provideFoldingRanges(t,o,i)).then((e=>{if(!i.isCancellationRequested&&Array.isArray(e)){Array.isArray(n)||(n=[]);const i=t.getLineCount();for(const t of e)t.start>0&&t.end>t.start&&t.end<=i&&n.push({start:t.start,end:t.end,rank:r,kind:t.kind})}}),s.M_)));return Promise.all(r).then((e=>n))}(this.providers,this.editorModel,e).then((t=>{if(t){return function(e,t){const i=e.sort(((e,t)=>{let i=e.start-t.start;return 0===i&&(i=e.rank-t.rank),i})),s=new c(t);let n;const r=[];for(const o of i)if(n){if(o.start>n.start)if(o.end<=n.end)r.push(n),n=o,s.add(o.start,o.end,o.kind&&o.kind.value,r.length);else{if(o.start>n.end){do{n=r.pop()}while(n&&o.start>n.end);n&&r.push(n),n=o}s.add(o.start,o.end,o.kind&&o.kind.value,r.length)}}else n=o,s.add(o.start,o.end,o.kind&&o.kind.value,r.length);return s.toIndentRanges()}(t,this.foldingRangesLimit)}return this.fallbackRangeProvider?.compute(e)??null}))}dispose(){this.disposables.dispose()}}class c{constructor(e){this._startIndexes=[],this._endIndexes=[],this._nestingLevels=[],this._nestingLevelCounts=[],this._types=[],this._length=0,this._foldingRangesLimit=e}add(e,t,i,s){if(e>r.yy||t>r.yy)return;const n=this._length;this._startIndexes[n]=e,this._endIndexes[n]=t,this._nestingLevels[n]=s,this._types[n]=i,this._length++,s<30&&(this._nestingLevelCounts[s]=(this._nestingLevelCounts[s]||0)+1)}toIndentRanges(){const e=this._foldingRangesLimit.limit;if(this._length<=e){this._foldingRangesLimit.update(this._length,!1);const e=new Uint32Array(this._length),t=new Uint32Array(this._length);for(let i=0;i<this._length;i++)e[i]=this._startIndexes[i],t[i]=this._endIndexes[i];return new r.tz(e,t,this._types)}{this._foldingRangesLimit.update(this._length,e);let t=0,i=this._nestingLevelCounts.length;for(let r=0;r<this._nestingLevelCounts.length;r++){const s=this._nestingLevelCounts[r];if(s){if(s+t>e){i=r;break}t+=s}}const s=new Uint32Array(e),n=new Uint32Array(e),o=[];for(let r=0,a=0;r<this._length;r++){const c=this._nestingLevels[r];(c<i||c===i&&t++<e)&&(s[a]=this._startIndexes[r],n[a]=this._endIndexes[r],o[a]=this._types[r],a++)}return new r.tz(s,n,o)}}}},87908:(e,t,i)=>{"use strict";i.d(t,{$C:()=>O,BE:()=>H,Bc:()=>k,O4:()=>w,Of:()=>P,XR:()=>M,hZ:()=>g,jT:()=>x,jU:()=>U,ls:()=>b,lw:()=>h,m9:()=>T,n0:()=>d,qB:()=>W,r_:()=>A,wA:()=>C,xZ:()=>I,xq:()=>l,zM:()=>_});var s=i(25890),n=i(10146),r=i(98067),o=i(24329),a=i(26486),c=i(78209);const l=8;class h{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class d{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class u{constructor(e,t,i,s){this.id=e,this.name=t,this.defaultValue=i,this.schema=s}applyUpdate(e,t){return p(e,t)}compute(e,t,i){return i}}class g{constructor(e,t){this.newValue=e,this.didChange=t}}function p(e,t){if("object"!==typeof e||"object"!==typeof t||!e||!t)return new g(t,e!==t);if(Array.isArray(e)||Array.isArray(t)){const i=Array.isArray(e)&&Array.isArray(t)&&s.aI(e,t);return new g(t,!i)}let i=!1;for(const s in t)if(t.hasOwnProperty(s)){const n=p(e[s],t[s]);n.didChange&&(e[s]=n.newValue,i=!0)}return new g(e,i)}class m{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,t){return p(e,t)}validate(e){return this.defaultValue}}class f{constructor(e,t,i,s){this.id=e,this.name=t,this.defaultValue=i,this.schema=s}applyUpdate(e,t){return p(e,t)}validate(e){return"undefined"===typeof e?this.defaultValue:e}compute(e,t,i){return i}}function _(e,t){return"undefined"===typeof e?t:"false"!==e&&Boolean(e)}class v extends f{constructor(e,t,i,s=void 0){"undefined"!==typeof s&&(s.type="boolean",s.default=i),super(e,t,i,s)}validate(e){return _(e,this.defaultValue)}}function C(e,t,i,s){if("undefined"===typeof e)return t;let n=parseInt(e,10);return isNaN(n)?t:(n=Math.max(i,n),n=Math.min(s,n),0|n)}class E extends f{static clampedInt(e,t,i,s){return C(e,t,i,s)}constructor(e,t,i,s,n,r=void 0){"undefined"!==typeof r&&(r.type="integer",r.default=i,r.minimum=s,r.maximum=n),super(e,t,i,r),this.minimum=s,this.maximum=n}validate(e){return E.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}function b(e,t,i,s){if("undefined"===typeof e)return t;const n=S.float(e,t);return S.clamp(n,i,s)}class S extends f{static clamp(e,t,i){return e<t?t:e>i?i:e}static float(e,t){if("number"===typeof e)return e;if("undefined"===typeof e)return t;const i=parseFloat(e);return isNaN(i)?t:i}constructor(e,t,i,s,n){"undefined"!==typeof n&&(n.type="number",n.default=i),super(e,t,i,n),this.validationFn=s}validate(e){return this.validationFn(S.float(e,this.defaultValue))}}class y extends f{static string(e,t){return"string"!==typeof e?t:e}constructor(e,t,i,s=void 0){"undefined"!==typeof s&&(s.type="string",s.default=i),super(e,t,i,s)}validate(e){return y.string(e,this.defaultValue)}}function w(e,t,i,s){return"string"!==typeof e?t:s&&e in s?s[e]:-1===i.indexOf(e)?t:e}class R extends f{constructor(e,t,i,s,n=void 0){"undefined"!==typeof n&&(n.type="string",n.enum=s,n.default=i),super(e,t,i,n),this._allowedValues=s}validate(e){return w(e,this.defaultValue,this._allowedValues)}}class L extends u{constructor(e,t,i,s,n,r,o=void 0){"undefined"!==typeof o&&(o.type="string",o.enum=n,o.default=s),super(e,t,i,o),this._allowedValues=n,this._convert=r}validate(e){return"string"!==typeof e||-1===this._allowedValues.indexOf(e)?this.defaultValue:this._convert(e)}}var T,x;!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"}(T||(T={}));class k extends u{static{this.OFF='"liga" off, "calt" off'}static{this.ON='"liga" on, "calt" on'}constructor(){super(51,"fontLigatures",k.OFF,{anyOf:[{type:"boolean",description:c.kg("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:c.kg("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:c.kg("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return"undefined"===typeof e?this.defaultValue:"string"===typeof e?"false"===e||0===e.length?k.OFF:"true"===e?k.ON:e:Boolean(e)?k.ON:k.OFF}}class A extends u{static{this.OFF="normal"}static{this.TRANSLATE="translate"}constructor(){super(54,"fontVariations",A.OFF,{anyOf:[{type:"boolean",description:c.kg("fontVariations","Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:c.kg("fontVariationSettings","Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:c.kg("fontVariationsGeneral","Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(e){return"undefined"===typeof e?this.defaultValue:"string"===typeof e?"false"===e?A.OFF:"true"===e?A.TRANSLATE:e:Boolean(e)?A.TRANSLATE:A.OFF}compute(e,t,i){return e.fontInfo.fontVariationSettings}}class N extends u{static{this.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"]}static{this.MINIMUM_VALUE=1}static{this.MAXIMUM_VALUE=1e3}constructor(){super(53,"fontWeight",U.fontWeight,{anyOf:[{type:"number",minimum:N.MINIMUM_VALUE,maximum:N.MAXIMUM_VALUE,errorMessage:c.kg("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:N.SUGGESTION_VALUES}],default:U.fontWeight,description:c.kg("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return"normal"===e||"bold"===e?e:String(E.clampedInt(e,U.fontWeight,N.MINIMUM_VALUE,N.MAXIMUM_VALUE))}}class I extends m{constructor(){super(146)}compute(e,t,i){return I.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio,glyphMarginDecorationLaneCount:e.glyphMarginDecorationLaneCount})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=Math.floor(e.paddingTop/e.lineHeight);let s=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(s=Math.max(s,t-1));const n=(i+e.viewLineCount+s)/(e.pixelRatio*e.height);return{typicalViewportLineCount:t,extraLinesBeforeFirstLine:i,extraLinesBeyondLastLine:s,desiredRatio:n,minimapLineCount:Math.floor(e.viewLineCount/n)}}static _computeMinimapLayout(e,t){const i=e.outerWidth,s=e.outerHeight,n=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(n*s),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:s};const r=t.stableMinimapLayoutInput,o=r&&e.outerHeight===r.outerHeight&&e.lineHeight===r.lineHeight&&e.typicalHalfwidthCharacterWidth===r.typicalHalfwidthCharacterWidth&&e.pixelRatio===r.pixelRatio&&e.scrollBeyondLastLine===r.scrollBeyondLastLine&&e.paddingTop===r.paddingTop&&e.paddingBottom===r.paddingBottom&&e.minimap.enabled===r.minimap.enabled&&e.minimap.side===r.minimap.side&&e.minimap.size===r.minimap.size&&e.minimap.showSlider===r.minimap.showSlider&&e.minimap.renderCharacters===r.minimap.renderCharacters&&e.minimap.maxColumn===r.minimap.maxColumn&&e.minimap.scale===r.minimap.scale&&e.verticalScrollbarWidth===r.verticalScrollbarWidth&&e.isViewportWrapping===r.isViewportWrapping,a=e.lineHeight,c=e.typicalHalfwidthCharacterWidth,h=e.scrollBeyondLastLine,d=e.minimap.renderCharacters;let u=n>=2?Math.round(2*e.minimap.scale):e.minimap.scale;const g=e.minimap.maxColumn,p=e.minimap.size,m=e.minimap.side,f=e.verticalScrollbarWidth,_=e.viewLineCount,v=e.remainingWidth,C=e.isViewportWrapping,E=d?2:3;let b=Math.floor(n*s);const S=b/n;let y=!1,w=!1,R=E*u,L=u/n,T=1;if("fill"===p||"fit"===p){const{typicalViewportLineCount:i,extraLinesBeforeFirstLine:r,extraLinesBeyondLastLine:c,desiredRatio:l,minimapLineCount:d}=I.computeContainedMinimapLineCount({viewLineCount:_,scrollBeyondLastLine:h,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:s,lineHeight:a,pixelRatio:n});if(_/d>1)y=!0,w=!0,u=1,R=1,L=u/n;else{let s=!1,h=u+1;if("fit"===p){const e=Math.ceil((r+_+c)*R);C&&o&&v<=t.stableFitRemainingWidth?(s=!0,h=t.stableFitMaxMinimapScale):s=e>b}if("fill"===p||s){y=!0;const s=u;R=Math.min(a*n,Math.max(1,Math.floor(1/l))),C&&o&&v<=t.stableFitRemainingWidth&&(h=t.stableFitMaxMinimapScale),u=Math.min(h,Math.max(1,Math.floor(R/E))),u>s&&(T=Math.min(2,u/s)),L=u/n/T,b=Math.ceil(Math.max(i,r+_+c)*R),C?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=v,t.stableFitMaxMinimapScale=u):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const x=Math.floor(g*L),k=Math.min(x,Math.max(0,Math.floor((v-f-2)*L/(c+L)))+l);let A=Math.floor(n*k);const N=A/n;A=Math.floor(A*T);return{renderMinimap:d?1:2,minimapLeft:"left"===m?0:i-k-f,minimapWidth:k,minimapHeightIsEditorHeight:y,minimapIsSampling:w,minimapScale:u,minimapLineHeight:R,minimapCanvasInnerWidth:A,minimapCanvasInnerHeight:b,minimapCanvasOuterWidth:N,minimapCanvasOuterHeight:S}}static computeLayout(e,t){const i=0|t.outerWidth,s=0|t.outerHeight,n=0|t.lineHeight,r=0|t.lineNumbersDigitCount,o=t.typicalHalfwidthCharacterWidth,a=t.maxDigitWidth,c=t.pixelRatio,l=t.viewLineCount,h=e.get(138),u="inherit"===h?e.get(137):h,g="inherit"===u?e.get(133):u,p=e.get(136),m=t.isDominatedByLongLines,f=e.get(57),_=0!==e.get(68).renderType,v=e.get(69),C=e.get(106),E=e.get(84),b=e.get(73),S=e.get(104),y=S.verticalScrollbarSize,w=S.verticalHasArrows,R=S.arrowSize,L=S.horizontalScrollbarSize,T=e.get(43),x="never"!==e.get(111);let k=e.get(66);T&&x&&(k+=16);let A=0;if(_){const e=Math.max(r,v);A=Math.round(e*a)}let N=0;f&&(N=n*t.glyphMarginDecorationLaneCount);let O=0,D=O+N,M=D+A,P=M+k;const F=i-N-A-k;let U=!1,H=!1,B=-1;"inherit"===u&&m?(U=!0,H=!0):"on"===g||"bounded"===g?H=!0:"wordWrapColumn"===g&&(B=p);const W=I._computeMinimapLayout({outerWidth:i,outerHeight:s,lineHeight:n,typicalHalfwidthCharacterWidth:o,pixelRatio:c,scrollBeyondLastLine:C,paddingTop:E.top,paddingBottom:E.bottom,minimap:b,verticalScrollbarWidth:y,viewLineCount:l,remainingWidth:F,isViewportWrapping:H},t.memory||new d);0!==W.renderMinimap&&0===W.minimapLeft&&(O+=W.minimapWidth,D+=W.minimapWidth,M+=W.minimapWidth,P+=W.minimapWidth);const V=F-W.minimapWidth,z=Math.max(1,Math.floor((V-y-2)/o)),G=w?R:0;return H&&(B=Math.max(1,z),"bounded"===g&&(B=Math.min(B,p))),{width:i,height:s,glyphMarginLeft:O,glyphMarginWidth:N,glyphMarginDecorationLaneCount:t.glyphMarginDecorationLaneCount,lineNumbersLeft:D,lineNumbersWidth:A,decorationsLeft:M,decorationsWidth:k,contentLeft:P,contentWidth:V,minimap:W,viewportColumn:z,isWordWrapMinified:U,isViewportWrapping:H,wrappingColumn:B,verticalScrollbarWidth:y,horizontalScrollbarHeight:L,overviewRuler:{top:G,width:y,height:s-2*G,right:0}}}}!function(e){e.Off="off",e.OnCode="onCode",e.On="on"}(x||(x={}));function O(e){const t=e.get(99);return"editable"===t?e.get(92):"on"!==t}function D(e,t){if("string"!==typeof e)return t;switch(e){case"hidden":return 2;case"visible":return 3;default:return 1}}const M="inUntrustedWorkspace",P={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments",includeStrings:"editor.unicodeHighlight.includeStrings",allowedLocales:"editor.unicodeHighlight.allowedLocales"};function F(e,t,i){const s=i.indexOf(e);return-1===s?t:i[s]}const U={fontFamily:r.zx?"Menlo, Monaco, 'Courier New', monospace":r.j9?"'Droid Sans Mono', 'monospace', monospace":"Consolas, 'Courier New', monospace",fontWeight:"normal",fontSize:r.zx?12:14,lineHeight:0,letterSpacing:0},H=[];function B(e){return H[e.id]=e,e}const W={acceptSuggestionOnCommitCharacter:B(new v(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:c.kg("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:B(new R(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",c.kg("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:c.kg("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:B(new class extends u{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[c.kg("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached."),c.kg("accessibilitySupport.on","Optimize for usage with a Screen Reader."),c.kg("accessibilitySupport.off","Assume a screen reader is not attached.")],default:"auto",tags:["accessibility"],description:c.kg("accessibilitySupport","Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return 0===i?e.accessibilitySupport:i}}),accessibilityPageSize:B(new E(3,"accessibilityPageSize",10,1,1073741824,{description:c.kg("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default."),tags:["accessibility"]})),ariaLabel:B(new y(4,"ariaLabel",c.kg("editorViewAccessibleLabel","Editor content"))),ariaRequired:B(new v(5,"ariaRequired",!1,void 0)),screenReaderAnnounceInlineSuggestion:B(new v(8,"screenReaderAnnounceInlineSuggestion",!0,{description:c.kg("screenReaderAnnounceInlineSuggestion","Control whether inline suggestions are announced by a screen reader."),tags:["accessibility"]})),autoClosingBrackets:B(new R(6,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",c.kg("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),c.kg("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:c.kg("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingComments:B(new R(7,"autoClosingComments","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",c.kg("editor.autoClosingComments.languageDefined","Use language configurations to determine when to autoclose comments."),c.kg("editor.autoClosingComments.beforeWhitespace","Autoclose comments only when the cursor is to the left of whitespace."),""],description:c.kg("autoClosingComments","Controls whether the editor should automatically close comments after the user adds an opening comment.")})),autoClosingDelete:B(new R(9,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",c.kg("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:c.kg("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:B(new R(10,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",c.kg("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:c.kg("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:B(new R(11,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",c.kg("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),c.kg("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:c.kg("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:B(new L(12,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],(function(e){switch(e){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}),{enumDescriptions:[c.kg("editor.autoIndent.none","The editor will not insert indentation automatically."),c.kg("editor.autoIndent.keep","The editor will keep the current line's indentation."),c.kg("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),c.kg("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),c.kg("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:c.kg("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:B(new v(13,"automaticLayout",!1)),autoSurround:B(new R(14,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[c.kg("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),c.kg("editor.autoSurround.quotes","Surround with quotes but not brackets."),c.kg("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:c.kg("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:B(new class extends u{constructor(){const e={enabled:o.R.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:o.R.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(15,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,markdownDescription:c.kg("bracketPairColorization.enabled","Controls whether bracket pair colorization is enabled or not. Use {0} to override the bracket highlight colors.","`#workbench.colorCustomizations#`")},"editor.bracketPairColorization.independentColorPoolPerBracketType":{type:"boolean",default:e.independentColorPoolPerBracketType,description:c.kg("bracketPairColorization.independentColorPoolPerBracketType","Controls whether each bracket type has its own independent color pool.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:_(t.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}}),bracketPairGuides:B(new class extends u{constructor(){const e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(16,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[c.kg("editor.guides.bracketPairs.true","Enables bracket pair guides."),c.kg("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),c.kg("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:e.bracketPairs,description:c.kg("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[c.kg("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),c.kg("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),c.kg("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:c.kg("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:c.kg("editor.guides.highlightActiveBracketPair","Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:c.kg("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[c.kg("editor.guides.highlightActiveIndentation.true","Highlights the active indent guide."),c.kg("editor.guides.highlightActiveIndentation.always","Highlights the active indent guide even if bracket guides are highlighted."),c.kg("editor.guides.highlightActiveIndentation.false","Do not highlight the active indent guide.")],default:e.highlightActiveIndentation,description:c.kg("editor.guides.highlightActiveIndentation","Controls whether the editor should highlight the active indent guide.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{bracketPairs:F(t.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:F(t.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:_(t.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:_(t.indentation,this.defaultValue.indentation),highlightActiveIndentation:F(t.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}),stickyTabStops:B(new v(117,"stickyTabStops",!1,{description:c.kg("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:B(new v(17,"codeLens",!0,{description:c.kg("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:B(new y(18,"codeLensFontFamily","",{description:c.kg("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:B(new E(19,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:c.kg("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used.")})),colorDecorators:B(new v(20,"colorDecorators",!0,{description:c.kg("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),colorDecoratorActivatedOn:B(new R(149,"colorDecoratorsActivatedOn","clickAndHover",["clickAndHover","hover","click"],{enumDescriptions:[c.kg("editor.colorDecoratorActivatedOn.clickAndHover","Make the color picker appear both on click and hover of the color decorator"),c.kg("editor.colorDecoratorActivatedOn.hover","Make the color picker appear on hover of the color decorator"),c.kg("editor.colorDecoratorActivatedOn.click","Make the color picker appear on click of the color decorator")],description:c.kg("colorDecoratorActivatedOn","Controls the condition to make a color picker appear from a color decorator")})),colorDecoratorsLimit:B(new E(21,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:c.kg("colorDecoratorsLimit","Controls the max number of color decorators that can be rendered in an editor at once.")})),columnSelection:B(new v(22,"columnSelection",!1,{description:c.kg("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:B(new class extends u{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(23,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:c.kg("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:c.kg("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{insertSpace:_(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:_(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}),contextmenu:B(new v(24,"contextmenu",!0)),copyWithSyntaxHighlighting:B(new v(25,"copyWithSyntaxHighlighting",!0,{description:c.kg("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:B(new L(26,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],(function(e){switch(e){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}),{description:c.kg("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:B(new R(27,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[c.kg("cursorSmoothCaretAnimation.off","Smooth caret animation is disabled."),c.kg("cursorSmoothCaretAnimation.explicit","Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),c.kg("cursorSmoothCaretAnimation.on","Smooth caret animation is always enabled.")],description:c.kg("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:B(new L(28,"cursorStyle",T.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],(function(e){switch(e){case"line":return T.Line;case"block":return T.Block;case"underline":return T.Underline;case"line-thin":return T.LineThin;case"block-outline":return T.BlockOutline;case"underline-thin":return T.UnderlineThin}}),{description:c.kg("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:B(new E(29,"cursorSurroundingLines",0,0,1073741824,{description:c.kg("cursorSurroundingLines","Controls the minimal number of visible leading lines (minimum 0) and trailing lines (minimum 1) surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:B(new R(30,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[c.kg("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),c.kg("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],markdownDescription:c.kg("cursorSurroundingLinesStyle","Controls when `#editor.cursorSurroundingLines#` should be enforced.")})),cursorWidth:B(new E(31,"cursorWidth",0,0,1073741824,{markdownDescription:c.kg("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:B(new v(32,"disableLayerHinting",!1)),disableMonospaceOptimizations:B(new v(33,"disableMonospaceOptimizations",!1)),domReadOnly:B(new v(34,"domReadOnly",!1)),dragAndDrop:B(new v(35,"dragAndDrop",!0,{description:c.kg("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:B(new class extends v{constructor(){super(37,"emptySelectionClipboard",!0,{description:c.kg("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}),dropIntoEditor:B(new class extends u{constructor(){const e={enabled:!0,showDropSelector:"afterDrop"};super(36,"dropIntoEditor",e,{"editor.dropIntoEditor.enabled":{type:"boolean",default:e.enabled,markdownDescription:c.kg("dropIntoEditor.enabled","Controls whether you can drag and drop a file into a text editor by holding down the `Shift` key (instead of opening the file in an editor).")},"editor.dropIntoEditor.showDropSelector":{type:"string",markdownDescription:c.kg("dropIntoEditor.showDropSelector","Controls if a widget is shown when dropping files into the editor. This widget lets you control how the file is dropped."),enum:["afterDrop","never"],enumDescriptions:[c.kg("dropIntoEditor.showDropSelector.afterDrop","Show the drop selector widget after a file is dropped into the editor."),c.kg("dropIntoEditor.showDropSelector.never","Never show the drop selector widget. Instead the default drop provider is always used.")],default:"afterDrop"}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),showDropSelector:w(t.showDropSelector,this.defaultValue.showDropSelector,["afterDrop","never"])}}}),stickyScroll:B(new class extends u{constructor(){const e={enabled:!0,maxLineCount:5,defaultModel:"outlineModel",scrollWithEditor:!0};super(116,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:c.kg("editor.stickyScroll.enabled","Shows the nested current scopes during the scroll at the top of the editor."),tags:["experimental"]},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:20,description:c.kg("editor.stickyScroll.maxLineCount","Defines the maximum number of sticky lines to show.")},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:e.defaultModel,description:c.kg("editor.stickyScroll.defaultModel","Defines the model to use for determining which lines to stick. If the outline model does not exist, it will fall back on the folding provider model which falls back on the indentation model. This order is respected in all three cases.")},"editor.stickyScroll.scrollWithEditor":{type:"boolean",default:e.scrollWithEditor,description:c.kg("editor.stickyScroll.scrollWithEditor","Enable scrolling of Sticky Scroll with the editor's horizontal scrollbar.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),maxLineCount:E.clampedInt(t.maxLineCount,this.defaultValue.maxLineCount,1,20),defaultModel:w(t.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"]),scrollWithEditor:_(t.scrollWithEditor,this.defaultValue.scrollWithEditor)}}}),experimentalWhitespaceRendering:B(new R(38,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[c.kg("experimentalWhitespaceRendering.svg","Use a new rendering method with svgs."),c.kg("experimentalWhitespaceRendering.font","Use a new rendering method with font characters."),c.kg("experimentalWhitespaceRendering.off","Use the stable rendering method.")],description:c.kg("experimentalWhitespaceRendering","Controls whether whitespace is rendered with a new, experimental method.")})),extraEditorClassName:B(new y(39,"extraEditorClassName","")),fastScrollSensitivity:B(new S(40,"fastScrollSensitivity",5,(e=>e<=0?5:e),{markdownDescription:c.kg("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:B(new class extends u{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(41,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:c.kg("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[c.kg("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),c.kg("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),c.kg("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:c.kg("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[c.kg("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),c.kg("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),c.kg("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:c.kg("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:c.kg("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:r.zx},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:c.kg("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:c.kg("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{cursorMoveOnType:_(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:"boolean"===typeof e.seedSearchStringFromSelection?e.seedSearchStringFromSelection?"always":"never":w(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:"boolean"===typeof e.autoFindInSelection?e.autoFindInSelection?"always":"never":w(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:_(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:_(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:_(t.loop,this.defaultValue.loop)}}}),fixedOverflowWidgets:B(new v(42,"fixedOverflowWidgets",!1)),folding:B(new v(43,"folding",!0,{description:c.kg("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:B(new R(44,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[c.kg("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),c.kg("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:c.kg("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:B(new v(45,"foldingHighlight",!0,{description:c.kg("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:B(new v(46,"foldingImportsByDefault",!1,{description:c.kg("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:B(new E(47,"foldingMaximumRegions",5e3,10,65e3,{description:c.kg("foldingMaximumRegions","The maximum number of foldable regions. Increasing this value may result in the editor becoming less responsive when the current source has a large number of foldable regions.")})),unfoldOnClickAfterEndOfLine:B(new v(48,"unfoldOnClickAfterEndOfLine",!1,{description:c.kg("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:B(new y(49,"fontFamily",U.fontFamily,{description:c.kg("fontFamily","Controls the font family.")})),fontInfo:B(new class extends m{constructor(){super(50)}compute(e,t,i){return e.fontInfo}}),fontLigatures2:B(new k),fontSize:B(new class extends f{constructor(){super(52,"fontSize",U.fontSize,{type:"number",minimum:6,maximum:100,default:U.fontSize,description:c.kg("fontSize","Controls the font size in pixels.")})}validate(e){const t=S.float(e,this.defaultValue);return 0===t?U.fontSize:S.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}),fontWeight:B(new N),fontVariations:B(new A),formatOnPaste:B(new v(55,"formatOnPaste",!1,{description:c.kg("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:B(new v(56,"formatOnType",!1,{description:c.kg("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:B(new v(57,"glyphMargin",!0,{description:c.kg("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:B(new class extends u{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",multipleTests:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:"",alternativeTestsCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[c.kg("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),c.kg("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),c.kg("editor.gotoLocation.multiple.goto","Go to the primary result and enable Peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(58,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:c.kg("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":{description:c.kg("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleTypeDefinitions":{description:c.kg("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleDeclarations":{description:c.kg("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleImplementations":{description:c.kg("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleReferences":{description:c.kg("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist."),...t},"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:c.kg("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:c.kg("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:c.kg("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:c.kg("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:c.kg("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{multiple:w(t.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:t.multipleDefinitions??w(t.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:t.multipleTypeDefinitions??w(t.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:t.multipleDeclarations??w(t.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:t.multipleImplementations??w(t.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:t.multipleReferences??w(t.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),multipleTests:t.multipleTests??w(t.multipleTests,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:y.string(t.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:y.string(t.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:y.string(t.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:y.string(t.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:y.string(t.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand),alternativeTestsCommand:y.string(t.alternativeTestsCommand,this.defaultValue.alternativeTestsCommand)}}}),hideCursorInOverviewRuler:B(new v(59,"hideCursorInOverviewRuler",!1,{description:c.kg("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:B(new class extends u{constructor(){const e={enabled:!0,delay:300,hidingDelay:300,sticky:!0,above:!0};super(60,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:c.kg("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:c.kg("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:c.kg("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.hidingDelay":{type:"integer",minimum:0,default:e.hidingDelay,description:c.kg("hover.hidingDelay","Controls the delay in milliseconds after which the hover is hidden. Requires `editor.hover.sticky` to be enabled.")},"editor.hover.above":{type:"boolean",default:e.above,description:c.kg("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),delay:E.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:_(t.sticky,this.defaultValue.sticky),hidingDelay:E.clampedInt(t.hidingDelay,this.defaultValue.hidingDelay,0,6e5),above:_(t.above,this.defaultValue.above)}}}),inDiffEditor:B(new v(61,"inDiffEditor",!1)),letterSpacing:B(new S(64,"letterSpacing",U.letterSpacing,(e=>S.clamp(e,-5,20)),{description:c.kg("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:B(new class extends u{constructor(){const e={enabled:x.OnCode};super(65,"lightbulb",e,{"editor.lightbulb.enabled":{type:"string",tags:["experimental"],enum:[x.Off,x.OnCode,x.On],default:e.enabled,enumDescriptions:[c.kg("editor.lightbulb.enabled.off","Disable the code action menu."),c.kg("editor.lightbulb.enabled.onCode","Show the code action menu when the cursor is on lines with code."),c.kg("editor.lightbulb.enabled.on","Show the code action menu when the cursor is on lines with code or on empty lines.")],description:c.kg("enabled","Enables the Code Action lightbulb in the editor.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;return{enabled:w(e.enabled,this.defaultValue.enabled,[x.Off,x.OnCode,x.On])}}}),lineDecorationsWidth:B(new class extends u{constructor(){super(66,"lineDecorationsWidth",10)}validate(e){if("string"===typeof e&&/^\d+(\.\d+)?ch$/.test(e)){return-parseFloat(e.substring(0,e.length-2))}return E.clampedInt(e,this.defaultValue,0,1e3)}compute(e,t,i){return i<0?E.clampedInt(-i*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):i}}),lineHeight:B(new class extends S{constructor(){super(67,"lineHeight",U.lineHeight,(e=>S.clamp(e,0,150)),{markdownDescription:c.kg("lineHeight","Controls the line height. \n - Use 0 to automatically compute the line height from the font size.\n - Values between 0 and 8 will be used as a multiplier with the font size.\n - Values greater than or equal to 8 will be used as effective values.")})}compute(e,t,i){return e.fontInfo.lineHeight}}),lineNumbers:B(new class extends u{constructor(){super(68,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[c.kg("lineNumbers.off","Line numbers are not rendered."),c.kg("lineNumbers.on","Line numbers are rendered as absolute number."),c.kg("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),c.kg("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:c.kg("lineNumbers","Controls the display of line numbers.")})}validate(e){let t=this.defaultValue.renderType,i=this.defaultValue.renderFn;return"undefined"!==typeof e&&("function"===typeof e?(t=4,i=e):t="interval"===e?3:"relative"===e?2:"on"===e?1:0),{renderType:t,renderFn:i}}}),lineNumbersMinChars:B(new E(69,"lineNumbersMinChars",5,1,300)),linkedEditing:B(new v(70,"linkedEditing",!1,{description:c.kg("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing.")})),links:B(new v(71,"links",!0,{description:c.kg("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:B(new R(72,"matchBrackets","always",["always","near","never"],{description:c.kg("matchBrackets","Highlight matching brackets.")})),minimap:B(new class extends u{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1,showRegionSectionHeaders:!0,showMarkSectionHeaders:!0,sectionHeaderFontSize:9,sectionHeaderLetterSpacing:1};super(73,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:c.kg("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:e.autohide,description:c.kg("minimap.autohide","Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[c.kg("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),c.kg("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),c.kg("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:c.kg("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:c.kg("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:c.kg("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:c.kg("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:c.kg("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:c.kg("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")},"editor.minimap.showRegionSectionHeaders":{type:"boolean",default:e.showRegionSectionHeaders,description:c.kg("minimap.showRegionSectionHeaders","Controls whether named regions are shown as section headers in the minimap.")},"editor.minimap.showMarkSectionHeaders":{type:"boolean",default:e.showMarkSectionHeaders,description:c.kg("minimap.showMarkSectionHeaders","Controls whether MARK: comments are shown as section headers in the minimap.")},"editor.minimap.sectionHeaderFontSize":{type:"number",default:e.sectionHeaderFontSize,description:c.kg("minimap.sectionHeaderFontSize","Controls the font size of section headers in the minimap.")},"editor.minimap.sectionHeaderLetterSpacing":{type:"number",default:e.sectionHeaderLetterSpacing,description:c.kg("minimap.sectionHeaderLetterSpacing","Controls the amount of space (in pixels) between characters of section header. This helps the readability of the header in small font sizes.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),autohide:_(t.autohide,this.defaultValue.autohide),size:w(t.size,this.defaultValue.size,["proportional","fill","fit"]),side:w(t.side,this.defaultValue.side,["right","left"]),showSlider:w(t.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:_(t.renderCharacters,this.defaultValue.renderCharacters),scale:E.clampedInt(t.scale,1,1,3),maxColumn:E.clampedInt(t.maxColumn,this.defaultValue.maxColumn,1,1e4),showRegionSectionHeaders:_(t.showRegionSectionHeaders,this.defaultValue.showRegionSectionHeaders),showMarkSectionHeaders:_(t.showMarkSectionHeaders,this.defaultValue.showMarkSectionHeaders),sectionHeaderFontSize:S.clamp(t.sectionHeaderFontSize??this.defaultValue.sectionHeaderFontSize,4,32),sectionHeaderLetterSpacing:S.clamp(t.sectionHeaderLetterSpacing??this.defaultValue.sectionHeaderLetterSpacing,0,5)}}}),mouseStyle:B(new R(74,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:B(new S(75,"mouseWheelScrollSensitivity",1,(e=>0===e?1:e),{markdownDescription:c.kg("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:B(new v(76,"mouseWheelZoom",!1,{markdownDescription:r.zx?c.kg("mouseWheelZoom.mac","Zoom the font of the editor when using mouse wheel and holding `Cmd`."):c.kg("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:B(new v(77,"multiCursorMergeOverlapping",!0,{description:c.kg("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:B(new L(78,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],(function(e){return"ctrlCmd"===e?r.zx?"metaKey":"ctrlKey":"altKey"}),{markdownEnumDescriptions:[c.kg("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),c.kg("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:c.kg({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the [multicursor modifier](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:B(new R(79,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[c.kg("multiCursorPaste.spread","Each cursor pastes a single line of the text."),c.kg("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:c.kg("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),multiCursorLimit:B(new E(80,"multiCursorLimit",1e4,1,1e5,{markdownDescription:c.kg("multiCursorLimit","Controls the max number of cursors that can be in an active editor at once.")})),occurrencesHighlight:B(new R(81,"occurrencesHighlight","singleFile",["off","singleFile","multiFile"],{markdownEnumDescriptions:[c.kg("occurrencesHighlight.off","Does not highlight occurrences."),c.kg("occurrencesHighlight.singleFile","Highlights occurrences only in the current file."),c.kg("occurrencesHighlight.multiFile","Experimental: Highlights occurrences across all valid open files.")],markdownDescription:c.kg("occurrencesHighlight","Controls whether occurrences should be highlighted across open files.")})),overviewRulerBorder:B(new v(82,"overviewRulerBorder",!0,{description:c.kg("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:B(new E(83,"overviewRulerLanes",3,0,3)),padding:B(new class extends u{constructor(){super(84,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:c.kg("padding.top","Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:c.kg("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{top:E.clampedInt(t.top,0,0,1e3),bottom:E.clampedInt(t.bottom,0,0,1e3)}}}),pasteAs:B(new class extends u{constructor(){const e={enabled:!0,showPasteSelector:"afterPaste"};super(85,"pasteAs",e,{"editor.pasteAs.enabled":{type:"boolean",default:e.enabled,markdownDescription:c.kg("pasteAs.enabled","Controls whether you can paste content in different ways.")},"editor.pasteAs.showPasteSelector":{type:"string",markdownDescription:c.kg("pasteAs.showPasteSelector","Controls if a widget is shown when pasting content in to the editor. This widget lets you control how the file is pasted."),enum:["afterPaste","never"],enumDescriptions:[c.kg("pasteAs.showPasteSelector.afterPaste","Show the paste selector widget after content is pasted into the editor."),c.kg("pasteAs.showPasteSelector.never","Never show the paste selector widget. Instead the default pasting behavior is always used.")],default:"afterPaste"}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),showPasteSelector:w(t.showPasteSelector,this.defaultValue.showPasteSelector,["afterPaste","never"])}}}),parameterHints:B(new class extends u{constructor(){const e={enabled:!0,cycle:!0};super(86,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:c.kg("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:c.kg("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),cycle:_(t.cycle,this.defaultValue.cycle)}}}),peekWidgetDefaultFocus:B(new R(87,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[c.kg("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),c.kg("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:c.kg("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),placeholder:B(new class extends u{constructor(){super(88,"placeholder",void 0)}validate(e){return"undefined"===typeof e?this.defaultValue:"string"===typeof e?e:this.defaultValue}}),definitionLinkOpensInPeek:B(new v(89,"definitionLinkOpensInPeek",!1,{description:c.kg("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:B(new class extends u{constructor(){const e={other:"on",comments:"off",strings:"off"},t=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[c.kg("on","Quick suggestions show inside the suggest widget"),c.kg("inline","Quick suggestions show as ghost text"),c.kg("off","Quick suggestions are disabled")]}];super(90,"quickSuggestions",e,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:t,default:e.strings,description:c.kg("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{anyOf:t,default:e.comments,description:c.kg("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{anyOf:t,default:e.other,description:c.kg("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}},default:e,markdownDescription:c.kg("quickSuggestions","Controls whether suggestions should automatically show up while typing. This can be controlled for typing in comments, strings, and other code. Quick suggestion can be configured to show as ghost text or with the suggest widget. Also be aware of the {0}-setting which controls if suggestions are triggered by special characters.","`#editor.suggestOnTriggerCharacters#`")}),this.defaultValue=e}validate(e){if("boolean"===typeof e){const t=e?"on":"off";return{comments:t,strings:t,other:t}}if(!e||"object"!==typeof e)return this.defaultValue;const{other:t,comments:i,strings:s}=e,n=["on","inline","off"];let r,o,a;return r="boolean"===typeof t?t?"on":"off":w(t,this.defaultValue.other,n),o="boolean"===typeof i?i?"on":"off":w(i,this.defaultValue.comments,n),a="boolean"===typeof s?s?"on":"off":w(s,this.defaultValue.strings,n),{other:r,comments:o,strings:a}}}),quickSuggestionsDelay:B(new E(91,"quickSuggestionsDelay",10,0,1073741824,{description:c.kg("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:B(new v(92,"readOnly",!1)),readOnlyMessage:B(new class extends u{constructor(){super(93,"readOnlyMessage",undefined)}validate(e){return e&&"object"===typeof e?e:this.defaultValue}}),renameOnType:B(new v(94,"renameOnType",!1,{description:c.kg("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:c.kg("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:B(new v(95,"renderControlCharacters",!0,{description:c.kg("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:B(new R(96,"renderFinalNewline",r.j9?"dimmed":"on",["off","on","dimmed"],{description:c.kg("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:B(new R(97,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",c.kg("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:c.kg("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:B(new v(98,"renderLineHighlightOnlyWhenFocus",!1,{description:c.kg("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:B(new R(99,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:B(new R(100,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",c.kg("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),c.kg("renderWhitespace.selection","Render whitespace characters only on selected text."),c.kg("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:c.kg("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:B(new E(101,"revealHorizontalRightPadding",15,0,1e3)),roundedSelection:B(new v(102,"roundedSelection",!0,{description:c.kg("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:B(new class extends u{constructor(){const e=[],t={type:"number",description:c.kg("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(103,"rulers",e,{type:"array",items:{anyOf:[t,{type:["object"],properties:{column:t,color:{type:"string",description:c.kg("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:c.kg("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(e){if(Array.isArray(e)){const t=[];for(const i of e)if("number"===typeof i)t.push({column:E.clampedInt(i,0,0,1e4),color:null});else if(i&&"object"===typeof i){const e=i;t.push({column:E.clampedInt(e.column,0,0,1e4),color:e.color})}return t.sort(((e,t)=>e.column-t.column)),t}return this.defaultValue}}),scrollbar:B(new class extends u{constructor(){const e={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1,ignoreHorizontalScrollbarInContentHeight:!1};super(104,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[c.kg("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),c.kg("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),c.kg("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:c.kg("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[c.kg("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),c.kg("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),c.kg("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:c.kg("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:c.kg("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:c.kg("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:c.kg("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")},"editor.scrollbar.ignoreHorizontalScrollbarInContentHeight":{type:"boolean",default:e.ignoreHorizontalScrollbarInContentHeight,description:c.kg("scrollbar.ignoreHorizontalScrollbarInContentHeight","When set, the horizontal scrollbar will not increase the size of the editor's content.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e,i=E.clampedInt(t.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),s=E.clampedInt(t.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:E.clampedInt(t.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:D(t.vertical,this.defaultValue.vertical),horizontal:D(t.horizontal,this.defaultValue.horizontal),useShadows:_(t.useShadows,this.defaultValue.useShadows),verticalHasArrows:_(t.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:_(t.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:_(t.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:_(t.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:i,horizontalSliderSize:E.clampedInt(t.horizontalSliderSize,i,0,1e3),verticalScrollbarSize:s,verticalSliderSize:E.clampedInt(t.verticalSliderSize,s,0,1e3),scrollByPage:_(t.scrollByPage,this.defaultValue.scrollByPage),ignoreHorizontalScrollbarInContentHeight:_(t.ignoreHorizontalScrollbarInContentHeight,this.defaultValue.ignoreHorizontalScrollbarInContentHeight)}}}),scrollBeyondLastColumn:B(new E(105,"scrollBeyondLastColumn",4,0,1073741824,{description:c.kg("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:B(new v(106,"scrollBeyondLastLine",!0,{description:c.kg("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:B(new v(107,"scrollPredominantAxis",!0,{description:c.kg("scrollPredominantAxis","Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:B(new v(108,"selectionClipboard",!0,{description:c.kg("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:r.j9})),selectionHighlight:B(new v(109,"selectionHighlight",!0,{description:c.kg("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:B(new v(110,"selectOnLineNumbers",!0)),showFoldingControls:B(new R(111,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[c.kg("showFoldingControls.always","Always show the folding controls."),c.kg("showFoldingControls.never","Never show the folding controls and reduce the gutter size."),c.kg("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:c.kg("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:B(new v(112,"showUnused",!0,{description:c.kg("showUnused","Controls fading out of unused code.")})),showDeprecated:B(new v(141,"showDeprecated",!0,{description:c.kg("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:B(new class extends u{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(142,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:c.kg("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[c.kg("editor.inlayHints.on","Inlay hints are enabled"),c.kg("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",r.zx?"Ctrl+Option":"Ctrl+Alt"),c.kg("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",r.zx?"Ctrl+Option":"Ctrl+Alt"),c.kg("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:c.kg("inlayHints.fontSize","Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:c.kg("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:c.kg("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return"boolean"===typeof t.enabled&&(t.enabled=t.enabled?"on":"off"),{enabled:w(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:E.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:y.string(t.fontFamily,this.defaultValue.fontFamily),padding:_(t.padding,this.defaultValue.padding)}}}),snippetSuggestions:B(new R(113,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[c.kg("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),c.kg("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),c.kg("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),c.kg("snippetSuggestions.none","Do not show snippet suggestions.")],description:c.kg("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:B(new class extends u{constructor(){super(114,"smartSelect",{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:c.kg("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"},"editor.smartSelect.selectSubwords":{description:c.kg("selectSubwords","Whether subwords (like 'foo' in 'fooBar' or 'foo_bar') should be selected."),default:!0,type:"boolean"}})}validate(e){return e&&"object"===typeof e?{selectLeadingAndTrailingWhitespace:_(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace),selectSubwords:_(e.selectSubwords,this.defaultValue.selectSubwords)}:this.defaultValue}}),smoothScrolling:B(new v(115,"smoothScrolling",!1,{description:c.kg("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:B(new E(118,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:B(new class extends u{constructor(){const e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!1,localityBonus:!1,shareSuggestSelections:!1,selectionMode:"always",showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,matchOnWordStartOnly:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(119,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[c.kg("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),c.kg("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:c.kg("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:c.kg("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:c.kg("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:c.kg("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.selectionMode":{type:"string",enum:["always","never","whenTriggerCharacter","whenQuickSuggestion"],enumDescriptions:[c.kg("suggest.insertMode.always","Always select a suggestion when automatically triggering IntelliSense."),c.kg("suggest.insertMode.never","Never select a suggestion when automatically triggering IntelliSense."),c.kg("suggest.insertMode.whenTriggerCharacter","Select a suggestion only when triggering IntelliSense from a trigger character."),c.kg("suggest.insertMode.whenQuickSuggestion","Select a suggestion only when triggering IntelliSense as you type.")],default:e.selectionMode,markdownDescription:c.kg("suggest.selectionMode","Controls whether a suggestion is selected when the widget shows. Note that this only applies to automatically triggered suggestions ({0} and {1}) and that a suggestion is always selected when explicitly invoked, e.g via `Ctrl+Space`.","`#editor.quickSuggestions#`","`#editor.suggestOnTriggerCharacters#`")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:c.kg("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:c.kg("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:c.kg("suggest.showStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:c.kg("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:c.kg("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget.")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:c.kg("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:c.kg("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.matchOnWordStartOnly","When enabled IntelliSense filtering requires that the first character matches on a word start. For example, `c` on `Console` or `WebContext` but _not_ on `description`. When disabled IntelliSense will show more results but still sorts them by match quality.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{insertMode:w(t.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:_(t.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:_(t.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:_(t.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:_(t.shareSuggestSelections,this.defaultValue.shareSuggestSelections),selectionMode:w(t.selectionMode,this.defaultValue.selectionMode,["always","never","whenQuickSuggestion","whenTriggerCharacter"]),showIcons:_(t.showIcons,this.defaultValue.showIcons),showStatusBar:_(t.showStatusBar,this.defaultValue.showStatusBar),preview:_(t.preview,this.defaultValue.preview),previewMode:w(t.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:_(t.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:_(t.showMethods,this.defaultValue.showMethods),showFunctions:_(t.showFunctions,this.defaultValue.showFunctions),showConstructors:_(t.showConstructors,this.defaultValue.showConstructors),showDeprecated:_(t.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:_(t.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:_(t.showFields,this.defaultValue.showFields),showVariables:_(t.showVariables,this.defaultValue.showVariables),showClasses:_(t.showClasses,this.defaultValue.showClasses),showStructs:_(t.showStructs,this.defaultValue.showStructs),showInterfaces:_(t.showInterfaces,this.defaultValue.showInterfaces),showModules:_(t.showModules,this.defaultValue.showModules),showProperties:_(t.showProperties,this.defaultValue.showProperties),showEvents:_(t.showEvents,this.defaultValue.showEvents),showOperators:_(t.showOperators,this.defaultValue.showOperators),showUnits:_(t.showUnits,this.defaultValue.showUnits),showValues:_(t.showValues,this.defaultValue.showValues),showConstants:_(t.showConstants,this.defaultValue.showConstants),showEnums:_(t.showEnums,this.defaultValue.showEnums),showEnumMembers:_(t.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:_(t.showKeywords,this.defaultValue.showKeywords),showWords:_(t.showWords,this.defaultValue.showWords),showColors:_(t.showColors,this.defaultValue.showColors),showFiles:_(t.showFiles,this.defaultValue.showFiles),showReferences:_(t.showReferences,this.defaultValue.showReferences),showFolders:_(t.showFolders,this.defaultValue.showFolders),showTypeParameters:_(t.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:_(t.showSnippets,this.defaultValue.showSnippets),showUsers:_(t.showUsers,this.defaultValue.showUsers),showIssues:_(t.showIssues,this.defaultValue.showIssues)}}}),inlineSuggest:B(new class extends u{constructor(){const e={enabled:!0,mode:"subwordSmart",showToolbar:"onHover",suppressSuggestions:!1,keepOnBlur:!1,fontFamily:"default"};super(62,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:c.kg("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")},"editor.inlineSuggest.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[c.kg("inlineSuggest.showToolbar.always","Show the inline suggestion toolbar whenever an inline suggestion is shown."),c.kg("inlineSuggest.showToolbar.onHover","Show the inline suggestion toolbar when hovering over an inline suggestion."),c.kg("inlineSuggest.showToolbar.never","Never show the inline suggestion toolbar.")],description:c.kg("inlineSuggest.showToolbar","Controls when to show the inline suggestion toolbar.")},"editor.inlineSuggest.suppressSuggestions":{type:"boolean",default:e.suppressSuggestions,description:c.kg("inlineSuggest.suppressSuggestions","Controls how inline suggestions interact with the suggest widget. If enabled, the suggest widget is not shown automatically when inline suggestions are available.")},"editor.inlineSuggest.fontFamily":{type:"string",default:e.fontFamily,description:c.kg("inlineSuggest.fontFamily","Controls the font family of the inline suggestions.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),mode:w(t.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"]),showToolbar:w(t.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),suppressSuggestions:_(t.suppressSuggestions,this.defaultValue.suppressSuggestions),keepOnBlur:_(t.keepOnBlur,this.defaultValue.keepOnBlur),fontFamily:y.string(t.fontFamily,this.defaultValue.fontFamily)}}}),inlineEdit:B(new class extends u{constructor(){const e={enabled:!1,showToolbar:"onHover",fontFamily:"default",keepOnBlur:!1};super(63,"experimentalInlineEdit",e,{"editor.experimentalInlineEdit.enabled":{type:"boolean",default:e.enabled,description:c.kg("inlineEdit.enabled","Controls whether to show inline edits in the editor.")},"editor.experimentalInlineEdit.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[c.kg("inlineEdit.showToolbar.always","Show the inline edit toolbar whenever an inline suggestion is shown."),c.kg("inlineEdit.showToolbar.onHover","Show the inline edit toolbar when hovering over an inline suggestion."),c.kg("inlineEdit.showToolbar.never","Never show the inline edit toolbar.")],description:c.kg("inlineEdit.showToolbar","Controls when to show the inline edit toolbar.")},"editor.experimentalInlineEdit.fontFamily":{type:"string",default:e.fontFamily,description:c.kg("inlineEdit.fontFamily","Controls the font family of the inline edit.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),showToolbar:w(t.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),fontFamily:y.string(t.fontFamily,this.defaultValue.fontFamily),keepOnBlur:_(t.keepOnBlur,this.defaultValue.keepOnBlur)}}}),inlineCompletionsAccessibilityVerbose:B(new v(150,"inlineCompletionsAccessibilityVerbose",!1,{description:c.kg("inlineCompletionsAccessibilityVerbose","Controls whether the accessibility hint should be provided to screen reader users when an inline completion is shown.")})),suggestFontSize:B(new E(120,"suggestFontSize",0,0,1e3,{markdownDescription:c.kg("suggestFontSize","Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),suggestLineHeight:B(new E(121,"suggestLineHeight",0,0,1e3,{markdownDescription:c.kg("suggestLineHeight","Line height for the suggest widget. When set to {0}, the value of {1} is used. The minimum value is 8.","`0`","`#editor.lineHeight#`")})),suggestOnTriggerCharacters:B(new v(122,"suggestOnTriggerCharacters",!0,{description:c.kg("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:B(new R(123,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[c.kg("suggestSelection.first","Always select the first suggestion."),c.kg("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),c.kg("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:c.kg("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:B(new R(124,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[c.kg("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),c.kg("tabCompletion.off","Disable tab completions."),c.kg("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:c.kg("tabCompletion","Enables tab completions.")})),tabIndex:B(new E(125,"tabIndex",0,-1,1073741824)),unicodeHighlight:B(new class extends u{constructor(){const e={nonBasicASCII:M,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:M,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(126,"unicodeHighlight",e,{[P.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,M],default:e.nonBasicASCII,description:c.kg("unicodeHighlight.nonBasicASCII","Controls whether all non-basic ASCII characters are highlighted. Only characters between U+0020 and U+007E, tab, line-feed and carriage-return are considered basic ASCII.")},[P.invisibleCharacters]:{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:c.kg("unicodeHighlight.invisibleCharacters","Controls whether characters that just reserve space or have no width at all are highlighted.")},[P.ambiguousCharacters]:{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:c.kg("unicodeHighlight.ambiguousCharacters","Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},[P.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,M],default:e.includeComments,description:c.kg("unicodeHighlight.includeComments","Controls whether characters in comments should also be subject to Unicode highlighting.")},[P.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,M],default:e.includeStrings,description:c.kg("unicodeHighlight.includeStrings","Controls whether characters in strings should also be subject to Unicode highlighting.")},[P.allowedCharacters]:{restricted:!0,type:"object",default:e.allowedCharacters,description:c.kg("unicodeHighlight.allowedCharacters","Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[P.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:e.allowedLocales,description:c.kg("unicodeHighlight.allowedLocales","Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(e,t){let i=!1;t.allowedCharacters&&e&&(n.aI(e.allowedCharacters,t.allowedCharacters)||(e={...e,allowedCharacters:t.allowedCharacters},i=!0)),t.allowedLocales&&e&&(n.aI(e.allowedLocales,t.allowedLocales)||(e={...e,allowedLocales:t.allowedLocales},i=!0));const s=super.applyUpdate(e,t);return i?new g(s.newValue,!0):s}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{nonBasicASCII:F(t.nonBasicASCII,M,[!0,!1,M]),invisibleCharacters:_(t.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:_(t.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:F(t.includeComments,M,[!0,!1,M]),includeStrings:F(t.includeStrings,M,[!0,!1,M]),allowedCharacters:this.validateBooleanMap(e.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(e.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(e,t){if("object"!==typeof e||!e)return t;const i={};for(const[s,n]of Object.entries(e))!0===n&&(i[s]=!0);return i}}),unusualLineTerminators:B(new R(127,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[c.kg("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),c.kg("unusualLineTerminators.off","Unusual line terminators are ignored."),c.kg("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:c.kg("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:B(new v(128,"useShadowDOM",!0)),useTabStops:B(new v(129,"useTabStops",!0,{description:c.kg("useTabStops","Spaces and tabs are inserted and deleted in alignment with tab stops.")})),wordBreak:B(new R(130,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[c.kg("wordBreak.normal","Use the default line break rule."),c.kg("wordBreak.keepAll","Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal.")],description:c.kg("wordBreak","Controls the word break rules used for Chinese/Japanese/Korean (CJK) text.")})),wordSegmenterLocales:B(new class extends u{constructor(){super(131,"wordSegmenterLocales",[],{anyOf:[{description:c.kg("wordSegmenterLocales","Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"string"},{description:c.kg("wordSegmenterLocales","Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"array",items:{type:"string"}}]})}validate(e){if("string"===typeof e&&(e=[e]),Array.isArray(e)){const t=[];for(const i of e)if("string"===typeof i)try{Intl.Segmenter.supportedLocalesOf(i).length>0&&t.push(i)}catch{}return t}return this.defaultValue}}),wordSeparators:B(new y(132,"wordSeparators",a.J3,{description:c.kg("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:B(new R(133,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[c.kg("wordWrap.off","Lines will never wrap."),c.kg("wordWrap.on","Lines will wrap at the viewport width."),c.kg({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),c.kg({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:c.kg({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:B(new y(134,"wordWrapBreakAfterCharacters"," \t})]?|/&.,;\xa2\xb0\u2032\u2033\u2030\u2103\u3001\u3002\uff61\uff64\uffe0\uff0c\uff0e\uff1a\uff1b\uff1f\uff01\uff05\u30fb\uff65\u309d\u309e\u30fd\u30fe\u30fc\u30a1\u30a3\u30a5\u30a7\u30a9\u30c3\u30e3\u30e5\u30e7\u30ee\u30f5\u30f6\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308e\u3095\u3096\u31f0\u31f1\u31f2\u31f3\u31f4\u31f5\u31f6\u31f7\u31f8\u31f9\u31fa\u31fb\u31fc\u31fd\u31fe\u31ff\u3005\u303b\uff67\uff68\uff69\uff6a\uff6b\uff6c\uff6d\uff6e\uff6f\uff70\u201d\u3009\u300b\u300d\u300f\u3011\u3015\uff09\uff3d\uff5d\uff63")),wordWrapBreakBeforeCharacters:B(new y(135,"wordWrapBreakBeforeCharacters","([{\u2018\u201c\u3008\u300a\u300c\u300e\u3010\u3014\uff08\uff3b\uff5b\uff62\xa3\xa5\uff04\uffe1\uffe5+\uff0b")),wordWrapColumn:B(new E(136,"wordWrapColumn",80,1,1073741824,{markdownDescription:c.kg({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:B(new R(137,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:B(new R(138,"wordWrapOverride2","inherit",["off","on","inherit"])),editorClassName:B(new class extends m{constructor(){super(143)}compute(e,t,i){const s=["monaco-editor"];return t.get(39)&&s.push(t.get(39)),e.extraEditorClassName&&s.push(e.extraEditorClassName),"default"===t.get(74)?s.push("mouse-default"):"copy"===t.get(74)&&s.push("mouse-copy"),t.get(112)&&s.push("showUnused"),t.get(141)&&s.push("showDeprecated"),s.join(" ")}}),defaultColorDecorators:B(new v(148,"defaultColorDecorators",!1,{markdownDescription:c.kg("defaultColorDecorators","Controls whether inline color decorations should be shown using the default document color provider")})),pixelRatio:B(new class extends m{constructor(){super(144)}compute(e,t,i){return e.pixelRatio}}),tabFocusMode:B(new v(145,"tabFocusMode",!1,{markdownDescription:c.kg("tabFocusMode","Controls whether the editor receives tabs or defers them to the workbench for navigation.")})),layoutInfo:B(new I),wrappingInfo:B(new class extends m{constructor(){super(147)}compute(e,t,i){const s=t.get(146);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:s.isWordWrapMinified,isViewportWrapping:s.isViewportWrapping,wrappingColumn:s.wrappingColumn}}}),wrappingIndent:B(new class extends u{constructor(){super(139,"wrappingIndent",1,{"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[c.kg("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),c.kg("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),c.kg("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),c.kg("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:c.kg("wrappingIndent","Controls the indentation of wrapped lines."),default:"same"}})}validate(e){switch(e){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}return 1}compute(e,t,i){return 2===t.get(2)?0:i}}),wrappingStrategy:B(new class extends u{constructor(){super(140,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[c.kg("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),c.kg("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:c.kg("wrappingStrategy","Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(e){return w(e,"simple",["simple","advanced"])}compute(e,t,i){return 2===t.get(2)?"advanced":i}})}},87958:(e,t,i)=>{"use strict";i.d(t,{C:()=>d,a0:()=>p,dQ:()=>h,nb:()=>u,rm:()=>g,un:()=>l});var s=i(66782),n=i(51241),r=i(5662),o=i(49154),a=i(22311),c=i(94958);function l(e,t){return void 0!==t?new m(new a.nA(e,void 0,t),t,void 0,void 0,void 0,n.nx):new m(new a.nA(void 0,void 0,e),e,void 0,void 0,void 0,n.nx)}function h(e,t,i){return new f(new a.nA(e,void 0,t),t,void 0,void 0,void 0,n.nx,i)}function d(e,t){return new m(new a.nA(e.owner,e.debugName,e.debugReferenceFn),t,void 0,void 0,e.onLastObserverRemoved,e.equalsFn??n.nx)}function u(e,t){return new m(new a.nA(e.owner,e.debugName,void 0),t,e.createEmptyChangeSummary,e.handleChange,void 0,e.equalityComparer??n.nx)}function g(e,t){let i,s;void 0===t?(i=e,s=void 0):(s=e,i=t);const o=new r.Cm;return new m(new a.nA(s,void 0,i),(e=>(o.clear(),i(e,o))),void 0,void 0,(()=>o.dispose()),n.nx)}function p(e,t){let i,s,o;return void 0===t?(i=e,s=void 0):(s=e,i=t),new m(new a.nA(s,void 0,i),(e=>{o?o.clear():o=new r.Cm;const t=i(e);return t&&o.add(t),t}),void 0,void 0,(()=>{o&&(o.dispose(),o=void 0)}),n.nx)}(0,o.N2)(d);class m extends o.ZK{get debugName(){return this._debugNameData.getDebugName(this)??"(anonymous)"}constructor(e,t,i,s,n=void 0,r){super(),this._debugNameData=e,this._computeFn=t,this.createChangeSummary=i,this._handleChange=s,this._handleLastObserverRemoved=n,this._equalityComparator=r,this.state=0,this.value=void 0,this.updateCount=0,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=void 0,this.changeSummary=this.createChangeSummary?.(),(0,c.tZ)()?.handleDerivedCreated(this)}onLastObserverRemoved(){this.state=0,this.value=void 0;for(const e of this.dependencies)e.removeObserver(this);this.dependencies.clear(),this._handleLastObserverRemoved?.()}get(){if(0===this.observers.size){const e=this._computeFn(this,this.createChangeSummary?.());return this.onLastObserverRemoved(),e}do{if(1===this.state)for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break;1===this.state&&(this.state=3),this._recomputeIfNeeded()}while(3!==this.state);return this.value}_recomputeIfNeeded(){if(3===this.state)return;const e=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=e;const t=0!==this.state,i=this.value;this.state=3;const s=this.changeSummary;this.changeSummary=this.createChangeSummary?.();try{this.value=this._computeFn(this,s)}finally{for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}const n=t&&!this._equalityComparator(i,this.value);if((0,c.tZ)()?.handleDerivedRecomputed(this,{oldValue:i,newValue:this.value,change:void 0,didChange:n,hadValue:t}),n)for(const r of this.observers)r.handleChange(this,void 0)}toString(){return`LazyDerived<${this.debugName}>`}beginUpdate(e){this.updateCount++;const t=1===this.updateCount;if(3===this.state&&(this.state=1,!t))for(const i of this.observers)i.handlePossibleChange(this);if(t)for(const i of this.observers)i.beginUpdate(this)}endUpdate(e){if(this.updateCount--,0===this.updateCount){const e=[...this.observers];for(const t of e)t.endUpdate(this)}(0,s.Ft)((()=>this.updateCount>=0))}handlePossibleChange(e){if(3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){this.state=1;for(const e of this.observers)e.handlePossibleChange(this)}}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){const i=!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary),s=3===this.state;if(i&&(1===this.state||s)&&(this.state=2,s))for(const e of this.observers)e.handlePossibleChange(this)}}readObservable(e){e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}addObserver(e){const t=!this.observers.has(e)&&this.updateCount>0;super.addObserver(e),t&&e.beginUpdate(this)}removeObserver(e){const t=this.observers.has(e)&&this.updateCount>0;super.removeObserver(e),t&&e.endUpdate(this)}}class f extends m{constructor(e,t,i,s,n=void 0,r,o){super(e,t,i,s,n,r),this.set=o}}},88415:(e,t,i)=>{"use strict";i.d(t,{GS:()=>E});var s,n=i(90766),r=i(5662),o=i(74320),a=i(4853),c=i(62083),l=i(84001),h=i(14718),d=i(63591),u=i(9711),g=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},p=function(e,t){return function(i,s){t(i,s,e)}};class m{constructor(e){this.name=e}select(e,t,i){if(0===i.length)return 0;const s=i[0].score[0];for(let n=0;n<i.length;n++){const{score:e,completion:t}=i[n];if(e[0]!==s)break;if(t.preselect)return n}return 0}}class f extends m{constructor(){super("first")}memorize(e,t,i){}toJSON(){}fromJSON(){}}class _ extends m{constructor(){super("recentlyUsed"),this._cache=new o.qK(300,.66),this._seq=0}memorize(e,t,i){const s=`${e.getLanguageId()}/${i.textLabel}`;this._cache.set(s,{touch:this._seq++,type:i.completion.kind,insertText:i.completion.insertText})}select(e,t,i){if(0===i.length)return 0;const s=e.getLineContent(t.lineNumber).substr(t.column-10,t.column-1);if(/\s$/.test(s))return super.select(e,t,i);const n=i[0].score[0];let r=-1,o=-1,a=-1;for(let c=0;c<i.length&&i[c].score[0]===n;c++){const t=`${e.getLanguageId()}/${i[c].textLabel}`,s=this._cache.peek(t);if(s&&s.touch>a&&s.type===i[c].completion.kind&&s.insertText===i[c].completion.insertText&&(a=s.touch,o=c),i[c].completion.preselect&&-1===r)return c}return-1!==o?o:-1!==r?r:0}toJSON(){return this._cache.toJSON()}fromJSON(e){this._cache.clear();for(const[t,i]of e)i.touch=0,i.type="number"===typeof i.type?i.type:c.HC.fromString(i.type),this._cache.set(t,i);this._seq=this._cache.size}}class v extends m{constructor(){super("recentlyUsedByPrefix"),this._trie=a.cB.forStrings(),this._seq=0}memorize(e,t,i){const{word:s}=e.getWordUntilPosition(t),n=`${e.getLanguageId()}/${s}`;this._trie.set(n,{type:i.completion.kind,insertText:i.completion.insertText,touch:this._seq++})}select(e,t,i){const{word:s}=e.getWordUntilPosition(t);if(!s)return super.select(e,t,i);const n=`${e.getLanguageId()}/${s}`;let r=this._trie.get(n);if(r||(r=this._trie.findSubstr(n)),r)for(let o=0;o<i.length;o++){const{kind:e,insertText:t}=i[o].completion;if(e===r.type&&t===r.insertText)return o}return super.select(e,t,i)}toJSON(){const e=[];return this._trie.forEach(((t,i)=>e.push([i,t]))),e.sort(((e,t)=>-(e[1].touch-t[1].touch))).forEach(((e,t)=>e[1].touch=t)),e.slice(0,200)}fromJSON(e){if(this._trie.clear(),e.length>0){this._seq=e[0][1].touch+1;for(const[t,i]of e)i.type="number"===typeof i.type?i.type:c.HC.fromString(i.type),this._trie.set(t,i)}}}let C=class{static{s=this}static{this._strategyCtors=new Map([["recentlyUsedByPrefix",v],["recentlyUsed",_],["first",f]])}static{this._storagePrefix="suggest/memories"}constructor(e,t){this._storageService=e,this._configService=t,this._disposables=new r.Cm,this._persistSoon=new n.uC((()=>this._saveState()),500),this._disposables.add(e.onWillSaveState((e=>{e.reason===u.LP.SHUTDOWN&&this._saveState()})))}dispose(){this._disposables.dispose(),this._persistSoon.dispose()}memorize(e,t,i){this._withStrategy(e,t).memorize(e,t,i),this._persistSoon.schedule()}select(e,t,i){return this._withStrategy(e,t).select(e,t,i)}_withStrategy(e,t){const i=this._configService.getValue("editor.suggestSelection",{overrideIdentifier:e.getLanguageIdAtPosition(t.lineNumber,t.column),resource:e.uri});if(this._strategy?.name!==i){this._saveState();const e=s._strategyCtors.get(i)||f;this._strategy=new e;try{const e=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,t=this._storageService.get(`${s._storagePrefix}/${i}`,e);t&&this._strategy.fromJSON(JSON.parse(t))}catch(n){}}return this._strategy}_saveState(){if(this._strategy){const e=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,t=JSON.stringify(this._strategy);this._storageService.store(`${s._storagePrefix}/${this._strategy.name}`,t,e,1)}}};C=s=g([p(0,u.CS),p(1,l.pG)],C);const E=(0,d.u1)("ISuggestMemories");(0,h.v)(E,C,1)},88443:(e,t,i)=>{"use strict";i.d(t,{c:()=>u});var s=i(8597),n=i(23034),r=i(91581),o=i(17390),a=i(41234),c=(i(10713),i(78209)),l=i(5662),h=i(42904);const d=c.kg("defaultLabel","input");class u extends o.x{constructor(e,t,i){super(),this.fixFocusOnOptionClickEnabled=!0,this.imeSessionInProgress=!1,this.additionalTogglesDisposables=this._register(new l.HE),this.additionalToggles=[],this._onDidOptionChange=this._register(new a.vl),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new a.vl),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new a.vl),this.onMouseDown=this._onMouseDown.event,this._onInput=this._register(new a.vl),this._onKeyUp=this._register(new a.vl),this._onCaseSensitiveKeyDown=this._register(new a.vl),this.onCaseSensitiveKeyDown=this._onCaseSensitiveKeyDown.event,this._onRegexKeyDown=this._register(new a.vl),this.onRegexKeyDown=this._onRegexKeyDown.event,this._lastHighlightFindOptions=0,this.placeholder=i.placeholder||"",this.validation=i.validation,this.label=i.label||d,this.showCommonFindToggles=!!i.showCommonFindToggles;const o=i.appendCaseSensitiveLabel||"",c=i.appendWholeWordsLabel||"",u=i.appendRegexLabel||"",g=i.history||[],p=!!i.flexibleHeight,m=!!i.flexibleWidth,f=i.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new r.mJ(this.domNode,t,{placeholder:this.placeholder||"",ariaLabel:this.label||"",validationOptions:{validation:this.validation},history:g,showHistoryHint:i.showHistoryHint,flexibleHeight:p,flexibleWidth:m,flexibleMaxHeight:f,inputBoxStyles:i.inputBoxStyles}));const _=this._register((0,h.bW)());if(this.showCommonFindToggles){this.regex=this._register(new n.Ix({appendTitle:u,isChecked:!1,hoverDelegate:_,...i.toggleStyles})),this._register(this.regex.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()}))),this._register(this.regex.onKeyDown((e=>{this._onRegexKeyDown.fire(e)}))),this.wholeWords=this._register(new n.nV({appendTitle:c,isChecked:!1,hoverDelegate:_,...i.toggleStyles})),this._register(this.wholeWords.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()}))),this.caseSensitive=this._register(new n.bc({appendTitle:o,isChecked:!1,hoverDelegate:_,...i.toggleStyles})),this._register(this.caseSensitive.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()}))),this._register(this.caseSensitive.onKeyDown((e=>{this._onCaseSensitiveKeyDown.fire(e)})));const e=[this.caseSensitive.domNode,this.wholeWords.domNode,this.regex.domNode];this.onkeydown(this.domNode,(t=>{if(t.equals(15)||t.equals(17)||t.equals(9)){const i=e.indexOf(this.domNode.ownerDocument.activeElement);if(i>=0){let n=-1;t.equals(17)?n=(i+1)%e.length:t.equals(15)&&(n=0===i?e.length-1:i-1),t.equals(9)?(e[i].blur(),this.inputBox.focus()):n>=0&&e[n].focus(),s.fs.stop(t,!0)}}}))}this.controls=document.createElement("div"),this.controls.className="controls",this.controls.style.display=this.showCommonFindToggles?"":"none",this.caseSensitive&&this.controls.append(this.caseSensitive.domNode),this.wholeWords&&this.controls.appendChild(this.wholeWords.domNode),this.regex&&this.controls.appendChild(this.regex.domNode),this.setAdditionalToggles(i?.additionalToggles),this.controls&&this.domNode.appendChild(this.controls),e?.appendChild(this.domNode),this._register(s.ko(this.inputBox.inputElement,"compositionstart",(e=>{this.imeSessionInProgress=!0}))),this._register(s.ko(this.inputBox.inputElement,"compositionend",(e=>{this.imeSessionInProgress=!1,this._onInput.fire()}))),this.onkeydown(this.inputBox.inputElement,(e=>this._onKeyDown.fire(e))),this.onkeyup(this.inputBox.inputElement,(e=>this._onKeyUp.fire(e))),this.oninput(this.inputBox.inputElement,(e=>this._onInput.fire())),this.onmousedown(this.inputBox.inputElement,(e=>this._onMouseDown.fire(e)))}get onDidChange(){return this.inputBox.onDidChange}layout(e){this.inputBox.layout(),this.updateInputBoxPadding(e.collapsedFindWidget)}enable(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.regex?.enable(),this.wholeWords?.enable(),this.caseSensitive?.enable();for(const e of this.additionalToggles)e.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.regex?.disable(),this.wholeWords?.disable(),this.caseSensitive?.disable();for(const e of this.additionalToggles)e.disable()}setFocusInputOnOptionClick(e){this.fixFocusOnOptionClickEnabled=e}setEnabled(e){e?this.enable():this.disable()}setAdditionalToggles(e){for(const t of this.additionalToggles)t.domNode.remove();this.additionalToggles=[],this.additionalTogglesDisposables.value=new l.Cm;for(const t of e??[])this.additionalTogglesDisposables.value.add(t),this.controls.appendChild(t.domNode),this.additionalTogglesDisposables.value.add(t.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus()}))),this.additionalToggles.push(t);this.additionalToggles.length>0&&(this.controls.style.display=""),this.updateInputBoxPadding()}updateInputBoxPadding(e=!1){this.inputBox.paddingRight=e?0:(this.caseSensitive?.width()??0)+(this.wholeWords?.width()??0)+(this.regex?.width()??0)+this.additionalToggles.reduce(((e,t)=>e+t.width()),0)}getValue(){return this.inputBox.value}setValue(e){this.inputBox.value!==e&&(this.inputBox.value=e)}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getCaseSensitive(){return this.caseSensitive?.checked??!1}setCaseSensitive(e){this.caseSensitive&&(this.caseSensitive.checked=e)}getWholeWords(){return this.wholeWords?.checked??!1}setWholeWords(e){this.wholeWords&&(this.wholeWords.checked=e)}getRegex(){return this.regex?.checked??!1}setRegex(e){this.regex&&(this.regex.checked=e,this.validate())}focusOnCaseSensitive(){this.caseSensitive?.focus()}highlightFindOptions(){this.domNode.classList.remove("highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,this.domNode.classList.add("highlight-"+this._lastHighlightFindOptions)}validate(){this.inputBox.validate()}showMessage(e){this.inputBox.showMessage(e)}clearMessage(){this.inputBox.hideMessage()}}},88608:(e,t,i)=>{e.exports=function(){const e=i(94297);function t(t,i){return"json"===t.format?e.escapeJSONString(t,i):e.escapeYSONString(t,i)}function s(i,s){let n,r;return i.$key&&"yson"===s.format?(n=e.unescapeKeyValue(i.$value),r=e.unescapeKeyValue(i.$decoded_value)):(n=i.$value,r=i.$decoded_value),i.$binary?s.binaryAsHex?e.escapeYSONBinaryString(s,n):t(s,n):s.showDecoded?e.escapeJSONString(s,r):t(s,n)}return s.isScalar=!0,s}},88807:(e,t,i)=>{"use strict";i.d(t,{v:()=>a});var s=i(8597),n=i(92403),r=i(41234),o=i(5662);class a{constructor(){let e;this._onDidWillResize=new r.vl,this.onDidWillResize=this._onDidWillResize.event,this._onDidResize=new r.vl,this.onDidResize=this._onDidResize.event,this._sashListener=new o.Cm,this._size=new s.fg(0,0),this._minSize=new s.fg(0,0),this._maxSize=new s.fg(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER),this.domNode=document.createElement("div"),this._eastSash=new n.m(this.domNode,{getVerticalSashLeft:()=>this._size.width},{orientation:0}),this._westSash=new n.m(this.domNode,{getVerticalSashLeft:()=>0},{orientation:0}),this._northSash=new n.m(this.domNode,{getHorizontalSashTop:()=>0},{orientation:1,orthogonalEdge:n.B.North}),this._southSash=new n.m(this.domNode,{getHorizontalSashTop:()=>this._size.height},{orientation:1,orthogonalEdge:n.B.South}),this._northSash.orthogonalStartSash=this._westSash,this._northSash.orthogonalEndSash=this._eastSash,this._southSash.orthogonalStartSash=this._westSash,this._southSash.orthogonalEndSash=this._eastSash;let t=0,i=0;this._sashListener.add(r.Jh.any(this._northSash.onDidStart,this._eastSash.onDidStart,this._southSash.onDidStart,this._westSash.onDidStart)((()=>{void 0===e&&(this._onDidWillResize.fire(),e=this._size,t=0,i=0)}))),this._sashListener.add(r.Jh.any(this._northSash.onDidEnd,this._eastSash.onDidEnd,this._southSash.onDidEnd,this._westSash.onDidEnd)((()=>{void 0!==e&&(e=void 0,t=0,i=0,this._onDidResize.fire({dimension:this._size,done:!0}))}))),this._sashListener.add(this._eastSash.onDidChange((s=>{e&&(i=s.currentX-s.startX,this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,east:!0}))}))),this._sashListener.add(this._westSash.onDidChange((s=>{e&&(i=-(s.currentX-s.startX),this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,west:!0}))}))),this._sashListener.add(this._northSash.onDidChange((s=>{e&&(t=-(s.currentY-s.startY),this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,north:!0}))}))),this._sashListener.add(this._southSash.onDidChange((s=>{e&&(t=s.currentY-s.startY,this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,south:!0}))}))),this._sashListener.add(r.Jh.any(this._eastSash.onDidReset,this._westSash.onDidReset)((e=>{this._preferredSize&&(this.layout(this._size.height,this._preferredSize.width),this._onDidResize.fire({dimension:this._size,done:!0}))}))),this._sashListener.add(r.Jh.any(this._northSash.onDidReset,this._southSash.onDidReset)((e=>{this._preferredSize&&(this.layout(this._preferredSize.height,this._size.width),this._onDidResize.fire({dimension:this._size,done:!0}))})))}dispose(){this._northSash.dispose(),this._southSash.dispose(),this._eastSash.dispose(),this._westSash.dispose(),this._sashListener.dispose(),this._onDidResize.dispose(),this._onDidWillResize.dispose(),this.domNode.remove()}enableSashes(e,t,i,s){this._northSash.state=e?3:0,this._eastSash.state=t?3:0,this._southSash.state=i?3:0,this._westSash.state=s?3:0}layout(e=this.size.height,t=this.size.width){const{height:i,width:n}=this._minSize,{height:r,width:o}=this._maxSize;e=Math.max(i,Math.min(r,e)),t=Math.max(n,Math.min(o,t));const a=new s.fg(t,e);s.fg.equals(a,this._size)||(this.domNode.style.height=e+"px",this.domNode.style.width=t+"px",this._size=a,this._northSash.layout(),this._eastSash.layout(),this._southSash.layout(),this._westSash.layout())}clearSashHoverState(){this._eastSash.clearSashHoverState(),this._westSash.clearSashHoverState(),this._northSash.clearSashHoverState(),this._southSash.clearSashHoverState()}get size(){return this._size}set maxSize(e){this._maxSize=e}get maxSize(){return this._maxSize}set minSize(e){this._minSize=e}get minSize(){return this._minSize}set preferredSize(e){this._preferredSize=e}get preferredSize(){return this._preferredSize}}},88834:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},88952:(e,t,i)=>{"use strict";var s=i(90766),n=i(5662),r=i(31450),o=i(83069),a=i(36677),c=i(75326),l=i(60002),h=i(16223),d=i(87289),u=i(78209),g=i(27195),p=i(66261),m=i(47612);const f=(0,p.x1A)("editorOverviewRuler.bracketMatchForeground","#A0A0A0",u.kg("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class _ extends r.ks{constructor(){super({id:"editor.action.jumpToBracket",label:u.kg("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:l.R.editorTextFocus,primary:3165,weight:100}})}run(e,t){b.get(t)?.jumpToBracket()}}class v extends r.ks{constructor(){super({id:"editor.action.selectToBracket",label:u.kg("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,metadata:{description:u.aS("smartSelect.selectToBracketDescription","Select the text inside and including the brackets or curly braces"),args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){let s=!0;i&&!1===i.selectBrackets&&(s=!1),b.get(t)?.selectToBracket(s)}}class C extends r.ks{constructor(){super({id:"editor.action.removeBrackets",label:u.kg("smartSelect.removeBrackets","Remove Brackets"),alias:"Remove Brackets",precondition:void 0,kbOpts:{kbExpr:l.R.editorTextFocus,primary:2561,weight:100}})}run(e,t){b.get(t)?.removeBrackets(this.id)}}class E{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}class b extends n.jG{static{this.ID="editor.contrib.bracketMatchingController"}static get(e){return e.getContribution(b.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new s.uC((()=>this._updateBrackets()),50)),this._matchBrackets=this._editor.getOption(72),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition((e=>{"never"!==this._matchBrackets&&this._updateBracketsSoon.schedule()}))),this._register(e.onDidChangeModelContent((e=>{this._updateBracketsSoon.schedule()}))),this._register(e.onDidChangeModel((e=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()}))),this._register(e.onDidChangeModelLanguageConfiguration((e=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()}))),this._register(e.onDidChangeConfiguration((e=>{e.hasChanged(72)&&(this._matchBrackets=this._editor.getOption(72),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())}))),this._register(e.onDidBlurEditorWidget((()=>{this._updateBracketsSoon.schedule()}))),this._register(e.onDidFocusEditorWidget((()=>{this._updateBracketsSoon.schedule()})))}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map((t=>{const i=t.getStartPosition(),s=e.bracketPairs.matchBracket(i);let n=null;if(s)s[0].containsPosition(i)&&!s[1].containsPosition(i)?n=s[1].getStartPosition():s[1].containsPosition(i)&&(n=s[0].getStartPosition());else{const t=e.bracketPairs.findEnclosingBrackets(i);if(t)n=t[1].getStartPosition();else{const t=e.bracketPairs.findNextBracket(i);t&&t.range&&(n=t.range.getStartPosition())}}return n?new c.L(n.lineNumber,n.column,n.lineNumber,n.column):new c.L(i.lineNumber,i.column,i.lineNumber,i.column)}));this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach((s=>{const n=s.getStartPosition();let r=t.bracketPairs.matchBracket(n);if(!r&&(r=t.bracketPairs.findEnclosingBrackets(n),!r)){const e=t.bracketPairs.findNextBracket(n);e&&e.range&&(r=t.bracketPairs.matchBracket(e.range.getStartPosition()))}let o=null,l=null;if(r){r.sort(a.Q.compareRangesUsingStarts);const[t,i]=r;if(o=e?t.getStartPosition():t.getEndPosition(),l=e?i.getEndPosition():i.getStartPosition(),i.containsPosition(n)){const e=o;o=l,l=e}}o&&l&&i.push(new c.L(o.lineNumber,o.column,l.lineNumber,l.column))})),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}removeBrackets(e){if(!this._editor.hasModel())return;const t=this._editor.getModel();this._editor.getSelections().forEach((i=>{const s=i.getPosition();let n=t.bracketPairs.matchBracket(s);n||(n=t.bracketPairs.findEnclosingBrackets(s)),n&&(this._editor.pushUndoStop(),this._editor.executeEdits(e,[{range:n[0],text:""},{range:n[1],text:""}]),this._editor.pushUndoStop())}))}static{this._DECORATION_OPTIONS_WITH_OVERVIEW_RULER=d.kI.register({description:"bracket-match-overview",stickiness:1,className:"bracket-match",overviewRuler:{color:(0,m.Yf)(f),position:h.A5.Center}})}static{this._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=d.kI.register({description:"bracket-match-no-overview",stickiness:1,className:"bracket-match"})}_updateBrackets(){if("never"===this._matchBrackets)return;this._recomputeBrackets();const e=[];let t=0;for(const i of this._lastBracketsData){const s=i.brackets;s&&(e[t++]={range:s[0],options:i.options},e[t++]={range:s[1],options:i.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus())return this._lastBracketsData=[],void(this._lastVersionId=0);const e=this._editor.getSelections();if(e.length>100)return this._lastBracketsData=[],void(this._lastVersionId=0);const t=this._editor.getModel(),i=t.getVersionId();let s=[];this._lastVersionId===i&&(s=this._lastBracketsData);const n=[];let r=0;for(let o=0,d=e.length;o<d;o++){const t=e[o];t.isEmpty()&&(n[r++]=t.getStartPosition())}n.length>1&&n.sort(o.y.compare);const a=[];let c=0,l=0;const h=s.length;for(let o=0,d=n.length;o<d;o++){const e=n[o];for(;l<h&&s[l].position.isBefore(e);)l++;if(l<h&&s[l].position.equals(e))a[c++]=s[l];else{let i=t.bracketPairs.matchBracket(e,20),s=b._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;i||"always"!==this._matchBrackets||(i=t.bracketPairs.findEnclosingBrackets(e,20),s=b._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),a[c++]=new E(e,i,s)}}this._lastBracketsData=a,this._lastVersionId=i}}(0,r.HW)(b.ID,b,1),(0,r.Fl)(v),(0,r.Fl)(_),(0,r.Fl)(C),g.ZG.appendMenuItem(g.D8.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:u.kg({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2})},89100:(e,t,i)=>{"use strict";i.d(t,{pG:()=>x,_Q:()=>k,dg:()=>b});var s=i(88443),n=i(8597),r=i(35315),o=i(91581),a=i(17390),c=i(10350),l=i(41234),h=(i(10713),i(78209)),d=i(42904);const u=h.kg("defaultLabel","input"),g=h.kg("label.preserveCaseToggle","Preserve Case");class p extends r.l{constructor(e){super({icon:c.W.preserveCase,title:g+e.appendTitle,isChecked:e.isChecked,hoverDelegate:e.hoverDelegate??(0,d.nZ)("element"),inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class m extends a.x{constructor(e,t,i,s){super(),this._showOptionButtons=i,this.fixFocusOnOptionClickEnabled=!0,this.cachedOptionsWidth=0,this._onDidOptionChange=this._register(new l.vl),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new l.vl),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new l.vl),this._onInput=this._register(new l.vl),this._onKeyUp=this._register(new l.vl),this._onPreserveCaseKeyDown=this._register(new l.vl),this.onPreserveCaseKeyDown=this._onPreserveCaseKeyDown.event,this.contextViewProvider=t,this.placeholder=s.placeholder||"",this.validation=s.validation,this.label=s.label||u;const r=s.appendPreserveCaseLabel||"",a=s.history||[],c=!!s.flexibleHeight,h=!!s.flexibleWidth,d=s.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new o.mJ(this.domNode,this.contextViewProvider,{ariaLabel:this.label||"",placeholder:this.placeholder||"",validationOptions:{validation:this.validation},history:a,showHistoryHint:s.showHistoryHint,flexibleHeight:c,flexibleWidth:h,flexibleMaxHeight:d,inputBoxStyles:s.inputBoxStyles})),this.preserveCase=this._register(new p({appendTitle:r,isChecked:!1,...s.toggleStyles})),this._register(this.preserveCase.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()}))),this._register(this.preserveCase.onKeyDown((e=>{this._onPreserveCaseKeyDown.fire(e)}))),this._showOptionButtons?this.cachedOptionsWidth=this.preserveCase.width():this.cachedOptionsWidth=0;const g=[this.preserveCase.domNode];this.onkeydown(this.domNode,(e=>{if(e.equals(15)||e.equals(17)||e.equals(9)){const t=g.indexOf(this.domNode.ownerDocument.activeElement);if(t>=0){let i=-1;e.equals(17)?i=(t+1)%g.length:e.equals(15)&&(i=0===t?g.length-1:t-1),e.equals(9)?(g[t].blur(),this.inputBox.focus()):i>=0&&g[i].focus(),n.fs.stop(e,!0)}}}));const m=document.createElement("div");m.className="controls",m.style.display=this._showOptionButtons?"block":"none",m.appendChild(this.preserveCase.domNode),this.domNode.appendChild(m),e?.appendChild(this.domNode),this.onkeydown(this.inputBox.inputElement,(e=>this._onKeyDown.fire(e))),this.onkeyup(this.inputBox.inputElement,(e=>this._onKeyUp.fire(e))),this.oninput(this.inputBox.inputElement,(e=>this._onInput.fire())),this.onmousedown(this.inputBox.inputElement,(e=>this._onMouseDown.fire(e)))}enable(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.preserveCase.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.preserveCase.disable()}setEnabled(e){e?this.enable():this.disable()}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getPreserveCase(){return this.preserveCase.checked}setPreserveCase(e){this.preserveCase.checked=e}focusOnPreserve(){this.preserveCase.focus()}validate(){this.inputBox?.validate()}set width(e){this.inputBox.paddingRight=this.cachedOptionsWidth,this.domNode.style.width=e+"px"}dispose(){super.dispose()}}var f=i(32848),_=i(59261),v=i(5662),C=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},E=function(e,t){return function(i,s){t(i,s,e)}};const b=new f.N1("suggestWidgetVisible",!1,(0,h.kg)("suggestWidgetVisible","Whether suggestion are visible")),S="historyNavigationWidgetFocus",y="historyNavigationForwardsEnabled",w="historyNavigationBackwardsEnabled";let R;const L=[];function T(e,t){if(L.includes(t))throw new Error("Cannot register the same widget multiple times");L.push(t);const i=new v.Cm,s=new f.N1(S,!1).bindTo(e),r=new f.N1(y,!0).bindTo(e),o=new f.N1(w,!0).bindTo(e),a=()=>{s.set(!0),R=t},c=()=>{s.set(!1),R===t&&(R=void 0)};return(0,n.X7)(t.element)&&a(),i.add(t.onDidFocus((()=>a()))),i.add(t.onDidBlur((()=>c()))),i.add((0,v.s)((()=>{L.splice(L.indexOf(t),1),c()}))),{historyNavigationForwardsEnablement:r,historyNavigationBackwardsEnablement:o,dispose(){i.dispose()}}}let x=class extends s.c{constructor(e,t,i,s){super(e,t,i);const n=this._register(s.createScoped(this.inputBox.element));this._register(T(n,this.inputBox))}};x=C([E(3,f.fN)],x);let k=class extends m{constructor(e,t,i,s,n=!1){super(e,t,n,i);const r=this._register(s.createScoped(this.inputBox.element));this._register(T(r,this.inputBox))}};k=C([E(3,f.fN)],k),_.f.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:f.M$.and(f.M$.has(S),f.M$.equals(w,!0),f.M$.not("isComposing"),b.isEqualTo(!1)),primary:16,secondary:[528],handler:e=>{R?.showPreviousValue()}}),_.f.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:f.M$.and(f.M$.has(S),f.M$.equals(y,!0),f.M$.not("isComposing"),b.isEqualTo(!1)),primary:18,secondary:[530],handler:e=>{R?.showNextValue()}})},89336:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>i.e(2350).then(i.bind(i,62350))})},89403:(e,t,i)=>{"use strict";i.d(t,{B6:()=>y,Fd:()=>v,LC:()=>m,P8:()=>p,Pi:()=>g,er:()=>d,iZ:()=>C,n4:()=>u,o1:()=>E,pD:()=>f,su:()=>l,uJ:()=>_});var s=i(79326),n=i(36456),r=i(74027),o=i(98067),a=i(91508),c=i(79400);function l(e){return(0,c.I)(e,!0)}class h{constructor(e){this._ignorePathCasing=e}compare(e,t,i=!1){return e===t?0:(0,a.UD)(this.getComparisonKey(e,i),this.getComparisonKey(t,i))}isEqual(e,t,i=!1){return e===t||!(!e||!t)&&this.getComparisonKey(e,i)===this.getComparisonKey(t,i)}getComparisonKey(e,t=!1){return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:t?null:void 0}).toString()}isEqualOrParent(e,t,i=!1){if(e.scheme===t.scheme){if(e.scheme===n.ny.file)return s._1(l(e),l(t),this._ignorePathCasing(e))&&e.query===t.query&&(i||e.fragment===t.fragment);if(b(e.authority,t.authority))return s._1(e.path,t.path,this._ignorePathCasing(e),"/")&&e.query===t.query&&(i||e.fragment===t.fragment)}return!1}joinPath(e,...t){return c.r.joinPath(e,...t)}basenameOrAuthority(e){return p(e)||e.authority}basename(e){return r.SA.basename(e.path)}extname(e){return r.SA.extname(e.path)}dirname(e){if(0===e.path.length)return e;let t;return e.scheme===n.ny.file?t=c.r.file(r.pD(l(e))).path:(t=r.SA.dirname(e.path),e.authority&&t.length&&47!==t.charCodeAt(0)&&(console.error(`dirname("${e.toString})) resulted in a relative path`),t="/")),e.with({path:t})}normalizePath(e){if(!e.path.length)return e;let t;return t=e.scheme===n.ny.file?c.r.file(r.S8(l(e))).path:r.SA.normalize(e.path),e.with({path:t})}relativePath(e,t){if(e.scheme!==t.scheme||!b(e.authority,t.authority))return;if(e.scheme===n.ny.file){const i=r.V8(l(e),l(t));return o.uF?s.TH(i):i}let i=e.path||"/";const a=t.path||"/";if(this._ignorePathCasing(e)){let e=0;for(const t=Math.min(i.length,a.length);e<t&&(i.charCodeAt(e)===a.charCodeAt(e)||i.charAt(e).toLowerCase()===a.charAt(e).toLowerCase());e++);i=a.substr(0,e)+i.substr(e)}return r.SA.relative(i,a)}resolvePath(e,t){if(e.scheme===n.ny.file){const i=c.r.file(r.hd(l(e),t));return e.with({authority:i.authority,path:i.path})}return t=s.kb(t),e.with({path:r.SA.resolve(e.path,t)})}isAbsolutePath(e){return!!e.path&&"/"===e.path[0]}isEqualAuthority(e,t){return e===t||void 0!==e&&void 0!==t&&(0,a.Q_)(e,t)}hasTrailingPathSeparator(e,t=r.Vn){if(e.scheme===n.ny.file){const i=l(e);return i.length>s.Zn(i).length&&i[i.length-1]===t}{const t=e.path;return t.length>1&&47===t.charCodeAt(t.length-1)&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}}removeTrailingPathSeparator(e,t=r.Vn){return S(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e,t=r.Vn){let i=!1;if(e.scheme===n.ny.file){const n=l(e);i=void 0!==n&&n.length===s.Zn(n).length&&n[n.length-1]===t}else{t="/";const s=e.path;i=1===s.length&&47===s.charCodeAt(s.length-1)}return i||S(e,t)?e:e.with({path:e.path+"/"})}}const d=new h((()=>!1)),u=(new h((e=>e.scheme!==n.ny.file||!o.j9)),new h((e=>!0)),d.isEqual.bind(d)),g=(d.isEqualOrParent.bind(d),d.getComparisonKey.bind(d),d.basenameOrAuthority.bind(d)),p=d.basename.bind(d),m=d.extname.bind(d),f=d.dirname.bind(d),_=d.joinPath.bind(d),v=d.normalizePath.bind(d),C=d.relativePath.bind(d),E=d.resolvePath.bind(d),b=(d.isAbsolutePath.bind(d),d.isEqualAuthority.bind(d)),S=d.hasTrailingPathSeparator.bind(d);d.removeTrailingPathSeparator.bind(d),d.addTrailingPathSeparator.bind(d);var y;!function(e){e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=function(t){const i=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach((e=>{const[t,s]=e.split(":");t&&s&&i.set(t,s)}));const s=t.path.substring(0,t.path.indexOf(";"));return s&&i.set(e.META_DATA_MIME,s),i}}(y||(y={}))},89506:(e,t,i)=>{"use strict";i.d(t,{d:()=>g});var s=i(8597),n=i(5646),r=i(72962),o=i(25154),a=i(36921),c=i(41234);class l extends a.LN{constructor(e,t){super(),this._onDidChangeVisibility=this._register(new c.vl),this.onDidChangeVisibility=this._onDidChangeVisibility.event,this._element=(0,s.BC)(e,(0,s.$)(".monaco-dropdown")),this._label=(0,s.BC)(this._element,(0,s.$)(".dropdown-label"));let i=t.labelRenderer;i||(i=e=>(e.textContent=t.label||"",null));for(const r of[s.Bx.CLICK,s.Bx.MOUSE_DOWN,o.B.Tap])this._register((0,s.ko)(this.element,r,(e=>s.fs.stop(e,!0))));for(const r of[s.Bx.MOUSE_DOWN,o.B.Tap])this._register((0,s.ko)(this._label,r,(e=>{(0,s.Er)(e)&&(e.detail>1||0!==e.button)||(this.visible?this.hide():this.show())})));this._register((0,s.ko)(this._label,s.Bx.KEY_UP,(e=>{const t=new r.Z(e);(t.equals(3)||t.equals(10))&&(s.fs.stop(e,!0),this.visible?this.hide():this.show())})));const n=i(this._label);n&&this._register(n),this._register(o.q.addTarget(this._label))}get element(){return this._element}show(){this.visible||(this.visible=!0,this._onDidChangeVisibility.fire(!0))}hide(){this.visible&&(this.visible=!1,this._onDidChangeVisibility.fire(!1))}dispose(){super.dispose(),this.hide(),this.boxContainer&&(this.boxContainer.remove(),this.boxContainer=void 0),this.contents&&(this.contents.remove(),this.contents=void 0),this._label&&(this._label.remove(),this._label=void 0)}}class h extends l{constructor(e,t){super(e,t),this._options=t,this._actions=[],this.actions=t.actions||[]}set menuOptions(e){this._menuOptions=e}get menuOptions(){return this._menuOptions}get actions(){return this._options.actionProvider?this._options.actionProvider.getActions():this._actions}set actions(e){this._actions=e}show(){super.show(),this.element.classList.add("active"),this._options.contextMenuProvider.showContextMenu({getAnchor:()=>this.element,getActions:()=>this.actions,getActionsContext:()=>this.menuOptions?this.menuOptions.context:null,getActionViewItem:(e,t)=>this.menuOptions&&this.menuOptions.actionViewItemProvider?this.menuOptions.actionViewItemProvider(e,t):void 0,getKeyBinding:e=>this.menuOptions&&this.menuOptions.getKeyBinding?this.menuOptions.getKeyBinding(e):void 0,getMenuClassName:()=>this._options.menuClassName||"",onHide:()=>this.onHide(),actionRunner:this.menuOptions?this.menuOptions.actionRunner:void 0,anchorAlignment:this.menuOptions?this.menuOptions.anchorAlignment:0,domForShadowRoot:this._options.menuAsChild?this.element:void 0,skipTelemetry:this._options.skipTelemetry})}hide(){super.hide()}onHide(){this.hide(),this.element.classList.remove("active")}}var d=i(42904),u=i(48196);class g extends n.EH{constructor(e,t,i,s=Object.create(null)){super(null,e,s),this.actionItem=null,this._onDidChangeVisibility=this._register(new c.vl),this.onDidChangeVisibility=this._onDidChangeVisibility.event,this.menuActionsOrProvider=t,this.contextMenuProvider=i,this.options=s,this.options.actionRunner&&(this.actionRunner=this.options.actionRunner)}render(e){this.actionItem=e;const t=Array.isArray(this.menuActionsOrProvider),i={contextMenuProvider:this.contextMenuProvider,labelRenderer:e=>{this.element=(0,s.BC)(e,(0,s.$)("a.action-label"));let t=[];return"string"===typeof this.options.classNames?t=this.options.classNames.split(/\s+/g).filter((e=>!!e)):this.options.classNames&&(t=this.options.classNames),t.find((e=>"icon"===e))||t.push("codicon"),this.element.classList.add(...t),this.element.setAttribute("role","button"),this.element.setAttribute("aria-haspopup","true"),this.element.setAttribute("aria-expanded","false"),this._action.label&&this._register((0,u.i)().setupManagedHover(this.options.hoverDelegate??(0,d.nZ)("mouse"),this.element,this._action.label)),this.element.ariaLabel=this._action.label||"",null},menuAsChild:this.options.menuAsChild,actions:t?this.menuActionsOrProvider:void 0,actionProvider:t?void 0:this.menuActionsOrProvider,skipTelemetry:this.options.skipTelemetry};if(this.dropdownMenu=this._register(new h(e,i)),this._register(this.dropdownMenu.onDidChangeVisibility((e=>{this.element?.setAttribute("aria-expanded",`${e}`),this._onDidChangeVisibility.fire(e)}))),this.dropdownMenu.menuOptions={actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,getKeyBinding:this.options.keybindingProvider,context:this._context},this.options.anchorAlignmentProvider){const e=this;this.dropdownMenu.menuOptions={...this.dropdownMenu.menuOptions,get anchorAlignment(){return e.options.anchorAlignmentProvider()}}}this.updateTooltip(),this.updateEnabled()}getTooltip(){let e=null;return this.action.tooltip?e=this.action.tooltip:this.action.label&&(e=this.action.label),e??void 0}setActionContext(e){super.setActionContext(e),this.dropdownMenu&&(this.dropdownMenu.menuOptions?this.dropdownMenu.menuOptions.context=e:this.dropdownMenu.menuOptions={context:e})}show(){this.dropdownMenu?.show()}updateEnabled(){const e=!this.action.enabled;this.actionItem?.classList.toggle("disabled",e),this.element?.classList.toggle("disabled",e)}}},89518:(e,t,i)=>{"use strict";var s,n,r=i(80781),o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,h=(e,t,i,s)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let n of c(t))l.call(e,n)||n===i||o(e,n,{get:()=>t[n],enumerable:!(s=a(t,n))||s.enumerable});return e},d={};h(d,s=r,"default"),n&&h(n,s,"default");var u=class{constructor(e,t,i){this._onDidChange=new d.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},g={format:{tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},suggest:{},data:{useDefaultDataProvider:!0}};function p(e){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:e===m,documentFormattingEdits:e===m,documentRangeFormattingEdits:e===m}}var m="html",f="handlebars",_="razor",v=w(m,g,p(m)),C=v.defaults,E=w(f,g,p(f)),b=E.defaults,S=w(_,g,p(_)),y=S.defaults;function w(e,t=g,s=p(e)){const n=new u(e,t,s);let r;const o=d.languages.onLanguage(e,(async()=>{r=(await i.e(8821).then(i.bind(i,68821))).setupMode(n)}));return{defaults:n,dispose(){o.dispose(),r?.dispose(),r=void 0}}}d.languages.html={htmlDefaults:C,razorDefaults:y,handlebarDefaults:b,htmlLanguageService:v,handlebarLanguageService:E,razorLanguageService:S,registerHTMLLanguageService:w}},89807:(e,t,i)=>{var s=i(26437),n=i(33609);e.exports=function(e){return e?s(n(e),0,4294967295):0}},89896:(e,t,i)=>{e.exports=i(34529)},89974:(e,t,i)=>{"use strict";i.d(t,{F:()=>V});var s=i(60712),n=i(59284),r=i(56993),o=i.n(r),a=i(53302),c=i(63126),l=i(72837);const h=JSON.parse('{"label_error":"Error","label_empty":"No data"}'),d=JSON.parse('{"label_error":"\u041e\u0448\u0438\u0431\u043a\u0430","label_empty":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445"}'),u=(0,l.N)({en:h,ru:d},"ydb-navigation-tree"),g=(0,a.o)("ydb-navigation-tree-view-empty");function p({level:e}){return(0,s.jsx)(c.G,{name:(0,s.jsx)("span",{className:g(),children:u("label_empty")}),level:e})}const m=(0,a.o)("ydb-navigation-tree-view-error");function f({level:e}){return(0,s.jsx)(c.G,{name:(0,s.jsx)("span",{className:m(),children:u("label_error")}),level:e})}var _=i(80953);const v=(0,a.o)("ydb-navigation-tree-view-loader");function C({level:e}){return(0,s.jsx)(c.G,{name:(0,s.jsx)("div",{className:v(),children:(0,s.jsx)(_.t,{size:"xs"})}),level:e})}function E(e){return(0,s.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.22 15.03s-.001 0 0 0a.75.75 0 0 0 1.06-1.06l-.47-.47H10a3.016 3.016 0 0 0 1.507-.405A2.999 2.999 0 0 0 13 10.5V7.896h.003a2.735 2.735 0 0 0 .785-.366 2.75 2.75 0 1 0-2.288.366V10.5A1.5 1.5 0 0 1 10 12h-.19l.47-.47s0 .001 0 0a.75.75 0 0 0-1.06-1.06l-.47.47-1.28 1.28a.75.75 0 0 0 0 1.06l1.75 1.75ZM5.72 2.97a.75.75 0 0 1 1.06 0l.47.47 1.28 1.28a.748.748 0 0 1 0 1.06L6.78 7.53c.001 0 0 0 0 0a.751.751 0 0 1-1.06-1.06L6.19 6H6a1.5 1.5 0 0 0-1.5 1.5v2.604a2.757 2.757 0 0 1 2 2.646 2.738 2.738 0 0 1-1.212 2.28 2.737 2.737 0 0 1-1.538.47A2.747 2.747 0 0 1 1 12.75a2.751 2.751 0 0 1 2-2.646V7.5a2.999 2.999 0 0 1 3-3h.19l-.47-.47a.75.75 0 0 1 0-1.06Zm-.908 9.121A1.246 1.246 0 0 1 5 12.75a1.25 1.25 0 1 1-.188-.659ZM11 5.25a1.25 1.25 0 1 1 2.5 0 1.25 1.25 0 0 1-2.5 0Z"})}))}function b(e){return(0,s.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.01033 3.79551C2.11275 2.787 2.96447 2 4 2H5.5H7H9H10.5H12C13.1046 2 14 2.89543 14 4V5.5V12C14 13.1046 13.1046 14 12 14H10.5H9H7H5.5H4C2.89543 14 2 13.1046 2 12V5.5V4C2 3.93096 2.0035 3.86275 2.01033 3.79551ZM10.5 12.5H11.5C12.0523 12.5 12.5 12.0523 12.5 11.5V5.5H10.5L10.5 12.5ZM9 5.5L9 12.5H7L7 5.5H9ZM3.5 5.5H5.5L5.5 12.5H4.5C3.94772 12.5 3.5 12.0523 3.5 11.5V5.5Z"})}))}function S(e){return(0,s.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",fill:"currentColor"},e,{children:(0,s.jsx)("path",{d:"M448 80V128C448 172.2 347.7 208 224 208C100.3 208 0 172.2 0 128V80C0 35.82 100.3 0 224 0C347.7 0 448 35.82 448 80zM393.2 214.7C413.1 207.3 433.1 197.8 448 186.1V288C448 332.2 347.7 368 224 368C100.3 368 0 332.2 0 288V186.1C14.93 197.8 34.02 207.3 54.85 214.7C99.66 230.7 159.5 240 224 240C288.5 240 348.3 230.7 393.2 214.7V214.7zM54.85 374.7C99.66 390.7 159.5 400 224 400C288.5 400 348.3 390.7 393.2 374.7C413.1 367.3 433.1 357.8 448 346.1V432C448 476.2 347.7 512 224 512C100.3 512 0 476.2 0 432V346.1C14.93 357.8 34.02 367.3 54.85 374.7z"})}))}function y(e){return(0,s.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 6.75C0 6.35156 0.338542 6 0.722222 6L3.61111 6V3L0.722222 3C0.338542 3 0 2.67188 0 2.25C0 1.85156 0.338542 1.5 0.722222 1.5L3.61111 1.5V0.750001C3.61111 0.351563 3.94965 0 4.33333 0C4.73958 0 5.05556 0.351563 5.05556 0.750001H5.77778C7.53819 0.750001 8.98264 2.03906 9.32118 3.75H12V5.25H9.32118C9.29095 5.4049 9.25189 5.55606 9.20457 5.70291C9.10459 5.73587 9.00778 5.77066 8.9144 5.80723C8.505 5.96755 8.12646 6.17556 7.83841 6.44187C7.5498 6.70871 7.3 7.08678 7.3 7.56255V7.90902C6.83862 8.12843 6.32337 8.25 5.77778 8.25H5.05556C5.05556 8.67188 4.73958 9 4.33333 9C3.94965 9 3.61111 8.67188 3.61111 8.25V7.5L0.722222 7.5C0.338542 7.5 0 7.17188 0 6.75ZM16 8.5V7.5625C16 6.70312 14.1964 6 12 6C9.78571 6 8 6.70312 8 7.5625V8.5C8 9.37891 9.78571 10.0625 12 10.0625C14.1964 10.0625 16 9.37891 16 8.5ZM16 9.65234C15.7321 9.86719 15.375 10.0625 15.0179 10.1992C14.2143 10.5117 13.1429 10.6875 12 10.6875C10.8393 10.6875 9.76786 10.5117 8.96429 10.1992C8.60714 10.0625 8.25 9.86719 8 9.65234V11.625C8 12.5039 9.78571 13.1875 12 13.1875C14.1964 13.1875 16 12.5039 16 11.625V9.65234ZM12 13.8125C10.8393 13.8125 9.76786 13.6367 8.96429 13.3242C8.60714 13.1875 8.25 12.9922 8 12.7773V14.4375C8 15.3164 9.78571 16 12 16C14.1964 16 16 15.3164 16 14.4375V12.7773C15.7321 12.9922 15.375 13.1875 15.0179 13.3242C14.2143 13.6367 13.1429 13.8125 12 13.8125Z"})}))}function w(e){return(0,s.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 6.75C0 6.35156 0.351562 6 0.75 6L3.75 6V3L0.75 3C0.351562 3 0 2.67188 0 2.25C0 1.85156 0.351562 1.5 0.75 1.5L3.75 1.5V0.750001C3.75 0.351563 4.10156 0 4.5 0C4.92188 0 5.25 0.351563 5.25 0.750001H6C7.82812 0.750001 9.32812 2.03906 9.67969 3.75H12V5.25H9.67969C9.60376 5.62455 9.47428 5.97724 9.2995 6.30005H7.19969C6.09701 6.30005 5.26846 7.20143 5.25 8.25C5.25 8.67188 4.92188 9 4.5 9C4.10156 9 3.75 8.67188 3.75 8.25V7.5L0.75 7.5C0.351562 7.5 0 7.17188 0 6.75ZM16 8.28571C16 7.58259 15.4336 7 14.75 7H7.25C6.54688 7 6 7.58259 6 8.28571V14.7143C6 15.4375 6.54688 16 7.25 16H14.75C15.4336 16 16 15.4375 16 14.7143V8.28571ZM10.375 9.57143V11.5H7.25V9.57143H10.375ZM7.25 14.7143V12.7857H10.375V14.7143H7.25ZM14.75 14.7143H11.625V12.7857H14.75V14.7143ZM14.75 9.57143V11.5H11.625V9.57143H14.75Z"})}))}function R(e){return(0,s.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,s.jsx)("path",{d:"M13.2812 4.875H8.40625L6.78125 3.25H2.71875C2.0332 3.25 1.5 3.80859 1.5 4.46875V11.7812C1.5 12.4668 2.0332 13 2.71875 13H13.2812C13.9414 13 14.5 12.4668 14.5 11.7812V6.09375C14.5 5.43359 13.9414 4.875 13.2812 4.875Z"})}))}function L(e){return(0,s.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,s.jsx)("path",{d:"M15.2109 9.06445C15.4648 8.6582 15.1602 8.125 14.6777 8.125H4.54688C4.01367 8.125 3.37891 8.50586 3.125 8.9375L1.29688 12.0859C1.04297 12.4922 1.34766 13 1.83008 13H11.9609C12.4941 13 13.1289 12.6445 13.3828 12.2129L15.2109 9.06445ZM4.54688 7.3125H12.875V6.09375C12.875 5.43359 12.3164 4.875 11.6562 4.875H7.59375L5.96875 3.25H1.90625C1.2207 3.25 0.6875 3.80859 0.6875 4.46875V11.5527L2.43945 8.53125C2.87109 7.79492 3.6582 7.3125 4.54688 7.3125Z"})}))}function T(e){return(0,s.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.24935 2.94323L8.5 9.5H12.1L11.1446 14.2772C11.0322 14.839 11.7994 15.1177 12.0738 14.6147L15.9111 7.57956C16.1765 7.09311 15.8244 6.5 15.2703 6.5H12.9L13.5325 3.33728C13.6192 2.90413 13.2879 2.5 12.8461 2.5H9.74611C9.49194 2.5 9.27821 2.69069 9.24935 2.94323ZM7.40003 10.5L8.25717 3H1.625C0.710938 3 0 3.73633 0 4.625V12.75C0 13.6641 0.710938 14.375 1.625 14.375H10.1517C10.1538 14.2803 10.1646 14.1822 10.1848 14.0811L10.901 10.5H7.40003ZM5.6875 8.6875V6.25H1.625V8.6875H5.6875ZM1.625 10.3125V12.75H5.6875V10.3125H1.625Z"})}))}function x(e){return(0,s.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,s.jsx)("path",{d:"m1.5 3.25c0-0.41421 0.33579-0.75 0.75-0.75h1.0109c0.41421 0 0.75-0.33579 0.75-0.75s-0.33579-0.75-0.75-0.75h-1.0109c-1.2426 0-2.25 1.0074-2.25 2.25v9.5c0 1.2426 1.0074 2.25 2.25 2.25h1.0109c0.41421 0 0.75-0.3358 0.75-0.75s-0.33579-0.75-0.75-0.75h-1.0109c-0.41421 0-0.75-0.3358-0.75-0.75v-9.5zm11.239-2.25c-0.4142 0-0.75 0.33579-0.75 0.75s0.3358 0.75 0.75 0.75h1.0109c0.4142 0 0.75 0.33579 0.75 0.75v9.5c0 0.4142-0.3358 0.75-0.75 0.75h-1.0109c-0.4142 0-0.75 0.3358-0.75 0.75s0.3358 0.75 0.75 0.75h1.0109c1.2426 0 2.25-1.0074 2.25-2.25v-9.5c0-1.2426-1.0074-2.25-2.25-2.25h-1.0109zm-1.4316 6.9054c-0.9374 0.45226-2.1226 0.63619-3.3102 0.63619-1.1876 0-2.3728-0.18393-3.3103-0.63619-0.21174-0.10215-0.42044-0.22399-0.61701-0.36633v0.46091c0 1.3714 1.7583 2.0571 3.9273 2.0571 2.169 0 3.9273-0.68571 3.9273-2.0571v-0.46091c-0.1966 0.14234-0.4053 0.26418-0.6171 0.36633zm-3.3102-0.59108c2.169 0 3.9273-0.68572 3.9273-2.0571 0-1.3714-1.7583-2.0572-3.9273-2.0572-2.169 0-3.9273 0.68572-3.9273 2.0572 0 1.3714 1.7583 2.0571 3.9273 2.0571zm3.9273 3.4286c0 1.3714-1.7583 2.0571-3.9273 2.0571-2.169 0-3.9273-0.6857-3.9273-2.0571v-0.461c0.19657 0.1423 0.40527 0.2641 0.61701 0.3663 0.93748 0.4522 2.1227 0.6362 3.3103 0.6362 1.1876 0 2.3728-0.184 3.3102-0.6362 0.2118-0.1022 0.4205-0.224 0.6171-0.3663v0.461z",fill:"currentColor",clipRule:"evenodd",fillRule:"evenodd"})}))}function k(e){return(0,s.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.01033 3.79551C2.11275 2.787 2.96447 2 4 2H7.3H8.8H12C13.1046 2 14 2.89543 14 4V5.5V8.2002V9.7002V12C14 13.1046 13.1046 14 12 14H8.8H7.3H4C2.89543 14 2 13.1046 2 12V9.7002V8.2002V5.5V4C2 3.93096 2.0035 3.86275 2.01033 3.79551ZM8.8 12.5H11.5C12.0523 12.5 12.5 12.0523 12.5 11.5V9.7002H8.8V12.5ZM7.3 9.7002V12.5H4.5C3.94772 12.5 3.5 12.0523 3.5 11.5V9.7002H7.3ZM8.8 8.2002H12.5V5.5H8.8L8.8 8.2002ZM7.3 5.5L7.3 8.2002H3.5V5.5H7.3Z"})}))}function A(e){return(0,s.jsxs)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:[(0,s.jsx)("rect",{x:"2",y:"2.20001",width:"9",height:"2.5",rx:"0.5"}),(0,s.jsx)("rect",{x:"5",y:"6.70001",width:"9",height:"2.5",rx:"0.5"}),(0,s.jsx)("rect",{x:"2",y:"11.2",width:"9",height:"2.5",rx:"0.5"})]}))}function N(e){return(0,s.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.22 15.03s-.001 0 0 0a.75.75 0 0 0 1.06-1.06l-.47-.47H10a3.016 3.016 0 0 0 1.507-.405A2.999 2.999 0 0 0 13 10.5V7.896h.003a2.735 2.735 0 0 0 .785-.366 2.75 2.75 0 1 0-2.288.366V10.5A1.5 1.5 0 0 1 10 12h-.19l.47-.47s0 .001 0 0a.75.75 0 0 0-1.06-1.06l-.47.47-1.28 1.28a.75.75 0 0 0 0 1.06l1.75 1.75ZM5.72 2.97a.75.75 0 0 1 1.06 0l.47.47 1.28 1.28a.748.748 0 0 1 0 1.06L6.78 7.53c.001 0 0 0 0 0a.751.751 0 0 1-1.06-1.06L6.19 6H6a1.5 1.5 0 0 0-1.5 1.5v2.604a2.757 2.757 0 0 1 2 2.646 2.738 2.738 0 0 1-1.212 2.28 2.737 2.737 0 0 1-1.538.47A2.747 2.747 0 0 1 1 12.75a2.751 2.751 0 0 1 2-2.646V7.5a2.999 2.999 0 0 1 3-3h.19l-.47-.47a.75.75 0 0 1 0-1.06Zm-.908 9.121A1.246 1.246 0 0 1 5 12.75a1.25 1.25 0 1 1-.188-.659ZM11 5.25a1.25 1.25 0 1 1 2.5 0 1.25 1.25 0 0 1-2.5 0Z"})}))}function I(e){return(0,s.jsxs)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:[(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.625 2H7.49951C6.47457 2.77006 5.7552 3.92488 5.55588 5.25H1.625V7.6875H5.79193C6.48417 9.6186 8.33076 11 10.5 11C10.877 11 11.2443 10.9583 11.5974 10.8792L12.7748 12.5799C12.4905 13.0601 11.9665 13.375 11.375 13.375H1.625C0.710938 13.375 0 12.6641 0 11.75V3.625C0 2.73633 0.710938 2 1.625 2ZM1.625 11.75V9.3125H5.6875V11.75H1.625Z"}),(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.4411 8.71106C14.0985 7.9983 14.5 7.04604 14.5 6C14.5 3.79086 12.7091 2 10.5 2C8.29086 2 6.5 3.79086 6.5 6C6.5 8.20914 8.29086 10 10.5 10C11.0316 10 11.5389 9.89631 12.0029 9.70806L14.2807 12.9981C14.5557 13.3955 15.1008 13.4946 15.4981 13.2195C15.8955 12.9444 15.9946 12.3993 15.7195 12.002L13.4411 8.71106ZM12.5 6C12.5 7.10457 11.6046 8 10.5 8C9.39543 8 8.5 7.10457 8.5 6C8.5 4.89543 9.39543 4 10.5 4C11.6046 4 12.5 4.89543 12.5 6Z"})]}))}function O(e){return"status"in e}function D(e,t,i,s=0){const n=e[t];if(n&&(i(n,s,t,e),!n.collapsed))for(const r of n.children)D(e,`${t}/${r}`,i,s+1)}var M;function P(e){return Object.assign(Object.assign(Object.assign({},{collapsed:!0,loading:!1,loaded:!1,error:!1,children:[]}),{expandable:"database"===e.type||"directory"===e.type}),e)}function F(e={},t){var i,s;switch(t.type){case M.ToggleCollapsed:return Object.assign(Object.assign({},e),{[t.payload.path]:Object.assign(Object.assign({},e[t.payload.path]),{collapsed:!e[t.payload.path].collapsed})});case M.StartLoading:return Object.assign(Object.assign({},e),{[t.payload.path]:Object.assign(Object.assign({},e[t.payload.path]),{loading:!0,loaded:!1,error:!1,children:[]})});case M.FinishLoading:{const n=Object.assign(Object.assign({},e),{[t.payload.path]:Object.assign(Object.assign({},e[t.payload.path]),{loading:!1,loaded:Boolean(t.payload.data),error:!1})});if(t.payload.data){n[t.payload.path].children=t.payload.data.map((({name:e})=>e));for(const r of t.payload.data){const o=`${t.payload.path}/${r.name}`,{activePath:a=""}=t.payload,c=null!==(s=null===(i=e[o])||void 0===i?void 0:i.collapsed)&&void 0!==s?s:!a.startsWith(`${o}/`);n[o]=P(Object.assign(Object.assign({},r),{collapsed:c,path:o}))}}return t.payload.data&&0!==t.payload.data.length||(n[t.payload.path]=Object.assign(Object.assign({},n[t.payload.path]),{expandable:!1,collapsed:!0})),n}case M.ErrorLoading:return Object.assign(Object.assign({},e),{[t.payload.path]:Object.assign(Object.assign({},e[t.payload.path]),{loading:!1,loaded:!1,error:!0})});case M.ResetNode:return Object.assign(Object.assign({},e),{[t.payload.path]:Object.assign(Object.assign({},e[t.payload.path]),{collapsed:!0,loading:!1,loaded:!1,error:!1,children:[]})});default:return e}}function U(e,t){const i=[];return D(e,t,((e,t)=>{i.push(Object.assign(Object.assign({},e),{level:t}));const s=function(e,t){if(!e.collapsed)return e.loading?{path:e.path,status:"loading",level:t+1}:e.error?{path:e.path,status:"error",level:t+1}:e.loaded&&0===e.children.length?{path:e.path,status:"empty",level:t+1}:void 0}(e,t);s&&i.push(s)})),i}function H(e,t){switch(e){case"async_replication":return(0,s.jsx)(E,{height:16});case"transfer":return(0,s.jsx)(N,{height:16});case"database":return(0,s.jsx)(S,{height:14});case"directory":return t?(0,s.jsx)(R,{height:16}):(0,s.jsx)(L,{height:16});case"index":return(0,s.jsx)(T,{height:16});case"table":case"index_table":return(0,s.jsx)(k,{height:16});case"column_table":return(0,s.jsx)(b,{height:16});case"stream":case"topic":return(0,s.jsx)(A,{height:16});case"external_table":return(0,s.jsx)(w,{height:16});case"external_data_source":return(0,s.jsx)(y,{height:16});case"view":return(0,s.jsx)(I,{height:16});case"resource_pool":return(0,s.jsx)(x,{height:16});default:return null}}function B({path:e,fetchPath:t,activePath:i,state:r,level:o,dispatch:a,children:l,onActivate:h,getActions:d,onActionsOpenToggle:u,renderAdditionalNodeElements:g,cache:p}){const m=r[e];n.useEffect((()=>{m.collapsed?p||a({type:M.ResetNode,payload:{path:e}}):m.loaded||m.loading||(a({type:M.StartLoading,payload:{path:e}}),t(e).then((t=>{a({type:M.FinishLoading,payload:{path:e,activePath:i,data:t}})})).catch((t=>{a({type:M.ErrorLoading,payload:{path:e,error:t}})})))}),[m.collapsed]);const f=n.useCallback((()=>{h&&h(e)}),[e,h]),_=n.useCallback((()=>{a({type:M.ToggleCollapsed,payload:{path:e}})}),[a,e]),v=n.useMemo((()=>null===g||void 0===g?void 0:g(m.path,m.type)),[g,m]),C=n.useMemo((()=>null===d||void 0===d?void 0:d(m.path,m.type)),[d,m]),E=n.useCallback((e=>{null===u||void 0===u||u({path:m.path,type:m.type,isOpen:e})}),[m.path,m.type,u]);return(0,s.jsx)(c.G,{name:m.name,icon:H(m.type,m.collapsed),collapsed:m.collapsed,active:m.path===i,actions:C,additionalNodeElements:v,hasArrow:m.expandable,onClick:f,onArrowClick:_,onActionsOpenToggle:E,level:o,children:l})}!function(e){e.ToggleCollapsed="toggle-collapsed",e.StartLoading="start-loading",e.FinishLoading="finish-loading",e.ErrorLoading="error-loading",e.ResetNode="reset-node"}(M||(M={}));const W=e=>{const t=`${e.path}|${e.status}`;return"loading"===e.status?(0,s.jsx)(C,{level:e.level},t):"error"===e.status?(0,s.jsx)(f,{level:e.level},t):(0,s.jsx)(p,{level:e.level},t)};function V({rootState:e,fetchPath:t,getActions:i,renderAdditionalNodeElements:r,activePath:a,onActionsOpenToggle:c,onActivePathUpdate:l,cache:h=!0,virtualize:d=!1}){const[u,g]=n.useReducer(F,{[e.path]:P(e)}),p=n.useMemo((()=>U(u,e.path)),[e.path,u]),m=e=>(0,s.jsx)(B,{state:u,path:e.path,activePath:a,fetchPath:t,dispatch:g,onActivate:l,getActions:i,onActionsOpenToggle:c,renderAdditionalNodeElements:r,cache:h,level:e.level},e.path);return d?(0,s.jsx)(o(),{type:"uniform",length:p.length,useStaticSize:!0,itemRenderer:e=>{const t=p[e];return O(t)?W(t):m(t)}}):(0,s.jsx)(n.Fragment,{children:p.map((e=>O(e)?W(e):m(e)))})}},90208:(e,t,i)=>{"use strict";i.d(t,{L9:()=>w,LR:()=>v,ZR:()=>y});var s=i(25890),n=i(17799),r=i(8995),o=i(5662),a=i(44320),c=i(36456),l=i(89403),h=i(79400),d=i(62083),u=i(56942),g=i(78209),p=i(37227),m=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},f=function(e,t){return function(i,s){t(i,s,e)}};class _{async provideDocumentPasteEdits(e,t,i,s,n){const r=await this.getEdit(i,n);if(r)return{edits:[{insertText:r.insertText,title:r.title,kind:r.kind,handledMimeType:r.handledMimeType,yieldTo:r.yieldTo}],dispose(){}}}async provideDocumentDropEdits(e,t,i,s){const n=await this.getEdit(i,s);if(n)return{edits:[{insertText:n.insertText,title:n.title,kind:n.kind,handledMimeType:n.handledMimeType,yieldTo:n.yieldTo}],dispose(){}}}}class v extends _{constructor(){super(...arguments),this.kind=v.kind,this.dropMimeTypes=[a.K.text],this.pasteMimeTypes=[a.K.text]}static{this.id="text"}static{this.kind=new r.k("text.plain")}async getEdit(e,t){const i=e.get(a.K.text);if(!i)return;if(e.has(a.K.uriList))return;const s=await i.asString();return{handledMimeType:a.K.text,title:(0,g.kg)("text.label","Insert Plain Text"),insertText:s,kind:this.kind}}}class C extends _{constructor(){super(...arguments),this.kind=new r.k("uri.absolute"),this.dropMimeTypes=[a.K.uriList],this.pasteMimeTypes=[a.K.uriList]}async getEdit(e,t){const i=await S(e);if(!i.length||t.isCancellationRequested)return;let s=0;const n=i.map((({uri:e,originalText:t})=>e.scheme===c.ny.file?e.fsPath:(s++,t))).join(" ");let r;return r=s>0?i.length>1?(0,g.kg)("defaultDropProvider.uriList.uris","Insert Uris"):(0,g.kg)("defaultDropProvider.uriList.uri","Insert Uri"):i.length>1?(0,g.kg)("defaultDropProvider.uriList.paths","Insert Paths"):(0,g.kg)("defaultDropProvider.uriList.path","Insert Path"),{handledMimeType:a.K.uriList,insertText:n,title:r,kind:this.kind}}}let E=class extends _{constructor(e){super(),this._workspaceContextService=e,this.kind=new r.k("uri.relative"),this.dropMimeTypes=[a.K.uriList],this.pasteMimeTypes=[a.K.uriList]}async getEdit(e,t){const i=await S(e);if(!i.length||t.isCancellationRequested)return;const n=(0,s.Yc)(i.map((({uri:e})=>{const t=this._workspaceContextService.getWorkspaceFolder(e);return t?(0,l.iZ)(t.uri,e):void 0})));return n.length?{handledMimeType:a.K.uriList,insertText:n.join(" "),title:i.length>1?(0,g.kg)("defaultDropProvider.uriList.relativePaths","Insert Relative Paths"):(0,g.kg)("defaultDropProvider.uriList.relativePath","Insert Relative Path"),kind:this.kind}:void 0}};E=m([f(0,p.VR)],E);class b{constructor(){this.kind=new r.k("html"),this.pasteMimeTypes=["text/html"],this._yieldTo=[{mimeType:a.K.text}]}async provideDocumentPasteEdits(e,t,i,s,n){if(s.triggerKind!==d.FX.PasteAs&&!s.only?.contains(this.kind))return;const r=i.get("text/html"),o=await(r?.asString());return o&&!n.isCancellationRequested?{dispose(){},edits:[{insertText:o,yieldTo:this._yieldTo,title:(0,g.kg)("pasteHtmlLabel","Insert HTML"),kind:this.kind}]}:void 0}}async function S(e){const t=e.get(a.K.uriList);if(!t)return[];const i=await t.asString(),s=[];for(const r of n.jt.parse(i))try{s.push({uri:h.r.parse(r),originalText:r})}catch{}return s}let y=class extends o.jG{constructor(e,t){super(),this._register(e.documentDropEditProvider.register("*",new v)),this._register(e.documentDropEditProvider.register("*",new C)),this._register(e.documentDropEditProvider.register("*",new E(t)))}};y=m([f(0,u.ILanguageFeaturesService),f(1,p.VR)],y);let w=class extends o.jG{constructor(e,t){super(),this._register(e.documentPasteEditProvider.register("*",new v)),this._register(e.documentPasteEditProvider.register("*",new C)),this._register(e.documentPasteEditProvider.register("*",new E(t))),this._register(e.documentPasteEditProvider.register("*",new b))}};w=m([f(0,u.ILanguageFeaturesService),f(1,p.VR)],w)},90360:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ITextResourceConfigurationService:()=>n,ITextResourcePropertiesService:()=>r});var s=i(63591);const n=(0,s.u1)("textResourceConfigurationService"),r=(0,s.u1)("textResourcePropertiesService")},90474:(e,t,i)=>{"use strict";i.d(t,{Mj:()=>k});var s={grad:.9,turn:360,rad:360/(2*Math.PI)},n=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},r=function(e,t,i){return void 0===t&&(t=0),void 0===i&&(i=Math.pow(10,t)),Math.round(i*e)/i+0},o=function(e,t,i){return void 0===t&&(t=0),void 0===i&&(i=1),e>i?i:e>t?e:t},a=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},c=function(e){return{r:o(e.r,0,255),g:o(e.g,0,255),b:o(e.b,0,255),a:o(e.a)}},l=function(e){return{r:r(e.r),g:r(e.g),b:r(e.b),a:r(e.a,3)}},h=/^#([0-9a-f]{3,8})$/i,d=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},u=function(e){var t=e.r,i=e.g,s=e.b,n=e.a,r=Math.max(t,i,s),o=r-Math.min(t,i,s),a=o?r===t?(i-s)/o:r===i?2+(s-t)/o:4+(t-i)/o:0;return{h:60*(a<0?a+6:a),s:r?o/r*100:0,v:r/255*100,a:n}},g=function(e){var t=e.h,i=e.s,s=e.v,n=e.a;t=t/360*6,i/=100,s/=100;var r=Math.floor(t),o=s*(1-i),a=s*(1-(t-r)*i),c=s*(1-(1-t+r)*i),l=r%6;return{r:255*[s,a,o,o,c,s][l],g:255*[c,s,s,a,o,o][l],b:255*[o,o,c,s,s,a][l],a:n}},p=function(e){return{h:a(e.h),s:o(e.s,0,100),l:o(e.l,0,100),a:o(e.a)}},m=function(e){return{h:r(e.h),s:r(e.s),l:r(e.l),a:r(e.a,3)}},f=function(e){return g((i=(t=e).s,{h:t.h,s:(i*=((s=t.l)<50?s:100-s)/100)>0?2*i/(s+i)*100:0,v:s+i,a:t.a}));var t,i,s},_=function(e){return{h:(t=u(e)).h,s:(n=(200-(i=t.s))*(s=t.v)/100)>0&&n<200?i*s/100/(n<=100?n:200-n)*100:0,l:n/2,a:t.a};var t,i,s,n},v=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,C=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,E=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,b=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,S={string:[[function(e){var t=h.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?r(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?r(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=E.exec(e)||b.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:c({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=v.exec(e)||C.exec(e);if(!t)return null;var i,n,r=p({h:(i=t[1],n=t[2],void 0===n&&(n="deg"),Number(i)*(s[n]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return f(r)},"hsl"]],object:[[function(e){var t=e.r,i=e.g,s=e.b,r=e.a,o=void 0===r?1:r;return n(t)&&n(i)&&n(s)?c({r:Number(t),g:Number(i),b:Number(s),a:Number(o)}):null},"rgb"],[function(e){var t=e.h,i=e.s,s=e.l,r=e.a,o=void 0===r?1:r;if(!n(t)||!n(i)||!n(s))return null;var a=p({h:Number(t),s:Number(i),l:Number(s),a:Number(o)});return f(a)},"hsl"],[function(e){var t=e.h,i=e.s,s=e.v,r=e.a,c=void 0===r?1:r;if(!n(t)||!n(i)||!n(s))return null;var l=function(e){return{h:a(e.h),s:o(e.s,0,100),v:o(e.v,0,100),a:o(e.a)}}({h:Number(t),s:Number(i),v:Number(s),a:Number(c)});return g(l)},"hsv"]]},y=function(e,t){for(var i=0;i<t.length;i++){var s=t[i][0](e);if(s)return[s,t[i][1]]}return[null,void 0]},w=function(e){return"string"==typeof e?y(e.trim(),S.string):"object"==typeof e&&null!==e?y(e,S.object):[null,void 0]},R=function(e,t){var i=_(e);return{h:i.h,s:o(i.s+100*t,0,100),l:i.l,a:i.a}},L=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},T=function(e,t){var i=_(e);return{h:i.h,s:i.s,l:o(i.l+100*t,0,100),a:i.a}},x=function(){function e(e){this.parsed=w(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return r(L(this.rgba),2)},e.prototype.isDark=function(){return L(this.rgba)<.5},e.prototype.isLight=function(){return L(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=l(this.rgba)).r,i=e.g,s=e.b,o=(n=e.a)<1?d(r(255*n)):"","#"+d(t)+d(i)+d(s)+o;var e,t,i,s,n,o},e.prototype.toRgb=function(){return l(this.rgba)},e.prototype.toRgbString=function(){return t=(e=l(this.rgba)).r,i=e.g,s=e.b,(n=e.a)<1?"rgba("+t+", "+i+", "+s+", "+n+")":"rgb("+t+", "+i+", "+s+")";var e,t,i,s,n},e.prototype.toHsl=function(){return m(_(this.rgba))},e.prototype.toHslString=function(){return t=(e=m(_(this.rgba))).h,i=e.s,s=e.l,(n=e.a)<1?"hsla("+t+", "+i+"%, "+s+"%, "+n+")":"hsl("+t+", "+i+"%, "+s+"%)";var e,t,i,s,n},e.prototype.toHsv=function(){return e=u(this.rgba),{h:r(e.h),s:r(e.s),v:r(e.v),a:r(e.a,3)};var e},e.prototype.invert=function(){return k({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),k(R(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),k(R(this.rgba,-e))},e.prototype.grayscale=function(){return k(R(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),k(T(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),k(T(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?k({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):r(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=_(this.rgba);return"number"==typeof e?k({h:e,s:t.s,l:t.l,a:t.a}):r(t.h)},e.prototype.isEqual=function(e){return this.toHex()===k(e).toHex()},e}(),k=function(e){return e instanceof x?e:new x(e)}},90651:(e,t,i)=>{"use strict";i.d(t,{k:()=>s});const s=(0,i(63591).u1)("telemetryService")},90766:(e,t,i)=>{"use strict";i.d(t,{$1:()=>_,$6:()=>b,A0:()=>y,AE:()=>T,EQ:()=>f,F6:()=>w,HC:()=>L,PK:()=>d,Qg:()=>l,SS:()=>h,Th:()=>p,Zv:()=>R,b7:()=>S,bI:()=>k,pc:()=>v,uC:()=>E,vb:()=>C,ve:()=>g,wR:()=>m});var s=i(18447),n=i(64383),r=i(41234),o=i(5662),a=i(98067),c=i(44759);function l(e){return!!e&&"function"===typeof e.then}function h(e){const t=new s.Qi,i=e(t.token),r=new Promise(((e,s)=>{const r=t.token.onCancellationRequested((()=>{r.dispose(),s(new n.AL)}));Promise.resolve(i).then((i=>{r.dispose(),t.dispose(),e(i)}),(e=>{r.dispose(),t.dispose(),s(e)}))}));return new class{cancel(){t.cancel(),t.dispose()}then(e,t){return r.then(e,t)}catch(e){return this.then(void 0,e)}finally(e){return r.finally(e)}}}function d(e,t,i){return new Promise(((s,n)=>{const r=t.onCancellationRequested((()=>{r.dispose(),s(i)}));e.then(s,n).finally((()=>r.dispose()))}))}class u{constructor(){this.isDisposed=!1,this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(e){if(this.isDisposed)return Promise.reject(new Error("Throttler is disposed"));if(this.activePromise){if(this.queuedPromiseFactory=e,!this.queuedPromise){const e=()=>{if(this.queuedPromise=null,this.isDisposed)return;const e=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,e};this.queuedPromise=new Promise((t=>{this.activePromise.then(e,e).then(t)}))}return new Promise(((e,t)=>{this.queuedPromise.then(e,t)}))}return this.activePromise=e(),new Promise(((e,t)=>{this.activePromise.then((t=>{this.activePromise=null,e(t)}),(e=>{this.activePromise=null,t(e)}))}))}dispose(){this.isDisposed=!0}}class g{constructor(e){this.defaultDelay=e,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(e,t=this.defaultDelay){this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise(((e,t)=>{this.doResolve=e,this.doReject=t})).then((()=>{if(this.completionPromise=null,this.doResolve=null,this.task){const e=this.task;return this.task=null,e()}})));const i=()=>{this.deferred=null,this.doResolve?.(null)};return this.deferred=t===c.h?(e=>{let t=!0;return queueMicrotask((()=>{t&&(t=!1,e())})),{isTriggered:()=>t,dispose:()=>{t=!1}}})(i):((e,t)=>{let i=!0;const s=setTimeout((()=>{i=!1,t()}),e);return{isTriggered:()=>i,dispose:()=>{clearTimeout(s),i=!1}}})(t,i),this.completionPromise}isTriggered(){return!!this.deferred?.isTriggered()}cancel(){this.cancelTimeout(),this.completionPromise&&(this.doReject?.(new n.AL),this.completionPromise=null)}cancelTimeout(){this.deferred?.dispose(),this.deferred=null}dispose(){this.cancel()}}class p{constructor(e){this.delayer=new g(e),this.throttler=new u}trigger(e,t){return this.delayer.trigger((()=>this.throttler.queue(e)),t)}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose(),this.throttler.dispose()}}function m(e,t){return t?new Promise(((i,s)=>{const r=setTimeout((()=>{o.dispose(),i()}),e),o=t.onCancellationRequested((()=>{clearTimeout(r),o.dispose(),s(new n.AL)}))})):h((t=>m(e,t)))}function f(e,t=0,i){const s=setTimeout((()=>{e(),i&&n.dispose()}),t),n=(0,o.s)((()=>{clearTimeout(s),i?.deleteAndLeak(n)}));return i?.add(n),n}function _(e,t=e=>!!e,i=null){let s=0;const n=e.length,r=()=>{if(s>=n)return Promise.resolve(i);const o=e[s++];return Promise.resolve(o()).then((e=>t(e)?Promise.resolve(e):r()))};return r()}class v{constructor(e,t){this._isDisposed=!1,this._token=-1,"function"===typeof e&&"number"===typeof t&&this.setIfNotSet(e,t)}dispose(){this.cancel(),this._isDisposed=!0}cancel(){-1!==this._token&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,t){if(this._isDisposed)throw new n.D7("Calling 'cancelAndSet' on a disposed TimeoutTimer");this.cancel(),this._token=setTimeout((()=>{this._token=-1,e()}),t)}setIfNotSet(e,t){if(this._isDisposed)throw new n.D7("Calling 'setIfNotSet' on a disposed TimeoutTimer");-1===this._token&&(this._token=setTimeout((()=>{this._token=-1,e()}),t))}}class C{constructor(){this.disposable=void 0,this.isDisposed=!1}cancel(){this.disposable?.dispose(),this.disposable=void 0}cancelAndSet(e,t,i=globalThis){if(this.isDisposed)throw new n.D7("Calling 'cancelAndSet' on a disposed IntervalTimer");this.cancel();const s=i.setInterval((()=>{e()}),t);this.disposable=(0,o.s)((()=>{i.clearInterval(s),this.disposable=void 0}))}dispose(){this.cancel(),this.isDisposed=!0}}class E{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return-1!==this.timeoutToken}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner?.()}}let b,S;S="function"!==typeof globalThis.requestIdleCallback||"function"!==typeof globalThis.cancelIdleCallback?(e,t)=>{(0,a._p)((()=>{if(i)return;const e=Date.now()+15,s={didTimeout:!0,timeRemaining:()=>Math.max(0,e-Date.now())};t(Object.freeze(s))}));let i=!1;return{dispose(){i||(i=!0)}}}:(e,t,i)=>{const s=e.requestIdleCallback(t,"number"===typeof i?{timeout:i}:void 0);let n=!1;return{dispose(){n||(n=!0,e.cancelIdleCallback(s))}}},b=e=>S(globalThis,e);class y{constructor(e,t){this._didRun=!1,this._executor=()=>{try{this._value=t()}catch(e){this._error=e}finally{this._didRun=!0}},this._handle=S(e,(()=>this._executor()))}dispose(){this._handle.dispose()}get value(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}get isInitialized(){return this._didRun}}class w extends y{constructor(e){super(globalThis,e)}}class R{get isRejected(){return 1===this.outcome?.outcome}get isSettled(){return!!this.outcome}constructor(){this.p=new Promise(((e,t)=>{this.completeCallback=e,this.errorCallback=t}))}complete(e){return new Promise((t=>{this.completeCallback(e),this.outcome={outcome:0,value:e},t()}))}error(e){return new Promise((t=>{this.errorCallback(e),this.outcome={outcome:1,value:e},t()}))}cancel(){return this.error(new n.AL)}}var L;!function(e){e.settled=async function(e){let t;const i=await Promise.all(e.map((e=>e.then((e=>e),(e=>{t||(t=e)})))));if("undefined"!==typeof t)throw t;return i},e.withAsyncBody=function(e){return new Promise((async(t,i)=>{try{await e(t,i)}catch(s){i(s)}}))}}(L||(L={}));class T{static fromArray(e){return new T((t=>{t.emitMany(e)}))}static fromPromise(e){return new T((async t=>{t.emitMany(await e)}))}static fromPromises(e){return new T((async t=>{await Promise.all(e.map((async e=>t.emitOne(await e))))}))}static merge(e){return new T((async t=>{await Promise.all(e.map((async e=>{for await(const i of e)t.emitOne(i)})))}))}static{this.EMPTY=T.fromArray([])}constructor(e,t){this._state=0,this._results=[],this._error=null,this._onReturn=t,this._onStateChanged=new r.vl,queueMicrotask((async()=>{const t={emitOne:e=>this.emitOne(e),emitMany:e=>this.emitMany(e),reject:e=>this.reject(e)};try{await Promise.resolve(e(t)),this.resolve()}catch(i){this.reject(i)}finally{t.emitOne=void 0,t.emitMany=void 0,t.reject=void 0}}))}[Symbol.asyncIterator](){let e=0;return{next:async()=>{for(;;){if(2===this._state)throw this._error;if(e<this._results.length)return{done:!1,value:this._results[e++]};if(1===this._state)return{done:!0,value:void 0};await r.Jh.toPromise(this._onStateChanged.event)}},return:async()=>(this._onReturn?.(),{done:!0,value:void 0})}}static map(e,t){return new T((async i=>{for await(const s of e)i.emitOne(t(s))}))}map(e){return T.map(this,e)}static filter(e,t){return new T((async i=>{for await(const s of e)t(s)&&i.emitOne(s)}))}filter(e){return T.filter(this,e)}static coalesce(e){return T.filter(e,(e=>!!e))}coalesce(){return T.coalesce(this)}static async toPromise(e){const t=[];for await(const i of e)t.push(i);return t}toPromise(){return T.toPromise(this)}emitOne(e){0===this._state&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){0===this._state&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){0===this._state&&(this._state=1,this._onStateChanged.fire())}reject(e){0===this._state&&(this._state=2,this._error=e,this._onStateChanged.fire())}}class x extends T{constructor(e,t){super(t),this._source=e}cancel(){this._source.cancel()}}function k(e){const t=new s.Qi,i=e(t.token);return new x(t,(async e=>{const s=t.token.onCancellationRequested((()=>{s.dispose(),t.dispose(),e.reject(new n.AL)}));try{for await(const s of i){if(t.token.isCancellationRequested)return;e.emitOne(s)}s.dispose(),t.dispose()}catch(r){s.dispose(),t.dispose(),e.reject(r)}}))}},90851:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("g",{clipPath:"url(#a)"},s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.522 10.68a2.14 2.14 0 0 0 2.11 1.82 2.125 2.125 0 1 0-2.11-1.82M3.64 14h-.015a3.626 3.626 0 0 1-3.558-2.927 3.6 3.6 0 0 1 .256-2.212L2.98 2.98a2.516 2.516 0 0 1 4.802 1.237L7.673 5.6a1.5 1.5 0 0 1 .655 0l-.11-1.382a2.516 2.516 0 0 1 4.801-1.237l2.658 5.88a3.6 3.6 0 0 1 .256 2.213A3.626 3.626 0 0 1 12.375 14h-.015a3.64 3.64 0 0 1-3.628-3.35l-.174-2.176A.96.96 0 0 0 8 8.312a.96.96 0 0 0-.558.162l-.174 2.176A3.64 3.64 0 0 1 3.64 14m-.015-7.25c.91 0 1.742.336 2.379.89l.283-3.542a1.016 1.016 0 0 0-1.94-.5L2.89 6.825a3.6 3.6 0 0 1 .736-.075m10.853 3.93q.022-.15.022-.305a2.125 2.125 0 1 0-2.132 2.125 2.14 2.14 0 0 0 2.11-1.82m-2.826-7.082 1.459 3.227a3.61 3.61 0 0 0-3.115.815l-.283-3.542a1.016 1.016 0 0 1 1.94-.5",clipRule:"evenodd"})),s.createElement("defs",null,s.createElement("clipPath",{id:"a"},s.createElement("path",{fill:"currentColor",d:"M0 0h16v16H0z"}))))},90870:(e,t,i)=>{"use strict";i.d(t,{D:()=>je});var s,n=i(11007),r=i(25890),o=i(18447),a=i(64383),c=i(41234),l=i(42539),h=i(5662),d=i(98067),u=i(78381),g=i(631),p=i(55190),m=i(31450),f=i(7085),_=i(83069),v=i(36677),C=i(60002),E=i(30936),b=i(29319),S=i(88415),y=i(32848),w=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},R=function(e,t){return function(i,s){t(i,s,e)}};let L=class{static{s=this}static{this.AtEnd=new y.N1("atEndOfWord",!1)}constructor(e,t){this._editor=e,this._enabled=!1,this._ckAtEnd=s.AtEnd.bindTo(t),this._configListener=this._editor.onDidChangeConfiguration((e=>e.hasChanged(124)&&this._update())),this._update()}dispose(){this._configListener.dispose(),this._selectionListener?.dispose(),this._ckAtEnd.reset()}_update(){const e="on"===this._editor.getOption(124);if(this._enabled!==e)if(this._enabled=e,this._enabled){const e=()=>{if(!this._editor.hasModel())return void this._ckAtEnd.set(!1);const e=this._editor.getModel(),t=this._editor.getSelection(),i=e.getWordAtPosition(t.getStartPosition());i?this._ckAtEnd.set(i.endColumn===t.getStartPosition().column):this._ckAtEnd.set(!1)};this._selectionListener=this._editor.onDidChangeCursorSelection(e),e()}else this._selectionListener&&(this._ckAtEnd.reset(),this._selectionListener.dispose(),this._selectionListener=void 0)}};L=s=w([R(1,y.fN)],L);var T,x=i(78209),k=i(50091),A=i(63591),N=i(18801),I=i(48116),O=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},D=function(e,t){return function(i,s){t(i,s,e)}};let M=class{static{T=this}static{this.OtherSuggestions=new y.N1("hasOtherSuggestions",!1)}constructor(e,t){this._editor=e,this._index=0,this._ckOtherSuggestions=T.OtherSuggestions.bindTo(t)}dispose(){this.reset()}reset(){this._ckOtherSuggestions.reset(),this._listener?.dispose(),this._model=void 0,this._acceptNext=void 0,this._ignore=!1}set({model:e,index:t},i){if(0===e.items.length)return void this.reset();T._moveIndex(!0,e,t)!==t?(this._acceptNext=i,this._model=e,this._index=t,this._listener=this._editor.onDidChangeCursorPosition((()=>{this._ignore||this.reset()})),this._ckOtherSuggestions.set(!0)):this.reset()}static _moveIndex(e,t,i){let s=i;for(let n=t.items.length;n>0&&(s=(s+t.items.length+(e?1:-1))%t.items.length,s!==i)&&t.items[s].completion.additionalTextEdits;n--);return s}next(){this._move(!0)}prev(){this._move(!1)}_move(e){if(this._model)try{this._ignore=!0,this._index=T._moveIndex(e,this._model,this._index),this._acceptNext({index:this._index,item:this._model.items[this._index],model:this._model})}finally{this._ignore=!1}}};M=T=O([D(1,y.fN)],M);var P=i(60534);class F{constructor(e,t,i,s){this._disposables=new h.Cm,this._disposables.add(i.onDidSuggest((e=>{0===e.completionModel.items.length&&this.reset()}))),this._disposables.add(i.onDidCancel((e=>{this.reset()}))),this._disposables.add(t.onDidShow((()=>this._onItem(t.getFocusedItem())))),this._disposables.add(t.onDidFocus(this._onItem,this)),this._disposables.add(t.onDidHide(this.reset,this)),this._disposables.add(e.onWillType((n=>{if(this._active&&!t.isFrozen()&&0!==i.state){const t=n.charCodeAt(n.length-1);this._active.acceptCharacters.has(t)&&e.getOption(0)&&s(this._active.item)}})))}_onItem(e){if(!e||!(0,r.EI)(e.item.completion.commitCharacters))return void this.reset();if(this._active&&this._active.item.item===e.item)return;const t=new P.y;for(const i of e.item.completion.commitCharacters)i.length>0&&t.add(i.charCodeAt(0));this._active={acceptCharacters:t,item:e}}reset(){this._active=void 0}dispose(){this._disposables.dispose()}}var U=i(96299);class H{static{this._maxSelectionLength=51200}constructor(e,t){this._disposables=new h.Cm,this._lastOvertyped=[],this._locked=!1,this._disposables.add(e.onWillType((()=>{if(this._locked||!e.hasModel())return;const t=e.getSelections(),i=t.length;let s=!1;for(let e=0;e<i;e++)if(!t[e].isEmpty()){s=!0;break}if(!s)return void(0!==this._lastOvertyped.length&&(this._lastOvertyped.length=0));this._lastOvertyped=[];const n=e.getModel();for(let e=0;e<i;e++){const i=t[e];if(n.getValueLengthInRange(i)>H._maxSelectionLength)return;this._lastOvertyped[e]={value:n.getValueInRange(i),multiline:i.startLineNumber!==i.endLineNumber}}}))),this._disposables.add(t.onDidTrigger((e=>{this._locked=!0}))),this._disposables.add(t.onDidCancel((e=>{this._locked=!1})))}getLastOvertypedInfo(e){if(e>=0&&e<this._lastOvertyped.length)return this._lastOvertyped[e]}dispose(){this._disposables.dispose()}}var B=i(8597),W=(i(97791),i(93090)),V=i(90766),z=i(1592),G=i(91508),j=i(29163),K=i(11799),Y=i(57629),q=i(27195),$=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Q=function(e,t){return function(i,s){t(i,s,e)}};let X=class{constructor(e,t,i,s,n){this._menuId=t,this._menuService=s,this._contextKeyService=n,this._menuDisposables=new h.Cm,this.element=B.BC(e,B.$(".suggest-status-bar"));const r=e=>e instanceof q.Xe?i.createInstance(Y.rr,e,{useComma:!0}):void 0;this._leftActions=new K.E(this.element,{actionViewItemProvider:r}),this._rightActions=new K.E(this.element,{actionViewItemProvider:r}),this._leftActions.domNode.classList.add("left"),this._rightActions.domNode.classList.add("right")}dispose(){this._menuDisposables.dispose(),this._leftActions.dispose(),this._rightActions.dispose(),this.element.remove()}show(){const e=this._menuService.createMenu(this._menuId,this._contextKeyService),t=()=>{const t=[],i=[];for(const[s,n]of e.getActions())"left"===s?t.push(...n):i.push(...n);this._leftActions.clear(),this._leftActions.push(t),this._rightActions.clear(),this._rightActions.push(i)};this._menuDisposables.add(e.onDidChange((()=>t()))),this._menuDisposables.add(e)}hide(){this._menuDisposables.clear()}};X=$([Q(2,A._Y),Q(3,q.ez),Q(4,y.fN)],X);i(93409);var Z=i(9711),J=i(66261),ee=i(86723),te=i(47612),ie=i(88807),se=i(31295),ne=i(10350),re=i(25689),oe=i(16980),ae=i(20492),ce=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},le=function(e,t){return function(i,s){t(i,s,e)}};function he(e){return!!e&&Boolean(e.completion.documentation||e.completion.detail&&e.completion.detail!==e.completion.label)}let de=class{constructor(e,t){this._editor=e,this._onDidClose=new c.vl,this.onDidClose=this._onDidClose.event,this._onDidChangeContents=new c.vl,this.onDidChangeContents=this._onDidChangeContents.event,this._disposables=new h.Cm,this._renderDisposeable=new h.Cm,this._borderWidth=1,this._size=new B.fg(330,0),this.domNode=B.$(".suggest-details"),this.domNode.classList.add("no-docs"),this._markdownRenderer=t.createInstance(ae.T,{editor:e}),this._body=B.$(".body"),this._scrollbar=new se.MU(this._body,{alwaysConsumeMouseWheel:!0}),B.BC(this.domNode,this._scrollbar.getDomNode()),this._disposables.add(this._scrollbar),this._header=B.BC(this._body,B.$(".header")),this._close=B.BC(this._header,B.$("span"+re.L.asCSSSelector(ne.W.close))),this._close.title=x.kg("details.close","Close"),this._type=B.BC(this._header,B.$("p.type")),this._docs=B.BC(this._body,B.$("p.docs")),this._configureFont(),this._disposables.add(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(50)&&this._configureFont()})))}dispose(){this._disposables.dispose(),this._renderDisposeable.dispose()}_configureFont(){const e=this._editor.getOptions(),t=e.get(50),i=t.getMassagedFontFamily(),s=e.get(120)||t.fontSize,n=e.get(121)||t.lineHeight,r=t.fontWeight,o=`${s}px`,a=`${n}px`;this.domNode.style.fontSize=o,this.domNode.style.lineHeight=""+n/s,this.domNode.style.fontWeight=r,this.domNode.style.fontFeatureSettings=t.fontFeatureSettings,this._type.style.fontFamily=i,this._close.style.height=a,this._close.style.width=a}getLayoutInfo(){const e=this._editor.getOption(121)||this._editor.getOption(50).lineHeight,t=this._borderWidth;return{lineHeight:e,borderWidth:t,borderHeight:2*t,verticalPadding:22,horizontalPadding:14}}renderLoading(){this._type.textContent=x.kg("loading","Loading..."),this._docs.textContent="",this.domNode.classList.remove("no-docs","no-type"),this.layout(this.size.width,2*this.getLayoutInfo().lineHeight),this._onDidChangeContents.fire(this)}renderItem(e,t){this._renderDisposeable.clear();let{detail:i,documentation:s}=e.completion;if(t){let t="";t+=`score: ${e.score[0]}\n`,t+=`prefix: ${e.word??"(no prefix)"}\n`,t+=`word: ${e.completion.filterText?e.completion.filterText+" (filterText)":e.textLabel}\n`,t+=`distance: ${e.distance} (localityBonus-setting)\n`,t+=`index: ${e.idx}, based on ${e.completion.sortText&&`sortText: "${e.completion.sortText}"`||"label"}\n`,t+=`commit_chars: ${e.completion.commitCharacters?.join("")}\n`,s=(new oe.Bc).appendCodeblock("empty",t),i=`Provider: ${e.provider._debugDisplayName}`}if(t||he(e)){if(this.domNode.classList.remove("no-docs","no-type"),i){const e=i.length>1e5?`${i.substr(0,1e5)}\u2026`:i;this._type.textContent=e,this._type.title=e,B.WU(this._type),this._type.classList.toggle("auto-wrap",!/\r?\n^\s+/gim.test(e))}else B.w_(this._type),this._type.title="",B.jD(this._type),this.domNode.classList.add("no-type");if(B.w_(this._docs),"string"===typeof s)this._docs.classList.remove("markdown-docs"),this._docs.textContent=s;else if(s){this._docs.classList.add("markdown-docs"),B.w_(this._docs);const e=this._markdownRenderer.render(s);this._docs.appendChild(e.element),this._renderDisposeable.add(e),this._renderDisposeable.add(this._markdownRenderer.onDidRenderAsync((()=>{this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)})))}this.domNode.style.userSelect="text",this.domNode.tabIndex=-1,this._close.onmousedown=e=>{e.preventDefault(),e.stopPropagation()},this._close.onclick=e=>{e.preventDefault(),e.stopPropagation(),this._onDidClose.fire()},this._body.scrollTop=0,this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)}else this.clearContents()}clearContents(){this.domNode.classList.add("no-docs"),this._type.textContent="",this._docs.textContent=""}get isEmpty(){return this.domNode.classList.contains("no-docs")}get size(){return this._size}layout(e,t){const i=new B.fg(e,t);B.fg.equals(i,this._size)||(this._size=i,B.Ej(this.domNode,e,t)),this._scrollbar.scanDomNode()}scrollDown(e=8){this._body.scrollTop+=e}scrollUp(e=8){this._body.scrollTop-=e}scrollTop(){this._body.scrollTop=0}scrollBottom(){this._body.scrollTop=this._body.scrollHeight}pageDown(){this.scrollDown(80)}pageUp(){this.scrollUp(80)}set borderWidth(e){this._borderWidth=e}get borderWidth(){return this._borderWidth}};de=ce([le(1,A._Y)],de);class ue{constructor(e,t){let i,s;this.widget=e,this._editor=t,this.allowEditorOverflow=!0,this._disposables=new h.Cm,this._added=!1,this._preferAlignAtTop=!0,this._resizable=new ie.v,this._resizable.domNode.classList.add("suggest-details-container"),this._resizable.domNode.appendChild(e.domNode),this._resizable.enableSashes(!1,!0,!0,!1);let n=0,r=0;this._disposables.add(this._resizable.onDidWillResize((()=>{i=this._topLeft,s=this._resizable.size}))),this._disposables.add(this._resizable.onDidResize((e=>{if(i&&s){this.widget.layout(e.dimension.width,e.dimension.height);let t=!1;e.west&&(r=s.width-e.dimension.width,t=!0),e.north&&(n=s.height-e.dimension.height,t=!0),t&&this._applyTopLeft({top:i.top+n,left:i.left+r})}e.done&&(i=void 0,s=void 0,n=0,r=0,this._userSize=e.dimension)}))),this._disposables.add(this.widget.onDidChangeContents((()=>{this._anchorBox&&this._placeAtAnchor(this._anchorBox,this._userSize??this.widget.size,this._preferAlignAtTop)})))}dispose(){this._resizable.dispose(),this._disposables.dispose(),this.hide()}getId(){return"suggest.details"}getDomNode(){return this._resizable.domNode}getPosition(){return this._topLeft?{preference:this._topLeft}:null}show(){this._added||(this._editor.addOverlayWidget(this),this._added=!0)}hide(e=!1){this._resizable.clearSashHoverState(),this._added&&(this._editor.removeOverlayWidget(this),this._added=!1,this._anchorBox=void 0,this._topLeft=void 0),e&&(this._userSize=void 0,this.widget.clearContents())}placeAtAnchor(e,t){const i=e.getBoundingClientRect();this._anchorBox=i,this._preferAlignAtTop=t,this._placeAtAnchor(this._anchorBox,this._userSize??this.widget.size,t)}_placeAtAnchor(e,t,i){const s=B.tG(this.getDomNode().ownerDocument.body),n=this.widget.getLayoutInfo(),r=new B.fg(220,2*n.lineHeight),o=e.top,a=function(){const i=s.width-(e.left+e.width+n.borderWidth+n.horizontalPadding),a=-n.borderWidth+e.left+e.width,c=new B.fg(i,s.height-e.top-n.borderHeight-n.verticalPadding),l=c.with(void 0,e.top+e.height-n.borderHeight-n.verticalPadding);return{top:o,left:a,fit:i-t.width,maxSizeTop:c,maxSizeBottom:l,minSize:r.with(Math.min(i,r.width))}}(),c=function(){const i=e.left-n.borderWidth-n.horizontalPadding,a=Math.max(n.horizontalPadding,e.left-t.width-n.borderWidth),c=new B.fg(i,s.height-e.top-n.borderHeight-n.verticalPadding),l=c.with(void 0,e.top+e.height-n.borderHeight-n.verticalPadding);return{top:o,left:a,fit:i-t.width,maxSizeTop:c,maxSizeBottom:l,minSize:r.with(Math.min(i,r.width))}}(),l=function(){const i=e.left,o=-n.borderWidth+e.top+e.height,a=new B.fg(e.width-n.borderHeight,s.height-e.top-e.height-n.verticalPadding);return{top:o,left:i,fit:a.height-t.height,maxSizeBottom:a,maxSizeTop:a,minSize:r.with(a.width)}}(),h=[a,c,l],d=h.find((e=>e.fit>=0))??h.sort(((e,t)=>t.fit-e.fit))[0],u=e.top+e.height-n.borderHeight;let g,p=t.height;const m=Math.max(d.maxSizeTop.height,d.maxSizeBottom.height);let f;p>m&&(p=m),i?p<=d.maxSizeTop.height?(g=!0,f=d.maxSizeTop):(g=!1,f=d.maxSizeBottom):p<=d.maxSizeBottom.height?(g=!1,f=d.maxSizeBottom):(g=!0,f=d.maxSizeTop);let{top:_,left:v}=d;!g&&p>e.height&&(_=u-p);const C=this._editor.getDomNode();if(C){const e=C.getBoundingClientRect();_-=e.top,v-=e.left}this._applyTopLeft({left:v,top:_}),this._resizable.enableSashes(!g,d===a,g,d!==a),this._resizable.minSize=d.minSize,this._resizable.maxSize=f,this._resizable.layout(p,Math.min(f.width,t.width)),this.widget.layout(this._resizable.size.width,this._resizable.size.height)}_applyTopLeft(e){this._topLeft=e,this._editor.layoutOverlayWidget(this)}}var ge=i(21852),pe=i(26690),me=i(79400),fe=i(62083),_e=i(53068),ve=i(23750),Ce=i(10154),Ee=i(7291),be=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Se=function(e,t){return function(i,s){t(i,s,e)}};function ye(e){return`suggest-aria-id:${e}`}const we=(0,i(61394).pU)("suggest-more-info",ne.W.chevronRight,x.kg("suggestMoreInfoIcon","Icon for more information in the suggest widget.")),Re=new class e{static{this._regexRelaxed=/(#([\da-fA-F]{3}){1,2}|(rgb|hsl)a\(\s*(\d{1,3}%?\s*,\s*){3}(1|0?\.\d+)\)|(rgb|hsl)\(\s*\d{1,3}%?(\s*,\s*\d{1,3}%?){2}\s*\))/}static{this._regexStrict=new RegExp(`^${e._regexRelaxed.source}$`,"i")}extract(t,i){if(t.textLabel.match(e._regexStrict))return i[0]=t.textLabel,!0;if(t.completion.detail&&t.completion.detail.match(e._regexStrict))return i[0]=t.completion.detail,!0;if(t.completion.documentation){const s="string"===typeof t.completion.documentation?t.completion.documentation:t.completion.documentation.value,n=e._regexRelaxed.exec(s);if(n&&(0===n.index||n.index+n[0].length===s.length))return i[0]=n[0],!0}return!1}};let Le=class{constructor(e,t,i,s){this._editor=e,this._modelService=t,this._languageService=i,this._themeService=s,this._onDidToggleDetails=new c.vl,this.onDidToggleDetails=this._onDidToggleDetails.event,this.templateId="suggestion"}dispose(){this._onDidToggleDetails.dispose()}renderTemplate(e){const t=new h.Cm,i=e;i.classList.add("show-file-icons");const s=(0,B.BC)(e,(0,B.$)(".icon")),n=(0,B.BC)(s,(0,B.$)("span.colorspan")),r=(0,B.BC)(e,(0,B.$)(".contents")),o=(0,B.BC)(r,(0,B.$)(".main")),a=(0,B.BC)(o,(0,B.$)(".icon-label.codicon")),c=(0,B.BC)(o,(0,B.$)("span.left")),l=(0,B.BC)(o,(0,B.$)("span.right")),d=new ge.s(c,{supportHighlights:!0,supportIcons:!0});t.add(d);const u=(0,B.BC)(c,(0,B.$)("span.signature-label")),g=(0,B.BC)(c,(0,B.$)("span.qualifier-label")),p=(0,B.BC)(l,(0,B.$)("span.details-label")),m=(0,B.BC)(l,(0,B.$)("span.readMore"+re.L.asCSSSelector(we)));m.title=x.kg("readMore","Read More");return{root:i,left:c,right:l,icon:s,colorspan:n,iconLabel:d,iconContainer:a,parametersLabel:u,qualifierLabel:g,detailsLabel:p,readMore:m,disposables:t,configureFont:()=>{const e=this._editor.getOptions(),t=e.get(50),n=t.getMassagedFontFamily(),r=t.fontFeatureSettings,a=e.get(120)||t.fontSize,c=e.get(121)||t.lineHeight,l=t.fontWeight,h=`${a}px`,d=`${c}px`,u=`${t.letterSpacing}px`;i.style.fontSize=h,i.style.fontWeight=l,i.style.letterSpacing=u,o.style.fontFamily=n,o.style.fontFeatureSettings=r,o.style.lineHeight=d,s.style.height=d,s.style.width=d,m.style.height=d,m.style.width=d}}}renderElement(e,t,i){i.configureFont();const{completion:s}=e;i.root.id=ye(t),i.colorspan.style.backgroundColor="";const n={labelEscapeNewLines:!0,matches:(0,pe.WJ)(e.score)},r=[];if(19===s.kind&&Re.extract(e,r))i.icon.className="icon customcolor",i.iconContainer.className="icon hide",i.colorspan.style.backgroundColor=r[0];else if(20===s.kind&&this._themeService.getFileIconTheme().hasFileIcons){i.icon.className="icon hide",i.iconContainer.className="icon hide";const t=(0,_e.getIconClasses)(this._modelService,this._languageService,me.r.from({scheme:"fake",path:e.textLabel}),Ee.p.FILE),r=(0,_e.getIconClasses)(this._modelService,this._languageService,me.r.from({scheme:"fake",path:s.detail}),Ee.p.FILE);n.extraClasses=t.length>r.length?t:r}else 23===s.kind&&this._themeService.getFileIconTheme().hasFolderIcons?(i.icon.className="icon hide",i.iconContainer.className="icon hide",n.extraClasses=[(0,_e.getIconClasses)(this._modelService,this._languageService,me.r.from({scheme:"fake",path:e.textLabel}),Ee.p.FOLDER),(0,_e.getIconClasses)(this._modelService,this._languageService,me.r.from({scheme:"fake",path:s.detail}),Ee.p.FOLDER)].flat()):(i.icon.className="icon hide",i.iconContainer.className="",i.iconContainer.classList.add("suggest-icon",...re.L.asClassNameArray(fe.HC.toIcon(s.kind))));s.tags&&s.tags.indexOf(1)>=0&&(n.extraClasses=(n.extraClasses||[]).concat(["deprecated"]),n.matches=[]),i.iconLabel.setLabel(e.textLabel,void 0,n),"string"===typeof s.label?(i.parametersLabel.textContent="",i.detailsLabel.textContent=Te(s.detail||""),i.root.classList.add("string-label")):(i.parametersLabel.textContent=Te(s.label.detail||""),i.detailsLabel.textContent=Te(s.label.description||""),i.root.classList.remove("string-label")),this._editor.getOption(119).showInlineDetails?(0,B.WU)(i.detailsLabel):(0,B.jD)(i.detailsLabel),he(e)?(i.right.classList.add("can-expand-details"),(0,B.WU)(i.readMore),i.readMore.onmousedown=e=>{e.stopPropagation(),e.preventDefault()},i.readMore.onclick=e=>{e.stopPropagation(),e.preventDefault(),this._onDidToggleDetails.fire()}):(i.right.classList.remove("can-expand-details"),(0,B.jD)(i.readMore),i.readMore.onmousedown=null,i.readMore.onclick=null)}disposeTemplate(e){e.disposables.dispose()}};function Te(e){return e.replace(/\r\n|\r|\n/g,"")}Le=be([Se(1,ve.IModelService),Se(2,Ce.L),Se(3,te.Gy)],Le);var xe,ke=i(19070),Ae=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Ne=function(e,t){return function(i,s){t(i,s,e)}};(0,J.x1A)("editorSuggestWidget.background",J.CgL,x.kg("editorSuggestWidgetBackground","Background color of the suggest widget.")),(0,J.x1A)("editorSuggestWidget.border",J.sIe,x.kg("editorSuggestWidgetBorder","Border color of the suggest widget."));const Ie=(0,J.x1A)("editorSuggestWidget.foreground",J.By2,x.kg("editorSuggestWidgetForeground","Foreground color of the suggest widget."));(0,J.x1A)("editorSuggestWidget.selectedForeground",J.nH,x.kg("editorSuggestWidgetSelectedForeground","Foreground color of the selected entry in the suggest widget.")),(0,J.x1A)("editorSuggestWidget.selectedIconForeground",J.c7i,x.kg("editorSuggestWidgetSelectedIconForeground","Icon foreground color of the selected entry in the suggest widget."));const Oe=(0,J.x1A)("editorSuggestWidget.selectedBackground",J.AlL,x.kg("editorSuggestWidgetSelectedBackground","Background color of the selected entry in the suggest widget."));(0,J.x1A)("editorSuggestWidget.highlightForeground",J.QI5,x.kg("editorSuggestWidgetHighlightForeground","Color of the match highlights in the suggest widget.")),(0,J.x1A)("editorSuggestWidget.focusHighlightForeground",J.eMz,x.kg("editorSuggestWidgetFocusHighlightForeground","Color of the match highlights in the suggest widget when an item is focused.")),(0,J.x1A)("editorSuggestWidgetStatus.foreground",(0,J.JO0)(Ie,.5),x.kg("editorSuggestWidgetStatusForeground","Foreground color of the suggest widget status."));class De{constructor(e,t){this._service=e,this._key=`suggestWidget.size/${t.getEditorType()}/${t instanceof j.t}`}restore(){const e=this._service.get(this._key,0)??"";try{const t=JSON.parse(e);if(B.fg.is(t))return B.fg.lift(t)}catch{}}store(e){this._service.store(this._key,JSON.stringify(e),0,1)}reset(){this._service.remove(this._key,0)}}let Me=class{static{xe=this}static{this.LOADING_MESSAGE=x.kg("suggestWidget.loading","Loading...")}static{this.NO_SUGGESTIONS_MESSAGE=x.kg("suggestWidget.noSuggestions","No suggestions.")}constructor(e,t,i,s,n){this.editor=e,this._storageService=t,this._state=0,this._isAuto=!1,this._pendingLayout=new h.HE,this._pendingShowDetails=new h.HE,this._ignoreFocusEvents=!1,this._forceRenderingAbove=!1,this._explainMode=!1,this._showTimeout=new V.pc,this._disposables=new h.Cm,this._onDidSelect=new c.fV,this._onDidFocus=new c.fV,this._onDidHide=new c.vl,this._onDidShow=new c.vl,this.onDidSelect=this._onDidSelect.event,this.onDidFocus=this._onDidFocus.event,this.onDidHide=this._onDidHide.event,this.onDidShow=this._onDidShow.event,this._onDetailsKeydown=new c.vl,this.onDetailsKeyDown=this._onDetailsKeydown.event,this.element=new ie.v,this.element.domNode.classList.add("editor-widget","suggest-widget"),this._contentWidget=new Pe(this,e),this._persistedSize=new De(t,e);class r{constructor(e,t,i=!1,s=!1){this.persistedSize=e,this.currentSize=t,this.persistHeight=i,this.persistWidth=s}}let o;this._disposables.add(this.element.onDidWillResize((()=>{this._contentWidget.lockPreference(),o=new r(this._persistedSize.restore(),this.element.size)}))),this._disposables.add(this.element.onDidResize((e=>{if(this._resize(e.dimension.width,e.dimension.height),o&&(o.persistHeight=o.persistHeight||!!e.north||!!e.south,o.persistWidth=o.persistWidth||!!e.east||!!e.west),e.done){if(o){const{itemHeight:e,defaultSize:t}=this.getLayoutInfo(),i=Math.round(e/2);let{width:s,height:n}=this.element.size;(!o.persistHeight||Math.abs(o.currentSize.height-n)<=i)&&(n=o.persistedSize?.height??t.height),(!o.persistWidth||Math.abs(o.currentSize.width-s)<=i)&&(s=o.persistedSize?.width??t.width),this._persistedSize.store(new B.fg(s,n))}this._contentWidget.unlockPreference(),o=void 0}}))),this._messageElement=B.BC(this.element.domNode,B.$(".message")),this._listElement=B.BC(this.element.domNode,B.$(".tree"));const a=this._disposables.add(n.createInstance(de,this.editor));a.onDidClose(this.toggleDetails,this,this._disposables),this._details=new ue(a,this.editor);const l=()=>this.element.domNode.classList.toggle("no-icons",!this.editor.getOption(119).showIcons);l();const d=n.createInstance(Le,this.editor);this._disposables.add(d),this._disposables.add(d.onDidToggleDetails((()=>this.toggleDetails()))),this._list=new W.B8("SuggestWidget",this._listElement,{getHeight:e=>this.getLayoutInfo().itemHeight,getTemplateId:e=>"suggestion"},[d],{alwaysConsumeMouseWheel:!0,useShadows:!1,mouseSupport:!1,multipleSelectionSupport:!1,accessibilityProvider:{getRole:()=>"option",getWidgetAriaLabel:()=>x.kg("suggest","Suggest"),getWidgetRole:()=>"listbox",getAriaLabel:e=>{let t=e.textLabel;if("string"!==typeof e.completion.label){const{detail:i,description:s}=e.completion.label;i&&s?t=x.kg("label.full","{0} {1}, {2}",t,i,s):i?t=x.kg("label.detail","{0} {1}",t,i):s&&(t=x.kg("label.desc","{0}, {1}",t,s))}if(!e.isResolved||!this._isDetailsVisible())return t;const{documentation:i,detail:s}=e.completion,n=G.GP("{0}{1}",s||"",i?"string"===typeof i?i:i.value:"");return x.kg("ariaCurrenttSuggestionReadDetails","{0}, docs: {1}",t,n)}}}),this._list.style((0,ke.t8)({listInactiveFocusBackground:Oe,listInactiveFocusOutline:J.buw})),this._status=n.createInstance(X,this.element.domNode,I.dt);const u=()=>this.element.domNode.classList.toggle("with-status-bar",this.editor.getOption(119).showStatusBar);u(),this._disposables.add(s.onDidColorThemeChange((e=>this._onThemeChange(e)))),this._onThemeChange(s.getColorTheme()),this._disposables.add(this._list.onMouseDown((e=>this._onListMouseDownOrTap(e)))),this._disposables.add(this._list.onTap((e=>this._onListMouseDownOrTap(e)))),this._disposables.add(this._list.onDidChangeSelection((e=>this._onListSelection(e)))),this._disposables.add(this._list.onDidChangeFocus((e=>this._onListFocus(e)))),this._disposables.add(this.editor.onDidChangeCursorSelection((()=>this._onCursorSelectionChanged()))),this._disposables.add(this.editor.onDidChangeConfiguration((e=>{e.hasChanged(119)&&(u(),l()),this._completionModel&&(e.hasChanged(50)||e.hasChanged(120)||e.hasChanged(121))&&this._list.splice(0,this._list.length,this._completionModel.items)}))),this._ctxSuggestWidgetVisible=I.ob.Visible.bindTo(i),this._ctxSuggestWidgetDetailsVisible=I.ob.DetailsVisible.bindTo(i),this._ctxSuggestWidgetMultipleSuggestions=I.ob.MultipleSuggestions.bindTo(i),this._ctxSuggestWidgetHasFocusedSuggestion=I.ob.HasFocusedSuggestion.bindTo(i),this._disposables.add(B.b2(this._details.widget.domNode,"keydown",(e=>{this._onDetailsKeydown.fire(e)}))),this._disposables.add(this.editor.onMouseDown((e=>this._onEditorMouseDown(e))))}dispose(){this._details.widget.dispose(),this._details.dispose(),this._list.dispose(),this._status.dispose(),this._disposables.dispose(),this._loadingTimeout?.dispose(),this._pendingLayout.dispose(),this._pendingShowDetails.dispose(),this._showTimeout.dispose(),this._contentWidget.dispose(),this.element.dispose()}_onEditorMouseDown(e){this._details.widget.domNode.contains(e.target.element)?this._details.widget.domNode.focus():this.element.domNode.contains(e.target.element)&&this.editor.focus()}_onCursorSelectionChanged(){0!==this._state&&this._contentWidget.layout()}_onListMouseDownOrTap(e){"undefined"!==typeof e.element&&"undefined"!==typeof e.index&&(e.browserEvent.preventDefault(),e.browserEvent.stopPropagation(),this._select(e.element,e.index))}_onListSelection(e){e.elements.length&&this._select(e.elements[0],e.indexes[0])}_select(e,t){const i=this._completionModel;i&&(this._onDidSelect.fire({item:e,index:t,model:i}),this.editor.focus())}_onThemeChange(e){this._details.widget.borderWidth=(0,ee.Bb)(e.type)?2:1}_onListFocus(e){if(this._ignoreFocusEvents)return;if(!e.elements.length)return this._currentSuggestionDetails&&(this._currentSuggestionDetails.cancel(),this._currentSuggestionDetails=void 0,this._focusedItem=void 0),this.editor.setAriaOptions({activeDescendant:void 0}),void this._ctxSuggestWidgetHasFocusedSuggestion.set(!1);if(!this._completionModel)return;this._ctxSuggestWidgetHasFocusedSuggestion.set(!0);const t=e.elements[0],i=e.indexes[0];t!==this._focusedItem&&(this._currentSuggestionDetails?.cancel(),this._currentSuggestionDetails=void 0,this._focusedItem=t,this._list.reveal(i),this._currentSuggestionDetails=(0,V.SS)((async e=>{const i=(0,V.EQ)((()=>{this._isDetailsVisible()&&this.showDetails(!0)}),250),s=e.onCancellationRequested((()=>i.dispose()));try{return await t.resolve(e)}finally{i.dispose(),s.dispose()}})),this._currentSuggestionDetails.then((()=>{i>=this._list.length||t!==this._list.element(i)||(this._ignoreFocusEvents=!0,this._list.splice(i,1,[t]),this._list.setFocus([i]),this._ignoreFocusEvents=!1,this._isDetailsVisible()?this.showDetails(!1):this.element.domNode.classList.remove("docs-side"),this.editor.setAriaOptions({activeDescendant:ye(i)}))})).catch(a.dz)),this._onDidFocus.fire({item:t,index:i,model:this._completionModel})}_setState(e){if(this._state!==e)switch(this._state=e,this.element.domNode.classList.toggle("frozen",4===e),this.element.domNode.classList.remove("message"),e){case 0:B.jD(this._messageElement,this._listElement,this._status.element),this._details.hide(!0),this._status.hide(),this._contentWidget.hide(),this._ctxSuggestWidgetVisible.reset(),this._ctxSuggestWidgetMultipleSuggestions.reset(),this._ctxSuggestWidgetHasFocusedSuggestion.reset(),this._showTimeout.cancel(),this.element.domNode.classList.remove("visible"),this._list.splice(0,this._list.length),this._focusedItem=void 0,this._cappedHeight=void 0,this._explainMode=!1;break;case 1:this.element.domNode.classList.add("message"),this._messageElement.textContent=xe.LOADING_MESSAGE,B.jD(this._listElement,this._status.element),B.WU(this._messageElement),this._details.hide(),this._show(),this._focusedItem=void 0,(0,n.h5)(xe.LOADING_MESSAGE);break;case 2:this.element.domNode.classList.add("message"),this._messageElement.textContent=xe.NO_SUGGESTIONS_MESSAGE,B.jD(this._listElement,this._status.element),B.WU(this._messageElement),this._details.hide(),this._show(),this._focusedItem=void 0,(0,n.h5)(xe.NO_SUGGESTIONS_MESSAGE);break;case 3:case 4:B.jD(this._messageElement),B.WU(this._listElement,this._status.element),this._show();break;case 5:B.jD(this._messageElement),B.WU(this._listElement,this._status.element),this._details.show(),this._show()}}_show(){this._status.show(),this._contentWidget.show(),this._layout(this._persistedSize.restore()),this._ctxSuggestWidgetVisible.set(!0),this._showTimeout.cancelAndSet((()=>{this.element.domNode.classList.add("visible"),this._onDidShow.fire(this)}),100)}showTriggered(e,t){0===this._state&&(this._contentWidget.setPosition(this.editor.getPosition()),this._isAuto=!!e,this._isAuto||(this._loadingTimeout=(0,V.EQ)((()=>this._setState(1)),t)))}showSuggestions(e,t,i,s,n){if(this._contentWidget.setPosition(this.editor.getPosition()),this._loadingTimeout?.dispose(),this._currentSuggestionDetails?.cancel(),this._currentSuggestionDetails=void 0,this._completionModel!==e&&(this._completionModel=e),i&&2!==this._state&&0!==this._state)return void this._setState(4);const r=this._completionModel.items.length,o=0===r;if(this._ctxSuggestWidgetMultipleSuggestions.set(r>1),o)return this._setState(s?0:2),void(this._completionModel=void 0);this._focusedItem=void 0,this._onDidFocus.pause(),this._onDidSelect.pause();try{this._list.splice(0,this._list.length,this._completionModel.items),this._setState(i?4:3),this._list.reveal(t,0),this._list.setFocus(n?[]:[t])}finally{this._onDidFocus.resume(),this._onDidSelect.resume()}this._pendingLayout.value=B.Oq(B.zk(this.element.domNode),(()=>{this._pendingLayout.clear(),this._layout(this.element.size),this._details.widget.domNode.classList.remove("focused")}))}focusSelected(){this._list.length>0&&this._list.setFocus([0])}selectNextPage(){switch(this._state){case 0:return!1;case 5:return this._details.widget.pageDown(),!0;case 1:return!this._isAuto;default:return this._list.focusNextPage(),!0}}selectNext(){switch(this._state){case 0:return!1;case 1:return!this._isAuto;default:return this._list.focusNext(1,!0),!0}}selectLast(){switch(this._state){case 0:return!1;case 5:return this._details.widget.scrollBottom(),!0;case 1:return!this._isAuto;default:return this._list.focusLast(),!0}}selectPreviousPage(){switch(this._state){case 0:return!1;case 5:return this._details.widget.pageUp(),!0;case 1:return!this._isAuto;default:return this._list.focusPreviousPage(),!0}}selectPrevious(){switch(this._state){case 0:return!1;case 1:return!this._isAuto;default:return this._list.focusPrevious(1,!0),!1}}selectFirst(){switch(this._state){case 0:return!1;case 5:return this._details.widget.scrollTop(),!0;case 1:return!this._isAuto;default:return this._list.focusFirst(),!0}}getFocusedItem(){if(0!==this._state&&2!==this._state&&1!==this._state&&this._completionModel&&this._list.getFocus().length>0)return{item:this._list.getFocusedElements()[0],index:this._list.getFocus()[0],model:this._completionModel}}toggleDetailsFocus(){5===this._state?(this._setState(3),this._details.widget.domNode.classList.remove("focused")):3===this._state&&this._isDetailsVisible()&&(this._setState(5),this._details.widget.domNode.classList.add("focused"))}toggleDetails(){this._isDetailsVisible()?(this._pendingShowDetails.clear(),this._ctxSuggestWidgetDetailsVisible.set(!1),this._setDetailsVisible(!1),this._details.hide(),this.element.domNode.classList.remove("shows-details")):!he(this._list.getFocusedElements()[0])&&!this._explainMode||3!==this._state&&5!==this._state&&4!==this._state||(this._ctxSuggestWidgetDetailsVisible.set(!0),this._setDetailsVisible(!0),this.showDetails(!1))}showDetails(e){this._pendingShowDetails.value=B.Oq(B.zk(this.element.domNode),(()=>{this._pendingShowDetails.clear(),this._details.show(),e?this._details.widget.renderLoading():this._details.widget.renderItem(this._list.getFocusedElements()[0],this._explainMode),this._details.widget.isEmpty?this._details.hide():(this._positionDetails(),this.element.domNode.classList.add("shows-details")),this.editor.focus()}))}toggleExplainMode(){this._list.getFocusedElements()[0]&&(this._explainMode=!this._explainMode,this._isDetailsVisible()?this.showDetails(!1):this.toggleDetails())}resetPersistedSize(){this._persistedSize.reset()}hideWidget(){this._pendingLayout.clear(),this._pendingShowDetails.clear(),this._loadingTimeout?.dispose(),this._setState(0),this._onDidHide.fire(this),this.element.clearSashHoverState();const e=this._persistedSize.restore(),t=Math.ceil(4.3*this.getLayoutInfo().itemHeight);e&&e.height<t&&this._persistedSize.store(e.with(void 0,t))}isFrozen(){return 4===this._state}_afterRender(e){null!==e?2!==this._state&&1!==this._state&&(this._isDetailsVisible()&&!this._details.widget.isEmpty&&this._details.show(),this._positionDetails()):this._isDetailsVisible()&&this._details.hide()}_layout(e){if(!this.editor.hasModel())return;if(!this.editor.getDomNode())return;const t=B.tG(this.element.domNode.ownerDocument.body),i=this.getLayoutInfo();e||(e=i.defaultSize);let s=e.height,n=e.width;if(this._status.element.style.height=`${i.itemHeight}px`,2===this._state||1===this._state)s=i.itemHeight+i.borderHeight,n=i.defaultSize.width/2,this.element.enableSashes(!1,!1,!1,!1),this.element.minSize=this.element.maxSize=new B.fg(n,s),this._contentWidget.setPreference(2);else{const r=t.width-i.borderHeight-2*i.horizontalPadding;n>r&&(n=r);const o=this._completionModel?this._completionModel.stats.pLabelLen*i.typicalHalfwidthCharacterWidth:n,a=i.statusBarHeight+this._list.contentHeight+i.borderHeight,c=i.itemHeight+i.statusBarHeight,l=B.BK(this.editor.getDomNode()),h=this.editor.getScrolledVisiblePosition(this.editor.getPosition()),d=l.top+h.top+h.height,u=Math.min(t.height-d-i.verticalPadding,a),g=l.top+h.top-i.verticalPadding,p=Math.min(g,a);let m=Math.min(Math.max(p,u)+i.borderHeight,a);s===this._cappedHeight?.capped&&(s=this._cappedHeight.wanted),s<c&&(s=c),s>m&&(s=m);const f=150;s>u||this._forceRenderingAbove&&g>f?(this._contentWidget.setPreference(1),this.element.enableSashes(!0,!0,!1,!1),m=p):(this._contentWidget.setPreference(2),this.element.enableSashes(!1,!0,!0,!1),m=u),this.element.preferredSize=new B.fg(o,i.defaultSize.height),this.element.maxSize=new B.fg(r,m),this.element.minSize=new B.fg(220,c),this._cappedHeight=s===a?{wanted:this._cappedHeight?.wanted??e.height,capped:s}:void 0}this._resize(n,s)}_resize(e,t){const{width:i,height:s}=this.element.maxSize;e=Math.min(i,e),t=Math.min(s,t);const{statusBarHeight:n}=this.getLayoutInfo();this._list.layout(t-n,e),this._listElement.style.height=t-n+"px",this.element.layout(t,e),this._contentWidget.layout(),this._positionDetails()}_positionDetails(){this._isDetailsVisible()&&this._details.placeAtAnchor(this.element.domNode,2===this._contentWidget.getPosition()?.preference[0])}getLayoutInfo(){const e=this.editor.getOption(50),t=(0,z.qE)(this.editor.getOption(121)||e.lineHeight,8,1e3),i=this.editor.getOption(119).showStatusBar&&2!==this._state&&1!==this._state?t:0,s=this._details.widget.borderWidth,n=2*s;return{itemHeight:t,statusBarHeight:i,borderWidth:s,borderHeight:n,typicalHalfwidthCharacterWidth:e.typicalHalfwidthCharacterWidth,verticalPadding:22,horizontalPadding:14,defaultSize:new B.fg(430,i+12*t+n)}}_isDetailsVisible(){return this._storageService.getBoolean("expandSuggestionDocs",0,!1)}_setDetailsVisible(e){this._storageService.store("expandSuggestionDocs",e,0,0)}forceRenderingAbove(){this._forceRenderingAbove||(this._forceRenderingAbove=!0,this._layout(this._persistedSize.restore()))}stopForceRenderingAbove(){this._forceRenderingAbove=!1}};Me=xe=Ae([Ne(1,Z.CS),Ne(2,y.fN),Ne(3,te.Gy),Ne(4,A._Y)],Me);class Pe{constructor(e,t){this._widget=e,this._editor=t,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._preferenceLocked=!1,this._added=!1,this._hidden=!1}dispose(){this._added&&(this._added=!1,this._editor.removeContentWidget(this))}getId(){return"editor.widget.suggestWidget"}getDomNode(){return this._widget.element.domNode}show(){this._hidden=!1,this._added||(this._added=!0,this._editor.addContentWidget(this))}hide(){this._hidden||(this._hidden=!0,this.layout())}layout(){this._editor.layoutContentWidget(this)}getPosition(){return!this._hidden&&this._position&&this._preference?{position:this._position,preference:[this._preference]}:null}beforeRender(){const{height:e,width:t}=this._widget.element.size,{borderWidth:i,horizontalPadding:s}=this._widget.getLayoutInfo();return new B.fg(t+2*i+s,e+2*i)}afterRender(e){this._widget._afterRender(e)}setPreference(e){this._preferenceLocked||(this._preference=e)}lockPreference(){this._preferenceLocked=!0}unlockPreference(){this._preferenceLocked=!1}setPosition(e){this._position=e}}var Fe,Ue=i(90651),He=i(89403),Be=i(85600),We=i(87289),Ve=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},ze=function(e,t){return function(i,s){t(i,s,e)}};class Ge{constructor(e,t){this._model=e,this._position=t,this._decorationOptions=We.kI.register({description:"suggest-line-suffix",stickiness:1});if(e.getLineMaxColumn(t.lineNumber)!==t.column){const i=e.getOffsetAt(t),s=e.getPositionAt(i+1);e.changeDecorations((e=>{this._marker&&e.removeDecoration(this._marker),this._marker=e.addDecoration(v.Q.fromPositions(t,s),this._decorationOptions)}))}}dispose(){this._marker&&!this._model.isDisposed()&&this._model.changeDecorations((e=>{e.removeDecoration(this._marker),this._marker=void 0}))}delta(e){if(this._model.isDisposed()||this._position.lineNumber!==e.lineNumber)return 0;if(this._marker){const t=this._model.getDecorationRange(this._marker);return this._model.getOffsetAt(t.getStartPosition())-this._model.getOffsetAt(e)}return this._model.getLineMaxColumn(e.lineNumber)-e.column}}let je=class{static{Fe=this}static{this.ID="editor.contrib.suggestController"}static get(e){return e.getContribution(Fe.ID)}constructor(e,t,i,s,n,r,o){this._memoryService=t,this._commandService=i,this._contextKeyService=s,this._instantiationService=n,this._logService=r,this._telemetryService=o,this._lineSuffix=new h.HE,this._toDispose=new h.Cm,this._selectors=new Ke((e=>e.priority)),this._onWillInsertSuggestItem=new c.vl,this.onWillInsertSuggestItem=this._onWillInsertSuggestItem.event,this.editor=e,this.model=n.createInstance(U.Y,this.editor),this._selectors.register({priority:0,select:(e,t,i)=>this._memoryService.select(e,t,i)});const a=I.ob.InsertMode.bindTo(s);a.set(e.getOption(119).insertMode),this._toDispose.add(this.model.onDidTrigger((()=>a.set(e.getOption(119).insertMode)))),this.widget=this._toDispose.add(new B.Ij((0,B.zk)(e.getDomNode()),(()=>{const e=this._instantiationService.createInstance(Me,this.editor);this._toDispose.add(e),this._toDispose.add(e.onDidSelect((e=>this._insertSuggestion(e,0)),this));const t=new F(this.editor,e,this.model,(e=>this._insertSuggestion(e,2)));this._toDispose.add(t);const i=I.ob.MakesTextEdit.bindTo(this._contextKeyService),s=I.ob.HasInsertAndReplaceRange.bindTo(this._contextKeyService),n=I.ob.CanResolve.bindTo(this._contextKeyService);return this._toDispose.add((0,h.s)((()=>{i.reset(),s.reset(),n.reset()}))),this._toDispose.add(e.onDidFocus((({item:e})=>{const t=this.editor.getPosition(),r=e.editStart.column,o=t.column;let a=!0;if("smart"===this.editor.getOption(1)&&2===this.model.state&&!e.completion.additionalTextEdits&&!(4&e.completion.insertTextRules)&&o-r===e.completion.insertText.length){a=this.editor.getModel().getValueInRange({startLineNumber:t.lineNumber,startColumn:r,endLineNumber:t.lineNumber,endColumn:o})!==e.completion.insertText}i.set(a),s.set(!_.y.equals(e.editInsertEnd,e.editReplaceEnd)),n.set(Boolean(e.provider.resolveCompletionItem)||Boolean(e.completion.documentation)||e.completion.detail!==e.completion.label)}))),this._toDispose.add(e.onDetailsKeyDown((e=>{e.toKeyCodeChord().equals(new l.dG(!0,!1,!1,!1,33))||d.zx&&e.toKeyCodeChord().equals(new l.dG(!1,!1,!1,!0,33))?e.stopPropagation():e.toKeyCodeChord().isModifierKey()||this.editor.focus()}))),e}))),this._overtypingCapturer=this._toDispose.add(new B.Ij((0,B.zk)(e.getDomNode()),(()=>this._toDispose.add(new H(this.editor,this.model))))),this._alternatives=this._toDispose.add(new B.Ij((0,B.zk)(e.getDomNode()),(()=>this._toDispose.add(new M(this.editor,this._contextKeyService))))),this._toDispose.add(n.createInstance(L,e)),this._toDispose.add(this.model.onDidTrigger((e=>{this.widget.value.showTriggered(e.auto,e.shy?250:50),this._lineSuffix.value=new Ge(this.editor.getModel(),e.position)}))),this._toDispose.add(this.model.onDidSuggest((e=>{if(e.triggerOptions.shy)return;let t=-1;for(const s of this._selectors.itemsOrderedByPriorityDesc)if(t=s.select(this.editor.getModel(),this.editor.getPosition(),e.completionModel.items),-1!==t)break;if(-1===t&&(t=0),0===this.model.state)return;let i=!1;if(e.triggerOptions.auto){const t=this.editor.getOption(119);"never"===t.selectionMode||"always"===t.selectionMode?i="never"===t.selectionMode:"whenTriggerCharacter"===t.selectionMode?i=1!==e.triggerOptions.triggerKind:"whenQuickSuggestion"===t.selectionMode&&(i=1===e.triggerOptions.triggerKind&&!e.triggerOptions.refilter)}this.widget.value.showSuggestions(e.completionModel,t,e.isFrozen,e.triggerOptions.auto,i)}))),this._toDispose.add(this.model.onDidCancel((e=>{e.retrigger||this.widget.value.hideWidget()}))),this._toDispose.add(this.editor.onDidBlurEditorWidget((()=>{this.model.cancel(),this.model.clear()})));const u=I.ob.AcceptSuggestionsOnEnter.bindTo(s),g=()=>{const e=this.editor.getOption(1);u.set("on"===e||"smart"===e)};this._toDispose.add(this.editor.onDidChangeConfiguration((()=>g()))),g()}dispose(){this._alternatives.dispose(),this._toDispose.dispose(),this.widget.dispose(),this.model.dispose(),this._lineSuffix.dispose(),this._onWillInsertSuggestItem.dispose()}_insertSuggestion(e,t){if(!e||!e.item)return this._alternatives.value.reset(),this.model.cancel(),void this.model.clear();if(!this.editor.hasModel())return;const i=E.O.get(this.editor);if(!i)return;this._onWillInsertSuggestItem.fire({item:e.item});const s=this.editor.getModel(),n=s.getAlternativeVersionId(),{item:r}=e,c=[],l=new o.Qi;1&t||this.editor.pushUndoStop();const h=this.getOverwriteInfo(r,Boolean(8&t));this._memoryService.memorize(s,this.editor.getPosition(),r);const d=r.isResolved;let g=-1,m=-1;if(Array.isArray(r.completion.additionalTextEdits)){this.model.cancel();const e=p.D.capture(this.editor);this.editor.executeEdits("suggestController.additionalTextEdits.sync",r.completion.additionalTextEdits.map((e=>{let t=v.Q.lift(e.range);if(t.startLineNumber===r.position.lineNumber&&t.startColumn>r.position.column){const e=this.editor.getPosition().column-r.position.column,i=e,s=v.Q.spansMultipleLines(t)?0:e;t=new v.Q(t.startLineNumber,t.startColumn+i,t.endLineNumber,t.endColumn+s)}return f.k.replaceMove(t,e.text)}))),e.restoreRelativeVerticalPositionOfCursor(this.editor)}else if(!d){const e=new u.W;let i;const n=s.onDidChangeContent((e=>{if(e.isFlush)return l.cancel(),void n.dispose();for(const t of e.changes){const e=v.Q.getEndPosition(t.range);i&&!_.y.isBefore(e,i)||(i=e)}})),o=t;t|=2;let a=!1;const h=this.editor.onWillType((()=>{h.dispose(),a=!0,2&o||this.editor.pushUndoStop()}));c.push(r.resolve(l.token).then((()=>{if(!r.completion.additionalTextEdits||l.token.isCancellationRequested)return;if(i&&r.completion.additionalTextEdits.some((e=>_.y.isBefore(i,v.Q.getStartPosition(e.range)))))return!1;a&&this.editor.pushUndoStop();const e=p.D.capture(this.editor);return this.editor.executeEdits("suggestController.additionalTextEdits.async",r.completion.additionalTextEdits.map((e=>f.k.replaceMove(v.Q.lift(e.range),e.text)))),e.restoreRelativeVerticalPositionOfCursor(this.editor),!a&&2&o||this.editor.pushUndoStop(),!0})).then((t=>{this._logService.trace("[suggest] async resolving of edits DONE (ms, applied?)",e.elapsed(),t),m=!0===t?1:!1===t?0:-2})).finally((()=>{n.dispose(),h.dispose()})))}let{insertText:C}=r.completion;if(4&r.completion.insertTextRules||(C=b.fr.escape(C)),this.model.cancel(),i.insert(C,{overwriteBefore:h.overwriteBefore,overwriteAfter:h.overwriteAfter,undoStopBefore:!1,undoStopAfter:!1,adjustWhitespace:!(1&r.completion.insertTextRules),clipboardText:e.model.clipboardText,overtypingCapturer:this._overtypingCapturer.value}),2&t||this.editor.pushUndoStop(),r.completion.command)if(r.completion.command.id===Ye.id)this.model.trigger({auto:!0,retrigger:!0});else{const e=new u.W;c.push(this._commandService.executeCommand(r.completion.command.id,...r.completion.command.arguments?[...r.completion.command.arguments]:[]).catch((e=>{r.completion.extensionId?(0,a.M_)(e):(0,a.dz)(e)})).finally((()=>{g=e.elapsed()})))}4&t&&this._alternatives.value.set(e,(e=>{for(l.cancel();s.canUndo();){n!==s.getAlternativeVersionId()&&s.undo(),this._insertSuggestion(e,3|(8&t?8:0));break}})),this._alertCompletionItem(r),Promise.all(c).finally((()=>{this._reportSuggestionAcceptedTelemetry(r,s,d,g,m,e.index,e.model.items),this.model.clear(),l.dispose()}))}_reportSuggestionAcceptedTelemetry(e,t,i,s,n,r,o){if(0===Math.floor(100*Math.random()))return;const a=new Map;for(let h=0;h<Math.min(30,o.length);h++){const e=o[h].textLabel;a.has(e)?a.get(e).push(h):a.set(e,[h])}const c=a.get(e.textLabel),l=c&&c.length>1?c[0]:-1;this._telemetryService.publicLog2("suggest.acceptedSuggestion",{extensionId:e.extensionId?.value??"unknown",providerId:e.provider._debugDisplayName??"unknown",kind:e.completion.kind,basenameHash:(0,Be.tW)((0,He.P8)(t.uri)).toString(16),languageId:t.getLanguageId(),fileExtension:(0,He.LC)(t.uri),resolveInfo:e.provider.resolveCompletionItem?i?1:0:-1,resolveDuration:e.resolveDuration,commandDuration:s,additionalEditsAsync:n,index:r,firstIndex:l})}getOverwriteInfo(e,t){(0,g.j)(this.editor.hasModel());let i="replace"===this.editor.getOption(119).insertMode;t&&(i=!i);const s=e.position.column-e.editStart.column,n=(i?e.editReplaceEnd.column:e.editInsertEnd.column)-e.position.column;return{overwriteBefore:s+(this.editor.getPosition().column-e.position.column),overwriteAfter:n+(this._lineSuffix.value?this._lineSuffix.value.delta(this.editor.getPosition()):0)}}_alertCompletionItem(e){if((0,r.EI)(e.completion.additionalTextEdits)){const t=x.kg("aria.alert.snippet","Accepting '{0}' made {1} additional edits",e.textLabel,e.completion.additionalTextEdits.length);(0,n.xE)(t)}}triggerSuggest(e,t,i){this.editor.hasModel()&&(this.model.trigger({auto:t??!1,completionOptions:{providerFilter:e,kindFilter:i?new Set:void 0}}),this.editor.revealPosition(this.editor.getPosition(),0),this.editor.focus())}triggerSuggestAndAcceptBest(e){if(!this.editor.hasModel())return;const t=this.editor.getPosition(),i=()=>{t.equals(this.editor.getPosition())&&this._commandService.executeCommand(e.fallback)},s=e=>{if(4&e.completion.insertTextRules||e.completion.additionalTextEdits)return!0;const t=this.editor.getPosition(),i=e.editStart.column,s=t.column;if(s-i!==e.completion.insertText.length)return!0;return this.editor.getModel().getValueInRange({startLineNumber:t.lineNumber,startColumn:i,endLineNumber:t.lineNumber,endColumn:s})!==e.completion.insertText};c.Jh.once(this.model.onDidTrigger)((e=>{const t=[];c.Jh.any(this.model.onDidTrigger,this.model.onDidCancel)((()=>{(0,h.AS)(t),i()}),void 0,t),this.model.onDidSuggest((({completionModel:e})=>{if((0,h.AS)(t),0===e.items.length)return void i();const n=this._memoryService.select(this.editor.getModel(),this.editor.getPosition(),e.items),r=e.items[n];s(r)?(this.editor.pushUndoStop(),this._insertSuggestion({index:n,item:r,model:e},7)):i()}),void 0,t)})),this.model.trigger({auto:!1,shy:!0}),this.editor.revealPosition(t,0),this.editor.focus()}acceptSelectedSuggestion(e,t){const i=this.widget.value.getFocusedItem();let s=0;e&&(s|=4),t&&(s|=8),this._insertSuggestion(i,s)}acceptNextSuggestion(){this._alternatives.value.next()}acceptPrevSuggestion(){this._alternatives.value.prev()}cancelSuggestWidget(){this.model.cancel(),this.model.clear(),this.widget.value.hideWidget()}focusSuggestion(){this.widget.value.focusSelected()}selectNextSuggestion(){this.widget.value.selectNext()}selectNextPageSuggestion(){this.widget.value.selectNextPage()}selectLastSuggestion(){this.widget.value.selectLast()}selectPrevSuggestion(){this.widget.value.selectPrevious()}selectPrevPageSuggestion(){this.widget.value.selectPreviousPage()}selectFirstSuggestion(){this.widget.value.selectFirst()}toggleSuggestionDetails(){this.widget.value.toggleDetails()}toggleExplainMode(){this.widget.value.toggleExplainMode()}toggleSuggestionFocus(){this.widget.value.toggleDetailsFocus()}resetWidgetSize(){this.widget.value.resetPersistedSize()}forceRenderingAbove(){this.widget.value.forceRenderingAbove()}stopForceRenderingAbove(){this.widget.isInitialized&&this.widget.value.stopForceRenderingAbove()}registerSelector(e){return this._selectors.register(e)}};je=Fe=Ve([ze(1,S.GS),ze(2,k.d),ze(3,y.fN),ze(4,A._Y),ze(5,N.rr),ze(6,Ue.k)],je);class Ke{constructor(e){this.prioritySelector=e,this._items=new Array}register(e){if(-1!==this._items.indexOf(e))throw new Error("Value is already registered");return this._items.push(e),this._items.sort(((e,t)=>this.prioritySelector(t)-this.prioritySelector(e))),{dispose:()=>{const t=this._items.indexOf(e);t>=0&&this._items.splice(t,1)}}}get itemsOrderedByPriorityDesc(){return this._items}}class Ye extends m.ks{static{this.id="editor.action.triggerSuggest"}constructor(){super({id:Ye.id,label:x.kg("suggest.trigger.label","Trigger Suggest"),alias:"Trigger Suggest",precondition:y.M$.and(C.R.writable,C.R.hasCompletionItemProvider,I.ob.Visible.toNegated()),kbOpts:{kbExpr:C.R.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[521,2087]},weight:100}})}run(e,t,i){const s=je.get(t);if(!s)return;let n;i&&"object"===typeof i&&!0===i.auto&&(n=!0),s.triggerSuggest(void 0,n,void 0)}}(0,m.HW)(je.ID,je,2),(0,m.Fl)(Ye);const qe=190,$e=m.DX.bindToContribution(je.get);(0,m.E_)(new $e({id:"acceptSelectedSuggestion",precondition:y.M$.and(I.ob.Visible,I.ob.HasFocusedSuggestion),handler(e){e.acceptSelectedSuggestion(!0,!1)},kbOpts:[{primary:2,kbExpr:y.M$.and(I.ob.Visible,C.R.textInputFocus),weight:qe},{primary:3,kbExpr:y.M$.and(I.ob.Visible,C.R.textInputFocus,I.ob.AcceptSuggestionsOnEnter,I.ob.MakesTextEdit),weight:qe}],menuOpts:[{menuId:I.dt,title:x.kg("accept.insert","Insert"),group:"left",order:1,when:I.ob.HasInsertAndReplaceRange.toNegated()},{menuId:I.dt,title:x.kg("accept.insert","Insert"),group:"left",order:1,when:y.M$.and(I.ob.HasInsertAndReplaceRange,I.ob.InsertMode.isEqualTo("insert"))},{menuId:I.dt,title:x.kg("accept.replace","Replace"),group:"left",order:1,when:y.M$.and(I.ob.HasInsertAndReplaceRange,I.ob.InsertMode.isEqualTo("replace"))}]})),(0,m.E_)(new $e({id:"acceptAlternativeSelectedSuggestion",precondition:y.M$.and(I.ob.Visible,C.R.textInputFocus,I.ob.HasFocusedSuggestion),kbOpts:{weight:qe,kbExpr:C.R.textInputFocus,primary:1027,secondary:[1026]},handler(e){e.acceptSelectedSuggestion(!1,!0)},menuOpts:[{menuId:I.dt,group:"left",order:2,when:y.M$.and(I.ob.HasInsertAndReplaceRange,I.ob.InsertMode.isEqualTo("insert")),title:x.kg("accept.replace","Replace")},{menuId:I.dt,group:"left",order:2,when:y.M$.and(I.ob.HasInsertAndReplaceRange,I.ob.InsertMode.isEqualTo("replace")),title:x.kg("accept.insert","Insert")}]})),k.w.registerCommandAlias("acceptSelectedSuggestionOnEnter","acceptSelectedSuggestion"),(0,m.E_)(new $e({id:"hideSuggestWidget",precondition:I.ob.Visible,handler:e=>e.cancelSuggestWidget(),kbOpts:{weight:qe,kbExpr:C.R.textInputFocus,primary:9,secondary:[1033]}})),(0,m.E_)(new $e({id:"selectNextSuggestion",precondition:y.M$.and(I.ob.Visible,y.M$.or(I.ob.MultipleSuggestions,I.ob.HasFocusedSuggestion.negate())),handler:e=>e.selectNextSuggestion(),kbOpts:{weight:qe,kbExpr:C.R.textInputFocus,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})),(0,m.E_)(new $e({id:"selectNextPageSuggestion",precondition:y.M$.and(I.ob.Visible,y.M$.or(I.ob.MultipleSuggestions,I.ob.HasFocusedSuggestion.negate())),handler:e=>e.selectNextPageSuggestion(),kbOpts:{weight:qe,kbExpr:C.R.textInputFocus,primary:12,secondary:[2060]}})),(0,m.E_)(new $e({id:"selectLastSuggestion",precondition:y.M$.and(I.ob.Visible,y.M$.or(I.ob.MultipleSuggestions,I.ob.HasFocusedSuggestion.negate())),handler:e=>e.selectLastSuggestion()})),(0,m.E_)(new $e({id:"selectPrevSuggestion",precondition:y.M$.and(I.ob.Visible,y.M$.or(I.ob.MultipleSuggestions,I.ob.HasFocusedSuggestion.negate())),handler:e=>e.selectPrevSuggestion(),kbOpts:{weight:qe,kbExpr:C.R.textInputFocus,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})),(0,m.E_)(new $e({id:"selectPrevPageSuggestion",precondition:y.M$.and(I.ob.Visible,y.M$.or(I.ob.MultipleSuggestions,I.ob.HasFocusedSuggestion.negate())),handler:e=>e.selectPrevPageSuggestion(),kbOpts:{weight:qe,kbExpr:C.R.textInputFocus,primary:11,secondary:[2059]}})),(0,m.E_)(new $e({id:"selectFirstSuggestion",precondition:y.M$.and(I.ob.Visible,y.M$.or(I.ob.MultipleSuggestions,I.ob.HasFocusedSuggestion.negate())),handler:e=>e.selectFirstSuggestion()})),(0,m.E_)(new $e({id:"focusSuggestion",precondition:y.M$.and(I.ob.Visible,I.ob.HasFocusedSuggestion.negate()),handler:e=>e.focusSuggestion(),kbOpts:{weight:qe,kbExpr:C.R.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[2087]}}})),(0,m.E_)(new $e({id:"focusAndAcceptSuggestion",precondition:y.M$.and(I.ob.Visible,I.ob.HasFocusedSuggestion.negate()),handler:e=>{e.focusSuggestion(),e.acceptSelectedSuggestion(!0,!1)}})),(0,m.E_)(new $e({id:"toggleSuggestionDetails",precondition:y.M$.and(I.ob.Visible,I.ob.HasFocusedSuggestion),handler:e=>e.toggleSuggestionDetails(),kbOpts:{weight:qe,kbExpr:C.R.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[2087]}},menuOpts:[{menuId:I.dt,group:"right",order:1,when:y.M$.and(I.ob.DetailsVisible,I.ob.CanResolve),title:x.kg("detail.more","Show Less")},{menuId:I.dt,group:"right",order:1,when:y.M$.and(I.ob.DetailsVisible.toNegated(),I.ob.CanResolve),title:x.kg("detail.less","Show More")}]})),(0,m.E_)(new $e({id:"toggleExplainMode",precondition:I.ob.Visible,handler:e=>e.toggleExplainMode(),kbOpts:{weight:100,primary:2138}})),(0,m.E_)(new $e({id:"toggleSuggestionFocus",precondition:I.ob.Visible,handler:e=>e.toggleSuggestionFocus(),kbOpts:{weight:qe,kbExpr:C.R.textInputFocus,primary:2570,mac:{primary:778}}})),(0,m.E_)(new $e({id:"insertBestCompletion",precondition:y.M$.and(C.R.textInputFocus,y.M$.equals("config.editor.tabCompletion","on"),L.AtEnd,I.ob.Visible.toNegated(),M.OtherSuggestions.toNegated(),E.O.InSnippetMode.toNegated()),handler:(e,t)=>{e.triggerSuggestAndAcceptBest((0,g.Gv)(t)?{fallback:"tab",...t}:{fallback:"tab"})},kbOpts:{weight:qe,primary:2}})),(0,m.E_)(new $e({id:"insertNextSuggestion",precondition:y.M$.and(C.R.textInputFocus,y.M$.equals("config.editor.tabCompletion","on"),M.OtherSuggestions,I.ob.Visible.toNegated(),E.O.InSnippetMode.toNegated()),handler:e=>e.acceptNextSuggestion(),kbOpts:{weight:qe,kbExpr:C.R.textInputFocus,primary:2}})),(0,m.E_)(new $e({id:"insertPrevSuggestion",precondition:y.M$.and(C.R.textInputFocus,y.M$.equals("config.editor.tabCompletion","on"),M.OtherSuggestions,I.ob.Visible.toNegated(),E.O.InSnippetMode.toNegated()),handler:e=>e.acceptPrevSuggestion(),kbOpts:{weight:qe,kbExpr:C.R.textInputFocus,primary:1026}})),(0,m.Fl)(class extends m.ks{constructor(){super({id:"editor.action.resetSuggestSize",label:x.kg("suggest.reset.label","Reset Suggest Widget Size"),alias:"Reset Suggest Widget Size",precondition:void 0})}run(e,t){je.get(t)?.resetWidgetSize()}})},91090:(e,t,i)=>{"use strict";i.d(t,{d:()=>s});class s{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}},91508:(e,t,i)=>{"use strict";i.d(t,{$X:()=>q,AV:()=>r,BO:()=>g,Bm:()=>p,Bq:()=>d,DB:()=>T,E_:()=>G,GP:()=>a,HG:()=>E,LJ:()=>M,LU:()=>Z,Lv:()=>x,MV:()=>W,NB:()=>u,OS:()=>f,Q_:()=>A,Qp:()=>I,S8:()=>re,Ss:()=>Q,UD:()=>y,UU:()=>b,Vi:()=>O,W1:()=>R,Wd:()=>se,Wv:()=>k,Z5:()=>F,_J:()=>Y,aC:()=>K,bm:()=>h,eY:()=>_,en:()=>C,ih:()=>l,iy:()=>B,jy:()=>c,km:()=>H,lF:()=>w,lT:()=>S,m:()=>V,ne:()=>$,ns:()=>N,pc:()=>D,r_:()=>X,tk:()=>ee,tl:()=>oe,uz:()=>v,wB:()=>m,y_:()=>ae,zY:()=>J,z_:()=>P,zd:()=>L});var s=i(81788),n=i(91090);function r(e){return!e||"string"!==typeof e||0===e.trim().length}const o=/{(\d+)}/g;function a(e,...t){return 0===t.length?e:e.replace(o,(function(e,i){const s=parseInt(i,10);return isNaN(s)||s<0||s>=t.length?e:t[s]}))}function c(e){return e.replace(/[<>"'&]/g,(e=>{switch(e){case"<":return"<";case">":return">";case'"':return""";case"'":return"'";case"&":return"&"}return e}))}function l(e){return e.replace(/[<>&]/g,(function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}}))}function h(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function d(e,t=" "){return g(u(e,t),t)}function u(e,t){if(!e||!t)return e;const i=t.length;if(0===i||0===e.length)return e;let s=0;for(;e.indexOf(t,s)===s;)s+=i;return e.substring(s)}function g(e,t){if(!e||!t)return e;const i=t.length,s=e.length;if(0===i||0===s)return e;let n=s,r=-1;for(;r=e.lastIndexOf(t,n-1),-1!==r&&r+i===n;){if(0===r)return"";n=r}return e.substring(0,n)}function p(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function m(e){return e.replace(/\*/g,"")}function f(e,t,i={}){if(!e)throw new Error("Cannot create regex from empty string");t||(e=h(e)),i.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));let s="";return i.global&&(s+="g"),i.matchCase||(s+="i"),i.multiline&&(s+="m"),i.unicode&&(s+="u"),new RegExp(e,s)}function _(e){if("^"===e.source||"^$"===e.source||"$"===e.source||"^\\s*$"===e.source)return!1;return!(!e.exec("")||0!==e.lastIndex)}function v(e){return e.split(/\r\n|\r|\n/)}function C(e){const t=[],i=e.split(/(\r\n|\r|\n)/);for(let s=0;s<Math.ceil(i.length/2);s++)t.push(i[2*s]+(i[2*s+1]??""));return t}function E(e){for(let t=0,i=e.length;t<i;t++){const i=e.charCodeAt(t);if(32!==i&&9!==i)return t}return-1}function b(e,t=0,i=e.length){for(let s=t;s<i;s++){const i=e.charCodeAt(s);if(32!==i&&9!==i)return e.substring(t,s)}return e.substring(t,i)}function S(e,t=e.length-1){for(let i=t;i>=0;i--){const t=e.charCodeAt(i);if(32!==t&&9!==t)return i}return-1}function y(e,t){return e<t?-1:e>t?1:0}function w(e,t,i=0,s=e.length,n=0,r=t.length){for(;i<s&&n<r;i++,n++){const s=e.charCodeAt(i),r=t.charCodeAt(n);if(s<r)return-1;if(s>r)return 1}const o=s-i,a=r-n;return o<a?-1:o>a?1:0}function R(e,t){return L(e,t,0,e.length,0,t.length)}function L(e,t,i=0,s=e.length,n=0,r=t.length){for(;i<s&&n<r;i++,n++){let o=e.charCodeAt(i),a=t.charCodeAt(n);if(o===a)continue;if(o>=128||a>=128)return w(e.toLowerCase(),t.toLowerCase(),i,s,n,r);x(o)&&(o-=32),x(a)&&(a-=32);const c=o-a;if(0!==c)return c}const o=s-i,a=r-n;return o<a?-1:o>a?1:0}function T(e){return e>=48&&e<=57}function x(e){return e>=97&&e<=122}function k(e){return e>=65&&e<=90}function A(e,t){return e.length===t.length&&0===L(e,t)}function N(e,t){const i=t.length;return!(t.length>e.length)&&0===L(e,t,0,i)}function I(e,t){const i=Math.min(e.length,t.length);let s;for(s=0;s<i;s++)if(e.charCodeAt(s)!==t.charCodeAt(s))return s;return i}function O(e,t){const i=Math.min(e.length,t.length);let s;const n=e.length-1,r=t.length-1;for(s=0;s<i;s++)if(e.charCodeAt(n-s)!==t.charCodeAt(r-s))return s;return i}function D(e){return 55296<=e&&e<=56319}function M(e){return 56320<=e&&e<=57343}function P(e,t){return t-56320+(e-55296<<10)+65536}function F(e,t,i){const s=e.charCodeAt(i);if(D(s)&&i+1<t){const t=e.charCodeAt(i+1);if(M(t))return P(s,t)}return s}class U{get offset(){return this._offset}constructor(e,t=0){this._str=e,this._len=e.length,this._offset=t}setOffset(e){this._offset=e}prevCodePoint(){const e=function(e,t){const i=e.charCodeAt(t-1);if(M(i)&&t>1){const s=e.charCodeAt(t-2);if(D(s))return P(s,i)}return i}(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){const e=F(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class H{get offset(){return this._iterator.offset}constructor(e,t=0){this._iterator=new U(e,t)}nextGraphemeLength(){const e=ie.getInstance(),t=this._iterator,i=t.offset;let s=e.getGraphemeBreakType(t.nextCodePoint());for(;!t.eol();){const i=t.offset,n=e.getGraphemeBreakType(t.nextCodePoint());if(te(s,n)){t.setOffset(i);break}s=n}return t.offset-i}prevGraphemeLength(){const e=ie.getInstance(),t=this._iterator,i=t.offset;let s=e.getGraphemeBreakType(t.prevCodePoint());for(;t.offset>0;){const i=t.offset,n=e.getGraphemeBreakType(t.prevCodePoint());if(te(n,s)){t.setOffset(i);break}s=n}return i-t.offset}eol(){return this._iterator.eol()}}function B(e,t){return new H(e,t).nextGraphemeLength()}function W(e,t){return new H(e,t).prevGraphemeLength()}function V(e,t){t>0&&M(e.charCodeAt(t))&&t--;const i=t+B(e,t);return[i-W(e,i),i]}let z;function G(e){return z||(z=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/),z.test(e)}const j=/^[\t\n\r\x20-\x7E]*$/;function K(e){return j.test(e)}const Y=/[\u2028\u2029]/;function q(e){return Y.test(e)}function $(e){return e>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function Q(e){return e>=127462&&e<=127487||8986===e||8987===e||9200===e||9203===e||e>=9728&&e<=10175||11088===e||11093===e||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129008||e>=129280&&e<=129535||e>=129648&&e<=129782}const X=String.fromCharCode(65279);function Z(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}function J(e,t=!1){return!!e&&(t&&(e=e.replace(/\\./g,"")),e.toLowerCase()!==e)}function ee(e){return(e%=52)<26?String.fromCharCode(97+e):String.fromCharCode(65+e-26)}function te(e,t){return 0===e?5!==t&&7!==t:(2!==e||3!==t)&&(4===e||2===e||3===e||(4===t||2===t||3===t||(8!==e||8!==t&&9!==t&&11!==t&&12!==t)&&((11!==e&&9!==e||9!==t&&10!==t)&&((12!==e&&10!==e||10!==t)&&(5!==t&&13!==t&&(7!==t&&(1!==e&&((13!==e||14!==t)&&(6!==e||6!==t)))))))))}class ie{static{this._INSTANCE=null}static getInstance(){return ie._INSTANCE||(ie._INSTANCE=new ie),ie._INSTANCE}constructor(){this._data=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]")}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;const t=this._data,i=t.length/3;let s=1;for(;s<=i;)if(e<t[3*s])s*=2;else{if(!(e>t[3*s+1]))return t[3*s+2];s=2*s+1}return 0}}function se(e,t){if(0===e)return 0;const i=function(e,t){const i=new U(t,e);let s=i.prevCodePoint();for(;ne(s)||65039===s||8419===s;){if(0===i.offset)return;s=i.prevCodePoint()}if(!Q(s))return;let n=i.offset;if(n>0){8205===i.prevCodePoint()&&(n=i.offset)}return n}(e,t);if(void 0!==i)return i;const s=new U(t,e);return s.prevCodePoint(),s.offset}function ne(e){return 127995<=e&&e<=127999}const re="\xa0";class oe{static{this.ambiguousCharacterData=new n.d((()=>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,8218,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,8242,96,1370,96,1523,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,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,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,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,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,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,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,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,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,71922,67,71913,67,65315,67,8557,67,8450,67,8493,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,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,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,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,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,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,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,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,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,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,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,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,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,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,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,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,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,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,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,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,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,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,71919,87,71910,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,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,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,66293,90,71909,90,65338,90,8484,90,8488,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,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,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,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,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,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,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,65283,35,65292,44,65307,59],"ko":[8211,45,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,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,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,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[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,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,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,65283,35,65307,59]}')))}static{this.cache=new s.o5({getCacheKey:JSON.stringify},(e=>{function t(e){const t=new Map;for(let i=0;i<e.length;i+=2)t.set(e[i],e[i+1]);return t}function i(e,t){if(!e)return t;const i=new Map;for(const[s,n]of e)t.has(s)&&i.set(s,n);return i}const s=this.ambiguousCharacterData.value;let n,r=e.filter((e=>!e.startsWith("_")&&e in s));0===r.length&&(r=["_default"]);for(const a of r){n=i(n,t(s[a]))}const o=function(e,t){const i=new Map(e);for(const[s,n]of t)i.set(s,n);return i}(t(s._common),n);return new oe(o)}))}static getInstance(e){return oe.cache.get(Array.from(e))}static{this._locales=new n.d((()=>Object.keys(oe.ambiguousCharacterData.value).filter((e=>!e.startsWith("_")))))}static getLocales(){return oe._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())}}class ae{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,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,12288,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]")}static{this._data=void 0}static getData(){return this._data||(this._data=new Set(ae.getRawData())),this._data}static isInvisibleCharacter(e){return ae.getData().has(e)}static get codePoints(){return ae.getData()}}},91581:(e,t,i)=>{"use strict";i.d(t,{mJ:()=>E,x8:()=>v});var s=i(8597),n=i(56245),r=i(27661),o=i(11799),a=i(11007),c=i(48196),l=i(42904),h=i(31295),d=i(17390),u=i(41234);class g{constructor(e,t=0,i=e.length,s=t-1){this.items=e,this.start=t,this.end=i,this.index=s}current(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]}next(){return this.index=Math.min(this.index+1,this.end),this.current()}previous(){return this.index=Math.max(this.index-1,this.start-1),this.current()}first(){return this.index=this.start,this.current()}last(){return this.index=this.end-1,this.current()}}class p{constructor(e=[],t=10){this._initialize(e),this._limit=t,this._onChange()}getHistory(){return this._elements}add(e){this._history.delete(e),this._history.add(e),this._onChange()}next(){return this._navigator.next()}previous(){return 0!==this._currentPosition()?this._navigator.previous():null}current(){return this._navigator.current()}first(){return this._navigator.first()}last(){return this._navigator.last()}isLast(){return this._currentPosition()>=this._elements.length-1}isNowhere(){return null===this._navigator.current()}has(e){return this._history.has(e)}_onChange(){this._reduceToLimit();const e=this._elements;this._navigator=new g(e,0,e.length,e.length)}_reduceToLimit(){const e=this._elements;e.length>this._limit&&this._initialize(e.slice(e.length-this._limit))}_currentPosition(){const e=this._navigator.current();return e?this._elements.indexOf(e):-1}_initialize(e){this._history=new Set;for(const t of e)this._history.add(t)}get _elements(){const e=[];return this._history.forEach((t=>e.push(t))),e}}var m=i(10146),f=i(78209);const _=s.$,v={inputBackground:"#3C3C3C",inputForeground:"#CCCCCC",inputValidationInfoBorder:"#55AAFF",inputValidationInfoBackground:"#063B49",inputValidationWarningBorder:"#B89500",inputValidationWarningBackground:"#352A05",inputValidationErrorBorder:"#BE1100",inputValidationErrorBackground:"#5A1D1D",inputBorder:void 0,inputValidationErrorForeground:void 0,inputValidationInfoForeground:void 0,inputValidationWarningForeground:void 0};class C extends d.x{constructor(e,t,i){super(),this.state="idle",this.maxHeight=Number.POSITIVE_INFINITY,this._onDidChange=this._register(new u.vl),this.onDidChange=this._onDidChange.event,this._onDidHeightChange=this._register(new u.vl),this.onDidHeightChange=this._onDidHeightChange.event,this.contextViewProvider=t,this.options=i,this.message=null,this.placeholder=this.options.placeholder||"",this.tooltip=this.options.tooltip??(this.placeholder||""),this.ariaLabel=this.options.ariaLabel||"",this.options.validationOptions&&(this.validation=this.options.validationOptions.validation),this.element=s.BC(e,_(".monaco-inputbox.idle"));const r=this.options.flexibleHeight?"textarea":"input",a=s.BC(this.element,_(".ibwrapper"));if(this.input=s.BC(a,_(r+".input.empty")),this.input.setAttribute("autocorrect","off"),this.input.setAttribute("autocapitalize","off"),this.input.setAttribute("spellcheck","false"),this.onfocus(this.input,(()=>this.element.classList.add("synthetic-focus"))),this.onblur(this.input,(()=>this.element.classList.remove("synthetic-focus"))),this.options.flexibleHeight){this.maxHeight="number"===typeof this.options.flexibleMaxHeight?this.options.flexibleMaxHeight:Number.POSITIVE_INFINITY,this.mirror=s.BC(a,_("div.mirror")),this.mirror.innerText="\xa0",this.scrollableElement=new h.Se(this.element,{vertical:1}),this.options.flexibleWidth&&(this.input.setAttribute("wrap","off"),this.mirror.style.whiteSpace="pre",this.mirror.style.wordWrap="initial"),s.BC(e,this.scrollableElement.getDomNode()),this._register(this.scrollableElement),this._register(this.scrollableElement.onScroll((e=>this.input.scrollTop=e.scrollTop)));const t=this._register(new n.f(e.ownerDocument,"selectionchange")),i=u.Jh.filter(t.event,(()=>{const t=e.ownerDocument.getSelection();return t?.anchorNode===a}));this._register(i(this.updateScrollDimensions,this)),this._register(this.onDidHeightChange(this.updateScrollDimensions,this))}else this.input.type=this.options.type||"text",this.input.setAttribute("wrap","off");this.ariaLabel&&this.input.setAttribute("aria-label",this.ariaLabel),this.placeholder&&!this.options.showPlaceholderOnFocus&&this.setPlaceHolder(this.placeholder),this.tooltip&&this.setTooltip(this.tooltip),this.oninput(this.input,(()=>this.onValueChange())),this.onblur(this.input,(()=>this.onBlur())),this.onfocus(this.input,(()=>this.onFocus())),this._register(this.ignoreGesture(this.input)),setTimeout((()=>this.updateMirror()),0),this.options.actions&&(this.actionbar=this._register(new o.E(this.element)),this.actionbar.push(this.options.actions,{icon:!0,label:!1})),this.applyStyles()}onBlur(){this._hideMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder","")}onFocus(){this._showMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder",this.placeholder||"")}setPlaceHolder(e){this.placeholder=e,this.input.setAttribute("placeholder",e)}setTooltip(e){this.tooltip=e,this.hover?this.hover.update(e):this.hover=this._register((0,c.i)().setupManagedHover((0,l.nZ)("mouse"),this.input,e))}get inputElement(){return this.input}get value(){return this.input.value}set value(e){this.input.value!==e&&(this.input.value=e,this.onValueChange())}get height(){return"number"===typeof this.cachedHeight?this.cachedHeight:s.OK(this.element)}focus(){this.input.focus()}blur(){this.input.blur()}hasFocus(){return s.X7(this.input)}select(e=null){this.input.select(),e&&(this.input.setSelectionRange(e.start,e.end),e.end===this.input.value.length&&(this.input.scrollLeft=this.input.scrollWidth))}isSelectionAtEnd(){return this.input.selectionEnd===this.input.value.length&&this.input.selectionStart===this.input.selectionEnd}getSelection(){const e=this.input.selectionStart;if(null===e)return null;return{start:e,end:this.input.selectionEnd??e}}enable(){this.input.removeAttribute("disabled")}disable(){this.blur(),this.input.disabled=!0,this._hideMessage()}set paddingRight(e){this.input.style.width=`calc(100% - ${e}px)`,this.mirror&&(this.mirror.style.paddingRight=e+"px")}updateScrollDimensions(){if("number"!==typeof this.cachedContentHeight||"number"!==typeof this.cachedHeight||!this.scrollableElement)return;const e=this.cachedContentHeight,t=this.cachedHeight,i=this.input.scrollTop;this.scrollableElement.setScrollDimensions({scrollHeight:e,height:t}),this.scrollableElement.setScrollPosition({scrollTop:i})}showMessage(e,t){if("open"===this.state&&(0,m.aI)(this.message,e))return;this.message=e,this.element.classList.remove("idle"),this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add(this.classForType(e.type));const i=this.stylesForType(this.message.type);this.element.style.border=`1px solid ${s.gI(i.border,"transparent")}`,this.message.content&&(this.hasFocus()||t)&&this._showMessage()}hideMessage(){this.message=null,this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add("idle"),this._hideMessage(),this.applyStyles()}validate(){let e=null;return this.validation&&(e=this.validation(this.value),e?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(e)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),e?.type}stylesForType(e){const t=this.options.inputBoxStyles;switch(e){case 1:return{border:t.inputValidationInfoBorder,background:t.inputValidationInfoBackground,foreground:t.inputValidationInfoForeground};case 2:return{border:t.inputValidationWarningBorder,background:t.inputValidationWarningBackground,foreground:t.inputValidationWarningForeground};default:return{border:t.inputValidationErrorBorder,background:t.inputValidationErrorBackground,foreground:t.inputValidationErrorForeground}}}classForType(e){switch(e){case 1:return"info";case 2:return"warning";default:return"error"}}_showMessage(){if(!this.contextViewProvider||!this.message)return;let e;const t=()=>e.style.width=s.Tr(this.element)+"px";let i;this.contextViewProvider.showContextView({getAnchor:()=>this.element,anchorAlignment:1,render:i=>{if(!this.message)return null;e=s.BC(i,_(".monaco-inputbox-container")),t();const n={inline:!0,className:"monaco-inputbox-message"},o=this.message.formatContent?(0,r.yk)(this.message.content,n):(0,r.S5)(this.message.content,n);o.classList.add(this.classForType(this.message.type));const a=this.stylesForType(this.message.type);return o.style.backgroundColor=a.background??"",o.style.color=a.foreground??"",o.style.border=a.border?`1px solid ${a.border}`:"",s.BC(e,o),null},onHide:()=>{this.state="closed"},layout:t}),i=3===this.message.type?f.kg("alertErrorMessage","Error: {0}",this.message.content):2===this.message.type?f.kg("alertWarningMessage","Warning: {0}",this.message.content):f.kg("alertInfoMessage","Info: {0}",this.message.content),a.xE(i),this.state="open"}_hideMessage(){this.contextViewProvider&&("open"===this.state&&this.contextViewProvider.hideContextView(),this.state="idle")}onValueChange(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),this.input.classList.toggle("empty",!this.value),"open"===this.state&&this.contextViewProvider&&this.contextViewProvider.layout()}updateMirror(){if(!this.mirror)return;const e=this.value,t=10===e.charCodeAt(e.length-1)?" ":"";(e+t).replace(/\u000c/g,"")?this.mirror.textContent=e+t:this.mirror.innerText="\xa0",this.layout()}applyStyles(){const e=this.options.inputBoxStyles,t=e.inputBackground??"",i=e.inputForeground??"",n=e.inputBorder??"";this.element.style.backgroundColor=t,this.element.style.color=i,this.input.style.backgroundColor="inherit",this.input.style.color=i,this.element.style.border=`1px solid ${s.gI(n,"transparent")}`}layout(){if(!this.mirror)return;const e=this.cachedContentHeight;this.cachedContentHeight=s.OK(this.mirror),e!==this.cachedContentHeight&&(this.cachedHeight=Math.min(this.cachedContentHeight,this.maxHeight),this.input.style.height=this.cachedHeight+"px",this._onDidHeightChange.fire(this.cachedContentHeight))}insertAtCursor(e){const t=this.inputElement,i=t.selectionStart,s=t.selectionEnd,n=t.value;null!==i&&null!==s&&(this.value=n.substr(0,i)+e+n.substr(s),t.setSelectionRange(i+1,i+1),this.layout())}dispose(){this._hideMessage(),this.message=null,this.actionbar?.dispose(),super.dispose()}}class E extends C{constructor(e,t,i){const n=f.kg({key:"history.inputbox.hint.suffix.noparens",comment:['Text is the suffix of an input field placeholder coming after the action the input field performs, this will be used when the input field ends in a closing parenthesis ")", for example "Filter (e.g. text, !exclude)". The character inserted into the final string is \u21c5 to represent the up and down arrow keys.']}," or {0} for history","\u21c5"),r=f.kg({key:"history.inputbox.hint.suffix.inparens",comment:['Text is the suffix of an input field placeholder coming after the action the input field performs, this will be used when the input field does NOT end in a closing parenthesis (eg. "Find"). The character inserted into the final string is \u21c5 to represent the up and down arrow keys.']}," ({0} for history)","\u21c5");super(e,t,i),this._onDidFocus=this._register(new u.vl),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new u.vl),this.onDidBlur=this._onDidBlur.event,this.history=new p(i.history,100);const o=()=>{if(i.showHistoryHint&&i.showHistoryHint()&&!this.placeholder.endsWith(n)&&!this.placeholder.endsWith(r)&&this.history.getHistory().length){const e=this.placeholder.endsWith(")")?n:r,t=this.placeholder+e;i.showPlaceholderOnFocus&&!s.X7(this.input)?this.placeholder=t:this.setPlaceHolder(t)}};this.observer=new MutationObserver(((e,t)=>{e.forEach((e=>{e.target.textContent||o()}))})),this.observer.observe(this.input,{attributeFilter:["class"]}),this.onfocus(this.input,(()=>o())),this.onblur(this.input,(()=>{const e=e=>{if(this.placeholder.endsWith(e)){const t=this.placeholder.slice(0,this.placeholder.length-e.length);return i.showPlaceholderOnFocus?this.placeholder=t:this.setPlaceHolder(t),!0}return!1};e(r)||e(n)}))}dispose(){super.dispose(),this.observer&&(this.observer.disconnect(),this.observer=void 0)}addToHistory(e){this.value&&(e||this.value!==this.getCurrentValue())&&this.history.add(this.value)}isAtLastInHistory(){return this.history.isLast()}isNowhereInHistory(){return this.history.isNowhere()}showNextValue(){this.history.has(this.value)||this.addToHistory();let e=this.getNextValue();e&&(e=e===this.value?this.getNextValue():e),this.value=e??"",a.h5(this.value?this.value:f.kg("clearedInput","Cleared Input"))}showPreviousValue(){this.history.has(this.value)||this.addToHistory();let e=this.getPreviousValue();e&&(e=e===this.value?this.getPreviousValue():e),e&&(this.value=e,a.h5(this.value))}setPlaceHolder(e){super.setPlaceHolder(e),this.setTooltip(e)}onBlur(){super.onBlur(),this._onDidBlur.fire()}onFocus(){super.onFocus(),this._onDidFocus.fire()}getCurrentValue(){let e=this.history.current();return e||(e=this.history.last(),this.history.next()),e}getPreviousValue(){return this.history.previous()||this.history.first()}getNextValue(){return this.history.next()}}},92080:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"mdx",extensions:[".mdx"],aliases:["MDX","mdx"],loader:()=>i.e(6214).then(i.bind(i,26214))})},92159:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.53 11.78a.75.75 0 0 1-1.06 0l-2.5-2.5a.75.75 0 0 1 1.06-1.06l1.22 1.22V1.75a.75.75 0 0 1 1.5 0v7.69l1.22-1.22a.75.75 0 1 1 1.06 1.06zM1.75 13.5a.75.75 0 0 0 0 1.5h12.5a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"}))},92368:(e,t,i)=>{"use strict";i.d(t,{$y:()=>p,AV:()=>E,Am:()=>d,D1:()=>v,EK:()=>w,MZ:()=>S,Mu:()=>y,Nu:()=>f,O8:()=>R,Vs:()=>b,pN:()=>m,pY:()=>u,rX:()=>g,uN:()=>_});var s=i(46041),n=i(18447),r=i(5662),o=i(31308),a=i(4983),c=i(83069),l=i(36677),h=i(50973);function d(e,t,i,s){if(0===e.length)return t;if(0===t.length)return e;const n=[];let r=0,o=0;for(;r<e.length&&o<t.length;){const a=e[r],c=t[o],l=i(a),h=i(c);l<h?(n.push(a),r++):l>h?(n.push(c),o++):(n.push(s(a,c)),r++,o++)}for(;r<e.length;)n.push(e[r]),r++;for(;o<t.length;)n.push(t[o]),o++;return n}function u(e,t){const i=new r.Cm,s=e.createDecorationsCollection();return i.add((0,o.zL)({debugName:()=>`Apply decorations from ${t.debugName}`},(e=>{const i=t.read(e);s.set(i)}))),i.add({dispose:()=>{s.clear()}}),i}function g(e,t){return e.appendChild(t),(0,r.s)((()=>{t.remove()}))}function p(e,t){return e.prepend(t),(0,r.s)((()=>{t.remove()}))}class m extends r.jG{get width(){return this._width}get height(){return this._height}get automaticLayout(){return this._automaticLayout}constructor(e,t){super(),this._automaticLayout=!1,this.elementSizeObserver=this._register(new a.u(e,t)),this._width=(0,o.FY)(this,this.elementSizeObserver.getWidth()),this._height=(0,o.FY)(this,this.elementSizeObserver.getHeight()),this._register(this.elementSizeObserver.onDidChange((e=>(0,o.Rn)((e=>{this._width.set(this.elementSizeObserver.getWidth(),e),this._height.set(this.elementSizeObserver.getHeight(),e)})))))}observe(e){this.elementSizeObserver.observe(e)}setAutomaticLayout(e){this._automaticLayout=e,e?this.elementSizeObserver.startObserving():this.elementSizeObserver.stopObserving()}}function f(e,t,i){let s=t.get(),n=s,r=s;const a=(0,o.FY)("animatedValue",s);let c=-1;let l;function h(){const t=Date.now()-c;var i,o,d,u;r=Math.floor((o=n,d=s-n,(i=t)===(u=300)?o+d:d*(1-Math.pow(2,-10*i/u))+o)),t<300?l=e.requestAnimationFrame(h):r=s,a.set(r,void 0)}return i.add((0,o.Y)({createEmptyChangeSummary:()=>({animate:!1}),handleChange:(e,i)=>(e.didChange(t)&&(i.animate=i.animate||e.change),!0)},((i,o)=>{void 0!==l&&(e.cancelAnimationFrame(l),l=void 0),n=r,s=t.read(i),c=Date.now()-(o.animate?0:300),h()}))),a}class _ extends r.jG{constructor(e,t,i){super(),this._register(new C(e,i)),this._register(E(i,{height:t.actualHeight,top:t.actualTop}))}}class v{get afterLineNumber(){return this._afterLineNumber.get()}constructor(e,t){this._afterLineNumber=e,this.heightInPx=t,this.domNode=document.createElement("div"),this._actualTop=(0,o.FY)(this,void 0),this._actualHeight=(0,o.FY)(this,void 0),this.actualTop=this._actualTop,this.actualHeight=this._actualHeight,this.showInHiddenAreas=!0,this.onChange=this._afterLineNumber,this.onDomNodeTop=e=>{this._actualTop.set(e,void 0)},this.onComputedHeight=e=>{this._actualHeight.set(e,void 0)}}}class C{static{this._counter=0}constructor(e,t){this._editor=e,this._domElement=t,this._overlayWidgetId="managedOverlayWidget-"+C._counter++,this._overlayWidget={getId:()=>this._overlayWidgetId,getDomNode:()=>this._domElement,getPosition:()=>null},this._editor.addOverlayWidget(this._overlayWidget)}dispose(){this._editor.removeOverlayWidget(this._overlayWidget)}}function E(e,t){return(0,o.fm)((i=>{for(let[s,n]of Object.entries(t))n&&"object"===typeof n&&"read"in n&&(n=n.read(i)),"number"===typeof n&&(n=`${n}px`),s=s.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase())),e.style[s]=n}))}function b(e,t,i,s){const n=new r.Cm,a=[];return n.add((0,o.yC)(((n,r)=>{const c=t.read(n),l=new Map,h=new Map;i&&i(!0),e.changeViewZones((e=>{for(const t of a)e.removeZone(t),s?.delete(t);a.length=0;for(const t of c){const i=e.addZone(t);t.setZoneId&&t.setZoneId(i),a.push(i),s?.add(i),l.set(t,i)}})),i&&i(!1),r.add((0,o.Y)({createEmptyChangeSummary:()=>({zoneIds:[]}),handleChange(e,t){const i=h.get(e.changedObservable);return void 0!==i&&t.zoneIds.push(i),!0}},((t,s)=>{for(const e of c)e.onChange&&(h.set(e.onChange,l.get(e)),e.onChange.read(t));i&&i(!0),e.changeViewZones((e=>{for(const t of s.zoneIds)e.layoutZone(t)})),i&&i(!1)})))}))),n.add({dispose(){i&&i(!0),e.changeViewZones((e=>{for(const t of a)e.removeZone(t)})),s?.clear(),i&&i(!1)}}),n}class S extends n.Qi{dispose(){super.dispose(!0)}}function y(e,t){const i=(0,s.Uk)(t,(t=>t.original.startLineNumber<=e.lineNumber));if(!i)return l.Q.fromPositions(e);if(i.original.endLineNumberExclusive<=e.lineNumber){const t=e.lineNumber-i.original.endLineNumberExclusive+i.modified.endLineNumberExclusive;return l.Q.fromPositions(new c.y(t,e.column))}if(!i.innerChanges)return l.Q.fromPositions(new c.y(i.modified.startLineNumber,1));const n=(0,s.Uk)(i.innerChanges,(t=>t.originalRange.getStartPosition().isBeforeOrEqual(e)));if(!n){const t=e.lineNumber-i.original.startLineNumber+i.modified.startLineNumber;return l.Q.fromPositions(new c.y(t,e.column))}if(n.originalRange.containsPosition(e))return n.modifiedRange;{const t=(r=n.originalRange.getEndPosition(),o=e,r.lineNumber===o.lineNumber?new h.W(0,o.column-r.column):new h.W(o.lineNumber-r.lineNumber,o.column-1));return l.Q.fromPositions(t.addToPosition(n.modifiedRange.getEndPosition()))}var r,o}function w(e,t){let i;return e.filter((e=>{const s=t(e,i);return i=e,s}))}class R{static create(e,t=void 0){return new L(e,e,t)}static createWithDisposable(e,t,i=void 0){const s=new r.Cm;return s.add(t),s.add(e),new L(e,s,i)}}class L extends R{constructor(e,t,i){super(),this.object=e,this._disposable=t,this._debugOwner=i,this._refCount=1,this._isDisposed=!1,this._owners=[],i&&this._addOwner(i)}_addOwner(e){e&&this._owners.push(e)}createNewRef(e){return this._refCount++,e&&this._addOwner(e),new T(this,e)}dispose(){this._isDisposed||(this._isDisposed=!0,this._decreaseRefCount(this._debugOwner))}_decreaseRefCount(e){if(this._refCount--,0===this._refCount&&this._disposable.dispose(),e){const t=this._owners.indexOf(e);-1!==t&&this._owners.splice(t,1)}}}class T extends R{constructor(e,t){super(),this._base=e,this._debugOwner=t,this._isDisposed=!1}get object(){return this._base.object}createNewRef(e){return this._base.createNewRef(e)}dispose(){this._isDisposed||(this._isDisposed=!0,this._base._decreaseRefCount(this._debugOwner))}}},92403:(e,t,i)=>{"use strict";i.d(t,{B:()=>u,m:()=>C});var s=i(8597),n=i(56245),r=i(25154),o=i(90766),a=i(58694),c=i(41234),l=i(5662),h=i(98067),d=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};var u;!function(e){e.North="north",e.South="south",e.East="east",e.West="west"}(u||(u={}));const g=new c.vl;const p=new c.vl;class m{constructor(e){this.el=e,this.disposables=new l.Cm}get onPointerMove(){return this.disposables.add(new n.f((0,s.zk)(this.el),"mousemove")).event}get onPointerUp(){return this.disposables.add(new n.f((0,s.zk)(this.el),"mouseup")).event}dispose(){this.disposables.dispose()}}d([a.B],m.prototype,"onPointerMove",null),d([a.B],m.prototype,"onPointerUp",null);class f{get onPointerMove(){return this.disposables.add(new n.f(this.el,r.B.Change)).event}get onPointerUp(){return this.disposables.add(new n.f(this.el,r.B.End)).event}constructor(e){this.el=e,this.disposables=new l.Cm}dispose(){this.disposables.dispose()}}d([a.B],f.prototype,"onPointerMove",null),d([a.B],f.prototype,"onPointerUp",null);class _{get onPointerMove(){return this.factory.onPointerMove}get onPointerUp(){return this.factory.onPointerUp}constructor(e){this.factory=e}dispose(){}}d([a.B],_.prototype,"onPointerMove",null),d([a.B],_.prototype,"onPointerUp",null);const v="pointer-events-disabled";class C extends l.jG{get state(){return this._state}get orthogonalStartSash(){return this._orthogonalStartSash}get orthogonalEndSash(){return this._orthogonalEndSash}set state(e){this._state!==e&&(this.el.classList.toggle("disabled",0===e),this.el.classList.toggle("minimum",1===e),this.el.classList.toggle("maximum",2===e),this._state=e,this.onDidEnablementChange.fire(e))}set orthogonalStartSash(e){if(this._orthogonalStartSash!==e){if(this.orthogonalStartDragHandleDisposables.clear(),this.orthogonalStartSashDisposables.clear(),e){const t=t=>{this.orthogonalStartDragHandleDisposables.clear(),0!==t&&(this._orthogonalStartDragHandle=(0,s.BC)(this.el,(0,s.$)(".orthogonal-drag-handle.start")),this.orthogonalStartDragHandleDisposables.add((0,l.s)((()=>this._orthogonalStartDragHandle.remove()))),this.orthogonalStartDragHandleDisposables.add(new n.f(this._orthogonalStartDragHandle,"mouseenter")).event((()=>C.onMouseEnter(e)),void 0,this.orthogonalStartDragHandleDisposables),this.orthogonalStartDragHandleDisposables.add(new n.f(this._orthogonalStartDragHandle,"mouseleave")).event((()=>C.onMouseLeave(e)),void 0,this.orthogonalStartDragHandleDisposables))};this.orthogonalStartSashDisposables.add(e.onDidEnablementChange.event(t,this)),t(e.state)}this._orthogonalStartSash=e}}set orthogonalEndSash(e){if(this._orthogonalEndSash!==e){if(this.orthogonalEndDragHandleDisposables.clear(),this.orthogonalEndSashDisposables.clear(),e){const t=t=>{this.orthogonalEndDragHandleDisposables.clear(),0!==t&&(this._orthogonalEndDragHandle=(0,s.BC)(this.el,(0,s.$)(".orthogonal-drag-handle.end")),this.orthogonalEndDragHandleDisposables.add((0,l.s)((()=>this._orthogonalEndDragHandle.remove()))),this.orthogonalEndDragHandleDisposables.add(new n.f(this._orthogonalEndDragHandle,"mouseenter")).event((()=>C.onMouseEnter(e)),void 0,this.orthogonalEndDragHandleDisposables),this.orthogonalEndDragHandleDisposables.add(new n.f(this._orthogonalEndDragHandle,"mouseleave")).event((()=>C.onMouseLeave(e)),void 0,this.orthogonalEndDragHandleDisposables))};this.orthogonalEndSashDisposables.add(e.onDidEnablementChange.event(t,this)),t(e.state)}this._orthogonalEndSash=e}}constructor(e,t,i){super(),this.hoverDelay=300,this.hoverDelayer=this._register(new o.ve(this.hoverDelay)),this._state=3,this.onDidEnablementChange=this._register(new c.vl),this._onDidStart=this._register(new c.vl),this._onDidChange=this._register(new c.vl),this._onDidReset=this._register(new c.vl),this._onDidEnd=this._register(new c.vl),this.orthogonalStartSashDisposables=this._register(new l.Cm),this.orthogonalStartDragHandleDisposables=this._register(new l.Cm),this.orthogonalEndSashDisposables=this._register(new l.Cm),this.orthogonalEndDragHandleDisposables=this._register(new l.Cm),this.onDidStart=this._onDidStart.event,this.onDidChange=this._onDidChange.event,this.onDidReset=this._onDidReset.event,this.onDidEnd=this._onDidEnd.event,this.linkedSash=void 0,this.el=(0,s.BC)(e,(0,s.$)(".monaco-sash")),i.orthogonalEdge&&this.el.classList.add(`orthogonal-edge-${i.orthogonalEdge}`),h.zx&&this.el.classList.add("mac");const a=this._register(new n.f(this.el,"mousedown")).event;this._register(a((t=>this.onPointerStart(t,new m(e))),this));const d=this._register(new n.f(this.el,"dblclick")).event;this._register(d(this.onPointerDoublePress,this));const u=this._register(new n.f(this.el,"mouseenter")).event;this._register(u((()=>C.onMouseEnter(this))));const _=this._register(new n.f(this.el,"mouseleave")).event;this._register(_((()=>C.onMouseLeave(this)))),this._register(r.q.addTarget(this.el));const v=this._register(new n.f(this.el,r.B.Start)).event;this._register(v((e=>this.onPointerStart(e,new f(this.el))),this));const E=this._register(new n.f(this.el,r.B.Tap)).event;let b;this._register(E((e=>{if(b)return clearTimeout(b),b=void 0,void this.onPointerDoublePress(e);clearTimeout(b),b=setTimeout((()=>b=void 0),250)}),this)),"number"===typeof i.size?(this.size=i.size,0===i.orientation?this.el.style.width=`${this.size}px`:this.el.style.height=`${this.size}px`):(this.size=4,this._register(g.event((e=>{this.size=e,this.layout()})))),this._register(p.event((e=>this.hoverDelay=e))),this.layoutProvider=t,this.orthogonalStartSash=i.orthogonalStartSash,this.orthogonalEndSash=i.orthogonalEndSash,this.orientation=i.orientation||0,1===this.orientation?(this.el.classList.add("horizontal"),this.el.classList.remove("vertical")):(this.el.classList.remove("horizontal"),this.el.classList.add("vertical")),this.el.classList.toggle("debug",false),this.layout()}onPointerStart(e,t){s.fs.stop(e);let i=!1;if(!e.__orthogonalSashEvent){const s=this.getOrthogonalSash(e);s&&(i=!0,e.__orthogonalSashEvent=!0,s.onPointerStart(e,new _(t)))}if(this.linkedSash&&!e.__linkedSashEvent&&(e.__linkedSashEvent=!0,this.linkedSash.onPointerStart(e,new _(t))),!this.state)return;const n=this.el.ownerDocument.getElementsByTagName("iframe");for(const s of n)s.classList.add(v);const r=e.pageX,o=e.pageY,a=e.altKey,c={startX:r,currentX:r,startY:o,currentY:o,altKey:a};this.el.classList.add("active"),this._onDidStart.fire(c);const d=(0,s.li)(this.el),u=()=>{let e="";e=i?"all-scroll":1===this.orientation?1===this.state?"s-resize":2===this.state?"n-resize":h.zx?"row-resize":"ns-resize":1===this.state?"e-resize":2===this.state?"w-resize":h.zx?"col-resize":"ew-resize",d.textContent=`* { cursor: ${e} !important; }`},g=new l.Cm;u(),i||this.onDidEnablementChange.event(u,null,g);t.onPointerMove((e=>{s.fs.stop(e,!1);const t={startX:r,currentX:e.pageX,startY:o,currentY:e.pageY,altKey:a};this._onDidChange.fire(t)}),null,g),t.onPointerUp((e=>{s.fs.stop(e,!1),d.remove(),this.el.classList.remove("active"),this._onDidEnd.fire(),g.dispose();for(const t of n)t.classList.remove(v)}),null,g),g.add(t)}onPointerDoublePress(e){const t=this.getOrthogonalSash(e);t&&t._onDidReset.fire(),this.linkedSash&&this.linkedSash._onDidReset.fire(),this._onDidReset.fire()}static onMouseEnter(e,t=!1){e.el.classList.contains("active")?(e.hoverDelayer.cancel(),e.el.classList.add("hover")):e.hoverDelayer.trigger((()=>e.el.classList.add("hover")),e.hoverDelay).then(void 0,(()=>{})),!t&&e.linkedSash&&C.onMouseEnter(e.linkedSash,!0)}static onMouseLeave(e,t=!1){e.hoverDelayer.cancel(),e.el.classList.remove("hover"),!t&&e.linkedSash&&C.onMouseLeave(e.linkedSash,!0)}clearSashHoverState(){C.onMouseLeave(this)}layout(){if(0===this.orientation){const e=this.layoutProvider;this.el.style.left=e.getVerticalSashLeft(this)-this.size/2+"px",e.getVerticalSashTop&&(this.el.style.top=e.getVerticalSashTop(this)+"px"),e.getVerticalSashHeight&&(this.el.style.height=e.getVerticalSashHeight(this)+"px")}else{const e=this.layoutProvider;this.el.style.top=e.getHorizontalSashTop(this)-this.size/2+"px",e.getHorizontalSashLeft&&(this.el.style.left=e.getHorizontalSashLeft(this)+"px"),e.getHorizontalSashWidth&&(this.el.style.width=e.getHorizontalSashWidth(this)+"px")}}getOrthogonalSash(e){const t=e.initialTarget??e.target;if(t&&(0,s.sb)(t))return t.classList.contains("orthogonal-drag-handle")?t.classList.contains("start")?this.orthogonalStartSash:this.orthogonalEndSash:void 0}dispose(){super.dispose(),this.el.remove()}}},92473:(e,t,i)=>{"use strict";i.d(t,{Gb:()=>m,Ax:()=>p,rk:()=>S});var s=i(60413),n=i(55275),r=i(98067),o=i(80624);class a{static _createRange(){return this._handyReadyRange||(this._handyReadyRange=document.createRange()),this._handyReadyRange}static _detachRange(e,t){e.selectNodeContents(t)}static _readClientRects(e,t,i,s,n){const r=this._createRange();try{return r.setStart(e,t),r.setEnd(i,s),r.getClientRects()}catch(o){return null}finally{this._detachRange(r,n)}}static _mergeAdjacentRanges(e){if(1===e.length)return e;e.sort(o.IO.compare);const t=[];let i=0,s=e[0];for(let n=1,r=e.length;n<r;n++){const r=e[n];s.left+s.width+.9>=r.left?s.width=Math.max(s.width,r.left+r.width-s.left):(t[i++]=s,s=r)}return t[i++]=s,t}static _createHorizontalRangesFromClientRects(e,t,i){if(!e||0===e.length)return null;const s=[];for(let n=0,r=e.length;n<r;n++){const r=e[n];s[n]=new o.IO(Math.max(0,(r.left-t)/i),r.width/i)}return this._mergeAdjacentRanges(s)}static readHorizontalRanges(e,t,i,s,n,r){const o=e.children.length-1;if(0>o)return null;if((t=Math.min(o,Math.max(0,t)))===(s=Math.min(o,Math.max(0,s)))&&i===n&&0===i&&!e.children[t].firstChild){const i=e.children[t].getClientRects();return r.markDidDomLayout(),this._createHorizontalRangesFromClientRects(i,r.clientRectDeltaLeft,r.clientRectScale)}t!==s&&s>0&&0===n&&(s--,n=1073741824);let a=e.children[t].firstChild,c=e.children[s].firstChild;if(a&&c||(!a&&0===i&&t>0&&(a=e.children[t-1].firstChild,i=1073741824),!c&&0===n&&s>0&&(c=e.children[s-1].firstChild,n=1073741824)),!a||!c)return null;i=Math.min(a.textContent.length,Math.max(0,i)),n=Math.min(c.textContent.length,Math.max(0,n));const l=this._readClientRects(a,i,c,n,r.endNode);return r.markDidDomLayout(),this._createHorizontalRangesFromClientRects(l,r.clientRectDeltaLeft,r.clientRectScale)}}var c=i(25521),l=i(35600),h=i(86723),d=i(87908);const u=!!r.ib||!(r.j9||s.gm||s.nr);let g=!0;class p{constructor(e,t){this.themeType=t;const i=e.options,s=i.get(50),n=i.get(38);this.renderWhitespace="off"===n?i.get(100):"none",this.renderControlCharacters=i.get(95),this.spaceWidth=s.spaceWidth,this.middotWidth=s.middotWidth,this.wsmiddotWidth=s.wsmiddotWidth,this.useMonospaceOptimizations=s.isMonospace&&!i.get(33),this.canUseHalfwidthRightwardsArrow=s.canUseHalfwidthRightwardsArrow,this.lineHeight=i.get(67),this.stopRenderingLineAfter=i.get(118),this.fontLigatures=i.get(51)}equals(e){return this.themeType===e.themeType&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineHeight===e.lineHeight&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.fontLigatures===e.fontLigatures}}class m{static{this.CLASS_NAME="view-line"}constructor(e){this._options=e,this._isMaybeInvalid=!0,this._renderedViewLine=null}getDomNode(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null}setDomNode(e){if(!this._renderedViewLine)throw new Error("I have no rendered view line to set the dom node to...");this._renderedViewLine.domNode=(0,n.Z)(e)}onContentChanged(){this._isMaybeInvalid=!0}onTokensChanged(){this._isMaybeInvalid=!0}onDecorationsChanged(){this._isMaybeInvalid=!0}onOptionsChanged(e){this._isMaybeInvalid=!0,this._options=e}onSelectionChanged(){return!(!(0,h.Bb)(this._options.themeType)&&"selection"!==this._options.renderWhitespace)&&(this._isMaybeInvalid=!0,!0)}renderLine(e,t,i,s,n){if(!1===this._isMaybeInvalid)return!1;this._isMaybeInvalid=!1;const r=s.getViewLineRenderingData(e),o=this._options,a=c.d.filter(r.inlineDecorations,e,r.minColumn,r.maxColumn);let p=null;if((0,h.Bb)(o.themeType)||"selection"===this._options.renderWhitespace){const t=s.selections;for(const i of t){if(i.endLineNumber<e||i.startLineNumber>e)continue;const t=i.startLineNumber===e?i.startColumn:r.minColumn,s=i.endLineNumber===e?i.endColumn:r.maxColumn;t<s&&((0,h.Bb)(o.themeType)&&a.push(new c.d(t,s,"inline-selected-text",0)),"selection"===this._options.renderWhitespace&&(p||(p=[]),p.push(new l.MT(t-1,s-1))))}}const _=new l.zL(o.useMonospaceOptimizations,o.canUseHalfwidthRightwardsArrow,r.content,r.continuesWithWrappedLine,r.isBasicASCII,r.containsRTL,r.minColumn-1,r.tokens,a,r.tabSize,r.startVisibleColumn,o.spaceWidth,o.middotWidth,o.wsmiddotWidth,o.stopRenderingLineAfter,o.renderWhitespace,o.renderControlCharacters,o.fontLigatures!==d.Bc.OFF,p);if(this._renderedViewLine&&this._renderedViewLine.input.equals(_))return!1;n.appendString('<div style="top:'),n.appendString(String(t)),n.appendString("px;height:"),n.appendString(String(i)),n.appendString('px;" class="'),n.appendString(m.CLASS_NAME),n.appendString('">');const v=(0,l.UW)(_,n);n.appendString("</div>");let E=null;return g&&u&&r.isBasicASCII&&o.useMonospaceOptimizations&&0===v.containsForeignElements&&(E=new f(this._renderedViewLine?this._renderedViewLine.domNode:null,_,v.characterMapping)),E||(E=C(this._renderedViewLine?this._renderedViewLine.domNode:null,_,v.characterMapping,v.containsRTL,v.containsForeignElements)),this._renderedViewLine=E,!0}layoutLine(e,t,i){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(t),this._renderedViewLine.domNode.setHeight(i))}getWidth(e){return this._renderedViewLine?this._renderedViewLine.getWidth(e):0}getWidthIsFast(){return!this._renderedViewLine||this._renderedViewLine.getWidthIsFast()}needsMonospaceFontCheck(){return!!this._renderedViewLine&&this._renderedViewLine instanceof f}monospaceAssumptionsAreValid(){return this._renderedViewLine&&this._renderedViewLine instanceof f?this._renderedViewLine.monospaceAssumptionsAreValid():g}onMonospaceAssumptionsInvalidated(){this._renderedViewLine&&this._renderedViewLine instanceof f&&(this._renderedViewLine=this._renderedViewLine.toSlowRenderedLine())}getVisibleRangesForRange(e,t,i,s){if(!this._renderedViewLine)return null;t=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,t)),i=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,i));const n=this._renderedViewLine.input.stopRenderingLineAfter;if(-1!==n&&t>n+1&&i>n+1)return new o.pj(!0,[new o.IO(this.getWidth(s),0)]);-1!==n&&t>n+1&&(t=n+1),-1!==n&&i>n+1&&(i=n+1);const r=this._renderedViewLine.getVisibleRangesForRange(e,t,i,s);return r&&r.length>0?new o.pj(!1,r):null}getColumnOfNodeOffset(e,t){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(e,t):1}}class f{constructor(e,t,i){this._cachedWidth=-1,this.domNode=e,this.input=t;const s=Math.floor(t.lineContent.length/300);if(s>0){this._keyColumnPixelOffsetCache=new Float32Array(s);for(let e=0;e<s;e++)this._keyColumnPixelOffsetCache[e]=-1}else this._keyColumnPixelOffsetCache=null;this._characterMapping=i,this._charWidth=t.spaceWidth}getWidth(e){if(!this.domNode||this.input.lineContent.length<300){const e=this._characterMapping.getHorizontalOffset(this._characterMapping.length);return Math.round(this._charWidth*e)}return-1===this._cachedWidth&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth,e?.markDidDomLayout()),this._cachedWidth}getWidthIsFast(){return this.input.lineContent.length<300||-1!==this._cachedWidth}monospaceAssumptionsAreValid(){if(!this.domNode)return g;if(this.input.lineContent.length<300){const e=this.getWidth(null),t=this.domNode.domNode.firstChild.offsetWidth;Math.abs(e-t)>=2&&(console.warn("monospace assumptions have been violated, therefore disabling monospace optimizations!"),g=!1)}return g}toSlowRenderedLine(){return C(this.domNode,this.input,this._characterMapping,!1,0)}getVisibleRangesForRange(e,t,i,s){const n=this._getColumnPixelOffset(e,t,s),r=this._getColumnPixelOffset(e,i,s);return[new o.IO(n,r-n)]}_getColumnPixelOffset(e,t,i){if(t<=300){const e=this._characterMapping.getHorizontalOffset(t);return this._charWidth*e}const s=Math.floor((t-1)/300)-1,n=300*(s+1)+1;let r=-1;if(this._keyColumnPixelOffsetCache&&(r=this._keyColumnPixelOffsetCache[s],-1===r&&(r=this._actualReadPixelOffset(e,n,i),this._keyColumnPixelOffsetCache[s]=r)),-1===r){const e=this._characterMapping.getHorizontalOffset(t);return this._charWidth*e}const o=this._characterMapping.getHorizontalOffset(n),a=this._characterMapping.getHorizontalOffset(t);return r+this._charWidth*(a-o)}_getReadingTarget(e){return e.domNode.firstChild}_actualReadPixelOffset(e,t,i){if(!this.domNode)return-1;const s=this._characterMapping.getDomPosition(t),n=a.readHorizontalRanges(this._getReadingTarget(this.domNode),s.partIndex,s.charIndex,s.partIndex,s.charIndex,i);return n&&0!==n.length?n[0].left:-1}getColumnOfNodeOffset(e,t){return S(this._characterMapping,e,t)}}class _{constructor(e,t,i,s,n){if(this.domNode=e,this.input=t,this._characterMapping=i,this._isWhitespaceOnly=/^\s*$/.test(t.lineContent),this._containsForeignElements=n,this._cachedWidth=-1,this._pixelOffsetCache=null,!s||0===this._characterMapping.length){this._pixelOffsetCache=new Float32Array(Math.max(2,this._characterMapping.length+1));for(let e=0,t=this._characterMapping.length;e<=t;e++)this._pixelOffsetCache[e]=-1}}_getReadingTarget(e){return e.domNode.firstChild}getWidth(e){return this.domNode?(-1===this._cachedWidth&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth,e?.markDidDomLayout()),this._cachedWidth):0}getWidthIsFast(){return-1!==this._cachedWidth}getVisibleRangesForRange(e,t,i,s){if(!this.domNode)return null;if(null!==this._pixelOffsetCache){const n=this._readPixelOffset(this.domNode,e,t,s);if(-1===n)return null;const r=this._readPixelOffset(this.domNode,e,i,s);return-1===r?null:[new o.IO(n,r-n)]}return this._readVisibleRangesForRange(this.domNode,e,t,i,s)}_readVisibleRangesForRange(e,t,i,s,n){if(i===s){const s=this._readPixelOffset(e,t,i,n);return-1===s?null:[new o.IO(s,0)]}return this._readRawVisibleRangesForRange(e,i,s,n)}_readPixelOffset(e,t,i,s){if(0===this._characterMapping.length){if(0===this._containsForeignElements)return 0;if(2===this._containsForeignElements)return 0;if(1===this._containsForeignElements)return this.getWidth(s);const t=this._getReadingTarget(e);return t.firstChild?(s.markDidDomLayout(),t.firstChild.offsetWidth):0}if(null!==this._pixelOffsetCache){const n=this._pixelOffsetCache[i];if(-1!==n)return n;const r=this._actualReadPixelOffset(e,t,i,s);return this._pixelOffsetCache[i]=r,r}return this._actualReadPixelOffset(e,t,i,s)}_actualReadPixelOffset(e,t,i,s){if(0===this._characterMapping.length){const t=a.readHorizontalRanges(this._getReadingTarget(e),0,0,0,0,s);return t&&0!==t.length?t[0].left:-1}if(i===this._characterMapping.length&&this._isWhitespaceOnly&&0===this._containsForeignElements)return this.getWidth(s);const n=this._characterMapping.getDomPosition(i),r=a.readHorizontalRanges(this._getReadingTarget(e),n.partIndex,n.charIndex,n.partIndex,n.charIndex,s);if(!r||0===r.length)return-1;const o=r[0].left;if(this.input.isBasicASCII){const e=this._characterMapping.getHorizontalOffset(i),t=Math.round(this.input.spaceWidth*e);if(Math.abs(t-o)<=1)return t}return o}_readRawVisibleRangesForRange(e,t,i,s){if(1===t&&i===this._characterMapping.length)return[new o.IO(0,this.getWidth(s))];const n=this._characterMapping.getDomPosition(t),r=this._characterMapping.getDomPosition(i);return a.readHorizontalRanges(this._getReadingTarget(e),n.partIndex,n.charIndex,r.partIndex,r.charIndex,s)}getColumnOfNodeOffset(e,t){return S(this._characterMapping,e,t)}}class v extends _{_readVisibleRangesForRange(e,t,i,s,n){const r=super._readVisibleRangesForRange(e,t,i,s,n);if(!r||0===r.length||i===s||1===i&&s===this._characterMapping.length)return r;if(!this.input.containsRTL){const i=this._readPixelOffset(e,t,s,n);if(-1!==i){const e=r[r.length-1];e.left<i&&(e.width=i-e.left)}}return r}}const C=s.Tc?E:b;function E(e,t,i,s,n){return new v(e,t,i,s,n)}function b(e,t,i,s,n){return new _(e,t,i,s,n)}function S(e,t,i){const s=t.textContent.length;let n=-1;for(;t;)t=t.previousSibling,n++;return e.getColumn(new l.wZ(n,i),s)}},92674:(e,t,i)=>{"use strict";i.d(t,{AL:()=>d,Vs:()=>h,x9:()=>u,xD:()=>c,yP:()=>l});var s=i(25890),n=i(91508),r=i(83069),o=i(36677),a=i(75295);class c{constructor(e,t){this.lineNumber=e,this.parts=t}equals(e){return this.lineNumber===e.lineNumber&&this.parts.length===e.parts.length&&this.parts.every(((t,i)=>t.equals(e.parts[i])))}renderForScreenReader(e){if(0===this.parts.length)return"";const t=this.parts[this.parts.length-1],i=e.substr(0,t.column-1);return new a.mF([...this.parts.map((e=>new a.WR(o.Q.fromPositions(new r.y(1,e.column)),e.lines.join("\n"))))]).applyToString(i).substring(this.parts[0].column-1)}isEmpty(){return this.parts.every((e=>0===e.lines.length))}get lineCount(){return 1+this.parts.reduce(((e,t)=>e+t.lines.length-1),0)}}class l{constructor(e,t,i){this.column=e,this.text=t,this.preview=i,this.lines=(0,n.uz)(this.text)}equals(e){return this.column===e.column&&this.lines.length===e.lines.length&&this.lines.every(((t,i)=>t===e.lines[i]))}}class h{constructor(e,t,i,s=0){this.lineNumber=e,this.columnRange=t,this.text=i,this.additionalReservedLineCount=s,this.parts=[new l(this.columnRange.endColumnExclusive,this.text,!1)],this.newLines=(0,n.uz)(this.text)}renderForScreenReader(e){return this.newLines.join("\n")}get lineCount(){return this.newLines.length}isEmpty(){return this.parts.every((e=>0===e.lines.length))}equals(e){return this.lineNumber===e.lineNumber&&this.columnRange.equals(e.columnRange)&&this.newLines.length===e.newLines.length&&this.newLines.every(((t,i)=>t===e.newLines[i]))&&this.additionalReservedLineCount===e.additionalReservedLineCount}}function d(e,t){return(0,s.aI)(e,t,u)}function u(e,t){return e===t||!(!e||!t)&&((e instanceof c&&t instanceof c||e instanceof h&&t instanceof h)&&e.equals(t))}},92719:(e,t,i)=>{"use strict";var s;i.d(t,{Q:()=>s}),function(e){function t(e,t){if(e.start>=t.end||t.start>=e.end)return{start:0,end:0};const i=Math.max(e.start,t.start),s=Math.min(e.end,t.end);return s-i<=0?{start:0,end:0}:{start:i,end:s}}function i(e){return e.end-e.start<=0}e.intersect=t,e.isEmpty=i,e.intersects=function(e,s){return!i(t(e,s))},e.relativeComplement=function(e,t){const s=[],n={start:e.start,end:Math.min(t.start,e.end)},r={start:Math.max(t.end,e.start),end:e.end};return i(n)||s.push(n),i(r)||s.push(r),s}}(s||(s={}))},92727:(e,t,i)=>{"use strict";i.d(t,{EN:()=>s.editor,eo:()=>s.languages,vl:()=>s.Emitter});var s=i(80781)},92778:(e,t,i)=>{e.exports=function(e){const t=i(94297),s=i(34420);return function(i,n,r){n=Object.assign({},n,{format:t.JSON,showDecoded:!1,compact:!1,escapeWhitespace:!0});let o=i.$value;try{o=JSON.parse(i.$value)}catch(a){console.error("Invalid JSON string",i.$value)}return e(s(o,n),n,r)}}},92896:(e,t,i)=>{"use strict";i.d(t,{GP:()=>c,LM:()=>o,Uv:()=>g,kI:()=>h,nt:()=>a,or:()=>d,qL:()=>l,vo:()=>u});var s=i(25890),n=i(91508),r=i(36677);class o{constructor(e,t,i,s){this._viewportBrand=void 0,this.top=0|e,this.left=0|t,this.width=0|i,this.height=0|s}}class a{constructor(e,t){this.tabSize=e,this.data=t}}class c{constructor(e,t,i,s,n,r,o){this._viewLineDataBrand=void 0,this.content=e,this.continuesWithWrappedLine=t,this.minColumn=i,this.maxColumn=s,this.startVisibleColumn=n,this.tokens=r,this.inlineDecorations=o}}class l{constructor(e,t,i,s,n,r,o,a,c,h){this.minColumn=e,this.maxColumn=t,this.content=i,this.continuesWithWrappedLine=s,this.isBasicASCII=l.isBasicASCII(i,r),this.containsRTL=l.containsRTL(i,this.isBasicASCII,n),this.tokens=o,this.inlineDecorations=a,this.tabSize=c,this.startVisibleColumn=h}static isBasicASCII(e,t){return!t||n.aC(e)}static containsRTL(e,t,i){return!(t||!i)&&n.E_(e)}}class h{constructor(e,t,i){this.range=e,this.inlineClassName=t,this.type=i}}class d{constructor(e,t,i,s){this.startOffset=e,this.endOffset=t,this.inlineClassName=i,this.inlineClassNameAffectsLetterSpacing=s}toInlineDecoration(e){return new h(new r.Q(e,this.startOffset+1,e,this.endOffset+1),this.inlineClassName,this.inlineClassNameAffectsLetterSpacing?3:0)}}class u{constructor(e,t){this._viewModelDecorationBrand=void 0,this.range=e,this.options=t}}class g{constructor(e,t,i){this.color=e,this.zIndex=t,this.data=i}static compareByRenderingProps(e,t){return e.zIndex===t.zIndex?e.color<t.color?-1:e.color>t.color?1:0:e.zIndex-t.zIndex}static equals(e,t){return e.color===t.color&&e.zIndex===t.zIndex&&s.aI(e.data,t.data)}static equalsArr(e,t){return s.aI(e,t,g.equals)}}},93090:(e,t,i)=>{"use strict";i.d(t,{hb:()=>K,B8:()=>ee,MH:()=>j,_C:()=>E,W0:()=>D,Bm:()=>F,B6:()=>A,b$:()=>O,bm:()=>I,mh:()=>z,tX:()=>V,Es:()=>P,xu:()=>M,bG:()=>Y});var s=i(8597),n=i(56245),r=i(72962),o=i(25154),a=i(11007);class c{constructor(e){this.spliceables=e}splice(e,t,i){this.spliceables.forEach((s=>s.splice(e,t,i)))}}var l=i(25890),h=i(90766),d=i(47661),u=i(58694),g=i(41234),p=i(26690),m=i(5662),f=i(1592),_=i(98067),v=i(631);i(48215);class C extends Error{constructor(e,t){super(`ListError [${e}] ${t}`)}}var E,b,S=i(66700),y=i(47358),w=i(31308),R=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class L{constructor(e){this.trait=e,this.renderedElements=[]}get templateId(){return`template:${this.trait.name}`}renderTemplate(e){return e}renderElement(e,t,i){const s=this.renderedElements.findIndex((e=>e.templateData===i));if(s>=0){const e=this.renderedElements[s];this.trait.unrender(i),e.index=t}else{const e={index:t,templateData:i};this.renderedElements.push(e)}this.trait.renderIndex(t,i)}splice(e,t,i){const s=[];for(const n of this.renderedElements)n.index<e?s.push(n):n.index>=e+t&&s.push({index:n.index+i-t,templateData:n.templateData});this.renderedElements=s}renderIndexes(e){for(const{index:t,templateData:i}of this.renderedElements)e.indexOf(t)>-1&&this.trait.renderIndex(t,i)}disposeTemplate(e){const t=this.renderedElements.findIndex((t=>t.templateData===e));t<0||this.renderedElements.splice(t,1)}}class T{get name(){return this._trait}get renderer(){return new L(this)}constructor(e){this._trait=e,this.indexes=[],this.sortedIndexes=[],this._onChange=new g.vl,this.onChange=this._onChange.event}splice(e,t,i){const s=i.length-t,n=e+t,r=[];let o=0;for(;o<this.sortedIndexes.length&&this.sortedIndexes[o]<e;)r.push(this.sortedIndexes[o++]);for(let a=0;a<i.length;a++)i[a]&&r.push(a+e);for(;o<this.sortedIndexes.length&&this.sortedIndexes[o]>=n;)r.push(this.sortedIndexes[o++]+s);this.renderer.splice(e,t,i.length),this._set(r,r)}renderIndex(e,t){t.classList.toggle(this._trait,this.contains(e))}unrender(e){e.classList.remove(this._trait)}set(e,t){return this._set(e,[...e].sort(Q),t)}_set(e,t,i){const s=this.indexes,n=this.sortedIndexes;this.indexes=e,this.sortedIndexes=t;const r=$(n,e);return this.renderer.renderIndexes(r),this._onChange.fire({indexes:e,browserEvent:i}),s}get(){return this.indexes}contains(e){return(0,l.El)(this.sortedIndexes,e,Q)>=0}dispose(){(0,m.AS)(this._onChange)}}R([u.B],T.prototype,"renderer",null);class x extends T{constructor(e){super("selected"),this.setAriaSelected=e}renderIndex(e,t){super.renderIndex(e,t),this.setAriaSelected&&(this.contains(e)?t.setAttribute("aria-selected","true"):t.setAttribute("aria-selected","false"))}}class k{constructor(e,t,i){this.trait=e,this.view=t,this.identityProvider=i}splice(e,t,i){if(!this.identityProvider)return this.trait.splice(e,t,new Array(i.length).fill(!1));const s=this.trait.get().map((e=>this.identityProvider.getId(this.view.element(e)).toString()));if(0===s.length)return this.trait.splice(e,t,new Array(i.length).fill(!1));const n=new Set(s),r=i.map((e=>n.has(this.identityProvider.getId(e).toString())));this.trait.splice(e,t,r)}}function A(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName}function N(e,t){return!!e.classList.contains(t)||!e.classList.contains("monaco-list")&&(!!e.parentElement&&N(e.parentElement,t))}function I(e){return N(e,"monaco-editor")}function O(e){return N(e,"monaco-custom-toggle")}function D(e){return N(e,"action-item")}function M(e){return N(e,"monaco-tree-sticky-row")}function P(e){return e.classList.contains("monaco-tree-sticky-container")}function F(e){return!!("A"===e.tagName&&e.classList.contains("monaco-button")||"DIV"===e.tagName&&e.classList.contains("monaco-button-dropdown"))||!e.classList.contains("monaco-list")&&(!!e.parentElement&&F(e.parentElement))}class U{get onKeyDown(){return g.Jh.chain(this.disposables.add(new n.f(this.view.domNode,"keydown")).event,(e=>e.filter((e=>!A(e.target))).map((e=>new r.Z(e)))))}constructor(e,t,i){this.list=e,this.view=t,this.disposables=new m.Cm,this.multipleSelectionDisposables=new m.Cm,this.multipleSelectionSupport=i.multipleSelectionSupport,this.disposables.add(this.onKeyDown((e=>{switch(e.keyCode){case 3:return this.onEnter(e);case 16:return this.onUpArrow(e);case 18:return this.onDownArrow(e);case 11:return this.onPageUpArrow(e);case 12:return this.onPageDownArrow(e);case 9:return this.onEscape(e);case 31:this.multipleSelectionSupport&&(_.zx?e.metaKey:e.ctrlKey)&&this.onCtrlA(e)}})))}updateOptions(e){void 0!==e.multipleSelectionSupport&&(this.multipleSelectionSupport=e.multipleSelectionSupport)}onEnter(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(this.list.getFocus(),e.browserEvent)}onUpArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusPrevious(1,!1,e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onDownArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusNext(1,!1,e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onPageUpArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusPreviousPage(e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onPageDownArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusNextPage(e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onCtrlA(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection((0,l.y1)(this.list.length),e.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus()}onEscape(e){this.list.getSelection().length&&(e.preventDefault(),e.stopPropagation(),this.list.setSelection([],e.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus())}dispose(){this.disposables.dispose(),this.multipleSelectionDisposables.dispose()}}R([u.B],U.prototype,"onKeyDown",null),function(e){e[e.Automatic=0]="Automatic",e[e.Trigger=1]="Trigger"}(E||(E={})),function(e){e[e.Idle=0]="Idle",e[e.Typing=1]="Typing"}(b||(b={}));const H=new class{mightProducePrintableCharacter(e){return!(e.ctrlKey||e.metaKey||e.altKey)&&(e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30||e.keyCode>=98&&e.keyCode<=107||e.keyCode>=85&&e.keyCode<=95)}};class B{constructor(e,t,i,s,n){this.list=e,this.view=t,this.keyboardNavigationLabelProvider=i,this.keyboardNavigationEventFilter=s,this.delegate=n,this.enabled=!1,this.state=b.Idle,this.mode=E.Automatic,this.triggered=!1,this.previouslyFocused=-1,this.enabledDisposables=new m.Cm,this.disposables=new m.Cm,this.updateOptions(e.options)}updateOptions(e){e.typeNavigationEnabled??1?this.enable():this.disable(),this.mode=e.typeNavigationMode??E.Automatic}enable(){if(this.enabled)return;let e=!1;const t=g.Jh.chain(this.enabledDisposables.add(new n.f(this.view.domNode,"keydown")).event,(t=>t.filter((e=>!A(e.target))).filter((()=>this.mode===E.Automatic||this.triggered)).map((e=>new r.Z(e))).filter((t=>e||this.keyboardNavigationEventFilter(t))).filter((e=>this.delegate.mightProducePrintableCharacter(e))).forEach((e=>s.fs.stop(e,!0))).map((e=>e.browserEvent.key)))),i=g.Jh.debounce(t,(()=>null),800,void 0,void 0,void 0,this.enabledDisposables);g.Jh.reduce(g.Jh.any(t,i),((e,t)=>null===t?null:(e||"")+t),void 0,this.enabledDisposables)(this.onInput,this,this.enabledDisposables),i(this.onClear,this,this.enabledDisposables),t((()=>e=!0),void 0,this.enabledDisposables),i((()=>e=!1),void 0,this.enabledDisposables),this.enabled=!0,this.triggered=!1}disable(){this.enabled&&(this.enabledDisposables.clear(),this.enabled=!1,this.triggered=!1)}onClear(){const e=this.list.getFocus();if(e.length>0&&e[0]===this.previouslyFocused){const t=this.list.options.accessibilityProvider?.getAriaLabel(this.list.element(e[0]));"string"===typeof t?(0,a.xE)(t):t&&(0,a.xE)(t.get())}this.previouslyFocused=-1}onInput(e){if(!e)return this.state=b.Idle,void(this.triggered=!1);const t=this.list.getFocus(),i=t.length>0?t[0]:0,s=this.state===b.Idle?1:0;this.state=b.Typing;for(let n=0;n<this.list.length;n++){const t=(i+n+s)%this.list.length,r=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(this.view.element(t)),o=r&&r.toString();if(this.list.options.typeNavigationEnabled){if("undefined"!==typeof o){if((0,p.WP)(e,o))return this.previouslyFocused=i,this.list.setFocus([t]),void this.list.reveal(t);const s=(0,p.O)(e,o);if(s){if(s[0].end-s[0].start>1&&1===s.length)return this.previouslyFocused=i,this.list.setFocus([t]),void this.list.reveal(t)}}}else if("undefined"===typeof o||(0,p.WP)(e,o))return this.previouslyFocused=i,this.list.setFocus([t]),void this.list.reveal(t)}}dispose(){this.disable(),this.enabledDisposables.dispose(),this.disposables.dispose()}}class W{constructor(e,t){this.list=e,this.view=t,this.disposables=new m.Cm;const i=g.Jh.chain(this.disposables.add(new n.f(t.domNode,"keydown")).event,(e=>e.filter((e=>!A(e.target))).map((e=>new r.Z(e)))));g.Jh.chain(i,(e=>e.filter((e=>2===e.keyCode&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey))))(this.onTab,this,this.disposables)}onTab(e){if(e.target!==this.view.domNode)return;const t=this.list.getFocus();if(0===t.length)return;const i=this.view.domElement(t[0]);if(!i)return;const n=i.querySelector("[tabIndex]");if(!n||!(0,s.sb)(n)||-1===n.tabIndex)return;const r=(0,s.zk)(n).getComputedStyle(n);"hidden"!==r.visibility&&"none"!==r.display&&(e.preventDefault(),e.stopPropagation(),n.focus())}dispose(){this.disposables.dispose()}}function V(e){return _.zx?e.browserEvent.metaKey:e.browserEvent.ctrlKey}function z(e){return e.browserEvent.shiftKey}const G={isSelectionSingleChangeEvent:V,isSelectionRangeChangeEvent:z};class j{constructor(e){this.list=e,this.disposables=new m.Cm,this._onPointer=new g.vl,this.onPointer=this._onPointer.event,!1!==e.options.multipleSelectionSupport&&(this.multipleSelectionController=this.list.options.multipleSelectionController||G),this.mouseSupport="undefined"===typeof e.options.mouseSupport||!!e.options.mouseSupport,this.mouseSupport&&(e.onMouseDown(this.onMouseDown,this,this.disposables),e.onContextMenu(this.onContextMenu,this,this.disposables),e.onMouseDblClick(this.onDoubleClick,this,this.disposables),e.onTouchStart(this.onMouseDown,this,this.disposables),this.disposables.add(o.q.addTarget(e.getHTMLElement()))),g.Jh.any(e.onMouseClick,e.onMouseMiddleClick,e.onTap)(this.onViewPointer,this,this.disposables)}updateOptions(e){void 0!==e.multipleSelectionSupport&&(this.multipleSelectionController=void 0,e.multipleSelectionSupport&&(this.multipleSelectionController=this.list.options.multipleSelectionController||G))}isSelectionSingleChangeEvent(e){return!!this.multipleSelectionController&&this.multipleSelectionController.isSelectionSingleChangeEvent(e)}isSelectionRangeChangeEvent(e){return!!this.multipleSelectionController&&this.multipleSelectionController.isSelectionRangeChangeEvent(e)}isSelectionChangeEvent(e){return this.isSelectionSingleChangeEvent(e)||this.isSelectionRangeChangeEvent(e)}onMouseDown(e){I(e.browserEvent.target)||(0,s.bq)()!==e.browserEvent.target&&this.list.domFocus()}onContextMenu(e){if(A(e.browserEvent.target)||I(e.browserEvent.target))return;const t="undefined"===typeof e.index?[]:[e.index];this.list.setFocus(t,e.browserEvent)}onViewPointer(e){if(!this.mouseSupport)return;if(A(e.browserEvent.target)||I(e.browserEvent.target))return;if(e.browserEvent.isHandledByList)return;e.browserEvent.isHandledByList=!0;const t=e.index;return"undefined"===typeof t?(this.list.setFocus([],e.browserEvent),this.list.setSelection([],e.browserEvent),void this.list.setAnchor(void 0)):this.isSelectionChangeEvent(e)?this.changeSelection(e):(this.list.setFocus([t],e.browserEvent),this.list.setAnchor(t),i=e.browserEvent,(0,s.Er)(i)&&2===i.button||this.list.setSelection([t],e.browserEvent),void this._onPointer.fire(e));var i}onDoubleClick(e){if(A(e.browserEvent.target)||I(e.browserEvent.target))return;if(this.isSelectionChangeEvent(e))return;if(e.browserEvent.isHandledByList)return;e.browserEvent.isHandledByList=!0;const t=this.list.getFocus();this.list.setSelection(t,e.browserEvent)}changeSelection(e){const t=e.index;let i=this.list.getAnchor();if(this.isSelectionRangeChangeEvent(e)){if("undefined"===typeof i){i=this.list.getFocus()[0]??t,this.list.setAnchor(i)}const s=Math.min(i,t),n=Math.max(i,t),r=(0,l.y1)(s,n+1),o=this.list.getSelection(),a=function(e,t){const i=e.indexOf(t);if(-1===i)return[];const s=[];let n=i-1;for(;n>=0&&e[n]===t-(i-n);)s.push(e[n--]);s.reverse(),n=i;for(;n<e.length&&e[n]===t+(n-i);)s.push(e[n++]);return s}($(o,[i]),i);if(0===a.length)return;const c=$(r,function(e,t){const i=[];let s=0,n=0;for(;s<e.length||n<t.length;)if(s>=e.length)i.push(t[n++]);else if(n>=t.length)i.push(e[s++]);else{if(e[s]===t[n]){s++,n++;continue}e[s]<t[n]?i.push(e[s++]):n++}return i}(o,a));this.list.setSelection(c,e.browserEvent),this.list.setFocus([t],e.browserEvent)}else if(this.isSelectionSingleChangeEvent(e)){const i=this.list.getSelection(),s=i.filter((e=>e!==t));this.list.setFocus([t]),this.list.setAnchor(t),i.length===s.length?this.list.setSelection([...s,t],e.browserEvent):this.list.setSelection(s,e.browserEvent)}}dispose(){this.disposables.dispose()}}class K{constructor(e,t){this.styleElement=e,this.selectorSuffix=t}style(e){const t=this.selectorSuffix&&`.${this.selectorSuffix}`,i=[];e.listBackground&&i.push(`.monaco-list${t} .monaco-list-rows { background: ${e.listBackground}; }`),e.listFocusBackground&&(i.push(`.monaco-list${t}:focus .monaco-list-row.focused { background-color: ${e.listFocusBackground}; }`),i.push(`.monaco-list${t}:focus .monaco-list-row.focused:hover { background-color: ${e.listFocusBackground}; }`)),e.listFocusForeground&&i.push(`.monaco-list${t}:focus .monaco-list-row.focused { color: ${e.listFocusForeground}; }`),e.listActiveSelectionBackground&&(i.push(`.monaco-list${t}:focus .monaco-list-row.selected { background-color: ${e.listActiveSelectionBackground}; }`),i.push(`.monaco-list${t}:focus .monaco-list-row.selected:hover { background-color: ${e.listActiveSelectionBackground}; }`)),e.listActiveSelectionForeground&&i.push(`.monaco-list${t}:focus .monaco-list-row.selected { color: ${e.listActiveSelectionForeground}; }`),e.listActiveSelectionIconForeground&&i.push(`.monaco-list${t}:focus .monaco-list-row.selected .codicon { color: ${e.listActiveSelectionIconForeground}; }`),e.listFocusAndSelectionBackground&&i.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${t}:focus .monaco-list-row.selected.focused { background-color: ${e.listFocusAndSelectionBackground}; }\n\t\t\t`),e.listFocusAndSelectionForeground&&i.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${t}:focus .monaco-list-row.selected.focused { color: ${e.listFocusAndSelectionForeground}; }\n\t\t\t`),e.listInactiveFocusForeground&&(i.push(`.monaco-list${t} .monaco-list-row.focused { color: ${e.listInactiveFocusForeground}; }`),i.push(`.monaco-list${t} .monaco-list-row.focused:hover { color: ${e.listInactiveFocusForeground}; }`)),e.listInactiveSelectionIconForeground&&i.push(`.monaco-list${t} .monaco-list-row.focused .codicon { color: ${e.listInactiveSelectionIconForeground}; }`),e.listInactiveFocusBackground&&(i.push(`.monaco-list${t} .monaco-list-row.focused { background-color: ${e.listInactiveFocusBackground}; }`),i.push(`.monaco-list${t} .monaco-list-row.focused:hover { background-color: ${e.listInactiveFocusBackground}; }`)),e.listInactiveSelectionBackground&&(i.push(`.monaco-list${t} .monaco-list-row.selected { background-color: ${e.listInactiveSelectionBackground}; }`),i.push(`.monaco-list${t} .monaco-list-row.selected:hover { background-color: ${e.listInactiveSelectionBackground}; }`)),e.listInactiveSelectionForeground&&i.push(`.monaco-list${t} .monaco-list-row.selected { color: ${e.listInactiveSelectionForeground}; }`),e.listHoverBackground&&i.push(`.monaco-list${t}:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused) { background-color: ${e.listHoverBackground}; }`),e.listHoverForeground&&i.push(`.monaco-list${t}:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused) { color: ${e.listHoverForeground}; }`);const n=(0,s.gI)(e.listFocusAndSelectionOutline,(0,s.gI)(e.listSelectionOutline,e.listFocusOutline??""));n&&i.push(`.monaco-list${t}:focus .monaco-list-row.focused.selected { outline: 1px solid ${n}; outline-offset: -1px;}`),e.listFocusOutline&&i.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${t}:focus .monaco-list-row.focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }\n\t\t\t\t.monaco-workbench.context-menu-visible .monaco-list${t}.last-focused .monaco-list-row.focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }\n\t\t\t`);const r=(0,s.gI)(e.listSelectionOutline,e.listInactiveFocusOutline??"");r&&i.push(`.monaco-list${t} .monaco-list-row.focused.selected { outline: 1px dotted ${r}; outline-offset: -1px; }`),e.listSelectionOutline&&i.push(`.monaco-list${t} .monaco-list-row.selected { outline: 1px dotted ${e.listSelectionOutline}; outline-offset: -1px; }`),e.listInactiveFocusOutline&&i.push(`.monaco-list${t} .monaco-list-row.focused { outline: 1px dotted ${e.listInactiveFocusOutline}; outline-offset: -1px; }`),e.listHoverOutline&&i.push(`.monaco-list${t} .monaco-list-row:hover { outline: 1px dashed ${e.listHoverOutline}; outline-offset: -1px; }`),e.listDropOverBackground&&i.push(`\n\t\t\t\t.monaco-list${t}.drop-target,\n\t\t\t\t.monaco-list${t} .monaco-list-rows.drop-target,\n\t\t\t\t.monaco-list${t} .monaco-list-row.drop-target { background-color: ${e.listDropOverBackground} !important; color: inherit !important; }\n\t\t\t`),e.listDropBetweenBackground&&(i.push(`\n\t\t\t.monaco-list${t} .monaco-list-rows.drop-target-before .monaco-list-row:first-child::before,\n\t\t\t.monaco-list${t} .monaco-list-row.drop-target-before::before {\n\t\t\t\tcontent: ""; position: absolute; top: 0px; left: 0px; width: 100%; height: 1px;\n\t\t\t\tbackground-color: ${e.listDropBetweenBackground};\n\t\t\t}`),i.push(`\n\t\t\t.monaco-list${t} .monaco-list-rows.drop-target-after .monaco-list-row:last-child::after,\n\t\t\t.monaco-list${t} .monaco-list-row.drop-target-after::after {\n\t\t\t\tcontent: ""; position: absolute; bottom: 0px; left: 0px; width: 100%; height: 1px;\n\t\t\t\tbackground-color: ${e.listDropBetweenBackground};\n\t\t\t}`)),e.tableColumnsBorder&&i.push(`\n\t\t\t\t.monaco-table > .monaco-split-view2,\n\t\t\t\t.monaco-table > .monaco-split-view2 .monaco-sash.vertical::before,\n\t\t\t\t.monaco-workbench:not(.reduce-motion) .monaco-table:hover > .monaco-split-view2,\n\t\t\t\t.monaco-workbench:not(.reduce-motion) .monaco-table:hover > .monaco-split-view2 .monaco-sash.vertical::before {\n\t\t\t\t\tborder-color: ${e.tableColumnsBorder};\n\t\t\t\t}\n\n\t\t\t\t.monaco-workbench:not(.reduce-motion) .monaco-table > .monaco-split-view2,\n\t\t\t\t.monaco-workbench:not(.reduce-motion) .monaco-table > .monaco-split-view2 .monaco-sash.vertical::before {\n\t\t\t\t\tborder-color: transparent;\n\t\t\t\t}\n\t\t\t`),e.tableOddRowsBackgroundColor&&i.push(`\n\t\t\t\t.monaco-table .monaco-list-row[data-parity=odd]:not(.focused):not(.selected):not(:hover) .monaco-table-tr,\n\t\t\t\t.monaco-table .monaco-list:not(:focus) .monaco-list-row[data-parity=odd].focused:not(.selected):not(:hover) .monaco-table-tr,\n\t\t\t\t.monaco-table .monaco-list:not(.focused) .monaco-list-row[data-parity=odd].focused:not(.selected):not(:hover) .monaco-table-tr {\n\t\t\t\t\tbackground-color: ${e.tableOddRowsBackgroundColor};\n\t\t\t\t}\n\t\t\t`),this.styleElement.textContent=i.join("\n")}}const Y={listFocusBackground:"#7FB0D0",listActiveSelectionBackground:"#0E639C",listActiveSelectionForeground:"#FFFFFF",listActiveSelectionIconForeground:"#FFFFFF",listFocusAndSelectionOutline:"#90C2F9",listFocusAndSelectionBackground:"#094771",listFocusAndSelectionForeground:"#FFFFFF",listInactiveSelectionBackground:"#3F3F46",listInactiveSelectionIconForeground:"#FFFFFF",listHoverBackground:"#2A2D2E",listDropOverBackground:"#383B3D",listDropBetweenBackground:"#EEEEEE",treeIndentGuidesStroke:"#a9a9a9",treeInactiveIndentGuidesStroke:d.Q1.fromHex("#a9a9a9").transparent(.4).toString(),tableColumnsBorder:d.Q1.fromHex("#cccccc").transparent(.2).toString(),tableOddRowsBackgroundColor:d.Q1.fromHex("#cccccc").transparent(.04).toString(),listBackground:void 0,listFocusForeground:void 0,listInactiveSelectionForeground:void 0,listInactiveFocusForeground:void 0,listInactiveFocusBackground:void 0,listHoverForeground:void 0,listFocusOutline:void 0,listInactiveFocusOutline:void 0,listSelectionOutline:void 0,listHoverOutline:void 0,treeStickyScrollBackground:void 0,treeStickyScrollBorder:void 0,treeStickyScrollShadow:void 0},q={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI:()=>null,onDragStart(){},onDragOver:()=>!1,drop(){},dispose(){}}};function $(e,t){const i=[];let s=0,n=0;for(;s<e.length||n<t.length;)if(s>=e.length)i.push(t[n++]);else if(n>=t.length)i.push(e[s++]);else{if(e[s]===t[n]){i.push(e[s]),s++,n++;continue}e[s]<t[n]?i.push(e[s++]):i.push(t[n++])}return i}const Q=(e,t)=>e-t;class X{constructor(e,t){this._templateId=e,this.renderers=t}get templateId(){return this._templateId}renderTemplate(e){return this.renderers.map((t=>t.renderTemplate(e)))}renderElement(e,t,i,s){let n=0;for(const r of this.renderers)r.renderElement(e,t,i[n++],s)}disposeElement(e,t,i,s){let n=0;for(const r of this.renderers)r.disposeElement?.(e,t,i[n],s),n+=1}disposeTemplate(e){let t=0;for(const i of this.renderers)i.disposeTemplate(e[t++])}}class Z{constructor(e){this.accessibilityProvider=e,this.templateId="a18n"}renderTemplate(e){return{container:e,disposables:new m.Cm}}renderElement(e,t,i){const s=this.accessibilityProvider.getAriaLabel(e),n=s&&"string"!==typeof s?s:(0,w.lk)(s);i.disposables.add((0,w.fm)((e=>{this.setAriaLabel(e.readObservable(n),i.container)})));const r=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(e);"number"===typeof r?i.container.setAttribute("aria-level",`${r}`):i.container.removeAttribute("aria-level")}setAriaLabel(e,t){e?t.setAttribute("aria-label",e):t.removeAttribute("aria-label")}disposeElement(e,t,i,s){i.disposables.clear()}disposeTemplate(e){e.disposables.dispose()}}class J{constructor(e,t){this.list=e,this.dnd=t}getDragElements(e){const t=this.list.getSelectedElements();return t.indexOf(e)>-1?t:[e]}getDragURI(e){return this.dnd.getDragURI(e)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e,t)}onDragStart(e,t){this.dnd.onDragStart?.(e,t)}onDragOver(e,t,i,s,n){return this.dnd.onDragOver(e,t,i,s,n)}onDragLeave(e,t,i,s){this.dnd.onDragLeave?.(e,t,i,s)}onDragEnd(e){this.dnd.onDragEnd?.(e)}drop(e,t,i,s,n){this.dnd.drop(e,t,i,s,n)}dispose(){this.dnd.dispose()}}class ee{get onDidChangeFocus(){return g.Jh.map(this.eventBufferer.wrapEvent(this.focus.onChange),(e=>this.toListEvent(e)),this.disposables)}get onDidChangeSelection(){return g.Jh.map(this.eventBufferer.wrapEvent(this.selection.onChange),(e=>this.toListEvent(e)),this.disposables)}get domId(){return this.view.domId}get onDidScroll(){return this.view.onDidScroll}get onMouseClick(){return this.view.onMouseClick}get onMouseDblClick(){return this.view.onMouseDblClick}get onMouseMiddleClick(){return this.view.onMouseMiddleClick}get onPointer(){return this.mouseController.onPointer}get onMouseDown(){return this.view.onMouseDown}get onMouseOver(){return this.view.onMouseOver}get onMouseOut(){return this.view.onMouseOut}get onTouchStart(){return this.view.onTouchStart}get onTap(){return this.view.onTap}get onContextMenu(){let e=!1;const t=g.Jh.chain(this.disposables.add(new n.f(this.view.domNode,"keydown")).event,(t=>t.map((e=>new r.Z(e))).filter((t=>e=58===t.keyCode||t.shiftKey&&68===t.keyCode)).map((e=>s.fs.stop(e,!0))).filter((()=>!1)))),i=g.Jh.chain(this.disposables.add(new n.f(this.view.domNode,"keyup")).event,(t=>t.forEach((()=>e=!1)).map((e=>new r.Z(e))).filter((e=>58===e.keyCode||e.shiftKey&&68===e.keyCode)).map((e=>s.fs.stop(e,!0))).map((({browserEvent:e})=>{const t=this.getFocus(),i=t.length?t[0]:void 0;return{index:i,element:"undefined"!==typeof i?this.view.element(i):void 0,anchor:"undefined"!==typeof i?this.view.domElement(i):this.view.domNode,browserEvent:e}})))),o=g.Jh.chain(this.view.onContextMenu,(t=>t.filter((t=>!e)).map((({element:e,index:t,browserEvent:i})=>({element:e,index:t,anchor:new y.P((0,s.zk)(this.view.domNode),i),browserEvent:i})))));return g.Jh.any(t,i,o)}get onKeyDown(){return this.disposables.add(new n.f(this.view.domNode,"keydown")).event}get onDidFocus(){return g.Jh.signal(this.disposables.add(new n.f(this.view.domNode,"focus",!0)).event)}get onDidBlur(){return g.Jh.signal(this.disposables.add(new n.f(this.view.domNode,"blur",!0)).event)}constructor(e,t,i,n,r=q){this.user=e,this._options=r,this.focus=new T("focused"),this.anchor=new T("anchor"),this.eventBufferer=new g.at,this._ariaLabel="",this.disposables=new m.Cm,this._onDidDispose=new g.vl,this.onDidDispose=this._onDidDispose.event;const o=this._options.accessibilityProvider&&this._options.accessibilityProvider.getWidgetRole?this._options.accessibilityProvider?.getWidgetRole():"list";this.selection=new x("listbox"!==o);const a=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=r.accessibilityProvider,this.accessibilityProvider&&(a.push(new Z(this.accessibilityProvider)),this.accessibilityProvider.onDidChangeActiveDescendant?.(this.onDidChangeActiveDescendant,this,this.disposables)),n=n.map((e=>new X(e.templateId,[...a,e])));const l={...r,dnd:r.dnd&&new J(this,r.dnd)};if(this.view=this.createListView(t,i,n,l),this.view.domNode.setAttribute("role",o),r.styleController)this.styleController=r.styleController(this.view.domId);else{const e=(0,s.li)(this.view.domNode);this.styleController=new K(e,this.view.domId)}if(this.spliceable=new c([new k(this.focus,this.view,r.identityProvider),new k(this.selection,this.view,r.identityProvider),new k(this.anchor,this.view,r.identityProvider),this.view]),this.disposables.add(this.focus),this.disposables.add(this.selection),this.disposables.add(this.anchor),this.disposables.add(this.view),this.disposables.add(this._onDidDispose),this.disposables.add(new W(this,this.view)),("boolean"!==typeof r.keyboardSupport||r.keyboardSupport)&&(this.keyboardController=new U(this,this.view,r),this.disposables.add(this.keyboardController)),r.keyboardNavigationLabelProvider){const e=r.keyboardNavigationDelegate||H;this.typeNavigationController=new B(this,this.view,r.keyboardNavigationLabelProvider,r.keyboardNavigationEventFilter??(()=>!0),e),this.disposables.add(this.typeNavigationController)}this.mouseController=this.createMouseController(r),this.disposables.add(this.mouseController),this.onDidChangeFocus(this._onFocusChange,this,this.disposables),this.onDidChangeSelection(this._onSelectionChange,this,this.disposables),this.accessibilityProvider&&(this.ariaLabel=this.accessibilityProvider.getWidgetAriaLabel()),!1!==this._options.multipleSelectionSupport&&this.view.domNode.setAttribute("aria-multiselectable","true")}createListView(e,t,i,s){return new S.uO(e,t,i,s)}createMouseController(e){return new j(this)}updateOptions(e={}){this._options={...this._options,...e},this.typeNavigationController?.updateOptions(this._options),void 0!==this._options.multipleSelectionController&&(this._options.multipleSelectionSupport?this.view.domNode.setAttribute("aria-multiselectable","true"):this.view.domNode.removeAttribute("aria-multiselectable")),this.mouseController.updateOptions(e),this.keyboardController?.updateOptions(e),this.view.updateOptions(e)}get options(){return this._options}splice(e,t,i=[]){if(e<0||e>this.view.length)throw new C(this.user,`Invalid start index: ${e}`);if(t<0)throw new C(this.user,`Invalid delete count: ${t}`);0===t&&0===i.length||this.eventBufferer.bufferEvents((()=>this.spliceable.splice(e,t,i)))}rerender(){this.view.rerender()}element(e){return this.view.element(e)}indexOf(e){return this.view.indexOf(e)}indexAt(e){return this.view.indexAt(e)}get length(){return this.view.length}get contentHeight(){return this.view.contentHeight}get onDidChangeContentHeight(){return this.view.onDidChangeContentHeight}get scrollTop(){return this.view.getScrollTop()}set scrollTop(e){this.view.setScrollTop(e)}get scrollHeight(){return this.view.scrollHeight}get renderHeight(){return this.view.renderHeight}get firstVisibleIndex(){return this.view.firstVisibleIndex}get ariaLabel(){return this._ariaLabel}set ariaLabel(e){this._ariaLabel=e,this.view.domNode.setAttribute("aria-label",e)}domFocus(){this.view.domNode.focus({preventScroll:!0})}layout(e,t){this.view.layout(e,t)}setSelection(e,t){for(const i of e)if(i<0||i>=this.length)throw new C(this.user,`Invalid index ${i}`);this.selection.set(e,t)}getSelection(){return this.selection.get()}getSelectedElements(){return this.getSelection().map((e=>this.view.element(e)))}setAnchor(e){if("undefined"!==typeof e){if(e<0||e>=this.length)throw new C(this.user,`Invalid index ${e}`);this.anchor.set([e])}else this.anchor.set([])}getAnchor(){return(0,l.Fy)(this.anchor.get(),void 0)}getAnchorElement(){const e=this.getAnchor();return"undefined"===typeof e?void 0:this.element(e)}setFocus(e,t){for(const i of e)if(i<0||i>=this.length)throw new C(this.user,`Invalid index ${i}`);this.focus.set(e,t)}focusNext(e=1,t=!1,i,s){if(0===this.length)return;const n=this.focus.get(),r=this.findNextIndex(n.length>0?n[0]+e:0,t,s);r>-1&&this.setFocus([r],i)}focusPrevious(e=1,t=!1,i,s){if(0===this.length)return;const n=this.focus.get(),r=this.findPreviousIndex(n.length>0?n[0]-e:0,t,s);r>-1&&this.setFocus([r],i)}async focusNextPage(e,t){let i=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);i=0===i?0:i-1;const s=this.getFocus()[0];if(s!==i&&(void 0===s||i>s)){const n=this.findPreviousIndex(i,!1,t);n>-1&&s!==n?this.setFocus([n],e):this.setFocus([i],e)}else{const n=this.view.getScrollTop();let r=n+this.view.renderHeight;i>s&&(r-=this.view.elementHeight(i)),this.view.setScrollTop(r),this.view.getScrollTop()!==n&&(this.setFocus([]),await(0,h.wR)(0),await this.focusNextPage(e,t))}}async focusPreviousPage(e,t,i=()=>0){let s;const n=i(),r=this.view.getScrollTop()+n;s=0===r?this.view.indexAt(r):this.view.indexAfter(r-1);const o=this.getFocus()[0];if(o!==s&&(void 0===o||o>=s)){const i=this.findNextIndex(s,!1,t);i>-1&&o!==i?this.setFocus([i],e):this.setFocus([s],e)}else{const s=r;this.view.setScrollTop(r-this.view.renderHeight-n),this.view.getScrollTop()+i()!==s&&(this.setFocus([]),await(0,h.wR)(0),await this.focusPreviousPage(e,t,i))}}focusLast(e,t){if(0===this.length)return;const i=this.findPreviousIndex(this.length-1,!1,t);i>-1&&this.setFocus([i],e)}focusFirst(e,t){this.focusNth(0,e,t)}focusNth(e,t,i){if(0===this.length)return;const s=this.findNextIndex(e,!1,i);s>-1&&this.setFocus([s],t)}findNextIndex(e,t=!1,i){for(let s=0;s<this.length;s++){if(e>=this.length&&!t)return-1;if(e%=this.length,!i||i(this.element(e)))return e;e++}return-1}findPreviousIndex(e,t=!1,i){for(let s=0;s<this.length;s++){if(e<0&&!t)return-1;if(e=(this.length+e%this.length)%this.length,!i||i(this.element(e)))return e;e--}return-1}getFocus(){return this.focus.get()}getFocusedElements(){return this.getFocus().map((e=>this.view.element(e)))}reveal(e,t,i=0){if(e<0||e>=this.length)throw new C(this.user,`Invalid index ${e}`);const s=this.view.getScrollTop(),n=this.view.elementTop(e),r=this.view.elementHeight(e);if((0,v.Et)(t)){const e=r-this.view.renderHeight+i;this.view.setScrollTop(e*(0,f.qE)(t,0,1)+n-i)}else{const e=n+r,t=s+this.view.renderHeight;n<s+i&&e>=t||(n<s+i||e>=t&&r>=this.view.renderHeight?this.view.setScrollTop(n-i):e>=t&&this.view.setScrollTop(e-this.view.renderHeight))}}getRelativeTop(e,t=0){if(e<0||e>=this.length)throw new C(this.user,`Invalid index ${e}`);const i=this.view.getScrollTop(),s=this.view.elementTop(e),n=this.view.elementHeight(e);if(s<i+t||s+n>i+this.view.renderHeight)return null;const r=n-this.view.renderHeight+t;return Math.abs((i+t-s)/r)}getHTMLElement(){return this.view.domNode}getScrollableElement(){return this.view.scrollableElementDomNode}getElementID(e){return this.view.getElementDomId(e)}getElementTop(e){return this.view.elementTop(e)}style(e){this.styleController.style(e)}toListEvent({indexes:e,browserEvent:t}){return{indexes:e,elements:e.map((e=>this.view.element(e))),browserEvent:t}}_onFocusChange(){const e=this.focus.get();this.view.domNode.classList.toggle("element-focused",e.length>0),this.onDidChangeActiveDescendant()}onDidChangeActiveDescendant(){const e=this.focus.get();if(e.length>0){let t;this.accessibilityProvider?.getActiveDescendantId&&(t=this.accessibilityProvider.getActiveDescendantId(this.view.element(e[0]))),this.view.domNode.setAttribute("aria-activedescendant",t||this.view.getElementDomId(e[0]))}else this.view.domNode.removeAttribute("aria-activedescendant")}_onSelectionChange(){const e=this.selection.get();this.view.domNode.classList.toggle("selection-none",0===e.length),this.view.domNode.classList.toggle("selection-single",1===e.length),this.view.domNode.classList.toggle("selection-multiple",e.length>1)}dispose(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidDispose.dispose()}}R([u.B],ee.prototype,"onDidChangeFocus",null),R([u.B],ee.prototype,"onDidChangeSelection",null),R([u.B],ee.prototype,"onContextMenu",null),R([u.B],ee.prototype,"onKeyDown",null),R([u.B],ee.prototype,"onDidFocus",null),R([u.B],ee.prototype,"onDidBlur",null)},93409:(e,t,i)=>{"use strict";var s=i(78209),n=i(66261);(0,n.x1A)("symbolIcon.arrayForeground",n.CU6,(0,s.kg)("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.booleanForeground",n.CU6,(0,s.kg)("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,s.kg)("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.colorForeground",n.CU6,(0,s.kg)("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.constantForeground",n.CU6,(0,s.kg)("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,s.kg)("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,s.kg)("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,s.kg)("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,s.kg)("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,s.kg)("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.fileForeground",n.CU6,(0,s.kg)("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.folderForeground",n.CU6,(0,s.kg)("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,s.kg)("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,s.kg)("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.keyForeground",n.CU6,(0,s.kg)("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.keywordForeground",n.CU6,(0,s.kg)("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,s.kg)("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.moduleForeground",n.CU6,(0,s.kg)("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.namespaceForeground",n.CU6,(0,s.kg)("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.nullForeground",n.CU6,(0,s.kg)("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.numberForeground",n.CU6,(0,s.kg)("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.objectForeground",n.CU6,(0,s.kg)("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.operatorForeground",n.CU6,(0,s.kg)("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.packageForeground",n.CU6,(0,s.kg)("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.propertyForeground",n.CU6,(0,s.kg)("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.referenceForeground",n.CU6,(0,s.kg)("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.snippetForeground",n.CU6,(0,s.kg)("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.stringForeground",n.CU6,(0,s.kg)("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.structForeground",n.CU6,(0,s.kg)("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.textForeground",n.CU6,(0,s.kg)("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.typeParameterForeground",n.CU6,(0,s.kg)("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.unitForeground",n.CU6,(0,s.kg)("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,s.kg)("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."))},93599:e=>{e.exports=function(){function e(e){return e.$value}return e.isScalar=!0,e}},93630:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var s=i(91508),n=i(40579),r=i(19131),o=i(32956),a=i(51934);class c{static createFromLanguage(e,t){function i(e){return t.getKey(`${e.languageId}:::${e.bracketText}`)}const s=new Map;for(const c of e.bracketsNew.openingBrackets){const e=(0,r.qe)(0,c.bracketText.length),t=i(c),l=o.gV.getEmpty().add(t,o.FD);s.set(c.bracketText,new a.ou(e,1,t,l,n.rh.create(e,c,l)))}for(const c of e.bracketsNew.closingBrackets){const e=(0,r.qe)(0,c.bracketText.length);let t=o.gV.getEmpty();const l=c.getOpeningBrackets();for(const s of l)t=t.add(i(s),o.FD);s.set(c.bracketText,new a.ou(e,2,i(l[0]),t,n.rh.create(e,c,t)))}return new c(s)}constructor(e){this.map=e,this.hasRegExp=!1,this._regExpGlobal=null}getRegExpStr(){if(this.isEmpty)return null;{const e=[...this.map.keys()];return e.sort(),e.reverse(),e.map((e=>function(e){let t=(0,s.bm)(e);/^[\w ]+/.test(e)&&(t=`\\b${t}`);/[\w ]+$/.test(e)&&(t=`${t}\\b`);return t}(e))).join("|")}}get regExpGlobal(){if(!this.hasRegExp){const e=this.getRegExpStr();this._regExpGlobal=e?new RegExp(e,"gi"):null,this.hasRegExp=!0}return this._regExpGlobal}getToken(e){return this.map.get(e.toLowerCase())}findClosingTokenText(e){for(const[t,i]of this.map)if(2===i.kind&&i.bracketIds.intersects(e))return t}get isEmpty(){return 0===this.map.size}}class l{constructor(e,t){this.denseKeyProvider=e,this.getLanguageConfiguration=t,this.languageIdToBracketTokens=new Map}didLanguageChange(e){return this.languageIdToBracketTokens.has(e)}getSingleLanguageBracketTokens(e){let t=this.languageIdToBracketTokens.get(e);return t||(t=c.createFromLanguage(this.getLanguageConfiguration(e),this.denseKeyProvider),this.languageIdToBracketTokens.set(e,t)),t}}},93844:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("g",{clipPath:"url(#a)"},s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.235 1a.75.75 0 0 1 .74.56l2.034 7.726 1.09-1.908A.75.75 0 0 1 13.75 7h1.5a.75.75 0 0 1 0 1.5h-1.065l-1.784 3.122a.75.75 0 0 1-1.376-.181l-1.71-6.496-2.083 9.466a.75.75 0 0 1-1.446.07L3.544 7.55l-.65 1.085A.75.75 0 0 1 2.25 9H.75a.75.75 0 1 1 0-1.5h1.075l1.282-2.136a.75.75 0 0 1 1.357.155l1.898 5.868 2.156-9.798A.75.75 0 0 1 9.235 1",clipRule:"evenodd"})),s.createElement("defs",null,s.createElement("clipPath",{id:"a"},s.createElement("path",{fill:"currentColor",d:"M0 0h16v16H0z"}))))},93895:(e,t,i)=>{"use strict";i.d(t,{P:()=>r});var s=i(91508),n=i(1245);function r(e,t,i){let r=s.HG(e);return-1===r&&(r=e.length),function(e,t,i){let s=0;for(let o=0;o<e.length;o++)"\t"===e.charAt(o)?s=n.A.nextIndentTabStop(s,t):s++;let r="";if(!i){const e=Math.floor(s/t);s%=t;for(let t=0;t<e;t++)r+="\t"}for(let n=0;n<s;n++)r+=" ";return r}(e.substring(0,r),t,i)+e.substring(r)}},94106:(e,t,i)=>{"use strict";i.d(t,{c:()=>c});var s=i(8597),n=i(41234),r=i(5662);class o extends r.jG{constructor(e){super(),this._onDidChange=this._register(new n.vl),this.onDidChange=this._onDidChange.event,this._listener=()=>this._handleChange(e,!0),this._mediaQueryList=null,this._handleChange(e,!1)}_handleChange(e,t){this._mediaQueryList?.removeEventListener("change",this._listener),this._mediaQueryList=e.matchMedia(`(resolution: ${e.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener("change",this._listener),t&&this._onDidChange.fire()}}class a extends r.jG{get value(){return this._value}constructor(e){super(),this._onDidChange=this._register(new n.vl),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio(e);const t=this._register(new o(e));this._register(t.onDidChange((()=>{this._value=this._getPixelRatio(e),this._onDidChange.fire(this._value)})))}_getPixelRatio(e){const t=document.createElement("canvas").getContext("2d");return(e.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)}}const c=new class{constructor(){this.mapWindowIdToPixelRatioMonitor=new Map}_getOrCreatePixelRatioMonitor(e){const t=(0,s.Q2)(e);let i=this.mapWindowIdToPixelRatioMonitor.get(t);return i||(i=(0,r.lC)(new a(e)),this.mapWindowIdToPixelRatioMonitor.set(t,i),(0,r.lC)(n.Jh.once(s.Fv)((({vscodeWindowId:e})=>{e===t&&(i?.dispose(),this.mapWindowIdToPixelRatioMonitor.delete(t))})))),i}getInstance(e){return this._getOrCreatePixelRatioMonitor(e)}}},94297:e=>{!function(){"use strict";function t(e,t){let i="";for(let s=0;s<t;s++)i+=e;return i}function i(e,i){return(t("0",i)+e.toString(16)).substr(-i)}function s(e,i){return(t("0",i)+e.toString(8)).substr(-i)}function n(e,t,i){return!(i<t-1&&(s=e[i+1],s>="0"&&s<="7"));var s}function r(e,t,i){return!(i<t-1&&(s=e[i+1],s>="0"&&s<="9"||s>="a"&&s<="f"||s>="A"&&s<="F"));var s}const o="json",a="yson",c=" ",l="\xa0",h=function(e){const t=function(t){return e[t]},i="(?:"+Object.keys(e).join("|")+")",s=RegExp(i),n=RegExp(i,"g");return function(e){return e=null===e?"":String(e),s.test(e)?e.replace(n,t):e}},d=h({"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"}),u=h({"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"});function g(e,t,i){return 0===i||i===t-1||(" "===e[i-1]||" "===e[i+1])}function p(e,t,i){return t&&(e=d(e),i||(e='<span class="escape">'+e)),e}function m(e,t,i){return t&&(e=d(e),i&&(e="</span>"+e)),e}function f(e,t){let i='"';return e&&(i='<span class="quote">'+d(i)+"</span>",t&&(i="</span>"+i)),i}function _(e,t){return t.split("").map((function(e){const t=e.charCodeAt(0);if(t>255)throw new Error("unipika: input string is not binary.");return i(t,2)})).join(e.nonBreakingIndent?l:c)}function v(e){return e.format===a?";":","}const C=new Set(["A","B","C","D","E","G","I","N","P","R","S","T","U","V","X","Z"]);e.exports={parseSetting:function(e,t,i){return e&&"undefined"!==typeof e[t]?e[t]:i},repeatChar:t,escapeJSONString:function(e,t){const s=t,n=t.length,r=e.asHTML;let o,a,c,l="",h=!1;l+=f(r,h);for(let u=0;u<n;u++)o=s.charAt(u),a=s.charCodeAt(u),'"'===o||"\\"===o?(c="\\"+o,l+=m(c,r,h),h=!1):"\n"===o||"\t"===o?e.escapeWhitespace?(c={"\n":"\\n","\t":"\\t"}[o],l+=p(c,r,h),h=!0):(l+=m(o,r,h),h=!1):"\b"===o||"\f"===o||"\r"===o?(c={"\b":"\\b","\f":"\\f","\r":"\\r"}[o],l+=p(c,r,h),h=!0):(d=a)<32&&d>=0||d>=127&&d<=159?(c="\\u"+i(a,4),e.highlightControlCharacter?(l+=p(c,r,h),h=!0):(l+=m(c,r,h),h=!1)):" "===o&&e.escapeWhitespace&&g(s,n,u)?(c=" ",l+=p(c,r,h),h=!0):(l+=m(o,r,h),h=!1);var d;return l+=f(r,h),l},escapeYSONString:function(e,t){const o=t,a=t.length,c=e.asHTML;let l,h,d,u="",_=!1;u+=f(c,_);for(let f=0;f<a;f++)l=o.charAt(f),h=o.charCodeAt(f),'"'===l||"\\"===l?(d="\\"+l,u+=m(d,c,_),_=!1):"\r"===l?(d={"\r":"\\r"}[l],u+=p(d,c,_),_=!0):"\n"===l||"\t"===l?e.escapeWhitespace?(d={"\n":"\\n","\t":"\\t"}[l],u+=p(d,c,_),_=!0):(u+=m(l,c,_),_=!1):h<=126&&h>=32?" "===l&&e.escapeWhitespace&&g(o,a,f)?(d=" ",u+=p(d,c,_),_=!0):(u+=m(l,c,_),_=!1):h<8&&h>=0&&n(o,a,f)?(d="\\"+s(h,1),u+=m(d,c,_),_=!1):r(o,a,f)?(d="\\x"+i(h,2),u+=m(d,c,_),_=!1):(d="\\"+s(h,3),u+=m(d,c,_),_=!1);return u+=f(c,_),u},escapeHTMLString:function(e,t){const i=t,s=t.length,n=e.asHTML;let r,o="";o+=f(n,!1);for(let a=0;a<s;a++)r=i.charAt(a),o+=m(r,n,!1);return o+=f(n,!1),o},escapeYSONBinaryString:function(e,t){return _(e,t)},escapeYQLBinaryString:function(e,t){return _(e,atob(t))},unescapeKeyValue:function(e){return"string"===typeof e?e.replace(/^\$\$/,"$"):e},returnAsIs:function(e,t){return t},escape:d,unescape:u,normalizeUrl:function(e,t){try{return t.normalizeUrl?t.normalizeUrl(e):encodeURI(e)}catch(i){return console.error("unipika: An error occured during normalizeUrl call",{url:e},i),""}},getAttributesEnd:function(e){return e.format===o?"}"+v(e):e.format===a?">":void 0},getAttributesStart:function(e){return e.format===o?"{":e.format===a?"<":void 0},getKeyValueSeparator:function(e){const t=e.nonBreakingIndent?l:c;return e.format===a?t+"="+t:":"+t},getExpressionTerminator:v,getIndent:function(e,i){const s=e.nonBreakingIndent?l:c;return(e.break?"\n":"")+t(s,e.indent*i)},OBJECT_START:"{",OBJECT_END:"}",ARRAY_START:"[",ARRAY_END:"]",YSON_ATTRIBUTES_START:"<",YSON_ATTRIBUTES_END:">",JSON_EXPRESSION_TERMINATOR:",",JSON_KEY_VALUE_SEPARATOR:": ",EMPTY_STRING:"",WHITESPACE:c,NON_BREAKING_WHITESPACE:l,LINE_FEED:"\n",JSON:o,YSON:a,drawFullView:function(e,t){return e>1||1===e&&!t.compact},drawCompactView:function(e,t){return 1===e&&t.compact},wrapScalar:function(e,t,i){let s=e.$type.replaceAll(".","_"),n="";var r;return(r=e.$category)&&C.has(r.toUpperCase())&&(s+=" pg_category_"+e.$category.toLowerCase()),e.$incomplete&&(s+=" incomplete"),e.$binary&&(s+=" binary"),e.$key&&(s+=" key"),e.$special_key&&(s+=" special-key"),e.$incomplete&&e.$original_value&&(n=e.$original_value),t.asHTML?"<span"+(n?' title="'+d(n)+'"':"")+' class="'+s+'">'+i+"</span>":i},wrapComplex:function(e,t,i){let s="",n="";return e.$incomplete&&(s+=" incomplete"),e.$incomplete&&e.$original_value&&(n=e.$original_value),"yql.yson"===e.$type&&e.$incomplete?t.asHTML&&s?'<span class="'+s+'"></span>':i:t.asHTML&&s?"<span"+(n?' title="'+d(n)+'"':"")+' class="'+s+'">'+i+"</span>":i},wrapOptional:function(e,t,i){if(e.$optional>0&&null===e.$value){const s=new Array(e.$optional).fill("[").join(""),n=new Array(e.$optional).fill("]").join("");return t.asHTML?'<span class="optional">'+s+"</span>"+i+'<span class="optional">'+n+"</span>":s+i+n}return i},toPaddedHex:i,toPaddedOctal:s,binaryToHex:_}}()},94318:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>i.e(9872).then(i.bind(i,99872))})},94371:(e,t,i)=>{"use strict";i.d(t,{Gn:()=>m,JJ:()=>l,vf:()=>p});var s=i(61059),n=i(87908),r=i(24329),o=i(78209),a=i(1646),c=i(46359);const l=Object.freeze({id:"editor",order:5,type:"object",title:o.kg("editorConfigurationTitle","Editor"),scope:5}),h={...l,properties:{"editor.tabSize":{type:"number",default:r.R.tabSize,minimum:1,markdownDescription:o.kg("tabSize","The number of spaces a tab is equal to. This setting is overridden based on the file contents when {0} is on.","`#editor.detectIndentation#`")},"editor.indentSize":{anyOf:[{type:"string",enum:["tabSize"]},{type:"number",minimum:1}],default:"tabSize",markdownDescription:o.kg("indentSize",'The number of spaces used for indentation or `"tabSize"` to use the value from `#editor.tabSize#`. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.')},"editor.insertSpaces":{type:"boolean",default:r.R.insertSpaces,markdownDescription:o.kg("insertSpaces","Insert spaces when pressing `Tab`. This setting is overridden based on the file contents when {0} is on.","`#editor.detectIndentation#`")},"editor.detectIndentation":{type:"boolean",default:r.R.detectIndentation,markdownDescription:o.kg("detectIndentation","Controls whether {0} and {1} will be automatically detected when a file is opened based on the file contents.","`#editor.tabSize#`","`#editor.insertSpaces#`")},"editor.trimAutoWhitespace":{type:"boolean",default:r.R.trimAutoWhitespace,description:o.kg("trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"editor.largeFileOptimizations":{type:"boolean",default:r.R.largeFileOptimizations,description:o.kg("largeFileOptimizations","Special handling for large files to disable certain memory intensive features.")},"editor.wordBasedSuggestions":{enum:["off","currentDocument","matchingDocuments","allDocuments"],default:"matchingDocuments",enumDescriptions:[o.kg("wordBasedSuggestions.off","Turn off Word Based Suggestions."),o.kg("wordBasedSuggestions.currentDocument","Only suggest words from the active document."),o.kg("wordBasedSuggestions.matchingDocuments","Suggest words from all open documents of the same language."),o.kg("wordBasedSuggestions.allDocuments","Suggest words from all open documents.")],description:o.kg("wordBasedSuggestions","Controls whether completions should be computed based on words in the document and from which documents they are computed.")},"editor.semanticHighlighting.enabled":{enum:[!0,!1,"configuredByTheme"],enumDescriptions:[o.kg("semanticHighlighting.true","Semantic highlighting enabled for all color themes."),o.kg("semanticHighlighting.false","Semantic highlighting disabled for all color themes."),o.kg("semanticHighlighting.configuredByTheme","Semantic highlighting is configured by the current color theme's `semanticHighlighting` setting.")],default:"configuredByTheme",description:o.kg("semanticHighlighting.enabled","Controls whether the semanticHighlighting is shown for the languages that support it.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:o.kg("stablePeek","Keep peek editors open even when double-clicking their content or when hitting `Escape`.")},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:o.kg("maxTokenizationLineLength","Lines above this length will not be tokenized for performance reasons")},"editor.experimental.asyncTokenization":{type:"boolean",default:!0,description:o.kg("editor.experimental.asyncTokenization","Controls whether the tokenization should happen asynchronously on a web worker."),tags:["experimental"]},"editor.experimental.asyncTokenizationLogging":{type:"boolean",default:!1,description:o.kg("editor.experimental.asyncTokenizationLogging","Controls whether async tokenization should be logged. For debugging only.")},"editor.experimental.asyncTokenizationVerification":{type:"boolean",default:!1,description:o.kg("editor.experimental.asyncTokenizationVerification","Controls whether async tokenization should be verified against legacy background tokenization. Might slow down tokenization. For debugging only."),tags:["experimental"]},"editor.experimental.treeSitterTelemetry":{type:"boolean",default:!1,markdownDescription:o.kg("editor.experimental.treeSitterTelemetry","Controls whether tree sitter parsing should be turned on and telemetry collected. Setting `editor.experimental.preferTreeSitter` for specific languages will take precedence."),tags:["experimental"]},"editor.language.brackets":{type:["array","null"],default:null,description:o.kg("schema.brackets","Defines the bracket symbols that increase or decrease the indentation."),items:{type:"array",items:[{type:"string",description:o.kg("schema.openBracket","The opening bracket character or string sequence.")},{type:"string",description:o.kg("schema.closeBracket","The closing bracket character or string sequence.")}]}},"editor.language.colorizedBracketPairs":{type:["array","null"],default:null,description:o.kg("schema.colorizedBracketPairs","Defines the bracket pairs that are colorized by their nesting level if bracket pair colorization is enabled."),items:{type:"array",items:[{type:"string",description:o.kg("schema.openBracket","The opening bracket character or string sequence.")},{type:"string",description:o.kg("schema.closeBracket","The closing bracket character or string sequence.")}]}},"diffEditor.maxComputationTime":{type:"number",default:s.q.maxComputationTime,description:o.kg("maxComputationTime","Timeout in milliseconds after which diff computation is cancelled. Use 0 for no timeout.")},"diffEditor.maxFileSize":{type:"number",default:s.q.maxFileSize,description:o.kg("maxFileSize","Maximum file size in MB for which to compute diffs. Use 0 for no limit.")},"diffEditor.renderSideBySide":{type:"boolean",default:s.q.renderSideBySide,description:o.kg("sideBySide","Controls whether the diff editor shows the diff side by side or inline.")},"diffEditor.renderSideBySideInlineBreakpoint":{type:"number",default:s.q.renderSideBySideInlineBreakpoint,description:o.kg("renderSideBySideInlineBreakpoint","If the diff editor width is smaller than this value, the inline view is used.")},"diffEditor.useInlineViewWhenSpaceIsLimited":{type:"boolean",default:s.q.useInlineViewWhenSpaceIsLimited,description:o.kg("useInlineViewWhenSpaceIsLimited","If enabled and the editor width is too small, the inline view is used.")},"diffEditor.renderMarginRevertIcon":{type:"boolean",default:s.q.renderMarginRevertIcon,description:o.kg("renderMarginRevertIcon","When enabled, the diff editor shows arrows in its glyph margin to revert changes.")},"diffEditor.renderGutterMenu":{type:"boolean",default:s.q.renderGutterMenu,description:o.kg("renderGutterMenu","When enabled, the diff editor shows a special gutter for revert and stage actions.")},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:s.q.ignoreTrimWhitespace,description:o.kg("ignoreTrimWhitespace","When enabled, the diff editor ignores changes in leading or trailing whitespace.")},"diffEditor.renderIndicators":{type:"boolean",default:s.q.renderIndicators,description:o.kg("renderIndicators","Controls whether the diff editor shows +/- indicators for added/removed changes.")},"diffEditor.codeLens":{type:"boolean",default:s.q.diffCodeLens,description:o.kg("codeLens","Controls whether the editor shows CodeLens.")},"diffEditor.wordWrap":{type:"string",enum:["off","on","inherit"],default:s.q.diffWordWrap,markdownEnumDescriptions:[o.kg("wordWrap.off","Lines will never wrap."),o.kg("wordWrap.on","Lines will wrap at the viewport width."),o.kg("wordWrap.inherit","Lines will wrap according to the {0} setting.","`#editor.wordWrap#`")]},"diffEditor.diffAlgorithm":{type:"string",enum:["legacy","advanced"],default:s.q.diffAlgorithm,markdownEnumDescriptions:[o.kg("diffAlgorithm.legacy","Uses the legacy diffing algorithm."),o.kg("diffAlgorithm.advanced","Uses the advanced diffing algorithm.")],tags:["experimental"]},"diffEditor.hideUnchangedRegions.enabled":{type:"boolean",default:s.q.hideUnchangedRegions.enabled,markdownDescription:o.kg("hideUnchangedRegions.enabled","Controls whether the diff editor shows unchanged regions.")},"diffEditor.hideUnchangedRegions.revealLineCount":{type:"integer",default:s.q.hideUnchangedRegions.revealLineCount,markdownDescription:o.kg("hideUnchangedRegions.revealLineCount","Controls how many lines are used for unchanged regions."),minimum:1},"diffEditor.hideUnchangedRegions.minimumLineCount":{type:"integer",default:s.q.hideUnchangedRegions.minimumLineCount,markdownDescription:o.kg("hideUnchangedRegions.minimumLineCount","Controls how many lines are used as a minimum for unchanged regions."),minimum:1},"diffEditor.hideUnchangedRegions.contextLineCount":{type:"integer",default:s.q.hideUnchangedRegions.contextLineCount,markdownDescription:o.kg("hideUnchangedRegions.contextLineCount","Controls how many lines are used as context when comparing unchanged regions."),minimum:1},"diffEditor.experimental.showMoves":{type:"boolean",default:s.q.experimental.showMoves,markdownDescription:o.kg("showMoves","Controls whether the diff editor should show detected code moves.")},"diffEditor.experimental.showEmptyDecorations":{type:"boolean",default:s.q.experimental.showEmptyDecorations,description:o.kg("showEmptyDecorations","Controls whether the diff editor shows empty decorations to see where characters got inserted or deleted.")},"diffEditor.experimental.useTrueInlineView":{type:"boolean",default:s.q.experimental.useTrueInlineView,description:o.kg("useTrueInlineView","If enabled and the editor uses the inline view, word changes are rendered inline.")}}};for(const f of n.BE){const e=f.schema;if("undefined"!==typeof e)if("undefined"!==typeof(d=e).type||"undefined"!==typeof d.anyOf)h.properties[`editor.${f.name}`]=e;else for(const t in e)Object.hasOwnProperty.call(e,t)&&(h.properties[t]=e[t])}var d;let u=null;function g(){return null===u&&(u=Object.create(null),Object.keys(h.properties).forEach((e=>{u[e]=!0}))),u}function p(e){return g()[`editor.${e}`]||!1}function m(e){return g()[`diffEditor.${e}`]||!1}c.O.as(a.Fd.Configuration).registerConfiguration(h)},94484:(e,t,i)=>{e.exports=i(64066)},94564:(e,t,i)=>{"use strict";i.d(t,{I:()=>h});var s=i(91508),n=i(1245),r=i(83069),o=i(36677),a=i(35817),c=i(32799);class l{constructor(e,t,i){this._cursorPositionBrand=void 0,this.lineNumber=e,this.column=t,this.leftoverVisibleColumns=i}}class h{static leftPosition(e,t){if(t.column>e.getLineMinColumn(t.lineNumber))return t.delta(void 0,-s.MV(e.getLineContent(t.lineNumber),t.column-1));if(t.lineNumber>1){const i=t.lineNumber-1;return new r.y(i,e.getLineMaxColumn(i))}return t}static leftPositionAtomicSoftTabs(e,t,i){if(t.column<=e.getLineIndentColumn(t.lineNumber)){const s=e.getLineMinColumn(t.lineNumber),n=e.getLineContent(t.lineNumber),o=a.s.atomicPosition(n,t.column-1,i,0);if(-1!==o&&o+1>=s)return new r.y(t.lineNumber,o+1)}return this.leftPosition(e,t)}static left(e,t,i){const s=e.stickyTabStops?h.leftPositionAtomicSoftTabs(t,i,e.tabSize):h.leftPosition(t,i);return new l(s.lineNumber,s.column,0)}static moveLeft(e,t,i,s,n){let r,o;if(i.hasSelection()&&!s)r=i.selection.startLineNumber,o=i.selection.startColumn;else{const s=i.position.delta(void 0,-(n-1)),a=t.normalizePosition(h.clipPositionColumn(s,t),0),c=h.left(e,t,a);r=c.lineNumber,o=c.column}return i.move(s,r,o,0)}static clipPositionColumn(e,t){return new r.y(e.lineNumber,h.clipRange(e.column,t.getLineMinColumn(e.lineNumber),t.getLineMaxColumn(e.lineNumber)))}static clipRange(e,t,i){return e<t?t:e>i?i:e}static rightPosition(e,t,i){return i<e.getLineMaxColumn(t)?i+=s.iy(e.getLineContent(t),i-1):t<e.getLineCount()&&(t+=1,i=e.getLineMinColumn(t)),new r.y(t,i)}static rightPositionAtomicSoftTabs(e,t,i,s,n){if(i<e.getLineIndentColumn(t)){const n=e.getLineContent(t),o=a.s.atomicPosition(n,i-1,s,1);if(-1!==o)return new r.y(t,o+1)}return this.rightPosition(e,t,i)}static right(e,t,i){const s=e.stickyTabStops?h.rightPositionAtomicSoftTabs(t,i.lineNumber,i.column,e.tabSize,e.indentSize):h.rightPosition(t,i.lineNumber,i.column);return new l(s.lineNumber,s.column,0)}static moveRight(e,t,i,s,n){let r,o;if(i.hasSelection()&&!s)r=i.selection.endLineNumber,o=i.selection.endColumn;else{const s=i.position.delta(void 0,n-1),a=t.normalizePosition(h.clipPositionColumn(s,t),1),c=h.right(e,t,a);r=c.lineNumber,o=c.column}return i.move(s,r,o,0)}static vertical(e,t,i,s,o,a,c,h){const d=n.A.visibleColumnFromColumn(t.getLineContent(i),s,e.tabSize)+o,u=t.getLineCount(),g=1===i&&1===s,p=i===u&&s===t.getLineMaxColumn(i),m=a<i?g:p;if((i=a)<1?(i=1,s=c?t.getLineMinColumn(i):Math.min(t.getLineMaxColumn(i),s)):i>u?(i=u,s=c?t.getLineMaxColumn(i):Math.min(t.getLineMaxColumn(i),s)):s=e.columnFromVisibleColumn(t,i,d),o=m?0:d-n.A.visibleColumnFromColumn(t.getLineContent(i),s,e.tabSize),void 0!==h){const e=new r.y(i,s),n=t.normalizePosition(e,h);o+=s-n.column,i=n.lineNumber,s=n.column}return new l(i,s,o)}static down(e,t,i,s,n,r,o){return this.vertical(e,t,i,s,n,i+r,o,4)}static moveDown(e,t,i,s,n){let o,a;i.hasSelection()&&!s?(o=i.selection.endLineNumber,a=i.selection.endColumn):(o=i.position.lineNumber,a=i.position.column);let c,l=0;do{c=h.down(e,t,o+l,a,i.leftoverVisibleColumns,n,!0);if(t.normalizePosition(new r.y(c.lineNumber,c.column),2).lineNumber>o)break}while(l++<10&&o+l<t.getLineCount());return i.move(s,c.lineNumber,c.column,c.leftoverVisibleColumns)}static translateDown(e,t,i){const s=i.selection,n=h.down(e,t,s.selectionStartLineNumber,s.selectionStartColumn,i.selectionStartLeftoverVisibleColumns,1,!1),a=h.down(e,t,s.positionLineNumber,s.positionColumn,i.leftoverVisibleColumns,1,!1);return new c.mG(new o.Q(n.lineNumber,n.column,n.lineNumber,n.column),0,n.leftoverVisibleColumns,new r.y(a.lineNumber,a.column),a.leftoverVisibleColumns)}static up(e,t,i,s,n,r,o){return this.vertical(e,t,i,s,n,i-r,o,3)}static moveUp(e,t,i,s,n){let r,o;i.hasSelection()&&!s?(r=i.selection.startLineNumber,o=i.selection.startColumn):(r=i.position.lineNumber,o=i.position.column);const a=h.up(e,t,r,o,i.leftoverVisibleColumns,n,!0);return i.move(s,a.lineNumber,a.column,a.leftoverVisibleColumns)}static translateUp(e,t,i){const s=i.selection,n=h.up(e,t,s.selectionStartLineNumber,s.selectionStartColumn,i.selectionStartLeftoverVisibleColumns,1,!1),a=h.up(e,t,s.positionLineNumber,s.positionColumn,i.leftoverVisibleColumns,1,!1);return new c.mG(new o.Q(n.lineNumber,n.column,n.lineNumber,n.column),0,n.leftoverVisibleColumns,new r.y(a.lineNumber,a.column),a.leftoverVisibleColumns)}static _isBlankLine(e,t){return 0===e.getLineFirstNonWhitespaceColumn(t)}static moveToPrevBlankLine(e,t,i,s){let n=i.position.lineNumber;for(;n>1&&this._isBlankLine(t,n);)n--;for(;n>1&&!this._isBlankLine(t,n);)n--;return i.move(s,n,t.getLineMinColumn(n),0)}static moveToNextBlankLine(e,t,i,s){const n=t.getLineCount();let r=i.position.lineNumber;for(;r<n&&this._isBlankLine(t,r);)r++;for(;r<n&&!this._isBlankLine(t,r);)r++;return i.move(s,r,t.getLineMinColumn(r),0)}static moveToBeginningOfLine(e,t,i,s){const n=i.position.lineNumber,r=t.getLineMinColumn(n),o=t.getLineFirstNonWhitespaceColumn(n)||r;let a;return a=i.position.column===o?r:o,i.move(s,n,a,0)}static moveToEndOfLine(e,t,i,s,n){const r=i.position.lineNumber,o=t.getLineMaxColumn(r);return i.move(s,r,o,n?1073741824-o:0)}static moveToBeginningOfBuffer(e,t,i,s){return i.move(s,1,1,0)}static moveToEndOfBuffer(e,t,i,s){const n=t.getLineCount(),r=t.getLineMaxColumn(n);return i.move(s,n,r,0)}}},94630:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});var s,n,r=i(59284);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},o.apply(null,arguments)}const a=function(e){return r.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),s||(s=r.createElement("g",{clipPath:"url(#font-case_svg__a)"},r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.75 2.25c-.618 0-1.169.39-1.373.974L.042 12.752a.75.75 0 001.416.496L2.595 10h4.31l1.137 3.248a.75.75 0 001.416-.496L6.123 3.224A1.455 1.455 0 004.75 2.25M6.38 8.5L4.75 3.842 3.12 8.5zm5.135 2.996c0-.223.28-.746 1.152-.746H14.4c-.294 1.024-1.178 1.5-1.9 1.5-.45 0-.677-.134-.792-.249a.7.7 0 01-.193-.505m2.985.754V13a.75.75 0 101.5 0v-3c0-1.117-.28-2.065-.873-2.744-.606-.692-1.453-1.006-2.377-1.006-.53 0-.946.07-1.306.195-.338.117-.6.274-.804.396l-.025.015a.75.75 0 10.77 1.288c.22-.132.365-.217.55-.281.178-.062.423-.113.815-.113.576 0 .978.186 1.248.494.191.218.354.543.44 1.006h-1.771c-1.462 0-2.658.977-2.652 2.254.003.542.191 1.116.632 1.557.447.448 1.085.689 1.853.689 1 0 1.75-.75 1.75-1.5z",clipRule:"evenodd"}))),n||(n=r.createElement("defs",null,r.createElement("clipPath",{id:"font-case_svg__a"},r.createElement("path",{fill:"currentColor",d:"M0 0h16v16H0z"})))))}},94650:(e,t,i)=>{"use strict";i.d(t,{W:()=>o,c:()=>r});var s=i(36677),n=i(19131);class r{static fromModelContentChanges(e){return e.map((e=>{const t=s.Q.lift(e.range);return new r((0,n.VL)(t.getStartPosition()),(0,n.VL)(t.getEndPosition()),(0,n.rR)(e.text))})).reverse()}constructor(e,t,i){this.startOffset=e,this.endOffset=t,this.newLength=i}toString(){return`[${(0,n.l4)(this.startOffset)}...${(0,n.l4)(this.endOffset)}) -> ${(0,n.l4)(this.newLength)}`}}class o{constructor(e){this.nextEditIdx=0,this.deltaOldToNewLineCount=0,this.deltaOldToNewColumnCount=0,this.deltaLineIdxInOld=-1,this.edits=e.map((e=>a.from(e)))}getOffsetBeforeChange(e){return this.adjustNextEdit(e),this.translateCurToOld(e)}getDistanceToNextChange(e){this.adjustNextEdit(e);const t=this.edits[this.nextEditIdx],i=t?this.translateOldToCur(t.offsetObj):null;return null===i?null:(0,n.MS)(e,i)}translateOldToCur(e){return e.lineCount===this.deltaLineIdxInOld?(0,n.qe)(e.lineCount+this.deltaOldToNewLineCount,e.columnCount+this.deltaOldToNewColumnCount):(0,n.qe)(e.lineCount+this.deltaOldToNewLineCount,e.columnCount)}translateCurToOld(e){const t=(0,n.l4)(e);return t.lineCount-this.deltaOldToNewLineCount===this.deltaLineIdxInOld?(0,n.qe)(t.lineCount-this.deltaOldToNewLineCount,t.columnCount-this.deltaOldToNewColumnCount):(0,n.qe)(t.lineCount-this.deltaOldToNewLineCount,t.columnCount)}adjustNextEdit(e){for(;this.nextEditIdx<this.edits.length;){const t=this.edits[this.nextEditIdx],i=this.translateOldToCur(t.endOffsetAfterObj);if(!(0,n.vr)(i,e))break;{this.nextEditIdx++;const e=(0,n.l4)(i),s=(0,n.l4)(this.translateOldToCur(t.endOffsetBeforeObj)),r=e.lineCount-s.lineCount;this.deltaOldToNewLineCount+=r;const o=this.deltaLineIdxInOld===t.endOffsetBeforeObj.lineCount?this.deltaOldToNewColumnCount:0,a=e.columnCount-s.columnCount;this.deltaOldToNewColumnCount=o+a,this.deltaLineIdxInOld=t.endOffsetBeforeObj.lineCount}}}}class a{static from(e){return new a(e.startOffset,e.endOffset,e.newLength)}constructor(e,t,i){this.endOffsetBeforeObj=(0,n.l4)(t),this.endOffsetAfterObj=(0,n.l4)((0,n.QB)(e,i)),this.offsetObj=(0,n.l4)(e)}}},94746:(e,t,i)=>{"use strict";i.d(t,{Hg:()=>p});var s,n=i(14718),r=i(63591),o=i(41234),a=i(78381),c=i(86571),l=i(87723),h=i(10920),d=i(90651),u=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},g=function(e,t){return function(i,s){t(i,s,e)}};const p=(0,r.u1)("diffProviderFactoryService");let m=class{constructor(e){this.instantiationService=e}createDiffProvider(e){return this.instantiationService.createInstance(f,e)}};m=u([g(0,r._Y)],m),(0,n.v)(p,m,1);let f=class{static{s=this}static{this.diffCache=new Map}constructor(e,t,i){this.editorWorkerService=t,this.telemetryService=i,this.onDidChangeEventEmitter=new o.vl,this.onDidChange=this.onDidChangeEventEmitter.event,this.diffAlgorithm="advanced",this.diffAlgorithmOnDidChangeSubscription=void 0,this.setOptions(e)}dispose(){this.diffAlgorithmOnDidChangeSubscription?.dispose()}async computeDiff(e,t,i,n){if("string"!==typeof this.diffAlgorithm)return this.diffAlgorithm.computeDiff(e,t,i,n);if(e.isDisposed()||t.isDisposed())return{changes:[],identical:!0,quitEarly:!1,moves:[]};if(1===e.getLineCount()&&1===e.getLineMaxColumn(1))return 1===t.getLineCount()&&1===t.getLineMaxColumn(1)?{changes:[],identical:!0,quitEarly:!1,moves:[]}:{changes:[new l.wm(new c.M(1,2),new c.M(1,t.getLineCount()+1),[new l.q6(e.getFullModelRange(),t.getFullModelRange())])],identical:!1,quitEarly:!1,moves:[]};const r=JSON.stringify([e.uri.toString(),t.uri.toString()]),o=JSON.stringify([e.id,t.id,e.getAlternativeVersionId(),t.getAlternativeVersionId(),JSON.stringify(i)]),h=s.diffCache.get(r);if(h&&h.context===o)return h.result;const d=a.W.create(),u=await this.editorWorkerService.computeDiff(e.uri,t.uri,i,this.diffAlgorithm),g=d.elapsed();if(this.telemetryService.publicLog2("diffEditor.computeDiff",{timeMs:g,timedOut:u?.quitEarly??!0,detectedMoves:i.computeMoves?u?.moves.length??0:-1}),n.isCancellationRequested)return{changes:[],identical:!1,quitEarly:!0,moves:[]};if(!u)throw new Error("no diff result available");return s.diffCache.size>10&&s.diffCache.delete(s.diffCache.keys().next().value),s.diffCache.set(r,{result:u,context:o}),u}setOptions(e){let t=!1;e.diffAlgorithm&&this.diffAlgorithm!==e.diffAlgorithm&&(this.diffAlgorithmOnDidChangeSubscription?.dispose(),this.diffAlgorithmOnDidChangeSubscription=void 0,this.diffAlgorithm=e.diffAlgorithm,"string"!==typeof e.diffAlgorithm&&(this.diffAlgorithmOnDidChangeSubscription=e.diffAlgorithm.onDidChange((()=>this.onDidChangeEventEmitter.fire()))),t=!0),t&&this.onDidChangeEventEmitter.fire()}};f=s=u([g(1,h.IEditorWorkerService),g(2,d.k)],f)},94803:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>i.e(5382).then(i.bind(i,35382))})},94908:(e,t,i)=>{"use strict";var s=i(60413),n=i(8597),r=i(98067),o=i(68792),a=i(31450),c=i(80301),l=i(60002),h=i(55433),d=i(78209),u=i(27195),g=i(54770),p=i(32848);const m="9_cutcopypaste",f=r.ib||document.queryCommandSupported("cut"),_=r.ib||document.queryCommandSupported("copy"),v="undefined"!==typeof navigator.clipboard&&!s.gm||document.queryCommandSupported("paste");function C(e){return e.register(),e}const E=f?C(new a.fE({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:r.ib?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:u.D8.MenubarEditMenu,group:"2_ccp",title:d.kg({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:u.D8.EditorContext,group:m,title:d.kg("actions.clipboard.cutLabel","Cut"),when:l.R.writable,order:1},{menuId:u.D8.CommandPalette,group:"",title:d.kg("actions.clipboard.cutLabel","Cut"),order:1},{menuId:u.D8.SimpleEditorContext,group:m,title:d.kg("actions.clipboard.cutLabel","Cut"),when:l.R.writable,order:1}]})):void 0,b=_?C(new a.fE({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:r.ib?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:u.D8.MenubarEditMenu,group:"2_ccp",title:d.kg({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:u.D8.EditorContext,group:m,title:d.kg("actions.clipboard.copyLabel","Copy"),order:2},{menuId:u.D8.CommandPalette,group:"",title:d.kg("actions.clipboard.copyLabel","Copy"),order:1},{menuId:u.D8.SimpleEditorContext,group:m,title:d.kg("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;u.ZG.appendMenuItem(u.D8.MenubarEditMenu,{submenu:u.D8.MenubarCopy,title:d.aS("copy as","Copy As"),group:"2_ccp",order:3}),u.ZG.appendMenuItem(u.D8.EditorContext,{submenu:u.D8.EditorContextCopy,title:d.aS("copy as","Copy As"),group:m,order:3}),u.ZG.appendMenuItem(u.D8.EditorContext,{submenu:u.D8.EditorContextShare,title:d.aS("share","Share"),group:"11_share",order:-1,when:p.M$.and(p.M$.notEquals("resourceScheme","output"),l.R.editorTextFocus)}),u.ZG.appendMenuItem(u.D8.ExplorerContext,{submenu:u.D8.ExplorerContextShare,title:d.aS("share","Share"),group:"11_share",order:-1});const S=v?C(new a.fE({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:r.ib?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:u.D8.MenubarEditMenu,group:"2_ccp",title:d.kg({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:u.D8.EditorContext,group:m,title:d.kg("actions.clipboard.pasteLabel","Paste"),when:l.R.writable,order:4},{menuId:u.D8.CommandPalette,group:"",title:d.kg("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:u.D8.SimpleEditorContext,group:m,title:d.kg("actions.clipboard.pasteLabel","Paste"),when:l.R.writable,order:4}]})):void 0;class y extends a.ks{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:d.kg("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:l.R.textInputFocus,primary:0,weight:100}})}run(e,t){if(!t.hasModel())return;!t.getOption(37)&&t.getSelection().isEmpty()||(o.Eq.forceCopyWithSyntaxHighlighting=!0,t.focus(),t.getContainerDomNode().ownerDocument.execCommand("copy"),o.Eq.forceCopyWithSyntaxHighlighting=!1)}}function w(e,t){e&&(e.addImplementation(1e4,"code-editor",((e,i)=>{const s=e.get(c.T).getFocusedCodeEditor();if(s&&s.hasTextFocus()){const e=s.getOption(37),i=s.getSelection();return i&&i.isEmpty()&&!e||s.getContainerDomNode().ownerDocument.execCommand(t),!0}return!1})),e.addImplementation(0,"generic-dom",((e,i)=>((0,n.a)().execCommand(t),!0))))}w(E,"cut"),w(b,"copy"),S&&(S.addImplementation(1e4,"code-editor",((e,t)=>{const i=e.get(c.T),s=e.get(g.h),n=i.getFocusedCodeEditor();if(n&&n.hasTextFocus()){return n.getContainerDomNode().ownerDocument.execCommand("paste")?h.Rj.get(n)?.finishedPaste()??Promise.resolve():!r.HZ||(async()=>{const e=await s.readText();if(""!==e){const t=o.bs.INSTANCE.get(e);let i=!1,s=null,r=null;t&&(i=n.getOption(37)&&!!t.isFromEmptySelection,s="undefined"!==typeof t.multicursorText?t.multicursorText:null,r=t.mode),n.trigger("keyboard","paste",{text:e,pasteOnNewLine:i,multicursorText:s,mode:r})}})()}return!1})),S.addImplementation(0,"generic-dom",((e,t)=>((0,n.a)().execCommand("paste"),!0)))),_&&(0,a.Fl)(y)},94958:(e,t,i)=>{"use strict";let s;function n(e){s=e}function r(){return s}i.d(t,{Br:()=>n,jm:()=>o,tZ:()=>r});class o{constructor(){this.indentation=0,this.changedObservablesSets=new WeakMap}textToConsoleArgs(e){return function(e){const t=new Array,i=[];let s="";function n(e){if("length"in e)for(const t of e)t&&n(t);else"text"in e?(s+=`%c${e.text}`,t.push(e.style),e.data&&i.push(...e.data)):"data"in e&&i.push(...e.data)}n(e);const r=[s,...t];return r.push(...i),r}([a(d("| ",this.indentation)),e])}formatInfo(e){return e.hadValue?e.didChange?[a(" "),l(h(e.oldValue,70),{color:"red",strikeThrough:!0}),a(" "),l(h(e.newValue,60),{color:"green"})]:[a(" (unchanged)")]:[a(" "),l(h(e.newValue,60),{color:"green"}),a(" (initial)")]}handleObservableChanged(e,t){console.log(...this.textToConsoleArgs([c("observable value changed"),l(e.debugName,{color:"BlueViolet"}),...this.formatInfo(t)]))}formatChanges(e){if(0!==e.size)return l(" (changed deps: "+[...e].map((e=>e.debugName)).join(", ")+")",{color:"gray"})}handleDerivedCreated(e){const t=e.handleChange;this.changedObservablesSets.set(e,new Set),e.handleChange=(i,s)=>(this.changedObservablesSets.get(e).add(i),t.apply(e,[i,s]))}handleDerivedRecomputed(e,t){const i=this.changedObservablesSets.get(e);console.log(...this.textToConsoleArgs([c("derived recomputed"),l(e.debugName,{color:"BlueViolet"}),...this.formatInfo(t),this.formatChanges(i),{data:[{fn:e._debugNameData.referenceFn??e._computeFn}]}])),i.clear()}handleFromEventObservableTriggered(e,t){console.log(...this.textToConsoleArgs([c("observable from event triggered"),l(e.debugName,{color:"BlueViolet"}),...this.formatInfo(t),{data:[{fn:e._getValue}]}]))}handleAutorunCreated(e){const t=e.handleChange;this.changedObservablesSets.set(e,new Set),e.handleChange=(i,s)=>(this.changedObservablesSets.get(e).add(i),t.apply(e,[i,s]))}handleAutorunTriggered(e){const t=this.changedObservablesSets.get(e);console.log(...this.textToConsoleArgs([c("autorun"),l(e.debugName,{color:"BlueViolet"}),this.formatChanges(t),{data:[{fn:e._debugNameData.referenceFn??e._runFn}]}])),t.clear(),this.indentation++}handleAutorunFinished(e){this.indentation--}handleBeginTransaction(e){let t=e.getDebugName();void 0===t&&(t=""),console.log(...this.textToConsoleArgs([c("transaction"),l(t,{color:"BlueViolet"}),{data:[{fn:e._fn}]}])),this.indentation++}handleEndTransaction(){this.indentation--}}function a(e){return l(e,{color:"black"})}function c(e){return l(function(e,t){for(;e.length<t;)e+=" ";return e}(`${e}: `,10),{color:"black",bold:!0})}function l(e,t={color:"black"}){const i={color:t.color};return t.strikeThrough&&(i["text-decoration"]="line-through"),t.bold&&(i["font-weight"]="bold"),{text:e,style:(s=i,Object.entries(s).reduce(((e,[t,i])=>`${e}${t}:${i};`),""))};var s}function h(e,t){switch(typeof e){case"number":default:return""+e;case"string":return e.length+2<=t?`"${e}"`:`"${e.substr(0,t-7)}"+...`;case"boolean":return e?"true":"false";case"undefined":return"undefined";case"object":return null===e?"null":Array.isArray(e)?function(e,t){let i="[ ",s=!0;for(const n of e){if(s||(i+=", "),i.length-5>t){i+="...";break}s=!1,i+=`${h(n,t-i.length)}`}return i+=" ]",i}(e,t):function(e,t){let i="{ ",s=!0;for(const[n,r]of Object.entries(e)){if(s||(i+=", "),i.length-5>t){i+="...";break}s=!1,i+=`${n}: ${h(r,t-i.length)}`}return i+=" }",i}(e,t);case"symbol":return e.toString();case"function":return`[[Function${e.name?" "+e.name:""}]]`}}function d(e,t){let i="";for(let s=1;s<=t;s++)i+=e;return i}},95200:(e,t,i)=>{"use strict";var s=i(5662),n=i(31450);class r extends s.jG{static{this.ID="editor.contrib.longLinesHelper"}constructor(e){super(),this._editor=e,this._register(this._editor.onMouseDown((e=>{const t=this._editor.getOption(118);t>=0&&6===e.target.type&&e.target.position.column>=t&&this._editor.updateOptions({stopRenderingLineAfter:-1})})))}}(0,n.HW)(r.ID,r,2)},96032:(e,t,i)=>{"use strict";i.d(t,{n:()=>s,r:()=>n});class s{constructor(e){this._prefix=e,this._lastId=0}nextId(){return this._prefix+ ++this._lastId}}const n=new s("id#")},96282:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});const s=new class{constructor(){this._implementations=[]}register(e){return this._implementations.push(e),{dispose:()=>{const t=this._implementations.indexOf(e);-1!==t&&this._implementations.splice(t,1)}}}getImplementations(){return this._implementations}}},96299:(e,t,i)=>{"use strict";i.d(t,{Y:()=>k});var s,n=i(90766),r=i(18447),o=i(64383),a=i(41234),c=i(5662),l=i(91508),h=i(75326),d=i(10920),u=i(14055),g=i(54770),p=i(84001),m=i(32848),f=i(18801),_=i(90651),v=i(51173),C=i(48116),E=i(56942),b=i(26690),S=i(631),y=i(62051),w=i(30936),R=i(97035),L=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},T=function(e,t){return function(i,s){t(i,s,e)}};class x{static shouldAutoTrigger(e){if(!e.hasModel())return!1;const t=e.getModel(),i=e.getPosition();t.tokenization.tokenizeIfCheap(i.lineNumber);const s=t.getWordAtPosition(i);return!!s&&((s.endColumn===i.column||s.startColumn+1===i.column)&&!!isNaN(Number(s.word)))}constructor(e,t,i){this.leadingLineContent=e.getLineContent(t.lineNumber).substr(0,t.column-1),this.leadingWord=e.getWordUntilPosition(t),this.lineNumber=t.lineNumber,this.column=t.column,this.triggerOptions=i}}let k=s=class{constructor(e,t,i,s,r,o,l,d,u){this._editor=e,this._editorWorkerService=t,this._clipboardService=i,this._telemetryService=s,this._logService=r,this._contextKeyService=o,this._configurationService=l,this._languageFeaturesService=d,this._envService=u,this._toDispose=new c.Cm,this._triggerCharacterListener=new c.Cm,this._triggerQuickSuggest=new n.pc,this._triggerState=void 0,this._completionDisposables=new c.Cm,this._onDidCancel=new a.vl,this._onDidTrigger=new a.vl,this._onDidSuggest=new a.vl,this.onDidCancel=this._onDidCancel.event,this.onDidTrigger=this._onDidTrigger.event,this.onDidSuggest=this._onDidSuggest.event,this._telemetryGate=0,this._currentSelection=this._editor.getSelection()||new h.L(1,1,1,1),this._toDispose.add(this._editor.onDidChangeModel((()=>{this._updateTriggerCharacters(),this.cancel()}))),this._toDispose.add(this._editor.onDidChangeModelLanguage((()=>{this._updateTriggerCharacters(),this.cancel()}))),this._toDispose.add(this._editor.onDidChangeConfiguration((()=>{this._updateTriggerCharacters()}))),this._toDispose.add(this._languageFeaturesService.completionProvider.onDidChange((()=>{this._updateTriggerCharacters(),this._updateActiveSuggestSession()})));let g=!1;this._toDispose.add(this._editor.onDidCompositionStart((()=>{g=!0}))),this._toDispose.add(this._editor.onDidCompositionEnd((()=>{g=!1,this._onCompositionEnd()}))),this._toDispose.add(this._editor.onDidChangeCursorSelection((e=>{g||this._onCursorChange(e)}))),this._toDispose.add(this._editor.onDidChangeModelContent((()=>{g||void 0===this._triggerState||this._refilterCompletionItems()}))),this._updateTriggerCharacters()}dispose(){(0,c.AS)(this._triggerCharacterListener),(0,c.AS)([this._onDidCancel,this._onDidSuggest,this._onDidTrigger,this._triggerQuickSuggest]),this._toDispose.dispose(),this._completionDisposables.dispose(),this.cancel()}_updateTriggerCharacters(){if(this._triggerCharacterListener.clear(),this._editor.getOption(92)||!this._editor.hasModel()||!this._editor.getOption(122))return;const e=new Map;for(const i of this._languageFeaturesService.completionProvider.all(this._editor.getModel()))for(const t of i.triggerCharacters||[]){let s=e.get(t);if(!s){s=new Set;const i=(0,C.f3)();i&&s.add(i),e.set(t,s)}s.add(i)}const t=t=>{if(!function(e,t){if(!Boolean(t.getContextKeyValue("inlineSuggestionVisible")))return!0;const i=t.getContextKeyValue(y.p.suppressSuggestions.key);return void 0!==i?!i:!e.getOption(62).suppressSuggestions}(this._editor,this._contextKeyService,this._configurationService))return;if(x.shouldAutoTrigger(this._editor))return;if(!t){const e=this._editor.getPosition();t=this._editor.getModel().getLineContent(e.lineNumber).substr(0,e.column-1)}let i="";(0,l.LJ)(t.charCodeAt(t.length-1))?(0,l.pc)(t.charCodeAt(t.length-2))&&(i=t.substr(t.length-2)):i=t.charAt(t.length-1);const s=e.get(i);if(s){const e=new Map;if(this._completionModel)for(const[t,i]of this._completionModel.getItemsByProvider())s.has(t)||e.set(t,i);this.trigger({auto:!0,triggerKind:1,triggerCharacter:i,retrigger:Boolean(this._completionModel),clipboardText:this._completionModel?.clipboardText,completionOptions:{providerFilter:s,providerItemsToReuse:e}})}};this._triggerCharacterListener.add(this._editor.onDidType(t)),this._triggerCharacterListener.add(this._editor.onDidCompositionEnd((()=>t())))}get state(){return this._triggerState?this._triggerState.auto?2:1:0}cancel(e=!1){void 0!==this._triggerState&&(this._triggerQuickSuggest.cancel(),this._requestToken?.cancel(),this._requestToken=void 0,this._triggerState=void 0,this._completionModel=void 0,this._context=void 0,this._onDidCancel.fire({retrigger:e}))}clear(){this._completionDisposables.clear()}_updateActiveSuggestSession(){void 0!==this._triggerState&&(this._editor.hasModel()&&this._languageFeaturesService.completionProvider.has(this._editor.getModel())?this.trigger({auto:this._triggerState.auto,retrigger:!0}):this.cancel())}_onCursorChange(e){if(!this._editor.hasModel())return;const t=this._currentSelection;this._currentSelection=this._editor.getSelection(),!e.selection.isEmpty()||0!==e.reason&&3!==e.reason||"keyboard"!==e.source&&"deleteLeft"!==e.source?this.cancel():void 0===this._triggerState&&0===e.reason?(t.containsRange(this._currentSelection)||t.getEndPosition().isBeforeOrEqual(this._currentSelection.getPosition()))&&this._doTriggerQuickSuggest():void 0!==this._triggerState&&3===e.reason&&this._refilterCompletionItems()}_onCompositionEnd(){void 0===this._triggerState?this._doTriggerQuickSuggest():this._refilterCompletionItems()}_doTriggerQuickSuggest(){C.r3.isAllOff(this._editor.getOption(90))||this._editor.getOption(119).snippetsPreventQuickSuggestions&&w.O.get(this._editor)?.isInSnippet()||(this.cancel(),this._triggerQuickSuggest.cancelAndSet((()=>{if(void 0!==this._triggerState)return;if(!x.shouldAutoTrigger(this._editor))return;if(!this._editor.hasModel()||!this._editor.hasWidgetFocus())return;const e=this._editor.getModel(),t=this._editor.getPosition(),i=this._editor.getOption(90);if(!C.r3.isAllOff(i)){if(!C.r3.isAllOn(i)){e.tokenization.tokenizeIfCheap(t.lineNumber);const s=e.tokenization.getLineTokens(t.lineNumber),n=s.getStandardTokenType(s.findTokenIndexAtOffset(Math.max(t.column-1-1,0)));if("on"!==C.r3.valueFor(i,n))return}(function(e,t){if(!Boolean(t.getContextKeyValue(y.p.inlineSuggestionVisible.key)))return!0;const i=t.getContextKeyValue(y.p.suppressSuggestions.key);return void 0!==i?!i:!e.getOption(62).suppressSuggestions})(this._editor,this._contextKeyService,this._configurationService)&&this._languageFeaturesService.completionProvider.has(e)&&this.trigger({auto:!0})}}),this._editor.getOption(91)))}_refilterCompletionItems(){(0,S.j)(this._editor.hasModel()),(0,S.j)(void 0!==this._triggerState);const e=this._editor.getModel(),t=this._editor.getPosition(),i=new x(e,t,{...this._triggerState,refilter:!0});this._onNewContext(i)}trigger(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=new x(t,this._editor.getPosition(),e);this.cancel(e.retrigger),this._triggerState=e,this._onDidTrigger.fire({auto:e.auto,shy:e.shy??!1,position:this._editor.getPosition()}),this._context=i;let n={triggerKind:e.triggerKind??0};e.triggerCharacter&&(n={triggerKind:1,triggerCharacter:e.triggerCharacter}),this._requestToken=new r.Qi;let a=1;switch(this._editor.getOption(113)){case"top":a=0;break;case"bottom":a=2}const{itemKind:c,showDeprecated:l}=s.createSuggestFilter(this._editor),h=new C.l1(a,e.completionOptions?.kindFilter??c,e.completionOptions?.providerFilter,e.completionOptions?.providerItemsToReuse,l),d=u.S.create(this._editorWorkerService,this._editor),g=(0,C.aR)(this._languageFeaturesService.completionProvider,t,this._editor.getPosition(),h,n,this._requestToken.token);Promise.all([g,d]).then((async([t,i])=>{if(this._requestToken?.dispose(),!this._editor.hasModel())return;let s=e?.clipboardText;if(!s&&t.needsClipboard&&(s=await this._clipboardService.readText()),void 0===this._triggerState)return;const n=this._editor.getModel(),r=new x(n,this._editor.getPosition(),e),o={...b.Nd.default,firstMatchCanBeWeak:!this._editor.getOption(119).matchOnWordStartOnly};if(this._completionModel=new v.C(t.items,this._context.column,{leadingLineContent:r.leadingLineContent,characterCountDelta:r.column-this._context.column},i,this._editor.getOption(119),this._editor.getOption(113),o,s),this._completionDisposables.add(t.disposable),this._onNewContext(r),this._reportDurationsTelemetry(t.durations),!this._envService.isBuilt||this._envService.isExtensionDevelopment)for(const e of t.items)e.isInvalid&&this._logService.warn(`[suggest] did IGNORE invalid completion item from ${e.provider._debugDisplayName}`,e.completion)})).catch(o.dz)}_reportDurationsTelemetry(e){this._telemetryGate++%230===0&&setTimeout((()=>{this._telemetryService.publicLog2("suggest.durations.json",{data:JSON.stringify(e)}),this._logService.debug("suggest.durations.json",e)}))}static createSuggestFilter(e){const t=new Set;"none"===e.getOption(113)&&t.add(27);const i=e.getOption(119);return i.showMethods||t.add(0),i.showFunctions||t.add(1),i.showConstructors||t.add(2),i.showFields||t.add(3),i.showVariables||t.add(4),i.showClasses||t.add(5),i.showStructs||t.add(6),i.showInterfaces||t.add(7),i.showModules||t.add(8),i.showProperties||t.add(9),i.showEvents||t.add(10),i.showOperators||t.add(11),i.showUnits||t.add(12),i.showValues||t.add(13),i.showConstants||t.add(14),i.showEnums||t.add(15),i.showEnumMembers||t.add(16),i.showKeywords||t.add(17),i.showWords||t.add(18),i.showColors||t.add(19),i.showFiles||t.add(20),i.showReferences||t.add(21),i.showColors||t.add(22),i.showFolders||t.add(23),i.showTypeParameters||t.add(24),i.showSnippets||t.add(27),i.showUsers||t.add(25),i.showIssues||t.add(26),{itemKind:t,showDeprecated:i.showDeprecated}}_onNewContext(e){if(this._context)if(e.lineNumber===this._context.lineNumber)if((0,l.UU)(e.leadingLineContent)===(0,l.UU)(this._context.leadingLineContent)){if(e.column<this._context.column)e.leadingWord.word?this.trigger({auto:this._context.triggerOptions.auto,retrigger:!0}):this.cancel();else if(this._completionModel)if(0!==e.leadingWord.word.length&&e.leadingWord.startColumn>this._context.leadingWord.startColumn){if(x.shouldAutoTrigger(this._editor)&&this._context){const e=this._completionModel.getItemsByProvider();this.trigger({auto:this._context.triggerOptions.auto,retrigger:!0,clipboardText:this._completionModel.clipboardText,completionOptions:{providerItemsToReuse:e}})}}else if(e.column>this._context.column&&this._completionModel.getIncompleteProvider().size>0&&0!==e.leadingWord.word.length){const e=new Map,t=new Set;for(const[i,s]of this._completionModel.getItemsByProvider())s.length>0&&s[0].container.incomplete?t.add(i):e.set(i,s);this.trigger({auto:this._context.triggerOptions.auto,triggerKind:2,retrigger:!0,clipboardText:this._completionModel.clipboardText,completionOptions:{providerFilter:t,providerItemsToReuse:e}})}else{const t=this._completionModel.lineContext;let i=!1;if(this._completionModel.lineContext={leadingLineContent:e.leadingLineContent,characterCountDelta:e.column-this._context.column},0===this._completionModel.items.length){const s=x.shouldAutoTrigger(this._editor);if(!this._context)return void this.cancel();if(s&&this._context.leadingWord.endColumn<e.leadingWord.startColumn)return void this.trigger({auto:this._context.triggerOptions.auto,retrigger:!0});if(this._context.triggerOptions.auto)return void this.cancel();if(this._completionModel.lineContext=t,i=this._completionModel.items.length>0,i&&0===e.leadingWord.word.length)return void this.cancel()}this._onDidSuggest.fire({completionModel:this._completionModel,triggerOptions:e.triggerOptions,isFrozen:i})}}else this.cancel();else this.cancel()}};k=s=L([T(1,d.IEditorWorkerService),T(2,g.h),T(3,_.k),T(4,f.rr),T(5,m.fN),T(6,p.pG),T(7,E.ILanguageFeaturesService),T(8,R.k)],k)},96409:(e,t,i)=>{e.exports=function(){const e=i(94297);function t(t,i){return t.$binary?i.binaryAsHex?e.escapeYQLBinaryString(i,t.$value):atob(t.$value):i.escapeYQLStrings?e.escapeJSONString(i,t.$value):e.escapeHTMLString(i,t.$value)}return t.isScalar=!0,t}},96589:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 6.5a2 2 0 1 0 0-4 2 2 0 0 0 0 4M8 8a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7m1 1.225a.71.71 0 0 0-.679-.72A11 11 0 0 0 8 8.5c-3.85 0-7 2-7 4A2.5 2.5 0 0 0 3.5 15h2.25a.75.75 0 0 0 0-1.5H3.5a1 1 0 0 1-1-1c0-.204.22-.809 1.32-1.459C4.838 10.44 6.32 10 8 10q.088 0 .175.002c.442.008.825-.335.825-.777m3.59.307c.434.102.776.444.879.878l-2.823 2.822a1.5 1.5 0 0 1-.848.425l-.53.075.075-.53a1.5 1.5 0 0 1 .425-.848zm-.883 4.76 3.068-3.067a.77.77 0 0 0 .225-.543A2.683 2.683 0 0 0 12.318 8a.77.77 0 0 0-.543.224l-3.068 3.069a3 3 0 0 0-.848 1.697l-.17 1.19a1 1 0 0 0 1.13 1.131l1.191-.17a3 3 0 0 0 1.697-.848",clipRule:"evenodd"}))},96716:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>i.e(7946).then(i.bind(i,57946))})},96758:(e,t,i)=>{"use strict";i.d(t,{E:()=>L});var s,n=i(8597),r=i(25154),o=i(10350),a=i(41234),c=i(5662),l=i(25689),h=i(16223),d=i(87289),u=i(78049),g=i(55130),p=i(78209),m=i(98031),f=i(61394),_=i(36677),v=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},C=function(e,t){return function(i,s){t(i,s,e)}};const E=(0,f.pU)("gutter-lightbulb",o.W.lightBulb,p.kg("gutterLightbulbWidget","Icon which spawns code actions menu from the gutter when there is no space in the editor.")),b=(0,f.pU)("gutter-lightbulb-auto-fix",o.W.lightbulbAutofix,p.kg("gutterLightbulbAutoFixWidget","Icon which spawns code actions menu from the gutter when there is no space in the editor and a quick fix is available.")),S=(0,f.pU)("gutter-lightbulb-sparkle",o.W.lightbulbSparkle,p.kg("gutterLightbulbAIFixWidget","Icon which spawns code actions menu from the gutter when there is no space in the editor and an AI fix is available.")),y=(0,f.pU)("gutter-lightbulb-aifix-auto-fix",o.W.lightbulbSparkleAutofix,p.kg("gutterLightbulbAIFixAutoFixWidget","Icon which spawns code actions menu from the gutter when there is no space in the editor and an AI fix and a quick fix is available.")),w=(0,f.pU)("gutter-lightbulb-sparkle-filled",o.W.sparkleFilled,p.kg("gutterLightbulbSparkleFilledWidget","Icon which spawns code actions menu from the gutter when there is no space in the editor and an AI fix and a quick fix is available."));var R;!function(e){e.Hidden={type:0};e.Showing=class{constructor(e,t,i,s){this.actions=e,this.trigger=t,this.editorPosition=i,this.widgetPosition=s,this.type=1}}}(R||(R={}));let L=class extends c.jG{static{s=this}static{this.GUTTER_DECORATION=d.kI.register({description:"codicon-gutter-lightbulb-decoration",glyphMarginClassName:l.L.asClassName(o.W.lightBulb),glyphMargin:{position:h.ZS.Left},stickiness:1})}static{this.ID="editor.contrib.lightbulbWidget"}static{this._posPref=[0]}constructor(e,t){super(),this._editor=e,this._keybindingService=t,this._onClick=this._register(new a.vl),this.onClick=this._onClick.event,this._state=R.Hidden,this._gutterState=R.Hidden,this._iconClasses=[],this.lightbulbClasses=["codicon-"+E.id,"codicon-"+y.id,"codicon-"+b.id,"codicon-"+S.id,"codicon-"+w.id],this.gutterDecoration=s.GUTTER_DECORATION,this._domNode=n.$("div.lightBulbWidget"),this._domNode.role="listbox",this._register(r.q.ignoreTarget(this._domNode)),this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent((e=>{const t=this._editor.getModel();(1!==this.state.type||!t||this.state.editorPosition.lineNumber>=t.getLineCount())&&this.hide(),(1!==this.gutterState.type||!t||this.gutterState.editorPosition.lineNumber>=t.getLineCount())&&this.gutterHide()}))),this._register(n.Xc(this._domNode,(e=>{if(1!==this.state.type)return;this._editor.focus(),e.preventDefault();const{top:t,height:i}=n.BK(this._domNode),s=this._editor.getOption(67);let r=Math.floor(s/3);null!==this.state.widgetPosition.position&&this.state.widgetPosition.position.lineNumber<this.state.editorPosition.lineNumber&&(r+=s),this._onClick.fire({x:e.posx,y:t+i+r,actions:this.state.actions,trigger:this.state.trigger})}))),this._register(n.ko(this._domNode,"mouseenter",(e=>{1===(1&e.buttons)&&this.hide()}))),this._register(a.Jh.runAndSubscribe(this._keybindingService.onDidUpdateKeybindings,(()=>{this._preferredKbLabel=this._keybindingService.lookupKeybinding(g.pR)?.getLabel()??void 0,this._quickFixKbLabel=this._keybindingService.lookupKeybinding(g.pQ)?.getLabel()??void 0,this._updateLightBulbTitleAndIcon()}))),this._register(this._editor.onMouseDown((async e=>{if(!e.target.element||!this.lightbulbClasses.some((t=>e.target.element&&e.target.element.classList.contains(t))))return;if(1!==this.gutterState.type)return;this._editor.focus();const{top:t,height:i}=n.BK(e.target.element),s=this._editor.getOption(67);let r=Math.floor(s/3);null!==this.gutterState.widgetPosition.position&&this.gutterState.widgetPosition.position.lineNumber<this.gutterState.editorPosition.lineNumber&&(r+=s),this._onClick.fire({x:e.event.posx,y:t+i+r,actions:this.gutterState.actions,trigger:this.gutterState.trigger})})))}dispose(){super.dispose(),this._editor.removeContentWidget(this),this._gutterDecorationID&&this._removeGutterDecoration(this._gutterDecorationID)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return 1===this._state.type?this._state.widgetPosition:null}update(e,t,i){if(e.validActions.length<=0)return this.gutterHide(),this.hide();if(!this._editor.hasTextFocus())return this.gutterHide(),this.hide();if(!this._editor.getOptions().get(65).enabled)return this.gutterHide(),this.hide();const n=this._editor.getModel();if(!n)return this.gutterHide(),this.hide();const{lineNumber:r,column:o}=n.validatePosition(i),a=n.getOptions().tabSize,c=this._editor.getOptions().get(50),l=n.getLineContent(r),h=(0,u.G)(l,a),d=c.spaceWidth*h>22,g=e=>e>2&&this._editor.getTopForLineNumber(e)===this._editor.getTopForLineNumber(e-1),p=this._editor.getLineDecorations(r);let m=!1;if(p)for(const s of p){const e=s.options.glyphMarginClassName;if(e&&!this.lightbulbClasses.some((t=>e.includes(t)))){m=!0;break}}let f=r,_=1;if(!d){const a=e=>{const t=n.getLineContent(e);return/^\s*$|^\s+/.test(t)||t.length<=_};if(r>1&&!g(r-1)){const o=r===n.getLineCount(),c=r>1&&a(r-1),l=!o&&a(r+1),h=a(r),d=!l&&!c;if(!(l||c||m))return this.gutterState=new R.Showing(e,t,i,{position:{lineNumber:f,column:_},preference:s._posPref}),this.renderGutterLightbub(),this.hide();c||o||c&&!h?f-=1:(l||d&&h)&&(f+=1)}else if(1!==r||r!==n.getLineCount()&&(a(r+1)||a(r))){if(r<n.getLineCount()&&!g(r+1))f+=1;else if(o*c.spaceWidth<22)return this.hide()}else{if(this.gutterState=new R.Showing(e,t,i,{position:{lineNumber:f,column:_},preference:s._posPref}),!m)return this.renderGutterLightbub(),this.hide();this.gutterHide()}_=/^\S\s*$/.test(n.getLineContent(f))?2:1}this.state=new R.Showing(e,t,i,{position:{lineNumber:f,column:_},preference:s._posPref}),this._gutterDecorationID&&(this._removeGutterDecoration(this._gutterDecorationID),this.gutterHide());const v=e.validActions,C=e.validActions[0].action.kind;v.length,this._editor.layoutContentWidget(this)}hide(){this.state!==R.Hidden&&(this.state=R.Hidden,this._editor.layoutContentWidget(this))}gutterHide(){this.gutterState!==R.Hidden&&(this._gutterDecorationID&&this._removeGutterDecoration(this._gutterDecorationID),this.gutterState=R.Hidden)}get state(){return this._state}set state(e){this._state=e,this._updateLightBulbTitleAndIcon()}get gutterState(){return this._gutterState}set gutterState(e){this._gutterState=e,this._updateGutterLightBulbTitleAndIcon()}_updateLightBulbTitleAndIcon(){if(this._domNode.classList.remove(...this._iconClasses),this._iconClasses=[],1!==this.state.type)return;let e,t=!1;this.state.actions.allAIFixes?(e=o.W.sparkleFilled,1===this.state.actions.validActions.length&&(t=!0)):e=this.state.actions.hasAutoFix?this.state.actions.hasAIFix?o.W.lightbulbSparkleAutofix:o.W.lightbulbAutofix:this.state.actions.hasAIFix?o.W.lightbulbSparkle:o.W.lightBulb,this._updateLightbulbTitle(this.state.actions.hasAutoFix,t),this._iconClasses=l.L.asClassNameArray(e),this._domNode.classList.add(...this._iconClasses)}_updateGutterLightBulbTitleAndIcon(){if(1!==this.gutterState.type)return;let e,t=!1;this.gutterState.actions.allAIFixes?(e=w,1===this.gutterState.actions.validActions.length&&(t=!0)):e=this.gutterState.actions.hasAutoFix?this.gutterState.actions.hasAIFix?y:b:this.gutterState.actions.hasAIFix?S:E,this._updateLightbulbTitle(this.gutterState.actions.hasAutoFix,t);const i=d.kI.register({description:"codicon-gutter-lightbulb-decoration",glyphMarginClassName:l.L.asClassName(e),glyphMargin:{position:h.ZS.Left},stickiness:1});this.gutterDecoration=i}renderGutterLightbub(){const e=this._editor.getSelection();e&&(void 0===this._gutterDecorationID?this._addGutterDecoration(e.startLineNumber):this._updateGutterDecoration(this._gutterDecorationID,e.startLineNumber))}_addGutterDecoration(e){this._editor.changeDecorations((t=>{this._gutterDecorationID=t.addDecoration(new _.Q(e,0,e,0),this.gutterDecoration)}))}_removeGutterDecoration(e){this._editor.changeDecorations((t=>{t.removeDecoration(e),this._gutterDecorationID=void 0}))}_updateGutterDecoration(e,t){this._editor.changeDecorations((i=>{i.changeDecoration(e,new _.Q(t,0,t,0)),i.changeDecorationOptions(e,this.gutterDecoration)}))}_updateLightbulbTitle(e,t){1===this.state.type&&(t?this.title=p.kg("codeActionAutoRun","Run: {0}",this.state.actions.validActions[0].action.title):e&&this._preferredKbLabel?this.title=p.kg("preferredcodeActionWithKb","Show Code Actions. Preferred Quick Fix Available ({0})",this._preferredKbLabel):!e&&this._quickFixKbLabel?this.title=p.kg("codeActionWithKb","Show Code Actions ({0})",this._quickFixKbLabel):e||(this.title=p.kg("codeAction","Show Code Actions")))}set title(e){this._domNode.title=e}};L=s=v([C(1,m.b)],L)},97035:(e,t,i)=>{"use strict";i.d(t,{k:()=>s});const s=(0,i(63591).u1)("environmentService")},97144:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>i.e(9582).then(i.bind(i,49582))})},97360:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>i.e(6342).then(i.bind(i,86342))})},97681:(e,t,i)=>{"use strict";i.d(t,{c:()=>h,z:()=>l});var s=i(91508),n=i(32799),r=i(1226),o=i(81782),a=i(83069),c=i(36677);class l{static _createWord(e,t,i,s,n){return{start:s,end:n,wordType:t,nextCharClass:i}}static _createIntlWord(e,t){return{start:e.index,end:e.index+e.segment.length,wordType:1,nextCharClass:t}}static _findPreviousWordOnLine(e,t,i){const s=t.getLineContent(i.lineNumber);return this._doFindPreviousWordOnLine(s,e,i)}static _doFindPreviousWordOnLine(e,t,i){let s=0;const n=t.findPrevIntlWordBeforeOrAtOffset(e,i.column-2);for(let r=i.column-2;r>=0;r--){const i=e.charCodeAt(r),o=t.get(i);if(n&&r===n.index)return this._createIntlWord(n,o);if(0===o){if(2===s)return this._createWord(e,s,o,r+1,this._findEndOfWord(e,t,s,r+1));s=1}else if(2===o){if(1===s)return this._createWord(e,s,o,r+1,this._findEndOfWord(e,t,s,r+1));s=2}else if(1===o&&0!==s)return this._createWord(e,s,o,r+1,this._findEndOfWord(e,t,s,r+1))}return 0!==s?this._createWord(e,s,1,0,this._findEndOfWord(e,t,s,0)):null}static _findEndOfWord(e,t,i,s){const n=t.findNextIntlWordAtOrAfterOffset(e,s),r=e.length;for(let o=s;o<r;o++){const s=e.charCodeAt(o),r=t.get(s);if(n&&o===n.index+n.segment.length)return o;if(1===r)return o;if(1===i&&2===r)return o;if(2===i&&0===r)return o}return r}static _findNextWordOnLine(e,t,i){const s=t.getLineContent(i.lineNumber);return this._doFindNextWordOnLine(s,e,i)}static _doFindNextWordOnLine(e,t,i){let s=0;const n=e.length,r=t.findNextIntlWordAtOrAfterOffset(e,i.column-1);for(let o=i.column-1;o<n;o++){const i=e.charCodeAt(o),n=t.get(i);if(r&&o===r.index)return this._createIntlWord(r,n);if(0===n){if(2===s)return this._createWord(e,s,n,this._findStartOfWord(e,t,s,o-1),o);s=1}else if(2===n){if(1===s)return this._createWord(e,s,n,this._findStartOfWord(e,t,s,o-1),o);s=2}else if(1===n&&0!==s)return this._createWord(e,s,n,this._findStartOfWord(e,t,s,o-1),o)}return 0!==s?this._createWord(e,s,1,this._findStartOfWord(e,t,s,n-1),n):null}static _findStartOfWord(e,t,i,s){const n=t.findPrevIntlWordBeforeOrAtOffset(e,s);for(let r=s;r>=0;r--){const s=e.charCodeAt(r),o=t.get(s);if(n&&r===n.index)return r;if(1===o)return r+1;if(1===i&&2===o)return r+1;if(2===i&&0===o)return r+1}return 0}static moveWordLeft(e,t,i,s,n){let r=i.lineNumber,o=i.column;1===o&&r>1&&(r-=1,o=t.getLineMaxColumn(r));let c=l._findPreviousWordOnLine(e,t,new a.y(r,o));if(0===s)return new a.y(r,c?c.start+1:1);if(1===s)return!n&&c&&2===c.wordType&&c.end-c.start===1&&0===c.nextCharClass&&(c=l._findPreviousWordOnLine(e,t,new a.y(r,c.start+1))),new a.y(r,c?c.start+1:1);if(3===s){for(;c&&2===c.wordType;)c=l._findPreviousWordOnLine(e,t,new a.y(r,c.start+1));return new a.y(r,c?c.start+1:1)}return c&&o<=c.end+1&&(c=l._findPreviousWordOnLine(e,t,new a.y(r,c.start+1))),new a.y(r,c?c.end+1:1)}static _moveWordPartLeft(e,t){const i=t.lineNumber,n=e.getLineMaxColumn(i);if(1===t.column)return i>1?new a.y(i-1,e.getLineMaxColumn(i-1)):t;const r=e.getLineContent(i);for(let o=t.column-1;o>1;o--){const e=r.charCodeAt(o-2),t=r.charCodeAt(o-1);if(95===e&&95!==t)return new a.y(i,o);if(45===e&&45!==t)return new a.y(i,o);if((s.Lv(e)||s.DB(e))&&s.Wv(t))return new a.y(i,o);if(s.Wv(e)&&s.Wv(t)&&o+1<n){const e=r.charCodeAt(o);if(s.Lv(e)||s.DB(e))return new a.y(i,o)}}return new a.y(i,1)}static moveWordRight(e,t,i,s){let n=i.lineNumber,r=i.column,o=!1;r===t.getLineMaxColumn(n)&&n<t.getLineCount()&&(o=!0,n+=1,r=1);let c=l._findNextWordOnLine(e,t,new a.y(n,r));if(2===s)c&&2===c.wordType&&c.end-c.start===1&&0===c.nextCharClass&&(c=l._findNextWordOnLine(e,t,new a.y(n,c.end+1))),r=c?c.end+1:t.getLineMaxColumn(n);else if(3===s){for(o&&(r=0);c&&(2===c.wordType||c.start+1<=r);)c=l._findNextWordOnLine(e,t,new a.y(n,c.end+1));r=c?c.start+1:t.getLineMaxColumn(n)}else c&&!o&&r>=c.start+1&&(c=l._findNextWordOnLine(e,t,new a.y(n,c.end+1))),r=c?c.start+1:t.getLineMaxColumn(n);return new a.y(n,r)}static _moveWordPartRight(e,t){const i=t.lineNumber,n=e.getLineMaxColumn(i);if(t.column===n)return i<e.getLineCount()?new a.y(i+1,1):t;const r=e.getLineContent(i);for(let o=t.column+1;o<n;o++){const e=r.charCodeAt(o-2),t=r.charCodeAt(o-1);if(95!==e&&95===t)return new a.y(i,o);if(45!==e&&45===t)return new a.y(i,o);if((s.Lv(e)||s.DB(e))&&s.Wv(t))return new a.y(i,o);if(s.Wv(e)&&s.Wv(t)&&o+1<n){const e=r.charCodeAt(o);if(s.Lv(e)||s.DB(e))return new a.y(i,o)}}return new a.y(i,n)}static _deleteWordLeftWhitespace(e,t){const i=e.getLineContent(t.lineNumber),n=t.column-2,r=s.lT(i,n);return r+1<n?new c.Q(t.lineNumber,r+2,t.lineNumber,t.column):null}static deleteWordLeft(e,t){const i=e.wordSeparators,s=e.model,n=e.selection,o=e.whitespaceHeuristics;if(!n.isEmpty())return n;if(r.g.isAutoClosingPairDelete(e.autoClosingDelete,e.autoClosingBrackets,e.autoClosingQuotes,e.autoClosingPairs.autoClosingPairsOpenByEnd,e.model,[e.selection],e.autoClosedCharacters)){const t=e.selection.getPosition();return new c.Q(t.lineNumber,t.column-1,t.lineNumber,t.column+1)}const h=new a.y(n.positionLineNumber,n.positionColumn);let d=h.lineNumber,u=h.column;if(1===d&&1===u)return null;if(o){const e=this._deleteWordLeftWhitespace(s,h);if(e)return e}let g=l._findPreviousWordOnLine(i,s,h);return 0===t?g?u=g.start+1:u>1?u=1:(d--,u=s.getLineMaxColumn(d)):(g&&u<=g.end+1&&(g=l._findPreviousWordOnLine(i,s,new a.y(d,g.start+1))),g?u=g.end+1:u>1?u=1:(d--,u=s.getLineMaxColumn(d))),new c.Q(d,u,h.lineNumber,h.column)}static deleteInsideWord(e,t,i){if(!i.isEmpty())return i;const s=new a.y(i.positionLineNumber,i.positionColumn),n=this._deleteInsideWordWhitespace(t,s);return n||this._deleteInsideWordDetermineDeleteRange(e,t,s)}static _charAtIsWhitespace(e,t){const i=e.charCodeAt(t);return 32===i||9===i}static _deleteInsideWordWhitespace(e,t){const i=e.getLineContent(t.lineNumber),s=i.length;if(0===s)return null;let n=Math.max(t.column-2,0);if(!this._charAtIsWhitespace(i,n))return null;let r=Math.min(t.column-1,s-1);if(!this._charAtIsWhitespace(i,r))return null;for(;n>0&&this._charAtIsWhitespace(i,n-1);)n--;for(;r+1<s&&this._charAtIsWhitespace(i,r+1);)r++;return new c.Q(t.lineNumber,n+1,t.lineNumber,r+2)}static _deleteInsideWordDetermineDeleteRange(e,t,i){const s=t.getLineContent(i.lineNumber),n=s.length;if(0===n)return i.lineNumber>1?new c.Q(i.lineNumber-1,t.getLineMaxColumn(i.lineNumber-1),i.lineNumber,1):i.lineNumber<t.getLineCount()?new c.Q(i.lineNumber,1,i.lineNumber+1,1):new c.Q(i.lineNumber,1,i.lineNumber,1);const r=e=>e.start+1<=i.column&&i.column<=e.end+1,o=(e,t)=>(e=Math.min(e,i.column),t=Math.max(t,i.column),new c.Q(i.lineNumber,e,i.lineNumber,t)),a=e=>{let t=e.start+1,i=e.end+1,r=!1;for(;i-1<n&&this._charAtIsWhitespace(s,i-1);)r=!0,i++;if(!r)for(;t>1&&this._charAtIsWhitespace(s,t-2);)t--;return o(t,i)},h=l._findPreviousWordOnLine(e,t,i);if(h&&r(h))return a(h);const d=l._findNextWordOnLine(e,t,i);return d&&r(d)?a(d):h&&d?o(h.end+1,d.start+1):h?o(h.start+1,h.end+1):d?o(d.start+1,d.end+1):o(1,n+1)}static _deleteWordPartLeft(e,t){if(!t.isEmpty())return t;const i=t.getPosition(),s=l._moveWordPartLeft(e,i);return new c.Q(i.lineNumber,i.column,s.lineNumber,s.column)}static _findFirstNonWhitespaceChar(e,t){const i=e.length;for(let s=t;s<i;s++){const t=e.charAt(s);if(" "!==t&&"\t"!==t)return s}return i}static _deleteWordRightWhitespace(e,t){const i=e.getLineContent(t.lineNumber),s=t.column-1,n=this._findFirstNonWhitespaceChar(i,s);return s+1<n?new c.Q(t.lineNumber,t.column,t.lineNumber,n+1):null}static deleteWordRight(e,t){const i=e.wordSeparators,s=e.model,n=e.selection,r=e.whitespaceHeuristics;if(!n.isEmpty())return n;const o=new a.y(n.positionLineNumber,n.positionColumn);let h=o.lineNumber,d=o.column;const u=s.getLineCount(),g=s.getLineMaxColumn(h);if(h===u&&d===g)return null;if(r){const e=this._deleteWordRightWhitespace(s,o);if(e)return e}let p=l._findNextWordOnLine(i,s,o);return 2===t?p?d=p.end+1:d<g||h===u?d=g:(h++,p=l._findNextWordOnLine(i,s,new a.y(h,1)),d=p?p.start+1:s.getLineMaxColumn(h)):(p&&d>=p.start+1&&(p=l._findNextWordOnLine(i,s,new a.y(h,p.end+1))),p?d=p.start+1:d<g||h===u?d=g:(h++,p=l._findNextWordOnLine(i,s,new a.y(h,1)),d=p?p.start+1:s.getLineMaxColumn(h))),new c.Q(h,d,o.lineNumber,o.column)}static _deleteWordPartRight(e,t){if(!t.isEmpty())return t;const i=t.getPosition(),s=l._moveWordPartRight(e,i);return new c.Q(i.lineNumber,i.column,s.lineNumber,s.column)}static _createWordAtPosition(e,t,i){const s=new c.Q(t,i.start+1,t,i.end+1);return{word:e.getValueInRange(s),startColumn:s.startColumn,endColumn:s.endColumn}}static getWordAtPosition(e,t,i,s){const n=(0,o.i)(t,i),r=l._findPreviousWordOnLine(n,e,s);if(r&&1===r.wordType&&r.start<=s.column-1&&s.column-1<=r.end)return l._createWordAtPosition(e,s.lineNumber,r);const a=l._findNextWordOnLine(n,e,s);return a&&1===a.wordType&&a.start<=s.column-1&&s.column-1<=a.end?l._createWordAtPosition(e,s.lineNumber,a):null}static word(e,t,i,s,r){const h=(0,o.i)(e.wordSeparators,e.wordSegmenterLocales),d=l._findPreviousWordOnLine(h,t,r),u=l._findNextWordOnLine(h,t,r);if(!s){let e,i;return d&&1===d.wordType&&d.start<=r.column-1&&r.column-1<=d.end?(e=d.start+1,i=d.end+1):u&&1===u.wordType&&u.start<=r.column-1&&r.column-1<=u.end?(e=u.start+1,i=u.end+1):(e=d?d.end+1:1,i=u?u.start+1:t.getLineMaxColumn(r.lineNumber)),new n.mG(new c.Q(r.lineNumber,e,r.lineNumber,i),1,0,new a.y(r.lineNumber,i),0)}let g,p;d&&1===d.wordType&&d.start<r.column-1&&r.column-1<d.end?(g=d.start+1,p=d.end+1):u&&1===u.wordType&&u.start<r.column-1&&r.column-1<u.end?(g=u.start+1,p=u.end+1):(g=r.column,p=r.column);const m=r.lineNumber;let f;if(i.selectionStart.containsPosition(r))f=i.selectionStart.endColumn;else if(r.isBeforeOrEqual(i.selectionStart.getStartPosition())){f=g;const e=new a.y(m,f);i.selectionStart.containsPosition(e)&&(f=i.selectionStart.endColumn)}else{f=p;const e=new a.y(m,f);i.selectionStart.containsPosition(e)&&(f=i.selectionStart.startColumn)}return i.move(!0,m,f,0)}}class h extends l{static deleteWordPartLeft(e){const t=d([l.deleteWordLeft(e,0),l.deleteWordLeft(e,2),l._deleteWordPartLeft(e.model,e.selection)]);return t.sort(c.Q.compareRangesUsingEnds),t[2]}static deleteWordPartRight(e){const t=d([l.deleteWordRight(e,0),l.deleteWordRight(e,2),l._deleteWordPartRight(e.model,e.selection)]);return t.sort(c.Q.compareRangesUsingStarts),t[0]}static moveWordPartLeft(e,t,i,s){const n=d([l.moveWordLeft(e,t,i,0,s),l.moveWordLeft(e,t,i,2,s),l._moveWordPartLeft(t,i)]);return n.sort(a.y.compare),n[2]}static moveWordPartRight(e,t,i){const s=d([l.moveWordRight(e,t,i,0),l.moveWordRight(e,t,i,2),l._moveWordPartRight(t,i)]);return s.sort(a.y.compare),s[0]}}function d(e){return e.filter((e=>Boolean(e)))}},97791:()=>{},97884:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>i.e(6554).then(i.bind(i,96554))})},98031:(e,t,i)=>{"use strict";i.d(t,{b:()=>s});const s=(0,i(63591).u1)("keybindingService")},98067:(e,t,i)=>{"use strict";i.d(t,{BH:()=>D,Fr:()=>I,H8:()=>W,HZ:()=>k,OS:()=>F,UP:()=>G,_p:()=>P,cm:()=>B,gm:()=>V,ib:()=>x,j9:()=>T,lg:()=>A,m0:()=>j,nr:()=>z,uF:()=>R,un:()=>N,zx:()=>L});var s=i(78209);const n="en";let r,o,a=!1,c=!1,l=!1,h=!1,d=!1,u=!1,g=!1,p=!1,m=!1,f=!1,_=n,v=null,C=null;const E=globalThis;let b;"undefined"!==typeof E.vscode&&"undefined"!==typeof E.vscode.process?b=E.vscode.process:"undefined"!==typeof process&&"string"===typeof process?.versions?.node&&(b=process);const S="string"===typeof b?.versions?.electron,y=S&&"renderer"===b?.type;if("object"===typeof b){a="win32"===b.platform,c="darwin"===b.platform,l="linux"===b.platform,h=l&&!!b.env.SNAP&&!!b.env.SNAP_REVISION,g=S,m=!!b.env.CI||!!b.env.BUILD_ARTIFACTSTAGINGDIRECTORY,r=n,_=n;const e=b.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e);r=t.userLocale,v=t.osLocale,_=t.resolvedLanguage||n,C=t.languagePack?.translationsConfigFile}catch(K){}d=!0}else"object"!==typeof navigator||y?console.error("Unable to resolve platform."):(o=navigator.userAgent,a=o.indexOf("Windows")>=0,c=o.indexOf("Macintosh")>=0,p=(o.indexOf("Macintosh")>=0||o.indexOf("iPad")>=0||o.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,l=o.indexOf("Linux")>=0,f=o?.indexOf("Mobi")>=0,u=!0,_=s.i8()||n,r=navigator.language.toLowerCase(),v=r);let w=0;c?w=1:a?w=3:l&&(w=2);const R=a,L=c,T=l,x=d,k=u,A=u&&"function"===typeof E.importScripts?E.origin:void 0,N=p,I=f,O=o,D=_,M="function"===typeof E.postMessage&&!E.importScripts,P=(()=>{if(M){const e=[];E.addEventListener("message",(t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,s=e.length;i<s;i++){const s=e[i];if(s.id===t.data.vscodeScheduleAsyncWork)return e.splice(i,1),void s.callback()}}));let t=0;return i=>{const s=++t;e.push({id:s,callback:i}),E.postMessage({vscodeScheduleAsyncWork:s},"*")}}return e=>setTimeout(e)})(),F=c||p?2:a?1:3;let U=!0,H=!1;function B(){if(!H){H=!0;const e=new Uint8Array(2);e[0]=1,e[1]=2;const t=new Uint16Array(e.buffer);U=513===t[0]}return U}const W=!!(O&&O.indexOf("Chrome")>=0),V=!!(O&&O.indexOf("Firefox")>=0),z=!!(!W&&O&&O.indexOf("Safari")>=0),G=!!(O&&O.indexOf("Edg/")>=0),j=!!(O&&O.indexOf("Android")>=0)},98192:(e,t,i)=>{"use strict";i.d(t,{CU:()=>n,om:()=>r});var s=i(82435);const n="gc-",r=((0,s.withNaming)({e:"__",m:"_",v:"_"}),(0,s.withNaming)({n:n,e:"__",m:"_",v:"_"}))},98232:(e,t,i)=>{"use strict";i.r(t),i.d(t,{encodeSemanticTokensDto:()=>r});var s=i(81674),n=i(98067);function r(e){const t=new Uint32Array(function(e){let t=0;if(t+=2,"full"===e.type)t+=1+e.data.length;else{t+=1,t+=3*e.deltas.length;for(const i of e.deltas)i.data&&(t+=i.data.length)}return t}(e));let i=0;if(t[i++]=e.id,"full"===e.type)t[i++]=1,t[i++]=e.data.length,t.set(e.data,i),i+=e.data.length;else{t[i++]=2,t[i++]=e.deltas.length;for(const s of e.deltas)t[i++]=s.start,t[i++]=s.deleteCount,s.data?(t[i++]=s.data.length,t.set(s.data,i),i+=s.data.length):t[i++]=0}return function(e){const t=new Uint8Array(e.buffer,e.byteOffset,4*e.length);return n.cm()||function(e){for(let t=0,i=e.length;t<i;t+=4){const i=e[t+0],s=e[t+1],n=e[t+2],r=e[t+3];e[t+0]=r,e[t+1]=n,e[t+2]=s,e[t+3]=i}}(t),s.MB.wrap(t)}(t)}},98408:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"wgsl",extensions:[".wgsl"],aliases:["WebGPU Shading Language","WGSL","wgsl"],loader:()=>i.e(3822).then(i.bind(i,33822))})},98472:(e,t,i)=>{"use strict";var s=i(11007),n=i(77163),r=i(78209),o=i(27195);class a extends o.L{static{this.ID="editor.action.toggleTabFocusMode"}constructor(){super({id:a.ID,title:r.aS({key:"toggle.tabMovesFocus",comment:["Turn on/off use of tab key for moving focus around VS Code"]},"Toggle Tab Key Moves Focus"),precondition:void 0,keybinding:{primary:2091,mac:{primary:1323},weight:100},metadata:{description:r.aS("tabMovesFocusDescriptions","Determines whether the tab key moves focus around the workbench or inserts the tab character in the current editor. This is also called tab trapping, tab navigation, or tab focus mode.")},f1:!0})}run(){const e=!n.M.getTabFocusMode();n.M.setTabFocusMode(e),e?(0,s.xE)(r.kg("toggle.tabMovesFocus.on","Pressing Tab will now move focus to the next focusable element")):(0,s.xE)(r.kg("toggle.tabMovesFocus.off","Pressing Tab will now insert the tab character"))}}(0,o.ug)(a)},98745:(e,t,i)=>{"use strict";var s,n=i(5662),r=i(64383),o=i(23750),a=i(84001),c=i(90766),l=i(18447),h=i(47612),d=i(45538),u=i(32371),g=i(32500),p=i(78381),m=i(56942),f=i(74243),_=i(72466),v=i(84585),C=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},E=function(e,t){return function(i,s){t(i,s,e)}};let b=class extends n.jG{constructor(e,t,i,s,n,r){super(),this._watchers=Object.create(null);const o=t=>{this._watchers[t.uri.toString()]=new S(t,e,i,n,r)},a=(e,t)=>{t.dispose(),delete this._watchers[e.uri.toString()]},c=()=>{for(const e of t.getModels()){const t=this._watchers[e.uri.toString()];(0,v.K)(e,i,s)?t||o(e):t&&a(e,t)}};t.getModels().forEach((e=>{(0,v.K)(e,i,s)&&o(e)})),this._register(t.onModelAdded((e=>{(0,v.K)(e,i,s)&&o(e)}))),this._register(t.onModelRemoved((e=>{const t=this._watchers[e.uri.toString()];t&&a(e,t)}))),this._register(s.onDidChangeConfiguration((e=>{e.affectsConfiguration(v.r)&&c()}))),this._register(i.onDidColorThemeChange(c))}dispose(){for(const e of Object.values(this._watchers))e.dispose();super.dispose()}};b=C([E(0,f.ISemanticTokensStylingService),E(1,o.IModelService),E(2,h.Gy),E(3,a.pG),E(4,g.ILanguageFeatureDebounceService),E(5,m.ILanguageFeaturesService)],b);let S=class extends n.jG{static{s=this}static{this.REQUEST_MIN_DELAY=300}static{this.REQUEST_MAX_DELAY=2e3}constructor(e,t,i,r,o){super(),this._semanticTokensStylingService=t,this._isDisposed=!1,this._model=e,this._provider=o.documentSemanticTokensProvider,this._debounceInformation=r.for(this._provider,"DocumentSemanticTokens",{min:s.REQUEST_MIN_DELAY,max:s.REQUEST_MAX_DELAY}),this._fetchDocumentSemanticTokens=this._register(new c.uC((()=>this._fetchDocumentSemanticTokensNow()),s.REQUEST_MIN_DELAY)),this._currentDocumentResponse=null,this._currentDocumentRequestCancellationTokenSource=null,this._documentProvidersChangeListeners=[],this._providersChangedDuringRequest=!1,this._register(this._model.onDidChangeContent((()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))}))),this._register(this._model.onDidChangeAttached((()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))}))),this._register(this._model.onDidChangeLanguage((()=>{this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(0)})));const a=()=>{(0,n.AS)(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[];for(const t of this._provider.all(e))"function"===typeof t.onDidChange&&this._documentProvidersChangeListeners.push(t.onDidChange((()=>{this._currentDocumentRequestCancellationTokenSource?this._providersChangedDuringRequest=!0:this._fetchDocumentSemanticTokens.schedule(0)})))};a(),this._register(this._provider.onDidChange((()=>{a(),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))}))),this._register(i.onDidColorThemeChange((e=>{this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))}))),this._fetchDocumentSemanticTokens.schedule(0)}dispose(){this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),(0,n.AS)(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[],this._setDocumentSemanticTokens(null,null,null,[]),this._isDisposed=!0,super.dispose()}_fetchDocumentSemanticTokensNow(){if(this._currentDocumentRequestCancellationTokenSource)return;if(!(0,u.br)(this._provider,this._model))return void(this._currentDocumentResponse&&this._model.tokenization.setSemanticTokens(null,!1));if(!this._model.isAttachedToEditor())return;const e=new l.Qi,t=this._currentDocumentResponse?this._currentDocumentResponse.provider:null,i=this._currentDocumentResponse&&this._currentDocumentResponse.resultId||null,s=(0,u.aw)(this._provider,this._model,t,i,e.token);this._currentDocumentRequestCancellationTokenSource=e,this._providersChangedDuringRequest=!1;const n=[],o=this._model.onDidChangeContent((e=>{n.push(e)})),a=new p.W(!1);s.then((e=>{if(this._debounceInformation.update(this._model,a.elapsed()),this._currentDocumentRequestCancellationTokenSource=null,o.dispose(),e){const{provider:t,tokens:i}=e,s=this._semanticTokensStylingService.getStyling(t);this._setDocumentSemanticTokens(t,i||null,s,n)}else this._setDocumentSemanticTokens(null,null,null,n)}),(e=>{e&&(r.MB(e)||"string"===typeof e.message&&-1!==e.message.indexOf("busy"))||r.dz(e),this._currentDocumentRequestCancellationTokenSource=null,o.dispose(),(n.length>0||this._providersChangedDuringRequest)&&(this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model)))}))}static _copy(e,t,i,s,n){n=Math.min(n,i.length-s,e.length-t);for(let r=0;r<n;r++)i[s+r]=e[t+r]}_setDocumentSemanticTokens(e,t,i,n){const r=this._currentDocumentResponse,o=()=>{(n.length>0||this._providersChangedDuringRequest)&&!this._fetchDocumentSemanticTokens.isScheduled()&&this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))};if(this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._isDisposed)e&&t&&e.releaseDocumentSemanticTokens(t.resultId);else if(e&&i){if(!t)return this._model.tokenization.setSemanticTokens(null,!0),void o();if((0,u.yS)(t)){if(!r)return void this._model.tokenization.setSemanticTokens(null,!0);if(0===t.edits.length)t={resultId:t.resultId,data:r.data};else{let e=0;for(const i of t.edits)e+=(i.data?i.data.length:0)-i.deleteCount;const n=r.data,o=new Uint32Array(n.length+e);let a=n.length,c=o.length;for(let l=t.edits.length-1;l>=0;l--){const e=t.edits[l];if(e.start>n.length)return i.warnInvalidEditStart(r.resultId,t.resultId,l,e.start,n.length),void this._model.tokenization.setSemanticTokens(null,!0);const h=a-(e.start+e.deleteCount);h>0&&(s._copy(n,a-h,o,c-h,h),c-=h),e.data&&(s._copy(e.data,0,o,c-e.data.length,e.data.length),c-=e.data.length),a=e.start}a>0&&s._copy(n,0,o,0,a),t={resultId:t.resultId,data:o}}}if((0,u.BB)(t)){this._currentDocumentResponse=new y(e,t.resultId,t.data);const s=(0,d.toMultilineTokens2)(t,i,this._model.getLanguageId());if(n.length>0)for(const e of n)for(const t of s)for(const i of e.changes)t.applyEdit(i.range,i.text);this._model.tokenization.setSemanticTokens(s,!0)}else this._model.tokenization.setSemanticTokens(null,!0);o()}else this._model.tokenization.setSemanticTokens(null,!1)}};S=s=C([E(1,f.ISemanticTokensStylingService),E(2,h.Gy),E(3,g.ILanguageFeatureDebounceService),E(4,m.ILanguageFeaturesService)],S);class y{constructor(e,t,i){this.provider=e,this.resultId=t,this.data=i}dispose(){this.provider.releaseDocumentSemanticTokens(this.resultId)}}(0,_.x)(b)},99020:(e,t,i)=>{"use strict";i.d(t,{Su:()=>d,b7:()=>h,fe:()=>u});var s=i(91508),n=i(98067),r=i(81674);let o,a,c;function l(){return o||(o=new TextDecoder("UTF-16LE")),o}function h(){return c||(c=n.cm()?l():(a||(a=new TextDecoder("UTF-16BE")),a)),c}function d(e,t,i){const s=new Uint16Array(e.buffer,t,i);return i>0&&(65279===s[0]||65534===s[0])?function(e,t,i){const s=[];let n=0;for(let o=0;o<i;o++){const i=r.$l(e,t);t+=2,s[n++]=String.fromCharCode(i)}return s.join("")}(e,t,i):l().decode(s)}class u{constructor(e){this._capacity=0|e,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}reset(){this._completedStrings=null,this._bufferLength=0}build(){return null!==this._completedStrings?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()}_buildBuffer(){if(0===this._bufferLength)return"";const e=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return h().decode(e)}_flushBuffer(){const e=this._buildBuffer();this._bufferLength=0,null===this._completedStrings?this._completedStrings=[e]:this._completedStrings[this._completedStrings.length]=e}appendCharCode(e){const t=this._capacity-this._bufferLength;t<=1&&(0===t||s.pc(e))&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendASCIICharCode(e){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendString(e){const t=e.length;if(this._bufferLength+t>=this._capacity)return this._flushBuffer(),void(this._completedStrings[this._completedStrings.length]=e);for(let i=0;i<t;i++)this._buffer[this._bufferLength++]=e.charCodeAt(i)}}},99312:(e,t,i)=>{"use strict";i.d(t,{mR:()=>K,bn:()=>j,QS:()=>G});var s=i(11007),n=i(90766),r=i(24939),o=i(631),a=i(79400),c=i(50868),l=i(34326),h=i(31450),d=i(80301),u=i(29163),g=i(83069),p=i(36677),m=i(60002),f=i(62083),_=i(23646),v=i(79614),C=i(41234),E=i(5662),b=i(89403),S=i(78209),y=i(32848),w=i(14718),R=i(63591),L=i(98031),T=i(59261),x=i(58591),k=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},A=function(e,t){return function(i,s){t(i,s,e)}};const N=new y.N1("hasSymbols",!1,(0,S.kg)("hasSymbols","Whether there are symbol locations that can be navigated via keyboard-only.")),I=(0,R.u1)("ISymbolNavigationService");let O=class{constructor(e,t,i,s){this._editorService=t,this._notificationService=i,this._keybindingService=s,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=N.bindTo(e)}reset(){this._ctxHasSymbols.reset(),this._currentState?.dispose(),this._currentMessage?.dispose(),this._currentModel=void 0,this._currentIdx=-1}put(e){const t=e.parent.parent;if(t.references.length<=1)return void this.reset();this._currentModel=t,this._currentIdx=t.references.indexOf(e),this._ctxHasSymbols.set(!0),this._showMessage();const i=new D(this._editorService),s=i.onDidChange((e=>{if(this._ignoreEditorChange)return;const i=this._editorService.getActiveCodeEditor();if(!i)return;const s=i.getModel(),n=i.getPosition();if(!s||!n)return;let r=!1,o=!1;for(const a of t.references)if((0,b.n4)(a.uri,s.uri))r=!0,o=o||p.Q.containsPosition(a.range,n);else if(r)break;r&&o||this.reset()}));this._currentState=(0,E.qE)(i,s)}revealNext(e){if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;const t=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:t.uri,options:{selection:p.Q.collapseToStart(t.range),selectionRevealType:3}},e).finally((()=>{this._ignoreEditorChange=!1}))}_showMessage(){this._currentMessage?.dispose();const e=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),t=e?(0,S.kg)("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,e.getLabel()):(0,S.kg)("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(t)}};O=k([A(0,y.fN),A(1,d.T),A(2,x.Ot),A(3,L.b)],O),(0,w.v)(I,O,1),(0,h.E_)(new class extends h.DX{constructor(){super({id:"editor.gotoNextSymbolFromResult",precondition:N,kbOpts:{weight:100,primary:70}})}runEditorCommand(e,t){return e.get(I).revealNext(t)}}),T.f.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:N,primary:9,handler(e){e.get(I).reset()}});let D=class{constructor(e){this._listener=new Map,this._disposables=new E.Cm,this._onDidChange=new C.vl,this.onDidChange=this._onDidChange.event,this._disposables.add(e.onCodeEditorRemove(this._onDidRemoveEditor,this)),this._disposables.add(e.onCodeEditorAdd(this._onDidAddEditor,this)),e.listCodeEditors().forEach(this._onDidAddEditor,this)}dispose(){this._disposables.dispose(),this._onDidChange.dispose(),(0,E.AS)(this._listener.values())}_onDidAddEditor(e){this._listener.set(e,(0,E.qE)(e.onDidChangeCursorPosition((t=>this._onDidChange.fire({editor:e}))),e.onDidChangeModelContent((t=>this._onDidChange.fire({editor:e})))))}_onDidRemoveEditor(e){this._listener.get(e)?.dispose(),this._listener.delete(e)}};D=k([A(0,d.T)],D);var M=i(99645),P=i(84226),F=i(27195),U=i(50091),H=i(73823),B=i(80538),W=i(56942),V=i(42522),z=i(28290);F.ZG.appendMenuItem(F.D8.EditorContext,{submenu:F.D8.EditorContextPeek,title:S.kg("peek.submenu","Peek"),group:"navigation",order:100});class G{static is(e){return!(!e||"object"!==typeof e)&&(e instanceof G||!(!g.y.isIPosition(e.position)||!e.model))}constructor(e,t){this.model=e,this.position=t}}class j extends h.qO{static{this._allSymbolNavigationCommands=new Map}static{this._activeAlternativeCommands=new Set}static all(){return j._allSymbolNavigationCommands.values()}static _patchConfig(e){const t={...e,f1:!0};if(t.menu)for(const i of V.f.wrap(t.menu))i.id!==F.D8.EditorContext&&i.id!==F.D8.EditorContextPeek||(i.when=y.M$.and(e.precondition,i.when));return t}constructor(e,t){super(j._patchConfig(t)),this.configuration=e,j._allSymbolNavigationCommands.set(t.id,this)}runEditorCommand(e,t,i,r){if(!t.hasModel())return Promise.resolve(void 0);const o=e.get(x.Ot),a=e.get(d.T),l=e.get(H.N8),h=e.get(I),u=e.get(W.ILanguageFeaturesService),g=e.get(R._Y),p=t.getModel(),m=t.getPosition(),f=G.is(i)?i:new G(p,m),_=new c.gI(t,5),v=(0,n.PK)(this._getLocationModel(u,f.model,f.position,_.token),_.token).then((async e=>{if(!e||_.token.isCancellationRequested)return;let n;if((0,s.xE)(e.ariaMessage),e.referenceAt(p.uri,m)){const e=this._getAlternativeCommand(t);!j._activeAlternativeCommands.has(e)&&j._allSymbolNavigationCommands.has(e)&&(n=j._allSymbolNavigationCommands.get(e))}const o=e.references.length;if(0===o){if(!this.configuration.muteMessage){const e=p.getWordAtPosition(m);M.k.get(t)?.showMessage(this._getNoResultFoundMessage(e),m)}}else{if(1!==o||!n)return this._onResult(a,h,t,e,r);j._activeAlternativeCommands.add(this.desc.id),g.invokeFunction((e=>n.runEditorCommand(e,t,i,r).finally((()=>{j._activeAlternativeCommands.delete(this.desc.id)}))))}}),(e=>{o.error(e)})).finally((()=>{_.dispose()}));return l.showWhile(v,250),v}async _onResult(e,t,i,s,n){const r=this._getGoToPreference(i);if(i instanceof u.t||!(this.configuration.openInPeek||"peek"===r&&s.references.length>1)){const o=s.firstReference(),a=s.references.length>1&&"gotoAndPeek"===r,c=await this._openReference(i,e,o,this.configuration.openToSide,!a);a&&c?this._openInPeek(c,s,n):s.dispose(),"goto"===r&&t.put(o)}else this._openInPeek(i,s,n)}async _openReference(e,t,i,s,n){let r;if((0,f.Iu)(i)&&(r=i.targetSelectionRange),r||(r=i.range),!r)return;const o=await t.openCodeEditor({resource:i.uri,options:{selection:p.Q.collapseToStart(r),selectionRevealType:3,selectionSource:"code.jump"}},e,s);if(o){if(n){const e=o.getModel(),t=o.createDecorationsCollection([{range:r,options:{description:"symbol-navigate-action-highlight",className:"symbolHighlight"}}]);setTimeout((()=>{o.getModel()===e&&t.clear()}),350)}return o}}_openInPeek(e,t,i){const s=_.X.get(e);s&&e.hasModel()?s.toggleWidget(i??e.getSelection(),(0,n.SS)((e=>Promise.resolve(t))),this.configuration.openInPeek):t.dispose()}}class K extends j{async _getLocationModel(e,t,i,s){return new v.y4(await(0,B.hE)(e.definitionProvider,t,i,!1,s),S.kg("def.title","Definitions"))}_getNoResultFoundMessage(e){return e&&e.word?S.kg("noResultWord","No definition found for '{0}'",e.word):S.kg("generic.noResults","No definition found")}_getAlternativeCommand(e){return e.getOption(58).alternativeDefinitionCommand}_getGoToPreference(e){return e.getOption(58).multipleDefinitions}}(0,F.ug)(class e extends K{static{this.id="editor.action.revealDefinition"}constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:e.id,title:{...S.aS("actions.goToDecl.label","Go to Definition"),mnemonicTitle:S.kg({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")},precondition:m.R.hasDefinitionProvider,keybinding:[{when:m.R.editorTextFocus,primary:70,weight:100},{when:y.M$.and(m.R.editorTextFocus,z.W0),primary:2118,weight:100}],menu:[{id:F.D8.EditorContext,group:"navigation",order:1.1},{id:F.D8.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:2}]}),U.w.registerCommandAlias("editor.action.goToDeclaration",e.id)}}),(0,F.ug)(class e extends K{static{this.id="editor.action.revealDefinitionAside"}constructor(){super({openToSide:!0,openInPeek:!1,muteMessage:!1},{id:e.id,title:S.aS("actions.goToDeclToSide.label","Open Definition to the Side"),precondition:y.M$.and(m.R.hasDefinitionProvider,m.R.isInEmbeddedEditor.toNegated()),keybinding:[{when:m.R.editorTextFocus,primary:(0,r.m5)(2089,70),weight:100},{when:y.M$.and(m.R.editorTextFocus,z.W0),primary:(0,r.m5)(2089,2118),weight:100}]}),U.w.registerCommandAlias("editor.action.openDeclarationToTheSide",e.id)}}),(0,F.ug)(class e extends K{static{this.id="editor.action.peekDefinition"}constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:e.id,title:S.aS("actions.previewDecl.label","Peek Definition"),precondition:y.M$.and(m.R.hasDefinitionProvider,P.x2.notInPeekEditor,m.R.isInEmbeddedEditor.toNegated()),keybinding:{when:m.R.editorTextFocus,primary:582,linux:{primary:3140},weight:100},menu:{id:F.D8.EditorContextPeek,group:"peek",order:2}}),U.w.registerCommandAlias("editor.action.previewDeclaration",e.id)}});class Y extends j{async _getLocationModel(e,t,i,s){return new v.y4(await(0,B.sv)(e.declarationProvider,t,i,!1,s),S.kg("decl.title","Declarations"))}_getNoResultFoundMessage(e){return e&&e.word?S.kg("decl.noResultWord","No declaration found for '{0}'",e.word):S.kg("decl.generic.noResults","No declaration found")}_getAlternativeCommand(e){return e.getOption(58).alternativeDeclarationCommand}_getGoToPreference(e){return e.getOption(58).multipleDeclarations}}(0,F.ug)(class e extends Y{static{this.id="editor.action.revealDeclaration"}constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:e.id,title:{...S.aS("actions.goToDeclaration.label","Go to Declaration"),mnemonicTitle:S.kg({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")},precondition:y.M$.and(m.R.hasDeclarationProvider,m.R.isInEmbeddedEditor.toNegated()),menu:[{id:F.D8.EditorContext,group:"navigation",order:1.3},{id:F.D8.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}_getNoResultFoundMessage(e){return e&&e.word?S.kg("decl.noResultWord","No declaration found for '{0}'",e.word):S.kg("decl.generic.noResults","No declaration found")}}),(0,F.ug)(class extends Y{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",title:S.aS("actions.peekDecl.label","Peek Declaration"),precondition:y.M$.and(m.R.hasDeclarationProvider,P.x2.notInPeekEditor,m.R.isInEmbeddedEditor.toNegated()),menu:{id:F.D8.EditorContextPeek,group:"peek",order:3}})}});class q extends j{async _getLocationModel(e,t,i,s){return new v.y4(await(0,B.f9)(e.typeDefinitionProvider,t,i,!1,s),S.kg("typedef.title","Type Definitions"))}_getNoResultFoundMessage(e){return e&&e.word?S.kg("goToTypeDefinition.noResultWord","No type definition found for '{0}'",e.word):S.kg("goToTypeDefinition.generic.noResults","No type definition found")}_getAlternativeCommand(e){return e.getOption(58).alternativeTypeDefinitionCommand}_getGoToPreference(e){return e.getOption(58).multipleTypeDefinitions}}(0,F.ug)(class e extends q{static{this.ID="editor.action.goToTypeDefinition"}constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:e.ID,title:{...S.aS("actions.goToTypeDefinition.label","Go to Type Definition"),mnemonicTitle:S.kg({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")},precondition:m.R.hasTypeDefinitionProvider,keybinding:{when:m.R.editorTextFocus,primary:0,weight:100},menu:[{id:F.D8.EditorContext,group:"navigation",order:1.4},{id:F.D8.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}}),(0,F.ug)(class e extends q{static{this.ID="editor.action.peekTypeDefinition"}constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:e.ID,title:S.aS("actions.peekTypeDefinition.label","Peek Type Definition"),precondition:y.M$.and(m.R.hasTypeDefinitionProvider,P.x2.notInPeekEditor,m.R.isInEmbeddedEditor.toNegated()),menu:{id:F.D8.EditorContextPeek,group:"peek",order:4}})}});class $ extends j{async _getLocationModel(e,t,i,s){return new v.y4(await(0,B.eS)(e.implementationProvider,t,i,!1,s),S.kg("impl.title","Implementations"))}_getNoResultFoundMessage(e){return e&&e.word?S.kg("goToImplementation.noResultWord","No implementation found for '{0}'",e.word):S.kg("goToImplementation.generic.noResults","No implementation found")}_getAlternativeCommand(e){return e.getOption(58).alternativeImplementationCommand}_getGoToPreference(e){return e.getOption(58).multipleImplementations}}(0,F.ug)(class e extends ${static{this.ID="editor.action.goToImplementation"}constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:e.ID,title:{...S.aS("actions.goToImplementation.label","Go to Implementations"),mnemonicTitle:S.kg({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},precondition:m.R.hasImplementationProvider,keybinding:{when:m.R.editorTextFocus,primary:2118,weight:100},menu:[{id:F.D8.EditorContext,group:"navigation",order:1.45},{id:F.D8.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:4}]})}}),(0,F.ug)(class e extends ${static{this.ID="editor.action.peekImplementation"}constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:e.ID,title:S.aS("actions.peekImplementation.label","Peek Implementations"),precondition:y.M$.and(m.R.hasImplementationProvider,P.x2.notInPeekEditor,m.R.isInEmbeddedEditor.toNegated()),keybinding:{when:m.R.editorTextFocus,primary:3142,weight:100},menu:{id:F.D8.EditorContextPeek,group:"peek",order:5}})}});class Q extends j{_getNoResultFoundMessage(e){return e?S.kg("references.no","No references found for '{0}'",e.word):S.kg("references.noGeneric","No references found")}_getAlternativeCommand(e){return e.getOption(58).alternativeReferenceCommand}_getGoToPreference(e){return e.getOption(58).multipleReferences}}(0,F.ug)(class extends Q{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",title:{...S.aS("goToReferences.label","Go to References"),mnemonicTitle:S.kg({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")},precondition:y.M$.and(m.R.hasReferenceProvider,P.x2.notInPeekEditor,m.R.isInEmbeddedEditor.toNegated()),keybinding:{when:m.R.editorTextFocus,primary:1094,weight:100},menu:[{id:F.D8.EditorContext,group:"navigation",order:1.45},{id:F.D8.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:5}]})}async _getLocationModel(e,t,i,s){return new v.y4(await(0,B.NN)(e.referenceProvider,t,i,!0,!1,s),S.kg("ref.title","References"))}}),(0,F.ug)(class extends Q{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",title:S.aS("references.action.label","Peek References"),precondition:y.M$.and(m.R.hasReferenceProvider,P.x2.notInPeekEditor,m.R.isInEmbeddedEditor.toNegated()),menu:{id:F.D8.EditorContextPeek,group:"peek",order:6}})}async _getLocationModel(e,t,i,s){return new v.y4(await(0,B.NN)(e.referenceProvider,t,i,!1,!1,s),S.kg("ref.title","References"))}});class X extends j{constructor(e,t,i){super(e,{id:"editor.action.goToLocation",title:S.aS("label.generic","Go to Any Symbol"),precondition:y.M$.and(P.x2.notInPeekEditor,m.R.isInEmbeddedEditor.toNegated())}),this._references=t,this._gotoMultipleBehaviour=i}async _getLocationModel(e,t,i,s){return new v.y4(this._references,S.kg("generic.title","Locations"))}_getNoResultFoundMessage(e){return e&&S.kg("generic.noResult","No results for '{0}'",e.word)||""}_getGoToPreference(e){return this._gotoMultipleBehaviour??e.getOption(58).multipleReferences}_getAlternativeCommand(){return""}}U.w.registerCommand({id:"editor.action.goToLocations",metadata:{description:"Go to locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:a.r},{name:"position",description:"The position at which to start",constraint:g.y.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto`"},{name:"noResultsMessage",description:"Human readable message that shows when locations is empty."}]},handler:async(e,t,i,s,n,r,c)=>{(0,o.j)(a.r.isUri(t)),(0,o.j)(g.y.isIPosition(i)),(0,o.j)(Array.isArray(s)),(0,o.j)("undefined"===typeof n||"string"===typeof n),(0,o.j)("undefined"===typeof c||"boolean"===typeof c);const h=e.get(d.T),u=await h.openCodeEditor({resource:t},h.getFocusedCodeEditor());if((0,l.z9)(u))return u.setPosition(i),u.revealPositionInCenterIfOutsideViewport(i,0),u.invokeWithinContext((e=>{const t=new class extends X{_getNoResultFoundMessage(e){return r||super._getNoResultFoundMessage(e)}}({muteMessage:!Boolean(r),openInPeek:Boolean(c),openToSide:!1},s,n);e.get(R._Y).invokeFunction(t.run.bind(t),u)}))}}),U.w.registerCommand({id:"editor.action.peekLocations",metadata:{description:"Peek locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:a.r},{name:"position",description:"The position at which to start",constraint:g.y.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto`"}]},handler:async(e,t,i,s,n)=>{e.get(U.d).executeCommand("editor.action.goToLocations",t,i,s,n,void 0,!0)}}),U.w.registerCommand({id:"editor.action.findReferences",handler:(e,t,i)=>{(0,o.j)(a.r.isUri(t)),(0,o.j)(g.y.isIPosition(i));const s=e.get(W.ILanguageFeaturesService),r=e.get(d.T);return r.openCodeEditor({resource:t},r.getFocusedCodeEditor()).then((e=>{if(!(0,l.z9)(e)||!e.hasModel())return;const t=_.X.get(e);if(!t)return;const r=(0,n.SS)((t=>(0,B.NN)(s.referenceProvider,e.getModel(),g.y.lift(i),!1,!1,t).then((e=>new v.y4(e,S.kg("ref.title","References")))))),o=new p.Q(i.lineNumber,i.column,i.lineNumber,i.column);return Promise.resolve(t.toggleWidget(o,r,!1))}))}}),U.w.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations")},99645:(e,t,i)=>{"use strict";i.d(t,{k:()=>v});var s,n=i(68214),r=i(11007),o=i(41234),a=i(16980),c=i(5662),l=i(31450),h=i(36677),d=i(20492),u=i(78209),g=i(32848),p=i(49099),m=i(8597),f=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},_=function(e,t){return function(i,s){t(i,s,e)}};let v=class{static{s=this}static{this.ID="editor.contrib.messageController"}static{this.MESSAGE_VISIBLE=new g.N1("messageVisible",!1,u.kg("messageVisible","Whether the editor is currently showing an inline message"))}static get(e){return e.getContribution(s.ID)}constructor(e,t,i){this._openerService=i,this._messageWidget=new c.HE,this._messageListeners=new c.Cm,this._mouseOverMessage=!1,this._editor=e,this._visible=s.MESSAGE_VISIBLE.bindTo(t)}dispose(){this._message?.dispose(),this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){let i;(0,r.xE)((0,a.VS)(e)?e.value:e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._message=(0,a.VS)(e)?(0,n.Gc)(e,{actionHandler:{callback:t=>{this.closeMessage(),(0,d.i)(this._openerService,t,(0,a.VS)(e)?e.isTrusted:void 0)},disposables:this._messageListeners}}):void 0,this._messageWidget.value=new E(this._editor,t,"string"===typeof e?e:this._message.element),this._messageListeners.add(o.Jh.debounce(this._editor.onDidBlurEditorText,((e,t)=>t),0)((()=>{this._mouseOverMessage||this._messageWidget.value&&m.QX(m.bq(),this._messageWidget.value.getDomNode())||this.closeMessage()}))),this._messageListeners.add(this._editor.onDidChangeCursorPosition((()=>this.closeMessage()))),this._messageListeners.add(this._editor.onDidDispose((()=>this.closeMessage()))),this._messageListeners.add(this._editor.onDidChangeModel((()=>this.closeMessage()))),this._messageListeners.add(m.ko(this._messageWidget.value.getDomNode(),m.Bx.MOUSE_ENTER,(()=>this._mouseOverMessage=!0),!0)),this._messageListeners.add(m.ko(this._messageWidget.value.getDomNode(),m.Bx.MOUSE_LEAVE,(()=>this._mouseOverMessage=!1),!0)),this._messageListeners.add(this._editor.onMouseMove((e=>{e.target.position&&(i?i.containsPosition(e.target.position)||this.closeMessage():i=new h.Q(t.lineNumber-3,1,e.target.position.lineNumber+3,1))})))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(E.fadeOut(this._messageWidget.value))}};v=s=f([_(1,g.fN),_(2,p.C)],v);const C=l.DX.bindToContribution(v.get);(0,l.E_)(new C({id:"leaveEditorMessage",precondition:v.MESSAGE_VISIBLE,handler:e=>e.closeMessage(),kbOpts:{weight:130,primary:9}}));class E{static fadeOut(e){const t=()=>{e.dispose(),clearTimeout(i),e.getDomNode().removeEventListener("animationend",t)},i=setTimeout(t,110);return e.getDomNode().addEventListener("animationend",t),e.getDomNode().classList.add("fadeOut"),{dispose:t}}constructor(e,{lineNumber:t,column:i},s){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:i},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";const n=document.createElement("div");n.classList.add("anchor","top"),this._domNode.appendChild(n);const r=document.createElement("div");"string"===typeof s?(r.classList.add("message"),r.textContent=s):(s.classList.add("message"),r.appendChild(s)),this._domNode.appendChild(r);const o=document.createElement("div");o.classList.add("anchor","below"),this._domNode.appendChild(o),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2],positionAffinity:1}}afterRender(e){this._domNode.classList.toggle("below",2===e)}}(0,l.HW)(v.ID,v,4)},99669:(e,t,i)=>{"use strict";var s,n,r=i(80781),o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,h=(e,t,i,s)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let n of c(t))l.call(e,n)||n===i||o(e,n,{get:()=>t[n],enumerable:!(s=a(t,n))||s.enumerable});return e},d={};h(d,s=r,"default"),n&&h(n,s,"default");var u=new class{constructor(e,t,i){this._onDidChange=new d.Emitter,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}}("json",{validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},{documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0});function g(){return i.e(6447).then(i.bind(i,66447))}d.languages.json={jsonDefaults:u,getWorker:()=>g().then((e=>e.getWorker()))},d.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]}),d.languages.onLanguage("json",(()=>{g().then((e=>e.setupMode(u)))}))},99822:(e,t,i)=>{"use strict";var s,n,r=i(31450),o=i(78209),a=i(5662),c=i(28712),l=i(63591),h=i(9270),d=i(98031),u=i(41234),g=i(56942),p=i(60002),m=i(32848),f=i(52363),_=i(8597),v=(i(53396),i(10920)),C=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},E=function(e,t){return function(i,s){t(i,s,e)}};let b=class extends a.jG{static{s=this}static{this.ID="editor.contrib.standaloneColorPickerController"}constructor(e,t,i){super(),this._editor=e,this._instantiationService=i,this._standaloneColorPickerWidget=null,this._standaloneColorPickerVisible=p.R.standaloneColorPickerVisible.bindTo(t),this._standaloneColorPickerFocused=p.R.standaloneColorPickerFocused.bindTo(t)}showOrFocus(){this._editor.hasModel()&&(this._standaloneColorPickerVisible.get()?this._standaloneColorPickerFocused.get()||this._standaloneColorPickerWidget?.focus():this._standaloneColorPickerWidget=this._instantiationService.createInstance(S,this._editor,this._standaloneColorPickerVisible,this._standaloneColorPickerFocused))}hide(){this._standaloneColorPickerFocused.set(!1),this._standaloneColorPickerVisible.set(!1),this._standaloneColorPickerWidget?.hide(),this._editor.focus()}insertColor(){this._standaloneColorPickerWidget?.updateEditor(),this.hide()}static get(e){return e.getContribution(s.ID)}};b=s=C([E(1,m.fN),E(2,l._Y)],b),(0,r.HW)(b.ID,b,1);let S=class extends a.jG{static{n=this}static{this.ID="editor.contrib.standaloneColorPickerWidget"}constructor(e,t,i,s,n,r,o){super(),this._editor=e,this._standaloneColorPickerVisible=t,this._standaloneColorPickerFocused=i,this._keybindingService=n,this._languageFeaturesService=r,this._editorWorkerService=o,this.allowEditorOverflow=!0,this._position=void 0,this._body=document.createElement("div"),this._colorHover=null,this._selectionSetInEditor=!1,this._onResult=this._register(new u.vl),this.onResult=this._onResult.event,this._standaloneColorPickerVisible.set(!0),this._standaloneColorPickerParticipant=s.createInstance(c.WE,this._editor),this._position=this._editor._getViewModel()?.getPrimaryCursorState().modelState.position;const a=this._editor.getSelection(),l=a?{startLineNumber:a.startLineNumber,startColumn:a.startColumn,endLineNumber:a.endLineNumber,endColumn:a.endColumn}:{startLineNumber:0,endLineNumber:0,endColumn:0,startColumn:0},h=this._register(_.w5(this._body));this._register(h.onDidBlur((e=>{this.hide()}))),this._register(h.onDidFocus((e=>{this.focus()}))),this._register(this._editor.onDidChangeCursorPosition((()=>{this._selectionSetInEditor?this._selectionSetInEditor=!1:this.hide()}))),this._register(this._editor.onMouseMove((e=>{const t=e.target.element?.classList;t&&t.contains("colorpicker-color-decoration")&&this.hide()}))),this._register(this.onResult((e=>{this._render(e.value,e.foundInEditor)}))),this._start(l),this._body.style.zIndex="50",this._editor.addContentWidget(this)}updateEditor(){this._colorHover&&this._standaloneColorPickerParticipant.updateEditorModel(this._colorHover)}getId(){return n.ID}getDomNode(){return this._body}getPosition(){if(!this._position)return null;const e=this._editor.getOption(60).above;return{position:this._position,secondaryPosition:this._position,preference:e?[1,2]:[2,1],positionAffinity:2}}hide(){this.dispose(),this._standaloneColorPickerVisible.set(!1),this._standaloneColorPickerFocused.set(!1),this._editor.removeContentWidget(this),this._editor.focus()}focus(){this._standaloneColorPickerFocused.set(!0),this._body.focus()}async _start(e){const t=await this._computeAsync(e);t&&this._onResult.fire(new y(t.result,t.foundInEditor))}async _computeAsync(e){if(!this._editor.hasModel())return null;const t={range:e,color:{red:0,green:0,blue:0,alpha:1}},i=await this._standaloneColorPickerParticipant.createColorHover(t,new f.L(this._editorWorkerService),this._languageFeaturesService.colorProvider);return i?{result:i.colorHover,foundInEditor:i.foundInEditor}:null}_render(e,t){const i=document.createDocumentFragment(),s={fragment:i,statusBar:this._register(new h.L(this._keybindingService)),onContentsChanged:()=>{},hide:()=>this.hide()};this._colorHover=e;const n=this._standaloneColorPickerParticipant.renderHoverParts(s,[e]);if(!n)return;this._register(n.disposables);const r=n.colorPicker;this._body.classList.add("standalone-colorpicker-body"),this._body.style.maxHeight=Math.max(this._editor.getLayoutInfo().height/4,250)+"px",this._body.style.maxWidth=Math.max(.66*this._editor.getLayoutInfo().width,500)+"px",this._body.tabIndex=0,this._body.appendChild(i),r.layout();const o=r.body,a=o.saturationBox.domNode.clientWidth,c=o.domNode.clientWidth-a-22-8,l=r.body.enterButton;l?.onClicked((()=>{this.updateEditor(),this.hide()}));const d=r.header;d.pickedColorNode.style.width=a+8+"px";d.originalColorNode.style.width=c+"px";const u=r.header.closeButton;u?.onClicked((()=>{this.hide()})),t&&(l&&(l.button.textContent="Replace"),this._selectionSetInEditor=!0,this._editor.setSelection(e.range)),this._editor.layoutContentWidget(this)}};S=n=C([E(3,l._Y),E(4,d.b),E(5,g.ILanguageFeaturesService),E(6,v.IEditorWorkerService)],S);class y{constructor(e,t){this.value=e,this.foundInEditor=t}}var w=i(27195);class R extends r.qO{constructor(){super({id:"editor.action.showOrFocusStandaloneColorPicker",title:{...(0,o.aS)("showOrFocusStandaloneColorPicker","Show or Focus Standalone Color Picker"),mnemonicTitle:(0,o.kg)({key:"mishowOrFocusStandaloneColorPicker",comment:["&& denotes a mnemonic"]},"&&Show or Focus Standalone Color Picker")},precondition:void 0,menu:[{id:w.D8.CommandPalette}],metadata:{description:(0,o.aS)("showOrFocusStandaloneColorPickerDescription","Show or focus a standalone color picker which uses the default color provider. It displays hex/rgb/hsl colors.")}})}runEditorCommand(e,t){b.get(t)?.showOrFocus()}}class L extends r.ks{constructor(){super({id:"editor.action.hideColorPicker",label:(0,o.kg)({key:"hideColorPicker",comment:["Action that hides the color picker"]},"Hide the Color Picker"),alias:"Hide the Color Picker",precondition:p.R.standaloneColorPickerVisible.isEqualTo(!0),kbOpts:{primary:9,weight:100},metadata:{description:(0,o.aS)("hideColorPickerDescription","Hide the standalone color picker.")}})}run(e,t){b.get(t)?.hide()}}class T extends r.ks{constructor(){super({id:"editor.action.insertColorWithStandaloneColorPicker",label:(0,o.kg)({key:"insertColorWithStandaloneColorPicker",comment:["Action that inserts color with standalone color picker"]},"Insert Color with Standalone Color Picker"),alias:"Insert Color with Standalone Color Picker",precondition:p.R.standaloneColorPickerFocused.isEqualTo(!0),kbOpts:{primary:3,weight:100},metadata:{description:(0,o.aS)("insertColorWithStandaloneColorPickerDescription","Insert hex/rgb/hsl colors with the focused standalone color picker.")}})}run(e,t){b.get(t)?.insertColor()}}(0,r.Fl)(L),(0,r.Fl)(T),(0,w.ug)(R)},99908:(e,t,i)=>{"use strict";i.r(t),i.d(t,{clearPlatformLanguageAssociations:()=>p,getLanguageIds:()=>m,registerPlatformLanguageAssociation:()=>g});var s=i(46958),n=i(44320),r=i(36456),o=i(74027),a=i(89403),c=i(91508),l=i(83941);let h=[],d=[],u=[];function g(e,t=!1){!function(e,t,i){const n=function(e,t){return{id:e.id,mime:e.mime,filename:e.filename,extension:e.extension,filepattern:e.filepattern,firstline:e.firstline,userConfigured:t,filenameLowercase:e.filename?e.filename.toLowerCase():void 0,extensionLowercase:e.extension?e.extension.toLowerCase():void 0,filepatternLowercase:e.filepattern?(0,s.qg)(e.filepattern.toLowerCase()):void 0,filepatternOnPath:!!e.filepattern&&e.filepattern.indexOf(o.SA.sep)>=0}}(e,t);h.push(n),n.userConfigured?u.push(n):d.push(n);i&&!n.userConfigured&&h.forEach((e=>{e.mime===n.mime||e.userConfigured||(n.extension&&e.extension===n.extension&&console.warn(`Overwriting extension <<${n.extension}>> to now point to mime <<${n.mime}>>`),n.filename&&e.filename===n.filename&&console.warn(`Overwriting filename <<${n.filename}>> to now point to mime <<${n.mime}>>`),n.filepattern&&e.filepattern===n.filepattern&&console.warn(`Overwriting filepattern <<${n.filepattern}>> to now point to mime <<${n.mime}>>`),n.firstline&&e.firstline===n.firstline&&console.warn(`Overwriting firstline <<${n.firstline}>> to now point to mime <<${n.mime}>>`))}))}(e,!1,t)}function p(){h=h.filter((e=>e.userConfigured)),d=[]}function m(e,t){return function(e,t){let i;if(e)switch(e.scheme){case r.ny.file:i=e.fsPath;break;case r.ny.data:i=a.B6.parseMetaData(e).get(a.B6.META_DATA_LABEL);break;case r.ny.vscodeNotebookCell:i=void 0;break;default:i=e.path}if(!i)return[{id:"unknown",mime:n.K.unknown}];i=i.toLowerCase();const s=(0,o.P8)(i),g=f(i,s,u);if(g)return[g,{id:l.vH,mime:n.K.text}];const p=f(i,s,d);if(p)return[p,{id:l.vH,mime:n.K.text}];if(t){const e=function(e){(0,c.LU)(e)&&(e=e.substr(1));if(e.length>0)for(let t=h.length-1;t>=0;t--){const i=h[t];if(!i.firstline)continue;const s=e.match(i.firstline);if(s&&s.length>0)return i}return}(t);if(e)return[e,{id:l.vH,mime:n.K.text}]}return[{id:"unknown",mime:n.K.unknown}]}(e,t).map((e=>e.id))}function f(e,t,i){let s,n,r;for(let o=i.length-1;o>=0;o--){const a=i[o];if(t===a.filenameLowercase){s=a;break}if(a.filepattern&&(!n||a.filepattern.length>n.filepattern.length)){const i=a.filepatternOnPath?e:t;a.filepatternLowercase?.(i)&&(n=a)}a.extension&&(!r||a.extension.length>r.extension.length)&&t.endsWith(a.extensionLowercase)&&(r=a)}return s||(n||(r||void 0))}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/114.7d7ab57f.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/2031.d8f098f9.chunk.js.LICENSE.txt index 13f1dfd641..13f1dfd641 100644 --- a/ydb/core/viewer/monitoring/static/js/114.7d7ab57f.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/2031.d8f098f9.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/2726.abc3a0c2.chunk.js b/ydb/core/viewer/monitoring/static/js/2726.abc3a0c2.chunk.js new file mode 100644 index 0000000000..829fea3284 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/2726.abc3a0c2.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 2726.abc3a0c2.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[1606,2726],{1606:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>d,language:()=>u});var o,r,i=n(80781),s=Object.defineProperty,a=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,g=Object.prototype.hasOwnProperty,l=(e,t,n,o)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let r of c(t))g.call(e,r)||r===n||s(e,r,{get:()=>t[r],enumerable:!(o=a(t,r))||o.enumerable});return e},p={};l(p,o=i,"default"),r&&l(r,o,"default");var d={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:p.languages.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:p.languages.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:p.languages.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:p.languages.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],folding:{markers:{start:new RegExp("^\\s*//\\s*#?region\\b"),end:new RegExp("^\\s*//\\s*#?endregion\\b")}}},u={defaultToken:"invalid",tokenPostfix:".ts",keywords:["abstract","any","as","asserts","bigint","boolean","break","case","catch","class","continue","const","constructor","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","implements","import","in","infer","instanceof","interface","is","keyof","let","module","namespace","never","new","null","number","object","out","package","private","protected","public","override","readonly","require","global","return","satisfies","set","static","string","super","switch","symbol","this","throw","true","try","type","typeof","undefined","unique","unknown","var","void","while","with","yield","async","await","of"],operators:["<=",">=","==","!=","===","!==","=>","+","-","**","*","/","%","++","--","<<","</",">>",">>>","&","|","^","!","~","&&","||","??","?",":","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=","@"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/,regexpesc:/\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,tokenizer:{root:[[/[{}]/,"delimiter.bracket"],{include:"common"}],common:[[/#?[a-z_$][\w$]*/,{cases:{"@keywords":"keyword","@default":"identifier"}}],[/[A-Z][\w\$]*/,"type.identifier"],{include:"@whitespace"},[/\/(?=([^\\\/]|\\.)+\/([dgimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,{token:"regexp",bracket:"@open",next:"@regexp"}],[/[()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/`/,"string","@string_backtick"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([dgimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],string_backtick:[[/\$\{/,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/`/,"string","@pop"]],bracketCounting:[[/\{/,"delimiter.bracket","@bracketCounting"],[/\}/,"delimiter.bracket","@pop"],{include:"common"}]}}},2726:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>r,language:()=>i});var o=n(1606),r=o.conf,i={defaultToken:"invalid",tokenPostfix:".js",keywords:["break","case","catch","class","continue","const","constructor","debugger","default","delete","do","else","export","extends","false","finally","for","from","function","get","if","import","in","instanceof","let","new","null","return","set","static","super","switch","symbol","this","throw","true","try","typeof","undefined","var","void","while","with","yield","async","await","of"],typeKeywords:[],operators:o.language.operators,symbols:o.language.symbols,escapes:o.language.escapes,digits:o.language.digits,octaldigits:o.language.octaldigits,binarydigits:o.language.binarydigits,hexdigits:o.language.hexdigits,regexpctl:o.language.regexpctl,regexpesc:o.language.regexpesc,tokenizer:o.language.tokenizer}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/2726.e753cb7c.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/2726.abc3a0c2.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/2726.e753cb7c.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/2726.abc3a0c2.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/2726.e753cb7c.chunk.js b/ydb/core/viewer/monitoring/static/js/2726.e753cb7c.chunk.js deleted file mode 100644 index f371c25b80..0000000000 --- a/ydb/core/viewer/monitoring/static/js/2726.e753cb7c.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 2726.e753cb7c.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[1606,2726],{2726:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>r,language:()=>i});var o=n(1606),r=o.conf,i={defaultToken:"invalid",tokenPostfix:".js",keywords:["break","case","catch","class","continue","const","constructor","debugger","default","delete","do","else","export","extends","false","finally","for","from","function","get","if","import","in","instanceof","let","new","null","return","set","static","super","switch","symbol","this","throw","true","try","typeof","undefined","var","void","while","with","yield","async","await","of"],typeKeywords:[],operators:o.language.operators,symbols:o.language.symbols,escapes:o.language.escapes,digits:o.language.digits,octaldigits:o.language.octaldigits,binarydigits:o.language.binarydigits,hexdigits:o.language.hexdigits,regexpctl:o.language.regexpctl,regexpesc:o.language.regexpesc,tokenizer:o.language.tokenizer}},1606:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>d,language:()=>u});var o,r,i=n(80781),s=Object.defineProperty,a=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,g=Object.prototype.hasOwnProperty,l=(e,t,n,o)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let r of c(t))g.call(e,r)||r===n||s(e,r,{get:()=>t[r],enumerable:!(o=a(t,r))||o.enumerable});return e},p={};l(p,o=i,"default"),r&&l(r,o,"default");var d={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:p.languages.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:p.languages.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:p.languages.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:p.languages.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],folding:{markers:{start:new RegExp("^\\s*//\\s*#?region\\b"),end:new RegExp("^\\s*//\\s*#?endregion\\b")}}},u={defaultToken:"invalid",tokenPostfix:".ts",keywords:["abstract","any","as","asserts","bigint","boolean","break","case","catch","class","continue","const","constructor","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","implements","import","in","infer","instanceof","interface","is","keyof","let","module","namespace","never","new","null","number","object","out","package","private","protected","public","override","readonly","require","global","return","satisfies","set","static","string","super","switch","symbol","this","throw","true","try","type","typeof","undefined","unique","unknown","var","void","while","with","yield","async","await","of"],operators:["<=",">=","==","!=","===","!==","=>","+","-","**","*","/","%","++","--","<<","</",">>",">>>","&","|","^","!","~","&&","||","??","?",":","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=","@"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/,regexpesc:/\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,tokenizer:{root:[[/[{}]/,"delimiter.bracket"],{include:"common"}],common:[[/#?[a-z_$][\w$]*/,{cases:{"@keywords":"keyword","@default":"identifier"}}],[/[A-Z][\w\$]*/,"type.identifier"],{include:"@whitespace"},[/\/(?=([^\\\/]|\\.)+\/([dgimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,{token:"regexp",bracket:"@open",next:"@regexp"}],[/[()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/`/,"string","@string_backtick"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([dgimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],string_backtick:[[/\$\{/,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/`/,"string","@pop"]],bracketCounting:[[/\{/,"delimiter.bracket","@bracketCounting"],[/\}/,"delimiter.bracket","@pop"],{include:"common"}]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3456.72251ae0.chunk.js b/ydb/core/viewer/monitoring/static/js/3456.72251ae0.chunk.js deleted file mode 100644 index 393ab756cd..0000000000 --- a/ydb/core/viewer/monitoring/static/js/3456.72251ae0.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[3456],{79737:(e,t,a)=>{"use strict";a.d(t,{A:()=>o,X:()=>l});var n=a(5874),r=a(77506),s=a(60712);const i=(0,r.cn)("ydb-table");function o({children:e,className:t}){return(0,s.jsx)("div",{className:i("table-header-content",t),children:e})}function l({className:e,width:t,wrapperClassName:a,...r}){return(0,s.jsx)("div",{className:i(null,a),children:(0,s.jsx)(n.W,{headerCellClassName:({column:e})=>{var t;const a=null===(t=e.columnDef.meta)||void 0===t?void 0:t.align;return i("table-header-cell",{align:a})},cellClassName:e=>{var t,a;const n=null===e||void 0===e||null===(t=e.column.columnDef.meta)||void 0===t?void 0:t.align,r=null===e||void 0===e||null===(a=e.column.columnDef.meta)||void 0===a?void 0:a.verticalAlign;return i("table-cell",{align:n,"vertical-align":r})},className:i("table",{width:t},e),...r})})}},8300:(e,t,a)=>{"use strict";a.d(t,{BB:()=>i,TL:()=>l,XT:()=>o});var n=a(43733),r=a(32138),s=a(62422);const i={...r.A,'pre[class*="language-"]':{...r.A['pre[class*="language-"]'],background:"transparent",margin:0},'code[class*="language-"]':{...r.A['code[class*="language-"]'],background:"transparent",color:"var(--g-color-text-primary)",whiteSpace:"pre-wrap"},comment:{color:"#969896"},string:{color:"#a31515"},tablepath:{color:"#338186"},function:{color:"#7a3e9d"},udf:{color:"#7a3e9d"},type:{color:"#4d932d"},boolean:{color:"#608b4e"},constant:{color:"#608b4e"},variable:{color:"#001188"}},o={...s.A,'pre[class*="language-"]':{...s.A['pre[class*="language-"]'],background:"transparent",margin:0},'code[class*="language-"]':{...s.A['code[class*="language-"]'],background:"transparent",color:"var(--g-color-text-primary)",whiteSpace:"pre-wrap"},comment:{color:"#969896"},string:{color:"#ce9178"},tablepath:{color:"#338186"},function:{color:"#9e7bb0"},udf:{color:"#9e7bb0"},type:{color:"#6A8759"},boolean:{color:"#608b4e"},constant:{color:"#608b4e"},variable:{color:"#74b0df"}};function l(e){e.languages.yql={comment:[{pattern:/--.*$/m,greedy:!0},{pattern:/\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0}],tablepath:{pattern:/(`[\w/]+`\s*\.\s*)?`[^`]+`/,greedy:!0},string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},{pattern:/@@(?:[^@]|@(?!@))*@@/,greedy:!0}],variable:[{pattern:/\$[a-zA-Z_]\w*/,greedy:!0}],function:{pattern:new RegExp(`\\b(?:${n.XB.join("|")})\\b`,"i"),greedy:!0},keyword:{pattern:new RegExp(`\\b(?:${n.RE.join("|")})\\b`,"i"),greedy:!0},udf:{pattern:/[A-Za-z_]\w*::[A-Za-z_]\w*/,greedy:!0},type:{pattern:new RegExp(`\\b(?:${n.to.join("|")})\\b`,"i"),greedy:!0},boolean:{pattern:/\b(?:true|false|null)\b/i,greedy:!0},number:{pattern:/[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?/i,greedy:!0},operator:{pattern:/[-+*/%<>!=&|^~]+|\b(?:and|or|not|is|like|ilike|rlike|in|between)\b/i,greedy:!0},punctuation:{pattern:/[;[\](){}.,]/,greedy:!0}}}l.displayName="yql",l.aliases=["yql"]},71635:(e,t,a)=>{"use strict";a.d(t,{C:()=>y});var n=a(44992),r=a(53850),s=a(62060),i=a.n(s),o=a(21334),l=a(24600);const c=o.F.injectEndpoints({endpoints:e=>({getTabletsInfo:e.query({queryFn:async(e,{signal:t})=>{try{return{data:await window.api.viewer.getTabletsInfo(e,{signal:t})}}catch(a){return{error:a}}},providesTags:["All",{type:"Tablet",id:"LIST"}]})}),overrideExisting:"throw"}),d=(0,r.Mz)((e=>e),(e=>c.endpoints.getTabletsInfo.select(e)),{argsMemoize:r.i5,argsMemoizeOptions:{equalityCheck:i()}}),u=(0,r.Mz)((e=>e),((e,t)=>d(t)),((e,t)=>t(e).data)),m=(0,r.Mz)(((e,t)=>u(e,t)),(e=>(0,l.K)(e)),((e,t)=>null!==e&&void 0!==e&&e.TabletStateInfo?t?e.TabletStateInfo.map((e=>{var a;const n=void 0===e.NodeId||null===(a=t.get(e.NodeId))||void 0===a?void 0:a.Host;return{...e,fqdn:n}})):e.TabletStateInfo:[]));var p=a(7435),h=a(90182),v=a(88616),g=a(60712);function y({nodeId:e,path:t,database:a}){const[r]=(0,h.Nt)();let s={};(0,p.f8)(e)?s={nodeId:e,database:a}:t&&(s={path:t,database:a});const{isLoading:i,error:o}=c.useGetTabletsInfoQuery(0===Object.keys(s).length?n.hT:s,{pollingInterval:r}),l=(0,h.N4)((e=>m(e,s)));return(0,g.jsx)(v.Q,{tablets:l,database:a,loading:i,error:o})}},85469:(e,t,a)=>{"use strict";a.r(t),a.d(t,{Tenant:()=>Gg});var n=a(59284),r=a(61750),s=a(67087),i=a(64689),o=a(98167),l=a(61283),c=a(77506),d=a(60712);const u=(0,c.cn)("kv-split"),m=[0,100],p=[50,50];const h=function(e){const[t,a]=n.useState(),r=t=>{const{defaultSizePaneKey:a}=e;localStorage.setItem(a,t.join(","))};return n.useEffect((()=>{const{collapsedSizes:t,triggerCollapse:n}=e;if(n){const e=t||m;r(e),a(e)}}),[e.triggerCollapse]),n.useEffect((()=>{const{triggerExpand:t,defaultSizes:n}=e,s=n||p;t&&(r(s),a(s))}),[e.triggerExpand]),(0,d.jsx)(n.Fragment,{children:(0,d.jsx)(l.A,{direction:e.direction||"horizontal",sizes:t||(()=>{var t;const{defaultSizePaneKey:a,defaultSizes:n=p,initialSizes:r}=e;if(r)return r;return(null===(t=localStorage.getItem(a))||void 0===t?void 0:t.split(",").map(Number))||n})(),minSize:e.minSize||[0,0],onDrag:t=>{const{onSplitDragAdditional:a}=e;a&&a(),r(t)},className:u(null,e.direction||"horizontal"),gutterSize:8,onDragStart:()=>{const{onSplitStartDragAdditional:t}=e;t&&t(),a(void 0)},expandToMin:!0,children:e.children})})};var v=a(40174),g=a(53850),y=a(44992);let x=function(e){return e.EPathTypeInvalid="EPathTypeInvalid",e.EPathTypeDir="EPathTypeDir",e.EPathTypeTable="EPathTypeTable",e.EPathTypePersQueueGroup="EPathTypePersQueueGroup",e.EPathTypeSubDomain="EPathTypeSubDomain",e.EPathTypeTableIndex="EPathTypeTableIndex",e.EPathTypeExtSubDomain="EPathTypeExtSubDomain",e.EPathTypeColumnStore="EPathTypeColumnStore",e.EPathTypeColumnTable="EPathTypeColumnTable",e.EPathTypeCdcStream="EPathTypeCdcStream",e.EPathTypeExternalDataSource="EPathTypeExternalDataSource",e.EPathTypeExternalTable="EPathTypeExternalTable",e.EPathTypeView="EPathTypeView",e.EPathTypeReplication="EPathTypeReplication",e}({}),b=function(e){return e.EPathSubTypeEmpty="EPathSubTypeEmpty",e.EPathSubTypeSyncIndexImplTable="EPathSubTypeSyncIndexImplTable",e.EPathSubTypeAsyncIndexImplTable="EPathSubTypeAsyncIndexImplTable",e.EPathSubTypeStreamImpl="EPathSubTypeStreamImpl",e}({});let f=function(e){return e.ColumnCodecPlain="ColumnCodecPlain",e.ColumnCodecLZ4="ColumnCodecLZ4",e.ColumnCodecZSTD="ColumnCodecZSTD",e}({});let j=function(e){return e.METERING_MODE_RESERVED_CAPACITY="METERING_MODE_RESERVED_CAPACITY",e.METERING_MODE_REQUEST_UNITS="METERING_MODE_REQUEST_UNITS",e}({});const S={[b.EPathSubTypeSyncIndexImplTable]:"index_table",[b.EPathSubTypeAsyncIndexImplTable]:"index_table",[b.EPathSubTypeStreamImpl]:void 0,[b.EPathSubTypeEmpty]:void 0},T={[x.EPathTypeInvalid]:void 0,[x.EPathTypeSubDomain]:"database",[x.EPathTypeExtSubDomain]:"database",[x.EPathTypeDir]:"directory",[x.EPathTypeColumnStore]:"directory",[x.EPathTypeTable]:"table",[x.EPathTypeTableIndex]:"index",[x.EPathTypeColumnTable]:"column_table",[x.EPathTypeCdcStream]:"stream",[x.EPathTypePersQueueGroup]:"topic",[x.EPathTypeExternalDataSource]:"external_data_source",[x.EPathTypeExternalTable]:"external_table",[x.EPathTypeView]:"view",[x.EPathTypeReplication]:"async_replication"},N={table:x.EPathTypeTable,index:x.EPathTypeTableIndex,column_table:x.EPathTypeColumnTable,external_table:x.EPathTypeExternalTable,view:x.EPathTypeView},E=(e=x.EPathTypeDir,t,a="directory")=>t&&S[t]||T[e]||a,w={[b.EPathSubTypeSyncIndexImplTable]:"Secondary Index Table",[b.EPathSubTypeAsyncIndexImplTable]:"Secondary Index Table",[b.EPathSubTypeStreamImpl]:void 0,[b.EPathSubTypeEmpty]:void 0},C={[x.EPathTypeInvalid]:void 0,[x.EPathTypeSubDomain]:"Database",[x.EPathTypeExtSubDomain]:"Database",[x.EPathTypeDir]:"Directory",[x.EPathTypeTable]:"Table",[x.EPathTypeTableIndex]:"Secondary Index",[x.EPathTypeColumnStore]:"Tablestore",[x.EPathTypeColumnTable]:"Column-oriented table",[x.EPathTypeCdcStream]:"Changefeed",[x.EPathTypePersQueueGroup]:"Topic",[x.EPathTypeExternalDataSource]:"External Data Source",[x.EPathTypeExternalTable]:"External Table",[x.EPathTypeView]:"View",[x.EPathTypeReplication]:"Async Replication"},P={UnknownTenantType:"Database",Domain:"Cluster Root",Dedicated:"Dedicated Database",Shared:"Shared Database",Serverless:"Serverless Database"},I={[x.EPathTypeTable]:!0,[x.EPathTypeColumnTable]:!0,[x.EPathTypeExternalTable]:!0,[x.EPathTypeView]:!0,[x.EPathTypeInvalid]:!1,[x.EPathTypeDir]:!1,[x.EPathTypeSubDomain]:!1,[x.EPathTypeTableIndex]:!1,[x.EPathTypeExtSubDomain]:!1,[x.EPathTypeColumnStore]:!1,[x.EPathTypeCdcStream]:!1,[x.EPathTypePersQueueGroup]:!1,[x.EPathTypeExternalDataSource]:!1,[x.EPathTypeReplication]:!1},D=e=>{var t;return null!==(t=e&&I[e])&&void 0!==t&&t},A={[b.EPathSubTypeSyncIndexImplTable]:!0,[b.EPathSubTypeAsyncIndexImplTable]:!0,[b.EPathSubTypeStreamImpl]:!1,[b.EPathSubTypeEmpty]:!1},_=e=>{var t;return null!==(t=e&&A[e])&&void 0!==t&&t},R={[x.EPathTypeColumnStore]:!0,[x.EPathTypeColumnTable]:!0,[x.EPathTypeInvalid]:!1,[x.EPathTypeDir]:!1,[x.EPathTypeTable]:!1,[x.EPathTypeSubDomain]:!1,[x.EPathTypeTableIndex]:!1,[x.EPathTypeExtSubDomain]:!1,[x.EPathTypeCdcStream]:!1,[x.EPathTypePersQueueGroup]:!1,[x.EPathTypeExternalDataSource]:!1,[x.EPathTypeExternalTable]:!1,[x.EPathTypeView]:!1,[x.EPathTypeReplication]:!1},k=e=>{var t;return null!==(t=e&&R[e])&&void 0!==t&&t},O={[x.EPathTypeSubDomain]:!0,[x.EPathTypeExtSubDomain]:!0,[x.EPathTypeInvalid]:!1,[x.EPathTypeDir]:!1,[x.EPathTypeColumnStore]:!1,[x.EPathTypeColumnTable]:!1,[x.EPathTypeTable]:!1,[x.EPathTypeTableIndex]:!1,[x.EPathTypeCdcStream]:!1,[x.EPathTypePersQueueGroup]:!1,[x.EPathTypeExternalDataSource]:!1,[x.EPathTypeExternalTable]:!1,[x.EPathTypeView]:!1,[x.EPathTypeReplication]:!1},M=e=>{var t;return null!==(t=e&&O[e])&&void 0!==t&&t},L={[x.EPathTypeCdcStream]:!0,[x.EPathTypePersQueueGroup]:!1,[x.EPathTypeInvalid]:!1,[x.EPathTypeColumnStore]:!1,[x.EPathTypeColumnTable]:!1,[x.EPathTypeDir]:!1,[x.EPathTypeTable]:!1,[x.EPathTypeSubDomain]:!1,[x.EPathTypeTableIndex]:!1,[x.EPathTypeExtSubDomain]:!1,[x.EPathTypeExternalDataSource]:!1,[x.EPathTypeExternalTable]:!1,[x.EPathTypeView]:!1,[x.EPathTypeReplication]:!1},z=e=>{var t;return null!==(t=e&&L[e])&&void 0!==t&&t},F={[b.EPathSubTypeSyncIndexImplTable]:!0,[b.EPathSubTypeAsyncIndexImplTable]:!0,[b.EPathSubTypeStreamImpl]:!1,[b.EPathSubTypeEmpty]:!1},q={[x.EPathTypeCdcStream]:!0,[x.EPathTypePersQueueGroup]:!0,[x.EPathTypeExternalDataSource]:!0,[x.EPathTypeExternalTable]:!0,[x.EPathTypeView]:!0,[x.EPathTypeReplication]:!0,[x.EPathTypeInvalid]:!1,[x.EPathTypeColumnStore]:!1,[x.EPathTypeColumnTable]:!1,[x.EPathTypeDir]:!1,[x.EPathTypeTable]:!1,[x.EPathTypeSubDomain]:!1,[x.EPathTypeTableIndex]:!1,[x.EPathTypeExtSubDomain]:!1},U=(e,t)=>{var a;return null!==(a=t&&F[t]||e&&q[e])&&void 0!==a&&a},Q=e=>e===x.EPathTypeExternalTable,$=e=>e===x.EPathTypeTable,B=e=>e===x.EPathTypeView;var H=a(21334);const G=H.F.injectEndpoints({endpoints:e=>({getMultiOverview:e.query({queryFn:async({paths:e,database:t},{signal:a})=>{try{return{data:await Promise.all(e.map((e=>window.api.viewer.getDescribe({path:e,database:t},{signal:a}))))}}catch(n){return{error:n}}},keepUnusedDataFor:0,providesTags:["All"]}),getOverview:e.query({queryFn:async({path:e,database:t,timeout:a},{signal:n})=>{try{return{data:await window.api.viewer.getDescribe({path:e,database:t,timeout:a},{signal:n})}}catch(r){return{error:r}}},keepUnusedDataFor:0,providesTags:["All","SchemaTree"]})})}),W=(0,g.Mz)((e=>e),((e,t)=>t),((e,t)=>G.endpoints.getOverview.select({path:e,database:t}))),V=(0,g.Mz)((e=>e),((e,t,a)=>W(t,a)),((e,t)=>t(e).data)),J=(0,g.Mz)([(e,t)=>t,(e,t,a)=>a,(e,t,a,n)=>((e,t,a)=>{var n,r;return null===(n=V(e,t,a))||void 0===n||null===(r=n.PathDescription)||void 0===r?void 0:r.Children})(e,t,n)],((e,t,a)=>z(t)?null===a||void 0===a?void 0:a.map((({Name:t})=>e+"/"+t)):void 0));function K({paths:e,database:t,autoRefreshInterval:a}){const[n,...r]=e,{currentData:s,isFetching:i,error:o}=G.useGetOverviewQuery({path:n,database:t},{pollingInterval:a}),{currentData:l,isFetching:c,error:d}=G.useGetMultiOverviewQuery(r.length?{paths:r,database:t}:y.hT,{pollingInterval:a});return{loading:i&&void 0===s||c&&void 0===l,error:o||d,mergedDescribe:[s,...null!==l&&void 0!==l?l:[]].reduce(((e,t)=>(null!==t&&void 0!==t&&t.Path&&(e[t.Path]=t),e)),{})}}var Y=a(29078),Z=a(76086),X=a(90182),ee=a(81288),te=a(22680),ae=a(52531),ne=a(23871),re=a(52905),se=a(90053),ie=a(67028),oe=a(18517),le=a(24555),ce=a(74321),de=a(44508),ue=a(52248),me=a(90565),pe=a(49818),he=a(56839),ve=a(61758),ge=a.n(ve),ye=a(92459),xe=a(58351);const be=(0,c.cn)("heatmap"),fe={width:0,height:0},je=10,Se=e=>{const[t,a]=n.useState(fe),{tablets:r}=e,s=n.useRef(null),i=n.useRef(null);n.useEffect((()=>{const e=s.current,a=e.getContext("2d");a.clearRect(0,0,e.offsetWidth,e.offsetHeight),r.map(function(e){return(a,n)=>{const{columnsCount:r}=t,s=n%r*12,i=12*Math.floor(n/r);e.fillStyle=a.color||"grey",e.fillRect(s,i,je,je)}}(a))})),n.useLayoutEffect((()=>{const e=i.current;if(e){const t=e.offsetWidth-15,n=Math.floor(t/12),s=Math.ceil(r.length/n);a({width:t,height:12*s,columnsCount:n,rowsCount:s})}}),[]);const o=()=>{let e=s.current,t=0;for(;e;)t+=e.offsetTop,e=e.offsetParent;return t},l=()=>{let e=s.current,t=0;for(;e;)t+=e.offsetLeft,e=e.offsetParent;return t},c=(e,a)=>{const{columnsCount:n}=t,r=Math.floor(e/12);return n*Math.floor(a/12)+r},u=ge()(((t,a)=>{const n=new CustomEvent("scroll");window.dispatchEvent(n);const s=e.parentRef.current,i=t-l()+s.scrollLeft,d=a-o()+s.scrollTop,u=c(i,d),m=r[u];if(m){const n={name:m.currentMetric,value:m.formattedValue};e.showTooltip(void 0,m,"tablet",n,{left:t-20,top:a-20})}else e.hideTooltip()}),20);return(0,d.jsx)("div",{ref:i,className:be("canvas-container"),onMouseLeave:()=>{setTimeout((()=>{e.hideTooltip()}),40)},children:(0,d.jsx)("canvas",{ref:s,width:t.width,height:t.height,onClick:t=>{const a=e.parentRef.current,n=t.clientX-l()+a.scrollLeft,s=t.clientY-o()+a.scrollTop,i=c(n,s),d=r[i];d&&window.open((e=>{const{TabletId:t}=e,a=window.location.hostname,n=(0,ye.DM)(t);return`https://${[a,xe.P8,n].map((e=>e.startsWith("/")?e.slice(1):e)).filter(Boolean).join("/")}`})(d),"_blank")},onMouseMove:e=>u(e.clientX,e.clientY)})})},Te={r:255,g:4,b:0},Ne={r:255,g:219,b:77},Ee={r:59,g:201,b:53},we={CPU:{min:0,max:1e6},Network:{min:0,max:1e9},Storage:{min:0,max:2e9},DataSize:{min:0,max:2e9},RowCount:{min:0},IndexSize:{min:0}},Ce=e=>{const t=e.toString(16);return 1===t.length?`0${t}`:t},Pe=(e,t,a)=>{if(1===e)return[t];if(2===e)return[t,a];const n=(t.r-a.r)/(e-1),r=(t.g-a.g)/(e-1),s=(t.b-a.b)/(e-1),i=[];for(let o=0;o<e;o++)i.push({r:Math.round(t.r-n*o),g:Math.round(t.g-r*o),b:Math.round(t.b-s*o)});return i.map((e=>(({r:e,g:t,b:a})=>`#${Ce(e)}${Ce(t)}${Ce(a)}`)(e)))},Ie=e=>{const t=Math.floor(e/2),a=t+1;return[...Pe(e%2===0?t:t+1,Ee,Ne),...Pe(a,Ne,Te).slice(1)]},De=(e,t)=>{const a=new Set,n=we[e]||{};t.forEach((t=>{var n;a.add(Number(null===(n=t.metrics)||void 0===n?void 0:n[e]))})),Number.isInteger(n.min)&&a.add(n.min),Number.isInteger(n.max)&&a.add(n.max);const r=Array.from(a.values()).sort(((e,t)=>e-t));return{min:r[0],max:r[r.length-1]}},Ae=(0,c.cn)("histogram"),_e=e=>{const t=n.useRef(),{data:a={},maxCount:r}=e,{count:s,leftBound:i,rightBound:o,color:l}=a,c=s/r*100;return(0,d.jsx)("div",{ref:t,className:Ae("item"),style:{backgroundColor:l,height:`${c}%`},onMouseEnter:()=>{const a=t.current;e.showTooltip(a,{count:s,leftBound:i,rightBound:o},"histogram")},onMouseLeave:e.hideTooltip})},Re=e=>{const{tablets:t,currentMetric:a}=e,{min:n,max:r}=De(a,t),s=Ie(50),i=(r-n)/50,o=s.map(((e,t)=>({color:e,count:0,leftBound:(0,he.ZV)(n+t*i),rightBound:(0,he.ZV)(n+(t+1)*i)})));let l=0;t.forEach((e=>{var t,n;const r=a&&Number(null===(t=e.metrics)||void 0===t?void 0:t[a]),s=Math.floor(r/i),c=(null===(n=o[s])||void 0===n?void 0:n.count)+1;c>l&&(l=c),o[s]={...o[s],count:c}}));return(0,d.jsx)("div",{className:Ae(),children:(0,d.jsxs)("div",{className:Ae("chart"),children:[Boolean(r)&&o.map(((t,a)=>(0,d.jsx)(_e,{data:t,maxCount:l,showTooltip:e.showTooltip,hideTooltip:e.hideTooltip},a))),(0,d.jsx)("div",{className:Ae("x-min"),children:(0,he.ZV)(n)}),(0,d.jsx)("div",{className:Ae("x-max"),children:(0,he.ZV)(r)}),(0,d.jsx)("div",{className:Ae("y-min"),children:"0"}),(0,d.jsx)("div",{className:Ae("y-max"),children:(0,he.ZV)(l)})]})})},ke=(0,c.cn)("heatmap"),Oe=Ie(500),Me=({path:e,database:t})=>{const a=(0,X.YQ)(),r=n.createRef(),[s]=(0,X.Nt)(),{currentData:i,isFetching:o,error:l}=me.f1.useGetHeatmapTabletsInfoQuery({path:e,database:t},{pollingInterval:s}),c=o&&void 0===i,{tablets:u=[],metrics:m}=i||{},{sort:p,heatmap:h,currentMetric:v}=(0,X.N4)((e=>e.heatmap)),g=(...e)=>{a((0,pe.DK)(...e))},y=()=>{a((0,pe.w7)())},x=e=>{a((0,me.nd)({currentMetric:e[0]}))},b=()=>{a((0,me.nd)({sort:!p}))},f=()=>{a((0,me.nd)({heatmap:!h}))},j=()=>{const{min:e,max:t}=De(v,u),a=u.map((a=>{var n;const r=v&&Number(null===(n=a.metrics)||void 0===n?void 0:n[v]),s=((e,t,a)=>0===a?0:Math.round((e-t)/(a-t)*499))(r,e,t),i=Oe[s];return{...a,color:i,value:r,formattedValue:(0,he.ZV)(r),currentMetric:v}})),n=p?a.sort(((e,t)=>Number(t.value)-Number(e.value))):a;return(0,d.jsx)("div",{ref:r,className:ke("items"),children:(0,d.jsx)(Se,{tablets:n,parentRef:r,showTooltip:g,hideTooltip:y})})};return c?(0,d.jsx)(ue.a,{}):(()=>{const{min:e,max:t}=De(v,u);let a;return l&&!i||(a=h?j():(0,d.jsx)(Re,{tablets:u,currentMetric:v,showTooltip:g,hideTooltip:y})),(0,d.jsxs)("div",{className:ke(),children:[(0,d.jsxs)("div",{className:ke("filters"),children:[(0,d.jsx)(le.l,{className:ke("heatmap-select"),value:v?[v]:[],options:m,onUpdate:x,width:200}),(0,d.jsx)("div",{className:ke("sort-checkbox"),children:(0,d.jsx)(ce.S,{onUpdate:b,checked:p,children:"Sort"})}),(0,d.jsx)("div",{className:ke("histogram-checkbox"),children:(0,d.jsx)(ce.S,{onUpdate:f,checked:h,children:"Heatmap"})}),(0,d.jsxs)("div",{className:ke("limits"),children:[(0,d.jsxs)("div",{className:ke("limits-block"),children:[(0,d.jsx)("div",{className:ke("limits-title"),children:"min:"}),(0,d.jsx)("div",{className:ke("limits-value"),children:Number.isInteger(e)?(0,he.ZV)(e):"\u2014"})]}),(0,d.jsxs)("div",{className:ke("limits-block"),children:[(0,d.jsx)("div",{className:ke("limits-title"),children:"max:"}),(0,d.jsx)("div",{className:ke("limits-value"),children:Number.isInteger(t)?(0,he.ZV)(t):"\u2014"})]}),(0,d.jsxs)("div",{className:ke("limits-block"),children:[(0,d.jsx)("div",{className:ke("limits-title"),children:"count:"}),(0,d.jsx)("div",{className:ke("limits-value"),children:(0,he.ZV)(u.length)})]})]})]}),l?(0,d.jsx)(de.o,{error:l}):null,a]})})()};var Le=a(7117),ze=a(59109),Fe=a(17594),qe=a(89073);const Ue=H.F.injectEndpoints({endpoints:e=>({getOperationList:e.query({queryFn:async(e,{signal:t})=>{try{return{data:await window.api.operation.getOperationList(e,{signal:t})}}catch(a){return{error:a}}},providesTags:["All"]}),cancelOperation:e.mutation({queryFn:async(e,{signal:t})=>{try{return{data:await window.api.operation.cancelOperation(e,{signal:t})}}catch(a){return{error:a}}}}),forgetOperation:e.mutation({queryFn:async(e,{signal:t})=>{try{return{data:await window.api.operation.forgetOperation(e,{signal:t})}}catch(a){return{error:a}}}})}),overrideExisting:"throw"});var Qe=a(28539),$e=a(95963),Be=a(48372);const He=JSON.parse('{"label_operations":"Operations","title_empty":"No operations data","pleaceholder_search":"Search operations","placeholder_kind":"Select operation kind","kind_ssBackgrounds":"SS/Backgrounds","kind_export":"Export","kind_buildIndex":"Build Index","column_operationId":"Operation ID","column_status":"Status","column_createdBy":"Created By","column_createTime":"Create Time","column_endTime":"End Time","column_duration":"Duration","label_duration-ongoing":"{{value}} (ongoing)","header_cancel":"Cancel operation","header_forget":"Forget operation","text_cancel":"The operation will be cancelled. Do you want to proceed?","text_forget":"The operation will be forgotten. Do you want to proceed?","text_forgotten":"The operation {{id}} has been forgotten","text_cancelled":"The operation {{id}} has been cancelled"}'),Ge=(0,Be.g4)("ydb-operations",{en:He}),We="id",Ve="status",Je="created_by",Ke="create_time",Ye="end_time",Ze="duration",Xe={[We]:Ge("column_operationId"),[Ve]:Ge("column_status"),[Je]:Ge("column_createdBy"),[Ke]:Ge("column_createTime"),[Ye]:Ge("column_endTime"),[Ze]:Ge("column_duration")},et=[{value:"export",content:Ge("kind_export")},{value:"ss/backgrounds",content:Ge("kind_ssBackgrounds")},{value:"buildindex",content:Ge("kind_buildIndex")}],tt=(0,c.cn)("operations");function at({kind:e,searchValue:t,entitiesCountCurrent:a,entitiesCountTotal:r,entitiesLoading:s,handleKindChange:i,handleSearchChange:o}){return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)($e.v,{value:t,onChange:o,placeholder:Ge("pleaceholder_search"),className:tt("search")}),(0,d.jsx)(le.l,{value:[e],width:150,options:et,onUpdate:e=>i(e[0])}),(0,d.jsx)(Qe.T,{label:Ge("label_operations"),loading:s,total:r,current:a})]})}var nt=a(14750),rt=a(58272),st=a(45345),it=a(98089),ot=a(87184),lt=a(18650),ct=a(99991),dt=a(22983),ut=a(71661);let mt=function(e){return e.STATUS_CODE_UNSPECIFIED="STATUS_CODE_UNSPECIFIED",e.SUCCESS="SUCCESS",e.BAD_REQUEST="BAD_REQUEST",e.UNAUTHORIZED="UNAUTHORIZED",e.INTERNAL_ERROR="INTERNAL_ERROR",e.ABORTED="ABORTED",e.UNAVAILABLE="UNAVAILABLE",e.OVERLOADED="OVERLOADED",e.SCHEME_ERROR="SCHEME_ERROR",e.GENERIC_ERROR="GENERIC_ERROR",e.TIMEOUT="TIMEOUT",e.BAD_SESSION="BAD_SESSION",e.PRECONDITION_FAILED="PRECONDITION_FAILED",e.ALREADY_EXISTS="ALREADY_EXISTS",e.NOT_FOUND="NOT_FOUND",e.SESSION_EXPIRED="SESSION_EXPIRED",e.CANCELLED="CANCELLED",e.UNDETERMINED="UNDETERMINED",e.UNSUPPORTED="UNSUPPORTED",e.SESSION_BUSY="SESSION_BUSY",e.EXTERNAL_ERROR="EXTERNAL_ERROR",e}({});var pt=a(59625);const ht=function({name:e,title:t,type:a,content:n}){return pt.X.add({name:null!==e&&void 0!==e?e:"Request succeeded",title:null!==t&&void 0!==t?t:"Request succeeded",theme:"error"===a?"danger":"success",content:n,isClosable:!0,autoHiding:"success"===a&&5e3})};var vt=a(73891);function gt({database:e,refreshTable:t}){return[{name:We,header:Xe[We],width:340,render:({row:e})=>e.id?(0,d.jsx)(ut.s,{placement:["top","bottom"],content:e.id,children:e.id}):Z.Pd},{name:Ve,header:Xe[Ve],render:({row:e})=>e.status?(0,d.jsx)(it.E,{color:e.status===mt.SUCCESS?"positive":"danger",children:e.status}):Z.Pd},{name:Je,header:Xe[Je],render:({row:e})=>e.created_by?e.created_by:Z.Pd},{name:Ke,header:Xe[Ke],render:({row:e})=>e.create_time?(0,he.r6)((0,vt.ee)(e.create_time)):Z.Pd,sortAccessor:e=>e.create_time?(0,vt.ee)(e.create_time):0},{name:Ye,header:Xe[Ye],render:({row:e})=>e.end_time?(0,he.r6)((0,vt.ee)(e.end_time)):Z.Pd,sortAccessor:e=>e.end_time?(0,vt.ee)(e.end_time):Number.MAX_SAFE_INTEGER},{name:Ze,header:Xe[Ze],render:({row:e})=>{let t=0;if(!e.create_time)return Z.Pd;const a=(0,vt.ee)(e.create_time);if(e.end_time){t=(0,vt.ee)(e.end_time)-a}else t=Date.now()-a;const n=t>Z.Jg*Z.KF?(0,nt.p0)(t).format("hh:mm:ss"):(0,nt.p0)(t).format("mm:ss");return e.end_time?n:Ge("label_duration-ongoing",{value:n})},sortAccessor:e=>{if(!e.create_time)return 0;const t=(0,vt.ee)(e.create_time);if(e.end_time){return(0,vt.ee)(e.end_time)-t}return Date.now()-t}},{name:"Actions",sortable:!1,resizeable:!1,header:"",render:({row:a})=>(0,d.jsx)(yt,{operation:a,database:e,refreshTable:t})}]}function yt({operation:e,database:t,refreshTable:a}){const[n,{isLoading:r}]=Ue.useCancelOperationMutation(),[s,{isLoading:i}]=Ue.useForgetOperationMutation(),o=e.id;return o?(0,d.jsxs)(ot.s,{gap:"2",children:[(0,d.jsx)(lt.m,{title:Ge("header_forget"),placement:["left","auto"],children:(0,d.jsx)("div",{children:(0,d.jsx)(dt.B,{buttonView:"outlined",dialogHeader:Ge("header_forget"),dialogText:Ge("text_forget"),onConfirmAction:()=>s({id:o,database:t}).unwrap().then((()=>{ht({name:"Forgotten",title:Ge("text_forgotten",{id:o}),type:"success"}),a()})),buttonDisabled:r,children:(0,d.jsx)(ct.I,{data:rt.A})})})}),(0,d.jsx)(lt.m,{title:Ge("header_cancel"),placement:["right","auto"],children:(0,d.jsx)("div",{children:(0,d.jsx)(dt.B,{buttonView:"outlined",dialogHeader:Ge("header_cancel"),dialogText:Ge("text_cancel"),onConfirmAction:()=>n({id:o,database:t}).unwrap().then((()=>{ht({name:"Cancelled",title:Ge("text_cancelled",{id:o}),type:"success"}),a()})),buttonDisabled:i,children:(0,d.jsx)(ct.I,{data:st.A})})})})]}):null}var xt=a(370);const bt=xt.z.enum(["ss/backgrounds","export","buildindex"]).catch("buildindex");function ft({database:e}){var t;const[a]=(0,X.Nt)(),{kind:r,searchValue:i,pageSize:o,pageToken:l,handleKindChange:c,handleSearchChange:u}=function(){var e,t,a;const[n,r]=(0,s.useQueryParams)({kind:s.StringParam,search:s.StringParam,pageSize:s.NumberParam,pageToken:s.StringParam});return{kind:bt.parse(n.kind),searchValue:null!==(e=n.search)&&void 0!==e?e:"",pageSize:null!==(t=n.pageSize)&&void 0!==t?t:void 0,pageToken:null!==(a=n.pageToken)&&void 0!==a?a:void 0,handleKindChange:e=>{r({kind:e},"replaceIn")},handleSearchChange:e=>{r({search:e||void 0},"replaceIn")},handlePageSizeChange:e=>{r({pageSize:e},"replaceIn")},handlePageTokenChange:e=>{r({pageToken:e},"replaceIn")}}}(),{data:m,isLoading:p,error:h,refetch:v}=Ue.useGetOperationListQuery({database:e,kind:r,page_size:o,page_token:l},{pollingInterval:a}),g=n.useMemo((()=>null!==m&&void 0!==m&&m.operations?m.operations.filter((e=>{var t;return null===(t=e.id)||void 0===t?void 0:t.toLowerCase().includes(i.toLowerCase())})):[]),[null===m||void 0===m?void 0:m.operations,i]);return(0,ee.Pq)(h)?(0,d.jsx)(ze.O,{position:"left"}):(0,d.jsxs)(qe.L,{children:[(0,d.jsx)(qe.L.Controls,{children:(0,d.jsx)(at,{kind:r,searchValue:i,entitiesCountCurrent:g.length,entitiesCountTotal:null===m||void 0===m||null===(t=m.operations)||void 0===t?void 0:t.length,entitiesLoading:p,handleKindChange:c,handleSearchChange:u})}),h?(0,d.jsx)(de.o,{error:h}):null,(0,d.jsx)(qe.L.Table,{loading:p,className:tt("table"),children:m?(0,d.jsx)(Fe.l,{columns:gt({database:e,refreshTable:v}),columnsWidthLSKey:"selectedOperationColumns",data:g,emptyDataMessage:Ge("title_empty")}):null})]})}var jt=a(99936),St=a(71635),Tt=a(19228),Nt=a(11822);function Et(e){return`SELECT * FROM \`${e}\` LIMIT 0`}const wt=H.F.injectEndpoints({endpoints:e=>({getViewSchema:e.query({queryFn:async({database:e,path:t,timeout:a})=>{try{var n,r;const s=await window.api.viewer.sendQuery({query:Et(t),database:e,action:"execute-scan",timeout:a},{withRetries:!0});return(0,Nt.We)(s)?{error:s}:{data:(null===s||void 0===s||null===(n=s.result)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.columns)||[]}}catch(s){return{error:s}}},providesTags:["All","SchemaTree"]})}),overrideExisting:"throw"});var Ct=a(47665),Pt=a(24543);const It=JSON.parse('{"column-title.id":"Id","column-title.name":"Name","column-title.type":"Type","column-title.notNull":"NotNull","column-title.autoIncrement":"AutoIncrement","column-title.defaultValue":"Default","column-title.family":"Family","column-title.media":"Media","column-title.compression":"Compression","primary-key.title":"Primary key:","partitioning-key.title":"Partitioning key:"}'),Dt=(0,Be.g4)("ydb-schema-viewer",{en:It}),At=(0,c.cn)("schema-viewer");const _t=({tableData:e,extended:t,type:a})=>{const n="primary"===a?function(e){return e.filter((e=>Boolean(void 0!==e.keyColumnIndex&&-1!==e.keyColumnIndex&&e.name))).sort(((e,t)=>e.keyColumnIndex-t.keyColumnIndex)).map((e=>e.name))}(e):function(e){return e.filter((e=>Boolean(void 0!==e.partitioningColumnIndex&&-1!==e.partitioningColumnIndex&&e.name))).sort(((e,t)=>e.partitioningColumnIndex-t.partitioningColumnIndex)).map((e=>e.name))}(e),r=t?3:n.length,s=n.slice(0,r),i=n.slice(r);return n.length>0?(0,d.jsxs)("div",{className:At("keys",{summary:!t,type:a}),children:[(0,d.jsx)("div",{className:At("keys-header"),children:Dt("primary"===a?"primary-key.title":"partitioning-key.title")}),(0,d.jsxs)("div",{className:At("keys-values"),children:[" "+s.join(", "),i.length?(0,d.jsx)(Pt.u,{className:At("more-badge"),placement:["bottom"],hasArrow:!1,pinOnClick:!0,content:(0,d.jsx)("div",{className:At("popup-content"),children:i.map((e=>(0,d.jsx)("div",{className:At("popup-item"),children:e},e)))}),children:(0,d.jsx)(Ct.J,{className:At("keys-label"),children:`+${i.length}`})}):null]})]}):null};var Rt=a(4557);function kt({data:e,name:t,header:a,sortable:n}){const r="string"===typeof a?a.length:t.length;let s=n?r+2:r;if(e)for(const i of e){let e=0;if(i[t]&&(e=String(i[t]).length),s=Math.max(s,e),10*s+20>=600)return 600}return 10*s+20}var Ot=a(34671);const Mt="name",Lt="type",zt="notNull",Ft="autoIncrement",qt="defaultValue",Ut="familyName",Qt="prefferedPoolKind",$t="columnCodec",Bt={name:"id",get header(){return Dt("column-title.id")},width:60,align:Rt.Ay.RIGHT,render:({row:e})=>{const t=(0,d.jsx)(ct.I,{className:At("key-icon"),size:12,data:Ot.A});return(0,d.jsxs)("span",{className:At("id-wrapper"),children:[e.id,void 0===e.keyColumnIndex||-1===e.keyColumnIndex?null:t]})}},Ht={name:Mt,get header(){return Dt("column-title.name")},width:120,render:({row:e})=>e.name},Gt={name:Lt,get header(){return Dt("column-title.type")},width:100,render:({row:e})=>e.type},Wt={name:zt,get header(){return Dt("column-title.notNull")},width:100,defaultOrder:Rt.Ay.DESCENDING,render:({row:e})=>{if(e.notNull)return"\u2713"}},Vt={name:Ft,get header(){return Dt("column-title.autoIncrement")},width:100,defaultOrder:Rt.Ay.DESCENDING,render:({row:e})=>{if(e.autoIncrement)return"\u2713"}},Jt={name:qt,get header(){return Dt("column-title.defaultValue")},width:100,render:({row:e})=>String(e.defaultValue)},Kt={name:Ut,get header(){return Dt("column-title.family")},width:100,render:({row:e})=>e.familyName},Yt={name:Qt,get header(){return Dt("column-title.media")},width:100,render:({row:e})=>e.prefferedPoolKind},Zt={name:$t,get header(){return Dt("column-title.compression")},width:130,render:({row:e})=>e.columnCodec};function Xt(e,t){if(!t)return e;const a=t.slice(0,100);return e.map((e=>({...e,width:kt({data:a,name:e.name,header:"string"===typeof e.header?e.header:void 0,sortable:e.sortable||void 0===e.sortable})})))}function ea(e={}){const t=function(e){var t,a,n;return null!==(t=null===e||void 0===e||null===(a=e.PartitionConfig)||void 0===a||null===(n=a.ColumnFamilies)||void 0===n?void 0:n.reduce(((e,t)=>t.Id?{...e,[t.Id]:t}:e),{}))&&void 0!==t?t:{}}(e),{Columns:a,KeyColumnNames:n}=e,r=null===a||void 0===a?void 0:a.map((e=>{var a,r,s,i;const{Id:o,Name:l,NotNull:c,Type:d,Family:u,DefaultFromSequence:m,DefaultFromLiteral:p}=e,h=null!==(a=null===n||void 0===n?void 0:n.findIndex((e=>e===l)))&&void 0!==a?a:-1,v=u?t[u].Name:void 0,g=u?null===(r=t[u].StorageConfig)||void 0===r||null===(s=r.Data)||void 0===s?void 0:s.PreferredPoolKind:void 0,y=u?function(e){if(e)return e===f.ColumnCodecPlain?"None":e.replace("ColumnCodec","").toLocaleLowerCase()}(t[u].ColumnCodec):void 0;return{id:o,name:l,keyColumnIndex:h,type:d,notNull:c,autoIncrement:Boolean(m),defaultValue:null!==(i=Object.values((null===p||void 0===p?void 0:p.value)||{})[0])&&void 0!==i?i:"-",familyName:v,prefferedPoolKind:g,columnCodec:y}}));return null!==r&&void 0!==r?r:[]}function ta(e,t){const{Table:a,ColumnTableDescription:n,ExternalTableDescription:r}=(null===t||void 0===t?void 0:t.PathDescription)||{};return $(e)?ea(a):k(e)?function(e={}){const{Schema:t={},Sharding:a={}}=e,{Columns:n,KeyColumnNames:r}=t,{HashSharding:s={}}=a,{Columns:i=[]}=s,o=null===n||void 0===n?void 0:n.map((e=>{var t,a;const{Id:n,Name:s,Type:o,NotNull:l}=e,c=null!==(t=null===r||void 0===r?void 0:r.findIndex((e=>e===s)))&&void 0!==t?t:-1,d=null!==(a=null===i||void 0===i?void 0:i.findIndex((e=>e===s)))&&void 0!==a?a:-1;return{id:n,name:s,keyColumnIndex:c,partitioningColumnIndex:d,type:o,notNull:l}}));return[...(null===o||void 0===o?void 0:o.filter((e=>-1!==e.keyColumnIndex)))||[],...(null===o||void 0===o?void 0:o.filter((e=>-1===e.keyColumnIndex)))||[]]}(n):Q(e)?function(e={}){const{Columns:t}=e;return(null===t||void 0===t?void 0:t.map((e=>{const{Id:t,Name:a,Type:n,NotNull:r}=e;return{id:t,name:a,type:n,notNull:r}})))||[]}(r):[]}function aa(e){return(null===e||void 0===e?void 0:e.map((e=>{var t;return{type:null!==(t=e.type)&&void 0!==t&&t.endsWith("?")?e.type.slice(0,-1):e.type,name:e.name}})))||[]}const na=({type:e,path:t,tenantName:a,extended:r=!1})=>{const[s]=(0,X.Nt)(),i=r?s:void 0,{currentData:o,isLoading:l}=G.useGetOverviewQuery({path:t,database:a},{pollingInterval:i}),c=B(e)?{path:t,database:a}:y.hT,{data:u,isLoading:m}=wt.useGetViewSchemaQuery(c,{pollingInterval:i}),p=n.useMemo((()=>B(e)?aa(u):ta(e,o)),[o,e,u]),h=n.useMemo((()=>p.some((e=>e.autoIncrement))),[p]),v=n.useMemo((()=>p.some((e=>e.defaultValue))),[p]),g=n.useMemo((()=>B(e)?Xt([Ht,Gt],p):Q(e)||k(e)?function(e){return Xt([Bt,Ht,Gt,Wt],e)}(p):$(e)?function(e,t,a,n){const r=[Bt,Ht,Gt,Wt];return n&&r.push(Jt),t&&r.push(Kt,Yt,Zt),a&&r.push(Vt),Xt(r,e)}(p,r,h,v):[]),[e,r,h,v,p]);return l||m?(0,d.jsx)(Tt.Q,{}):(0,d.jsxs)(n.Fragment,{children:[(0,d.jsxs)("div",{className:At("keys-wrapper"),children:[(0,d.jsx)(_t,{tableData:p,extended:r,type:"primary"}),(0,d.jsx)(_t,{tableData:p,extended:r,type:"partitioning"})]}),(0,d.jsx)("div",{className:At(),children:(0,d.jsx)(Fe.l,{columnsWidthLSKey:"schemaTableColumnsWidth",data:p,columns:g,settings:Z.N3})})]})};var ra=a(54309),sa=a(96589),ia=a(84375),oa=a(85589);const la=JSON.parse('{"td-feature-flag":"Feature flag","td-default":"Default","td-current":"Current","enabled":"Enabled","disabled":"Disabled","flag-touched":"Flag is changed","search-placeholder":"Search by feature flag","search-empty":"Empty search result","no-data":"No data"}'),ca=(0,Be.g4)("ydb-diagnostics-configs",{en:la}),da=(0,c.cn)("ydb-diagnostics-configs"),ua=[{name:"Touched",header:"",render:({row:e})=>e.Current?(0,d.jsx)(ia.A,{content:ca("flag-touched"),className:da("icon-touched"),placement:"left",children:(0,d.jsx)(ct.I,{data:sa.A})}):null,width:36,sortable:!1,resizeable:!1},{name:"Name",get header(){return ca("td-feature-flag")},render:({row:e})=>e.Current?(0,d.jsx)("b",{children:e.Name}):e.Name,width:400,sortable:!0,sortAccessor:({Current:e,Name:t})=>Number(!e)+t.toLowerCase()},{name:"Default",get header(){return ca("td-default")},render:({row:e})=>{switch(e.Default){case!0:return ca("enabled");case!1:return ca("disabled");default:return"-"}},width:100,sortable:!1,resizeable:!1},{name:"Current",get header(){return ca("td-current")},render:({row:e})=>{var t;return(0,d.jsx)(oa.d,{disabled:!0,checked:(null!==(t=e.Current)&&void 0!==t?t:e.Default)||!1})},width:100,sortable:!1,resizeable:!1}],ma=({database:e})=>{const[t,a]=(0,s.useQueryParam)("search",s.StringParam),[n]=(0,X.Nt)(),{currentData:r=[],isLoading:i,error:o}=oe.z6.useGetClusterConfigQuery({database:e},{pollingInterval:n}),l=null===t||void 0===t?void 0:t.toLocaleLowerCase(),c=l?r.filter((e=>e.Name.toLocaleLowerCase().includes(l))):r;return(0,d.jsxs)(qe.L,{children:[(0,d.jsx)(qe.L.Controls,{children:(0,d.jsx)($e.v,{value:l,onChange:e=>{a(e||void 0,"replaceIn")},placeholder:ca("search-placeholder")})}),(0,d.jsx)(qe.L.Table,{loading:i,children:o?(0,d.jsx)(de.o,{error:o}):(0,d.jsx)(Fe.l,{emptyDataMessage:ca(l?"search-empty":"no-data"),columnsWidthLSKey:"featureFlagsColumnsWidth",columns:ua,data:c,settings:Z.N3})})]})};var pa=a(23536),ha=a.n(pa),va=a(46549);const ga=H.F.injectEndpoints({endpoints:e=>({getTopic:e.query({queryFn:async e=>{try{const t=await window.api.viewer.getTopic(e);return"object"!==typeof t?{error:{}}:{data:t}}catch(t){return{error:t}}},providesTags:["All"]})}),overrideExisting:"throw"}),ya=(0,g.Mz)((e=>e),((e,t)=>t),((e,t)=>ga.endpoints.getTopic.select({path:e,database:t}))),xa=(0,g.Mz)((e=>e),((e,t,a)=>ya(t,a)),((e,t)=>{var a;return null===(a=t(e).data)||void 0===a?void 0:a.topic_stats})),ba=(0,g.Mz)((e=>e),((e,t,a)=>ya(t,a)),((e,t)=>{var a;return null===(a=t(e).data)||void 0===a?void 0:a.consumers})),fa=(0,g.Mz)(ba,(e=>null===e||void 0===e?void 0:e.map((e=>null===e||void 0===e?void 0:e.name)).filter((e=>void 0!==e)))),ja=(0,g.Mz)(xa,(e=>{if(!e)return;const{store_size_bytes:t="0",min_last_write_time:a,max_write_time_lag:n,bytes_written:r}=e||{};return{storeSize:t,partitionsIdleTime:(0,vt.MC)(a),partitionsWriteLag:(0,vt.i6)(n),writeSpeed:(0,va.ey)(r)}})),Sa=(0,g.Mz)(ba,(e=>null===e||void 0===e?void 0:e.map((e=>{const{name:t,consumer_stats:a}=e||{},{min_partitions_last_read_time:n,max_read_time_lag:r,max_write_time_lag:s,bytes_read:i}=a||{};return{name:t,readSpeed:(0,va.ey)(i),writeLag:(0,vt.i6)(s),readLag:(0,vt.i6)(r),readIdleTime:(0,vt.MC)(n)}})))),Ta=JSON.parse('{"averageSpeed":"Average speed","perMinute":"per minute","perHour":"per hour","perDay":"per day"}'),Na=JSON.parse('{"averageSpeed":"\u0421\u0440\u0435\u0434\u043d\u044f\u044f \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c","perMinute":"\u0437\u0430 \u043c\u0438\u043d\u0443\u0442\u0443","perHour":"\u0437\u0430 \u0447\u0430\u0441","perDay":"\u0437\u0430 \u0434\u0435\u043d\u044c"}'),Ea=(0,Be.g4)("ydb-components-speed-multimeter",{ru:Na,en:Ta}),wa=(0,c.cn)("speed-multimeter"),Ca=({data:e,speedSize:t="kb",withValue:a=!0,withPopover:r=!0})=>{const{perMinute:s=0,perHour:i=0,perDay:o=0}=e||{},l=[s,i,o],c=e=>(0,va.z3)({value:e,size:t,withSpeedLabel:!0}),u=[{value:c(s),label:Ea("perMinute")},{value:c(i),label:Ea("perHour")},{value:c(o),label:Ea("perDay")}],[m,p]=n.useState(s),[h,v]=n.useState(a?0:void 0),[g,y]=n.useState(),x=(e,t)=>{p(e[t]),v(t),y(t)},b=e=>h===e,f=e=>g===e;return(0,d.jsx)("div",{className:wa(),children:(0,d.jsxs)("div",{className:wa("content"),children:[a&&(0,d.jsx)("div",{className:wa("displayed-value"),children:c(m)}),(0,d.jsx)(ia.A,{content:(0,d.jsxs)("div",{className:wa("popover-content"),children:[(0,d.jsx)("span",{className:wa("popover-header"),children:Ea("averageSpeed")}),u.map(((e,t)=>{return(0,d.jsx)("span",{className:wa("popover-row",(a=b(t),a?{color:"primary"}:{color:"secondary"})),children:`${e.label}: ${e.value}`},t);var a}))]}),className:wa("popover-container"),placement:"bottom",disabled:!r,hasArrow:!0,size:"s",children:(0,d.jsx)("div",{className:wa("bars"),onMouseLeave:()=>{p(s),v(a?0:void 0),y(void 0)},children:(()=>{const e=Math.max(...l,0)||1;return l.map(((t,a)=>(0,d.jsx)("div",{className:wa("bar-container",{highlighted:f(a)}),onMouseEnter:x.bind(null,l,a),children:(0,d.jsx)("div",{className:wa("bar",{color:b(a)?"dark":"light"}),style:{width:100*t/e+"%"}})},a)))})()})})]})})},Pa=(0,c.cn)("ydb-diagnostics-consumers-topic-stats"),Ia=({data:e})=>{const{writeSpeed:t,partitionsWriteLag:a,partitionsIdleTime:n}=e||{},r=[{label:"Write speed",value:(0,d.jsx)(Ca,{data:t})},{label:"Write lag",value:(0,he.lr)(a||0)},{label:"Write idle time",value:(0,he.lr)(n||0)}];return(0,d.jsx)("div",{className:Pa("wrapper"),children:r.map(((e,t)=>(0,d.jsxs)("div",{className:Pa("item"),children:[(0,d.jsx)("div",{className:Pa("label"),children:e.label}),(0,d.jsx)("div",{className:Pa("value"),children:e.value})]},t)))})};var Da=a(74309),Aa=a.n(Da),_a=a(44294),Ra=a(6170);const ka=({text:e,popoverContent:t,popoverClassName:a,className:n,contentClassName:r,buttonProps:s})=>(0,d.jsxs)("div",{className:n,children:[e,"\xa0",(0,d.jsx)(Ra.B,{className:a,buttonProps:s,content:t,contentClassName:r})]}),Oa=70,Ma=54,La=268,za="#ADE8F5",Fa="#f5be9d",qa=({width:e,height:t,transform:a})=>(0,d.jsx)("path",{d:`M-${e/2} 0 c0 -${t}, ${e} -${t}, ${e} 0`,fill:"none",strokeDasharray:"4,6",stroke:"#28f",strokeWidth:"1.6",transform:a}),Ua=({width:e})=>(0,d.jsx)("path",{fill:"none",strokeWidth:"2",d:`M0 0 h${e} l-10 -5 m0 10 l10 -5`}),Qa=()=>(0,d.jsxs)("g",{fill:"var(--g-color-text-primary)",fontSize:"12",children:[(0,d.jsx)("g",{transform:"translate(0, 27)",stroke:Fa,children:(0,d.jsx)(Ua,{width:203})}),(0,d.jsxs)("g",{transform:"translate(30, 0)",children:[(0,d.jsxs)("g",{transform:"translate(35, 27)",children:[(0,d.jsx)(qa,{width:Oa,height:15}),(0,d.jsx)("text",{x:"0",y:"-15",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"write lag"})})]}),(0,d.jsxs)("g",{transform:"translate(119, 27)",children:[(0,d.jsx)(qa,{width:98,height:15}),(0,d.jsx)("text",{x:"0",y:"-15",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"write idle time"})})]})]}),(0,d.jsxs)("g",{transform:"translate(30, 0)",children:[(0,d.jsxs)("g",{transform:"translate(0, 27)",children:[(0,d.jsx)("use",{y:"-10",xlinkHref:"#check",stroke:Fa}),(0,d.jsx)("text",{x:"0",y:"20",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"create time"})})]}),(0,d.jsxs)("g",{transform:"translate(70, 27)",children:[(0,d.jsx)("use",{y:"-10",xlinkHref:"#check",stroke:Fa}),(0,d.jsx)("text",{x:"0",y:"20",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"write time"})})]}),(0,d.jsx)("g",{transform:"translate(168, 27)",children:(0,d.jsx)("text",{x:"0",y:"20",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"now"})})})]})]}),$a=()=>(0,d.jsxs)("g",{fill:"var(--g-color-text-primary)",fontSize:"12",children:[(0,d.jsx)("g",{transform:"translate(0, 27)",stroke:za,children:(0,d.jsx)(Ua,{width:La})}),(0,d.jsxs)("g",{transform:"translate(30, 0)",children:[(0,d.jsxs)("g",{transform:"translate(105, 27)",children:[(0,d.jsx)(qa,{width:Oa,height:15}),(0,d.jsx)("text",{x:"0",y:"-15",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"read lag"})})]}),(0,d.jsxs)("g",{transform:"translate(35, 27)",children:[(0,d.jsx)(qa,{width:Oa,height:15}),(0,d.jsx)("text",{x:"0",y:"-15",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"write lag"})})]}),(0,d.jsxs)("g",{transform:"translate(182, 27)",children:[(0,d.jsx)(qa,{width:91,height:15}),(0,d.jsx)("text",{x:"0",y:"-15",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"read idle time"})})]})]}),(0,d.jsxs)("g",{transform:"translate(30, 27)",children:[(0,d.jsxs)("g",{transform:"translate(0, 0)",children:[(0,d.jsx)("use",{y:"-10",xlinkHref:"#check",stroke:za}),(0,d.jsx)("text",{x:"0",y:"20",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"create time"})})]}),(0,d.jsxs)("g",{transform:"translate(70, 0)",children:[(0,d.jsx)("use",{y:"-10",xlinkHref:"#check",stroke:za}),(0,d.jsx)("text",{x:"0",y:"20",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"write time"})})]}),(0,d.jsxs)("g",{transform:"translate(140, 0)",children:[(0,d.jsx)("use",{x:"-2",y:"-10",xlinkHref:"#check",stroke:za}),(0,d.jsx)("text",{x:"0",y:"20",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"read time"})})]}),(0,d.jsx)("g",{transform:"translate(224, 0)",children:(0,d.jsx)("text",{x:"0",y:"20",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"now"})})})]})]}),Ba=({id:e,fill:t})=>(0,d.jsx)("pattern",{id:e,x:"0",y:"0",width:"8",height:"8",patternUnits:"userSpaceOnUse",children:(0,d.jsx)("path",{d:"M0 5L5 0H8L0 8V5M5 8L8 5V8Z",fill:t})}),Ha=()=>(0,d.jsxs)("svg",{className:"paint",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 268 54",width:La,height:Ma,children:[(0,d.jsxs)("defs",{children:[(0,d.jsx)("g",{id:"check",children:(0,d.jsx)("path",{d:"M0 3 v14",strokeWidth:"2"})}),(0,d.jsx)(Ba,{id:"latest-read",fill:za}),(0,d.jsx)(Ba,{id:"latest-write",fill:Fa})]}),(0,d.jsx)(Qa,{})]}),Ga=()=>(0,d.jsxs)("svg",{className:"paint",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 268 54",width:La,height:Ma,children:[(0,d.jsxs)("defs",{children:[(0,d.jsx)("g",{id:"check",children:(0,d.jsx)("path",{d:"M0 3 v14",strokeWidth:"2"})}),(0,d.jsx)(Ba,{id:"latest-read",fill:za}),(0,d.jsx)(Ba,{id:"latest-write",fill:Fa})]}),(0,d.jsx)($a,{})]}),Wa=(0,c.cn)("ydb-lag-popover-content"),Va=({text:e,type:t})=>(0,d.jsxs)("div",{className:Wa({type:t}),children:[(0,d.jsx)("div",{className:Wa("text"),children:e}),(0,d.jsx)("div",{children:"read"===t?(0,d.jsx)(Ga,{}):(0,d.jsx)(Ha,{})})]}),Ja=JSON.parse('{"noConsumersMessage.topic":"This topic has no consumers","noConsumersMessage.stream":"This changefeed has no consumers","lagsPopover.readLags":"Read lags statistics, maximum among all consumer partitions (time format dd hh:mm:ss)","table.emptyDataMessage":"No consumers match the current search","controls.search":"Consumer"}'),Ka=JSON.parse('{"noConsumersMessage.topic":"\u0423 \u044d\u0442\u043e\u0433\u043e \u0442\u043e\u043f\u0438\u043a\u0430 \u043d\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439","noConsumersMessage.stream":"\u0423 \u044d\u0442\u043e\u0433\u043e \u0441\u0442\u0440\u0438\u043c\u0430 \u043d\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439","lagsPopover.readLags":"\u0421\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u043b\u0430\u0433\u043e\u0432 \u0447\u0442\u0435\u043d\u0438\u044f, \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u0440\u0435\u0434\u0438 \u0432\u0441\u0435\u0445 \u043f\u0430\u0440\u0442\u0438\u0446\u0438\u0439 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044f (\u0444\u043e\u0440\u043c\u0430\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0434\u0434 \u0447\u0447:\u043c\u043c:\u0441\u0441)","table.emptyDataMessage":"\u041f\u043e \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u043c\u0443 \u043f\u043e\u0438\u0441\u043a\u0443 \u043d\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439","controls.search":"Consumer"}'),Ya=(0,Be.g4)("ydb-diagnostics-consumers",{ru:Ka,en:Ja}),Za="consumer",Xa="readSpeed",en="readLags",tn={[Za]:"Consumer",[Xa]:"Read speed",[en]:"Read lags, duration"},an="writeLag",nn="readLag",rn="readIdleTime",sn={[an]:"write lag",[nn]:"read lag",[rn]:"read idle time"},on=(0,c.cn)("ydb-diagnostics-consumers-columns-header"),ln=()=>(0,d.jsx)(ka,{className:on("lags"),text:tn[en],popoverContent:(0,d.jsx)(Va,{text:Ya("lagsPopover.readLags"),type:"read"})}),cn=(0,c.cn)("ydb-diagnostics-consumers-columns"),dn=[{name:Za,header:tn[Za],align:Rt.Ay.LEFT,render:({row:e})=>{if(!e.name)return"\u2013";const t=Aa().parse(location.search,{ignoreQueryPrefix:!0});return(0,d.jsx)(_a.E,{to:(0,ra.YL)({...t,[ra.vh.diagnosticsTab]:ae.iJ.partitions,selectedConsumer:e.name}),children:e.name})}},{name:Xa,header:tn[Xa],align:Rt.Ay.RIGHT,resizeMinWidth:140,sortAccessor:e=>e.readSpeed.perMinute,render:({row:e})=>(0,d.jsx)(Ca,{data:e.readSpeed})},{name:en,header:(0,d.jsx)(ln,{}),className:cn("lags-header"),sub:[{name:an,header:sn[an],align:Rt.Ay.RIGHT,render:({row:e})=>(0,he.lr)(e.writeLag)},{name:nn,header:sn[nn],align:Rt.Ay.RIGHT,render:({row:e})=>(0,he.lr)(e.readLag)},{name:rn,header:sn[rn],align:Rt.Ay.RIGHT,render:({row:e})=>(0,he.lr)(e.readIdleTime)}]}],un=(0,c.cn)("ydb-diagnostics-consumers"),mn=({path:e,database:t,type:a})=>{const r=(e=>e===x.EPathTypeCdcStream)(a),[s,i]=n.useState(""),[o]=(0,X.Nt)(),{currentData:l,isFetching:c,error:u}=ga.useGetTopicQuery({path:e,database:t},{pollingInterval:o}),m=c&&void 0===l,p=(0,X.N4)((a=>Sa(a,e,t))),h=(0,X.N4)((a=>ja(a,e,t))),v=n.useMemo((()=>{if(!p)return[];const e=new RegExp(ha()(s),"i");return p.filter((t=>e.test(String(t.name))))}),[p,s]);return m?(0,d.jsx)(ue.a,{size:"m"}):u||p&&p.length?(0,d.jsxs)("div",{className:un(),children:[(0,d.jsxs)("div",{className:un("controls"),children:[(0,d.jsx)($e.v,{onChange:e=>{i(e)},placeholder:Ya("controls.search"),className:un("search"),value:s}),h&&(0,d.jsx)(Ia,{data:h})]}),u?(0,d.jsx)(de.o,{error:u}):null,p?(0,d.jsx)("div",{className:un("table-wrapper"),children:(0,d.jsx)("div",{className:un("table-content"),children:(0,d.jsx)(Fe.l,{columnsWidthLSKey:"consumersColumnsWidth",wrapperClassName:un("table"),data:v,columns:dn,settings:Z.N3,emptyDataMessage:Ya("table.emptyDataMessage")})})}):null]}):(0,d.jsx)("div",{children:Ya("noConsumersMessage."+(r?"stream":"topic"))})};var pn=a(96873),hn=a(97434),vn=a(84476),gn=a(39439),yn=a.n(gn);function xn({className:e,text:t,start:a,length:r,hasComa:s}){const i=s?(0,d.jsx)(n.Fragment,{children:",\xa0"}):null;if(r&&"number"===typeof a&&a>=0&&a<t.length){const s=t.substring(0,a),o=t.substring(a,a+r),l=t.substring(a+r);return(0,d.jsxs)(n.Fragment,{children:[s&&(0,d.jsx)("span",{className:e(),children:s}),(0,d.jsx)("span",{className:e({highlighted:!0}),children:o}),l&&(0,d.jsx)("span",{className:e(),children:l}),i]})}return(0,d.jsxs)("span",{className:e(),children:[t,i]})}function bn({className:e,text:t,starts:a,length:r,hasComa:s}){if(!r||!a.length){const a=s?(0,d.jsx)(n.Fragment,{children:",\xa0"}):null;return(0,d.jsxs)("span",{className:e(),children:[t,a]})}const i=[];for(let n=0,o=0;n<a.length&&o<t.length;++n){const l=n===a.length-1,c=a[n]+(l?t.length:r),u=t.substring(o,c);u&&i.push((0,d.jsx)(xn,{className:e,text:u,start:a[n]-o,length:r,hasComa:l&&s})),o=c}return(0,d.jsx)(n.Fragment,{children:i})}const fn=(0,c.cn)("ydb-json-viewer");function jn(e){const{collapsed:t,onToggle:a,path:n}=e;return(0,d.jsx)("span",{title:n,className:fn("collapsed"),children:(0,d.jsx)(vn.$,{onClick:a,view:"flat-secondary",size:"xs",children:(0,d.jsx)(vn.$.Icon,{children:(0,d.jsx)("span",{className:"unipika",children:t?"[+]":"[-]"})})})})}const Sn=JSON.parse('{"action_collapse-all":"Collapse all","action_expand-all":"Expand all","action_next":"Next","action_back":"Back","description_search":"Search...","description_matched-rows":"Matched rows","description_full-value":"Full value","context_case-sensitive-search":"Case sensitive search enadled","context_case-sensitive-search-disabled":"Case sensitive search disabled","context_items-count":[" {{count}} item "," {{count}} items "," {{count}} items "," {{count}} items "]}'),Tn=(0,Be.g4)("ydb-json-viewer",{en:Sn});var Nn=a(61674);const En=a.n(Nn)()({}),wn={asHTML:!0,format:"json",compact:!1,escapeWhitespace:!0,showDecoded:!0,binaryAsHex:!1,indent:2};function Cn(e){return En.converters.yson(e,wn)}function Pn(e){return n.useMemo((()=>Cn(e)),[e])}function In(e){return t=>fn("filtered",t,e)}var Dn=a(70983);function An(e){const{row:{level:t,open:a,close:r,key:s,value:i,hasDelimiter:o,path:l,collapsed:c,depth:u},settings:m,onToggleCollapse:p,matched:h,filter:v,showFullText:g,index:y}=e,x=n.useCallback((()=>{l&&p(l)}),[l,p]),b=n.useCallback((()=>{g(y)}),[g,y]);return(0,d.jsxs)("div",{className:fn("cell","unipika"),children:[Fn(t),l&&(0,d.jsx)(jn,{collapsed:c,path:l,onToggle:x}),(0,d.jsx)(_n,{text:s,settings:m,matched:null===h||void 0===h?void 0:h.keyMatch,filter:v}),a&&(0,d.jsx)(Ln,{type:a,settings:m}),void 0!==u&&(0,d.jsx)("span",{className:"unipika",children:Tn("context_items-count",{count:u})}),void 0!==i&&(0,d.jsx)(Rn,{text:i,settings:m,matched:null===h||void 0===h?void 0:h.valueMatch,filter:v,showFullText:b}),c&&void 0===u&&(0,d.jsx)("span",{className:"unipika",children:"..."}),r&&(0,d.jsx)(Ln,{type:r,settings:m,close:!0}),o&&(0,d.jsx)(Mn,{text:","})]})}function _n(e){const t=function(e){if(null===e||void 0===e||!e.text)return null;return On(e,fn("key"))}(e);return t?(0,d.jsxs)(n.Fragment,{children:[t,(0,d.jsx)(Mn,{text:": "})]}):null}function Rn(e){var t;return(0,d.jsx)(n.Fragment,{children:kn(e,fn("value",{type:null===(t=e.text)||void 0===t?void 0:t.$type}))})}function kn(e,t){var a;return"string"===(null===(a=e.text)||void 0===a?void 0:a.$type)?On(e,t,100):function(e,t){const{text:a,filter:n,settings:r,matched:s}=e;let i=null;if(s&&n){const e=En.format(a,{...r,asHTML:!1});i=(0,d.jsx)(bn,{className:In(t),text:e,starts:s,length:null===n||void 0===n?void 0:n.length})}else i=a?function(e,t=wn){const a=En.formatValue(e,{...wn,...t},0);return(0,d.jsx)("span",{className:"unipika",dangerouslySetInnerHTML:{__html:a}})}(a,r):void 0;return i||null}(e,fn("value"))}function On(e,t,a=1/0){const{text:n,settings:r=wn,matched:s=[],filter:i,showFullText:o}=e,l=En.format(n,{...r,asHTML:!1}),c=l.length,u=l.substring(1,Math.min(c-1,a+1)),m=u.length<l.length-2;let p=!1;if(m)for(let d=s.length-1;d>=0;--d)if(u.length<s[d]+((null===i||void 0===i?void 0:i.length)||0)){p=!0;break}return(0,d.jsxs)("span",{children:[(0,d.jsx)(bn,{className:In(t),text:u,starts:s,length:null===i||void 0===i?void 0:i.length}),m&&(0,d.jsxs)("span",{className:fn("filtered",{highlighted:p,clickable:!0}),onClick:o,children:["\u2026",(0,d.jsx)(ct.I,{data:Dn.A})]})]})}function Mn({text:e}){return(0,d.jsx)("span",{children:e})}function Ln(e){const{type:t,close:a}=e;switch(t){case"array":return(0,d.jsx)(Mn,{text:a?"]":"["});case"object":return(0,d.jsx)(Mn,{text:a?"}":"{"})}}const zn={};function Fn(e){let t=zn[e];if(!t){const a=yn()(Array(3*e)," ").join("");t=zn[e]=(0,d.jsx)("span",{dangerouslySetInnerHTML:{__html:a}})}return t}var qn=a(28664),Un=a(59136),Qn=a(26195),$n=a(94630);const Bn=n.forwardRef((function({matchIndex:e,matchedRows:t,value:a,onUpdate:r,onKeyDown:s,onNextMatch:i,onPrevMatch:o,caseSensitive:l,onUpdateCaseSensitive:c},u){const m=t.length,p=m?1+e%m:0;return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(qn.k,{ref:u,className:fn("filter"),hasClear:!0,size:"m",type:"text",value:a,placeholder:Tn("description_search"),onUpdate:r,autoFocus:!1,onKeyDown:s,endContent:(0,d.jsx)(lt.m,{title:Tn(l?"context_case-sensitive-search":"context_case-sensitive-search-disabled"),children:(0,d.jsx)(vn.$,{view:"flat-secondary",onClick:c,selected:l,children:(0,d.jsx)(ct.I,{data:$n.A})})})}),(0,d.jsxs)(ot.s,{gap:1,wrap:"nowrap",children:[(0,d.jsx)(vn.$,{className:fn("match-btn"),view:"flat-secondary",title:Tn("action_next"),onClick:i,disabled:!m,children:(0,d.jsx)(ct.I,{data:Un.A})}),(0,d.jsx)(vn.$,{className:fn("match-btn"),view:"flat-secondary",title:Tn("action_back"),onClick:o,disabled:!m,children:(0,d.jsx)(ct.I,{data:Qn.A})})]}),(0,d.jsxs)("span",{className:fn("match-counter"),title:Tn("description_matched-rows"),children:[p," / ",m||0]})]})}));var Hn=a(2198);function Gn({onClose:e,text:t,starts:a,length:n}){return(0,d.jsxs)(Hn.l,{open:!0,onClose:e,children:[(0,d.jsx)(Hn.l.Header,{caption:Tn("description_full-value")}),(0,d.jsx)(Hn.l.Divider,{}),(0,d.jsx)(Hn.l.Body,{children:(0,d.jsx)(ot.s,{direction:"column",gap:2,width:"70vw",maxHeight:"80vh",children:(0,d.jsx)("div",{className:fn("full-value"),children:(0,d.jsx)(bn,{className:In(),starts:a,text:t,length:n})})})})]})}function Wn(e,t){const a={dst:[],levels:[],path:[],collapsedState:(null===t||void 0===t?void 0:t.collapsedState)||{},matchedPath:"",collapsedPath:""};Vn(e,0,a);const n=function(e,t,a){if(!t)return{};const n=Object.assign({},null===a||void 0===a?void 0:a.settings,{asHTML:!1}),r={};for(let s=0;s<e.length;++s){const{key:i,value:o}=e[s],l=ir(i,t,n,null===a||void 0===a?void 0:a.caseSensitive),c=ir(o,t,n,null===a||void 0===a?void 0:a.caseSensitive);(l||c)&&(r[s]=Object.assign({},l&&{keyMatch:l},c&&{valueMatch:c}))}return r}(a.dst,null===t||void 0===t?void 0:t.filter,{settings:null===t||void 0===t?void 0:t.settings,caseSensitive:null===t||void 0===t?void 0:t.caseSensitive});return{data:a.dst,searchIndex:n}}function Vn(e,t,a){return function(e,t=0,a){const n=a.dst.length,{type:r}=a.levels[a.levels.length-1]||{},s=function(e){return"object"===e}(r)?n-1:a.dst.length,i=er(a),o=function(e){return"map"===e.$type||"list"===e.$type}(e);let l=0;if(i)Jn(e,t,a);else{l=function(e,t,a,n){let r=0;const s=e&&er(n);if(s)Jn(t,a,n);else switch(t.$type){case"map":!function(e,t,a){const n=tr("object",t,a,e.$value.length);(function(e,t,a,n){for(let r=0;r<e.length;++r){const[s,i]=e[r],o={key:s,level:t};a.dst.push(o),Zn(s.$value,a),Vn(i,t,a),++n.currentIndex,Xn(a)}})(e.$value,t+1,a,n),ar("object",t,a)}(t,a,n),r=t.$value.length;break;case"list":!function(e,t,a){const{$value:n}=e,r=tr("array",t,a,n.length);for(let s=0;s<n.length;++s)Zn(String(s),a),Vn(n[s],t+1,a),++r.currentIndex,Xn(a);ar("array",t,a)}(t,a,n),r=t.$value.length;break;case"string":rr(function(e,t){const{$attributes:a,...n}=e;return{level:t,value:n}}(t,a),n);break;default:rr(function(e,t){const{$attributes:a,...n}=e;return{level:t,value:n}}(t,a),n)}return r}(o,e,t,a)}o&&l&&(a.dst[s].depth=l,Yn(a,s))}(e,t,a)}function Jn(e,t,a){switch(e.$type){case"map":Kn("object",t,a,e.$value.length);break;case"list":Kn("array",t,a,e.$value.length)}}function Kn(e,t,a,n){tr(e,t,a,0);const r=a.dst[a.dst.length-1];r.depth=n,r.collapsed=!0,Yn(a,a.dst.length-1),ar(e,t,a)}function Yn(e,t){e.collapsedPath.length&&(e.dst[t].path=e.collapsedPath)}function Zn(e,t){t.path.push(e),t.collapsedPath=t.collapsedPath.length?t.collapsedPath+"/"+e:e}function Xn(e){const t=e.path.pop();void 0!==t&&(e.collapsedPath=e.collapsedPath.substring(0,e.collapsedPath.length-t.length-1))}function er(e){return Boolean(e.collapsedState[e.collapsedPath])}function tr(e,t,a,n){const{dst:r}=a,s=sr(r);null!==s&&void 0!==s&&s.key&&s.level===t?s.open=e:r.push({level:t,open:e});const i={type:e,length:n,currentIndex:0};return a.levels.push(i),i}function ar(e,t,a){const n=a.levels.pop();if(n.type!==e)throw new Error(`The unipika tree cannot be converted to array, there is some mess with levels \n${JSON.stringify({type:e,level:t,info:n,ctx:a},null,2)}`);const r=a.dst[a.dst.length-1],s=r.level===t&&r.open===e,i=s?r:{level:t,close:e};nr(a)&&(i.hasDelimiter=!0),s?i.close=e:a.dst.push(i)}function nr(e){const{length:t,currentIndex:a}=e.levels[e.levels.length-1]||{};return void 0!==t&&a<t-1}function rr(e,t){const a=sr(t.dst);a&&!a.open?Object.assign(a,e,{level:a.level}):t.dst.push(e);const n=t.dst[t.dst.length-1];nr(t)&&(n.hasDelimiter=!0)}function sr(e){const t=e[e.length-1];return null===t||void 0===t||!t.key||null!==t&&void 0!==t&&t.close?null:t}function ir(e,t,a,n){if(!e)return;const r=[];let s=En.formatValue(e,a);if(!s)return;s=String(s),"string"===e.$type&&(s=s.substring(1,s.length-1));let i=0,o=t;for(n||(s=s.toLowerCase(),o=t.toLowerCase());i>=0&&i<s.length;){const e=s.indexOf(o,i);if(-1===e)break;i=e+o.length,r.push(e)}return r.length?r:void 0}var or=a(85283),lr=a(24853);const cr={displayIndices:!1,dynamicRender:!0,sortable:!1,dynamicRenderMinSize:100};function dr(e){const{data:t}=Wn(e);return t.reduce(((e,{path:t})=>(t&&(e[t]=!0),e)),{})}function ur(e,t,a,n){const r=Wn(e,{collapsedState:t,filter:a,caseSensitive:n});return Object.assign({},{flattenResult:r,matchedRows:Object.keys(r.searchIndex).map(Number)})}function mr({tableSettings:e,value:t,unipikaSettings:a,search:r=!0,extraTools:s,collapsedInitially:i}){const[o,l]=(0,X.iK)(Z.iD,!1),[c,u]=n.useState((()=>i?dr(t):{})),[m,p]=n.useState(""),[h,v]=n.useState((()=>ur(t,c,m,o))),[g,y]=n.useState(-1),[x,b]=n.useState(),f=n.useRef(null),j=n.useRef(null),S=n.useMemo((()=>({...cr,dynamicInnerRef:f,...e})),[e]),T=({row:e,index:t})=>{const{flattenResult:{searchIndex:n}}=h;return(0,d.jsx)(An,{matched:n[t],row:e,settings:a,onToggleCollapse:N,filter:m,showFullText:R,index:t})},N=e=>{const t={...c};t[e]?delete t[e]:t[e]=!0,E({collapsedState:t})},E=(e,a)=>{const{collapsedState:n,matchIndex:r,filter:s,caseSensitive:i}=e;void 0!==n&&u(n),void 0!==r&&y(r),void 0!==s&&p(s);v(ur(t,null!==n&&void 0!==n?n:c,null!==s&&void 0!==s?s:m,null!==i&&void 0!==i?i:o)),null===a||void 0===a||a()},w=()=>{E({collapsedState:{}},(()=>{I(null,0)}))},C=()=>{const e=dr(t);E({collapsedState:e})},P=e=>{E({filter:e,matchIndex:0},(()=>{I(null,0)}))},I=(e,t=1)=>{var a,n;const{matchedRows:r}=h;if(!r.length)return;let s=(g+t)%r.length;s<0&&(s=r.length+s),s!==g&&y(s),null===(a=f.current)||void 0===a||a.scrollTo(r[s]-6),null===(n=j.current)||void 0===n||n.focus()},D=()=>{I(null,-1)},A=e=>{"Enter"===e.key&&(e.shiftKey||e.ctrlKey?D():I(null))},_=()=>{const e=!o;l(e),E({caseSensitive:e})},R=e=>{const{flattenResult:{searchIndex:t,data:a}}=h;b({value:a[e].value,searchInfo:t[e]})},k=()=>{b(void 0)};return(0,d.jsxs)("div",{className:fn(),children:[(0,d.jsxs)(ot.s,{gap:2,wrap:"nowrap",className:fn("toolbar"),children:[(0,d.jsxs)(ot.s,{gap:1,wrap:"nowrap",children:[(0,d.jsx)(lt.m,{title:Tn("action_expand-all"),children:(0,d.jsx)(vn.$,{onClick:w,view:"flat-secondary",children:(0,d.jsx)(ct.I,{data:or.A})})}),(0,d.jsx)(lt.m,{title:Tn("action_collapse-all"),children:(0,d.jsx)(vn.$,{onClick:C,view:"flat-secondary",children:(0,d.jsx)(ct.I,{data:lr.A})})})]}),r&&(0,d.jsx)(Bn,{onUpdate:P,matchIndex:g,matchedRows:h.matchedRows,value:m,ref:j,onKeyDown:A,onNextMatch:I,onPrevMatch:D,caseSensitive:o,onUpdateCaseSensitive:_}),(0,d.jsx)("span",{className:fn("extra-tools"),children:s})]}),(()=>{const e=[{name:"content",render:T,header:null}],{flattenResult:{data:t}}=h;return(0,d.jsx)("div",{className:fn("content"),children:(0,d.jsx)(Rt.Ay,{columns:e,data:t,theme:"yson",settings:S,rowClassName:()=>fn("row")})})})(),(()=>{const{value:e,searchInfo:t}=null!==x&&void 0!==x?x:{},n=En.format(e,{...a,asHTML:!1});return e&&(0,d.jsx)(Gn,{onClose:k,starts:(null===t||void 0===t?void 0:t.valueMatch)||[],text:n.substring(1,n.length-1),length:m.length})})()]})}const pr=(0,c.cn)("ydb-describe"),hr=({path:e,database:t,type:a})=>{const[n]=(0,X.Nt)(),r=z(a),s=(0,X.N4)((n=>J(n,e,a,t)),hn.bN);let i=[];r?s&&(i=[e,...s]):i=[e];const{mergedDescribe:o,loading:l,error:c}=K({paths:i,autoRefreshInterval:n,database:t});let u;if(o){const e=Object.keys(o);u=1===e.length?o[e[0]]:o}const m=Pn(u);return l||r&&!s?(0,d.jsx)(ue.a,{size:"m"}):u||c?(0,d.jsxs)("div",{className:pr(),children:[c?(0,d.jsx)(de.o,{error:c}):null,u?(0,d.jsx)("div",{className:pr("result"),children:(0,d.jsx)(mr,{value:m,extraTools:(0,d.jsx)(pn.b,{view:"flat-secondary",text:JSON.stringify(u)}),search:!0,collapsedInitially:!0})}):null]}):(0,d.jsx)("div",{className:pr("message-container"),children:"Empty"})};var vr=a(60073);const gr=e=>{const{PathType:t,PathSubType:a}=(null===e||void 0===e?void 0:e.Self)||{};return n=t,(r=a)&&w[r]||n&&C[n];var n,r},yr=e=>{var t;return null===e||void 0===e||null===(t=e.UserAttributes)||void 0===t?void 0:t.some((({Key:e,Value:t})=>"__async_replica"===e&&"true"===t))};var xr=a(5741),br=a(82176);const fr=(0,br.H)({values:{PathType:e=>null===e||void 0===e?void 0:e.substring(9),CreateStep:he.r6},labels:{PathType:(0,xr.A)("common.type"),CreateStep:(0,xr.A)("common.created")}}),jr=({value:e,withSpeedLabel:t,...a})=>{const n=(0,va.z3)({value:e,withSpeedLabel:t,...a}),r=(0,va.z3)({value:e,withSpeedLabel:t,size:"b"});return(0,d.jsx)("span",{title:r,children:n})},Sr=(e,t)=>e?(0,d.jsx)(jr,{value:e,...t}):null,Tr=(0,br.H)({values:{Type:e=>null===e||void 0===e?void 0:e.substring(10),State:e=>null===e||void 0===e?void 0:e.substring(11),KeyColumnNames:e=>null===e||void 0===e?void 0:e.join(", "),DataColumnNames:e=>null===e||void 0===e?void 0:e.join(", "),DataSize:Sr},labels:{KeyColumnNames:"Columns",DataColumnNames:"Includes"}}),Nr={[j.METERING_MODE_REQUEST_UNITS]:"request-units",[j.METERING_MODE_RESERVED_CAPACITY]:"reserved-capacity"},Er=(0,br.H)({values:{Partitions:e=>(0,he.ZV)((null===e||void 0===e?void 0:e.length)||0),PQTabletConfig:e=>{const t=Math.round(e.PartitionConfig.LifetimeSeconds/Z.Jg*100)/100;return`${(0,he.ZV)(t)} hours`}},labels:{Partitions:"Partitions count",PQTabletConfig:"Retention"}}),wr=(0,br.H)({values:{Codecs:e=>e&&Object.values(e.Codecs||{}).join(", "),MeteringMode:e=>e&&Nr[e]},labels:{MeteringMode:"Metering mode"}}),Cr=(0,br.H)({values:{StorageLimitBytes:he.z3,WriteSpeedInBytesPerSecond:he.tC},labels:{StorageLimitBytes:"Retention storage",WriteSpeedInBytesPerSecond:"Partitions write speed"}}),Pr=(0,br.H)({values:{Mode:e=>null===e||void 0===e?void 0:e.substring(14),Format:e=>null===e||void 0===e?void 0:e.substring(16)}}),Ir=(0,br.H)({values:{CPU:he.iM,Memory:Sr,Storage:Sr,Network:he.tC,ReadThroughput:he.tC,WriteThroughput:he.tC},defaultValueFormatter:he.ZV}),Dr=(0,br.H)({values:{FollowerCount:he.ZV},labels:{FollowerCountPerDataCenter:"FollowerCountPerDC"},defaultValueFormatter:e=>e&&String(e)}),Ar=(0,br.H)({values:{FollowerCount:he.ZV,CrossDataCenterFollowerCount:he.ZV}}),_r=(0,br.H)({values:{DataSize:Sr,IndexSize:Sr,LastAccessTime:he.r6,LastUpdateTime:he.r6},defaultValueFormatter:he.ZV}),Rr=new Set(["Type","State","DataSize","KeyColumnNames","DataColumnNames"]),kr=({data:e})=>{var t;const a=gr(null===e||void 0===e?void 0:e.PathDescription);if(!e)return(0,d.jsxs)("div",{className:"error",children:["No ",a," data"]});const n=null===(t=e.PathDescription)||void 0===t?void 0:t.TableIndex,r=[];let s;for(s in n)Rr.has(s)&&r.push(Tr(s,null===n||void 0===n?void 0:n[s]));return(0,d.jsx)(vr.z_,{title:a,info:r})};var Or=a(10508);const Mr=JSON.parse('{"external-objects.source-type":"Source Type","external-objects.data-source":"Data Source","external-objects.location":"Location","external-objects.auth-method":"Auth Method","external-objects.auth-method.none":"None","external-objects.auth-method.service-account":"Service Account","view.query-text":"Query Text"}'),Lr=(0,Be.g4)("ydb-tenant-objects-info",{en:Mr}),zr=(0,c.cn)("ydb-external-data-source-info"),Fr=e=>{var t,a,n,r;return[{label:Lr("external-objects.source-type"),value:null===(t=e.PathDescription)||void 0===t||null===(a=t.ExternalDataSourceDescription)||void 0===a?void 0:a.SourceType},fr("CreateStep",null===(n=e.PathDescription)||void 0===n||null===(r=n.Self)||void 0===r?void 0:r.CreateStep)]},qr=e=>{var t;const{Location:a,Auth:n}=(null===(t=e.PathDescription)||void 0===t?void 0:t.ExternalDataSourceDescription)||{};return[...Fr(e),{label:Lr("external-objects.location"),value:(0,d.jsx)(Or.c,{name:a,showStatus:!1,hasClipboardButton:!0,clipboardButtonAlwaysVisible:!0,className:zr("location")})},{label:Lr("external-objects.auth-method"),value:null!==n&&void 0!==n&&n.ServiceAccount?Lr("external-objects.auth-method.service-account"):Lr("external-objects.auth-method.none")}]},Ur=({data:e,prepareData:t})=>{const a=gr(null===e||void 0===e?void 0:e.PathDescription);return e?(0,d.jsx)(vr.z_,{title:a,info:t(e)}):(0,d.jsxs)("div",{className:"error",children:["No ",a," data"]})},Qr=({data:e})=>(0,d.jsx)(Ur,{data:e,prepareData:qr});var $r=a(10755),Br=a(25196);const Hr=(0,c.cn)("ydb-external-table-info"),Gr=(e,t)=>{var a,n;const{CreateStep:r}=(null===(a=e.PathDescription)||void 0===a?void 0:a.Self)||{},{SourceType:s,DataSourcePath:i}=(null===(n=e.PathDescription)||void 0===n?void 0:n.ExternalTableDescription)||{},o=null===i||void 0===i?void 0:i.split("/").pop();return[{label:Lr("external-objects.source-type"),value:s},fr("CreateStep",r),{label:Lr("external-objects.data-source"),value:i&&(0,d.jsx)("span",{title:i,children:(0,d.jsx)(Br.K,{title:o||"",url:t})})}]},Wr=(e,t)=>{var a,n;const r=null===(a=e.PathDescription)||void 0===a||null===(n=a.ExternalTableDescription)||void 0===n?void 0:n.Location;return[...Gr(e,t),{label:Lr("external-objects.location"),value:(0,d.jsx)(Or.c,{name:r,showStatus:!1,hasClipboardButton:!0,clipboardButtonAlwaysVisible:!0,className:Hr("location")})}]},Vr=({data:e,prepareData:t})=>{var a,n;const r=(0,$r.zy)(),s=(0,ye.mA)(r),i=(0,ye.Ow)({...s,schema:null===e||void 0===e||null===(a=e.PathDescription)||void 0===a||null===(n=a.ExternalTableDescription)||void 0===n?void 0:n.DataSourcePath}),o=gr(null===e||void 0===e?void 0:e.PathDescription);return e?(0,d.jsx)(vr.z_,{title:o,info:t(e,i)}):(0,d.jsxs)("div",{className:"error",children:["No ",o," data"]})},Jr=({data:e})=>(0,d.jsx)(Vr,{data:e,prepareData:Wr});var Kr=a(57439);const Yr=JSON.parse('{"no-data":"No data"}'),Zr=(0,Be.g4)("ydb-definition-list",{en:Yr}),Xr=(0,c.cn)("ydb-definition-list");function es({title:e,items:t,nameMaxWidth:a=220,copyPosition:n="outside",className:r,itemClassName:s,...i}){return(0,d.jsxs)("div",{className:Xr(null),children:[e?(0,d.jsx)("div",{className:Xr("title"),children:e}):null,t.length?(0,d.jsx)(Kr.u,{items:t,nameMaxWidth:a,copyPosition:n,className:Xr("properties-list",r),itemClassName:Xr("item",s),...i}):Zr("no-data")]})}var ts=a(96298),as=a(8300);ts.A.registerLanguage("yql",as.TL);const ns=(0,c.cn)("yql-highlighter"),rs=({children:e,className:t})=>{const a=(0,te.i)(),n="dark"===a||"dark-hc"===a;return(0,d.jsx)("div",{className:ns(null,t),children:(0,d.jsx)(ts.A,{language:"yql",style:n?as.XT:as.BB,children:e})})};function ss({data:e}){const t=gr(null===e||void 0===e?void 0:e.PathDescription);if(!e)return(0,d.jsxs)("div",{className:"error",children:["No ",t," data"]});const a=(e=>{var t,a;const n=null===(t=e.PathDescription)||void 0===t||null===(a=t.ViewDescription)||void 0===a?void 0:a.QueryText;return[{name:Lr("view.query-text"),copyText:n,content:n?(0,d.jsx)(rs,{children:n}):null}]})(e);return(0,d.jsx)(es,{title:t,items:a})}function is({state:e}){return e?"StandBy"in e?(0,d.jsx)(Ct.J,{theme:"info",children:"Standby"}):"Paused"in e?(0,d.jsx)(Ct.J,{theme:"info",children:"Paused"}):"Done"in e?(0,d.jsx)(Ct.J,{theme:"success",children:"Done"}):"Error"in e?(0,d.jsx)(Ct.J,{theme:"danger",children:"Error"}):(0,d.jsx)(Ct.J,{size:"s",children:"Unknown"}):null}const os=JSON.parse('{"column.dstPath.name":"Dist","column.srcPath.name":"Source","everythingWithPrefix":"Everything with prefix:","noData":"No data.","title":"Replicated Paths"}'),ls=(0,Be.g4)("ydb-diagnostics-async-replication-paths",{en:os}),cs=(0,c.cn)("ydb-async-replication-paths"),ds=[{name:ls("column.srcPath.name"),render:({row:e})=>e.SrcPath,sortAccessor:e=>e.SrcPath},{name:ls("column.dstPath.name"),render:({row:e})=>e.DstPath,sortAccessor:e=>e.DstPath}];function us({config:e}){if(!e)return null;let t=ls("noData");var a,n;e.Everything&&(t=(0,d.jsxs)("span",{children:[ls("everythingWithPrefix")," ",(0,d.jsx)(it.E,{variant:"code-inline-2",children:null!==(a=null===(n=e.Everything)||void 0===n?void 0:n.DstPrefix)&&void 0!==a?a:"undefined"}),"."]}));return e.Specific&&(t=(0,d.jsx)(Fe.l,{data:e.Specific.Targets,settings:Z.jp,columns:ds})),(0,d.jsxs)("div",{className:cs(),children:[(0,d.jsx)("div",{className:cs("title"),children:ls("title")}),t]})}function ms({connection:e}){return e?e.StaticCredentials?(0,d.jsx)(Ct.J,{value:e.StaticCredentials.User,theme:"normal",children:"user"}):"OAuthToken"in e?"OAuth":"unknown":null}const ps=JSON.parse('{"credentials.label":"Credentials","noData":"No data for entity:","srcConnection.database.label":"Source Database Path","srcConnection.endpoint.label":"Source Cluster Endpoint","state.label":"State"}'),hs=(0,Be.g4)("ydb-diagnostics-async-replication-info",{en:ps});function vs({data:e}){var t,a;const n=gr(null===e||void 0===e?void 0:e.PathDescription);if(!e)return(0,d.jsxs)("div",{className:"error",children:[hs("noData")," ",n]});const r=function(e){var t,a;const n=(null===(t=e.PathDescription)||void 0===t?void 0:t.ReplicationDescription)||{},r=n.State,s=(null===(a=n.Config)||void 0===a?void 0:a.SrcConnectionParams)||{},{Endpoint:i,Database:o}=s,l=[];r&&l.push({name:hs("state.label"),content:(0,d.jsx)(is,{state:r})});i&&l.push({name:hs("srcConnection.endpoint.label"),copyText:i,content:(0,d.jsx)(it.E,{variant:"code-inline-2",children:i})});o&&l.push({name:hs("srcConnection.database.label"),copyText:o,content:(0,d.jsx)(it.E,{variant:"code-inline-2",children:o})});s&&l.push({name:hs("credentials.label"),content:(0,d.jsx)(ms,{connection:s})});return l}(e);return(0,d.jsxs)(ot.s,{direction:"column",gap:"4",children:[(0,d.jsx)(es,{title:n,items:r}),(0,d.jsx)(us,{config:null===(t=e.PathDescription)||void 0===t||null===(a=t.ReplicationDescription)||void 0===a?void 0:a.Config})]})}const gs=JSON.parse('{"writeLagPopover":"Write lag, maximum among all topic partitions","writeIdleTimePopover":"Write idle time, maximum among all topic partitions"}'),ys=JSON.parse('{"writeLagPopover":"\u041b\u0430\u0433 \u0437\u0430\u043f\u0438\u0441\u0438, \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u0440\u0435\u0434\u0438 \u0432\u0441\u0435\u0445 \u043f\u0430\u0440\u0442\u0438\u0446\u0438\u0439 \u0442\u043e\u043f\u0438\u043a\u0430","writeIdleTimePopover":"\u0412\u0440\u0435\u043c\u044f \u0431\u0435\u0437 \u0437\u0430\u043f\u0438\u0441\u0438, \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u0440\u0435\u0434\u0438 \u0432\u0441\u0435\u0445 \u043f\u0430\u0440\u0442\u0438\u0446\u0438\u0439 \u0442\u043e\u043f\u0438\u043a\u0430"}'),xs=(0,Be.g4)("ydb-diagnostics-overview-topic-stats",{ru:ys,en:gs}),bs=(0,c.cn)("ydb-overview-topic-stats"),fs=e=>[{label:"Store size",value:(0,he.z3)(e.storeSize)},{label:(0,d.jsx)(ka,{text:"Write idle time",popoverContent:(0,d.jsx)(Va,{text:xs("writeIdleTimePopover"),type:"write"})}),value:(0,vt.Bi)(e.partitionsIdleTime)},{label:(0,d.jsx)(ka,{text:"Write lag",popoverContent:(0,d.jsx)(Va,{text:xs("writeLagPopover"),type:"write"})}),value:(0,vt.Bi)(e.partitionsWriteLag)},{label:"Average write speed",value:(0,d.jsx)(Ca,{data:e.writeSpeed,withValue:!1})}],js=e=>{const t=e.writeSpeed;return[{label:"per minute",value:(0,he.tC)(t.perMinute)},{label:"per hour",value:(0,he.tC)(t.perHour)},{label:"per day",value:(0,he.tC)(t.perDay)}]},Ss=({path:e,database:t})=>{const[a]=(0,X.Nt)(),{currentData:r,isFetching:s,error:i}=ga.useGetTopicQuery({path:e,database:t},{pollingInterval:a}),o=s&&void 0===r,l=(0,X.N4)((a=>ja(a,e,t)));if(o)return(0,d.jsx)("div",{className:bs(),children:(0,d.jsx)(ue.a,{size:"s"})});const c=i||!l?(0,d.jsx)(de.o,{error:i}):null;return(0,d.jsxs)("div",{className:bs(),children:[(0,d.jsx)("div",{className:bs("title"),children:"Stats"}),c,l?(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)("div",{className:bs("info"),children:(0,d.jsx)(vr.z_,{info:fs(l),multilineLabels:!0})}),(0,d.jsx)("div",{className:bs("bytes-written"),children:(0,d.jsx)(vr.z_,{info:js(l)})})]}):null]})},Ts=e=>{var t;const a=null===e||void 0===e||null===(t=e.PathDescription)||void 0===t?void 0:t.PersQueueGroup;if(!a)return[];const{Partitions:n=[],PQTabletConfig:r={PartitionConfig:{LifetimeSeconds:0}}}=a,{Codecs:s,MeteringMode:i}=r,{WriteSpeedInBytesPerSecond:o,StorageLimitBytes:l}=r.PartitionConfig;return[...(0,vr.jl)(Er,{Partitions:n,PQTabletConfig:r}),...(0,vr.jl)(Cr,{StorageLimitBytes:l,WriteSpeedInBytesPerSecond:o}),...(0,vr.jl)(wr,{Codecs:s,MeteringMode:i})]},Ns=(e,t)=>{var a,n,r;if(!e&&!t)return[];const s=null===e||void 0===e||null===(a=e.PathDescription)||void 0===a?void 0:a.CdcStreamDescription,{Mode:i,Format:o}=s||{};return[fr("CreateStep",null===e||void 0===e||null===(n=e.PathDescription)||void 0===n||null===(r=n.Self)||void 0===r?void 0:r.CreateStep),...(0,vr.jl)(Pr,{Mode:i,Format:o}),...Ts(t)]},Es=({path:e,database:t,data:a,topic:n})=>{const r=gr(null===a||void 0===a?void 0:a.PathDescription);return a&&n?(0,d.jsxs)("div",{children:[(0,d.jsx)(vr.z_,{title:r,info:Ns(a,n)}),(0,d.jsx)(Ss,{path:e,database:t})]}):(0,d.jsxs)("div",{className:"error",children:["No ",r," data"]})},ws=JSON.parse('{"page.title":"Database","pages.query":"Query","pages.diagnostics":"Diagnostics","summary.navigation":"Navigation","summary.showPreview":"Show preview","summary.source-type":"Source Type","summary.data-source":"Data Source","summary.copySchemaPath":"Copy schema path","summary.type":"Type","summary.subtype":"SubType","summary.id":"Id","summary.version":"Version","summary.created":"Created","summary.data-size":"Data size","summary.row-count":"Row count","summary.partitions":"Partitions count","summary.paths":"Paths","summary.shards":"Shards","summary.state":"State","summary.mode":"Mode","summary.format":"Format","summary.retention":"Retention","label.read-only":"ReadOnly","actions.copied":"The path is copied to the clipboard","actions.notCopied":"Couldn\u2019t copy the path","actions.copyPath":"Copy path","actions.connectToDB":"Connect to DB","actions.dropIndex":"Drop index","actions.openPreview":"Open preview","actions.createTable":"Create table...","actions.createExternalTable":"Create external table...","actions.createTopic":"Create topic...","actions.createColumnTable":"Create column table...","actions.createAsyncReplication":"Create async replication...","actions.createView":"Create view...","actions.dropTable":"Drop table...","actions.dropTopic":"Drop topic...","actions.dropView":"Drop view...","actions.alterTable":"Alter table...","actions.manageColumns":"Manage columns...","actions.manageAutoPartitioning":"Manage auto partitioning...","actions.addTableIndex":"Add index...","actions.createCdcStream":"Create changefeed...","actions.alterTopic":"Alter topic...","actions.selectQuery":"Select query...","actions.upsertQuery":"Upsert query...","actions.alterReplication":"Alter async replicaton...","actions.dropReplication":"Drop async replicaton...","actions.createDirectory":"Create directory","schema.tree.dialog.placeholder":"Relative path","schema.tree.dialog.invalid":"Invalid path","schema.tree.dialog.whitespace":"Whitespace is not allowed","schema.tree.dialog.empty":"Path is empty","schema.tree.dialog.header":"Create directory","schema.tree.dialog.description":"Inside","schema.tree.dialog.buttonCancel":"Cancel","schema.tree.dialog.buttonApply":"Create"}'),Cs=(0,Be.g4)("ydb-tenant",{en:ws});function Ps({data:e}){const t=gr(e);return yr(e)?(0,d.jsxs)(ot.s,{gap:1,wrap:"nowrap",children:[t," ",(0,d.jsx)(Ct.J,{children:Cs("label.read-only")})]}):t}const Is=JSON.parse('{"tableStats":"Table Stats","tabletMetrics":"Tablet Metrics","partitionConfig":"Partition Config","label.ttl":"TTL for rows","value.ttl":"column: \'{{columnName}}\', expire after: {{expireTime}}","label.standalone":"Standalone","label.partitioning":"Partitioning","label.partitioning-by-size":"Partitioning by size","value.partitioning-by-size.enabled":"Enabled, split size: {{size}}","label.partitioning-by-load":"Partitioning by load","label.partitions-min":"Min number of partitions","label.partitions-max":"Max number of partitions","label.read-replicas":"Read replicas (followers)","label.bloom-filter":"Bloom filter","enabled":"Enabled","disabled":"Disabled"}'),Ds=(0,Be.g4)("ydb-diagnostics-overview-table-info",{en:Is});var As=a(62091),_s=a.n(As),Rs=a(7435),ks=a(41650);const Os=e=>{if(e.Enabled&&e.Enabled.ColumnName&&void 0!==e.Enabled.ExpireAfterSeconds){const t=Ds("value.ttl",{columnName:e.Enabled.ColumnName,expireTime:(0,vt.Bi)(1e3*e.Enabled.ExpireAfterSeconds,1)});return{label:Ds("label.ttl"),value:t}}};const Ms=(e,t)=>{if(!e)return{};const{PathDescription:a={}}=e,{TableStats:n={},TabletMetrics:r={},Table:{PartitionConfig:s={},TTLSettings:i}={},ColumnTableDescription:o={}}=a,{PartCount:l,RowCount:c,DataSize:u,IndexSize:m,ByKeyFilterSize:p,LastAccessTime:h,LastUpdateTime:v,ImmediateTxCompleted:g,PlannedTxCompleted:y,TxRejectedByOverload:b,TxRejectedBySpace:f,TxCompleteLagMsec:j,InFlightTxCount:S,RowUpdates:T,RowDeletes:N,RowReads:E,RangeReads:w,RangeReadRows:C}=n,{FollowerGroups:P,FollowerCount:I,CrossDataCenterFollowerCount:D}=s;let A=[];switch(t){case x.EPathTypeTable:A=((e,t)=>{var a;const{PartitioningPolicy:n={},FollowerGroups:r,EnableFilterByKey:s}=e,i=[],o=n.SizeToSplit&&Number(n.SizeToSplit)>0?Ds("value.partitioning-by-size.enabled",{size:(0,he.z3)(n.SizeToSplit)}):Ds("disabled"),l=null!==(a=n.SplitByLoadSettings)&&void 0!==a&&a.Enabled?Ds("enabled"):Ds("disabled");if(i.push({label:Ds("label.partitioning-by-size"),value:o},{label:Ds("label.partitioning-by-load"),value:l},{label:Ds("label.partitions-min"),value:(0,he.ZV)(n.MinPartitionsCount||0)}),n.MaxPartitionsCount&&i.push({label:Ds("label.partitions-max"),value:(0,he.ZV)(n.MaxPartitionsCount)}),r&&r.length){const{RequireAllDataCenters:e,FollowerCountPerDataCenter:t,FollowerCount:a}=r[0];let n;n=e&&t?`PER_AZ: ${a}`:`ANY_AZ: ${a}`,i.push({label:Ds("label.read-replicas"),value:n})}if(t){const e=Os(t);e&&i.push(e)}return(0,Rs.f8)(s)&&i.push({label:Ds("label.bloom-filter"),value:Ds(s?"enabled":"disabled")}),i})(s,i);break;case x.EPathTypeColumnTable:A=function(e){var t,a;const n=[];var r;if(n.push({label:Ds("label.standalone"),value:String((r=e,!(r.SchemaPresetName&&void 0!==r.SchemaPresetId)))}),null!==(t=e.Sharding)&&void 0!==t&&null!==(a=t.HashSharding)&&void 0!==a&&a.Columns){const t=`PARTITION BY HASH(${e.Sharding.HashSharding.Columns.join(", ")})`;n.push({label:Ds("label.partitioning"),value:(0,d.jsx)(it.E,{variant:"code-2",wordBreak:"break-word",children:t})})}if(e.TtlSettings){const t=Os(null===e||void 0===e?void 0:e.TtlSettings);t&&n.push(t)}return n}(o)}const _=(0,vr.jl)(_r,{PartCount:l,RowCount:c,DataSize:u,IndexSize:m});(0,ks.kf)(p)&&(s.EnableFilterByKey||Number(p)>0)&&_.push({label:"BloomFilterSize",value:Sr(p)});const R=[_,(0,vr.jl)(_r,{LastAccessTime:h,LastUpdateTime:v}),(0,vr.jl)(_r,{ImmediateTxCompleted:g,PlannedTxCompleted:y,TxRejectedByOverload:b,TxRejectedBySpace:f,TxCompleteLagMsec:j,InFlightTxCount:S}),(0,vr.jl)(_r,{RowUpdates:T,RowDeletes:N,RowReads:E,RangeReads:w,RangeReadRows:C})],k=(0,vr.jl)(Ir,_s()(r,["GroupReadIops","GroupReadThroughput","GroupWriteIops","GroupWriteThroughput"]));let O=[];return Array.isArray(P)&&P.length>0?O=(0,vr.jl)(Dr,P[0]):void 0!==I?O.push(Ar("FollowerCount",I)):void 0!==D&&O.push(Ar("CrossDataCenterFollowerCount",D)),{generalInfo:A,tableStatsInfo:R,tabletMetricsInfo:k,partitionConfigInfo:O}},Ls=(0,c.cn)("ydb-diagnostics-table-info"),zs=({data:e,type:t})=>{const a=(0,d.jsx)(Ps,{data:null===e||void 0===e?void 0:e.PathDescription}),{generalInfo:r,tableStatsInfo:s,tabletMetricsInfo:i=[],partitionConfigInfo:o=[]}=n.useMemo((()=>Ms(e,t)),[e,t]);return(0,d.jsxs)("div",{className:Ls(),children:[(0,d.jsx)(vr.z_,{info:r,title:a,className:Ls("info-block"),renderEmptyState:()=>(0,d.jsx)("div",{className:Ls("title"),children:a})}),(0,d.jsxs)("div",{className:Ls("row"),children:[s?(0,d.jsx)("div",{className:Ls("col"),children:s.map(((e,t)=>(0,d.jsx)(vr.z_,{info:e,title:0===t?Ds("tableStats"):void 0,className:Ls("info-block"),renderEmptyState:()=>null},t)))}):null,i.length>0||o.length>0?(0,d.jsxs)("div",{className:Ls("col"),children:[(0,d.jsx)(vr.z_,{info:i,title:Ds("tabletMetrics"),className:Ls("info-block"),renderEmptyState:()=>null}),(0,d.jsx)(vr.z_,{info:o,title:Ds("partitionConfig"),className:Ls("info-block"),renderEmptyState:()=>null})]}):null]})]})},Fs=({data:e,path:t,database:a})=>{const n=gr(null===e||void 0===e?void 0:e.PathDescription);return e?(0,d.jsxs)("div",{children:[(0,d.jsx)(vr.z_,{title:n,info:Ts(e)}),(0,d.jsx)(Ss,{path:t,database:a})]}):(0,d.jsxs)("div",{className:"error",children:["No ",n," data"]})};const qs=function({type:e,path:t,database:a}){const[r]=(0,X.Nt)(),s=z(e),i=(0,X.N4)((n=>J(n,t,e,a)),hn.bN);let o=[];s?i&&(o=[t,...i]):o=[t];const{mergedDescribe:l,loading:c,error:u}=K({paths:o,database:a,autoRefreshInterval:r}),m=l[t];return c||s&&!i?(0,d.jsx)(ue.a,{size:"m"}):(0,d.jsxs)(n.Fragment,{children:[u?(0,d.jsx)(de.o,{error:u}):null,u&&!m?null:(()=>{var n;const r=null!==m&&void 0!==m?m:void 0,s={[x.EPathTypeInvalid]:void 0,[x.EPathTypeDir]:void 0,[x.EPathTypeTable]:void 0,[x.EPathTypeSubDomain]:void 0,[x.EPathTypeTableIndex]:()=>(0,d.jsx)(kr,{data:r}),[x.EPathTypeExtSubDomain]:void 0,[x.EPathTypeColumnStore]:void 0,[x.EPathTypeColumnTable]:void 0,[x.EPathTypeCdcStream]:()=>{const e=null===i||void 0===i?void 0:i[0];var n;if(e)return(0,d.jsx)(Es,{path:t,database:a,data:r,topic:null!==(n=null===l||void 0===l?void 0:l[e])&&void 0!==n?n:void 0})},[x.EPathTypePersQueueGroup]:()=>(0,d.jsx)(Fs,{data:r,path:t,database:a}),[x.EPathTypeExternalTable]:()=>(0,d.jsx)(Jr,{data:r}),[x.EPathTypeExternalDataSource]:()=>(0,d.jsx)(Qr,{data:r}),[x.EPathTypeView]:()=>(0,d.jsx)(ss,{data:r}),[x.EPathTypeReplication]:()=>(0,d.jsx)(vs,{data:r})};return e&&(null===(n=s[e])||void 0===n?void 0:n.call(s))||(0,d.jsx)(zs,{data:r,type:e})})()]})};var Us,Qs=a(74417);function $s(){return $s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},$s.apply(null,arguments)}const Bs=function(e){return n.createElement("svg",$s({fill:"currentColor",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},e),Us||(Us=n.createElement("path",{d:"M14.195 11.375H3.125v-7.82a.328.328 0 00-.305-.305H1.805a.309.309 0 00-.305.305v9.14c0 .178.127.305.305.305h12.39a.309.309 0 00.305-.305V11.68a.328.328 0 00-.305-.305zm-3.25-5.688L8.812 7.11 6.63 4.24c-.127-.178-.38-.178-.508.026L3.937 7.922v2.64h9.75l-2.285-4.748c-.101-.177-.304-.228-.457-.127z"})))};function Hs({href:e,className:t,size:a="xs"}){return(0,d.jsx)(vn.$,{href:e,target:"_blank",className:t,size:a,title:"Monitoring dashboard",children:(0,d.jsx)(ct.I,{data:Bs})})}var Gs=a(20680),Ws=a(66643),Vs=a(40014),Js=a(25533),Ks=a(90474);const Ys=["#7EB26D","#EAB839","#6ED0E0","#EF843C","#E24D42","#1F78C1","#BA43A9","#705DA0","#508642","#CCA300"];function Zs(e){return null===e?Z.Pd:(0,vt.Xo)((0,he.CR)(ti(e),2))}function Xs(e){return null===e?Z.Pd:(0,va.z3)({value:ti(e),precision:3})}function ei(e){return null===e?Z.Pd:Math.round(100*ti(e))+"%"}function ti(e){return(0,ks.kf)(e)?Number(e):0}const ai={"30m":30*Z.r0,"1h":Z.Jg,"1d":Z.tt,"1w":7*Z.tt},ni=JSON.parse('{"not-supported":"Charts are not supported on current ydb version"}'),ri=(0,Be.g4)("ydb-metric-chart",{en:ni}),si=H.F.injectEndpoints({endpoints:e=>({getChartData:e.query({queryFn:async(e,{signal:t})=>{try{const a=await(async({database:e,metrics:t,timeFrame:a,maxDataPoints:n},{signal:r}={})=>{const s=t.map((e=>`target=${e.target}`)).join("&"),i=Math.round(Date.now()/1e3),o=i-ai[a];return window.api.viewer.getChartData({target:s,from:o,until:i,maxDataPoints:n,database:e},{signal:r})})(e,{signal:t});if(Array.isArray(a)){return{data:((e=[],t)=>{const a=e.map((({datapoints:e,target:a})=>{const n=t.find((e=>e.target===a));if(!n)return;const r=e.map((e=>e[0]));return{...n,data:r}})).filter((e=>void 0!==e));return{timeline:e[0].datapoints.map((e=>1e3*e[1])),metrics:a}})(a,e.metrics)}}return{error:new Error("string"===typeof a?ri("not-supported"):a.error)}}catch(a){return{error:a}}},providesTags:["All"],keepUnusedDataFor:0})}),overrideExisting:"throw"}),ii=(0,c.cn)("ydb-metric-chart");Ws.W.set({plugins:[Js.YagrPlugin]});const oi=(e,t={})=>{const{dataType:a,scaleRange:n,showLegend:r}=t,s=(e=>{switch(e){case"ms":return Zs;case"size":return Xs;case"percent":return ei;default:return}})(a),i=!e.metrics.length,o=e.metrics.map(((e,t)=>{const a=e.color||Ys[t],n=function(e,t){const a=(0,Ks.Mj)(e);if(!a.isValid())throw new Error("Invalid color is passed");return a.alpha(t).toRgbString()}(a,.1);return{id:e.target,name:e.title||e.target,data:e.data,formatter:s,lineColor:a,color:n,legendColorKey:"lineColor"}}));return{data:{timeline:e.timeline,graphs:o},libraryConfig:{chart:{size:{padding:i?[10,0,10,0]:void 0},series:{type:"area",spanGaps:!0,lineWidth:1.5},select:{zoom:!1}},scales:{y:{type:"linear",range:"nice",min:(null===n||void 0===n?void 0:n.min)||0,max:null===n||void 0===n?void 0:n.max}},axes:{y:{values:s?(e,t)=>t.map(s):void 0}},tooltip:{show:!0,tracking:"sticky"},legend:{show:r}}}},li={timeline:[],metrics:[]},ci=({database:e,title:t,metrics:a,timeFrame:r="1h",autorefresh:s,width:i=400,height:o=i/1.5,chartOptions:l,onChartDataStatusChange:c,isChartVisible:u})=>{const{currentData:m,error:p,isFetching:h,status:v}=si.useGetChartDataQuery({database:e,metrics:a,timeFrame:r,maxDataPoints:i/2},{pollingInterval:s}),g=h&&!m;n.useEffect((()=>null===c||void 0===c?void 0:c("fulfilled"===v?"success":"loading")),[v,c]);const y=oi(m||li,l);return(0,d.jsxs)("div",{className:ii(null),style:{height:o,width:i},children:[(0,d.jsx)("div",{className:ii("title"),children:t}),g?(0,d.jsx)(ue.a,{}):u?(0,d.jsxs)("div",{className:ii("chart"),children:[(0,d.jsx)(Vs.Ay,{type:"yagr",data:y}),p?(0,d.jsx)(de.o,{className:ii("error"),error:p}):null]}):null]})},di=(0,c.cn)("ydb-timeframe-selector"),ui=({value:e,onChange:t,className:a})=>(0,d.jsx)("div",{className:di(null,a),children:Object.keys(ai).map((a=>(0,d.jsx)(vn.$,{view:"flat",selected:e===a,onClick:()=>t(a),children:a},a)))}),mi=(0,c.cn)("ydb-tenant-dashboard"),pi=({database:e,charts:t})=>{const[a,r]=n.useState(!0),[i="1h",o]=(0,s.useQueryParam)("timeframe",s.StringParam),[l]=(0,X.Nt)(),c=a?0:l,u=e=>{"success"===e&&r(!1)},m=1===t.length?872:428,p=428/1.5;return(0,d.jsxs)("div",{className:mi(null),style:{display:a?"none":void 0},children:[(0,d.jsx)("div",{className:mi("controls"),children:(0,d.jsx)(ui,{value:i,onChange:o})}),(0,d.jsx)("div",{className:mi("charts"),children:t.map((t=>{const n=t.metrics.map((({target:e})=>e)).join("&");return(0,d.jsx)(ci,{database:e,title:t.title,metrics:t.metrics,timeFrame:i,chartOptions:t.options,autorefresh:c,width:m,height:p,onChartDataStatusChange:u,isChartVisible:!a},n)}))})]})},hi=JSON.parse('{"no-data":"No data","no-pools-data":"No pools data","top-nodes.empty-data":"No such nodes","top-groups.empty-data":"No such groups","top":"Top","nodes":"nodes","shards":"shards","groups":"groups","queries":"queries","tables":"tables","by-pools-usage":"by pools usage","by-cpu-time":"by cpu time, {{executionPeriod}}","by-cpu-usage":"by cpu usage","by-load":"by load","by-memory":"by memory","by-usage":"by usage","by-size":"by size","cards.cpu-label":"CPU","cards.storage-label":"Storage","cards.memory-label":"Memory","charts.queries-per-second":"Queries per second","charts.transaction-latency":"Transactions latencies {{percentile}}","charts.cpu-usage":"CPU usage by pool","charts.storage-usage":"Tablet storage usage","charts.memory-usage":"Memory usage","storage.tablet-storage-title":"Tablet storage","storage.tablet-storage-description":"Size of user data and indexes stored in schema objects (tables, topics, etc.)","storage.db-storage-title":"Database storage","storage.db-storage-description":"Size of data stored in distributed storage with all overheads for redundancy","executed-last-hour":"executed in the last hour","column-header.process":"Process"}'),vi=(0,Be.g4)("ydb-diagnostics-tenant-overview",{en:hi}),gi=[{title:vi("charts.queries-per-second"),metrics:[{target:"queries.requests",title:vi("charts.queries-per-second")}]},{title:vi("charts.transaction-latency",{percentile:""}),metrics:[{target:"queries.latencies.p50",title:"p50"},{target:"queries.latencies.p75",title:"p75"},{target:"queries.latencies.p90",title:"p90"},{target:"queries.latencies.p99",title:"p99"}],options:{dataType:"ms",showLegend:!0}}],yi=({database:e})=>(0,d.jsx)(pi,{database:e,charts:gi});var xi=a(67157);const bi=H.F.injectEndpoints({endpoints:e=>({getHealthcheckInfo:e.query({queryFn:async({database:e,maxLevel:t},{signal:a})=>{try{return{data:await window.api.viewer.getHealthcheckInfo({database:e,maxLevel:t},{signal:a})}}catch(n){return{error:n}}},providesTags:["All"]})}),overrideExisting:"throw"}),fi={RED:0,ORANGE:1,YELLOW:2,BLUE:3,GREEN:4},ji=e=>e.sort(((e,t)=>(fi[e.status]||0)-(fi[t.status]||0))),Si=({issue:e,data:t})=>ji(t.filter((t=>e.reason&&-1!==e.reason.indexOf(t.id)))),Ti=({data:e,roots:t})=>t?t.map((t=>{const a=Ti({roots:Si({issue:t,data:e}),data:e});return{...t,reasonsItems:a}})):[],Ni=(0,g.Mz)((e=>e),(e=>bi.endpoints.getHealthcheckInfo.select({database:e}))),Ei=(0,g.Mz)((e=>e),((e,t)=>Ni(t)),((e,t)=>{var a;return(null===(a=t(e).data)||void 0===a?void 0:a.issue_log)||[]})),wi=(0,g.Mz)(Ei,((e=[])=>{return ji((t=e).filter((e=>!t.find((t=>t.reason&&-1!==t.reason.indexOf(e.id))))));var t})),Ci=(0,g.Mz)([Ei,wi],((e=[],t=[])=>Ti({data:e,roots:t}))),Pi=(0,g.Mz)(Ei,((e=[])=>(e=>{const t={};for(const a of e)t[a.status]||(t[a.status]=0),t[a.status]++;return Object.entries(t).sort((([e],[t])=>(fi[e]||0)-(fi[t]||0)))})(e)));let Ii=function(e){return e.UNSPECIFIED="UNSPECIFIED",e.GOOD="GOOD",e.DEGRADED="DEGRADED",e.MAINTENANCE_REQUIRED="MAINTENANCE_REQUIRED",e.EMERGENCY="EMERGENCY",e}({}),Di=function(e){return e.UNSPECIFIED="UNSPECIFIED",e.GREY="GREY",e.GREEN="GREEN",e.BLUE="BLUE",e.YELLOW="YELLOW",e.ORANGE="ORANGE",e.RED="RED",e}({});var Ai=a(63126),_i=a(54090);const Ri={[Di.UNSPECIFIED]:_i.m.Grey,[Di.GREY]:_i.m.Grey,[Di.GREEN]:_i.m.Green,[Di.BLUE]:_i.m.Blue,[Di.YELLOW]:_i.m.Yellow,[Di.ORANGE]:_i.m.Orange,[Di.RED]:_i.m.Red},ki=(0,c.cn)("issue-tree-item"),Oi=({status:e,message:t,type:a,onClick:n})=>(0,d.jsxs)("div",{className:ki(),onClick:n,children:[(0,d.jsx)("div",{className:ki("field",{status:!0}),children:(0,d.jsx)(Or.c,{mode:"icons",status:e,name:a})}),(0,d.jsx)("div",{className:ki("field",{message:!0}),children:t})]}),Mi=(0,c.cn)("issue-tree"),Li=({issueTree:e})=>{const[t,a]=n.useState({}),r=n.useCallback((e=>e?(0,d.jsx)("div",{className:Mi("info-panel"),children:(0,d.jsx)(mr,{value:Cn(e)})}):null),[]),s=n.useCallback((e=>e.map((e=>{const{id:n}=e,{status:i,message:o,type:l,reasonsItems:c,level:u,...m}=e,p="undefined"===typeof t[n]||t[n],h=()=>{a((e=>({...e,[n]:!p})))};return(0,d.jsxs)(Ai.G,{name:(0,d.jsx)(Oi,{status:Ri[i],message:o,type:l}),collapsed:p,hasArrow:!0,onClick:h,onArrowClick:h,level:u-1,children:[r(_s()(m,["reason"])),s(c||[])]},n)}))),[t,r]);return(0,d.jsx)("div",{className:Mi(),children:(0,d.jsx)("div",{className:Mi("block"),children:s([e])})})},zi=JSON.parse('{"title.healthcheck":"Healthcheck","label.update":"Update","label.show-details":"Show details","label.issues":"Issues:","status_message.ok":"No issues","no-data":"no healthcheck data"}'),Fi=JSON.parse('{"title.healthcheck":"Healthcheck","label.update":"\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c","label.show-details":"\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438","label.issues":"\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u044b:","status_message.ok":"\u041d\u0435\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c","no-data":"\u043d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445 healthcheck"}'),qi=(0,Be.g4)("ydb-diagnostics-healthcheck",{ru:Fi,en:zi}),Ui=(0,c.cn)("healthcheck");function Qi({tenantName:e}){const[t]=(0,X.Nt)(),{name:a}=(0,xi.Zd)(),{issueTrees:r,loading:s,error:i}=((e,{autorefresh:t}={})=>{const{currentData:a,isFetching:n,error:r,refetch:s}=bi.useGetHealthcheckInfoQuery({database:e},{pollingInterval:t}),i=(null===a||void 0===a?void 0:a.self_check_result)||Ii.UNSPECIFIED,o=(0,X.N4)((t=>Pi(t,e)));return{issueTrees:(0,X.N4)((t=>Ci(t,e))),issuesStatistics:o,loading:void 0===a&&n,error:r,refetch:s,selfCheckResult:i}})(e,{autorefresh:"ydb_ru"===a?void 0:t});return(0,d.jsx)("div",{className:Ui("details"),children:(0,d.jsx)("div",{className:Ui("details-content-wrapper"),children:i?(0,d.jsx)(de.o,{error:i,defaultMessage:qi("no-data")}):s?(0,d.jsx)(ue.a,{size:"m"}):r&&r.length?(0,d.jsx)(n.Fragment,{children:r.map((e=>(0,d.jsx)(Li,{issueTree:e},e.id)))}):qi("status_message.ok")})})}var $i=a(8861),Bi=a(73633),Hi=a(70825),Gi=a(43937),Wi=a(10800),Vi=a(71153),Ji=a(2102),Ki=a(52358);const Yi=(0,c.cn)("healthcheck"),Zi={[Ii.UNSPECIFIED]:Bi.A,[Ii.GOOD]:Hi.A,[Ii.DEGRADED]:Gi.A,[Ii.MAINTENANCE_REQUIRED]:Wi.A,[Ii.EMERGENCY]:Vi.A};function Xi(e){const{tenantName:t,active:a}=e,[r]=(0,X.Nt)(),{metricsTab:s}=(0,X.N4)((e=>e.tenant)),{name:i}=(0,xi.Zd)(),o="ydb_ru"===i,{currentData:l,isFetching:c,error:u}=bi.useGetHealthcheckInfoQuery({database:t},{pollingInterval:o?void 0:r,skip:o}),[m,{currentData:p,isFetching:h}]=bi.useLazyGetHealthcheckInfoQuery();n.useEffect((()=>{"healthcheck"===s&&o&&m({database:t})}),[s,o,t,m]),n.useEffect((()=>{const e=()=>{o&&m({database:t})};return document.addEventListener("diagnosticsRefresh",e),()=>{document.removeEventListener("diagnosticsRefresh",e)}}),[t,o,m]);const v=c&&void 0===l||h&&void 0===p;return(0,d.jsxs)(Ji.A,{className:Yi("preview"),active:a,children:[(0,d.jsx)("div",{className:Yi("preview-header"),children:(0,d.jsxs)("div",{className:Yi("preview-title-wrapper"),children:[(0,d.jsx)("div",{className:Yi("preview-title"),children:qi("title.healthcheck")}),o?(0,d.jsx)(ia.A,{content:"Healthcheck is disabled. Please update healthcheck manually.",placement:["top"],className:Yi("icon-wrapper"),children:()=>(0,d.jsx)(ct.I,{size:16,className:Yi("icon-warn"),data:Ki.A})}):null]})}),(()=>{if(u)return(0,d.jsx)(de.o,{error:u,defaultMessage:qi("no-data")});if(v)return(0,d.jsx)(ue.a,{size:"m"});const e=(null===l||void 0===l?void 0:l.self_check_result)||(null===p||void 0===p?void 0:p.self_check_result)||Ii.UNSPECIFIED,t=e.toLowerCase();return(0,d.jsx)("div",{className:Yi("preview-content"),children:(0,d.jsxs)("div",{className:Yi("preview-issue",{[t]:!0}),children:[(0,d.jsx)(ct.I,{className:Yi("preview-status-icon"),data:Zi[e]}),(0,d.jsx)("div",{className:Yi("self-check-status-indicator"),children:e.replace(/_/g," ")})]})})})()]})}var eo=a(15132),to=a(33775);const ao=(0,c.cn)("ydb-metrics-card"),no=e=>{let t;return"Warning"===e&&(t=_i.m.Yellow),"Danger"===e&&(t=_i.m.Red),t?(0,d.jsx)(to.k,{status:t,mode:"icons",size:"l"}):null};function ro({active:e,label:t,status:a,metrics:n}){return(0,d.jsxs)(Ji.A,{className:ao({active:e}),active:e,children:[(0,d.jsxs)("div",{className:ao("header"),children:[t&&(0,d.jsx)("div",{className:ao("label"),children:t}),no(a)]}),(0,d.jsx)("div",{className:ao("content"),children:n.map((({title:e,...t},a)=>(0,d.jsxs)("div",{className:ao("metric"),children:[(0,d.jsx)("div",{className:ao("metric-title"),children:e}),(0,d.jsx)(eo.O,{size:"xs",colorizeProgress:!0,...t})]},a)))})]})}const so=(0,c.cn)("metrics-cards");function io({poolsCpuStats:e,memoryStats:t,blobStorageStats:a,tabletStorageStats:n,tenantName:r}){const s=(0,$r.zy)(),{metricsTab:i}=(0,X.N4)((e=>e.tenant)),o=(0,ye.mA)(s),l=e=>e===i?"":e,c={[ae.pA.cpu]:(0,ra.YL)({...o,[ra.vh.metricsTab]:l(ae.pA.cpu)}),[ae.pA.storage]:(0,ra.YL)({...o,[ra.vh.metricsTab]:l(ae.pA.storage)}),[ae.pA.memory]:(0,ra.YL)({...o,[ra.vh.metricsTab]:l(ae.pA.memory)}),[ae.pA.healthcheck]:(0,ra.YL)({...o,[ra.vh.metricsTab]:l(ae.pA.healthcheck)})};return(0,d.jsxs)("div",{className:so(),children:[(0,d.jsx)(re.N_,{to:c.cpu,className:so("tab"),children:(0,d.jsx)(oo,{poolsCpuStats:e,active:i===ae.pA.cpu})}),(0,d.jsx)(re.N_,{to:c.storage,className:so("tab"),children:(0,d.jsx)(lo,{blobStorageStats:a,tabletStorageStats:n,active:i===ae.pA.storage})}),(0,d.jsx)(re.N_,{to:c.memory,className:so("tab"),children:(0,d.jsx)(co,{memoryStats:t,active:i===ae.pA.memory})}),(0,d.jsx)(re.N_,{to:c.healthcheck,className:so("tab"),children:(0,d.jsx)(Xi,{tenantName:r,active:i===ae.pA.healthcheck})})]})}function oo({poolsCpuStats:e=[],active:t}){let a=$i.u.Unspecified;const n=e.filter((e=>!("Batch"===e.name||"IO"===e.name))).map((e=>{const{name:t,usage:n,limit:r,used:s}=e,i=(0,Gs.sf)(n);return $i.Z[i]>$i.Z[a]&&(a=i),{title:t,value:s,capacity:r}}));return(0,d.jsx)(ro,{label:vi("cards.cpu-label"),active:t,metrics:n,status:a})}function lo({blobStorageStats:e=[],tabletStorageStats:t,active:a}){let n=$i.u.Unspecified;const r=(t||e).map((e=>{const{name:t,used:a,limit:r,usage:s}=e,i=(0,Gs.sf)(s);return $i.Z[i]>$i.Z[n]&&(n=i),{title:t,value:a,capacity:r,formatValues:he.j9}}));return(0,d.jsx)(ro,{label:vi("cards.storage-label"),active:a,metrics:r,status:n})}function co({active:e,memoryStats:t=[]}){let a=$i.u.Unspecified;const n=t.map((e=>{const{name:t,used:n,limit:r,usage:s}=e,i=(0,Gs.sf)(s);return $i.Z[i]>$i.Z[a]&&(a=i),{title:t,value:n,capacity:r,formatValues:he.j9}}));return(0,d.jsx)(ro,{label:vi("cards.memory-label"),active:e,metrics:n,status:a})}var uo=a(78762),mo=a(86782),po=a(15298),ho=a(40781);const vo=(0,c.cn)("tenant-overview");function go({title:e,error:t,loading:a,tableClassNameModifiers:r={},...s}){return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)("div",{className:vo("title"),children:e}),t?(0,d.jsx)(de.o,{error:t}):null,(0,d.jsx)("div",{className:vo("table",r),children:t&&0===s.data.length?null:a?(0,d.jsx)(Tt.Q,{rows:Z.Nz}):(0,d.jsx)(Fe.l,{settings:Z.jp,...s})})]})}var yo=a(82015);const xo=({prefix:e=vi("top"),entity:t,postfix:a,link:r,onClick:s})=>r?(0,d.jsxs)(n.Fragment,{children:[e," ",(0,d.jsx)(yo.E,{to:r,onClick:s,children:t})," ",a]}):`${e} ${t} ${a}`;function bo({tenantName:e,additionalNodesProps:t}){const a=(0,X.e4)(),[n]=(0,X.Nt)(),[r,s]=function(e){const t={...(0,uo.Nh)(e),width:void 0},a=[(0,uo.kv)(),(0,uo._E)(),t].map((e=>({...e,sortable:!1}))),n=a.map((e=>e.name));return[a,(0,ho.R)(n,mo.fN)]}({getNodeRef:null===t||void 0===t?void 0:t.getNodeRef,database:e}),{currentData:i,isFetching:o,error:l}=po.s.useGetNodesQuery({tenant:e,type:"any",sort:"-CPU",limit:Z.Nz,tablets:!1,fieldsRequired:s},{pollingInterval:n}),c=o&&void 0===i,u=(null===i||void 0===i?void 0:i.Nodes)||[],m=xo({entity:vi("nodes"),postfix:vi("by-pools-usage"),link:(0,ra.YL)({...a,[ra.vh.diagnosticsTab]:ae.iJ.nodes})});return(0,d.jsx)(go,{columnsWidthLSKey:mo.zO,data:u,columns:r,title:m,loading:c,error:l,emptyDataMessage:vi("top-nodes.empty-data")})}function fo({tenantName:e,additionalNodesProps:t}){const a=(0,X.e4)(),[n]=(0,X.Nt)(),[r,s]=function(e){const t={...(0,uo.Nh)(e),width:void 0},a=[(0,uo.fR)(),(0,uo._E)(),t,(0,uo.Rn)()].map((e=>({...e,sortable:!1}))),n=a.map((e=>e.name));return[a,(0,ho.R)(n,mo.fN)]}({getNodeRef:null===t||void 0===t?void 0:t.getNodeRef,database:e}),{currentData:i,isFetching:o,error:l}=po.s.useGetNodesQuery({tenant:e,type:"any",sort:"-LoadAverage",limit:Z.Nz,tablets:!1,fieldsRequired:s},{pollingInterval:n}),c=o&&void 0===i,u=(null===i||void 0===i?void 0:i.Nodes)||[],m=xo({entity:vi("nodes"),postfix:vi("by-load"),link:(0,ra.YL)({...a,[ra.vh.diagnosticsTab]:ae.iJ.nodes})});return(0,d.jsx)(go,{columnsWidthLSKey:mo.zO,data:u,columns:r,title:m,loading:c,error:l,emptyDataMessage:vi("top-nodes.empty-data")})}var jo=a(69053),So=a(73289),To=a(16332);const No=JSON.parse('{"action_cancel":"Cancel"}'),Eo=(0,Be.g4)("ydb-confirmation-dialog",{en:No}),wo=(0,c.cn)("confirmation-dialog"),Co="confirmation-dialog";function Po({caption:e="",children:t,onConfirm:a,onClose:n,progress:r,textButtonApply:s,textButtonCancel:i,buttonApplyView:o="normal",className:l,renderButtons:c,open:u}){return(0,d.jsxs)(Hn.l,{className:wo(null,l),size:"s",onClose:n,disableOutsideClick:!0,open:u,children:[(0,d.jsx)(Hn.l.Header,{caption:(0,d.jsx)("span",{className:wo("caption"),children:e})}),(0,d.jsx)(Hn.l.Body,{children:t}),(0,d.jsx)(Hn.l.Footer,{onClickButtonApply:a,propsButtonApply:{view:o},textButtonApply:s,textButtonCancel:null!==i&&void 0!==i?i:Eo("action_cancel"),onClickButtonCancel:n,loading:r,renderButtons:c})]})}const Io=To.vt((e=>{const t=To.hS(),a=()=>{t.hide(),t.remove()};return(0,d.jsx)(Po,{...e,onConfirm:async()=>{var n;await(null===(n=e.onConfirm)||void 0===n?void 0:n.call(e)),t.resolve(!0),a()},onClose:()=>{var n;null===(n=e.onClose)||void 0===n||n.call(e),t.resolve(!1),a()},open:t.visible})}));To.kz(Co,Io);var Do=a(40569),Ao=a(36894);function _o(){const[e]=(0,X.iK)(Z.ld,[]),t=(0,X.N4)(Ao.cu).toLowerCase();return t?e.filter((e=>e.body.toLowerCase().includes(t))):e}const Ro=JSON.parse('{"action.save":"Save query","action.edit":"Edit query","action.save-as-new":"Save as new","action.edit-existing":"Edit existing","description":"The query will be saved in your browser","input-label":"Query name","input-placeholder":"Enter query name","button-apply":"Save","button-cancel":"Cancel","error.name-exists":"This name already exists","error.name-not-empty":"Name should not be empty"}'),ko=(0,Be.g4)("ydb-save-query-dialog",{en:Ro}),Oo=(0,c.cn)("ydb-save-query");function Mo(e){const t=(0,X.YQ)();return n.useCallback((()=>{To.Ay.show(qo,e),t((0,Ao.gJ)())}),[t,e])}function Lo({dialogProps:e,...t}){const a=Mo(e);return(0,d.jsx)(vn.$,{onClick:a,...t,children:ko("action.save")})}function zo({buttonProps:e={}}){const t=(0,X.YQ)(),a=(0,X.N4)(Ao.aW),n=Mo(),r=()=>{t((0,Ao.Wg)(a)),t((0,Ao.gJ)())};return a?(()=>{const t=[{action:r,text:ko("action.edit-existing")},{action:n,text:ko("action.save-as-new")}];return(0,d.jsx)(Do.r,{items:t,renderSwitcher:t=>(0,d.jsx)(vn.$,{...t,...e,children:ko("action.edit")}),popupProps:{placement:"top"}})})():(0,d.jsx)(Lo,{})}function Fo({onSuccess:e,onCancel:t,onClose:a,open:r}){const s=_o(),i=(0,X.YQ)(),[o,l]=n.useState(""),[c,u]=n.useState(),m=()=>{i((0,Ao.NJ)("idle")),l(""),u(void 0),null===a||void 0===a||a()},p=()=>{null===t||void 0===t||t(),m()};return(0,d.jsxs)(Hn.l,{open:r,hasCloseButton:!1,size:"s",onClose:p,children:[(0,d.jsx)(Hn.l.Header,{caption:ko("action.save")}),(0,d.jsxs)("form",{onSubmit:t=>{t.preventDefault();const a=(n=o)?s.some((e=>e.name.toLowerCase()===n.trim().toLowerCase()))?ko("error.name-exists"):void 0:ko("error.name-not-empty");var n;u(a),a||(i((0,Ao.Wg)(o)),m(),null===e||void 0===e||e())},children:[(0,d.jsxs)(Hn.l.Body,{className:Oo("dialog-body"),children:[(0,d.jsx)("div",{className:Oo("dialog-row"),children:ko("description")}),(0,d.jsxs)("div",{className:Oo("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"queryName",className:Oo("field-title","required"),children:ko("input-label")}),(0,d.jsx)("div",{className:Oo("control-wrapper"),children:(0,d.jsx)(qn.k,{id:"queryName",placeholder:ko("input-placeholder"),value:o,onUpdate:e=>{l(e),u(void 0)},hasClear:!0,autoFocus:!0,autoComplete:!1,validationState:c?"invalid":void 0,errorMessage:c})})]})]}),(0,d.jsx)(Hn.l.Footer,{textButtonApply:ko("button-apply"),textButtonCancel:ko("button-cancel"),onClickButtonCancel:p,propsButtonApply:{type:"submit"}})]})]})}const qo="save-query-dialog",Uo=To.Ay.create((e=>{const t=To.Ay.useModal();return(0,d.jsx)(Fo,{...e,onClose:()=>{var a;null===(a=e.onClose)||void 0===a||a.call(e),t.hide(),t.remove()},open:t.visible})}));To.Ay.register(qo,Uo);const Qo=JSON.parse('{"action_apply":"Don\'t save","context_unsaved-changes-warning":"You have unsaved changes in query editor.\\nDo you want to proceed?"}'),$o=(0,Be.g4)("ydb-change-input-confirmation",{en:Qo});function Bo(){const e=To.Ay.useModal(Co),t=n.useCallback((()=>{e.hide(),e.remove()}),[e]),a=n.useCallback((()=>{e.resolve(!0),t()}),[e,t]),r=n.useCallback((()=>{e.resolve(!1),t()}),[t,e]),s=n.useMemo((()=>({onSuccess:a,onCancel:r})),[a,r]);return(0,d.jsx)(Lo,{view:"action",size:"l",dialogProps:s})}async function Ho(){return await To.Ay.show(Co,{id:Co,caption:$o("context_unsaved-changes-warning"),textButtonApply:$o("action_apply"),propsButtonApply:{view:"l"},renderButtons:(e,t)=>(0,d.jsxs)(n.Fragment,{children:[t,(0,d.jsx)(Bo,{}),e]})})}function Go(e){const t=(0,X.N4)(So.Wp),a=n.useMemo((()=>function(e){return async t=>{await Ho()&&e(t)}}(e)),[e]);return t?a:e}const Wo=(0,c.cn)("kv-truncated-query"),Vo=({value:e="",maxQueryHeight:t=6})=>{const a=e.split("\n");if(a.length>t){const e=a.slice(0,t).join("\n"),r="\n...\nThe request was truncated. Click on the line to show the full query on the query tab";return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(rs,{className:Wo(),children:e}),(0,d.jsx)("span",{className:Wo("message",{color:"secondary"}),children:r})]})}return(0,d.jsx)(rs,{children:e})};var Jo=a(70206),Ko=a.n(Jo);const Yo={...Z.N3,dynamicRenderType:"variable"},Zo=JSON.parse('{"cpu-time":"CPUTime","read-rows":"ReadRows","read-bytes":"ReadBytes","query-hash":"QueryHash","user":"User","start-time":"Start time","end-time":"End time","duration":"Duration","query-text":"Query text","application":"Application"}'),Xo=(0,Be.g4)("ydb-top-queries-columns",{en:Zo}),el="topQueriesColumnsWidth",tl="CPUTime",al="QueryText",nl="EndTime",rl="ReadRows",sl="ReadBytes",il="UserSID",ol="OneLineQueryText",ll="QueryHash",cl="Duration",dl="QueryStartAt",ul="ApplicationName",ml={get CPUTime(){return Xo("cpu-time")},get QueryText(){return Xo("query-text")},get EndTime(){return Xo("end-time")},get ReadRows(){return Xo("read-rows")},get ReadBytes(){return Xo("read-bytes")},get UserSID(){return Xo("user")},get OneLineQueryText(){return Xo("query-text")},get QueryHash(){return Xo("query-hash")},get Duration(){return Xo("duration")},get QueryStartAt(){return Xo("start-time")},get ApplicationName(){return Xo("application")}},pl={CPUTime:"CPUTimeUs",QueryText:void 0,EndTime:"EndTime",ReadRows:"ReadRows",ReadBytes:"ReadBytes",UserSID:"UserSID",OneLineQueryText:void 0,QueryHash:void 0,Duration:"Duration",QueryStartAt:"QueryStartAt",ApplicationName:"ApplicationName"};function hl(e){return pl[e]}function vl(e){return Boolean(hl(e))}const gl=(0,c.cn)("kv-top-queries"),yl={name:tl,header:ml.CPUTime,sortAccessor:e=>Number(e.CPUTimeUs),render:({row:e})=>{var t;return(0,vt.Xo)((0,vt.Jc)(null!==(t=e.CPUTimeUs)&&void 0!==t?t:void 0))},width:120,align:Rt.Ay.RIGHT,sortable:!1},xl={name:al,header:ml.QueryText,sortAccessor:e=>Number(e.CPUTimeUs),render:({row:e})=>{var t;return(0,d.jsx)("div",{className:gl("query"),children:(0,d.jsx)(Vo,{value:null===(t=e.QueryText)||void 0===t?void 0:t.toString(),maxQueryHeight:6})})},sortable:!1,width:500},bl={name:nl,header:ml.EndTime,render:({row:e})=>(0,he.r6)(new Date(e.EndTime).getTime()),align:Rt.Ay.RIGHT,width:200},fl={name:rl,header:ml.ReadRows,render:({row:e})=>(0,he.ZV)(e.ReadRows),sortAccessor:e=>Number(e.ReadRows),align:Rt.Ay.RIGHT,width:150},jl={name:sl,header:ml.ReadBytes,render:({row:e})=>(0,he.ZV)(e.ReadBytes),sortAccessor:e=>Number(e.ReadBytes),align:Rt.Ay.RIGHT,width:150},Sl={name:il,header:ml.UserSID,render:({row:e})=>(0,d.jsx)("div",{className:gl("user-sid"),children:e.UserSID||"\u2013"}),sortAccessor:e=>String(e.UserSID),align:Rt.Ay.LEFT},Tl={name:ol,header:ml.OneLineQueryText,render:({row:e})=>{var t;return(0,d.jsx)(rs,{children:(null===(t=e.QueryText)||void 0===t?void 0:t.toString())||""})},sortable:!1,width:500},Nl={name:ll,header:ml.QueryHash,render:({row:e})=>{return t=String(e.QueryText),(Ko().str(t)>>>0).toString(16).toUpperCase().padStart(8,"0");var t},width:130,sortable:!1},El={name:cl,header:ml.Duration,render:({row:e})=>{var t;return(0,vt.Xo)((0,vt.Jc)(null!==(t=e.Duration)&&void 0!==t?t:void 0))},sortAccessor:e=>Number(e.Duration),align:Rt.Ay.RIGHT,width:150},wl={name:dl,header:ml.QueryStartAt,render:({row:e})=>(0,he.r6)(new Date(e.QueryStartAt).getTime()),sortable:!0,resizeable:!1,defaultOrder:Rt.Ay.DESCENDING},Cl={name:ul,header:ml.ApplicationName,render:({row:e})=>(0,d.jsx)("div",{className:gl("user-sid"),children:e.ApplicationName||"\u2013"}),sortable:!0};function Pl({tenantName:e}){var t,a;const r=(0,X.YQ)(),s=(0,$r.zy)(),i=(0,$r.W6)(),o=(0,ye.mA)(s),[l]=(0,X.Nt)(),c=n.useMemo((()=>[Nl,Tl,yl].map((e=>({...e,sortable:!1})))),[]),{currentData:u,isFetching:m,error:p}=jo.Ke.useGetTopQueriesQuery({database:e},{pollingInterval:l}),h=m&&void 0===u,v=(null===u||void 0===u||null===(t=u.resultSets)||void 0===t||null===(a=t[0])||void 0===a?void 0:a.result)||[],g=Go(n.useCallback((e=>{const{QueryText:t}=e;r((0,So.iZ)({input:t}));const a=(0,ye.mA)(s),n=(0,ra.YL)({...a,[ae.Dt]:ae.Dg.query,[ra.vh.queryTab]:ae.tQ.newQuery});i.push(n)}),[r,i,s])),y=xo({entity:vi("queries"),postfix:vi("by-cpu-time",{executionPeriod:vi("executed-last-hour")}),onClick:()=>{r((0,jo.TX)({from:void 0,to:void 0}))},link:(0,ra.YL)({...o,[ra.vh.diagnosticsTab]:ae.iJ.topQueries})});return(0,d.jsx)(go,{columnsWidthLSKey:el,data:v||[],columns:c,onRowClick:g,title:y,loading:h,error:(0,Nt.Cb)(p),rowClassName:()=>vo("top-queries-row")})}function Il(e,t){return`SELECT\n ${t?`CAST(SUBSTRING(CAST(Path AS String), ${t.length}) AS Utf8) AS Path`:"Path"},\n TabletId,\n CPUCores,\nFROM \`.sys/partition_stats\`\nWHERE\n Path='${e}'\n OR Path LIKE '${e}/%'\nORDER BY CPUCores DESC\nLIMIT ${Z.Nz}`}const Dl=H.F.injectEndpoints({endpoints:e=>({getTopShards:e.query({queryFn:async({database:e,path:t=""},{signal:a})=>{try{const n=await window.api.viewer.sendQuery({query:Il(t,e),database:e,action:"execute-scan"},{signal:a,withRetries:!0});return(0,Nt.We)(n)?{error:n}:{data:(0,Nt.fW)(n)}}catch(n){return{error:n||new Error("Unauthorized")}}},providesTags:["All"]})}),overrideExisting:"throw"});var Al=a(67884);function _l({path:e,location:t,...a}){const n=(0,ye.mA)(t),r=(0,ye.Ow)({...n,schema:e});return(0,d.jsx)(Al.N,{view:"normal",...a,href:r})}var Rl=a(80420),kl=a(13342),Ol=a(16439),Ml=a(29819);const Ll=JSON.parse('{"tablet-id":"TabletId","cpu-cores":"CPUCores","data-size":"DataSize (B)","path":"Path","node-id":"NodeId","peak-time":"PeakTime","in-flight-tx-count":"InFlightTxCount","interval-end":"IntervalEnd"}'),zl=(0,Be.g4)("ydb-top-shards-columns",{en:Ll}),Fl="topShardsColumnsWidth",ql="TabletId",Ul="CPUCores",Ql="DataSize",$l="Path",Bl="NodeId",Hl="PeakTime",Gl="InFlightTxCount",Wl="IntervalEnd",Vl={get TabletId(){return zl("tablet-id")},get CPUCores(){return zl("cpu-cores")},get DataSize(){return zl("data-size")},get Path(){return zl("path")},get NodeId(){return zl("node-id")},get PeakTime(){return zl("peak-time")},get InFlightTxCount(){return zl("in-flight-tx-count")},get IntervalEnd(){return zl("interval-end")}},Jl={TabletId:void 0,CPUCores:"CPUCores",DataSize:"DataSize",Path:void 0,NodeId:void 0,PeakTime:void 0,InFlightTxCount:"InFlightTxCount",IntervalEnd:void 0};function Kl(e){return Jl[e]}const Yl=(e,t)=>({name:$l,header:Vl.Path,render:({row:a})=>(0,d.jsx)(_l,{path:e+a.Path,location:t,children:a.Path}),sortable:!1,width:300}),Zl={name:Ul,header:Vl.CPUCores,render:({row:e})=>{return t=e.CPUCores||0,`${(0,he.CR)(100*Number(t),2)}%`;var t},align:Rt.Ay.RIGHT},Xl={name:Ql,header:Vl.DataSize,render:({row:e})=>(0,he.ZV)(e.DataSize),align:Rt.Ay.RIGHT},ec={name:ql,header:Vl.TabletId,render:({row:e})=>e.TabletId?(0,d.jsx)(Rl.$,{tabletId:e.TabletId}):"\u2013",sortable:!1,width:220},tc={name:Bl,header:Vl.NodeId,render:({row:e})=>e.NodeId?(0,d.jsx)(_a.E,{to:(0,Ml.vI)(e.NodeId),children:e.NodeId}):"\u2013",align:Rt.Ay.RIGHT},ac={name:Ul,header:Vl.CPUCores,render:({row:e})=>(0,d.jsx)(kl.U,{value:(0,he.CR)(100*Number(e.CPUCores),2),theme:(0,Ol.f)(100*Number(e.CPUCores))}),align:Rt.Ay.RIGHT,sortable:!1,width:140,resizeMinWidth:140},nc={name:Gl,header:Vl.InFlightTxCount,render:({row:e})=>(0,he.ZV)(e.InFlightTxCount),align:Rt.Ay.RIGHT},rc=({tenantName:e,path:t})=>{var a,n;const r=(0,$r.zy)(),s=(0,ye.mA)(r),[i]=(0,X.Nt)(),{currentData:o,isFetching:l,error:c}=Dl.useGetTopShardsQuery({database:e,path:t},{pollingInterval:i}),u=l&&void 0===o,m=(null===o||void 0===o||null===(a=o.resultSets)||void 0===a||null===(n=a[0])||void 0===n?void 0:n.result)||[],p=((e,t)=>[ec,Yl(e,t),ac])(e,r),h=xo({entity:vi("shards"),postfix:vi("by-cpu-usage"),link:(0,ra.YL)({...s,[ra.vh.diagnosticsTab]:ae.iJ.topShards})});return(0,d.jsx)(go,{columnsWidthLSKey:Fl,data:m||[],columns:p,title:h,loading:u,error:(0,Nt.Cb)(c)})},sc=[{title:vi("charts.cpu-usage"),metrics:["IC","IO","Batch","User","System"].map((e=>({target:`resources.cpu.${e}.usage`,title:e}))),options:{dataType:"percent",scaleRange:{min:0,max:1},showLegend:!0}}];function ic({tenantName:e,additionalNodesProps:t}){return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(pi,{database:e,charts:sc}),(0,d.jsx)(fo,{tenantName:e,additionalNodesProps:t}),(0,d.jsx)(bo,{tenantName:e,additionalNodesProps:t}),(0,d.jsx)(rc,{tenantName:e,path:e}),(0,d.jsx)(Pl,{tenantName:e})]})}var oc=a(73473);function lc({tenantName:e,additionalNodesProps:t}){const a=(0,X.e4)(),[n]=(0,X.Nt)(),[r,s]=function(e){const t=[(0,uo._E)(),(0,uo.Nh)(e),(0,uo.jl)(),(0,uo.fR)(),(0,uo.iX)(),(0,uo.oz)(),(0,uo.qp)(e)].map((e=>({...e,sortable:!1}))),a=t.map((e=>e.name));return[t,(0,ho.R)(a,mo.fN)]}({getNodeRef:null===t||void 0===t?void 0:t.getNodeRef,database:e}),{currentData:i,isFetching:o,error:l}=po.s.useGetNodesQuery({tenant:e,type:"any",tablets:!0,sort:"-Memory",limit:Z.Nz,fieldsRequired:s},{pollingInterval:n}),c=o&&void 0===i,u=(null===i||void 0===i?void 0:i.Nodes)||[],m=xo({entity:vi("nodes"),postfix:vi("by-memory"),link:(0,ra.YL)({...a,[ra.vh.diagnosticsTab]:ae.iJ.nodes})});return(0,d.jsx)(go,{columnsWidthLSKey:mo.zO,data:u,columns:r,title:m,loading:c,error:l,emptyDataMessage:vi("top-nodes.empty-data")})}const cc=[{title:vi("charts.memory-usage"),metrics:[{target:"resources.memory.used_bytes",title:vi("charts.memory-usage")}],options:{dataType:"size"}}];function dc({tenantName:e,memoryStats:t,memoryUsed:a,memoryLimit:r}){return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(pi,{database:e,charts:cc}),(0,d.jsx)("div",{className:vo("title"),children:"Memory details"}),(0,d.jsx)("div",{className:vo("memory-info"),children:t?(0,d.jsx)(oc.S,{formatValues:he.vX,stats:t}):(0,d.jsx)(eo.O,{value:a,capacity:r,formatValues:he.vX,colorizeProgress:!0})}),(0,d.jsx)(lc,{tenantName:e})]})}var uc=a(18863),mc=a(10174),pc=a(20831),hc=a(10360);function vc({tenant:e}){const t=(0,X.e4)(),a=(0,ie.Pm)(),n=(0,ie.YA)(),[r]=(0,X.Nt)(),[s,i]=function(){const e=(0,pc.k)(),t=e.map((e=>e.name));return[e,(0,ho.R)(t,hc.YX)]}(),{currentData:o,isFetching:l,error:c}=mc.S.useGetStorageGroupsInfoQuery({tenant:e,sort:"-Usage",with:"all",limit:Z.Nz,shouldUseGroupsHandler:n,fieldsRequired:i},{pollingInterval:r,skip:!a}),u=l&&void 0===o,m=(null===o||void 0===o?void 0:o.groups)||[],p=xo({entity:vi("groups"),postfix:vi("by-usage"),link:(0,ra.YL)({...t,[ra.vh.diagnosticsTab]:ae.iJ.storage})});return(0,d.jsx)(go,{columnsWidthLSKey:hc.qK,data:m,columns:s,title:p,loading:u||!a,error:c})}const gc=e=>`\nSELECT\n Path, SUM(DataSize) as Size\nFROM \`${e}/.sys/partition_stats\`\nGROUP BY Path\n ORDER BY Size DESC\n LIMIT ${Z.Nz}\n`,yc=H.F.injectEndpoints({endpoints:e=>({getTopTables:e.query({queryFn:async({path:e},{signal:t})=>{try{const a=await window.api.viewer.sendQuery({query:gc(e),database:e,action:"execute-scan"},{signal:t,withRetries:!0});return(0,Nt.We)(a)?{error:a}:{data:(0,Nt.fW)(a)}}catch(a){return{error:a||"Unauthorized"}}},providesTags:["All"]})}),overrideExisting:"throw"});function xc({path:e}){var t,a;const n=(0,$r.zy)(),[r]=(0,X.Nt)(),{currentData:s,error:i,isFetching:o}=yc.useGetTopTablesQuery({path:e},{pollingInterval:r}),l=o&&void 0===s,c=(null===s||void 0===s||null===(t=s.resultSets)||void 0===t||null===(a=t[0])||void 0===a?void 0:a.result)||[],u=[{name:"Size",width:100,sortable:!1,render:({row:e})=>(e=>{const t=(0,va.fn)(null!==c&&void 0!==c&&c.length?Number(c[0].Size):0);return(0,va.z3)({value:e,size:t,precision:1})})(Number(e.Size)),align:Rt.Ay.RIGHT},{name:"Path",width:700,sortable:!1,render:({row:e})=>e.Path?(0,d.jsx)(ut.s,{content:e.Path,children:(0,d.jsx)(_l,{path:String(e.Path),location:n,children:e.Path})}):null}],m=xo({entity:vi("tables"),postfix:vi("by-size")});return(0,d.jsx)(go,{columnsWidthLSKey:"topTablesTableColumnsWidth",data:c||[],columns:u,title:m,loading:l,error:(0,Nt.Cb)(i)})}const bc=[{title:vi("charts.storage-usage"),metrics:[{target:"resources.storage.used_bytes",title:vi("charts.storage-usage")}],options:{dataType:"size"}}];function fc({tenantName:e,metrics:t}){const{blobStorageUsed:a,tabletStorageUsed:r,blobStorageLimit:s,tabletStorageLimit:i}=t,o=[{label:(0,d.jsx)(ka,{text:vi("storage.tablet-storage-title"),popoverContent:vi("storage.tablet-storage-description")}),value:(0,d.jsx)(eo.O,{value:r,capacity:i,formatValues:he.j9,colorizeProgress:!0})},{label:(0,d.jsx)(ka,{text:vi("storage.db-storage-title"),popoverContent:vi("storage.db-storage-description")}),value:(0,d.jsx)(eo.O,{value:a,capacity:s,formatValues:he.j9,colorizeProgress:!0})}];return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(pi,{database:e,charts:bc}),(0,d.jsx)(uc.z,{className:vo("storage-info"),title:"Storage details",info:o}),(0,d.jsx)(xc,{path:e}),(0,d.jsx)(vc,{tenant:e})]})}function jc({tenantName:e,additionalTenantProps:t,additionalNodesProps:a}){var n,r,s;const{metricsTab:i}=(0,X.N4)((e=>e.tenant)),[o]=(0,X.Nt)(),{currentData:l,isFetching:c}=oe.z6.useGetTenantInfoQuery({path:e},{pollingInterval:o}),u=c&&void 0===l,{Name:m,Type:p,Overall:h}=l||{},v=(g=p)&&P[g];var g;const{currentData:y}=G.useGetOverviewQuery({path:e,database:e},{pollingInterval:o}),{Tables:x,Topics:b}=(null===y||void 0===y||null===(n=y.PathDescription)||void 0===n||null===(r=n.DomainDescription)||void 0===r?void 0:r.DiskSpaceUsage)||{},f=[null===x||void 0===x?void 0:x.TotalSize,null===b||void 0===b?void 0:b.DataSize].reduce(((e,t)=>t?e+Number(t):e),0),j={...l,Metrics:{...null===l||void 0===l?void 0:l.Metrics,Storage:String(f)}},{blobStorage:S,tabletStorage:T,blobStorageLimit:N,tabletStorageLimit:E,poolsStats:w,memoryStats:C,blobStorageStats:I,tabletStorageStats:D}=(0,Gs.uI)(j),A={blobStorageUsed:S,blobStorageLimit:N,tabletStorageUsed:T,tabletStorageLimit:E};if(u)return(0,d.jsx)("div",{className:vo("loader"),children:(0,d.jsx)(Qs.a,{size:"m"})});const _=null===t||void 0===t||null===(s=t.getMonitoringLink)||void 0===s?void 0:s.call(t,m,p);return(0,d.jsxs)("div",{className:vo(),children:[(0,d.jsxs)("div",{className:vo("info"),children:[(0,d.jsx)("div",{className:vo("top-label"),children:v}),(0,d.jsxs)("div",{className:vo("top"),children:[(0,d.jsx)("div",{className:vo("tenant-name-wrapper"),children:(0,d.jsx)(Or.c,{status:h,name:m||Z.oK,withLeftTrim:!0,hasClipboardButton:Boolean(l),clipboardButtonAlwaysVisible:!0})}),_&&(0,d.jsx)(Hs,{href:_})]}),(0,d.jsx)(io,{poolsCpuStats:w,memoryStats:C,blobStorageStats:I,tabletStorageStats:D,tenantName:e})]}),(()=>{switch(i){case ae.pA.cpu:return(0,d.jsx)(ic,{tenantName:e,additionalNodesProps:a});case ae.pA.storage:return(0,d.jsx)(fc,{tenantName:e,metrics:A});case ae.pA.memory:return(0,d.jsx)(dc,{tenantName:e,memoryUsed:j.MemoryUsed,memoryLimit:j.MemoryLimit,memoryStats:j.MemoryStats});case ae.pA.healthcheck:return(0,d.jsx)(Qi,{tenantName:e});default:return(0,d.jsx)(yi,{database:e})}})()]})}const Sc=(0,c.cn)("kv-detailed-overview");const Tc=function(e){const{type:t,tenantName:a,path:n,additionalTenantProps:r,additionalNodesProps:s}=e,i=a===n;return(0,d.jsx)("div",{className:Sc(),children:i?(0,d.jsx)("div",{className:Sc("section"),children:(0,d.jsx)(jc,{tenantName:a,additionalTenantProps:r,additionalNodesProps:s})}):(0,d.jsx)(qs,{type:t,path:n,database:a})})},Nc={id:ae.iJ.overview,title:"Info"},Ec={id:ae.iJ.schema,title:"Schema"},wc={id:ae.iJ.topQueries,title:"Queries"},Cc={id:ae.iJ.topShards,title:"Top shards"},Pc={id:ae.iJ.nodes,title:"Nodes"},Ic={id:ae.iJ.tablets,title:"Tablets"},Dc={id:ae.iJ.storage,title:"Storage"},Ac={id:ae.iJ.network,title:"Network"},_c={id:ae.iJ.describe,title:"Describe"},Rc={id:ae.iJ.hotKeys,title:"Hot keys"},kc={id:ae.iJ.graph,title:"Graph"},Oc={id:ae.iJ.consumers,title:"Consumers"},Mc={id:ae.iJ.partitions,title:"Partitions"},Lc=[Nc,Ic,_c],zc=[Nc,wc,Cc,Pc,Ic,Dc,Ac,_c,{id:ae.iJ.configs,title:"Configs"},{id:ae.iJ.operations,title:"Operations"}],Fc=[Nc,Ec,Cc,Pc,kc,Ic,Rc,_c],qc=[Nc,Ec,Cc,Pc,Ic,_c],Uc=[Nc,Cc,Pc,_c],Qc=[Nc,Oc,Mc,Pc,Ic,_c],$c=[Nc,Oc,Mc,Pc,Ic,_c],Bc=[Nc,_c],Hc=[Nc,Ec,_c],Gc=[Nc,Ec,_c],Wc={[x.EPathTypeInvalid]:void 0,[x.EPathTypeSubDomain]:zc,[x.EPathTypeExtSubDomain]:zc,[x.EPathTypeColumnStore]:zc,[x.EPathTypeTable]:Fc,[x.EPathTypeColumnTable]:qc,[x.EPathTypeDir]:Uc,[x.EPathTypeTableIndex]:Uc,[x.EPathTypeCdcStream]:Qc,[x.EPathTypePersQueueGroup]:$c,[x.EPathTypeExternalDataSource]:Bc,[x.EPathTypeExternalTable]:Hc,[x.EPathTypeView]:Gc,[x.EPathTypeReplication]:Lc};var Vc=a(81240),Jc=a(80604);const Kc=H.F.injectEndpoints({endpoints:e=>({getHotKeys:e.query({queryFn:async({path:e,database:t},{signal:a})=>{try{var n;const r=await window.api.viewer.getHotKeys({path:e,database:t,enableSampling:!0},{signal:a});if(Array.isArray(r.hotkeys))return{data:r.hotkeys};await Promise.race([new Promise((e=>{setTimeout(e,5e3)})),new Promise(((e,t)=>{a.addEventListener("abort",t)}))]);return{data:null!==(n=(await window.api.viewer.getHotKeys({path:e,database:t,enableSampling:!1},{signal:a})).hotkeys)&&void 0!==n?n:null}}catch(r){return{error:r}}},providesTags:["All"]})}),overrideExisting:"throw"}),Yc=JSON.parse('{"hot-keys-collecting":"Please wait a little while we are collecting hot keys samples...","no-data":"No information about hot keys","help":"Hot keys contains a list of table primary key values that are accessed most often. Sample is collected upon request to the tab during 5s time interval. Samples column indicates how many requests to the particular key value were registered during collection phase."}'),Zc=(0,Be.g4)("ydb-hot-keys",{en:Yc});var Xc;function ed(){return ed=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},ed.apply(null,arguments)}const td=function(e){return n.createElement("svg",ed({viewBox:"0 0 12 7",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),Xc||(Xc=n.createElement("path",{d:"M8 7h3V5h1V2H6.66C6.085.79 4.86 0 3.5 0 1.57 0 0 1.57 0 3.5S1.57 7 3.5 7c1.36 0 2.59-.79 3.16-2H8v2zm2-1H9V4H5.97l-.115.335a2.5 2.5 0 110-1.67L5.97 3H11v1h-1v2zM3.5 5a1.5 1.5 0 110-3 1.5 1.5 0 010 3zM3 3.5a.5.5 0 111 0 .5.5 0 01-1 0z"})))},ad=(0,c.cn)("ydb-hot-keys"),nd="accessSample";function rd({path:e,database:t}){var a,r;const{currentData:s,isFetching:i,error:o}=Kc.useGetHotKeysQuery({path:e,database:t}),l=i&&void 0===s,[c]=(0,X.Nt)(),{currentData:u,isLoading:m}=G.useGetOverviewQuery({path:e,database:t},{pollingInterval:c}),p=null===u||void 0===u||null===(a=u.PathDescription)||void 0===a||null===(r=a.Table)||void 0===r?void 0:r.KeyColumnNames,h=n.useMemo((()=>((e=[])=>[...e.map(((e,t)=>({name:e,header:(0,d.jsxs)("div",{className:ad("primary-key-column"),children:[(0,d.jsx)(ct.I,{data:td,width:12,height:7}),e]}),render:({row:e})=>e.keyValues[t],align:Rt.Ay.RIGHT,sortable:!1}))),{name:nd,header:"Samples",render:({row:e})=>e.accessSample,align:Rt.Ay.RIGHT,sortable:!1}])(p)),[p]);return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(sd,{}),l||m?(0,d.jsx)("div",{children:Zc("hot-keys-collecting")}):o?(0,d.jsx)(de.o,{error:o}):s?(0,d.jsx)(Fe.l,{wrapperClassName:ad("table"),columns:h,data:s,settings:Z.N3,initialSortOrder:{columnId:nd,order:Rt.Ay.DESCENDING}}):(0,d.jsx)("div",{children:Zc("no-data")})]})}function sd(){const[e,t]=(0,X.iK)(Z.Gj);return e?null:(0,d.jsxs)(Jc.Z,{theme:"info",view:"filled",type:"container",className:ad("help-card"),children:[Zc("help"),(0,d.jsx)(vn.$,{className:ad("help-card__close-button"),view:"flat",onClick:()=>t(!0),children:(0,d.jsx)(ct.I,{data:Vc.A,size:18})})]})}var id=a(78524),od=a(9252);const ld=H.F.injectEndpoints({endpoints:e=>({getNetworkInfo:e.query({queryFn:async(e,{signal:t})=>{try{return{data:await window.api.viewer.getNetwork({path:e,database:e},{signal:t})}}catch(a){return{error:a}}},providesTags:["All"]})}),overrideExisting:"throw"});var cd=a(88610);const dd=(0,c.cn)("node-network");function ud(){}function md({nodeId:e,connected:t,capacity:a,rack:r,status:s,onClick:i=ud,onMouseEnter:o=ud,onMouseLeave:l=ud,showID:c,isBlurred:u}){const m=n.useRef(null),p=s||function(e=0,t=0){const a=Math.floor(e/t*100);return 100===a?_i.m.Green:a>=70?_i.m.Yellow:a>=1?_i.m.Red:_i.m.Grey}(t,a);return(0,d.jsx)("div",{ref:m,className:dd({[p.toLowerCase()]:!0,id:c,blur:u}),onMouseEnter:()=>{o(m.current,{nodeId:e,connected:t,capacity:a,rack:r},"node")},onMouseLeave:()=>{l()},onClick:()=>i(e),children:c?e:null})}const pd=e=>null===e||void 0===e?void 0:e.reduce(((e,t)=>t.Connected?e+1:e),0);var hd,vd,gd,yd,xd,bd,fd,jd,Sd,Td,Nd,Ed,wd,Cd,Pd;function Id(){return Id=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},Id.apply(null,arguments)}const Dd=function(e){return n.createElement("svg",Id({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 221 204"},e),hd||(hd=n.createElement("path",{d:"M68.46 2.529v25.227c0 1.227.876 2.278 2.102 2.511 16.643 2.979 29.14 17.812 28.498 35.448-.642 18.045-15.359 32.703-33.345 33.403-17.636.643-32.41-11.854-35.448-28.44a2.562 2.562 0 00-2.51-2.102H2.528c-1.519 0-2.687 1.285-2.512 2.745 3.446 32.703 31.243 58.106 64.939 57.814 35.155-.292 63.829-29.024 64.121-64.18.292-33.695-25.17-61.492-57.873-64.938-1.46-.175-2.744.993-2.744 2.512z",fill:"#EBF2FA"})),vd||(vd=n.createElement("path",{d:"M22.736 18.354l17.811 17.812c.876.876 2.278.992 3.329.233 4.146-3.095 9.052-5.197 14.366-6.19 1.226-.233 2.102-1.226 2.102-2.511V2.528a2.502 2.502 0 00-2.803-2.51C44.46 1.418 32.488 6.674 22.91 14.674c-1.168.935-1.226 2.628-.175 3.68zm-9.403 6.133C6.093 33.83 1.303 45.16.02 57.54c-.176 1.46 1.05 2.745 2.51 2.745H27.7a2.562 2.562 0 002.511-2.103c.818-4.672 2.628-9.051 5.14-12.847a2.642 2.642 0 00-.293-3.212L17.13 24.312c-1.05-1.11-2.861-.993-3.796.175zm67.275 107.392h32.995c1.868 0 3.387 1.518 3.445 3.445v65.231a3.451 3.451 0 01-3.445 3.445H80.608a3.452 3.452 0 01-3.446-3.445v-65.231a3.451 3.451 0 013.446-3.445zm77.844 27.097h-32.878a3.514 3.514 0 00-3.503 3.504v37.959a3.514 3.514 0 003.503 3.504h32.878a3.515 3.515 0 003.504-3.504V162.48a3.515 3.515 0 00-3.504-3.504zm12.205 18.28h32.586a3.639 3.639 0 013.621 3.62v19.388a3.639 3.639 0 01-3.621 3.621h-32.586a3.639 3.639 0 01-3.62-3.621v-19.388a3.638 3.638 0 013.62-3.62z",fill:"#EBF2FA"})),gd||(gd=n.createElement("path",{d:"M134.275 171.532h-113c-5.84 0-10.628-4.789-10.628-10.629v-73.23c0-5.84 4.788-10.629 10.628-10.629h112.941c5.84 0 10.629 4.789 10.629 10.629v73.23c.058 5.899-4.731 10.629-10.57 10.629v0z",stroke:"#2EE5C0",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round"})),yd||(yd=n.createElement("path",{d:"M21.625 90.769a3.037 3.037 0 100-6.074 3.037 3.037 0 000 6.074zM31.494 90.769a3.037 3.037 0 100-6.074 3.037 3.037 0 000 6.074zM41.363 90.769a3.037 3.037 0 100-6.074 3.037 3.037 0 000 6.074z",fill:"#2EE5C0"})),xd||(xd=n.createElement("path",{d:"M10.822 98.592h133.673",stroke:"#2EE5C0",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round"})),bd||(bd=n.createElement("path",{d:"M184.555 149.164L57.89 156.172c-4.263.234-7.767-3.037-7.767-7.3V51.114c0-4.263 3.504-7.533 7.767-7.3l126.665 7.008c3.27.176 5.898 3.33 5.898 7.008v84.327c0 3.679-2.628 6.832-5.898 7.007z",fill:"#027BF3"})),fd||(fd=n.createElement("path",{d:"M65.13 54.151c0 1.986-1.576 3.504-3.562 3.387-1.985-.058-3.562-1.752-3.562-3.737 0-1.986 1.635-3.504 3.562-3.387 1.927.058 3.562 1.752 3.562 3.737zm11.506.466a3.38 3.38 0 01-3.504 3.388c-1.927-.059-3.504-1.753-3.504-3.68a3.38 3.38 0 013.504-3.387c1.927.117 3.504 1.752 3.504 3.68zm7.825 3.855c1.869.117 3.387-1.402 3.387-3.329 0-1.927-1.518-3.562-3.387-3.62-1.927-.117-3.445 1.401-3.445 3.328 0 1.927 1.576 3.562 3.445 3.62z",fill:"#fff"})),jd||(jd=n.createElement("path",{d:"M75.467 142.974V85.277c-3.971-.525-8.584-.409-13.899.7v57.64l13.899-.643zM88.84 90.651v51.799l-11.096.467v-57.23c4.322.934 7.942 2.745 11.096 4.964zm13.431 13.899a1.618 1.618 0 01-.146-.176 1.487 1.487 0 00-.146-.175c-.42-.51-.841-1.026-1.265-1.546-2.875-3.522-5.874-7.197-9.538-10.25v49.93l11.095-.467V104.55zm13.432 5.722c-3.913-.058-7.709-.701-11.096-3.445v34.922l11.096-.468v-31.009zm13.431-.409c-2.764-.173-5.529.006-8.246.181-.957.062-1.907.123-2.849.169v30.951l11.095-.467v-30.834zm24.002 29.841l-8.234.35v-22.191c8.176 9.285 8.234 21.841 8.234 21.841zM140.113 113.6a19.774 19.774 0 012.453 1.927v24.644l-11.096.467v-30.483c2.92.467 5.782 1.46 8.643 3.445z",fill:"#00236B"})),Sd||(Sd=n.createElement("path",{d:"M55.745 76.436a2 2 0 103.123 2.499l-3.123-2.499zm5.766-4.006l1.575-1.233a2 2 0 00-3.136-.017l1.561 1.25zm2.63 6.605a2 2 0 103.15-2.465l-3.15 2.465zm107.94 53.502a2 2 0 00-2.499 3.123l2.499-3.123zm4.006 5.766l1.214 1.59a1.999 1.999 0 00.036-3.151l-1.25 1.561zm-6.644 2.557a1.999 1.999 0 102.427 3.179l-2.427-3.179zM58.868 78.935l4.205-5.256-3.123-2.499-4.205 5.256 3.123 2.499zm1.068-5.273l4.205 5.373 3.15-2.465-4.205-5.373-3.15 2.465zm109.646 61.998l5.256 4.205 2.499-3.123-5.256-4.205-2.499 3.123zm5.292 1.054l-5.431 4.146 2.427 3.179 5.431-4.146-2.427-3.179zM147.137 69.146a2 2 0 10-.149 3.998l.149-3.998zm29.634 5.107a2 2 0 10.149-3.997l-.149 3.997zm-29.657 5.404a2 2 0 00-.102 3.999l.102-3.999zm29.681 4.758a2 2 0 00.102-3.999l-.102 4zm-29.72 5.928a2 2 0 10-.023 4l.023-4zm29.759 4.176a2 2 0 10.024-4l-.024 4zm-29.846-21.375l29.783 1.11.149-3.998-29.783-1.11-.149 3.998zm.024 10.512l29.783.76.102-4-29.783-.759-.102 3.999zm.04 10.687l29.782.176.024-4-29.783-.175-.023 4zM143.442 71.202a2.458 2.458 0 01-2.57 2.453c-1.401-.058-2.569-1.285-2.569-2.686 0-1.402 1.168-2.57 2.569-2.453 1.46.058 2.57 1.285 2.57 2.686zm.001 10.396a2.458 2.458 0 01-2.57 2.453c-1.401-.059-2.569-1.285-2.569-2.686 0-1.46 1.168-2.57 2.569-2.453 1.46.058 2.57 1.284 2.57 2.686zm-2.57 12.848a2.458 2.458 0 002.57-2.453c0-1.402-1.11-2.628-2.57-2.686-1.401-.117-2.569 1.05-2.569 2.452s1.168 2.628 2.569 2.687z",fill:"#fff"})),Td||(Td=n.createElement("path",{opacity:.2,d:"M190.452 91.875V57.771c0-3.68-2.628-6.833-5.899-7.008l-23.651-1.285a35.18 35.18 0 00-1.752 10.98c0 17.635 12.79 31.826 28.09 31.65 1.051.06 2.16-.058 3.212-.233z",fill:"#00236B"})),Nd||(Nd=n.createElement("path",{d:"M220.645 58.883c0-16.585-11.621-30.775-26.454-31.651-15.3-.876-28.089 12.672-28.089 30.308s12.789 31.827 28.089 31.652c14.833-.117 26.454-13.724 26.454-30.309z",fill:"#FF4645"})),Ed||(Ed=n.createElement("path",{d:"M215.329 40.372c-4.788-7.475-12.38-12.614-21.14-13.14v31.01l21.14-17.87z",fill:"#FC0"})),wd||(wd=n.createElement("path",{d:"M215.329 40.372l-21.14 17.87 26.455.642c0-6.89-1.986-13.315-5.315-18.512z",fill:"#00236B"})),Cd||(Cd=n.createElement("path",{d:"M194.248 58.24V27.233c-15.301-.876-28.09 12.672-28.09 30.308l28.09.7z",fill:"#FF4645"})),Pd||(Pd=n.createElement("path",{d:"M161.151 14.734a2 2 0 10-4 0h4zm-4 4.204a2 2 0 004 0h-4zm4 8.876a2 2 0 10-4 0h4zm-4 4.555a2 2 0 004 0h-4zm10.819-6.816a2 2 0 000-4v4zm-4.263-4a2 2 0 100 4v-4zm-9.169 4a2 2 0 100-4v4zm-4.263-4a2 2 0 000 4v-4zm6.876-6.82v4.205h4v-4.204h-4zm0 13.08v4.556h4v-4.555h-4zm10.819-6.26h-4.263v4h4.263v-4zm-13.432 0h-4.263v4h4.263v-4z",fill:"#2EE5C0"})))},Ad=(0,c.cn)("network");function _d({tenantName:e}){var t,a;const[r]=(0,X.Nt)(),s=(0,X.N4)(cd.yV),i=(0,X.YQ)(),[o,l]=n.useState(),[c,u]=n.useState(!1),[m,p]=n.useState(!1),{currentData:h,isFetching:v,error:g}=ld.useGetNetworkInfoQuery(e,{pollingInterval:r});if(v&&void 0===h)return(0,d.jsx)("div",{className:"loader",children:(0,d.jsx)(Qs.a,{size:"l"})});const y=h,x=null!==(t=(null===y||void 0===y?void 0:y.Tenants)&&y.Tenants[0].Nodes)&&void 0!==t?t:[];if(!g&&0===x.length)return(0,d.jsx)("div",{className:"error",children:"no nodes data"});const b=kd(x,"NodeType"),f=o?kd(null!==(a=o.Peers)&&void 0!==a?a:[],"NodeType"):{};return(0,d.jsxs)("div",{className:Ad(),children:[g?(0,d.jsx)(de.o,{error:g}):null,x.length>0?(0,d.jsx)("div",{className:Ad("inner"),children:(0,d.jsxs)("div",{className:Ad("nodes-row"),children:[(0,d.jsxs)("div",{className:Ad("left"),children:[(0,d.jsx)("div",{className:Ad("controls-wrapper"),children:(0,d.jsxs)("div",{className:Ad("controls"),children:[(0,d.jsx)(od.k,{value:s,onChange:e=>{i((0,cd.$u)(e))},className:Ad("problem-filter")}),(0,d.jsx)("div",{className:Ad("checkbox-wrapper"),children:(0,d.jsx)(ce.S,{onUpdate:()=>{u(!c)},checked:c,children:"ID"})}),(0,d.jsx)("div",{className:Ad("checkbox-wrapper"),children:(0,d.jsx)(ce.S,{onUpdate:()=>{p(!m)},checked:m,children:"Racks"})})]})}),(0,d.jsx)(Rd,{nodes:b,showId:c,showRacks:m,clickedNode:o,onClickNode:l})]}),(0,d.jsx)("div",{className:Ad("right"),children:o?(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:Ad("label"),children:["Connectivity of node"," ",(0,d.jsx)(re.N_,{className:Ad("link"),to:(0,Ml.vI)(o.NodeId),children:o.NodeId})," ","to other nodes"]}),(0,d.jsx)("div",{className:Ad("nodes-row"),children:(0,d.jsx)(Rd,{nodes:f,isRight:!0,showId:c,showRacks:m,clickedNode:o,onClickNode:l})})]}):(0,d.jsxs)("div",{className:Ad("placeholder"),children:[(0,d.jsx)("div",{className:Ad("placeholder-img"),children:(0,d.jsx)(ct.I,{data:Dd,width:221,height:204})}),(0,d.jsx)("div",{className:Ad("placeholder-text"),children:"Select node to see its connectivity to other nodes"})]})})]})}):null]})}function Rd({nodes:e,isRight:t,showId:a,showRacks:n,clickedNode:r,onClickNode:s}){const i=(0,X.N4)(cd.yV),o=(0,X.YQ)();let l=0;const c=Object.keys(e).map(((c,u)=>{const m=kd(e[c],"Rack");return(0,d.jsxs)("div",{className:Ad("nodes-container",{right:t}),children:[(0,d.jsxs)("div",{className:Ad("nodes-title"),children:[c," nodes"]}),(0,d.jsx)("div",{className:Ad("nodes"),children:n?Object.keys(m).map(((e,n)=>(0,d.jsxs)("div",{className:Ad("rack-column"),children:[(0,d.jsx)("div",{className:Ad("rack-index"),children:"undefined"===e?"?":e}),m[e].map(((e,n)=>{let c,u;return!t&&"Peers"in e&&e.Peers&&(c=Object.keys(e.Peers).length,u=pd(e.Peers)),i===cd.s$.PROBLEMS&&c!==u||i===cd.s$.ALL||t?(l++,(0,d.jsx)(md,{nodeId:e.NodeId,showID:a,rack:e.Rack,status:"ConnectStatus"in e?e.ConnectStatus:void 0,capacity:c,connected:u,onMouseEnter:(...e)=>{o((0,pe.DK)(...e))},onMouseLeave:()=>{o((0,pe.w7)())},onClick:t?void 0:()=>{s(r&&e.NodeId===r.NodeId?void 0:e)},isBlurred:!t&&r&&r.NodeId!==e.NodeId},n)):null}))]},n))):e[c].map(((e,n)=>{let c,u;const m=e&&"Peers"in e?e.Peers:void 0;return!t&&"Peers"in e&&e.Peers&&(c=e.Peers.length,u=pd(m)),i===cd.s$.PROBLEMS&&c!==u||i===cd.s$.ALL||t?(l++,(0,d.jsx)(md,{nodeId:e.NodeId,showID:a,rack:e.Rack,status:"ConnectStatus"in e?e.ConnectStatus:void 0,capacity:null===m||void 0===m?void 0:m.length,connected:u,onMouseEnter:(...e)=>{o((0,pe.DK)(...e))},onMouseLeave:()=>{o((0,pe.w7)())},onClick:t?void 0:()=>{s(r&&e.NodeId===r.NodeId?void 0:e)},isBlurred:!t&&r&&r.NodeId!==e.NodeId},n)):null}))})]},u)}));return i===cd.s$.PROBLEMS&&0===l?(0,d.jsx)(id.v,{name:"thumbsUp",width:"200"}):c}function kd(e,t){return e.reduce(((e,a)=>(e[a[t]]?e[a[t]].push(a):e[a[t]]=[a],e)),{})}const Od=["NodeId","Host","Connections","NetworkUtilization","SendThroughput","ReceiveThroughput","PingTime","ClockSkew"],Md=["NodeId"],Ld=["Host","DC","Rack","Uptime","ConnectStatus","NetworkUtilization","PingTime","ClockSkew"];function zd({database:e,path:t,parentRef:a,additionalNodesProps:n}){const r=(0,ie.Pm)(),s=(0,ie.WF)(),[i]=(0,X.iK)(Z.g5),l=s&&i;return(0,d.jsx)(o.r,{loading:!r,children:(()=>{return l?(0,d.jsx)(Le.G,{path:t,database:e,parentRef:a,withPeerRoleFilter:!0,additionalNodesProps:n,columns:(r={database:e,getNodeRef:null===n||void 0===n?void 0:n.getNodeRef},[(0,uo._E)(),(0,uo.Nh)(r,{statusForIcon:"ConnectStatus"}),(0,uo.uk)(),(0,uo.OX)(),(0,uo.jl)(),(0,uo.fr)(),(0,uo.kv)(),(0,uo.SH)(),(0,uo.H)(),(0,uo.DH)(),(0,uo.ui)(),(0,uo.wN)(),(0,uo.pt)()].map((e=>({...e,sortable:(0,mo.sp)(e.name)})))),defaultColumnsIds:Od,requiredColumnsIds:Md,selectedColumnsKey:"networkNodesTableSelectedColumns",groupByParams:Ld}):(0,d.jsx)(_d,{tenantName:e});var r})()})}var Fd=a(24600),qd=a(47058),Ud=a(69775),Qd=a(41775);const $d=JSON.parse('{"lagsPopover.writeLags":"Write lags statistics (time format dd hh:mm:ss)","lagsPopover.readLags":"Read lags statistics (time format dd hh:mm:ss)","headers.unread":"End offset - Last read offset","headers.uncommited":"End offset - Committed offset","controls.consumerSelector":"Consumer:","controls.consumerSelector.emptyOption":"No consumer","controls.partitionSearch":"Partition ID","controls.generalSearch":"Host, Host ID, Reader, Read Session ID","table.emptyDataMessage":"No partitions match the current search","noConsumersMessage.topic":"This topic has no consumers","noConsumersMessage.stream":"This changefeed has no consumers"}'),Bd=JSON.parse('{"lagsPopover.writeLags":"\u0421\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u043b\u0430\u0433\u043e\u0432 \u0437\u0430\u043f\u0438\u0441\u0438 (\u0444\u043e\u0440\u043c\u0430\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0434\u0434 \u0447\u0447:\u043c\u043c:\u0441\u0441)","lagsPopover.readLags":"\u0421\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u043b\u0430\u0433\u043e\u0432 \u0447\u0442\u0435\u043d\u0438\u044f (\u0444\u043e\u0440\u043c\u0430\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0434\u0434 \u0447\u0447:\u043c\u043c:\u0441\u0441)","headers.unread":"End offset - Last read offset","headers.uncommited":"End offset - Committed offset","controls.consumerSelector":"\u0427\u0438\u0442\u0430\u0442\u0435\u043b\u044c:","controls.consumerSelector.emptyOption":"\u041d\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044f","controls.partitionSearch":"Partition ID","controls.generalSearch":"Host, Host ID, Reader, Read Session ID","table.emptyDataMessage":"\u041f\u043e \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u043c\u0443 \u043f\u043e\u0438\u0441\u043a\u0443 \u043d\u0435\u0442 \u043f\u0430\u0440\u0442\u0438\u0446\u0438\u0439","noConsumersMessage.topic":"\u0423 \u044d\u0442\u043e\u0433\u043e \u0442\u043e\u043f\u0438\u043a\u0430 \u043d\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439","noConsumersMessage.stream":"\u0423 \u044d\u0442\u043e\u0433\u043e \u0441\u0442\u0440\u0438\u043c\u0430 \u043d\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439"}'),Hd=(0,Be.g4)("ydb-diagnostics-partitions",{ru:Bd,en:$d}),Gd={PARTITION_ID:"partitionId",STORE_SIZE:"storeSize",WRITE_SPEED:"writeSpeed",READ_SPEED:"readSpeed",WRITE_LAGS:"writeLags",READ_LAGS:"readLags",UNCOMMITED_MESSAGES:"uncommitedMessages",UNREAD_MESSAGES:"unreadMessages",START_OFFSET:"startOffset",END_OFFSET:"endOffset",COMMITED_OFFSET:"commitedOffset",READ_SESSION_ID:"readSessionId",READER_NAME:"readerName",PARTITION_HOST:"partitionHost",CONNECTION_HOST:"connectionHost"},Wd={[Gd.PARTITION_ID]:"Partition ID",[Gd.STORE_SIZE]:"Store size",[Gd.WRITE_SPEED]:"Write speed",[Gd.READ_SPEED]:"Read speed",[Gd.WRITE_LAGS]:"Write lags, duration",[Gd.READ_LAGS]:"Read lags, duration",[Gd.UNCOMMITED_MESSAGES]:"Uncommited messages",[Gd.UNREAD_MESSAGES]:"Unread messages",[Gd.START_OFFSET]:"Start offset",[Gd.END_OFFSET]:"End offset",[Gd.COMMITED_OFFSET]:"Commited offset",[Gd.READ_SESSION_ID]:"Read session ID",[Gd.READER_NAME]:"Reader name",[Gd.PARTITION_HOST]:"Partition host",[Gd.CONNECTION_HOST]:"Connection host"},Vd="partitionWriteLag",Jd="partitionWriteIdleTime",Kd={[Vd]:"write lag",[Jd]:"write idle time"},Yd="consumerWriteLag",Zd="consumerReadLag",Xd="consumerReadIdleTime",eu={[Yd]:"write lag",[Zd]:"read lag",[Xd]:"read idle time"},tu=[Gd.PARTITION_ID,Gd.STORE_SIZE,Gd.WRITE_SPEED,Gd.WRITE_LAGS,Gd.START_OFFSET,Gd.END_OFFSET,Gd.PARTITION_HOST],au=Object.values(Gd),nu=({consumers:e,selectedConsumer:t,onSelectedConsumerChange:a,selectDisabled:r,partitions:s,onSearchChange:i,hiddenColumns:o,onHiddenColumnsChange:l,initialColumnsIds:c})=>{const[u,m]=n.useState(""),[p,h]=n.useState("");n.useEffect((()=>{if(!s)return;const e=new RegExp(ha()(p),"i"),t=new RegExp(ha()(u),"i"),a=s.filter((a=>{const{partitionId:n,readerName:r,readSessionId:s,partitionNodeId:i,connectionNodeId:o,partitionHost:l,connectionHost:c}=a,d=e.test(n),u=[r,s,i,o,l,c].filter(Boolean).map(String),m=0===u.length||u.some((e=>t.test(e)));return d&&m}));i(a)}),[p,u,s,i]);const v=n.useMemo((()=>{const t=e&&e.length?e.map((e=>({value:e,content:e}))):[];return[{value:"",content:Hd("controls.consumerSelector.emptyOption")},...t]}),[e]),g=n.useMemo((()=>{const e=[];for(const t of c){const a=t===Gd.PARTITION_ID,n={title:Wd[t],selected:Boolean(!o.includes(t)),id:t,required:a,sticky:a?"start":void 0};a?e.unshift(n):e.push(n)}return e}),[c,o]),y=e=>(0,d.jsx)("div",{className:hu("select-option",{empty:""===e.value}),children:e.content});return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(le.l,{className:hu("consumer-select"),label:Hd("controls.consumerSelector"),options:v,value:[t||""],onUpdate:e=>{a(e[0]||void 0)},filterable:e&&e.length>5,disabled:r||!e||!e.length,renderOption:y,renderSelectedOption:y}),(0,d.jsx)(Qd.v,{onChange:e=>{h(e)},placeholder:Hd("controls.partitionSearch"),className:hu("search",{partition:!0}),value:p}),(0,d.jsx)(Qd.v,{onChange:e=>{m(e)},placeholder:Hd("controls.generalSearch"),className:hu("search",{general:!0}),value:u}),(0,d.jsx)(Ud.O,{popupWidth:242,items:g,showStatus:!0,onUpdate:e=>{const t=[...o];e.forEach((e=>{e.selected||o.includes(e.id)?e.selected&&o.includes(e.id)&&t.splice(o.indexOf(e.id)):t.push(e.id)})),l(t)},sortable:!1},"TableColumnSetup")]})},ru=(0,c.cn)("ydb-diagnostics-partitions-columns-header"),su=({title:e})=>(0,d.jsx)("div",{className:ru("multiline"),children:e}),iu=()=>(0,d.jsx)("div",{className:ru("read-session"),children:Wd[Gd.READ_SESSION_ID]}),ou=()=>(0,d.jsx)(ka,{className:ru("lags"),text:Wd[Gd.WRITE_LAGS],popoverContent:(0,d.jsx)(Va,{text:Hd("lagsPopover.writeLags"),type:"write"})}),lu=()=>(0,d.jsx)(ka,{className:ru("lags"),text:Wd[Gd.READ_LAGS],popoverContent:(0,d.jsx)(Va,{text:Hd("lagsPopover.readLags"),type:"read"})}),cu=()=>(0,d.jsx)(ka,{className:ru("messages"),text:Wd[Gd.UNREAD_MESSAGES],popoverContent:(0,d.jsx)("div",{className:ru("messages-popover-content"),children:Hd("headers.unread")})}),du=()=>(0,d.jsx)(ka,{className:ru("messages"),text:Wd[Gd.UNCOMMITED_MESSAGES],popoverContent:(0,d.jsx)("div",{className:ru("messages-popover-content"),children:Hd("headers.uncommited")})}),uu=(0,c.cn)("ydb-diagnostics-partitions-columns"),mu=[{name:Gd.PARTITION_ID,header:(0,d.jsx)(su,{title:Wd[Gd.PARTITION_ID]}),sortAccessor:e=>(0,ks.kf)(e.partitionId)&&Number(e.partitionId),align:Rt.Ay.LEFT,render:({row:e})=>e.partitionId},{name:Gd.STORE_SIZE,header:(0,d.jsx)(su,{title:Wd[Gd.STORE_SIZE]}),align:Rt.Ay.RIGHT,render:({row:e})=>(0,he.z3)(e.storeSize)},{name:Gd.WRITE_SPEED,header:Wd[Gd.WRITE_SPEED],align:Rt.Ay.LEFT,resizeMinWidth:140,sortAccessor:e=>e.writeSpeed.perMinute,render:({row:e})=>(0,d.jsx)(Ca,{data:e.writeSpeed})},{name:Gd.READ_SPEED,header:Wd[Gd.READ_SPEED],align:Rt.Ay.LEFT,resizeMinWidth:140,sortAccessor:e=>{var t;return null===(t=e.readSpeed)||void 0===t?void 0:t.perMinute},render:({row:e})=>(0,d.jsx)(Ca,{data:e.readSpeed})},{name:Gd.WRITE_LAGS,header:(0,d.jsx)(ou,{}),className:uu("lags-header"),sub:[{name:Vd,header:Kd[Vd],align:Rt.Ay.RIGHT,render:({row:e})=>(0,he.lr)(e.partitionWriteLag)},{name:Jd,header:Kd[Jd],align:Rt.Ay.RIGHT,render:({row:e})=>(0,he.lr)(e.partitionWriteIdleTime)}]},{name:Gd.READ_LAGS,header:(0,d.jsx)(lu,{}),className:uu("lags-header"),sub:[{name:Yd,header:eu[Yd],align:Rt.Ay.RIGHT,render:({row:e})=>(0,he.lr)(e.consumerWriteLag)},{name:Zd,header:eu[Zd],align:Rt.Ay.RIGHT,render:({row:e})=>(0,he.lr)(e.consumerReadLag)},{name:Xd,header:eu[Xd],align:Rt.Ay.RIGHT,render:({row:e})=>(0,he.lr)(e.consumerReadIdleTime)}]},{name:Gd.UNCOMMITED_MESSAGES,header:(0,d.jsx)(du,{}),align:Rt.Ay.RIGHT,render:({row:e})=>e.uncommitedMessages},{name:Gd.UNREAD_MESSAGES,header:(0,d.jsx)(cu,{}),align:Rt.Ay.RIGHT,render:({row:e})=>e.unreadMessages},{name:Gd.START_OFFSET,header:(0,d.jsx)(su,{title:Wd[Gd.START_OFFSET]}),sortAccessor:e=>(0,ks.kf)(e.startOffset)&&Number(e.startOffset),align:Rt.Ay.RIGHT,render:({row:e})=>e.startOffset},{name:Gd.END_OFFSET,header:(0,d.jsx)(su,{title:Wd[Gd.END_OFFSET]}),sortAccessor:e=>(0,ks.kf)(e.endOffset)&&Number(e.endOffset),align:Rt.Ay.RIGHT,render:({row:e})=>e.endOffset},{name:Gd.COMMITED_OFFSET,header:(0,d.jsx)(su,{title:Wd[Gd.COMMITED_OFFSET]}),sortAccessor:e=>(0,ks.kf)(e.commitedOffset)&&Number(e.commitedOffset),align:Rt.Ay.RIGHT,render:({row:e})=>e.commitedOffset},{name:Gd.READ_SESSION_ID,header:(0,d.jsx)(iu,{}),align:Rt.Ay.LEFT,width:150,render:({row:e})=>e.readSessionId?(0,d.jsx)(Or.c,{name:e.readSessionId,showStatus:!1,hasClipboardButton:!0}):"\u2013"},{name:Gd.READER_NAME,header:(0,d.jsx)(su,{title:Wd[Gd.READER_NAME]}),align:Rt.Ay.LEFT,width:150,render:({row:e})=>e.readerName?(0,d.jsx)(Or.c,{name:e.readerName,showStatus:!1,hasClipboardButton:!0}):"\u2013"},{name:Gd.PARTITION_HOST,header:(0,d.jsx)(su,{title:Wd[Gd.PARTITION_HOST]}),align:Rt.Ay.LEFT,width:200,render:({row:e})=>e.partitionNodeId&&e.partitionHost?(0,d.jsx)(Or.c,{name:e.partitionHost,path:(0,Ml.vI)(e.partitionNodeId),showStatus:!1,hasClipboardButton:!0}):"\u2013"},{name:Gd.CONNECTION_HOST,header:(0,d.jsx)(su,{title:Wd[Gd.CONNECTION_HOST]}),align:Rt.Ay.LEFT,width:200,render:({row:e})=>e.connectionNodeId&&e.connectionHost?(0,d.jsx)(Or.c,{name:e.connectionHost,path:(0,Ml.vI)(e.connectionNodeId),showStatus:!1,hasClipboardButton:!0}):"\u2013"}],pu=mu.filter((e=>tu.includes(e.name))),hu=(0,c.cn)("ydb-diagnostics-partitions"),vu=({path:e,database:t})=>{const a=(0,X.YQ)(),[r,s]=n.useState([]),i=(0,X.N4)((a=>fa(a,e,t))),[o]=(0,X.Nt)(),{selectedConsumer:l}=(0,X.N4)((e=>e.partitions)),{currentData:c,isFetching:u,error:m}=ga.useGetTopicQuery({path:e,database:t}),p=u&&void 0===c,{currentData:h,isFetching:v,error:g}=Fd.m.useGetNodesListQuery(void 0),x=v&&void 0===h,b=(0,X.N4)(Fd.K),[f,j]=(0,X.iK)(Z.bs),[S,T]=(e=>{const[t,a]=n.useState([]),[r,s]=n.useState([]);return n.useEffect((()=>{e?(a(mu),s(au)):(a(pu),s(tu))}),[e]),[t,r]})(l),N=p?y.hT:{path:e,database:t,consumerName:l},{currentData:E,isFetching:w,error:C}=qd.aD.useGetPartitionsQuery(N,{pollingInterval:o}),P=w&&void 0===E,I=E,D=n.useMemo((()=>((e=[],t)=>null===e||void 0===e?void 0:e.map((e=>{var a,n;const r=e.partitionNodeId&&t?null===(a=t.get(e.partitionNodeId))||void 0===a?void 0:a.Host:void 0,s=e.connectionNodeId&&t?null===(n=t.get(e.connectionNodeId))||void 0===n?void 0:n.Host:void 0;return{...e,partitionHost:r,connectionHost:s}})))(I,b)),[I,b]);n.useEffect((()=>{const e=!p&&!i,t=l&&i&&!i.includes(l);(e||t)&&a((0,qd.WD)(void 0))}),[a,p,l,i]);const A=n.useMemo((()=>S.filter((e=>!f.includes(e.name)))),[S,f]),_=e=>{j(e)},R=e=>{a((0,qd.WD)(e))},k=p||x||P,O=g||m||C;return(0,d.jsxs)("div",{className:hu(),children:[(0,d.jsx)("div",{className:hu("controls"),children:(0,d.jsx)(nu,{consumers:i,selectedConsumer:l,onSelectedConsumerChange:R,selectDisabled:Boolean(O)||k,partitions:D,onSearchChange:s,hiddenColumns:f,onHiddenColumnsChange:_,initialColumnsIds:T})}),O?(0,d.jsx)(de.o,{error:O}):null,(0,d.jsx)("div",{className:hu("table-wrapper"),children:(0,d.jsx)("div",{className:hu("table-content"),children:E?k?(0,d.jsx)(Tt.Q,{className:hu("loader")}):(0,d.jsx)(Fe.l,{columnsWidthLSKey:"partitionsColumnsWidth",wrapperClassName:hu("table"),data:r,columns:A,settings:Z.N3,emptyDataMessage:Hd("table.emptyDataMessage")}):null})})]})};var gu=a(44433),yu=a(23812);const xu=JSON.parse('{"date-format":"MM/DD/YYYY","date-time-format":"MM/DD/YYYY HH:mm"}'),bu=JSON.parse('{"date-format":"DD.MM.YYYY","date-time-format":"DD.MM.YYYY HH:mm"}'),fu=(0,Be.g4)("ydb-date-range",{ru:bu,en:xu});function ju(e){var t,a,n,r;return"relative"===(null===e||void 0===e||null===(t=e.start)||void 0===t?void 0:t.type)&&"relative"===(null===e||void 0===e||null===(a=e.end)||void 0===a?void 0:a.type)?"s":"relative"===(null===e||void 0===e||null===(n=e.start)||void 0===n?void 0:n.type)||"relative"===(null===e||void 0===e||null===(r=e.end)||void 0===r?void 0:r.type)?"m":"l"}const Su=(0,c.cn)("date-range"),Tu={start:{value:"now-1h",type:"relative"},end:{value:"now",type:"relative"}},Nu=({from:e,to:t,className:a,onChange:r})=>{const s=n.useCallback((e=>null===r||void 0===r?void 0:r(function(e){var t,a,n,r,s,i;return{from:"relative"===(null===e||void 0===e||null===(t=e.start)||void 0===t?void 0:t.type)?e.start.value.toString():String(null===(a=(0,nt.bQ)(null===e||void 0===e||null===(n=e.start)||void 0===n?void 0:n.value))||void 0===a?void 0:a.valueOf()),to:"relative"===(null===e||void 0===e||null===(r=e.end)||void 0===r?void 0:r.type)?e.end.value.toString():String(null===(s=(0,nt.bQ)(null===e||void 0===e||null===(i=e.end)||void 0===i?void 0:i.value))||void 0===s?void 0:s.valueOf())}}(e))),[r]),i=n.useMemo((()=>{if(e||t)return function(e){var t,a;const n=(0,nt.eP)(null!==(t=e.from)&&void 0!==t?t:""),r=(0,nt.eP)(null!==(a=e.to)&&void 0!==a?a:"");return{start:e.from?{type:n?"relative":"absolute",value:n?e.from:(0,nt.bQ)(Number(e.from))}:null,end:e.to?{type:r?"relative":"absolute",value:r?e.to:(0,nt.bQ)(Number(e.to))}:null}}({from:e,to:t})}),[e,t]),o=Intl.DateTimeFormat().resolvedOptions().timeZone;return(0,d.jsx)("div",{className:Su(null,a),children:(0,d.jsx)(yu.k,{withPresets:!0,className:Su("range-input",{[ju(i)]:!0}),timeZone:o,value:i||Tu,allowNullableValues:!0,size:"m",format:fu("date-time-format"),onUpdate:s,placeholder:`${fu("date-time-format")} - ${fu("date-time-format")}`,withApplyButton:!0})})},Eu=JSON.parse('{"no-data":"No data","filter.text.placeholder":"Search by query text or userSID...","mode_top":"Top","mode_running":"Running"}'),wu=(0,Be.g4)("ydb-diagnostics-top-queries",{en:Eu}),Cu={...Yo,disableSortReset:!0};function Pu(e){const[t,a]=(0,X.GY)({initialSortColumn:e,initialSortOrder:-1,multiple:!0}),r=n.useMemo((()=>(0,X.JN)(t,hl)),[t]);return{tableSort:t,handleTableSort:a,backendSort:r}}const Iu=({database:e,onRowClick:t,rowClassName:a})=>{var r;const[s]=(0,X.Nt)(),i=(0,X.N4)((e=>e.executeTopQueries)),{tableSort:o,handleTableSort:l,backendSort:c}=Pu(dl),{currentData:u,isFetching:m,error:p}=jo.Ke.useGetRunningQueriesQuery({database:e,filters:i,sortOrder:c},{pollingInterval:s}),h=m&&void 0===u,v=(null===u||void 0===u||null===(r=u.resultSets)||void 0===r?void 0:r[0].result)||[],g=n.useMemo((()=>[Sl,wl,xl,Cl].map((e=>({...e,sortable:vl(e.name)})))),[]);return(0,d.jsxs)(n.Fragment,{children:[p?(0,d.jsx)(de.o,{error:(0,Nt.Cb)(p)}):null,(0,d.jsx)(qe.L.Table,{loading:h,children:(0,d.jsx)(Fe.l,{emptyDataMessage:wu("no-data"),columnsWidthLSKey:"runningQueriesColumnsWidth",columns:g,data:v,settings:Cu,onRowClick:e=>t(e.QueryText),rowClassName:()=>a,sortOrder:o,onSort:l})})]})},Du=({database:e,onRowClick:t,rowClassName:a})=>{var r,s;const[i]=(0,X.Nt)(),o=(0,X.N4)((e=>e.executeTopQueries)),{tableSort:l,handleTableSort:c,backendSort:u}=Pu(tl),{currentData:m,isFetching:p,error:h}=jo.Ke.useGetTopQueriesQuery({database:e,filters:o,sortOrder:u},{pollingInterval:i}),v=p&&void 0===m,g=(null===m||void 0===m||null===(r=m.resultSets)||void 0===r||null===(s=r[0])||void 0===s?void 0:s.result)||[],y=n.useMemo((()=>[Nl,yl,xl,bl,El,fl,jl,Sl].map((e=>({...e,sortable:vl(e.name)})))),[]);return(0,d.jsxs)(n.Fragment,{children:[h?(0,d.jsx)(de.o,{error:(0,Nt.Cb)(h)}):null,(0,d.jsx)(qe.L.Table,{loading:v,children:(0,d.jsx)(Fe.l,{emptyDataMessage:wu("no-data"),columnsWidthLSKey:el,columns:y,data:g||[],settings:Cu,onRowClick:e=>t(e.QueryText),rowClassName:()=>a,sortOrder:l,onSort:c})})]})},Au=(0,c.cn)("kv-top-queries"),_u={top:"top",running:"running"},Ru=[{value:_u.top,get content(){return wu("mode_top")}},{value:_u.running,get content(){return wu("mode_running")}}],ku=xt.z.nativeEnum(_u).catch(_u.top),Ou=({tenantName:e})=>{const t=(0,X.YQ)(),a=(0,$r.zy)(),r=(0,$r.W6)(),[i=_u.top,o]=(0,s.useQueryParam)("queryMode",s.StringParam),l=ku.parse(i),c=l===_u.top,u=(0,X.N4)((e=>e.executeTopQueries)),m=Go(n.useCallback((e=>{t((0,So.iZ)({input:e}));const n=(0,ye.mA)(a),s=(0,ra.YL)({...n,[ae.Dt]:ae.Dg.query,[ra.vh.queryTab]:ae.tQ.newQuery});r.push(s)}),[t,r,a])),p=c?Du:Iu;return(0,d.jsxs)(qe.L,{children:[(0,d.jsxs)(qe.L.Controls,{children:[(0,d.jsx)(gu.a,{options:Ru,value:l,onUpdate:o}),(0,d.jsx)($e.v,{value:u.text,onChange:e=>{t((0,jo.TX)({text:e}))},placeholder:wu("filter.text.placeholder"),className:Au("search")}),c?(0,d.jsx)(Nu,{from:u.from,to:u.to,onChange:e=>{t((0,jo.TX)(e))}}):null]}),(0,d.jsx)(p,{database:e,onRowClick:m,rowClassName:Au("row")})]})};var Mu=a(46496),Lu=a(87747);const zu=JSON.parse('{"no-data":"No data","filters.mode.immediate":"Immediate","filters.mode.history":"Historical","description":"Historical data only tracks shards with CPU load over 70%"}'),Fu=JSON.parse('{"no-data":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445","filters.mode.immediate":"\u041c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u044b\u0435","filters.mode.history":"\u0418\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u0435","description":"\u0418\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043e \u0448\u0430\u0440\u0434\u0430\u0445 \u0441 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u043e\u0439 CPU \u0432\u044b\u0448\u0435 70%"}'),qu=(0,Be.g4)("ydb-diagnostics-top-shards",{ru:Fu,en:zu}),Uu=({value:e,onChange:t})=>{const a=e.mode===Lu.h.Immediate?void 0:e.from,r=e.mode===Lu.h.Immediate?void 0:e.to;return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsxs)(gu.a,{value:e.mode,onUpdate:e=>{if(!((e,t)=>Object.values(e).includes(t))(Lu.h,e)){const t=Object.values(Lu.h).join(", ");throw new Error(`Unexpected TopShards mode "${e}". Should be one of: ${t}`)}t({mode:e})},children:[(0,d.jsx)(gu.a.Option,{value:Lu.h.Immediate,children:qu("filters.mode.immediate")}),(0,d.jsx)(gu.a.Option,{value:Lu.h.History,children:qu("filters.mode.history")})]}),(0,d.jsx)(Nu,{from:a,to:r,onChange:e=>{t({mode:Lu.h.History,...e})}})]})};const Qu=(0,c.cn)("top-shards"),$u={...Z.N3,dynamicRender:!1,externalSort:!0,disableSortReset:!0,defaultOrder:Rt.Ay.DESCENDING};function Bu(e){return e?(0,he.r6)(new Date(e).getTime()):"\u2013"}function Hu(e){return e.to="now",e.from="now-1h",e}const Gu=({tenantName:e,path:t,type:a})=>{var r,s;const i=(0,X.YQ)(),o=(0,$r.zy)(),[l]=(0,X.Nt)(),c=(0,X.N4)((e=>e.shardsWorkload)),[u,m]=n.useState((()=>{const e={...c};return e.mode||(e.mode=Lu.h.Immediate),e.from||e.to||Hu(e),e})),{tableSort:p,handleTableSort:h,backendSort:v}=function(){const[e,t]=(0,X.GY)({initialSortColumn:Ul,fixedOrderType:-1,multiple:!0}),a=n.useMemo((()=>(0,X.JN)(e,Kl)),[e]);return{tableSort:e,handleTableSort:t,backendSort:a}}(),{currentData:g,isFetching:y,error:x}=Mu.Xx.useSendShardQueryQuery({database:e,path:t,sortOrder:v,filters:u},{pollingInterval:l}),b=y&&void 0===g,f=(null===g||void 0===g||null===(r=g.resultSets)||void 0===r||null===(s=r[0])||void 0===s?void 0:s.result)||[],j=e=>{const t={...e};if(!c.from&&!c.to&&!e.from&&!e.to)switch(e.mode){case Lu.h.Immediate:t.from=t.to=void 0;break;case Lu.h.History:Hu(t)}i((0,Mu.rF)(e)),m((e=>({...e,...t})))},S=n.useMemo((()=>{const t=((e,t)=>[Yl(e,t),Zl,Xl,ec,tc,nc])(e,o),a=t.map((e=>{return{...e,sortable:(t=e.name,Boolean(Kl(t)))};var t}));return u.mode===Lu.h.History&&(a.splice(5,0,{name:Hl,render:({row:e})=>Bu(e.PeakTime),sortable:!1}),a.push({name:Wl,render:({row:e})=>Bu(e.IntervalEnd)})),a}),[u.mode,o,e]);return(0,d.jsxs)(qe.L,{children:[(0,d.jsx)(qe.L.Controls,{children:(0,d.jsx)(Uu,{value:u,onChange:j})}),u.mode===Lu.h.History&&(0,d.jsx)("div",{className:Qu("hint"),children:qu("description")}),x?(0,d.jsx)(de.o,{error:(0,Nt.Cb)(x)}):null,(0,d.jsx)(qe.L.Table,{loading:b,children:x&&!f?null:!f||k(a)?qu("no-data"):(0,d.jsx)(Fe.l,{columnsWidthLSKey:Fl,columns:S,data:f,settings:$u,onSort:h,sortOrder:p})})]})},Wu=(0,c.cn)("kv-tenant-diagnostics");const Vu=function(e){const t=n.useRef(null),a=(0,X.YQ)(),{diagnosticsTab:i=ae.iJ.overview}=(0,X.N4)((e=>e.tenant)),[o]=(0,s.useQueryParams)({database:s.StringParam,schema:s.StringParam,backend:s.StringParam,clusterName:s.StringParam}),l=M(e.type)?e.path:e.tenantName,c=M(e.type)||e.path===e.tenantName,u=(0,ie._Q)(),m=c?(({hasFeatureFlags:e})=>e?zc:zc.filter((e=>e.id!==ae.iJ.configs)))({hasFeatureFlags:u}):(p=e.type)&&Wc[p]||Uc;var p;let h=m.find((e=>e.id===i));return h||(h=m[0]),n.useEffect((()=>{h&&h.id!==i&&a((0,oe.WO)(h.id))}),[h,i,a]),(0,d.jsxs)("div",{className:Wu(),children:[h?(0,d.jsx)(r.mg,{children:(0,d.jsx)("title",{children:h.title})}):null,(()=>{var e;return(0,d.jsx)("div",{className:Wu("header-wrapper"),children:(0,d.jsxs)("div",{className:Wu("tabs"),children:[(0,d.jsx)(ne.t,{size:"l",items:m,activeTab:null===(e=h)||void 0===e?void 0:e.id,wrapTo:({id:e},t)=>{const a=(0,ra.YL)({...o,[ra.vh.diagnosticsTab]:e});return(0,d.jsx)(re.N_,{to:a,className:Wu("tab"),children:t},e)},allowNotSelected:!0}),(0,d.jsx)(se.E,{onManualRefresh:()=>{const e=new CustomEvent("diagnosticsRefresh");document.dispatchEvent(e)}})]})})})(),(0,d.jsx)("div",{className:Wu("page-wrapper"),ref:t,children:(()=>{var a;const{type:n,path:r}=e;switch(null===(a=h)||void 0===a?void 0:a.id){case ae.iJ.overview:return(0,d.jsx)(Tc,{type:n,tenantName:l,path:r,additionalTenantProps:e.additionalTenantProps,additionalNodesProps:e.additionalNodesProps});case ae.iJ.schema:return(0,d.jsx)(na,{path:r,tenantName:l,type:n,extended:!0});case ae.iJ.topQueries:return(0,d.jsx)(Ou,{tenantName:l});case ae.iJ.topShards:return(0,d.jsx)(Gu,{tenantName:l,path:r,type:n});case ae.iJ.nodes:return(0,d.jsx)(Le.G,{path:r,database:l,additionalNodesProps:e.additionalNodesProps,parentRef:t});case ae.iJ.tablets:return(0,d.jsx)(St.C,{path:r,database:l});case ae.iJ.storage:return(0,d.jsx)(jt.z,{database:l,parentRef:t});case ae.iJ.network:return(0,d.jsx)(zd,{path:r,database:l,additionalNodesProps:e.additionalNodesProps,parentRef:t});case ae.iJ.describe:return(0,d.jsx)(hr,{path:r,database:l,type:n});case ae.iJ.hotKeys:return(0,d.jsx)(rd,{path:r,database:l});case ae.iJ.graph:return(0,d.jsx)(Me,{path:r,database:l});case ae.iJ.consumers:return(0,d.jsx)(mn,{path:r,database:l,type:n});case ae.iJ.partitions:return(0,d.jsx)(vu,{path:r,database:l});case ae.iJ.configs:return(0,d.jsx)(ma,{database:l});case ae.iJ.operations:return(0,d.jsx)(ft,{database:l});default:return(0,d.jsx)("div",{children:"No data..."})}})()})]})},Ju=JSON.parse('{"controls.query-mode-selector_type":"Query type:","tabs.newQuery":"Editor","tabs.history":"History","tabs.saved":"Saved","history.empty":"History is empty","history.empty-search":"Search result is empty","saved.empty":"There are no saved queries","delete-dialog.header":"Delete query","delete-dialog.question":"Are you sure you want to delete query","delete-dialog.delete":"Delete","delete-dialog.cancel":"Cancel","preview.title":"Preview","preview.not-available":"Preview is not available","preview.close":"Close preview","preview.truncated":"truncated","method-description.script":"For YQL-scripts combining DDL and DML.\\nAPI call: schema.scripting","method-description.scan":"Read-only queries, potentially reading a lot of data.\\nAPI call: table.ExecuteScan","method-description.data":"DML queries for changing and fetching data in serialization mode.\\nAPI call: table.executeDataQuery","method-description.query":"Any query. An experimental API call supposed to replace all existing methods.\\nAPI Call: query.ExecuteScript","method-description.pg":"Queries in postgresql syntax.\\nAPI call: query.ExecuteScript","transaction-mode-description.serializable":"Provides the strictest isolation level for custom transactions","transaction-mode-description.onlinero":"Each read operation in the transaction is reading the data that is most recent at execution time","transaction-mode-description.stalero":"Read operations within a transaction may return results that are slightly out-of-date (lagging by fractions of a second)","transaction-mode-description.snapshot":"All the read operations within a transaction access the database snapshot. All the data reads are consistent","transaction-mode-description.implicit":"No transaction","tracing-level-description.basic":"Spans of main component operations","tracing-level-description.detailed":"Highest detail applicable for diagnosing problems in production","tracing-level-description.diagnostic":"Detailed debugging information for developers","tracing-level-description.off":"No tracing","tracing-level-description.toplevel":"Lowest detail, no more than two spans per request to the component","tracing-level-description.trace":"Very detailed debugging information","statistics-mode-description.none":"Don\'t collect statistics","statistics-mode-description.basic":"Collect statistics","statistics-mode-description.full":"Collect statistics and query plan","statistics-mode-description.profile":"Collect statistics for individual tasks","query-duration.description":"Duration of server-side query execution","action.send-query":"Send query","action.send-selected-query":"Send selected query","action.previous-query":"Previous query in history","action.next-query":"Next query in history","action.save-query":"Save query","action.stop":"Stop","filter.text.placeholder":"Search by query text...","gear.tooltip":"Query execution settings have been changed for ","banner.query-settings.message":"Query was executed with modified settings: ","history.queryText":"Query text","history.endTime":"End time","history.duration":"Duration"}'),Ku=(0,Be.g4)("ydb-query-editor",{en:Ju}),Yu=(0,c.cn)("ydb-queries-history");const Zu=function({changeUserInput:e}){const t=(0,X.YQ)(),a=(0,X.N4)(So.py),n=(0,X.N4)(So.jY),r=[...a].reverse(),s=Go((a=>{e({input:a.queryText}),t((0,oe.sH)(ae.tQ.newQuery))})),i=[{name:"queryText",header:Ku("history.queryText"),render:({row:e})=>(0,d.jsx)("div",{className:Yu("query"),children:(0,d.jsx)(Vo,{value:e.queryText,maxQueryHeight:6})}),sortable:!1,width:600},{name:"EndTime",header:Ku("history.endTime"),render:({row:e})=>e.endTime?(0,he.r6)(e.endTime.toString()):"-",align:"right",width:200,sortable:!1},{name:"Duration",header:Ku("history.duration"),render:({row:e})=>e.durationUs?(0,vt.Xo)((0,vt.Jc)(e.durationUs)):"-",align:"right",width:150,sortable:!1}];return(0,d.jsxs)(qe.L,{className:Yu(),children:[(0,d.jsx)(qe.L.Controls,{children:(0,d.jsx)($e.v,{value:n,onChange:e=>{t((0,So.Ni)(e))},placeholder:Ku("filter.text.placeholder"),className:Yu("search")})}),(0,d.jsx)(qe.L.Table,{children:(0,d.jsx)(Fe.l,{columnsWidthLSKey:"queriesHistoryTableColumnsWidth",columns:i,data:r,settings:Yo,emptyDataMessage:Ku(n?"history.empty-search":"history.empty"),onRowClick:e=>s(e),rowClassName:()=>Yu("table-row")})})]})};var Xu=a(13847),em=a(72093);const tm=H.F.injectEndpoints({endpoints:e=>({cancelQuery:e.mutation({queryFn:async({queryId:e,database:t},{signal:a})=>{try{const n=await window.api.viewer.sendQuery({database:t,action:"cancel-query",query_id:e},{signal:a});if((0,Nt.We)(n))return{error:n};return{data:(0,Nt.fW)(n)}}catch(n){return{error:n}}}})}),overrideExisting:"throw"});function am(e,t){const a=new Map(Object.entries(e)),n=new Map(Object.entries(t));return Array.from(a.keys()).filter((e=>a.has(e)&&void 0!==a.get(e)&&a.get(e)!==n.get(e)))}const nm=JSON.parse('{"action.settings":"Query settings","form.query-mode":"Query type","form.timeout":"Timeout","form.transaction-mode":"Transaction mode","form.statistics-mode":"Statistics collection mode","form.tracing-level":"Tracing level","form.limit-rows":"Limit rows","button-done":"Save","tooltip_plan-to-svg-statistics":"Statistics option is set to \\"Full\\" due to the enabled \\"Execution plan\\" experiment.\\n To disable it, go to the \\"Experiments\\" section in the user settings.","button-cancel":"Cancel","form.timeout.seconds":"sec","form.validation.timeout":"Must be positive","form.validation.limitRows":"Must be between 1 and 100000","description.default":" (default)","docs":"Documentation"}'),rm=JSON.parse('{"action.settings":"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0430","form.query-mode":"\u0422\u0438\u043f \u0437\u0430\u043f\u0440\u043e\u0441\u0430","form.timeout":"\u0422\u0430\u0439\u043c\u0430\u0443\u0442","form.transaction-mode":"\u0423\u0440\u043e\u0432\u0435\u043d\u044c \u0438\u0437\u043e\u043b\u044f\u0446\u0438\u0438","form.statistics-mode":"\u0420\u0435\u0436\u0438\u043c \u0441\u0431\u043e\u0440\u0430 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438","form.tracing-level":"Tracing level","form.limit-rows":"\u041b\u0438\u043c\u0438\u0442 \u0441\u0442\u0440\u043e\u043a","tooltip_plan-to-svg-statistics":"\u041e\u043f\u0446\u0438\u044f \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 \u0432 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \\"Full\\" \u0438\u0437-\u0437\u0430 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u043e\u0433\u043e \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430 \\"Execution plan\\".\\n \u0427\u0442\u043e\u0431\u044b \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0435\u0433\u043e, \u043f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u0432 \u0440\u0430\u0437\u0434\u0435\u043b \\"Experiments\\" \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.","button-done":"\u0413\u043e\u0442\u043e\u0432\u043e","button-cancel":"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c","form.timeout.seconds":"\u0441\u0435\u043a","form.validation.timeout":"\u0422\u0430\u0439\u043c\u0430\u0443\u0442 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c","form.validation.limitRows":"\u041b\u0438\u043c\u0438\u0442 \u0441\u0442\u0440\u043e\u043a \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043c\u0435\u0436\u0434\u0443 1 \u0438 100000","description.default":" (default)","docs":"\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f"}'),sm=(0,Be.g4)("ydb-query-settings-dialog",{en:nm,ru:rm}),im=[{value:Nt.Wg.implicit,content:Nt._d[Nt.Wg.implicit],text:Ku("transaction-mode-description.implicit"),isDefault:!0},{value:Nt.Wg.serializable,content:Nt._d[Nt.Wg.serializable],text:Ku("transaction-mode-description.serializable")},{value:Nt.Wg.onlinero,content:Nt._d[Nt.Wg.onlinero],text:Ku("transaction-mode-description.onlinero")},{value:Nt.Wg.stalero,content:Nt._d[Nt.Wg.stalero],text:Ku("transaction-mode-description.stalero")},{value:Nt.Wg.snapshot,content:Nt._d[Nt.Wg.snapshot],text:Ku("transaction-mode-description.snapshot")}],om=[{value:Nt.ei.query,content:Nt.om[Nt.ei.query],text:Ku("method-description.query"),isDefault:!0},{value:Nt.ei.script,content:Nt.om[Nt.ei.script],text:Ku("method-description.script")},{value:Nt.ei.scan,content:Nt.om[Nt.ei.scan],text:Ku("method-description.scan")},{value:Nt.ei.data,content:Nt.om[Nt.ei.data],text:Ku("method-description.data")},{value:Nt.ei.pg,content:Nt.om[Nt.ei.pg],text:Ku("method-description.pg")}],lm=[{value:Nt.pE.none,content:Nt.Pn[Nt.pE.none],text:Ku("statistics-mode-description.none"),isDefault:!0},{value:Nt.pE.basic,content:Nt.Pn[Nt.pE.basic],text:Ku("statistics-mode-description.basic")},{value:Nt.pE.full,content:Nt.Pn[Nt.pE.full],text:Ku("statistics-mode-description.full")},{value:Nt.pE.profile,content:Nt.Pn[Nt.pE.profile],text:Ku("statistics-mode-description.profile")}],cm=[{value:Nt.PB.off,content:Nt.PX[Nt.PB.off],text:Ku("tracing-level-description.off"),isDefault:!0},{value:Nt.PB.toplevel,content:Nt.PX[Nt.PB.toplevel],text:Ku("tracing-level-description.toplevel")},{value:Nt.PB.basic,content:Nt.PX[Nt.PB.basic],text:Ku("tracing-level-description.basic")},{value:Nt.PB.detailed,content:Nt.PX[Nt.PB.detailed],text:Ku("tracing-level-description.detailed")},{value:Nt.PB.diagnostic,content:Nt.PX[Nt.PB.diagnostic],text:Ku("tracing-level-description.diagnostic")},{value:Nt.PB.trace,content:Nt.PX[Nt.PB.trace],text:Ku("tracing-level-description.trace")}],dm={transactionMode:{title:sm("form.transaction-mode"),options:im},queryMode:{title:sm("form.query-mode"),options:om},statisticsMode:{title:sm("form.statistics-mode"),options:lm},tracingLevel:{title:sm("form.tracing-level"),options:cm},timeout:{title:sm("form.timeout")},limitRows:{title:sm("form.limit-rows")}};function um({currentSettings:e,defaultSettings:t}){const a=am(e,t),n={};return a.forEach((t=>{const a=dm[t],r=e[t];if("options"in a){var s;const e=null===(s=a.options.find((e=>e.value===r)))||void 0===s?void 0:s.content;e&&(n[a.title]=e)}else r&&(n[a.title]=String(r))})),n}var mm=a(80967);const pm=()=>{const[e,t]=(0,mm.i)(Z.fr);let a;try{a=Nt.id.parse(e)}catch{a=void 0}return[a,t]};var hm=a(95312);const vm=()=>{const[e,t]=(0,mm.i)(Z.YQ),[a]=pm(),[n]=(0,hm.X)(),r=a?am(a,Nt.jU):[],s=n?am(n,Nt.jU):[],i=r.length>0,o=a?um({currentSettings:a,defaultSettings:Nt.jU}):{},l=n?um({currentSettings:n,defaultSettings:Nt.jU}):{},c=e&&Date.now()-e<1e3*Z.Du;return{isBannerShown:i&&!c,isIndicatorShown:i&&c,closeBanner:()=>t(Date.now()),resetBanner:()=>t(void 0),changedCurrentSettings:s,changedCurrentSettingsDescriptions:l,changedLastExucutionSettings:r,changedLastExecutionSettingsDescriptions:o}};var gm=a(53472);let ym=function(e){return e.triggerCollapse="triggerCollapse",e.triggerExpand="triggerExpand",e.clear="clear",e}({});const xm=e=>{localStorage.setItem(e,"true")},bm=e=>{localStorage.removeItem(e)};function fm(e){return function(t,a){switch(a){case ym.triggerCollapse:return xm(e),{...t,triggerCollapse:!0,triggerExpand:!1,collapsed:!0};case ym.triggerExpand:return bm(e),{...t,triggerCollapse:!1,triggerExpand:!0,collapsed:!1};case ym.clear:return bm(e),{triggerCollapse:!1,triggerExpand:!1,collapsed:!1};default:return t}}}const jm=(0,c.cn)("kv-pane-visibility-button");function Sm({onCollapse:e,onExpand:t,isCollapsed:a,initialDirection:r="top",className:s}){return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(lt.m,{title:"Collapse",children:(0,d.jsx)(vn.$,{view:"flat-secondary",onClick:e,className:jm({hidden:a,type:"collapse"},s),children:(0,d.jsx)(ct.I,{data:gm.A,className:jm({[r]:!0})})})}),(0,d.jsx)(lt.m,{title:"Expand",children:(0,d.jsx)(vn.$,{view:"flat-secondary",onClick:t,className:jm({hidden:!a,type:"expand"},s),children:(0,d.jsx)(ct.I,{data:gm.A,className:jm({[r]:!0},"rotate")})})})]})}var Tm=a(31819),Nm=a(72976);const Em=function({disabled:e}){const t=(0,X.YQ)();return(0,d.jsx)(vn.$,{onClick:()=>{t((0,Nm.Jf)())},view:"flat-secondary",disabled:e,title:"Fullscreen",children:(0,d.jsx)(ct.I,{data:Tm.A})})};var wm,Cm=a(98392);function Pm(){return Pm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},Pm.apply(null,arguments)}const Im=function(e){return n.createElement("svg",Pm({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),wm||(wm=n.createElement("path",{fill:"currentColor",d:"M13.383 6.5a.309.309 0 00.305-.305V5.18a.328.328 0 00-.305-.305H11.25V2.742a.328.328 0 00-.305-.304H9.93a.309.309 0 00-.305.304v3.149c0 .355.254.609.61.609h3.148zm-7.008-.61V2.743a.328.328 0 00-.305-.304H5.055a.309.309 0 00-.305.304v2.133H2.617a.309.309 0 00-.304.305v1.015c0 .178.126.305.304.305h3.149c.33 0 .609-.254.609-.61zm0 7.618v-3.149c0-.33-.28-.609-.61-.609H2.618a.309.309 0 00-.304.305v1.015c0 .178.126.305.304.305H4.75v2.133c0 .178.127.305.305.305H6.07a.309.309 0 00.305-.305zm4.875 0v-2.133h2.133a.309.309 0 00.305-.305v-1.015a.328.328 0 00-.305-.305h-3.149c-.355 0-.609.28-.609.61v3.148c0 .178.127.305.305.305h1.015a.309.309 0 00.305-.305z"})))};var Dm;const Am=(0,c.cn)("ydb-fullscreen"),_m=null!==(Dm=document.getElementById("fullscreen-root"))&&void 0!==Dm?Dm:void 0;const Rm=function({children:e,className:t}){const a=(0,X.N4)((e=>e.fullscreen)),r=(0,X.YQ)(),s=n.useCallback((()=>{r((0,Nm.sM)())}),[r]);n.useEffect((()=>{const e=e=>{"Escape"===e.key&&s()};return document.addEventListener("keydown",e,!1),()=>{document.removeEventListener("keydown",e,!1)}}),[s]);const[i,o]=n.useState(null);n.useEffect((()=>{const e=document.createElement("div");return null===_m||void 0===_m||_m.appendChild(e),e.style.display="contents",o(e),()=>{o(null),e.remove()}}),[]);const l=n.useRef(null);return n.useLayoutEffect((()=>{var e;i&&(a?null===_m||void 0===_m||_m.appendChild(i):null===(e=l.current)||void 0===e||e.appendChild(i))}),[i,a]),i?(0,d.jsx)("div",{ref:l,style:{display:"contents"},children:(0,d.jsx)(Cm.Z,{container:i,children:(0,d.jsxs)("div",{className:Am({fullscreen:a},t),children:[(0,d.jsx)(vn.$,{onClick:s,view:"raised",className:Am("close-button"),children:(0,d.jsx)(ct.I,{data:Im})}),(0,d.jsx)("div",{className:Am("content"),children:e})]})})}):null},km=n.memo((function(e){const{className:t,value:a}=e,n=(0,X.YQ)();return(0,d.jsx)("span",{className:Fm("cell",t),onClick:e=>n((0,pe.DK)(e.target,a,"cell")),children:a})})),Om=JSON.parse('{"empty":"Table is empty"}'),Mm=JSON.parse('{"empty":"\u0422\u0430\u0431\u043b\u0438\u0446\u0430 \u043f\u0443\u0441\u0442\u0430\u044f"}'),Lm=(0,Be.g4)("ydb-query-result-table",{ru:Mm,en:Om}),zm={...Z.N3,stripedRows:!0,sortable:!1,displayIndices:!0},Fm=(0,c.cn)("ydb-query-result-table"),qm=(e,t)=>t,Um=(e,t)=>t+1,Qm=e=>{const{columns:t,data:a,settings:r}=e,s=n.useMemo((()=>t?((e,t)=>{if(!e.length)return[];const a=null===t||void 0===t?void 0:t.slice(0,100);return e.map((({name:e,type:t})=>{const n=(0,Nt.nh)(t);return{name:e,width:kt({data:a,name:e}),align:"number"===n?Rt.Ay.RIGHT:Rt.Ay.LEFT,render:({row:t})=>(0,d.jsx)(km,{value:String(t[e])})}}))})(t,a):(e=>{if(null===e||void 0===e||!e.length)return[];const t=null===e||void 0===e?void 0:e.slice(0,100);return Object.keys(e[0]).map((a=>({name:a,width:kt({data:t,name:a}),align:(0,ks.kf)(e[0][a])?Rt.Ay.RIGHT:Rt.Ay.LEFT,render:({row:e})=>(0,d.jsx)(km,{value:String(e[a])})})))})(a)),[a,t]),i=n.useMemo((()=>({...zm,...r})),[r]);return Array.isArray(a)?s.length?(0,d.jsx)(Fe.l,{data:a,columns:s,settings:i,rowKey:qm,visibleRowIndex:Um,wrapperClassName:Fm("table-wrapper")}):(0,d.jsx)("div",{className:Fm("message"),children:Lm("empty")}):null},$m=H.F.injectEndpoints({endpoints:e=>({sendQuery:e.query({queryFn:async({query:e,database:t,action:a,limitRows:n},{signal:r})=>{try{const s=await window.api.viewer.sendQuery({query:e,database:t,action:a,limit_rows:n},{signal:r,withRetries:!0});return(0,Nt.We)(s)?{error:s}:{data:(0,Nt.fW)(s)}}catch(s){return{error:s||new Error("Unauthorized")}}},providesTags:["PreviewData"]})}),overrideExisting:"throw"}),Bm=(0,c.cn)("kv-preview"),Hm=({database:e,path:t,type:a})=>{var n,r,s;const i=(0,X.YQ)(),o=D(a),l=`select * from \`${t}\` limit 101`,{currentData:c,isFetching:u,error:m}=$m.useSendQueryQuery({database:e,query:l,action:Q(a)?"execute-query":"execute-scan",limitRows:100},{skip:!o,refetchOnMountOrArgChange:!0}),p=u&&void 0===c,h=null!==(n=null===c||void 0===c||null===(r=c.resultSets)||void 0===r?void 0:r[0])&&void 0!==n?n:{},v=()=>{i((0,Y.o)(!1))};if(p)return(0,d.jsx)("div",{className:Bm("loader-container"),children:(0,d.jsx)(Qs.a,{size:"m"})});let g;o?m&&(g=(0,d.jsx)("div",{className:Bm("message-container","error"),children:(0,Nt.Cb)(m)})):g=(0,d.jsx)("div",{className:Bm("message-container"),children:Ku("preview.not-available")});const y=null!==(s=g)&&void 0!==s?s:(0,d.jsx)("div",{className:Bm("result"),children:(0,d.jsx)(Qm,{data:h.result,columns:h.columns})});return(0,d.jsxs)("div",{className:Bm(),children:[(()=>{var e,a;return(0,d.jsxs)("div",{className:Bm("header"),children:[(0,d.jsxs)("div",{className:Bm("title"),children:[Ku("preview.title"),(0,d.jsxs)(it.E,{color:"secondary",variant:"body-2",children:[h.truncated?`${Ku("preview.truncated")} `:"","(",null!==(e=null===(a=h.result)||void 0===a?void 0:a.length)&&void 0!==e?e:0,")"]}),(0,d.jsx)("div",{className:Bm("table-name"),children:t})]}),(0,d.jsxs)("div",{className:Bm("controls-left"),children:[(0,d.jsx)(Em,{disabled:Boolean(m)}),(0,d.jsx)(vn.$,{view:"flat-secondary",onClick:v,title:Ku("preview.close"),children:(0,d.jsx)(ct.I,{data:Vc.A,size:18})})]})]})})(),(0,d.jsx)(Rm,{children:y})]})};var Gm=a(27738),Wm=a(594),Vm=a(1155);const Jm=(0,c.cn)("ydb-query-settings-description"),Km=({querySettings:e,prefix:t})=>(0,d.jsxs)("div",{className:Jm("message"),children:[t,Object.entries(e).map((([e,t],a,n)=>(0,d.jsxs)("span",{className:Jm("description-item"),children:[`${e}: ${t}`,a<n.length-1?", ":null]},a)))]});var Ym=a(13066);async function Zm(e){var t;let a=1;const n=async()=>{if(!window.ydbEditor){if(!a)return!1;await new Promise((e=>{window.setTimeout(e,100)})),a-=1,n()}return!0};await n()?null===(t=window.ydbEditor)||void 0===t||t.trigger(void 0,"insertSnippetToEditor",e):console.error("Monaco editor not found")}function Xm(e){return e.replace(/\$/g,"\\$")}const ep=e=>`-- docs: https://ydb.tech/en/docs/yql/reference/syntax/create_table\nCREATE TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${Xm(e.relativePath)}/my_row_table\``:"${1:my_row_table}"} (\n category_id Uint64 NOT NULL,\n id Uint64,\n expire_at Datetime,\n updated_on Datetime,\n name Text,\n \`binary-payload\` Bytes,\n attributes JsonDocument,\n -- uncomment to add a secondary index\n -- INDEX idx_row_table_id GLOBAL SYNC ON ( id ) COVER ( name, attributes ), -- Secondary indexes docs https://ydb.tech/en/docs/yql/reference/syntax/create_table#secondary_index\n PRIMARY KEY (category_id, id)\n) \nWITH (\n AUTO_PARTITIONING_BY_SIZE = ENABLED,\n AUTO_PARTITIONING_PARTITION_SIZE_MB = 2048,\n AUTO_PARTITIONING_BY_LOAD = ENABLED,\n AUTO_PARTITIONING_MIN_PARTITIONS_COUNT = 4,\n AUTO_PARTITIONING_MAX_PARTITIONS_COUNT = 1024\n -- uncomment to create a table with predefined partitions\n -- , UNIFORM_PARTITIONS = 4 -- The number of partitions for uniform initial table partitioning.\n -- The primary key's first column must have type Uint64 or Uint32.\n -- A created table is immediately divided into the specified number of partitions\n -- uncomment to launch read only replicas in every AZ\n -- , READ_REPLICAS_SETTINGS = 'PER_AZ:1' -- Enable read replicas for stale read, launch one replica in every availability zone\n -- uncomment to enable ttl\n -- , TTL = Interval("PT1H") ON expire_at -- Enable background deletion of expired rows https://ydb.tech/en/docs/concepts/ttl\n -- uncomment to create a table with a bloom filter\n -- , KEY_BLOOM_FILTER = ENABLED -- With a Bloom filter, you can more efficiently determine\n -- if some keys are missing in a table when making multiple single queries by the primary key.\n)`,tp=e=>`-- docs: https://ydb.tech/en/docs/yql/reference/syntax/create_table#olap-tables\nCREATE TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${Xm(e.relativePath)}/my_column_table\``:"${1:my_column_table}"} (\n id Int64 NOT NULL,\n author Text,\n title Text,\n body Text,\n PRIMARY KEY (id)\n)\nPARTITION BY HASH(id)\nWITH (STORE = COLUMN)`,ap=()=>'-- docs: https://ydb.tech/docs/en/yql/reference/syntax/create-async-replication\nCREATE OBJECT secret_name (TYPE SECRET) WITH value="secret_value";\n\nCREATE ASYNC REPLICATION my_replication\nFOR ${1:<original_table>} AS ${2:replica_table} --[, `/remote_database/another_table_name` AS `another_local_table_name` ...]\nWITH (\n CONNECTION_STRING="${3:grpcs://mydb.ydb.tech:2135/?database=/remote_database}",\n TOKEN_SECRET_NAME = "secret_name"\n -- ENDPOINT="mydb.ydb.tech:2135",\n -- DATABASE=`/remote_database`,\n -- USER="user",\n -- PASSWORD_SECRET_NAME="your_password"\n);',np=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/alter_table/\n\nALTER TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${Xm(e.relativePath)}\``:"${1:<my_table>}"}\n -- RENAME TO new_table_name\n -- DROP COLUMN some_existing_column\n\${2:ADD COLUMN numeric_column Int32};`,rp=e=>`-- documentation about partitioning https://ydb.tech/docs/en/concepts/datamodel/table#partitioning\n\nALTER TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${Xm(e.relativePath)}\``:"${1:<my_table>}"} SET \n(\n AUTO_PARTITIONING_BY_LOAD = ENABLED, -- If a partition consumes more than 50% of the CPU for a few dozens of seconds, it is enqueued for splitting.\n AUTO_PARTITIONING_BY_SIZE = ENABLED, -- If a partition size exceeds the value specified by the AUTO_PARTITIONING_PARTITION_SIZE_MB parameter, it is enqueued for splitting.\n AUTO_PARTITIONING_PARTITION_SIZE_MB = 2048,\n AUTO_PARTITIONING_MIN_PARTITIONS_COUNT = 10, -- Partitions are merged only if their actual number exceeds the value specified by this parameter.\n AUTO_PARTITIONING_MAX_PARTITIONS_COUNT = 100 -- Partitions are split only if their number doesn't exceed the value specified by this parameter.\n)`,sp=e=>{var t;const a=null!==e&&void 0!==e&&e.relativePath?`\`${Xm(e.relativePath)}\``:"${2:<my_table>}";return`SELECT ${(null===e||void 0===e||null===(t=e.schemaData)||void 0===t?void 0:t.map((e=>{var t;return"`"+Xm(null!==(t=e.name)&&void 0!==t?t:"")+"`"})).join(", "))||"${1:*}"}\nFROM ${a}\n${null!==e&&void 0!==e&&e.relativePath?"":"WHERE ${3:Key1 = 1}\nORDER BY ${4:Key1}\n"}LIMIT \${5:10};`},ip=e=>{var t;return`UPSERT INTO ${null!==e&&void 0!==e&&e.relativePath?`\`${Xm(e.relativePath)}\``:"${1:<my_table>}"}\n( ${(null===e||void 0===e||null===(t=e.schemaData)||void 0===t?void 0:t.map((e=>{var t;return`\`${Xm(null!==(t=e.name)&&void 0!==t?t:"")}\``})).join(", "))||"${2:id, name}"} )\nVALUES ( ${null!==e&&void 0!==e&&e.schemaData?"${3: }":'${3:1, "foo"}'} );`},op=e=>`DROP EXTERNAL TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${Xm(e.relativePath)}\``:"${1:my_table}"};`,lp=e=>{const t=null===e||void 0===e?void 0:e.relativePath.split("/").slice(0,-1).join("/");return`CREATE EXTERNAL TABLE ${t?`\`${Xm(t)}/my_external_table\``:"${1:<my_external_table>}"} (\n column1 Int,\n column2 Int\n) WITH (\n DATA_SOURCE="${null!==e&&void 0!==e&&e.relativePath?`${Xm(e.relativePath)}`:"${2:<path_to_data_source>}"}",\n LOCATION="",\n FORMAT="json_as_string",\n \`file_pattern\`=""\n);`},cp=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/create-topic\nCREATE TOPIC ${null!==e&&void 0!==e&&e.relativePath?`\`${Xm(e.relativePath)}/my_topic\``:"${1:my_topic}"} (\n CONSUMER consumer1,\n CONSUMER consumer2 WITH (read_from = Datetime('1970-01-01T00:00:00Z')) -- Sets up the message write time starting from which the consumer will receive data.\n -- Value type: Datetime OR Timestamp OR integer (unix-timestamp in the numeric format). \n -- Default value: now\n) WITH (\n min_active_partitions = 1, -- Minimum number of topic partitions.\n partition_count_limit = 0, -- Maximum number of active partitions in the topic. 0 is interpreted as unlimited.\n retention_period = Interval('PT18H'), -- Data retention period in the topic. Value type: Interval.\n retention_storage_mb = 0, -- Limit on the maximum disk space occupied by the topic data. \n -- When this value is exceeded, the older data is cleared, like under a retention policy. \n -- 0 is interpreted as unlimited.\n partition_write_speed_bytes_per_second = 1048576, -- Maximum allowed write speed per partition.\n partition_write_burst_bytes = 0 -- Write quota allocated for write bursts. \n -- When set to zero, the actual write_burst value is equalled to \n -- the quota value (this allows write bursts of up to one second).\n);`,dp=e=>`-- docs: https://ydb.tech/en/docs/yql/reference/syntax/alter_topic\nALTER TOPIC ${null!==e&&void 0!==e&&e.relativePath?`\`${Xm(e.relativePath)}\``:"${1:<my_topic>}"}\n ADD CONSUMER new_consumer WITH (read_from = Datetime('1970-01-01T00:00:00Z')), -- Sets up the message write time starting from which the consumer will receive data.\n -- Value type: Datetime OR Timestamp OR integer (unix-timestamp in the numeric format).\n -- Default value: now\n ALTER CONSUMER consumer1 SET (read_from = Datetime('1970-01-01T00:00:00Z')),\n DROP CONSUMER consumer2,\n SET (\n min_active_partitions = 1, -- Minimum number of topic partitions.\n partition_count_limit = 0, -- Maximum number of active partitions in the topic. 0 is interpreted as unlimited.\n retention_period = Interval('PT18H'), -- Data retention period in the topic. Value type: Interval.\n retention_storage_mb = 0, -- Limit on the maximum disk space occupied by the topic data. \n -- When this value is exceeded, the older data is cleared, like under a retention policy. \n -- 0 is interpreted as unlimited.\n partition_write_speed_bytes_per_second = 1048576, -- Maximum allowed write speed per partition.\n partition_write_burst_bytes = 0 -- Write quota allocated for write bursts. \n -- When set to zero, the actual write_burst value is equalled to\n -- the quota value (this allows write bursts of up to one second).\n );`,up=e=>`DROP TOPIC ${null!==e&&void 0!==e&&e.relativePath?`\`${Xm(e.relativePath)}\``:"${1:<my_topic>}"};`,mp=e=>`CREATE VIEW ${null!==e&&void 0!==e&&e.relativePath?`\`${Xm(e.relativePath)}/my_view\``:"${1:my_view}"} WITH (security_invoker = TRUE) AS SELECT 1;`,pp=e=>`DROP VIEW ${null!==e&&void 0!==e&&e.relativePath?`\`${Xm(e.relativePath)}\``:"${1:<my_view>}"};`,hp=e=>`DROP ASYNC REPLICATION ${null!==e&&void 0!==e&&e.relativePath?`\`${Xm(e.relativePath)}\``:"${1:<my_replication>}"};`,vp=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/alter-async-replication\nALTER ASYNC REPLICATION ${null!==e&&void 0!==e&&e.relativePath?`\`${Xm(e.relativePath)}\``:"${1:<my_replication>}"} SET (STATE = "DONE", FAILOVER_MODE = "FORCE");`,gp=e=>`ALTER TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${Xm(e.relativePath)}\``:"${1:<my_table>}"} ADD INDEX \${2:index_name} GLOBAL ON (\${3:<column_name>});`,yp=e=>{const t=null===e||void 0===e?void 0:e.relativePath.split("/").pop(),a=null===e||void 0===e?void 0:e.relativePath.split("/").slice(0,-1).join("/");return`ALTER TABLE ${a?`\`${Xm(a)}\``:"${1:<my_table>}"} DROP INDEX ${Xm(null!==t&&void 0!==t?t:"")||"${2:<index_name>}"};`},xp=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/alter_table/changefeed\nALTER TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${Xm(e.relativePath)}\``:"${1:<my_table>}"} ADD CHANGEFEED \${2:changefeed_name} WITH (\n MODE = \${3:'UPDATES'}, -- KEYS_ONLY, UPDATES, NEW_IMAGE, OLD_IMAGE, or NEW_AND_OLD_IMAGES\n FORMAT = \${4:'JSON'}, -- JSON or DEBEZIUM_JSON\n VIRTUAL_TIMESTAMPS = \${5:TRUE}, -- true or false\n RETENTION_PERIOD = \${6:Interval('PT12H')}, -- Interval value, e.g., Interval('PT24H')\n -- TOPIC_MIN_ACTIVE_PARTITIONS: The number of topic partitions. By default, the number of topic partitions is equal to the number of table partitions\n INITIAL_SCAN = \${8:TRUE} -- true or false\n)\n\n-- MODE options:\n-- KEYS_ONLY: Only the primary key components and change flag are written.\n-- UPDATES: Updated column values that result from updates are written.\n-- NEW_IMAGE: Any column values resulting from updates are written.\n-- OLD_IMAGE: Any column values before updates are written.\n-- NEW_AND_OLD_IMAGES: A combination of NEW_IMAGE and OLD_IMAGE modes.`,bp=()=>"-- docs: https://ydb.tech/docs/en/yql/reference/syntax/create-group\nCREATE GROUP ${1:group_name}\n-- group_name: The name of the group. It may contain lowercase Latin letters and digits.",fp=()=>"-- docs: https://ydb.tech/docs/en/yql/reference/syntax/create-user\nCREATE USER ${1:user_name} PASSWORD ${2:'password'}\n-- user_name: The name of the user. It may contain lowercase Latin letters and digits.\n-- option: The password of the user:\n -- PASSWORD 'password' creates a user with the password password. The ENCRYPTED option is always enabled.\n -- PASSWORD NULL creates a user with an empty password.",jp=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/delete\nDELETE FROM ${null!==e&&void 0!==e&&e.relativePath?`\`${Xm(e.relativePath)}\``:"${1:<my_table>}"}\nWHERE \${2:Key1 = 1};`,Sp=()=>"-- docs: https://ydb.tech/docs/en/yql/reference/syntax/drop-group\nDROP GROUP ${1:<group_name>}\n\n-- IF EXISTS: Suppress an error if the group doesn't exist.\n-- group_name: The name of the group to be deleted.",Tp=()=>"-- docs: https://ydb.tech/docs/en/yql/reference/syntax/drop-user\nDROP USER ${1:<user_name>}\n\n-- IF EXISTS: Suppress an error if the user doesn't exist.\n-- user_name: The name of the user to be deleted.",Np=e=>`GRANT \${1:<permission_name>}\nON ${null!==e&&void 0!==e&&e.relativePath?`\`${Xm(null===e||void 0===e?void 0:e.relativePath)}\``:"${2:<path_to_scheme_object>}"}\nTO \${3:<role_name>}\n\n-- permission_name: The name of the access right to schema objects that needs to be assigned.\n-- path_to_scheme_object: The path to the schema object for which rights are being granted.\n-- role_name: The name of the user or group to whom rights on the schema object are being granted.\n-- WITH GRANT OPTION: Using this construct gives the user or group of users the right to manage access rights - \n-- to assign or revoke certain rights. This construct has functionality similar to granting \n-- the "ydb.access.grant" or GRANT right. A subject with the ydb.access.grant right cannot \n-- grant rights broader than they possess themselves.`,Ep=e=>`REVOKE \${1:<permission_name>}\nON ${null!==e&&void 0!==e&&e.relativePath?`\`${Xm(null===e||void 0===e?void 0:e.relativePath)}\``:"${2:<path_to_scheme_object>}"}\nFROM \${3:<role_name>}\n\n-- permission_name: The name of the access right to schema objects that needs to be revoked.\n-- path_to_scheme_object: The path to the schema object from which rights are being revoked.\n-- role_name: The name of the user or group from whom rights on the schema object are being revoked.\n-- GRANT OPTION FOR: Using this construct revokes the user's or group's right to manage access rights.\n-- All previously granted rights by this user remain in effect.\n-- This construct has functionality similar to revoking the "ydb.access.grant" or GRANT right.`,wp=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/update\nUPDATE ${null!==e&&void 0!==e&&e.relativePath?`\`${Xm(e.relativePath)}\``:"${1:<my_table>}"}\nSET \${2:Column1 = 'foo', Column2 = 'bar'}\nWHERE \${3:Key1 = 1};`,Cp=e=>`DROP TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${Xm(e.relativePath)}\``:"${1:<my_table>}"};`,Pp=JSON.parse('{"button.new-sql":"New query","action.create-row-table":"Create row table","action.create-column-table":"Create column table","action.create-external-table":"Create external table","action.upsert-to-table":"Upsert into table","action.update-table":"Update table","action.alter-table":"Alter table","action.select-rows":"Select from a table","action.delete-rows":"Delete rows","action.drop-table":"Drop table","action.add-index":"Add index","action.drop-index":"Drop index","action.drop-external-table":"Drop external table","menu.tables":"Tables","menu.topics":"Topics","menu.capture":"Change data capture","menu.replication":"Async replication","menu.users":"Users","action.create-topic":"Create Topic","action.drop-topic":"Drop Topic","action.alter-topic":"Alter Topic","action.create-cdc-stream":"Create changefeed","action.create-async-replication":"Create async replication","action.create-user":"Create user","action.create-group":"Create group","action.drop-user":"Drop user","action.drop-group":"Drop group","action.grant-privilege":"Grant privilege","action.revoke-privilege":"Revoke privilege","action.alter-async-replication":"Alter async replication","action.drop-async-replication":"Drop async replication"}'),Ip=(0,Be.g4)("ydb-new-sql",{en:Pp});function Dp(){const e=(e=>{const t=t=>()=>{e(t())};return{createRowTable:t(ep),createColumnTable:t(tp),createAsyncReplication:t(ap),alterAsyncReplication:t(vp),dropAsyncReplication:t(hp),alterTable:t(np),selectQuery:t(sp),upsertQuery:t(ip),createExternalTable:t(lp),dropExternalTable:t(op),createTopic:t(cp),alterTopic:t(dp),dropTopic:t(up),createView:t(mp),dropTable:t(Cp),deleteRows:t(jp),updateTable:t(wp),createUser:t(fp),createGroup:t(bp),createCdcStream:t(xp),grantPrivilege:t(Np),revokePrivilege:t(Ep),dropUser:t(Tp),dropGroup:t(Sp),addTableIndex:t(gp),dropTableIndex:t(yp)}})(Go(n.useCallback((e=>{Zm(e)}),[]))),t=[{text:Ip("menu.tables"),items:[{text:Ip("action.create-row-table"),action:e.createRowTable},{text:Ip("action.create-column-table"),action:e.createColumnTable},{text:Ip("action.create-external-table"),action:e.createExternalTable},{text:Ip("action.upsert-to-table"),action:e.upsertQuery},{text:Ip("action.update-table"),action:e.updateTable},{text:Ip("action.alter-table"),action:e.alterTable},{text:Ip("action.select-rows"),action:e.selectQuery},{text:Ip("action.delete-rows"),action:e.deleteRows},{text:Ip("action.drop-table"),action:e.dropTable},{text:Ip("action.drop-external-table"),action:e.dropExternalTable},{text:Ip("action.add-index"),action:e.addTableIndex},{text:Ip("action.drop-index"),action:e.dropTableIndex}]},{text:Ip("menu.topics"),items:[{text:Ip("action.create-topic"),action:e.createTopic},{text:Ip("action.alter-topic"),action:e.alterTopic},{text:Ip("action.drop-topic"),action:e.dropTopic}]},{text:Ip("menu.replication"),items:[{text:Ip("action.create-async-replication"),action:e.createAsyncReplication},{text:Ip("action.alter-async-replication"),action:e.alterAsyncReplication},{text:Ip("action.drop-async-replication"),action:e.dropAsyncReplication}]},{text:Ip("menu.capture"),items:[{text:Ip("action.create-cdc-stream"),action:e.createCdcStream}]},{text:Ip("menu.users"),items:[{text:Ip("action.create-user"),action:e.createUser},{text:Ip("action.create-group"),action:e.createGroup},{text:Ip("action.drop-user"),action:e.dropUser},{text:Ip("action.drop-group"),action:e.dropGroup},{text:Ip("action.grant-privilege"),action:e.grantPrivilege},{text:Ip("action.revoke-privilege"),action:e.revokePrivilege}]}];return(0,d.jsx)(Do.r,{items:t,renderSwitcher:e=>(0,d.jsxs)(vn.$,{...e,children:[Ip("button.new-sql"),(0,d.jsx)(vn.$.Icon,{children:(0,d.jsx)(Ym.A,{})})]}),popupProps:{placement:"top"}})}const Ap=(0,c.cn)("ydb-query-editor-controls"),_p=({onClick:e,runIsLoading:t})=>{const{changedCurrentSettings:a,changedCurrentSettingsDescriptions:n}=vm(),r=a.length>0?{view:"outlined-info",selected:!0}:null;return(0,d.jsx)(Vm.m,{disabled:0===a.length,content:(0,d.jsx)(Km,{prefix:Ku("gear.tooltip"),querySettings:n}),openDelay:0,placement:["top-start"],children:(0,d.jsxs)(vn.$,{onClick:e,loading:t,className:Ap("gear-button"),...r,children:[(0,d.jsx)(ct.I,{data:Gm.A,size:16}),r?(0,d.jsxs)("div",{className:Ap("changed-settings"),children:["(",a.length,")"]}):null]})})},Rp=({disabled:e,isLoading:t,highlightedAction:a,handleSendExecuteClick:n,onSettingsButtonClick:r,handleGetExplainQueryClick:s})=>{const i=(0,X.N4)(So.Wp),o="execute"===a?"action":void 0,l="explain"===a?"action":void 0,c=e||!i;return(0,d.jsxs)("div",{className:Ap(),children:[(0,d.jsxs)("div",{className:Ap("left"),children:[(0,d.jsxs)(vn.$,{onClick:()=>{n(i)},disabled:c,loading:t,view:o,className:Ap("run-button"),children:[(0,d.jsx)(ct.I,{data:Wm.A,size:14}),"Run"]}),(0,d.jsx)(vn.$,{onClick:()=>{s(i)},disabled:c,loading:t,view:l,children:"Explain"}),(0,d.jsx)(_p,{onClick:r,runIsLoading:t})]}),(0,d.jsxs)("div",{className:Ap("right"),children:[(0,d.jsx)(Dp,{}),(0,d.jsx)(zo,{buttonProps:{disabled:e}})]})]})},kp=(0,c.cn)("kv-divider");const Op=function(){return(0,d.jsx)("div",{className:kp()})},Mp=(0,c.cn)("ydb-query-elapsed-time");function Lp({className:e}){const[,t]=n.useState({}),[a]=n.useState(Date.now()),r=Date.now()-a;n.useEffect((()=>{const e=setInterval((()=>{t({})}),Z.KF);return()=>{clearInterval(e)}}),[]);const s=r>Z.Jg*Z.KF?(0,nt.p0)(r).format("hh:mm:ss"):(0,nt.p0)(r).format("mm:ss");return(0,d.jsx)(Ct.J,{className:Mp(null,e),children:s})}var zp=a(64280),Fp=a(80953);function qp(e){var t;if(function(e){return"object"===typeof e&&null!==e&&"name"in e&&"AbortError"===e.name}(e))return!0;if(function(e){return"object"===typeof e&&null!==e&&"isCancelled"in e}(e)&&e.isCancelled)return!0;const a=(0,Nt.KH)(e);return(0,Nt.We)(a)&&"Query was cancelled"===(null===(t=a.error)||void 0===t?void 0:t.message)}const Up=(0,c.cn)("kv-query-execution-status"),Qp=()=>{const{isIndicatorShown:e,changedLastExecutionSettingsDescriptions:t}=vm();return e?(0,d.jsx)(Vm.m,{openDelay:0,content:(0,d.jsx)(Km,{prefix:Ku("banner.query-settings.message"),querySettings:t}),children:(0,d.jsx)(ct.I,{data:Gi.A,className:Up("query-settings-icon")})}):null},$p=({className:e,error:t,loading:a})=>{let n,r;if(a)n=(0,d.jsx)(Fp.t,{size:"xs"}),r="Running";else if((0,ee.F0)(t)&&"ECONNABORTED"===t.code)n=(0,d.jsx)(ct.I,{data:zp.A}),r="Connection aborted";else if(qp(t))n=(0,d.jsx)(ct.I,{data:st.A}),r="Stopped";else{const e=Boolean(t);n=(0,d.jsx)(ct.I,{data:e?Wi.A:Hi.A,className:Up("result-status-icon",{error:e})}),r=e?"Failed":"Completed"}return(0,d.jsxs)("div",{className:Up(null,e),children:[n,r,qp(t)||a?null:(0,d.jsx)(Qp,{})]})};var Bp=a(66528);const Hp=(0,c.cn)("cancel-query-button");function Gp({isLoading:e,isError:t,onClick:a}){return(0,d.jsxs)(vn.$,{loading:e,onClick:a,className:Hp("stop-button",{error:t}),children:[(0,d.jsx)(ct.I,{data:Bp.A,size:16}),Ku("action.stop")]})}const Wp=(0,c.cn)("ydb-query-duration"),Vp=({duration:e})=>{if(!e)return null;const t=(0,vt.Bi)((0,vt.Jc)(e),1);return(0,d.jsx)("span",{className:Wp(),children:(0,d.jsx)(ka,{className:Wp("item-with-popover"),contentClassName:Wp("popover-content"),text:t,popoverClassName:Wp("popover"),popoverContent:Ku("query-duration.description"),buttonProps:{className:Wp("popover-button")}})})};var Jp=a(55299);const Kp=(0,c.cn)("ydb-query-settings-banner");function Yp(){const{isBannerShown:e,changedLastExecutionSettingsDescriptions:t,closeBanner:a}=vm();return e?(0,d.jsx)(Jp.F,{className:Kp(),theme:"info",align:"baseline",message:(0,d.jsx)(Km,{prefix:Ku("banner.query-settings.message"),querySettings:t}),onClose:a}):null}function Zp(e){return e.replaceAll("\\","\\\\").replaceAll("\n","\\n").replaceAll("\r","\\r").replaceAll("\t","\\t")}var Xp=a(6376);const eh=(0,c.cn)("ydb-query-ast"),th={automaticLayout:!0,selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},wrappingIndent:"indent"};function ah({ast:e,theme:t}){return(0,d.jsx)("div",{className:eh(),children:(0,d.jsx)(Xp.default,{language:"s-expression",value:e,options:th,theme:`vs-${t}`})})}var nh=a(73253);function rh(e){const t=n.useRef(null),a=n.useId(),{data:r,opts:s,shapes:i}=e;return n.useEffect((()=>{const e=t.current;if(!e)return;e.innerHTML="",e.style.setProperty("width","100vw"),e.style.setProperty("height","100vh");const a=(0,nh.og)(e.id,r,s,i);return a.render(),e.style.setProperty("width","100%"),e.style.setProperty("height","100%"),()=>{a.destroy()}}),[r,s,i]),(0,d.jsx)("div",{id:a,ref:t,style:{overflow:"auto"}})}const sh={renderNodeTitle:e=>{const t=e.name.split("|");return t.length>1?t[1]:e.name},textOverflow:"normal",initialZoomFitsCanvas:!0},ih={node:nh.SO};function oh(e){return(0,d.jsx)(rh,{...e,opts:sh,shapes:ih})}const lh=JSON.parse('{"description.graph-is-not-supported":"Graph can not be rendered","description.empty-result":"There is no {{activeSection}} for the request","action.result":"Result","action.stats":"Stats","action.schema":"Schema","action.explain-plan":"Explain Plan","action.json":"JSON","action.ast":"AST","action.copy":"Copy {{activeSection}}","trace":"Trace","title.truncated":"Truncated","title.result":"Result","tooltip_actions":"Actions","text_open-execution-plan":"Open Execution Plan","text_open-execution-plan_description":"New tab","text_download":"Download Execution Plan","text_download_description":"SVG","text_diagnostics":"Download Diagnostics","text_diagnostics_description":"JSON","text_error-plan-svg":"Error: {{error}}"}'),ch=(0,Be.g4)("ydb-execute-result",{en:lh}),dh=(0,c.cn)("ydb-query-result-stub-message");function uh({message:e}){return(0,d.jsx)("div",{className:dh(null),children:e})}const mh=(0,c.cn)("ydb-query-explain-graph");function ph({explain:e={},theme:t}){const{links:a,nodes:n}=e;return a&&n&&n.length?(0,d.jsx)("div",{className:mh("canvas-container"),children:(0,d.jsx)(oh,{data:{links:a,nodes:n}},t)}):(0,d.jsx)(uh,{message:ch("description.graph-is-not-supported")})}var hh=a(7450);const vh=(0,c.cn)("query-info-dropdown");var gh=a(112),yh=a(92159);const xh=H.F.injectEndpoints({endpoints:e=>({planToSvgQuery:e.query({queryFn:async({plan:e,database:t},{signal:a})=>{try{return{data:await window.api.viewer.planToSvg({database:t,plan:e},{signal:a})}}catch(n){return{error:n}}}})}),overrideExisting:"throw"}),bh=JSON.parse('{"unknown-error":"An unknown error occurred"}'),fh=(0,Be.g4)("ydb-errors",{en:bh});function jh(e,t){const a=document.createElement("a");a.href=e,a.download=t,document.body.appendChild(a),a.click(),document.body.removeChild(a)}function Sh({title:e,description:t}){return(0,d.jsxs)("div",{className:vh("menu-item-content"),children:[(0,d.jsx)(it.E,{variant:"body-1",children:e}),(0,d.jsx)(it.E,{variant:"body-1",color:"secondary",children:t})]})}function Th({queryResultsInfo:e,database:t,hasPlanToSvg:a,error:r}){const[s,i]=n.useState(null),[o,{isLoading:l}]=xh.useLazyPlanToSvgQueryQuery();n.useEffect((()=>()=>{s&&URL.revokeObjectURL(s)}),[s]);return{isLoading:l,items:n.useMemo((()=>{const n=[],l=e.plan;if(l&&a){const e=()=>s?Promise.resolve(s):o({plan:l,database:t}).unwrap().then((e=>{const t=new Blob([e],{type:"image/svg+xml"}),a=URL.createObjectURL(t);return i(a),a})).catch((e=>{const t=function(e){if("string"===typeof e)return e;if(!e)return fh("unknown-error");if((0,ee.TX)(e))return e.message;if("object"===typeof e&&"data"in e){var t;const a=e;if(null!==(t=a.data)&&void 0!==t&&t.message)return a.data.message;if("string"===typeof a.data)return a.data}return e instanceof Error?e.message:JSON.stringify(e)}(e);return ht({title:ch("text_error-plan-svg",{error:t}),name:"plan-svg-error",type:"error"}),null})),a=()=>{e().then((e=>{e&&window.open(e,"_blank")}))},r=()=>{e().then((e=>{e&&jh(e,"query-plan.svg")}))};n.push([{text:(0,d.jsx)(Sh,{title:ch("text_open-execution-plan"),description:ch("text_open-execution-plan_description")}),icon:(0,d.jsx)(gh.A,{className:vh("icon")}),action:a,className:vh("menu-item")},{text:(0,d.jsx)(Sh,{title:ch("text_download"),description:ch("text_download_description")}),icon:(0,d.jsx)(yh.A,{className:vh("icon")}),action:r,className:vh("menu-item")}])}if(e){const a=()=>{const a=r?(0,Nt.KH)(r):void 0,n={...e,database:t,...a&&{error:a}},s=new Blob([JSON.stringify(n,null,2)],{type:"application/json"}),i=URL.createObjectURL(s);jh(i,`query-diagnostics-${(new Date).getTime()}.json`),URL.revokeObjectURL(i)};n.push([{text:(0,d.jsx)(Sh,{title:ch("text_diagnostics"),description:ch("text_diagnostics_description")}),icon:(0,d.jsx)(yh.A,{className:vh("icon")}),action:a,className:vh("menu-item")}])}return n}),[e,a,s,o,t,r])}}function Nh({queryResultsInfo:e,database:t,hasPlanToSvg:a,error:n}){const{isLoading:r,items:s}=Th({queryResultsInfo:e,database:t,hasPlanToSvg:a,error:n});return s.length?(0,d.jsx)(Do.r,{popupProps:{placement:["bottom-end","left"]},switcherWrapperClassName:vh("query-info-switcher-wrapper"),renderSwitcher:e=>(0,d.jsx)(lt.m,{title:ch("tooltip_actions"),children:(0,d.jsx)(vn.$,{view:"flat-secondary",loading:r,disabled:r,...e,children:(0,d.jsx)(vn.$.Icon,{children:(0,d.jsx)(hh.A,{})})})}),items:s,size:"xl"}):null}const Eh=(0,c.cn)("ydb-query-json-viewer");function wh({data:e}){const t=Pn(e);return(0,d.jsx)("div",{className:Eh(),children:(0,d.jsx)("div",{className:Eh("tree"),children:(0,d.jsx)(mr,{value:t})})})}var Ch=a(89954);const Ph=(0,c.cn)("ydb-query-result-error ");function Ih({error:e}){const t=(0,Nt.KH)(e);return!t||qp(e)?null:(0,ee.TX)(e)?(0,d.jsx)("div",{className:Ph("message"),children:e.message}):"object"===typeof t?(0,d.jsx)(Ch.O,{data:t}):(0,d.jsx)("div",{className:Ph("message"),children:t})}const Dh=(0,c.cn)("ydb-query-result-sets-viewer");function Ah(e){const{selectedResultSet:t,setSelectedResultSet:a,resultSets:n,error:r}=e,s=(null===n||void 0===n?void 0:n.length)||0,i=null===n||void 0===n?void 0:n[t];return(0,d.jsxs)("div",{className:Dh("result-wrapper"),children:[(()=>{if(s>1){const e=(0,Rs._e)(s).map((e=>{var t;return{id:String(e),title:`Result #${e+1}${null!==n&&void 0!==n&&null!==(t=n[e])&&void 0!==t&&t.truncated?" (T)":""}`}}));return(0,d.jsx)("div",{children:(0,d.jsx)(ne.t,{className:Dh("tabs"),size:"l",items:e,activeTab:String(t),onSelectTab:e=>a(Number(e))})})}return null})(),e.error?(0,d.jsx)(Ih,{error:r}):null,i?(0,d.jsxs)("div",{className:Dh("result"),children:[(()=>{var e;return(0,d.jsxs)("div",{className:Dh("head"),children:[(0,d.jsx)(it.E,{variant:"subheader-3",children:null!==i&&void 0!==i&&i.truncated?ch("title.truncated"):ch("title.result")}),null!==i&&void 0!==i&&i.result?(0,d.jsx)(it.E,{color:"secondary",variant:"body-2",className:Dh("row-count"),children:`(${null===i||void 0===i?void 0:i.result.length}${null!==(e=i.streamMetrics)&&void 0!==e&&e.rowsPerSecond?`, ${i.streamMetrics.rowsPerSecond.toFixed(0)} rows/s`:""})`}):null]})})(),(0,d.jsx)(Qm,{settings:e.tableSettings,data:i.result,columns:i.columns})]}):null]})}var _h=a(36590),Rh=a(79737),kh=a(79685);const Oh=(0,c.cn)("ydb-query-simplified-plan");function Mh({value:e,formatter:t}){if(!(0,ks.kf)(e))return;const a=t(Number(e));return(0,d.jsx)("div",{className:Oh("metrics-cell"),children:a})}var Lh=a(33705);const zh={Table:"var(--g-color-text-info)",Predicate:"var(--g-color-text-positive)",Condition:"var(--g-color-text-utility)"};function Fh(e){return e in zh?zh[e]:"var(--g-color-text-secondary)"}function qh(e={}){const t=[],a=Object.entries(e);if(1===a.length){const e=a[0][1],n=Fh(a[0][0]);t.push((0,d.jsx)("span",{style:{color:n},children:(0,he.vN)(e)},"param"))}else{const a=function(e){const t=[],{Table:a,Predicate:n,Condition:r,...s}=e;return a&&t.push(["Table",a]),n&&t.push(["Predicate",n]),r&&t.push(["Condition",r]),t.concat(Object.entries(s))}(e);for(let e=0;e<a.length;e++){const[n,r]=a[e],s=Fh(n);e>0&&t.push(", "),t.push((0,d.jsxs)("span",{style:{color:s},children:[n,": ",(0,he.vN)(r)]},e))}}return t}function Uh({params:e}){return e?(0,d.jsxs)("span",{className:Oh("operation-params"),children:["(",qh(e),")"]}):null}function Qh({modifiers:e,left:t}){return(0,d.jsx)("div",{className:Oh("divider",e),style:{left:t}})}function $h({row:e,depth:t=0,params:a}){const{name:r,operationParams:s,lines:i=""}=a,o=e.getLeafRows().length>0&&e.getIsExpanded(),l=n.useMemo((()=>function(e,t){const a=e.split(".").map(Number),n=[];for(let r=0;r<a.length;r++)r===a.length-1&&0!==r&&(a[r]?n.push((0,d.jsx)(Qh,{modifiers:{horizontal:!0},left:10+25*(r-1)},"last")):n.push((0,d.jsx)(Qh,{modifiers:{last:!0},left:9+25*(r-1)},"last"))),r===a.length-1&&t&&n.push((0,d.jsx)(Qh,{modifiers:{first:!0},left:9+25*r},"first")),a[r]&&n.push((0,d.jsx)(Qh,{left:9+25*(r-1)},r));return n}(i,o)),[i,o]);return(0,d.jsxs)("div",{style:{paddingLeft:25*t},className:Oh("operation-name"),children:[l,(0,d.jsxs)(ot.s,{gap:1,alignItems:"center",className:Oh("operation-content"),children:[e.getCanExpand()&&(0,d.jsx)(vn.$,{view:"flat",size:"xs",onClick:e.getToggleExpandedHandler(),children:(0,d.jsx)(vn.$.Icon,{children:(0,d.jsx)(Lh.I,{direction:e.getIsExpanded()?"bottom":"right",size:14})})}),(0,d.jsx)("div",{className:Oh("operation-name-content"),children:(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:Oh("operation-name"),children:r}),"\xa0",(0,d.jsx)(Uh,{params:s})]})})]})]})}function Bh(e){return(0,d.jsx)(Mh,{value:e.getValue(),formatter:e=>e<1e8?(0,kh.p)(e).format():(0,ks.z0)(e,1)})}const Hh=[{accessorKey:"name",accessorFn:function(e){return{name:e.name,operationParams:e.operationParams,lines:e.lines}},header:()=>(0,d.jsx)(Rh.A,{children:"Operation"}),size:600,cell:e=>(0,d.jsx)($h,{row:e.row,depth:e.row.depth,params:e.getValue()})},{accessorKey:"aCpu",header:()=>(0,d.jsx)(Rh.A,{children:"A-Cpu"}),size:90,minSize:90,cell:function(e){return(0,d.jsx)(Mh,{value:e.getValue(),formatter:e=>(0,vt.Xo)(Math.round(e))})},meta:{align:"right",verticalAlign:"top"}},{accessorKey:"aRows",header:()=>(0,d.jsx)(Rh.A,{children:"A-Rows"}),size:90,minSize:90,cell:Bh,meta:{align:"right",verticalAlign:"top"}},{accessorKey:"eCost",header:()=>(0,d.jsx)(Rh.A,{children:"E-Cost"}),size:90,minSize:90,cell:Bh,meta:{align:"right",verticalAlign:"top"}},{accessorKey:"eRows",header:()=>(0,d.jsx)(Rh.A,{children:"E-Rows"}),size:90,minSize:90,cell:Bh,meta:{align:"right",verticalAlign:"top"}},{accessorKey:"eSize",header:()=>(0,d.jsx)(Rh.A,{children:"E-Size"}),size:90,minSize:90,cell:Bh,meta:{align:"right",verticalAlign:"top"}}];function Gh({plan:e}){const t=n.useMemo((()=>function(e,t=""){if(!e)return[];const a=[{items:e,prefix:t,parentIndex:-1,parentArray:[]}],n=[];for(;a.length>0;){const{items:e,prefix:t,parentIndex:r,parentArray:s}=a.pop(),i=[];for(let n=0;n<e.length;n++){const r={...e[n]},s=n<e.length-1?1:0;let o=`${t}.${s}`;t||(o=String(s)),r.lines=o,i.push(r),r.children&&a.push({items:r.children,prefix:o,parentIndex:n,parentArray:i})}-1===r?n.push(...i):s[r].children=i}return n}(e)),[e]),[a,r]=n.useState(!0),s=(0,_h.K)({columns:Hh,data:t,getSubRows:e=>e.children,enableExpanding:!0,onExpandedChange:r,state:{expanded:a},enableColumnResizing:!0,columnResizeMode:"onChange"});return(0,d.jsx)(Rh.X,{wrapperClassName:Oh(),table:s,stickyHeader:!0,width:"max"})}function Wh({traceId:e}){const{traceView:t}=(0,xi.Zd)(),a=null!==t&&void 0!==t&&t.url?(n=t.url,r={traceId:e},n.replace(/\${(\w+)}/g,((e,t)=>r[t]||e))):"";var n,r;return a?(0,d.jsxs)(vn.$,{view:"flat-info",href:a,target:"_blank",children:[ch("trace"),(0,d.jsx)(vn.$.Icon,{children:(0,d.jsx)(gh.A,{})})]}):null}const Vh=(0,c.cn)("ydb-query-result"),Jh="result",Kh="schema",Yh="simplified",Zh="json",Xh="stats",ev="ast",tv={get result(){return ch("action.result")},get schema(){return ch("action.schema")},get simplified(){return ch("action.explain-plan")},get json(){return ch("action.json")},get stats(){return ch("action.stats")},get ast(){return ch("action.ast")}},av=["result","schema","simplified","stats"],nv=["schema","json","simplified","ast"];function rv({result:e,resultType:t="execute",isResultsCollapsed:a,theme:r,tenantName:s,queryText:i,isCancelling:l,isCancelError:c,tableSettings:u,onCancelRunningQuery:m,onCollapseResults:p,onExpandResults:h}){const v=(0,X.YQ)(),g="execute"===t,y="explain"===t,[x,b]=n.useState(0),[f,j]=n.useState((()=>g?Jh:Kh)),[S]=(0,X.iK)(Z.lr),{error:T,isLoading:N,data:E={}}=e,{preparedPlan:w,simplifiedPlan:C,stats:P,resultSets:I,ast:D}=E;n.useEffect((()=>{"execute"!==t||av.includes(f)||j("result"),"explain"!==t||nv.includes(f)||j("schema")}),[f,t]);const A=n.useMemo((()=>{let e=[];return g?e=av:y&&(e=nv),e.map((e=>({value:e,content:tv[e]})))}),[g,y]);n.useEffect((()=>()=>{v((0,Nm.sM)())}),[v]);const _=e=>{j(e)},R=()=>{switch(f){case Jh:{var e;const t=null===E||void 0===E||null===(e=E.resultSets)||void 0===e?void 0:e[x],a=function(e){if(null===e||void 0===e||!e.length)return"";const t=Object.keys(e[0]),a=[t.map(Zp).join("\t")];for(const n of e){const e=[];for(const a of t){const t=n[a];e.push(Zp("object"===typeof t?JSON.stringify(t):`${t}`))}a.push(e.join("\t"))}return a.join("\n")}(null===t||void 0===t?void 0:t.result);return a}case Zh:return null===w||void 0===w?void 0:w.pristine;case Yh:return null===C||void 0===C?void 0:C.pristine;case Xh:return P;case ev:return D;default:return}},k=()=>{if(N)return null;const e=R(),t=(0,he.vN)(e);return t?(0,d.jsx)(pn.b,{text:t,view:"flat-secondary",title:ch("action.copy",{activeSection:f})}):null},O=()=>(0,d.jsx)(uh,{message:ch("description.empty-result",{activeSection:tv[f]})});return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsxs)("div",{className:Vh("controls"),children:[(0,d.jsxs)("div",{className:Vh("controls-left"),children:[(0,d.jsx)($p,{error:T,loading:N}),!T&&!N&&(0,d.jsxs)(n.Fragment,{children:[(0,Rs.f8)(null===P||void 0===P?void 0:P.DurationUs)?(0,d.jsx)(Vp,{duration:Number(P.DurationUs)}):null,A.length&&f?(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(Op,{}),(0,d.jsx)(gu.a,{options:A,value:f,onUpdate:_})]}):null]}),N?(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(Lp,{className:Vh("elapsed-time")}),(0,d.jsx)(Gp,{isLoading:l,isError:c,onClick:m})]}):null,null!==E&&void 0!==E&&E.traceId&&g?(0,d.jsx)(Wh,{traceId:E.traceId}):null]}),(0,d.jsxs)("div",{className:Vh("controls-right"),children:[N||qp(T)?null:(0,d.jsx)(Nh,{queryResultsInfo:{queryText:i,ast:E.ast,stats:E.stats,plan:E.plan},error:T,database:s,hasPlanToSvg:Boolean((null===E||void 0===E?void 0:E.plan)&&S&&g)}),k(),(0,d.jsx)(Em,{}),(0,d.jsx)(Sm,{onCollapse:p,onExpand:h,isCollapsed:a,initialDirection:"bottom"})]})]}),N||qp(T)?null:(0,d.jsx)(Yp,{}),(0,d.jsx)(o.r,{loading:N&&!E.resultSets,children:(0,d.jsx)(Rm,{className:Vh("result"),children:(()=>{return f===Jh?(0,d.jsx)(Ah,{resultSets:I,error:T,selectedResultSet:x,tableSettings:u,setSelectedResultSet:b}):T?(0,d.jsx)(Ih,{error:T}):f===Kh?null!==w&&void 0!==w&&null!==(e=w.nodes)&&void 0!==e&&e.length?(0,d.jsx)(ph,{theme:r,explain:w}):O():f===Zh?null!==w&&void 0!==w&&w.pristine?(0,d.jsx)(wh,{data:null===w||void 0===w?void 0:w.pristine}):O():f===Yh?null!==C&&void 0!==C&&null!==(t=C.plan)&&void 0!==t&&t.length?(0,d.jsx)(Gh,{plan:C.plan}):O():f===Xh?P?(0,d.jsx)(wh,{data:P}):O():f===ev?D?(0,d.jsx)(ah,{ast:D,theme:r}):O():null;var e,t})()})})]})}var sv=a(16122),iv=a(23971);const ov=()=>-1,lv=(0,c.cn)("ydb-query-settings-select");function cv(e){return(0,d.jsx)("div",{className:lv("selector"),children:(0,d.jsx)(le.l,{id:e.id,disabled:e.disabled,options:e.settingOptions,value:[e.setting],onUpdate:t=>{e.onUpdateSetting(t[0])},getOptionHeight:ov,popupClassName:lv("popup"),renderOption:e=>(0,d.jsxs)("div",{className:lv("item",{type:e.value}),children:[(0,d.jsxs)("div",{className:lv("item-title"),children:[e.content,e.isDefault?sm("description.default"):""]}),e.text&&(0,d.jsx)("span",{className:lv("item-description"),children:e.text})]}),width:"max"})})}const dv=(0,c.cn)("ydb-query-settings-dialog");function uv(){const e=(0,X.YQ)(),t=(0,X.N4)(Ao.xM),[a,r]=(0,X.XS)(),s=n.useCallback((()=>{e((0,Ao.NJ)("idle"))}),[e]),i=n.useCallback((e=>{r(e),s()}),[s,r]);return(0,d.jsxs)(Hn.l,{open:"settings"===t,size:"s",onClose:s,className:dv(),hasCloseButton:!1,children:[(0,d.jsx)(Hn.l.Header,{caption:sm("action.settings")}),(0,d.jsx)(mv,{initialValues:a,onSubmit:i,onClose:s})]})}function mv({initialValues:e,onSubmit:t,onClose:a}){const{control:r,handleSubmit:s,formState:{errors:i}}=(0,iv.mN)({defaultValues:e,resolver:(0,sv.u)(Nt.id)}),[o]=(0,X.iK)(Z.lr),l=(0,ie.Oi)();return(0,d.jsxs)("form",{onSubmit:s(t),children:[(0,d.jsxs)(Hn.l.Body,{className:dv("dialog-body"),children:[(0,d.jsxs)(ot.s,{direction:"row",alignItems:"flex-start",className:dv("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"queryMode",className:dv("field-title"),children:dm.queryMode.title}),(0,d.jsx)("div",{className:dv("control-wrapper",{queryMode:!0}),children:(0,d.jsx)(iv.xI,{name:"queryMode",control:r,render:({field:e})=>(0,d.jsx)(cv,{id:"queryMode",setting:e.value,onUpdateSetting:e.onChange,settingOptions:dm.queryMode.options})})})]}),(0,d.jsxs)(ot.s,{direction:"row",alignItems:"flex-start",className:dv("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"timeout",className:dv("field-title"),children:dm.timeout.title}),(0,d.jsx)("div",{className:dv("control-wrapper"),children:(0,d.jsx)(iv.xI,{name:"timeout",control:r,render:({field:e})=>{var t,a;return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(qn.k,{id:"timeout",type:"number",...e,value:null===(t=e.value)||void 0===t?void 0:t.toString(),className:dv("timeout"),placeholder:"60",validationState:i.timeout?"invalid":void 0,errorMessage:null===(a=i.timeout)||void 0===a?void 0:a.message,errorPlacement:"inside"}),(0,d.jsx)("span",{className:dv("timeout-suffix"),children:sm("form.timeout.seconds")})]})}})})]}),l&&(0,d.jsxs)(ot.s,{direction:"row",alignItems:"flex-start",className:dv("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"tracingLevel",className:dv("field-title"),children:dm.tracingLevel.title}),(0,d.jsx)("div",{className:dv("control-wrapper"),children:(0,d.jsx)(iv.xI,{name:"tracingLevel",control:r,render:({field:e})=>(0,d.jsx)(cv,{id:"tracingLevel",setting:e.value,onUpdateSetting:e.onChange,settingOptions:dm.tracingLevel.options})})})]}),(0,d.jsxs)(ot.s,{direction:"row",alignItems:"flex-start",className:dv("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"transactionMode",className:dv("field-title"),children:dm.transactionMode.title}),(0,d.jsx)("div",{className:dv("control-wrapper",{transactionMode:!0}),children:(0,d.jsx)(iv.xI,{name:"transactionMode",control:r,render:({field:e})=>(0,d.jsx)(cv,{id:"transactionMode",setting:e.value,onUpdateSetting:e.onChange,settingOptions:dm.transactionMode.options})})})]}),(0,d.jsxs)(ot.s,{direction:"row",alignItems:"flex-start",className:dv("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"statisticsMode",className:dv("field-title"),children:dm.statisticsMode.title}),(0,d.jsx)(Vm.m,{className:dv("statistics-mode-tooltip"),disabled:!o,openDelay:0,content:sm("tooltip_plan-to-svg-statistics"),children:(0,d.jsx)("div",{className:dv("control-wrapper",{statisticsMode:!0}),children:(0,d.jsx)(iv.xI,{name:"statisticsMode",control:r,render:({field:e})=>(0,d.jsx)(cv,{id:"statisticsMode",disabled:o,setting:e.value,onUpdateSetting:e.onChange,settingOptions:dm.statisticsMode.options})})})})]}),(0,d.jsxs)(ot.s,{direction:"row",alignItems:"flex-start",className:dv("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"limitRows",className:dv("field-title"),children:dm.limitRows.title}),(0,d.jsx)("div",{className:dv("control-wrapper"),children:(0,d.jsx)(iv.xI,{name:"limitRows",control:r,render:({field:e})=>{var t,a;return(0,d.jsx)(qn.k,{id:"limitRows",type:"number",...e,value:null===(t=e.value)||void 0===t?void 0:t.toString(),className:dv("limit-rows"),placeholder:"10000",validationState:i.limitRows?"invalid":void 0,errorMessage:null===(a=i.limitRows)||void 0===a?void 0:a.message,errorPlacement:"inside"})}})})]})]}),(0,d.jsx)(Hn.l.Footer,{textButtonApply:sm("button-done"),textButtonCancel:sm("button-cancel"),onClickButtonCancel:a,propsButtonApply:{type:"submit"},renderButtons:(e,t)=>(0,d.jsxs)("div",{className:dv("buttons-container"),children:[(0,d.jsx)(Al.N,{href:"https://ydb.tech/docs",target:"_blank",className:dv("documentation-link"),children:sm("docs")}),(0,d.jsxs)("div",{className:dv("main-buttons"),children:[t,e]})]})})]})}var pv=a(52400);const hv=(0,a(99006)._)((async()=>({Editor:(await Promise.resolve().then(a.bind(a,6376))).default})),"Editor");var vv=a(41614),gv=a(67913);const yv=JSON.parse('{"context_syntax-error":"Syntax error"}'),xv=(0,Be.g4)("ydb-monaco",{en:yv}),bv=(0,Xu.debounce)((function(){var e;const t=null===(e=window.ydbEditor)||void 0===e?void 0:e.getModel();if(!t)return void console.error("unable to retrieve model when highlighting errors");const a=(0,vv.kh)(t.getValue()).errors;if(!a.length)return void jv();const n=a.map((e=>({message:xv("context_syntax-error"),source:e.message,severity:gv.MarkerSeverity.Error,startLineNumber:e.startLine,startColumn:e.startColumn+1,endLineNumber:e.endLine,endColumn:e.endColumn+1})));gv.editor.setModelMarkers(t,"ydb",n)}),500);function fv(){const e=(t=bv,n.useEffect((()=>()=>{t.cancel()}),[t]),t);var t;return n.useCallback((()=>{jv(),e()}),[e])}function jv(){gv.editor.removeAllMarkers("ydb")}const Sv=H.F.injectEndpoints({endpoints:e=>({getCodeAssistSuggestions:e.query({queryFn:async e=>{try{if(window.api.codeAssist){return{data:await window.api.codeAssist.getCodeAssistSuggestions(e)}}throw new Error("Method is not implemented.")}catch{return{data:{items:[]}}}}}),acceptSuggestion:e.mutation({queryFn:async e=>{try{if(window.api.codeAssist){return{data:await window.api.codeAssist.sendCodeAssistTelemetry({Accepted:{AcceptedText:e.acceptedText,ConvertedText:e.acceptedText,Timestamp:Date.now(),RequestId:e.requestId}})}}throw new Error("Method is not implemented.")}catch(t){return{error:t}}}}),discardSuggestion:e.mutation({queryFn:async e=>{try{if(window.api.codeAssist){return{data:await window.api.codeAssist.sendCodeAssistTelemetry({Discarded:{RequestId:e.requestId,Timestamp:Date.now(),DiscardReason:"OnCancel",DiscardedText:e.suggestionText,CacheHitCount:e.hitCount}})}}throw new Error("Method is not implemented.")}catch(t){return{error:t}}}}),ignoreSuggestion:e.mutation({queryFn:async e=>{try{if(window.api.codeAssist){return{data:await window.api.codeAssist.sendCodeAssistTelemetry({Ignored:{RequestId:e.requestId,Timestamp:Date.now(),IgnoredText:e.suggestionText}})}}throw new Error("Method is not implemented.")}catch(t){return{error:t}}}}),sendUserQueriesData:e.mutation({queryFn:async e=>{try{if(window.api.codeAssist){return{data:await window.api.codeAssist.sendCodeAssistOpenTabs(e)}}throw new Error("Method is not implemented.")}catch(t){return{error:t}}}})}),overrideExisting:"throw"}),Tv={automaticLayout:!0,selectOnLineNumbers:!0,minimap:{enabled:!1},fixedOverflowWidgets:!0};const Nv="navigation";function Ev({changeUserInput:e,theme:t,handleSendExecuteClick:a,handleGetExplainQueryClick:r}){const s=(0,X.N4)(So.Wp),i=(0,X.YQ)(),[o,l]=n.useState(),c=(0,X.N4)(So.py),[u]=(0,X.iK)(Z.bz),m=function(){const[e]=(0,X.iK)(Z.LK),[t]=(0,X.iK)(Z.IO);return n.useMemo((()=>{const a=Boolean(e);return{quickSuggestions:a,suggestOnTriggerCharacters:a,acceptSuggestionOnEnter:t?"on":"off",...Tv}}),[e,t])}(),p=fv(),[h]=(0,X.iK)(Z.zk),v=(0,X.A5)((()=>c&&0!==c.length?c[c.length-1].queryText:"")),g=(0,X.A5)((()=>{h===Nt.x5.explain?r(s):a(s)})),{monacoGhostConfig:y,prepareUserQueriesCache:x}=function(){const[e]=Sv.useLazyGetCodeAssistSuggestionsQuery(),[t]=Sv.useAcceptSuggestionMutation(),[a]=Sv.useDiscardSuggestionMutation(),[r]=Sv.useIgnoreSuggestionMutation(),[s]=Sv.useSendUserQueriesDataMutation(),i=(0,X.N4)(So.py),o=_o(),l=n.useCallback((async t=>e(t).unwrap()),[e]),c=n.useCallback((async e=>t(e).unwrap()),[t]),d=n.useCallback((async e=>a(e).unwrap()),[a]),u=n.useCallback((async e=>r(e).unwrap()),[r]),m=n.useMemo((()=>[...i.map(((e,t)=>({name:`query${t}.yql`,text:e.queryText}))),...o.map((e=>({name:e.name,text:e.body})))]),[i,o]);return{prepareUserQueriesCache:n.useCallback((async()=>{const e=m.map(((e,t)=>({FileName:e.name||`query${t}.yql`,Text:e.text})));try{return await s(e).unwrap()}catch{return{items:[]}}}),[s,m]),monacoGhostConfig:n.useMemo((()=>({api:{getCodeAssistSuggestions:l},eventHandlers:{onCompletionAccept:c,onCompletionDecline:d,onCompletionIgnore:u},config:{language:"yql"}})),[l,c,d,u])}}();n.useEffect((()=>(o&&u&&(o.register(y),x()),()=>{null===o||void 0===o||o.unregister()})),[u,y,o,x]);return(0,d.jsx)(hv,{language:"yql",value:s,options:m,onChange:t=>{p(),e({input:t})},editorDidMount:(e,t)=>{window.ydbEditor=e;const n=function(e){const{KeyMod:t,KeyCode:a}=e,n=t.CtrlCmd;return{sendQuery:n|a.Enter,sendSelectedQuery:n|t.Shift|e.KeyCode.Enter,selectPreviousQuery:n|a.UpArrow,selectNextQuery:n|a.DownArrow,saveQuery:n|a.KeyS,saveSelectedQuery:n|t.Shift|a.KeyS}}(t);t.editor.registerCommand("insertSnippetToEditor",((t,a)=>{const n=e.getContribution("snippetController2");n&&(e.focus(),e.setValue(""),n.insert(a))})),window.api.codeAssist&&l((0,pv._z)(e)),function(e){const t=ge()((()=>{e.layout()}),100);e.layout(),window.addEventListener("resize",t),e.onDidDispose((()=>{window.removeEventListener("resize",t)}))}(e),function(e,t){wv(e.getValue(),t()),e.onDidChangeModelContent((()=>{wv(e.getValue(),t())})),e.onDidDispose((()=>{window.onbeforeunload=null}))}(e,v),e.focus(),e.addAction({id:"sendQuery",label:Ku("action.send-query"),keybindings:[n.sendQuery],precondition:void 0,keybindingContext:void 0,contextMenuGroupId:Nv,contextMenuOrder:1,run:()=>g()});const r=e.createContextKey("canSendSelectedText",!1);e.onDidChangeCursorSelection((({selection:e,secondarySelections:t})=>{const a=e.selectionStartLineNumber!==e.positionLineNumber||e.selectionStartColumn!==e.positionColumn,n=t.length>0;r.set(a&&!n)})),e.addAction({id:"sendSelectedQuery",label:Ku("action.send-selected-query"),keybindings:[n.sendSelectedQuery],precondition:"canSendSelectedText",contextMenuGroupId:Nv,contextMenuOrder:1,run:e=>{const t=e.getSelection(),n=e.getModel();if(t&&n){const e=n.getValueInRange({startLineNumber:t.getSelectionStart().lineNumber,startColumn:t.getSelectionStart().column,endLineNumber:t.getPosition().lineNumber,endColumn:t.getPosition().column});a(e,!0)}}}),e.addAction({id:"previous-query",label:Ku("action.previous-query"),keybindings:[n.selectPreviousQuery],contextMenuGroupId:Nv,contextMenuOrder:2,run:()=>{i((0,So.JK)())}}),e.addAction({id:"next-query",label:Ku("action.next-query"),keybindings:[n.selectNextQuery],contextMenuGroupId:Nv,contextMenuOrder:3,run:()=>{i((0,So.tS)())}}),e.addAction({id:"save-query",label:Ku("action.save-query"),keybindings:[n.saveQuery],run:()=>{To.Ay.show(qo)}})},theme:`vs-${t}`,editorWillUnmount:()=>{window.ydbEditor=void 0}})}function wv(e,t){const a=!!e&&e!==t;window.onbeforeunload=a?e=>{e.preventDefault(),e.returnValue=""}:null}const Cv=(0,c.cn)("query-editor"),Pv={triggerExpand:!1,triggerCollapse:!1,collapsed:!0};function Iv(e){const t=(0,X.YQ)(),{tenantName:a,path:r,type:s,theme:i,changeUserInput:o}=e,l=(0,X.N4)(So.yJ),c=(0,X.N4)(So.wf),u=(0,X.N4)(So.py),m=(0,X.N4)(So.Kz),p=(0,X.N4)(Y.Ab),v=Boolean(c),[g]=(0,X.XS)(),y=(0,ie.Oi)(),[x,b]=pm(),{resetBanner:f}=vm(),[j,S]=(0,X.iK)(Z.zk),[T,N]=n.useState(""),[E]=(0,X.iK)(Z.kO),w=(0,ie.j2)()&&E,[C]=So.JO.useUseSendQueryMutation(),[P]=So.JO.useUseStreamQueryMutation(),[I,D]=tm.useCancelQueryMutation(),A=n.useRef(null),_=n.useMemo((()=>w?{displayIndices:{maxIndex:(g.limitRows||Nt.jU.limitRows)+1}}:void 0),[w,g.limitRows]);n.useEffect((()=>{l!==a&&t((0,So.Id)(a))}),[t,a,l]);const[R,k]=n.useReducer(fm(Z.GV),Pv);n.useEffect((()=>{k(ym.triggerCollapse)}),[]),n.useEffect((()=>{k(p||v?ym.triggerExpand:ym.triggerCollapse)}),[p,v]);const O=(0,X.A5)(((e,n)=>{S(Nt.x5.execute),N(e),(0,Xu.isEqual)(x,g)||(f(),b(g));const r=(0,em.A)();var s;(A.current=w?P({actionType:"execute",query:e,database:a,querySettings:g,enableTracingLevel:y,queryId:r}):C({actionType:"execute",query:e,database:a,querySettings:g,enableTracingLevel:y,queryId:r}),t((0,Y.o)(!1)),n)||e!==(null===(s=u[m])||void 0===s?void 0:s.queryText)&&t((0,So.nO)({queryText:e,queryId:r}));k(ym.triggerExpand)})),M=()=>{t((0,Ao.NJ)("settings"))},L=(0,X.A5)((e=>{S(Nt.x5.explain),N(e),(0,Xu.isEqual)(x,g)||(f(),b(g));const n=(0,em.A)();A.current=C({actionType:"explain",query:e,database:a,querySettings:g,enableTracingLevel:y,queryId:n}),t((0,Y.o)(!1)),k(ym.triggerExpand)})),z=n.useCallback((()=>{w&&A.current?A.current.abort():null!==c&&void 0!==c&&c.queryId&&I({queryId:null===c||void 0===c?void 0:c.queryId,database:a})}),[w,null===c||void 0===c?void 0:c.queryId,I,a]);return(0,d.jsxs)("div",{className:Cv(),children:[(0,d.jsxs)(h,{direction:"vertical",defaultSizePaneKey:Z.l_,triggerCollapse:R.triggerCollapse,triggerExpand:R.triggerExpand,minSize:[0,52],collapsedSizes:[100,0],onSplitStartDragAdditional:()=>{k(ym.clear)},children:[(0,d.jsxs)("div",{className:Cv("pane-wrapper",{top:!0}),children:[(0,d.jsx)("div",{className:Cv("monaco-wrapper"),children:(0,d.jsx)("div",{className:Cv("monaco"),children:(0,d.jsx)(Ev,{changeUserInput:o,theme:i,handleSendExecuteClick:O,handleGetExplainQueryClick:L})})}),(0,d.jsx)(Rp,{handleSendExecuteClick:O,onSettingsButtonClick:M,isLoading:Boolean(null===c||void 0===c?void 0:c.isLoading),handleGetExplainQueryClick:L,highlightedAction:j})]}),(0,d.jsx)("div",{className:Cv("pane-wrapper"),children:(0,d.jsx)(Dv,{resultVisibilityState:R,onExpandResultHandler:()=>{k(ym.triggerExpand)},onCollapseResultHandler:()=>{k(ym.triggerCollapse)},type:s,theme:i,result:c,cancelQueryResponse:D,tenantName:a,path:r,showPreview:p,queryText:T,onCancelRunningQuery:z,tableSettings:_},null===c||void 0===c?void 0:c.queryId)})]}),(0,d.jsx)(uv,{})]})}function Dv({resultVisibilityState:e,cancelQueryResponse:t,onExpandResultHandler:a,onCollapseResultHandler:n,type:r,theme:s,result:i,tenantName:o,path:l,showPreview:c,queryText:u,tableSettings:m,onCancelRunningQuery:p}){return c?(0,d.jsx)(Hm,{database:o,path:l,type:r}):i?(0,d.jsx)(rv,{result:i,resultType:null===i||void 0===i?void 0:i.type,theme:s,tenantName:o,isResultsCollapsed:e.collapsed,isCancelError:Boolean(null===t||void 0===t?void 0:t.error),isCancelling:Boolean(null===t||void 0===t?void 0:t.isLoading),tableSettings:m,onExpandResults:a,onCollapseResults:n,queryText:u,onCancelRunningQuery:p}):null}const Av=[{id:ae.tQ.newQuery,title:Ku("tabs.newQuery")},{id:ae.tQ.history,title:Ku("tabs.history")},{id:ae.tQ.saved,title:Ku("tabs.saved")}],_v=({className:e,activeTab:t})=>{const a=(0,$r.zy)(),n=(0,ye.mA)(a);return(0,d.jsx)("div",{className:e,children:(0,d.jsx)(ne.t,{size:"l",allowNotSelected:!0,activeTab:t,items:Av,wrapTo:({id:e},t)=>{const a=(0,ra.YL)({...n,[ra.vh.queryTab]:e});return(0,d.jsx)(yo.E,{to:a,children:t},e)}})})};var Rv=a(65872),kv=a(64470);const Ov=(0,c.cn)("ydb-saved-queries"),Mv=({visible:e,queryName:t,onCancelClick:a,onConfirmClick:n})=>(0,d.jsxs)(Hn.l,{open:e,hasCloseButton:!1,size:"s",onClose:a,onEnterKeyDown:n,children:[(0,d.jsx)(Hn.l.Header,{caption:Ku("delete-dialog.header")}),(0,d.jsxs)(Hn.l.Body,{className:Ov("dialog-body"),children:[Ku("delete-dialog.question"),(0,d.jsx)("span",{className:Ov("dialog-query-name"),children:` ${t}?`})]}),(0,d.jsx)(Hn.l.Footer,{textButtonApply:Ku("delete-dialog.delete"),textButtonCancel:Ku("delete-dialog.cancel"),onClickButtonCancel:a,onClickButtonApply:n})]}),Lv=({changeUserInput:e})=>{const t=_o(),a=(0,X.YQ)(),r=(0,X.N4)(Ao.cu),[s,i]=n.useState(!1),[o,l]=n.useState(""),c=()=>{i(!1),l("")},u=Go(n.useCallback((({queryText:t,queryName:n})=>{e({input:t}),a((0,Ao.JP)(n)),a((0,oe.sH)(ae.tQ.newQuery))}),[e,a])),m=[{name:"name",header:"Name",render:({row:e})=>(0,d.jsx)("div",{className:Ov("query-name"),children:e.name}),width:200},{name:"body",header:"Query Text",render:({row:e})=>{return(0,d.jsxs)("div",{className:Ov("query"),children:[(0,d.jsx)("div",{className:Ov("query-body"),children:(0,d.jsx)(Vo,{value:e.body,maxQueryHeight:6})}),(0,d.jsxs)("span",{className:Ov("controls"),children:[(0,d.jsx)(vn.$,{view:"flat-secondary",children:(0,d.jsx)(ct.I,{data:Rv.A})}),(0,d.jsx)(vn.$,{view:"flat-secondary",onClick:(t=e.name,e=>{e.stopPropagation(),i(!0),l(t)}),children:(0,d.jsx)(ct.I,{data:kv.A})})]})]});var t},sortable:!1,resizeMinWidth:650}];return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsxs)(qe.L,{className:Ov(),children:[(0,d.jsx)(qe.L.Controls,{children:(0,d.jsx)($e.v,{onChange:e=>{a((0,Ao.ys)(e))},placeholder:Ku("filter.text.placeholder"),className:Ov("search")})}),(0,d.jsx)(qe.L.Table,{children:(0,d.jsx)(Fe.l,{columnsWidthLSKey:"savedQueriesTableColumnsWidth",columns:m,data:t,settings:Yo,emptyDataMessage:Ku(r?"history.empty-search":"saved.empty"),rowClassName:()=>Ov("row"),onRowClick:e=>u({queryText:e.body,queryName:e.name}),initialSortOrder:{columnId:"name",order:Rt.Ay.ASCENDING}})})]}),(0,d.jsx)(Mv,{visible:s,queryName:o,onCancelClick:()=>{c()},onConfirmClick:()=>{c(),a((0,Ao.fu)(o)),l("")}})]})},zv=(0,c.cn)("ydb-query"),Fv=e=>{const t=(0,X.YQ)(),{queryTab:a=ae.tQ.newQuery}=(0,X.N4)((e=>e.tenant)),s=e=>{t((0,So.iZ)(e))},i=n.useMemo((()=>Av.find((({id:e})=>e===a))),[a]);return(0,d.jsxs)("div",{className:zv(),children:[i?(0,d.jsx)(r.mg,{children:(0,d.jsx)("title",{children:i.title})}):null,(0,d.jsx)(_v,{className:zv("tabs"),activeTab:a}),(0,d.jsx)("div",{className:zv("content"),children:(()=>{switch(a){case ae.tQ.newQuery:return(0,d.jsx)(Iv,{changeUserInput:s,...e});case ae.tQ.history:return(0,d.jsx)(Zu,{changeUserInput:s});case ae.tQ.saved:return(0,d.jsx)(Lv,{changeUserInput:s});default:return null}})()})]})};var qv=a(46649),Uv=a(93844);const Qv=["query","diagnostics"],$v={query:qv.A,diagnostics:Uv.A};const Bv=(0,c.cn)("ydb-tenant-navigation"),Hv=({id:e,title:t,icon:a})=>({value:e,content:(0,d.jsxs)("span",{className:Bv("item"),children:[(0,d.jsx)(ct.I,{data:a,size:16,className:Bv("icon")}),(0,d.jsx)("span",{className:Bv("text"),children:t})]})}),Gv=()=>{const e=function(){const e=(0,$r.W6)(),t=(0,$r.zy)(),a=(0,ye.mA)(t),[,r]=(0,X.iK)(Z.Mt),{tenantPage:s}=(0,X.N4)((e=>e.tenant)),i=n.useMemo((()=>{if(t.pathname!==ye.Ay.tenant)return[];const n=Qv.map((t=>{const n=ae.Dg[t],i=(0,ra.YL)({...a,[ae.Dt]:n});return{id:n,title:Cs(`pages.${t}`),icon:$v[t],path:i,current:s===n,onForward:()=>{r(n),e.push(i)}}}));return n}),[s,r,t.pathname,e,a]);return i}();return(0,d.jsx)("div",{className:Bv(),children:(0,d.jsx)(gu.a,{width:"auto",onUpdate:t=>{const a=e.find((e=>e.id===t));null===a||void 0===a||a.onForward()},size:"l",className:Bv("body"),value:(e.find((e=>e.current))||e[0]).id,options:e.map(Hv)})})},Wv=(0,c.cn)("object-general");const Vv=function(e){const t=(0,te.i)(),{tenantPage:a}=(0,X.N4)((e=>e.tenant));return(0,d.jsxs)("div",{className:Wv(),children:[(0,d.jsx)(Gv,{}),(()=>{const{type:n,additionalTenantProps:r,additionalNodesProps:s,tenantName:i,path:o}=e;return a===ae.Dg.query?(0,d.jsx)(Fv,{tenantName:i,path:o,theme:t,type:n}):(0,d.jsx)(Vu,{type:n,tenantName:i,path:o,additionalTenantProps:r,additionalNodesProps:s})})()]})};var Jv=a(40336),Kv=a(1956);const Yv=H.F.injectEndpoints({endpoints:e=>({getSchemaAcl:e.query({queryFn:async({path:e,database:t},{signal:a})=>{try{const n=await window.api.viewer.getSchemaAcl({path:e,database:t},{signal:a});return{data:{acl:n.Common.ACL,effectiveAcl:n.Common.EffectiveACL,owner:n.Common.Owner,interruptInheritance:n.Common.InterruptInheritance}}}catch(n){return{error:n}}},providesTags:["SchemaTree"]})}),overrideExisting:"throw"}),Zv=JSON.parse('{"title_rights":"Access Rights","title_effective-rights":"Effective Access Rights","title_owner":"Owner","title_interupt-inheritance":"Interrupt inheritance","description_empty":"No Acl data"}'),Xv=(0,Be.g4)("ydb-acl",{en:Zv}),eg=(0,c.cn)("ydb-acl"),tg=["access","type","inheritance"],ag={access:"Access",type:"Access type",inheritance:"Inheritance type"},ng=new Set(["Object","Container"]);function rg({value:e}){const t="string"===typeof e?[e]:e;return(0,d.jsx)("div",{className:eg("definition-content"),children:t.map((e=>(0,d.jsx)("span",{children:e},e)))})}function sg(e){if(!e||!e.length)return[];const t=function(e){return e.map((e=>{const{AccessRules:t=[],AccessRights:a=[],AccessType:n,InheritanceType:r,Subject:s}=e,i=t.concat(a),o="Allow"===n?void 0:n;let l;return((null===r||void 0===r?void 0:r.length)!==ng.size||r.some((e=>!ng.has(e))))&&(l=r),{access:i.length?i:void 0,type:o,inheritance:l,Subject:s}}))}(e);return t.map((({Subject:e,...t})=>{const a=Object.entries(t).filter((([e,t])=>Boolean(t)));return 1===a.length&&"access"===a[0][0]?{name:e,content:(0,d.jsx)(rg,{value:a[0][1]}),multilineName:!0}:{label:(0,d.jsx)("span",{className:eg("group-label"),children:e}),items:tg.map((e=>{const a=t[e];if(a)return{name:ag[e],content:(0,d.jsx)(rg,{value:a}),multilineName:!0}})).filter(Rs.f8)}}))}const ig=({path:e,database:t})=>{const{currentData:a,isFetching:r,error:s}=Yv.useGetSchemaAclQuery({path:e,database:t}),i=r&&!a,{acl:o,effectiveAcl:l,owner:c,interruptInheritance:u}=a||{},m=sg(o),p=sg(l),h=function(e){const t=(a=e,a&&a.endsWith("@staff")&&!a.startsWith("svc_")?a.split("@")[0]:a);var a;return t?[{name:t,content:Xv("title_owner"),multilineName:!0}]:[]}(c),v=u?[{name:Xv("title_interupt-inheritance"),content:(0,d.jsx)(ct.I,{data:Kv.A,size:20}),multilineName:!0}]:[];if(i)return(0,d.jsx)(ue.a,{});if(s)return(0,d.jsx)(de.o,{error:s});if(!o&&!c&&!l)return(0,d.jsx)(n.Fragment,{children:Xv("description_empty")});const g=h.concat(m);return(0,d.jsxs)("div",{className:eg(),children:[(0,d.jsx)(og,{items:v}),(0,d.jsx)(og,{items:g,title:Xv("title_rights")}),(0,d.jsx)(og,{items:p,title:Xv("title_effective-rights")})]})};function og({items:e,title:t}){return e.length?(0,d.jsxs)(n.Fragment,{children:[t&&(0,d.jsx)("div",{className:eg("list-title"),children:t}),(0,d.jsx)(Kr.u,{items:e,nameMaxWidth:200,className:eg("result",{"no-title":!t}),responsive:!0})]}):null}var lg=a(87285);const cg=(e,t,a)=>{const{setActivePath:n}=a;return{openPreview:()=>{t(H.F.util.invalidateTags(["PreviewData"])),t((0,Y.o)(!0)),t((0,oe.es)(ae.Dg.query)),t((0,oe.sH)(ae.tQ.newQuery)),n(e)}}},dg=(e,t)=>(0,d.jsx)(vn.$,{view:"flat-secondary",onClick:e.openPreview,title:Cs("actions.openPreview"),size:t||"s",children:(0,d.jsx)(ct.I,{data:lg.A})}),ug=(e,t,a)=>(n,r)=>{const s=cg(n,e,t),i=dg(s,a);return{async_replication:void 0,database:void 0,directory:void 0,table:i,column_table:i,index_table:void 0,topic:void 0,stream:void 0,index:void 0,external_table:i,external_data_source:void 0,view:i}[r]},mg=(e,t,a)=>(n,r)=>{const s=cg(n,e,t);return{preview:dg(s,a)}[r]};var pg=a(57949),hg=a(1064);const vg=5*Z.KF,gg=H.F.injectEndpoints({endpoints:e=>({getTableSchemaData:e.query({queryFn:async({path:e,tenantName:t,type:a},{dispatch:n})=>{try{if(B(a)){const a=await n(wt.endpoints.getViewSchema.initiate({database:t,path:e,timeout:vg}));if((0,Nt.We)(a))return{error:a};return{data:aa(a.data)}}const r=await n(G.endpoints.getOverview.initiate({path:e,database:t,timeout:vg}));return{data:ta(a,r.data)}}catch(r){return{error:r}}}})})});var yg=a(51016),xg=a(49917),bg=a(32133),fg=a.n(bg);function jg(e,t){const a=e.replace(/^\/+|\/+$/g,""),n=t.replace(/^\/+|\/+$/g,"");if(!a.startsWith(n))return a||"/";if(a===n)return`/${a}`;let r=a.slice(n.length);return r=r.replace(/^\/+/,"")||"/",r}function Sg(e,t){return t===x.EPathTypeDir&&(2===e.split("/").length&&e.startsWith("/"))}const Tg=({text:e,action:t,isLoading:a})=>({text:(0,d.jsxs)(ot.s,{justifyContent:"space-between",alignItems:"center",children:[e,a&&(0,d.jsx)(Fp.t,{size:"xs"})]}),action:t,disabled:a}),Ng=(e,t,a="")=>(n,r)=>{const s=((e,t,a)=>{const{setActivePath:n,showCreateDirectoryDialog:r,getConfirmation:s,getConnectToDBDialog:i,schemaData:o}=a,l=a=>()=>{const r=()=>{t((0,oe.es)(ae.Dg.query)),t((0,oe.sH)(ae.tQ.newQuery)),n(e.path),Zm(a({...e,schemaData:o}))};s?s().then((e=>{e&&r()})):r()};return{createDirectory:r?()=>{r(e.path)}:void 0,getConnectToDBDialog:()=>null===i||void 0===i?void 0:i({database:e.path}),createTable:l(ep),createColumnTable:l(tp),createAsyncReplication:l(ap),alterAsyncReplication:l(vp),dropAsyncReplication:l(hp),alterTable:l(np),dropTable:l(Cp),manageAutoPartitioning:l(rp),selectQuery:l(sp),upsertQuery:l(ip),createExternalTable:l(lp),dropExternalTable:l(op),selectQueryFromExternalTable:l(sp),createTopic:l(cp),alterTopic:l(dp),dropTopic:l(up),createView:l(mp),dropView:l(pp),dropIndex:l(yp),addTableIndex:l(gp),createCdcStream:l(xp),copyPath:()=>{try{fg()(e.relativePath),ht({name:"Copied",title:Cs("actions.copied"),type:"success"})}catch{ht({name:"Not copied",title:Cs("actions.notCopied"),type:"error"})}}}})({path:n,relativePath:jg(n,a),tenantName:a,type:r},e,t),i={text:Cs("actions.copyPath"),action:s.copyPath,iconEnd:(0,d.jsx)(yg.A,{})},o={text:Cs("actions.connectToDB"),action:s.getConnectToDBDialog,iconEnd:(0,d.jsx)(xg.A,{})},l=[{text:Cs("actions.createTable"),action:s.createTable},{text:Cs("actions.createColumnTable"),action:s.createColumnTable},{text:Cs("actions.createAsyncReplication"),action:s.createAsyncReplication},{text:Cs("actions.createTopic"),action:s.createTopic},{text:Cs("actions.createView"),action:s.createView}],c={text:Cs("actions.alterTable"),items:[{text:Cs("actions.manageColumns"),action:s.alterTable},{text:Cs("actions.manageAutoPartitioning"),action:s.manageAutoPartitioning}]},u=[[i,o],l],m=[[i],l];if(s.createDirectory){const e={text:Cs("actions.createDirectory"),action:s.createDirectory};u.splice(1,0,[e]),m.splice(1,0,[e])}const p=[[i],[c,{text:Cs("actions.dropTable"),action:s.dropTable},Tg({text:Cs("actions.selectQuery"),action:s.selectQuery,isLoading:t.isSchemaDataLoading}),Tg({text:Cs("actions.upsertQuery"),action:s.upsertQuery,isLoading:t.isSchemaDataLoading}),{text:Cs("actions.addTableIndex"),action:s.addTableIndex},{text:Cs("actions.createCdcStream"),action:s.createCdcStream}]],h=[[i],[c,{text:Cs("actions.dropTable"),action:s.dropTable},{text:Cs("actions.selectQuery"),action:s.selectQuery},{text:Cs("actions.upsertQuery"),action:s.upsertQuery}]],v=[[i],[{text:Cs("actions.alterTopic"),action:s.alterTopic},{text:Cs("actions.dropTopic"),action:s.dropTopic}]],g=[[i],[{text:Cs("actions.selectQuery"),action:s.selectQueryFromExternalTable}],[{text:Cs("actions.dropTable"),action:s.dropExternalTable}]],y=[[i],[{text:Cs("actions.createExternalTable"),action:s.createExternalTable}]],x=[[i],[{text:Cs("actions.selectQuery"),action:s.selectQuery}],[{text:Cs("actions.dropView"),action:s.dropView}]],b=[i];return{async_replication:[[i],[{text:Cs("actions.alterReplication"),action:s.alterAsyncReplication},{text:Cs("actions.dropReplication"),action:s.dropAsyncReplication}]],database:u,directory:m,table:p,column_table:h,index_table:b,topic:v,stream:b,index:[[i,{text:Cs("actions.dropIndex"),action:s.dropIndex}]],external_table:g,external_data_source:y,view:x}[r]},Eg=(0,c.cn)("ydb-schema-create-directory-dialog"),wg="relativePath";function Cg({open:e,onClose:t,database:a,parentPath:r,onSuccess:s}){const[i,o]=n.useState(""),[l,c]=n.useState(""),[u,m]=Y.sM.useCreateDirectoryMutation(),p=()=>{o(""),m.reset()},h=()=>{t(),c(""),p()};return(0,d.jsxs)(Hn.l,{open:e,onClose:h,size:"s",children:[(0,d.jsx)(Hn.l.Header,{caption:Cs("schema.tree.dialog.header")}),(0,d.jsxs)("form",{onSubmit:e=>{e.preventDefault();const t=(n=l)?/\s/.test(n)?Cs("schema.tree.dialog.whitespace"):"":Cs("schema.tree.dialog.empty");var n;o(t),t||u({database:a,path:`${r}/${l}`}).unwrap().then((()=>{h(),s(l)}))},children:[(0,d.jsxs)(Hn.l.Body,{children:[(0,d.jsxs)("label",{htmlFor:wg,className:Eg("label"),children:[(0,d.jsx)("span",{className:Eg("description"),children:Cs("schema.tree.dialog.description")}),`${r}/`]}),(0,d.jsx)("div",{className:Eg("input-wrapper"),children:(0,d.jsx)(qn.k,{placeholder:Cs("schema.tree.dialog.placeholder"),value:l,onUpdate:e=>{c(e),p()},autoFocus:!0,hasClear:!0,autoComplete:!1,disabled:m.isLoading,validationState:i?"invalid":void 0,id:wg,errorMessage:i})}),m.isError&&(0,d.jsx)(de.o,{error:m.error,defaultMessage:Cs("schema.tree.dialog.invalid")})]}),(0,d.jsx)(Hn.l.Footer,{loading:m.isLoading,textButtonApply:Cs("schema.tree.dialog.buttonApply"),textButtonCancel:Cs("schema.tree.dialog.buttonCancel"),onClickButtonCancel:h,propsButtonApply:{type:"submit"}})]})]})}const Pg=n.createContext(void 0),Ig=n.createContext(void 0);function Dg({children:e}){const[t,a]=n.useState("");return(0,d.jsx)(Pg.Provider,{value:t,children:(0,d.jsx)(Ig.Provider,{value:a,children:e})})}function Ag(){const e=n.useContext(Ig);if(void 0===e)throw new Error("useDispatchTreeKey must be used within a TreeKeyProvider");return e}function _g(e){const t=(0,ie.Ii)(),{rootPath:a,rootName:r,rootType:s,currentPath:i,onActivePathUpdate:o}=e,l=(0,X.YQ)(),c=(0,X.N4)(So.Wp),[u,{currentData:m,isFetching:p}]=gg.useLazyGetTableSchemaDataQuery(),[h,v]=(0,X.XS)(),[g,y]=n.useState(!1),[x,b]=n.useState(""),f=Ag(),j=function(){const e=n.useContext(Pg);if(void 0===e)throw new Error("useTreeKey must be used within a TreeKeyProvider");return e}(),S=Sg(a,s)?"database":E(s);n.useEffect((()=>{null!==i&&void 0!==i&&i.startsWith(a)||o(a)}),[i,o,a]);const T=e=>{b(e),y(!0)},w=n.useMemo((()=>Ng(l,{setActivePath:o,updateQueryExecutionSettings:e=>v({...h,...e}),showCreateDirectoryDialog:t?T:void 0,getConfirmation:c?Ho:void 0,getConnectToDBDialog:hg.S,schemaData:m,isSchemaDataLoading:p},a)),[m,t,l,c,p,o,h,a,v]);return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(Cg,{onClose:()=>{y(!1)},open:g,database:a,parentPath:x,onSuccess:e=>{const t=`${x}/${e}`;o(t),f(t)}}),(0,d.jsx)(pg.F,{rootState:{path:a,name:r,type:S,collapsed:!1},fetchPath:async e=>{let t;for(;;){const n=l(Y.sM.endpoints.getSchema.initiate({path:e,database:a},{forceRefetch:!0})),{data:r,originalArgs:s}=await n;if(n.unsubscribe(),(null===s||void 0===s?void 0:s.path)===e){t=null===r||void 0===r?void 0:r[e];break}}if(!t)throw new Error(`no describe data about path ${e}`);const{PathDescription:{Children:n=[]}={}}=t;return n.map((e=>{const{Name:t="",PathType:a,PathSubType:n,ChildrenExist:r}=e,s=U(a,n)||(0,Rs.f8)(r)&&!r;return{name:t,type:E(a,n),expandable:!s}}))},getActions:w,onActionsOpenToggle:({path:e,type:t,isOpen:n})=>{const r=N[t];return n&&r&&u({path:e,tenantName:a,type:r}),[]},renderAdditionalNodeElements:ug(l,{setActivePath:o}),activePath:i,onActivePathUpdate:o,cache:!1,virtualize:!0},j)]})}const Rg=JSON.parse('{"title_navigation":"Navigation","field_source-type":"Source Type","field_data-source":"Data Source","action_copySchemaPath":"Copy schema path","action_openInDiagnostics":"Open in Diagnostics","field_type":"Type","field_subtype":"SubType","field_id":"Id","field_version":"Version","field_created":"Created","field_data-size":"Data size","field_row-count":"Row count","field_partitions":"Partitions count","field_paths":"Paths","field_shards":"Shards","field_state":"State","field_mode":"Mode","field_format":"Format","field_retention":"Retention"}'),kg=(0,Be.g4)("ydb-object-summary",{en:Rg}),Og=(0,c.cn)("ydb-object-summary");function Mg({tenantName:e,path:t}){var a;const{data:n={},isLoading:r}=(0,Y.Tn)({path:e,database:e}),i=null===n||void 0===n||null===(a=n.PathDescription)||void 0===a?void 0:a.Self,[,o]=(0,s.useQueryParam)("schema",s.StringParam);return!i&&r?(0,d.jsx)("div",{children:(0,d.jsx)(ue.a,{})}):(0,d.jsxs)("div",{className:Og("tree-wrapper"),children:[(0,d.jsx)("div",{className:Og("tree-header"),children:kg("title_navigation")}),(0,d.jsx)("div",{className:Og("tree"),children:i?(0,d.jsx)(_g,{rootPath:e,rootName:i.Name||e,rootType:i.PathType,currentPath:t,onActivePathUpdate:o}):null})]})}var Lg=a(16963);function zg(){const e=(0,X.YQ)(),{diagnosticsTab:t,tenantPage:a}=(0,X.N4)((e=>e.tenant)),n=a===ae.Dg.diagnostics&&t===ae.iJ.schema;return(0,d.jsx)("div",{children:!n&&(0,d.jsx)(vn.$,{title:kg("action_openInDiagnostics"),onClick:()=>{e((0,oe.es)(ae.Dg.diagnostics)),e((0,oe.WO)(ae.iJ.schema))},size:"s",children:(0,d.jsx)(ct.I,{data:Lg.A,size:14})})})}var Fg=a(8873),qg=a(97091);function Ug(){const e=Ag(),t=(0,X.YQ)();return(0,d.jsx)(lt.m,{title:"Refresh",children:(0,d.jsx)(vn.$,{className:Og("refresh-button"),view:"flat-secondary",onClick:()=>{e((0,qg.Ak)()),t(H.F.util.invalidateTags(["SchemaTree"]))},children:(0,d.jsx)(ct.I,{data:Fg.A})})})}const Qg=()=>({triggerExpand:!1,triggerCollapse:!1,collapsed:Boolean(localStorage.getItem(Z.hh))});function $g({type:e,subType:t,tenantName:a,path:r,onCollapseSummary:i,onExpandSummary:o,isCollapsed:l}){var c;const u=(0,X.YQ)(),[,m]=(0,s.useQueryParam)("schema",s.StringParam),[p,v]=n.useReducer(fm(Z.hh),void 0,Qg),{summaryTab:g=ae.ml.overview}=(0,X.N4)((e=>e.tenant)),y=(0,$r.zy)(),f=Aa().parse(y.search,{ignoreQueryPrefix:!0}),{currentData:j}=G.useGetOverviewQuery({path:r,database:a}),S=null===j||void 0===j||null===(c=j.PathDescription)||void 0===c?void 0:c.Self;n.useEffect((()=>{const t=D(e);!e||t||ra.x$.find((e=>e.id===g))||u((0,oe.Mj)(ae.ml.overview))}),[u,e,g]);const T=()=>{const t=D(e)?[...ra.x$,...ra.nb]:ra.x$;return(0,d.jsx)("div",{className:Og("tabs"),children:(0,d.jsxs)(ot.s,{className:Og("tabs-inner"),justifyContent:"space-between",alignItems:"center",children:[(0,d.jsx)(ne.t,{size:"l",items:t,activeTab:g,wrapTo:({id:e},t)=>{const a=(0,ra.YL)({...f,[ra.vh.summaryTab]:e});return(0,d.jsx)(re.N_,{to:a,className:Og("tab"),children:t},e)},allowNotSelected:!0}),g===ae.ml.schema&&(0,d.jsx)(zg,{})]})})},N=()=>{switch(g){case ae.ml.acl:return(0,d.jsx)(ig,{path:r,database:a});case ae.ml.schema:return(0,d.jsx)(na,{type:e,path:r,tenantName:a});default:return(()=>{var e;if(!S)return;const{CreateStep:t,PathType:a,PathSubType:s,PathId:i,PathVersion:o}=S,l=[],c=Sg(r,a)?"Domain":null===a||void 0===a?void 0:a.replace(/^EPathType/,"");l.push({name:kg("field_type"),content:c}),s!==b.EPathSubTypeEmpty&&l.push({name:kg("field_subtype"),content:null===s||void 0===s?void 0:s.replace(/^EPathSubType/,"")}),l.push({name:kg("field_id"),content:i}),l.push({name:kg("field_version"),content:o}),l.push({name:kg("field_created"),content:(0,he.r6)(t)});const{PathDescription:u}=j;if(null!==u&&void 0!==u&&u.TableStats){const{DataSize:e,RowCount:t}=u.TableStats;l.push({name:kg("field_data-size"),content:Sr(e)},{name:kg("field_row-count"),content:(0,he.ZV)(t)})}const m=()=>{var e;const{PathsInside:t,ShardsInside:a,PathsLimit:n,ShardsLimit:r}=null!==(e=null===u||void 0===u?void 0:u.DomainDescription)&&void 0!==e?e:{};let s=(0,he.ZV)(t),i=(0,he.ZV)(a);return s&&n&&(s=`${s} / ${(0,he.ZV)(n)}`),i&&r&&(i=`${i} / ${(0,he.ZV)(r)}`),[{name:kg("field_paths"),content:s},{name:kg("field_shards"),content:i}]},p={[x.EPathTypeInvalid]:void 0,[x.EPathTypeDir]:void 0,[x.EPathTypeTable]:()=>{var e;return[{name:kg("field_partitions"),content:null===u||void 0===u||null===(e=u.TablePartitions)||void 0===e?void 0:e.length}]},[x.EPathTypeSubDomain]:m,[x.EPathTypeTableIndex]:void 0,[x.EPathTypeExtSubDomain]:m,[x.EPathTypeColumnStore]:()=>{var e,t;return[{name:kg("field_partitions"),content:null===u||void 0===u||null===(e=u.ColumnStoreDescription)||void 0===e||null===(t=e.ColumnShards)||void 0===t?void 0:t.length}]},[x.EPathTypeColumnTable]:()=>{var e,t,a;return[{name:kg("field_partitions"),content:null===u||void 0===u||null===(e=u.ColumnTableDescription)||void 0===e||null===(t=e.Sharding)||void 0===t||null===(a=t.ColumnShards)||void 0===a?void 0:a.length}]},[x.EPathTypeCdcStream]:()=>{const{Mode:e,Format:t}=(null===u||void 0===u?void 0:u.CdcStreamDescription)||{};return[{name:kg("field_mode"),content:null===e||void 0===e?void 0:e.replace(/^ECdcStreamMode/,"")},{name:kg("field_format"),content:null===t||void 0===t?void 0:t.replace(/^ECdcStreamFormat/,"")}]},[x.EPathTypePersQueueGroup]:()=>{var e,t,a;const n=null===u||void 0===u?void 0:u.PersQueueGroup,r=null===n||void 0===n||null===(e=n.PQTabletConfig)||void 0===e||null===(t=e.PartitionConfig)||void 0===t?void 0:t.LifetimeSeconds;return[{name:kg("field_partitions"),content:null===n||void 0===n||null===(a=n.Partitions)||void 0===a?void 0:a.length},{name:kg("field_retention"),content:r&&(0,he.Pt)(r)}]},[x.EPathTypeExternalTable]:()=>{var e,t;const a=(0,ye.Ow)({...f,schema:null===u||void 0===u||null===(e=u.ExternalTableDescription)||void 0===e?void 0:e.DataSourcePath}),{SourceType:n,DataSourcePath:r}=(null===u||void 0===u?void 0:u.ExternalTableDescription)||{},s=(null===r||void 0===r||null===(t=r.match(/([^/]*)\/*$/))||void 0===t?void 0:t[1])||"";return[{name:kg("field_source-type"),content:n},{name:kg("field_data-source"),content:r&&(0,d.jsx)("span",{title:r,children:(0,d.jsx)(Br.K,{title:s||"",url:a})})}]},[x.EPathTypeExternalDataSource]:()=>{var e;return[{name:kg("field_source-type"),content:null===u||void 0===u||null===(e=u.ExternalDataSourceDescription)||void 0===e?void 0:e.SourceType}]},[x.EPathTypeView]:void 0,[x.EPathTypeReplication]:()=>{var e;const t=null===u||void 0===u||null===(e=u.ReplicationDescription)||void 0===e?void 0:e.State;return t?[{name:kg("field_state"),content:(0,d.jsx)(is,{state:t})}]:[]}},h=a&&(null===(e=p[a])||void 0===e?void 0:e.call(p))||[];l.push(...h);const v=l.filter((e=>e.content)).map((e=>({...e,content:(0,d.jsx)("div",{className:Og("overview-item-content"),children:e.content})})));return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)("div",{className:Og("overview-title"),children:(0,d.jsx)(Ps,{data:u})}),(0,d.jsx)(Jv.u,{responsive:!0,children:v.map((e=>(0,d.jsx)(Jv.u.Item,{name:e.name,children:e.content},e.name)))})]})})()}},E=()=>{v(ym.triggerCollapse)},w=()=>{v(ym.triggerExpand)},C=()=>{v(ym.clear)},P=jg(r,a),I=()=>{const a=D(e)&&!_(t);return(0,d.jsxs)(n.Fragment,{children:[a&&mg(u,{setActivePath:m},"m")(r,"preview"),(0,d.jsx)(pn.b,{text:P,view:"flat-secondary",title:kg("action_copySchemaPath")}),(0,d.jsx)(Sm,{onCollapse:E,onExpand:w,isCollapsed:p.collapsed,initialDirection:"bottom"})]})},A=()=>{const{Status:t,Reason:a}=null!==j&&void 0!==j?j:{};if(e){let t=e.replace("EPathType","");return Sg(r,e)&&(t="domain"),(0,d.jsx)("div",{className:Og("entity-type"),children:t})}let n;return t&&a&&(n=`${t}: ${a}`),(0,d.jsx)("div",{className:Og("entity-type",{error:!0}),children:(0,d.jsx)(Ra.B,{content:n,offset:{left:0}})})};return(0,d.jsx)(Dg,{children:(0,d.jsxs)("div",{className:Og(),children:[(0,d.jsx)("div",{className:Og({hidden:l}),children:(0,d.jsxs)(h,{direction:"vertical",defaultSizePaneKey:Z.ED,onSplitStartDragAdditional:C,triggerCollapse:p.triggerCollapse,triggerExpand:p.triggerExpand,minSize:[200,52],collapsedSizes:[100,0],children:[(0,d.jsx)(Mg,{tenantName:a,path:r}),(0,d.jsxs)("div",{className:Og("info"),children:[(0,d.jsxs)("div",{className:Og("sticky-top"),children:[(0,d.jsxs)("div",{className:Og("info-header"),children:[(0,d.jsxs)("div",{className:Og("info-title"),children:[A(),(0,d.jsx)("div",{className:Og("path-name"),children:P})]}),(0,d.jsx)("div",{className:Og("info-controls"),children:I()})]}),T()]}),(0,d.jsx)("div",{className:Og("overview-wrapper"),children:N()})]})]})}),(0,d.jsxs)(ot.s,{className:Og("actions"),gap:.5,children:[!l&&(0,d.jsx)(Ug,{}),(0,d.jsx)(Sm,{onCollapse:i,onExpand:o,isCollapsed:l,initialDirection:"left"})]})]})})}const Bg=(0,c.cn)("tenant-page"),Hg=()=>({triggerExpand:!1,triggerCollapse:!1,collapsed:Boolean(localStorage.getItem(Z.jX))});function Gg(e){var t,l,c,u,m,p,g,y,x,b;const[f,j]=n.useReducer(fm(Z.jX),void 0,Hg),[{database:S,name:T,schema:N},E]=(0,s.useQueryParams)({database:s.StringParam,name:s.StringParam,schema:s.StringParam});n.useEffect((()=>{T&&!S&&E({database:T,name:void 0},"replaceIn")}),[S,T,E]);const w=null!==S&&void 0!==S?S:T;if(!w)throw new Error("Tenant name is not defined");const C=n.useRef();n.useEffect((()=>{if(C.current!==w){(async()=>{const{registerYQLCompletionItemProvider:e}=await a.e(245).then(a.bind(a,50245));e(w)})().catch(console.error),C.current=w}}),[w]);const P=(0,X.YQ)();n.useEffect((()=>{P((0,v.g)("tenant",{tenantName:w}))}),[w,P]);const I=null!==N&&void 0!==N?N:w,{currentData:D,error:A,isLoading:_}=G.useGetOverviewQuery({path:I,database:w}),R=(0,X.N4)((e=>(0,Y.Tp)(e,I,w))),k=null!==(t=null===D||void 0===D||null===(l=D.PathDescription)||void 0===l||null===(c=l.Self)||void 0===c?void 0:c.PathType)&&void 0!==t?t:null===R||void 0===R||null===(u=R.PathDescription)||void 0===u||null===(m=u.Self)||void 0===m?void 0:m.PathType,O=null!==(p=null===D||void 0===D||null===(g=D.PathDescription)||void 0===g||null===(y=g.Self)||void 0===y?void 0:y.PathSubType)&&void 0!==p?p:null===R||void 0===R||null===(x=R.PathDescription)||void 0===x||null===(b=x.Self)||void 0===b?void 0:b.PathSubType,M=(0,ee.Pq)(A),[L,z]=n.useState(!0);L&&!_&&z(!1);const F=I||Cs("page.title");return(0,d.jsxs)("div",{className:Bg(),children:[(0,d.jsx)(r.mg,{defaultTitle:`${F} \u2014 YDB Monitoring`,titleTemplate:`%s \u2014 ${F} \u2014 YDB Monitoring`}),(0,d.jsx)(o.r,{loading:L,children:(0,d.jsx)(i.A,{error:M?A:void 0,children:(0,d.jsxs)(h,{defaultSizePaneKey:Z.jQ,defaultSizes:[25,75],triggerCollapse:f.triggerCollapse,triggerExpand:f.triggerExpand,minSize:[36,200],onSplitStartDragAdditional:()=>{j(ym.clear)},children:[(0,d.jsx)($g,{type:k,subType:O,tenantName:w,path:I,onCollapseSummary:()=>{j(ym.triggerCollapse)},onExpandSummary:()=>{j(ym.triggerExpand)},isCollapsed:f.collapsed}),(0,d.jsx)("div",{className:Bg("main"),children:(0,d.jsx)(Vv,{type:k,additionalTenantProps:e.additionalTenantProps,additionalNodesProps:e.additionalNodesProps,tenantName:w,path:I})})]})})})]})}},5890:(e,t,a)=>{var n={"./simpleWorker":51929,"./simpleWorker.js":51929,"monaco-editor/esm/vs/base/common/worker/simpleWorker":51929,"monaco-editor/esm/vs/base/common/worker/simpleWorker.js":51929};function r(e){return Promise.resolve().then((()=>{if(!a.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a(n[e])}))}r.keys=()=>Object.keys(n),r.id=5890,e.exports=r},9204:(e,t,a)=>{var n={"./editorBaseApi":[73848],"./editorBaseApi.js":[73848],"./editorSimpleWorker":[16545],"./editorSimpleWorker.js":[16545],"./editorWorker":[10920],"./editorWorker.js":[10920],"./editorWorkerHost":[80718],"./editorWorkerHost.js":[80718],"./findSectionHeaders":[56691],"./findSectionHeaders.js":[56691],"./getIconClasses":[53068],"./getIconClasses.js":[53068],"./languageFeatureDebounce":[32500],"./languageFeatureDebounce.js":[32500],"./languageFeatures":[56942],"./languageFeatures.js":[56942],"./languageFeaturesService":[76007],"./languageFeaturesService.js":[76007],"./languageService":[17890],"./languageService.js":[17890],"./languagesAssociations":[99908],"./languagesAssociations.js":[99908],"./languagesRegistry":[69259],"./languagesRegistry.js":[69259],"./markerDecorations":[37550],"./markerDecorations.js":[37550],"./markerDecorationsService":[30707],"./markerDecorationsService.js":[30707],"./model":[23750],"./model.js":[23750],"./modelService":[16363],"./modelService.js":[16363],"./resolverService":[18938],"./resolverService.js":[18938],"./semanticTokensDto":[98232],"./semanticTokensDto.js":[98232],"./semanticTokensProviderStyling":[45538],"./semanticTokensProviderStyling.js":[45538],"./semanticTokensStyling":[74243],"./semanticTokensStyling.js":[74243],"./semanticTokensStylingService":[27004],"./semanticTokensStylingService.js":[27004],"./textModelSync/textModelSync.impl":[47443],"./textModelSync/textModelSync.impl.js":[47443],"./textModelSync/textModelSync.protocol":[28868,8868],"./textModelSync/textModelSync.protocol.js":[28868,8868],"./textResourceConfiguration":[90360],"./textResourceConfiguration.js":[90360],"./treeSitterParserService":[44432],"./treeSitterParserService.js":[44432],"./treeViewsDnd":[36723],"./treeViewsDnd.js":[36723],"./treeViewsDndService":[29100],"./treeViewsDndService.js":[29100],"./unicodeTextModelHighlighter":[74855],"./unicodeTextModelHighlighter.js":[74855],"monaco-editor/esm/vs/editor/common/services/editorBaseApi":[73848],"monaco-editor/esm/vs/editor/common/services/editorBaseApi.js":[73848],"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker":[16545],"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker.js":[16545],"monaco-editor/esm/vs/editor/common/services/editorWorker":[10920],"monaco-editor/esm/vs/editor/common/services/editorWorker.js":[10920],"monaco-editor/esm/vs/editor/common/services/editorWorkerHost":[80718],"monaco-editor/esm/vs/editor/common/services/editorWorkerHost.js":[80718],"monaco-editor/esm/vs/editor/common/services/findSectionHeaders":[56691],"monaco-editor/esm/vs/editor/common/services/findSectionHeaders.js":[56691],"monaco-editor/esm/vs/editor/common/services/getIconClasses":[53068],"monaco-editor/esm/vs/editor/common/services/getIconClasses.js":[53068],"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce":[32500],"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce.js":[32500],"monaco-editor/esm/vs/editor/common/services/languageFeatures":[56942],"monaco-editor/esm/vs/editor/common/services/languageFeatures.js":[56942],"monaco-editor/esm/vs/editor/common/services/languageFeaturesService":[76007],"monaco-editor/esm/vs/editor/common/services/languageFeaturesService.js":[76007],"monaco-editor/esm/vs/editor/common/services/languageService":[17890],"monaco-editor/esm/vs/editor/common/services/languageService.js":[17890],"monaco-editor/esm/vs/editor/common/services/languagesAssociations":[99908],"monaco-editor/esm/vs/editor/common/services/languagesAssociations.js":[99908],"monaco-editor/esm/vs/editor/common/services/languagesRegistry":[69259],"monaco-editor/esm/vs/editor/common/services/languagesRegistry.js":[69259],"monaco-editor/esm/vs/editor/common/services/markerDecorations":[37550],"monaco-editor/esm/vs/editor/common/services/markerDecorations.js":[37550],"monaco-editor/esm/vs/editor/common/services/markerDecorationsService":[30707],"monaco-editor/esm/vs/editor/common/services/markerDecorationsService.js":[30707],"monaco-editor/esm/vs/editor/common/services/model":[23750],"monaco-editor/esm/vs/editor/common/services/model.js":[23750],"monaco-editor/esm/vs/editor/common/services/modelService":[16363],"monaco-editor/esm/vs/editor/common/services/modelService.js":[16363],"monaco-editor/esm/vs/editor/common/services/resolverService":[18938],"monaco-editor/esm/vs/editor/common/services/resolverService.js":[18938],"monaco-editor/esm/vs/editor/common/services/semanticTokensDto":[98232],"monaco-editor/esm/vs/editor/common/services/semanticTokensDto.js":[98232],"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling":[45538],"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling.js":[45538],"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling":[74243],"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling.js":[74243],"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService":[27004],"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService.js":[27004],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl":[47443],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl.js":[47443],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol":[28868,8868],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol.js":[28868,8868],"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration":[90360],"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration.js":[90360],"monaco-editor/esm/vs/editor/common/services/treeSitterParserService":[44432],"monaco-editor/esm/vs/editor/common/services/treeSitterParserService.js":[44432],"monaco-editor/esm/vs/editor/common/services/treeViewsDnd":[36723],"monaco-editor/esm/vs/editor/common/services/treeViewsDnd.js":[36723],"monaco-editor/esm/vs/editor/common/services/treeViewsDndService":[29100],"monaco-editor/esm/vs/editor/common/services/treeViewsDndService.js":[29100],"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter":[74855],"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter.js":[74855]};function r(e){if(!a.o(n,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=n[e],r=t[0];return Promise.all(t.slice(1).map(a.e)).then((()=>a(r)))}r.keys=()=>Object.keys(n),r.id=9204,e.exports=r},66574:()=>{},2748:()=>{},52246:()=>{}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3779.1d869a05.chunk.js b/ydb/core/viewer/monitoring/static/js/3779.1d869a05.chunk.js new file mode 100644 index 0000000000..cbc8ca3baf --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/3779.1d869a05.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[3779],{6170:(e,s,t)=>{t.d(s,{B:()=>c});var r=t(59284),a=t(73633),l=t(84375),n=t(99991);const o=(0,t(98192).om)("help-popover"),i=16;function c(e){var s;return r.createElement(l.A,Object.assign({},e,{className:o(null,e.className)}),r.createElement("button",Object.assign({ref:e.buttonRef,type:"button"},e.buttonProps,{className:o("button",null===(s=e.buttonProps)||void 0===s?void 0:s.className)}),r.createElement(n.I,{data:a.A,size:i})))}},15132:(e,s,t)=>{t.d(s,{O:()=>v});var r=t(38501),a=t(77506),l=t(56839),n=t(35736),o=t(41650),i=t(60712);const c=(0,a.cn)("progress-viewer"),d=e=>(0,l.ZV)((0,l.CR)(Number(e),2)),u=(e,s)=>[d(e),d(s)];function v({value:e,capacity:s,formatValues:t=u,percents:a,className:l,size:d="xs",colorizeProgress:v,inverseColorize:m,warningThreshold:h,dangerThreshold:N,hideCapacity:g}){const p=(0,r.D)();let S=Math.round(parseFloat(String(e))/parseFloat(String(s))*100)||0;S=S>100?100:S;let f=e,b=s,x="/";a?(f=S+"%",b="",x=""):t&&([f,b]=t(Number(e),Number(s)));const E=(0,n.w)({fillWidth:S,warningThreshold:h,dangerThreshold:N,colorizeProgress:v,inverseColorize:m});v&&!(0,o.kf)(s)&&(S=100);const j={width:S+"%"};return(0,o.kf)(e)?(0,i.jsxs)("div",{className:c({size:d,theme:p,status:E},l),children:[(0,i.jsx)("div",{className:c("line"),style:j}),(0,i.jsx)("span",{className:c("text"),children:(0,o.kf)(s)&&!g?`${f} ${x} ${b}`:f})]}):(0,i.jsx)("div",{className:`${c({size:d})} ${l} error`,children:"no data"})}},16819:(e,s,t)=>{t.d(s,{a:()=>n});var r=t(59284),a=t(69024),l=t(59001);const n=e=>{const s=r.useCallback((()=>e?l.f.readUserSettingsValue(e,{}):{}),[e]),t=r.useCallback((s=>{e&&l.f.setUserSettingsValue(e,s)}),[e]);return(0,a.a)({saveSizes:t,getSizes:s})}},17594:(e,s,t)=>{t.d(s,{l:()=>c});var r=t(69024),a=t(4557),l=t(77506),n=t(16819),o=t(60712);const i=(0,l.cn)("ydb-resizeable-data-table");function c({columnsWidthLSKey:e,columns:s,settings:t,wrapperClassName:l,...c}){const[d,u]=(0,n.a)(e),v=(0,r.j)(s,d),m={...t,defaultResizeable:!0};return(0,o.jsx)("div",{className:i(null,l),children:(0,o.jsx)(a.Ay,{theme:"yandex-cloud",columns:v,onResize:u,settings:m,...c})})}},18143:(e,s,t)=>{t.d(s,{k:()=>u});var r=t(59284);const a=(0,t(69220).om)("progress");function l(e){const{text:s,offset:t=0}=e;return s?r.createElement("div",{className:a("text-inner"),style:{transform:`translateX(calc(var(--g-flow-direction) * ${-t}%))`}},s):null}function n({item:e}){const{value:s,color:t,className:l,theme:n,title:o,content:i,loading:c}=e,d={loading:c};return"undefined"===typeof t&&(d.theme=n||"default"),Number.isFinite(s)?r.createElement("div",{className:a("item",d,l),style:{width:`${s}%`,backgroundColor:t},title:o},i):null}function o(e){return e<100?e-100:0}function i(e){const{theme:s,colorStops:t,colorStopsValue:r,value:a}=e;if(t){const e=t.find(((e,s)=>{const l="number"===typeof r?r:a,n=s>1?t[s-1].stop:0,o=s<t.length-1?e.stop:100;return l>=n&&l<=o}));return e?e.theme:s}return s}function c(e){const{stack:s,stackClassName:t,value:i,text:c}=e,d=o(i||function(e){return e.reduce(((e,{value:s})=>e+s),0)}(s));return r.createElement("div",{className:a("stack",t),style:{transform:`translateX(calc(var(--g-flow-direction) * ${d}%))`}},r.createElement("div",{className:a("item"),style:{width:-d+"%"}}),s.map(((e,s)=>r.createElement(n,{key:s,item:e}))),r.createElement(l,{offset:d,text:c}))}function d(e){const{value:s,loading:t,text:n}=e,c=o(s);return Number.isFinite(s)?r.createElement("div",{className:a("item",{theme:i(e),loading:t}),style:{transform:`translateX(calc(var(--g-flow-direction) * ${c}%))`}},r.createElement(l,{offset:c,text:n})):null}const u=r.forwardRef((function(e,s){const{text:t="",theme:l="default",size:n="m",loading:o=!1,className:i,qa:u}=e,v=Object.assign(Object.assign({},e),{text:t,theme:l,size:n,loading:o});return r.createElement("div",{ref:s,className:a({size:n},i),"data-qa":u},r.createElement("div",{className:a("text")},t),function(e){return void 0!==e.stack}(v)?r.createElement(c,Object.assign({},v)):r.createElement(d,Object.assign({},v)))}))},35736:(e,s,t)=>{t.d(s,{w:()=>a});var r=t(76086);function a({inverseColorize:e,warningThreshold:s=r.Hh,dangerThreshold:t=r.Ed,colorizeProgress:a,fillWidth:l}){let n=e?"danger":"good";return a&&(l>s&&l<=t?n="warning":l>t&&(n=e?"good":"danger")),n}},41775:(e,s,t)=>{t.d(s,{v:()=>i});var r=t(59284),a=t(28664),l=t(77506),n=t(60712);const o=(0,l.cn)("ydb-search"),i=({onChange:e,value:s="",width:t,className:l,debounce:i=200,placeholder:c})=>{const[d,u]=r.useState(s),v=r.useRef();r.useEffect((()=>{u((e=>e!==s?s:e))}),[s]);return(0,n.jsx)(a.k,{hasClear:!0,autoFocus:!0,style:{width:t},className:o(null,l),placeholder:c,value:d,onUpdate:s=>{u(s),window.clearTimeout(v.current),v.current=window.setTimeout((()=>{null===e||void 0===e||e(s)}),i)}})}},43951:(e,s,t)=>{t.d(s,{K:()=>l});var r=t(59284),a=t(59001);const l=(e,s,t,l,n)=>{const[o,i]=r.useState((()=>a.f.readUserSettingsValue(s,l)));return{columnsToShow:r.useMemo((()=>e.filter((e=>{const s=e.name,t=o.includes(s),r=null===n||void 0===n?void 0:n.includes(s);return t||r}))),[e,n,o]),columnsToSelect:r.useMemo((()=>e.map((e=>e.name)).map((e=>{const s=null===n||void 0===n?void 0:n.includes(e),r=o.includes(e);return{id:e,title:t[e],selected:s||r,required:s,sticky:s?"start":void 0}}))),[e,t,n,o]),setColumns:r.useCallback((e=>{const t=e.filter((e=>e.selected)).map((e=>e.id));a.f.setUserSettingsValue(s,t),i(t)}),[s])}}},48288:(e,s,t)=>{t.r(s),t.d(s,{Clusters:()=>se});var r=t(59284),a=t(4557),l=t(24555),n=t(69775),o=t(61750),i=t(90053),c=t(44508),d=t(52248),u=t(17594),v=t(95963),m=t(39567),h=t(23536),N=t.n(h);const g=e=>e.clusters.clusterName,p=e=>e.clusters.status,S=e=>e.clusters.service,f=e=>e.clusters.version,b=(e,s)=>0===s.length||e.status&&s.includes(e.status),x=(e,s)=>0===s.length||e.service&&s.includes(e.service),E=(e,s)=>0===s.length||s.some((s=>{var t,r;return null===(t=e.cluster)||void 0===t||null===(r=t.Versions)||void 0===r?void 0:r.some((e=>e.startsWith(s)))})),j=(e,s="")=>{var t;if(!s)return!0;const r=s.toLowerCase(),a=r.split(" "),l=(null===(t=e.title)||void 0===t?void 0:t.toLowerCase().match(/[^\d\s]+|\d+|[^-\s]+|[^_\s]+/g))||[],n=a.every((s=>{const t=N()(s),r=new RegExp(`^${t}|[\\s\\-_]${t}`,"i");return e.title&&r.test(e.title)||l.some((e=>e.startsWith(s)))})),o=e.preparedVersions.some((e=>e.version.includes(r))),i=Boolean(e.hosts&&e.hosts[r]);return n||o||i};var T=t(76086),O=t(90182),C=t(43951),w=t(38596),A=t(15132),_=t(56839),y=t(48372);const R=JSON.parse('{"controls_status-select-label":"Status:","controls_service-select-label":"Service:","controls_version-select-label":"Version:","controls_search-placeholder":"Cluster name, version, host","controls_select-placeholder":"All","statistics_clusters":"Clusters","statistics_hosts":"Hosts","statistics_tenants":"Tenants","statistics_nodes":"Nodes","statistics_load":"Load","statistics_storage":"Storage","tooltip_no-cluster-data":"No cluster data","page_title":"Clusters"}'),I=JSON.parse('{"controls_status-select-label":"\u0421\u0442\u0430\u0442\u0443\u0441:","controls_service-select-label":"\u0421\u0435\u0440\u0432\u0438\u0441:","controls_version-select-label":"\u0412\u0435\u0440\u0441\u0438\u044f:","controls_search-placeholder":"\u0418\u043c\u044f \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430, \u0432\u0435\u0440\u0441\u0438\u044f \u0438\u043b\u0438 \u0445\u043e\u0441\u0442","controls_select-placeholder":"\u0412\u0441\u0435","statistics_clusters":"\u041a\u043b\u0430\u0441\u0442\u0435\u0440\u044b","statistics_hosts":"\u0425\u043e\u0441\u0442\u044b","statistics_tenants":"\u0411\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445","statistics_nodes":"\u0423\u0437\u043b\u044b","statistics_load":"\u041d\u0430\u0433\u0440\u0443\u0437\u043a\u0430","statistics_storage":"\u0425\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435","tooltip_no-cluster-data":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430","page_title":"\u041a\u043b\u0430\u0441\u0442\u0435\u0440\u044b"}'),D=(0,y.g4)("ydb-clusters-page",{ru:I,en:R});var z=t(77506);const L=(0,z.cn)("clusters");var k=t(60712);const V=({count:e,stats:s})=>{const{NodesTotal:t,NodesAlive:r,Hosts:a,Tenants:l,LoadAverage:n,NumberOfCpus:o,StorageUsed:i,StorageTotal:c}=s;return(0,k.jsxs)("div",{className:L("aggregation"),children:[(0,k.jsxs)("div",{className:L("aggregation-value-container"),children:[(0,k.jsx)("span",{className:L("aggregation-label"),children:D("statistics_clusters")}),e]}),(0,k.jsxs)("div",{className:L("aggregation-value-container"),children:[(0,k.jsx)("span",{className:L("aggregation-label"),children:D("statistics_hosts")}),a]}),(0,k.jsxs)("div",{className:L("aggregation-value-container"),children:[(0,k.jsx)("span",{className:L("aggregation-label"),children:D("statistics_tenants")}),l]}),(0,k.jsxs)("div",{className:L("aggregation-value-container"),children:[(0,k.jsx)("span",{className:L("aggregation-label"),children:D("statistics_nodes")}),(0,k.jsx)(A.O,{size:"ns",value:r,capacity:t,colorizeProgress:!0,inverseColorize:!0})]}),(0,k.jsxs)("div",{className:L("aggregation-value-container"),children:[(0,k.jsx)("span",{className:L("aggregation-label"),children:D("statistics_load")}),(0,k.jsx)(A.O,{size:"ns",value:n,capacity:o,colorizeProgress:!0})]}),(0,k.jsxs)("div",{className:L("aggregation-value-container"),children:[(0,k.jsx)("span",{className:L("aggregation-label"),children:D("statistics_storage")}),(0,k.jsx)(A.O,{size:"ns",value:i,capacity:c,formatValues:_.j9,colorizeProgress:!0})]})]})};var U=t(6170),G=t(67884),W=t(18143),P=t(96873),M=t(34271);const $=(0,z.cn)("kv-user");function H({login:e,className:s}){const t=(0,M.x)("StaffCard");return(0,k.jsx)("div",{className:$(null,s),children:(0,k.jsx)(t,{login:e,children:(0,k.jsx)("div",{className:$("name"),children:e})})})}var B=t(31684),F=t(69446),q=t(87842);const K="selectedColumns",J={TITLE:"title",VERSIONS:"versions",DC:"dc",SERVICE:"service",STATUS:"status",NODES:"nodes",LOAD:"load",STORAGE:"storage",HOSTS:"hosts",TENANTS:"tenants",OWNER:"owner",DESCRIPTION:"description",BALANCER:"balancer"},Q=[J.TITLE,J.VERSIONS,J.SERVICE,J.STATUS,J.NODES,J.LOAD,J.STORAGE,J.HOSTS,J.TENANTS,J.OWNER,J.BALANCER],X={[J.TITLE]:"Cluster",[J.VERSIONS]:"Versions",[J.DC]:"DC",[J.SERVICE]:"Service",[J.STATUS]:"Status",[J.NODES]:"Nodes",[J.LOAD]:"Load",[J.STORAGE]:"Storage",[J.HOSTS]:"Hosts",[J.TENANTS]:"Tenants",[J.OWNER]:"Owner",[J.DESCRIPTION]:"Description",[J.BALANCER]:"Balancer"},Y="clustersTableColumnsWidth",Z=(0,k.jsx)("span",{className:L("empty-cell"),children:"\u2014"}),ee=[{name:J.TITLE,header:X[J.TITLE],width:230,render:({row:e})=>{var s,t;const{balancer:r,name:a,use_embedded_ui:l}=e,n=r&&(0,F.PG)(r),o=l&&n?(0,B.t1)(n):(0,q.a)(void 0,{backend:n,clusterName:a}),i=null===(s=e.cluster)||void 0===s?void 0:s.Overall;return(0,k.jsxs)("div",{className:L("cluster"),children:[i?(0,k.jsx)(G.N,{href:o,children:(0,k.jsx)("div",{className:L("cluster-status",{type:i&&i.toLowerCase()})})}):(0,k.jsx)("div",{className:L("cluster-status"),children:(0,k.jsx)(U.B,{content:(0,k.jsx)("span",{className:L("tooltip-content"),children:(null===(t=e.cluster)||void 0===t?void 0:t.error)||D("tooltip_no-cluster-data")}),offset:{left:0}})}),(0,k.jsx)("div",{className:L("cluster-name"),children:(0,k.jsx)(G.N,{href:o,children:e.title})})]})},defaultOrder:a.Ay.ASCENDING},{name:J.VERSIONS,header:X[J.VERSIONS],width:300,defaultOrder:a.Ay.DESCENDING,sortAccessor:({preparedVersions:e})=>e.map((e=>e.version.replace(/^[0-9]\+\./g,""))).sort(((e,s)=>e.localeCompare(s)))[0]||void 0,render:({row:e})=>{const{preparedVersions:s,versions:t=[],balancer:a,name:l}=e;if(!t.length||t.some((e=>!e.version)))return Z;const n=t.reduce(((e,s)=>e+s.count),0),o=t.map((e=>{var t;return{value:e.count/n*100,color:null===(t=s.find((s=>s.version===e.version)))||void 0===t?void 0:t.color}})),i=a&&(0,F.PG)(a);return s.length>0&&(0,k.jsx)(G.N,{className:L("cluster-versions"),href:(0,q.a)(q.Bi.versions,{backend:i,clusterName:l}),children:(0,k.jsxs)(r.Fragment,{children:[s.map(((e,s)=>(0,k.jsx)("div",{className:L("cluster-version"),style:{color:e.color},title:e.version,children:e.version},s))),(0,k.jsx)(W.k,{size:"s",value:100,stack:o})]})})}},{name:J.DC,header:X[J.DC],width:120,sortable:!1,render:({row:e})=>{const s=e.cluster&&e.cluster.DataCenters||[];return(0,k.jsx)("div",{className:L("cluster-dc"),children:s.join(", ")||Z})}},{name:J.SERVICE,header:X[J.SERVICE],width:100,sortable:!0},{name:J.STATUS,header:X[J.STATUS],width:150,sortable:!0},{name:J.NODES,header:X[J.NODES],resizeMinWidth:170,defaultOrder:a.Ay.DESCENDING,sortAccessor:({cluster:e={}})=>{const{NodesTotal:s=0}=e;return s},render:({row:e})=>{const{NodesAlive:s=0,NodesTotal:t=0,Overall:r}=e.cluster||{};return r?(0,k.jsx)(A.O,{value:s,capacity:t}):Z}},{name:J.LOAD,header:X[J.LOAD],resizeMinWidth:170,defaultOrder:a.Ay.DESCENDING,sortAccessor:({cluster:e})=>null===e||void 0===e?void 0:e.NumberOfCpus,render:({row:e})=>{const{LoadAverage:s=0,NumberOfCpus:t=0,Overall:r}=e.cluster||{};return r?(0,k.jsx)(A.O,{value:s,capacity:t}):Z}},{name:J.STORAGE,header:X[J.STORAGE],resizeMinWidth:170,defaultOrder:a.Ay.DESCENDING,sortAccessor:({cluster:e})=>Number(null===e||void 0===e?void 0:e.StorageTotal),render:({row:e})=>{const{StorageUsed:s=0,StorageTotal:t=0,Overall:r}=e.cluster||{};return r?(0,k.jsx)(A.O,{value:s,capacity:t,formatValues:_.ki}):Z}},{name:J.HOSTS,header:X[J.HOSTS],width:80,defaultOrder:a.Ay.DESCENDING,sortAccessor:({cluster:e})=>Number(null===e||void 0===e?void 0:e.Hosts)||0,render:({row:e})=>{var s;return Number(null===(s=e.cluster)||void 0===s?void 0:s.Hosts)||Z}},{name:J.TENANTS,header:X[J.TENANTS],width:80,defaultOrder:a.Ay.DESCENDING,sortAccessor:({cluster:e})=>Number(null===e||void 0===e?void 0:e.Tenants)||0,render:({row:e})=>{var s;return Number(null===(s=e.cluster)||void 0===s?void 0:s.Tenants)||Z}},{name:J.OWNER,header:X[J.OWNER],sortable:!1,width:120,render:({row:e})=>{var s;const t=null===(s=e.owner)||void 0===s?void 0:s.split(", ");return null!==t&&void 0!==t&&t.length?t.map((e=>(0,k.jsx)(H,{login:e},e))):Z}},{name:J.DESCRIPTION,header:X[J.DESCRIPTION],sortable:!1,width:150,render:({row:e})=>e.description?(0,k.jsx)("div",{className:L("description"),children:e.description}):Z},{name:J.BALANCER,header:X[J.BALANCER],sortable:!1,width:290,render:({row:e})=>{if(!e.balancer)return Z;const s=(0,F.Zd)(e.balancer);return(0,k.jsxs)("div",{className:L("balancer-cell"),children:[(0,k.jsx)("div",{className:L("balancer-text"),children:s}),(0,k.jsx)(P.b,{size:"s",text:s,className:L("balancer-icon")})]})}}];function se(){const[e]=(0,O.Nt)(),s=m.ub.useGetClustersListQuery(void 0,{pollingInterval:e}),t=(0,O.YQ)(),h=(0,O.N4)(g),N=(0,O.N4)(p),A=(0,O.N4)(S),_=(0,O.N4)(f),{columnsToShow:y,columnsToSelect:R,setColumns:I}=(0,C.K)(ee,K,X,Q,[J.TITLE]),z=s.data,{servicesToSelect:U,versions:G}=r.useMemo((()=>{const e=new Set,s=new Set;return(null!==z&&void 0!==z?z:[]).forEach((t=>{var r,a;t.service&&e.add(t.service),null===(r=t.cluster)||void 0===r||null===(a=r.Versions)||void 0===a||a.forEach((e=>{s.add((0,w.U)(e))}))})),{servicesToSelect:Array.from(e).map((e=>({value:e,content:e}))),versions:Array.from(s).map((e=>({value:e,content:e})))}}),[z]),W=r.useMemo((()=>function(e,s){return e.filter((e=>b(e,s.status)&&x(e,s.service)&&E(e,s.version)&&j(e,s.clusterName)))}(null!==z&&void 0!==z?z:[],{clusterName:h,status:N,service:A,version:_})),[h,z,A,N,_]),P=r.useMemo((()=>function(e){let s=0,t=0,r=0,a=0,l=0,n=0,o=0;const i=new Set;return e.filter((({cluster:e})=>!(null!==e&&void 0!==e&&e.error))).forEach((({cluster:e,hosts:c={}})=>{s+=(null===e||void 0===e?void 0:e.NodesTotal)||0,t+=(null===e||void 0===e?void 0:e.NodesAlive)||0,Object.keys(c).forEach((e=>i.add(e))),o+=Number(null===e||void 0===e?void 0:e.Tenants)||0,r+=Number(null===e||void 0===e?void 0:e.LoadAverage)||0,a+=(null===e||void 0===e?void 0:e.NumberOfCpus)||0,l+=null!==e&&void 0!==e&&e.StorageUsed?Math.floor(parseInt(e.StorageUsed,10)):0,n+=null!==e&&void 0!==e&&e.StorageTotal?Math.floor(parseInt(e.StorageTotal,10)):0})),{NodesTotal:s,NodesAlive:t,Hosts:i.size,Tenants:o,LoadAverage:r,NumberOfCpus:a,StorageUsed:l,StorageTotal:n}}(W)),[W]),M=r.useMemo((()=>Array.from(new Set((null!==z&&void 0!==z?z:[]).map((e=>e.status)).filter(Boolean))).sort().map((e=>({value:e,content:e})))),[z]);return(0,k.jsxs)("div",{className:L(),children:[(0,k.jsx)(o.mg,{children:(0,k.jsx)("title",{children:D("page_title")})}),(0,k.jsx)(V,{stats:P,count:W.length}),(0,k.jsxs)("div",{className:L("controls"),children:[(0,k.jsx)("div",{className:L("control",{wide:!0}),children:(0,k.jsx)(v.v,{placeholder:D("controls_search-placeholder"),onChange:e=>{t((0,m.Fe)({clusterName:e}))},value:h})}),(0,k.jsx)("div",{className:L("control"),children:(0,k.jsx)(l.l,{multiple:!0,filterable:!0,hasClear:!0,placeholder:D("controls_select-placeholder"),label:D("controls_status-select-label"),value:N,options:M,onUpdate:e=>{t((0,m.Fe)({status:e}))},width:"max"})}),(0,k.jsx)("div",{className:L("control"),children:(0,k.jsx)(l.l,{multiple:!0,filterable:!0,hasClear:!0,placeholder:D("controls_select-placeholder"),label:D("controls_service-select-label"),value:A,options:U,onUpdate:e=>{t((0,m.Fe)({service:e}))},width:"max"})}),(0,k.jsx)("div",{className:L("control"),children:(0,k.jsx)(l.l,{multiple:!0,filterable:!0,hasClear:!0,placeholder:D("controls_select-placeholder"),label:D("controls_version-select-label"),value:_,options:G,onUpdate:e=>{t((0,m.Fe)({version:e}))},width:"max"})}),(0,k.jsx)("div",{className:L("control"),children:(0,k.jsx)(n.O,{popupWidth:242,items:R,showStatus:!0,onUpdate:I,sortable:!1},"TableColumnSetup")}),(0,k.jsx)(i.E,{className:L("autorefresh")})]}),s.isError?(0,k.jsx)(c.o,{error:s.error,className:L("error")}):null,s.isLoading?(0,k.jsx)(d.a,{size:"l"}):null,s.fulfilledTimeStamp?(0,k.jsx)("div",{className:L("table-wrapper"),children:(0,k.jsx)("div",{className:L("table-content"),children:(0,k.jsx)(u.l,{columnsWidthLSKey:Y,wrapperClassName:L("table"),data:W,columns:y,settings:{...T.N3,dynamicRender:!1},initialSortOrder:{columnId:J.TITLE,order:a.Ay.ASCENDING}})})}):null]})}},52248:(e,s,t)=>{t.d(s,{a:()=>r.a});var r=t(47334)},90053:(e,s,t)=>{t.d(s,{E:()=>h});var r=t(8873),a=t(84476),l=t(24555),n=t(21334),o=t(77506),i=t(90182),c=t(48372);const d=JSON.parse('{"None":"None","15 sec":"15 sec","1 min":"1 min","2 min":"2 min","5 min":"5 min","Refresh":"Refresh"}'),u=(0,c.g4)("ydb-diagnostics-autorefresh-control",{en:d});var v=t(60712);const m=(0,o.cn)("auto-refresh-control");function h({className:e,onManualRefresh:s}){const t=(0,i.YQ)(),[o,c]=(0,i.Nt)();return(0,v.jsxs)("div",{className:m(null,e),children:[(0,v.jsx)(a.$,{view:"flat-secondary",onClick:()=>{t(n.F.util.invalidateTags(["All"])),null===s||void 0===s||s()},extraProps:{"aria-label":u("Refresh")},children:(0,v.jsx)(a.$.Icon,{children:(0,v.jsx)(r.A,{})})}),(0,v.jsxs)(l.l,{value:[String(o)],onUpdate:e=>{c(Number(e))},width:85,qa:"ydb-autorefresh-select",children:[(0,v.jsx)(l.l.Option,{value:"0",children:u("None")}),(0,v.jsx)(l.l.Option,{value:"15000",children:u("15 sec")}),(0,v.jsx)(l.l.Option,{value:"60000",children:u("1 min")}),(0,v.jsx)(l.l.Option,{value:"120000",children:u("2 min")}),(0,v.jsx)(l.l.Option,{value:"300000",children:u("5 min")})]})]})}},95963:(e,s,t)=>{t.d(s,{v:()=>r.v});var r=t(41775)},98192:(e,s,t)=>{t.d(s,{CU:()=>a,om:()=>l});var r=t(82435);const a="gc-",l=((0,r.withNaming)({e:"__",m:"_",v:"_"}),(0,r.withNaming)({n:a,e:"__",m:"_",v:"_"}))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3779.31972bdb.chunk.js b/ydb/core/viewer/monitoring/static/js/3779.31972bdb.chunk.js deleted file mode 100644 index 7d2feba62f..0000000000 --- a/ydb/core/viewer/monitoring/static/js/3779.31972bdb.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[3779],{90053:(e,s,t)=>{t.d(s,{E:()=>h});var r=t(8873),a=t(84476),l=t(24555),n=t(21334),o=t(77506),i=t(90182),c=t(48372);const d=JSON.parse('{"None":"None","15 sec":"15 sec","1 min":"1 min","2 min":"2 min","5 min":"5 min","Refresh":"Refresh"}'),u=(0,c.g4)("ydb-diagnostics-autorefresh-control",{en:d});var v=t(60712);const m=(0,o.cn)("auto-refresh-control");function h({className:e,onManualRefresh:s}){const t=(0,i.YQ)(),[o,c]=(0,i.Nt)();return(0,v.jsxs)("div",{className:m(null,e),children:[(0,v.jsx)(a.$,{view:"flat-secondary",onClick:()=>{t(n.F.util.invalidateTags(["All"])),null===s||void 0===s||s()},extraProps:{"aria-label":u("Refresh")},children:(0,v.jsx)(a.$.Icon,{children:(0,v.jsx)(r.A,{})})}),(0,v.jsxs)(l.l,{value:[String(o)],onUpdate:e=>{c(Number(e))},width:85,qa:"ydb-autorefresh-select",children:[(0,v.jsx)(l.l.Option,{value:"0",children:u("None")}),(0,v.jsx)(l.l.Option,{value:"15000",children:u("15 sec")}),(0,v.jsx)(l.l.Option,{value:"60000",children:u("1 min")}),(0,v.jsx)(l.l.Option,{value:"120000",children:u("2 min")}),(0,v.jsx)(l.l.Option,{value:"300000",children:u("5 min")})]})]})}},52248:(e,s,t)=>{t.d(s,{a:()=>r.a});var r=t(47334)},15132:(e,s,t)=>{t.d(s,{O:()=>v});var r=t(38501),a=t(77506),l=t(56839),n=t(35736),o=t(41650),i=t(60712);const c=(0,a.cn)("progress-viewer"),d=e=>(0,l.ZV)((0,l.CR)(Number(e),2)),u=(e,s)=>[d(e),d(s)];function v({value:e,capacity:s,formatValues:t=u,percents:a,className:l,size:d="xs",colorizeProgress:v,inverseColorize:m,warningThreshold:h,dangerThreshold:N,hideCapacity:g}){const p=(0,r.D)();let S=Math.round(parseFloat(String(e))/parseFloat(String(s))*100)||0;S=S>100?100:S;let f=e,b=s,x="/";a?(f=S+"%",b="",x=""):t&&([f,b]=t(Number(e),Number(s)));const E=(0,n.w)({fillWidth:S,warningThreshold:h,dangerThreshold:N,colorizeProgress:v,inverseColorize:m});v&&!(0,o.kf)(s)&&(S=100);const j={width:S+"%"};return(0,o.kf)(e)?(0,i.jsxs)("div",{className:c({size:d,theme:p,status:E},l),children:[(0,i.jsx)("div",{className:c("line"),style:j}),(0,i.jsx)("span",{className:c("text"),children:(0,o.kf)(s)&&!g?`${f} ${x} ${b}`:f})]}):(0,i.jsx)("div",{className:`${c({size:d})} ${l} error`,children:"no data"})}},17594:(e,s,t)=>{t.d(s,{l:()=>c});var r=t(69024),a=t(4557),l=t(77506),n=t(16819),o=t(60712);const i=(0,l.cn)("ydb-resizeable-data-table");function c({columnsWidthLSKey:e,columns:s,settings:t,wrapperClassName:l,...c}){const[d,u]=(0,n.a)(e),v=(0,r.j)(s,d),m={...t,defaultResizeable:!0};return(0,o.jsx)("div",{className:i(null,l),children:(0,o.jsx)(a.Ay,{theme:"yandex-cloud",columns:v,onResize:u,settings:m,...c})})}},41775:(e,s,t)=>{t.d(s,{v:()=>i});var r=t(59284),a=t(28664),l=t(77506),n=t(60712);const o=(0,l.cn)("ydb-search"),i=({onChange:e,value:s="",width:t,className:l,debounce:i=200,placeholder:c})=>{const[d,u]=r.useState(s),v=r.useRef();r.useEffect((()=>{u((e=>e!==s?s:e))}),[s]);return(0,n.jsx)(a.k,{hasClear:!0,autoFocus:!0,style:{width:t},className:o(null,l),placeholder:c,value:d,onUpdate:s=>{u(s),window.clearTimeout(v.current),v.current=window.setTimeout((()=>{null===e||void 0===e||e(s)}),i)}})}},95963:(e,s,t)=>{t.d(s,{v:()=>r.v});var r=t(41775)},48288:(e,s,t)=>{t.r(s),t.d(s,{Clusters:()=>se});var r=t(59284),a=t(4557),l=t(24555),n=t(69775),o=t(61750),i=t(90053),c=t(44508),d=t(52248),u=t(17594),v=t(95963),m=t(39567),h=t(23536),N=t.n(h);const g=e=>e.clusters.clusterName,p=e=>e.clusters.status,S=e=>e.clusters.service,f=e=>e.clusters.version,b=(e,s)=>0===s.length||e.status&&s.includes(e.status),x=(e,s)=>0===s.length||e.service&&s.includes(e.service),E=(e,s)=>0===s.length||s.some((s=>{var t,r;return null===(t=e.cluster)||void 0===t||null===(r=t.Versions)||void 0===r?void 0:r.some((e=>e.startsWith(s)))})),j=(e,s="")=>{var t;if(!s)return!0;const r=s.toLowerCase(),a=r.split(" "),l=(null===(t=e.title)||void 0===t?void 0:t.toLowerCase().match(/[^\d\s]+|\d+|[^-\s]+|[^_\s]+/g))||[],n=a.every((s=>{const t=N()(s),r=new RegExp(`^${t}|[\\s\\-_]${t}`,"i");return e.title&&r.test(e.title)||l.some((e=>e.startsWith(s)))})),o=e.preparedVersions.some((e=>e.version.includes(r))),i=Boolean(e.hosts&&e.hosts[r]);return n||o||i};var T=t(76086),O=t(90182),C=t(43951),w=t(38596),A=t(15132),_=t(56839),y=t(48372);const R=JSON.parse('{"controls_status-select-label":"Status:","controls_service-select-label":"Service:","controls_version-select-label":"Version:","controls_search-placeholder":"Cluster name, version, host","controls_select-placeholder":"All","statistics_clusters":"Clusters","statistics_hosts":"Hosts","statistics_tenants":"Tenants","statistics_nodes":"Nodes","statistics_load":"Load","statistics_storage":"Storage","tooltip_no-cluster-data":"No cluster data","page_title":"Clusters"}'),I=JSON.parse('{"controls_status-select-label":"\u0421\u0442\u0430\u0442\u0443\u0441:","controls_service-select-label":"\u0421\u0435\u0440\u0432\u0438\u0441:","controls_version-select-label":"\u0412\u0435\u0440\u0441\u0438\u044f:","controls_search-placeholder":"\u0418\u043c\u044f \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430, \u0432\u0435\u0440\u0441\u0438\u044f \u0438\u043b\u0438 \u0445\u043e\u0441\u0442","controls_select-placeholder":"\u0412\u0441\u0435","statistics_clusters":"\u041a\u043b\u0430\u0441\u0442\u0435\u0440\u044b","statistics_hosts":"\u0425\u043e\u0441\u0442\u044b","statistics_tenants":"\u0411\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445","statistics_nodes":"\u0423\u0437\u043b\u044b","statistics_load":"\u041d\u0430\u0433\u0440\u0443\u0437\u043a\u0430","statistics_storage":"\u0425\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435","tooltip_no-cluster-data":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430","page_title":"\u041a\u043b\u0430\u0441\u0442\u0435\u0440\u044b"}'),D=(0,y.g4)("ydb-clusters-page",{ru:I,en:R});var z=t(77506);const L=(0,z.cn)("clusters");var k=t(60712);const V=({count:e,stats:s})=>{const{NodesTotal:t,NodesAlive:r,Hosts:a,Tenants:l,LoadAverage:n,NumberOfCpus:o,StorageUsed:i,StorageTotal:c}=s;return(0,k.jsxs)("div",{className:L("aggregation"),children:[(0,k.jsxs)("div",{className:L("aggregation-value-container"),children:[(0,k.jsx)("span",{className:L("aggregation-label"),children:D("statistics_clusters")}),e]}),(0,k.jsxs)("div",{className:L("aggregation-value-container"),children:[(0,k.jsx)("span",{className:L("aggregation-label"),children:D("statistics_hosts")}),a]}),(0,k.jsxs)("div",{className:L("aggregation-value-container"),children:[(0,k.jsx)("span",{className:L("aggregation-label"),children:D("statistics_tenants")}),l]}),(0,k.jsxs)("div",{className:L("aggregation-value-container"),children:[(0,k.jsx)("span",{className:L("aggregation-label"),children:D("statistics_nodes")}),(0,k.jsx)(A.O,{size:"ns",value:r,capacity:t,colorizeProgress:!0,inverseColorize:!0})]}),(0,k.jsxs)("div",{className:L("aggregation-value-container"),children:[(0,k.jsx)("span",{className:L("aggregation-label"),children:D("statistics_load")}),(0,k.jsx)(A.O,{size:"ns",value:n,capacity:o,colorizeProgress:!0})]}),(0,k.jsxs)("div",{className:L("aggregation-value-container"),children:[(0,k.jsx)("span",{className:L("aggregation-label"),children:D("statistics_storage")}),(0,k.jsx)(A.O,{size:"ns",value:i,capacity:c,formatValues:_.j9,colorizeProgress:!0})]})]})};var U=t(6170),G=t(67884),W=t(18143),P=t(96873),M=t(34271);const $=(0,z.cn)("kv-user");function H({login:e,className:s}){const t=(0,M.x)("StaffCard");return(0,k.jsx)("div",{className:$(null,s),children:(0,k.jsx)(t,{login:e,children:(0,k.jsx)("div",{className:$("name"),children:e})})})}var B=t(31684),F=t(69446),q=t(87842);const K="selectedColumns",J={TITLE:"title",VERSIONS:"versions",DC:"dc",SERVICE:"service",STATUS:"status",NODES:"nodes",LOAD:"load",STORAGE:"storage",HOSTS:"hosts",TENANTS:"tenants",OWNER:"owner",DESCRIPTION:"description",BALANCER:"balancer"},Q=[J.TITLE,J.VERSIONS,J.SERVICE,J.STATUS,J.NODES,J.LOAD,J.STORAGE,J.HOSTS,J.TENANTS,J.OWNER,J.BALANCER],X={[J.TITLE]:"Cluster",[J.VERSIONS]:"Versions",[J.DC]:"DC",[J.SERVICE]:"Service",[J.STATUS]:"Status",[J.NODES]:"Nodes",[J.LOAD]:"Load",[J.STORAGE]:"Storage",[J.HOSTS]:"Hosts",[J.TENANTS]:"Tenants",[J.OWNER]:"Owner",[J.DESCRIPTION]:"Description",[J.BALANCER]:"Balancer"},Y="clustersTableColumnsWidth",Z=(0,k.jsx)("span",{className:L("empty-cell"),children:"\u2014"}),ee=[{name:J.TITLE,header:X[J.TITLE],width:230,render:({row:e})=>{var s,t;const{balancer:r,name:a,use_embedded_ui:l}=e,n=r&&(0,F.PG)(r),o=l&&n?(0,B.t1)(n):(0,q.a)(void 0,{backend:n,clusterName:a}),i=null===(s=e.cluster)||void 0===s?void 0:s.Overall;return(0,k.jsxs)("div",{className:L("cluster"),children:[i?(0,k.jsx)(G.N,{href:o,children:(0,k.jsx)("div",{className:L("cluster-status",{type:i&&i.toLowerCase()})})}):(0,k.jsx)("div",{className:L("cluster-status"),children:(0,k.jsx)(U.B,{content:(0,k.jsx)("span",{className:L("tooltip-content"),children:(null===(t=e.cluster)||void 0===t?void 0:t.error)||D("tooltip_no-cluster-data")}),offset:{left:0}})}),(0,k.jsx)("div",{className:L("cluster-name"),children:(0,k.jsx)(G.N,{href:o,children:e.title})})]})},defaultOrder:a.Ay.ASCENDING},{name:J.VERSIONS,header:X[J.VERSIONS],width:300,defaultOrder:a.Ay.DESCENDING,sortAccessor:({preparedVersions:e})=>e.map((e=>e.version.replace(/^[0-9]\+\./g,""))).sort(((e,s)=>e.localeCompare(s)))[0]||void 0,render:({row:e})=>{const{preparedVersions:s,versions:t=[],balancer:a,name:l}=e;if(!t.length||t.some((e=>!e.version)))return Z;const n=t.reduce(((e,s)=>e+s.count),0),o=t.map((e=>{var t;return{value:e.count/n*100,color:null===(t=s.find((s=>s.version===e.version)))||void 0===t?void 0:t.color}})),i=a&&(0,F.PG)(a);return s.length>0&&(0,k.jsx)(G.N,{className:L("cluster-versions"),href:(0,q.a)(q.Bi.versions,{backend:i,clusterName:l}),children:(0,k.jsxs)(r.Fragment,{children:[s.map(((e,s)=>(0,k.jsx)("div",{className:L("cluster-version"),style:{color:e.color},title:e.version,children:e.version},s))),(0,k.jsx)(W.k,{size:"s",value:100,stack:o})]})})}},{name:J.DC,header:X[J.DC],width:120,sortable:!1,render:({row:e})=>{const s=e.cluster&&e.cluster.DataCenters||[];return(0,k.jsx)("div",{className:L("cluster-dc"),children:s.join(", ")||Z})}},{name:J.SERVICE,header:X[J.SERVICE],width:100,sortable:!0},{name:J.STATUS,header:X[J.STATUS],width:150,sortable:!0},{name:J.NODES,header:X[J.NODES],resizeMinWidth:170,defaultOrder:a.Ay.DESCENDING,sortAccessor:({cluster:e={}})=>{const{NodesTotal:s=0}=e;return s},render:({row:e})=>{const{NodesAlive:s=0,NodesTotal:t=0,Overall:r}=e.cluster||{};return r?(0,k.jsx)(A.O,{value:s,capacity:t}):Z}},{name:J.LOAD,header:X[J.LOAD],resizeMinWidth:170,defaultOrder:a.Ay.DESCENDING,sortAccessor:({cluster:e})=>null===e||void 0===e?void 0:e.NumberOfCpus,render:({row:e})=>{const{LoadAverage:s=0,NumberOfCpus:t=0,Overall:r}=e.cluster||{};return r?(0,k.jsx)(A.O,{value:s,capacity:t}):Z}},{name:J.STORAGE,header:X[J.STORAGE],resizeMinWidth:170,defaultOrder:a.Ay.DESCENDING,sortAccessor:({cluster:e})=>Number(null===e||void 0===e?void 0:e.StorageTotal),render:({row:e})=>{const{StorageUsed:s=0,StorageTotal:t=0,Overall:r}=e.cluster||{};return r?(0,k.jsx)(A.O,{value:s,capacity:t,formatValues:_.ki}):Z}},{name:J.HOSTS,header:X[J.HOSTS],width:80,defaultOrder:a.Ay.DESCENDING,sortAccessor:({cluster:e})=>Number(null===e||void 0===e?void 0:e.Hosts)||0,render:({row:e})=>{var s;return Number(null===(s=e.cluster)||void 0===s?void 0:s.Hosts)||Z}},{name:J.TENANTS,header:X[J.TENANTS],width:80,defaultOrder:a.Ay.DESCENDING,sortAccessor:({cluster:e})=>Number(null===e||void 0===e?void 0:e.Tenants)||0,render:({row:e})=>{var s;return Number(null===(s=e.cluster)||void 0===s?void 0:s.Tenants)||Z}},{name:J.OWNER,header:X[J.OWNER],sortable:!1,width:120,render:({row:e})=>{var s;const t=null===(s=e.owner)||void 0===s?void 0:s.split(", ");return null!==t&&void 0!==t&&t.length?t.map((e=>(0,k.jsx)(H,{login:e},e))):Z}},{name:J.DESCRIPTION,header:X[J.DESCRIPTION],sortable:!1,width:150,render:({row:e})=>e.description?(0,k.jsx)("div",{className:L("description"),children:e.description}):Z},{name:J.BALANCER,header:X[J.BALANCER],sortable:!1,width:290,render:({row:e})=>{if(!e.balancer)return Z;const s=(0,F.Zd)(e.balancer);return(0,k.jsxs)("div",{className:L("balancer-cell"),children:[(0,k.jsx)("div",{className:L("balancer-text"),children:s}),(0,k.jsx)(P.b,{size:"s",text:s,className:L("balancer-icon")})]})}}];function se(){const[e]=(0,O.Nt)(),s=m.ub.useGetClustersListQuery(void 0,{pollingInterval:e}),t=(0,O.YQ)(),h=(0,O.N4)(g),N=(0,O.N4)(p),A=(0,O.N4)(S),_=(0,O.N4)(f),{columnsToShow:y,columnsToSelect:R,setColumns:I}=(0,C.K)(ee,K,X,Q,[J.TITLE]),z=s.data,{servicesToSelect:U,versions:G}=r.useMemo((()=>{const e=new Set,s=new Set;return(null!==z&&void 0!==z?z:[]).forEach((t=>{var r,a;t.service&&e.add(t.service),null===(r=t.cluster)||void 0===r||null===(a=r.Versions)||void 0===a||a.forEach((e=>{s.add((0,w.U)(e))}))})),{servicesToSelect:Array.from(e).map((e=>({value:e,content:e}))),versions:Array.from(s).map((e=>({value:e,content:e})))}}),[z]),W=r.useMemo((()=>function(e,s){return e.filter((e=>b(e,s.status)&&x(e,s.service)&&E(e,s.version)&&j(e,s.clusterName)))}(null!==z&&void 0!==z?z:[],{clusterName:h,status:N,service:A,version:_})),[h,z,A,N,_]),P=r.useMemo((()=>function(e){let s=0,t=0,r=0,a=0,l=0,n=0,o=0;const i=new Set;return e.filter((({cluster:e})=>!(null!==e&&void 0!==e&&e.error))).forEach((({cluster:e,hosts:c={}})=>{s+=(null===e||void 0===e?void 0:e.NodesTotal)||0,t+=(null===e||void 0===e?void 0:e.NodesAlive)||0,Object.keys(c).forEach((e=>i.add(e))),o+=Number(null===e||void 0===e?void 0:e.Tenants)||0,r+=Number(null===e||void 0===e?void 0:e.LoadAverage)||0,a+=(null===e||void 0===e?void 0:e.NumberOfCpus)||0,l+=null!==e&&void 0!==e&&e.StorageUsed?Math.floor(parseInt(e.StorageUsed,10)):0,n+=null!==e&&void 0!==e&&e.StorageTotal?Math.floor(parseInt(e.StorageTotal,10)):0})),{NodesTotal:s,NodesAlive:t,Hosts:i.size,Tenants:o,LoadAverage:r,NumberOfCpus:a,StorageUsed:l,StorageTotal:n}}(W)),[W]),M=r.useMemo((()=>Array.from(new Set((null!==z&&void 0!==z?z:[]).map((e=>e.status)).filter(Boolean))).sort().map((e=>({value:e,content:e})))),[z]);return(0,k.jsxs)("div",{className:L(),children:[(0,k.jsx)(o.mg,{children:(0,k.jsx)("title",{children:D("page_title")})}),(0,k.jsx)(V,{stats:P,count:W.length}),(0,k.jsxs)("div",{className:L("controls"),children:[(0,k.jsx)("div",{className:L("control",{wide:!0}),children:(0,k.jsx)(v.v,{placeholder:D("controls_search-placeholder"),onChange:e=>{t((0,m.Fe)({clusterName:e}))},value:h})}),(0,k.jsx)("div",{className:L("control"),children:(0,k.jsx)(l.l,{multiple:!0,filterable:!0,hasClear:!0,placeholder:D("controls_select-placeholder"),label:D("controls_status-select-label"),value:N,options:M,onUpdate:e=>{t((0,m.Fe)({status:e}))},width:"max"})}),(0,k.jsx)("div",{className:L("control"),children:(0,k.jsx)(l.l,{multiple:!0,filterable:!0,hasClear:!0,placeholder:D("controls_select-placeholder"),label:D("controls_service-select-label"),value:A,options:U,onUpdate:e=>{t((0,m.Fe)({service:e}))},width:"max"})}),(0,k.jsx)("div",{className:L("control"),children:(0,k.jsx)(l.l,{multiple:!0,filterable:!0,hasClear:!0,placeholder:D("controls_select-placeholder"),label:D("controls_version-select-label"),value:_,options:G,onUpdate:e=>{t((0,m.Fe)({version:e}))},width:"max"})}),(0,k.jsx)("div",{className:L("control"),children:(0,k.jsx)(n.O,{popupWidth:242,items:R,showStatus:!0,onUpdate:I,sortable:!1},"TableColumnSetup")}),(0,k.jsx)(i.E,{className:L("autorefresh")})]}),s.isError?(0,k.jsx)(c.o,{error:s.error,className:L("error")}):null,s.isLoading?(0,k.jsx)(d.a,{size:"l"}):null,s.fulfilledTimeStamp?(0,k.jsx)("div",{className:L("table-wrapper"),children:(0,k.jsx)("div",{className:L("table-content"),children:(0,k.jsx)(u.l,{columnsWidthLSKey:Y,wrapperClassName:L("table"),data:W,columns:y,settings:{...T.N3,dynamicRender:!1},initialSortOrder:{columnId:J.TITLE,order:a.Ay.ASCENDING}})})}):null]})}},43951:(e,s,t)=>{t.d(s,{K:()=>l});var r=t(59284),a=t(59001);const l=(e,s,t,l,n)=>{const[o,i]=r.useState((()=>a.f.readUserSettingsValue(s,l)));return{columnsToShow:r.useMemo((()=>e.filter((e=>{const s=e.name,t=o.includes(s),r=null===n||void 0===n?void 0:n.includes(s);return t||r}))),[e,n,o]),columnsToSelect:r.useMemo((()=>e.map((e=>e.name)).map((e=>{const s=null===n||void 0===n?void 0:n.includes(e),r=o.includes(e);return{id:e,title:t[e],selected:s||r,required:s,sticky:s?"start":void 0}}))),[e,t,n,o]),setColumns:r.useCallback((e=>{const t=e.filter((e=>e.selected)).map((e=>e.id));a.f.setUserSettingsValue(s,t),i(t)}),[s])}}},16819:(e,s,t)=>{t.d(s,{a:()=>n});var r=t(59284),a=t(69024),l=t(59001);const n=e=>{const s=r.useCallback((()=>e?l.f.readUserSettingsValue(e,{}):{}),[e]),t=r.useCallback((s=>{e&&l.f.setUserSettingsValue(e,s)}),[e]);return(0,a.a)({saveSizes:t,getSizes:s})}},35736:(e,s,t)=>{t.d(s,{w:()=>a});var r=t(76086);function a({inverseColorize:e,warningThreshold:s=r.Hh,dangerThreshold:t=r.Ed,colorizeProgress:a,fillWidth:l}){let n=e?"danger":"good";return a&&(l>s&&l<=t?n="warning":l>t&&(n=e?"good":"danger")),n}},6170:(e,s,t)=>{t.d(s,{B:()=>c});var r=t(59284),a=t(73633),l=t(84375),n=t(99991);const o=(0,t(98192).om)("help-popover"),i=16;function c(e){var s;return r.createElement(l.A,Object.assign({},e,{className:o(null,e.className)}),r.createElement("button",Object.assign({ref:e.buttonRef,type:"button"},e.buttonProps,{className:o("button",null===(s=e.buttonProps)||void 0===s?void 0:s.className)}),r.createElement(n.I,{data:a.A,size:i})))}},98192:(e,s,t)=>{t.d(s,{CU:()=>a,om:()=>l});var r=t(82435);const a="gc-",l=((0,r.withNaming)({e:"__",m:"_",v:"_"}),(0,r.withNaming)({n:a,e:"__",m:"_",v:"_"}))},18143:(e,s,t)=>{t.d(s,{k:()=>u});var r=t(59284);const a=(0,t(69220).om)("progress");function l(e){const{text:s,offset:t=0}=e;return s?r.createElement("div",{className:a("text-inner"),style:{transform:`translateX(calc(var(--g-flow-direction) * ${-t}%))`}},s):null}function n({item:e}){const{value:s,color:t,className:l,theme:n,title:o,content:i,loading:c}=e,d={loading:c};return"undefined"===typeof t&&(d.theme=n||"default"),Number.isFinite(s)?r.createElement("div",{className:a("item",d,l),style:{width:`${s}%`,backgroundColor:t},title:o},i):null}function o(e){return e<100?e-100:0}function i(e){const{theme:s,colorStops:t,colorStopsValue:r,value:a}=e;if(t){const e=t.find(((e,s)=>{const l="number"===typeof r?r:a,n=s>1?t[s-1].stop:0,o=s<t.length-1?e.stop:100;return l>=n&&l<=o}));return e?e.theme:s}return s}function c(e){const{stack:s,stackClassName:t,value:i,text:c}=e,d=o(i||function(e){return e.reduce(((e,{value:s})=>e+s),0)}(s));return r.createElement("div",{className:a("stack",t),style:{transform:`translateX(calc(var(--g-flow-direction) * ${d}%))`}},r.createElement("div",{className:a("item"),style:{width:-d+"%"}}),s.map(((e,s)=>r.createElement(n,{key:s,item:e}))),r.createElement(l,{offset:d,text:c}))}function d(e){const{value:s,loading:t,text:n}=e,c=o(s);return Number.isFinite(s)?r.createElement("div",{className:a("item",{theme:i(e),loading:t}),style:{transform:`translateX(calc(var(--g-flow-direction) * ${c}%))`}},r.createElement(l,{offset:c,text:n})):null}const u=r.forwardRef((function(e,s){const{text:t="",theme:l="default",size:n="m",loading:o=!1,className:i,qa:u}=e,v=Object.assign(Object.assign({},e),{text:t,theme:l,size:n,loading:o});return r.createElement("div",{ref:s,className:a({size:n},i),"data-qa":u},r.createElement("div",{className:a("text")},t),function(e){return void 0!==e.stack}(v)?r.createElement(c,Object.assign({},v)):r.createElement(d,Object.assign({},v)))}))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3940.f5079e40.chunk.js b/ydb/core/viewer/monitoring/static/js/3940.f5079e40.chunk.js deleted file mode 100644 index 56b8b6fd75..0000000000 --- a/ydb/core/viewer/monitoring/static/js/3940.f5079e40.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[3940],{8873:(e,t,n)=>{n.d(t,{A:()=>i});var o=n(59284);const i=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 1.5a6.5 6.5 0 0 1 6.445 5.649.75.75 0 1 1-1.488.194A5.001 5.001 0 0 0 4.43 4.5h1.32a.75.75 0 0 1 0 1.5h-3A.75.75 0 0 1 2 5.25v-3a.75.75 0 1 1 1.5 0v1.06A6.48 6.48 0 0 1 8 1.5m5.25 13a.75.75 0 0 0 .75-.75v-3a.75.75 0 0 0-.75-.75h-3a.75.75 0 1 0 0 1.5h1.32a5.001 5.001 0 0 1-8.528-2.843.75.75 0 1 0-1.487.194 6.501 6.501 0 0 0 10.945 3.84v1.059c0 .414.336.75.75.75",clipRule:"evenodd"}))},25569:(e,t,n)=>{n.d(t,{A:()=>i});var o=n(59284);const i=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.488 3.43a.75.75 0 0 1 .081 1.058l-6 7a.75.75 0 0 1-1.1.042l-3.5-3.5A.75.75 0 0 1 4.03 6.97l2.928 2.927 5.473-6.385a.75.75 0 0 1 1.057-.081",clipRule:"evenodd"}))},69024:(e,t,n)=>{n.d(t,{a:()=>s,j:()=>i});var o=n(59284);function i(e,t){return e.map((e=>{var n;let o;e.sub&&(o=i(e.sub,t));const s=null!==(n=t[e.name])&&void 0!==n?n:e.width;return Object.assign(Object.assign({},e),{width:s,sub:o})}))}function s({saveSizes:e,getSizes:t}){const[n,i]=o.useState((()=>t()));return[n,o.useCallback(((t,n)=>{i((o=>{const i=Object.assign(Object.assign({},o),{[t]:n});return e(i),i}))}),[e])]}},24555:(e,t,n)=>{n.d(t,{l:()=>te});var o=n(59284),i=n(359),s=n(85736),r=n(32084),l=n(27145),a=n(92609);var c=n(90826),u=n(51301),d=n(63246),h=n(34379),p=n(46819),v=n(28664),m=n(69220),f=n(56353),b=n(89226);const g=(0,m.om)("select-filter"),C={padding:"4px 4px 0"},E=o.forwardRef(((e,t)=>{const{onChange:n,onKeyDown:i,renderFilter:s,size:r,value:l,placeholder:a,popupId:c,activeIndex:u}=e,d=o.useRef(null);o.useImperativeHandle(t,(()=>({focus:()=>{var e;return null===(e=d.current)||void 0===e?void 0:e.focus({preventScroll:!0})}})),[]);const h={value:l,placeholder:a,size:1,onKeyDown:i,onChange:e=>{n(e.target.value)},"aria-label":(0,b.A)("label_filter"),"aria-controls":c,"aria-activedescendant":void 0===u?void 0:`${c}-item-${u}`};return s?s({onChange:n,onKeyDown:i,value:l,ref:d,style:C,inputProps:h}):o.createElement("div",{className:g(),style:C},o.createElement(v.k,{controlRef:d,controlProps:{className:g("input"),size:1,"aria-label":h["aria-label"],"aria-controls":h["aria-controls"],"aria-activedescendant":h["aria-activedescendant"]},size:r,value:l,placeholder:a,onUpdate:n,onKeyDown:i,qa:f.pn.FILTER_INPUT}))}));E.displayName="SelectFilter";var w=n(40091);const T=e=>Boolean(e&&"label"in e),S=e=>{const{getOptionHeight:t,getOptionGroupHeight:n,size:o,option:i,index:s,mobile:r}=e;let l=r?f.t5:f.KK[o];if(T(i)){const e=0===s?0:f.Vm;return l=""===i.label?0:l,n?n(i,s):l+e}return t?t(i,s):l},y=e=>"string"===typeof e.content?e.content:"string"===typeof e.children?e.children:e.text?e.text:e.value,O=e=>(e=>o.Children.toArray(e))(e).reduce(((e,{props:t})=>{if("label"in t){const n=t.options||(e=>o.Children.toArray(e).reduce(((e,{props:t})=>("value"in t&&e.push(t),e)),[]))(t.children);e.push({options:n,label:t.label})}return"value"in t&&e.push(Object.assign({},t)),e}),[]),R=(e,t)=>t?t.findIndex((t=>{if(T(t))return!1;if(t.disabled)return!1;const n=y(t);return(o=e,new RegExp(o.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"i")).test(n);var o})):-1,A=e=>{var t;return(null===(t=null===e||void 0===e?void 0:e.current)||void 0===t?void 0:t.getItems())||[]},x=e=>{const{options:t,filter:n,filterOption:o}=e,i=t.filter((e=>!!T(e)||(o?o(e,n):((e,t)=>{const n=y(e).toLocaleLowerCase(),o=t.toLocaleLowerCase();return-1!==n.indexOf(o)})(e,n))));return i.reduce(((e,t,n)=>{const o=T(t),s=T(e[e.length-1]),r=n===i.length-1;return o&&s&&e.pop(),(!o||o&&!r)&&e.push(t),e}),[])};function N(e){const t=e.offsetParent;if(t instanceof HTMLElement){const n=t.offsetHeight,o=t.scrollTop,i=e.offsetTop;i+e.offsetHeight>=o+n?t.scrollTo({top:i-n+e.offsetHeight}):i<=o&&t.scrollTo({top:i})}return!0}const H=(0,m.om)("select-list"),k=({option:e,renderOptionGroup:t})=>t?o.createElement("div",{className:H("group-label-custom")},t(e)):o.createElement("div",{className:H("group-label",{empty:""===e.label})},o.createElement("div",{className:H("group-label-content")},e.label));var z=n(25569),I=n(99991);const P=(0,m.om)("select-list"),L=({option:e})=>{const{content:t,children:n,disabled:i,title:s}=e;return o.createElement("span",{title:s,className:P("option-default-label",{disabled:i})},t||n)},M=e=>{const{renderOption:t,value:n,option:i,multiple:s}=e,r=-1!==n.indexOf(i.value),l=t?t(i):o.createElement(L,{option:i});return o.createElement("div",{"data-qa":i.qa,className:P("option",{colored:r&&!s,disabled:i.disabled})},s&&o.createElement(I.I,{className:P("tick-icon",{shown:r&&s}),data:z.A}),l)};var B=n(29322),D=n(74417);const F=e=>{const t=o.useRef(null);return(0,B.v)({element:t.current,onIntersect:null===e||void 0===e?void 0:e.onIntersect}),o.createElement("div",{ref:t,className:(0,f.C1)("loading-indicator")},o.createElement(D.a,null))},W={value:"__SELECT_LIST_ITEM_LOADING__",disabled:!0},j=o.forwardRef(((e,t)=>{const{onOptionClick:n,renderOption:i,renderOptionGroup:s,getOptionHeight:r,getOptionGroupHeight:l,size:a,flattenOptions:c,value:u,multiple:d,virtualized:h,mobile:p,loading:v,onLoadMore:m,id:b,activeIndex:g,onChangeActive:C}=e,E=o.useMemo((()=>v?[...c,W]:c),[c,v]),T=o.useMemo((()=>c.reduce(((e,t,n)=>("value"in t&&u.includes(t.value)&&e.push(n),e)),[])),[c,u]),y=(e=>{const{getOptionHeight:t,getOptionGroupHeight:n,size:o,options:i,mobile:s}=e;return i.reduce(((e,i,r)=>e+S({getOptionHeight:t,getOptionGroupHeight:n,size:o,option:i,index:r,mobile:s})),0)})({options:E,getOptionHeight:r,getOptionGroupHeight:l,size:a,mobile:p}),O=o.useCallback(((e,t)=>S({getOptionHeight:r,getOptionGroupHeight:l,size:a,option:e,index:t,mobile:p})),[r,l,p,a]),R=o.useCallback(((e,t,n)=>{if("label"in e){const t=s?e=>s(e,{itemHeight:O(e,n)}):void 0;return o.createElement(k,{option:e,renderOptionGroup:t})}if(e.value===W.value)return o.createElement(F,{onIntersect:0===n?void 0:m});const r=i?e=>i(e,{itemHeight:O(e,n)}):void 0;return o.createElement(M,{option:e,value:u,multiple:d,renderOption:r})}),[i,s,u,d,O,m]);return o.createElement(w.B,{ref:t,className:(0,f.C1)({size:a,virtualized:h,mobile:p}),qa:f.pn.LIST,itemClassName:(0,f.C1)("item"),itemHeight:O,itemsHeight:h?y:void 0,items:E,filterable:!1,virtualized:h,renderItem:R,onItemClick:n,selectedItemIndex:T,id:b,role:"listbox",activeItemIndex:g,onChangeActive:C,deactivateOnLeave:!1,onScrollToItem:N})}));j.displayName="SelectList";const Y=(0,m.om)("select-empty-placeholder"),_=({renderEmptyOptions:e,filter:t})=>o.createElement("div",{className:Y({empty:!e})},null===e||void 0===e?void 0:e({filter:t}));var $=n(19884),V=n(93628),q=n(794);function G(e){const{name:t,value:n,disabled:i,form:s,onReset:r}=e,l=(0,q.d)({onReset:r,initialValue:n});return!t||i?null:0===n.length?o.createElement("input",{ref:l,type:"hidden",name:t,value:n,form:s,disabled:i}):o.createElement(o.Fragment,null,n.map(((e,n)=>o.createElement("input",{key:e,ref:0===n?l:void 0,value:e,type:"hidden",name:t,form:s,disabled:i}))))}const K=e=>{const{onChange:t,open:n,disabled:s}=e,[r,l]=o.useState(""),[a,c]=o.useState(),u=o.useCallback((e=>{if(clearTimeout(a),e){const e=window.setTimeout((()=>l("")),f.FY);c(e)}}),[a]),d=o.useCallback((e=>{e.stopPropagation();const t=((e,t)=>{const n=1===e.length;let o="";return e===i.D.BACKSPACE&&t.length?o=t.slice(0,t.length-1):n&&(o=(t+e).trim()),o})(e.key,r);r!==t&&(u(t),l(t))}),[u,r]);o.useEffect((()=>(n&&!s?document.addEventListener("keydown",d):n||s||l(""),()=>{n&&!s&&document.removeEventListener("keydown",d)})),[d,n,s]),o.useEffect((()=>(n||clearTimeout(a),()=>clearTimeout(a))),[n,a]),o.useEffect((()=>{t(r)}),[t,r])};function U(e,t){let n=-1;return t.length>0&&(n=e.findIndex((e=>"value"in e&&t.includes(e.value)&&!e.disabled))),-1===n&&(n=e.findIndex((e=>"value"in e&&!e.disabled))),-1===n?void 0:n}var J=n(87924),Z=n.n(J);function X(e){return Z()(e,[f.zJ])}function Q(e){const{filter:t="",filterable:n,filterOption:i}=e,s=o.useMemo((()=>X(e.options)?e.options:(e=>{const t=e.reduce(((e,t)=>("label"in t?(e.push({label:t.label,disabled:!0,data:t.data}),e.push(...t.options||[])):e.push(t),e)),[]);return Object.defineProperty(t,f.zJ,{enumerable:!1,value:{}}),t})(e.options)),[e.options]),r=o.useMemo((()=>n?x({options:s,filter:t,filterOption:i}):s),[t,n,i,s]);return s[f.zJ].filteredOptions=r,s}const ee=({renderFilter:e,renderList:t})=>o.createElement(o.Fragment,null,e(),t()),te=o.forwardRef((function(e,t){const{onUpdate:n,onOpenChange:v,onFilterChange:m,renderControl:b,renderFilter:g,renderOption:C,renderOptionGroup:w,renderSelectedOption:S,renderEmptyOptions:x,renderPopup:N=ee,getOptionHeight:H,getOptionGroupHeight:k,filterOption:z,name:I,form:P,className:L,controlClassName:M,popupClassName:B,qa:D,value:F,defaultValue:W,defaultOpen:Y,open:q,label:J,placeholder:te,filterPlaceholder:ne,width:oe,popupWidth:ie,popupPlacement:se,error:re,virtualizationThreshold:le=f.Us,view:ae="normal",size:ce="m",pin:ue="round-round",multiple:de=!1,disabled:he=!1,filterable:pe=!1,filter:ve,disablePortal:me,hasClear:fe=!1,onClose:be,id:ge,hasCounter:Ce,renderCounter:Ee,title:we}=e,Te=(0,p.I)(),[Se,ye]=(0,s.P)(ve,"",m),Oe=o.useRef(null),Re=o.useRef(null),Ae=o.useRef(null),xe=o.useRef(null),Ne=(0,r.N)(t,Re),{value:He,open:ke,toggleOpen:ze,setValue:Ie,handleSelection:Pe,handleClearValue:Le}=(({defaultOpen:e,onClose:t,onOpenChange:n,open:i,value:r,defaultValue:c=[],multiple:u,onUpdate:d,disabled:h})=>{const[p,v]=(0,s.P)(r,c,d),[m,f]=o.useState(),b=(0,a.F)({defaultOpen:e,onClose:t,onOpenChange:n,open:i}),{toggleOpen:g}=b,C=(0,l.Tt)(b,["toggleOpen"]),E=o.useCallback((e=>{h||v(e)}),[v,h]),w=o.useCallback((e=>{if(!p.includes(e.value)){const t=[e.value];E(t)}g(!1)}),[p,E,g]),T=o.useCallback((e=>{const t=p.includes(e.value)?p.filter((t=>t!==e.value)):[...p,e.value];E(t)}),[p,E]),S=o.useCallback((e=>{u?T(e):w(e)}),[u,w,T]),y=o.useCallback((()=>{E([])}),[E]);return Object.assign({value:p,activeIndex:m,setValue:E,handleSelection:S,handleClearValue:y,toggleOpen:g,setActiveIndex:f},C)})({onUpdate:n,value:F,defaultValue:W,defaultOpen:Y,multiple:de,open:q,onClose:be,onOpenChange:v,disabled:he});o.useEffect((()=>{!ke&&pe&&Te&&setTimeout((()=>{ye("")}),300)}),[ke,pe,ye,Te]);const Me=Q({options:e.options||O(e.children),filter:Se,filterable:pe,filterOption:z}),Be=function(e){if(!X(e))throw Error("You should use options generated by useSelectOptions hook");return Z()(e,[f.zJ,"filteredOptions"])}(Me),De=((e,t,n)=>{if(0===t.length)return null;const i=e.filter((e=>!T(e))),s=t.reduce(((e,t)=>{const n=i.find((e=>e.value===t));return e.push(n||{value:t}),e}),[]);return n?s.map(((e,t)=>o.createElement(o.Fragment,{key:e.value},n(e,t)))):s.map((e=>y(e))).join(", ")})(Me,He,S),Fe=Be.length>=le,{errorMessage:We,errorPlacement:je,validationState:Ye}=(0,h.Av)({error:re,errorMessage:e.errorMessage,errorPlacement:e.errorPlacement||"outside",validationState:e.validationState}),_e=(0,c.u)(),$e="invalid"===Ye,Ve=$e&&Boolean(We)&&"outside"===je,qe=$e&&Boolean(We)&&"inside"===je,Ge=o.useCallback((e=>{var t,n;if(e&&!(null===e||void 0===e?void 0:e.disabled)&&!("label"in e)){if(de){const e=null===(t=null===xe||void 0===xe?void 0:xe.current)||void 0===t?void 0:t.getActiveItem();null===(n=Ae.current)||void 0===n||n.focus(),"number"===typeof e&&setTimeout((()=>{var t;null===(t=null===xe||void 0===xe?void 0:xe.current)||void 0===t||t.activateItem(e,!0)}),50)}Pe(e)}}),[Pe,de]),Ke=o.useCallback((e=>{var t;[i.D.ENTER,i.D.SPACEBAR].includes(e.key)&&ke&&(e.preventDefault(),e.key===i.D.SPACEBAR&&Ge((e=>{var t;const n=A(e),o=null===(t=null===e||void 0===e?void 0:e.current)||void 0===t?void 0:t.getActiveItem();return"number"===typeof o?n[o]:void 0})(xe))),[i.D.ARROW_DOWN,i.D.ARROW_UP].includes(e.key)&&!ke&&(e.preventDefault(),ze()),null===(t=null===xe||void 0===xe?void 0:xe.current)||void 0===t||t.onKeyDown(e)}),[Ge,ke,ze]),Ue=o.useCallback((e=>{var t;null===(t=null===xe||void 0===xe?void 0:xe.current)||void 0===t||t.onKeyDown(e)}),[]),Je=o.useCallback((e=>{var t;if(e){const n=R(e,A(xe));"number"===typeof n&&-1!==n&&(null===(t=null===xe||void 0===xe?void 0:xe.current)||void 0===t||t.activateItem(n,!0))}}),[]);K({onChange:Je,open:ke,disabled:pe}),o.useEffect((()=>{var e;ke&&pe&&(null===(e=Ae.current)||void 0===e||e.focus())}),[ke,pe]);const Ze=Object.assign({},"max"===oe&&{width:oe}),Xe={};"number"===typeof oe&&(Xe.width=oe);const Qe=o.useCallback((()=>ze(!1)),[ze]),{onFocus:et,onBlur:tt}=e,{focusWithinProps:nt}=(0,u.R)({onFocusWithin:et,onBlurWithin:o.useCallback((e=>{null===tt||void 0===tt||tt(e),Qe()}),[Qe,tt])}),ot=(0,c.u)(),it=null!==ge&&void 0!==ge?ge:ot,st=`select-popup-${it}`,[rt,lt]=function({options:e,value:t,open:n}){const[i,s]=o.useState((()=>{if(n)return U(e,t)})),[r,l]=o.useState(n);return r!==n&&(l(n),n&&s(U(e,t))),[n&&void 0!==i&&i<e.length&&!e[i].disabled?i:void 0,s]}({options:Be,open:ke,value:He});return o.createElement("div",Object.assign({ref:Oe,className:(0,f.gm)(Ze,L)},nt,{style:Xe,tabIndex:-1}),o.createElement($.Y,{toggleOpen:ze,hasClear:fe,clearValue:Le,ref:Ne,className:M,qa:D,view:ae,size:ce,pin:ue,label:J,placeholder:te,selectedOptionsContent:De,isErrorVisible:$e,errorMessage:qe?We:void 0,open:ke,disabled:he,onKeyDown:Ke,renderControl:b,value:He,popupId:st,selectId:it,activeIndex:rt,hasCounter:de&&Ce,renderCounter:Ee,title:we}),o.createElement(V.t,{ref:Oe,className:B,controlRef:Re,width:ie,open:ke,handleClose:Qe,disablePortal:me,virtualized:Fe,mobile:Te,placement:se,onAfterClose:pe?()=>{ye("")}:void 0},N({renderFilter:()=>pe?o.createElement(E,{ref:Ae,size:ce,value:Se,placeholder:ne,onChange:ye,onKeyDown:Ue,renderFilter:g,popupId:st,activeIndex:rt}):null,renderList:()=>Be.length||e.loading?o.createElement(j,{ref:xe,size:ce,value:He,mobile:Te,flattenOptions:Be,multiple:de,virtualized:Fe,onOptionClick:Ge,renderOption:C,renderOptionGroup:w,getOptionHeight:H,getOptionGroupHeight:k,loading:e.loading,onLoadMore:e.onLoadMore,id:st,activeIndex:rt,onChangeActive:lt}):o.createElement(_,{filter:Se,renderEmptyOptions:x})})),o.createElement(d.o,{errorMessage:Ve?We:null,errorMessageId:_e}),o.createElement(G,{name:I,value:He,disabled:he,form:P,onReset:Ie}))}));te.Option=e=>null,te.OptionGroup=e=>null},19884:(e,t,n)=>{n.d(t,{Y:()=>g});var o=n(59284),i=n(94420),s=n(13066),r=n(905),l=n.n(r),a=n(90826),c=n(99991),u=n(84375),d=n(56353),h=n(89226),p=n(81240);const v=e=>{const{size:t,onClick:n,onMouseEnter:i,onMouseLeave:s,renderIcon:r}=e,l=r?r():o.createElement(c.I,{className:(0,d.Di)("clear"),data:p.A});return o.createElement("button",{className:(0,d.Di)({size:t}),"aria-label":(0,h.A)("label_clear"),onClick:n,onMouseEnter:i,onMouseLeave:s,"data-qa":d.pn.CLEAR,type:"button"},l)};v.displayName="SelectClear";var m=n(98089);const f=(0,n(69220).om)("select-counter");function b({count:e,size:t,disabled:n}){return o.createElement("div",{className:f({size:t})},o.createElement(m.E,{variant:"xl"===t?"body-2":"body-1",color:n?"hint":"primary",className:f("text")},e))}const g=o.forwardRef(((e,t)=>{const{toggleOpen:n,clearValue:r,onKeyDown:p,renderControl:m,view:f,size:g,pin:C,selectedOptionsContent:E,className:w,qa:T,label:S,placeholder:y,isErrorVisible:O,errorMessage:R,open:A,disabled:x,value:N,hasClear:H,popupId:k,selectId:z,activeIndex:I,renderCounter:P,hasCounter:L,title:M}=e,B=Boolean(E),D=Boolean(y&&!B),F=Array.isArray(N)&&!l()(N.filter(Boolean)),W=(0,a.u)(),[j,Y]=o.useState(!1),_={open:A,size:g,pin:C,disabled:x,error:O,"has-clear":H,"no-active":j,"has-value":F},$={open:A,size:g,view:f,pin:C,disabled:x,error:O},V=o.useCallback((e=>{e&&e.currentTarget!==document.activeElement&&"focus"in e.currentTarget&&e.currentTarget.focus(),n()}),[n]),q=o.useCallback((()=>{Y(!0)}),[]),G=o.useCallback((()=>{Y(!1)}),[]),K=o.useCallback((()=>{Y(!1),r()}),[r]),U=()=>{if(!L)return null;const e=N.length,t=o.createElement(b,{count:e,size:g,disabled:x});return P?P(t,{count:e,size:g,disabled:x}):t},J=e=>{const t=0===N.length;return!H||t||x?null:o.createElement(v,{size:g,onClick:K,onMouseEnter:q,onMouseLeave:G,renderIcon:e.renderIcon})},Z={id:z,role:"combobox","aria-controls":A?k:void 0,"aria-haspopup":"listbox","aria-expanded":A,"aria-activedescendant":void 0===I?void 0:`${k}-item-${I}`,onClick:V,onKeyDown:p,disabled:x};return m?m({onKeyDown:p,onClear:r,onClick:V,renderClear:J,renderCounter:U,ref:t,open:A,popupId:k,selectId:z,activeIndex:I,disabled:x,triggerProps:Z},{value:N}):o.createElement(o.Fragment,null,o.createElement("div",{className:(0,d.ji)(_),role:"group"},o.createElement("button",Object.assign({ref:t,className:(0,d.Zz)($,w),type:"button","data-qa":T,title:M,tabIndex:0},Z),S&&o.createElement("span",{className:(0,d.ji)("label")},S),D&&o.createElement("span",{className:(0,d.ji)("placeholder")},y),B&&o.createElement("span",{className:(0,d.ji)("option-text")},E)),U(),J({}),R&&o.createElement(u.A,{content:R,tooltipId:W},o.createElement("button",{"aria-label":(0,h.A)("label_show-error-info"),"aria-describedby":W,className:(0,d.ji)("error-icon")},o.createElement(c.I,{data:i.A,size:"s"===g?12:16}))),o.createElement(c.I,{className:(0,d.ji)("chevron-icon",{disabled:x}),data:s.A,"aria-hidden":"true"})))}));g.displayName="SelectControl"},93628:(e,t,n)=>{n.d(t,{t:()=>p});var o=n(59284),i=n(39238),s=n(12640),r=n(69220),l=n(56353);const a=e=>e-2*l.gP,c=(e,t,n)=>{let o=t;return o="number"===typeof e?e:"fit"===e?a(t):((e,t)=>t?e>l.Eq?e:l.Eq:a(e))(t,n),`${o}px`},u=e=>{const{width:t,disablePortal:n,virtualized:o}=e;return[{name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e,name:n})=>{var i;if(null===(i=e.modifiersData[`${n}#persistent`])||void 0===i?void 0:i.skip)return;const s=c(t,e.rects.reference.width,o);"number"!==typeof t&&"fit"!==t?(e.styles.popper.minWidth=s,e.styles.popper.width=void 0):(e.styles.popper.minWidth=s,e.styles.popper.width=s),e.styles.popper.maxWidth=`max(90vw, ${a(e.rects.reference.width)}px)`,e.modifiersData[`${n}#persistent`]={skip:"number"!==typeof t}},effect:({state:e,name:n})=>{var i;if(null===(i=e.modifiersData[`${n}#persistent`])||void 0===i?void 0:i.skip)return;const s=c(t,e.elements.reference.offsetWidth,o);"number"!==typeof t&&"fit"!==t?e.elements.popper.style.minWidth=s:(e.elements.popper.style.minWidth=s,e.elements.popper.style.width=s),e.elements.popper.style.maxWidth=`max(90vw, ${e.elements.reference.offsetWidth}px)`}},{name:"preventOverflow",options:{padding:10,altBoundary:n,altAxis:!0}}]},d=(0,r.om)("select-popup"),h=["bottom-start","bottom-end","top-start","top-end"],p=o.forwardRef((({handleClose:e,onAfterClose:t,width:n,open:r,placement:a=h,controlRef:c,children:p,className:v,disablePortal:m,virtualized:f,mobile:b,id:g},C)=>b?o.createElement(s.c,{qa:l.pn.SHEET,className:v,visible:Boolean(r),onClose:e},p):o.createElement(i.z,{contentClassName:d(null,v),qa:l.pn.POPUP,anchorRef:C,placement:a,offset:[l.gP,l.gP],open:r,onClose:e,disablePortal:m,restoreFocus:!0,restoreFocusRef:c,modifiers:u({width:n,disablePortal:m,virtualized:f}),id:g,onTransitionExited:t},p)));p.displayName="SelectPopup"},56353:(e,t,n)=>{n.d(t,{C1:()=>l,Di:()=>a,Eq:()=>p,FY:()=>v,KK:()=>c,Us:()=>m,Vm:()=>d,Zz:()=>r,gP:()=>h,gm:()=>i,ji:()=>s,pn:()=>f,t5:()=>u,zJ:()=>b});var o=n(69220);const i=(0,o.om)("select"),s=(0,o.om)("select-control"),r=(0,o.om)("select-control__button"),l=(0,o.om)("select-list"),a=(0,o.om)("select-clear"),c={s:28,m:28,l:32,xl:36},u=32,d=5,h=1,p=100,v=2e3,m=50,f={LIST:"select-list",POPUP:"select-popup",SHEET:"select-sheet",CLEAR:"select-clear",FILTER_INPUT:"select-filter-input"},b=Symbol("flatten")},89226:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(72837);const i=JSON.parse('{"label_clear":"Clear","label_show-error-info":"Show popup with error info","label_filter":"Filter"}'),s=JSON.parse('{"label_clear":"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c","label_show-error-info":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u043e\u043f\u0430\u043f \u0441 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0435\u0439 \u043e\u0431 \u043e\u0448\u0438\u0431\u043a\u0435","label_filter":"\u0424\u0438\u043b\u044c\u0442\u0440"}'),r=(0,o.N)({en:i,ru:s},"Select")},12640:(e,t,n)=>{n.d(t,{c:()=>m});var o=n(59284),i=n(14794),s=n(98392),r=n(27145),l=n(67459);var a=n(11507);const c=(0,n(69220).om)("sheet");class u{constructor(e,t){this.x=e,this.y=t,this.timeStamp=Date.now()}}class d{constructor(e=5){this.points=[],this.pointsLen=e,this.clear()}clear(){this.points=new Array(this.pointsLen)}addMovement({x:e,y:t}){this.points.pop(),this.points.unshift(new u(e,t))}getYAcceleration(e=1){const t=this.points[0],n=this.points[e];return t&&n?(t.y-n.y)/Math.pow(t.timeStamp-n.timeStamp,2):0}}let h=[];class p extends o.Component{constructor(){super(...arguments),this.veilRef=o.createRef(),this.sheetRef=o.createRef(),this.sheetTopRef=o.createRef(),this.sheetContentBoxRef=o.createRef(),this.sheetScrollContainerRef=o.createRef(),this.velocityTracker=new d,this.observer=null,this.resizeWindowTimer=null,this.state={startScrollTop:0,startY:0,deltaY:0,prevSheetHeight:0,swipeAreaTouched:!1,contentTouched:!1,veilTouched:!1,isAnimating:!1,inWindowResizeScope:!1},this.setStyles=({status:e,deltaHeight:t=0})=>{if(!this.sheetRef.current||!this.veilRef.current)return;const n=this.sheetHeight-t,o="showing"===e?`translate3d(0, -${n}px, 0)`:"translate3d(0, 0, 0)";let i=0;"showing"===e&&(i=0===t?1:n/this.sheetHeight),this.veilRef.current.style.opacity=String(i),this.sheetRef.current.style.transform=o},this.getAvailableContentHeight=e=>{const t=.9*window.innerHeight-this.sheetTopHeight;return e>=t?t:e},this.show=()=>{this.setState({isAnimating:!0},(()=>{this.setStyles({status:"showing"}),this.setHash()}))},this.hide=()=>{this.setState({isAnimating:!0},(()=>{this.setStyles({status:"hiding"}),this.removeHash()}))},this.onSwipeAreaTouchStart=e=>{this.velocityTracker.clear(),this.setState({startY:e.nativeEvent.touches[0].clientY,swipeAreaTouched:!0})},this.onContentTouchStart=e=>{this.props.allowHideOnContentScroll&&!this.state.swipeAreaTouched&&(this.velocityTracker.clear(),this.setState({startY:e.nativeEvent.touches[0].clientY,startScrollTop:this.sheetScrollTop,contentTouched:!0}))},this.onSwipeAriaTouchMove=e=>{const t=e.nativeEvent.touches[0].clientY-this.state.startY;this.velocityTracker.addMovement({x:e.nativeEvent.touches[0].clientX,y:e.nativeEvent.touches[0].clientY}),this.setState({deltaY:t}),t<=0||this.setStyles({status:"showing",deltaHeight:t})},this.onContentTouchMove=e=>{if(!this.props.allowHideOnContentScroll)return;if(!this.state.startY)return void this.onContentTouchStart(e);const{startScrollTop:t,swipeAreaTouched:n}=this.state;if(n||this.sheetScrollTop>0||t>0&&t!==this.sheetScrollTop)return;const o=e.nativeEvent.touches[0].clientY-this.state.startY;this.velocityTracker.addMovement({x:e.nativeEvent.touches[0].clientX,y:e.nativeEvent.touches[0].clientY}),this.setState({deltaY:o}),o<=0||this.setStyles({status:"showing",deltaHeight:o})},this.onTouchEndAction=e=>{const t=this.velocityTracker.getYAcceleration();this.sheetHeight<=e?this.props.hideSheet():e>50&&t<=.08&&t>=-.02||t>.08?this.hide():0!==e&&this.show()},this.onSwipeAriaTouchEnd=()=>{const{deltaY:e}=this.state;this.onTouchEndAction(e),this.setState({startY:0,deltaY:0,swipeAreaTouched:!1})},this.onContentTouchEnd=()=>{const{deltaY:e,swipeAreaTouched:t}=this.state;this.props.allowHideOnContentScroll&&!t&&(this.onTouchEndAction(e),this.setState({startY:0,deltaY:0,contentTouched:!1}))},this.onVeilClick=()=>{this.setState({veilTouched:!0}),this.hide()},this.onVeilTransitionEnd=()=>{this.setState({isAnimating:!1}),"0"===this.veilOpacity&&this.props.hideSheet()},this.onContentTransitionEnd=e=>{"height"===e.propertyName&&this.sheetScrollContainerRef.current&&(this.sheetScrollContainerRef.current.style.transition="none")},this.onResizeWindow=()=>{this.state.isAnimating||(this.setState({inWindowResizeScope:!0}),this.resizeWindowTimer&&window.clearTimeout(this.resizeWindowTimer),this.resizeWindowTimer=window.setTimeout((()=>{this.onResize()}),50))},this.onResize=()=>{if(!this.sheetRef.current||!this.sheetScrollContainerRef.current)return;const e=this.sheetContentHeight;if(e===this.state.prevSheetHeight&&!this.state.inWindowResizeScope)return;const t=this.getAvailableContentHeight(e);this.sheetScrollContainerRef.current.style.transition=this.state.prevSheetHeight>e?"height 0s ease 0.3s":"none",this.sheetScrollContainerRef.current.style.height=`${t}px`,this.sheetRef.current.style.transform=`translate3d(0, -${t+this.sheetTopHeight}px, 0)`,this.setState({prevSheetHeight:e,inWindowResizeScope:!1})}}componentDidMount(){this.addListeners(),this.show();const e=this.getAvailableContentHeight(this.sheetContentHeight);this.setInitialStyles(e),this.setState({prevSheetHeight:e})}componentDidUpdate(e){const{visible:t,location:n}=this.props;!e.visible&&t&&this.show(),(e.visible&&!t||this.shouldClose(e))&&this.hide(),e.location.pathname!==n.pathname&&(h=[])}componentWillUnmount(){this.removeListeners()}render(){const{content:e,contentClassName:t,swipeAreaClassName:n,hideTopBar:i,title:s}=this.props,{deltaY:r,swipeAreaTouched:l,contentTouched:a,veilTouched:u,isAnimating:d}=this.state,h={"with-transition":!r||u},p={"with-transition":h["with-transition"]},v={"without-scroll":r>0&&a||l};return o.createElement(o.Fragment,null,o.createElement("div",{ref:this.veilRef,className:c("veil",h),onClick:d?void 0:this.onVeilClick,onTransitionEnd:this.onVeilTransitionEnd,role:"presentation"}),o.createElement("div",{ref:this.sheetRef,className:c("sheet",p),role:"dialog","aria-modal":"true","aria-label":s},!i&&o.createElement("div",{ref:this.sheetTopRef,className:c("sheet-top")},o.createElement("div",{className:c("sheet-top-resizer")})),o.createElement("div",{className:c("sheet-swipe-area",n),onTouchStart:this.onSwipeAreaTouchStart,onTouchMove:this.onSwipeAriaTouchMove,onTouchEnd:this.onSwipeAriaTouchEnd}),o.createElement("div",{ref:this.sheetScrollContainerRef,className:c("sheet-scroll-container",v),onTouchStart:this.onContentTouchStart,onTouchMove:this.onContentTouchMove,onTouchEnd:this.onContentTouchEnd,onTransitionEnd:this.onContentTransitionEnd},o.createElement("div",{ref:this.sheetContentBoxRef,className:c("sheet-content-box")},o.createElement("div",{className:c("sheet-content-box-border-compensation")},o.createElement("div",{className:c("sheet-content",t)},s&&o.createElement("div",{className:c("sheet-content-title")},s),o.createElement("div",null,e)))))))}get veilOpacity(){var e;return(null===(e=this.veilRef.current)||void 0===e?void 0:e.style.opacity)||0}get sheetTopHeight(){var e;return(null===(e=this.sheetTopRef.current)||void 0===e?void 0:e.getBoundingClientRect().height)||0}get sheetHeight(){var e;return(null===(e=this.sheetRef.current)||void 0===e?void 0:e.getBoundingClientRect().height)||0}get sheetScrollTop(){var e;return(null===(e=this.sheetScrollContainerRef.current)||void 0===e?void 0:e.scrollTop)||0}get sheetContentHeight(){var e;return(null===(e=this.sheetContentBoxRef.current)||void 0===e?void 0:e.getBoundingClientRect().height)||0}setInitialStyles(e){this.sheetScrollContainerRef.current&&this.sheetContentBoxRef.current&&(this.sheetScrollContainerRef.current.style.height=`${e}px`)}addListeners(){window.addEventListener("resize",this.onResizeWindow),this.sheetContentBoxRef.current&&(this.observer=new ResizeObserver((()=>{this.state.inWindowResizeScope||this.onResize()})),this.observer.observe(this.sheetContentBoxRef.current))}removeListeners(){window.removeEventListener("resize",this.onResizeWindow),this.observer&&this.observer.disconnect()}setHash(){const{id:e,platform:t,location:n,history:o}=this.props;if(t===l.O.BROWSER)return;const i=Object.assign(Object.assign({},n),{hash:e});switch(t){case l.O.IOS:n.hash&&h.push(n.hash),o.replace(i);break;case l.O.ANDROID:o.push(i)}}removeHash(){var e;const{id:t,platform:n,location:o,history:i}=this.props;if(n!==l.O.BROWSER&&o.hash===`#${t}`)switch(n){case l.O.IOS:i.replace(Object.assign(Object.assign({},o),{hash:null!==(e=h.pop())&&void 0!==e?e:""}));break;case l.O.ANDROID:i.goBack()}}shouldClose(e){const{id:t,platform:n,location:o,history:i}=this.props;return n!==l.O.BROWSER&&"POP"===i.action&&e.location.hash!==o.hash&&o.hash!==`#${t}`}}p.defaultProps={id:"sheet",allowHideOnContentScroll:!0};const v=function(e){var t;const n=(i=e).displayName||i.name||"Component";var i;return(t=class extends o.Component{render(){return o.createElement(e,Object.assign({},this.props,{mobile:this.context.mobile,platform:this.context.platform,useHistory:this.context.useHistory,useLocation:this.context.useLocation}))}}).displayName=`withMobile(${n})`,t.contextType=a.G,t}(function(e){const t=t=>{const{useHistory:n,useLocation:i}=t,s=(0,r.Tt)(t,["useHistory","useLocation"]);return o.createElement(e,Object.assign({},s,{history:n(),location:i()}))},n=e.displayName||e.name||"Component";return t.displayName=`withRouterWrapper(${n})`,t}(p)),m=({children:e,onClose:t,visible:n,id:r,title:l,className:a,contentClassName:u,swipeAreaClassName:d,allowHideOnContentScroll:h,hideTopBar:p,qa:m})=>{const[f,b]=o.useState(n),[g,C]=o.useState(n);(0,i.y)({enabled:f}),!g&&n&&b(!0),n!==g&&C(n);return f?o.createElement(s.Z,null,o.createElement("div",{"data-qa":m,className:c(null,a)},o.createElement(v,{id:r,content:e,contentClassName:u,swipeAreaClassName:d,title:l,visible:n,allowHideOnContentScroll:h,hideTopBar:p,hideSheet:()=>{t&&t(),b(!1)}}))):null}},51301:(e,t,n)=>{n.d(t,{R:()=>s});var o=n(59284);class i{constructor(e,t,n={}){var o,i;this.nativeEvent=t,this.target=null!==(o=n.target)&&void 0!==o?o:t.target,this.currentTarget=null!==(i=n.currentTarget)&&void 0!==i?i:t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}}function s(e){const{onFocusWithin:t,onBlurWithin:n,onFocusWithinChange:s,isDisabled:r}=e,l=o.useRef(!1),a=o.useCallback((e=>{l.current||document.activeElement!==e.target||(l.current=!0,t&&t(e),s&&s(!0))}),[t,s]),c=o.useCallback((e=>{l.current&&(l.current=!1,n&&n(e),s&&s(!1))}),[n,s]),{onBlur:u,onFocus:d}=function({onFocus:e,onBlur:t,isDisabled:n}){const s=o.useRef(!1),r=o.useRef(null);o.useEffect((()=>{if(n)return;const e=function(){s.current=!1},o=function(e){if(!s.current&&r.current){const n=new FocusEvent("blur",Object.assign(Object.assign({},e),{relatedTarget:e.target,bubbles:!1,cancelable:!1}));t(new i("blur",n,{target:r.current,currentTarget:r.current})),r.current=null}};return window.addEventListener("focus",e,{capture:!0}),window.addEventListener("focusin",o),()=>{window.removeEventListener("focus",e,{capture:!0}),window.removeEventListener("focusin",o)}}),[n,t]);const l=o.useCallback((e=>{document.activeElement===e.target||null!==e.relatedTarget&&e.relatedTarget!==document.body&&e.relatedTarget!==document||(t(e),r.current=null)}),[t]),a=function(e){const t=o.useRef({isFocused:!1,observer:null});return o.useEffect((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]),o.useCallback((n=>{const o=n.target;if(o instanceof HTMLButtonElement||o instanceof HTMLInputElement||o instanceof HTMLTextAreaElement||o instanceof HTMLSelectElement){t.current.isFocused=!0;const n=n=>{t.current.isFocused=!1,o.disabled&&(null===e||void 0===e||e(new i("blur",n))),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",n,{once:!0});const s=new MutationObserver((()=>{if(t.current.isFocused&&o.disabled){s.disconnect(),t.current.observer=null;const e=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),o.dispatchEvent(new FocusEvent("focusout",{relatedTarget:e,bubbles:!0}))}}));s.observe(o,{attributes:!0,attributeFilter:["disabled"]}),t.current.observer=s}}),[e])}(t),c=o.useCallback((t=>{s.current=!0,r.current=t.target,a(t),e(t)}),[a,e]);return{onBlur:l,onFocus:c}}({onFocus:a,onBlur:c,isDisabled:r});return r?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:u}}}},92609:(e,t,n)=>{n.d(t,{F:()=>s});var o=n(59284),i=n(85736);const s=e=>{var t;const{onOpenChange:n,onClose:s}=e,r=o.useCallback((e=>{null===n||void 0===n||n(e),!1===e&&s&&s()}),[n,s]),[l,a]=(0,i.P)(e.open,null!==(t=e.defaultOpen)&&void 0!==t&&t,r),c=o.useCallback((e=>{a("boolean"===typeof e?e:!l)}),[l,a]);return{open:l,toggleOpen:c}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/4130.4d4b9fad.chunk.js b/ydb/core/viewer/monitoring/static/js/4130.4d4b9fad.chunk.js new file mode 100644 index 0000000000..fa73a6b17a --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/4130.4d4b9fad.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[4130],{23536:(e,t,n)=>{var i=n(68814),s=/[\\^$.*+?()[\]{}|]/g,a=RegExp(s.source);e.exports=function(e){return(e=i(e))&&a.test(e)?e.replace(s,"\\$&"):e}},38501:(e,t,n)=>{"use strict";n.d(t,{D:()=>s});var i=n(46878);function s(){return(0,i.w)().theme}},69775:(e,t,n)=>{"use strict";n.d(t,{O:()=>Ce});var i=n(59284),s=n(27738),a=n(84476),d=n(99991),l=n(66821);const r=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.5 6V5a2.5 2.5 0 0 0-5 0v1zM4 5v1a3 3 0 0 0-3 3v3a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V9a3 3 0 0 0-3-3V5a4 4 0 0 0-8 0m6.5 2.5H12A1.5 1.5 0 0 1 13.5 9v3a1.5 1.5 0 0 1-1.5 1.5H4A1.5 1.5 0 0 1 2.5 12V9A1.5 1.5 0 0 1 4 7.5zm-1.75 2a.75.75 0 0 0-1.5 0v2a.75.75 0 0 0 1.5 0z",clipRule:"evenodd"}));var o=n(53202),c=n(90826),u=n(46734),m=n(98089),p=n(32084),I=n(51301),v=n(92609),b=n(19884),g=n(93628),f=n(27145),y=n(87184),h=n(69220);const x=(0,h.om)("list-container-view"),S=i.forwardRef((function({as:e="div",role:t="listbox",children:n,id:s,className:a,fixedHeight:d,extraProps:l,qa:r,style:o},c){return i.createElement(y.s,Object.assign({qa:r,as:e,direction:"column",ref:c,grow:!0,tabIndex:-1,id:s,role:t,style:o,className:x({"fixed-height":d},a)},l),n)})),B=e=>null!==e&&"object"===typeof e&&"data"in e,E=(0,h.om)("list-recursive-renderer");function C(e){var t,{id:n,itemSchema:s,list:a}=e,d=(0,f.Tt)(e,["id","itemSchema","list"]);const l=d.children(n,a.structure.idToFlattenIndex[n]);if(B(s)&&s.children){const e=!a.state.expandedById||!(n in a.state.expandedById)||a.state.expandedById[n];return i.createElement("ul",{style:d.style,className:E(null,d.className),role:"group"},l,e&&Boolean(null===(t=a.structure.groupsState[n])||void 0===t?void 0:t.childrenIds)&&s.children.map(((e,t)=>i.createElement(C,Object.assign({list:a,id:a.structure.groupsState[n].childrenIds[t],itemSchema:e,key:t},d)))))}return l}function O(e){var{containerRef:t,renderItem:n,list:s}=e,a=(0,f.Tt)(e,["containerRef","renderItem","list"]);return i.createElement(S,Object.assign({ref:t},a),s.structure.items.map(((e,t)=>i.createElement(C,{key:t,itemSchema:e,id:s.structure.rootIds[t],list:s},n))))}const w=({list:e,multiple:t})=>({id:n})=>{e.state.disabledById[n]||(e.state.setActiveItemId(n),e.state.expandedById&&n in e.state.expandedById&&e.state.setExpanded?e.state.setExpanded((e=>Object.assign(Object.assign({},e),{[n]:!e[n]}))):e.state.setSelected((e=>Object.assign(Object.assign({},t?e:{}),{[n]:!t||!e[n]}))))};var j=n(359);const k="data-list-item",N={s:[22,44],m:[26,44],l:[34,52],xl:[44,62]},R=({containerRef:e,onItemClick:t,enabled:n,list:s})=>{const a=i.useCallback(((t,n=!0)=>{var i,a;"number"===typeof t&&s.structure.visibleFlattenIds[t]&&(n&&((e,t)=>{var n;if(document){const i=(t||document).querySelector(`[${k}="${e}"]`);i&&(null===(n=i.scrollIntoView)||void 0===n||n.call(i,{block:"nearest"}))}})(s.structure.visibleFlattenIds[t],null===e||void 0===e?void 0:e.current),null===(a=(i=s.state).setActiveItemId)||void 0===a||a.call(i,s.structure.visibleFlattenIds[t]))}),[s.structure.visibleFlattenIds,s.state,e]),d=i.useCallback(((e,t,n=0)=>{e.preventDefault();const i="string"===typeof s.state.activeItemId?s.structure.visibleFlattenIds.findIndex((e=>e===s.state.activeItemId)):-1,d=(({list:e,index:t,step:n,disabledItemsById:i={}})=>{const s=e.length;let a=(t+s)%s;for(let d=0;d<s;d+=1){const t=e[a];if(t&&!i[t])return a;a=(a+s+n)%s}})({list:s.structure.visibleFlattenIds,index:(i>-1?i:n)+t,step:Math.sign(t),disabledItemsById:s.state.disabledById});a(d)}),[a,s.state.activeItemId,s.state.disabledById,s.structure.visibleFlattenIds]);i.useLayoutEffect((()=>{const i=null===e||void 0===e?void 0:e.current;if(n||!i)return;const a=e=>{switch(e.key){case j.D.ARROW_DOWN:d(e,1,-1);break;case j.D.ARROW_UP:d(e,-1);break;case j.D.SPACEBAR:case j.D.ENTER:s.state.activeItemId&&!s.state.disabledById[s.state.activeItemId]&&(e.preventDefault(),null===t||void 0===t||t({id:s.state.activeItemId}))}};return i.addEventListener("keydown",a),()=>{i.removeEventListener("keydown",a)}}),[e,n,d,s.state.activeItemId,s.state.disabledById,t])};var D=n(46423),F=n(25569),P=n(63365),T=n(33705);const $=(0,h.om)("list-item-expand-icon"),A=({expanded:e,behavior:t="action",disabled:n})=>i.createElement(T.I,{direction:z({behavior:t,expanded:e}),className:$(null,(0,P.$)({color:n?"hint":void 0})),size:16});function z({behavior:e,expanded:t}){return t&&"action"===e?"top":t&&"state"===e||t&&"state-inverse"===e||"action"===e?"bottom":"state"===e?"right":"state-inverse"===e?"left":"bottom"}const M=(0,h.om)("list-item-view"),L=e=>"object"===typeof e&&null!==e&&"title"in e,q=e=>{var{children:t,indentation:n=1,className:s}=e,a=(0,f.Tt)(e,["children","indentation","className"]);return i.createElement(y.s,Object.assign({width:16*n,className:M("slot",s)},a),t)},_=({startSlot:e,subtitle:t,endSlot:n,disabled:s,hasSelectionIcon:a,isGroup:l,indentation:r,expanded:o,selected:c,title:u,expandIconPlacement:p="start",renderExpandIcon:I=A})=>{const v=l?i.createElement(I,{behavior:"start"===p?"state":"action",expanded:o,disabled:s}):null;return i.createElement(y.s,{alignItems:"center",justifyContent:"space-between",gap:"4",className:M("content")},i.createElement(y.s,{gap:"2",alignItems:"center",grow:!0},a&&i.createElement(q,null,c?i.createElement(d.I,{data:F.A,size:16,className:(0,P.$)({color:"info"})}):null),(e=>e&&e>=1?i.createElement(q,{indentation:Math.floor(e)}):null)(r),"start"===p&&v,e,i.createElement("div",{className:M("main-content")},"string"===typeof u?i.createElement(m.E,{ellipsis:!0,color:s?"hint":void 0,variant:l?"subheader-1":void 0},u):u,"string"===typeof t?i.createElement(m.E,{ellipsis:!0,color:s?"hint":"secondary"},t):t)),i.createElement(y.s,{gap:"2"},"end"===p&&v,n))},V=i.forwardRef((function(e,t){var{id:n,as:s,size:a="m",active:d,selected:l,disabled:r,selectionViewType:o="multiple",activeOnHover:c,className:u,height:m,dragging:p,style:I,content:v,role:b="option",onClick:g}=e,y=(0,f.Tt)(e,["id","as","size","active","selected","disabled","selectionViewType","activeOnHover","className","height","dragging","style","content","role","onClick"]);const h=s||"li",x=r?void 0:g,S="boolean"===typeof c?c:Boolean(x),B=Object.assign({minHeight:`var(--g-list-item-height, ${null!==m&&void 0!==m?m:N[a][Number(Boolean(!!L(v)&&(null===v||void 0===v?void 0:v.subtitle)))]}px)`},I);return i.createElement(h,Object.assign({[k]:n,role:b,"aria-selected":l,onClick:x,className:M({active:p||d,selected:l&&"single"===o,activeOnHover:S,radius:a,size:a,dragging:p,clickable:Boolean(x)},(0,D.Y)({px:2},u)),style:B,ref:t},y),L(v)?i.createElement(_,Object.assign({},v,{hasSelectionIcon:"multiple"===o,selected:l,disabled:r})):v)})),U=(0,h.om)("tree-list"),W=({qa:e,id:t,size:n="m",className:s,list:a,multiple:d,containerRef:l,renderItem:r,renderContainer:o=O,onItemClick:u,mapItemDataToContentProps:m})=>{const p=(0,c.u)(),I=null!==t&&void 0!==t?t:p,v=i.useRef(null),b=null!==l&&void 0!==l?l:v,g=i.useMemo((()=>{if(null===u)return;return(e,t)=>{const n={id:e.id,list:a};if(u)null===u||void 0===u||u(n,t);else{w({list:a,multiple:d})(n,t)}}}),[u,a,d]);R({containerRef:b,onItemClick:g,list:a});return o({qa:e,id:`list-${I}`,size:n,containerRef:b,className:U(null,s),list:a,renderItem:(t,s,l)=>{const o=(({qa:e,list:t,onItemClick:n,mapItemDataToContentProps:i,size:s="m",multiple:a=!1,id:d})=>{var l,r;const o=Object.assign(Object.assign(Object.assign({},t.structure.itemsState[d]),t.structure.groupsState[d]),{isLastItem:d===t.structure.visibleFlattenIds[t.structure.visibleFlattenIds.length-1]}),c={id:d,size:s,selected:Boolean(t.state.selectedById[d]),disabled:Boolean(null===(l=t.state.disabledById)||void 0===l?void 0:l[d]),active:d===t.state.activeItemId,onClick:n?e=>n({id:d},e):void 0,selectionViewType:Boolean(a)&&!o.childrenIds?"multiple":"single",content:Object.assign({expanded:null===(r=t.state.expandedById)||void 0===r?void 0:r[d],indentation:o.indentation,isGroup:t.state.expandedById&&d in t.state.expandedById},i(t.structure.itemsById[d]))};return e&&(c.qa=((e,t)=>`${e}-${t}`)(e,d)),{data:t.structure.itemsById[d],props:c,context:o}})({qa:e,id:t,size:n,multiple:d,mapItemDataToContentProps:m,onItemClick:g,list:a});return r?r({id:t,data:o.data,props:o.props,context:o.context,index:s,renderContainerProps:l,list:a}):i.createElement(V,Object.assign({},o.props,l))}})};var H=n(63246),J=n(34379),G=n(46819);const Y=({item:e,groupedId:t,getItemId:n})=>{let i=t;return"function"===typeof n?i=n(B(e)?e.data:e):e&&"object"===typeof e&&"id"in e&&e.id&&(i=e.id),i},K=(e,t)=>t?`${t}-${e}`:`${e}`;function Q({items:e,expandedById:t,getItemId:n}){const s=i.useMemo((()=>function({items:e,getItemId:t,expandedById:n={}}){const i=[],s=(e,a,d,l)=>{const r=K(d,l),o=Y({groupedId:r,item:a,getItemId:t});return l||i.push(o),e.push(o),B(a)&&a.children&&(o in n&&!n[o]||e.push(...a.children.reduce(((e,t,n)=>s(e,t,n,o)),[]))),e},a=e.reduce(((e,t,n)=>s(e,t,n)),[]),d={};for(const[l,r]of a.entries())d[r]=l;return{rootIds:i,visibleFlattenIds:a,idToFlattenIndex:d}}({items:e,expandedById:t,getItemId:n})),[e,t,n]);return s}function X({items:e,defaultExpandedState:t="expanded",getItemId:n}){const i={itemsById:{},groupsState:{},itemsState:{},initialState:{disabledById:{},selectedById:{},expandedById:{}}},s=({item:e,index:a,parentGroupedId:d,parentId:l})=>{const r=K(a,d),o=Y({groupedId:r,item:e,getItemId:n});l&&i.groupsState[l].childrenIds.push(o),i.itemsById[o]=e.data,i.itemsState[o]||(i.itemsState[o]={indentation:0}),"undefined"!==typeof l&&(i.itemsState[o].parentId=l),"undefined"!==typeof e.selected&&(i.initialState.selectedById[o]=e.selected),"undefined"!==typeof e.disabled&&(i.initialState.disabledById[o]=e.disabled),r&&(i.itemsState[o].indentation=(e=>e.split("-"))(r).length-1),e.children&&(i.groupsState[o]={childrenIds:[]},i.initialState.expandedById&&("undefined"===typeof e.expanded?i.initialState.expandedById[o]="expanded"===t:i.initialState.expandedById[o]=e.expanded),e.children.forEach(((e,t)=>{s({item:e,index:t,parentGroupedId:r,parentId:o})})))};return e.forEach(((e,t)=>B(e)?s({item:e,index:t}):(({item:e,index:t})=>{const s=Y({groupedId:String(t),item:e,getItemId:n});i.itemsById[s]=e,i.itemsState[s]||(i.itemsState[s]={indentation:0}),e&&"object"===typeof e&&("selected"in e&&"boolean"===typeof e.selected&&(i.initialState.selectedById[s]=e.selected),"disabled"in e&&"boolean"===typeof e.disabled&&(i.initialState.disabledById[s]=e.disabled))})({item:e,index:t}))),i}const Z=({items:e,getItemId:t,defaultExpandedState:n="expanded",withExpandedState:s=!0,initialState:a,controlledState:d})=>{const{itemsById:l,groupsState:r,itemsState:o,initialState:c}=function({items:e,getItemId:t,defaultExpandedState:n}){const s=i.useRef(t).current;return i.useMemo((()=>X({items:e,getItemId:s,defaultExpandedState:n})),[s,n,e])}({items:e,getItemId:t,defaultExpandedState:n}),u=(({initialState:e,withExpandedState:t})=>{const n=i.useRef(e),s=n.current!==e;n.current=e;const[a,d]=i.useState((()=>{var t;return null!==(t=null===e||void 0===e?void 0:e.disabledById)&&void 0!==t?t:{}})),[l,r]=i.useState((()=>{var t;return null!==(t=null===e||void 0===e?void 0:e.selectedById)&&void 0!==t?t:{}})),[o,c]=i.useState((()=>{var t;return null!==(t=null===e||void 0===e?void 0:e.expandedById)&&void 0!==t?t:{}})),[u,m]=i.useState((()=>null===e||void 0===e?void 0:e.activeItemId));s&&((null===e||void 0===e?void 0:e.disabledById)&&d((t=>Object.assign(Object.assign({},e.disabledById),t))),(null===e||void 0===e?void 0:e.selectedById)&&r((t=>Object.assign(Object.assign({},e.selectedById),t))),(null===e||void 0===e?void 0:e.expandedById)&&c((t=>Object.assign(Object.assign({},e.expandedById),t))),m((t=>null!==t&&void 0!==t?t:null===e||void 0===e?void 0:e.activeItemId)));const p={disabledById:a,selectedById:l,activeItemId:u,setDisabled:d,setSelected:r,setActiveItemId:m};return t&&(p.expandedById=o,p.setExpanded=c),p})({initialState:i.useMemo((()=>({expandedById:Object.assign(Object.assign({},c.expandedById),null===a||void 0===a?void 0:a.expandedById),selectedById:Object.assign(Object.assign({},c.selectedById),null===a||void 0===a?void 0:a.selectedById),disabledById:Object.assign(Object.assign({},c.disabledById),null===a||void 0===a?void 0:a.disabledById),activeItemId:null===a||void 0===a?void 0:a.activeItemId})),[c.disabledById,c.expandedById,c.selectedById,null===a||void 0===a?void 0:a.activeItemId,null===a||void 0===a?void 0:a.disabledById,null===a||void 0===a?void 0:a.expandedById,null===a||void 0===a?void 0:a.selectedById]),withExpandedState:s}),m=i.useMemo((()=>d?Object.assign(Object.assign({},u),d):u),[d,u]),{visibleFlattenIds:p,idToFlattenIndex:I,rootIds:v}=Q({items:e,expandedById:m.expandedById,getItemId:t});return{state:m,structure:{rootIds:v,items:e,visibleFlattenIds:p,idToFlattenIndex:I,itemsById:l,groupsState:r,itemsState:o}}},ee=({defaultValue:e=[],value:t,onUpdate:n})=>{const[s,a]=i.useState(e),d=null!==t&&void 0!==t?t:s,l=!t;return i.useMemo((()=>{const e=d.reduce(((e,t)=>(e[t]=!0,e)),{});return{value:d,selectedById:e,setSelected:t=>{const i=(e=>Object.entries(e).reduce(((e,[t,n])=>(n&&e.push(t),e)),[]))("function"===typeof t?t(e):t);l?a(i):null===n||void 0===n||n(i)},setInnerValue:l?a:void 0}}),[n,l,d])},te=(0,h.om)("tree-select"),ne=e=>i.createElement(V,Object.assign({},e.props,e.renderContainerProps)),ie=i.forwardRef((function({id:e,qa:t,title:n,placement:s,slotBeforeListBody:a,slotAfterListBody:d,size:l="m",defaultOpen:r,width:o,containerRef:u,className:m,containerClassName:f,popupClassName:y,open:h,multiple:x,popupWidth:S,popupDisablePortal:B,items:E,value:C,defaultValue:O,placeholder:j,disabled:k=!1,withExpandedState:N=!0,defaultExpandedState:R="expanded",hasClear:D,errorMessage:F,errorPlacement:P,validationState:T,onClose:$,onOpenChange:A,onUpdate:z,renderControl:M,renderItem:L=ne,renderContainer:q,mapItemDataToContentProps:_,onFocus:V,onBlur:U,getItemId:Y,onItemClick:K},Q){const X=(0,G.I)(),ie=(0,c.u)(),se=null!==e&&void 0!==e?e:ie,ae=`tree-select-popup-${se}`,de=i.useRef(null),le=i.useRef(null),re=i.useRef(null),oe=null!==u&&void 0!==u?u:re,{errorMessage:ce,errorPlacement:ue,validationState:me}=(0,J.Av)({errorMessage:F,errorPlacement:P||"outside",validationState:T}),pe=(0,c.u)(),Ie="invalid"===me,ve=Ie&&Boolean(ce)&&"outside"===ue,be=Ie&&Boolean(ce)&&"inside"===ue,ge=(0,p.N)(Q,le),{toggleOpen:fe,open:ye}=(0,v.F)({defaultOpen:r,onClose:$,onOpenChange:A,open:h}),{value:he,selectedById:xe,setSelected:Se}=ee({value:C,defaultValue:O,onUpdate:z}),Be=Z({controlledState:{selectedById:xe,setSelected:Se},items:E,getItemId:Y,defaultExpandedState:R,withExpandedState:N}),Ee=i.useMemo((()=>{if(null===K)return;return(e,t)=>{const n={id:e.id,list:Be};if(K)null===K||void 0===K||K(n,t);else{w({list:Be,multiple:x})(n,t);const i=Be.state.expandedById&&e.id in Be.state.expandedById;x||i||fe(!1)}}}),[K,Be,x,fe]);i.useLayoutEffect((()=>{var e;return ye&&(null===(e=oe.current)||void 0===e||e.focus({preventScroll:!0})),()=>Be.state.setActiveItemId(void 0)}),[ye]);const Ce=i.useCallback((()=>fe(!1)),[fe]),{focusWithinProps:Oe}=(0,I.R)({onFocusWithin:V,onBlurWithin:i.useCallback((e=>{null===U||void 0===U||U(e),Ce()}),[Ce,U])}),we={list:Be,open:ye,placeholder:j,toggleOpen:fe,clearValue:()=>Be.state.setSelected({}),ref:ge,size:l,value:he,disabled:k,id:se,activeItemId:Be.state.activeItemId,title:n,errorMessage:be?ce:void 0,errorPlacement:ue,validationState:me,hasClear:D,isErrorVisible:Ie},je=M?M(we):i.createElement(b.Y,Object.assign({},we,{selectedOptionsContent:i.Children.toArray(he.map((e=>e in Be.structure.itemsById?_(Be.structure.itemsById[e]).title:""))).join(", "),view:"normal",pin:"round-round",popupId:ae,selectId:se})),ke=Object.assign({},"max"===o&&{width:o}),Ne={};return"number"===typeof o&&(Ne.width=o),i.createElement("div",Object.assign({ref:de},Oe,{className:te(ke,m),style:Ne}),je,i.createElement(g.t,{ref:de,className:te("popup",{size:l},y),controlRef:le,width:S,placement:s,open:ye,handleClose:Ce,disablePortal:B,mobile:X,id:ae},a,i.createElement(W,{list:Be,size:l,className:te("list",f),qa:t,multiple:x,id:`list-${se}`,containerRef:oe,onItemClick:Ee,renderContainer:q,mapItemDataToContentProps:_,renderItem:null!==L&&void 0!==L?L:ne}),d),i.createElement(H.o,{errorMessage:ve?ce:null,errorMessageId:pe}))}));var se=n(28664),ae=n(43781),de=n.n(ae);function le(e,t){return!t||"object"!==typeof t||!("title"in t)||"string"!==typeof t.title||t.title.toLowerCase().includes((e||"").toLowerCase())}function re({items:e,initialFilterValue:t="",filterItem:n,onFilterChange:s,filterItems:a,debounceTimeout:d=300}){const l=i.useRef(null),[r,o]=i.useState(t),[c,u]=i.useState(e),[m,p]=i.useState(e),I=i.useCallback(((e,t)=>{if(a)return()=>a(e,t);if(e){const i=n||le;return()=>function(e,t){const n=(e,i)=>{if(B(i)&&i.children){const s=i.children.reduce(n,[]);s.length?e.push(Object.assign(Object.assign({},i),{data:i.data,children:s})):t(i.data)&&e.push(Object.assign(Object.assign({},i),{data:i.data,children:[]}))}else if(B(i)&&t(i.data)){const{children:t}=i,n=(0,f.Tt)(i,["children"]);e.push(n)}else!B(i)&&t(i)&&e.push(i);return e};return e.reduce(n,[])}(t,(t=>i(e,t)))}return()=>t}),[n,a]);e!==c&&(p(I(r,e)),u(e));const v=i.useCallback(de()((t=>p(I(t,e))),d),[p,I,e,d]),{onFilterUpdate:b,reset:g}=i.useMemo((()=>({reset:()=>{o(t),null===s||void 0===s||s(t),v(t)},onFilterUpdate:e=>{o(e),null===s||void 0===s||s(e),v(e)}})),[v,t,s]);return{filterRef:l,filter:r,reset:g,items:m,onFilterUpdate:b}}var oe=n(72837);const ce=JSON.parse('{"button_apply":"Apply","button_reset":"Reset","button_switcher":"Columns"}'),ue=JSON.parse('{"button_apply":"\u041f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c","button_reset":"\u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c","button_switcher":"\u041a\u043e\u043b\u043e\u043d\u043a\u0438"}'),me=(0,oe.N)({en:ce,ru:ue},"TableColumnSetupInner"),pe=(0,h.om)("inner-table-column-setup"),Ie=pe("controls"),ve=pe("filter-input"),be=pe("empty-placeholder"),ge={isDragDisabled:!0},fe=e=>({title:e.title}),ye=(e,t)=>"string"!==typeof t.title||t.title.toLowerCase().includes(e.trim().toLowerCase()),he=e=>{const{renderSwitcher:t,popupWidth:n,popupPlacement:p,items:I,onUpdate:v,sortable:b,renderControls:g,className:f,defaultItems:h=I,showResetButton:x,filterable:B,filterPlaceholder:E,filterEmptyMessage:C,filterSettings:O=ye}=e,[w,j]=i.useState(!1),[k,N]=i.useState(b),[R,D]=i.useState(b);b!==R&&(D(b),N(b));const[F,P]=i.useState(I),[T,$]=i.useState(I);I!==T&&($(I),P(I));const A=re({items:F,filterItem:O,debounceTimeout:0}),z=()=>{const e=F.map((({id:e,isSelected:t})=>({id:e,isSelected:t})));v(e),U(!1)},M=()=>i.createElement(a.$,{view:"action",width:"max",onClick:z},me("button_apply")),L="function"===typeof x?x(F):x,q=(({onDragEnd:e,renderControls:t})=>{const n=(0,c.u)();return({renderItem:s,list:a,containerRef:d,id:l,className:r})=>{const{stickyStartItemIdList:c,sortableItemIdList:u,stickyEndItemIdList:m}=((e,t)=>{let n=0;for(;n!==t.length;n++){const i=e[t[n]];if("left"!==(null===i||void 0===i?void 0:i.sticky)&&"start"!==(null===i||void 0===i?void 0:i.sticky))break}let i=t.length;for(;0!==i;i--){const n=e[t[i-1]];if("right"!==(null===n||void 0===n?void 0:n.sticky)&&"end"!==(null===n||void 0===n?void 0:n.sticky))break}return{stickyStartItemIdList:t.slice(0,n),sortableItemIdList:t.slice(n,i),stickyEndItemIdList:t.slice(i)}})(a.structure.itemsById,a.structure.visibleFlattenIds),p=c.map(((e,t)=>s(e,t,ge))),I=u.map(((e,t)=>s(e,t+c.length))),v=m.map(((e,t)=>s(e,p.length+I.length+t,ge)));return i.createElement(i.Fragment,null,i.createElement(S,{ref:d,id:l,className:r},p,i.createElement(o.JY,{onDragEnd:e},i.createElement(o.gL,{droppableId:n,renderClone:(e,t,n)=>{const i={provided:e,snapshot:t};return s(a.structure.visibleFlattenIds[n.source.index],n.source.index,i)}},(e=>i.createElement("div",Object.assign({},e.droppableProps,{ref:e.innerRef}),I,e.placeholder)))),v),i.createElement("div",{className:Ie},t()))}})({onDragEnd:({destination:e,source:t})=>{void 0!==(null===e||void 0===e?void 0:e.index)&&(null===e||void 0===e?void 0:e.index)!==t.index&&P((n=>((e,t,n)=>{const i=[...e],[s]=i.splice(t,1);return i.splice(n,0,s),i})(n,t.index,e.index)))},renderControls:()=>g?g({DefaultApplyButton:M,onApply:z}):i.createElement(y.s,{gapRow:1,direction:"column",className:Ie},L&&i.createElement(a.$,{onClick:()=>{P(h)},width:"max"},me("button_reset")),i.createElement(M,null))}),_=(e=>({data:t,props:n,index:s,renderContainerProps:a})=>{const c=!1===e||!0===(null===a||void 0===a?void 0:a.isDragDisabled),u=c?void 0:i.createElement(d.I,{data:l.A,size:16}),m=t.isRequired?i.createElement(d.I,{data:r}):void 0,p=!t.isRequired&&n.selected,I=Object.assign(Object.assign({},n),{selected:p,selectionViewType:t.isRequired?"single":"multiple",content:Object.assign(Object.assign({},n.content),{startSlot:m,endSlot:u})});if(c)return i.createElement(V,Object.assign({},I,{key:I.id}));const v=(e,t)=>i.createElement(V,Object.assign({},I,e.draggableProps,e.dragHandleProps,{ref:e.innerRef,dragging:t.isDragging}));return(null===a||void 0===a?void 0:a.provided)&&a.snapshot?v(a.provided,a.snapshot):i.createElement(o.sx,{draggableId:n.id,index:s,key:`item-key-${n.id}`,isDragDisabled:c},v)})(k),U=e=>{j(e),!1===e&&(P(I),N(b),A.reset())},W=i.useMemo((()=>(e=>{const t=[];return e.forEach((({id:e,isSelected:n})=>{n&&t.push(e)})),t})(F)),[F]),H=(J=C,()=>i.createElement(m.E,{className:be},J));var J;const G=B?i.createElement(se.k,{size:"m",view:"clear",placeholder:E,value:A.filter,className:ve,onUpdate:e=>{A.onFilterUpdate(e),N(!e.length)},hasClear:!0}):null,Y=A.filter&&!A.items.length?H:q;return i.createElement(ie,{className:pe(null,f),mapItemDataToContentProps:fe,multiple:!0,size:"l",open:w,value:W,items:A.filter?A.items:F,onUpdate:e=>{P((t=>t.map((t=>Object.assign(Object.assign({},t),{isSelected:t.isRequired||e.includes(t.id)})))))},popupWidth:n,onOpenChange:U,placement:p,slotBeforeListBody:G,renderContainer:Y,renderControl:({toggleOpen:e})=>{const n=(0,u.h)(e);return(null===t||void 0===t?void 0:t({onClick:e,onKeyDown:n}))||i.createElement(a.$,{onClick:e,extraProps:{onKeyDown:n}},i.createElement(d.I,{data:s.A}),me("button_switcher"))},renderItem:_})},xe=JSON.parse('{"button_switcher":"Columns"}'),Se=JSON.parse('{"button_switcher":"\u041a\u043e\u043b\u043e\u043d\u043a\u0438"}'),Be=(0,oe.N)({en:xe,ru:Se},"TableColumnSetup"),Ee=(0,h.om)("table-column-setup"),Ce=e=>{const{switcher:t,renderSwitcher:n,disabled:l,popupWidth:r,popupPlacement:o,className:c,items:u,sortable:m=!0,showStatus:p,onUpdate:I}=e,v=u.map((({id:e,title:t,required:n,selected:i,sticky:s})=>({id:e,title:t,isRequired:n,isSelected:i,sticky:s})));return i.createElement(he,{items:v,onUpdate:e=>{I(e.map((({id:e,isSelected:t})=>{const n=u.find((t=>t.id===e));return{id:e,selected:t,title:null===n||void 0===n?void 0:n.title,required:null===n||void 0===n?void 0:n.required}})))},popupPlacement:o,popupWidth:r,renderSwitcher:e=>(null===n||void 0===n?void 0:n(e))||t||i.createElement(a.$,{disabled:l,onClick:e.onClick},i.createElement(d.I,{data:s.A}),Be("button_switcher"),(()=>{if(!p)return null;const e=`${u.reduce(((e,t)=>t.selected?e+1:e),0)}/${u.length}`;return i.createElement("span",{className:Ee("status")},e)})()),sortable:m,className:Ee(null,c)})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/4130.e9433987.chunk.js b/ydb/core/viewer/monitoring/static/js/4130.e9433987.chunk.js deleted file mode 100644 index dc20441bbe..0000000000 --- a/ydb/core/viewer/monitoring/static/js/4130.e9433987.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[4130],{69775:(e,t,n)=>{"use strict";n.d(t,{O:()=>Ce});var i=n(59284),s=n(27738),a=n(84476),d=n(99991),l=n(66821);const r=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.5 6V5a2.5 2.5 0 0 0-5 0v1zM4 5v1a3 3 0 0 0-3 3v3a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V9a3 3 0 0 0-3-3V5a4 4 0 0 0-8 0m6.5 2.5H12A1.5 1.5 0 0 1 13.5 9v3a1.5 1.5 0 0 1-1.5 1.5H4A1.5 1.5 0 0 1 2.5 12V9A1.5 1.5 0 0 1 4 7.5zm-1.75 2a.75.75 0 0 0-1.5 0v2a.75.75 0 0 0 1.5 0z",clipRule:"evenodd"}));var o=n(53202),c=n(90826),u=n(46734),m=n(98089),p=n(32084),I=n(51301),v=n(92609),b=n(19884),g=n(93628),f=n(27145),y=n(87184),h=n(69220);const x=(0,h.om)("list-container-view"),S=i.forwardRef((function({as:e="div",role:t="listbox",children:n,id:s,className:a,fixedHeight:d,extraProps:l,qa:r,style:o},c){return i.createElement(y.s,Object.assign({qa:r,as:e,direction:"column",ref:c,grow:!0,tabIndex:-1,id:s,role:t,style:o,className:x({"fixed-height":d},a)},l),n)})),B=e=>null!==e&&"object"===typeof e&&"data"in e,E=(0,h.om)("list-recursive-renderer");function C(e){var t,{id:n,itemSchema:s,list:a}=e,d=(0,f.Tt)(e,["id","itemSchema","list"]);const l=d.children(n,a.structure.idToFlattenIndex[n]);if(B(s)&&s.children){const e=!a.state.expandedById||!(n in a.state.expandedById)||a.state.expandedById[n];return i.createElement("ul",{style:d.style,className:E(null,d.className),role:"group"},l,e&&Boolean(null===(t=a.structure.groupsState[n])||void 0===t?void 0:t.childrenIds)&&s.children.map(((e,t)=>i.createElement(C,Object.assign({list:a,id:a.structure.groupsState[n].childrenIds[t],itemSchema:e,key:t},d)))))}return l}function O(e){var{containerRef:t,renderItem:n,list:s}=e,a=(0,f.Tt)(e,["containerRef","renderItem","list"]);return i.createElement(S,Object.assign({ref:t},a),s.structure.items.map(((e,t)=>i.createElement(C,{key:t,itemSchema:e,id:s.structure.rootIds[t],list:s},n))))}const w=({list:e,multiple:t})=>({id:n})=>{e.state.disabledById[n]||(e.state.setActiveItemId(n),e.state.expandedById&&n in e.state.expandedById&&e.state.setExpanded?e.state.setExpanded((e=>Object.assign(Object.assign({},e),{[n]:!e[n]}))):e.state.setSelected((e=>Object.assign(Object.assign({},t?e:{}),{[n]:!t||!e[n]}))))};var j=n(359);const k="data-list-item",N={s:[22,44],m:[26,44],l:[34,52],xl:[44,62]},R=({containerRef:e,onItemClick:t,enabled:n,list:s})=>{const a=i.useCallback(((t,n=!0)=>{var i,a;"number"===typeof t&&s.structure.visibleFlattenIds[t]&&(n&&((e,t)=>{var n;if(document){const i=(t||document).querySelector(`[${k}="${e}"]`);i&&(null===(n=i.scrollIntoView)||void 0===n||n.call(i,{block:"nearest"}))}})(s.structure.visibleFlattenIds[t],null===e||void 0===e?void 0:e.current),null===(a=(i=s.state).setActiveItemId)||void 0===a||a.call(i,s.structure.visibleFlattenIds[t]))}),[s.structure.visibleFlattenIds,s.state,e]),d=i.useCallback(((e,t,n=0)=>{e.preventDefault();const i="string"===typeof s.state.activeItemId?s.structure.visibleFlattenIds.findIndex((e=>e===s.state.activeItemId)):-1,d=(({list:e,index:t,step:n,disabledItemsById:i={}})=>{const s=e.length;let a=(t+s)%s;for(let d=0;d<s;d+=1){const t=e[a];if(t&&!i[t])return a;a=(a+s+n)%s}})({list:s.structure.visibleFlattenIds,index:(i>-1?i:n)+t,step:Math.sign(t),disabledItemsById:s.state.disabledById});a(d)}),[a,s.state.activeItemId,s.state.disabledById,s.structure.visibleFlattenIds]);i.useLayoutEffect((()=>{const i=null===e||void 0===e?void 0:e.current;if(n||!i)return;const a=e=>{switch(e.key){case j.D.ARROW_DOWN:d(e,1,-1);break;case j.D.ARROW_UP:d(e,-1);break;case j.D.SPACEBAR:case j.D.ENTER:s.state.activeItemId&&!s.state.disabledById[s.state.activeItemId]&&(e.preventDefault(),null===t||void 0===t||t({id:s.state.activeItemId}))}};return i.addEventListener("keydown",a),()=>{i.removeEventListener("keydown",a)}}),[e,n,d,s.state.activeItemId,s.state.disabledById,t])};var D=n(46423),F=n(25569),P=n(63365),T=n(33705);const $=(0,h.om)("list-item-expand-icon"),A=({expanded:e,behavior:t="action",disabled:n})=>i.createElement(T.I,{direction:z({behavior:t,expanded:e}),className:$(null,(0,P.$)({color:n?"hint":void 0})),size:16});function z({behavior:e,expanded:t}){return t&&"action"===e?"top":t&&"state"===e||t&&"state-inverse"===e||"action"===e?"bottom":"state"===e?"right":"state-inverse"===e?"left":"bottom"}const M=(0,h.om)("list-item-view"),L=e=>"object"===typeof e&&null!==e&&"title"in e,q=e=>{var{children:t,indentation:n=1,className:s}=e,a=(0,f.Tt)(e,["children","indentation","className"]);return i.createElement(y.s,Object.assign({width:16*n,className:M("slot",s)},a),t)},_=({startSlot:e,subtitle:t,endSlot:n,disabled:s,hasSelectionIcon:a,isGroup:l,indentation:r,expanded:o,selected:c,title:u,expandIconPlacement:p="start",renderExpandIcon:I=A})=>{const v=l?i.createElement(I,{behavior:"start"===p?"state":"action",expanded:o,disabled:s}):null;return i.createElement(y.s,{alignItems:"center",justifyContent:"space-between",gap:"4",className:M("content")},i.createElement(y.s,{gap:"2",alignItems:"center",grow:!0},a&&i.createElement(q,null,c?i.createElement(d.I,{data:F.A,size:16,className:(0,P.$)({color:"info"})}):null),(e=>e&&e>=1?i.createElement(q,{indentation:Math.floor(e)}):null)(r),"start"===p&&v,e,i.createElement("div",{className:M("main-content")},"string"===typeof u?i.createElement(m.E,{ellipsis:!0,color:s?"hint":void 0,variant:l?"subheader-1":void 0},u):u,"string"===typeof t?i.createElement(m.E,{ellipsis:!0,color:s?"hint":"secondary"},t):t)),i.createElement(y.s,{gap:"2"},"end"===p&&v,n))},V=i.forwardRef((function(e,t){var{id:n,as:s,size:a="m",active:d,selected:l,disabled:r,selectionViewType:o="multiple",activeOnHover:c,className:u,height:m,dragging:p,style:I,content:v,role:b="option",onClick:g}=e,y=(0,f.Tt)(e,["id","as","size","active","selected","disabled","selectionViewType","activeOnHover","className","height","dragging","style","content","role","onClick"]);const h=s||"li",x=r?void 0:g,S="boolean"===typeof c?c:Boolean(x),B=Object.assign({minHeight:`var(--g-list-item-height, ${null!==m&&void 0!==m?m:N[a][Number(Boolean(!!L(v)&&(null===v||void 0===v?void 0:v.subtitle)))]}px)`},I);return i.createElement(h,Object.assign({[k]:n,role:b,"aria-selected":l,onClick:x,className:M({active:p||d,selected:l&&"single"===o,activeOnHover:S,radius:a,size:a,dragging:p,clickable:Boolean(x)},(0,D.Y)({px:2},u)),style:B,ref:t},y),L(v)?i.createElement(_,Object.assign({},v,{hasSelectionIcon:"multiple"===o,selected:l,disabled:r})):v)})),U=(0,h.om)("tree-list"),W=({qa:e,id:t,size:n="m",className:s,list:a,multiple:d,containerRef:l,renderItem:r,renderContainer:o=O,onItemClick:u,mapItemDataToContentProps:m})=>{const p=(0,c.u)(),I=null!==t&&void 0!==t?t:p,v=i.useRef(null),b=null!==l&&void 0!==l?l:v,g=i.useMemo((()=>{if(null===u)return;return(e,t)=>{const n={id:e.id,list:a};if(u)null===u||void 0===u||u(n,t);else{w({list:a,multiple:d})(n,t)}}}),[u,a,d]);R({containerRef:b,onItemClick:g,list:a});return o({qa:e,id:`list-${I}`,size:n,containerRef:b,className:U(null,s),list:a,renderItem:(t,s,l)=>{const o=(({qa:e,list:t,onItemClick:n,mapItemDataToContentProps:i,size:s="m",multiple:a=!1,id:d})=>{var l,r;const o=Object.assign(Object.assign(Object.assign({},t.structure.itemsState[d]),t.structure.groupsState[d]),{isLastItem:d===t.structure.visibleFlattenIds[t.structure.visibleFlattenIds.length-1]}),c={id:d,size:s,selected:Boolean(t.state.selectedById[d]),disabled:Boolean(null===(l=t.state.disabledById)||void 0===l?void 0:l[d]),active:d===t.state.activeItemId,onClick:n?e=>n({id:d},e):void 0,selectionViewType:Boolean(a)&&!o.childrenIds?"multiple":"single",content:Object.assign({expanded:null===(r=t.state.expandedById)||void 0===r?void 0:r[d],indentation:o.indentation,isGroup:t.state.expandedById&&d in t.state.expandedById},i(t.structure.itemsById[d]))};return e&&(c.qa=((e,t)=>`${e}-${t}`)(e,d)),{data:t.structure.itemsById[d],props:c,context:o}})({qa:e,id:t,size:n,multiple:d,mapItemDataToContentProps:m,onItemClick:g,list:a});return r?r({id:t,data:o.data,props:o.props,context:o.context,index:s,renderContainerProps:l,list:a}):i.createElement(V,Object.assign({},o.props,l))}})};var H=n(63246),J=n(34379),G=n(46819);const Y=({item:e,groupedId:t,getItemId:n})=>{let i=t;return"function"===typeof n?i=n(B(e)?e.data:e):e&&"object"===typeof e&&"id"in e&&e.id&&(i=e.id),i},K=(e,t)=>t?`${t}-${e}`:`${e}`;function Q({items:e,expandedById:t,getItemId:n}){const s=i.useMemo((()=>function({items:e,getItemId:t,expandedById:n={}}){const i=[],s=(e,a,d,l)=>{const r=K(d,l),o=Y({groupedId:r,item:a,getItemId:t});return l||i.push(o),e.push(o),B(a)&&a.children&&(o in n&&!n[o]||e.push(...a.children.reduce(((e,t,n)=>s(e,t,n,o)),[]))),e},a=e.reduce(((e,t,n)=>s(e,t,n)),[]),d={};for(const[l,r]of a.entries())d[r]=l;return{rootIds:i,visibleFlattenIds:a,idToFlattenIndex:d}}({items:e,expandedById:t,getItemId:n})),[e,t,n]);return s}function X({items:e,defaultExpandedState:t="expanded",getItemId:n}){const i={itemsById:{},groupsState:{},itemsState:{},initialState:{disabledById:{},selectedById:{},expandedById:{}}},s=({item:e,index:a,parentGroupedId:d,parentId:l})=>{const r=K(a,d),o=Y({groupedId:r,item:e,getItemId:n});l&&i.groupsState[l].childrenIds.push(o),i.itemsById[o]=e.data,i.itemsState[o]||(i.itemsState[o]={indentation:0}),"undefined"!==typeof l&&(i.itemsState[o].parentId=l),"undefined"!==typeof e.selected&&(i.initialState.selectedById[o]=e.selected),"undefined"!==typeof e.disabled&&(i.initialState.disabledById[o]=e.disabled),r&&(i.itemsState[o].indentation=(e=>e.split("-"))(r).length-1),e.children&&(i.groupsState[o]={childrenIds:[]},i.initialState.expandedById&&("undefined"===typeof e.expanded?i.initialState.expandedById[o]="expanded"===t:i.initialState.expandedById[o]=e.expanded),e.children.forEach(((e,t)=>{s({item:e,index:t,parentGroupedId:r,parentId:o})})))};return e.forEach(((e,t)=>B(e)?s({item:e,index:t}):(({item:e,index:t})=>{const s=Y({groupedId:String(t),item:e,getItemId:n});i.itemsById[s]=e,i.itemsState[s]||(i.itemsState[s]={indentation:0}),e&&"object"===typeof e&&("selected"in e&&"boolean"===typeof e.selected&&(i.initialState.selectedById[s]=e.selected),"disabled"in e&&"boolean"===typeof e.disabled&&(i.initialState.disabledById[s]=e.disabled))})({item:e,index:t}))),i}const Z=({items:e,getItemId:t,defaultExpandedState:n="expanded",withExpandedState:s=!0,initialState:a,controlledState:d})=>{const{itemsById:l,groupsState:r,itemsState:o,initialState:c}=function({items:e,getItemId:t,defaultExpandedState:n}){const s=i.useRef(t).current;return i.useMemo((()=>X({items:e,getItemId:s,defaultExpandedState:n})),[s,n,e])}({items:e,getItemId:t,defaultExpandedState:n}),u=(({initialState:e,withExpandedState:t})=>{const n=i.useRef(e),s=n.current!==e;n.current=e;const[a,d]=i.useState((()=>{var t;return null!==(t=null===e||void 0===e?void 0:e.disabledById)&&void 0!==t?t:{}})),[l,r]=i.useState((()=>{var t;return null!==(t=null===e||void 0===e?void 0:e.selectedById)&&void 0!==t?t:{}})),[o,c]=i.useState((()=>{var t;return null!==(t=null===e||void 0===e?void 0:e.expandedById)&&void 0!==t?t:{}})),[u,m]=i.useState((()=>null===e||void 0===e?void 0:e.activeItemId));s&&((null===e||void 0===e?void 0:e.disabledById)&&d((t=>Object.assign(Object.assign({},e.disabledById),t))),(null===e||void 0===e?void 0:e.selectedById)&&r((t=>Object.assign(Object.assign({},e.selectedById),t))),(null===e||void 0===e?void 0:e.expandedById)&&c((t=>Object.assign(Object.assign({},e.expandedById),t))),m((t=>null!==t&&void 0!==t?t:null===e||void 0===e?void 0:e.activeItemId)));const p={disabledById:a,selectedById:l,activeItemId:u,setDisabled:d,setSelected:r,setActiveItemId:m};return t&&(p.expandedById=o,p.setExpanded=c),p})({initialState:i.useMemo((()=>({expandedById:Object.assign(Object.assign({},c.expandedById),null===a||void 0===a?void 0:a.expandedById),selectedById:Object.assign(Object.assign({},c.selectedById),null===a||void 0===a?void 0:a.selectedById),disabledById:Object.assign(Object.assign({},c.disabledById),null===a||void 0===a?void 0:a.disabledById),activeItemId:null===a||void 0===a?void 0:a.activeItemId})),[c.disabledById,c.expandedById,c.selectedById,null===a||void 0===a?void 0:a.activeItemId,null===a||void 0===a?void 0:a.disabledById,null===a||void 0===a?void 0:a.expandedById,null===a||void 0===a?void 0:a.selectedById]),withExpandedState:s}),m=i.useMemo((()=>d?Object.assign(Object.assign({},u),d):u),[d,u]),{visibleFlattenIds:p,idToFlattenIndex:I,rootIds:v}=Q({items:e,expandedById:m.expandedById,getItemId:t});return{state:m,structure:{rootIds:v,items:e,visibleFlattenIds:p,idToFlattenIndex:I,itemsById:l,groupsState:r,itemsState:o}}},ee=({defaultValue:e=[],value:t,onUpdate:n})=>{const[s,a]=i.useState(e),d=null!==t&&void 0!==t?t:s,l=!t;return i.useMemo((()=>{const e=d.reduce(((e,t)=>(e[t]=!0,e)),{});return{value:d,selectedById:e,setSelected:t=>{const i=(e=>Object.entries(e).reduce(((e,[t,n])=>(n&&e.push(t),e)),[]))("function"===typeof t?t(e):t);l?a(i):null===n||void 0===n||n(i)},setInnerValue:l?a:void 0}}),[n,l,d])},te=(0,h.om)("tree-select"),ne=e=>i.createElement(V,Object.assign({},e.props,e.renderContainerProps)),ie=i.forwardRef((function({id:e,qa:t,title:n,placement:s,slotBeforeListBody:a,slotAfterListBody:d,size:l="m",defaultOpen:r,width:o,containerRef:u,className:m,containerClassName:f,popupClassName:y,open:h,multiple:x,popupWidth:S,popupDisablePortal:B,items:E,value:C,defaultValue:O,placeholder:j,disabled:k=!1,withExpandedState:N=!0,defaultExpandedState:R="expanded",hasClear:D,errorMessage:F,errorPlacement:P,validationState:T,onClose:$,onOpenChange:A,onUpdate:z,renderControl:M,renderItem:L=ne,renderContainer:q,mapItemDataToContentProps:_,onFocus:V,onBlur:U,getItemId:Y,onItemClick:K},Q){const X=(0,G.I)(),ie=(0,c.u)(),se=null!==e&&void 0!==e?e:ie,ae=`tree-select-popup-${se}`,de=i.useRef(null),le=i.useRef(null),re=i.useRef(null),oe=null!==u&&void 0!==u?u:re,{errorMessage:ce,errorPlacement:ue,validationState:me}=(0,J.Av)({errorMessage:F,errorPlacement:P||"outside",validationState:T}),pe=(0,c.u)(),Ie="invalid"===me,ve=Ie&&Boolean(ce)&&"outside"===ue,be=Ie&&Boolean(ce)&&"inside"===ue,ge=(0,p.N)(Q,le),{toggleOpen:fe,open:ye}=(0,v.F)({defaultOpen:r,onClose:$,onOpenChange:A,open:h}),{value:he,selectedById:xe,setSelected:Se}=ee({value:C,defaultValue:O,onUpdate:z}),Be=Z({controlledState:{selectedById:xe,setSelected:Se},items:E,getItemId:Y,defaultExpandedState:R,withExpandedState:N}),Ee=i.useMemo((()=>{if(null===K)return;return(e,t)=>{const n={id:e.id,list:Be};if(K)null===K||void 0===K||K(n,t);else{w({list:Be,multiple:x})(n,t);const i=Be.state.expandedById&&e.id in Be.state.expandedById;x||i||fe(!1)}}}),[K,Be,x,fe]);i.useLayoutEffect((()=>{var e;return ye&&(null===(e=oe.current)||void 0===e||e.focus({preventScroll:!0})),()=>Be.state.setActiveItemId(void 0)}),[ye]);const Ce=i.useCallback((()=>fe(!1)),[fe]),{focusWithinProps:Oe}=(0,I.R)({onFocusWithin:V,onBlurWithin:i.useCallback((e=>{null===U||void 0===U||U(e),Ce()}),[Ce,U])}),we={list:Be,open:ye,placeholder:j,toggleOpen:fe,clearValue:()=>Be.state.setSelected({}),ref:ge,size:l,value:he,disabled:k,id:se,activeItemId:Be.state.activeItemId,title:n,errorMessage:be?ce:void 0,errorPlacement:ue,validationState:me,hasClear:D,isErrorVisible:Ie},je=M?M(we):i.createElement(b.Y,Object.assign({},we,{selectedOptionsContent:i.Children.toArray(he.map((e=>e in Be.structure.itemsById?_(Be.structure.itemsById[e]).title:""))).join(", "),view:"normal",pin:"round-round",popupId:ae,selectId:se})),ke=Object.assign({},"max"===o&&{width:o}),Ne={};return"number"===typeof o&&(Ne.width=o),i.createElement("div",Object.assign({ref:de},Oe,{className:te(ke,m),style:Ne}),je,i.createElement(g.t,{ref:de,className:te("popup",{size:l},y),controlRef:le,width:S,placement:s,open:ye,handleClose:Ce,disablePortal:B,mobile:X,id:ae},a,i.createElement(W,{list:Be,size:l,className:te("list",f),qa:t,multiple:x,id:`list-${se}`,containerRef:oe,onItemClick:Ee,renderContainer:q,mapItemDataToContentProps:_,renderItem:null!==L&&void 0!==L?L:ne}),d),i.createElement(H.o,{errorMessage:ve?ce:null,errorMessageId:pe}))}));var se=n(28664),ae=n(43781),de=n.n(ae);function le(e,t){return!t||"object"!==typeof t||!("title"in t)||"string"!==typeof t.title||t.title.toLowerCase().includes((e||"").toLowerCase())}function re({items:e,initialFilterValue:t="",filterItem:n,onFilterChange:s,filterItems:a,debounceTimeout:d=300}){const l=i.useRef(null),[r,o]=i.useState(t),[c,u]=i.useState(e),[m,p]=i.useState(e),I=i.useCallback(((e,t)=>{if(a)return()=>a(e,t);if(e){const i=n||le;return()=>function(e,t){const n=(e,i)=>{if(B(i)&&i.children){const s=i.children.reduce(n,[]);s.length?e.push(Object.assign(Object.assign({},i),{data:i.data,children:s})):t(i.data)&&e.push(Object.assign(Object.assign({},i),{data:i.data,children:[]}))}else if(B(i)&&t(i.data)){const{children:t}=i,n=(0,f.Tt)(i,["children"]);e.push(n)}else!B(i)&&t(i)&&e.push(i);return e};return e.reduce(n,[])}(t,(t=>i(e,t)))}return()=>t}),[n,a]);e!==c&&(p(I(r,e)),u(e));const v=i.useCallback(de()((t=>p(I(t,e))),d),[p,I,e,d]),{onFilterUpdate:b,reset:g}=i.useMemo((()=>({reset:()=>{o(t),null===s||void 0===s||s(t),v(t)},onFilterUpdate:e=>{o(e),null===s||void 0===s||s(e),v(e)}})),[v,t,s]);return{filterRef:l,filter:r,reset:g,items:m,onFilterUpdate:b}}var oe=n(72837);const ce=JSON.parse('{"button_apply":"Apply","button_reset":"Reset","button_switcher":"Columns"}'),ue=JSON.parse('{"button_apply":"\u041f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c","button_reset":"\u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c","button_switcher":"\u041a\u043e\u043b\u043e\u043d\u043a\u0438"}'),me=(0,oe.N)({en:ce,ru:ue},"TableColumnSetupInner"),pe=(0,h.om)("inner-table-column-setup"),Ie=pe("controls"),ve=pe("filter-input"),be=pe("empty-placeholder"),ge={isDragDisabled:!0},fe=e=>({title:e.title}),ye=(e,t)=>"string"!==typeof t.title||t.title.toLowerCase().includes(e.trim().toLowerCase()),he=e=>{const{renderSwitcher:t,popupWidth:n,popupPlacement:p,items:I,onUpdate:v,sortable:b,renderControls:g,className:f,defaultItems:h=I,showResetButton:x,filterable:B,filterPlaceholder:E,filterEmptyMessage:C,filterSettings:O=ye}=e,[w,j]=i.useState(!1),[k,N]=i.useState(b),[R,D]=i.useState(b);b!==R&&(D(b),N(b));const[F,P]=i.useState(I),[T,$]=i.useState(I);I!==T&&($(I),P(I));const A=re({items:F,filterItem:O,debounceTimeout:0}),z=()=>{const e=F.map((({id:e,isSelected:t})=>({id:e,isSelected:t})));v(e),U(!1)},M=()=>i.createElement(a.$,{view:"action",width:"max",onClick:z},me("button_apply")),L="function"===typeof x?x(F):x,q=(({onDragEnd:e,renderControls:t})=>{const n=(0,c.u)();return({renderItem:s,list:a,containerRef:d,id:l,className:r})=>{const{stickyStartItemIdList:c,sortableItemIdList:u,stickyEndItemIdList:m}=((e,t)=>{let n=0;for(;n!==t.length;n++){const i=e[t[n]];if("left"!==(null===i||void 0===i?void 0:i.sticky)&&"start"!==(null===i||void 0===i?void 0:i.sticky))break}let i=t.length;for(;0!==i;i--){const n=e[t[i-1]];if("right"!==(null===n||void 0===n?void 0:n.sticky)&&"end"!==(null===n||void 0===n?void 0:n.sticky))break}return{stickyStartItemIdList:t.slice(0,n),sortableItemIdList:t.slice(n,i),stickyEndItemIdList:t.slice(i)}})(a.structure.itemsById,a.structure.visibleFlattenIds),p=c.map(((e,t)=>s(e,t,ge))),I=u.map(((e,t)=>s(e,t+c.length))),v=m.map(((e,t)=>s(e,p.length+I.length+t,ge)));return i.createElement(i.Fragment,null,i.createElement(S,{ref:d,id:l,className:r},p,i.createElement(o.JY,{onDragEnd:e},i.createElement(o.gL,{droppableId:n,renderClone:(e,t,n)=>{const i={provided:e,snapshot:t};return s(a.structure.visibleFlattenIds[n.source.index],n.source.index,i)}},(e=>i.createElement("div",Object.assign({},e.droppableProps,{ref:e.innerRef}),I,e.placeholder)))),v),i.createElement("div",{className:Ie},t()))}})({onDragEnd:({destination:e,source:t})=>{void 0!==(null===e||void 0===e?void 0:e.index)&&(null===e||void 0===e?void 0:e.index)!==t.index&&P((n=>((e,t,n)=>{const i=[...e],[s]=i.splice(t,1);return i.splice(n,0,s),i})(n,t.index,e.index)))},renderControls:()=>g?g({DefaultApplyButton:M,onApply:z}):i.createElement(y.s,{gapRow:1,direction:"column",className:Ie},L&&i.createElement(a.$,{onClick:()=>{P(h)},width:"max"},me("button_reset")),i.createElement(M,null))}),_=(e=>({data:t,props:n,index:s,renderContainerProps:a})=>{const c=!1===e||!0===(null===a||void 0===a?void 0:a.isDragDisabled),u=c?void 0:i.createElement(d.I,{data:l.A,size:16}),m=t.isRequired?i.createElement(d.I,{data:r}):void 0,p=!t.isRequired&&n.selected,I=Object.assign(Object.assign({},n),{selected:p,selectionViewType:t.isRequired?"single":"multiple",content:Object.assign(Object.assign({},n.content),{startSlot:m,endSlot:u})});if(c)return i.createElement(V,Object.assign({},I,{key:I.id}));const v=(e,t)=>i.createElement(V,Object.assign({},I,e.draggableProps,e.dragHandleProps,{ref:e.innerRef,dragging:t.isDragging}));return(null===a||void 0===a?void 0:a.provided)&&a.snapshot?v(a.provided,a.snapshot):i.createElement(o.sx,{draggableId:n.id,index:s,key:`item-key-${n.id}`,isDragDisabled:c},v)})(k),U=e=>{j(e),!1===e&&(P(I),N(b),A.reset())},W=i.useMemo((()=>(e=>{const t=[];return e.forEach((({id:e,isSelected:n})=>{n&&t.push(e)})),t})(F)),[F]),H=(J=C,()=>i.createElement(m.E,{className:be},J));var J;const G=B?i.createElement(se.k,{size:"m",view:"clear",placeholder:E,value:A.filter,className:ve,onUpdate:e=>{A.onFilterUpdate(e),N(!e.length)},hasClear:!0}):null,Y=A.filter&&!A.items.length?H:q;return i.createElement(ie,{className:pe(null,f),mapItemDataToContentProps:fe,multiple:!0,size:"l",open:w,value:W,items:A.filter?A.items:F,onUpdate:e=>{P((t=>t.map((t=>Object.assign(Object.assign({},t),{isSelected:t.isRequired||e.includes(t.id)})))))},popupWidth:n,onOpenChange:U,placement:p,slotBeforeListBody:G,renderContainer:Y,renderControl:({toggleOpen:e})=>{const n=(0,u.h)(e);return(null===t||void 0===t?void 0:t({onClick:e,onKeyDown:n}))||i.createElement(a.$,{onClick:e,extraProps:{onKeyDown:n}},i.createElement(d.I,{data:s.A}),me("button_switcher"))},renderItem:_})},xe=JSON.parse('{"button_switcher":"Columns"}'),Se=JSON.parse('{"button_switcher":"\u041a\u043e\u043b\u043e\u043d\u043a\u0438"}'),Be=(0,oe.N)({en:xe,ru:Se},"TableColumnSetup"),Ee=(0,h.om)("table-column-setup"),Ce=e=>{const{switcher:t,renderSwitcher:n,disabled:l,popupWidth:r,popupPlacement:o,className:c,items:u,sortable:m=!0,showStatus:p,onUpdate:I}=e,v=u.map((({id:e,title:t,required:n,selected:i,sticky:s})=>({id:e,title:t,isRequired:n,isSelected:i,sticky:s})));return i.createElement(he,{items:v,onUpdate:e=>{I(e.map((({id:e,isSelected:t})=>{const n=u.find((t=>t.id===e));return{id:e,selected:t,title:null===n||void 0===n?void 0:n.title,required:null===n||void 0===n?void 0:n.required}})))},popupPlacement:o,popupWidth:r,renderSwitcher:e=>(null===n||void 0===n?void 0:n(e))||t||i.createElement(a.$,{disabled:l,onClick:e.onClick},i.createElement(d.I,{data:s.A}),Be("button_switcher"),(()=>{if(!p)return null;const e=`${u.reduce(((e,t)=>t.selected?e+1:e),0)}/${u.length}`;return i.createElement("span",{className:Ee("status")},e)})()),sortable:m,className:Ee(null,c)})}},38501:(e,t,n)=>{"use strict";n.d(t,{D:()=>s});var i=n(46878);function s(){return(0,i.w)().theme}},23536:(e,t,n)=>{var i=n(68814),s=/[\\^$.*+?()[\]{}|]/g,a=RegExp(s.source);e.exports=function(e){return(e=i(e))&&a.test(e)?e.replace(s,"\\$&"):e}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/431.f23349ec.chunk.js b/ydb/core/viewer/monitoring/static/js/431.f23349ec.chunk.js new file mode 100644 index 0000000000..f45aa09dc8 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/431.f23349ec.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[431],{2748:()=>{},5890:(e,t,a)=>{var n={"./simpleWorker":51929,"./simpleWorker.js":51929,"monaco-editor/esm/vs/base/common/worker/simpleWorker":51929,"monaco-editor/esm/vs/base/common/worker/simpleWorker.js":51929};function r(e){return Promise.resolve().then((()=>{if(!a.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a(n[e])}))}r.keys=()=>Object.keys(n),r.id=5890,e.exports=r},8300:(e,t,a)=>{"use strict";a.d(t,{BB:()=>i,TL:()=>l,XT:()=>o});var n=a(43733),r=a(32138),s=a(62422);const i={...r.A,'pre[class*="language-"]':{...r.A['pre[class*="language-"]'],background:"transparent",margin:0},'code[class*="language-"]':{...r.A['code[class*="language-"]'],background:"transparent",color:"var(--g-color-text-primary)",whiteSpace:"pre-wrap"},comment:{color:"#969896"},string:{color:"#a31515"},tablepath:{color:"#338186"},function:{color:"#7a3e9d"},udf:{color:"#7a3e9d"},type:{color:"#4d932d"},boolean:{color:"#608b4e"},constant:{color:"#608b4e"},variable:{color:"#001188"}},o={...s.A,'pre[class*="language-"]':{...s.A['pre[class*="language-"]'],background:"transparent",margin:0},'code[class*="language-"]':{...s.A['code[class*="language-"]'],background:"transparent",color:"var(--g-color-text-primary)",whiteSpace:"pre-wrap"},comment:{color:"#969896"},string:{color:"#ce9178"},tablepath:{color:"#338186"},function:{color:"#9e7bb0"},udf:{color:"#9e7bb0"},type:{color:"#6A8759"},boolean:{color:"#608b4e"},constant:{color:"#608b4e"},variable:{color:"#74b0df"}};function l(e){e.languages.yql={comment:[{pattern:/--.*$/m,greedy:!0},{pattern:/\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0}],tablepath:{pattern:/(`[\w/]+`\s*\.\s*)?`[^`]+`/,greedy:!0},string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},{pattern:/@@(?:[^@]|@(?!@))*@@/,greedy:!0}],variable:[{pattern:/\$[a-zA-Z_]\w*/,greedy:!0}],function:{pattern:new RegExp(`\\b(?:${n.XB.join("|")})\\b`,"i"),greedy:!0},keyword:{pattern:new RegExp(`\\b(?:${n.RE.join("|")})\\b`,"i"),greedy:!0},udf:{pattern:/[A-Za-z_]\w*::[A-Za-z_]\w*/,greedy:!0},type:{pattern:new RegExp(`\\b(?:${n.to.join("|")})\\b`,"i"),greedy:!0},boolean:{pattern:/\b(?:true|false|null)\b/i,greedy:!0},number:{pattern:/[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?/i,greedy:!0},operator:{pattern:/[-+*/%<>!=&|^~]+|\b(?:and|or|not|is|like|ilike|rlike|in|between)\b/i,greedy:!0},punctuation:{pattern:/[;[\](){}.,]/,greedy:!0}}}l.displayName="yql",l.aliases=["yql"]},9204:(e,t,a)=>{var n={"./editorBaseApi":[73848],"./editorBaseApi.js":[73848],"./editorSimpleWorker":[16545],"./editorSimpleWorker.js":[16545],"./editorWorker":[10920],"./editorWorker.js":[10920],"./editorWorkerHost":[80718],"./editorWorkerHost.js":[80718],"./findSectionHeaders":[56691],"./findSectionHeaders.js":[56691],"./getIconClasses":[53068],"./getIconClasses.js":[53068],"./languageFeatureDebounce":[32500],"./languageFeatureDebounce.js":[32500],"./languageFeatures":[56942],"./languageFeatures.js":[56942],"./languageFeaturesService":[76007],"./languageFeaturesService.js":[76007],"./languageService":[17890],"./languageService.js":[17890],"./languagesAssociations":[99908],"./languagesAssociations.js":[99908],"./languagesRegistry":[69259],"./languagesRegistry.js":[69259],"./markerDecorations":[37550],"./markerDecorations.js":[37550],"./markerDecorationsService":[30707],"./markerDecorationsService.js":[30707],"./model":[23750],"./model.js":[23750],"./modelService":[16363],"./modelService.js":[16363],"./resolverService":[18938],"./resolverService.js":[18938],"./semanticTokensDto":[98232],"./semanticTokensDto.js":[98232],"./semanticTokensProviderStyling":[45538],"./semanticTokensProviderStyling.js":[45538],"./semanticTokensStyling":[74243],"./semanticTokensStyling.js":[74243],"./semanticTokensStylingService":[27004],"./semanticTokensStylingService.js":[27004],"./textModelSync/textModelSync.impl":[47443],"./textModelSync/textModelSync.impl.js":[47443],"./textModelSync/textModelSync.protocol":[28868,8868],"./textModelSync/textModelSync.protocol.js":[28868,8868],"./textResourceConfiguration":[90360],"./textResourceConfiguration.js":[90360],"./treeSitterParserService":[44432],"./treeSitterParserService.js":[44432],"./treeViewsDnd":[36723],"./treeViewsDnd.js":[36723],"./treeViewsDndService":[29100],"./treeViewsDndService.js":[29100],"./unicodeTextModelHighlighter":[74855],"./unicodeTextModelHighlighter.js":[74855],"monaco-editor/esm/vs/editor/common/services/editorBaseApi":[73848],"monaco-editor/esm/vs/editor/common/services/editorBaseApi.js":[73848],"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker":[16545],"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker.js":[16545],"monaco-editor/esm/vs/editor/common/services/editorWorker":[10920],"monaco-editor/esm/vs/editor/common/services/editorWorker.js":[10920],"monaco-editor/esm/vs/editor/common/services/editorWorkerHost":[80718],"monaco-editor/esm/vs/editor/common/services/editorWorkerHost.js":[80718],"monaco-editor/esm/vs/editor/common/services/findSectionHeaders":[56691],"monaco-editor/esm/vs/editor/common/services/findSectionHeaders.js":[56691],"monaco-editor/esm/vs/editor/common/services/getIconClasses":[53068],"monaco-editor/esm/vs/editor/common/services/getIconClasses.js":[53068],"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce":[32500],"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce.js":[32500],"monaco-editor/esm/vs/editor/common/services/languageFeatures":[56942],"monaco-editor/esm/vs/editor/common/services/languageFeatures.js":[56942],"monaco-editor/esm/vs/editor/common/services/languageFeaturesService":[76007],"monaco-editor/esm/vs/editor/common/services/languageFeaturesService.js":[76007],"monaco-editor/esm/vs/editor/common/services/languageService":[17890],"monaco-editor/esm/vs/editor/common/services/languageService.js":[17890],"monaco-editor/esm/vs/editor/common/services/languagesAssociations":[99908],"monaco-editor/esm/vs/editor/common/services/languagesAssociations.js":[99908],"monaco-editor/esm/vs/editor/common/services/languagesRegistry":[69259],"monaco-editor/esm/vs/editor/common/services/languagesRegistry.js":[69259],"monaco-editor/esm/vs/editor/common/services/markerDecorations":[37550],"monaco-editor/esm/vs/editor/common/services/markerDecorations.js":[37550],"monaco-editor/esm/vs/editor/common/services/markerDecorationsService":[30707],"monaco-editor/esm/vs/editor/common/services/markerDecorationsService.js":[30707],"monaco-editor/esm/vs/editor/common/services/model":[23750],"monaco-editor/esm/vs/editor/common/services/model.js":[23750],"monaco-editor/esm/vs/editor/common/services/modelService":[16363],"monaco-editor/esm/vs/editor/common/services/modelService.js":[16363],"monaco-editor/esm/vs/editor/common/services/resolverService":[18938],"monaco-editor/esm/vs/editor/common/services/resolverService.js":[18938],"monaco-editor/esm/vs/editor/common/services/semanticTokensDto":[98232],"monaco-editor/esm/vs/editor/common/services/semanticTokensDto.js":[98232],"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling":[45538],"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling.js":[45538],"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling":[74243],"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling.js":[74243],"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService":[27004],"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService.js":[27004],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl":[47443],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl.js":[47443],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol":[28868,8868],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol.js":[28868,8868],"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration":[90360],"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration.js":[90360],"monaco-editor/esm/vs/editor/common/services/treeSitterParserService":[44432],"monaco-editor/esm/vs/editor/common/services/treeSitterParserService.js":[44432],"monaco-editor/esm/vs/editor/common/services/treeViewsDnd":[36723],"monaco-editor/esm/vs/editor/common/services/treeViewsDnd.js":[36723],"monaco-editor/esm/vs/editor/common/services/treeViewsDndService":[29100],"monaco-editor/esm/vs/editor/common/services/treeViewsDndService.js":[29100],"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter":[74855],"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter.js":[74855]};function r(e){if(!a.o(n,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=n[e],r=t[0];return Promise.all(t.slice(1).map(a.e)).then((()=>a(r)))}r.keys=()=>Object.keys(n),r.id=9204,e.exports=r},52246:()=>{},64851:(e,t,a)=>{"use strict";a.r(t),a.d(t,{Tenant:()=>Kg});var n=a(59284),r=a(61750),s=a(67087),i=a(64689),o=a(98167),l=a(61283),c=a(77506),d=a(60712);const u=(0,c.cn)("kv-split"),m=[0,100],p=[50,50];const h=function(e){const[t,a]=n.useState(),r=t=>{const{defaultSizePaneKey:a}=e;localStorage.setItem(a,t.join(","))};return n.useEffect((()=>{const{collapsedSizes:t,triggerCollapse:n}=e;if(n){const e=t||m;r(e),a(e)}}),[e.triggerCollapse]),n.useEffect((()=>{const{triggerExpand:t,defaultSizes:n}=e,s=n||p;t&&(r(s),a(s))}),[e.triggerExpand]),(0,d.jsx)(n.Fragment,{children:(0,d.jsx)(l.A,{direction:e.direction||"horizontal",sizes:t||(()=>{var t;const{defaultSizePaneKey:a,defaultSizes:n=p,initialSizes:r}=e;if(r)return r;return(null===(t=localStorage.getItem(a))||void 0===t?void 0:t.split(",").map(Number))||n})(),minSize:e.minSize||[0,0],onDrag:t=>{const{onSplitDragAdditional:a}=e;a&&a(),r(t)},className:u(null,e.direction||"horizontal"),gutterSize:8,onDragStart:()=>{const{onSplitStartDragAdditional:t}=e;t&&t(),a(void 0)},expandToMin:!0,children:e.children})})};var v=a(40174),g=a(53850),y=a(44992);let x=function(e){return e.EPathTypeInvalid="EPathTypeInvalid",e.EPathTypeDir="EPathTypeDir",e.EPathTypeTable="EPathTypeTable",e.EPathTypePersQueueGroup="EPathTypePersQueueGroup",e.EPathTypeSubDomain="EPathTypeSubDomain",e.EPathTypeTableIndex="EPathTypeTableIndex",e.EPathTypeExtSubDomain="EPathTypeExtSubDomain",e.EPathTypeColumnStore="EPathTypeColumnStore",e.EPathTypeColumnTable="EPathTypeColumnTable",e.EPathTypeCdcStream="EPathTypeCdcStream",e.EPathTypeExternalDataSource="EPathTypeExternalDataSource",e.EPathTypeExternalTable="EPathTypeExternalTable",e.EPathTypeView="EPathTypeView",e.EPathTypeReplication="EPathTypeReplication",e.EPathTypeTransfer="EPathTypeTransfer",e.EPathTypeResourcePool="EPathTypeResourcePool",e}({}),b=function(e){return e.EPathSubTypeEmpty="EPathSubTypeEmpty",e.EPathSubTypeSyncIndexImplTable="EPathSubTypeSyncIndexImplTable",e.EPathSubTypeAsyncIndexImplTable="EPathSubTypeAsyncIndexImplTable",e.EPathSubTypeStreamImpl="EPathSubTypeStreamImpl",e}({});let f=function(e){return e.ColumnCodecPlain="ColumnCodecPlain",e.ColumnCodecLZ4="ColumnCodecLZ4",e.ColumnCodecZSTD="ColumnCodecZSTD",e}({});let T=function(e){return e.METERING_MODE_RESERVED_CAPACITY="METERING_MODE_RESERVED_CAPACITY",e.METERING_MODE_REQUEST_UNITS="METERING_MODE_REQUEST_UNITS",e}({});const j={[b.EPathSubTypeSyncIndexImplTable]:"index_table",[b.EPathSubTypeAsyncIndexImplTable]:"index_table",[b.EPathSubTypeStreamImpl]:void 0,[b.EPathSubTypeEmpty]:void 0},S={[x.EPathTypeInvalid]:void 0,[x.EPathTypeSubDomain]:"database",[x.EPathTypeExtSubDomain]:"database",[x.EPathTypeDir]:"directory",[x.EPathTypeColumnStore]:"directory",[x.EPathTypeTable]:"table",[x.EPathTypeTableIndex]:"index",[x.EPathTypeColumnTable]:"column_table",[x.EPathTypeCdcStream]:"stream",[x.EPathTypePersQueueGroup]:"topic",[x.EPathTypeExternalDataSource]:"external_data_source",[x.EPathTypeExternalTable]:"external_table",[x.EPathTypeView]:"view",[x.EPathTypeReplication]:"async_replication",[x.EPathTypeTransfer]:"transfer",[x.EPathTypeResourcePool]:"resource_pool"},N={table:x.EPathTypeTable,index:x.EPathTypeTableIndex,column_table:x.EPathTypeColumnTable,external_table:x.EPathTypeExternalTable,view:x.EPathTypeView},E=(e=x.EPathTypeDir,t,a="directory")=>t&&j[t]||S[e]||a,w={[b.EPathSubTypeSyncIndexImplTable]:"Secondary Index Table",[b.EPathSubTypeAsyncIndexImplTable]:"Secondary Index Table",[b.EPathSubTypeStreamImpl]:void 0,[b.EPathSubTypeEmpty]:void 0},C={[x.EPathTypeInvalid]:void 0,[x.EPathTypeSubDomain]:"Database",[x.EPathTypeExtSubDomain]:"Database",[x.EPathTypeDir]:"Directory",[x.EPathTypeTable]:"Table",[x.EPathTypeTableIndex]:"Secondary Index",[x.EPathTypeColumnStore]:"Tablestore",[x.EPathTypeColumnTable]:"Column-oriented table",[x.EPathTypeCdcStream]:"Changefeed",[x.EPathTypePersQueueGroup]:"Topic",[x.EPathTypeExternalDataSource]:"External Data Source",[x.EPathTypeExternalTable]:"External Table",[x.EPathTypeView]:"View",[x.EPathTypeReplication]:"Async Replication",[x.EPathTypeTransfer]:"Transfer",[x.EPathTypeResourcePool]:"Resource Pool"},P={UnknownTenantType:"Database",Domain:"Cluster Root",Dedicated:"Dedicated Database",Shared:"Shared Database",Serverless:"Serverless Database"},I={[x.EPathTypeTable]:!0,[x.EPathTypeColumnTable]:!0,[x.EPathTypeExternalTable]:!0,[x.EPathTypeView]:!0,[x.EPathTypeInvalid]:!1,[x.EPathTypeDir]:!1,[x.EPathTypeSubDomain]:!1,[x.EPathTypeTableIndex]:!1,[x.EPathTypeExtSubDomain]:!1,[x.EPathTypeColumnStore]:!1,[x.EPathTypeCdcStream]:!1,[x.EPathTypePersQueueGroup]:!1,[x.EPathTypeExternalDataSource]:!1,[x.EPathTypeReplication]:!1,[x.EPathTypeTransfer]:!1,[x.EPathTypeResourcePool]:!1},D=e=>{var t;return null!==(t=e&&I[e])&&void 0!==t&&t},A={[b.EPathSubTypeSyncIndexImplTable]:!0,[b.EPathSubTypeAsyncIndexImplTable]:!0,[b.EPathSubTypeStreamImpl]:!1,[b.EPathSubTypeEmpty]:!1},_=e=>{var t;return null!==(t=e&&A[e])&&void 0!==t&&t},R={[x.EPathTypeColumnStore]:!0,[x.EPathTypeColumnTable]:!0,[x.EPathTypeInvalid]:!1,[x.EPathTypeDir]:!1,[x.EPathTypeTable]:!1,[x.EPathTypeSubDomain]:!1,[x.EPathTypeTableIndex]:!1,[x.EPathTypeExtSubDomain]:!1,[x.EPathTypeCdcStream]:!1,[x.EPathTypePersQueueGroup]:!1,[x.EPathTypeExternalDataSource]:!1,[x.EPathTypeExternalTable]:!1,[x.EPathTypeView]:!1,[x.EPathTypeReplication]:!1,[x.EPathTypeTransfer]:!1,[x.EPathTypeResourcePool]:!1},k=e=>{var t;return null!==(t=e&&R[e])&&void 0!==t&&t},O={[x.EPathTypeSubDomain]:!0,[x.EPathTypeExtSubDomain]:!0,[x.EPathTypeInvalid]:!1,[x.EPathTypeDir]:!1,[x.EPathTypeColumnStore]:!1,[x.EPathTypeColumnTable]:!1,[x.EPathTypeTable]:!1,[x.EPathTypeTableIndex]:!1,[x.EPathTypeCdcStream]:!1,[x.EPathTypePersQueueGroup]:!1,[x.EPathTypeExternalDataSource]:!1,[x.EPathTypeExternalTable]:!1,[x.EPathTypeView]:!1,[x.EPathTypeReplication]:!1,[x.EPathTypeTransfer]:!1,[x.EPathTypeResourcePool]:!1},M=e=>{var t;return null!==(t=e&&O[e])&&void 0!==t&&t},L={[x.EPathTypeCdcStream]:!0,[x.EPathTypePersQueueGroup]:!1,[x.EPathTypeInvalid]:!1,[x.EPathTypeColumnStore]:!1,[x.EPathTypeColumnTable]:!1,[x.EPathTypeDir]:!1,[x.EPathTypeTable]:!1,[x.EPathTypeSubDomain]:!1,[x.EPathTypeTableIndex]:!1,[x.EPathTypeExtSubDomain]:!1,[x.EPathTypeExternalDataSource]:!1,[x.EPathTypeExternalTable]:!1,[x.EPathTypeView]:!1,[x.EPathTypeReplication]:!1,[x.EPathTypeTransfer]:!1,[x.EPathTypeResourcePool]:!1},z=e=>{var t;return null!==(t=e&&L[e])&&void 0!==t&&t},q={[b.EPathSubTypeSyncIndexImplTable]:!0,[b.EPathSubTypeAsyncIndexImplTable]:!0,[b.EPathSubTypeStreamImpl]:!1,[b.EPathSubTypeEmpty]:!1},F={[x.EPathTypeCdcStream]:!0,[x.EPathTypePersQueueGroup]:!0,[x.EPathTypeExternalDataSource]:!0,[x.EPathTypeExternalTable]:!0,[x.EPathTypeView]:!0,[x.EPathTypeResourcePool]:!0,[x.EPathTypeReplication]:!0,[x.EPathTypeTransfer]:!0,[x.EPathTypeInvalid]:!1,[x.EPathTypeColumnStore]:!1,[x.EPathTypeColumnTable]:!1,[x.EPathTypeDir]:!1,[x.EPathTypeTable]:!1,[x.EPathTypeSubDomain]:!1,[x.EPathTypeTableIndex]:!1,[x.EPathTypeExtSubDomain]:!1},$=(e,t)=>{var a;return null!==(a=t&&q[t]||e&&F[e])&&void 0!==a&&a},U=e=>e===x.EPathTypeExternalTable,Q=e=>e===x.EPathTypeTable,B=e=>e===x.EPathTypeView;var H=a(21334);const G=H.F.injectEndpoints({endpoints:e=>({getMultiOverview:e.query({queryFn:async({paths:e,database:t},{signal:a})=>{try{return{data:await Promise.all(e.map((e=>window.api.viewer.getDescribe({path:e,database:t},{signal:a}))))}}catch(n){return{error:n}}},keepUnusedDataFor:0,providesTags:["All"]}),getOverview:e.query({queryFn:async({path:e,database:t,timeout:a},{signal:n})=>{try{return{data:await window.api.viewer.getDescribe({path:e,database:t,timeout:a},{signal:n})}}catch(r){return{error:r}}},keepUnusedDataFor:0,providesTags:["All","SchemaTree"]})})}),W=(0,g.Mz)((e=>e),((e,t)=>t),((e,t)=>G.endpoints.getOverview.select({path:e,database:t}))),V=(0,g.Mz)((e=>e),((e,t,a)=>W(t,a)),((e,t)=>t(e).data)),J=(0,g.Mz)([(e,t)=>t,(e,t,a)=>a,(e,t,a,n)=>((e,t,a)=>{var n,r;return null===(n=V(e,t,a))||void 0===n||null===(r=n.PathDescription)||void 0===r?void 0:r.Children})(e,t,n)],((e,t,a)=>z(t)?null===a||void 0===a?void 0:a.map((({Name:t})=>e+"/"+t)):void 0));function K({paths:e,database:t,autoRefreshInterval:a}){const[n,...r]=e,{currentData:s,isFetching:i,error:o}=G.useGetOverviewQuery({path:n,database:t},{pollingInterval:a}),{currentData:l,isFetching:c,error:d}=G.useGetMultiOverviewQuery(r.length?{paths:r,database:t}:y.hT,{pollingInterval:a});return{loading:i&&void 0===s||c&&void 0===l,error:o||d,mergedDescribe:[s,...null!==l&&void 0!==l?l:[]].reduce(((e,t)=>(null!==t&&void 0!==t&&t.Path&&(e[t.Path]=t),e)),{})}}var Y=a(29078),Z=a(76086),X=a(90182),ee=a(81288),te=a(22680),ae=a(52531),ne=a(23871),re=a(52905),se=a(90053),ie=a(67028),oe=a(18517),le=a(24555),ce=a(74321),de=a(44508),ue=a(52248),me=a(90565),pe=a(49818),he=a(56839),ve=a(61758),ge=a.n(ve),ye=a(92459),xe=a(58351);const be=(0,c.cn)("heatmap"),fe={width:0,height:0},Te=10,je=e=>{const[t,a]=n.useState(fe),{tablets:r}=e,s=n.useRef(null),i=n.useRef(null);n.useEffect((()=>{const e=s.current,a=e.getContext("2d");a.clearRect(0,0,e.offsetWidth,e.offsetHeight),r.map(function(e){return(a,n)=>{const{columnsCount:r}=t,s=n%r*12,i=12*Math.floor(n/r);e.fillStyle=a.color||"grey",e.fillRect(s,i,Te,Te)}}(a))})),n.useLayoutEffect((()=>{const e=i.current;if(e){const t=e.offsetWidth-15,n=Math.floor(t/12),s=Math.ceil(r.length/n);a({width:t,height:12*s,columnsCount:n,rowsCount:s})}}),[]);const o=()=>{let e=s.current,t=0;for(;e;)t+=e.offsetTop,e=e.offsetParent;return t},l=()=>{let e=s.current,t=0;for(;e;)t+=e.offsetLeft,e=e.offsetParent;return t},c=(e,a)=>{const{columnsCount:n}=t,r=Math.floor(e/12);return n*Math.floor(a/12)+r},u=ge()(((t,a)=>{const n=new CustomEvent("scroll");window.dispatchEvent(n);const s=e.parentRef.current,i=t-l()+s.scrollLeft,d=a-o()+s.scrollTop,u=c(i,d),m=r[u];if(m){const n={name:m.currentMetric,value:m.formattedValue};e.showTooltip(void 0,m,"tablet",n,{left:t-20,top:a-20})}else e.hideTooltip()}),20);return(0,d.jsx)("div",{ref:i,className:be("canvas-container"),onMouseLeave:()=>{setTimeout((()=>{e.hideTooltip()}),40)},children:(0,d.jsx)("canvas",{ref:s,width:t.width,height:t.height,onClick:t=>{const a=e.parentRef.current,n=t.clientX-l()+a.scrollLeft,s=t.clientY-o()+a.scrollTop,i=c(n,s),d=r[i];d&&window.open((e=>{const{TabletId:t}=e,a=window.location.hostname,n=(0,ye.DM)(t);return`https://${[a,xe.P8,n].map((e=>e.startsWith("/")?e.slice(1):e)).filter(Boolean).join("/")}`})(d),"_blank")},onMouseMove:e=>u(e.clientX,e.clientY)})})},Se={r:255,g:4,b:0},Ne={r:255,g:219,b:77},Ee={r:59,g:201,b:53},we={CPU:{min:0,max:1e6},Network:{min:0,max:1e9},Storage:{min:0,max:2e9},DataSize:{min:0,max:2e9},RowCount:{min:0},IndexSize:{min:0}},Ce=e=>{const t=e.toString(16);return 1===t.length?`0${t}`:t},Pe=(e,t,a)=>{if(1===e)return[t];if(2===e)return[t,a];const n=(t.r-a.r)/(e-1),r=(t.g-a.g)/(e-1),s=(t.b-a.b)/(e-1),i=[];for(let o=0;o<e;o++)i.push({r:Math.round(t.r-n*o),g:Math.round(t.g-r*o),b:Math.round(t.b-s*o)});return i.map((e=>(({r:e,g:t,b:a})=>`#${Ce(e)}${Ce(t)}${Ce(a)}`)(e)))},Ie=e=>{const t=Math.floor(e/2),a=t+1;return[...Pe(e%2===0?t:t+1,Ee,Ne),...Pe(a,Ne,Se).slice(1)]},De=(e,t)=>{const a=new Set,n=we[e]||{};t.forEach((t=>{var n;a.add(Number(null===(n=t.metrics)||void 0===n?void 0:n[e]))})),Number.isInteger(n.min)&&a.add(n.min),Number.isInteger(n.max)&&a.add(n.max);const r=Array.from(a.values()).sort(((e,t)=>e-t));return{min:r[0],max:r[r.length-1]}},Ae=(0,c.cn)("histogram"),_e=e=>{const t=n.useRef(),{data:a={},maxCount:r}=e,{count:s,leftBound:i,rightBound:o,color:l}=a,c=s/r*100;return(0,d.jsx)("div",{ref:t,className:Ae("item"),style:{backgroundColor:l,height:`${c}%`},onMouseEnter:()=>{const a=t.current;e.showTooltip(a,{count:s,leftBound:i,rightBound:o},"histogram")},onMouseLeave:e.hideTooltip})},Re=e=>{const{tablets:t,currentMetric:a}=e,{min:n,max:r}=De(a,t),s=Ie(50),i=(r-n)/50,o=s.map(((e,t)=>({color:e,count:0,leftBound:(0,he.ZV)(n+t*i),rightBound:(0,he.ZV)(n+(t+1)*i)})));let l=0;t.forEach((e=>{var t,n;const r=a&&Number(null===(t=e.metrics)||void 0===t?void 0:t[a]),s=Math.floor(r/i),c=(null===(n=o[s])||void 0===n?void 0:n.count)+1;c>l&&(l=c),o[s]={...o[s],count:c}}));return(0,d.jsx)("div",{className:Ae(),children:(0,d.jsxs)("div",{className:Ae("chart"),children:[Boolean(r)&&o.map(((t,a)=>(0,d.jsx)(_e,{data:t,maxCount:l,showTooltip:e.showTooltip,hideTooltip:e.hideTooltip},a))),(0,d.jsx)("div",{className:Ae("x-min"),children:(0,he.ZV)(n)}),(0,d.jsx)("div",{className:Ae("x-max"),children:(0,he.ZV)(r)}),(0,d.jsx)("div",{className:Ae("y-min"),children:"0"}),(0,d.jsx)("div",{className:Ae("y-max"),children:(0,he.ZV)(l)})]})})},ke=(0,c.cn)("heatmap"),Oe=Ie(500),Me=({path:e,database:t})=>{const a=(0,X.YQ)(),r=n.createRef(),[s]=(0,X.Nt)(),{currentData:i,isFetching:o,error:l}=me.f1.useGetHeatmapTabletsInfoQuery({path:e,database:t},{pollingInterval:s}),c=o&&void 0===i,{tablets:u=[],metrics:m}=i||{},{sort:p,heatmap:h,currentMetric:v}=(0,X.N4)((e=>e.heatmap)),g=(...e)=>{a((0,pe.DK)(...e))},y=()=>{a((0,pe.w7)())},x=e=>{a((0,me.nd)({currentMetric:e[0]}))},b=()=>{a((0,me.nd)({sort:!p}))},f=()=>{a((0,me.nd)({heatmap:!h}))},T=()=>{const{min:e,max:t}=De(v,u),a=u.map((a=>{var n;const r=v&&Number(null===(n=a.metrics)||void 0===n?void 0:n[v]),s=((e,t,a)=>0===a?0:Math.round((e-t)/(a-t)*499))(r,e,t),i=Oe[s];return{...a,color:i,value:r,formattedValue:(0,he.ZV)(r),currentMetric:v}})),n=p?a.sort(((e,t)=>Number(t.value)-Number(e.value))):a;return(0,d.jsx)("div",{ref:r,className:ke("items"),children:(0,d.jsx)(je,{tablets:n,parentRef:r,showTooltip:g,hideTooltip:y})})};return c?(0,d.jsx)(ue.a,{}):(()=>{const{min:e,max:t}=De(v,u);let a;return l&&!i||(a=h?T():(0,d.jsx)(Re,{tablets:u,currentMetric:v,showTooltip:g,hideTooltip:y})),(0,d.jsxs)("div",{className:ke(),children:[(0,d.jsxs)("div",{className:ke("filters"),children:[(0,d.jsx)(le.l,{className:ke("heatmap-select"),value:v?[v]:[],options:m,onUpdate:x,width:200}),(0,d.jsx)("div",{className:ke("sort-checkbox"),children:(0,d.jsx)(ce.S,{onUpdate:b,checked:p,children:"Sort"})}),(0,d.jsx)("div",{className:ke("histogram-checkbox"),children:(0,d.jsx)(ce.S,{onUpdate:f,checked:h,children:"Heatmap"})}),(0,d.jsxs)("div",{className:ke("limits"),children:[(0,d.jsxs)("div",{className:ke("limits-block"),children:[(0,d.jsx)("div",{className:ke("limits-title"),children:"min:"}),(0,d.jsx)("div",{className:ke("limits-value"),children:Number.isInteger(e)?(0,he.ZV)(e):"\u2014"})]}),(0,d.jsxs)("div",{className:ke("limits-block"),children:[(0,d.jsx)("div",{className:ke("limits-title"),children:"max:"}),(0,d.jsx)("div",{className:ke("limits-value"),children:Number.isInteger(t)?(0,he.ZV)(t):"\u2014"})]}),(0,d.jsxs)("div",{className:ke("limits-block"),children:[(0,d.jsx)("div",{className:ke("limits-title"),children:"count:"}),(0,d.jsx)("div",{className:ke("limits-value"),children:(0,he.ZV)(u.length)})]})]})]}),l?(0,d.jsx)(de.o,{error:l}):null,a]})})()};var Le=a(7117),ze=a(59109),qe=a(17594),Fe=a(89073);const $e=H.F.injectEndpoints({endpoints:e=>({getOperationList:e.query({queryFn:async(e,{signal:t})=>{try{return{data:await window.api.operation.getOperationList(e,{signal:t})}}catch(a){return{error:a}}},providesTags:["All"]}),cancelOperation:e.mutation({queryFn:async(e,{signal:t})=>{try{return{data:await window.api.operation.cancelOperation(e,{signal:t})}}catch(a){return{error:a}}}}),forgetOperation:e.mutation({queryFn:async(e,{signal:t})=>{try{return{data:await window.api.operation.forgetOperation(e,{signal:t})}}catch(a){return{error:a}}}})}),overrideExisting:"throw"});var Ue=a(28539),Qe=a(95963),Be=a(48372);const He=JSON.parse('{"label_operations":"Operations","title_empty":"No operations data","pleaceholder_search":"Search operations","placeholder_kind":"Select operation kind","kind_ssBackgrounds":"SS/Backgrounds","kind_export":"Export","kind_buildIndex":"Build Index","column_operationId":"Operation ID","column_status":"Status","column_createdBy":"Created By","column_createTime":"Create Time","column_endTime":"End Time","column_duration":"Duration","label_duration-ongoing":"{{value}} (ongoing)","header_cancel":"Cancel operation","header_forget":"Forget operation","text_cancel":"The operation will be cancelled. Do you want to proceed?","text_forget":"The operation will be forgotten. Do you want to proceed?","text_forgotten":"The operation {{id}} has been forgotten","text_cancelled":"The operation {{id}} has been cancelled"}'),Ge=(0,Be.g4)("ydb-operations",{en:He}),We="id",Ve="status",Je="created_by",Ke="create_time",Ye="end_time",Ze="duration",Xe={[We]:Ge("column_operationId"),[Ve]:Ge("column_status"),[Je]:Ge("column_createdBy"),[Ke]:Ge("column_createTime"),[Ye]:Ge("column_endTime"),[Ze]:Ge("column_duration")},et=[{value:"export",content:Ge("kind_export")},{value:"ss/backgrounds",content:Ge("kind_ssBackgrounds")},{value:"buildindex",content:Ge("kind_buildIndex")}],tt=(0,c.cn)("operations");function at({kind:e,searchValue:t,entitiesCountCurrent:a,entitiesCountTotal:r,entitiesLoading:s,handleKindChange:i,handleSearchChange:o}){return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(Qe.v,{value:t,onChange:o,placeholder:Ge("pleaceholder_search"),className:tt("search")}),(0,d.jsx)(le.l,{value:[e],width:150,options:et,onUpdate:e=>i(e[0])}),(0,d.jsx)(Ue.T,{label:Ge("label_operations"),loading:s,total:r,current:a})]})}var nt=a(14750),rt=a(58272),st=a(45345),it=a(98089),ot=a(87184),lt=a(18650),ct=a(99991),dt=a(22983),ut=a(71661);let mt=function(e){return e.STATUS_CODE_UNSPECIFIED="STATUS_CODE_UNSPECIFIED",e.SUCCESS="SUCCESS",e.BAD_REQUEST="BAD_REQUEST",e.UNAUTHORIZED="UNAUTHORIZED",e.INTERNAL_ERROR="INTERNAL_ERROR",e.ABORTED="ABORTED",e.UNAVAILABLE="UNAVAILABLE",e.OVERLOADED="OVERLOADED",e.SCHEME_ERROR="SCHEME_ERROR",e.GENERIC_ERROR="GENERIC_ERROR",e.TIMEOUT="TIMEOUT",e.BAD_SESSION="BAD_SESSION",e.PRECONDITION_FAILED="PRECONDITION_FAILED",e.ALREADY_EXISTS="ALREADY_EXISTS",e.NOT_FOUND="NOT_FOUND",e.SESSION_EXPIRED="SESSION_EXPIRED",e.CANCELLED="CANCELLED",e.UNDETERMINED="UNDETERMINED",e.UNSUPPORTED="UNSUPPORTED",e.SESSION_BUSY="SESSION_BUSY",e.EXTERNAL_ERROR="EXTERNAL_ERROR",e}({});var pt=a(59625);const ht=function({name:e,title:t,type:a,content:n,autoHiding:r}){return pt.X.add({name:null!==e&&void 0!==e?e:"Request succeeded",title:null!==t&&void 0!==t?t:"Request succeeded",theme:"error"===a?"danger":"success",content:n,isClosable:!0,autoHiding:r||"success"===a&&5e3})};var vt=a(73891);function gt({database:e,refreshTable:t}){return[{name:We,header:Xe[We],width:340,render:({row:e})=>e.id?(0,d.jsx)(ut.s,{placement:["top","bottom"],content:e.id,children:e.id}):Z.Pd},{name:Ve,header:Xe[Ve],render:({row:e})=>e.status?(0,d.jsx)(it.E,{color:e.status===mt.SUCCESS?"positive":"danger",children:e.status}):Z.Pd},{name:Je,header:Xe[Je],render:({row:e})=>e.created_by?e.created_by:Z.Pd},{name:Ke,header:Xe[Ke],render:({row:e})=>e.create_time?(0,he.r6)((0,vt.ee)(e.create_time)):Z.Pd,sortAccessor:e=>e.create_time?(0,vt.ee)(e.create_time):0},{name:Ye,header:Xe[Ye],render:({row:e})=>e.end_time?(0,he.r6)((0,vt.ee)(e.end_time)):Z.Pd,sortAccessor:e=>e.end_time?(0,vt.ee)(e.end_time):Number.MAX_SAFE_INTEGER},{name:Ze,header:Xe[Ze],render:({row:e})=>{let t=0;if(!e.create_time)return Z.Pd;const a=(0,vt.ee)(e.create_time);if(e.end_time){t=(0,vt.ee)(e.end_time)-a}else t=Date.now()-a;const n=t>Z.Jg*Z.KF?(0,nt.p0)(t).format("hh:mm:ss"):(0,nt.p0)(t).format("mm:ss");return e.end_time?n:Ge("label_duration-ongoing",{value:n})},sortAccessor:e=>{if(!e.create_time)return 0;const t=(0,vt.ee)(e.create_time);if(e.end_time){return(0,vt.ee)(e.end_time)-t}return Date.now()-t}},{name:"Actions",sortable:!1,resizeable:!1,header:"",render:({row:a})=>(0,d.jsx)(yt,{operation:a,database:e,refreshTable:t})}]}function yt({operation:e,database:t,refreshTable:a}){const[n,{isLoading:r}]=$e.useCancelOperationMutation(),[s,{isLoading:i}]=$e.useForgetOperationMutation(),o=e.id;return o?(0,d.jsxs)(ot.s,{gap:"2",children:[(0,d.jsx)(lt.m,{title:Ge("header_forget"),placement:["left","auto"],children:(0,d.jsx)("div",{children:(0,d.jsx)(dt.B,{buttonView:"outlined",dialogHeader:Ge("header_forget"),dialogText:Ge("text_forget"),onConfirmAction:()=>s({id:o,database:t}).unwrap().then((()=>{ht({name:"Forgotten",title:Ge("text_forgotten",{id:o}),type:"success"}),a()})),buttonDisabled:r,children:(0,d.jsx)(ct.I,{data:rt.A})})})}),(0,d.jsx)(lt.m,{title:Ge("header_cancel"),placement:["right","auto"],children:(0,d.jsx)("div",{children:(0,d.jsx)(dt.B,{buttonView:"outlined",dialogHeader:Ge("header_cancel"),dialogText:Ge("text_cancel"),onConfirmAction:()=>n({id:o,database:t}).unwrap().then((()=>{ht({name:"Cancelled",title:Ge("text_cancelled",{id:o}),type:"success"}),a()})),buttonDisabled:i,children:(0,d.jsx)(ct.I,{data:st.A})})})})]}):null}var xt=a(370);const bt=xt.z.enum(["ss/backgrounds","export","buildindex"]).catch("buildindex");function ft({database:e}){var t;const[a]=(0,X.Nt)(),{kind:r,searchValue:i,pageSize:o,pageToken:l,handleKindChange:c,handleSearchChange:u}=function(){var e,t,a;const[n,r]=(0,s.useQueryParams)({kind:s.StringParam,search:s.StringParam,pageSize:s.NumberParam,pageToken:s.StringParam});return{kind:bt.parse(n.kind),searchValue:null!==(e=n.search)&&void 0!==e?e:"",pageSize:null!==(t=n.pageSize)&&void 0!==t?t:void 0,pageToken:null!==(a=n.pageToken)&&void 0!==a?a:void 0,handleKindChange:e=>{r({kind:e},"replaceIn")},handleSearchChange:e=>{r({search:e||void 0},"replaceIn")},handlePageSizeChange:e=>{r({pageSize:e},"replaceIn")},handlePageTokenChange:e=>{r({pageToken:e},"replaceIn")}}}(),{data:m,isLoading:p,error:h,refetch:v}=$e.useGetOperationListQuery({database:e,kind:r,page_size:o,page_token:l},{pollingInterval:a}),g=n.useMemo((()=>null!==m&&void 0!==m&&m.operations?m.operations.filter((e=>{var t;return null===(t=e.id)||void 0===t?void 0:t.toLowerCase().includes(i.toLowerCase())})):[]),[null===m||void 0===m?void 0:m.operations,i]);return(0,ee.Pq)(h)?(0,d.jsx)(ze.O,{position:"left"}):(0,d.jsxs)(Fe.L,{children:[(0,d.jsx)(Fe.L.Controls,{children:(0,d.jsx)(at,{kind:r,searchValue:i,entitiesCountCurrent:g.length,entitiesCountTotal:null===m||void 0===m||null===(t=m.operations)||void 0===t?void 0:t.length,entitiesLoading:p,handleKindChange:c,handleSearchChange:u})}),h?(0,d.jsx)(de.o,{error:h}):null,(0,d.jsx)(Fe.L.Table,{loading:p,className:tt("table"),children:m?(0,d.jsx)(qe.l,{columns:gt({database:e,refreshTable:v}),columnsWidthLSKey:"selectedOperationColumns",data:g,emptyDataMessage:Ge("title_empty")}):null})]})}var Tt=a(99936),jt=a(71635),St=a(19228),Nt=a(11822);function Et(e){return`SELECT * FROM \`${e}\` LIMIT 0`}const wt=H.F.injectEndpoints({endpoints:e=>({getViewSchema:e.query({queryFn:async({database:e,path:t,timeout:a})=>{try{var n,r;const s=await window.api.viewer.sendQuery({query:Et(t),database:e,action:"execute-scan",timeout:a},{withRetries:!0});return(0,Nt.We)(s)?{error:s}:{data:(null===s||void 0===s||null===(n=s.result)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.columns)||[]}}catch(s){return{error:s}}},providesTags:["All","SchemaTree"]})}),overrideExisting:"throw"});var Ct=a(47665),Pt=a(24543);const It=JSON.parse('{"column-title.id":"Id","column-title.name":"Name","column-title.type":"Type","column-title.notNull":"NotNull","column-title.autoIncrement":"AutoIncrement","column-title.defaultValue":"Default","column-title.family":"Family","column-title.media":"Media","column-title.compression":"Compression","primary-key.title":"Primary key:","partitioning-key.title":"Partitioning key:"}'),Dt=(0,Be.g4)("ydb-schema-viewer",{en:It}),At=(0,c.cn)("schema-viewer");const _t=({tableData:e,extended:t,type:a})=>{const n="primary"===a?function(e){return e.filter((e=>Boolean(void 0!==e.keyColumnIndex&&-1!==e.keyColumnIndex&&e.name))).sort(((e,t)=>e.keyColumnIndex-t.keyColumnIndex)).map((e=>e.name))}(e):function(e){return e.filter((e=>Boolean(void 0!==e.partitioningColumnIndex&&-1!==e.partitioningColumnIndex&&e.name))).sort(((e,t)=>e.partitioningColumnIndex-t.partitioningColumnIndex)).map((e=>e.name))}(e),r=t?3:n.length,s=n.slice(0,r),i=n.slice(r);return n.length>0?(0,d.jsxs)("div",{className:At("keys",{summary:!t,type:a}),children:[(0,d.jsx)("div",{className:At("keys-header"),children:Dt("primary"===a?"primary-key.title":"partitioning-key.title")}),(0,d.jsxs)("div",{className:At("keys-values"),children:[" "+s.join(", "),i.length?(0,d.jsx)(Pt.u,{className:At("more-badge"),placement:["bottom"],hasArrow:!1,pinOnClick:!0,content:(0,d.jsx)("div",{className:At("popup-content"),children:i.map((e=>(0,d.jsx)("div",{className:At("popup-item"),children:e},e)))}),children:(0,d.jsx)(Ct.J,{className:At("keys-label"),children:`+${i.length}`})}):null]})]}):null};var Rt=a(4557);function kt({data:e,name:t,header:a,sortable:n}){const r="string"===typeof a?a.length:t.length;let s=n?r+2:r;if(e)for(const i of e){let e=0;if(i[t]&&(e=String(i[t]).length),s=Math.max(s,e),10*s+20>=600)return 600}return 10*s+20}var Ot=a(34671);const Mt="name",Lt="type",zt="notNull",qt="autoIncrement",Ft="defaultValue",$t="familyName",Ut="prefferedPoolKind",Qt="columnCodec",Bt={name:"id",get header(){return Dt("column-title.id")},width:60,align:Rt.Ay.RIGHT,render:({row:e})=>{const t=(0,d.jsx)(ct.I,{className:At("key-icon"),size:12,data:Ot.A});return(0,d.jsxs)("span",{className:At("id-wrapper"),children:[e.id,void 0===e.keyColumnIndex||-1===e.keyColumnIndex?null:t]})}},Ht={name:Mt,get header(){return Dt("column-title.name")},width:120,render:({row:e})=>e.name},Gt={name:Lt,get header(){return Dt("column-title.type")},width:100,render:({row:e})=>e.type},Wt={name:zt,get header(){return Dt("column-title.notNull")},width:100,defaultOrder:Rt.Ay.DESCENDING,render:({row:e})=>{if(e.notNull)return"\u2713"}},Vt={name:qt,get header(){return Dt("column-title.autoIncrement")},width:100,defaultOrder:Rt.Ay.DESCENDING,render:({row:e})=>{if(e.autoIncrement)return"\u2713"}},Jt={name:Ft,get header(){return Dt("column-title.defaultValue")},width:100,render:({row:e})=>String(e.defaultValue)},Kt={name:$t,get header(){return Dt("column-title.family")},width:100,render:({row:e})=>e.familyName},Yt={name:Ut,get header(){return Dt("column-title.media")},width:100,render:({row:e})=>e.prefferedPoolKind},Zt={name:Qt,get header(){return Dt("column-title.compression")},width:130,render:({row:e})=>e.columnCodec};function Xt(e,t){if(!t)return e;const a=t.slice(0,100);return e.map((e=>({...e,width:kt({data:a,name:e.name,header:"string"===typeof e.header?e.header:void 0,sortable:e.sortable||void 0===e.sortable})})))}function ea(e={}){const t=function(e){var t,a,n;return null!==(t=null===e||void 0===e||null===(a=e.PartitionConfig)||void 0===a||null===(n=a.ColumnFamilies)||void 0===n?void 0:n.reduce(((e,t)=>t.Id?{...e,[t.Id]:t}:e),{}))&&void 0!==t?t:{}}(e),{Columns:a,KeyColumnNames:n}=e,r=null===a||void 0===a?void 0:a.map((e=>{var a,r,s,i;const{Id:o,Name:l,NotNull:c,Type:d,Family:u,DefaultFromSequence:m,DefaultFromLiteral:p}=e,h=null!==(a=null===n||void 0===n?void 0:n.findIndex((e=>e===l)))&&void 0!==a?a:-1,v=u?t[u].Name:void 0,g=u?null===(r=t[u].StorageConfig)||void 0===r||null===(s=r.Data)||void 0===s?void 0:s.PreferredPoolKind:void 0,y=u?function(e){if(e)return e===f.ColumnCodecPlain?"None":e.replace("ColumnCodec","").toLocaleLowerCase()}(t[u].ColumnCodec):void 0;return{id:o,name:l,keyColumnIndex:h,type:d,notNull:c,autoIncrement:Boolean(m),defaultValue:null!==(i=Object.values((null===p||void 0===p?void 0:p.value)||{})[0])&&void 0!==i?i:"-",familyName:v,prefferedPoolKind:g,columnCodec:y}}));return null!==r&&void 0!==r?r:[]}function ta(e,t){const{Table:a,ColumnTableDescription:n,ExternalTableDescription:r}=(null===t||void 0===t?void 0:t.PathDescription)||{};return Q(e)?ea(a):k(e)?function(e={}){const{Schema:t={},Sharding:a={}}=e,{Columns:n,KeyColumnNames:r}=t,{HashSharding:s={}}=a,{Columns:i=[]}=s,o=null===n||void 0===n?void 0:n.map((e=>{var t,a;const{Id:n,Name:s,Type:o,NotNull:l}=e,c=null!==(t=null===r||void 0===r?void 0:r.findIndex((e=>e===s)))&&void 0!==t?t:-1,d=null!==(a=null===i||void 0===i?void 0:i.findIndex((e=>e===s)))&&void 0!==a?a:-1;return{id:n,name:s,keyColumnIndex:c,partitioningColumnIndex:d,type:o,notNull:l}}));return[...(null===o||void 0===o?void 0:o.filter((e=>-1!==e.keyColumnIndex)))||[],...(null===o||void 0===o?void 0:o.filter((e=>-1===e.keyColumnIndex)))||[]]}(n):U(e)?function(e={}){const{Columns:t}=e;return(null===t||void 0===t?void 0:t.map((e=>{const{Id:t,Name:a,Type:n,NotNull:r}=e;return{id:t,name:a,type:n,notNull:r}})))||[]}(r):[]}function aa(e){return(null===e||void 0===e?void 0:e.map((e=>{var t;return{type:null!==(t=e.type)&&void 0!==t&&t.endsWith("?")?e.type.slice(0,-1):e.type,name:e.name}})))||[]}const na=({type:e,path:t,tenantName:a,extended:r=!1})=>{const[s]=(0,X.Nt)(),i=r?s:void 0,{currentData:o,isLoading:l}=G.useGetOverviewQuery({path:t,database:a},{pollingInterval:i}),c=B(e)?{path:t,database:a}:y.hT,{data:u,isLoading:m}=wt.useGetViewSchemaQuery(c,{pollingInterval:i}),p=n.useMemo((()=>B(e)?aa(u):ta(e,o)),[o,e,u]),h=n.useMemo((()=>p.some((e=>e.autoIncrement))),[p]),v=n.useMemo((()=>p.some((e=>e.defaultValue))),[p]),g=n.useMemo((()=>B(e)?Xt([Ht,Gt],p):U(e)||k(e)?function(e){return Xt([Bt,Ht,Gt,Wt],e)}(p):Q(e)?function(e,t,a,n){const r=[Bt,Ht,Gt,Wt];return n&&r.push(Jt),t&&r.push(Kt,Yt,Zt),a&&r.push(Vt),Xt(r,e)}(p,r,h,v):[]),[e,r,h,v,p]);return l||m?(0,d.jsx)(St.Q,{}):(0,d.jsxs)(n.Fragment,{children:[(0,d.jsxs)("div",{className:At("keys-wrapper"),children:[(0,d.jsx)(_t,{tableData:p,extended:r,type:"primary"}),(0,d.jsx)(_t,{tableData:p,extended:r,type:"partitioning"})]}),(0,d.jsx)("div",{className:At(),children:(0,d.jsx)(qe.l,{columnsWidthLSKey:"schemaTableColumnsWidth",data:p,columns:g,settings:Z.N3})})]})};var ra=a(54309),sa=a(96589),ia=a(84375),oa=a(85589);const la=JSON.parse('{"td-feature-flag":"Feature flag","td-default":"Default","td-current":"Current","enabled":"Enabled","disabled":"Disabled","flag-touched":"Flag is changed","search-placeholder":"Search by feature flag","search-empty":"Empty search result","no-data":"No data"}'),ca=(0,Be.g4)("ydb-diagnostics-configs",{en:la}),da=(0,c.cn)("ydb-diagnostics-configs"),ua=[{name:"Touched",header:"",render:({row:e})=>e.Current?(0,d.jsx)(ia.A,{content:ca("flag-touched"),className:da("icon-touched"),placement:"left",children:(0,d.jsx)(ct.I,{data:sa.A})}):null,width:36,sortable:!1,resizeable:!1},{name:"Name",get header(){return ca("td-feature-flag")},render:({row:e})=>e.Current?(0,d.jsx)("b",{children:e.Name}):e.Name,width:400,sortable:!0,sortAccessor:({Current:e,Name:t})=>Number(!e)+t.toLowerCase()},{name:"Default",get header(){return ca("td-default")},render:({row:e})=>{switch(e.Default){case!0:return ca("enabled");case!1:return ca("disabled");default:return"-"}},width:100,sortable:!1,resizeable:!1},{name:"Current",get header(){return ca("td-current")},render:({row:e})=>{var t;return(0,d.jsx)(oa.d,{disabled:!0,checked:(null!==(t=e.Current)&&void 0!==t?t:e.Default)||!1})},width:100,sortable:!1,resizeable:!1}],ma=({database:e})=>{const[t,a]=(0,s.useQueryParam)("search",s.StringParam),[n]=(0,X.Nt)(),{currentData:r=[],isLoading:i,error:o}=oe.z6.useGetClusterConfigQuery({database:e},{pollingInterval:n}),l=null===t||void 0===t?void 0:t.toLocaleLowerCase(),c=l?r.filter((e=>e.Name.toLocaleLowerCase().includes(l))):r;return(0,d.jsxs)(Fe.L,{children:[(0,d.jsx)(Fe.L.Controls,{children:(0,d.jsx)(Qe.v,{value:l,onChange:e=>{a(e||void 0,"replaceIn")},placeholder:ca("search-placeholder")})}),(0,d.jsx)(Fe.L.Table,{loading:i,children:o?(0,d.jsx)(de.o,{error:o}):(0,d.jsx)(qe.l,{emptyDataMessage:ca(l?"search-empty":"no-data"),columnsWidthLSKey:"featureFlagsColumnsWidth",columns:ua,data:c,settings:Z.N3})})]})};var pa=a(23536),ha=a.n(pa),va=a(46549);const ga=H.F.injectEndpoints({endpoints:e=>({getTopic:e.query({queryFn:async e=>{try{const t=await window.api.viewer.getTopic(e);return"object"!==typeof t?{error:{}}:{data:t}}catch(t){return{error:t}}},providesTags:["All"]})}),overrideExisting:"throw"}),ya=(0,g.Mz)((e=>e),((e,t)=>t),((e,t)=>ga.endpoints.getTopic.select({path:e,database:t}))),xa=(0,g.Mz)((e=>e),((e,t,a)=>ya(t,a)),((e,t)=>{var a;return null===(a=t(e).data)||void 0===a?void 0:a.topic_stats})),ba=(0,g.Mz)((e=>e),((e,t,a)=>ya(t,a)),((e,t)=>{var a;return null===(a=t(e).data)||void 0===a?void 0:a.consumers})),fa=(0,g.Mz)(ba,(e=>null===e||void 0===e?void 0:e.map((e=>null===e||void 0===e?void 0:e.name)).filter((e=>void 0!==e)))),Ta=(0,g.Mz)(xa,(e=>{if(!e)return;const{store_size_bytes:t="0",min_last_write_time:a,max_write_time_lag:n,bytes_written:r}=e||{};return{storeSize:t,partitionsIdleTime:(0,vt.MC)(a),partitionsWriteLag:(0,vt.i6)(n),writeSpeed:(0,va.ey)(r)}})),ja=(0,g.Mz)(ba,(e=>null===e||void 0===e?void 0:e.map((e=>{const{name:t,consumer_stats:a}=e||{},{min_partitions_last_read_time:n,max_read_time_lag:r,max_write_time_lag:s,bytes_read:i}=a||{};return{name:t,readSpeed:(0,va.ey)(i),writeLag:(0,vt.i6)(s),readLag:(0,vt.i6)(r),readIdleTime:(0,vt.MC)(n)}})))),Sa=JSON.parse('{"averageSpeed":"Average speed","perMinute":"per minute","perHour":"per hour","perDay":"per day"}'),Na=JSON.parse('{"averageSpeed":"\u0421\u0440\u0435\u0434\u043d\u044f\u044f \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c","perMinute":"\u0437\u0430 \u043c\u0438\u043d\u0443\u0442\u0443","perHour":"\u0437\u0430 \u0447\u0430\u0441","perDay":"\u0437\u0430 \u0434\u0435\u043d\u044c"}'),Ea=(0,Be.g4)("ydb-components-speed-multimeter",{ru:Na,en:Sa}),wa=(0,c.cn)("speed-multimeter"),Ca=({data:e,speedSize:t="kb",withValue:a=!0,withPopover:r=!0})=>{const{perMinute:s=0,perHour:i=0,perDay:o=0}=e||{},l=[s,i,o],c=e=>(0,va.z3)({value:e,size:t,withSpeedLabel:!0}),u=[{value:c(s),label:Ea("perMinute")},{value:c(i),label:Ea("perHour")},{value:c(o),label:Ea("perDay")}],[m,p]=n.useState(s),[h,v]=n.useState(a?0:void 0),[g,y]=n.useState(),x=(e,t)=>{p(e[t]),v(t),y(t)},b=e=>h===e,f=e=>g===e;return(0,d.jsx)("div",{className:wa(),children:(0,d.jsxs)("div",{className:wa("content"),children:[a&&(0,d.jsx)("div",{className:wa("displayed-value"),children:c(m)}),(0,d.jsx)(ia.A,{content:(0,d.jsxs)("div",{className:wa("popover-content"),children:[(0,d.jsx)("span",{className:wa("popover-header"),children:Ea("averageSpeed")}),u.map(((e,t)=>{return(0,d.jsx)("span",{className:wa("popover-row",(a=b(t),a?{color:"primary"}:{color:"secondary"})),children:`${e.label}: ${e.value}`},t);var a}))]}),className:wa("popover-container"),placement:"bottom",disabled:!r,hasArrow:!0,size:"s",children:(0,d.jsx)("div",{className:wa("bars"),onMouseLeave:()=>{p(s),v(a?0:void 0),y(void 0)},children:(()=>{const e=Math.max(...l,0)||1;return l.map(((t,a)=>(0,d.jsx)("div",{className:wa("bar-container",{highlighted:f(a)}),onMouseEnter:x.bind(null,l,a),children:(0,d.jsx)("div",{className:wa("bar",{color:b(a)?"dark":"light"}),style:{width:100*t/e+"%"}})},a)))})()})})]})})},Pa=(0,c.cn)("ydb-diagnostics-consumers-topic-stats"),Ia=({data:e})=>{const{writeSpeed:t,partitionsWriteLag:a,partitionsIdleTime:n}=e||{},r=[{label:"Write speed",value:(0,d.jsx)(Ca,{data:t})},{label:"Write lag",value:(0,he.lr)(a||0)},{label:"Write idle time",value:(0,he.lr)(n||0)}];return(0,d.jsx)("div",{className:Pa("wrapper"),children:r.map(((e,t)=>(0,d.jsxs)("div",{className:Pa("item"),children:[(0,d.jsx)("div",{className:Pa("label"),children:e.label}),(0,d.jsx)("div",{className:Pa("value"),children:e.value})]},t)))})};var Da=a(74309),Aa=a.n(Da),_a=a(44294),Ra=a(6170);const ka=({text:e,popoverContent:t,popoverClassName:a,className:n,contentClassName:r,buttonProps:s})=>(0,d.jsxs)("div",{className:n,children:[e,"\xa0",(0,d.jsx)(Ra.B,{className:a,buttonProps:s,content:t,contentClassName:r})]}),Oa=70,Ma=54,La=268,za="#ADE8F5",qa="#f5be9d",Fa=({width:e,height:t,transform:a})=>(0,d.jsx)("path",{d:`M-${e/2} 0 c0 -${t}, ${e} -${t}, ${e} 0`,fill:"none",strokeDasharray:"4,6",stroke:"#28f",strokeWidth:"1.6",transform:a}),$a=({width:e})=>(0,d.jsx)("path",{fill:"none",strokeWidth:"2",d:`M0 0 h${e} l-10 -5 m0 10 l10 -5`}),Ua=()=>(0,d.jsxs)("g",{fill:"var(--g-color-text-primary)",fontSize:"12",children:[(0,d.jsx)("g",{transform:"translate(0, 27)",stroke:qa,children:(0,d.jsx)($a,{width:203})}),(0,d.jsxs)("g",{transform:"translate(30, 0)",children:[(0,d.jsxs)("g",{transform:"translate(35, 27)",children:[(0,d.jsx)(Fa,{width:Oa,height:15}),(0,d.jsx)("text",{x:"0",y:"-15",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"write lag"})})]}),(0,d.jsxs)("g",{transform:"translate(119, 27)",children:[(0,d.jsx)(Fa,{width:98,height:15}),(0,d.jsx)("text",{x:"0",y:"-15",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"write idle time"})})]})]}),(0,d.jsxs)("g",{transform:"translate(30, 0)",children:[(0,d.jsxs)("g",{transform:"translate(0, 27)",children:[(0,d.jsx)("use",{y:"-10",xlinkHref:"#check",stroke:qa}),(0,d.jsx)("text",{x:"0",y:"20",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"create time"})})]}),(0,d.jsxs)("g",{transform:"translate(70, 27)",children:[(0,d.jsx)("use",{y:"-10",xlinkHref:"#check",stroke:qa}),(0,d.jsx)("text",{x:"0",y:"20",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"write time"})})]}),(0,d.jsx)("g",{transform:"translate(168, 27)",children:(0,d.jsx)("text",{x:"0",y:"20",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"now"})})})]})]}),Qa=()=>(0,d.jsxs)("g",{fill:"var(--g-color-text-primary)",fontSize:"12",children:[(0,d.jsx)("g",{transform:"translate(0, 27)",stroke:za,children:(0,d.jsx)($a,{width:La})}),(0,d.jsxs)("g",{transform:"translate(30, 0)",children:[(0,d.jsxs)("g",{transform:"translate(105, 27)",children:[(0,d.jsx)(Fa,{width:Oa,height:15}),(0,d.jsx)("text",{x:"0",y:"-15",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"read lag"})})]}),(0,d.jsxs)("g",{transform:"translate(35, 27)",children:[(0,d.jsx)(Fa,{width:Oa,height:15}),(0,d.jsx)("text",{x:"0",y:"-15",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"write lag"})})]}),(0,d.jsxs)("g",{transform:"translate(182, 27)",children:[(0,d.jsx)(Fa,{width:91,height:15}),(0,d.jsx)("text",{x:"0",y:"-15",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"read idle time"})})]})]}),(0,d.jsxs)("g",{transform:"translate(30, 27)",children:[(0,d.jsxs)("g",{transform:"translate(0, 0)",children:[(0,d.jsx)("use",{y:"-10",xlinkHref:"#check",stroke:za}),(0,d.jsx)("text",{x:"0",y:"20",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"create time"})})]}),(0,d.jsxs)("g",{transform:"translate(70, 0)",children:[(0,d.jsx)("use",{y:"-10",xlinkHref:"#check",stroke:za}),(0,d.jsx)("text",{x:"0",y:"20",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"write time"})})]}),(0,d.jsxs)("g",{transform:"translate(140, 0)",children:[(0,d.jsx)("use",{x:"-2",y:"-10",xlinkHref:"#check",stroke:za}),(0,d.jsx)("text",{x:"0",y:"20",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"read time"})})]}),(0,d.jsx)("g",{transform:"translate(224, 0)",children:(0,d.jsx)("text",{x:"0",y:"20",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"now"})})})]})]}),Ba=({id:e,fill:t})=>(0,d.jsx)("pattern",{id:e,x:"0",y:"0",width:"8",height:"8",patternUnits:"userSpaceOnUse",children:(0,d.jsx)("path",{d:"M0 5L5 0H8L0 8V5M5 8L8 5V8Z",fill:t})}),Ha=()=>(0,d.jsxs)("svg",{className:"paint",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 268 54",width:La,height:Ma,children:[(0,d.jsxs)("defs",{children:[(0,d.jsx)("g",{id:"check",children:(0,d.jsx)("path",{d:"M0 3 v14",strokeWidth:"2"})}),(0,d.jsx)(Ba,{id:"latest-read",fill:za}),(0,d.jsx)(Ba,{id:"latest-write",fill:qa})]}),(0,d.jsx)(Ua,{})]}),Ga=()=>(0,d.jsxs)("svg",{className:"paint",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 268 54",width:La,height:Ma,children:[(0,d.jsxs)("defs",{children:[(0,d.jsx)("g",{id:"check",children:(0,d.jsx)("path",{d:"M0 3 v14",strokeWidth:"2"})}),(0,d.jsx)(Ba,{id:"latest-read",fill:za}),(0,d.jsx)(Ba,{id:"latest-write",fill:qa})]}),(0,d.jsx)(Qa,{})]}),Wa=(0,c.cn)("ydb-lag-popover-content"),Va=({text:e,type:t})=>(0,d.jsxs)("div",{className:Wa({type:t}),children:[(0,d.jsx)("div",{className:Wa("text"),children:e}),(0,d.jsx)("div",{children:"read"===t?(0,d.jsx)(Ga,{}):(0,d.jsx)(Ha,{})})]}),Ja=JSON.parse('{"noConsumersMessage.topic":"This topic has no consumers","noConsumersMessage.stream":"This changefeed has no consumers","lagsPopover.readLags":"Read lags statistics, maximum among all consumer partitions (time format dd hh:mm:ss)","table.emptyDataMessage":"No consumers match the current search","controls.search":"Consumer"}'),Ka=JSON.parse('{"noConsumersMessage.topic":"\u0423 \u044d\u0442\u043e\u0433\u043e \u0442\u043e\u043f\u0438\u043a\u0430 \u043d\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439","noConsumersMessage.stream":"\u0423 \u044d\u0442\u043e\u0433\u043e \u0441\u0442\u0440\u0438\u043c\u0430 \u043d\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439","lagsPopover.readLags":"\u0421\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u043b\u0430\u0433\u043e\u0432 \u0447\u0442\u0435\u043d\u0438\u044f, \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u0440\u0435\u0434\u0438 \u0432\u0441\u0435\u0445 \u043f\u0430\u0440\u0442\u0438\u0446\u0438\u0439 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044f (\u0444\u043e\u0440\u043c\u0430\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0434\u0434 \u0447\u0447:\u043c\u043c:\u0441\u0441)","table.emptyDataMessage":"\u041f\u043e \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u043c\u0443 \u043f\u043e\u0438\u0441\u043a\u0443 \u043d\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439","controls.search":"Consumer"}'),Ya=(0,Be.g4)("ydb-diagnostics-consumers",{ru:Ka,en:Ja}),Za="consumer",Xa="readSpeed",en="readLags",tn={[Za]:"Consumer",[Xa]:"Read speed",[en]:"Read lags, duration"},an="writeLag",nn="readLag",rn="readIdleTime",sn={[an]:"write lag",[nn]:"read lag",[rn]:"read idle time"},on=(0,c.cn)("ydb-diagnostics-consumers-columns-header"),ln=()=>(0,d.jsx)(ka,{className:on("lags"),text:tn[en],popoverContent:(0,d.jsx)(Va,{text:Ya("lagsPopover.readLags"),type:"read"})}),cn=(0,c.cn)("ydb-diagnostics-consumers-columns"),dn=[{name:Za,header:tn[Za],align:Rt.Ay.LEFT,render:({row:e})=>{if(!e.name)return"\u2013";const t=Aa().parse(location.search,{ignoreQueryPrefix:!0});return(0,d.jsx)(_a.E,{to:(0,ra.YL)({...t,[ra.vh.diagnosticsTab]:ae.iJ.partitions,selectedConsumer:e.name}),children:e.name})}},{name:Xa,header:tn[Xa],align:Rt.Ay.RIGHT,resizeMinWidth:140,sortAccessor:e=>e.readSpeed.perMinute,render:({row:e})=>(0,d.jsx)(Ca,{data:e.readSpeed})},{name:en,header:(0,d.jsx)(ln,{}),className:cn("lags-header"),sub:[{name:an,header:sn[an],align:Rt.Ay.RIGHT,render:({row:e})=>(0,he.lr)(e.writeLag)},{name:nn,header:sn[nn],align:Rt.Ay.RIGHT,render:({row:e})=>(0,he.lr)(e.readLag)},{name:rn,header:sn[rn],align:Rt.Ay.RIGHT,render:({row:e})=>(0,he.lr)(e.readIdleTime)}]}],un=(0,c.cn)("ydb-diagnostics-consumers"),mn=({path:e,database:t,type:a})=>{const r=(e=>e===x.EPathTypeCdcStream)(a),[s,i]=n.useState(""),[o]=(0,X.Nt)(),{currentData:l,isFetching:c,error:u}=ga.useGetTopicQuery({path:e,database:t},{pollingInterval:o}),m=c&&void 0===l,p=(0,X.N4)((a=>ja(a,e,t))),h=(0,X.N4)((a=>Ta(a,e,t))),v=n.useMemo((()=>{if(!p)return[];const e=new RegExp(ha()(s),"i");return p.filter((t=>e.test(String(t.name))))}),[p,s]);return m?(0,d.jsx)(ue.a,{size:"m"}):u||p&&p.length?(0,d.jsxs)("div",{className:un(),children:[(0,d.jsxs)("div",{className:un("controls"),children:[(0,d.jsx)(Qe.v,{onChange:e=>{i(e)},placeholder:Ya("controls.search"),className:un("search"),value:s}),h&&(0,d.jsx)(Ia,{data:h})]}),u?(0,d.jsx)(de.o,{error:u}):null,p?(0,d.jsx)("div",{className:un("table-wrapper"),children:(0,d.jsx)("div",{className:un("table-content"),children:(0,d.jsx)(qe.l,{columnsWidthLSKey:"consumersColumnsWidth",wrapperClassName:un("table"),data:v,columns:dn,settings:Z.N3,emptyDataMessage:Ya("table.emptyDataMessage")})})}):null]}):(0,d.jsx)("div",{children:Ya("noConsumersMessage."+(r?"stream":"topic"))})};var pn=a(96873),hn=a(97434),vn=a(84476),gn=a(39439),yn=a.n(gn);function xn({className:e,text:t,start:a,length:r,hasComa:s}){const i=s?(0,d.jsx)(n.Fragment,{children:",\xa0"}):null;if(r&&"number"===typeof a&&a>=0&&a<t.length){const s=t.substring(0,a),o=t.substring(a,a+r),l=t.substring(a+r);return(0,d.jsxs)(n.Fragment,{children:[s&&(0,d.jsx)("span",{className:e(),children:s}),(0,d.jsx)("span",{className:e({highlighted:!0}),children:o}),l&&(0,d.jsx)("span",{className:e(),children:l}),i]})}return(0,d.jsxs)("span",{className:e(),children:[t,i]})}function bn({className:e,text:t,starts:a,length:r,hasComa:s}){if(!r||!a.length){const a=s?(0,d.jsx)(n.Fragment,{children:",\xa0"}):null;return(0,d.jsxs)("span",{className:e(),children:[t,a]})}const i=[];for(let n=0,o=0;n<a.length&&o<t.length;++n){const l=n===a.length-1,c=a[n]+(l?t.length:r),u=t.substring(o,c);u&&i.push((0,d.jsx)(xn,{className:e,text:u,start:a[n]-o,length:r,hasComa:l&&s})),o=c}return(0,d.jsx)(n.Fragment,{children:i})}const fn=(0,c.cn)("ydb-json-viewer");function Tn(e){const{collapsed:t,onToggle:a,path:n}=e;return(0,d.jsx)("span",{title:n,className:fn("collapsed"),children:(0,d.jsx)(vn.$,{onClick:a,view:"flat-secondary",size:"xs",children:(0,d.jsx)(vn.$.Icon,{children:(0,d.jsx)("span",{className:"unipika",children:t?"[+]":"[-]"})})})})}const jn=JSON.parse('{"action_collapse-all":"Collapse all","action_expand-all":"Expand all","action_next":"Next","action_back":"Back","description_search":"Search...","description_matched-rows":"Matched rows","description_full-value":"Full value","context_case-sensitive-search":"Case sensitive search enadled","context_case-sensitive-search-disabled":"Case sensitive search disabled","context_items-count":[" {{count}} item "," {{count}} items "," {{count}} items "," {{count}} items "]}'),Sn=(0,Be.g4)("ydb-json-viewer",{en:jn});var Nn=a(61674);const En=a.n(Nn)()({}),wn={asHTML:!0,format:"json",compact:!1,escapeWhitespace:!0,showDecoded:!0,binaryAsHex:!1,indent:2};function Cn(e){return En.converters.yson(e,wn)}function Pn(e){return n.useMemo((()=>Cn(e)),[e])}function In(e){return t=>fn("filtered",t,e)}var Dn=a(70983);function An(e){const{row:{level:t,open:a,close:r,key:s,value:i,hasDelimiter:o,path:l,collapsed:c,depth:u},settings:m,onToggleCollapse:p,matched:h,filter:v,showFullText:g,index:y}=e,x=n.useCallback((()=>{l&&p(l)}),[l,p]),b=n.useCallback((()=>{g(y)}),[g,y]);return(0,d.jsxs)("div",{className:fn("cell","unipika"),children:[qn(t),l&&(0,d.jsx)(Tn,{collapsed:c,path:l,onToggle:x}),(0,d.jsx)(_n,{text:s,settings:m,matched:null===h||void 0===h?void 0:h.keyMatch,filter:v}),a&&(0,d.jsx)(Ln,{type:a,settings:m}),void 0!==u&&(0,d.jsx)("span",{className:"unipika",children:Sn("context_items-count",{count:u})}),void 0!==i&&(0,d.jsx)(Rn,{text:i,settings:m,matched:null===h||void 0===h?void 0:h.valueMatch,filter:v,showFullText:b}),c&&void 0===u&&(0,d.jsx)("span",{className:"unipika",children:"..."}),r&&(0,d.jsx)(Ln,{type:r,settings:m,close:!0}),o&&(0,d.jsx)(Mn,{text:","})]})}function _n(e){const t=function(e){if(null===e||void 0===e||!e.text)return null;return On(e,fn("key"))}(e);return t?(0,d.jsxs)(n.Fragment,{children:[t,(0,d.jsx)(Mn,{text:": "})]}):null}function Rn(e){var t;return(0,d.jsx)(n.Fragment,{children:kn(e,fn("value",{type:null===(t=e.text)||void 0===t?void 0:t.$type}))})}function kn(e,t){var a;return"string"===(null===(a=e.text)||void 0===a?void 0:a.$type)?On(e,t,100):function(e,t){const{text:a,filter:n,settings:r,matched:s}=e;let i=null;if(s&&n){const e=En.format(a,{...r,asHTML:!1});i=(0,d.jsx)(bn,{className:In(t),text:e,starts:s,length:null===n||void 0===n?void 0:n.length})}else i=a?function(e,t=wn){const a=En.formatValue(e,{...wn,...t},0);return(0,d.jsx)("span",{className:"unipika",dangerouslySetInnerHTML:{__html:a}})}(a,r):void 0;return i||null}(e,fn("value"))}function On(e,t,a=1/0){const{text:n,settings:r=wn,matched:s=[],filter:i,showFullText:o}=e,l=En.format(n,{...r,asHTML:!1}),c=l.length,u=l.substring(1,Math.min(c-1,a+1)),m=u.length<l.length-2;let p=!1;if(m)for(let d=s.length-1;d>=0;--d)if(u.length<s[d]+((null===i||void 0===i?void 0:i.length)||0)){p=!0;break}return(0,d.jsxs)("span",{children:[(0,d.jsx)(bn,{className:In(t),text:u,starts:s,length:null===i||void 0===i?void 0:i.length}),m&&(0,d.jsxs)("span",{className:fn("filtered",{highlighted:p,clickable:!0}),onClick:o,children:["\u2026",(0,d.jsx)(ct.I,{data:Dn.A})]})]})}function Mn({text:e}){return(0,d.jsx)("span",{children:e})}function Ln(e){const{type:t,close:a}=e;switch(t){case"array":return(0,d.jsx)(Mn,{text:a?"]":"["});case"object":return(0,d.jsx)(Mn,{text:a?"}":"{"})}}const zn={};function qn(e){let t=zn[e];if(!t){const a=yn()(Array(3*e)," ").join("");t=zn[e]=(0,d.jsx)("span",{dangerouslySetInnerHTML:{__html:a}})}return t}var Fn=a(28664),$n=a(59136),Un=a(26195),Qn=a(94630);const Bn=n.forwardRef((function({matchIndex:e,matchedRows:t,value:a,onUpdate:r,onKeyDown:s,onNextMatch:i,onPrevMatch:o,caseSensitive:l,onUpdateCaseSensitive:c},u){const m=t.length,p=m?1+e%m:0;return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(Fn.k,{ref:u,className:fn("filter"),hasClear:!0,size:"m",type:"text",value:a,placeholder:Sn("description_search"),onUpdate:r,autoFocus:!1,onKeyDown:s,endContent:(0,d.jsx)(lt.m,{title:Sn(l?"context_case-sensitive-search":"context_case-sensitive-search-disabled"),children:(0,d.jsx)(vn.$,{view:"flat-secondary",onClick:c,selected:l,children:(0,d.jsx)(ct.I,{data:Qn.A})})})}),(0,d.jsxs)(ot.s,{gap:1,wrap:"nowrap",children:[(0,d.jsx)(vn.$,{className:fn("match-btn"),view:"flat-secondary",title:Sn("action_next"),onClick:i,disabled:!m,children:(0,d.jsx)(ct.I,{data:$n.A})}),(0,d.jsx)(vn.$,{className:fn("match-btn"),view:"flat-secondary",title:Sn("action_back"),onClick:o,disabled:!m,children:(0,d.jsx)(ct.I,{data:Un.A})})]}),(0,d.jsxs)("span",{className:fn("match-counter"),title:Sn("description_matched-rows"),children:[p," / ",m||0]})]})}));var Hn=a(2198);function Gn({onClose:e,text:t,starts:a,length:n}){return(0,d.jsxs)(Hn.l,{open:!0,onClose:e,children:[(0,d.jsx)(Hn.l.Header,{caption:Sn("description_full-value")}),(0,d.jsx)(Hn.l.Divider,{}),(0,d.jsx)(Hn.l.Body,{children:(0,d.jsx)(ot.s,{direction:"column",gap:2,width:"70vw",maxHeight:"80vh",children:(0,d.jsx)("div",{className:fn("full-value"),children:(0,d.jsx)(bn,{className:In(),starts:a,text:t,length:n})})})})]})}function Wn(e,t){const a={dst:[],levels:[],path:[],collapsedState:(null===t||void 0===t?void 0:t.collapsedState)||{},matchedPath:"",collapsedPath:""};Vn(e,0,a);const n=function(e,t,a){if(!t)return{};const n=Object.assign({},null===a||void 0===a?void 0:a.settings,{asHTML:!1}),r={};for(let s=0;s<e.length;++s){const{key:i,value:o}=e[s],l=ir(i,t,n,null===a||void 0===a?void 0:a.caseSensitive),c=ir(o,t,n,null===a||void 0===a?void 0:a.caseSensitive);(l||c)&&(r[s]=Object.assign({},l&&{keyMatch:l},c&&{valueMatch:c}))}return r}(a.dst,null===t||void 0===t?void 0:t.filter,{settings:null===t||void 0===t?void 0:t.settings,caseSensitive:null===t||void 0===t?void 0:t.caseSensitive});return{data:a.dst,searchIndex:n}}function Vn(e,t,a){return function(e,t=0,a){const n=a.dst.length,{type:r}=a.levels[a.levels.length-1]||{},s=function(e){return"object"===e}(r)?n-1:a.dst.length,i=er(a),o=function(e){return"map"===e.$type||"list"===e.$type}(e);let l=0;if(i)Jn(e,t,a);else{l=function(e,t,a,n){let r=0;const s=e&&er(n);if(s)Jn(t,a,n);else switch(t.$type){case"map":!function(e,t,a){const n=tr("object",t,a,e.$value.length);(function(e,t,a,n){for(let r=0;r<e.length;++r){const[s,i]=e[r],o={key:s,level:t};a.dst.push(o),Zn(s.$value,a),Vn(i,t,a),++n.currentIndex,Xn(a)}})(e.$value,t+1,a,n),ar("object",t,a)}(t,a,n),r=t.$value.length;break;case"list":!function(e,t,a){const{$value:n}=e,r=tr("array",t,a,n.length);for(let s=0;s<n.length;++s)Zn(String(s),a),Vn(n[s],t+1,a),++r.currentIndex,Xn(a);ar("array",t,a)}(t,a,n),r=t.$value.length;break;case"string":rr(function(e,t){const{$attributes:a,...n}=e;return{level:t,value:n}}(t,a),n);break;default:rr(function(e,t){const{$attributes:a,...n}=e;return{level:t,value:n}}(t,a),n)}return r}(o,e,t,a)}o&&l&&(a.dst[s].depth=l,Yn(a,s))}(e,t,a)}function Jn(e,t,a){switch(e.$type){case"map":Kn("object",t,a,e.$value.length);break;case"list":Kn("array",t,a,e.$value.length)}}function Kn(e,t,a,n){tr(e,t,a,0);const r=a.dst[a.dst.length-1];r.depth=n,r.collapsed=!0,Yn(a,a.dst.length-1),ar(e,t,a)}function Yn(e,t){e.collapsedPath.length&&(e.dst[t].path=e.collapsedPath)}function Zn(e,t){t.path.push(e),t.collapsedPath=t.collapsedPath.length?t.collapsedPath+"/"+e:e}function Xn(e){const t=e.path.pop();void 0!==t&&(e.collapsedPath=e.collapsedPath.substring(0,e.collapsedPath.length-t.length-1))}function er(e){return Boolean(e.collapsedState[e.collapsedPath])}function tr(e,t,a,n){const{dst:r}=a,s=sr(r);null!==s&&void 0!==s&&s.key&&s.level===t?s.open=e:r.push({level:t,open:e});const i={type:e,length:n,currentIndex:0};return a.levels.push(i),i}function ar(e,t,a){const n=a.levels.pop();if(n.type!==e)throw new Error(`The unipika tree cannot be converted to array, there is some mess with levels \n${JSON.stringify({type:e,level:t,info:n,ctx:a},null,2)}`);const r=a.dst[a.dst.length-1],s=r.level===t&&r.open===e,i=s?r:{level:t,close:e};nr(a)&&(i.hasDelimiter=!0),s?i.close=e:a.dst.push(i)}function nr(e){const{length:t,currentIndex:a}=e.levels[e.levels.length-1]||{};return void 0!==t&&a<t-1}function rr(e,t){const a=sr(t.dst);a&&!a.open?Object.assign(a,e,{level:a.level}):t.dst.push(e);const n=t.dst[t.dst.length-1];nr(t)&&(n.hasDelimiter=!0)}function sr(e){const t=e[e.length-1];return null===t||void 0===t||!t.key||null!==t&&void 0!==t&&t.close?null:t}function ir(e,t,a,n){if(!e)return;const r=[];let s=En.formatValue(e,a);if(!s)return;s=String(s),"string"===e.$type&&(s=s.substring(1,s.length-1));let i=0,o=t;for(n||(s=s.toLowerCase(),o=t.toLowerCase());i>=0&&i<s.length;){const e=s.indexOf(o,i);if(-1===e)break;i=e+o.length,r.push(e)}return r.length?r:void 0}var or=a(85283),lr=a(24853);const cr={displayIndices:!1,dynamicRender:!0,sortable:!1,dynamicRenderMinSize:100};function dr(e){const{data:t}=Wn(e);return t.reduce(((e,{path:t})=>(t&&(e[t]=!0),e)),{})}function ur(e,t,a,n){const r=Wn(e,{collapsedState:t,filter:a,caseSensitive:n});return Object.assign({},{flattenResult:r,matchedRows:Object.keys(r.searchIndex).map(Number)})}function mr({tableSettings:e,value:t,unipikaSettings:a,search:r=!0,extraTools:s,collapsedInitially:i}){const[o,l]=(0,X.iK)(Z.iD,!1),[c,u]=n.useState((()=>i?dr(t):{})),[m,p]=n.useState(""),[h,v]=n.useState((()=>ur(t,c,m,o))),[g,y]=n.useState(-1),[x,b]=n.useState(),f=n.useRef(null),T=n.useRef(null),j=n.useMemo((()=>({...cr,dynamicInnerRef:f,...e})),[e]),S=({row:e,index:t})=>{const{flattenResult:{searchIndex:n}}=h;return(0,d.jsx)(An,{matched:n[t],row:e,settings:a,onToggleCollapse:N,filter:m,showFullText:R,index:t})},N=e=>{const t={...c};t[e]?delete t[e]:t[e]=!0,E({collapsedState:t})},E=(e,a)=>{const{collapsedState:n,matchIndex:r,filter:s,caseSensitive:i}=e;void 0!==n&&u(n),void 0!==r&&y(r),void 0!==s&&p(s);v(ur(t,null!==n&&void 0!==n?n:c,null!==s&&void 0!==s?s:m,null!==i&&void 0!==i?i:o)),null===a||void 0===a||a()},w=()=>{E({collapsedState:{}},(()=>{I(null,0)}))},C=()=>{const e=dr(t);E({collapsedState:e})},P=e=>{E({filter:e,matchIndex:0},(()=>{I(null,0)}))},I=(e,t=1)=>{var a,n;const{matchedRows:r}=h;if(!r.length)return;let s=(g+t)%r.length;s<0&&(s=r.length+s),s!==g&&y(s),null===(a=f.current)||void 0===a||a.scrollTo(r[s]-6),null===(n=T.current)||void 0===n||n.focus()},D=()=>{I(null,-1)},A=e=>{"Enter"===e.key&&(e.shiftKey||e.ctrlKey?D():I(null))},_=()=>{const e=!o;l(e),E({caseSensitive:e})},R=e=>{const{flattenResult:{searchIndex:t,data:a}}=h;b({value:a[e].value,searchInfo:t[e]})},k=()=>{b(void 0)};return(0,d.jsxs)("div",{className:fn(),children:[(0,d.jsxs)(ot.s,{gap:2,wrap:"nowrap",className:fn("toolbar"),children:[(0,d.jsxs)(ot.s,{gap:1,wrap:"nowrap",children:[(0,d.jsx)(lt.m,{title:Sn("action_expand-all"),children:(0,d.jsx)(vn.$,{onClick:w,view:"flat-secondary",children:(0,d.jsx)(ct.I,{data:or.A})})}),(0,d.jsx)(lt.m,{title:Sn("action_collapse-all"),children:(0,d.jsx)(vn.$,{onClick:C,view:"flat-secondary",children:(0,d.jsx)(ct.I,{data:lr.A})})})]}),r&&(0,d.jsx)(Bn,{onUpdate:P,matchIndex:g,matchedRows:h.matchedRows,value:m,ref:T,onKeyDown:A,onNextMatch:I,onPrevMatch:D,caseSensitive:o,onUpdateCaseSensitive:_}),(0,d.jsx)("span",{className:fn("extra-tools"),children:s})]}),(()=>{const e=[{name:"content",render:S,header:null}],{flattenResult:{data:t}}=h;return(0,d.jsx)("div",{className:fn("content"),children:(0,d.jsx)(Rt.Ay,{columns:e,data:t,theme:"yson",settings:j,rowClassName:()=>fn("row")})})})(),(()=>{const{value:e,searchInfo:t}=null!==x&&void 0!==x?x:{},n=En.format(e,{...a,asHTML:!1});return e&&(0,d.jsx)(Gn,{onClose:k,starts:(null===t||void 0===t?void 0:t.valueMatch)||[],text:n.substring(1,n.length-1),length:m.length})})()]})}const pr=(0,c.cn)("ydb-describe"),hr=({path:e,database:t,type:a})=>{const[n]=(0,X.Nt)(),r=z(a),s=(0,X.N4)((n=>J(n,e,a,t)),hn.bN);let i=[];r?s&&(i=[e,...s]):i=[e];const{mergedDescribe:o,loading:l,error:c}=K({paths:i,autoRefreshInterval:n,database:t});let u;if(o){const e=Object.keys(o);u=1===e.length?o[e[0]]:o}const m=Pn(u);return l||r&&!s?(0,d.jsx)(ue.a,{size:"m"}):u||c?(0,d.jsxs)("div",{className:pr(),children:[c?(0,d.jsx)(de.o,{error:c}):null,u?(0,d.jsx)("div",{className:pr("result"),children:(0,d.jsx)(mr,{value:m,extraTools:(0,d.jsx)(pn.b,{view:"flat-secondary",text:JSON.stringify(u)}),search:!0,collapsedInitially:!0})}):null]}):(0,d.jsx)("div",{className:pr("message-container"),children:"Empty"})};var vr=a(60073);const gr=e=>{const{PathType:t,PathSubType:a}=(null===e||void 0===e?void 0:e.Self)||{};return n=t,(r=a)&&w[r]||n&&C[n];var n,r},yr=e=>{var t;return null===e||void 0===e||null===(t=e.UserAttributes)||void 0===t?void 0:t.some((({Key:e,Value:t})=>"__async_replica"===e&&"true"===t))};var xr=a(5741),br=a(82176);const fr=(0,br.H)({values:{PathType:e=>null===e||void 0===e?void 0:e.substring(9),CreateStep:he.r6},labels:{PathType:(0,xr.A)("common.type"),CreateStep:(0,xr.A)("common.created")}}),Tr=({value:e,withSpeedLabel:t,...a})=>{const n=(0,va.z3)({value:e,withSpeedLabel:t,...a}),r=(0,va.z3)({value:e,withSpeedLabel:t,size:"b"});return(0,d.jsx)("span",{title:r,children:n})},jr=(e,t)=>e?(0,d.jsx)(Tr,{value:e,...t}):null,Sr=(0,br.H)({values:{Type:e=>null===e||void 0===e?void 0:e.substring(10),State:e=>null===e||void 0===e?void 0:e.substring(11),KeyColumnNames:e=>null===e||void 0===e?void 0:e.join(", "),DataColumnNames:e=>null===e||void 0===e?void 0:e.join(", "),DataSize:jr},labels:{KeyColumnNames:"Columns",DataColumnNames:"Includes"}}),Nr={[T.METERING_MODE_REQUEST_UNITS]:"request-units",[T.METERING_MODE_RESERVED_CAPACITY]:"reserved-capacity"},Er=(0,br.H)({values:{Partitions:e=>(0,he.ZV)((null===e||void 0===e?void 0:e.length)||0),PQTabletConfig:e=>{const t=Math.round(e.PartitionConfig.LifetimeSeconds/Z.Jg*100)/100;return`${(0,he.ZV)(t)} hours`}},labels:{Partitions:"Partitions count",PQTabletConfig:"Retention"}}),wr=(0,br.H)({values:{Codecs:e=>e&&Object.values(e.Codecs||{}).join(", "),MeteringMode:e=>e&&Nr[e]},labels:{MeteringMode:"Metering mode"}}),Cr=(0,br.H)({values:{StorageLimitBytes:he.z3,WriteSpeedInBytesPerSecond:he.tC},labels:{StorageLimitBytes:"Retention storage",WriteSpeedInBytesPerSecond:"Partitions write speed"}}),Pr=(0,br.H)({values:{Mode:e=>null===e||void 0===e?void 0:e.substring(14),Format:e=>null===e||void 0===e?void 0:e.substring(16)}}),Ir=(0,br.H)({values:{CPU:he.iM,Memory:jr,Storage:jr,Network:he.tC,ReadThroughput:he.tC,WriteThroughput:he.tC},defaultValueFormatter:he.ZV}),Dr=(0,br.H)({values:{FollowerCount:he.ZV},labels:{FollowerCountPerDataCenter:"FollowerCountPerDC"},defaultValueFormatter:e=>e&&String(e)}),Ar=(0,br.H)({values:{FollowerCount:he.ZV,CrossDataCenterFollowerCount:he.ZV}}),_r=(0,br.H)({values:{DataSize:jr,IndexSize:jr,LastAccessTime:he.r6,LastUpdateTime:he.r6},defaultValueFormatter:he.ZV}),Rr=new Set(["Type","State","DataSize","KeyColumnNames","DataColumnNames"]),kr=({data:e})=>{var t;const a=gr(null===e||void 0===e?void 0:e.PathDescription);if(!e)return(0,d.jsxs)("div",{className:"error",children:["No ",a," data"]});const n=null===(t=e.PathDescription)||void 0===t?void 0:t.TableIndex,r=[];let s;for(s in n)Rr.has(s)&&r.push(Sr(s,null===n||void 0===n?void 0:n[s]));return(0,d.jsx)(vr.z_,{title:a,info:r})};var Or=a(10508);const Mr=JSON.parse('{"external-objects.source-type":"Source Type","external-objects.data-source":"Data Source","external-objects.location":"Location","external-objects.auth-method":"Auth Method","external-objects.auth-method.none":"None","external-objects.auth-method.service-account":"Service Account","view.query-text":"Query Text"}'),Lr=(0,Be.g4)("ydb-tenant-objects-info",{en:Mr}),zr=(0,c.cn)("ydb-external-data-source-info"),qr=e=>{var t,a,n,r;return[{label:Lr("external-objects.source-type"),value:null===(t=e.PathDescription)||void 0===t||null===(a=t.ExternalDataSourceDescription)||void 0===a?void 0:a.SourceType},fr("CreateStep",null===(n=e.PathDescription)||void 0===n||null===(r=n.Self)||void 0===r?void 0:r.CreateStep)]},Fr=e=>{var t;const{Location:a,Auth:n}=(null===(t=e.PathDescription)||void 0===t?void 0:t.ExternalDataSourceDescription)||{};return[...qr(e),{label:Lr("external-objects.location"),value:(0,d.jsx)(Or.c,{name:a,showStatus:!1,hasClipboardButton:!0,clipboardButtonAlwaysVisible:!0,className:zr("location")})},{label:Lr("external-objects.auth-method"),value:null!==n&&void 0!==n&&n.ServiceAccount?Lr("external-objects.auth-method.service-account"):Lr("external-objects.auth-method.none")}]},$r=({data:e,prepareData:t})=>{const a=gr(null===e||void 0===e?void 0:e.PathDescription);return e?(0,d.jsx)(vr.z_,{title:a,info:t(e)}):(0,d.jsxs)("div",{className:"error",children:["No ",a," data"]})},Ur=({data:e})=>(0,d.jsx)($r,{data:e,prepareData:Fr});var Qr=a(10755),Br=a(25196);const Hr=(0,c.cn)("ydb-external-table-info"),Gr=(e,t)=>{var a,n;const{CreateStep:r}=(null===(a=e.PathDescription)||void 0===a?void 0:a.Self)||{},{SourceType:s,DataSourcePath:i}=(null===(n=e.PathDescription)||void 0===n?void 0:n.ExternalTableDescription)||{},o=null===i||void 0===i?void 0:i.split("/").pop();return[{label:Lr("external-objects.source-type"),value:s},fr("CreateStep",r),{label:Lr("external-objects.data-source"),value:i&&(0,d.jsx)("span",{title:i,children:(0,d.jsx)(Br.K,{title:o||"",url:t})})}]},Wr=(e,t)=>{var a,n;const r=null===(a=e.PathDescription)||void 0===a||null===(n=a.ExternalTableDescription)||void 0===n?void 0:n.Location;return[...Gr(e,t),{label:Lr("external-objects.location"),value:(0,d.jsx)(Or.c,{name:r,showStatus:!1,hasClipboardButton:!0,clipboardButtonAlwaysVisible:!0,className:Hr("location")})}]},Vr=({data:e,prepareData:t})=>{var a,n;const r=(0,Qr.zy)(),s=(0,ye.mA)(r),i=(0,ye.Ow)({...s,schema:null===e||void 0===e||null===(a=e.PathDescription)||void 0===a||null===(n=a.ExternalTableDescription)||void 0===n?void 0:n.DataSourcePath}),o=gr(null===e||void 0===e?void 0:e.PathDescription);return e?(0,d.jsx)(vr.z_,{title:o,info:t(e,i)}):(0,d.jsxs)("div",{className:"error",children:["No ",o," data"]})},Jr=({data:e})=>(0,d.jsx)(Vr,{data:e,prepareData:Wr});var Kr=a(57439);const Yr=JSON.parse('{"no-data":"No data"}'),Zr=(0,Be.g4)("ydb-definition-list",{en:Yr}),Xr=(0,c.cn)("ydb-definition-list");function es({title:e,items:t,nameMaxWidth:a=220,copyPosition:n="outside",className:r,itemClassName:s,...i}){return(0,d.jsxs)("div",{className:Xr(null),children:[e?(0,d.jsx)("div",{className:Xr("title"),children:e}):null,t.length?(0,d.jsx)(Kr.u,{items:t,nameMaxWidth:a,copyPosition:n,className:Xr("properties-list",r),itemClassName:Xr("item",s),...i}):Zr("no-data")]})}var ts=a(96298),as=a(8300);ts.A.registerLanguage("yql",as.TL);const ns=(0,c.cn)("yql-highlighter"),rs=({children:e,className:t})=>{const a=(0,te.i)(),n="dark"===a||"dark-hc"===a;return(0,d.jsx)("div",{className:ns(null,t),children:(0,d.jsx)(ts.A,{language:"yql",style:n?as.XT:as.BB,children:e})})};function ss({data:e}){const t=gr(null===e||void 0===e?void 0:e.PathDescription);if(!e)return(0,d.jsxs)("div",{className:"error",children:["No ",t," data"]});const a=(e=>{var t,a;const n=null===(t=e.PathDescription)||void 0===t||null===(a=t.ViewDescription)||void 0===a?void 0:a.QueryText;return[{name:Lr("view.query-text"),copyText:n,content:n?(0,d.jsx)(rs,{children:n}):null}]})(e);return(0,d.jsx)(es,{title:t,items:a})}function is({state:e}){return e?"StandBy"in e?(0,d.jsx)(Ct.J,{theme:"info",children:"Standby"}):"Paused"in e?(0,d.jsx)(Ct.J,{theme:"info",children:"Paused"}):"Done"in e?(0,d.jsx)(Ct.J,{theme:"success",children:"Done"}):"Error"in e?(0,d.jsx)(Ct.J,{theme:"danger",children:"Error"}):(0,d.jsx)(Ct.J,{size:"s",children:"Unknown"}):null}const os=JSON.parse('{"column.dstPath.name":"Dist","column.srcPath.name":"Source","everythingWithPrefix":"Everything with prefix:","noData":"No data.","title":"Replicated Paths"}'),ls=(0,Be.g4)("ydb-diagnostics-async-replication-paths",{en:os}),cs=(0,c.cn)("ydb-async-replication-paths"),ds=[{name:ls("column.srcPath.name"),render:({row:e})=>e.SrcPath,sortAccessor:e=>e.SrcPath},{name:ls("column.dstPath.name"),render:({row:e})=>e.DstPath,sortAccessor:e=>e.DstPath}];function us({config:e}){if(!e)return null;let t=ls("noData");var a,n;e.Everything&&(t=(0,d.jsxs)("span",{children:[ls("everythingWithPrefix")," ",(0,d.jsx)(it.E,{variant:"code-inline-2",children:null!==(a=null===(n=e.Everything)||void 0===n?void 0:n.DstPrefix)&&void 0!==a?a:"undefined"}),"."]}));return e.Specific&&(t=(0,d.jsx)(qe.l,{data:e.Specific.Targets,settings:Z.jp,columns:ds})),(0,d.jsxs)("div",{className:cs(),children:[(0,d.jsx)("div",{className:cs("title"),children:ls("title")}),t]})}function ms({connection:e}){return e?e.StaticCredentials?(0,d.jsx)(Ct.J,{value:e.StaticCredentials.User,theme:"normal",children:"user"}):"OAuthToken"in e?"OAuth":"unknown":null}const ps=JSON.parse('{"credentials.label":"Credentials","noData":"No data for entity:","srcConnection.database.label":"Source Database Path","srcConnection.endpoint.label":"Source Cluster Endpoint","state.label":"State"}'),hs=(0,Be.g4)("ydb-diagnostics-async-replication-info",{en:ps});function vs({data:e}){var t,a;const n=gr(null===e||void 0===e?void 0:e.PathDescription);if(!e)return(0,d.jsxs)("div",{className:"error",children:[hs("noData")," ",n]});const r=function(e){var t,a;const n=(null===(t=e.PathDescription)||void 0===t?void 0:t.ReplicationDescription)||{},r=n.State,s=(null===(a=n.Config)||void 0===a?void 0:a.SrcConnectionParams)||{},{Endpoint:i,Database:o}=s,l=[];r&&l.push({name:hs("state.label"),content:(0,d.jsx)(is,{state:r})});i&&l.push({name:hs("srcConnection.endpoint.label"),copyText:i,content:(0,d.jsx)(it.E,{variant:"code-inline-2",children:i})});o&&l.push({name:hs("srcConnection.database.label"),copyText:o,content:(0,d.jsx)(it.E,{variant:"code-inline-2",children:o})});s&&l.push({name:hs("credentials.label"),content:(0,d.jsx)(ms,{connection:s})});return l}(e);return(0,d.jsxs)(ot.s,{direction:"column",gap:"4",children:[(0,d.jsx)(es,{title:n,items:r}),(0,d.jsx)(us,{config:null===(t=e.PathDescription)||void 0===t||null===(a=t.ReplicationDescription)||void 0===a?void 0:a.Config})]})}const gs=JSON.parse('{"writeLagPopover":"Write lag, maximum among all topic partitions","writeIdleTimePopover":"Write idle time, maximum among all topic partitions"}'),ys=JSON.parse('{"writeLagPopover":"\u041b\u0430\u0433 \u0437\u0430\u043f\u0438\u0441\u0438, \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u0440\u0435\u0434\u0438 \u0432\u0441\u0435\u0445 \u043f\u0430\u0440\u0442\u0438\u0446\u0438\u0439 \u0442\u043e\u043f\u0438\u043a\u0430","writeIdleTimePopover":"\u0412\u0440\u0435\u043c\u044f \u0431\u0435\u0437 \u0437\u0430\u043f\u0438\u0441\u0438, \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u0440\u0435\u0434\u0438 \u0432\u0441\u0435\u0445 \u043f\u0430\u0440\u0442\u0438\u0446\u0438\u0439 \u0442\u043e\u043f\u0438\u043a\u0430"}'),xs=(0,Be.g4)("ydb-diagnostics-overview-topic-stats",{ru:ys,en:gs}),bs=(0,c.cn)("ydb-overview-topic-stats"),fs=e=>[{label:"Store size",value:(0,he.z3)(e.storeSize)},{label:(0,d.jsx)(ka,{text:"Write idle time",popoverContent:(0,d.jsx)(Va,{text:xs("writeIdleTimePopover"),type:"write"})}),value:(0,vt.Bi)(e.partitionsIdleTime)},{label:(0,d.jsx)(ka,{text:"Write lag",popoverContent:(0,d.jsx)(Va,{text:xs("writeLagPopover"),type:"write"})}),value:(0,vt.Bi)(e.partitionsWriteLag)},{label:"Average write speed",value:(0,d.jsx)(Ca,{data:e.writeSpeed,withValue:!1})}],Ts=e=>{const t=e.writeSpeed;return[{label:"per minute",value:(0,he.tC)(t.perMinute)},{label:"per hour",value:(0,he.tC)(t.perHour)},{label:"per day",value:(0,he.tC)(t.perDay)}]},js=({path:e,database:t})=>{const[a]=(0,X.Nt)(),{currentData:r,isFetching:s,error:i}=ga.useGetTopicQuery({path:e,database:t},{pollingInterval:a}),o=s&&void 0===r,l=(0,X.N4)((a=>Ta(a,e,t)));if(o)return(0,d.jsx)("div",{className:bs(),children:(0,d.jsx)(ue.a,{size:"s"})});const c=i||!l?(0,d.jsx)(de.o,{error:i}):null;return(0,d.jsxs)("div",{className:bs(),children:[(0,d.jsx)("div",{className:bs("title"),children:"Stats"}),c,l?(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)("div",{className:bs("info"),children:(0,d.jsx)(vr.z_,{info:fs(l),multilineLabels:!0})}),(0,d.jsx)("div",{className:bs("bytes-written"),children:(0,d.jsx)(vr.z_,{info:Ts(l)})})]}):null]})},Ss=e=>{var t;const a=null===e||void 0===e||null===(t=e.PathDescription)||void 0===t?void 0:t.PersQueueGroup;if(!a)return[];const{Partitions:n=[],PQTabletConfig:r={PartitionConfig:{LifetimeSeconds:0}}}=a,{Codecs:s,MeteringMode:i}=r,{WriteSpeedInBytesPerSecond:o,StorageLimitBytes:l}=r.PartitionConfig;return[...(0,vr.jl)(Er,{Partitions:n,PQTabletConfig:r}),...(0,vr.jl)(Cr,{StorageLimitBytes:l,WriteSpeedInBytesPerSecond:o}),...(0,vr.jl)(wr,{Codecs:s,MeteringMode:i})]},Ns=(e,t)=>{var a,n,r;if(!e&&!t)return[];const s=null===e||void 0===e||null===(a=e.PathDescription)||void 0===a?void 0:a.CdcStreamDescription,{Mode:i,Format:o}=s||{};return[fr("CreateStep",null===e||void 0===e||null===(n=e.PathDescription)||void 0===n||null===(r=n.Self)||void 0===r?void 0:r.CreateStep),...(0,vr.jl)(Pr,{Mode:i,Format:o}),...Ss(t)]},Es=({path:e,database:t,data:a,topic:n})=>{const r=gr(null===a||void 0===a?void 0:a.PathDescription);return a&&n?(0,d.jsxs)("div",{children:[(0,d.jsx)(vr.z_,{title:r,info:Ns(a,n)}),(0,d.jsx)(js,{path:e,database:t})]}):(0,d.jsxs)("div",{className:"error",children:["No ",r," data"]})},ws=JSON.parse('{"page.title":"Database","pages.query":"Query","pages.diagnostics":"Diagnostics","summary.navigation":"Navigation","summary.showPreview":"Show preview","summary.source-type":"Source Type","summary.data-source":"Data Source","summary.copySchemaPath":"Copy schema path","summary.type":"Type","summary.subtype":"SubType","summary.id":"Id","summary.version":"Version","summary.created":"Created","summary.data-size":"Data size","summary.row-count":"Row count","summary.partitions":"Partitions count","summary.paths":"Paths","summary.shards":"Shards","summary.state":"State","summary.mode":"Mode","summary.format":"Format","summary.retention":"Retention","label.read-only":"ReadOnly","actions.copied":"The path is copied to the clipboard","actions.notCopied":"Couldn\u2019t copy the path","actions.copyPath":"Copy path","actions.connectToDB":"Connect to DB","actions.dropIndex":"Drop index","actions.openPreview":"Open preview","actions.createTable":"Create table...","actions.createExternalTable":"Create external table...","actions.createTopic":"Create topic...","actions.createColumnTable":"Create column table...","actions.createAsyncReplication":"Create async replication...","actions.createTransfer":"Create transfer...","actions.createView":"Create view...","actions.dropTable":"Drop table...","actions.dropTopic":"Drop topic...","actions.dropView":"Drop view...","actions.alterTable":"Alter table...","actions.manageColumns":"Manage columns...","actions.manageAutoPartitioning":"Manage auto partitioning...","actions.addTableIndex":"Add index...","actions.createCdcStream":"Create changefeed...","actions.alterTopic":"Alter topic...","actions.selectQuery":"Select query...","actions.upsertQuery":"Upsert query...","actions.alterReplication":"Alter async replicaton...","actions.alterTransfer":"Alter transfer...","actions.dropReplication":"Drop async replicaton...","actions.dropTransfer":"Drop transfer...","actions.createDirectory":"Create directory","schema.tree.dialog.placeholder":"Relative path","schema.tree.dialog.invalid":"Invalid path","schema.tree.dialog.whitespace":"Whitespace is not allowed","schema.tree.dialog.empty":"Path is empty","schema.tree.dialog.header":"Create directory","schema.tree.dialog.description":"Inside","schema.tree.dialog.buttonCancel":"Cancel","schema.tree.dialog.buttonApply":"Create"}'),Cs=(0,Be.g4)("ydb-tenant",{en:ws});function Ps({data:e}){const t=gr(e);return yr(e)?(0,d.jsxs)(ot.s,{gap:1,wrap:"nowrap",children:[t," ",(0,d.jsx)(Ct.J,{children:Cs("label.read-only")})]}):t}const Is=JSON.parse('{"tableStats":"Table Stats","tabletMetrics":"Tablet Metrics","partitionConfig":"Partition Config","label.ttl":"TTL for rows","value.ttl":"column: \'{{columnName}}\', expire after: {{expireTime}}","label.standalone":"Standalone","label.partitioning":"Partitioning","label.partitioning-by-size":"Partitioning by size","value.partitioning-by-size.enabled":"Enabled, split size: {{size}}","label.partitioning-by-load":"Partitioning by load","label.partitions-min":"Min number of partitions","label.partitions-max":"Max number of partitions","label.read-replicas":"Read replicas (followers)","label.bloom-filter":"Bloom filter","enabled":"Enabled","disabled":"Disabled"}'),Ds=(0,Be.g4)("ydb-diagnostics-overview-table-info",{en:Is});var As=a(62091),_s=a.n(As),Rs=a(7435),ks=a(41650);const Os=e=>{if(e.Enabled&&e.Enabled.ColumnName&&void 0!==e.Enabled.ExpireAfterSeconds){const t=Ds("value.ttl",{columnName:e.Enabled.ColumnName,expireTime:(0,vt.Bi)(1e3*e.Enabled.ExpireAfterSeconds,1)});return{label:Ds("label.ttl"),value:t}}};const Ms=(e,t)=>{if(!e)return{};const{PathDescription:a={}}=e,{TableStats:n={},TabletMetrics:r={},Table:{PartitionConfig:s={},TTLSettings:i}={},ColumnTableDescription:o={}}=a,{PartCount:l,RowCount:c,DataSize:u,IndexSize:m,ByKeyFilterSize:p,LastAccessTime:h,LastUpdateTime:v,ImmediateTxCompleted:g,PlannedTxCompleted:y,TxRejectedByOverload:b,TxRejectedBySpace:f,TxCompleteLagMsec:T,InFlightTxCount:j,RowUpdates:S,RowDeletes:N,RowReads:E,RangeReads:w,RangeReadRows:C}=n,{FollowerGroups:P,FollowerCount:I,CrossDataCenterFollowerCount:D}=s;let A=[];switch(t){case x.EPathTypeTable:A=((e,t)=>{var a;const{PartitioningPolicy:n={},FollowerGroups:r,EnableFilterByKey:s}=e,i=[],o=n.SizeToSplit&&Number(n.SizeToSplit)>0?Ds("value.partitioning-by-size.enabled",{size:(0,he.z3)(n.SizeToSplit)}):Ds("disabled"),l=null!==(a=n.SplitByLoadSettings)&&void 0!==a&&a.Enabled?Ds("enabled"):Ds("disabled");if(i.push({label:Ds("label.partitioning-by-size"),value:o},{label:Ds("label.partitioning-by-load"),value:l},{label:Ds("label.partitions-min"),value:(0,he.ZV)(n.MinPartitionsCount||0)}),n.MaxPartitionsCount&&i.push({label:Ds("label.partitions-max"),value:(0,he.ZV)(n.MaxPartitionsCount)}),r&&r.length){const{RequireAllDataCenters:e,FollowerCountPerDataCenter:t,FollowerCount:a}=r[0];let n;n=e&&t?`PER_AZ: ${a}`:`ANY_AZ: ${a}`,i.push({label:Ds("label.read-replicas"),value:n})}if(t){const e=Os(t);e&&i.push(e)}return(0,Rs.f8)(s)&&i.push({label:Ds("label.bloom-filter"),value:Ds(s?"enabled":"disabled")}),i})(s,i);break;case x.EPathTypeColumnTable:A=function(e){var t,a;const n=[];var r;if(n.push({label:Ds("label.standalone"),value:String((r=e,!(r.SchemaPresetName&&void 0!==r.SchemaPresetId)))}),null!==(t=e.Sharding)&&void 0!==t&&null!==(a=t.HashSharding)&&void 0!==a&&a.Columns){const t=`PARTITION BY HASH(${e.Sharding.HashSharding.Columns.join(", ")})`;n.push({label:Ds("label.partitioning"),value:(0,d.jsx)(it.E,{variant:"code-2",wordBreak:"break-word",children:t})})}if(e.TtlSettings){const t=Os(null===e||void 0===e?void 0:e.TtlSettings);t&&n.push(t)}return n}(o)}const _=(0,vr.jl)(_r,{PartCount:l,RowCount:c,DataSize:u,IndexSize:m});(0,ks.kf)(p)&&(s.EnableFilterByKey||Number(p)>0)&&_.push({label:"BloomFilterSize",value:jr(p)});const R=[_,(0,vr.jl)(_r,{LastAccessTime:h,LastUpdateTime:v}),(0,vr.jl)(_r,{ImmediateTxCompleted:g,PlannedTxCompleted:y,TxRejectedByOverload:b,TxRejectedBySpace:f,TxCompleteLagMsec:T,InFlightTxCount:j}),(0,vr.jl)(_r,{RowUpdates:S,RowDeletes:N,RowReads:E,RangeReads:w,RangeReadRows:C})],k=(0,vr.jl)(Ir,_s()(r,["GroupReadIops","GroupReadThroughput","GroupWriteIops","GroupWriteThroughput"]));let O=[];return Array.isArray(P)&&P.length>0?O=(0,vr.jl)(Dr,P[0]):void 0!==I?O.push(Ar("FollowerCount",I)):void 0!==D&&O.push(Ar("CrossDataCenterFollowerCount",D)),{generalInfo:A,tableStatsInfo:R,tabletMetricsInfo:k,partitionConfigInfo:O}},Ls=(0,c.cn)("ydb-diagnostics-table-info"),zs=({data:e,type:t})=>{const a=(0,d.jsx)(Ps,{data:null===e||void 0===e?void 0:e.PathDescription}),{generalInfo:r,tableStatsInfo:s,tabletMetricsInfo:i=[],partitionConfigInfo:o=[]}=n.useMemo((()=>Ms(e,t)),[e,t]);return(0,d.jsxs)("div",{className:Ls(),children:[(0,d.jsx)(vr.z_,{info:r,title:a,className:Ls("info-block"),renderEmptyState:()=>(0,d.jsx)("div",{className:Ls("title"),children:a})}),(0,d.jsxs)("div",{className:Ls("row"),children:[s?(0,d.jsx)("div",{className:Ls("col"),children:s.map(((e,t)=>(0,d.jsx)(vr.z_,{info:e,title:0===t?Ds("tableStats"):void 0,className:Ls("info-block"),renderEmptyState:()=>null},t)))}):null,i.length>0||o.length>0?(0,d.jsxs)("div",{className:Ls("col"),children:[(0,d.jsx)(vr.z_,{info:i,title:Ds("tabletMetrics"),className:Ls("info-block"),renderEmptyState:()=>null}),(0,d.jsx)(vr.z_,{info:o,title:Ds("partitionConfig"),className:Ls("info-block"),renderEmptyState:()=>null})]}):null]})]})},qs=({data:e,path:t,database:a})=>{const n=gr(null===e||void 0===e?void 0:e.PathDescription);return e?(0,d.jsxs)("div",{children:[(0,d.jsx)(vr.z_,{title:n,info:Ss(e)}),(0,d.jsx)(js,{path:t,database:a})]}):(0,d.jsxs)("div",{className:"error",children:["No ",n," data"]})};function Fs({connection:e}){return e?e.StaticCredentials?(0,d.jsx)(Ct.J,{value:e.StaticCredentials.User,theme:"normal",children:"user"}):"OAuthToken"in e?"OAuth":"unknown":null}const $s=JSON.parse('{"credentials.label":"Credentials","noData":"No data for entity:","srcConnection.database.label":"Source Database Path","srcConnection.endpoint.label":"Source Cluster Endpoint","state.label":"State","srcPath.label":"Source Topic","dstPath.label":"Destination Table","transformLambda.label":"Transformation Lambda"}'),Us=(0,Be.g4)("ydb-diagnostics-transfer-info",{en:$s});function Qs({data:e}){const t=gr(null===e||void 0===e?void 0:e.PathDescription);if(!e)return(0,d.jsxs)("div",{className:"error",children:[Us("noData")," ",t]});const a=function(e){var t,a,n,r;const s=(null===(t=e.PathDescription)||void 0===t?void 0:t.ReplicationDescription)||{},i=s.State,o=(null===(a=s.Config)||void 0===a?void 0:a.SrcConnectionParams)||{},{Endpoint:l,Database:c}=o,u=null===(n=s.Config)||void 0===n||null===(r=n.TransferSpecific)||void 0===r?void 0:r.Targets[0],m=null===u||void 0===u?void 0:u.SrcPath,p=null===u||void 0===u?void 0:u.DstPath,h=null===u||void 0===u?void 0:u.TransformLambda,v=[];i&&v.push({name:Us("state.label"),content:(0,d.jsx)(is,{state:i})});l&&v.push({name:Us("srcConnection.endpoint.label"),copyText:l,content:(0,d.jsx)(it.E,{variant:"code-inline-2",children:l})});c&&v.push({name:Us("srcConnection.database.label"),copyText:c,content:(0,d.jsx)(it.E,{variant:"code-inline-2",children:c})});o&&v.push({name:Us("credentials.label"),content:(0,d.jsx)(Fs,{connection:o})});return v.push({name:Us("srcPath.label"),copyText:m,content:(0,d.jsx)(it.E,{variant:"code-inline-2",children:m})}),v.push({name:Us("dstPath.label"),copyText:p,content:(0,d.jsx)(it.E,{variant:"code-inline-2",children:p})}),v.push({name:Us("transformLambda.label"),copyText:h,content:h?(0,d.jsx)(rs,{children:h}):null}),v}(e);return(0,d.jsx)(ot.s,{direction:"column",gap:"4",children:(0,d.jsx)(es,{title:t,items:a})})}const Bs=function({type:e,path:t,database:a}){const[r]=(0,X.Nt)(),s=z(e),i=(0,X.N4)((n=>J(n,t,e,a)),hn.bN);let o=[];s?i&&(o=[t,...i]):o=[t];const{mergedDescribe:l,loading:c,error:u}=K({paths:o,database:a,autoRefreshInterval:r}),m=l[t];return c||s&&!i?(0,d.jsx)(ue.a,{size:"m"}):(0,d.jsxs)(n.Fragment,{children:[u?(0,d.jsx)(de.o,{error:u}):null,u&&!m?null:(()=>{var n;const r=null!==m&&void 0!==m?m:void 0,s={[x.EPathTypeInvalid]:void 0,[x.EPathTypeDir]:void 0,[x.EPathTypeResourcePool]:void 0,[x.EPathTypeTable]:void 0,[x.EPathTypeSubDomain]:void 0,[x.EPathTypeTableIndex]:()=>(0,d.jsx)(kr,{data:r}),[x.EPathTypeExtSubDomain]:void 0,[x.EPathTypeColumnStore]:void 0,[x.EPathTypeColumnTable]:void 0,[x.EPathTypeCdcStream]:()=>{const e=null===i||void 0===i?void 0:i[0];var n;if(e)return(0,d.jsx)(Es,{path:t,database:a,data:r,topic:null!==(n=null===l||void 0===l?void 0:l[e])&&void 0!==n?n:void 0})},[x.EPathTypePersQueueGroup]:()=>(0,d.jsx)(qs,{data:r,path:t,database:a}),[x.EPathTypeExternalTable]:()=>(0,d.jsx)(Jr,{data:r}),[x.EPathTypeExternalDataSource]:()=>(0,d.jsx)(Ur,{data:r}),[x.EPathTypeView]:()=>(0,d.jsx)(ss,{data:r}),[x.EPathTypeReplication]:()=>(0,d.jsx)(vs,{data:r}),[x.EPathTypeTransfer]:()=>(0,d.jsx)(Qs,{data:r})};return e&&(null===(n=s[e])||void 0===n?void 0:n.call(s))||(0,d.jsx)(zs,{data:r,type:e})})()]})};var Hs,Gs=a(74417);function Ws(){return Ws=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},Ws.apply(null,arguments)}const Vs=function(e){return n.createElement("svg",Ws({fill:"currentColor",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},e),Hs||(Hs=n.createElement("path",{d:"M14.195 11.375H3.125v-7.82a.328.328 0 00-.305-.305H1.805a.309.309 0 00-.305.305v9.14c0 .178.127.305.305.305h12.39a.309.309 0 00.305-.305V11.68a.328.328 0 00-.305-.305zm-3.25-5.688L8.812 7.11 6.63 4.24c-.127-.178-.38-.178-.508.026L3.937 7.922v2.64h9.75l-2.285-4.748c-.101-.177-.304-.228-.457-.127z"})))};function Js({href:e,className:t,size:a="xs"}){return(0,d.jsx)(vn.$,{href:e,target:"_blank",className:t,size:a,title:"Monitoring dashboard",children:(0,d.jsx)(ct.I,{data:Vs})})}var Ks=a(20680),Ys=a(66643),Zs=a(40014),Xs=a(25533),ei=a(90474);const ti=["#7EB26D","#EAB839","#6ED0E0","#EF843C","#E24D42","#1F78C1","#BA43A9","#705DA0","#508642","#CCA300"];function ai(e){return null===e?Z.Pd:(0,vt.Xo)((0,he.CR)(si(e),2))}function ni(e){return null===e?Z.Pd:(0,va.z3)({value:si(e),precision:3})}function ri(e){return null===e?Z.Pd:Math.round(100*si(e))+"%"}function si(e){return(0,ks.kf)(e)?Number(e):0}const ii={"30m":30*Z.r0,"1h":Z.Jg,"1d":Z.tt,"1w":7*Z.tt},oi=JSON.parse('{"not-supported":"Charts are not supported on current ydb version"}'),li=(0,Be.g4)("ydb-metric-chart",{en:oi}),ci=H.F.injectEndpoints({endpoints:e=>({getChartData:e.query({queryFn:async(e,{signal:t})=>{try{const a=await(async({database:e,metrics:t,timeFrame:a,maxDataPoints:n},{signal:r}={})=>{const s=t.map((e=>`target=${e.target}`)).join("&"),i=Math.round(Date.now()/1e3),o=i-ii[a];return window.api.viewer.getChartData({target:s,from:o,until:i,maxDataPoints:n,database:e},{signal:r})})(e,{signal:t});if(Array.isArray(a)){return{data:((e=[],t)=>{const a=e.map((({datapoints:e,target:a})=>{const n=t.find((e=>e.target===a));if(!n)return;const r=e.map((e=>e[0]));return{...n,data:r}})).filter((e=>void 0!==e));return{timeline:e[0].datapoints.map((e=>1e3*e[1])),metrics:a}})(a,e.metrics)}}return{error:new Error("string"===typeof a?li("not-supported"):a.error)}}catch(a){return{error:a}}},providesTags:["All"],keepUnusedDataFor:0})}),overrideExisting:"throw"}),di=(0,c.cn)("ydb-metric-chart");Ys.W.set({plugins:[Xs.YagrPlugin]});const ui=(e,t={})=>{const{dataType:a,scaleRange:n,showLegend:r}=t,s=(e=>{switch(e){case"ms":return ai;case"size":return ni;case"percent":return ri;default:return}})(a),i=!e.metrics.length,o=e.metrics.map(((e,t)=>{const a=e.color||ti[t],n=function(e,t){const a=(0,ei.Mj)(e);if(!a.isValid())throw new Error("Invalid color is passed");return a.alpha(t).toRgbString()}(a,.1);return{id:e.target,name:e.title||e.target,data:e.data,formatter:s,lineColor:a,color:n,legendColorKey:"lineColor"}}));return{data:{timeline:e.timeline,graphs:o},libraryConfig:{chart:{size:{padding:i?[10,0,10,0]:void 0},series:{type:"area",spanGaps:!0,lineWidth:1.5},select:{zoom:!1}},scales:{y:{type:"linear",range:"nice",min:(null===n||void 0===n?void 0:n.min)||0,max:null===n||void 0===n?void 0:n.max}},axes:{y:{values:s?(e,t)=>t.map(s):void 0}},tooltip:{show:!0,tracking:"sticky"},legend:{show:r}}}},mi={timeline:[],metrics:[]},pi=({database:e,title:t,metrics:a,timeFrame:r="1h",autorefresh:s,width:i=400,height:o=i/1.5,chartOptions:l,onChartDataStatusChange:c,isChartVisible:u})=>{const{currentData:m,error:p,isFetching:h,status:v}=ci.useGetChartDataQuery({database:e,metrics:a,timeFrame:r,maxDataPoints:i/2},{pollingInterval:s}),g=h&&!m;n.useEffect((()=>null===c||void 0===c?void 0:c("fulfilled"===v?"success":"loading")),[v,c]);const y=ui(m||mi,l);return(0,d.jsxs)("div",{className:di(null),style:{height:o,width:i},children:[(0,d.jsx)("div",{className:di("title"),children:t}),g?(0,d.jsx)(ue.a,{}):u?(0,d.jsxs)("div",{className:di("chart"),children:[(0,d.jsx)(Zs.Ay,{type:"yagr",data:y}),p?(0,d.jsx)(de.o,{className:di("error"),error:p}):null]}):null]})},hi=(0,c.cn)("ydb-timeframe-selector"),vi=({value:e,onChange:t,className:a})=>(0,d.jsx)("div",{className:hi(null,a),children:Object.keys(ii).map((a=>(0,d.jsx)(vn.$,{view:"flat",selected:e===a,onClick:()=>t(a),children:a},a)))}),gi=(0,c.cn)("ydb-tenant-dashboard"),yi=({database:e,charts:t})=>{const[a,r]=n.useState(!0),[i="1h",o]=(0,s.useQueryParam)("timeframe",s.StringParam),[l]=(0,X.Nt)(),c=a?0:l,u=e=>{"success"===e&&r(!1)},m=1===t.length?872:428,p=428/1.5;return(0,d.jsxs)("div",{className:gi(null),style:{display:a?"none":void 0},children:[(0,d.jsx)("div",{className:gi("controls"),children:(0,d.jsx)(vi,{value:i,onChange:o})}),(0,d.jsx)("div",{className:gi("charts"),children:t.map((t=>{const n=t.metrics.map((({target:e})=>e)).join("&");return(0,d.jsx)(pi,{database:e,title:t.title,metrics:t.metrics,timeFrame:i,chartOptions:t.options,autorefresh:c,width:m,height:p,onChartDataStatusChange:u,isChartVisible:!a},n)}))})]})},xi=JSON.parse('{"no-data":"No data","no-pools-data":"No pools data","top-nodes.empty-data":"No such nodes","top-groups.empty-data":"No such groups","top":"Top","nodes":"nodes","shards":"shards","groups":"groups","queries":"queries","tables":"tables","by-pools-usage":"by pools usage","by-cpu-time":"by cpu time, {{executionPeriod}}","by-cpu-usage":"by cpu usage","by-load":"by load","by-memory":"by memory","by-usage":"by usage","by-size":"by size","cards.cpu-label":"CPU","cards.storage-label":"Storage","cards.memory-label":"Memory","charts.queries-per-second":"Queries per second","charts.transaction-latency":"Transactions latencies {{percentile}}","charts.cpu-usage":"CPU usage by pool","charts.storage-usage":"Tablet storage usage","charts.memory-usage":"Memory usage","storage.tablet-storage-title":"Tablet storage","storage.tablet-storage-description":"Size of user data and indexes stored in schema objects (tables, topics, etc.)","storage.db-storage-title":"Database storage","storage.db-storage-description":"Size of data stored in distributed storage with all overheads for redundancy","executed-last-hour":"executed in the last hour","column-header.process":"Process"}'),bi=(0,Be.g4)("ydb-diagnostics-tenant-overview",{en:xi}),fi=[{title:bi("charts.queries-per-second"),metrics:[{target:"queries.requests",title:bi("charts.queries-per-second")}]},{title:bi("charts.transaction-latency",{percentile:""}),metrics:[{target:"queries.latencies.p50",title:"p50"},{target:"queries.latencies.p75",title:"p75"},{target:"queries.latencies.p90",title:"p90"},{target:"queries.latencies.p99",title:"p99"}],options:{dataType:"ms",showLegend:!0}}],Ti=({database:e})=>(0,d.jsx)(yi,{database:e,charts:fi});var ji=a(67157);const Si=H.F.injectEndpoints({endpoints:e=>({getHealthcheckInfo:e.query({queryFn:async({database:e,maxLevel:t},{signal:a})=>{try{return{data:await window.api.viewer.getHealthcheckInfo({database:e,maxLevel:t},{signal:a})}}catch(n){return{error:n}}},providesTags:["All"]})}),overrideExisting:"throw"}),Ni={RED:0,ORANGE:1,YELLOW:2,BLUE:3,GREEN:4},Ei=e=>e.sort(((e,t)=>(Ni[e.status]||0)-(Ni[t.status]||0))),wi=({issue:e,data:t})=>Ei(t.filter((t=>e.reason&&-1!==e.reason.indexOf(t.id)))),Ci=({data:e,roots:t})=>t?t.map((t=>{const a=Ci({roots:wi({issue:t,data:e}),data:e});return{...t,reasonsItems:a}})):[],Pi=(0,g.Mz)((e=>e),(e=>Si.endpoints.getHealthcheckInfo.select({database:e}))),Ii=(0,g.Mz)((e=>e),((e,t)=>Pi(t)),((e,t)=>{var a;return(null===(a=t(e).data)||void 0===a?void 0:a.issue_log)||[]})),Di=(0,g.Mz)(Ii,((e=[])=>{return Ei((t=e).filter((e=>!t.find((t=>t.reason&&-1!==t.reason.indexOf(e.id))))));var t})),Ai=(0,g.Mz)([Ii,Di],((e=[],t=[])=>Ci({data:e,roots:t}))),_i=(0,g.Mz)(Ii,((e=[])=>(e=>{const t={};for(const a of e)t[a.status]||(t[a.status]=0),t[a.status]++;return Object.entries(t).sort((([e],[t])=>(Ni[e]||0)-(Ni[t]||0)))})(e)));let Ri=function(e){return e.UNSPECIFIED="UNSPECIFIED",e.GOOD="GOOD",e.DEGRADED="DEGRADED",e.MAINTENANCE_REQUIRED="MAINTENANCE_REQUIRED",e.EMERGENCY="EMERGENCY",e}({}),ki=function(e){return e.UNSPECIFIED="UNSPECIFIED",e.GREY="GREY",e.GREEN="GREEN",e.BLUE="BLUE",e.YELLOW="YELLOW",e.ORANGE="ORANGE",e.RED="RED",e}({});var Oi=a(63126),Mi=a(54090);const Li={[ki.UNSPECIFIED]:Mi.m.Grey,[ki.GREY]:Mi.m.Grey,[ki.GREEN]:Mi.m.Green,[ki.BLUE]:Mi.m.Blue,[ki.YELLOW]:Mi.m.Yellow,[ki.ORANGE]:Mi.m.Orange,[ki.RED]:Mi.m.Red},zi=(0,c.cn)("issue-tree-item"),qi=({status:e,message:t,type:a,onClick:n})=>(0,d.jsxs)("div",{className:zi(),onClick:n,children:[(0,d.jsx)("div",{className:zi("field",{status:!0}),children:(0,d.jsx)(Or.c,{mode:"icons",status:e,name:a})}),(0,d.jsx)("div",{className:zi("field",{message:!0}),children:t})]}),Fi=(0,c.cn)("issue-tree"),$i=({issueTree:e})=>{const[t,a]=n.useState({}),r=n.useCallback((e=>e?(0,d.jsx)("div",{className:Fi("info-panel"),children:(0,d.jsx)(mr,{value:Cn(e)})}):null),[]),s=n.useCallback((e=>e.map((e=>{const{id:n}=e,{status:i,message:o,type:l,reasonsItems:c,level:u,...m}=e,p="undefined"===typeof t[n]||t[n],h=()=>{a((e=>({...e,[n]:!p})))};return(0,d.jsxs)(Oi.G,{name:(0,d.jsx)(qi,{status:Li[i],message:o,type:l}),collapsed:p,hasArrow:!0,onClick:h,onArrowClick:h,level:u-1,children:[r(_s()(m,["reason"])),s(c||[])]},n)}))),[t,r]);return(0,d.jsx)("div",{className:Fi(),children:(0,d.jsx)("div",{className:Fi("block"),children:s([e])})})},Ui=JSON.parse('{"title.healthcheck":"Healthcheck","label.update":"Update","label.show-details":"Show details","label.issues":"Issues:","status_message.ok":"No issues","no-data":"no healthcheck data"}'),Qi=JSON.parse('{"title.healthcheck":"Healthcheck","label.update":"\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c","label.show-details":"\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438","label.issues":"\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u044b:","status_message.ok":"\u041d\u0435\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c","no-data":"\u043d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445 healthcheck"}'),Bi=(0,Be.g4)("ydb-diagnostics-healthcheck",{ru:Qi,en:Ui}),Hi=(0,c.cn)("healthcheck");function Gi({tenantName:e}){const[t]=(0,X.Nt)(),{name:a}=(0,ji.Zd)(),{issueTrees:r,loading:s,error:i}=((e,{autorefresh:t}={})=>{const{currentData:a,isFetching:n,error:r,refetch:s}=Si.useGetHealthcheckInfoQuery({database:e},{pollingInterval:t}),i=(null===a||void 0===a?void 0:a.self_check_result)||Ri.UNSPECIFIED,o=(0,X.N4)((t=>_i(t,e)));return{issueTrees:(0,X.N4)((t=>Ai(t,e))),issuesStatistics:o,loading:void 0===a&&n,error:r,refetch:s,selfCheckResult:i}})(e,{autorefresh:"ydb_ru"===a?void 0:t});return(0,d.jsx)("div",{className:Hi("details"),children:(0,d.jsx)("div",{className:Hi("details-content-wrapper"),children:i?(0,d.jsx)(de.o,{error:i,defaultMessage:Bi("no-data")}):s?(0,d.jsx)(ue.a,{size:"m"}):r&&r.length?(0,d.jsx)(n.Fragment,{children:r.map((e=>(0,d.jsx)($i,{issueTree:e},e.id)))}):Bi("status_message.ok")})})}var Wi=a(8861),Vi=a(73633),Ji=a(70825),Ki=a(43937),Yi=a(10800),Zi=a(71153),Xi=a(2102),eo=a(52358);const to=(0,c.cn)("healthcheck"),ao={[Ri.UNSPECIFIED]:Vi.A,[Ri.GOOD]:Ji.A,[Ri.DEGRADED]:Ki.A,[Ri.MAINTENANCE_REQUIRED]:Yi.A,[Ri.EMERGENCY]:Zi.A};function no(e){const{tenantName:t,active:a}=e,[r]=(0,X.Nt)(),{metricsTab:s}=(0,X.N4)((e=>e.tenant)),{name:i}=(0,ji.Zd)(),o="ydb_ru"===i,{currentData:l,isFetching:c,error:u}=Si.useGetHealthcheckInfoQuery({database:t},{pollingInterval:o?void 0:r,skip:o}),[m,{currentData:p,isFetching:h}]=Si.useLazyGetHealthcheckInfoQuery();n.useEffect((()=>{"healthcheck"===s&&o&&m({database:t})}),[s,o,t,m]),n.useEffect((()=>{const e=()=>{o&&m({database:t})};return document.addEventListener("diagnosticsRefresh",e),()=>{document.removeEventListener("diagnosticsRefresh",e)}}),[t,o,m]);const v=c&&void 0===l||h&&void 0===p;return(0,d.jsxs)(Xi.A,{className:to("preview"),active:a,children:[(0,d.jsx)("div",{className:to("preview-header"),children:(0,d.jsxs)("div",{className:to("preview-title-wrapper"),children:[(0,d.jsx)("div",{className:to("preview-title"),children:Bi("title.healthcheck")}),o?(0,d.jsx)(ia.A,{content:"Healthcheck is disabled. Please update healthcheck manually.",placement:["top"],className:to("icon-wrapper"),children:()=>(0,d.jsx)(ct.I,{size:16,className:to("icon-warn"),data:eo.A})}):null]})}),(()=>{if(u)return(0,d.jsx)(de.o,{error:u,defaultMessage:Bi("no-data")});if(v)return(0,d.jsx)(ue.a,{size:"m"});const e=(null===l||void 0===l?void 0:l.self_check_result)||(null===p||void 0===p?void 0:p.self_check_result)||Ri.UNSPECIFIED,t=e.toLowerCase();return(0,d.jsx)("div",{className:to("preview-content"),children:(0,d.jsxs)("div",{className:to("preview-issue",{[t]:!0}),children:[(0,d.jsx)(ct.I,{className:to("preview-status-icon"),data:ao[e]}),(0,d.jsx)("div",{className:to("self-check-status-indicator"),children:e.replace(/_/g," ")})]})})})()]})}var ro=a(15132),so=a(33775);const io=(0,c.cn)("ydb-metrics-card"),oo=e=>{let t;return"Warning"===e&&(t=Mi.m.Yellow),"Danger"===e&&(t=Mi.m.Red),t?(0,d.jsx)(so.k,{status:t,mode:"icons",size:"l"}):null};function lo({active:e,label:t,status:a,metrics:n}){return(0,d.jsxs)(Xi.A,{className:io({active:e}),active:e,children:[(0,d.jsxs)("div",{className:io("header"),children:[t&&(0,d.jsx)("div",{className:io("label"),children:t}),oo(a)]}),(0,d.jsx)("div",{className:io("content"),children:n.map((({title:e,...t},a)=>(0,d.jsxs)("div",{className:io("metric"),children:[(0,d.jsx)("div",{className:io("metric-title"),children:e}),(0,d.jsx)(ro.O,{size:"xs",colorizeProgress:!0,...t})]},a)))})]})}const co=(0,c.cn)("metrics-cards");function uo({poolsCpuStats:e,memoryStats:t,blobStorageStats:a,tabletStorageStats:n,tenantName:r}){const s=(0,Qr.zy)(),{metricsTab:i}=(0,X.N4)((e=>e.tenant)),o=(0,ye.mA)(s),l=e=>e===i?"":e,c={[ae.pA.cpu]:(0,ra.YL)({...o,[ra.vh.metricsTab]:l(ae.pA.cpu)}),[ae.pA.storage]:(0,ra.YL)({...o,[ra.vh.metricsTab]:l(ae.pA.storage)}),[ae.pA.memory]:(0,ra.YL)({...o,[ra.vh.metricsTab]:l(ae.pA.memory)}),[ae.pA.healthcheck]:(0,ra.YL)({...o,[ra.vh.metricsTab]:l(ae.pA.healthcheck)})};return(0,d.jsxs)("div",{className:co(),children:[(0,d.jsx)(re.N_,{to:c.cpu,className:co("tab"),children:(0,d.jsx)(mo,{poolsCpuStats:e,active:i===ae.pA.cpu})}),(0,d.jsx)(re.N_,{to:c.storage,className:co("tab"),children:(0,d.jsx)(po,{blobStorageStats:a,tabletStorageStats:n,active:i===ae.pA.storage})}),(0,d.jsx)(re.N_,{to:c.memory,className:co("tab"),children:(0,d.jsx)(ho,{memoryStats:t,active:i===ae.pA.memory})}),(0,d.jsx)(re.N_,{to:c.healthcheck,className:co("tab"),children:(0,d.jsx)(no,{tenantName:r,active:i===ae.pA.healthcheck})})]})}function mo({poolsCpuStats:e=[],active:t}){let a=Wi.u.Unspecified;const n=e.filter((e=>!("Batch"===e.name||"IO"===e.name))).map((e=>{const{name:t,usage:n,limit:r,used:s}=e,i=(0,Ks.sf)(n);return Wi.Z[i]>Wi.Z[a]&&(a=i),{title:t,value:s,capacity:r}}));return(0,d.jsx)(lo,{label:bi("cards.cpu-label"),active:t,metrics:n,status:a})}function po({blobStorageStats:e=[],tabletStorageStats:t,active:a}){let n=Wi.u.Unspecified;const r=(t||e).map((e=>{const{name:t,used:a,limit:r,usage:s}=e,i=(0,Ks.sf)(s);return Wi.Z[i]>Wi.Z[n]&&(n=i),{title:t,value:a,capacity:r,formatValues:he.j9}}));return(0,d.jsx)(lo,{label:bi("cards.storage-label"),active:a,metrics:r,status:n})}function ho({active:e,memoryStats:t=[]}){let a=Wi.u.Unspecified;const n=t.map((e=>{const{name:t,used:n,limit:r,usage:s}=e,i=(0,Ks.sf)(s);return Wi.Z[i]>Wi.Z[a]&&(a=i),{title:t,value:n,capacity:r,formatValues:he.j9}}));return(0,d.jsx)(lo,{label:bi("cards.memory-label"),active:e,metrics:n,status:a})}var vo=a(78762),go=a(86782),yo=a(15298),xo=a(40781);const bo=(0,c.cn)("tenant-overview");function fo({title:e,error:t,loading:a,tableClassNameModifiers:r={},withData:s,children:i}){return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)("div",{className:bo("title"),children:e}),t?(0,d.jsx)(de.o,{error:t}):null,(0,d.jsx)("div",{className:bo("table",r),children:t&&!s?null:a?(0,d.jsx)(St.Q,{rows:Z.Nz}):i})]})}var To=a(82015);const jo=({prefix:e=bi("top"),entity:t,postfix:a,link:r,onClick:s})=>r?(0,d.jsxs)(n.Fragment,{children:[e," ",(0,d.jsx)(To.E,{to:r,onClick:s,children:t})," ",a]}):`${e} ${t} ${a}`;function So({tenantName:e,additionalNodesProps:t}){const a=(0,X.e4)(),[n]=(0,X.Nt)(),[r,s]=function(e){const t={...(0,vo.Nh)(e),width:void 0},a=[(0,vo.kv)(),(0,vo._E)(),t],n=a.map((e=>e.name));return[a,(0,xo.R)(n,go.fN)]}({getNodeRef:null===t||void 0===t?void 0:t.getNodeRef,database:e}),{currentData:i,isFetching:o,error:l}=yo.s.useGetNodesQuery({tenant:e,type:"any",sort:"-CPU",limit:Z.Nz,tablets:!1,fieldsRequired:s},{pollingInterval:n}),c=o&&void 0===i,u=(null===i||void 0===i?void 0:i.Nodes)||[],m=jo({entity:bi("nodes"),postfix:bi("by-pools-usage"),link:(0,ra.YL)({...a,[ra.vh.diagnosticsTab]:ae.iJ.nodes})});return(0,d.jsx)(fo,{title:m,loading:c,error:l,withData:Boolean(i),children:(0,d.jsx)(qe.l,{columnsWidthLSKey:go.zO,data:u,columns:r,emptyDataMessage:bi("top-nodes.empty-data"),settings:Z.jp})})}function No({tenantName:e,additionalNodesProps:t}){const a=(0,X.e4)(),[n]=(0,X.Nt)(),[r,s]=function(e){const t={...(0,vo.Nh)(e),width:void 0},a=[(0,vo.fR)(),(0,vo._E)(),t,(0,vo.Rn)()],n=a.map((e=>e.name));return[a,(0,xo.R)(n,go.fN)]}({getNodeRef:null===t||void 0===t?void 0:t.getNodeRef,database:e}),{currentData:i,isFetching:o,error:l}=yo.s.useGetNodesQuery({tenant:e,type:"any",sort:"-LoadAverage",limit:Z.Nz,tablets:!1,fieldsRequired:s},{pollingInterval:n}),c=o&&void 0===i,u=(null===i||void 0===i?void 0:i.Nodes)||[],m=jo({entity:bi("nodes"),postfix:bi("by-load"),link:(0,ra.YL)({...a,[ra.vh.diagnosticsTab]:ae.iJ.nodes})});return(0,d.jsx)(fo,{title:m,loading:c,error:l,withData:Boolean(i),children:(0,d.jsx)(qe.l,{columnsWidthLSKey:go.zO,data:u,columns:r,emptyDataMessage:bi("top-nodes.empty-data"),settings:Z.jp})})}var Eo=a(69053),wo=a(73289),Co=a(16332);const Po=JSON.parse('{"action_cancel":"Cancel"}'),Io=(0,Be.g4)("ydb-confirmation-dialog",{en:Po}),Do=(0,c.cn)("confirmation-dialog"),Ao="confirmation-dialog";function _o({caption:e="",children:t,onConfirm:a,onClose:n,progress:r,textButtonApply:s,textButtonCancel:i,buttonApplyView:o="normal",className:l,renderButtons:c,open:u}){return(0,d.jsxs)(Hn.l,{className:Do(null,l),size:"s",onClose:n,disableOutsideClick:!0,open:u,children:[(0,d.jsx)(Hn.l.Header,{caption:(0,d.jsx)("span",{className:Do("caption"),children:e})}),(0,d.jsx)(Hn.l.Body,{children:t}),(0,d.jsx)(Hn.l.Footer,{onClickButtonApply:a,propsButtonApply:{view:o},textButtonApply:s,textButtonCancel:null!==i&&void 0!==i?i:Io("action_cancel"),onClickButtonCancel:n,loading:r,renderButtons:c})]})}const Ro=Co.vt((e=>{const t=Co.hS(),a=()=>{t.hide(),t.remove()};return(0,d.jsx)(_o,{...e,onConfirm:async()=>{var n;await(null===(n=e.onConfirm)||void 0===n?void 0:n.call(e)),t.resolve(!0),a()},onClose:()=>{var n;null===(n=e.onClose)||void 0===n||n.call(e),t.resolve(!1),a()},open:t.visible})}));Co.kz(Ao,Ro);var ko=a(40569),Oo=a(36894);function Mo(){const[e]=(0,X.iK)(Z.ld,[]),t=(0,X.N4)(Oo.cu).toLowerCase();return t?e.filter((e=>e.body.toLowerCase().includes(t))):e}const Lo=JSON.parse('{"action.save":"Save query","action.edit":"Edit query","action.save-as-new":"Save as new","action.edit-existing":"Edit existing","description":"The query will be saved in your browser","input-label":"Query name","input-placeholder":"Enter query name","button-apply":"Save","button-cancel":"Cancel","error.name-exists":"This name already exists","error.name-not-empty":"Name should not be empty"}'),zo=(0,Be.g4)("ydb-save-query-dialog",{en:Lo}),qo=(0,c.cn)("ydb-save-query");function Fo(e){const t=(0,X.YQ)();return n.useCallback((()=>{Co.Ay.show(Bo,e),t((0,Oo.gJ)())}),[t,e])}function $o({dialogProps:e,...t}){const a=Fo(e);return(0,d.jsx)(vn.$,{onClick:a,...t,children:zo("action.save")})}function Uo({buttonProps:e={}}){const t=(0,X.YQ)(),a=(0,X.N4)(Oo.aW),n=Fo(),r=()=>{t((0,Oo.Wg)(a)),t((0,Oo.gJ)())};return a?(()=>{const t=[{action:r,text:zo("action.edit-existing")},{action:n,text:zo("action.save-as-new")}];return(0,d.jsx)(ko.r,{items:t,renderSwitcher:t=>(0,d.jsx)(vn.$,{...t,...e,children:zo("action.edit")}),popupProps:{placement:"top"}})})():(0,d.jsx)($o,{})}function Qo({onSuccess:e,onCancel:t,onClose:a,open:r}){const s=Mo(),i=(0,X.YQ)(),[o,l]=n.useState(""),[c,u]=n.useState(),m=()=>{i((0,Oo.NJ)("idle")),l(""),u(void 0),null===a||void 0===a||a()},p=()=>{null===t||void 0===t||t(),m()};return(0,d.jsxs)(Hn.l,{open:r,hasCloseButton:!1,size:"s",onClose:p,children:[(0,d.jsx)(Hn.l.Header,{caption:zo("action.save")}),(0,d.jsxs)("form",{onSubmit:t=>{t.preventDefault();const a=(n=o)?s.some((e=>e.name.toLowerCase()===n.trim().toLowerCase()))?zo("error.name-exists"):void 0:zo("error.name-not-empty");var n;u(a),a||(i((0,Oo.Wg)(o)),m(),null===e||void 0===e||e())},children:[(0,d.jsxs)(Hn.l.Body,{className:qo("dialog-body"),children:[(0,d.jsx)("div",{className:qo("dialog-row"),children:zo("description")}),(0,d.jsxs)("div",{className:qo("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"queryName",className:qo("field-title","required"),children:zo("input-label")}),(0,d.jsx)("div",{className:qo("control-wrapper"),children:(0,d.jsx)(Fn.k,{id:"queryName",placeholder:zo("input-placeholder"),value:o,onUpdate:e=>{l(e),u(void 0)},hasClear:!0,autoFocus:!0,autoComplete:!1,validationState:c?"invalid":void 0,errorMessage:c})})]})]}),(0,d.jsx)(Hn.l.Footer,{textButtonApply:zo("button-apply"),textButtonCancel:zo("button-cancel"),onClickButtonCancel:p,propsButtonApply:{type:"submit"}})]})]})}const Bo="save-query-dialog",Ho=Co.Ay.create((e=>{const t=Co.Ay.useModal();return(0,d.jsx)(Qo,{...e,onClose:()=>{var a;null===(a=e.onClose)||void 0===a||a.call(e),t.hide(),t.remove()},open:t.visible})}));Co.Ay.register(Bo,Ho);const Go=JSON.parse('{"action_apply":"Don\'t save","context_unsaved-changes-warning":"You have unsaved changes in query editor.\\nDo you want to proceed?"}'),Wo=(0,Be.g4)("ydb-change-input-confirmation",{en:Go});function Vo(){const e=Co.Ay.useModal(Ao),t=n.useCallback((()=>{e.hide(),e.remove()}),[e]),a=n.useCallback((()=>{e.resolve(!0),t()}),[e,t]),r=n.useCallback((()=>{e.resolve(!1),t()}),[t,e]),s=n.useMemo((()=>({onSuccess:a,onCancel:r})),[a,r]);return(0,d.jsx)($o,{view:"action",size:"l",dialogProps:s})}async function Jo(){return await Co.Ay.show(Ao,{id:Ao,caption:Wo("context_unsaved-changes-warning"),textButtonApply:Wo("action_apply"),propsButtonApply:{view:"l"},renderButtons:(e,t)=>(0,d.jsxs)(n.Fragment,{children:[t,(0,d.jsx)(Vo,{}),e]})})}function Ko(e){const t=(0,X.N4)(wo.Wp),a=n.useMemo((()=>function(e){return async t=>{await Jo()&&e(t)}}(e)),[e]);return t?a:e}const Yo=(0,c.cn)("kv-truncated-query"),Zo=({value:e="",maxQueryHeight:t=6})=>{const a=e.split("\n");if(a.length>t){const e=a.slice(0,t).join("\n"),r="\n...\nThe request was truncated. Click on the line to show the full query on the query tab";return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(rs,{className:Yo(),children:e}),(0,d.jsx)("span",{className:Yo("message",{color:"secondary"}),children:r})]})}return(0,d.jsx)(rs,{children:e})};var Xo=a(70206),el=a.n(Xo);const tl={...Z.N3,dynamicRenderType:"variable"},al=JSON.parse('{"cpu-time":"CPUTime","read-rows":"ReadRows","read-bytes":"ReadBytes","query-hash":"QueryHash","user":"User","start-time":"Start time","end-time":"End time","duration":"Duration","query-text":"Query text","application":"Application"}'),nl=(0,Be.g4)("ydb-top-queries-columns",{en:al}),rl="topQueriesColumnsWidth",sl="CPUTime",il="QueryText",ol="EndTime",ll="ReadRows",cl="ReadBytes",dl="UserSID",ul="OneLineQueryText",ml="QueryHash",pl="Duration",hl="QueryStartAt",vl="ApplicationName",gl={get CPUTime(){return nl("cpu-time")},get QueryText(){return nl("query-text")},get EndTime(){return nl("end-time")},get ReadRows(){return nl("read-rows")},get ReadBytes(){return nl("read-bytes")},get UserSID(){return nl("user")},get OneLineQueryText(){return nl("query-text")},get QueryHash(){return nl("query-hash")},get Duration(){return nl("duration")},get QueryStartAt(){return nl("start-time")},get ApplicationName(){return nl("application")}},yl={CPUTime:"CPUTimeUs",QueryText:void 0,EndTime:"EndTime",ReadRows:"ReadRows",ReadBytes:"ReadBytes",UserSID:"UserSID",OneLineQueryText:void 0,QueryHash:void 0,Duration:"Duration",QueryStartAt:"QueryStartAt",ApplicationName:"ApplicationName"};function xl(e){return yl[e]}function bl(e){return Boolean(xl(e))}const fl=(0,c.cn)("kv-top-queries"),Tl={name:sl,header:gl.CPUTime,sortAccessor:e=>Number(e.CPUTimeUs),render:({row:e})=>{var t;return(0,vt.Xo)((0,vt.Jc)(null!==(t=e.CPUTimeUs)&&void 0!==t?t:void 0))},width:120,align:Rt.Ay.RIGHT,sortable:!1},jl={name:il,header:gl.QueryText,sortAccessor:e=>Number(e.CPUTimeUs),render:({row:e})=>{var t;return(0,d.jsx)("div",{className:fl("query"),children:(0,d.jsx)(Zo,{value:null===(t=e.QueryText)||void 0===t?void 0:t.toString(),maxQueryHeight:6})})},sortable:!1,width:500},Sl={name:ol,header:gl.EndTime,render:({row:e})=>(0,he.r6)(new Date(e.EndTime).getTime()),align:Rt.Ay.RIGHT,width:200},Nl={name:ll,header:gl.ReadRows,render:({row:e})=>(0,he.ZV)(e.ReadRows),sortAccessor:e=>Number(e.ReadRows),align:Rt.Ay.RIGHT,width:150},El={name:cl,header:gl.ReadBytes,render:({row:e})=>(0,he.ZV)(e.ReadBytes),sortAccessor:e=>Number(e.ReadBytes),align:Rt.Ay.RIGHT,width:150},wl={name:dl,header:gl.UserSID,render:({row:e})=>(0,d.jsx)("div",{className:fl("user-sid"),children:e.UserSID||"\u2013"}),sortAccessor:e=>String(e.UserSID),align:Rt.Ay.LEFT},Cl={name:ul,header:gl.OneLineQueryText,render:({row:e})=>{var t;return(0,d.jsx)(rs,{children:(null===(t=e.QueryText)||void 0===t?void 0:t.toString())||""})},sortable:!1,width:500},Pl={name:ml,header:gl.QueryHash,render:({row:e})=>{return t=String(e.QueryText),(el().str(t)>>>0).toString(16).toUpperCase().padStart(8,"0");var t},width:130,sortable:!1},Il={name:pl,header:gl.Duration,render:({row:e})=>{var t;return(0,vt.Xo)((0,vt.Jc)(null!==(t=e.Duration)&&void 0!==t?t:void 0))},sortAccessor:e=>Number(e.Duration),align:Rt.Ay.RIGHT,width:150},Dl={name:hl,header:gl.QueryStartAt,render:({row:e})=>(0,he.r6)(new Date(e.QueryStartAt).getTime()),sortable:!0,resizeable:!1,defaultOrder:Rt.Ay.DESCENDING},Al={name:vl,header:gl.ApplicationName,render:({row:e})=>(0,d.jsx)("div",{className:fl("user-sid"),children:e.ApplicationName||"\u2013"}),sortable:!0};function _l({tenantName:e}){var t,a;const r=(0,X.YQ)(),s=(0,Qr.zy)(),i=(0,Qr.W6)(),o=(0,ye.mA)(s),[l]=(0,X.Nt)(),c=n.useMemo((()=>[Pl,Cl,Tl]),[]),{currentData:u,isFetching:m,error:p}=Eo.Ke.useGetTopQueriesQuery({database:e},{pollingInterval:l}),h=m&&void 0===u,v=(null===u||void 0===u||null===(t=u.resultSets)||void 0===t||null===(a=t[0])||void 0===a?void 0:a.result)||[],g=Ko(n.useCallback((e=>{const{QueryText:t}=e;r((0,wo.iZ)({input:t}));const a=(0,ye.mA)(s),n=(0,ra.YL)({...a,[ae.Dt]:ae.Dg.query,[ra.vh.queryTab]:ae.tQ.newQuery});i.push(n)}),[r,i,s])),y=jo({entity:bi("queries"),postfix:bi("by-cpu-time",{executionPeriod:bi("executed-last-hour")}),onClick:()=>{r((0,Eo.TX)({from:void 0,to:void 0}))},link:(0,ra.YL)({...o,[ra.vh.diagnosticsTab]:ae.iJ.topQueries})});return(0,d.jsx)(fo,{title:y,loading:h,error:(0,Nt.Cb)(p),withData:Boolean(u),children:(0,d.jsx)(qe.l,{columnsWidthLSKey:rl,data:v,columns:c,onRowClick:g,rowClassName:()=>bo("top-queries-row"),settings:Z.jp})})}function Rl(e,t){return`SELECT\n ${t?`CAST(SUBSTRING(CAST(Path AS String), ${t.length}) AS Utf8) AS Path`:"Path"},\n TabletId,\n CPUCores,\nFROM \`.sys/partition_stats\`\nWHERE\n Path='${e}'\n OR Path LIKE '${e}/%'\nORDER BY CPUCores DESC\nLIMIT ${Z.Nz}`}const kl=H.F.injectEndpoints({endpoints:e=>({getTopShards:e.query({queryFn:async({database:e,path:t=""},{signal:a})=>{try{const n=await window.api.viewer.sendQuery({query:Rl(t,e),database:e,action:"execute-scan"},{signal:a,withRetries:!0});return(0,Nt.We)(n)?{error:n}:{data:(0,Nt.fW)(n)}}catch(n){return{error:n||new Error("Unauthorized")}}},providesTags:["All"]})}),overrideExisting:"throw"});var Ol=a(67884);function Ml({path:e,location:t,...a}){const n=(0,ye.mA)(t),r=(0,ye.Ow)({...n,schema:e});return(0,d.jsx)(Ol.N,{view:"normal",...a,href:r})}var Ll=a(80420),zl=a(13342),ql=a(16439),Fl=a(29819);const $l=JSON.parse('{"tablet-id":"TabletId","cpu-cores":"CPUCores","data-size":"DataSize (B)","path":"Path","node-id":"NodeId","peak-time":"PeakTime","in-flight-tx-count":"InFlightTxCount","interval-end":"IntervalEnd"}'),Ul=(0,Be.g4)("ydb-top-shards-columns",{en:$l}),Ql="topShardsColumnsWidth",Bl="TabletId",Hl="CPUCores",Gl="DataSize",Wl="Path",Vl="NodeId",Jl="PeakTime",Kl="InFlightTxCount",Yl="IntervalEnd",Zl={get TabletId(){return Ul("tablet-id")},get CPUCores(){return Ul("cpu-cores")},get DataSize(){return Ul("data-size")},get Path(){return Ul("path")},get NodeId(){return Ul("node-id")},get PeakTime(){return Ul("peak-time")},get InFlightTxCount(){return Ul("in-flight-tx-count")},get IntervalEnd(){return Ul("interval-end")}},Xl={TabletId:void 0,CPUCores:"CPUCores",DataSize:"DataSize",Path:void 0,NodeId:void 0,PeakTime:void 0,InFlightTxCount:"InFlightTxCount",IntervalEnd:void 0};function ec(e){return Xl[e]}const tc=(e,t)=>({name:Wl,header:Zl.Path,render:({row:a})=>(0,d.jsx)(Ml,{path:e+a.Path,location:t,children:a.Path}),sortable:!1,width:300}),ac={name:Gl,header:Zl.DataSize,render:({row:e})=>(0,he.ZV)(e.DataSize),align:Rt.Ay.RIGHT},nc={name:Bl,header:Zl.TabletId,render:({row:e})=>e.TabletId?(0,d.jsx)(Ll.$,{tabletId:e.TabletId}):"\u2013",sortable:!1,width:220},rc={name:Vl,header:Zl.NodeId,render:({row:e})=>e.NodeId?(0,d.jsx)(_a.E,{to:(0,Fl.vI)(e.NodeId),children:e.NodeId}):"\u2013",align:Rt.Ay.RIGHT},sc={name:Hl,header:Zl.CPUCores,render:({row:e})=>{const t=100*Number(e.CPUCores)||0;return(0,d.jsx)(zl.U,{value:(0,he.CR)(t,2),theme:(0,ql.f)(t)})},align:Rt.Ay.RIGHT,width:110,resizeMinWidth:110},ic={name:Kl,header:Zl.InFlightTxCount,render:({row:e})=>(0,he.ZV)(e.InFlightTxCount),align:Rt.Ay.RIGHT},oc=({tenantName:e,path:t})=>{var a,n;const r=(0,Qr.zy)(),s=(0,ye.mA)(r),[i]=(0,X.Nt)(),{currentData:o,isFetching:l,error:c}=kl.useGetTopShardsQuery({database:e,path:t},{pollingInterval:i}),u=l&&void 0===o,m=(null===o||void 0===o||null===(a=o.resultSets)||void 0===a||null===(n=a[0])||void 0===n?void 0:n.result)||[],p=((e,t)=>[nc,tc(e,t),sc])(e,r),h=jo({entity:bi("shards"),postfix:bi("by-cpu-usage"),link:(0,ra.YL)({...s,[ra.vh.diagnosticsTab]:ae.iJ.topShards})});return(0,d.jsx)(fo,{title:h,loading:u,error:(0,Nt.Cb)(c),withData:Boolean(o),children:(0,d.jsx)(qe.l,{columnsWidthLSKey:Ql,data:m,columns:p,settings:Z.jp})})},lc=[{title:bi("charts.cpu-usage"),metrics:["IC","IO","Batch","User","System"].map((e=>({target:`resources.cpu.${e}.usage`,title:e}))),options:{dataType:"percent",scaleRange:{min:0,max:1},showLegend:!0}}];function cc({tenantName:e,additionalNodesProps:t}){return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(yi,{database:e,charts:lc}),(0,d.jsx)(No,{tenantName:e,additionalNodesProps:t}),(0,d.jsx)(So,{tenantName:e,additionalNodesProps:t}),(0,d.jsx)(oc,{tenantName:e,path:e}),(0,d.jsx)(_l,{tenantName:e})]})}var dc=a(73473);function uc({tenantName:e,additionalNodesProps:t}){const a=(0,X.e4)(),[n]=(0,X.Nt)(),[r,s]=function(e){const t=[(0,vo._E)(),(0,vo.Nh)(e),(0,vo.jl)(),(0,vo.fR)(),(0,vo.iX)(),(0,vo.oz)(),(0,vo.qp)(e)],a=t.map((e=>e.name));return[t,(0,xo.R)(a,go.fN)]}({getNodeRef:null===t||void 0===t?void 0:t.getNodeRef,database:e}),{currentData:i,isFetching:o,error:l}=yo.s.useGetNodesQuery({tenant:e,type:"any",tablets:!0,sort:"-Memory",limit:Z.Nz,fieldsRequired:s},{pollingInterval:n}),c=o&&void 0===i,u=(null===i||void 0===i?void 0:i.Nodes)||[],m=jo({entity:bi("nodes"),postfix:bi("by-memory"),link:(0,ra.YL)({...a,[ra.vh.diagnosticsTab]:ae.iJ.nodes})});return(0,d.jsx)(fo,{title:m,loading:c,error:l,withData:Boolean(i),children:(0,d.jsx)(qe.l,{columnsWidthLSKey:go.zO,data:u,columns:r,emptyDataMessage:bi("top-nodes.empty-data"),settings:Z.jp})})}const mc=[{title:bi("charts.memory-usage"),metrics:[{target:"resources.memory.used_bytes",title:bi("charts.memory-usage")}],options:{dataType:"size"}}];function pc({tenantName:e,memoryStats:t,memoryUsed:a,memoryLimit:r}){return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(yi,{database:e,charts:mc}),(0,d.jsx)("div",{className:bo("title"),children:"Memory details"}),(0,d.jsx)("div",{className:bo("memory-info"),children:t?(0,d.jsx)(dc.S,{formatValues:he.vX,stats:t}):(0,d.jsx)(ro.O,{value:a,capacity:r,formatValues:he.vX,colorizeProgress:!0})}),(0,d.jsx)(uc,{tenantName:e})]})}var hc=a(18863),vc=a(10174),gc=a(20831),yc=a(10360);function xc({tenant:e}){const t=(0,X.e4)(),a=(0,ie.Pm)(),n=(0,ie.YA)(),[r]=(0,X.Nt)(),[s,i]=function(){const e=(0,gc.k)(),t=e.map((e=>e.name));return[e,(0,xo.R)(t,yc.YX)]}(),{currentData:o,isFetching:l,error:c}=vc.S.useGetStorageGroupsInfoQuery({tenant:e,sort:"-Usage",with:"all",limit:Z.Nz,shouldUseGroupsHandler:n,fieldsRequired:i},{pollingInterval:r,skip:!a}),u=l&&void 0===o,m=(null===o||void 0===o?void 0:o.groups)||[],p=jo({entity:bi("groups"),postfix:bi("by-usage"),link:(0,ra.YL)({...t,[ra.vh.diagnosticsTab]:ae.iJ.storage})});return(0,d.jsx)(fo,{title:p,loading:u||!a,error:c,withData:Boolean(o),children:(0,d.jsx)(qe.l,{columnsWidthLSKey:yc.qK,data:m,columns:s,settings:Z.jp})})}const bc=e=>`\nSELECT\n Path, SUM(DataSize) as Size\nFROM \`${e}/.sys/partition_stats\`\nGROUP BY Path\n ORDER BY Size DESC\n LIMIT ${Z.Nz}\n`,fc=H.F.injectEndpoints({endpoints:e=>({getTopTables:e.query({queryFn:async({path:e},{signal:t})=>{try{const a=await window.api.viewer.sendQuery({query:bc(e),database:e,action:"execute-scan"},{signal:t,withRetries:!0});return(0,Nt.We)(a)?{error:a}:{data:(0,Nt.fW)(a)}}catch(a){return{error:a||"Unauthorized"}}},providesTags:["All"]})}),overrideExisting:"throw"});function Tc({path:e}){var t,a;const n=(0,Qr.zy)(),[r]=(0,X.Nt)(),{currentData:s,error:i,isFetching:o}=fc.useGetTopTablesQuery({path:e},{pollingInterval:r}),l=o&&void 0===s,c=(null===s||void 0===s||null===(t=s.resultSets)||void 0===t||null===(a=t[0])||void 0===a?void 0:a.result)||[],u=[{name:"Size",width:100,render:({row:e})=>(e=>{const t=(0,va.fn)(null!==c&&void 0!==c&&c.length?Number(c[0].Size):0);return(0,va.z3)({value:e,size:t,precision:1})})(Number(e.Size)),align:Rt.Ay.RIGHT},{name:"Path",width:700,render:({row:e})=>e.Path?(0,d.jsx)(ut.s,{content:e.Path,children:(0,d.jsx)(Ml,{path:String(e.Path),location:n,children:e.Path})}):null}],m=jo({entity:bi("tables"),postfix:bi("by-size")});return(0,d.jsx)(fo,{title:m,loading:l,error:(0,Nt.Cb)(i),withData:Boolean(s),children:(0,d.jsx)(qe.l,{columnsWidthLSKey:"topTablesTableColumnsWidth",data:c,columns:u,settings:Z.jp})})}const jc=[{title:bi("charts.storage-usage"),metrics:[{target:"resources.storage.used_bytes",title:bi("charts.storage-usage")}],options:{dataType:"size"}}];function Sc({tenantName:e,metrics:t}){const{blobStorageUsed:a,tabletStorageUsed:r,blobStorageLimit:s,tabletStorageLimit:i}=t,o=[{label:(0,d.jsx)(ka,{text:bi("storage.tablet-storage-title"),popoverContent:bi("storage.tablet-storage-description")}),value:(0,d.jsx)(ro.O,{value:r,capacity:i,formatValues:he.j9,colorizeProgress:!0})},{label:(0,d.jsx)(ka,{text:bi("storage.db-storage-title"),popoverContent:bi("storage.db-storage-description")}),value:(0,d.jsx)(ro.O,{value:a,capacity:s,formatValues:he.j9,colorizeProgress:!0})}];return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(yi,{database:e,charts:jc}),(0,d.jsx)(hc.z,{className:bo("storage-info"),title:"Storage details",info:o}),(0,d.jsx)(Tc,{path:e}),(0,d.jsx)(xc,{tenant:e})]})}function Nc({tenantName:e,additionalTenantProps:t,additionalNodesProps:a}){var n,r,s;const{metricsTab:i}=(0,X.N4)((e=>e.tenant)),[o]=(0,X.Nt)(),{currentData:l,isFetching:c}=oe.z6.useGetTenantInfoQuery({path:e},{pollingInterval:o}),u=c&&void 0===l,{Name:m,Type:p,Overall:h}=l||{},v=(g=p)&&P[g];var g;const{currentData:y}=G.useGetOverviewQuery({path:e,database:e},{pollingInterval:o}),{Tables:x,Topics:b}=(null===y||void 0===y||null===(n=y.PathDescription)||void 0===n||null===(r=n.DomainDescription)||void 0===r?void 0:r.DiskSpaceUsage)||{},f=[null===x||void 0===x?void 0:x.TotalSize,null===b||void 0===b?void 0:b.DataSize].reduce(((e,t)=>t?e+Number(t):e),0),T={...l,Metrics:{...null===l||void 0===l?void 0:l.Metrics,Storage:String(f)}},{blobStorage:j,tabletStorage:S,blobStorageLimit:N,tabletStorageLimit:E,poolsStats:w,memoryStats:C,blobStorageStats:I,tabletStorageStats:D}=(0,Ks.uI)(T),A={blobStorageUsed:j,blobStorageLimit:N,tabletStorageUsed:S,tabletStorageLimit:E};if(u)return(0,d.jsx)("div",{className:bo("loader"),children:(0,d.jsx)(Gs.a,{size:"m"})});const _=null===t||void 0===t||null===(s=t.getMonitoringLink)||void 0===s?void 0:s.call(t,m,p);return(0,d.jsxs)("div",{className:bo(),children:[(0,d.jsxs)("div",{className:bo("info"),children:[(0,d.jsx)("div",{className:bo("top-label"),children:v}),(0,d.jsxs)("div",{className:bo("top"),children:[(0,d.jsx)("div",{className:bo("tenant-name-wrapper"),children:(0,d.jsx)(Or.c,{status:h,name:m||Z.oK,withLeftTrim:!0,hasClipboardButton:Boolean(l),clipboardButtonAlwaysVisible:!0})}),_&&(0,d.jsx)(Js,{href:_})]}),(0,d.jsx)(uo,{poolsCpuStats:w,memoryStats:C,blobStorageStats:I,tabletStorageStats:D,tenantName:e})]}),(()=>{switch(i){case ae.pA.cpu:return(0,d.jsx)(cc,{tenantName:e,additionalNodesProps:a});case ae.pA.storage:return(0,d.jsx)(Sc,{tenantName:e,metrics:A});case ae.pA.memory:return(0,d.jsx)(pc,{tenantName:e,memoryUsed:T.MemoryUsed,memoryLimit:T.MemoryLimit,memoryStats:T.MemoryStats});case ae.pA.healthcheck:return(0,d.jsx)(Gi,{tenantName:e});default:return(0,d.jsx)(Ti,{database:e})}})()]})}const Ec=(0,c.cn)("kv-detailed-overview");const wc=function(e){const{type:t,tenantName:a,path:n,additionalTenantProps:r,additionalNodesProps:s}=e,i=a===n;return(0,d.jsx)("div",{className:Ec(),children:i?(0,d.jsx)("div",{className:Ec("section"),children:(0,d.jsx)(Nc,{tenantName:a,additionalTenantProps:r,additionalNodesProps:s})}):(0,d.jsx)(Bs,{type:t,path:n,database:a})})},Cc={id:ae.iJ.overview,title:"Info"},Pc={id:ae.iJ.schema,title:"Schema"},Ic={id:ae.iJ.topQueries,title:"Queries"},Dc={id:ae.iJ.topShards,title:"Top shards"},Ac={id:ae.iJ.nodes,title:"Nodes"},_c={id:ae.iJ.tablets,title:"Tablets"},Rc={id:ae.iJ.storage,title:"Storage"},kc={id:ae.iJ.network,title:"Network"},Oc={id:ae.iJ.describe,title:"Describe"},Mc={id:ae.iJ.hotKeys,title:"Hot keys"},Lc={id:ae.iJ.graph,title:"Graph"},zc={id:ae.iJ.consumers,title:"Consumers"},qc={id:ae.iJ.partitions,title:"Partitions"},Fc=[Cc,_c,Oc],$c=[Cc,_c,Oc],Uc=[Cc,Ic,Dc,Ac,_c,Rc,kc,Oc,{id:ae.iJ.configs,title:"Configs"},{id:ae.iJ.operations,title:"Operations"}],Qc=[Cc,Pc,Dc,Ac,Lc,_c,Mc,Oc],Bc=[Cc,Pc,Dc,Ac,_c,Oc],Hc=[Cc,Dc,Ac,Oc],Gc=[Cc,zc,qc,Ac,_c,Oc],Wc=[Cc,zc,qc,Ac,_c,Oc],Vc=[Cc,Oc],Jc=[Cc,Pc,Oc],Kc=[Cc,Pc,Oc],Yc={[x.EPathTypeInvalid]:void 0,[x.EPathTypeSubDomain]:Uc,[x.EPathTypeExtSubDomain]:Uc,[x.EPathTypeColumnStore]:Uc,[x.EPathTypeTable]:Qc,[x.EPathTypeColumnTable]:Bc,[x.EPathTypeDir]:Hc,[x.EPathTypeTableIndex]:Hc,[x.EPathTypeCdcStream]:Gc,[x.EPathTypePersQueueGroup]:Wc,[x.EPathTypeExternalDataSource]:Vc,[x.EPathTypeExternalTable]:Jc,[x.EPathTypeView]:Kc,[x.EPathTypeReplication]:Fc,[x.EPathTypeTransfer]:$c,[x.EPathTypeResourcePool]:Hc};var Zc=a(81240),Xc=a(80604);const ed=H.F.injectEndpoints({endpoints:e=>({getHotKeys:e.query({queryFn:async({path:e,database:t},{signal:a})=>{try{var n;const r=await window.api.viewer.getHotKeys({path:e,database:t,enableSampling:!0},{signal:a});if(Array.isArray(r.hotkeys))return{data:r.hotkeys};await Promise.race([new Promise((e=>{setTimeout(e,5e3)})),new Promise(((e,t)=>{a.addEventListener("abort",t)}))]);return{data:null!==(n=(await window.api.viewer.getHotKeys({path:e,database:t,enableSampling:!1},{signal:a})).hotkeys)&&void 0!==n?n:null}}catch(r){return{error:r}}},providesTags:["All"]})}),overrideExisting:"throw"}),td=JSON.parse('{"hot-keys-collecting":"Please wait a little while we are collecting hot keys samples...","no-data":"No information about hot keys","help":"Hot keys contains a list of table primary key values that are accessed most often. Sample is collected upon request to the tab during 5s time interval. Samples column indicates how many requests to the particular key value were registered during collection phase."}'),ad=(0,Be.g4)("ydb-hot-keys",{en:td});var nd;function rd(){return rd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},rd.apply(null,arguments)}const sd=function(e){return n.createElement("svg",rd({viewBox:"0 0 12 7",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),nd||(nd=n.createElement("path",{d:"M8 7h3V5h1V2H6.66C6.085.79 4.86 0 3.5 0 1.57 0 0 1.57 0 3.5S1.57 7 3.5 7c1.36 0 2.59-.79 3.16-2H8v2zm2-1H9V4H5.97l-.115.335a2.5 2.5 0 110-1.67L5.97 3H11v1h-1v2zM3.5 5a1.5 1.5 0 110-3 1.5 1.5 0 010 3zM3 3.5a.5.5 0 111 0 .5.5 0 01-1 0z"})))},id=(0,c.cn)("ydb-hot-keys"),od="accessSample";function ld({path:e,database:t}){var a,r;const{currentData:s,isFetching:i,error:o}=ed.useGetHotKeysQuery({path:e,database:t}),l=i&&void 0===s,[c]=(0,X.Nt)(),{currentData:u,isLoading:m}=G.useGetOverviewQuery({path:e,database:t},{pollingInterval:c}),p=null===u||void 0===u||null===(a=u.PathDescription)||void 0===a||null===(r=a.Table)||void 0===r?void 0:r.KeyColumnNames,h=n.useMemo((()=>((e=[])=>[...e.map(((e,t)=>({name:e,header:(0,d.jsxs)("div",{className:id("primary-key-column"),children:[(0,d.jsx)(ct.I,{data:sd,width:12,height:7}),e]}),render:({row:e})=>e.keyValues[t],align:Rt.Ay.RIGHT,sortable:!1}))),{name:od,header:"Samples",render:({row:e})=>e.accessSample,align:Rt.Ay.RIGHT,sortable:!1}])(p)),[p]);return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(cd,{}),l||m?(0,d.jsx)("div",{children:ad("hot-keys-collecting")}):o?(0,d.jsx)(de.o,{error:o}):s?(0,d.jsx)(qe.l,{wrapperClassName:id("table"),columns:h,data:s,settings:Z.N3,initialSortOrder:{columnId:od,order:Rt.Ay.DESCENDING}}):(0,d.jsx)("div",{children:ad("no-data")})]})}function cd(){const[e,t]=(0,X.iK)(Z.Gj);return e?null:(0,d.jsxs)(Xc.Z,{theme:"info",view:"filled",type:"container",className:id("help-card"),children:[ad("help"),(0,d.jsx)(vn.$,{className:id("help-card__close-button"),view:"flat",onClick:()=>t(!0),children:(0,d.jsx)(ct.I,{data:Zc.A,size:18})})]})}var dd=a(78524),ud=a(9252);const md=H.F.injectEndpoints({endpoints:e=>({getNetworkInfo:e.query({queryFn:async(e,{signal:t})=>{try{return{data:await window.api.viewer.getNetwork({path:e,database:e},{signal:t})}}catch(a){return{error:a}}},providesTags:["All"]})}),overrideExisting:"throw"});var pd=a(88610);const hd=(0,c.cn)("node-network");function vd(){}function gd({nodeId:e,connected:t,capacity:a,rack:r,status:s,onClick:i=vd,onMouseEnter:o=vd,onMouseLeave:l=vd,showID:c,isBlurred:u}){const m=n.useRef(null),p=s||function(e=0,t=0){const a=Math.floor(e/t*100);return 100===a?Mi.m.Green:a>=70?Mi.m.Yellow:a>=1?Mi.m.Red:Mi.m.Grey}(t,a);return(0,d.jsx)("div",{ref:m,className:hd({[p.toLowerCase()]:!0,id:c,blur:u}),onMouseEnter:()=>{o(m.current,{nodeId:e,connected:t,capacity:a,rack:r},"node")},onMouseLeave:()=>{l()},onClick:()=>i(e),children:c?e:null})}const yd=e=>null===e||void 0===e?void 0:e.reduce(((e,t)=>t.Connected?e+1:e),0);var xd,bd,fd,Td,jd,Sd,Nd,Ed,wd,Cd,Pd,Id,Dd,Ad,_d;function Rd(){return Rd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},Rd.apply(null,arguments)}const kd=function(e){return n.createElement("svg",Rd({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 221 204"},e),xd||(xd=n.createElement("path",{d:"M68.46 2.529v25.227c0 1.227.876 2.278 2.102 2.511 16.643 2.979 29.14 17.812 28.498 35.448-.642 18.045-15.359 32.703-33.345 33.403-17.636.643-32.41-11.854-35.448-28.44a2.562 2.562 0 00-2.51-2.102H2.528c-1.519 0-2.687 1.285-2.512 2.745 3.446 32.703 31.243 58.106 64.939 57.814 35.155-.292 63.829-29.024 64.121-64.18.292-33.695-25.17-61.492-57.873-64.938-1.46-.175-2.744.993-2.744 2.512z",fill:"#EBF2FA"})),bd||(bd=n.createElement("path",{d:"M22.736 18.354l17.811 17.812c.876.876 2.278.992 3.329.233 4.146-3.095 9.052-5.197 14.366-6.19 1.226-.233 2.102-1.226 2.102-2.511V2.528a2.502 2.502 0 00-2.803-2.51C44.46 1.418 32.488 6.674 22.91 14.674c-1.168.935-1.226 2.628-.175 3.68zm-9.403 6.133C6.093 33.83 1.303 45.16.02 57.54c-.176 1.46 1.05 2.745 2.51 2.745H27.7a2.562 2.562 0 002.511-2.103c.818-4.672 2.628-9.051 5.14-12.847a2.642 2.642 0 00-.293-3.212L17.13 24.312c-1.05-1.11-2.861-.993-3.796.175zm67.275 107.392h32.995c1.868 0 3.387 1.518 3.445 3.445v65.231a3.451 3.451 0 01-3.445 3.445H80.608a3.452 3.452 0 01-3.446-3.445v-65.231a3.451 3.451 0 013.446-3.445zm77.844 27.097h-32.878a3.514 3.514 0 00-3.503 3.504v37.959a3.514 3.514 0 003.503 3.504h32.878a3.515 3.515 0 003.504-3.504V162.48a3.515 3.515 0 00-3.504-3.504zm12.205 18.28h32.586a3.639 3.639 0 013.621 3.62v19.388a3.639 3.639 0 01-3.621 3.621h-32.586a3.639 3.639 0 01-3.62-3.621v-19.388a3.638 3.638 0 013.62-3.62z",fill:"#EBF2FA"})),fd||(fd=n.createElement("path",{d:"M134.275 171.532h-113c-5.84 0-10.628-4.789-10.628-10.629v-73.23c0-5.84 4.788-10.629 10.628-10.629h112.941c5.84 0 10.629 4.789 10.629 10.629v73.23c.058 5.899-4.731 10.629-10.57 10.629v0z",stroke:"#2EE5C0",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round"})),Td||(Td=n.createElement("path",{d:"M21.625 90.769a3.037 3.037 0 100-6.074 3.037 3.037 0 000 6.074zM31.494 90.769a3.037 3.037 0 100-6.074 3.037 3.037 0 000 6.074zM41.363 90.769a3.037 3.037 0 100-6.074 3.037 3.037 0 000 6.074z",fill:"#2EE5C0"})),jd||(jd=n.createElement("path",{d:"M10.822 98.592h133.673",stroke:"#2EE5C0",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round"})),Sd||(Sd=n.createElement("path",{d:"M184.555 149.164L57.89 156.172c-4.263.234-7.767-3.037-7.767-7.3V51.114c0-4.263 3.504-7.533 7.767-7.3l126.665 7.008c3.27.176 5.898 3.33 5.898 7.008v84.327c0 3.679-2.628 6.832-5.898 7.007z",fill:"#027BF3"})),Nd||(Nd=n.createElement("path",{d:"M65.13 54.151c0 1.986-1.576 3.504-3.562 3.387-1.985-.058-3.562-1.752-3.562-3.737 0-1.986 1.635-3.504 3.562-3.387 1.927.058 3.562 1.752 3.562 3.737zm11.506.466a3.38 3.38 0 01-3.504 3.388c-1.927-.059-3.504-1.753-3.504-3.68a3.38 3.38 0 013.504-3.387c1.927.117 3.504 1.752 3.504 3.68zm7.825 3.855c1.869.117 3.387-1.402 3.387-3.329 0-1.927-1.518-3.562-3.387-3.62-1.927-.117-3.445 1.401-3.445 3.328 0 1.927 1.576 3.562 3.445 3.62z",fill:"#fff"})),Ed||(Ed=n.createElement("path",{d:"M75.467 142.974V85.277c-3.971-.525-8.584-.409-13.899.7v57.64l13.899-.643zM88.84 90.651v51.799l-11.096.467v-57.23c4.322.934 7.942 2.745 11.096 4.964zm13.431 13.899a1.618 1.618 0 01-.146-.176 1.487 1.487 0 00-.146-.175c-.42-.51-.841-1.026-1.265-1.546-2.875-3.522-5.874-7.197-9.538-10.25v49.93l11.095-.467V104.55zm13.432 5.722c-3.913-.058-7.709-.701-11.096-3.445v34.922l11.096-.468v-31.009zm13.431-.409c-2.764-.173-5.529.006-8.246.181-.957.062-1.907.123-2.849.169v30.951l11.095-.467v-30.834zm24.002 29.841l-8.234.35v-22.191c8.176 9.285 8.234 21.841 8.234 21.841zM140.113 113.6a19.774 19.774 0 012.453 1.927v24.644l-11.096.467v-30.483c2.92.467 5.782 1.46 8.643 3.445z",fill:"#00236B"})),wd||(wd=n.createElement("path",{d:"M55.745 76.436a2 2 0 103.123 2.499l-3.123-2.499zm5.766-4.006l1.575-1.233a2 2 0 00-3.136-.017l1.561 1.25zm2.63 6.605a2 2 0 103.15-2.465l-3.15 2.465zm107.94 53.502a2 2 0 00-2.499 3.123l2.499-3.123zm4.006 5.766l1.214 1.59a1.999 1.999 0 00.036-3.151l-1.25 1.561zm-6.644 2.557a1.999 1.999 0 102.427 3.179l-2.427-3.179zM58.868 78.935l4.205-5.256-3.123-2.499-4.205 5.256 3.123 2.499zm1.068-5.273l4.205 5.373 3.15-2.465-4.205-5.373-3.15 2.465zm109.646 61.998l5.256 4.205 2.499-3.123-5.256-4.205-2.499 3.123zm5.292 1.054l-5.431 4.146 2.427 3.179 5.431-4.146-2.427-3.179zM147.137 69.146a2 2 0 10-.149 3.998l.149-3.998zm29.634 5.107a2 2 0 10.149-3.997l-.149 3.997zm-29.657 5.404a2 2 0 00-.102 3.999l.102-3.999zm29.681 4.758a2 2 0 00.102-3.999l-.102 4zm-29.72 5.928a2 2 0 10-.023 4l.023-4zm29.759 4.176a2 2 0 10.024-4l-.024 4zm-29.846-21.375l29.783 1.11.149-3.998-29.783-1.11-.149 3.998zm.024 10.512l29.783.76.102-4-29.783-.759-.102 3.999zm.04 10.687l29.782.176.024-4-29.783-.175-.023 4zM143.442 71.202a2.458 2.458 0 01-2.57 2.453c-1.401-.058-2.569-1.285-2.569-2.686 0-1.402 1.168-2.57 2.569-2.453 1.46.058 2.57 1.285 2.57 2.686zm.001 10.396a2.458 2.458 0 01-2.57 2.453c-1.401-.059-2.569-1.285-2.569-2.686 0-1.46 1.168-2.57 2.569-2.453 1.46.058 2.57 1.284 2.57 2.686zm-2.57 12.848a2.458 2.458 0 002.57-2.453c0-1.402-1.11-2.628-2.57-2.686-1.401-.117-2.569 1.05-2.569 2.452s1.168 2.628 2.569 2.687z",fill:"#fff"})),Cd||(Cd=n.createElement("path",{opacity:.2,d:"M190.452 91.875V57.771c0-3.68-2.628-6.833-5.899-7.008l-23.651-1.285a35.18 35.18 0 00-1.752 10.98c0 17.635 12.79 31.826 28.09 31.65 1.051.06 2.16-.058 3.212-.233z",fill:"#00236B"})),Pd||(Pd=n.createElement("path",{d:"M220.645 58.883c0-16.585-11.621-30.775-26.454-31.651-15.3-.876-28.089 12.672-28.089 30.308s12.789 31.827 28.089 31.652c14.833-.117 26.454-13.724 26.454-30.309z",fill:"#FF4645"})),Id||(Id=n.createElement("path",{d:"M215.329 40.372c-4.788-7.475-12.38-12.614-21.14-13.14v31.01l21.14-17.87z",fill:"#FC0"})),Dd||(Dd=n.createElement("path",{d:"M215.329 40.372l-21.14 17.87 26.455.642c0-6.89-1.986-13.315-5.315-18.512z",fill:"#00236B"})),Ad||(Ad=n.createElement("path",{d:"M194.248 58.24V27.233c-15.301-.876-28.09 12.672-28.09 30.308l28.09.7z",fill:"#FF4645"})),_d||(_d=n.createElement("path",{d:"M161.151 14.734a2 2 0 10-4 0h4zm-4 4.204a2 2 0 004 0h-4zm4 8.876a2 2 0 10-4 0h4zm-4 4.555a2 2 0 004 0h-4zm10.819-6.816a2 2 0 000-4v4zm-4.263-4a2 2 0 100 4v-4zm-9.169 4a2 2 0 100-4v4zm-4.263-4a2 2 0 000 4v-4zm6.876-6.82v4.205h4v-4.204h-4zm0 13.08v4.556h4v-4.555h-4zm10.819-6.26h-4.263v4h4.263v-4zm-13.432 0h-4.263v4h4.263v-4z",fill:"#2EE5C0"})))},Od=(0,c.cn)("network");function Md({tenantName:e}){var t,a;const[r]=(0,X.Nt)(),s=(0,X.N4)(pd.yV),i=(0,X.YQ)(),[o,l]=n.useState(),[c,u]=n.useState(!1),[m,p]=n.useState(!1),{currentData:h,isFetching:v,error:g}=md.useGetNetworkInfoQuery(e,{pollingInterval:r});if(v&&void 0===h)return(0,d.jsx)("div",{className:"loader",children:(0,d.jsx)(Gs.a,{size:"l"})});const y=h,x=null!==(t=(null===y||void 0===y?void 0:y.Tenants)&&y.Tenants[0].Nodes)&&void 0!==t?t:[];if(!g&&0===x.length)return(0,d.jsx)("div",{className:"error",children:"no nodes data"});const b=zd(x,"NodeType"),f=o?zd(null!==(a=o.Peers)&&void 0!==a?a:[],"NodeType"):{};return(0,d.jsxs)("div",{className:Od(),children:[g?(0,d.jsx)(de.o,{error:g}):null,x.length>0?(0,d.jsx)("div",{className:Od("inner"),children:(0,d.jsxs)("div",{className:Od("nodes-row"),children:[(0,d.jsxs)("div",{className:Od("left"),children:[(0,d.jsx)("div",{className:Od("controls-wrapper"),children:(0,d.jsxs)("div",{className:Od("controls"),children:[(0,d.jsx)(ud.k,{value:s,onChange:e=>{i((0,pd.$u)(e))},className:Od("problem-filter")}),(0,d.jsx)("div",{className:Od("checkbox-wrapper"),children:(0,d.jsx)(ce.S,{onUpdate:()=>{u(!c)},checked:c,children:"ID"})}),(0,d.jsx)("div",{className:Od("checkbox-wrapper"),children:(0,d.jsx)(ce.S,{onUpdate:()=>{p(!m)},checked:m,children:"Racks"})})]})}),(0,d.jsx)(Ld,{nodes:b,showId:c,showRacks:m,clickedNode:o,onClickNode:l})]}),(0,d.jsx)("div",{className:Od("right"),children:o?(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:Od("label"),children:["Connectivity of node"," ",(0,d.jsx)(re.N_,{className:Od("link"),to:(0,Fl.vI)(o.NodeId),children:o.NodeId})," ","to other nodes"]}),(0,d.jsx)("div",{className:Od("nodes-row"),children:(0,d.jsx)(Ld,{nodes:f,isRight:!0,showId:c,showRacks:m,clickedNode:o,onClickNode:l})})]}):(0,d.jsxs)("div",{className:Od("placeholder"),children:[(0,d.jsx)("div",{className:Od("placeholder-img"),children:(0,d.jsx)(ct.I,{data:kd,width:221,height:204})}),(0,d.jsx)("div",{className:Od("placeholder-text"),children:"Select node to see its connectivity to other nodes"})]})})]})}):null]})}function Ld({nodes:e,isRight:t,showId:a,showRacks:n,clickedNode:r,onClickNode:s}){const i=(0,X.N4)(pd.yV),o=(0,X.YQ)();let l=0;const c=Object.keys(e).map(((c,u)=>{const m=zd(e[c],"Rack");return(0,d.jsxs)("div",{className:Od("nodes-container",{right:t}),children:[(0,d.jsxs)("div",{className:Od("nodes-title"),children:[c," nodes"]}),(0,d.jsx)("div",{className:Od("nodes"),children:n?Object.keys(m).map(((e,n)=>(0,d.jsxs)("div",{className:Od("rack-column"),children:[(0,d.jsx)("div",{className:Od("rack-index"),children:"undefined"===e?"?":e}),m[e].map(((e,n)=>{let c,u;return!t&&"Peers"in e&&e.Peers&&(c=Object.keys(e.Peers).length,u=yd(e.Peers)),i===pd.s$.PROBLEMS&&c!==u||i===pd.s$.ALL||t?(l++,(0,d.jsx)(gd,{nodeId:e.NodeId,showID:a,rack:e.Rack,status:"ConnectStatus"in e?e.ConnectStatus:void 0,capacity:c,connected:u,onMouseEnter:(...e)=>{o((0,pe.DK)(...e))},onMouseLeave:()=>{o((0,pe.w7)())},onClick:t?void 0:()=>{s(r&&e.NodeId===r.NodeId?void 0:e)},isBlurred:!t&&r&&r.NodeId!==e.NodeId},n)):null}))]},n))):e[c].map(((e,n)=>{let c,u;const m=e&&"Peers"in e?e.Peers:void 0;return!t&&"Peers"in e&&e.Peers&&(c=e.Peers.length,u=yd(m)),i===pd.s$.PROBLEMS&&c!==u||i===pd.s$.ALL||t?(l++,(0,d.jsx)(gd,{nodeId:e.NodeId,showID:a,rack:e.Rack,status:"ConnectStatus"in e?e.ConnectStatus:void 0,capacity:null===m||void 0===m?void 0:m.length,connected:u,onMouseEnter:(...e)=>{o((0,pe.DK)(...e))},onMouseLeave:()=>{o((0,pe.w7)())},onClick:t?void 0:()=>{s(r&&e.NodeId===r.NodeId?void 0:e)},isBlurred:!t&&r&&r.NodeId!==e.NodeId},n)):null}))})]},u)}));return i===pd.s$.PROBLEMS&&0===l?(0,d.jsx)(dd.v,{name:"thumbsUp",width:"200"}):c}function zd(e,t){return e.reduce(((e,a)=>(e[a[t]]?e[a[t]].push(a):e[a[t]]=[a],e)),{})}const qd=["NodeId","Host","Connections","NetworkUtilization","SendThroughput","ReceiveThroughput","PingTime","ClockSkew"],Fd=["NodeId"],$d=["Host","DC","Rack","Uptime","ConnectStatus","NetworkUtilization","PingTime","ClockSkew"];function Ud({database:e,path:t,parentRef:a,additionalNodesProps:n}){const r=(0,ie.Pm)(),s=(0,ie.WF)(),[i]=(0,X.iK)(Z.g5),l=s&&i;return(0,d.jsx)(o.r,{loading:!r,children:(()=>{return l?(0,d.jsx)(Le.G,{path:t,database:e,parentRef:a,withPeerRoleFilter:!0,additionalNodesProps:n,columns:(r={database:e,getNodeRef:null===n||void 0===n?void 0:n.getNodeRef},[(0,vo._E)(),(0,vo.Nh)(r,{statusForIcon:"ConnectStatus"}),(0,vo.uk)(),(0,vo.OX)(),(0,vo.jl)(),(0,vo.fr)(),(0,vo.kv)(),(0,vo.SH)(),(0,vo.H)(),(0,vo.DH)(),(0,vo.ui)(),(0,vo.wN)(),(0,vo.pt)()].map((e=>({...e,sortable:(0,go.sp)(e.name)})))),defaultColumnsIds:qd,requiredColumnsIds:Fd,selectedColumnsKey:"networkNodesTableSelectedColumns",groupByParams:$d}):(0,d.jsx)(Md,{tenantName:e});var r})()})}var Qd=a(24600),Bd=a(47058),Hd=a(69775),Gd=a(41775);const Wd=JSON.parse('{"lagsPopover.writeLags":"Write lags statistics (time format dd hh:mm:ss)","lagsPopover.readLags":"Read lags statistics (time format dd hh:mm:ss)","headers.unread":"End offset - Last read offset","headers.uncommited":"End offset - Committed offset","controls.consumerSelector":"Consumer:","controls.consumerSelector.emptyOption":"No consumer","controls.partitionSearch":"Partition ID","controls.generalSearch":"Host, Host ID, Reader, Read Session ID","table.emptyDataMessage":"No partitions match the current search","noConsumersMessage.topic":"This topic has no consumers","noConsumersMessage.stream":"This changefeed has no consumers"}'),Vd=JSON.parse('{"lagsPopover.writeLags":"\u0421\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u043b\u0430\u0433\u043e\u0432 \u0437\u0430\u043f\u0438\u0441\u0438 (\u0444\u043e\u0440\u043c\u0430\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0434\u0434 \u0447\u0447:\u043c\u043c:\u0441\u0441)","lagsPopover.readLags":"\u0421\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u043b\u0430\u0433\u043e\u0432 \u0447\u0442\u0435\u043d\u0438\u044f (\u0444\u043e\u0440\u043c\u0430\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0434\u0434 \u0447\u0447:\u043c\u043c:\u0441\u0441)","headers.unread":"End offset - Last read offset","headers.uncommited":"End offset - Committed offset","controls.consumerSelector":"\u0427\u0438\u0442\u0430\u0442\u0435\u043b\u044c:","controls.consumerSelector.emptyOption":"\u041d\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044f","controls.partitionSearch":"Partition ID","controls.generalSearch":"Host, Host ID, Reader, Read Session ID","table.emptyDataMessage":"\u041f\u043e \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u043c\u0443 \u043f\u043e\u0438\u0441\u043a\u0443 \u043d\u0435\u0442 \u043f\u0430\u0440\u0442\u0438\u0446\u0438\u0439","noConsumersMessage.topic":"\u0423 \u044d\u0442\u043e\u0433\u043e \u0442\u043e\u043f\u0438\u043a\u0430 \u043d\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439","noConsumersMessage.stream":"\u0423 \u044d\u0442\u043e\u0433\u043e \u0441\u0442\u0440\u0438\u043c\u0430 \u043d\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439"}'),Jd=(0,Be.g4)("ydb-diagnostics-partitions",{ru:Vd,en:Wd}),Kd={PARTITION_ID:"partitionId",STORE_SIZE:"storeSize",WRITE_SPEED:"writeSpeed",READ_SPEED:"readSpeed",WRITE_LAGS:"writeLags",READ_LAGS:"readLags",UNCOMMITED_MESSAGES:"uncommitedMessages",UNREAD_MESSAGES:"unreadMessages",START_OFFSET:"startOffset",END_OFFSET:"endOffset",COMMITED_OFFSET:"commitedOffset",READ_SESSION_ID:"readSessionId",READER_NAME:"readerName",PARTITION_HOST:"partitionHost",CONNECTION_HOST:"connectionHost"},Yd={[Kd.PARTITION_ID]:"Partition ID",[Kd.STORE_SIZE]:"Store size",[Kd.WRITE_SPEED]:"Write speed",[Kd.READ_SPEED]:"Read speed",[Kd.WRITE_LAGS]:"Write lags, duration",[Kd.READ_LAGS]:"Read lags, duration",[Kd.UNCOMMITED_MESSAGES]:"Uncommited messages",[Kd.UNREAD_MESSAGES]:"Unread messages",[Kd.START_OFFSET]:"Start offset",[Kd.END_OFFSET]:"End offset",[Kd.COMMITED_OFFSET]:"Commited offset",[Kd.READ_SESSION_ID]:"Read session ID",[Kd.READER_NAME]:"Reader name",[Kd.PARTITION_HOST]:"Partition host",[Kd.CONNECTION_HOST]:"Connection host"},Zd="partitionWriteLag",Xd="partitionWriteIdleTime",eu={[Zd]:"write lag",[Xd]:"write idle time"},tu="consumerWriteLag",au="consumerReadLag",nu="consumerReadIdleTime",ru={[tu]:"write lag",[au]:"read lag",[nu]:"read idle time"},su=[Kd.PARTITION_ID,Kd.STORE_SIZE,Kd.WRITE_SPEED,Kd.WRITE_LAGS,Kd.START_OFFSET,Kd.END_OFFSET,Kd.PARTITION_HOST],iu=Object.values(Kd),ou=({consumers:e,selectedConsumer:t,onSelectedConsumerChange:a,selectDisabled:r,partitions:s,onSearchChange:i,hiddenColumns:o,onHiddenColumnsChange:l,initialColumnsIds:c})=>{const[u,m]=n.useState(""),[p,h]=n.useState("");n.useEffect((()=>{if(!s)return;const e=new RegExp(ha()(p),"i"),t=new RegExp(ha()(u),"i"),a=s.filter((a=>{const{partitionId:n,readerName:r,readSessionId:s,partitionNodeId:i,connectionNodeId:o,partitionHost:l,connectionHost:c}=a,d=e.test(n),u=[r,s,i,o,l,c].filter(Boolean).map(String),m=0===u.length||u.some((e=>t.test(e)));return d&&m}));i(a)}),[p,u,s,i]);const v=n.useMemo((()=>{const t=e&&e.length?e.map((e=>({value:e,content:e}))):[];return[{value:"",content:Jd("controls.consumerSelector.emptyOption")},...t]}),[e]),g=n.useMemo((()=>{const e=[];for(const t of c){const a=t===Kd.PARTITION_ID,n={title:Yd[t],selected:Boolean(!o.includes(t)),id:t,required:a,sticky:a?"start":void 0};a?e.unshift(n):e.push(n)}return e}),[c,o]),y=e=>(0,d.jsx)("div",{className:xu("select-option",{empty:""===e.value}),children:e.content});return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(le.l,{className:xu("consumer-select"),label:Jd("controls.consumerSelector"),options:v,value:[t||""],onUpdate:e=>{a(e[0]||void 0)},filterable:e&&e.length>5,disabled:r||!e||!e.length,renderOption:y,renderSelectedOption:y}),(0,d.jsx)(Gd.v,{onChange:e=>{h(e)},placeholder:Jd("controls.partitionSearch"),className:xu("search",{partition:!0}),value:p}),(0,d.jsx)(Gd.v,{onChange:e=>{m(e)},placeholder:Jd("controls.generalSearch"),className:xu("search",{general:!0}),value:u}),(0,d.jsx)(Hd.O,{popupWidth:242,items:g,showStatus:!0,onUpdate:e=>{const t=[...o];e.forEach((e=>{e.selected||o.includes(e.id)?e.selected&&o.includes(e.id)&&t.splice(o.indexOf(e.id)):t.push(e.id)})),l(t)},sortable:!1},"TableColumnSetup")]})},lu=(0,c.cn)("ydb-diagnostics-partitions-columns-header"),cu=({title:e})=>(0,d.jsx)("div",{className:lu("multiline"),children:e}),du=()=>(0,d.jsx)("div",{className:lu("read-session"),children:Yd[Kd.READ_SESSION_ID]}),uu=()=>(0,d.jsx)(ka,{className:lu("lags"),text:Yd[Kd.WRITE_LAGS],popoverContent:(0,d.jsx)(Va,{text:Jd("lagsPopover.writeLags"),type:"write"})}),mu=()=>(0,d.jsx)(ka,{className:lu("lags"),text:Yd[Kd.READ_LAGS],popoverContent:(0,d.jsx)(Va,{text:Jd("lagsPopover.readLags"),type:"read"})}),pu=()=>(0,d.jsx)(ka,{className:lu("messages"),text:Yd[Kd.UNREAD_MESSAGES],popoverContent:(0,d.jsx)("div",{className:lu("messages-popover-content"),children:Jd("headers.unread")})}),hu=()=>(0,d.jsx)(ka,{className:lu("messages"),text:Yd[Kd.UNCOMMITED_MESSAGES],popoverContent:(0,d.jsx)("div",{className:lu("messages-popover-content"),children:Jd("headers.uncommited")})}),vu=(0,c.cn)("ydb-diagnostics-partitions-columns"),gu=[{name:Kd.PARTITION_ID,header:(0,d.jsx)(cu,{title:Yd[Kd.PARTITION_ID]}),sortAccessor:e=>(0,ks.kf)(e.partitionId)&&Number(e.partitionId),align:Rt.Ay.LEFT,render:({row:e})=>e.partitionId},{name:Kd.STORE_SIZE,header:(0,d.jsx)(cu,{title:Yd[Kd.STORE_SIZE]}),align:Rt.Ay.RIGHT,render:({row:e})=>(0,he.z3)(e.storeSize)},{name:Kd.WRITE_SPEED,header:Yd[Kd.WRITE_SPEED],align:Rt.Ay.LEFT,resizeMinWidth:140,sortAccessor:e=>e.writeSpeed.perMinute,render:({row:e})=>(0,d.jsx)(Ca,{data:e.writeSpeed})},{name:Kd.READ_SPEED,header:Yd[Kd.READ_SPEED],align:Rt.Ay.LEFT,resizeMinWidth:140,sortAccessor:e=>{var t;return null===(t=e.readSpeed)||void 0===t?void 0:t.perMinute},render:({row:e})=>(0,d.jsx)(Ca,{data:e.readSpeed})},{name:Kd.WRITE_LAGS,header:(0,d.jsx)(uu,{}),className:vu("lags-header"),sub:[{name:Zd,header:eu[Zd],align:Rt.Ay.RIGHT,render:({row:e})=>(0,he.lr)(e.partitionWriteLag)},{name:Xd,header:eu[Xd],align:Rt.Ay.RIGHT,render:({row:e})=>(0,he.lr)(e.partitionWriteIdleTime)}]},{name:Kd.READ_LAGS,header:(0,d.jsx)(mu,{}),className:vu("lags-header"),sub:[{name:tu,header:ru[tu],align:Rt.Ay.RIGHT,render:({row:e})=>(0,he.lr)(e.consumerWriteLag)},{name:au,header:ru[au],align:Rt.Ay.RIGHT,render:({row:e})=>(0,he.lr)(e.consumerReadLag)},{name:nu,header:ru[nu],align:Rt.Ay.RIGHT,render:({row:e})=>(0,he.lr)(e.consumerReadIdleTime)}]},{name:Kd.UNCOMMITED_MESSAGES,header:(0,d.jsx)(hu,{}),align:Rt.Ay.RIGHT,render:({row:e})=>e.uncommitedMessages},{name:Kd.UNREAD_MESSAGES,header:(0,d.jsx)(pu,{}),align:Rt.Ay.RIGHT,render:({row:e})=>e.unreadMessages},{name:Kd.START_OFFSET,header:(0,d.jsx)(cu,{title:Yd[Kd.START_OFFSET]}),sortAccessor:e=>(0,ks.kf)(e.startOffset)&&Number(e.startOffset),align:Rt.Ay.RIGHT,render:({row:e})=>e.startOffset},{name:Kd.END_OFFSET,header:(0,d.jsx)(cu,{title:Yd[Kd.END_OFFSET]}),sortAccessor:e=>(0,ks.kf)(e.endOffset)&&Number(e.endOffset),align:Rt.Ay.RIGHT,render:({row:e})=>e.endOffset},{name:Kd.COMMITED_OFFSET,header:(0,d.jsx)(cu,{title:Yd[Kd.COMMITED_OFFSET]}),sortAccessor:e=>(0,ks.kf)(e.commitedOffset)&&Number(e.commitedOffset),align:Rt.Ay.RIGHT,render:({row:e})=>e.commitedOffset},{name:Kd.READ_SESSION_ID,header:(0,d.jsx)(du,{}),align:Rt.Ay.LEFT,width:150,render:({row:e})=>e.readSessionId?(0,d.jsx)(Or.c,{name:e.readSessionId,showStatus:!1,hasClipboardButton:!0}):"\u2013"},{name:Kd.READER_NAME,header:(0,d.jsx)(cu,{title:Yd[Kd.READER_NAME]}),align:Rt.Ay.LEFT,width:150,render:({row:e})=>e.readerName?(0,d.jsx)(Or.c,{name:e.readerName,showStatus:!1,hasClipboardButton:!0}):"\u2013"},{name:Kd.PARTITION_HOST,header:(0,d.jsx)(cu,{title:Yd[Kd.PARTITION_HOST]}),align:Rt.Ay.LEFT,width:200,render:({row:e})=>e.partitionNodeId&&e.partitionHost?(0,d.jsx)(Or.c,{name:e.partitionHost,path:(0,Fl.vI)(e.partitionNodeId),showStatus:!1,hasClipboardButton:!0}):"\u2013"},{name:Kd.CONNECTION_HOST,header:(0,d.jsx)(cu,{title:Yd[Kd.CONNECTION_HOST]}),align:Rt.Ay.LEFT,width:200,render:({row:e})=>e.connectionNodeId&&e.connectionHost?(0,d.jsx)(Or.c,{name:e.connectionHost,path:(0,Fl.vI)(e.connectionNodeId),showStatus:!1,hasClipboardButton:!0}):"\u2013"}],yu=gu.filter((e=>su.includes(e.name))),xu=(0,c.cn)("ydb-diagnostics-partitions"),bu=({path:e,database:t})=>{const a=(0,X.YQ)(),[r,s]=n.useState([]),i=(0,X.N4)((a=>fa(a,e,t))),[o]=(0,X.Nt)(),{selectedConsumer:l}=(0,X.N4)((e=>e.partitions)),{currentData:c,isFetching:u,error:m}=ga.useGetTopicQuery({path:e,database:t}),p=u&&void 0===c,{currentData:h,isFetching:v,error:g}=Qd.m.useGetNodesListQuery(void 0),x=v&&void 0===h,b=(0,X.N4)(Qd.K),[f,T]=(0,X.iK)(Z.bs),[j,S]=(e=>{const[t,a]=n.useState([]),[r,s]=n.useState([]);return n.useEffect((()=>{e?(a(gu),s(iu)):(a(yu),s(su))}),[e]),[t,r]})(l),N=p?y.hT:{path:e,database:t,consumerName:l},{currentData:E,isFetching:w,error:C}=Bd.aD.useGetPartitionsQuery(N,{pollingInterval:o}),P=w&&void 0===E,I=E,D=n.useMemo((()=>((e=[],t)=>null===e||void 0===e?void 0:e.map((e=>{var a,n;const r=e.partitionNodeId&&t?null===(a=t.get(e.partitionNodeId))||void 0===a?void 0:a.Host:void 0,s=e.connectionNodeId&&t?null===(n=t.get(e.connectionNodeId))||void 0===n?void 0:n.Host:void 0;return{...e,partitionHost:r,connectionHost:s}})))(I,b)),[I,b]);n.useEffect((()=>{const e=!p&&!i,t=l&&i&&!i.includes(l);(e||t)&&a((0,Bd.WD)(void 0))}),[a,p,l,i]);const A=n.useMemo((()=>j.filter((e=>!f.includes(e.name)))),[j,f]),_=e=>{T(e)},R=e=>{a((0,Bd.WD)(e))},k=p||x||P,O=g||m||C;return(0,d.jsxs)("div",{className:xu(),children:[(0,d.jsx)("div",{className:xu("controls"),children:(0,d.jsx)(ou,{consumers:i,selectedConsumer:l,onSelectedConsumerChange:R,selectDisabled:Boolean(O)||k,partitions:D,onSearchChange:s,hiddenColumns:f,onHiddenColumnsChange:_,initialColumnsIds:S})}),O?(0,d.jsx)(de.o,{error:O}):null,(0,d.jsx)("div",{className:xu("table-wrapper"),children:(0,d.jsx)("div",{className:xu("table-content"),children:E?k?(0,d.jsx)(St.Q,{className:xu("loader")}):(0,d.jsx)(qe.l,{columnsWidthLSKey:"partitionsColumnsWidth",wrapperClassName:xu("table"),data:r,columns:A,settings:Z.N3,emptyDataMessage:Jd("table.emptyDataMessage")}):null})})]})};var fu=a(44433),Tu=a(23812);const ju=JSON.parse('{"date-format":"MM/DD/YYYY","date-time-format":"MM/DD/YYYY HH:mm"}'),Su=JSON.parse('{"date-format":"DD.MM.YYYY","date-time-format":"DD.MM.YYYY HH:mm"}'),Nu=(0,Be.g4)("ydb-date-range",{ru:Su,en:ju});function Eu(e){var t,a,n,r;return"relative"===(null===e||void 0===e||null===(t=e.start)||void 0===t?void 0:t.type)&&"relative"===(null===e||void 0===e||null===(a=e.end)||void 0===a?void 0:a.type)?"s":"relative"===(null===e||void 0===e||null===(n=e.start)||void 0===n?void 0:n.type)||"relative"===(null===e||void 0===e||null===(r=e.end)||void 0===r?void 0:r.type)?"m":"l"}const wu=(0,c.cn)("date-range"),Cu={start:{value:"now-1h",type:"relative"},end:{value:"now",type:"relative"}},Pu=({from:e,to:t,className:a,onChange:r})=>{const s=n.useCallback((e=>null===r||void 0===r?void 0:r(function(e){var t,a,n,r,s,i;return{from:"relative"===(null===e||void 0===e||null===(t=e.start)||void 0===t?void 0:t.type)?e.start.value.toString():String(null===(a=(0,nt.bQ)(null===e||void 0===e||null===(n=e.start)||void 0===n?void 0:n.value))||void 0===a?void 0:a.valueOf()),to:"relative"===(null===e||void 0===e||null===(r=e.end)||void 0===r?void 0:r.type)?e.end.value.toString():String(null===(s=(0,nt.bQ)(null===e||void 0===e||null===(i=e.end)||void 0===i?void 0:i.value))||void 0===s?void 0:s.valueOf())}}(e))),[r]),i=n.useMemo((()=>{if(e||t)return function(e){var t,a;const n=(0,nt.eP)(null!==(t=e.from)&&void 0!==t?t:""),r=(0,nt.eP)(null!==(a=e.to)&&void 0!==a?a:"");return{start:e.from?{type:n?"relative":"absolute",value:n?e.from:(0,nt.bQ)(Number(e.from))}:null,end:e.to?{type:r?"relative":"absolute",value:r?e.to:(0,nt.bQ)(Number(e.to))}:null}}({from:e,to:t})}),[e,t]),o=Intl.DateTimeFormat().resolvedOptions().timeZone;return(0,d.jsx)("div",{className:wu(null,a),children:(0,d.jsx)(Tu.k,{withPresets:!0,className:wu("range-input",{[Eu(i)]:!0}),timeZone:o,value:i||Cu,allowNullableValues:!0,size:"m",format:Nu("date-time-format"),onUpdate:s,placeholder:`${Nu("date-time-format")} - ${Nu("date-time-format")}`,withApplyButton:!0})})},Iu=JSON.parse('{"no-data":"No data","filter.text.placeholder":"Search by query text or userSID...","mode_top":"Top","mode_running":"Running"}'),Du=(0,Be.g4)("ydb-diagnostics-top-queries",{en:Iu}),Au={...tl,disableSortReset:!0};function _u(e){const[t,a]=(0,X.GY)({initialSortColumn:e,initialSortOrder:-1,multiple:!0}),r=n.useMemo((()=>(0,X.JN)(t,xl)),[t]);return{tableSort:t,handleTableSort:a,backendSort:r}}const Ru=({database:e,onRowClick:t,rowClassName:a})=>{var r;const[s]=(0,X.Nt)(),i=(0,X.N4)((e=>e.executeTopQueries)),{tableSort:o,handleTableSort:l,backendSort:c}=_u(hl),{currentData:u,isFetching:m,error:p}=Eo.Ke.useGetRunningQueriesQuery({database:e,filters:i,sortOrder:c},{pollingInterval:s}),h=m&&void 0===u,v=(null===u||void 0===u||null===(r=u.resultSets)||void 0===r?void 0:r[0].result)||[],g=n.useMemo((()=>[wl,Dl,jl,Al].map((e=>({...e,sortable:bl(e.name)})))),[]);return(0,d.jsxs)(n.Fragment,{children:[p?(0,d.jsx)(de.o,{error:(0,Nt.Cb)(p)}):null,(0,d.jsx)(Fe.L.Table,{loading:h,children:(0,d.jsx)(qe.l,{emptyDataMessage:Du("no-data"),columnsWidthLSKey:"runningQueriesColumnsWidth",columns:g,data:v,settings:Au,onRowClick:e=>t(e.QueryText),rowClassName:()=>a,sortOrder:o,onSort:l})})]})},ku=({database:e,onRowClick:t,rowClassName:a})=>{var r,s;const[i]=(0,X.Nt)(),o=(0,X.N4)((e=>e.executeTopQueries)),{tableSort:l,handleTableSort:c,backendSort:u}=_u(sl),{currentData:m,isFetching:p,error:h}=Eo.Ke.useGetTopQueriesQuery({database:e,filters:o,sortOrder:u},{pollingInterval:i}),v=p&&void 0===m,g=(null===m||void 0===m||null===(r=m.resultSets)||void 0===r||null===(s=r[0])||void 0===s?void 0:s.result)||[],y=n.useMemo((()=>[Pl,Tl,jl,Sl,Il,Nl,El,wl].map((e=>({...e,sortable:bl(e.name)})))),[]);return(0,d.jsxs)(n.Fragment,{children:[h?(0,d.jsx)(de.o,{error:(0,Nt.Cb)(h)}):null,(0,d.jsx)(Fe.L.Table,{loading:v,children:(0,d.jsx)(qe.l,{emptyDataMessage:Du("no-data"),columnsWidthLSKey:rl,columns:y,data:g||[],settings:Au,onRowClick:e=>t(e.QueryText),rowClassName:()=>a,sortOrder:l,onSort:c})})]})},Ou=(0,c.cn)("kv-top-queries"),Mu={top:"top",running:"running"},Lu=[{value:Mu.top,get content(){return Du("mode_top")}},{value:Mu.running,get content(){return Du("mode_running")}}],zu=xt.z.nativeEnum(Mu).catch(Mu.top),qu=({tenantName:e})=>{const t=(0,X.YQ)(),a=(0,Qr.zy)(),r=(0,Qr.W6)(),[i=Mu.top,o]=(0,s.useQueryParam)("queryMode",s.StringParam),l=zu.parse(i),c=l===Mu.top,u=(0,X.N4)((e=>e.executeTopQueries)),m=Ko(n.useCallback((e=>{t((0,wo.iZ)({input:e}));const n=(0,ye.mA)(a),s=(0,ra.YL)({...n,[ae.Dt]:ae.Dg.query,[ra.vh.queryTab]:ae.tQ.newQuery});r.push(s)}),[t,r,a])),p=c?ku:Ru;return(0,d.jsxs)(Fe.L,{children:[(0,d.jsxs)(Fe.L.Controls,{children:[(0,d.jsx)(fu.a,{options:Lu,value:l,onUpdate:o}),(0,d.jsx)(Qe.v,{value:u.text,onChange:e=>{t((0,Eo.TX)({text:e}))},placeholder:Du("filter.text.placeholder"),className:Ou("search")}),c?(0,d.jsx)(Pu,{from:u.from,to:u.to,onChange:e=>{t((0,Eo.TX)(e))}}):null]}),(0,d.jsx)(p,{database:e,onRowClick:m,rowClassName:Ou("row")})]})};var Fu=a(46496),$u=a(87747);const Uu=JSON.parse('{"no-data":"No data","filters.mode.immediate":"Immediate","filters.mode.history":"Historical","description":"Historical data only tracks shards with CPU load over 70%"}'),Qu=JSON.parse('{"no-data":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445","filters.mode.immediate":"\u041c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u044b\u0435","filters.mode.history":"\u0418\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u0435","description":"\u0418\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043e \u0448\u0430\u0440\u0434\u0430\u0445 \u0441 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u043e\u0439 CPU \u0432\u044b\u0448\u0435 70%"}'),Bu=(0,Be.g4)("ydb-diagnostics-top-shards",{ru:Qu,en:Uu}),Hu=({value:e,onChange:t})=>{const a=e.mode===$u.h.Immediate?void 0:e.from,r=e.mode===$u.h.Immediate?void 0:e.to;return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsxs)(fu.a,{value:e.mode,onUpdate:e=>{if(!((e,t)=>Object.values(e).includes(t))($u.h,e)){const t=Object.values($u.h).join(", ");throw new Error(`Unexpected TopShards mode "${e}". Should be one of: ${t}`)}t({mode:e})},children:[(0,d.jsx)(fu.a.Option,{value:$u.h.Immediate,children:Bu("filters.mode.immediate")}),(0,d.jsx)(fu.a.Option,{value:$u.h.History,children:Bu("filters.mode.history")})]}),(0,d.jsx)(Pu,{from:a,to:r,onChange:e=>{t({mode:$u.h.History,...e})}})]})};const Gu=(0,c.cn)("top-shards"),Wu={...Z.N3,dynamicRender:!1,externalSort:!0,disableSortReset:!0,defaultOrder:Rt.Ay.DESCENDING};function Vu(e){return e?(0,he.r6)(new Date(e).getTime()):"\u2013"}function Ju(e){return e.to="now",e.from="now-1h",e}const Ku=({tenantName:e,path:t})=>{var a,r;const s=(0,X.YQ)(),i=(0,Qr.zy)(),[o]=(0,X.Nt)(),l=(0,X.N4)((e=>e.shardsWorkload)),[c,u]=n.useState((()=>{const e={...l};return e.mode||(e.mode=$u.h.Immediate),e.from||e.to||Ju(e),e})),{tableSort:m,handleTableSort:p,backendSort:h}=function(){const[e,t]=(0,X.GY)({initialSortColumn:Hl,fixedOrderType:-1,multiple:!0}),a=n.useMemo((()=>(0,X.JN)(e,ec)),[e]);return{tableSort:e,handleTableSort:t,backendSort:a}}(),{currentData:v,isFetching:g,error:y}=Fu.Xx.useSendShardQueryQuery({database:e,path:t,sortOrder:h,filters:c},{pollingInterval:o}),x=g&&void 0===v,b=(null===v||void 0===v||null===(a=v.resultSets)||void 0===a||null===(r=a[0])||void 0===r?void 0:r.result)||[],f=e=>{const t={...e};if(!l.from&&!l.to&&!e.from&&!e.to)switch(e.mode){case $u.h.Immediate:t.from=t.to=void 0;break;case $u.h.History:Ju(t)}s((0,Fu.rF)(e)),u((e=>({...e,...t})))},T=n.useMemo((()=>{const t=((e,t)=>[tc(e,t),sc,ac,nc,rc,ic])(e,i),a=t.map((e=>{return{...e,sortable:(t=e.name,Boolean(ec(t)))};var t}));return c.mode===$u.h.History&&(a.splice(5,0,{name:Jl,render:({row:e})=>Vu(e.PeakTime),sortable:!1}),a.push({name:Yl,render:({row:e})=>Vu(e.IntervalEnd)})),a}),[c.mode,i,e]);return(0,d.jsxs)(Fe.L,{children:[(0,d.jsx)(Fe.L.Controls,{children:(0,d.jsx)(Hu,{value:c,onChange:f})}),c.mode===$u.h.History&&(0,d.jsx)("div",{className:Gu("hint"),children:Bu("description")}),y?(0,d.jsx)(de.o,{error:(0,Nt.Cb)(y)}):null,(0,d.jsx)(Fe.L.Table,{loading:x,children:y&&!b?null:(0,d.jsx)(qe.l,{columnsWidthLSKey:Ql,columns:T,data:b,settings:Wu,onSort:p,sortOrder:m})})]})},Yu=(0,c.cn)("kv-tenant-diagnostics");const Zu=function(e){const t=n.useRef(null),a=(0,X.YQ)(),{diagnosticsTab:i=ae.iJ.overview}=(0,X.N4)((e=>e.tenant)),[o]=(0,s.useQueryParams)({database:s.StringParam,schema:s.StringParam,backend:s.StringParam,clusterName:s.StringParam}),l=M(e.type)?e.path:e.tenantName,c=M(e.type)||e.path===e.tenantName,u=(0,ie._Q)(),m=c?(({hasFeatureFlags:e})=>e?Uc:Uc.filter((e=>e.id!==ae.iJ.configs)))({hasFeatureFlags:u}):(p=e.type)&&Yc[p]||Hc;var p;let h=m.find((e=>e.id===i));return h||(h=m[0]),n.useEffect((()=>{h&&h.id!==i&&a((0,oe.WO)(h.id))}),[h,i,a]),(0,d.jsxs)("div",{className:Yu(),children:[h?(0,d.jsx)(r.mg,{children:(0,d.jsx)("title",{children:h.title})}):null,(()=>{var e;return(0,d.jsx)("div",{className:Yu("header-wrapper"),children:(0,d.jsxs)("div",{className:Yu("tabs"),children:[(0,d.jsx)(ne.t,{size:"l",items:m,activeTab:null===(e=h)||void 0===e?void 0:e.id,wrapTo:({id:e},t)=>{const a=(0,ra.YL)({...o,[ra.vh.diagnosticsTab]:e});return(0,d.jsx)(re.N_,{to:a,className:Yu("tab"),children:t},e)},allowNotSelected:!0}),(0,d.jsx)(se.E,{onManualRefresh:()=>{const e=new CustomEvent("diagnosticsRefresh");document.dispatchEvent(e)}})]})})})(),(0,d.jsx)("div",{className:Yu("page-wrapper"),ref:t,children:(()=>{var a;const{type:n,path:r}=e;switch(null===(a=h)||void 0===a?void 0:a.id){case ae.iJ.overview:return(0,d.jsx)(wc,{type:n,tenantName:l,path:r,additionalTenantProps:e.additionalTenantProps,additionalNodesProps:e.additionalNodesProps});case ae.iJ.schema:return(0,d.jsx)(na,{path:r,tenantName:l,type:n,extended:!0});case ae.iJ.topQueries:return(0,d.jsx)(qu,{tenantName:l});case ae.iJ.topShards:return(0,d.jsx)(Ku,{tenantName:l,path:r});case ae.iJ.nodes:return(0,d.jsx)(Le.G,{path:r,database:l,additionalNodesProps:e.additionalNodesProps,parentRef:t});case ae.iJ.tablets:return(0,d.jsx)(jt.C,{path:r,database:l});case ae.iJ.storage:return(0,d.jsx)(Tt.z,{database:l,parentRef:t});case ae.iJ.network:return(0,d.jsx)(Ud,{path:r,database:l,additionalNodesProps:e.additionalNodesProps,parentRef:t});case ae.iJ.describe:return(0,d.jsx)(hr,{path:r,database:l,type:n});case ae.iJ.hotKeys:return(0,d.jsx)(ld,{path:r,database:l});case ae.iJ.graph:return(0,d.jsx)(Me,{path:r,database:l});case ae.iJ.consumers:return(0,d.jsx)(mn,{path:r,database:l,type:n});case ae.iJ.partitions:return(0,d.jsx)(bu,{path:r,database:l});case ae.iJ.configs:return(0,d.jsx)(ma,{database:l});case ae.iJ.operations:return(0,d.jsx)(ft,{database:l});default:return(0,d.jsx)("div",{children:"No data..."})}})()})]})},Xu=JSON.parse('{"controls.query-mode-selector_type":"Query type:","tabs.newQuery":"Editor","tabs.history":"History","tabs.saved":"Saved","history.empty":"History is empty","history.empty-search":"Search result is empty","saved.empty":"There are no saved queries","delete-dialog.header":"Delete query","delete-dialog.question":"Are you sure you want to delete query","delete-dialog.delete":"Delete","delete-dialog.cancel":"Cancel","preview.title":"Preview","preview.not-available":"Preview is not available","preview.close":"Close preview","preview.truncated":"truncated","method-description.script":"For YQL-scripts combining DDL and DML.\\nAPI call: schema.scripting","method-description.scan":"Read-only queries, potentially reading a lot of data.\\nAPI call: table.ExecuteScan","method-description.data":"DML queries for changing and fetching data in serialization mode.\\nAPI call: table.executeDataQuery","method-description.query":"Any query. An experimental API call supposed to replace all existing methods.\\nAPI Call: query.ExecuteScript","method-description.pg":"Queries in postgresql syntax.\\nAPI call: query.ExecuteScript","transaction-mode-description.serializable":"Provides the strictest isolation level for custom transactions","transaction-mode-description.onlinero":"Each read operation in the transaction is reading the data that is most recent at execution time","transaction-mode-description.stalero":"Read operations within a transaction may return results that are slightly out-of-date (lagging by fractions of a second)","transaction-mode-description.snapshot":"All the read operations within a transaction access the database snapshot. All the data reads are consistent","transaction-mode-description.implicit":"No transaction","tracing-level-description.basic":"Spans of main component operations","tracing-level-description.detailed":"Highest detail applicable for diagnosing problems in production","tracing-level-description.diagnostic":"Detailed debugging information for developers","tracing-level-description.off":"No tracing","tracing-level-description.toplevel":"Lowest detail, no more than two spans per request to the component","tracing-level-description.trace":"Very detailed debugging information","statistics-mode-description.none":"Don\'t collect statistics","statistics-mode-description.basic":"Collect statistics","statistics-mode-description.full":"Collect statistics and query plan","statistics-mode-description.profile":"Collect statistics for individual tasks","action.send-query":"Send query","action.send-selected-query":"Send selected query","action.previous-query":"Previous query in history","action.next-query":"Next query in history","action.save-query":"Save query","action.stop":"Stop","action.run":"Run","action.explain":"Explain","filter.text.placeholder":"Search by query text...","gear.tooltip":"Query execution settings have been changed for ","banner.query-settings.message":"Query was executed with modified settings: ","banner.query-stopped.message":"Data is not up to date because the request was not completed.","banner.query-stopped.never-show":"Never show again","toaster.stop-error":"Something went wrong. Unable to stop request processing. Please wait.","history.queryText":"Query text","history.endTime":"End time","history.duration":"Duration"}'),em=(0,Be.g4)("ydb-query-editor",{en:Xu}),tm=(0,c.cn)("ydb-queries-history");const am=function({changeUserInput:e}){const t=(0,X.YQ)(),a=(0,X.N4)(wo.py),n=(0,X.N4)(wo.jY),r=[...a].reverse(),s=Ko((a=>{e({input:a.queryText}),t((0,oe.sH)(ae.tQ.newQuery))})),i=[{name:"queryText",header:em("history.queryText"),render:({row:e})=>(0,d.jsx)("div",{className:tm("query"),children:(0,d.jsx)(Zo,{value:e.queryText,maxQueryHeight:6})}),sortable:!1,width:600},{name:"EndTime",header:em("history.endTime"),render:({row:e})=>e.endTime?(0,he.r6)(e.endTime.toString()):"-",align:"right",width:200,sortable:!1},{name:"Duration",header:em("history.duration"),render:({row:e})=>e.durationUs?(0,vt.Xo)((0,vt.Jc)(e.durationUs)):"-",align:"right",width:150,sortable:!1}];return(0,d.jsxs)(Fe.L,{className:tm(),children:[(0,d.jsx)(Fe.L.Controls,{children:(0,d.jsx)(Qe.v,{value:n,onChange:e=>{t((0,wo.Ni)(e))},placeholder:em("filter.text.placeholder"),className:tm("search")})}),(0,d.jsx)(Fe.L.Table,{children:(0,d.jsx)(qe.l,{columnsWidthLSKey:"queriesHistoryTableColumnsWidth",columns:i,data:r,settings:tl,emptyDataMessage:em(n?"history.empty-search":"history.empty"),onRowClick:e=>s(e),rowClassName:()=>tm("table-row")})})]})};var nm=a(13847),rm=a(72093);function sm(e,t){const a=new Map(Object.entries(e)),n=new Map(Object.entries(t));return Array.from(a.keys()).filter((e=>a.has(e)&&void 0!==a.get(e)&&a.get(e)!==n.get(e)))}const im=JSON.parse('{"action.settings":"Query settings","form.query-mode":"Query type","form.timeout":"Timeout","form.transaction-mode":"Transaction mode","form.statistics-mode":"Statistics collection mode","form.tracing-level":"Tracing level","form.limit-rows":"Limit rows","button-done":"Save","tooltip_plan-to-svg-statistics":"Statistics option is set to \\"Full\\" due to the enabled \\"Execution plan\\" experiment.\\n To disable it, go to the \\"Experiments\\" section in the user settings.","button-cancel":"Cancel","form.timeout.seconds":"sec","form.validation.timeout":"Must be positive","form.validation.limitRows":"Must be between 1 and 100000","description.default":" (default)","docs":"Documentation"}'),om=JSON.parse('{"action.settings":"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0430","form.query-mode":"\u0422\u0438\u043f \u0437\u0430\u043f\u0440\u043e\u0441\u0430","form.timeout":"\u0422\u0430\u0439\u043c\u0430\u0443\u0442","form.transaction-mode":"\u0423\u0440\u043e\u0432\u0435\u043d\u044c \u0438\u0437\u043e\u043b\u044f\u0446\u0438\u0438","form.statistics-mode":"\u0420\u0435\u0436\u0438\u043c \u0441\u0431\u043e\u0440\u0430 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438","form.tracing-level":"Tracing level","form.limit-rows":"\u041b\u0438\u043c\u0438\u0442 \u0441\u0442\u0440\u043e\u043a","tooltip_plan-to-svg-statistics":"\u041e\u043f\u0446\u0438\u044f \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 \u0432 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \\"Full\\" \u0438\u0437-\u0437\u0430 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u043e\u0433\u043e \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430 \\"Execution plan\\".\\n \u0427\u0442\u043e\u0431\u044b \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0435\u0433\u043e, \u043f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u0432 \u0440\u0430\u0437\u0434\u0435\u043b \\"Experiments\\" \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.","button-done":"\u0413\u043e\u0442\u043e\u0432\u043e","button-cancel":"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c","form.timeout.seconds":"\u0441\u0435\u043a","form.validation.timeout":"\u0422\u0430\u0439\u043c\u0430\u0443\u0442 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c","form.validation.limitRows":"\u041b\u0438\u043c\u0438\u0442 \u0441\u0442\u0440\u043e\u043a \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043c\u0435\u0436\u0434\u0443 1 \u0438 100000","description.default":" (default)","docs":"\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f"}'),lm=(0,Be.g4)("ydb-query-settings-dialog",{en:im,ru:om}),cm=[{value:Nt.Wg.implicit,content:Nt._d[Nt.Wg.implicit],text:em("transaction-mode-description.implicit"),isDefault:!0},{value:Nt.Wg.serializable,content:Nt._d[Nt.Wg.serializable],text:em("transaction-mode-description.serializable")},{value:Nt.Wg.onlinero,content:Nt._d[Nt.Wg.onlinero],text:em("transaction-mode-description.onlinero")},{value:Nt.Wg.stalero,content:Nt._d[Nt.Wg.stalero],text:em("transaction-mode-description.stalero")},{value:Nt.Wg.snapshot,content:Nt._d[Nt.Wg.snapshot],text:em("transaction-mode-description.snapshot")}],dm=[{value:Nt.ei.query,content:Nt.om[Nt.ei.query],text:em("method-description.query"),isDefault:!0},{value:Nt.ei.script,content:Nt.om[Nt.ei.script],text:em("method-description.script")},{value:Nt.ei.scan,content:Nt.om[Nt.ei.scan],text:em("method-description.scan")},{value:Nt.ei.data,content:Nt.om[Nt.ei.data],text:em("method-description.data")},{value:Nt.ei.pg,content:Nt.om[Nt.ei.pg],text:em("method-description.pg")}],um=[{value:Nt.pE.none,content:Nt.Pn[Nt.pE.none],text:em("statistics-mode-description.none"),isDefault:!0},{value:Nt.pE.basic,content:Nt.Pn[Nt.pE.basic],text:em("statistics-mode-description.basic")},{value:Nt.pE.full,content:Nt.Pn[Nt.pE.full],text:em("statistics-mode-description.full")},{value:Nt.pE.profile,content:Nt.Pn[Nt.pE.profile],text:em("statistics-mode-description.profile")}],mm=[{value:Nt.PB.off,content:Nt.PX[Nt.PB.off],text:em("tracing-level-description.off"),isDefault:!0},{value:Nt.PB.toplevel,content:Nt.PX[Nt.PB.toplevel],text:em("tracing-level-description.toplevel")},{value:Nt.PB.basic,content:Nt.PX[Nt.PB.basic],text:em("tracing-level-description.basic")},{value:Nt.PB.detailed,content:Nt.PX[Nt.PB.detailed],text:em("tracing-level-description.detailed")},{value:Nt.PB.diagnostic,content:Nt.PX[Nt.PB.diagnostic],text:em("tracing-level-description.diagnostic")},{value:Nt.PB.trace,content:Nt.PX[Nt.PB.trace],text:em("tracing-level-description.trace")}],pm={transactionMode:{title:lm("form.transaction-mode"),options:cm},queryMode:{title:lm("form.query-mode"),options:dm},statisticsMode:{title:lm("form.statistics-mode"),options:um},tracingLevel:{title:lm("form.tracing-level"),options:mm},timeout:{title:lm("form.timeout")},limitRows:{title:lm("form.limit-rows")}};function hm({currentSettings:e,defaultSettings:t}){const a=sm(e,t),n={};return a.forEach((t=>{const a=pm[t],r=e[t];if("options"in a){var s;const e=null===(s=a.options.find((e=>e.value===r)))||void 0===s?void 0:s.content;e&&(n[a.title]=e)}else r&&(n[a.title]=String(r))})),n}var vm=a(80967);const gm=()=>{const[e,t]=(0,vm.i)(Z.fr);let a;try{a=Nt.id.parse(e)}catch{a=void 0}return[a,t]};var ym=a(95312);const xm=()=>{const[e,t]=(0,vm.i)(Z.YQ),[a]=gm(),[n]=(0,ym.X)(),r=a?sm(a,Nt.jU):[],s=n?sm(n,Nt.jU):[],i=r.length>0,o=a?hm({currentSettings:a,defaultSettings:Nt.jU}):{},l=n?hm({currentSettings:n,defaultSettings:Nt.jU}):{},c=e&&Date.now()-e<1e3*Z.Du;return{isBannerShown:i&&!c,isIndicatorShown:i&&c,closeBanner:()=>t(Date.now()),resetBanner:()=>t(void 0),changedCurrentSettings:s,changedCurrentSettingsDescriptions:l,changedLastExucutionSettings:r,changedLastExecutionSettingsDescriptions:o}};var bm=a(53472);let fm=function(e){return e.triggerCollapse="triggerCollapse",e.triggerExpand="triggerExpand",e.clear="clear",e}({});const Tm=e=>{localStorage.setItem(e,"true")},jm=e=>{localStorage.removeItem(e)};function Sm(e){return function(t,a){switch(a){case fm.triggerCollapse:return Tm(e),{...t,triggerCollapse:!0,triggerExpand:!1,collapsed:!0};case fm.triggerExpand:return jm(e),{...t,triggerCollapse:!1,triggerExpand:!0,collapsed:!1};case fm.clear:return jm(e),{triggerCollapse:!1,triggerExpand:!1,collapsed:!1};default:return t}}}const Nm=(0,c.cn)("kv-pane-visibility-button");function Em({onCollapse:e,onExpand:t,isCollapsed:a,initialDirection:r="top",className:s}){return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(lt.m,{title:"Collapse",children:(0,d.jsx)(vn.$,{view:"flat-secondary",onClick:e,className:Nm({hidden:a,type:"collapse"},s),children:(0,d.jsx)(ct.I,{data:bm.A,className:Nm({[r]:!0})})})}),(0,d.jsx)(lt.m,{title:"Expand",children:(0,d.jsx)(vn.$,{view:"flat-secondary",onClick:t,className:Nm({hidden:!a,type:"expand"},s),children:(0,d.jsx)(ct.I,{data:bm.A,className:Nm({[r]:!0},"rotate")})})})]})}var wm=a(31819),Cm=a(72976);const Pm=function({disabled:e}){const t=(0,X.YQ)();return(0,d.jsx)(vn.$,{onClick:()=>{t((0,Cm.Jf)())},view:"flat-secondary",disabled:e,title:"Fullscreen",children:(0,d.jsx)(ct.I,{data:wm.A})})};var Im,Dm=a(98392);function Am(){return Am=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},Am.apply(null,arguments)}const _m=function(e){return n.createElement("svg",Am({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),Im||(Im=n.createElement("path",{fill:"currentColor",d:"M13.383 6.5a.309.309 0 00.305-.305V5.18a.328.328 0 00-.305-.305H11.25V2.742a.328.328 0 00-.305-.304H9.93a.309.309 0 00-.305.304v3.149c0 .355.254.609.61.609h3.148zm-7.008-.61V2.743a.328.328 0 00-.305-.304H5.055a.309.309 0 00-.305.304v2.133H2.617a.309.309 0 00-.304.305v1.015c0 .178.126.305.304.305h3.149c.33 0 .609-.254.609-.61zm0 7.618v-3.149c0-.33-.28-.609-.61-.609H2.618a.309.309 0 00-.304.305v1.015c0 .178.126.305.304.305H4.75v2.133c0 .178.127.305.305.305H6.07a.309.309 0 00.305-.305zm4.875 0v-2.133h2.133a.309.309 0 00.305-.305v-1.015a.328.328 0 00-.305-.305h-3.149c-.355 0-.609.28-.609.61v3.148c0 .178.127.305.305.305h1.015a.309.309 0 00.305-.305z"})))};var Rm;const km=(0,c.cn)("ydb-fullscreen"),Om=null!==(Rm=document.getElementById("fullscreen-root"))&&void 0!==Rm?Rm:void 0;const Mm=function({children:e,className:t}){const a=(0,X.N4)((e=>e.fullscreen)),r=(0,X.YQ)(),s=n.useCallback((()=>{r((0,Cm.sM)())}),[r]);n.useEffect((()=>{const e=e=>{"Escape"===e.key&&s()};return document.addEventListener("keydown",e,!1),()=>{document.removeEventListener("keydown",e,!1)}}),[s]);const[i,o]=n.useState(null);n.useEffect((()=>{const e=document.createElement("div");return null===Om||void 0===Om||Om.appendChild(e),e.style.display="contents",o(e),()=>{o(null),e.remove()}}),[]);const l=n.useRef(null);return n.useLayoutEffect((()=>{var e;i&&(a?null===Om||void 0===Om||Om.appendChild(i):null===(e=l.current)||void 0===e||e.appendChild(i))}),[i,a]),i?(0,d.jsx)("div",{ref:l,style:{display:"contents"},children:(0,d.jsx)(Dm.Z,{container:i,children:(0,d.jsxs)("div",{className:km({fullscreen:a},t),children:[(0,d.jsx)(vn.$,{onClick:s,view:"raised",className:km("close-button"),children:(0,d.jsx)(ct.I,{data:_m})}),(0,d.jsx)("div",{className:km("content"),children:e})]})})}):null},Lm=n.memo((function(e){const{className:t,value:a}=e,n=(0,X.YQ)();return(0,d.jsx)("span",{className:Um("cell",t),onClick:e=>n((0,pe.DK)(e.target,a,"cell")),children:a})})),zm=JSON.parse('{"empty":"Table is empty"}'),qm=JSON.parse('{"empty":"\u0422\u0430\u0431\u043b\u0438\u0446\u0430 \u043f\u0443\u0441\u0442\u0430\u044f"}'),Fm=(0,Be.g4)("ydb-query-result-table",{ru:qm,en:zm}),$m={...Z.N3,stripedRows:!0,sortable:!1,displayIndices:!0},Um=(0,c.cn)("ydb-query-result-table"),Qm=(e,t)=>t,Bm=(e,t)=>t+1,Hm=e=>{const{columns:t,data:a,settings:r}=e,s=n.useMemo((()=>t?((e,t)=>{if(!e.length)return[];const a=null===t||void 0===t?void 0:t.slice(0,100);return e.map((({name:e,type:t})=>{const n=(0,Nt.nh)(t);return{name:e,width:kt({data:a,name:e}),align:"number"===n?Rt.Ay.RIGHT:Rt.Ay.LEFT,render:({row:t})=>(0,d.jsx)(Lm,{value:String(t[e])})}}))})(t,a):(e=>{if(null===e||void 0===e||!e.length)return[];const t=null===e||void 0===e?void 0:e.slice(0,100);return Object.keys(e[0]).map((a=>({name:a,width:kt({data:t,name:a}),align:(0,ks.kf)(e[0][a])?Rt.Ay.RIGHT:Rt.Ay.LEFT,render:({row:e})=>(0,d.jsx)(Lm,{value:String(e[a])})})))})(a)),[a,t]),i=n.useMemo((()=>({...$m,...r})),[r]);return Array.isArray(a)?s.length?(0,d.jsx)(qe.l,{data:a,columns:s,settings:i,rowKey:Qm,visibleRowIndex:Bm,wrapperClassName:Um("table-wrapper")}):(0,d.jsx)("div",{className:Um("message"),children:Fm("empty")}):null},Gm=H.F.injectEndpoints({endpoints:e=>({sendQuery:e.query({queryFn:async({query:e,database:t,action:a,limitRows:n},{signal:r})=>{try{const s=await window.api.viewer.sendQuery({query:e,database:t,action:a,limit_rows:n},{signal:r,withRetries:!0});return(0,Nt.We)(s)?{error:s}:{data:(0,Nt.fW)(s)}}catch(s){return{error:s||new Error("Unauthorized")}}},providesTags:["PreviewData"]})}),overrideExisting:"throw"}),Wm=(0,c.cn)("kv-preview"),Vm=({database:e,path:t,type:a})=>{var n,r,s;const i=(0,X.YQ)(),o=D(a),l=`select * from \`${t}\` limit 101`,{currentData:c,isFetching:u,error:m}=Gm.useSendQueryQuery({database:e,query:l,action:U(a)?"execute-query":"execute-scan",limitRows:100},{skip:!o,refetchOnMountOrArgChange:!0}),p=u&&void 0===c,h=null!==(n=null===c||void 0===c||null===(r=c.resultSets)||void 0===r?void 0:r[0])&&void 0!==n?n:{},v=()=>{i((0,Y.o)(!1))};if(p)return(0,d.jsx)("div",{className:Wm("loader-container"),children:(0,d.jsx)(Gs.a,{size:"m"})});let g;o?m&&(g=(0,d.jsx)("div",{className:Wm("message-container","error"),children:(0,Nt.Cb)(m)})):g=(0,d.jsx)("div",{className:Wm("message-container"),children:em("preview.not-available")});const y=null!==(s=g)&&void 0!==s?s:(0,d.jsx)("div",{className:Wm("result"),children:(0,d.jsx)(Hm,{data:h.result,columns:h.columns})});return(0,d.jsxs)("div",{className:Wm(),children:[(()=>{var e,a;return(0,d.jsxs)("div",{className:Wm("header"),children:[(0,d.jsxs)("div",{className:Wm("title"),children:[em("preview.title"),(0,d.jsxs)(it.E,{color:"secondary",variant:"body-2",children:[h.truncated?`${em("preview.truncated")} `:"","(",null!==(e=null===(a=h.result)||void 0===a?void 0:a.length)&&void 0!==e?e:0,")"]}),(0,d.jsx)("div",{className:Wm("table-name"),children:t})]}),(0,d.jsxs)("div",{className:Wm("controls-left"),children:[(0,d.jsx)(Pm,{disabled:Boolean(m)}),(0,d.jsx)(vn.$,{view:"flat-secondary",onClick:v,title:em("preview.close"),children:(0,d.jsx)(ct.I,{data:Zc.A,size:18})})]})]})})(),(0,d.jsx)(Mm,{children:y})]})},Jm=H.F.injectEndpoints({endpoints:e=>({cancelQuery:e.mutation({queryFn:async({queryId:e,database:t},{signal:a})=>{try{const n=await window.api.viewer.sendQuery({database:t,action:"cancel-query",query_id:e},{signal:a});if((0,Nt.We)(n))return{error:n};return{data:(0,Nt.fW)(n)}}catch(n){return{error:n}}}})}),overrideExisting:"throw"});var Km=a(13066);async function Ym(e){var t;let a=1;const n=async()=>{if(!window.ydbEditor){if(!a)return!1;await new Promise((e=>{window.setTimeout(e,100)})),a-=1,n()}return!0};await n()?null===(t=window.ydbEditor)||void 0===t||t.trigger(void 0,"insertSnippetToEditor",e):console.error("Monaco editor not found")}function Zm(e){return e.replace(/\$/g,"\\$")}const Xm=e=>`-- docs: https://ydb.tech/en/docs/yql/reference/syntax/create_table\nCREATE TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${Zm(e.relativePath)}/my_row_table\``:"${1:my_row_table}"} (\n category_id Uint64 NOT NULL,\n id Uint64,\n expire_at Datetime,\n updated_on Datetime,\n name Text,\n \`binary-payload\` Bytes,\n attributes JsonDocument,\n -- uncomment to add a secondary index\n -- INDEX idx_row_table_id GLOBAL SYNC ON ( id ) COVER ( name, attributes ), -- Secondary indexes docs https://ydb.tech/en/docs/yql/reference/syntax/create_table#secondary_index\n PRIMARY KEY (category_id, id)\n) \nWITH (\n AUTO_PARTITIONING_BY_SIZE = ENABLED,\n AUTO_PARTITIONING_PARTITION_SIZE_MB = 2048,\n AUTO_PARTITIONING_BY_LOAD = ENABLED,\n AUTO_PARTITIONING_MIN_PARTITIONS_COUNT = 4,\n AUTO_PARTITIONING_MAX_PARTITIONS_COUNT = 1024\n -- uncomment to create a table with predefined partitions\n -- , UNIFORM_PARTITIONS = 4 -- The number of partitions for uniform initial table partitioning.\n -- The primary key's first column must have type Uint64 or Uint32.\n -- A created table is immediately divided into the specified number of partitions\n -- uncomment to launch read only replicas in every AZ\n -- , READ_REPLICAS_SETTINGS = 'PER_AZ:1' -- Enable read replicas for stale read, launch one replica in every availability zone\n -- uncomment to enable ttl\n -- , TTL = Interval("PT1H") ON expire_at -- Enable background deletion of expired rows https://ydb.tech/en/docs/concepts/ttl\n -- uncomment to create a table with a bloom filter\n -- , KEY_BLOOM_FILTER = ENABLED -- With a Bloom filter, you can more efficiently determine\n -- if some keys are missing in a table when making multiple single queries by the primary key.\n)`,ep=e=>`-- docs: https://ydb.tech/en/docs/yql/reference/syntax/create_table#olap-tables\nCREATE TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${Zm(e.relativePath)}/my_column_table\``:"${1:my_column_table}"} (\n id Int64 NOT NULL,\n author Text,\n title Text,\n body Text,\n PRIMARY KEY (id)\n)\nPARTITION BY HASH(id)\nWITH (STORE = COLUMN)`,tp=()=>'-- docs: https://ydb.tech/docs/en/yql/reference/syntax/create-async-replication\nCREATE OBJECT secret_name (TYPE SECRET) WITH value="secret_value";\n\nCREATE ASYNC REPLICATION my_replication\nFOR ${1:<original_table>} AS ${2:replica_table} --[, `/remote_database/another_table_name` AS `another_local_table_name` ...]\nWITH (\n CONNECTION_STRING="${3:grpcs://mydb.ydb.tech:2135/?database=/remote_database}",\n TOKEN_SECRET_NAME = "secret_name"\n -- ENDPOINT="mydb.ydb.tech:2135",\n -- DATABASE=`/remote_database`,\n -- USER="user",\n -- PASSWORD_SECRET_NAME="your_password"\n);',ap=()=>'-- docs: https://ydb.tech/docs/en/yql/reference/syntax/create-transfer\nCREATE OBJECT secret_name (TYPE SECRET) WITH value="secret_value";\n\n\\$l = (\\$x) -> {\n return [\n <|\n offset:\\$x._offset,\n message:\\$x._data\n |>\n ];\n};\n\nCREATE TRANSFER my_transfer\nFROM ${1:<original_topic>} TO ${2:<target_table>} USING \\$l\nWITH (\n CONNECTION_STRING="${3:grpcs://mydb.ydb.tech:2135/?database=/remote_database}",\n TOKEN_SECRET_NAME = "secret_name"\n -- ENDPOINT="mydb.ydb.tech:2135",\n -- DATABASE=`/remote_database`,\n -- USER="user",\n -- PASSWORD_SECRET_NAME="your_password"\n);',np=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/alter_table/\n\nALTER TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${Zm(e.relativePath)}\``:"${1:<my_table>}"}\n -- RENAME TO new_table_name\n -- DROP COLUMN some_existing_column\n\${2:ADD COLUMN numeric_column Int32};`,rp=e=>`-- documentation about partitioning https://ydb.tech/docs/en/concepts/datamodel/table#partitioning\n\nALTER TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${Zm(e.relativePath)}\``:"${1:<my_table>}"} SET \n(\n AUTO_PARTITIONING_BY_LOAD = ENABLED, -- If a partition consumes more than 50% of the CPU for a few dozens of seconds, it is enqueued for splitting.\n AUTO_PARTITIONING_BY_SIZE = ENABLED, -- If a partition size exceeds the value specified by the AUTO_PARTITIONING_PARTITION_SIZE_MB parameter, it is enqueued for splitting.\n AUTO_PARTITIONING_PARTITION_SIZE_MB = 2048,\n AUTO_PARTITIONING_MIN_PARTITIONS_COUNT = 10, -- Partitions are merged only if their actual number exceeds the value specified by this parameter.\n AUTO_PARTITIONING_MAX_PARTITIONS_COUNT = 100 -- Partitions are split only if their number doesn't exceed the value specified by this parameter.\n)`,sp=e=>{var t;const a=null!==e&&void 0!==e&&e.relativePath?`\`${Zm(e.relativePath)}\``:"${2:<my_table>}";return`SELECT ${(null===e||void 0===e||null===(t=e.schemaData)||void 0===t?void 0:t.map((e=>{var t;return"`"+Zm(null!==(t=e.name)&&void 0!==t?t:"")+"`"})).join(", "))||"${1:*}"}\nFROM ${a}\n${null!==e&&void 0!==e&&e.relativePath?"":"WHERE ${3:Key1 = 1}\nORDER BY ${4:Key1}\n"}LIMIT \${5:10};`},ip=e=>{var t;return`UPSERT INTO ${null!==e&&void 0!==e&&e.relativePath?`\`${Zm(e.relativePath)}\``:"${1:<my_table>}"}\n( ${(null===e||void 0===e||null===(t=e.schemaData)||void 0===t?void 0:t.map((e=>{var t;return`\`${Zm(null!==(t=e.name)&&void 0!==t?t:"")}\``})).join(", "))||"${2:id, name}"} )\nVALUES ( ${null!==e&&void 0!==e&&e.schemaData?"${3: }":'${3:1, "foo"}'} );`},op=e=>`DROP EXTERNAL TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${Zm(e.relativePath)}\``:"${1:my_table}"};`,lp=e=>{const t=null===e||void 0===e?void 0:e.relativePath.split("/").slice(0,-1).join("/");return`CREATE EXTERNAL TABLE ${t?`\`${Zm(t)}/my_external_table\``:"${1:<my_external_table>}"} (\n column1 Int,\n column2 Int\n) WITH (\n DATA_SOURCE="${null!==e&&void 0!==e&&e.relativePath?`${Zm(e.relativePath)}`:"${2:<path_to_data_source>}"}",\n LOCATION="",\n FORMAT="json_as_string",\n \`file_pattern\`=""\n);`},cp=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/create-topic\nCREATE TOPIC ${null!==e&&void 0!==e&&e.relativePath?`\`${Zm(e.relativePath)}/my_topic\``:"${1:my_topic}"} (\n CONSUMER consumer1,\n CONSUMER consumer2 WITH (read_from = Datetime('1970-01-01T00:00:00Z')) -- Sets up the message write time starting from which the consumer will receive data.\n -- Value type: Datetime OR Timestamp OR integer (unix-timestamp in the numeric format). \n -- Default value: now\n) WITH (\n min_active_partitions = 1, -- Minimum number of topic partitions.\n partition_count_limit = 0, -- Maximum number of active partitions in the topic. 0 is interpreted as unlimited.\n retention_period = Interval('PT18H'), -- Data retention period in the topic. Value type: Interval.\n retention_storage_mb = 0, -- Limit on the maximum disk space occupied by the topic data. \n -- When this value is exceeded, the older data is cleared, like under a retention policy. \n -- 0 is interpreted as unlimited.\n partition_write_speed_bytes_per_second = 1048576, -- Maximum allowed write speed per partition.\n partition_write_burst_bytes = 0 -- Write quota allocated for write bursts. \n -- When set to zero, the actual write_burst value is equalled to \n -- the quota value (this allows write bursts of up to one second).\n);`,dp=e=>`-- docs: https://ydb.tech/en/docs/yql/reference/syntax/alter_topic\nALTER TOPIC ${null!==e&&void 0!==e&&e.relativePath?`\`${Zm(e.relativePath)}\``:"${1:<my_topic>}"}\n ADD CONSUMER new_consumer WITH (read_from = Datetime('1970-01-01T00:00:00Z')), -- Sets up the message write time starting from which the consumer will receive data.\n -- Value type: Datetime OR Timestamp OR integer (unix-timestamp in the numeric format).\n -- Default value: now\n ALTER CONSUMER consumer1 SET (read_from = Datetime('1970-01-01T00:00:00Z')),\n DROP CONSUMER consumer2,\n SET (\n min_active_partitions = 1, -- Minimum number of topic partitions.\n partition_count_limit = 0, -- Maximum number of active partitions in the topic. 0 is interpreted as unlimited.\n retention_period = Interval('PT18H'), -- Data retention period in the topic. Value type: Interval.\n retention_storage_mb = 0, -- Limit on the maximum disk space occupied by the topic data. \n -- When this value is exceeded, the older data is cleared, like under a retention policy. \n -- 0 is interpreted as unlimited.\n partition_write_speed_bytes_per_second = 1048576, -- Maximum allowed write speed per partition.\n partition_write_burst_bytes = 0 -- Write quota allocated for write bursts. \n -- When set to zero, the actual write_burst value is equalled to\n -- the quota value (this allows write bursts of up to one second).\n );`,up=e=>`DROP TOPIC ${null!==e&&void 0!==e&&e.relativePath?`\`${Zm(e.relativePath)}\``:"${1:<my_topic>}"};`,mp=e=>`CREATE VIEW ${null!==e&&void 0!==e&&e.relativePath?`\`${Zm(e.relativePath)}/my_view\``:"${1:my_view}"} WITH (security_invoker = TRUE) AS SELECT 1;`,pp=e=>`DROP VIEW ${null!==e&&void 0!==e&&e.relativePath?`\`${Zm(e.relativePath)}\``:"${1:<my_view>}"};`,hp=e=>`DROP ASYNC REPLICATION ${null!==e&&void 0!==e&&e.relativePath?`\`${Zm(e.relativePath)}\``:"${1:<my_replication>}"};`,vp=e=>`DROP TRANSFER ${null!==e&&void 0!==e&&e.relativePath?`\`${Zm(e.relativePath)}\``:"${1:<my_transfer>}"};`,gp=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/alter-async-replication\nALTER ASYNC REPLICATION ${null!==e&&void 0!==e&&e.relativePath?`\`${Zm(e.relativePath)}\``:"${1:<my_replication>}"} SET (STATE = "DONE", FAILOVER_MODE = "FORCE");`,yp=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/alter-transfer\n\n\\$l = (\\$x) -> {\n return [\n <|\n offset:\\$x._offset,\n message:\\$x._data\n |>\n ];\n};\n\nALTER TRANSFER ${null!==e&&void 0!==e&&e.relativePath?`\`${Zm(e.relativePath)}\``:"${1:<my_transfer>}"} \nSET USING \\$l;`,xp=e=>`ALTER TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${Zm(e.relativePath)}\``:"${1:<my_table>}"} ADD INDEX \${2:index_name} GLOBAL ON (\${3:<column_name>});`,bp=e=>{const t=null===e||void 0===e?void 0:e.relativePath.split("/").pop(),a=null===e||void 0===e?void 0:e.relativePath.split("/").slice(0,-1).join("/");return`ALTER TABLE ${a?`\`${Zm(a)}\``:"${1:<my_table>}"} DROP INDEX ${Zm(null!==t&&void 0!==t?t:"")||"${2:<index_name>}"};`},fp=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/alter_table/changefeed\nALTER TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${Zm(e.relativePath)}\``:"${1:<my_table>}"} ADD CHANGEFEED \${2:changefeed_name} WITH (\n MODE = \${3:'UPDATES'}, -- KEYS_ONLY, UPDATES, NEW_IMAGE, OLD_IMAGE, or NEW_AND_OLD_IMAGES\n FORMAT = \${4:'JSON'}, -- JSON or DEBEZIUM_JSON\n VIRTUAL_TIMESTAMPS = \${5:TRUE}, -- true or false\n RETENTION_PERIOD = \${6:Interval('PT12H')}, -- Interval value, e.g., Interval('PT24H')\n -- TOPIC_MIN_ACTIVE_PARTITIONS: The number of topic partitions. By default, the number of topic partitions is equal to the number of table partitions\n INITIAL_SCAN = \${8:TRUE} -- true or false\n)\n\n-- MODE options:\n-- KEYS_ONLY: Only the primary key components and change flag are written.\n-- UPDATES: Updated column values that result from updates are written.\n-- NEW_IMAGE: Any column values resulting from updates are written.\n-- OLD_IMAGE: Any column values before updates are written.\n-- NEW_AND_OLD_IMAGES: A combination of NEW_IMAGE and OLD_IMAGE modes.`,Tp=()=>"-- docs: https://ydb.tech/docs/en/yql/reference/syntax/create-group\nCREATE GROUP ${1:group_name}\n-- group_name: The name of the group. It may contain lowercase Latin letters and digits.",jp=()=>"-- docs: https://ydb.tech/docs/en/yql/reference/syntax/create-user\nCREATE USER ${1:user_name} PASSWORD ${2:'password'}\n-- user_name: The name of the user. It may contain lowercase Latin letters and digits.\n-- option: The password of the user:\n -- PASSWORD 'password' creates a user with the password password. The ENCRYPTED option is always enabled.\n -- PASSWORD NULL creates a user with an empty password.",Sp=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/delete\nDELETE FROM ${null!==e&&void 0!==e&&e.relativePath?`\`${Zm(e.relativePath)}\``:"${1:<my_table>}"}\nWHERE \${2:Key1 = 1};`,Np=()=>"-- docs: https://ydb.tech/docs/en/yql/reference/syntax/drop-group\nDROP GROUP ${1:<group_name>}\n\n-- IF EXISTS: Suppress an error if the group doesn't exist.\n-- group_name: The name of the group to be deleted.",Ep=()=>"-- docs: https://ydb.tech/docs/en/yql/reference/syntax/drop-user\nDROP USER ${1:<user_name>}\n\n-- IF EXISTS: Suppress an error if the user doesn't exist.\n-- user_name: The name of the user to be deleted.",wp=e=>`GRANT \${1:<permission_name>}\nON ${null!==e&&void 0!==e&&e.relativePath?`\`${Zm(null===e||void 0===e?void 0:e.relativePath)}\``:"${2:<path_to_scheme_object>}"}\nTO \${3:<role_name>}\n\n-- permission_name: The name of the access right to schema objects that needs to be assigned.\n-- path_to_scheme_object: The path to the schema object for which rights are being granted.\n-- role_name: The name of the user or group to whom rights on the schema object are being granted.\n-- WITH GRANT OPTION: Using this construct gives the user or group of users the right to manage access rights - \n-- to assign or revoke certain rights. This construct has functionality similar to granting \n-- the "ydb.access.grant" or GRANT right. A subject with the ydb.access.grant right cannot \n-- grant rights broader than they possess themselves.`,Cp=e=>`REVOKE \${1:<permission_name>}\nON ${null!==e&&void 0!==e&&e.relativePath?`\`${Zm(null===e||void 0===e?void 0:e.relativePath)}\``:"${2:<path_to_scheme_object>}"}\nFROM \${3:<role_name>}\n\n-- permission_name: The name of the access right to schema objects that needs to be revoked.\n-- path_to_scheme_object: The path to the schema object from which rights are being revoked.\n-- role_name: The name of the user or group from whom rights on the schema object are being revoked.\n-- GRANT OPTION FOR: Using this construct revokes the user's or group's right to manage access rights.\n-- All previously granted rights by this user remain in effect.\n-- This construct has functionality similar to revoking the "ydb.access.grant" or GRANT right.`,Pp=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/update\nUPDATE ${null!==e&&void 0!==e&&e.relativePath?`\`${Zm(e.relativePath)}\``:"${1:<my_table>}"}\nSET \${2:Column1 = 'foo', Column2 = 'bar'}\nWHERE \${3:Key1 = 1};`,Ip=e=>`DROP TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${Zm(e.relativePath)}\``:"${1:<my_table>}"};`,Dp=JSON.parse('{"button.new-sql":"New query","action.create-row-table":"Create row table","action.create-column-table":"Create column table","action.create-external-table":"Create external table","action.upsert-to-table":"Upsert into table","action.update-table":"Update table","action.alter-table":"Alter table","action.select-rows":"Select from a table","action.delete-rows":"Delete rows","action.drop-table":"Drop table","action.add-index":"Add index","action.drop-index":"Drop index","action.drop-external-table":"Drop external table","menu.tables":"Tables","menu.topics":"Topics","menu.capture":"Change data capture","menu.replication":"Async replication","menu.transfer":"Transfer","menu.users":"Users","action.create-topic":"Create Topic","action.drop-topic":"Drop Topic","action.alter-topic":"Alter Topic","action.create-cdc-stream":"Create changefeed","action.create-async-replication":"Create async replication","action.create-transfer":"Create transfer","action.create-user":"Create user","action.create-group":"Create group","action.drop-user":"Drop user","action.drop-group":"Drop group","action.grant-privilege":"Grant privilege","action.revoke-privilege":"Revoke privilege","action.alter-async-replication":"Alter async replication","action.drop-async-replication":"Drop async replication","action.alter-transfer":"Alter transfer","action.drop-transfer":"Drop transfer"}'),Ap=(0,Be.g4)("ydb-new-sql",{en:Dp});function _p(){const e=(e=>{const t=t=>()=>{e(t())};return{createRowTable:t(Xm),createColumnTable:t(ep),createAsyncReplication:t(tp),alterAsyncReplication:t(gp),dropAsyncReplication:t(hp),createTransfer:t(ap),alterTransfer:t(yp),dropTransfer:t(vp),alterTable:t(np),selectQuery:t(sp),upsertQuery:t(ip),createExternalTable:t(lp),dropExternalTable:t(op),createTopic:t(cp),alterTopic:t(dp),dropTopic:t(up),createView:t(mp),dropTable:t(Ip),deleteRows:t(Sp),updateTable:t(Pp),createUser:t(jp),createGroup:t(Tp),createCdcStream:t(fp),grantPrivilege:t(wp),revokePrivilege:t(Cp),dropUser:t(Ep),dropGroup:t(Np),addTableIndex:t(xp),dropTableIndex:t(bp)}})(Ko(n.useCallback((e=>{Ym(e)}),[]))),t=[{text:Ap("menu.tables"),items:[{text:Ap("action.create-row-table"),action:e.createRowTable},{text:Ap("action.create-column-table"),action:e.createColumnTable},{text:Ap("action.create-external-table"),action:e.createExternalTable},{text:Ap("action.upsert-to-table"),action:e.upsertQuery},{text:Ap("action.update-table"),action:e.updateTable},{text:Ap("action.alter-table"),action:e.alterTable},{text:Ap("action.select-rows"),action:e.selectQuery},{text:Ap("action.delete-rows"),action:e.deleteRows},{text:Ap("action.drop-table"),action:e.dropTable},{text:Ap("action.drop-external-table"),action:e.dropExternalTable},{text:Ap("action.add-index"),action:e.addTableIndex},{text:Ap("action.drop-index"),action:e.dropTableIndex}]},{text:Ap("menu.topics"),items:[{text:Ap("action.create-topic"),action:e.createTopic},{text:Ap("action.alter-topic"),action:e.alterTopic},{text:Ap("action.drop-topic"),action:e.dropTopic}]},{text:Ap("menu.replication"),items:[{text:Ap("action.create-async-replication"),action:e.createAsyncReplication},{text:Ap("action.alter-async-replication"),action:e.alterAsyncReplication},{text:Ap("action.drop-async-replication"),action:e.dropAsyncReplication}]},{text:Ap("menu.transfer"),items:[{text:Ap("action.create-transfer"),action:e.createTransfer},{text:Ap("action.alter-transfer"),action:e.alterTransfer},{text:Ap("action.drop-transfer"),action:e.dropTransfer}]},{text:Ap("menu.capture"),items:[{text:Ap("action.create-cdc-stream"),action:e.createCdcStream}]},{text:Ap("menu.users"),items:[{text:Ap("action.create-user"),action:e.createUser},{text:Ap("action.create-group"),action:e.createGroup},{text:Ap("action.drop-user"),action:e.dropUser},{text:Ap("action.drop-group"),action:e.dropGroup},{text:Ap("action.grant-privilege"),action:e.grantPrivilege},{text:Ap("action.revoke-privilege"),action:e.revokePrivilege}]}];return(0,d.jsx)(ko.r,{items:t,renderSwitcher:e=>(0,d.jsxs)(vn.$,{...e,children:[Ap("button.new-sql"),(0,d.jsx)(vn.$.Icon,{children:(0,d.jsx)(Km.A,{})})]}),popupProps:{placement:"top"}})}const Rp=H.F.injectEndpoints({endpoints:e=>({getCodeAssistSuggestions:e.query({queryFn:async e=>{try{if(window.api.codeAssist){return{data:await window.api.codeAssist.getCodeAssistSuggestions(e)}}throw new Error("Method is not implemented.")}catch{return{data:{items:[]}}}}}),acceptSuggestion:e.mutation({queryFn:async e=>{try{if(window.api.codeAssist){return{data:await window.api.codeAssist.sendCodeAssistTelemetry({Accepted:{AcceptedText:e.acceptedText,ConvertedText:e.acceptedText,Timestamp:Date.now(),RequestId:e.requestId}})}}throw new Error("Method is not implemented.")}catch(t){return{error:t}}}}),discardSuggestion:e.mutation({queryFn:async e=>{try{if(window.api.codeAssist){return{data:await window.api.codeAssist.sendCodeAssistTelemetry({Discarded:{RequestId:e.requestId,Timestamp:Date.now(),DiscardReason:"OnCancel",DiscardedText:e.suggestionText,CacheHitCount:e.hitCount}})}}throw new Error("Method is not implemented.")}catch(t){return{error:t}}}}),ignoreSuggestion:e.mutation({queryFn:async e=>{try{if(window.api.codeAssist){return{data:await window.api.codeAssist.sendCodeAssistTelemetry({Ignored:{RequestId:e.requestId,Timestamp:Date.now(),IgnoredText:e.suggestionText}})}}throw new Error("Method is not implemented.")}catch(t){return{error:t}}}}),sendUserQueriesData:e.mutation({queryFn:async e=>{try{if(window.api.codeAssist){return{data:await window.api.codeAssist.sendCodeAssistOpenTabs(e)}}throw new Error("Method is not implemented.")}catch(t){return{error:t}}}})}),overrideExisting:"throw"}),kp={automaticLayout:!0,selectOnLineNumbers:!0,minimap:{enabled:!1},fixedOverflowWidgets:!0};const Op=new class{constructor(){this.query=void 0,this.query=null}registerQuery(e){this.query=e}abortQuery(){this.query&&(this.query.abort(),this.query=null)}};var Mp=a(54503),Lp=a(90851),zp=a(27738),qp=a(1155);const Fp=(0,c.cn)("ydb-query-settings-description"),$p=({querySettings:e,prefix:t})=>(0,d.jsxs)("div",{className:Fp("message"),children:[t,Object.entries(e).map((([e,t],a,n)=>(0,d.jsxs)("span",{className:Fp("description-item"),children:[`${e}: ${t}`,a<n.length-1?", ":null]},a)))]}),Up=(0,c.cn)("ydb-query-editor-button"),Qp={Run:e=>(0,d.jsxs)(vn.$,{...e,className:Up("run-button"),children:[(0,d.jsx)(ct.I,{data:Mp.A,size:16}),em("action.run")]}),Stop:e=>(0,d.jsxs)(vn.$,{...e,className:Up("stop-button",{error:e.error}),children:[(0,d.jsx)(ct.I,{data:st.A,size:16}),em("action.stop")]}),Explain:e=>(0,d.jsxs)(vn.$,{...e,className:Up("explain-button"),children:[(0,d.jsx)(ct.I,{data:Lp.A,size:16}),em("action.explain")]}),Settings:({onClick:e,isLoading:t})=>{const{changedCurrentSettings:a,changedCurrentSettingsDescriptions:n}=xm(),r=a.length>0?{view:"outlined-info",selected:!0}:null;return(0,d.jsx)(qp.m,{disabled:0===a.length,content:(0,d.jsx)($p,{prefix:em("gear.tooltip"),querySettings:n}),openDelay:0,placement:["top-start"],children:(0,d.jsxs)(vn.$,{onClick:e,loading:t,className:Up("gear-button"),...r,children:[(0,d.jsx)(ct.I,{data:zp.A,size:16}),r?(0,d.jsxs)("div",{className:Up("changed-settings"),children:["(",a.length,")"]}):null]})})}},Bp=(0,c.cn)("ydb-query-editor-controls"),Hp=({type:e,isHighlighted:t,isLoading:a,isStoppable:n,controlsDisabled:r,onActionClick:s,renderStopButton:i})=>{if(n&&a&&t)return i();const o="run"===e?Qp.Run:Qp.Explain;return(0,d.jsx)(o,{onClick:s,disabled:r,loading:a,view:t?"action":void 0})},Gp=({disabled:e,isLoading:t,highlightedAction:a,queryId:r,tenantName:s,isStreamingEnabled:i,handleSendExecuteClick:o,onSettingsButtonClick:l,handleGetExplainQueryClick:c})=>{const u=(0,X.N4)(wo.Wp),[m,p]=Jm.useCancelQueryMutation(),[h,v]=n.useState(t),g=n.useRef(null),y=n.useRef(null),[x,b]=n.useState(!1),f=n.useCallback((async()=>{if(r)try{i?Op.abortQuery():r&&await m({queryId:r,database:s}).unwrap()}catch{ht({name:"stop-error",title:"",content:em("toaster.stop-error"),type:"error",autoHiding:5e3}),b(!0),y.current&&window.clearTimeout(y.current),y.current=window.setTimeout((()=>{b(!1)}),500)}}),[i,r,m,s]),T="execute"===a,j="explain"===a,S=n.useCallback((()=>{g.current&&window.clearTimeout(g.current),v(!1),g.current=window.setTimeout((()=>{v(!0)}),400)}),[]),N=n.useCallback((()=>{o(u),S()}),[o,u,S]),E=n.useCallback((()=>{c(u),S()}),[c,u,S]);n.useEffect((()=>()=>{g.current&&window.clearTimeout(g.current),y.current&&window.clearTimeout(y.current)}),[]);const w=e||!u,C=()=>(0,d.jsx)(Qp.Stop,{loading:p.isLoading,error:x,onClick:f,view:"action"});return(0,d.jsxs)("div",{className:Bp(),children:[(0,d.jsxs)("div",{className:Bp("left"),children:[(0,d.jsx)(Hp,{type:"run",isHighlighted:T,isLoading:t,isStoppable:h,controlsDisabled:w,onActionClick:N,renderStopButton:C}),(0,d.jsx)(Hp,{type:"explain",isHighlighted:j,isLoading:t,isStoppable:h,controlsDisabled:w,onActionClick:E,renderStopButton:C}),(0,d.jsx)(Qp.Settings,{onClick:l,isLoading:t})]}),(0,d.jsxs)("div",{className:Bp("right"),children:[(0,d.jsx)(_p,{}),(0,d.jsx)(Uo,{buttonProps:{disabled:e}})]})]})};var Wp=a(64280),Vp=a(5744),Jp=a(80953);function Kp(e){var t;if(function(e){return"object"===typeof e&&null!==e&&"name"in e&&"AbortError"===e.name}(e))return!0;if(function(e){return"object"===typeof e&&null!==e&&"isCancelled"in e}(e)&&e.isCancelled)return!0;const a=(0,Nt.KH)(e);return(0,Nt.We)(a)&&"Query was cancelled"===(null===(t=a.error)||void 0===t?void 0:t.message)}const Yp=(0,c.cn)("kv-query-execution-status"),Zp=({className:e,error:t,loading:a})=>{let r,s,i,o;const{startTime:l,endTime:c}=(0,X.N4)(wo.$u),[u,m]=n.useState(l?(c||Date.now())-l:0),p=Kp(t),h=n.useCallback((()=>{if(l){const e=c||Date.now();m(e-l)}}),[c,l]);n.useEffect((()=>{let e;return h(),a?e=setInterval(h,Z.KF):clearInterval(e),()=>{clearInterval(e)}}),[a,h]);const v=n.useMemo((()=>u>Z.Jg*Z.KF?(0,nt.p0)(u).format("hh:mm:ss"):(0,nt.p0)(u).format("mm:ss")),[u]);if(a)i="info",o="info-heavy",r=(0,d.jsx)(Jp.t,{size:"xs"}),s="Running";else if((0,ee.F0)(t)&&"ECONNABORTED"===t.code)i="danger",o="danger-heavy",r=(0,d.jsx)(ct.I,{data:Wp.A}),s="Connection aborted";else if(p)i="warning",o="warning-heavy",r=(0,d.jsx)(ct.I,{data:st.A,className:Yp("result-status-icon",{error:!0})}),s="Stopped";else{const e=Boolean(t);i=e?"danger":"success",o=e?"danger-heavy":"positive-heavy",r=(0,d.jsx)(ct.I,{data:e?Yi.A:Vp.A,className:Yp("result-status-icon",{error:e})}),s=e?"Failed":"Completed"}return(0,d.jsx)(Ct.J,{theme:i,size:"m",className:Yp(null,e),icon:r,value:v,children:(0,d.jsx)(it.E,{color:o,children:s})})};var Xp=a(6156);const eh=(0,c.cn)("ydb-query-settings-banner");function th(){const{isBannerShown:e,changedLastExecutionSettingsDescriptions:t,closeBanner:a}=xm();return e?(0,d.jsx)(Xp.F,{className:eh(),theme:"info",align:"baseline",style:{paddingTop:11,paddingBottom:11},message:(0,d.jsx)($p,{prefix:em("banner.query-settings.message"),querySettings:t}),onClose:a}):null}const ah=(0,c.cn)("ydb-query-stopped-banner");function nh(){const[e,t]=(0,X.iK)(Z.J0),a=n.useCallback((()=>{t(!0)}),[t]);return e?null:(0,d.jsx)(Xp.F,{className:ah(),theme:"normal",align:"center",style:{paddingTop:11,paddingBottom:11},message:(0,d.jsx)("div",{className:ah("message"),children:em("banner.query-stopped.message")}),layout:"horizontal",actions:(0,d.jsx)(Xp.F.Actions,{children:(0,d.jsx)(Xp.F.Action,{view:"normal",onClick:a,children:em("banner.query-stopped.never-show")})})})}function rh(e){return e.replaceAll("\\","\\\\").replaceAll("\n","\\n").replaceAll("\r","\\r").replaceAll("\t","\\t")}var sh=a(6376);const ih=(0,c.cn)("ydb-query-ast"),oh={automaticLayout:!0,selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},wrappingIndent:"indent"};function lh({ast:e,theme:t}){return(0,d.jsx)("div",{className:ih(),children:(0,d.jsx)(sh.default,{language:"s-expression",value:e,options:oh,theme:`vs-${t}`})})}var ch=a(73253);function dh(e){const t=n.useRef(null),a=n.useId(),{data:r,opts:s,shapes:i}=e;return n.useEffect((()=>{const e=t.current;if(!e)return;e.innerHTML="",e.style.setProperty("width","100vw"),e.style.setProperty("height","100vh");const a=(0,ch.og)(e.id,r,s,i);return a.render(),e.style.setProperty("width","100%"),e.style.setProperty("height","100%"),()=>{a.destroy()}}),[r,s,i]),(0,d.jsx)("div",{id:a,ref:t,style:{overflow:"auto"}})}const uh={renderNodeTitle:e=>{const t=e.name.split("|");return t.length>1?t[1]:e.name},textOverflow:"normal",initialZoomFitsCanvas:!0},mh={node:ch.SO};function ph(e){return(0,d.jsx)(dh,{...e,opts:uh,shapes:mh})}const hh=JSON.parse('{"description.graph-is-not-supported":"Graph can not be rendered","description.empty-result":"There is no {{activeSection}} for the request","action.result":"Result","action.stats":"Stats","action.schema":"Computation Graph","action.explain-plan":"Explain","action.json":"JSON","action.ast":"AST","action.copy":"Copy {{activeSection}}","trace":"Trace","title.truncated":"Truncated","title.result":"Result","tooltip_actions":"Actions","text_open-execution-plan":"Open Execution Plan","text_open-execution-plan_description":"New tab","text_download":"Download Execution Plan","text_download_description":"SVG","text_diagnostics":"Download Diagnostics","text_diagnostics_description":"JSON","text_error-plan-svg":"Error: {{error}}","error.title":"Query Failed","error.description":"An error occurred, please see the Result tab for details","stopped.title":"Query stopped","stopped.description":"Query was stopped"}'),vh=(0,Be.g4)("ydb-execute-result",{en:hh}),gh=(0,c.cn)("ydb-query-result-stub-message");function yh({message:e}){return(0,d.jsx)("div",{className:gh(null),children:e})}const xh=(0,c.cn)("ydb-query-explain-graph");function bh({explain:e={},theme:t}){const{links:a,nodes:n}=e;return a&&n&&n.length?(0,d.jsx)("div",{className:xh("canvas-container"),children:(0,d.jsx)(ph,{data:{links:a,nodes:n}},t)}):(0,d.jsx)(yh,{message:vh("description.graph-is-not-supported")})}var fh=a(7450);const Th=(0,c.cn)("query-info-dropdown");var jh=a(112),Sh=a(92159);const Nh=H.F.injectEndpoints({endpoints:e=>({planToSvgQuery:e.query({queryFn:async({plan:e,database:t},{signal:a})=>{try{return{data:await window.api.viewer.planToSvg({database:t,plan:e},{signal:a})}}catch(n){return{error:n}}}})}),overrideExisting:"throw"});function Eh(e,t){const a=document.createElement("a");a.href=e,a.download=t,document.body.appendChild(a),a.click(),document.body.removeChild(a)}const wh=JSON.parse('{"unknown-error":"An unknown error occurred"}'),Ch=(0,Be.g4)("ydb-errors",{en:wh});function Ph({title:e,description:t}){return(0,d.jsxs)("div",{className:Th("menu-item-content"),children:[(0,d.jsx)(it.E,{variant:"body-1",children:e}),(0,d.jsx)(it.E,{variant:"body-1",color:"secondary",children:t})]})}function Ih({queryResultsInfo:e,database:t,hasPlanToSvg:a,error:r}){const[s,i]=n.useState(null),[o,{isLoading:l}]=Nh.useLazyPlanToSvgQueryQuery();n.useEffect((()=>()=>{s&&URL.revokeObjectURL(s)}),[s]);return{isLoading:l,items:n.useMemo((()=>{const n=[],l=e.plan;if(l&&a){const e=()=>s?Promise.resolve(s):o({plan:l,database:t}).unwrap().then((e=>{const t=new Blob([e],{type:"image/svg+xml"}),a=URL.createObjectURL(t);return i(a),a})).catch((e=>{const t=function(e){if("string"===typeof e)return e;if(!e)return Ch("unknown-error");if((0,ee.TX)(e))return e.message;if("object"===typeof e&&"data"in e){var t;const a=e;if(null!==(t=a.data)&&void 0!==t&&t.message)return a.data.message;if("string"===typeof a.data)return a.data}return e instanceof Error?e.message:JSON.stringify(e)}(e);return ht({title:vh("text_error-plan-svg",{error:t}),name:"plan-svg-error",type:"error"}),null})),a=()=>{e().then((e=>{e&&window.open(e,"_blank")}))},r=()=>{e().then((e=>{e&&Eh(e,"query-plan.svg")}))};n.push([{text:(0,d.jsx)(Ph,{title:vh("text_open-execution-plan"),description:vh("text_open-execution-plan_description")}),icon:(0,d.jsx)(jh.A,{className:Th("icon")}),action:a,className:Th("menu-item")},{text:(0,d.jsx)(Ph,{title:vh("text_download"),description:vh("text_download_description")}),icon:(0,d.jsx)(Sh.A,{className:Th("icon")}),action:r,className:Th("menu-item")}])}if(e){const a=()=>{const a=r?(0,Nt.KH)(r):void 0;((e,t)=>{const a=new Blob([JSON.stringify(e,null,2)],{type:"application/json"}),n=URL.createObjectURL(a);Eh(n,`${t}.json`),URL.revokeObjectURL(n)})({...e,database:t,...a&&{error:a}},`query-diagnostics-${(new Date).getTime()}`)};n.push([{text:(0,d.jsx)(Ph,{title:vh("text_diagnostics"),description:vh("text_diagnostics_description")}),icon:(0,d.jsx)(Sh.A,{className:Th("icon")}),action:a,className:Th("menu-item")}])}return n}),[e,a,s,o,t,r])}}function Dh({queryResultsInfo:e,database:t,hasPlanToSvg:a,error:n}){const{isLoading:r,items:s}=Ih({queryResultsInfo:e,database:t,hasPlanToSvg:a,error:n});return s.length?(0,d.jsx)(ko.r,{popupProps:{placement:["bottom-end","left"]},switcherWrapperClassName:Th("query-info-switcher-wrapper"),renderSwitcher:e=>(0,d.jsx)(lt.m,{title:vh("tooltip_actions"),children:(0,d.jsx)(vn.$,{view:"flat-secondary",loading:r,disabled:r,...e,children:(0,d.jsx)(vn.$.Icon,{children:(0,d.jsx)(fh.A,{})})})}),items:s,size:"xl"}):null}const Ah=(0,c.cn)("ydb-query-json-viewer");function _h({data:e}){const t=Pn(e);return(0,d.jsx)("div",{className:Ah(),children:(0,d.jsx)("div",{className:Ah("tree"),children:(0,d.jsx)(mr,{value:t})})})}var Rh=a(89954);const kh=(0,c.cn)("ydb-query-result-error");function Oh({error:e}){const t=(0,Nt.KH)(e);return!t||Kp(e)?null:(0,ee.TX)(e)?(0,d.jsx)("div",{className:kh("message"),children:e.message}):"object"===typeof t?(0,d.jsx)("div",{className:kh("message"),children:(0,d.jsx)(Rh.O,{data:t})}):(0,d.jsx)("div",{className:kh("message"),children:t})}const Mh=(0,c.cn)("ydb-query-result-sets-viewer");function Lh(e){const{selectedResultSet:t,setSelectedResultSet:a,resultSets:n,error:r}=e,s=null===n||void 0===n?void 0:n[t];return(0,d.jsxs)("div",{className:Mh("result-wrapper"),children:[e.error?(0,d.jsx)(Oh,{error:r}):null,null!==n&&void 0!==n&&n.length?(null===n||void 0===n?void 0:n.length)>1?(()=>{const e=(null===n||void 0===n?void 0:n.map(((e,t)=>{var a,r;const s=null===n||void 0===n?void 0:n[t];return{id:String(t),title:(0,d.jsxs)(ot.s,{gap:2,alignItems:"center",children:[(0,d.jsx)(it.E,{children:`Result #${t+1}${null!==n&&void 0!==n&&null!==(a=n[t])&&void 0!==a&&a.truncated?"(T)":""}`}),(0,d.jsx)(it.E,{color:"secondary",children:(null===(r=s.result)||void 0===r?void 0:r.length)||0})]})}})))||[];return(0,d.jsx)(ne.t,{className:Mh("tabs"),size:"l",items:e,activeTab:String(t),onSelectTab:e=>a(Number(e))})})():(()=>{var e;const t=null===n||void 0===n?void 0:n[0];return(0,d.jsxs)(ot.s,{gap:2,alignItems:"center",className:Mh("title"),children:[(0,d.jsx)(it.E,{children:null!==t&&void 0!==t&&t.truncated?"Truncated":"Result"}),(0,d.jsx)(it.E,{color:"secondary",children:(null===t||void 0===t||null===(e=t.result)||void 0===e?void 0:e.length)||0})]})})():null,s?(0,d.jsx)("div",{className:Mh("result"),children:(0,d.jsx)(Hm,{settings:e.tableSettings,data:s.result,columns:s.columns})}):null]})}var zh=a(36590),qh=a(79737),Fh=a(79685);const $h=(0,c.cn)("ydb-query-simplified-plan");function Uh({value:e,formatter:t}){if(!(0,ks.kf)(e))return;const a=t(Number(e));return(0,d.jsx)("div",{className:$h("metrics-cell"),children:a})}var Qh=a(33705);const Bh={Table:"var(--g-color-text-info)",Predicate:"var(--g-color-text-positive)",Condition:"var(--g-color-text-utility)"};function Hh(e){return e in Bh?Bh[e]:"var(--g-color-text-secondary)"}function Gh(e={}){const t=[],a=Object.entries(e);if(1===a.length){const e=a[0][1],n=Hh(a[0][0]);t.push((0,d.jsx)("span",{style:{color:n},children:(0,he.vN)(e)},"param"))}else{const a=function(e){const t=[],{Table:a,Predicate:n,Condition:r,...s}=e;return a&&t.push(["Table",a]),n&&t.push(["Predicate",n]),r&&t.push(["Condition",r]),t.concat(Object.entries(s))}(e);for(let e=0;e<a.length;e++){const[n,r]=a[e],s=Hh(n);e>0&&t.push(", "),t.push((0,d.jsxs)("span",{style:{color:s},children:[n,": ",(0,he.vN)(r)]},e))}}return t}function Wh({params:e}){return e?(0,d.jsxs)("span",{className:$h("operation-params"),children:["(",Gh(e),")"]}):null}function Vh({modifiers:e,left:t}){return(0,d.jsx)("div",{className:$h("divider",e),style:{left:t}})}function Jh({row:e,depth:t=0,params:a}){const{name:r,operationParams:s,lines:i=""}=a,o=e.getLeafRows().length>0&&e.getIsExpanded(),l=n.useMemo((()=>function(e,t){const a=e.split(".").map(Number),n=[];for(let r=0;r<a.length;r++)r===a.length-1&&0!==r&&(a[r]?n.push((0,d.jsx)(Vh,{modifiers:{horizontal:!0},left:10+25*(r-1)},"last")):n.push((0,d.jsx)(Vh,{modifiers:{last:!0},left:9+25*(r-1)},"last"))),r===a.length-1&&t&&n.push((0,d.jsx)(Vh,{modifiers:{first:!0},left:9+25*r},"first")),a[r]&&n.push((0,d.jsx)(Vh,{left:9+25*(r-1)},r));return n}(i,o)),[i,o]);return(0,d.jsxs)("div",{style:{paddingLeft:25*t},className:$h("operation-name"),children:[l,(0,d.jsxs)(ot.s,{gap:1,alignItems:"center",className:$h("operation-content"),children:[e.getCanExpand()&&(0,d.jsx)(vn.$,{view:"flat",size:"xs",onClick:e.getToggleExpandedHandler(),children:(0,d.jsx)(vn.$.Icon,{children:(0,d.jsx)(Qh.I,{direction:e.getIsExpanded()?"bottom":"right",size:14})})}),(0,d.jsx)("div",{className:$h("operation-name-content"),children:(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:$h("operation-name"),children:r}),"\xa0",(0,d.jsx)(Wh,{params:s})]})})]})]})}function Kh(e){return(0,d.jsx)(Uh,{value:e.getValue(),formatter:e=>e<1e8?(0,Fh.p)(e).format():(0,ks.z0)(e,1)})}const Yh=[{accessorKey:"name",accessorFn:function(e){return{name:e.name,operationParams:e.operationParams,lines:e.lines}},header:()=>(0,d.jsx)(qh.A,{children:"Operation"}),size:600,cell:e=>(0,d.jsx)(Jh,{row:e.row,depth:e.row.depth,params:e.getValue()})},{accessorKey:"aCpu",header:()=>(0,d.jsx)(qh.A,{children:"A-Cpu"}),size:90,minSize:90,cell:function(e){return(0,d.jsx)(Uh,{value:e.getValue(),formatter:e=>(0,vt.Xo)(Math.round(e))})},meta:{align:"right",verticalAlign:"top"}},{accessorKey:"aRows",header:()=>(0,d.jsx)(qh.A,{children:"A-Rows"}),size:90,minSize:90,cell:Kh,meta:{align:"right",verticalAlign:"top"}},{accessorKey:"eCost",header:()=>(0,d.jsx)(qh.A,{children:"E-Cost"}),size:90,minSize:90,cell:Kh,meta:{align:"right",verticalAlign:"top"}},{accessorKey:"eRows",header:()=>(0,d.jsx)(qh.A,{children:"E-Rows"}),size:90,minSize:90,cell:Kh,meta:{align:"right",verticalAlign:"top"}},{accessorKey:"eSize",header:()=>(0,d.jsx)(qh.A,{children:"E-Size"}),size:90,minSize:90,cell:Kh,meta:{align:"right",verticalAlign:"top"}}];function Zh({plan:e}){const t=n.useMemo((()=>function(e,t=""){if(!e)return[];const a=[{items:e,prefix:t,parentIndex:-1,parentArray:[]}],n=[];for(;a.length>0;){const{items:e,prefix:t,parentIndex:r,parentArray:s}=a.pop(),i=[];for(let n=0;n<e.length;n++){const r={...e[n]},s=n<e.length-1?1:0;let o=`${t}.${s}`;t||(o=String(s)),r.lines=o,i.push(r),r.children&&a.push({items:r.children,prefix:o,parentIndex:n,parentArray:i})}-1===r?n.push(...i):s[r].children=i}return n}(e)),[e]),[a,r]=n.useState(!0),s=(0,zh.K)({columns:Yh,data:t,getSubRows:e=>e.children,enableExpanding:!0,onExpandedChange:r,state:{expanded:a},enableColumnResizing:!0,columnResizeMode:"onChange"});return(0,d.jsx)(qh.X,{wrapperClassName:$h(),table:s,stickyHeader:!0,width:"max"})}function Xh({traceId:e}){const{traceView:t}=(0,ji.Zd)(),a=null!==t&&void 0!==t&&t.url?(n=t.url,r={traceId:e},n.replace(/\${(\w+)}/g,((e,t)=>r[t]||e))):"";var n,r;return a?(0,d.jsxs)(vn.$,{view:"flat-info",href:a,target:"_blank",children:[vh("trace"),(0,d.jsx)(vn.$.Icon,{children:(0,d.jsx)(jh.A,{})})]}):null}const ev=(0,c.cn)("ydb-query-result"),tv="result",av="schema",nv="simplified",rv="json",sv="stats",iv="ast",ov={get result(){return vh("action.result")},get schema(){return vh("action.schema")},get simplified(){return vh("action.explain-plan")},get json(){return vh("action.json")},get stats(){return vh("action.stats")},get ast(){return vh("action.ast")}},lv=["result","schema","simplified","stats"],cv=["schema","json","simplified","ast"];function dv({result:e,resultType:t="execute",isResultsCollapsed:a,theme:r,tenantName:s,queryText:i,tableSettings:l,onCollapseResults:c,onExpandResults:u}){var m;const p=(0,X.YQ)(),h="execute"===t,v="explain"===t,[g,y]=n.useState(0),[x,b]=n.useState((()=>h?tv:av)),[f]=(0,X.iK)(Z.lr),{error:T,isLoading:j,data:S={}}=e,{preparedPlan:N,simplifiedPlan:E,stats:w,resultSets:C,ast:P}=S;n.useEffect((()=>{"execute"!==t||lv.includes(x)||b("result"),"explain"!==t||cv.includes(x)||b("schema")}),[x,t]);const I=n.useMemo((()=>{let e=[];return h?e=lv:v&&(e=cv),e.map((e=>({value:e,content:ov[e]})))}),[h,v]);n.useEffect((()=>()=>{p((0,Cm.sM)())}),[p]);const D=e=>{b(e)},A=()=>{switch(x){case tv:{var e;const t=null===S||void 0===S||null===(e=S.resultSets)||void 0===e?void 0:e[g],a=function(e){if(null===e||void 0===e||!e.length)return"";const t=Object.keys(e[0]),a=[t.map(rh).join("\t")];for(const n of e){const e=[];for(const a of t){const t=n[a];e.push(rh("object"===typeof t?JSON.stringify(t):`${t}`))}a.push(e.join("\t"))}return a.join("\n")}(null===t||void 0===t?void 0:t.result);return a}case rv:return null===N||void 0===N?void 0:N.pristine;case nv:return null===E||void 0===E?void 0:E.pristine;case sv:return w;case iv:return P;default:return}},_=()=>{if(j)return null;const e=A(),t=(0,he.vN)(e);return t?(0,d.jsx)(pn.b,{text:t,view:"flat-secondary",title:vh("action.copy",{activeSection:x})}):null},R=()=>(0,d.jsx)(yh,{message:vh("description.empty-result",{activeSection:ov[x]})}),k=e=>(0,d.jsxs)(ot.s,{justifyContent:"center",alignItems:"center",width:"100%",gap:8,children:[(0,d.jsx)(dd.v,{name:"error",className:ev("illustration")}),(0,d.jsxs)(ot.s,{direction:"column",gap:2,children:[(0,d.jsx)(it.E,{variant:"subheader-2",children:vh(e?"stopped.title":"error.title")}),(0,d.jsx)(it.E,{color:"complementary",children:vh(e?"stopped.description":"error.description")})]})]}),O=Kp(T);return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsxs)("div",{className:ev("controls"),children:[(0,d.jsxs)("div",{className:ev("controls-left"),children:[I.length&&x?(0,d.jsx)(fu.a,{options:I,value:x,onUpdate:D}):null,(0,d.jsx)(Zp,{error:T,loading:j}),null!==S&&void 0!==S&&S.traceId&&h?(0,d.jsx)(Xh,{traceId:S.traceId}):null]}),(0,d.jsxs)("div",{className:ev("controls-right"),children:[j||Kp(T)?null:(0,d.jsx)(Dh,{queryResultsInfo:{queryText:i,ast:S.ast,stats:S.stats,plan:S.plan},error:T,database:s,hasPlanToSvg:Boolean((null===S||void 0===S?void 0:S.plan)&&f&&h)}),_(),(0,d.jsx)(Pm,{}),(0,d.jsx)(Em,{onCollapse:c,onExpand:u,isCollapsed:a,initialDirection:"bottom"})]})]}),j||O?null:(0,d.jsx)(th,{}),O&&null!==(m=S.resultSets)&&void 0!==m&&m.length?(0,d.jsx)(nh,{}):null,(0,d.jsx)(o.r,{loading:j&&(!S.resultSets||"result"!==x),children:(0,d.jsx)(Mm,{className:ev("result"),children:(()=>{const e=Kp(T);return x===tv?!T||!e||null!==C&&void 0!==C&&C.length?(0,d.jsx)(Lh,{resultSets:C,error:T,selectedResultSet:g,tableSettings:l,setSelectedResultSet:y}):k(e):T?h||e?k(e):(0,d.jsx)(Oh,{error:T}):x===av?null!==N&&void 0!==N&&null!==(t=N.nodes)&&void 0!==t&&t.length?(0,d.jsx)(bh,{theme:r,explain:N}):R():x===rv?null!==N&&void 0!==N&&N.pristine?(0,d.jsx)(_h,{data:null===N||void 0===N?void 0:N.pristine}):R():x===nv?null!==E&&void 0!==E&&null!==(a=E.plan)&&void 0!==a&&a.length?(0,d.jsx)(Zh,{plan:E.plan}):R():x===sv?w?(0,d.jsx)(_h,{data:w}):R():x===iv?P?(0,d.jsx)(lh,{ast:P,theme:r}):R():null;var t,a})()})})]})}var uv=a(16122),mv=a(23971);const pv=()=>-1,hv=(0,c.cn)("ydb-query-settings-select");function vv(e){return(0,d.jsx)("div",{className:hv("selector"),children:(0,d.jsx)(le.l,{id:e.id,disabled:e.disabled,options:e.settingOptions,value:[e.setting],onUpdate:t=>{e.onUpdateSetting(t[0])},getOptionHeight:pv,popupClassName:hv("popup"),renderOption:e=>(0,d.jsxs)("div",{className:hv("item",{type:e.value}),children:[(0,d.jsxs)("div",{className:hv("item-title"),children:[e.content,e.isDefault?lm("description.default"):""]}),e.text&&(0,d.jsx)("span",{className:hv("item-description"),children:e.text})]}),width:"max"})})}const gv=(0,c.cn)("ydb-query-settings-dialog");function yv(){const e=(0,X.YQ)(),t=(0,X.N4)(Oo.xM),[a,r]=(0,X.XS)(),s=n.useCallback((()=>{e((0,Oo.NJ)("idle"))}),[e]),i=n.useCallback((e=>{r(e),s()}),[s,r]);return(0,d.jsxs)(Hn.l,{open:"settings"===t,size:"s",onClose:s,className:gv(),hasCloseButton:!1,children:[(0,d.jsx)(Hn.l.Header,{caption:lm("action.settings")}),(0,d.jsx)(xv,{initialValues:a,onSubmit:i,onClose:s})]})}function xv({initialValues:e,onSubmit:t,onClose:a}){const{control:r,handleSubmit:s,formState:{errors:i}}=(0,mv.mN)({defaultValues:e,resolver:(0,uv.u)(Nt.id)}),[o]=(0,X.iK)(Z.lr),l=(0,ie.Oi)();return(0,d.jsxs)("form",{onSubmit:s(t),children:[(0,d.jsxs)(Hn.l.Body,{className:gv("dialog-body"),children:[(0,d.jsxs)(ot.s,{direction:"row",alignItems:"flex-start",className:gv("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"queryMode",className:gv("field-title"),children:pm.queryMode.title}),(0,d.jsx)("div",{className:gv("control-wrapper",{queryMode:!0}),children:(0,d.jsx)(mv.xI,{name:"queryMode",control:r,render:({field:e})=>(0,d.jsx)(vv,{id:"queryMode",setting:e.value,onUpdateSetting:e.onChange,settingOptions:pm.queryMode.options})})})]}),(0,d.jsxs)(ot.s,{direction:"row",alignItems:"flex-start",className:gv("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"timeout",className:gv("field-title"),children:pm.timeout.title}),(0,d.jsx)("div",{className:gv("control-wrapper"),children:(0,d.jsx)(mv.xI,{name:"timeout",control:r,render:({field:e})=>{var t,a;return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(Fn.k,{id:"timeout",type:"number",...e,value:null===(t=e.value)||void 0===t?void 0:t.toString(),className:gv("timeout"),placeholder:"60",validationState:i.timeout?"invalid":void 0,errorMessage:null===(a=i.timeout)||void 0===a?void 0:a.message,errorPlacement:"inside"}),(0,d.jsx)("span",{className:gv("timeout-suffix"),children:lm("form.timeout.seconds")})]})}})})]}),l&&(0,d.jsxs)(ot.s,{direction:"row",alignItems:"flex-start",className:gv("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"tracingLevel",className:gv("field-title"),children:pm.tracingLevel.title}),(0,d.jsx)("div",{className:gv("control-wrapper"),children:(0,d.jsx)(mv.xI,{name:"tracingLevel",control:r,render:({field:e})=>(0,d.jsx)(vv,{id:"tracingLevel",setting:e.value,onUpdateSetting:e.onChange,settingOptions:pm.tracingLevel.options})})})]}),(0,d.jsxs)(ot.s,{direction:"row",alignItems:"flex-start",className:gv("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"transactionMode",className:gv("field-title"),children:pm.transactionMode.title}),(0,d.jsx)("div",{className:gv("control-wrapper",{transactionMode:!0}),children:(0,d.jsx)(mv.xI,{name:"transactionMode",control:r,render:({field:e})=>(0,d.jsx)(vv,{id:"transactionMode",setting:e.value,onUpdateSetting:e.onChange,settingOptions:pm.transactionMode.options})})})]}),(0,d.jsxs)(ot.s,{direction:"row",alignItems:"flex-start",className:gv("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"statisticsMode",className:gv("field-title"),children:pm.statisticsMode.title}),(0,d.jsx)(qp.m,{className:gv("statistics-mode-tooltip"),disabled:!o,openDelay:0,content:lm("tooltip_plan-to-svg-statistics"),children:(0,d.jsx)("div",{className:gv("control-wrapper",{statisticsMode:!0}),children:(0,d.jsx)(mv.xI,{name:"statisticsMode",control:r,render:({field:e})=>(0,d.jsx)(vv,{id:"statisticsMode",disabled:o,setting:e.value,onUpdateSetting:e.onChange,settingOptions:pm.statisticsMode.options})})})})]}),(0,d.jsxs)(ot.s,{direction:"row",alignItems:"flex-start",className:gv("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"limitRows",className:gv("field-title"),children:pm.limitRows.title}),(0,d.jsx)("div",{className:gv("control-wrapper"),children:(0,d.jsx)(mv.xI,{name:"limitRows",control:r,render:({field:e})=>{var t,a;return(0,d.jsx)(Fn.k,{id:"limitRows",type:"number",...e,value:null===(t=e.value)||void 0===t?void 0:t.toString(),className:gv("limit-rows"),placeholder:"10000",validationState:i.limitRows?"invalid":void 0,errorMessage:null===(a=i.limitRows)||void 0===a?void 0:a.message,errorPlacement:"inside"})}})})]})]}),(0,d.jsx)(Hn.l.Footer,{textButtonApply:lm("button-done"),textButtonCancel:lm("button-cancel"),onClickButtonCancel:a,propsButtonApply:{type:"submit"},renderButtons:(e,t)=>(0,d.jsxs)("div",{className:gv("buttons-container"),children:[(0,d.jsx)(Ol.N,{href:"https://ydb.tech/docs",target:"_blank",className:gv("documentation-link"),children:lm("docs")}),(0,d.jsxs)("div",{className:gv("main-buttons"),children:[t,e]})]})})]})}var bv=a(52400);const fv=(0,a(99006)._)((async()=>({Editor:(await Promise.resolve().then(a.bind(a,6376))).default})),"Editor");var Tv=a(41614),jv=a(67913);const Sv=JSON.parse('{"context_syntax-error":"Syntax error"}'),Nv=(0,Be.g4)("ydb-monaco",{en:Sv}),Ev=(0,nm.debounce)((function(){var e;const t=null===(e=window.ydbEditor)||void 0===e?void 0:e.getModel();if(!t)return void console.error("unable to retrieve model when highlighting errors");const a=(0,Tv.kh)(t.getValue()).errors;if(!a.length)return void Cv();const n=a.map((e=>({message:Nv("context_syntax-error"),source:e.message,severity:jv.MarkerSeverity.Error,startLineNumber:e.startLine,startColumn:e.startColumn+1,endLineNumber:e.endLine,endColumn:e.endColumn+1})));jv.editor.setModelMarkers(t,"ydb",n)}),500);function wv(){const e=(t=Ev,n.useEffect((()=>()=>{t.cancel()}),[t]),t);var t;return n.useCallback((()=>{Cv(),e()}),[e])}function Cv(){jv.editor.removeAllMarkers("ydb")}const Pv="navigation";function Iv({changeUserInput:e,theme:t,handleSendExecuteClick:a,handleGetExplainQueryClick:r}){const s=(0,X.N4)(wo.Wp),i=(0,X.YQ)(),[o,l]=n.useState(),c=(0,X.N4)(wo.py),[u]=(0,X.iK)(Z.bz),m=function(){const[e]=(0,X.iK)(Z.LK),[t]=(0,X.iK)(Z.IO);return n.useMemo((()=>{const a=Boolean(e);return{quickSuggestions:a,suggestOnTriggerCharacters:a,acceptSuggestionOnEnter:t?"on":"off",...kp}}),[e,t])}(),p=wv(),[h]=(0,X.iK)(Z.zk),v=(0,X.A5)((()=>c&&0!==c.length?c[c.length-1].queryText:"")),g=(0,X.A5)((()=>{h===Nt.x5.explain?r(s):a(s)})),{monacoGhostConfig:y,prepareUserQueriesCache:x}=function(){const[e]=Rp.useLazyGetCodeAssistSuggestionsQuery(),[t]=Rp.useAcceptSuggestionMutation(),[a]=Rp.useDiscardSuggestionMutation(),[r]=Rp.useIgnoreSuggestionMutation(),[s]=Rp.useSendUserQueriesDataMutation(),i=(0,X.N4)(wo.py),o=Mo(),l=n.useCallback((async t=>e(t).unwrap()),[e]),c=n.useCallback((async e=>t(e).unwrap()),[t]),d=n.useCallback((async e=>a(e).unwrap()),[a]),u=n.useCallback((async e=>r(e).unwrap()),[r]),m=n.useMemo((()=>[...i.map(((e,t)=>({name:`query${t}.yql`,text:e.queryText}))),...o.map((e=>({name:e.name,text:e.body})))]),[i,o]);return{prepareUserQueriesCache:n.useCallback((async()=>{const e=m.map(((e,t)=>({FileName:e.name||`query${t}.yql`,Text:e.text})));try{return await s(e).unwrap()}catch{return{items:[]}}}),[s,m]),monacoGhostConfig:n.useMemo((()=>({api:{getCodeAssistSuggestions:l},eventHandlers:{onCompletionAccept:c,onCompletionDecline:d,onCompletionIgnore:u},config:{language:"yql"}})),[l,c,d,u])}}();n.useEffect((()=>(o&&u&&(o.register(y),x()),()=>{null===o||void 0===o||o.unregister()})),[u,y,o,x]);return(0,d.jsx)(fv,{language:"yql",value:s,options:m,onChange:t=>{p(),e({input:t})},editorDidMount:(e,t)=>{window.ydbEditor=e;const n=function(e){const{KeyMod:t,KeyCode:a}=e,n=t.CtrlCmd;return{sendQuery:n|a.Enter,sendSelectedQuery:n|t.Shift|e.KeyCode.Enter,selectPreviousQuery:n|a.UpArrow,selectNextQuery:n|a.DownArrow,saveQuery:n|a.KeyS,saveSelectedQuery:n|t.Shift|a.KeyS}}(t);t.editor.registerCommand("insertSnippetToEditor",((t,a)=>{const n=e.getContribution("snippetController2");n&&(e.focus(),e.setValue(""),n.insert(a))})),window.api.codeAssist&&l((0,bv._z)(e)),function(e){const t=ge()((()=>{e.layout()}),100);e.layout(),window.addEventListener("resize",t),e.onDidDispose((()=>{window.removeEventListener("resize",t)}))}(e),function(e,t){Dv(e.getValue(),t()),e.onDidChangeModelContent((()=>{Dv(e.getValue(),t())})),e.onDidDispose((()=>{window.onbeforeunload=null}))}(e,v),e.focus(),e.addAction({id:"sendQuery",label:em("action.send-query"),keybindings:[n.sendQuery],precondition:void 0,keybindingContext:void 0,contextMenuGroupId:Pv,contextMenuOrder:1,run:()=>g()});const r=e.createContextKey("canSendSelectedText",!1);e.onDidChangeCursorSelection((({selection:e,secondarySelections:t})=>{const a=e.selectionStartLineNumber!==e.positionLineNumber||e.selectionStartColumn!==e.positionColumn,n=t.length>0;r.set(a&&!n)})),e.addAction({id:"sendSelectedQuery",label:em("action.send-selected-query"),keybindings:[n.sendSelectedQuery],precondition:"canSendSelectedText",contextMenuGroupId:Pv,contextMenuOrder:1,run:e=>{const t=e.getSelection(),n=e.getModel();if(t&&n){const e=n.getValueInRange({startLineNumber:t.getSelectionStart().lineNumber,startColumn:t.getSelectionStart().column,endLineNumber:t.getPosition().lineNumber,endColumn:t.getPosition().column});a(e,!0)}}}),e.addAction({id:"previous-query",label:em("action.previous-query"),keybindings:[n.selectPreviousQuery],contextMenuGroupId:Pv,contextMenuOrder:2,run:()=>{i((0,wo.JK)())}}),e.addAction({id:"next-query",label:em("action.next-query"),keybindings:[n.selectNextQuery],contextMenuGroupId:Pv,contextMenuOrder:3,run:()=>{i((0,wo.tS)())}}),e.addAction({id:"save-query",label:em("action.save-query"),keybindings:[n.saveQuery],run:()=>{Co.Ay.show(Bo)}})},theme:`vs-${t}`,editorWillUnmount:()=>{window.ydbEditor=void 0}})}function Dv(e,t){const a=!!e&&e!==t;window.onbeforeunload=a?e=>{e.preventDefault(),e.returnValue=""}:null}const Av=(0,c.cn)("query-editor"),_v={triggerExpand:!1,triggerCollapse:!1,collapsed:!0};function Rv(e){const t=(0,X.YQ)(),{tenantName:a,path:r,type:s,theme:i,changeUserInput:o}=e,l=(0,X.N4)(wo.yJ),c=(0,X.N4)(wo.wf),u=(0,X.N4)(wo.py),m=(0,X.N4)(wo.Kz),p=(0,X.N4)(Y.Ab),v=Boolean(c),[g]=(0,X.XS)(),y=(0,ie.Oi)(),[x,b]=gm(),{resetBanner:f}=xm(),[T,j]=(0,X.iK)(Z.zk),[S,N]=n.useState(""),[E]=(0,X.iK)(Z.kO),w=(0,ie.j2)()&&E,[C]=wo.JO.useUseSendQueryMutation(),[P]=wo.JO.useUseStreamQueryMutation(),I=n.useMemo((()=>w?{displayIndices:{maxIndex:(g.limitRows||Nt.jU.limitRows)+1}}:void 0),[w,g.limitRows]);n.useEffect((()=>{l!==a&&t((0,wo.Id)(a))}),[t,a,l]);const[D,A]=n.useReducer(Sm(Z.GV),_v);n.useEffect((()=>{A(fm.triggerCollapse)}),[]),n.useEffect((()=>{A(p||v?fm.triggerExpand:fm.triggerCollapse)}),[p,v]);const _=(0,X.A5)(((e,n)=>{j(Nt.x5.execute),N(e),(0,nm.isEqual)(x,g)||(f(),b(g));const r=(0,rm.A)();if(w){const t=P({actionType:"execute",query:e,database:a,querySettings:g,enableTracingLevel:y});Op.registerQuery(t)}else{const t=C({actionType:"execute",query:e,database:a,querySettings:g,enableTracingLevel:y,queryId:r});Op.registerQuery(t)}var s;(t((0,Y.o)(!1)),n)||e!==(null===(s=u[m])||void 0===s?void 0:s.queryText)&&t((0,wo.nO)({queryText:e,queryId:r}));A(fm.triggerExpand)})),R=()=>{t((0,Oo.NJ)("settings"))},k=(0,X.A5)((e=>{j(Nt.x5.explain),N(e),(0,nm.isEqual)(x,g)||(f(),b(g));const n=(0,rm.A)(),r=C({actionType:"explain",query:e,database:a,querySettings:g,enableTracingLevel:y,queryId:n});Op.registerQuery(r),t((0,Y.o)(!1)),A(fm.triggerExpand)}));return(0,d.jsxs)("div",{className:Av(),children:[(0,d.jsxs)(h,{direction:"vertical",defaultSizePaneKey:Z.l_,triggerCollapse:D.triggerCollapse,triggerExpand:D.triggerExpand,minSize:[0,52],collapsedSizes:[100,0],onSplitStartDragAdditional:()=>{A(fm.clear)},children:[(0,d.jsxs)("div",{className:Av("pane-wrapper",{top:!0}),children:[(0,d.jsx)("div",{className:Av("monaco-wrapper"),children:(0,d.jsx)("div",{className:Av("monaco"),children:(0,d.jsx)(Iv,{changeUserInput:o,theme:i,handleSendExecuteClick:_,handleGetExplainQueryClick:k})})}),(0,d.jsx)(Gp,{handleSendExecuteClick:_,onSettingsButtonClick:R,isLoading:Boolean(null===c||void 0===c?void 0:c.isLoading),handleGetExplainQueryClick:k,highlightedAction:T,tenantName:a,queryId:null===c||void 0===c?void 0:c.queryId,isStreamingEnabled:w})]}),(0,d.jsx)("div",{className:Av("pane-wrapper"),children:(0,d.jsx)(kv,{resultVisibilityState:D,onExpandResultHandler:()=>{A(fm.triggerExpand)},onCollapseResultHandler:()=>{A(fm.triggerCollapse)},type:s,theme:i,result:c,tenantName:a,path:r,showPreview:p,queryText:S,tableSettings:I},null===c||void 0===c?void 0:c.queryId)})]}),(0,d.jsx)(yv,{})]})}function kv({resultVisibilityState:e,onExpandResultHandler:t,onCollapseResultHandler:a,type:n,theme:r,result:s,tenantName:i,path:o,showPreview:l,queryText:c,tableSettings:u}){return l?(0,d.jsx)(Vm,{database:i,path:o,type:n}):s?(0,d.jsx)(dv,{result:s,resultType:null===s||void 0===s?void 0:s.type,theme:r,tenantName:i,isResultsCollapsed:e.collapsed,tableSettings:u,onExpandResults:t,onCollapseResults:a,queryText:c}):null}const Ov=[{id:ae.tQ.newQuery,title:em("tabs.newQuery")},{id:ae.tQ.history,title:em("tabs.history")},{id:ae.tQ.saved,title:em("tabs.saved")}],Mv=({className:e,activeTab:t})=>{const a=(0,Qr.zy)(),n=(0,ye.mA)(a);return(0,d.jsx)("div",{className:e,children:(0,d.jsx)(ne.t,{size:"l",allowNotSelected:!0,activeTab:t,items:Ov,wrapTo:({id:e},t)=>{const a=(0,ra.YL)({...n,[ra.vh.queryTab]:e});return(0,d.jsx)(To.E,{to:a,children:t},e)}})})};var Lv=a(65872),zv=a(64470);const qv=(0,c.cn)("ydb-saved-queries"),Fv=({visible:e,queryName:t,onCancelClick:a,onConfirmClick:n})=>(0,d.jsxs)(Hn.l,{open:e,hasCloseButton:!1,size:"s",onClose:a,onEnterKeyDown:n,children:[(0,d.jsx)(Hn.l.Header,{caption:em("delete-dialog.header")}),(0,d.jsxs)(Hn.l.Body,{className:qv("dialog-body"),children:[em("delete-dialog.question"),(0,d.jsx)("span",{className:qv("dialog-query-name"),children:` ${t}?`})]}),(0,d.jsx)(Hn.l.Footer,{textButtonApply:em("delete-dialog.delete"),textButtonCancel:em("delete-dialog.cancel"),onClickButtonCancel:a,onClickButtonApply:n})]}),$v=({changeUserInput:e})=>{const t=Mo(),a=(0,X.YQ)(),r=(0,X.N4)(Oo.cu),[s,i]=n.useState(!1),[o,l]=n.useState(""),c=()=>{i(!1),l("")},u=Ko(n.useCallback((({queryText:t,queryName:n})=>{e({input:t}),a((0,Oo.JP)(n)),a((0,oe.sH)(ae.tQ.newQuery))}),[e,a])),m=[{name:"name",header:"Name",render:({row:e})=>(0,d.jsx)("div",{className:qv("query-name"),children:e.name}),width:200},{name:"body",header:"Query Text",render:({row:e})=>{return(0,d.jsxs)("div",{className:qv("query"),children:[(0,d.jsx)("div",{className:qv("query-body"),children:(0,d.jsx)(Zo,{value:e.body,maxQueryHeight:6})}),(0,d.jsxs)("span",{className:qv("controls"),children:[(0,d.jsx)(vn.$,{view:"flat-secondary",children:(0,d.jsx)(ct.I,{data:Lv.A})}),(0,d.jsx)(vn.$,{view:"flat-secondary",onClick:(t=e.name,e=>{e.stopPropagation(),i(!0),l(t)}),children:(0,d.jsx)(ct.I,{data:zv.A})})]})]});var t},sortable:!1,resizeMinWidth:650}];return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsxs)(Fe.L,{className:qv(),children:[(0,d.jsx)(Fe.L.Controls,{children:(0,d.jsx)(Qe.v,{onChange:e=>{a((0,Oo.ys)(e))},placeholder:em("filter.text.placeholder"),className:qv("search")})}),(0,d.jsx)(Fe.L.Table,{children:(0,d.jsx)(qe.l,{columnsWidthLSKey:"savedQueriesTableColumnsWidth",columns:m,data:t,settings:tl,emptyDataMessage:em(r?"history.empty-search":"saved.empty"),rowClassName:()=>qv("row"),onRowClick:e=>u({queryText:e.body,queryName:e.name}),initialSortOrder:{columnId:"name",order:Rt.Ay.ASCENDING}})})]}),(0,d.jsx)(Fv,{visible:s,queryName:o,onCancelClick:()=>{c()},onConfirmClick:()=>{c(),a((0,Oo.fu)(o)),l("")}})]})},Uv=(0,c.cn)("ydb-query"),Qv=e=>{const t=(0,X.YQ)(),{queryTab:a=ae.tQ.newQuery}=(0,X.N4)((e=>e.tenant)),s=e=>{t((0,wo.iZ)(e))},i=n.useMemo((()=>Ov.find((({id:e})=>e===a))),[a]);return(0,d.jsxs)("div",{className:Uv(),children:[i?(0,d.jsx)(r.mg,{children:(0,d.jsx)("title",{children:i.title})}):null,(0,d.jsx)(Mv,{className:Uv("tabs"),activeTab:a}),(0,d.jsx)("div",{className:Uv("content"),children:(()=>{switch(a){case ae.tQ.newQuery:return(0,d.jsx)(Rv,{changeUserInput:s,...e});case ae.tQ.history:return(0,d.jsx)(am,{changeUserInput:s});case ae.tQ.saved:return(0,d.jsx)($v,{changeUserInput:s});default:return null}})()})]})};var Bv=a(46649),Hv=a(93844);const Gv=["query","diagnostics"],Wv={query:Bv.A,diagnostics:Hv.A};const Vv=(0,c.cn)("ydb-tenant-navigation"),Jv=({id:e,title:t,icon:a})=>({value:e,content:(0,d.jsxs)("span",{className:Vv("item"),children:[(0,d.jsx)(ct.I,{data:a,size:16,className:Vv("icon")}),(0,d.jsx)("span",{className:Vv("text"),children:t})]})}),Kv=()=>{const e=function(){const e=(0,Qr.W6)(),t=(0,Qr.zy)(),a=(0,ye.mA)(t),[,r]=(0,X.iK)(Z.Mt),{tenantPage:s}=(0,X.N4)((e=>e.tenant)),i=n.useMemo((()=>{if(t.pathname!==ye.Ay.tenant)return[];const n=Gv.map((t=>{const n=ae.Dg[t],i=(0,ra.YL)({...a,[ae.Dt]:n});return{id:n,title:Cs(`pages.${t}`),icon:Wv[t],path:i,current:s===n,onForward:()=>{r(n),e.push(i)}}}));return n}),[s,r,t.pathname,e,a]);return i}();return(0,d.jsx)("div",{className:Vv(),children:(0,d.jsx)(fu.a,{width:"auto",onUpdate:t=>{const a=e.find((e=>e.id===t));null===a||void 0===a||a.onForward()},size:"l",className:Vv("body"),value:(e.find((e=>e.current))||e[0]).id,options:e.map(Jv)})})},Yv=(0,c.cn)("object-general");const Zv=function(e){const t=(0,te.i)(),{tenantPage:a}=(0,X.N4)((e=>e.tenant));return(0,d.jsxs)("div",{className:Yv(),children:[(0,d.jsx)(Kv,{}),(()=>{const{type:n,additionalTenantProps:r,additionalNodesProps:s,tenantName:i,path:o}=e;return a===ae.Dg.query?(0,d.jsx)(Qv,{tenantName:i,path:o,theme:t,type:n}):(0,d.jsx)(Zu,{type:n,tenantName:i,path:o,additionalTenantProps:r,additionalNodesProps:s})})()]})};var Xv=a(40336),eg=a(1956);const tg=H.F.injectEndpoints({endpoints:e=>({getSchemaAcl:e.query({queryFn:async({path:e,database:t},{signal:a})=>{try{const n=await window.api.viewer.getSchemaAcl({path:e,database:t},{signal:a});return{data:{acl:n.Common.ACL,effectiveAcl:n.Common.EffectiveACL,owner:n.Common.Owner,interruptInheritance:n.Common.InterruptInheritance}}}catch(n){return{error:n}}},providesTags:["SchemaTree"]})}),overrideExisting:"throw"}),ag=JSON.parse('{"title_rights":"Access Rights","title_effective-rights":"Effective Access Rights","title_owner":"Owner","title_interupt-inheritance":"Interrupt inheritance","description_empty":"No Acl data"}'),ng=(0,Be.g4)("ydb-acl",{en:ag}),rg=(0,c.cn)("ydb-acl"),sg=["access","type","inheritance"],ig={access:"Access",type:"Access type",inheritance:"Inheritance type"},og=new Set(["Object","Container"]);function lg({value:e}){const t="string"===typeof e?[e]:e;return(0,d.jsx)("div",{className:rg("definition-content"),children:t.map((e=>(0,d.jsx)("span",{children:e},e)))})}function cg(e){if(!e||!e.length)return[];const t=function(e){return e.map((e=>{const{AccessRules:t=[],AccessRights:a=[],AccessType:n,InheritanceType:r,Subject:s}=e,i=t.concat(a),o="Allow"===n?void 0:n;let l;return((null===r||void 0===r?void 0:r.length)!==og.size||r.some((e=>!og.has(e))))&&(l=r),{access:i.length?i:void 0,type:o,inheritance:l,Subject:s}}))}(e);return t.map((({Subject:e,...t})=>{const a=Object.entries(t).filter((([e,t])=>Boolean(t)));return 1===a.length&&"access"===a[0][0]?{name:e,content:(0,d.jsx)(lg,{value:a[0][1]}),multilineName:!0}:{label:(0,d.jsx)("span",{className:rg("group-label"),children:e}),items:sg.map((e=>{const a=t[e];if(a)return{name:ig[e],content:(0,d.jsx)(lg,{value:a}),multilineName:!0}})).filter(Rs.f8)}}))}const dg=({path:e,database:t})=>{const{currentData:a,isFetching:r,error:s}=tg.useGetSchemaAclQuery({path:e,database:t}),i=r&&!a,{acl:o,effectiveAcl:l,owner:c,interruptInheritance:u}=a||{},m=cg(o),p=cg(l),h=function(e){const t=(a=e,a&&a.endsWith("@staff")&&!a.startsWith("svc_")?a.split("@")[0]:a);var a;return t?[{name:t,content:ng("title_owner"),multilineName:!0}]:[]}(c),v=u?[{name:ng("title_interupt-inheritance"),content:(0,d.jsx)(ct.I,{data:eg.A,size:20}),multilineName:!0}]:[];if(i)return(0,d.jsx)(ue.a,{});if(s)return(0,d.jsx)(de.o,{error:s});if(!o&&!c&&!l)return(0,d.jsx)(n.Fragment,{children:ng("description_empty")});const g=h.concat(m);return(0,d.jsxs)("div",{className:rg(),children:[(0,d.jsx)(ug,{items:v}),(0,d.jsx)(ug,{items:g,title:ng("title_rights")}),(0,d.jsx)(ug,{items:p,title:ng("title_effective-rights")})]})};function ug({items:e,title:t}){return e.length?(0,d.jsxs)(n.Fragment,{children:[t&&(0,d.jsx)("div",{className:rg("list-title"),children:t}),(0,d.jsx)(Kr.u,{items:e,nameMaxWidth:200,className:rg("result",{"no-title":!t}),responsive:!0})]}):null}var mg=a(87285);const pg=(e,t,a)=>{const{setActivePath:n}=a;return{openPreview:()=>{t(H.F.util.invalidateTags(["PreviewData"])),t((0,Y.o)(!0)),t((0,oe.es)(ae.Dg.query)),t((0,oe.sH)(ae.tQ.newQuery)),n(e)}}},hg=(e,t)=>(0,d.jsx)(vn.$,{view:"flat-secondary",onClick:e.openPreview,title:Cs("actions.openPreview"),size:t||"s",children:(0,d.jsx)(ct.I,{data:mg.A})}),vg=(e,t,a)=>(n,r)=>{const s=pg(n,e,t),i=hg(s,a);return{async_replication:void 0,transfer:void 0,database:void 0,directory:void 0,resource_pool:void 0,table:i,column_table:i,index_table:void 0,topic:void 0,stream:void 0,index:void 0,external_table:i,external_data_source:void 0,view:i}[r]},gg=(e,t,a)=>(n,r)=>{const s=pg(n,e,t);return{preview:hg(s,a)}[r]};var yg=a(89974),xg=a(1064);const bg=5*Z.KF,fg=H.F.injectEndpoints({endpoints:e=>({getTableSchemaData:e.query({queryFn:async({path:e,tenantName:t,type:a},{dispatch:n})=>{try{if(B(a)){const a=await n(wt.endpoints.getViewSchema.initiate({database:t,path:e,timeout:bg}));if((0,Nt.We)(a))return{error:a};return{data:aa(a.data)}}const r=await n(G.endpoints.getOverview.initiate({path:e,database:t,timeout:bg}));return{data:ta(a,r.data)}}catch(r){return{error:r}}}})})});var Tg=a(51016),jg=a(49917),Sg=a(32133),Ng=a.n(Sg);function Eg(e,t){const a=e.replace(/^\/+|\/+$/g,""),n=t.replace(/^\/+|\/+$/g,"");if(!a.startsWith(n))return a||"/";if(a===n)return`/${a}`;let r=a.slice(n.length);return r=r.replace(/^\/+/,"")||"/",r}function wg(e,t){return t===x.EPathTypeDir&&(2===e.split("/").length&&e.startsWith("/"))}const Cg=({text:e,action:t,isLoading:a})=>({text:(0,d.jsxs)(ot.s,{justifyContent:"space-between",alignItems:"center",children:[e,a&&(0,d.jsx)(Jp.t,{size:"xs"})]}),action:t,disabled:a}),Pg=(e,t,a="")=>(n,r)=>{const s=((e,t,a)=>{const{setActivePath:n,showCreateDirectoryDialog:r,getConfirmation:s,getConnectToDBDialog:i,schemaData:o}=a,l=a=>()=>{const r=()=>{t((0,oe.es)(ae.Dg.query)),t((0,oe.sH)(ae.tQ.newQuery)),n(e.path),Ym(a({...e,schemaData:o}))};s?s().then((e=>{e&&r()})):r()};return{createDirectory:r?()=>{r(e.path)}:void 0,getConnectToDBDialog:()=>null===i||void 0===i?void 0:i({database:e.path}),createTable:l(Xm),createColumnTable:l(ep),createAsyncReplication:l(tp),alterAsyncReplication:l(gp),dropAsyncReplication:l(hp),createTransfer:l(ap),alterTransfer:l(yp),dropTransfer:l(vp),alterTable:l(np),dropTable:l(Ip),manageAutoPartitioning:l(rp),selectQuery:l(sp),upsertQuery:l(ip),createExternalTable:l(lp),dropExternalTable:l(op),selectQueryFromExternalTable:l(sp),createTopic:l(cp),alterTopic:l(dp),dropTopic:l(up),createView:l(mp),dropView:l(pp),dropIndex:l(bp),addTableIndex:l(xp),createCdcStream:l(fp),copyPath:()=>{try{Ng()(e.relativePath),ht({name:"Copied",title:Cs("actions.copied"),type:"success"})}catch{ht({name:"Not copied",title:Cs("actions.notCopied"),type:"error"})}}}})({path:n,relativePath:Eg(n,a),tenantName:a,type:r},e,t),i={text:Cs("actions.copyPath"),action:s.copyPath,iconEnd:(0,d.jsx)(Tg.A,{})},o={text:Cs("actions.connectToDB"),action:s.getConnectToDBDialog,iconEnd:(0,d.jsx)(jg.A,{})},l=[{text:Cs("actions.createTable"),action:s.createTable},{text:Cs("actions.createColumnTable"),action:s.createColumnTable},{text:Cs("actions.createAsyncReplication"),action:s.createAsyncReplication},{text:Cs("actions.createTransfer"),action:s.createTransfer},{text:Cs("actions.createTopic"),action:s.createTopic},{text:Cs("actions.createView"),action:s.createView}],c={text:Cs("actions.alterTable"),items:[{text:Cs("actions.manageColumns"),action:s.alterTable},{text:Cs("actions.manageAutoPartitioning"),action:s.manageAutoPartitioning}]},u=[[i,o],l],m=[[i],l];if(s.createDirectory){const e={text:Cs("actions.createDirectory"),action:s.createDirectory};u.splice(1,0,[e]),m.splice(1,0,[e])}const p=[[i],[c,{text:Cs("actions.dropTable"),action:s.dropTable},Cg({text:Cs("actions.selectQuery"),action:s.selectQuery,isLoading:t.isSchemaDataLoading}),Cg({text:Cs("actions.upsertQuery"),action:s.upsertQuery,isLoading:t.isSchemaDataLoading}),{text:Cs("actions.addTableIndex"),action:s.addTableIndex},{text:Cs("actions.createCdcStream"),action:s.createCdcStream}]],h=[[i],[c,{text:Cs("actions.dropTable"),action:s.dropTable},{text:Cs("actions.selectQuery"),action:s.selectQuery},{text:Cs("actions.upsertQuery"),action:s.upsertQuery}]],v=[[i],[{text:Cs("actions.alterTopic"),action:s.alterTopic},{text:Cs("actions.dropTopic"),action:s.dropTopic}]],g=[[i],[{text:Cs("actions.selectQuery"),action:s.selectQueryFromExternalTable}],[{text:Cs("actions.dropTable"),action:s.dropExternalTable}]],y=[[i],[{text:Cs("actions.createExternalTable"),action:s.createExternalTable}]],x=[[i],[{text:Cs("actions.selectQuery"),action:s.selectQuery}],[{text:Cs("actions.dropView"),action:s.dropView}]],b=[i];return{async_replication:[[i],[{text:Cs("actions.alterReplication"),action:s.alterAsyncReplication},{text:Cs("actions.dropReplication"),action:s.dropAsyncReplication}]],transfer:[[i],[{text:Cs("actions.alterTransfer"),action:s.alterTransfer},{text:Cs("actions.dropTransfer"),action:s.dropTransfer}]],database:u,directory:m,resource_pool:b,table:p,column_table:h,index_table:b,topic:v,stream:b,index:[[i,{text:Cs("actions.dropIndex"),action:s.dropIndex}]],external_table:g,external_data_source:y,view:x}[r]},Ig=(0,c.cn)("ydb-schema-create-directory-dialog"),Dg="relativePath";function Ag({open:e,onClose:t,database:a,parentPath:r,onSuccess:s}){const[i,o]=n.useState(""),[l,c]=n.useState(""),[u,m]=Y.sM.useCreateDirectoryMutation(),p=()=>{o(""),m.reset()},h=()=>{t(),c(""),p()};return(0,d.jsxs)(Hn.l,{open:e,onClose:h,size:"s",children:[(0,d.jsx)(Hn.l.Header,{caption:Cs("schema.tree.dialog.header")}),(0,d.jsxs)("form",{onSubmit:e=>{e.preventDefault();const t=(n=l)?/\s/.test(n)?Cs("schema.tree.dialog.whitespace"):"":Cs("schema.tree.dialog.empty");var n;o(t),t||u({database:a,path:`${r}/${l}`}).unwrap().then((()=>{h(),s(l)}))},children:[(0,d.jsxs)(Hn.l.Body,{children:[(0,d.jsxs)("label",{htmlFor:Dg,className:Ig("label"),children:[(0,d.jsx)("span",{className:Ig("description"),children:Cs("schema.tree.dialog.description")}),`${r}/`]}),(0,d.jsx)("div",{className:Ig("input-wrapper"),children:(0,d.jsx)(Fn.k,{placeholder:Cs("schema.tree.dialog.placeholder"),value:l,onUpdate:e=>{c(e),p()},autoFocus:!0,hasClear:!0,autoComplete:!1,disabled:m.isLoading,validationState:i?"invalid":void 0,id:Dg,errorMessage:i})}),m.isError&&(0,d.jsx)(de.o,{error:m.error,defaultMessage:Cs("schema.tree.dialog.invalid")})]}),(0,d.jsx)(Hn.l.Footer,{loading:m.isLoading,textButtonApply:Cs("schema.tree.dialog.buttonApply"),textButtonCancel:Cs("schema.tree.dialog.buttonCancel"),onClickButtonCancel:h,propsButtonApply:{type:"submit"}})]})]})}const _g=n.createContext(void 0),Rg=n.createContext(void 0);function kg({children:e}){const[t,a]=n.useState("");return(0,d.jsx)(_g.Provider,{value:t,children:(0,d.jsx)(Rg.Provider,{value:a,children:e})})}function Og(){const e=n.useContext(Rg);if(void 0===e)throw new Error("useDispatchTreeKey must be used within a TreeKeyProvider");return e}function Mg(e){const t=(0,ie.Ii)(),{rootPath:a,rootName:r,rootType:s,currentPath:i,onActivePathUpdate:o}=e,l=(0,X.YQ)(),c=(0,X.N4)(wo.Wp),[u,{currentData:m,isFetching:p}]=fg.useLazyGetTableSchemaDataQuery(),[h,v]=(0,X.XS)(),[g,y]=n.useState(!1),[x,b]=n.useState(""),f=Og(),T=function(){const e=n.useContext(_g);if(void 0===e)throw new Error("useTreeKey must be used within a TreeKeyProvider");return e}(),j=wg(a,s)?"database":E(s);n.useEffect((()=>{null!==i&&void 0!==i&&i.startsWith(a)||o(a)}),[i,o,a]);const S=e=>{b(e),y(!0)},w=n.useMemo((()=>Pg(l,{setActivePath:o,updateQueryExecutionSettings:e=>v({...h,...e}),showCreateDirectoryDialog:t?S:void 0,getConfirmation:c?Jo:void 0,getConnectToDBDialog:xg.S,schemaData:m,isSchemaDataLoading:p},a)),[m,t,l,c,p,o,h,a,v]);return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(Ag,{onClose:()=>{y(!1)},open:g,database:a,parentPath:x,onSuccess:e=>{const t=`${x}/${e}`;o(t),f(t)}}),(0,d.jsx)(yg.F,{rootState:{path:a,name:r,type:j,collapsed:!1},fetchPath:async e=>{let t;for(;;){const n=l(Y.sM.endpoints.getSchema.initiate({path:e,database:a},{forceRefetch:!0})),{data:r,originalArgs:s}=await n;if(n.unsubscribe(),(null===s||void 0===s?void 0:s.path)===e){t=null===r||void 0===r?void 0:r[e];break}}if(!t)throw new Error(`no describe data about path ${e}`);const{PathDescription:{Children:n=[]}={}}=t;return n.map((e=>{const{Name:t="",PathType:a,PathSubType:n,ChildrenExist:r}=e,s=$(a,n)||(0,Rs.f8)(r)&&!r;return{name:t,type:E(a,n),expandable:!s}}))},getActions:w,onActionsOpenToggle:({path:e,type:t,isOpen:n})=>{const r=N[t];return n&&r&&u({path:e,tenantName:a,type:r}),[]},renderAdditionalNodeElements:vg(l,{setActivePath:o}),activePath:i,onActivePathUpdate:o,cache:!1,virtualize:!0},T)]})}const Lg=JSON.parse('{"title_navigation":"Navigation","field_source-type":"Source Type","field_data-source":"Data Source","action_copySchemaPath":"Copy schema path","action_openInDiagnostics":"Open in Diagnostics","field_type":"Type","field_subtype":"SubType","field_id":"Id","field_version":"Version","field_created":"Created","field_data-size":"Data size","field_row-count":"Row count","field_partitions":"Partitions count","field_paths":"Paths","field_shards":"Shards","field_state":"State","field_mode":"Mode","field_format":"Format","field_retention":"Retention"}'),zg=(0,Be.g4)("ydb-object-summary",{en:Lg}),qg=(0,c.cn)("ydb-object-summary");function Fg({tenantName:e,path:t}){var a;const{data:n={},isLoading:r}=(0,Y.Tn)({path:e,database:e}),i=null===n||void 0===n||null===(a=n.PathDescription)||void 0===a?void 0:a.Self,[,o]=(0,s.useQueryParam)("schema",s.StringParam);return!i&&r?(0,d.jsx)("div",{children:(0,d.jsx)(ue.a,{})}):(0,d.jsxs)("div",{className:qg("tree-wrapper"),children:[(0,d.jsx)("div",{className:qg("tree-header"),children:zg("title_navigation")}),(0,d.jsx)("div",{className:qg("tree"),children:i?(0,d.jsx)(Mg,{rootPath:e,rootName:i.Name||e,rootType:i.PathType,currentPath:t,onActivePathUpdate:o}):null})]})}var $g=a(16963);function Ug(){const e=(0,X.YQ)(),{diagnosticsTab:t,tenantPage:a}=(0,X.N4)((e=>e.tenant)),n=a===ae.Dg.diagnostics&&t===ae.iJ.schema;return(0,d.jsx)("div",{children:!n&&(0,d.jsx)(vn.$,{title:zg("action_openInDiagnostics"),onClick:()=>{e((0,oe.es)(ae.Dg.diagnostics)),e((0,oe.WO)(ae.iJ.schema))},size:"s",children:(0,d.jsx)(ct.I,{data:$g.A,size:14})})})}var Qg=a(8873),Bg=a(97091);function Hg(){const e=Og(),t=(0,X.YQ)();return(0,d.jsx)(lt.m,{title:"Refresh",children:(0,d.jsx)(vn.$,{className:qg("refresh-button"),view:"flat-secondary",onClick:()=>{e((0,Bg.Ak)()),t(H.F.util.invalidateTags(["SchemaTree"]))},children:(0,d.jsx)(ct.I,{data:Qg.A})})})}const Gg=()=>({triggerExpand:!1,triggerCollapse:!1,collapsed:Boolean(localStorage.getItem(Z.hh))});function Wg({type:e,subType:t,tenantName:a,path:r,onCollapseSummary:i,onExpandSummary:o,isCollapsed:l}){var c;const u=(0,X.YQ)(),[,m]=(0,s.useQueryParam)("schema",s.StringParam),[p,v]=n.useReducer(Sm(Z.hh),void 0,Gg),{summaryTab:g=ae.ml.overview}=(0,X.N4)((e=>e.tenant)),y=(0,Qr.zy)(),f=Aa().parse(y.search,{ignoreQueryPrefix:!0}),{currentData:T}=G.useGetOverviewQuery({path:r,database:a}),j=null===T||void 0===T||null===(c=T.PathDescription)||void 0===c?void 0:c.Self;n.useEffect((()=>{const t=D(e);!e||t||ra.x$.find((e=>e.id===g))||u((0,oe.Mj)(ae.ml.overview))}),[u,e,g]);const S=()=>{const t=D(e)?[...ra.x$,...ra.nb]:ra.x$;return(0,d.jsx)("div",{className:qg("tabs"),children:(0,d.jsxs)(ot.s,{className:qg("tabs-inner"),justifyContent:"space-between",alignItems:"center",children:[(0,d.jsx)(ne.t,{size:"l",items:t,activeTab:g,wrapTo:({id:e},t)=>{const a=(0,ra.YL)({...f,[ra.vh.summaryTab]:e});return(0,d.jsx)(re.N_,{to:a,className:qg("tab"),children:t},e)},allowNotSelected:!0}),g===ae.ml.schema&&(0,d.jsx)(Ug,{})]})})},N=()=>{switch(g){case ae.ml.acl:return(0,d.jsx)(dg,{path:r,database:a});case ae.ml.schema:return(0,d.jsx)(na,{type:e,path:r,tenantName:a});default:return(()=>{var e;if(!j)return;const{CreateStep:t,PathType:a,PathSubType:s,PathId:i,PathVersion:o}=j,l=[],c=wg(r,a)?"Domain":null===a||void 0===a?void 0:a.replace(/^EPathType/,"");l.push({name:zg("field_type"),content:c}),s!==b.EPathSubTypeEmpty&&l.push({name:zg("field_subtype"),content:null===s||void 0===s?void 0:s.replace(/^EPathSubType/,"")}),l.push({name:zg("field_id"),content:i}),l.push({name:zg("field_version"),content:o}),l.push({name:zg("field_created"),content:(0,he.r6)(t)});const{PathDescription:u}=T;if(null!==u&&void 0!==u&&u.TableStats){const{DataSize:e,RowCount:t}=u.TableStats;l.push({name:zg("field_data-size"),content:jr(e)},{name:zg("field_row-count"),content:(0,he.ZV)(t)})}const m=()=>{var e;const{PathsInside:t,ShardsInside:a,PathsLimit:n,ShardsLimit:r}=null!==(e=null===u||void 0===u?void 0:u.DomainDescription)&&void 0!==e?e:{};let s=(0,he.ZV)(t),i=(0,he.ZV)(a);return s&&n&&(s=`${s} / ${(0,he.ZV)(n)}`),i&&r&&(i=`${i} / ${(0,he.ZV)(r)}`),[{name:zg("field_paths"),content:s},{name:zg("field_shards"),content:i}]},p={[x.EPathTypeInvalid]:void 0,[x.EPathTypeDir]:void 0,[x.EPathTypeResourcePool]:void 0,[x.EPathTypeTable]:()=>{var e;return[{name:zg("field_partitions"),content:null===u||void 0===u||null===(e=u.TablePartitions)||void 0===e?void 0:e.length}]},[x.EPathTypeSubDomain]:m,[x.EPathTypeTableIndex]:void 0,[x.EPathTypeExtSubDomain]:m,[x.EPathTypeColumnStore]:()=>{var e,t;return[{name:zg("field_partitions"),content:null===u||void 0===u||null===(e=u.ColumnStoreDescription)||void 0===e||null===(t=e.ColumnShards)||void 0===t?void 0:t.length}]},[x.EPathTypeColumnTable]:()=>{var e,t,a;return[{name:zg("field_partitions"),content:null===u||void 0===u||null===(e=u.ColumnTableDescription)||void 0===e||null===(t=e.Sharding)||void 0===t||null===(a=t.ColumnShards)||void 0===a?void 0:a.length}]},[x.EPathTypeCdcStream]:()=>{const{Mode:e,Format:t}=(null===u||void 0===u?void 0:u.CdcStreamDescription)||{};return[{name:zg("field_mode"),content:null===e||void 0===e?void 0:e.replace(/^ECdcStreamMode/,"")},{name:zg("field_format"),content:null===t||void 0===t?void 0:t.replace(/^ECdcStreamFormat/,"")}]},[x.EPathTypePersQueueGroup]:()=>{var e,t,a;const n=null===u||void 0===u?void 0:u.PersQueueGroup,r=null===n||void 0===n||null===(e=n.PQTabletConfig)||void 0===e||null===(t=e.PartitionConfig)||void 0===t?void 0:t.LifetimeSeconds;return[{name:zg("field_partitions"),content:null===n||void 0===n||null===(a=n.Partitions)||void 0===a?void 0:a.length},{name:zg("field_retention"),content:r&&(0,he.Pt)(r)}]},[x.EPathTypeExternalTable]:()=>{var e,t;const a=(0,ye.Ow)({...f,schema:null===u||void 0===u||null===(e=u.ExternalTableDescription)||void 0===e?void 0:e.DataSourcePath}),{SourceType:n,DataSourcePath:r}=(null===u||void 0===u?void 0:u.ExternalTableDescription)||{},s=(null===r||void 0===r||null===(t=r.match(/([^/]*)\/*$/))||void 0===t?void 0:t[1])||"";return[{name:zg("field_source-type"),content:n},{name:zg("field_data-source"),content:r&&(0,d.jsx)("span",{title:r,children:(0,d.jsx)(Br.K,{title:s||"",url:a})})}]},[x.EPathTypeExternalDataSource]:()=>{var e;return[{name:zg("field_source-type"),content:null===u||void 0===u||null===(e=u.ExternalDataSourceDescription)||void 0===e?void 0:e.SourceType}]},[x.EPathTypeView]:void 0,[x.EPathTypeReplication]:()=>{var e;const t=null===u||void 0===u||null===(e=u.ReplicationDescription)||void 0===e?void 0:e.State;return t?[{name:zg("field_state"),content:(0,d.jsx)(is,{state:t})}]:[]},[x.EPathTypeTransfer]:()=>{var e;const t=null===u||void 0===u||null===(e=u.ReplicationDescription)||void 0===e?void 0:e.State;return t?[{name:zg("field_state"),content:(0,d.jsx)(is,{state:t})}]:[]}},h=a&&(null===(e=p[a])||void 0===e?void 0:e.call(p))||[];l.push(...h);const v=l.filter((e=>e.content)).map((e=>({...e,content:(0,d.jsx)("div",{className:qg("overview-item-content"),children:e.content})})));return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)("div",{className:qg("overview-title"),children:(0,d.jsx)(Ps,{data:u})}),(0,d.jsx)(Xv.u,{responsive:!0,children:v.map((e=>(0,d.jsx)(Xv.u.Item,{name:e.name,children:e.content},e.name)))})]})})()}},E=()=>{v(fm.triggerCollapse)},w=()=>{v(fm.triggerExpand)},C=()=>{v(fm.clear)},P=Eg(r,a),I=()=>{const a=D(e)&&!_(t);return(0,d.jsxs)(n.Fragment,{children:[a&&gg(u,{setActivePath:m},"m")(r,"preview"),(0,d.jsx)(pn.b,{text:P,view:"flat-secondary",title:zg("action_copySchemaPath")}),(0,d.jsx)(Em,{onCollapse:E,onExpand:w,isCollapsed:p.collapsed,initialDirection:"bottom"})]})},A=()=>{const{Status:t,Reason:a}=null!==T&&void 0!==T?T:{};if(e){let t=e.replace("EPathType","");return wg(r,e)&&(t="domain"),(0,d.jsx)("div",{className:qg("entity-type"),children:t})}let n;return t&&a&&(n=`${t}: ${a}`),(0,d.jsx)("div",{className:qg("entity-type",{error:!0}),children:(0,d.jsx)(Ra.B,{content:n,offset:{left:0}})})};return(0,d.jsx)(kg,{children:(0,d.jsxs)("div",{className:qg(),children:[(0,d.jsx)("div",{className:qg({hidden:l}),children:(0,d.jsxs)(h,{direction:"vertical",defaultSizePaneKey:Z.ED,onSplitStartDragAdditional:C,triggerCollapse:p.triggerCollapse,triggerExpand:p.triggerExpand,minSize:[200,52],collapsedSizes:[100,0],children:[(0,d.jsx)(Fg,{tenantName:a,path:r}),(0,d.jsxs)("div",{className:qg("info"),children:[(0,d.jsxs)("div",{className:qg("sticky-top"),children:[(0,d.jsxs)("div",{className:qg("info-header"),children:[(0,d.jsxs)("div",{className:qg("info-title"),children:[A(),(0,d.jsx)("div",{className:qg("path-name"),children:P})]}),(0,d.jsx)("div",{className:qg("info-controls"),children:I()})]}),S()]}),(0,d.jsx)("div",{className:qg("overview-wrapper"),children:N()})]})]})}),(0,d.jsxs)(ot.s,{className:qg("actions"),gap:.5,children:[!l&&(0,d.jsx)(Hg,{}),(0,d.jsx)(Em,{onCollapse:i,onExpand:o,isCollapsed:l,initialDirection:"left"})]})]})})}const Vg=(0,c.cn)("tenant-page"),Jg=()=>({triggerExpand:!1,triggerCollapse:!1,collapsed:Boolean(localStorage.getItem(Z.jX))});function Kg(e){var t,l,c,u,m,p,g,y,x,b;const[f,T]=n.useReducer(Sm(Z.jX),void 0,Jg),[{database:j,name:S,schema:N},E]=(0,s.useQueryParams)({database:s.StringParam,name:s.StringParam,schema:s.StringParam});n.useEffect((()=>{S&&!j&&E({database:S,name:void 0},"replaceIn")}),[j,S,E]);const w=null!==j&&void 0!==j?j:S;if(!w)throw new Error("Tenant name is not defined");const C=n.useRef();n.useEffect((()=>{if(C.current!==w){(async()=>{const{registerYQLCompletionItemProvider:e}=await a.e(245).then(a.bind(a,50245));e(w)})().catch(console.error),C.current=w}}),[w]);const P=(0,X.YQ)();n.useEffect((()=>{P((0,v.g)("tenant",{tenantName:w}))}),[w,P]);const I=null!==N&&void 0!==N?N:w,{currentData:D,error:A,isLoading:_}=G.useGetOverviewQuery({path:I,database:w}),R=(0,X.N4)((e=>(0,Y.Tp)(e,I,w))),k=null!==(t=null===D||void 0===D||null===(l=D.PathDescription)||void 0===l||null===(c=l.Self)||void 0===c?void 0:c.PathType)&&void 0!==t?t:null===R||void 0===R||null===(u=R.PathDescription)||void 0===u||null===(m=u.Self)||void 0===m?void 0:m.PathType,O=null!==(p=null===D||void 0===D||null===(g=D.PathDescription)||void 0===g||null===(y=g.Self)||void 0===y?void 0:y.PathSubType)&&void 0!==p?p:null===R||void 0===R||null===(x=R.PathDescription)||void 0===x||null===(b=x.Self)||void 0===b?void 0:b.PathSubType,M=(0,ee.Pq)(A),[L,z]=n.useState(!0);L&&!_&&z(!1);const q=I||Cs("page.title");return(0,d.jsxs)("div",{className:Vg(),children:[(0,d.jsx)(r.mg,{defaultTitle:`${q} \u2014 YDB Monitoring`,titleTemplate:`%s \u2014 ${q} \u2014 YDB Monitoring`}),(0,d.jsx)(o.r,{loading:L,children:(0,d.jsx)(i.A,{error:M?A:void 0,children:(0,d.jsxs)(h,{defaultSizePaneKey:Z.jQ,defaultSizes:[25,75],triggerCollapse:f.triggerCollapse,triggerExpand:f.triggerExpand,minSize:[36,200],onSplitStartDragAdditional:()=>{T(fm.clear)},children:[(0,d.jsx)(Wg,{type:k,subType:O,tenantName:w,path:I,onCollapseSummary:()=>{T(fm.triggerCollapse)},onExpandSummary:()=>{T(fm.triggerExpand)},isCollapsed:f.collapsed}),(0,d.jsx)("div",{className:Vg("main"),children:(0,d.jsx)(Zv,{type:k,additionalTenantProps:e.additionalTenantProps,additionalNodesProps:e.additionalNodesProps,tenantName:w,path:I})})]})})})]})}},66574:()=>{},71635:(e,t,a)=>{"use strict";a.d(t,{C:()=>y});var n=a(44992),r=a(53850),s=a(62060),i=a.n(s),o=a(21334),l=a(24600);const c=o.F.injectEndpoints({endpoints:e=>({getTabletsInfo:e.query({queryFn:async(e,{signal:t})=>{try{return{data:await window.api.viewer.getTabletsInfo(e,{signal:t})}}catch(a){return{error:a}}},providesTags:["All",{type:"Tablet",id:"LIST"}]})}),overrideExisting:"throw"}),d=(0,r.Mz)((e=>e),(e=>c.endpoints.getTabletsInfo.select(e)),{argsMemoize:r.i5,argsMemoizeOptions:{equalityCheck:i()}}),u=(0,r.Mz)((e=>e),((e,t)=>d(t)),((e,t)=>t(e).data)),m=(0,r.Mz)(((e,t)=>u(e,t)),(e=>(0,l.K)(e)),((e,t)=>null!==e&&void 0!==e&&e.TabletStateInfo?t?e.TabletStateInfo.map((e=>{var a;const n=void 0===e.NodeId||null===(a=t.get(e.NodeId))||void 0===a?void 0:a.Host;return{...e,fqdn:n}})):e.TabletStateInfo:[]));var p=a(7435),h=a(90182),v=a(88616),g=a(60712);function y({nodeId:e,path:t,database:a}){const[r]=(0,h.Nt)();let s={};(0,p.f8)(e)?s={nodeId:e,database:a}:t&&(s={path:t,database:a});const{isLoading:i,error:o}=c.useGetTabletsInfoQuery(0===Object.keys(s).length?n.hT:s,{pollingInterval:r}),l=(0,h.N4)((e=>m(e,s)));return(0,g.jsx)(v.Q,{tablets:l,database:a,loading:i,error:o})}},79737:(e,t,a)=>{"use strict";a.d(t,{A:()=>o,X:()=>l});var n=a(5874),r=a(77506),s=a(60712);const i=(0,r.cn)("ydb-table");function o({children:e,className:t}){return(0,s.jsx)("div",{className:i("table-header-content",t),children:e})}function l({className:e,width:t,wrapperClassName:a,...r}){return(0,s.jsx)("div",{className:i(null,a),children:(0,s.jsx)(n.W,{headerCellClassName:({column:e})=>{var t;const a=null===(t=e.columnDef.meta)||void 0===t?void 0:t.align;return i("table-header-cell",{align:a})},cellClassName:e=>{var t,a;const n=null===e||void 0===e||null===(t=e.column.columnDef.meta)||void 0===t?void 0:t.align,r=null===e||void 0===e||null===(a=e.column.columnDef.meta)||void 0===a?void 0:a.verticalAlign;return i("table-cell",{align:n,"vertical-align":r})},className:i("table",{width:t},e),...r})})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/4872.2eea7e0a.chunk.js b/ydb/core/viewer/monitoring/static/js/4872.2eea7e0a.chunk.js deleted file mode 100644 index b5a32b52b8..0000000000 --- a/ydb/core/viewer/monitoring/static/js/4872.2eea7e0a.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 4872.2eea7e0a.chunk.js.LICENSE.txt */ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[4872],{16929:(n,t,r)=>{"use strict";r.d(t,{A:()=>u});var e=r(59284);const u=n=>e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},n),e.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0m-6 2.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0M8.75 5a.75.75 0 0 0-1.5 0v2.5a.75.75 0 0 0 1.5 0z",clipRule:"evenodd"}))},45720:(n,t,r)=>{"use strict";r.d(t,{A:()=>u});var e=r(59284);const u=n=>e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},n),e.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m1-9.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0M8 7.75a.75.75 0 0 1 .75.75V11a.75.75 0 0 1-1.5 0V8.5A.75.75 0 0 1 8 7.75",clipRule:"evenodd"}))},79879:(n,t,r)=>{"use strict";r.d(t,{A:()=>u});var e=r(59284);const u=n=>e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},n),e.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"m3.003 4.702 4.22-2.025a1.8 1.8 0 0 1 1.554 0l4.22 2.025a.89.89 0 0 1 .503.8V6a8.55 8.55 0 0 1-3.941 7.201l-.986.631a1.06 1.06 0 0 1-1.146 0l-.986-.63A8.55 8.55 0 0 1 2.5 6v-.498c0-.341.196-.652.503-.8m3.57-3.377L2.354 3.35A2.39 2.39 0 0 0 1 5.502V6a10.05 10.05 0 0 0 4.632 8.465l.986.63a2.56 2.56 0 0 0 2.764 0l.986-.63A10.05 10.05 0 0 0 15 6v-.498c0-.918-.526-1.755-1.354-2.152l-4.22-2.025a3.3 3.3 0 0 0-2.852 0M9.5 7a1.5 1.5 0 0 1-.75 1.3v1.95a.75.75 0 0 1-1.5 0V8.3A1.5 1.5 0 1 1 9.5 7",clipRule:"evenodd"}))},71153:(n,t,r)=>{"use strict";r.d(t,{A:()=>u});var e=r(59284);const u=n=>e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},n),e.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.835 2.244c.963-1.665 3.367-1.665 4.33 0l4.916 8.505c.964 1.666-.24 3.751-2.164 3.751H3.083c-1.925 0-3.128-2.085-2.165-3.751zM8 5a.75.75 0 0 1 .75.75v2a.75.75 0 1 1-1.5 0v-2A.75.75 0 0 1 8 5m1 5.75a1 1 0 1 1-2 0 1 1 0 0 1 2 0",clipRule:"evenodd"}))},89169:(n,t,r)=>{"use strict";r.d(t,{E:()=>i});var e=r(59284);const u=(0,r(69220).om)("skeleton");function i({className:n,style:t,qa:r}){return e.createElement("div",{className:u(null,n),style:t,"data-qa":r})}},13847:function(n,t,r){var e;n=r.nmd(n),function(){var u,i="Expected a function",o="__lodash_hash_undefined__",f="__lodash_placeholder__",a=16,c=32,l=64,s=128,h=256,p=1/0,v=9007199254740991,_=NaN,g=4294967295,y=[["ary",s],["bind",1],["bindKey",2],["curry",8],["curryRight",a],["flip",512],["partial",c],["partialRight",l],["rearg",h]],d="[object Arguments]",w="[object Array]",b="[object Boolean]",m="[object Date]",x="[object Error]",A="[object Function]",j="[object GeneratorFunction]",k="[object Map]",E="[object Number]",R="[object Object]",O="[object Promise]",I="[object RegExp]",z="[object Set]",S="[object String]",C="[object Symbol]",L="[object WeakMap]",W="[object ArrayBuffer]",B="[object DataView]",T="[object Float32Array]",U="[object Float64Array]",M="[object Int8Array]",$="[object Int16Array]",D="[object Int32Array]",N="[object Uint8Array]",F="[object Uint8ClampedArray]",q="[object Uint16Array]",P="[object Uint32Array]",V=/\b__p \+= '';/g,Z=/\b(__p \+=) '' \+/g,K=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,H=/[&<>"']/g,J=RegExp(G.source),Y=RegExp(H.source),Q=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,nn=/<%=([\s\S]+?)%>/g,tn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rn=/^\w*$/,en=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,un=/[\\^$.*+?()[\]{}|]/g,on=RegExp(un.source),fn=/^\s+/,an=/\s/,cn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ln=/\{\n\/\* \[wrapped with (.+)\] \*/,sn=/,? & /,hn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pn=/[()=,{}\[\]\/\s]/,vn=/\\(\\)?/g,_n=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,gn=/\w*$/,yn=/^[-+]0x[0-9a-f]+$/i,dn=/^0b[01]+$/i,wn=/^\[object .+?Constructor\]$/,bn=/^0o[0-7]+$/i,mn=/^(?:0|[1-9]\d*)$/,xn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,An=/($^)/,jn=/['\n\r\u2028\u2029\\]/g,kn="\\ud800-\\udfff",En="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Rn="\\u2700-\\u27bf",On="a-z\\xdf-\\xf6\\xf8-\\xff",In="A-Z\\xc0-\\xd6\\xd8-\\xde",zn="\\ufe0e\\ufe0f",Sn="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Cn="['\u2019]",Ln="["+kn+"]",Wn="["+Sn+"]",Bn="["+En+"]",Tn="\\d+",Un="["+Rn+"]",Mn="["+On+"]",$n="[^"+kn+Sn+Tn+Rn+On+In+"]",Dn="\\ud83c[\\udffb-\\udfff]",Nn="[^"+kn+"]",Fn="(?:\\ud83c[\\udde6-\\uddff]){2}",qn="[\\ud800-\\udbff][\\udc00-\\udfff]",Pn="["+In+"]",Vn="\\u200d",Zn="(?:"+Mn+"|"+$n+")",Kn="(?:"+Pn+"|"+$n+")",Gn="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Hn="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Jn="(?:"+Bn+"|"+Dn+")"+"?",Yn="["+zn+"]?",Qn=Yn+Jn+("(?:"+Vn+"(?:"+[Nn,Fn,qn].join("|")+")"+Yn+Jn+")*"),Xn="(?:"+[Un,Fn,qn].join("|")+")"+Qn,nt="(?:"+[Nn+Bn+"?",Bn,Fn,qn,Ln].join("|")+")",tt=RegExp(Cn,"g"),rt=RegExp(Bn,"g"),et=RegExp(Dn+"(?="+Dn+")|"+nt+Qn,"g"),ut=RegExp([Pn+"?"+Mn+"+"+Gn+"(?="+[Wn,Pn,"$"].join("|")+")",Kn+"+"+Hn+"(?="+[Wn,Pn+Zn,"$"].join("|")+")",Pn+"?"+Zn+"+"+Gn,Pn+"+"+Hn,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Tn,Xn].join("|"),"g"),it=RegExp("["+Vn+kn+En+zn+"]"),ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ft=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],at=-1,ct={};ct[T]=ct[U]=ct[M]=ct[$]=ct[D]=ct[N]=ct[F]=ct[q]=ct[P]=!0,ct[d]=ct[w]=ct[W]=ct[b]=ct[B]=ct[m]=ct[x]=ct[A]=ct[k]=ct[E]=ct[R]=ct[I]=ct[z]=ct[S]=ct[L]=!1;var lt={};lt[d]=lt[w]=lt[W]=lt[B]=lt[b]=lt[m]=lt[T]=lt[U]=lt[M]=lt[$]=lt[D]=lt[k]=lt[E]=lt[R]=lt[I]=lt[z]=lt[S]=lt[C]=lt[N]=lt[F]=lt[q]=lt[P]=!0,lt[x]=lt[A]=lt[L]=!1;var st={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ht=parseFloat,pt=parseInt,vt="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,_t="object"==typeof self&&self&&self.Object===Object&&self,gt=vt||_t||Function("return this")(),yt=t&&!t.nodeType&&t,dt=yt&&n&&!n.nodeType&&n,wt=dt&&dt.exports===yt,bt=wt&&vt.process,mt=function(){try{var n=dt&&dt.require&&dt.require("util").types;return n||bt&&bt.binding&&bt.binding("util")}catch(t){}}(),xt=mt&&mt.isArrayBuffer,At=mt&&mt.isDate,jt=mt&&mt.isMap,kt=mt&&mt.isRegExp,Et=mt&&mt.isSet,Rt=mt&&mt.isTypedArray;function Ot(n,t,r){switch(r.length){case 0:return n.call(t);case 1:return n.call(t,r[0]);case 2:return n.call(t,r[0],r[1]);case 3:return n.call(t,r[0],r[1],r[2])}return n.apply(t,r)}function It(n,t,r,e){for(var u=-1,i=null==n?0:n.length;++u<i;){var o=n[u];t(e,o,r(o),n)}return e}function zt(n,t){for(var r=-1,e=null==n?0:n.length;++r<e&&!1!==t(n[r],r,n););return n}function St(n,t){for(var r=null==n?0:n.length;r--&&!1!==t(n[r],r,n););return n}function Ct(n,t){for(var r=-1,e=null==n?0:n.length;++r<e;)if(!t(n[r],r,n))return!1;return!0}function Lt(n,t){for(var r=-1,e=null==n?0:n.length,u=0,i=[];++r<e;){var o=n[r];t(o,r,n)&&(i[u++]=o)}return i}function Wt(n,t){return!!(null==n?0:n.length)&&Pt(n,t,0)>-1}function Bt(n,t,r){for(var e=-1,u=null==n?0:n.length;++e<u;)if(r(t,n[e]))return!0;return!1}function Tt(n,t){for(var r=-1,e=null==n?0:n.length,u=Array(e);++r<e;)u[r]=t(n[r],r,n);return u}function Ut(n,t){for(var r=-1,e=t.length,u=n.length;++r<e;)n[u+r]=t[r];return n}function Mt(n,t,r,e){var u=-1,i=null==n?0:n.length;for(e&&i&&(r=n[++u]);++u<i;)r=t(r,n[u],u,n);return r}function $t(n,t,r,e){var u=null==n?0:n.length;for(e&&u&&(r=n[--u]);u--;)r=t(r,n[u],u,n);return r}function Dt(n,t){for(var r=-1,e=null==n?0:n.length;++r<e;)if(t(n[r],r,n))return!0;return!1}var Nt=Gt("length");function Ft(n,t,r){var e;return r(n,(function(n,r,u){if(t(n,r,u))return e=r,!1})),e}function qt(n,t,r,e){for(var u=n.length,i=r+(e?1:-1);e?i--:++i<u;)if(t(n[i],i,n))return i;return-1}function Pt(n,t,r){return t===t?function(n,t,r){var e=r-1,u=n.length;for(;++e<u;)if(n[e]===t)return e;return-1}(n,t,r):qt(n,Zt,r)}function Vt(n,t,r,e){for(var u=r-1,i=n.length;++u<i;)if(e(n[u],t))return u;return-1}function Zt(n){return n!==n}function Kt(n,t){var r=null==n?0:n.length;return r?Yt(n,t)/r:_}function Gt(n){return function(t){return null==t?u:t[n]}}function Ht(n){return function(t){return null==n?u:n[t]}}function Jt(n,t,r,e,u){return u(n,(function(n,u,i){r=e?(e=!1,n):t(r,n,u,i)})),r}function Yt(n,t){for(var r,e=-1,i=n.length;++e<i;){var o=t(n[e]);o!==u&&(r=r===u?o:r+o)}return r}function Qt(n,t){for(var r=-1,e=Array(n);++r<n;)e[r]=t(r);return e}function Xt(n){return n?n.slice(0,gr(n)+1).replace(fn,""):n}function nr(n){return function(t){return n(t)}}function tr(n,t){return Tt(t,(function(t){return n[t]}))}function rr(n,t){return n.has(t)}function er(n,t){for(var r=-1,e=n.length;++r<e&&Pt(t,n[r],0)>-1;);return r}function ur(n,t){for(var r=n.length;r--&&Pt(t,n[r],0)>-1;);return r}var ir=Ht({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),or=Ht({"&":"&","<":"<",">":">",'"':""","'":"'"});function fr(n){return"\\"+st[n]}function ar(n){return it.test(n)}function cr(n){var t=-1,r=Array(n.size);return n.forEach((function(n,e){r[++t]=[e,n]})),r}function lr(n,t){return function(r){return n(t(r))}}function sr(n,t){for(var r=-1,e=n.length,u=0,i=[];++r<e;){var o=n[r];o!==t&&o!==f||(n[r]=f,i[u++]=r)}return i}function hr(n){var t=-1,r=Array(n.size);return n.forEach((function(n){r[++t]=n})),r}function pr(n){var t=-1,r=Array(n.size);return n.forEach((function(n){r[++t]=[n,n]})),r}function vr(n){return ar(n)?function(n){var t=et.lastIndex=0;for(;et.test(n);)++t;return t}(n):Nt(n)}function _r(n){return ar(n)?function(n){return n.match(et)||[]}(n):function(n){return n.split("")}(n)}function gr(n){for(var t=n.length;t--&&an.test(n.charAt(t)););return t}var yr=Ht({"&":"&","<":"<",">":">",""":'"',"'":"'"});var dr=function n(t){var r=(t=null==t?gt:dr.defaults(gt.Object(),t,dr.pick(gt,ft))).Array,e=t.Date,an=t.Error,kn=t.Function,En=t.Math,Rn=t.Object,On=t.RegExp,In=t.String,zn=t.TypeError,Sn=r.prototype,Cn=kn.prototype,Ln=Rn.prototype,Wn=t["__core-js_shared__"],Bn=Cn.toString,Tn=Ln.hasOwnProperty,Un=0,Mn=function(){var n=/[^.]+$/.exec(Wn&&Wn.keys&&Wn.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),$n=Ln.toString,Dn=Bn.call(Rn),Nn=gt._,Fn=On("^"+Bn.call(Tn).replace(un,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qn=wt?t.Buffer:u,Pn=t.Symbol,Vn=t.Uint8Array,Zn=qn?qn.allocUnsafe:u,Kn=lr(Rn.getPrototypeOf,Rn),Gn=Rn.create,Hn=Ln.propertyIsEnumerable,Jn=Sn.splice,Yn=Pn?Pn.isConcatSpreadable:u,Qn=Pn?Pn.iterator:u,Xn=Pn?Pn.toStringTag:u,nt=function(){try{var n=si(Rn,"defineProperty");return n({},"",{}),n}catch(t){}}(),et=t.clearTimeout!==gt.clearTimeout&&t.clearTimeout,it=e&&e.now!==gt.Date.now&&e.now,st=t.setTimeout!==gt.setTimeout&&t.setTimeout,vt=En.ceil,_t=En.floor,yt=Rn.getOwnPropertySymbols,dt=qn?qn.isBuffer:u,bt=t.isFinite,mt=Sn.join,Nt=lr(Rn.keys,Rn),Ht=En.max,wr=En.min,br=e.now,mr=t.parseInt,xr=En.random,Ar=Sn.reverse,jr=si(t,"DataView"),kr=si(t,"Map"),Er=si(t,"Promise"),Rr=si(t,"Set"),Or=si(t,"WeakMap"),Ir=si(Rn,"create"),zr=Or&&new Or,Sr={},Cr=Ui(jr),Lr=Ui(kr),Wr=Ui(Er),Br=Ui(Rr),Tr=Ui(Or),Ur=Pn?Pn.prototype:u,Mr=Ur?Ur.valueOf:u,$r=Ur?Ur.toString:u;function Dr(n){if(tf(n)&&!Po(n)&&!(n instanceof Pr)){if(n instanceof qr)return n;if(Tn.call(n,"__wrapped__"))return Mi(n)}return new qr(n)}var Nr=function(){function n(){}return function(t){if(!nf(t))return{};if(Gn)return Gn(t);n.prototype=t;var r=new n;return n.prototype=u,r}}();function Fr(){}function qr(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=u}function Pr(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function Vr(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}function Zr(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}function Kr(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}function Gr(n){var t=-1,r=null==n?0:n.length;for(this.__data__=new Kr;++t<r;)this.add(n[t])}function Hr(n){var t=this.__data__=new Zr(n);this.size=t.size}function Jr(n,t){var r=Po(n),e=!r&&qo(n),u=!r&&!e&&Go(n),i=!r&&!e&&!u&&lf(n),o=r||e||u||i,f=o?Qt(n.length,In):[],a=f.length;for(var c in n)!t&&!Tn.call(n,c)||o&&("length"==c||u&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||di(c,a))||f.push(c);return f}function Yr(n){var t=n.length;return t?n[Ge(0,t-1)]:u}function Qr(n,t){return Wi(Iu(n),fe(t,0,n.length))}function Xr(n){return Wi(Iu(n))}function ne(n,t,r){(r!==u&&!Do(n[t],r)||r===u&&!(t in n))&&ie(n,t,r)}function te(n,t,r){var e=n[t];Tn.call(n,t)&&Do(e,r)&&(r!==u||t in n)||ie(n,t,r)}function re(n,t){for(var r=n.length;r--;)if(Do(n[r][0],t))return r;return-1}function ee(n,t,r,e){return he(n,(function(n,u,i){t(e,n,r(n),i)})),e}function ue(n,t){return n&&zu(t,Cf(t),n)}function ie(n,t,r){"__proto__"==t&&nt?nt(n,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):n[t]=r}function oe(n,t){for(var e=-1,i=t.length,o=r(i),f=null==n;++e<i;)o[e]=f?u:Rf(n,t[e]);return o}function fe(n,t,r){return n===n&&(r!==u&&(n=n<=r?n:r),t!==u&&(n=n>=t?n:t)),n}function ae(n,t,r,e,i,o){var f,a=1&t,c=2&t,l=4&t;if(r&&(f=i?r(n,e,i,o):r(n)),f!==u)return f;if(!nf(n))return n;var s=Po(n);if(s){if(f=function(n){var t=n.length,r=new n.constructor(t);t&&"string"==typeof n[0]&&Tn.call(n,"index")&&(r.index=n.index,r.input=n.input);return r}(n),!a)return Iu(n,f)}else{var h=vi(n),p=h==A||h==j;if(Go(n))return Au(n,a);if(h==R||h==d||p&&!i){if(f=c||p?{}:gi(n),!a)return c?function(n,t){return zu(n,pi(n),t)}(n,function(n,t){return n&&zu(t,Lf(t),n)}(f,n)):function(n,t){return zu(n,hi(n),t)}(n,ue(f,n))}else{if(!lt[h])return i?n:{};f=function(n,t,r){var e=n.constructor;switch(t){case W:return ju(n);case b:case m:return new e(+n);case B:return function(n,t){var r=t?ju(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.byteLength)}(n,r);case T:case U:case M:case $:case D:case N:case F:case q:case P:return ku(n,r);case k:return new e;case E:case S:return new e(n);case I:return function(n){var t=new n.constructor(n.source,gn.exec(n));return t.lastIndex=n.lastIndex,t}(n);case z:return new e;case C:return u=n,Mr?Rn(Mr.call(u)):{}}var u}(n,h,a)}}o||(o=new Hr);var v=o.get(n);if(v)return v;o.set(n,f),ff(n)?n.forEach((function(e){f.add(ae(e,t,r,e,n,o))})):rf(n)&&n.forEach((function(e,u){f.set(u,ae(e,t,r,u,n,o))}));var _=s?u:(l?c?ui:ei:c?Lf:Cf)(n);return zt(_||n,(function(e,u){_&&(e=n[u=e]),te(f,u,ae(e,t,r,u,n,o))})),f}function ce(n,t,r){var e=r.length;if(null==n)return!e;for(n=Rn(n);e--;){var i=r[e],o=t[i],f=n[i];if(f===u&&!(i in n)||!o(f))return!1}return!0}function le(n,t,r){if("function"!=typeof n)throw new zn(i);return zi((function(){n.apply(u,r)}),t)}function se(n,t,r,e){var u=-1,i=Wt,o=!0,f=n.length,a=[],c=t.length;if(!f)return a;r&&(t=Tt(t,nr(r))),e?(i=Bt,o=!1):t.length>=200&&(i=rr,o=!1,t=new Gr(t));n:for(;++u<f;){var l=n[u],s=null==r?l:r(l);if(l=e||0!==l?l:0,o&&s===s){for(var h=c;h--;)if(t[h]===s)continue n;a.push(l)}else i(t,s,e)||a.push(l)}return a}Dr.templateSettings={escape:Q,evaluate:X,interpolate:nn,variable:"",imports:{_:Dr}},Dr.prototype=Fr.prototype,Dr.prototype.constructor=Dr,qr.prototype=Nr(Fr.prototype),qr.prototype.constructor=qr,Pr.prototype=Nr(Fr.prototype),Pr.prototype.constructor=Pr,Vr.prototype.clear=function(){this.__data__=Ir?Ir(null):{},this.size=0},Vr.prototype.delete=function(n){var t=this.has(n)&&delete this.__data__[n];return this.size-=t?1:0,t},Vr.prototype.get=function(n){var t=this.__data__;if(Ir){var r=t[n];return r===o?u:r}return Tn.call(t,n)?t[n]:u},Vr.prototype.has=function(n){var t=this.__data__;return Ir?t[n]!==u:Tn.call(t,n)},Vr.prototype.set=function(n,t){var r=this.__data__;return this.size+=this.has(n)?0:1,r[n]=Ir&&t===u?o:t,this},Zr.prototype.clear=function(){this.__data__=[],this.size=0},Zr.prototype.delete=function(n){var t=this.__data__,r=re(t,n);return!(r<0)&&(r==t.length-1?t.pop():Jn.call(t,r,1),--this.size,!0)},Zr.prototype.get=function(n){var t=this.__data__,r=re(t,n);return r<0?u:t[r][1]},Zr.prototype.has=function(n){return re(this.__data__,n)>-1},Zr.prototype.set=function(n,t){var r=this.__data__,e=re(r,n);return e<0?(++this.size,r.push([n,t])):r[e][1]=t,this},Kr.prototype.clear=function(){this.size=0,this.__data__={hash:new Vr,map:new(kr||Zr),string:new Vr}},Kr.prototype.delete=function(n){var t=ci(this,n).delete(n);return this.size-=t?1:0,t},Kr.prototype.get=function(n){return ci(this,n).get(n)},Kr.prototype.has=function(n){return ci(this,n).has(n)},Kr.prototype.set=function(n,t){var r=ci(this,n),e=r.size;return r.set(n,t),this.size+=r.size==e?0:1,this},Gr.prototype.add=Gr.prototype.push=function(n){return this.__data__.set(n,o),this},Gr.prototype.has=function(n){return this.__data__.has(n)},Hr.prototype.clear=function(){this.__data__=new Zr,this.size=0},Hr.prototype.delete=function(n){var t=this.__data__,r=t.delete(n);return this.size=t.size,r},Hr.prototype.get=function(n){return this.__data__.get(n)},Hr.prototype.has=function(n){return this.__data__.has(n)},Hr.prototype.set=function(n,t){var r=this.__data__;if(r instanceof Zr){var e=r.__data__;if(!kr||e.length<199)return e.push([n,t]),this.size=++r.size,this;r=this.__data__=new Kr(e)}return r.set(n,t),this.size=r.size,this};var he=Lu(be),pe=Lu(me,!0);function ve(n,t){var r=!0;return he(n,(function(n,e,u){return r=!!t(n,e,u)})),r}function _e(n,t,r){for(var e=-1,i=n.length;++e<i;){var o=n[e],f=t(o);if(null!=f&&(a===u?f===f&&!cf(f):r(f,a)))var a=f,c=o}return c}function ge(n,t){var r=[];return he(n,(function(n,e,u){t(n,e,u)&&r.push(n)})),r}function ye(n,t,r,e,u){var i=-1,o=n.length;for(r||(r=yi),u||(u=[]);++i<o;){var f=n[i];t>0&&r(f)?t>1?ye(f,t-1,r,e,u):Ut(u,f):e||(u[u.length]=f)}return u}var de=Wu(),we=Wu(!0);function be(n,t){return n&&de(n,t,Cf)}function me(n,t){return n&&we(n,t,Cf)}function xe(n,t){return Lt(t,(function(t){return Yo(n[t])}))}function Ae(n,t){for(var r=0,e=(t=wu(t,n)).length;null!=n&&r<e;)n=n[Ti(t[r++])];return r&&r==e?n:u}function je(n,t,r){var e=t(n);return Po(n)?e:Ut(e,r(n))}function ke(n){return null==n?n===u?"[object Undefined]":"[object Null]":Xn&&Xn in Rn(n)?function(n){var t=Tn.call(n,Xn),r=n[Xn];try{n[Xn]=u;var e=!0}catch(o){}var i=$n.call(n);e&&(t?n[Xn]=r:delete n[Xn]);return i}(n):function(n){return $n.call(n)}(n)}function Ee(n,t){return n>t}function Re(n,t){return null!=n&&Tn.call(n,t)}function Oe(n,t){return null!=n&&t in Rn(n)}function Ie(n,t,e){for(var i=e?Bt:Wt,o=n[0].length,f=n.length,a=f,c=r(f),l=1/0,s=[];a--;){var h=n[a];a&&t&&(h=Tt(h,nr(t))),l=wr(h.length,l),c[a]=!e&&(t||o>=120&&h.length>=120)?new Gr(a&&h):u}h=n[0];var p=-1,v=c[0];n:for(;++p<o&&s.length<l;){var _=h[p],g=t?t(_):_;if(_=e||0!==_?_:0,!(v?rr(v,g):i(s,g,e))){for(a=f;--a;){var y=c[a];if(!(y?rr(y,g):i(n[a],g,e)))continue n}v&&v.push(g),s.push(_)}}return s}function ze(n,t,r){var e=null==(n=Ri(n,t=wu(t,n)))?n:n[Ti(Hi(t))];return null==e?u:Ot(e,n,r)}function Se(n){return tf(n)&&ke(n)==d}function Ce(n,t,r,e,i){return n===t||(null==n||null==t||!tf(n)&&!tf(t)?n!==n&&t!==t:function(n,t,r,e,i,o){var f=Po(n),a=Po(t),c=f?w:vi(n),l=a?w:vi(t),s=(c=c==d?R:c)==R,h=(l=l==d?R:l)==R,p=c==l;if(p&&Go(n)){if(!Go(t))return!1;f=!0,s=!1}if(p&&!s)return o||(o=new Hr),f||lf(n)?ti(n,t,r,e,i,o):function(n,t,r,e,u,i,o){switch(r){case B:if(n.byteLength!=t.byteLength||n.byteOffset!=t.byteOffset)return!1;n=n.buffer,t=t.buffer;case W:return!(n.byteLength!=t.byteLength||!i(new Vn(n),new Vn(t)));case b:case m:case E:return Do(+n,+t);case x:return n.name==t.name&&n.message==t.message;case I:case S:return n==t+"";case k:var f=cr;case z:var a=1&e;if(f||(f=hr),n.size!=t.size&&!a)return!1;var c=o.get(n);if(c)return c==t;e|=2,o.set(n,t);var l=ti(f(n),f(t),e,u,i,o);return o.delete(n),l;case C:if(Mr)return Mr.call(n)==Mr.call(t)}return!1}(n,t,c,r,e,i,o);if(!(1&r)){var v=s&&Tn.call(n,"__wrapped__"),_=h&&Tn.call(t,"__wrapped__");if(v||_){var g=v?n.value():n,y=_?t.value():t;return o||(o=new Hr),i(g,y,r,e,o)}}if(!p)return!1;return o||(o=new Hr),function(n,t,r,e,i,o){var f=1&r,a=ei(n),c=a.length,l=ei(t),s=l.length;if(c!=s&&!f)return!1;var h=c;for(;h--;){var p=a[h];if(!(f?p in t:Tn.call(t,p)))return!1}var v=o.get(n),_=o.get(t);if(v&&_)return v==t&&_==n;var g=!0;o.set(n,t),o.set(t,n);var y=f;for(;++h<c;){var d=n[p=a[h]],w=t[p];if(e)var b=f?e(w,d,p,t,n,o):e(d,w,p,n,t,o);if(!(b===u?d===w||i(d,w,r,e,o):b)){g=!1;break}y||(y="constructor"==p)}if(g&&!y){var m=n.constructor,x=t.constructor;m==x||!("constructor"in n)||!("constructor"in t)||"function"==typeof m&&m instanceof m&&"function"==typeof x&&x instanceof x||(g=!1)}return o.delete(n),o.delete(t),g}(n,t,r,e,i,o)}(n,t,r,e,Ce,i))}function Le(n,t,r,e){var i=r.length,o=i,f=!e;if(null==n)return!o;for(n=Rn(n);i--;){var a=r[i];if(f&&a[2]?a[1]!==n[a[0]]:!(a[0]in n))return!1}for(;++i<o;){var c=(a=r[i])[0],l=n[c],s=a[1];if(f&&a[2]){if(l===u&&!(c in n))return!1}else{var h=new Hr;if(e)var p=e(l,s,c,n,t,h);if(!(p===u?Ce(s,l,3,e,h):p))return!1}}return!0}function We(n){return!(!nf(n)||(t=n,Mn&&Mn in t))&&(Yo(n)?Fn:wn).test(Ui(n));var t}function Be(n){return"function"==typeof n?n:null==n?ua:"object"==typeof n?Po(n)?Ne(n[0],n[1]):De(n):pa(n)}function Te(n){if(!Ai(n))return Nt(n);var t=[];for(var r in Rn(n))Tn.call(n,r)&&"constructor"!=r&&t.push(r);return t}function Ue(n){if(!nf(n))return function(n){var t=[];if(null!=n)for(var r in Rn(n))t.push(r);return t}(n);var t=Ai(n),r=[];for(var e in n)("constructor"!=e||!t&&Tn.call(n,e))&&r.push(e);return r}function Me(n,t){return n<t}function $e(n,t){var e=-1,u=Zo(n)?r(n.length):[];return he(n,(function(n,r,i){u[++e]=t(n,r,i)})),u}function De(n){var t=li(n);return 1==t.length&&t[0][2]?ki(t[0][0],t[0][1]):function(r){return r===n||Le(r,n,t)}}function Ne(n,t){return bi(n)&&ji(t)?ki(Ti(n),t):function(r){var e=Rf(r,n);return e===u&&e===t?Of(r,n):Ce(t,e,3)}}function Fe(n,t,r,e,i){n!==t&&de(t,(function(o,f){if(i||(i=new Hr),nf(o))!function(n,t,r,e,i,o,f){var a=Oi(n,r),c=Oi(t,r),l=f.get(c);if(l)return void ne(n,r,l);var s=o?o(a,c,r+"",n,t,f):u,h=s===u;if(h){var p=Po(c),v=!p&&Go(c),_=!p&&!v&&lf(c);s=c,p||v||_?Po(a)?s=a:Ko(a)?s=Iu(a):v?(h=!1,s=Au(c,!0)):_?(h=!1,s=ku(c,!0)):s=[]:uf(c)||qo(c)?(s=a,qo(a)?s=df(a):nf(a)&&!Yo(a)||(s=gi(c))):h=!1}h&&(f.set(c,s),i(s,c,e,o,f),f.delete(c));ne(n,r,s)}(n,t,f,r,Fe,e,i);else{var a=e?e(Oi(n,f),o,f+"",n,t,i):u;a===u&&(a=o),ne(n,f,a)}}),Lf)}function qe(n,t){var r=n.length;if(r)return di(t+=t<0?r:0,r)?n[t]:u}function Pe(n,t,r){t=t.length?Tt(t,(function(n){return Po(n)?function(t){return Ae(t,1===n.length?n[0]:n)}:n})):[ua];var e=-1;t=Tt(t,nr(ai()));var u=$e(n,(function(n,r,u){var i=Tt(t,(function(t){return t(n)}));return{criteria:i,index:++e,value:n}}));return function(n,t){var r=n.length;for(n.sort(t);r--;)n[r]=n[r].value;return n}(u,(function(n,t){return function(n,t,r){var e=-1,u=n.criteria,i=t.criteria,o=u.length,f=r.length;for(;++e<o;){var a=Eu(u[e],i[e]);if(a)return e>=f?a:a*("desc"==r[e]?-1:1)}return n.index-t.index}(n,t,r)}))}function Ve(n,t,r){for(var e=-1,u=t.length,i={};++e<u;){var o=t[e],f=Ae(n,o);r(f,o)&&Xe(i,wu(o,n),f)}return i}function Ze(n,t,r,e){var u=e?Vt:Pt,i=-1,o=t.length,f=n;for(n===t&&(t=Iu(t)),r&&(f=Tt(n,nr(r)));++i<o;)for(var a=0,c=t[i],l=r?r(c):c;(a=u(f,l,a,e))>-1;)f!==n&&Jn.call(f,a,1),Jn.call(n,a,1);return n}function Ke(n,t){for(var r=n?t.length:0,e=r-1;r--;){var u=t[r];if(r==e||u!==i){var i=u;di(u)?Jn.call(n,u,1):su(n,u)}}return n}function Ge(n,t){return n+_t(xr()*(t-n+1))}function He(n,t){var r="";if(!n||t<1||t>v)return r;do{t%2&&(r+=n),(t=_t(t/2))&&(n+=n)}while(t);return r}function Je(n,t){return Si(Ei(n,t,ua),n+"")}function Ye(n){return Yr(Nf(n))}function Qe(n,t){var r=Nf(n);return Wi(r,fe(t,0,r.length))}function Xe(n,t,r,e){if(!nf(n))return n;for(var i=-1,o=(t=wu(t,n)).length,f=o-1,a=n;null!=a&&++i<o;){var c=Ti(t[i]),l=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return n;if(i!=f){var s=a[c];(l=e?e(s,c,a):u)===u&&(l=nf(s)?s:di(t[i+1])?[]:{})}te(a,c,l),a=a[c]}return n}var nu=zr?function(n,t){return zr.set(n,t),n}:ua,tu=nt?function(n,t){return nt(n,"toString",{configurable:!0,enumerable:!1,value:ta(t),writable:!0})}:ua;function ru(n){return Wi(Nf(n))}function eu(n,t,e){var u=-1,i=n.length;t<0&&(t=-t>i?0:i+t),(e=e>i?i:e)<0&&(e+=i),i=t>e?0:e-t>>>0,t>>>=0;for(var o=r(i);++u<i;)o[u]=n[u+t];return o}function uu(n,t){var r;return he(n,(function(n,e,u){return!(r=t(n,e,u))})),!!r}function iu(n,t,r){var e=0,u=null==n?e:n.length;if("number"==typeof t&&t===t&&u<=2147483647){for(;e<u;){var i=e+u>>>1,o=n[i];null!==o&&!cf(o)&&(r?o<=t:o<t)?e=i+1:u=i}return u}return ou(n,t,ua,r)}function ou(n,t,r,e){var i=0,o=null==n?0:n.length;if(0===o)return 0;for(var f=(t=r(t))!==t,a=null===t,c=cf(t),l=t===u;i<o;){var s=_t((i+o)/2),h=r(n[s]),p=h!==u,v=null===h,_=h===h,g=cf(h);if(f)var y=e||_;else y=l?_&&(e||p):a?_&&p&&(e||!v):c?_&&p&&!v&&(e||!g):!v&&!g&&(e?h<=t:h<t);y?i=s+1:o=s}return wr(o,4294967294)}function fu(n,t){for(var r=-1,e=n.length,u=0,i=[];++r<e;){var o=n[r],f=t?t(o):o;if(!r||!Do(f,a)){var a=f;i[u++]=0===o?0:o}}return i}function au(n){return"number"==typeof n?n:cf(n)?_:+n}function cu(n){if("string"==typeof n)return n;if(Po(n))return Tt(n,cu)+"";if(cf(n))return $r?$r.call(n):"";var t=n+"";return"0"==t&&1/n==-1/0?"-0":t}function lu(n,t,r){var e=-1,u=Wt,i=n.length,o=!0,f=[],a=f;if(r)o=!1,u=Bt;else if(i>=200){var c=t?null:Hu(n);if(c)return hr(c);o=!1,u=rr,a=new Gr}else a=t?[]:f;n:for(;++e<i;){var l=n[e],s=t?t(l):l;if(l=r||0!==l?l:0,o&&s===s){for(var h=a.length;h--;)if(a[h]===s)continue n;t&&a.push(s),f.push(l)}else u(a,s,r)||(a!==f&&a.push(s),f.push(l))}return f}function su(n,t){return null==(n=Ri(n,t=wu(t,n)))||delete n[Ti(Hi(t))]}function hu(n,t,r,e){return Xe(n,t,r(Ae(n,t)),e)}function pu(n,t,r,e){for(var u=n.length,i=e?u:-1;(e?i--:++i<u)&&t(n[i],i,n););return r?eu(n,e?0:i,e?i+1:u):eu(n,e?i+1:0,e?u:i)}function vu(n,t){var r=n;return r instanceof Pr&&(r=r.value()),Mt(t,(function(n,t){return t.func.apply(t.thisArg,Ut([n],t.args))}),r)}function _u(n,t,e){var u=n.length;if(u<2)return u?lu(n[0]):[];for(var i=-1,o=r(u);++i<u;)for(var f=n[i],a=-1;++a<u;)a!=i&&(o[i]=se(o[i]||f,n[a],t,e));return lu(ye(o,1),t,e)}function gu(n,t,r){for(var e=-1,i=n.length,o=t.length,f={};++e<i;){var a=e<o?t[e]:u;r(f,n[e],a)}return f}function yu(n){return Ko(n)?n:[]}function du(n){return"function"==typeof n?n:ua}function wu(n,t){return Po(n)?n:bi(n,t)?[n]:Bi(wf(n))}var bu=Je;function mu(n,t,r){var e=n.length;return r=r===u?e:r,!t&&r>=e?n:eu(n,t,r)}var xu=et||function(n){return gt.clearTimeout(n)};function Au(n,t){if(t)return n.slice();var r=n.length,e=Zn?Zn(r):new n.constructor(r);return n.copy(e),e}function ju(n){var t=new n.constructor(n.byteLength);return new Vn(t).set(new Vn(n)),t}function ku(n,t){var r=t?ju(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.length)}function Eu(n,t){if(n!==t){var r=n!==u,e=null===n,i=n===n,o=cf(n),f=t!==u,a=null===t,c=t===t,l=cf(t);if(!a&&!l&&!o&&n>t||o&&f&&c&&!a&&!l||e&&f&&c||!r&&c||!i)return 1;if(!e&&!o&&!l&&n<t||l&&r&&i&&!e&&!o||a&&r&&i||!f&&i||!c)return-1}return 0}function Ru(n,t,e,u){for(var i=-1,o=n.length,f=e.length,a=-1,c=t.length,l=Ht(o-f,0),s=r(c+l),h=!u;++a<c;)s[a]=t[a];for(;++i<f;)(h||i<o)&&(s[e[i]]=n[i]);for(;l--;)s[a++]=n[i++];return s}function Ou(n,t,e,u){for(var i=-1,o=n.length,f=-1,a=e.length,c=-1,l=t.length,s=Ht(o-a,0),h=r(s+l),p=!u;++i<s;)h[i]=n[i];for(var v=i;++c<l;)h[v+c]=t[c];for(;++f<a;)(p||i<o)&&(h[v+e[f]]=n[i++]);return h}function Iu(n,t){var e=-1,u=n.length;for(t||(t=r(u));++e<u;)t[e]=n[e];return t}function zu(n,t,r,e){var i=!r;r||(r={});for(var o=-1,f=t.length;++o<f;){var a=t[o],c=e?e(r[a],n[a],a,r,n):u;c===u&&(c=n[a]),i?ie(r,a,c):te(r,a,c)}return r}function Su(n,t){return function(r,e){var u=Po(r)?It:ee,i=t?t():{};return u(r,n,ai(e,2),i)}}function Cu(n){return Je((function(t,r){var e=-1,i=r.length,o=i>1?r[i-1]:u,f=i>2?r[2]:u;for(o=n.length>3&&"function"==typeof o?(i--,o):u,f&&wi(r[0],r[1],f)&&(o=i<3?u:o,i=1),t=Rn(t);++e<i;){var a=r[e];a&&n(t,a,e,o)}return t}))}function Lu(n,t){return function(r,e){if(null==r)return r;if(!Zo(r))return n(r,e);for(var u=r.length,i=t?u:-1,o=Rn(r);(t?i--:++i<u)&&!1!==e(o[i],i,o););return r}}function Wu(n){return function(t,r,e){for(var u=-1,i=Rn(t),o=e(t),f=o.length;f--;){var a=o[n?f:++u];if(!1===r(i[a],a,i))break}return t}}function Bu(n){return function(t){var r=ar(t=wf(t))?_r(t):u,e=r?r[0]:t.charAt(0),i=r?mu(r,1).join(""):t.slice(1);return e[n]()+i}}function Tu(n){return function(t){return Mt(Qf(Pf(t).replace(tt,"")),n,"")}}function Uu(n){return function(){var t=arguments;switch(t.length){case 0:return new n;case 1:return new n(t[0]);case 2:return new n(t[0],t[1]);case 3:return new n(t[0],t[1],t[2]);case 4:return new n(t[0],t[1],t[2],t[3]);case 5:return new n(t[0],t[1],t[2],t[3],t[4]);case 6:return new n(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new n(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=Nr(n.prototype),e=n.apply(r,t);return nf(e)?e:r}}function Mu(n){return function(t,r,e){var i=Rn(t);if(!Zo(t)){var o=ai(r,3);t=Cf(t),r=function(n){return o(i[n],n,i)}}var f=n(t,r,e);return f>-1?i[o?t[f]:f]:u}}function $u(n){return ri((function(t){var r=t.length,e=r,o=qr.prototype.thru;for(n&&t.reverse();e--;){var f=t[e];if("function"!=typeof f)throw new zn(i);if(o&&!a&&"wrapper"==oi(f))var a=new qr([],!0)}for(e=a?e:r;++e<r;){var c=oi(f=t[e]),l="wrapper"==c?ii(f):u;a=l&&mi(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?a[oi(l[0])].apply(a,l[3]):1==f.length&&mi(f)?a[c]():a.thru(f)}return function(){var n=arguments,e=n[0];if(a&&1==n.length&&Po(e))return a.plant(e).value();for(var u=0,i=r?t[u].apply(this,n):e;++u<r;)i=t[u].call(this,i);return i}}))}function Du(n,t,e,i,o,f,a,c,l,h){var p=t&s,v=1&t,_=2&t,g=24&t,y=512&t,d=_?u:Uu(n);return function s(){for(var w=arguments.length,b=r(w),m=w;m--;)b[m]=arguments[m];if(g)var x=fi(s),A=function(n,t){for(var r=n.length,e=0;r--;)n[r]===t&&++e;return e}(b,x);if(i&&(b=Ru(b,i,o,g)),f&&(b=Ou(b,f,a,g)),w-=A,g&&w<h){var j=sr(b,x);return Ku(n,t,Du,s.placeholder,e,b,j,c,l,h-w)}var k=v?e:this,E=_?k[n]:n;return w=b.length,c?b=function(n,t){var r=n.length,e=wr(t.length,r),i=Iu(n);for(;e--;){var o=t[e];n[e]=di(o,r)?i[o]:u}return n}(b,c):y&&w>1&&b.reverse(),p&&l<w&&(b.length=l),this&&this!==gt&&this instanceof s&&(E=d||Uu(E)),E.apply(k,b)}}function Nu(n,t){return function(r,e){return function(n,t,r,e){return be(n,(function(n,u,i){t(e,r(n),u,i)})),e}(r,n,t(e),{})}}function Fu(n,t){return function(r,e){var i;if(r===u&&e===u)return t;if(r!==u&&(i=r),e!==u){if(i===u)return e;"string"==typeof r||"string"==typeof e?(r=cu(r),e=cu(e)):(r=au(r),e=au(e)),i=n(r,e)}return i}}function qu(n){return ri((function(t){return t=Tt(t,nr(ai())),Je((function(r){var e=this;return n(t,(function(n){return Ot(n,e,r)}))}))}))}function Pu(n,t){var r=(t=t===u?" ":cu(t)).length;if(r<2)return r?He(t,n):t;var e=He(t,vt(n/vr(t)));return ar(t)?mu(_r(e),0,n).join(""):e.slice(0,n)}function Vu(n){return function(t,e,i){return i&&"number"!=typeof i&&wi(t,e,i)&&(e=i=u),t=vf(t),e===u?(e=t,t=0):e=vf(e),function(n,t,e,u){for(var i=-1,o=Ht(vt((t-n)/(e||1)),0),f=r(o);o--;)f[u?o:++i]=n,n+=e;return f}(t,e,i=i===u?t<e?1:-1:vf(i),n)}}function Zu(n){return function(t,r){return"string"==typeof t&&"string"==typeof r||(t=yf(t),r=yf(r)),n(t,r)}}function Ku(n,t,r,e,i,o,f,a,s,h){var p=8&t;t|=p?c:l,4&(t&=~(p?l:c))||(t&=-4);var v=[n,t,i,p?o:u,p?f:u,p?u:o,p?u:f,a,s,h],_=r.apply(u,v);return mi(n)&&Ii(_,v),_.placeholder=e,Ci(_,n,t)}function Gu(n){var t=En[n];return function(n,r){if(n=yf(n),(r=null==r?0:wr(_f(r),292))&&bt(n)){var e=(wf(n)+"e").split("e");return+((e=(wf(t(e[0]+"e"+(+e[1]+r)))+"e").split("e"))[0]+"e"+(+e[1]-r))}return t(n)}}var Hu=Rr&&1/hr(new Rr([,-0]))[1]==p?function(n){return new Rr(n)}:ca;function Ju(n){return function(t){var r=vi(t);return r==k?cr(t):r==z?pr(t):function(n,t){return Tt(t,(function(t){return[t,n[t]]}))}(t,n(t))}}function Yu(n,t,e,o,p,v,_,g){var y=2&t;if(!y&&"function"!=typeof n)throw new zn(i);var d=o?o.length:0;if(d||(t&=-97,o=p=u),_=_===u?_:Ht(_f(_),0),g=g===u?g:_f(g),d-=p?p.length:0,t&l){var w=o,b=p;o=p=u}var m=y?u:ii(n),x=[n,t,e,o,p,w,b,v,_,g];if(m&&function(n,t){var r=n[1],e=t[1],u=r|e,i=u<131,o=e==s&&8==r||e==s&&r==h&&n[7].length<=t[8]||384==e&&t[7].length<=t[8]&&8==r;if(!i&&!o)return n;1&e&&(n[2]=t[2],u|=1&r?0:4);var a=t[3];if(a){var c=n[3];n[3]=c?Ru(c,a,t[4]):a,n[4]=c?sr(n[3],f):t[4]}(a=t[5])&&(c=n[5],n[5]=c?Ou(c,a,t[6]):a,n[6]=c?sr(n[5],f):t[6]);(a=t[7])&&(n[7]=a);e&s&&(n[8]=null==n[8]?t[8]:wr(n[8],t[8]));null==n[9]&&(n[9]=t[9]);n[0]=t[0],n[1]=u}(x,m),n=x[0],t=x[1],e=x[2],o=x[3],p=x[4],!(g=x[9]=x[9]===u?y?0:n.length:Ht(x[9]-d,0))&&24&t&&(t&=-25),t&&1!=t)A=8==t||t==a?function(n,t,e){var i=Uu(n);return function o(){for(var f=arguments.length,a=r(f),c=f,l=fi(o);c--;)a[c]=arguments[c];var s=f<3&&a[0]!==l&&a[f-1]!==l?[]:sr(a,l);return(f-=s.length)<e?Ku(n,t,Du,o.placeholder,u,a,s,u,u,e-f):Ot(this&&this!==gt&&this instanceof o?i:n,this,a)}}(n,t,g):t!=c&&33!=t||p.length?Du.apply(u,x):function(n,t,e,u){var i=1&t,o=Uu(n);return function t(){for(var f=-1,a=arguments.length,c=-1,l=u.length,s=r(l+a),h=this&&this!==gt&&this instanceof t?o:n;++c<l;)s[c]=u[c];for(;a--;)s[c++]=arguments[++f];return Ot(h,i?e:this,s)}}(n,t,e,o);else var A=function(n,t,r){var e=1&t,u=Uu(n);return function t(){return(this&&this!==gt&&this instanceof t?u:n).apply(e?r:this,arguments)}}(n,t,e);return Ci((m?nu:Ii)(A,x),n,t)}function Qu(n,t,r,e){return n===u||Do(n,Ln[r])&&!Tn.call(e,r)?t:n}function Xu(n,t,r,e,i,o){return nf(n)&&nf(t)&&(o.set(t,n),Fe(n,t,u,Xu,o),o.delete(t)),n}function ni(n){return uf(n)?u:n}function ti(n,t,r,e,i,o){var f=1&r,a=n.length,c=t.length;if(a!=c&&!(f&&c>a))return!1;var l=o.get(n),s=o.get(t);if(l&&s)return l==t&&s==n;var h=-1,p=!0,v=2&r?new Gr:u;for(o.set(n,t),o.set(t,n);++h<a;){var _=n[h],g=t[h];if(e)var y=f?e(g,_,h,t,n,o):e(_,g,h,n,t,o);if(y!==u){if(y)continue;p=!1;break}if(v){if(!Dt(t,(function(n,t){if(!rr(v,t)&&(_===n||i(_,n,r,e,o)))return v.push(t)}))){p=!1;break}}else if(_!==g&&!i(_,g,r,e,o)){p=!1;break}}return o.delete(n),o.delete(t),p}function ri(n){return Si(Ei(n,u,Pi),n+"")}function ei(n){return je(n,Cf,hi)}function ui(n){return je(n,Lf,pi)}var ii=zr?function(n){return zr.get(n)}:ca;function oi(n){for(var t=n.name+"",r=Sr[t],e=Tn.call(Sr,t)?r.length:0;e--;){var u=r[e],i=u.func;if(null==i||i==n)return u.name}return t}function fi(n){return(Tn.call(Dr,"placeholder")?Dr:n).placeholder}function ai(){var n=Dr.iteratee||ia;return n=n===ia?Be:n,arguments.length?n(arguments[0],arguments[1]):n}function ci(n,t){var r=n.__data__;return function(n){var t=typeof n;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==n:null===n}(t)?r["string"==typeof t?"string":"hash"]:r.map}function li(n){for(var t=Cf(n),r=t.length;r--;){var e=t[r],u=n[e];t[r]=[e,u,ji(u)]}return t}function si(n,t){var r=function(n,t){return null==n?u:n[t]}(n,t);return We(r)?r:u}var hi=yt?function(n){return null==n?[]:(n=Rn(n),Lt(yt(n),(function(t){return Hn.call(n,t)})))}:ga,pi=yt?function(n){for(var t=[];n;)Ut(t,hi(n)),n=Kn(n);return t}:ga,vi=ke;function _i(n,t,r){for(var e=-1,u=(t=wu(t,n)).length,i=!1;++e<u;){var o=Ti(t[e]);if(!(i=null!=n&&r(n,o)))break;n=n[o]}return i||++e!=u?i:!!(u=null==n?0:n.length)&&Xo(u)&&di(o,u)&&(Po(n)||qo(n))}function gi(n){return"function"!=typeof n.constructor||Ai(n)?{}:Nr(Kn(n))}function yi(n){return Po(n)||qo(n)||!!(Yn&&n&&n[Yn])}function di(n,t){var r=typeof n;return!!(t=null==t?v:t)&&("number"==r||"symbol"!=r&&mn.test(n))&&n>-1&&n%1==0&&n<t}function wi(n,t,r){if(!nf(r))return!1;var e=typeof t;return!!("number"==e?Zo(r)&&di(t,r.length):"string"==e&&t in r)&&Do(r[t],n)}function bi(n,t){if(Po(n))return!1;var r=typeof n;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=n&&!cf(n))||(rn.test(n)||!tn.test(n)||null!=t&&n in Rn(t))}function mi(n){var t=oi(n),r=Dr[t];if("function"!=typeof r||!(t in Pr.prototype))return!1;if(n===r)return!0;var e=ii(r);return!!e&&n===e[0]}(jr&&vi(new jr(new ArrayBuffer(1)))!=B||kr&&vi(new kr)!=k||Er&&vi(Er.resolve())!=O||Rr&&vi(new Rr)!=z||Or&&vi(new Or)!=L)&&(vi=function(n){var t=ke(n),r=t==R?n.constructor:u,e=r?Ui(r):"";if(e)switch(e){case Cr:return B;case Lr:return k;case Wr:return O;case Br:return z;case Tr:return L}return t});var xi=Wn?Yo:ya;function Ai(n){var t=n&&n.constructor;return n===("function"==typeof t&&t.prototype||Ln)}function ji(n){return n===n&&!nf(n)}function ki(n,t){return function(r){return null!=r&&(r[n]===t&&(t!==u||n in Rn(r)))}}function Ei(n,t,e){return t=Ht(t===u?n.length-1:t,0),function(){for(var u=arguments,i=-1,o=Ht(u.length-t,0),f=r(o);++i<o;)f[i]=u[t+i];i=-1;for(var a=r(t+1);++i<t;)a[i]=u[i];return a[t]=e(f),Ot(n,this,a)}}function Ri(n,t){return t.length<2?n:Ae(n,eu(t,0,-1))}function Oi(n,t){if(("constructor"!==t||"function"!==typeof n[t])&&"__proto__"!=t)return n[t]}var Ii=Li(nu),zi=st||function(n,t){return gt.setTimeout(n,t)},Si=Li(tu);function Ci(n,t,r){var e=t+"";return Si(n,function(n,t){var r=t.length;if(!r)return n;var e=r-1;return t[e]=(r>1?"& ":"")+t[e],t=t.join(r>2?", ":" "),n.replace(cn,"{\n/* [wrapped with "+t+"] */\n")}(e,function(n,t){return zt(y,(function(r){var e="_."+r[0];t&r[1]&&!Wt(n,e)&&n.push(e)})),n.sort()}(function(n){var t=n.match(ln);return t?t[1].split(sn):[]}(e),r)))}function Li(n){var t=0,r=0;return function(){var e=br(),i=16-(e-r);if(r=e,i>0){if(++t>=800)return arguments[0]}else t=0;return n.apply(u,arguments)}}function Wi(n,t){var r=-1,e=n.length,i=e-1;for(t=t===u?e:t;++r<t;){var o=Ge(r,i),f=n[o];n[o]=n[r],n[r]=f}return n.length=t,n}var Bi=function(n){var t=Wo(n,(function(n){return 500===r.size&&r.clear(),n})),r=t.cache;return t}((function(n){var t=[];return 46===n.charCodeAt(0)&&t.push(""),n.replace(en,(function(n,r,e,u){t.push(e?u.replace(vn,"$1"):r||n)})),t}));function Ti(n){if("string"==typeof n||cf(n))return n;var t=n+"";return"0"==t&&1/n==-1/0?"-0":t}function Ui(n){if(null!=n){try{return Bn.call(n)}catch(t){}try{return n+""}catch(t){}}return""}function Mi(n){if(n instanceof Pr)return n.clone();var t=new qr(n.__wrapped__,n.__chain__);return t.__actions__=Iu(n.__actions__),t.__index__=n.__index__,t.__values__=n.__values__,t}var $i=Je((function(n,t){return Ko(n)?se(n,ye(t,1,Ko,!0)):[]})),Di=Je((function(n,t){var r=Hi(t);return Ko(r)&&(r=u),Ko(n)?se(n,ye(t,1,Ko,!0),ai(r,2)):[]})),Ni=Je((function(n,t){var r=Hi(t);return Ko(r)&&(r=u),Ko(n)?se(n,ye(t,1,Ko,!0),u,r):[]}));function Fi(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=null==r?0:_f(r);return u<0&&(u=Ht(e+u,0)),qt(n,ai(t,3),u)}function qi(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var i=e-1;return r!==u&&(i=_f(r),i=r<0?Ht(e+i,0):wr(i,e-1)),qt(n,ai(t,3),i,!0)}function Pi(n){return(null==n?0:n.length)?ye(n,1):[]}function Vi(n){return n&&n.length?n[0]:u}var Zi=Je((function(n){var t=Tt(n,yu);return t.length&&t[0]===n[0]?Ie(t):[]})),Ki=Je((function(n){var t=Hi(n),r=Tt(n,yu);return t===Hi(r)?t=u:r.pop(),r.length&&r[0]===n[0]?Ie(r,ai(t,2)):[]})),Gi=Je((function(n){var t=Hi(n),r=Tt(n,yu);return(t="function"==typeof t?t:u)&&r.pop(),r.length&&r[0]===n[0]?Ie(r,u,t):[]}));function Hi(n){var t=null==n?0:n.length;return t?n[t-1]:u}var Ji=Je(Yi);function Yi(n,t){return n&&n.length&&t&&t.length?Ze(n,t):n}var Qi=ri((function(n,t){var r=null==n?0:n.length,e=oe(n,t);return Ke(n,Tt(t,(function(n){return di(n,r)?+n:n})).sort(Eu)),e}));function Xi(n){return null==n?n:Ar.call(n)}var no=Je((function(n){return lu(ye(n,1,Ko,!0))})),to=Je((function(n){var t=Hi(n);return Ko(t)&&(t=u),lu(ye(n,1,Ko,!0),ai(t,2))})),ro=Je((function(n){var t=Hi(n);return t="function"==typeof t?t:u,lu(ye(n,1,Ko,!0),u,t)}));function eo(n){if(!n||!n.length)return[];var t=0;return n=Lt(n,(function(n){if(Ko(n))return t=Ht(n.length,t),!0})),Qt(t,(function(t){return Tt(n,Gt(t))}))}function uo(n,t){if(!n||!n.length)return[];var r=eo(n);return null==t?r:Tt(r,(function(n){return Ot(t,u,n)}))}var io=Je((function(n,t){return Ko(n)?se(n,t):[]})),oo=Je((function(n){return _u(Lt(n,Ko))})),fo=Je((function(n){var t=Hi(n);return Ko(t)&&(t=u),_u(Lt(n,Ko),ai(t,2))})),ao=Je((function(n){var t=Hi(n);return t="function"==typeof t?t:u,_u(Lt(n,Ko),u,t)})),co=Je(eo);var lo=Je((function(n){var t=n.length,r=t>1?n[t-1]:u;return r="function"==typeof r?(n.pop(),r):u,uo(n,r)}));function so(n){var t=Dr(n);return t.__chain__=!0,t}function ho(n,t){return t(n)}var po=ri((function(n){var t=n.length,r=t?n[0]:0,e=this.__wrapped__,i=function(t){return oe(t,n)};return!(t>1||this.__actions__.length)&&e instanceof Pr&&di(r)?((e=e.slice(r,+r+(t?1:0))).__actions__.push({func:ho,args:[i],thisArg:u}),new qr(e,this.__chain__).thru((function(n){return t&&!n.length&&n.push(u),n}))):this.thru(i)}));var vo=Su((function(n,t,r){Tn.call(n,r)?++n[r]:ie(n,r,1)}));var _o=Mu(Fi),go=Mu(qi);function yo(n,t){return(Po(n)?zt:he)(n,ai(t,3))}function wo(n,t){return(Po(n)?St:pe)(n,ai(t,3))}var bo=Su((function(n,t,r){Tn.call(n,r)?n[r].push(t):ie(n,r,[t])}));var mo=Je((function(n,t,e){var u=-1,i="function"==typeof t,o=Zo(n)?r(n.length):[];return he(n,(function(n){o[++u]=i?Ot(t,n,e):ze(n,t,e)})),o})),xo=Su((function(n,t,r){ie(n,r,t)}));function Ao(n,t){return(Po(n)?Tt:$e)(n,ai(t,3))}var jo=Su((function(n,t,r){n[r?0:1].push(t)}),(function(){return[[],[]]}));var ko=Je((function(n,t){if(null==n)return[];var r=t.length;return r>1&&wi(n,t[0],t[1])?t=[]:r>2&&wi(t[0],t[1],t[2])&&(t=[t[0]]),Pe(n,ye(t,1),[])})),Eo=it||function(){return gt.Date.now()};function Ro(n,t,r){return t=r?u:t,t=n&&null==t?n.length:t,Yu(n,s,u,u,u,u,t)}function Oo(n,t){var r;if("function"!=typeof t)throw new zn(i);return n=_f(n),function(){return--n>0&&(r=t.apply(this,arguments)),n<=1&&(t=u),r}}var Io=Je((function(n,t,r){var e=1;if(r.length){var u=sr(r,fi(Io));e|=c}return Yu(n,e,t,r,u)})),zo=Je((function(n,t,r){var e=3;if(r.length){var u=sr(r,fi(zo));e|=c}return Yu(t,e,n,r,u)}));function So(n,t,r){var e,o,f,a,c,l,s=0,h=!1,p=!1,v=!0;if("function"!=typeof n)throw new zn(i);function _(t){var r=e,i=o;return e=o=u,s=t,a=n.apply(i,r)}function g(n){var r=n-l;return l===u||r>=t||r<0||p&&n-s>=f}function y(){var n=Eo();if(g(n))return d(n);c=zi(y,function(n){var r=t-(n-l);return p?wr(r,f-(n-s)):r}(n))}function d(n){return c=u,v&&e?_(n):(e=o=u,a)}function w(){var n=Eo(),r=g(n);if(e=arguments,o=this,l=n,r){if(c===u)return function(n){return s=n,c=zi(y,t),h?_(n):a}(l);if(p)return xu(c),c=zi(y,t),_(l)}return c===u&&(c=zi(y,t)),a}return t=yf(t)||0,nf(r)&&(h=!!r.leading,f=(p="maxWait"in r)?Ht(yf(r.maxWait)||0,t):f,v="trailing"in r?!!r.trailing:v),w.cancel=function(){c!==u&&xu(c),s=0,e=l=o=c=u},w.flush=function(){return c===u?a:d(Eo())},w}var Co=Je((function(n,t){return le(n,1,t)})),Lo=Je((function(n,t,r){return le(n,yf(t)||0,r)}));function Wo(n,t){if("function"!=typeof n||null!=t&&"function"!=typeof t)throw new zn(i);var r=function(){var e=arguments,u=t?t.apply(this,e):e[0],i=r.cache;if(i.has(u))return i.get(u);var o=n.apply(this,e);return r.cache=i.set(u,o)||i,o};return r.cache=new(Wo.Cache||Kr),r}function Bo(n){if("function"!=typeof n)throw new zn(i);return function(){var t=arguments;switch(t.length){case 0:return!n.call(this);case 1:return!n.call(this,t[0]);case 2:return!n.call(this,t[0],t[1]);case 3:return!n.call(this,t[0],t[1],t[2])}return!n.apply(this,t)}}Wo.Cache=Kr;var To=bu((function(n,t){var r=(t=1==t.length&&Po(t[0])?Tt(t[0],nr(ai())):Tt(ye(t,1),nr(ai()))).length;return Je((function(e){for(var u=-1,i=wr(e.length,r);++u<i;)e[u]=t[u].call(this,e[u]);return Ot(n,this,e)}))})),Uo=Je((function(n,t){var r=sr(t,fi(Uo));return Yu(n,c,u,t,r)})),Mo=Je((function(n,t){var r=sr(t,fi(Mo));return Yu(n,l,u,t,r)})),$o=ri((function(n,t){return Yu(n,h,u,u,u,t)}));function Do(n,t){return n===t||n!==n&&t!==t}var No=Zu(Ee),Fo=Zu((function(n,t){return n>=t})),qo=Se(function(){return arguments}())?Se:function(n){return tf(n)&&Tn.call(n,"callee")&&!Hn.call(n,"callee")},Po=r.isArray,Vo=xt?nr(xt):function(n){return tf(n)&&ke(n)==W};function Zo(n){return null!=n&&Xo(n.length)&&!Yo(n)}function Ko(n){return tf(n)&&Zo(n)}var Go=dt||ya,Ho=At?nr(At):function(n){return tf(n)&&ke(n)==m};function Jo(n){if(!tf(n))return!1;var t=ke(n);return t==x||"[object DOMException]"==t||"string"==typeof n.message&&"string"==typeof n.name&&!uf(n)}function Yo(n){if(!nf(n))return!1;var t=ke(n);return t==A||t==j||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Qo(n){return"number"==typeof n&&n==_f(n)}function Xo(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=v}function nf(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}function tf(n){return null!=n&&"object"==typeof n}var rf=jt?nr(jt):function(n){return tf(n)&&vi(n)==k};function ef(n){return"number"==typeof n||tf(n)&&ke(n)==E}function uf(n){if(!tf(n)||ke(n)!=R)return!1;var t=Kn(n);if(null===t)return!0;var r=Tn.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Bn.call(r)==Dn}var of=kt?nr(kt):function(n){return tf(n)&&ke(n)==I};var ff=Et?nr(Et):function(n){return tf(n)&&vi(n)==z};function af(n){return"string"==typeof n||!Po(n)&&tf(n)&&ke(n)==S}function cf(n){return"symbol"==typeof n||tf(n)&&ke(n)==C}var lf=Rt?nr(Rt):function(n){return tf(n)&&Xo(n.length)&&!!ct[ke(n)]};var sf=Zu(Me),hf=Zu((function(n,t){return n<=t}));function pf(n){if(!n)return[];if(Zo(n))return af(n)?_r(n):Iu(n);if(Qn&&n[Qn])return function(n){for(var t,r=[];!(t=n.next()).done;)r.push(t.value);return r}(n[Qn]());var t=vi(n);return(t==k?cr:t==z?hr:Nf)(n)}function vf(n){return n?(n=yf(n))===p||n===-1/0?17976931348623157e292*(n<0?-1:1):n===n?n:0:0===n?n:0}function _f(n){var t=vf(n),r=t%1;return t===t?r?t-r:t:0}function gf(n){return n?fe(_f(n),0,g):0}function yf(n){if("number"==typeof n)return n;if(cf(n))return _;if(nf(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=nf(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=Xt(n);var r=dn.test(n);return r||bn.test(n)?pt(n.slice(2),r?2:8):yn.test(n)?_:+n}function df(n){return zu(n,Lf(n))}function wf(n){return null==n?"":cu(n)}var bf=Cu((function(n,t){if(Ai(t)||Zo(t))zu(t,Cf(t),n);else for(var r in t)Tn.call(t,r)&&te(n,r,t[r])})),mf=Cu((function(n,t){zu(t,Lf(t),n)})),xf=Cu((function(n,t,r,e){zu(t,Lf(t),n,e)})),Af=Cu((function(n,t,r,e){zu(t,Cf(t),n,e)})),jf=ri(oe);var kf=Je((function(n,t){n=Rn(n);var r=-1,e=t.length,i=e>2?t[2]:u;for(i&&wi(t[0],t[1],i)&&(e=1);++r<e;)for(var o=t[r],f=Lf(o),a=-1,c=f.length;++a<c;){var l=f[a],s=n[l];(s===u||Do(s,Ln[l])&&!Tn.call(n,l))&&(n[l]=o[l])}return n})),Ef=Je((function(n){return n.push(u,Xu),Ot(Bf,u,n)}));function Rf(n,t,r){var e=null==n?u:Ae(n,t);return e===u?r:e}function Of(n,t){return null!=n&&_i(n,t,Oe)}var If=Nu((function(n,t,r){null!=t&&"function"!=typeof t.toString&&(t=$n.call(t)),n[t]=r}),ta(ua)),zf=Nu((function(n,t,r){null!=t&&"function"!=typeof t.toString&&(t=$n.call(t)),Tn.call(n,t)?n[t].push(r):n[t]=[r]}),ai),Sf=Je(ze);function Cf(n){return Zo(n)?Jr(n):Te(n)}function Lf(n){return Zo(n)?Jr(n,!0):Ue(n)}var Wf=Cu((function(n,t,r){Fe(n,t,r)})),Bf=Cu((function(n,t,r,e){Fe(n,t,r,e)})),Tf=ri((function(n,t){var r={};if(null==n)return r;var e=!1;t=Tt(t,(function(t){return t=wu(t,n),e||(e=t.length>1),t})),zu(n,ui(n),r),e&&(r=ae(r,7,ni));for(var u=t.length;u--;)su(r,t[u]);return r}));var Uf=ri((function(n,t){return null==n?{}:function(n,t){return Ve(n,t,(function(t,r){return Of(n,r)}))}(n,t)}));function Mf(n,t){if(null==n)return{};var r=Tt(ui(n),(function(n){return[n]}));return t=ai(t),Ve(n,r,(function(n,r){return t(n,r[0])}))}var $f=Ju(Cf),Df=Ju(Lf);function Nf(n){return null==n?[]:tr(n,Cf(n))}var Ff=Tu((function(n,t,r){return t=t.toLowerCase(),n+(r?qf(t):t)}));function qf(n){return Yf(wf(n).toLowerCase())}function Pf(n){return(n=wf(n))&&n.replace(xn,ir).replace(rt,"")}var Vf=Tu((function(n,t,r){return n+(r?"-":"")+t.toLowerCase()})),Zf=Tu((function(n,t,r){return n+(r?" ":"")+t.toLowerCase()})),Kf=Bu("toLowerCase");var Gf=Tu((function(n,t,r){return n+(r?"_":"")+t.toLowerCase()}));var Hf=Tu((function(n,t,r){return n+(r?" ":"")+Yf(t)}));var Jf=Tu((function(n,t,r){return n+(r?" ":"")+t.toUpperCase()})),Yf=Bu("toUpperCase");function Qf(n,t,r){return n=wf(n),(t=r?u:t)===u?function(n){return ot.test(n)}(n)?function(n){return n.match(ut)||[]}(n):function(n){return n.match(hn)||[]}(n):n.match(t)||[]}var Xf=Je((function(n,t){try{return Ot(n,u,t)}catch(r){return Jo(r)?r:new an(r)}})),na=ri((function(n,t){return zt(t,(function(t){t=Ti(t),ie(n,t,Io(n[t],n))})),n}));function ta(n){return function(){return n}}var ra=$u(),ea=$u(!0);function ua(n){return n}function ia(n){return Be("function"==typeof n?n:ae(n,1))}var oa=Je((function(n,t){return function(r){return ze(r,n,t)}})),fa=Je((function(n,t){return function(r){return ze(n,r,t)}}));function aa(n,t,r){var e=Cf(t),u=xe(t,e);null!=r||nf(t)&&(u.length||!e.length)||(r=t,t=n,n=this,u=xe(t,Cf(t)));var i=!(nf(r)&&"chain"in r)||!!r.chain,o=Yo(n);return zt(u,(function(r){var e=t[r];n[r]=e,o&&(n.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=n(this.__wrapped__);return(r.__actions__=Iu(this.__actions__)).push({func:e,args:arguments,thisArg:n}),r.__chain__=t,r}return e.apply(n,Ut([this.value()],arguments))})})),n}function ca(){}var la=qu(Tt),sa=qu(Ct),ha=qu(Dt);function pa(n){return bi(n)?Gt(Ti(n)):function(n){return function(t){return Ae(t,n)}}(n)}var va=Vu(),_a=Vu(!0);function ga(){return[]}function ya(){return!1}var da=Fu((function(n,t){return n+t}),0),wa=Gu("ceil"),ba=Fu((function(n,t){return n/t}),1),ma=Gu("floor");var xa=Fu((function(n,t){return n*t}),1),Aa=Gu("round"),ja=Fu((function(n,t){return n-t}),0);return Dr.after=function(n,t){if("function"!=typeof t)throw new zn(i);return n=_f(n),function(){if(--n<1)return t.apply(this,arguments)}},Dr.ary=Ro,Dr.assign=bf,Dr.assignIn=mf,Dr.assignInWith=xf,Dr.assignWith=Af,Dr.at=jf,Dr.before=Oo,Dr.bind=Io,Dr.bindAll=na,Dr.bindKey=zo,Dr.castArray=function(){if(!arguments.length)return[];var n=arguments[0];return Po(n)?n:[n]},Dr.chain=so,Dr.chunk=function(n,t,e){t=(e?wi(n,t,e):t===u)?1:Ht(_f(t),0);var i=null==n?0:n.length;if(!i||t<1)return[];for(var o=0,f=0,a=r(vt(i/t));o<i;)a[f++]=eu(n,o,o+=t);return a},Dr.compact=function(n){for(var t=-1,r=null==n?0:n.length,e=0,u=[];++t<r;){var i=n[t];i&&(u[e++]=i)}return u},Dr.concat=function(){var n=arguments.length;if(!n)return[];for(var t=r(n-1),e=arguments[0],u=n;u--;)t[u-1]=arguments[u];return Ut(Po(e)?Iu(e):[e],ye(t,1))},Dr.cond=function(n){var t=null==n?0:n.length,r=ai();return n=t?Tt(n,(function(n){if("function"!=typeof n[1])throw new zn(i);return[r(n[0]),n[1]]})):[],Je((function(r){for(var e=-1;++e<t;){var u=n[e];if(Ot(u[0],this,r))return Ot(u[1],this,r)}}))},Dr.conforms=function(n){return function(n){var t=Cf(n);return function(r){return ce(r,n,t)}}(ae(n,1))},Dr.constant=ta,Dr.countBy=vo,Dr.create=function(n,t){var r=Nr(n);return null==t?r:ue(r,t)},Dr.curry=function n(t,r,e){var i=Yu(t,8,u,u,u,u,u,r=e?u:r);return i.placeholder=n.placeholder,i},Dr.curryRight=function n(t,r,e){var i=Yu(t,a,u,u,u,u,u,r=e?u:r);return i.placeholder=n.placeholder,i},Dr.debounce=So,Dr.defaults=kf,Dr.defaultsDeep=Ef,Dr.defer=Co,Dr.delay=Lo,Dr.difference=$i,Dr.differenceBy=Di,Dr.differenceWith=Ni,Dr.drop=function(n,t,r){var e=null==n?0:n.length;return e?eu(n,(t=r||t===u?1:_f(t))<0?0:t,e):[]},Dr.dropRight=function(n,t,r){var e=null==n?0:n.length;return e?eu(n,0,(t=e-(t=r||t===u?1:_f(t)))<0?0:t):[]},Dr.dropRightWhile=function(n,t){return n&&n.length?pu(n,ai(t,3),!0,!0):[]},Dr.dropWhile=function(n,t){return n&&n.length?pu(n,ai(t,3),!0):[]},Dr.fill=function(n,t,r,e){var i=null==n?0:n.length;return i?(r&&"number"!=typeof r&&wi(n,t,r)&&(r=0,e=i),function(n,t,r,e){var i=n.length;for((r=_f(r))<0&&(r=-r>i?0:i+r),(e=e===u||e>i?i:_f(e))<0&&(e+=i),e=r>e?0:gf(e);r<e;)n[r++]=t;return n}(n,t,r,e)):[]},Dr.filter=function(n,t){return(Po(n)?Lt:ge)(n,ai(t,3))},Dr.flatMap=function(n,t){return ye(Ao(n,t),1)},Dr.flatMapDeep=function(n,t){return ye(Ao(n,t),p)},Dr.flatMapDepth=function(n,t,r){return r=r===u?1:_f(r),ye(Ao(n,t),r)},Dr.flatten=Pi,Dr.flattenDeep=function(n){return(null==n?0:n.length)?ye(n,p):[]},Dr.flattenDepth=function(n,t){return(null==n?0:n.length)?ye(n,t=t===u?1:_f(t)):[]},Dr.flip=function(n){return Yu(n,512)},Dr.flow=ra,Dr.flowRight=ea,Dr.fromPairs=function(n){for(var t=-1,r=null==n?0:n.length,e={};++t<r;){var u=n[t];e[u[0]]=u[1]}return e},Dr.functions=function(n){return null==n?[]:xe(n,Cf(n))},Dr.functionsIn=function(n){return null==n?[]:xe(n,Lf(n))},Dr.groupBy=bo,Dr.initial=function(n){return(null==n?0:n.length)?eu(n,0,-1):[]},Dr.intersection=Zi,Dr.intersectionBy=Ki,Dr.intersectionWith=Gi,Dr.invert=If,Dr.invertBy=zf,Dr.invokeMap=mo,Dr.iteratee=ia,Dr.keyBy=xo,Dr.keys=Cf,Dr.keysIn=Lf,Dr.map=Ao,Dr.mapKeys=function(n,t){var r={};return t=ai(t,3),be(n,(function(n,e,u){ie(r,t(n,e,u),n)})),r},Dr.mapValues=function(n,t){var r={};return t=ai(t,3),be(n,(function(n,e,u){ie(r,e,t(n,e,u))})),r},Dr.matches=function(n){return De(ae(n,1))},Dr.matchesProperty=function(n,t){return Ne(n,ae(t,1))},Dr.memoize=Wo,Dr.merge=Wf,Dr.mergeWith=Bf,Dr.method=oa,Dr.methodOf=fa,Dr.mixin=aa,Dr.negate=Bo,Dr.nthArg=function(n){return n=_f(n),Je((function(t){return qe(t,n)}))},Dr.omit=Tf,Dr.omitBy=function(n,t){return Mf(n,Bo(ai(t)))},Dr.once=function(n){return Oo(2,n)},Dr.orderBy=function(n,t,r,e){return null==n?[]:(Po(t)||(t=null==t?[]:[t]),Po(r=e?u:r)||(r=null==r?[]:[r]),Pe(n,t,r))},Dr.over=la,Dr.overArgs=To,Dr.overEvery=sa,Dr.overSome=ha,Dr.partial=Uo,Dr.partialRight=Mo,Dr.partition=jo,Dr.pick=Uf,Dr.pickBy=Mf,Dr.property=pa,Dr.propertyOf=function(n){return function(t){return null==n?u:Ae(n,t)}},Dr.pull=Ji,Dr.pullAll=Yi,Dr.pullAllBy=function(n,t,r){return n&&n.length&&t&&t.length?Ze(n,t,ai(r,2)):n},Dr.pullAllWith=function(n,t,r){return n&&n.length&&t&&t.length?Ze(n,t,u,r):n},Dr.pullAt=Qi,Dr.range=va,Dr.rangeRight=_a,Dr.rearg=$o,Dr.reject=function(n,t){return(Po(n)?Lt:ge)(n,Bo(ai(t,3)))},Dr.remove=function(n,t){var r=[];if(!n||!n.length)return r;var e=-1,u=[],i=n.length;for(t=ai(t,3);++e<i;){var o=n[e];t(o,e,n)&&(r.push(o),u.push(e))}return Ke(n,u),r},Dr.rest=function(n,t){if("function"!=typeof n)throw new zn(i);return Je(n,t=t===u?t:_f(t))},Dr.reverse=Xi,Dr.sampleSize=function(n,t,r){return t=(r?wi(n,t,r):t===u)?1:_f(t),(Po(n)?Qr:Qe)(n,t)},Dr.set=function(n,t,r){return null==n?n:Xe(n,t,r)},Dr.setWith=function(n,t,r,e){return e="function"==typeof e?e:u,null==n?n:Xe(n,t,r,e)},Dr.shuffle=function(n){return(Po(n)?Xr:ru)(n)},Dr.slice=function(n,t,r){var e=null==n?0:n.length;return e?(r&&"number"!=typeof r&&wi(n,t,r)?(t=0,r=e):(t=null==t?0:_f(t),r=r===u?e:_f(r)),eu(n,t,r)):[]},Dr.sortBy=ko,Dr.sortedUniq=function(n){return n&&n.length?fu(n):[]},Dr.sortedUniqBy=function(n,t){return n&&n.length?fu(n,ai(t,2)):[]},Dr.split=function(n,t,r){return r&&"number"!=typeof r&&wi(n,t,r)&&(t=r=u),(r=r===u?g:r>>>0)?(n=wf(n))&&("string"==typeof t||null!=t&&!of(t))&&!(t=cu(t))&&ar(n)?mu(_r(n),0,r):n.split(t,r):[]},Dr.spread=function(n,t){if("function"!=typeof n)throw new zn(i);return t=null==t?0:Ht(_f(t),0),Je((function(r){var e=r[t],u=mu(r,0,t);return e&&Ut(u,e),Ot(n,this,u)}))},Dr.tail=function(n){var t=null==n?0:n.length;return t?eu(n,1,t):[]},Dr.take=function(n,t,r){return n&&n.length?eu(n,0,(t=r||t===u?1:_f(t))<0?0:t):[]},Dr.takeRight=function(n,t,r){var e=null==n?0:n.length;return e?eu(n,(t=e-(t=r||t===u?1:_f(t)))<0?0:t,e):[]},Dr.takeRightWhile=function(n,t){return n&&n.length?pu(n,ai(t,3),!1,!0):[]},Dr.takeWhile=function(n,t){return n&&n.length?pu(n,ai(t,3)):[]},Dr.tap=function(n,t){return t(n),n},Dr.throttle=function(n,t,r){var e=!0,u=!0;if("function"!=typeof n)throw new zn(i);return nf(r)&&(e="leading"in r?!!r.leading:e,u="trailing"in r?!!r.trailing:u),So(n,t,{leading:e,maxWait:t,trailing:u})},Dr.thru=ho,Dr.toArray=pf,Dr.toPairs=$f,Dr.toPairsIn=Df,Dr.toPath=function(n){return Po(n)?Tt(n,Ti):cf(n)?[n]:Iu(Bi(wf(n)))},Dr.toPlainObject=df,Dr.transform=function(n,t,r){var e=Po(n),u=e||Go(n)||lf(n);if(t=ai(t,4),null==r){var i=n&&n.constructor;r=u?e?new i:[]:nf(n)&&Yo(i)?Nr(Kn(n)):{}}return(u?zt:be)(n,(function(n,e,u){return t(r,n,e,u)})),r},Dr.unary=function(n){return Ro(n,1)},Dr.union=no,Dr.unionBy=to,Dr.unionWith=ro,Dr.uniq=function(n){return n&&n.length?lu(n):[]},Dr.uniqBy=function(n,t){return n&&n.length?lu(n,ai(t,2)):[]},Dr.uniqWith=function(n,t){return t="function"==typeof t?t:u,n&&n.length?lu(n,u,t):[]},Dr.unset=function(n,t){return null==n||su(n,t)},Dr.unzip=eo,Dr.unzipWith=uo,Dr.update=function(n,t,r){return null==n?n:hu(n,t,du(r))},Dr.updateWith=function(n,t,r,e){return e="function"==typeof e?e:u,null==n?n:hu(n,t,du(r),e)},Dr.values=Nf,Dr.valuesIn=function(n){return null==n?[]:tr(n,Lf(n))},Dr.without=io,Dr.words=Qf,Dr.wrap=function(n,t){return Uo(du(t),n)},Dr.xor=oo,Dr.xorBy=fo,Dr.xorWith=ao,Dr.zip=co,Dr.zipObject=function(n,t){return gu(n||[],t||[],te)},Dr.zipObjectDeep=function(n,t){return gu(n||[],t||[],Xe)},Dr.zipWith=lo,Dr.entries=$f,Dr.entriesIn=Df,Dr.extend=mf,Dr.extendWith=xf,aa(Dr,Dr),Dr.add=da,Dr.attempt=Xf,Dr.camelCase=Ff,Dr.capitalize=qf,Dr.ceil=wa,Dr.clamp=function(n,t,r){return r===u&&(r=t,t=u),r!==u&&(r=(r=yf(r))===r?r:0),t!==u&&(t=(t=yf(t))===t?t:0),fe(yf(n),t,r)},Dr.clone=function(n){return ae(n,4)},Dr.cloneDeep=function(n){return ae(n,5)},Dr.cloneDeepWith=function(n,t){return ae(n,5,t="function"==typeof t?t:u)},Dr.cloneWith=function(n,t){return ae(n,4,t="function"==typeof t?t:u)},Dr.conformsTo=function(n,t){return null==t||ce(n,t,Cf(t))},Dr.deburr=Pf,Dr.defaultTo=function(n,t){return null==n||n!==n?t:n},Dr.divide=ba,Dr.endsWith=function(n,t,r){n=wf(n),t=cu(t);var e=n.length,i=r=r===u?e:fe(_f(r),0,e);return(r-=t.length)>=0&&n.slice(r,i)==t},Dr.eq=Do,Dr.escape=function(n){return(n=wf(n))&&Y.test(n)?n.replace(H,or):n},Dr.escapeRegExp=function(n){return(n=wf(n))&&on.test(n)?n.replace(un,"\\$&"):n},Dr.every=function(n,t,r){var e=Po(n)?Ct:ve;return r&&wi(n,t,r)&&(t=u),e(n,ai(t,3))},Dr.find=_o,Dr.findIndex=Fi,Dr.findKey=function(n,t){return Ft(n,ai(t,3),be)},Dr.findLast=go,Dr.findLastIndex=qi,Dr.findLastKey=function(n,t){return Ft(n,ai(t,3),me)},Dr.floor=ma,Dr.forEach=yo,Dr.forEachRight=wo,Dr.forIn=function(n,t){return null==n?n:de(n,ai(t,3),Lf)},Dr.forInRight=function(n,t){return null==n?n:we(n,ai(t,3),Lf)},Dr.forOwn=function(n,t){return n&&be(n,ai(t,3))},Dr.forOwnRight=function(n,t){return n&&me(n,ai(t,3))},Dr.get=Rf,Dr.gt=No,Dr.gte=Fo,Dr.has=function(n,t){return null!=n&&_i(n,t,Re)},Dr.hasIn=Of,Dr.head=Vi,Dr.identity=ua,Dr.includes=function(n,t,r,e){n=Zo(n)?n:Nf(n),r=r&&!e?_f(r):0;var u=n.length;return r<0&&(r=Ht(u+r,0)),af(n)?r<=u&&n.indexOf(t,r)>-1:!!u&&Pt(n,t,r)>-1},Dr.indexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=null==r?0:_f(r);return u<0&&(u=Ht(e+u,0)),Pt(n,t,u)},Dr.inRange=function(n,t,r){return t=vf(t),r===u?(r=t,t=0):r=vf(r),function(n,t,r){return n>=wr(t,r)&&n<Ht(t,r)}(n=yf(n),t,r)},Dr.invoke=Sf,Dr.isArguments=qo,Dr.isArray=Po,Dr.isArrayBuffer=Vo,Dr.isArrayLike=Zo,Dr.isArrayLikeObject=Ko,Dr.isBoolean=function(n){return!0===n||!1===n||tf(n)&&ke(n)==b},Dr.isBuffer=Go,Dr.isDate=Ho,Dr.isElement=function(n){return tf(n)&&1===n.nodeType&&!uf(n)},Dr.isEmpty=function(n){if(null==n)return!0;if(Zo(n)&&(Po(n)||"string"==typeof n||"function"==typeof n.splice||Go(n)||lf(n)||qo(n)))return!n.length;var t=vi(n);if(t==k||t==z)return!n.size;if(Ai(n))return!Te(n).length;for(var r in n)if(Tn.call(n,r))return!1;return!0},Dr.isEqual=function(n,t){return Ce(n,t)},Dr.isEqualWith=function(n,t,r){var e=(r="function"==typeof r?r:u)?r(n,t):u;return e===u?Ce(n,t,u,r):!!e},Dr.isError=Jo,Dr.isFinite=function(n){return"number"==typeof n&&bt(n)},Dr.isFunction=Yo,Dr.isInteger=Qo,Dr.isLength=Xo,Dr.isMap=rf,Dr.isMatch=function(n,t){return n===t||Le(n,t,li(t))},Dr.isMatchWith=function(n,t,r){return r="function"==typeof r?r:u,Le(n,t,li(t),r)},Dr.isNaN=function(n){return ef(n)&&n!=+n},Dr.isNative=function(n){if(xi(n))throw new an("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return We(n)},Dr.isNil=function(n){return null==n},Dr.isNull=function(n){return null===n},Dr.isNumber=ef,Dr.isObject=nf,Dr.isObjectLike=tf,Dr.isPlainObject=uf,Dr.isRegExp=of,Dr.isSafeInteger=function(n){return Qo(n)&&n>=-9007199254740991&&n<=v},Dr.isSet=ff,Dr.isString=af,Dr.isSymbol=cf,Dr.isTypedArray=lf,Dr.isUndefined=function(n){return n===u},Dr.isWeakMap=function(n){return tf(n)&&vi(n)==L},Dr.isWeakSet=function(n){return tf(n)&&"[object WeakSet]"==ke(n)},Dr.join=function(n,t){return null==n?"":mt.call(n,t)},Dr.kebabCase=Vf,Dr.last=Hi,Dr.lastIndexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var i=e;return r!==u&&(i=(i=_f(r))<0?Ht(e+i,0):wr(i,e-1)),t===t?function(n,t,r){for(var e=r+1;e--;)if(n[e]===t)return e;return e}(n,t,i):qt(n,Zt,i,!0)},Dr.lowerCase=Zf,Dr.lowerFirst=Kf,Dr.lt=sf,Dr.lte=hf,Dr.max=function(n){return n&&n.length?_e(n,ua,Ee):u},Dr.maxBy=function(n,t){return n&&n.length?_e(n,ai(t,2),Ee):u},Dr.mean=function(n){return Kt(n,ua)},Dr.meanBy=function(n,t){return Kt(n,ai(t,2))},Dr.min=function(n){return n&&n.length?_e(n,ua,Me):u},Dr.minBy=function(n,t){return n&&n.length?_e(n,ai(t,2),Me):u},Dr.stubArray=ga,Dr.stubFalse=ya,Dr.stubObject=function(){return{}},Dr.stubString=function(){return""},Dr.stubTrue=function(){return!0},Dr.multiply=xa,Dr.nth=function(n,t){return n&&n.length?qe(n,_f(t)):u},Dr.noConflict=function(){return gt._===this&&(gt._=Nn),this},Dr.noop=ca,Dr.now=Eo,Dr.pad=function(n,t,r){n=wf(n);var e=(t=_f(t))?vr(n):0;if(!t||e>=t)return n;var u=(t-e)/2;return Pu(_t(u),r)+n+Pu(vt(u),r)},Dr.padEnd=function(n,t,r){n=wf(n);var e=(t=_f(t))?vr(n):0;return t&&e<t?n+Pu(t-e,r):n},Dr.padStart=function(n,t,r){n=wf(n);var e=(t=_f(t))?vr(n):0;return t&&e<t?Pu(t-e,r)+n:n},Dr.parseInt=function(n,t,r){return r||null==t?t=0:t&&(t=+t),mr(wf(n).replace(fn,""),t||0)},Dr.random=function(n,t,r){if(r&&"boolean"!=typeof r&&wi(n,t,r)&&(t=r=u),r===u&&("boolean"==typeof t?(r=t,t=u):"boolean"==typeof n&&(r=n,n=u)),n===u&&t===u?(n=0,t=1):(n=vf(n),t===u?(t=n,n=0):t=vf(t)),n>t){var e=n;n=t,t=e}if(r||n%1||t%1){var i=xr();return wr(n+i*(t-n+ht("1e-"+((i+"").length-1))),t)}return Ge(n,t)},Dr.reduce=function(n,t,r){var e=Po(n)?Mt:Jt,u=arguments.length<3;return e(n,ai(t,4),r,u,he)},Dr.reduceRight=function(n,t,r){var e=Po(n)?$t:Jt,u=arguments.length<3;return e(n,ai(t,4),r,u,pe)},Dr.repeat=function(n,t,r){return t=(r?wi(n,t,r):t===u)?1:_f(t),He(wf(n),t)},Dr.replace=function(){var n=arguments,t=wf(n[0]);return n.length<3?t:t.replace(n[1],n[2])},Dr.result=function(n,t,r){var e=-1,i=(t=wu(t,n)).length;for(i||(i=1,n=u);++e<i;){var o=null==n?u:n[Ti(t[e])];o===u&&(e=i,o=r),n=Yo(o)?o.call(n):o}return n},Dr.round=Aa,Dr.runInContext=n,Dr.sample=function(n){return(Po(n)?Yr:Ye)(n)},Dr.size=function(n){if(null==n)return 0;if(Zo(n))return af(n)?vr(n):n.length;var t=vi(n);return t==k||t==z?n.size:Te(n).length},Dr.snakeCase=Gf,Dr.some=function(n,t,r){var e=Po(n)?Dt:uu;return r&&wi(n,t,r)&&(t=u),e(n,ai(t,3))},Dr.sortedIndex=function(n,t){return iu(n,t)},Dr.sortedIndexBy=function(n,t,r){return ou(n,t,ai(r,2))},Dr.sortedIndexOf=function(n,t){var r=null==n?0:n.length;if(r){var e=iu(n,t);if(e<r&&Do(n[e],t))return e}return-1},Dr.sortedLastIndex=function(n,t){return iu(n,t,!0)},Dr.sortedLastIndexBy=function(n,t,r){return ou(n,t,ai(r,2),!0)},Dr.sortedLastIndexOf=function(n,t){if(null==n?0:n.length){var r=iu(n,t,!0)-1;if(Do(n[r],t))return r}return-1},Dr.startCase=Hf,Dr.startsWith=function(n,t,r){return n=wf(n),r=null==r?0:fe(_f(r),0,n.length),t=cu(t),n.slice(r,r+t.length)==t},Dr.subtract=ja,Dr.sum=function(n){return n&&n.length?Yt(n,ua):0},Dr.sumBy=function(n,t){return n&&n.length?Yt(n,ai(t,2)):0},Dr.template=function(n,t,r){var e=Dr.templateSettings;r&&wi(n,t,r)&&(t=u),n=wf(n),t=xf({},t,e,Qu);var i,o,f=xf({},t.imports,e.imports,Qu),a=Cf(f),c=tr(f,a),l=0,s=t.interpolate||An,h="__p += '",p=On((t.escape||An).source+"|"+s.source+"|"+(s===nn?_n:An).source+"|"+(t.evaluate||An).source+"|$","g"),v="//# sourceURL="+(Tn.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++at+"]")+"\n";n.replace(p,(function(t,r,e,u,f,a){return e||(e=u),h+=n.slice(l,a).replace(jn,fr),r&&(i=!0,h+="' +\n__e("+r+") +\n'"),f&&(o=!0,h+="';\n"+f+";\n__p += '"),e&&(h+="' +\n((__t = ("+e+")) == null ? '' : __t) +\n'"),l=a+t.length,t})),h+="';\n";var _=Tn.call(t,"variable")&&t.variable;if(_){if(pn.test(_))throw new an("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(o?h.replace(V,""):h).replace(Z,"$1").replace(K,"$1;"),h="function("+(_||"obj")+") {\n"+(_?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var g=Xf((function(){return kn(a,v+"return "+h).apply(u,c)}));if(g.source=h,Jo(g))throw g;return g},Dr.times=function(n,t){if((n=_f(n))<1||n>v)return[];var r=g,e=wr(n,g);t=ai(t),n-=g;for(var u=Qt(e,t);++r<n;)t(r);return u},Dr.toFinite=vf,Dr.toInteger=_f,Dr.toLength=gf,Dr.toLower=function(n){return wf(n).toLowerCase()},Dr.toNumber=yf,Dr.toSafeInteger=function(n){return n?fe(_f(n),-9007199254740991,v):0===n?n:0},Dr.toString=wf,Dr.toUpper=function(n){return wf(n).toUpperCase()},Dr.trim=function(n,t,r){if((n=wf(n))&&(r||t===u))return Xt(n);if(!n||!(t=cu(t)))return n;var e=_r(n),i=_r(t);return mu(e,er(e,i),ur(e,i)+1).join("")},Dr.trimEnd=function(n,t,r){if((n=wf(n))&&(r||t===u))return n.slice(0,gr(n)+1);if(!n||!(t=cu(t)))return n;var e=_r(n);return mu(e,0,ur(e,_r(t))+1).join("")},Dr.trimStart=function(n,t,r){if((n=wf(n))&&(r||t===u))return n.replace(fn,"");if(!n||!(t=cu(t)))return n;var e=_r(n);return mu(e,er(e,_r(t))).join("")},Dr.truncate=function(n,t){var r=30,e="...";if(nf(t)){var i="separator"in t?t.separator:i;r="length"in t?_f(t.length):r,e="omission"in t?cu(t.omission):e}var o=(n=wf(n)).length;if(ar(n)){var f=_r(n);o=f.length}if(r>=o)return n;var a=r-vr(e);if(a<1)return e;var c=f?mu(f,0,a).join(""):n.slice(0,a);if(i===u)return c+e;if(f&&(a+=c.length-a),of(i)){if(n.slice(a).search(i)){var l,s=c;for(i.global||(i=On(i.source,wf(gn.exec(i))+"g")),i.lastIndex=0;l=i.exec(s);)var h=l.index;c=c.slice(0,h===u?a:h)}}else if(n.indexOf(cu(i),a)!=a){var p=c.lastIndexOf(i);p>-1&&(c=c.slice(0,p))}return c+e},Dr.unescape=function(n){return(n=wf(n))&&J.test(n)?n.replace(G,yr):n},Dr.uniqueId=function(n){var t=++Un;return wf(n)+t},Dr.upperCase=Jf,Dr.upperFirst=Yf,Dr.each=yo,Dr.eachRight=wo,Dr.first=Vi,aa(Dr,function(){var n={};return be(Dr,(function(t,r){Tn.call(Dr.prototype,r)||(n[r]=t)})),n}(),{chain:!1}),Dr.VERSION="4.17.21",zt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(n){Dr[n].placeholder=Dr})),zt(["drop","take"],(function(n,t){Pr.prototype[n]=function(r){r=r===u?1:Ht(_f(r),0);var e=this.__filtered__&&!t?new Pr(this):this.clone();return e.__filtered__?e.__takeCount__=wr(r,e.__takeCount__):e.__views__.push({size:wr(r,g),type:n+(e.__dir__<0?"Right":"")}),e},Pr.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}})),zt(["filter","map","takeWhile"],(function(n,t){var r=t+1,e=1==r||3==r;Pr.prototype[n]=function(n){var t=this.clone();return t.__iteratees__.push({iteratee:ai(n,3),type:r}),t.__filtered__=t.__filtered__||e,t}})),zt(["head","last"],(function(n,t){var r="take"+(t?"Right":"");Pr.prototype[n]=function(){return this[r](1).value()[0]}})),zt(["initial","tail"],(function(n,t){var r="drop"+(t?"":"Right");Pr.prototype[n]=function(){return this.__filtered__?new Pr(this):this[r](1)}})),Pr.prototype.compact=function(){return this.filter(ua)},Pr.prototype.find=function(n){return this.filter(n).head()},Pr.prototype.findLast=function(n){return this.reverse().find(n)},Pr.prototype.invokeMap=Je((function(n,t){return"function"==typeof n?new Pr(this):this.map((function(r){return ze(r,n,t)}))})),Pr.prototype.reject=function(n){return this.filter(Bo(ai(n)))},Pr.prototype.slice=function(n,t){n=_f(n);var r=this;return r.__filtered__&&(n>0||t<0)?new Pr(r):(n<0?r=r.takeRight(-n):n&&(r=r.drop(n)),t!==u&&(r=(t=_f(t))<0?r.dropRight(-t):r.take(t-n)),r)},Pr.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Pr.prototype.toArray=function(){return this.take(g)},be(Pr.prototype,(function(n,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),e=/^(?:head|last)$/.test(t),i=Dr[e?"take"+("last"==t?"Right":""):t],o=e||/^find/.test(t);i&&(Dr.prototype[t]=function(){var t=this.__wrapped__,f=e?[1]:arguments,a=t instanceof Pr,c=f[0],l=a||Po(t),s=function(n){var t=i.apply(Dr,Ut([n],f));return e&&h?t[0]:t};l&&r&&"function"==typeof c&&1!=c.length&&(a=l=!1);var h=this.__chain__,p=!!this.__actions__.length,v=o&&!h,_=a&&!p;if(!o&&l){t=_?t:new Pr(this);var g=n.apply(t,f);return g.__actions__.push({func:ho,args:[s],thisArg:u}),new qr(g,h)}return v&&_?n.apply(this,f):(g=this.thru(s),v?e?g.value()[0]:g.value():g)})})),zt(["pop","push","shift","sort","splice","unshift"],(function(n){var t=Sn[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:pop|shift)$/.test(n);Dr.prototype[n]=function(){var n=arguments;if(e&&!this.__chain__){var u=this.value();return t.apply(Po(u)?u:[],n)}return this[r]((function(r){return t.apply(Po(r)?r:[],n)}))}})),be(Pr.prototype,(function(n,t){var r=Dr[t];if(r){var e=r.name+"";Tn.call(Sr,e)||(Sr[e]=[]),Sr[e].push({name:t,func:r})}})),Sr[Du(u,2).name]=[{name:"wrapper",func:u}],Pr.prototype.clone=function(){var n=new Pr(this.__wrapped__);return n.__actions__=Iu(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=Iu(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=Iu(this.__views__),n},Pr.prototype.reverse=function(){if(this.__filtered__){var n=new Pr(this);n.__dir__=-1,n.__filtered__=!0}else(n=this.clone()).__dir__*=-1;return n},Pr.prototype.value=function(){var n=this.__wrapped__.value(),t=this.__dir__,r=Po(n),e=t<0,u=r?n.length:0,i=function(n,t,r){var e=-1,u=r.length;for(;++e<u;){var i=r[e],o=i.size;switch(i.type){case"drop":n+=o;break;case"dropRight":t-=o;break;case"take":t=wr(t,n+o);break;case"takeRight":n=Ht(n,t-o)}}return{start:n,end:t}}(0,u,this.__views__),o=i.start,f=i.end,a=f-o,c=e?f:o-1,l=this.__iteratees__,s=l.length,h=0,p=wr(a,this.__takeCount__);if(!r||!e&&u==a&&p==a)return vu(n,this.__actions__);var v=[];n:for(;a--&&h<p;){for(var _=-1,g=n[c+=t];++_<s;){var y=l[_],d=y.iteratee,w=y.type,b=d(g);if(2==w)g=b;else if(!b){if(1==w)continue n;break n}}v[h++]=g}return v},Dr.prototype.at=po,Dr.prototype.chain=function(){return so(this)},Dr.prototype.commit=function(){return new qr(this.value(),this.__chain__)},Dr.prototype.next=function(){this.__values__===u&&(this.__values__=pf(this.value()));var n=this.__index__>=this.__values__.length;return{done:n,value:n?u:this.__values__[this.__index__++]}},Dr.prototype.plant=function(n){for(var t,r=this;r instanceof Fr;){var e=Mi(r);e.__index__=0,e.__values__=u,t?i.__wrapped__=e:t=e;var i=e;r=r.__wrapped__}return i.__wrapped__=n,t},Dr.prototype.reverse=function(){var n=this.__wrapped__;if(n instanceof Pr){var t=n;return this.__actions__.length&&(t=new Pr(this)),(t=t.reverse()).__actions__.push({func:ho,args:[Xi],thisArg:u}),new qr(t,this.__chain__)}return this.thru(Xi)},Dr.prototype.toJSON=Dr.prototype.valueOf=Dr.prototype.value=function(){return vu(this.__wrapped__,this.__actions__)},Dr.prototype.first=Dr.prototype.head,Qn&&(Dr.prototype[Qn]=function(){return this}),Dr}();gt._=dr,(e=function(){return dr}.call(t,r,t,n))===u||(n.exports=e)}.call(this)}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/4872.bbf7ab34.chunk.js b/ydb/core/viewer/monitoring/static/js/4872.bbf7ab34.chunk.js new file mode 100644 index 0000000000..4325f5dee5 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/4872.bbf7ab34.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 4872.bbf7ab34.chunk.js.LICENSE.txt */ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[4872],{13847:function(n,t,r){var e;n=r.nmd(n),function(){var u,i="Expected a function",o="__lodash_hash_undefined__",f="__lodash_placeholder__",a=16,c=32,l=64,s=128,h=256,p=1/0,v=9007199254740991,_=NaN,g=4294967295,y=[["ary",s],["bind",1],["bindKey",2],["curry",8],["curryRight",a],["flip",512],["partial",c],["partialRight",l],["rearg",h]],d="[object Arguments]",w="[object Array]",b="[object Boolean]",m="[object Date]",x="[object Error]",A="[object Function]",j="[object GeneratorFunction]",k="[object Map]",E="[object Number]",R="[object Object]",O="[object Promise]",I="[object RegExp]",z="[object Set]",S="[object String]",C="[object Symbol]",L="[object WeakMap]",W="[object ArrayBuffer]",B="[object DataView]",T="[object Float32Array]",U="[object Float64Array]",M="[object Int8Array]",$="[object Int16Array]",D="[object Int32Array]",N="[object Uint8Array]",F="[object Uint8ClampedArray]",q="[object Uint16Array]",P="[object Uint32Array]",V=/\b__p \+= '';/g,Z=/\b(__p \+=) '' \+/g,K=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,H=/[&<>"']/g,J=RegExp(G.source),Y=RegExp(H.source),Q=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,nn=/<%=([\s\S]+?)%>/g,tn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rn=/^\w*$/,en=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,un=/[\\^$.*+?()[\]{}|]/g,on=RegExp(un.source),fn=/^\s+/,an=/\s/,cn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ln=/\{\n\/\* \[wrapped with (.+)\] \*/,sn=/,? & /,hn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pn=/[()=,{}\[\]\/\s]/,vn=/\\(\\)?/g,_n=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,gn=/\w*$/,yn=/^[-+]0x[0-9a-f]+$/i,dn=/^0b[01]+$/i,wn=/^\[object .+?Constructor\]$/,bn=/^0o[0-7]+$/i,mn=/^(?:0|[1-9]\d*)$/,xn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,An=/($^)/,jn=/['\n\r\u2028\u2029\\]/g,kn="\\ud800-\\udfff",En="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Rn="\\u2700-\\u27bf",On="a-z\\xdf-\\xf6\\xf8-\\xff",In="A-Z\\xc0-\\xd6\\xd8-\\xde",zn="\\ufe0e\\ufe0f",Sn="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Cn="['\u2019]",Ln="["+kn+"]",Wn="["+Sn+"]",Bn="["+En+"]",Tn="\\d+",Un="["+Rn+"]",Mn="["+On+"]",$n="[^"+kn+Sn+Tn+Rn+On+In+"]",Dn="\\ud83c[\\udffb-\\udfff]",Nn="[^"+kn+"]",Fn="(?:\\ud83c[\\udde6-\\uddff]){2}",qn="[\\ud800-\\udbff][\\udc00-\\udfff]",Pn="["+In+"]",Vn="\\u200d",Zn="(?:"+Mn+"|"+$n+")",Kn="(?:"+Pn+"|"+$n+")",Gn="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Hn="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Jn="(?:"+Bn+"|"+Dn+")"+"?",Yn="["+zn+"]?",Qn=Yn+Jn+("(?:"+Vn+"(?:"+[Nn,Fn,qn].join("|")+")"+Yn+Jn+")*"),Xn="(?:"+[Un,Fn,qn].join("|")+")"+Qn,nt="(?:"+[Nn+Bn+"?",Bn,Fn,qn,Ln].join("|")+")",tt=RegExp(Cn,"g"),rt=RegExp(Bn,"g"),et=RegExp(Dn+"(?="+Dn+")|"+nt+Qn,"g"),ut=RegExp([Pn+"?"+Mn+"+"+Gn+"(?="+[Wn,Pn,"$"].join("|")+")",Kn+"+"+Hn+"(?="+[Wn,Pn+Zn,"$"].join("|")+")",Pn+"?"+Zn+"+"+Gn,Pn+"+"+Hn,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Tn,Xn].join("|"),"g"),it=RegExp("["+Vn+kn+En+zn+"]"),ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ft=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],at=-1,ct={};ct[T]=ct[U]=ct[M]=ct[$]=ct[D]=ct[N]=ct[F]=ct[q]=ct[P]=!0,ct[d]=ct[w]=ct[W]=ct[b]=ct[B]=ct[m]=ct[x]=ct[A]=ct[k]=ct[E]=ct[R]=ct[I]=ct[z]=ct[S]=ct[L]=!1;var lt={};lt[d]=lt[w]=lt[W]=lt[B]=lt[b]=lt[m]=lt[T]=lt[U]=lt[M]=lt[$]=lt[D]=lt[k]=lt[E]=lt[R]=lt[I]=lt[z]=lt[S]=lt[C]=lt[N]=lt[F]=lt[q]=lt[P]=!0,lt[x]=lt[A]=lt[L]=!1;var st={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ht=parseFloat,pt=parseInt,vt="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,_t="object"==typeof self&&self&&self.Object===Object&&self,gt=vt||_t||Function("return this")(),yt=t&&!t.nodeType&&t,dt=yt&&n&&!n.nodeType&&n,wt=dt&&dt.exports===yt,bt=wt&&vt.process,mt=function(){try{var n=dt&&dt.require&&dt.require("util").types;return n||bt&&bt.binding&&bt.binding("util")}catch(t){}}(),xt=mt&&mt.isArrayBuffer,At=mt&&mt.isDate,jt=mt&&mt.isMap,kt=mt&&mt.isRegExp,Et=mt&&mt.isSet,Rt=mt&&mt.isTypedArray;function Ot(n,t,r){switch(r.length){case 0:return n.call(t);case 1:return n.call(t,r[0]);case 2:return n.call(t,r[0],r[1]);case 3:return n.call(t,r[0],r[1],r[2])}return n.apply(t,r)}function It(n,t,r,e){for(var u=-1,i=null==n?0:n.length;++u<i;){var o=n[u];t(e,o,r(o),n)}return e}function zt(n,t){for(var r=-1,e=null==n?0:n.length;++r<e&&!1!==t(n[r],r,n););return n}function St(n,t){for(var r=null==n?0:n.length;r--&&!1!==t(n[r],r,n););return n}function Ct(n,t){for(var r=-1,e=null==n?0:n.length;++r<e;)if(!t(n[r],r,n))return!1;return!0}function Lt(n,t){for(var r=-1,e=null==n?0:n.length,u=0,i=[];++r<e;){var o=n[r];t(o,r,n)&&(i[u++]=o)}return i}function Wt(n,t){return!!(null==n?0:n.length)&&Pt(n,t,0)>-1}function Bt(n,t,r){for(var e=-1,u=null==n?0:n.length;++e<u;)if(r(t,n[e]))return!0;return!1}function Tt(n,t){for(var r=-1,e=null==n?0:n.length,u=Array(e);++r<e;)u[r]=t(n[r],r,n);return u}function Ut(n,t){for(var r=-1,e=t.length,u=n.length;++r<e;)n[u+r]=t[r];return n}function Mt(n,t,r,e){var u=-1,i=null==n?0:n.length;for(e&&i&&(r=n[++u]);++u<i;)r=t(r,n[u],u,n);return r}function $t(n,t,r,e){var u=null==n?0:n.length;for(e&&u&&(r=n[--u]);u--;)r=t(r,n[u],u,n);return r}function Dt(n,t){for(var r=-1,e=null==n?0:n.length;++r<e;)if(t(n[r],r,n))return!0;return!1}var Nt=Gt("length");function Ft(n,t,r){var e;return r(n,(function(n,r,u){if(t(n,r,u))return e=r,!1})),e}function qt(n,t,r,e){for(var u=n.length,i=r+(e?1:-1);e?i--:++i<u;)if(t(n[i],i,n))return i;return-1}function Pt(n,t,r){return t===t?function(n,t,r){var e=r-1,u=n.length;for(;++e<u;)if(n[e]===t)return e;return-1}(n,t,r):qt(n,Zt,r)}function Vt(n,t,r,e){for(var u=r-1,i=n.length;++u<i;)if(e(n[u],t))return u;return-1}function Zt(n){return n!==n}function Kt(n,t){var r=null==n?0:n.length;return r?Yt(n,t)/r:_}function Gt(n){return function(t){return null==t?u:t[n]}}function Ht(n){return function(t){return null==n?u:n[t]}}function Jt(n,t,r,e,u){return u(n,(function(n,u,i){r=e?(e=!1,n):t(r,n,u,i)})),r}function Yt(n,t){for(var r,e=-1,i=n.length;++e<i;){var o=t(n[e]);o!==u&&(r=r===u?o:r+o)}return r}function Qt(n,t){for(var r=-1,e=Array(n);++r<n;)e[r]=t(r);return e}function Xt(n){return n?n.slice(0,gr(n)+1).replace(fn,""):n}function nr(n){return function(t){return n(t)}}function tr(n,t){return Tt(t,(function(t){return n[t]}))}function rr(n,t){return n.has(t)}function er(n,t){for(var r=-1,e=n.length;++r<e&&Pt(t,n[r],0)>-1;);return r}function ur(n,t){for(var r=n.length;r--&&Pt(t,n[r],0)>-1;);return r}var ir=Ht({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),or=Ht({"&":"&","<":"<",">":">",'"':""","'":"'"});function fr(n){return"\\"+st[n]}function ar(n){return it.test(n)}function cr(n){var t=-1,r=Array(n.size);return n.forEach((function(n,e){r[++t]=[e,n]})),r}function lr(n,t){return function(r){return n(t(r))}}function sr(n,t){for(var r=-1,e=n.length,u=0,i=[];++r<e;){var o=n[r];o!==t&&o!==f||(n[r]=f,i[u++]=r)}return i}function hr(n){var t=-1,r=Array(n.size);return n.forEach((function(n){r[++t]=n})),r}function pr(n){var t=-1,r=Array(n.size);return n.forEach((function(n){r[++t]=[n,n]})),r}function vr(n){return ar(n)?function(n){var t=et.lastIndex=0;for(;et.test(n);)++t;return t}(n):Nt(n)}function _r(n){return ar(n)?function(n){return n.match(et)||[]}(n):function(n){return n.split("")}(n)}function gr(n){for(var t=n.length;t--&&an.test(n.charAt(t)););return t}var yr=Ht({"&":"&","<":"<",">":">",""":'"',"'":"'"});var dr=function n(t){var r=(t=null==t?gt:dr.defaults(gt.Object(),t,dr.pick(gt,ft))).Array,e=t.Date,an=t.Error,kn=t.Function,En=t.Math,Rn=t.Object,On=t.RegExp,In=t.String,zn=t.TypeError,Sn=r.prototype,Cn=kn.prototype,Ln=Rn.prototype,Wn=t["__core-js_shared__"],Bn=Cn.toString,Tn=Ln.hasOwnProperty,Un=0,Mn=function(){var n=/[^.]+$/.exec(Wn&&Wn.keys&&Wn.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),$n=Ln.toString,Dn=Bn.call(Rn),Nn=gt._,Fn=On("^"+Bn.call(Tn).replace(un,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qn=wt?t.Buffer:u,Pn=t.Symbol,Vn=t.Uint8Array,Zn=qn?qn.allocUnsafe:u,Kn=lr(Rn.getPrototypeOf,Rn),Gn=Rn.create,Hn=Ln.propertyIsEnumerable,Jn=Sn.splice,Yn=Pn?Pn.isConcatSpreadable:u,Qn=Pn?Pn.iterator:u,Xn=Pn?Pn.toStringTag:u,nt=function(){try{var n=si(Rn,"defineProperty");return n({},"",{}),n}catch(t){}}(),et=t.clearTimeout!==gt.clearTimeout&&t.clearTimeout,it=e&&e.now!==gt.Date.now&&e.now,st=t.setTimeout!==gt.setTimeout&&t.setTimeout,vt=En.ceil,_t=En.floor,yt=Rn.getOwnPropertySymbols,dt=qn?qn.isBuffer:u,bt=t.isFinite,mt=Sn.join,Nt=lr(Rn.keys,Rn),Ht=En.max,wr=En.min,br=e.now,mr=t.parseInt,xr=En.random,Ar=Sn.reverse,jr=si(t,"DataView"),kr=si(t,"Map"),Er=si(t,"Promise"),Rr=si(t,"Set"),Or=si(t,"WeakMap"),Ir=si(Rn,"create"),zr=Or&&new Or,Sr={},Cr=Ui(jr),Lr=Ui(kr),Wr=Ui(Er),Br=Ui(Rr),Tr=Ui(Or),Ur=Pn?Pn.prototype:u,Mr=Ur?Ur.valueOf:u,$r=Ur?Ur.toString:u;function Dr(n){if(tf(n)&&!Po(n)&&!(n instanceof Pr)){if(n instanceof qr)return n;if(Tn.call(n,"__wrapped__"))return Mi(n)}return new qr(n)}var Nr=function(){function n(){}return function(t){if(!nf(t))return{};if(Gn)return Gn(t);n.prototype=t;var r=new n;return n.prototype=u,r}}();function Fr(){}function qr(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=u}function Pr(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function Vr(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}function Zr(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}function Kr(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}function Gr(n){var t=-1,r=null==n?0:n.length;for(this.__data__=new Kr;++t<r;)this.add(n[t])}function Hr(n){var t=this.__data__=new Zr(n);this.size=t.size}function Jr(n,t){var r=Po(n),e=!r&&qo(n),u=!r&&!e&&Go(n),i=!r&&!e&&!u&&lf(n),o=r||e||u||i,f=o?Qt(n.length,In):[],a=f.length;for(var c in n)!t&&!Tn.call(n,c)||o&&("length"==c||u&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||di(c,a))||f.push(c);return f}function Yr(n){var t=n.length;return t?n[Ge(0,t-1)]:u}function Qr(n,t){return Wi(Iu(n),fe(t,0,n.length))}function Xr(n){return Wi(Iu(n))}function ne(n,t,r){(r!==u&&!Do(n[t],r)||r===u&&!(t in n))&&ie(n,t,r)}function te(n,t,r){var e=n[t];Tn.call(n,t)&&Do(e,r)&&(r!==u||t in n)||ie(n,t,r)}function re(n,t){for(var r=n.length;r--;)if(Do(n[r][0],t))return r;return-1}function ee(n,t,r,e){return he(n,(function(n,u,i){t(e,n,r(n),i)})),e}function ue(n,t){return n&&zu(t,Cf(t),n)}function ie(n,t,r){"__proto__"==t&&nt?nt(n,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):n[t]=r}function oe(n,t){for(var e=-1,i=t.length,o=r(i),f=null==n;++e<i;)o[e]=f?u:Rf(n,t[e]);return o}function fe(n,t,r){return n===n&&(r!==u&&(n=n<=r?n:r),t!==u&&(n=n>=t?n:t)),n}function ae(n,t,r,e,i,o){var f,a=1&t,c=2&t,l=4&t;if(r&&(f=i?r(n,e,i,o):r(n)),f!==u)return f;if(!nf(n))return n;var s=Po(n);if(s){if(f=function(n){var t=n.length,r=new n.constructor(t);t&&"string"==typeof n[0]&&Tn.call(n,"index")&&(r.index=n.index,r.input=n.input);return r}(n),!a)return Iu(n,f)}else{var h=vi(n),p=h==A||h==j;if(Go(n))return Au(n,a);if(h==R||h==d||p&&!i){if(f=c||p?{}:gi(n),!a)return c?function(n,t){return zu(n,pi(n),t)}(n,function(n,t){return n&&zu(t,Lf(t),n)}(f,n)):function(n,t){return zu(n,hi(n),t)}(n,ue(f,n))}else{if(!lt[h])return i?n:{};f=function(n,t,r){var e=n.constructor;switch(t){case W:return ju(n);case b:case m:return new e(+n);case B:return function(n,t){var r=t?ju(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.byteLength)}(n,r);case T:case U:case M:case $:case D:case N:case F:case q:case P:return ku(n,r);case k:return new e;case E:case S:return new e(n);case I:return function(n){var t=new n.constructor(n.source,gn.exec(n));return t.lastIndex=n.lastIndex,t}(n);case z:return new e;case C:return u=n,Mr?Rn(Mr.call(u)):{}}var u}(n,h,a)}}o||(o=new Hr);var v=o.get(n);if(v)return v;o.set(n,f),ff(n)?n.forEach((function(e){f.add(ae(e,t,r,e,n,o))})):rf(n)&&n.forEach((function(e,u){f.set(u,ae(e,t,r,u,n,o))}));var _=s?u:(l?c?ui:ei:c?Lf:Cf)(n);return zt(_||n,(function(e,u){_&&(e=n[u=e]),te(f,u,ae(e,t,r,u,n,o))})),f}function ce(n,t,r){var e=r.length;if(null==n)return!e;for(n=Rn(n);e--;){var i=r[e],o=t[i],f=n[i];if(f===u&&!(i in n)||!o(f))return!1}return!0}function le(n,t,r){if("function"!=typeof n)throw new zn(i);return zi((function(){n.apply(u,r)}),t)}function se(n,t,r,e){var u=-1,i=Wt,o=!0,f=n.length,a=[],c=t.length;if(!f)return a;r&&(t=Tt(t,nr(r))),e?(i=Bt,o=!1):t.length>=200&&(i=rr,o=!1,t=new Gr(t));n:for(;++u<f;){var l=n[u],s=null==r?l:r(l);if(l=e||0!==l?l:0,o&&s===s){for(var h=c;h--;)if(t[h]===s)continue n;a.push(l)}else i(t,s,e)||a.push(l)}return a}Dr.templateSettings={escape:Q,evaluate:X,interpolate:nn,variable:"",imports:{_:Dr}},Dr.prototype=Fr.prototype,Dr.prototype.constructor=Dr,qr.prototype=Nr(Fr.prototype),qr.prototype.constructor=qr,Pr.prototype=Nr(Fr.prototype),Pr.prototype.constructor=Pr,Vr.prototype.clear=function(){this.__data__=Ir?Ir(null):{},this.size=0},Vr.prototype.delete=function(n){var t=this.has(n)&&delete this.__data__[n];return this.size-=t?1:0,t},Vr.prototype.get=function(n){var t=this.__data__;if(Ir){var r=t[n];return r===o?u:r}return Tn.call(t,n)?t[n]:u},Vr.prototype.has=function(n){var t=this.__data__;return Ir?t[n]!==u:Tn.call(t,n)},Vr.prototype.set=function(n,t){var r=this.__data__;return this.size+=this.has(n)?0:1,r[n]=Ir&&t===u?o:t,this},Zr.prototype.clear=function(){this.__data__=[],this.size=0},Zr.prototype.delete=function(n){var t=this.__data__,r=re(t,n);return!(r<0)&&(r==t.length-1?t.pop():Jn.call(t,r,1),--this.size,!0)},Zr.prototype.get=function(n){var t=this.__data__,r=re(t,n);return r<0?u:t[r][1]},Zr.prototype.has=function(n){return re(this.__data__,n)>-1},Zr.prototype.set=function(n,t){var r=this.__data__,e=re(r,n);return e<0?(++this.size,r.push([n,t])):r[e][1]=t,this},Kr.prototype.clear=function(){this.size=0,this.__data__={hash:new Vr,map:new(kr||Zr),string:new Vr}},Kr.prototype.delete=function(n){var t=ci(this,n).delete(n);return this.size-=t?1:0,t},Kr.prototype.get=function(n){return ci(this,n).get(n)},Kr.prototype.has=function(n){return ci(this,n).has(n)},Kr.prototype.set=function(n,t){var r=ci(this,n),e=r.size;return r.set(n,t),this.size+=r.size==e?0:1,this},Gr.prototype.add=Gr.prototype.push=function(n){return this.__data__.set(n,o),this},Gr.prototype.has=function(n){return this.__data__.has(n)},Hr.prototype.clear=function(){this.__data__=new Zr,this.size=0},Hr.prototype.delete=function(n){var t=this.__data__,r=t.delete(n);return this.size=t.size,r},Hr.prototype.get=function(n){return this.__data__.get(n)},Hr.prototype.has=function(n){return this.__data__.has(n)},Hr.prototype.set=function(n,t){var r=this.__data__;if(r instanceof Zr){var e=r.__data__;if(!kr||e.length<199)return e.push([n,t]),this.size=++r.size,this;r=this.__data__=new Kr(e)}return r.set(n,t),this.size=r.size,this};var he=Lu(be),pe=Lu(me,!0);function ve(n,t){var r=!0;return he(n,(function(n,e,u){return r=!!t(n,e,u)})),r}function _e(n,t,r){for(var e=-1,i=n.length;++e<i;){var o=n[e],f=t(o);if(null!=f&&(a===u?f===f&&!cf(f):r(f,a)))var a=f,c=o}return c}function ge(n,t){var r=[];return he(n,(function(n,e,u){t(n,e,u)&&r.push(n)})),r}function ye(n,t,r,e,u){var i=-1,o=n.length;for(r||(r=yi),u||(u=[]);++i<o;){var f=n[i];t>0&&r(f)?t>1?ye(f,t-1,r,e,u):Ut(u,f):e||(u[u.length]=f)}return u}var de=Wu(),we=Wu(!0);function be(n,t){return n&&de(n,t,Cf)}function me(n,t){return n&&we(n,t,Cf)}function xe(n,t){return Lt(t,(function(t){return Yo(n[t])}))}function Ae(n,t){for(var r=0,e=(t=wu(t,n)).length;null!=n&&r<e;)n=n[Ti(t[r++])];return r&&r==e?n:u}function je(n,t,r){var e=t(n);return Po(n)?e:Ut(e,r(n))}function ke(n){return null==n?n===u?"[object Undefined]":"[object Null]":Xn&&Xn in Rn(n)?function(n){var t=Tn.call(n,Xn),r=n[Xn];try{n[Xn]=u;var e=!0}catch(o){}var i=$n.call(n);e&&(t?n[Xn]=r:delete n[Xn]);return i}(n):function(n){return $n.call(n)}(n)}function Ee(n,t){return n>t}function Re(n,t){return null!=n&&Tn.call(n,t)}function Oe(n,t){return null!=n&&t in Rn(n)}function Ie(n,t,e){for(var i=e?Bt:Wt,o=n[0].length,f=n.length,a=f,c=r(f),l=1/0,s=[];a--;){var h=n[a];a&&t&&(h=Tt(h,nr(t))),l=wr(h.length,l),c[a]=!e&&(t||o>=120&&h.length>=120)?new Gr(a&&h):u}h=n[0];var p=-1,v=c[0];n:for(;++p<o&&s.length<l;){var _=h[p],g=t?t(_):_;if(_=e||0!==_?_:0,!(v?rr(v,g):i(s,g,e))){for(a=f;--a;){var y=c[a];if(!(y?rr(y,g):i(n[a],g,e)))continue n}v&&v.push(g),s.push(_)}}return s}function ze(n,t,r){var e=null==(n=Ri(n,t=wu(t,n)))?n:n[Ti(Hi(t))];return null==e?u:Ot(e,n,r)}function Se(n){return tf(n)&&ke(n)==d}function Ce(n,t,r,e,i){return n===t||(null==n||null==t||!tf(n)&&!tf(t)?n!==n&&t!==t:function(n,t,r,e,i,o){var f=Po(n),a=Po(t),c=f?w:vi(n),l=a?w:vi(t),s=(c=c==d?R:c)==R,h=(l=l==d?R:l)==R,p=c==l;if(p&&Go(n)){if(!Go(t))return!1;f=!0,s=!1}if(p&&!s)return o||(o=new Hr),f||lf(n)?ti(n,t,r,e,i,o):function(n,t,r,e,u,i,o){switch(r){case B:if(n.byteLength!=t.byteLength||n.byteOffset!=t.byteOffset)return!1;n=n.buffer,t=t.buffer;case W:return!(n.byteLength!=t.byteLength||!i(new Vn(n),new Vn(t)));case b:case m:case E:return Do(+n,+t);case x:return n.name==t.name&&n.message==t.message;case I:case S:return n==t+"";case k:var f=cr;case z:var a=1&e;if(f||(f=hr),n.size!=t.size&&!a)return!1;var c=o.get(n);if(c)return c==t;e|=2,o.set(n,t);var l=ti(f(n),f(t),e,u,i,o);return o.delete(n),l;case C:if(Mr)return Mr.call(n)==Mr.call(t)}return!1}(n,t,c,r,e,i,o);if(!(1&r)){var v=s&&Tn.call(n,"__wrapped__"),_=h&&Tn.call(t,"__wrapped__");if(v||_){var g=v?n.value():n,y=_?t.value():t;return o||(o=new Hr),i(g,y,r,e,o)}}if(!p)return!1;return o||(o=new Hr),function(n,t,r,e,i,o){var f=1&r,a=ei(n),c=a.length,l=ei(t),s=l.length;if(c!=s&&!f)return!1;var h=c;for(;h--;){var p=a[h];if(!(f?p in t:Tn.call(t,p)))return!1}var v=o.get(n),_=o.get(t);if(v&&_)return v==t&&_==n;var g=!0;o.set(n,t),o.set(t,n);var y=f;for(;++h<c;){var d=n[p=a[h]],w=t[p];if(e)var b=f?e(w,d,p,t,n,o):e(d,w,p,n,t,o);if(!(b===u?d===w||i(d,w,r,e,o):b)){g=!1;break}y||(y="constructor"==p)}if(g&&!y){var m=n.constructor,x=t.constructor;m==x||!("constructor"in n)||!("constructor"in t)||"function"==typeof m&&m instanceof m&&"function"==typeof x&&x instanceof x||(g=!1)}return o.delete(n),o.delete(t),g}(n,t,r,e,i,o)}(n,t,r,e,Ce,i))}function Le(n,t,r,e){var i=r.length,o=i,f=!e;if(null==n)return!o;for(n=Rn(n);i--;){var a=r[i];if(f&&a[2]?a[1]!==n[a[0]]:!(a[0]in n))return!1}for(;++i<o;){var c=(a=r[i])[0],l=n[c],s=a[1];if(f&&a[2]){if(l===u&&!(c in n))return!1}else{var h=new Hr;if(e)var p=e(l,s,c,n,t,h);if(!(p===u?Ce(s,l,3,e,h):p))return!1}}return!0}function We(n){return!(!nf(n)||(t=n,Mn&&Mn in t))&&(Yo(n)?Fn:wn).test(Ui(n));var t}function Be(n){return"function"==typeof n?n:null==n?ua:"object"==typeof n?Po(n)?Ne(n[0],n[1]):De(n):pa(n)}function Te(n){if(!Ai(n))return Nt(n);var t=[];for(var r in Rn(n))Tn.call(n,r)&&"constructor"!=r&&t.push(r);return t}function Ue(n){if(!nf(n))return function(n){var t=[];if(null!=n)for(var r in Rn(n))t.push(r);return t}(n);var t=Ai(n),r=[];for(var e in n)("constructor"!=e||!t&&Tn.call(n,e))&&r.push(e);return r}function Me(n,t){return n<t}function $e(n,t){var e=-1,u=Zo(n)?r(n.length):[];return he(n,(function(n,r,i){u[++e]=t(n,r,i)})),u}function De(n){var t=li(n);return 1==t.length&&t[0][2]?ki(t[0][0],t[0][1]):function(r){return r===n||Le(r,n,t)}}function Ne(n,t){return bi(n)&&ji(t)?ki(Ti(n),t):function(r){var e=Rf(r,n);return e===u&&e===t?Of(r,n):Ce(t,e,3)}}function Fe(n,t,r,e,i){n!==t&&de(t,(function(o,f){if(i||(i=new Hr),nf(o))!function(n,t,r,e,i,o,f){var a=Oi(n,r),c=Oi(t,r),l=f.get(c);if(l)return void ne(n,r,l);var s=o?o(a,c,r+"",n,t,f):u,h=s===u;if(h){var p=Po(c),v=!p&&Go(c),_=!p&&!v&&lf(c);s=c,p||v||_?Po(a)?s=a:Ko(a)?s=Iu(a):v?(h=!1,s=Au(c,!0)):_?(h=!1,s=ku(c,!0)):s=[]:uf(c)||qo(c)?(s=a,qo(a)?s=df(a):nf(a)&&!Yo(a)||(s=gi(c))):h=!1}h&&(f.set(c,s),i(s,c,e,o,f),f.delete(c));ne(n,r,s)}(n,t,f,r,Fe,e,i);else{var a=e?e(Oi(n,f),o,f+"",n,t,i):u;a===u&&(a=o),ne(n,f,a)}}),Lf)}function qe(n,t){var r=n.length;if(r)return di(t+=t<0?r:0,r)?n[t]:u}function Pe(n,t,r){t=t.length?Tt(t,(function(n){return Po(n)?function(t){return Ae(t,1===n.length?n[0]:n)}:n})):[ua];var e=-1;t=Tt(t,nr(ai()));var u=$e(n,(function(n,r,u){var i=Tt(t,(function(t){return t(n)}));return{criteria:i,index:++e,value:n}}));return function(n,t){var r=n.length;for(n.sort(t);r--;)n[r]=n[r].value;return n}(u,(function(n,t){return function(n,t,r){var e=-1,u=n.criteria,i=t.criteria,o=u.length,f=r.length;for(;++e<o;){var a=Eu(u[e],i[e]);if(a)return e>=f?a:a*("desc"==r[e]?-1:1)}return n.index-t.index}(n,t,r)}))}function Ve(n,t,r){for(var e=-1,u=t.length,i={};++e<u;){var o=t[e],f=Ae(n,o);r(f,o)&&Xe(i,wu(o,n),f)}return i}function Ze(n,t,r,e){var u=e?Vt:Pt,i=-1,o=t.length,f=n;for(n===t&&(t=Iu(t)),r&&(f=Tt(n,nr(r)));++i<o;)for(var a=0,c=t[i],l=r?r(c):c;(a=u(f,l,a,e))>-1;)f!==n&&Jn.call(f,a,1),Jn.call(n,a,1);return n}function Ke(n,t){for(var r=n?t.length:0,e=r-1;r--;){var u=t[r];if(r==e||u!==i){var i=u;di(u)?Jn.call(n,u,1):su(n,u)}}return n}function Ge(n,t){return n+_t(xr()*(t-n+1))}function He(n,t){var r="";if(!n||t<1||t>v)return r;do{t%2&&(r+=n),(t=_t(t/2))&&(n+=n)}while(t);return r}function Je(n,t){return Si(Ei(n,t,ua),n+"")}function Ye(n){return Yr(Nf(n))}function Qe(n,t){var r=Nf(n);return Wi(r,fe(t,0,r.length))}function Xe(n,t,r,e){if(!nf(n))return n;for(var i=-1,o=(t=wu(t,n)).length,f=o-1,a=n;null!=a&&++i<o;){var c=Ti(t[i]),l=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return n;if(i!=f){var s=a[c];(l=e?e(s,c,a):u)===u&&(l=nf(s)?s:di(t[i+1])?[]:{})}te(a,c,l),a=a[c]}return n}var nu=zr?function(n,t){return zr.set(n,t),n}:ua,tu=nt?function(n,t){return nt(n,"toString",{configurable:!0,enumerable:!1,value:ta(t),writable:!0})}:ua;function ru(n){return Wi(Nf(n))}function eu(n,t,e){var u=-1,i=n.length;t<0&&(t=-t>i?0:i+t),(e=e>i?i:e)<0&&(e+=i),i=t>e?0:e-t>>>0,t>>>=0;for(var o=r(i);++u<i;)o[u]=n[u+t];return o}function uu(n,t){var r;return he(n,(function(n,e,u){return!(r=t(n,e,u))})),!!r}function iu(n,t,r){var e=0,u=null==n?e:n.length;if("number"==typeof t&&t===t&&u<=2147483647){for(;e<u;){var i=e+u>>>1,o=n[i];null!==o&&!cf(o)&&(r?o<=t:o<t)?e=i+1:u=i}return u}return ou(n,t,ua,r)}function ou(n,t,r,e){var i=0,o=null==n?0:n.length;if(0===o)return 0;for(var f=(t=r(t))!==t,a=null===t,c=cf(t),l=t===u;i<o;){var s=_t((i+o)/2),h=r(n[s]),p=h!==u,v=null===h,_=h===h,g=cf(h);if(f)var y=e||_;else y=l?_&&(e||p):a?_&&p&&(e||!v):c?_&&p&&!v&&(e||!g):!v&&!g&&(e?h<=t:h<t);y?i=s+1:o=s}return wr(o,4294967294)}function fu(n,t){for(var r=-1,e=n.length,u=0,i=[];++r<e;){var o=n[r],f=t?t(o):o;if(!r||!Do(f,a)){var a=f;i[u++]=0===o?0:o}}return i}function au(n){return"number"==typeof n?n:cf(n)?_:+n}function cu(n){if("string"==typeof n)return n;if(Po(n))return Tt(n,cu)+"";if(cf(n))return $r?$r.call(n):"";var t=n+"";return"0"==t&&1/n==-1/0?"-0":t}function lu(n,t,r){var e=-1,u=Wt,i=n.length,o=!0,f=[],a=f;if(r)o=!1,u=Bt;else if(i>=200){var c=t?null:Hu(n);if(c)return hr(c);o=!1,u=rr,a=new Gr}else a=t?[]:f;n:for(;++e<i;){var l=n[e],s=t?t(l):l;if(l=r||0!==l?l:0,o&&s===s){for(var h=a.length;h--;)if(a[h]===s)continue n;t&&a.push(s),f.push(l)}else u(a,s,r)||(a!==f&&a.push(s),f.push(l))}return f}function su(n,t){return null==(n=Ri(n,t=wu(t,n)))||delete n[Ti(Hi(t))]}function hu(n,t,r,e){return Xe(n,t,r(Ae(n,t)),e)}function pu(n,t,r,e){for(var u=n.length,i=e?u:-1;(e?i--:++i<u)&&t(n[i],i,n););return r?eu(n,e?0:i,e?i+1:u):eu(n,e?i+1:0,e?u:i)}function vu(n,t){var r=n;return r instanceof Pr&&(r=r.value()),Mt(t,(function(n,t){return t.func.apply(t.thisArg,Ut([n],t.args))}),r)}function _u(n,t,e){var u=n.length;if(u<2)return u?lu(n[0]):[];for(var i=-1,o=r(u);++i<u;)for(var f=n[i],a=-1;++a<u;)a!=i&&(o[i]=se(o[i]||f,n[a],t,e));return lu(ye(o,1),t,e)}function gu(n,t,r){for(var e=-1,i=n.length,o=t.length,f={};++e<i;){var a=e<o?t[e]:u;r(f,n[e],a)}return f}function yu(n){return Ko(n)?n:[]}function du(n){return"function"==typeof n?n:ua}function wu(n,t){return Po(n)?n:bi(n,t)?[n]:Bi(wf(n))}var bu=Je;function mu(n,t,r){var e=n.length;return r=r===u?e:r,!t&&r>=e?n:eu(n,t,r)}var xu=et||function(n){return gt.clearTimeout(n)};function Au(n,t){if(t)return n.slice();var r=n.length,e=Zn?Zn(r):new n.constructor(r);return n.copy(e),e}function ju(n){var t=new n.constructor(n.byteLength);return new Vn(t).set(new Vn(n)),t}function ku(n,t){var r=t?ju(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.length)}function Eu(n,t){if(n!==t){var r=n!==u,e=null===n,i=n===n,o=cf(n),f=t!==u,a=null===t,c=t===t,l=cf(t);if(!a&&!l&&!o&&n>t||o&&f&&c&&!a&&!l||e&&f&&c||!r&&c||!i)return 1;if(!e&&!o&&!l&&n<t||l&&r&&i&&!e&&!o||a&&r&&i||!f&&i||!c)return-1}return 0}function Ru(n,t,e,u){for(var i=-1,o=n.length,f=e.length,a=-1,c=t.length,l=Ht(o-f,0),s=r(c+l),h=!u;++a<c;)s[a]=t[a];for(;++i<f;)(h||i<o)&&(s[e[i]]=n[i]);for(;l--;)s[a++]=n[i++];return s}function Ou(n,t,e,u){for(var i=-1,o=n.length,f=-1,a=e.length,c=-1,l=t.length,s=Ht(o-a,0),h=r(s+l),p=!u;++i<s;)h[i]=n[i];for(var v=i;++c<l;)h[v+c]=t[c];for(;++f<a;)(p||i<o)&&(h[v+e[f]]=n[i++]);return h}function Iu(n,t){var e=-1,u=n.length;for(t||(t=r(u));++e<u;)t[e]=n[e];return t}function zu(n,t,r,e){var i=!r;r||(r={});for(var o=-1,f=t.length;++o<f;){var a=t[o],c=e?e(r[a],n[a],a,r,n):u;c===u&&(c=n[a]),i?ie(r,a,c):te(r,a,c)}return r}function Su(n,t){return function(r,e){var u=Po(r)?It:ee,i=t?t():{};return u(r,n,ai(e,2),i)}}function Cu(n){return Je((function(t,r){var e=-1,i=r.length,o=i>1?r[i-1]:u,f=i>2?r[2]:u;for(o=n.length>3&&"function"==typeof o?(i--,o):u,f&&wi(r[0],r[1],f)&&(o=i<3?u:o,i=1),t=Rn(t);++e<i;){var a=r[e];a&&n(t,a,e,o)}return t}))}function Lu(n,t){return function(r,e){if(null==r)return r;if(!Zo(r))return n(r,e);for(var u=r.length,i=t?u:-1,o=Rn(r);(t?i--:++i<u)&&!1!==e(o[i],i,o););return r}}function Wu(n){return function(t,r,e){for(var u=-1,i=Rn(t),o=e(t),f=o.length;f--;){var a=o[n?f:++u];if(!1===r(i[a],a,i))break}return t}}function Bu(n){return function(t){var r=ar(t=wf(t))?_r(t):u,e=r?r[0]:t.charAt(0),i=r?mu(r,1).join(""):t.slice(1);return e[n]()+i}}function Tu(n){return function(t){return Mt(Qf(Pf(t).replace(tt,"")),n,"")}}function Uu(n){return function(){var t=arguments;switch(t.length){case 0:return new n;case 1:return new n(t[0]);case 2:return new n(t[0],t[1]);case 3:return new n(t[0],t[1],t[2]);case 4:return new n(t[0],t[1],t[2],t[3]);case 5:return new n(t[0],t[1],t[2],t[3],t[4]);case 6:return new n(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new n(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=Nr(n.prototype),e=n.apply(r,t);return nf(e)?e:r}}function Mu(n){return function(t,r,e){var i=Rn(t);if(!Zo(t)){var o=ai(r,3);t=Cf(t),r=function(n){return o(i[n],n,i)}}var f=n(t,r,e);return f>-1?i[o?t[f]:f]:u}}function $u(n){return ri((function(t){var r=t.length,e=r,o=qr.prototype.thru;for(n&&t.reverse();e--;){var f=t[e];if("function"!=typeof f)throw new zn(i);if(o&&!a&&"wrapper"==oi(f))var a=new qr([],!0)}for(e=a?e:r;++e<r;){var c=oi(f=t[e]),l="wrapper"==c?ii(f):u;a=l&&mi(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?a[oi(l[0])].apply(a,l[3]):1==f.length&&mi(f)?a[c]():a.thru(f)}return function(){var n=arguments,e=n[0];if(a&&1==n.length&&Po(e))return a.plant(e).value();for(var u=0,i=r?t[u].apply(this,n):e;++u<r;)i=t[u].call(this,i);return i}}))}function Du(n,t,e,i,o,f,a,c,l,h){var p=t&s,v=1&t,_=2&t,g=24&t,y=512&t,d=_?u:Uu(n);return function s(){for(var w=arguments.length,b=r(w),m=w;m--;)b[m]=arguments[m];if(g)var x=fi(s),A=function(n,t){for(var r=n.length,e=0;r--;)n[r]===t&&++e;return e}(b,x);if(i&&(b=Ru(b,i,o,g)),f&&(b=Ou(b,f,a,g)),w-=A,g&&w<h){var j=sr(b,x);return Ku(n,t,Du,s.placeholder,e,b,j,c,l,h-w)}var k=v?e:this,E=_?k[n]:n;return w=b.length,c?b=function(n,t){var r=n.length,e=wr(t.length,r),i=Iu(n);for(;e--;){var o=t[e];n[e]=di(o,r)?i[o]:u}return n}(b,c):y&&w>1&&b.reverse(),p&&l<w&&(b.length=l),this&&this!==gt&&this instanceof s&&(E=d||Uu(E)),E.apply(k,b)}}function Nu(n,t){return function(r,e){return function(n,t,r,e){return be(n,(function(n,u,i){t(e,r(n),u,i)})),e}(r,n,t(e),{})}}function Fu(n,t){return function(r,e){var i;if(r===u&&e===u)return t;if(r!==u&&(i=r),e!==u){if(i===u)return e;"string"==typeof r||"string"==typeof e?(r=cu(r),e=cu(e)):(r=au(r),e=au(e)),i=n(r,e)}return i}}function qu(n){return ri((function(t){return t=Tt(t,nr(ai())),Je((function(r){var e=this;return n(t,(function(n){return Ot(n,e,r)}))}))}))}function Pu(n,t){var r=(t=t===u?" ":cu(t)).length;if(r<2)return r?He(t,n):t;var e=He(t,vt(n/vr(t)));return ar(t)?mu(_r(e),0,n).join(""):e.slice(0,n)}function Vu(n){return function(t,e,i){return i&&"number"!=typeof i&&wi(t,e,i)&&(e=i=u),t=vf(t),e===u?(e=t,t=0):e=vf(e),function(n,t,e,u){for(var i=-1,o=Ht(vt((t-n)/(e||1)),0),f=r(o);o--;)f[u?o:++i]=n,n+=e;return f}(t,e,i=i===u?t<e?1:-1:vf(i),n)}}function Zu(n){return function(t,r){return"string"==typeof t&&"string"==typeof r||(t=yf(t),r=yf(r)),n(t,r)}}function Ku(n,t,r,e,i,o,f,a,s,h){var p=8&t;t|=p?c:l,4&(t&=~(p?l:c))||(t&=-4);var v=[n,t,i,p?o:u,p?f:u,p?u:o,p?u:f,a,s,h],_=r.apply(u,v);return mi(n)&&Ii(_,v),_.placeholder=e,Ci(_,n,t)}function Gu(n){var t=En[n];return function(n,r){if(n=yf(n),(r=null==r?0:wr(_f(r),292))&&bt(n)){var e=(wf(n)+"e").split("e");return+((e=(wf(t(e[0]+"e"+(+e[1]+r)))+"e").split("e"))[0]+"e"+(+e[1]-r))}return t(n)}}var Hu=Rr&&1/hr(new Rr([,-0]))[1]==p?function(n){return new Rr(n)}:ca;function Ju(n){return function(t){var r=vi(t);return r==k?cr(t):r==z?pr(t):function(n,t){return Tt(t,(function(t){return[t,n[t]]}))}(t,n(t))}}function Yu(n,t,e,o,p,v,_,g){var y=2&t;if(!y&&"function"!=typeof n)throw new zn(i);var d=o?o.length:0;if(d||(t&=-97,o=p=u),_=_===u?_:Ht(_f(_),0),g=g===u?g:_f(g),d-=p?p.length:0,t&l){var w=o,b=p;o=p=u}var m=y?u:ii(n),x=[n,t,e,o,p,w,b,v,_,g];if(m&&function(n,t){var r=n[1],e=t[1],u=r|e,i=u<131,o=e==s&&8==r||e==s&&r==h&&n[7].length<=t[8]||384==e&&t[7].length<=t[8]&&8==r;if(!i&&!o)return n;1&e&&(n[2]=t[2],u|=1&r?0:4);var a=t[3];if(a){var c=n[3];n[3]=c?Ru(c,a,t[4]):a,n[4]=c?sr(n[3],f):t[4]}(a=t[5])&&(c=n[5],n[5]=c?Ou(c,a,t[6]):a,n[6]=c?sr(n[5],f):t[6]);(a=t[7])&&(n[7]=a);e&s&&(n[8]=null==n[8]?t[8]:wr(n[8],t[8]));null==n[9]&&(n[9]=t[9]);n[0]=t[0],n[1]=u}(x,m),n=x[0],t=x[1],e=x[2],o=x[3],p=x[4],!(g=x[9]=x[9]===u?y?0:n.length:Ht(x[9]-d,0))&&24&t&&(t&=-25),t&&1!=t)A=8==t||t==a?function(n,t,e){var i=Uu(n);return function o(){for(var f=arguments.length,a=r(f),c=f,l=fi(o);c--;)a[c]=arguments[c];var s=f<3&&a[0]!==l&&a[f-1]!==l?[]:sr(a,l);return(f-=s.length)<e?Ku(n,t,Du,o.placeholder,u,a,s,u,u,e-f):Ot(this&&this!==gt&&this instanceof o?i:n,this,a)}}(n,t,g):t!=c&&33!=t||p.length?Du.apply(u,x):function(n,t,e,u){var i=1&t,o=Uu(n);return function t(){for(var f=-1,a=arguments.length,c=-1,l=u.length,s=r(l+a),h=this&&this!==gt&&this instanceof t?o:n;++c<l;)s[c]=u[c];for(;a--;)s[c++]=arguments[++f];return Ot(h,i?e:this,s)}}(n,t,e,o);else var A=function(n,t,r){var e=1&t,u=Uu(n);return function t(){return(this&&this!==gt&&this instanceof t?u:n).apply(e?r:this,arguments)}}(n,t,e);return Ci((m?nu:Ii)(A,x),n,t)}function Qu(n,t,r,e){return n===u||Do(n,Ln[r])&&!Tn.call(e,r)?t:n}function Xu(n,t,r,e,i,o){return nf(n)&&nf(t)&&(o.set(t,n),Fe(n,t,u,Xu,o),o.delete(t)),n}function ni(n){return uf(n)?u:n}function ti(n,t,r,e,i,o){var f=1&r,a=n.length,c=t.length;if(a!=c&&!(f&&c>a))return!1;var l=o.get(n),s=o.get(t);if(l&&s)return l==t&&s==n;var h=-1,p=!0,v=2&r?new Gr:u;for(o.set(n,t),o.set(t,n);++h<a;){var _=n[h],g=t[h];if(e)var y=f?e(g,_,h,t,n,o):e(_,g,h,n,t,o);if(y!==u){if(y)continue;p=!1;break}if(v){if(!Dt(t,(function(n,t){if(!rr(v,t)&&(_===n||i(_,n,r,e,o)))return v.push(t)}))){p=!1;break}}else if(_!==g&&!i(_,g,r,e,o)){p=!1;break}}return o.delete(n),o.delete(t),p}function ri(n){return Si(Ei(n,u,Pi),n+"")}function ei(n){return je(n,Cf,hi)}function ui(n){return je(n,Lf,pi)}var ii=zr?function(n){return zr.get(n)}:ca;function oi(n){for(var t=n.name+"",r=Sr[t],e=Tn.call(Sr,t)?r.length:0;e--;){var u=r[e],i=u.func;if(null==i||i==n)return u.name}return t}function fi(n){return(Tn.call(Dr,"placeholder")?Dr:n).placeholder}function ai(){var n=Dr.iteratee||ia;return n=n===ia?Be:n,arguments.length?n(arguments[0],arguments[1]):n}function ci(n,t){var r=n.__data__;return function(n){var t=typeof n;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==n:null===n}(t)?r["string"==typeof t?"string":"hash"]:r.map}function li(n){for(var t=Cf(n),r=t.length;r--;){var e=t[r],u=n[e];t[r]=[e,u,ji(u)]}return t}function si(n,t){var r=function(n,t){return null==n?u:n[t]}(n,t);return We(r)?r:u}var hi=yt?function(n){return null==n?[]:(n=Rn(n),Lt(yt(n),(function(t){return Hn.call(n,t)})))}:ga,pi=yt?function(n){for(var t=[];n;)Ut(t,hi(n)),n=Kn(n);return t}:ga,vi=ke;function _i(n,t,r){for(var e=-1,u=(t=wu(t,n)).length,i=!1;++e<u;){var o=Ti(t[e]);if(!(i=null!=n&&r(n,o)))break;n=n[o]}return i||++e!=u?i:!!(u=null==n?0:n.length)&&Xo(u)&&di(o,u)&&(Po(n)||qo(n))}function gi(n){return"function"!=typeof n.constructor||Ai(n)?{}:Nr(Kn(n))}function yi(n){return Po(n)||qo(n)||!!(Yn&&n&&n[Yn])}function di(n,t){var r=typeof n;return!!(t=null==t?v:t)&&("number"==r||"symbol"!=r&&mn.test(n))&&n>-1&&n%1==0&&n<t}function wi(n,t,r){if(!nf(r))return!1;var e=typeof t;return!!("number"==e?Zo(r)&&di(t,r.length):"string"==e&&t in r)&&Do(r[t],n)}function bi(n,t){if(Po(n))return!1;var r=typeof n;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=n&&!cf(n))||(rn.test(n)||!tn.test(n)||null!=t&&n in Rn(t))}function mi(n){var t=oi(n),r=Dr[t];if("function"!=typeof r||!(t in Pr.prototype))return!1;if(n===r)return!0;var e=ii(r);return!!e&&n===e[0]}(jr&&vi(new jr(new ArrayBuffer(1)))!=B||kr&&vi(new kr)!=k||Er&&vi(Er.resolve())!=O||Rr&&vi(new Rr)!=z||Or&&vi(new Or)!=L)&&(vi=function(n){var t=ke(n),r=t==R?n.constructor:u,e=r?Ui(r):"";if(e)switch(e){case Cr:return B;case Lr:return k;case Wr:return O;case Br:return z;case Tr:return L}return t});var xi=Wn?Yo:ya;function Ai(n){var t=n&&n.constructor;return n===("function"==typeof t&&t.prototype||Ln)}function ji(n){return n===n&&!nf(n)}function ki(n,t){return function(r){return null!=r&&(r[n]===t&&(t!==u||n in Rn(r)))}}function Ei(n,t,e){return t=Ht(t===u?n.length-1:t,0),function(){for(var u=arguments,i=-1,o=Ht(u.length-t,0),f=r(o);++i<o;)f[i]=u[t+i];i=-1;for(var a=r(t+1);++i<t;)a[i]=u[i];return a[t]=e(f),Ot(n,this,a)}}function Ri(n,t){return t.length<2?n:Ae(n,eu(t,0,-1))}function Oi(n,t){if(("constructor"!==t||"function"!==typeof n[t])&&"__proto__"!=t)return n[t]}var Ii=Li(nu),zi=st||function(n,t){return gt.setTimeout(n,t)},Si=Li(tu);function Ci(n,t,r){var e=t+"";return Si(n,function(n,t){var r=t.length;if(!r)return n;var e=r-1;return t[e]=(r>1?"& ":"")+t[e],t=t.join(r>2?", ":" "),n.replace(cn,"{\n/* [wrapped with "+t+"] */\n")}(e,function(n,t){return zt(y,(function(r){var e="_."+r[0];t&r[1]&&!Wt(n,e)&&n.push(e)})),n.sort()}(function(n){var t=n.match(ln);return t?t[1].split(sn):[]}(e),r)))}function Li(n){var t=0,r=0;return function(){var e=br(),i=16-(e-r);if(r=e,i>0){if(++t>=800)return arguments[0]}else t=0;return n.apply(u,arguments)}}function Wi(n,t){var r=-1,e=n.length,i=e-1;for(t=t===u?e:t;++r<t;){var o=Ge(r,i),f=n[o];n[o]=n[r],n[r]=f}return n.length=t,n}var Bi=function(n){var t=Wo(n,(function(n){return 500===r.size&&r.clear(),n})),r=t.cache;return t}((function(n){var t=[];return 46===n.charCodeAt(0)&&t.push(""),n.replace(en,(function(n,r,e,u){t.push(e?u.replace(vn,"$1"):r||n)})),t}));function Ti(n){if("string"==typeof n||cf(n))return n;var t=n+"";return"0"==t&&1/n==-1/0?"-0":t}function Ui(n){if(null!=n){try{return Bn.call(n)}catch(t){}try{return n+""}catch(t){}}return""}function Mi(n){if(n instanceof Pr)return n.clone();var t=new qr(n.__wrapped__,n.__chain__);return t.__actions__=Iu(n.__actions__),t.__index__=n.__index__,t.__values__=n.__values__,t}var $i=Je((function(n,t){return Ko(n)?se(n,ye(t,1,Ko,!0)):[]})),Di=Je((function(n,t){var r=Hi(t);return Ko(r)&&(r=u),Ko(n)?se(n,ye(t,1,Ko,!0),ai(r,2)):[]})),Ni=Je((function(n,t){var r=Hi(t);return Ko(r)&&(r=u),Ko(n)?se(n,ye(t,1,Ko,!0),u,r):[]}));function Fi(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=null==r?0:_f(r);return u<0&&(u=Ht(e+u,0)),qt(n,ai(t,3),u)}function qi(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var i=e-1;return r!==u&&(i=_f(r),i=r<0?Ht(e+i,0):wr(i,e-1)),qt(n,ai(t,3),i,!0)}function Pi(n){return(null==n?0:n.length)?ye(n,1):[]}function Vi(n){return n&&n.length?n[0]:u}var Zi=Je((function(n){var t=Tt(n,yu);return t.length&&t[0]===n[0]?Ie(t):[]})),Ki=Je((function(n){var t=Hi(n),r=Tt(n,yu);return t===Hi(r)?t=u:r.pop(),r.length&&r[0]===n[0]?Ie(r,ai(t,2)):[]})),Gi=Je((function(n){var t=Hi(n),r=Tt(n,yu);return(t="function"==typeof t?t:u)&&r.pop(),r.length&&r[0]===n[0]?Ie(r,u,t):[]}));function Hi(n){var t=null==n?0:n.length;return t?n[t-1]:u}var Ji=Je(Yi);function Yi(n,t){return n&&n.length&&t&&t.length?Ze(n,t):n}var Qi=ri((function(n,t){var r=null==n?0:n.length,e=oe(n,t);return Ke(n,Tt(t,(function(n){return di(n,r)?+n:n})).sort(Eu)),e}));function Xi(n){return null==n?n:Ar.call(n)}var no=Je((function(n){return lu(ye(n,1,Ko,!0))})),to=Je((function(n){var t=Hi(n);return Ko(t)&&(t=u),lu(ye(n,1,Ko,!0),ai(t,2))})),ro=Je((function(n){var t=Hi(n);return t="function"==typeof t?t:u,lu(ye(n,1,Ko,!0),u,t)}));function eo(n){if(!n||!n.length)return[];var t=0;return n=Lt(n,(function(n){if(Ko(n))return t=Ht(n.length,t),!0})),Qt(t,(function(t){return Tt(n,Gt(t))}))}function uo(n,t){if(!n||!n.length)return[];var r=eo(n);return null==t?r:Tt(r,(function(n){return Ot(t,u,n)}))}var io=Je((function(n,t){return Ko(n)?se(n,t):[]})),oo=Je((function(n){return _u(Lt(n,Ko))})),fo=Je((function(n){var t=Hi(n);return Ko(t)&&(t=u),_u(Lt(n,Ko),ai(t,2))})),ao=Je((function(n){var t=Hi(n);return t="function"==typeof t?t:u,_u(Lt(n,Ko),u,t)})),co=Je(eo);var lo=Je((function(n){var t=n.length,r=t>1?n[t-1]:u;return r="function"==typeof r?(n.pop(),r):u,uo(n,r)}));function so(n){var t=Dr(n);return t.__chain__=!0,t}function ho(n,t){return t(n)}var po=ri((function(n){var t=n.length,r=t?n[0]:0,e=this.__wrapped__,i=function(t){return oe(t,n)};return!(t>1||this.__actions__.length)&&e instanceof Pr&&di(r)?((e=e.slice(r,+r+(t?1:0))).__actions__.push({func:ho,args:[i],thisArg:u}),new qr(e,this.__chain__).thru((function(n){return t&&!n.length&&n.push(u),n}))):this.thru(i)}));var vo=Su((function(n,t,r){Tn.call(n,r)?++n[r]:ie(n,r,1)}));var _o=Mu(Fi),go=Mu(qi);function yo(n,t){return(Po(n)?zt:he)(n,ai(t,3))}function wo(n,t){return(Po(n)?St:pe)(n,ai(t,3))}var bo=Su((function(n,t,r){Tn.call(n,r)?n[r].push(t):ie(n,r,[t])}));var mo=Je((function(n,t,e){var u=-1,i="function"==typeof t,o=Zo(n)?r(n.length):[];return he(n,(function(n){o[++u]=i?Ot(t,n,e):ze(n,t,e)})),o})),xo=Su((function(n,t,r){ie(n,r,t)}));function Ao(n,t){return(Po(n)?Tt:$e)(n,ai(t,3))}var jo=Su((function(n,t,r){n[r?0:1].push(t)}),(function(){return[[],[]]}));var ko=Je((function(n,t){if(null==n)return[];var r=t.length;return r>1&&wi(n,t[0],t[1])?t=[]:r>2&&wi(t[0],t[1],t[2])&&(t=[t[0]]),Pe(n,ye(t,1),[])})),Eo=it||function(){return gt.Date.now()};function Ro(n,t,r){return t=r?u:t,t=n&&null==t?n.length:t,Yu(n,s,u,u,u,u,t)}function Oo(n,t){var r;if("function"!=typeof t)throw new zn(i);return n=_f(n),function(){return--n>0&&(r=t.apply(this,arguments)),n<=1&&(t=u),r}}var Io=Je((function(n,t,r){var e=1;if(r.length){var u=sr(r,fi(Io));e|=c}return Yu(n,e,t,r,u)})),zo=Je((function(n,t,r){var e=3;if(r.length){var u=sr(r,fi(zo));e|=c}return Yu(t,e,n,r,u)}));function So(n,t,r){var e,o,f,a,c,l,s=0,h=!1,p=!1,v=!0;if("function"!=typeof n)throw new zn(i);function _(t){var r=e,i=o;return e=o=u,s=t,a=n.apply(i,r)}function g(n){var r=n-l;return l===u||r>=t||r<0||p&&n-s>=f}function y(){var n=Eo();if(g(n))return d(n);c=zi(y,function(n){var r=t-(n-l);return p?wr(r,f-(n-s)):r}(n))}function d(n){return c=u,v&&e?_(n):(e=o=u,a)}function w(){var n=Eo(),r=g(n);if(e=arguments,o=this,l=n,r){if(c===u)return function(n){return s=n,c=zi(y,t),h?_(n):a}(l);if(p)return xu(c),c=zi(y,t),_(l)}return c===u&&(c=zi(y,t)),a}return t=yf(t)||0,nf(r)&&(h=!!r.leading,f=(p="maxWait"in r)?Ht(yf(r.maxWait)||0,t):f,v="trailing"in r?!!r.trailing:v),w.cancel=function(){c!==u&&xu(c),s=0,e=l=o=c=u},w.flush=function(){return c===u?a:d(Eo())},w}var Co=Je((function(n,t){return le(n,1,t)})),Lo=Je((function(n,t,r){return le(n,yf(t)||0,r)}));function Wo(n,t){if("function"!=typeof n||null!=t&&"function"!=typeof t)throw new zn(i);var r=function(){var e=arguments,u=t?t.apply(this,e):e[0],i=r.cache;if(i.has(u))return i.get(u);var o=n.apply(this,e);return r.cache=i.set(u,o)||i,o};return r.cache=new(Wo.Cache||Kr),r}function Bo(n){if("function"!=typeof n)throw new zn(i);return function(){var t=arguments;switch(t.length){case 0:return!n.call(this);case 1:return!n.call(this,t[0]);case 2:return!n.call(this,t[0],t[1]);case 3:return!n.call(this,t[0],t[1],t[2])}return!n.apply(this,t)}}Wo.Cache=Kr;var To=bu((function(n,t){var r=(t=1==t.length&&Po(t[0])?Tt(t[0],nr(ai())):Tt(ye(t,1),nr(ai()))).length;return Je((function(e){for(var u=-1,i=wr(e.length,r);++u<i;)e[u]=t[u].call(this,e[u]);return Ot(n,this,e)}))})),Uo=Je((function(n,t){var r=sr(t,fi(Uo));return Yu(n,c,u,t,r)})),Mo=Je((function(n,t){var r=sr(t,fi(Mo));return Yu(n,l,u,t,r)})),$o=ri((function(n,t){return Yu(n,h,u,u,u,t)}));function Do(n,t){return n===t||n!==n&&t!==t}var No=Zu(Ee),Fo=Zu((function(n,t){return n>=t})),qo=Se(function(){return arguments}())?Se:function(n){return tf(n)&&Tn.call(n,"callee")&&!Hn.call(n,"callee")},Po=r.isArray,Vo=xt?nr(xt):function(n){return tf(n)&&ke(n)==W};function Zo(n){return null!=n&&Xo(n.length)&&!Yo(n)}function Ko(n){return tf(n)&&Zo(n)}var Go=dt||ya,Ho=At?nr(At):function(n){return tf(n)&&ke(n)==m};function Jo(n){if(!tf(n))return!1;var t=ke(n);return t==x||"[object DOMException]"==t||"string"==typeof n.message&&"string"==typeof n.name&&!uf(n)}function Yo(n){if(!nf(n))return!1;var t=ke(n);return t==A||t==j||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Qo(n){return"number"==typeof n&&n==_f(n)}function Xo(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=v}function nf(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}function tf(n){return null!=n&&"object"==typeof n}var rf=jt?nr(jt):function(n){return tf(n)&&vi(n)==k};function ef(n){return"number"==typeof n||tf(n)&&ke(n)==E}function uf(n){if(!tf(n)||ke(n)!=R)return!1;var t=Kn(n);if(null===t)return!0;var r=Tn.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Bn.call(r)==Dn}var of=kt?nr(kt):function(n){return tf(n)&&ke(n)==I};var ff=Et?nr(Et):function(n){return tf(n)&&vi(n)==z};function af(n){return"string"==typeof n||!Po(n)&&tf(n)&&ke(n)==S}function cf(n){return"symbol"==typeof n||tf(n)&&ke(n)==C}var lf=Rt?nr(Rt):function(n){return tf(n)&&Xo(n.length)&&!!ct[ke(n)]};var sf=Zu(Me),hf=Zu((function(n,t){return n<=t}));function pf(n){if(!n)return[];if(Zo(n))return af(n)?_r(n):Iu(n);if(Qn&&n[Qn])return function(n){for(var t,r=[];!(t=n.next()).done;)r.push(t.value);return r}(n[Qn]());var t=vi(n);return(t==k?cr:t==z?hr:Nf)(n)}function vf(n){return n?(n=yf(n))===p||n===-1/0?17976931348623157e292*(n<0?-1:1):n===n?n:0:0===n?n:0}function _f(n){var t=vf(n),r=t%1;return t===t?r?t-r:t:0}function gf(n){return n?fe(_f(n),0,g):0}function yf(n){if("number"==typeof n)return n;if(cf(n))return _;if(nf(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=nf(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=Xt(n);var r=dn.test(n);return r||bn.test(n)?pt(n.slice(2),r?2:8):yn.test(n)?_:+n}function df(n){return zu(n,Lf(n))}function wf(n){return null==n?"":cu(n)}var bf=Cu((function(n,t){if(Ai(t)||Zo(t))zu(t,Cf(t),n);else for(var r in t)Tn.call(t,r)&&te(n,r,t[r])})),mf=Cu((function(n,t){zu(t,Lf(t),n)})),xf=Cu((function(n,t,r,e){zu(t,Lf(t),n,e)})),Af=Cu((function(n,t,r,e){zu(t,Cf(t),n,e)})),jf=ri(oe);var kf=Je((function(n,t){n=Rn(n);var r=-1,e=t.length,i=e>2?t[2]:u;for(i&&wi(t[0],t[1],i)&&(e=1);++r<e;)for(var o=t[r],f=Lf(o),a=-1,c=f.length;++a<c;){var l=f[a],s=n[l];(s===u||Do(s,Ln[l])&&!Tn.call(n,l))&&(n[l]=o[l])}return n})),Ef=Je((function(n){return n.push(u,Xu),Ot(Bf,u,n)}));function Rf(n,t,r){var e=null==n?u:Ae(n,t);return e===u?r:e}function Of(n,t){return null!=n&&_i(n,t,Oe)}var If=Nu((function(n,t,r){null!=t&&"function"!=typeof t.toString&&(t=$n.call(t)),n[t]=r}),ta(ua)),zf=Nu((function(n,t,r){null!=t&&"function"!=typeof t.toString&&(t=$n.call(t)),Tn.call(n,t)?n[t].push(r):n[t]=[r]}),ai),Sf=Je(ze);function Cf(n){return Zo(n)?Jr(n):Te(n)}function Lf(n){return Zo(n)?Jr(n,!0):Ue(n)}var Wf=Cu((function(n,t,r){Fe(n,t,r)})),Bf=Cu((function(n,t,r,e){Fe(n,t,r,e)})),Tf=ri((function(n,t){var r={};if(null==n)return r;var e=!1;t=Tt(t,(function(t){return t=wu(t,n),e||(e=t.length>1),t})),zu(n,ui(n),r),e&&(r=ae(r,7,ni));for(var u=t.length;u--;)su(r,t[u]);return r}));var Uf=ri((function(n,t){return null==n?{}:function(n,t){return Ve(n,t,(function(t,r){return Of(n,r)}))}(n,t)}));function Mf(n,t){if(null==n)return{};var r=Tt(ui(n),(function(n){return[n]}));return t=ai(t),Ve(n,r,(function(n,r){return t(n,r[0])}))}var $f=Ju(Cf),Df=Ju(Lf);function Nf(n){return null==n?[]:tr(n,Cf(n))}var Ff=Tu((function(n,t,r){return t=t.toLowerCase(),n+(r?qf(t):t)}));function qf(n){return Yf(wf(n).toLowerCase())}function Pf(n){return(n=wf(n))&&n.replace(xn,ir).replace(rt,"")}var Vf=Tu((function(n,t,r){return n+(r?"-":"")+t.toLowerCase()})),Zf=Tu((function(n,t,r){return n+(r?" ":"")+t.toLowerCase()})),Kf=Bu("toLowerCase");var Gf=Tu((function(n,t,r){return n+(r?"_":"")+t.toLowerCase()}));var Hf=Tu((function(n,t,r){return n+(r?" ":"")+Yf(t)}));var Jf=Tu((function(n,t,r){return n+(r?" ":"")+t.toUpperCase()})),Yf=Bu("toUpperCase");function Qf(n,t,r){return n=wf(n),(t=r?u:t)===u?function(n){return ot.test(n)}(n)?function(n){return n.match(ut)||[]}(n):function(n){return n.match(hn)||[]}(n):n.match(t)||[]}var Xf=Je((function(n,t){try{return Ot(n,u,t)}catch(r){return Jo(r)?r:new an(r)}})),na=ri((function(n,t){return zt(t,(function(t){t=Ti(t),ie(n,t,Io(n[t],n))})),n}));function ta(n){return function(){return n}}var ra=$u(),ea=$u(!0);function ua(n){return n}function ia(n){return Be("function"==typeof n?n:ae(n,1))}var oa=Je((function(n,t){return function(r){return ze(r,n,t)}})),fa=Je((function(n,t){return function(r){return ze(n,r,t)}}));function aa(n,t,r){var e=Cf(t),u=xe(t,e);null!=r||nf(t)&&(u.length||!e.length)||(r=t,t=n,n=this,u=xe(t,Cf(t)));var i=!(nf(r)&&"chain"in r)||!!r.chain,o=Yo(n);return zt(u,(function(r){var e=t[r];n[r]=e,o&&(n.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=n(this.__wrapped__);return(r.__actions__=Iu(this.__actions__)).push({func:e,args:arguments,thisArg:n}),r.__chain__=t,r}return e.apply(n,Ut([this.value()],arguments))})})),n}function ca(){}var la=qu(Tt),sa=qu(Ct),ha=qu(Dt);function pa(n){return bi(n)?Gt(Ti(n)):function(n){return function(t){return Ae(t,n)}}(n)}var va=Vu(),_a=Vu(!0);function ga(){return[]}function ya(){return!1}var da=Fu((function(n,t){return n+t}),0),wa=Gu("ceil"),ba=Fu((function(n,t){return n/t}),1),ma=Gu("floor");var xa=Fu((function(n,t){return n*t}),1),Aa=Gu("round"),ja=Fu((function(n,t){return n-t}),0);return Dr.after=function(n,t){if("function"!=typeof t)throw new zn(i);return n=_f(n),function(){if(--n<1)return t.apply(this,arguments)}},Dr.ary=Ro,Dr.assign=bf,Dr.assignIn=mf,Dr.assignInWith=xf,Dr.assignWith=Af,Dr.at=jf,Dr.before=Oo,Dr.bind=Io,Dr.bindAll=na,Dr.bindKey=zo,Dr.castArray=function(){if(!arguments.length)return[];var n=arguments[0];return Po(n)?n:[n]},Dr.chain=so,Dr.chunk=function(n,t,e){t=(e?wi(n,t,e):t===u)?1:Ht(_f(t),0);var i=null==n?0:n.length;if(!i||t<1)return[];for(var o=0,f=0,a=r(vt(i/t));o<i;)a[f++]=eu(n,o,o+=t);return a},Dr.compact=function(n){for(var t=-1,r=null==n?0:n.length,e=0,u=[];++t<r;){var i=n[t];i&&(u[e++]=i)}return u},Dr.concat=function(){var n=arguments.length;if(!n)return[];for(var t=r(n-1),e=arguments[0],u=n;u--;)t[u-1]=arguments[u];return Ut(Po(e)?Iu(e):[e],ye(t,1))},Dr.cond=function(n){var t=null==n?0:n.length,r=ai();return n=t?Tt(n,(function(n){if("function"!=typeof n[1])throw new zn(i);return[r(n[0]),n[1]]})):[],Je((function(r){for(var e=-1;++e<t;){var u=n[e];if(Ot(u[0],this,r))return Ot(u[1],this,r)}}))},Dr.conforms=function(n){return function(n){var t=Cf(n);return function(r){return ce(r,n,t)}}(ae(n,1))},Dr.constant=ta,Dr.countBy=vo,Dr.create=function(n,t){var r=Nr(n);return null==t?r:ue(r,t)},Dr.curry=function n(t,r,e){var i=Yu(t,8,u,u,u,u,u,r=e?u:r);return i.placeholder=n.placeholder,i},Dr.curryRight=function n(t,r,e){var i=Yu(t,a,u,u,u,u,u,r=e?u:r);return i.placeholder=n.placeholder,i},Dr.debounce=So,Dr.defaults=kf,Dr.defaultsDeep=Ef,Dr.defer=Co,Dr.delay=Lo,Dr.difference=$i,Dr.differenceBy=Di,Dr.differenceWith=Ni,Dr.drop=function(n,t,r){var e=null==n?0:n.length;return e?eu(n,(t=r||t===u?1:_f(t))<0?0:t,e):[]},Dr.dropRight=function(n,t,r){var e=null==n?0:n.length;return e?eu(n,0,(t=e-(t=r||t===u?1:_f(t)))<0?0:t):[]},Dr.dropRightWhile=function(n,t){return n&&n.length?pu(n,ai(t,3),!0,!0):[]},Dr.dropWhile=function(n,t){return n&&n.length?pu(n,ai(t,3),!0):[]},Dr.fill=function(n,t,r,e){var i=null==n?0:n.length;return i?(r&&"number"!=typeof r&&wi(n,t,r)&&(r=0,e=i),function(n,t,r,e){var i=n.length;for((r=_f(r))<0&&(r=-r>i?0:i+r),(e=e===u||e>i?i:_f(e))<0&&(e+=i),e=r>e?0:gf(e);r<e;)n[r++]=t;return n}(n,t,r,e)):[]},Dr.filter=function(n,t){return(Po(n)?Lt:ge)(n,ai(t,3))},Dr.flatMap=function(n,t){return ye(Ao(n,t),1)},Dr.flatMapDeep=function(n,t){return ye(Ao(n,t),p)},Dr.flatMapDepth=function(n,t,r){return r=r===u?1:_f(r),ye(Ao(n,t),r)},Dr.flatten=Pi,Dr.flattenDeep=function(n){return(null==n?0:n.length)?ye(n,p):[]},Dr.flattenDepth=function(n,t){return(null==n?0:n.length)?ye(n,t=t===u?1:_f(t)):[]},Dr.flip=function(n){return Yu(n,512)},Dr.flow=ra,Dr.flowRight=ea,Dr.fromPairs=function(n){for(var t=-1,r=null==n?0:n.length,e={};++t<r;){var u=n[t];e[u[0]]=u[1]}return e},Dr.functions=function(n){return null==n?[]:xe(n,Cf(n))},Dr.functionsIn=function(n){return null==n?[]:xe(n,Lf(n))},Dr.groupBy=bo,Dr.initial=function(n){return(null==n?0:n.length)?eu(n,0,-1):[]},Dr.intersection=Zi,Dr.intersectionBy=Ki,Dr.intersectionWith=Gi,Dr.invert=If,Dr.invertBy=zf,Dr.invokeMap=mo,Dr.iteratee=ia,Dr.keyBy=xo,Dr.keys=Cf,Dr.keysIn=Lf,Dr.map=Ao,Dr.mapKeys=function(n,t){var r={};return t=ai(t,3),be(n,(function(n,e,u){ie(r,t(n,e,u),n)})),r},Dr.mapValues=function(n,t){var r={};return t=ai(t,3),be(n,(function(n,e,u){ie(r,e,t(n,e,u))})),r},Dr.matches=function(n){return De(ae(n,1))},Dr.matchesProperty=function(n,t){return Ne(n,ae(t,1))},Dr.memoize=Wo,Dr.merge=Wf,Dr.mergeWith=Bf,Dr.method=oa,Dr.methodOf=fa,Dr.mixin=aa,Dr.negate=Bo,Dr.nthArg=function(n){return n=_f(n),Je((function(t){return qe(t,n)}))},Dr.omit=Tf,Dr.omitBy=function(n,t){return Mf(n,Bo(ai(t)))},Dr.once=function(n){return Oo(2,n)},Dr.orderBy=function(n,t,r,e){return null==n?[]:(Po(t)||(t=null==t?[]:[t]),Po(r=e?u:r)||(r=null==r?[]:[r]),Pe(n,t,r))},Dr.over=la,Dr.overArgs=To,Dr.overEvery=sa,Dr.overSome=ha,Dr.partial=Uo,Dr.partialRight=Mo,Dr.partition=jo,Dr.pick=Uf,Dr.pickBy=Mf,Dr.property=pa,Dr.propertyOf=function(n){return function(t){return null==n?u:Ae(n,t)}},Dr.pull=Ji,Dr.pullAll=Yi,Dr.pullAllBy=function(n,t,r){return n&&n.length&&t&&t.length?Ze(n,t,ai(r,2)):n},Dr.pullAllWith=function(n,t,r){return n&&n.length&&t&&t.length?Ze(n,t,u,r):n},Dr.pullAt=Qi,Dr.range=va,Dr.rangeRight=_a,Dr.rearg=$o,Dr.reject=function(n,t){return(Po(n)?Lt:ge)(n,Bo(ai(t,3)))},Dr.remove=function(n,t){var r=[];if(!n||!n.length)return r;var e=-1,u=[],i=n.length;for(t=ai(t,3);++e<i;){var o=n[e];t(o,e,n)&&(r.push(o),u.push(e))}return Ke(n,u),r},Dr.rest=function(n,t){if("function"!=typeof n)throw new zn(i);return Je(n,t=t===u?t:_f(t))},Dr.reverse=Xi,Dr.sampleSize=function(n,t,r){return t=(r?wi(n,t,r):t===u)?1:_f(t),(Po(n)?Qr:Qe)(n,t)},Dr.set=function(n,t,r){return null==n?n:Xe(n,t,r)},Dr.setWith=function(n,t,r,e){return e="function"==typeof e?e:u,null==n?n:Xe(n,t,r,e)},Dr.shuffle=function(n){return(Po(n)?Xr:ru)(n)},Dr.slice=function(n,t,r){var e=null==n?0:n.length;return e?(r&&"number"!=typeof r&&wi(n,t,r)?(t=0,r=e):(t=null==t?0:_f(t),r=r===u?e:_f(r)),eu(n,t,r)):[]},Dr.sortBy=ko,Dr.sortedUniq=function(n){return n&&n.length?fu(n):[]},Dr.sortedUniqBy=function(n,t){return n&&n.length?fu(n,ai(t,2)):[]},Dr.split=function(n,t,r){return r&&"number"!=typeof r&&wi(n,t,r)&&(t=r=u),(r=r===u?g:r>>>0)?(n=wf(n))&&("string"==typeof t||null!=t&&!of(t))&&!(t=cu(t))&&ar(n)?mu(_r(n),0,r):n.split(t,r):[]},Dr.spread=function(n,t){if("function"!=typeof n)throw new zn(i);return t=null==t?0:Ht(_f(t),0),Je((function(r){var e=r[t],u=mu(r,0,t);return e&&Ut(u,e),Ot(n,this,u)}))},Dr.tail=function(n){var t=null==n?0:n.length;return t?eu(n,1,t):[]},Dr.take=function(n,t,r){return n&&n.length?eu(n,0,(t=r||t===u?1:_f(t))<0?0:t):[]},Dr.takeRight=function(n,t,r){var e=null==n?0:n.length;return e?eu(n,(t=e-(t=r||t===u?1:_f(t)))<0?0:t,e):[]},Dr.takeRightWhile=function(n,t){return n&&n.length?pu(n,ai(t,3),!1,!0):[]},Dr.takeWhile=function(n,t){return n&&n.length?pu(n,ai(t,3)):[]},Dr.tap=function(n,t){return t(n),n},Dr.throttle=function(n,t,r){var e=!0,u=!0;if("function"!=typeof n)throw new zn(i);return nf(r)&&(e="leading"in r?!!r.leading:e,u="trailing"in r?!!r.trailing:u),So(n,t,{leading:e,maxWait:t,trailing:u})},Dr.thru=ho,Dr.toArray=pf,Dr.toPairs=$f,Dr.toPairsIn=Df,Dr.toPath=function(n){return Po(n)?Tt(n,Ti):cf(n)?[n]:Iu(Bi(wf(n)))},Dr.toPlainObject=df,Dr.transform=function(n,t,r){var e=Po(n),u=e||Go(n)||lf(n);if(t=ai(t,4),null==r){var i=n&&n.constructor;r=u?e?new i:[]:nf(n)&&Yo(i)?Nr(Kn(n)):{}}return(u?zt:be)(n,(function(n,e,u){return t(r,n,e,u)})),r},Dr.unary=function(n){return Ro(n,1)},Dr.union=no,Dr.unionBy=to,Dr.unionWith=ro,Dr.uniq=function(n){return n&&n.length?lu(n):[]},Dr.uniqBy=function(n,t){return n&&n.length?lu(n,ai(t,2)):[]},Dr.uniqWith=function(n,t){return t="function"==typeof t?t:u,n&&n.length?lu(n,u,t):[]},Dr.unset=function(n,t){return null==n||su(n,t)},Dr.unzip=eo,Dr.unzipWith=uo,Dr.update=function(n,t,r){return null==n?n:hu(n,t,du(r))},Dr.updateWith=function(n,t,r,e){return e="function"==typeof e?e:u,null==n?n:hu(n,t,du(r),e)},Dr.values=Nf,Dr.valuesIn=function(n){return null==n?[]:tr(n,Lf(n))},Dr.without=io,Dr.words=Qf,Dr.wrap=function(n,t){return Uo(du(t),n)},Dr.xor=oo,Dr.xorBy=fo,Dr.xorWith=ao,Dr.zip=co,Dr.zipObject=function(n,t){return gu(n||[],t||[],te)},Dr.zipObjectDeep=function(n,t){return gu(n||[],t||[],Xe)},Dr.zipWith=lo,Dr.entries=$f,Dr.entriesIn=Df,Dr.extend=mf,Dr.extendWith=xf,aa(Dr,Dr),Dr.add=da,Dr.attempt=Xf,Dr.camelCase=Ff,Dr.capitalize=qf,Dr.ceil=wa,Dr.clamp=function(n,t,r){return r===u&&(r=t,t=u),r!==u&&(r=(r=yf(r))===r?r:0),t!==u&&(t=(t=yf(t))===t?t:0),fe(yf(n),t,r)},Dr.clone=function(n){return ae(n,4)},Dr.cloneDeep=function(n){return ae(n,5)},Dr.cloneDeepWith=function(n,t){return ae(n,5,t="function"==typeof t?t:u)},Dr.cloneWith=function(n,t){return ae(n,4,t="function"==typeof t?t:u)},Dr.conformsTo=function(n,t){return null==t||ce(n,t,Cf(t))},Dr.deburr=Pf,Dr.defaultTo=function(n,t){return null==n||n!==n?t:n},Dr.divide=ba,Dr.endsWith=function(n,t,r){n=wf(n),t=cu(t);var e=n.length,i=r=r===u?e:fe(_f(r),0,e);return(r-=t.length)>=0&&n.slice(r,i)==t},Dr.eq=Do,Dr.escape=function(n){return(n=wf(n))&&Y.test(n)?n.replace(H,or):n},Dr.escapeRegExp=function(n){return(n=wf(n))&&on.test(n)?n.replace(un,"\\$&"):n},Dr.every=function(n,t,r){var e=Po(n)?Ct:ve;return r&&wi(n,t,r)&&(t=u),e(n,ai(t,3))},Dr.find=_o,Dr.findIndex=Fi,Dr.findKey=function(n,t){return Ft(n,ai(t,3),be)},Dr.findLast=go,Dr.findLastIndex=qi,Dr.findLastKey=function(n,t){return Ft(n,ai(t,3),me)},Dr.floor=ma,Dr.forEach=yo,Dr.forEachRight=wo,Dr.forIn=function(n,t){return null==n?n:de(n,ai(t,3),Lf)},Dr.forInRight=function(n,t){return null==n?n:we(n,ai(t,3),Lf)},Dr.forOwn=function(n,t){return n&&be(n,ai(t,3))},Dr.forOwnRight=function(n,t){return n&&me(n,ai(t,3))},Dr.get=Rf,Dr.gt=No,Dr.gte=Fo,Dr.has=function(n,t){return null!=n&&_i(n,t,Re)},Dr.hasIn=Of,Dr.head=Vi,Dr.identity=ua,Dr.includes=function(n,t,r,e){n=Zo(n)?n:Nf(n),r=r&&!e?_f(r):0;var u=n.length;return r<0&&(r=Ht(u+r,0)),af(n)?r<=u&&n.indexOf(t,r)>-1:!!u&&Pt(n,t,r)>-1},Dr.indexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=null==r?0:_f(r);return u<0&&(u=Ht(e+u,0)),Pt(n,t,u)},Dr.inRange=function(n,t,r){return t=vf(t),r===u?(r=t,t=0):r=vf(r),function(n,t,r){return n>=wr(t,r)&&n<Ht(t,r)}(n=yf(n),t,r)},Dr.invoke=Sf,Dr.isArguments=qo,Dr.isArray=Po,Dr.isArrayBuffer=Vo,Dr.isArrayLike=Zo,Dr.isArrayLikeObject=Ko,Dr.isBoolean=function(n){return!0===n||!1===n||tf(n)&&ke(n)==b},Dr.isBuffer=Go,Dr.isDate=Ho,Dr.isElement=function(n){return tf(n)&&1===n.nodeType&&!uf(n)},Dr.isEmpty=function(n){if(null==n)return!0;if(Zo(n)&&(Po(n)||"string"==typeof n||"function"==typeof n.splice||Go(n)||lf(n)||qo(n)))return!n.length;var t=vi(n);if(t==k||t==z)return!n.size;if(Ai(n))return!Te(n).length;for(var r in n)if(Tn.call(n,r))return!1;return!0},Dr.isEqual=function(n,t){return Ce(n,t)},Dr.isEqualWith=function(n,t,r){var e=(r="function"==typeof r?r:u)?r(n,t):u;return e===u?Ce(n,t,u,r):!!e},Dr.isError=Jo,Dr.isFinite=function(n){return"number"==typeof n&&bt(n)},Dr.isFunction=Yo,Dr.isInteger=Qo,Dr.isLength=Xo,Dr.isMap=rf,Dr.isMatch=function(n,t){return n===t||Le(n,t,li(t))},Dr.isMatchWith=function(n,t,r){return r="function"==typeof r?r:u,Le(n,t,li(t),r)},Dr.isNaN=function(n){return ef(n)&&n!=+n},Dr.isNative=function(n){if(xi(n))throw new an("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return We(n)},Dr.isNil=function(n){return null==n},Dr.isNull=function(n){return null===n},Dr.isNumber=ef,Dr.isObject=nf,Dr.isObjectLike=tf,Dr.isPlainObject=uf,Dr.isRegExp=of,Dr.isSafeInteger=function(n){return Qo(n)&&n>=-9007199254740991&&n<=v},Dr.isSet=ff,Dr.isString=af,Dr.isSymbol=cf,Dr.isTypedArray=lf,Dr.isUndefined=function(n){return n===u},Dr.isWeakMap=function(n){return tf(n)&&vi(n)==L},Dr.isWeakSet=function(n){return tf(n)&&"[object WeakSet]"==ke(n)},Dr.join=function(n,t){return null==n?"":mt.call(n,t)},Dr.kebabCase=Vf,Dr.last=Hi,Dr.lastIndexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var i=e;return r!==u&&(i=(i=_f(r))<0?Ht(e+i,0):wr(i,e-1)),t===t?function(n,t,r){for(var e=r+1;e--;)if(n[e]===t)return e;return e}(n,t,i):qt(n,Zt,i,!0)},Dr.lowerCase=Zf,Dr.lowerFirst=Kf,Dr.lt=sf,Dr.lte=hf,Dr.max=function(n){return n&&n.length?_e(n,ua,Ee):u},Dr.maxBy=function(n,t){return n&&n.length?_e(n,ai(t,2),Ee):u},Dr.mean=function(n){return Kt(n,ua)},Dr.meanBy=function(n,t){return Kt(n,ai(t,2))},Dr.min=function(n){return n&&n.length?_e(n,ua,Me):u},Dr.minBy=function(n,t){return n&&n.length?_e(n,ai(t,2),Me):u},Dr.stubArray=ga,Dr.stubFalse=ya,Dr.stubObject=function(){return{}},Dr.stubString=function(){return""},Dr.stubTrue=function(){return!0},Dr.multiply=xa,Dr.nth=function(n,t){return n&&n.length?qe(n,_f(t)):u},Dr.noConflict=function(){return gt._===this&&(gt._=Nn),this},Dr.noop=ca,Dr.now=Eo,Dr.pad=function(n,t,r){n=wf(n);var e=(t=_f(t))?vr(n):0;if(!t||e>=t)return n;var u=(t-e)/2;return Pu(_t(u),r)+n+Pu(vt(u),r)},Dr.padEnd=function(n,t,r){n=wf(n);var e=(t=_f(t))?vr(n):0;return t&&e<t?n+Pu(t-e,r):n},Dr.padStart=function(n,t,r){n=wf(n);var e=(t=_f(t))?vr(n):0;return t&&e<t?Pu(t-e,r)+n:n},Dr.parseInt=function(n,t,r){return r||null==t?t=0:t&&(t=+t),mr(wf(n).replace(fn,""),t||0)},Dr.random=function(n,t,r){if(r&&"boolean"!=typeof r&&wi(n,t,r)&&(t=r=u),r===u&&("boolean"==typeof t?(r=t,t=u):"boolean"==typeof n&&(r=n,n=u)),n===u&&t===u?(n=0,t=1):(n=vf(n),t===u?(t=n,n=0):t=vf(t)),n>t){var e=n;n=t,t=e}if(r||n%1||t%1){var i=xr();return wr(n+i*(t-n+ht("1e-"+((i+"").length-1))),t)}return Ge(n,t)},Dr.reduce=function(n,t,r){var e=Po(n)?Mt:Jt,u=arguments.length<3;return e(n,ai(t,4),r,u,he)},Dr.reduceRight=function(n,t,r){var e=Po(n)?$t:Jt,u=arguments.length<3;return e(n,ai(t,4),r,u,pe)},Dr.repeat=function(n,t,r){return t=(r?wi(n,t,r):t===u)?1:_f(t),He(wf(n),t)},Dr.replace=function(){var n=arguments,t=wf(n[0]);return n.length<3?t:t.replace(n[1],n[2])},Dr.result=function(n,t,r){var e=-1,i=(t=wu(t,n)).length;for(i||(i=1,n=u);++e<i;){var o=null==n?u:n[Ti(t[e])];o===u&&(e=i,o=r),n=Yo(o)?o.call(n):o}return n},Dr.round=Aa,Dr.runInContext=n,Dr.sample=function(n){return(Po(n)?Yr:Ye)(n)},Dr.size=function(n){if(null==n)return 0;if(Zo(n))return af(n)?vr(n):n.length;var t=vi(n);return t==k||t==z?n.size:Te(n).length},Dr.snakeCase=Gf,Dr.some=function(n,t,r){var e=Po(n)?Dt:uu;return r&&wi(n,t,r)&&(t=u),e(n,ai(t,3))},Dr.sortedIndex=function(n,t){return iu(n,t)},Dr.sortedIndexBy=function(n,t,r){return ou(n,t,ai(r,2))},Dr.sortedIndexOf=function(n,t){var r=null==n?0:n.length;if(r){var e=iu(n,t);if(e<r&&Do(n[e],t))return e}return-1},Dr.sortedLastIndex=function(n,t){return iu(n,t,!0)},Dr.sortedLastIndexBy=function(n,t,r){return ou(n,t,ai(r,2),!0)},Dr.sortedLastIndexOf=function(n,t){if(null==n?0:n.length){var r=iu(n,t,!0)-1;if(Do(n[r],t))return r}return-1},Dr.startCase=Hf,Dr.startsWith=function(n,t,r){return n=wf(n),r=null==r?0:fe(_f(r),0,n.length),t=cu(t),n.slice(r,r+t.length)==t},Dr.subtract=ja,Dr.sum=function(n){return n&&n.length?Yt(n,ua):0},Dr.sumBy=function(n,t){return n&&n.length?Yt(n,ai(t,2)):0},Dr.template=function(n,t,r){var e=Dr.templateSettings;r&&wi(n,t,r)&&(t=u),n=wf(n),t=xf({},t,e,Qu);var i,o,f=xf({},t.imports,e.imports,Qu),a=Cf(f),c=tr(f,a),l=0,s=t.interpolate||An,h="__p += '",p=On((t.escape||An).source+"|"+s.source+"|"+(s===nn?_n:An).source+"|"+(t.evaluate||An).source+"|$","g"),v="//# sourceURL="+(Tn.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++at+"]")+"\n";n.replace(p,(function(t,r,e,u,f,a){return e||(e=u),h+=n.slice(l,a).replace(jn,fr),r&&(i=!0,h+="' +\n__e("+r+") +\n'"),f&&(o=!0,h+="';\n"+f+";\n__p += '"),e&&(h+="' +\n((__t = ("+e+")) == null ? '' : __t) +\n'"),l=a+t.length,t})),h+="';\n";var _=Tn.call(t,"variable")&&t.variable;if(_){if(pn.test(_))throw new an("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(o?h.replace(V,""):h).replace(Z,"$1").replace(K,"$1;"),h="function("+(_||"obj")+") {\n"+(_?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var g=Xf((function(){return kn(a,v+"return "+h).apply(u,c)}));if(g.source=h,Jo(g))throw g;return g},Dr.times=function(n,t){if((n=_f(n))<1||n>v)return[];var r=g,e=wr(n,g);t=ai(t),n-=g;for(var u=Qt(e,t);++r<n;)t(r);return u},Dr.toFinite=vf,Dr.toInteger=_f,Dr.toLength=gf,Dr.toLower=function(n){return wf(n).toLowerCase()},Dr.toNumber=yf,Dr.toSafeInteger=function(n){return n?fe(_f(n),-9007199254740991,v):0===n?n:0},Dr.toString=wf,Dr.toUpper=function(n){return wf(n).toUpperCase()},Dr.trim=function(n,t,r){if((n=wf(n))&&(r||t===u))return Xt(n);if(!n||!(t=cu(t)))return n;var e=_r(n),i=_r(t);return mu(e,er(e,i),ur(e,i)+1).join("")},Dr.trimEnd=function(n,t,r){if((n=wf(n))&&(r||t===u))return n.slice(0,gr(n)+1);if(!n||!(t=cu(t)))return n;var e=_r(n);return mu(e,0,ur(e,_r(t))+1).join("")},Dr.trimStart=function(n,t,r){if((n=wf(n))&&(r||t===u))return n.replace(fn,"");if(!n||!(t=cu(t)))return n;var e=_r(n);return mu(e,er(e,_r(t))).join("")},Dr.truncate=function(n,t){var r=30,e="...";if(nf(t)){var i="separator"in t?t.separator:i;r="length"in t?_f(t.length):r,e="omission"in t?cu(t.omission):e}var o=(n=wf(n)).length;if(ar(n)){var f=_r(n);o=f.length}if(r>=o)return n;var a=r-vr(e);if(a<1)return e;var c=f?mu(f,0,a).join(""):n.slice(0,a);if(i===u)return c+e;if(f&&(a+=c.length-a),of(i)){if(n.slice(a).search(i)){var l,s=c;for(i.global||(i=On(i.source,wf(gn.exec(i))+"g")),i.lastIndex=0;l=i.exec(s);)var h=l.index;c=c.slice(0,h===u?a:h)}}else if(n.indexOf(cu(i),a)!=a){var p=c.lastIndexOf(i);p>-1&&(c=c.slice(0,p))}return c+e},Dr.unescape=function(n){return(n=wf(n))&&J.test(n)?n.replace(G,yr):n},Dr.uniqueId=function(n){var t=++Un;return wf(n)+t},Dr.upperCase=Jf,Dr.upperFirst=Yf,Dr.each=yo,Dr.eachRight=wo,Dr.first=Vi,aa(Dr,function(){var n={};return be(Dr,(function(t,r){Tn.call(Dr.prototype,r)||(n[r]=t)})),n}(),{chain:!1}),Dr.VERSION="4.17.21",zt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(n){Dr[n].placeholder=Dr})),zt(["drop","take"],(function(n,t){Pr.prototype[n]=function(r){r=r===u?1:Ht(_f(r),0);var e=this.__filtered__&&!t?new Pr(this):this.clone();return e.__filtered__?e.__takeCount__=wr(r,e.__takeCount__):e.__views__.push({size:wr(r,g),type:n+(e.__dir__<0?"Right":"")}),e},Pr.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}})),zt(["filter","map","takeWhile"],(function(n,t){var r=t+1,e=1==r||3==r;Pr.prototype[n]=function(n){var t=this.clone();return t.__iteratees__.push({iteratee:ai(n,3),type:r}),t.__filtered__=t.__filtered__||e,t}})),zt(["head","last"],(function(n,t){var r="take"+(t?"Right":"");Pr.prototype[n]=function(){return this[r](1).value()[0]}})),zt(["initial","tail"],(function(n,t){var r="drop"+(t?"":"Right");Pr.prototype[n]=function(){return this.__filtered__?new Pr(this):this[r](1)}})),Pr.prototype.compact=function(){return this.filter(ua)},Pr.prototype.find=function(n){return this.filter(n).head()},Pr.prototype.findLast=function(n){return this.reverse().find(n)},Pr.prototype.invokeMap=Je((function(n,t){return"function"==typeof n?new Pr(this):this.map((function(r){return ze(r,n,t)}))})),Pr.prototype.reject=function(n){return this.filter(Bo(ai(n)))},Pr.prototype.slice=function(n,t){n=_f(n);var r=this;return r.__filtered__&&(n>0||t<0)?new Pr(r):(n<0?r=r.takeRight(-n):n&&(r=r.drop(n)),t!==u&&(r=(t=_f(t))<0?r.dropRight(-t):r.take(t-n)),r)},Pr.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Pr.prototype.toArray=function(){return this.take(g)},be(Pr.prototype,(function(n,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),e=/^(?:head|last)$/.test(t),i=Dr[e?"take"+("last"==t?"Right":""):t],o=e||/^find/.test(t);i&&(Dr.prototype[t]=function(){var t=this.__wrapped__,f=e?[1]:arguments,a=t instanceof Pr,c=f[0],l=a||Po(t),s=function(n){var t=i.apply(Dr,Ut([n],f));return e&&h?t[0]:t};l&&r&&"function"==typeof c&&1!=c.length&&(a=l=!1);var h=this.__chain__,p=!!this.__actions__.length,v=o&&!h,_=a&&!p;if(!o&&l){t=_?t:new Pr(this);var g=n.apply(t,f);return g.__actions__.push({func:ho,args:[s],thisArg:u}),new qr(g,h)}return v&&_?n.apply(this,f):(g=this.thru(s),v?e?g.value()[0]:g.value():g)})})),zt(["pop","push","shift","sort","splice","unshift"],(function(n){var t=Sn[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:pop|shift)$/.test(n);Dr.prototype[n]=function(){var n=arguments;if(e&&!this.__chain__){var u=this.value();return t.apply(Po(u)?u:[],n)}return this[r]((function(r){return t.apply(Po(r)?r:[],n)}))}})),be(Pr.prototype,(function(n,t){var r=Dr[t];if(r){var e=r.name+"";Tn.call(Sr,e)||(Sr[e]=[]),Sr[e].push({name:t,func:r})}})),Sr[Du(u,2).name]=[{name:"wrapper",func:u}],Pr.prototype.clone=function(){var n=new Pr(this.__wrapped__);return n.__actions__=Iu(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=Iu(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=Iu(this.__views__),n},Pr.prototype.reverse=function(){if(this.__filtered__){var n=new Pr(this);n.__dir__=-1,n.__filtered__=!0}else(n=this.clone()).__dir__*=-1;return n},Pr.prototype.value=function(){var n=this.__wrapped__.value(),t=this.__dir__,r=Po(n),e=t<0,u=r?n.length:0,i=function(n,t,r){var e=-1,u=r.length;for(;++e<u;){var i=r[e],o=i.size;switch(i.type){case"drop":n+=o;break;case"dropRight":t-=o;break;case"take":t=wr(t,n+o);break;case"takeRight":n=Ht(n,t-o)}}return{start:n,end:t}}(0,u,this.__views__),o=i.start,f=i.end,a=f-o,c=e?f:o-1,l=this.__iteratees__,s=l.length,h=0,p=wr(a,this.__takeCount__);if(!r||!e&&u==a&&p==a)return vu(n,this.__actions__);var v=[];n:for(;a--&&h<p;){for(var _=-1,g=n[c+=t];++_<s;){var y=l[_],d=y.iteratee,w=y.type,b=d(g);if(2==w)g=b;else if(!b){if(1==w)continue n;break n}}v[h++]=g}return v},Dr.prototype.at=po,Dr.prototype.chain=function(){return so(this)},Dr.prototype.commit=function(){return new qr(this.value(),this.__chain__)},Dr.prototype.next=function(){this.__values__===u&&(this.__values__=pf(this.value()));var n=this.__index__>=this.__values__.length;return{done:n,value:n?u:this.__values__[this.__index__++]}},Dr.prototype.plant=function(n){for(var t,r=this;r instanceof Fr;){var e=Mi(r);e.__index__=0,e.__values__=u,t?i.__wrapped__=e:t=e;var i=e;r=r.__wrapped__}return i.__wrapped__=n,t},Dr.prototype.reverse=function(){var n=this.__wrapped__;if(n instanceof Pr){var t=n;return this.__actions__.length&&(t=new Pr(this)),(t=t.reverse()).__actions__.push({func:ho,args:[Xi],thisArg:u}),new qr(t,this.__chain__)}return this.thru(Xi)},Dr.prototype.toJSON=Dr.prototype.valueOf=Dr.prototype.value=function(){return vu(this.__wrapped__,this.__actions__)},Dr.prototype.first=Dr.prototype.head,Qn&&(Dr.prototype[Qn]=function(){return this}),Dr}();gt._=dr,(e=function(){return dr}.call(t,r,t,n))===u||(n.exports=e)}.call(this)},16929:(n,t,r)=>{"use strict";r.d(t,{A:()=>u});var e=r(59284);const u=n=>e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},n),e.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0m-6 2.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0M8.75 5a.75.75 0 0 0-1.5 0v2.5a.75.75 0 0 0 1.5 0z",clipRule:"evenodd"}))},45720:(n,t,r)=>{"use strict";r.d(t,{A:()=>u});var e=r(59284);const u=n=>e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},n),e.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m1-9.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0M8 7.75a.75.75 0 0 1 .75.75V11a.75.75 0 0 1-1.5 0V8.5A.75.75 0 0 1 8 7.75",clipRule:"evenodd"}))},71153:(n,t,r)=>{"use strict";r.d(t,{A:()=>u});var e=r(59284);const u=n=>e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},n),e.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.835 2.244c.963-1.665 3.367-1.665 4.33 0l4.916 8.505c.964 1.666-.24 3.751-2.164 3.751H3.083c-1.925 0-3.128-2.085-2.165-3.751zM8 5a.75.75 0 0 1 .75.75v2a.75.75 0 1 1-1.5 0v-2A.75.75 0 0 1 8 5m1 5.75a1 1 0 1 1-2 0 1 1 0 0 1 2 0",clipRule:"evenodd"}))},79879:(n,t,r)=>{"use strict";r.d(t,{A:()=>u});var e=r(59284);const u=n=>e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},n),e.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"m3.003 4.702 4.22-2.025a1.8 1.8 0 0 1 1.554 0l4.22 2.025a.89.89 0 0 1 .503.8V6a8.55 8.55 0 0 1-3.941 7.201l-.986.631a1.06 1.06 0 0 1-1.146 0l-.986-.63A8.55 8.55 0 0 1 2.5 6v-.498c0-.341.196-.652.503-.8m3.57-3.377L2.354 3.35A2.39 2.39 0 0 0 1 5.502V6a10.05 10.05 0 0 0 4.632 8.465l.986.63a2.56 2.56 0 0 0 2.764 0l.986-.63A10.05 10.05 0 0 0 15 6v-.498c0-.918-.526-1.755-1.354-2.152l-4.22-2.025a3.3 3.3 0 0 0-2.852 0M9.5 7a1.5 1.5 0 0 1-.75 1.3v1.95a.75.75 0 0 1-1.5 0V8.3A1.5 1.5 0 1 1 9.5 7",clipRule:"evenodd"}))},89169:(n,t,r)=>{"use strict";r.d(t,{E:()=>i});var e=r(59284);const u=(0,r(69220).om)("skeleton");function i({className:n,style:t,qa:r}){return e.createElement("div",{className:u(null,n),style:t,"data-qa":r})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/4872.2eea7e0a.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/4872.bbf7ab34.chunk.js.LICENSE.txt index b1121f519a..b1121f519a 100644 --- a/ydb/core/viewer/monitoring/static/js/4872.2eea7e0a.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/4872.bbf7ab34.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/4905.8121426d.chunk.js b/ydb/core/viewer/monitoring/static/js/4905.8121426d.chunk.js deleted file mode 100644 index 0d5e4ecd1c..0000000000 --- a/ydb/core/viewer/monitoring/static/js/4905.8121426d.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[4905],{28539:(e,t,a)=>{a.d(t,{T:()=>s.T});var s=a(53755)},52248:(e,t,a)=>{a.d(t,{a:()=>s.a});var s=a(47334)},56735:(e,t,a)=>{a.d(t,{Q:()=>j});var s=a(87184),i=a(92459),n=a(7435),l=a(46549),d=a(77506),o=a(56839),r=a(31684),c=a(12888),u=a(18863),v=a(25196),p=a(15132),h=a(33775),m=a(48372);const b=JSON.parse('{"type":"Type","path":"Path","guid":"GUID","serial-number":"Serial Number","shared-with-os":"SharedWithOs","drive-status":"Drive Status","state":"State","device":"Device","realtime":"Realtime","space":"Space","slots":"Slots","log-size":"Log Size","system-size":"System Size","links":"Links","developer-ui":"Developer UI","pdisk-page":"PDisk page","yes":"Yes"}'),g=(0,m.g4)("ydb-pDisk-info",{en:b});var f=a(60712);const x=(0,d.cn)("ydb-pdisk-info");function j({pDisk:e,nodeId:t,withPDiskPageLink:a,className:d}){const m=(0,c.X)(),[b,j,I,k]=function({pDisk:e,nodeId:t,withPDiskPageLink:a,isUserAllowedToMakeChanges:s}){const{PDiskId:d,Path:c,Guid:u,Category:m,Type:b,Device:j,Realtime:I,State:k,SerialNumber:y,TotalSize:N,AllocatedSize:T,StatusV2:w,NumActiveSlots:S,ExpectedSlotCount:D,LogUsedSize:z,LogTotalSize:A,SystemSize:P,SharedWithOs:C}=e||{},E=[];(0,n.f8)(m)&&E.push({label:g("type"),value:b}),(0,n.f8)(c)&&E.push({label:g("path"),value:c}),(0,n.f8)(u)&&E.push({label:g("guid"),value:u}),y&&E.push({label:g("serial-number"),value:y}),(0,n.f8)(C)&&E.push({label:g("shared-with-os"),value:g("yes")});const L=[];(0,n.f8)(w)&&L.push({label:g("drive-status"),value:w}),(0,n.f8)(k)&&L.push({label:g("state"),value:k}),(0,n.f8)(j)&&L.push({label:g("device"),value:(0,f.jsx)(h.k,{status:j})}),(0,n.f8)(I)&&L.push({label:g("realtime"),value:(0,f.jsx)(h.k,{status:I})});const V=[];V.push({label:g("space"),value:(0,f.jsx)(p.O,{value:T,capacity:N,formatValues:o.vX,colorizeProgress:!0})}),(0,n.f8)(S)&&(0,n.f8)(D)&&V.push({label:g("slots"),value:(0,f.jsx)(p.O,{value:S,capacity:D})}),(0,n.f8)(z)&&(0,n.f8)(A)&&V.push({label:g("log-size"),value:(0,f.jsx)(p.O,{value:z,capacity:A,formatValues:o.vX})}),(0,n.f8)(P)&&V.push({label:g("system-size"),value:(0,l.z3)({value:P})});const R=[];if((a||s)&&(0,n.f8)(d)&&(0,n.f8)(t)){const e=(0,i.Ck)(d,t),n=(0,r.ar)({nodeId:t,pDiskId:d});R.push({label:g("links"),value:(0,f.jsxs)("span",{className:x("links"),children:[a&&(0,f.jsx)(v.K,{title:g("pdisk-page"),url:e,external:!1}),s&&(0,f.jsx)(v.K,{title:g("developer-ui"),url:n})]})})}return[E,L,V,R]}({pDisk:e,nodeId:t,withPDiskPageLink:a,isUserAllowedToMakeChanges:m});return(0,f.jsxs)(s.s,{className:d,gap:2,direction:"row",wrap:!0,children:[(0,f.jsxs)(s.s,{direction:"column",gap:2,width:500,children:[(0,f.jsx)(u.z,{info:b,renderEmptyState:()=>null}),(0,f.jsx)(u.z,{info:I,renderEmptyState:()=>null})]}),(0,f.jsxs)(s.s,{direction:"column",gap:2,width:500,children:[(0,f.jsx)(u.z,{info:j,renderEmptyState:()=>null}),(0,f.jsx)(u.z,{info:k,renderEmptyState:()=>null})]})]})}},17594:(e,t,a)=>{a.d(t,{l:()=>r});var s=a(69024),i=a(4557),n=a(77506),l=a(16819),d=a(60712);const o=(0,n.cn)("ydb-resizeable-data-table");function r({columnsWidthLSKey:e,columns:t,settings:a,wrapperClassName:n,...r}){const[c,u]=(0,l.a)(e),v=(0,s.j)(t,c),p={...a,defaultResizeable:!0};return(0,d.jsx)("div",{className:o(null,n),children:(0,d.jsx)(i.Ay,{theme:"yandex-cloud",columns:v,onResize:u,settings:p,...r})})}},80420:(e,t,a)=>{a.d(t,{$:()=>m});var s=a(40336),i=a(63291),n=a(92459),l=a(31684),d=a(12888),o=a(71661),r=a(10508),c=a(25196),u=a(48372);const v=JSON.parse('{"field_links":"Links","context_developer-ui":"Developer UI"}'),p=(0,u.g4)("ydb-tablet-name-wrapper",{en:v});var h=a(60712);function m({tabletId:e,database:t}){const a=(0,d.X)(),u=(0,n.DM)(e,{database:t});return(0,h.jsx)(o.s,{disabled:!a,delayClosing:200,content:(0,h.jsx)(s.u,{responsive:!0,children:(0,h.jsx)(s.u.Item,{name:p("field_links"),children:(0,h.jsx)(c.K,{title:p("context_developer-ui"),url:(0,l._t)(e)})})}),placement:["top","bottom"],behavior:i.m.Immediate,children:(0,h.jsx)(r.c,{name:e.toString(),path:u,hasClipboardButton:!0,showStatus:!1})})}},27775:(e,t,a)=>{a.d(t,{i:()=>l});var s=a(47665),i=a(58267),n=a(60712);function l({state:e}){return(0,n.jsx)(s.J,{theme:(0,i._)(e),children:e})}},13758:(e,t,a)=>{a.r(t),a.d(t,{Node:()=>Te});var s=a(59284),i=a(23871),n=a(44992),l=a(61750),d=a(10755),o=a(67087),r=a(3685),c=a(44508),u=a(87184),v=a(77506),p=a(31684),h=a(88655),m=a(12888);var b=a(18863),g=a(25196),f=a(60712);const x=(0,v.cn)("ydb-pool-usage"),j=e=>{let t="green";return e>60&&e<=80?t="yellow":e>80&&(t="red"),t},I=({data:e={}})=>{const{Threads:t,Name:a="Unknown",Usage:s=0}=e,i=s&&t,n=Math.floor(100*s),l=n>100?100:n;return(0,f.jsxs)("div",{className:x(),children:[(0,f.jsxs)("div",{className:x("info"),children:[(0,f.jsx)("div",{className:x("pool-name"),children:a}),i&&(0,f.jsxs)("div",{className:x("value"),children:[(0,f.jsxs)("div",{className:x("percents"),children:[n<1?"<1":n,"%"]}),(0,f.jsxs)("div",{className:x("threads"),children:["(\xd7",t,")"]})]})]}),(0,f.jsx)("div",{className:x("visual"),children:(0,f.jsx)("div",{className:x("usage-line",{type:j(l)}),style:{width:`${l}%`}})})]})};var k=a(15132),y=a(41826),N=a(48372);const T=JSON.parse('{"database":"Database","uptime":"Uptime","version":"Version","dc":"DC","rack":"Rack","links":"Links","la-interval-1m":"1 min","la-interval-5m":"5 min","la-interval-15m":"15 min","developer-ui":"Developer UI","no-data":"No data","title.common-info":"Common info","title.endpoints":"Endpoints","title.roles":"Roles","title.pools":"Pools","title.load-average":"Load average"}'),w=(0,N.g4)("ydb-node-info",{en:T}),S=(0,v.cn)("full-node-viewer"),D=({node:e,className:t})=>{var a,s,i,n,l;const d=function(e){const t=(0,h.E)();if((0,m.X)()){if(null!==t&&void 0!==t&&t.getNodeRef){const a=t.getNodeRef(e);return a?(0,p.Un)(a):void 0}if(null!==e&&void 0!==e&&e.NodeId){const t=(0,p.Kx)(e.NodeId);return(0,p.Un)(t)}}}(e),o=[];null!==e&&void 0!==e&&null!==(a=e.Tenants)&&void 0!==a&&a.length&&o.push({label:w("database"),value:e.Tenants[0]}),o.push({label:w("version"),value:null===e||void 0===e?void 0:e.Version},{label:w("uptime"),value:(0,f.jsx)(y.p,{StartTime:null===e||void 0===e?void 0:e.StartTime,DisconnectTime:null===e||void 0===e?void 0:e.DisconnectTime})},{label:w("dc"),value:(null===e||void 0===e?void 0:e.DataCenterDescription)||(null===e||void 0===e?void 0:e.DC)}),null!==e&&void 0!==e&&e.Rack&&o.push({label:w("rack"),value:null===e||void 0===e?void 0:e.Rack}),d&&o.push({label:w("links"),value:(0,f.jsx)(g.K,{url:d,title:w("developer-ui")})});const r=null===e||void 0===e||null===(s=e.Endpoints)||void 0===s?void 0:s.map((({Name:e,Address:t})=>({label:e,value:t}))),c=null===e||void 0===e||null===(i=e.LoadAveragePercents)||void 0===i?void 0:i.map(((e,t)=>{return{label:(a=t,[w("la-interval-1m"),w("la-interval-5m"),w("la-interval-15m")][a]),value:(0,f.jsx)(k.O,{value:e,percents:!0,colorizeProgress:!0,capacity:100})};var a}));return e?(0,f.jsx)("div",{className:S(null,t),children:(0,f.jsxs)(u.s,{wrap:!0,gap:4,children:[(0,f.jsxs)(u.s,{direction:"column",gap:2,children:[(0,f.jsx)(b.z,{title:w("title.common-info"),className:S("section"),info:o}),r&&r.length?(0,f.jsx)(b.z,{title:w("title.endpoints"),className:S("section"),info:r}):null]}),(0,f.jsxs)(u.s,{direction:"column",gap:2,children:[(0,f.jsxs)("div",{children:[(0,f.jsx)("div",{className:S("section-title"),children:w("title.pools")}),(0,f.jsx)("div",{className:S("section",{pools:!0}),children:null===e||void 0===e||null===(n=e.PoolStats)||void 0===n?void 0:n.map(((e,t)=>(0,f.jsx)(I,{data:e},t)))})]}),(0,f.jsx)(b.z,{title:w("title.load-average"),className:S("section",{average:!0}),info:c})]}),e.Roles&&e.Roles.length?(0,f.jsx)(u.s,{direction:"column",gap:2,children:(0,f.jsxs)("div",{className:S("section"),children:[(0,f.jsx)("div",{className:S("section-title"),children:w("title.roles")}),null===e||void 0===e||null===(l=e.Roles)||void 0===l?void 0:l.map((e=>(0,f.jsx)("div",{className:S("role"),children:e},e)))]})}):null]})}):(0,f.jsx)("div",{className:"error",children:w("no-data")})};var z=a(42655),A=a(44294),P=a(58389),C=a(92459),E=a(67028),L=a(40174),V=a(21334),R=a(78034);const q=e=>{var t;if(null===(t=e.SystemStateInfo)||void 0===t||!t.length)return{};const a=e.SystemStateInfo[0];return(0,R.q1)(a)},O=V.F.injectEndpoints({endpoints:e=>({getNodeInfo:e.query({queryFn:async({nodeId:e},{signal:t})=>{try{const a=await window.api.viewer.getNodeInfo(e,{signal:t});return{data:q(a)}}catch(a){return{error:a}}},providesTags:["All"]}),getNodeStructure:e.query({queryFn:async({nodeId:e},{signal:t})=>{try{return{data:await window.api.viewer.getStorageInfo({nodeId:e},{signal:t})}}catch(a){return{error:a}}},providesTags:["All"]})}),overrideExisting:"throw"});var F=a(90182),M=a(99936),U=a(71635),$=a(29819),G=a(905),Q=a.n(G),X=a(52248),K=a(53850),_=a(56839),H=a(27295);const B=(0,K.Mz)((e=>e),(e=>O.endpoints.getNodeStructure.select({nodeId:e}))),W=(0,K.Mz)((e=>e),((e,t)=>B(t)),((e,t)=>t(e).data)),J=(0,K.Mz)(((e,t)=>Number(t)),((e,t)=>W(e,t)),((e,t)=>{const a=null===t||void 0===t?void 0:t.StoragePools,s={};null===a||void 0===a||a.forEach((t=>{const a=t.Groups;null===a||void 0===a||a.forEach((a=>{var i;const n=null===(i=a.VDisks)||void 0===i?void 0:i.filter((t=>t.NodeId===e)).map(H.WT);null===n||void 0===n||n.forEach((a=>{var i;const n=(0,_.U9)(a.VDiskId),l=null===(i=a.PDisk)||void 0===i?void 0:i.PDiskId;s[String(l)]||(s[String(l)]={vDisks:{},...a.PDisk}),s[String(l)].vDisks[n]={...a,PDiskId:l,NodeId:e,StoragePoolName:t.Name}}))}))}));return Object.keys(s).reduce(((e,t)=>{const a=s[t].vDisks,i=Object.keys(a).reduce(((e,t,s)=>(e.push({...a[t],id:t,order:s}),e)),[]);return e[t]={...s[t],vDisks:i},e}),{})}));var Y=a(112),Z=a(45720),ee=a(4557),te=a(84476),ae=a(99991),se=a(84375),ie=a(33705),ne=a(56735),le=a(33775),de=a(67440),oe=a(54090),re=a(67375),ce=a(7435),ue=a(76086),ve=a(29971);const pe=(0,v.cn)("kv-node-structure");function he({label:e,value:t,className:a}){return(0,f.jsxs)("span",{className:pe("pdisk-title-item",a),children:[e&&(0,f.jsxs)("span",{className:pe("pdisk-title-item-label"),children:[e,":"]}),(0,f.jsx)("span",{className:pe("pdisk-title-item-value"),children:t})]})}const me=(0,v.cn)("kv-node-structure");var be=function(e){return e.slotId="VDiskSlotId",e.VDiskState="VDiskState",e.Size="Size",e.Info="Info",e}(be||{});const ge={VDiskSlotId:"Slot id",VDiskState:"Status",Size:"Size",Info:""};function fe({pDiskId:e,selectedVdiskId:t,nodeId:a,withDeveloperUILink:s}){return[{name:be.slotId,header:ge[be.slotId],width:100,render:({row:i})=>{const n=i.VDiskSlotId;let l=null;return(0,ce.f8)(a)&&(0,ce.f8)(e)&&(0,ce.f8)(n)&&(l=(0,p.Wg)({nodeId:a,pDiskId:e,vDiskSlotId:n})),(0,f.jsxs)("div",{className:me("vdisk-id",{selected:i.id===t}),children:[(0,f.jsx)("span",{children:n}),l&&s?(0,f.jsx)(te.$,{size:"s",className:me("external-button",{hidden:!0}),href:l,target:"_blank",title:(0,ve.A)("vdisk.developer-ui-button-title"),children:(0,f.jsx)(ae.I,{data:Y.A})}):null]})},align:ee.Ay.LEFT},{name:be.VDiskState,header:ge[be.VDiskState],width:70,render:({row:e})=>(0,f.jsx)(le.k,{status:e.VDiskState===re.W.OK?oe.m.Green:oe.m.Red}),sortAccessor:e=>e.VDiskState===re.W.OK?1:0,align:ee.Ay.CENTER},{name:be.Size,header:ge[be.Size],width:170,render:({row:e})=>(0,f.jsx)(k.O,{value:e.AllocatedSize,capacity:Number(e.AllocatedSize)+Number(e.AvailableSize),formatValues:_.vX,colorizeProgress:!0}),sortAccessor:e=>Number(e.AllocatedSize),align:ee.Ay.CENTER},{name:be.Info,header:ge[be.Info],width:70,render:({row:e})=>(0,f.jsx)(se.A,{placement:["right"],content:(0,f.jsx)(de.E,{data:e,withTitle:!0,withVDiskPageLink:!0}),tooltipContentClassName:me("vdisk-details"),children:(0,f.jsx)(te.$,{view:"flat-secondary",className:me("vdisk-details-button",{selected:e.id===t}),children:(0,f.jsx)(ae.I,{data:Z.A,size:18})})}),sortable:!1}]}function xe({id:e,data:t,selectedVdiskId:a,nodeId:i,unfolded:n}){const l=(0,m.X)(),[d,o]=s.useState(null!==n&&void 0!==n&&n),{TotalSize:r=0,AvailableSize:c=0,Device:u,PDiskId:v,Type:p,vDisks:h}=t,b=Number(r),g=Number(c);return(0,f.jsxs)("div",{className:me("pdisk"),id:e,children:[(0,f.jsxs)("div",{className:me("pdisk-header"),children:[(0,f.jsxs)("div",{className:me("pdisk-title-wrapper"),children:[(0,f.jsx)(le.k,{status:u}),(0,f.jsx)(he,{label:"PDiskID",value:v,className:me("pdisk-title-id")}),(0,f.jsx)(he,{value:p,className:me("pdisk-title-type")}),(0,f.jsx)(k.O,{value:b-g,capacity:b,formatValues:_.vX,colorizeProgress:!0,className:me("pdisk-title-size")}),(0,f.jsx)(he,{label:"VDisks",value:h.length})]}),(0,f.jsx)(te.$,{onClick:d?()=>{o(!1)}:()=>{o(!0)},view:"flat-secondary",children:(0,f.jsx)(ie.I,{direction:d?"top":"bottom"})})]}),d&&(Q()(t)?(0,f.jsx)("div",{children:"No information about PDisk"}):(0,f.jsxs)("div",{children:[(0,f.jsx)(ne.Q,{pDisk:t,nodeId:i,className:me("pdisk-details"),withPDiskPageLink:!0}),(0,f.jsxs)("div",{className:me("vdisks-container"),children:[(0,f.jsx)("div",{className:me("vdisks-header"),children:"VDisks"}),(0,f.jsx)(ee.Ay,{theme:"yandex-cloud",data:h,columns:fe({nodeId:i,pDiskId:v,selectedVdiskId:a,withDeveloperUILink:l}),settings:{...ue.N3,dynamicRender:!1},rowClassName:e=>e.id===a?me("selected-vdisk"):""})]})]}))]})}const je=(0,v.cn)("kv-node-structure");function Ie({type:e,id:t}){return`${e}-${t}`}const ke=function({nodeId:e,className:t}){const a=(0,F.N4)((t=>J(t,e))),[i]=(0,F.Nt)(),{currentData:n,isFetching:l,error:d}=O.useGetNodeStructureQuery({nodeId:e},{pollingInterval:i}),r=l&&void 0===n,[{pdiskId:u,vdiskId:v}]=(0,o.useQueryParams)({pdiskId:o.StringParam,vdiskId:o.StringParam}),p=s.useRef(null),h=s.useRef(!1);return s.useEffect((()=>{if(!Q()(a)&&!h.current&&p.current&&u){const t=document.getElementById(Ie({type:"pdisk",id:u}));let s=0;if(v){var e;const t=null===(e=a[u])||void 0===e?void 0:e.vDisks,i=null===t||void 0===t?void 0:t.find((e=>e.id===v)),n=i?document.querySelector(".data-table"):void 0,l=(null===i||void 0===i?void 0:i.order)||0;n&&(s+=n.offsetTop+40*l)}t&&(p.current.scrollTo({behavior:"smooth",top:s||t.offsetTop}),h.current=!0)}}),[a,u,v]),(0,f.jsxs)("div",{className:je(),ref:p,children:[d?(0,f.jsx)(c.o,{error:d,className:je("error")}):null,(0,f.jsx)("div",{className:t,children:r?(0,f.jsx)(X.a,{size:"m"}):d&&!n?null:(()=>{const t=Object.keys(a);return t.length>0?t.map((t=>(0,f.jsx)(xe,{data:a[t],id:Ie({type:"pdisk",id:t}),unfolded:u===t,selectedVdiskId:v,nodeId:e},t))):"There is no information about node structure."})()})]})},ye=(0,v.cn)("node"),Ne="Storage";function Te(){var e,t;const a=s.useRef(null),i=(0,F.YQ)(),l=(0,d.W5)(C.Ay.node),r=null===l||void 0===l?void 0:l.params.id,u=null===l||void 0===l?void 0:l.params.activeTab,[{database:v}]=(0,o.useQueryParams)($.Gi),p=$.IK.parse(u),[h]=(0,F.Nt)(),m=r?{nodeId:r}:n.hT,{currentData:b,isLoading:g,error:x}=O.useGetNodeInfoQuery(m,{pollingInterval:h}),j=(0,E.Pm)(),I=(0,E.c2)(),k=g||!j,y=null===b||void 0===b||null===(e=b.Roles)||void 0===e?void 0:e.find((e=>e===Ne)),{activeTab:N,nodeTabs:T}=s.useMemo((()=>{var e;let t=y?$.GX:$.GX.filter((e=>"storage"!==e.id));I&&(t=t.filter((e=>"structure"!==e.id)));return{activeTab:null!==(e=t.find((({id:e})=>e===p)))&&void 0!==e?e:t[0],nodeTabs:t}}),[y,I,p]),w=(null===b||void 0===b||null===(t=b.Tenants)||void 0===t?void 0:t[0])||(null===v||void 0===v?void 0:v.toString());return s.useEffect((()=>{g||i((0,L.g)("node",{tenantName:w,nodeRole:y?"Storage":"Compute",nodeId:r}))}),[i,w,r,g,y]),(0,f.jsxs)("div",{className:ye(null),ref:a,children:[(0,f.jsx)(we,{node:b,activeTabTitle:N.title}),(0,f.jsx)(Se,{node:b,loading:k}),(0,f.jsx)(De,{node:b}),x?(0,f.jsx)(c.o,{error:x,className:ye("error")}):null,(0,f.jsx)(ze,{node:b,loading:k}),r?(0,f.jsx)(Ae,{nodeId:r,tenantName:w,activeTabId:N.id,tabs:T,parentContainer:a}):null]})}function we({node:e,activeTabTitle:t}){const a=null!==e&&void 0!==e&&e.Host?e.Host:(0,ve.A)("node");return(0,f.jsx)(l.mg,{titleTemplate:`%s \u2014 ${a} \u2014 YDB Monitoring`,defaultTitle:`${a} \u2014 YDB Monitoring`,children:(0,f.jsx)("title",{children:t})})}function Se({node:e,loading:t}){const a=null!==e&&void 0!==e&&e.Host?`${(0,ve.A)("fqdn")}: ${e.Host}`:void 0,s=null!==e&&void 0!==e&&e.DC?`${(0,ve.A)("dc")}: ${e.DC}`:void 0;return(0,f.jsx)(P.B,{loading:t,items:[a,s],className:ye("meta")})}function De({node:e}){return(0,f.jsx)(r.$,{entityName:(0,ve.A)("node"),status:null===e||void 0===e?void 0:e.SystemState,id:null===e||void 0===e?void 0:e.NodeId,className:ye("title")})}function ze({node:e,loading:t}){return t?(0,f.jsx)(z.y,{className:ye("info"),rows:10}):(0,f.jsx)(D,{node:e,className:ye("info")})}function Ae({nodeId:e,tenantName:t,activeTabId:a,tabs:n,parentContainer:l}){return(0,f.jsxs)(s.Fragment,{children:[(0,f.jsx)("div",{className:ye("tabs"),children:(0,f.jsx)(i.t,{size:"l",items:n,activeTab:a,wrapTo:({id:a},s)=>{const i=(0,$.vI)(e,{database:t},a);return(0,f.jsx)(A.E,{to:i,children:s},a)}})}),(()=>{switch(a){case"storage":return(0,f.jsx)(M.z,{nodeId:e,parentRef:l,viewContext:{nodeId:e}});case"tablets":return(0,f.jsx)(U.C,{nodeId:e,database:t});case"structure":return(0,f.jsx)(ke,{nodeId:e});default:return!1}})()]})}},71635:(e,t,a)=>{a.d(t,{C:()=>g});var s=a(44992),i=a(53850),n=a(62060),l=a.n(n),d=a(21334),o=a(24600);const r=d.F.injectEndpoints({endpoints:e=>({getTabletsInfo:e.query({queryFn:async(e,{signal:t})=>{try{return{data:await window.api.viewer.getTabletsInfo(e,{signal:t})}}catch(a){return{error:a}}},providesTags:["All",{type:"Tablet",id:"LIST"}]})}),overrideExisting:"throw"}),c=(0,i.Mz)((e=>e),(e=>r.endpoints.getTabletsInfo.select(e)),{argsMemoize:i.i5,argsMemoizeOptions:{equalityCheck:l()}}),u=(0,i.Mz)((e=>e),((e,t)=>c(t)),((e,t)=>t(e).data)),v=(0,i.Mz)(((e,t)=>u(e,t)),(e=>(0,o.K)(e)),((e,t)=>null!==e&&void 0!==e&&e.TabletStateInfo?t?e.TabletStateInfo.map((e=>{var a;const s=void 0===e.NodeId||null===(a=t.get(e.NodeId))||void 0===a?void 0:a.Host;return{...e,fqdn:s}})):e.TabletStateInfo:[]));var p=a(7435),h=a(90182),m=a(88616),b=a(60712);function g({nodeId:e,path:t,database:a}){const[i]=(0,h.Nt)();let n={};(0,p.f8)(e)?n={nodeId:e,database:a}:t&&(n={path:t,database:a});const{isLoading:l,error:d}=r.useGetTabletsInfoQuery(0===Object.keys(n).length?s.hT:n,{pollingInterval:i}),o=(0,h.N4)((e=>v(e,n)));return(0,b.jsx)(m.Q,{tablets:o,database:a,loading:l,error:d})}},88616:(e,t,a)=>{a.d(t,{Q:()=>z});var s=a(59284),i=a(76938),n=a(98089),l=a(99991),d=a(67087),o=a(22983),r=a(28539),c=a(10508),u=a(44508),v=a(44294),p=a(17594),h=a(41775),m=a(89073),b=a(80420),g=a(27775),f=a(41826),x=a(21545),j=a(6354),I=a(76086),k=a(12888),y=a(29819),N=a(48372);const T=JSON.parse('{"noTabletsData":"No tablets data","Type":"Type","Tablet":"Tablet","State":"State","Node ID":"Node ID","Node FQDN":"Node FQDN","Generation":"Generation","Uptime":"Uptime","dialog.kill-header":"Restart tablet","dialog.kill-text":"The tablet will be restarted. Do you want to proceed?","controls.kill-not-allowed":"You don\'t have enough rights to restart tablet","controls.search-placeholder":"Tablet ID","controls.entities-count-label":"Tablets"}'),w=(0,N.g4)("ydb-tablets",{en:T});var S=a(60712);function D(e){const t=e.State===j.r.Stopped,a=(0,k.X)(),[s]=x.X.useKillTabletMutation(),n=e.TabletId;return n?(0,S.jsx)(o.B,{buttonView:"outlined",buttonTitle:w("dialog.kill-header"),dialogHeader:w("dialog.kill-header"),dialogText:w("dialog.kill-text"),onConfirmAction:()=>s({id:n}).unwrap(),buttonDisabled:t||!a,withPopover:!0,popoverContent:w(a?"dialog.kill-header":"controls.kill-not-allowed"),popoverPlacement:["right","auto"],popoverDisabled:!1,children:(0,S.jsx)(l.I,{data:i.A})}):null}function z({database:e,tablets:t,loading:a,error:i}){const[{tabletsSearch:l},o]=(0,d.useQueryParams)({tabletsSearch:d.StringParam}),x=s.useMemo((()=>function({database:e}){return[{name:"Type",width:150,get header(){return w("Type")},render:({row:e})=>{const t=!1===e.Leader;return(0,S.jsxs)("span",{children:[e.Type," ",t?(0,S.jsx)(n.E,{color:"secondary",children:"follower"}):""]})}},{name:"TabletId",width:220,get header(){return w("Tablet")},render:({row:t})=>t.TabletId?(0,S.jsx)(b.$,{tabletId:t.TabletId,database:e}):I.Pd},{name:"State",get header(){return w("State")},render:({row:e})=>(0,S.jsx)(g.i,{state:e.State})},{name:"NodeId",get header(){return w("Node ID")},render:({row:e})=>{const t=void 0===e.NodeId?void 0:(0,y.vI)(e.NodeId);return(0,S.jsx)(v.E,{to:t,children:e.NodeId})},align:"right"},{name:"fqdn",get header(){return w("Node FQDN")},render:({row:e})=>e.fqdn?(0,S.jsx)(c.c,{name:e.fqdn,showStatus:!1,hasClipboardButton:!0}):(0,S.jsx)("span",{children:"\u2014"})},{name:"Generation",get header(){return w("Generation")},align:"right"},{name:"Uptime",get header(){return w("Uptime")},render:({row:e})=>(0,S.jsx)(f.H,{ChangeTime:e.ChangeTime}),sortAccessor:e=>-Number(e.ChangeTime),align:"right",width:120},{name:"Actions",sortable:!1,resizeable:!1,header:"",render:({row:e})=>(0,S.jsx)(D,{...e})}]}({database:e})),[e]),j=s.useMemo((()=>t.filter((e=>String(e.TabletId).includes(null!==l&&void 0!==l?l:"")))),[t,l]);return(0,S.jsxs)(m.L,{children:[(0,S.jsxs)(m.L.Controls,{children:[(0,S.jsx)(h.v,{placeholder:w("controls.search-placeholder"),onChange:e=>{o({tabletsSearch:e||void 0},"replaceIn")},value:null!==l&&void 0!==l?l:"",width:238}),(0,S.jsx)(r.T,{label:w("controls.entities-count-label"),loading:a,total:t.length,current:j.length})]}),i?(0,S.jsx)(u.o,{error:i}):null,(0,S.jsx)(m.L.Table,{loading:a,children:(0,S.jsx)(p.l,{columns:x,data:j,settings:I.N3,emptyDataMessage:w("noTabletsData")})})]})}},21545:(e,t,a)=>{a.d(t,{X:()=>i});var s=a(78034);const i=a(21334).F.injectEndpoints({endpoints:e=>({getTablet:e.query({queryFn:async({id:e,database:t},{signal:a})=>{try{const[i,n,l]=await Promise.all([window.api.viewer.getTablet({id:e,database:t},{signal:a}),window.api.viewer.getTabletHistory({id:e,database:t},{signal:a}),window.api.viewer.getNodesList({signal:a})]),d=(0,s.nN)(l),o=Object.keys(n).reduce(((e,t)=>{var a;const s=null===(a=n[t])||void 0===a?void 0:a.TabletStateInfo;if(s&&s.length){var i;const a=s.find((e=>e.Leader))||s[0],{ChangeTime:n,Generation:l,State:o,Leader:r,FollowerId:c}=a,u=d&&t?null===(i=d.get(Number(t)))||void 0===i?void 0:i.Host:void 0;"Dead"!==o&&e.push({nodeId:t,generation:l,changeTime:n,state:o,leader:r,followerId:c,fqdn:u})}return e}),[]),{TabletStateInfo:r=[]}=i,[c={}]=r,{TabletId:u}=c;return{data:{id:u,data:c,history:o}}}catch(i){return{error:i}}},providesTags:(e,t,a)=>["All",{type:"Tablet",id:a.id}]}),getTabletDescribe:e.query({queryFn:async({tenantId:e},{signal:t})=>{try{const a=await window.api.viewer.getTabletDescribe(e,{signal:t}),{SchemeShard:s,PathId:i}=e;return{data:(null===a||void 0===a?void 0:a.Path)||`${s}:${i}`}}catch(a){return{error:a}}},providesTags:["All"]}),getAdvancedTableInfo:e.query({queryFn:async({id:e,hiveId:t},{signal:a})=>{try{return{data:await window.api.tablets.getTabletFromHive({id:e,hiveId:t},{signal:a})}}catch(s){return{error:s}}},providesTags:(e,t,a)=>["All",{type:"Tablet",id:a.id}]}),killTablet:e.mutation({queryFn:async({id:e})=>{try{return{data:await window.api.tablets.killTablet(e)}}catch(t){return{error:t}}},invalidatesTags:(e,t,a)=>[{type:"Tablet",id:a.id},{type:"Tablet",id:"LIST"}]}),stopTablet:e.mutation({queryFn:async({id:e,hiveId:t})=>{try{return{data:await window.api.tablets.stopTablet(e,t)}}catch(a){return{error:a}}},invalidatesTags:(e,t,a)=>[{type:"Tablet",id:a.id},{type:"Tablet",id:"LIST"}]}),resumeTablet:e.mutation({queryFn:async({id:e,hiveId:t})=>{try{return{data:await window.api.tablets.resumeTablet(e,t)}}catch(a){return{error:a}}},invalidatesTags:(e,t,a)=>[{type:"Tablet",id:a.id},{type:"Tablet",id:"LIST"}]})}),overrideExisting:"throw"})},76938:(e,t,a)=>{a.d(t,{A:()=>i});var s=a(59284);const i=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 1.5a6.5 6.5 0 1 1-6.445 7.348.75.75 0 1 1 1.487-.194A5.001 5.001 0 1 0 4.43 4.5h1.32a.75.75 0 0 1 0 1.5h-3A.75.75 0 0 1 2 5.25v-3a.75.75 0 0 1 1.5 0v1.06A6.48 6.48 0 0 1 8 1.5",clipRule:"evenodd"}))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/5168.5c3dfc04.chunk.js b/ydb/core/viewer/monitoring/static/js/5168.5c3dfc04.chunk.js deleted file mode 100644 index 97c89dd8b1..0000000000 --- a/ydb/core/viewer/monitoring/static/js/5168.5c3dfc04.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[5168],{22983:(e,s,t)=>{t.d(s,{B:()=>c});var n=t(59284),a=t(84476),l=t(84375),i=t(55974),o=t(42829),r=t(60712);function c({children:e,onConfirmAction:s,onConfirmActionSuccess:t,dialogHeader:c,dialogText:d,retryButtonText:u,buttonDisabled:h=!1,buttonView:v="action",buttonTitle:m,buttonClassName:p,withPopover:x=!1,popoverContent:f,popoverPlacement:g="right",popoverDisabled:b=!0}){const[y,j]=n.useState(!1),[N,k]=n.useState(!1),[w,S]=n.useState(!1),C=()=>(0,r.jsx)(a.$,{onClick:()=>j(!0),view:v,disabled:h,loading:!h&&N,className:p,title:m,children:e});return(0,r.jsxs)(n.Fragment,{children:[(0,r.jsx)(i.g,{visible:y,header:c,text:d,withRetry:w,retryButtonText:u,onConfirm:async e=>{k(!0),await s(e)},onConfirmActionSuccess:async()=>{S(!1);try{await(null===t||void 0===t?void 0:t())}finally{k(!1)}},onConfirmActionError:e=>{S((0,o.D)(e)),k(!1)},onClose:()=>{j(!1)}}),x?(0,r.jsx)(l.A,{content:f,placement:g,disabled:b,children:C()}):C()]})}},55974:(e,s,t)=>{t.d(s,{g:()=>f});var n=t(59284),a=t(18677),l=t(71153),i=t(74321),o=t(2198),r=t(99991),c=t(89954),d=t(77506),u=t(48372);const h=JSON.parse('{"default-error":"Something went wrong, action cannot be completed","no-rights-error":"You don\'t have enough rights to complete the operation","button-confirm":"Confirm","button-retry":"Retry","button-cancel":"Cancel","button-close":"Close","checkbox-text":"I understand what I\'m doing"}'),v=(0,u.g4)("ydb-critical-action-dialog",{en:h});var m=t(60712);const p=(0,d.cn)("ydb-critical-dialog"),x=e=>e.data&&"issues"in e.data&&e.data.issues?(0,m.jsx)(c.O,{hideSeverity:!0,data:e.data}):403===e.status?v("no-rights-error"):e.statusText?e.statusText:v("default-error");function f({visible:e,header:s,text:t,withRetry:c,retryButtonText:d,withCheckBox:u,onClose:h,onConfirm:f,onConfirmActionSuccess:g,onConfirmActionError:b}){const[y,j]=n.useState(!1),[N,k]=n.useState(),[w,S]=n.useState(!1),C=async e=>(j(!0),f(e).then((()=>{g(),h()})).catch((e=>{b(e),k(e)})).finally((()=>{j(!1)})));return(0,m.jsx)(o.l,{open:e,hasCloseButton:!1,className:p(),size:"s",onClose:h,onTransitionExited:()=>{k(void 0),S(!1)},children:N?(0,m.jsxs)(n.Fragment,{children:[(0,m.jsx)(o.l.Header,{caption:s}),(0,m.jsx)(o.l.Body,{className:p("body"),children:(0,m.jsxs)("div",{className:p("body-message",{error:!0}),children:[(0,m.jsx)("span",{className:p("error-icon"),children:(0,m.jsx)(a.A,{width:"24",height:"22"})}),x(N)]})}),(0,m.jsx)(o.l.Footer,{loading:!1,preset:"default",textButtonApply:c?d||v("button-retry"):void 0,textButtonCancel:v("button-close"),onClickButtonApply:()=>C(!0),onClickButtonCancel:h})]}):(0,m.jsxs)(n.Fragment,{children:[(0,m.jsx)(o.l.Header,{caption:s}),(0,m.jsxs)(o.l.Body,{className:p("body"),children:[(0,m.jsxs)("div",{className:p("body-message",{warning:!0}),children:[(0,m.jsx)("span",{className:p("warning-icon"),children:(0,m.jsx)(r.I,{data:l.A,size:24})}),t]}),u?(0,m.jsx)(i.S,{checked:w,onUpdate:S,children:v("checkbox-text")}):null]}),(0,m.jsx)(o.l.Footer,{loading:y,preset:"default",textButtonApply:v("button-confirm"),textButtonCancel:v("button-cancel"),propsButtonApply:{type:"submit",disabled:u&&!w},onClickButtonCancel:h,onClickButtonApply:()=>C()})]})})}},42829:(e,s,t)=>{t.d(s,{D:()=>n});const n=e=>Boolean(e&&"object"===typeof e&&"retryPossible"in e&&e.retryPossible)},3685:(e,s,t)=>{t.d(s,{$:()=>r});var n=t(54090),a=t(77506),l=t(33775),i=t(60712);const o=(0,a.cn)("ydb-entity-page-title");function r({entityName:e,status:s=n.m.Grey,id:t,className:a}){return(0,i.jsxs)("div",{className:o(null,a),children:[(0,i.jsx)("span",{className:o("prefix"),children:e}),(0,i.jsx)(l.k,{className:o("icon"),status:s,size:"s"}),t]})}},42655:(e,s,t)=>{t.d(s,{y:()=>d});var n=t(59284),a=t(89169),l=t(77506),i=t(66781),o=t(60712);const r=(0,l.cn)("ydb-info-viewer-skeleton"),c=()=>(0,o.jsxs)("div",{className:r("label"),children:[(0,o.jsx)(a.E,{className:r("label__text")}),(0,o.jsx)("div",{className:r("label__dots")})]}),d=({rows:e=8,className:s,delay:t=600})=>{const[l]=(0,i.y)(t);let d=(0,o.jsxs)(n.Fragment,{children:[(0,o.jsx)(c,{}),(0,o.jsx)(a.E,{className:r("value")})]});return l||(d=null),(0,o.jsx)("div",{className:r(null,s),children:[...new Array(e)].map(((e,s)=>(0,o.jsx)("div",{className:r("row"),children:d},`skeleton-row-${s}`)))})}},58389:(e,s,t)=>{t.d(s,{B:()=>u});var n=t(87184),a=t(77506),l=t(90053),i=t(70043),o=t(60712);const r=(0,a.cn)("ydb-page-meta"),c="\xa0\xa0\xb7\xa0\xa0";function d({items:e,loading:s}){return(0,o.jsx)("div",{className:r("info"),children:s?(0,o.jsx)(i.E,{className:r("skeleton")}):e.filter((e=>Boolean(e))).join(c)})}function u({className:e,...s}){return(0,o.jsxs)(n.s,{gap:1,alignItems:"center",justifyContent:"space-between",className:r(null,e),children:[(0,o.jsx)(d,{...s}),(0,o.jsx)(l.E,{})]})}},70043:(e,s,t)=>{t.d(s,{E:()=>i});var n=t(89169),a=t(66781),l=t(60712);const i=({delay:e=600,className:s})=>{const[t]=(0,a.y)(e);return t?(0,l.jsx)(n.E,{className:s}):null}},67440:(e,s,t)=>{t.d(s,{E:()=>y});t(59284);var n=t(92459),a=t(7435),l=t(77506),i=t(56839),o=t(31684),r=t(7187),c=t(12888),d=t(41650),u=t(60073),h=t(25196),v=t(15132),m=t(33775),p=t(48372);const x=JSON.parse('{"slot-id":"VDisk Slot Id","pool-name":"Storage Pool Name","kind":"Kind","guid":"GUID","incarnation-guid":"Incarnation GUID","instance-guid":"Instance GUID","replication-status":"Replicated","state-status":"VDisk State","space-status":"Disk Space","fresh-rank-satisfaction":"Fresh Rank Satisfaction","level-rank-satisfaction":"Level Rank Satisfaction","front-queues":"Front Queues","has-unreadable-blobs":"Has Unreadable Blobs","size":"Size","read-throughput":"Read Throughput","write-throughput":"Write Throughput","links":"Links","vdisk-page":"VDisk Page","developer-ui":"Developer UI","yes":"Yes","no":"No","vdiks-title":"VDisk"}'),f=(0,p.g4)("ydb-vDisk-info",{en:x});var g=t(60712);const b=(0,l.cn)("ydb-vdisk-info");function y({data:e,withVDiskPageLink:s,withTitle:t,...l}){var r,p;const x=(0,c.X)(),{AllocatedSize:y,DiskSpace:N,FrontQueues:k,Guid:w,Replicated:S,VDiskState:C,VDiskSlotId:_,Kind:A,SatisfactionRank:I,AvailableSize:E,HasUnreadableBlobs:B,IncarnationGuid:R,InstanceGuid:D,StoragePoolName:F,ReadThroughput:O,WriteThroughput:z,PDiskId:L,NodeId:T}=e||{},P=[];var V,G;((0,a.f8)(_)&&P.push({label:f("slot-id"),value:_}),(0,a.f8)(F)&&P.push({label:f("pool-name"),value:F}),(0,a.f8)(C)&&P.push({label:f("state-status"),value:C}),Number(y)>=0&&Number(E)>=0&&P.push({label:f("size"),value:(0,g.jsx)(v.O,{value:y,capacity:Number(y)+Number(E),formatValues:i.vX,colorizeProgress:!0})}),(0,a.f8)(A)&&P.push({label:f("kind"),value:A}),(0,a.f8)(w)&&P.push({label:f("guid"),value:w}),(0,a.f8)(R)&&P.push({label:f("incarnation-guid"),value:R}),(0,a.f8)(D)&&P.push({label:f("instance-guid"),value:D}),(0,a.f8)(S)&&P.push({label:f("replication-status"),value:f(S?"yes":"no")}),(0,a.f8)(N)&&P.push({label:f("space-status"),value:(0,g.jsx)(m.k,{status:N})}),(0,a.f8)(null===I||void 0===I||null===(r=I.FreshRank)||void 0===r?void 0:r.Flag))&&P.push({label:f("fresh-rank-satisfaction"),value:(0,g.jsx)(m.k,{status:null===I||void 0===I||null===(V=I.FreshRank)||void 0===V?void 0:V.Flag})});(0,a.f8)(null===I||void 0===I||null===(p=I.LevelRank)||void 0===p?void 0:p.Flag)&&P.push({label:f("level-rank-satisfaction"),value:(0,g.jsx)(m.k,{status:null===I||void 0===I||null===(G=I.LevelRank)||void 0===G?void 0:G.Flag})});(0,a.f8)(k)&&P.push({label:f("front-queues"),value:(0,g.jsx)(m.k,{status:k})}),(0,a.f8)(B)&&P.push({label:f("has-unreadable-blobs"),value:f(B?"yes":"no")}),(0,a.f8)(O)&&P.push({label:f("read-throughput"),value:(0,d.O4)(O)}),(0,a.f8)(z)&&P.push({label:f("write-throughput"),value:(0,d.O4)(z)});if((0,a.f8)(L)&&(0,a.f8)(T)&&(0,a.f8)(_)){const e=[];if(s){const s=(0,n.yX)(_,L,T);e.push((0,g.jsx)(h.K,{title:f("vdisk-page"),url:s,external:!1},s))}if(x){const s=(0,o.Wg)({nodeId:T,pDiskId:L,vDiskSlotId:_});e.push((0,g.jsx)(h.K,{title:f("developer-ui"),url:s},s))}e.length&&P.push({label:f("links"),value:(0,g.jsx)("div",{className:b("links"),children:e})})}const $=e&&t?(0,g.jsx)(j,{data:e}):null;return(0,g.jsx)(u.z_,{info:P,title:$,...l})}function j({data:e}){return(0,g.jsxs)("div",{className:b("title"),children:[f("vdiks-title"),(0,g.jsx)(m.k,{status:(0,r.XY)(e.Severity)}),e.StringifiedId]})}},89954:(e,s,t)=>{t.d(s,{O:()=>C});var n=t(59284),a=t(45720),l=t(16929),i=t(71153),o=t(18677),r=t(84476),c=t(33705),d=t(67884),u=t(99991),h=t(77506),v=t(48372);const m=JSON.parse('{"default_collapse_label":"Show less","default_expand_label":"Show more","chars_count":[" ({{count}} symbol)"," ({{count}} symbols)"," ({{count}} symbols)"," ({{count}} symbols)"]}'),p=JSON.parse('{"default_collapse_label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043c\u0435\u043d\u044c\u0448\u0435","default_expand_label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0435\u0449\u0451","chars_count":[" ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u0430)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432)"]}'),x=(0,v.g4)("ydb-shorty-string",{ru:p,en:m});var f=t(60712);const g=(0,h.cn)("kv-shorty-string");function b({value:e="",limit:s=200,strict:t=!1,displayLength:a=!0,render:l=e=>e,onToggle:i,expandLabel:o=x("default_expand_label"),collapseLabel:r=x("default_collapse_label")}){const[c,u]=n.useState(!1),h=(c?r:o)+(a&&!c?x("chars_count",{count:e.length}):""),v=e.length>s+(t?0:h.length),m=c||!v?e:e.slice(0,s-4)+"\xa0...";return(0,f.jsxs)("div",{className:g(),children:[l(m),v?(0,f.jsx)(d.N,{className:g("toggle"),href:"#",onClick:e=>{e.stopPropagation(),e.preventDefault(),u((e=>!e)),null===i||void 0===i||i()},children:h}):null]})}var y=t(41650);const j=["S_FATAL","S_ERROR","S_WARNING","S_INFO"];function N(e){return function(e){return!!e&&void 0!==j[e]}(e)?j[e]:"S_INFO"}const k=(0,h.cn)("kv-result-issues"),w=(0,h.cn)("kv-issues"),S=(0,h.cn)("kv-issue");function C({data:e,hideSeverity:s}){const[t,a]=n.useState(!1),l="string"===typeof e||null===e||void 0===e?void 0:e.issues,i=Array.isArray(l)&&l.length>0;return(0,f.jsxs)("div",{className:k(),children:[(0,f.jsxs)("div",{className:k("error-message"),children:[(()=>{let t;if("string"===typeof e)t=e;else{var a,l;const i=N(null===e||void 0===e||null===(a=e.error)||void 0===a?void 0:a.severity);t=(0,f.jsxs)(n.Fragment,{children:[s?null:(0,f.jsxs)(n.Fragment,{children:[(0,f.jsx)(D,{severity:i})," "]}),(0,f.jsx)("span",{className:k("error-message-text"),children:null===e||void 0===e||null===(l=e.error)||void 0===l?void 0:l.message})]})}return t})(),i&&(0,f.jsx)(r.$,{view:"normal",onClick:()=>a(!t),children:t?"Hide details":"Show details"})]}),i&&t&&(0,f.jsx)(_,{hideSeverity:s,issues:l})]})}function _({issues:e,hideSeverity:s}){const t=null===e||void 0===e?void 0:e.reduce(((e,s)=>{var t;const n=null!==(t=s.severity)&&void 0!==t?t:10;return Math.min(e,n)}),10);return(0,f.jsx)("div",{className:w(null),children:null===e||void 0===e?void 0:e.map(((e,n)=>(0,f.jsx)(A,{hideSeverity:s,issue:e,expanded:e===t},n)))})}function A({issue:e,hideSeverity:s,level:t=0}){const[a,l]=n.useState(!0),i=N(e.severity),o=e.issues,d=Array.isArray(o)&&o.length>0,u=a?"bottom":"right";return(0,f.jsxs)("div",{className:S({leaf:!d,"has-issues":d}),children:[(0,f.jsxs)("div",{className:S("line"),children:[d&&(0,f.jsx)(r.$,{view:"flat-secondary",onClick:()=>l(!a),className:S("arrow-toggle"),children:(0,f.jsx)(c.I,{direction:u,size:16})}),s?null:(0,f.jsx)(D,{severity:i}),(0,f.jsx)(I,{issue:e}),e.issue_code?(0,f.jsxs)("span",{className:S("code"),children:["Code: ",e.issue_code]}):null]}),d&&a&&(0,f.jsx)("div",{className:S("issues"),children:(0,f.jsx)(E,{issues:o,level:t+1,expanded:a})})]})}function I({issue:e}){var s;const t=function(e){const{position:s}=e;if("object"!==typeof s||null===s||!(0,y.kf)(s.row))return"";const{row:t,column:n}=s;return(0,y.kf)(n)?`${t}:${n}`:`line ${t}`}(e),n=window.ydbEditor,a=()=>(0,f.jsxs)("span",{className:S("message"),children:[t&&(0,f.jsx)("span",{className:S("place-text"),title:"Position",children:t}),(0,f.jsx)("div",{className:S("message-text"),children:(0,f.jsx)(b,{value:e.message,expandLabel:"Show full message"})})]}),{row:l,column:i}=null!==(s=e.position)&&void 0!==s?s:{};if(!((0,y.kf)(l)&&n))return a();return(0,f.jsx)(d.N,{href:"#",extraProps:{draggable:!1},onClick:()=>{const e={lineNumber:l,column:null!==i&&void 0!==i?i:0};n.setPosition(e),n.revealPositionInCenterIfOutsideViewport(e),n.focus()},view:"primary",children:a()})}function E(e){const{issues:s,level:t,expanded:n}=e;return(0,f.jsx)("div",{className:S("list"),children:s.map(((e,s)=>(0,f.jsx)(A,{issue:e,level:t,expanded:n},s)))})}const B={S_INFO:a.A,S_WARNING:l.A,S_ERROR:i.A,S_FATAL:o.A},R=(0,h.cn)("yql-issue-severity");function D({severity:e}){const s=e.slice(2).toLowerCase();return(0,f.jsxs)("span",{className:R({severity:s}),children:[(0,f.jsx)(u.I,{className:R("icon"),data:B[e]}),(0,f.jsx)("span",{className:R("title"),children:s})]})}},18677:(e,s,t)=>{t.d(s,{A:()=>a});var n=t(59284);const a=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14M6.53 5.47a.75.75 0 0 0-1.06 1.06L6.94 8 5.47 9.47a.75.75 0 1 0 1.06 1.06L8 9.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L9.06 8l1.47-1.47a.75.75 0 1 0-1.06-1.06L8 6.94z",clipRule:"evenodd"}))},74321:(e,s,t)=>{t.d(s,{S:()=>c});var n=t(59284),a=t(64222),l=t(46898);function i(e){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 17",width:"16",height:"16",fill:"currentColor"},e),n.createElement("path",{d:"M4 7h9v3H4z"}))}function o(e){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 10",width:"16",height:"16",fill:"currentColor"},e),n.createElement("path",{d:"M.49 5.385l1.644-1.644 4.385 4.385L4.874 9.77.49 5.385zm4.384 1.096L10.356 1 12 2.644 6.519 8.126 4.874 6.48v.001z"}))}const r=(0,t(69220).om)("checkbox"),c=n.forwardRef((function(e,s){const{size:t="m",indeterminate:c,disabled:d=!1,content:u,children:h,title:v,style:m,className:p,qa:x}=e,{checked:f,inputProps:g}=(0,a.v)(e),b=u||h,y=n.createElement("span",{className:r("indicator")},n.createElement("span",{className:r("icon"),"aria-hidden":!0},c?n.createElement(i,{className:r("icon-svg",{type:"dash"})}):n.createElement(o,{className:r("icon-svg",{type:"tick"})})),n.createElement("input",Object.assign({},g,{className:r("control")})),n.createElement("span",{className:r("outline")}));return n.createElement(l.m,{ref:s,title:v,style:m,size:t,disabled:d,className:r({size:t,disabled:d,indeterminate:c,checked:f},p),qa:x,control:y},b)}))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/535.688ceefb.chunk.js b/ydb/core/viewer/monitoring/static/js/535.688ceefb.chunk.js deleted file mode 100644 index 9fe7e34226..0000000000 --- a/ydb/core/viewer/monitoring/static/js/535.688ceefb.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[535],{90053:(e,t,a)=>{a.d(t,{E:()=>v});var n=a(8873),l=a(84476),s=a(24555),i=a(21334),o=a(77506),r=a(90182),d=a(48372);const c=JSON.parse('{"None":"None","15 sec":"15 sec","1 min":"1 min","2 min":"2 min","5 min":"5 min","Refresh":"Refresh"}'),u=(0,d.g4)("ydb-diagnostics-autorefresh-control",{en:c});var h=a(60712);const m=(0,o.cn)("auto-refresh-control");function v({className:e,onManualRefresh:t}){const a=(0,r.YQ)(),[o,d]=(0,r.Nt)();return(0,h.jsxs)("div",{className:m(null,e),children:[(0,h.jsx)(l.$,{view:"flat-secondary",onClick:()=>{a(i.F.util.invalidateTags(["All"])),null===t||void 0===t||t()},extraProps:{"aria-label":u("Refresh")},children:(0,h.jsx)(l.$.Icon,{children:(0,h.jsx)(n.A,{})})}),(0,h.jsxs)(s.l,{value:[String(o)],onUpdate:e=>{d(Number(e))},width:85,qa:"ydb-autorefresh-select",children:[(0,h.jsx)(s.l.Option,{value:"0",children:u("None")}),(0,h.jsx)(s.l.Option,{value:"15000",children:u("15 sec")}),(0,h.jsx)(s.l.Option,{value:"60000",children:u("1 min")}),(0,h.jsx)(s.l.Option,{value:"120000",children:u("2 min")}),(0,h.jsx)(s.l.Option,{value:"300000",children:u("5 min")})]})]})}},22983:(e,t,a)=>{a.d(t,{B:()=>d});var n=a(59284),l=a(84476),s=a(84375),i=a(55974),o=a(42829),r=a(60712);function d({children:e,onConfirmAction:t,onConfirmActionSuccess:a,dialogHeader:d,dialogText:c,retryButtonText:u,buttonDisabled:h=!1,buttonView:m="action",buttonTitle:v,buttonClassName:p,withPopover:b=!1,popoverContent:g,popoverPlacement:x="right",popoverDisabled:f=!0}){const[y,j]=n.useState(!1),[w,N]=n.useState(!1),[S,T]=n.useState(!1),I=()=>(0,r.jsx)(l.$,{onClick:()=>j(!0),view:m,disabled:h,loading:!h&&w,className:p,title:v,children:e});return(0,r.jsxs)(n.Fragment,{children:[(0,r.jsx)(i.g,{visible:y,header:d,text:c,withRetry:S,retryButtonText:u,onConfirm:async e=>{N(!0),await t(e)},onConfirmActionSuccess:async()=>{T(!1);try{await(null===a||void 0===a?void 0:a())}finally{N(!1)}},onConfirmActionError:e=>{T((0,o.D)(e)),N(!1)},onClose:()=>{j(!1)}}),b?(0,r.jsx)(s.A,{content:g,placement:x,disabled:f,children:I()}):I()]})}},55974:(e,t,a)=>{a.d(t,{g:()=>g});var n=a(59284),l=a(18677),s=a(71153),i=a(74321),o=a(2198),r=a(99991),d=a(89954),c=a(77506),u=a(48372);const h=JSON.parse('{"default-error":"Something went wrong, action cannot be completed","no-rights-error":"You don\'t have enough rights to complete the operation","button-confirm":"Confirm","button-retry":"Retry","button-cancel":"Cancel","button-close":"Close","checkbox-text":"I understand what I\'m doing"}'),m=(0,u.g4)("ydb-critical-action-dialog",{en:h});var v=a(60712);const p=(0,c.cn)("ydb-critical-dialog"),b=e=>e.data&&"issues"in e.data&&e.data.issues?(0,v.jsx)(d.O,{hideSeverity:!0,data:e.data}):403===e.status?m("no-rights-error"):e.statusText?e.statusText:m("default-error");function g({visible:e,header:t,text:a,withRetry:d,retryButtonText:c,withCheckBox:u,onClose:h,onConfirm:g,onConfirmActionSuccess:x,onConfirmActionError:f}){const[y,j]=n.useState(!1),[w,N]=n.useState(),[S,T]=n.useState(!1),I=async e=>(j(!0),g(e).then((()=>{x(),h()})).catch((e=>{f(e),N(e)})).finally((()=>{j(!1)})));return(0,v.jsx)(o.l,{open:e,hasCloseButton:!1,className:p(),size:"s",onClose:h,onTransitionExited:()=>{N(void 0),T(!1)},children:w?(0,v.jsxs)(n.Fragment,{children:[(0,v.jsx)(o.l.Header,{caption:t}),(0,v.jsx)(o.l.Body,{className:p("body"),children:(0,v.jsxs)("div",{className:p("body-message",{error:!0}),children:[(0,v.jsx)("span",{className:p("error-icon"),children:(0,v.jsx)(l.A,{width:"24",height:"22"})}),b(w)]})}),(0,v.jsx)(o.l.Footer,{loading:!1,preset:"default",textButtonApply:d?c||m("button-retry"):void 0,textButtonCancel:m("button-close"),onClickButtonApply:()=>I(!0),onClickButtonCancel:h})]}):(0,v.jsxs)(n.Fragment,{children:[(0,v.jsx)(o.l.Header,{caption:t}),(0,v.jsxs)(o.l.Body,{className:p("body"),children:[(0,v.jsxs)("div",{className:p("body-message",{warning:!0}),children:[(0,v.jsx)("span",{className:p("warning-icon"),children:(0,v.jsx)(r.I,{data:s.A,size:24})}),a]}),u?(0,v.jsx)(i.S,{checked:S,onUpdate:T,children:m("checkbox-text")}):null]}),(0,v.jsx)(o.l.Footer,{loading:y,preset:"default",textButtonApply:m("button-confirm"),textButtonCancel:m("button-cancel"),propsButtonApply:{type:"submit",disabled:u&&!S},onClickButtonCancel:h,onClickButtonApply:()=>I()})]})})}},42829:(e,t,a)=>{a.d(t,{D:()=>n});const n=e=>Boolean(e&&"object"===typeof e&&"retryPossible"in e&&e.retryPossible)},3685:(e,t,a)=>{a.d(t,{$:()=>r});var n=a(54090),l=a(77506),s=a(33775),i=a(60712);const o=(0,l.cn)("ydb-entity-page-title");function r({entityName:e,status:t=n.m.Grey,id:a,className:l}){return(0,i.jsxs)("div",{className:o(null,l),children:[(0,i.jsx)("span",{className:o("prefix"),children:e}),(0,i.jsx)(s.k,{className:o("icon"),status:t,size:"s"}),a]})}},10508:(e,t,a)=>{a.d(t,{c:()=>u});var n=a(67884),l=a(96873),s=a(54090),i=a(77506),o=a(82015),r=a(33775),d=a(60712);const c=(0,i.cn)("entity-status");function u({status:e=s.m.Grey,name:t="",label:a,path:i,iconPath:u,size:h="s",mode:m="color",showStatus:v=!0,externalLink:p=!1,withLeftTrim:b=!1,hasClipboardButton:g,clipboardButtonAlwaysVisible:x=!1,className:f}){const y=()=>v?(0,d.jsx)(r.k,{className:c("icon"),status:e,size:h,mode:m}):null;return(0,d.jsxs)("div",{className:c(null,f),children:[u?(j=u,(0,d.jsx)(n.N,{target:"_blank",href:j,children:y()})):y(),a&&(0,d.jsx)("span",{title:a,className:c("label",{size:h,state:e.toLowerCase()}),children:a}),(i||t)&&(0,d.jsxs)("div",{className:c("wrapper",{"with-button":g}),children:[(0,d.jsx)("span",{className:c("link",{"with-left-trim":b}),title:t,children:i?p?(0,d.jsx)(n.N,{className:c("name"),href:i,children:t}):(0,d.jsx)(o.E,{className:c("name"),to:i,children:t}):t&&(0,d.jsx)("span",{className:c("name"),children:t})}),g&&(0,d.jsx)("div",{className:c("controls-wrapper",{visible:x}),children:(0,d.jsx)(l.b,{text:t,size:"xs",view:"normal",className:c("clipboard-button",{visible:x})})})]})]});var j}},58389:(e,t,a)=>{a.d(t,{B:()=>u});var n=a(87184),l=a(77506),s=a(90053),i=a(70043),o=a(60712);const r=(0,l.cn)("ydb-page-meta"),d="\xa0\xa0\xb7\xa0\xa0";function c({items:e,loading:t}){return(0,o.jsx)("div",{className:r("info"),children:t?(0,o.jsx)(i.E,{className:r("skeleton")}):e.filter((e=>Boolean(e))).join(d)})}function u({className:e,...t}){return(0,o.jsxs)(n.s,{gap:1,alignItems:"center",justifyContent:"space-between",className:r(null,e),children:[(0,o.jsx)(c,{...t}),(0,o.jsx)(s.E,{})]})}},17594:(e,t,a)=>{a.d(t,{l:()=>d});var n=a(69024),l=a(4557),s=a(77506),i=a(16819),o=a(60712);const r=(0,s.cn)("ydb-resizeable-data-table");function d({columnsWidthLSKey:e,columns:t,settings:a,wrapperClassName:s,...d}){const[c,u]=(0,i.a)(e),h=(0,n.j)(t,c),m={...a,defaultResizeable:!0};return(0,o.jsx)("div",{className:r(null,s),children:(0,o.jsx)(l.Ay,{theme:"yandex-cloud",columns:h,onResize:u,settings:m,...d})})}},70043:(e,t,a)=>{a.d(t,{E:()=>i});var n=a(89169),l=a(66781),s=a(60712);const i=({delay:e=600,className:t})=>{const[a]=(0,l.y)(e);return a?(0,s.jsx)(n.E,{className:t}):null}},33775:(e,t,a)=>{a.d(t,{k:()=>h});var n=a(45720),l=a(16929),s=a(71153),i=a(99991),o=a(54090),r=a(77506),d=a(60712);const c=(0,r.cn)("ydb-status-icon"),u={[o.m.Blue]:n.A,[o.m.Yellow]:l.A,[o.m.Orange]:s.A,[o.m.Red]:l.A};function h({status:e=o.m.Grey,size:t="s",mode:a="color",className:n}){const l={state:e.toLowerCase(),size:t};return"icons"===a&&e in u?(0,d.jsx)(i.I,{className:c("status-icon",l,n),data:u[e]}):(0,d.jsx)("div",{className:c("status-color",l,n)})}},79737:(e,t,a)=>{a.d(t,{A:()=>o,X:()=>r});var n=a(5874),l=a(77506),s=a(60712);const i=(0,l.cn)("ydb-table");function o({children:e,className:t}){return(0,s.jsx)("div",{className:i("table-header-content",t),children:e})}function r({className:e,width:t,wrapperClassName:a,...l}){return(0,s.jsx)("div",{className:i(null,a),children:(0,s.jsx)(n.W,{headerCellClassName:({column:e})=>{var t;const a=null===(t=e.columnDef.meta)||void 0===t?void 0:t.align;return i("table-header-cell",{align:a})},cellClassName:e=>{var t,a;const n=null===e||void 0===e||null===(t=e.column.columnDef.meta)||void 0===t?void 0:t.align,l=null===e||void 0===e||null===(a=e.column.columnDef.meta)||void 0===a?void 0:a.verticalAlign;return i("table-cell",{align:n,"vertical-align":l})},className:i("table",{width:t},e),...l})})}},27775:(e,t,a)=>{a.d(t,{i:()=>i});var n=a(47665),l=a(58267),s=a(60712);function i({state:e}){return(0,s.jsx)(n.J,{theme:(0,l._)(e),children:e})}},47584:(e,t,a)=>{a.r(t),a.d(t,{Tablet:()=>be});var n=a(59284),l=a(87184),s=a(23871),i=a(44992),o=a(61750),r=a(10755),d=a(67087),c=a(370),u=a(7889),h=a(3685),m=a(44508),v=a(44294),p=a(98167),b=a(58389),g=a(92459),x=a(40174),f=a(21545),y=a(54090),j=a(77506),w=a(76086),N=a(90182),S=a(12888),T=a(76938),I=a(66528);const _=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",d:"M13.756 10.164c1.665-.962 1.665-3.366 0-4.328L5.251.919C3.584-.045 1.5 1.158 1.5 3.083v9.834c0 1.925 2.084 3.128 3.751 2.164z"}));var C=a(99991),A=a(22983),k=a(6354),D=a(48372);const E=JSON.parse('{"tablet.header":"Tablet","tablet.meta-database":"Database","tablet.meta-follower":"Follower","controls.kill":"Restart","controls.stop":"Stop","controls.resume":"Resume","controls.kill-not-allowed":"You don\'t have enough rights to restart tablet","controls.stop-not-allowed":"You don\'t have enough rights to stop tablet","controls.resume-not-allowed":"You don\'t have enough rights to resume tablet","dialog.kill-header":"Restart tablet","dialog.stop-header":"Stop tablet","dialog.resume-header":"Resume tablet","dialog.kill-text":"The tablet will be restarted. Do you want to proceed?","dialog.stop-text":"The tablet will be stopped. Do you want to proceed?","dialog.resume-text":"The tablet will be resumed. Do you want to proceed?","emptyState":"The tablet was not found","label_tablet-history":"Tablets","label_tablet-channels":"Storage"}'),R=(0,D.g4)("ydb-tablet-page",{en:E});function B(e){return Boolean(e&&"0"!==e)}var F=a(60712);const z=({tablet:e})=>{const{TabletId:t,HiveId:a}=e,s=(0,S.X)(),[i]=f.X.useKillTabletMutation(),[o]=f.X.useStopTabletMutation(),[r]=f.X.useResumeTabletMutation();if(!t)return null;const d=B(a),c=e.State===k.r.Stopped,u=e.State!==k.r.Stopped&&e.State!==k.r.Dead,h=e.State===k.r.Stopped||e.State===k.r.Deleted;return(0,F.jsxs)(l.s,{gap:2,wrap:"nowrap",children:[(0,F.jsxs)(A.B,{dialogHeader:R("dialog.kill-header"),dialogText:R("dialog.kill-text"),onConfirmAction:()=>i({id:t}).unwrap(),buttonDisabled:c||!s,withPopover:!0,buttonView:"normal",popoverContent:R("controls.kill-not-allowed"),popoverPlacement:"bottom",popoverDisabled:s,children:[(0,F.jsx)(C.I,{data:T.A}),R("controls.kill")]}),d&&(0,F.jsxs)(n.Fragment,{children:[(0,F.jsxs)(A.B,{dialogHeader:R("dialog.stop-header"),dialogText:R("dialog.stop-text"),onConfirmAction:()=>o({id:t,hiveId:a}).unwrap(),buttonDisabled:h||!s,withPopover:!0,buttonView:"normal",popoverContent:R("controls.stop-not-allowed"),popoverPlacement:"bottom",popoverDisabled:s,children:[(0,F.jsx)(C.I,{data:I.A}),R("controls.stop")]}),(0,F.jsxs)(A.B,{dialogHeader:R("dialog.resume-header"),dialogText:R("dialog.resume-text"),onConfirmAction:()=>r({id:t,hiveId:a}).unwrap(),buttonDisabled:u||!s,withPopover:!0,buttonView:"normal",popoverContent:R("controls.resume-not-allowed"),popoverPlacement:"bottom",popoverDisabled:s,children:[(0,F.jsx)(C.I,{data:_}),R("controls.resume")]})]})]})};var O=a(52905),P=a(60073),G=a(25196),L=a(27775),H=a(41826),q=a(31684),M=a(29819);const $=JSON.parse('{"field_scheme-shard":"SchemeShard","field_follower":"Follower","field_generation":"Generation","field_hive":"HiveId","field_state":"State","field_uptime":"Uptime","field_node":"Node","field_links":"Links","field_developer-ui-app":"App","field_developer-ui-counters":"Counters","field_developer-ui-executor":"Executor DB internals","field_developer-ui-state":"State Storage","title_info":"Info","title_links":"Links"}'),Y=(0,D.g4)("ydb-tablet-info",{en:$}),K=(0,j.cn)("ydb-tablet-info"),V=({tablet:e})=>{const t=(0,S.X)(),{ChangeTime:a,Generation:n,FollowerId:s,NodeId:i,HiveId:o,State:r,TenantId:{SchemeShard:d}={},TabletId:c}=e,u=B(o),h=r===k.r.Active,m=[];u&&m.push({label:Y("field_hive"),value:(0,F.jsx)(O.N_,{to:(0,g.DM)(o),className:K("link"),children:o})}),d&&m.push({label:Y("field_scheme-shard"),value:(0,F.jsx)(O.N_,{to:(0,g.DM)(d),className:K("link"),children:d})}),m.push({label:Y("field_state"),value:(0,F.jsx)(L.i,{state:r})}),h&&m.push({label:Y("field_uptime"),value:(0,F.jsx)(H.H,{ChangeTime:a})}),m.push({label:Y("field_generation"),value:n},{label:Y("field_node"),value:(0,F.jsx)(O.N_,{className:K("link"),to:(0,M.vI)(String(i)),children:i})}),s&&m.push({label:Y("field_follower"),value:s});return(0,F.jsxs)(l.s,{gap:10,wrap:"nowrap",children:[(0,F.jsxs)("div",{children:[(0,F.jsx)("div",{className:K("section-title"),children:Y("title_info")}),(0,F.jsx)(P.z_,{info:m})]}),t&&c?(0,F.jsxs)("div",{children:[(0,F.jsx)("div",{className:K("section-title"),children:Y("title_links")}),(0,F.jsxs)(l.s,{direction:"column",gap:3,children:[(0,F.jsx)(G.K,{title:Y("field_developer-ui-app"),url:(0,q._t)(c,"app")}),(0,F.jsx)(G.K,{title:Y("field_developer-ui-counters"),url:(0,q._t)(c,"counters")}),(0,F.jsx)(G.K,{title:Y("field_developer-ui-executor"),url:(0,q._t)(c,"executorInternals")}),(0,F.jsx)(G.K,{title:Y("field_developer-ui-state"),url:(0,q._t)(c,void 0,"SsId")})]})]}):null]})};var X=a(36590),Q=a(79737),J=a(84476),W=a(33705),U=a(56839);const Z=JSON.parse('{"label_channel-index":"Channel","label_storage-pool":"Storage Pool Name","label_group-id":"Group ID","label_generation":"From generation","label_timestamp":"Timestamp"}'),ee=(0,D.g4)("ydb-tablet-storage-info",{en:Z}),te=(0,j.cn)("ydb-tablet-storage-info");function ae(e,t){const a=e.getValue(),n="function"===typeof t?t(a):a;return(0,F.jsx)("div",{className:te("metrics-cell"),children:n})}function ne({row:e,name:t,hasExpand:a}){const n=e.getCanExpand();return(0,F.jsxs)(l.s,{gap:1,alignItems:"flex-start",className:te("name-wrapper"),children:[n&&(0,F.jsx)(J.$,{view:"flat",size:"xs",onClick:e.getToggleExpandedHandler(),children:(0,F.jsx)(J.$.Icon,{children:(0,F.jsx)(W.I,{direction:e.getIsExpanded()?"bottom":"right",size:14})})}),(0,F.jsx)("div",{className:te("name-content",{"no-control":a&&!n}),children:t})]})}function le({data:e}){const[t,a]=n.useState({}),l=n.useMemo((()=>function(e){var t;if(!e)return[];const{BoundChannels:a,TabletStorageInfo:n={}}=e,l=null!==(t=n.Channels)&&void 0!==t?t:[],s=[];for(const o of l){var i;const e=o.Channel,t=o.History;if(!e||!t||!t.length)continue;const n=[...t];n.reverse();const[l,...r]=n,d={...l,storagePoolName:null===a||void 0===a||null===(i=a[e])||void 0===i?void 0:i.StoragePoolName,channelIndex:e,children:r};s.push(d)}return s}(e)),[e]),s=n.useMemo((()=>l.some((e=>{var t;return null===(t=e.children)||void 0===t?void 0:t.length}))),[l]),i=n.useMemo((()=>{return e=s,[{accessorKey:"channelIndex",header:()=>(0,F.jsx)(Q.A,{children:ee("label_channel-index")}),size:50,cell:ae,meta:{align:"right"}},{accessorKey:"storagePoolName",header:()=>(0,F.jsx)(Q.A,{children:ee("label_storage-pool")}),size:200,cell:ae},{accessorKey:"GroupID",header:()=>(0,F.jsx)(Q.A,{className:e?te("with-padding"):void 0,children:ee("label_group-id")}),size:100,cell:t=>(0,F.jsx)(ne,{row:t.row,name:t.getValue(),hasExpand:e})},{accessorKey:"FromGeneration",header:()=>(0,F.jsx)(Q.A,{children:ee("label_generation")}),size:100,cell:ae,meta:{align:"right"}},{accessorKey:"Timestamp",header:()=>(0,F.jsx)(Q.A,{children:ee("label_timestamp")}),size:200,cell:e=>ae(e,U.Ey),meta:{align:"right"}}];var e}),[s]),o=(0,X.K)({columns:i,data:l,getSubRows:e=>e.children,enableExpanding:!0,onExpandedChange:a,state:{expanded:t}});return(0,F.jsx)(Q.X,{table:o})}var se=a(4557),ie=a(10508),oe=a(82015),re=a(17594);const de=[{name:"Generation",align:se.Ay.RIGHT,render:({row:e})=>e.generation},{name:"Change time",align:se.Ay.RIGHT,sortable:!1,render:({row:e})=>(0,F.jsx)(H.H,{ChangeTime:e.changeTime}),width:120},{name:"State",sortable:!1,render:({row:e})=>(0,F.jsx)(L.i,{state:e.state})},{name:"Follower ID",sortable:!1,render:({row:e})=>e.leader?"leader":e.followerId},{name:"Node ID",align:se.Ay.RIGHT,sortable:!1,render:({row:e})=>(0,F.jsx)(oe.E,{to:(0,M.vI)(e.nodeId),children:e.nodeId})},{name:"Node FQDN",sortable:!1,width:300,render:({row:e})=>e.fqdn?(0,F.jsx)(ie.c,{name:e.fqdn,showStatus:!1,hasClipboardButton:!0}):(0,F.jsx)("span",{children:"\u2014"})}],ce={displayIndices:!1},ue=({history:e})=>(0,F.jsx)(re.l,{columnsWidthLSKey:"tabletTableColumnsWidth",data:e,columns:de,settings:ce,initialSortOrder:{columnId:"Generation",order:se.Ay.DESCENDING}}),he=(0,j.cn)("ydb-tablet-page"),me={history:"history",channels:"channels"},ve=[{id:me.history,get title(){return R("label_tablet-history")}},{id:me.channels,get title(){return R("label_tablet-channels")},isAdvanced:!0}],pe=c.z.nativeEnum(me).catch(me.history);function be(){var e;const t=(0,N.YQ)(),{id:a}=(0,r.g)(),[{database:s,clusterName:c}]=(0,d.useQueryParams)(g.qc),[u]=(0,N.Nt)(),{currentData:h,isFetching:v,error:y}=f.X.useGetTabletQuery({id:a,database:null!==s&&void 0!==s?s:void 0},{pollingInterval:u}),j=v&&void 0===h,{data:S={},history:T=[]}=h||{},{currentData:I}=f.X.useGetTabletDescribeQuery(S.TenantId?{tenantId:S.TenantId}:i.hT),_=null!==(e=I||s)&&void 0!==e?e:void 0,C=S.Type;n.useEffect((()=>{t((0,x.g)("tablet",{tenantName:null!==s&&void 0!==s?s:void 0,tabletId:a,tabletType:C}))}),[t,s,a,C]);const{Leader:A,Type:k}=S,D=[];return _&&D.push(`${R("tablet.meta-database")}: ${_}`),k&&D.push(k),!1===A&&D.push(R("tablet.meta-follower").toUpperCase()),(0,F.jsxs)(l.s,{gap:5,direction:"column",className:he(),children:[(0,F.jsx)(o.mg,{children:(0,F.jsx)("title",{children:`${a} \u2014 ${R("tablet.header")} \u2014 ${_||c||w.QM}`})}),(0,F.jsx)(b.B,{items:D}),(0,F.jsxs)(p.r,{loading:j,size:"l",children:[y?(0,F.jsx)(m.o,{error:y}):null,h?(0,F.jsx)(ge,{id:a,tablet:S,history:T}):null]})]})}function ge({id:e,tablet:t,history:a}){const n=!Object.keys(t).length,{Overall:s,HiveId:i}=t;return(0,F.jsxs)(u.q,{title:R("emptyState"),className:he("placeholder"),isEmpty:n,children:[(0,F.jsxs)(l.s,{gap:5,direction:"column",children:[(0,F.jsx)(h.$,{entityName:R("tablet.header"),status:null!==s&&void 0!==s?s:y.m.Grey,id:e}),(0,F.jsx)(z,{tablet:t}),(0,F.jsx)(V,{tablet:t})]}),(0,F.jsx)(xe,{id:e,hiveId:i,history:a})]})}function xe({id:e,hiveId:t,history:a}){var i;const[{activeTab:o,...r},c]=(0,d.useQueryParams)(g.qc),u=!(0,S.X)()||!B(t);let h=pe.parse(o);return u&&null!==(i=ve.find((e=>e.id===h)))&&void 0!==i&&i.isAdvanced&&(h=me.history),n.useEffect((()=>{o!==h&&c({activeTab:h},"replaceIn")}),[o,h,c]),(0,F.jsxs)(l.s,{gap:5,direction:"column",children:[(0,F.jsx)("div",{children:(0,F.jsx)(s.t,{size:"l",items:ve.filter((({isAdvanced:e})=>!e||!u)),activeTab:h,wrapTo:(t,a)=>{const n=(0,g.DM)(e,{...r,activeTab:t.id});return(0,F.jsx)(v.E,{to:n,children:a},t.id)}})}),"history"===h?(0,F.jsx)(ue,{history:a}):null,"channels"!==h||u?null:(0,F.jsx)(fe,{id:e,hiveId:t})]})}function fe({id:e,hiveId:t}){const[a]=(0,N.Nt)(),{currentData:n,error:l,isFetching:s}=f.X.useGetAdvancedTableInfoQuery({id:e,hiveId:t},{pollingInterval:a}),i=s&&void 0===n;return(0,F.jsxs)(p.r,{loading:i,size:"l",children:[l?(0,F.jsx)(m.o,{error:l}):null,n?(0,F.jsx)(le,{data:n}):null]})}},89954:(e,t,a)=>{a.d(t,{O:()=>I});var n=a(59284),l=a(45720),s=a(16929),i=a(71153),o=a(18677),r=a(84476),d=a(33705),c=a(67884),u=a(99991),h=a(77506),m=a(48372);const v=JSON.parse('{"default_collapse_label":"Show less","default_expand_label":"Show more","chars_count":[" ({{count}} symbol)"," ({{count}} symbols)"," ({{count}} symbols)"," ({{count}} symbols)"]}'),p=JSON.parse('{"default_collapse_label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043c\u0435\u043d\u044c\u0448\u0435","default_expand_label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0435\u0449\u0451","chars_count":[" ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u0430)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432)"]}'),b=(0,m.g4)("ydb-shorty-string",{ru:p,en:v});var g=a(60712);const x=(0,h.cn)("kv-shorty-string");function f({value:e="",limit:t=200,strict:a=!1,displayLength:l=!0,render:s=e=>e,onToggle:i,expandLabel:o=b("default_expand_label"),collapseLabel:r=b("default_collapse_label")}){const[d,u]=n.useState(!1),h=(d?r:o)+(l&&!d?b("chars_count",{count:e.length}):""),m=e.length>t+(a?0:h.length),v=d||!m?e:e.slice(0,t-4)+"\xa0...";return(0,g.jsxs)("div",{className:x(),children:[s(v),m?(0,g.jsx)(c.N,{className:x("toggle"),href:"#",onClick:e=>{e.stopPropagation(),e.preventDefault(),u((e=>!e)),null===i||void 0===i||i()},children:h}):null]})}var y=a(41650);const j=["S_FATAL","S_ERROR","S_WARNING","S_INFO"];function w(e){return function(e){return!!e&&void 0!==j[e]}(e)?j[e]:"S_INFO"}const N=(0,h.cn)("kv-result-issues"),S=(0,h.cn)("kv-issues"),T=(0,h.cn)("kv-issue");function I({data:e,hideSeverity:t}){const[a,l]=n.useState(!1),s="string"===typeof e||null===e||void 0===e?void 0:e.issues,i=Array.isArray(s)&&s.length>0;return(0,g.jsxs)("div",{className:N(),children:[(0,g.jsxs)("div",{className:N("error-message"),children:[(()=>{let a;if("string"===typeof e)a=e;else{var l,s;const i=w(null===e||void 0===e||null===(l=e.error)||void 0===l?void 0:l.severity);a=(0,g.jsxs)(n.Fragment,{children:[t?null:(0,g.jsxs)(n.Fragment,{children:[(0,g.jsx)(R,{severity:i})," "]}),(0,g.jsx)("span",{className:N("error-message-text"),children:null===e||void 0===e||null===(s=e.error)||void 0===s?void 0:s.message})]})}return a})(),i&&(0,g.jsx)(r.$,{view:"normal",onClick:()=>l(!a),children:a?"Hide details":"Show details"})]}),i&&a&&(0,g.jsx)(_,{hideSeverity:t,issues:s})]})}function _({issues:e,hideSeverity:t}){const a=null===e||void 0===e?void 0:e.reduce(((e,t)=>{var a;const n=null!==(a=t.severity)&&void 0!==a?a:10;return Math.min(e,n)}),10);return(0,g.jsx)("div",{className:S(null),children:null===e||void 0===e?void 0:e.map(((e,n)=>(0,g.jsx)(C,{hideSeverity:t,issue:e,expanded:e===a},n)))})}function C({issue:e,hideSeverity:t,level:a=0}){const[l,s]=n.useState(!0),i=w(e.severity),o=e.issues,c=Array.isArray(o)&&o.length>0,u=l?"bottom":"right";return(0,g.jsxs)("div",{className:T({leaf:!c,"has-issues":c}),children:[(0,g.jsxs)("div",{className:T("line"),children:[c&&(0,g.jsx)(r.$,{view:"flat-secondary",onClick:()=>s(!l),className:T("arrow-toggle"),children:(0,g.jsx)(d.I,{direction:u,size:16})}),t?null:(0,g.jsx)(R,{severity:i}),(0,g.jsx)(A,{issue:e}),e.issue_code?(0,g.jsxs)("span",{className:T("code"),children:["Code: ",e.issue_code]}):null]}),c&&l&&(0,g.jsx)("div",{className:T("issues"),children:(0,g.jsx)(k,{issues:o,level:a+1,expanded:l})})]})}function A({issue:e}){var t;const a=function(e){const{position:t}=e;if("object"!==typeof t||null===t||!(0,y.kf)(t.row))return"";const{row:a,column:n}=t;return(0,y.kf)(n)?`${a}:${n}`:`line ${a}`}(e),n=window.ydbEditor,l=()=>(0,g.jsxs)("span",{className:T("message"),children:[a&&(0,g.jsx)("span",{className:T("place-text"),title:"Position",children:a}),(0,g.jsx)("div",{className:T("message-text"),children:(0,g.jsx)(f,{value:e.message,expandLabel:"Show full message"})})]}),{row:s,column:i}=null!==(t=e.position)&&void 0!==t?t:{};if(!((0,y.kf)(s)&&n))return l();return(0,g.jsx)(c.N,{href:"#",extraProps:{draggable:!1},onClick:()=>{const e={lineNumber:s,column:null!==i&&void 0!==i?i:0};n.setPosition(e),n.revealPositionInCenterIfOutsideViewport(e),n.focus()},view:"primary",children:l()})}function k(e){const{issues:t,level:a,expanded:n}=e;return(0,g.jsx)("div",{className:T("list"),children:t.map(((e,t)=>(0,g.jsx)(C,{issue:e,level:a,expanded:n},t)))})}const D={S_INFO:l.A,S_WARNING:s.A,S_ERROR:i.A,S_FATAL:o.A},E=(0,h.cn)("yql-issue-severity");function R({severity:e}){const t=e.slice(2).toLowerCase();return(0,g.jsxs)("span",{className:E({severity:t}),children:[(0,g.jsx)(u.I,{className:E("icon"),data:D[e]}),(0,g.jsx)("span",{className:E("title"),children:t})]})}},21545:(e,t,a)=>{a.d(t,{X:()=>l});var n=a(78034);const l=a(21334).F.injectEndpoints({endpoints:e=>({getTablet:e.query({queryFn:async({id:e,database:t},{signal:a})=>{try{const[l,s,i]=await Promise.all([window.api.viewer.getTablet({id:e,database:t},{signal:a}),window.api.viewer.getTabletHistory({id:e,database:t},{signal:a}),window.api.viewer.getNodesList({signal:a})]),o=(0,n.nN)(i),r=Object.keys(s).reduce(((e,t)=>{var a;const n=null===(a=s[t])||void 0===a?void 0:a.TabletStateInfo;if(n&&n.length){var l;const a=n.find((e=>e.Leader))||n[0],{ChangeTime:s,Generation:i,State:r,Leader:d,FollowerId:c}=a,u=o&&t?null===(l=o.get(Number(t)))||void 0===l?void 0:l.Host:void 0;"Dead"!==r&&e.push({nodeId:t,generation:i,changeTime:s,state:r,leader:d,followerId:c,fqdn:u})}return e}),[]),{TabletStateInfo:d=[]}=l,[c={}]=d,{TabletId:u}=c;return{data:{id:u,data:c,history:r}}}catch(l){return{error:l}}},providesTags:(e,t,a)=>["All",{type:"Tablet",id:a.id}]}),getTabletDescribe:e.query({queryFn:async({tenantId:e},{signal:t})=>{try{const a=await window.api.viewer.getTabletDescribe(e,{signal:t}),{SchemeShard:n,PathId:l}=e;return{data:(null===a||void 0===a?void 0:a.Path)||`${n}:${l}`}}catch(a){return{error:a}}},providesTags:["All"]}),getAdvancedTableInfo:e.query({queryFn:async({id:e,hiveId:t},{signal:a})=>{try{return{data:await window.api.tablets.getTabletFromHive({id:e,hiveId:t},{signal:a})}}catch(n){return{error:n}}},providesTags:(e,t,a)=>["All",{type:"Tablet",id:a.id}]}),killTablet:e.mutation({queryFn:async({id:e})=>{try{return{data:await window.api.tablets.killTablet(e)}}catch(t){return{error:t}}},invalidatesTags:(e,t,a)=>[{type:"Tablet",id:a.id},{type:"Tablet",id:"LIST"}]}),stopTablet:e.mutation({queryFn:async({id:e,hiveId:t})=>{try{return{data:await window.api.tablets.stopTablet(e,t)}}catch(a){return{error:a}}},invalidatesTags:(e,t,a)=>[{type:"Tablet",id:a.id},{type:"Tablet",id:"LIST"}]}),resumeTablet:e.mutation({queryFn:async({id:e,hiveId:t})=>{try{return{data:await window.api.tablets.resumeTablet(e,t)}}catch(a){return{error:a}}},invalidatesTags:(e,t,a)=>[{type:"Tablet",id:a.id},{type:"Tablet",id:"LIST"}]})}),overrideExisting:"throw"})},16819:(e,t,a)=>{a.d(t,{a:()=>i});var n=a(59284),l=a(69024),s=a(59001);const i=e=>{const t=n.useCallback((()=>e?s.f.readUserSettingsValue(e,{}):{}),[e]),a=n.useCallback((t=>{e&&s.f.setUserSettingsValue(e,t)}),[e]);return(0,l.a)({saveSizes:a,getSizes:t})}},58267:(e,t,a)=>{a.d(t,{P:()=>i,_:()=>o});var n=a(54090),l=a(6354);const s={[l.r.Dead]:n.m.Red,[l.r.Created]:n.m.Yellow,[l.r.ResolveStateStorage]:n.m.Yellow,[l.r.Candidate]:n.m.Yellow,[l.r.BlockBlobStorage]:n.m.Yellow,[l.r.WriteZeroEntry]:n.m.Yellow,[l.r.Restored]:n.m.Yellow,[l.r.Discover]:n.m.Yellow,[l.r.Lock]:n.m.Yellow,[l.r.Stopped]:n.m.Yellow,[l.r.ResolveLeader]:n.m.Yellow,[l.r.RebuildGraph]:n.m.Yellow,[l.r.Deleted]:n.m.Green,[l.r.Active]:n.m.Green},i=e=>{if(!e)return n.m.Grey;return t=e,Object.values(n.m).includes(t)?e:s[e];var t};function o(e){if(!e)return"unknown";switch(e){case l.r.Dead:return"danger";case l.r.Active:case l.r.Deleted:return"success";default:return"warning"}}},16929:(e,t,a)=>{a.d(t,{A:()=>l});var n=a(59284);const l=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0m-6 2.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0M8.75 5a.75.75 0 0 0-1.5 0v2.5a.75.75 0 0 0 1.5 0z",clipRule:"evenodd"}))},45720:(e,t,a)=>{a.d(t,{A:()=>l});var n=a(59284);const l=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m1-9.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0M8 7.75a.75.75 0 0 1 .75.75V11a.75.75 0 0 1-1.5 0V8.5A.75.75 0 0 1 8 7.75",clipRule:"evenodd"}))},71153:(e,t,a)=>{a.d(t,{A:()=>l});var n=a(59284);const l=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.835 2.244c.963-1.665 3.367-1.665 4.33 0l4.916 8.505c.964 1.666-.24 3.751-2.164 3.751H3.083c-1.925 0-3.128-2.085-2.165-3.751zM8 5a.75.75 0 0 1 .75.75v2a.75.75 0 1 1-1.5 0v-2A.75.75 0 0 1 8 5m1 5.75a1 1 0 1 1-2 0 1 1 0 0 1 2 0",clipRule:"evenodd"}))},89169:(e,t,a)=>{a.d(t,{E:()=>s});var n=a(59284);const l=(0,a(69220).om)("skeleton");function s({className:e,style:t,qa:a}){return n.createElement("div",{className:l(null,e),style:t,"data-qa":a})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/5438.179dc201.chunk.js b/ydb/core/viewer/monitoring/static/js/5438.179dc201.chunk.js deleted file mode 100644 index 9375ad80c7..0000000000 --- a/ydb/core/viewer/monitoring/static/js/5438.179dc201.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[5438],{45438:(e,a,r)=>{r.r(a),r.d(a,{ConnectToDBSyntaxHighlighter:()=>x});var n=r(22680),t=r(96873),o=r(96298),l=r(80719),g=r(81571),c=r(46306),s=r(1431),i=r(56421),d=r(29866),p=r(30249),u=r(81243),b=r(62422),y=r(77506),h=r(8300),A=r(63636),m=r(60712);o.A.registerLanguage("bash",l.A),o.A.registerLanguage("cpp",g.A),o.A.registerLanguage("csharp",c.A),o.A.registerLanguage("go",s.A),o.A.registerLanguage("java",i.A),o.A.registerLanguage("javascript",d.A),o.A.registerLanguage("php",p.A),o.A.registerLanguage("python",u.A);const w={...h.XT,'pre[class*="language-"]':{...h.XT['pre[class*="language-"]'],background:b.A['pre[class*="language-"]'].background,scrollbarColor:"var(--g-color-scroll-handle) transparent"},'code[class*="language-"]':{...h.XT['code[class*="language-"]'],whiteSpace:"pre"}},k={...h.BB,'pre[class*="language-"]':{...h.BB['pre[class*="language-"]'],background:"var(--g-color-base-misc-light)",scrollbarColor:"var(--g-color-scroll-handle) transparent"},'code[class*="language-"]':{...h.BB['code[class*="language-"]'],whiteSpace:"pre"}},v=(0,y.cn)("ydb-connect-to-db-syntax-highlighter");function x({text:e,language:a}){const r=(0,n.i)(),l="dark"===r||"dark-hc"===r;return(0,m.jsxs)("div",{className:v("wrapper"),children:[(0,m.jsx)("div",{className:v("sticky-container"),children:(0,m.jsx)(t.b,{view:"flat-secondary",size:"s",className:v("copy"),text:e,children:(0,A.A)("copy")})}),(0,m.jsx)(o.A,{language:a,style:l?w:k,customStyle:{height:"100%"},children:e})]})}},8300:(e,a,r)=>{r.d(a,{BB:()=>l,TL:()=>c,XT:()=>g});var n=r(43733),t=r(32138),o=r(62422);const l={...t.A,'pre[class*="language-"]':{...t.A['pre[class*="language-"]'],background:"transparent",margin:0},'code[class*="language-"]':{...t.A['code[class*="language-"]'],background:"transparent",color:"var(--g-color-text-primary)",whiteSpace:"pre-wrap"},comment:{color:"#969896"},string:{color:"#a31515"},tablepath:{color:"#338186"},function:{color:"#7a3e9d"},udf:{color:"#7a3e9d"},type:{color:"#4d932d"},boolean:{color:"#608b4e"},constant:{color:"#608b4e"},variable:{color:"#001188"}},g={...o.A,'pre[class*="language-"]':{...o.A['pre[class*="language-"]'],background:"transparent",margin:0},'code[class*="language-"]':{...o.A['code[class*="language-"]'],background:"transparent",color:"var(--g-color-text-primary)",whiteSpace:"pre-wrap"},comment:{color:"#969896"},string:{color:"#ce9178"},tablepath:{color:"#338186"},function:{color:"#9e7bb0"},udf:{color:"#9e7bb0"},type:{color:"#6A8759"},boolean:{color:"#608b4e"},constant:{color:"#608b4e"},variable:{color:"#74b0df"}};function c(e){e.languages.yql={comment:[{pattern:/--.*$/m,greedy:!0},{pattern:/\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0}],tablepath:{pattern:/(`[\w/]+`\s*\.\s*)?`[^`]+`/,greedy:!0},string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},{pattern:/@@(?:[^@]|@(?!@))*@@/,greedy:!0}],variable:[{pattern:/\$[a-zA-Z_]\w*/,greedy:!0}],function:{pattern:new RegExp(`\\b(?:${n.XB.join("|")})\\b`,"i"),greedy:!0},keyword:{pattern:new RegExp(`\\b(?:${n.RE.join("|")})\\b`,"i"),greedy:!0},udf:{pattern:/[A-Za-z_]\w*::[A-Za-z_]\w*/,greedy:!0},type:{pattern:new RegExp(`\\b(?:${n.to.join("|")})\\b`,"i"),greedy:!0},boolean:{pattern:/\b(?:true|false|null)\b/i,greedy:!0},number:{pattern:/[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?/i,greedy:!0},operator:{pattern:/[-+*/%<>!=&|^~]+|\b(?:and|or|not|is|like|ilike|rlike|in|between)\b/i,greedy:!0},punctuation:{pattern:/[;[\](){}.,]/,greedy:!0}}}c.displayName="yql",c.aliases=["yql"]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/5438.91fe1c76.chunk.js b/ydb/core/viewer/monitoring/static/js/5438.91fe1c76.chunk.js new file mode 100644 index 0000000000..1a9d0afcef --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/5438.91fe1c76.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[5438],{8300:(e,a,r)=>{r.d(a,{BB:()=>l,TL:()=>c,XT:()=>g});var n=r(43733),t=r(32138),o=r(62422);const l={...t.A,'pre[class*="language-"]':{...t.A['pre[class*="language-"]'],background:"transparent",margin:0},'code[class*="language-"]':{...t.A['code[class*="language-"]'],background:"transparent",color:"var(--g-color-text-primary)",whiteSpace:"pre-wrap"},comment:{color:"#969896"},string:{color:"#a31515"},tablepath:{color:"#338186"},function:{color:"#7a3e9d"},udf:{color:"#7a3e9d"},type:{color:"#4d932d"},boolean:{color:"#608b4e"},constant:{color:"#608b4e"},variable:{color:"#001188"}},g={...o.A,'pre[class*="language-"]':{...o.A['pre[class*="language-"]'],background:"transparent",margin:0},'code[class*="language-"]':{...o.A['code[class*="language-"]'],background:"transparent",color:"var(--g-color-text-primary)",whiteSpace:"pre-wrap"},comment:{color:"#969896"},string:{color:"#ce9178"},tablepath:{color:"#338186"},function:{color:"#9e7bb0"},udf:{color:"#9e7bb0"},type:{color:"#6A8759"},boolean:{color:"#608b4e"},constant:{color:"#608b4e"},variable:{color:"#74b0df"}};function c(e){e.languages.yql={comment:[{pattern:/--.*$/m,greedy:!0},{pattern:/\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0}],tablepath:{pattern:/(`[\w/]+`\s*\.\s*)?`[^`]+`/,greedy:!0},string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},{pattern:/@@(?:[^@]|@(?!@))*@@/,greedy:!0}],variable:[{pattern:/\$[a-zA-Z_]\w*/,greedy:!0}],function:{pattern:new RegExp(`\\b(?:${n.XB.join("|")})\\b`,"i"),greedy:!0},keyword:{pattern:new RegExp(`\\b(?:${n.RE.join("|")})\\b`,"i"),greedy:!0},udf:{pattern:/[A-Za-z_]\w*::[A-Za-z_]\w*/,greedy:!0},type:{pattern:new RegExp(`\\b(?:${n.to.join("|")})\\b`,"i"),greedy:!0},boolean:{pattern:/\b(?:true|false|null)\b/i,greedy:!0},number:{pattern:/[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?/i,greedy:!0},operator:{pattern:/[-+*/%<>!=&|^~]+|\b(?:and|or|not|is|like|ilike|rlike|in|between)\b/i,greedy:!0},punctuation:{pattern:/[;[\](){}.,]/,greedy:!0}}}c.displayName="yql",c.aliases=["yql"]},45438:(e,a,r)=>{r.r(a),r.d(a,{ConnectToDBSyntaxHighlighter:()=>x});var n=r(22680),t=r(96873),o=r(96298),l=r(80719),g=r(81571),c=r(46306),s=r(1431),i=r(56421),d=r(29866),p=r(30249),u=r(81243),b=r(62422),y=r(77506),h=r(8300),A=r(63636),m=r(60712);o.A.registerLanguage("bash",l.A),o.A.registerLanguage("cpp",g.A),o.A.registerLanguage("csharp",c.A),o.A.registerLanguage("go",s.A),o.A.registerLanguage("java",i.A),o.A.registerLanguage("javascript",d.A),o.A.registerLanguage("php",p.A),o.A.registerLanguage("python",u.A);const w={...h.XT,'pre[class*="language-"]':{...h.XT['pre[class*="language-"]'],background:b.A['pre[class*="language-"]'].background,scrollbarColor:"var(--g-color-scroll-handle) transparent"},'code[class*="language-"]':{...h.XT['code[class*="language-"]'],whiteSpace:"pre"}},k={...h.BB,'pre[class*="language-"]':{...h.BB['pre[class*="language-"]'],background:"var(--g-color-base-misc-light)",scrollbarColor:"var(--g-color-scroll-handle) transparent"},'code[class*="language-"]':{...h.BB['code[class*="language-"]'],whiteSpace:"pre"}},v=(0,y.cn)("ydb-connect-to-db-syntax-highlighter");function x({text:e,language:a}){const r=(0,n.i)(),l="dark"===r||"dark-hc"===r;return(0,m.jsxs)("div",{className:v("wrapper"),children:[(0,m.jsx)("div",{className:v("sticky-container"),children:(0,m.jsx)(t.b,{view:"flat-secondary",size:"s",className:v("copy"),text:e,children:(0,A.A)("copy")})}),(0,m.jsx)(o.A,{language:a,style:l?w:k,customStyle:{height:"100%"},children:e})]})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/5652.40b9a7d3.chunk.js b/ydb/core/viewer/monitoring/static/js/5652.40b9a7d3.chunk.js new file mode 100644 index 0000000000..735fd7b4e9 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/5652.40b9a7d3.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[5652],{5252:(e,s,n)=>{n.r(s),n.d(s,{Cluster:()=>Os});var t=n(59284),l=n(89169),r=n(23871),a=n(61750),o=n(10755),i=n(67087),d=n(90053),c=n(10508),u=n(44294),v=n(92459),h=n(67028),p=n(67157),m=n(40174),g=n(77506),j=n(90182),x=n(66592),N=n(7117),f=n(99936),b=n(88616),y=n(4557),C=n(84476),k=n(28539),w=n(44508),T=n(78524),_=n(48295),S=n(9252),V=n(17594),E=n(95963),O=n(89073),L=n(40336),M=n(63291),D=n(54309),z=n(12888),A=n(71661),G=n(25196),I=n(48372);const P=JSON.parse('{"field_links":"Links","field_monitoring-link":"Monitoring","context_unknown":"unknown database"}'),R=(0,I.g4)("ydb-tenant-name-wrapper",{en:P});var $=n(60712);function B({tenant:e,additionalTenantsProps:s}){var n;const t=(0,z.X)(),l=((e,s)=>{var n,t;if("function"!==typeof(null===s||void 0===s?void 0:s.prepareTenantBackend))return;let l=null!==(n=e.MonitoringEndpoint)&&void 0!==n?n:e.backend;const r=null!==(t=e.NodeIds)&&void 0!==t?t:e.sharedNodeIds;!l&&r&&r.length>0&&(l={NodeId:r[Math.floor(Math.random()*r.length)]});return s.prepareTenantBackend(l)})(e,s),r=Boolean(l),a=null===s||void 0===s||null===(n=s.getMonitoringLink)||void 0===n?void 0:n.call(s,e.Name,e.Type);return(0,$.jsx)(A.s,{disabled:!t||!a,delayClosing:200,content:a?(0,$.jsx)(L.u,{responsive:!0,children:(0,$.jsx)(L.u.Item,{name:R("field_links"),children:(0,$.jsx)(G.K,{title:R("field_monitoring-link"),url:a})})}):null,placement:["top","bottom"],behavior:M.m.Immediate,children:(0,$.jsx)(c.c,{externalLink:r,name:e.Name||R("context_unknown"),withLeftTrim:!0,status:e.Overall,hasClipboardButton:!0,path:(0,D.YL)({database:e.Name,backend:l})})})}var F=n(58351),U=n(88610),W=n(53850),Z=n(23536),q=n.n(Z),Q=n(54090),Y=n(76086),H=n(56674);const J=(0,W.Mz)((e=>e),(e=>H.GJ.endpoints.getTenantsInfo.select({clusterName:e}))),K=(0,W.Mz)((e=>e),((e,s)=>J(s)),(e=>(0,U.CN)(e,Y.Xm)),((e,s,n)=>{var t;const l=null!==(t=s(e).data)&&void 0!==t?t:[];return!n&&l.length>1?l.filter((e=>"Domain"!==e.Type)):l})),X=e=>e.tenants.searchValue,ee=(0,W.Mz)([K,U.yV,X],((e,s,n)=>{let t=((e,s)=>s===U.s$.ALL?e:e.filter((e=>e.Overall&&e.Overall!==Q.m.Green)))(e,s);return t=((e,s)=>e.filter((e=>{const n=new RegExp(q()(s),"i");return n.test(e.Name||"")||n.test(e.controlPlaneName)})))(t,n),t}));var se=n(56839);const ne=(0,g.cn)("tenants"),te=({additionalTenantsProps:e})=>{const s=(0,j.YQ)(),[n]=(0,j.Nt)(),{currentData:l,isFetching:r,error:a}=H.GJ.useGetTenantsInfoQuery({clusterName:F.SL},{pollingInterval:n}),o=r&&void 0===l,i=(0,j.N4)((e=>K(e,F.SL))),d=(0,j.N4)(X),c=(0,j.N4)((e=>ee(e,F.SL))),u=(0,j.N4)(U.yV),v=e=>{s((0,U.$u)(e))},h=e=>{s((0,H.gB)(e))};return(0,$.jsxs)(O.L,{children:[(0,$.jsx)(O.L.Controls,{children:(0,$.jsxs)(t.Fragment,{children:[(0,$.jsx)(E.v,{value:d,onChange:h,placeholder:"Database name",className:ne("search")}),(0,$.jsx)(S.k,{value:u,onChange:v}),(0,$.jsx)(k.T,{total:i.length,current:(null===c||void 0===c?void 0:c.length)||0,label:"Databases",loading:o})]})}),a?(0,$.jsx)(w.o,{error:a}):null,(0,$.jsx)(O.L.Table,{loading:o,children:l?(()=>{const s=[{name:"Name",header:"Database",render:({row:s})=>(0,$.jsx)(B,{tenant:s,additionalTenantsProps:e}),width:440,sortable:!0,defaultOrder:y.Ay.DESCENDING},{name:"controlPlaneName",header:"Name",render:({row:e})=>e.controlPlaneName,width:200,sortable:!0,defaultOrder:y.Ay.DESCENDING},{name:"Type",width:200,resizeMinWidth:150,render:({row:e})=>"Serverless"!==e.Type?e.Type:(0,$.jsxs)("div",{className:ne("type"),children:[(0,$.jsx)("span",{className:ne("type-value"),children:e.Type}),(0,$.jsx)(C.$,{className:ne("type-button"),onClick:()=>h(e.sharedTenantName||""),children:"Show shared"})]})},{name:"State",width:90,render:({row:e})=>e.State?e.State.toLowerCase():"\u2014",customStyle:()=>({textTransform:"capitalize"})},{name:"cpu",header:"CPU",width:80,render:({row:e})=>e.cpu&&e.cpu>1e4?(0,se.iM)(e.cpu):"\u2014",align:y.Ay.RIGHT,defaultOrder:y.Ay.DESCENDING},{name:"memory",header:"Memory",width:120,render:({row:e})=>e.memory?(0,se.vX)(e.memory):"\u2014",align:y.Ay.RIGHT,defaultOrder:y.Ay.DESCENDING},{name:"storage",header:"Storage",width:120,render:({row:e})=>e.storage?(0,se.vX)(e.storage):"\u2014",align:y.Ay.RIGHT,defaultOrder:y.Ay.DESCENDING},{name:"nodesCount",header:"Nodes",width:100,render:({row:e})=>e.nodesCount?(0,se.ZV)(e.nodesCount):"\u2014",align:y.Ay.RIGHT,defaultOrder:y.Ay.DESCENDING},{name:"groupsCount",header:"Groups",width:100,render:({row:e})=>e.groupsCount?(0,se.ZV)(e.groupsCount):"\u2014",align:y.Ay.RIGHT,defaultOrder:y.Ay.DESCENDING},{name:"PoolStats",header:"Pools",width:100,resizeMinWidth:60,sortAccessor:({PoolStats:e=[]})=>e.reduce(((e,s)=>e+(s.Usage||0)),0),defaultOrder:y.Ay.DESCENDING,align:y.Ay.LEFT,render:({row:e})=>(0,$.jsx)(_._,{pools:e.PoolStats})}];return 0===c.length&&u!==U.s$.ALL?(0,$.jsx)(T.v,{name:"thumbsUp",width:"200"}):(0,$.jsx)(V.l,{columnsWidthLSKey:"databasesTableColumnsWidth",data:c,columns:s,settings:Y.N3,emptyDataMessage:"No such tenants"})})():null})]})};var le=n(44433),re=n(74321),ae=n(52248),oe=n(15298),ie=n(18143);const de=(0,g.cn)("ydb-cluster-versions-bar"),ce=({versionsValues:e=[],size:s="s",progressClassName:n})=>(0,$.jsxs)("div",{className:de(),children:[(0,$.jsx)(ie.k,{value:100,stack:e,size:s,className:n}),(0,$.jsx)("div",{className:de("versions"),children:e.map(((s,n)=>(0,$.jsx)("div",{className:de("version-title"),style:{color:s.color},title:s.version,children:`${s.version}${n===e.length-1?"":","}`},s.version)))})]});var ue=n(63126),ve=n(78762),he=n(88655);function pe(e){return[(0,ve._E)(),(0,ve.Nh)(e),(0,ve.jl)(),(0,ve.pH)(),(0,ve.fr)(),(0,ve.ID)()]}const me=({nodes:e})=>{const s=(0,he.E)(),n=pe({getNodeRef:null===s||void 0===s?void 0:s.getNodeRef});return(0,$.jsx)(V.l,{columnsWidthLSKey:"versionsTableColumnsWidth",data:e,columns:n,settings:Y.N3})};var ge=n(96873);const je=(0,g.cn)("ydb-versions-nodes-tree-title"),xe=({title:e,nodes:s,items:n,versionColor:t,versionsValues:l})=>{let r;return r=n?n.reduce(((e,s)=>s.nodes?e+s.nodes.length:e),0):s?s.length:0,(0,$.jsxs)("div",{className:je("overview"),children:[(0,$.jsxs)("div",{className:je("overview-container"),children:[t?(0,$.jsx)("div",{className:je("version-color"),style:{background:t}}):null,e?(0,$.jsxs)("span",{className:je("overview-title"),children:[e,(0,$.jsx)(ge.b,{text:e,size:"s",className:je("clipboard-button"),view:"normal"})]}):null]}),(0,$.jsxs)("div",{className:je("overview-info"),children:[(0,$.jsxs)("div",{children:[(0,$.jsx)("span",{className:je("info-value"),children:r}),(0,$.jsx)("span",{className:je("info-label",{margin:"left"}),children:"Nodes"})]}),l?(0,$.jsxs)("div",{className:je("version-progress"),children:[(0,$.jsx)("span",{className:je("info-label",{margin:"right"}),children:"Versions"}),(0,$.jsx)(ie.k,{size:"s",value:100,stack:l})]}):null]})]})},Ne=(0,g.cn)("ydb-versions-grouped-node-tree"),fe=({title:e,nodes:s,items:n,expanded:l=!1,versionColor:r,versionsValues:a,level:o=0})=>{const[i,d]=t.useState(!1);t.useEffect((()=>{d(l)}),[l]);const c=(0,$.jsx)(xe,{title:e,nodes:s,items:n,versionColor:r,versionsValues:a}),u=()=>{d((e=>!e))};return n?(0,$.jsx)("div",{className:Ne({"first-level":0===o}),children:(0,$.jsx)(ue.G,{name:c,collapsed:!i,hasArrow:!0,onClick:u,onArrowClick:u,children:n.map(((e,s)=>(0,$.jsx)(fe,{title:e.title,nodes:e.nodes,expanded:l,versionColor:e.versionColor,level:o+1},s)))},e)}):(0,$.jsx)("div",{className:Ne({"first-level":0===o}),children:(0,$.jsx)(ue.G,{name:c,collapsed:!i,hasArrow:!0,onClick:u,onArrowClick:u,children:(0,$.jsx)("div",{className:Ne("dt-wrapper"),children:(0,$.jsx)(me,{nodes:s||[]})})},e)})};var be=n(78018),ye=n.n(be),Ce=n(38596);const ke=.5,we=(e=[],s)=>{const n=e.reduce(((e,s)=>(s.Version&&(e[s.Version]?e[s.Version]=e[s.Version]+1:e[s.Version]=1),e)),{});return _e(Object.keys(n).map((t=>{const l=n[t]/e.length*100;return{title:t,version:t,color:null===s||void 0===s?void 0:s.get((0,Ce.U)(t)),value:l<ke?ke:l}})))};function Te(e,s,n){const t=null!==n&&void 0!==n?n:e.reduce(((e,s)=>e+s.count),0);return _e(e.map((e=>{const n=e.count/t*100;return{title:e.name,version:e.name,color:null===s||void 0===s?void 0:s.get(e.name),value:n<ke?ke:n}})))}function _e(e){let s=e[0].value,n=0,t=0;e.forEach(((e,l)=>{t+=e.value,e.value>s&&(s=e.value,n=l)}));const l=[...e];return l[n]={...e[n],value:s+100-t},l}let Se=function(e){return e.VERSION="Version",e.TENANT="Database",e.STORAGE="Storage",e}({});const Ve=(e,s)=>{var n;return(null===(n=e.title)||void 0===n?void 0:n.localeCompare(s.title||""))||-1},Ee=JSON.parse('{"title_overall":"Overall","title_storage":"Storage nodes","title_database":"Database nodes","title_other":"Other nodes"}'),Oe=(0,I.g4)("ydb-versions",{en:Ee});var Le=n(44992),Me=n(98730);const De=(0,g.cn)("ydb-versions"),ze=({versionToColor:e,cluster:s})=>{const[n]=(0,j.Nt)(),l=((e,s)=>{const{currentData:n}=oe.s.useGetNodesQuery((0,Me.L)(e)?Le.hT:{tablets:!1,fieldsRequired:["SystemState"],group:"Version"});return t.useMemo((()=>(0,Me.L)(e)&&e.MapVersions?Te(Object.entries(e.MapVersions).map((([e,s])=>({name:e,count:s}))),s,e.NodesTotal):n?Array.isArray(n.NodeGroups)?Te(n.NodeGroups,s,null===e||void 0===e?void 0:e.NodesTotal):we(n.Nodes,s):[]),[n,s,e])})(s,e),{currentData:r,isLoading:a}=oe.s.useGetNodesQuery({tablets:!1,fieldsRequired:["SystemState"]},{pollingInterval:n}),o=null===r||void 0===r?void 0:r.Nodes,[i,d]=t.useState(Se.VERSION),[c,u]=t.useState(!1),v=e=>{d(e)};if(a)return(0,$.jsx)(ae.a,{});const h=((e,s,n)=>{if(e&&e.length){if(n===Se.VERSION){const n=ye()(e,"Version");return Object.keys(n).map((e=>{const t=n[e].filter((({Tenants:e})=>Boolean(e))),l=ye()(t,"Tenants"),r=Object.keys(l).map((e=>({title:e,nodes:l[e]}))).sort(Ve);return r.length?{title:e,items:r,versionColor:null===s||void 0===s?void 0:s.get((0,Ce.U)(e))}:null})).filter((e=>Boolean(e)))}{const n=e.filter((({Tenants:e})=>Boolean(e))),t=ye()(n,"Tenants");return Object.keys(t).map((e=>{const n=we(t[e],s),l=ye()(t[e],"Version"),r=Object.keys(l).map((e=>({title:e,nodes:l[e],versionColor:null===s||void 0===s?void 0:s.get((0,Ce.U)(e))})));return r.length?{title:e,items:r,versionsValues:n}:null})).filter((e=>Boolean(e))).sort(Ve)}}})(o,e,i),p=((e,s)=>{if(!e||!e.length)return;const n=e.filter((({Roles:e})=>null===e||void 0===e?void 0:e.includes("Storage"))),t=ye()(n,"Version");return Object.keys(t).map((e=>({title:e,nodes:t[e],versionColor:null===s||void 0===s?void 0:s.get((0,Ce.U)(e))})))})(o,e),m=((e,s)=>{if(!e||!e.length)return;const n=e.filter((({Roles:e,Version:s})=>!e&&s)),t=ye()(n,"Version");return Object.keys(t).map((e=>({title:e,nodes:t[e],versionColor:null===s||void 0===s?void 0:s.get((0,Ce.U)(e))})))})(o,e),g=null!==p&&void 0!==p&&p.length?(0,$.jsxs)(t.Fragment,{children:[(0,$.jsx)("h4",{children:Oe("title_storage")}),p.map((({title:e,nodes:s,items:n,versionColor:t})=>(0,$.jsx)(fe,{title:e,nodes:s,items:n,versionColor:t},`storage-nodes-${e}`)))]}):null,x=null!==h&&void 0!==h&&h.length?(0,$.jsxs)(t.Fragment,{children:[(0,$.jsx)("h4",{children:Oe("title_database")}),(0,$.jsxs)("div",{className:De("controls"),children:[(0,$.jsxs)("div",{className:De("group"),children:[(0,$.jsx)("span",{className:De("label"),children:"Group by:"}),(0,$.jsxs)(le.a,{value:i,onUpdate:v,children:[(0,$.jsx)(le.a.Option,{value:Se.TENANT,children:Se.TENANT}),(0,$.jsx)(le.a.Option,{value:Se.VERSION,children:Se.VERSION})]})]}),(0,$.jsx)(re.S,{className:De("checkbox"),onChange:()=>u((e=>!e)),checked:c,children:"All expanded"})]}),h.map((({title:e,nodes:s,items:n,versionColor:t,versionsValues:l})=>(0,$.jsx)(fe,{title:e,nodes:s,items:n,expanded:c,versionColor:t,versionsValues:l},`tenant-nodes-${e}`)))]}):null,N=null!==m&&void 0!==m&&m.length?(0,$.jsxs)(t.Fragment,{children:[(0,$.jsx)("h4",{children:Oe("title_other")}),m.map((({title:e,nodes:s,items:n,versionColor:t,versionsValues:l})=>(0,$.jsx)(fe,{title:e,nodes:s,items:n,versionColor:t,versionsValues:l},`other-nodes-${e}`)))]}):null,f=(0,$.jsxs)(t.Fragment,{children:[(0,$.jsx)("h4",{children:Oe("title_overall")}),(0,$.jsx)("div",{className:De("overall-wrapper"),children:(0,$.jsx)(ce,{progressClassName:De("overall-progress"),versionsValues:l.filter((e=>"unknown"!==e.title)),size:"m"})})]});return(0,$.jsxs)("div",{className:De(),children:[f,g,x,N]})};var Ae=n(98089),Ge=n(87184);const Ie=(0,g.cn)("tag"),Pe=({text:e,type:s})=>(0,$.jsx)("div",{className:Ie({type:s}),children:e}),Re=({tags:e,tagsType:s,className:n="",gap:t=1})=>(0,$.jsx)(Ge.s,{className:n,gap:t,wrap:"wrap",alignItems:"center",children:e&&e.map(((e,n)=>(0,$.jsx)(Pe,{text:e,type:s},n)))});var $e=n(7435);const Be=JSON.parse('{"disk-type":"Disk Type","erasure":"Erasure","allocated":"Allocated","available":"Available","usage":"Usage","label_nodes-state":"Nodes state","label_dc":"Nodes data centers","storage-size":"Storage size","storage-groups":"Storage groups, {{diskType}}","links":"Links","link_cores":"Coredumps","link_logging":"Logging","link_slo-logs":"SLO Logs","context_cores":"cores","title_cpu":"CPU","title_storage":"Storage","title_memory":"Memory","title_info":"Info","title_links":"Links","label_nodes":"Nodes","label_hosts":"Hosts","label_storage-groups":"Storage groups","label_databases":"Databases","label_load":"Load"}'),Fe=(0,I.g4)("ydb-cluster",{en:Be});var Ue=n(2102);const We=(0,g.cn)("ydb-doughnut-metrics");function Ze({status:e,fillWidth:s,children:n,className:t}){let l="var(--g-color-line-generic-solid)",r=3.6*s-90;s>50&&(l="var(--doughnut-color)",r=3.6*s+90);const a=r;return(0,$.jsx)("div",{className:We(null,t),children:(0,$.jsx)("div",{style:{backgroundImage:`linear-gradient(${a}deg, transparent 50%, ${l} 50%), linear-gradient(-90deg, var(--g-color-line-generic-solid) 50%, transparent 50%)`},className:We("doughnut",{status:e}),children:(0,$.jsx)("div",{className:We("text-wrapper"),children:n})})})}Ze.Legend=function({children:e,variant:s="subheader-3"}){return(0,$.jsx)(Ae.E,{variant:s,color:"secondary",className:We("legend"),children:e})},Ze.Value=function({children:e,variant:s="subheader-2"}){return(0,$.jsx)(Ae.E,{variant:s,color:"secondary",className:We("value"),children:e})};var qe=n(70043);const Qe=(0,g.cn)("ydb-cluster-dashboard");function Ye({children:e,title:s,size:n,className:t}){return(0,$.jsxs)(Ue.A,{className:Qe("card",{size:n},t),size:n,interactive:!1,children:[s?(0,$.jsx)(Ae.E,{variant:"subheader-3",className:Qe("card-title"),children:s}):null,e]})}function He({title:e,children:s,size:n,...t}){return(0,$.jsx)(Ye,{title:e,size:n,children:(0,$.jsx)(Ze,{...t,className:Qe("doughnut"),children:s})})}function Je(){return(0,$.jsx)(Ye,{className:Qe("skeleton-wrapper"),children:(0,$.jsx)(qe.E,{className:Qe("skeleton")})})}function Ke(){return(0,$.jsxs)(t.Fragment,{children:[(0,$.jsx)(Je,{}),(0,$.jsx)(Je,{}),(0,$.jsx)(Je,{})]})}var Xe=n(35736),es=n(57439),ss=n(24543),ns=n(46549);const ts=(0,g.cn)("ydb-disk-groups-stats"),ls=({stats:e,children:s})=>(0,$.jsx)("div",{className:ts(),children:(0,$.jsx)(ss.u,{placement:["right"],pinOnClick:!0,content:(0,$.jsx)(rs,{stats:e}),children:s})});function rs({stats:e}){const{diskType:s,erasure:n,allocatedSize:t,availableSize:l}=e,r=(0,ns.fn)(Math.max(t,l)),a=(0,ns.z3)({value:t,size:r}),o=(0,ns.z3)({value:l,size:r}),i=Math.round(t/(t+l)*100),d=[{name:Fe("disk-type"),content:s},{name:Fe("erasure"),content:n},{name:Fe("allocated"),content:a},{name:Fe("available"),content:o},{name:Fe("usage"),content:i+"%"}];return(0,$.jsx)(es.u,{items:d,className:ts("popup-content"),responsive:!0})}function as({value:e,capacity:s,colorizeProgress:n=!0,warningThreshold:t,dangerThreshold:l,inverseColorize:r=!1,legendFormatter:a}){const o=parseFloat(String(e)),i=parseFloat(String(s));let d=o/i*100||0;d=d>100?100:d;const c=d<1?.5:d;return{status:(0,Xe.w)({fillWidth:d,warningThreshold:t,dangerThreshold:l,colorizeProgress:n,inverseColorize:r}),percents:(0,se.l9)(d/100),legend:a({value:o,capacity:i}),fill:c}}const os=["storage","tenant"];const is=e=>Object.values(e).reduce(((e,s)=>(Object.values(s).forEach((s=>{e+=s.createdGroups})),e)),0);function ds({value:e,capacity:s}){let n=[];return n=s<1e4?[(0,se.ZV)(Math.round(e)),(0,se.ZV)(Math.round(s))]:(0,se.Nd)(e,s,void 0,"",!0),`${n[0]} / ${n[1]}\n${Fe("context_cores")}`}function cs({value:e,capacity:s,...n}){const{status:t,percents:l,legend:r,fill:a}=as({value:e,capacity:s,legendFormatter:ds,...n});return(0,$.jsxs)(He,{status:t,fillWidth:a,title:Fe("title_cpu"),children:[(0,$.jsx)(Ze.Legend,{children:r}),(0,$.jsx)(Ze.Value,{children:l})]})}function us({value:e,capacity:s}){const n=(0,se.j9)(e,s,void 0,"\n");return`${n[0]} / ${n[1]}`}function vs({value:e,capacity:s,...n}){const{status:t,percents:l,legend:r,fill:a}=as({value:e,capacity:s,legendFormatter:us,...n});return(0,$.jsxs)(He,{status:t,fillWidth:a,title:Fe("title_memory"),children:[(0,$.jsx)(Ze.Legend,{children:r}),(0,$.jsx)(Ze.Value,{children:l})]})}function hs({value:e,capacity:s}){const n=(0,se.j9)(e,s,void 0,"\n");return`${n[0]} / ${n[1]}`}function ps({value:e,capacity:s,...n}){const{status:t,percents:l,legend:r,fill:a}=as({value:e,capacity:s,legendFormatter:hs,...n});return(0,$.jsxs)(He,{status:t,fillWidth:a,title:Fe("title_storage"),children:[(0,$.jsx)(Ze.Legend,{children:r}),(0,$.jsx)(Ze.Value,{children:l})]})}function ms({value:e}){return(0,$e.f8)(e)?(0,$.jsx)(Ae.E,{variant:"subheader-3",color:"secondary",children:(0,se.ZV)(e)}):null}function gs({cluster:e,...s}){return s.error?(0,$.jsx)(w.o,{error:s.error,className:Qe("error")}):(0,$.jsx)("div",{className:Qe(),children:(0,$.jsxs)(Ge.s,{gap:4,wrap:!0,children:[(0,$.jsx)(Ge.s,{gap:4,wrap:"nowrap",children:(0,$.jsx)(js,{...s,cluster:e})}),(0,$.jsx)("div",{className:Qe("cards-container"),children:(0,$.jsx)(xs,{...s,cluster:e})})]})})}function js({cluster:e,loading:s}){if(s)return(0,$.jsx)(Ke,{});const n=[];if((0,Me.L)(e)){const{CoresUsed:s,NumberOfCpus:t,CoresTotal:l}=e,r=null!==l&&void 0!==l?l:t;(0,$e.f8)(s)&&(0,$e.f8)(r)&&n.push((0,$.jsx)(cs,{value:s,capacity:r},"cores"))}const{StorageTotal:t,StorageUsed:l}=e;(0,$e.f8)(t)&&(0,$e.f8)(l)&&n.push((0,$.jsx)(ps,{value:l,capacity:t},"storage"));const{MemoryTotal:r,MemoryUsed:a}=e;return(0,$e.f8)(r)&&(0,$e.f8)(a)&&n.push((0,$.jsx)(vs,{value:a,capacity:r},"memory")),n}function xs({cluster:e,groupStats:s={},loading:n}){if(n)return null;const l=[],r=function(e){const s=[];if((0,Me.L)(e)&&e.MapNodeRoles)for(const[n,l]of Object.entries(e.MapNodeRoles))os.includes(n.toLowerCase())&&s.push((0,$.jsxs)(t.Fragment,{children:[n,": ",(0,se.ZV)(l)]},n));return s}(e);if(l.push((0,$.jsx)(Ye,{size:"l",title:Fe("label_nodes"),children:(0,$.jsxs)(Ge.s,{gap:2,direction:"column",children:[(0,$.jsx)(ms,{value:null===e||void 0===e?void 0:e.NodesAlive}),null!==r&&void 0!==r&&r.length?(0,$.jsx)(Re,{tags:r,gap:3}):null]})},"roles")),Object.keys(s).length){const e=function(e){const s=[];return Object.entries(e).forEach((([e,n])=>{Object.values(n).forEach((n=>{s.push((0,$.jsxs)(ls,{stats:n,children:[e,": ",(0,se.ZV)(n.createdGroups)," /"," ",(0,se.ZV)(n.totalGroups)]},`${e}|${n.erasure}`))}))})),s}(s),n=is(s);l.push((0,$.jsx)(Ye,{size:"l",title:Fe("label_storage-groups"),children:(0,$.jsxs)(Ge.s,{gap:2,direction:"column",children:[(0,$.jsx)(ms,{value:n}),(0,$.jsx)(Re,{tags:e,gap:3})]})},"groups"))}const a=function(e){var s;return(0,Me.L)(e)&&e.MapDataCenters?Object.keys(e.MapDataCenters):null===(s=e.DataCenters)||void 0===s?void 0:s.filter(Boolean)}(e);return null!==a&&void 0!==a&&a.length&&l.push((0,$.jsx)(Ye,{size:"l",title:Fe("label_hosts"),children:(0,$.jsxs)(Ge.s,{gap:2,direction:"column",children:[(0,$.jsx)(ms,{value:null===e||void 0===e?void 0:e.Hosts}),(0,$.jsx)(Re,{tags:a,gap:3})]})},"hosts")),e.Tenants&&l.push((0,$.jsx)(Ye,{size:"l",title:Fe("label_databases"),children:(0,$.jsx)(ms,{value:null===e||void 0===e?void 0:e.Tenants})},"tenants")),l}var Ns=n(42655);const fs=(0,g.cn)("cluster-info");var bs=n(41650);function ys(){const{cores:e,logging:s}=(0,p.Zd)();return t.useMemo((()=>{const n=[],t=function(e){try{const s=(0,bs.qF)(e);if(s&&"object"===typeof s&&"url"in s&&"string"===typeof s.url)return s.url}catch{}}(e),{logsUrl:l,sloLogsUrl:r}=function(e){try{const s=(0,bs.qF)(e);if(s&&"object"===typeof s){return{logsUrl:"url"in s&&"string"===typeof s.url?s.url:void 0,sloLogsUrl:"slo_logs_url"in s&&"string"===typeof s.slo_logs_url?s.slo_logs_url:void 0}}}catch{}return{}}(s);return t&&n.push({title:Fe("link_cores"),url:t}),l&&n.push({title:Fe("link_logging"),url:l}),r&&n.push({title:Fe("link_slo-logs"),url:r}),n}),[e,s])}var Cs=n(15132);const ks=(0,g.cn)("ydb-nodes-state");function ws({state:e,children:s}){return(0,$.jsx)("div",{className:ks({[e.toLowerCase()]:!0}),children:s})}const Ts={Green:5,Blue:4,Yellow:3,Orange:2,Red:1,Grey:0},_s=(e,s)=>{const n=[];if((0,Me.L)(e)&&e.MapNodeStates){const s=Object.entries(e.MapNodeStates);s.sort(((e,s)=>Ts[s[0]]-Ts[e[0]]));const t=s.map((([e,s])=>(0,$.jsx)(ws,{state:e,children:(0,se.ZV)(s)},e)));n.push({label:Fe("label_nodes-state"),value:(0,$.jsx)(Ge.s,{gap:2,children:t})})}const l=(e=>{if((0,Me.L)(e)&&e.MapDataCenters)return Object.entries(e.MapDataCenters).map((([e,s])=>(0,$.jsxs)(t.Fragment,{children:[e,": ",(0,se.ZV)(s)]},e)))})(e);return null!==l&&void 0!==l&&l.length&&n.push({label:Fe("label_dc"),value:(0,$.jsx)(Re,{tags:l,gap:2,className:fs("dc")})}),n.push({label:Fe("label_load"),value:(0,$.jsx)(Cs.O,{value:null===e||void 0===e?void 0:e.LoadAverage,capacity:null===e||void 0===e?void 0:e.NumberOfCpus})}),n.push(...s),n},Ss=({cluster:e,loading:s,error:n,additionalClusterProps:t={}})=>{const{info:l=[],links:r=[]}=t,a=ys(),o=r.concat(a),i=_s(null!==e&&void 0!==e?e:{},l);return(0,$.jsxs)("div",{className:fs(),children:[n?(0,$.jsx)(w.o,{error:n,className:fs("error")}):null,s?(0,$.jsx)(Ns.y,{className:fs("skeleton"),rows:4}):(0,$.jsxs)(Ge.s,{gap:10,wrap:"nowrap",children:[n&&!e?null:(0,$.jsxs)("div",{children:[(0,$.jsx)("div",{className:fs("section-title"),children:Fe("title_info")}),(0,$.jsx)(L.u,{nameMaxWidth:200,children:i.map((({label:e,value:s})=>(0,$.jsx)(L.u.Item,{name:e,children:s},e)))})]}),o.length?(0,$.jsxs)("div",{children:[(0,$.jsx)("div",{className:fs("section-title"),children:Fe("title_links")}),(0,$.jsx)(Ge.s,{direction:"column",gap:4,children:o.map((({title:e,url:s})=>(0,$.jsx)(G.K,{title:e,url:s},e)))})]}):null]})]})};var Vs=n(87842);const Es=(0,g.cn)("ydb-cluster");function Os({additionalClusterProps:e,additionalTenantsProps:s,additionalNodesProps:n,additionalVersionsProps:g}){const y=t.useRef(null),C=(0,h.fp)(),k=(0,j.YQ)(),w=function(){const e=(0,j.YQ)(),s=(0,j.N4)((e=>e.cluster.defaultClusterTab)),n=(0,o.W5)(v.Ay.cluster),{activeTab:l}=(null===n||void 0===n?void 0:n.params)||{};let r;r=(0,Vs.eC)(l)?l:s;return t.useEffect((()=>{r!==s&&e((0,p.Yv)(r))}),[r,s,e]),r}(),[{clusterName:T,backend:_}]=(0,i.useQueryParams)({clusterName:i.StringParam,backend:i.StringParam}),S=(0,j.N4)((e=>(0,p.zR)(e,null!==T&&void 0!==T?T:void 0))),{title:V}=(0,p.Zd)(),E=null!==V&&void 0!==V?V:S,{data:{clusterData:O={},groupsStats:L}={},isLoading:M,error:D}=p.Zh.useGetClusterInfoQuery(null!==T&&void 0!==T?T:void 0),z=D&&"object"===typeof D?D:void 0,A=(0,j.N4)((e=>(0,p.ds)(e,null!==T&&void 0!==T?T:void 0)));t.useEffect((()=>{k((0,m.g)("cluster",{}))}),[k]);const G=t.useMemo((()=>null!==g&&void 0!==g&&g.getVersionToColorMap?null===g||void 0===g?void 0:g.getVersionToColorMap():(0,x._n)(null===O||void 0===O?void 0:O.Versions)),[g,O]),I=t.useMemo((()=>Vs.bn.find((({id:e})=>e===w))),[w]);return(0,$.jsxs)("div",{className:Es(),ref:y,children:[(0,$.jsx)(a.mg,{defaultTitle:`${E} \u2014 YDB Monitoring`,titleTemplate:`%s \u2014 ${E} \u2014 YDB Monitoring`,children:I?(0,$.jsx)("title",{children:I.title}):null}),(0,$.jsx)("div",{className:Es("header"),children:M?(0,$.jsx)(l.E,{className:Es("title-skeleton")}):(0,$.jsx)(c.c,{size:"m",status:null===O||void 0===O?void 0:O.Overall,name:E,className:Es("title")})}),(0,$.jsx)("div",{className:Es("sticky-wrapper"),children:(0,$.jsx)(d.E,{className:Es("auto-refresh-control")})}),C&&(0,$.jsx)(gs,{cluster:O,groupStats:L,loading:M,error:z||(null===O||void 0===O?void 0:O.error)}),(0,$.jsx)("div",{className:Es("tabs-sticky-wrapper"),children:(0,$.jsx)(r.t,{size:"l",allowNotSelected:!0,activeTab:w,items:Vs.bn,wrapTo:({id:e},s)=>{const n=(0,Vs.a)(e,{clusterName:T,backend:_});return(0,$.jsx)(u.E,{to:n,onClick:()=>{k((0,p.Yv)(e))},children:s},e)}})}),(0,$.jsxs)(o.dO,{children:[(0,$.jsx)(o.qh,{path:(0,v.a3)((0,Vs.a)(Vs.Bi.overview)).pathname,children:(0,$.jsx)(Ss,{cluster:O,loading:M,error:z,additionalClusterProps:e})}),(0,$.jsx)(o.qh,{path:(0,v.a3)((0,Vs.a)(Vs.Bi.tablets)).pathname,children:(0,$.jsx)(b.Q,{loading:M,tablets:A})}),(0,$.jsx)(o.qh,{path:(0,v.a3)((0,Vs.a)(Vs.Bi.tenants)).pathname,children:(0,$.jsx)(te,{additionalTenantsProps:s})}),(0,$.jsx)(o.qh,{path:(0,v.a3)((0,Vs.a)(Vs.Bi.nodes)).pathname,children:(0,$.jsx)(N.G,{parentRef:y,additionalNodesProps:n})}),(0,$.jsx)(o.qh,{path:(0,v.a3)((0,Vs.a)(Vs.Bi.storage)).pathname,children:(0,$.jsx)(f.z,{parentRef:y})}),(0,$.jsx)(o.qh,{path:(0,v.a3)((0,Vs.a)(Vs.Bi.versions)).pathname,children:(0,$.jsx)(ze,{versionToColor:G,cluster:O})}),(0,$.jsx)(o.qh,{render:()=>(0,$.jsx)(o.rd,{to:(0,v.a3)((0,Vs.a)(w))})})]})]})}},42655:(e,s,n)=>{n.d(s,{y:()=>c});var t=n(59284),l=n(89169),r=n(77506),a=n(66781),o=n(60712);const i=(0,r.cn)("ydb-info-viewer-skeleton"),d=()=>(0,o.jsxs)("div",{className:i("label"),children:[(0,o.jsx)(l.E,{className:i("label__text")}),(0,o.jsx)("div",{className:i("label__dots")})]}),c=({rows:e=8,className:s,delay:n=600})=>{const[r]=(0,a.y)(n);let c=(0,o.jsxs)(t.Fragment,{children:[(0,o.jsx)(d,{}),(0,o.jsx)(l.E,{className:i("value")})]});return r||(c=null),(0,o.jsx)("div",{className:i(null,s),children:[...new Array(e)].map(((e,s)=>(0,o.jsx)("div",{className:i("row"),children:c},`skeleton-row-${s}`)))})}},70043:(e,s,n)=>{n.d(s,{E:()=>a});var t=n(89169),l=n(66781),r=n(60712);const a=({delay:e=600,className:s})=>{const[n]=(0,l.y)(e);return n?(0,r.jsx)(t.E,{className:s}):null}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/5652.6c4f054d.chunk.js b/ydb/core/viewer/monitoring/static/js/5652.6c4f054d.chunk.js deleted file mode 100644 index ecf390b03c..0000000000 --- a/ydb/core/viewer/monitoring/static/js/5652.6c4f054d.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[5652],{42655:(e,s,n)=>{n.d(s,{y:()=>c});var t=n(59284),l=n(89169),r=n(77506),a=n(66781),o=n(60712);const i=(0,r.cn)("ydb-info-viewer-skeleton"),d=()=>(0,o.jsxs)("div",{className:i("label"),children:[(0,o.jsx)(l.E,{className:i("label__text")}),(0,o.jsx)("div",{className:i("label__dots")})]}),c=({rows:e=8,className:s,delay:n=600})=>{const[r]=(0,a.y)(n);let c=(0,o.jsxs)(t.Fragment,{children:[(0,o.jsx)(d,{}),(0,o.jsx)(l.E,{className:i("value")})]});return r||(c=null),(0,o.jsx)("div",{className:i(null,s),children:[...new Array(e)].map(((e,s)=>(0,o.jsx)("div",{className:i("row"),children:c},`skeleton-row-${s}`)))})}},70043:(e,s,n)=>{n.d(s,{E:()=>a});var t=n(89169),l=n(66781),r=n(60712);const a=({delay:e=600,className:s})=>{const[n]=(0,l.y)(e);return n?(0,r.jsx)(t.E,{className:s}):null}},5252:(e,s,n)=>{n.r(s),n.d(s,{Cluster:()=>Os});var t=n(59284),l=n(89169),r=n(23871),a=n(61750),o=n(10755),i=n(67087),d=n(90053),c=n(10508),u=n(44294),v=n(92459),h=n(67028),p=n(67157),m=n(40174),g=n(77506),j=n(90182),x=n(66592),N=n(7117),f=n(99936),b=n(88616),y=n(4557),C=n(84476),k=n(28539),w=n(44508),T=n(78524),_=n(48295),S=n(9252),V=n(17594),E=n(95963),O=n(89073),L=n(40336),M=n(63291),D=n(54309),z=n(12888),A=n(71661),G=n(25196),I=n(48372);const P=JSON.parse('{"field_links":"Links","field_monitoring-link":"Monitoring","context_unknown":"unknown database"}'),R=(0,I.g4)("ydb-tenant-name-wrapper",{en:P});var $=n(60712);function B({tenant:e,additionalTenantsProps:s}){var n;const t=(0,z.X)(),l=((e,s)=>{var n,t;if("function"!==typeof(null===s||void 0===s?void 0:s.prepareTenantBackend))return;let l=null!==(n=e.MonitoringEndpoint)&&void 0!==n?n:e.backend;const r=null!==(t=e.NodeIds)&&void 0!==t?t:e.sharedNodeIds;!l&&r&&r.length>0&&(l={NodeId:r[Math.floor(Math.random()*r.length)]});return s.prepareTenantBackend(l)})(e,s),r=Boolean(l),a=null===s||void 0===s||null===(n=s.getMonitoringLink)||void 0===n?void 0:n.call(s,e.Name,e.Type);return(0,$.jsx)(A.s,{disabled:!t||!a,delayClosing:200,content:a?(0,$.jsx)(L.u,{responsive:!0,children:(0,$.jsx)(L.u.Item,{name:R("field_links"),children:(0,$.jsx)(G.K,{title:R("field_monitoring-link"),url:a})})}):null,placement:["top","bottom"],behavior:M.m.Immediate,children:(0,$.jsx)(c.c,{externalLink:r,name:e.Name||R("context_unknown"),withLeftTrim:!0,status:e.Overall,hasClipboardButton:!0,path:(0,D.YL)({database:e.Name,backend:l})})})}var F=n(58351),U=n(88610),W=n(53850),Z=n(23536),q=n.n(Z),Q=n(54090),Y=n(76086),H=n(56674);const J=(0,W.Mz)((e=>e),(e=>H.GJ.endpoints.getTenantsInfo.select({clusterName:e}))),K=(0,W.Mz)((e=>e),((e,s)=>J(s)),(e=>(0,U.CN)(e,Y.Xm)),((e,s,n)=>{var t;const l=null!==(t=s(e).data)&&void 0!==t?t:[];return!n&&l.length>1?l.filter((e=>"Domain"!==e.Type)):l})),X=e=>e.tenants.searchValue,ee=(0,W.Mz)([K,U.yV,X],((e,s,n)=>{let t=((e,s)=>s===U.s$.ALL?e:e.filter((e=>e.Overall&&e.Overall!==Q.m.Green)))(e,s);return t=((e,s)=>e.filter((e=>{const n=new RegExp(q()(s),"i");return n.test(e.Name||"")||n.test(e.controlPlaneName)})))(t,n),t}));var se=n(56839);const ne=(0,g.cn)("tenants"),te=({additionalTenantsProps:e})=>{const s=(0,j.YQ)(),[n]=(0,j.Nt)(),{currentData:l,isFetching:r,error:a}=H.GJ.useGetTenantsInfoQuery({clusterName:F.SL},{pollingInterval:n}),o=r&&void 0===l,i=(0,j.N4)((e=>K(e,F.SL))),d=(0,j.N4)(X),c=(0,j.N4)((e=>ee(e,F.SL))),u=(0,j.N4)(U.yV),v=e=>{s((0,U.$u)(e))},h=e=>{s((0,H.gB)(e))};return(0,$.jsxs)(O.L,{children:[(0,$.jsx)(O.L.Controls,{children:(0,$.jsxs)(t.Fragment,{children:[(0,$.jsx)(E.v,{value:d,onChange:h,placeholder:"Database name",className:ne("search")}),(0,$.jsx)(S.k,{value:u,onChange:v}),(0,$.jsx)(k.T,{total:i.length,current:(null===c||void 0===c?void 0:c.length)||0,label:"Databases",loading:o})]})}),a?(0,$.jsx)(w.o,{error:a}):null,(0,$.jsx)(O.L.Table,{loading:o,children:l?(()=>{const s=[{name:"Name",header:"Database",render:({row:s})=>(0,$.jsx)(B,{tenant:s,additionalTenantsProps:e}),width:440,sortable:!0,defaultOrder:y.Ay.DESCENDING},{name:"controlPlaneName",header:"Name",render:({row:e})=>e.controlPlaneName,width:200,sortable:!0,defaultOrder:y.Ay.DESCENDING},{name:"Type",width:200,resizeMinWidth:150,render:({row:e})=>"Serverless"!==e.Type?e.Type:(0,$.jsxs)("div",{className:ne("type"),children:[(0,$.jsx)("span",{className:ne("type-value"),children:e.Type}),(0,$.jsx)(C.$,{className:ne("type-button"),onClick:()=>h(e.sharedTenantName||""),children:"Show shared"})]})},{name:"State",width:90,render:({row:e})=>e.State?e.State.toLowerCase():"\u2014",customStyle:()=>({textTransform:"capitalize"})},{name:"cpu",header:"CPU",width:80,render:({row:e})=>e.cpu&&e.cpu>1e4?(0,se.iM)(e.cpu):"\u2014",align:y.Ay.RIGHT,defaultOrder:y.Ay.DESCENDING},{name:"memory",header:"Memory",width:120,render:({row:e})=>e.memory?(0,se.vX)(e.memory):"\u2014",align:y.Ay.RIGHT,defaultOrder:y.Ay.DESCENDING},{name:"storage",header:"Storage",width:120,render:({row:e})=>e.storage?(0,se.vX)(e.storage):"\u2014",align:y.Ay.RIGHT,defaultOrder:y.Ay.DESCENDING},{name:"nodesCount",header:"Nodes",width:100,render:({row:e})=>e.nodesCount?(0,se.ZV)(e.nodesCount):"\u2014",align:y.Ay.RIGHT,defaultOrder:y.Ay.DESCENDING},{name:"groupsCount",header:"Groups",width:100,render:({row:e})=>e.groupsCount?(0,se.ZV)(e.groupsCount):"\u2014",align:y.Ay.RIGHT,defaultOrder:y.Ay.DESCENDING},{name:"PoolStats",header:"Pools",width:100,resizeMinWidth:60,sortAccessor:({PoolStats:e=[]})=>e.reduce(((e,s)=>e+(s.Usage||0)),0),defaultOrder:y.Ay.DESCENDING,align:y.Ay.LEFT,render:({row:e})=>(0,$.jsx)(_._,{pools:e.PoolStats})}];return 0===c.length&&u!==U.s$.ALL?(0,$.jsx)(T.v,{name:"thumbsUp",width:"200"}):(0,$.jsx)(V.l,{columnsWidthLSKey:"databasesTableColumnsWidth",data:c,columns:s,settings:Y.N3,emptyDataMessage:"No such tenants"})})():null})]})};var le=n(44433),re=n(74321),ae=n(52248),oe=n(15298),ie=n(18143);const de=(0,g.cn)("ydb-cluster-versions-bar"),ce=({versionsValues:e=[],size:s="s",progressClassName:n})=>(0,$.jsxs)("div",{className:de(),children:[(0,$.jsx)(ie.k,{value:100,stack:e,size:s,className:n}),(0,$.jsx)("div",{className:de("versions"),children:e.map(((s,n)=>(0,$.jsx)("div",{className:de("version-title"),style:{color:s.color},title:s.version,children:`${s.version}${n===e.length-1?"":","}`},s.version)))})]});var ue=n(63126),ve=n(78762),he=n(88655);function pe(e){return[(0,ve._E)(),(0,ve.Nh)(e),(0,ve.jl)(),(0,ve.pH)(),(0,ve.fr)(),(0,ve.ID)()]}const me=({nodes:e})=>{const s=(0,he.E)(),n=pe({getNodeRef:null===s||void 0===s?void 0:s.getNodeRef});return(0,$.jsx)(V.l,{columnsWidthLSKey:"versionsTableColumnsWidth",data:e,columns:n,settings:Y.N3})};var ge=n(96873);const je=(0,g.cn)("ydb-versions-nodes-tree-title"),xe=({title:e,nodes:s,items:n,versionColor:t,versionsValues:l})=>{let r;return r=n?n.reduce(((e,s)=>s.nodes?e+s.nodes.length:e),0):s?s.length:0,(0,$.jsxs)("div",{className:je("overview"),children:[(0,$.jsxs)("div",{className:je("overview-container"),children:[t?(0,$.jsx)("div",{className:je("version-color"),style:{background:t}}):null,e?(0,$.jsxs)("span",{className:je("overview-title"),children:[e,(0,$.jsx)(ge.b,{text:e,size:"s",className:je("clipboard-button"),view:"normal"})]}):null]}),(0,$.jsxs)("div",{className:je("overview-info"),children:[(0,$.jsxs)("div",{children:[(0,$.jsx)("span",{className:je("info-value"),children:r}),(0,$.jsx)("span",{className:je("info-label",{margin:"left"}),children:"Nodes"})]}),l?(0,$.jsxs)("div",{className:je("version-progress"),children:[(0,$.jsx)("span",{className:je("info-label",{margin:"right"}),children:"Versions"}),(0,$.jsx)(ie.k,{size:"s",value:100,stack:l})]}):null]})]})},Ne=(0,g.cn)("ydb-versions-grouped-node-tree"),fe=({title:e,nodes:s,items:n,expanded:l=!1,versionColor:r,versionsValues:a,level:o=0})=>{const[i,d]=t.useState(!1);t.useEffect((()=>{d(l)}),[l]);const c=(0,$.jsx)(xe,{title:e,nodes:s,items:n,versionColor:r,versionsValues:a}),u=()=>{d((e=>!e))};return n?(0,$.jsx)("div",{className:Ne({"first-level":0===o}),children:(0,$.jsx)(ue.G,{name:c,collapsed:!i,hasArrow:!0,onClick:u,onArrowClick:u,children:n.map(((e,s)=>(0,$.jsx)(fe,{title:e.title,nodes:e.nodes,expanded:l,versionColor:e.versionColor,level:o+1},s)))},e)}):(0,$.jsx)("div",{className:Ne({"first-level":0===o}),children:(0,$.jsx)(ue.G,{name:c,collapsed:!i,hasArrow:!0,onClick:u,onArrowClick:u,children:(0,$.jsx)("div",{className:Ne("dt-wrapper"),children:(0,$.jsx)(me,{nodes:s||[]})})},e)})};var be=n(78018),ye=n.n(be),Ce=n(38596);const ke=.5,we=(e=[],s)=>{const n=e.reduce(((e,s)=>(s.Version&&(e[s.Version]?e[s.Version]=e[s.Version]+1:e[s.Version]=1),e)),{});return _e(Object.keys(n).map((t=>{const l=n[t]/e.length*100;return{title:t,version:t,color:null===s||void 0===s?void 0:s.get((0,Ce.U)(t)),value:l<ke?ke:l}})))};function Te(e,s,n){const t=null!==n&&void 0!==n?n:e.reduce(((e,s)=>e+s.count),0);return _e(e.map((e=>{const n=e.count/t*100;return{title:e.name,version:e.name,color:null===s||void 0===s?void 0:s.get(e.name),value:n<ke?ke:n}})))}function _e(e){let s=e[0].value,n=0,t=0;e.forEach(((e,l)=>{t+=e.value,e.value>s&&(s=e.value,n=l)}));const l=[...e];return l[n]={...e[n],value:s+100-t},l}let Se=function(e){return e.VERSION="Version",e.TENANT="Database",e.STORAGE="Storage",e}({});const Ve=(e,s)=>{var n;return(null===(n=e.title)||void 0===n?void 0:n.localeCompare(s.title||""))||-1},Ee=JSON.parse('{"title_overall":"Overall","title_storage":"Storage nodes","title_database":"Database nodes","title_other":"Other nodes"}'),Oe=(0,I.g4)("ydb-versions",{en:Ee});var Le=n(44992),Me=n(98730);const De=(0,g.cn)("ydb-versions"),ze=({versionToColor:e,cluster:s})=>{const[n]=(0,j.Nt)(),l=((e,s)=>{const{currentData:n}=oe.s.useGetNodesQuery((0,Me.L)(e)?Le.hT:{tablets:!1,fieldsRequired:["SystemState"],group:"Version"});return t.useMemo((()=>(0,Me.L)(e)&&e.MapVersions?Te(Object.entries(e.MapVersions).map((([e,s])=>({name:e,count:s}))),s,e.NodesTotal):n?Array.isArray(n.NodeGroups)?Te(n.NodeGroups,s,null===e||void 0===e?void 0:e.NodesTotal):we(n.Nodes,s):[]),[n,s,e])})(s,e),{currentData:r,isLoading:a}=oe.s.useGetNodesQuery({tablets:!1,fieldsRequired:["SystemState"]},{pollingInterval:n}),o=null===r||void 0===r?void 0:r.Nodes,[i,d]=t.useState(Se.VERSION),[c,u]=t.useState(!1),v=e=>{d(e)};if(a)return(0,$.jsx)(ae.a,{});const h=((e,s,n)=>{if(e&&e.length){if(n===Se.VERSION){const n=ye()(e,"Version");return Object.keys(n).map((e=>{const t=n[e].filter((({Tenants:e})=>Boolean(e))),l=ye()(t,"Tenants"),r=Object.keys(l).map((e=>({title:e,nodes:l[e]}))).sort(Ve);return r.length?{title:e,items:r,versionColor:null===s||void 0===s?void 0:s.get((0,Ce.U)(e))}:null})).filter((e=>Boolean(e)))}{const n=e.filter((({Tenants:e})=>Boolean(e))),t=ye()(n,"Tenants");return Object.keys(t).map((e=>{const n=we(t[e],s),l=ye()(t[e],"Version"),r=Object.keys(l).map((e=>({title:e,nodes:l[e],versionColor:null===s||void 0===s?void 0:s.get((0,Ce.U)(e))})));return r.length?{title:e,items:r,versionsValues:n}:null})).filter((e=>Boolean(e))).sort(Ve)}}})(o,e,i),p=((e,s)=>{if(!e||!e.length)return;const n=e.filter((({Roles:e})=>null===e||void 0===e?void 0:e.includes("Storage"))),t=ye()(n,"Version");return Object.keys(t).map((e=>({title:e,nodes:t[e],versionColor:null===s||void 0===s?void 0:s.get((0,Ce.U)(e))})))})(o,e),m=((e,s)=>{if(!e||!e.length)return;const n=e.filter((({Roles:e,Version:s})=>!e&&s)),t=ye()(n,"Version");return Object.keys(t).map((e=>({title:e,nodes:t[e],versionColor:null===s||void 0===s?void 0:s.get((0,Ce.U)(e))})))})(o,e),g=null!==p&&void 0!==p&&p.length?(0,$.jsxs)(t.Fragment,{children:[(0,$.jsx)("h4",{children:Oe("title_storage")}),p.map((({title:e,nodes:s,items:n,versionColor:t})=>(0,$.jsx)(fe,{title:e,nodes:s,items:n,versionColor:t},`storage-nodes-${e}`)))]}):null,x=null!==h&&void 0!==h&&h.length?(0,$.jsxs)(t.Fragment,{children:[(0,$.jsx)("h4",{children:Oe("title_database")}),(0,$.jsxs)("div",{className:De("controls"),children:[(0,$.jsxs)("div",{className:De("group"),children:[(0,$.jsx)("span",{className:De("label"),children:"Group by:"}),(0,$.jsxs)(le.a,{value:i,onUpdate:v,children:[(0,$.jsx)(le.a.Option,{value:Se.TENANT,children:Se.TENANT}),(0,$.jsx)(le.a.Option,{value:Se.VERSION,children:Se.VERSION})]})]}),(0,$.jsx)(re.S,{className:De("checkbox"),onChange:()=>u((e=>!e)),checked:c,children:"All expanded"})]}),h.map((({title:e,nodes:s,items:n,versionColor:t,versionsValues:l})=>(0,$.jsx)(fe,{title:e,nodes:s,items:n,expanded:c,versionColor:t,versionsValues:l},`tenant-nodes-${e}`)))]}):null,N=null!==m&&void 0!==m&&m.length?(0,$.jsxs)(t.Fragment,{children:[(0,$.jsx)("h4",{children:Oe("title_other")}),m.map((({title:e,nodes:s,items:n,versionColor:t,versionsValues:l})=>(0,$.jsx)(fe,{title:e,nodes:s,items:n,versionColor:t,versionsValues:l},`other-nodes-${e}`)))]}):null,f=(0,$.jsxs)(t.Fragment,{children:[(0,$.jsx)("h4",{children:Oe("title_overall")}),(0,$.jsx)("div",{className:De("overall-wrapper"),children:(0,$.jsx)(ce,{progressClassName:De("overall-progress"),versionsValues:l.filter((e=>"unknown"!==e.title)),size:"m"})})]});return(0,$.jsxs)("div",{className:De(),children:[f,g,x,N]})};var Ae=n(98089),Ge=n(87184);const Ie=(0,g.cn)("tag"),Pe=({text:e,type:s})=>(0,$.jsx)("div",{className:Ie({type:s}),children:e}),Re=({tags:e,tagsType:s,className:n="",gap:t=1})=>(0,$.jsx)(Ge.s,{className:n,gap:t,wrap:"wrap",alignItems:"center",children:e&&e.map(((e,n)=>(0,$.jsx)(Pe,{text:e,type:s},n)))});var $e=n(7435);const Be=JSON.parse('{"disk-type":"Disk Type","erasure":"Erasure","allocated":"Allocated","available":"Available","usage":"Usage","label_nodes-state":"Nodes state","label_dc":"Nodes data centers","storage-size":"Storage size","storage-groups":"Storage groups, {{diskType}}","links":"Links","link_cores":"Coredumps","link_logging":"Logging","link_slo-logs":"SLO Logs","context_cores":"cores","title_cpu":"CPU","title_storage":"Storage","title_memory":"Memory","title_info":"Info","title_links":"Links","label_nodes":"Nodes","label_hosts":"Hosts","label_storage-groups":"Storage groups","label_databases":"Databases","label_load":"Load"}'),Fe=(0,I.g4)("ydb-cluster",{en:Be});var Ue=n(2102);const We=(0,g.cn)("ydb-doughnut-metrics");function Ze({status:e,fillWidth:s,children:n,className:t}){let l="var(--g-color-line-generic-solid)",r=3.6*s-90;s>50&&(l="var(--doughnut-color)",r=3.6*s+90);const a=r;return(0,$.jsx)("div",{className:We(null,t),children:(0,$.jsx)("div",{style:{backgroundImage:`linear-gradient(${a}deg, transparent 50%, ${l} 50%), linear-gradient(-90deg, var(--g-color-line-generic-solid) 50%, transparent 50%)`},className:We("doughnut",{status:e}),children:(0,$.jsx)("div",{className:We("text-wrapper"),children:n})})})}Ze.Legend=function({children:e,variant:s="subheader-3"}){return(0,$.jsx)(Ae.E,{variant:s,color:"secondary",className:We("legend"),children:e})},Ze.Value=function({children:e,variant:s="subheader-2"}){return(0,$.jsx)(Ae.E,{variant:s,color:"secondary",className:We("value"),children:e})};var qe=n(70043);const Qe=(0,g.cn)("ydb-cluster-dashboard");function Ye({children:e,title:s,size:n,className:t}){return(0,$.jsxs)(Ue.A,{className:Qe("card",{size:n},t),size:n,interactive:!1,children:[s?(0,$.jsx)(Ae.E,{variant:"subheader-3",className:Qe("card-title"),children:s}):null,e]})}function He({title:e,children:s,size:n,...t}){return(0,$.jsx)(Ye,{title:e,size:n,children:(0,$.jsx)(Ze,{...t,className:Qe("doughnut"),children:s})})}function Je(){return(0,$.jsx)(Ye,{className:Qe("skeleton-wrapper"),children:(0,$.jsx)(qe.E,{className:Qe("skeleton")})})}function Ke(){return(0,$.jsxs)(t.Fragment,{children:[(0,$.jsx)(Je,{}),(0,$.jsx)(Je,{}),(0,$.jsx)(Je,{})]})}var Xe=n(35736),es=n(57439),ss=n(24543),ns=n(46549);const ts=(0,g.cn)("ydb-disk-groups-stats"),ls=({stats:e,children:s})=>(0,$.jsx)("div",{className:ts(),children:(0,$.jsx)(ss.u,{placement:["right"],pinOnClick:!0,content:(0,$.jsx)(rs,{stats:e}),children:s})});function rs({stats:e}){const{diskType:s,erasure:n,allocatedSize:t,availableSize:l}=e,r=(0,ns.fn)(Math.max(t,l)),a=(0,ns.z3)({value:t,size:r}),o=(0,ns.z3)({value:l,size:r}),i=Math.round(t/(t+l)*100),d=[{name:Fe("disk-type"),content:s},{name:Fe("erasure"),content:n},{name:Fe("allocated"),content:a},{name:Fe("available"),content:o},{name:Fe("usage"),content:i+"%"}];return(0,$.jsx)(es.u,{items:d,className:ts("popup-content"),responsive:!0})}function as({value:e,capacity:s,colorizeProgress:n=!0,warningThreshold:t,dangerThreshold:l,inverseColorize:r=!1,legendFormatter:a}){const o=parseFloat(String(e)),i=parseFloat(String(s));let d=o/i*100||0;d=d>100?100:d;const c=d<1?.5:d;return{status:(0,Xe.w)({fillWidth:d,warningThreshold:t,dangerThreshold:l,colorizeProgress:n,inverseColorize:r}),percents:(0,se.l9)(d/100),legend:a({value:o,capacity:i}),fill:c}}const os=["storage","tenant"];const is=e=>Object.values(e).reduce(((e,s)=>(Object.values(s).forEach((s=>{e+=s.createdGroups})),e)),0);function ds({value:e,capacity:s}){let n=[];return n=s<1e4?[(0,se.ZV)(Math.round(e)),(0,se.ZV)(Math.round(s))]:(0,se.Nd)(e,s,void 0,"",!0),`${n[0]} / ${n[1]}\n${Fe("context_cores")}`}function cs({value:e,capacity:s,...n}){const{status:t,percents:l,legend:r,fill:a}=as({value:e,capacity:s,legendFormatter:ds,...n});return(0,$.jsxs)(He,{status:t,fillWidth:a,title:Fe("title_cpu"),children:[(0,$.jsx)(Ze.Legend,{children:r}),(0,$.jsx)(Ze.Value,{children:l})]})}function us({value:e,capacity:s}){const n=(0,se.j9)(e,s,void 0,"\n");return`${n[0]} / ${n[1]}`}function vs({value:e,capacity:s,...n}){const{status:t,percents:l,legend:r,fill:a}=as({value:e,capacity:s,legendFormatter:us,...n});return(0,$.jsxs)(He,{status:t,fillWidth:a,title:Fe("title_memory"),children:[(0,$.jsx)(Ze.Legend,{children:r}),(0,$.jsx)(Ze.Value,{children:l})]})}function hs({value:e,capacity:s}){const n=(0,se.j9)(e,s,void 0,"\n");return`${n[0]} / ${n[1]}`}function ps({value:e,capacity:s,...n}){const{status:t,percents:l,legend:r,fill:a}=as({value:e,capacity:s,legendFormatter:hs,...n});return(0,$.jsxs)(He,{status:t,fillWidth:a,title:Fe("title_storage"),children:[(0,$.jsx)(Ze.Legend,{children:r}),(0,$.jsx)(Ze.Value,{children:l})]})}function ms({value:e}){return(0,$e.f8)(e)?(0,$.jsx)(Ae.E,{variant:"subheader-3",color:"secondary",children:(0,se.ZV)(e)}):null}function gs({cluster:e,...s}){return s.error?(0,$.jsx)(w.o,{error:s.error,className:Qe("error")}):(0,$.jsx)("div",{className:Qe(),children:(0,$.jsxs)(Ge.s,{gap:4,wrap:!0,children:[(0,$.jsx)(Ge.s,{gap:4,wrap:"nowrap",children:(0,$.jsx)(js,{...s,cluster:e})}),(0,$.jsx)("div",{className:Qe("cards-container"),children:(0,$.jsx)(xs,{...s,cluster:e})})]})})}function js({cluster:e,loading:s}){if(s)return(0,$.jsx)(Ke,{});const n=[];if((0,Me.L)(e)){const{CoresUsed:s,NumberOfCpus:t,CoresTotal:l}=e,r=null!==l&&void 0!==l?l:t;(0,$e.f8)(s)&&(0,$e.f8)(r)&&n.push((0,$.jsx)(cs,{value:s,capacity:r},"cores"))}const{StorageTotal:t,StorageUsed:l}=e;(0,$e.f8)(t)&&(0,$e.f8)(l)&&n.push((0,$.jsx)(ps,{value:l,capacity:t},"storage"));const{MemoryTotal:r,MemoryUsed:a}=e;return(0,$e.f8)(r)&&(0,$e.f8)(a)&&n.push((0,$.jsx)(vs,{value:a,capacity:r},"memory")),n}function xs({cluster:e,groupStats:s={},loading:n}){if(n)return null;const l=[],r=function(e){const s=[];if((0,Me.L)(e)&&e.MapNodeRoles)for(const[n,l]of Object.entries(e.MapNodeRoles))os.includes(n.toLowerCase())&&s.push((0,$.jsxs)(t.Fragment,{children:[n,": ",(0,se.ZV)(l)]},n));return s}(e);if(l.push((0,$.jsx)(Ye,{size:"l",title:Fe("label_nodes"),children:(0,$.jsxs)(Ge.s,{gap:2,direction:"column",children:[(0,$.jsx)(ms,{value:null===e||void 0===e?void 0:e.NodesAlive}),null!==r&&void 0!==r&&r.length?(0,$.jsx)(Re,{tags:r,gap:3}):null]})},"roles")),Object.keys(s).length){const e=function(e){const s=[];return Object.entries(e).forEach((([e,n])=>{Object.values(n).forEach((n=>{s.push((0,$.jsxs)(ls,{stats:n,children:[e,": ",(0,se.ZV)(n.createdGroups)," /"," ",(0,se.ZV)(n.totalGroups)]},`${e}|${n.erasure}`))}))})),s}(s),n=is(s);l.push((0,$.jsx)(Ye,{size:"l",title:Fe("label_storage-groups"),children:(0,$.jsxs)(Ge.s,{gap:2,direction:"column",children:[(0,$.jsx)(ms,{value:n}),(0,$.jsx)(Re,{tags:e,gap:3})]})},"groups"))}const a=function(e){var s;return(0,Me.L)(e)&&e.MapDataCenters?Object.keys(e.MapDataCenters):null===(s=e.DataCenters)||void 0===s?void 0:s.filter(Boolean)}(e);return null!==a&&void 0!==a&&a.length&&l.push((0,$.jsx)(Ye,{size:"l",title:Fe("label_hosts"),children:(0,$.jsxs)(Ge.s,{gap:2,direction:"column",children:[(0,$.jsx)(ms,{value:null===e||void 0===e?void 0:e.Hosts}),(0,$.jsx)(Re,{tags:a,gap:3})]})},"hosts")),e.Tenants&&l.push((0,$.jsx)(Ye,{size:"l",title:Fe("label_databases"),children:(0,$.jsx)(ms,{value:null===e||void 0===e?void 0:e.Tenants})},"tenants")),l}var Ns=n(42655);const fs=(0,g.cn)("cluster-info");var bs=n(41650);function ys(){const{cores:e,logging:s}=(0,p.Zd)();return t.useMemo((()=>{const n=[],t=function(e){try{const s=(0,bs.qF)(e);if(s&&"object"===typeof s&&"url"in s&&"string"===typeof s.url)return s.url}catch{}}(e),{logsUrl:l,sloLogsUrl:r}=function(e){try{const s=(0,bs.qF)(e);if(s&&"object"===typeof s){return{logsUrl:"url"in s&&"string"===typeof s.url?s.url:void 0,sloLogsUrl:"slo_logs_url"in s&&"string"===typeof s.slo_logs_url?s.slo_logs_url:void 0}}}catch{}return{}}(s);return t&&n.push({title:Fe("link_cores"),url:t}),l&&n.push({title:Fe("link_logging"),url:l}),r&&n.push({title:Fe("link_slo-logs"),url:r}),n}),[e,s])}var Cs=n(15132);const ks=(0,g.cn)("ydb-nodes-state");function ws({state:e,children:s}){return(0,$.jsx)("div",{className:ks({[e.toLowerCase()]:!0}),children:s})}const Ts={Green:5,Blue:4,Yellow:3,Orange:2,Red:1,Grey:0},_s=(e,s)=>{const n=[];if((0,Me.L)(e)&&e.MapNodeStates){const s=Object.entries(e.MapNodeStates);s.sort(((e,s)=>Ts[s[0]]-Ts[e[0]]));const t=s.map((([e,s])=>(0,$.jsx)(ws,{state:e,children:(0,se.ZV)(s)},e)));n.push({label:Fe("label_nodes-state"),value:(0,$.jsx)(Ge.s,{gap:2,children:t})})}const l=(e=>{if((0,Me.L)(e)&&e.MapDataCenters)return Object.entries(e.MapDataCenters).map((([e,s])=>(0,$.jsxs)(t.Fragment,{children:[e,": ",(0,se.ZV)(s)]},e)))})(e);return null!==l&&void 0!==l&&l.length&&n.push({label:Fe("label_dc"),value:(0,$.jsx)(Re,{tags:l,gap:2,className:fs("dc")})}),n.push({label:Fe("label_load"),value:(0,$.jsx)(Cs.O,{value:null===e||void 0===e?void 0:e.LoadAverage,capacity:null===e||void 0===e?void 0:e.NumberOfCpus})}),n.push(...s),n},Ss=({cluster:e,loading:s,error:n,additionalClusterProps:t={}})=>{const{info:l=[],links:r=[]}=t,a=ys(),o=r.concat(a),i=_s(null!==e&&void 0!==e?e:{},l);return(0,$.jsxs)("div",{className:fs(),children:[n?(0,$.jsx)(w.o,{error:n,className:fs("error")}):null,s?(0,$.jsx)(Ns.y,{className:fs("skeleton"),rows:4}):(0,$.jsxs)(Ge.s,{gap:10,wrap:"nowrap",children:[n&&!e?null:(0,$.jsxs)("div",{children:[(0,$.jsx)("div",{className:fs("section-title"),children:Fe("title_info")}),(0,$.jsx)(L.u,{nameMaxWidth:200,children:i.map((({label:e,value:s})=>(0,$.jsx)(L.u.Item,{name:e,children:s},e)))})]}),o.length?(0,$.jsxs)("div",{children:[(0,$.jsx)("div",{className:fs("section-title"),children:Fe("title_links")}),(0,$.jsx)(Ge.s,{direction:"column",gap:4,children:o.map((({title:e,url:s})=>(0,$.jsx)(G.K,{title:e,url:s},e)))})]}):null]})]})};var Vs=n(87842);const Es=(0,g.cn)("ydb-cluster");function Os({additionalClusterProps:e,additionalTenantsProps:s,additionalNodesProps:n,additionalVersionsProps:g}){const y=t.useRef(null),C=(0,h.fp)(),k=(0,j.YQ)(),w=function(){const e=(0,j.YQ)(),s=(0,j.N4)((e=>e.cluster.defaultClusterTab)),n=(0,o.W5)(v.Ay.cluster),{activeTab:l}=(null===n||void 0===n?void 0:n.params)||{};let r;r=(0,Vs.eC)(l)?l:s;return t.useEffect((()=>{r!==s&&e((0,p.Yv)(r))}),[r,s,e]),r}(),[{clusterName:T,backend:_}]=(0,i.useQueryParams)({clusterName:i.StringParam,backend:i.StringParam}),S=(0,j.N4)((e=>(0,p.zR)(e,null!==T&&void 0!==T?T:void 0))),{title:V}=(0,p.Zd)(),E=null!==V&&void 0!==V?V:S,{data:{clusterData:O={},groupsStats:L}={},isLoading:M,error:D}=p.Zh.useGetClusterInfoQuery(null!==T&&void 0!==T?T:void 0),z=D&&"object"===typeof D?D:void 0,A=(0,j.N4)((e=>(0,p.ds)(e,null!==T&&void 0!==T?T:void 0)));t.useEffect((()=>{k((0,m.g)("cluster",{}))}),[k]);const G=t.useMemo((()=>null!==g&&void 0!==g&&g.getVersionToColorMap?null===g||void 0===g?void 0:g.getVersionToColorMap():(0,x._n)(null===O||void 0===O?void 0:O.Versions)),[g,O]),I=t.useMemo((()=>Vs.bn.find((({id:e})=>e===w))),[w]);return(0,$.jsxs)("div",{className:Es(),ref:y,children:[(0,$.jsx)(a.mg,{defaultTitle:`${E} \u2014 YDB Monitoring`,titleTemplate:`%s \u2014 ${E} \u2014 YDB Monitoring`,children:I?(0,$.jsx)("title",{children:I.title}):null}),(0,$.jsx)("div",{className:Es("header"),children:M?(0,$.jsx)(l.E,{className:Es("title-skeleton")}):(0,$.jsx)(c.c,{size:"m",status:null===O||void 0===O?void 0:O.Overall,name:E,className:Es("title")})}),(0,$.jsx)("div",{className:Es("sticky-wrapper"),children:(0,$.jsx)(d.E,{className:Es("auto-refresh-control")})}),C&&(0,$.jsx)(gs,{cluster:O,groupStats:L,loading:M,error:z||(null===O||void 0===O?void 0:O.error)}),(0,$.jsx)("div",{className:Es("tabs-sticky-wrapper"),children:(0,$.jsx)(r.t,{size:"l",allowNotSelected:!0,activeTab:w,items:Vs.bn,wrapTo:({id:e},s)=>{const n=(0,Vs.a)(e,{clusterName:T,backend:_});return(0,$.jsx)(u.E,{to:n,onClick:()=>{k((0,p.Yv)(e))},children:s},e)}})}),(0,$.jsxs)(o.dO,{children:[(0,$.jsx)(o.qh,{path:(0,v.a3)((0,Vs.a)(Vs.Bi.overview)).pathname,children:(0,$.jsx)(Ss,{cluster:O,loading:M,error:z,additionalClusterProps:e})}),(0,$.jsx)(o.qh,{path:(0,v.a3)((0,Vs.a)(Vs.Bi.tablets)).pathname,children:(0,$.jsx)(b.Q,{loading:M,tablets:A})}),(0,$.jsx)(o.qh,{path:(0,v.a3)((0,Vs.a)(Vs.Bi.tenants)).pathname,children:(0,$.jsx)(te,{additionalTenantsProps:s})}),(0,$.jsx)(o.qh,{path:(0,v.a3)((0,Vs.a)(Vs.Bi.nodes)).pathname,children:(0,$.jsx)(N.G,{parentRef:y,additionalNodesProps:n})}),(0,$.jsx)(o.qh,{path:(0,v.a3)((0,Vs.a)(Vs.Bi.storage)).pathname,children:(0,$.jsx)(f.z,{parentRef:y})}),(0,$.jsx)(o.qh,{path:(0,v.a3)((0,Vs.a)(Vs.Bi.versions)).pathname,children:(0,$.jsx)(ze,{versionToColor:G,cluster:O})}),(0,$.jsx)(o.qh,{render:()=>(0,$.jsx)(o.rd,{to:(0,v.a3)((0,Vs.a)(w))})})]})]})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/6030.b30fca36.chunk.js b/ydb/core/viewer/monitoring/static/js/6030.b30fca36.chunk.js new file mode 100644 index 0000000000..e2b7d92595 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/6030.b30fca36.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[6030],{3685:(e,s,t)=>{t.d(s,{$:()=>r});var i=t(54090),n=t(77506),a=t(33775),l=t(60712);const o=(0,n.cn)("ydb-entity-page-title");function r({entityName:e,status:s=i.m.Grey,id:t,className:n}){return(0,l.jsxs)("div",{className:o(null,n),children:[(0,l.jsx)("span",{className:o("prefix"),children:e}),(0,l.jsx)(a.k,{className:o("icon"),status:s,size:"s"}),t]})}},18677:(e,s,t)=>{t.d(s,{A:()=>n});var i=t(59284);const n=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14M6.53 5.47a.75.75 0 0 0-1.06 1.06L6.94 8 5.47 9.47a.75.75 0 1 0 1.06 1.06L8 9.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L9.06 8l1.47-1.47a.75.75 0 1 0-1.06-1.06L8 6.94z",clipRule:"evenodd"}))},22983:(e,s,t)=>{t.d(s,{B:()=>d});var i=t(59284),n=t(84476),a=t(84375),l=t(55974),o=t(42829),r=t(60712);function d({children:e,onConfirmAction:s,onConfirmActionSuccess:t,dialogHeader:d,dialogText:c,retryButtonText:u,buttonDisabled:v=!1,buttonView:h="action",buttonTitle:p,buttonClassName:m,withPopover:g=!1,popoverContent:x,popoverPlacement:f="right",popoverDisabled:k=!0}){const[b,y]=i.useState(!1),[j,N]=i.useState(!1),[w,D]=i.useState(!1),I=()=>(0,r.jsx)(n.$,{onClick:()=>y(!0),view:h,disabled:v,loading:!v&&j,className:m,title:p,children:e});return(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(l.g,{visible:b,header:d,text:c,withRetry:w,retryButtonText:u,onConfirm:async e=>{N(!0),await s(e)},onConfirmActionSuccess:async()=>{D(!1);try{await(null===t||void 0===t?void 0:t())}finally{N(!1)}},onConfirmActionError:e=>{D((0,o.D)(e)),N(!1)},onClose:()=>{y(!1)}}),g?(0,r.jsx)(a.A,{content:x,placement:f,disabled:k,children:I()}):I()]})}},42655:(e,s,t)=>{t.d(s,{y:()=>c});var i=t(59284),n=t(89169),a=t(77506),l=t(66781),o=t(60712);const r=(0,a.cn)("ydb-info-viewer-skeleton"),d=()=>(0,o.jsxs)("div",{className:r("label"),children:[(0,o.jsx)(n.E,{className:r("label__text")}),(0,o.jsx)("div",{className:r("label__dots")})]}),c=({rows:e=8,className:s,delay:t=600})=>{const[a]=(0,l.y)(t);let c=(0,o.jsxs)(i.Fragment,{children:[(0,o.jsx)(d,{}),(0,o.jsx)(n.E,{className:r("value")})]});return a||(c=null),(0,o.jsx)("div",{className:r(null,s),children:[...new Array(e)].map(((e,s)=>(0,o.jsx)("div",{className:r("row"),children:c},`skeleton-row-${s}`)))})}},42829:(e,s,t)=>{t.d(s,{D:()=>i});const i=e=>Boolean(e&&"object"===typeof e&&"retryPossible"in e&&e.retryPossible)},55974:(e,s,t)=>{t.d(s,{g:()=>x});var i=t(59284),n=t(18677),a=t(71153),l=t(74321),o=t(2198),r=t(99991),d=t(89954),c=t(77506),u=t(48372);const v=JSON.parse('{"default-error":"Something went wrong, action cannot be completed","no-rights-error":"You don\'t have enough rights to complete the operation","button-confirm":"Confirm","button-retry":"Retry","button-cancel":"Cancel","button-close":"Close","checkbox-text":"I understand what I\'m doing"}'),h=(0,u.g4)("ydb-critical-action-dialog",{en:v});var p=t(60712);const m=(0,c.cn)("ydb-critical-dialog"),g=e=>e.data&&"issues"in e.data&&e.data.issues?(0,p.jsx)(d.O,{hideSeverity:!0,data:e.data}):403===e.status?h("no-rights-error"):e.statusText?e.statusText:h("default-error");function x({visible:e,header:s,text:t,withRetry:d,retryButtonText:c,withCheckBox:u,onClose:v,onConfirm:x,onConfirmActionSuccess:f,onConfirmActionError:k}){const[b,y]=i.useState(!1),[j,N]=i.useState(),[w,D]=i.useState(!1),I=async e=>(y(!0),x(e).then((()=>{f(),v()})).catch((e=>{k(e),N(e)})).finally((()=>{y(!1)})));return(0,p.jsx)(o.l,{open:e,hasCloseButton:!1,className:m(),size:"s",onClose:v,onTransitionExited:()=>{N(void 0),D(!1)},children:j?(0,p.jsxs)(i.Fragment,{children:[(0,p.jsx)(o.l.Header,{caption:s}),(0,p.jsx)(o.l.Body,{className:m("body"),children:(0,p.jsxs)("div",{className:m("body-message",{error:!0}),children:[(0,p.jsx)("span",{className:m("error-icon"),children:(0,p.jsx)(n.A,{width:"24",height:"22"})}),g(j)]})}),(0,p.jsx)(o.l.Footer,{loading:!1,preset:"default",textButtonApply:d?c||h("button-retry"):void 0,textButtonCancel:h("button-close"),onClickButtonApply:()=>I(!0),onClickButtonCancel:v})]}):(0,p.jsxs)(i.Fragment,{children:[(0,p.jsx)(o.l.Header,{caption:s}),(0,p.jsxs)(o.l.Body,{className:m("body"),children:[(0,p.jsxs)("div",{className:m("body-message",{warning:!0}),children:[(0,p.jsx)("span",{className:m("warning-icon"),children:(0,p.jsx)(r.I,{data:a.A,size:24})}),t]}),u?(0,p.jsx)(l.S,{checked:w,onUpdate:D,children:h("checkbox-text")}):null]}),(0,p.jsx)(o.l.Footer,{loading:b,preset:"default",textButtonApply:h("button-confirm"),textButtonCancel:h("button-cancel"),propsButtonApply:{type:"submit",disabled:u&&!w},onClickButtonCancel:v,onClickButtonApply:()=>I()})]})})}},58389:(e,s,t)=>{t.d(s,{B:()=>u});var i=t(87184),n=t(77506),a=t(90053),l=t(70043),o=t(60712);const r=(0,n.cn)("ydb-page-meta"),d="\xa0\xa0\xb7\xa0\xa0";function c({items:e,loading:s}){return(0,o.jsx)("div",{className:r("info"),children:s?(0,o.jsx)(l.E,{className:r("skeleton")}):e.filter((e=>Boolean(e))).join(d)})}function u({className:e,...s}){return(0,o.jsxs)(i.s,{gap:1,alignItems:"center",justifyContent:"space-between",className:r(null,e),children:[(0,o.jsx)(c,{...s}),(0,o.jsx)(a.E,{})]})}},67808:(e,s,t)=>{t.d(s,{E:()=>k});t(59284);var i=t(87184),n=t(92459),a=t(7435),l=t(77506),o=t(56839),r=t(31684),d=t(7187),c=t(12888),u=t(41650),v=t(60073),h=t(25196),p=t(15132),m=t(33775),g=t(39110),x=t(60712);const f=(0,l.cn)("ydb-vdisk-info");function k({data:e,withVDiskPageLink:s,withTitle:t,...l}){var d,f;const k=(0,c.X)(),{AllocatedSize:y,DiskSpace:j,FrontQueues:N,Guid:w,Replicated:D,VDiskState:I,VDiskSlotId:S,Kind:C,SatisfactionRank:A,AvailableSize:E,HasUnreadableBlobs:_,IncarnationGuid:P,InstanceGuid:B,StoragePoolName:T,ReadThroughput:R,WriteThroughput:F,PDiskId:$,NodeId:V}=e||{},O=[];var L,z;((0,a.f8)(S)&&O.push({label:(0,g.r)("slot-id"),value:S}),(0,a.f8)(T)&&O.push({label:(0,g.r)("pool-name"),value:T}),(0,a.f8)(I)&&O.push({label:(0,g.r)("state-status"),value:I}),Number(y)>=0&&Number(E)>=0&&O.push({label:(0,g.r)("size"),value:(0,x.jsx)(p.O,{value:y,capacity:Number(y)+Number(E),formatValues:o.vX,colorizeProgress:!0})}),(0,a.f8)(C)&&O.push({label:(0,g.r)("kind"),value:C}),(0,a.f8)(w)&&O.push({label:(0,g.r)("guid"),value:w}),(0,a.f8)(P)&&O.push({label:(0,g.r)("incarnation-guid"),value:P}),(0,a.f8)(B)&&O.push({label:(0,g.r)("instance-guid"),value:B}),(0,a.f8)(D)&&O.push({label:(0,g.r)("replication-status"),value:D?(0,g.r)("yes"):(0,g.r)("no")}),(0,a.f8)(j)&&O.push({label:(0,g.r)("space-status"),value:(0,x.jsx)(m.k,{status:j})}),(0,a.f8)(null===A||void 0===A||null===(d=A.FreshRank)||void 0===d?void 0:d.Flag))&&O.push({label:(0,g.r)("fresh-rank-satisfaction"),value:(0,x.jsx)(m.k,{status:null===A||void 0===A||null===(L=A.FreshRank)||void 0===L?void 0:L.Flag})});(0,a.f8)(null===A||void 0===A||null===(f=A.LevelRank)||void 0===f?void 0:f.Flag)&&O.push({label:(0,g.r)("level-rank-satisfaction"),value:(0,x.jsx)(m.k,{status:null===A||void 0===A||null===(z=A.LevelRank)||void 0===z?void 0:z.Flag})});(0,a.f8)(N)&&O.push({label:(0,g.r)("front-queues"),value:(0,x.jsx)(m.k,{status:N})}),(0,a.f8)(_)&&O.push({label:(0,g.r)("has-unreadable-blobs"),value:_?(0,g.r)("yes"):(0,g.r)("no")}),(0,a.f8)(R)&&O.push({label:(0,g.r)("read-throughput"),value:(0,u.O4)(R)}),(0,a.f8)(F)&&O.push({label:(0,g.r)("write-throughput"),value:(0,u.O4)(F)});if((0,a.f8)($)&&(0,a.f8)(V)&&(0,a.f8)(S)){const e=[];if(s){const s=(0,n.yX)(S,$,V);e.push((0,x.jsx)(h.K,{title:(0,g.r)("vdisk-page"),url:s,external:!1},s))}if(k){const s=(0,r.Wg)({nodeId:V,pDiskId:$,vDiskSlotId:S});e.push((0,x.jsx)(h.K,{title:(0,g.r)("developer-ui"),url:s},s))}e.length&&O.push({label:(0,g.r)("links"),value:(0,x.jsx)(i.s,{wrap:"wrap",gap:2,children:e})})}const H=e&&t?(0,x.jsx)(b,{data:e}):null;return(0,x.jsx)(v.z_,{info:O,title:H,...l})}function b({data:e}){return(0,x.jsxs)("div",{className:f("title"),children:[(0,g.r)("vdiks-title"),(0,x.jsx)(m.k,{status:(0,d.XY)(e.Severity)}),e.StringifiedId]})}},70043:(e,s,t)=>{t.d(s,{E:()=>l});var i=t(89169),n=t(66781),a=t(60712);const l=({delay:e=600,className:s})=>{const[t]=(0,n.y)(e);return t?(0,a.jsx)(i.E,{className:s}):null}},74321:(e,s,t)=>{t.d(s,{S:()=>d});var i=t(59284),n=t(64222),a=t(46898);function l(e){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 17",width:"16",height:"16",fill:"currentColor"},e),i.createElement("path",{d:"M4 7h9v3H4z"}))}function o(e){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 10",width:"16",height:"16",fill:"currentColor"},e),i.createElement("path",{d:"M.49 5.385l1.644-1.644 4.385 4.385L4.874 9.77.49 5.385zm4.384 1.096L10.356 1 12 2.644 6.519 8.126 4.874 6.48v.001z"}))}const r=(0,t(69220).om)("checkbox"),d=i.forwardRef((function(e,s){const{size:t="m",indeterminate:d,disabled:c=!1,content:u,children:v,title:h,style:p,className:m,qa:g}=e,{checked:x,inputProps:f}=(0,n.v)(e),k=u||v,b=i.createElement("span",{className:r("indicator")},i.createElement("span",{className:r("icon"),"aria-hidden":!0},d?i.createElement(l,{className:r("icon-svg",{type:"dash"})}):i.createElement(o,{className:r("icon-svg",{type:"tick"})})),i.createElement("input",Object.assign({},f,{className:r("control")})),i.createElement("span",{className:r("outline")}));return i.createElement(a.m,{ref:s,title:h,style:p,size:t,disabled:c,className:r({size:t,disabled:c,indeterminate:d,checked:x},m),qa:g,control:b},k)}))},80208:(e,s,t)=>{t.r(s),t.d(s,{VDiskPage:()=>P});var i=t(59284);const n=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.28 4.78a.75.75 0 0 0 0-1.06l-2.5-2.5a.75.75 0 1 0-1.06 1.06L6.94 3.5H1.75a.75.75 0 1 0 0 1.5h5.19L5.72 6.22a.75.75 0 1 0 1.06 1.06zm-.06 3.94-2.5 2.5a.75.75 0 0 0 0 1.06l2.5 2.5a.75.75 0 1 0 1.06-1.06L9.06 12.5h5.19a.75.75 0 0 0 0-1.5H9.06l1.22-1.22a.75.75 0 1 0-1.06-1.06M14 4.25a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0M3.75 13.5a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5",clipRule:"evenodd"}));var a=t(99991),l=t(44992),o=t(61750),r=t(67087),d=t(22983),c=t(3685),u=t(44508),v=t(42655),h=t(58389),p=t(67808),m=t(21334),g=t(67028),x=t(40174),f=t(7187),k=t(27295),b=t(78034);const y=m.F.injectEndpoints({endpoints:e=>({getVDiskData:e.query({queryFn:async({nodeId:e,pDiskId:s,vDiskSlotId:t},{signal:i})=>{try{const n=await Promise.all([window.api.viewer.getVDiskInfo({nodeId:e,pDiskId:s,vDiskSlotId:t},{signal:i}),window.api.viewer.getNodeWhiteboardPDiskInfo({nodeId:e,pDiskId:s},{signal:i}),window.api.viewer.getNodeInfo(e,{signal:i})]);return{data:function([e,s,t]){var i,n,a,l,o,r,d;const c=null===(i=e.VDiskStateInfo)||void 0===i?void 0:i[0],u=(0,k.WT)(c),v=null===(n=s.PDiskStateInfo)||void 0===n?void 0:n[0],h=(0,k.or)(v),p=null===(a=t.SystemStateInfo)||void 0===a?void 0:a[0],m=(0,b.q1)(p),g=null!==(l=null!==(o=u.NodeId)&&void 0!==o?o:h.NodeId)&&void 0!==l?l:m.NodeId,x=m.Host,f=null===(r=m.Roles)||void 0===r?void 0:r[0],y=m.DC,j=null!==(d=u.PDiskId)&&void 0!==d?d:h.PDiskId,N=h.Type;return{...u,NodeId:g,NodeHost:x,NodeType:f,NodeDC:y,PDiskId:j,PDiskType:N}}(n)}}catch(n){return{error:n}}},providesTags:(e,s,t)=>["All",{type:"VDiskData",id:(0,f.gh)(t.nodeId,t.pDiskId,t.vDiskSlotId)}]})}),overrideExisting:"throw"});var j=t(7435),N=t(77506),w=t(90182),D=t(12888),I=t(99936),S=t(48372);const C=JSON.parse('{"fqdn":"FQDN","node":"Node","pdisk":"PDisk","vdisk":"VDisk","storage":"Storage","evict-vdisk-button":"Evict VDisk","force-evict-vdisk-button":"Evict anyway","evict-vdisk-dialog-header":"Evict VDisk","evict-vdisk-dialog-text":"VDisk will be evicted. Do you want to proceed?","evict-vdisk-not-allowed":"You don\'t have enough rights to evict VDisk"}'),A=(0,S.g4)("ydb-vDisk-page",{en:C});var E=t(60712);const _=(0,N.cn)("ydb-vdisk-page");function P(){const e=(0,w.YQ)(),s=i.useRef(null),t=(0,D.X)(),k=(0,g.c2)(),[{nodeId:b,pDiskId:N,vDiskSlotId:S}]=(0,r.useQueryParams)({nodeId:r.StringParam,pDiskId:r.StringParam,vDiskSlotId:r.StringParam});i.useEffect((()=>{e((0,x.g)("vDisk",{nodeId:b,pDiskId:N,vDiskSlotId:S}))}),[e,b,N,S]);const[C]=(0,w.Nt)(),P=(0,j.f8)(b)&&(0,j.f8)(N)&&(0,j.f8)(S)?{nodeId:b,pDiskId:N,vDiskSlotId:S}:l.hT,{currentData:B={},isFetching:T,error:R}=y.useGetVDiskDataQuery(P,{pollingInterval:C}),F=T&&void 0===B,{NodeHost:$,NodeId:V,NodeType:O,NodeDC:L,PDiskId:z,PDiskType:H,Severity:G,VDiskId:M}=B,{GroupID:q,GroupGeneration:Y,Ring:W,Domain:X,VDisk:Q}=M||{},J=(0,j.f8)(q)&&(0,j.f8)(Y)&&(0,j.f8)(W)&&(0,j.f8)(X)&&(0,j.f8)(Q),K=async e=>{if(J){var s;const t={groupId:q,groupGeneration:Y,failRealmIdx:W,failDomainIdx:X,vDiskIdx:Q,force:e};let i;if(i=k?await window.api.vdisk.evictVDisk(t):await window.api.tablets.evictVDiskOld(t),!1===(null===(s=i)||void 0===s?void 0:s.result)){throw{statusText:i.error,retryPossible:i.forceRetryPossible}}}},U=()=>{e(m.F.util.invalidateTags([{type:"VDiskData",id:(0,f.gh)(b||0,N||0,S||0)},"StorageData"]))};return(0,E.jsxs)("div",{className:_(null),ref:s,children:[(()=>{const e=S?`${A("vdisk")} ${S}`:A("vdisk"),s=N?`${A("pdisk")} ${N}`:A("pdisk"),t=$||A("node");return(0,E.jsx)(o.mg,{titleTemplate:`%s - ${e} - ${s} \u2014 ${t} \u2014 YDB Monitoring`,defaultTitle:`${e} - ${s} \u2014 ${t} \u2014 YDB Monitoring`})})(),(()=>{const e=$?`${A("fqdn")}: ${$}`:void 0,s=V?`${A("node")}: ${V}`:void 0,t=V?`${A("pdisk")}: ${z}`:void 0;return(0,E.jsx)(h.B,{className:_("meta"),loading:F,items:[e,s,O,L,t,H]})})(),(0,E.jsx)(c.$,{className:_("title"),entityName:A("vdisk"),status:(0,f.XY)(G),id:null===B||void 0===B?void 0:B.StringifiedId}),(0,E.jsx)("div",{className:_("controls"),children:(0,E.jsxs)(d.B,{onConfirmAction:K,onConfirmActionSuccess:U,buttonDisabled:!J||!t,buttonView:"normal",dialogHeader:A("evict-vdisk-dialog-header"),dialogText:A("evict-vdisk-dialog-text"),retryButtonText:A("force-evict-vdisk-button"),withPopover:!0,popoverContent:A("evict-vdisk-not-allowed"),popoverDisabled:t,children:[(0,E.jsx)(a.I,{data:n}),A("evict-vdisk-button")]})}),F?(0,E.jsx)(v.y,{rows:20}):(0,E.jsxs)(i.Fragment,{children:[R?(0,E.jsx)(u.o,{error:R}):null,(0,E.jsx)(p.E,{data:B,className:_("info")}),(0,j.f8)(q)&&(0,j.f8)(b)?(0,E.jsxs)(i.Fragment,{children:[(0,E.jsx)("div",{className:_("storage-title"),children:A("storage")}),(0,E.jsx)(I.z,{groupId:q,nodeId:b,pDiskId:null!==N&&void 0!==N?N:void 0,parentRef:s,viewContext:{groupId:null===q||void 0===q?void 0:q.toString(),nodeId:null===b||void 0===b?void 0:b.toString(),pDiskId:null===N||void 0===N?void 0:N.toString(),vDiskSlotId:null===S||void 0===S?void 0:S.toString()}})]}):null]})]})}},89954:(e,s,t)=>{t.d(s,{O:()=>I});var i=t(59284),n=t(45720),a=t(16929),l=t(71153),o=t(18677),r=t(84476),d=t(33705),c=t(67884),u=t(99991),v=t(77506),h=t(48372);const p=JSON.parse('{"default_collapse_label":"Show less","default_expand_label":"Show more","chars_count":[" ({{count}} symbol)"," ({{count}} symbols)"," ({{count}} symbols)"," ({{count}} symbols)"]}'),m=JSON.parse('{"default_collapse_label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043c\u0435\u043d\u044c\u0448\u0435","default_expand_label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0435\u0449\u0451","chars_count":[" ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u0430)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432)"]}'),g=(0,h.g4)("ydb-shorty-string",{ru:m,en:p});var x=t(60712);const f=(0,v.cn)("kv-shorty-string");function k({value:e="",limit:s=200,strict:t=!1,displayLength:n=!0,render:a=e=>e,onToggle:l,expandLabel:o=g("default_expand_label"),collapseLabel:r=g("default_collapse_label")}){const[d,u]=i.useState(!1),v=(d?r:o)+(n&&!d?g("chars_count",{count:e.length}):""),h=e.length>s+(t?0:v.length),p=d||!h?e:e.slice(0,s-4)+"\xa0...";return(0,x.jsxs)("div",{className:f(),children:[a(p),h?(0,x.jsx)(c.N,{className:f("toggle"),href:"#",onClick:e=>{e.stopPropagation(),e.preventDefault(),u((e=>!e)),null===l||void 0===l||l()},children:v}):null]})}var b=t(41650);const y=["S_FATAL","S_ERROR","S_WARNING","S_INFO"];function j(e){return function(e){return!!e&&void 0!==y[e]}(e)?y[e]:"S_INFO"}const N=(0,v.cn)("kv-result-issues"),w=(0,v.cn)("kv-issues"),D=(0,v.cn)("kv-issue");function I({data:e,hideSeverity:s}){const[t,n]=i.useState(!1),a="string"===typeof e||null===e||void 0===e?void 0:e.issues,l=Array.isArray(a)&&a.length>0;return(0,x.jsxs)("div",{className:N(),children:[(0,x.jsxs)("div",{className:N("error-message"),children:[(()=>{let t;if("string"===typeof e)t=e;else{var n,a;const l=j(null===e||void 0===e||null===(n=e.error)||void 0===n?void 0:n.severity);t=(0,x.jsxs)(i.Fragment,{children:[s?null:(0,x.jsxs)(i.Fragment,{children:[(0,x.jsx)(B,{severity:l})," "]}),(0,x.jsx)("span",{className:N("error-message-text"),children:null===e||void 0===e||null===(a=e.error)||void 0===a?void 0:a.message})]})}return t})(),l&&(0,x.jsx)(r.$,{view:"normal",onClick:()=>n(!t),children:t?"Hide details":"Show details"})]}),l&&t&&(0,x.jsx)(S,{hideSeverity:s,issues:a})]})}function S({issues:e,hideSeverity:s}){const t=null===e||void 0===e?void 0:e.reduce(((e,s)=>{var t;const i=null!==(t=s.severity)&&void 0!==t?t:10;return Math.min(e,i)}),10);return(0,x.jsx)("div",{className:w(null),children:null===e||void 0===e?void 0:e.map(((e,i)=>(0,x.jsx)(C,{hideSeverity:s,issue:e,expanded:e===t},i)))})}function C({issue:e,hideSeverity:s,level:t=0}){const[n,a]=i.useState(!0),l=j(e.severity),o=e.issues,c=Array.isArray(o)&&o.length>0,u=n?"bottom":"right";return(0,x.jsxs)("div",{className:D({leaf:!c,"has-issues":c}),children:[(0,x.jsxs)("div",{className:D("line"),children:[c&&(0,x.jsx)(r.$,{view:"flat-secondary",onClick:()=>a(!n),className:D("arrow-toggle"),children:(0,x.jsx)(d.I,{direction:u,size:16})}),s?null:(0,x.jsx)(B,{severity:l}),(0,x.jsx)(A,{issue:e}),e.issue_code?(0,x.jsxs)("span",{className:D("code"),children:["Code: ",e.issue_code]}):null]}),c&&n&&(0,x.jsx)("div",{className:D("issues"),children:(0,x.jsx)(E,{issues:o,level:t+1,expanded:n})})]})}function A({issue:e}){var s;const t=function(e){const{position:s}=e;if("object"!==typeof s||null===s||!(0,b.kf)(s.row))return"";const{row:t,column:i}=s;return(0,b.kf)(i)?`${t}:${i}`:`line ${t}`}(e),i=window.ydbEditor,n=()=>(0,x.jsxs)("span",{className:D("message"),children:[t&&(0,x.jsx)("span",{className:D("place-text"),title:"Position",children:t}),(0,x.jsx)("div",{className:D("message-text"),children:(0,x.jsx)(k,{value:e.message,expandLabel:"Show full message"})})]}),{row:a,column:l}=null!==(s=e.position)&&void 0!==s?s:{};if(!((0,b.kf)(a)&&i))return n();return(0,x.jsx)(c.N,{href:"#",extraProps:{draggable:!1},onClick:()=>{const e={lineNumber:a,column:null!==l&&void 0!==l?l:0};i.setPosition(e),i.revealPositionInCenterIfOutsideViewport(e),i.focus()},view:"primary",children:n()})}function E(e){const{issues:s,level:t,expanded:i}=e;return(0,x.jsx)("div",{className:D("list"),children:s.map(((e,s)=>(0,x.jsx)(C,{issue:e,level:t,expanded:i},s)))})}const _={S_INFO:n.A,S_WARNING:a.A,S_ERROR:l.A,S_FATAL:o.A},P=(0,v.cn)("yql-issue-severity");function B({severity:e}){const s=e.slice(2).toLowerCase();return(0,x.jsxs)("span",{className:P({severity:s}),children:[(0,x.jsx)(u.I,{className:P("icon"),data:_[e]}),(0,x.jsx)("span",{className:P("title"),children:s})]})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/6820.73ff230e.chunk.js b/ydb/core/viewer/monitoring/static/js/6820.73ff230e.chunk.js deleted file mode 100644 index 786b18bca5..0000000000 --- a/ydb/core/viewer/monitoring/static/js/6820.73ff230e.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 6820.73ff230e.chunk.js.LICENSE.txt */ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[6820],{71383:(e,t)=>{"use strict";t.q=function(e){var t,a=[],o=String(e||r),l=o.indexOf(n),c=0,i=!1;for(;!i;)-1===l&&(l=o.length,i=!0),!(t=o.slice(c,l).trim())&&i||a.push(t),c=l+1,l=o.indexOf(n,c);return a};var n=",",a=" ",r=""},91448:e=>{"use strict";e.exports=function(e,n){var a,r,o,l=e||"",c=n||"div",i={},s=0;for(;s<l.length;)t.lastIndex=s,o=t.exec(l),(a=l.slice(s,o?o.index:l.length))&&(r?"#"===r?i.id=a:i.className?i.className.push(a):i.className=[a]:c=a,s+=a.length),o&&(r=o[0],s++);return{type:"element",tagName:c,properties:i,children:[]}};var t=/[#.]/g},27376:(e,t,n)=>{"use strict";var a=n(47556),r=n(72996),o=n(91448),l=n(82140).q,c=n(71383).q;e.exports=function(e,t,n){var r=n?function(e){var t,n=e.length,a=-1,r={};for(;++a<n;)r[(t=e[a]).toLowerCase()]=t;return r}(n):null;return function(e,n){var a,l=o(e,t),c=Array.prototype.slice.call(arguments,2),u=l.tagName.toLowerCase();l.tagName=r&&i.call(r,u)?r[u]:u,n&&function(e,t){return"string"===typeof e||"length"in e||function(e,t){var n=t.type;if("input"===e||!n||"string"!==typeof n)return!1;if("object"===typeof t.children&&"length"in t.children)return!0;if(n=n.toLowerCase(),"button"===e)return"menu"!==n&&"submit"!==n&&"reset"!==n&&"button"!==n;return"value"in t}(t.tagName,e)}(n,l)&&(c.unshift(n),n=null);if(n)for(a in n)d(l.properties,a,n[a]);s(l.children,c),"template"===l.tagName&&(l.content={type:"root",children:l.children},l.children=[]);return l};function d(t,n,r){var o,i,s;null!==r&&void 0!==r&&r===r&&(i=(o=a(e,n)).property,"string"===typeof(s=r)&&(o.spaceSeparated?s=l(s):o.commaSeparated?s=c(s):o.commaOrSpaceSeparated&&(s=l(c(s).join(" ")))),"style"===i&&"string"!==typeof r&&(s=function(e){var t,n=[];for(t in e)n.push([t,e[t]].join(": "));return n.join("; ")}(s)),"className"===i&&t.className&&(s=t.className.concat(s)),t[i]=function(e,t,n){var a,r,o;if("object"!==typeof n||!("length"in n))return u(e,t,n);r=n.length,a=-1,o=[];for(;++a<r;)o[a]=u(e,t,n[a]);return o}(o,i,s))}};var i={}.hasOwnProperty;function s(e,t){var n,a;if("string"!==typeof t&&"number"!==typeof t)if("object"===typeof t&&"length"in t)for(n=-1,a=t.length;++n<a;)s(e,t[n]);else{if("object"!==typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");e.push(t)}else e.push({type:"text",value:String(t)})}function u(e,t,n){var a=n;return e.number||e.positiveNumber?isNaN(a)||""===a||(a=Number(a)):(e.boolean||e.overloadedBoolean)&&("string"!==typeof a||""!==a&&r(n)!==r(t)||(a=!0)),a}},48893:(e,t,n)=>{"use strict";var a=n(70730),r=n(27376)(a,"div");r.displayName="html",e.exports=r},55942:(e,t,n)=>{"use strict";e.exports=n(48893)},73934:e=>{"use strict";e.exports=function(e){var t="string"===typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}},494:(e,t,n)=>{"use strict";var a=n(73934),r=n(94667);e.exports=function(e){return a(e)||r(e)}},94667:e=>{"use strict";e.exports=function(e){var t="string"===typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}},83991:e=>{"use strict";e.exports=function(e){var t="string"===typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}},43733:(e,t,n)=>{"use strict";n.d(t,{RE:()=>a,XB:()=>o,to:()=>r});const a="$row|$rows|action|add|all|alter|and|any|as|asc|assume|async|bigserial|serial|smallserial|serial8|serial4|serial2|begin|bernoulli|between|by|case|changefeed|column|columns|commit|compact|create|cross|cube|declare|define|delete|desc|dict|discard|distinct|do|drop|else|empty_action|end|erase|evaluate|exclusion|exists|export|family|flatten|for|from|full|global|group|grouping|having|if|ignore|ilike|import|in|index|inner|insert|into|is|join|key|left|like|limit|list|match|not|null|nulls|offset|on|only|optional|or|order|over|partition|pragma|presort|primary|process|reduce|regexp|repeatable|replace|respect|result|return|right|rlike|rollup|sample|schema|select|semi|set|sets|stream|subquery|sync|table|tablesample|then|truncate|union|intersect|except|update|upsert|use|using|values|view|when|where|window|with|without|xor|callable|resource|tagged|generic|unit|void|emptylist|emptydict|flow|callable|resource|tagged|generic|unit|void|emptylist|emptydict|flow".split("|"),r="bool|date|datetime|decimal|double|float|int16|int32|int64|int8|interval|json|jsondocument|string|timestamp|tzdate|tzdatetime|tztimestamp|uint16|uint32|uint64|uint8|utf8|uuid|yson|text|bytes".split("|"),o="abs|aggregate_by|aggregate_list|aggregate_list_distinct|agg_list|agg_list_distinct|as_table|avg|avg_if|adaptivedistancehistogram|adaptivewardhistogram|adaptiveweighthistogram|addmember|addtimezone|aggregateflatten|aggregatetransforminput|aggregatetransformoutput|aggregationfactory|asatom|asdict|asdictstrict|asenum|aslist|asliststrict|asset|assetstrict|asstruct|astagged|astuple|asvariant|atomcode|bitcast|bit_and|bit_or|bit_xor|bool_and|bool_or|bool_xor|bottom|bottom_by|blockwardhistogram|blockweighthistogram|cast|coalesce|concat|concat_strict|correlation|count|count_if|covariance|covariance_population|covariance_sample|callableargument|callableargumenttype|callableresulttype|callabletype|callabletypecomponents|callabletypehandle|choosemembers|combinemembers|countdistinctestimate|currentauthenticateduser|currentoperationid|currentoperationsharedid|currenttzdate|currenttzdatetime|currenttztimestamp|currentutcdate|currentutcdatetime|currentutctimestamp|dense_rank|datatype|datatypecomponents|datatypehandle|dictaggregate|dictcontains|dictcreate|dicthasitems|dictitems|dictkeytype|dictkeys|dictlength|dictlookup|dictpayloadtype|dictpayloads|dicttype|dicttypecomponents|dicttypehandle|each|each_strict|emptydicttype|emptydicttypehandle|emptylisttype|emptylisttypehandle|endswith|ensure|ensureconvertibleto|ensuretype|enum|evaluateatom|evaluatecode|evaluateexpr|evaluatetype|expandstruct|filter|filter_strict|find|first_value|folder|filecontent|filepath|flattenmembers|forceremovemember|forceremovemembers|forcerenamemembers|forcespreadmembers|formatcode|formattype|frombytes|frompg|funccode|greatest|grouping|gathermembers|generictype|histogram|hll|hoppingwindowpgcast|hyperloglog|if|if_strict|instanceof|json_exists|json_query|json_value|jointablerow|just|lag|last_value|lead|least|len|length|like|likely|like_strict|lambdaargumentscount|lambdacode|lambdaoptionalargumentscount|linearhistogram|listaggregate|listall|listany|listavg|listcode|listcollect|listconcat|listcreate|listdistinct|listenumerate|listextend|listextendstrict|listextract|listfilter|listflatmap|listflatten|listfold|listfold1|listfold1map|listfoldmap|listfromrange|listfromtuple|listhas|listhasitems|listhead|listindexof|listitemtype|listlast|listlength|listmap|listmax|listmin|listnotnull|listreplicate|listreverse|listskip|listskipwhile|listskipwhileinclusive|listsort|listsortasc|listsortdesc|listsum|listtake|listtakewhile|listtakewhileinclusive|listtop|listtopsort|listtopasc|listtopdesc|listtopsortasc|listtopsortdesc|listtotuple|listtype|listtypehandle|listunionall|listuniq|listzip|listzipall|loghistogram|logarithmichistogram|max|max_by|max_of|median|min|min_by|min_of|mode|multi_aggregate_by|nanvl|nvl|nothing|nulltype|nulltypehandle|optionalitemtype|optionaltype|optionaltypehandle|percentile|parsefile|parsetype|parsetypehandle|pgand|pgarray|pgcall|pgconst|pgnot|pgop|pgor|pickle|quotecode|range|range_strict|rank|regexp|regexp_strict|rfind|row_number|random|randomnumber|randomuuid|removemember|removemembers|removetimezone|renamemembers|replacemember|reprcode|resourcetype|resourcetypehandle|resourcetypetag|some|stddev|stddev_population|stddev_sample|substring|sum|sum_if|sessionstart|sessionwindow|setcreate|setdifference|setincludes|setintersection|setisdisjoint|setsymmetricdifference|setunion|spreadmembers|stablepickle|startswith|staticmap|staticzip|streamitemtype|streamtype|streamtypehandle|structmembertype|structmembers|structtypecomponents|structtypehandle|subqueryextend|subqueryextendfor|subquerymerge|subquerymergefor|subqueryunionall|subqueryunionallfor|subqueryunionmerge|subqueryunionmergefor|top|topfreq|top_by|tablename|tablepath|tablerecordindex|tablerow|tablerows|taggedtype|taggedtypecomponents|taggedtypehandle|tobytes|todict|tomultidict|topg|toset|tosorteddict|tosortedmultidict|trymember|tupleelementtype|tupletype|tupletypecomponents|tupletypehandle|typehandle|typekind|typeof|udaf|udf|unittype|unpickle|untag|unwrap|variance|variance_population|variance_sample|variant|varianttype|varianttypehandle|variantunderlyingtype|voidtype|voidtypehandle|way|worldcode|weakfield".split("|")},64016:e=>{"use strict";var t;e.exports=function(e){var n,a="&"+e+";";if((t=t||document.createElement("i")).innerHTML=a,59===(n=t.textContent).charCodeAt(n.length-1)&&"semi"!==e)return!1;return n!==a&&n}},72824:(e,t,n)=>{"use strict";var a=n(82719),r=n(21257),o=n(94667),l=n(83991),c=n(494),i=n(64016);e.exports=function(e,t){var n,o,l={};t||(t={});for(o in p)n=t[o],l[o]=null===n||void 0===n?p[o]:n;(l.position.indent||l.position.start)&&(l.indent=l.position.indent||[],l.position=l.position.start);return function(e,t){var n,o,l,p,R,q,H,B,U,W,V,Z,G,K,J,Y,X,Q,ee,te=t.additional,ne=t.nonTerminated,ae=t.text,re=t.reference,oe=t.warning,le=t.textContext,ce=t.referenceContext,ie=t.warningContext,se=t.position,ue=t.indent||[],de=e.length,pe=0,ge=-1,me=se.column||1,fe=se.line||1,he="",ye=[];"string"===typeof te&&(te=te.charCodeAt(0));Y=be(),B=oe?ve:d,pe--,de++;for(;++pe<de;)if(R===m&&(me=ue[ge]||1),(R=e.charCodeAt(pe))===y){if((H=e.charCodeAt(pe+1))===g||H===m||H===f||H===h||H===y||H===v||H!==H||te&&H===te){he+=u(R),me++;continue}for(Z=G=pe+1,ee=G,H===x?(ee=++Z,(H=e.charCodeAt(ee))===k||H===S?(K=O,ee=++Z):K=N):K=F,n="",V="",p="",J=j[K],ee--;++ee<de&&J(H=e.charCodeAt(ee));)p+=u(H),K===F&&s.call(a,p)&&(n=p,V=a[p]);(l=e.charCodeAt(ee)===b)&&(ee++,(o=K===F&&i(p))&&(n=p,V=o)),Q=1+ee-G,(l||ne)&&(p?K===F?(l&&!V?B(z,1):(n!==p&&(Q=1+(ee=Z+n.length)-Z,l=!1),l||(U=n?P:_,t.attribute?(H=e.charCodeAt(ee))===w?(B(U,Q),V=null):c(H)?V=null:B(U,Q):B(U,Q))),q=V):(l||B(L,Q),D(q=parseInt(p,C[K]))?(B(T,Q),q=u(A)):q in r?(B(M,Q),q=r[q]):(W="",I(q)&&B(M,Q),q>65535&&(W+=u((q-=65536)>>>10|55296),q=56320|1023&q),q=W+u(q))):K!==F&&B(E,Q)),q?(we(),Y=be(),pe=ee-1,me+=ee-G+1,ye.push(q),(X=be()).offset++,re&&re.call(ce,q,{start:Y,end:X},e.slice(G-1,ee)),Y=X):(p=e.slice(G-1,ee),he+=p,me+=p.length,pe=ee-1)}else 10===R&&(fe++,ge++,me=0),R===R?(he+=u(R),me++):we();return ye.join("");function be(){return{line:fe,column:me,offset:pe+(se.offset||0)}}function ve(e,t){var n=be();n.column+=t,n.offset+=t,oe.call(ie,$[e],n,e)}function we(){he&&(ye.push(he),ae&&ae.call(le,he,{start:Y,end:be()}),he="")}}(e,l)};var s={}.hasOwnProperty,u=String.fromCharCode,d=Function.prototype,p={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},g=9,m=10,f=12,h=32,y=38,b=59,v=60,w=61,x=35,k=88,S=120,A=65533,F="named",O="hexadecimal",N="decimal",C={};C[O]=16,C[N]=10;var j={};j[F]=c,j[N]=o,j[O]=l;var P=1,L=2,_=3,E=4,z=5,M=6,T=7,$={};function D(e){return e>=55296&&e<=57343||e>1114111}function I(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||65535===(65535&e)||65534===(65535&e)}$[P]="Named character references must be terminated by a semicolon",$[L]="Numeric character references must be terminated by a semicolon",$[_]="Named character references cannot be empty",$[E]="Numeric character references cannot be empty",$[z]="Named character references must be known",$[M]="Numeric character references cannot be disallowed",$[T]="Numeric character references cannot be outside the permissible Unicode range"},47556:(e,t,n)=>{"use strict";var a=n(72996),r=n(70302),o=n(58974),l="data";e.exports=function(e,t){var n=a(t),p=t,g=o;if(n in e.normal)return e.property[e.normal[n]];n.length>4&&n.slice(0,4)===l&&c.test(t)&&("-"===t.charAt(4)?p=function(e){var t=e.slice(5).replace(i,d);return l+t.charAt(0).toUpperCase()+t.slice(1)}(t):t=function(e){var t=e.slice(4);if(i.test(t))return e;t=t.replace(s,u),"-"!==t.charAt(0)&&(t="-"+t);return l+t}(t),g=r);return new g(p,t)};var c=/^data[-\w.:]+$/i,i=/-[a-z]/g,s=/[A-Z]/g;function u(e){return"-"+e.toLowerCase()}function d(e){return e.charAt(1).toUpperCase()}},70730:(e,t,n)=>{"use strict";var a=n(35228),r=n(83851),o=n(91622),l=n(61945),c=n(11666),i=n(59162);e.exports=a([o,r,l,c,i])},11666:(e,t,n)=>{"use strict";var a=n(73125),r=n(71478),o=a.booleanish,l=a.number,c=a.spaceSeparated;e.exports=r({transform:function(e,t){return"role"===t?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:o,ariaAutoComplete:null,ariaBusy:o,ariaChecked:o,ariaColCount:l,ariaColIndex:l,ariaColSpan:l,ariaControls:c,ariaCurrent:null,ariaDescribedBy:c,ariaDetails:null,ariaDisabled:o,ariaDropEffect:c,ariaErrorMessage:null,ariaExpanded:o,ariaFlowTo:c,ariaGrabbed:o,ariaHasPopup:null,ariaHidden:o,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:c,ariaLevel:l,ariaLive:null,ariaModal:o,ariaMultiLine:o,ariaMultiSelectable:o,ariaOrientation:null,ariaOwns:c,ariaPlaceholder:null,ariaPosInSet:l,ariaPressed:o,ariaReadOnly:o,ariaRelevant:null,ariaRequired:o,ariaRoleDescription:c,ariaRowCount:l,ariaRowIndex:l,ariaRowSpan:l,ariaSelected:o,ariaSetSize:l,ariaSort:null,ariaValueMax:l,ariaValueMin:l,ariaValueNow:l,ariaValueText:null,role:null}})},59162:(e,t,n)=>{"use strict";var a=n(73125),r=n(71478),o=n(70503),l=a.boolean,c=a.overloadedBoolean,i=a.booleanish,s=a.number,u=a.spaceSeparated,d=a.commaSeparated;e.exports=r({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:o,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:d,acceptCharset:u,accessKey:u,action:null,allow:null,allowFullScreen:l,allowPaymentRequest:l,allowUserMedia:l,alt:null,as:null,async:l,autoCapitalize:null,autoComplete:u,autoFocus:l,autoPlay:l,capture:l,charSet:null,checked:l,cite:null,className:u,cols:s,colSpan:null,content:null,contentEditable:i,controls:l,controlsList:u,coords:s|d,crossOrigin:null,data:null,dateTime:null,decoding:null,default:l,defer:l,dir:null,dirName:null,disabled:l,download:c,draggable:i,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:l,formTarget:null,headers:u,height:s,hidden:l,high:s,href:null,hrefLang:null,htmlFor:u,httpEquiv:u,id:null,imageSizes:null,imageSrcSet:d,inputMode:null,integrity:null,is:null,isMap:l,itemId:null,itemProp:u,itemRef:u,itemScope:l,itemType:u,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:l,low:s,manifest:null,max:null,maxLength:s,media:null,method:null,min:null,minLength:s,multiple:l,muted:l,name:null,nonce:null,noModule:l,noValidate:l,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:l,optimum:s,pattern:null,ping:u,placeholder:null,playsInline:l,poster:null,preload:null,readOnly:l,referrerPolicy:null,rel:u,required:l,reversed:l,rows:s,rowSpan:s,sandbox:u,scope:null,scoped:l,seamless:l,selected:l,shape:null,size:s,sizes:null,slot:null,span:s,spellCheck:i,src:null,srcDoc:null,srcLang:null,srcSet:d,start:s,step:null,style:null,tabIndex:s,target:null,title:null,translate:null,type:null,typeMustMatch:l,useMap:null,value:i,width:s,wrap:null,align:null,aLink:null,archive:u,axis:null,background:null,bgColor:null,border:s,borderColor:null,bottomMargin:s,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:l,declare:l,event:null,face:null,frame:null,frameBorder:null,hSpace:s,leftMargin:s,link:null,longDesc:null,lowSrc:null,marginHeight:s,marginWidth:s,noResize:l,noHref:l,noShade:l,noWrap:l,object:null,profile:null,prompt:null,rev:null,rightMargin:s,rules:null,scheme:null,scrolling:i,standby:null,summary:null,text:null,topMargin:s,valueType:null,version:null,vAlign:null,vLink:null,vSpace:s,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:l,disableRemotePlayback:l,prefix:null,property:null,results:s,security:null,unselectable:null}})},70503:(e,t,n)=>{"use strict";var a=n(32990);e.exports=function(e,t){return a(e,t.toLowerCase())}},32990:e=>{"use strict";e.exports=function(e,t){return t in e?e[t]:t}},71478:(e,t,n)=>{"use strict";var a=n(72996),r=n(9009),o=n(70302);e.exports=function(e){var t,n,l=e.space,c=e.mustUseProperty||[],i=e.attributes||{},s=e.properties,u=e.transform,d={},p={};for(t in s)n=new o(t,u(i,t),s[t],l),-1!==c.indexOf(t)&&(n.mustUseProperty=!0),d[t]=n,p[a(t)]=t,p[a(n.attribute)]=t;return new r(d,p,l)}},70302:(e,t,n)=>{"use strict";var a=n(58974),r=n(73125);e.exports=c,c.prototype=new a,c.prototype.defined=!0;var o=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],l=o.length;function c(e,t,n,c){var s,u=-1;for(i(this,"space",c),a.call(this,e,t);++u<l;)i(this,s=o[u],(n&r[s])===r[s])}function i(e,t,n){n&&(e[t]=n)}},58974:e=>{"use strict";e.exports=n;var t=n.prototype;function n(e,t){this.property=e,this.attribute=t}t.space=null,t.attribute=null,t.property=null,t.boolean=!1,t.booleanish=!1,t.overloadedBoolean=!1,t.number=!1,t.commaSeparated=!1,t.spaceSeparated=!1,t.commaOrSpaceSeparated=!1,t.mustUseProperty=!1,t.defined=!1},35228:(e,t,n)=>{"use strict";var a=n(31630),r=n(9009);e.exports=function(e){var t,n,o=e.length,l=[],c=[],i=-1;for(;++i<o;)t=e[i],l.push(t.property),c.push(t.normal),n=t.space;return new r(a.apply(null,l),a.apply(null,c),n)}},9009:e=>{"use strict";e.exports=n;var t=n.prototype;function n(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}t.space=null,t.normal={},t.property={}},73125:(e,t)=>{"use strict";var n=0;function a(){return Math.pow(2,++n)}t.boolean=a(),t.booleanish=a(),t.overloadedBoolean=a(),t.number=a(),t.spaceSeparated=a(),t.commaSeparated=a(),t.commaOrSpaceSeparated=a()},83851:(e,t,n)=>{"use strict";var a=n(71478);e.exports=a({space:"xlink",transform:function(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}})},91622:(e,t,n)=>{"use strict";var a=n(71478);e.exports=a({space:"xml",transform:function(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}})},61945:(e,t,n)=>{"use strict";var a=n(71478),r=n(70503);e.exports=a({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:r,properties:{xmlns:null,xmlnsXLink:null}})},72996:e=>{"use strict";e.exports=function(e){return e.toLowerCase()}},96298:(e,t,n)=>{"use strict";n.d(t,{A:()=>z});var a=n(98587);function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function o(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=l(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==l(t)?t:t+""}function i(e,t,n){return(t=c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=n(59284),u=n(58168);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var g={};function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return function(e){if(0===e.length||1===e.length)return e;var t=e.join(".");return g[t]||(g[t]=function(e){var t=e.length;return 0===t||1===t?e:2===t?[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])]:3===t?[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])]:t>=4?[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]:void 0}(e)),g[t]}(e.filter((function(e){return"token"!==e}))).reduce((function(e,t){return p(p({},e),n[t])}),t)}function f(e){return e.join(" ")}function h(e){var t=e.node,n=e.stylesheet,a=e.style,r=void 0===a?{}:a,o=e.useInlineStyles,l=e.key,c=t.properties,i=t.type,d=t.tagName,g=t.value;if("text"===i)return g;if(d){var y,b=function(e,t){var n=0;return function(a){return n+=1,a.map((function(a,r){return h({node:a,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(r)})}))}}(n,o);if(o){var v=Object.keys(n).reduce((function(e,t){return t.split(".").forEach((function(t){e.includes(t)||e.push(t)})),e}),[]),w=c.className&&c.className.includes("token")?["token"]:[],x=c.className&&w.concat(c.className.filter((function(e){return!v.includes(e)})));y=p(p({},c),{},{className:f(x)||void 0,style:m(c.className,Object.assign({},c.style,r),n)})}else y=p(p({},c),{},{className:f(c.className)});var k=b(t.children);return s.createElement(d,(0,u.A)({key:l},y),k)}}var y=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var w=/\n/g;function x(e){var t=e.codeString,n=e.codeStyle,a=e.containerStyle,r=void 0===a?{float:"left",paddingRight:"10px"}:a,o=e.numberStyle,l=void 0===o?{}:o,c=e.startingLineNumber;return s.createElement("code",{style:Object.assign({},n,r)},function(e){var t=e.lines,n=e.startingLineNumber,a=e.style;return t.map((function(e,t){var r=t+n;return s.createElement("span",{key:"line-".concat(t),className:"react-syntax-highlighter-line-number",style:"function"===typeof a?a(r):a},"".concat(r,"\n"))}))}({lines:t.replace(/\n$/,"").split("\n"),style:l,startingLineNumber:c}))}function k(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function S(e,t,n){var a,r={display:"inline-block",minWidth:(a=n,"".concat(a.toString().length,".25em")),paddingRight:"1em",textAlign:"right",userSelect:"none"},o="function"===typeof e?e(t):e;return v(v({},r),o)}function A(e){var t=e.children,n=e.lineNumber,a=e.lineNumberStyle,r=e.largestLineNumber,l=e.showInlineLineNumbers,c=e.lineProps,i=void 0===c?{}:c,s=e.className,u=void 0===s?[]:s,d=e.showLineNumbers,p=e.wrapLongLines,g=e.wrapLines,m=void 0!==g&&g?v({},"function"===typeof i?i(n):i):{};if(m.className=m.className?[].concat(o(m.className.trim().split(/\s+/)),o(u)):u,n&&l){var f=S(a,n,r);t.unshift(k(n,f))}return p&d&&(m.style=v({display:"flex"},m.style)),{type:"element",tagName:"span",properties:m,children:t}}function F(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=0;a<e.length;a++){var r=e[a];if("text"===r.type)n.push(A({children:[r],className:o(new Set(t))}));else if(r.children){var l=t.concat(r.properties.className);F(r.children,l).forEach((function(e){return n.push(e)}))}}return n}function O(e,t,n,a,r,o,l,c,i){var s,u=F(e.value),d=[],p=-1,g=0;function m(e,o){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return t||s.length>0?function(e,o){return A({children:e,lineNumber:o,lineNumberStyle:c,largestLineNumber:l,showInlineLineNumbers:r,lineProps:n,className:arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],showLineNumbers:a,wrapLongLines:i,wrapLines:t})}(e,o,s):function(e,t){if(a&&t&&r){var n=S(c,t,l);e.unshift(k(t,n))}return e}(e,o)}for(var f=function(){var e=u[g],t=e.children[0].value;if(t.match(w)){var n=t.split("\n");n.forEach((function(t,r){var l=a&&d.length+o,c={type:"text",value:"".concat(t,"\n")};if(0===r){var i=m(u.slice(p+1,g).concat(A({children:[c],className:e.properties.className})),l);d.push(i)}else if(r===n.length-1){var s=u[g+1]&&u[g+1].children&&u[g+1].children[0],f={type:"text",value:"".concat(t)};if(s){var h=A({children:[f],className:e.properties.className});u.splice(g+1,0,h)}else{var y=m([f],l,e.properties.className);d.push(y)}}else{var b=m([c],l,e.properties.className);d.push(b)}})),p=g}g++};g<u.length;)f();if(p!==u.length-1){var h=u.slice(p+1,u.length);if(h&&h.length){var y=m(h,a&&d.length+o);d.push(y)}}return t?d:(s=[]).concat.apply(s,d)}function N(e){var t=e.rows,n=e.stylesheet,a=e.useInlineStyles;return t.map((function(e,t){return h({node:e,stylesheet:n,useInlineStyles:a,key:"code-segement".concat(t)})}))}function C(e){return e&&"undefined"!==typeof e.highlightAuto}var j,P,L=n(86598),_=n.n(L),E=(j=_(),P={},function(e){var t=e.language,n=e.children,r=e.style,o=void 0===r?P:r,l=e.customStyle,c=void 0===l?{}:l,i=e.codeTagProps,u=void 0===i?{className:t?"language-".concat(t):void 0,style:v(v({},o['code[class*="language-"]']),o['code[class*="language-'.concat(t,'"]')])}:i,d=e.useInlineStyles,p=void 0===d||d,g=e.showLineNumbers,m=void 0!==g&&g,f=e.showInlineLineNumbers,h=void 0===f||f,b=e.startingLineNumber,w=void 0===b?1:b,k=e.lineNumberContainerStyle,S=e.lineNumberStyle,A=void 0===S?{}:S,F=e.wrapLines,L=e.wrapLongLines,_=void 0!==L&&L,E=e.lineProps,z=void 0===E?{}:E,M=e.renderer,T=e.PreTag,$=void 0===T?"pre":T,D=e.CodeTag,I=void 0===D?"code":D,R=e.code,q=void 0===R?(Array.isArray(n)?n[0]:n)||"":R,H=e.astGenerator,B=function(e,t){if(null==e)return{};var n,r,o=(0,a.A)(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,y);H=H||j;var U=m?s.createElement(x,{containerStyle:k,codeStyle:u.style||{},numberStyle:A,startingLineNumber:w,codeString:q}):null,W=o.hljs||o['pre[class*="language-"]']||{backgroundColor:"#fff"},V=C(H)?"hljs":"prismjs",Z=p?Object.assign({},B,{style:Object.assign({},W,c)}):Object.assign({},B,{className:B.className?"".concat(V," ").concat(B.className):V,style:Object.assign({},c)});if(u.style=v(_?{whiteSpace:"pre-wrap"}:{whiteSpace:"pre"},u.style),!H)return s.createElement($,Z,U,s.createElement(I,u,q));(void 0===F&&M||_)&&(F=!0),M=M||N;var G=[{type:"text",value:q}],K=function(e){var t=e.astGenerator,n=e.language,a=e.code,r=e.defaultCodeValue;if(C(t)){var o=function(e,t){return-1!==e.listLanguages().indexOf(t)}(t,n);return"text"===n?{value:r,language:"text"}:o?t.highlight(n,a):t.highlightAuto(a)}try{return n&&"text"!==n?{value:t.highlight(a,n)}:{value:r}}catch(l){return{value:r}}}({astGenerator:H,language:t,code:q,defaultCodeValue:G});null===K.language&&(K.value=G);var J=K.value.length;1===J&&"text"===K.value[0].type&&(J=K.value[0].value.split("\n").length);var Y=O(K,F,z,m,h,w,J+w,A,_);return s.createElement($,Z,s.createElement(I,u,!h&&U,M({rows:Y,stylesheet:o,useInlineStyles:p})))});E.registerLanguage=function(e,t){return _().register(t)},E.alias=function(e,t){return _().alias(e,t)};const z=E},32138:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});const a={'code[class*="language-"]':{textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",color:"#90a4ae",background:"#fafafa",fontFamily:"Roboto Mono, monospace",fontSize:"1em",lineHeight:"1.5em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",color:"#90a4ae",background:"#fafafa",fontFamily:"Roboto Mono, monospace",fontSize:"1em",lineHeight:"1.5em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",overflow:"auto",position:"relative",margin:"0.5em 0",padding:"1.25em 1em"},'code[class*="language-"]::-moz-selection':{background:"#cceae7",color:"#263238"},'pre[class*="language-"]::-moz-selection':{background:"#cceae7",color:"#263238"},'code[class*="language-"] ::-moz-selection':{background:"#cceae7",color:"#263238"},'pre[class*="language-"] ::-moz-selection':{background:"#cceae7",color:"#263238"},'code[class*="language-"]::selection':{background:"#cceae7",color:"#263238"},'pre[class*="language-"]::selection':{background:"#cceae7",color:"#263238"},'code[class*="language-"] ::selection':{background:"#cceae7",color:"#263238"},'pre[class*="language-"] ::selection':{background:"#cceae7",color:"#263238"},':not(pre) > code[class*="language-"]':{whiteSpace:"normal",borderRadius:"0.2em",padding:"0.1em"},".language-css > code":{color:"#f76d47"},".language-sass > code":{color:"#f76d47"},".language-scss > code":{color:"#f76d47"},'[class*="language-"] .namespace':{Opacity:"0.7"},atrule:{color:"#7c4dff"},"attr-name":{color:"#39adb5"},"attr-value":{color:"#f6a434"},attribute:{color:"#f6a434"},boolean:{color:"#7c4dff"},builtin:{color:"#39adb5"},cdata:{color:"#39adb5"},char:{color:"#39adb5"},class:{color:"#39adb5"},"class-name":{color:"#6182b8"},comment:{color:"#aabfc9"},constant:{color:"#7c4dff"},deleted:{color:"#e53935"},doctype:{color:"#aabfc9"},entity:{color:"#e53935"},function:{color:"#7c4dff"},hexcode:{color:"#f76d47"},id:{color:"#7c4dff",fontWeight:"bold"},important:{color:"#7c4dff",fontWeight:"bold"},inserted:{color:"#39adb5"},keyword:{color:"#7c4dff"},number:{color:"#f76d47"},operator:{color:"#39adb5"},prolog:{color:"#aabfc9"},property:{color:"#39adb5"},"pseudo-class":{color:"#f6a434"},"pseudo-element":{color:"#f6a434"},punctuation:{color:"#39adb5"},regex:{color:"#6182b8"},selector:{color:"#e53935"},string:{color:"#f6a434"},symbol:{color:"#7c4dff"},tag:{color:"#e53935"},unit:{color:"#f76d47"},url:{color:"#e53935"},variable:{color:"#e53935"}}},62422:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});const a={'pre[class*="language-"]':{color:"#d4d4d4",fontSize:"13px",textShadow:"none",fontFamily:'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",background:"#1e1e1e"},'code[class*="language-"]':{color:"#d4d4d4",fontSize:"13px",textShadow:"none",fontFamily:'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#264F78"},'code[class*="language-"]::selection':{textShadow:"none",background:"#264F78"},'pre[class*="language-"] *::selection':{textShadow:"none",background:"#264F78"},'code[class*="language-"] *::selection':{textShadow:"none",background:"#264F78"},':not(pre) > code[class*="language-"]':{padding:".1em .3em",borderRadius:".3em",color:"#db4c69",background:"#1e1e1e"},".namespace":{Opacity:".7"},"doctype.doctype-tag":{color:"#569CD6"},"doctype.name":{color:"#9cdcfe"},comment:{color:"#6a9955"},prolog:{color:"#6a9955"},punctuation:{color:"#d4d4d4"},".language-html .language-css .token.punctuation":{color:"#d4d4d4"},".language-html .language-javascript .token.punctuation":{color:"#d4d4d4"},property:{color:"#9cdcfe"},tag:{color:"#569cd6"},boolean:{color:"#569cd6"},number:{color:"#b5cea8"},constant:{color:"#9cdcfe"},symbol:{color:"#b5cea8"},inserted:{color:"#b5cea8"},unit:{color:"#b5cea8"},selector:{color:"#d7ba7d"},"attr-name":{color:"#9cdcfe"},string:{color:"#ce9178"},char:{color:"#ce9178"},builtin:{color:"#ce9178"},deleted:{color:"#ce9178"},".language-css .token.string.url":{textDecoration:"underline"},operator:{color:"#d4d4d4"},entity:{color:"#569cd6"},"operator.arrow":{color:"#569CD6"},atrule:{color:"#ce9178"},"atrule.rule":{color:"#c586c0"},"atrule.url":{color:"#9cdcfe"},"atrule.url.function":{color:"#dcdcaa"},"atrule.url.punctuation":{color:"#d4d4d4"},keyword:{color:"#569CD6"},"keyword.module":{color:"#c586c0"},"keyword.control-flow":{color:"#c586c0"},function:{color:"#dcdcaa"},"function.maybe-class-name":{color:"#dcdcaa"},regex:{color:"#d16969"},important:{color:"#569cd6"},italic:{fontStyle:"italic"},"class-name":{color:"#4ec9b0"},"maybe-class-name":{color:"#4ec9b0"},console:{color:"#9cdcfe"},parameter:{color:"#9cdcfe"},interpolation:{color:"#9cdcfe"},"punctuation.interpolation-punctuation":{color:"#569cd6"},variable:{color:"#9cdcfe"},"imports.maybe-class-name":{color:"#9cdcfe"},"exports.maybe-class-name":{color:"#9cdcfe"},escape:{color:"#d7ba7d"},"tag.punctuation":{color:"#808080"},cdata:{color:"#808080"},"attr-value":{color:"#ce9178"},"attr-value.punctuation":{color:"#ce9178"},"attr-value.punctuation.attr-equals":{color:"#d4d4d4"},namespace:{color:"#4ec9b0"},'pre[class*="language-javascript"]':{color:"#9cdcfe"},'code[class*="language-javascript"]':{color:"#9cdcfe"},'pre[class*="language-jsx"]':{color:"#9cdcfe"},'code[class*="language-jsx"]':{color:"#9cdcfe"},'pre[class*="language-typescript"]':{color:"#9cdcfe"},'code[class*="language-typescript"]':{color:"#9cdcfe"},'pre[class*="language-tsx"]':{color:"#9cdcfe"},'code[class*="language-tsx"]':{color:"#9cdcfe"},'pre[class*="language-css"]':{color:"#ce9178"},'code[class*="language-css"]':{color:"#ce9178"},'pre[class*="language-html"]':{color:"#d4d4d4"},'code[class*="language-html"]':{color:"#d4d4d4"},".language-regex .token.anchor":{color:"#dcdcaa"},".language-html .token.punctuation":{color:"#808080"},'pre[class*="language-"] > code[class*="language-"]':{position:"relative",zIndex:"1"},".line-highlight.line-highlight":{background:"#f7ebc6",boxShadow:"inset 5px 0 0 #f7d87c",zIndex:"0"}}},86598:(e,t,n)=>{"use strict";var a="object"===typeof globalThis?globalThis:"object"===typeof self?self:"object"===typeof window?window:"object"===typeof n.g?n.g:{},r=function(){var e="Prism"in a,t=e?a.Prism:void 0;return function(){e?a.Prism=t:delete a.Prism;e=void 0,t=void 0}}();a.Prism={manual:!0,disableWorkerMessageHandler:!0};var o=n(55942),l=n(72824),c=n(93915),i=n(33592),s=n(61993),u=n(22216),d=n(50683);r();var p={}.hasOwnProperty;function g(){}g.prototype=c;var m=new g;function f(e){if("function"!==typeof e||!e.displayName)throw new Error("Expected `function` for `grammar`, got `"+e+"`");void 0===m.languages[e.displayName]&&e(m)}e.exports=m,m.highlight=function(e,t){var n,a=c.highlight;if("string"!==typeof e)throw new Error("Expected `string` for `value`, got `"+e+"`");if("Object"===m.util.type(t))n=t,t=null;else{if("string"!==typeof t)throw new Error("Expected `string` for `name`, got `"+t+"`");if(!p.call(m.languages,t))throw new Error("Unknown language: `"+t+"` is not registered");n=m.languages[t]}return a.call(this,e,n,t)},m.register=f,m.alias=function(e,t){var n,a,r,o,l=m.languages,c=e;t&&((c={})[e]=t);for(n in c)for(r=(a="string"===typeof(a=c[n])?[a]:a).length,o=-1;++o<r;)l[a[o]]=l[n]},m.registered=function(e){if("string"!==typeof e)throw new Error("Expected `string` for `language`, got `"+e+"`");return p.call(m.languages,e)},m.listLanguages=function(){var e,t=m.languages,n=[];for(e in t)p.call(t,e)&&"object"===typeof t[e]&&n.push(e);return n},f(i),f(s),f(u),f(d),m.util.encode=function(e){return e},m.Token.stringify=function(e,t,n){var a;if("string"===typeof e)return{type:"text",value:e};if("Array"===m.util.type(e))return function(e,t){var n,a=[],r=e.length,o=-1;for(;++o<r;)""!==(n=e[o])&&null!==n&&void 0!==n&&a.push(n);o=-1,r=a.length;for(;++o<r;)n=a[o],a[o]=m.Token.stringify(n,t,a);return a}(e,t);a={type:e.type,content:m.Token.stringify(e.content,t,n),tag:"span",classes:["token",e.type],attributes:{},language:t,parent:n},e.alias&&(a.classes=a.classes.concat(e.alias));return m.hooks.run("wrap",a),o(a.tag+"."+a.classes.join("."),function(e){var t;for(t in e)e[t]=l(e[t]);return e}(a.attributes),a.content)}},22216:e=>{"use strict";function t(e){e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}e.exports=t,t.displayName="clike",t.aliases=[]},61993:e=>{"use strict";function t(e){!function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(e)}e.exports=t,t.displayName="css",t.aliases=[]},50683:e=>{"use strict";function t(e){e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}e.exports=t,t.displayName="javascript",t.aliases=["js"]},33592:e=>{"use strict";function t(e){e.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.value.replace(/&/,"&"))})),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(t,n){var a={};a["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[n]},a.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:a}};r["language-"+n]={pattern:/[\s\S]+/,inside:e.languages[n]};var o={};o[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return t})),"i"),lookbehind:!0,greedy:!0,inside:r},e.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}e.exports=t,t.displayName="markup",t.aliases=["html","mathml","svg","xml","ssml","atom","rss"]},93915:(e,t,n)=>{var a=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,a={},r={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var a,o;switch(n=n||{},r.util.type(t)){case"Object":if(o=r.util.objId(t),n[o])return n[o];for(var l in a={},n[o]=a,t)t.hasOwnProperty(l)&&(a[l]=e(t[l],n));return a;case"Array":return o=r.util.objId(t),n[o]?n[o]:(a=[],n[o]=a,t.forEach((function(t,r){a[r]=e(t,n)})),a);default:return t}},getLanguage:function(e){for(;e;){var n=t.exec(e.className);if(n)return n[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,n){e.className=e.className.replace(RegExp(t,"gi"),""),e.classList.add("language-"+n)},currentScript:function(){if("undefined"===typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(a){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(a.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var a="no-"+t;e;){var r=e.classList;if(r.contains(t))return!0;if(r.contains(a))return!1;e=e.parentElement}return!!n}},languages:{plain:a,plaintext:a,text:a,txt:a,extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var a in t)n[a]=t[a];return n},insertBefore:function(e,t,n,a){var o=(a=a||r.languages)[e],l={};for(var c in o)if(o.hasOwnProperty(c)){if(c==t)for(var i in n)n.hasOwnProperty(i)&&(l[i]=n[i]);n.hasOwnProperty(c)||(l[c]=o[c])}var s=a[e];return a[e]=l,r.languages.DFS(r.languages,(function(t,n){n===s&&t!=e&&(this[t]=l)})),l},DFS:function e(t,n,a,o){o=o||{};var l=r.util.objId;for(var c in t)if(t.hasOwnProperty(c)){n.call(t,c,t[c],a||c);var i=t[c],s=r.util.type(i);"Object"!==s||o[l(i)]?"Array"!==s||o[l(i)]||(o[l(i)]=!0,e(i,n,c,o)):(o[l(i)]=!0,e(i,n,null,o))}}},plugins:{},highlightAll:function(e,t){r.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var a={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};r.hooks.run("before-highlightall",a),a.elements=Array.prototype.slice.apply(a.container.querySelectorAll(a.selector)),r.hooks.run("before-all-elements-highlight",a);for(var o,l=0;o=a.elements[l++];)r.highlightElement(o,!0===t,a.callback)},highlightElement:function(t,n,a){var o=r.util.getLanguage(t),l=r.languages[o];r.util.setLanguage(t,o);var c=t.parentElement;c&&"pre"===c.nodeName.toLowerCase()&&r.util.setLanguage(c,o);var i={element:t,language:o,grammar:l,code:t.textContent};function s(e){i.highlightedCode=e,r.hooks.run("before-insert",i),i.element.innerHTML=i.highlightedCode,r.hooks.run("after-highlight",i),r.hooks.run("complete",i),a&&a.call(i.element)}if(r.hooks.run("before-sanity-check",i),(c=i.element.parentElement)&&"pre"===c.nodeName.toLowerCase()&&!c.hasAttribute("tabindex")&&c.setAttribute("tabindex","0"),!i.code)return r.hooks.run("complete",i),void(a&&a.call(i.element));if(r.hooks.run("before-highlight",i),i.grammar)if(n&&e.Worker){var u=new Worker(r.filename);u.onmessage=function(e){s(e.data)},u.postMessage(JSON.stringify({language:i.language,code:i.code,immediateClose:!0}))}else s(r.highlight(i.code,i.grammar,i.language));else s(r.util.encode(i.code))},highlight:function(e,t,n){var a={code:e,grammar:t,language:n};if(r.hooks.run("before-tokenize",a),!a.grammar)throw new Error('The language "'+a.language+'" has no grammar.');return a.tokens=r.tokenize(a.code,a.grammar),r.hooks.run("after-tokenize",a),o.stringify(r.util.encode(a.tokens),a.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var a in n)t[a]=n[a];delete t.rest}var r=new i;return s(r,r.head,e),c(e,r,t,r.head,0),function(e){var t=[],n=e.head.next;for(;n!==e.tail;)t.push(n.value),n=n.next;return t}(r)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var a,o=0;a=n[o++];)a(t)}},Token:o};function o(e,t,n,a){this.type=e,this.content=t,this.alias=n,this.length=0|(a||"").length}function l(e,t,n,a){e.lastIndex=t;var r=e.exec(n);if(r&&a&&r[1]){var o=r[1].length;r.index+=o,r[0]=r[0].slice(o)}return r}function c(e,t,n,a,i,d){for(var p in n)if(n.hasOwnProperty(p)&&n[p]){var g=n[p];g=Array.isArray(g)?g:[g];for(var m=0;m<g.length;++m){if(d&&d.cause==p+","+m)return;var f=g[m],h=f.inside,y=!!f.lookbehind,b=!!f.greedy,v=f.alias;if(b&&!f.pattern.global){var w=f.pattern.toString().match(/[imsuy]*$/)[0];f.pattern=RegExp(f.pattern.source,w+"g")}for(var x=f.pattern||f,k=a.next,S=i;k!==t.tail&&!(d&&S>=d.reach);S+=k.value.length,k=k.next){var A=k.value;if(t.length>e.length)return;if(!(A instanceof o)){var F,O=1;if(b){if(!(F=l(x,S,e,y))||F.index>=e.length)break;var N=F.index,C=F.index+F[0].length,j=S;for(j+=k.value.length;N>=j;)j+=(k=k.next).value.length;if(S=j-=k.value.length,k.value instanceof o)continue;for(var P=k;P!==t.tail&&(j<C||"string"===typeof P.value);P=P.next)O++,j+=P.value.length;O--,A=e.slice(S,j),F.index-=S}else if(!(F=l(x,0,A,y)))continue;N=F.index;var L=F[0],_=A.slice(0,N),E=A.slice(N+L.length),z=S+A.length;d&&z>d.reach&&(d.reach=z);var M=k.prev;if(_&&(M=s(t,M,_),S+=_.length),u(t,M,O),k=s(t,M,new o(p,h?r.tokenize(L,h):L,v,L)),E&&s(t,k,E),O>1){var T={cause:p+","+m,reach:z};c(e,t,n,k.prev,S,T),d&&T.reach>d.reach&&(d.reach=T.reach)}}}}}}function i(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function s(e,t,n){var a=t.next,r={value:n,prev:t,next:a};return t.next=r,a.prev=r,e.length++,r}function u(e,t,n){for(var a=t.next,r=0;r<n&&a!==e.tail;r++)a=a.next;t.next=a,a.prev=t,e.length-=r}if(e.Prism=r,o.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var a="";return t.forEach((function(t){a+=e(t,n)})),a}var o={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},l=t.alias;l&&(Array.isArray(l)?Array.prototype.push.apply(o.classes,l):o.classes.push(l)),r.hooks.run("wrap",o);var c="";for(var i in o.attributes)c+=" "+i+'="'+(o.attributes[i]||"").replace(/"/g,""")+'"';return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+c+">"+o.content+"</"+o.tag+">"},!e.document)return e.addEventListener?(r.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),a=n.language,o=n.code,l=n.immediateClose;e.postMessage(r.highlight(o,r.languages[a],a)),l&&e.close()}),!1),r):r;var d=r.util.currentScript();function p(){r.manual||r.highlightAll()}if(d&&(r.filename=d.src,d.hasAttribute("data-manual")&&(r.manual=!0)),!r.manual){var g=document.readyState;"loading"===g||"interactive"===g&&d&&d.defer?document.addEventListener("DOMContentLoaded",p):window.requestAnimationFrame?window.requestAnimationFrame(p):window.setTimeout(p,16)}return r}("undefined"!==typeof window?window:"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=a),"undefined"!==typeof n.g&&(n.g.Prism=a)},82140:(e,t)=>{"use strict";t.q=function(e){var t=String(e||n).trim();return t===n?[]:t.split(r)};var n="",a=" ",r=/[ \t\n\r\f]+/g},31630:e=>{e.exports=function(){for(var e={},n=0;n<arguments.length;n++){var a=arguments[n];for(var r in a)t.call(a,r)&&(e[r]=a[r])}return e};var t=Object.prototype.hasOwnProperty},82719:e=>{"use strict";e.exports=JSON.parse('{"AElig":"\xc6","AMP":"&","Aacute":"\xc1","Acirc":"\xc2","Agrave":"\xc0","Aring":"\xc5","Atilde":"\xc3","Auml":"\xc4","COPY":"\xa9","Ccedil":"\xc7","ETH":"\xd0","Eacute":"\xc9","Ecirc":"\xca","Egrave":"\xc8","Euml":"\xcb","GT":">","Iacute":"\xcd","Icirc":"\xce","Igrave":"\xcc","Iuml":"\xcf","LT":"<","Ntilde":"\xd1","Oacute":"\xd3","Ocirc":"\xd4","Ograve":"\xd2","Oslash":"\xd8","Otilde":"\xd5","Ouml":"\xd6","QUOT":"\\"","REG":"\xae","THORN":"\xde","Uacute":"\xda","Ucirc":"\xdb","Ugrave":"\xd9","Uuml":"\xdc","Yacute":"\xdd","aacute":"\xe1","acirc":"\xe2","acute":"\xb4","aelig":"\xe6","agrave":"\xe0","amp":"&","aring":"\xe5","atilde":"\xe3","auml":"\xe4","brvbar":"\xa6","ccedil":"\xe7","cedil":"\xb8","cent":"\xa2","copy":"\xa9","curren":"\xa4","deg":"\xb0","divide":"\xf7","eacute":"\xe9","ecirc":"\xea","egrave":"\xe8","eth":"\xf0","euml":"\xeb","frac12":"\xbd","frac14":"\xbc","frac34":"\xbe","gt":">","iacute":"\xed","icirc":"\xee","iexcl":"\xa1","igrave":"\xec","iquest":"\xbf","iuml":"\xef","laquo":"\xab","lt":"<","macr":"\xaf","micro":"\xb5","middot":"\xb7","nbsp":"\xa0","not":"\xac","ntilde":"\xf1","oacute":"\xf3","ocirc":"\xf4","ograve":"\xf2","ordf":"\xaa","ordm":"\xba","oslash":"\xf8","otilde":"\xf5","ouml":"\xf6","para":"\xb6","plusmn":"\xb1","pound":"\xa3","quot":"\\"","raquo":"\xbb","reg":"\xae","sect":"\xa7","shy":"\xad","sup1":"\xb9","sup2":"\xb2","sup3":"\xb3","szlig":"\xdf","thorn":"\xfe","times":"\xd7","uacute":"\xfa","ucirc":"\xfb","ugrave":"\xf9","uml":"\xa8","uuml":"\xfc","yacute":"\xfd","yen":"\xa5","yuml":"\xff"}')},21257:e=>{"use strict";e.exports=JSON.parse('{"0":"\ufffd","128":"\u20ac","130":"\u201a","131":"\u0192","132":"\u201e","133":"\u2026","134":"\u2020","135":"\u2021","136":"\u02c6","137":"\u2030","138":"\u0160","139":"\u2039","140":"\u0152","142":"\u017d","145":"\u2018","146":"\u2019","147":"\u201c","148":"\u201d","149":"\u2022","150":"\u2013","151":"\u2014","152":"\u02dc","153":"\u2122","154":"\u0161","155":"\u203a","156":"\u0153","158":"\u017e","159":"\u0178"}')}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/6820.bff2520f.chunk.js b/ydb/core/viewer/monitoring/static/js/6820.bff2520f.chunk.js new file mode 100644 index 0000000000..988f73bc09 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/6820.bff2520f.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 6820.bff2520f.chunk.js.LICENSE.txt */ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[6820],{494:(e,t,n)=>{"use strict";var a=n(73934),r=n(94667);e.exports=function(e){return a(e)||r(e)}},9009:e=>{"use strict";e.exports=n;var t=n.prototype;function n(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}t.space=null,t.normal={},t.property={}},11666:(e,t,n)=>{"use strict";var a=n(73125),r=n(71478),o=a.booleanish,l=a.number,c=a.spaceSeparated;e.exports=r({transform:function(e,t){return"role"===t?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:o,ariaAutoComplete:null,ariaBusy:o,ariaChecked:o,ariaColCount:l,ariaColIndex:l,ariaColSpan:l,ariaControls:c,ariaCurrent:null,ariaDescribedBy:c,ariaDetails:null,ariaDisabled:o,ariaDropEffect:c,ariaErrorMessage:null,ariaExpanded:o,ariaFlowTo:c,ariaGrabbed:o,ariaHasPopup:null,ariaHidden:o,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:c,ariaLevel:l,ariaLive:null,ariaModal:o,ariaMultiLine:o,ariaMultiSelectable:o,ariaOrientation:null,ariaOwns:c,ariaPlaceholder:null,ariaPosInSet:l,ariaPressed:o,ariaReadOnly:o,ariaRelevant:null,ariaRequired:o,ariaRoleDescription:c,ariaRowCount:l,ariaRowIndex:l,ariaRowSpan:l,ariaSelected:o,ariaSetSize:l,ariaSort:null,ariaValueMax:l,ariaValueMin:l,ariaValueNow:l,ariaValueText:null,role:null}})},21257:e=>{"use strict";e.exports=JSON.parse('{"0":"\ufffd","128":"\u20ac","130":"\u201a","131":"\u0192","132":"\u201e","133":"\u2026","134":"\u2020","135":"\u2021","136":"\u02c6","137":"\u2030","138":"\u0160","139":"\u2039","140":"\u0152","142":"\u017d","145":"\u2018","146":"\u2019","147":"\u201c","148":"\u201d","149":"\u2022","150":"\u2013","151":"\u2014","152":"\u02dc","153":"\u2122","154":"\u0161","155":"\u203a","156":"\u0153","158":"\u017e","159":"\u0178"}')},22216:e=>{"use strict";function t(e){e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}e.exports=t,t.displayName="clike",t.aliases=[]},27376:(e,t,n)=>{"use strict";var a=n(47556),r=n(72996),o=n(91448),l=n(82140).q,c=n(71383).q;e.exports=function(e,t,n){var r=n?function(e){var t,n=e.length,a=-1,r={};for(;++a<n;)r[(t=e[a]).toLowerCase()]=t;return r}(n):null;return function(e,n){var a,l=o(e,t),c=Array.prototype.slice.call(arguments,2),u=l.tagName.toLowerCase();l.tagName=r&&i.call(r,u)?r[u]:u,n&&function(e,t){return"string"===typeof e||"length"in e||function(e,t){var n=t.type;if("input"===e||!n||"string"!==typeof n)return!1;if("object"===typeof t.children&&"length"in t.children)return!0;if(n=n.toLowerCase(),"button"===e)return"menu"!==n&&"submit"!==n&&"reset"!==n&&"button"!==n;return"value"in t}(t.tagName,e)}(n,l)&&(c.unshift(n),n=null);if(n)for(a in n)d(l.properties,a,n[a]);s(l.children,c),"template"===l.tagName&&(l.content={type:"root",children:l.children},l.children=[]);return l};function d(t,n,r){var o,i,s;null!==r&&void 0!==r&&r===r&&(i=(o=a(e,n)).property,"string"===typeof(s=r)&&(o.spaceSeparated?s=l(s):o.commaSeparated?s=c(s):o.commaOrSpaceSeparated&&(s=l(c(s).join(" ")))),"style"===i&&"string"!==typeof r&&(s=function(e){var t,n=[];for(t in e)n.push([t,e[t]].join(": "));return n.join("; ")}(s)),"className"===i&&t.className&&(s=t.className.concat(s)),t[i]=function(e,t,n){var a,r,o;if("object"!==typeof n||!("length"in n))return u(e,t,n);r=n.length,a=-1,o=[];for(;++a<r;)o[a]=u(e,t,n[a]);return o}(o,i,s))}};var i={}.hasOwnProperty;function s(e,t){var n,a;if("string"!==typeof t&&"number"!==typeof t)if("object"===typeof t&&"length"in t)for(n=-1,a=t.length;++n<a;)s(e,t[n]);else{if("object"!==typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");e.push(t)}else e.push({type:"text",value:String(t)})}function u(e,t,n){var a=n;return e.number||e.positiveNumber?isNaN(a)||""===a||(a=Number(a)):(e.boolean||e.overloadedBoolean)&&("string"!==typeof a||""!==a&&r(n)!==r(t)||(a=!0)),a}},31630:e=>{e.exports=function(){for(var e={},n=0;n<arguments.length;n++){var a=arguments[n];for(var r in a)t.call(a,r)&&(e[r]=a[r])}return e};var t=Object.prototype.hasOwnProperty},32138:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});const a={'code[class*="language-"]':{textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",color:"#90a4ae",background:"#fafafa",fontFamily:"Roboto Mono, monospace",fontSize:"1em",lineHeight:"1.5em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",color:"#90a4ae",background:"#fafafa",fontFamily:"Roboto Mono, monospace",fontSize:"1em",lineHeight:"1.5em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",overflow:"auto",position:"relative",margin:"0.5em 0",padding:"1.25em 1em"},'code[class*="language-"]::-moz-selection':{background:"#cceae7",color:"#263238"},'pre[class*="language-"]::-moz-selection':{background:"#cceae7",color:"#263238"},'code[class*="language-"] ::-moz-selection':{background:"#cceae7",color:"#263238"},'pre[class*="language-"] ::-moz-selection':{background:"#cceae7",color:"#263238"},'code[class*="language-"]::selection':{background:"#cceae7",color:"#263238"},'pre[class*="language-"]::selection':{background:"#cceae7",color:"#263238"},'code[class*="language-"] ::selection':{background:"#cceae7",color:"#263238"},'pre[class*="language-"] ::selection':{background:"#cceae7",color:"#263238"},':not(pre) > code[class*="language-"]':{whiteSpace:"normal",borderRadius:"0.2em",padding:"0.1em"},".language-css > code":{color:"#f76d47"},".language-sass > code":{color:"#f76d47"},".language-scss > code":{color:"#f76d47"},'[class*="language-"] .namespace':{Opacity:"0.7"},atrule:{color:"#7c4dff"},"attr-name":{color:"#39adb5"},"attr-value":{color:"#f6a434"},attribute:{color:"#f6a434"},boolean:{color:"#7c4dff"},builtin:{color:"#39adb5"},cdata:{color:"#39adb5"},char:{color:"#39adb5"},class:{color:"#39adb5"},"class-name":{color:"#6182b8"},comment:{color:"#aabfc9"},constant:{color:"#7c4dff"},deleted:{color:"#e53935"},doctype:{color:"#aabfc9"},entity:{color:"#e53935"},function:{color:"#7c4dff"},hexcode:{color:"#f76d47"},id:{color:"#7c4dff",fontWeight:"bold"},important:{color:"#7c4dff",fontWeight:"bold"},inserted:{color:"#39adb5"},keyword:{color:"#7c4dff"},number:{color:"#f76d47"},operator:{color:"#39adb5"},prolog:{color:"#aabfc9"},property:{color:"#39adb5"},"pseudo-class":{color:"#f6a434"},"pseudo-element":{color:"#f6a434"},punctuation:{color:"#39adb5"},regex:{color:"#6182b8"},selector:{color:"#e53935"},string:{color:"#f6a434"},symbol:{color:"#7c4dff"},tag:{color:"#e53935"},unit:{color:"#f76d47"},url:{color:"#e53935"},variable:{color:"#e53935"}}},32990:e=>{"use strict";e.exports=function(e,t){return t in e?e[t]:t}},33592:e=>{"use strict";function t(e){e.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.value.replace(/&/,"&"))})),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(t,n){var a={};a["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[n]},a.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:a}};r["language-"+n]={pattern:/[\s\S]+/,inside:e.languages[n]};var o={};o[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return t})),"i"),lookbehind:!0,greedy:!0,inside:r},e.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}e.exports=t,t.displayName="markup",t.aliases=["html","mathml","svg","xml","ssml","atom","rss"]},35228:(e,t,n)=>{"use strict";var a=n(31630),r=n(9009);e.exports=function(e){var t,n,o=e.length,l=[],c=[],i=-1;for(;++i<o;)t=e[i],l.push(t.property),c.push(t.normal),n=t.space;return new r(a.apply(null,l),a.apply(null,c),n)}},43733:(e,t,n)=>{"use strict";n.d(t,{RE:()=>a,XB:()=>o,to:()=>r});const a="$row|$rows|action|add|all|alter|and|any|as|asc|assume|async|bigserial|serial|smallserial|serial8|serial4|serial2|begin|bernoulli|between|by|case|changefeed|column|columns|commit|compact|create|cross|cube|declare|define|delete|desc|dict|discard|distinct|do|drop|else|empty_action|end|erase|evaluate|exclusion|exists|export|family|flatten|for|from|full|global|group|grouping|having|if|ignore|ilike|import|in|index|inner|insert|into|is|join|key|left|like|limit|list|match|not|null|nulls|offset|on|only|optional|or|order|over|partition|pragma|presort|primary|process|reduce|regexp|repeatable|replace|respect|result|return|right|rlike|rollup|sample|schema|select|semi|set|sets|stream|subquery|sync|table|tablesample|then|truncate|union|intersect|except|update|upsert|use|using|values|view|when|where|window|with|without|xor|callable|resource|tagged|generic|unit|void|emptylist|emptydict|flow|callable|resource|tagged|generic|unit|void|emptylist|emptydict|flow".split("|"),r="bool|date|datetime|decimal|double|float|int16|int32|int64|int8|interval|json|jsondocument|string|timestamp|tzdate|tzdatetime|tztimestamp|uint16|uint32|uint64|uint8|utf8|uuid|yson|text|bytes".split("|"),o="abs|aggregate_by|aggregate_list|aggregate_list_distinct|agg_list|agg_list_distinct|as_table|avg|avg_if|adaptivedistancehistogram|adaptivewardhistogram|adaptiveweighthistogram|addmember|addtimezone|aggregateflatten|aggregatetransforminput|aggregatetransformoutput|aggregationfactory|asatom|asdict|asdictstrict|asenum|aslist|asliststrict|asset|assetstrict|asstruct|astagged|astuple|asvariant|atomcode|bitcast|bit_and|bit_or|bit_xor|bool_and|bool_or|bool_xor|bottom|bottom_by|blockwardhistogram|blockweighthistogram|cast|coalesce|concat|concat_strict|correlation|count|count_if|covariance|covariance_population|covariance_sample|callableargument|callableargumenttype|callableresulttype|callabletype|callabletypecomponents|callabletypehandle|choosemembers|combinemembers|countdistinctestimate|currentauthenticateduser|currentoperationid|currentoperationsharedid|currenttzdate|currenttzdatetime|currenttztimestamp|currentutcdate|currentutcdatetime|currentutctimestamp|dense_rank|datatype|datatypecomponents|datatypehandle|dictaggregate|dictcontains|dictcreate|dicthasitems|dictitems|dictkeytype|dictkeys|dictlength|dictlookup|dictpayloadtype|dictpayloads|dicttype|dicttypecomponents|dicttypehandle|each|each_strict|emptydicttype|emptydicttypehandle|emptylisttype|emptylisttypehandle|endswith|ensure|ensureconvertibleto|ensuretype|enum|evaluateatom|evaluatecode|evaluateexpr|evaluatetype|expandstruct|filter|filter_strict|find|first_value|folder|filecontent|filepath|flattenmembers|forceremovemember|forceremovemembers|forcerenamemembers|forcespreadmembers|formatcode|formattype|frombytes|frompg|funccode|greatest|grouping|gathermembers|generictype|histogram|hll|hoppingwindowpgcast|hyperloglog|if|if_strict|instanceof|json_exists|json_query|json_value|jointablerow|just|lag|last_value|lead|least|len|length|like|likely|like_strict|lambdaargumentscount|lambdacode|lambdaoptionalargumentscount|linearhistogram|listaggregate|listall|listany|listavg|listcode|listcollect|listconcat|listcreate|listdistinct|listenumerate|listextend|listextendstrict|listextract|listfilter|listflatmap|listflatten|listfold|listfold1|listfold1map|listfoldmap|listfromrange|listfromtuple|listhas|listhasitems|listhead|listindexof|listitemtype|listlast|listlength|listmap|listmax|listmin|listnotnull|listreplicate|listreverse|listskip|listskipwhile|listskipwhileinclusive|listsort|listsortasc|listsortdesc|listsum|listtake|listtakewhile|listtakewhileinclusive|listtop|listtopsort|listtopasc|listtopdesc|listtopsortasc|listtopsortdesc|listtotuple|listtype|listtypehandle|listunionall|listuniq|listzip|listzipall|loghistogram|logarithmichistogram|max|max_by|max_of|median|min|min_by|min_of|mode|multi_aggregate_by|nanvl|nvl|nothing|nulltype|nulltypehandle|optionalitemtype|optionaltype|optionaltypehandle|percentile|parsefile|parsetype|parsetypehandle|pgand|pgarray|pgcall|pgconst|pgnot|pgop|pgor|pickle|quotecode|range|range_strict|rank|regexp|regexp_strict|rfind|row_number|random|randomnumber|randomuuid|removemember|removemembers|removetimezone|renamemembers|replacemember|reprcode|resourcetype|resourcetypehandle|resourcetypetag|some|stddev|stddev_population|stddev_sample|substring|sum|sum_if|sessionstart|sessionwindow|setcreate|setdifference|setincludes|setintersection|setisdisjoint|setsymmetricdifference|setunion|spreadmembers|stablepickle|startswith|staticmap|staticzip|streamitemtype|streamtype|streamtypehandle|structmembertype|structmembers|structtypecomponents|structtypehandle|subqueryextend|subqueryextendfor|subquerymerge|subquerymergefor|subqueryunionall|subqueryunionallfor|subqueryunionmerge|subqueryunionmergefor|top|topfreq|top_by|tablename|tablepath|tablerecordindex|tablerow|tablerows|taggedtype|taggedtypecomponents|taggedtypehandle|tobytes|todict|tomultidict|topg|toset|tosorteddict|tosortedmultidict|trymember|tupleelementtype|tupletype|tupletypecomponents|tupletypehandle|typehandle|typekind|typeof|udaf|udf|unittype|unpickle|untag|unwrap|variance|variance_population|variance_sample|variant|varianttype|varianttypehandle|variantunderlyingtype|voidtype|voidtypehandle|way|worldcode|weakfield".split("|")},47556:(e,t,n)=>{"use strict";var a=n(72996),r=n(70302),o=n(58974),l="data";e.exports=function(e,t){var n=a(t),p=t,g=o;if(n in e.normal)return e.property[e.normal[n]];n.length>4&&n.slice(0,4)===l&&c.test(t)&&("-"===t.charAt(4)?p=function(e){var t=e.slice(5).replace(i,d);return l+t.charAt(0).toUpperCase()+t.slice(1)}(t):t=function(e){var t=e.slice(4);if(i.test(t))return e;t=t.replace(s,u),"-"!==t.charAt(0)&&(t="-"+t);return l+t}(t),g=r);return new g(p,t)};var c=/^data[-\w.:]+$/i,i=/-[a-z]/g,s=/[A-Z]/g;function u(e){return"-"+e.toLowerCase()}function d(e){return e.charAt(1).toUpperCase()}},48893:(e,t,n)=>{"use strict";var a=n(70730),r=n(27376)(a,"div");r.displayName="html",e.exports=r},50683:e=>{"use strict";function t(e){e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}e.exports=t,t.displayName="javascript",t.aliases=["js"]},55942:(e,t,n)=>{"use strict";e.exports=n(48893)},58974:e=>{"use strict";e.exports=n;var t=n.prototype;function n(e,t){this.property=e,this.attribute=t}t.space=null,t.attribute=null,t.property=null,t.boolean=!1,t.booleanish=!1,t.overloadedBoolean=!1,t.number=!1,t.commaSeparated=!1,t.spaceSeparated=!1,t.commaOrSpaceSeparated=!1,t.mustUseProperty=!1,t.defined=!1},59162:(e,t,n)=>{"use strict";var a=n(73125),r=n(71478),o=n(70503),l=a.boolean,c=a.overloadedBoolean,i=a.booleanish,s=a.number,u=a.spaceSeparated,d=a.commaSeparated;e.exports=r({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:o,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:d,acceptCharset:u,accessKey:u,action:null,allow:null,allowFullScreen:l,allowPaymentRequest:l,allowUserMedia:l,alt:null,as:null,async:l,autoCapitalize:null,autoComplete:u,autoFocus:l,autoPlay:l,capture:l,charSet:null,checked:l,cite:null,className:u,cols:s,colSpan:null,content:null,contentEditable:i,controls:l,controlsList:u,coords:s|d,crossOrigin:null,data:null,dateTime:null,decoding:null,default:l,defer:l,dir:null,dirName:null,disabled:l,download:c,draggable:i,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:l,formTarget:null,headers:u,height:s,hidden:l,high:s,href:null,hrefLang:null,htmlFor:u,httpEquiv:u,id:null,imageSizes:null,imageSrcSet:d,inputMode:null,integrity:null,is:null,isMap:l,itemId:null,itemProp:u,itemRef:u,itemScope:l,itemType:u,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:l,low:s,manifest:null,max:null,maxLength:s,media:null,method:null,min:null,minLength:s,multiple:l,muted:l,name:null,nonce:null,noModule:l,noValidate:l,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:l,optimum:s,pattern:null,ping:u,placeholder:null,playsInline:l,poster:null,preload:null,readOnly:l,referrerPolicy:null,rel:u,required:l,reversed:l,rows:s,rowSpan:s,sandbox:u,scope:null,scoped:l,seamless:l,selected:l,shape:null,size:s,sizes:null,slot:null,span:s,spellCheck:i,src:null,srcDoc:null,srcLang:null,srcSet:d,start:s,step:null,style:null,tabIndex:s,target:null,title:null,translate:null,type:null,typeMustMatch:l,useMap:null,value:i,width:s,wrap:null,align:null,aLink:null,archive:u,axis:null,background:null,bgColor:null,border:s,borderColor:null,bottomMargin:s,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:l,declare:l,event:null,face:null,frame:null,frameBorder:null,hSpace:s,leftMargin:s,link:null,longDesc:null,lowSrc:null,marginHeight:s,marginWidth:s,noResize:l,noHref:l,noShade:l,noWrap:l,object:null,profile:null,prompt:null,rev:null,rightMargin:s,rules:null,scheme:null,scrolling:i,standby:null,summary:null,text:null,topMargin:s,valueType:null,version:null,vAlign:null,vLink:null,vSpace:s,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:l,disableRemotePlayback:l,prefix:null,property:null,results:s,security:null,unselectable:null}})},61945:(e,t,n)=>{"use strict";var a=n(71478),r=n(70503);e.exports=a({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:r,properties:{xmlns:null,xmlnsXLink:null}})},61993:e=>{"use strict";function t(e){!function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(e)}e.exports=t,t.displayName="css",t.aliases=[]},62422:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});const a={'pre[class*="language-"]':{color:"#d4d4d4",fontSize:"13px",textShadow:"none",fontFamily:'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",background:"#1e1e1e"},'code[class*="language-"]':{color:"#d4d4d4",fontSize:"13px",textShadow:"none",fontFamily:'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#264F78"},'code[class*="language-"]::selection':{textShadow:"none",background:"#264F78"},'pre[class*="language-"] *::selection':{textShadow:"none",background:"#264F78"},'code[class*="language-"] *::selection':{textShadow:"none",background:"#264F78"},':not(pre) > code[class*="language-"]':{padding:".1em .3em",borderRadius:".3em",color:"#db4c69",background:"#1e1e1e"},".namespace":{Opacity:".7"},"doctype.doctype-tag":{color:"#569CD6"},"doctype.name":{color:"#9cdcfe"},comment:{color:"#6a9955"},prolog:{color:"#6a9955"},punctuation:{color:"#d4d4d4"},".language-html .language-css .token.punctuation":{color:"#d4d4d4"},".language-html .language-javascript .token.punctuation":{color:"#d4d4d4"},property:{color:"#9cdcfe"},tag:{color:"#569cd6"},boolean:{color:"#569cd6"},number:{color:"#b5cea8"},constant:{color:"#9cdcfe"},symbol:{color:"#b5cea8"},inserted:{color:"#b5cea8"},unit:{color:"#b5cea8"},selector:{color:"#d7ba7d"},"attr-name":{color:"#9cdcfe"},string:{color:"#ce9178"},char:{color:"#ce9178"},builtin:{color:"#ce9178"},deleted:{color:"#ce9178"},".language-css .token.string.url":{textDecoration:"underline"},operator:{color:"#d4d4d4"},entity:{color:"#569cd6"},"operator.arrow":{color:"#569CD6"},atrule:{color:"#ce9178"},"atrule.rule":{color:"#c586c0"},"atrule.url":{color:"#9cdcfe"},"atrule.url.function":{color:"#dcdcaa"},"atrule.url.punctuation":{color:"#d4d4d4"},keyword:{color:"#569CD6"},"keyword.module":{color:"#c586c0"},"keyword.control-flow":{color:"#c586c0"},function:{color:"#dcdcaa"},"function.maybe-class-name":{color:"#dcdcaa"},regex:{color:"#d16969"},important:{color:"#569cd6"},italic:{fontStyle:"italic"},"class-name":{color:"#4ec9b0"},"maybe-class-name":{color:"#4ec9b0"},console:{color:"#9cdcfe"},parameter:{color:"#9cdcfe"},interpolation:{color:"#9cdcfe"},"punctuation.interpolation-punctuation":{color:"#569cd6"},variable:{color:"#9cdcfe"},"imports.maybe-class-name":{color:"#9cdcfe"},"exports.maybe-class-name":{color:"#9cdcfe"},escape:{color:"#d7ba7d"},"tag.punctuation":{color:"#808080"},cdata:{color:"#808080"},"attr-value":{color:"#ce9178"},"attr-value.punctuation":{color:"#ce9178"},"attr-value.punctuation.attr-equals":{color:"#d4d4d4"},namespace:{color:"#4ec9b0"},'pre[class*="language-javascript"]':{color:"#9cdcfe"},'code[class*="language-javascript"]':{color:"#9cdcfe"},'pre[class*="language-jsx"]':{color:"#9cdcfe"},'code[class*="language-jsx"]':{color:"#9cdcfe"},'pre[class*="language-typescript"]':{color:"#9cdcfe"},'code[class*="language-typescript"]':{color:"#9cdcfe"},'pre[class*="language-tsx"]':{color:"#9cdcfe"},'code[class*="language-tsx"]':{color:"#9cdcfe"},'pre[class*="language-css"]':{color:"#ce9178"},'code[class*="language-css"]':{color:"#ce9178"},'pre[class*="language-html"]':{color:"#d4d4d4"},'code[class*="language-html"]':{color:"#d4d4d4"},".language-regex .token.anchor":{color:"#dcdcaa"},".language-html .token.punctuation":{color:"#808080"},'pre[class*="language-"] > code[class*="language-"]':{position:"relative",zIndex:"1"},".line-highlight.line-highlight":{background:"#f7ebc6",boxShadow:"inset 5px 0 0 #f7d87c",zIndex:"0"}}},64016:e=>{"use strict";var t;e.exports=function(e){var n,a="&"+e+";";if((t=t||document.createElement("i")).innerHTML=a,59===(n=t.textContent).charCodeAt(n.length-1)&&"semi"!==e)return!1;return n!==a&&n}},70302:(e,t,n)=>{"use strict";var a=n(58974),r=n(73125);e.exports=c,c.prototype=new a,c.prototype.defined=!0;var o=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],l=o.length;function c(e,t,n,c){var s,u=-1;for(i(this,"space",c),a.call(this,e,t);++u<l;)i(this,s=o[u],(n&r[s])===r[s])}function i(e,t,n){n&&(e[t]=n)}},70503:(e,t,n)=>{"use strict";var a=n(32990);e.exports=function(e,t){return a(e,t.toLowerCase())}},70730:(e,t,n)=>{"use strict";var a=n(35228),r=n(83851),o=n(91622),l=n(61945),c=n(11666),i=n(59162);e.exports=a([o,r,l,c,i])},71383:(e,t)=>{"use strict";t.q=function(e){var t,a=[],o=String(e||r),l=o.indexOf(n),c=0,i=!1;for(;!i;)-1===l&&(l=o.length,i=!0),!(t=o.slice(c,l).trim())&&i||a.push(t),c=l+1,l=o.indexOf(n,c);return a};var n=",",a=" ",r=""},71478:(e,t,n)=>{"use strict";var a=n(72996),r=n(9009),o=n(70302);e.exports=function(e){var t,n,l=e.space,c=e.mustUseProperty||[],i=e.attributes||{},s=e.properties,u=e.transform,d={},p={};for(t in s)n=new o(t,u(i,t),s[t],l),-1!==c.indexOf(t)&&(n.mustUseProperty=!0),d[t]=n,p[a(t)]=t,p[a(n.attribute)]=t;return new r(d,p,l)}},72824:(e,t,n)=>{"use strict";var a=n(82719),r=n(21257),o=n(94667),l=n(83991),c=n(494),i=n(64016);e.exports=function(e,t){var n,o,l={};t||(t={});for(o in p)n=t[o],l[o]=null===n||void 0===n?p[o]:n;(l.position.indent||l.position.start)&&(l.indent=l.position.indent||[],l.position=l.position.start);return function(e,t){var n,o,l,p,R,q,H,B,U,W,V,Z,G,K,J,Y,X,Q,ee,te=t.additional,ne=t.nonTerminated,ae=t.text,re=t.reference,oe=t.warning,le=t.textContext,ce=t.referenceContext,ie=t.warningContext,se=t.position,ue=t.indent||[],de=e.length,pe=0,ge=-1,me=se.column||1,fe=se.line||1,he="",ye=[];"string"===typeof te&&(te=te.charCodeAt(0));Y=be(),B=oe?ve:d,pe--,de++;for(;++pe<de;)if(R===m&&(me=ue[ge]||1),(R=e.charCodeAt(pe))===y){if((H=e.charCodeAt(pe+1))===g||H===m||H===f||H===h||H===y||H===v||H!==H||te&&H===te){he+=u(R),me++;continue}for(Z=G=pe+1,ee=G,H===x?(ee=++Z,(H=e.charCodeAt(ee))===k||H===S?(K=O,ee=++Z):K=N):K=F,n="",V="",p="",J=j[K],ee--;++ee<de&&J(H=e.charCodeAt(ee));)p+=u(H),K===F&&s.call(a,p)&&(n=p,V=a[p]);(l=e.charCodeAt(ee)===b)&&(ee++,(o=K===F&&i(p))&&(n=p,V=o)),Q=1+ee-G,(l||ne)&&(p?K===F?(l&&!V?B(z,1):(n!==p&&(Q=1+(ee=Z+n.length)-Z,l=!1),l||(U=n?P:_,t.attribute?(H=e.charCodeAt(ee))===w?(B(U,Q),V=null):c(H)?V=null:B(U,Q):B(U,Q))),q=V):(l||B(L,Q),D(q=parseInt(p,C[K]))?(B(T,Q),q=u(A)):q in r?(B(M,Q),q=r[q]):(W="",I(q)&&B(M,Q),q>65535&&(W+=u((q-=65536)>>>10|55296),q=56320|1023&q),q=W+u(q))):K!==F&&B(E,Q)),q?(we(),Y=be(),pe=ee-1,me+=ee-G+1,ye.push(q),(X=be()).offset++,re&&re.call(ce,q,{start:Y,end:X},e.slice(G-1,ee)),Y=X):(p=e.slice(G-1,ee),he+=p,me+=p.length,pe=ee-1)}else 10===R&&(fe++,ge++,me=0),R===R?(he+=u(R),me++):we();return ye.join("");function be(){return{line:fe,column:me,offset:pe+(se.offset||0)}}function ve(e,t){var n=be();n.column+=t,n.offset+=t,oe.call(ie,$[e],n,e)}function we(){he&&(ye.push(he),ae&&ae.call(le,he,{start:Y,end:be()}),he="")}}(e,l)};var s={}.hasOwnProperty,u=String.fromCharCode,d=Function.prototype,p={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},g=9,m=10,f=12,h=32,y=38,b=59,v=60,w=61,x=35,k=88,S=120,A=65533,F="named",O="hexadecimal",N="decimal",C={};C[O]=16,C[N]=10;var j={};j[F]=c,j[N]=o,j[O]=l;var P=1,L=2,_=3,E=4,z=5,M=6,T=7,$={};function D(e){return e>=55296&&e<=57343||e>1114111}function I(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||65535===(65535&e)||65534===(65535&e)}$[P]="Named character references must be terminated by a semicolon",$[L]="Numeric character references must be terminated by a semicolon",$[_]="Named character references cannot be empty",$[E]="Numeric character references cannot be empty",$[z]="Named character references must be known",$[M]="Numeric character references cannot be disallowed",$[T]="Numeric character references cannot be outside the permissible Unicode range"},72996:e=>{"use strict";e.exports=function(e){return e.toLowerCase()}},73125:(e,t)=>{"use strict";var n=0;function a(){return Math.pow(2,++n)}t.boolean=a(),t.booleanish=a(),t.overloadedBoolean=a(),t.number=a(),t.spaceSeparated=a(),t.commaSeparated=a(),t.commaOrSpaceSeparated=a()},73934:e=>{"use strict";e.exports=function(e){var t="string"===typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}},82140:(e,t)=>{"use strict";t.q=function(e){var t=String(e||n).trim();return t===n?[]:t.split(r)};var n="",a=" ",r=/[ \t\n\r\f]+/g},82719:e=>{"use strict";e.exports=JSON.parse('{"AElig":"\xc6","AMP":"&","Aacute":"\xc1","Acirc":"\xc2","Agrave":"\xc0","Aring":"\xc5","Atilde":"\xc3","Auml":"\xc4","COPY":"\xa9","Ccedil":"\xc7","ETH":"\xd0","Eacute":"\xc9","Ecirc":"\xca","Egrave":"\xc8","Euml":"\xcb","GT":">","Iacute":"\xcd","Icirc":"\xce","Igrave":"\xcc","Iuml":"\xcf","LT":"<","Ntilde":"\xd1","Oacute":"\xd3","Ocirc":"\xd4","Ograve":"\xd2","Oslash":"\xd8","Otilde":"\xd5","Ouml":"\xd6","QUOT":"\\"","REG":"\xae","THORN":"\xde","Uacute":"\xda","Ucirc":"\xdb","Ugrave":"\xd9","Uuml":"\xdc","Yacute":"\xdd","aacute":"\xe1","acirc":"\xe2","acute":"\xb4","aelig":"\xe6","agrave":"\xe0","amp":"&","aring":"\xe5","atilde":"\xe3","auml":"\xe4","brvbar":"\xa6","ccedil":"\xe7","cedil":"\xb8","cent":"\xa2","copy":"\xa9","curren":"\xa4","deg":"\xb0","divide":"\xf7","eacute":"\xe9","ecirc":"\xea","egrave":"\xe8","eth":"\xf0","euml":"\xeb","frac12":"\xbd","frac14":"\xbc","frac34":"\xbe","gt":">","iacute":"\xed","icirc":"\xee","iexcl":"\xa1","igrave":"\xec","iquest":"\xbf","iuml":"\xef","laquo":"\xab","lt":"<","macr":"\xaf","micro":"\xb5","middot":"\xb7","nbsp":"\xa0","not":"\xac","ntilde":"\xf1","oacute":"\xf3","ocirc":"\xf4","ograve":"\xf2","ordf":"\xaa","ordm":"\xba","oslash":"\xf8","otilde":"\xf5","ouml":"\xf6","para":"\xb6","plusmn":"\xb1","pound":"\xa3","quot":"\\"","raquo":"\xbb","reg":"\xae","sect":"\xa7","shy":"\xad","sup1":"\xb9","sup2":"\xb2","sup3":"\xb3","szlig":"\xdf","thorn":"\xfe","times":"\xd7","uacute":"\xfa","ucirc":"\xfb","ugrave":"\xf9","uml":"\xa8","uuml":"\xfc","yacute":"\xfd","yen":"\xa5","yuml":"\xff"}')},83851:(e,t,n)=>{"use strict";var a=n(71478);e.exports=a({space:"xlink",transform:function(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}})},83991:e=>{"use strict";e.exports=function(e){var t="string"===typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}},86598:(e,t,n)=>{"use strict";var a="object"===typeof globalThis?globalThis:"object"===typeof self?self:"object"===typeof window?window:"object"===typeof n.g?n.g:{},r=function(){var e="Prism"in a,t=e?a.Prism:void 0;return function(){e?a.Prism=t:delete a.Prism;e=void 0,t=void 0}}();a.Prism={manual:!0,disableWorkerMessageHandler:!0};var o=n(55942),l=n(72824),c=n(93915),i=n(33592),s=n(61993),u=n(22216),d=n(50683);r();var p={}.hasOwnProperty;function g(){}g.prototype=c;var m=new g;function f(e){if("function"!==typeof e||!e.displayName)throw new Error("Expected `function` for `grammar`, got `"+e+"`");void 0===m.languages[e.displayName]&&e(m)}e.exports=m,m.highlight=function(e,t){var n,a=c.highlight;if("string"!==typeof e)throw new Error("Expected `string` for `value`, got `"+e+"`");if("Object"===m.util.type(t))n=t,t=null;else{if("string"!==typeof t)throw new Error("Expected `string` for `name`, got `"+t+"`");if(!p.call(m.languages,t))throw new Error("Unknown language: `"+t+"` is not registered");n=m.languages[t]}return a.call(this,e,n,t)},m.register=f,m.alias=function(e,t){var n,a,r,o,l=m.languages,c=e;t&&((c={})[e]=t);for(n in c)for(r=(a="string"===typeof(a=c[n])?[a]:a).length,o=-1;++o<r;)l[a[o]]=l[n]},m.registered=function(e){if("string"!==typeof e)throw new Error("Expected `string` for `language`, got `"+e+"`");return p.call(m.languages,e)},m.listLanguages=function(){var e,t=m.languages,n=[];for(e in t)p.call(t,e)&&"object"===typeof t[e]&&n.push(e);return n},f(i),f(s),f(u),f(d),m.util.encode=function(e){return e},m.Token.stringify=function(e,t,n){var a;if("string"===typeof e)return{type:"text",value:e};if("Array"===m.util.type(e))return function(e,t){var n,a=[],r=e.length,o=-1;for(;++o<r;)""!==(n=e[o])&&null!==n&&void 0!==n&&a.push(n);o=-1,r=a.length;for(;++o<r;)n=a[o],a[o]=m.Token.stringify(n,t,a);return a}(e,t);a={type:e.type,content:m.Token.stringify(e.content,t,n),tag:"span",classes:["token",e.type],attributes:{},language:t,parent:n},e.alias&&(a.classes=a.classes.concat(e.alias));return m.hooks.run("wrap",a),o(a.tag+"."+a.classes.join("."),function(e){var t;for(t in e)e[t]=l(e[t]);return e}(a.attributes),a.content)}},91448:e=>{"use strict";e.exports=function(e,n){var a,r,o,l=e||"",c=n||"div",i={},s=0;for(;s<l.length;)t.lastIndex=s,o=t.exec(l),(a=l.slice(s,o?o.index:l.length))&&(r?"#"===r?i.id=a:i.className?i.className.push(a):i.className=[a]:c=a,s+=a.length),o&&(r=o[0],s++);return{type:"element",tagName:c,properties:i,children:[]}};var t=/[#.]/g},91622:(e,t,n)=>{"use strict";var a=n(71478);e.exports=a({space:"xml",transform:function(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}})},93915:(e,t,n)=>{var a=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,a={},r={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var a,o;switch(n=n||{},r.util.type(t)){case"Object":if(o=r.util.objId(t),n[o])return n[o];for(var l in a={},n[o]=a,t)t.hasOwnProperty(l)&&(a[l]=e(t[l],n));return a;case"Array":return o=r.util.objId(t),n[o]?n[o]:(a=[],n[o]=a,t.forEach((function(t,r){a[r]=e(t,n)})),a);default:return t}},getLanguage:function(e){for(;e;){var n=t.exec(e.className);if(n)return n[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,n){e.className=e.className.replace(RegExp(t,"gi"),""),e.classList.add("language-"+n)},currentScript:function(){if("undefined"===typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(a){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(a.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var a="no-"+t;e;){var r=e.classList;if(r.contains(t))return!0;if(r.contains(a))return!1;e=e.parentElement}return!!n}},languages:{plain:a,plaintext:a,text:a,txt:a,extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var a in t)n[a]=t[a];return n},insertBefore:function(e,t,n,a){var o=(a=a||r.languages)[e],l={};for(var c in o)if(o.hasOwnProperty(c)){if(c==t)for(var i in n)n.hasOwnProperty(i)&&(l[i]=n[i]);n.hasOwnProperty(c)||(l[c]=o[c])}var s=a[e];return a[e]=l,r.languages.DFS(r.languages,(function(t,n){n===s&&t!=e&&(this[t]=l)})),l},DFS:function e(t,n,a,o){o=o||{};var l=r.util.objId;for(var c in t)if(t.hasOwnProperty(c)){n.call(t,c,t[c],a||c);var i=t[c],s=r.util.type(i);"Object"!==s||o[l(i)]?"Array"!==s||o[l(i)]||(o[l(i)]=!0,e(i,n,c,o)):(o[l(i)]=!0,e(i,n,null,o))}}},plugins:{},highlightAll:function(e,t){r.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var a={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};r.hooks.run("before-highlightall",a),a.elements=Array.prototype.slice.apply(a.container.querySelectorAll(a.selector)),r.hooks.run("before-all-elements-highlight",a);for(var o,l=0;o=a.elements[l++];)r.highlightElement(o,!0===t,a.callback)},highlightElement:function(t,n,a){var o=r.util.getLanguage(t),l=r.languages[o];r.util.setLanguage(t,o);var c=t.parentElement;c&&"pre"===c.nodeName.toLowerCase()&&r.util.setLanguage(c,o);var i={element:t,language:o,grammar:l,code:t.textContent};function s(e){i.highlightedCode=e,r.hooks.run("before-insert",i),i.element.innerHTML=i.highlightedCode,r.hooks.run("after-highlight",i),r.hooks.run("complete",i),a&&a.call(i.element)}if(r.hooks.run("before-sanity-check",i),(c=i.element.parentElement)&&"pre"===c.nodeName.toLowerCase()&&!c.hasAttribute("tabindex")&&c.setAttribute("tabindex","0"),!i.code)return r.hooks.run("complete",i),void(a&&a.call(i.element));if(r.hooks.run("before-highlight",i),i.grammar)if(n&&e.Worker){var u=new Worker(r.filename);u.onmessage=function(e){s(e.data)},u.postMessage(JSON.stringify({language:i.language,code:i.code,immediateClose:!0}))}else s(r.highlight(i.code,i.grammar,i.language));else s(r.util.encode(i.code))},highlight:function(e,t,n){var a={code:e,grammar:t,language:n};if(r.hooks.run("before-tokenize",a),!a.grammar)throw new Error('The language "'+a.language+'" has no grammar.');return a.tokens=r.tokenize(a.code,a.grammar),r.hooks.run("after-tokenize",a),o.stringify(r.util.encode(a.tokens),a.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var a in n)t[a]=n[a];delete t.rest}var r=new i;return s(r,r.head,e),c(e,r,t,r.head,0),function(e){var t=[],n=e.head.next;for(;n!==e.tail;)t.push(n.value),n=n.next;return t}(r)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var a,o=0;a=n[o++];)a(t)}},Token:o};function o(e,t,n,a){this.type=e,this.content=t,this.alias=n,this.length=0|(a||"").length}function l(e,t,n,a){e.lastIndex=t;var r=e.exec(n);if(r&&a&&r[1]){var o=r[1].length;r.index+=o,r[0]=r[0].slice(o)}return r}function c(e,t,n,a,i,d){for(var p in n)if(n.hasOwnProperty(p)&&n[p]){var g=n[p];g=Array.isArray(g)?g:[g];for(var m=0;m<g.length;++m){if(d&&d.cause==p+","+m)return;var f=g[m],h=f.inside,y=!!f.lookbehind,b=!!f.greedy,v=f.alias;if(b&&!f.pattern.global){var w=f.pattern.toString().match(/[imsuy]*$/)[0];f.pattern=RegExp(f.pattern.source,w+"g")}for(var x=f.pattern||f,k=a.next,S=i;k!==t.tail&&!(d&&S>=d.reach);S+=k.value.length,k=k.next){var A=k.value;if(t.length>e.length)return;if(!(A instanceof o)){var F,O=1;if(b){if(!(F=l(x,S,e,y))||F.index>=e.length)break;var N=F.index,C=F.index+F[0].length,j=S;for(j+=k.value.length;N>=j;)j+=(k=k.next).value.length;if(S=j-=k.value.length,k.value instanceof o)continue;for(var P=k;P!==t.tail&&(j<C||"string"===typeof P.value);P=P.next)O++,j+=P.value.length;O--,A=e.slice(S,j),F.index-=S}else if(!(F=l(x,0,A,y)))continue;N=F.index;var L=F[0],_=A.slice(0,N),E=A.slice(N+L.length),z=S+A.length;d&&z>d.reach&&(d.reach=z);var M=k.prev;if(_&&(M=s(t,M,_),S+=_.length),u(t,M,O),k=s(t,M,new o(p,h?r.tokenize(L,h):L,v,L)),E&&s(t,k,E),O>1){var T={cause:p+","+m,reach:z};c(e,t,n,k.prev,S,T),d&&T.reach>d.reach&&(d.reach=T.reach)}}}}}}function i(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function s(e,t,n){var a=t.next,r={value:n,prev:t,next:a};return t.next=r,a.prev=r,e.length++,r}function u(e,t,n){for(var a=t.next,r=0;r<n&&a!==e.tail;r++)a=a.next;t.next=a,a.prev=t,e.length-=r}if(e.Prism=r,o.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var a="";return t.forEach((function(t){a+=e(t,n)})),a}var o={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},l=t.alias;l&&(Array.isArray(l)?Array.prototype.push.apply(o.classes,l):o.classes.push(l)),r.hooks.run("wrap",o);var c="";for(var i in o.attributes)c+=" "+i+'="'+(o.attributes[i]||"").replace(/"/g,""")+'"';return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+c+">"+o.content+"</"+o.tag+">"},!e.document)return e.addEventListener?(r.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),a=n.language,o=n.code,l=n.immediateClose;e.postMessage(r.highlight(o,r.languages[a],a)),l&&e.close()}),!1),r):r;var d=r.util.currentScript();function p(){r.manual||r.highlightAll()}if(d&&(r.filename=d.src,d.hasAttribute("data-manual")&&(r.manual=!0)),!r.manual){var g=document.readyState;"loading"===g||"interactive"===g&&d&&d.defer?document.addEventListener("DOMContentLoaded",p):window.requestAnimationFrame?window.requestAnimationFrame(p):window.setTimeout(p,16)}return r}("undefined"!==typeof window?window:"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=a),"undefined"!==typeof n.g&&(n.g.Prism=a)},94667:e=>{"use strict";e.exports=function(e){var t="string"===typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}},96298:(e,t,n)=>{"use strict";n.d(t,{A:()=>z});var a=n(98587);function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function o(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=l(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==l(t)?t:t+""}function i(e,t,n){return(t=c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=n(59284),u=n(58168);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var g={};function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return function(e){if(0===e.length||1===e.length)return e;var t=e.join(".");return g[t]||(g[t]=function(e){var t=e.length;return 0===t||1===t?e:2===t?[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])]:3===t?[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])]:t>=4?[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]:void 0}(e)),g[t]}(e.filter((function(e){return"token"!==e}))).reduce((function(e,t){return p(p({},e),n[t])}),t)}function f(e){return e.join(" ")}function h(e){var t=e.node,n=e.stylesheet,a=e.style,r=void 0===a?{}:a,o=e.useInlineStyles,l=e.key,c=t.properties,i=t.type,d=t.tagName,g=t.value;if("text"===i)return g;if(d){var y,b=function(e,t){var n=0;return function(a){return n+=1,a.map((function(a,r){return h({node:a,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(r)})}))}}(n,o);if(o){var v=Object.keys(n).reduce((function(e,t){return t.split(".").forEach((function(t){e.includes(t)||e.push(t)})),e}),[]),w=c.className&&c.className.includes("token")?["token"]:[],x=c.className&&w.concat(c.className.filter((function(e){return!v.includes(e)})));y=p(p({},c),{},{className:f(x)||void 0,style:m(c.className,Object.assign({},c.style,r),n)})}else y=p(p({},c),{},{className:f(c.className)});var k=b(t.children);return s.createElement(d,(0,u.A)({key:l},y),k)}}var y=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var w=/\n/g;function x(e){var t=e.codeString,n=e.codeStyle,a=e.containerStyle,r=void 0===a?{float:"left",paddingRight:"10px"}:a,o=e.numberStyle,l=void 0===o?{}:o,c=e.startingLineNumber;return s.createElement("code",{style:Object.assign({},n,r)},function(e){var t=e.lines,n=e.startingLineNumber,a=e.style;return t.map((function(e,t){var r=t+n;return s.createElement("span",{key:"line-".concat(t),className:"react-syntax-highlighter-line-number",style:"function"===typeof a?a(r):a},"".concat(r,"\n"))}))}({lines:t.replace(/\n$/,"").split("\n"),style:l,startingLineNumber:c}))}function k(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function S(e,t,n){var a,r={display:"inline-block",minWidth:(a=n,"".concat(a.toString().length,".25em")),paddingRight:"1em",textAlign:"right",userSelect:"none"},o="function"===typeof e?e(t):e;return v(v({},r),o)}function A(e){var t=e.children,n=e.lineNumber,a=e.lineNumberStyle,r=e.largestLineNumber,l=e.showInlineLineNumbers,c=e.lineProps,i=void 0===c?{}:c,s=e.className,u=void 0===s?[]:s,d=e.showLineNumbers,p=e.wrapLongLines,g=e.wrapLines,m=void 0!==g&&g?v({},"function"===typeof i?i(n):i):{};if(m.className=m.className?[].concat(o(m.className.trim().split(/\s+/)),o(u)):u,n&&l){var f=S(a,n,r);t.unshift(k(n,f))}return p&d&&(m.style=v({display:"flex"},m.style)),{type:"element",tagName:"span",properties:m,children:t}}function F(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=0;a<e.length;a++){var r=e[a];if("text"===r.type)n.push(A({children:[r],className:o(new Set(t))}));else if(r.children){var l=t.concat(r.properties.className);F(r.children,l).forEach((function(e){return n.push(e)}))}}return n}function O(e,t,n,a,r,o,l,c,i){var s,u=F(e.value),d=[],p=-1,g=0;function m(e,o){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return t||s.length>0?function(e,o){return A({children:e,lineNumber:o,lineNumberStyle:c,largestLineNumber:l,showInlineLineNumbers:r,lineProps:n,className:arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],showLineNumbers:a,wrapLongLines:i,wrapLines:t})}(e,o,s):function(e,t){if(a&&t&&r){var n=S(c,t,l);e.unshift(k(t,n))}return e}(e,o)}for(var f=function(){var e=u[g],t=e.children[0].value;if(t.match(w)){var n=t.split("\n");n.forEach((function(t,r){var l=a&&d.length+o,c={type:"text",value:"".concat(t,"\n")};if(0===r){var i=m(u.slice(p+1,g).concat(A({children:[c],className:e.properties.className})),l);d.push(i)}else if(r===n.length-1){var s=u[g+1]&&u[g+1].children&&u[g+1].children[0],f={type:"text",value:"".concat(t)};if(s){var h=A({children:[f],className:e.properties.className});u.splice(g+1,0,h)}else{var y=m([f],l,e.properties.className);d.push(y)}}else{var b=m([c],l,e.properties.className);d.push(b)}})),p=g}g++};g<u.length;)f();if(p!==u.length-1){var h=u.slice(p+1,u.length);if(h&&h.length){var y=m(h,a&&d.length+o);d.push(y)}}return t?d:(s=[]).concat.apply(s,d)}function N(e){var t=e.rows,n=e.stylesheet,a=e.useInlineStyles;return t.map((function(e,t){return h({node:e,stylesheet:n,useInlineStyles:a,key:"code-segement".concat(t)})}))}function C(e){return e&&"undefined"!==typeof e.highlightAuto}var j,P,L=n(86598),_=n.n(L),E=(j=_(),P={},function(e){var t=e.language,n=e.children,r=e.style,o=void 0===r?P:r,l=e.customStyle,c=void 0===l?{}:l,i=e.codeTagProps,u=void 0===i?{className:t?"language-".concat(t):void 0,style:v(v({},o['code[class*="language-"]']),o['code[class*="language-'.concat(t,'"]')])}:i,d=e.useInlineStyles,p=void 0===d||d,g=e.showLineNumbers,m=void 0!==g&&g,f=e.showInlineLineNumbers,h=void 0===f||f,b=e.startingLineNumber,w=void 0===b?1:b,k=e.lineNumberContainerStyle,S=e.lineNumberStyle,A=void 0===S?{}:S,F=e.wrapLines,L=e.wrapLongLines,_=void 0!==L&&L,E=e.lineProps,z=void 0===E?{}:E,M=e.renderer,T=e.PreTag,$=void 0===T?"pre":T,D=e.CodeTag,I=void 0===D?"code":D,R=e.code,q=void 0===R?(Array.isArray(n)?n[0]:n)||"":R,H=e.astGenerator,B=function(e,t){if(null==e)return{};var n,r,o=(0,a.A)(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,y);H=H||j;var U=m?s.createElement(x,{containerStyle:k,codeStyle:u.style||{},numberStyle:A,startingLineNumber:w,codeString:q}):null,W=o.hljs||o['pre[class*="language-"]']||{backgroundColor:"#fff"},V=C(H)?"hljs":"prismjs",Z=p?Object.assign({},B,{style:Object.assign({},W,c)}):Object.assign({},B,{className:B.className?"".concat(V," ").concat(B.className):V,style:Object.assign({},c)});if(u.style=v(_?{whiteSpace:"pre-wrap"}:{whiteSpace:"pre"},u.style),!H)return s.createElement($,Z,U,s.createElement(I,u,q));(void 0===F&&M||_)&&(F=!0),M=M||N;var G=[{type:"text",value:q}],K=function(e){var t=e.astGenerator,n=e.language,a=e.code,r=e.defaultCodeValue;if(C(t)){var o=function(e,t){return-1!==e.listLanguages().indexOf(t)}(t,n);return"text"===n?{value:r,language:"text"}:o?t.highlight(n,a):t.highlightAuto(a)}try{return n&&"text"!==n?{value:t.highlight(a,n)}:{value:r}}catch(l){return{value:r}}}({astGenerator:H,language:t,code:q,defaultCodeValue:G});null===K.language&&(K.value=G);var J=K.value.length;1===J&&"text"===K.value[0].type&&(J=K.value[0].value.split("\n").length);var Y=O(K,F,z,m,h,w,J+w,A,_);return s.createElement($,Z,s.createElement(I,u,!h&&U,M({rows:Y,stylesheet:o,useInlineStyles:p})))});E.registerLanguage=function(e,t){return _().register(t)},E.alias=function(e,t){return _().alias(e,t)};const z=E}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/6820.73ff230e.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/6820.bff2520f.chunk.js.LICENSE.txt index 0285de9116..0285de9116 100644 --- a/ydb/core/viewer/monitoring/static/js/6820.73ff230e.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/6820.bff2520f.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/684.9346e985.chunk.js b/ydb/core/viewer/monitoring/static/js/684.9346e985.chunk.js new file mode 100644 index 0000000000..f41691deb6 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/684.9346e985.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[684],{3685:(e,t,s)=>{s.d(t,{$:()=>r});var i=s(54090),n=s(77506),o=s(33775),a=s(60712);const l=(0,n.cn)("ydb-entity-page-title");function r({entityName:e,status:t=i.m.Grey,id:s,className:n}){return(0,a.jsxs)("div",{className:l(null,n),children:[(0,a.jsx)("span",{className:l("prefix"),children:e}),(0,a.jsx)(o.k,{className:l("icon"),status:t,size:"s"}),s]})}},18677:(e,t,s)=>{s.d(t,{A:()=>n});var i=s(59284);const n=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14M6.53 5.47a.75.75 0 0 0-1.06 1.06L6.94 8 5.47 9.47a.75.75 0 1 0 1.06 1.06L8 9.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L9.06 8l1.47-1.47a.75.75 0 1 0-1.06-1.06L8 6.94z",clipRule:"evenodd"}))},22983:(e,t,s)=>{s.d(t,{B:()=>d});var i=s(59284),n=s(84476),o=s(84375),a=s(55974),l=s(42829),r=s(60712);function d({children:e,onConfirmAction:t,onConfirmActionSuccess:s,dialogHeader:d,dialogText:c,retryButtonText:u,buttonDisabled:m=!1,buttonView:p="action",buttonTitle:h,buttonClassName:v,withPopover:g=!1,popoverContent:f,popoverPlacement:x="right",popoverDisabled:b=!0}){const[y,j]=i.useState(!1),[k,N]=i.useState(!1),[S,w]=i.useState(!1),D=()=>(0,r.jsx)(n.$,{onClick:()=>j(!0),view:p,disabled:m,loading:!m&&k,className:v,title:h,children:e});return(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(a.g,{visible:y,header:d,text:c,withRetry:S,retryButtonText:u,onConfirm:async e=>{N(!0),await t(e)},onConfirmActionSuccess:async()=>{w(!1);try{await(null===s||void 0===s?void 0:s())}finally{N(!1)}},onConfirmActionError:e=>{w((0,l.D)(e)),N(!1)},onClose:()=>{j(!1)}}),g?(0,r.jsx)(o.A,{content:f,placement:x,disabled:b,children:D()}):D()]})}},42655:(e,t,s)=>{s.d(t,{y:()=>c});var i=s(59284),n=s(89169),o=s(77506),a=s(66781),l=s(60712);const r=(0,o.cn)("ydb-info-viewer-skeleton"),d=()=>(0,l.jsxs)("div",{className:r("label"),children:[(0,l.jsx)(n.E,{className:r("label__text")}),(0,l.jsx)("div",{className:r("label__dots")})]}),c=({rows:e=8,className:t,delay:s=600})=>{const[o]=(0,a.y)(s);let c=(0,l.jsxs)(i.Fragment,{children:[(0,l.jsx)(d,{}),(0,l.jsx)(n.E,{className:r("value")})]});return o||(c=null),(0,l.jsx)("div",{className:r(null,t),children:[...new Array(e)].map(((e,t)=>(0,l.jsx)("div",{className:r("row"),children:c},`skeleton-row-${t}`)))})}},42829:(e,t,s)=>{s.d(t,{D:()=>i});const i=e=>Boolean(e&&"object"===typeof e&&"retryPossible"in e&&e.retryPossible)},45659:(e,t,s)=>{s.d(t,{Q:()=>g});var i=s(87184),n=s(92459),o=s(7435),a=s(46549),l=s(56839),r=s(31684),d=s(12888),c=s(18863),u=s(25196),m=s(15132),p=s(33775),h=s(50672),v=s(60712);function g({pDisk:e,nodeId:t,withPDiskPageLink:s,className:g}){const f=(0,d.X)(),[x,b,y,j]=function({pDisk:e,nodeId:t,withPDiskPageLink:s,isUserAllowedToMakeChanges:d}){const{PDiskId:c,Path:g,Guid:f,Category:x,Type:b,Device:y,Realtime:j,State:k,SerialNumber:N,TotalSize:S,AllocatedSize:w,StatusV2:D,NumActiveSlots:I,ExpectedSlotCount:C,LogUsedSize:E,LogTotalSize:T,SystemSize:P,SharedWithOs:z}=e||{},A=[];(0,o.f8)(x)&&A.push({label:(0,h.D)("type"),value:b}),(0,o.f8)(g)&&A.push({label:(0,h.D)("path"),value:g}),(0,o.f8)(f)&&A.push({label:(0,h.D)("guid"),value:f}),N&&A.push({label:(0,h.D)("serial-number"),value:N}),z&&A.push({label:(0,h.D)("shared-with-os"),value:(0,h.D)("yes")});const M=[];(0,o.f8)(D)&&M.push({label:(0,h.D)("drive-status"),value:D}),(0,o.f8)(k)&&M.push({label:(0,h.D)("state"),value:k}),(0,o.f8)(y)&&M.push({label:(0,h.D)("device"),value:(0,v.jsx)(p.k,{status:y})}),(0,o.f8)(j)&&M.push({label:(0,h.D)("realtime"),value:(0,v.jsx)(p.k,{status:j})});const _=[];_.push({label:(0,h.D)("space"),value:(0,v.jsx)(m.O,{value:w,capacity:S,formatValues:l.vX,colorizeProgress:!0})}),(0,o.f8)(I)&&(0,o.f8)(C)&&_.push({label:(0,h.D)("slots"),value:(0,v.jsx)(m.O,{value:I,capacity:C})}),(0,o.f8)(E)&&(0,o.f8)(T)&&_.push({label:(0,h.D)("log-size"),value:(0,v.jsx)(m.O,{value:E,capacity:T,formatValues:l.vX})}),(0,o.f8)(P)&&_.push({label:(0,h.D)("system-size"),value:(0,a.z3)({value:P})});const O=[];if((s||d)&&(0,o.f8)(c)&&(0,o.f8)(t)){const e=(0,n.Ck)(c,t),o=(0,r.ar)({nodeId:t,pDiskId:c});O.push({label:(0,h.D)("links"),value:(0,v.jsxs)(i.s,{wrap:"wrap",gap:2,children:[s&&(0,v.jsx)(u.K,{title:(0,h.D)("pdisk-page"),url:e,external:!1}),d&&(0,v.jsx)(u.K,{title:(0,h.D)("developer-ui"),url:o})]})})}return[A,M,_,O]}({pDisk:e,nodeId:t,withPDiskPageLink:s,isUserAllowedToMakeChanges:f});return(0,v.jsxs)(i.s,{className:g,gap:2,direction:"row",wrap:!0,children:[(0,v.jsxs)(i.s,{direction:"column",gap:2,width:500,children:[(0,v.jsx)(c.z,{info:x,renderEmptyState:()=>null}),(0,v.jsx)(c.z,{info:y,renderEmptyState:()=>null})]}),(0,v.jsxs)(i.s,{direction:"column",gap:2,width:500,children:[(0,v.jsx)(c.z,{info:b,renderEmptyState:()=>null}),(0,v.jsx)(c.z,{info:j,renderEmptyState:()=>null})]})]})}},55974:(e,t,s)=>{s.d(t,{g:()=>f});var i=s(59284),n=s(18677),o=s(71153),a=s(74321),l=s(2198),r=s(99991),d=s(89954),c=s(77506),u=s(48372);const m=JSON.parse('{"default-error":"Something went wrong, action cannot be completed","no-rights-error":"You don\'t have enough rights to complete the operation","button-confirm":"Confirm","button-retry":"Retry","button-cancel":"Cancel","button-close":"Close","checkbox-text":"I understand what I\'m doing"}'),p=(0,u.g4)("ydb-critical-action-dialog",{en:m});var h=s(60712);const v=(0,c.cn)("ydb-critical-dialog"),g=e=>e.data&&"issues"in e.data&&e.data.issues?(0,h.jsx)(d.O,{hideSeverity:!0,data:e.data}):403===e.status?p("no-rights-error"):e.statusText?e.statusText:p("default-error");function f({visible:e,header:t,text:s,withRetry:d,retryButtonText:c,withCheckBox:u,onClose:m,onConfirm:f,onConfirmActionSuccess:x,onConfirmActionError:b}){const[y,j]=i.useState(!1),[k,N]=i.useState(),[S,w]=i.useState(!1),D=async e=>(j(!0),f(e).then((()=>{x(),m()})).catch((e=>{b(e),N(e)})).finally((()=>{j(!1)})));return(0,h.jsx)(l.l,{open:e,hasCloseButton:!1,className:v(),size:"s",onClose:m,onTransitionExited:()=>{N(void 0),w(!1)},children:k?(0,h.jsxs)(i.Fragment,{children:[(0,h.jsx)(l.l.Header,{caption:t}),(0,h.jsx)(l.l.Body,{className:v("body"),children:(0,h.jsxs)("div",{className:v("body-message",{error:!0}),children:[(0,h.jsx)("span",{className:v("error-icon"),children:(0,h.jsx)(n.A,{width:"24",height:"22"})}),g(k)]})}),(0,h.jsx)(l.l.Footer,{loading:!1,preset:"default",textButtonApply:d?c||p("button-retry"):void 0,textButtonCancel:p("button-close"),onClickButtonApply:()=>D(!0),onClickButtonCancel:m})]}):(0,h.jsxs)(i.Fragment,{children:[(0,h.jsx)(l.l.Header,{caption:t}),(0,h.jsxs)(l.l.Body,{className:v("body"),children:[(0,h.jsxs)("div",{className:v("body-message",{warning:!0}),children:[(0,h.jsx)("span",{className:v("warning-icon"),children:(0,h.jsx)(r.I,{data:o.A,size:24})}),s]}),u?(0,h.jsx)(a.S,{checked:S,onUpdate:w,children:p("checkbox-text")}):null]}),(0,h.jsx)(l.l.Footer,{loading:y,preset:"default",textButtonApply:p("button-confirm"),textButtonCancel:p("button-cancel"),propsButtonApply:{type:"submit",disabled:u&&!S},onClickButtonCancel:m,onClickButtonApply:()=>D()})]})})}},58389:(e,t,s)=>{s.d(t,{B:()=>u});var i=s(87184),n=s(77506),o=s(90053),a=s(70043),l=s(60712);const r=(0,n.cn)("ydb-page-meta"),d="\xa0\xa0\xb7\xa0\xa0";function c({items:e,loading:t}){return(0,l.jsx)("div",{className:r("info"),children:t?(0,l.jsx)(a.E,{className:r("skeleton")}):e.filter((e=>Boolean(e))).join(d)})}function u({className:e,...t}){return(0,l.jsxs)(i.s,{gap:1,alignItems:"center",justifyContent:"space-between",className:r(null,e),children:[(0,l.jsx)(c,{...t}),(0,l.jsx)(o.E,{})]})}},67808:(e,t,s)=>{s.d(t,{E:()=>b});s(59284);var i=s(87184),n=s(92459),o=s(7435),a=s(77506),l=s(56839),r=s(31684),d=s(7187),c=s(12888),u=s(41650),m=s(60073),p=s(25196),h=s(15132),v=s(33775),g=s(39110),f=s(60712);const x=(0,a.cn)("ydb-vdisk-info");function b({data:e,withVDiskPageLink:t,withTitle:s,...a}){var d,x;const b=(0,c.X)(),{AllocatedSize:j,DiskSpace:k,FrontQueues:N,Guid:S,Replicated:w,VDiskState:D,VDiskSlotId:I,Kind:C,SatisfactionRank:E,AvailableSize:T,HasUnreadableBlobs:P,IncarnationGuid:z,InstanceGuid:A,StoragePoolName:M,ReadThroughput:_,WriteThroughput:O,PDiskId:R,NodeId:B}=e||{},L=[];var F,$;((0,o.f8)(I)&&L.push({label:(0,g.r)("slot-id"),value:I}),(0,o.f8)(M)&&L.push({label:(0,g.r)("pool-name"),value:M}),(0,o.f8)(D)&&L.push({label:(0,g.r)("state-status"),value:D}),Number(j)>=0&&Number(T)>=0&&L.push({label:(0,g.r)("size"),value:(0,f.jsx)(h.O,{value:j,capacity:Number(j)+Number(T),formatValues:l.vX,colorizeProgress:!0})}),(0,o.f8)(C)&&L.push({label:(0,g.r)("kind"),value:C}),(0,o.f8)(S)&&L.push({label:(0,g.r)("guid"),value:S}),(0,o.f8)(z)&&L.push({label:(0,g.r)("incarnation-guid"),value:z}),(0,o.f8)(A)&&L.push({label:(0,g.r)("instance-guid"),value:A}),(0,o.f8)(w)&&L.push({label:(0,g.r)("replication-status"),value:w?(0,g.r)("yes"):(0,g.r)("no")}),(0,o.f8)(k)&&L.push({label:(0,g.r)("space-status"),value:(0,f.jsx)(v.k,{status:k})}),(0,o.f8)(null===E||void 0===E||null===(d=E.FreshRank)||void 0===d?void 0:d.Flag))&&L.push({label:(0,g.r)("fresh-rank-satisfaction"),value:(0,f.jsx)(v.k,{status:null===E||void 0===E||null===(F=E.FreshRank)||void 0===F?void 0:F.Flag})});(0,o.f8)(null===E||void 0===E||null===(x=E.LevelRank)||void 0===x?void 0:x.Flag)&&L.push({label:(0,g.r)("level-rank-satisfaction"),value:(0,f.jsx)(v.k,{status:null===E||void 0===E||null===($=E.LevelRank)||void 0===$?void 0:$.Flag})});(0,o.f8)(N)&&L.push({label:(0,g.r)("front-queues"),value:(0,f.jsx)(v.k,{status:N})}),(0,o.f8)(P)&&L.push({label:(0,g.r)("has-unreadable-blobs"),value:P?(0,g.r)("yes"):(0,g.r)("no")}),(0,o.f8)(_)&&L.push({label:(0,g.r)("read-throughput"),value:(0,u.O4)(_)}),(0,o.f8)(O)&&L.push({label:(0,g.r)("write-throughput"),value:(0,u.O4)(O)});if((0,o.f8)(R)&&(0,o.f8)(B)&&(0,o.f8)(I)){const e=[];if(t){const t=(0,n.yX)(I,R,B);e.push((0,f.jsx)(p.K,{title:(0,g.r)("vdisk-page"),url:t,external:!1},t))}if(b){const t=(0,r.Wg)({nodeId:B,pDiskId:R,vDiskSlotId:I});e.push((0,f.jsx)(p.K,{title:(0,g.r)("developer-ui"),url:t},t))}e.length&&L.push({label:(0,g.r)("links"),value:(0,f.jsx)(i.s,{wrap:"wrap",gap:2,children:e})})}const V=e&&s?(0,f.jsx)(y,{data:e}):null;return(0,f.jsx)(m.z_,{info:L,title:V,...a})}function y({data:e}){return(0,f.jsxs)("div",{className:x("title"),children:[(0,g.r)("vdiks-title"),(0,f.jsx)(v.k,{status:(0,d.XY)(e.Severity)}),e.StringifiedId]})}},69134:(e,t,s)=>{s.r(t),s.d(t,{PDiskPage:()=>ye});var i=s(59284),n=s(76938),o=s(99991),a=s(23871),l=s(44992),r=s(61750),d=s(67087),c=s(370),u=s(22983),m=s(3685),p=s(44508),h=s(42655),v=s(82015),g=s(45659),f=s(58389),x=s(92459),b=s(21334),y=s(67028),j=s(40174),k=s(7187),N=s(68712),S=s(7435),w=s(27295),D=s(78034);const I=b.F.injectEndpoints({endpoints:e=>({getPdiskInfo:e.query({queryFn:async({nodeId:e,pDiskId:t},{signal:s,getState:i,dispatch:n})=>{let o;o=await(0,N.FC)("/pdisk/info",void 0,{getState:i,dispatch:n})>0?window.api.pdisk.getPDiskInfo({nodeId:e,pDiskId:t},{signal:s}):window.api.viewer.getNodeWhiteboardPDiskInfo({nodeId:e,pDiskId:t},{signal:s}).then((e=>e.PDiskStateInfo?{Whiteboard:{PDisk:{...e.PDiskStateInfo[0],ExpectedSlotCount:void 0}}}:{}));try{const t=await Promise.all([o,window.api.viewer.getNodeInfo(e,{signal:s})]);return{data:function([e={},t]){var s,i,n;const o=null===(s=t.SystemStateInfo)||void 0===s?void 0:s[0],a=(0,D.q1)(o),{BSC:l={},Whiteboard:r={}}=e||{},{PDisk:d={},VDisks:c=[]}=r,{PDisk:u={}}=l,m=(0,w.or)({...u,...d}),p=null!==(i=m.NodeId)&&void 0!==i?i:a.NodeId,{LogUsedSize:h,LogTotalSize:v,TotalSize:g,SystemSize:f,ExpectedSlotCount:x,SlotSize:b}=m;let y;if((0,S.f8)(v)){const e=100*Number(h)/Number(v);y={SlotType:"log",Used:Number(h),Total:Number(v),UsagePercent:e,Severity:(0,k.SW)(e),SlotData:{LogUsedSize:h,LogTotalSize:v,SystemSize:f}}}const j=c.map((e=>(0,w.WT)({...e,NodeId:p})));j.sort(((e,t)=>Number(t.VDiskSlotId)-Number(e.VDiskSlotId)));const N=j.map((e=>{var t;const s=Math.max((0,k.SW)(e.AllocatedPercent),e.Severity||0);return{SlotType:"vDisk",Id:null===(t=e.VDiskId)||void 0===t?void 0:t.GroupID,Title:e.StoragePoolName,Severity:s,Used:Number(e.AllocatedSize),Total:Number(e.TotalSize),UsagePercent:e.AllocatedPercent,SlotData:e}}));let I=[];if(x&&x>N.length){const e=x-N.length;let t=Number(b);if(isNaN(t)){const s=N.reduce(((e,t)=>t.Total?e+t.Total:e),0);t=(Number(g)-s-Number(v))/e}I=(0,S._e)(e).map((()=>({SlotType:"empty",Total:t,Severity:1,SlotData:{Size:t}})))}const C=[...N,...I];return y&&C.length>0&&C.unshift(y),{...m,NodeId:p,NodeHost:a.Host,NodeType:null===(n=a.Roles)||void 0===n?void 0:n[0],NodeDC:a.DC,SlotItems:C}}(t)}}catch(a){return{error:a}}},providesTags:(e,t,s)=>["All",{type:"PDiskData",id:(0,k.r$)(s.nodeId,s.pDiskId)}]})}),overrideExisting:"throw"});var C=s(77506),E=s(90182),T=s(12888),P=s(99936),z=s(13066),A=s(40569),M=s(84375),_=s(84476),O=s(55974),R=s(42829),B=s(48372);const L=JSON.parse('{"fqdn":"FQDN","pdisk":"PDisk","node":"Node","storage":"Storage","space-distribution":"Space distribution","empty-slot":"Empty slot","log":"Log","label.log-size":"Log Size","label.system-size":"System Size","label.slot-size":"Slot Size","no-slots-data":"No slots data","restart-pdisk-button":"Restart PDisk","force-restart-pdisk-button":"Restart anyway","restart-pdisk-not-allowed":"You don\'t have enough rights to restart PDisk","restart-pdisk-dialog-header":"Restart PDisk","restart-pdisk-dialog-text":"PDisk will be restarted. Do you want to proceed?","decommission-none":"None","decommission-imminent":"Imminent","decommission-pending":"Pending","decommission-rejected":"Rejected","decommission-label":"{{decommission}} decommission","decommission-button":"Decommission","decommission-change-not-allowed":"You don\'t have enough rights to change PDisk decommission","decommission-dialog-title":"Change decommission status","decommission-dialog-force-change":"Change anyway","decommission-dialog-imminent-warning":"This will start imminent decommission. Existing slots will be moved from the disk","decommission-dialog-pending-warning":"This will start pending decommission. Decommission will be planned for this disk, but will not start immediatelly. Existing slots will not be moved from the disk, but no new slots will be allocated on it","decommission-dialog-rejected-warning":"This will start rejected decommission. No slots from other disks are placed on this disk in the process of decommission","decommission-dialog-none-warning":"This will reset decommission mode, allowing the disk to be used by the storage"}'),F=(0,B.g4)("ydb-pDisk-page",{en:L});var $,V,U,H;function G(){return G=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)({}).hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},G.apply(null,arguments)}const W=function(e){return i.createElement("svg",G({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 17",fill:"none"},e),$||($=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.378 7.771c.717 0 1.298.614 1.298 1.372v.914c0 .758-.581 1.372-1.298 1.372H3.46c-.716 0-1.297-.614-1.297-1.372v-.914c0-.758.58-1.372 1.297-1.372h6.92zm.77-1.248L9.935 3.958a1.292 1.292 0 00-1.16-.758H5.063c-.491 0-.94.294-1.16.758L2.69 6.523c.243-.08.501-.123.77-.123h6.918c.268 0 .527.043.77.123zm1.825 1.87V10.057c0 1.515-1.162 2.743-2.595 2.743H3.46c-1.433 0-2.594-1.228-2.594-2.743V8.393c0-.71.156-1.41.456-2.044l1.421-3.004c.44-.93 1.338-1.516 2.32-1.516h3.713c.982 0 1.88.587 2.32 1.516l1.421 3.004c.3.635.457 1.335.457 2.044zm-5.19.521c-.358 0-.648.307-.648.686 0 .379.29.686.649.686h2.162c.358 0 .649-.307.649-.686 0-.379-.29-.686-.65-.686H7.785z",fill:"currentColor",fillOpacity:.85})),V||(V=i.createElement("path",{d:"M15.25 11.428c0 2.15-1.639 3.822-3.574 3.822-1.935 0-3.574-1.671-3.574-3.822 0-2.15 1.639-3.821 3.574-3.821 1.935 0 3.574 1.671 3.574 3.821z",fill:"var(--g-color-base-background)",stroke:"currentColor",strokeWidth:1.5})),U||(U=i.createElement("path",{d:"M11.676 16.5c2.69 0 4.824-2.297 4.824-5.072 0-2.774-2.134-5.071-4.824-5.071s-4.824 2.297-4.824 5.071c0 2.775 2.134 5.072 4.824 5.072z",stroke:"var(--g-color-base-background)"})),H||(H=i.createElement("path",{d:"M12.973 10.057L10.378 12.8m0-2.743l2.595 2.743",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})))};var X=s(60712);const J=(0,C.cn)("ydb-pdisk-decommission-button");function q(e){return"DECOMMIT_IMMINENT"===e?F("decommission-dialog-imminent-warning"):"DECOMMIT_PENDING"===e?F("decommission-dialog-pending-warning"):"DECOMMIT_REJECTED"===e?F("decommission-dialog-rejected-warning"):"DECOMMIT_NONE"===e?F("decommission-dialog-none-warning"):void 0}function Y({decommission:e,onConfirmAction:t,onConfirmActionSuccess:s,buttonDisabled:n,popoverDisabled:o}){const[a,l]=i.useState(),[r,d]=i.useState(!1),[c,u]=i.useState(!1),m=function(e,t){return[{text:F("decommission-none"),action:()=>t("DECOMMIT_NONE"),hidden:!e||"DECOMMIT_NONE"===e||"DECOMMIT_UNSET"===e},{text:F("decommission-pending"),action:()=>t("DECOMMIT_PENDING"),hidden:"DECOMMIT_PENDING"===e},{text:F("decommission-rejected"),action:()=>t("DECOMMIT_REJECTED"),hidden:"DECOMMIT_REJECTED"===e},{text:F("decommission-imminent"),theme:"danger",action:()=>t("DECOMMIT_IMMINENT"),hidden:"DECOMMIT_IMMINENT"===e}]}(e,l);return(0,X.jsxs)(i.Fragment,{children:[(0,X.jsx)(A.r,{renderSwitcher:e=>(0,X.jsx)(Q,{popoverDisabled:o,loading:r,disabled:n,...e}),items:m,popupProps:{className:J("popup")}}),(0,X.jsx)(O.g,{visible:Boolean(a),header:F("decommission-dialog-title"),text:q(a),withRetry:c,withCheckBox:!0,retryButtonText:F("decommission-dialog-force-change"),onConfirm:async e=>{d(!0),await t(a,e)},onConfirmActionSuccess:async()=>{u(!1),await(0,S.uk)(5e3);try{await s()}finally{d(!1)}},onConfirmActionError:e=>{u((0,R.D)(e)),d(!1)},onClose:()=>{l(void 0)}})]})}function Q({popoverDisabled:e,...t}){return(0,X.jsx)(M.A,{content:F("decommission-change-not-allowed"),placement:"right",disabled:e,children:(0,X.jsxs)(_.$,{view:"normal",className:J("button"),...t,children:[(0,X.jsx)(o.I,{data:W}),F("decommission-button"),(0,X.jsx)(o.I,{data:z.A})]})})}var K=s(47665);function Z(e){return F("decommission-label",{decommission:e})}function ee({decommission:e}){return"DECOMMIT_IMMINENT"===e?(0,X.jsx)(K.J,{theme:"danger",size:"m",children:Z(F("decommission-imminent"))}):"DECOMMIT_PENDING"===e?(0,X.jsx)(K.J,{theme:"warning",size:"m",children:Z(F("decommission-pending"))}):"DECOMMIT_REJECTED"===e?(0,X.jsx)(K.J,{theme:"normal",size:"m",children:Z(F("decommission-rejected"))}):null}var te=s(88226),se=s(13096),ie=s(60073),ne=s(44294),oe=s(15132),ae=s(67808),le=s(46549),re=s(56839);const de=(0,C.cn)("ydb-pdisk-space-distribution"),ce=40;function ue({data:e}){const{SlotItems:t}=e,{PDiskId:s,NodeId:i}=e,n=ce*((null===t||void 0===t?void 0:t.length)||1);return null!==t&&void 0!==t&&t.length?(0,X.jsx)("div",{className:de(null),style:{height:n,minHeight:n},children:(0,X.jsx)(te.V,{className:de("pdisk-bar"),severity:e.Severity,diskAllocatedPercent:e.AllocatedPercent,content:null===t||void 0===t?void 0:t.map(((e,t)=>(0,X.jsx)(me,{item:e,pDiskId:s,nodeId:i},t))),faded:!0})}):F("no-slots-data")}function me({item:e,pDiskId:t,nodeId:s}){return(0,X.jsx)("div",{className:de("slot-wrapper"),style:{flexGrow:Number(e.Total)||1},children:(()=>{if("vDisk"===e.SlotType){var i;const n=(0,S.f8)(null===(i=e.SlotData)||void 0===i?void 0:i.VDiskSlotId)&&(0,S.f8)(t)&&(0,S.f8)(s)?(0,x.yX)(e.SlotData.VDiskSlotId,t,s):void 0;return(0,X.jsx)(se.P,{popupContent:(0,X.jsx)(ae.E,{data:e.SlotData,withTitle:!0}),contentClassName:de("vdisk-popup"),placement:["right","top"],children:(0,X.jsx)(ne.E,{to:n,children:(0,X.jsx)(te.V,{className:de("slot"),severity:e.Severity,diskAllocatedPercent:e.UsagePercent,content:(0,X.jsx)(pe,{id:e.Id,title:e.Title,used:e.Used,total:e.Total})})})})}return function(e){return"log"===e.SlotType}(e)?(0,X.jsx)(se.P,{popupContent:(0,X.jsx)(he,{data:e.SlotData}),contentClassName:de("vdisk-popup"),placement:["right","top"],children:(0,X.jsx)(te.V,{className:de("slot"),severity:e.Severity,diskAllocatedPercent:e.UsagePercent,content:(0,X.jsx)(pe,{title:F("log"),used:e.Used,total:e.Total})})}):function(e){return"empty"===e.SlotType}(e)?(0,X.jsx)(se.P,{popupContent:(0,X.jsx)(ve,{data:e.SlotData}),contentClassName:de("vdisk-popup"),placement:["right","top"],children:(0,X.jsx)(te.V,{className:de("slot"),severity:e.Severity,empty:!0,content:(0,X.jsx)(pe,{title:F("empty-slot"),used:e.Total})})}):null})()})}function pe({id:e,title:t,used:s,total:i}){return(0,X.jsxs)("div",{className:de("slot-content"),children:[(0,X.jsxs)("span",{children:[(0,S.f8)(e)?(0,X.jsx)("span",{className:de("slot-id"),children:e}):null,t]}),(0,X.jsx)("span",{className:de("slot-size"),children:(()=>{const[e,t]=(0,re.vX)(s,i);return i?`${e} / ${t}`:e})()})]})}function he({data:e}){const{LogTotalSize:t,LogUsedSize:s,SystemSize:i}=e,n=[{label:F("label.log-size"),value:(0,X.jsx)(oe.O,{value:s,capacity:t,formatValues:re.vX})}];return(0,S.f8)(i)&&n.push({label:F("label.system-size"),value:(0,le.z3)({value:i})}),(0,X.jsx)(ie.z_,{title:F("log"),info:n})}function ve({data:e}){const{Size:t}=e,s=[{label:F("label.slot-size"),value:(0,le.z3)({value:t})}];return(0,X.jsx)(ie.z_,{title:F("empty-slot"),info:s})}const ge=(0,C.cn)("ydb-pdisk-page"),fe={spaceDistribution:"spaceDistribution",storage:"storage"},xe=[{id:fe.spaceDistribution,get title(){return F("space-distribution")}},{id:fe.storage,get title(){return F("storage")}}],be=c.z.nativeEnum(fe).catch(fe.spaceDistribution);function ye(){const e=(0,E.YQ)(),t=(0,T.X)(),s=(0,y.c2)(),c=i.useRef(null),[{nodeId:N,pDiskId:w,activeTab:D}]=(0,d.useQueryParams)({activeTab:d.StringParam,nodeId:d.StringParam,pDiskId:d.StringParam}),C=(0,S.f8)(N)&&(0,S.f8)(w),z=be.parse(D);i.useEffect((()=>{e((0,j.g)("pDisk",{nodeId:N,pDiskId:w}))}),[e,N,w]);const[A]=(0,E.Nt)(),M=C?{nodeId:N,pDiskId:w}:l.hT,_=I.useGetPdiskInfoQuery(M,{pollingInterval:A}),O=_.isFetching&&void 0===_.currentData,R=_.currentData,{NodeHost:B,NodeId:L,NodeType:$,NodeDC:V,Severity:U,DecommitStatus:H}=R||{},G=async e=>{if(C){const t=await window.api.pdisk[s?"restartPDisk":"restartPDiskOld"]({nodeId:N,pDiskId:w,force:e});if(!1===(null===t||void 0===t?void 0:t.result)){throw{statusText:t.error,retryPossible:t.forceRetryPossible}}}},W=async(e,t)=>{if(C){const s=await window.api.pdisk.changePDiskStatus({nodeId:N,pDiskId:w,force:t,decommissionStatus:e});if(!1===(null===s||void 0===s?void 0:s.result)){throw{statusText:s.error,retryPossible:s.forceRetryPossible}}}},J=()=>{C&&e(b.F.util.invalidateTags([{type:"PDiskData",id:(0,k.r$)(N,w)}]),"StorageData")};return(0,X.jsxs)("div",{className:ge(null),ref:c,children:[(()=>{const e=w?`${F("pdisk")} ${w}`:F("pdisk"),t=B||F("node");return(0,X.jsx)(r.mg,{titleTemplate:`%s - ${e} \u2014 ${t} \u2014 YDB Monitoring`,defaultTitle:`${e} \u2014 ${t} \u2014 YDB Monitoring`})})(),(()=>{const e=B?`${F("fqdn")}: ${B}`:void 0,t=L?`${F("node")}: ${L}`:void 0;return(0,X.jsx)(f.B,{loading:O,items:[e,t,$,V],className:ge("meta")})})(),(0,X.jsxs)("div",{className:ge("title"),children:[(0,X.jsx)(m.$,{entityName:F("pdisk"),status:(0,k.XY)(U),id:(0,k.r$)(N,w)}),(0,X.jsx)(ee,{decommission:H})]}),(0,X.jsxs)("div",{className:ge("controls"),children:[(0,X.jsxs)(u.B,{onConfirmAction:G,onConfirmActionSuccess:J,buttonDisabled:!C||!t,buttonView:"normal",dialogHeader:F("restart-pdisk-dialog-header"),dialogText:F("restart-pdisk-dialog-text"),retryButtonText:F("force-restart-pdisk-button"),withPopover:!0,popoverContent:F("restart-pdisk-not-allowed"),popoverDisabled:t,children:[(0,X.jsx)(o.I,{data:n.A}),F("restart-pdisk-button")]}),s?(0,X.jsx)(Y,{decommission:H,onConfirmAction:W,onConfirmActionSuccess:J,buttonDisabled:!C||!t,popoverDisabled:t}):null]}),_.error?(0,X.jsx)(p.o,{error:_.error}):null,O?(0,X.jsx)(h.y,{className:ge("info"),rows:10}):(0,X.jsx)(g.Q,{pDisk:R,nodeId:N,className:ge("info")}),(0,X.jsx)("div",{className:ge("tabs"),children:(0,X.jsx)(a.t,{size:"l",items:xe,activeTab:z,wrapTo:({id:e},t)=>{const s=C?(0,x.Ck)(w,N,{activeTab:e}):void 0;return(0,X.jsx)(v.E,{to:s,children:t},e)}})}),(()=>{switch(z){case"spaceDistribution":return R?(0,X.jsx)("div",{className:ge("disk-distribution"),children:(0,X.jsx)(ue,{data:R})}):null;case"storage":return C?(0,X.jsx)(P.z,{nodeId:N,pDiskId:w,parentRef:c,viewContext:{nodeId:null===N||void 0===N?void 0:N.toString(),pDiskId:null===w||void 0===w?void 0:w.toString()}}):null;default:return null}})()]})}},70043:(e,t,s)=>{s.d(t,{E:()=>a});var i=s(89169),n=s(66781),o=s(60712);const a=({delay:e=600,className:t})=>{const[s]=(0,n.y)(e);return s?(0,o.jsx)(i.E,{className:t}):null}},74321:(e,t,s)=>{s.d(t,{S:()=>d});var i=s(59284),n=s(64222),o=s(46898);function a(e){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 17",width:"16",height:"16",fill:"currentColor"},e),i.createElement("path",{d:"M4 7h9v3H4z"}))}function l(e){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 10",width:"16",height:"16",fill:"currentColor"},e),i.createElement("path",{d:"M.49 5.385l1.644-1.644 4.385 4.385L4.874 9.77.49 5.385zm4.384 1.096L10.356 1 12 2.644 6.519 8.126 4.874 6.48v.001z"}))}const r=(0,s(69220).om)("checkbox"),d=i.forwardRef((function(e,t){const{size:s="m",indeterminate:d,disabled:c=!1,content:u,children:m,title:p,style:h,className:v,qa:g}=e,{checked:f,inputProps:x}=(0,n.v)(e),b=u||m,y=i.createElement("span",{className:r("indicator")},i.createElement("span",{className:r("icon"),"aria-hidden":!0},d?i.createElement(a,{className:r("icon-svg",{type:"dash"})}):i.createElement(l,{className:r("icon-svg",{type:"tick"})})),i.createElement("input",Object.assign({},x,{className:r("control")})),i.createElement("span",{className:r("outline")}));return i.createElement(o.m,{ref:t,title:p,style:h,size:s,disabled:c,className:r({size:s,disabled:c,indeterminate:d,checked:f},v),qa:g,control:y},b)}))},76938:(e,t,s)=>{s.d(t,{A:()=>n});var i=s(59284);const n=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 1.5a6.5 6.5 0 1 1-6.445 7.348.75.75 0 1 1 1.487-.194A5.001 5.001 0 1 0 4.43 4.5h1.32a.75.75 0 0 1 0 1.5h-3A.75.75 0 0 1 2 5.25v-3a.75.75 0 0 1 1.5 0v1.06A6.48 6.48 0 0 1 8 1.5",clipRule:"evenodd"}))},89954:(e,t,s)=>{s.d(t,{O:()=>D});var i=s(59284),n=s(45720),o=s(16929),a=s(71153),l=s(18677),r=s(84476),d=s(33705),c=s(67884),u=s(99991),m=s(77506),p=s(48372);const h=JSON.parse('{"default_collapse_label":"Show less","default_expand_label":"Show more","chars_count":[" ({{count}} symbol)"," ({{count}} symbols)"," ({{count}} symbols)"," ({{count}} symbols)"]}'),v=JSON.parse('{"default_collapse_label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043c\u0435\u043d\u044c\u0448\u0435","default_expand_label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0435\u0449\u0451","chars_count":[" ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u0430)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432)"]}'),g=(0,p.g4)("ydb-shorty-string",{ru:v,en:h});var f=s(60712);const x=(0,m.cn)("kv-shorty-string");function b({value:e="",limit:t=200,strict:s=!1,displayLength:n=!0,render:o=e=>e,onToggle:a,expandLabel:l=g("default_expand_label"),collapseLabel:r=g("default_collapse_label")}){const[d,u]=i.useState(!1),m=(d?r:l)+(n&&!d?g("chars_count",{count:e.length}):""),p=e.length>t+(s?0:m.length),h=d||!p?e:e.slice(0,t-4)+"\xa0...";return(0,f.jsxs)("div",{className:x(),children:[o(h),p?(0,f.jsx)(c.N,{className:x("toggle"),href:"#",onClick:e=>{e.stopPropagation(),e.preventDefault(),u((e=>!e)),null===a||void 0===a||a()},children:m}):null]})}var y=s(41650);const j=["S_FATAL","S_ERROR","S_WARNING","S_INFO"];function k(e){return function(e){return!!e&&void 0!==j[e]}(e)?j[e]:"S_INFO"}const N=(0,m.cn)("kv-result-issues"),S=(0,m.cn)("kv-issues"),w=(0,m.cn)("kv-issue");function D({data:e,hideSeverity:t}){const[s,n]=i.useState(!1),o="string"===typeof e||null===e||void 0===e?void 0:e.issues,a=Array.isArray(o)&&o.length>0;return(0,f.jsxs)("div",{className:N(),children:[(0,f.jsxs)("div",{className:N("error-message"),children:[(()=>{let s;if("string"===typeof e)s=e;else{var n,o;const a=k(null===e||void 0===e||null===(n=e.error)||void 0===n?void 0:n.severity);s=(0,f.jsxs)(i.Fragment,{children:[t?null:(0,f.jsxs)(i.Fragment,{children:[(0,f.jsx)(A,{severity:a})," "]}),(0,f.jsx)("span",{className:N("error-message-text"),children:null===e||void 0===e||null===(o=e.error)||void 0===o?void 0:o.message})]})}return s})(),a&&(0,f.jsx)(r.$,{view:"normal",onClick:()=>n(!s),children:s?"Hide details":"Show details"})]}),a&&s&&(0,f.jsx)(I,{hideSeverity:t,issues:o})]})}function I({issues:e,hideSeverity:t}){const s=null===e||void 0===e?void 0:e.reduce(((e,t)=>{var s;const i=null!==(s=t.severity)&&void 0!==s?s:10;return Math.min(e,i)}),10);return(0,f.jsx)("div",{className:S(null),children:null===e||void 0===e?void 0:e.map(((e,i)=>(0,f.jsx)(C,{hideSeverity:t,issue:e,expanded:e===s},i)))})}function C({issue:e,hideSeverity:t,level:s=0}){const[n,o]=i.useState(!0),a=k(e.severity),l=e.issues,c=Array.isArray(l)&&l.length>0,u=n?"bottom":"right";return(0,f.jsxs)("div",{className:w({leaf:!c,"has-issues":c}),children:[(0,f.jsxs)("div",{className:w("line"),children:[c&&(0,f.jsx)(r.$,{view:"flat-secondary",onClick:()=>o(!n),className:w("arrow-toggle"),children:(0,f.jsx)(d.I,{direction:u,size:16})}),t?null:(0,f.jsx)(A,{severity:a}),(0,f.jsx)(E,{issue:e}),e.issue_code?(0,f.jsxs)("span",{className:w("code"),children:["Code: ",e.issue_code]}):null]}),c&&n&&(0,f.jsx)("div",{className:w("issues"),children:(0,f.jsx)(T,{issues:l,level:s+1,expanded:n})})]})}function E({issue:e}){var t;const s=function(e){const{position:t}=e;if("object"!==typeof t||null===t||!(0,y.kf)(t.row))return"";const{row:s,column:i}=t;return(0,y.kf)(i)?`${s}:${i}`:`line ${s}`}(e),i=window.ydbEditor,n=()=>(0,f.jsxs)("span",{className:w("message"),children:[s&&(0,f.jsx)("span",{className:w("place-text"),title:"Position",children:s}),(0,f.jsx)("div",{className:w("message-text"),children:(0,f.jsx)(b,{value:e.message,expandLabel:"Show full message"})})]}),{row:o,column:a}=null!==(t=e.position)&&void 0!==t?t:{};if(!((0,y.kf)(o)&&i))return n();return(0,f.jsx)(c.N,{href:"#",extraProps:{draggable:!1},onClick:()=>{const e={lineNumber:o,column:null!==a&&void 0!==a?a:0};i.setPosition(e),i.revealPositionInCenterIfOutsideViewport(e),i.focus()},view:"primary",children:n()})}function T(e){const{issues:t,level:s,expanded:i}=e;return(0,f.jsx)("div",{className:w("list"),children:t.map(((e,t)=>(0,f.jsx)(C,{issue:e,level:s,expanded:i},t)))})}const P={S_INFO:n.A,S_WARNING:o.A,S_ERROR:a.A,S_FATAL:l.A},z=(0,m.cn)("yql-issue-severity");function A({severity:e}){const t=e.slice(2).toLowerCase();return(0,f.jsxs)("span",{className:z({severity:t}),children:[(0,f.jsx)(u.I,{className:z("icon"),data:P[e]}),(0,f.jsx)("span",{className:z("title"),children:t})]})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/7145.7676c06d.chunk.js b/ydb/core/viewer/monitoring/static/js/7145.7676c06d.chunk.js deleted file mode 100644 index a3c6d9f7d2..0000000000 --- a/ydb/core/viewer/monitoring/static/js/7145.7676c06d.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[7145],{56735:(e,t,s)=>{s.d(t,{Q:()=>b});var i=s(87184),o=s(92459),n=s(7435),a=s(46549),l=s(77506),d=s(56839),r=s(31684),c=s(12888),u=s(18863),m=s(25196),p=s(15132),g=s(33775),h=s(48372);const v=JSON.parse('{"type":"Type","path":"Path","guid":"GUID","serial-number":"Serial Number","shared-with-os":"SharedWithOs","drive-status":"Drive Status","state":"State","device":"Device","realtime":"Realtime","space":"Space","slots":"Slots","log-size":"Log Size","system-size":"System Size","links":"Links","developer-ui":"Developer UI","pdisk-page":"PDisk page","yes":"Yes"}'),k=(0,h.g4)("ydb-pDisk-info",{en:v});var D=s(60712);const f=(0,l.cn)("ydb-pdisk-info");function b({pDisk:e,nodeId:t,withPDiskPageLink:s,className:l}){const h=(0,c.X)(),[v,b,S,y]=function({pDisk:e,nodeId:t,withPDiskPageLink:s,isUserAllowedToMakeChanges:i}){const{PDiskId:l,Path:c,Guid:u,Category:h,Type:v,Device:b,Realtime:S,State:y,SerialNumber:x,TotalSize:I,AllocatedSize:N,StatusV2:w,NumActiveSlots:j,ExpectedSlotCount:T,LogUsedSize:E,LogTotalSize:P,SystemSize:C,SharedWithOs:z}=e||{},M=[];(0,n.f8)(h)&&M.push({label:k("type"),value:v}),(0,n.f8)(c)&&M.push({label:k("path"),value:c}),(0,n.f8)(u)&&M.push({label:k("guid"),value:u}),x&&M.push({label:k("serial-number"),value:x}),(0,n.f8)(z)&&M.push({label:k("shared-with-os"),value:k("yes")});const O=[];(0,n.f8)(w)&&O.push({label:k("drive-status"),value:w}),(0,n.f8)(y)&&O.push({label:k("state"),value:y}),(0,n.f8)(b)&&O.push({label:k("device"),value:(0,D.jsx)(g.k,{status:b})}),(0,n.f8)(S)&&O.push({label:k("realtime"),value:(0,D.jsx)(g.k,{status:S})});const A=[];A.push({label:k("space"),value:(0,D.jsx)(p.O,{value:N,capacity:I,formatValues:d.vX,colorizeProgress:!0})}),(0,n.f8)(j)&&(0,n.f8)(T)&&A.push({label:k("slots"),value:(0,D.jsx)(p.O,{value:j,capacity:T})}),(0,n.f8)(E)&&(0,n.f8)(P)&&A.push({label:k("log-size"),value:(0,D.jsx)(p.O,{value:E,capacity:P,formatValues:d.vX})}),(0,n.f8)(C)&&A.push({label:k("system-size"),value:(0,a.z3)({value:C})});const _=[];if((s||i)&&(0,n.f8)(l)&&(0,n.f8)(t)){const e=(0,o.Ck)(l,t),n=(0,r.ar)({nodeId:t,pDiskId:l});_.push({label:k("links"),value:(0,D.jsxs)("span",{className:f("links"),children:[s&&(0,D.jsx)(m.K,{title:k("pdisk-page"),url:e,external:!1}),i&&(0,D.jsx)(m.K,{title:k("developer-ui"),url:n})]})})}return[M,O,A,_]}({pDisk:e,nodeId:t,withPDiskPageLink:s,isUserAllowedToMakeChanges:h});return(0,D.jsxs)(i.s,{className:l,gap:2,direction:"row",wrap:!0,children:[(0,D.jsxs)(i.s,{direction:"column",gap:2,width:500,children:[(0,D.jsx)(u.z,{info:v,renderEmptyState:()=>null}),(0,D.jsx)(u.z,{info:S,renderEmptyState:()=>null})]}),(0,D.jsxs)(i.s,{direction:"column",gap:2,width:500,children:[(0,D.jsx)(u.z,{info:b,renderEmptyState:()=>null}),(0,D.jsx)(u.z,{info:y,renderEmptyState:()=>null})]})]})}},69134:(e,t,s)=>{s.r(t),s.d(t,{PDiskPage:()=>be});var i=s(59284),o=s(76938),n=s(99991),a=s(23871),l=s(44992),d=s(61750),r=s(67087),c=s(370),u=s(22983),m=s(3685),p=s(44508),g=s(42655),h=s(82015),v=s(56735),k=s(58389),D=s(92459),f=s(21334),b=s(67028),S=s(40174),y=s(7187),x=s(68712),I=s(7435),N=s(27295),w=s(78034);const j=f.F.injectEndpoints({endpoints:e=>({getPdiskInfo:e.query({queryFn:async({nodeId:e,pDiskId:t},{signal:s,getState:i,dispatch:o})=>{let n;n=await(0,x.FC)("/pdisk/info",void 0,{getState:i,dispatch:o})>0?window.api.pdisk.getPDiskInfo({nodeId:e,pDiskId:t},{signal:s}):window.api.viewer.getNodeWhiteboardPDiskInfo({nodeId:e,pDiskId:t},{signal:s}).then((e=>e.PDiskStateInfo?{Whiteboard:{PDisk:{...e.PDiskStateInfo[0],ExpectedSlotCount:void 0}}}:{}));try{const t=await Promise.all([n,window.api.viewer.getNodeInfo(e,{signal:s})]);return{data:function([e={},t]){var s,i,o;const n=null===(s=t.SystemStateInfo)||void 0===s?void 0:s[0],a=(0,w.q1)(n),{BSC:l={},Whiteboard:d={}}=e||{},{PDisk:r={},VDisks:c=[]}=d,{PDisk:u={}}=l,m=(0,N.or)({...u,...r}),p=null!==(i=m.NodeId)&&void 0!==i?i:a.NodeId,{LogUsedSize:g,LogTotalSize:h,TotalSize:v,SystemSize:k,ExpectedSlotCount:D,SlotSize:f}=m;let b;if((0,I.f8)(h)){const e=100*Number(g)/Number(h);b={SlotType:"log",Used:Number(g),Total:Number(h),UsagePercent:e,Severity:(0,y.SW)(e),SlotData:{LogUsedSize:g,LogTotalSize:h,SystemSize:k}}}const S=c.map((e=>(0,N.WT)({...e,NodeId:p})));S.sort(((e,t)=>Number(t.VDiskSlotId)-Number(e.VDiskSlotId)));const x=S.map((e=>{var t;const s=Math.max((0,y.SW)(e.AllocatedPercent),e.Severity||0);return{SlotType:"vDisk",Id:null===(t=e.VDiskId)||void 0===t?void 0:t.GroupID,Title:e.StoragePoolName,Severity:s,Used:Number(e.AllocatedSize),Total:Number(e.TotalSize),UsagePercent:e.AllocatedPercent,SlotData:e}}));let j=[];if(D&&D>x.length){const e=D-x.length;let t=Number(f);if(isNaN(t)){const s=x.reduce(((e,t)=>t.Total?e+t.Total:e),0);t=(Number(v)-s-Number(h))/e}j=(0,I._e)(e).map((()=>({SlotType:"empty",Total:t,Severity:1,SlotData:{Size:t}})))}const T=[...x,...j];return b&&T.length>0&&T.unshift(b),{...m,NodeId:p,NodeHost:a.Host,NodeType:null===(o=a.Roles)||void 0===o?void 0:o[0],NodeDC:a.DC,SlotItems:T}}(t)}}catch(a){return{error:a}}},providesTags:(e,t,s)=>["All",{type:"PDiskData",id:(0,y.r$)(s.nodeId,s.pDiskId)}]})}),overrideExisting:"throw"});var T=s(77506),E=s(90182),P=s(12888),C=s(99936),z=s(13066),M=s(40569),O=s(84375),A=s(84476),_=s(55974),L=s(42829),R=s(48372);const U=JSON.parse('{"fqdn":"FQDN","pdisk":"PDisk","node":"Node","storage":"Storage","space-distribution":"Space distribution","empty-slot":"Empty slot","log":"Log","label.log-size":"Log Size","label.system-size":"System Size","label.slot-size":"Slot Size","no-slots-data":"No slots data","restart-pdisk-button":"Restart PDisk","force-restart-pdisk-button":"Restart anyway","restart-pdisk-not-allowed":"You don\'t have enough rights to restart PDisk","restart-pdisk-dialog-header":"Restart PDisk","restart-pdisk-dialog-text":"PDisk will be restarted. Do you want to proceed?","decommission-none":"None","decommission-imminent":"Imminent","decommission-pending":"Pending","decommission-rejected":"Rejected","decommission-label":"{{decommission}} decommission","decommission-button":"Decommission","decommission-change-not-allowed":"You don\'t have enough rights to change PDisk decommission","decommission-dialog-title":"Change decommission status","decommission-dialog-force-change":"Change anyway","decommission-dialog-imminent-warning":"This will start imminent decommission. Existing slots will be moved from the disk","decommission-dialog-pending-warning":"This will start pending decommission. Decommission will be planned for this disk, but will not start immediatelly. Existing slots will not be moved from the disk, but no new slots will be allocated on it","decommission-dialog-rejected-warning":"This will start rejected decommission. No slots from other disks are placed on this disk in the process of decommission","decommission-dialog-none-warning":"This will reset decommission mode, allowing the disk to be used by the storage"}'),V=(0,R.g4)("ydb-pDisk-page",{en:U});var $,B,W,G;function H(){return H=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)({}).hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},H.apply(null,arguments)}const J=function(e){return i.createElement("svg",H({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 17",fill:"none"},e),$||($=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.378 7.771c.717 0 1.298.614 1.298 1.372v.914c0 .758-.581 1.372-1.298 1.372H3.46c-.716 0-1.297-.614-1.297-1.372v-.914c0-.758.58-1.372 1.297-1.372h6.92zm.77-1.248L9.935 3.958a1.292 1.292 0 00-1.16-.758H5.063c-.491 0-.94.294-1.16.758L2.69 6.523c.243-.08.501-.123.77-.123h6.918c.268 0 .527.043.77.123zm1.825 1.87V10.057c0 1.515-1.162 2.743-2.595 2.743H3.46c-1.433 0-2.594-1.228-2.594-2.743V8.393c0-.71.156-1.41.456-2.044l1.421-3.004c.44-.93 1.338-1.516 2.32-1.516h3.713c.982 0 1.88.587 2.32 1.516l1.421 3.004c.3.635.457 1.335.457 2.044zm-5.19.521c-.358 0-.648.307-.648.686 0 .379.29.686.649.686h2.162c.358 0 .649-.307.649-.686 0-.379-.29-.686-.65-.686H7.785z",fill:"currentColor",fillOpacity:.85})),B||(B=i.createElement("path",{d:"M15.25 11.428c0 2.15-1.639 3.822-3.574 3.822-1.935 0-3.574-1.671-3.574-3.822 0-2.15 1.639-3.821 3.574-3.821 1.935 0 3.574 1.671 3.574 3.821z",fill:"var(--g-color-base-background)",stroke:"currentColor",strokeWidth:1.5})),W||(W=i.createElement("path",{d:"M11.676 16.5c2.69 0 4.824-2.297 4.824-5.072 0-2.774-2.134-5.071-4.824-5.071s-4.824 2.297-4.824 5.071c0 2.775 2.134 5.072 4.824 5.072z",stroke:"var(--g-color-base-background)"})),G||(G=i.createElement("path",{d:"M12.973 10.057L10.378 12.8m0-2.743l2.595 2.743",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})))};var X=s(60712);const F=(0,T.cn)("ydb-pdisk-decommission-button");function Y(e){return"DECOMMIT_IMMINENT"===e?V("decommission-dialog-imminent-warning"):"DECOMMIT_PENDING"===e?V("decommission-dialog-pending-warning"):"DECOMMIT_REJECTED"===e?V("decommission-dialog-rejected-warning"):"DECOMMIT_NONE"===e?V("decommission-dialog-none-warning"):void 0}function Q({decommission:e,onConfirmAction:t,onConfirmActionSuccess:s,buttonDisabled:o,popoverDisabled:n}){const[a,l]=i.useState(),[d,r]=i.useState(!1),[c,u]=i.useState(!1),m=function(e,t){return[{text:V("decommission-none"),action:()=>t("DECOMMIT_NONE"),hidden:!e||"DECOMMIT_NONE"===e||"DECOMMIT_UNSET"===e},{text:V("decommission-pending"),action:()=>t("DECOMMIT_PENDING"),hidden:"DECOMMIT_PENDING"===e},{text:V("decommission-rejected"),action:()=>t("DECOMMIT_REJECTED"),hidden:"DECOMMIT_REJECTED"===e},{text:V("decommission-imminent"),theme:"danger",action:()=>t("DECOMMIT_IMMINENT"),hidden:"DECOMMIT_IMMINENT"===e}]}(e,l);return(0,X.jsxs)(i.Fragment,{children:[(0,X.jsx)(M.r,{renderSwitcher:e=>(0,X.jsx)(q,{popoverDisabled:n,loading:d,disabled:o,...e}),items:m,popupProps:{className:F("popup")}}),(0,X.jsx)(_.g,{visible:Boolean(a),header:V("decommission-dialog-title"),text:Y(a),withRetry:c,withCheckBox:!0,retryButtonText:V("decommission-dialog-force-change"),onConfirm:async e=>{r(!0),await t(a,e)},onConfirmActionSuccess:async()=>{u(!1),await(0,I.uk)(5e3);try{await s()}finally{r(!1)}},onConfirmActionError:e=>{u((0,L.D)(e)),r(!1)},onClose:()=>{l(void 0)}})]})}function q({popoverDisabled:e,...t}){return(0,X.jsx)(O.A,{content:V("decommission-change-not-allowed"),placement:"right",disabled:e,children:(0,X.jsxs)(A.$,{view:"normal",className:F("button"),...t,children:[(0,X.jsx)(n.I,{data:J}),V("decommission-button"),(0,X.jsx)(n.I,{data:z.A})]})})}var K=s(47665);function Z(e){return V("decommission-label",{decommission:e})}function ee({decommission:e}){return"DECOMMIT_IMMINENT"===e?(0,X.jsx)(K.J,{theme:"danger",size:"m",children:Z(V("decommission-imminent"))}):"DECOMMIT_PENDING"===e?(0,X.jsx)(K.J,{theme:"warning",size:"m",children:Z(V("decommission-pending"))}):"DECOMMIT_REJECTED"===e?(0,X.jsx)(K.J,{theme:"normal",size:"m",children:Z(V("decommission-rejected"))}):null}var te=s(88226),se=s(13096),ie=s(60073),oe=s(44294),ne=s(15132),ae=s(67440),le=s(46549),de=s(56839);const re=(0,T.cn)("ydb-pdisk-space-distribution"),ce=40;function ue({data:e}){const{SlotItems:t}=e,{PDiskId:s,NodeId:i}=e,o=ce*((null===t||void 0===t?void 0:t.length)||1);return null!==t&&void 0!==t&&t.length?(0,X.jsx)("div",{className:re(null),style:{height:o,minHeight:o},children:(0,X.jsx)(te.V,{className:re("pdisk-bar"),severity:e.Severity,diskAllocatedPercent:e.AllocatedPercent,content:null===t||void 0===t?void 0:t.map(((e,t)=>(0,X.jsx)(me,{item:e,pDiskId:s,nodeId:i},t))),faded:!0})}):V("no-slots-data")}function me({item:e,pDiskId:t,nodeId:s}){return(0,X.jsx)("div",{className:re("slot-wrapper"),style:{flexGrow:Number(e.Total)||1},children:(()=>{if("vDisk"===e.SlotType){var i;const o=(0,I.f8)(null===(i=e.SlotData)||void 0===i?void 0:i.VDiskSlotId)&&(0,I.f8)(t)&&(0,I.f8)(s)?(0,D.yX)(e.SlotData.VDiskSlotId,t,s):void 0;return(0,X.jsx)(se.P,{popupContent:(0,X.jsx)(ae.E,{data:e.SlotData,withTitle:!0}),contentClassName:re("vdisk-popup"),placement:["right","top"],children:(0,X.jsx)(oe.E,{to:o,children:(0,X.jsx)(te.V,{className:re("slot"),severity:e.Severity,diskAllocatedPercent:e.UsagePercent,content:(0,X.jsx)(pe,{id:e.Id,title:e.Title,used:e.Used,total:e.Total})})})})}return function(e){return"log"===e.SlotType}(e)?(0,X.jsx)(se.P,{popupContent:(0,X.jsx)(ge,{data:e.SlotData}),contentClassName:re("vdisk-popup"),placement:["right","top"],children:(0,X.jsx)(te.V,{className:re("slot"),severity:e.Severity,diskAllocatedPercent:e.UsagePercent,content:(0,X.jsx)(pe,{title:V("log"),used:e.Used,total:e.Total})})}):function(e){return"empty"===e.SlotType}(e)?(0,X.jsx)(se.P,{popupContent:(0,X.jsx)(he,{data:e.SlotData}),contentClassName:re("vdisk-popup"),placement:["right","top"],children:(0,X.jsx)(te.V,{className:re("slot"),severity:e.Severity,empty:!0,content:(0,X.jsx)(pe,{title:V("empty-slot"),used:e.Total})})}):null})()})}function pe({id:e,title:t,used:s,total:i}){return(0,X.jsxs)("div",{className:re("slot-content"),children:[(0,X.jsxs)("span",{children:[(0,I.f8)(e)?(0,X.jsx)("span",{className:re("slot-id"),children:e}):null,t]}),(0,X.jsx)("span",{className:re("slot-size"),children:(()=>{const[e,t]=(0,de.vX)(s,i);return i?`${e} / ${t}`:e})()})]})}function ge({data:e}){const{LogTotalSize:t,LogUsedSize:s,SystemSize:i}=e,o=[{label:V("label.log-size"),value:(0,X.jsx)(ne.O,{value:s,capacity:t,formatValues:de.vX})}];return(0,I.f8)(i)&&o.push({label:V("label.system-size"),value:(0,le.z3)({value:i})}),(0,X.jsx)(ie.z_,{title:V("log"),info:o})}function he({data:e}){const{Size:t}=e,s=[{label:V("label.slot-size"),value:(0,le.z3)({value:t})}];return(0,X.jsx)(ie.z_,{title:V("empty-slot"),info:s})}const ve=(0,T.cn)("ydb-pdisk-page"),ke={spaceDistribution:"spaceDistribution",storage:"storage"},De=[{id:ke.spaceDistribution,get title(){return V("space-distribution")}},{id:ke.storage,get title(){return V("storage")}}],fe=c.z.nativeEnum(ke).catch(ke.spaceDistribution);function be(){const e=(0,E.YQ)(),t=(0,P.X)(),s=(0,b.c2)(),c=i.useRef(null),[{nodeId:x,pDiskId:N,activeTab:w}]=(0,r.useQueryParams)({activeTab:r.StringParam,nodeId:r.StringParam,pDiskId:r.StringParam}),T=(0,I.f8)(x)&&(0,I.f8)(N),z=fe.parse(w);i.useEffect((()=>{e((0,S.g)("pDisk",{nodeId:x,pDiskId:N}))}),[e,x,N]);const[M]=(0,E.Nt)(),O=T?{nodeId:x,pDiskId:N}:l.hT,A=j.useGetPdiskInfoQuery(O,{pollingInterval:M}),_=A.isFetching&&void 0===A.currentData,L=A.currentData,{NodeHost:R,NodeId:U,NodeType:$,NodeDC:B,Severity:W,DecommitStatus:G}=L||{},H=async e=>{if(T){const t=await window.api.pdisk[s?"restartPDisk":"restartPDiskOld"]({nodeId:x,pDiskId:N,force:e});if(!1===(null===t||void 0===t?void 0:t.result)){throw{statusText:t.error,retryPossible:t.forceRetryPossible}}}},J=async(e,t)=>{if(T){const s=await window.api.pdisk.changePDiskStatus({nodeId:x,pDiskId:N,force:t,decommissionStatus:e});if(!1===(null===s||void 0===s?void 0:s.result)){throw{statusText:s.error,retryPossible:s.forceRetryPossible}}}},F=()=>{T&&e(f.F.util.invalidateTags([{type:"PDiskData",id:(0,y.r$)(x,N)}]),"StorageData")};return(0,X.jsxs)("div",{className:ve(null),ref:c,children:[(()=>{const e=N?`${V("pdisk")} ${N}`:V("pdisk"),t=R||V("node");return(0,X.jsx)(d.mg,{titleTemplate:`%s - ${e} \u2014 ${t} \u2014 YDB Monitoring`,defaultTitle:`${e} \u2014 ${t} \u2014 YDB Monitoring`})})(),(()=>{const e=R?`${V("fqdn")}: ${R}`:void 0,t=U?`${V("node")}: ${U}`:void 0;return(0,X.jsx)(k.B,{loading:_,items:[e,t,$,B],className:ve("meta")})})(),(0,X.jsxs)("div",{className:ve("title"),children:[(0,X.jsx)(m.$,{entityName:V("pdisk"),status:(0,y.XY)(W),id:(0,y.r$)(x,N)}),(0,X.jsx)(ee,{decommission:G})]}),(0,X.jsxs)("div",{className:ve("controls"),children:[(0,X.jsxs)(u.B,{onConfirmAction:H,onConfirmActionSuccess:F,buttonDisabled:!T||!t,buttonView:"normal",dialogHeader:V("restart-pdisk-dialog-header"),dialogText:V("restart-pdisk-dialog-text"),retryButtonText:V("force-restart-pdisk-button"),withPopover:!0,popoverContent:V("restart-pdisk-not-allowed"),popoverDisabled:t,children:[(0,X.jsx)(n.I,{data:o.A}),V("restart-pdisk-button")]}),s?(0,X.jsx)(Q,{decommission:G,onConfirmAction:J,onConfirmActionSuccess:F,buttonDisabled:!T||!t,popoverDisabled:t}):null]}),A.error?(0,X.jsx)(p.o,{error:A.error}):null,_?(0,X.jsx)(g.y,{className:ve("info"),rows:10}):(0,X.jsx)(v.Q,{pDisk:L,nodeId:x,className:ve("info")}),(0,X.jsx)("div",{className:ve("tabs"),children:(0,X.jsx)(a.t,{size:"l",items:De,activeTab:z,wrapTo:({id:e},t)=>{const s=T?(0,D.Ck)(N,x,{activeTab:e}):void 0;return(0,X.jsx)(h.E,{to:s,children:t},e)}})}),(()=>{switch(z){case"spaceDistribution":return L?(0,X.jsx)("div",{className:ve("disk-distribution"),children:(0,X.jsx)(ue,{data:L})}):null;case"storage":return T?(0,X.jsx)(C.z,{nodeId:x,pDiskId:N,parentRef:c,viewContext:{nodeId:null===x||void 0===x?void 0:x.toString(),pDiskId:null===N||void 0===N?void 0:N.toString()}}):null;default:return null}})()]})}},76938:(e,t,s)=>{s.d(t,{A:()=>o});var i=s(59284);const o=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 1.5a6.5 6.5 0 1 1-6.445 7.348.75.75 0 1 1 1.487-.194A5.001 5.001 0 1 0 4.43 4.5h1.32a.75.75 0 0 1 0 1.5h-3A.75.75 0 0 1 2 5.25v-3a.75.75 0 0 1 1.5 0v1.06A6.48 6.48 0 0 1 8 1.5",clipRule:"evenodd"}))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/7341.6e678529.chunk.js b/ydb/core/viewer/monitoring/static/js/7341.6e678529.chunk.js deleted file mode 100644 index ed763de282..0000000000 --- a/ydb/core/viewer/monitoring/static/js/7341.6e678529.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 7341.6e678529.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[7341],{76938:(e,t,n)=>{n.d(t,{A:()=>o});var l=n(59284);const o=e=>l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),l.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 1.5a6.5 6.5 0 1 1-6.445 7.348.75.75 0 1 1 1.487-.194A5.001 5.001 0 1 0 4.43 4.5h1.32a.75.75 0 0 1 0 1.5h-3A.75.75 0 0 1 2 5.25v-3a.75.75 0 0 1 1.5 0v1.06A6.48 6.48 0 0 1 8 1.5",clipRule:"evenodd"}))},18677:(e,t,n)=>{n.d(t,{A:()=>o});var l=n(59284);const o=e=>l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),l.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14M6.53 5.47a.75.75 0 0 0-1.06 1.06L6.94 8 5.47 9.47a.75.75 0 1 0 1.06 1.06L8 9.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L9.06 8l1.47-1.47a.75.75 0 1 0-1.06-1.06L8 6.94z",clipRule:"evenodd"}))},66528:(e,t,n)=>{n.d(t,{A:()=>o});var l=n(59284);const o=e=>l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),l.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.5 1.5a3 3 0 0 0-3 3v7a3 3 0 0 0 3 3h7a3 3 0 0 0 3-3v-7a3 3 0 0 0-3-3z",clipRule:"evenodd"}))},5874:(e,t,n)=>{n.d(t,{W:()=>L});var l=n(59284);const o=e=>{if(e.options.enableRowSelection)return Boolean(e.options.enableMultiRowSelection)};var r=n(32084);const i=l.createContext(void 0),a={};var s=n(85720);const u=e=>{const t=e.column.getIsPinned(),n="left"===t,l="right"===t,o=n&&e.column.getIsLastColumn("left"),r=l&&e.column.getIsFirstColumn("right");return{pinned:Boolean(t),"pinned-left":n,"pinned-right":l,"last-pinned-left":o,"first-pinned-right":r}},d=e=>e?Object.assign({id:e.column.id},u(e)):null,g=(e,t)=>{if(!e)return t;const n=e.column.getIsPinned();return Object.assign({width:e.column.getSize(),minWidth:e.column.columnDef.minSize,maxWidth:e.column.columnDef.maxSize,left:"left"===n?`${e.column.getStart("left")}px`:void 0,right:"right"===n?`${e.column.getAfter("right")}px`:void 0},t)};var c=n(82435);(0,c.withNaming)({e:"__",m:"_"});const p=(0,c.withNaming)({n:"gt-",e:"__",m:"_"}),m=p("table");var f=function(e,t){var n={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(l=Object.getOwnPropertySymbols(e);o<l.length;o++)t.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(e,l[o])&&(n[l[o]]=e[l[o]])}return n};const v=e=>{var{cell:t,children:n,className:o,style:r,attributes:i}=e,a=f(e,["cell","children","className","style","attributes"]);const u="function"===typeof i?i(t):i,c="function"===typeof o?o(t):o;return l.createElement("td",Object.assign({className:m("cell",d(t),c)},a,u,{style:g(t,Object.assign(Object.assign({},r),null===u||void 0===u?void 0:u.style))}),t?(0,s.Kv)(t.column.columnDef.cell,t.getContext()):n)},w=p("group-header"),h=({row:e,className:t,getGroupTitle:n})=>{var o;return l.createElement("h2",{className:w(null,t)},l.createElement("button",{className:w("button"),onClick:e.getToggleExpandedHandler()},l.createElement("svg",{className:w("icon",{expanded:e.getIsExpanded()}),viewBox:"0 0 16 16",width:"16",height:"16"},l.createElement("path",{d:"M2.97 5.47a.75.75 0 0 1 1.06 0L8 9.44l3.97-3.97a.75.75 0 1 1 1.06 1.06l-4.5 4.5a.75.75 0 0 1-1.06 0l-4.5-4.5a.75.75 0 0 1 0-1.06Z",fill:"currentColor"})),l.createElement("span",{className:w("content")},l.createElement("span",{className:w("title")},null!==(o=null===n||void 0===n?void 0:n(e))&&void 0!==o?o:e.id),l.createElement("span",{className:w("total")},e.subRows.length))))};var b=function(e,t){var n={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(l=Object.getOwnPropertySymbols(e);o<l.length;o++)t.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(e,l[o])&&(n[l[o]]=e[l[o]])}return n};const C=l.forwardRef(((e,t)=>{var{cellClassName:n,className:o,getGroupTitle:i,getIsCustomRow:a,getIsGroupHeaderRow:s,groupHeaderClassName:u,onClick:d,renderCustomRowContent:g,renderGroupHeader:c,renderGroupHeaderRowContent:p,row:f,rowVirtualizer:w,style:C,virtualItem:S,attributes:R,cellAttributes:y,table:I}=e,x=b(e,["cellClassName","className","getGroupTitle","getIsCustomRow","getIsGroupHeaderRow","groupHeaderClassName","onClick","renderCustomRowContent","renderGroupHeader","renderGroupHeaderRowContent","row","rowVirtualizer","style","virtualItem","attributes","cellAttributes","table"]);const M=(0,r.N)(null===w||void 0===w?void 0:w.measureElement,t),F="function"===typeof R?R(f):R,P="function"===typeof o?o(f):o,E=l.useCallback((e=>{null===d||void 0===d||d(f,e)}),[d,f]);return l.createElement("tr",Object.assign({ref:M,className:m("row",{selected:f.getIsSelected(),interactive:Boolean(d)},P),onClick:E,"data-index":null===S||void 0===S?void 0:S.index},x,F,{style:Object.assign(Object.assign({top:w&&S?S.start-w.options.scrollMargin:void 0},C),null===F||void 0===F?void 0:F.style)}),(null===s||void 0===s?void 0:s(f))?p?p({row:f,Cell:v,cellClassName:n,getGroupTitle:i}):l.createElement(v,{className:n,colSpan:f.getVisibleCells().length,attributes:y,"aria-colindex":1},c?c({row:f,className:m("group-header",u),getGroupTitle:i}):l.createElement(h,{row:f,className:m("group-header",u),getGroupTitle:i})):(null===a||void 0===a?void 0:a(f))&&g?g({row:f,Cell:v,cellClassName:n}):f.getVisibleCells().map((e=>l.createElement(v,{key:e.id,cell:e,className:n,attributes:y,"aria-colindex":e.column.getIndex()+1}))))}));C.displayName="BaseRow";var S=function(e,t){var n={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(l=Object.getOwnPropertySymbols(e);o<l.length;o++)t.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(e,l[o])&&(n[l[o]]=e[l[o]])}return n};const R=l.forwardRef(((e,t)=>{var n,{attributes:o,row:s,style:u,table:d}=e,g=S(e,["attributes","row","style","table"]);const{isChildMode:c,activeItemKey:p,targetItemIndex:m=-1,enableNesting:f,useSortable:v}=null!==(n=l.useContext(i))&&void 0!==n?n:{},{setNodeRef:w,transform:h=null,transition:b,isDragging:R=!1}=(null===v||void 0===v?void 0:v({id:s.id}))||{},y=Boolean(p),I=c&&m===s.index,x=(0,r.N)(w,t),{isFirstChild:M,depth:F}=(({row:e,table:t,isDragging:n})=>{var o,r,a,s,u;const{isChildMode:d,isParentMode:g,isNextChildMode:c,targetItemIndex:p=-1,enableNesting:m}=null!==(o=l.useContext(i))&&void 0!==o?o:{};let f=n&&-1===p,v=0;if(m)if(n&&-1!==p){const e=t.getRowModel().rows,n=null!==(a=null===(r=e[p])||void 0===r?void 0:r.depth)&&void 0!==a?a:0,l=null!==(u=null===(s=e[p+1])||void 0===s?void 0:s.depth)&&void 0!==u?u:0;if(f=l>n,f)v=l,g&&v--;else{let e=0;g?e=-1:d&&(e=1),v=(c?n:Math.min(n,l))+e}v=Math.max(0,v)}else v=f?0:e.depth;return{depth:v,isFirstChild:f}})({row:s,table:d,isDragging:R}),P=(({style:e=a,transform:t,transition:n,isDragging:o,isDragActive:r,isFirstChild:s,draggableChildRowOffset:u=32,enableNesting:d})=>{var g;const{isChildMode:c,isParentMode:p}=null!==(g=l.useContext(i))&&void 0!==g?g:{};return l.useMemo((()=>{if(!r||!t)return e;let l=0;return d&&o&&(p?l=-u:c&&!s&&(l=u)),Object.assign(Object.assign({},e),{transition:n,transform:`translate3d(${Math.max(l,0)}px, ${t.y}px, 0)`})}),[u,c,r,o,s,p,e,t,n,d])})({style:u,transform:h,transition:b,isDragging:R,isDragActive:y,isFirstChild:M,enableNesting:f}),E=l.useCallback((e=>{const t="function"===typeof o?o(e):o;return Object.assign(Object.assign({},t),{"data-key":e.id,"data-depth":F,"data-draggable":!0,"data-dragging":R,"data-drag-active":y,"data-expanded":y&&I})}),[o,F,R,y,I]);return l.createElement(C,Object.assign({ref:x,attributes:E,row:s,style:P,table:d},g))}));R.displayName="BaseDraggableRow";const y=e=>Object.assign({id:e.column.id,placeholder:e.isPlaceholder,sortable:e.column.getCanSort(),wide:e.colSpan>1},u(e)),I=({header:e,attributes:t,className:n})=>{const o="function"===typeof t?t(e):t,r="function"===typeof n?n(e):n,i=e.depth-e.column.depth;return l.createElement("th",Object.assign({className:m("footer-cell",y(e),r),colSpan:e.colSpan>1?e.colSpan:void 0,rowSpan:i>1?i:void 0},o,{style:g(e,null===o||void 0===o?void 0:o.style)}),(0,s.Kv)(e.column.columnDef.footer,e.getContext()))};var x=function(e,t){var n={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(l=Object.getOwnPropertySymbols(e);o<l.length;o++)t.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(e,l[o])&&(n[l[o]]=e[l[o]])}return n};const M=e=>{var{footerGroup:t,attributes:n,cellAttributes:o,cellClassName:r,className:i}=e,a=x(e,["footerGroup","attributes","cellAttributes","cellClassName","className"]);const s="function"===typeof n?n(t):n,u="function"===typeof i?i(t):i;return l.createElement("tr",Object.assign({className:m("footer-row",u)},a,s),t.headers.map((e=>(e=>!e.isPlaceholder)(e)?l.createElement(I,{key:e.column.id,header:e,attributes:o,className:r}):null)))},F=e=>{if(e)return"asc"===e?"ascending":"descending"},P=e=>e.headerGroup.headers.slice(0,e.index).reduce(((e,t)=>e+t.colSpan),1),E=p("resize-handle"),V=({className:e,header:t})=>{var n;const{table:o}=t.getContext(),{columnResizeDirection:r,columnResizeMode:i}=o.options,{columnSizingInfo:a}=o.getState(),s=("rtl"===r?-1:1)*(null!==(n=a.deltaOffset)&&void 0!==n?n:0);return l.createElement("div",{className:E({direction:r,resizing:t.column.getIsResizing()},e),onDoubleClick:()=>t.column.resetSize(),onMouseDown:t.getResizeHandler(),onTouchStart:t.getResizeHandler(),style:{transform:"onEnd"===i&&t.column.getIsResizing()?`translateX(${s}px)`:void 0}})};var O=n(46734),_=function(e,t){var n={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(l=Object.getOwnPropertySymbols(e);o<l.length;o++)t.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(e,l[o])&&(n[l[o]]=e[l[o]])}return n};const z=e=>{var{header:t,className:n,children:o}=e,r=_(e,["header","className","children"]);const i=t.column.getToggleSortingHandler(),{onKeyDown:a}=(0,O.N)(i);return l.createElement("span",Object.assign({className:m("sort",n),role:"button",tabIndex:0,onClick:i,onKeyDown:a},r),o)},G=p("sort-indicator"),N=({className:e,header:t})=>{const n=t.column.getIsSorted();return l.createElement("span",{className:G({order:n,invisible:!n},e)},l.createElement("svg",{width:"6",height:"3",viewBox:"0 0 6 3",fill:"currentColor"},l.createElement("path",{d:"M0.404698 0C0.223319 0 0.102399 0.0887574 0.0419396 0.230769C-0.0386733 0.372781 0.00163315 0.497041 0.122552 0.60355L2.72232 2.89349C2.80293 2.9645 2.88354 3 3.00446 3C3.10523 3 3.20599 2.9645 3.28661 2.89349L5.88637 0.60355C6.00729 0.497041 6.02745 0.372781 5.96699 0.230769C5.88637 0.0887574 5.76545 0 5.60423 0H0.404698Z"})))},H=({className:e,header:t,parentHeader:n,renderHeaderCellContent:o,renderResizeHandle:r,renderSortIndicator:i,resizeHandleClassName:a,sortIndicatorClassName:u,attributes:d})=>{const c="function"===typeof d?d(t,n):d,p="function"===typeof e?e(t,n):e,f=t.isPlaceholder?t.getLeafHeaders().length:1;return l.createElement("th",Object.assign({className:m("header-cell",y(t),p),colSpan:t.colSpan>1?t.colSpan:void 0,rowSpan:f>1?f:void 0,"aria-sort":F(t.column.getIsSorted()),"aria-colindex":P(t)},c,{style:g(t,null===c||void 0===c?void 0:c.style)}),o?o({header:t}):l.createElement(l.Fragment,null,t.column.getCanSort()?l.createElement(z,{header:t},(0,s.Kv)(t.column.columnDef.header,t.getContext())," ",i?i({className:m("sort-indicator",u),header:t}):l.createElement(N,{className:m("sort-indicator",u),header:t})):(0,s.Kv)(t.column.columnDef.header,t.getContext()),t.column.getCanResize()&&(r?r({className:m("resize-handle",a),header:t}):l.createElement(V,{className:m("resize-handle",a),header:t}))))};var A=function(e,t){var n={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(l=Object.getOwnPropertySymbols(e);o<l.length;o++)t.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(e,l[o])&&(n[l[o]]=e[l[o]])}return n};const D=e=>{var{cellClassName:t,className:n,headerGroup:o,parentHeaderGroup:r,renderHeaderCellContent:i,renderResizeHandle:a,renderSortIndicator:s,resizeHandleClassName:u,sortIndicatorClassName:d,attributes:g,cellAttributes:c}=e,p=A(e,["cellClassName","className","headerGroup","parentHeaderGroup","renderHeaderCellContent","renderResizeHandle","renderSortIndicator","resizeHandleClassName","sortIndicatorClassName","attributes","cellAttributes"]);const f="function"===typeof g?g(o,r):g,v="function"===typeof n?n(o,r):n;return l.createElement("tr",Object.assign({className:m("header-row",v)},p,f),o.headers.map((e=>{const n=null===r||void 0===r?void 0:r.headers.find((t=>e.column.id===t.column.id));return((e,t)=>{const n=e.isPlaceholder&&(null===t||void 0===t?void 0:t.isPlaceholder)&&t.placeholderId===e.placeholderId,l=!e.isPlaceholder&&e.id===e.column.id&&e.depth-e.column.depth>1;return!(n||l)})(e,n)?l.createElement(H,{key:e.column.id,className:t,header:e,parentHeader:n,renderHeaderCellContent:i,renderResizeHandle:a,renderSortIndicator:s,resizeHandleClassName:u,sortIndicatorClassName:d,attributes:c}):null})))},L=l.forwardRef((({table:e,attributes:t,bodyAttributes:n,bodyClassName:r,bodyRef:a,cellAttributes:s,cellClassName:u,className:d,customFooterRowCount:g,emptyContent:c,footerAttributes:p,footerCellAttributes:f,footerCellClassName:v,footerClassName:w,footerRowAttributes:h,footerRowClassName:b,getGroupTitle:S,getIsCustomRow:y,getIsGroupHeaderRow:I,groupHeaderClassName:x,headerAttributes:F,headerCellAttributes:P,headerCellClassName:E,headerClassName:V,headerRowAttributes:O,headerRowClassName:_,onRowClick:z,renderCustomFooterContent:G,renderCustomRowContent:N,renderGroupHeader:H,renderGroupHeaderRowContent:A,renderHeaderCellContent:L,renderResizeHandle:j,renderSortIndicator:T,resizeHandleClassName:B,rowAttributes:k,rowClassName:q,rowVirtualizer:$,sortIndicatorClassName:U,stickyFooter:K=!1,stickyHeader:X=!1,withFooter:Z=!1,withHeader:W=!0},J)=>{var Q;const Y=l.useContext(i),ee=null!==(Q=null===Y||void 0===Y?void 0:Y.activeItemIndex)&&void 0!==Q?Q:-1,{rows:te,rowsById:ne}=e.getRowModel(),le=l.useMemo((()=>(e=>{let t=1;return e.reduce(((e,n,l,o)=>{const r=Object.assign(Object.assign({},e),{[n.id]:t}),i=o[l+1];return(null===i||void 0===i?void 0:i.parentId)!==n.id&&(t+=n.getLeafRows().length),t++,r}),{})})(te)),[te]),oe=W?e.getHeaderGroups():[],re=Z?e.getFooterGroups():[],ie=e.getVisibleLeafColumns().length,ae=oe.length,se=Object.keys(ne).length,ue=Z&&(G&&g||re.length)||0,de=se+ae+ue,ge=(null===$||void 0===$?void 0:$.getVirtualItems())||te;return l.createElement("table",Object.assign({ref:J,className:m({"with-row-virtualization":Boolean($)},d),"data-dragging-row-index":ee>-1?ee:void 0,"aria-colcount":ie>0?ie:void 0,"aria-rowcount":de>0?de:void 0,"aria-multiselectable":o(e)},t),W&&l.createElement("thead",Object.assign({className:m("header",{sticky:X},V)},F),oe.map(((e,t)=>l.createElement(D,{key:e.id,cellClassName:E,className:_,headerGroup:e,parentHeaderGroup:oe[t-1],renderHeaderCellContent:L,renderResizeHandle:j,renderSortIndicator:T,resizeHandleClassName:B,sortIndicatorClassName:U,attributes:O,cellAttributes:P,"aria-rowindex":t+1})))),l.createElement("tbody",Object.assign({ref:a,className:m("body",r)},n,{style:Object.assign({height:ge.length?null===$||void 0===$?void 0:$.getTotalSize():void 0},null===n||void 0===n?void 0:n.style)}),ge.length?ge.map((t=>{var n;const o=$?te[t.index]:t,r=$?t:void 0,i=null!==(n=null===r||void 0===r?void 0:r.key)&&void 0!==n?n:o.id,a={cellClassName:u,className:q,getGroupTitle:S,getIsCustomRow:y,getIsGroupHeaderRow:I,groupHeaderClassName:x,attributes:k,cellAttributes:s,onClick:z,renderCustomRowContent:N,renderGroupHeader:H,renderGroupHeaderRowContent:A,row:o,rowVirtualizer:$,table:e,virtualItem:r,"aria-rowindex":ae+le[o.id],"aria-selected":e.options.enableRowSelection?o.getIsSelected():void 0};return Y?l.createElement(R,Object.assign({key:i},a)):l.createElement(C,Object.assign({key:i},a))})):(()=>{if(!c)return null;const t="function"===typeof q?q():q,n="function"===typeof u?u():u;return l.createElement("tr",{className:m("row",{empty:!0},t)},l.createElement("td",{className:m("cell",{},n),colSpan:ie,style:{width:$?e.getTotalSize():void 0}},"function"===typeof c?c():c))})()),Z&&l.createElement("tfoot",Object.assign({className:m("footer",{sticky:K},w)},p),G?G({cellClassName:m("footer-cell"),footerGroups:re,rowClassName:m("footer-row"),rowIndex:ae+se+1}):re.map(((e,t)=>(e=>e.headers.some((e=>e.column.columnDef.footer)))(e)?l.createElement(M,{key:e.id,footerGroup:e,attributes:h,cellAttributes:f,cellClassName:v,className:b,"aria-rowindex":ae+se+t+1}):null))))}));L.displayName="BaseTable"},36590:(e,t,n)=>{n.d(t,{K:()=>r});var l=n(24953),o=n(85720);const r=e=>{var t,n,r,i,a,s,u,d,g,c,p,m,f;const v=Object.assign(Object.assign({},e),{enableColumnPinning:null!==(t=e.enableColumnPinning)&&void 0!==t&&t,enableColumnResizing:null!==(n=e.enableColumnResizing)&&void 0!==n&&n,enableExpanding:null!==(r=e.enableExpanding)&&void 0!==r&&r,enableGrouping:null!==(i=e.enableGrouping)&&void 0!==i&&i,enableMultiRowSelection:null!==(a=e.enableMultiRowSelection)&&void 0!==a&&a,enableRowSelection:null!==(s=e.enableRowSelection)&&void 0!==s&&s,enableSorting:null!==(u=e.enableSorting)&&void 0!==u&&u,getCoreRowModel:null!==(d=e.getCoreRowModel)&&void 0!==d?d:(0,l.HT)(),getExpandedRowModel:e.enableExpanding?null!==(g=e.getExpandedRowModel)&&void 0!==g?g:(0,l.D0)():void 0,getGroupedRowModel:e.enableGrouping?null!==(c=e.getGroupedRowModel)&&void 0!==c?c:(0,l.cU)():void 0,getSortedRowModel:e.enableSorting?null!==(p=e.getSortedRowModel)&&void 0!==p?p:(0,l.h5)():void 0,manualGrouping:null!==(m=e.manualGrouping)&&void 0!==m&&m,manualSorting:null!==(f=e.manualSorting)&&void 0!==f&&f});return(0,o.N4)(v)}},74321:(e,t,n)=>{n.d(t,{S:()=>u});var l=n(59284),o=n(64222),r=n(46898);function i(e){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 17",width:"16",height:"16",fill:"currentColor"},e),l.createElement("path",{d:"M4 7h9v3H4z"}))}function a(e){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 10",width:"16",height:"16",fill:"currentColor"},e),l.createElement("path",{d:"M.49 5.385l1.644-1.644 4.385 4.385L4.874 9.77.49 5.385zm4.384 1.096L10.356 1 12 2.644 6.519 8.126 4.874 6.48v.001z"}))}const s=(0,n(69220).om)("checkbox"),u=l.forwardRef((function(e,t){const{size:n="m",indeterminate:u,disabled:d=!1,content:g,children:c,title:p,style:m,className:f,qa:v}=e,{checked:w,inputProps:h}=(0,o.v)(e),b=g||c,C=l.createElement("span",{className:s("indicator")},l.createElement("span",{className:s("icon"),"aria-hidden":!0},u?l.createElement(i,{className:s("icon-svg",{type:"dash"})}):l.createElement(a,{className:s("icon-svg",{type:"tick"})})),l.createElement("input",Object.assign({},h,{className:s("control")})),l.createElement("span",{className:s("outline")}));return l.createElement(r.m,{ref:t,title:p,style:m,size:n,disabled:d,className:s({size:n,disabled:d,indeterminate:u,checked:w},f),qa:v,control:C},b)}))},85720:(e,t,n)=>{n.d(t,{Kv:()=>r,N4:()=>i});var l=n(59284),o=n(24953);function r(e,t){return e?function(e){return"function"===typeof e&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}(n=e)||"function"===typeof n||function(e){return"object"===typeof e&&"symbol"===typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(n)?l.createElement(e,t):e:null;var n}function i(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=l.useState((()=>({current:(0,o.ZR)(t)}))),[r,i]=l.useState((()=>n.current.initialState));return n.current.setOptions((t=>({...t,...e,state:{...r,...e.state},onStateChange:t=>{i(t),null==e.onStateChange||e.onStateChange(t)}}))),n.current}},24953:(e,t,n)=>{function l(e,t){return"function"===typeof e?e(t):e}function o(e,t){return n=>{t.setState((t=>({...t,[e]:l(n,t[e])})))}}function r(e){return e instanceof Function}function i(e,t){const n=[],l=e=>{e.forEach((e=>{n.push(e);const o=t(e);null!=o&&o.length&&l(o)}))};return l(e),n}function a(e,t,n){let l,o=[];return r=>{let i;n.key&&n.debug&&(i=Date.now());const a=e(r);if(!(a.length!==o.length||a.some(((e,t)=>o[t]!==e))))return l;let s;if(o=a,n.key&&n.debug&&(s=Date.now()),l=t(...a),null==n||null==n.onChange||n.onChange(l),n.key&&n.debug&&null!=n&&n.debug()){const e=Math.round(100*(Date.now()-i))/100,t=Math.round(100*(Date.now()-s))/100,l=t/16,o=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c\u23f1 ${o(t,5)} /${o(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*l,120))}deg 100% 31%);`,null==n?void 0:n.key)}return l}}function s(e,t,n,l){return{debug:()=>{var n;return null!=(n=null==e?void 0:e.debugAll)?n:e[t]},key:!1,onChange:l}}n.d(t,{D0:()=>W,HT:()=>Z,ZR:()=>X,cU:()=>Q,h5:()=>Y});const u="debugHeaders";function d(e,t,n){var l;let o={id:null!=(l=n.id)?l:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(o),e},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach((t=>{null==t.createHeader||t.createHeader(o,e)})),o}const g={createTable:e=>{e.getHeaderGroups=a((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,l,o)=>{var r,i;const a=null!=(r=null==l?void 0:l.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?r:[],s=null!=(i=null==o?void 0:o.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?i:[];return c(t,[...a,...n.filter((e=>!(null!=l&&l.includes(e.id))&&!(null!=o&&o.includes(e.id)))),...s],e)}),s(e.options,u)),e.getCenterHeaderGroups=a((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,l,o)=>c(t,n=n.filter((e=>!(null!=l&&l.includes(e.id))&&!(null!=o&&o.includes(e.id)))),e,"center")),s(e.options,u)),e.getLeftHeaderGroups=a((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left]),((t,n,l)=>{var o;return c(t,null!=(o=null==l?void 0:l.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?o:[],e,"left")}),s(e.options,u)),e.getRightHeaderGroups=a((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right]),((t,n,l)=>{var o;return c(t,null!=(o=null==l?void 0:l.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?o:[],e,"right")}),s(e.options,u)),e.getFooterGroups=a((()=>[e.getHeaderGroups()]),(e=>[...e].reverse()),s(e.options,u)),e.getLeftFooterGroups=a((()=>[e.getLeftHeaderGroups()]),(e=>[...e].reverse()),s(e.options,u)),e.getCenterFooterGroups=a((()=>[e.getCenterHeaderGroups()]),(e=>[...e].reverse()),s(e.options,u)),e.getRightFooterGroups=a((()=>[e.getRightHeaderGroups()]),(e=>[...e].reverse()),s(e.options,u)),e.getFlatHeaders=a((()=>[e.getHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),s(e.options,u)),e.getLeftFlatHeaders=a((()=>[e.getLeftHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),s(e.options,u)),e.getCenterFlatHeaders=a((()=>[e.getCenterHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),s(e.options,u)),e.getRightFlatHeaders=a((()=>[e.getRightHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),s(e.options,u)),e.getCenterLeafHeaders=a((()=>[e.getCenterFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),s(e.options,u)),e.getLeftLeafHeaders=a((()=>[e.getLeftFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),s(e.options,u)),e.getRightLeafHeaders=a((()=>[e.getRightFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),s(e.options,u)),e.getLeafHeaders=a((()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()]),((e,t,n)=>{var l,o,r,i,a,s;return[...null!=(l=null==(o=e[0])?void 0:o.headers)?l:[],...null!=(r=null==(i=t[0])?void 0:i.headers)?r:[],...null!=(a=null==(s=n[0])?void 0:s.headers)?a:[]].map((e=>e.getLeafHeaders())).flat()}),s(e.options,u))}};function c(e,t,n,l){var o,r;let i=0;const a=function(e,t){void 0===t&&(t=1),i=Math.max(i,t),e.filter((e=>e.getIsVisible())).forEach((e=>{var n;null!=(n=e.columns)&&n.length&&a(e.columns,t+1)}),0)};a(e);let s=[];const u=(e,t)=>{const o={depth:t,id:[l,`${t}`].filter(Boolean).join("_"),headers:[]},r=[];e.forEach((e=>{const i=[...r].reverse()[0];let a,s=!1;if(e.column.depth===o.depth&&e.column.parent?a=e.column.parent:(a=e.column,s=!0),i&&(null==i?void 0:i.column)===a)i.subHeaders.push(e);else{const o=d(n,a,{id:[l,t,a.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:s,placeholderId:s?`${r.filter((e=>e.column===a)).length}`:void 0,depth:t,index:r.length});o.subHeaders.push(e),r.push(o)}o.headers.push(e),e.headerGroup=o})),s.push(o),t>0&&u(r,t-1)},g=t.map(((e,t)=>d(n,e,{depth:i,index:t})));u(g,i-1),s.reverse();const c=e=>e.filter((e=>e.column.getIsVisible())).map((e=>{let t=0,n=0,l=[0];e.subHeaders&&e.subHeaders.length?(l=[],c(e.subHeaders).forEach((e=>{let{colSpan:n,rowSpan:o}=e;t+=n,l.push(o)}))):t=1;return n+=Math.min(...l),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}}));return c(null!=(o=null==(r=s[0])?void 0:r.headers)?o:[]),s}const p=(e,t,n,l,o,r,u)=>{let d={id:t,index:l,original:n,depth:o,parentId:u,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(d._valuesCache.hasOwnProperty(t))return d._valuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?(d._valuesCache[t]=n.accessorFn(d.original,l),d._valuesCache[t]):void 0},getUniqueValues:t=>{if(d._uniqueValuesCache.hasOwnProperty(t))return d._uniqueValuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?n.columnDef.getUniqueValues?(d._uniqueValuesCache[t]=n.columnDef.getUniqueValues(d.original,l),d._uniqueValuesCache[t]):(d._uniqueValuesCache[t]=[d.getValue(t)],d._uniqueValuesCache[t]):void 0},renderValue:t=>{var n;return null!=(n=d.getValue(t))?n:e.options.renderFallbackValue},subRows:null!=r?r:[],getLeafRows:()=>i(d.subRows,(e=>e.subRows)),getParentRow:()=>d.parentId?e.getRow(d.parentId,!0):void 0,getParentRows:()=>{let e=[],t=d;for(;;){const n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:a((()=>[e.getAllLeafColumns()]),(t=>t.map((t=>function(e,t,n,l){const o={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(l),renderValue:()=>{var t;return null!=(t=o.getValue())?t:e.options.renderFallbackValue},getContext:a((()=>[e,n,t,o]),((e,t,n,l)=>({table:e,column:t,row:n,cell:l,getValue:l.getValue,renderValue:l.renderValue})),s(e.options,"debugCells"))};return e._features.forEach((l=>{null==l.createCell||l.createCell(o,n,t,e)}),{}),o}(e,d,t,t.id)))),s(e.options,"debugRows")),_getAllCellsByColumnId:a((()=>[d.getAllCells()]),(e=>e.reduce(((e,t)=>(e[t.column.id]=t,e)),{})),s(e.options,"debugRows"))};for(let i=0;i<e._features.length;i++){const t=e._features[i];null==t||null==t.createRow||t.createRow(d,e)}return d},m={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},f=(e,t,n)=>{var l,o;const r=null==n||null==(l=n.toString())?void 0:l.toLowerCase();return Boolean(null==(o=e.getValue(t))||null==(o=o.toString())||null==(o=o.toLowerCase())?void 0:o.includes(r))};f.autoRemove=e=>x(e);const v=(e,t,n)=>{var l;return Boolean(null==(l=e.getValue(t))||null==(l=l.toString())?void 0:l.includes(n))};v.autoRemove=e=>x(e);const w=(e,t,n)=>{var l;return(null==(l=e.getValue(t))||null==(l=l.toString())?void 0:l.toLowerCase())===(null==n?void 0:n.toLowerCase())};w.autoRemove=e=>x(e);const h=(e,t,n)=>{var l;return null==(l=e.getValue(t))?void 0:l.includes(n)};h.autoRemove=e=>x(e)||!(null!=e&&e.length);const b=(e,t,n)=>!n.some((n=>{var l;return!(null!=(l=e.getValue(t))&&l.includes(n))}));b.autoRemove=e=>x(e)||!(null!=e&&e.length);const C=(e,t,n)=>n.some((n=>{var l;return null==(l=e.getValue(t))?void 0:l.includes(n)}));C.autoRemove=e=>x(e)||!(null!=e&&e.length);const S=(e,t,n)=>e.getValue(t)===n;S.autoRemove=e=>x(e);const R=(e,t,n)=>e.getValue(t)==n;R.autoRemove=e=>x(e);const y=(e,t,n)=>{let[l,o]=n;const r=e.getValue(t);return r>=l&&r<=o};y.resolveFilterValue=e=>{let[t,n]=e,l="number"!==typeof t?parseFloat(t):t,o="number"!==typeof n?parseFloat(n):n,r=null===t||Number.isNaN(l)?-1/0:l,i=null===n||Number.isNaN(o)?1/0:o;if(r>i){const e=r;r=i,i=e}return[r,i]},y.autoRemove=e=>x(e)||x(e[0])&&x(e[1]);const I={includesString:f,includesStringSensitive:v,equalsString:w,arrIncludes:h,arrIncludesAll:b,arrIncludesSome:C,equals:S,weakEquals:R,inNumberRange:y};function x(e){return void 0===e||null===e||""===e}const M={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:o("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],l=null==n?void 0:n.getValue(e.id);return"string"===typeof l?I.includesString:"number"===typeof l?I.inNumberRange:"boolean"===typeof l||null!==l&&"object"===typeof l?I.equals:Array.isArray(l)?I.arrIncludes:I.weakEquals},e.getFilterFn=()=>{var n,l;return r(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(l=t.options.filterFns)?void 0:l[e.columnDef.filterFn])?n:I[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,l,o;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(l=t.options.enableColumnFilters)||l)&&(null==(o=t.options.enableFilters)||o)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return null==(n=t.getState().columnFilters)||null==(n=n.find((t=>t.id===e.id)))?void 0:n.value},e.getFilterIndex=()=>{var n,l;return null!=(n=null==(l=t.getState().columnFilters)?void 0:l.findIndex((t=>t.id===e.id)))?n:-1},e.setFilterValue=n=>{t.setColumnFilters((t=>{const o=e.getFilterFn(),r=null==t?void 0:t.find((t=>t.id===e.id)),i=l(n,r?r.value:void 0);var a;if(F(o,i,e))return null!=(a=null==t?void 0:t.filter((t=>t.id!==e.id)))?a:[];const s={id:e.id,value:i};var u;return r?null!=(u=null==t?void 0:t.map((t=>t.id===e.id?s:t)))?u:[]:null!=t&&t.length?[...t,s]:[s]}))}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange((e=>{var o;return null==(o=l(t,e))?void 0:o.filter((e=>{const t=n.find((t=>t.id===e.id));if(t){if(F(t.getFilterFn(),e.value,t))return!1}return!0}))}))},e.resetColumnFilters=t=>{var n,l;e.setColumnFilters(t?[]:null!=(n=null==(l=e.initialState)?void 0:l.columnFilters)?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function F(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||"undefined"===typeof t||"string"===typeof t&&!t}const P={sum:(e,t,n)=>n.reduce(((t,n)=>{const l=n.getValue(e);return t+("number"===typeof l?l:0)}),0),min:(e,t,n)=>{let l;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(l>n||void 0===l&&n>=n)&&(l=n)})),l},max:(e,t,n)=>{let l;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(l<n||void 0===l&&n>=n)&&(l=n)})),l},extent:(e,t,n)=>{let l,o;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(void 0===l?n>=n&&(l=o=n):(l>n&&(l=n),o<n&&(o=n)))})),[l,o]},mean:(e,t)=>{let n=0,l=0;if(t.forEach((t=>{let o=t.getValue(e);null!=o&&(o=+o)>=o&&(++n,l+=o)})),n)return l/n},median:(e,t)=>{if(!t.length)return;const n=t.map((t=>t.getValue(e)));if(l=n,!Array.isArray(l)||!l.every((e=>"number"===typeof e)))return;var l;if(1===n.length)return n[0];const o=Math.floor(n.length/2),r=n.sort(((e,t)=>e-t));return n.length%2!==0?r[o]:(r[o-1]+r[o])/2},unique:(e,t)=>Array.from(new Set(t.map((t=>t.getValue(e)))).values()),uniqueCount:(e,t)=>new Set(t.map((t=>t.getValue(e)))).size,count:(e,t)=>t.length},E={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:o("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping((t=>null!=t&&t.includes(e.id)?t.filter((t=>t!==e.id)):[...null!=t?t:[],e.id]))},e.getCanGroup=()=>{var n,l;return(null==(n=e.columnDef.enableGrouping)||n)&&(null==(l=t.options.enableGrouping)||l)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],l=null==n?void 0:n.getValue(e.id);return"number"===typeof l?P.sum:"[object Date]"===Object.prototype.toString.call(l)?P.extent:void 0},e.getAggregationFn=()=>{var n,l;if(!e)throw new Error;return r(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(l=t.options.aggregationFns)?void 0:l[e.columnDef.aggregationFn])?n:P[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,l;e.setGrouping(t?[]:null!=(n=null==(l=e.initialState)?void 0:l.grouping)?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const l=t.getColumn(n);return null!=l&&l.columnDef.getGroupingValue?(e._groupingValuesCache[n]=l.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,l)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=n.subRows)||!t.length)}}};const V={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:o("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=a((e=>[H(t,e)]),(t=>t.findIndex((t=>t.id===e.id))),s(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var l;return(null==(l=H(t,n)[0])?void 0:l.id)===e.id},e.getIsLastColumn=n=>{var l;const o=H(t,n);return(null==(l=o[o.length-1])?void 0:l.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},e._getOrderColumnsFn=a((()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode]),((e,t,n)=>l=>{let o=[];if(null!=e&&e.length){const t=[...e],n=[...l];for(;n.length&&t.length;){const e=t.shift(),l=n.findIndex((t=>t.id===e));l>-1&&o.push(n.splice(l,1)[0])}o=[...o,...n]}else o=l;return function(e,t,n){if(null==t||!t.length||!n)return e;const l=e.filter((e=>!t.includes(e.id)));return"remove"===n?l:[...t.map((t=>e.find((e=>e.id===t)))).filter(Boolean),...l]}(o,t,n)}),s(e.options,"debugTable"))}},O={getInitialState:e=>({columnPinning:{left:[],right:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:o("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const l=e.getLeafColumns().map((e=>e.id)).filter(Boolean);t.setColumnPinning((e=>{var t,o,r,i,a,s;return"right"===n?{left:(null!=(r=null==e?void 0:e.left)?r:[]).filter((e=>!(null!=l&&l.includes(e)))),right:[...(null!=(i=null==e?void 0:e.right)?i:[]).filter((e=>!(null!=l&&l.includes(e)))),...l]}:"left"===n?{left:[...(null!=(a=null==e?void 0:e.left)?a:[]).filter((e=>!(null!=l&&l.includes(e)))),...l],right:(null!=(s=null==e?void 0:e.right)?s:[]).filter((e=>!(null!=l&&l.includes(e))))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter((e=>!(null!=l&&l.includes(e)))),right:(null!=(o=null==e?void 0:e.right)?o:[]).filter((e=>!(null!=l&&l.includes(e))))}}))},e.getCanPin=()=>e.getLeafColumns().some((e=>{var n,l,o;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(l=null!=(o=t.options.enableColumnPinning)?o:t.options.enablePinning)||l)})),e.getIsPinned=()=>{const n=e.getLeafColumns().map((e=>e.id)),{left:l,right:o}=t.getState().columnPinning,r=n.some((e=>null==l?void 0:l.includes(e))),i=n.some((e=>null==o?void 0:o.includes(e)));return r?"left":!!i&&"right"},e.getPinnedIndex=()=>{var n,l;const o=e.getIsPinned();return o?null!=(n=null==(l=t.getState().columnPinning)||null==(l=l[o])?void 0:l.indexOf(e.id))?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=a((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right]),((e,t,n)=>{const l=[...null!=t?t:[],...null!=n?n:[]];return e.filter((e=>!l.includes(e.column.id)))}),s(t.options,"debugRows")),e.getLeftVisibleCells=a((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"left"})))),s(t.options,"debugRows")),e.getRightVisibleCells=a((()=>[e._getAllVisibleCells(),t.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"right"})))),s(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,l;return e.setColumnPinning(t?{left:[],right:[]}:null!=(n=null==(l=e.initialState)?void 0:l.columnPinning)?n:{left:[],right:[]})},e.getIsSomeColumnsPinned=t=>{var n;const l=e.getState().columnPinning;var o,r;return t?Boolean(null==(n=l[t])?void 0:n.length):Boolean((null==(o=l.left)?void 0:o.length)||(null==(r=l.right)?void 0:r.length))},e.getLeftLeafColumns=a((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),s(e.options,"debugColumns")),e.getRightLeafColumns=a((()=>[e.getAllLeafColumns(),e.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),s(e.options,"debugColumns")),e.getCenterLeafColumns=a((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((e,t,n)=>{const l=[...null!=t?t:[],...null!=n?n:[]];return e.filter((e=>!l.includes(e.id)))}),s(e.options,"debugColumns"))}},_={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},z={getDefaultColumnDef:()=>_,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:o("columnSizing",e),onColumnSizingInfoChange:o("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,l,o;const r=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:_.minSize,null!=(l=null!=r?r:e.columnDef.size)?l:_.size),null!=(o=e.columnDef.maxSize)?o:_.maxSize)},e.getStart=a((e=>[e,H(t,e),t.getState().columnSizing]),((t,n)=>n.slice(0,e.getIndex(t)).reduce(((e,t)=>e+t.getSize()),0)),s(t.options,"debugColumns")),e.getAfter=a((e=>[e,H(t,e),t.getState().columnSizing]),((t,n)=>n.slice(e.getIndex(t)+1).reduce(((e,t)=>e+t.getSize()),0)),s(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing((t=>{let{[e.id]:n,...l}=t;return l}))},e.getCanResize=()=>{var n,l;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(l=t.options.enableColumnResizing)||l)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0;const n=e=>{var l;e.subHeaders.length?e.subHeaders.forEach(n):t+=null!=(l=e.column.getSize())?l:0};return n(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=n=>{const l=t.getColumn(e.column.id),o=null==l?void 0:l.getCanResize();return r=>{if(!l||!o)return;if(null==r.persist||r.persist(),N(r)&&r.touches&&r.touches.length>1)return;const i=e.getSize(),a=e?e.getLeafHeaders().map((e=>[e.column.id,e.column.getSize()])):[[l.id,l.getSize()]],s=N(r)?Math.round(r.touches[0].clientX):r.clientX,u={},d=(e,n)=>{"number"===typeof n&&(t.setColumnSizingInfo((e=>{var l,o;const r="rtl"===t.options.columnResizeDirection?-1:1,i=(n-(null!=(l=null==e?void 0:e.startOffset)?l:0))*r,a=Math.max(i/(null!=(o=null==e?void 0:e.startSize)?o:0),-.999999);return e.columnSizingStart.forEach((e=>{let[t,n]=e;u[t]=Math.round(100*Math.max(n+n*a,0))/100})),{...e,deltaOffset:i,deltaPercentage:a}})),"onChange"!==t.options.columnResizeMode&&"end"!==e||t.setColumnSizing((e=>({...e,...u}))))},g=e=>d("move",e),c=e=>{d("end",e),t.setColumnSizingInfo((e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]})))},p=n||"undefined"!==typeof document?document:null,m={moveHandler:e=>g(e.clientX),upHandler:e=>{null==p||p.removeEventListener("mousemove",m.moveHandler),null==p||p.removeEventListener("mouseup",m.upHandler),c(e.clientX)}},f={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),g(e.touches[0].clientX),!1),upHandler:e=>{var t;null==p||p.removeEventListener("touchmove",f.moveHandler),null==p||p.removeEventListener("touchend",f.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),c(null==(t=e.touches[0])?void 0:t.clientX)}},v=!!function(){if("boolean"===typeof G)return G;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch(t){e=!1}return G=e,G}()&&{passive:!1};N(r)?(null==p||p.addEventListener("touchmove",f.moveHandler,v),null==p||p.addEventListener("touchend",f.upHandler,v)):(null==p||p.addEventListener("mousemove",m.moveHandler,v),null==p||p.addEventListener("mouseup",m.upHandler,v)),t.setColumnSizingInfo((e=>({...e,startOffset:s,startSize:i,deltaOffset:0,deltaPercentage:0,columnSizingStart:a,isResizingColumn:l.id})))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(n=e.initialState.columnSizingInfo)?n:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},e.getTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getLeftTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getCenterTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getRightTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0}}};let G=null;function N(e){return"touchstart"===e.type}function H(e,t){return t?"center"===t?e.getCenterVisibleLeafColumns():"left"===t?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const A={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:o("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection((n=>{t="undefined"!==typeof t?t:!e.getIsAllRowsSelected();const l={...n},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach((e=>{e.getCanSelect()&&(l[e.id]=!0)})):o.forEach((e=>{delete l[e.id]})),l}))},e.toggleAllPageRowsSelected=t=>e.setRowSelection((n=>{const l="undefined"!==typeof t?t:!e.getIsAllPageRowsSelected(),o={...n};return e.getRowModel().rows.forEach((t=>{D(o,t.id,l,!0,e)})),o})),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=a((()=>[e.getState().rowSelection,e.getCoreRowModel()]),((t,n)=>Object.keys(t).length?L(e,n):{rows:[],flatRows:[],rowsById:{}}),s(e.options,"debugTable")),e.getFilteredSelectedRowModel=a((()=>[e.getState().rowSelection,e.getFilteredRowModel()]),((t,n)=>Object.keys(t).length?L(e,n):{rows:[],flatRows:[],rowsById:{}}),s(e.options,"debugTable")),e.getGroupedSelectedRowModel=a((()=>[e.getState().rowSelection,e.getSortedRowModel()]),((t,n)=>Object.keys(t).length?L(e,n):{rows:[],flatRows:[],rowsById:{}}),s(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let l=Boolean(t.length&&Object.keys(n).length);return l&&t.some((e=>e.getCanSelect()&&!n[e.id]))&&(l=!1),l},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter((e=>e.getCanSelect())),{rowSelection:n}=e.getState();let l=!!t.length;return l&&t.some((e=>!n[e.id]))&&(l=!1),l},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter((e=>e.getCanSelect())).some((e=>e.getIsSelected()||e.getIsSomeSelected()))},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,l)=>{const o=e.getIsSelected();t.setRowSelection((r=>{var i;if(n="undefined"!==typeof n?n:!o,e.getCanSelect()&&o===n)return r;const a={...r};return D(a,e.id,n,null==(i=null==l?void 0:l.selectChildren)||i,t),a}))},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return j(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return"some"===T(e,n)},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return"all"===T(e,n)},e.getCanSelect=()=>{var n;return"function"===typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},e.getCanSelectSubRows=()=>{var n;return"function"===typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},e.getCanMultiSelect=()=>{var n;return"function"===typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return n=>{var l;t&&e.toggleSelected(null==(l=n.target)?void 0:l.checked)}}}},D=(e,t,n,l,o)=>{var r;const i=o.getRow(t,!0);n?(i.getCanMultiSelect()||Object.keys(e).forEach((t=>delete e[t])),i.getCanSelect()&&(e[t]=!0)):delete e[t],l&&null!=(r=i.subRows)&&r.length&&i.getCanSelectSubRows()&&i.subRows.forEach((t=>D(e,t.id,n,l,o)))};function L(e,t){const n=e.getState().rowSelection,l=[],o={},r=function(e,t){return e.map((e=>{var t;const i=j(e,n);if(i&&(l.push(e),o[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:r(e.subRows)}),i)return e})).filter(Boolean)};return{rows:r(t.rows),flatRows:l,rowsById:o}}function j(e,t){var n;return null!=(n=t[e.id])&&n}function T(e,t,n){var l;if(null==(l=e.subRows)||!l.length)return!1;let o=!0,r=!1;return e.subRows.forEach((e=>{if((!r||o)&&(e.getCanSelect()&&(j(e,t)?r=!0:o=!1),e.subRows&&e.subRows.length)){const n=T(e,t);"all"===n?r=!0:"some"===n?(r=!0,o=!1):o=!1}})),o?"all":!!r&&"some"}const B=/([0-9]+)/gm;function k(e,t){return e===t?0:e>t?1:-1}function q(e){return"number"===typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"===typeof e?e:""}function $(e,t){const n=e.split(B).filter(Boolean),l=t.split(B).filter(Boolean);for(;n.length&&l.length;){const e=n.shift(),t=l.shift(),o=parseInt(e,10),r=parseInt(t,10),i=[o,r].sort();if(isNaN(i[0])){if(e>t)return 1;if(t>e)return-1}else{if(isNaN(i[1]))return isNaN(o)?-1:1;if(o>r)return 1;if(r>o)return-1}}return n.length-l.length}const U={alphanumeric:(e,t,n)=>$(q(e.getValue(n)).toLowerCase(),q(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>$(q(e.getValue(n)),q(t.getValue(n))),text:(e,t,n)=>k(q(e.getValue(n)).toLowerCase(),q(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>k(q(e.getValue(n)),q(t.getValue(n))),datetime:(e,t,n)=>{const l=e.getValue(n),o=t.getValue(n);return l>o?1:l<o?-1:0},basic:(e,t,n)=>k(e.getValue(n),t.getValue(n))},K=[g,{getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:o("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility((t=>({...t,[e.id]:null!=n?n:!e.getIsVisible()})))},e.getIsVisible=()=>{var n,l;const o=e.columns;return null==(n=o.length?o.some((e=>e.getIsVisible())):null==(l=t.getState().columnVisibility)?void 0:l[e.id])||n},e.getCanHide=()=>{var n,l;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(l=t.options.enableHiding)||l)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=a((()=>[e.getAllCells(),t.getState().columnVisibility]),(e=>e.filter((e=>e.column.getIsVisible()))),s(t.options,"debugRows")),e.getVisibleCells=a((()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()]),((e,t,n)=>[...e,...t,...n]),s(t.options,"debugRows"))},createTable:e=>{const t=(t,n)=>a((()=>[n(),n().filter((e=>e.getIsVisible())).map((e=>e.id)).join("_")]),(e=>e.filter((e=>null==e.getIsVisible?void 0:e.getIsVisible()))),s(e.options,"debugColumns"));e.getVisibleFlatColumns=t(0,(()=>e.getAllFlatColumns())),e.getVisibleLeafColumns=t(0,(()=>e.getAllLeafColumns())),e.getLeftVisibleLeafColumns=t(0,(()=>e.getLeftLeafColumns())),e.getRightVisibleLeafColumns=t(0,(()=>e.getRightLeafColumns())),e.getCenterVisibleLeafColumns=t(0,(()=>e.getCenterLeafColumns())),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},e.toggleAllColumnsVisible=t=>{var n;t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce(((e,n)=>({...e,[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())})),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some((e=>!(null!=e.getIsVisible&&e.getIsVisible()))),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some((e=>null==e.getIsVisible?void 0:e.getIsVisible())),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}},V,O,m,M,{createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},{getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:o("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const l=null==(n=e.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[t.id])?void 0:n.getValue();return"string"===typeof l||"number"===typeof l}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,l,o,r;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(l=t.options.enableGlobalFilter)||l)&&(null==(o=t.options.enableFilters)||o)&&(null==(r=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||r)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>I.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:l}=e.options;return r(l)?l:"auto"===l?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[l])?t:I[l]},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:o("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let l=!1;for(const t of n){const n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return U.datetime;if("string"===typeof n&&(l=!0,n.split(B).length>1))return U.alphanumeric}return l?U.text:U.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return"string"===typeof(null==n?void 0:n.getValue(e.id))?"asc":"desc"},e.getSortingFn=()=>{var n,l;if(!e)throw new Error;return r(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(l=t.options.sortingFns)?void 0:l[e.columnDef.sortingFn])?n:U[e.columnDef.sortingFn]},e.toggleSorting=(n,l)=>{const o=e.getNextSortingOrder(),r="undefined"!==typeof n&&null!==n;t.setSorting((i=>{const a=null==i?void 0:i.find((t=>t.id===e.id)),s=null==i?void 0:i.findIndex((t=>t.id===e.id));let u,d=[],g=r?n:"desc"===o;var c;(u=null!=i&&i.length&&e.getCanMultiSort()&&l?a?"toggle":"add":null!=i&&i.length&&s!==i.length-1?"replace":a?"toggle":"replace","toggle"===u&&(r||o||(u="remove")),"add"===u)?(d=[...i,{id:e.id,desc:g}],d.splice(0,d.length-(null!=(c=t.options.maxMultiSortColCount)?c:Number.MAX_SAFE_INTEGER))):d="toggle"===u?i.map((t=>t.id===e.id?{...t,desc:g}:t)):"remove"===u?i.filter((t=>t.id!==e.id)):[{id:e.id,desc:g}];return d}))},e.getFirstSortDir=()=>{var n,l;return(null!=(n=null!=(l=e.columnDef.sortDescFirst)?l:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir())?"desc":"asc"},e.getNextSortingOrder=n=>{var l,o;const r=e.getFirstSortDir(),i=e.getIsSorted();return i?!!(i===r||null!=(l=t.options.enableSortingRemoval)&&!l||n&&null!=(o=t.options.enableMultiRemove)&&!o)&&("desc"===i?"asc":"desc"):r},e.getCanSort=()=>{var n,l;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(l=t.options.enableSorting)||l)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,l;return null!=(n=null!=(l=e.columnDef.enableMultiSort)?l:t.options.enableMultiSort)?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const l=null==(n=t.getState().sorting)?void 0:n.find((t=>t.id===e.id));return!!l&&(l.desc?"desc":"asc")},e.getSortIndex=()=>{var n,l;return null!=(n=null==(l=t.getState().sorting)?void 0:l.findIndex((t=>t.id===e.id)))?n:-1},e.clearSorting=()=>{t.setSorting((t=>null!=t&&t.length?t.filter((t=>t.id!==e.id)):[]))},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return l=>{n&&(null==l.persist||l.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(l))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,l;e.setSorting(t?[]:null!=(n=null==(l=e.initialState)?void 0:l.sorting)?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},E,{getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:o("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var l,o;if(t){if(null!=(l=null!=(o=e.options.autoResetAll)?o:e.options.autoResetExpanded)?l:!e.options.manualExpanding){if(n)return;n=!0,e._queue((()=>{e.resetExpanded(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var n,l;e.setExpanded(t?{}:null!=(n=null==(l=e.initialState)?void 0:l.expanded)?n:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some((e=>e.getCanExpand())),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{const t=e.getState().expanded;return"boolean"===typeof t?!0===t:!!Object.keys(t).length&&!e.getRowModel().flatRows.some((e=>!e.getIsExpanded()))},e.getExpandedDepth=()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach((e=>{const n=e.split(".");t=Math.max(t,n.length)})),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded((l=>{var o;const r=!0===l||!(null==l||!l[e.id]);let i={};if(!0===l?Object.keys(t.getRowModel().rowsById).forEach((e=>{i[e]=!0})):i=l,n=null!=(o=n)?o:!r,!r&&n)return{...i,[e.id]:!0};if(r&&!n){const{[e.id]:t,...n}=i;return n}return l}))},e.getIsExpanded=()=>{var n;const l=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===l||(null==l?void 0:l[e.id]))},e.getCanExpand=()=>{var n,l,o;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(l=t.options.enableExpanding)||l)&&!(null==(o=e.subRows)||!o.length)},e.getIsAllParentsExpanded=()=>{let n=!0,l=e;for(;n&&l.parentId;)l=t.getRow(l.parentId,!0),n=l.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},{getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:o("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var l,o;if(t){if(null!=(l=null!=(o=e.options.autoResetAll)?o:e.options.autoResetPageIndex)?l:!e.options.manualPagination){if(n)return;n=!0,e._queue((()=>{e.resetPageIndex(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange((e=>l(t,e))),e.resetPagination=t=>{var n;e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(n=e.initialState.pagination)?n:{pageIndex:0,pageSize:10})},e.setPageIndex=t=>{e.setPagination((n=>{let o=l(t,n.pageIndex);const r="undefined"===typeof e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return o=Math.max(0,Math.min(o,r)),{...n,pageIndex:o}}))},e.resetPageIndex=t=>{var n,l;e.setPageIndex(t?0:null!=(n=null==(l=e.initialState)||null==(l=l.pagination)?void 0:l.pageIndex)?n:0)},e.resetPageSize=t=>{var n,l;e.setPageSize(t?10:null!=(n=null==(l=e.initialState)||null==(l=l.pagination)?void 0:l.pageSize)?n:10)},e.setPageSize=t=>{e.setPagination((e=>{const n=Math.max(1,l(t,e.pageSize)),o=e.pageSize*e.pageIndex,r=Math.floor(o/n);return{...e,pageIndex:r,pageSize:n}}))},e.setPageCount=t=>e.setPagination((n=>{var o;let r=l(t,null!=(o=e.options.pageCount)?o:-1);return"number"===typeof r&&(r=Math.max(-1,r)),{...n,pageCount:r}})),e.getPageOptions=a((()=>[e.getPageCount()]),(e=>{let t=[];return e&&e>0&&(t=[...new Array(e)].fill(null).map(((e,t)=>t))),t}),s(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return-1===n||0!==n&&t<n-1},e.previousPage=()=>e.setPageIndex((e=>e-1)),e.nextPage=()=>e.setPageIndex((e=>e+1)),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var t;return null!=(t=e.options.rowCount)?t:e.getPrePaginationRowModel().rows.length}}},{getInitialState:e=>({rowPinning:{top:[],bottom:[]},...e}),getDefaultOptions:e=>({onRowPinningChange:o("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,l,o)=>{const r=l?e.getLeafRows().map((e=>{let{id:t}=e;return t})):[],i=o?e.getParentRows().map((e=>{let{id:t}=e;return t})):[],a=new Set([...i,e.id,...r]);t.setRowPinning((e=>{var t,l,o,r,i,s;return"bottom"===n?{top:(null!=(o=null==e?void 0:e.top)?o:[]).filter((e=>!(null!=a&&a.has(e)))),bottom:[...(null!=(r=null==e?void 0:e.bottom)?r:[]).filter((e=>!(null!=a&&a.has(e)))),...Array.from(a)]}:"top"===n?{top:[...(null!=(i=null==e?void 0:e.top)?i:[]).filter((e=>!(null!=a&&a.has(e)))),...Array.from(a)],bottom:(null!=(s=null==e?void 0:e.bottom)?s:[]).filter((e=>!(null!=a&&a.has(e))))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter((e=>!(null!=a&&a.has(e)))),bottom:(null!=(l=null==e?void 0:e.bottom)?l:[]).filter((e=>!(null!=a&&a.has(e))))}}))},e.getCanPin=()=>{var n;const{enableRowPinning:l,enablePinning:o}=t.options;return"function"===typeof l?l(e):null==(n=null!=l?l:o)||n},e.getIsPinned=()=>{const n=[e.id],{top:l,bottom:o}=t.getState().rowPinning,r=n.some((e=>null==l?void 0:l.includes(e))),i=n.some((e=>null==o?void 0:o.includes(e)));return r?"top":!!i&&"bottom"},e.getPinnedIndex=()=>{var n,l;const o=e.getIsPinned();if(!o)return-1;const r=null==(n="top"===o?t.getTopRows():t.getBottomRows())?void 0:n.map((e=>{let{id:t}=e;return t}));return null!=(l=null==r?void 0:r.indexOf(e.id))?l:-1}},createTable:e=>{e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,l;return e.setRowPinning(t?{top:[],bottom:[]}:null!=(n=null==(l=e.initialState)?void 0:l.rowPinning)?n:{top:[],bottom:[]})},e.getIsSomeRowsPinned=t=>{var n;const l=e.getState().rowPinning;var o,r;return t?Boolean(null==(n=l[t])?void 0:n.length):Boolean((null==(o=l.top)?void 0:o.length)||(null==(r=l.bottom)?void 0:r.length))},e._getPinnedRows=(t,n,l)=>{var o;return(null==(o=e.options.keepPinnedRows)||o?(null!=n?n:[]).map((t=>{const n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null})):(null!=n?n:[]).map((e=>t.find((t=>t.id===e))))).filter(Boolean).map((e=>({...e,position:l})))},e.getTopRows=a((()=>[e.getRowModel().rows,e.getState().rowPinning.top]),((t,n)=>e._getPinnedRows(t,n,"top")),s(e.options,"debugRows")),e.getBottomRows=a((()=>[e.getRowModel().rows,e.getState().rowPinning.bottom]),((t,n)=>e._getPinnedRows(t,n,"bottom")),s(e.options,"debugRows")),e.getCenterRows=a((()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom]),((e,t,n)=>{const l=new Set([...null!=t?t:[],...null!=n?n:[]]);return e.filter((e=>!l.has(e.id)))}),s(e.options,"debugRows"))}},A,z];function X(e){var t,n;const o=[...K,...null!=(t=e._features)?t:[]];let r={_features:o};const i=r._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(r))),{});let u={...null!=(n=e.initialState)?n:{}};r._features.forEach((e=>{var t;u=null!=(t=null==e.getInitialState?void 0:e.getInitialState(u))?t:u}));const d=[];let g=!1;const c={_features:o,options:{...i,...e},initialState:u,_queue:e=>{d.push(e),g||(g=!0,Promise.resolve().then((()=>{for(;d.length;)d.shift()();g=!1})).catch((e=>setTimeout((()=>{throw e})))))},reset:()=>{r.setState(r.initialState)},setOptions:e=>{const t=l(e,r.options);r.options=(e=>r.options.mergeOptions?r.options.mergeOptions(i,e):{...i,...e})(t)},getState:()=>r.options.state,setState:e=>{null==r.options.onStateChange||r.options.onStateChange(e)},_getRowId:(e,t,n)=>{var l;return null!=(l=null==r.options.getRowId?void 0:r.options.getRowId(e,t,n))?l:`${n?[n.id,t].join("."):t}`},getCoreRowModel:()=>(r._getCoreRowModel||(r._getCoreRowModel=r.options.getCoreRowModel(r)),r._getCoreRowModel()),getRowModel:()=>r.getPaginationRowModel(),getRow:(e,t)=>{let n=(t?r.getPrePaginationRowModel():r.getRowModel()).rowsById[e];if(!n&&(n=r.getCoreRowModel().rowsById[e],!n))throw new Error;return n},_getDefaultColumnDef:a((()=>[r.options.defaultColumn]),(e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{const t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:n.toString())?t:null},...r._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef())),{}),...e}}),s(e,"debugColumns")),_getColumnDefs:()=>r.options.columns,getAllColumns:a((()=>[r._getColumnDefs()]),(e=>{const t=function(e,n,l){return void 0===l&&(l=0),e.map((e=>{const o=function(e,t,n,l){var o,r;const i={...e._getDefaultColumnDef(),...t},u=i.accessorKey;let d,g=null!=(o=null!=(r=i.id)?r:u?"function"===typeof String.prototype.replaceAll?u.replaceAll(".","_"):u.replace(/\./g,"_"):void 0)?o:"string"===typeof i.header?i.header:void 0;if(i.accessorFn?d=i.accessorFn:u&&(d=u.includes(".")?e=>{let t=e;for(const l of u.split(".")){var n;t=null==(n=t)?void 0:n[l]}return t}:e=>e[i.accessorKey]),!g)throw new Error;let c={id:`${String(g)}`,accessorFn:d,parent:l,depth:n,columnDef:i,columns:[],getFlatColumns:a((()=>[!0]),(()=>{var e;return[c,...null==(e=c.columns)?void 0:e.flatMap((e=>e.getFlatColumns()))]}),s(e.options,"debugColumns")),getLeafColumns:a((()=>[e._getOrderColumnsFn()]),(e=>{var t;if(null!=(t=c.columns)&&t.length){let t=c.columns.flatMap((e=>e.getLeafColumns()));return e(t)}return[c]}),s(e.options,"debugColumns"))};for(const a of e._features)null==a.createColumn||a.createColumn(c,e);return c}(r,e,l,n),i=e;return o.columns=i.columns?t(i.columns,o,l+1):[],o}))};return t(e)}),s(e,"debugColumns")),getAllFlatColumns:a((()=>[r.getAllColumns()]),(e=>e.flatMap((e=>e.getFlatColumns()))),s(e,"debugColumns")),_getAllFlatColumnsById:a((()=>[r.getAllFlatColumns()]),(e=>e.reduce(((e,t)=>(e[t.id]=t,e)),{})),s(e,"debugColumns")),getAllLeafColumns:a((()=>[r.getAllColumns(),r._getOrderColumnsFn()]),((e,t)=>t(e.flatMap((e=>e.getLeafColumns())))),s(e,"debugColumns")),getColumn:e=>r._getAllFlatColumnsById()[e]};Object.assign(r,c);for(let l=0;l<r._features.length;l++){const e=r._features[l];null==e||null==e.createTable||e.createTable(r)}return r}function Z(){return e=>a((()=>[e.options.data]),(t=>{const n={rows:[],flatRows:[],rowsById:{}},l=function(t,o,r){void 0===o&&(o=0);const i=[];for(let s=0;s<t.length;s++){const u=p(e,e._getRowId(t[s],s,r),t[s],s,o,void 0,null==r?void 0:r.id);var a;if(n.flatRows.push(u),n.rowsById[u.id]=u,i.push(u),e.options.getSubRows)u.originalSubRows=e.options.getSubRows(t[s],s),null!=(a=u.originalSubRows)&&a.length&&(u.subRows=l(u.originalSubRows,o+1,u))}return i};return n.rows=l(t),n}),s(e.options,"debugTable",0,(()=>e._autoResetPageIndex())))}function W(){return e=>a((()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows]),((e,t,n)=>!t.rows.length||!0!==e&&!Object.keys(null!=e?e:{}).length?t:n?J(t):t),s(e.options,"debugTable"))}function J(e){const t=[],n=e=>{var l;t.push(e),null!=(l=e.subRows)&&l.length&&e.getIsExpanded()&&e.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function Q(){return e=>a((()=>[e.getState().grouping,e.getPreGroupedRowModel()]),((t,n)=>{if(!n.rows.length||!t.length)return n.rows.forEach((e=>{e.depth=0,e.parentId=void 0})),n;const l=t.filter((t=>e.getColumn(t))),o=[],r={},a=function(t,n,s){if(void 0===n&&(n=0),n>=l.length)return t.map((e=>(e.depth=n,o.push(e),r[e.id]=e,e.subRows&&(e.subRows=a(e.subRows,n+1,e.id)),e)));const u=l[n],d=function(e,t){const n=new Map;return e.reduce(((e,n)=>{const l=`${n.getGroupingValue(t)}`,o=e.get(l);return o?o.push(n):e.set(l,[n]),e}),n)}(t,u),g=Array.from(d.entries()).map(((t,d)=>{let[g,c]=t,m=`${u}:${g}`;m=s?`${s}>${m}`:m;const f=a(c,n+1,m);f.forEach((e=>{e.parentId=m}));const v=n?i(c,(e=>e.subRows)):c,w=p(e,m,v[0].original,d,n,void 0,s);return Object.assign(w,{groupingColumnId:u,groupingValue:g,subRows:f,leafRows:v,getValue:t=>{if(l.includes(t)){if(w._valuesCache.hasOwnProperty(t))return w._valuesCache[t];var n;if(c[0])w._valuesCache[t]=null!=(n=c[0].getValue(t))?n:void 0;return w._valuesCache[t]}if(w._groupingValuesCache.hasOwnProperty(t))return w._groupingValuesCache[t];const o=e.getColumn(t),r=null==o?void 0:o.getAggregationFn();return r?(w._groupingValuesCache[t]=r(t,v,c),w._groupingValuesCache[t]):void 0}}),f.forEach((e=>{o.push(e),r[e.id]=e})),w}));return g},s=a(n.rows,0);return s.forEach((e=>{o.push(e),r[e.id]=e})),{rows:s,flatRows:o,rowsById:r}}),s(e.options,"debugTable",0,(()=>{e._queue((()=>{e._autoResetExpanded(),e._autoResetPageIndex()}))})))}function Y(){return e=>a((()=>[e.getState().sorting,e.getPreSortedRowModel()]),((t,n)=>{if(!n.rows.length||null==t||!t.length)return n;const l=e.getState().sorting,o=[],r=l.filter((t=>{var n;return null==(n=e.getColumn(t.id))?void 0:n.getCanSort()})),i={};r.forEach((t=>{const n=e.getColumn(t.id);n&&(i[t.id]={sortUndefined:n.columnDef.sortUndefined,invertSorting:n.columnDef.invertSorting,sortingFn:n.getSortingFn()})}));const a=e=>{const t=e.map((e=>({...e})));return t.sort(((e,t)=>{for(let l=0;l<r.length;l+=1){var n;const o=r[l],a=i[o.id],s=a.sortUndefined,u=null!=(n=null==o?void 0:o.desc)&&n;let d=0;if(s){const n=void 0===e.getValue(o.id),l=void 0===t.getValue(o.id);if(n||l){if("first"===s)return n?-1:1;if("last"===s)return n?1:-1;d=n&&l?0:n?s:-s}}if(0===d&&(d=a.sortingFn(e,t,o.id)),0!==d)return u&&(d*=-1),a.invertSorting&&(d*=-1),d}return e.index-t.index})),t.forEach((e=>{var t;o.push(e),null!=(t=e.subRows)&&t.length&&(e.subRows=a(e.subRows))})),t};return{rows:a(n.rows),flatRows:o,rowsById:n.rowsById}}),s(e.options,"debugTable",0,(()=>e._autoResetPageIndex())))}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/8155.654c40b5.chunk.js b/ydb/core/viewer/monitoring/static/js/8155.654c40b5.chunk.js deleted file mode 100644 index afb5a8ab77..0000000000 --- a/ydb/core/viewer/monitoring/static/js/8155.654c40b5.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[8155],{80208:(i,e,o)=>{o.r(e),o.d(e,{VDiskPage:()=>C});var t=o(59284);const d=i=>t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},i),t.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.28 4.78a.75.75 0 0 0 0-1.06l-2.5-2.5a.75.75 0 1 0-1.06 1.06L6.94 3.5H1.75a.75.75 0 1 0 0 1.5h5.19L5.72 6.22a.75.75 0 1 0 1.06 1.06zm-.06 3.94-2.5 2.5a.75.75 0 0 0 0 1.06l2.5 2.5a.75.75 0 1 0 1.06-1.06L9.06 12.5h5.19a.75.75 0 0 0 0-1.5H9.06l1.22-1.22a.75.75 0 1 0-1.06-1.06M14 4.25a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0M3.75 13.5a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5",clipRule:"evenodd"}));var s=o(99991),n=o(44992),a=o(61750),l=o(67087),r=o(22983),v=o(3685),c=o(44508),k=o(42655),u=o(58389),D=o(67440),g=o(21334),I=o(67028),p=o(40174),f=o(7187),w=o(27295),h=o(78034);const m=g.F.injectEndpoints({endpoints:i=>({getVDiskData:i.query({queryFn:async({nodeId:i,pDiskId:e,vDiskSlotId:o},{signal:t})=>{try{const d=await Promise.all([window.api.viewer.getVDiskInfo({nodeId:i,pDiskId:e,vDiskSlotId:o},{signal:t}),window.api.viewer.getNodeWhiteboardPDiskInfo({nodeId:i,pDiskId:e},{signal:t}),window.api.viewer.getNodeInfo(i,{signal:t})]);return{data:function([i,e,o]){var t,d,s,n,a,l,r;const v=null===(t=i.VDiskStateInfo)||void 0===t?void 0:t[0],c=(0,w.WT)(v),k=null===(d=e.PDiskStateInfo)||void 0===d?void 0:d[0],u=(0,w.or)(k),D=null===(s=o.SystemStateInfo)||void 0===s?void 0:s[0],g=(0,h.q1)(D),I=null!==(n=null!==(a=c.NodeId)&&void 0!==a?a:u.NodeId)&&void 0!==n?n:g.NodeId,p=g.Host,f=null===(l=g.Roles)||void 0===l?void 0:l[0],m=g.DC,y=null!==(r=c.PDiskId)&&void 0!==r?r:u.PDiskId,x=u.Type;return{...c,NodeId:I,NodeHost:p,NodeType:f,NodeDC:m,PDiskId:y,PDiskType:x}}(d)}}catch(d){return{error:d}}},providesTags:(i,e,o)=>["All",{type:"VDiskData",id:(0,f.gh)(o.nodeId,o.pDiskId,o.vDiskSlotId)}]})}),overrideExisting:"throw"});var y=o(7435),x=o(77506),S=o(90182),b=o(12888),N=o(99936),P=o(48372);const V=JSON.parse('{"fqdn":"FQDN","node":"Node","pdisk":"PDisk","vdisk":"VDisk","storage":"Storage","evict-vdisk-button":"Evict VDisk","force-evict-vdisk-button":"Evict anyway","evict-vdisk-dialog-header":"Evict VDisk","evict-vdisk-dialog-text":"VDisk will be evicted. Do you want to proceed?","evict-vdisk-not-allowed":"You don\'t have enough rights to evict VDisk"}'),$=(0,P.g4)("ydb-vDisk-page",{en:V});var j=o(60712);const T=(0,x.cn)("ydb-vdisk-page");function C(){const i=(0,S.YQ)(),e=t.useRef(null),o=(0,b.X)(),w=(0,I.c2)(),[{nodeId:h,pDiskId:x,vDiskSlotId:P}]=(0,l.useQueryParams)({nodeId:l.StringParam,pDiskId:l.StringParam,vDiskSlotId:l.StringParam});t.useEffect((()=>{i((0,p.g)("vDisk",{nodeId:h,pDiskId:x,vDiskSlotId:P}))}),[i,h,x,P]);const[V]=(0,S.Nt)(),C=(0,y.f8)(h)&&(0,y.f8)(x)&&(0,y.f8)(P)?{nodeId:h,pDiskId:x,vDiskSlotId:P}:n.hT,{currentData:E={},isFetching:R,error:F}=m.useGetVDiskDataQuery(C,{pollingInterval:V}),B=R&&void 0===E,{NodeHost:H,NodeId:q,NodeType:G,NodeDC:M,PDiskId:Y,PDiskType:Q,Severity:_,VDiskId:A}=E,{GroupID:L,GroupGeneration:O,Ring:z,Domain:W,VDisk:X}=A||{},J=(0,y.f8)(L)&&(0,y.f8)(O)&&(0,y.f8)(z)&&(0,y.f8)(W)&&(0,y.f8)(X),K=async i=>{if(J){var e;const o={groupId:L,groupGeneration:O,failRealmIdx:z,failDomainIdx:W,vDiskIdx:X,force:i};let t;if(t=w?await window.api.vdisk.evictVDisk(o):await window.api.tablets.evictVDiskOld(o),!1===(null===(e=t)||void 0===e?void 0:e.result)){throw{statusText:t.error,retryPossible:t.forceRetryPossible}}}},U=()=>{i(g.F.util.invalidateTags([{type:"VDiskData",id:(0,f.gh)(h||0,x||0,P||0)},"StorageData"]))};return(0,j.jsxs)("div",{className:T(null),ref:e,children:[(()=>{const i=P?`${$("vdisk")} ${P}`:$("vdisk"),e=x?`${$("pdisk")} ${x}`:$("pdisk"),o=H||$("node");return(0,j.jsx)(a.mg,{titleTemplate:`%s - ${i} - ${e} \u2014 ${o} \u2014 YDB Monitoring`,defaultTitle:`${i} - ${e} \u2014 ${o} \u2014 YDB Monitoring`})})(),(()=>{const i=H?`${$("fqdn")}: ${H}`:void 0,e=q?`${$("node")}: ${q}`:void 0,o=q?`${$("pdisk")}: ${Y}`:void 0;return(0,j.jsx)(u.B,{className:T("meta"),loading:B,items:[i,e,G,M,o,Q]})})(),(0,j.jsx)(v.$,{className:T("title"),entityName:$("vdisk"),status:(0,f.XY)(_),id:null===E||void 0===E?void 0:E.StringifiedId}),(0,j.jsx)("div",{className:T("controls"),children:(0,j.jsxs)(r.B,{onConfirmAction:K,onConfirmActionSuccess:U,buttonDisabled:!J||!o,buttonView:"normal",dialogHeader:$("evict-vdisk-dialog-header"),dialogText:$("evict-vdisk-dialog-text"),retryButtonText:$("force-evict-vdisk-button"),withPopover:!0,popoverContent:$("evict-vdisk-not-allowed"),popoverDisabled:o,children:[(0,j.jsx)(s.I,{data:d}),$("evict-vdisk-button")]})}),B?(0,j.jsx)(k.y,{rows:20}):(0,j.jsxs)(t.Fragment,{children:[F?(0,j.jsx)(c.o,{error:F}):null,(0,j.jsx)(D.E,{data:E,className:T("info")}),(0,y.f8)(L)&&(0,y.f8)(h)?(0,j.jsxs)(t.Fragment,{children:[(0,j.jsx)("div",{className:T("storage-title"),children:$("storage")}),(0,j.jsx)(N.z,{groupId:L,nodeId:h,pDiskId:null!==x&&void 0!==x?x:void 0,parentRef:e,viewContext:{groupId:null===L||void 0===L?void 0:L.toString(),nodeId:null===h||void 0===h?void 0:h.toString(),pDiskId:null===x||void 0===x?void 0:x.toString(),vDiskSlotId:null===P||void 0===P?void 0:P.toString()}})]}):null]})]})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/8393.2e643149.chunk.js b/ydb/core/viewer/monitoring/static/js/8393.2e643149.chunk.js new file mode 100644 index 0000000000..8b16b32735 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/8393.2e643149.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[8393],{3685:(e,s,t)=>{t.d(s,{$:()=>d});var a=t(54090),l=t(77506),i=t(33775),n=t(60712);const o=(0,l.cn)("ydb-entity-page-title");function d({entityName:e,status:s=a.m.Grey,id:t,className:l}){return(0,n.jsxs)("div",{className:o(null,l),children:[(0,n.jsx)("span",{className:o("prefix"),children:e}),(0,n.jsx)(i.k,{className:o("icon"),status:s,size:"s"}),t]})}},13758:(e,s,t)=>{t.r(s),t.d(s,{Node:()=>ye});var a=t(59284),l=t(23871),i=t(44992),n=t(61750),o=t(10755),d=t(67087),r=t(3685),c=t(44508),u=t(87184),v=t(77506),m=t(31684),p=t(88655),h=t(12888);var f=t(18863),g=t(25196),x=t(60712);const k=(0,v.cn)("ydb-pool-usage"),j=e=>{let s="green";return e>60&&e<=80?s="yellow":e>80&&(s="red"),s},b=({data:e={}})=>{const{Threads:s,Name:t="Unknown",Usage:a=0}=e,l=a&&s,i=Math.floor(100*a),n=i>100?100:i;return(0,x.jsxs)("div",{className:k(),children:[(0,x.jsxs)("div",{className:k("info"),children:[(0,x.jsx)("div",{className:k("pool-name"),children:t}),l&&(0,x.jsxs)("div",{className:k("value"),children:[(0,x.jsxs)("div",{className:k("percents"),children:[i<1?"<1":i,"%"]}),(0,x.jsxs)("div",{className:k("threads"),children:["(\xd7",s,")"]})]})]}),(0,x.jsx)("div",{className:k("visual"),children:(0,x.jsx)("div",{className:k("usage-line",{type:j(n)}),style:{width:`${n}%`}})})]})};var N=t(15132),I=t(41826),w=t(48372);const y=JSON.parse('{"database":"Database","uptime":"Uptime","version":"Version","dc":"DC","rack":"Rack","links":"Links","la-interval-1m":"1 min","la-interval-5m":"5 min","la-interval-15m":"15 min","developer-ui":"Developer UI","no-data":"No data","title.common-info":"Common info","title.endpoints":"Endpoints","title.roles":"Roles","title.pools":"Pools","title.load-average":"Load average"}'),D=(0,w.g4)("ydb-node-info",{en:y}),S=(0,v.cn)("full-node-viewer"),z=({node:e,className:s})=>{var t,a,l,i,n;const o=function(e){const s=(0,p.E)();if((0,h.X)()){if(null!==s&&void 0!==s&&s.getNodeRef){const t=s.getNodeRef(e);return t?(0,m.Un)(t):void 0}if(null!==e&&void 0!==e&&e.NodeId){const s=(0,m.Kx)(e.NodeId);return(0,m.Un)(s)}}}(e),d=[];null!==e&&void 0!==e&&null!==(t=e.Tenants)&&void 0!==t&&t.length&&d.push({label:D("database"),value:e.Tenants[0]}),d.push({label:D("version"),value:null===e||void 0===e?void 0:e.Version},{label:D("uptime"),value:(0,x.jsx)(I.p,{StartTime:null===e||void 0===e?void 0:e.StartTime,DisconnectTime:null===e||void 0===e?void 0:e.DisconnectTime})},{label:D("dc"),value:(null===e||void 0===e?void 0:e.DataCenterDescription)||(null===e||void 0===e?void 0:e.DC)}),null!==e&&void 0!==e&&e.Rack&&d.push({label:D("rack"),value:null===e||void 0===e?void 0:e.Rack}),o&&d.push({label:D("links"),value:(0,x.jsx)(g.K,{url:o,title:D("developer-ui")})});const r=null===e||void 0===e||null===(a=e.Endpoints)||void 0===a?void 0:a.map((({Name:e,Address:s})=>({label:e,value:s}))),c=null===e||void 0===e||null===(l=e.LoadAveragePercents)||void 0===l?void 0:l.map(((e,s)=>{return{label:(t=s,[D("la-interval-1m"),D("la-interval-5m"),D("la-interval-15m")][t]),value:(0,x.jsx)(N.O,{value:e,percents:!0,colorizeProgress:!0,capacity:100})};var t}));return e?(0,x.jsx)("div",{className:S(null,s),children:(0,x.jsxs)(u.s,{wrap:!0,gap:4,children:[(0,x.jsxs)(u.s,{direction:"column",gap:2,children:[(0,x.jsx)(f.z,{title:D("title.common-info"),className:S("section"),info:d}),r&&r.length?(0,x.jsx)(f.z,{title:D("title.endpoints"),className:S("section"),info:r}):null]}),(0,x.jsxs)(u.s,{direction:"column",gap:2,children:[(0,x.jsxs)("div",{children:[(0,x.jsx)("div",{className:S("section-title"),children:D("title.pools")}),(0,x.jsx)("div",{className:S("section",{pools:!0}),children:null===e||void 0===e||null===(i=e.PoolStats)||void 0===i?void 0:i.map(((e,s)=>(0,x.jsx)(b,{data:e},s)))})]}),(0,x.jsx)(f.z,{title:D("title.load-average"),className:S("section",{average:!0}),info:c})]}),e.Roles&&e.Roles.length?(0,x.jsx)(u.s,{direction:"column",gap:2,children:(0,x.jsxs)("div",{className:S("section"),children:[(0,x.jsx)("div",{className:S("section-title"),children:D("title.roles")}),null===e||void 0===e||null===(n=e.Roles)||void 0===n?void 0:n.map((e=>(0,x.jsx)("div",{className:S("role"),children:e},e)))]})}):null]})}):(0,x.jsx)("div",{className:"error",children:D("no-data")})};var T=t(42655),E=t(44294),A=t(58389),P=t(92459),R=t(67028),C=t(40174),V=t(21334),L=t(78034);const O=e=>{var s;if(null===(s=e.SystemStateInfo)||void 0===s||!s.length)return{};const t=e.SystemStateInfo[0];return(0,L.q1)(t)},M=V.F.injectEndpoints({endpoints:e=>({getNodeInfo:e.query({queryFn:async({nodeId:e},{signal:s})=>{try{const t=await window.api.viewer.getNodeInfo(e,{signal:s});return{data:O(t)}}catch(t){return{error:t}}},providesTags:["All"]}),getNodeStructure:e.query({queryFn:async({nodeId:e},{signal:s})=>{try{return{data:await window.api.viewer.getStorageInfo({nodeId:e},{signal:s})}}catch(t){return{error:t}}},providesTags:["All"]})}),overrideExisting:"throw"});var F=t(90182),$=t(99936),q=t(71635),G=t(29819),U=t(905),X=t.n(U),B=t(52248),K=t(53850),Q=t(56839),_=t(27295);const W=(0,K.Mz)((e=>e),(e=>M.endpoints.getNodeStructure.select({nodeId:e}))),H=(0,K.Mz)((e=>e),((e,s)=>W(s)),((e,s)=>s(e).data)),Y=(0,K.Mz)(((e,s)=>Number(s)),((e,s)=>H(e,s)),((e,s)=>{const t=null===s||void 0===s?void 0:s.StoragePools,a={};null===t||void 0===t||t.forEach((s=>{const t=s.Groups;null===t||void 0===t||t.forEach((t=>{var l;const i=null===(l=t.VDisks)||void 0===l?void 0:l.filter((s=>s.NodeId===e)).map(_.WT);null===i||void 0===i||i.forEach((t=>{var l;const i=(0,Q.U9)(t.VDiskId),n=null===(l=t.PDisk)||void 0===l?void 0:l.PDiskId;a[String(n)]||(a[String(n)]={vDisks:{},...t.PDisk}),a[String(n)].vDisks[i]={...t,PDiskId:n,NodeId:e,StoragePoolName:s.Name}}))}))}));return Object.keys(a).reduce(((e,s)=>{const t=a[s].vDisks,l=Object.keys(t).reduce(((e,s,a)=>(e.push({...t[s],id:s,order:a}),e)),[]);return e[s]={...a[s],vDisks:l},e}),{})}));var J=t(112),Z=t(45720),ee=t(4557),se=t(84476),te=t(99991),ae=t(84375),le=t(33705),ie=t(45659),ne=t(33775),oe=t(67808),de=t(54090),re=t(67375),ce=t(7435),ue=t(76086),ve=t(29971);const me=(0,v.cn)("kv-node-structure");function pe({label:e,value:s,className:t}){return(0,x.jsxs)("span",{className:me("pdisk-title-item",t),children:[e&&(0,x.jsxs)("span",{className:me("pdisk-title-item-label"),children:[e,":"]}),(0,x.jsx)("span",{className:me("pdisk-title-item-value"),children:s})]})}const he=(0,v.cn)("kv-node-structure");var fe=function(e){return e.slotId="VDiskSlotId",e.VDiskState="VDiskState",e.Size="Size",e.Info="Info",e}(fe||{});const ge={VDiskSlotId:"Slot id",VDiskState:"Status",Size:"Size",Info:""};function xe({pDiskId:e,selectedVdiskId:s,nodeId:t,withDeveloperUILink:a}){return[{name:fe.slotId,header:ge[fe.slotId],width:100,render:({row:l})=>{const i=l.VDiskSlotId;let n=null;return(0,ce.f8)(t)&&(0,ce.f8)(e)&&(0,ce.f8)(i)&&(n=(0,m.Wg)({nodeId:t,pDiskId:e,vDiskSlotId:i})),(0,x.jsxs)("div",{className:he("vdisk-id",{selected:l.id===s}),children:[(0,x.jsx)("span",{children:i}),n&&a?(0,x.jsx)(se.$,{size:"s",className:he("external-button",{hidden:!0}),href:n,target:"_blank",title:(0,ve.A)("vdisk.developer-ui-button-title"),children:(0,x.jsx)(te.I,{data:J.A})}):null]})},align:ee.Ay.LEFT},{name:fe.VDiskState,header:ge[fe.VDiskState],width:70,render:({row:e})=>(0,x.jsx)(ne.k,{status:e.VDiskState===re.W.OK?de.m.Green:de.m.Red}),sortAccessor:e=>e.VDiskState===re.W.OK?1:0,align:ee.Ay.CENTER},{name:fe.Size,header:ge[fe.Size],width:170,render:({row:e})=>(0,x.jsx)(N.O,{value:e.AllocatedSize,capacity:Number(e.AllocatedSize)+Number(e.AvailableSize),formatValues:Q.vX,colorizeProgress:!0}),sortAccessor:e=>Number(e.AllocatedSize),align:ee.Ay.CENTER},{name:fe.Info,header:ge[fe.Info],width:70,render:({row:e})=>(0,x.jsx)(ae.A,{placement:["right"],content:(0,x.jsx)(oe.E,{data:e,withTitle:!0,withVDiskPageLink:!0}),tooltipContentClassName:he("vdisk-details"),children:(0,x.jsx)(se.$,{view:"flat-secondary",className:he("vdisk-details-button",{selected:e.id===s}),children:(0,x.jsx)(te.I,{data:Z.A,size:18})})}),sortable:!1}]}function ke({id:e,data:s,selectedVdiskId:t,nodeId:l,unfolded:i}){const n=(0,h.X)(),[o,d]=a.useState(null!==i&&void 0!==i&&i),{TotalSize:r=0,AvailableSize:c=0,Device:u,PDiskId:v,Type:m,vDisks:p}=s,f=Number(r),g=Number(c);return(0,x.jsxs)("div",{className:he("pdisk"),id:e,children:[(0,x.jsxs)("div",{className:he("pdisk-header"),children:[(0,x.jsxs)("div",{className:he("pdisk-title-wrapper"),children:[(0,x.jsx)(ne.k,{status:u}),(0,x.jsx)(pe,{label:"PDiskID",value:v,className:he("pdisk-title-id")}),(0,x.jsx)(pe,{value:m,className:he("pdisk-title-type")}),(0,x.jsx)(N.O,{value:f-g,capacity:f,formatValues:Q.vX,colorizeProgress:!0,className:he("pdisk-title-size")}),(0,x.jsx)(pe,{label:"VDisks",value:p.length})]}),(0,x.jsx)(se.$,{onClick:o?()=>{d(!1)}:()=>{d(!0)},view:"flat-secondary",children:(0,x.jsx)(le.I,{direction:o?"top":"bottom"})})]}),o&&(X()(s)?(0,x.jsx)("div",{children:"No information about PDisk"}):(0,x.jsxs)("div",{children:[(0,x.jsx)(ie.Q,{pDisk:s,nodeId:l,className:he("pdisk-details"),withPDiskPageLink:!0}),(0,x.jsxs)("div",{className:he("vdisks-container"),children:[(0,x.jsx)("div",{className:he("vdisks-header"),children:"VDisks"}),(0,x.jsx)(ee.Ay,{theme:"yandex-cloud",data:p,columns:xe({nodeId:l,pDiskId:v,selectedVdiskId:t,withDeveloperUILink:n}),settings:{...ue.N3,dynamicRender:!1},rowClassName:e=>e.id===t?he("selected-vdisk"):""})]})]}))]})}const je=(0,v.cn)("kv-node-structure");function be({type:e,id:s}){return`${e}-${s}`}const Ne=function({nodeId:e,className:s}){const t=(0,F.N4)((s=>Y(s,e))),[l]=(0,F.Nt)(),{currentData:i,isFetching:n,error:o}=M.useGetNodeStructureQuery({nodeId:e},{pollingInterval:l}),r=n&&void 0===i,[{pdiskId:u,vdiskId:v}]=(0,d.useQueryParams)({pdiskId:d.StringParam,vdiskId:d.StringParam}),m=a.useRef(null),p=a.useRef(!1);return a.useEffect((()=>{if(!X()(t)&&!p.current&&m.current&&u){const s=document.getElementById(be({type:"pdisk",id:u}));let a=0;if(v){var e;const s=null===(e=t[u])||void 0===e?void 0:e.vDisks,l=null===s||void 0===s?void 0:s.find((e=>e.id===v)),i=l?document.querySelector(".data-table"):void 0,n=(null===l||void 0===l?void 0:l.order)||0;i&&(a+=i.offsetTop+40*n)}s&&(m.current.scrollTo({behavior:"smooth",top:a||s.offsetTop}),p.current=!0)}}),[t,u,v]),(0,x.jsxs)("div",{className:je(),ref:m,children:[o?(0,x.jsx)(c.o,{error:o,className:je("error")}):null,(0,x.jsx)("div",{className:s,children:r?(0,x.jsx)(B.a,{size:"m"}):o&&!i?null:(()=>{const s=Object.keys(t);return s.length>0?s.map((s=>(0,x.jsx)(ke,{data:t[s],id:be({type:"pdisk",id:s}),unfolded:u===s,selectedVdiskId:v,nodeId:e},s))):"There is no information about node structure."})()})]})},Ie=(0,v.cn)("node"),we="Storage";function ye(){var e,s;const t=a.useRef(null),l=(0,F.YQ)(),n=(0,o.W5)(P.Ay.node),r=null===n||void 0===n?void 0:n.params.id,u=null===n||void 0===n?void 0:n.params.activeTab,[{database:v}]=(0,d.useQueryParams)(G.Gi),m=G.IK.parse(u),[p]=(0,F.Nt)(),h=r?{nodeId:r}:i.hT,{currentData:f,isLoading:g,error:k}=M.useGetNodeInfoQuery(h,{pollingInterval:p}),j=(0,R.Pm)(),b=(0,R.c2)(),N=g||!j,I=null===f||void 0===f||null===(e=f.Roles)||void 0===e?void 0:e.find((e=>e===we)),{activeTab:w,nodeTabs:y}=a.useMemo((()=>{var e;let s=I?G.GX:G.GX.filter((e=>"storage"!==e.id));b&&(s=s.filter((e=>"structure"!==e.id)));return{activeTab:null!==(e=s.find((({id:e})=>e===m)))&&void 0!==e?e:s[0],nodeTabs:s}}),[I,b,m]),D=(null===f||void 0===f||null===(s=f.Tenants)||void 0===s?void 0:s[0])||(null===v||void 0===v?void 0:v.toString());return a.useEffect((()=>{g||l((0,C.g)("node",{tenantName:D,nodeRole:I?"Storage":"Compute",nodeId:r}))}),[l,D,r,g,I]),(0,x.jsxs)("div",{className:Ie(null),ref:t,children:[(0,x.jsx)(De,{node:f,activeTabTitle:w.title}),(0,x.jsx)(Se,{node:f,loading:N}),(0,x.jsx)(ze,{node:f}),k?(0,x.jsx)(c.o,{error:k,className:Ie("error")}):null,(0,x.jsx)(Te,{node:f,loading:N}),r?(0,x.jsx)(Ee,{nodeId:r,tenantName:D,activeTabId:w.id,tabs:y,parentContainer:t}):null]})}function De({node:e,activeTabTitle:s}){const t=null!==e&&void 0!==e&&e.Host?e.Host:(0,ve.A)("node");return(0,x.jsx)(n.mg,{titleTemplate:`%s \u2014 ${t} \u2014 YDB Monitoring`,defaultTitle:`${t} \u2014 YDB Monitoring`,children:(0,x.jsx)("title",{children:s})})}function Se({node:e,loading:s}){const t=null!==e&&void 0!==e&&e.Host?`${(0,ve.A)("fqdn")}: ${e.Host}`:void 0,a=null!==e&&void 0!==e&&e.DC?`${(0,ve.A)("dc")}: ${e.DC}`:void 0;return(0,x.jsx)(A.B,{loading:s,items:[t,a],className:Ie("meta")})}function ze({node:e}){return(0,x.jsx)(r.$,{entityName:(0,ve.A)("node"),status:null===e||void 0===e?void 0:e.SystemState,id:null===e||void 0===e?void 0:e.NodeId,className:Ie("title")})}function Te({node:e,loading:s}){return s?(0,x.jsx)(T.y,{className:Ie("info"),rows:10}):(0,x.jsx)(z,{node:e,className:Ie("info")})}function Ee({nodeId:e,tenantName:s,activeTabId:t,tabs:i,parentContainer:n}){return(0,x.jsxs)(a.Fragment,{children:[(0,x.jsx)("div",{className:Ie("tabs"),children:(0,x.jsx)(l.t,{size:"l",items:i,activeTab:t,wrapTo:({id:t},a)=>{const l=(0,G.vI)(e,{database:s},t);return(0,x.jsx)(E.E,{to:l,children:a},t)}})}),(()=>{switch(t){case"storage":return(0,x.jsx)($.z,{nodeId:e,parentRef:n,viewContext:{nodeId:e}});case"tablets":return(0,x.jsx)(q.C,{nodeId:e,database:s});case"structure":return(0,x.jsx)(Ne,{nodeId:e});default:return!1}})()]})}},18677:(e,s,t)=>{t.d(s,{A:()=>l});var a=t(59284);const l=e=>a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14M6.53 5.47a.75.75 0 0 0-1.06 1.06L6.94 8 5.47 9.47a.75.75 0 1 0 1.06 1.06L8 9.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L9.06 8l1.47-1.47a.75.75 0 1 0-1.06-1.06L8 6.94z",clipRule:"evenodd"}))},42655:(e,s,t)=>{t.d(s,{y:()=>c});var a=t(59284),l=t(89169),i=t(77506),n=t(66781),o=t(60712);const d=(0,i.cn)("ydb-info-viewer-skeleton"),r=()=>(0,o.jsxs)("div",{className:d("label"),children:[(0,o.jsx)(l.E,{className:d("label__text")}),(0,o.jsx)("div",{className:d("label__dots")})]}),c=({rows:e=8,className:s,delay:t=600})=>{const[i]=(0,n.y)(t);let c=(0,o.jsxs)(a.Fragment,{children:[(0,o.jsx)(r,{}),(0,o.jsx)(l.E,{className:d("value")})]});return i||(c=null),(0,o.jsx)("div",{className:d(null,s),children:[...new Array(e)].map(((e,s)=>(0,o.jsx)("div",{className:d("row"),children:c},`skeleton-row-${s}`)))})}},45659:(e,s,t)=>{t.d(s,{Q:()=>f});var a=t(87184),l=t(92459),i=t(7435),n=t(46549),o=t(56839),d=t(31684),r=t(12888),c=t(18863),u=t(25196),v=t(15132),m=t(33775),p=t(50672),h=t(60712);function f({pDisk:e,nodeId:s,withPDiskPageLink:t,className:f}){const g=(0,r.X)(),[x,k,j,b]=function({pDisk:e,nodeId:s,withPDiskPageLink:t,isUserAllowedToMakeChanges:r}){const{PDiskId:c,Path:f,Guid:g,Category:x,Type:k,Device:j,Realtime:b,State:N,SerialNumber:I,TotalSize:w,AllocatedSize:y,StatusV2:D,NumActiveSlots:S,ExpectedSlotCount:z,LogUsedSize:T,LogTotalSize:E,SystemSize:A,SharedWithOs:P}=e||{},R=[];(0,i.f8)(x)&&R.push({label:(0,p.D)("type"),value:k}),(0,i.f8)(f)&&R.push({label:(0,p.D)("path"),value:f}),(0,i.f8)(g)&&R.push({label:(0,p.D)("guid"),value:g}),I&&R.push({label:(0,p.D)("serial-number"),value:I}),P&&R.push({label:(0,p.D)("shared-with-os"),value:(0,p.D)("yes")});const C=[];(0,i.f8)(D)&&C.push({label:(0,p.D)("drive-status"),value:D}),(0,i.f8)(N)&&C.push({label:(0,p.D)("state"),value:N}),(0,i.f8)(j)&&C.push({label:(0,p.D)("device"),value:(0,h.jsx)(m.k,{status:j})}),(0,i.f8)(b)&&C.push({label:(0,p.D)("realtime"),value:(0,h.jsx)(m.k,{status:b})});const V=[];V.push({label:(0,p.D)("space"),value:(0,h.jsx)(v.O,{value:y,capacity:w,formatValues:o.vX,colorizeProgress:!0})}),(0,i.f8)(S)&&(0,i.f8)(z)&&V.push({label:(0,p.D)("slots"),value:(0,h.jsx)(v.O,{value:S,capacity:z})}),(0,i.f8)(T)&&(0,i.f8)(E)&&V.push({label:(0,p.D)("log-size"),value:(0,h.jsx)(v.O,{value:T,capacity:E,formatValues:o.vX})}),(0,i.f8)(A)&&V.push({label:(0,p.D)("system-size"),value:(0,n.z3)({value:A})});const L=[];if((t||r)&&(0,i.f8)(c)&&(0,i.f8)(s)){const e=(0,l.Ck)(c,s),i=(0,d.ar)({nodeId:s,pDiskId:c});L.push({label:(0,p.D)("links"),value:(0,h.jsxs)(a.s,{wrap:"wrap",gap:2,children:[t&&(0,h.jsx)(u.K,{title:(0,p.D)("pdisk-page"),url:e,external:!1}),r&&(0,h.jsx)(u.K,{title:(0,p.D)("developer-ui"),url:i})]})})}return[R,C,V,L]}({pDisk:e,nodeId:s,withPDiskPageLink:t,isUserAllowedToMakeChanges:g});return(0,h.jsxs)(a.s,{className:f,gap:2,direction:"row",wrap:!0,children:[(0,h.jsxs)(a.s,{direction:"column",gap:2,width:500,children:[(0,h.jsx)(c.z,{info:x,renderEmptyState:()=>null}),(0,h.jsx)(c.z,{info:j,renderEmptyState:()=>null})]}),(0,h.jsxs)(a.s,{direction:"column",gap:2,width:500,children:[(0,h.jsx)(c.z,{info:k,renderEmptyState:()=>null}),(0,h.jsx)(c.z,{info:b,renderEmptyState:()=>null})]})]})}},58389:(e,s,t)=>{t.d(s,{B:()=>u});var a=t(87184),l=t(77506),i=t(90053),n=t(70043),o=t(60712);const d=(0,l.cn)("ydb-page-meta"),r="\xa0\xa0\xb7\xa0\xa0";function c({items:e,loading:s}){return(0,o.jsx)("div",{className:d("info"),children:s?(0,o.jsx)(n.E,{className:d("skeleton")}):e.filter((e=>Boolean(e))).join(r)})}function u({className:e,...s}){return(0,o.jsxs)(a.s,{gap:1,alignItems:"center",justifyContent:"space-between",className:d(null,e),children:[(0,o.jsx)(c,{...s}),(0,o.jsx)(i.E,{})]})}},67808:(e,s,t)=>{t.d(s,{E:()=>k});t(59284);var a=t(87184),l=t(92459),i=t(7435),n=t(77506),o=t(56839),d=t(31684),r=t(7187),c=t(12888),u=t(41650),v=t(60073),m=t(25196),p=t(15132),h=t(33775),f=t(39110),g=t(60712);const x=(0,n.cn)("ydb-vdisk-info");function k({data:e,withVDiskPageLink:s,withTitle:t,...n}){var r,x;const k=(0,c.X)(),{AllocatedSize:b,DiskSpace:N,FrontQueues:I,Guid:w,Replicated:y,VDiskState:D,VDiskSlotId:S,Kind:z,SatisfactionRank:T,AvailableSize:E,HasUnreadableBlobs:A,IncarnationGuid:P,InstanceGuid:R,StoragePoolName:C,ReadThroughput:V,WriteThroughput:L,PDiskId:O,NodeId:M}=e||{},F=[];var $,q;((0,i.f8)(S)&&F.push({label:(0,f.r)("slot-id"),value:S}),(0,i.f8)(C)&&F.push({label:(0,f.r)("pool-name"),value:C}),(0,i.f8)(D)&&F.push({label:(0,f.r)("state-status"),value:D}),Number(b)>=0&&Number(E)>=0&&F.push({label:(0,f.r)("size"),value:(0,g.jsx)(p.O,{value:b,capacity:Number(b)+Number(E),formatValues:o.vX,colorizeProgress:!0})}),(0,i.f8)(z)&&F.push({label:(0,f.r)("kind"),value:z}),(0,i.f8)(w)&&F.push({label:(0,f.r)("guid"),value:w}),(0,i.f8)(P)&&F.push({label:(0,f.r)("incarnation-guid"),value:P}),(0,i.f8)(R)&&F.push({label:(0,f.r)("instance-guid"),value:R}),(0,i.f8)(y)&&F.push({label:(0,f.r)("replication-status"),value:y?(0,f.r)("yes"):(0,f.r)("no")}),(0,i.f8)(N)&&F.push({label:(0,f.r)("space-status"),value:(0,g.jsx)(h.k,{status:N})}),(0,i.f8)(null===T||void 0===T||null===(r=T.FreshRank)||void 0===r?void 0:r.Flag))&&F.push({label:(0,f.r)("fresh-rank-satisfaction"),value:(0,g.jsx)(h.k,{status:null===T||void 0===T||null===($=T.FreshRank)||void 0===$?void 0:$.Flag})});(0,i.f8)(null===T||void 0===T||null===(x=T.LevelRank)||void 0===x?void 0:x.Flag)&&F.push({label:(0,f.r)("level-rank-satisfaction"),value:(0,g.jsx)(h.k,{status:null===T||void 0===T||null===(q=T.LevelRank)||void 0===q?void 0:q.Flag})});(0,i.f8)(I)&&F.push({label:(0,f.r)("front-queues"),value:(0,g.jsx)(h.k,{status:I})}),(0,i.f8)(A)&&F.push({label:(0,f.r)("has-unreadable-blobs"),value:A?(0,f.r)("yes"):(0,f.r)("no")}),(0,i.f8)(V)&&F.push({label:(0,f.r)("read-throughput"),value:(0,u.O4)(V)}),(0,i.f8)(L)&&F.push({label:(0,f.r)("write-throughput"),value:(0,u.O4)(L)});if((0,i.f8)(O)&&(0,i.f8)(M)&&(0,i.f8)(S)){const e=[];if(s){const s=(0,l.yX)(S,O,M);e.push((0,g.jsx)(m.K,{title:(0,f.r)("vdisk-page"),url:s,external:!1},s))}if(k){const s=(0,d.Wg)({nodeId:M,pDiskId:O,vDiskSlotId:S});e.push((0,g.jsx)(m.K,{title:(0,f.r)("developer-ui"),url:s},s))}e.length&&F.push({label:(0,f.r)("links"),value:(0,g.jsx)(a.s,{wrap:"wrap",gap:2,children:e})})}const G=e&&t?(0,g.jsx)(j,{data:e}):null;return(0,g.jsx)(v.z_,{info:F,title:G,...n})}function j({data:e}){return(0,g.jsxs)("div",{className:x("title"),children:[(0,f.r)("vdiks-title"),(0,g.jsx)(h.k,{status:(0,r.XY)(e.Severity)}),e.StringifiedId]})}},70043:(e,s,t)=>{t.d(s,{E:()=>n});var a=t(89169),l=t(66781),i=t(60712);const n=({delay:e=600,className:s})=>{const[t]=(0,l.y)(e);return t?(0,i.jsx)(a.E,{className:s}):null}},71635:(e,s,t)=>{t.d(s,{C:()=>g});var a=t(44992),l=t(53850),i=t(62060),n=t.n(i),o=t(21334),d=t(24600);const r=o.F.injectEndpoints({endpoints:e=>({getTabletsInfo:e.query({queryFn:async(e,{signal:s})=>{try{return{data:await window.api.viewer.getTabletsInfo(e,{signal:s})}}catch(t){return{error:t}}},providesTags:["All",{type:"Tablet",id:"LIST"}]})}),overrideExisting:"throw"}),c=(0,l.Mz)((e=>e),(e=>r.endpoints.getTabletsInfo.select(e)),{argsMemoize:l.i5,argsMemoizeOptions:{equalityCheck:n()}}),u=(0,l.Mz)((e=>e),((e,s)=>c(s)),((e,s)=>s(e).data)),v=(0,l.Mz)(((e,s)=>u(e,s)),(e=>(0,d.K)(e)),((e,s)=>null!==e&&void 0!==e&&e.TabletStateInfo?s?e.TabletStateInfo.map((e=>{var t;const a=void 0===e.NodeId||null===(t=s.get(e.NodeId))||void 0===t?void 0:t.Host;return{...e,fqdn:a}})):e.TabletStateInfo:[]));var m=t(7435),p=t(90182),h=t(88616),f=t(60712);function g({nodeId:e,path:s,database:t}){const[l]=(0,p.Nt)();let i={};(0,m.f8)(e)?i={nodeId:e,database:t}:s&&(i={path:s,database:t});const{isLoading:n,error:o}=r.useGetTabletsInfoQuery(0===Object.keys(i).length?a.hT:i,{pollingInterval:l}),d=(0,p.N4)((e=>v(e,i)));return(0,f.jsx)(h.Q,{tablets:d,database:t,loading:n,error:o})}},74321:(e,s,t)=>{t.d(s,{S:()=>r});var a=t(59284),l=t(64222),i=t(46898);function n(e){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 17",width:"16",height:"16",fill:"currentColor"},e),a.createElement("path",{d:"M4 7h9v3H4z"}))}function o(e){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 10",width:"16",height:"16",fill:"currentColor"},e),a.createElement("path",{d:"M.49 5.385l1.644-1.644 4.385 4.385L4.874 9.77.49 5.385zm4.384 1.096L10.356 1 12 2.644 6.519 8.126 4.874 6.48v.001z"}))}const d=(0,t(69220).om)("checkbox"),r=a.forwardRef((function(e,s){const{size:t="m",indeterminate:r,disabled:c=!1,content:u,children:v,title:m,style:p,className:h,qa:f}=e,{checked:g,inputProps:x}=(0,l.v)(e),k=u||v,j=a.createElement("span",{className:d("indicator")},a.createElement("span",{className:d("icon"),"aria-hidden":!0},r?a.createElement(n,{className:d("icon-svg",{type:"dash"})}):a.createElement(o,{className:d("icon-svg",{type:"tick"})})),a.createElement("input",Object.assign({},x,{className:d("control")})),a.createElement("span",{className:d("outline")}));return a.createElement(i.m,{ref:s,title:m,style:p,size:t,disabled:c,className:d({size:t,disabled:c,indeterminate:r,checked:g},h),qa:f,control:j},k)}))},76938:(e,s,t)=>{t.d(s,{A:()=>l});var a=t(59284);const l=e=>a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 1.5a6.5 6.5 0 1 1-6.445 7.348.75.75 0 1 1 1.487-.194A5.001 5.001 0 1 0 4.43 4.5h1.32a.75.75 0 0 1 0 1.5h-3A.75.75 0 0 1 2 5.25v-3a.75.75 0 0 1 1.5 0v1.06A6.48 6.48 0 0 1 8 1.5",clipRule:"evenodd"}))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/8452.3bfa9018.chunk.js b/ydb/core/viewer/monitoring/static/js/8452.3bfa9018.chunk.js new file mode 100644 index 0000000000..11c27555a4 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/8452.3bfa9018.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[8452],{1431:(e,n,t)=>{t.d(n,{A:()=>s});var a=t(46346);const s=t.n(a)()},29866:(e,n,t)=>{t.d(n,{A:()=>s});var a=t(50683);const s=t.n(a)()},30249:(e,n,t)=>{t.d(n,{A:()=>s});var a=t(32098);const s=t.n(a)()},32098:(e,n,t)=>{var a=t(51572);function s(e){e.register(a),function(e){var n=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,t=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],a=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,s=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:n,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:t,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:a,operator:s,punctuation:i};var r={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},o=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:r}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:r}}];e.languages.insertBefore("php","variable",{string:o,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:n,string:o,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:t,number:a,operator:s,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(n){if(/<\?/.test(n.code)){e.languages["markup-templating"].buildPlaceholders(n,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)}})),e.hooks.add("after-tokenize",(function(n){e.languages["markup-templating"].tokenizePlaceholders(n,"php")}))}(e)}e.exports=s,s.displayName="php",s.aliases=[]},37558:e=>{function n(e){e.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.python["string-interpolation"].inside.interpolation.inside.rest=e.languages.python,e.languages.py=e.languages.python}e.exports=n,n.displayName="python",n.aliases=["py"]},46306:(e,n,t)=>{t.d(n,{A:()=>s});var a=t(90323);const s=t.n(a)()},46346:e=>{function n(e){e.languages.go=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),e.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete e.languages.go["class-name"]}e.exports=n,n.displayName="go",n.aliases=[]},51572:e=>{function n(e){!function(e){function n(e,n){return"___"+e.toUpperCase()+n+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(t,a,s,i){if(t.language===a){var r=t.tokenStack=[];t.code=t.code.replace(s,(function(e){if("function"===typeof i&&!i(e))return e;for(var s,o=r.length;-1!==t.code.indexOf(s=n(a,o));)++o;return r[o]=e,s})),t.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(t,a){if(t.language===a&&t.tokenStack){t.grammar=e.languages[a];var s=0,i=Object.keys(t.tokenStack);!function r(o){for(var l=0;l<o.length&&!(s>=i.length);l++){var c=o[l];if("string"===typeof c||c.content&&"string"===typeof c.content){var d=i[s],p=t.tokenStack[d],u="string"===typeof c?c:c.content,b=n(a,d),g=u.indexOf(b);if(g>-1){++s;var f=u.substring(0,g),m=new e.Token(a,e.tokenize(p,t.grammar),"language-"+a,p),h=u.substring(g+b.length),_=[];f&&_.push.apply(_,r([f])),_.push(m),h&&_.push.apply(_,r([h])),"string"===typeof c?o.splice.apply(o,[l,1].concat(_)):c.content=_}}else c.content&&r(c.content)}return o}(t.tokens)}}}})}(e)}e.exports=n,n.displayName="markupTemplating",n.aliases=[]},53950:e=>{function n(e){!function(e){var n="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",t={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},a={bash:t,environment:{pattern:RegExp("\\$"+n),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+n),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+n),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:a},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:t}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:a},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:a.entity}}],environment:{pattern:RegExp("\\$?"+n),alias:"constant"},variable:a.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},t.inside=e.languages.bash;for(var s=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=a.variable[1].inside,r=0;r<s.length;r++)i[s[r]]=e.languages.bash[s[r]];e.languages.shell=e.languages.bash}(e)}e.exports=n,n.displayName="bash",n.aliases=["shell"]},56421:(e,n,t)=>{t.d(n,{A:()=>s});var a=t(89488);const s=t.n(a)()},80719:(e,n,t)=>{t.d(n,{A:()=>s});var a=t(53950);const s=t.n(a)()},81243:(e,n,t)=>{t.d(n,{A:()=>s});var a=t(37558);const s=t.n(a)()},81571:(e,n,t)=>{t.d(n,{A:()=>s});var a=t(93292);const s=t.n(a)()},89343:e=>{function n(e){e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},e.languages.c.string],char:e.languages.c.char,comment:e.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:e.languages.c}}}}),e.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete e.languages.c.boolean}e.exports=n,n.displayName="c",n.aliases=[]},89488:e=>{function n(e){!function(e){var n=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,t=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,a={pattern:RegExp(t+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[a,{pattern:RegExp(t+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:a.inside}],keyword:n,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":a,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,(function(){return n.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(e)}e.exports=n,n.displayName="java",n.aliases=[]},90323:e=>{function n(e){!function(e){function n(e,n){return e.replace(/<<(\d+)>>/g,(function(e,t){return"(?:"+n[+t]+")"}))}function t(e,t,a){return RegExp(n(e,t),a||"")}function a(e,n){for(var t=0;t<n;t++)e=e.replace(/<<self>>/g,(function(){return"(?:"+e+")"}));return e.replace(/<<self>>/g,"[^\\s\\S]")}var s="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",r="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",o="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function l(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var c=l(i),d=RegExp(l(s+" "+i+" "+r+" "+o)),p=l(i+" "+r+" "+o),u=l(s+" "+i+" "+o),b=a(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),g=a(/\((?:[^()]|<<self>>)*\)/.source,2),f=/@?\b[A-Za-z_]\w*\b/.source,m=n(/<<0>>(?:\s*<<1>>)?/.source,[f,b]),h=n(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[p,m]),_=/\[\s*(?:,\s*)*\]/.source,y=n(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[h,_]),k=n(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[b,g,_]),w=n(/\(<<0>>+(?:,<<0>>+)+\)/.source,[k]),S=n(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[w,h,_]),E={keyword:d,punctuation:/[<>()?,.:[\]]/},v=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,A=/"(?:\\.|[^\\"\r\n])*"/.source,x=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:t(/(^|[^$\\])<<0>>/.source,[x]),lookbehind:!0,greedy:!0},{pattern:t(/(^|[^@$\\])<<0>>/.source,[A]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:t(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[h]),lookbehind:!0,inside:E},{pattern:t(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[f,S]),lookbehind:!0,inside:E},{pattern:t(/(\busing\s+)<<0>>(?=\s*=)/.source,[f]),lookbehind:!0},{pattern:t(/(\b<<0>>\s+)<<1>>/.source,[c,m]),lookbehind:!0,inside:E},{pattern:t(/(\bcatch\s*\(\s*)<<0>>/.source,[h]),lookbehind:!0,inside:E},{pattern:t(/(\bwhere\s+)<<0>>/.source,[f]),lookbehind:!0},{pattern:t(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[y]),lookbehind:!0,inside:E},{pattern:t(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[S,u,f]),inside:E}],keyword:d,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:t(/([(,]\s*)<<0>>(?=\s*:)/.source,[f]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:t(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[f]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:t(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[g]),lookbehind:!0,alias:"class-name",inside:E},"return-type":{pattern:t(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[S,h]),inside:E,alias:"class-name"},"constructor-invocation":{pattern:t(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[S]),lookbehind:!0,inside:E,alias:"class-name"},"generic-method":{pattern:t(/<<0>>\s*<<1>>(?=\s*\()/.source,[f,b]),inside:{function:t(/^<<0>>/.source,[f]),generic:{pattern:RegExp(b),alias:"class-name",inside:E}}},"type-list":{pattern:t(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[c,m,f,S,d.source,g,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:t(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[m,g]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:d,"class-name":{pattern:RegExp(S),greedy:!0,inside:E},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var T=A+"|"+v,I=n(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[T]),N=a(n(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[I]),2),O=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,R=n(/<<0>>(?:\s*\(<<1>>*\))?/.source,[h,N]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:t(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[O,R]),lookbehind:!0,greedy:!0,inside:{target:{pattern:t(/^<<0>>(?=\s*:)/.source,[O]),alias:"keyword"},"attribute-arguments":{pattern:t(/\(<<0>>*\)/.source,[N]),inside:e.languages.csharp},"class-name":{pattern:RegExp(h),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var z=/:[^}\r\n]+/.source,$=a(n(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[I]),2),D=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[$,z]),P=a(n(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[T]),2),L=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[P,z]);function B(n,a){return{interpolation:{pattern:t(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[n]),lookbehind:!0,inside:{"format-string":{pattern:t(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[a,z]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:t(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[D]),lookbehind:!0,greedy:!0,inside:B(D,$)},{pattern:t(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[L]),lookbehind:!0,greedy:!0,inside:B(L,P)}],char:{pattern:RegExp(v),greedy:!0}}),e.languages.dotnet=e.languages.cs=e.languages.csharp}(e)}e.exports=n,n.displayName="csharp",n.aliases=["dotnet","cs"]},93292:(e,n,t)=>{var a=t(89343);function s(e){e.register(a),function(e){var n=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,t=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return n.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return n.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:n,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return t}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(e)}e.exports=s,s.displayName="cpp",s.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/8452.551c16c8.chunk.js b/ydb/core/viewer/monitoring/static/js/8452.551c16c8.chunk.js deleted file mode 100644 index 249eb1d730..0000000000 --- a/ydb/core/viewer/monitoring/static/js/8452.551c16c8.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[8452],{80719:(e,n,t)=>{t.d(n,{A:()=>s});var a=t(53950);const s=t.n(a)()},81571:(e,n,t)=>{t.d(n,{A:()=>s});var a=t(93292);const s=t.n(a)()},46306:(e,n,t)=>{t.d(n,{A:()=>s});var a=t(90323);const s=t.n(a)()},1431:(e,n,t)=>{t.d(n,{A:()=>s});var a=t(46346);const s=t.n(a)()},56421:(e,n,t)=>{t.d(n,{A:()=>s});var a=t(89488);const s=t.n(a)()},29866:(e,n,t)=>{t.d(n,{A:()=>s});var a=t(50683);const s=t.n(a)()},30249:(e,n,t)=>{t.d(n,{A:()=>s});var a=t(32098);const s=t.n(a)()},81243:(e,n,t)=>{t.d(n,{A:()=>s});var a=t(37558);const s=t.n(a)()},53950:e=>{function n(e){!function(e){var n="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",t={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},a={bash:t,environment:{pattern:RegExp("\\$"+n),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+n),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+n),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:a},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:t}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:a},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:a.entity}}],environment:{pattern:RegExp("\\$?"+n),alias:"constant"},variable:a.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},t.inside=e.languages.bash;for(var s=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=a.variable[1].inside,r=0;r<s.length;r++)i[s[r]]=e.languages.bash[s[r]];e.languages.shell=e.languages.bash}(e)}e.exports=n,n.displayName="bash",n.aliases=["shell"]},89343:e=>{function n(e){e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},e.languages.c.string],char:e.languages.c.char,comment:e.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:e.languages.c}}}}),e.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete e.languages.c.boolean}e.exports=n,n.displayName="c",n.aliases=[]},93292:(e,n,t)=>{var a=t(89343);function s(e){e.register(a),function(e){var n=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,t=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return n.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return n.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:n,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return t}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(e)}e.exports=s,s.displayName="cpp",s.aliases=[]},90323:e=>{function n(e){!function(e){function n(e,n){return e.replace(/<<(\d+)>>/g,(function(e,t){return"(?:"+n[+t]+")"}))}function t(e,t,a){return RegExp(n(e,t),a||"")}function a(e,n){for(var t=0;t<n;t++)e=e.replace(/<<self>>/g,(function(){return"(?:"+e+")"}));return e.replace(/<<self>>/g,"[^\\s\\S]")}var s="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",r="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",o="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function l(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var c=l(i),d=RegExp(l(s+" "+i+" "+r+" "+o)),p=l(i+" "+r+" "+o),u=l(s+" "+i+" "+o),b=a(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),g=a(/\((?:[^()]|<<self>>)*\)/.source,2),f=/@?\b[A-Za-z_]\w*\b/.source,m=n(/<<0>>(?:\s*<<1>>)?/.source,[f,b]),h=n(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[p,m]),_=/\[\s*(?:,\s*)*\]/.source,y=n(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[h,_]),k=n(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[b,g,_]),w=n(/\(<<0>>+(?:,<<0>>+)+\)/.source,[k]),S=n(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[w,h,_]),E={keyword:d,punctuation:/[<>()?,.:[\]]/},v=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,A=/"(?:\\.|[^\\"\r\n])*"/.source,x=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:t(/(^|[^$\\])<<0>>/.source,[x]),lookbehind:!0,greedy:!0},{pattern:t(/(^|[^@$\\])<<0>>/.source,[A]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:t(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[h]),lookbehind:!0,inside:E},{pattern:t(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[f,S]),lookbehind:!0,inside:E},{pattern:t(/(\busing\s+)<<0>>(?=\s*=)/.source,[f]),lookbehind:!0},{pattern:t(/(\b<<0>>\s+)<<1>>/.source,[c,m]),lookbehind:!0,inside:E},{pattern:t(/(\bcatch\s*\(\s*)<<0>>/.source,[h]),lookbehind:!0,inside:E},{pattern:t(/(\bwhere\s+)<<0>>/.source,[f]),lookbehind:!0},{pattern:t(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[y]),lookbehind:!0,inside:E},{pattern:t(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[S,u,f]),inside:E}],keyword:d,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:t(/([(,]\s*)<<0>>(?=\s*:)/.source,[f]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:t(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[f]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:t(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[g]),lookbehind:!0,alias:"class-name",inside:E},"return-type":{pattern:t(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[S,h]),inside:E,alias:"class-name"},"constructor-invocation":{pattern:t(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[S]),lookbehind:!0,inside:E,alias:"class-name"},"generic-method":{pattern:t(/<<0>>\s*<<1>>(?=\s*\()/.source,[f,b]),inside:{function:t(/^<<0>>/.source,[f]),generic:{pattern:RegExp(b),alias:"class-name",inside:E}}},"type-list":{pattern:t(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[c,m,f,S,d.source,g,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:t(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[m,g]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:d,"class-name":{pattern:RegExp(S),greedy:!0,inside:E},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var T=A+"|"+v,I=n(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[T]),N=a(n(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[I]),2),O=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,R=n(/<<0>>(?:\s*\(<<1>>*\))?/.source,[h,N]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:t(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[O,R]),lookbehind:!0,greedy:!0,inside:{target:{pattern:t(/^<<0>>(?=\s*:)/.source,[O]),alias:"keyword"},"attribute-arguments":{pattern:t(/\(<<0>>*\)/.source,[N]),inside:e.languages.csharp},"class-name":{pattern:RegExp(h),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var z=/:[^}\r\n]+/.source,$=a(n(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[I]),2),D=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[$,z]),P=a(n(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[T]),2),L=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[P,z]);function B(n,a){return{interpolation:{pattern:t(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[n]),lookbehind:!0,inside:{"format-string":{pattern:t(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[a,z]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:t(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[D]),lookbehind:!0,greedy:!0,inside:B(D,$)},{pattern:t(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[L]),lookbehind:!0,greedy:!0,inside:B(L,P)}],char:{pattern:RegExp(v),greedy:!0}}),e.languages.dotnet=e.languages.cs=e.languages.csharp}(e)}e.exports=n,n.displayName="csharp",n.aliases=["dotnet","cs"]},46346:e=>{function n(e){e.languages.go=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),e.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete e.languages.go["class-name"]}e.exports=n,n.displayName="go",n.aliases=[]},89488:e=>{function n(e){!function(e){var n=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,t=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,a={pattern:RegExp(t+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[a,{pattern:RegExp(t+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:a.inside}],keyword:n,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":a,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,(function(){return n.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(e)}e.exports=n,n.displayName="java",n.aliases=[]},51572:e=>{function n(e){!function(e){function n(e,n){return"___"+e.toUpperCase()+n+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(t,a,s,i){if(t.language===a){var r=t.tokenStack=[];t.code=t.code.replace(s,(function(e){if("function"===typeof i&&!i(e))return e;for(var s,o=r.length;-1!==t.code.indexOf(s=n(a,o));)++o;return r[o]=e,s})),t.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(t,a){if(t.language===a&&t.tokenStack){t.grammar=e.languages[a];var s=0,i=Object.keys(t.tokenStack);!function r(o){for(var l=0;l<o.length&&!(s>=i.length);l++){var c=o[l];if("string"===typeof c||c.content&&"string"===typeof c.content){var d=i[s],p=t.tokenStack[d],u="string"===typeof c?c:c.content,b=n(a,d),g=u.indexOf(b);if(g>-1){++s;var f=u.substring(0,g),m=new e.Token(a,e.tokenize(p,t.grammar),"language-"+a,p),h=u.substring(g+b.length),_=[];f&&_.push.apply(_,r([f])),_.push(m),h&&_.push.apply(_,r([h])),"string"===typeof c?o.splice.apply(o,[l,1].concat(_)):c.content=_}}else c.content&&r(c.content)}return o}(t.tokens)}}}})}(e)}e.exports=n,n.displayName="markupTemplating",n.aliases=[]},32098:(e,n,t)=>{var a=t(51572);function s(e){e.register(a),function(e){var n=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,t=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],a=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,s=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:n,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:t,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:a,operator:s,punctuation:i};var r={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},o=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:r}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:r}}];e.languages.insertBefore("php","variable",{string:o,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:n,string:o,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:t,number:a,operator:s,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(n){if(/<\?/.test(n.code)){e.languages["markup-templating"].buildPlaceholders(n,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)}})),e.hooks.add("after-tokenize",(function(n){e.languages["markup-templating"].tokenizePlaceholders(n,"php")}))}(e)}e.exports=s,s.displayName="php",s.aliases=[]},37558:e=>{function n(e){e.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.python["string-interpolation"].inside.interpolation.inside.rest=e.languages.python,e.languages.py=e.languages.python}e.exports=n,n.displayName="python",n.aliases=["py"]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/856.36f195a5.chunk.js b/ydb/core/viewer/monitoring/static/js/856.36f195a5.chunk.js new file mode 100644 index 0000000000..bd6d4b08f7 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/856.36f195a5.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[856],{2680:(e,t,n)=>{var a=n(43665),s=n(81061),l=n(28293),r=n(19305);e.exports=function(e,t){return function(n,i){var c=r(n)?a:s,o=t?t():{};return c(n,e,l(i,2),o)}}},6170:(e,t,n)=>{"use strict";n.d(t,{B:()=>o});var a=n(59284),s=n(73633),l=n(84375),r=n(99991);const i=(0,n(98192).om)("help-popover"),c=16;function o(e){var t;return a.createElement(l.A,Object.assign({},e,{className:i(null,e.className)}),a.createElement("button",Object.assign({ref:e.buttonRef,type:"button"},e.buttonProps,{className:i("button",null===(t=e.buttonProps)||void 0===t?void 0:t.className)}),a.createElement(r.I,{data:s.A,size:c})))}},18143:(e,t,n)=>{"use strict";n.d(t,{k:()=>u});var a=n(59284);const s=(0,n(69220).om)("progress");function l(e){const{text:t,offset:n=0}=e;return t?a.createElement("div",{className:s("text-inner"),style:{transform:`translateX(calc(var(--g-flow-direction) * ${-n}%))`}},t):null}function r({item:e}){const{value:t,color:n,className:l,theme:r,title:i,content:c,loading:o}=e,m={loading:o};return"undefined"===typeof n&&(m.theme=r||"default"),Number.isFinite(t)?a.createElement("div",{className:s("item",m,l),style:{width:`${t}%`,backgroundColor:n},title:i},c):null}function i(e){return e<100?e-100:0}function c(e){const{theme:t,colorStops:n,colorStopsValue:a,value:s}=e;if(n){const e=n.find(((e,t)=>{const l="number"===typeof a?a:s,r=t>1?n[t-1].stop:0,i=t<n.length-1?e.stop:100;return l>=r&&l<=i}));return e?e.theme:t}return t}function o(e){const{stack:t,stackClassName:n,value:c,text:o}=e,m=i(c||function(e){return e.reduce(((e,{value:t})=>e+t),0)}(t));return a.createElement("div",{className:s("stack",n),style:{transform:`translateX(calc(var(--g-flow-direction) * ${m}%))`}},a.createElement("div",{className:s("item"),style:{width:-m+"%"}}),t.map(((e,t)=>a.createElement(r,{key:t,item:e}))),a.createElement(l,{offset:m,text:o}))}function m(e){const{value:t,loading:n,text:r}=e,o=i(t);return Number.isFinite(t)?a.createElement("div",{className:s("item",{theme:c(e),loading:n}),style:{transform:`translateX(calc(var(--g-flow-direction) * ${o}%))`}},a.createElement(l,{offset:o,text:r})):null}const u=a.forwardRef((function(e,t){const{text:n="",theme:l="default",size:r="m",loading:i=!1,className:c,qa:u}=e,d=Object.assign(Object.assign({},e),{text:n,theme:l,size:r,loading:i});return a.createElement("div",{ref:t,className:s({size:r},c),"data-qa":u},a.createElement("div",{className:s("text")},n),function(e){return void 0!==e.stack}(d)?a.createElement(o,Object.assign({},d)):a.createElement(m,Object.assign({},d)))}))},18677:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var a=n(59284);const s=e=>a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14M6.53 5.47a.75.75 0 0 0-1.06 1.06L6.94 8 5.47 9.47a.75.75 0 1 0 1.06 1.06L8 9.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L9.06 8l1.47-1.47a.75.75 0 1 0-1.06-1.06L8 6.94z",clipRule:"evenodd"}))},43665:e=>{e.exports=function(e,t,n,a){for(var s=-1,l=null==e?0:e.length;++s<l;){var r=e[s];t(a,r,n(r),e)}return a}},53302:(e,t,n)=>{"use strict";n.d(t,{o:()=>a});const a=(0,n(82435).withNaming)({e:"__",m:"_"})},57439:(e,t,n)=>{"use strict";n.d(t,{u:()=>O});var a=n(59284),s=n(96873),l=n(98192);const r=(0,l.om)("definition-list");const i=e=>"label"in e&&!("name"in e),c=e=>!e.some((e=>i(e)));function o(e,t){return e||("string"===typeof t||"number"===typeof t?String(t):void 0)}function m({copyText:e,content:t,copyPosition:n}){const l="inside"===n,i=null!==t&&void 0!==t?t:"\u2014";return e?a.createElement("div",{className:r("copy-container",{"icon-inside":l})},a.createElement("span",null,i),a.createElement(s.b,{size:"s",text:e,className:r("copy-button"),view:l?"raised":"flat-secondary"})):i}var u=n(98089);function d({label:e}){return a.createElement("div",{className:r("group-title")},a.createElement(u.E,{variant:"subheader-1",color:"complementary"},e))}var p=n(6170),v=n(72837);const f=JSON.parse('{"label_note":"Note"}'),b=JSON.parse('{"label_note":"\u0421\u043f\u0440\u0430\u0432\u043a\u0430"}'),h=(0,v.N)({en:f,ru:b},`${l.CU}definition-list`);var g=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var s=0;for(a=Object.getOwnPropertySymbols(e);s<a.length;s++)t.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(e,a[s])&&(n[a[s]]=e[a[s]])}return n};function N({note:e}){if(!e)return null;const t=r("item-note-tooltip");if("string"===typeof e)return a.createElement(p.B,{className:t,content:e,placement:["bottom","top"],buttonProps:{"aria-label":h("label_note")}});if("object"===typeof e){const{buttonProps:n}=e,s=g(e,["buttonProps"]);return a.createElement(p.B,Object.assign({className:t,placement:["bottom","top"],buttonProps:Object.assign({"aria-label":h("label_note")},n)},s))}return null}function y({note:e,name:t,nameTitle:n,multilineName:s,direction:l}){const i=a.createElement(a.Fragment,null,"\xa0",a.createElement(N,{note:e}));return a.createElement(a.Fragment,null,a.createElement("div",{className:r("term-wrapper")},a.createElement("span",{title:o(n,t)},t),s&&i),!s&&i,"horizontal"===l&&a.createElement("div",{className:r("dots",{"with-note":Boolean(e)})}))}var w=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var s=0;for(a=Object.getOwnPropertySymbols(e);s<a.length;s++)t.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(e,a[s])&&(n[a[s]]=e[a[s]])}return n};function E({items:e,responsive:t,direction:n="horizontal",nameMaxWidth:s,contentMaxWidth:l="auto",className:i,itemClassName:c,copyPosition:u="outside",qa:d}){const p=s?{maxWidth:s,width:s}:{},v="number"===typeof l?{width:l,maxWidth:l}:{},f=a.useMemo((()=>e.map(((e,t)=>Object.assign(Object.assign({},e),{key:t})))),[e]);return a.createElement("div",{className:r({responsive:t,vertical:"vertical"===n},i),"data-qa":d},a.createElement("dl",{className:r("list")},f.map((e=>{const{name:t,key:s,content:l,contentTitle:i,nameTitle:d,copyText:f,note:b,multilineName:h}=e;return a.createElement("div",{key:s,className:r("item",c)},a.createElement("dt",{className:r("term-container",{multiline:h}),style:p},a.createElement(y,{direction:n,name:t,nameTitle:d,note:b,multilineName:h})),a.createElement("dd",{className:r("definition"),title:o(i,l),style:Object.assign(Object.assign({},v),{lineBreak:"string"===typeof l&&(g=20,function(e){return e.split(/\s+/).some((e=>e.length>g))})(l)?"anywhere":void 0})},a.createElement(m,{copyPosition:u,copyText:f,content:l})));var g}))))}function x(e){var{items:t,className:n,itemClassName:s}=e,l=w(e,["items","className","itemClassName"]);const i=a.useMemo((()=>t.map(((e,t)=>Object.assign(Object.assign({},e),{key:t})))),[t]);return a.createElement("div",{className:r({vertical:"vertical"===l.direction},n)},i.map((e=>{const{key:t,label:n}=e;return a.createElement(a.Fragment,{key:t},n&&a.createElement(d,{label:n}),e.items&&a.createElement(E,Object.assign({},l,{className:r({margin:!n}),items:e.items,itemClassName:r("item",{grouped:Boolean(n)},s)})))})))}function O(e){var{items:t}=e,n=w(e,["items"]);if(c(t))return a.createElement(E,Object.assign({},n,{items:t}));const s=function(e){const t=[];let n=[];for(const a of e)i(a)?(n.length&&(t.push({items:n,label:null}),n=[]),t.push(a)):n.push(a);return n.length&&(t.push({items:n,label:null}),n=[]),t}(t);return a.createElement(x,Object.assign({},n,{items:s}))}},63126:(e,t,n)=>{"use strict";n.d(t,{G:()=>o});var a=n(60712),s=n(59284),l=n(40569),r=n(53302);const i="--ydb-tree-view-level",c=(0,r.o)("ydb-tree-view");function o({children:e,name:t,title:n,icon:r,collapsed:o=!0,active:m=!1,onClick:u,onArrowClick:d,onActionsOpenToggle:p,hasArrow:v=!1,actions:f,additionalNodeElements:b,level:h}){const g=s.useCallback((e=>{if(!u)return;e.nativeEvent.composedPath().some((e=>e instanceof HTMLElement&&("BUTTON"===e.nodeName&&!e.hasAttribute("disabled")||e.hasAttribute("tabindex")&&e.tabIndex>-1)))||u()}),[u]),N=d||u;let y="tree-view_arrow",w="tree-view_children";return o&&(y+=" tree-view_arrow-collapsed",w+=" tree-view_children-collapsed"),(0,a.jsx)("div",{className:c(),style:{[i]:h},children:(0,a.jsxs)("div",{className:"tree-view",children:[(0,a.jsxs)("div",{className:`tree-view_item ${c("item",{active:m})}`,onClick:g,children:[(0,a.jsx)("button",{type:"button",className:`${y} ${c("arrow",{collapsed:o,hidden:!v})}`,disabled:!N,onClick:N}),(0,a.jsxs)("div",{className:c("content"),children:[r&&(0,a.jsx)("div",{className:c("icon"),children:r}),(0,a.jsx)("div",{className:c("text"),title:n,children:t}),f&&f.length>0&&(0,a.jsxs)("div",{className:c("actions"),children:[b,(0,a.jsx)(l.r,{onOpenToggle:p,defaultSwitcherProps:{view:"flat-secondary",size:"s",pin:"brick-brick"},items:f})]})]})]}),(0,a.jsx)("div",{className:`${w} ${c("container",{collapsed:o})}`,children:o?null:e})]})})}},74321:(e,t,n)=>{"use strict";n.d(t,{S:()=>o});var a=n(59284),s=n(64222),l=n(46898);function r(e){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 17",width:"16",height:"16",fill:"currentColor"},e),a.createElement("path",{d:"M4 7h9v3H4z"}))}function i(e){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 10",width:"16",height:"16",fill:"currentColor"},e),a.createElement("path",{d:"M.49 5.385l1.644-1.644 4.385 4.385L4.874 9.77.49 5.385zm4.384 1.096L10.356 1 12 2.644 6.519 8.126 4.874 6.48v.001z"}))}const c=(0,n(69220).om)("checkbox"),o=a.forwardRef((function(e,t){const{size:n="m",indeterminate:o,disabled:m=!1,content:u,children:d,title:p,style:v,className:f,qa:b}=e,{checked:h,inputProps:g}=(0,s.v)(e),N=u||d,y=a.createElement("span",{className:c("indicator")},a.createElement("span",{className:c("icon"),"aria-hidden":!0},o?a.createElement(r,{className:c("icon-svg",{type:"dash"})}):a.createElement(i,{className:c("icon-svg",{type:"tick"})})),a.createElement("input",Object.assign({},g,{className:c("control")})),a.createElement("span",{className:c("outline")}));return a.createElement(l.m,{ref:t,title:p,style:v,size:n,disabled:m,className:c({size:n,disabled:m,indeterminate:o,checked:h},f),qa:b,control:y},N)}))},76938:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var a=n(59284);const s=e=>a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 1.5a6.5 6.5 0 1 1-6.445 7.348.75.75 0 1 1 1.487-.194A5.001 5.001 0 1 0 4.43 4.5h1.32a.75.75 0 0 1 0 1.5h-3A.75.75 0 0 1 2 5.25v-3a.75.75 0 0 1 1.5 0v1.06A6.48 6.48 0 0 1 8 1.5",clipRule:"evenodd"}))},78018:(e,t,n)=>{var a=n(80472),s=n(2680),l=Object.prototype.hasOwnProperty,r=s((function(e,t,n){l.call(e,n)?e[n].push(t):a(e,n,[t])}));e.exports=r},81061:(e,t,n)=>{var a=n(75125);e.exports=function(e,t,n,s){return a(e,(function(e,a,l){t(s,e,n(e),l)})),s}},98192:(e,t,n)=>{"use strict";n.d(t,{CU:()=>s,om:()=>l});var a=n(82435);const s="gc-",l=((0,a.withNaming)({e:"__",m:"_",v:"_"}),(0,a.withNaming)({n:s,e:"__",m:"_",v:"_"}))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/856.78147a4f.chunk.js b/ydb/core/viewer/monitoring/static/js/856.78147a4f.chunk.js deleted file mode 100644 index ac4f88b960..0000000000 --- a/ydb/core/viewer/monitoring/static/js/856.78147a4f.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[856],{57439:(e,t,n)=>{"use strict";n.d(t,{u:()=>O});var a=n(59284),s=n(96873),l=n(98192);const r=(0,l.om)("definition-list");const i=e=>"label"in e&&!("name"in e),c=e=>!e.some((e=>i(e)));function o(e,t){return e||("string"===typeof t||"number"===typeof t?String(t):void 0)}function m({copyText:e,content:t,copyPosition:n}){const l="inside"===n,i=null!==t&&void 0!==t?t:"\u2014";return e?a.createElement("div",{className:r("copy-container",{"icon-inside":l})},a.createElement("span",null,i),a.createElement(s.b,{size:"s",text:e,className:r("copy-button"),view:l?"raised":"flat-secondary"})):i}var u=n(98089);function d({label:e}){return a.createElement("div",{className:r("group-title")},a.createElement(u.E,{variant:"subheader-1",color:"complementary"},e))}var p=n(6170),v=n(72837);const f=JSON.parse('{"label_note":"Note"}'),b=JSON.parse('{"label_note":"\u0421\u043f\u0440\u0430\u0432\u043a\u0430"}'),h=(0,v.N)({en:f,ru:b},`${l.CU}definition-list`);var g=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var s=0;for(a=Object.getOwnPropertySymbols(e);s<a.length;s++)t.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(e,a[s])&&(n[a[s]]=e[a[s]])}return n};function N({note:e}){if(!e)return null;const t=r("item-note-tooltip");if("string"===typeof e)return a.createElement(p.B,{className:t,content:e,placement:["bottom","top"],buttonProps:{"aria-label":h("label_note")}});if("object"===typeof e){const{buttonProps:n}=e,s=g(e,["buttonProps"]);return a.createElement(p.B,Object.assign({className:t,placement:["bottom","top"],buttonProps:Object.assign({"aria-label":h("label_note")},n)},s))}return null}function y({note:e,name:t,nameTitle:n,multilineName:s,direction:l}){const i=a.createElement(a.Fragment,null,"\xa0",a.createElement(N,{note:e}));return a.createElement(a.Fragment,null,a.createElement("div",{className:r("term-wrapper")},a.createElement("span",{title:o(n,t)},t),s&&i),!s&&i,"horizontal"===l&&a.createElement("div",{className:r("dots",{"with-note":Boolean(e)})}))}var w=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var s=0;for(a=Object.getOwnPropertySymbols(e);s<a.length;s++)t.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(e,a[s])&&(n[a[s]]=e[a[s]])}return n};function E({items:e,responsive:t,direction:n="horizontal",nameMaxWidth:s,contentMaxWidth:l="auto",className:i,itemClassName:c,copyPosition:u="outside",qa:d}){const p=s?{maxWidth:s,width:s}:{},v="number"===typeof l?{width:l,maxWidth:l}:{},f=a.useMemo((()=>e.map(((e,t)=>Object.assign(Object.assign({},e),{key:t})))),[e]);return a.createElement("div",{className:r({responsive:t,vertical:"vertical"===n},i),"data-qa":d},a.createElement("dl",{className:r("list")},f.map((e=>{const{name:t,key:s,content:l,contentTitle:i,nameTitle:d,copyText:f,note:b,multilineName:h}=e;return a.createElement("div",{key:s,className:r("item",c)},a.createElement("dt",{className:r("term-container",{multiline:h}),style:p},a.createElement(y,{direction:n,name:t,nameTitle:d,note:b,multilineName:h})),a.createElement("dd",{className:r("definition"),title:o(i,l),style:Object.assign(Object.assign({},v),{lineBreak:"string"===typeof l&&(g=20,function(e){return e.split(/\s+/).some((e=>e.length>g))})(l)?"anywhere":void 0})},a.createElement(m,{copyPosition:u,copyText:f,content:l})));var g}))))}function x(e){var{items:t,className:n,itemClassName:s}=e,l=w(e,["items","className","itemClassName"]);const i=a.useMemo((()=>t.map(((e,t)=>Object.assign(Object.assign({},e),{key:t})))),[t]);return a.createElement("div",{className:r({vertical:"vertical"===l.direction},n)},i.map((e=>{const{key:t,label:n}=e;return a.createElement(a.Fragment,{key:t},n&&a.createElement(d,{label:n}),e.items&&a.createElement(E,Object.assign({},l,{className:r({margin:!n}),items:e.items,itemClassName:r("item",{grouped:Boolean(n)},s)})))})))}function O(e){var{items:t}=e,n=w(e,["items"]);if(c(t))return a.createElement(E,Object.assign({},n,{items:t}));const s=function(e){const t=[];let n=[];for(const a of e)i(a)?(n.length&&(t.push({items:n,label:null}),n=[]),t.push(a)):n.push(a);return n.length&&(t.push({items:n,label:null}),n=[]),t}(t);return a.createElement(x,Object.assign({},n,{items:s}))}},6170:(e,t,n)=>{"use strict";n.d(t,{B:()=>o});var a=n(59284),s=n(73633),l=n(84375),r=n(99991);const i=(0,n(98192).om)("help-popover"),c=16;function o(e){var t;return a.createElement(l.A,Object.assign({},e,{className:i(null,e.className)}),a.createElement("button",Object.assign({ref:e.buttonRef,type:"button"},e.buttonProps,{className:i("button",null===(t=e.buttonProps)||void 0===t?void 0:t.className)}),a.createElement(r.I,{data:s.A,size:c})))}},98192:(e,t,n)=>{"use strict";n.d(t,{CU:()=>s,om:()=>l});var a=n(82435);const s="gc-",l=((0,a.withNaming)({e:"__",m:"_",v:"_"}),(0,a.withNaming)({n:s,e:"__",m:"_",v:"_"}))},76938:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var a=n(59284);const s=e=>a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 1.5a6.5 6.5 0 1 1-6.445 7.348.75.75 0 1 1 1.487-.194A5.001 5.001 0 1 0 4.43 4.5h1.32a.75.75 0 0 1 0 1.5h-3A.75.75 0 0 1 2 5.25v-3a.75.75 0 0 1 1.5 0v1.06A6.48 6.48 0 0 1 8 1.5",clipRule:"evenodd"}))},18677:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var a=n(59284);const s=e=>a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14M6.53 5.47a.75.75 0 0 0-1.06 1.06L6.94 8 5.47 9.47a.75.75 0 1 0 1.06 1.06L8 9.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L9.06 8l1.47-1.47a.75.75 0 1 0-1.06-1.06L8 6.94z",clipRule:"evenodd"}))},74321:(e,t,n)=>{"use strict";n.d(t,{S:()=>o});var a=n(59284),s=n(64222),l=n(46898);function r(e){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 17",width:"16",height:"16",fill:"currentColor"},e),a.createElement("path",{d:"M4 7h9v3H4z"}))}function i(e){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 10",width:"16",height:"16",fill:"currentColor"},e),a.createElement("path",{d:"M.49 5.385l1.644-1.644 4.385 4.385L4.874 9.77.49 5.385zm4.384 1.096L10.356 1 12 2.644 6.519 8.126 4.874 6.48v.001z"}))}const c=(0,n(69220).om)("checkbox"),o=a.forwardRef((function(e,t){const{size:n="m",indeterminate:o,disabled:m=!1,content:u,children:d,title:p,style:v,className:f,qa:b}=e,{checked:h,inputProps:g}=(0,s.v)(e),N=u||d,y=a.createElement("span",{className:c("indicator")},a.createElement("span",{className:c("icon"),"aria-hidden":!0},o?a.createElement(r,{className:c("icon-svg",{type:"dash"})}):a.createElement(i,{className:c("icon-svg",{type:"tick"})})),a.createElement("input",Object.assign({},g,{className:c("control")})),a.createElement("span",{className:c("outline")}));return a.createElement(l.m,{ref:t,title:p,style:v,size:n,disabled:m,className:c({size:n,disabled:m,indeterminate:o,checked:h},f),qa:b,control:y},N)}))},18143:(e,t,n)=>{"use strict";n.d(t,{k:()=>u});var a=n(59284);const s=(0,n(69220).om)("progress");function l(e){const{text:t,offset:n=0}=e;return t?a.createElement("div",{className:s("text-inner"),style:{transform:`translateX(calc(var(--g-flow-direction) * ${-n}%))`}},t):null}function r({item:e}){const{value:t,color:n,className:l,theme:r,title:i,content:c,loading:o}=e,m={loading:o};return"undefined"===typeof n&&(m.theme=r||"default"),Number.isFinite(t)?a.createElement("div",{className:s("item",m,l),style:{width:`${t}%`,backgroundColor:n},title:i},c):null}function i(e){return e<100?e-100:0}function c(e){const{theme:t,colorStops:n,colorStopsValue:a,value:s}=e;if(n){const e=n.find(((e,t)=>{const l="number"===typeof a?a:s,r=t>1?n[t-1].stop:0,i=t<n.length-1?e.stop:100;return l>=r&&l<=i}));return e?e.theme:t}return t}function o(e){const{stack:t,stackClassName:n,value:c,text:o}=e,m=i(c||function(e){return e.reduce(((e,{value:t})=>e+t),0)}(t));return a.createElement("div",{className:s("stack",n),style:{transform:`translateX(calc(var(--g-flow-direction) * ${m}%))`}},a.createElement("div",{className:s("item"),style:{width:-m+"%"}}),t.map(((e,t)=>a.createElement(r,{key:t,item:e}))),a.createElement(l,{offset:m,text:o}))}function m(e){const{value:t,loading:n,text:r}=e,o=i(t);return Number.isFinite(t)?a.createElement("div",{className:s("item",{theme:c(e),loading:n}),style:{transform:`translateX(calc(var(--g-flow-direction) * ${o}%))`}},a.createElement(l,{offset:o,text:r})):null}const u=a.forwardRef((function(e,t){const{text:n="",theme:l="default",size:r="m",loading:i=!1,className:c,qa:u}=e,d=Object.assign(Object.assign({},e),{text:n,theme:l,size:r,loading:i});return a.createElement("div",{ref:t,className:s({size:r},c),"data-qa":u},a.createElement("div",{className:s("text")},n),function(e){return void 0!==e.stack}(d)?a.createElement(o,Object.assign({},d)):a.createElement(m,Object.assign({},d)))}))},43665:e=>{e.exports=function(e,t,n,a){for(var s=-1,l=null==e?0:e.length;++s<l;){var r=e[s];t(a,r,n(r),e)}return a}},81061:(e,t,n)=>{var a=n(75125);e.exports=function(e,t,n,s){return a(e,(function(e,a,l){t(s,e,n(e),l)})),s}},2680:(e,t,n)=>{var a=n(43665),s=n(81061),l=n(28293),r=n(19305);e.exports=function(e,t){return function(n,i){var c=r(n)?a:s,o=t?t():{};return c(n,e,l(i,2),o)}}},78018:(e,t,n)=>{var a=n(80472),s=n(2680),l=Object.prototype.hasOwnProperty,r=s((function(e,t,n){l.call(e,n)?e[n].push(t):a(e,n,[t])}));e.exports=r},63126:(e,t,n)=>{"use strict";n.d(t,{G:()=>o});var a=n(60712),s=n(59284),l=n(40569),r=n(53302);const i="--ydb-tree-view-level",c=(0,r.o)("ydb-tree-view");function o({children:e,name:t,title:n,icon:r,collapsed:o=!0,active:m=!1,onClick:u,onArrowClick:d,onActionsOpenToggle:p,hasArrow:v=!1,actions:f,additionalNodeElements:b,level:h}){const g=s.useCallback((e=>{if(!u)return;e.nativeEvent.composedPath().some((e=>e instanceof HTMLElement&&("BUTTON"===e.nodeName&&!e.hasAttribute("disabled")||e.hasAttribute("tabindex")&&e.tabIndex>-1)))||u()}),[u]),N=d||u;let y="tree-view_arrow",w="tree-view_children";return o&&(y+=" tree-view_arrow-collapsed",w+=" tree-view_children-collapsed"),(0,a.jsx)("div",{className:c(),style:{[i]:h},children:(0,a.jsxs)("div",{className:"tree-view",children:[(0,a.jsxs)("div",{className:`tree-view_item ${c("item",{active:m})}`,onClick:g,children:[(0,a.jsx)("button",{type:"button",className:`${y} ${c("arrow",{collapsed:o,hidden:!v})}`,disabled:!N,onClick:N}),(0,a.jsxs)("div",{className:c("content"),children:[r&&(0,a.jsx)("div",{className:c("icon"),children:r}),(0,a.jsx)("div",{className:c("text"),title:n,children:t}),f&&f.length>0&&(0,a.jsxs)("div",{className:c("actions"),children:[b,(0,a.jsx)(l.r,{onOpenToggle:p,defaultSwitcherProps:{view:"flat-secondary",size:"s",pin:"brick-brick"},items:f})]})]})]}),(0,a.jsx)("div",{className:`${w} ${c("container",{collapsed:o})}`,children:o?null:e})]})})}},53302:(e,t,n)=>{"use strict";n.d(t,{o:()=>a});const a=(0,n(82435).withNaming)({e:"__",m:"_"})}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/9172.f332051f.chunk.js b/ydb/core/viewer/monitoring/static/js/9172.f332051f.chunk.js new file mode 100644 index 0000000000..06112b1e27 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/9172.f332051f.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 9172.f332051f.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[9172],{5874:(e,t,n)=>{n.d(t,{W:()=>L});var l=n(59284);const o=e=>{if(e.options.enableRowSelection)return Boolean(e.options.enableMultiRowSelection)};var r=n(32084);const i=l.createContext(void 0),a={};var s=n(85720);const u=e=>{const t=e.column.getIsPinned(),n="left"===t,l="right"===t,o=n&&e.column.getIsLastColumn("left"),r=l&&e.column.getIsFirstColumn("right");return{pinned:Boolean(t),"pinned-left":n,"pinned-right":l,"last-pinned-left":o,"first-pinned-right":r}},d=e=>e?Object.assign({id:e.column.id},u(e)):null,g=(e,t)=>{if(!e)return t;const n=e.column.getIsPinned();return Object.assign({width:e.column.getSize(),minWidth:e.column.columnDef.minSize,maxWidth:e.column.columnDef.maxSize,left:"left"===n?`${e.column.getStart("left")}px`:void 0,right:"right"===n?`${e.column.getAfter("right")}px`:void 0},t)};var c=n(82435);(0,c.withNaming)({e:"__",m:"_"});const p=(0,c.withNaming)({n:"gt-",e:"__",m:"_"}),m=p("table");var f=function(e,t){var n={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(l=Object.getOwnPropertySymbols(e);o<l.length;o++)t.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(e,l[o])&&(n[l[o]]=e[l[o]])}return n};const v=e=>{var{cell:t,children:n,className:o,style:r,attributes:i}=e,a=f(e,["cell","children","className","style","attributes"]);const u="function"===typeof i?i(t):i,c="function"===typeof o?o(t):o;return l.createElement("td",Object.assign({className:m("cell",d(t),c)},a,u,{style:g(t,Object.assign(Object.assign({},r),null===u||void 0===u?void 0:u.style))}),t?(0,s.Kv)(t.column.columnDef.cell,t.getContext()):n)},w=p("group-header"),h=({row:e,className:t,getGroupTitle:n})=>{var o;return l.createElement("h2",{className:w(null,t)},l.createElement("button",{className:w("button"),onClick:e.getToggleExpandedHandler()},l.createElement("svg",{className:w("icon",{expanded:e.getIsExpanded()}),viewBox:"0 0 16 16",width:"16",height:"16"},l.createElement("path",{d:"M2.97 5.47a.75.75 0 0 1 1.06 0L8 9.44l3.97-3.97a.75.75 0 1 1 1.06 1.06l-4.5 4.5a.75.75 0 0 1-1.06 0l-4.5-4.5a.75.75 0 0 1 0-1.06Z",fill:"currentColor"})),l.createElement("span",{className:w("content")},l.createElement("span",{className:w("title")},null!==(o=null===n||void 0===n?void 0:n(e))&&void 0!==o?o:e.id),l.createElement("span",{className:w("total")},e.subRows.length))))};var b=function(e,t){var n={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(l=Object.getOwnPropertySymbols(e);o<l.length;o++)t.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(e,l[o])&&(n[l[o]]=e[l[o]])}return n};const C=l.forwardRef(((e,t)=>{var{cellClassName:n,className:o,getGroupTitle:i,getIsCustomRow:a,getIsGroupHeaderRow:s,groupHeaderClassName:u,onClick:d,renderCustomRowContent:g,renderGroupHeader:c,renderGroupHeaderRowContent:p,row:f,rowVirtualizer:w,style:C,virtualItem:S,attributes:R,cellAttributes:y,table:I}=e,x=b(e,["cellClassName","className","getGroupTitle","getIsCustomRow","getIsGroupHeaderRow","groupHeaderClassName","onClick","renderCustomRowContent","renderGroupHeader","renderGroupHeaderRowContent","row","rowVirtualizer","style","virtualItem","attributes","cellAttributes","table"]);const M=(0,r.N)(null===w||void 0===w?void 0:w.measureElement,t),F="function"===typeof R?R(f):R,P="function"===typeof o?o(f):o,E=l.useCallback((e=>{null===d||void 0===d||d(f,e)}),[d,f]);return l.createElement("tr",Object.assign({ref:M,className:m("row",{selected:f.getIsSelected(),interactive:Boolean(d)},P),onClick:E,"data-index":null===S||void 0===S?void 0:S.index},x,F,{style:Object.assign(Object.assign({top:w&&S?S.start-w.options.scrollMargin:void 0},C),null===F||void 0===F?void 0:F.style)}),(null===s||void 0===s?void 0:s(f))?p?p({row:f,Cell:v,cellClassName:n,getGroupTitle:i}):l.createElement(v,{className:n,colSpan:f.getVisibleCells().length,attributes:y,"aria-colindex":1},c?c({row:f,className:m("group-header",u),getGroupTitle:i}):l.createElement(h,{row:f,className:m("group-header",u),getGroupTitle:i})):(null===a||void 0===a?void 0:a(f))&&g?g({row:f,Cell:v,cellClassName:n}):f.getVisibleCells().map((e=>l.createElement(v,{key:e.id,cell:e,className:n,attributes:y,"aria-colindex":e.column.getIndex()+1}))))}));C.displayName="BaseRow";var S=function(e,t){var n={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(l=Object.getOwnPropertySymbols(e);o<l.length;o++)t.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(e,l[o])&&(n[l[o]]=e[l[o]])}return n};const R=l.forwardRef(((e,t)=>{var n,{attributes:o,row:s,style:u,table:d}=e,g=S(e,["attributes","row","style","table"]);const{isChildMode:c,activeItemKey:p,targetItemIndex:m=-1,enableNesting:f,useSortable:v}=null!==(n=l.useContext(i))&&void 0!==n?n:{},{setNodeRef:w,transform:h=null,transition:b,isDragging:R=!1}=(null===v||void 0===v?void 0:v({id:s.id}))||{},y=Boolean(p),I=c&&m===s.index,x=(0,r.N)(w,t),{isFirstChild:M,depth:F}=(({row:e,table:t,isDragging:n})=>{var o,r,a,s,u;const{isChildMode:d,isParentMode:g,isNextChildMode:c,targetItemIndex:p=-1,enableNesting:m}=null!==(o=l.useContext(i))&&void 0!==o?o:{};let f=n&&-1===p,v=0;if(m)if(n&&-1!==p){const e=t.getRowModel().rows,n=null!==(a=null===(r=e[p])||void 0===r?void 0:r.depth)&&void 0!==a?a:0,l=null!==(u=null===(s=e[p+1])||void 0===s?void 0:s.depth)&&void 0!==u?u:0;if(f=l>n,f)v=l,g&&v--;else{let e=0;g?e=-1:d&&(e=1),v=(c?n:Math.min(n,l))+e}v=Math.max(0,v)}else v=f?0:e.depth;return{depth:v,isFirstChild:f}})({row:s,table:d,isDragging:R}),P=(({style:e=a,transform:t,transition:n,isDragging:o,isDragActive:r,isFirstChild:s,draggableChildRowOffset:u=32,enableNesting:d})=>{var g;const{isChildMode:c,isParentMode:p}=null!==(g=l.useContext(i))&&void 0!==g?g:{};return l.useMemo((()=>{if(!r||!t)return e;let l=0;return d&&o&&(p?l=-u:c&&!s&&(l=u)),Object.assign(Object.assign({},e),{transition:n,transform:`translate3d(${Math.max(l,0)}px, ${t.y}px, 0)`})}),[u,c,r,o,s,p,e,t,n,d])})({style:u,transform:h,transition:b,isDragging:R,isDragActive:y,isFirstChild:M,enableNesting:f}),E=l.useCallback((e=>{const t="function"===typeof o?o(e):o;return Object.assign(Object.assign({},t),{"data-key":e.id,"data-depth":F,"data-draggable":!0,"data-dragging":R,"data-drag-active":y,"data-expanded":y&&I})}),[o,F,R,y,I]);return l.createElement(C,Object.assign({ref:x,attributes:E,row:s,style:P,table:d},g))}));R.displayName="BaseDraggableRow";const y=e=>Object.assign({id:e.column.id,placeholder:e.isPlaceholder,sortable:e.column.getCanSort(),wide:e.colSpan>1},u(e)),I=({header:e,attributes:t,className:n})=>{const o="function"===typeof t?t(e):t,r="function"===typeof n?n(e):n,i=e.depth-e.column.depth;return l.createElement("th",Object.assign({className:m("footer-cell",y(e),r),colSpan:e.colSpan>1?e.colSpan:void 0,rowSpan:i>1?i:void 0},o,{style:g(e,null===o||void 0===o?void 0:o.style)}),(0,s.Kv)(e.column.columnDef.footer,e.getContext()))};var x=function(e,t){var n={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(l=Object.getOwnPropertySymbols(e);o<l.length;o++)t.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(e,l[o])&&(n[l[o]]=e[l[o]])}return n};const M=e=>{var{footerGroup:t,attributes:n,cellAttributes:o,cellClassName:r,className:i}=e,a=x(e,["footerGroup","attributes","cellAttributes","cellClassName","className"]);const s="function"===typeof n?n(t):n,u="function"===typeof i?i(t):i;return l.createElement("tr",Object.assign({className:m("footer-row",u)},a,s),t.headers.map((e=>(e=>!e.isPlaceholder)(e)?l.createElement(I,{key:e.column.id,header:e,attributes:o,className:r}):null)))},F=e=>{if(e)return"asc"===e?"ascending":"descending"},P=e=>e.headerGroup.headers.slice(0,e.index).reduce(((e,t)=>e+t.colSpan),1),E=p("resize-handle"),V=({className:e,header:t})=>{var n;const{table:o}=t.getContext(),{columnResizeDirection:r,columnResizeMode:i}=o.options,{columnSizingInfo:a}=o.getState(),s=("rtl"===r?-1:1)*(null!==(n=a.deltaOffset)&&void 0!==n?n:0);return l.createElement("div",{className:E({direction:r,resizing:t.column.getIsResizing()},e),onDoubleClick:()=>t.column.resetSize(),onMouseDown:t.getResizeHandler(),onTouchStart:t.getResizeHandler(),style:{transform:"onEnd"===i&&t.column.getIsResizing()?`translateX(${s}px)`:void 0}})};var O=n(46734),_=function(e,t){var n={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(l=Object.getOwnPropertySymbols(e);o<l.length;o++)t.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(e,l[o])&&(n[l[o]]=e[l[o]])}return n};const z=e=>{var{header:t,className:n,children:o}=e,r=_(e,["header","className","children"]);const i=t.column.getToggleSortingHandler(),{onKeyDown:a}=(0,O.N)(i);return l.createElement("span",Object.assign({className:m("sort",n),role:"button",tabIndex:0,onClick:i,onKeyDown:a},r),o)},G=p("sort-indicator"),N=({className:e,header:t})=>{const n=t.column.getIsSorted();return l.createElement("span",{className:G({order:n,invisible:!n},e)},l.createElement("svg",{width:"6",height:"3",viewBox:"0 0 6 3",fill:"currentColor"},l.createElement("path",{d:"M0.404698 0C0.223319 0 0.102399 0.0887574 0.0419396 0.230769C-0.0386733 0.372781 0.00163315 0.497041 0.122552 0.60355L2.72232 2.89349C2.80293 2.9645 2.88354 3 3.00446 3C3.10523 3 3.20599 2.9645 3.28661 2.89349L5.88637 0.60355C6.00729 0.497041 6.02745 0.372781 5.96699 0.230769C5.88637 0.0887574 5.76545 0 5.60423 0H0.404698Z"})))},H=({className:e,header:t,parentHeader:n,renderHeaderCellContent:o,renderResizeHandle:r,renderSortIndicator:i,resizeHandleClassName:a,sortIndicatorClassName:u,attributes:d})=>{const c="function"===typeof d?d(t,n):d,p="function"===typeof e?e(t,n):e,f=t.isPlaceholder?t.getLeafHeaders().length:1;return l.createElement("th",Object.assign({className:m("header-cell",y(t),p),colSpan:t.colSpan>1?t.colSpan:void 0,rowSpan:f>1?f:void 0,"aria-sort":F(t.column.getIsSorted()),"aria-colindex":P(t)},c,{style:g(t,null===c||void 0===c?void 0:c.style)}),o?o({header:t}):l.createElement(l.Fragment,null,t.column.getCanSort()?l.createElement(z,{header:t},(0,s.Kv)(t.column.columnDef.header,t.getContext())," ",i?i({className:m("sort-indicator",u),header:t}):l.createElement(N,{className:m("sort-indicator",u),header:t})):(0,s.Kv)(t.column.columnDef.header,t.getContext()),t.column.getCanResize()&&(r?r({className:m("resize-handle",a),header:t}):l.createElement(V,{className:m("resize-handle",a),header:t}))))};var A=function(e,t){var n={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(l=Object.getOwnPropertySymbols(e);o<l.length;o++)t.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(e,l[o])&&(n[l[o]]=e[l[o]])}return n};const D=e=>{var{cellClassName:t,className:n,headerGroup:o,parentHeaderGroup:r,renderHeaderCellContent:i,renderResizeHandle:a,renderSortIndicator:s,resizeHandleClassName:u,sortIndicatorClassName:d,attributes:g,cellAttributes:c}=e,p=A(e,["cellClassName","className","headerGroup","parentHeaderGroup","renderHeaderCellContent","renderResizeHandle","renderSortIndicator","resizeHandleClassName","sortIndicatorClassName","attributes","cellAttributes"]);const f="function"===typeof g?g(o,r):g,v="function"===typeof n?n(o,r):n;return l.createElement("tr",Object.assign({className:m("header-row",v)},p,f),o.headers.map((e=>{const n=null===r||void 0===r?void 0:r.headers.find((t=>e.column.id===t.column.id));return((e,t)=>{const n=e.isPlaceholder&&(null===t||void 0===t?void 0:t.isPlaceholder)&&t.placeholderId===e.placeholderId,l=!e.isPlaceholder&&e.id===e.column.id&&e.depth-e.column.depth>1;return!(n||l)})(e,n)?l.createElement(H,{key:e.column.id,className:t,header:e,parentHeader:n,renderHeaderCellContent:i,renderResizeHandle:a,renderSortIndicator:s,resizeHandleClassName:u,sortIndicatorClassName:d,attributes:c}):null})))},L=l.forwardRef((({table:e,attributes:t,bodyAttributes:n,bodyClassName:r,bodyRef:a,cellAttributes:s,cellClassName:u,className:d,customFooterRowCount:g,emptyContent:c,footerAttributes:p,footerCellAttributes:f,footerCellClassName:v,footerClassName:w,footerRowAttributes:h,footerRowClassName:b,getGroupTitle:S,getIsCustomRow:y,getIsGroupHeaderRow:I,groupHeaderClassName:x,headerAttributes:F,headerCellAttributes:P,headerCellClassName:E,headerClassName:V,headerRowAttributes:O,headerRowClassName:_,onRowClick:z,renderCustomFooterContent:G,renderCustomRowContent:N,renderGroupHeader:H,renderGroupHeaderRowContent:A,renderHeaderCellContent:L,renderResizeHandle:j,renderSortIndicator:T,resizeHandleClassName:k,rowAttributes:B,rowClassName:q,rowVirtualizer:$,sortIndicatorClassName:U,stickyFooter:K=!1,stickyHeader:X=!1,withFooter:Z=!1,withHeader:W=!0},J)=>{var Q;const Y=l.useContext(i),ee=null!==(Q=null===Y||void 0===Y?void 0:Y.activeItemIndex)&&void 0!==Q?Q:-1,{rows:te,rowsById:ne}=e.getRowModel(),le=l.useMemo((()=>(e=>{let t=1;return e.reduce(((e,n,l,o)=>{const r=Object.assign(Object.assign({},e),{[n.id]:t}),i=o[l+1];return(null===i||void 0===i?void 0:i.parentId)!==n.id&&(t+=n.getLeafRows().length),t++,r}),{})})(te)),[te]),oe=W?e.getHeaderGroups():[],re=Z?e.getFooterGroups():[],ie=e.getVisibleLeafColumns().length,ae=oe.length,se=Object.keys(ne).length,ue=Z&&(G&&g||re.length)||0,de=se+ae+ue,ge=(null===$||void 0===$?void 0:$.getVirtualItems())||te;return l.createElement("table",Object.assign({ref:J,className:m({"with-row-virtualization":Boolean($)},d),"data-dragging-row-index":ee>-1?ee:void 0,"aria-colcount":ie>0?ie:void 0,"aria-rowcount":de>0?de:void 0,"aria-multiselectable":o(e)},t),W&&l.createElement("thead",Object.assign({className:m("header",{sticky:X},V)},F),oe.map(((e,t)=>l.createElement(D,{key:e.id,cellClassName:E,className:_,headerGroup:e,parentHeaderGroup:oe[t-1],renderHeaderCellContent:L,renderResizeHandle:j,renderSortIndicator:T,resizeHandleClassName:k,sortIndicatorClassName:U,attributes:O,cellAttributes:P,"aria-rowindex":t+1})))),l.createElement("tbody",Object.assign({ref:a,className:m("body",r)},n,{style:Object.assign({height:ge.length?null===$||void 0===$?void 0:$.getTotalSize():void 0},null===n||void 0===n?void 0:n.style)}),ge.length?ge.map((t=>{var n;const o=$?te[t.index]:t,r=$?t:void 0,i=null!==(n=null===r||void 0===r?void 0:r.key)&&void 0!==n?n:o.id,a={cellClassName:u,className:q,getGroupTitle:S,getIsCustomRow:y,getIsGroupHeaderRow:I,groupHeaderClassName:x,attributes:B,cellAttributes:s,onClick:z,renderCustomRowContent:N,renderGroupHeader:H,renderGroupHeaderRowContent:A,row:o,rowVirtualizer:$,table:e,virtualItem:r,"aria-rowindex":ae+le[o.id],"aria-selected":e.options.enableRowSelection?o.getIsSelected():void 0};return Y?l.createElement(R,Object.assign({key:i},a)):l.createElement(C,Object.assign({key:i},a))})):(()=>{if(!c)return null;const t="function"===typeof q?q():q,n="function"===typeof u?u():u;return l.createElement("tr",{className:m("row",{empty:!0},t)},l.createElement("td",{className:m("cell",{},n),colSpan:ie,style:{width:$?e.getTotalSize():void 0}},"function"===typeof c?c():c))})()),Z&&l.createElement("tfoot",Object.assign({className:m("footer",{sticky:K},w)},p),G?G({cellClassName:m("footer-cell"),footerGroups:re,rowClassName:m("footer-row"),rowIndex:ae+se+1}):re.map(((e,t)=>(e=>e.headers.some((e=>e.column.columnDef.footer)))(e)?l.createElement(M,{key:e.id,footerGroup:e,attributes:h,cellAttributes:f,cellClassName:v,className:b,"aria-rowindex":ae+se+t+1}):null))))}));L.displayName="BaseTable"},18677:(e,t,n)=>{n.d(t,{A:()=>o});var l=n(59284);const o=e=>l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),l.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14M6.53 5.47a.75.75 0 0 0-1.06 1.06L6.94 8 5.47 9.47a.75.75 0 1 0 1.06 1.06L8 9.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L9.06 8l1.47-1.47a.75.75 0 1 0-1.06-1.06L8 6.94z",clipRule:"evenodd"}))},24953:(e,t,n)=>{function l(e,t){return"function"===typeof e?e(t):e}function o(e,t){return n=>{t.setState((t=>({...t,[e]:l(n,t[e])})))}}function r(e){return e instanceof Function}function i(e,t){const n=[],l=e=>{e.forEach((e=>{n.push(e);const o=t(e);null!=o&&o.length&&l(o)}))};return l(e),n}function a(e,t,n){let l,o=[];return r=>{let i;n.key&&n.debug&&(i=Date.now());const a=e(r);if(!(a.length!==o.length||a.some(((e,t)=>o[t]!==e))))return l;let s;if(o=a,n.key&&n.debug&&(s=Date.now()),l=t(...a),null==n||null==n.onChange||n.onChange(l),n.key&&n.debug&&null!=n&&n.debug()){const e=Math.round(100*(Date.now()-i))/100,t=Math.round(100*(Date.now()-s))/100,l=t/16,o=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c\u23f1 ${o(t,5)} /${o(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*l,120))}deg 100% 31%);`,null==n?void 0:n.key)}return l}}function s(e,t,n,l){return{debug:()=>{var n;return null!=(n=null==e?void 0:e.debugAll)?n:e[t]},key:!1,onChange:l}}n.d(t,{D0:()=>W,HT:()=>Z,ZR:()=>X,cU:()=>Q,h5:()=>Y});const u="debugHeaders";function d(e,t,n){var l;let o={id:null!=(l=n.id)?l:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(o),e},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach((t=>{null==t.createHeader||t.createHeader(o,e)})),o}const g={createTable:e=>{e.getHeaderGroups=a((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,l,o)=>{var r,i;const a=null!=(r=null==l?void 0:l.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?r:[],s=null!=(i=null==o?void 0:o.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?i:[];return c(t,[...a,...n.filter((e=>!(null!=l&&l.includes(e.id))&&!(null!=o&&o.includes(e.id)))),...s],e)}),s(e.options,u)),e.getCenterHeaderGroups=a((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,l,o)=>c(t,n=n.filter((e=>!(null!=l&&l.includes(e.id))&&!(null!=o&&o.includes(e.id)))),e,"center")),s(e.options,u)),e.getLeftHeaderGroups=a((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left]),((t,n,l)=>{var o;return c(t,null!=(o=null==l?void 0:l.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?o:[],e,"left")}),s(e.options,u)),e.getRightHeaderGroups=a((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right]),((t,n,l)=>{var o;return c(t,null!=(o=null==l?void 0:l.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?o:[],e,"right")}),s(e.options,u)),e.getFooterGroups=a((()=>[e.getHeaderGroups()]),(e=>[...e].reverse()),s(e.options,u)),e.getLeftFooterGroups=a((()=>[e.getLeftHeaderGroups()]),(e=>[...e].reverse()),s(e.options,u)),e.getCenterFooterGroups=a((()=>[e.getCenterHeaderGroups()]),(e=>[...e].reverse()),s(e.options,u)),e.getRightFooterGroups=a((()=>[e.getRightHeaderGroups()]),(e=>[...e].reverse()),s(e.options,u)),e.getFlatHeaders=a((()=>[e.getHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),s(e.options,u)),e.getLeftFlatHeaders=a((()=>[e.getLeftHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),s(e.options,u)),e.getCenterFlatHeaders=a((()=>[e.getCenterHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),s(e.options,u)),e.getRightFlatHeaders=a((()=>[e.getRightHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),s(e.options,u)),e.getCenterLeafHeaders=a((()=>[e.getCenterFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),s(e.options,u)),e.getLeftLeafHeaders=a((()=>[e.getLeftFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),s(e.options,u)),e.getRightLeafHeaders=a((()=>[e.getRightFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),s(e.options,u)),e.getLeafHeaders=a((()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()]),((e,t,n)=>{var l,o,r,i,a,s;return[...null!=(l=null==(o=e[0])?void 0:o.headers)?l:[],...null!=(r=null==(i=t[0])?void 0:i.headers)?r:[],...null!=(a=null==(s=n[0])?void 0:s.headers)?a:[]].map((e=>e.getLeafHeaders())).flat()}),s(e.options,u))}};function c(e,t,n,l){var o,r;let i=0;const a=function(e,t){void 0===t&&(t=1),i=Math.max(i,t),e.filter((e=>e.getIsVisible())).forEach((e=>{var n;null!=(n=e.columns)&&n.length&&a(e.columns,t+1)}),0)};a(e);let s=[];const u=(e,t)=>{const o={depth:t,id:[l,`${t}`].filter(Boolean).join("_"),headers:[]},r=[];e.forEach((e=>{const i=[...r].reverse()[0];let a,s=!1;if(e.column.depth===o.depth&&e.column.parent?a=e.column.parent:(a=e.column,s=!0),i&&(null==i?void 0:i.column)===a)i.subHeaders.push(e);else{const o=d(n,a,{id:[l,t,a.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:s,placeholderId:s?`${r.filter((e=>e.column===a)).length}`:void 0,depth:t,index:r.length});o.subHeaders.push(e),r.push(o)}o.headers.push(e),e.headerGroup=o})),s.push(o),t>0&&u(r,t-1)},g=t.map(((e,t)=>d(n,e,{depth:i,index:t})));u(g,i-1),s.reverse();const c=e=>e.filter((e=>e.column.getIsVisible())).map((e=>{let t=0,n=0,l=[0];e.subHeaders&&e.subHeaders.length?(l=[],c(e.subHeaders).forEach((e=>{let{colSpan:n,rowSpan:o}=e;t+=n,l.push(o)}))):t=1;return n+=Math.min(...l),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}}));return c(null!=(o=null==(r=s[0])?void 0:r.headers)?o:[]),s}const p=(e,t,n,l,o,r,u)=>{let d={id:t,index:l,original:n,depth:o,parentId:u,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(d._valuesCache.hasOwnProperty(t))return d._valuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?(d._valuesCache[t]=n.accessorFn(d.original,l),d._valuesCache[t]):void 0},getUniqueValues:t=>{if(d._uniqueValuesCache.hasOwnProperty(t))return d._uniqueValuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?n.columnDef.getUniqueValues?(d._uniqueValuesCache[t]=n.columnDef.getUniqueValues(d.original,l),d._uniqueValuesCache[t]):(d._uniqueValuesCache[t]=[d.getValue(t)],d._uniqueValuesCache[t]):void 0},renderValue:t=>{var n;return null!=(n=d.getValue(t))?n:e.options.renderFallbackValue},subRows:null!=r?r:[],getLeafRows:()=>i(d.subRows,(e=>e.subRows)),getParentRow:()=>d.parentId?e.getRow(d.parentId,!0):void 0,getParentRows:()=>{let e=[],t=d;for(;;){const n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:a((()=>[e.getAllLeafColumns()]),(t=>t.map((t=>function(e,t,n,l){const o={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(l),renderValue:()=>{var t;return null!=(t=o.getValue())?t:e.options.renderFallbackValue},getContext:a((()=>[e,n,t,o]),((e,t,n,l)=>({table:e,column:t,row:n,cell:l,getValue:l.getValue,renderValue:l.renderValue})),s(e.options,"debugCells"))};return e._features.forEach((l=>{null==l.createCell||l.createCell(o,n,t,e)}),{}),o}(e,d,t,t.id)))),s(e.options,"debugRows")),_getAllCellsByColumnId:a((()=>[d.getAllCells()]),(e=>e.reduce(((e,t)=>(e[t.column.id]=t,e)),{})),s(e.options,"debugRows"))};for(let i=0;i<e._features.length;i++){const t=e._features[i];null==t||null==t.createRow||t.createRow(d,e)}return d},m={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},f=(e,t,n)=>{var l,o;const r=null==n||null==(l=n.toString())?void 0:l.toLowerCase();return Boolean(null==(o=e.getValue(t))||null==(o=o.toString())||null==(o=o.toLowerCase())?void 0:o.includes(r))};f.autoRemove=e=>x(e);const v=(e,t,n)=>{var l;return Boolean(null==(l=e.getValue(t))||null==(l=l.toString())?void 0:l.includes(n))};v.autoRemove=e=>x(e);const w=(e,t,n)=>{var l;return(null==(l=e.getValue(t))||null==(l=l.toString())?void 0:l.toLowerCase())===(null==n?void 0:n.toLowerCase())};w.autoRemove=e=>x(e);const h=(e,t,n)=>{var l;return null==(l=e.getValue(t))?void 0:l.includes(n)};h.autoRemove=e=>x(e)||!(null!=e&&e.length);const b=(e,t,n)=>!n.some((n=>{var l;return!(null!=(l=e.getValue(t))&&l.includes(n))}));b.autoRemove=e=>x(e)||!(null!=e&&e.length);const C=(e,t,n)=>n.some((n=>{var l;return null==(l=e.getValue(t))?void 0:l.includes(n)}));C.autoRemove=e=>x(e)||!(null!=e&&e.length);const S=(e,t,n)=>e.getValue(t)===n;S.autoRemove=e=>x(e);const R=(e,t,n)=>e.getValue(t)==n;R.autoRemove=e=>x(e);const y=(e,t,n)=>{let[l,o]=n;const r=e.getValue(t);return r>=l&&r<=o};y.resolveFilterValue=e=>{let[t,n]=e,l="number"!==typeof t?parseFloat(t):t,o="number"!==typeof n?parseFloat(n):n,r=null===t||Number.isNaN(l)?-1/0:l,i=null===n||Number.isNaN(o)?1/0:o;if(r>i){const e=r;r=i,i=e}return[r,i]},y.autoRemove=e=>x(e)||x(e[0])&&x(e[1]);const I={includesString:f,includesStringSensitive:v,equalsString:w,arrIncludes:h,arrIncludesAll:b,arrIncludesSome:C,equals:S,weakEquals:R,inNumberRange:y};function x(e){return void 0===e||null===e||""===e}const M={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:o("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],l=null==n?void 0:n.getValue(e.id);return"string"===typeof l?I.includesString:"number"===typeof l?I.inNumberRange:"boolean"===typeof l||null!==l&&"object"===typeof l?I.equals:Array.isArray(l)?I.arrIncludes:I.weakEquals},e.getFilterFn=()=>{var n,l;return r(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(l=t.options.filterFns)?void 0:l[e.columnDef.filterFn])?n:I[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,l,o;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(l=t.options.enableColumnFilters)||l)&&(null==(o=t.options.enableFilters)||o)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return null==(n=t.getState().columnFilters)||null==(n=n.find((t=>t.id===e.id)))?void 0:n.value},e.getFilterIndex=()=>{var n,l;return null!=(n=null==(l=t.getState().columnFilters)?void 0:l.findIndex((t=>t.id===e.id)))?n:-1},e.setFilterValue=n=>{t.setColumnFilters((t=>{const o=e.getFilterFn(),r=null==t?void 0:t.find((t=>t.id===e.id)),i=l(n,r?r.value:void 0);var a;if(F(o,i,e))return null!=(a=null==t?void 0:t.filter((t=>t.id!==e.id)))?a:[];const s={id:e.id,value:i};var u;return r?null!=(u=null==t?void 0:t.map((t=>t.id===e.id?s:t)))?u:[]:null!=t&&t.length?[...t,s]:[s]}))}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange((e=>{var o;return null==(o=l(t,e))?void 0:o.filter((e=>{const t=n.find((t=>t.id===e.id));if(t){if(F(t.getFilterFn(),e.value,t))return!1}return!0}))}))},e.resetColumnFilters=t=>{var n,l;e.setColumnFilters(t?[]:null!=(n=null==(l=e.initialState)?void 0:l.columnFilters)?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function F(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||"undefined"===typeof t||"string"===typeof t&&!t}const P={sum:(e,t,n)=>n.reduce(((t,n)=>{const l=n.getValue(e);return t+("number"===typeof l?l:0)}),0),min:(e,t,n)=>{let l;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(l>n||void 0===l&&n>=n)&&(l=n)})),l},max:(e,t,n)=>{let l;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(l<n||void 0===l&&n>=n)&&(l=n)})),l},extent:(e,t,n)=>{let l,o;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(void 0===l?n>=n&&(l=o=n):(l>n&&(l=n),o<n&&(o=n)))})),[l,o]},mean:(e,t)=>{let n=0,l=0;if(t.forEach((t=>{let o=t.getValue(e);null!=o&&(o=+o)>=o&&(++n,l+=o)})),n)return l/n},median:(e,t)=>{if(!t.length)return;const n=t.map((t=>t.getValue(e)));if(l=n,!Array.isArray(l)||!l.every((e=>"number"===typeof e)))return;var l;if(1===n.length)return n[0];const o=Math.floor(n.length/2),r=n.sort(((e,t)=>e-t));return n.length%2!==0?r[o]:(r[o-1]+r[o])/2},unique:(e,t)=>Array.from(new Set(t.map((t=>t.getValue(e)))).values()),uniqueCount:(e,t)=>new Set(t.map((t=>t.getValue(e)))).size,count:(e,t)=>t.length},E={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:o("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping((t=>null!=t&&t.includes(e.id)?t.filter((t=>t!==e.id)):[...null!=t?t:[],e.id]))},e.getCanGroup=()=>{var n,l;return(null==(n=e.columnDef.enableGrouping)||n)&&(null==(l=t.options.enableGrouping)||l)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],l=null==n?void 0:n.getValue(e.id);return"number"===typeof l?P.sum:"[object Date]"===Object.prototype.toString.call(l)?P.extent:void 0},e.getAggregationFn=()=>{var n,l;if(!e)throw new Error;return r(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(l=t.options.aggregationFns)?void 0:l[e.columnDef.aggregationFn])?n:P[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,l;e.setGrouping(t?[]:null!=(n=null==(l=e.initialState)?void 0:l.grouping)?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const l=t.getColumn(n);return null!=l&&l.columnDef.getGroupingValue?(e._groupingValuesCache[n]=l.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,l)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=n.subRows)||!t.length)}}};const V={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:o("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=a((e=>[H(t,e)]),(t=>t.findIndex((t=>t.id===e.id))),s(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var l;return(null==(l=H(t,n)[0])?void 0:l.id)===e.id},e.getIsLastColumn=n=>{var l;const o=H(t,n);return(null==(l=o[o.length-1])?void 0:l.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},e._getOrderColumnsFn=a((()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode]),((e,t,n)=>l=>{let o=[];if(null!=e&&e.length){const t=[...e],n=[...l];for(;n.length&&t.length;){const e=t.shift(),l=n.findIndex((t=>t.id===e));l>-1&&o.push(n.splice(l,1)[0])}o=[...o,...n]}else o=l;return function(e,t,n){if(null==t||!t.length||!n)return e;const l=e.filter((e=>!t.includes(e.id)));return"remove"===n?l:[...t.map((t=>e.find((e=>e.id===t)))).filter(Boolean),...l]}(o,t,n)}),s(e.options,"debugTable"))}},O={getInitialState:e=>({columnPinning:{left:[],right:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:o("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const l=e.getLeafColumns().map((e=>e.id)).filter(Boolean);t.setColumnPinning((e=>{var t,o,r,i,a,s;return"right"===n?{left:(null!=(r=null==e?void 0:e.left)?r:[]).filter((e=>!(null!=l&&l.includes(e)))),right:[...(null!=(i=null==e?void 0:e.right)?i:[]).filter((e=>!(null!=l&&l.includes(e)))),...l]}:"left"===n?{left:[...(null!=(a=null==e?void 0:e.left)?a:[]).filter((e=>!(null!=l&&l.includes(e)))),...l],right:(null!=(s=null==e?void 0:e.right)?s:[]).filter((e=>!(null!=l&&l.includes(e))))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter((e=>!(null!=l&&l.includes(e)))),right:(null!=(o=null==e?void 0:e.right)?o:[]).filter((e=>!(null!=l&&l.includes(e))))}}))},e.getCanPin=()=>e.getLeafColumns().some((e=>{var n,l,o;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(l=null!=(o=t.options.enableColumnPinning)?o:t.options.enablePinning)||l)})),e.getIsPinned=()=>{const n=e.getLeafColumns().map((e=>e.id)),{left:l,right:o}=t.getState().columnPinning,r=n.some((e=>null==l?void 0:l.includes(e))),i=n.some((e=>null==o?void 0:o.includes(e)));return r?"left":!!i&&"right"},e.getPinnedIndex=()=>{var n,l;const o=e.getIsPinned();return o?null!=(n=null==(l=t.getState().columnPinning)||null==(l=l[o])?void 0:l.indexOf(e.id))?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=a((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right]),((e,t,n)=>{const l=[...null!=t?t:[],...null!=n?n:[]];return e.filter((e=>!l.includes(e.column.id)))}),s(t.options,"debugRows")),e.getLeftVisibleCells=a((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"left"})))),s(t.options,"debugRows")),e.getRightVisibleCells=a((()=>[e._getAllVisibleCells(),t.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"right"})))),s(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,l;return e.setColumnPinning(t?{left:[],right:[]}:null!=(n=null==(l=e.initialState)?void 0:l.columnPinning)?n:{left:[],right:[]})},e.getIsSomeColumnsPinned=t=>{var n;const l=e.getState().columnPinning;var o,r;return t?Boolean(null==(n=l[t])?void 0:n.length):Boolean((null==(o=l.left)?void 0:o.length)||(null==(r=l.right)?void 0:r.length))},e.getLeftLeafColumns=a((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),s(e.options,"debugColumns")),e.getRightLeafColumns=a((()=>[e.getAllLeafColumns(),e.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),s(e.options,"debugColumns")),e.getCenterLeafColumns=a((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((e,t,n)=>{const l=[...null!=t?t:[],...null!=n?n:[]];return e.filter((e=>!l.includes(e.id)))}),s(e.options,"debugColumns"))}},_={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},z={getDefaultColumnDef:()=>_,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:o("columnSizing",e),onColumnSizingInfoChange:o("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,l,o;const r=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:_.minSize,null!=(l=null!=r?r:e.columnDef.size)?l:_.size),null!=(o=e.columnDef.maxSize)?o:_.maxSize)},e.getStart=a((e=>[e,H(t,e),t.getState().columnSizing]),((t,n)=>n.slice(0,e.getIndex(t)).reduce(((e,t)=>e+t.getSize()),0)),s(t.options,"debugColumns")),e.getAfter=a((e=>[e,H(t,e),t.getState().columnSizing]),((t,n)=>n.slice(e.getIndex(t)+1).reduce(((e,t)=>e+t.getSize()),0)),s(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing((t=>{let{[e.id]:n,...l}=t;return l}))},e.getCanResize=()=>{var n,l;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(l=t.options.enableColumnResizing)||l)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0;const n=e=>{var l;e.subHeaders.length?e.subHeaders.forEach(n):t+=null!=(l=e.column.getSize())?l:0};return n(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=n=>{const l=t.getColumn(e.column.id),o=null==l?void 0:l.getCanResize();return r=>{if(!l||!o)return;if(null==r.persist||r.persist(),N(r)&&r.touches&&r.touches.length>1)return;const i=e.getSize(),a=e?e.getLeafHeaders().map((e=>[e.column.id,e.column.getSize()])):[[l.id,l.getSize()]],s=N(r)?Math.round(r.touches[0].clientX):r.clientX,u={},d=(e,n)=>{"number"===typeof n&&(t.setColumnSizingInfo((e=>{var l,o;const r="rtl"===t.options.columnResizeDirection?-1:1,i=(n-(null!=(l=null==e?void 0:e.startOffset)?l:0))*r,a=Math.max(i/(null!=(o=null==e?void 0:e.startSize)?o:0),-.999999);return e.columnSizingStart.forEach((e=>{let[t,n]=e;u[t]=Math.round(100*Math.max(n+n*a,0))/100})),{...e,deltaOffset:i,deltaPercentage:a}})),"onChange"!==t.options.columnResizeMode&&"end"!==e||t.setColumnSizing((e=>({...e,...u}))))},g=e=>d("move",e),c=e=>{d("end",e),t.setColumnSizingInfo((e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]})))},p=n||"undefined"!==typeof document?document:null,m={moveHandler:e=>g(e.clientX),upHandler:e=>{null==p||p.removeEventListener("mousemove",m.moveHandler),null==p||p.removeEventListener("mouseup",m.upHandler),c(e.clientX)}},f={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),g(e.touches[0].clientX),!1),upHandler:e=>{var t;null==p||p.removeEventListener("touchmove",f.moveHandler),null==p||p.removeEventListener("touchend",f.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),c(null==(t=e.touches[0])?void 0:t.clientX)}},v=!!function(){if("boolean"===typeof G)return G;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch(t){e=!1}return G=e,G}()&&{passive:!1};N(r)?(null==p||p.addEventListener("touchmove",f.moveHandler,v),null==p||p.addEventListener("touchend",f.upHandler,v)):(null==p||p.addEventListener("mousemove",m.moveHandler,v),null==p||p.addEventListener("mouseup",m.upHandler,v)),t.setColumnSizingInfo((e=>({...e,startOffset:s,startSize:i,deltaOffset:0,deltaPercentage:0,columnSizingStart:a,isResizingColumn:l.id})))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(n=e.initialState.columnSizingInfo)?n:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},e.getTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getLeftTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getCenterTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getRightTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0}}};let G=null;function N(e){return"touchstart"===e.type}function H(e,t){return t?"center"===t?e.getCenterVisibleLeafColumns():"left"===t?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const A={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:o("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection((n=>{t="undefined"!==typeof t?t:!e.getIsAllRowsSelected();const l={...n},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach((e=>{e.getCanSelect()&&(l[e.id]=!0)})):o.forEach((e=>{delete l[e.id]})),l}))},e.toggleAllPageRowsSelected=t=>e.setRowSelection((n=>{const l="undefined"!==typeof t?t:!e.getIsAllPageRowsSelected(),o={...n};return e.getRowModel().rows.forEach((t=>{D(o,t.id,l,!0,e)})),o})),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=a((()=>[e.getState().rowSelection,e.getCoreRowModel()]),((t,n)=>Object.keys(t).length?L(e,n):{rows:[],flatRows:[],rowsById:{}}),s(e.options,"debugTable")),e.getFilteredSelectedRowModel=a((()=>[e.getState().rowSelection,e.getFilteredRowModel()]),((t,n)=>Object.keys(t).length?L(e,n):{rows:[],flatRows:[],rowsById:{}}),s(e.options,"debugTable")),e.getGroupedSelectedRowModel=a((()=>[e.getState().rowSelection,e.getSortedRowModel()]),((t,n)=>Object.keys(t).length?L(e,n):{rows:[],flatRows:[],rowsById:{}}),s(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let l=Boolean(t.length&&Object.keys(n).length);return l&&t.some((e=>e.getCanSelect()&&!n[e.id]))&&(l=!1),l},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter((e=>e.getCanSelect())),{rowSelection:n}=e.getState();let l=!!t.length;return l&&t.some((e=>!n[e.id]))&&(l=!1),l},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter((e=>e.getCanSelect())).some((e=>e.getIsSelected()||e.getIsSomeSelected()))},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,l)=>{const o=e.getIsSelected();t.setRowSelection((r=>{var i;if(n="undefined"!==typeof n?n:!o,e.getCanSelect()&&o===n)return r;const a={...r};return D(a,e.id,n,null==(i=null==l?void 0:l.selectChildren)||i,t),a}))},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return j(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return"some"===T(e,n)},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return"all"===T(e,n)},e.getCanSelect=()=>{var n;return"function"===typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},e.getCanSelectSubRows=()=>{var n;return"function"===typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},e.getCanMultiSelect=()=>{var n;return"function"===typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return n=>{var l;t&&e.toggleSelected(null==(l=n.target)?void 0:l.checked)}}}},D=(e,t,n,l,o)=>{var r;const i=o.getRow(t,!0);n?(i.getCanMultiSelect()||Object.keys(e).forEach((t=>delete e[t])),i.getCanSelect()&&(e[t]=!0)):delete e[t],l&&null!=(r=i.subRows)&&r.length&&i.getCanSelectSubRows()&&i.subRows.forEach((t=>D(e,t.id,n,l,o)))};function L(e,t){const n=e.getState().rowSelection,l=[],o={},r=function(e,t){return e.map((e=>{var t;const i=j(e,n);if(i&&(l.push(e),o[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:r(e.subRows)}),i)return e})).filter(Boolean)};return{rows:r(t.rows),flatRows:l,rowsById:o}}function j(e,t){var n;return null!=(n=t[e.id])&&n}function T(e,t,n){var l;if(null==(l=e.subRows)||!l.length)return!1;let o=!0,r=!1;return e.subRows.forEach((e=>{if((!r||o)&&(e.getCanSelect()&&(j(e,t)?r=!0:o=!1),e.subRows&&e.subRows.length)){const n=T(e,t);"all"===n?r=!0:"some"===n?(r=!0,o=!1):o=!1}})),o?"all":!!r&&"some"}const k=/([0-9]+)/gm;function B(e,t){return e===t?0:e>t?1:-1}function q(e){return"number"===typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"===typeof e?e:""}function $(e,t){const n=e.split(k).filter(Boolean),l=t.split(k).filter(Boolean);for(;n.length&&l.length;){const e=n.shift(),t=l.shift(),o=parseInt(e,10),r=parseInt(t,10),i=[o,r].sort();if(isNaN(i[0])){if(e>t)return 1;if(t>e)return-1}else{if(isNaN(i[1]))return isNaN(o)?-1:1;if(o>r)return 1;if(r>o)return-1}}return n.length-l.length}const U={alphanumeric:(e,t,n)=>$(q(e.getValue(n)).toLowerCase(),q(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>$(q(e.getValue(n)),q(t.getValue(n))),text:(e,t,n)=>B(q(e.getValue(n)).toLowerCase(),q(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>B(q(e.getValue(n)),q(t.getValue(n))),datetime:(e,t,n)=>{const l=e.getValue(n),o=t.getValue(n);return l>o?1:l<o?-1:0},basic:(e,t,n)=>B(e.getValue(n),t.getValue(n))},K=[g,{getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:o("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility((t=>({...t,[e.id]:null!=n?n:!e.getIsVisible()})))},e.getIsVisible=()=>{var n,l;const o=e.columns;return null==(n=o.length?o.some((e=>e.getIsVisible())):null==(l=t.getState().columnVisibility)?void 0:l[e.id])||n},e.getCanHide=()=>{var n,l;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(l=t.options.enableHiding)||l)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=a((()=>[e.getAllCells(),t.getState().columnVisibility]),(e=>e.filter((e=>e.column.getIsVisible()))),s(t.options,"debugRows")),e.getVisibleCells=a((()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()]),((e,t,n)=>[...e,...t,...n]),s(t.options,"debugRows"))},createTable:e=>{const t=(t,n)=>a((()=>[n(),n().filter((e=>e.getIsVisible())).map((e=>e.id)).join("_")]),(e=>e.filter((e=>null==e.getIsVisible?void 0:e.getIsVisible()))),s(e.options,"debugColumns"));e.getVisibleFlatColumns=t(0,(()=>e.getAllFlatColumns())),e.getVisibleLeafColumns=t(0,(()=>e.getAllLeafColumns())),e.getLeftVisibleLeafColumns=t(0,(()=>e.getLeftLeafColumns())),e.getRightVisibleLeafColumns=t(0,(()=>e.getRightLeafColumns())),e.getCenterVisibleLeafColumns=t(0,(()=>e.getCenterLeafColumns())),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},e.toggleAllColumnsVisible=t=>{var n;t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce(((e,n)=>({...e,[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())})),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some((e=>!(null!=e.getIsVisible&&e.getIsVisible()))),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some((e=>null==e.getIsVisible?void 0:e.getIsVisible())),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}},V,O,m,M,{createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},{getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:o("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const l=null==(n=e.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[t.id])?void 0:n.getValue();return"string"===typeof l||"number"===typeof l}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,l,o,r;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(l=t.options.enableGlobalFilter)||l)&&(null==(o=t.options.enableFilters)||o)&&(null==(r=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||r)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>I.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:l}=e.options;return r(l)?l:"auto"===l?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[l])?t:I[l]},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:o("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let l=!1;for(const t of n){const n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return U.datetime;if("string"===typeof n&&(l=!0,n.split(k).length>1))return U.alphanumeric}return l?U.text:U.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return"string"===typeof(null==n?void 0:n.getValue(e.id))?"asc":"desc"},e.getSortingFn=()=>{var n,l;if(!e)throw new Error;return r(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(l=t.options.sortingFns)?void 0:l[e.columnDef.sortingFn])?n:U[e.columnDef.sortingFn]},e.toggleSorting=(n,l)=>{const o=e.getNextSortingOrder(),r="undefined"!==typeof n&&null!==n;t.setSorting((i=>{const a=null==i?void 0:i.find((t=>t.id===e.id)),s=null==i?void 0:i.findIndex((t=>t.id===e.id));let u,d=[],g=r?n:"desc"===o;var c;(u=null!=i&&i.length&&e.getCanMultiSort()&&l?a?"toggle":"add":null!=i&&i.length&&s!==i.length-1?"replace":a?"toggle":"replace","toggle"===u&&(r||o||(u="remove")),"add"===u)?(d=[...i,{id:e.id,desc:g}],d.splice(0,d.length-(null!=(c=t.options.maxMultiSortColCount)?c:Number.MAX_SAFE_INTEGER))):d="toggle"===u?i.map((t=>t.id===e.id?{...t,desc:g}:t)):"remove"===u?i.filter((t=>t.id!==e.id)):[{id:e.id,desc:g}];return d}))},e.getFirstSortDir=()=>{var n,l;return(null!=(n=null!=(l=e.columnDef.sortDescFirst)?l:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir())?"desc":"asc"},e.getNextSortingOrder=n=>{var l,o;const r=e.getFirstSortDir(),i=e.getIsSorted();return i?!!(i===r||null!=(l=t.options.enableSortingRemoval)&&!l||n&&null!=(o=t.options.enableMultiRemove)&&!o)&&("desc"===i?"asc":"desc"):r},e.getCanSort=()=>{var n,l;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(l=t.options.enableSorting)||l)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,l;return null!=(n=null!=(l=e.columnDef.enableMultiSort)?l:t.options.enableMultiSort)?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const l=null==(n=t.getState().sorting)?void 0:n.find((t=>t.id===e.id));return!!l&&(l.desc?"desc":"asc")},e.getSortIndex=()=>{var n,l;return null!=(n=null==(l=t.getState().sorting)?void 0:l.findIndex((t=>t.id===e.id)))?n:-1},e.clearSorting=()=>{t.setSorting((t=>null!=t&&t.length?t.filter((t=>t.id!==e.id)):[]))},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return l=>{n&&(null==l.persist||l.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(l))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,l;e.setSorting(t?[]:null!=(n=null==(l=e.initialState)?void 0:l.sorting)?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},E,{getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:o("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var l,o;if(t){if(null!=(l=null!=(o=e.options.autoResetAll)?o:e.options.autoResetExpanded)?l:!e.options.manualExpanding){if(n)return;n=!0,e._queue((()=>{e.resetExpanded(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var n,l;e.setExpanded(t?{}:null!=(n=null==(l=e.initialState)?void 0:l.expanded)?n:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some((e=>e.getCanExpand())),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{const t=e.getState().expanded;return"boolean"===typeof t?!0===t:!!Object.keys(t).length&&!e.getRowModel().flatRows.some((e=>!e.getIsExpanded()))},e.getExpandedDepth=()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach((e=>{const n=e.split(".");t=Math.max(t,n.length)})),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded((l=>{var o;const r=!0===l||!(null==l||!l[e.id]);let i={};if(!0===l?Object.keys(t.getRowModel().rowsById).forEach((e=>{i[e]=!0})):i=l,n=null!=(o=n)?o:!r,!r&&n)return{...i,[e.id]:!0};if(r&&!n){const{[e.id]:t,...n}=i;return n}return l}))},e.getIsExpanded=()=>{var n;const l=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===l||(null==l?void 0:l[e.id]))},e.getCanExpand=()=>{var n,l,o;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(l=t.options.enableExpanding)||l)&&!(null==(o=e.subRows)||!o.length)},e.getIsAllParentsExpanded=()=>{let n=!0,l=e;for(;n&&l.parentId;)l=t.getRow(l.parentId,!0),n=l.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},{getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:o("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var l,o;if(t){if(null!=(l=null!=(o=e.options.autoResetAll)?o:e.options.autoResetPageIndex)?l:!e.options.manualPagination){if(n)return;n=!0,e._queue((()=>{e.resetPageIndex(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange((e=>l(t,e))),e.resetPagination=t=>{var n;e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(n=e.initialState.pagination)?n:{pageIndex:0,pageSize:10})},e.setPageIndex=t=>{e.setPagination((n=>{let o=l(t,n.pageIndex);const r="undefined"===typeof e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return o=Math.max(0,Math.min(o,r)),{...n,pageIndex:o}}))},e.resetPageIndex=t=>{var n,l;e.setPageIndex(t?0:null!=(n=null==(l=e.initialState)||null==(l=l.pagination)?void 0:l.pageIndex)?n:0)},e.resetPageSize=t=>{var n,l;e.setPageSize(t?10:null!=(n=null==(l=e.initialState)||null==(l=l.pagination)?void 0:l.pageSize)?n:10)},e.setPageSize=t=>{e.setPagination((e=>{const n=Math.max(1,l(t,e.pageSize)),o=e.pageSize*e.pageIndex,r=Math.floor(o/n);return{...e,pageIndex:r,pageSize:n}}))},e.setPageCount=t=>e.setPagination((n=>{var o;let r=l(t,null!=(o=e.options.pageCount)?o:-1);return"number"===typeof r&&(r=Math.max(-1,r)),{...n,pageCount:r}})),e.getPageOptions=a((()=>[e.getPageCount()]),(e=>{let t=[];return e&&e>0&&(t=[...new Array(e)].fill(null).map(((e,t)=>t))),t}),s(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return-1===n||0!==n&&t<n-1},e.previousPage=()=>e.setPageIndex((e=>e-1)),e.nextPage=()=>e.setPageIndex((e=>e+1)),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var t;return null!=(t=e.options.rowCount)?t:e.getPrePaginationRowModel().rows.length}}},{getInitialState:e=>({rowPinning:{top:[],bottom:[]},...e}),getDefaultOptions:e=>({onRowPinningChange:o("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,l,o)=>{const r=l?e.getLeafRows().map((e=>{let{id:t}=e;return t})):[],i=o?e.getParentRows().map((e=>{let{id:t}=e;return t})):[],a=new Set([...i,e.id,...r]);t.setRowPinning((e=>{var t,l,o,r,i,s;return"bottom"===n?{top:(null!=(o=null==e?void 0:e.top)?o:[]).filter((e=>!(null!=a&&a.has(e)))),bottom:[...(null!=(r=null==e?void 0:e.bottom)?r:[]).filter((e=>!(null!=a&&a.has(e)))),...Array.from(a)]}:"top"===n?{top:[...(null!=(i=null==e?void 0:e.top)?i:[]).filter((e=>!(null!=a&&a.has(e)))),...Array.from(a)],bottom:(null!=(s=null==e?void 0:e.bottom)?s:[]).filter((e=>!(null!=a&&a.has(e))))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter((e=>!(null!=a&&a.has(e)))),bottom:(null!=(l=null==e?void 0:e.bottom)?l:[]).filter((e=>!(null!=a&&a.has(e))))}}))},e.getCanPin=()=>{var n;const{enableRowPinning:l,enablePinning:o}=t.options;return"function"===typeof l?l(e):null==(n=null!=l?l:o)||n},e.getIsPinned=()=>{const n=[e.id],{top:l,bottom:o}=t.getState().rowPinning,r=n.some((e=>null==l?void 0:l.includes(e))),i=n.some((e=>null==o?void 0:o.includes(e)));return r?"top":!!i&&"bottom"},e.getPinnedIndex=()=>{var n,l;const o=e.getIsPinned();if(!o)return-1;const r=null==(n="top"===o?t.getTopRows():t.getBottomRows())?void 0:n.map((e=>{let{id:t}=e;return t}));return null!=(l=null==r?void 0:r.indexOf(e.id))?l:-1}},createTable:e=>{e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,l;return e.setRowPinning(t?{top:[],bottom:[]}:null!=(n=null==(l=e.initialState)?void 0:l.rowPinning)?n:{top:[],bottom:[]})},e.getIsSomeRowsPinned=t=>{var n;const l=e.getState().rowPinning;var o,r;return t?Boolean(null==(n=l[t])?void 0:n.length):Boolean((null==(o=l.top)?void 0:o.length)||(null==(r=l.bottom)?void 0:r.length))},e._getPinnedRows=(t,n,l)=>{var o;return(null==(o=e.options.keepPinnedRows)||o?(null!=n?n:[]).map((t=>{const n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null})):(null!=n?n:[]).map((e=>t.find((t=>t.id===e))))).filter(Boolean).map((e=>({...e,position:l})))},e.getTopRows=a((()=>[e.getRowModel().rows,e.getState().rowPinning.top]),((t,n)=>e._getPinnedRows(t,n,"top")),s(e.options,"debugRows")),e.getBottomRows=a((()=>[e.getRowModel().rows,e.getState().rowPinning.bottom]),((t,n)=>e._getPinnedRows(t,n,"bottom")),s(e.options,"debugRows")),e.getCenterRows=a((()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom]),((e,t,n)=>{const l=new Set([...null!=t?t:[],...null!=n?n:[]]);return e.filter((e=>!l.has(e.id)))}),s(e.options,"debugRows"))}},A,z];function X(e){var t,n;const o=[...K,...null!=(t=e._features)?t:[]];let r={_features:o};const i=r._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(r))),{});let u={...null!=(n=e.initialState)?n:{}};r._features.forEach((e=>{var t;u=null!=(t=null==e.getInitialState?void 0:e.getInitialState(u))?t:u}));const d=[];let g=!1;const c={_features:o,options:{...i,...e},initialState:u,_queue:e=>{d.push(e),g||(g=!0,Promise.resolve().then((()=>{for(;d.length;)d.shift()();g=!1})).catch((e=>setTimeout((()=>{throw e})))))},reset:()=>{r.setState(r.initialState)},setOptions:e=>{const t=l(e,r.options);r.options=(e=>r.options.mergeOptions?r.options.mergeOptions(i,e):{...i,...e})(t)},getState:()=>r.options.state,setState:e=>{null==r.options.onStateChange||r.options.onStateChange(e)},_getRowId:(e,t,n)=>{var l;return null!=(l=null==r.options.getRowId?void 0:r.options.getRowId(e,t,n))?l:`${n?[n.id,t].join("."):t}`},getCoreRowModel:()=>(r._getCoreRowModel||(r._getCoreRowModel=r.options.getCoreRowModel(r)),r._getCoreRowModel()),getRowModel:()=>r.getPaginationRowModel(),getRow:(e,t)=>{let n=(t?r.getPrePaginationRowModel():r.getRowModel()).rowsById[e];if(!n&&(n=r.getCoreRowModel().rowsById[e],!n))throw new Error;return n},_getDefaultColumnDef:a((()=>[r.options.defaultColumn]),(e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{const t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:n.toString())?t:null},...r._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef())),{}),...e}}),s(e,"debugColumns")),_getColumnDefs:()=>r.options.columns,getAllColumns:a((()=>[r._getColumnDefs()]),(e=>{const t=function(e,n,l){return void 0===l&&(l=0),e.map((e=>{const o=function(e,t,n,l){var o,r;const i={...e._getDefaultColumnDef(),...t},u=i.accessorKey;let d,g=null!=(o=null!=(r=i.id)?r:u?"function"===typeof String.prototype.replaceAll?u.replaceAll(".","_"):u.replace(/\./g,"_"):void 0)?o:"string"===typeof i.header?i.header:void 0;if(i.accessorFn?d=i.accessorFn:u&&(d=u.includes(".")?e=>{let t=e;for(const l of u.split(".")){var n;t=null==(n=t)?void 0:n[l]}return t}:e=>e[i.accessorKey]),!g)throw new Error;let c={id:`${String(g)}`,accessorFn:d,parent:l,depth:n,columnDef:i,columns:[],getFlatColumns:a((()=>[!0]),(()=>{var e;return[c,...null==(e=c.columns)?void 0:e.flatMap((e=>e.getFlatColumns()))]}),s(e.options,"debugColumns")),getLeafColumns:a((()=>[e._getOrderColumnsFn()]),(e=>{var t;if(null!=(t=c.columns)&&t.length){let t=c.columns.flatMap((e=>e.getLeafColumns()));return e(t)}return[c]}),s(e.options,"debugColumns"))};for(const a of e._features)null==a.createColumn||a.createColumn(c,e);return c}(r,e,l,n),i=e;return o.columns=i.columns?t(i.columns,o,l+1):[],o}))};return t(e)}),s(e,"debugColumns")),getAllFlatColumns:a((()=>[r.getAllColumns()]),(e=>e.flatMap((e=>e.getFlatColumns()))),s(e,"debugColumns")),_getAllFlatColumnsById:a((()=>[r.getAllFlatColumns()]),(e=>e.reduce(((e,t)=>(e[t.id]=t,e)),{})),s(e,"debugColumns")),getAllLeafColumns:a((()=>[r.getAllColumns(),r._getOrderColumnsFn()]),((e,t)=>t(e.flatMap((e=>e.getLeafColumns())))),s(e,"debugColumns")),getColumn:e=>r._getAllFlatColumnsById()[e]};Object.assign(r,c);for(let l=0;l<r._features.length;l++){const e=r._features[l];null==e||null==e.createTable||e.createTable(r)}return r}function Z(){return e=>a((()=>[e.options.data]),(t=>{const n={rows:[],flatRows:[],rowsById:{}},l=function(t,o,r){void 0===o&&(o=0);const i=[];for(let s=0;s<t.length;s++){const u=p(e,e._getRowId(t[s],s,r),t[s],s,o,void 0,null==r?void 0:r.id);var a;if(n.flatRows.push(u),n.rowsById[u.id]=u,i.push(u),e.options.getSubRows)u.originalSubRows=e.options.getSubRows(t[s],s),null!=(a=u.originalSubRows)&&a.length&&(u.subRows=l(u.originalSubRows,o+1,u))}return i};return n.rows=l(t),n}),s(e.options,"debugTable",0,(()=>e._autoResetPageIndex())))}function W(){return e=>a((()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows]),((e,t,n)=>!t.rows.length||!0!==e&&!Object.keys(null!=e?e:{}).length?t:n?J(t):t),s(e.options,"debugTable"))}function J(e){const t=[],n=e=>{var l;t.push(e),null!=(l=e.subRows)&&l.length&&e.getIsExpanded()&&e.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function Q(){return e=>a((()=>[e.getState().grouping,e.getPreGroupedRowModel()]),((t,n)=>{if(!n.rows.length||!t.length)return n.rows.forEach((e=>{e.depth=0,e.parentId=void 0})),n;const l=t.filter((t=>e.getColumn(t))),o=[],r={},a=function(t,n,s){if(void 0===n&&(n=0),n>=l.length)return t.map((e=>(e.depth=n,o.push(e),r[e.id]=e,e.subRows&&(e.subRows=a(e.subRows,n+1,e.id)),e)));const u=l[n],d=function(e,t){const n=new Map;return e.reduce(((e,n)=>{const l=`${n.getGroupingValue(t)}`,o=e.get(l);return o?o.push(n):e.set(l,[n]),e}),n)}(t,u),g=Array.from(d.entries()).map(((t,d)=>{let[g,c]=t,m=`${u}:${g}`;m=s?`${s}>${m}`:m;const f=a(c,n+1,m);f.forEach((e=>{e.parentId=m}));const v=n?i(c,(e=>e.subRows)):c,w=p(e,m,v[0].original,d,n,void 0,s);return Object.assign(w,{groupingColumnId:u,groupingValue:g,subRows:f,leafRows:v,getValue:t=>{if(l.includes(t)){if(w._valuesCache.hasOwnProperty(t))return w._valuesCache[t];var n;if(c[0])w._valuesCache[t]=null!=(n=c[0].getValue(t))?n:void 0;return w._valuesCache[t]}if(w._groupingValuesCache.hasOwnProperty(t))return w._groupingValuesCache[t];const o=e.getColumn(t),r=null==o?void 0:o.getAggregationFn();return r?(w._groupingValuesCache[t]=r(t,v,c),w._groupingValuesCache[t]):void 0}}),f.forEach((e=>{o.push(e),r[e.id]=e})),w}));return g},s=a(n.rows,0);return s.forEach((e=>{o.push(e),r[e.id]=e})),{rows:s,flatRows:o,rowsById:r}}),s(e.options,"debugTable",0,(()=>{e._queue((()=>{e._autoResetExpanded(),e._autoResetPageIndex()}))})))}function Y(){return e=>a((()=>[e.getState().sorting,e.getPreSortedRowModel()]),((t,n)=>{if(!n.rows.length||null==t||!t.length)return n;const l=e.getState().sorting,o=[],r=l.filter((t=>{var n;return null==(n=e.getColumn(t.id))?void 0:n.getCanSort()})),i={};r.forEach((t=>{const n=e.getColumn(t.id);n&&(i[t.id]={sortUndefined:n.columnDef.sortUndefined,invertSorting:n.columnDef.invertSorting,sortingFn:n.getSortingFn()})}));const a=e=>{const t=e.map((e=>({...e})));return t.sort(((e,t)=>{for(let l=0;l<r.length;l+=1){var n;const o=r[l],a=i[o.id],s=a.sortUndefined,u=null!=(n=null==o?void 0:o.desc)&&n;let d=0;if(s){const n=void 0===e.getValue(o.id),l=void 0===t.getValue(o.id);if(n||l){if("first"===s)return n?-1:1;if("last"===s)return n?1:-1;d=n&&l?0:n?s:-s}}if(0===d&&(d=a.sortingFn(e,t,o.id)),0!==d)return u&&(d*=-1),a.invertSorting&&(d*=-1),d}return e.index-t.index})),t.forEach((e=>{var t;o.push(e),null!=(t=e.subRows)&&t.length&&(e.subRows=a(e.subRows))})),t};return{rows:a(n.rows),flatRows:o,rowsById:n.rowsById}}),s(e.options,"debugTable",0,(()=>e._autoResetPageIndex())))}},36590:(e,t,n)=>{n.d(t,{K:()=>r});var l=n(24953),o=n(85720);const r=e=>{var t,n,r,i,a,s,u,d,g,c,p,m,f;const v=Object.assign(Object.assign({},e),{enableColumnPinning:null!==(t=e.enableColumnPinning)&&void 0!==t&&t,enableColumnResizing:null!==(n=e.enableColumnResizing)&&void 0!==n&&n,enableExpanding:null!==(r=e.enableExpanding)&&void 0!==r&&r,enableGrouping:null!==(i=e.enableGrouping)&&void 0!==i&&i,enableMultiRowSelection:null!==(a=e.enableMultiRowSelection)&&void 0!==a&&a,enableRowSelection:null!==(s=e.enableRowSelection)&&void 0!==s&&s,enableSorting:null!==(u=e.enableSorting)&&void 0!==u&&u,getCoreRowModel:null!==(d=e.getCoreRowModel)&&void 0!==d?d:(0,l.HT)(),getExpandedRowModel:e.enableExpanding?null!==(g=e.getExpandedRowModel)&&void 0!==g?g:(0,l.D0)():void 0,getGroupedRowModel:e.enableGrouping?null!==(c=e.getGroupedRowModel)&&void 0!==c?c:(0,l.cU)():void 0,getSortedRowModel:e.enableSorting?null!==(p=e.getSortedRowModel)&&void 0!==p?p:(0,l.h5)():void 0,manualGrouping:null!==(m=e.manualGrouping)&&void 0!==m&&m,manualSorting:null!==(f=e.manualSorting)&&void 0!==f&&f});return(0,o.N4)(v)}},74321:(e,t,n)=>{n.d(t,{S:()=>u});var l=n(59284),o=n(64222),r=n(46898);function i(e){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 17",width:"16",height:"16",fill:"currentColor"},e),l.createElement("path",{d:"M4 7h9v3H4z"}))}function a(e){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 10",width:"16",height:"16",fill:"currentColor"},e),l.createElement("path",{d:"M.49 5.385l1.644-1.644 4.385 4.385L4.874 9.77.49 5.385zm4.384 1.096L10.356 1 12 2.644 6.519 8.126 4.874 6.48v.001z"}))}const s=(0,n(69220).om)("checkbox"),u=l.forwardRef((function(e,t){const{size:n="m",indeterminate:u,disabled:d=!1,content:g,children:c,title:p,style:m,className:f,qa:v}=e,{checked:w,inputProps:h}=(0,o.v)(e),b=g||c,C=l.createElement("span",{className:s("indicator")},l.createElement("span",{className:s("icon"),"aria-hidden":!0},u?l.createElement(i,{className:s("icon-svg",{type:"dash"})}):l.createElement(a,{className:s("icon-svg",{type:"tick"})})),l.createElement("input",Object.assign({},h,{className:s("control")})),l.createElement("span",{className:s("outline")}));return l.createElement(r.m,{ref:t,title:p,style:m,size:n,disabled:d,className:s({size:n,disabled:d,indeterminate:u,checked:w},f),qa:v,control:C},b)}))},76938:(e,t,n)=>{n.d(t,{A:()=>o});var l=n(59284);const o=e=>l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),l.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 1.5a6.5 6.5 0 1 1-6.445 7.348.75.75 0 1 1 1.487-.194A5.001 5.001 0 1 0 4.43 4.5h1.32a.75.75 0 0 1 0 1.5h-3A.75.75 0 0 1 2 5.25v-3a.75.75 0 0 1 1.5 0v1.06A6.48 6.48 0 0 1 8 1.5",clipRule:"evenodd"}))},85720:(e,t,n)=>{n.d(t,{Kv:()=>r,N4:()=>i});var l=n(59284),o=n(24953);function r(e,t){return e?function(e){return"function"===typeof e&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}(n=e)||"function"===typeof n||function(e){return"object"===typeof e&&"symbol"===typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(n)?l.createElement(e,t):e:null;var n}function i(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=l.useState((()=>({current:(0,o.ZR)(t)}))),[r,i]=l.useState((()=>n.current.initialState));return n.current.setOptions((t=>({...t,...e,state:{...r,...e.state},onStateChange:t=>{i(t),null==e.onStateChange||e.onStateChange(t)}}))),n.current}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/7341.6e678529.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/9172.f332051f.chunk.js.LICENSE.txt index 23ee32e19b..23ee32e19b 100644 --- a/ydb/core/viewer/monitoring/static/js/7341.6e678529.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/9172.f332051f.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/9300.89daa9ec.chunk.js b/ydb/core/viewer/monitoring/static/js/9300.89daa9ec.chunk.js new file mode 100644 index 0000000000..96576b6473 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/9300.89daa9ec.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[9300],{2102:(e,t,r)=>{r.d(t,{A:()=>n});var a=r(77506),o=r(60712);const l=(0,a.cn)("ydb-diagnostic-card");function n({children:e,className:t,active:r,size:a="m",interactive:n=!0}){return(0,o.jsx)("div",{className:l({active:r,size:a,interactive:n},t),children:e})}},7117:(e,t,r)=>{r.d(t,{G:()=>ee});var a=r(59284),o=r(44508),l=r(98167),n=r(89073),s=r(86782),i=r(67028),u=r(15298),d=r(90182),p=r(88610);function c(){const e=(0,d.YQ)();return{problemFilter:(0,d.N4)(p.yV),handleProblemFilterChange:t=>{e((0,p.$u)(t))}}}var m=r(12888),h=r(43951),g=r(78034),y=r(71708),b=r(62710),f=r(98089),C=r(69775),v=r(24555),F=r(28539),N=r(9252),R=r(95963),x=r(64934),P=r(44433),j=r(48372);const S=JSON.parse('{"nodes":"Nodes","empty.default":"No such nodes","no-nodes-groups":"No nodes groups","controls_search-placeholder":"Host name","controls_group-by-placeholder":"Group by:","controls_peer-role-label":"Peer role:","database":"database","static":"static","other":"other","any":"any"}'),w=(0,j.g4)("ydb-nodes",{en:S}),B=["database","static","other","any"],G={get database(){return w("database")},get static(){return w("static")},get other(){return w("other")},get any(){return w("any")}};var T=r(60712);function I({value:e="database",onChange:t}){return(0,T.jsx)(P.a,{value:e,onUpdate:t,children:B.map((e=>(0,T.jsx)(P.a.Option,{value:e,children:G[e]},e)))})}const _="nodesTableSelectedColumns",E=["NodeId","Host","Uptime","CPU","RAM","Version","Tablets"],U=["NodeId"],A=["SystemState","Host","DC","Rack","Database","Version","Uptime"];function L(e,t){return t?e:e.filter((e=>"SystemState"!==e))}var V=r(59109);const k=(0,r(77506).cn)("ydb-nodes"),O=e=>k("node",{unavailable:(0,g.X7)(e)}),q=e=>e&&403===e.status?(0,T.jsx)(V.O,{position:"left"}):(0,T.jsx)(o.o,{error:e});var M=r(67087);function D(e){var t;const[r,a]=(0,M.useQueryParams)({uptimeFilter:M.StringParam,peerRole:M.StringParam,search:M.StringParam,nodesGroupBy:M.StringParam}),o=g.Bm.parse(r.uptimeFilter),l=null!==(t=r.search)&&void 0!==t?t:"",n=(s=r.peerRole,B.find((e=>e===s)));var s;const u=(0,i.DM)(),d=function(e,t,r){return L(t,r).find((t=>t===e))}(r.nodesGroupBy,null!==e&&void 0!==e?e:[],u);return{uptimeFilter:o,searchValue:l,peerRoleFilter:n,groupByParam:d,handleSearchQueryChange:e=>{a({search:e||void 0},"replaceIn")},handleUptimeFilterChange:e=>{a({uptimeFilter:e},"replaceIn")},handlePeerRoleFilterChange:e=>{a({peerRole:e},"replaceIn")},handleGroupByParamChange:e=>{a({nodesGroupBy:e},"replaceIn")}}}function K({withGroupBySelect:e,groupByParams:t=[],withPeerRoleFilter:r,columnsToSelect:o,handleSelectedColumnsUpdate:l,entitiesCountCurrent:n,entitiesCountTotal:u,entitiesLoading:d}){const{searchValue:p,uptimeFilter:m,peerRoleFilter:h,groupByParam:g,handleSearchQueryChange:y,handleUptimeFilterChange:b,handlePeerRoleFilterChange:P,handleGroupByParamChange:j}=D(t),{problemFilter:S,handleProblemFilterChange:B}=c(),G=(0,i.DM)(),_=function(e,t){return L(e,t).map((e=>({value:e,content:(0,s.kn)(e)})))}(t,G),E=(0,i.WF)(),U=r&&E;return(0,T.jsxs)(a.Fragment,{children:[(0,T.jsx)(R.v,{onChange:y,placeholder:w("controls_search-placeholder"),width:238,value:p}),G&&e?null:(0,T.jsx)(N.k,{value:S,onChange:B}),e?null:(0,T.jsx)(x.j,{value:m,onChange:b}),U?(0,T.jsxs)(a.Fragment,{children:[(0,T.jsx)(f.E,{variant:"body-2",children:w("controls_peer-role-label")}),(0,T.jsx)(I,{value:h,onChange:P})]}):null,(0,T.jsx)(C.O,{popupWidth:200,items:o,showStatus:!0,onUpdate:l,sortable:!1}),e?(0,T.jsxs)(a.Fragment,{children:[(0,T.jsx)(f.E,{variant:"body-2",children:w("controls_group-by-placeholder")}),(0,T.jsx)(v.l,{hasClear:!0,placeholder:"-",width:150,defaultValue:g?[g]:void 0,onUpdate:e=>{j(e[0])},options:_,className:k("group-by-select"),popupClassName:k("group-by-popup")})]}):null,(0,T.jsx)(F.T,{current:n,total:u,label:w("nodes"),loading:d})]})}var W=r(78524),Q=r(40427),$=r(11906),H=r(69464),X=r(40781);const z=async e=>{const{type:t="any",storage:r=!1,tablets:a=!0,limit:o,offset:l,sortParams:n,filters:i,columnsIds:u}=e,{sortOrder:d,columnId:p}=null!==n&&void 0!==n?n:{},{path:c,database:m,searchValue:h,problemFilter:y,uptimeFilter:b,peerRoleFilter:f,filterGroup:C,filterGroupBy:v}=null!==i&&void 0!==i?i:{},F=(0,s.kU)(p),N=F?(0,H.T)(F,d):void 0,R=(0,X.R)(u,s.fN),x=await window.api.viewer.getNodes({type:t,storage:r,tablets:a,limit:o,offset:l,sort:N,path:c,database:m,filter:h,problems_only:(0,g.AB)(y),uptime:(0,g.Fo)(b),filter_peer_role:f,filter_group:C,filter_group_by:v,fieldsRequired:R}),P=(0,$.N)(x);return{data:P.Nodes||[],found:P.FoundNodes||0,total:P.TotalNodes||0}};function Y({path:e,database:t,searchValue:r,problemFilter:o,uptimeFilter:l,peerRoleFilter:n,filterGroup:i,filterGroupBy:u,columns:d,parentRef:p,renderControls:c,initialEntitiesCount:m}){const h=a.useMemo((()=>({path:e,database:t,searchValue:r,problemFilter:o,uptimeFilter:l,peerRoleFilter:n,filterGroup:i,filterGroupBy:u})),[e,t,r,o,l,n,i,u]);return(0,T.jsx)(Q.k5,{columnsWidthLSKey:s.zO,parentRef:p,columns:d,fetchData:z,limit:50,initialEntitiesCount:m,renderControls:c,renderErrorMessage:q,renderEmptyDataMessage:()=>"All"!==o||l!==g.cW.All?(0,T.jsx)(W.v,{name:"thumbsUp",width:"200"}):w("empty.default"),getRowClassName:O,filters:h,tableName:"nodes"})}var J=r(78762);function Z(e){return[(0,J._E)(),(0,J.Nh)(e),(0,J.eT)(),(0,J.uk)(),(0,J.OX)(),(0,J.jl)(),(0,J.fr)(),(0,J.kv)(),(0,J.pH)(),(0,J.iX)(),(0,J.ID)(),(0,J.Rn)(),(0,J.qp)(e)].map((e=>({...e,sortable:(0,s.sp)(e.name)})))}function ee({path:e,database:t,parentRef:r,additionalNodesProps:o,withPeerRoleFilter:n,columns:u=Z({database:t,getNodeRef:null===o||void 0===o?void 0:o.getNodeRef}),defaultColumnsIds:d=E,requiredColumnsIds:p=U,selectedColumnsKey:h=_,groupByParams:y=A}){const{uptimeFilter:b,groupByParam:f,handleUptimeFilterChange:C}=D(y),{problemFilter:v,handleProblemFilterChange:F}=c(),N=(0,i.Pm)(),R=(0,i.Ye)(),x=(0,m.X)(),P=a.useMemo((()=>x?u:u.filter((e=>!(0,s.xd)(e.name)))),[u,x]);a.useEffect((()=>{!R||"All"===v&&b===g.cW.All||(F("All"),C(g.cW.All))}),[F,C,v,b,R]);return(0,T.jsx)(l.r,{loading:!N,children:R&&f?(0,T.jsx)(re,{path:e,database:t,parentRef:r,withPeerRoleFilter:n,columns:P,defaultColumnsIds:d,requiredColumnsIds:p,selectedColumnsKey:h,groupByParams:y}):(0,T.jsx)(te,{path:e,database:t,parentRef:r,withPeerRoleFilter:n,columns:P,defaultColumnsIds:d,requiredColumnsIds:p,selectedColumnsKey:h,groupByParams:y})})}function te({path:e,database:t,parentRef:r,withPeerRoleFilter:a,columns:o,defaultColumnsIds:l,requiredColumnsIds:n,selectedColumnsKey:u,groupByParams:d}){const{searchValue:p,uptimeFilter:m,peerRoleFilter:g}=D(d),{problemFilter:y}=c(),b=(0,i.Ye)(),{columnsToShow:f,columnsToSelect:C,setColumns:v}=(0,h.K)(o,u,s.uG,l,n);return(0,T.jsx)(Y,{path:e,database:t,searchValue:p,problemFilter:y,uptimeFilter:m,peerRoleFilter:g,columns:f,parentRef:r,renderControls:({totalEntities:e,foundEntities:t,inited:r})=>(0,T.jsx)(K,{withGroupBySelect:b,groupByParams:d,withPeerRoleFilter:a,columnsToSelect:C,handleSelectedColumnsUpdate:v,entitiesCountCurrent:t,entitiesCountTotal:e,entitiesLoading:!r})})}function re({path:e,database:t,parentRef:r,withPeerRoleFilter:a,columns:l,defaultColumnsIds:i,requiredColumnsIds:p,selectedColumnsKey:c,groupByParams:m}){const{searchValue:f,peerRoleFilter:C,groupByParam:v}=D(m),[F]=(0,d.Nt)(),{columnsToShow:N,columnsToSelect:R,setColumns:x}=(0,h.K)(l,c,s.uG,i,p),{currentData:P,isFetching:j,error:S}=u.s.useGetNodesQuery({path:e,database:t,filter:f,filter_peer_role:C,group:v,limit:0},{pollingInterval:F}),B=void 0===P&&j,{NodeGroups:G,FoundNodes:I=0,TotalNodes:_=0}=P||{},{expandedGroups:E,setIsGroupExpanded:U}=(0,b.$)(G);return(0,T.jsxs)(n.L,{children:[(0,T.jsx)(n.L.Controls,{children:(0,T.jsx)(K,{withGroupBySelect:!0,groupByParams:m,withPeerRoleFilter:a,columnsToSelect:R,handleSelectedColumnsUpdate:x,entitiesCountCurrent:I,entitiesCountTotal:_,entitiesLoading:B})}),S?(0,T.jsx)(o.o,{error:S}):null,(0,T.jsx)(n.L.Table,{loading:B,className:k("groups-wrapper"),children:null!==G&&void 0!==G&&G.length?G.map((({name:a,count:o})=>{const l=E[a];return(0,T.jsx)(y.Q,{title:a,count:o,entityName:w("nodes"),expanded:l,onIsExpandedChange:U,children:(0,T.jsx)(Y,{path:e,database:t,searchValue:f,problemFilter:"All",uptimeFilter:g.cW.All,peerRoleFilter:C,filterGroup:a,filterGroupBy:v,initialEntitiesCount:o,columns:N,parentRef:r})},a)})):w("no-nodes-groups")})]})}},9252:(e,t,r)=>{r.d(t,{k:()=>n});var a=r(44433),o=r(88610),l=r(60712);const n=({value:e,onChange:t,className:r})=>(0,l.jsxs)(a.a,{value:e,onUpdate:t,className:r,children:[(0,l.jsx)(a.a.Option,{value:o.s$.ALL,children:o.s$.ALL}),(0,l.jsx)(a.a.Option,{value:o.s$.PROBLEMS,children:o.s$.PROBLEMS})]})},11906:(e,t,r)=>{r.d(t,{N:()=>o});var a=r(78034);const o=e=>{var t;const r=(e.Nodes||[]).map((e=>{const{SystemState:t,...r}=e;return{...r,...(0,a.q1)(t)}}));return{Nodes:r,NodeGroups:null===(t=e.NodeGroups)||void 0===t?void 0:t.map((({GroupName:e,NodeCount:t})=>{if(e&&t)return{name:e,count:Number(t)}})).filter((e=>Boolean(e))),TotalNodes:Number(e.TotalNodes)||r.length,FoundNodes:Number(e.FoundNodes)}}},15298:(e,t,r)=>{r.d(t,{s:()=>l});var a=r(21334),o=r(11906);const l=a.F.injectEndpoints({endpoints:e=>({getNodes:e.query({queryFn:async(e,{signal:t})=>{try{const r=await window.api.viewer.getNodes({type:"any",storage:!1,tablets:!0,...e},{signal:t});return{data:(0,o.N)(r)}}catch(r){return{error:r}}},providesTags:["All"]})}),overrideExisting:"throw"})},95963:(e,t,r)=>{r.d(t,{v:()=>a.v});var a=r(41775)}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/9393.b0a1bf0a.chunk.js b/ydb/core/viewer/monitoring/static/js/9393.b0a1bf0a.chunk.js new file mode 100644 index 0000000000..a8bd0d2702 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/9393.b0a1bf0a.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[9393],{3685:(e,t,a)=>{a.d(t,{$:()=>r});var l=a(54090),n=a(77506),s=a(33775),i=a(60712);const o=(0,n.cn)("ydb-entity-page-title");function r({entityName:e,status:t=l.m.Grey,id:a,className:n}){return(0,i.jsxs)("div",{className:o(null,n),children:[(0,i.jsx)("span",{className:o("prefix"),children:e}),(0,i.jsx)(s.k,{className:o("icon"),status:t,size:"s"}),a]})}},10508:(e,t,a)=>{a.d(t,{c:()=>u});var l=a(67884),n=a(96873),s=a(54090),i=a(77506),o=a(82015),r=a(33775),d=a(60712);const c=(0,i.cn)("entity-status");function u({status:e=s.m.Grey,name:t="",label:a,path:i,iconPath:u,size:h="s",mode:m="color",showStatus:v=!0,externalLink:p=!1,withLeftTrim:b=!1,hasClipboardButton:g,clipboardButtonAlwaysVisible:x=!1,className:f}){const y=()=>v?(0,d.jsx)(r.k,{className:c("icon"),status:e,size:h,mode:m}):null;return(0,d.jsxs)("div",{className:c(null,f),children:[u?(w=u,(0,d.jsx)(l.N,{target:"_blank",href:w,children:y()})):y(),a&&(0,d.jsx)("span",{title:a,className:c("label",{size:h,state:e.toLowerCase()}),children:a}),(i||t)&&(0,d.jsxs)("div",{className:c("wrapper",{"with-button":g}),children:[(0,d.jsx)("span",{className:c("link",{"with-left-trim":b}),title:t,children:i?p?(0,d.jsx)(l.N,{className:c("name"),href:i,children:t}):(0,d.jsx)(o.E,{className:c("name"),to:i,children:t}):t&&(0,d.jsx)("span",{className:c("name"),children:t})}),g&&(0,d.jsx)("div",{className:c("controls-wrapper",{visible:x}),children:(0,d.jsx)(n.b,{text:t,size:"xs",view:"normal",className:c("clipboard-button",{visible:x})})})]})]});var w}},16819:(e,t,a)=>{a.d(t,{a:()=>i});var l=a(59284),n=a(69024),s=a(59001);const i=e=>{const t=l.useCallback((()=>e?s.f.readUserSettingsValue(e,{}):{}),[e]),a=l.useCallback((t=>{e&&s.f.setUserSettingsValue(e,t)}),[e]);return(0,n.a)({saveSizes:a,getSizes:t})}},16929:(e,t,a)=>{a.d(t,{A:()=>n});var l=a(59284);const n=e=>l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),l.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0m-6 2.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0M8.75 5a.75.75 0 0 0-1.5 0v2.5a.75.75 0 0 0 1.5 0z",clipRule:"evenodd"}))},17594:(e,t,a)=>{a.d(t,{l:()=>d});var l=a(69024),n=a(4557),s=a(77506),i=a(16819),o=a(60712);const r=(0,s.cn)("ydb-resizeable-data-table");function d({columnsWidthLSKey:e,columns:t,settings:a,wrapperClassName:s,...d}){const[c,u]=(0,i.a)(e),h=(0,l.j)(t,c),m={...a,defaultResizeable:!0};return(0,o.jsx)("div",{className:r(null,s),children:(0,o.jsx)(n.Ay,{theme:"yandex-cloud",columns:h,onResize:u,settings:m,...d})})}},21545:(e,t,a)=>{a.d(t,{X:()=>n});var l=a(78034);const n=a(21334).F.injectEndpoints({endpoints:e=>({getTablet:e.query({queryFn:async({id:e,database:t},{signal:a})=>{try{const[n,s,i]=await Promise.all([window.api.viewer.getTablet({id:e,database:t},{signal:a}),window.api.viewer.getTabletHistory({id:e,database:t},{signal:a}),window.api.viewer.getNodesList({signal:a})]),o=(0,l.nN)(i),r=Object.keys(s).reduce(((e,t)=>{var a;const l=null===(a=s[t])||void 0===a?void 0:a.TabletStateInfo;if(l&&l.length){var n;const a=l.find((e=>e.Leader))||l[0],{ChangeTime:s,Generation:i,State:r,Leader:d,FollowerId:c}=a,u=o&&t?null===(n=o.get(Number(t)))||void 0===n?void 0:n.Host:void 0;"Dead"!==r&&e.push({nodeId:t,generation:i,changeTime:s,state:r,leader:d,followerId:c,fqdn:u})}return e}),[]),{TabletStateInfo:d=[]}=n,[c={}]=d,{TabletId:u}=c;return{data:{id:u,data:c,history:r}}}catch(n){return{error:n}}},providesTags:(e,t,a)=>["All",{type:"Tablet",id:a.id}]}),getTabletDescribe:e.query({queryFn:async({tenantId:e},{signal:t})=>{try{const a=await window.api.viewer.getTabletDescribe(e,{signal:t}),{SchemeShard:l,PathId:n}=e;return{data:(null===a||void 0===a?void 0:a.Path)||`${l}:${n}`}}catch(a){return{error:a}}},providesTags:["All"]}),getAdvancedTableInfo:e.query({queryFn:async({id:e,hiveId:t},{signal:a})=>{try{return{data:await window.api.tablets.getTabletFromHive({id:e,hiveId:t},{signal:a})}}catch(l){return{error:l}}},providesTags:(e,t,a)=>["All",{type:"Tablet",id:a.id}]}),killTablet:e.mutation({queryFn:async({id:e})=>{try{return{data:await window.api.tablets.killTablet(e)}}catch(t){return{error:t}}},invalidatesTags:(e,t,a)=>[{type:"Tablet",id:a.id},{type:"Tablet",id:"LIST"}]}),stopTablet:e.mutation({queryFn:async({id:e,hiveId:t})=>{try{return{data:await window.api.tablets.stopTablet(e,t)}}catch(a){return{error:a}}},invalidatesTags:(e,t,a)=>[{type:"Tablet",id:a.id},{type:"Tablet",id:"LIST"}]}),resumeTablet:e.mutation({queryFn:async({id:e,hiveId:t})=>{try{return{data:await window.api.tablets.resumeTablet(e,t)}}catch(a){return{error:a}}},invalidatesTags:(e,t,a)=>[{type:"Tablet",id:a.id},{type:"Tablet",id:"LIST"}]})}),overrideExisting:"throw"})},22983:(e,t,a)=>{a.d(t,{B:()=>d});var l=a(59284),n=a(84476),s=a(84375),i=a(55974),o=a(42829),r=a(60712);function d({children:e,onConfirmAction:t,onConfirmActionSuccess:a,dialogHeader:d,dialogText:c,retryButtonText:u,buttonDisabled:h=!1,buttonView:m="action",buttonTitle:v,buttonClassName:p,withPopover:b=!1,popoverContent:g,popoverPlacement:x="right",popoverDisabled:f=!0}){const[y,w]=l.useState(!1),[j,N]=l.useState(!1),[S,T]=l.useState(!1),I=()=>(0,r.jsx)(n.$,{onClick:()=>w(!0),view:m,disabled:h,loading:!h&&j,className:p,title:v,children:e});return(0,r.jsxs)(l.Fragment,{children:[(0,r.jsx)(i.g,{visible:y,header:d,text:c,withRetry:S,retryButtonText:u,onConfirm:async e=>{N(!0),await t(e)},onConfirmActionSuccess:async()=>{T(!1);try{await(null===a||void 0===a?void 0:a())}finally{N(!1)}},onConfirmActionError:e=>{T((0,o.D)(e)),N(!1)},onClose:()=>{w(!1)}}),b?(0,r.jsx)(s.A,{content:g,placement:x,disabled:f,children:I()}):I()]})}},27775:(e,t,a)=>{a.d(t,{i:()=>i});var l=a(47665),n=a(58267),s=a(60712);function i({state:e}){return(0,s.jsx)(l.J,{theme:(0,n._)(e),children:e})}},33775:(e,t,a)=>{a.d(t,{k:()=>h});var l=a(45720),n=a(16929),s=a(71153),i=a(99991),o=a(54090),r=a(77506),d=a(60712);const c=(0,r.cn)("ydb-status-icon"),u={[o.m.Blue]:l.A,[o.m.Yellow]:n.A,[o.m.Orange]:s.A,[o.m.Red]:n.A};function h({status:e=o.m.Grey,size:t="s",mode:a="color",className:l}){const n={state:e.toLowerCase(),size:t};return"icons"===a&&e in u?(0,d.jsx)(i.I,{className:c("status-icon",n,l),data:u[e]}):(0,d.jsx)("div",{className:c("status-color",n,l)})}},42829:(e,t,a)=>{a.d(t,{D:()=>l});const l=e=>Boolean(e&&"object"===typeof e&&"retryPossible"in e&&e.retryPossible)},45720:(e,t,a)=>{a.d(t,{A:()=>n});var l=a(59284);const n=e=>l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),l.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m1-9.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0M8 7.75a.75.75 0 0 1 .75.75V11a.75.75 0 0 1-1.5 0V8.5A.75.75 0 0 1 8 7.75",clipRule:"evenodd"}))},55974:(e,t,a)=>{a.d(t,{g:()=>g});var l=a(59284),n=a(18677),s=a(71153),i=a(74321),o=a(2198),r=a(99991),d=a(89954),c=a(77506),u=a(48372);const h=JSON.parse('{"default-error":"Something went wrong, action cannot be completed","no-rights-error":"You don\'t have enough rights to complete the operation","button-confirm":"Confirm","button-retry":"Retry","button-cancel":"Cancel","button-close":"Close","checkbox-text":"I understand what I\'m doing"}'),m=(0,u.g4)("ydb-critical-action-dialog",{en:h});var v=a(60712);const p=(0,c.cn)("ydb-critical-dialog"),b=e=>e.data&&"issues"in e.data&&e.data.issues?(0,v.jsx)(d.O,{hideSeverity:!0,data:e.data}):403===e.status?m("no-rights-error"):e.statusText?e.statusText:m("default-error");function g({visible:e,header:t,text:a,withRetry:d,retryButtonText:c,withCheckBox:u,onClose:h,onConfirm:g,onConfirmActionSuccess:x,onConfirmActionError:f}){const[y,w]=l.useState(!1),[j,N]=l.useState(),[S,T]=l.useState(!1),I=async e=>(w(!0),g(e).then((()=>{x(),h()})).catch((e=>{f(e),N(e)})).finally((()=>{w(!1)})));return(0,v.jsx)(o.l,{open:e,hasCloseButton:!1,className:p(),size:"s",onClose:h,onTransitionExited:()=>{N(void 0),T(!1)},children:j?(0,v.jsxs)(l.Fragment,{children:[(0,v.jsx)(o.l.Header,{caption:t}),(0,v.jsx)(o.l.Body,{className:p("body"),children:(0,v.jsxs)("div",{className:p("body-message",{error:!0}),children:[(0,v.jsx)("span",{className:p("error-icon"),children:(0,v.jsx)(n.A,{width:"24",height:"22"})}),b(j)]})}),(0,v.jsx)(o.l.Footer,{loading:!1,preset:"default",textButtonApply:d?c||m("button-retry"):void 0,textButtonCancel:m("button-close"),onClickButtonApply:()=>I(!0),onClickButtonCancel:h})]}):(0,v.jsxs)(l.Fragment,{children:[(0,v.jsx)(o.l.Header,{caption:t}),(0,v.jsxs)(o.l.Body,{className:p("body"),children:[(0,v.jsxs)("div",{className:p("body-message",{warning:!0}),children:[(0,v.jsx)("span",{className:p("warning-icon"),children:(0,v.jsx)(r.I,{data:s.A,size:24})}),a]}),u?(0,v.jsx)(i.S,{checked:S,onUpdate:T,children:m("checkbox-text")}):null]}),(0,v.jsx)(o.l.Footer,{loading:y,preset:"default",textButtonApply:m("button-confirm"),textButtonCancel:m("button-cancel"),propsButtonApply:{type:"submit",disabled:u&&!S},onClickButtonCancel:h,onClickButtonApply:()=>I()})]})})}},58267:(e,t,a)=>{a.d(t,{P:()=>i,_:()=>o});var l=a(54090),n=a(6354);const s={[n.r.Dead]:l.m.Red,[n.r.Created]:l.m.Yellow,[n.r.ResolveStateStorage]:l.m.Yellow,[n.r.Candidate]:l.m.Yellow,[n.r.BlockBlobStorage]:l.m.Yellow,[n.r.WriteZeroEntry]:l.m.Yellow,[n.r.Restored]:l.m.Yellow,[n.r.Discover]:l.m.Yellow,[n.r.Lock]:l.m.Yellow,[n.r.Stopped]:l.m.Yellow,[n.r.ResolveLeader]:l.m.Yellow,[n.r.RebuildGraph]:l.m.Yellow,[n.r.Deleted]:l.m.Green,[n.r.Active]:l.m.Green},i=e=>{if(!e)return l.m.Grey;return t=e,Object.values(l.m).includes(t)?e:s[e];var t};function o(e){if(!e)return"unknown";switch(e){case n.r.Dead:return"danger";case n.r.Active:case n.r.Deleted:return"success";default:return"warning"}}},58389:(e,t,a)=>{a.d(t,{B:()=>u});var l=a(87184),n=a(77506),s=a(90053),i=a(70043),o=a(60712);const r=(0,n.cn)("ydb-page-meta"),d="\xa0\xa0\xb7\xa0\xa0";function c({items:e,loading:t}){return(0,o.jsx)("div",{className:r("info"),children:t?(0,o.jsx)(i.E,{className:r("skeleton")}):e.filter((e=>Boolean(e))).join(d)})}function u({className:e,...t}){return(0,o.jsxs)(l.s,{gap:1,alignItems:"center",justifyContent:"space-between",className:r(null,e),children:[(0,o.jsx)(c,{...t}),(0,o.jsx)(s.E,{})]})}},70043:(e,t,a)=>{a.d(t,{E:()=>i});var l=a(89169),n=a(66781),s=a(60712);const i=({delay:e=600,className:t})=>{const[a]=(0,n.y)(e);return a?(0,s.jsx)(l.E,{className:t}):null}},71153:(e,t,a)=>{a.d(t,{A:()=>n});var l=a(59284);const n=e=>l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),l.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.835 2.244c.963-1.665 3.367-1.665 4.33 0l4.916 8.505c.964 1.666-.24 3.751-2.164 3.751H3.083c-1.925 0-3.128-2.085-2.165-3.751zM8 5a.75.75 0 0 1 .75.75v2a.75.75 0 1 1-1.5 0v-2A.75.75 0 0 1 8 5m1 5.75a1 1 0 1 1-2 0 1 1 0 0 1 2 0",clipRule:"evenodd"}))},79737:(e,t,a)=>{a.d(t,{A:()=>o,X:()=>r});var l=a(5874),n=a(77506),s=a(60712);const i=(0,n.cn)("ydb-table");function o({children:e,className:t}){return(0,s.jsx)("div",{className:i("table-header-content",t),children:e})}function r({className:e,width:t,wrapperClassName:a,...n}){return(0,s.jsx)("div",{className:i(null,a),children:(0,s.jsx)(l.W,{headerCellClassName:({column:e})=>{var t;const a=null===(t=e.columnDef.meta)||void 0===t?void 0:t.align;return i("table-header-cell",{align:a})},cellClassName:e=>{var t,a;const l=null===e||void 0===e||null===(t=e.column.columnDef.meta)||void 0===t?void 0:t.align,n=null===e||void 0===e||null===(a=e.column.columnDef.meta)||void 0===a?void 0:a.verticalAlign;return i("table-cell",{align:l,"vertical-align":n})},className:i("table",{width:t},e),...n})})}},81342:(e,t,a)=>{a.r(t),a.d(t,{Tablet:()=>be});var l=a(59284),n=a(87184),s=a(23871),i=a(44992),o=a(61750),r=a(10755),d=a(67087),c=a(370),u=a(7889),h=a(3685),m=a(44508),v=a(44294),p=a(98167),b=a(58389),g=a(92459),x=a(40174),f=a(21545),y=a(54090),w=a(77506),j=a(76086),N=a(90182),S=a(12888),T=a(76938);const I=e=>l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),l.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.5 1.5a3 3 0 0 0-3 3v7a3 3 0 0 0 3 3h7a3 3 0 0 0 3-3v-7a3 3 0 0 0-3-3z",clipRule:"evenodd"})),_=e=>l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),l.createElement("path",{fill:"currentColor",d:"M13.756 10.164c1.665-.962 1.665-3.366 0-4.328L5.251.919C3.584-.045 1.5 1.158 1.5 3.083v9.834c0 1.925 2.084 3.128 3.751 2.164z"}));var C=a(99991),A=a(22983),k=a(6354),E=a(48372);const D=JSON.parse('{"tablet.header":"Tablet","tablet.meta-database":"Database","tablet.meta-follower":"Follower","controls.kill":"Restart","controls.stop":"Stop","controls.resume":"Resume","controls.kill-not-allowed":"You don\'t have enough rights to restart tablet","controls.stop-not-allowed":"You don\'t have enough rights to stop tablet","controls.resume-not-allowed":"You don\'t have enough rights to resume tablet","dialog.kill-header":"Restart tablet","dialog.stop-header":"Stop tablet","dialog.resume-header":"Resume tablet","dialog.kill-text":"The tablet will be restarted. Do you want to proceed?","dialog.stop-text":"The tablet will be stopped. Do you want to proceed?","dialog.resume-text":"The tablet will be resumed. Do you want to proceed?","emptyState":"The tablet was not found","label_tablet-history":"Tablets","label_tablet-channels":"Storage"}'),R=(0,E.g4)("ydb-tablet-page",{en:D});function B(e){return Boolean(e&&"0"!==e)}var F=a(60712);const z=({tablet:e})=>{const{TabletId:t,HiveId:a}=e,s=(0,S.X)(),[i]=f.X.useKillTabletMutation(),[o]=f.X.useStopTabletMutation(),[r]=f.X.useResumeTabletMutation();if(!t)return null;const d=B(a),c=e.State===k.r.Stopped,u=e.State!==k.r.Stopped&&e.State!==k.r.Dead,h=e.State===k.r.Stopped||e.State===k.r.Deleted;return(0,F.jsxs)(n.s,{gap:2,wrap:"nowrap",children:[(0,F.jsxs)(A.B,{dialogHeader:R("dialog.kill-header"),dialogText:R("dialog.kill-text"),onConfirmAction:()=>i({id:t}).unwrap(),buttonDisabled:c||!s,withPopover:!0,buttonView:"normal",popoverContent:R("controls.kill-not-allowed"),popoverPlacement:"bottom",popoverDisabled:s,children:[(0,F.jsx)(C.I,{data:T.A}),R("controls.kill")]}),d&&(0,F.jsxs)(l.Fragment,{children:[(0,F.jsxs)(A.B,{dialogHeader:R("dialog.stop-header"),dialogText:R("dialog.stop-text"),onConfirmAction:()=>o({id:t,hiveId:a}).unwrap(),buttonDisabled:h||!s,withPopover:!0,buttonView:"normal",popoverContent:R("controls.stop-not-allowed"),popoverPlacement:"bottom",popoverDisabled:s,children:[(0,F.jsx)(C.I,{data:I}),R("controls.stop")]}),(0,F.jsxs)(A.B,{dialogHeader:R("dialog.resume-header"),dialogText:R("dialog.resume-text"),onConfirmAction:()=>r({id:t,hiveId:a}).unwrap(),buttonDisabled:u||!s,withPopover:!0,buttonView:"normal",popoverContent:R("controls.resume-not-allowed"),popoverPlacement:"bottom",popoverDisabled:s,children:[(0,F.jsx)(C.I,{data:_}),R("controls.resume")]})]})]})};var O=a(52905),P=a(60073),G=a(25196),L=a(27775),H=a(41826),M=a(31684),q=a(29819);const $=JSON.parse('{"field_scheme-shard":"SchemeShard","field_follower":"Follower","field_generation":"Generation","field_hive":"HiveId","field_state":"State","field_uptime":"Uptime","field_node":"Node","field_links":"Links","field_developer-ui-app":"App","field_developer-ui-counters":"Counters","field_developer-ui-executor":"Executor DB internals","field_developer-ui-state":"State Storage","title_info":"Info","title_links":"Links"}'),Y=(0,E.g4)("ydb-tablet-info",{en:$}),K=(0,w.cn)("ydb-tablet-info"),V=({tablet:e})=>{const t=(0,S.X)(),{ChangeTime:a,Generation:l,FollowerId:s,NodeId:i,HiveId:o,State:r,TenantId:{SchemeShard:d}={},TabletId:c}=e,u=B(o),h=r===k.r.Active,m=[];u&&m.push({label:Y("field_hive"),value:(0,F.jsx)(O.N_,{to:(0,g.DM)(o),className:K("link"),children:o})}),d&&m.push({label:Y("field_scheme-shard"),value:(0,F.jsx)(O.N_,{to:(0,g.DM)(d),className:K("link"),children:d})}),m.push({label:Y("field_state"),value:(0,F.jsx)(L.i,{state:r})}),h&&m.push({label:Y("field_uptime"),value:(0,F.jsx)(H.H,{ChangeTime:a})}),m.push({label:Y("field_generation"),value:l},{label:Y("field_node"),value:(0,F.jsx)(O.N_,{className:K("link"),to:(0,q.vI)(String(i)),children:i})}),s&&m.push({label:Y("field_follower"),value:s});return(0,F.jsxs)(n.s,{gap:10,wrap:"nowrap",children:[(0,F.jsxs)("div",{children:[(0,F.jsx)("div",{className:K("section-title"),children:Y("title_info")}),(0,F.jsx)(P.z_,{info:m})]}),t&&c?(0,F.jsxs)("div",{children:[(0,F.jsx)("div",{className:K("section-title"),children:Y("title_links")}),(0,F.jsxs)(n.s,{direction:"column",gap:3,children:[(0,F.jsx)(G.K,{title:Y("field_developer-ui-app"),url:(0,M._t)(c,"app")}),(0,F.jsx)(G.K,{title:Y("field_developer-ui-counters"),url:(0,M._t)(c,"counters")}),(0,F.jsx)(G.K,{title:Y("field_developer-ui-executor"),url:(0,M._t)(c,"executorInternals")}),(0,F.jsx)(G.K,{title:Y("field_developer-ui-state"),url:(0,M._t)(c,void 0,"SsId")})]})]}):null]})};var X=a(36590),Q=a(79737),J=a(84476),W=a(33705),U=a(56839);const Z=JSON.parse('{"label_channel-index":"Channel","label_storage-pool":"Storage Pool Name","label_group-id":"Group ID","label_generation":"From generation","label_timestamp":"Timestamp"}'),ee=(0,E.g4)("ydb-tablet-storage-info",{en:Z}),te=(0,w.cn)("ydb-tablet-storage-info");function ae(e,t){const a=e.getValue(),l="function"===typeof t?t(a):a;return(0,F.jsx)("div",{className:te("metrics-cell"),children:l})}function le({row:e,name:t,hasExpand:a}){const l=e.getCanExpand();return(0,F.jsxs)(n.s,{gap:1,alignItems:"flex-start",className:te("name-wrapper"),children:[l&&(0,F.jsx)(J.$,{view:"flat",size:"xs",onClick:e.getToggleExpandedHandler(),children:(0,F.jsx)(J.$.Icon,{children:(0,F.jsx)(W.I,{direction:e.getIsExpanded()?"bottom":"right",size:14})})}),(0,F.jsx)("div",{className:te("name-content",{"no-control":a&&!l}),children:t})]})}function ne({data:e}){const[t,a]=l.useState({}),n=l.useMemo((()=>function(e){var t;if(!e)return[];const{BoundChannels:a,TabletStorageInfo:l={}}=e,n=null!==(t=l.Channels)&&void 0!==t?t:[],s=[];for(const o of n){var i;const e=o.Channel,t=o.History;if(!e||!t||!t.length)continue;const l=[...t];l.reverse();const[n,...r]=l,d={...n,storagePoolName:null===a||void 0===a||null===(i=a[e])||void 0===i?void 0:i.StoragePoolName,channelIndex:e,children:r};s.push(d)}return s}(e)),[e]),s=l.useMemo((()=>n.some((e=>{var t;return null===(t=e.children)||void 0===t?void 0:t.length}))),[n]),i=l.useMemo((()=>{return e=s,[{accessorKey:"channelIndex",header:()=>(0,F.jsx)(Q.A,{children:ee("label_channel-index")}),size:50,cell:ae,meta:{align:"right"}},{accessorKey:"storagePoolName",header:()=>(0,F.jsx)(Q.A,{children:ee("label_storage-pool")}),size:200,cell:ae},{accessorKey:"GroupID",header:()=>(0,F.jsx)(Q.A,{className:e?te("with-padding"):void 0,children:ee("label_group-id")}),size:100,cell:t=>(0,F.jsx)(le,{row:t.row,name:t.getValue(),hasExpand:e})},{accessorKey:"FromGeneration",header:()=>(0,F.jsx)(Q.A,{children:ee("label_generation")}),size:100,cell:ae,meta:{align:"right"}},{accessorKey:"Timestamp",header:()=>(0,F.jsx)(Q.A,{children:ee("label_timestamp")}),size:200,cell:e=>ae(e,U.Ey),meta:{align:"right"}}];var e}),[s]),o=(0,X.K)({columns:i,data:n,getSubRows:e=>e.children,enableExpanding:!0,onExpandedChange:a,state:{expanded:t}});return(0,F.jsx)(Q.X,{table:o})}var se=a(4557),ie=a(10508),oe=a(82015),re=a(17594);const de=[{name:"Generation",align:se.Ay.RIGHT,render:({row:e})=>e.generation},{name:"Change time",align:se.Ay.RIGHT,sortable:!1,render:({row:e})=>(0,F.jsx)(H.H,{ChangeTime:e.changeTime}),width:120},{name:"State",sortable:!1,render:({row:e})=>(0,F.jsx)(L.i,{state:e.state})},{name:"Follower ID",sortable:!1,render:({row:e})=>e.leader?"leader":e.followerId},{name:"Node ID",align:se.Ay.RIGHT,sortable:!1,render:({row:e})=>(0,F.jsx)(oe.E,{to:(0,q.vI)(e.nodeId),children:e.nodeId})},{name:"Node FQDN",sortable:!1,width:300,render:({row:e})=>e.fqdn?(0,F.jsx)(ie.c,{name:e.fqdn,showStatus:!1,hasClipboardButton:!0}):(0,F.jsx)("span",{children:"\u2014"})}],ce={displayIndices:!1},ue=({history:e})=>(0,F.jsx)(re.l,{columnsWidthLSKey:"tabletTableColumnsWidth",data:e,columns:de,settings:ce,initialSortOrder:{columnId:"Generation",order:se.Ay.DESCENDING}}),he=(0,w.cn)("ydb-tablet-page"),me={history:"history",channels:"channels"},ve=[{id:me.history,get title(){return R("label_tablet-history")}},{id:me.channels,get title(){return R("label_tablet-channels")},isAdvanced:!0}],pe=c.z.nativeEnum(me).catch(me.history);function be(){var e;const t=(0,N.YQ)(),{id:a}=(0,r.g)(),[{database:s,clusterName:c}]=(0,d.useQueryParams)(g.qc),[u]=(0,N.Nt)(),{currentData:h,isFetching:v,error:y}=f.X.useGetTabletQuery({id:a,database:null!==s&&void 0!==s?s:void 0},{pollingInterval:u}),w=v&&void 0===h,{data:S={},history:T=[]}=h||{},{currentData:I}=f.X.useGetTabletDescribeQuery(S.TenantId?{tenantId:S.TenantId}:i.hT),_=null!==(e=I||s)&&void 0!==e?e:void 0,C=S.Type;l.useEffect((()=>{t((0,x.g)("tablet",{tenantName:null!==s&&void 0!==s?s:void 0,tabletId:a,tabletType:C}))}),[t,s,a,C]);const{Leader:A,Type:k}=S,E=[];return _&&E.push(`${R("tablet.meta-database")}: ${_}`),k&&E.push(k),!1===A&&E.push(R("tablet.meta-follower").toUpperCase()),(0,F.jsxs)(n.s,{gap:5,direction:"column",className:he(),children:[(0,F.jsx)(o.mg,{children:(0,F.jsx)("title",{children:`${a} \u2014 ${R("tablet.header")} \u2014 ${_||c||j.QM}`})}),(0,F.jsx)(b.B,{items:E}),(0,F.jsxs)(p.r,{loading:w,size:"l",children:[y?(0,F.jsx)(m.o,{error:y}):null,h?(0,F.jsx)(ge,{id:a,tablet:S,history:T}):null]})]})}function ge({id:e,tablet:t,history:a}){const l=!Object.keys(t).length,{Overall:s,HiveId:i}=t;return(0,F.jsxs)(u.q,{title:R("emptyState"),className:he("placeholder"),isEmpty:l,children:[(0,F.jsxs)(n.s,{gap:5,direction:"column",children:[(0,F.jsx)(h.$,{entityName:R("tablet.header"),status:null!==s&&void 0!==s?s:y.m.Grey,id:e}),(0,F.jsx)(z,{tablet:t}),(0,F.jsx)(V,{tablet:t})]}),(0,F.jsx)(xe,{id:e,hiveId:i,history:a})]})}function xe({id:e,hiveId:t,history:a}){var i;const[{activeTab:o,...r},c]=(0,d.useQueryParams)(g.qc),u=!(0,S.X)()||!B(t);let h=pe.parse(o);return u&&null!==(i=ve.find((e=>e.id===h)))&&void 0!==i&&i.isAdvanced&&(h=me.history),l.useEffect((()=>{o!==h&&c({activeTab:h},"replaceIn")}),[o,h,c]),(0,F.jsxs)(n.s,{gap:5,direction:"column",children:[(0,F.jsx)("div",{children:(0,F.jsx)(s.t,{size:"l",items:ve.filter((({isAdvanced:e})=>!e||!u)),activeTab:h,wrapTo:(t,a)=>{const l=(0,g.DM)(e,{...r,activeTab:t.id});return(0,F.jsx)(v.E,{to:l,children:a},t.id)}})}),"history"===h?(0,F.jsx)(ue,{history:a}):null,"channels"!==h||u?null:(0,F.jsx)(fe,{id:e,hiveId:t})]})}function fe({id:e,hiveId:t}){const[a]=(0,N.Nt)(),{currentData:l,error:n,isFetching:s}=f.X.useGetAdvancedTableInfoQuery({id:e,hiveId:t},{pollingInterval:a}),i=s&&void 0===l;return(0,F.jsxs)(p.r,{loading:i,size:"l",children:[n?(0,F.jsx)(m.o,{error:n}):null,l?(0,F.jsx)(ne,{data:l}):null]})}},89169:(e,t,a)=>{a.d(t,{E:()=>s});var l=a(59284);const n=(0,a(69220).om)("skeleton");function s({className:e,style:t,qa:a}){return l.createElement("div",{className:n(null,e),style:t,"data-qa":a})}},89954:(e,t,a)=>{a.d(t,{O:()=>I});var l=a(59284),n=a(45720),s=a(16929),i=a(71153),o=a(18677),r=a(84476),d=a(33705),c=a(67884),u=a(99991),h=a(77506),m=a(48372);const v=JSON.parse('{"default_collapse_label":"Show less","default_expand_label":"Show more","chars_count":[" ({{count}} symbol)"," ({{count}} symbols)"," ({{count}} symbols)"," ({{count}} symbols)"]}'),p=JSON.parse('{"default_collapse_label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043c\u0435\u043d\u044c\u0448\u0435","default_expand_label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0435\u0449\u0451","chars_count":[" ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u0430)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432)"]}'),b=(0,m.g4)("ydb-shorty-string",{ru:p,en:v});var g=a(60712);const x=(0,h.cn)("kv-shorty-string");function f({value:e="",limit:t=200,strict:a=!1,displayLength:n=!0,render:s=e=>e,onToggle:i,expandLabel:o=b("default_expand_label"),collapseLabel:r=b("default_collapse_label")}){const[d,u]=l.useState(!1),h=(d?r:o)+(n&&!d?b("chars_count",{count:e.length}):""),m=e.length>t+(a?0:h.length),v=d||!m?e:e.slice(0,t-4)+"\xa0...";return(0,g.jsxs)("div",{className:x(),children:[s(v),m?(0,g.jsx)(c.N,{className:x("toggle"),href:"#",onClick:e=>{e.stopPropagation(),e.preventDefault(),u((e=>!e)),null===i||void 0===i||i()},children:h}):null]})}var y=a(41650);const w=["S_FATAL","S_ERROR","S_WARNING","S_INFO"];function j(e){return function(e){return!!e&&void 0!==w[e]}(e)?w[e]:"S_INFO"}const N=(0,h.cn)("kv-result-issues"),S=(0,h.cn)("kv-issues"),T=(0,h.cn)("kv-issue");function I({data:e,hideSeverity:t}){const[a,n]=l.useState(!1),s="string"===typeof e||null===e||void 0===e?void 0:e.issues,i=Array.isArray(s)&&s.length>0;return(0,g.jsxs)("div",{className:N(),children:[(0,g.jsxs)("div",{className:N("error-message"),children:[(()=>{let a;if("string"===typeof e)a=e;else{var n,s;const i=j(null===e||void 0===e||null===(n=e.error)||void 0===n?void 0:n.severity);a=(0,g.jsxs)(l.Fragment,{children:[t?null:(0,g.jsxs)(l.Fragment,{children:[(0,g.jsx)(R,{severity:i})," "]}),(0,g.jsx)("span",{className:N("error-message-text"),children:null===e||void 0===e||null===(s=e.error)||void 0===s?void 0:s.message})]})}return a})(),i&&(0,g.jsx)(r.$,{view:"normal",onClick:()=>n(!a),children:a?"Hide details":"Show details"})]}),i&&a&&(0,g.jsx)(_,{hideSeverity:t,issues:s})]})}function _({issues:e,hideSeverity:t}){const a=null===e||void 0===e?void 0:e.reduce(((e,t)=>{var a;const l=null!==(a=t.severity)&&void 0!==a?a:10;return Math.min(e,l)}),10);return(0,g.jsx)("div",{className:S(null),children:null===e||void 0===e?void 0:e.map(((e,l)=>(0,g.jsx)(C,{hideSeverity:t,issue:e,expanded:e===a},l)))})}function C({issue:e,hideSeverity:t,level:a=0}){const[n,s]=l.useState(!0),i=j(e.severity),o=e.issues,c=Array.isArray(o)&&o.length>0,u=n?"bottom":"right";return(0,g.jsxs)("div",{className:T({leaf:!c,"has-issues":c}),children:[(0,g.jsxs)("div",{className:T("line"),children:[c&&(0,g.jsx)(r.$,{view:"flat-secondary",onClick:()=>s(!n),className:T("arrow-toggle"),children:(0,g.jsx)(d.I,{direction:u,size:16})}),t?null:(0,g.jsx)(R,{severity:i}),(0,g.jsx)(A,{issue:e}),e.issue_code?(0,g.jsxs)("span",{className:T("code"),children:["Code: ",e.issue_code]}):null]}),c&&n&&(0,g.jsx)("div",{className:T("issues"),children:(0,g.jsx)(k,{issues:o,level:a+1,expanded:n})})]})}function A({issue:e}){var t;const a=function(e){const{position:t}=e;if("object"!==typeof t||null===t||!(0,y.kf)(t.row))return"";const{row:a,column:l}=t;return(0,y.kf)(l)?`${a}:${l}`:`line ${a}`}(e),l=window.ydbEditor,n=()=>(0,g.jsxs)("span",{className:T("message"),children:[a&&(0,g.jsx)("span",{className:T("place-text"),title:"Position",children:a}),(0,g.jsx)("div",{className:T("message-text"),children:(0,g.jsx)(f,{value:e.message,expandLabel:"Show full message"})})]}),{row:s,column:i}=null!==(t=e.position)&&void 0!==t?t:{};if(!((0,y.kf)(s)&&l))return n();return(0,g.jsx)(c.N,{href:"#",extraProps:{draggable:!1},onClick:()=>{const e={lineNumber:s,column:null!==i&&void 0!==i?i:0};l.setPosition(e),l.revealPositionInCenterIfOutsideViewport(e),l.focus()},view:"primary",children:n()})}function k(e){const{issues:t,level:a,expanded:l}=e;return(0,g.jsx)("div",{className:T("list"),children:t.map(((e,t)=>(0,g.jsx)(C,{issue:e,level:a,expanded:l},t)))})}const E={S_INFO:n.A,S_WARNING:s.A,S_ERROR:i.A,S_FATAL:o.A},D=(0,h.cn)("yql-issue-severity");function R({severity:e}){const t=e.slice(2).toLowerCase();return(0,g.jsxs)("span",{className:D({severity:t}),children:[(0,g.jsx)(u.I,{className:D("icon"),data:E[e]}),(0,g.jsx)("span",{className:D("title"),children:t})]})}},90053:(e,t,a)=>{a.d(t,{E:()=>v});var l=a(8873),n=a(84476),s=a(24555),i=a(21334),o=a(77506),r=a(90182),d=a(48372);const c=JSON.parse('{"None":"None","15 sec":"15 sec","1 min":"1 min","2 min":"2 min","5 min":"5 min","Refresh":"Refresh"}'),u=(0,d.g4)("ydb-diagnostics-autorefresh-control",{en:c});var h=a(60712);const m=(0,o.cn)("auto-refresh-control");function v({className:e,onManualRefresh:t}){const a=(0,r.YQ)(),[o,d]=(0,r.Nt)();return(0,h.jsxs)("div",{className:m(null,e),children:[(0,h.jsx)(n.$,{view:"flat-secondary",onClick:()=>{a(i.F.util.invalidateTags(["All"])),null===t||void 0===t||t()},extraProps:{"aria-label":u("Refresh")},children:(0,h.jsx)(n.$.Icon,{children:(0,h.jsx)(l.A,{})})}),(0,h.jsxs)(s.l,{value:[String(o)],onUpdate:e=>{d(Number(e))},width:85,qa:"ydb-autorefresh-select",children:[(0,h.jsx)(s.l.Option,{value:"0",children:u("None")}),(0,h.jsx)(s.l.Option,{value:"15000",children:u("15 sec")}),(0,h.jsx)(s.l.Option,{value:"60000",children:u("1 min")}),(0,h.jsx)(s.l.Option,{value:"120000",children:u("2 min")}),(0,h.jsx)(s.l.Option,{value:"300000",children:u("5 min")})]})]})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/9796.23c68f38.chunk.js b/ydb/core/viewer/monitoring/static/js/9796.23c68f38.chunk.js new file mode 100644 index 0000000000..a4ed1b5bc5 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/9796.23c68f38.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[9796],{3218:(e,t,s)=>{s.d(t,{Ep:()=>g,OH:()=>c,QQ:()=>h,b0:()=>p,k_:()=>u});var a=s(59284),r=s(24600),n=s(7435),o=s(16439),i=s(90182);const l=(0,o.H)(["success","warning","danger"],1,2),d={"block-4-2":(0,o.H)(["success","warning","danger"],1,2),"mirror-3-dc":(0,o.H)(["success","warning","danger"],1,3)},u=e=>{var t;return(void 0!==(t=e.ErasureSpecies)&&t in d?d[e.ErasureSpecies]:l)(e.Degraded)};function c(e,t){var s;let a=!0;return(0,n.f8)(null===(s=e.VDiskId)||void 0===s?void 0:s.GroupID)&&null!==t&&void 0!==t&&t.groupId&&(a&&=String(e.VDiskId.GroupID)===t.groupId),(0,n.f8)(e.NodeId)&&null!==t&&void 0!==t&&t.nodeId&&(a&&=String(e.NodeId)===t.nodeId),(0,n.f8)(e.PDiskId)&&null!==t&&void 0!==t&&t.pDiskId&&(a&&=String(e.PDiskId)===t.pDiskId),(0,n.f8)(e.VDiskSlotId)&&null!==t&&void 0!==t&&t.vDiskSlotId&&(a&&=String(e.VDiskSlotId)===t.vDiskSlotId),a}const m=10;function p(e){return(0,n.f8)(null===e||void 0===e?void 0:e.nodeId)||(0,n.f8)(null===e||void 0===e?void 0:e.pDiskId)||(0,n.f8)(null===e||void 0===e?void 0:e.vDiskSlotId)?1:m}function h(e){return(0,n.f8)(null===e||void 0===e?void 0:e.groupId)||(0,n.f8)(null===e||void 0===e?void 0:e.vDiskSlotId)?1:m}function g(e=[],t){const s=(0,i.N4)(r.K);return a.useMemo((()=>{const a=[];return function(e){return"mirror-3-dc"===e||"mirror-3of4"===e}(t)?(e.forEach(((t,r)=>{var n,o,i;(null===s||void 0===s||null===(n=s.get(Number(null===t||void 0===t?void 0:t.NodeId)))||void 0===n?void 0:n.DC)!==(null===s||void 0===s||null===(o=s.get(Number(null===(i=e[r+1])||void 0===i?void 0:i.NodeId)))||void 0===o?void 0:o.DC)&&a.push(r)})),a):a}),[t,e,s])}},5707:(e,t,s)=>{s.d(t,{A$:()=>o,Km:()=>i,Yh:()=>l,aW:()=>n,iZ:()=>u,qs:()=>d});var a=s(94025),r=s(67375);const n={Grey:0,Green:1,Blue:2,Yellow:3,Orange:4,Red:5},o=Object.entries(n).reduce(((e,[t,s])=>({...e,[s]:t})),{}),i=n.Grey,l=o[i],d={[r.W.OK]:n.Green,[r.W.Initial]:n.Yellow,[r.W.SyncGuidRecovery]:n.Yellow,[r.W.LocalRecoveryError]:n.Red,[r.W.SyncGuidRecoveryError]:n.Red,[r.W.PDiskError]:n.Red},u={[a.t.Initial]:n.Grey,[a.t.Normal]:n.Green,[a.t.InitialFormatRead]:n.Yellow,[a.t.InitialSysLogRead]:n.Yellow,[a.t.InitialCommonLogRead]:n.Yellow,[a.t.InitialFormatReadError]:n.Red,[a.t.InitialSysLogReadError]:n.Red,[a.t.InitialSysLogParseError]:n.Red,[a.t.InitialCommonLogReadError]:n.Red,[a.t.InitialCommonLogParseError]:n.Red,[a.t.CommonLoggerInitError]:n.Red,[a.t.OpenFileError]:n.Red,[a.t.ChunkQuotaError]:n.Red,[a.t.DeviceIoError]:n.Red}},7187:(e,t,s)=>{s.d(t,{H7:()=>c,NJ:()=>i,SW:()=>d,XY:()=>u,gh:()=>p,r$:()=>m});var a=s(7435),r=s(54090),n=s(16439),o=s(5707);function i(e){return"VDiskId"in e}const l=(0,n.H)([r.m.Green,r.m.Yellow,r.m.Red]),d=e=>(0,a.f8)(e)?c(l(e)):0;function u(e){return void 0===e?o.Yh:o.A$[e]||o.Yh}function c(e){return e?o.aW[e]:0}function m(e,t){if((0,a.f8)(e)&&(0,a.f8)(t))return`${e}-${t}`}function p(e,t,s){return[e,t,s].join("-")}},8809:(e,t,s)=>{s.d(t,{y:()=>E});var a=s(77506),r=s(88226),n=s(13096),o=s(44294),i=s(59284),l=s(87184),d=s(47665),u=s(92459),c=s(24600),m=s(54090),p=s(7435),h=s(76086),g=s(31684),v=s(7187),f=s(90182),S=s(12888),k=s(41650),y=s(60073),N=s(25196),b=s(96927),x=s(29819),w=s(56839);function D(e){let t;const s=(0,v.NJ)(e)?e.VDiskSlotId:e.VSlotId;if((0,p.f8)(s)&&(0,p.f8)(e.PDiskId)&&(0,p.f8)(e.NodeId))t=(0,u.yX)(s,e.PDiskId,e.NodeId);else if((0,p.f8)(e.NodeId)&&(0,v.NJ)(e)){var a;t=(0,x.vI)(e.NodeId,{pdiskId:null===(a=e.PDiskId)||void 0===a?void 0:a.toString(),vdiskId:(0,w.U9)(e.VDiskId)},"structure")}return t}var I=s(39110),C=s(60712);const j=(0,a.cn)("vdisk-storage-popup"),P=({data:e})=>{const t=(0,v.NJ)(e),s=(0,S.X)(),a=i.useMemo((()=>t?((e,t)=>{var s,a,r,n;const{NodeId:o,PDiskId:i,VDiskSlotId:d,StringifiedId:c,VDiskState:h,SatisfactionRank:v,DiskSpace:f,FrontQueues:S,Replicated:y,UnsyncedVDisks:b,AllocatedSize:x,ReadThroughput:w,WriteThroughput:D,StoragePoolName:j}=e,P=[{label:"VDisk",value:c},{label:"State",value:null!==h&&void 0!==h?h:"not available"}];var A,E;if(j&&P.push({label:"StoragePool",value:j}),v&&(null===(s=v.FreshRank)||void 0===s?void 0:s.Flag)!==m.m.Green&&P.push({label:"Fresh",value:null===(A=v.FreshRank)||void 0===A?void 0:A.Flag}),v&&(null===(a=v.LevelRank)||void 0===a?void 0:a.Flag)!==m.m.Green&&P.push({label:"Level",value:null===(E=v.LevelRank)||void 0===E?void 0:E.Flag}),v&&null!==(r=v.FreshRank)&&void 0!==r&&r.RankPercent&&P.push({label:"Fresh",value:v.FreshRank.RankPercent}),v&&null!==(n=v.LevelRank)&&void 0!==n&&n.RankPercent&&P.push({label:"Level",value:v.LevelRank.RankPercent}),f&&f!==m.m.Green&&P.push({label:"Space",value:f}),S&&S!==m.m.Green&&P.push({label:"FrontQueues",value:S}),!1===y&&P.push({label:"Replicated",value:"NO"}),b&&P.push({label:"UnsyncVDisks",value:b}),Number(x)&&P.push({label:"Allocated",value:(0,k.wb)(x)}),Number(w)&&P.push({label:"Read",value:(0,k.O4)(w)}),Number(D)&&P.push({label:"Write",value:(0,k.O4)(D)}),t&&(0,p.f8)(o)&&(0,p.f8)(i)&&(0,p.f8)(d)){const e=(0,g.Wg)({nodeId:o,pDiskId:i,vDiskSlotId:d}),t=(0,u.yX)(d,i,o);P.push({label:"Links",value:(0,C.jsxs)(l.s,{wrap:"wrap",gap:2,children:[(0,C.jsx)(N.K,{title:(0,I.r)("vdisk-page"),url:t,external:!1},t),(0,C.jsx)(N.K,{title:(0,I.r)("developer-ui"),url:e})]})})}return P})(e,s):((e,t)=>{const{NodeId:s,PDiskId:a,VSlotId:r,StoragePoolName:n}=e,o=[{label:"State",value:"not available"}];if(n&&o.push({label:"StoragePool",value:n}),o.push({label:"NodeId",value:null!==s&&void 0!==s?s:h.Pd},{label:"PDiskId",value:null!==a&&void 0!==a?a:h.Pd},{label:"VSlotId",value:null!==r&&void 0!==r?r:h.Pd}),t&&(0,p.f8)(s)&&(0,p.f8)(a)&&(0,p.f8)(r)){const e=(0,g.Wg)({nodeId:s,pDiskId:a,vDiskSlotId:r});o.push({label:"Links",value:(0,C.jsx)(N.K,{title:"Developer UI",url:e})})}return o})(e,s)),[e,t,s]),r=(0,f.N4)(c.K),n=(0,p.f8)(e.NodeId)?null===r||void 0===r?void 0:r.get(e.NodeId):void 0,x=i.useMemo((()=>t&&e.PDisk&&(0,b.f)(e.PDisk,n,s)),[e,n,t,s]),w=[];if("Donors"in e&&e.Donors){const t=e.Donors;for(const e of t)w.push({label:"VDisk",value:(0,C.jsx)(o.E,{to:D(e),children:e.StringifiedId})})}return(0,C.jsxs)("div",{className:j(),children:[e.DonorMode&&(0,C.jsx)(d.J,{className:j("donor-label"),children:"Donor"}),(0,C.jsx)(y.z_,{title:"VDisk",info:a,size:"s"}),x&&(0,C.jsx)(y.z_,{title:"PDisk",info:x,size:"s"}),w.length>0&&(0,C.jsx)(y.z_,{title:"Donors",info:w,size:"s"})]})},A=(0,a.cn)("ydb-vdisk-component"),E=({data:e={},compact:t,inactive:s,showPopup:a,onShowPopup:i,onHidePopup:l,progressBarClassName:d,delayClose:u,delayOpen:c})=>{const m=D(e);return(0,C.jsx)(n.P,{showPopup:a,onShowPopup:i,onHidePopup:l,popupContent:(0,C.jsx)(P,{data:e}),offset:[0,5],delayClose:u,delayOpen:c,children:(0,C.jsx)("div",{className:A(),children:(0,C.jsx)(o.E,{to:m,className:A("content"),children:(0,C.jsx)(r.V,{diskAllocatedPercent:e.AllocatedPercent,severity:e.Severity,compact:t,inactive:s,className:d})})})})}},10174:(e,t,s)=>{s.d(t,{S:()=>o});var a=s(21334),r=s(16029),n=s(11905);const o=a.F.injectEndpoints({endpoints:e=>({getStorageNodesInfo:e.query({queryFn:async(e,{signal:t})=>{try{const s=await window.api.viewer.getNodes({storage:!0,type:"static",...e},{signal:t});return{data:(0,n.rz)(s)}}catch(s){return{error:s}}},providesTags:["All","StorageData"]}),getStorageGroupsInfo:e.query({queryFn:async(e,{signal:t})=>{try{return{data:await(0,r.t)(e,{signal:t})}}catch(s){return{error:s}}},providesTags:["All","StorageData"]})}),overrideExisting:"throw"})},10360:(e,t,s)=>{s.d(t,{hu:()=>m,YX:()=>k,LO:()=>p,UW:()=>d,H6:()=>h,qK:()=>i,SE:()=>f,zY:()=>l,GP:()=>N,Ai:()=>c,i4:()=>b,kY:()=>S});var a=s(370),r=s(48372);const n=JSON.parse('{"pool-name":"Pool Name","type":"Type","encryption":"Encryption","erasure":"Erasure","degraded":"Degraded","missing-disks":"Missing Disks","state":"State","usage":"Usage","disk-usage":"Disk usage","group-id":"Group ID","used":"Used","limit":"Limit","space":"Space","read":"Read","write":"Write","latency":"Latency","allocation-units":"Allocation Units","vdisks":"VDisks","vdisks-pdisks":"VDisks with PDisks"}'),o=(0,r.g4)("ydb-storage-groups-columns",{en:n}),i="storageGroupsColumnsWidth",l="storageGroupsSelectedColumns",d={GroupId:"GroupId",PoolName:"PoolName",MediaType:"MediaType",Erasure:"Erasure",Used:"Used",Limit:"Limit",Usage:"Usage",DiskSpaceUsage:"DiskSpaceUsage",DiskSpace:"DiskSpace",Read:"Read",Write:"Write",Latency:"Latency",AllocationUnits:"AllocationUnits",VDisks:"VDisks",VDisksPDisks:"VDisksPDisks",Degraded:"Degraded",State:"State"},u=["DiskSpaceUsage","Latency","AllocationUnits","VDisksPDisks"];function c(e){return u.includes(e)}const m=["GroupId","PoolName","Erasure","Used","VDisks"],p=["GroupId"],h={get PoolName(){return o("pool-name")},get MediaType(){return o("type")},get Erasure(){return o("erasure")},get GroupId(){return o("group-id")},get Used(){return o("used")},get Limit(){return o("limit")},get Usage(){return o("usage")},get DiskSpaceUsage(){return o("disk-usage")},get DiskSpace(){return o("space")},get Read(){return o("read")},get Write(){return o("write")},get Latency(){return o("latency")},get AllocationUnits(){return o("allocation-units")},get VDisks(){return o("vdisks")},get VDisksPDisks(){return o("vdisks-pdisks")},get Degraded(){return o("missing-disks")},get State(){return o("state")}},g={get GroupId(){return o("group-id")},get Erasure(){return o("erasure")},get Usage(){return o("usage")},get DiskSpaceUsage(){return o("disk-usage")},get PoolName(){return o("pool-name")},get Kind(){return o("type")},get Encryption(){return o("encryption")},get MediaType(){return o("type")},get MissingDisks(){return o("missing-disks")},get State(){return o("state")},get Latency(){return o("latency")}},v=["PoolName","MediaType","Encryption","Erasure","Usage","DiskSpaceUsage","State","MissingDisks","Latency"],f=v.map((e=>({value:e,content:g[e]}))),S=a.z.custom((e=>v.includes(e))).catch(void 0),k={GroupId:["GroupId"],PoolName:["PoolName"],MediaType:["MediaType","Encryption"],Erasure:["Erasure"],Used:["Used"],Limit:["Limit"],Usage:["Usage"],DiskSpaceUsage:["DiskSpaceUsage"],DiskSpace:["State"],Read:["Read"],Write:["Write"],Latency:["Latency"],AllocationUnits:["AllocationUnits"],VDisks:["VDisk","PDisk","Read","Write"],VDisksPDisks:["VDisk","PDisk","Read","Write"],Degraded:["MissingDisks"],State:["State"]},y={GroupId:"GroupId",PoolName:"PoolName",MediaType:"MediaType",Erasure:"Erasure",Used:"Used",Limit:"Limit",Usage:"Usage",DiskSpaceUsage:"DiskSpaceUsage",DiskSpace:void 0,Read:"Read",Write:"Write",Latency:"Latency",AllocationUnits:"AllocationUnits",VDisks:void 0,VDisksPDisks:void 0,Degraded:"Degraded",State:"State"};function N(e){return y[e]}function b(e){return Boolean(N(e))}},10508:(e,t,s)=>{s.d(t,{c:()=>c});var a=s(67884),r=s(96873),n=s(54090),o=s(77506),i=s(82015),l=s(33775),d=s(60712);const u=(0,o.cn)("entity-status");function c({status:e=n.m.Grey,name:t="",label:s,path:o,iconPath:c,size:m="s",mode:p="color",showStatus:h=!0,externalLink:g=!1,withLeftTrim:v=!1,hasClipboardButton:f,clipboardButtonAlwaysVisible:S=!1,className:k}){const y=()=>h?(0,d.jsx)(l.k,{className:u("icon"),status:e,size:m,mode:p}):null;return(0,d.jsxs)("div",{className:u(null,k),children:[c?(N=c,(0,d.jsx)(a.N,{target:"_blank",href:N,children:y()})):y(),s&&(0,d.jsx)("span",{title:s,className:u("label",{size:m,state:e.toLowerCase()}),children:s}),(o||t)&&(0,d.jsxs)("div",{className:u("wrapper",{"with-button":f}),children:[(0,d.jsx)("span",{className:u("link",{"with-left-trim":v}),title:t,children:o?g?(0,d.jsx)(a.N,{className:u("name"),href:o,children:t}):(0,d.jsx)(i.E,{className:u("name"),to:o,children:t}):t&&(0,d.jsx)("span",{className:u("name"),children:t})}),f&&(0,d.jsx)("div",{className:u("controls-wrapper",{visible:S}),children:(0,d.jsx)(r.b,{text:t,size:"xs",view:"normal",className:u("clipboard-button",{visible:S})})})]})]});var N}},10576:(e,t,s)=>{s.d(t,{E:()=>g});var a=s(59284),r=s(88226),n=s(13096),o=s(44294),i=s(96927),l=s(8809),d=s(92459),u=s(7435),c=s(77506),m=s(3218),p=s(60712);const h=(0,c.cn)("pdisk-storage"),g=({data:e={},vDisks:t,showPopup:s,onShowPopup:c,onHidePopup:g,className:v,progressBarClassName:f,viewContext:S})=>{const{NodeId:k,PDiskId:y}=e,N=(0,u.f8)(k)&&(0,u.f8)(y),b=a.useRef(null);let x;return N&&(x=(0,d.Ck)(y,k)),(0,p.jsxs)("div",{className:h(null,v),ref:b,children:[null!==t&&void 0!==t&&t.length?(0,p.jsx)("div",{className:h("vdisks"),children:t.map((e=>(0,p.jsx)("div",{className:h("vdisks-item"),style:{flexGrow:Number(e.AllocatedSize)||1},children:(0,p.jsx)(l.y,{data:e,inactive:!(0,m.OH)(e,S),compact:!0,delayClose:200,delayOpen:200})},e.StringifiedId)))}):null,(0,p.jsx)(n.P,{showPopup:s,offset:[0,5],anchorRef:b,onShowPopup:c,onHidePopup:g,popupContent:(0,p.jsx)(i.O,{data:e}),delayClose:200,children:(0,p.jsxs)(o.E,{to:x,className:h("content"),children:[(0,p.jsx)(r.V,{diskAllocatedPercent:e.AllocatedPercent,severity:e.Severity,className:f}),(0,p.jsx)("div",{className:h("media-type"),children:e.Type})]})})]})}},11905:(e,t,s)=>{s.d(t,{Rv:()=>y,rz:()=>S,Qi:()=>k});var a=s(94025),r=s(67375),n=s(7187),o=s(27295),i=s(78034);var l=s(73891),d=s(56839),u=s(51930),c=s(64036),m=s(78461);function p(e={}){var t,s,a,r;const{Whiteboard:i={},PDisk:l,...h}=e,g={...i,...h,VDiskId:i.VDiskId},v=function(e={}){var t,s,a;const{Whiteboard:r,...i}=e,l={...r,...i,PDiskId:null===r||void 0===r?void 0:r.PDiskId},d=i.PDiskId||(0,n.r$)(l.NodeId,l.PDiskId),{AllocatedPercent:c,AllocatedSize:p,AvailableSize:h,TotalSize:g}=(0,o.hK)({AvailableSize:l.AvailableSize,TotalSize:l.TotalSize}),v=null!==(t=null===(s=i.Type)||void 0===s?void 0:s.toUpperCase())&&void 0!==t?t:(0,m.Y)(null===r||void 0===r?void 0:r.Category),f=(0,u.d)({State:null===r||void 0===r?void 0:r.State,AllocatedPercent:c}),S=null!==(a=i.SlotSize)&&void 0!==a?a:null===r||void 0===r?void 0:r.EnforcedDynamicSlotSize;return{...l,StringifiedId:d,AllocatedPercent:c,AllocatedSize:p,AvailableSize:h,TotalSize:g,Type:v,Severity:f,SlotSize:S}}({...l,NodeId:g.NodeId}),f=null!==(t=null===v||void 0===v?void 0:v.PDiskId)&&void 0!==t?t:null===i||void 0===i?void 0:i.PDiskId,S=null!==(s=h.VDiskId)&&void 0!==s?s:(0,d.U9)(i.VDiskId),k=(0,c.b)(g),y=(0,o.LW)({AvailableSize:null!==(a=g.AvailableSize)&&void 0!==a?a:null===l||void 0===l?void 0:l.AvailableSize,AllocatedSize:g.AllocatedSize}),N=null===(r=h.Donors)||void 0===r?void 0:r.map((e=>p({...e,Whiteboard:{...e.Whiteboard,DonorMode:!0}})));return{...g,...y,PDisk:v,Donors:N,PDiskId:f,StringifiedId:S,Severity:k}}function h(e){const{DiskSpace:t,VDisks:s=[]}=e;return t||(0,n.XY)(Math.max(...s.map((e=>(0,n.H7)(e.DiskSpace)))))}const g=(e,t)=>{var s;const a=(0,o.WT)(e);return{...a,StoragePoolName:t,Donors:null===a||void 0===a||null===(s=a.Donors)||void 0===s?void 0:s.map((e=>({...e,StoragePoolName:t})))}},v=(e,t)=>{var s;let n,i=0,l=0,d=0,u=0,c=0;const{Name:m,MediaType:p}=t;if(e.VDisks)for(const h of e.VDisks){const{Replicated:e,VDiskState:t,AvailableSize:s,AllocatedSize:m,PDisk:p,ReadThroughput:g,WriteThroughput:v}=h,{Type:f,State:S,AvailableSize:k}=(0,o.or)(p);!1!==e&&S===a.t.Normal&&t===r.W.OK||(i+=1);const y=Number(null!==s&&void 0!==s?s:k)||0,N=Number(m)||0;l+=N,d+=y+N,u+=Number(g)||0,c+=Number(v)||0,n=!f||f!==n&&n?"Mixed":f}const v=null===(s=e.VDisks)||void 0===s?void 0:s.map((e=>g(e,m))),f=d?((e,t=1)=>{const s=e.Limit?100*e.Used/e.Limit:0;return Math.floor(s/t)*t})({Used:l,Limit:d},5):void 0,S=h(e);return{...e,GroupGeneration:e.GroupGeneration?String(e.GroupGeneration):void 0,GroupId:e.GroupID,Overall:e.Overall,VDisks:v,Usage:f,Read:u,Write:c,PoolName:m,Used:l,Limit:d,Degraded:i,MediaType:p||n||void 0,DiskSpace:S}},f=e=>{const{VDisks:t=[],PoolName:s,Usage:a=0,Read:r=0,Write:n=0,Used:o=0,Limit:i=0,Degraded:l=0,Kind:d,MediaType:u,GroupID:c,Overall:m,GroupGeneration:p}=e,v=t.map((e=>g(e,s))),f=100*Number(a),S=h(e);return{...e,PoolName:s,GroupId:c,MediaType:u||d,VDisks:v,Usage:f,Overall:m,GroupGeneration:p?String(p):void 0,Read:Number(r),Write:Number(n),Used:Number(o),Limit:Number(i),Degraded:Number(l),DiskSpace:S}},S=e=>{const{Nodes:t,TotalNodes:s,FoundNodes:r,NodeGroups:n,MaximumSlotsPerDisk:l,MaximumDisksPerNode:d}=e,u=null===n||void 0===n?void 0:n.map((({GroupName:e,NodeCount:t})=>{if(e&&t)return{name:e,count:Number(t)}})).filter((e=>Boolean(e))),c=((e,t)=>{if(t)return t;const s=(e||[]).flatMap((e=>{const t=e.PDisks||[],s=e.VDisks||[];return t.map((e=>s.filter((t=>t.PDiskId===e.PDiskId)).length||0))})),a=Math.max(1,...s);return String(a)})(t,l),m=((e,t)=>{if(t)return t;const s=(e||[]).map((e=>{var t;return(null===(t=e.PDisks)||void 0===t?void 0:t.length)||0})),a=Math.max(1,...s);return String(a)})(t,d),p=null===t||void 0===t?void 0:t.map((e=>((e,t,s)=>{var r,n,l;const d=(null===(r=e.PDisks)||void 0===r?void 0:r.filter((e=>e.State!==a.t.Normal)).length)||0,u=null===(n=e.PDisks)||void 0===n?void 0:n.map((t=>({...(0,o.or)(t),NodeId:e.NodeId}))),c=null===(l=e.VDisks)||void 0===l?void 0:l.map((t=>({...(0,o.WT)(t),NodeId:e.NodeId})));return{...(0,i.q1)(e.SystemState),NodeId:e.NodeId,DiskSpaceUsage:e.DiskSpaceUsage,PDisks:u,VDisks:c,Missing:d,MaximumSlotsPerDisk:t,MaximumDisksPerNode:s}})(e,c,m)));return{nodes:p,total:Number(s)||(null===p||void 0===p?void 0:p.length),found:Number(r),tableGroups:u}},k=e=>{const{StoragePools:t,StorageGroups:s,TotalGroups:a,FoundGroups:r}=e,n=((e,t)=>{let s=[];return e?s=e.map(f):null===t||void 0===t||t.forEach((e=>{var t;null===(t=e.Groups)||void 0===t||t.forEach((t=>{s.push(v(t,e))}))})),s})(s,t);return{groups:n,total:Number(a)||n.length,found:Number(r)}};function y(e){const{FoundGroups:t,TotalGroups:s,StorageGroups:a=[],StorageGroupGroups:r}=e,n=a.map((e=>{const{Usage:t,DiskSpaceUsage:s,Read:a,Write:r,Used:n,Limit:o,MissingDisks:i,VDisks:d=[],Overall:u,LatencyPutTabletLog:c,LatencyPutUserData:m,LatencyGetFast:g}=e,v=d.map(p),f=h(e);return{...e,Usage:t,DiskSpaceUsage:s,Read:Number(a),Write:Number(r),Used:Number(n),Limit:Number(o),LatencyPutTabletLogMs:(0,l.Jc)(c),LatencyPutUserDataMs:(0,l.Jc)(m),LatencyGetFastMs:(0,l.Jc)(g),Degraded:Number(i),Overall:u,VDisks:v,DiskSpace:f}})),o=null===r||void 0===r?void 0:r.map((({GroupName:e,GroupCount:t})=>{if(e&&t)return{name:e,count:Number(t)}})).filter((e=>Boolean(e)));return{groups:n,total:Number(s)||n.length,found:Number(t),tableGroups:o}}},13096:(e,t,s)=>{s.d(t,{P:()=>u});var a=s(59284),r=s(39238),n=s(43781),o=s.n(n),i=s(77506),l=s(60712);const d=(0,i.cn)("hover-popup"),u=({children:e,popupContent:t,showPopup:s,offset:n,anchorRef:i,onShowPopup:u,onHidePopup:c,placement:m=["top","bottom"],contentClassName:p,delayClose:h=100,delayOpen:g=100})=>{const[v,f]=a.useState(!1),S=a.useRef(null),k=a.useMemo((()=>o()((()=>{f(!0),null===u||void 0===u||u()}),g)),[u,g]),y=a.useCallback((()=>{f(!1),null===c||void 0===c||c()}),[c]),N=a.useMemo((()=>o()(y,h)),[y,h]),b=k,[x,w]=a.useState(!1),[D,I]=a.useState(!1),C=a.useCallback((()=>{w(!0)}),[]),j=a.useCallback((()=>{w(!1)}),[]),P=a.useCallback((()=>{I(!0)}),[]),A=a.useCallback((()=>{I(!1)}),[]),E=a.useCallback((()=>{I(!1),w(!1),y()}),[y]),T=v||s||x||D;return(0,l.jsxs)(a.Fragment,{children:[(0,l.jsx)("span",{ref:S,onMouseEnter:b,onMouseLeave:()=>{k.cancel(),N()},children:e}),(0,l.jsx)(r.z,{contentClassName:d(null,p),anchorRef:i||S,open:T,onMouseEnter:C,onMouseLeave:j,onEscapeKeyDown:E,onBlur:A,placement:m,hasArrow:!0,offset:n||[0,12],children:(0,l.jsx)("div",{onContextMenu:P,children:t})})]})}},13342:(e,t,s)=>{s.d(t,{U:()=>i});var a=s(47665),r=s(77506),n=s(60712);const o=(0,r.cn)("ydb-usage-label");function i({value:e,overloadThreshold:t=90,theme:s,...r}){return(0,n.jsxs)(a.J,{theme:s,className:o({overload:Number(e)>=t}),...r,children:[e||0,"%"]})}},15132:(e,t,s)=>{s.d(t,{O:()=>m});var a=s(38501),r=s(77506),n=s(56839),o=s(35736),i=s(41650),l=s(60712);const d=(0,r.cn)("progress-viewer"),u=e=>(0,n.ZV)((0,n.CR)(Number(e),2)),c=(e,t)=>[u(e),u(t)];function m({value:e,capacity:t,formatValues:s=c,percents:r,className:n,size:u="xs",colorizeProgress:m,inverseColorize:p,warningThreshold:h,dangerThreshold:g,hideCapacity:v}){const f=(0,a.D)();let S=Math.round(parseFloat(String(e))/parseFloat(String(t))*100)||0;S=S>100?100:S;let k=e,y=t,N="/";r?(k=S+"%",y="",N=""):s&&([k,y]=s(Number(e),Number(t)));const b=(0,o.w)({fillWidth:S,warningThreshold:h,dangerThreshold:g,colorizeProgress:m,inverseColorize:p});m&&!(0,i.kf)(t)&&(S=100);const x={width:S+"%"};return(0,i.kf)(e)?(0,l.jsxs)("div",{className:d({size:u,theme:f,status:b},n),children:[(0,l.jsx)("div",{className:d("line"),style:x}),(0,l.jsx)("span",{className:d("text"),children:(0,i.kf)(t)&&!v?`${k} ${N} ${y}`:k})]}):(0,l.jsx)("div",{className:`${d({size:u})} ${n} error`,children:"no data"})}},16029:(e,t,s)=>{s.d(t,{t:()=>r});var a=s(11905);async function r({version:e="v2",shouldUseGroupsHandler:t,...s},r){if(t&&"v1"!==e){const e=await window.api.storage.getStorageGroups({...s},r);return(0,a.Rv)(e)}{const t=await window.api.viewer.getStorageInfo({version:e,...s},r);return(0,a.Qi)(t)}}},16439:(e,t,s)=>{s.d(t,{H:()=>r,f:()=>n});var a=s(76086);const r=(e,t=a.Hh,s=a.Ed)=>a=>0<=a&&a<t?e[0]:t<=a&&a<s?e[1]:s<=a?e[2]:void 0,n=r(["success","warning","danger"])},16819:(e,t,s)=>{s.d(t,{a:()=>o});var a=s(59284),r=s(69024),n=s(59001);const o=e=>{const t=a.useCallback((()=>e?n.f.readUserSettingsValue(e,{}):{}),[e]),s=a.useCallback((t=>{e&&n.f.setUserSettingsValue(e,t)}),[e]);return(0,r.a)({saveSizes:s,getSizes:t})}},19228:(e,t,s)=>{s.d(t,{Q:()=>l});var a=s(89169),r=s(77506),n=s(66781),o=s(60712);const i=(0,r.cn)("table-skeleton"),l=({rows:e=2,delay:t=600,className:s})=>{const[r]=(0,n.y)(t);return(0,o.jsxs)("div",{className:i("wrapper",{hidden:!r},s),children:[(0,o.jsxs)("div",{className:i("row"),children:[(0,o.jsx)(a.E,{className:i("col-1")}),(0,o.jsx)(a.E,{className:i("col-2")}),(0,o.jsx)(a.E,{className:i("col-3")}),(0,o.jsx)(a.E,{className:i("col-4")}),(0,o.jsx)(a.E,{className:i("col-5")})]}),[...new Array(e)].map(((e,t)=>(0,o.jsx)("div",{className:i("row"),children:(0,o.jsx)(a.E,{className:i("col-full")})},`skeleton-row-${t}`)))]})}},20831:(e,t,s)=>{s.d(t,{J:()=>oe,k:()=>ne});var a=s(79879),r=s(4557),n=s(63291),o=s(47665),i=s(84375),l=s(99991),d=s(71661),u=s(44294),c=s(33775),m=s(13342),p=s(92459),h=s(7435),g=s(77506),v=s(76086),f=s(56839),S=s(16439),k=s(73891),y=s(41650),N=s(59284),b=s(69033),x=s(87184),w=s(8809),D=s(10576),I=s(3218),C=s(60712);const j=(0,g.cn)("ydb-storage-disks");function P({vDisks:e=[],viewContext:t,erasure:s}){const[a,r]=N.useState(),n=(0,I.Ep)(e,s),{theme:{spaceBaseSize:o}}=(0,b.L)();if(!e.length)return null;const i=(300-o*(e.length-1))/e.length;return(0,C.jsxs)("div",{className:j(null),children:[(0,C.jsx)(x.s,{direction:"row",gap:1,grow:!0,style:{width:300},children:null===e||void 0===e?void 0:e.map(((e,s)=>(0,C.jsx)(A,{vDisk:e,inactive:!(0,I.OH)(e,t),highlightedVDisk:a,setHighlightedVDisk:r,unavailableVDiskWidth:i},e.StringifiedId||s)))}),(0,C.jsx)("div",{className:j("pdisks-wrapper"),children:null===e||void 0===e?void 0:e.map(((e,t)=>{var s;return(0,C.jsx)(E,{vDisk:e,highlightedVDisk:a,setHighlightedVDisk:r,withDCMargin:n.includes(t)},(null===e||void 0===e||null===(s=e.PDisk)||void 0===s?void 0:s.StringifiedId)||t)}))})]})}function A({vDisk:e,highlightedVDisk:t,inactive:s,setHighlightedVDisk:a,unavailableVDiskWidth:r}){const n={...e,PDisk:void 0},o=e.StringifiedId,i=(0,y.kf)(n.AllocatedSize)?void 0:r,l=Number(n.AllocatedSize)||1;return(0,C.jsx)("div",{style:{flexGrow:l,minWidth:i},className:j("vdisk-item"),children:(0,C.jsx)(w.y,{data:n,compact:!0,inactive:s,showPopup:t===o,onShowPopup:()=>a(o),onHidePopup:()=>a(void 0),progressBarClassName:j("vdisk-progress-bar")})})}function E({vDisk:e,highlightedVDisk:t,setHighlightedVDisk:s,withDCMargin:a}){const r=e.StringifiedId;return e.PDisk?(0,C.jsx)(D.E,{className:j("pdisk-item",{"with-dc-margin":a}),progressBarClassName:j("pdisk-progress-bar"),data:e.PDisk,showPopup:t===r,onShowPopup:()=>s(r),onHidePopup:()=>s(void 0)}):null}var T=s(7187);const U="--ydb-stack-level",R=(0,g.cn)("stack"),G=({children:e,className:t})=>(0,C.jsx)("div",{className:R(null,t),children:N.Children.map(e,((e,t)=>N.isValidElement(e)?(0,C.jsx)("div",{className:R("layer"),style:{[U]:t},children:e}):null))});function M({data:e,className:t,stackClassName:s,...a}){const{Donors:r,...n}=e||{},o=r&&r.length>0?(0,C.jsxs)(G,{className:s,children:[(0,C.jsx)(w.y,{data:n,...a}),r.map((e=>{const t=(0,T.NJ)(e);return(0,C.jsx)(w.y,{data:e,...a},(0,f.U9)(t?e.VDiskId:e))}))]}):(0,C.jsx)(w.y,{data:e,...a});return(0,C.jsx)("div",{className:t,children:o})}const L=(0,g.cn)("ydb-storage-vdisks");function z({vDisks:e,viewContext:t,erasure:s}){const a=(0,I.Ep)(e,s);return(0,C.jsx)("div",{className:L("wrapper"),children:null===e||void 0===e?void 0:e.map(((e,s)=>(0,C.jsx)(M,{data:e,inactive:!(0,I.OH)(e,t),className:L("item",{"with-dc-margin":a.includes(s)})},e.StringifiedId)))})}var V=s(61456),W=s(10360);const O=(0,g.cn)("ydb-storage-groups-columns"),H={name:W.UW.PoolName,header:W.H6.PoolName,width:250,render:({row:e})=>e.PoolName?(0,C.jsx)(d.s,{content:e.PoolName,placement:["right"],behavior:n.m.Immediate,className:O("pool-name-wrapper"),children:(0,C.jsx)("span",{className:O("pool-name"),children:e.PoolName})}):v.Pd,align:r.Ay.LEFT},F={name:W.UW.MediaType,header:W.H6.MediaType,width:100,resizeMinWidth:100,align:r.Ay.LEFT,render:({row:e})=>(0,C.jsxs)("div",{children:[(0,C.jsx)(o.J,{children:e.MediaType||"\u2014"}),"\xa0",e.Encryption&&(0,C.jsx)(i.A,{content:(0,V.A)("encrypted"),placement:"right",behavior:n.m.Immediate,children:(0,C.jsx)(o.J,{children:(0,C.jsx)(l.I,{data:a.A,size:18})})})]}),sortable:!1},_={name:W.UW.Erasure,header:W.H6.Erasure,width:100,sortAccessor:e=>e.ErasureSpecies,render:({row:e})=>e.ErasureSpecies?e.ErasureSpecies:"-",align:r.Ay.LEFT},B={name:W.UW.Degraded,header:W.H6.Degraded,width:110,resizeMinWidth:110,render:({row:e})=>e.Degraded?(0,C.jsxs)(o.J,{theme:(0,I.k_)(e),children:["Degraded: ",e.Degraded]}):"-",align:r.Ay.LEFT,defaultOrder:r.Ay.DESCENDING},$={name:W.UW.State,header:W.H6.State,width:150,render:({row:e})=>{var t;return null!==(t=e.State)&&void 0!==t?t:v.Pd},align:r.Ay.LEFT,defaultOrder:r.Ay.DESCENDING},Y={name:W.UW.Usage,header:W.H6.Usage,width:85,resizeMinWidth:75,render:({row:e})=>(0,h.f8)(e.Usage)?(0,C.jsx)(m.U,{value:Math.floor(e.Usage),theme:(0,S.f)(e.Usage)}):v.Pd,align:r.Ay.LEFT},J={name:W.UW.DiskSpaceUsage,header:W.H6.DiskSpaceUsage,width:115,resizeMinWidth:75,render:({row:e})=>(0,h.f8)(e.DiskSpaceUsage)?(0,C.jsx)(m.U,{value:Math.floor(e.DiskSpaceUsage),theme:(0,S.f)(e.DiskSpaceUsage)}):v.Pd,align:r.Ay.LEFT},K={name:W.UW.GroupId,header:W.H6.GroupId,width:130,render:({row:e})=>e.GroupId?(0,C.jsx)(u.E,{className:O("group-id"),to:(0,p._g)(e.GroupId),children:e.GroupId}):"-",sortAccessor:e=>Number(e.GroupId),align:r.Ay.RIGHT},Q={name:W.UW.Used,header:W.H6.Used,width:100,render:({row:e})=>(0,y.wb)(e.Used,!0),align:r.Ay.RIGHT},X={name:W.UW.Limit,header:W.H6.Limit,width:100,render:({row:e})=>(0,y.wb)(e.Limit),align:r.Ay.RIGHT},q={name:W.UW.DiskSpace,header:W.H6.DiskSpace,width:70,render:({row:e})=>(0,C.jsx)(c.k,{status:e.DiskSpace}),align:r.Ay.CENTER},Z={name:W.UW.Read,header:W.H6.Read,width:100,render:({row:e})=>e.Read?(0,y.O4)(e.Read):"-",align:r.Ay.RIGHT},ee={name:W.UW.Write,header:W.H6.Write,width:100,render:({row:e})=>e.Write?(0,y.O4)(e.Write):"-",align:r.Ay.RIGHT},te={name:W.UW.Latency,header:W.H6.Latency,width:100,render:({row:e})=>(0,h.f8)(e.LatencyPutTabletLogMs)?(0,k.Xo)(e.LatencyPutTabletLogMs):v.Pd,align:r.Ay.RIGHT},se={name:W.UW.AllocationUnits,header:W.H6.AllocationUnits,width:150,render:({row:e})=>(0,h.f8)(e.AllocationUnits)?(0,f.ZV)(e.AllocationUnits):v.Pd,align:r.Ay.RIGHT},ae=e=>({name:W.UW.VDisks,header:W.H6.VDisks,className:O("vdisks-column"),render:({row:t})=>(0,C.jsx)(z,{vDisks:t.VDisks,viewContext:null===e||void 0===e?void 0:e.viewContext,erasure:t.ErasureSpecies}),align:r.Ay.CENTER,width:780,resizeable:!1,sortable:!1}),re=e=>({name:W.UW.VDisksPDisks,header:W.H6.VDisksPDisks,className:O("disks-column"),render:({row:t})=>(0,C.jsx)(P,{vDisks:t.VDisks,viewContext:null===e||void 0===e?void 0:e.viewContext,erasure:t.ErasureSpecies}),align:r.Ay.CENTER,width:900,resizeable:!1,sortable:!1}),ne=()=>[K,F,_,Y,Q,X],oe=e=>[K,H,F,_,B,$,Y,J,Q,X,q,Z,ee,te,se,ae(e),re(e)].map((e=>({...e,sortable:(0,W.i4)(e.name)})))},24543:(e,t,s)=>{s.d(t,{u:()=>o});var a=s(59284),r=s(39238),n=s(60712);const o=({children:e,content:t,className:s,pinOnClick:o,hasArrow:i=!0,placement:l=["top","bottom"],...d})=>{const[u,c]=a.useState(!1),[m,p]=a.useState(!1),h=a.useRef(null);return(0,n.jsxs)(a.Fragment,{children:[(0,n.jsx)(r.z,{anchorRef:h,open:m||u,placement:l,hasArrow:i,onOutsideClick:()=>{p(!1)},...d,children:t}),(0,n.jsx)("span",{className:s,ref:h,onClick:o?()=>{p(!0)}:void 0,onMouseEnter:()=>{c(!0)},onMouseLeave:()=>{c(!1)},children:e})]})}},27295:(e,t,s)=>{s.d(t,{LW:()=>u,WT:()=>l,hK:()=>c,or:()=>d});var a=s(56839),r=s(51930),n=s(64036),o=s(78461),i=s(7187);function l(e={}){var t;if(!(0,i.NJ)(e)){const{NodeId:t,PDiskId:s,VSlotId:r}=e;return{StringifiedId:(0,a.U9)({NodeId:t,PDiskId:s,VSlotId:r}),NodeId:t,PDiskId:s,VDiskSlotId:r}}const{PDisk:s,PDiskId:r,VDiskId:o,NodeId:c,Donors:m,AvailableSize:p,AllocatedSize:h,...g}=e,v=s?d({...s,NodeId:null!==(t=null===s||void 0===s?void 0:s.NodeId)&&void 0!==t?t:c}):void 0,f=null!==r&&void 0!==r?r:null===v||void 0===v?void 0:v.PDiskId,S=u({AvailableSize:null!==p&&void 0!==p?p:null===s||void 0===s?void 0:s.AvailableSize,AllocatedSize:h}),k=(0,n.b)(e),y=(0,a.U9)(o);return{...g,...S,VDiskId:o,NodeId:c,PDiskId:f,PDisk:v,Donors:null===m||void 0===m?void 0:m.map((e=>l({...e,DonorMode:!0}))),Severity:k,StringifiedId:y}}function d(e={}){const{AvailableSize:t,TotalSize:s,Category:a,State:n,PDiskId:l,NodeId:d,EnforcedDynamicSlotSize:u,...m}=e,p=(0,i.r$)(l,d),h=(0,o.Y)(a),g=c({AvailableSize:t,TotalSize:s}),v=(0,r.d)({State:n,AllocatedPercent:g.AllocatedPercent});return{...m,...g,PDiskId:l,NodeId:d,StringifiedId:p,Type:h,Category:a,State:n,Severity:v,SlotSize:u}}function u({AvailableSize:e,AllocatedSize:t}){const s=Number(e),a=Number(t),r=a+s;return{AvailableSize:s,AllocatedSize:a,TotalSize:r,AllocatedPercent:Math.round(100*a/r)}}function c({AvailableSize:e,TotalSize:t}){const s=Number(e),a=Number(t),r=a-s;return{AvailableSize:s,TotalSize:a,AllocatedSize:r,AllocatedPercent:Math.round(100*r/a)}}},31911:(e,t,s)=>{s.d(t,{A:()=>n});var a=s(48372);const r=JSON.parse('{"node-id":"Node ID","host":"Host","database":"Database","node-name":"Node Name","dc":"DC","rack":"Rack","version":"Version","uptime":"Uptime","memory":"Detailed Memory","ram":"RAM","cpu":"CPU","pools":"Pools","disk-usage":"Disk Usage","tablets":"Tablets","load-average":"Load Average","load":"Load","sessions":"Sessions","missing":"Missing","pdisks":"PDisks","field_memory-used":"Memory used","field_memory-limit":"Memory limit","system-state":"System State","connect-status":"Connect Status","utilization":"Utilization","network-utilization":"Network Utilization","connections":"Connections","clock-skew":"Clock Skew","skew":"Skew","ping-time":"Ping Time","ping":"Ping","send":"Send","receive":"Receive","max":"Max","min":"Min","avg":"Avg","sum":"Sum"}'),n=(0,a.g4)("ydb-nodes-columns",{en:r})},33775:(e,t,s)=>{s.d(t,{k:()=>m});var a=s(45720),r=s(16929),n=s(71153),o=s(99991),i=s(54090),l=s(77506),d=s(60712);const u=(0,l.cn)("ydb-status-icon"),c={[i.m.Blue]:a.A,[i.m.Yellow]:r.A,[i.m.Orange]:n.A,[i.m.Red]:r.A};function m({status:e=i.m.Grey,size:t="s",mode:s="color",className:a}){const r={state:e.toLowerCase(),size:t};return"icons"===s&&e in c?(0,d.jsx)(o.I,{className:u("status-icon",r,a),data:c[e]}):(0,d.jsx)("div",{className:u("status-color",r,a)})}},35736:(e,t,s)=>{s.d(t,{w:()=>r});var a=s(76086);function r({inverseColorize:e,warningThreshold:t=a.Hh,dangerThreshold:s=a.Ed,colorizeProgress:r,fillWidth:n}){let o=e?"danger":"good";return r&&(n>t&&n<=s?o="warning":n>s&&(o=e?"good":"danger")),o}},39110:(e,t,s)=>{s.d(t,{r:()=>n});var a=s(48372);const r=JSON.parse('{"slot-id":"VDisk Slot Id","pool-name":"Storage Pool Name","kind":"Kind","guid":"GUID","incarnation-guid":"Incarnation GUID","instance-guid":"Instance GUID","replication-status":"Replicated","state-status":"VDisk State","space-status":"Disk Space","fresh-rank-satisfaction":"Fresh Rank Satisfaction","level-rank-satisfaction":"Level Rank Satisfaction","front-queues":"Front Queues","has-unreadable-blobs":"Has Unreadable Blobs","size":"Size","read-throughput":"Read Throughput","write-throughput":"Write Throughput","links":"Links","vdisk-page":"VDisk Page","developer-ui":"Developer UI","yes":"Yes","no":"No","vdiks-title":"VDisk"}'),n=(0,a.g4)("ydb-vDisk-info",{en:r})},40427:(e,t,s)=>{s.d(t,{k5:()=>E});var a=s(59284),r=s(89073);const n=s(21334).F.injectEndpoints({endpoints:function(e){return{fetchTableChunk:e.query({queryFn:async({offset:e,limit:t,sortParams:s,filters:a,columnsIds:r,fetchData:n},{signal:o})=>{try{return{data:await n({limit:t,offset:e,filters:a,sortParams:s,columnsIds:r,signal:o})}}catch(i){return{error:i}}},providesTags:["All"]})}}});var o=s(7435),i=s(90182),l=s(44508),d=s(89169);const u=!0;const c=(0,s(77506).cn)("ydb-paginated-table");var m=s(60712);const p=({children:e,className:t,height:s,width:a,align:r="left",resizeable:n})=>(0,m.jsx)("td",{className:c("row-cell",{align:r},t),style:{height:`${s}px`,width:`${a}px`,maxWidth:n?`${a}px`:void 0},children:e}),h=({index:e,columns:t,height:s})=>(0,m.jsx)("tr",{className:c("row",{loading:!0}),children:t.map((t=>{var a;const r=null!==(a=t.resizeable)&&void 0!==a?a:u;return(0,m.jsx)(p,{height:s,width:t.width,align:t.align,className:t.className,resizeable:r,children:(0,m.jsx)(d.E,{className:c("row-skeleton"),style:{width:"80%",height:"50%"}})},`${t.name}${e}`)}))}),g=({row:e,index:t,columns:s,getRowClassName:a,height:r})=>{const n=null===a||void 0===a?void 0:a(e);return(0,m.jsx)("tr",{className:c("row",n),children:s.map((s=>{var a;const n=null!==(a=s.resizeable)&&void 0!==a?a:u;return(0,m.jsx)(p,{height:r,width:s.width,align:s.align,className:s.className,resizeable:n,children:s.render({row:e,index:t})},`${s.name}${t}`)}))})},v=({columns:e,children:t})=>(0,m.jsx)("tr",{className:c("row",{empty:!0}),children:(0,m.jsx)("td",{colSpan:e.length,className:c("td"),children:t})});var f=s(48372);const S=JSON.parse('{"empty":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445"}'),k=(0,f.g4)("ydb-paginated-table",{ru:S,en:{empty:"No data"}});const y=a.memo;const N=y((function({id:e,chunkSize:t,calculatedCount:s,rowHeight:r,columns:d,fetchData:u,tableName:c,filters:p,sortParams:f,getRowClassName:S,renderErrorMessage:y,renderEmptyDataMessage:N,onDataFetched:b,isActive:x}){var w;const[D,I]=a.useState(!0),[C]=(0,i.Nt)(),j={offset:e*t,limit:t,fetchData:u,filters:p,sortParams:f,columnsIds:d.map((e=>e.name)),tableName:c};n.useFetchTableChunkQuery(j,{skip:D||!x,pollingInterval:C});const{currentData:P,error:A}=n.endpoints.fetchTableChunk.useQueryState(j);a.useEffect((()=>{let e=0;return x&&D&&(e=window.setTimeout((()=>{I(!1)}),200)),()=>{window.clearTimeout(e)}}),[x,D]),a.useEffect((()=>{if(P&&x){const{total:e=0,found:t=0}=P;b(e,t)}}),[P,x,b]);const E=(null===P||void 0===P||null===(w=P.data)||void 0===w?void 0:w.length)||s;return(0,m.jsx)("tbody",{id:e.toString(),style:{height:E*r+"px",display:x?"table-row-group":"block"},children:(()=>{var e;if(!x)return null;if(!P){if(A){const e=A;return(0,m.jsx)(v,{columns:d,children:y?y(e):(0,m.jsx)(l.o,{error:e})})}return(0,o._e)(E).map((e=>(0,m.jsx)(h,{columns:d,height:r,index:e},e)))}return null!==(e=P.data)&&void 0!==e&&e.length?P.data.map(((e,t)=>(0,m.jsx)(g,{index:t,row:e,columns:d,height:r,getRowClassName:S},t))):(0,m.jsx)(v,{columns:d,children:N?N():k("empty")})})()})}));function b({minWidth:e,maxWidth:t,getCurrentColumnWidth:s,onResize:r}){const n=a.useRef(null),[o,i]=a.useState(!1);return a.useEffect((()=>{const a=n.current;if(!a)return;let o,l,d;const u=function(e){let t,s=null;return function(...a){t=a,"number"!==typeof s&&(s=requestAnimationFrame((()=>{e(...t),s=null})))}}((s=>{if(x(s),"number"!==typeof o||"number"!==typeof l)return;const a=s.clientX-o,n=function(e,t=40,s=1/0){return Math.max(t,Math.min(e,s))}(l+a,e,t);n!==d&&(d=n,null===r||void 0===r||r(d))})),c=e=>{x(e),void 0!==d&&(null===r||void 0===r||r(d)),i(!1),o=void 0,document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",c)},m=e=>{l=s(),x(e),o=e.clientX,i(!0),document.addEventListener("mousemove",u),document.addEventListener("mouseup",c)};return a.addEventListener("mousedown",m),()=>{a.removeEventListener("mousedown",m),document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",c)}}),[r,e,t,s]),(0,m.jsx)("span",{ref:n,className:c("resize-handler",{resizing:o}),onClick:e=>x(e)})}function x(e){e.preventDefault(),e.stopPropagation()}const w=({order:e})=>(0,m.jsx)("svg",{className:c("sort-icon",{desc:-1===e}),viewBox:"0 0 10 6",width:"10",height:"6",children:(0,m.jsx)("path",{fill:"currentColor",d:"M0 5h10l-5 -5z"})}),D=({sortOrder:e,sortable:t,defaultSortOrder:s})=>t?(0,m.jsx)("span",{className:c("sort-icon-container",{shadow:!e}),children:(0,m.jsx)(w,{order:e||s})}):null,I=({column:e,resizeable:t,sortOrder:s,defaultSortOrder:r,onSort:n,rowHeight:o,onCellMount:i,onCellUnMount:l,onColumnsResize:d})=>{var u;const p=a.useRef(null);a.useEffect((()=>{const e=p.current;return e&&(null===i||void 0===i||i(e)),()=>{e&&(null===l||void 0===l||l(e))}}),[i,l]);const h=a.useCallback((()=>{var e;return null===(e=p.current)||void 0===e?void 0:e.getBoundingClientRect().width}),[]),g=a.useCallback((t=>{null===d||void 0===d||d(e.name,t)}),[d,e.name]),v=null!==(u=e.header)&&void 0!==u?u:e.name,f={height:`${o}px`,width:`${e.width}px`,minWidth:t?`${e.width}px`:void 0,maxWidth:t?`${e.width}px`:void 0};return(0,m.jsxs)("th",{ref:p,className:c("head-cell-wrapper"),style:f,children:[(0,m.jsxs)("div",{className:c("head-cell",{align:e.align,sortable:e.sortable},e.className),onClick:()=>{e.sortable&&(null===n||void 0===n||n(e.name))},children:[(0,m.jsx)("div",{className:c("head-cell-content"),children:v}),(0,m.jsx)(D,{sortOrder:s,sortable:e.sortable,defaultSortOrder:r})]}),t?(0,m.jsx)(b,{maxWidth:e.resizeMaxWidth,minWidth:e.resizeMinWidth,getCurrentColumnWidth:h,onResize:g}):null]})},C=({columns:e,onSort:t,onColumnsResize:s,defaultSortOrder:r=-1,rowHeight:n=41})=>{const[o,i]=a.useState({}),l=e=>{let s={};if(e===o.columnId){if(o.sortOrder&&o.sortOrder!==r)return i(s),void(null===t||void 0===t||t(s));s={sortOrder:1===o.sortOrder?-1:1,columnId:e}}else s={sortOrder:r,columnId:e};null===t||void 0===t||t(s),i(s)};return(0,m.jsxs)(a.Fragment,{children:[(0,m.jsx)("colgroup",{children:e.map((e=>(0,m.jsx)("col",{style:{width:`${e.width}px`}},e.name)))}),(0,m.jsx)("thead",{className:c("head"),children:(0,m.jsx)("tr",{children:e.map((e=>{var t;const a=o.columnId===e.name?o.sortOrder:void 0,i=s&&(null!==(t=e.resizeable)&&void 0!==t?t:u);return(0,m.jsx)(I,{column:e,resizeable:i,sortOrder:a,defaultSortOrder:r,onSort:l,rowHeight:n,onColumnsResize:s},e.name)}))})})]})};var j=s(13847);const P=({limit:e,initialEntitiesCount:t,fetchData:s,filters:n,tableName:o,columns:i,getRowClassName:l,rowHeight:d=41,parentRef:u,initialSortParams:p,onColumnsResize:h,renderControls:g,renderErrorMessage:v,renderEmptyDataMessage:f,containerClassName:S})=>{const k=t||0,y=t||1,[b,x]=a.useState(p),[w,D]=a.useState(k),[I,P]=a.useState(y),[A,E]=a.useState(!0),T=a.useRef(null),U=(({parentRef:e,tableRef:t,totalItems:s,rowHeight:r,chunkSize:n,overscanCount:o=1})=>{const i=a.useMemo((()=>Math.ceil(s/n)),[n,s]),[l,d]=a.useState(0),[u,c]=a.useState(Math.min(o,Math.max(i-1,0))),m=a.useCallback((()=>{const s=null===e||void 0===e?void 0:e.current,a=t.current;if(!s||!a)return null;const l=function(e,t){let s=e,a=0;for(;s&&s!==t;)a+=s.offsetTop,s=s.offsetParent;return a}(a,s),d=s.scrollTop,u=Math.max(d-l,0),c=u+s.clientHeight;return{start:Math.max(Math.floor(u/r/n)-o,0),end:Math.min(Math.floor(c/r/n)+o,Math.max(i-1,0))}}),[e,t,r,n,o,i]),p=a.useCallback((()=>{const e=m();e&&(d(e.start),c(e.end))}),[m]);return a.useEffect((()=>{const t=null===e||void 0===e?void 0:e.current;if(!t)return;const s=(0,j.throttle)(p,100,{leading:!0,trailing:!0});return t.addEventListener("scroll",s),()=>{t.removeEventListener("scroll",s),s.cancel()}}),[p,e]),a.useMemo((()=>{const e=Array(i).fill(!1);for(let t=l;t<=u;t++)e[t]=!0;return e}),[i,l,u])})({parentRef:u,tableRef:T,totalItems:I,rowHeight:d,chunkSize:e}),R=a.useMemo((()=>I?I%e||e:1),[I,e]),G=a.useCallback(((e,t)=>{D(e),P(t),E(!1)}),[]);a.useLayoutEffect((()=>{D(k),P(y),E(!0),null!==u&&void 0!==u&&u.current&&u.current.scrollTo(0,0)}),[n,y,k,u]);const M=()=>(0,m.jsxs)("table",{className:c("table"),children:[(0,m.jsx)(C,{columns:i,onSort:x,onColumnsResize:h}),U.map(((t,a)=>(0,m.jsx)(N,{id:a,calculatedCount:a===U.length-1?R:e,chunkSize:e,rowHeight:d,columns:i,fetchData:s,filters:n,tableName:o,sortParams:b,getRowClassName:l,renderErrorMessage:v,renderEmptyDataMessage:f,onDataFetched:G,isActive:t},a)))]});return(0,m.jsx)("div",{ref:T,className:c(null,S),children:g?(0,m.jsxs)(r.L,{children:[(0,m.jsx)(r.L.Controls,{children:g({inited:!A,totalEntities:w,foundEntities:I})}),(0,m.jsx)(r.L.Table,{children:M()})]}):M()})};var A=s(16819);function E({columnsWidthLSKey:e,columns:t,...s}){const[a,r]=(0,A.a)(e),n=function(e,t){return e.map((e=>{var s;return{...e,width:null!==(s=t[e.name])&&void 0!==s?s:e.width}}))}(t,a);return(0,m.jsx)(P,{columns:n,onColumnsResize:r,containerClassName:c("resizeable-table-container"),...s})}},40781:(e,t,s)=>{function a(e,t){const s=e.reduce(((e,s)=>(t[s].forEach((t=>{e.add(t)})),e)),new Set);return Array.from(s).sort()}s.d(t,{R:()=>a})},41775:(e,t,s)=>{s.d(t,{v:()=>l});var a=s(59284),r=s(28664),n=s(77506),o=s(60712);const i=(0,n.cn)("ydb-search"),l=({onChange:e,value:t="",width:s,className:n,debounce:l=200,placeholder:d})=>{const[u,c]=a.useState(t),m=a.useRef();a.useEffect((()=>{c((e=>e!==t?t:e))}),[t]);return(0,o.jsx)(r.k,{hasClear:!0,autoFocus:!0,style:{width:s},className:i(null,n),placeholder:d,value:u,onUpdate:t=>{c(t),window.clearTimeout(m.current),m.current=window.setTimeout((()=>{null===e||void 0===e||e(t)}),l)}})}},43951:(e,t,s)=>{s.d(t,{K:()=>n});var a=s(59284),r=s(59001);const n=(e,t,s,n,o)=>{const[i,l]=a.useState((()=>r.f.readUserSettingsValue(t,n)));return{columnsToShow:a.useMemo((()=>e.filter((e=>{const t=e.name,s=i.includes(t),a=null===o||void 0===o?void 0:o.includes(t);return s||a}))),[e,o,i]),columnsToSelect:a.useMemo((()=>e.map((e=>e.name)).map((e=>{const t=null===o||void 0===o?void 0:o.includes(e),a=i.includes(e);return{id:e,title:s[e],selected:t||a,required:t,sticky:t?"start":void 0}}))),[e,s,o,i]),setColumns:a.useCallback((e=>{const s=e.filter((e=>e.selected)).map((e=>e.id));r.f.setUserSettingsValue(t,s),l(s)}),[t])}}},48295:(e,t,s)=>{s.d(t,{_:()=>u});var a=s(77506),r=s(24543),n=s(80176),o=s(60712);const i=(0,a.cn)("ydb-pool-bar"),l=({data:e={}})=>{const{Usage:t=0}=e,s=Math.min(100*t,100),a=(e=>e>=75?"danger":e>=50&&e<75?"warning":"normal")(s);return(0,o.jsx)(r.u,{className:i({type:a}),content:(0,o.jsx)(n.HG,{data:e,className:i("popup-content")}),children:(0,o.jsx)("div",{style:{height:`${s}%`},className:i("value",{type:a})})})},d=(0,a.cn)("ydb-pools-graph"),u=({pools:e=[]})=>(0,o.jsx)("div",{className:d(),children:e.map(((e,t)=>(0,o.jsx)(l,{data:e},t)))})},50672:(e,t,s)=>{s.d(t,{D:()=>n});var a=s(48372);const r=JSON.parse('{"type":"Type","path":"Path","guid":"GUID","serial-number":"Serial Number","shared-with-os":"SharedWithOs","drive-status":"Drive Status","state":"State","device":"Device","realtime":"Realtime","space":"Space","slots":"Slots","log-size":"Log Size","system-size":"System Size","links":"Links","developer-ui":"Developer UI","pdisk-page":"PDisk page","yes":"Yes"}'),n=(0,a.g4)("ydb-pDisk-info",{en:r})},51930:(e,t,s)=>{s.d(t,{d:()=>n});var a=s(5707),r=s(7187);function n(e){const t=function(e){return t=e,void 0!==t&&t in a.iZ?a.iZ[e]:a.Km;var t}(e.State),s=(0,r.SW)(e.AllocatedPercent);return t!==a.Km&&s?Math.max(t,s):t}},53755:(e,t,s)=>{s.d(t,{T:()=>l});var a=s(47665),r=s(77506);const n=(0,s(48372).g4)("ydb-entities-count",{ru:{of:"\u0438\u0437"},en:{of:"of"}});var o=s(60712);const i=(0,r.cn)("ydb-entities-count"),l=({total:e,current:t,label:s,loading:r,className:l})=>{let d="";return s&&(d+=`${s}: `),r?d+="...":(d+=`${t}`,e&&Number(e)!==Number(t)&&(d+=` ${n("of")} ${e}`)),(0,o.jsx)(a.J,{theme:"info",size:"m",className:i(null,l),children:d})}},58267:(e,t,s)=>{s.d(t,{P:()=>o,_:()=>i});var a=s(54090),r=s(6354);const n={[r.r.Dead]:a.m.Red,[r.r.Created]:a.m.Yellow,[r.r.ResolveStateStorage]:a.m.Yellow,[r.r.Candidate]:a.m.Yellow,[r.r.BlockBlobStorage]:a.m.Yellow,[r.r.WriteZeroEntry]:a.m.Yellow,[r.r.Restored]:a.m.Yellow,[r.r.Discover]:a.m.Yellow,[r.r.Lock]:a.m.Yellow,[r.r.Stopped]:a.m.Yellow,[r.r.ResolveLeader]:a.m.Yellow,[r.r.RebuildGraph]:a.m.Yellow,[r.r.Deleted]:a.m.Green,[r.r.Active]:a.m.Green},o=e=>{if(!e)return a.m.Grey;return t=e,Object.values(a.m).includes(t)?e:n[e];var t};function i(e){if(!e)return"unknown";switch(e){case r.r.Dead:return"danger";case r.r.Active:case r.r.Deleted:return"success";default:return"warning"}}},61456:(e,t,s)=>{s.d(t,{A:()=>o});var a=s(48372);const r=JSON.parse('{"empty.default":"No such groups","empty.out_of_space":"No groups with out of space errors","empty.degraded":"No degraded groups","show_all":"Show all groups","encrypted":"Encrypted group"}'),n=JSON.parse('{"empty.default":"\u041d\u0435\u0442 \u0433\u0440\u0443\u043f\u043f","empty.out_of_space":"\u041d\u0435\u0442 \u0433\u0440\u0443\u043f\u043f, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043a\u043e\u043d\u0447\u0430\u0435\u0442\u0441\u044f \u043c\u0435\u0441\u0442\u043e","empty.degraded":"\u041d\u0435\u0442 \u0434\u0435\u0433\u0440\u0430\u0434\u0438\u0440\u043e\u0432\u0430\u0432\u0448\u0438\u0445 \u0433\u0440\u0443\u043f\u043f","show_all":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u0435 \u0433\u0440\u0443\u043f\u043f\u044b","encrypted":"\u0417\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0433\u0440\u0443\u043f\u043f\u0430"}'),o=(0,a.g4)("ydb-storage-groups",{ru:n,en:r})},62710:(e,t,s)=>{s.d(t,{$:()=>r});var a=s(59284);function r(e){const[t,s]=a.useState({});a.useEffect((()=>{null!==e&&void 0!==e&&e.length&&s((t=>e.reduce(((e,{name:s})=>{const a=t[s];return{...e,[s]:null!==a&&void 0!==a&&a}}),{})))}),[e]);return{expandedGroups:t,setIsGroupExpanded:a.useCallback(((e,t)=>{s((s=>({...s,[e]:t})))}),[])}}},64036:(e,t,s)=>{s.d(t,{b:()=>r});var a=s(5707);function r(e){const{DiskSpace:t,VDiskState:s,FrontQueues:r,Replicated:o}=e;if(!s)return a.Km;const i=n(t),l=function(e){var t;if(!e)return a.Km;return null!==(t=a.qs[e])&&void 0!==t?t:a.Km}(s),d=Math.min(a.aW.Orange,n(r));let u=Math.max(i,l,d);return!1===o&&u===a.aW.Green&&(u=a.aW.Blue),u}function n(e){var t;return e&&null!==(t=a.aW[e])&&void 0!==t?t:a.Km}},64934:(e,t,s)=>{s.d(t,{j:()=>o});var a=s(44433),r=s(78034),n=s(60712);const o=({value:e,onChange:t,className:s})=>(0,n.jsxs)(a.a,{value:e,onUpdate:t,className:s,children:[(0,n.jsx)(a.a.Option,{value:r.cW.All,children:r.DG[r.cW.All]}),(0,n.jsx)(a.a.Option,{value:r.cW.SmallUptime,children:r.DG[r.cW.SmallUptime]})]})},67375:(e,t,s)=>{s.d(t,{W:()=>a});let a=function(e){return e.Initial="Initial",e.LocalRecoveryError="LocalRecoveryError",e.SyncGuidRecovery="SyncGuidRecovery",e.SyncGuidRecoveryError="SyncGuidRecoveryError",e.OK="OK",e.PDiskError="PDiskError",e}({})},69464:(e,t,s)=>{s.d(t,{T:()=>r});var a=s(6388);s(23536);const r=(e,t=a.xN)=>t===a.xN?`-${e}`:e},71708:(e,t,s)=>{s.d(t,{Q:()=>d});s(59284);var a=s(33705),r=s(98089),n=s(47665),o=s(77506),i=s(60712);const l=(0,o.cn)("ydb-table-group");function d({children:e,title:t,entityName:s,count:o,expanded:d=!1,onIsExpandedChange:u}){const c=()=>{u(t,!d)};return(0,i.jsxs)("div",{className:l(null),children:[(0,i.jsx)("button",{onClick:c,className:l("button"),title:t,children:(0,i.jsxs)("div",{className:l("title-wrapper"),children:[(0,i.jsx)(a.I,{direction:d?"top":"bottom"}),(0,i.jsxs)("div",{className:l("title"),children:[(0,i.jsx)(r.E,{variant:"subheader-2",children:t}),(0,i.jsxs)(r.E,{variant:"body-2",color:"secondary",className:l("count"),children:[s,": ",(0,i.jsx)(n.J,{theme:"normal",children:o})]})]})]})}),d?(0,i.jsx)("div",{className:l("content"),children:e}):null]})}},73473:(e,t,s)=>{s.d(t,{S:()=>N});var a=s(38501),r=s(40336),n=s(46549),o=s(77506),i=s(76086),l=s(35736),d=s(41650),u=s(13096),c=s(15132),m=s(48372);const p=JSON.parse('{"text_external-consumption":"External Consumption","text_allocator-caches":"Allocator Caches","text_shared-cache":"Shared Cache","text_memtable":"MemTable","text_query-execution":"Query Execution","text_usage":"Usage","text_soft-limit":"Soft Limit","text_hard-limit":"Hard Limit","text_other":"Other"}'),h=(0,m.g4)("ydb-memory-viewer",{en:p});function g(e){return(0,d.kf)(e)?parseFloat(String(e)):void 0}var v=s(60712);const f=1,S=.01*i.J7,k=(0,o.cn)("memory-viewer"),y=(e,t)=>[(0,n.z3)({value:e,size:"gb",withSizeLabel:!1,precision:2}),(0,n.z3)({value:t,size:"gb",withSizeLabel:!0,precision:1})];function N({stats:e,percents:t,formatValues:s,className:o,warningThreshold:i,dangerThreshold:m}){var p;const N=null!==(p=e.AnonRss)&&void 0!==p?p:function(e){const t=g(e.AllocatedMemory)||0,s=g(e.AllocatorCachesMemory)||0;return String(t+s)}(e),b=e.HardLimit,x=(0,a.D)();let w=Math.round(parseFloat(String(N))/parseFloat(String(b))*100)||0;w=w>100?100:w;let D=N,I=b,C="/";t?(D=w+"%",I="",C=""):s&&([D,I]=s(Number(N),Number(b)));const j=function(e,t){const s=[{label:h("text_shared-cache"),key:"SharedCacheConsumption",value:g(e.SharedCacheConsumption),capacity:g(e.SharedCacheLimit),isInfo:!1},{label:h("text_query-execution"),key:"QueryExecutionConsumption",value:g(e.QueryExecutionConsumption),capacity:g(e.QueryExecutionLimit),isInfo:!1},{label:h("text_memtable"),key:"MemTableConsumption",value:g(e.MemTableConsumption),capacity:g(e.MemTableLimit),isInfo:!1},{label:h("text_allocator-caches"),key:"AllocatorCachesMemory",value:g(e.AllocatorCachesMemory),isInfo:!1}],a=s.filter((e=>void 0!==e.value)).reduce(((e,t)=>e+t.value),0),r=Math.max(0,t-a);return s.push({label:h("text_other"),key:"Other",value:r,isInfo:!1}),s.push({label:h("text_external-consumption"),key:"ExternalConsumption",value:g(e.ExternalConsumption),isInfo:!0},{label:h("text_usage"),key:"Usage",value:t,isInfo:!0},{label:h("text_soft-limit"),key:"SoftLimit",value:g(e.SoftLimit),isInfo:!0},{label:h("text_hard-limit"),key:"HardLimit",value:g(e.HardLimit),isInfo:!0}),s.filter((e=>void 0!==e.value))}(e,Number(N)),P=(0,l.w)({fillWidth:w,warningThreshold:i,dangerThreshold:m,colorizeProgress:!0});let A=0;return(0,v.jsx)(u.P,{popupContent:(0,v.jsx)(r.u,{responsive:!0,children:j.map((({label:e,value:t,capacity:s,key:a})=>(0,v.jsx)(r.u.Item,{name:(0,v.jsxs)("div",{className:k("container"),children:[(0,v.jsx)("div",{className:k("legend",{type:a})}),(0,v.jsx)("div",{className:k("name"),children:e})]}),children:s?(0,v.jsx)(c.O,{value:t,capacity:s,formatValues:y,colorizeProgress:!0}):(0,n.z3)({value:t,size:"gb",withSizeLabel:!0,precision:2})},e)))}),children:(0,v.jsx)("div",{className:k({theme:x,status:P},o),children:(0,v.jsxs)("div",{className:k("progress-container"),children:[j.filter((({isInfo:e})=>!e)).map((e=>{if(e.value<S)return null;const t=Math.max((s=e.value,N?s/parseFloat(String(b))*100:0),f);var s;const a=A;return A+=t,(0,v.jsx)("div",{className:k("segment",{type:e.key}),style:{width:`${t}%`,left:`${a}%`}},e.key)})),(0,v.jsx)("div",{className:k("text"),children:(0,d.kf)(b)?`${D} ${C} ${I}`:D})]})})})}},78461:(e,t,s)=>{s.d(t,{Y:()=>r});const a={HDD:"HDD",SSD:"SSD",MVME:"NVME"};function r(e){if(!e)return;const t=function(e,t){const s={};return Object.entries(t).reduce(((t,[a,r])=>{const n=e.length-t,o=n-r;return s[a]=e.substring(o,n)||"0",t+r}),0),s}(BigInt(e).toString(2),{isSolidState:1,kind:55,typeExt:8});if("1"===t.isSolidState)switch(parseInt(t.typeExt,2)){case 0:return a.SSD;case 2:return a.MVME}else if("0"===t.typeExt)return a.HDD}},78762:(e,t,s)=>{s.d(t,{pt:()=>ae,SH:()=>q,fr:()=>B,uk:()=>z,Bg:()=>J,Nh:()=>M,ID:()=>$,fR:()=>Y,iX:()=>F,Vz:()=>X,H:()=>Z,_E:()=>G,eT:()=>L,wN:()=>se,kv:()=>_,pH:()=>H,OX:()=>V,ui:()=>te,DH:()=>ee,oz:()=>K,qp:()=>Q,jl:()=>O,Rn:()=>W});var a=s(4557),r=s(40336),n=s(7435),o=s(77506),i=s(76086),l=s(56839),d=s(16439),u=s(41650),c=s(71661),m=s(73473),p=s(63291),h=s(29819),g=s(31684),v=s(78034),f=s(10508),S=s(80176),k=s(60712);const y=({node:e,getNodeRef:t,database:s,statusForIcon:a})=>{if(!e.Host)return(0,k.jsx)("span",{children:"\u2014"});const r="ConnectStatus"===a?e.ConnectStatus:e.SystemState,n=!(0,v.X7)(e);let o;if(t){const s=t(e);o=s?(0,g.Un)(s):void 0}else if(e.NodeId){const t=(0,g.Kx)(e.NodeId);o=(0,g.Un)(t)}const i=n?(0,h.vI)(e.NodeId,{database:null!==s&&void 0!==s?s:e.TenantName},e.TenantName?"tablets":"storage"):void 0;return(0,k.jsx)(c.s,{disabled:!n,content:(0,k.jsx)(S.p,{data:e,nodeHref:o}),placement:["top","bottom"],behavior:p.m.Immediate,delayClosing:200,children:(0,k.jsx)(f.c,{name:e.Host,status:r,path:i,hasClipboardButton:!0})})};var N=s(48295),b=s(15132),x=s(52905),w=s(58267);const D=(0,o.cn)("tablets-statistic"),I=({tablets:e=[],database:t,nodeId:s})=>{const a=(e=>e.map((e=>({label:(0,i.bk)(e.Type),type:e.Type,count:e.Count,state:(0,w.P)(e.State)}))).sort(((e,t)=>String(e.label).localeCompare(String(t.label)))))(e);return(0,k.jsx)("div",{className:D(),children:a.map(((e,a)=>{var r;const n=(0,h.vI)(s,{database:t},"tablets"),o=`${e.label}: ${e.count}`,i=D("tablet",{state:null===(r=e.state)||void 0===r?void 0:r.toLowerCase()});return(0,k.jsx)(x.N_,{to:n,className:i,children:o},a)}))})};var C=s(41826),j=s(13342),P=s(86782),A=s(31911),E=s(73891);function T(e){return(0,E.Xo)((0,E.Jc)(e,1))}function U(e){const t=(0,E.Jc)(e,1);return(Number(t)<=0?"":"+")+(0,E.Xo)(t)}const R=(0,o.cn)("ydb-nodes-columns");function G(){return{name:P.vg.NodeId,header:"#",width:80,resizeMinWidth:80,render:({row:e})=>e.NodeId,align:a.Ay.RIGHT}}function M({getNodeRef:e,database:t},{statusForIcon:s="SystemState"}={}){return{name:P.vg.Host,header:P.uG.Host,render:({row:a})=>(0,k.jsx)(y,{node:a,getNodeRef:e,database:t,statusForIcon:s}),width:350,align:a.Ay.LEFT}}function L(){return{name:P.vg.NodeName,header:P.uG.NodeName,align:a.Ay.LEFT,render:({row:e})=>e.NodeName||i.Pd,width:200}}function z(){return{name:P.vg.DC,header:P.uG.DC,align:a.Ay.LEFT,render:({row:e})=>e.DC||i.Pd,width:60}}function V(){return{name:P.vg.Rack,header:P.uG.Rack,align:a.Ay.LEFT,render:({row:e})=>e.Rack||i.Pd,width:100}}function W(){return{name:P.vg.Version,header:P.uG.Version,width:200,align:a.Ay.LEFT,render:({row:e})=>(0,k.jsx)(c.s,{content:e.Version,children:e.Version})}}function O(){return{name:P.vg.Uptime,header:P.uG.Uptime,sortAccessor:({StartTime:e})=>e?-e:0,render:({row:e})=>(0,k.jsx)(C.p,{StartTime:e.StartTime,DisconnectTime:e.DisconnectTime}),align:a.Ay.RIGHT,width:120}}function H(){return{name:P.vg.RAM,header:P.uG.RAM,sortAccessor:({MemoryUsed:e=0})=>Number(e),defaultOrder:a.Ay.DESCENDING,render:({row:e})=>{const[t,s]=(0,u.kf)(e.MemoryUsed)&&(0,u.kf)(e.MemoryLimit)?(0,l.j9)(Number(e.MemoryUsed),Number(e.MemoryLimit),"gb",void 0,!0):[0,0];return(0,k.jsx)(c.s,{placement:["top","auto"],fullWidth:!0,content:(0,k.jsxs)(r.u,{responsive:!0,children:[(0,k.jsx)(r.u.Item,{name:(0,A.A)("field_memory-used"),children:t}),(0,k.jsx)(r.u.Item,{name:(0,A.A)("field_memory-limit"),children:s})]}),children:(0,k.jsx)(b.O,{value:e.MemoryUsed,capacity:e.MemoryLimit,formatValues:(e,t)=>(0,l.j9)(e,t,"gb",void 0,!0),className:R("column-ram"),colorizeProgress:!0,hideCapacity:!0})})},align:a.Ay.LEFT,width:80,resizeMinWidth:40}}function F(){return{name:P.vg.Memory,header:P.uG.Memory,defaultOrder:a.Ay.DESCENDING,render:({row:e})=>e.MemoryStats?(0,k.jsx)(m.S,{formatValues:l.vX,stats:e.MemoryStats}):(0,k.jsx)(b.O,{value:e.MemoryUsed,capacity:e.MemoryLimit,formatValues:l.vX,colorizeProgress:!0}),align:a.Ay.LEFT,width:300,resizeMinWidth:170}}function _(){return{name:P.vg.Pools,header:P.uG.Pools,sortAccessor:({PoolStats:e=[]})=>Math.max(...e.map((({Usage:e})=>Number(e)))),defaultOrder:a.Ay.DESCENDING,render:({row:e})=>e.PoolStats?(0,k.jsx)(N._,{pools:e.PoolStats}):i.Pd,align:a.Ay.LEFT,width:80,resizeMinWidth:60}}function B(){return{name:P.vg.CPU,header:P.uG.CPU,sortAccessor:({PoolStats:e=[]})=>Math.max(...e.map((({Usage:e})=>Number(e)))),defaultOrder:a.Ay.DESCENDING,render:({row:e})=>{if(!e.PoolStats)return i.Pd;let t=(0,u.kf)(e.CoresUsed)&&(0,u.kf)(e.CoresTotal)?e.CoresUsed/e.CoresTotal:void 0;if(void 0===t){let s=0;t=e.PoolStats.reduce(((e,t)=>(s+=Number(t.Threads),e+Number(t.Usage)*Number(t.Threads))),0),t/=s}return(0,k.jsx)(c.s,{placement:["top","auto"],fullWidth:!0,content:(0,k.jsx)(r.u,{responsive:!0,children:e.PoolStats.map((e=>(0,u.kf)(e.Usage)?(0,k.jsx)(r.u.Item,{name:e.Name,children:(0,S.Qz)("Usage",e.Usage).value},e.Name):null))}),children:(0,k.jsx)(b.O,{className:R("column-cpu"),value:t,capacity:1,colorizeProgress:!0,percents:!0})})},align:a.Ay.LEFT,width:80,resizeMinWidth:40}}function $(){return{name:P.vg.LoadAverage,header:P.uG.LoadAverage,sortAccessor:({LoadAveragePercents:e=[]})=>e[0],defaultOrder:a.Ay.DESCENDING,render:({row:e})=>(0,k.jsx)(b.O,{value:e.LoadAveragePercents&&e.LoadAveragePercents.length>0?e.LoadAveragePercents[0]:void 0,percents:!0,colorizeProgress:!0,capacity:100}),align:a.Ay.LEFT,width:170,resizeMinWidth:170}}function Y(){return{name:P.vg.Load,header:P.uG.Load,sortAccessor:({LoadAveragePercents:e=[]})=>e[0],defaultOrder:a.Ay.DESCENDING,render:({row:e})=>e.LoadAveragePercents&&e.LoadAveragePercents.length>0?(0,k.jsx)(j.U,{value:e.LoadAveragePercents[0].toFixed(),theme:(0,d.f)(e.LoadAveragePercents[0])}):i.Pd,align:a.Ay.LEFT,width:80,resizeMinWidth:70}}function J(){return{name:P.vg.DiskSpaceUsage,header:P.uG.DiskSpaceUsage,render:({row:e})=>(0,n.f8)(e.DiskSpaceUsage)?(0,k.jsx)(j.U,{value:Math.floor(e.DiskSpaceUsage),theme:(0,d.f)(e.DiskSpaceUsage)}):i.Pd,align:a.Ay.LEFT,width:115,resizeMinWidth:75}}function K(){return{name:P.vg.TotalSessions,header:P.uG.TotalSessions,render:({row:e})=>{var t;return null!==(t=e.TotalSessions)&&void 0!==t?t:i.Pd},align:a.Ay.RIGHT,width:100}}function Q({database:e}){return{name:P.vg.Tablets,header:P.uG.Tablets,width:500,resizeMinWidth:500,render:({row:t})=>t.Tablets?(0,k.jsx)(I,{database:null!==e&&void 0!==e?e:t.TenantName,nodeId:t.NodeId,tablets:t.Tablets}):i.Pd,align:a.Ay.LEFT,sortable:!1}}function X(){return{name:P.vg.Missing,header:P.uG.Missing,render:({row:e})=>e.Missing,align:a.Ay.CENTER,defaultOrder:a.Ay.DESCENDING}}function q(){return{name:P.vg.Connections,header:P.uG.Connections,render:({row:e})=>(0,u.kf)(e.Connections)?e.Connections:i.Pd,align:a.Ay.RIGHT,width:130}}function Z(){return{name:P.vg.NetworkUtilization,header:P.uG.NetworkUtilization,render:({row:e})=>{const{NetworkUtilization:t,NetworkUtilizationMin:s=0,NetworkUtilizationMax:a=0}=e;return(0,u.kf)(t)?(0,k.jsx)(c.s,{placement:["top","auto"],fullWidth:!0,content:(0,k.jsxs)(r.u,{responsive:!0,children:[(0,k.jsx)(r.u.Item,{name:(0,A.A)("sum"),children:(0,l.l9)(t)},"NetworkUtilization"),(0,k.jsx)(r.u.Item,{name:(0,A.A)("min"),children:(0,l.l9)(s)},"NetworkUtilizationMin"),(0,k.jsx)(r.u.Item,{name:(0,A.A)("max"),children:(0,l.l9)(a)},"NetworkUtilizationMax")]}),children:(0,l.l9)(t)}):i.Pd},align:a.Ay.RIGHT,width:110}}function ee(){return{name:P.vg.SendThroughput,header:P.uG.SendThroughput,render:({row:e})=>(0,u.kf)(e.SendThroughput)?(0,u.O4)(e.SendThroughput):i.Pd,align:a.Ay.RIGHT,width:110}}function te(){return{name:P.vg.ReceiveThroughput,header:P.uG.ReceiveThroughput,render:({row:e})=>(0,u.kf)(e.ReceiveThroughput)?(0,u.O4)(e.ReceiveThroughput):i.Pd,align:a.Ay.RIGHT,width:110}}function se(){return{name:P.vg.PingTime,header:P.uG.PingTime,render:({row:e})=>{const{PingTimeUs:t,PingTimeMinUs:s=0,PingTimeMaxUs:a=0}=e;return(0,u.kf)(t)?(0,k.jsx)(c.s,{placement:["top","auto"],fullWidth:!0,content:(0,k.jsxs)(r.u,{responsive:!0,children:[(0,k.jsx)(r.u.Item,{name:(0,A.A)("avg"),children:T(t)},"PingTimeUs"),(0,k.jsx)(r.u.Item,{name:(0,A.A)("min"),children:T(s)},"PingTimeMinUs"),(0,k.jsx)(r.u.Item,{name:(0,A.A)("max"),children:T(a)},"PingTimeMaxUs")]}),children:T(t)}):i.Pd},align:a.Ay.RIGHT,width:110}}function ae(){return{name:P.vg.ClockSkew,header:P.uG.ClockSkew,render:({row:e})=>{const{ClockSkewUs:t,ClockSkewMinUs:s=0,ClockSkewMaxUs:a=0}=e;return(0,u.kf)(t)?(0,k.jsx)(c.s,{placement:["top","auto"],fullWidth:!0,content:(0,k.jsxs)(r.u,{responsive:!0,children:[(0,k.jsx)(r.u.Item,{name:(0,A.A)("avg"),children:U(t)},"ClockSkewUs"),(0,k.jsx)(r.u.Item,{name:(0,A.A)("min"),children:U(s)},"ClockSkewMinUs"),(0,k.jsx)(r.u.Item,{name:(0,A.A)("max"),children:U(a)},"ClockSkewMaxUs")]}),children:U(t)}):i.Pd},align:a.Ay.RIGHT,width:110}}},86782:(e,t,s)=>{s.d(t,{fN:()=>c,kU:()=>p,kn:()=>u,sp:()=>h,uG:()=>l,vg:()=>n,xd:()=>i,zO:()=>r});var a=s(31911);const r="nodesTableColumnsWidth",n={NodeId:"NodeId",Host:"Host",Database:"Database",NodeName:"NodeName",DC:"DC",Rack:"Rack",Version:"Version",Uptime:"Uptime",Memory:"Memory",RAM:"RAM",CPU:"CPU",Pools:"Pools",LoadAverage:"LoadAverage",Load:"Load",DiskSpaceUsage:"DiskSpaceUsage",TotalSessions:"TotalSessions",Connections:"Connections",NetworkUtilization:"NetworkUtilization",SendThroughput:"SendThroughput",ReceiveThroughput:"ReceiveThroughput",PingTime:"PingTime",ClockSkew:"ClockSkew",Missing:"Missing",Tablets:"Tablets",PDisks:"PDisks"},o=["Pools","Memory"];function i(e){return o.includes(e)}const l={get NodeId(){return(0,a.A)("node-id")},get Host(){return(0,a.A)("host")},get Database(){return(0,a.A)("database")},get NodeName(){return(0,a.A)("node-name")},get DC(){return(0,a.A)("dc")},get Rack(){return(0,a.A)("rack")},get Version(){return(0,a.A)("version")},get Uptime(){return(0,a.A)("uptime")},get Memory(){return(0,a.A)("memory")},get RAM(){return(0,a.A)("ram")},get Pools(){return(0,a.A)("pools")},get CPU(){return(0,a.A)("cpu")},get LoadAverage(){return(0,a.A)("load-average")},get Load(){return(0,a.A)("load")},get DiskSpaceUsage(){return(0,a.A)("disk-usage")},get TotalSessions(){return(0,a.A)("sessions")},get Connections(){return(0,a.A)("connections")},get NetworkUtilization(){return(0,a.A)("utilization")},get SendThroughput(){return(0,a.A)("send")},get ReceiveThroughput(){return(0,a.A)("receive")},get PingTime(){return(0,a.A)("ping")},get ClockSkew(){return(0,a.A)("skew")},get Missing(){return(0,a.A)("missing")},get Tablets(){return(0,a.A)("tablets")},get PDisks(){return(0,a.A)("pdisks")}},d={get NodeId(){return(0,a.A)("node-id")},get Host(){return(0,a.A)("host")},get NodeName(){return(0,a.A)("node-name")},get Database(){return(0,a.A)("database")},get DiskSpaceUsage(){return(0,a.A)("disk-usage")},get DC(){return(0,a.A)("dc")},get Rack(){return(0,a.A)("rack")},get Missing(){return(0,a.A)("missing")},get Uptime(){return(0,a.A)("uptime")},get Version(){return(0,a.A)("version")},get SystemState(){return(0,a.A)("system-state")},get ConnectStatus(){return(0,a.A)("connect-status")},get NetworkUtilization(){return(0,a.A)("network-utilization")},get ClockSkew(){return(0,a.A)("clock-skew")},get PingTime(){return(0,a.A)("ping-time")}};function u(e){return d[e]}const c={NodeId:["NodeId"],Host:["Host","Rack","Database","SystemState"],Database:["Database"],NodeName:["NodeName"],DC:["DC"],Rack:["Rack"],Version:["Version"],Uptime:["Uptime","DisconnectTime"],Memory:["Memory","MemoryDetailed"],RAM:["Memory"],Pools:["CPU"],CPU:["CPU"],LoadAverage:["LoadAverage"],Load:["LoadAverage"],DiskSpaceUsage:["DiskSpaceUsage"],TotalSessions:["SystemState"],Connections:["Connections"],NetworkUtilization:["NetworkUtilization"],SendThroughput:["SendThroughput"],ReceiveThroughput:["ReceiveThroughput"],PingTime:["PingTime"],ClockSkew:["ClockSkew"],Missing:["Missing"],Tablets:["Tablets","Database"],PDisks:["PDisks"]},m={NodeId:"NodeId",Host:"Host",Database:"Database",NodeName:"NodeName",DC:"DC",Rack:"Rack",Version:"Version",Uptime:"Uptime",Memory:"Memory",RAM:"Memory",CPU:"CPU",Pools:"CPU",LoadAverage:"LoadAverage",Load:"LoadAverage",DiskSpaceUsage:"DiskSpaceUsage",TotalSessions:void 0,Connections:"Connections",NetworkUtilization:"NetworkUtilization",SendThroughput:"SendThroughput",ReceiveThroughput:"ReceiveThroughput",PingTime:"PingTime",ClockSkew:"ClockSkew",Missing:"Missing",Tablets:void 0,PDisks:void 0};function p(e){return m[e]}function h(e){return Boolean(p(e))}},88226:(e,t,s)=>{s.d(t,{V:()=>d});s(59284);var a=s(77506),r=s(76086),n=s(7187),o=s(90182),i=s(60712);const l=(0,a.cn)("storage-disk-progress-bar");function d({diskAllocatedPercent:e=-1,severity:t,compact:s,faded:a,inactive:d,empty:u,content:c,className:m}){const[p]=(0,o.iK)(r.TJ),h={inverted:p,compact:s,faded:a,empty:u,inactive:d},g=void 0!==t&&(0,n.XY)(t);g&&(h[g.toLocaleLowerCase()]=!0);return(0,i.jsxs)("div",{className:l(h,m),role:"meter","aria-label":"Disk allocated space","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e,children:[(()=>{if(s)return(0,i.jsx)("div",{className:l("fill-bar",h),style:{width:"100%"}});const t=p?100-e:e;return e>=0?(0,i.jsx)("div",{className:l("fill-bar",h),style:{width:`${t}%`}}):null})(),c||(!s&&e>=0?(0,i.jsx)("div",{className:l("title"),children:`${Math.round(e)}%`}):null)]})}},89073:(e,t,s)=>{s.d(t,{L:()=>i});var a=s(77506),r=s(19228),n=s(60712);const o=(0,a.cn)("ydb-table-with-controls-layout"),i=({children:e,className:t})=>(0,n.jsx)("div",{className:o(null,t),children:e});i.Controls=function({children:e,className:t}){return(0,n.jsx)("div",{className:o("controls-wrapper"),children:(0,n.jsx)("div",{className:o("controls",t),children:e})})},i.Table=function({children:e,loading:t,className:s}){return t?(0,n.jsx)(r.Q,{className:o("loader")}):(0,n.jsx)("div",{className:o("table",s),children:e})}},90053:(e,t,s)=>{s.d(t,{E:()=>h});var a=s(8873),r=s(84476),n=s(24555),o=s(21334),i=s(77506),l=s(90182),d=s(48372);const u=JSON.parse('{"None":"None","15 sec":"15 sec","1 min":"1 min","2 min":"2 min","5 min":"5 min","Refresh":"Refresh"}'),c=(0,d.g4)("ydb-diagnostics-autorefresh-control",{en:u});var m=s(60712);const p=(0,i.cn)("auto-refresh-control");function h({className:e,onManualRefresh:t}){const s=(0,l.YQ)(),[i,d]=(0,l.Nt)();return(0,m.jsxs)("div",{className:p(null,e),children:[(0,m.jsx)(r.$,{view:"flat-secondary",onClick:()=>{s(o.F.util.invalidateTags(["All"])),null===t||void 0===t||t()},extraProps:{"aria-label":c("Refresh")},children:(0,m.jsx)(r.$.Icon,{children:(0,m.jsx)(a.A,{})})}),(0,m.jsxs)(n.l,{value:[String(i)],onUpdate:e=>{d(Number(e))},width:85,qa:"ydb-autorefresh-select",children:[(0,m.jsx)(n.l.Option,{value:"0",children:c("None")}),(0,m.jsx)(n.l.Option,{value:"15000",children:c("15 sec")}),(0,m.jsx)(n.l.Option,{value:"60000",children:c("1 min")}),(0,m.jsx)(n.l.Option,{value:"120000",children:c("2 min")}),(0,m.jsx)(n.l.Option,{value:"300000",children:c("5 min")})]})]})}},94025:(e,t,s)=>{s.d(t,{t:()=>a});let a=function(e){return e.Initial="Initial",e.InitialFormatRead="InitialFormatRead",e.InitialFormatReadError="InitialFormatReadError",e.InitialSysLogRead="InitialSysLogRead",e.InitialSysLogReadError="InitialSysLogReadError",e.InitialSysLogParseError="InitialSysLogParseError",e.InitialCommonLogRead="InitialCommonLogRead",e.InitialCommonLogReadError="InitialCommonLogReadError",e.InitialCommonLogParseError="InitialCommonLogParseError",e.CommonLoggerInitError="CommonLoggerInitError",e.Normal="Normal",e.OpenFileError="OpenFileError",e.ChunkQuotaError="ChunkQuotaError",e.DeviceIoError="DeviceIoError",e.Missing="Missing",e.Timeout="Timeout",e.NodeDisconnected="NodeDisconnected",e.Unknown="Unknown",e}({})},96927:(e,t,s)=>{s.d(t,{O:()=>y,f:()=>k});var a=s(59284),r=s(87184),n=s(92459),o=s(24600),i=s(54090),l=s(7435),d=s(76086),u=s(31684),c=s(90182),m=s(12888),p=s(41650),h=s(60073),g=s(25196),v=s(50672),f=s(60712);const S=[i.m.Orange,i.m.Red,i.m.Yellow],k=(e,t,s)=>{const{AvailableSize:a,TotalSize:o,State:i,PDiskId:c,NodeId:m,StringifiedId:h,Path:k,Realtime:y,Type:N,Device:b}=e,x=[{label:"PDisk",value:null!==h&&void 0!==h?h:d.Pd},{label:"State",value:i||"not available"},{label:"Type",value:N||"unknown"}];if(m&&x.push({label:"Node Id",value:m}),null!==t&&void 0!==t&&t.Host&&x.push({label:"Host",value:t.Host}),null!==t&&void 0!==t&&t.DC&&x.push({label:"DC",value:t.DC}),k&&x.push({label:"Path",value:k}),(0,p.kf)(o)&&x.push({label:"Available",value:`${(0,p.wb)(a)} of ${(0,p.wb)(o)}`}),y&&S.includes(y)&&x.push({label:"Realtime",value:y}),b&&S.includes(b)&&x.push({label:"Device",value:b}),s&&(0,l.f8)(m)&&(0,l.f8)(c)){const e=(0,u.ar)({nodeId:m,pDiskId:c}),t=(0,n.Ck)(c,m);x.push({label:"Links",value:(0,f.jsxs)(r.s,{gap:2,wrap:"wrap",children:[(0,f.jsx)(g.K,{title:(0,v.D)("pdisk-page"),url:t,external:!1}),(0,f.jsx)(g.K,{title:(0,v.D)("developer-ui"),url:e})]})})}return x},y=({data:e})=>{const t=(0,m.X)(),s=(0,c.N4)(o.K),r=(0,l.f8)(e.NodeId)?null===s||void 0===s?void 0:s.get(e.NodeId):void 0,n=a.useMemo((()=>k(e,r,t)),[e,r,t]);return(0,f.jsx)(h.z_,{title:"PDisk",info:n,size:"s"})}},99936:(e,t,s)=>{s.d(t,{z:()=>Ve});var a=s(12888),r=s(59284),n=s(79553),o=s(98167),i=s(89073),l=s(67028),d=s(10174),u=s(90182),c=s(69775),m=s(98089),p=s(24555),h=s(53755),g=s(41775),v=s(64934),f=s(10360),S=s(370),k=s(86782);const y=["NodeId","Host","Uptime","CPU","RAM","PDisks"],N=["NodeId"],b=["Host","DC","Rack","Version","Uptime","Missing","DiskSpaceUsage"],x=b.map((e=>({value:e,content:(0,k.kn)(e)}))),w=S.z.custom((e=>b.includes(e))).catch(void 0);var D=s(44433);const I={all:"all",missing:"missing",space:"space"},C={groups:"groups",nodes:"nodes"};var j=s(60712);const P={[C.groups]:"Groups",[C.nodes]:"Nodes"},A=({value:e,onChange:t})=>(0,j.jsxs)(D.a,{value:e,onUpdate:t,qa:"storage-type-filter",children:[(0,j.jsx)(D.a.Option,{value:C.groups,children:P[C.groups]}),(0,j.jsx)(D.a.Option,{value:C.nodes,children:P[C.nodes]})]}),E={[I.all]:"All",[I.missing]:"Degraded",[I.space]:"Out of Space"},T=({value:e,onChange:t})=>(0,j.jsxs)(D.a,{value:e,onUpdate:t,qa:"storage-visible-entities-filter",children:[(0,j.jsx)(D.a.Option,{value:I.missing,children:E[I.missing]}),(0,j.jsx)(D.a.Option,{value:I.space,children:E[I.space]}),(0,j.jsx)(D.a.Option,{value:I.all,children:E[I.all]})]});var U=s(48372);const R=JSON.parse('{"groups":"Groups","nodes":"Nodes","controls_groups-search-placeholder":"Group ID, Pool name","controls_nodes-search-placeholder":"Node ID, FQDN","controls_group-by-placeholder":"Group by:","no-nodes":"No such nodes","no-groups":"No such groups"}'),G=(0,U.g4)("ydb-storage",{en:R});var M=s(59109),L=s(44508),z=s(77506);const V=(0,z.cn)("global-storage"),W=e=>403===e.status?(0,j.jsx)(M.O,{position:"left"}):(0,j.jsx)(L.o,{error:e});var O=s(67087);const H=S.z.nativeEnum(I).catch(I.all),F=S.z.nativeEnum(C).catch(C.groups);var _=s(78034);function B(){var e;const[t,s]=(0,O.useQueryParams)({type:O.StringParam,visible:O.StringParam,search:O.StringParam,uptimeFilter:O.StringParam,storageNodesGroupBy:O.StringParam,storageGroupsGroupBy:O.StringParam}),a=F.parse(t.type),r=H.parse(t.visible),n=null!==(e=t.search)&&void 0!==e?e:"",o=_.Bm.parse(t.uptimeFilter),i=f.kY.parse(t.storageGroupsGroupBy),l=w.parse(t.storageNodesGroupBy),d=e=>{s({visible:e},"replaceIn")},u=e=>{s({uptimeFilter:e},"replaceIn")};return{storageType:a,visibleEntities:r,searchValue:n,nodesUptimeFilter:o,storageGroupsGroupByParam:i,storageNodesGroupByParam:l,handleTextFilterChange:e=>{s({search:e||void 0},"replaceIn")},handleVisibleEntitiesChange:d,handleStorageTypeChange:e=>{s({type:e},"replaceIn")},handleUptimeFilterChange:u,handleStorageGroupsGroupByParamChange:e=>{s({storageGroupsGroupBy:e},"replaceIn")},handleStorageNodesGroupByParamChange:e=>{s({storageNodesGroupBy:e},"replaceIn")},handleShowAllGroups:()=>{d("all")},handleShowAllNodes:()=>{d("all"),u(_.cW.All)}}}function $({withTypeSelector:e,withGroupBySelect:t,entitiesCountCurrent:s,entitiesCountTotal:n,entitiesLoading:o,columnsToSelect:i,handleSelectedColumnsUpdate:l}){const{searchValue:d,storageType:u,visibleEntities:v,storageGroupsGroupByParam:S,handleTextFilterChange:k,handleStorageTypeChange:y,handleVisibleEntitiesChange:N,handleStorageGroupsGroupByParamChange:b}=B(),x=(0,a.X)(),w=e&&x;return(0,j.jsxs)(r.Fragment,{children:[(0,j.jsx)(g.v,{value:d,onChange:k,placeholder:G("controls_groups-search-placeholder"),className:V("search")}),w&&(0,j.jsx)(A,{value:u,onChange:y}),t?null:(0,j.jsx)(T,{value:v,onChange:N}),(0,j.jsx)(c.O,{popupWidth:200,items:i,showStatus:!0,onUpdate:l,sortable:!1}),t?(0,j.jsxs)(r.Fragment,{children:[(0,j.jsx)(m.E,{variant:"body-2",children:G("controls_group-by-placeholder")}),(0,j.jsx)(p.l,{hasClear:!0,placeholder:"-",width:150,defaultValue:S?[S]:void 0,onUpdate:e=>{b(e[0])},options:f.SE})]}):null,(0,j.jsx)(h.T,{label:G("groups"),loading:o,total:n,current:s})]})}function Y({withTypeSelector:e,withGroupBySelect:t,entitiesCountCurrent:s,entitiesCountTotal:a,entitiesLoading:n,columnsToSelect:o,handleSelectedColumnsUpdate:i}){const{searchValue:l,storageType:d,visibleEntities:u,nodesUptimeFilter:f,storageNodesGroupByParam:S,handleTextFilterChange:k,handleStorageTypeChange:y,handleVisibleEntitiesChange:N,handleUptimeFilterChange:b,handleStorageNodesGroupByParamChange:w}=B();return(0,j.jsxs)(r.Fragment,{children:[(0,j.jsx)(g.v,{value:l,onChange:k,placeholder:G("controls_nodes-search-placeholder"),className:V("search")}),e&&(0,j.jsx)(A,{value:d,onChange:y}),t?null:(0,j.jsx)(T,{value:u,onChange:N}),t?null:(0,j.jsx)(v.j,{value:f,onChange:b}),(0,j.jsx)(c.O,{popupWidth:200,items:o,showStatus:!0,onUpdate:i,sortable:!1}),t?(0,j.jsxs)(r.Fragment,{children:[(0,j.jsx)(m.E,{variant:"body-2",children:G("controls_group-by-placeholder")}),(0,j.jsx)(p.l,{hasClear:!0,placeholder:"-",width:150,defaultValue:S?[S]:void 0,onUpdate:e=>{w(e[0])},options:x})]}):null,(0,j.jsx)(h.T,{label:G("nodes"),loading:n,total:a,current:s})]})}var J=s(40427),K=s(84476),Q=s(7889),X=s(78524);const q=JSON.parse('{"default_message":"Everything is fine!","default_button_label":"Show All"}'),Z=JSON.parse('{"default_message":"\u0412\u0441\u0451 \u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435!","default_button_label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u0435"}'),ee=(0,U.g4)("ydb-storage-empty-filter",{ru:Z,en:q}),te=({title:e,message:t=ee("default_message"),showAll:s=ee("default_button_label"),onShowAll:a})=>(0,j.jsx)(Q.p,{image:(0,j.jsx)(X.v,{name:"thumbsUp"}),position:"left",title:e,description:t,actions:a&&[(0,j.jsx)(K.$,{onClick:a,children:s},"show-all")]});var se=s(61456);const ae=({visibleEntities:e,onShowAll:t})=>{let s;return e===I.space&&(s=(0,se.A)("empty.out_of_space")),e===I.missing&&(s=(0,se.A)("empty.degraded")),s?(0,j.jsx)(te,{title:s,showAll:(0,se.A)("show_all"),onShowAll:t}):null};var re=s(16029),ne=s(69464),oe=s(40781);const ie=({columns:e,database:t,nodeId:s,groupId:a,pDiskId:n,filterGroup:i,filterGroupBy:d,searchValue:u,visibleEntities:c,onShowAll:m,parentRef:p,renderControls:h,renderErrorMessage:g,initialEntitiesCount:v})=>{const S=(0,l.Pm)(),k=(0,l.YA)(),y=(N=k,r.useCallback((async e=>{const{limit:t,offset:s,sortParams:a,filters:r,columnsIds:n}=e,{sortOrder:o,columnId:i}=null!==a&&void 0!==a?a:{},{searchValue:l,visibleEntities:d,database:u,nodeId:c,groupId:m,pDiskId:p,filterGroup:h,filterGroupBy:g}=null!==r&&void 0!==r?r:{},v=(0,f.GP)(i),S=v?(0,ne.T)(v,o):void 0,k=(0,oe.R)(n,f.YX),{groups:y,found:b,total:x}=await(0,re.t)({limit:t,offset:s,sort:S,filter:l,with:d,database:u,nodeId:c,groupId:m,pDiskId:p,filter_group:h,filter_group_by:g,fieldsRequired:k,shouldUseGroupsHandler:N});return{data:y||[],found:b||0,total:x||0}}),[N]));var N;const b=r.useMemo((()=>({searchValue:u,visibleEntities:c,database:t,nodeId:s,groupId:a,pDiskId:n,filterGroup:i,filterGroupBy:d})),[u,c,t,s,a,n,i,d]);return(0,j.jsx)(o.r,{loading:!S,children:(0,j.jsx)(J.k5,{columnsWidthLSKey:f.qK,parentRef:p,columns:e,fetchData:y,limit:50,initialEntitiesCount:v,renderControls:h,renderErrorMessage:g,renderEmptyDataMessage:()=>c!==I.all?(0,j.jsx)(ae,{onShowAll:m,visibleEntities:c}):(0,se.A)("empty.default"),filters:b,tableName:"storage-groups"})})};var le=s(43951),de=s(20831);function ue({visibleEntities:e,viewContext:t}){const s=(0,a.X)(),n=r.useMemo((()=>{const e=(0,de.J)({viewContext:t});return s?e:e.filter((e=>!(0,f.Ai)(e.name)))}),[s,t]),o=r.useMemo((()=>e===I.missing?[...f.LO,f.UW.Degraded]:e===I.space?[...f.LO,f.UW.DiskSpace]:f.LO),[e]);return(0,le.K)(n,f.zY,f.H6,f.hu,o)}var ce=s(71708),me=s(62710);function pe(e){const{storageGroupsGroupByParam:t,visibleEntities:s,handleShowAllGroups:a}=B(),n=(0,l.Pm)(),i=(0,l.SA)();r.useEffect((()=>{i&&"all"!==s&&a()}),[a,i,s]);return(0,j.jsx)(o.r,{loading:!n,children:i&&t?(0,j.jsx)(ge,{...e}):(0,j.jsx)(he,{...e})})}function he({database:e,nodeId:t,groupId:s,pDiskId:a,viewContext:r,parentRef:n,initialEntitiesCount:o}){const{searchValue:i,visibleEntities:d,handleShowAllGroups:u}=B(),c=(0,l.SA)(),{columnsToShow:m,columnsToSelect:p,setColumns:h}=ue({visibleEntities:d,viewContext:r});return(0,j.jsx)(ie,{database:e,nodeId:t,groupId:s,pDiskId:a,searchValue:i,visibleEntities:d,onShowAll:u,parentRef:n,renderControls:({totalEntities:e,foundEntities:t,inited:s})=>(0,j.jsx)($,{withTypeSelector:!0,withGroupBySelect:c,entitiesCountCurrent:t,entitiesCountTotal:e,entitiesLoading:!s,columnsToSelect:p,handleSelectedColumnsUpdate:h}),renderErrorMessage:W,columns:m,initialEntitiesCount:o})}function ge({database:e,nodeId:t,groupId:s,pDiskId:a,parentRef:r,viewContext:o}){const[l]=(0,u.Nt)(),{searchValue:c,storageGroupsGroupByParam:m,visibleEntities:p,handleShowAllGroups:h}=B(),{columnsToShow:g,columnsToSelect:v,setColumns:f}=ue({visibleEntities:p,viewContext:o}),{currentData:S,isFetching:k,error:y}=d.S.useGetStorageGroupsInfoQuery({database:e,with:"all",nodeId:t,groupId:s,pDiskId:a,filter:c,shouldUseGroupsHandler:!0,group:m},{pollingInterval:l}),N=void 0===S&&k,{tableGroups:b,found:x=0,total:w=0}=S||{},{expandedGroups:D,setIsGroupExpanded:I}=(0,me.$)(b);return(0,j.jsxs)(i.L,{children:[(0,j.jsx)(i.L.Controls,{children:(0,j.jsx)($,{withTypeSelector:!0,withGroupBySelect:!0,entitiesCountCurrent:x,entitiesCountTotal:w,entitiesLoading:N,columnsToSelect:v,handleSelectedColumnsUpdate:f})}),y?(0,j.jsx)(n.o,{error:y}):null,(0,j.jsx)(i.L.Table,{loading:N,className:V("groups-wrapper"),children:null!==b&&void 0!==b&&b.length?b.map((({name:n,count:o})=>{const i=D[n];return(0,j.jsx)(ce.Q,{title:n,count:o,entityName:G("groups"),expanded:i,onIsExpandedChange:I,children:(0,j.jsx)(ie,{database:e,parentRef:r,nodeId:t,groupId:s,pDiskId:a,filterGroup:n,filterGroupBy:m,searchValue:c,visibleEntities:"all",onShowAll:h,renderErrorMessage:W,columns:g,initialEntitiesCount:o})},n)})):G("no-groups")})]})}var ve=s(88655);const fe=JSON.parse('{"empty.default":"No such nodes","empty.out_of_space":"No nodes with out of space errors","empty.degraded":"No degraded nodes","empty.small_uptime":"No nodes with uptime < 1h","empty.several_filters":"No nodes match current filters combination","show_all":"Show all nodes"}'),Se=JSON.parse('{"empty.default":"\u041d\u0435\u0442 \u0443\u0437\u043b\u043e\u0432","empty.out_of_space":"\u041d\u0435\u0442 \u0443\u0437\u043b\u043e\u0432, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043a\u043e\u043d\u0447\u0430\u0435\u0442\u0441\u044f \u043c\u0435\u0441\u0442\u043e","empty.degraded":"\u041d\u0435\u0442 \u0434\u0435\u0433\u0440\u0430\u0434\u0438\u0440\u043e\u0432\u0430\u0432\u0448\u0438\u0445 \u0443\u0437\u043b\u043e\u0432","empty.small_uptime":"\u041d\u0435\u0442 \u0443\u0437\u043b\u043e\u0432 \u0441 uptime < 1h","empty.several_filters":"\u041d\u0435\u0442 \u0443\u0437\u043b\u043e\u0432, \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u043f\u043e\u0434 \u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u0444\u0438\u043b\u044c\u0442\u0440\u044b","show_all":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u0435 \u0443\u0437\u043b\u044b"}'),ke=(0,U.g4)("ydb-storage-nodes",{ru:Se,en:fe}),ye=({visibleEntities:e,nodesUptimeFilter:t,onShowAll:s})=>{let a;return e===I.space&&(a=ke("empty.out_of_space")),e===I.missing&&(a=ke("empty.degraded")),t===_.cW.SmallUptime&&(a=ke("empty.small_uptime")),e!==I.all&&t!==_.cW.All&&(a=ke("empty.several_filters")),a?(0,j.jsx)(te,{title:a,showAll:ke("show_all"),onShowAll:s}):null};var Ne=s(11905);const be=async e=>{const{type:t="static",storage:s=!0,limit:a,offset:r,sortParams:n,filters:o,columnsIds:i}=e,{searchValue:l,nodesUptimeFilter:d,visibleEntities:u,database:c,nodeId:m,groupId:p,filterGroup:h,filterGroupBy:g}=null!==o&&void 0!==o?o:{},{sortOrder:v,columnId:f}=null!==n&&void 0!==n?n:{},S=(0,k.kU)(f),y=S?(0,ne.T)(S,v):void 0,N=(0,oe.R)(i,k.fN),b=await window.api.viewer.getNodes({type:t,storage:s,limit:a,offset:r,sort:y,filter:l,uptime:(0,_.Fo)(d),with:u,database:c,node_id:m,group_id:p,filter_group:h,filter_group_by:g,fieldsRequired:N}),x=(0,Ne.rz)(b);return{data:x.nodes||[],found:x.found||0,total:x.total||0}},xe=(0,z.cn)("ydb-storage-nodes"),we=e=>xe("node",{unavailable:(0,_.X7)(e)}),De=({columns:e,database:t,nodeId:s,groupId:a,filterGroup:n,filterGroupBy:o,searchValue:i,visibleEntities:l,nodesUptimeFilter:d,onShowAll:u,parentRef:c,renderControls:m,renderErrorMessage:p,initialEntitiesCount:h})=>{const g=r.useMemo((()=>({searchValue:i,visibleEntities:l,nodesUptimeFilter:d,database:t,nodeId:s,groupId:a,filterGroup:n,filterGroupBy:o})),[i,l,d,t,s,a,n,o]);return(0,j.jsx)(J.k5,{columnsWidthLSKey:"storageNodesColumnsWidth",parentRef:c,columns:e,fetchData:be,rowHeight:51,limit:50,initialEntitiesCount:h,renderControls:m,renderErrorMessage:p,renderEmptyDataMessage:()=>l!==I.all||d!==_.cW.All?(0,j.jsx)(ye,{onShowAll:u,nodesUptimeFilter:d,visibleEntities:l}):ke("empty.default"),getRowClassName:we,filters:g,tableName:"storage-nodes"})};var Ie=s(4557),Ce=s(78762),je=s(10576);const Pe=(0,z.cn)("ydb-storage-nodes-columns"),Ae="--maximum-slots",Ee="--maximum-disks",Te=({viewContext:e})=>({name:k.vg.PDisks,header:k.uG.PDisks,className:Pe("pdisks-column"),render:({row:t})=>{var s;const a={[Ae]:t.MaximumSlotsPerDisk,[Ee]:t.MaximumDisksPerNode};return(0,j.jsx)("div",{className:Pe("pdisks-wrapper"),style:a,children:null===(s=t.PDisks)||void 0===s?void 0:s.map((s=>{var a;const r=null===(a=t.VDisks)||void 0===a?void 0:a.filter((e=>e.PDiskId===s.PDiskId));return(0,j.jsx)("div",{className:Pe("pdisks-item"),children:(0,j.jsx)(je.E,{data:s,vDisks:r,viewContext:e})},s.PDiskId)}))})},align:Ie.Ay.CENTER,sortable:!1,resizeable:!1});function Ue({visibleEntities:e,database:t,additionalNodesProps:s,viewContext:a}){const n=r.useMemo((()=>(({database:e,additionalNodesProps:t,viewContext:s})=>{const a=null===t||void 0===t?void 0:t.getNodeRef;return[(0,Ce._E)(),(0,Ce.Nh)({getNodeRef:a,database:e}),(0,Ce.eT)(),(0,Ce.uk)(),(0,Ce.OX)(),(0,Ce.jl)(),(0,Ce.fr)(),(0,Ce.kv)(),(0,Ce.pH)(),(0,Ce.iX)(),(0,Ce.Bg)(),(0,Ce.Rn)(),(0,Ce.Vz)(),Te({viewContext:s})].map((e=>({...e,sortable:(0,k.sp)(e.name)})))})({database:t,additionalNodesProps:s,viewContext:a})),[t,s,a]),o=r.useMemo((()=>e===I.missing?[...N,k.vg.Missing]:N),[e]);return(0,le.K)(n,"storageNodesSelectedColumns",k.uG,y,o)}const Re=e=>{const{storageNodesGroupByParam:t,visibleEntities:s,nodesUptimeFilter:a,handleShowAllNodes:n}=B(),i=(0,l.Pm)(),d=(0,l.Ye)();r.useEffect((()=>{!d||"all"===s&&a===_.cW.All||n()}),[n,a,d,s]);return(0,j.jsx)(o.r,{loading:!i,children:d&&t?(0,j.jsx)(Me,{...e}):(0,j.jsx)(Ge,{...e})})};function Ge({database:e,nodeId:t,groupId:s,viewContext:a,parentRef:r,initialEntitiesCount:n}){const{searchValue:o,visibleEntities:i,nodesUptimeFilter:d,handleShowAllNodes:u}=B(),c=(0,l.Ye)(),{columnsToShow:m,columnsToSelect:p,setColumns:h}=Le({database:e,viewContext:a});return(0,j.jsx)(De,{database:e,nodeId:t,groupId:s,searchValue:o,visibleEntities:i,nodesUptimeFilter:d,onShowAll:u,parentRef:r,renderControls:({totalEntities:e,foundEntities:t,inited:s})=>(0,j.jsx)(Y,{withTypeSelector:!0,withGroupBySelect:c,entitiesCountCurrent:t,entitiesCountTotal:e,entitiesLoading:!s,columnsToSelect:p,handleSelectedColumnsUpdate:h}),renderErrorMessage:W,columns:m,initialEntitiesCount:n})}function Me({database:e,groupId:t,nodeId:s,viewContext:a,parentRef:r}){const[n]=(0,u.Nt)(),{searchValue:o,storageNodesGroupByParam:l,handleShowAllNodes:c}=B(),{columnsToShow:m,columnsToSelect:p,setColumns:h}=Le({database:e,viewContext:a}),{currentData:g,isFetching:v,error:f}=d.S.useGetStorageNodesInfoQuery({database:e,with:"all",filter:o,node_id:s,group_id:t,group:l},{pollingInterval:n}),S=void 0===g&&v,{tableGroups:k,found:y=0,total:N=0}=g||{},{expandedGroups:b,setIsGroupExpanded:x}=(0,me.$)(k);return(0,j.jsxs)(i.L,{children:[(0,j.jsx)(i.L.Controls,{children:(0,j.jsx)(Y,{withTypeSelector:!0,withGroupBySelect:!0,entitiesCountCurrent:y,entitiesCountTotal:N,entitiesLoading:S,columnsToSelect:p,handleSelectedColumnsUpdate:h})}),f?(0,j.jsx)(L.o,{error:f}):null,(0,j.jsx)(i.L.Table,{loading:S,className:V("groups-wrapper"),children:null!==k&&void 0!==k&&k.length?k.map((({name:a,count:n})=>{const i=b[a];return(0,j.jsx)(ce.Q,{title:a,count:n,entityName:G("nodes"),expanded:i,onIsExpandedChange:x,children:(0,j.jsx)(De,{database:e,parentRef:r,nodeId:s,groupId:t,searchValue:o,visibleEntities:"all",nodesUptimeFilter:_.cW.All,onShowAll:c,filterGroup:a,filterGroupBy:l,renderErrorMessage:W,columns:m,initialEntitiesCount:n})},a)})):G("no-nodes")})]})}function Le({database:e,viewContext:t}){const s=(0,ve.E)(),{visibleEntities:a}=B();return Ue({additionalNodesProps:s,visibleEntities:a,database:e,viewContext:t})}var ze=s(3218);const Ve=e=>{const{storageType:t}=B(),s=(0,a.X)();return"nodes"===t&&s?(0,j.jsx)(Re,{initialEntitiesCount:(0,ze.b0)(e.viewContext),...e}):(0,j.jsx)(pe,{initialEntitiesCount:(0,ze.QQ)(e.viewContext),...e})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/9796.47d2388f.chunk.js b/ydb/core/viewer/monitoring/static/js/9796.47d2388f.chunk.js deleted file mode 100644 index d2043a9458..0000000000 --- a/ydb/core/viewer/monitoring/static/js/9796.47d2388f.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[9796],{90053:(e,t,s)=>{s.d(t,{E:()=>h});var a=s(8873),n=s(84476),r=s(24555),o=s(21334),i=s(77506),l=s(90182),d=s(48372);const u=JSON.parse('{"None":"None","15 sec":"15 sec","1 min":"1 min","2 min":"2 min","5 min":"5 min","Refresh":"Refresh"}'),c=(0,d.g4)("ydb-diagnostics-autorefresh-control",{en:u});var m=s(60712);const p=(0,i.cn)("auto-refresh-control");function h({className:e,onManualRefresh:t}){const s=(0,l.YQ)(),[i,d]=(0,l.Nt)();return(0,m.jsxs)("div",{className:p(null,e),children:[(0,m.jsx)(n.$,{view:"flat-secondary",onClick:()=>{s(o.F.util.invalidateTags(["All"])),null===t||void 0===t||t()},extraProps:{"aria-label":c("Refresh")},children:(0,m.jsx)(n.$.Icon,{children:(0,m.jsx)(a.A,{})})}),(0,m.jsxs)(r.l,{value:[String(i)],onUpdate:e=>{d(Number(e))},width:85,qa:"ydb-autorefresh-select",children:[(0,m.jsx)(r.l.Option,{value:"0",children:c("None")}),(0,m.jsx)(r.l.Option,{value:"15000",children:c("15 sec")}),(0,m.jsx)(r.l.Option,{value:"60000",children:c("1 min")}),(0,m.jsx)(r.l.Option,{value:"120000",children:c("2 min")}),(0,m.jsx)(r.l.Option,{value:"300000",children:c("5 min")})]})]})}},24543:(e,t,s)=>{s.d(t,{u:()=>o});var a=s(59284),n=s(39238),r=s(60712);const o=({children:e,content:t,className:s,pinOnClick:o,hasArrow:i=!0,placement:l=["top","bottom"],...d})=>{const[u,c]=a.useState(!1),[m,p]=a.useState(!1),h=a.useRef(null);return(0,r.jsxs)(a.Fragment,{children:[(0,r.jsx)(n.z,{anchorRef:h,open:m||u,placement:l,hasArrow:i,onOutsideClick:()=>{p(!1)},...d,children:t}),(0,r.jsx)("span",{className:s,ref:h,onClick:o?()=>{p(!0)}:void 0,onMouseEnter:()=>{c(!0)},onMouseLeave:()=>{c(!1)},children:e})]})}},88226:(e,t,s)=>{s.d(t,{V:()=>d});s(59284);var a=s(77506),n=s(76086),r=s(7187),o=s(90182),i=s(60712);const l=(0,a.cn)("storage-disk-progress-bar");function d({diskAllocatedPercent:e=-1,severity:t,compact:s,faded:a,inactive:d,empty:u,content:c,className:m}){const[p]=(0,o.iK)(n.TJ),h={inverted:p,compact:s,faded:a,empty:u,inactive:d},g=void 0!==t&&(0,r.XY)(t);g&&(h[g.toLocaleLowerCase()]=!0);return(0,i.jsxs)("div",{className:l(h,m),role:"meter","aria-label":"Disk allocated space","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e,children:[(()=>{if(s)return(0,i.jsx)("div",{className:l("fill-bar",h),style:{width:"100%"}});const t=p?100-e:e;return e>=0?(0,i.jsx)("div",{className:l("fill-bar",h),style:{width:`${t}%`}}):null})(),c||(!s&&e>=0?(0,i.jsx)("div",{className:l("title"),children:`${Math.round(e)}%`}):null)]})}},53755:(e,t,s)=>{s.d(t,{T:()=>l});var a=s(47665),n=s(77506);const r=(0,s(48372).g4)("ydb-entities-count",{ru:{of:"\u0438\u0437"},en:{of:"of"}});var o=s(60712);const i=(0,n.cn)("ydb-entities-count"),l=({total:e,current:t,label:s,loading:n,className:l})=>{let d="";return s&&(d+=`${s}: `),n?d+="...":(d+=`${t}`,e&&Number(e)!==Number(t)&&(d+=` ${r("of")} ${e}`)),(0,o.jsx)(a.J,{theme:"info",size:"m",className:i(null,l),children:d})}},10508:(e,t,s)=>{s.d(t,{c:()=>c});var a=s(67884),n=s(96873),r=s(54090),o=s(77506),i=s(82015),l=s(33775),d=s(60712);const u=(0,o.cn)("entity-status");function c({status:e=r.m.Grey,name:t="",label:s,path:o,iconPath:c,size:m="s",mode:p="color",showStatus:h=!0,externalLink:g=!1,withLeftTrim:v=!1,hasClipboardButton:f,clipboardButtonAlwaysVisible:S=!1,className:k}){const N=()=>h?(0,d.jsx)(l.k,{className:u("icon"),status:e,size:m,mode:p}):null;return(0,d.jsxs)("div",{className:u(null,k),children:[c?(y=c,(0,d.jsx)(a.N,{target:"_blank",href:y,children:N()})):N(),s&&(0,d.jsx)("span",{title:s,className:u("label",{size:m,state:e.toLowerCase()}),children:s}),(o||t)&&(0,d.jsxs)("div",{className:u("wrapper",{"with-button":f}),children:[(0,d.jsx)("span",{className:u("link",{"with-left-trim":v}),title:t,children:o?g?(0,d.jsx)(a.N,{className:u("name"),href:o,children:t}):(0,d.jsx)(i.E,{className:u("name"),to:o,children:t}):t&&(0,d.jsx)("span",{className:u("name"),children:t})}),f&&(0,d.jsx)("div",{className:u("controls-wrapper",{visible:S}),children:(0,d.jsx)(n.b,{text:t,size:"xs",view:"normal",className:u("clipboard-button",{visible:S})})})]})]});var y}},13096:(e,t,s)=>{s.d(t,{P:()=>u});var a=s(59284),n=s(39238),r=s(43781),o=s.n(r),i=s(77506),l=s(60712);const d=(0,i.cn)("hover-popup"),u=({children:e,popupContent:t,showPopup:s,offset:r,anchorRef:i,onShowPopup:u,onHidePopup:c,placement:m=["top","bottom"],contentClassName:p,delayClose:h=100,delayOpen:g=100})=>{const[v,f]=a.useState(!1),S=a.useRef(null),k=a.useMemo((()=>o()((()=>{f(!0),null===u||void 0===u||u()}),g)),[u,g]),N=a.useCallback((()=>{f(!1),null===c||void 0===c||c()}),[c]),y=a.useMemo((()=>o()(N,h)),[N,h]),b=k,[x,w]=a.useState(!1),[D,I]=a.useState(!1),C=a.useCallback((()=>{w(!0)}),[]),j=a.useCallback((()=>{w(!1)}),[]),P=a.useCallback((()=>{I(!0)}),[]),A=a.useCallback((()=>{I(!1)}),[]),E=a.useCallback((()=>{I(!1),w(!1),N()}),[N]),T=v||s||x||D;return(0,l.jsxs)(a.Fragment,{children:[(0,l.jsx)("span",{ref:S,onMouseEnter:b,onMouseLeave:()=>{k.cancel(),y()},children:e}),(0,l.jsx)(n.z,{contentClassName:d(null,p),anchorRef:i||S,open:T,onMouseEnter:C,onMouseLeave:j,onEscapeKeyDown:E,onBlur:A,placement:m,hasArrow:!0,offset:r||[0,12],children:(0,l.jsx)("div",{onContextMenu:P,children:t})})]})}},73473:(e,t,s)=>{s.d(t,{S:()=>y});var a=s(38501),n=s(40336),r=s(46549),o=s(77506),i=s(76086),l=s(35736),d=s(41650),u=s(13096),c=s(15132),m=s(48372);const p=JSON.parse('{"text_external-consumption":"External Consumption","text_allocator-caches":"Allocator Caches","text_shared-cache":"Shared Cache","text_memtable":"MemTable","text_query-execution":"Query Execution","text_usage":"Usage","text_soft-limit":"Soft Limit","text_hard-limit":"Hard Limit","text_other":"Other"}'),h=(0,m.g4)("ydb-memory-viewer",{en:p});function g(e){return(0,d.kf)(e)?parseFloat(String(e)):void 0}var v=s(60712);const f=1,S=.01*i.J7,k=(0,o.cn)("memory-viewer"),N=(e,t)=>[(0,r.z3)({value:e,size:"gb",withSizeLabel:!1,precision:2}),(0,r.z3)({value:t,size:"gb",withSizeLabel:!0,precision:1})];function y({stats:e,percents:t,formatValues:s,className:o,warningThreshold:i,dangerThreshold:m}){var p;const y=null!==(p=e.AnonRss)&&void 0!==p?p:function(e){const t=g(e.AllocatedMemory)||0,s=g(e.AllocatorCachesMemory)||0;return String(t+s)}(e),b=e.HardLimit,x=(0,a.D)();let w=Math.round(parseFloat(String(y))/parseFloat(String(b))*100)||0;w=w>100?100:w;let D=y,I=b,C="/";t?(D=w+"%",I="",C=""):s&&([D,I]=s(Number(y),Number(b)));const j=function(e,t){const s=[{label:h("text_shared-cache"),key:"SharedCacheConsumption",value:g(e.SharedCacheConsumption),capacity:g(e.SharedCacheLimit),isInfo:!1},{label:h("text_query-execution"),key:"QueryExecutionConsumption",value:g(e.QueryExecutionConsumption),capacity:g(e.QueryExecutionLimit),isInfo:!1},{label:h("text_memtable"),key:"MemTableConsumption",value:g(e.MemTableConsumption),capacity:g(e.MemTableLimit),isInfo:!1},{label:h("text_allocator-caches"),key:"AllocatorCachesMemory",value:g(e.AllocatorCachesMemory),isInfo:!1}],a=s.filter((e=>void 0!==e.value)).reduce(((e,t)=>e+t.value),0),n=Math.max(0,t-a);return s.push({label:h("text_other"),key:"Other",value:n,isInfo:!1}),s.push({label:h("text_external-consumption"),key:"ExternalConsumption",value:g(e.ExternalConsumption),isInfo:!0},{label:h("text_usage"),key:"Usage",value:t,isInfo:!0},{label:h("text_soft-limit"),key:"SoftLimit",value:g(e.SoftLimit),isInfo:!0},{label:h("text_hard-limit"),key:"HardLimit",value:g(e.HardLimit),isInfo:!0}),s.filter((e=>void 0!==e.value))}(e,Number(y)),P=(0,l.w)({fillWidth:w,warningThreshold:i,dangerThreshold:m,colorizeProgress:!0});let A=0;return(0,v.jsx)(u.P,{popupContent:(0,v.jsx)(n.u,{responsive:!0,children:j.map((({label:e,value:t,capacity:s,key:a})=>(0,v.jsx)(n.u.Item,{name:(0,v.jsxs)("div",{className:k("container"),children:[(0,v.jsx)("div",{className:k("legend",{type:a})}),(0,v.jsx)("div",{className:k("name"),children:e})]}),children:s?(0,v.jsx)(c.O,{value:t,capacity:s,formatValues:N,colorizeProgress:!0}):(0,r.z3)({value:t,size:"gb",withSizeLabel:!0,precision:2})},e)))}),children:(0,v.jsx)("div",{className:k({theme:x,status:P},o),children:(0,v.jsxs)("div",{className:k("progress-container"),children:[j.filter((({isInfo:e})=>!e)).map((e=>{if(e.value<S)return null;const t=Math.max((s=e.value,y?s/parseFloat(String(b))*100:0),f);var s;const a=A;return A+=t,(0,v.jsx)("div",{className:k("segment",{type:e.key}),style:{width:`${t}%`,left:`${a}%`}},e.key)})),(0,v.jsx)("div",{className:k("text"),children:(0,d.kf)(b)?`${D} ${C} ${I}`:D})]})})})}},96927:(e,t,s)=>{s.d(t,{O:()=>f,f:()=>v});var a=s(59284),n=s(24600),r=s(54090),o=s(7435),i=s(76086),l=s(31684),d=s(90182),u=s(12888),c=s(41650),m=s(60073),p=s(25196),h=s(60712);const g=[r.m.Orange,r.m.Red,r.m.Yellow],v=(e,t,s)=>{const{AvailableSize:a,TotalSize:n,State:r,PDiskId:d,NodeId:u,StringifiedId:m,Path:v,Realtime:f,Type:S,Device:k}=e,N=[{label:"PDisk",value:null!==m&&void 0!==m?m:i.Pd},{label:"State",value:r||"not available"},{label:"Type",value:S||"unknown"}];if(u&&N.push({label:"Node Id",value:u}),null!==t&&void 0!==t&&t.Host&&N.push({label:"Host",value:t.Host}),null!==t&&void 0!==t&&t.DC&&N.push({label:"DC",value:t.DC}),v&&N.push({label:"Path",value:v}),(0,c.kf)(n)&&N.push({label:"Available",value:`${(0,c.wb)(a)} of ${(0,c.wb)(n)}`}),f&&g.includes(f)&&N.push({label:"Realtime",value:f}),k&&g.includes(k)&&N.push({label:"Device",value:k}),s&&(0,o.f8)(u)&&(0,o.f8)(d)){const e=(0,l.ar)({nodeId:u,pDiskId:d});N.push({label:"Links",value:(0,h.jsx)(p.K,{title:"Developer UI",url:e})})}return N},f=({data:e})=>{const t=(0,u.X)(),s=(0,d.N4)(n.K),r=(0,o.f8)(e.NodeId)?null===s||void 0===s?void 0:s.get(e.NodeId):void 0,i=a.useMemo((()=>v(e,r,t)),[e,r,t]);return(0,h.jsx)(m.z_,{title:"PDisk",info:i,size:"s"})}},40427:(e,t,s)=>{s.d(t,{k5:()=>E});var a=s(59284),n=s(89073);const r=s(21334).F.injectEndpoints({endpoints:function(e){return{fetchTableChunk:e.query({queryFn:async({offset:e,limit:t,sortParams:s,filters:a,columnsIds:n,fetchData:r},{signal:o})=>{try{return{data:await r({limit:t,offset:e,filters:a,sortParams:s,columnsIds:n,signal:o})}}catch(i){return{error:i}}},providesTags:["All"]})}}});var o=s(7435),i=s(90182),l=s(44508),d=s(89169);const u=!0;const c=(0,s(77506).cn)("ydb-paginated-table");var m=s(60712);const p=({children:e,className:t,height:s,width:a,align:n="left",resizeable:r})=>(0,m.jsx)("td",{className:c("row-cell",{align:n},t),style:{height:`${s}px`,width:`${a}px`,maxWidth:r?`${a}px`:void 0},children:e}),h=({index:e,columns:t,height:s})=>(0,m.jsx)("tr",{className:c("row",{loading:!0}),children:t.map((t=>{var a;const n=null!==(a=t.resizeable)&&void 0!==a?a:u;return(0,m.jsx)(p,{height:s,width:t.width,align:t.align,className:t.className,resizeable:n,children:(0,m.jsx)(d.E,{className:c("row-skeleton"),style:{width:"80%",height:"50%"}})},`${t.name}${e}`)}))}),g=({row:e,index:t,columns:s,getRowClassName:a,height:n})=>{const r=null===a||void 0===a?void 0:a(e);return(0,m.jsx)("tr",{className:c("row",r),children:s.map((s=>{var a;const r=null!==(a=s.resizeable)&&void 0!==a?a:u;return(0,m.jsx)(p,{height:n,width:s.width,align:s.align,className:s.className,resizeable:r,children:s.render({row:e,index:t})},`${s.name}${t}`)}))})},v=({columns:e,children:t})=>(0,m.jsx)("tr",{className:c("row",{empty:!0}),children:(0,m.jsx)("td",{colSpan:e.length,className:c("td"),children:t})});var f=s(48372);const S=JSON.parse('{"empty":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445"}'),k=(0,f.g4)("ydb-paginated-table",{ru:S,en:{empty:"No data"}});const N=a.memo;const y=N((function({id:e,chunkSize:t,calculatedCount:s,rowHeight:n,columns:d,fetchData:u,tableName:c,filters:p,sortParams:f,getRowClassName:S,renderErrorMessage:N,renderEmptyDataMessage:y,onDataFetched:b,isActive:x}){var w;const[D,I]=a.useState(!0),[C]=(0,i.Nt)(),j={offset:e*t,limit:t,fetchData:u,filters:p,sortParams:f,columnsIds:d.map((e=>e.name)),tableName:c};r.useFetchTableChunkQuery(j,{skip:D||!x,pollingInterval:C});const{currentData:P,error:A}=r.endpoints.fetchTableChunk.useQueryState(j);a.useEffect((()=>{let e=0;return x&&D&&(e=window.setTimeout((()=>{I(!1)}),200)),()=>{window.clearTimeout(e)}}),[x,D]),a.useEffect((()=>{if(P&&x){const{total:e=0,found:t=0}=P;b(e,t)}}),[P,x,b]);const E=(null===P||void 0===P||null===(w=P.data)||void 0===w?void 0:w.length)||s;return(0,m.jsx)("tbody",{id:e.toString(),style:{height:E*n+"px",display:x?"table-row-group":"block"},children:(()=>{var e;if(!x)return null;if(!P){if(A){const e=A;return(0,m.jsx)(v,{columns:d,children:N?N(e):(0,m.jsx)(l.o,{error:e})})}return(0,o._e)(E).map((e=>(0,m.jsx)(h,{columns:d,height:n,index:e},e)))}return null!==(e=P.data)&&void 0!==e&&e.length?P.data.map(((e,t)=>(0,m.jsx)(g,{index:t,row:e,columns:d,height:n,getRowClassName:S},t))):(0,m.jsx)(v,{columns:d,children:y?y():k("empty")})})()})}));function b({minWidth:e,maxWidth:t,getCurrentColumnWidth:s,onResize:n}){const r=a.useRef(null),[o,i]=a.useState(!1);return a.useEffect((()=>{const a=r.current;if(!a)return;let o,l,d;const u=function(e){let t,s=null;return function(...a){t=a,"number"!==typeof s&&(s=requestAnimationFrame((()=>{e(...t),s=null})))}}((s=>{if(x(s),"number"!==typeof o||"number"!==typeof l)return;const a=s.clientX-o,r=function(e,t=40,s=1/0){return Math.max(t,Math.min(e,s))}(l+a,e,t);r!==d&&(d=r,null===n||void 0===n||n(d))})),c=e=>{x(e),void 0!==d&&(null===n||void 0===n||n(d)),i(!1),o=void 0,document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",c)},m=e=>{l=s(),x(e),o=e.clientX,i(!0),document.addEventListener("mousemove",u),document.addEventListener("mouseup",c)};return a.addEventListener("mousedown",m),()=>{a.removeEventListener("mousedown",m),document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",c)}}),[n,e,t,s]),(0,m.jsx)("span",{ref:r,className:c("resize-handler",{resizing:o}),onClick:e=>x(e)})}function x(e){e.preventDefault(),e.stopPropagation()}const w=({order:e})=>(0,m.jsx)("svg",{className:c("sort-icon",{desc:-1===e}),viewBox:"0 0 10 6",width:"10",height:"6",children:(0,m.jsx)("path",{fill:"currentColor",d:"M0 5h10l-5 -5z"})}),D=({sortOrder:e,sortable:t,defaultSortOrder:s})=>t?(0,m.jsx)("span",{className:c("sort-icon-container",{shadow:!e}),children:(0,m.jsx)(w,{order:e||s})}):null,I=({column:e,resizeable:t,sortOrder:s,defaultSortOrder:n,onSort:r,rowHeight:o,onCellMount:i,onCellUnMount:l,onColumnsResize:d})=>{var u;const p=a.useRef(null);a.useEffect((()=>{const e=p.current;return e&&(null===i||void 0===i||i(e)),()=>{e&&(null===l||void 0===l||l(e))}}),[i,l]);const h=a.useCallback((()=>{var e;return null===(e=p.current)||void 0===e?void 0:e.getBoundingClientRect().width}),[]),g=a.useCallback((t=>{null===d||void 0===d||d(e.name,t)}),[d,e.name]),v=null!==(u=e.header)&&void 0!==u?u:e.name,f={height:`${o}px`,width:`${e.width}px`,minWidth:t?`${e.width}px`:void 0,maxWidth:t?`${e.width}px`:void 0};return(0,m.jsxs)("th",{ref:p,className:c("head-cell-wrapper"),style:f,children:[(0,m.jsxs)("div",{className:c("head-cell",{align:e.align,sortable:e.sortable},e.className),onClick:()=>{e.sortable&&(null===r||void 0===r||r(e.name))},children:[(0,m.jsx)("div",{className:c("head-cell-content"),children:v}),(0,m.jsx)(D,{sortOrder:s,sortable:e.sortable,defaultSortOrder:n})]}),t?(0,m.jsx)(b,{maxWidth:e.resizeMaxWidth,minWidth:e.resizeMinWidth,getCurrentColumnWidth:h,onResize:g}):null]})},C=({columns:e,onSort:t,onColumnsResize:s,defaultSortOrder:n=-1,rowHeight:r=41})=>{const[o,i]=a.useState({}),l=e=>{let s={};if(e===o.columnId){if(o.sortOrder&&o.sortOrder!==n)return i(s),void(null===t||void 0===t||t(s));s={sortOrder:1===o.sortOrder?-1:1,columnId:e}}else s={sortOrder:n,columnId:e};null===t||void 0===t||t(s),i(s)};return(0,m.jsxs)(a.Fragment,{children:[(0,m.jsx)("colgroup",{children:e.map((e=>(0,m.jsx)("col",{style:{width:`${e.width}px`}},e.name)))}),(0,m.jsx)("thead",{className:c("head"),children:(0,m.jsx)("tr",{children:e.map((e=>{var t;const a=o.columnId===e.name?o.sortOrder:void 0,i=s&&(null!==(t=e.resizeable)&&void 0!==t?t:u);return(0,m.jsx)(I,{column:e,resizeable:i,sortOrder:a,defaultSortOrder:n,onSort:l,rowHeight:r,onColumnsResize:s},e.name)}))})})]})};var j=s(13847);const P=({limit:e,initialEntitiesCount:t,fetchData:s,filters:r,tableName:o,columns:i,getRowClassName:l,rowHeight:d=41,parentRef:u,initialSortParams:p,onColumnsResize:h,renderControls:g,renderErrorMessage:v,renderEmptyDataMessage:f,containerClassName:S})=>{const k=t||0,N=t||1,[b,x]=a.useState(p),[w,D]=a.useState(k),[I,P]=a.useState(N),[A,E]=a.useState(!0),T=a.useRef(null),U=(({parentRef:e,tableRef:t,totalItems:s,rowHeight:n,chunkSize:r,overscanCount:o=1})=>{const i=a.useMemo((()=>Math.ceil(s/r)),[r,s]),[l,d]=a.useState(0),[u,c]=a.useState(Math.min(o,Math.max(i-1,0))),m=a.useCallback((()=>{const s=null===e||void 0===e?void 0:e.current,a=t.current;if(!s||!a)return null;const l=function(e,t){let s=e,a=0;for(;s&&s!==t;)a+=s.offsetTop,s=s.offsetParent;return a}(a,s),d=s.scrollTop,u=Math.max(d-l,0),c=u+s.clientHeight;return{start:Math.max(Math.floor(u/n/r)-o,0),end:Math.min(Math.floor(c/n/r)+o,Math.max(i-1,0))}}),[e,t,n,r,o,i]),p=a.useCallback((()=>{const e=m();e&&(d(e.start),c(e.end))}),[m]);return a.useEffect((()=>{const t=null===e||void 0===e?void 0:e.current;if(!t)return;const s=(0,j.throttle)(p,100,{leading:!0,trailing:!0});return t.addEventListener("scroll",s),()=>{t.removeEventListener("scroll",s),s.cancel()}}),[p,e]),a.useMemo((()=>{const e=Array(i).fill(!1);for(let t=l;t<=u;t++)e[t]=!0;return e}),[i,l,u])})({parentRef:u,tableRef:T,totalItems:I,rowHeight:d,chunkSize:e}),M=a.useMemo((()=>I?I%e||e:1),[I,e]),R=a.useCallback(((e,t)=>{D(e),P(t),E(!1)}),[]);a.useLayoutEffect((()=>{D(k),P(N),E(!0),null!==u&&void 0!==u&&u.current&&u.current.scrollTo(0,0)}),[r,N,k,u]);const G=()=>(0,m.jsxs)("table",{className:c("table"),children:[(0,m.jsx)(C,{columns:i,onSort:x,onColumnsResize:h}),U.map(((t,a)=>(0,m.jsx)(y,{id:a,calculatedCount:a===U.length-1?M:e,chunkSize:e,rowHeight:d,columns:i,fetchData:s,filters:r,tableName:o,sortParams:b,getRowClassName:l,renderErrorMessage:v,renderEmptyDataMessage:f,onDataFetched:R,isActive:t},a)))]});return(0,m.jsx)("div",{ref:T,className:c(null,S),children:g?(0,m.jsxs)(n.L,{children:[(0,m.jsx)(n.L.Controls,{children:g({inited:!A,totalEntities:w,foundEntities:I})}),(0,m.jsx)(n.L.Table,{children:G()})]}):G()})};var A=s(16819);function E({columnsWidthLSKey:e,columns:t,...s}){const[a,n]=(0,A.a)(e),r=function(e,t){return e.map((e=>{var s;return{...e,width:null!==(s=t[e.name])&&void 0!==s?s:e.width}}))}(t,a);return(0,m.jsx)(P,{columns:r,onColumnsResize:n,containerClassName:c("resizeable-table-container"),...s})}},48295:(e,t,s)=>{s.d(t,{_:()=>u});var a=s(77506),n=s(24543),r=s(80176),o=s(60712);const i=(0,a.cn)("ydb-pool-bar"),l=({data:e={}})=>{const{Usage:t=0}=e,s=Math.min(100*t,100),a=(e=>e>=75?"danger":e>=50&&e<75?"warning":"normal")(s);return(0,o.jsx)(n.u,{className:i({type:a}),content:(0,o.jsx)(r.HG,{data:e,className:i("popup-content")}),children:(0,o.jsx)("div",{style:{height:`${s}%`},className:i("value",{type:a})})})},d=(0,a.cn)("ydb-pools-graph"),u=({pools:e=[]})=>(0,o.jsx)("div",{className:d(),children:e.map(((e,t)=>(0,o.jsx)(l,{data:e},t)))})},15132:(e,t,s)=>{s.d(t,{O:()=>m});var a=s(38501),n=s(77506),r=s(56839),o=s(35736),i=s(41650),l=s(60712);const d=(0,n.cn)("progress-viewer"),u=e=>(0,r.ZV)((0,r.CR)(Number(e),2)),c=(e,t)=>[u(e),u(t)];function m({value:e,capacity:t,formatValues:s=c,percents:n,className:r,size:u="xs",colorizeProgress:m,inverseColorize:p,warningThreshold:h,dangerThreshold:g,hideCapacity:v}){const f=(0,a.D)();let S=Math.round(parseFloat(String(e))/parseFloat(String(t))*100)||0;S=S>100?100:S;let k=e,N=t,y="/";n?(k=S+"%",N="",y=""):s&&([k,N]=s(Number(e),Number(t)));const b=(0,o.w)({fillWidth:S,warningThreshold:h,dangerThreshold:g,colorizeProgress:m,inverseColorize:p});m&&!(0,i.kf)(t)&&(S=100);const x={width:S+"%"};return(0,i.kf)(e)?(0,l.jsxs)("div",{className:d({size:u,theme:f,status:b},r),children:[(0,l.jsx)("div",{className:d("line"),style:x}),(0,l.jsx)("span",{className:d("text"),children:(0,i.kf)(t)&&!v?`${k} ${y} ${N}`:k})]}):(0,l.jsx)("div",{className:`${d({size:u})} ${r} error`,children:"no data"})}},41775:(e,t,s)=>{s.d(t,{v:()=>l});var a=s(59284),n=s(28664),r=s(77506),o=s(60712);const i=(0,r.cn)("ydb-search"),l=({onChange:e,value:t="",width:s,className:r,debounce:l=200,placeholder:d})=>{const[u,c]=a.useState(t),m=a.useRef();a.useEffect((()=>{c((e=>e!==t?t:e))}),[t]);return(0,o.jsx)(n.k,{hasClear:!0,autoFocus:!0,style:{width:s},className:i(null,r),placeholder:d,value:u,onUpdate:t=>{c(t),window.clearTimeout(m.current),m.current=window.setTimeout((()=>{null===e||void 0===e||e(t)}),l)}})}},33775:(e,t,s)=>{s.d(t,{k:()=>m});var a=s(45720),n=s(16929),r=s(71153),o=s(99991),i=s(54090),l=s(77506),d=s(60712);const u=(0,l.cn)("ydb-status-icon"),c={[i.m.Blue]:a.A,[i.m.Yellow]:n.A,[i.m.Orange]:r.A,[i.m.Red]:n.A};function m({status:e=i.m.Grey,size:t="s",mode:s="color",className:a}){const n={state:e.toLowerCase(),size:t};return"icons"===s&&e in c?(0,d.jsx)(o.I,{className:u("status-icon",n,a),data:c[e]}):(0,d.jsx)("div",{className:u("status-color",n,a)})}},19228:(e,t,s)=>{s.d(t,{Q:()=>l});var a=s(89169),n=s(77506),r=s(66781),o=s(60712);const i=(0,n.cn)("table-skeleton"),l=({rows:e=2,delay:t=600,className:s})=>{const[n]=(0,r.y)(t);return(0,o.jsxs)("div",{className:i("wrapper",{hidden:!n},s),children:[(0,o.jsxs)("div",{className:i("row"),children:[(0,o.jsx)(a.E,{className:i("col-1")}),(0,o.jsx)(a.E,{className:i("col-2")}),(0,o.jsx)(a.E,{className:i("col-3")}),(0,o.jsx)(a.E,{className:i("col-4")}),(0,o.jsx)(a.E,{className:i("col-5")})]}),[...new Array(e)].map(((e,t)=>(0,o.jsx)("div",{className:i("row"),children:(0,o.jsx)(a.E,{className:i("col-full")})},`skeleton-row-${t}`)))]})}},89073:(e,t,s)=>{s.d(t,{L:()=>i});var a=s(77506),n=s(19228),r=s(60712);const o=(0,a.cn)("ydb-table-with-controls-layout"),i=({children:e,className:t})=>(0,r.jsx)("div",{className:o(null,t),children:e});i.Controls=function({children:e,className:t}){return(0,r.jsx)("div",{className:o("controls-wrapper"),children:(0,r.jsx)("div",{className:o("controls",t),children:e})})},i.Table=function({children:e,loading:t,className:s}){return t?(0,r.jsx)(n.Q,{className:o("loader")}):(0,r.jsx)("div",{className:o("table",s),children:e})}},64934:(e,t,s)=>{s.d(t,{j:()=>o});var a=s(44433),n=s(78034),r=s(60712);const o=({value:e,onChange:t,className:s})=>(0,r.jsxs)(a.a,{value:e,onUpdate:t,className:s,children:[(0,r.jsx)(a.a.Option,{value:n.cW.All,children:n.DG[n.cW.All]}),(0,r.jsx)(a.a.Option,{value:n.cW.SmallUptime,children:n.DG[n.cW.SmallUptime]})]})},13342:(e,t,s)=>{s.d(t,{U:()=>i});var a=s(47665),n=s(77506),r=s(60712);const o=(0,n.cn)("ydb-usage-label");function i({value:e,overloadThreshold:t=90,theme:s,...n}){return(0,r.jsxs)(a.J,{theme:s,className:o({overload:Number(e)>=t}),...n,children:[e||0,"%"]})}},8809:(e,t,s)=>{s.d(t,{y:()=>P});var a=s(77506),n=s(88226),r=s(13096),o=s(44294),i=s(59284),l=s(47665),d=s(24600),u=s(54090),c=s(7435),m=s(76086),p=s(31684),h=s(7187),g=s(90182),v=s(12888),f=s(41650),S=s(60073),k=s(25196),N=s(96927),y=s(29819),b=s(92459),x=s(56839);function w(e){let t;const s=(0,h.NJ)(e)?e.VDiskSlotId:e.VSlotId;if((0,c.f8)(s)&&(0,c.f8)(e.PDiskId)&&(0,c.f8)(e.NodeId))t=(0,b.yX)(s,e.PDiskId,e.NodeId);else if((0,c.f8)(e.NodeId)&&(0,h.NJ)(e)){var a;t=(0,y.vI)(e.NodeId,{pdiskId:null===(a=e.PDiskId)||void 0===a?void 0:a.toString(),vdiskId:(0,x.U9)(e.VDiskId)},"structure")}return t}var D=s(60712);const I=(0,a.cn)("vdisk-storage-popup"),C=({data:e})=>{const t=(0,h.NJ)(e),s=(0,v.X)(),a=i.useMemo((()=>t?((e,t)=>{var s,a,n,r;const{NodeId:o,PDiskId:i,VDiskSlotId:l,StringifiedId:d,VDiskState:m,SatisfactionRank:h,DiskSpace:g,FrontQueues:v,Replicated:S,UnsyncedVDisks:N,AllocatedSize:y,ReadThroughput:b,WriteThroughput:x,StoragePoolName:w}=e,I=[{label:"VDisk",value:d},{label:"State",value:null!==m&&void 0!==m?m:"not available"}];var C,j;if(w&&I.push({label:"StoragePool",value:w}),h&&(null===(s=h.FreshRank)||void 0===s?void 0:s.Flag)!==u.m.Green&&I.push({label:"Fresh",value:null===(C=h.FreshRank)||void 0===C?void 0:C.Flag}),h&&(null===(a=h.LevelRank)||void 0===a?void 0:a.Flag)!==u.m.Green&&I.push({label:"Level",value:null===(j=h.LevelRank)||void 0===j?void 0:j.Flag}),h&&null!==(n=h.FreshRank)&&void 0!==n&&n.RankPercent&&I.push({label:"Fresh",value:h.FreshRank.RankPercent}),h&&null!==(r=h.LevelRank)&&void 0!==r&&r.RankPercent&&I.push({label:"Level",value:h.LevelRank.RankPercent}),g&&g!==u.m.Green&&I.push({label:"Space",value:g}),v&&v!==u.m.Green&&I.push({label:"FrontQueues",value:v}),!1===S&&I.push({label:"Replicated",value:"NO"}),N&&I.push({label:"UnsyncVDisks",value:N}),Number(y)&&I.push({label:"Allocated",value:(0,f.wb)(y)}),Number(b)&&I.push({label:"Read",value:(0,f.O4)(b)}),Number(x)&&I.push({label:"Write",value:(0,f.O4)(x)}),t&&(0,c.f8)(o)&&(0,c.f8)(i)&&(0,c.f8)(l)){const e=(0,p.Wg)({nodeId:o,pDiskId:i,vDiskSlotId:l});I.push({label:"Links",value:(0,D.jsx)(k.K,{title:"Developer UI",url:e})})}return I})(e,s):((e,t)=>{const{NodeId:s,PDiskId:a,VSlotId:n,StoragePoolName:r}=e,o=[{label:"State",value:"not available"}];if(r&&o.push({label:"StoragePool",value:r}),o.push({label:"NodeId",value:null!==s&&void 0!==s?s:m.Pd},{label:"PDiskId",value:null!==a&&void 0!==a?a:m.Pd},{label:"VSlotId",value:null!==n&&void 0!==n?n:m.Pd}),t&&(0,c.f8)(s)&&(0,c.f8)(a)&&(0,c.f8)(n)){const e=(0,p.Wg)({nodeId:s,pDiskId:a,vDiskSlotId:n});o.push({label:"Links",value:(0,D.jsx)(k.K,{title:"Developer UI",url:e})})}return o})(e,s)),[e,t,s]),n=(0,g.N4)(d.K),r=(0,c.f8)(e.NodeId)?null===n||void 0===n?void 0:n.get(e.NodeId):void 0,y=i.useMemo((()=>t&&e.PDisk&&(0,N.f)(e.PDisk,r,s)),[e,r,t,s]),b=[];if("Donors"in e&&e.Donors){const t=e.Donors;for(const e of t)b.push({label:"VDisk",value:(0,D.jsx)(o.E,{to:w(e),children:e.StringifiedId})})}return(0,D.jsxs)("div",{className:I(),children:[e.DonorMode&&(0,D.jsx)(l.J,{className:I("donor-label"),children:"Donor"}),(0,D.jsx)(S.z_,{title:"VDisk",info:a,size:"s"}),y&&(0,D.jsx)(S.z_,{title:"PDisk",info:y,size:"s"}),b.length>0&&(0,D.jsx)(S.z_,{title:"Donors",info:b,size:"s"})]})},j=(0,a.cn)("ydb-vdisk-component"),P=({data:e={},compact:t,inactive:s,showPopup:a,onShowPopup:i,onHidePopup:l,progressBarClassName:d,delayClose:u,delayOpen:c})=>{const m=w(e);return(0,D.jsx)(r.P,{showPopup:a,onShowPopup:i,onHidePopup:l,popupContent:(0,D.jsx)(C,{data:e}),offset:[0,5],delayClose:u,delayOpen:c,children:(0,D.jsx)("div",{className:j(),children:(0,D.jsx)(o.E,{to:m,className:j("content"),children:(0,D.jsx)(n.V,{diskAllocatedPercent:e.AllocatedPercent,severity:e.Severity,compact:t,inactive:s,className:d})})})})}},78762:(e,t,s)=>{s.d(t,{pt:()=>ae,SH:()=>q,fr:()=>B,uk:()=>z,Bg:()=>J,Nh:()=>G,ID:()=>$,fR:()=>Y,iX:()=>F,Vz:()=>X,H:()=>Z,_E:()=>R,eT:()=>L,wN:()=>se,kv:()=>_,pH:()=>H,OX:()=>V,ui:()=>te,DH:()=>ee,oz:()=>K,qp:()=>Q,jl:()=>O,Rn:()=>W});var a=s(4557),n=s(40336),r=s(7435),o=s(77506),i=s(76086),l=s(56839),d=s(16439),u=s(41650),c=s(71661),m=s(73473),p=s(63291),h=s(29819),g=s(31684),v=s(78034),f=s(10508),S=s(80176),k=s(60712);const N=({node:e,getNodeRef:t,database:s,statusForIcon:a})=>{if(!e.Host)return(0,k.jsx)("span",{children:"\u2014"});const n="ConnectStatus"===a?e.ConnectStatus:e.SystemState,r=!(0,v.X7)(e);let o;if(t){const s=t(e);o=s?(0,g.Un)(s):void 0}else if(e.NodeId){const t=(0,g.Kx)(e.NodeId);o=(0,g.Un)(t)}const i=r?(0,h.vI)(e.NodeId,{database:null!==s&&void 0!==s?s:e.TenantName},e.TenantName?"tablets":"storage"):void 0;return(0,k.jsx)(c.s,{disabled:!r,content:(0,k.jsx)(S.p,{data:e,nodeHref:o}),placement:["top","bottom"],behavior:p.m.Immediate,delayClosing:200,children:(0,k.jsx)(f.c,{name:e.Host,status:n,path:i,hasClipboardButton:!0})})};var y=s(48295),b=s(15132),x=s(52905),w=s(58267);const D=(0,o.cn)("tablets-statistic"),I=({tablets:e=[],database:t,nodeId:s})=>{const a=(e=>e.map((e=>({label:(0,i.bk)(e.Type),type:e.Type,count:e.Count,state:(0,w.P)(e.State)}))).sort(((e,t)=>String(e.label).localeCompare(String(t.label)))))(e);return(0,k.jsx)("div",{className:D(),children:a.map(((e,a)=>{var n;const r=(0,h.vI)(s,{database:t},"tablets"),o=`${e.label}: ${e.count}`,i=D("tablet",{state:null===(n=e.state)||void 0===n?void 0:n.toLowerCase()});return(0,k.jsx)(x.N_,{to:r,className:i,children:o},a)}))})};var C=s(41826),j=s(13342),P=s(86782),A=s(31911),E=s(73891);function T(e){return(0,E.Xo)((0,E.Jc)(e,1))}function U(e){const t=(0,E.Jc)(e,1);return(Number(t)<=0?"":"+")+(0,E.Xo)(t)}const M=(0,o.cn)("ydb-nodes-columns");function R(){return{name:P.vg.NodeId,header:"#",width:80,resizeMinWidth:80,render:({row:e})=>e.NodeId,align:a.Ay.RIGHT}}function G({getNodeRef:e,database:t},{statusForIcon:s="SystemState"}={}){return{name:P.vg.Host,header:P.uG.Host,render:({row:a})=>(0,k.jsx)(N,{node:a,getNodeRef:e,database:t,statusForIcon:s}),width:350,align:a.Ay.LEFT}}function L(){return{name:P.vg.NodeName,header:P.uG.NodeName,align:a.Ay.LEFT,render:({row:e})=>e.NodeName||i.Pd,width:200}}function z(){return{name:P.vg.DC,header:P.uG.DC,align:a.Ay.LEFT,render:({row:e})=>e.DC||i.Pd,width:60}}function V(){return{name:P.vg.Rack,header:P.uG.Rack,align:a.Ay.LEFT,render:({row:e})=>e.Rack||i.Pd,width:100}}function W(){return{name:P.vg.Version,header:P.uG.Version,width:200,align:a.Ay.LEFT,render:({row:e})=>(0,k.jsx)(c.s,{content:e.Version,children:e.Version})}}function O(){return{name:P.vg.Uptime,header:P.uG.Uptime,sortAccessor:({StartTime:e})=>e?-e:0,render:({row:e})=>(0,k.jsx)(C.p,{StartTime:e.StartTime,DisconnectTime:e.DisconnectTime}),align:a.Ay.RIGHT,width:120}}function H(){return{name:P.vg.RAM,header:P.uG.RAM,sortAccessor:({MemoryUsed:e=0})=>Number(e),defaultOrder:a.Ay.DESCENDING,render:({row:e})=>{const[t,s]=(0,u.kf)(e.MemoryUsed)&&(0,u.kf)(e.MemoryLimit)?(0,l.j9)(Number(e.MemoryUsed),Number(e.MemoryLimit),"gb",void 0,!0):[0,0];return(0,k.jsx)(c.s,{placement:["top","auto"],fullWidth:!0,content:(0,k.jsxs)(n.u,{responsive:!0,children:[(0,k.jsx)(n.u.Item,{name:(0,A.A)("field_memory-used"),children:t}),(0,k.jsx)(n.u.Item,{name:(0,A.A)("field_memory-limit"),children:s})]}),children:(0,k.jsx)(b.O,{value:e.MemoryUsed,capacity:e.MemoryLimit,formatValues:(e,t)=>(0,l.j9)(e,t,"gb",void 0,!0),className:M("column-ram"),colorizeProgress:!0,hideCapacity:!0})})},align:a.Ay.LEFT,width:80,resizeMinWidth:40}}function F(){return{name:P.vg.Memory,header:P.uG.Memory,defaultOrder:a.Ay.DESCENDING,render:({row:e})=>e.MemoryStats?(0,k.jsx)(m.S,{formatValues:l.vX,stats:e.MemoryStats}):(0,k.jsx)(b.O,{value:e.MemoryUsed,capacity:e.MemoryLimit,formatValues:l.vX,colorizeProgress:!0}),align:a.Ay.LEFT,width:300,resizeMinWidth:170}}function _(){return{name:P.vg.Pools,header:P.uG.Pools,sortAccessor:({PoolStats:e=[]})=>Math.max(...e.map((({Usage:e})=>Number(e)))),defaultOrder:a.Ay.DESCENDING,render:({row:e})=>e.PoolStats?(0,k.jsx)(y._,{pools:e.PoolStats}):i.Pd,align:a.Ay.LEFT,width:80,resizeMinWidth:60}}function B(){return{name:P.vg.CPU,header:P.uG.CPU,sortAccessor:({PoolStats:e=[]})=>Math.max(...e.map((({Usage:e})=>Number(e)))),defaultOrder:a.Ay.DESCENDING,render:({row:e})=>{if(!e.PoolStats)return i.Pd;let t=(0,u.kf)(e.CoresUsed)&&(0,u.kf)(e.CoresTotal)?e.CoresUsed/e.CoresTotal:void 0;if(void 0===t){let s=0;t=e.PoolStats.reduce(((e,t)=>(s+=Number(t.Threads),e+Number(t.Usage)*Number(t.Threads))),0),t/=s}return(0,k.jsx)(c.s,{placement:["top","auto"],fullWidth:!0,content:(0,k.jsx)(n.u,{responsive:!0,children:e.PoolStats.map((e=>(0,u.kf)(e.Usage)?(0,k.jsx)(n.u.Item,{name:e.Name,children:(0,S.Qz)("Usage",e.Usage).value},e.Name):null))}),children:(0,k.jsx)(b.O,{className:M("column-cpu"),value:t,capacity:1,colorizeProgress:!0,percents:!0})})},align:a.Ay.LEFT,width:80,resizeMinWidth:40}}function $(){return{name:P.vg.LoadAverage,header:P.uG.LoadAverage,sortAccessor:({LoadAveragePercents:e=[]})=>e[0],defaultOrder:a.Ay.DESCENDING,render:({row:e})=>(0,k.jsx)(b.O,{value:e.LoadAveragePercents&&e.LoadAveragePercents.length>0?e.LoadAveragePercents[0]:void 0,percents:!0,colorizeProgress:!0,capacity:100}),align:a.Ay.LEFT,width:170,resizeMinWidth:170}}function Y(){return{name:P.vg.Load,header:P.uG.Load,sortAccessor:({LoadAveragePercents:e=[]})=>e[0],defaultOrder:a.Ay.DESCENDING,render:({row:e})=>e.LoadAveragePercents&&e.LoadAveragePercents.length>0?(0,k.jsx)(j.U,{value:e.LoadAveragePercents[0].toFixed(),theme:(0,d.f)(e.LoadAveragePercents[0])}):i.Pd,align:a.Ay.LEFT,width:80,resizeMinWidth:70}}function J(){return{name:P.vg.DiskSpaceUsage,header:P.uG.DiskSpaceUsage,render:({row:e})=>(0,r.f8)(e.DiskSpaceUsage)?(0,k.jsx)(j.U,{value:Math.floor(e.DiskSpaceUsage),theme:(0,d.f)(e.DiskSpaceUsage)}):i.Pd,align:a.Ay.LEFT,width:115,resizeMinWidth:75}}function K(){return{name:P.vg.TotalSessions,header:P.uG.TotalSessions,render:({row:e})=>{var t;return null!==(t=e.TotalSessions)&&void 0!==t?t:i.Pd},align:a.Ay.RIGHT,width:100}}function Q({database:e}){return{name:P.vg.Tablets,header:P.uG.Tablets,width:500,resizeMinWidth:500,render:({row:t})=>t.Tablets?(0,k.jsx)(I,{database:null!==e&&void 0!==e?e:t.TenantName,nodeId:t.NodeId,tablets:t.Tablets}):i.Pd,align:a.Ay.LEFT,sortable:!1}}function X(){return{name:P.vg.Missing,header:P.uG.Missing,render:({row:e})=>e.Missing,align:a.Ay.CENTER,defaultOrder:a.Ay.DESCENDING}}function q(){return{name:P.vg.Connections,header:P.uG.Connections,render:({row:e})=>(0,u.kf)(e.Connections)?e.Connections:i.Pd,align:a.Ay.RIGHT,width:130}}function Z(){return{name:P.vg.NetworkUtilization,header:P.uG.NetworkUtilization,render:({row:e})=>{const{NetworkUtilization:t,NetworkUtilizationMin:s=0,NetworkUtilizationMax:a=0}=e;return(0,u.kf)(t)?(0,k.jsx)(c.s,{placement:["top","auto"],fullWidth:!0,content:(0,k.jsxs)(n.u,{responsive:!0,children:[(0,k.jsx)(n.u.Item,{name:(0,A.A)("sum"),children:(0,l.l9)(t)},"NetworkUtilization"),(0,k.jsx)(n.u.Item,{name:(0,A.A)("min"),children:(0,l.l9)(s)},"NetworkUtilizationMin"),(0,k.jsx)(n.u.Item,{name:(0,A.A)("max"),children:(0,l.l9)(a)},"NetworkUtilizationMax")]}),children:(0,l.l9)(t)}):i.Pd},align:a.Ay.RIGHT,width:110}}function ee(){return{name:P.vg.SendThroughput,header:P.uG.SendThroughput,render:({row:e})=>(0,u.kf)(e.SendThroughput)?(0,u.O4)(e.SendThroughput):i.Pd,align:a.Ay.RIGHT,width:110}}function te(){return{name:P.vg.ReceiveThroughput,header:P.uG.ReceiveThroughput,render:({row:e})=>(0,u.kf)(e.ReceiveThroughput)?(0,u.O4)(e.ReceiveThroughput):i.Pd,align:a.Ay.RIGHT,width:110}}function se(){return{name:P.vg.PingTime,header:P.uG.PingTime,render:({row:e})=>{const{PingTimeUs:t,PingTimeMinUs:s=0,PingTimeMaxUs:a=0}=e;return(0,u.kf)(t)?(0,k.jsx)(c.s,{placement:["top","auto"],fullWidth:!0,content:(0,k.jsxs)(n.u,{responsive:!0,children:[(0,k.jsx)(n.u.Item,{name:(0,A.A)("avg"),children:T(t)},"PingTimeUs"),(0,k.jsx)(n.u.Item,{name:(0,A.A)("min"),children:T(s)},"PingTimeMinUs"),(0,k.jsx)(n.u.Item,{name:(0,A.A)("max"),children:T(a)},"PingTimeMaxUs")]}),children:T(t)}):i.Pd},align:a.Ay.RIGHT,width:110}}function ae(){return{name:P.vg.ClockSkew,header:P.uG.ClockSkew,render:({row:e})=>{const{ClockSkewUs:t,ClockSkewMinUs:s=0,ClockSkewMaxUs:a=0}=e;return(0,u.kf)(t)?(0,k.jsx)(c.s,{placement:["top","auto"],fullWidth:!0,content:(0,k.jsxs)(n.u,{responsive:!0,children:[(0,k.jsx)(n.u.Item,{name:(0,A.A)("avg"),children:U(t)},"ClockSkewUs"),(0,k.jsx)(n.u.Item,{name:(0,A.A)("min"),children:U(s)},"ClockSkewMinUs"),(0,k.jsx)(n.u.Item,{name:(0,A.A)("max"),children:U(a)},"ClockSkewMaxUs")]}),children:U(t)}):i.Pd},align:a.Ay.RIGHT,width:110}}},86782:(e,t,s)=>{s.d(t,{fN:()=>c,kU:()=>p,kn:()=>u,sp:()=>h,uG:()=>l,vg:()=>r,xd:()=>i,zO:()=>n});var a=s(31911);const n="nodesTableColumnsWidth",r={NodeId:"NodeId",Host:"Host",Database:"Database",NodeName:"NodeName",DC:"DC",Rack:"Rack",Version:"Version",Uptime:"Uptime",Memory:"Memory",RAM:"RAM",CPU:"CPU",Pools:"Pools",LoadAverage:"LoadAverage",Load:"Load",DiskSpaceUsage:"DiskSpaceUsage",TotalSessions:"TotalSessions",Connections:"Connections",NetworkUtilization:"NetworkUtilization",SendThroughput:"SendThroughput",ReceiveThroughput:"ReceiveThroughput",PingTime:"PingTime",ClockSkew:"ClockSkew",Missing:"Missing",Tablets:"Tablets",PDisks:"PDisks"},o=["Pools","Memory"];function i(e){return o.includes(e)}const l={get NodeId(){return(0,a.A)("node-id")},get Host(){return(0,a.A)("host")},get Database(){return(0,a.A)("database")},get NodeName(){return(0,a.A)("node-name")},get DC(){return(0,a.A)("dc")},get Rack(){return(0,a.A)("rack")},get Version(){return(0,a.A)("version")},get Uptime(){return(0,a.A)("uptime")},get Memory(){return(0,a.A)("memory")},get RAM(){return(0,a.A)("ram")},get Pools(){return(0,a.A)("pools")},get CPU(){return(0,a.A)("cpu")},get LoadAverage(){return(0,a.A)("load-average")},get Load(){return(0,a.A)("load")},get DiskSpaceUsage(){return(0,a.A)("disk-usage")},get TotalSessions(){return(0,a.A)("sessions")},get Connections(){return(0,a.A)("connections")},get NetworkUtilization(){return(0,a.A)("utilization")},get SendThroughput(){return(0,a.A)("send")},get ReceiveThroughput(){return(0,a.A)("receive")},get PingTime(){return(0,a.A)("ping")},get ClockSkew(){return(0,a.A)("skew")},get Missing(){return(0,a.A)("missing")},get Tablets(){return(0,a.A)("tablets")},get PDisks(){return(0,a.A)("pdisks")}},d={get NodeId(){return(0,a.A)("node-id")},get Host(){return(0,a.A)("host")},get NodeName(){return(0,a.A)("node-name")},get Database(){return(0,a.A)("database")},get DiskSpaceUsage(){return(0,a.A)("disk-usage")},get DC(){return(0,a.A)("dc")},get Rack(){return(0,a.A)("rack")},get Missing(){return(0,a.A)("missing")},get Uptime(){return(0,a.A)("uptime")},get Version(){return(0,a.A)("version")},get SystemState(){return(0,a.A)("system-state")},get ConnectStatus(){return(0,a.A)("connect-status")},get NetworkUtilization(){return(0,a.A)("network-utilization")},get ClockSkew(){return(0,a.A)("clock-skew")},get PingTime(){return(0,a.A)("ping-time")}};function u(e){return d[e]}const c={NodeId:["NodeId"],Host:["Host","Rack","Database","SystemState"],Database:["Database"],NodeName:["NodeName"],DC:["DC"],Rack:["Rack"],Version:["Version"],Uptime:["Uptime","DisconnectTime"],Memory:["Memory","MemoryDetailed"],RAM:["Memory"],Pools:["CPU"],CPU:["CPU"],LoadAverage:["LoadAverage"],Load:["LoadAverage"],DiskSpaceUsage:["DiskSpaceUsage"],TotalSessions:["SystemState"],Connections:["Connections"],NetworkUtilization:["NetworkUtilization"],SendThroughput:["SendThroughput"],ReceiveThroughput:["ReceiveThroughput"],PingTime:["PingTime"],ClockSkew:["ClockSkew"],Missing:["Missing"],Tablets:["Tablets","Database"],PDisks:["PDisks"]},m={NodeId:"NodeId",Host:"Host",Database:"Database",NodeName:"NodeName",DC:"DC",Rack:"Rack",Version:"Version",Uptime:"Uptime",Memory:"Memory",RAM:"Memory",CPU:"CPU",Pools:"CPU",LoadAverage:"LoadAverage",Load:"LoadAverage",DiskSpaceUsage:"DiskSpaceUsage",TotalSessions:void 0,Connections:"Connections",NetworkUtilization:"NetworkUtilization",SendThroughput:"SendThroughput",ReceiveThroughput:"ReceiveThroughput",PingTime:"PingTime",ClockSkew:"ClockSkew",Missing:"Missing",Tablets:void 0,PDisks:void 0};function p(e){return m[e]}function h(e){return Boolean(p(e))}},31911:(e,t,s)=>{s.d(t,{A:()=>r});var a=s(48372);const n=JSON.parse('{"node-id":"Node ID","host":"Host","database":"Database","node-name":"Node Name","dc":"DC","rack":"Rack","version":"Version","uptime":"Uptime","memory":"Detailed Memory","ram":"RAM","cpu":"CPU","pools":"Pools","disk-usage":"Disk Usage","tablets":"Tablets","load-average":"Load Average","load":"Load","sessions":"Sessions","missing":"Missing","pdisks":"PDisks","field_memory-used":"Memory used","field_memory-limit":"Memory limit","system-state":"System State","connect-status":"Connect Status","utilization":"Utilization","network-utilization":"Network Utilization","connections":"Connections","clock-skew":"Clock Skew","skew":"Skew","ping-time":"Ping Time","ping":"Ping","send":"Send","receive":"Receive","max":"Max","min":"Min","avg":"Avg","sum":"Sum"}'),r=(0,a.g4)("ydb-nodes-columns",{en:n})},10576:(e,t,s)=>{s.d(t,{E:()=>g});var a=s(59284),n=s(88226),r=s(13096),o=s(44294),i=s(96927),l=s(8809),d=s(92459),u=s(7435),c=s(77506),m=s(3218),p=s(60712);const h=(0,c.cn)("pdisk-storage"),g=({data:e={},vDisks:t,showPopup:s,onShowPopup:c,onHidePopup:g,className:v,progressBarClassName:f,viewContext:S})=>{const{NodeId:k,PDiskId:N}=e,y=(0,u.f8)(k)&&(0,u.f8)(N),b=a.useRef(null);let x;return y&&(x=(0,d.Ck)(N,k)),(0,p.jsxs)("div",{className:h(null,v),ref:b,children:[null!==t&&void 0!==t&&t.length?(0,p.jsx)("div",{className:h("vdisks"),children:t.map((e=>(0,p.jsx)("div",{className:h("vdisks-item"),style:{flexGrow:Number(e.AllocatedSize)||1},children:(0,p.jsx)(l.y,{data:e,inactive:!(0,m.OH)(e,S),compact:!0,delayClose:200,delayOpen:200})},e.StringifiedId)))}):null,(0,p.jsx)(r.P,{showPopup:s,offset:[0,5],anchorRef:b,onShowPopup:c,onHidePopup:g,popupContent:(0,p.jsx)(i.O,{data:e}),delayClose:200,children:(0,p.jsxs)(o.E,{to:x,className:h("content"),children:[(0,p.jsx)(n.V,{diskAllocatedPercent:e.AllocatedPercent,severity:e.Severity,className:f}),(0,p.jsx)("div",{className:h("media-type"),children:e.Type})]})})]})}},99936:(e,t,s)=>{s.d(t,{z:()=>Ve});var a=s(12888),n=s(59284),r=s(79553),o=s(98167),i=s(89073),l=s(67028),d=s(10174),u=s(90182),c=s(69775),m=s(98089),p=s(24555),h=s(53755),g=s(41775),v=s(64934),f=s(10360),S=s(370),k=s(86782);const N=["NodeId","Host","Uptime","CPU","RAM","PDisks"],y=["NodeId"],b=["Host","DC","Rack","Version","Uptime","Missing","DiskSpaceUsage"],x=b.map((e=>({value:e,content:(0,k.kn)(e)}))),w=S.z.custom((e=>b.includes(e))).catch(void 0);var D=s(44433);const I={all:"all",missing:"missing",space:"space"},C={groups:"groups",nodes:"nodes"};var j=s(60712);const P={[C.groups]:"Groups",[C.nodes]:"Nodes"},A=({value:e,onChange:t})=>(0,j.jsxs)(D.a,{value:e,onUpdate:t,qa:"storage-type-filter",children:[(0,j.jsx)(D.a.Option,{value:C.groups,children:P[C.groups]}),(0,j.jsx)(D.a.Option,{value:C.nodes,children:P[C.nodes]})]}),E={[I.all]:"All",[I.missing]:"Degraded",[I.space]:"Out of Space"},T=({value:e,onChange:t})=>(0,j.jsxs)(D.a,{value:e,onUpdate:t,qa:"storage-visible-entities-filter",children:[(0,j.jsx)(D.a.Option,{value:I.missing,children:E[I.missing]}),(0,j.jsx)(D.a.Option,{value:I.space,children:E[I.space]}),(0,j.jsx)(D.a.Option,{value:I.all,children:E[I.all]})]});var U=s(48372);const M=JSON.parse('{"groups":"Groups","nodes":"Nodes","controls_groups-search-placeholder":"Group ID, Pool name","controls_nodes-search-placeholder":"Node ID, FQDN","controls_group-by-placeholder":"Group by:","no-nodes":"No such nodes","no-groups":"No such groups"}'),R=(0,U.g4)("ydb-storage",{en:M});var G=s(59109),L=s(44508),z=s(77506);const V=(0,z.cn)("global-storage"),W=e=>403===e.status?(0,j.jsx)(G.O,{position:"left"}):(0,j.jsx)(L.o,{error:e});var O=s(67087);const H=S.z.nativeEnum(I).catch(I.all),F=S.z.nativeEnum(C).catch(C.groups);var _=s(78034);function B(){var e;const[t,s]=(0,O.useQueryParams)({type:O.StringParam,visible:O.StringParam,search:O.StringParam,uptimeFilter:O.StringParam,storageNodesGroupBy:O.StringParam,storageGroupsGroupBy:O.StringParam}),a=F.parse(t.type),n=H.parse(t.visible),r=null!==(e=t.search)&&void 0!==e?e:"",o=_.Bm.parse(t.uptimeFilter),i=f.kY.parse(t.storageGroupsGroupBy),l=w.parse(t.storageNodesGroupBy),d=e=>{s({visible:e},"replaceIn")},u=e=>{s({uptimeFilter:e},"replaceIn")};return{storageType:a,visibleEntities:n,searchValue:r,nodesUptimeFilter:o,storageGroupsGroupByParam:i,storageNodesGroupByParam:l,handleTextFilterChange:e=>{s({search:e||void 0},"replaceIn")},handleVisibleEntitiesChange:d,handleStorageTypeChange:e=>{s({type:e},"replaceIn")},handleUptimeFilterChange:u,handleStorageGroupsGroupByParamChange:e=>{s({storageGroupsGroupBy:e},"replaceIn")},handleStorageNodesGroupByParamChange:e=>{s({storageNodesGroupBy:e},"replaceIn")},handleShowAllGroups:()=>{d("all")},handleShowAllNodes:()=>{d("all"),u(_.cW.All)}}}function $({withTypeSelector:e,withGroupBySelect:t,entitiesCountCurrent:s,entitiesCountTotal:r,entitiesLoading:o,columnsToSelect:i,handleSelectedColumnsUpdate:l}){const{searchValue:d,storageType:u,visibleEntities:v,storageGroupsGroupByParam:S,handleTextFilterChange:k,handleStorageTypeChange:N,handleVisibleEntitiesChange:y,handleStorageGroupsGroupByParamChange:b}=B(),x=(0,a.X)(),w=e&&x;return(0,j.jsxs)(n.Fragment,{children:[(0,j.jsx)(g.v,{value:d,onChange:k,placeholder:R("controls_groups-search-placeholder"),className:V("search")}),w&&(0,j.jsx)(A,{value:u,onChange:N}),t?null:(0,j.jsx)(T,{value:v,onChange:y}),(0,j.jsx)(c.O,{popupWidth:200,items:i,showStatus:!0,onUpdate:l,sortable:!1}),t?(0,j.jsxs)(n.Fragment,{children:[(0,j.jsx)(m.E,{variant:"body-2",children:R("controls_group-by-placeholder")}),(0,j.jsx)(p.l,{hasClear:!0,placeholder:"-",width:150,defaultValue:S?[S]:void 0,onUpdate:e=>{b(e[0])},options:f.SE})]}):null,(0,j.jsx)(h.T,{label:R("groups"),loading:o,total:r,current:s})]})}function Y({withTypeSelector:e,withGroupBySelect:t,entitiesCountCurrent:s,entitiesCountTotal:a,entitiesLoading:r,columnsToSelect:o,handleSelectedColumnsUpdate:i}){const{searchValue:l,storageType:d,visibleEntities:u,nodesUptimeFilter:f,storageNodesGroupByParam:S,handleTextFilterChange:k,handleStorageTypeChange:N,handleVisibleEntitiesChange:y,handleUptimeFilterChange:b,handleStorageNodesGroupByParamChange:w}=B();return(0,j.jsxs)(n.Fragment,{children:[(0,j.jsx)(g.v,{value:l,onChange:k,placeholder:R("controls_nodes-search-placeholder"),className:V("search")}),e&&(0,j.jsx)(A,{value:d,onChange:N}),t?null:(0,j.jsx)(T,{value:u,onChange:y}),t?null:(0,j.jsx)(v.j,{value:f,onChange:b}),(0,j.jsx)(c.O,{popupWidth:200,items:o,showStatus:!0,onUpdate:i,sortable:!1}),t?(0,j.jsxs)(n.Fragment,{children:[(0,j.jsx)(m.E,{variant:"body-2",children:R("controls_group-by-placeholder")}),(0,j.jsx)(p.l,{hasClear:!0,placeholder:"-",width:150,defaultValue:S?[S]:void 0,onUpdate:e=>{w(e[0])},options:x})]}):null,(0,j.jsx)(h.T,{label:R("nodes"),loading:r,total:a,current:s})]})}var J=s(40427),K=s(84476),Q=s(7889),X=s(78524);const q=JSON.parse('{"default_message":"Everything is fine!","default_button_label":"Show All"}'),Z=JSON.parse('{"default_message":"\u0412\u0441\u0451 \u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435!","default_button_label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u0435"}'),ee=(0,U.g4)("ydb-storage-empty-filter",{ru:Z,en:q}),te=({title:e,message:t=ee("default_message"),showAll:s=ee("default_button_label"),onShowAll:a})=>(0,j.jsx)(Q.p,{image:(0,j.jsx)(X.v,{name:"thumbsUp"}),position:"left",title:e,description:t,actions:a&&[(0,j.jsx)(K.$,{onClick:a,children:s},"show-all")]});var se=s(61456);const ae=({visibleEntities:e,onShowAll:t})=>{let s;return e===I.space&&(s=(0,se.A)("empty.out_of_space")),e===I.missing&&(s=(0,se.A)("empty.degraded")),s?(0,j.jsx)(te,{title:s,showAll:(0,se.A)("show_all"),onShowAll:t}):null};var ne=s(16029),re=s(69464),oe=s(40781);const ie=({columns:e,database:t,nodeId:s,groupId:a,pDiskId:r,filterGroup:i,filterGroupBy:d,searchValue:u,visibleEntities:c,onShowAll:m,parentRef:p,renderControls:h,renderErrorMessage:g,initialEntitiesCount:v})=>{const S=(0,l.Pm)(),k=(0,l.YA)(),N=(y=k,n.useCallback((async e=>{const{limit:t,offset:s,sortParams:a,filters:n,columnsIds:r}=e,{sortOrder:o,columnId:i}=null!==a&&void 0!==a?a:{},{searchValue:l,visibleEntities:d,database:u,nodeId:c,groupId:m,pDiskId:p,filterGroup:h,filterGroupBy:g}=null!==n&&void 0!==n?n:{},v=(0,f.GP)(i),S=v?(0,re.T)(v,o):void 0,k=(0,oe.R)(r,f.YX),{groups:N,found:b,total:x}=await(0,ne.t)({limit:t,offset:s,sort:S,filter:l,with:d,database:u,nodeId:c,groupId:m,pDiskId:p,filter_group:h,filter_group_by:g,fieldsRequired:k,shouldUseGroupsHandler:y});return{data:N||[],found:b||0,total:x||0}}),[y]));var y;const b=n.useMemo((()=>({searchValue:u,visibleEntities:c,database:t,nodeId:s,groupId:a,pDiskId:r,filterGroup:i,filterGroupBy:d})),[u,c,t,s,a,r,i,d]);return(0,j.jsx)(o.r,{loading:!S,children:(0,j.jsx)(J.k5,{columnsWidthLSKey:f.qK,parentRef:p,columns:e,fetchData:N,limit:50,initialEntitiesCount:v,renderControls:h,renderErrorMessage:g,renderEmptyDataMessage:()=>c!==I.all?(0,j.jsx)(ae,{onShowAll:m,visibleEntities:c}):(0,se.A)("empty.default"),filters:b,tableName:"storage-groups"})})};var le=s(43951),de=s(20831);function ue({visibleEntities:e,viewContext:t}){const s=(0,a.X)(),r=n.useMemo((()=>{const e=(0,de.J)({viewContext:t});return s?e:e.filter((e=>!(0,f.Ai)(e.name)))}),[s,t]),o=n.useMemo((()=>e===I.missing?[...f.LO,f.UW.Degraded]:e===I.space?[...f.LO,f.UW.DiskSpace]:f.LO),[e]);return(0,le.K)(r,f.zY,f.H6,f.hu,o)}var ce=s(71708),me=s(62710);function pe(e){const{storageGroupsGroupByParam:t,visibleEntities:s,handleShowAllGroups:a}=B(),r=(0,l.Pm)(),i=(0,l.SA)();n.useEffect((()=>{i&&"all"!==s&&a()}),[a,i,s]);return(0,j.jsx)(o.r,{loading:!r,children:i&&t?(0,j.jsx)(ge,{...e}):(0,j.jsx)(he,{...e})})}function he({database:e,nodeId:t,groupId:s,pDiskId:a,viewContext:n,parentRef:r,initialEntitiesCount:o}){const{searchValue:i,visibleEntities:d,handleShowAllGroups:u}=B(),c=(0,l.SA)(),{columnsToShow:m,columnsToSelect:p,setColumns:h}=ue({visibleEntities:d,viewContext:n});return(0,j.jsx)(ie,{database:e,nodeId:t,groupId:s,pDiskId:a,searchValue:i,visibleEntities:d,onShowAll:u,parentRef:r,renderControls:({totalEntities:e,foundEntities:t,inited:s})=>(0,j.jsx)($,{withTypeSelector:!0,withGroupBySelect:c,entitiesCountCurrent:t,entitiesCountTotal:e,entitiesLoading:!s,columnsToSelect:p,handleSelectedColumnsUpdate:h}),renderErrorMessage:W,columns:m,initialEntitiesCount:o})}function ge({database:e,nodeId:t,groupId:s,pDiskId:a,parentRef:n,viewContext:o}){const[l]=(0,u.Nt)(),{searchValue:c,storageGroupsGroupByParam:m,visibleEntities:p,handleShowAllGroups:h}=B(),{columnsToShow:g,columnsToSelect:v,setColumns:f}=ue({visibleEntities:p,viewContext:o}),{currentData:S,isFetching:k,error:N}=d.S.useGetStorageGroupsInfoQuery({database:e,with:"all",nodeId:t,groupId:s,pDiskId:a,filter:c,shouldUseGroupsHandler:!0,group:m},{pollingInterval:l}),y=void 0===S&&k,{tableGroups:b,found:x=0,total:w=0}=S||{},{expandedGroups:D,setIsGroupExpanded:I}=(0,me.$)(b);return(0,j.jsxs)(i.L,{children:[(0,j.jsx)(i.L.Controls,{children:(0,j.jsx)($,{withTypeSelector:!0,withGroupBySelect:!0,entitiesCountCurrent:x,entitiesCountTotal:w,entitiesLoading:y,columnsToSelect:v,handleSelectedColumnsUpdate:f})}),N?(0,j.jsx)(r.o,{error:N}):null,(0,j.jsx)(i.L.Table,{loading:y,className:V("groups-wrapper"),children:null!==b&&void 0!==b&&b.length?b.map((({name:r,count:o})=>{const i=D[r];return(0,j.jsx)(ce.Q,{title:r,count:o,entityName:R("groups"),expanded:i,onIsExpandedChange:I,children:(0,j.jsx)(ie,{database:e,parentRef:n,nodeId:t,groupId:s,pDiskId:a,filterGroup:r,filterGroupBy:m,searchValue:c,visibleEntities:"all",onShowAll:h,renderErrorMessage:W,columns:g,initialEntitiesCount:o})},r)})):R("no-groups")})]})}var ve=s(88655);const fe=JSON.parse('{"empty.default":"No such nodes","empty.out_of_space":"No nodes with out of space errors","empty.degraded":"No degraded nodes","empty.small_uptime":"No nodes with uptime < 1h","empty.several_filters":"No nodes match current filters combination","show_all":"Show all nodes"}'),Se=JSON.parse('{"empty.default":"\u041d\u0435\u0442 \u0443\u0437\u043b\u043e\u0432","empty.out_of_space":"\u041d\u0435\u0442 \u0443\u0437\u043b\u043e\u0432, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043a\u043e\u043d\u0447\u0430\u0435\u0442\u0441\u044f \u043c\u0435\u0441\u0442\u043e","empty.degraded":"\u041d\u0435\u0442 \u0434\u0435\u0433\u0440\u0430\u0434\u0438\u0440\u043e\u0432\u0430\u0432\u0448\u0438\u0445 \u0443\u0437\u043b\u043e\u0432","empty.small_uptime":"\u041d\u0435\u0442 \u0443\u0437\u043b\u043e\u0432 \u0441 uptime < 1h","empty.several_filters":"\u041d\u0435\u0442 \u0443\u0437\u043b\u043e\u0432, \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u043f\u043e\u0434 \u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u0444\u0438\u043b\u044c\u0442\u0440\u044b","show_all":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u0435 \u0443\u0437\u043b\u044b"}'),ke=(0,U.g4)("ydb-storage-nodes",{ru:Se,en:fe}),Ne=({visibleEntities:e,nodesUptimeFilter:t,onShowAll:s})=>{let a;return e===I.space&&(a=ke("empty.out_of_space")),e===I.missing&&(a=ke("empty.degraded")),t===_.cW.SmallUptime&&(a=ke("empty.small_uptime")),e!==I.all&&t!==_.cW.All&&(a=ke("empty.several_filters")),a?(0,j.jsx)(te,{title:a,showAll:ke("show_all"),onShowAll:s}):null};var ye=s(11905);const be=async e=>{const{type:t="static",storage:s=!0,limit:a,offset:n,sortParams:r,filters:o,columnsIds:i}=e,{searchValue:l,nodesUptimeFilter:d,visibleEntities:u,database:c,nodeId:m,groupId:p,filterGroup:h,filterGroupBy:g}=null!==o&&void 0!==o?o:{},{sortOrder:v,columnId:f}=null!==r&&void 0!==r?r:{},S=(0,k.kU)(f),N=S?(0,re.T)(S,v):void 0,y=(0,oe.R)(i,k.fN),b=await window.api.viewer.getNodes({type:t,storage:s,limit:a,offset:n,sort:N,filter:l,uptime:(0,_.Fo)(d),with:u,database:c,node_id:m,group_id:p,filter_group:h,filter_group_by:g,fieldsRequired:y}),x=(0,ye.rz)(b);return{data:x.nodes||[],found:x.found||0,total:x.total||0}},xe=(0,z.cn)("ydb-storage-nodes"),we=e=>xe("node",{unavailable:(0,_.X7)(e)}),De=({columns:e,database:t,nodeId:s,groupId:a,filterGroup:r,filterGroupBy:o,searchValue:i,visibleEntities:l,nodesUptimeFilter:d,onShowAll:u,parentRef:c,renderControls:m,renderErrorMessage:p,initialEntitiesCount:h})=>{const g=n.useMemo((()=>({searchValue:i,visibleEntities:l,nodesUptimeFilter:d,database:t,nodeId:s,groupId:a,filterGroup:r,filterGroupBy:o})),[i,l,d,t,s,a,r,o]);return(0,j.jsx)(J.k5,{columnsWidthLSKey:"storageNodesColumnsWidth",parentRef:c,columns:e,fetchData:be,rowHeight:51,limit:50,initialEntitiesCount:h,renderControls:m,renderErrorMessage:p,renderEmptyDataMessage:()=>l!==I.all||d!==_.cW.All?(0,j.jsx)(Ne,{onShowAll:u,nodesUptimeFilter:d,visibleEntities:l}):ke("empty.default"),getRowClassName:we,filters:g,tableName:"storage-nodes"})};var Ie=s(4557),Ce=s(78762),je=s(10576);const Pe=(0,z.cn)("ydb-storage-nodes-columns"),Ae="--maximum-slots",Ee="--maximum-disks",Te=({viewContext:e})=>({name:k.vg.PDisks,header:k.uG.PDisks,className:Pe("pdisks-column"),render:({row:t})=>{var s;const a={[Ae]:t.MaximumSlotsPerDisk,[Ee]:t.MaximumDisksPerNode};return(0,j.jsx)("div",{className:Pe("pdisks-wrapper"),style:a,children:null===(s=t.PDisks)||void 0===s?void 0:s.map((s=>{var a;const n=null===(a=t.VDisks)||void 0===a?void 0:a.filter((e=>e.PDiskId===s.PDiskId));return(0,j.jsx)("div",{className:Pe("pdisks-item"),children:(0,j.jsx)(je.E,{data:s,vDisks:n,viewContext:e})},s.PDiskId)}))})},align:Ie.Ay.CENTER,sortable:!1,resizeable:!1});function Ue({visibleEntities:e,database:t,additionalNodesProps:s,viewContext:a}){const r=n.useMemo((()=>(({database:e,additionalNodesProps:t,viewContext:s})=>{const a=null===t||void 0===t?void 0:t.getNodeRef;return[(0,Ce._E)(),(0,Ce.Nh)({getNodeRef:a,database:e}),(0,Ce.eT)(),(0,Ce.uk)(),(0,Ce.OX)(),(0,Ce.jl)(),(0,Ce.fr)(),(0,Ce.kv)(),(0,Ce.pH)(),(0,Ce.iX)(),(0,Ce.Bg)(),(0,Ce.Rn)(),(0,Ce.Vz)(),Te({viewContext:s})].map((e=>({...e,sortable:(0,k.sp)(e.name)})))})({database:t,additionalNodesProps:s,viewContext:a})),[t,s,a]),o=n.useMemo((()=>e===I.missing?[...y,k.vg.Missing]:y),[e]);return(0,le.K)(r,"storageNodesSelectedColumns",k.uG,N,o)}const Me=e=>{const{storageNodesGroupByParam:t,visibleEntities:s,nodesUptimeFilter:a,handleShowAllNodes:r}=B(),i=(0,l.Pm)(),d=(0,l.Ye)();n.useEffect((()=>{!d||"all"===s&&a===_.cW.All||r()}),[r,a,d,s]);return(0,j.jsx)(o.r,{loading:!i,children:d&&t?(0,j.jsx)(Ge,{...e}):(0,j.jsx)(Re,{...e})})};function Re({database:e,nodeId:t,groupId:s,viewContext:a,parentRef:n,initialEntitiesCount:r}){const{searchValue:o,visibleEntities:i,nodesUptimeFilter:d,handleShowAllNodes:u}=B(),c=(0,l.Ye)(),{columnsToShow:m,columnsToSelect:p,setColumns:h}=Le({database:e,viewContext:a});return(0,j.jsx)(De,{database:e,nodeId:t,groupId:s,searchValue:o,visibleEntities:i,nodesUptimeFilter:d,onShowAll:u,parentRef:n,renderControls:({totalEntities:e,foundEntities:t,inited:s})=>(0,j.jsx)(Y,{withTypeSelector:!0,withGroupBySelect:c,entitiesCountCurrent:t,entitiesCountTotal:e,entitiesLoading:!s,columnsToSelect:p,handleSelectedColumnsUpdate:h}),renderErrorMessage:W,columns:m,initialEntitiesCount:r})}function Ge({database:e,groupId:t,nodeId:s,viewContext:a,parentRef:n}){const[r]=(0,u.Nt)(),{searchValue:o,storageNodesGroupByParam:l,handleShowAllNodes:c}=B(),{columnsToShow:m,columnsToSelect:p,setColumns:h}=Le({database:e,viewContext:a}),{currentData:g,isFetching:v,error:f}=d.S.useGetStorageNodesInfoQuery({database:e,with:"all",filter:o,node_id:s,group_id:t,group:l},{pollingInterval:r}),S=void 0===g&&v,{tableGroups:k,found:N=0,total:y=0}=g||{},{expandedGroups:b,setIsGroupExpanded:x}=(0,me.$)(k);return(0,j.jsxs)(i.L,{children:[(0,j.jsx)(i.L.Controls,{children:(0,j.jsx)(Y,{withTypeSelector:!0,withGroupBySelect:!0,entitiesCountCurrent:N,entitiesCountTotal:y,entitiesLoading:S,columnsToSelect:p,handleSelectedColumnsUpdate:h})}),f?(0,j.jsx)(L.o,{error:f}):null,(0,j.jsx)(i.L.Table,{loading:S,className:V("groups-wrapper"),children:null!==k&&void 0!==k&&k.length?k.map((({name:a,count:r})=>{const i=b[a];return(0,j.jsx)(ce.Q,{title:a,count:r,entityName:R("nodes"),expanded:i,onIsExpandedChange:x,children:(0,j.jsx)(De,{database:e,parentRef:n,nodeId:s,groupId:t,searchValue:o,visibleEntities:"all",nodesUptimeFilter:_.cW.All,onShowAll:c,filterGroup:a,filterGroupBy:l,renderErrorMessage:W,columns:m,initialEntitiesCount:r})},a)})):R("no-nodes")})]})}function Le({database:e,viewContext:t}){const s=(0,ve.E)(),{visibleEntities:a}=B();return Ue({additionalNodesProps:s,visibleEntities:a,database:e,viewContext:t})}var ze=s(3218);const Ve=e=>{const{storageType:t}=B(),s=(0,a.X)();return"nodes"===t&&s?(0,j.jsx)(Me,{initialEntitiesCount:(0,ze.b0)(e.viewContext),...e}):(0,j.jsx)(pe,{initialEntitiesCount:(0,ze.QQ)(e.viewContext),...e})}},20831:(e,t,s)=>{s.d(t,{J:()=>oe,k:()=>re});var a=s(79879),n=s(4557),r=s(63291),o=s(47665),i=s(84375),l=s(99991),d=s(71661),u=s(44294),c=s(33775),m=s(13342),p=s(92459),h=s(7435),g=s(77506),v=s(76086),f=s(56839),S=s(16439),k=s(73891),N=s(41650),y=s(59284),b=s(69033),x=s(87184),w=s(8809),D=s(10576),I=s(3218),C=s(60712);const j=(0,g.cn)("ydb-storage-disks");function P({vDisks:e=[],viewContext:t,erasure:s}){const[a,n]=y.useState(),r=(0,I.Ep)(e,s),{theme:{spaceBaseSize:o}}=(0,b.L)();if(!e.length)return null;const i=(300-o*(e.length-1))/e.length;return(0,C.jsxs)("div",{className:j(null),children:[(0,C.jsx)(x.s,{direction:"row",gap:1,grow:!0,style:{width:300},children:null===e||void 0===e?void 0:e.map(((e,s)=>(0,C.jsx)(A,{vDisk:e,inactive:!(0,I.OH)(e,t),highlightedVDisk:a,setHighlightedVDisk:n,unavailableVDiskWidth:i},e.StringifiedId||s)))}),(0,C.jsx)("div",{className:j("pdisks-wrapper"),children:null===e||void 0===e?void 0:e.map(((e,t)=>{var s;return(0,C.jsx)(E,{vDisk:e,highlightedVDisk:a,setHighlightedVDisk:n,withDCMargin:r.includes(t)},(null===e||void 0===e||null===(s=e.PDisk)||void 0===s?void 0:s.StringifiedId)||t)}))})]})}function A({vDisk:e,highlightedVDisk:t,inactive:s,setHighlightedVDisk:a,unavailableVDiskWidth:n}){const r={...e,PDisk:void 0},o=e.StringifiedId,i=(0,N.kf)(r.AllocatedSize)?void 0:n,l=Number(r.AllocatedSize)||1;return(0,C.jsx)("div",{style:{flexGrow:l,minWidth:i},className:j("vdisk-item"),children:(0,C.jsx)(w.y,{data:r,compact:!0,inactive:s,showPopup:t===o,onShowPopup:()=>a(o),onHidePopup:()=>a(void 0),progressBarClassName:j("vdisk-progress-bar")})})}function E({vDisk:e,highlightedVDisk:t,setHighlightedVDisk:s,withDCMargin:a}){const n=e.StringifiedId;return e.PDisk?(0,C.jsx)(D.E,{className:j("pdisk-item",{"with-dc-margin":a}),progressBarClassName:j("pdisk-progress-bar"),data:e.PDisk,showPopup:t===n,onShowPopup:()=>s(n),onHidePopup:()=>s(void 0)}):null}var T=s(7187);const U="--ydb-stack-level",M=(0,g.cn)("stack"),R=({children:e,className:t})=>(0,C.jsx)("div",{className:M(null,t),children:y.Children.map(e,((e,t)=>y.isValidElement(e)?(0,C.jsx)("div",{className:M("layer"),style:{[U]:t},children:e}):null))});function G({data:e,className:t,stackClassName:s,...a}){const{Donors:n,...r}=e||{},o=n&&n.length>0?(0,C.jsxs)(R,{className:s,children:[(0,C.jsx)(w.y,{data:r,...a}),n.map((e=>{const t=(0,T.NJ)(e);return(0,C.jsx)(w.y,{data:e,...a},(0,f.U9)(t?e.VDiskId:e))}))]}):(0,C.jsx)(w.y,{data:e,...a});return(0,C.jsx)("div",{className:t,children:o})}const L=(0,g.cn)("ydb-storage-vdisks");function z({vDisks:e,viewContext:t,erasure:s}){const a=(0,I.Ep)(e,s);return(0,C.jsx)("div",{className:L("wrapper"),children:null===e||void 0===e?void 0:e.map(((e,s)=>(0,C.jsx)(G,{data:e,inactive:!(0,I.OH)(e,t),className:L("item",{"with-dc-margin":a.includes(s)})},e.StringifiedId)))})}var V=s(61456),W=s(10360);const O=(0,g.cn)("ydb-storage-groups-columns"),H={name:W.UW.PoolName,header:W.H6.PoolName,width:250,render:({row:e})=>e.PoolName?(0,C.jsx)(d.s,{content:e.PoolName,placement:["right"],behavior:r.m.Immediate,className:O("pool-name-wrapper"),children:(0,C.jsx)("span",{className:O("pool-name"),children:e.PoolName})}):v.Pd,align:n.Ay.LEFT},F={name:W.UW.MediaType,header:W.H6.MediaType,width:100,resizeMinWidth:100,align:n.Ay.LEFT,render:({row:e})=>(0,C.jsxs)("div",{children:[(0,C.jsx)(o.J,{children:e.MediaType||"\u2014"}),"\xa0",e.Encryption&&(0,C.jsx)(i.A,{content:(0,V.A)("encrypted"),placement:"right",behavior:r.m.Immediate,children:(0,C.jsx)(o.J,{children:(0,C.jsx)(l.I,{data:a.A,size:18})})})]}),sortable:!1},_={name:W.UW.Erasure,header:W.H6.Erasure,width:100,sortAccessor:e=>e.ErasureSpecies,render:({row:e})=>e.ErasureSpecies?e.ErasureSpecies:"-",align:n.Ay.LEFT},B={name:W.UW.Degraded,header:W.H6.Degraded,width:110,resizeMinWidth:110,render:({row:e})=>e.Degraded?(0,C.jsxs)(o.J,{theme:(0,I.k_)(e),children:["Degraded: ",e.Degraded]}):"-",align:n.Ay.LEFT,defaultOrder:n.Ay.DESCENDING},$={name:W.UW.State,header:W.H6.State,width:150,render:({row:e})=>{var t;return null!==(t=e.State)&&void 0!==t?t:v.Pd},align:n.Ay.LEFT,defaultOrder:n.Ay.DESCENDING},Y={name:W.UW.Usage,header:W.H6.Usage,width:85,resizeMinWidth:75,render:({row:e})=>(0,h.f8)(e.Usage)?(0,C.jsx)(m.U,{value:Math.floor(e.Usage),theme:(0,S.f)(e.Usage)}):v.Pd,align:n.Ay.LEFT},J={name:W.UW.DiskSpaceUsage,header:W.H6.DiskSpaceUsage,width:115,resizeMinWidth:75,render:({row:e})=>(0,h.f8)(e.DiskSpaceUsage)?(0,C.jsx)(m.U,{value:Math.floor(e.DiskSpaceUsage),theme:(0,S.f)(e.DiskSpaceUsage)}):v.Pd,align:n.Ay.LEFT},K={name:W.UW.GroupId,header:W.H6.GroupId,width:130,render:({row:e})=>e.GroupId?(0,C.jsx)(u.E,{className:O("group-id"),to:(0,p._g)(e.GroupId),children:e.GroupId}):"-",sortAccessor:e=>Number(e.GroupId),align:n.Ay.RIGHT},Q={name:W.UW.Used,header:W.H6.Used,width:100,render:({row:e})=>(0,N.wb)(e.Used,!0),align:n.Ay.RIGHT},X={name:W.UW.Limit,header:W.H6.Limit,width:100,render:({row:e})=>(0,N.wb)(e.Limit),align:n.Ay.RIGHT},q={name:W.UW.DiskSpace,header:W.H6.DiskSpace,width:70,render:({row:e})=>(0,C.jsx)(c.k,{status:e.DiskSpace}),align:n.Ay.CENTER},Z={name:W.UW.Read,header:W.H6.Read,width:100,render:({row:e})=>e.Read?(0,N.O4)(e.Read):"-",align:n.Ay.RIGHT},ee={name:W.UW.Write,header:W.H6.Write,width:100,render:({row:e})=>e.Write?(0,N.O4)(e.Write):"-",align:n.Ay.RIGHT},te={name:W.UW.Latency,header:W.H6.Latency,width:100,render:({row:e})=>(0,h.f8)(e.LatencyPutTabletLogMs)?(0,k.Xo)(e.LatencyPutTabletLogMs):v.Pd,align:n.Ay.RIGHT},se={name:W.UW.AllocationUnits,header:W.H6.AllocationUnits,width:150,render:({row:e})=>(0,h.f8)(e.AllocationUnits)?(0,f.ZV)(e.AllocationUnits):v.Pd,align:n.Ay.RIGHT},ae=e=>({name:W.UW.VDisks,header:W.H6.VDisks,className:O("vdisks-column"),render:({row:t})=>(0,C.jsx)(z,{vDisks:t.VDisks,viewContext:null===e||void 0===e?void 0:e.viewContext,erasure:t.ErasureSpecies}),align:n.Ay.CENTER,width:780,resizeable:!1,sortable:!1}),ne=e=>({name:W.UW.VDisksPDisks,header:W.H6.VDisksPDisks,className:O("disks-column"),render:({row:t})=>(0,C.jsx)(P,{vDisks:t.VDisks,viewContext:null===e||void 0===e?void 0:e.viewContext,erasure:t.ErasureSpecies}),align:n.Ay.CENTER,width:900,resizeable:!1,sortable:!1}),re=()=>[K,F,_,Y,Q,X].map((e=>({...e,sortable:!1}))),oe=e=>[K,H,F,_,B,$,Y,J,Q,X,q,Z,ee,te,se,ae(e),ne(e)].map((e=>({...e,sortable:(0,W.i4)(e.name)})))},10360:(e,t,s)=>{s.d(t,{hu:()=>m,YX:()=>k,LO:()=>p,UW:()=>d,H6:()=>h,qK:()=>i,SE:()=>f,zY:()=>l,GP:()=>y,Ai:()=>c,i4:()=>b,kY:()=>S});var a=s(370),n=s(48372);const r=JSON.parse('{"pool-name":"Pool Name","type":"Type","encryption":"Encryption","erasure":"Erasure","degraded":"Degraded","missing-disks":"Missing Disks","state":"State","usage":"Usage","disk-usage":"Disk usage","group-id":"Group ID","used":"Used","limit":"Limit","space":"Space","read":"Read","write":"Write","latency":"Latency","allocation-units":"Allocation Units","vdisks":"VDisks","vdisks-pdisks":"VDisks with PDisks"}'),o=(0,n.g4)("ydb-storage-groups-columns",{en:r}),i="storageGroupsColumnsWidth",l="storageGroupsSelectedColumns",d={GroupId:"GroupId",PoolName:"PoolName",MediaType:"MediaType",Erasure:"Erasure",Used:"Used",Limit:"Limit",Usage:"Usage",DiskSpaceUsage:"DiskSpaceUsage",DiskSpace:"DiskSpace",Read:"Read",Write:"Write",Latency:"Latency",AllocationUnits:"AllocationUnits",VDisks:"VDisks",VDisksPDisks:"VDisksPDisks",Degraded:"Degraded",State:"State"},u=["DiskSpaceUsage","Latency","AllocationUnits","VDisksPDisks"];function c(e){return u.includes(e)}const m=["GroupId","PoolName","Erasure","Used","VDisks"],p=["GroupId"],h={get PoolName(){return o("pool-name")},get MediaType(){return o("type")},get Erasure(){return o("erasure")},get GroupId(){return o("group-id")},get Used(){return o("used")},get Limit(){return o("limit")},get Usage(){return o("usage")},get DiskSpaceUsage(){return o("disk-usage")},get DiskSpace(){return o("space")},get Read(){return o("read")},get Write(){return o("write")},get Latency(){return o("latency")},get AllocationUnits(){return o("allocation-units")},get VDisks(){return o("vdisks")},get VDisksPDisks(){return o("vdisks-pdisks")},get Degraded(){return o("missing-disks")},get State(){return o("state")}},g={get GroupId(){return o("group-id")},get Erasure(){return o("erasure")},get Usage(){return o("usage")},get DiskSpaceUsage(){return o("disk-usage")},get PoolName(){return o("pool-name")},get Kind(){return o("type")},get Encryption(){return o("encryption")},get MediaType(){return o("type")},get MissingDisks(){return o("missing-disks")},get State(){return o("state")},get Latency(){return o("latency")}},v=["PoolName","MediaType","Encryption","Erasure","Usage","DiskSpaceUsage","State","MissingDisks","Latency"],f=v.map((e=>({value:e,content:g[e]}))),S=a.z.custom((e=>v.includes(e))).catch(void 0),k={GroupId:["GroupId"],PoolName:["PoolName"],MediaType:["MediaType","Encryption"],Erasure:["Erasure"],Used:["Used"],Limit:["Limit"],Usage:["Usage"],DiskSpaceUsage:["DiskSpaceUsage"],DiskSpace:["State"],Read:["Read"],Write:["Write"],Latency:["Latency"],AllocationUnits:["AllocationUnits"],VDisks:["VDisk","PDisk","Read","Write"],VDisksPDisks:["VDisk","PDisk","Read","Write"],Degraded:["MissingDisks"],State:["State"]},N={GroupId:"GroupId",PoolName:"PoolName",MediaType:"MediaType",Erasure:"Erasure",Used:"Used",Limit:"Limit",Usage:"Usage",DiskSpaceUsage:"DiskSpaceUsage",DiskSpace:void 0,Read:"Read",Write:"Write",Latency:"Latency",AllocationUnits:"AllocationUnits",VDisks:void 0,VDisksPDisks:void 0,Degraded:"Degraded",State:"State"};function y(e){return N[e]}function b(e){return Boolean(y(e))}},61456:(e,t,s)=>{s.d(t,{A:()=>o});var a=s(48372);const n=JSON.parse('{"empty.default":"No such groups","empty.out_of_space":"No groups with out of space errors","empty.degraded":"No degraded groups","show_all":"Show all groups","encrypted":"Encrypted group"}'),r=JSON.parse('{"empty.default":"\u041d\u0435\u0442 \u0433\u0440\u0443\u043f\u043f","empty.out_of_space":"\u041d\u0435\u0442 \u0433\u0440\u0443\u043f\u043f, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043a\u043e\u043d\u0447\u0430\u0435\u0442\u0441\u044f \u043c\u0435\u0441\u0442\u043e","empty.degraded":"\u041d\u0435\u0442 \u0434\u0435\u0433\u0440\u0430\u0434\u0438\u0440\u043e\u0432\u0430\u0432\u0448\u0438\u0445 \u0433\u0440\u0443\u043f\u043f","show_all":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u0435 \u0433\u0440\u0443\u043f\u043f\u044b","encrypted":"\u0417\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0433\u0440\u0443\u043f\u043f\u0430"}'),o=(0,a.g4)("ydb-storage-groups",{ru:r,en:n})},71708:(e,t,s)=>{s.d(t,{Q:()=>d});s(59284);var a=s(33705),n=s(98089),r=s(47665),o=s(77506),i=s(60712);const l=(0,o.cn)("ydb-table-group");function d({children:e,title:t,entityName:s,count:o,expanded:d=!1,onIsExpandedChange:u}){const c=()=>{u(t,!d)};return(0,i.jsxs)("div",{className:l(null),children:[(0,i.jsx)("button",{onClick:c,className:l("button"),title:t,children:(0,i.jsxs)("div",{className:l("title-wrapper"),children:[(0,i.jsx)(a.I,{direction:d?"top":"bottom"}),(0,i.jsxs)("div",{className:l("title"),children:[(0,i.jsx)(n.E,{variant:"subheader-2",children:t}),(0,i.jsxs)(n.E,{variant:"body-2",color:"secondary",className:l("count"),children:[s,": ",(0,i.jsx)(r.J,{theme:"normal",children:o})]})]})]})}),d?(0,i.jsx)("div",{className:l("content"),children:e}):null]})}},62710:(e,t,s)=>{s.d(t,{$:()=>n});var a=s(59284);function n(e){const[t,s]=a.useState({});a.useEffect((()=>{null!==e&&void 0!==e&&e.length&&s((t=>e.reduce(((e,{name:s})=>{const a=t[s];return{...e,[s]:null!==a&&void 0!==a&&a}}),{})))}),[e]);return{expandedGroups:t,setIsGroupExpanded:a.useCallback(((e,t)=>{s((s=>({...s,[e]:t})))}),[])}}},3218:(e,t,s)=>{s.d(t,{Ep:()=>g,OH:()=>c,QQ:()=>h,b0:()=>p,k_:()=>u});var a=s(59284),n=s(24600),r=s(7435),o=s(16439),i=s(90182);const l=(0,o.H)(["success","warning","danger"],1,2),d={"block-4-2":(0,o.H)(["success","warning","danger"],1,2),"mirror-3-dc":(0,o.H)(["success","warning","danger"],1,3)},u=e=>{var t;return(void 0!==(t=e.ErasureSpecies)&&t in d?d[e.ErasureSpecies]:l)(e.Degraded)};function c(e,t){var s;let a=!0;return(0,r.f8)(null===(s=e.VDiskId)||void 0===s?void 0:s.GroupID)&&null!==t&&void 0!==t&&t.groupId&&(a&&=String(e.VDiskId.GroupID)===t.groupId),(0,r.f8)(e.NodeId)&&null!==t&&void 0!==t&&t.nodeId&&(a&&=String(e.NodeId)===t.nodeId),(0,r.f8)(e.PDiskId)&&null!==t&&void 0!==t&&t.pDiskId&&(a&&=String(e.PDiskId)===t.pDiskId),(0,r.f8)(e.VDiskSlotId)&&null!==t&&void 0!==t&&t.vDiskSlotId&&(a&&=String(e.VDiskSlotId)===t.vDiskSlotId),a}const m=10;function p(e){return(0,r.f8)(null===e||void 0===e?void 0:e.nodeId)||(0,r.f8)(null===e||void 0===e?void 0:e.pDiskId)||(0,r.f8)(null===e||void 0===e?void 0:e.vDiskSlotId)?1:m}function h(e){return(0,r.f8)(null===e||void 0===e?void 0:e.groupId)||(0,r.f8)(null===e||void 0===e?void 0:e.vDiskSlotId)?1:m}function g(e=[],t){const s=(0,i.N4)(n.K);return a.useMemo((()=>{const a=[];return function(e){return"mirror-3-dc"===e||"mirror-3of4"===e}(t)?(e.forEach(((t,n)=>{var r,o,i;(null===s||void 0===s||null===(r=s.get(Number(null===t||void 0===t?void 0:t.NodeId)))||void 0===r?void 0:r.DC)!==(null===s||void 0===s||null===(o=s.get(Number(null===(i=e[n+1])||void 0===i?void 0:i.NodeId)))||void 0===o?void 0:o.DC)&&a.push(n)})),a):a}),[t,e,s])}},16029:(e,t,s)=>{s.d(t,{t:()=>n});var a=s(11905);async function n({version:e="v2",shouldUseGroupsHandler:t,...s},n){if(t&&"v1"!==e){const e=await window.api.storage.getStorageGroups({...s},n);return(0,a.Rv)(e)}{const t=await window.api.viewer.getStorageInfo({version:e,...s},n);return(0,a.Qi)(t)}}},10174:(e,t,s)=>{s.d(t,{S:()=>o});var a=s(21334),n=s(16029),r=s(11905);const o=a.F.injectEndpoints({endpoints:e=>({getStorageNodesInfo:e.query({queryFn:async(e,{signal:t})=>{try{const s=await window.api.viewer.getNodes({storage:!0,type:"static",...e},{signal:t});return{data:(0,r.rz)(s)}}catch(s){return{error:s}}},providesTags:["All","StorageData"]}),getStorageGroupsInfo:e.query({queryFn:async(e,{signal:t})=>{try{return{data:await(0,n.t)(e,{signal:t})}}catch(s){return{error:s}}},providesTags:["All","StorageData"]})}),overrideExisting:"throw"})},11905:(e,t,s)=>{s.d(t,{Rv:()=>N,rz:()=>S,Qi:()=>k});var a=s(94025),n=s(67375),r=s(7187),o=s(27295),i=s(78034);var l=s(73891),d=s(56839),u=s(51930),c=s(64036),m=s(78461);function p(e={}){var t,s,a,n;const{Whiteboard:i={},PDisk:l,...h}=e,g={...i,...h,VDiskId:i.VDiskId},v=function(e={}){var t,s,a;const{Whiteboard:n,...i}=e,l={...n,...i,PDiskId:null===n||void 0===n?void 0:n.PDiskId},d=i.PDiskId||(0,r.r$)(l.NodeId,l.PDiskId),{AllocatedPercent:c,AllocatedSize:p,AvailableSize:h,TotalSize:g}=(0,o.hK)({AvailableSize:l.AvailableSize,TotalSize:l.TotalSize}),v=null!==(t=null===(s=i.Type)||void 0===s?void 0:s.toUpperCase())&&void 0!==t?t:(0,m.Y)(null===n||void 0===n?void 0:n.Category),f=(0,u.d)({State:null===n||void 0===n?void 0:n.State,AllocatedPercent:c}),S=null!==(a=i.SlotSize)&&void 0!==a?a:null===n||void 0===n?void 0:n.EnforcedDynamicSlotSize;return{...l,StringifiedId:d,AllocatedPercent:c,AllocatedSize:p,AvailableSize:h,TotalSize:g,Type:v,Severity:f,SlotSize:S}}({...l,NodeId:g.NodeId}),f=null!==(t=null===v||void 0===v?void 0:v.PDiskId)&&void 0!==t?t:null===i||void 0===i?void 0:i.PDiskId,S=null!==(s=h.VDiskId)&&void 0!==s?s:(0,d.U9)(i.VDiskId),k=(0,c.b)(g),N=(0,o.LW)({AvailableSize:null!==(a=g.AvailableSize)&&void 0!==a?a:null===l||void 0===l?void 0:l.AvailableSize,AllocatedSize:g.AllocatedSize}),y=null===(n=h.Donors)||void 0===n?void 0:n.map((e=>p({...e,Whiteboard:{...e.Whiteboard,DonorMode:!0}})));return{...g,...N,PDisk:v,Donors:y,PDiskId:f,StringifiedId:S,Severity:k}}function h(e){const{DiskSpace:t,VDisks:s=[]}=e;return t||(0,r.XY)(Math.max(...s.map((e=>(0,r.H7)(e.DiskSpace)))))}const g=(e,t)=>{var s;const a=(0,o.WT)(e);return{...a,StoragePoolName:t,Donors:null===a||void 0===a||null===(s=a.Donors)||void 0===s?void 0:s.map((e=>({...e,StoragePoolName:t})))}},v=(e,t)=>{var s;let r,i=0,l=0,d=0,u=0,c=0;const{Name:m,MediaType:p}=t;if(e.VDisks)for(const h of e.VDisks){const{Replicated:e,VDiskState:t,AvailableSize:s,AllocatedSize:m,PDisk:p,ReadThroughput:g,WriteThroughput:v}=h,{Type:f,State:S,AvailableSize:k}=(0,o.or)(p);!1!==e&&S===a.t.Normal&&t===n.W.OK||(i+=1);const N=Number(null!==s&&void 0!==s?s:k)||0,y=Number(m)||0;l+=y,d+=N+y,u+=Number(g)||0,c+=Number(v)||0,r=!f||f!==r&&r?"Mixed":f}const v=null===(s=e.VDisks)||void 0===s?void 0:s.map((e=>g(e,m))),f=d?((e,t=1)=>{const s=e.Limit?100*e.Used/e.Limit:0;return Math.floor(s/t)*t})({Used:l,Limit:d},5):void 0,S=h(e);return{...e,GroupGeneration:e.GroupGeneration?String(e.GroupGeneration):void 0,GroupId:e.GroupID,Overall:e.Overall,VDisks:v,Usage:f,Read:u,Write:c,PoolName:m,Used:l,Limit:d,Degraded:i,MediaType:p||r||void 0,DiskSpace:S}},f=e=>{const{VDisks:t=[],PoolName:s,Usage:a=0,Read:n=0,Write:r=0,Used:o=0,Limit:i=0,Degraded:l=0,Kind:d,MediaType:u,GroupID:c,Overall:m,GroupGeneration:p}=e,v=t.map((e=>g(e,s))),f=100*Number(a),S=h(e);return{...e,PoolName:s,GroupId:c,MediaType:u||d,VDisks:v,Usage:f,Overall:m,GroupGeneration:p?String(p):void 0,Read:Number(n),Write:Number(r),Used:Number(o),Limit:Number(i),Degraded:Number(l),DiskSpace:S}},S=e=>{const{Nodes:t,TotalNodes:s,FoundNodes:n,NodeGroups:r,MaximumSlotsPerDisk:l,MaximumDisksPerNode:d}=e,u=null===r||void 0===r?void 0:r.map((({GroupName:e,NodeCount:t})=>{if(e&&t)return{name:e,count:Number(t)}})).filter((e=>Boolean(e))),c=((e,t)=>{if(t)return t;const s=(e||[]).flatMap((e=>{const t=e.PDisks||[],s=e.VDisks||[];return t.map((e=>s.filter((t=>t.PDiskId===e.PDiskId)).length||0))})),a=Math.max(1,...s);return String(a)})(t,l),m=((e,t)=>{if(t)return t;const s=(e||[]).map((e=>{var t;return(null===(t=e.PDisks)||void 0===t?void 0:t.length)||0})),a=Math.max(1,...s);return String(a)})(t,d),p=null===t||void 0===t?void 0:t.map((e=>((e,t,s)=>{var n,r,l;const d=(null===(n=e.PDisks)||void 0===n?void 0:n.filter((e=>e.State!==a.t.Normal)).length)||0,u=null===(r=e.PDisks)||void 0===r?void 0:r.map((t=>({...(0,o.or)(t),NodeId:e.NodeId}))),c=null===(l=e.VDisks)||void 0===l?void 0:l.map((t=>({...(0,o.WT)(t),NodeId:e.NodeId})));return{...(0,i.q1)(e.SystemState),NodeId:e.NodeId,DiskSpaceUsage:e.DiskSpaceUsage,PDisks:u,VDisks:c,Missing:d,MaximumSlotsPerDisk:t,MaximumDisksPerNode:s}})(e,c,m)));return{nodes:p,total:Number(s)||(null===p||void 0===p?void 0:p.length),found:Number(n),tableGroups:u}},k=e=>{const{StoragePools:t,StorageGroups:s,TotalGroups:a,FoundGroups:n}=e,r=((e,t)=>{let s=[];return e?s=e.map(f):null===t||void 0===t||t.forEach((e=>{var t;null===(t=e.Groups)||void 0===t||t.forEach((t=>{s.push(v(t,e))}))})),s})(s,t);return{groups:r,total:Number(a)||r.length,found:Number(n)}};function N(e){const{FoundGroups:t,TotalGroups:s,StorageGroups:a=[],StorageGroupGroups:n}=e,r=a.map((e=>{const{Usage:t,DiskSpaceUsage:s,Read:a,Write:n,Used:r,Limit:o,MissingDisks:i,VDisks:d=[],Overall:u,LatencyPutTabletLog:c,LatencyPutUserData:m,LatencyGetFast:g}=e,v=d.map(p),f=h(e);return{...e,Usage:t,DiskSpaceUsage:s,Read:Number(a),Write:Number(n),Used:Number(r),Limit:Number(o),LatencyPutTabletLogMs:(0,l.Jc)(c),LatencyPutUserDataMs:(0,l.Jc)(m),LatencyGetFastMs:(0,l.Jc)(g),Degraded:Number(i),Overall:u,VDisks:v,DiskSpace:f}})),o=null===n||void 0===n?void 0:n.map((({GroupName:e,GroupCount:t})=>{if(e&&t)return{name:e,count:Number(t)}})).filter((e=>Boolean(e)));return{groups:r,total:Number(s)||r.length,found:Number(t),tableGroups:o}}},94025:(e,t,s)=>{s.d(t,{t:()=>a});let a=function(e){return e.Initial="Initial",e.InitialFormatRead="InitialFormatRead",e.InitialFormatReadError="InitialFormatReadError",e.InitialSysLogRead="InitialSysLogRead",e.InitialSysLogReadError="InitialSysLogReadError",e.InitialSysLogParseError="InitialSysLogParseError",e.InitialCommonLogRead="InitialCommonLogRead",e.InitialCommonLogReadError="InitialCommonLogReadError",e.InitialCommonLogParseError="InitialCommonLogParseError",e.CommonLoggerInitError="CommonLoggerInitError",e.Normal="Normal",e.OpenFileError="OpenFileError",e.ChunkQuotaError="ChunkQuotaError",e.DeviceIoError="DeviceIoError",e.Missing="Missing",e.Timeout="Timeout",e.NodeDisconnected="NodeDisconnected",e.Unknown="Unknown",e}({})},67375:(e,t,s)=>{s.d(t,{W:()=>a});let a=function(e){return e.Initial="Initial",e.LocalRecoveryError="LocalRecoveryError",e.SyncGuidRecovery="SyncGuidRecovery",e.SyncGuidRecoveryError="SyncGuidRecoveryError",e.OK="OK",e.PDiskError="PDiskError",e}({})},51930:(e,t,s)=>{s.d(t,{d:()=>r});var a=s(5707),n=s(7187);function r(e){const t=function(e){return t=e,void 0!==t&&t in a.iZ?a.iZ[e]:a.Km;var t}(e.State),s=(0,n.SW)(e.AllocatedPercent);return t!==a.Km&&s?Math.max(t,s):t}},64036:(e,t,s)=>{s.d(t,{b:()=>n});var a=s(5707);function n(e){const{DiskSpace:t,VDiskState:s,FrontQueues:n,Replicated:o}=e;if(!s)return a.Km;const i=r(t),l=function(e){var t;if(!e)return a.Km;return null!==(t=a.qs[e])&&void 0!==t?t:a.Km}(s),d=Math.min(a.aW.Orange,r(n));let u=Math.max(i,l,d);return!1===o&&u===a.aW.Green&&(u=a.aW.Blue),u}function r(e){var t;return e&&null!==(t=a.aW[e])&&void 0!==t?t:a.Km}},5707:(e,t,s)=>{s.d(t,{A$:()=>o,Km:()=>i,Yh:()=>l,aW:()=>r,iZ:()=>u,qs:()=>d});var a=s(94025),n=s(67375);const r={Grey:0,Green:1,Blue:2,Yellow:3,Orange:4,Red:5},o=Object.entries(r).reduce(((e,[t,s])=>({...e,[s]:t})),{}),i=r.Grey,l=o[i],d={[n.W.OK]:r.Green,[n.W.Initial]:r.Yellow,[n.W.SyncGuidRecovery]:r.Yellow,[n.W.LocalRecoveryError]:r.Red,[n.W.SyncGuidRecoveryError]:r.Red,[n.W.PDiskError]:r.Red},u={[a.t.Initial]:r.Grey,[a.t.Normal]:r.Green,[a.t.InitialFormatRead]:r.Yellow,[a.t.InitialSysLogRead]:r.Yellow,[a.t.InitialCommonLogRead]:r.Yellow,[a.t.InitialFormatReadError]:r.Red,[a.t.InitialSysLogReadError]:r.Red,[a.t.InitialSysLogParseError]:r.Red,[a.t.InitialCommonLogReadError]:r.Red,[a.t.InitialCommonLogParseError]:r.Red,[a.t.CommonLoggerInitError]:r.Red,[a.t.OpenFileError]:r.Red,[a.t.ChunkQuotaError]:r.Red,[a.t.DeviceIoError]:r.Red}},78461:(e,t,s)=>{s.d(t,{Y:()=>n});const a={HDD:"HDD",SSD:"SSD",MVME:"NVME"};function n(e){if(!e)return;const t=function(e,t){const s={};return Object.entries(t).reduce(((t,[a,n])=>{const r=e.length-t,o=r-n;return s[a]=e.substring(o,r)||"0",t+n}),0),s}(BigInt(e).toString(2),{isSolidState:1,kind:55,typeExt:8});if("1"===t.isSolidState)switch(parseInt(t.typeExt,2)){case 0:return a.SSD;case 2:return a.MVME}else if("0"===t.typeExt)return a.HDD}},7187:(e,t,s)=>{s.d(t,{H7:()=>c,NJ:()=>i,SW:()=>d,XY:()=>u,gh:()=>p,r$:()=>m});var a=s(7435),n=s(54090),r=s(16439),o=s(5707);function i(e){return"VDiskId"in e}const l=(0,r.H)([n.m.Green,n.m.Yellow,n.m.Red]),d=e=>(0,a.f8)(e)?c(l(e)):0;function u(e){return void 0===e?o.Yh:o.A$[e]||o.Yh}function c(e){return e?o.aW[e]:0}function m(e,t){if((0,a.f8)(e)&&(0,a.f8)(t))return`${e}-${t}`}function p(e,t,s){return[e,t,s].join("-")}},27295:(e,t,s)=>{s.d(t,{LW:()=>u,WT:()=>l,hK:()=>c,or:()=>d});var a=s(56839),n=s(51930),r=s(64036),o=s(78461),i=s(7187);function l(e={}){var t;if(!(0,i.NJ)(e)){const{NodeId:t,PDiskId:s,VSlotId:n}=e;return{StringifiedId:(0,a.U9)({NodeId:t,PDiskId:s,VSlotId:n}),NodeId:t,PDiskId:s,VDiskSlotId:n}}const{PDisk:s,PDiskId:n,VDiskId:o,NodeId:c,Donors:m,AvailableSize:p,AllocatedSize:h,...g}=e,v=s?d({...s,NodeId:null!==(t=null===s||void 0===s?void 0:s.NodeId)&&void 0!==t?t:c}):void 0,f=null!==n&&void 0!==n?n:null===v||void 0===v?void 0:v.PDiskId,S=u({AvailableSize:null!==p&&void 0!==p?p:null===s||void 0===s?void 0:s.AvailableSize,AllocatedSize:h}),k=(0,r.b)(e),N=(0,a.U9)(o);return{...g,...S,VDiskId:o,NodeId:c,PDiskId:f,PDisk:v,Donors:null===m||void 0===m?void 0:m.map((e=>l({...e,DonorMode:!0}))),Severity:k,StringifiedId:N}}function d(e={}){const{AvailableSize:t,TotalSize:s,Category:a,State:r,PDiskId:l,NodeId:d,EnforcedDynamicSlotSize:u,...m}=e,p=(0,i.r$)(l,d),h=(0,o.Y)(a),g=c({AvailableSize:t,TotalSize:s}),v=(0,n.d)({State:r,AllocatedPercent:g.AllocatedPercent});return{...m,...g,PDiskId:l,NodeId:d,StringifiedId:p,Type:h,Category:a,State:r,Severity:v,SlotSize:u}}function u({AvailableSize:e,AllocatedSize:t}){const s=Number(e),a=Number(t),n=a+s;return{AvailableSize:s,AllocatedSize:a,TotalSize:n,AllocatedPercent:Math.round(100*a/n)}}function c({AvailableSize:e,TotalSize:t}){const s=Number(e),a=Number(t),n=a-s;return{AvailableSize:s,TotalSize:a,AllocatedSize:n,AllocatedPercent:Math.round(100*n/a)}}},69464:(e,t,s)=>{s.d(t,{T:()=>n});var a=s(6388);s(23536);const n=(e,t=a.xN)=>t===a.xN?`-${e}`:e},16439:(e,t,s)=>{s.d(t,{H:()=>n,f:()=>r});var a=s(76086);const n=(e,t=a.Hh,s=a.Ed)=>a=>0<=a&&a<t?e[0]:t<=a&&a<s?e[1]:s<=a?e[2]:void 0,r=n(["success","warning","danger"])},43951:(e,t,s)=>{s.d(t,{K:()=>r});var a=s(59284),n=s(59001);const r=(e,t,s,r,o)=>{const[i,l]=a.useState((()=>n.f.readUserSettingsValue(t,r)));return{columnsToShow:a.useMemo((()=>e.filter((e=>{const t=e.name,s=i.includes(t),a=null===o||void 0===o?void 0:o.includes(t);return s||a}))),[e,o,i]),columnsToSelect:a.useMemo((()=>e.map((e=>e.name)).map((e=>{const t=null===o||void 0===o?void 0:o.includes(e),a=i.includes(e);return{id:e,title:s[e],selected:t||a,required:t,sticky:t?"start":void 0}}))),[e,s,o,i]),setColumns:a.useCallback((e=>{const s=e.filter((e=>e.selected)).map((e=>e.id));n.f.setUserSettingsValue(t,s),l(s)}),[t])}}},16819:(e,t,s)=>{s.d(t,{a:()=>o});var a=s(59284),n=s(69024),r=s(59001);const o=e=>{const t=a.useCallback((()=>e?r.f.readUserSettingsValue(e,{}):{}),[e]),s=a.useCallback((t=>{e&&r.f.setUserSettingsValue(e,t)}),[e]);return(0,n.a)({saveSizes:s,getSizes:t})}},35736:(e,t,s)=>{s.d(t,{w:()=>n});var a=s(76086);function n({inverseColorize:e,warningThreshold:t=a.Hh,dangerThreshold:s=a.Ed,colorizeProgress:n,fillWidth:r}){let o=e?"danger":"good";return n&&(r>t&&r<=s?o="warning":r>s&&(o=e?"good":"danger")),o}},40781:(e,t,s)=>{function a(e,t){const s=e.reduce(((e,s)=>(t[s].forEach((t=>{e.add(t)})),e)),new Set);return Array.from(s).sort()}s.d(t,{R:()=>a})},58267:(e,t,s)=>{s.d(t,{P:()=>o,_:()=>i});var a=s(54090),n=s(6354);const r={[n.r.Dead]:a.m.Red,[n.r.Created]:a.m.Yellow,[n.r.ResolveStateStorage]:a.m.Yellow,[n.r.Candidate]:a.m.Yellow,[n.r.BlockBlobStorage]:a.m.Yellow,[n.r.WriteZeroEntry]:a.m.Yellow,[n.r.Restored]:a.m.Yellow,[n.r.Discover]:a.m.Yellow,[n.r.Lock]:a.m.Yellow,[n.r.Stopped]:a.m.Yellow,[n.r.ResolveLeader]:a.m.Yellow,[n.r.RebuildGraph]:a.m.Yellow,[n.r.Deleted]:a.m.Green,[n.r.Active]:a.m.Green},o=e=>{if(!e)return a.m.Grey;return t=e,Object.values(a.m).includes(t)?e:r[e];var t};function i(e){if(!e)return"unknown";switch(e){case n.r.Dead:return"danger";case n.r.Active:case n.r.Deleted:return"success";default:return"warning"}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/9802.b15025e5.chunk.js b/ydb/core/viewer/monitoring/static/js/9802.b15025e5.chunk.js new file mode 100644 index 0000000000..39050b3fab --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/9802.b15025e5.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[9802],{8873:(e,t,n)=>{n.d(t,{A:()=>i});var o=n(59284);const i=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 1.5a6.5 6.5 0 0 1 6.445 5.649.75.75 0 1 1-1.488.194A5.001 5.001 0 0 0 4.43 4.5h1.32a.75.75 0 0 1 0 1.5h-3A.75.75 0 0 1 2 5.25v-3a.75.75 0 1 1 1.5 0v1.06A6.48 6.48 0 0 1 8 1.5m5.25 13a.75.75 0 0 0 .75-.75v-3a.75.75 0 0 0-.75-.75h-3a.75.75 0 1 0 0 1.5h1.32a5.001 5.001 0 0 1-8.528-2.843.75.75 0 1 0-1.487.194 6.501 6.501 0 0 0 10.945 3.84v1.059c0 .414.336.75.75.75",clipRule:"evenodd"}))},12640:(e,t,n)=>{n.d(t,{c:()=>m});var o=n(59284),i=n(14794),s=n(98392),r=n(27145),a=n(67459);var l=n(11507);const c=(0,n(69220).om)("sheet");class u{constructor(e,t){this.x=e,this.y=t,this.timeStamp=Date.now()}}class d{constructor(e=5){this.points=[],this.pointsLen=e,this.clear()}clear(){this.points=new Array(this.pointsLen)}addMovement({x:e,y:t}){this.points.pop(),this.points.unshift(new u(e,t))}getYAcceleration(e=1){const t=this.points[0],n=this.points[e];return t&&n?(t.y-n.y)/Math.pow(t.timeStamp-n.timeStamp,2):0}}let h=[];class p extends o.Component{constructor(){super(...arguments),this.veilRef=o.createRef(),this.sheetRef=o.createRef(),this.sheetTopRef=o.createRef(),this.sheetContentBoxRef=o.createRef(),this.sheetScrollContainerRef=o.createRef(),this.velocityTracker=new d,this.observer=null,this.resizeWindowTimer=null,this.state={startScrollTop:0,startY:0,deltaY:0,prevSheetHeight:0,swipeAreaTouched:!1,contentTouched:!1,veilTouched:!1,isAnimating:!1,inWindowResizeScope:!1},this.setStyles=({status:e,deltaHeight:t=0})=>{if(!this.sheetRef.current||!this.veilRef.current)return;const n=this.sheetHeight-t,o="showing"===e?`translate3d(0, -${n}px, 0)`:"translate3d(0, 0, 0)";let i=0;"showing"===e&&(i=0===t?1:n/this.sheetHeight),this.veilRef.current.style.opacity=String(i),this.sheetRef.current.style.transform=o},this.getAvailableContentHeight=e=>{const t=.9*window.innerHeight-this.sheetTopHeight;return e>=t?t:e},this.show=()=>{this.setState({isAnimating:!0},(()=>{this.setStyles({status:"showing"}),this.setHash()}))},this.hide=()=>{this.setState({isAnimating:!0},(()=>{this.setStyles({status:"hiding"}),this.removeHash()}))},this.onSwipeAreaTouchStart=e=>{this.velocityTracker.clear(),this.setState({startY:e.nativeEvent.touches[0].clientY,swipeAreaTouched:!0})},this.onContentTouchStart=e=>{this.props.allowHideOnContentScroll&&!this.state.swipeAreaTouched&&(this.velocityTracker.clear(),this.setState({startY:e.nativeEvent.touches[0].clientY,startScrollTop:this.sheetScrollTop,contentTouched:!0}))},this.onSwipeAriaTouchMove=e=>{const t=e.nativeEvent.touches[0].clientY-this.state.startY;this.velocityTracker.addMovement({x:e.nativeEvent.touches[0].clientX,y:e.nativeEvent.touches[0].clientY}),this.setState({deltaY:t}),t<=0||this.setStyles({status:"showing",deltaHeight:t})},this.onContentTouchMove=e=>{if(!this.props.allowHideOnContentScroll)return;if(!this.state.startY)return void this.onContentTouchStart(e);const{startScrollTop:t,swipeAreaTouched:n}=this.state;if(n||this.sheetScrollTop>0||t>0&&t!==this.sheetScrollTop)return;const o=e.nativeEvent.touches[0].clientY-this.state.startY;this.velocityTracker.addMovement({x:e.nativeEvent.touches[0].clientX,y:e.nativeEvent.touches[0].clientY}),this.setState({deltaY:o}),o<=0||this.setStyles({status:"showing",deltaHeight:o})},this.onTouchEndAction=e=>{const t=this.velocityTracker.getYAcceleration();this.sheetHeight<=e?this.props.hideSheet():e>50&&t<=.08&&t>=-.02||t>.08?this.hide():0!==e&&this.show()},this.onSwipeAriaTouchEnd=()=>{const{deltaY:e}=this.state;this.onTouchEndAction(e),this.setState({startY:0,deltaY:0,swipeAreaTouched:!1})},this.onContentTouchEnd=()=>{const{deltaY:e,swipeAreaTouched:t}=this.state;this.props.allowHideOnContentScroll&&!t&&(this.onTouchEndAction(e),this.setState({startY:0,deltaY:0,contentTouched:!1}))},this.onVeilClick=()=>{this.setState({veilTouched:!0}),this.hide()},this.onVeilTransitionEnd=()=>{this.setState({isAnimating:!1}),"0"===this.veilOpacity&&this.props.hideSheet()},this.onContentTransitionEnd=e=>{"height"===e.propertyName&&this.sheetScrollContainerRef.current&&(this.sheetScrollContainerRef.current.style.transition="none")},this.onResizeWindow=()=>{this.state.isAnimating||(this.setState({inWindowResizeScope:!0}),this.resizeWindowTimer&&window.clearTimeout(this.resizeWindowTimer),this.resizeWindowTimer=window.setTimeout((()=>{this.onResize()}),50))},this.onResize=()=>{if(!this.sheetRef.current||!this.sheetScrollContainerRef.current)return;const e=this.sheetContentHeight;if(e===this.state.prevSheetHeight&&!this.state.inWindowResizeScope)return;const t=this.getAvailableContentHeight(e);this.sheetScrollContainerRef.current.style.transition=this.state.prevSheetHeight>e?"height 0s ease 0.3s":"none",this.sheetScrollContainerRef.current.style.height=`${t}px`,this.sheetRef.current.style.transform=`translate3d(0, -${t+this.sheetTopHeight}px, 0)`,this.setState({prevSheetHeight:e,inWindowResizeScope:!1})}}componentDidMount(){this.addListeners(),this.show();const e=this.getAvailableContentHeight(this.sheetContentHeight);this.setInitialStyles(e),this.setState({prevSheetHeight:e})}componentDidUpdate(e){const{visible:t,location:n}=this.props;!e.visible&&t&&this.show(),(e.visible&&!t||this.shouldClose(e))&&this.hide(),e.location.pathname!==n.pathname&&(h=[])}componentWillUnmount(){this.removeListeners()}render(){const{content:e,contentClassName:t,swipeAreaClassName:n,hideTopBar:i,title:s}=this.props,{deltaY:r,swipeAreaTouched:a,contentTouched:l,veilTouched:u,isAnimating:d}=this.state,h={"with-transition":!r||u},p={"with-transition":h["with-transition"]},v={"without-scroll":r>0&&l||a};return o.createElement(o.Fragment,null,o.createElement("div",{ref:this.veilRef,className:c("veil",h),onClick:d?void 0:this.onVeilClick,onTransitionEnd:this.onVeilTransitionEnd,role:"presentation"}),o.createElement("div",{ref:this.sheetRef,className:c("sheet",p),role:"dialog","aria-modal":"true","aria-label":s},!i&&o.createElement("div",{ref:this.sheetTopRef,className:c("sheet-top")},o.createElement("div",{className:c("sheet-top-resizer")})),o.createElement("div",{className:c("sheet-swipe-area",n),onTouchStart:this.onSwipeAreaTouchStart,onTouchMove:this.onSwipeAriaTouchMove,onTouchEnd:this.onSwipeAriaTouchEnd}),o.createElement("div",{ref:this.sheetScrollContainerRef,className:c("sheet-scroll-container",v),onTouchStart:this.onContentTouchStart,onTouchMove:this.onContentTouchMove,onTouchEnd:this.onContentTouchEnd,onTransitionEnd:this.onContentTransitionEnd},o.createElement("div",{ref:this.sheetContentBoxRef,className:c("sheet-content-box")},o.createElement("div",{className:c("sheet-content-box-border-compensation")},o.createElement("div",{className:c("sheet-content",t)},s&&o.createElement("div",{className:c("sheet-content-title")},s),o.createElement("div",null,e)))))))}get veilOpacity(){var e;return(null===(e=this.veilRef.current)||void 0===e?void 0:e.style.opacity)||0}get sheetTopHeight(){var e;return(null===(e=this.sheetTopRef.current)||void 0===e?void 0:e.getBoundingClientRect().height)||0}get sheetHeight(){var e;return(null===(e=this.sheetRef.current)||void 0===e?void 0:e.getBoundingClientRect().height)||0}get sheetScrollTop(){var e;return(null===(e=this.sheetScrollContainerRef.current)||void 0===e?void 0:e.scrollTop)||0}get sheetContentHeight(){var e;return(null===(e=this.sheetContentBoxRef.current)||void 0===e?void 0:e.getBoundingClientRect().height)||0}setInitialStyles(e){this.sheetScrollContainerRef.current&&this.sheetContentBoxRef.current&&(this.sheetScrollContainerRef.current.style.height=`${e}px`)}addListeners(){window.addEventListener("resize",this.onResizeWindow),this.sheetContentBoxRef.current&&(this.observer=new ResizeObserver((()=>{this.state.inWindowResizeScope||this.onResize()})),this.observer.observe(this.sheetContentBoxRef.current))}removeListeners(){window.removeEventListener("resize",this.onResizeWindow),this.observer&&this.observer.disconnect()}setHash(){const{id:e,platform:t,location:n,history:o}=this.props;if(t===a.O.BROWSER)return;const i=Object.assign(Object.assign({},n),{hash:e});switch(t){case a.O.IOS:n.hash&&h.push(n.hash),o.replace(i);break;case a.O.ANDROID:o.push(i)}}removeHash(){var e;const{id:t,platform:n,location:o,history:i}=this.props;if(n!==a.O.BROWSER&&o.hash===`#${t}`)switch(n){case a.O.IOS:i.replace(Object.assign(Object.assign({},o),{hash:null!==(e=h.pop())&&void 0!==e?e:""}));break;case a.O.ANDROID:i.goBack()}}shouldClose(e){const{id:t,platform:n,location:o,history:i}=this.props;return n!==a.O.BROWSER&&"POP"===i.action&&e.location.hash!==o.hash&&o.hash!==`#${t}`}}p.defaultProps={id:"sheet",allowHideOnContentScroll:!0};const v=function(e){var t;const n=(i=e).displayName||i.name||"Component";var i;return(t=class extends o.Component{render(){return o.createElement(e,Object.assign({},this.props,{mobile:this.context.mobile,platform:this.context.platform,useHistory:this.context.useHistory,useLocation:this.context.useLocation}))}}).displayName=`withMobile(${n})`,t.contextType=l.G,t}(function(e){const t=t=>{const{useHistory:n,useLocation:i}=t,s=(0,r.Tt)(t,["useHistory","useLocation"]);return o.createElement(e,Object.assign({},s,{history:n(),location:i()}))},n=e.displayName||e.name||"Component";return t.displayName=`withRouterWrapper(${n})`,t}(p)),m=({children:e,onClose:t,visible:n,id:r,title:a,className:l,contentClassName:u,swipeAreaClassName:d,allowHideOnContentScroll:h,hideTopBar:p,qa:m})=>{const[f,g]=o.useState(n),[b,C]=o.useState(n);(0,i.y)({enabled:f}),!b&&n&&g(!0),n!==b&&C(n);return f?o.createElement(s.Z,null,o.createElement("div",{"data-qa":m,className:c(null,l)},o.createElement(v,{id:r,content:e,contentClassName:u,swipeAreaClassName:d,title:a,visible:n,allowHideOnContentScroll:h,hideTopBar:p,hideSheet:()=>{t&&t(),g(!1)}}))):null}},13066:(e,t,n)=>{n.d(t,{A:()=>i});var o=n(59284);const i=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.97 5.47a.75.75 0 0 1 1.06 0L8 9.44l3.97-3.97a.75.75 0 1 1 1.06 1.06l-4.5 4.5a.75.75 0 0 1-1.06 0l-4.5-4.5a.75.75 0 0 1 0-1.06",clipRule:"evenodd"}))},19884:(e,t,n)=>{n.d(t,{Y:()=>b});var o=n(59284),i=n(94420),s=n(13066),r=n(905),a=n.n(r),l=n(90826),c=n(99991),u=n(84375),d=n(56353),h=n(89226),p=n(81240);const v=e=>{const{size:t,onClick:n,onMouseEnter:i,onMouseLeave:s,renderIcon:r}=e,a=r?r():o.createElement(c.I,{className:(0,d.Di)("clear"),data:p.A});return o.createElement("button",{className:(0,d.Di)({size:t}),"aria-label":(0,h.A)("label_clear"),onClick:n,onMouseEnter:i,onMouseLeave:s,"data-qa":d.pn.CLEAR,type:"button"},a)};v.displayName="SelectClear";var m=n(98089);const f=(0,n(69220).om)("select-counter");function g({count:e,size:t,disabled:n}){return o.createElement("div",{className:f({size:t})},o.createElement(m.E,{variant:"xl"===t?"body-2":"body-1",color:n?"hint":"primary",className:f("text")},e))}const b=o.forwardRef(((e,t)=>{const{toggleOpen:n,clearValue:r,onKeyDown:p,renderControl:m,view:f,size:b,pin:C,selectedOptionsContent:E,className:w,qa:T,label:S,placeholder:y,isErrorVisible:O,errorMessage:R,open:A,disabled:x,value:N,hasClear:H,popupId:z,selectId:I,activeIndex:k,renderCounter:P,hasCounter:L,title:M}=e,B=Boolean(E),D=Boolean(y&&!B),F=Array.isArray(N)&&!a()(N.filter(Boolean)),W=(0,l.u)(),[j,Y]=o.useState(!1),_={open:A,size:b,pin:C,disabled:x,error:O,"has-clear":H,"no-active":j,"has-value":F},$={open:A,size:b,view:f,pin:C,disabled:x,error:O},q=o.useCallback((e=>{e&&e.currentTarget!==document.activeElement&&"focus"in e.currentTarget&&e.currentTarget.focus(),n()}),[n]),V=o.useCallback((()=>{Y(!0)}),[]),G=o.useCallback((()=>{Y(!1)}),[]),K=o.useCallback((()=>{Y(!1),r()}),[r]),U=()=>{if(!L)return null;const e=N.length,t=o.createElement(g,{count:e,size:b,disabled:x});return P?P(t,{count:e,size:b,disabled:x}):t},J=e=>{const t=0===N.length;return!H||t||x?null:o.createElement(v,{size:b,onClick:K,onMouseEnter:V,onMouseLeave:G,renderIcon:e.renderIcon})},Z={id:I,role:"combobox","aria-controls":A?z:void 0,"aria-haspopup":"listbox","aria-expanded":A,"aria-activedescendant":void 0===k?void 0:`${z}-item-${k}`,onClick:q,onKeyDown:p,disabled:x};return m?m({onKeyDown:p,onClear:r,onClick:q,renderClear:J,renderCounter:U,ref:t,open:A,popupId:z,selectId:I,activeIndex:k,disabled:x,triggerProps:Z},{value:N}):o.createElement(o.Fragment,null,o.createElement("div",{className:(0,d.ji)(_),role:"group"},o.createElement("button",Object.assign({ref:t,className:(0,d.Zz)($,w),type:"button","data-qa":T,title:M,tabIndex:0},Z),S&&o.createElement("span",{className:(0,d.ji)("label")},S),D&&o.createElement("span",{className:(0,d.ji)("placeholder")},y),B&&o.createElement("span",{className:(0,d.ji)("option-text")},E)),U(),J({}),R&&o.createElement(u.A,{content:R,tooltipId:W},o.createElement("button",{"aria-label":(0,h.A)("label_show-error-info"),"aria-describedby":W,className:(0,d.ji)("error-icon")},o.createElement(c.I,{data:i.A,size:"s"===b?12:16}))),o.createElement(c.I,{className:(0,d.ji)("chevron-icon",{disabled:x}),data:s.A,"aria-hidden":"true"})))}));b.displayName="SelectControl"},24555:(e,t,n)=>{n.d(t,{l:()=>te});var o=n(59284),i=n(359),s=n(85736),r=n(32084),a=n(27145),l=n(92609);var c=n(90826),u=n(51301),d=n(63246),h=n(34379),p=n(46819),v=n(28664),m=n(69220),f=n(56353),g=n(89226);const b=(0,m.om)("select-filter"),C={padding:"4px 4px 0"},E=o.forwardRef(((e,t)=>{const{onChange:n,onKeyDown:i,renderFilter:s,size:r,value:a,placeholder:l,popupId:c,activeIndex:u}=e,d=o.useRef(null);o.useImperativeHandle(t,(()=>({focus:()=>{var e;return null===(e=d.current)||void 0===e?void 0:e.focus({preventScroll:!0})}})),[]);const h={value:a,placeholder:l,size:1,onKeyDown:i,onChange:e=>{n(e.target.value)},"aria-label":(0,g.A)("label_filter"),"aria-controls":c,"aria-activedescendant":void 0===u?void 0:`${c}-item-${u}`};return s?s({onChange:n,onKeyDown:i,value:a,ref:d,style:C,inputProps:h}):o.createElement("div",{className:b(),style:C},o.createElement(v.k,{controlRef:d,controlProps:{className:b("input"),size:1,"aria-label":h["aria-label"],"aria-controls":h["aria-controls"],"aria-activedescendant":h["aria-activedescendant"]},size:r,value:a,placeholder:l,onUpdate:n,onKeyDown:i,qa:f.pn.FILTER_INPUT}))}));E.displayName="SelectFilter";var w=n(40091);const T=e=>Boolean(e&&"label"in e),S=e=>{const{getOptionHeight:t,getOptionGroupHeight:n,size:o,option:i,index:s,mobile:r}=e;let a=r?f.t5:f.KK[o];if(T(i)){const e=0===s?0:f.Vm;return a=""===i.label?0:a,n?n(i,s):a+e}return t?t(i,s):a},y=e=>"string"===typeof e.content?e.content:"string"===typeof e.children?e.children:e.text?e.text:e.value,O=e=>(e=>o.Children.toArray(e))(e).reduce(((e,{props:t})=>{if("label"in t){const n=t.options||(e=>o.Children.toArray(e).reduce(((e,{props:t})=>("value"in t&&e.push(t),e)),[]))(t.children);e.push({options:n,label:t.label})}return"value"in t&&e.push(Object.assign({},t)),e}),[]),R=(e,t)=>t?t.findIndex((t=>{if(T(t))return!1;if(t.disabled)return!1;const n=y(t);return(o=e,new RegExp(o.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"i")).test(n);var o})):-1,A=e=>{var t;return(null===(t=null===e||void 0===e?void 0:e.current)||void 0===t?void 0:t.getItems())||[]},x=e=>{const{options:t,filter:n,filterOption:o}=e,i=t.filter((e=>!!T(e)||(o?o(e,n):((e,t)=>{const n=y(e).toLocaleLowerCase(),o=t.toLocaleLowerCase();return-1!==n.indexOf(o)})(e,n))));return i.reduce(((e,t,n)=>{const o=T(t),s=T(e[e.length-1]),r=n===i.length-1;return o&&s&&e.pop(),(!o||o&&!r)&&e.push(t),e}),[])};function N(e){const t=e.offsetParent;if(t instanceof HTMLElement){const n=t.offsetHeight,o=t.scrollTop,i=e.offsetTop;i+e.offsetHeight>=o+n?t.scrollTo({top:i-n+e.offsetHeight}):i<=o&&t.scrollTo({top:i})}return!0}const H=(0,m.om)("select-list"),z=({option:e,renderOptionGroup:t})=>t?o.createElement("div",{className:H("group-label-custom")},t(e)):o.createElement("div",{className:H("group-label",{empty:""===e.label})},o.createElement("div",{className:H("group-label-content")},e.label));var I=n(25569),k=n(99991);const P=(0,m.om)("select-list"),L=({option:e})=>{const{content:t,children:n,disabled:i,title:s}=e;return o.createElement("span",{title:s,className:P("option-default-label",{disabled:i})},t||n)},M=e=>{const{renderOption:t,value:n,option:i,multiple:s}=e,r=-1!==n.indexOf(i.value),a=t?t(i):o.createElement(L,{option:i});return o.createElement("div",{"data-qa":i.qa,className:P("option",{colored:r&&!s,disabled:i.disabled})},s&&o.createElement(k.I,{className:P("tick-icon",{shown:r&&s}),data:I.A}),a)};var B=n(29322),D=n(74417);const F=e=>{const t=o.useRef(null);return(0,B.v)({element:t.current,onIntersect:null===e||void 0===e?void 0:e.onIntersect}),o.createElement("div",{ref:t,className:(0,f.C1)("loading-indicator")},o.createElement(D.a,null))},W={value:"__SELECT_LIST_ITEM_LOADING__",disabled:!0},j=o.forwardRef(((e,t)=>{const{onOptionClick:n,renderOption:i,renderOptionGroup:s,getOptionHeight:r,getOptionGroupHeight:a,size:l,flattenOptions:c,value:u,multiple:d,virtualized:h,mobile:p,loading:v,onLoadMore:m,id:g,activeIndex:b,onChangeActive:C}=e,E=o.useMemo((()=>v?[...c,W]:c),[c,v]),T=o.useMemo((()=>c.reduce(((e,t,n)=>("value"in t&&u.includes(t.value)&&e.push(n),e)),[])),[c,u]),y=(e=>{const{getOptionHeight:t,getOptionGroupHeight:n,size:o,options:i,mobile:s}=e;return i.reduce(((e,i,r)=>e+S({getOptionHeight:t,getOptionGroupHeight:n,size:o,option:i,index:r,mobile:s})),0)})({options:E,getOptionHeight:r,getOptionGroupHeight:a,size:l,mobile:p}),O=o.useCallback(((e,t)=>S({getOptionHeight:r,getOptionGroupHeight:a,size:l,option:e,index:t,mobile:p})),[r,a,p,l]),R=o.useCallback(((e,t,n)=>{if("label"in e){const t=s?e=>s(e,{itemHeight:O(e,n)}):void 0;return o.createElement(z,{option:e,renderOptionGroup:t})}if(e.value===W.value)return o.createElement(F,{onIntersect:0===n?void 0:m});const r=i?e=>i(e,{itemHeight:O(e,n)}):void 0;return o.createElement(M,{option:e,value:u,multiple:d,renderOption:r})}),[i,s,u,d,O,m]);return o.createElement(w.B,{ref:t,className:(0,f.C1)({size:l,virtualized:h,mobile:p}),qa:f.pn.LIST,itemClassName:(0,f.C1)("item"),itemHeight:O,itemsHeight:h?y:void 0,items:E,filterable:!1,virtualized:h,renderItem:R,onItemClick:n,selectedItemIndex:T,id:g,role:"listbox",activeItemIndex:b,onChangeActive:C,deactivateOnLeave:!1,onScrollToItem:N})}));j.displayName="SelectList";const Y=(0,m.om)("select-empty-placeholder"),_=({renderEmptyOptions:e,filter:t})=>o.createElement("div",{className:Y({empty:!e})},null===e||void 0===e?void 0:e({filter:t}));var $=n(19884),q=n(93628),V=n(794);function G(e){const{name:t,value:n,disabled:i,form:s,onReset:r}=e,a=(0,V.d)({onReset:r,initialValue:n});return!t||i?null:0===n.length?o.createElement("input",{ref:a,type:"hidden",name:t,value:n,form:s,disabled:i}):o.createElement(o.Fragment,null,n.map(((e,n)=>o.createElement("input",{key:e,ref:0===n?a:void 0,value:e,type:"hidden",name:t,form:s,disabled:i}))))}const K=e=>{const{onChange:t,open:n,disabled:s}=e,[r,a]=o.useState(""),[l,c]=o.useState(),u=o.useCallback((e=>{if(clearTimeout(l),e){const e=window.setTimeout((()=>a("")),f.FY);c(e)}}),[l]),d=o.useCallback((e=>{e.stopPropagation();const t=((e,t)=>{const n=1===e.length;let o="";return e===i.D.BACKSPACE&&t.length?o=t.slice(0,t.length-1):n&&(o=(t+e).trim()),o})(e.key,r);r!==t&&(u(t),a(t))}),[u,r]);o.useEffect((()=>(n&&!s?document.addEventListener("keydown",d):n||s||a(""),()=>{n&&!s&&document.removeEventListener("keydown",d)})),[d,n,s]),o.useEffect((()=>(n||clearTimeout(l),()=>clearTimeout(l))),[n,l]),o.useEffect((()=>{t(r)}),[t,r])};function U(e,t){let n=-1;return t.length>0&&(n=e.findIndex((e=>"value"in e&&t.includes(e.value)&&!e.disabled))),-1===n&&(n=e.findIndex((e=>"value"in e&&!e.disabled))),-1===n?void 0:n}var J=n(87924),Z=n.n(J);function X(e){return Z()(e,[f.zJ])}function Q(e){const{filter:t="",filterable:n,filterOption:i}=e,s=o.useMemo((()=>X(e.options)?e.options:(e=>{const t=e.reduce(((e,t)=>("label"in t?(e.push({label:t.label,disabled:!0,data:t.data}),e.push(...t.options||[])):e.push(t),e)),[]);return Object.defineProperty(t,f.zJ,{enumerable:!1,value:{}}),t})(e.options)),[e.options]),r=o.useMemo((()=>n?x({options:s,filter:t,filterOption:i}):s),[t,n,i,s]);return s[f.zJ].filteredOptions=r,s}const ee=({renderFilter:e,renderList:t})=>o.createElement(o.Fragment,null,e(),t()),te=o.forwardRef((function(e,t){const{onUpdate:n,onOpenChange:v,onFilterChange:m,renderControl:g,renderFilter:b,renderOption:C,renderOptionGroup:w,renderSelectedOption:S,renderEmptyOptions:x,renderPopup:N=ee,getOptionHeight:H,getOptionGroupHeight:z,filterOption:I,name:k,form:P,className:L,controlClassName:M,popupClassName:B,qa:D,value:F,defaultValue:W,defaultOpen:Y,open:V,label:J,placeholder:te,filterPlaceholder:ne,width:oe,popupWidth:ie,popupPlacement:se,error:re,virtualizationThreshold:ae=f.Us,view:le="normal",size:ce="m",pin:ue="round-round",multiple:de=!1,disabled:he=!1,filterable:pe=!1,filter:ve,disablePortal:me,hasClear:fe=!1,onClose:ge,id:be,hasCounter:Ce,renderCounter:Ee,title:we}=e,Te=(0,p.I)(),[Se,ye]=(0,s.P)(ve,"",m),Oe=o.useRef(null),Re=o.useRef(null),Ae=o.useRef(null),xe=o.useRef(null),Ne=(0,r.N)(t,Re),{value:He,open:ze,toggleOpen:Ie,setValue:ke,handleSelection:Pe,handleClearValue:Le}=(({defaultOpen:e,onClose:t,onOpenChange:n,open:i,value:r,defaultValue:c=[],multiple:u,onUpdate:d,disabled:h})=>{const[p,v]=(0,s.P)(r,c,d),[m,f]=o.useState(),g=(0,l.F)({defaultOpen:e,onClose:t,onOpenChange:n,open:i}),{toggleOpen:b}=g,C=(0,a.Tt)(g,["toggleOpen"]),E=o.useCallback((e=>{h||v(e)}),[v,h]),w=o.useCallback((e=>{if(!p.includes(e.value)){const t=[e.value];E(t)}b(!1)}),[p,E,b]),T=o.useCallback((e=>{const t=p.includes(e.value)?p.filter((t=>t!==e.value)):[...p,e.value];E(t)}),[p,E]),S=o.useCallback((e=>{u?T(e):w(e)}),[u,w,T]),y=o.useCallback((()=>{E([])}),[E]);return Object.assign({value:p,activeIndex:m,setValue:E,handleSelection:S,handleClearValue:y,toggleOpen:b,setActiveIndex:f},C)})({onUpdate:n,value:F,defaultValue:W,defaultOpen:Y,multiple:de,open:V,onClose:ge,onOpenChange:v,disabled:he});o.useEffect((()=>{!ze&&pe&&Te&&setTimeout((()=>{ye("")}),300)}),[ze,pe,ye,Te]);const Me=Q({options:e.options||O(e.children),filter:Se,filterable:pe,filterOption:I}),Be=function(e){if(!X(e))throw Error("You should use options generated by useSelectOptions hook");return Z()(e,[f.zJ,"filteredOptions"])}(Me),De=((e,t,n)=>{if(0===t.length)return null;const i=e.filter((e=>!T(e))),s=t.reduce(((e,t)=>{const n=i.find((e=>e.value===t));return e.push(n||{value:t}),e}),[]);return n?s.map(((e,t)=>o.createElement(o.Fragment,{key:e.value},n(e,t)))):s.map((e=>y(e))).join(", ")})(Me,He,S),Fe=Be.length>=ae,{errorMessage:We,errorPlacement:je,validationState:Ye}=(0,h.Av)({error:re,errorMessage:e.errorMessage,errorPlacement:e.errorPlacement||"outside",validationState:e.validationState}),_e=(0,c.u)(),$e="invalid"===Ye,qe=$e&&Boolean(We)&&"outside"===je,Ve=$e&&Boolean(We)&&"inside"===je,Ge=o.useCallback((e=>{var t,n;if(e&&!(null===e||void 0===e?void 0:e.disabled)&&!("label"in e)){if(de){const e=null===(t=null===xe||void 0===xe?void 0:xe.current)||void 0===t?void 0:t.getActiveItem();null===(n=Ae.current)||void 0===n||n.focus(),"number"===typeof e&&setTimeout((()=>{var t;null===(t=null===xe||void 0===xe?void 0:xe.current)||void 0===t||t.activateItem(e,!0)}),50)}Pe(e)}}),[Pe,de]),Ke=o.useCallback((e=>{var t;[i.D.ENTER,i.D.SPACEBAR].includes(e.key)&&ze&&(e.preventDefault(),e.key===i.D.SPACEBAR&&Ge((e=>{var t;const n=A(e),o=null===(t=null===e||void 0===e?void 0:e.current)||void 0===t?void 0:t.getActiveItem();return"number"===typeof o?n[o]:void 0})(xe))),[i.D.ARROW_DOWN,i.D.ARROW_UP].includes(e.key)&&!ze&&(e.preventDefault(),Ie()),null===(t=null===xe||void 0===xe?void 0:xe.current)||void 0===t||t.onKeyDown(e)}),[Ge,ze,Ie]),Ue=o.useCallback((e=>{var t;null===(t=null===xe||void 0===xe?void 0:xe.current)||void 0===t||t.onKeyDown(e)}),[]),Je=o.useCallback((e=>{var t;if(e){const n=R(e,A(xe));"number"===typeof n&&-1!==n&&(null===(t=null===xe||void 0===xe?void 0:xe.current)||void 0===t||t.activateItem(n,!0))}}),[]);K({onChange:Je,open:ze,disabled:pe}),o.useEffect((()=>{var e;ze&&pe&&(null===(e=Ae.current)||void 0===e||e.focus())}),[ze,pe]);const Ze=Object.assign({},"max"===oe&&{width:oe}),Xe={};"number"===typeof oe&&(Xe.width=oe);const Qe=o.useCallback((()=>Ie(!1)),[Ie]),{onFocus:et,onBlur:tt}=e,{focusWithinProps:nt}=(0,u.R)({onFocusWithin:et,onBlurWithin:o.useCallback((e=>{null===tt||void 0===tt||tt(e),Qe()}),[Qe,tt])}),ot=(0,c.u)(),it=null!==be&&void 0!==be?be:ot,st=`select-popup-${it}`,[rt,at]=function({options:e,value:t,open:n}){const[i,s]=o.useState((()=>{if(n)return U(e,t)})),[r,a]=o.useState(n);return r!==n&&(a(n),n&&s(U(e,t))),[n&&void 0!==i&&i<e.length&&!e[i].disabled?i:void 0,s]}({options:Be,open:ze,value:He});return o.createElement("div",Object.assign({ref:Oe,className:(0,f.gm)(Ze,L)},nt,{style:Xe,tabIndex:-1}),o.createElement($.Y,{toggleOpen:Ie,hasClear:fe,clearValue:Le,ref:Ne,className:M,qa:D,view:le,size:ce,pin:ue,label:J,placeholder:te,selectedOptionsContent:De,isErrorVisible:$e,errorMessage:Ve?We:void 0,open:ze,disabled:he,onKeyDown:Ke,renderControl:g,value:He,popupId:st,selectId:it,activeIndex:rt,hasCounter:de&&Ce,renderCounter:Ee,title:we}),o.createElement(q.t,{ref:Oe,className:B,controlRef:Re,width:ie,open:ze,handleClose:Qe,disablePortal:me,virtualized:Fe,mobile:Te,placement:se,onAfterClose:pe?()=>{ye("")}:void 0},N({renderFilter:()=>pe?o.createElement(E,{ref:Ae,size:ce,value:Se,placeholder:ne,onChange:ye,onKeyDown:Ue,renderFilter:b,popupId:st,activeIndex:rt}):null,renderList:()=>Be.length||e.loading?o.createElement(j,{ref:xe,size:ce,value:He,mobile:Te,flattenOptions:Be,multiple:de,virtualized:Fe,onOptionClick:Ge,renderOption:C,renderOptionGroup:w,getOptionHeight:H,getOptionGroupHeight:z,loading:e.loading,onLoadMore:e.onLoadMore,id:st,activeIndex:rt,onChangeActive:at}):o.createElement(_,{filter:Se,renderEmptyOptions:x})})),o.createElement(d.o,{errorMessage:qe?We:null,errorMessageId:_e}),o.createElement(G,{name:k,value:He,disabled:he,form:P,onReset:ke}))}));te.Option=e=>null,te.OptionGroup=e=>null},25569:(e,t,n)=>{n.d(t,{A:()=>i});var o=n(59284);const i=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.488 3.43a.75.75 0 0 1 .081 1.058l-6 7a.75.75 0 0 1-1.1.042l-3.5-3.5A.75.75 0 0 1 4.03 6.97l2.928 2.927 5.473-6.385a.75.75 0 0 1 1.057-.081",clipRule:"evenodd"}))},33705:(e,t,n)=>{n.d(t,{I:()=>a});var o=n(59284),i=n(13066),s=n(99991);const r=(0,n(69220).om)("arrow-toggle");function a({size:e=16,direction:t="bottom",className:n,qa:a}){return o.createElement("span",{style:{width:e,height:e},className:r({direction:t},n),"data-qa":a},o.createElement(s.I,{data:i.A,size:e}))}},51301:(e,t,n)=>{n.d(t,{R:()=>s});var o=n(59284);class i{constructor(e,t,n={}){var o,i;this.nativeEvent=t,this.target=null!==(o=n.target)&&void 0!==o?o:t.target,this.currentTarget=null!==(i=n.currentTarget)&&void 0!==i?i:t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}}function s(e){const{onFocusWithin:t,onBlurWithin:n,onFocusWithinChange:s,isDisabled:r}=e,a=o.useRef(!1),l=o.useCallback((e=>{a.current||document.activeElement!==e.target||(a.current=!0,t&&t(e),s&&s(!0))}),[t,s]),c=o.useCallback((e=>{a.current&&(a.current=!1,n&&n(e),s&&s(!1))}),[n,s]),{onBlur:u,onFocus:d}=function({onFocus:e,onBlur:t,isDisabled:n}){const s=o.useRef(!1),r=o.useRef(null);o.useEffect((()=>{if(n)return;const e=function(){s.current=!1},o=function(e){if(!s.current&&r.current){const n=new FocusEvent("blur",Object.assign(Object.assign({},e),{relatedTarget:e.target,bubbles:!1,cancelable:!1}));t(new i("blur",n,{target:r.current,currentTarget:r.current})),r.current=null}};return window.addEventListener("focus",e,{capture:!0}),window.addEventListener("focusin",o),()=>{window.removeEventListener("focus",e,{capture:!0}),window.removeEventListener("focusin",o)}}),[n,t]);const a=o.useCallback((e=>{document.activeElement===e.target||null!==e.relatedTarget&&e.relatedTarget!==document.body&&e.relatedTarget!==document||(t(e),r.current=null)}),[t]),l=function(e){const t=o.useRef({isFocused:!1,observer:null});return o.useEffect((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]),o.useCallback((n=>{const o=n.target;if(o instanceof HTMLButtonElement||o instanceof HTMLInputElement||o instanceof HTMLTextAreaElement||o instanceof HTMLSelectElement){t.current.isFocused=!0;const n=n=>{t.current.isFocused=!1,o.disabled&&(null===e||void 0===e||e(new i("blur",n))),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",n,{once:!0});const s=new MutationObserver((()=>{if(t.current.isFocused&&o.disabled){s.disconnect(),t.current.observer=null;const e=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),o.dispatchEvent(new FocusEvent("focusout",{relatedTarget:e,bubbles:!0}))}}));s.observe(o,{attributes:!0,attributeFilter:["disabled"]}),t.current.observer=s}}),[e])}(t),c=o.useCallback((t=>{s.current=!0,r.current=t.target,l(t),e(t)}),[l,e]);return{onBlur:a,onFocus:c}}({onFocus:l,onBlur:c,isDisabled:r});return r?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:u}}}},56353:(e,t,n)=>{n.d(t,{C1:()=>a,Di:()=>l,Eq:()=>p,FY:()=>v,KK:()=>c,Us:()=>m,Vm:()=>d,Zz:()=>r,gP:()=>h,gm:()=>i,ji:()=>s,pn:()=>f,t5:()=>u,zJ:()=>g});var o=n(69220);const i=(0,o.om)("select"),s=(0,o.om)("select-control"),r=(0,o.om)("select-control__button"),a=(0,o.om)("select-list"),l=(0,o.om)("select-clear"),c={s:28,m:28,l:32,xl:36},u=32,d=5,h=1,p=100,v=2e3,m=50,f={LIST:"select-list",POPUP:"select-popup",SHEET:"select-sheet",CLEAR:"select-clear",FILTER_INPUT:"select-filter-input"},g=Symbol("flatten")},69024:(e,t,n)=>{n.d(t,{a:()=>s,j:()=>i});var o=n(59284);function i(e,t){return e.map((e=>{var n;let o;e.sub&&(o=i(e.sub,t));const s=null!==(n=t[e.name])&&void 0!==n?n:e.width;return Object.assign(Object.assign({},e),{width:s,sub:o})}))}function s({saveSizes:e,getSizes:t}){const[n,i]=o.useState((()=>t()));return[n,o.useCallback(((t,n)=>{i((o=>{const i=Object.assign(Object.assign({},o),{[t]:n});return e(i),i}))}),[e])]}},89226:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(72837);const i=JSON.parse('{"label_clear":"Clear","label_show-error-info":"Show popup with error info","label_filter":"Filter"}'),s=JSON.parse('{"label_clear":"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c","label_show-error-info":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u043e\u043f\u0430\u043f \u0441 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0435\u0439 \u043e\u0431 \u043e\u0448\u0438\u0431\u043a\u0435","label_filter":"\u0424\u0438\u043b\u044c\u0442\u0440"}'),r=(0,o.N)({en:i,ru:s},"Select")},92609:(e,t,n)=>{n.d(t,{F:()=>s});var o=n(59284),i=n(85736);const s=e=>{var t;const{onOpenChange:n,onClose:s}=e,r=o.useCallback((e=>{null===n||void 0===n||n(e),!1===e&&s&&s()}),[n,s]),[a,l]=(0,i.P)(e.open,null!==(t=e.defaultOpen)&&void 0!==t&&t,r),c=o.useCallback((e=>{l("boolean"===typeof e?e:!a)}),[a,l]);return{open:a,toggleOpen:c}}},93628:(e,t,n)=>{n.d(t,{t:()=>p});var o=n(59284),i=n(39238),s=n(12640),r=n(69220),a=n(56353);const l=e=>e-2*a.gP,c=(e,t,n)=>{let o=t;return o="number"===typeof e?e:"fit"===e?l(t):((e,t)=>t?e>a.Eq?e:a.Eq:l(e))(t,n),`${o}px`},u=e=>{const{width:t,disablePortal:n,virtualized:o}=e;return[{name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e,name:n})=>{var i;if(null===(i=e.modifiersData[`${n}#persistent`])||void 0===i?void 0:i.skip)return;const s=c(t,e.rects.reference.width,o);"number"!==typeof t&&"fit"!==t?(e.styles.popper.minWidth=s,e.styles.popper.width=void 0):(e.styles.popper.minWidth=s,e.styles.popper.width=s),e.styles.popper.maxWidth=`max(90vw, ${l(e.rects.reference.width)}px)`,e.modifiersData[`${n}#persistent`]={skip:"number"!==typeof t}},effect:({state:e,name:n})=>{var i;if(null===(i=e.modifiersData[`${n}#persistent`])||void 0===i?void 0:i.skip)return;const s=c(t,e.elements.reference.offsetWidth,o);"number"!==typeof t&&"fit"!==t?e.elements.popper.style.minWidth=s:(e.elements.popper.style.minWidth=s,e.elements.popper.style.width=s),e.elements.popper.style.maxWidth=`max(90vw, ${e.elements.reference.offsetWidth}px)`}},{name:"preventOverflow",options:{padding:10,altBoundary:n,altAxis:!0}}]},d=(0,r.om)("select-popup"),h=["bottom-start","bottom-end","top-start","top-end"],p=o.forwardRef((({handleClose:e,onAfterClose:t,width:n,open:r,placement:l=h,controlRef:c,children:p,className:v,disablePortal:m,virtualized:f,mobile:g,id:b},C)=>g?o.createElement(s.c,{qa:a.pn.SHEET,className:v,visible:Boolean(r),onClose:e},p):o.createElement(i.z,{contentClassName:d(null,v),qa:a.pn.POPUP,anchorRef:C,placement:l,offset:[a.gP,a.gP],open:r,onClose:e,disablePortal:m,restoreFocus:!0,restoreFocusRef:c,modifiers:u({width:n,disablePortal:m,virtualized:f}),id:b,onTransitionExited:t},p)));p.displayName="SelectPopup"}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/99.73d10ff1.chunk.js b/ydb/core/viewer/monitoring/static/js/99.73d10ff1.chunk.js new file mode 100644 index 0000000000..74b330448b --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/99.73d10ff1.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[99],{5744:(e,t,l)=>{l.d(t,{A:()=>a});var n=l(59284);const a=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m3.1-8.55a.75.75 0 1 0-1.2-.9L7.419 8.858 6.03 7.47a.75.75 0 0 0-1.06 1.06l2 2a.75.75 0 0 0 1.13-.08z",clipRule:"evenodd"}))},6156:(e,t,l)=>{l.d(t,{F:()=>T});var n=l(59284),a=l(81240),o=l(84476),i=l(80604),r=l(99991),s=l(63365),c=l(46423),d=l(87184);const m=n.createContext(null),u=()=>{const e=n.useContext(m);if(!e)throw new Error('Alert: `useAlertContext` hook is used out of "AlertContext"');return e},v=e=>{const{view:t}=u();return n.createElement(o.$,Object.assign({view:"filled"===t?"normal-contrast":void 0},e))};var w=l(69220);const g=(0,w.om)("alert"),h=({layout:e,view:t,children:l})=>n.createElement(m.Provider,{value:{layout:e,view:t}},l);var p=l(18677),f=l(10800),E=l(45720),A=l(43937),b=l(5744),y=l(70825),C=l(71153),x=l(94420);const N=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",d:"m14.61 6.914-7.632 8.08a1.614 1.614 0 0 1-2.69-1.66L5.5 10H2.677A1.677 1.677 0 0 1 1.12 7.7l2.323-5.807A2.22 2.22 0 0 1 5.5.5h4c.968 0 1.637.967 1.298 1.873L10 4.5h3.569a1.431 1.431 0 0 1 1.04 2.414"}));var z=l(27612);const k={danger:{filled:p.A,outlined:f.A},info:{filled:E.A,outlined:A.A},success:{filled:b.A,outlined:y.A},warning:{filled:C.A,outlined:x.A},utility:{filled:N,outlined:z.A},normal:null};var L=l(98089);var R=l(72837);const M=JSON.parse('{"label_close":"Close"}'),O=JSON.parse('{"label_close":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"}'),j=(0,R.N)({en:M,ru:O},"Alert"),T=e=>{const{theme:t="normal",view:l="filled",layout:m="vertical",message:u,className:v,corners:w,style:p,onClose:f,align:E,qa:A}=e;return n.createElement(h,{layout:m,view:l},n.createElement(i.Z,{style:p,className:g({corners:w},(0,c.Y)({py:4,px:5},v)),theme:t,view:l,qa:A},n.createElement(d.s,{gap:"3",alignItems:E},"undefined"===typeof e.icon?n.createElement(T.Icon,{theme:t,view:l}):e.icon,n.createElement(d.s,{direction:"vertical"===m?"column":"row",gap:"5",grow:!0},n.createElement(d.s,{gap:"2",grow:!0,className:g("text-content")},n.createElement(d.s,{direction:"column",gap:"1",grow:!0,justifyContent:E},"string"===typeof e.title?n.createElement(T.Title,{text:e.title}):e.title,u)),Array.isArray(e.actions)?n.createElement(T.Actions,{items:e.actions}):e.actions),f&&n.createElement(o.$,{view:"flat",className:g("close-btn"),onClick:f,extraProps:{"aria-label":j("label_close")}},n.createElement(r.I,{data:a.A,size:18,className:(0,s.$)({color:"secondary"})})))))};T.Icon=({className:e,theme:t,view:l="filled",size:a=18})=>{const o=k[t];if(!o)return null;let i;return"success"===t?i="positive":"normal"!==t&&(i=t),n.createElement("div",{className:g("icon",(0,s.$)({color:i},e))},n.createElement(r.I,{data:o[l],size:a}))},T.Title=({text:e,className:t})=>n.createElement(L.E,{variant:"subheader-2",className:g("title",t)},e),T.Actions=({items:e,children:t,className:l})=>{const{layout:a}=u();return n.createElement(d.s,{className:g("actions",{minContent:"horizontal"===a},l),direction:"row",gap:"3",wrap:!0,alignItems:"horizontal"===a?"center":"flex-start"},(null===e||void 0===e?void 0:e.map((({handler:e,text:t},l)=>n.createElement(v,{key:l,onClick:e},t))))||t)},T.Action=v},10800:(e,t,l)=>{l.d(t,{A:()=>a});var n=l(59284);const a=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.5 8a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0M6.53 5.47a.75.75 0 0 0-1.06 1.06L6.94 8 5.47 9.47a.75.75 0 1 0 1.06 1.06L8 9.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L9.06 8l1.47-1.47a.75.75 0 1 0-1.06-1.06L8 6.94z",clipRule:"evenodd"}))},18677:(e,t,l)=>{l.d(t,{A:()=>a});var n=l(59284);const a=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14M6.53 5.47a.75.75 0 0 0-1.06 1.06L6.94 8 5.47 9.47a.75.75 0 1 0 1.06 1.06L8 9.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L9.06 8l1.47-1.47a.75.75 0 1 0-1.06-1.06L8 6.94z",clipRule:"evenodd"}))},45720:(e,t,l)=>{l.d(t,{A:()=>a});var n=l(59284);const a=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m1-9.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0M8 7.75a.75.75 0 0 1 .75.75V11a.75.75 0 0 1-1.5 0V8.5A.75.75 0 0 1 8 7.75",clipRule:"evenodd"}))},71153:(e,t,l)=>{l.d(t,{A:()=>a});var n=l(59284);const a=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.835 2.244c.963-1.665 3.367-1.665 4.33 0l4.916 8.505c.964 1.666-.24 3.751-2.164 3.751H3.083c-1.925 0-3.128-2.085-2.165-3.751zM8 5a.75.75 0 0 1 .75.75v2a.75.75 0 1 1-1.5 0v-2A.75.75 0 0 1 8 5m1 5.75a1 1 0 1 1-2 0 1 1 0 0 1 2 0",clipRule:"evenodd"}))},80604:(e,t,l)=>{l.d(t,{Z:()=>s});var n=l(27145),a=l(59284),o=l(46734),i=l(9296);const r=(0,l(69220).om)("card"),s=a.forwardRef((function(e,t){const{type:l="container",theme:s,view:c,size:d="m",children:m,className:u,onClick:v,disabled:w,selected:g}=e,h=(0,n.Tt)(e,["type","theme","view","size","children","className","onClick","disabled","selected"]),p="selection"===l,f="container"===l,E=("action"===l||p)&&Boolean(v)&&!w,A=f?"normal":void 0,b=f||p?"outlined":void 0,y=E?v:void 0,{onKeyDown:C}=(0,o.N)(v);return a.createElement(i.a,Object.assign({ref:t,role:E?"button":void 0,className:r({theme:s||A,view:c||b,type:l,selected:g,size:d,disabled:w,clickable:E},u),onClick:y,onKeyDown:E?C:void 0,tabIndex:E?0:void 0},h),m)}))},90099:(e,t,l)=>{l.r(t),l.d(t,{TopPanel:()=>s});var n=l(59284),a=l(6156),o=l(49034),i=l(16258);l(82435);const r=({topAlert:e})=>{const t=n.useRef(null),l=(e=>{const[t,l]=n.useState(0);return n.useEffect((()=>{if(e.current){const{current:t}=e;l(t.clientHeight)}}),[e]),t})(t),a=n.useCallback((e=>{const t=document.getElementsByClassName("g-root").item(0);null===t||void 0===t||t.style.setProperty("--gn-aside-top-panel-height",e+"px")}),[]),i=n.useCallback((()=>{var e;t.current&&a((null===(e=t.current)||void 0===e?void 0:e.clientHeight)||0)}),[t,a]);return n.useLayoutEffect((()=>{const t=(0,o.d)(i,200,{leading:!0});return e&&(window.addEventListener("resize",t),t()),()=>{window.removeEventListener("resize",t),a(0)}}),[e,l,t,i,a]),{topRef:t,updateTopSize:i}},s=({topAlert:e})=>{const{topRef:t,updateTopSize:l}=r({topAlert:e}),[o,s]=n.useState(!0),c=n.useCallback((()=>{var t;s(!1),null===(t=null===e||void 0===e?void 0:e.onCloseTopAlert)||void 0===t||t.call(e)}),[e]);return n.useEffect((()=>{o||l()}),[o,l]),e&&e.message?n.createElement("div",{ref:t,className:(0,i.b)("pane-top",{opened:o})},o&&n.createElement(n.Fragment,null,n.createElement(a.F,{className:(0,i.b)("pane-top-alert",{centered:e.centered,dense:e.dense}),corners:"square",layout:"horizontal",align:e.align,theme:e.theme||"warning",view:e.view,icon:e.icon,title:e.title,message:e.message,actions:e.actions,onClose:e.closable?c:void 0}),n.createElement("div",{className:(0,i.b)("pane-top-divider")}))):null}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/99.dd803d0d.chunk.js b/ydb/core/viewer/monitoring/static/js/99.dd803d0d.chunk.js deleted file mode 100644 index 443904629b..0000000000 --- a/ydb/core/viewer/monitoring/static/js/99.dd803d0d.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[99],{45720:(e,t,l)=>{l.d(t,{A:()=>a});var n=l(59284);const a=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m1-9.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0M8 7.75a.75.75 0 0 1 .75.75V11a.75.75 0 0 1-1.5 0V8.5A.75.75 0 0 1 8 7.75",clipRule:"evenodd"}))},10800:(e,t,l)=>{l.d(t,{A:()=>a});var n=l(59284);const a=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.5 8a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0M6.53 5.47a.75.75 0 0 0-1.06 1.06L6.94 8 5.47 9.47a.75.75 0 1 0 1.06 1.06L8 9.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L9.06 8l1.47-1.47a.75.75 0 1 0-1.06-1.06L8 6.94z",clipRule:"evenodd"}))},18677:(e,t,l)=>{l.d(t,{A:()=>a});var n=l(59284);const a=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14M6.53 5.47a.75.75 0 0 0-1.06 1.06L6.94 8 5.47 9.47a.75.75 0 1 0 1.06 1.06L8 9.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L9.06 8l1.47-1.47a.75.75 0 1 0-1.06-1.06L8 6.94z",clipRule:"evenodd"}))},71153:(e,t,l)=>{l.d(t,{A:()=>a});var n=l(59284);const a=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.835 2.244c.963-1.665 3.367-1.665 4.33 0l4.916 8.505c.964 1.666-.24 3.751-2.164 3.751H3.083c-1.925 0-3.128-2.085-2.165-3.751zM8 5a.75.75 0 0 1 .75.75v2a.75.75 0 1 1-1.5 0v-2A.75.75 0 0 1 8 5m1 5.75a1 1 0 1 1-2 0 1 1 0 0 1 2 0",clipRule:"evenodd"}))},90099:(e,t,l)=>{l.r(t),l.d(t,{TopPanel:()=>s});var n=l(59284),a=l(55299),o=l(49034),i=l(16258);l(82435);const r=({topAlert:e})=>{const t=n.useRef(null),l=(e=>{const[t,l]=n.useState(0);return n.useEffect((()=>{if(e.current){const{current:t}=e;l(t.clientHeight)}}),[e]),t})(t),a=n.useCallback((e=>{const t=document.getElementsByClassName("g-root").item(0);null===t||void 0===t||t.style.setProperty("--gn-aside-top-panel-height",e+"px")}),[]),i=n.useCallback((()=>{var e;t.current&&a((null===(e=t.current)||void 0===e?void 0:e.clientHeight)||0)}),[t,a]);return n.useLayoutEffect((()=>{const t=(0,o.d)(i,200,{leading:!0});return e&&(window.addEventListener("resize",t),t()),()=>{window.removeEventListener("resize",t),a(0)}}),[e,l,t,i,a]),{topRef:t,updateTopSize:i}},s=({topAlert:e})=>{const{topRef:t,updateTopSize:l}=r({topAlert:e}),[o,s]=n.useState(!0),c=n.useCallback((()=>{var t;s(!1),null===(t=null===e||void 0===e?void 0:e.onCloseTopAlert)||void 0===t||t.call(e)}),[e]);return n.useEffect((()=>{o||l()}),[o,l]),e&&e.message?n.createElement("div",{ref:t,className:(0,i.b)("pane-top",{opened:o})},o&&n.createElement(n.Fragment,null,n.createElement(a.F,{className:(0,i.b)("pane-top-alert",{centered:e.centered,dense:e.dense}),corners:"square",layout:"horizontal",align:e.align,theme:e.theme||"warning",view:e.view,icon:e.icon,title:e.title,message:e.message,actions:e.actions,onClose:e.closable?c:void 0}),n.createElement("div",{className:(0,i.b)("pane-top-divider")}))):null}},55299:(e,t,l)=>{l.d(t,{F:()=>T});var n=l(59284),a=l(81240),o=l(84476),i=l(80604),r=l(99991),s=l(63365),c=l(46423),d=l(87184);const m=n.createContext(null),u=()=>{const e=n.useContext(m);if(!e)throw new Error('Alert: `useAlertContext` hook is used out of "AlertContext"');return e},v=e=>{const{view:t}=u();return n.createElement(o.$,Object.assign({view:"filled"===t?"normal-contrast":void 0},e))};var w=l(69220);const g=(0,w.om)("alert"),h=({layout:e,view:t,children:l})=>n.createElement(m.Provider,{value:{layout:e,view:t}},l);var p=l(18677),f=l(10800),E=l(45720),b=l(43937);const A=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m3.1-8.55a.75.75 0 1 0-1.2-.9L7.419 8.858 6.03 7.47a.75.75 0 0 0-1.06 1.06l2 2a.75.75 0 0 0 1.13-.08z",clipRule:"evenodd"}));var y=l(70825),C=l(71153),x=l(94420);const N=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",d:"m14.61 6.914-7.632 8.08a1.614 1.614 0 0 1-2.69-1.66L5.5 10H2.677A1.677 1.677 0 0 1 1.12 7.7l2.323-5.807A2.22 2.22 0 0 1 5.5.5h4c.968 0 1.637.967 1.298 1.873L10 4.5h3.569a1.431 1.431 0 0 1 1.04 2.414"}));var z=l(27612);const k={danger:{filled:p.A,outlined:f.A},info:{filled:E.A,outlined:b.A},success:{filled:A,outlined:y.A},warning:{filled:C.A,outlined:x.A},utility:{filled:N,outlined:z.A},normal:null};var L=l(98089);var R=l(72837);const M=JSON.parse('{"label_close":"Close"}'),O=JSON.parse('{"label_close":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"}'),j=(0,R.N)({en:M,ru:O},"Alert"),T=e=>{const{theme:t="normal",view:l="filled",layout:m="vertical",message:u,className:v,corners:w,style:p,onClose:f,align:E,qa:b}=e;return n.createElement(h,{layout:m,view:l},n.createElement(i.Z,{style:p,className:g({corners:w},(0,c.Y)({py:4,px:5},v)),theme:t,view:l,qa:b},n.createElement(d.s,{gap:"3",alignItems:E},"undefined"===typeof e.icon?n.createElement(T.Icon,{theme:t,view:l}):e.icon,n.createElement(d.s,{direction:"vertical"===m?"column":"row",gap:"5",grow:!0},n.createElement(d.s,{gap:"2",grow:!0,className:g("text-content")},n.createElement(d.s,{direction:"column",gap:"1",grow:!0,justifyContent:E},"string"===typeof e.title?n.createElement(T.Title,{text:e.title}):e.title,u)),Array.isArray(e.actions)?n.createElement(T.Actions,{items:e.actions}):e.actions),f&&n.createElement(o.$,{view:"flat",className:g("close-btn"),onClick:f,extraProps:{"aria-label":j("label_close")}},n.createElement(r.I,{data:a.A,size:18,className:(0,s.$)({color:"secondary"})})))))};T.Icon=({className:e,theme:t,view:l="filled",size:a=18})=>{const o=k[t];if(!o)return null;let i;return"success"===t?i="positive":"normal"!==t&&(i=t),n.createElement("div",{className:g("icon",(0,s.$)({color:i},e))},n.createElement(r.I,{data:o[l],size:a}))},T.Title=({text:e,className:t})=>n.createElement(L.E,{variant:"subheader-2",className:g("title",t)},e),T.Actions=({items:e,children:t,className:l})=>{const{layout:a}=u();return n.createElement(d.s,{className:g("actions",{minContent:"horizontal"===a},l),direction:"row",gap:"3",wrap:!0,alignItems:"horizontal"===a?"center":"flex-start"},(null===e||void 0===e?void 0:e.map((({handler:e,text:t},l)=>n.createElement(v,{key:l,onClick:e},t))))||t)},T.Action=v},80604:(e,t,l)=>{l.d(t,{Z:()=>s});var n=l(27145),a=l(59284),o=l(46734),i=l(9296);const r=(0,l(69220).om)("card"),s=a.forwardRef((function(e,t){const{type:l="container",theme:s,view:c,size:d="m",children:m,className:u,onClick:v,disabled:w,selected:g}=e,h=(0,n.Tt)(e,["type","theme","view","size","children","className","onClick","disabled","selected"]),p="selection"===l,f="container"===l,E=("action"===l||p)&&Boolean(v)&&!w,b=f?"normal":void 0,A=f||p?"outlined":void 0,y=E?v:void 0,{onKeyDown:C}=(0,o.N)(v);return a.createElement(i.a,Object.assign({ref:t,role:E?"button":void 0,className:r({theme:s||b,view:c||A,type:l,selected:g,size:d,disabled:w,clickable:E},u),onClick:y,onKeyDown:E?C:void 0,tabIndex:E?0:void 0},h),m)}))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/main.806ca619.js b/ydb/core/viewer/monitoring/static/js/main.806ca619.js new file mode 100644 index 0000000000..87d01a07de --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/main.806ca619.js @@ -0,0 +1,2 @@ +/*! For license information please see main.806ca619.js.LICENSE.txt */ +(()=>{var e={54:e=>{"use strict";e.exports=Math.round},112:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10 1.5A.75.75 0 0 0 10 3h1.94L6.97 7.97a.75.75 0 0 0 1.06 1.06L13 4.06V6a.75.75 0 0 0 1.5 0V2.25a.75.75 0 0 0-.75-.75zM7.5 3.25a.75.75 0 0 0-.75-.75H4.5a3 3 0 0 0-3 3v6a3 3 0 0 0 3 3h6a3 3 0 0 0 3-3V9.25a.75.75 0 0 0-1.5 0v2.25a1.5 1.5 0 0 1-1.5 1.5h-6A1.5 1.5 0 0 1 3 11.5v-6A1.5 1.5 0 0 1 4.5 4h2.25a.75.75 0 0 0 .75-.75",clipRule:"evenodd"}))},150:(e,t,n)=>{var r=n(15464),i=n(38469),o=n(60242),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}},359:(e,t,n)=>{"use strict";n.d(t,{D:()=>r});const r={BACKSPACE:"Backspace",ENTER:"Enter",TAB:"Tab",SPACEBAR:" ",SPACEBAR_OLD:"Spacebar",ESCAPE:"Escape",ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",SHIFT:"Shift",HOME:"Home",END:"End"}},370:(e,t,n)=>{"use strict";var r,i;n.d(t,{z:()=>Ct}),function(e){e.assertEqual=e=>e,e.assertIs=function(e){},e.assertNever=function(e){throw new Error},e.arrayToEnum=e=>{const t={};for(const n of e)t[n]=n;return t},e.getValidEnumValues=t=>{const n=e.objectKeys(t).filter((e=>"number"!==typeof t[t[e]])),r={};for(const e of n)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map((function(e){return t[e]})),e.objectKeys="function"===typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(const n of e)if(t(n))return n},e.isInteger="function"===typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"===typeof e&&isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map((e=>"string"===typeof e?`'${e}'`:e)).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"===typeof t?t.toString():t}(r||(r={})),function(e){e.mergeShapes=(e,t)=>({...e,...t})}(i||(i={}));const o=r.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),a=e=>{switch(typeof e){case"undefined":return o.undefined;case"string":return o.string;case"number":return isNaN(e)?o.nan:o.number;case"boolean":return o.boolean;case"function":return o.function;case"bigint":return o.bigint;case"symbol":return o.symbol;case"object":return Array.isArray(e)?o.array:null===e?o.null:e.then&&"function"===typeof e.then&&e.catch&&"function"===typeof e.catch?o.promise:"undefined"!==typeof Map&&e instanceof Map?o.map:"undefined"!==typeof Set&&e instanceof Set?o.set:"undefined"!==typeof Date&&e instanceof Date?o.date:o.object;default:return o.unknown}},s=r.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class l extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){const t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(const i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(r);else if("invalid_return_type"===i.code)r(i.returnTypeError);else if("invalid_arguments"===i.code)r(i.argumentsError);else if(0===i.path.length)n._errors.push(t(i));else{let e=n,r=0;for(;r<i.path.length;){const n=i.path[r];r===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(this),n}static assert(e){if(!(e instanceof l))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,r.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){const t={},n=[];for(const r of this.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}l.create=e=>new l(e);const c=(e,t)=>{let n;switch(e.code){case s.invalid_type:n=e.received===o.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case s.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,r.jsonStringifyReplacer)}`;break;case s.unrecognized_keys:n=`Unrecognized key(s) in object: ${r.joinValues(e.keys,", ")}`;break;case s.invalid_union:n="Invalid input";break;case s.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${r.joinValues(e.options)}`;break;case s.invalid_enum_value:n=`Invalid enum value. Expected ${r.joinValues(e.options)}, received '${e.received}'`;break;case s.invalid_arguments:n="Invalid function arguments";break;case s.invalid_return_type:n="Invalid function return type";break;case s.invalid_date:n="Invalid date";break;case s.invalid_string:"object"===typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"===typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:r.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case s.too_small:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case s.too_big:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case s.custom:n="Invalid input";break;case s.invalid_intersection_types:n="Intersection results could not be merged";break;case s.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case s.not_finite:n="Number must be finite";break;default:n=t.defaultError,r.assertNever(e)}return{message:n}};let u=c;function d(){return u}const f=e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,o=[...n,...i.path||[]],a={...i,path:o};if(void 0!==i.message)return{...i,path:o,message:i.message};let s="";const l=r.filter((e=>!!e)).slice().reverse();for(const c of l)s=c(a,{data:t,defaultError:s}).message;return{...i,path:o,message:s}};function p(e,t){const n=d(),r=f({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===c?void 0:c].filter((e=>!!e))});e.common.issues.push(r)}class h{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){const n=[];for(const r of t){if("aborted"===r.status)return m;"dirty"===r.status&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){const n=[];for(const r of t){const e=await r.key,t=await r.value;n.push({key:e,value:t})}return h.mergeObjectSync(e,n)}static mergeObjectSync(e,t){const n={};for(const r of t){const{key:t,value:i}=r;if("aborted"===t.status)return m;if("aborted"===i.status)return m;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),"__proto__"===t.value||"undefined"===typeof i.value&&!r.alwaysSet||(n[t.value]=i.value)}return{status:e.value,value:n}}}const m=Object.freeze({status:"aborted"}),g=e=>({status:"dirty",value:e}),v=e=>({status:"valid",value:e}),y=e=>"aborted"===e.status,b=e=>"dirty"===e.status,w=e=>"valid"===e.status,x=e=>"undefined"!==typeof Promise&&e instanceof Promise;function _(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function E(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}var S,C,k;"function"===typeof SuppressedError&&SuppressedError,function(e){e.errToObj=e=>"string"===typeof e?{message:e}:e||{},e.toString=e=>"string"===typeof e?e:null===e||void 0===e?void 0:e.message}(S||(S={}));class O{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const N=(e,t)=>{if(w(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new l(e.common.issues);return this._error=t,this._error}}};function T(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');if(t)return{errorMap:t,description:i};return{errorMap:(t,i)=>{var o,a;const{message:s}=e;return"invalid_enum_value"===t.code?{message:null!==s&&void 0!==s?s:i.defaultError}:"undefined"===typeof i.data?{message:null!==(o=null!==s&&void 0!==s?s:r)&&void 0!==o?o:i.defaultError}:"invalid_type"!==t.code?{message:i.defaultError}:{message:null!==(a=null!==s&&void 0!==s?s:n)&&void 0!==a?a:i.defaultError}},description:i}}class A{get description(){return this._def.description}_getType(e){return a(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:a(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new h,ctx:{common:e.parent.common,data:e.data,parsedType:a(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(x(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;const r={common:{issues:[],async:null!==(n=null===t||void 0===t?void 0:t.async)&&void 0!==n&&n,contextualErrorMap:null===t||void 0===t?void 0:t.errorMap},path:(null===t||void 0===t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:a(e)},i=this._parseSync({data:e,path:r.path,parent:r});return N(r,i)}"~validate"(e){var t,n;const r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:a(e)};if(!this["~standard"].async)try{const t=this._parseSync({data:e,path:[],parent:r});return w(t)?{value:t.value}:{issues:r.common.issues}}catch(i){(null===(n=null===(t=null===i||void 0===i?void 0:i.message)||void 0===t?void 0:t.toLowerCase())||void 0===n?void 0:n.includes("encountered"))&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:r}).then((e=>w(e)?{value:e.value}:{issues:r.common.issues}))}async parseAsync(e,t){const n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){const n={common:{issues:[],contextualErrorMap:null===t||void 0===t?void 0:t.errorMap,async:!0},path:(null===t||void 0===t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:a(e)},r=this._parse({data:e,path:n.path,parent:n}),i=await(x(r)?r:Promise.resolve(r));return N(n,i)}refine(e,t){const n=e=>"string"===typeof t||"undefined"===typeof t?{message:t}:"function"===typeof t?t(e):t;return this._refinement(((t,r)=>{const i=e(t),o=()=>r.addIssue({code:s.custom,...n(t)});return"undefined"!==typeof Promise&&i instanceof Promise?i.then((e=>!!e||(o(),!1))):!!i||(o(),!1)}))}refinement(e,t){return this._refinement(((n,r)=>!!e(n)||(r.addIssue("function"===typeof t?t(n,r):t),!1)))}_refinement(e){return new Ae({schema:this,typeName:qe.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return Ie.create(this,this._def)}nullable(){return Pe.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return de.create(this)}promise(){return Te.create(this,this._def)}or(e){return he.create([this,e],this._def)}and(e){return ye.create(this,e,this._def)}transform(e){return new Ae({...T(this._def),schema:this,typeName:qe.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"===typeof e?e:()=>e;return new Re({...T(this._def),innerType:this,defaultValue:t,typeName:qe.ZodDefault})}brand(){return new Le({typeName:qe.ZodBranded,type:this,...T(this._def)})}catch(e){const t="function"===typeof e?e:()=>e;return new De({...T(this._def),innerType:this,catchValue:t,typeName:qe.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return ze.create(this,e)}readonly(){return Fe.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const I=/^c[^\s-]{8,}$/i,P=/^[0-9a-z]+$/,R=/^[0-9A-HJKMNP-TV-Z]{26}$/i,D=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,j=/^[a-z0-9_-]{21}$/i,M=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,L=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,z=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;let F;const B=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,U=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,q=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,$=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,H=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,V=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,W="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",K=new RegExp(`^${W}$`);function G(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`),t}function Y(e){let t=`${W}T${G(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function Q(e,t){if(!M.test(e))return!1;try{const[n]=e.split("."),r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),i=JSON.parse(atob(r));return"object"===typeof i&&null!==i&&(!(!i.typ||!i.alg)&&(!t||i.alg===t))}catch(n){return!1}}function Z(e,t){return!("v4"!==t&&t||!U.test(e))||!("v6"!==t&&t||!$.test(e))}class J extends A{_parse(e){this._def.coerce&&(e.data=String(e.data));if(this._getType(e)!==o.string){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:o.string,received:t.parsedType}),m}const t=new h;let n;for(const o of this._def.checks)if("min"===o.kind)e.data.length<o.value&&(n=this._getOrReturnCtx(e,n),p(n,{code:s.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),t.dirty());else if("max"===o.kind)e.data.length>o.value&&(n=this._getOrReturnCtx(e,n),p(n,{code:s.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),t.dirty());else if("length"===o.kind){const r=e.data.length>o.value,i=e.data.length<o.value;(r||i)&&(n=this._getOrReturnCtx(e,n),r?p(n,{code:s.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):i&&p(n,{code:s.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),t.dirty())}else if("email"===o.kind)z.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"email",code:s.invalid_string,message:o.message}),t.dirty());else if("emoji"===o.kind)F||(F=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),F.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"emoji",code:s.invalid_string,message:o.message}),t.dirty());else if("uuid"===o.kind)D.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"uuid",code:s.invalid_string,message:o.message}),t.dirty());else if("nanoid"===o.kind)j.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"nanoid",code:s.invalid_string,message:o.message}),t.dirty());else if("cuid"===o.kind)I.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"cuid",code:s.invalid_string,message:o.message}),t.dirty());else if("cuid2"===o.kind)P.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"cuid2",code:s.invalid_string,message:o.message}),t.dirty());else if("ulid"===o.kind)R.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"ulid",code:s.invalid_string,message:o.message}),t.dirty());else if("url"===o.kind)try{new URL(e.data)}catch(l){n=this._getOrReturnCtx(e,n),p(n,{validation:"url",code:s.invalid_string,message:o.message}),t.dirty()}else if("regex"===o.kind){o.regex.lastIndex=0;o.regex.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"regex",code:s.invalid_string,message:o.message}),t.dirty())}else if("trim"===o.kind)e.data=e.data.trim();else if("includes"===o.kind)e.data.includes(o.value,o.position)||(n=this._getOrReturnCtx(e,n),p(n,{code:s.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),t.dirty());else if("toLowerCase"===o.kind)e.data=e.data.toLowerCase();else if("toUpperCase"===o.kind)e.data=e.data.toUpperCase();else if("startsWith"===o.kind)e.data.startsWith(o.value)||(n=this._getOrReturnCtx(e,n),p(n,{code:s.invalid_string,validation:{startsWith:o.value},message:o.message}),t.dirty());else if("endsWith"===o.kind)e.data.endsWith(o.value)||(n=this._getOrReturnCtx(e,n),p(n,{code:s.invalid_string,validation:{endsWith:o.value},message:o.message}),t.dirty());else if("datetime"===o.kind){Y(o).test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{code:s.invalid_string,validation:"datetime",message:o.message}),t.dirty())}else if("date"===o.kind){K.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{code:s.invalid_string,validation:"date",message:o.message}),t.dirty())}else if("time"===o.kind){new RegExp(`^${G(o)}$`).test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{code:s.invalid_string,validation:"time",message:o.message}),t.dirty())}else"duration"===o.kind?L.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"duration",code:s.invalid_string,message:o.message}),t.dirty()):"ip"===o.kind?(i=e.data,("v4"!==(a=o.version)&&a||!B.test(i))&&("v6"!==a&&a||!q.test(i))&&(n=this._getOrReturnCtx(e,n),p(n,{validation:"ip",code:s.invalid_string,message:o.message}),t.dirty())):"jwt"===o.kind?Q(e.data,o.alg)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"jwt",code:s.invalid_string,message:o.message}),t.dirty()):"cidr"===o.kind?Z(e.data,o.version)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"cidr",code:s.invalid_string,message:o.message}),t.dirty()):"base64"===o.kind?H.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"base64",code:s.invalid_string,message:o.message}),t.dirty()):"base64url"===o.kind?V.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"base64url",code:s.invalid_string,message:o.message}),t.dirty()):r.assertNever(o);var i,a;return{status:t.value,value:e.data}}_regex(e,t,n){return this.refinement((t=>e.test(t)),{validation:t,code:s.invalid_string,...S.errToObj(n)})}_addCheck(e){return new J({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...S.errToObj(e)})}url(e){return this._addCheck({kind:"url",...S.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...S.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...S.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...S.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...S.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...S.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...S.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...S.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...S.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...S.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...S.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...S.errToObj(e)})}datetime(e){var t,n;return"string"===typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:"undefined"===typeof(null===e||void 0===e?void 0:e.precision)?null:null===e||void 0===e?void 0:e.precision,offset:null!==(t=null===e||void 0===e?void 0:e.offset)&&void 0!==t&&t,local:null!==(n=null===e||void 0===e?void 0:e.local)&&void 0!==n&&n,...S.errToObj(null===e||void 0===e?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"===typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:"undefined"===typeof(null===e||void 0===e?void 0:e.precision)?null:null===e||void 0===e?void 0:e.precision,...S.errToObj(null===e||void 0===e?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...S.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...S.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null===t||void 0===t?void 0:t.position,...S.errToObj(null===t||void 0===t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...S.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...S.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...S.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...S.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...S.errToObj(t)})}nonempty(e){return this.min(1,S.errToObj(e))}trim(){return new J({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new J({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new J({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((e=>"datetime"===e.kind))}get isDate(){return!!this._def.checks.find((e=>"date"===e.kind))}get isTime(){return!!this._def.checks.find((e=>"time"===e.kind))}get isDuration(){return!!this._def.checks.find((e=>"duration"===e.kind))}get isEmail(){return!!this._def.checks.find((e=>"email"===e.kind))}get isURL(){return!!this._def.checks.find((e=>"url"===e.kind))}get isEmoji(){return!!this._def.checks.find((e=>"emoji"===e.kind))}get isUUID(){return!!this._def.checks.find((e=>"uuid"===e.kind))}get isNANOID(){return!!this._def.checks.find((e=>"nanoid"===e.kind))}get isCUID(){return!!this._def.checks.find((e=>"cuid"===e.kind))}get isCUID2(){return!!this._def.checks.find((e=>"cuid2"===e.kind))}get isULID(){return!!this._def.checks.find((e=>"ulid"===e.kind))}get isIP(){return!!this._def.checks.find((e=>"ip"===e.kind))}get isCIDR(){return!!this._def.checks.find((e=>"cidr"===e.kind))}get isBase64(){return!!this._def.checks.find((e=>"base64"===e.kind))}get isBase64url(){return!!this._def.checks.find((e=>"base64url"===e.kind))}get minLength(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function X(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r;return parseInt(e.toFixed(i).replace(".",""))%parseInt(t.toFixed(i).replace(".",""))/Math.pow(10,i)}J.create=e=>{var t;return new J({checks:[],typeName:qe.ZodString,coerce:null!==(t=null===e||void 0===e?void 0:e.coerce)&&void 0!==t&&t,...T(e)})};class ee extends A{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){this._def.coerce&&(e.data=Number(e.data));if(this._getType(e)!==o.number){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:o.number,received:t.parsedType}),m}let t;const n=new h;for(const i of this._def.checks)if("int"===i.kind)r.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),p(t,{code:s.invalid_type,expected:"integer",received:"float",message:i.message}),n.dirty());else if("min"===i.kind){(i.inclusive?e.data<i.value:e.data<=i.value)&&(t=this._getOrReturnCtx(e,t),p(t,{code:s.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),n.dirty())}else if("max"===i.kind){(i.inclusive?e.data>i.value:e.data>=i.value)&&(t=this._getOrReturnCtx(e,t),p(t,{code:s.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),n.dirty())}else"multipleOf"===i.kind?0!==X(e.data,i.value)&&(t=this._getOrReturnCtx(e,t),p(t,{code:s.not_multiple_of,multipleOf:i.value,message:i.message}),n.dirty()):"finite"===i.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),p(t,{code:s.not_finite,message:i.message}),n.dirty()):r.assertNever(i);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,S.toString(t))}gt(e,t){return this.setLimit("min",e,!1,S.toString(t))}lte(e,t){return this.setLimit("max",e,!0,S.toString(t))}lt(e,t){return this.setLimit("max",e,!1,S.toString(t))}setLimit(e,t,n,r){return new ee({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:S.toString(r)}]})}_addCheck(e){return new ee({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:S.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:S.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:S.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:S.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:S.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:S.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:S.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:S.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:S.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find((e=>"int"===e.kind||"multipleOf"===e.kind&&r.isInteger(e.value)))}get isFinite(){let e=null,t=null;for(const n of this._def.checks){if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.value<e)&&(e=n.value)}return Number.isFinite(t)&&Number.isFinite(e)}}ee.create=e=>new ee({checks:[],typeName:qe.ZodNumber,coerce:(null===e||void 0===e?void 0:e.coerce)||!1,...T(e)});class te extends A{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch(i){return this._getInvalidInput(e)}if(this._getType(e)!==o.bigint)return this._getInvalidInput(e);let t;const n=new h;for(const o of this._def.checks)if("min"===o.kind){(o.inclusive?e.data<o.value:e.data<=o.value)&&(t=this._getOrReturnCtx(e,t),p(t,{code:s.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),n.dirty())}else if("max"===o.kind){(o.inclusive?e.data>o.value:e.data>=o.value)&&(t=this._getOrReturnCtx(e,t),p(t,{code:s.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),n.dirty())}else"multipleOf"===o.kind?e.data%o.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),p(t,{code:s.not_multiple_of,multipleOf:o.value,message:o.message}),n.dirty()):r.assertNever(o);return{status:n.value,value:e.data}}_getInvalidInput(e){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:o.bigint,received:t.parsedType}),m}gte(e,t){return this.setLimit("min",e,!0,S.toString(t))}gt(e,t){return this.setLimit("min",e,!1,S.toString(t))}lte(e,t){return this.setLimit("max",e,!0,S.toString(t))}lt(e,t){return this.setLimit("max",e,!1,S.toString(t))}setLimit(e,t,n,r){return new te({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:S.toString(r)}]})}_addCheck(e){return new te({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:S.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:S.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:S.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:S.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:S.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}te.create=e=>{var t;return new te({checks:[],typeName:qe.ZodBigInt,coerce:null!==(t=null===e||void 0===e?void 0:e.coerce)&&void 0!==t&&t,...T(e)})};class ne extends A{_parse(e){this._def.coerce&&(e.data=Boolean(e.data));if(this._getType(e)!==o.boolean){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:o.boolean,received:t.parsedType}),m}return v(e.data)}}ne.create=e=>new ne({typeName:qe.ZodBoolean,coerce:(null===e||void 0===e?void 0:e.coerce)||!1,...T(e)});class re extends A{_parse(e){this._def.coerce&&(e.data=new Date(e.data));if(this._getType(e)!==o.date){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:o.date,received:t.parsedType}),m}if(isNaN(e.data.getTime())){return p(this._getOrReturnCtx(e),{code:s.invalid_date}),m}const t=new h;let n;for(const i of this._def.checks)"min"===i.kind?e.data.getTime()<i.value&&(n=this._getOrReturnCtx(e,n),p(n,{code:s.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),t.dirty()):"max"===i.kind?e.data.getTime()>i.value&&(n=this._getOrReturnCtx(e,n),p(n,{code:s.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),t.dirty()):r.assertNever(i);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new re({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:S.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:S.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}re.create=e=>new re({checks:[],coerce:(null===e||void 0===e?void 0:e.coerce)||!1,typeName:qe.ZodDate,...T(e)});class ie extends A{_parse(e){if(this._getType(e)!==o.symbol){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:o.symbol,received:t.parsedType}),m}return v(e.data)}}ie.create=e=>new ie({typeName:qe.ZodSymbol,...T(e)});class oe extends A{_parse(e){if(this._getType(e)!==o.undefined){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:o.undefined,received:t.parsedType}),m}return v(e.data)}}oe.create=e=>new oe({typeName:qe.ZodUndefined,...T(e)});class ae extends A{_parse(e){if(this._getType(e)!==o.null){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:o.null,received:t.parsedType}),m}return v(e.data)}}ae.create=e=>new ae({typeName:qe.ZodNull,...T(e)});class se extends A{constructor(){super(...arguments),this._any=!0}_parse(e){return v(e.data)}}se.create=e=>new se({typeName:qe.ZodAny,...T(e)});class le extends A{constructor(){super(...arguments),this._unknown=!0}_parse(e){return v(e.data)}}le.create=e=>new le({typeName:qe.ZodUnknown,...T(e)});class ce extends A{_parse(e){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:o.never,received:t.parsedType}),m}}ce.create=e=>new ce({typeName:qe.ZodNever,...T(e)});class ue extends A{_parse(e){if(this._getType(e)!==o.undefined){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:o.void,received:t.parsedType}),m}return v(e.data)}}ue.create=e=>new ue({typeName:qe.ZodVoid,...T(e)});class de extends A{_parse(e){const{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==o.array)return p(t,{code:s.invalid_type,expected:o.array,received:t.parsedType}),m;if(null!==r.exactLength){const e=t.data.length>r.exactLength.value,i=t.data.length<r.exactLength.value;(e||i)&&(p(t,{code:e?s.too_big:s.too_small,minimum:i?r.exactLength.value:void 0,maximum:e?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),n.dirty())}if(null!==r.minLength&&t.data.length<r.minLength.value&&(p(t,{code:s.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),n.dirty()),null!==r.maxLength&&t.data.length>r.maxLength.value&&(p(t,{code:s.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map(((e,n)=>r.type._parseAsync(new O(t,e,t.path,n))))).then((e=>h.mergeArray(n,e)));const i=[...t.data].map(((e,n)=>r.type._parseSync(new O(t,e,t.path,n))));return h.mergeArray(n,i)}get element(){return this._def.type}min(e,t){return new de({...this._def,minLength:{value:e,message:S.toString(t)}})}max(e,t){return new de({...this._def,maxLength:{value:e,message:S.toString(t)}})}length(e,t){return new de({...this._def,exactLength:{value:e,message:S.toString(t)}})}nonempty(e){return this.min(1,e)}}function fe(e){if(e instanceof pe){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Ie.create(fe(r))}return new pe({...e._def,shape:()=>t})}return e instanceof de?new de({...e._def,type:fe(e.element)}):e instanceof Ie?Ie.create(fe(e.unwrap())):e instanceof Pe?Pe.create(fe(e.unwrap())):e instanceof be?be.create(e.items.map((e=>fe(e)))):e}de.create=(e,t)=>new de({type:e,minLength:null,maxLength:null,exactLength:null,typeName:qe.ZodArray,...T(t)});class pe extends A{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const e=this._def.shape(),t=r.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==o.object){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:o.object,received:t.parsedType}),m}const{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof ce&&"strip"===this._def.unknownKeys))for(const o in n.data)i.includes(o)||a.push(o);const l=[];for(const o of i){const e=r[o],t=n.data[o];l.push({key:{status:"valid",value:o},value:e._parse(new O(n,t,n.path,o)),alwaysSet:o in n.data})}if(this._def.catchall instanceof ce){const e=this._def.unknownKeys;if("passthrough"===e)for(const t of a)l.push({key:{status:"valid",value:t},value:{status:"valid",value:n.data[t]}});else if("strict"===e)a.length>0&&(p(n,{code:s.unrecognized_keys,keys:a}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const e=this._def.catchall;for(const t of a){const r=n.data[t];l.push({key:{status:"valid",value:t},value:e._parse(new O(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then((async()=>{const e=[];for(const t of l){const n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet})}return e})).then((e=>h.mergeObjectSync(t,e))):h.mergeObjectSync(t,l)}get shape(){return this._def.shape()}strict(e){return S.errToObj,new pe({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{var r,i,o,a;const s=null!==(o=null===(i=(r=this._def).errorMap)||void 0===i?void 0:i.call(r,t,n).message)&&void 0!==o?o:n.defaultError;return"unrecognized_keys"===t.code?{message:null!==(a=S.errToObj(e).message)&&void 0!==a?a:s}:{message:s}}}:{}})}strip(){return new pe({...this._def,unknownKeys:"strip"})}passthrough(){return new pe({...this._def,unknownKeys:"passthrough"})}extend(e){return new pe({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new pe({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:qe.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new pe({...this._def,catchall:e})}pick(e){const t={};return r.objectKeys(e).forEach((n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n])})),new pe({...this._def,shape:()=>t})}omit(e){const t={};return r.objectKeys(this.shape).forEach((n=>{e[n]||(t[n]=this.shape[n])})),new pe({...this._def,shape:()=>t})}deepPartial(){return fe(this)}partial(e){const t={};return r.objectKeys(this.shape).forEach((n=>{const r=this.shape[n];e&&!e[n]?t[n]=r:t[n]=r.optional()})),new pe({...this._def,shape:()=>t})}required(e){const t={};return r.objectKeys(this.shape).forEach((n=>{if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n];for(;e instanceof Ie;)e=e._def.innerType;t[n]=e}})),new pe({...this._def,shape:()=>t})}keyof(){return ke(r.objectKeys(this.shape))}}pe.create=(e,t)=>new pe({shape:()=>e,unknownKeys:"strip",catchall:ce.create(),typeName:qe.ZodObject,...T(t)}),pe.strictCreate=(e,t)=>new pe({shape:()=>e,unknownKeys:"strict",catchall:ce.create(),typeName:qe.ZodObject,...T(t)}),pe.lazycreate=(e,t)=>new pe({shape:e,unknownKeys:"strip",catchall:ce.create(),typeName:qe.ZodObject,...T(t)});class he extends A{_parse(e){const{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map((async e=>{const n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}}))).then((function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;const n=e.map((e=>new l(e.ctx.common.issues)));return p(t,{code:s.invalid_union,unionErrors:n}),m}));{let e;const r=[];for(const o of n){const n={...t,common:{...t.common,issues:[]},parent:null},i=o._parseSync({data:t.data,path:t.path,parent:n});if("valid"===i.status)return i;"dirty"!==i.status||e||(e={result:i,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const i=r.map((e=>new l(e)));return p(t,{code:s.invalid_union,unionErrors:i}),m}}get options(){return this._def.options}}he.create=(e,t)=>new he({options:e,typeName:qe.ZodUnion,...T(t)});const me=e=>e instanceof Se?me(e.schema):e instanceof Ae?me(e.innerType()):e instanceof Ce?[e.value]:e instanceof Oe?e.options:e instanceof Ne?r.objectValues(e.enum):e instanceof Re?me(e._def.innerType):e instanceof oe?[void 0]:e instanceof ae?[null]:e instanceof Ie?[void 0,...me(e.unwrap())]:e instanceof Pe?[null,...me(e.unwrap())]:e instanceof Le||e instanceof Fe?me(e.unwrap()):e instanceof De?me(e._def.innerType):[];class ge extends A{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==o.object)return p(t,{code:s.invalid_type,expected:o.object,received:t.parsedType}),m;const n=this.discriminator,r=t.data[n],i=this.optionsMap.get(r);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(p(t,{code:s.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),m)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){const r=new Map;for(const i of t){const t=me(i.shape[e]);if(!t.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const n of t){if(r.has(n))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(n)}`);r.set(n,i)}}return new ge({typeName:qe.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...T(n)})}}function ve(e,t){const n=a(e),i=a(t);if(e===t)return{valid:!0,data:e};if(n===o.object&&i===o.object){const n=r.objectKeys(t),i=r.objectKeys(e).filter((e=>-1!==n.indexOf(e))),o={...e,...t};for(const r of i){const n=ve(e[r],t[r]);if(!n.valid)return{valid:!1};o[r]=n.data}return{valid:!0,data:o}}if(n===o.array&&i===o.array){if(e.length!==t.length)return{valid:!1};const n=[];for(let r=0;r<e.length;r++){const i=ve(e[r],t[r]);if(!i.valid)return{valid:!1};n.push(i.data)}return{valid:!0,data:n}}return n===o.date&&i===o.date&&+e===+t?{valid:!0,data:e}:{valid:!1}}class ye extends A{_parse(e){const{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{if(y(e)||y(r))return m;const i=ve(e.value,r.value);return i.valid?((b(e)||b(r))&&t.dirty(),{status:t.value,value:i.data}):(p(n,{code:s.invalid_intersection_types}),m)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then((([e,t])=>r(e,t))):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}ye.create=(e,t,n)=>new ye({left:e,right:t,typeName:qe.ZodIntersection,...T(n)});class be extends A{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==o.array)return p(n,{code:s.invalid_type,expected:o.array,received:n.parsedType}),m;if(n.data.length<this._def.items.length)return p(n,{code:s.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),m;!this._def.rest&&n.data.length>this._def.items.length&&(p(n,{code:s.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const r=[...n.data].map(((e,t)=>{const r=this._def.items[t]||this._def.rest;return r?r._parse(new O(n,e,n.path,t)):null})).filter((e=>!!e));return n.common.async?Promise.all(r).then((e=>h.mergeArray(t,e))):h.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new be({...this._def,rest:e})}}be.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new be({items:e,typeName:qe.ZodTuple,rest:null,...T(t)})};class we extends A{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==o.object)return p(n,{code:s.invalid_type,expected:o.object,received:n.parsedType}),m;const r=[],i=this._def.keyType,a=this._def.valueType;for(const o in n.data)r.push({key:i._parse(new O(n,o,n.path,o)),value:a._parse(new O(n,n.data[o],n.path,o)),alwaysSet:o in n.data});return n.common.async?h.mergeObjectAsync(t,r):h.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(e,t,n){return new we(t instanceof A?{keyType:e,valueType:t,typeName:qe.ZodRecord,...T(n)}:{keyType:J.create(),valueType:e,typeName:qe.ZodRecord,...T(t)})}}class xe extends A{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==o.map)return p(n,{code:s.invalid_type,expected:o.map,received:n.parsedType}),m;const r=this._def.keyType,i=this._def.valueType,a=[...n.data.entries()].map((([e,t],o)=>({key:r._parse(new O(n,e,n.path,[o,"key"])),value:i._parse(new O(n,t,n.path,[o,"value"]))})));if(n.common.async){const e=new Map;return Promise.resolve().then((async()=>{for(const n of a){const r=await n.key,i=await n.value;if("aborted"===r.status||"aborted"===i.status)return m;"dirty"!==r.status&&"dirty"!==i.status||t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}))}{const e=new Map;for(const n of a){const r=n.key,i=n.value;if("aborted"===r.status||"aborted"===i.status)return m;"dirty"!==r.status&&"dirty"!==i.status||t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}}}xe.create=(e,t,n)=>new xe({valueType:t,keyType:e,typeName:qe.ZodMap,...T(n)});class _e extends A{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==o.set)return p(n,{code:s.invalid_type,expected:o.set,received:n.parsedType}),m;const r=this._def;null!==r.minSize&&n.data.size<r.minSize.value&&(p(n,{code:s.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),null!==r.maxSize&&n.data.size>r.maxSize.value&&(p(n,{code:s.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());const i=this._def.valueType;function a(e){const n=new Set;for(const r of e){if("aborted"===r.status)return m;"dirty"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}const l=[...n.data.values()].map(((e,t)=>i._parse(new O(n,e,n.path,t))));return n.common.async?Promise.all(l).then((e=>a(e))):a(l)}min(e,t){return new _e({...this._def,minSize:{value:e,message:S.toString(t)}})}max(e,t){return new _e({...this._def,maxSize:{value:e,message:S.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}_e.create=(e,t)=>new _e({valueType:e,minSize:null,maxSize:null,typeName:qe.ZodSet,...T(t)});class Ee extends A{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==o.function)return p(t,{code:s.invalid_type,expected:o.function,received:t.parsedType}),m;function n(e,n){return f({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,d(),c].filter((e=>!!e)),issueData:{code:s.invalid_arguments,argumentsError:n}})}function r(e,n){return f({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,d(),c].filter((e=>!!e)),issueData:{code:s.invalid_return_type,returnTypeError:n}})}const i={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof Te){const e=this;return v((async function(...t){const o=new l([]),s=await e._def.args.parseAsync(t,i).catch((e=>{throw o.addIssue(n(t,e)),o})),c=await Reflect.apply(a,this,s);return await e._def.returns._def.type.parseAsync(c,i).catch((e=>{throw o.addIssue(r(c,e)),o}))}))}{const e=this;return v((function(...t){const o=e._def.args.safeParse(t,i);if(!o.success)throw new l([n(t,o.error)]);const s=Reflect.apply(a,this,o.data),c=e._def.returns.safeParse(s,i);if(!c.success)throw new l([r(s,c.error)]);return c.data}))}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new Ee({...this._def,args:be.create(e).rest(le.create())})}returns(e){return new Ee({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new Ee({args:e||be.create([]).rest(le.create()),returns:t||le.create(),typeName:qe.ZodFunction,...T(n)})}}class Se extends A{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}Se.create=(e,t)=>new Se({getter:e,typeName:qe.ZodLazy,...T(t)});class Ce extends A{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return p(t,{received:t.data,code:s.invalid_literal,expected:this._def.value}),m}return{status:"valid",value:e.data}}get value(){return this._def.value}}function ke(e,t){return new Oe({values:e,typeName:qe.ZodEnum,...T(t)})}Ce.create=(e,t)=>new Ce({value:e,typeName:qe.ZodLiteral,...T(t)});class Oe extends A{constructor(){super(...arguments),C.set(this,void 0)}_parse(e){if("string"!==typeof e.data){const t=this._getOrReturnCtx(e),n=this._def.values;return p(t,{expected:r.joinValues(n),received:t.parsedType,code:s.invalid_type}),m}if(_(this,C,"f")||E(this,C,new Set(this._def.values),"f"),!_(this,C,"f").has(e.data)){const t=this._getOrReturnCtx(e),n=this._def.values;return p(t,{received:t.data,code:s.invalid_enum_value,options:n}),m}return v(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return Oe.create(e,{...this._def,...t})}exclude(e,t=this._def){return Oe.create(this.options.filter((t=>!e.includes(t))),{...this._def,...t})}}C=new WeakMap,Oe.create=ke;class Ne extends A{constructor(){super(...arguments),k.set(this,void 0)}_parse(e){const t=r.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==o.string&&n.parsedType!==o.number){const e=r.objectValues(t);return p(n,{expected:r.joinValues(e),received:n.parsedType,code:s.invalid_type}),m}if(_(this,k,"f")||E(this,k,new Set(r.getValidEnumValues(this._def.values)),"f"),!_(this,k,"f").has(e.data)){const e=r.objectValues(t);return p(n,{received:n.data,code:s.invalid_enum_value,options:e}),m}return v(e.data)}get enum(){return this._def.values}}k=new WeakMap,Ne.create=(e,t)=>new Ne({values:e,typeName:qe.ZodNativeEnum,...T(t)});class Te extends A{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==o.promise&&!1===t.common.async)return p(t,{code:s.invalid_type,expected:o.promise,received:t.parsedType}),m;const n=t.parsedType===o.promise?t.data:Promise.resolve(t.data);return v(n.then((e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap}))))}}Te.create=(e,t)=>new Te({type:e,typeName:qe.ZodPromise,...T(t)});class Ae extends A{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===qe.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:n}=this._processInputParams(e),i=this._def.effect||null,o={addIssue:e=>{p(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(o.addIssue=o.addIssue.bind(o),"preprocess"===i.type){const e=i.transform(n.data,o);if(n.common.async)return Promise.resolve(e).then((async e=>{if("aborted"===t.value)return m;const r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return"aborted"===r.status?m:"dirty"===r.status||"dirty"===t.value?g(r.value):r}));{if("aborted"===t.value)return m;const r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return"aborted"===r.status?m:"dirty"===r.status||"dirty"===t.value?g(r.value):r}}if("refinement"===i.type){const e=e=>{const t=i.refinement(e,o);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===n.common.async){const r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===r.status?m:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((n=>"aborted"===n.status?m:("dirty"===n.status&&t.dirty(),e(n.value).then((()=>({status:t.value,value:n.value}))))))}if("transform"===i.type){if(!1===n.common.async){const e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!w(e))return e;const r=i.transform(e.value,o);if(r instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:r}}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((e=>w(e)?Promise.resolve(i.transform(e.value,o)).then((e=>({status:t.value,value:e}))):e))}r.assertNever(i)}}Ae.create=(e,t,n)=>new Ae({schema:e,typeName:qe.ZodEffects,effect:t,...T(n)}),Ae.createWithPreprocess=(e,t,n)=>new Ae({schema:t,effect:{type:"preprocess",transform:e},typeName:qe.ZodEffects,...T(n)});class Ie extends A{_parse(e){return this._getType(e)===o.undefined?v(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Ie.create=(e,t)=>new Ie({innerType:e,typeName:qe.ZodOptional,...T(t)});class Pe extends A{_parse(e){return this._getType(e)===o.null?v(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Pe.create=(e,t)=>new Pe({innerType:e,typeName:qe.ZodNullable,...T(t)});class Re extends A{_parse(e){const{ctx:t}=this._processInputParams(e);let n=t.data;return t.parsedType===o.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}Re.create=(e,t)=>new Re({innerType:e,typeName:qe.ZodDefault,defaultValue:"function"===typeof t.default?t.default:()=>t.default,...T(t)});class De extends A{_parse(e){const{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return x(r)?r.then((e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new l(n.common.issues)},input:n.data})}))):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new l(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}De.create=(e,t)=>new De({innerType:e,typeName:qe.ZodCatch,catchValue:"function"===typeof t.catch?t.catch:()=>t.catch,...T(t)});class je extends A{_parse(e){if(this._getType(e)!==o.nan){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:o.nan,received:t.parsedType}),m}return{status:"valid",value:e.data}}}je.create=e=>new je({typeName:qe.ZodNaN,...T(e)});const Me=Symbol("zod_brand");class Le extends A{_parse(e){const{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class ze extends A{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.common.async){return(async()=>{const e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?m:"dirty"===e.status?(t.dirty(),g(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})()}{const e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?m:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new ze({in:e,out:t,typeName:qe.ZodPipeline})}}class Fe extends A{_parse(e){const t=this._def.innerType._parse(e),n=e=>(w(e)&&(e.value=Object.freeze(e.value)),e);return x(t)?t.then((e=>n(e))):n(t)}unwrap(){return this._def.innerType}}function Be(e,t={},n){return e?se.create().superRefine(((r,i)=>{var o,a;if(!e(r)){const e="function"===typeof t?t(r):"string"===typeof t?{message:t}:t,s=null===(a=null!==(o=e.fatal)&&void 0!==o?o:n)||void 0===a||a,l="string"===typeof e?{message:e}:e;i.addIssue({code:"custom",...l,fatal:s})}})):se.create()}Fe.create=(e,t)=>new Fe({innerType:e,typeName:qe.ZodReadonly,...T(t)});const Ue={object:pe.lazycreate};var qe;!function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(qe||(qe={}));const $e=J.create,He=ee.create,Ve=je.create,We=te.create,Ke=ne.create,Ge=re.create,Ye=ie.create,Qe=oe.create,Ze=ae.create,Je=se.create,Xe=le.create,et=ce.create,tt=ue.create,nt=de.create,rt=pe.create,it=pe.strictCreate,ot=he.create,at=ge.create,st=ye.create,lt=be.create,ct=we.create,ut=xe.create,dt=_e.create,ft=Ee.create,pt=Se.create,ht=Ce.create,mt=Oe.create,gt=Ne.create,vt=Te.create,yt=Ae.create,bt=Ie.create,wt=Pe.create,xt=Ae.createWithPreprocess,_t=ze.create,Et={string:e=>J.create({...e,coerce:!0}),number:e=>ee.create({...e,coerce:!0}),boolean:e=>ne.create({...e,coerce:!0}),bigint:e=>te.create({...e,coerce:!0}),date:e=>re.create({...e,coerce:!0})},St=m;var Ct=Object.freeze({__proto__:null,defaultErrorMap:c,setErrorMap:function(e){u=e},getErrorMap:d,makeIssue:f,EMPTY_PATH:[],addIssueToContext:p,ParseStatus:h,INVALID:m,DIRTY:g,OK:v,isAborted:y,isDirty:b,isValid:w,isAsync:x,get util(){return r},get objectUtil(){return i},ZodParsedType:o,getParsedType:a,ZodType:A,datetimeRegex:Y,ZodString:J,ZodNumber:ee,ZodBigInt:te,ZodBoolean:ne,ZodDate:re,ZodSymbol:ie,ZodUndefined:oe,ZodNull:ae,ZodAny:se,ZodUnknown:le,ZodNever:ce,ZodVoid:ue,ZodArray:de,ZodObject:pe,ZodUnion:he,ZodDiscriminatedUnion:ge,ZodIntersection:ye,ZodTuple:be,ZodRecord:we,ZodMap:xe,ZodSet:_e,ZodFunction:Ee,ZodLazy:Se,ZodLiteral:Ce,ZodEnum:Oe,ZodNativeEnum:Ne,ZodPromise:Te,ZodEffects:Ae,ZodTransformer:Ae,ZodOptional:Ie,ZodNullable:Pe,ZodDefault:Re,ZodCatch:De,ZodNaN:je,BRAND:Me,ZodBranded:Le,ZodPipeline:ze,ZodReadonly:Fe,custom:Be,Schema:A,ZodSchema:A,late:Ue,get ZodFirstPartyTypeKind(){return qe},coerce:Et,any:Je,array:nt,bigint:We,boolean:Ke,date:Ge,discriminatedUnion:at,effect:yt,enum:mt,function:ft,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>Be((t=>t instanceof e),t),intersection:st,lazy:pt,literal:ht,map:ut,nan:Ve,nativeEnum:gt,never:et,null:Ze,nullable:wt,number:He,object:rt,oboolean:()=>Ke().optional(),onumber:()=>He().optional(),optional:bt,ostring:()=>$e().optional(),pipeline:_t,preprocess:xt,promise:vt,record:ct,set:dt,strictObject:it,string:$e,symbol:Ye,transformer:yt,tuple:lt,undefined:Qe,union:ot,unknown:Xe,void:tt,NEVER:St,ZodIssueCode:s,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:l})},537:(e,t,n)=>{var r=n(4133).Symbol;e.exports=r},613:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},634:(e,t,n)=>{var r=n(81382),i=n(14837),o=n(84401),a=n(66944),s=n(38469),l=n(6737),c=n(76614);e.exports=function e(t,n,u,d,f){t!==n&&o(n,(function(o,l){if(f||(f=new r),s(o))a(t,n,l,u,e,d,f);else{var p=d?d(c(t,l),o,l+"",t,n,f):void 0;void 0===p&&(p=o),i(t,l,p)}}),l)}},794:(e,t,n)=>{"use strict";n.d(t,{d:()=>i});var r=n(59284);function i({initialValue:e,onReset:t}){const[n,i]=r.useState(null),o=r.useRef(e);r.useEffect((()=>{if(!n)return;const e=()=>{t(o.current)};return n.addEventListener("reset",e),()=>{n.removeEventListener("reset",e)}}),[n,t]);return r.useCallback((e=>{var t;i(null!==(t=null===e||void 0===e?void 0:e.form)&&void 0!==t?t:null)}),[])}},905:(e,t,n)=>{var r=n(71824),i=n(43261),o=n(52964),a=n(19305),s=n(88118),l=n(20368),c=n(48303),u=n(91159),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||u(e)||o(e)))return!e.length;var t=i(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(c(e))return!r(e).length;for(var n in e)if(d.call(e,n))return!1;return!0}},935:(e,t,n)=>{var r=n(93454),i=n(4200),o=n(30507),a=n(74343),s=n(28815);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},959:(e,t,n)=>{"use strict";n.d(t,{GY:()=>a,JD:()=>c,JN:()=>s});var r=n(59284),i=n(62060),o=n.n(i);function a({initialSortColumn:e,initialSortOrder:t=-1,fixedOrderType:n,multiple:i,onSort:a}){const[s,l]=r.useState((()=>{if(e)return[{columnId:e,order:n||t}]}));return[s,r.useCallback((e=>{if(!e||Array.isArray(e)&&!e.length)return void(n||(null===a||void 0===a||a(void 0),l(void 0)));let t=Array.isArray(e)?e:[e];n&&(t=t.map((e=>({columnId:e.columnId,order:n})))),i||(t=t.slice(0,1)),l((e=>t&&!o()(e,t)?(null===a||void 0===a||a(t),t):e))}),[n,i,a])]}function s(e=[],t){const n=e.map((e=>({columnId:t(e.columnId),order:e.order}))).filter((e=>Boolean(e.columnId)));if(n.length)return n}function l({columnId:e,order:t}){return`${e} ${-1===t?"DESC":"ASC"}`}function c(e){return e?`ORDER BY ${e.map(l).join(", ")}`:""}},1064:(e,t,n)=>{"use strict";n.d(t,{S:()=>v});var r=n(59284),i=n(16332),o=n(2198),a=n(23871),s=n(77506),l=n(25196);const c=(0,n(99006)._)((()=>Promise.all([n.e(6820),n.e(8452),n.e(5438)]).then(n.bind(n,45438))),"ConnectToDBSyntaxHighlighter");var u=n(63636);var d=n(60712);const f=(0,s.cn)("ydb-connect-to-db"),p=[{id:"bash",title:"Bash"},{id:"cpp",title:"C++"},{id:"csharp",title:"C# (.NET)"},{id:"go",title:"Go"},{id:"java",title:"Java"},{id:"javascript",title:"Node JS"},{id:"php",title:"PHP"},{id:"python",title:"Python"}];function h({open:e,onClose:t,database:n,endpoint:i}){const[s,h]=r.useState("bash"),m=function(e,t){switch(e){case"cpp":return function({database:e,endpoint:t}){return`auto connectionParams = TConnectionsParams()\n .SetEndpoint("${null!==t&&void 0!==t?t:"<endpoint>"}")\n .SetDatabase("${null!==e&&void 0!==e?e:"/<database>"}")\n .SetAuthToken(GetEnv("YDB_TOKEN"));\n\nTDriver driver(connectionParams);`}(t);case"csharp":return function({database:e,endpoint:t}){return`var config = new DriverConfig(\n endpoint: "${null!==t&&void 0!==t?t:"<endpoint>"}",\n database: "${null!==e&&void 0!==e?e:"/<database>"}",\n credentials: credentialsProvider\n);\n\nusing var driver = new Driver(\n config: config\n);\n\nawait driver.Initialize();`}(t);case"go":return function({database:e,endpoint:t}){return`package main\n\nimport (\n "context"\n "os"\n\n "github.com/ydb-platform/ydb-go-sdk/v3"\n "github.com/ydb-platform/ydb-go-sdk/v3/table"\n)\n\nfunc main() {\n ctx, cancel := context.WithCancel(context.Background())\n defer cancel()\n db, err := ydb.Open(ctx,\n "${null!==t&&void 0!==t?t:"<endpoint>"}${null!==e&&void 0!==e?e:"/<database>"}",\n ydb.WithAccessTokenCredentials(os.Getenv("YDB_ACCESS_TOKEN_CREDENTIALS")),\n )\n if err != nil {\n panic(err)\n }\n\n defer db.Close(ctx)\n\n err = db.Table().Do(ctx,\n func(ctx context.Context, s table.Session) error {\n _, res, err := s.Execute(\n ctx,\n table.TxControl(table.BeginTx(table.WithOnlineReadOnly()), table.CommitTx()),\n "SELECT 'Hello, world!'",\n nil,\n )\n if err != nil {\n return err\n }\n defer res.Close()\n var val string\n\n for res.NextResultSet(ctx) {\n for res.NextRow() {\n err = res.Scan(&val)\n if err != nil {\n return err\n }\n println(val)\n }\n }\n return res.Err()\n })\n if err != nil {\n panic(err)\n }\n}`}(t);case"java":return function({database:e,endpoint:t}){return`package com.example;\n\nimport java.io.IOException;\nimport java.nio.charset.Charset;\n\nimport tech.ydb.core.grpc.GrpcTransport;\nimport tech.ydb.table.SessionRetryContext;\nimport tech.ydb.table.TableClient;\nimport tech.ydb.table.query.DataQueryResult;\nimport tech.ydb.table.result.ResultSetReader;\nimport tech.ydb.table.transaction.TxControl;\nimport tech.ydb.auth.TokenAuthProvider;\n\npublic class YDBConnect {\n public static void main(String[] args) throws IOException {\n try (GrpcTransport transport = GrpcTransport.forEndpoint(\n "${null!==t&&void 0!==t?t:"<endpoint>"}",\n "${null!==e&&void 0!==e?e:"/<database>"}")\n .withAuthProvider(new TokenAuthProvider(System.getenv("YDB_ACCESS_TOKEN_CREDENTIALS")))\n .build()) {\n try (TableClient tableClient = TableClient.newClient(transport)\n .build()) {\n SessionRetryContext retryCtx = SessionRetryContext.create(tableClient).build();\n DataQueryResult queryResult = retryCtx.supplyResult(\n session -> session.executeDataQuery("SELECT 'Hello, world!'", TxControl.serializableRw())\n ).join().getValue();\n\n ResultSetReader rsReader = queryResult.getResultSet(0);\n while (rsReader.next()) {\n System.out.println(rsReader.getColumn(0).getBytesAsString(Charset.forName("utf8")));\n }\n }\n }\n }\n}`}(t);case"javascript":return function({database:e,endpoint:t}){return`const {Driver, getCredentialsFromEnv, getLogger} = require('ydb-sdk');\n\nconst logger = getLogger({level: 'debug'});\nconst endpoint = '${null!==t&&void 0!==t?t:"<endpoint>"}';\nconst database = '${null!==e&&void 0!==e?e:"/<database>"}';\nconst authService = getCredentialsFromEnv();\nconst driver = new Driver({endpoint, database, authService});\n\nasync function run() {\n if (!await driver.ready(100)) {\n logger.fatal('Driver has not become ready in 10 seconds!');\n process.exit(1);\n }\n\n await driver.tableClient.withSession(async (session) => {\n res = await session.executeQuery("SELECT 'Hello, world!'")\n console.log(res.resultSets[0].rows[0].items[0].bytesValue.toString())\n return\n });\n\n process.exit(0)\n}\n\nrun();`}(t);case"php":return function({database:e,endpoint:t}){return`<?php\n\nuse YdbPlatform\\Ydb\\Ydb;\n\n$config = [\n // Database path\n 'database' => '${null!==e&&void 0!==e?e:"/<database>"}',\n\n // Database endpoint\n 'endpoint' => '${null!==t&&void 0!==t?t:"<endpoint>"}',\n\n // Auto discovery (dedicated server only)\n 'discovery' => false,\n\n // IAM config\n 'iam_config' => [\n // 'root_cert_file' => './CA.pem', Root CA file (uncomment for dedicated server only)\n ],\n\n 'credentials' => new AccessTokenAuthentication('<token>') // use from reference/ydb-sdk/auth\n];\n\n$ydb = new Ydb($config);`}(t);case"python":return function({database:e,endpoint:t}){return`#!/usr/bin/python3\nimport ydb\n\ndriver_config = ydb.DriverConfig(\n '${t||"<endpoint>"}', '${null!==e&&void 0!==e?e:"/<database>"}',\n credentials=ydb.credentials_from_env_variables(),\n)\nprint(driver_config)\nwith ydb.Driver(driver_config) as driver:\n try:\n driver.wait(10)\n session = driver.table_client.session().create()\n with session.transaction() as tx:\n query = "SELECT 'Hello, world!'"\n result_set = tx.execute(query)[0]\n for row in result_set.rows:\n print(row)\n except TimeoutError:\n print("Connect failed to YDB")\n print("Last reported errors by discovery:")\n print(driver.discovery_debug_details())`}(t);default:return function({database:e,endpoint:t}){return`ydb -e ${t||"<endpoint>"} --token-file ~/my_token\n -d ${null!==e&&void 0!==e?e:"/<database>"} table query execute -q 'SELECT "Hello, world!"'`}(t)}}(s,{database:n,endpoint:i}),g=function(e){switch(e){case"bash":return(0,u.A)("docs_bash");case"cpp":return(0,u.A)("docs_cpp");case"csharp":return(0,u.A)("docs_dotnet");case"go":return(0,u.A)("docs_go");case"java":return(0,u.A)("docs_java");case"javascript":return(0,u.A)("docs_nodejs");case"php":return(0,u.A)("docs_php");case"python":return(0,u.A)("docs_python");default:return}}(s);return(0,d.jsxs)(o.l,{open:e,hasCloseButton:!0,onClose:t,size:"l",children:[(0,d.jsx)(o.l.Header,{caption:(0,u.A)("header")}),(0,d.jsxs)(o.l.Body,{children:[(0,d.jsx)("div",{children:(0,u.A)("connection-info-message")}),(0,d.jsx)(a.t,{size:"m",allowNotSelected:!1,activeTab:s,items:p,onSelectTab:e=>h(e),className:f("dialog-tabs")}),(0,d.jsx)("div",{className:f("snippet-container"),children:(0,d.jsx)(c,{language:s,text:m})}),g?(0,d.jsx)(l.K,{className:f("docs"),title:(0,u.A)("documentation"),url:g}):null]}),(0,d.jsx)(o.l.Footer,{onClickButtonCancel:t,textButtonCancel:(0,u.A)("close")})]})}const m=i.Ay.create((e=>{const t=i.Ay.useModal();return(0,d.jsx)(h,{...e,onClose:()=>{t.resolve(!1),t.hide(),t.remove()},open:t.visible})})),g="connect-to-db-dialog";async function v(e){return await i.Ay.show(g,{id:g,...e})}i.Ay.register(g,m)},1167:(e,t,n)=>{var r=n(16133),i=n(78326);e.exports=function(e,t){return null!=e&&i(e,t,r)}},1448:(e,t,n)=>{"use strict";n.d(t,{TH:()=>u});const r=/{{(.*?)}}/g;const i=()=>new RegExp(/\$t{([^}]+)}/g);var o;!function(e){e.EmptyKeyset="EMPTY_KEYSET",e.EmptyLanguageData="EMPTY_LANGUAGE_DATA",e.KeysetNotFound="KEYSET_NOT_FOUND",e.MissingKey="MISSING_KEY",e.MissingKeyFor0="MISSING_KEY_FOR_0",e.MissingKeyParamsCount="MISSING_KEY_PARAMS_COUNT",e.MissingKeyPlurals="MISSING_KEY_PLURALS",e.MissingInheritedKey="MISSING_INHERITED_KEY",e.NestedPlural="NESTED_PLURAL",e.ExceedTranslationNestingDepth="EXCEED_TRANSLATION_NESTING_DEPTH",e.NoLanguageData="NO_LANGUAGE_DATA"}(o||(o={}));Object.values(o);var a;function s(e,t){return 0===e?t.None:1===e||-1===e?t.One:t.Many}function l(e,t){const n=Math.abs(e%10),r=Math.abs(e%100);return 0===e?t.None:1===n&&11!==r?t.One:n>1&&n<5&&(r<10||r>20)?t.Few:t.Many}function c({value:e,count:t,lang:n,pluralizers:r,log:i,key:o}){if(!Array.isArray(e))return function(e,t,n){if(e.zero&&0===t)return e.zero;if(!Intl.PluralRules)throw new Error("Intl.PluralRules is not available. Use polyfill.");const r=new Intl.PluralRules(n).select(t);return"other"===r&&"undefined"===typeof e.other?e.many||e.few:e[r]||e.other}(e,t,n)||o;if(!r)return i("Can not use deprecated plural format without pluralizers"),o;if(r[n]||i(`Pluralization is not configured for language '${n}', falling back to the english ruleset`),e.length<3)return i("Missing required plurals"),o;const s=r[n]||r.en;return s?e[s(t,a)]||e[a.Many]||o:(i("Fallback pluralization is not configured!"),o)}!function(e){e[e.One=0]="One",e[e.Few=1]="Few",e[e.Many=2]="Many",e[e.None=3]="None"}(a||(a={}));class u{constructor(e={}){this.data={},this.pluralizers={en:s,ru:l},this.logger=null;const{data:t,fallbackLang:n,lang:r,logger:i=null}=e;this.fallbackLang=n,this.lang=r,this.logger=i,t&&Object.entries(t).forEach((([e,t])=>{this.registerKeysets(e,t)}))}setLang(e){this.lang=e}setFallbackLang(e){this.fallbackLang=e}configurePluralization(e){this.pluralizers=Object.assign({},this.pluralizers,e)}registerKeyset(e,t,n={}){const r=this.data[e]&&Object.prototype.hasOwnProperty.call(this.data[e],t);if(r)throw new Error(`Keyset '${t}' is already registered, aborting!`);r&&this.warn(`Keyset '${t}' is already registered.`),this.data[e]=Object.assign({},this.data[e],{[t]:n})}registerKeysets(e,t){Object.keys(t).forEach((n=>{this.registerKeyset(e,n,t[n])}))}has(e,t,n){var r;const i=this.getLanguageData(n);return Boolean(i&&i[e]&&(null===(r=i[e])||void 0===r?void 0:r[t]))}i18n(e,t,n){if(!this.lang&&!this.fallbackLang)throw new Error('Language is not specified. You should set at least one of these: "lang", "fallbackLang"');let r;return this.lang?r=this._i18n(e,t,this.lang,n):this.warn("Target language is not specified."),void 0===r&&this.fallbackLang&&this.fallbackLang!==this.lang&&(r=this._i18n(e,t,this.fallbackLang,n)),null!==r&&void 0!==r?r:t}keyset(e){return(t,n)=>this.i18n(e,t,n)}warn(e,t,n){var r;let i="";t?(i+=t,n&&(i+=`.${n}`)):i="languageData",null===(r=this.logger)||void 0===r||r.log(`I18n: ${e}`,{level:"info",logger:i,extra:{type:"i18n"}})}getLanguageData(e){const t=e||this.lang;return t?this.data[t]:void 0}_i18n(e,t,n,r){const{text:i,details:a}=new d(this,n,t,e,r).getTranslationData();if(a){const e=function(e){const{code:t,fallbackLang:n,lang:r}=e;let i=`Using language ${r}. `;switch(t){case o.EmptyKeyset:i+="Keyset is empty.";break;case o.EmptyLanguageData:i+="Language data is empty.";break;case o.KeysetNotFound:i+="Keyset not found.";break;case o.MissingKey:i+="Missing key.";break;case o.MissingKeyFor0:return i+="Missing key for 0",i;case o.MissingKeyParamsCount:i+="Missing params.count for key.";break;case o.MissingKeyPlurals:i+="Missing required plurals.";break;case o.NoLanguageData:i=`Language "${r}" is not defined, make sure you call setLang for the same language you called registerKeysets for!`}return n&&(i+=` Trying to use fallback language "${n}"...`),i}({code:a.code,lang:n,fallbackLang:this.fallbackLang===n?void 0:this.fallbackLang});this.warn(e,a.keysetName,a.key)}return i}}class d{constructor(e,t,n,r,i,o){this.i18n=e,this.lang=t,this.key=n,this.keysetName=r,this.params=i,this.nestingDepth=null!==o&&void 0!==o?o:0}getTranslationData(){var e;const{data:t,details:n}=this.getKeyset();if(n)return{details:n};const a=t&&t[this.key],s={};if(void 0===a)return this.getTranslationDataError(o.MissingKey);if("string"!==typeof a){const t=this.nestingDepth>0,n=(e=>e instanceof Array?e:e instanceof Object?Object.values(e):[])(a).some((e=>(e=>{var t;const n=i().exec(e);return(null!==(t=null===n||void 0===n?void 0:n.length)&&void 0!==t?t:0)>0})(e)));if(t||n)return this.getTranslationDataError(o.NestedPlural);const r=Number(null===(e=this.params)||void 0===e?void 0:e.count);if(Number.isNaN(r))return this.getTranslationDataError(o.MissingKeyParamsCount);s.text=c({key:this.key,value:a,count:r,lang:this.lang||"en",pluralizers:this.i18n.pluralizers,log:e=>this.i18n.warn(e,this.keysetName,this.key)})}else s.text=String(a);this.params&&(s.text=function(e,t){let n,i="",o=r.lastIndex=0;for(;n=r.exec(e);){o!==n.index&&(i+=e.slice(o,n.index)),o=r.lastIndex;const[a,s]=n;s&&Object.prototype.hasOwnProperty.call(t,s)?i+=t[s]:i+=a}return o<e.length&&(i+=e.slice(o)),i}(String(s.text),this.params));const l=this.replaceTranslationsInheritance({keyValue:String(s.text)});return l.text?(s.text=l.text,s):l}getTranslationDataError(e){return{details:{code:e,keysetName:this.keysetName,key:this.key}}}getKeyset(){const e=this.i18n.getLanguageData(this.lang);if("undefined"===typeof e)return this.getTranslationDataError(o.NoLanguageData);if(0===Object.keys(e).length)return this.getTranslationDataError(o.EmptyLanguageData);const t=e[this.keysetName];return t?0===Object.keys(t).length?this.getTranslationDataError(o.EmptyKeyset):{data:t}:this.getTranslationDataError(o.KeysetNotFound)}replaceTranslationsInheritance(e){const{keyValue:t}=e,n=i();let r,a="",s=n.lastIndex=0;for(;r=n.exec(t);){s!==r.index&&(a+=t.slice(s,r.index)),s=n.lastIndex;const[e,i]=r;if(i){if(this.nestingDepth+1>1)return this.getTranslationDataError(o.ExceedTranslationNestingDepth);let[e,t]=[i,void 0];const n=i.split("::");if(n.length>1&&([t,e]=[n[0],n[1]]),!e)return this.getTranslationDataError(o.MissingInheritedKey);const r=new d(this.i18n,this.lang,e,null!==t&&void 0!==t?t:this.keysetName,void 0,this.nestingDepth+1).getTranslationData();if(r.details)return this.getTranslationDataError(o.MissingInheritedKey);a+=r.text}else a+=e}return s<t.length&&(a+=t.slice(s)),{text:a}}}},1836:(e,t,n)=>{const r=n(15742);function i(e,t){const n=e.a/255,r=t+'="'+e.hex+'"';return n<1?r+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function o(e,t,n){let r=e+t;return"undefined"!==typeof n&&(r+=" "+n),r}t.render=function(e,t,n){const a=r.getOptions(t),s=e.modules.size,l=e.modules.data,c=s+2*a.margin,u=a.color.light.a?"<path "+i(a.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",d="<path "+i(a.color.dark,"stroke")+' d="'+function(e,t,n){let r="",i=0,a=!1,s=0;for(let l=0;l<e.length;l++){const c=Math.floor(l%t),u=Math.floor(l/t);c||a||(a=!0),e[l]?(s++,l>0&&c>0&&e[l-1]||(r+=a?o("M",c+n,.5+u+n):o("m",i,0),i=0,a=!1),c+1<t&&e[l+1]||(r+=o("h",s),s=0)):i++}return r}(l,s,a.margin)+'"/>',f='viewBox="0 0 '+c+" "+c+'"',p='<svg xmlns="http://www.w3.org/2000/svg" '+(a.width?'width="'+a.width+'" height="'+a.width+'" ':"")+f+' shape-rendering="crispEdges">'+u+d+"</svg>\n";return"function"===typeof n&&n(null,p),p}},2198:(e,t,n)=>{"use strict";n.d(t,{l:()=>A});var r=n(59284),i=n(72630),o=n(14794),a=n(18670),s=n(98392),l=n(19225),c=n(69220),u=n(99635),d=n(6826);const f=(0,c.om)("modal");function p({open:e=!1,keepMounted:t=!1,disableBodyScrollLock:n=!1,disableEscapeKeyDown:c,disableOutsideClick:p,disableFocusTrap:h,disableAutoFocus:m,focusTrap:g=!0,autoFocus:v=!0,restoreFocusRef:y,onEscapeKeyDown:b,onEnterKeyDown:w,onOutsideClick:x,onClose:_,onTransitionEnter:E,onTransitionEntered:S,onTransitionExit:C,onTransitionExited:k,children:O,style:N,contentOverflow:T="visible",className:A,contentClassName:I,"aria-labelledby":P,"aria-label":R,container:D,qa:j}){const M=r.useRef(null),L=r.useRef(null),[z,F]=r.useState(!1);(0,o.y)({enabled:!n&&(e||z)});const B=(0,a.s)({enabled:e||z,restoreFocusRef:y,focusTrapped:!0});return(0,u.Z)({open:e,disableEscapeKeyDown:c,disableOutsideClick:p,onEscapeKeyDown:b,onEnterKeyDown:w,onOutsideClick:x,onClose:_,contentRefs:[L],type:"modal"}),r.createElement(i.A,{nodeRef:M,in:e,addEndListener:e=>{var t;return null===(t=M.current)||void 0===t?void 0:t.addEventListener("animationend",e)},classNames:(0,d.L)(f),mountOnEnter:!t,unmountOnExit:!t,appear:!0,onEnter:()=>{F(!0),null===E||void 0===E||E()},onExit:()=>{F(!0),null===C||void 0===C||C()},onEntered:()=>{F(!1),null===S||void 0===S||S()},onExited:()=>{F(!1),null===k||void 0===k||k()}},r.createElement(s.Z,{container:D},r.createElement("div",{ref:M,style:N,className:f({open:e},A),"data-qa":j},r.createElement("div",{className:f("content-aligner")},r.createElement("div",{className:f("content-wrapper")},r.createElement(l.s,{enabled:!h&&g&&e&&!z,autoFocus:!m&&v},r.createElement("div",Object.assign({ref:L,tabIndex:-1,role:"dialog","aria-modal":e,"aria-label":R,"aria-labelledby":P,className:f("content",{"has-scroll":"auto"===T},I)},B),O)))))))}var h=n(81240),m=n(84476),g=n(99991),v=n(72837);const y=JSON.parse('{"close":"Close dialog"}'),b=JSON.parse('{"close":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432\u043e\u0435 \u043e\u043a\u043d\u043e"}'),w=(0,v.N)({en:y,ru:b},"Dialog"),x=(0,c.om)("dialog-btn-close");function _({onClose:e}){return r.createElement("div",{className:x()},r.createElement(m.$,{view:"flat",size:"l",className:x("btn"),onClick:t=>e(t,{isOutsideClick:!1}),extraProps:{"aria-label":w("close")}},r.createElement(g.I,{data:h.A,size:20})))}const E=(0,c.om)("dialog-body");const S=(0,c.om)("dialog-divider");var C=n(39238);const k=(0,c.om)("dialog-footer");class O extends r.Component{constructor(){super(...arguments),this.errorTooltipRef=r.createRef(),this.handleKeyDown=e=>{"Enter"===e.key&&(e.preventDefault(),this.props.onClickButtonApply&&this.props.onClickButtonApply(e))}}componentDidMount(){this.props.listenKeyEnter&&this.attachKeyDownListeners()}componentDidUpdate(e){!this.props.listenKeyEnter&&e.listenKeyEnter&&this.detachKeyDownListeners(),this.props.listenKeyEnter&&!e.listenKeyEnter&&this.attachKeyDownListeners()}componentWillUnmount(){this.detachKeyDownListeners()}render(){const{onClickButtonCancel:e,onClickButtonApply:t,loading:n,textButtonCancel:i,textButtonApply:o,propsButtonCancel:a,propsButtonApply:s,preset:l,children:c,errorText:u,showError:d,renderButtons:f,className:p}=this.props,h=r.createElement("div",{className:k("button",{action:"cancel"})},r.createElement(m.$,Object.assign({view:o?"flat":"normal",size:"l",width:"max",onClick:e,disabled:n},a),i)),g=r.createElement("div",{className:k("button",{action:"apply"})},r.createElement(m.$,Object.assign({ref:this.errorTooltipRef,type:"submit",view:"action",size:"l",width:"max",onClick:t,loading:n,className:k("button-apply",{preset:l})},s),o),u&&r.createElement(C.z,{open:d,anchorRef:this.errorTooltipRef,placement:["bottom","top"],disableLayer:!0,disablePortal:!0,hasArrow:!0},r.createElement("div",{className:k("error")},u)));return r.createElement("div",{className:k(null,p)},r.createElement("div",{className:k("children")},c),r.createElement("div",{className:k("bts-wrapper")},f?f(g,h):r.createElement(r.Fragment,null,i&&h,o&&g)))}attachKeyDownListeners(){setTimeout((()=>{window.addEventListener("keydown",this.handleKeyDown)}),0)}detachKeyDownListeners(){window.removeEventListener("keydown",this.handleKeyDown)}}O.defaultProps={preset:"default",showError:!1,listenKeyEnter:!1};const N=(0,c.om)("dialog-header");const T=(0,c.om)("dialog");class A extends r.Component{constructor(){super(...arguments),this.handleCloseButtonClick=e=>{const{onClose:t}=this.props;t(e.nativeEvent,"closeButtonClick")}}render(){const{container:e,children:t,open:n,disableBodyScrollLock:i,disableEscapeKeyDown:o,disableOutsideClick:a,disableFocusTrap:s,disableAutoFocus:l,restoreFocusRef:c,keepMounted:u,size:d,contentOverflow:f="visible",className:h,modalClassName:m,hasCloseButton:g,onEscapeKeyDown:v,onEnterKeyDown:y,onOutsideClick:b,onClose:w,onTransitionEnter:x,onTransitionEntered:E,onTransitionExit:S,onTransitionExited:C,"aria-label":k,"aria-labelledby":O,qa:N}=this.props;return r.createElement(p,{open:n,contentOverflow:f,disableBodyScrollLock:i,disableEscapeKeyDown:o,disableOutsideClick:a,disableFocusTrap:s,disableAutoFocus:l,restoreFocusRef:c,keepMounted:u,onEscapeKeyDown:v,onEnterKeyDown:y,onOutsideClick:b,onClose:w,onTransitionEnter:x,onTransitionEntered:E,onTransitionExit:S,onTransitionExited:C,className:T("modal",m),"aria-label":k,"aria-labelledby":O,container:e,qa:N},r.createElement("div",{className:T({size:d,"has-close":g,"has-scroll":"auto"===f},h)},t,g&&r.createElement(_,{onClose:this.handleCloseButtonClick})))}}A.defaultProps={disableBodyScrollLock:!1,disableEscapeKeyDown:!1,disableOutsideClick:!1,keepMounted:!1,hasCloseButton:!0},A.Footer=O,A.Header=function(e){const{caption:t="",insertBefore:n,insertAfter:i,className:o,id:a}=e;return r.createElement("div",{className:N(null,o)},n,r.createElement("div",{className:N("caption"),id:a},t),i)},A.Body=function(e){const{className:t,hasBorders:n=!1}=e;return r.createElement("div",{className:E({"has-borders":n},t)},e.children)},A.Divider=function({className:e}){return r.createElement("div",{className:S(null,e)})}},2859:e=>{e.exports=function(e,t){return e.has(t)}},3309:e=>{e.exports=function(){return"function"===typeof Promise&&Promise.prototype&&Promise.prototype.then}},3357:(e,t,n)=>{"use strict";var r;n.d(t,{ZM:()=>s,jK:()=>a,zj:()=>l}),function(e){e.Ru="ru",e.En="en"}(r||(r={}));let i=[];const o={lang:r.En,fallbackLang:r.En},a=e=>{Object.assign(o,e),i.forEach((e=>{e(o)}))},s=e=>(i.push(e),()=>{i=i.filter((t=>t!==e))}),l=()=>o},3584:(e,t,n)=>{"use strict";var r=n(39955),i=n(69123),o=n(93339),a=n(5635),s=n(46343)||a||o;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new r("Side channel does not contain "+i(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||(e=s()),e.set(t,n)}};return t}},3773:(e,t,n)=>{const r=n(71928);function i(e){this.mode=r.NUMERIC,this.data=e.toString()}i.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t,n,r;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),r=parseInt(n,10),e.put(r,10);const i=this.data.length-t;i>0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,3*i+1))},e.exports=i},4133:(e,t,n)=>{var r=n(54528),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},4178:(e,t,n)=>{var r=n(31926),i=n(87924),o=n(1167),a=n(46626),s=n(17900),l=n(89157),c=n(92061);e.exports=function(e,t){return a(e)&&s(t)?l(c(e),t):function(n){var a=i(n,e);return void 0===a&&a===t?o(n,e):r(t,a,3)}}},4200:(e,t,n)=>{var r=n(6993),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},4212:(e,t,n)=>{var r=n(935);e.exports=function(){this.__data__=new r,this.size=0}},4557:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>R});var r=n(27145),i=n(59284),o=n(56993),a=n.n(o),s=n(82435),l=n(6388);const c=(0,s.withNaming)({e:"__",m:"_"})("data-table");function u({name:e,defaultOrder:t},{sortOrder:n={},sortColumns:i=[]},o=!1,{defaultOrder:a,disableSortReset:s}={}){const c=t||a,u={sortOrder:{},sortColumns:[]};if(!e)return o?{sortOrder:n,sortColumns:i}:u;let d=i;const f=n[e];let p=c;if(f&&(p=f===c||s?f===l.VU?l.xN:l.VU:void 0),!o)return p?{sortOrder:{[e]:p},sortColumns:[e]}:u;const h=n,m=e,g=(h[m],(0,r.Tt)(h,["symbol"===typeof m?m:m+""]));return p?(g[e]=p,new Set(i).has(e)||(d=[...i,e])):d=i.filter((t=>t!==e)),{sortOrder:g,sortColumns:d}}function d(e,t,n={}){const r=t,{sortAscending:i}=e;return"function"===typeof i?(e,t)=>r*i(e,t):(t,i)=>{const o=e._getSortValue(t.row),a=e._getSortValue(i.row);return null==o&&null!=a?n.nullBeforeNumbers?-r:1:null==a&&null!=o?n.nullBeforeNumbers?r:-1:o<a?Number(-r):o>a?Number(r):0}}function f(e,t,{sortOrder:n,sortColumns:r},i){const o={};t.forEach((e=>{n[e.name]?o[e.name]=d(e,n[e.name],i):e.group&&e.autogroup&&(o[e.name]=d(e,l.VU,i))}));const a=t.filter((e=>e.group)),s=a.length>0,c=[...a.map((e=>o[e.name])).filter(Boolean),...r.map((e=>o[e])).filter(Boolean)],u=e.map(((e,t)=>s?{row:e,index:t,span:{}}:{row:e,index:t}));if(c.length&&!i.externalSort&&u.sort(((e,t)=>{let n=0;return c.some((r=>(n=r(e,t),Boolean(n)))),n||e.index-t.index})),u.length>1&&s){const e=[],t=[];u.forEach((n=>{a.every(((r,i)=>{const o=r._getValue(n.row);return e[i]&&o===t[i]?(e[i].span[r.name]+=1,n.span[r.name]=0,!0):(a.slice(i).forEach(((r,o)=>{e[i+o]=n,t[i+o]=r._getValue(n.row),n.span[r.name]=1})),!1)}))}))}return u}function p(e,t){return(Array.isArray(e)?e:[e]).reduce(((e,{columnId:n,order:r})=>u({name:n,defaultOrder:r},e,!0,t)),{sortOrder:{},sortColumns:[]})}function h({getColumn:e,columnIndex:t,columnId:n,minWidth:r,maxWidth:o,onResize:a}){const s=i.useRef(null),[l,u]=i.useState(!1);return i.useEffect((()=>{const i=s.current;if(!i)return;let l,c,d;const f=function(e){let t,n=null;return function(...r){t=r,"number"!==typeof n&&(n=requestAnimationFrame((()=>{e(...t),n=null})))}}((e=>{if(m(e),"number"!==typeof l||"number"!==typeof c)return;const t=e.clientX-l,i=function(e,t=40,n=1/0){return Math.max(t,Math.min(e,n))}(c+t,r,o);i!==d&&(d=i,null===a||void 0===a||a(n,d))})),p=e=>{m(e),void 0!==d&&(null===a||void 0===a||a(n,d)),u(!1),l=void 0,document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",p)},h=n=>{var r;c=null===(r=e(t))||void 0===r?void 0:r.getBoundingClientRect().width,m(n),l=n.clientX,u(!0),document.addEventListener("mousemove",f),document.addEventListener("mouseup",p)};return i.addEventListener("mousedown",h),()=>{i.removeEventListener("mousedown",h),document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",p)}}),[n,a,r,o,e,t]),i.createElement("span",{ref:s,className:c("resize-handler",{resizing:l}),onClick:e=>m(e)})}function m(e){e.preventDefault(),e.stopPropagation()}const g=function(){const e=document.createElement("a").style;return e.cssText="position:sticky; position:-webkit-sticky;",-1!==e.position.indexOf("sticky")}(),v={getSrcElement:()=>null,onHeightChange:()=>{}};class y{constructor(e){this.prevHeight=0,this.params=v,this.checkAndUpdateHeight=()=>{this.node?requestAnimationFrame((()=>{const e=this.node;e?this.updateHeight(e.offsetHeight):this.updateHeight(0)})):this.updateHeight(0)},this.params=Object.assign({},e)}destroy(){this.updateHeight(0),this.params=v}get node(){return this.params.getSrcElement()}updateHeight(e){this.prevHeight!==e&&(this.prevHeight=e,this.params.onHeightChange(e))}}const b=i.createElement("svg",{className:c("icon"),viewBox:"0 0 10 6",width:"10",height:"6"},i.createElement("path",{fill:"currentColor",d:"M0 5h10l-5 -5z"})),w=i.createElement("svg",{className:c("icon"),viewBox:"0 0 10 6",width:"10",height:"6"},i.createElement("path",{fill:"currentColor",d:"M0 1h10l-5 5z"})),x={ICON_ASC:b,ICON_DESC:w};const _=({sortOrder:e,sortIndex:t,sortable:n,defaultOrder:r})=>n?i.createElement("span",{className:c("sort-icon",{shadow:!e}),"data-index":t},function(e){switch(e){case l.VU:return x.ICON_ASC;case l.xN:return x.ICON_DESC;default:return!1}}(e||r)):null;class E extends i.PureComponent{constructor(){super(...arguments),this.onClick=e=>{if(this.props.onClick){const{row:t,index:n}=this.props;this.props.onClick(t,n,e)}}}render(){const{className:e,columns:t,row:n,index:r,odd:o,footer:a,span:s,getColSpansOfRow:l,headerData:u}=this.props,d=l?l(this.props):void 0;let f=0;return i.createElement("tr",{className:c("row",{odd:o,footer:a,"header-data":u},e),onClick:this.onClick},t.map(((e,t)=>{if(d){if(--f>0)return null;d[e.name]>1&&(f=d[e.name])}let o;if(s){if(0===s[e.name])return null;o=s[e.name]}const l=e._getValue(n);let c=e.customStyle({row:n,index:r,name:e.name,header:!1,footer:a,headerData:u});return e.resizeable&&(c=Object.assign(Object.assign({},c),{width:e.width,maxWidth:e.width})),i.createElement("td",{key:t,className:e._className,title:e._getTitle(n),style:c,colSpan:d?d[e.name]:void 0,rowSpan:o,onClick:e._getOnClick({row:n,index:r,footer:a,headerData:u})},e._renderValue({value:l,row:n,index:r,footer:a,headerData:u}))})))}}E.defaultProps={footer:!1};class S extends i.Component{constructor(){super(...arguments),this._dataRowsRef=null,this.renderedColumns=[],this.renderHeadCell=e=>{var t;const{onResize:n}=this.props,{column:r,rowSpan:o,colSpan:a}=e,{sortable:s=!1,header:l=r.name,className:u,index:d,columnIndex:f,align:p,name:m,width:g,resizeable:v,resizeMinWidth:y,resizeMaxWidth:b}=r,{headerTitle:w="string"===typeof l&&l||void 0}=r;let x=null===(t=r.customStyle)||void 0===t?void 0:t.call(r,{header:!0,name:m});return v&&(x=Object.assign(Object.assign({},x),{width:g,maxWidth:g})),i.createElement("th",{ref:r.dataColumn?this._getColumnRef(f):null,className:c("th",{sortable:s,align:p},u),key:m,title:w,"data-index":d,colSpan:a,rowSpan:o,style:x,onClick:this._getOnSortClick(r)},i.createElement("div",{className:c("head-cell")},l,i.createElement(_,Object.assign({},r))),v&&i.createElement(h,{getColumn:this._getRenderedColumn,columnIndex:f,onResize:n,columnId:m,minWidth:y,maxWidth:b}))},this.renderHeadLevel=(e,t)=>i.createElement("tr",{key:t,className:c("head-row")},e.map(this.renderHeadCell)),this.dataRowsRef=e=>{var t;this._dataRowsRef=e,e&&(null===(t=this.dataRowsHeightObserver)||void 0===t||t.checkAndUpdateHeight())},this._getColumnRef=e=>t=>{this.renderedColumns[e]=t},this._getRenderedColumn=e=>{if(void 0!==e)return this.renderedColumns[e]}}componentDidMount(){this._calculateColumnsWidth(),"function"===typeof this.props.onDataRowsHeightChange&&(this.dataRowsHeightObserver=new y({getSrcElement:()=>this._dataRowsRef,onHeightChange:e=>{"function"===typeof this.props.onDataRowsHeightChange&&this.props.onDataRowsHeightChange(e)}}))}componentDidUpdate(){var e;this._calculateColumnsWidth(),null===(e=this.dataRowsHeightObserver)||void 0===e||e.checkAndUpdateHeight()}componentWillUnmount(){var e;null===(e=this.dataRowsHeightObserver)||void 0===e||e.destroy()}render(){const{headColumns:e,dataColumns:t,renderedDataRows:n}=this.props;return this.renderedColumns.length=t.length,i.createElement(i.Fragment,null,i.createElement("thead",{className:c("head")},e.map(this.renderHeadLevel)),void 0===n?null:i.createElement("tbody",{ref:this.dataRowsRef},n))}_calculateColumnsWidth(){const{onColumnsUpdated:e}=this.props;"function"===typeof e&&requestAnimationFrame((()=>{const t=this.renderedColumns.map((e=>e&&e.getBoundingClientRect().width));e(t)}))}onSort(e,t){const{onSort:n}=this.props;"function"===typeof n&&n(e,t)}_getOnSortClick(e){const{sortable:t=!1,name:n}=e;return n===l.Uc?()=>{this.onSort()}:t?t=>{this.onSort(e,t.ctrlKey||t.metaKey)}:void 0}}class C extends i.Component{constructor(){super(...arguments),this.state={style:{top:C.defaultProps.top}},this.onDataRowsHeightChange=e=>{this.props.onDataRowsHeightChange(e+1)},this._nodeRef=e=>{this._node=e}}static getDerivedStateFromProps(e,t){var n;return e.top!==(null===(n=t.style)||void 0===n?void 0:n.top)?void 0===e.top?null:{style:{top:e.top}}:null}render(){const e=this.props,{mode:t,top:n}=e,o=(0,r.Tt)(e,["mode","top"]);if(t===l.zQ){const{style:e}=this.state;return i.createElement("div",{className:c("sticky",{moving:!0,head:!0}),style:e},this.renderHeader(o))}{const{widths:e=[],right:t=0}=this.state,n=e.reduce(((e,t)=>e+t),0);return i.createElement("div",{ref:this._nodeRef,className:c("sticky",{fixed:!0,head:!0}),style:{right:t,display:n?void 0:"none"}},this.renderHeader(o))}}setScrollLeft(e){requestAnimationFrame((()=>{this._node&&(this._node.scrollLeft=e)}))}setRightPosition(e){this.state.right===e||this.props.top||this.props.mode===l.zQ||this.setState({right:e})}renderHeader(e){const{widths:t=[]}=this.state,n=t.reduce(((e,t)=>e+t),0);return i.createElement("div",{className:c("table-wrapper",{sticky:!0})},i.createElement("table",{className:c("table",{sticky:!0}),style:{width:n||"auto"}},i.createElement("colgroup",null,t.map(((e,t)=>i.createElement("col",{key:t,style:{width:e}})))),i.createElement(S,Object.assign({},e,{onDataRowsHeightChange:this.onDataRowsHeightChange}))))}updateWidths(e=[]){const{widths:t=[]}=this.state;e.some(((e,n)=>e!==t[n]))&&this.setState({widths:e})}}C.defaultProps={top:0};class k extends i.PureComponent{constructor(){super(...arguments),this.state={style:{bottom:0}},this._nodeFixed=null,this._nodeMoving=null,this._nodeFixedRef=e=>{this._nodeFixed=e},this._nodeMovingRef=e=>{var t;this._nodeMoving=e,e&&(null===(t=this.heightObserver)||void 0===t||t.checkAndUpdateHeight())}}static getDerivedStateFromProps(e,t){var n;return e.bottom!==(null===(n=t.style)||void 0===n?void 0:n.bottom)?void 0===e.bottom?null:{style:{bottom:e.bottom}}:null}componentDidMount(){this.heightObserver=new y({getSrcElement:()=>this._nodeMoving,onHeightChange:this.props.onMovingHeightChange})}componentDidUpdate(){var e;null===(e=this.heightObserver)||void 0===e||e.checkAndUpdateHeight()}componentWillUnmount(){var e;null===(e=this.heightObserver)||void 0===e||e.destroy()}render(){if(!this.props.renderedRows)return null;const{mode:e,renderedRows:t}=this.props;if(e===l.zQ){const{style:e}=this.state;return i.createElement("div",{ref:this._nodeMovingRef,className:c("sticky",{footer:!0,moving:!0}),style:e},this.renderFooter(t))}{const{widths:e=[],right:n=0}=this.state,r=e.reduce(((e,t)=>e+t),0);return i.createElement("div",{ref:this._nodeFixedRef,className:c("sticky",{footer:!0,fixed:!0}),style:{right:n,display:r?void 0:"none"}},this.renderFooter(t))}}setScrollLeft(e){requestAnimationFrame((()=>{this._nodeFixed&&(this._nodeFixed.scrollLeft=e)}))}setRightPosition(e){this.state.right!==e&&!this.props.bottom&&this._nodeFixed&&this.setState({right:e})}renderFooter(e){const{widths:t=[]}=this.state,n=t.reduce(((e,t)=>e+t),0);return i.createElement("div",{className:c("table-wrapper",{sticky:!0})},i.createElement("table",{className:c("table",{sticky:!0}),style:{width:n||"auto"}},i.createElement("colgroup",null,t.map(((e,t)=>i.createElement("col",{key:t,style:{width:e}})))),i.createElement("tbody",null,e)))}updateWidths(e=[]){const{widths:t=[]}=this.state;e.some(((e,n)=>e!==t[n]))&&this.setState({widths:e})}}k.defaultProps={bottom:0};class O extends i.PureComponent{constructor(){super(...arguments),this.state={},this._refBody=e=>{this._body=e},this._refBox=e=>{this._box=e},this._refHead=e=>{this._head=e},this._refStickyHead=e=>{this._stickyHead=e},this._refStickyFooter=e=>{this._stickyFooter=e},this._onBoxScroll=()=>{this._updateBoxConstraints()},this._onColumnsUpdated=e=>{this._stickyHead&&this._stickyHead.updateWidths(e),this._stickyFooter&&this._stickyFooter.updateWidths(e)},this.onMovingHeaderDataRowsHeightChange=e=>{var t;-e!==(null===(t=this.state.movingHeaderStyle)||void 0===t?void 0:t.marginTop)&&this.setState({movingHeaderStyle:{marginTop:-e}})},this.onMovingFooterHeightChange=e=>{var t;-e!==(null===(t=this.state.movingFooterStyle)||void 0===t?void 0:t.marginBottom)&&this.setState({movingFooterStyle:{marginBottom:-e}})},this.renderRow=e=>{const{data:t,onRowClick:n}=this.props,{row:r,index:i,span:o}=t[e];return this.renderRowImpl(r,i,{onRowClick:n,odd:e%2===0,span:o})},this.renderFooterRow=(e,t)=>this.renderRowImpl(e,t,{footer:!0}),this.renderHeaderRow=(e,t)=>this.renderRowImpl(e,t,{headerData:!0}),this.renderRowImpl=(e,t,{onRowClick:n,odd:r,span:o,footer:a,headerData:s}={})=>{const{columns:{dataColumns:l},rowClassName:c,rowKey:u,getColSpansOfRow:d}=this.props,f="function"===typeof c?c(e,t,a,s):"";return i.createElement(E,{getColSpansOfRow:d,key:u(e,t),className:f,columns:l,row:e,index:t,span:o,odd:r,onClick:n,footer:a,headerData:s})},this.renderTable=(e,t)=>{const{footerData:n,columns:{dataColumns:r},settings:{stickyHead:o}}=this.props,{movingHeaderStyle:a,movingFooterStyle:s}=this.state,u=this.getStickyFooterMode();return i.createElement("div",{className:c("table-wrapper"),style:u===l.zQ?s:void 0},i.createElement("table",{className:c("table"),style:o===l.zQ?a:void 0},i.createElement("colgroup",null,r.map((({width:e},t)=>i.createElement("col",{key:t,width:e})))),this.renderHead(),i.createElement("tbody",{ref:t},e.length?e:this._getEmptyRow()),n&&i.createElement("tfoot",{className:c("foot",{"has-sticky-footer":u})},n.map(this.renderFooterRow))))}}componentDidMount(){const{stickyHead:e,syncHeadOnResize:t}=this.props.settings;this._updateBoxConstraints(),e&&t&&!this._onWindowResize&&(this._onWindowResize=()=>{this.syncHeadWidths()},window.addEventListener("resize",this._onWindowResize))}componentDidUpdate(){this._updateBoxConstraints()}componentWillUnmount(){this._onWindowResize&&(window.removeEventListener("resize",this._onWindowResize),delete this._onWindowResize)}render(){const{className:e}=this.props,{stickyHead:t,dynamicRender:n}=this.props.settings,r=this.getStickyFooterMode();return i.createElement("div",{className:e,ref:this._refBody},t&&this.renderStickyHead(),i.createElement("div",{ref:this._refBox,className:c("box",{"sticky-head":t,"sticky-footer":r}),onScroll:this._onBoxScroll},n?this.renderTableDynamic():this.renderTableSimple()),r&&this.renderStickyFooter())}_updateBoxConstraints(){const e=this._stickyHead||this._stickyFooter;if(this._box&&e){const e=this._box.offsetWidth-this._box.clientWidth;this._stickyHead&&(this._stickyHead.setRightPosition(e),this._stickyHead.setScrollLeft(this._box.scrollLeft)),this._stickyFooter&&(this._stickyFooter.setRightPosition(e),this._stickyFooter.setScrollLeft(this._box.scrollLeft))}}syncHeadWidths(){this._head&&this._head._calculateColumnsWidth()}_getEmptyRow(){const{columns:{dataColumns:e},emptyDataMessage:t,renderEmptyRow:n}=this.props;return"function"===typeof n?n(e):i.createElement("tr",{className:c("row")},i.createElement("td",{className:c("td",c("no-data")),colSpan:e.length},t))}renderHead(){const{columns:e,onSort:t,onResize:n}=this.props,{displayIndices:r}=this.props.settings,o=this.renderHeaderRows();return i.createElement(S,Object.assign({ref:this._refHead},e,{displayIndices:Boolean(r),onSort:t,onResize:n,onColumnsUpdated:this._onColumnsUpdated,renderedDataRows:o}))}renderStickyHead(){const{columns:e,onSort:t,onResize:n}=this.props,{displayIndices:r,stickyTop:o,stickyHead:a}=this.props.settings,s="auto"===o&&this._body&&this._body.parentNode?this._body.parentNode.offsetTop:Number(o)||0,l=this.renderHeaderRows();return i.createElement(C,Object.assign({mode:a,top:s,ref:this._refStickyHead},e,{displayIndices:r,onSort:t,onResize:n,renderedDataRows:l,onDataRowsHeightChange:this.onMovingHeaderDataRowsHeightChange}))}renderStickyFooter(){const{columns:e}=this.props,{stickyBottom:t}=this.props.settings;let n=Number(t)||0;if("auto"===t&&this._body&&this._body.parentNode){const e=this._body.parentNode;n=e.offsetTop+e.offsetHeight}const r=this.renderFooterRows();return i.createElement(k,{ref:this._refStickyFooter,mode:this.getStickyFooterMode(),bottom:n,dataColumns:e.dataColumns,renderedRows:r,onMovingHeightChange:this.onMovingFooterHeightChange})}renderTableDynamic(){const{data:e,settings:{dynamicInnerRef:t,dynamicRenderType:n="uniform",dynamicRenderUseStaticSize:r,dynamicRenderThreshold:o,dynamicRenderMinSize:s,dynamicRenderScrollParentGetter:l,dynamicRenderScrollParentViewportSizeGetter:c,dynamicItemSizeEstimator:u,dynamicItemSizeGetter:d}={}}=this.props;return i.createElement(a(),{ref:t,type:n,useStaticSize:r,threshold:o,minSize:s,itemSizeEstimator:u,itemSizeGetter:d,length:e.length,itemRenderer:this.renderRow,itemsRenderer:this.renderTable,scrollParentGetter:l,scrollParentViewportSizeGetter:c})}renderTableSimple(){const{data:e}=this.props,t=e.map(((e,t)=>this.renderRow(t)));return this.renderTable(t,null)}renderHeaderRows(){const{headerData:e}=this.props;return e&&e.map(this.renderHeaderRow)}renderFooterRows(){const{footerData:e}=this.props;return null===e||void 0===e?void 0:e.map(this.renderFooterRow)}getStickyFooterMode(){const{footerData:e}=this.props;if(!(null===e||void 0===e?void 0:e.length))return!1;const{stickyFooter:t}=this.props.settings;return t}}const N=i.memo((function(e){const{column:t,value:n,row:r,index:o,footer:a,headerData:s}=e;return i.createElement(i.Fragment,null,t.render({value:n,row:r,index:o,footer:a,headerData:s}))}));class T extends i.Component{constructor(){super(...arguments),this.state=Object.assign({settings:{}},p(this.props.initialSortOrder,this.props.settings)),this._tableRef=e=>{this.table=e},this.renderMemoizedCell=({column:e,value:t,row:n,index:r,footer:o,headerData:a})=>i.createElement(N,{column:e,value:t,row:n,index:r,footer:o,headerData:a}),this.getColumn=(e,t)=>{var n;const{onResize:r}=this.props,{settings:i}=this.state,{defaultOrder:o}=i,{sortOrder:a={},sortColumns:s,indexColumn:l}=this.state,u=Number(Boolean(l)),d=this.isSortEnabled(),{name:f,accessor:p=e.name,align:h,sortable:m=i.sortable,group:g,autogroup:v=!0}=e,{sortAccessor:y,onClick:b}=e,w=c("td",{align:h},e.className),x=(null!==(n=e.resizeable)&&void 0!==n?n:i.defaultResizeable)&&Boolean(r),_="function"===typeof p?e=>p(e):e=>Object.prototype.hasOwnProperty.call(e,p)?e[p]:void 0,E="function"===typeof e.title?t=>e.title(t):()=>"string"===typeof e.title&&e.title||void 0,S="function"===typeof y?e=>y(e):_,C="function"===typeof e.render?({value:t,row:n,index:r,footer:i,headerData:o})=>this.renderMemoizedCell({column:e,value:t,row:n,index:r,footer:i,headerData:o}):({value:e})=>e,k="function"===typeof e.customStyle?e.customStyle:()=>{},O="function"===typeof b?t=>n=>b(t,e,n):()=>{};return Object.assign(Object.assign({index:t-u,columnIndex:t,dataColumn:!0,defaultOrder:o},e),{resizeable:x,sortable:m&&d,_className:w,_getValue:_,_getTitle:E,_getSortValue:S,_renderValue:C,_getOnClick:O,customStyle:k,group:g,autogroup:v,sortOrder:a[f]||void 0,sortIndex:s.length>1?s.indexOf(f)+1:void 0})},this.isSortEnabled=()=>{const{data:e}=this.props;return Array.isArray(e)&&e.length>1},this.onSort=(e,t)=>{if(e){const{sortOrder:n,sortColumns:r}=u(e,this.state,t,this.props.settings);this.setState({sortOrder:n,sortColumns:r});const{onSort:i}=this.props;if("function"===typeof i){const e=function(e){return Object.keys(e).map((t=>({columnId:t,order:e[t]})))}(n);i(e)}}else{this.setState({sortOrder:{},sortColumns:[]});const{onSort:e}=this.props;"function"===typeof e&&e([])}}}static normalizeStickyHead(e=!1){return e!==l.zQ||g?e:(console.warn("Your browser does not support position: sticky, moving sticky headers will be disabled."),!1)}static calculateSettings(e){return Object.assign(Object.assign(Object.assign({},T.defaultProps.settings),e),{stickyHead:T.normalizeStickyHead(e.stickyHead),stickyFooter:T.normalizeStickyHead(e.stickyFooter)})}static getIndexColumn({startIndex:e,data:t,visibleRowIndex:n,settings:r}){const i="object"===typeof r.displayIndices?r.displayIndices.maxIndex:e+t.length+1;return{name:l.Uc,header:"#",className:c("index"),render:({row:t,index:r,footer:i,headerData:o})=>{var a,s;return o?null!==(a=t.headerIndex)&&void 0!==a?a:e+r:i?null!==(s=t.footerIndex)&&void 0!==s?s:e+r:"function"===typeof n?n(t,r):e+r},sortable:!1,resizeable:!1,width:20+10*Math.ceil(Math.log10(i))}}static getDerivedStateFromProps(e){const t=T.calculateSettings(e.settings);return Object.assign({settings:t,indexColumn:Boolean(t.displayIndices)&&T.getIndexColumn(e)},e.sortOrder?Object.assign({},p(e.sortOrder,e.settings)):void 0)}render(){const{getColSpansOfRow:e,headerData:t,data:n,footerData:r,columns:o,startIndex:a,emptyDataMessage:s,rowClassName:l,rowKey:u,onRowClick:d,onResize:p,theme:h,renderEmptyRow:m,nullBeforeNumbers:g}=this.props,{settings:v,sortOrder:y,sortColumns:b}=this.state,{highlightRows:w=!1,stripedRows:x=!1,headerMod:_=!1}=v,E=c({"highlight-rows":w,"striped-rows":x,header:_,theme:h}),S=this.getComplexColumns(o);return v.dynamicRender&&S.dataColumns.some((e=>e.group))&&console.warn("Simultaneously used grouping cells and dynamic render. The table will render unpredictable."),i.createElement(O,{ref:this._tableRef,getColSpansOfRow:e,className:E,settings:v,startIndex:a,columns:S,emptyDataMessage:s,renderEmptyRow:m,rowClassName:l,rowKey:u||T.defaultProps.rowKey,onRowClick:d,headerData:t,data:f(n,S.dataColumns,{sortOrder:y,sortColumns:b},{nullBeforeNumbers:g,externalSort:null===v||void 0===v?void 0:v.externalSort}),footerData:r,onSort:this.onSort,onResize:p})}getComplexColumns(e){const t=[],n=[],r=[],{indexColumn:i}=this.state,o=i?[i,...e]:e,a=(e,i)=>{t[i]||(t[i]=[]);const o=t[i];return e.reduce(((e,t)=>{let s=1,l=-1,c=t;if(Array.isArray(t.sub))s=a(t.sub,i+1);else{const e=this.getColumn(t,n.length);n.push(e),l=i,c=e}const u={column:c,itemLevel:l,colSpan:s,rowSpan:0};return r.push(u),o.push(u),s+e}),0)};return a(o,0),r.forEach((e=>{e.rowSpan=e.itemLevel<0?1:t.length-e.itemLevel})),{headColumns:t,dataColumns:n}}resize(){this.table&&this.table.syncHeadWidths()}}function A(e){return new Set(e.map((e=>e.name))).size!==e.length}T.defaultProps={startIndex:0,emptyDataMessage:"No data",settings:{displayIndices:!0,dynamicRenderMinSize:1,stickyHead:!1,stickyFooter:!1,sortable:!0,externalSort:!1,defaultOrder:l.VU,defaultResizeable:!1},rowKey:(e,t)=>Object.prototype.hasOwnProperty.call(e,"id")?e.id:t,initialSortOrder:{},initialSortColumns:[],theme:"yandex-cloud"},T.getSortedData=f;const I="It is strongly recommended against using duplicate column names. They act as default accessors and titles, so doing so may lead to confusing titles and the wrong data being extracted.";class P extends i.PureComponent{constructor(){super(...arguments),this.state={},this._tableRef=e=>{this.table=e}}static setCustomIcons(e){x.ICON_ASC=e.ICON_ASC||b,x.ICON_DESC=e.ICON_DESC||w}componentDidMount(){A(this.props.columns)&&console.warn(I)}componentDidUpdate(e){const{columns:t}=this.props;t!==e.columns&&A(t)&&console.warn(I)}componentDidCatch(e){console.error(e),this.setState({error:e});const{onError:t}=this.props;"function"===typeof t&&t(e)}render(){const{error:e}=this.state;return e?i.createElement("pre",{className:c("error")},"DataTable got stuck in invalid state. Please tell developers about it.","\n\n",e.stack&&String(e.stack)||String(e)):i.createElement(T,Object.assign({ref:this._tableRef},this.props))}resize(){this.table&&this.table.resize()}}P.FIXED=l.N2,P.MOVING=l.zQ,P.ASCENDING=l.VU,P.DESCENDING=l.xN,P.LEFT=l.M3,P.CENTER=l.Q7,P.RIGHT=l.NS;const R=P},4786:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},5290:(e,t,n)=>{"use strict";var r=n(51700),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(h){var i=p(n);i&&i!==h&&e(t,i,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),g=0;g<a.length;++g){var v=a[g];if(!o[v]&&(!r||!r[v])&&(!m||!m[v])&&(!s||!s[v])){var y=f(n,v);try{c(t,v,y)}catch(b){}}}}return t}},5635:(e,t,n)=>{"use strict";var r=n(94701),i=n(90308),o=n(69123),a=n(39955),s=r("%Map%",!0),l=i("Map.prototype.get",!0),c=i("Map.prototype.set",!0),u=i("Map.prototype.has",!0),d=i("Map.prototype.delete",!0),f=i("Map.prototype.size",!0);e.exports=!!s&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a("Side channel does not contain "+o(e))},delete:function(t){if(e){var n=d(e,t);return 0===f(e)&&(e=void 0),n}return!1},get:function(t){if(e)return l(e,t)},has:function(t){return!!e&&u(e,t)},set:function(t,n){e||(e=new s),c(e,t,n)}};return t}},5741:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(48372);const i=JSON.parse('{"common.created":"Created","common.type":"Type","no-data":"No data"}'),o=(0,r.g4)("ydb-components-info-viewer",{en:i})},5906:(e,t,n)=>{"use strict";var r=n(48681);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},6032:(e,t,n)=>{"use strict";var r=n(59284);var i="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},o=r.useSyncExternalStore,a=r.useRef,s=r.useEffect,l=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=a(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l((function(){function e(e){if(!s){if(s=!0,o=e,e=r(e),void 0!==u&&f.hasValue){var t=f.value;if(u(t,e))return a=t}return a=e}if(t=a,i(o,e))return t;var n=r(e);return void 0!==u&&u(t,n)?(o=e,t):(o=e,a=n)}var o,a,s=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]}),[t,n,r,u]);var p=o(e,d[0],d[1]);return s((function(){f.hasValue=!0,f.value=p}),[p]),c(p),p}},6104:(e,t,n)=>{var r=n(64205)("round");e.exports=r},6354:(e,t,n)=>{"use strict";n.d(t,{e:()=>r,r:()=>i});let r=function(e){return e.Unknown="Unknown",e.OldSchemeShard="OldSchemeShard",e.OldDataShard="OldDataShard",e.OldHive="OldHive",e.OldCoordinator="OldCoordinator",e.Mediator="Mediator",e.OldTxProxy="OldTxProxy",e.OldBSController="OldBSController",e.Dummy="Dummy",e.RTMRPartition="RTMRPartition",e.OldKeyValue="OldKeyValue",e.KeyValue="KeyValue",e.Coordinator="Coordinator",e.Hive="Hive",e.BSController="BSController",e.SchemeShard="SchemeShard",e.TxProxy="TxProxy",e.DataShard="DataShard",e.PersQueue="PersQueue",e.Cms="Cms",e.NodeBroker="NodeBroker",e.TxAllocator="TxAllocator",e.PersQueueReadBalancer="PersQueueReadBalancer",e.BlockStoreVolume="BlockStoreVolume",e.BlockStorePartition="BlockStorePartition",e.TenantSlotBroker="TenantSlotBroker",e.Console="Console",e.Kesus="Kesus",e.BlockStorePartition2="BlockStorePartition2",e.BlockStoreDiskRegistry="BlockStoreDiskRegistry",e.SysViewProcessor="SysViewProcessor",e.FileStore="FileStore",e.ColumnShard="ColumnShard",e.TestShard="TestShard",e.SequenceShard="SequenceShard",e.ReplicationController="ReplicationController",e.BlobDepot="BlobDepot",e.UserTypeStart="UserTypeStart",e.TypeInvalid="TypeInvalid",e}({}),i=function(e){return e.Created="Created",e.ResolveStateStorage="ResolveStateStorage",e.Candidate="Candidate",e.BlockBlobStorage="BlockBlobStorage",e.RebuildGraph="RebuildGraph",e.WriteZeroEntry="WriteZeroEntry",e.Restored="Restored",e.Discover="Discover",e.Lock="Lock",e.Dead="Dead",e.Active="Active",e.ResolveLeader="ResolveLeader",e.Deleted="Deleted",e.Stopped="Stopped",e}({})},6388:(e,t,n)=>{"use strict";n.d(t,{M3:()=>o,N2:()=>l,NS:()=>s,Q7:()=>a,Uc:()=>u,VU:()=>r,xN:()=>i,zQ:()=>c});const r=1,i=-1,o="left",a="center",s="right",l="fixed",c="moving",u="__index__"},6597:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTimestampFromArray=function(e,t){if(0===e.length)return s({},t);var n=e.map(Number),r=n[0],i=n[1],o=void 0===i?0:i,a=n[2],l=void 0===a?1:a,c=n[3],u=void 0===c?0:c,d=n[4],f=void 0===d?0:d,p=n[5],h=void 0===p?0:p,m=n[6];return s({year:r,month:o,date:l,hour:u,minute:f,second:h,millisecond:void 0===m?0:m},t)},t.getTimestampFromObject=s;var r=n(84080),i=n(13064);var o={year:1,month:1,date:1,hour:0,minute:0,second:0,millisecond:0},a=["year","month","date","hour","minute","second","millisecond"];function s(e,t){var n,s=(0,i.normalizeDateComponents)(e,i.normalizeComponent);s.date=null!==(n=s.day)&&void 0!==n?n:s.date;for(var l=(0,i.tsToObject)(Date.now(),(0,r.timeZoneOffset)(t,Date.now())),c=!1,u=0,d=a;u<d.length;u++){var f=d[u];void 0!==s[f]?c=!0:s[f]=c?o[f]:l[f]}var p=(0,r.fixOffset)((0,i.objToTS)(s),(0,r.timeZoneOffset)(t,Date.now()),t);return[p[0],p[1]]}},6693:(e,t,n)=>{const r=n(71928),i=n(22750);function o(e){this.mode=r.KANJI,this.data=e}o.getBitsLength=function(e){return 13*e},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=i.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),e.put(n,13)}},e.exports=o},6737:(e,t,n)=>{var r=n(20943),i=n(24447),o=n(88118);e.exports=function(e){return o(e)?r(e,!0):i(e)}},6826:(e,t,n)=>{"use strict";n.d(t,{L:()=>i});var r=n(69220);function i(e){return{appear:(0,r.Nx)(e({appear:!0})),appearActive:(0,r.Nx)(e({appear:"active"})),appearDone:(0,r.Nx)(e({appear:"done"})),enter:(0,r.Nx)(e({enter:!0})),enterActive:(0,r.Nx)(e({enter:"active"})),enterDone:(0,r.Nx)(e({enter:"done"})),exit:(0,r.Nx)(e({exit:!0})),exitActive:(0,r.Nx)(e({exit:"active"})),exitDone:(0,r.Nx)(e({exit:"done"}))}}},6993:(e,t,n)=>{var r=n(61872);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},7139:function(e,t,n){var r,i;r=function(){var e,t,n="2.0.6",r={},i={},o={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},a={currentLocale:o.currentLocale,zeroFormat:o.zeroFormat,nullFormat:o.nullFormat,defaultFormat:o.defaultFormat,scalePercentBy100:o.scalePercentBy100};function s(e,t){this._input=e,this._value=t}return(e=function(n){var i,o,l,c;if(e.isNumeral(n))i=n.value();else if(0===n||"undefined"===typeof n)i=0;else if(null===n||t.isNaN(n))i=null;else if("string"===typeof n)if(a.zeroFormat&&n===a.zeroFormat)i=0;else if(a.nullFormat&&n===a.nullFormat||!n.replace(/[^0-9]+/g,"").length)i=null;else{for(o in r)if((c="function"===typeof r[o].regexps.unformat?r[o].regexps.unformat():r[o].regexps.unformat)&&n.match(c)){l=r[o].unformat;break}i=(l=l||e._.stringToNumber)(n)}else i=Number(n)||null;return new s(n,i)}).version=n,e.isNumeral=function(e){return e instanceof s},e._=t={numberToFormat:function(t,n,r){var o,a,s,l,c,u,d,f=i[e.options.currentLocale],p=!1,h=!1,m=0,g="",v=1e12,y=1e9,b=1e6,w=1e3,x="",_=!1;if(t=t||0,a=Math.abs(t),e._.includes(n,"(")?(p=!0,n=n.replace(/[\(|\)]/g,"")):(e._.includes(n,"+")||e._.includes(n,"-"))&&(c=e._.includes(n,"+")?n.indexOf("+"):t<0?n.indexOf("-"):-1,n=n.replace(/[\+|\-]/g,"")),e._.includes(n,"a")&&(o=!!(o=n.match(/a(k|m|b|t)?/))&&o[1],e._.includes(n," a")&&(g=" "),n=n.replace(new RegExp(g+"a[kmbt]?"),""),a>=v&&!o||"t"===o?(g+=f.abbreviations.trillion,t/=v):a<v&&a>=y&&!o||"b"===o?(g+=f.abbreviations.billion,t/=y):a<y&&a>=b&&!o||"m"===o?(g+=f.abbreviations.million,t/=b):(a<b&&a>=w&&!o||"k"===o)&&(g+=f.abbreviations.thousand,t/=w)),e._.includes(n,"[.]")&&(h=!0,n=n.replace("[.]",".")),s=t.toString().split(".")[0],l=n.split(".")[1],u=n.indexOf(","),m=(n.split(".")[0].split(",")[0].match(/0/g)||[]).length,l?(e._.includes(l,"[")?(l=(l=l.replace("]","")).split("["),x=e._.toFixed(t,l[0].length+l[1].length,r,l[1].length)):x=e._.toFixed(t,l.length,r),s=x.split(".")[0],x=e._.includes(x,".")?f.delimiters.decimal+x.split(".")[1]:"",h&&0===Number(x.slice(1))&&(x="")):s=e._.toFixed(t,0,r),g&&!o&&Number(s)>=1e3&&g!==f.abbreviations.trillion)switch(s=String(Number(s)/1e3),g){case f.abbreviations.thousand:g=f.abbreviations.million;break;case f.abbreviations.million:g=f.abbreviations.billion;break;case f.abbreviations.billion:g=f.abbreviations.trillion}if(e._.includes(s,"-")&&(s=s.slice(1),_=!0),s.length<m)for(var E=m-s.length;E>0;E--)s="0"+s;return u>-1&&(s=s.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+f.delimiters.thousands)),0===n.indexOf(".")&&(s=""),d=s+x+(g||""),p?d=(p&&_?"(":"")+d+(p&&_?")":""):c>=0?d=0===c?(_?"-":"+")+d:d+(_?"-":"+"):_&&(d="-"+d),d},stringToNumber:function(e){var t,n,r,o=i[a.currentLocale],s=e,l={thousand:3,million:6,billion:9,trillion:12};if(a.zeroFormat&&e===a.zeroFormat)n=0;else if(a.nullFormat&&e===a.nullFormat||!e.replace(/[^0-9]+/g,"").length)n=null;else{for(t in n=1,"."!==o.delimiters.decimal&&(e=e.replace(/\./g,"").replace(o.delimiters.decimal,".")),l)if(r=new RegExp("[^a-zA-Z]"+o.abbreviations[t]+"(?:\\)|(\\"+o.currency.symbol+")?(?:\\))?)?$"),s.match(r)){n*=Math.pow(10,l[t]);break}n*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,""),n*=Number(e)}return n},isNaN:function(e){return"number"===typeof e&&isNaN(e)},includes:function(e,t){return-1!==e.indexOf(t)},insert:function(e,t,n){return e.slice(0,n)+t+e.slice(n)},reduce:function(e,t){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!==typeof t)throw new TypeError(t+" is not a function");var n,r=Object(e),i=r.length>>>0,o=0;if(3===arguments.length)n=arguments[2];else{for(;o<i&&!(o in r);)o++;if(o>=i)throw new TypeError("Reduce of empty array with no initial value");n=r[o++]}for(;o<i;o++)o in r&&(n=t(n,r[o],o,r));return n},multiplier:function(e){var t=e.toString().split(".");return t.length<2?1:Math.pow(10,t[1].length)},correctionFactor:function(){return Array.prototype.slice.call(arguments).reduce((function(e,n){var r=t.multiplier(n);return e>r?e:r}),1)},toFixed:function(e,t,n,r){var i,o,a,s,l=e.toString().split("."),c=t-(r||0);return i=2===l.length?Math.min(Math.max(l[1].length,c),t):c,a=Math.pow(10,i),s=(n(e+"e+"+i)/a).toFixed(i),r>t-i&&(o=new RegExp("\\.?0{1,"+(r-(t-i))+"}$"),s=s.replace(o,"")),s}},e.options=a,e.formats=r,e.locales=i,e.locale=function(e){return e&&(a.currentLocale=e.toLowerCase()),a.currentLocale},e.localeData=function(e){if(!e)return i[a.currentLocale];if(e=e.toLowerCase(),!i[e])throw new Error("Unknown locale : "+e);return i[e]},e.reset=function(){for(var e in o)a[e]=o[e]},e.zeroFormat=function(e){a.zeroFormat="string"===typeof e?e:null},e.nullFormat=function(e){a.nullFormat="string"===typeof e?e:null},e.defaultFormat=function(e){a.defaultFormat="string"===typeof e?e:"0.0"},e.register=function(e,t,n){if(t=t.toLowerCase(),this[e+"s"][t])throw new TypeError(t+" "+e+" already registered.");return this[e+"s"][t]=n,n},e.validate=function(t,n){var r,i,o,a,s,l,c,u;if("string"!==typeof t&&(t+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",t)),(t=t.trim()).match(/^\d+$/))return!0;if(""===t)return!1;try{c=e.localeData(n)}catch(d){c=e.localeData(e.locale())}return o=c.currency.symbol,s=c.abbreviations,r=c.delimiters.decimal,i="."===c.delimiters.thousands?"\\.":c.delimiters.thousands,(null===(u=t.match(/^[^\d]+/))||(t=t.substr(1),u[0]===o))&&(null===(u=t.match(/[^\d]+$/))||(t=t.slice(0,-1),u[0]===s.thousand||u[0]===s.million||u[0]===s.billion||u[0]===s.trillion))&&(l=new RegExp(i+"{2}"),!t.match(/[^\d.,]/g)&&!((a=t.split(r)).length>2)&&(a.length<2?!!a[0].match(/^\d+.*\d$/)&&!a[0].match(l):1===a[0].length?!!a[0].match(/^\d+$/)&&!a[0].match(l)&&!!a[1].match(/^\d+$/):!!a[0].match(/^\d+.*\d$/)&&!a[0].match(l)&&!!a[1].match(/^\d+$/)))},e.fn=s.prototype={clone:function(){return e(this)},format:function(t,n){var i,o,s,l=this._value,c=t||a.defaultFormat;if(n=n||Math.round,0===l&&null!==a.zeroFormat)o=a.zeroFormat;else if(null===l&&null!==a.nullFormat)o=a.nullFormat;else{for(i in r)if(c.match(r[i].regexps.format)){s=r[i].format;break}o=(s=s||e._.numberToFormat)(l,c,n)}return o},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){var n=t.correctionFactor.call(null,this._value,e);function r(e,t,r,i){return e+Math.round(n*t)}return this._value=t.reduce([this._value,e],r,0)/n,this},subtract:function(e){var n=t.correctionFactor.call(null,this._value,e);function r(e,t,r,i){return e-Math.round(n*t)}return this._value=t.reduce([e],r,Math.round(this._value*n))/n,this},multiply:function(e){function n(e,n,r,i){var o=t.correctionFactor(e,n);return Math.round(e*o)*Math.round(n*o)/Math.round(o*o)}return this._value=t.reduce([this._value,e],n,1),this},divide:function(e){function n(e,n,r,i){var o=t.correctionFactor(e,n);return Math.round(e*o)/Math.round(n*o)}return this._value=t.reduce([this._value,e],n),this},difference:function(t){return Math.abs(e(this._value).subtract(t).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(t,n,r){var i,o=e._.includes(n," BPS")?" ":"";return t*=1e4,n=n.replace(/\s?BPS/,""),i=e._.numberToFormat(t,n,r),e._.includes(i,")")?((i=i.split("")).splice(-1,0,o+"BPS"),i=i.join("")):i=i+o+"BPS",i},unformat:function(t){return+(1e-4*e._.stringToNumber(t)).toFixed(15)}}),function(){var t={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},n={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},r=t.suffixes.concat(n.suffixes.filter((function(e){return t.suffixes.indexOf(e)<0}))).join("|");r="("+r.replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(r)},format:function(r,i,o){var a,s,l,c=e._.includes(i,"ib")?n:t,u=e._.includes(i," b")||e._.includes(i," ib")?" ":"";for(i=i.replace(/\s?i?b/,""),a=0;a<=c.suffixes.length;a++)if(s=Math.pow(c.base,a),l=Math.pow(c.base,a+1),null===r||0===r||r>=s&&r<l){u+=c.suffixes[a],s>0&&(r/=s);break}return e._.numberToFormat(r,i,o)+u},unformat:function(r){var i,o,a=e._.stringToNumber(r);if(a){for(i=t.suffixes.length-1;i>=0;i--){if(e._.includes(r,t.suffixes[i])){o=Math.pow(t.base,i);break}if(e._.includes(r,n.suffixes[i])){o=Math.pow(n.base,i);break}}a*=o||1}return a}})}(),e.register("format","currency",{regexps:{format:/(\$)/},format:function(t,n,r){var i,o,a=e.locales[e.options.currentLocale],s={before:n.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:n.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(n=n.replace(/\s?\$\s?/,""),i=e._.numberToFormat(t,n,r),t>=0?(s.before=s.before.replace(/[\-\(]/,""),s.after=s.after.replace(/[\-\)]/,"")):t<0&&!e._.includes(s.before,"-")&&!e._.includes(s.before,"(")&&(s.before="-"+s.before),o=0;o<s.before.length;o++)switch(s.before[o]){case"$":i=e._.insert(i,a.currency.symbol,o);break;case" ":i=e._.insert(i," ",o+a.currency.symbol.length-1)}for(o=s.after.length-1;o>=0;o--)switch(s.after[o]){case"$":i=o===s.after.length-1?i+a.currency.symbol:e._.insert(i,a.currency.symbol,-(s.after.length-(1+o)));break;case" ":i=o===s.after.length-1?i+" ":e._.insert(i," ",-(s.after.length-(1+o)+a.currency.symbol.length-1))}return i}}),e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(t,n,r){var i=("number"!==typeof t||e._.isNaN(t)?"0e+0":t.toExponential()).split("e");return n=n.replace(/e[\+|\-]{1}0/,""),e._.numberToFormat(Number(i[0]),n,r)+"e"+i[1]},unformat:function(t){var n=e._.includes(t,"e+")?t.split("e+"):t.split("e-"),r=Number(n[0]),i=Number(n[1]);function o(t,n,r,i){var o=e._.correctionFactor(t,n);return t*o*(n*o)/(o*o)}return i=e._.includes(t,"e-")?i*=-1:i,e._.reduce([r,Math.pow(10,i)],o,1)}}),e.register("format","ordinal",{regexps:{format:/(o)/},format:function(t,n,r){var i=e.locales[e.options.currentLocale],o=e._.includes(n," o")?" ":"";return n=n.replace(/\s?o/,""),o+=i.ordinal(t),e._.numberToFormat(t,n,r)+o}}),e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(t,n,r){var i,o=e._.includes(n," %")?" ":"";return e.options.scalePercentBy100&&(t*=100),n=n.replace(/\s?\%/,""),i=e._.numberToFormat(t,n,r),e._.includes(i,")")?((i=i.split("")).splice(-1,0,o+"%"),i=i.join("")):i=i+o+"%",i},unformat:function(t){var n=e._.stringToNumber(t);return e.options.scalePercentBy100?.01*n:n}}),e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,t,n){var r=Math.floor(e/60/60),i=Math.floor((e-60*r*60)/60),o=Math.round(e-60*r*60-60*i);return r+":"+(i<10?"0"+i:i)+":"+(o<10?"0"+o:o)},unformat:function(e){var t=e.split(":"),n=0;return 3===t.length?(n+=60*Number(t[0])*60,n+=60*Number(t[1]),n+=Number(t[2])):2===t.length&&(n+=60*Number(t[0]),n+=Number(t[1])),Number(n)}}),e},void 0===(i="function"===typeof r?r.call(t,n,t,e):r)||(e.exports=i)},7328:e=>{"use strict";e.exports=Math.pow},7412:(e,t,n)=>{"use strict";function r(e){var t;return null!==(t=e.props.ref)&&void 0!==t?t:e.ref}n.d(t,{Q:()=>r})},7435:(e,t,n)=>{"use strict";n.d(t,{_e:()=>r,f8:()=>i,uk:()=>o});const r=e=>[...Array(e).keys()];function i(e){return null!==e&&void 0!==e}async function o(e,t){return new Promise((n=>{setTimeout((()=>n(t)),e)}))}},7445:e=>{"use strict";var t=String.prototype.replace,n=/%20/g,r="RFC1738",i="RFC3986";e.exports={default:i,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:r,RFC3986:i}},7450:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M3 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3M9.5 8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m5 0a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0",clipRule:"evenodd"}))},7653:(e,t,n)=>{var r=n(22984),i=n(99806),o=n(68489),a=n(38533),s=n(99661);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},7804:(e,t,n)=>{var r=n(4133).Uint8Array;e.exports=r},7889:(e,t,n)=>{"use strict";n.d(t,{p:()=>_,q:()=>E});var r,i,o,a,s,l,c,u,d,f,p,h=n(99991),m=n(77506),g=n(59284);function v(){return v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v.apply(null,arguments)}const y=function(e){return g.createElement("svg",v({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 383 396",fill:"none"},e),r||(r=g.createElement("path",{d:"M307.333 168.43c9.4-14.2 14.1-32.6 14.1-55.3 0-34.4-11.7-61.9-35.3-82.2-23.4-20.5-63-30.7-106.7-30.7-13.1 0-24.1.9-34.8 2.7-10.7 1.8-20.1 3.9-28.2 6.3-5.4 1.6-16.1 5.7-23.3 8.6-4.1 1.7-6.9 6-6.9 10.8v39.5c0 8.2 7.8 13.8 14.9 10.5a458.74 458.74 0 001.806-.818c2.367-1.074 4.452-2.02 5.894-2.581 5.7-2.3 12.4-4.2 20.1-5.8 7.7-1.6 16.3-2.4 25.7-2.4 22.2 0 43.1 5 52.3 14.9 9.2 10 13.8 22.499 13.8 37.499 0 13-2.7 24.1-8.2 33.2-5.5 9.1-13.1 18-22.9 26.5-7.9 6.9-15.2 13.5-22 19.8-6.8 6.3-12.6 13.2-17.5 20.7s-8.7 16-11.3 25.3c-1.6 5.6-2.7 20.3-3.3 31-.3 6.6 4.5 12.2 10.7 12.2h51.2c5.4 0 10-4.4 10.6-10.2.6-5.7 2-12.5 5.5-17.8 4-5.9 8.7-11.8 14.7-17.3s13-11 20.9-16.7c8-5.6 16.2-12.1 24.9-19.4 12.8-11.4 23.9-24.1 33.3-38.3zm-167.6 212.7c9 9.5 20.1 14.2 33.4 14.2 6.3 0 12.4-1.3 18.2-4 5.8-2.6 10.9-6 15.2-10.3 4.3-4.3 7.7-9.4 10.2-15.2 2.5-5.8 3.7-12.1 3.7-19 0-6.8-1.2-13.2-3.7-19-2.5-5.8-5.9-10.9-10.2-15.4-4.3-4.5-9.4-7.9-15.2-10.3-5.8-2.4-11.9-3.6-18.2-3.6-13.3 0-24.4 4.6-33.4 13.9s-13.5 20.8-13.5 34.5c0 13.4 4.5 24.8 13.5 34.2z",fill:"#ECF2F9"})),i||(i=g.createElement("path",{d:"M213.933 353.03h-193.5c-10 0-18.2-8.2-18.2-18.2v-125.4c0-10 8.2-18.2 18.2-18.2h193.5c10 0 18.2 8.2 18.2 18.2v125.4c0 10.1-8.2 18.2-18.2 18.2z",stroke:"#00E6C5",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"4 10"})),o||(o=g.createElement("path",{d:"M21.034 214.732a5.2 5.2 0 100-10.4 5.2 5.2 0 000 10.4zm16.899 0a5.2 5.2 0 100-10.4 5.2 5.2 0 000 10.4zm16.9 0a5.2 5.2 0 100-10.4 5.2 5.2 0 000 10.4z",fill:"#2EE5C0"})),a||(a=g.createElement("path",{d:"M2.533 228.129h228.9",stroke:"#00E6C5",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"4 10"})),s||(s=g.createElement("path",{d:"M301.033 264.83l-216.9 12c-7.3.4-13.3-5.2-13.3-12.5V96.93c0-7.3 6-12.9 13.3-12.5l216.9 12c5.6.3 10.1 5.7 10.1 12v144.4c0 6.3-4.5 11.7-10.1 12z",fill:"#027BF3"})),l||(l=g.createElement("path",{d:"M90.433 107.93c3.4.2 6.1-2.4 6.1-5.8s-2.7-6.3-6.1-6.4c-3.3-.2-6.1 2.4-6.1 5.8s2.7 6.3 6.1 6.4zm19.8.798c3.3.1 6-2.5 6-5.8s-2.7-6.1-6-6.3c-3.3-.1-6 2.5-6 5.8s2.7 6.2 6 6.3zm25.2-4.9c0 3.3-2.6 5.9-5.8 5.7-3.2-.1-5.9-2.9-5.9-6.2 0-3.3 2.6-5.9 5.9-5.7 3.2.1 5.8 2.9 5.8 6.2zm66.001 61.703l19.1-20.9 17.4 19.1-18.9 20.9 18.9 20.5-17.4 19.5-19.1-20.5-19.4 21.5-18.1-19.1 19.6-21.5-19.6-21 18.1-19.5 19.4 21z",fill:"#fff"})),c||(c=g.createElement("path",{d:"M327.433 112.83c0-28.4-21.7-37.1-33.5-37.9-.1 0-33.5 2.3-33.5 45.3 0 25.5 21.2 45.5 46 44.6 7.8-.3 14.9-2.6 21-6.4v-45.6z",fill:"#67B0F8"})),u||(u=g.createElement("path",{d:"M380.534 195.931c-2.9 3.4-7.6 3.7-10.5.8l-38.6-39 11.3-12.2 37.8 39c2.9 3 2.9 8 0 11.4z",fill:"#FF4645"})),d||(d=g.createElement("path",{d:"M342.833 145.629l-11.3 12.2 3.7 3.7c1.9 1.9 4.9 2 6.8.2 1.1-1 2.2-2.1 3.2-3.2.6-.7 1.3-1.4 1.9-2.1 1.6-1.9 1.5-4.8-.3-6.6l-4-4.2z",fill:"#D93654"})),f||(f=g.createElement("path",{d:"M267.633 154.13c-23-21.401-23-57.3 0-78.1 21.9-19.8 55.1-17 74.4 4.3 18.4 20.399 18.4 51.7 0 71.6-19.3 20.8-52.5 22.6-74.4 2.2zm9.4-10.802c15.6 15 39.8 14.2 54.1-.9 13.8-14.6 13.8-37.8 0-52.8-14.3-15.5-38.5-17-54.1-2.5-16.2 15.1-16.2 40.7 0 56.2z",fill:"#00236B"})),p||(p=g.createElement("path",{d:"M41.034 42.73a2 2 0 10-4 0h4zm-4 8.3a2 2 0 004 0h-4zm4 17.2a2 2 0 10-4 0h4zm-4 8.9a2 2 0 004 0h-4zm19.2-15.2a2 2 0 000-4v4zm-8.2-4a2 2 0 100 4v-4zm-17.9 4a2 2 0 000-4v4zm-8.2-4a2 2 0 100 4v-4zm15.1-15.2v8.3h4v-8.3h-4zm0 25.5v8.9h4v-8.9h-4zm19.2-10.3h-8.2v4h8.2v-4zm-26.1 0h-8.2v4h8.2v-4z",fill:"#2EE5C0"})))};var b=n(60712);const w=(0,m.cn)("empty-state"),x={s:150,m:250,l:350},_=({image:e,title:t,description:n,actions:r,size:i="m",position:o="center"})=>(0,b.jsx)("div",{className:w({size:i}),children:(0,b.jsxs)("div",{className:w("wrapper",{size:i,position:o}),children:[(0,b.jsx)("div",{className:w("image"),children:e||(0,b.jsx)(h.I,{data:y,width:x[i],height:x[i]})}),(0,b.jsx)("div",{className:w("title",{size:i}),children:t}),(0,b.jsx)("div",{className:w("description"),children:n}),(0,b.jsx)("div",{className:w("actions"),children:r})]})});function E({isEmpty:e,children:t,className:n,...r}){return e?(0,b.jsx)("div",{className:n,children:(0,b.jsx)(_,{...r})}):t}},8330:e=>{"use strict";e.exports={rE:"8.14.0"}},8543:(e,t,n)=>{var r=n(81382),i=n(31926);e.exports=function(e,t,n,o){var a=n.length,s=a,l=!o;if(null==e)return!s;for(e=Object(e);a--;){var c=n[a];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<s;){var u=(c=n[a])[0],d=e[u],f=c[1];if(l&&c[2]){if(void 0===d&&!(u in e))return!1}else{var p=new r;if(o)var h=o(d,f,u,e,t,p);if(!(void 0===h?i(f,d,3,o,p):h))return!1}}return!0}},8861:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i,u:()=>r});const r={Unspecified:"Unspecified",Good:"Good",Warning:"Warning",Danger:"Danger"},i={[r.Unspecified]:0,[r.Good]:1,[r.Warning]:2,[r.Danger]:3}},8928:(e,t,n)=>{"use strict";var r,i=n(31886),o=n(84363);try{r=[].__proto__===Array.prototype}catch(c){if(!c||"object"!==typeof c||!("code"in c)||"ERR_PROTO_ACCESS"!==c.code)throw c}var a=!!r&&o&&o(Object.prototype,"__proto__"),s=Object,l=s.getPrototypeOf;e.exports=a&&"function"===typeof a.get?i([a.get]):"function"===typeof l&&function(e){return l(null==e?e:s(e))}},8944:(e,t,n)=>{"use strict";n.d(t,{nR:()=>o,si:()=>l,yZ:()=>s});var r=n(35719);const i={s:0,m:1,l:2,xl:3,xxl:4,xxxl:5},o=e=>t=>e in i&&i[e]-i[t]>=0,a=["s","m","l","xl","xxl","xxxl"],s=e=>(t={})=>{if(!e)return;let n=e;for(;n;){if(t[n])return t[n];n=a[i[n]-1]}},l=e=>e in r.W?r.W[e]:String(e)},9112:e=>{e.exports=function(e){return e}},9187:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.53 2.97a.75.75 0 0 1 0 1.06L6.56 8l3.97 3.97a.75.75 0 1 1-1.06 1.06l-4.5-4.5a.75.75 0 0 1 0-1.06l4.5-4.5a.75.75 0 0 1 1.06 0",clipRule:"evenodd"}))},9265:e=>{"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n};e.exports=function(e){var i=this;if("function"!==typeof i||"[object Function]"!==t.apply(i))throw new TypeError("Function.prototype.bind called on incompatible "+i);for(var o,a=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n}(arguments,1),s=n(0,i.length-a.length),l=[],c=0;c<s;c++)l[c]="$"+c;if(o=Function("binder","return function ("+function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n}(l,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof o){var t=i.apply(this,r(a,arguments));return Object(t)===t?t:this}return i.apply(e,r(a,arguments))})),i.prototype){var u=function(){};u.prototype=i.prototype,o.prototype=new u,u.prototype=null}return o}},9296:(e,t,n)=>{"use strict";n.d(t,{a:()=>l});var r=n(27145),i=n(59284),o=n(69220),a=n(46423);const s=(0,o.om)("box"),l=i.forwardRef((function(e,t){var{as:n,children:o,qa:l,className:c,width:u,height:d,minWidth:f,minHeight:p,maxHeight:h,maxWidth:m,position:g,style:v,spacing:y,overflow:b}=e,w=(0,r.Tt)(e,["as","children","qa","className","width","height","minWidth","minHeight","maxHeight","maxWidth","position","style","spacing","overflow"]);const x=n||"div",_=Object.assign({width:u,height:d,minWidth:f,minHeight:p,maxHeight:h,maxWidth:m,position:g},v);return i.createElement(x,Object.assign({},w,{"data-qa":l,style:_,ref:t,className:s({overflow:b},y?(0,a.sp)(y,c):c)}),o)}))},9417:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:()=>r})},9434:e=>{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},9624:e=>{"use strict";var t={single_source_shortest_paths:function(e,n,r){var i={},o={};o[n]=0;var a,s,l,c,u,d,f,p=t.PriorityQueue.make();for(p.push(n,0);!p.empty();)for(l in s=(a=p.pop()).value,c=a.cost,u=e[s]||{})u.hasOwnProperty(l)&&(d=c+u[l],f=o[l],("undefined"===typeof o[l]||f>d)&&(o[l]=d,p.push(l,d),i[l]=s));if("undefined"!==typeof r&&"undefined"===typeof o[r]){var h=["Could not find a path from ",n," to ",r,"."].join("");throw new Error(h)}return i},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],r=t;r;)n.push(r),e[r],r=e[r];return n.reverse(),n},find_path:function(e,n,r){var i=t.single_source_shortest_paths(e,n,r);return t.extract_shortest_path_from_predecessor_list(i,r)},PriorityQueue:{make:function(e){var n,r=t.PriorityQueue,i={};for(n in e=e||{},r)r.hasOwnProperty(n)&&(i[n]=r[n]);return i.queue=[],i.sorter=e.sorter||r.default_sorter,i},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=t},10176:(e,t,n)=>{"use strict";n.d(t,{$D:()=>l,If:()=>c,zm:()=>s});var r=n(99991),i=n(69220),o=n(41668);let a=1;function s(){return`${i.CU}uniq-${a++}`}const l=(0,o.g)("svg"),c=(0,o.g)(r.I)},10641:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(59284).createContext(null)},10755:(e,t,n)=>{"use strict";n.d(t,{B6:()=>T,Ix:()=>b,W5:()=>U,W6:()=>z,XZ:()=>y,dO:()=>M,g:()=>B,qh:()=>A,rd:()=>C,zy:()=>F});var r=n(25540),i=n(59284),o=n(13260),a=n.n(o),s=n(45264),l=n(68643),c=n(58168),u=n(13489),d=n.n(u),f=(n(67076),n(98587)),p=(n(5290),1073741823),h="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{};var m=i.createContext||function(e,t){var n,o,s="__create-react-context-"+function(){var e="__global_unique_id__";return h[e]=(h[e]||0)+1}()+"__",l=function(e){function n(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).emitter=function(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}(t.props.value),t}(0,r.A)(n,e);var i=n.prototype;return i.getChildContext=function(){var e;return(e={})[s]=this.emitter,e},i.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,i=e.value;((o=r)===(a=i)?0!==o||1/o===1/a:o!==o&&a!==a)?n=0:(n="function"===typeof t?t(r,i):p,0!==(n|=0)&&this.emitter.set(e.value,n))}var o,a},i.render=function(){return this.props.children},n}(i.Component);l.childContextTypes=((n={})[s]=a().object.isRequired,n);var c=function(t){function n(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))||this).observedBits=void 0,e.state={value:e.getValue()},e.onUpdate=function(t,n){0!==((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}(0,r.A)(n,t);var i=n.prototype;return i.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?p:t},i.componentDidMount=function(){this.context[s]&&this.context[s].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?p:e},i.componentWillUnmount=function(){this.context[s]&&this.context[s].off(this.onUpdate)},i.getValue=function(){return this.context[s]?this.context[s].get():e},i.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(i.Component);return c.contextTypes=((o={})[s]=a().object,o),{Provider:l,Consumer:c}},g=function(e){var t=m();return t.displayName=e,t},v=g("Router-History"),y=g("Router"),b=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._pendingLocation=e}))),n}(0,r.A)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){var e=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(t){e._isMounted&&e.setState({location:t})}))),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return i.createElement(y.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},i.createElement(v.Provider,{children:this.props.children||null,value:this.props.history}))},t}(i.Component);i.Component;var w=function(e){function t(){return e.apply(this,arguments)||this}(0,r.A)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(i.Component);var x={},_=1e4,E=0;function S(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(x[e])return x[e];var t=d().compile(e);return E<_&&(x[e]=t,E++),t}(e)(t,{pretty:!0})}function C(e){var t=e.computedMatch,n=e.to,r=e.push,o=void 0!==r&&r;return i.createElement(y.Consumer,null,(function(e){e||(0,l.A)(!1);var r=e.history,a=e.staticContext,u=o?r.push:r.replace,d=(0,s.yJ)(t?"string"===typeof n?S(n,t.params):(0,c.A)({},n,{pathname:S(n.pathname,t.params)}):n);return a?(u(d),null):i.createElement(w,{onMount:function(){u(d)},onUpdate:function(e,t){var n=(0,s.yJ)(t.to);(0,s.Fu)(n,(0,c.A)({},d,{key:n.key}))||u(d)},to:n})}))}var k={},O=1e4,N=0;function T(e,t){void 0===t&&(t={}),("string"===typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,i=n.exact,o=void 0!==i&&i,a=n.strict,s=void 0!==a&&a,l=n.sensitive,c=void 0!==l&&l;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=k[n]||(k[n]={});if(r[e])return r[e];var i=[],o={regexp:d()(e,i,t),keys:i};return N<O&&(r[e]=o,N++),o}(n,{end:o,strict:s,sensitive:c}),i=r.regexp,a=r.keys,l=i.exec(e);if(!l)return null;var u=l[0],f=l.slice(1),p=e===u;return o&&!p?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:p,params:a.reduce((function(e,t,n){return e[t.name]=f[n],e}),{})}}),null)}var A=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.A)(t,e),t.prototype.render=function(){var e=this;return i.createElement(y.Consumer,null,(function(t){t||(0,l.A)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?T(n.pathname,e.props):t.match,o=(0,c.A)({},t,{location:n,match:r}),a=e.props,s=a.children,u=a.component,d=a.render;return Array.isArray(s)&&function(e){return 0===i.Children.count(e)}(s)&&(s=null),i.createElement(y.Provider,{value:o},o.match?s?"function"===typeof s?s(o):s:u?i.createElement(u,o):d?d(o):null:"function"===typeof s?s(o):null)}))},t}(i.Component);function I(e){return"/"===e.charAt(0)?e:"/"+e}function P(e,t){if(!e)return t;var n=I(e);return 0!==t.pathname.indexOf(n)?t:(0,c.A)({},t,{pathname:t.pathname.substr(n.length)})}function R(e){return"string"===typeof e?e:(0,s.AO)(e)}function D(e){return function(){(0,l.A)(!1)}}function j(){}i.Component;var M=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.A)(t,e),t.prototype.render=function(){var e=this;return i.createElement(y.Consumer,null,(function(t){t||(0,l.A)(!1);var n,r,o=e.props.location||t.location;return i.Children.forEach(e.props.children,(function(e){if(null==r&&i.isValidElement(e)){n=e;var a=e.props.path||e.props.from;r=a?T(o.pathname,(0,c.A)({},e.props,{path:a})):t.match}})),r?i.cloneElement(n,{location:o,computedMatch:r}):null}))},t}(i.Component);var L=i.useContext;function z(){return L(v)}function F(){return L(y).location}function B(){var e=L(y).match;return e?e.params:{}}function U(e){var t=F(),n=L(y).match;return e?T(t.pathname,e):n}},11078:(e,t,n)=>{var r=n(28293),i=n(62509);e.exports=function(e,t){return e&&e.length?i(e,r(t,2)):[]}},11275:(e,t,n)=>{var r=n(89875),i=n(21519),o=n(68055);e.exports=function(e,t,n){return t===t?o(e,t,n):r(e,i,n)}},11319:e=>{e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},11320:(e,t,n)=>{var r=n(7653),i=n(935),o=n(37815);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},11345:(e,t)=>{"use strict";function n(e,t){return e-t*Math.floor(e/t)}function r(e){return e%4===0&&(e%100!==0||e%400===0)}function i(e){return r(e)?366:365}Object.defineProperty(t,"__esModule",{value:!0}),t.floorMod=n,t.isLeapYear=r,t.daysInYear=i,t.daysInMonth=function(e,t){var i=n(t,12),o=e+(t-i)/12;return 1===i?r(o)?29:28:[31,-1,31,30,31,30,31,31,30,31,30,31][i]},t.tsToObject=function(e,t){var n=new Date(e+60*t*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth(),date:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}},t.objToTS=function(e){var t=Date.UTC(e.year,e.month,e.date,e.hour,e.minute,e.second,e.millisecond);if(e.year<100&&e.year>=0){var n=new Date(t);return n.setUTCFullYear(e.year,e.month,e.date),n.valueOf()}return t},t.normalizeDurationUnit=function(e){var t=["d","D","m","M","w","W","E","Q"].includes(e)?e:e.toLowerCase();if(t in o)return o[t];throw new Error("Invalid unit ".concat(e))},t.normalizeComponent=function(e){var t=["d","D","m","M","w","W","e","E","Q"].includes(e)?e:e.toLowerCase();if(t in a)return a[t];throw new Error("Invalid unit ".concat(e))},t.normalizeDateComponents=function(e,t){for(var n={},r=0,i=Object.entries(e);r<i.length;r++){var o=i[r],a=o[0],l=o[1];void 0!==l&&null!==l&&(n[t(a)]=s(l))}return n},t.offsetFromString=function(e){var t=(e||"").match(l);if(null===t)return null;var n=t[t.length-1]||"",r=String(n).match(c)||["-",0,0],i=r[0],o=r[1],a=r[2],s=Number(60*Number(o))+(isFinite(Number(a))?Number(a):0);return"+"===i?s:-s},t.computeOrdinal=h,t.uncomputeOrdinal=m,t.isoWeekdayToLocal=g,t.gregorianToWeek=function(e,t,n){var r=e.year,i=e.month,o=e.date,a=u(r,i,o),s=v(e,t,n),l=s.weekYear,c=s.weekNumber,d=s.weekday,f=v(e,4,1),p=f.weekYear,h=f.weekNumber,m=f.weekday;return{day:a,weekYear:l,weekNumber:c,weekday:d-1,isoWeekYear:p,isoWeekNumber:h,isoWeekday:m}},t.weeksInWeekYear=b,t.weekToGregorian=function(e,t,n){var r,o=e.weekYear,a=e.weekNumber,s=e.weekday,l=g(d(o,0,t),n),c=i(o),u=7*a+s-l-7+t;u<1?u+=i(r=o-1):u>c?(r=o+1,u-=i(o)):r=o;var f=m({year:r,ordinal:u}),p=f.month,h=f.date;return{year:r,month:p,date:h}},t.monthDiff=function e(t,n){if(t.date()<n.date())return-e(n,t);var r,i=12*(n.year()-t.year())+(n.month()-t.month()),o=t.add(i,"months");if(n.valueOf()-o.valueOf()<0){var a=t.add(i-1,"months");r=(n.valueOf()-o.valueOf())/(o.valueOf()-a.valueOf())}else{a=t.add(i+1,"months");r=(n.valueOf()-o.valueOf())/(a.valueOf()-o.valueOf())}return-(i+r)||0};var o={y:"years",year:"years",years:"years",Q:"quarters",quarter:"quarters",quarters:"quarters",M:"months",month:"months",months:"months",w:"weeks",week:"weeks",weeks:"weeks",d:"days",day:"days",days:"days",h:"hours",hour:"hours",hours:"hours",m:"minutes",minute:"minutes",minutes:"minutes",s:"seconds",second:"seconds",seconds:"seconds",ms:"milliseconds",millisecond:"milliseconds",milliseconds:"milliseconds"};var a={y:"year",year:"year",years:"year",M:"month",month:"month",months:"month",D:"date",date:"date",dates:"date",h:"hour",hour:"hour",hours:"hour",m:"minute",minute:"minute",minutes:"minute",Q:"quarter",quarter:"quarter",quarters:"quarter",s:"second",second:"second",seconds:"second",ms:"millisecond",millisecond:"millisecond",milliseconds:"millisecond",d:"day",day:"day",days:"day",weeknumber:"weekNumber",w:"weekNumber",week:"weekNumber",weeks:"weekNumber",isoweeknumber:"isoWeekNumber",W:"isoWeekNumber",isoweek:"isoWeekNumber",isoweeks:"isoWeekNumber",E:"isoWeekday",isoweekday:"isoWeekday",isoweekdays:"isoWeekday",weekday:"weekday",weekdays:"weekday",e:"weekday",dayOfYear:"dayOfYear",dayOfYears:"dayOfYear",DDD:"dayOfYear",weekyear:"weekYear",isoweekyear:"isoWeekYear"};function s(e){var t=Number(e);if("boolean"===typeof e||""===e||Number.isNaN(t))throw new Error("Invalid unit value ".concat(e));return t}var l=/Z|[+-]\d\d(?::?\d\d)?/gi,c=/([+-]|\d\d)/gi;function u(e,t,n){var r=new Date(Date.UTC(e,t,n));return e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900),r.getUTCDay()}function d(e,t,n){var r=u(e,t,n);return 0===r?7:r}var f=[0,31,59,90,120,151,181,212,243,273,304,334],p=[0,31,60,91,121,152,182,213,244,274,305,335];function h(e){var t=e.year,n=e.month;return e.date+(r(t)?p:f)[n]}function m(e){var t=e.year,n=e.ordinal,i=r(t)?p:f,o=i.findIndex((function(e){return e<n}));return{month:o,date:n-i[o]}}function g(e,t){return(e-t+7)%7+1}function v(e,t,n){var r,i=e.year,o=e.month,a=e.date,s=g(d(i,o,a),n),l=h({year:i,month:o,date:a}),c=Math.floor((l-s+14-t)/7);return c<1?c=b(r=i-1,t,n):c>b(i,t,n)?(r=i+1,c=1):r=i,{weekYear:r,weekNumber:c,weekday:s}}function y(e,t,n){return-g(d(e,0,t),n)+t-1}function b(e,t,n){void 0===t&&(t=4),void 0===n&&(n=1);var r=y(e,t,n),o=y(e+1,t,n);return(i(e)-r+o)/7}},11507:(e,t,n)=>{"use strict";n.d(t,{G:()=>o});var r=n(59284);const i={mobile:!1,platform:n(67459).O.BROWSER,useHistory:()=>({action:"",replace(){},push(){},goBack(){}}),useLocation:()=>({pathname:"",search:"",hash:""})},o=r.createContext(i)},11669:(e,t,n)=>{"use strict";n.d(t,{o:()=>o});var r=n(27145),i=n(69220);const o=new class{constructor(e){this.subscriptions=[],this.componentPrefix=e}subscribe(e){this.subscriptions.push(e)}unsubscribe(e){const t=this.subscriptions.indexOf(e);t>-1&&this.subscriptions.splice(t,1)}publish(e){var{componentId:t}=e,n=(0,r.Tt)(e,["componentId"]);this.subscriptions.forEach((e=>e(Object.assign(Object.assign({},n),{componentId:this.componentPrefix?`${this.componentPrefix}${t}`:t}))))}withEventPublisher(e,t){return n=>{this.publish(Object.assign(Object.assign({},n),{componentId:e,qa:t}))}}}(i.CU)},11822:(e,t,n)=>{"use strict";n.d(t,{jU:()=>C,x5:()=>f,ei:()=>p,om:()=>h,pE:()=>l,Pn:()=>c,PB:()=>u,PX:()=>d,Wg:()=>a,_d:()=>s,nh:()=>m,We:()=>w,fW:()=>x,KH:()=>E,Cb:()=>S,UF:()=>_,F:()=>g,dZ:()=>I,id:()=>A});var r=n(370);let i=function(e){return e.Bool="Bool",e.Int8="Int8",e.Int16="Int16",e.Int32="Int32",e.Int64="Int64",e.Uint8="Uint8",e.Uint16="Uint16",e.Uint32="Uint32",e.Uint64="Uint64",e.Float="Float",e.Double="Double",e.Decimal="Decimal",e.String="String",e.Utf8="Utf8",e.Json="Json",e.JsonDocument="JsonDocument",e.Yson="Yson",e.Uuid="Uuid",e.Date="Date",e.Datetime="Datetime",e.Timestamp="Timestamp",e.Interval="Interval",e.TzDate="TzDate",e.TzDateTime="TzDateTime",e.TzTimestamp="TzTimestamp",e.Date32="Date32",e.Datetime64="Datetime64",e.Timestamp64="Timestamp64",e.Interval64="Interval64",e.TzDate32="TzDate32",e.TzDatetime64="TzDatetime64",e.TzTimestamp64="TzTimestamp64",e}({});var o=n(81288);const a={serializable:"serializable-read-write",stalero:"stale-read-only",onlinero:"online-read-only",snapshot:"snapshot-read-only",implicit:"implicit"},s={[a.serializable]:"Serializable",[a.stalero]:"Stale Read-Only",[a.onlinero]:"Online Read-Only",[a.snapshot]:"Snapshot Read-Only",[a.implicit]:"Implicit"},l={none:"none",basic:"basic",full:"full",profile:"profile"},c={[l.none]:"None",[l.full]:"Full",[l.basic]:"Basic",[l.profile]:"Profile"},u={off:"off",toplevel:"toplevel",basic:"basic",detailed:"detailed",diagnostic:"diagnostic",trace:"trace"},d={[u.off]:"Off",[u.toplevel]:"TopLevel",[u.basic]:"Basic",[u.detailed]:"Detailed",[u.diagnostic]:"Diagnostic",[u.trace]:"Trace"},f={execute:"execute",explain:"explain"},p={scan:"scan",script:"script",data:"data",query:"query",pg:"pg"},h={scan:"Scan",script:"YQL Script",data:"Data",query:"YQL - QueryService",pg:"PostgreSQL"},m=e=>{switch(e.replace(/\?$/,"")){case i.Bool:return"boolean";case i.Int8:case i.Int16:case i.Int32:case i.Int64:case i.Uint8:case i.Uint16:case i.Uint32:case i.Uint64:case i.Float:case i.Double:case i.Decimal:return"number";case i.String:case i.Utf8:case i.Json:case i.JsonDocument:case i.Yson:case i.Uuid:return"string";case i.Date:case i.Datetime:case i.Timestamp:case i.Interval:case i.TzDate:case i.TzDateTime:case i.TzTimestamp:case i.Date32:case i.Datetime64:case i.Timestamp64:case i.Interval64:case i.TzDate32:case i.TzDatetime64:case i.TzTimestamp64:return"date";default:return}},g=(e,t)=>{const n=t.map((e=>e.name));return e.map((e=>{const t={};return e.forEach(((e,r)=>{const i=n[r];null!==e&&"object"===typeof e||"boolean"===typeof e||Array.isArray(e)?t[i]=JSON.stringify(e):t[i]=e})),t}))},v=e=>{const{result:t,...n}=e;return{resultSets:null===t||void 0===t?void 0:t.map((e=>{const{rows:t,columns:n,truncated:r}=e;let i;return n&&(i=[]),t&&n&&(i=g(t,n)),{columns:n,result:i,truncated:r}})),...n}},y=e=>Boolean(e&&!Array.isArray(e)&&"result"in e&&Array.isArray(e.result)&&"object"===typeof e.result[0]&&"rows"in e.result[0]&&"columns"in e.result[0]),b=e=>Boolean(!e||"object"!==typeof e||Array.isArray(e)||"result"in e&&!Array.isArray(e.result));function w(e){return Boolean(e&&"object"===typeof e&&"error"in e&&"issues"in e)}function x(e){return b(e)?{}:y(e)?v(e):e}const _=e=>(e=>Boolean(e&&"queries"in e))(e)?e.queries&&e.queries.length?{Plan:e.queries[0].Plan,tables:e.queries[0].tables,meta:e.meta,SimplifiedPlan:e.queries[0].SimplifiedPlan}:{meta:e.meta}:e,E=e=>"string"===typeof e||w(e)?e:(0,o.TX)(e)?e.message:(0,o.qP)(e)?"data"in e&&w(e.data)?e.data:e.statusText:void 0,S=e=>{var t;const n=E(e);return"string"===typeof n?n:null===n||void 0===n||null===(t=n.error)||void 0===t?void 0:t.message},C={queryMode:p.query,transactionMode:a.implicit,timeout:60,limitRows:1e4,statisticsMode:l.none,tracingLevel:u.off},k=r.z.nativeEnum(p),O=r.z.nativeEnum(a),N=r.z.nativeEnum(l),T=r.z.nativeEnum(u),A=r.z.object({timeout:r.z.preprocess((e=>""===e?void 0:e),r.z.coerce.number().positive().or(r.z.undefined())),limitRows:r.z.preprocess((e=>""===e?void 0:e),r.z.coerce.number().gt(0).lte(1e5).or(r.z.undefined())),queryMode:k,transactionMode:O,statisticsMode:N,tracingLevel:T}),I=r.z.object({timeout:r.z.preprocess((e=>""===e?void 0:e),r.z.coerce.number().positive().optional().catch(C.timeout)),limitRows:r.z.preprocess((e=>""===e?void 0:e),r.z.coerce.number().gt(0).lte(1e5).optional().catch(C.limitRows)),queryMode:k.catch(C.queryMode),transactionMode:O.catch(C.transactionMode),statisticsMode:N.catch(C.statisticsMode),tracingLevel:T.catch(C.tracingLevel)}).catch(C)},12249:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},12880:(e,t,n)=>{var r=n(63786),i=n(9434),o=n(20878);e.exports=function(e){return i(e)?o(e):r(e)}},12888:(e,t,n)=>{"use strict";n.d(t,{X:()=>o});var r=n(78668),i=n(75022);function o(){return(0,i.N)(r._5)}},12927:(e,t,n)=>{var r=n(59368),i=n(22807),o=n(54736),a=n(82121),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,o(e)),e=i(e);return t}:a;e.exports=s},13064:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(11345),t)},13260:(e,t,n)=>{e.exports=n(77390)()},13489:(e,t,n)=>{var r=n(4786);e.exports=h,e.exports.parse=o,e.exports.compile=function(e,t){return l(o(e,t),t)},e.exports.tokensToFunction=l,e.exports.tokensToRegExp=p;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var n,r=[],o=0,s=0,l="",c=t&&t.delimiter||"/";null!=(n=i.exec(e));){var d=n[0],f=n[1],p=n.index;if(l+=e.slice(s,p),s=p+d.length,f)l+=f[1];else{var h=e[s],m=n[2],g=n[3],v=n[4],y=n[5],b=n[6],w=n[7];l&&(r.push(l),l="");var x=null!=m&&null!=h&&h!==m,_="+"===b||"*"===b,E="?"===b||"*"===b,S=m||c,C=v||y,k=m||("string"===typeof r[r.length-1]?r[r.length-1]:"");r.push({name:g||o++,prefix:m||"",delimiter:S,optional:E,repeat:_,partial:x,asterisk:!!w,pattern:C?u(C):w?".*":a(S,k)})}}return s<e.length&&(l+=e.substr(s)),l&&r.push(l),r}function a(e,t){return!t||t.indexOf(e)>-1?"[^"+c(e)+"]+?":c(t)+"|(?:(?!"+c(t)+")[^"+c(e)+"])+?"}function s(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function l(e,t){for(var n=new Array(e.length),i=0;i<e.length;i++)"object"===typeof e[i]&&(n[i]=new RegExp("^(?:"+e[i].pattern+")$",f(t)));return function(t,i){for(var o="",a=t||{},l=(i||{}).pretty?s:encodeURIComponent,c=0;c<e.length;c++){var u=e[c];if("string"!==typeof u){var d,f=a[u.name];if(null==f){if(u.optional){u.partial&&(o+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(r(f)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(0===f.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var p=0;p<f.length;p++){if(d=l(f[p]),!n[c].test(d))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(d)+"`");o+=(0===p?u.prefix:u.delimiter)+d}}else{if(d=u.asterisk?encodeURI(f).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):l(f),!n[c].test(d))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+d+'"');o+=u.prefix+d}}else o+=u}return o}}function c(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function u(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function d(e,t){return e.keys=t,e}function f(e){return e&&e.sensitive?"":"i"}function p(e,t,n){r(t)||(n=t||n,t=[]);for(var i=(n=n||{}).strict,o=!1!==n.end,a="",s=0;s<e.length;s++){var l=e[s];if("string"===typeof l)a+=c(l);else{var u=c(l.prefix),p="(?:"+l.pattern+")";t.push(l),l.repeat&&(p+="(?:"+u+p+")*"),a+=p=l.optional?l.partial?u+"("+p+")?":"(?:"+u+"("+p+"))?":u+"("+p+")"}}var h=c(n.delimiter||"/"),m=a.slice(-h.length)===h;return i||(a=(m?a.slice(0,-h.length):a)+"(?:"+h+"(?=$))?"),a+=o?"$":i&&m?"":"(?="+h+"|$)",d(new RegExp("^"+a,f(n)),t)}function h(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return d(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(h(e[i],t,n).source);return d(new RegExp("(?:"+r.join("|")+")",f(n)),t)}(e,t,n):function(e,t,n){return p(o(e,n),t,n)}(e,t,n)}},14750:(e,t,n)=>{"use strict";t.p0=t.Pn=t.eP=t.bQ=t.cS=t.KQ=void 0,n(77966).settings;var r=n(60166);Object.defineProperty(t,"KQ",{enumerable:!0,get:function(){return r.dateTime}}),Object.defineProperty(t,"cS",{enumerable:!0,get:function(){return r.expandFormat}});var i=n(49837);var o=n(43160);Object.defineProperty(t,"bQ",{enumerable:!0,get:function(){return o.dateTimeParse}}),Object.defineProperty(t,"eP",{enumerable:!0,get:function(){return o.isLikeRelative}});var a=n(84080);Object.defineProperty(t,"Pn",{enumerable:!0,get:function(){return a.getTimeZonesList}});var s=n(72328);var l=n(62391);Object.defineProperty(t,"p0",{enumerable:!0,get:function(){return l.duration}})},14794:(e,t,n)=>{"use strict";n.d(t,{y:()=>u});var r=n(59284);const i="padding-right",o="padding-bottom",a="overflow",s=[a,i,o];let l=0,c={};function u({enabled:e}){r.useLayoutEffect((()=>{if(e)return l++,1===l&&function(){const e=window.innerWidth-document.documentElement.clientWidth,t=window.innerHeight-document.documentElement.clientHeight,n=function(){const e=window.getComputedStyle(document.body);return{top:Number.parseFloat(e.paddingTop),right:Number.parseFloat(e.paddingRight),bottom:Number.parseFloat(e.paddingBottom),left:Number.parseFloat(e.paddingLeft)}}();c=function(){const e={};for(const t of s)e[t]=document.body.style.getPropertyValue(t);return e}(),document.body.style.setProperty(a,"hidden"),e&&document.body.style.setProperty(i,`${n.right+e}px`);t&&document.body.style.setProperty(o,`${n.bottom+t}px`)}(),()=>{l--,0===l&&function(){for(const e of s){const t=c[e];t?document.body.style.setProperty(e,t):document.body.style.removeProperty(e)}}()}}),[e])}},14837:(e,t,n)=>{var r=n(80472),i=n(61872);e.exports=function(e,t,n){(void 0!==n&&!i(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},15227:(e,t,n)=>{const r=n(22750),i=n(38198),o=n(53577),a=n(71928),s=n(69310),l=r.getBCHDigit(7973);function c(e,t){return a.getCharCountIndicator(e,t)+4}function u(e,t){let n=0;return e.forEach((function(e){const r=c(e.mode,t);n+=r+e.getBitsLength()})),n}t.from=function(e,t){return s.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,n){if(!s.isValid(e))throw new Error("Invalid QR Code version");"undefined"===typeof n&&(n=a.BYTE);const o=8*(r.getSymbolTotalCodewords(e)-i.getTotalCodewordsCount(e,t));if(n===a.MIXED)return o;const l=o-c(n,e);switch(n){case a.NUMERIC:return Math.floor(l/10*3);case a.ALPHANUMERIC:return Math.floor(l/11*2);case a.KANJI:return Math.floor(l/13);case a.BYTE:default:return Math.floor(l/8)}},t.getBestVersionForData=function(e,n){let r;const i=o.from(n,o.M);if(Array.isArray(e)){if(e.length>1)return function(e,n){for(let r=1;r<=40;r++)if(u(e,r)<=t.getCapacity(r,n,a.MIXED))return r}(e,i);if(0===e.length)return 1;r=e[0]}else r=e;return function(e,n,r){for(let i=1;i<=40;i++)if(n<=t.getCapacity(i,r,e))return i}(r.mode,r.getLength(),i)},t.getEncodedBits=function(e){if(!s.isValid(e)||e<7)throw new Error("Invalid QR Code version");let t=e<<12;for(;r.getBCHDigit(t)-l>=0;)t^=7973<<r.getBCHDigit(t)-l;return e<<12|t}},15464:(e,t,n)=>{var r=n(73712),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},15619:(e,t,n)=>{"use strict";n.d(t,{f:()=>l,z:()=>u});var r=n(76086),i=n(56839),o=n(41650),a=n(82621);const s={b:{value:1,label:(0,a.A)("b")},kb:{value:r.eh,label:(0,a.A)("kb")},mb:{value:r.pg,label:(0,a.A)("mb")},gb:{value:r.J7,label:(0,a.A)("gb")},tb:{value:r.Db,label:(0,a.A)("tb")}},l=e=>{let t="b";return e>=s.kb.value&&(t="kb"),e>=s.mb.value&&(t="mb"),e>=s.gb.value&&(t="gb"),e>=s.tb.value&&(t="tb"),t},c=(e,t,n=o.en)=>e+n+s[t].label,u=({value:e,size:t,withSpeedLabel:n=!1,withSizeLabel:r=!0,delimiter:u,...d})=>{if(!(0,o.kf)(e))return"";const f=Number(e),p=null!==t&&void 0!==t?t:l(f),h=(({value:e,size:t="mb",precision:n=0})=>{const r=(0,i.CR)(Number(e)/s[t].value,n);return(0,i.ZV)(r)})({value:f,size:p,...d});return n?((e,t)=>c(e,t)+(0,a.A)("perSecond"))(h,p):r?c(h,p,u):h}},15742:(e,t)=>{function n(e){if("number"===typeof e&&(e=e.toString()),"string"!==typeof e)throw new Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map((function(e){return[e,e]})))),6===t.length&&t.push("F","F");const n=parseInt(t.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});const t="undefined"===typeof e.margin||null===e.margin||e.margin<0?4:e.margin,r=e.width&&e.width>=21?e.width:void 0,i=e.scale||4;return{width:r,scale:r?4:i,margin:t,color:{dark:n(e.color.dark||"#000000ff"),light:n(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,n){const r=t.getScale(e,n);return Math.floor((e+2*n.margin)*r)},t.qrToImageData=function(e,n,r){const i=n.modules.size,o=n.modules.data,a=t.getScale(i,r),s=Math.floor((i+2*r.margin)*a),l=r.margin*a,c=[r.color.light,r.color.dark];for(let t=0;t<s;t++)for(let n=0;n<s;n++){let u=4*(t*s+n),d=r.color.light;if(t>=l&&n>=l&&t<s-l&&n<s-l){d=c[o[Math.floor((t-l)/a)*i+Math.floor((n-l)/a)]?1:0]}e[u++]=d.r,e[u++]=d.g,e[u++]=d.b,e[u]=d.a}}},16133:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},16244:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromTo=function(e,t,i){void 0===t&&(t=r);void 0===i&&(i=!1);for(var o,a=0,s="",l=0;l<n.length;l+=1){var c=n[l];c.d&&(a=e.as(c.d));var u=Math.round(Math.abs(a));if(o=a>0,u<=c.r){u<=1&&l>0&&(c=n[l-1]);var d=t[c.l];s="string"===typeof d?d.replace("%d","".concat(u)):d(u,i,c.l,o);break}}if(i)return s;var f=o?t.future:t.past;if("function"===typeof f)return f(s);return f.replace("%s",s)};var n=[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",r:1/0,d:"year"}],r={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}},16258:(e,t,n)=>{"use strict";n.d(t,{b:()=>r});const r=(0,n(92209).b)("aside-header")},16284:(e,t)=>{const n="[0-9]+";let r="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";r=r.replace(/u/g,"\\u");const i="(?:(?![A-Z0-9 $%*+\\-./:]|"+r+")(?:.|[\r\n]))+";t.KANJI=new RegExp(r,"g"),t.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=new RegExp(i,"g"),t.NUMERIC=new RegExp(n,"g"),t.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const o=new RegExp("^"+r+"$"),a=new RegExp("^"+n+"$"),s=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return o.test(e)},t.testNumeric=function(e){return a.test(e)},t.testAlphanumeric=function(e){return s.test(e)}},16320:(e,t,n)=>{var r=n(537),i=n(48955),o=n(85406),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},16332:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>A,Kq:()=>O,hS:()=>_,kz:()=>S,vt:()=>E});var r=n(59284),i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)},o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},a=Symbol("NiceModalId"),s={},l=r.createContext(s),c=r.createContext(null),u={},d={},f=0,p=function(){throw new Error("No dispatch method detected, did you embed your app with NiceModal.Provider?")},h=function(){return"_nice_modal_"+f++},m=function(e,t){var n,r,o;switch(void 0===e&&(e=s),t.type){case"nice-modal/show":var a=t.payload,l=a.modalId,c=a.args;return i(i({},e),((n={})[l]=i(i({},e[l]),{id:l,args:c,visible:!!d[l],delayVisible:!d[l]}),n));case"nice-modal/hide":return e[l=t.payload.modalId]?i(i({},e),((r={})[l]=i(i({},e[l]),{visible:!1}),r)):e;case"nice-modal/remove":l=t.payload.modalId;var u=i({},e);return delete u[l],u;case"nice-modal/set-flags":var f=t.payload,p=(l=f.modalId,f.flags);return i(i({},e),((o={})[l]=i(i({},e[l]),p),o));default:return e}};var g={},v={},y=function(e){return"string"===typeof e?e:(e[a]||(e[a]=h()),e[a])};function b(e,t){var n=y(e);if("string"===typeof e||u[n]||S(n,e),p(function(e,t){return{type:"nice-modal/show",payload:{modalId:e,args:t}}}(n,t)),!g[n]){var r,i,o=new Promise((function(e,t){r=e,i=t}));g[n]={resolve:r,reject:i,promise:o}}return g[n].promise}function w(e){var t=y(e);if(p(function(e){return{type:"nice-modal/hide",payload:{modalId:e}}}(t)),delete g[t],!v[t]){var n,r,i=new Promise((function(e,t){n=e,r=t}));v[t]={resolve:n,reject:r,promise:i}}return v[t].promise}var x=function(e){var t=y(e);p(function(e){return{type:"nice-modal/remove",payload:{modalId:e}}}(t)),delete g[t],delete v[t]};function _(e,t){var n=(0,r.useContext)(l),i=(0,r.useContext)(c),o=null,a=e&&"string"!==typeof e;if(!(o=e?y(e):i))throw new Error("No modal id found in NiceModal.useModal.");var s=o;(0,r.useEffect)((function(){a&&!u[s]&&S(s,e,t)}),[a,s,e,t]);var d=n[s],f=(0,r.useCallback)((function(e){return b(s,e)}),[s]),p=(0,r.useCallback)((function(){return w(s)}),[s]),h=(0,r.useCallback)((function(){return x(s)}),[s]),m=(0,r.useCallback)((function(e){var t;null===(t=g[s])||void 0===t||t.resolve(e),delete g[s]}),[s]),_=(0,r.useCallback)((function(e){var t;null===(t=g[s])||void 0===t||t.reject(e),delete g[s]}),[s]),E=(0,r.useCallback)((function(e){var t;null===(t=v[s])||void 0===t||t.resolve(e),delete v[s]}),[s]);return(0,r.useMemo)((function(){return{id:s,args:null===d||void 0===d?void 0:d.args,visible:!!(null===d||void 0===d?void 0:d.visible),keepMounted:!!(null===d||void 0===d?void 0:d.keepMounted),show:f,hide:p,remove:h,resolve:m,reject:_,resolveHide:E}}),[s,null===d||void 0===d?void 0:d.args,null===d||void 0===d?void 0:d.visible,null===d||void 0===d?void 0:d.keepMounted,f,p,h,m,_,E])}var E=function(e){return function(t){var n,a=t.defaultVisible,s=t.keepMounted,u=t.id,f=o(t,["defaultVisible","keepMounted","id"]),h=_(u),m=h.args,g=h.show,v=(0,r.useContext)(l),y=!!v[u];(0,r.useEffect)((function(){return a&&g(),d[u]=!0,function(){delete d[u]}}),[u,g,a]),(0,r.useEffect)((function(){s&&p(function(e,t){return{type:"nice-modal/set-flags",payload:{modalId:e,flags:t}}}(u,{keepMounted:!0}))}),[u,s]);var b=null===(n=v[u])||void 0===n?void 0:n.delayVisible;return(0,r.useEffect)((function(){b&&g(m)}),[b,m,g]),y?r.createElement(c.Provider,{value:u},r.createElement(e,i({},f,m))):null}},S=function(e,t,n){u[e]?u[e].props=n:u[e]={comp:t,props:n}},C=function(){var e=(0,r.useContext)(l),t=Object.keys(e).filter((function(t){return!!e[t]}));t.forEach((function(e){u[e]||d[e]||console.warn("No modal found for id: "+e+". Please check the id or if it is registered or declared via JSX.")}));var n=t.filter((function(e){return u[e]})).map((function(e){return i({id:e},u[e])}));return r.createElement(r.Fragment,null,n.map((function(e){return r.createElement(e.comp,i({key:e.id,id:e.id},e.props))})))},k=function(e){var t=e.children,n=(0,r.useReducer)(m,s),i=n[0];return p=n[1],r.createElement(l.Provider,{value:i},t,r.createElement(C,null))},O=function(e){var t=e.children,n=e.dispatch,i=e.modals;return n&&i?(p=n,r.createElement(l.Provider,{value:i},t,r.createElement(C,null))):r.createElement(k,null,t)},N=function(e){return{visible:e.visible,onOk:function(){return e.hide()},onCancel:function(){return e.hide()},afterClose:function(){e.resolveHide(),e.keepMounted||e.remove()}}},T=function(e){return{visible:e.visible,onClose:function(){return e.hide()},afterVisibleChange:function(t){t||e.resolveHide(),!t&&!e.keepMounted&&e.remove()}}};const A={Provider:O,ModalDef:function(e){var t=e.id,n=e.component;return(0,r.useEffect)((function(){return S(t,n),function(){!function(e){delete u[e]}(t)}}),[t,n]),null},ModalHolder:function(e){var t,n=e.modal,a=e.handler,s=void 0===a?{}:a,l=o(e,["modal","handler"]),c=(0,r.useMemo)((function(){return h()}),[]),d="string"===typeof n?null===(t=u[n])||void 0===t?void 0:t.comp:n;if(!s)throw new Error("No handler found in NiceModal.ModalHolder.");if(!d)throw new Error("No modal found for id: "+n+" in NiceModal.ModalHolder.");return s.show=(0,r.useCallback)((function(e){return b(c,e)}),[c]),s.hide=(0,r.useCallback)((function(){return w(c)}),[c]),r.createElement(d,i({id:c},l))},NiceModalContext:l,create:E,register:S,getModal:function(e){var t;return null===(t=u[e])||void 0===t?void 0:t.comp},show:b,hide:w,remove:x,useModal:_,reducer:m,antdModal:N,antdDrawer:T,muiDialog:function(e){return{open:e.visible,onClose:function(){return e.hide()},onExited:function(){e.resolveHide(),!e.keepMounted&&e.remove()}}},bootstrapDialog:function(e){return{show:e.visible,onHide:function(){return e.hide()},onExited:function(){e.resolveHide(),!e.keepMounted&&e.remove()}}}}},16445:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dateTimeParse=void 0,t.isLikeRelative=o,t.isValid=function(e){try{if((0,r.isDateTime)(e))return e.isValid();var n=(0,t.dateTimeParse)(e,{allowRelative:!0});return!!n&&n.isValid()}catch(i){return!1}};var r=n(60166),i=n(77966);function o(e){return"string"===typeof e&&i.settings.getRelativeParser().isLikeRelative(e)}t.dateTimeParse=function(e,t){if(void 0!==e){var n=function(e,t){var n;if(o(e)){if(null!==(n=null===t||void 0===t?void 0:t.allowRelative)&&void 0!==n&&!n)return;return i.settings.getRelativeParser().parse(e,t)}var a=t||{},s=a.format,l=a.lang;try{var c=(0,r.dateTime)({input:e,format:s,lang:l,timeZone:null===t||void 0===t?void 0:t.timeZone});return c.isValid()?c:void 0}catch(u){return}}(e,t);return n}}},16572:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getDateTimeFormat=function(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=o.get(n);r||(r=new Intl.DateTimeFormat(e,t),o.set(n,r));return r},t.getListFormat=function(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=a.get(n);r||(r=new Intl.ListFormat(e,t),a.set(n,r));return r},t.getNumberFormat=function(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=s.get(n);r||(r=new Intl.NumberFormat(e,t),s.set(n,r));return r},t.getLocaleData=function(e){var t=i.default.Ls[e];if(!t)throw new Error("Locale ".concat(e," is not loaded"));return t};var i=r(n(38960)),o=new Map;var a=new Map;var s=new Map},17148:(e,t,n)=>{var r=n(634),i=n(35647)((function(e,t,n){r(e,t,n)}));e.exports=i},17900:(e,t,n)=>{var r=n(38469);e.exports=function(e){return e===e&&!r(e)}},18408:(e,t,n)=>{var r=n(45296);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},18517:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>d,WO:()=>h,sH:()=>p,Mj:()=>m,es:()=>f,z6:()=>v});var r=n(97091),i=n(59001),o=n(76086),a=n(21334),s=n(370),l=n(52531);const c={tenantPage:s.z.nativeEnum(l.Dg).catch(i.c[o.Mt]).parse(i.f.readUserSettingsValue(o.Mt))},u=(0,r.Z0)({name:"tenant",initialState:c,reducers:{setTenantPage:(e,t)=>{e.tenantPage=t.payload},setQueryTab:(e,t)=>{e.queryTab=t.payload},setDiagnosticsTab:(e,t)=>{e.diagnosticsTab=t.payload},setSummaryTab:(e,t)=>{e.summaryTab=t.payload},setMetricsTab:(e,t)=>{e.metricsTab=t.payload}}}),d=u.reducer,{setTenantPage:f,setQueryTab:p,setDiagnosticsTab:h,setSummaryTab:m,setMetricsTab:g}=u.actions,v=a.F.injectEndpoints({endpoints:e=>({getTenantInfo:e.query({queryFn:async({path:e},{signal:t})=>{try{var n,r;return{data:null!==(n=null===(r=(await window.api.viewer.getTenantInfo({path:e},{signal:t})).TenantInfo)||void 0===r?void 0:r[0])&&void 0!==n?n:null}}catch(i){return{error:i}}},providesTags:["All"]}),getClusterConfig:e.query({queryFn:async({database:e},{signal:t})=>{try{const n=await window.api.viewer.getClusterConfig(e,{signal:t});return{data:n.Databases[0].FeatureFlags}}catch(n){return{error:n}}},providesTags:["All"]})}),overrideExisting:"throw"})},18650:(e,t,n)=>{"use strict";n.d(t,{m:()=>S});var r=n(27145),i=n(59284),o=n(32084),a=n(81517),s=n(69220);const l={pc:{NormalizeMap:{arrowup:"up",arrowdown:"down",arrowleft:"left",arrowright:"right",esc:"escape",return:"enter",mod:"ctrl",control:"ctrl",opt:"alt",option:"alt",cmd:"ctrl",command:"ctrl"},Priority:{shift:200,alt:300,ctrl:400},DisplayName:{up:"\u2191",down:"\u2193",left:"\u2190",right:"\u2192",escape:"Esc",plus:"\uff0b",enter:"Enter",ctrl:"Ctrl",alt:"Alt",shift:"Shift",tab:"Tab",backspace:"Backspace"}},mac:{NormalizeMap:{arrowup:"up",arrowdown:"down",arrowleft:"left",arrowright:"right",esc:"escape",enter:"return",mod:"command",ctrl:"control",alt:"option",opt:"option",cmd:"command"},Priority:{command:100,shift:200,option:300,control:400},DisplayName:{up:"\u25b2",down:"\u25bc",left:"\u25c0",right:"\u25b6",escape:"\u238b",plus:"\uff0b",return:"\u23ce",command:"\u2318",option:"\u2325",control:"\u2303",shift:"\u21e7",backspace:"\u232b",tab:"\u21e5"}}};var c=n(98816),u=n.n(c),d=n(11078),f=n.n(d);function p(e,t){return e.trim().split(t).filter(Boolean)}const h=/\s/;function m(e,t){return p(t,h).map((t=>f()(p(t,"+").map(function(e){return function(t){var n;const r=function(e,t){var n;return t=t.toLowerCase(),null!==(n=e.NormalizeMap[t])&&void 0!==n?n:t}(e,t);return{raw:t,id:r,priority:null!==(n=e.Priority[r])&&void 0!==n?n:0,displayName:e.DisplayName[r]}}}(e)).sort(((e,t)=>t.priority-e.priority)),(e=>e.id)).map(g)))}function g(e){var t;return null!==(t=e.displayName)&&void 0!==t?t:u()(e.id)}const v=(0,s.om)("hotkey"),y={BetweenGroups:String.fromCharCode(160),BetweenKeys:String.fromCharCode(8239)},b=i.forwardRef((function(e,t){const{value:n,platform:r,view:o="light",qa:a,style:s,className:c}=e,u=function(e,t){var n;const r=null!==(n=t.platform)&&void 0!==n?n:"undefined"!==typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform)?"mac":"pc",i=l[r];return m(i,e)}(n,{platform:r}),d=[];let f=!1;return u.forEach(((e,t)=>{0!==e.length&&(f?d.push(y.BetweenGroups):f=!0,e.forEach(((e,n)=>{0===n||d.push(y.BetweenKeys,i.createElement("span",{key:`${e}_${t}_${n}_plus`,className:v("plus")},"+"),y.BetweenKeys),d.push(i.createElement("kbd",{key:`${e}_${t}_${n}`},e))})))})),0===d.length?null:i.createElement("kbd",{ref:t,style:s,"data-qa":a,className:v({view:o},c)},d)}));var w=n(39238),x=n(7412);const _=["bottom","top"],E=(0,s.om)("action-tooltip");function S(e){const{placement:t=_,title:n,hotkey:s,children:l,className:c,contentClassName:u,description:d,disabled:f=!1,style:p,qa:h,id:m,disablePortal:g}=e,v=(0,r.Tt)(e,["placement","title","hotkey","children","className","contentClassName","description","disabled","style","qa","id","disablePortal"]),[y,S]=i.useState(null),C=(0,a.d)(y,v),k=i.Children.only(l),O=(0,x.Q)(k),N=(0,o.N)(S,O);return i.createElement(i.Fragment,null,i.cloneElement(k,{ref:N}),y?i.createElement(w.z,{id:m,disablePortal:g,role:"tooltip",className:E(null,c),style:p,open:C&&!f,placement:t,anchorRef:{current:y},disableEscapeKeyDown:!0,disableOutsideClick:!0,disableLayer:!0,qa:h},i.createElement("div",{className:E("content",u)},i.createElement("div",{className:E("heading")},i.createElement("div",{className:E("title")},n),s&&i.createElement(b,{view:"dark",value:s,className:E("hotkey")})),d&&i.createElement("div",{className:E("description")},d))):null)}},18670:(e,t,n)=>{"use strict";n.d(t,{s:()=>o});var r=n(59284),i=n(83046);function o({enabled:e,restoreFocusRef:t,focusTrapped:n}){const o=r.useRef(null),a=r.useRef(null),s=r.useRef(null);return r.useEffect((()=>{if(!e)return;const t=e=>{const t=e.target;!n&&t instanceof HTMLElement&&(0,i.AO)(t)&&(s.current=t)},r=e=>{const t=e.target;t instanceof HTMLElement&&(0,i.AO)(t)?s.current=t:s.current=null};return window.addEventListener("focusin",t),window.addEventListener("mousedown",r),window.addEventListener("touchstart",r),()=>{window.removeEventListener("focusin",t),window.removeEventListener("mousedown",r),window.removeEventListener("touchstart",r)}}),[e,n]),r.useEffect((()=>{var n;o.current=e&&null!==(n=(null===t||void 0===t?void 0:t.current)||a.current)&&void 0!==n?n:null})),r.useEffect((()=>{if(e)return()=>{let e=o.current;const t=s.current;t&&document.contains(t)&&(0,i.AO)(t)&&(e=t),e&&"function"===typeof e.focus&&document.contains(e)&&(0,i.tp)(e)&&(e!==document.activeElement&&setTimeout((()=>{null===e||void 0===e||e.focus()}),0),a.current=null,s.current=null)}}),[e]),{onFocus:n=>{var r;e&&null===a.current&&(a.current=n.relatedTarget,s.current=a.current,o.current=null!==(r=(null===t||void 0===t?void 0:t.current)||a.current)&&void 0!==r?r:null)}}}},18863:(e,t,n)=>{"use strict";n.d(t,{z:()=>l});var r=n(59284),i=n(77506),o=n(5741),a=n(60712);const s=(0,i.cn)("info-viewer"),l=({title:e,info:t,dots:n=!0,size:i,className:l,multilineLabels:c,renderEmptyState:u})=>t&&t.length||!u?(0,a.jsxs)("div",{className:s({size:i},l),children:[e&&(0,a.jsx)("div",{className:s("title"),children:e}),t&&t.length>0?(0,a.jsx)("div",{className:s("items"),children:t.map(((e,t)=>(0,a.jsxs)("div",{className:s("row"),children:[(0,a.jsxs)("div",{className:s("label"),children:[(0,a.jsx)("div",{className:s("label-text",{multiline:c}),children:e.label}),n&&(0,a.jsx)("div",{className:s("dots")})]}),(0,a.jsx)("div",{className:s("value"),children:e.value})]},t)))}):(0,o.A)("no-data")]}):(0,a.jsx)(r.Fragment,{children:u({title:e,size:i})})},19058:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},19225:(e,t,n)=>{"use strict";n.d(t,{s:()=>S,N:()=>C});var r=n(59284),i=n(83046);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var u=function(e,t){if(e.length>0){var n=e[e.length-1];n!==t&&n._setPausedState(!0)}var r=e.indexOf(t);-1===r||e.splice(r,1),e.push(t)},d=function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1),e.length>0&&!e[e.length-1]._isManuallyPaused()&&e[e.length-1]._setPausedState(!1)},f=function(e){return"Tab"===(null===e||void 0===e?void 0:e.key)||9===(null===e||void 0===e?void 0:e.keyCode)},p=function(e){return f(e)&&!e.shiftKey},h=function(e){return f(e)&&e.shiftKey},m=function(e){return setTimeout(e,0)},g=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"===typeof e?e.apply(void 0,n):e},v=function(e){return e.target.shadowRoot&&"function"===typeof e.composedPath?e.composedPath()[0]:e.target},y=[],b=function(e,t){var n,r=(null===t||void 0===t?void 0:t.document)||document,o=(null===t||void 0===t?void 0:t.trapStack)||y,a=l({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:p,isKeyBackward:h},t),s={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},b=function(e,t,n){return e&&void 0!==e[t]?e[t]:a[n||t]},w=function(e,t){var n="function"===typeof(null===t||void 0===t?void 0:t.composedPath)?t.composedPath():void 0;return s.containerGroups.findIndex((function(t){var r=t.container,i=t.tabbableNodes;return r.contains(e)||(null===n||void 0===n?void 0:n.includes(r))||i.find((function(t){return t===e}))}))},x=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.hasFallback,i=void 0!==n&&n,o=t.params,s=void 0===o?[]:o,l=a[e];if("function"===typeof l&&(l=l.apply(void 0,c(s))),!0===l&&(l=void 0),!l){if(void 0===l||!1===l)return l;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var u=l;if("string"===typeof l){try{u=r.querySelector(l)}catch(d){throw new Error("`".concat(e,'` appears to be an invalid selector; error="').concat(d.message,'"'))}if(!u&&!i)throw new Error("`".concat(e,"` as selector refers to no known node"))}return u},_=function(){var e=x("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void 0===e||e&&!(0,i.tp)(e,a.tabbableOptions))if(w(r.activeElement)>=0)e=r.activeElement;else{var t=s.tabbableGroups[0];e=t&&t.firstTabbableNode||x("fallbackFocus")}else null===e&&(e=x("fallbackFocus"));if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},E=function(){if(s.containerGroups=s.containers.map((function(e){var t=(0,i.Kr)(e,a.tabbableOptions),n=(0,i.nq)(e,a.tabbableOptions),r=t.length>0?t[0]:void 0,o=t.length>0?t[t.length-1]:void 0,s=n.find((function(e){return(0,i.AO)(e)})),l=n.slice().reverse().find((function(e){return(0,i.AO)(e)})),c=!!t.find((function(e){return(0,i.yT)(e)>0}));return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:c,firstTabbableNode:r,lastTabbableNode:o,firstDomTabbableNode:s,lastDomTabbableNode:l,nextTabbableNode:function(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=t.indexOf(e);return o<0?r?n.slice(n.indexOf(e)+1).find((function(e){return(0,i.AO)(e)})):n.slice(0,n.indexOf(e)).reverse().find((function(e){return(0,i.AO)(e)})):t[o+(r?1:-1)]}}})),s.tabbableGroups=s.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),s.tabbableGroups.length<=0&&!x("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(s.containerGroups.find((function(e){return e.posTabIndexesFound}))&&s.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},S=function(e){var t=e.activeElement;if(t)return t.shadowRoot&&null!==t.shadowRoot.activeElement?S(t.shadowRoot):t},C=function(e){!1!==e&&e!==S(document)&&(e&&e.focus?(e.focus({preventScroll:!!a.preventScroll}),s.mostRecentlyFocusedNode=e,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"===typeof e.select}(e)&&e.select()):C(_()))},k=function(e){var t=x("setReturnFocus",{params:[e]});return t||!1!==t&&e},O=function(e){var t=e.target,n=e.event,r=e.isBackward,o=void 0!==r&&r;t=t||v(n),E();var l=null;if(s.tabbableGroups.length>0){var c=w(t,n),u=c>=0?s.containerGroups[c]:void 0;if(c<0)l=o?s.tabbableGroups[s.tabbableGroups.length-1].lastTabbableNode:s.tabbableGroups[0].firstTabbableNode;else if(o){var d=s.tabbableGroups.findIndex((function(e){var n=e.firstTabbableNode;return t===n}));if(d<0&&(u.container===t||(0,i.tp)(t,a.tabbableOptions)&&!(0,i.AO)(t,a.tabbableOptions)&&!u.nextTabbableNode(t,!1))&&(d=c),d>=0){var p=0===d?s.tabbableGroups.length-1:d-1,h=s.tabbableGroups[p];l=(0,i.yT)(t)>=0?h.lastTabbableNode:h.lastDomTabbableNode}else f(n)||(l=u.nextTabbableNode(t,!1))}else{var m=s.tabbableGroups.findIndex((function(e){var n=e.lastTabbableNode;return t===n}));if(m<0&&(u.container===t||(0,i.tp)(t,a.tabbableOptions)&&!(0,i.AO)(t,a.tabbableOptions)&&!u.nextTabbableNode(t))&&(m=c),m>=0){var g=m===s.tabbableGroups.length-1?0:m+1,y=s.tabbableGroups[g];l=(0,i.yT)(t)>=0?y.firstTabbableNode:y.firstDomTabbableNode}else f(n)||(l=u.nextTabbableNode(t))}}else l=x("fallbackFocus");return l},N=function(e){var t=v(e);w(t,e)>=0||(g(a.clickOutsideDeactivates,e)?n.deactivate({returnFocus:a.returnFocusOnDeactivate}):g(a.allowOutsideClick,e)||e.preventDefault())},T=function(e){var t=v(e),n=w(t,e)>=0;if(n||t instanceof Document)n&&(s.mostRecentlyFocusedNode=t);else{var r;e.stopImmediatePropagation();var o=!0;if(s.mostRecentlyFocusedNode)if((0,i.yT)(s.mostRecentlyFocusedNode)>0){var l=w(s.mostRecentlyFocusedNode),c=s.containerGroups[l].tabbableNodes;if(c.length>0){var u=c.findIndex((function(e){return e===s.mostRecentlyFocusedNode}));u>=0&&(a.isKeyForward(s.recentNavEvent)?u+1<c.length&&(r=c[u+1],o=!1):u-1>=0&&(r=c[u-1],o=!1))}}else s.containerGroups.some((function(e){return e.tabbableNodes.some((function(e){return(0,i.yT)(e)>0}))}))||(o=!1);else o=!1;o&&(r=O({target:s.mostRecentlyFocusedNode,isBackward:a.isKeyBackward(s.recentNavEvent)})),C(r||(s.mostRecentlyFocusedNode||_()))}s.recentNavEvent=void 0},A=function(e){(a.isKeyForward(e)||a.isKeyBackward(e))&&function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];s.recentNavEvent=e;var n=O({event:e,isBackward:t});n&&(f(e)&&e.preventDefault(),C(n))}(e,a.isKeyBackward(e))},I=function(e){var t;"Escape"!==(null===(t=e)||void 0===t?void 0:t.key)&&"Esc"!==(null===t||void 0===t?void 0:t.key)&&27!==(null===t||void 0===t?void 0:t.keyCode)||!1===g(a.escapeDeactivates,e)||(e.preventDefault(),n.deactivate())},P=function(e){var t=v(e);w(t,e)>=0||g(a.clickOutsideDeactivates,e)||g(a.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},R=function(){if(s.active)return u(o,n),s.delayInitialFocusTimer=a.delayInitialFocus?m((function(){C(_())})):C(_()),r.addEventListener("focusin",T,!0),r.addEventListener("mousedown",N,{capture:!0,passive:!1}),r.addEventListener("touchstart",N,{capture:!0,passive:!1}),r.addEventListener("click",P,{capture:!0,passive:!1}),r.addEventListener("keydown",A,{capture:!0,passive:!1}),r.addEventListener("keydown",I),n},D=function(){if(s.active)return r.removeEventListener("focusin",T,!0),r.removeEventListener("mousedown",N,!0),r.removeEventListener("touchstart",N,!0),r.removeEventListener("click",P,!0),r.removeEventListener("keydown",A,!0),r.removeEventListener("keydown",I),n},j="undefined"!==typeof window&&"MutationObserver"in window?new MutationObserver((function(e){e.some((function(e){return Array.from(e.removedNodes).some((function(e){return e===s.mostRecentlyFocusedNode}))}))&&C(_())})):void 0,M=function(){j&&(j.disconnect(),s.active&&!s.paused&&s.containers.map((function(e){j.observe(e,{subtree:!0,childList:!0})})))};return n={get active(){return s.active},get paused(){return s.paused},activate:function(e){if(s.active)return this;var t=b(e,"onActivate"),n=b(e,"onPostActivate"),i=b(e,"checkCanFocusTrap");i||E(),s.active=!0,s.paused=!1,s.nodeFocusedBeforeActivation=r.activeElement,null===t||void 0===t||t();var o=function(){i&&E(),R(),M(),null===n||void 0===n||n()};return i?(i(s.containers.concat()).then(o,o),this):(o(),this)},deactivate:function(e){if(!s.active)return this;var t=l({onDeactivate:a.onDeactivate,onPostDeactivate:a.onPostDeactivate,checkCanReturnFocus:a.checkCanReturnFocus},e);clearTimeout(s.delayInitialFocusTimer),s.delayInitialFocusTimer=void 0,D(),s.active=!1,s.paused=!1,M(),d(o,n);var r=b(t,"onDeactivate"),i=b(t,"onPostDeactivate"),c=b(t,"checkCanReturnFocus"),u=b(t,"returnFocus","returnFocusOnDeactivate");null===r||void 0===r||r();var f=function(){m((function(){u&&C(k(s.nodeFocusedBeforeActivation)),null===i||void 0===i||i()}))};return u&&c?(c(k(s.nodeFocusedBeforeActivation)).then(f,f),this):(f(),this)},pause:function(e){return s.active?(s.manuallyPaused=!0,this._setPausedState(!0,e)):this},unpause:function(e){return s.active?(s.manuallyPaused=!1,o[o.length-1]!==this?this:this._setPausedState(!1,e)):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return s.containers=t.map((function(e){return"string"===typeof e?r.querySelector(e):e})),s.active&&E(),M(),this}},Object.defineProperties(n,{_isManuallyPaused:{value:function(){return s.manuallyPaused}},_setPausedState:{value:function(e,t){if(s.paused===e)return this;if(s.paused=e,e){var n=b(t,"onPause"),r=b(t,"onPostPause");null===n||void 0===n||n(),D(),M(),null===r||void 0===r||r()}else{var i=b(t,"onUnpause"),o=b(t,"onPostUnpause");null===i||void 0===i||i(),E(),R(),M(),null===o||void 0===o||o()}return this}}}),n.updateContainerElements(e),n},w=n(32084),x=n(90826),_=n(7412);const E=r.createContext(void 0);function S({children:e,enabled:t=!0,disableAutoFocus:n,autoFocus:i=!0}){const o=r.useRef(null),a=r.useRef(!n&&i);r.useEffect((()=>{a.current=!n&&i}));const s=r.useRef(),l=r.useRef({}),c=r.useCallback((()=>{var e;null===(e=s.current)||void 0===e||e.updateContainerElements([o.current,...Object.values(l.current)])}),[]),u=r.useMemo((()=>({addNode(e,t){var n;l.current[e]===t||(null===(n=o.current)||void 0===n?void 0:n.contains(t))||(l.current[e]=t,c())},removeNode(e){l.current[e]&&(delete l.current[e],c())}})),[c]),d=r.useCallback((e=>{var n;t&&e?(o.current=e,s.current||(s.current=b([],{initialFocus:()=>a.current&&function(e){if(!(document.activeElement instanceof HTMLElement)||!e.contains(document.activeElement))return e.hasAttribute("tabIndex")||e.setAttribute("tabIndex","-1"),e;return document.activeElement}(e),fallbackFocus:()=>e,returnFocusOnDeactivate:!1,escapeDeactivates:!1,clickOutsideDeactivates:!1,allowOutsideClick:!0})),c(),s.current.activate()):(null===(n=s.current)||void 0===n||n.deactivate(),o.current=null)}),[t,c]),f=r.Children.only(e);if(!r.isValidElement(f))throw new Error("Children must contain only one valid element");const p=(0,_.Q)(f),h=(0,w.N)(d,p);return r.createElement(E.Provider,{value:u},r.cloneElement(f,{ref:h}))}function C(){const e=r.useContext(E),t=(0,x.u)();return r.useMemo((()=>{if(e)return n=>{n?e.addNode(t,n):e.removeNode(t)}}),[e,t])}},19305:e=>{var t=Array.isArray;e.exports=t},19417:e=>{e.exports=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}},19418:(e,t,n)=>{var r=n(32112);e.exports=function(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:r(e,t,n)}},19750:(e,t,n)=>{var r=n(16320),i=n(59698);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},19770:e=>{"use strict";e.exports=ReferenceError},19859:(e,t,n)=>{"use strict";var r=n(57467);Object.defineProperty(t,"zx",{enumerable:!0,get:function(){return r.createReduxLocationActions}});var i=n(56029);Object.defineProperty(t,"BL",{enumerable:!0,get:function(){return i.listenForHistoryChange}});var o=n(93650)},20011:(e,t,n)=>{var r=n(16320),i=n(22807),o=n(59698),a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==u}},20368:(e,t,n)=>{e=n.nmd(e);var r=n(4133),i=n(84711),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||i;e.exports=l},20549:function(e){e.exports=function(){"use strict";return function(e,t,n){n.updateLocale=function(e,t){var r=n.Ls[e];if(r)return(t?Object.keys(t):[]).forEach((function(e){r[e]=t[e]})),r}}}()},20680:(e,t,n)=>{"use strict";n.d(t,{uI:()=>s,sf:()=>u,T3:()=>l});let r=function(e){return e.None="None",e.HDD="HDD",e.SSD="SSD",e}({});var i=n(76086),o=n(41650),a=n(8861);const s=(e={})=>{const{CoresUsed:t,MemoryUsed:n,StorageAllocatedSize:i,MemoryLimit:a,StorageAllocatedLimit:s,PoolStats:l,Metrics:u={},DatabaseQuotas:d={},StorageUsage:f,QuotaUsage:p}=e,h=1e6*Number(t)||0,m=Number(n)||0,g=Number(i)||0,v=Number(u.Storage)||0,y=(0,o.kf)(a)?Number(a):void 0,b=(0,o.kf)(s)?Number(s):void 0,w=(0,o.kf)(d.data_size_soft_quota)?Number(d.data_size_soft_quota):void 0,x=(e=>{if(e)return e.map((e=>{if(e.Name){const t=Number(e.Usage)||0,n=Number(e.Threads),r=n*t;return{name:e.Name,usage:100*t,limit:n,used:r}}})).filter((e=>void 0!==e))})(l);let _,E;_=f?f.map((e=>{const{Type:t,Size:n,Limit:r}=e,i=Number(n),o=Number(r);return{name:t,used:i,limit:o,usage:c(i,o)}})):[{name:r.SSD,used:g,limit:b,usage:c(g,b)}],p?E=p.map((e=>{const{Type:t,Size:n,Limit:r}=e,i=Number(n),o=Number(r);return{name:t,used:i,limit:o,usage:c(i,o)}})):w&&(E=[{name:r.SSD,used:v,limit:w,usage:c(v,w)}]);return{memory:m,blobStorage:g,tabletStorage:v,memoryLimit:y,blobStorageLimit:b,tabletStorageLimit:w,cpu:h,poolsStats:x,memoryStats:[{name:"Process",used:m,limit:y,usage:c(m,y)}],blobStorageStats:_,tabletStorageStats:E}},l=(e,t)=>e.map((n=>{const r=t?(e=>{var t;const n=e.Nodes?e.Nodes[0]:{},r=n.Host&&n.Endpoints?null===(t=n.Endpoints.find((e=>"http-mon"===e.Name)))||void 0===t?void 0:t.Address:void 0;return n.Host?`${n.Host}${r||""}`:void 0})(n):void 0,i=e.find((e=>e.Id===n.ResourceId)),a=null===i||void 0===i?void 0:i.Name,l=null===i||void 0===i?void 0:i.NodeIds,c=(e=>{var t,n;const r=null===(t=e.Name)||void 0===t?void 0:t.split("/"),i=null!==r&&void 0!==r&&r.length?r[r.length-1]:"\u2014",o=null===(n=e.ControlPlane)||void 0===n?void 0:n.name;return null!==o&&void 0!==o?o:i})(n),{cpu:u,memory:d,blobStorage:f}=s(n),{nodesCount:p,groupsCount:h}=(e=>{var t;const{StorageGroups:n,NodeIds:r}=e;return{nodesCount:null!==(t=null===r||void 0===r?void 0:r.length)&&void 0!==t?t:0,groupsCount:(0,o.kf)(n)?Number(n):0}})(n);return{...n,backend:r,sharedTenantName:a,sharedNodeIds:l,controlPlaneName:c,cpu:u,memory:d,storage:f,nodesCount:p,groupsCount:h}}));function c(e,t){if(e&&t)return 100*e/t}function u(e){return e?e>i.Ed?a.u.Danger:e>i.Hh?a.u.Warning:a.u.Good:a.u.Unspecified}},20878:e=>{var t="\\ud800-\\udfff",n="["+t+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",o="[^"+t+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+i+")"+"?",c="[\\ufe0e\\ufe0f]?",u=c+l+("(?:\\u200d(?:"+[o,a,s].join("|")+")"+c+l+")*"),d="(?:"+[o+r+"?",r,a,s,n].join("|")+")",f=RegExp(i+"(?="+i+")|"+d+u,"g");e.exports=function(e){return e.match(f)||[]}},20943:(e,t,n)=>{var r=n(30040),i=n(52964),o=n(19305),a=n(20368),s=n(83649),l=n(91159),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),u=!n&&i(e),d=!n&&!u&&a(e),f=!n&&!u&&!d&&l(e),p=n||u||d||f,h=p?r(e.length,String):[],m=h.length;for(var g in e)!t&&!c.call(e,g)||p&&("length"==g||d&&("offset"==g||"parent"==g)||f&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||h.push(g);return h}},21334:(e,t,n)=>{"use strict";n.d(t,{F:()=>_});var r=n(44992),i=n(97434),o=n(53850),a=n(96906),s=n(97091),l=n(59284);function c(e){return e.replace(e[0],e[0].toUpperCase())}function u(e,...t){return Object.assign(e,...t)}var d=WeakMap?new WeakMap:void 0,f=({endpointName:e,queryArgs:t})=>{let n="";const r=d?.get(t);if("string"===typeof r)n=r;else{const e=JSON.stringify(t,((e,t)=>(t="bigint"===typeof t?{$bigint:t.toString()}:t,t=(0,a.Qd)(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t)));(0,a.Qd)(t)&&d?.set(t,e),n=e}return`${e}(${n})`},p=Symbol();function h(e,t,n,r){const i=(0,l.useMemo)((()=>({queryArgs:e,serialized:"object"==typeof e?t({queryArgs:e,endpointDefinition:n,endpointName:r}):e})),[e,t,n,r]),o=(0,l.useRef)(i);return(0,l.useEffect)((()=>{o.current.serialized!==i.serialized&&(o.current=i)}),[i]),o.current.serialized===i.serialized?o.current.queryArgs:e}function m(e){const t=(0,l.useRef)(e);return(0,l.useEffect)((()=>{(0,i.bN)(t.current,e)||(t.current=e)}),[e]),(0,i.bN)(t.current,e)?t.current:e}var g=(()=>!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement))(),v=(()=>"undefined"!==typeof navigator&&"ReactNative"===navigator.product)(),y=(()=>g||v?l.useLayoutEffect:l.useEffect)(),b=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:void 0===e.data,status:r.RE.pending}:e;var w=Symbol();var x=(0,r.l0)((0,r.m7)(),(({batch:e=i.vA,hooks:t={useDispatch:i.wA,useSelector:i.d4,useStore:i.Pj},createSelector:n=o.Mz,unstable__sideEffectsInRender:a=!1,...d}={})=>({name:w,init(o,{serializeQueryArgs:d},g){const v=o,{buildQueryHooks:w,buildMutationHook:x,usePrefetch:_}=function({api:e,moduleOptions:{batch:t,hooks:{useDispatch:n,useSelector:o,useStore:a},unstable__sideEffectsInRender:c,createSelector:u},serializeQueryArgs:d,context:g}){const v=c?e=>e():l.useEffect;return{buildQueryHooks:function(c){const x=(t,{refetchOnReconnect:i,refetchOnFocus:o,refetchOnMountOrArgChange:a,skip:u=!1,pollingInterval:d=0,skipPollingIfUnfocused:p=!1}={})=>{const{initiate:y}=e.endpoints[c],b=n(),w=(0,l.useRef)(void 0);if(!w.current){const t=b(e.internalActions.internal_getRTKQSubscriptions());w.current=t}const x=h(u?r.hT:t,f,g.endpointDefinitions[c],c),_=m({refetchOnReconnect:i,refetchOnFocus:o,pollingInterval:d,skipPollingIfUnfocused:p}),E=(0,l.useRef)(!1),S=(0,l.useRef)(void 0);let{queryCacheKey:C,requestId:k}=S.current||{},O=!1;C&&k&&(O=w.current.isRequestSubscribed(C,k));const N=!O&&E.current;return v((()=>{E.current=O})),v((()=>{N&&(S.current=void 0)}),[N]),v((()=>{const e=S.current;if(x===r.hT)return e?.unsubscribe(),void(S.current=void 0);const t=S.current?.subscriptionOptions;if(e&&e.arg===x)_!==t&&e.updateSubscriptionOptions(_);else{e?.unsubscribe();const t=b(y(x,{subscriptionOptions:_,forceRefetch:a}));S.current=t}}),[b,y,a,x,_,N]),(0,l.useEffect)((()=>()=>{S.current?.unsubscribe(),S.current=void 0}),[]),(0,l.useMemo)((()=>({refetch:()=>{if(!S.current)throw new Error((0,s.gk)(38));return S.current?.refetch()}})),[])},_=({refetchOnReconnect:r,refetchOnFocus:i,pollingInterval:o=0,skipPollingIfUnfocused:a=!1}={})=>{const{initiate:s}=e.endpoints[c],u=n(),[d,f]=(0,l.useState)(p),h=(0,l.useRef)(void 0),g=m({refetchOnReconnect:r,refetchOnFocus:i,pollingInterval:o,skipPollingIfUnfocused:a});v((()=>{const e=h.current?.subscriptionOptions;g!==e&&h.current?.updateSubscriptionOptions(g)}),[g]);const y=(0,l.useRef)(g);v((()=>{y.current=g}),[g]);const b=(0,l.useCallback)((function(e,n=!1){let r;return t((()=>{h.current?.unsubscribe(),h.current=r=u(s(e,{subscriptionOptions:y.current,forceRefetch:!n})),f(e)})),r}),[u,s]),w=(0,l.useCallback)((()=>{h.current?.queryCacheKey&&u(e.internalActions.removeQueryResult({queryCacheKey:h.current?.queryCacheKey}))}),[u]);return(0,l.useEffect)((()=>()=>{h?.current?.unsubscribe()}),[]),(0,l.useEffect)((()=>{d===p||h.current||b(d,!0)}),[d,b]),(0,l.useMemo)((()=>[b,d,{reset:w}]),[b,d,w])},E=(t,{skip:n=!1,selectFromResult:s}={})=>{const{select:f}=e.endpoints[c],p=h(n?r.hT:t,d,g.endpointDefinitions[c],c),m=(0,l.useRef)(void 0),v=(0,l.useMemo)((()=>u([f(p),(e,t)=>t,e=>p],w,{memoizeOptions:{resultEqualityCheck:i.bN}})),[f,p]),b=(0,l.useMemo)((()=>s?u([v],s,{devModeChecks:{identityFunctionCheck:"never"}}):v),[v,s]),x=o((e=>b(e,m.current)),i.bN),_=a(),E=v(_.getState(),m.current);return y((()=>{m.current=E}),[E]),x};return{useQueryState:E,useQuerySubscription:x,useLazyQuerySubscription:_,useLazyQuery(e){const[t,n,{reset:r}]=_(e),i=E(n,{...e,skip:n===p}),o=(0,l.useMemo)((()=>({lastArg:n})),[n]);return(0,l.useMemo)((()=>[t,{...i,reset:r},o]),[t,i,r,o])},useQuery(e,t){const n=x(e,t),i=E(e,{selectFromResult:e===r.hT||t?.skip?void 0:b,...t}),{data:o,status:a,isLoading:s,isSuccess:c,isError:u,error:d}=i;return(0,l.useDebugValue)({data:o,status:a,isLoading:s,isSuccess:c,isError:u,error:d}),(0,l.useMemo)((()=>({...i,...n})),[i,n])}}},buildMutationHook:function(r){return({selectFromResult:a,fixedCacheKey:s}={})=>{const{select:c,initiate:d}=e.endpoints[r],f=n(),[p,h]=(0,l.useState)();(0,l.useEffect)((()=>()=>{p?.arg.fixedCacheKey||p?.reset()}),[p]);const m=(0,l.useCallback)((function(e){const t=f(d(e,{fixedCacheKey:s}));return h(t),t}),[f,d,s]),{requestId:g}=p||{},v=(0,l.useMemo)((()=>c({fixedCacheKey:s,requestId:p?.requestId})),[s,p,c]),y=(0,l.useMemo)((()=>a?u([v],a):v),[a,v]),b=o(y,i.bN),w=null==s?p?.arg.originalArgs:void 0,x=(0,l.useCallback)((()=>{t((()=>{p&&h(void 0),s&&f(e.internalActions.removeMutationResult({requestId:g,fixedCacheKey:s}))}))}),[f,s,p,g]),{endpointName:_,data:E,status:S,isLoading:C,isSuccess:k,isError:O,error:N}=b;(0,l.useDebugValue)({endpointName:_,data:E,status:S,isLoading:C,isSuccess:k,isError:O,error:N});const T=(0,l.useMemo)((()=>({...b,originalArgs:w,reset:x})),[b,w,x]);return(0,l.useMemo)((()=>[m,T]),[m,T])}},usePrefetch:function(t,r){const i=n(),o=m(r);return(0,l.useCallback)(((n,r)=>i(e.util.prefetch(t,n,{...o,...r}))),[t,i,o])}};function w(e,t,n){if(t?.endpointName&&e.isUninitialized){const{endpointName:e}=t,i=g.endpointDefinitions[e];n!==r.hT&&d({queryArgs:t.originalArgs,endpointDefinition:i,endpointName:e})===d({queryArgs:n,endpointDefinition:i,endpointName:e})&&(t=void 0)}let i=e.isSuccess?e.data:t?.data;void 0===i&&(i=e.data);const o=void 0!==i,a=e.isLoading,s=(!t||t.isLoading||t.isUninitialized)&&!o&&a,l=e.isSuccess||o&&(a&&!t?.isError||e.isUninitialized);return{...e,data:i,currentData:e.data,isFetching:a,isLoading:s,isSuccess:l}}}({api:o,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:a,createSelector:n},serializeQueryArgs:d,context:g});return u(v,{usePrefetch:_}),u(g,{batch:e}),{injectEndpoint(e,t){if("query"===t.type){const{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:i,useQuerySubscription:a}=w(e);u(v.endpoints[e],{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:i,useQuerySubscription:a}),o[`use${c(e)}Query`]=t,o[`useLazy${c(e)}Query`]=n}else if(function(e){return"mutation"===e.type}(t)){const t=x(e);u(v.endpoints[e],{useMutation:t}),o[`use${c(e)}Mutation`]=t}}}}}))());const _=x({baseQuery:function(){throw new Error("When using `fakeBaseQuery`, all queries & mutations must use the `queryFn` definition syntax.")},endpoints:()=>({}),invalidationBehavior:"immediately",tagTypes:["All","PDiskData","PreviewData","SchemaTree","StorageData","Tablet","UserData","VDiskData"]});Symbol()},21519:e=>{e.exports=function(e){return e!==e}},21551:(e,t,n)=>{var r=n(59368),i=n(19305);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},22551:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.STRICT=void 0,t.STRICT=!0},22680:(e,t,n)=>{"use strict";n.d(t,{i:()=>i});var r=n(46878);function i(){return(0,r.w)().themeValue}},22735:(e,t,n)=>{e.exports=n(54386)},22750:(e,t)=>{let n;const r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];t.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return r[e]},t.getBCHDigit=function(e){let t=0;for(;0!==e;)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!==typeof e)throw new Error('"toSJISFunc" is not a valid function.');n=e},t.isKanjiModeEnabled=function(){return"undefined"!==typeof n},t.toSJIS=function(e){return n(e)}},22807:(e,t,n)=>{var r=n(64503)(Object.getPrototypeOf,Object);e.exports=r},22894:(e,t,n)=>{var r=n(85651);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},22921:e=>{"use strict";e.exports=URIError},22984:(e,t,n)=>{var r=n(57578);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},23097:(e,t,n)=>{var r=n(85651);e.exports=function(e){return r(this,e).get(e)}},23871:(e,t,n)=>{"use strict";n.d(t,{t:()=>p});var r=n(59284),i=n(69220);const o=r.createContext({activeTabId:void 0});o.displayName="TabsContext";var a=n(47665);const s=(0,i.om)("tabs");function l({id:e,className:t,title:n,meta:i,hint:l,icon:c,counter:u,label:d,active:f,disabled:p,hasOverflow:h,extraProps:m,onClick:g}){const{activeTabId:v}=r.useContext(o),y="boolean"===typeof f?f:v===e,b=r.useMemo((()=>void 0!==l?l:"string"===typeof n?n:void 0),[l,n]);return r.createElement("div",Object.assign({},m,{role:"tab","aria-selected":y,"aria-disabled":!0===p,tabIndex:p?-1:0,className:s("item",{active:y,disabled:p,overflow:Boolean(h)},t),title:b,onClick:()=>{g(e)},onKeyDown:t=>{" "===t.key&&g(e)}}),r.createElement("div",{className:s("item-content")},c&&r.createElement("div",{className:s("item-icon")},c),r.createElement("div",{className:s("item-title")},n||e),void 0!==u&&r.createElement("div",{className:s("item-counter")},u),d&&r.createElement(a.J,{className:s("item-label"),theme:d.theme},d.content)),i&&r.createElement("div",{className:s("item-meta")},i))}l.displayName="Tabs.Item";const c=(0,i.om)("tabs");var u;!function(e){e.Horizontal="horizontal",e.Vertical="vertical"}(u||(u={}));const d=[],f=r.forwardRef((({direction:e=u.Horizontal,size:t="m",activeTab:n,allowNotSelected:i=!1,items:a=d,children:s,className:f,onSelectTab:p,wrapTo:h,qa:m},g)=>{const v=((e,t,n)=>{var r;return e||(t||0===(null===n||void 0===n?void 0:n.length)||null===(r=null===n||void 0===n?void 0:n[0])||void 0===r?void 0:r.id)})(n,i,a),y=r.useMemo((()=>({activeTabId:v})),[v]),b=r.useMemo((()=>{const e=e=>{p&&p(e)};return a.map(((t,n)=>{const i=r.createElement(l,Object.assign({key:t.id},t,{onClick:e}));return h?h(t,i,n):i}))}),[a,p,h]);return r.createElement("div",{role:"tablist",className:c({direction:e,size:t},f),"data-qa":m,ref:g},r.createElement(o.Provider,{value:y},s||b))}));f.displayName="Tabs";const p=Object.assign(f,{Item:l})},24381:(e,t,n)=>{var r=n(85651);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},24447:(e,t,n)=>{var r=n(38469),i=n(48303),o=n(71325),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=i(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},24600:(e,t,n)=>{"use strict";n.d(t,{K:()=>s,m:()=>o});var r=n(53850),i=n(78034);const o=n(21334).F.injectEndpoints({endpoints:e=>({getNodesList:e.query({queryFn:async(e,{signal:t})=>{try{return{data:await window.api.viewer.getNodesList({signal:t})}}catch(n){return{error:n}}}})}),overrideExisting:"throw"}),a=o.endpoints.getNodesList.select(void 0),s=(0,r.Mz)((e=>a(e).data),(e=>(0,i.nN)(e)))},25196:(e,t,n)=>{"use strict";n.d(t,{K:()=>u});var r=n(59284),i=n(112),o=n(67884),a=n(77506),s=n(44294),l=n(60712);const c=(0,a.cn)("ydb-link-with-icon"),u=({title:e,url:t,external:n=!0,className:a})=>{const u=(0,l.jsxs)(r.Fragment,{children:[e,"\xa0",(0,l.jsx)(i.A,{})]});return n?(0,l.jsx)(o.N,{href:t,target:"_blank",className:c(null,a),children:u}):(0,l.jsx)(s.E,{to:t,className:c(null,a),children:u})}},25412:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ASIDE_HEADER_COMPACT_KEY:()=>Le.LQ,AUTOCOMPLETE_ON_ENTER:()=>Le.IO,AUTO_REFRESH_INTERVAL:()=>Le.av,AppSlots:()=>r,AsideNavigation:()=>Co,BINARY_DATA_IN_PLAIN_TEXT_DISPLAY:()=>Le.RY,CASE_SENSITIVE_JSON_SEARCH:()=>Le.iD,CLUSTER_DEFAULT_TITLE:()=>Le.QM,DAY_IN_SECONDS:()=>Le.tt,DEFAULT_CLUSTER_TAB_KEY:()=>Le.fY,DEFAULT_DANGER_THRESHOLD:()=>Le.Ed,DEFAULT_IS_QUERY_RESULT_COLLAPSED:()=>Le.GV,DEFAULT_IS_TENANT_COMMON_INFO_COLLAPSED:()=>Le.hh,DEFAULT_IS_TENANT_SUMMARY_COLLAPSED:()=>Le.jX,DEFAULT_SIZE_RESULT_PANE_KEY:()=>Le.l_,DEFAULT_SIZE_TENANT_KEY:()=>Le.jQ,DEFAULT_SIZE_TENANT_SUMMARY_KEY:()=>Le.ED,DEFAULT_TABLE_SETTINGS:()=>Le.N3,DEFAULT_WARNING_THRESHOLD:()=>Le.Hh,DEVELOPER_UI_TITLE:()=>Le.T5,DEV_ENABLE_TRACING_FOR_ALL_REQUESTS:()=>Le.U0,EMPTY_DATA_PLACEHOLDER:()=>Le.Pd,ENABLE_AUTOCOMPLETE:()=>Le.LK,ENABLE_CODE_ASSISTANT:()=>Le.bz,ENABLE_NETWORK_TABLE_KEY:()=>Le.g5,ENABLE_QUERY_STREAMING:()=>Le.kO,ErrorBoundary:()=>s.lQ,ErrorBoundaryFallback:()=>s.jt,GIGABYTE:()=>Le.J7,HOUR_IN_SECONDS:()=>Le.Jg,INVERTED_DISKS_KEY:()=>Le.TJ,IS_HOTKEYS_HELP_HIDDEN_KEY:()=>Le.Gj,KILOBYTE:()=>Le.eh,LANGUAGE_KEY:()=>Le.jS,LAST_QUERY_EXECUTION_SETTINGS_KEY:()=>Le.fr,LAST_USED_QUERY_ACTION_KEY:()=>Le.zk,Lang:()=>me.JA,MEGABYTE:()=>Le.pg,MINUTE_IN_SECONDS:()=>Le.r0,MS_IN_NANOSECONDS:()=>Le.zz,MultiClusterApp:()=>Wo,PARTITIONS_HIDDEN_COLUMNS_KEY:()=>Le.bs,QUERIES_HISTORY_KEY:()=>Le.MB,QUERY_EXECUTION_SETTINGS_KEY:()=>Le.c4,QUERY_SETTINGS_BANNER_LAST_CLOSED_KEY:()=>Le.YQ,QUERY_STOPPED_BANNER_CLOSED_KEY:()=>Le.J0,SAVED_QUERIES_KEY:()=>Le.ld,SECOND_IN_MS:()=>Le.KF,SHOW_DOMAIN_DATABASE_KEY:()=>Le.Xm,SingleClusterApp:()=>To,TENANT_DEFAULT_TITLE:()=>Le.oK,TENANT_INITIAL_PAGE_KEY:()=>Le.Mt,TENANT_OVERVIEW_TABLES_LIMIT:()=>Le.Nz,TENANT_OVERVIEW_TABLES_SETTINGS:()=>Le.jp,TERABYTE:()=>Le.Db,THEME_KEY:()=>Le.k4,USE_CLUSTER_BALANCER_AS_BACKEND_KEY:()=>Le.s2,USE_SHOW_PLAN_SVG_KEY:()=>Le.lr,WEEK_IN_SECONDS:()=>Le.Du,YdbEmbeddedAPI:()=>Go.i,appRoutes:()=>de.Ay,cn:()=>pe.cn,componentsRegistry:()=>ko,configureStore:()=>Ko.U1,getMonitoringClusterLink:()=>Io,getMonitoringLink:()=>Ao,getSettingValue:()=>Yo.CN,getTabletLabel:()=>Le.bk,getUserSettings:()=>lt,i18n:()=>me.Ru,parseMonitoringData:()=>Po,registerKeysets:()=>me.g4,reportWebVitals:()=>Zo.A,rootReducer:()=>Ko.d$,setSettingValue:()=>Yo.gc,settingsManager:()=>bo.f,toaster:()=>Qo.X,useSetting:()=>u.iK,useTypedSelector:()=>u.N4});var r={};n.r(r),n.d(r,{ClusterSlot:()=>En,ClustersSlot:()=>_n,NodeSlot:()=>Cn,PDiskPageSlot:()=>kn,RedirectSlot:()=>In,RoutesSlot:()=>An,StorageGroupSlot:()=>Nn,TabletSlot:()=>Tn,TenantSlot:()=>Sn,VDiskPageSlot:()=>On});var i=n(59284),o=n(61750),a=n(97434),s=n(82266),l=n(34271),c=n(78668),u=n(90182);function d(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}"function"===typeof SuppressedError&&SuppressedError;var f=n(99991),p=n(23871),h=n(28664),m=n(74417),g=n(87184),v=n(92209);function y(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!==typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}var b=n(49034),w=n(72837),x=n(81240),_=n(98089),E=n(84476),S={button_close:"Close"},C={button_close:"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"};var k=(0,w.N)({en:S,ru:C},`${v.N}Title`);y(".gn-title{align-items:center;box-sizing:border-box;display:flex;justify-content:space-between;min-height:64px;padding:14px 10px 14px 20px}.gn-title_separator{border-bottom:1px solid var(--g-color-line-generic)}.gn-title__text{margin:0 20px 0 0}");const O=(0,v.b)("title"),N=({children:e,closeIconSize:t=23,hasSeparator:n,closeTitle:r=k("button_close"),onClose:o})=>i.createElement("div",{className:O({separator:n})},i.createElement(_.E,{className:O("text"),as:"h3",variant:"subheader-3"},e),o&&i.createElement(E.$,{onClick:o,view:"flat",size:"l",extraProps:{"aria-label":r}},i.createElement(f.I,{data:x.A,size:t})));function T(e){const t=i.useRef();return i.useEffect((()=>(t.current=e,()=>{t.current=void 0})),[e]),i.useCallback(((...e)=>{if("function"===typeof t.current)return t.current(...e)}),[])}function A(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function I(e,t=""){const n=A(t).replace(/\s+/g,".*?");return P(e,"",new RegExp(n,"i"))}function P(e,t="",n){const r=[],o={};let a=!1,s=!1;return i.Children.forEach(e,(e=>{var l,c;if(i.isValidElement(e))if(e.type===i.Fragment){const{menu:i,pages:a}=P(e.props.children,t,n);r.push(...i),Object.assign(o,a)}else if(e.props.groupTitle){0;const i=`${t}/${null!==(l=e.props.id)&&void 0!==l?l:e.props.groupTitle}`;a=!0;const{menu:s,pages:c}=P(e.props.children,i,n);0,r.push({groupTitle:e.props.groupTitle,items:s}),Object.assign(o,c)}else{s=!0;const i=`${t}/${null!==(c=e.props.id)&&void 0!==c?c:e.props.title}`;0,o[i]=R(e.props.children,n),o[i].id=i,r.push({id:i,title:e.props.title,icon:e.props.icon,withBadge:o[i].withBadge,disabled:o[i].hidden})}})),{menu:r,pages:o}}function R(e,t){const n={id:"",sections:[],hidden:!0};return i.Children.forEach(e,(e=>{if(i.isValidElement(e))if(e.type===i.Fragment){const{sections:r,withBadge:i,hidden:o}=R(e.props.children,t);n.sections.push(...r),n.withBadge=i||n.withBadge,n.hidden=o&&n.hidden}else{const{withBadge:r,showTitle:i=!0}=e.props,{items:o,hidden:a}=D(e.props.children,t);n.withBadge=r||n.withBadge,n.hidden=a&&n.hidden,n.sections.push(Object.assign(Object.assign({},e.props),{withBadge:r,items:o,hidden:a,showTitle:i}))}})),n}function D(e,t){let n=!0;const r=[];return i.Children.forEach(e,(e=>{if(i.isValidElement(e))if(e.type===i.Fragment){const i=D(e.props.children,t);r.push(...i.items),n=n&&i.hidden}else{const i=Object.assign(Object.assign({},e.props),{element:e,hidden:!t.test(e.props.title)});r.push(i),n=n&&i.hidden}})),{items:r,hidden:n}}N.displayName="Title";const j=i.createContext({});function M(e,t){const n=i.useRef(null);return i.useMemo((()=>t?Object.assign({selectedRef:n},function(e,t){if(!t.settingId&&!t.section&&!t.page)return{};for(const n of Object.values(e)){if(!t.settingId&&!t.section){if(t.page!==n.id)continue;return{page:n}}for(const e of n.sections)if(t.settingId){for(const r of e.items)if(r.id===t.settingId)return{page:n,section:e,setting:r}}else if(t.section&&("id"in t.section?t.section.id===e.id:t.section.title===e.title))return{page:n,section:e}}return{}}(e,t)):{selectedRef:n}),[e,t])}j.displayName="SettingsSelectionContext";const L=j.Provider;var z=function(e){return e};y('.gn-settings-menu__group-heading{display:inline-block;font-weight:var(--g-text-accent-font-weight);line-height:18px;margin-bottom:12px;padding:0 20px}.gn-settings-menu__group+.gn-settings-menu__group{margin-top:24px}.gn-settings-menu__item{align-items:center;color:var(--g-color-text-primary);cursor:pointer;display:flex;height:40px;padding:0 20px}.gn-settings-menu__item-icon{color:var(--g-color-text-misc);margin-right:5px}.gn-settings-menu__item:hover,.gn-settings-menu__item_focused{background:var(--g-color-base-simple-hover)}.gn-settings-menu__item_selected{background:var(--g-color-base-selection)}.gn-settings-menu__item_selected.gn-settings-menu__item_focused,.gn-settings-menu__item_selected:hover{background:var(--g-color-base-selection-hover)}.gn-settings-menu__item_disabled{color:var(--g-color-text-secondary);cursor:auto}.gn-settings-menu__item_disabled:hover{background:none}.gn-settings-menu__item_disabled .gn-settings-menu__item-icon{color:var(--g-color-base-misc-heavy)}.gn-settings-menu__item_badge{position:relative}.gn-settings-menu__item_badge:after{background-color:var(--g-color-text-danger);border-radius:50%;content:"";display:block;height:6px;position:absolute;right:9px;top:calc(50% - 3px);width:6px}');const F=(0,v.b)("settings-menu"),B=i.forwardRef((function({items:e,onChange:t,activeItemId:n},r){const[o,a]=i.useState(),s=i.useRef(null),l=T(t),c=function(e){const t=i.useRef(e);return t.current=e,i.useCallback((()=>t.current),[])}(o);return i.useImperativeHandle(r,(()=>({handleKeyDown(e){if(!s.current)return!1;const t=c();return t&&"Enter"===e.key?(l(t),!0):"ArrowDown"===e.key?(a(q(s.current,t,1)),!0):"ArrowUp"===e.key&&(a(q(s.current,t,-1)),!0)},clearFocus(){a(void 0)}})),[c,l]),i.createElement("div",{ref:s,className:F()},e.map((e=>"groupTitle"in e?i.createElement("div",{key:e.groupTitle,className:F("group")},i.createElement("span",{className:F("group-heading")},e.groupTitle),e.items.map((e=>U(e,t,n,o)))):U(e,t,n,o))))}));function U(e,t,n,r){return i.createElement("span",{key:e.title,className:F("item",{selected:n===e.id,disabled:e.disabled,focused:r===e.id,badge:e.withBadge}),onClick:()=>{e.disabled||t(e.id)},"data-id":e.id},e.icon?i.createElement(f.I,Object.assign({size:16},e.icon,{className:F("item-icon")})):void 0,i.createElement("span",null,e.title))}function q(e,t,n){var r;const i=e.querySelectorAll(`.${F("item")}:not(.${F("item")}_disabled)`);if(0===i.length)return;let o=n>0?-1:0;return t&&(o=Array.prototype.findIndex.call(i,(e=>e.getAttribute("data-id")===t))),o=(i.length+o+n)%i.length,null!==(r=i[o].getAttribute("data-id"))&&void 0!==r?r:void 0}y('.gn-settings-menu-mobile.g-tabs_direction_horizontal{-ms-overflow-style:none;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:none;scrollbar-width:none}.gn-settings-menu-mobile.g-tabs_direction_horizontal::-webkit-scrollbar{display:none}.gn-settings-menu-mobile__item_badge{position:relative}.gn-settings-menu-mobile__item_badge:after{background-color:var(--g-color-text-danger);border-radius:50%;content:"";display:block;height:6px;position:absolute;right:-8px;top:11px;width:6px}');const $=(0,v.b)("settings-menu-mobile"),H=({items:e,onChange:t,activeItemId:n,className:r})=>{const o=i.useRef(null),a=i.useMemo((()=>{const t=[];return e.forEach((e=>{if("groupTitle"in e)t.push(...e.items.map((({id:e,title:t,disabled:n,withBadge:r})=>({id:e,title:t,disabled:n,className:$("item",{badge:r})}))));else{const{id:n,title:r,disabled:i,withBadge:o}=e;t.push({id:n,title:r,disabled:i,className:$("item",{badge:o})})}})),t}),[e]);return i.createElement("div",{ref:o,onTouchMove:e=>{e.stopPropagation()}},i.createElement(p.t,{items:a,className:$(null,r),size:"l",activeTab:n,onSelectTab:t}))};var V={label_title:"Settings","label_filter-placeholder":"Search settings","label_empty-placeholder":"No results found",label_search:"Search"},W={label_title:"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438","label_filter-placeholder":"\u041d\u0430\u0439\u0442\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438","label_empty-placeholder":"\u041d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043e",label_search:"\u041f\u043e\u0438\u0441\u043a"};var K=(0,w.N)({en:V,ru:W},`${v.N}Settings`);const G=(0,v.b)("settings-search");function Y({className:e,initialValue:t,onChange:n,debounce:r=200,inputRef:o,inputSize:a,placeholder:s,autoFocus:l=!0}){const[c,u]=i.useState(null!==t&&void 0!==t?t:""),d=T((0,b.d)(n,r)),f=T((e=>{u(e),d(e)}));return i.createElement("div",{className:G(null,e)},i.createElement(h.k,{value:c,controlRef:o,hasClear:!0,autoFocus:l,size:a,placeholder:s,onUpdate:f,controlProps:{"aria-label":K("label_search")}}))}y('.gn-settings{display:grid;grid-template-columns:216px 1fr;height:100%;width:834px}.gn-settings_view_mobile{display:block;height:calc(80vh - 56px);overflow-x:hidden;width:auto}@supports (height:90dvh){.gn-settings_view_mobile{height:calc(90dvh - 56px)}}.gn-settings_view_mobile.gn-settings_loading{text-align:center}.gn-settings_view_mobile .gn-settings__loader{margin-top:20px}.gn-settings_view_mobile .gn-settings__search{margin:4px 0 16px;padding:0 20px}.gn-settings_view_mobile .gn-settings__page{overflow-y:visible}.gn-settings_view_mobile .gn-settings__tabs .g-tabs__item:first-child{margin-left:20px}.gn-settings_view_mobile .gn-settings__tabs .g-tabs__item:last-child{margin-right:20px}.gn-settings_view_mobile .gn-settings__section-heading{font-size:var(--g-text-subheader-3-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-3-line-height)}.gn-settings_view_mobile .gn-settings__section-subheader{color:var(--g-color-text-secondary)}.gn-settings_view_mobile .gn-settings__section-heading+.gn-settings-subheader{margin-top:8px}.gn-settings_view_mobile .gn-settings__section-item{margin-top:0}.gn-settings_view_mobile .gn-settings__section-heading+.gn-settings__section-item,.gn-settings_view_mobile .gn-settings__section-subheader+.gn-settings__section-item{margin-top:30px}.gn-settings_view_mobile .gn-settings__section-item+.gn-settings__section-item{margin-top:22px}.gn-settings_view_mobile .gn-settings__item:not(.gn-settings_view_mobile .gn-settings__item_mode_row){gap:8px;grid-template-columns:1fr}.gn-settings_view_mobile .gn-settings__item-heading{font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-2-line-height)}.gn-settings_view_mobile .gn-settings__item-description{font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height)}.gn-settings_view_mobile .gn-settings__item_mode_row{grid-template-columns:1fr auto}.gn-settings_view_mobile .gn-settings__item_mode_row .gn-settings__item-heading{padding-right:20px}.gn-settings_view_mobile .gn-settings__item-content{width:100%}.gn-settings_view_mobile .gn-settings__not-found{color:var(--g-color-text-hint);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);justify-items:start;line-height:var(--g-text-body-2-line-height);margin:20px 0 0 20px}.gn-settings_loading{grid-template-columns:auto}.gn-settings__loader{place-self:center}.gn-settings__not-found{display:grid;height:100%;place-items:center}.gn-settings__menu{border-right:1px solid var(--g-color-line-generic)}.gn-settings__heading{font-size:var(--g-text-subheader-2-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-2-line-height);margin:20px 20px 0}.gn-settings__search{margin:0 20px 16px}.gn-settings__page{overflow-y:auto}.gn-settings__content{padding:20px}.gn-settings__section-right-adornment_hidden{opacity:0;transition:opacity .2s}.gn-settings__section-heading:hover .gn-settings__section-right-adornment_hidden{opacity:1}.gn-settings__section-heading{font-size:var(--g-text-subheader-2-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-2-line-height);margin:0}.gn-settings__section-item{margin-top:24px}.gn-settings__section+.gn-settings__section{margin-top:32px}.gn-settings__section_only-child:only-child .gn-settings__section-item:first-of-type{margin-top:0}.gn-settings__section_only-child:only-child .gn-settings__section-heading{display:none}.gn-settings__item{display:grid;grid-template-columns:216px 1fr;justify-items:start}.gn-settings__item_align_top{align-items:start}.gn-settings__item_align_center{align-items:center}.gn-settings__item-title_badge{position:relative}.gn-settings__item-title_badge:after{background-color:var(--g-color-text-danger);border-radius:50%;content:"";display:block;height:6px;position:absolute;right:-8px;top:1px;width:6px}.gn-settings__item-description{color:var(--g-color-text-secondary);display:block;font-size:var(--g-text-caption-2-font-size);font-weight:var(--g-text-caption-font-weight);line-height:var(--g-text-caption-2-line-height);margin-top:2px;padding-right:20px}.gn-settings__item-right-adornment_hidden{opacity:0;transition:opacity .2s}.gn-settings__item:hover .gn-settings__item-right-adornment_hidden{opacity:1}.gn-settings__item_selected,.gn-settings__section_selected{background:var(--g-color-base-selection);border-radius:8px;margin-left:-8px;padding:8px}.gn-settings__found{background:var(--g-color-base-selection);font-weight:var(--g-text-accent-font-weight)}');const Q=(0,v.b)("settings"),Z=i.createContext({}),J=()=>i.useContext(Z);function X(e){var{loading:t,renderLoading:n,children:r,view:o="normal",renderRightAdornment:a,renderSectionRightAdornment:s,showRightAdornmentOnHover:l=!0}=e,c=d(e,["loading","renderLoading","children","view","renderRightAdornment","renderSectionRightAdornment","showRightAdornmentOnHover"]);return t?i.createElement("div",{className:Q({loading:!0,view:o})},"function"===typeof n?n():i.createElement(m.a,{className:Q("loader"),size:"m"})):i.createElement(Z.Provider,{value:{renderRightAdornment:a,renderSectionRightAdornment:s,showRightAdornmentOnHover:l}},i.createElement(te,Object.assign({view:o},c),r))}const ee=(e,t)=>{for(const n of e)if("groupTitle"in n){for(const e of n.items)if(e.id===t)return e.title}else if(n.id===t)return n.title;return""};function te({initialPage:e,initialSearch:t,selection:n,children:r,renderNotFound:o,title:a=K("label_title"),filterPlaceholder:s=K("label_filter-placeholder"),emptyPlaceholder:l=K("label_empty-placeholder"),view:c,onPageChange:u,onClose:d}){var f,p;const{renderSectionRightAdornment:h,showRightAdornmentOnHover:m}=J(),[v,y]=i.useState(null!==t&&void 0!==t?t:""),{menu:b,pages:w}=I(r,v),x=M(w,n),_=Object.keys(w),E=x.page&&_.includes(x.page.id)?x.page.id:void 0,[S,C]=i.useState(E||(e&&_.includes(e)?e:void 0)),k=i.useRef(null),O=i.useRef(null),T="mobile"===c;i.useEffect((()=>{var e;null===(e=O.current)||void 0===e||e.clearFocus()}),[v]),i.useEffect((()=>{const e=()=>{var e;null===(e=O.current)||void 0===e||e.clearFocus()};return window.addEventListener("click",e),()=>{window.removeEventListener("click",e)}}),[]);let A=S;A&&!(null===(f=w[A])||void 0===f?void 0:f.hidden)||(A=null===(p=Object.values(w).find((({hidden:e})=>!e)))||void 0===p?void 0:p.id);const P=e=>{C((t=>(t!==e&&(null===u||void 0===u||u(e)),e)))};i.useEffect((()=>{A!==S&&P(A)})),i.useEffect((()=>{E&&C(E)}),[E]),i.useEffect((()=>{var e;(null===(e=x.selectedRef)||void 0===e?void 0:e.current)&&x.selectedRef.current.scrollIntoView()}),[x.selectedRef]);const R=(e,t)=>{const n=function(e,t,n){var r;return!(!e.section||e.setting)&&(!(!e.section.id||e.section.id!==n.id)||!((null===(r=e.page)||void 0===r?void 0:r.id)!==t||!e.section.title||e.section.title!==n.title))}(x,e,t);return i.createElement("div",{key:t.title,className:Q("section",{selected:n,"only-child":t.onlyChild}),ref:n?x.selectedRef:void 0},t.showTitle&&i.createElement("h3",{className:Q("section-heading")},h?i.createElement(g.s,{gap:2,alignItems:"center"},t.title,i.createElement("div",{className:Q("section-right-adornment",{hidden:m})},h(t))):t.title),t.header&&(T?i.createElement("div",{className:Q("section-subheader")},t.header):t.header),t.items.map((e=>e.hidden?null:(({title:e,element:t})=>i.createElement("div",{key:e,className:Q("section-item")},i.cloneElement(t,Object.assign(Object.assign({},t.props),{highlightedTitle:v&&e?ne(e,v):e}))))(e))))};return i.createElement(L,{value:x},i.createElement("div",{className:Q({view:c})},T?i.createElement(i.Fragment,null,i.createElement(Y,{inputRef:k,className:Q("search"),initialValue:t,onChange:y,autoFocus:!1,inputSize:"xl"}),i.createElement(H,{items:b,onChange:P,activeItemId:A,className:Q("tabs")})):i.createElement("div",{className:Q("menu"),onClick:()=>{k.current&&k.current.focus()},onKeyDown:e=>{O.current&&O.current.handleKeyDown(e)&&e.preventDefault()}},i.createElement(N,null,a),i.createElement(Y,{inputRef:k,className:Q("search"),initialValue:t,onChange:y,placeholder:s,autoFocus:!0}),i.createElement(B,{ref:O,items:b,onChange:P,activeItemId:A})),i.createElement("div",{className:Q("page")},(e=>{if(!e)return"function"===typeof o?o():i.createElement("div",{className:Q("not-found")},l);const t=w[e].sections.filter((e=>!e.hidden));return i.createElement(i.Fragment,null,!T&&i.createElement(N,{hasSeparator:!0,onClose:d},ee(b,e)),i.createElement("div",{className:Q("content")},t.map((t=>R(e,t)))))})(A))))}function ne(e,t){let n=e.slice(0);const r=[],o=A(t).split(" ").filter(Boolean);let a=0;for(const s of o){const e=new RegExp(s,"ig").exec(n);if(e){const t=e[0],o=e.index;o>0&&r.push(n.slice(0,o)),r.push(i.createElement("strong",{key:a++,className:Q("found")},t)),n=n.slice(o+t.length)}}return n&&r.push(n),r}X.Group=function({children:e}){return i.createElement(i.Fragment,null,e)},X.Page=function({children:e}){return i.createElement(i.Fragment,null,e)},X.Section=function({children:e}){return i.createElement(i.Fragment,null,e)},X.Item=function(e){const{id:t,labelId:n,highlightedTitle:r,children:o,align:a="center",withBadge:s,renderTitleComponent:l=z,mode:c,description:u}=e,d=i.useContext(j),f=d.setting&&d.setting.id===t,{renderRightAdornment:p,showRightAdornmentOnHover:h}=J(),m=i.createElement("span",{className:Q("item-title",{badge:s})},l(r));return i.createElement("div",{className:Q("item",{align:a,mode:c,selected:f}),ref:f?d.selectedRef:void 0},i.createElement("label",{className:Q("item-heading"),id:n},p?i.createElement(g.s,{className:Q("item-title-wrapper"),gap:3},m,i.createElement("div",{className:Q("item-right-adornment",{hidden:h})},p(e))):m,u?i.createElement("span",{className:Q("item-description")},u):null),i.createElement("div",{className:Q("item-content")},o))};var re=n(85589),ie=n(44433),oe=n(60712);const ae=({type:e="switch",settingKey:t,options:n,defaultValue:r,onValueUpdate:i})=>{const[o,a]=(0,u.iK)(t,r),s=e=>{a(e),null===i||void 0===i||i()};switch(e){case"switch":return(0,oe.jsx)(re.d,{checked:Boolean(o),onUpdate:s});case"radio":return n?(0,oe.jsx)(ie.a,{value:String(o),onUpdate:s,children:n.map((({value:e,content:t})=>(0,oe.jsx)(ie.a.Option,{value:e,children:t},e)))}):null;default:return null}},se=({settings:e})=>(0,oe.jsx)(X,{children:e.map((e=>{const{id:t,title:n,icon:r,sections:i=[],showTitle:o}=e;return(0,oe.jsx)(X.Page,{id:t,title:n,icon:r,children:i.map((e=>{const{title:n,settings:r=[]}=e;return(0,oe.jsx)(X.Section,{title:n,showTitle:null===o||void 0===o||o,children:r.map((e=>{if("info"===e.type)return(0,oe.jsx)(X.Item,{...e,children:e.content},e.title);const{description:t,...n}=e;return(0,oe.jsxs)(X.Item,{align:"top",...n,children:[(0,oe.jsx)(ae,{...e}),(0,oe.jsx)(_.E,{color:"secondary",as:"div",children:t})]},e.title)}))},t)}))},t)}))}),le=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.78 7.47a.75.75 0 0 1 0 1.06l-2.5 2.5a.75.75 0 1 1-1.06-1.06l1.22-1.22H1.75a.75.75 0 0 1 0-1.5h7.69L8.22 6.03a.75.75 0 0 1 1.06-1.06zM4 11.75a.75.75 0 0 1 1.5 0V12A1.5 1.5 0 0 0 7 13.5h5a1.5 1.5 0 0 0 1.5-1.5V4A1.5 1.5 0 0 0 12 2.5H7A1.5 1.5 0 0 0 5.5 4v.25a.75.75 0 0 1-1.5 0V4a3 3 0 0 1 3-3h5a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3H7a3 3 0 0 1-3-3z",clipRule:"evenodd"})),ce=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.78 7.47a.75.75 0 0 1 0 1.06l-2.5 2.5a.75.75 0 1 1-1.06-1.06l1.22-1.22H4.75a.75.75 0 0 1 0-1.5h7.69l-1.22-1.22a.75.75 0 0 1 1.06-1.06zM9.5 4.25a.75.75 0 0 1-1.5 0V4a1.5 1.5 0 0 0-1.5-1.5H4A1.5 1.5 0 0 0 2.5 4v8A1.5 1.5 0 0 0 4 13.5h2.5A1.5 1.5 0 0 0 8 12v-.25a.75.75 0 0 1 1.5 0V12a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V4a3 3 0 0 1 3-3h2.5a3 3 0 0 1 3 3z",clipRule:"evenodd"}));var ue=n(10755),de=n(92459),fe=n(67028),pe=n(77506),he=n(28232),me=n(48372);const ge=JSON.parse('{"navigation-item.documentation":"Documentation","navigation-item.settings":"Settings","navigation-item.account":"Account","account.user":"YDB User","account.login":"Login","account.logout":"Logout"}'),ve=(0,me.g4)("ydb-aside-navigation",{en:ge}),ye=(0,pe.cn)("kv-ydb-internal-user");function be({login:e}){const[t]=c.D_.useLogoutMutation(),n=(0,fe.li)(),r=(0,he.J)(),i=(0,ue.W6)(),o=()=>{i.push((0,de.KY)(de.Ay.auth,void 0,{returnUrl:encodeURIComponent(location.href),database:r}))};return(0,oe.jsxs)("div",{className:ye(),children:[(0,oe.jsxs)("div",{className:ye("user-info-wrapper"),children:[(0,oe.jsx)("div",{className:ye("ydb-internal-user-title"),children:ve("account.user")}),e&&(0,oe.jsx)("div",{className:ye("username"),children:e})]}),e?(0,oe.jsx)(E.$,{view:"flat-secondary",title:ve("account.logout"),onClick:()=>{t(void 0)},children:(0,oe.jsx)(f.I,{data:ce})}):n?null:(0,oe.jsx)(E.$,{view:"flat-secondary",title:ve("account.login"),onClick:o,children:(0,oe.jsx)(f.I,{data:le})})]})}function we({children:e,userSettings:t}){const n=(0,l.x)("AsideNavigation"),r=(0,u.N4)(c.mB);return(0,oe.jsx)(n,{settings:(0,oe.jsx)(se,{settings:t}),ydbInternalUser:(0,oe.jsx)(be,{login:r}),user:r?{login:r}:void 0,content:e})}const xe={top:0,right:0,bottom:0,left:0};var _e=n(39238),Ee=n(49818),Se=n(80176);const Ce=(0,pe.cn)("node-tootltip"),ke=e=>{const{data:t}=e;return t&&(0,oe.jsx)("div",{className:Ce(),children:(0,oe.jsx)("table",{children:(0,oe.jsxs)("tbody",{children:[(0,oe.jsxs)("tr",{children:[(0,oe.jsx)("td",{className:Ce("label"),children:"ID"}),(0,oe.jsx)("td",{className:Ce("value"),children:t.nodeId||"?"})]}),(0,oe.jsxs)("tr",{children:[(0,oe.jsx)("td",{className:Ce("label"),children:"Rack"}),(0,oe.jsx)("td",{className:Ce("value"),children:t.rack||"?"})]}),t.connected&&t.capacity?(0,oe.jsxs)("tr",{children:[(0,oe.jsx)("td",{className:Ce("label"),children:"Net"}),(0,oe.jsx)("td",{className:Ce("value"),children:`${t.connected} / ${t.capacity}`})]}):null]})})})},Oe=(0,pe.cn)("histogram-tooltip"),Ne=e=>{const{data:t}=e;return t&&(0,oe.jsx)("div",{className:Oe(),children:(0,oe.jsx)("table",{children:(0,oe.jsxs)("tbody",{children:[(0,oe.jsxs)("tr",{children:[(0,oe.jsx)("td",{className:Oe("label"),children:"Count"}),(0,oe.jsx)("td",{className:Oe("value"),children:t.count||"?"})]}),(0,oe.jsxs)("tr",{children:[(0,oe.jsx)("td",{className:Oe("label"),children:"From"}),(0,oe.jsx)("td",{className:Oe("value"),children:t.leftBound||"?"})]}),(0,oe.jsxs)("tr",{children:[(0,oe.jsx)("td",{className:Oe("label"),children:"To"}),(0,oe.jsx)("td",{className:Oe("value"),children:t.rightBound||"?"})]})]})})})},Te=(0,pe.cn)("cell-tooltip"),Ae={tablet:e=>(0,oe.jsx)(Se.nL,{data:e}),node:e=>(0,oe.jsx)(ke,{data:e}),histogram:e=>(0,oe.jsx)(Ne,{data:e}),cell:e=>(0,oe.jsx)("div",{className:Te(),children:e})};const Ie=(0,a.Ng)((e=>{const{toolTipVisible:t,currentHoveredRef:n,data:r,templateType:i,additionalData:o,positions:a}=e.tooltip,{popupClassName:s}=o||{};return{toolTipVisible:t,currentHoveredRef:n,data:r,template:Ae[i],additionalData:o,positions:a,popupClassName:s}}),{hideTooltip:Ee.w7})((function(e){var t,n;const r=function(e={}){const{rect:t,contextElement:n}=e,r=i.useRef(xe),o=i.useRef({contextElement:n,getBoundingClientRect(){const{top:e,right:t,bottom:n,left:i}=r.current;return{top:e,right:t,bottom:n,left:i,width:t-i,height:n-e}}});if(o.current.contextElement=n,t){const{top:e=0,left:n=0,right:i=n,bottom:o=e}=t;r.current={top:e,right:i,bottom:o,left:n}}else r.current=xe;return o}({rect:{top:null===(t=e.positions)||void 0===t?void 0:t.top,left:null===(n=e.positions)||void 0===n?void 0:n.left}}),o=i.useCallback((()=>{const{hideTooltip:t,toolTipVisible:n}=e;n&&setTimeout((()=>t()),500)}),[e]);i.useEffect((()=>(window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o)})),[o]);const{className:a="",toolTipVisible:s,currentHoveredRef:l,data:c,additionalData:u,positions:d}=e;return(0,oe.jsx)("div",{className:`redux-tooltip ${a}`,children:d?((t,n,o,a)=>{const{template:s,popupClassName:l,hideTooltip:c}=e;return(0,oe.jsx)(i.Fragment,{children:(0,oe.jsx)(_e.z,{open:t,placement:["top","bottom","left","right"],contentClassName:l,anchorRef:r,onOutsideClick:c,children:o&&s(o,a)})})})(s,0,c,u):((t,n,r,i)=>{const{template:o,popupClassName:a,hideTooltip:s}=e;return(0,oe.jsx)(_e.z,{open:t,anchorRef:{current:n},hasArrow:!0,placement:["top","bottom","left","right"],className:a,onOutsideClick:s,children:r&&o(r,i)})})(s,l,c,u)})})),Pe=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",d:"M6.886.773C7.29-.231 8.71-.231 9.114.773l1.472 3.667 3.943.268c1.08.073 1.518 1.424.688 2.118L12.185 9.36l.964 3.832c.264 1.05-.886 1.884-1.802 1.31L8 12.4l-3.347 2.101c-.916.575-2.066-.26-1.802-1.309l.964-3.832L.783 6.826c-.83-.694-.391-2.045.688-2.118l3.943-.268z"})),Re=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.494 13.2c.837-.482 1.006-.946 1.006-1.2 0-.35-.105-.692-.303-.981L9.072 6.435a1.85 1.85 0 0 1-.322-1.044V2.909C8.518 2.968 8.265 3 8 3s-.518-.032-.75-.09v2.48c0 .373-.112.737-.322 1.045L3.803 11.02c-.198.289-.303.63-.303.981 0 .254.169.718 1.006 1.2.813.468 2.043.8 3.494.8s2.68-.332 3.494-.8M8 .5c2 0 2.25 1 2.25 1.5v3.39q0 .11.062.2l3.125 4.584c.367.538.563 1.175.563 1.826 0 2-2.686 3.5-6 3.5S2 14 2 12c0-.652.196-1.288.563-1.826L5.69 5.59a.35.35 0 0 0 .061-.2V2C5.75 1.5 6 .5 8 .5m.084 7.626a.75.75 0 0 1 1.04.208l1.5 2.25a.75.75 0 1 1-1.248.832l-1.5-2.25a.75.75 0 0 1 .208-1.04",clipRule:"evenodd"})),De=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.169 6.331a3 3 0 0 0-.833 1.6l-.338 1.912a1 1 0 0 0 1.159 1.159l1.912-.338a3 3 0 0 0 1.6-.833l3.07-3.07 2-2A.9.9 0 0 0 15 4.13 3.13 3.13 0 0 0 11.87 1a.9.9 0 0 0-.632.262l-2 2zm3.936-1.814L7.229 7.392a1.5 1.5 0 0 0-.416.8L6.6 9.4l1.208-.213.057-.01a1.5 1.5 0 0 0 .743-.406l2.875-2.876a1.63 1.63 0 0 0-1.378-1.378m2.558.199a3.14 3.14 0 0 0-1.379-1.38l.82-.82a1.63 1.63 0 0 1 1.38 1.38zM8 2.25a.75.75 0 0 0-.75-.75H4.5a3 3 0 0 0-3 3v7a3 3 0 0 0 3 3h7a3 3 0 0 0 3-3V8.75a.75.75 0 0 0-1.5 0v2.75a1.5 1.5 0 0 1-1.5 1.5h-7A1.5 1.5 0 0 1 3 11.5v-7A1.5 1.5 0 0 1 4.5 3h2.75A.75.75 0 0 0 8 2.25",clipRule:"evenodd"}));var je=n(43937),Me=n(90754),Le=n(76086);const ze=JSON.parse('{"page.general":"General","section.appearance":"Appearance","page.experiments":"Experiments","section.experiments":"Experiments","page.editor":"Editor","section.dev-setting":"Development settings","page.about":"About","section.about":"About","settings.editor.autocomplete.title":"Enable autocomplete","settings.editor.autocomplete.description":"You\'re always able to get suggestions by pressing Ctrl+Space.","settings.editor.codeAssistant.title":"Code Assistant","settings.editor.codeAssistant.description":"Use Code Assistant for autocomplete.","settings.editor.queryStreaming.title":"Query Streaming","settings.editor.queryStreaming.description":"Use streaming api for query results.","settings.editor.autocomplete-on-enter.title":"Accept suggestion on Enter","settings.editor.autocomplete-on-enter.description":"Controls whether suggestions should be accepted on Enter, in addition to Tab. Helps to avoid ambiguity between inserting new lines or accepting suggestions.","settings.theme.title":"Interface theme","settings.theme.option-dark":"Dark","settings.theme.option-light":"Light","settings.theme.option-system":"System","settings.language.title":"Interface language","settings.language.option-russian":"Russian","settings.language.option-english":"English","settings.binaryDataInPlainTextDisplay.title":"Display binary data in plain text","settings.invertedDisks.title":"Inverted disks space indicators","settings.enableNetworkTable.title":"Enable network table","settings.useShowPlanToSvg.title":"Execution plan","settings.useShowPlanToSvg.description":" Show \\"Execution plan\\" button in query result widow. Opens svg with execution plan in a new window.","settings.showDomainDatabase.title":"Show domain database","settings.useClusterBalancerAsBackend.title":"Use cluster balancer as backend","settings.useClusterBalancerAsBackend.description":"By default random cluster node is used as backend. It causes saved links to become invalid after some time, when node is restarted. Using balancer as backend fixes it","settings.about.interfaceVersionInfoField.title":"Interface version"}'),Fe=(0,me.g4)("ydb-user-settings",{en:ze});var Be=n(8330);const Ue=[{value:"system",content:Fe("settings.theme.option-system")},{value:"light",content:Fe("settings.theme.option-light")},{value:"dark",content:Fe("settings.theme.option-dark")}],qe={settingKey:Le.k4,title:Fe("settings.theme.title"),type:"radio",options:Ue},$e=(me.JA.Ru,Fe("settings.language.option-russian"),me.JA.En,Fe("settings.language.option-english"),Le.jS,Fe("settings.language.title"),me.oK,{settingKey:Le.RY,title:Fe("settings.binaryDataInPlainTextDisplay.title")}),He={settingKey:Le.TJ,title:Fe("settings.invertedDisks.title")},Ve={settingKey:Le.g5,title:Fe("settings.enableNetworkTable.title")},We={settingKey:Le.lr,title:Fe("settings.useShowPlanToSvg.title"),description:Fe("settings.useShowPlanToSvg.description")},Ke={settingKey:Le.Xm,title:Fe("settings.showDomainDatabase.title")},Ge={settingKey:Le.s2,title:Fe("settings.useClusterBalancerAsBackend.title"),description:Fe("settings.useClusterBalancerAsBackend.description")},Ye={settingKey:Le.LK,title:Fe("settings.editor.autocomplete.title"),description:Fe("settings.editor.autocomplete.description")},Qe={settingKey:Le.bz,title:Fe("settings.editor.codeAssistant.title"),description:Fe("settings.editor.codeAssistant.description")},Ze={settingKey:Le.kO,title:Fe("settings.editor.queryStreaming.title"),description:Fe("settings.editor.queryStreaming.description")},Je={settingKey:Le.IO,title:Fe("settings.editor.autocomplete-on-enter.title"),description:Fe("settings.editor.autocomplete-on-enter.description")},Xe={title:Fe("settings.about.interfaceVersionInfoField.title"),type:"info",content:Be.rE},et={id:"appearanceSection",title:Fe("section.appearance"),settings:[qe,He,$e,Ke]},tt={id:"experimentsSection",title:Fe("section.experiments"),settings:[Ve,We,Ze]},nt={id:"devSettingsSection",title:Fe("section.dev-setting"),settings:[Ye,Je]},rt={id:"aboutSettingsSection",title:Fe("section.about"),settings:[Xe]},it={id:"generalPage",title:Fe("page.general"),icon:{data:Pe,height:14,width:14},sections:[et],showTitle:!1},ot={id:"experimentsPage",title:Fe("page.experiments"),icon:{data:Re},sections:[tt],showTitle:!1},at={id:"editorPage",title:Fe("page.editor"),icon:{data:De},sections:[nt]},st={id:"aboutPage",title:Fe("page.about"),icon:{data:je.A},sections:[rt],showTitle:!1};function lt({singleClusterMode:e,codeAssistantConfigured:t}){const n=e?ot:(0,Me.jM)(ot,(e=>{e.sections[0].settings.push(Ge)})),r=t?(0,Me.jM)(at,(e=>{e.sections[0].settings.push(Qe)})):at;return[it,r,n,st]}var ct=n(59109),ut=n(64689),dt=n(98167);function ft(e="unknown"){const t=()=>null;return t.displayName=`Slot(${e})`,t.__slotName=e,t}function pt(e){return"function"===typeof e&&"__slotName"in e}class ht{constructor(e){this.children=null,this.slots=void 0;const t=[];this.slots=new Map,i.Children.forEach(e,(e=>{if(n=e,i.isValidElement(n)&&pt(n.type)){const{type:t,props:n,ref:r}=e;if(this.slots.has(t))throw new Error(`Duplicate slot elements with name "${t.__slotName}" found.`);this.slots.set(t,{name:t.__slotName,props:n,ref:r,rendered:n.children})}else null!==e&&void 0!==e&&""!==e&&t.push(e);var n}));t.length>0&&(this.children=t)}get(e){if(!pt(e))throw new Error('Invalid slot component. Should be a component created using "createSlot".');return this.slots.get(e)}}var mt=n(24600),gt=n(99006);const vt=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.03 1.97a.75.75 0 0 0-1.06 1.06l.83.83A8.2 8.2 0 0 0 .5 6.876l-.26.585a1.33 1.33 0 0 0 0 1.079l.26.585a8.21 8.21 0 0 0 11.434 3.87l1.036 1.035a.75.75 0 1 0 1.06-1.06zm7.788 9.908-1.294-1.293a3 3 0 0 1-4.109-4.109L3.866 4.927A6.7 6.7 0 0 0 1.87 7.486L1.641 8l.23.515a6.71 6.71 0 0 0 8.947 3.363M6.55 7.611A1.502 1.502 0 0 0 8.389 9.45zm1.658-2.604 2.784 2.784a3 3 0 0 0-2.784-2.784m5.92 3.508a6.7 6.7 0 0 1-.915 1.496l1.065 1.066A8.2 8.2 0 0 0 15.5 9.125l.26-.585a1.33 1.33 0 0 0 0-1.08l-.26-.584A8.21 8.21 0 0 0 5.572 2.37L6.81 3.61a6.71 6.71 0 0 1 7.32 3.877l.228.514z",clipRule:"evenodd"})),yt=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.87 8.515 1.641 8l.229-.515a6.708 6.708 0 0 1 12.26 0l.228.515-.229.515a6.708 6.708 0 0 1-12.259 0M.5 6.876l-.26.585a1.33 1.33 0 0 0 0 1.079l.26.584a8.208 8.208 0 0 0 15 0l.26-.584a1.33 1.33 0 0 0 0-1.08l-.26-.584a8.208 8.208 0 0 0-15 0M9.5 8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M11 8a3 3 0 1 1-6 0 3 3 0 0 1 6 0",clipRule:"evenodd"}));var bt,wt,xt=n(67884);function _t(e){return Boolean(e&&"object"===typeof e&&"data"in e&&e.data&&"object"===typeof e.data&&"error"in e.data&&"string"===typeof e.data.error)}function Et(){return Et=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Et.apply(null,arguments)}const St=function(e){return i.createElement("svg",Et({viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),bt||(bt=i.createElement("path",{d:"M0 16C0 7.163 7.163 0 16 0s16 7.163 16 16-7.163 16-16 16S0 24.837 0 16z",fill:"#5282FF"})),wt||(wt=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 9.5c0 .828-1.343 1.5-3 1.5s-3-.672-3-1.5S19.343 8 21 8s3 .672 3 1.5zM13 19.6v2.7c0 .9 1.3 1.6 3 1.6s3-.7 3-1.6v-2.7c-.8.7-1.9 1-3 1s-2.2-.3-3-1zm5-8.6v-.4c.8.7 1.9 1 3 1s2.2-.3 3-1v2.8c0 .8-1.2 1.5-2.8 1.6l-2.475 2.871c.176.192.275.405.275.629 0 .828-1.343 1.5-3 1.5s-3-.672-3-1.5a.9.9 0 01.232-.58L10.8 15.1C9.3 15 8 14.3 8 13.5v-2.9c.8.7 1.9 1 3 1s2.2-.3 3-1v.4h4zm-.276 6.272A5.27 5.27 0 0016 17c-.265 0-.522.017-.766.05a5.994 5.994 0 00-1.134.25L12 14.9c1.1-.2 2-.8 2-1.5V12h4v1.4c0 .7.7 1.3 1.8 1.5l-2.076 2.372zM14 9.5c0 .828-1.343 1.5-3 1.5s-3-.672-3-1.5S9.343 8 11 8s3 .672 3 1.5z",fill:"#fff"})))},Ct=(0,pe.cn)("authentication");const kt=function({closable:e=!1}){var t;const n=(0,ue.W6)(),r=(0,ue.zy)(),o=(0,fe.S_)(),[a,{isLoading:s}]=c.D_.useAuthenticateMutation(void 0),{returnUrl:l,database:u}=(0,de.mA)(r),[d,p]=i.useState(""),[m,g]=i.useState(null!==(t=null===u||void 0===u?void 0:u.toString())&&void 0!==t?t:""),[v,y]=i.useState(""),[b,w]=i.useState(""),[_,S]=i.useState(""),[C,k]=i.useState(""),[O,N]=i.useState(!1),T=()=>{a({user:d,password:v,database:m}).unwrap().then((()=>{if(l){const e=decodeURIComponent(l.toString()),t=new URL(e),r=t.pathname+t.search;n.replace(r)}})).catch((e=>{(function(e){return _t(e)&&e.data.error.includes("user")})(e)&&w(e.data.error),function(e){return _t(e)&&e.data.error.includes("password")}(e)&&S(e.data.error),function(e){return _t(e)&&e.data.error.includes("database")}(e)&&k(e.data.error)}))},A=e=>{13===e.keyCode&&T()};return(0,oe.jsxs)("section",{className:Ct(),children:[(0,oe.jsxs)("form",{className:Ct("form-wrapper"),children:[(0,oe.jsxs)("div",{className:Ct("header"),children:[(0,oe.jsxs)("div",{className:Ct("logo"),children:[(0,oe.jsx)(f.I,{data:St,size:24}),"YDB"]}),(0,oe.jsx)(xt.N,{href:"https://ydb.tech/docs",target:"_blank",children:"Documentation"})]}),(0,oe.jsx)("h2",{className:Ct("title"),children:"Sign in"}),(0,oe.jsx)("div",{className:Ct("field-wrapper"),children:(0,oe.jsx)(h.k,{value:d,onUpdate:e=>{p(e),w("")},placeholder:"Username",error:b,onKeyDown:A,size:"l",autoFocus:!0})}),(0,oe.jsxs)("div",{className:Ct("field-wrapper"),children:[(0,oe.jsx)(h.k,{value:v,onUpdate:e=>{y(e),S("")},type:O?"text":"password",placeholder:"Password",error:_,onKeyDown:A,size:"l"}),(0,oe.jsx)(E.$,{onClick:()=>{N((e=>!e))},size:"l",className:Ct("show-password-button"),children:(0,oe.jsx)(f.I,{data:O?vt:yt,size:16})})]}),o&&(0,oe.jsx)("div",{className:Ct("field-wrapper"),children:(0,oe.jsx)(h.k,{value:m,onUpdate:e=>{g(e),k("")},placeholder:"Database",error:C,onKeyDown:A,size:"l"})}),(0,oe.jsx)(E.$,{view:"action",onClick:T,width:"max",size:"l",disabled:Boolean(!d||b||_),loading:s,className:Ct("button-sign-in"),children:"Sign in"})]}),e&&n.length>1&&(0,oe.jsx)(E.$,{onClick:()=>{n.go(-1)},className:Ct("close"),children:(0,oe.jsx)(f.I,{data:x.A,size:24})})]})};var Ot=n(87842),Nt=n(49917),Tt=n(112),At=n(69220);const It=(0,At.om)("divider"),Pt=i.forwardRef((function(e,t){const{orientation:n="horizontal",className:r,style:o,qa:a,children:s,align:l="start"}=e;return i.createElement("div",{className:It({orientation:n,align:l},r),ref:t,style:o,"data-qa":a,role:"separator","aria-orientation":"vertical"===n?"vertical":void 0},s)}));var Rt=n(61758),Dt=n.n(Rt);const jt=(0,At.om)("breadcrumbs");function Mt(e){return i.createElement("button",Object.assign({},e,{type:"button",className:jt("switcher",{more:!0})}))}const Lt=(0,At.om)("breadcrumbs");const zt=i.memo((function({item:e,isCurrent:t,isPrevCurrent:n,renderItemContent:r,renderItem:o}){const a=r?r(e,t,n):e.text;if(o)return o({item:e,children:a,isCurrent:t,isPrevCurrent:n});const s=e.title||e.text;return n||!t?void 0!==e.href?i.createElement(xt.N,{key:e.text,view:"secondary",href:e.href,title:s,onClick:e.action,className:Lt("item",{"prev-current":n})},a):i.createElement(Mt,{key:e.text,title:s,onClick:e.action},a):i.createElement("div",{title:s,className:Lt("item",{current:!0})},a)}));zt.displayName="Breadcrumbs.Item";var Ft=n(40569);const Bt=JSON.parse('{"label_more":"Show more"}'),Ut=JSON.parse('{"label_more":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435"}'),qt=(0,w.N)({en:Bt,ru:Ut},"Breadcrumbs"),$t=(0,At.om)("breadcrumbs");function Ht({popupStyle:e,popupPlacement:t,items:n}){return i.createElement(Ft.r,{items:n,popupProps:{className:$t("popup",{staircase:"staircase"===e}),placement:t},renderSwitcher:({onClick:e})=>i.createElement(Mt,{title:qt("label_more"),onClick:e},"...")})}Ht.displayName="Breadcrumbs.More";const Vt=(0,At.om)("breadcrumbs");function Wt({renderItemDivider:e}){return i.createElement("div",{"aria-hidden":!0,className:Vt("divider")},e?e():"/")}Wt.displayName="Breadcrumbs.Separator";const Kt=(0,At.om)("breadcrumbs");var Gt,Yt;!function(e){e[e.One=1]="One",e[e.Two=2]="Two"}(Gt||(Gt={})),function(e){e[e.Zero=0]="Zero",e[e.One=1]="One"}(Yt||(Yt={}));class Qt extends i.Component{static prepareInitialState(e){const{firstDisplayedItemsCount:t}=e;return{calculated:!1,rootItem:t?e.items[0]:void 0,visibleItems:e.items.slice(t),hiddenItems:[],allItems:e.items}}static getDerivedStateFromProps(e,t){return t.allItems!==e.items?Qt.prepareInitialState(e):null}constructor(e){super(e),this.handleResize=()=>{const e=Qt.prepareInitialState(this.props);this.setState(e,this.recalculate)},this.handleResize=Dt()(this.handleResize,200),"undefined"!==typeof window&&(this.resizeObserver=new ResizeObserver(this.handleResize)),this.container=i.createRef(),this.state=Qt.prepareInitialState(e)}componentDidMount(){var e;this.recalculate(),null===(e=this.resizeObserver)||void 0===e||e.observe(this.container.current)}componentDidUpdate(e){e.items!==this.state.allItems&&this.recalculate()}componentWillUnmount(){var e;null===(e=this.resizeObserver)||void 0===e||e.disconnect()}render(){const{className:e,qa:t}=this.props,{calculated:n}=this.state;return i.createElement("div",{className:Kt({calculated:n?"yes":"no"},e),"data-qa":t},i.createElement("div",{className:Kt("inner"),ref:this.container},this.renderRootItem(),this.renderMoreItem(),this.renderVisibleItems()))}renderItem(e,t,n,r){return i.createElement(zt,{item:e,isCurrent:t,isPrevCurrent:n,renderItemContent:r||this.props.renderItemContent,renderItem:this.props.renderItem})}renderItemDivider(){const{renderItemDivider:e}=this.props;return i.createElement(Wt,{renderItemDivider:e})}renderRootItem(){const{renderRootContent:e}=this.props,{rootItem:t,visibleItems:n}=this.state,r=0===n.length;return t?this.renderItem(t,r,!1,e):null}renderVisibleItems(){const{visibleItems:e}=this.state;return e.map(((e,t,n)=>{const r=t===n.length-1,o=t===n.length-2;return i.createElement(i.Fragment,{key:t},this.renderItemDivider(),this.renderItem(e,r,o))}))}renderMoreItem(){const{hiddenItems:e}=this.state;if(0===e.length)return null;const{popupStyle:t,popupPlacement:n,renderItemDivider:r}=this.props;return i.createElement(i.Fragment,null,i.createElement(Wt,{renderItemDivider:r}),i.createElement(Ht,{items:e,popupPlacement:n,popupStyle:t}))}recalculate(){var e;const{items:t,lastDisplayedItemsCount:n,firstDisplayedItemsCount:r}=this.props;let i=(null===(e=this.container.current)||void 0===e?void 0:e.offsetWidth)||0;if(this.container.current&&i>0){i+=4;const e=Array.from(this.container.current.querySelectorAll(`.${Kt("divider")}`)),o=[...Array.from(this.container.current.querySelectorAll(`.${Kt("switcher")}`)),...Array.from(this.container.current.querySelectorAll(`.${Kt("item")}`))],a=o.map(((e,t)=>e.scrollWidth+(t===o.length-1?4:8))),s=e.map((e=>e.offsetWidth));let l=a.reduce(((e,t,r,i)=>{const o=i.length-1===r,a=n===Gt.Two&&i.length-2===r;return o||a?e+Math.min(t,200):e+t}),0)+s.reduce(((e,t)=>e+t),0),c=1;for(;l>i&&c<o.length-n;)1===c&&(l+=34+s[c]),l-=a[c]+s[c],c++;this.setState({calculated:!0,visibleItems:t.slice(c-(1-r)),hiddenItems:t.slice(r,c-(1-r))})}}}Qt.defaultProps={popupPlacement:["bottom","top"]};var Zt=n(1064),Jt=n(44294),Xt=n(67157),en=n(31684),tn=n(12888);const nn=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11 2.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3M14 4a3 3 0 1 0-5.895.79L6.15 5.908a3 3 0 1 0 0 4.185l1.955 1.117A3.003 3.003 0 0 0 11 15a3 3 0 1 0-2.15-5.092L6.895 8.79a3 3 0 0 0 0-1.58L8.85 6.092A3 3 0 0 0 14 4m-3 6.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3M2.5 8a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0",clipRule:"evenodd"})),rn=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.615 4.888c.814-.375.885-.714.885-.888s-.071-.513-.885-.888S9.538 2.5 8 2.5s-2.799.237-3.615.612C3.57 3.487 3.5 3.826 3.5 4s.071.513.885.888S6.462 5.5 8 5.5s2.799-.237 3.615-.612m.885 1.235C11.4 6.708 9.792 7 8 7s-3.4-.292-4.5-.877V8c0 .174.071.513.885.888S6.462 9.5 8 9.5s2.799-.237 3.615-.612c.814-.375.885-.714.885-.888zm0 4C11.4 10.708 9.792 11 8 11s-3.4-.293-4.5-.877V12c0 .174.071.513.885.887.816.377 2.077.613 3.615.613s2.799-.236 3.615-.613c.814-.374.885-.713.885-.887zM14 4c0-2-2.686-3-6-3S2 2 2 4v8c0 2 2.686 3 6 3s6-1 6-3z",clipRule:"evenodd"})),on=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 8.5a1.5 1.5 0 0 1 1.5 1.5v1a1.5 1.5 0 0 1-1.5 1.5H4A1.5 1.5 0 0 1 2.5 11v-1A1.5 1.5 0 0 1 4 8.5zm.89-1.366L11.488 4.33a1.5 1.5 0 0 0-1.342-.829H5.854a1.5 1.5 0 0 0-1.342.83L3.11 7.133A3 3 0 0 1 4 7h8a3 3 0 0 1 .89.134M15 9.18V11a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V9.18a5 5 0 0 1 .528-2.236L3.17 3.658A3 3 0 0 1 5.854 2h4.292a3 3 0 0 1 2.683 1.658l1.643 3.286A5 5 0 0 1 15 9.18m-6 .57a.75.75 0 0 0 0 1.5h2.5a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"})),an=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 1.25a.75.75 0 0 0-1.5 0V2.5a3 3 0 0 0-3 3H1.25a.75.75 0 0 0 0 1.5H2.5v2H1.25a.75.75 0 0 0 0 1.5H2.5a3 3 0 0 0 3 3v1.25a.75.75 0 0 0 1.5 0V13.5h2v1.25a.75.75 0 0 0 1.5 0V13.5a3 3 0 0 0 3-3h1.25a.75.75 0 0 0 0-1.5H13.5V7h1.25a.75.75 0 0 0 0-1.5H13.5a3 3 0 0 0-3-3V1.25a.75.75 0 0 0-1.5 0V2.5H7zM10.5 4h-5A1.5 1.5 0 0 0 4 5.5v5A1.5 1.5 0 0 0 5.5 12h5a1.5 1.5 0 0 0 1.5-1.5v-5A1.5 1.5 0 0 0 10.5 4m0 2.25a.75.75 0 0 0-.75-.75h-3.5a.75.75 0 0 0-.75.75v3.5a.75.75 0 0 0 .75.75h3.5a.75.75 0 0 0 .75-.75zM7 7h2v2H7z",clipRule:"evenodd"})),sn=(0,pe.cn)("tablet-icon"),ln=({text:e,className:t})=>(0,oe.jsx)("div",{className:sn(null,t),children:(0,oe.jsx)("div",{className:sn("type"),children:e||"T"})});var cn=n(52531),un=n(29819),dn=n(54309);const fn=JSON.parse('{"breadcrumbs.tenant":"Tenant","breadcrumbs.node":"Node","breadcrumbs.pDisk":"PDisk","breadcrumbs.vDisk":"VDisk","breadcrumbs.tablet":"Tablet","breadcrumbs.tablets":"Tablets","breadcrumbs.storageGroup":"Storage Group","connect":"Connect"}'),pn=(0,me.g4)("ydb-header",{en:fn}),hn=(e,t={})=>{const{clusterName:n,clusterTab:r}=e;return[{text:n||Le.QM,link:(0,Ot.a)(r,t),icon:(0,oe.jsx)(nn,{})}]},mn=(e,t={})=>{const{tenantName:n}=e,r=hn(e,t),i=n?(e=>e.startsWith("/")?e.slice(1):e)(n):pn("breadcrumbs.tenant"),o={text:i,link:n?(0,dn.YL)({...t,database:n}):void 0,icon:(0,oe.jsx)(rn,{})};return r.push(o),r},gn=(e,t={})=>{const{nodeId:n,nodeRole:r,nodeActiveTab:i,tenantName:o}=e,a=(s="tablets"===i?"tablets":"nodes",{[cn.Dt]:cn.Dg.diagnostics,[dn.vh.diagnosticsTab]:cn.iJ[s]});var s;const l=o?mn(e,{...t,...a}):hn(e,t);let c=pn("breadcrumbs.node");n&&(c+=` ${n}`);const u={text:c,link:n?(0,un.vI)(n,{database:o,...t},i):void 0,icon:vn(r)};return l.push(u),l};function vn(e){switch(e){case"Storage":return(0,oe.jsx)(on,{});case"Compute":return(0,oe.jsx)(an,{});default:return}}const yn=(e,t={})=>{const{nodeId:n,pDiskId:r,nodeRole:i}=e,o=gn({...e,nodeRole:null!==i&&void 0!==i?i:"Storage"});let a=pn("breadcrumbs.pDisk");r&&(a+=` ${r}`);const s={text:a,link:r&&n?(0,de.Ck)(r,n,t):void 0};return o.push(s),o},bn={cluster:hn,node:gn,pDisk:yn,tablet:(e,t={})=>{const{tabletId:n,tabletType:r,tenantName:i}=e,o=i?mn(e,t):hn(e,t),a={text:n||pn("breadcrumbs.tablet"),icon:(0,oe.jsx)(ln,{text:(0,Le.bk)(r)})};return o.push(a),o},tenant:mn,vDisk:(e,t={})=>{const{vDiskSlotId:n}=e,r=yn(e,t);let i=pn("breadcrumbs.vDisk");n&&(i+=` ${n}`);const o={text:i};return r.push(o),r},storageGroup:(e,t={})=>{const{groupId:n}=e,r=hn(e,t);let i=pn("breadcrumbs.storageGroup");n&&(i+=` ${n}`);const o={text:i};return r.push(o),r}},wn=(0,pe.cn)("header");const xn=function({mainPage:e}){const{page:t,pageBreadcrumbsOptions:n}=(0,u.N4)((e=>e.header)),r=(0,tn.X)(),o=(0,Xt.Zd)(),a=(0,he.J)(),s="/tenant"===(0,ue.zy)().pathname,l=o.title||o.name,c=i.useMemo((()=>{const r=[];let i=n;e&&r.push(e),l&&(i={...i,clusterName:l});const o=((e,t,n=[],r={})=>{if(!e)return n;const i=(0,bn[e])(t,r);return[...n,...i]})(t,i,r);return o.map((e=>({...e,action:()=>{}})))}),[l,e,t,n]),d=()=>{const e=[];return s&&a&&e.push((0,oe.jsxs)(E.$,{view:"flat",onClick:()=>(0,Zt.S)({database:a}),children:[(0,oe.jsx)(f.I,{data:Nt.A}),pn("connect")]})),r&&e.push((0,oe.jsxs)(E.$,{view:"flat",href:(0,en.Un)(),target:"_blank",children:[Le.T5,(0,oe.jsx)(f.I,{data:Tt.A})]})),e.length?(0,oe.jsx)(g.s,{direction:"row",gap:1,children:e.map(((t,n)=>(0,oe.jsxs)(i.Fragment,{children:[t,n===e.length-1?null:(0,oe.jsx)(Pt,{orientation:"vertical"})]},n)))}):null};return(0,oe.jsxs)("header",{className:wn(),children:[(0,oe.jsx)(Qt,{items:c,lastDisplayedItemsCount:1,firstDisplayedItemsCount:1,className:wn("breadcrumbs"),renderItem:({item:e,isCurrent:t})=>{const{icon:n,text:r,link:i}=e;return(0,oe.jsxs)(Jt.E,{className:wn("breadcrumbs-item",{active:t,link:!t}),to:t?void 0:i,children:[n?(0,oe.jsx)("span",{className:wn("breadcrumbs-icon"),children:n}):null,(0,oe.jsx)("span",{children:r})]})}}),d()]})},_n=ft("clusters"),En=ft("cluster"),Sn=ft("tenant"),Cn=ft("node"),kn=ft("pDisk"),On=ft("vDisk"),Nn=ft("storageGroup"),Tn=ft("tablet"),An=ft("routes"),In=ft("redirect"),Pn=JSON.parse('{"pages.clusters":"All clusters"}'),Rn=JSON.parse('{"pages.clusters":"\u0412\u0441\u0435 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u044b"}'),Dn=(0,me.g4)("ydb-app-content",{ru:Rn,en:Pn}),jn=(0,pe.cn)("app"),Mn=[{path:de.Ay.cluster,slot:En,component:(0,gt._)((()=>Promise.all([n.e(9802),n.e(4130),n.e(4872),n.e(856),n.e(9796),n.e(1329),n.e(9300),n.e(5652)]).then(n.bind(n,5252))),"Cluster"),wrapper:Bn},{path:de.Ay.tenant,slot:Sn,component:(0,gt._)((()=>Promise.all([n.e(9802),n.e(4130),n.e(4872),n.e(9172),n.e(6820),n.e(2031),n.e(9796),n.e(1329),n.e(9300),n.e(431)]).then(n.bind(n,64851))),"Tenant"),wrapper:Bn},{path:de.Ay.node,slot:Cn,component:(0,gt._)((()=>Promise.all([n.e(9802),n.e(4130),n.e(4872),n.e(9796),n.e(1329),n.e(8393)]).then(n.bind(n,13758))),"Node"),wrapper:Bn},{path:de.Ay.pDisk,slot:kn,component:(0,gt._)((()=>Promise.all([n.e(9802),n.e(4130),n.e(4872),n.e(9796),n.e(684)]).then(n.bind(n,69134))),"PDiskPage"),wrapper:Bn},{path:de.Ay.vDisk,slot:On,component:(0,gt._)((()=>Promise.all([n.e(9802),n.e(4130),n.e(4872),n.e(9796),n.e(6030)]).then(n.bind(n,80208))),"VDiskPage"),wrapper:Bn},{path:de.Ay.storageGroup,slot:Nn,component:(0,gt._)((()=>Promise.all([n.e(9802),n.e(4130),n.e(4872),n.e(9796),n.e(3812)]).then(n.bind(n,75510))),"StorageGroupPage"),wrapper:Bn},{path:de.Ay.tablet,slot:Tn,component:(0,gt._)((()=>Promise.all([n.e(9802),n.e(9172),n.e(9393)]).then(n.bind(n,81342))),"Tablet"),wrapper:Bn}],Ln=(0,gt._)((()=>Promise.all([n.e(9802),n.e(4130),n.e(3779)]).then(n.bind(n,48288))),"Clusters");function zn(e,t){return(0,oe.jsx)(ue.qh,{path:t.path,exact:t.exact,render:n=>{var r;const o=e.get(t.slot);let a;if(o)a="function"===typeof o.rendered?o.rendered({component:t.component,...n}):o.rendered;else{const e=t.component;a=(0,oe.jsx)(e,{...n})}const s=null!==(r=t.wrapper)&&void 0!==r?r:i.Fragment;return(0,oe.jsx)("main",{className:jn("main"),children:(0,oe.jsx)(s,{children:a})})}},t.path)}function Fn(e){var t;const{singleClusterMode:n}=e,r=function(e){const{children:t}=e;return i.useMemo((()=>new ht(t)),[t])}(e),o=r.get(An),a=r.get(In),s=null!==(t=null===a||void 0===a?void 0:a.props)&&void 0!==t?t:n?{to:(0,Ot.a)()}:{to:de.Ay.clusters};let l;return n||(l={text:Dn("pages.clusters"),link:de.Ay.clusters}),(0,oe.jsxs)(ue.dO,{children:[n?null:zn(r,{path:de.Ay.clusters,exact:!0,component:Ln,slot:_n}),null===o||void 0===o?void 0:o.rendered,(0,oe.jsxs)(ue.qh,{children:[(0,oe.jsx)(xn,{mainPage:l}),(0,oe.jsxs)(ue.dO,{children:[Mn.map((e=>zn(r,e))),(0,oe.jsx)(ue.qh,{path:s.from||s.path,exact:s.exact,strict:s.strict,render:()=>(0,oe.jsx)(ue.rd,{to:s.to,push:s.push})})]})]},"single-cluster")]})}function Bn({children:e}){return(0,oe.jsx)($n,{children:(0,oe.jsxs)(Un,{children:[(0,oe.jsx)(qn,{}),(0,oe.jsx)($n,{children:e})]})})}function Un({children:e}){const t=(0,he.J)(),{isLoading:n,error:r}=c.D_.useWhoamiQuery({database:t});return(0,oe.jsx)(dt.r,{loading:n,size:"l",children:(0,oe.jsx)(ut.A,{error:r,children:e})})}function qn(){return mt.m.useGetNodesListQuery(void 0),null}function $n({children:e}){(0,fe.e5)();const t=(0,fe.Pm)();return(0,oe.jsx)(dt.r,{loading:!t,size:"l",children:e})}const Hn=(0,a.Ng)((function(e){return{isAuthenticated:e.authentication.isAuthenticated,singleClusterMode:e.singleClusterMode}}))((function(e){const{singleClusterMode:t,isAuthenticated:n}=e,r=(0,fe.li)();return(0,oe.jsxs)(ue.dO,{children:[!r&&(0,oe.jsx)(ue.qh,{path:de.Ay.auth,children:(0,oe.jsx)(kt,{closable:!0})}),(0,oe.jsx)(ue.qh,{children:(0,oe.jsx)("div",{className:jn({embedded:t}),children:n?e.children:r?(0,oe.jsx)(ct.O,{}):(0,oe.jsx)(kt,{})})})]})}));var Vn=n(16332),Wn=n(69118),Kn=n(67087);const Gn=({children:e})=>{(0,ue.zy)();const t=(0,ue.W6)();return e({replace(e){t.replace(e.search||"?",e.state)},push(e){t.push(e.search||"?",e.state)},get location(){return t.location}})},Yn=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10 4.5a2 2 0 1 1-4 0 2 2 0 0 1 4 0m1.5 0a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0m-9 8c0-.204.22-.809 1.32-1.459C4.838 10.44 6.32 10 8 10s3.162.44 4.18 1.041c1.1.65 1.32 1.255 1.32 1.459a1 1 0 0 1-1 1h-9a1 1 0 0 1-1-1m5.5-4c-3.85 0-7 2-7 4A2.5 2.5 0 0 0 3.5 15h9a2.5 2.5 0 0 0 2.5-2.5c0-2-3.15-4-7-4",clipRule:"evenodd"}));var Qn=n(73633),Zn=n(27738),Jn=n(98392),Xn=n(18650),er=n(40091);const tr=i.createContext(void 0);tr.displayName="AsideHeaderInnerContext";const nr=tr.Provider,rr=()=>{const e=i.useContext(tr);if(void 0===e)throw new Error("AsideHeaderInnerContext is not initialized.\n Please check if you wrapped your component with AsideHeaderInnerContext.Provider");return e},ir=i.createContext({compact:!1,size:0});ir.displayName="AsideHeaderContext";const or=ir.Provider,ar=()=>{const e=i.useContext(ir);if(void 0===e)throw new Error("AsideHeaderContext is not initialized.\n Please check if you wrapped your component with AsideHeader\n Context.Provider");return e};var sr=n(7450);y('.gn-composite-bar-highlighted-item{--_--background-color:var(--g-color-base-background);--_--item-icon-background-size:38px;--_--item-background-color-hover:var(--g-color-base-selection-hover);--_--item-selected-background-color-active:var(--g-color-base-selection);display:flex;justify-content:center;position:absolute;z-index:10000}.gn-composite-bar-highlighted-item__icon{align-items:center;background-color:var(--gn-aside-header-background-color,var(--_--background-color));border-radius:7px;box-shadow:0 8px 20px 0 var(--g-color-sfx-shadow);cursor:pointer;display:flex;height:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));justify-content:center;overflow:hidden;position:relative;transform:translateY(1px);width:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size))}.gn-composite-bar-highlighted-item__icon:before{background-color:var(--gn-aside-header-item-current-background-color,var(--_--item-selected-background-color-active));content:"";height:100%;position:absolute;width:100%;z-index:-1}.gn-composite-bar-highlighted-item__icon:hover:before{background-color:var(--gn-aside-header-item-background-color-hover,var(--_--item-background-color-hover))}');const lr=(0,v.b)("composite-bar-highlighted-item"),cr=({iconRef:e,iconNode:t,onClick:n,onClickCapture:r})=>{const{openModalSubscriber:o}=rr(),[{top:a,left:s,width:l,height:c},u]=(0,i.useState)({top:0,left:0,width:0,height:0}),[d,f]=(0,i.useState)(!1),p=(0,i.useMemo)((()=>(0,b.d)((()=>{var t;const{top:n=0,left:r=0,width:i=0,height:o=0}=(null===(t=null===e||void 0===e?void 0:e.current)||void 0===t?void 0:t.getBoundingClientRect())||{};u({top:n+window.scrollY,left:r+window.scrollX,width:i,height:o})}),200,{leading:!0})),[e]),h=(0,i.useCallback)((()=>p()),[p]);return(0,i.useEffect)((()=>{if(d)return h(),window.addEventListener("resize",h),()=>window.removeEventListener("resize",h)}),[h,d]),null===o||void 0===o||o((e=>{f(e)})),t&&d?i.createElement(Jn.Z,null,i.createElement("div",{className:lr(),style:{left:s,top:a,width:l,height:c},onClick:n,onClickCapture:r,"data-toast":!0},i.createElement("div",{className:lr("icon")},t))):null};cr.displayName="HighlightedItem";const ur="collapse-item-id",dr=["right-start","right-end","right"];function fr(e){if(!mr(e))return 40;switch(e.type){case"action":return 50;case"divider":return 15;default:return 40}}function pr(e){return e.reduce(((e,t)=>e+fr(t)),0)}function hr(e){const t=e.findIndex((({current:e})=>Boolean(e)));return-1===t?void 0:t}function mr(e){return void 0!==(null===e||void 0===e?void 0:e.id)}y('.gn-composite-bar-item{--gn-composite-bar-item-action-size:36px;--_--horizontal-divider-line-color:var(--g-color-line-generic);--_--item-background-color-hover:var(--g-color-base-simple-hover);--_--item-general-icon-color:var(--g-color-text-primary);--_--item-icon-color:var(--g-color-text-misc);--_--item-text-color:var(--g-color-text-primary);--_--item-collapsed-radius:7px;--_--item-selected-text-color:var(--g-color-text-primary);--_--item-selected-background-color-active:var(--g-color-base-selection);align-items:center;cursor:pointer;display:flex;height:100%;min-width:0;width:100%}.gn-composite-bar-item__icon{color:var(--gn-aside-header-item-icon-color,var(--_--item-icon-color))}.gn-composite-bar-item_current .gn-composite-bar-item__icon{color:var(--gn-aside-header-item-current-icon-color,var(--gn-aside-header-item-icon-color,var(--_--item-icon-color)))}.gn-composite-bar-highlighted-item .gn-composite-bar-item__icon,.gn-composite-bar_subheader .gn-composite-bar-item__icon,.gn-footer-item .gn-composite-bar-item__icon{color:var(--gn-aside-header-general-item-icon-color,var(--_--item-general-icon-color))}.gn-composite-bar-highlighted-item.gn-composite-bar-item_current .gn-composite-bar-item__icon,.gn-composite-bar_subheader .gn-composite-bar-item_current .gn-composite-bar-item__icon,.gn-footer-item.gn-composite-bar-item_current .gn-composite-bar-item__icon{color:var(--gn-aside-header-item-current-icon-color,var(--gn-aside-header-general-item-icon-color,var(--_--item-general-icon-color)))}.gn-composite-bar-item__icon-tooltip .g-action-tooltip__description{color:var(--g-color-text-light-primary);margin-block-start:0}.gn-composite-bar-item__icon-place{align-items:center;display:flex;flex-shrink:0;height:100%;justify-content:center;width:var(--gn-aside-header-min-width)}.gn-composite-bar-item__title{display:flex;overflow:hidden}.gn-composite-bar-item__title-text{color:var(--gn-aside-header-item-text-color,var(--_--item-text-color));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gn-composite-bar-item_current .gn-composite-bar-item__title-text{color:var(--gn-aside-header-item-current-text-color,var(--_--item-selected-text-color))}.gn-composite-bar-item__title-adornment{margin:0 10px}.gn-composite-bar-item__collapse-item{--_--item-icon-color:var(--g-color-text-misc);align-items:center;cursor:pointer;display:flex;height:100%;padding:0 16px;width:100%}.gn-composite-bar-item__collapse-item-icon{color:var(--gn-aside-header-item-icon-color,var(--_--item-icon-color));margin-right:10px}.gn-composite-bar-item__collapse-item .gn-composite-bar-item__title-adornment{margin-right:0}.gn-composite-bar-item__menu-divider{border-top:1px solid var(--gn-aside-header-divider-horizontal-color,var(--_--horizontal-divider-line-color));cursor:default;margin:0 8px;width:100%}.gn-composite-bar-item__collapse-items-popup-content{padding:4px 0}.gn-composite-bar-item__link{align-items:center;display:flex;height:100%;width:100%}.gn-composite-bar-item__link,.gn-composite-bar-item__link:active,.gn-composite-bar-item__link:focus,.gn-composite-bar-item__link:hover,.gn-composite-bar-item__link:visited{color:inherit;outline:none;text-decoration:none}.gn-composite-bar-item__btn-icon{align-items:center;display:flex;height:100%;justify-content:center;width:100%}.gn-composite-bar-item_type_action{background:var(--g-color-base-float);border-radius:var(--gn-composite-bar-item-action-size);box-shadow:0 0 0 1px rgba(0,0,0,.03),0 5px 6px rgba(0,0,0,.12);height:var(--gn-composite-bar-item-action-size);justify-content:center;margin:0 10px 8px;transition:transform .1s ease-out,background-color .15s linear}.gn-composite-bar-item_type_action:focus-visible{box-shadow:0 0 0 2px var(--g-color-line-misc)}.gn-composite-bar-item_type_action:hover{background-color:var(--g-color-base-float-hover)}.gn-composite-bar-item_type_action:active{box-shadow:0 1px 2px var(--g-color-sfx-shadow);transform:scale(.96);transition:none}.gn-composite-bar-item_type_action .gn-composite-bar-item__icon-place{width:var(--gn-composite-bar-item-action-size)}.gn-composite-bar-item_type_action .gn-composite-bar-item__title{margin-right:16px}.gn-composite-bar-item__icon-tooltip_item-type_action{margin-left:10px}.gn-composite-bar-item:not(.gn-composite-bar-item_compact).gn-composite-bar-item_current.gn-composite-bar-item_type_regular{background-color:var(--gn-aside-header-item-current-background-color,var(--_--item-selected-background-color-active));border-radius:var(--gn-aside-header-item-expanded-radius)}.gn-composite-bar-item:not(.gn-composite-bar-item_compact):hover.gn-composite-bar-item_type_regular{background-color:var(--gn-aside-header-item-current-background-color-hover,var(--gn-aside-header-item-current-background-color,var(--_--item-selected-background-color-active)));border-radius:var(--gn-aside-header-item-expanded-radius)}.gn-composite-bar-item:not(.gn-composite-bar-item_compact):not(.gn-composite-bar-item_current):hover.gn-composite-bar-item_type_regular{background-color:var(--gn-aside-header-item-background-color-hover,var(--_--item-background-color-hover));border-radius:var(--gn-aside-header-item-expanded-radius)}.gn-composite-bar-item_compact.gn-composite-bar-item_type_action{width:var(--gn-composite-bar-item-action-size)}.gn-composite-bar-item_compact.gn-composite-bar-item_type_action .gn-composite-bar-item__title{margin:0}.gn-composite-bar-item_compact.gn-composite-bar-item_current.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon{background-color:transparent;position:relative}.gn-composite-bar-item_compact.gn-composite-bar-item_current.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon:before{background-color:var(--gn-aside-header-item-current-background-color,var(--_--item-selected-background-color-active));border-radius:var(--gn-aside-header-item-collapsed-radius,var(--_--item-collapsed-radius));content:"";height:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));left:50%;margin-left:-19px;margin-top:-19px;position:absolute;top:50%;width:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));z-index:-1}.gn-composite-bar-item_compact:hover.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon{background-color:transparent;position:relative}.gn-composite-bar-item_compact:hover.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon:before{background-color:var(--gn-aside-header-item-current-background-color-hover,var(--gn-aside-header-item-current-background-color,var(--_--item-selected-background-color-active)));border-radius:var(--gn-aside-header-item-collapsed-radius,var(--_--item-collapsed-radius));content:"";height:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));left:50%;margin-left:-19px;margin-top:-19px;position:absolute;top:50%;width:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));z-index:-1}.gn-composite-bar-item_compact:not(.gn-composite-bar-item_current):hover.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon{background-color:transparent;position:relative}.gn-composite-bar-item_compact:not(.gn-composite-bar-item_current):hover.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon:before{background-color:var(--gn-aside-header-item-background-color-hover,var(--_--item-background-color-hover));border-radius:var(--gn-aside-header-item-collapsed-radius,var(--_--item-collapsed-radius));content:"";height:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));left:50%;margin-left:-19px;margin-top:-19px;position:absolute;top:50%;width:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));z-index:-1}');const gr=(0,v.b)("composite-bar-item");function vr(e){let t=i.createElement("div",{className:gr("title-text")},e.title);return e.rightAdornment&&(t=i.createElement(i.Fragment,null,t,i.createElement("div",{className:gr("title-adornment")},e.rightAdornment))),t}const yr=["right-end"],br=[-20,8],wr=e=>{const{item:t,className:n,collapseItems:r,onMouseLeave:o,onMouseEnter:a,enableTooltip:s=!0,popupVisible:l=!1,popupAnchor:c,popupPlacement:u=yr,popupOffset:d=br,popupKeepMounted:p,popupContentClassName:h,renderPopupContent:m,onClosePopup:g,onItemClick:v,onItemClickCapture:y,onCollapseItemClick:b,bringForward:w}=e,{compact:x}=ar(),[_,E]=i.useState(!1),S=i.useRef(null),C=c||S,k=i.useRef(null),O=t.type||"regular",N=t.current||!1,T=t.tooltipText||t.title,A=t.icon,I=t.iconSize||18,P=t.iconQa,R=t.id===ur,D=i.useMemo((()=>[{name:"compact",enabled:!0,options:{compact:x},phase:"main",fn(){}}]),[x]),j=i.useCallback((e=>{var t;e instanceof MouseEvent&&e.target&&(null===(t=S.current)||void 0===t?void 0:t.contains(e.target))||null===g||void 0===g||g()}),[g]);if("divider"===t.type)return i.createElement("div",{className:gr("menu-divider")});const M=e=>x?i.createElement(Xn.m,{title:"",description:T,disabled:!s||R&&_||l,placement:"right",className:gr("icon-tooltip",{"item-type":O})},i.createElement("div",{onMouseEnter:()=>null===a||void 0===a?void 0:a(),onMouseLeave:()=>null===o||void 0===o?void 0:o(),className:gr("btn-icon")},e)):e,L=({icon:e,title:r})=>{const s=i.createElement(i.Fragment,null,i.createElement("div",{className:gr({type:O,current:N,compact:x},n),ref:S,"data-qa":t.qa,onClick:e=>{R?(E(!_),null===b||void 0===b||b()):null===v||void 0===v||v(t,!1,e)},onClickCapture:y,onMouseEnter:()=>{x||null===a||void 0===a||a()},onMouseLeave:()=>{x||null===o||void 0===o||o()}},i.createElement("div",{className:gr("icon-place"),ref:k},M(e)),i.createElement("div",{className:gr("title"),title:"string"===typeof t.title?t.title:void 0},r)),m&&Boolean(null===C||void 0===C?void 0:C.current)&&i.createElement(_e.z,{contentClassName:gr("popup",h),open:l,keepMounted:p,placement:u,offset:d,anchorRef:C,onClose:j,modifiers:D},m()));return t.link?i.createElement("a",{href:t.link,className:gr("link")},s):s},z=A?i.createElement(f.I,{qa:P,data:A,size:I,className:gr("icon")}):null,F={icon:z,title:vr(t)};let B,U=null;const q={compact:Boolean(x),collapsed:!1,item:t,ref:S};return"function"===typeof t.itemWrapper?(B=t.itemWrapper(F,L,q),U=w&&t.itemWrapper(F,(({icon:e})=>M(e)),q)):(B=L(F),U=w&&M(z)),i.createElement(i.Fragment,null,w&&i.createElement(cr,{iconNode:U,iconRef:k,onClick:e=>null===v||void 0===v?void 0:v(t,!1,e),onClickCapture:y}),B,_&&R&&(null===r||void 0===r?void 0:r.length)&&Boolean(null===C||void 0===C?void 0:C.current)&&i.createElement(xr,Object.assign({},e,{anchorRef:S,onClose:()=>E(!1)})))};function xr({onItemClick:e,collapseItems:t,anchorRef:n,onClose:r}){const{compact:o}=ar();return(null===t||void 0===t?void 0:t.length)?i.createElement(_e.z,{placement:dr,open:!0,anchorRef:n,onClose:r},i.createElement("div",{className:gr("collapse-items-popup-content")},i.createElement(er.B,{itemClassName:gr("root-collapse-item"),items:t,selectedItemIndex:hr(t),itemHeight:28,itemsHeight:28*t.length,virtualized:!1,filterable:!1,sortable:!1,onItemClick:r,renderItem:t=>{const r=({title:n,icon:r})=>{const o=i.createElement("div",{className:gr("collapse-item"),onClick:n=>{null===e||void 0===e||e(t,!0,n)}},r,n);return t.link?i.createElement("a",{href:t.link,className:gr("link")},o):o},a={title:vr(t),icon:t.icon&&i.createElement(f.I,{data:t.icon,size:14,className:gr("collapse-item-icon")})},s={compact:Boolean(o),collapsed:!0,item:t,ref:n};return"function"===typeof t.itemWrapper?t.itemWrapper(a,r,s):r(a)}}))):null}wr.displayName="Item";n(82435);y(".gn-footer-item{height:40px;width:100%}");const _r=(0,v.b)("footer-item"),Er=e=>{var{item:t}=e,n=d(e,["item"]);return i.createElement(wr,Object.assign({},n,{item:Object.assign({iconSize:18},t),className:_r({compact:n.compact}),onItemClick:t.onItemClick,onItemClickCapture:t.onItemClickCapture}))},Sr=i.memo((({renderContent:e,size:t})=>i.createElement(i.Fragment,null,e({size:t}))));Sr.displayName="RenderContent";const Cr=({size:e,className:t,cssSizeVariableName:n="--gn-aside-header-size",renderContent:r,children:o})=>i.createElement("div",{className:t,style:Object.assign({},{[n]:`${e}px`})},"function"===typeof r?i.createElement(Sr,{size:e,renderContent:r}):o);var kr=n(16258);y('.g-root{--gn-aside-top-panel-height:0px}.gn-aside-header{--gn-aside-header-min-width:56px;--_--item-icon-background-size:38px;--_--background-color:var(--g-color-base-background);--_--decoration-collapsed-background-color:var(--g-color-base-warning-light);--_--decoration-expanded-background-color:var(--g-color-base-warning-light);--_--vertical-divider-line-color:var(--g-color-line-generic);--_--horizontal-divider-line-color:var(--g-color-line-generic);background-color:var(--g-color-base-background);height:100%;position:relative;width:100%}.gn-aside-header__aside{background-color:var(--gn-aside-header-expanded-background-color,var(--gn-aside-header-background-color,var(--_--background-color)));box-sizing:border-box;display:flex;flex-direction:column;height:100vh;left:0;margin-top:var(--gn-aside-top-panel-height);max-height:calc(100vh - var(--gn-aside-top-panel-height));position:sticky;top:var(--gn-aside-top-panel-height);width:inherit;z-index:var(--gn-aside-header-z-index,100)}.gn-aside-header__aside:after{background-color:var(--gn-aside-header-divider-vertical-color,var(--_--vertical-divider-line-color));content:"";height:100%;position:absolute;right:0;top:0;width:1px;z-index:2}.gn-aside-header__aside-popup-anchor{inset:0;position:absolute;z-index:1}.gn-aside-header__aside-content{--gradient-height:334px;display:flex;flex-direction:column;height:inherit;overflow-x:hidden;padding-top:var(--gn-aside-header-padding-top);position:relative;user-select:none;width:inherit;z-index:2}.gn-aside-header__aside-content>.gn-aside-header-logo{margin:8px 0}.gn-aside-header__aside-content_with-decoration{background:linear-gradient(180deg,var(--gn-aside-header-decoration-expanded-background-color,var(--_--decoration-expanded-background-color)) calc(var(--gradient-height)*.33),transparent calc(var(--gradient-height)*.88))}.gn-aside-header__aside-custom-background{bottom:0;display:flex;position:absolute;top:0;z-index:-1}.gn-aside-header_compact .gn-aside-header__aside{background-color:var(--gn-aside-header-collapsed-background-color,var(--gn-aside-header-background-color,var(--_--background-color)))}.gn-aside-header_compact .gn-aside-header__aside-content{background:transparent}.gn-aside-header__header{--gn-aside-header-header-divider-height:29px;box-sizing:border-box;flex:none;padding-bottom:22px;padding-top:8px;position:relative;width:100%;z-index:1}.gn-aside-header__header .gn-aside-header__header-divider{bottom:0;color:var(--gn-aside-header-decoration-collapsed-background-color,var(--_--decoration-collapsed-background-color));display:none;left:0;position:absolute;z-index:-2}.gn-aside-header__header_with-decoration:before{background-color:var(--gn-aside-header-decoration-collapsed-background-color,var(--_--decoration-collapsed-background-color));content:"";display:none;height:calc(100% - var(--gn-aside-header-header-divider-height));left:0;position:absolute;top:0;width:100%;z-index:-2}.gn-aside-header__header:after{background-color:var(--gn-aside-header-divider-horizontal-color,var(--_--horizontal-divider-line-color));bottom:12px;content:"";height:1px;left:0;position:absolute;width:100%;z-index:-2}.gn-aside-header_compact .gn-aside-header__header:before,.gn-aside-header_compact .gn-aside-header__header_with-decoration .gn-aside-header__header-divider{display:block}.gn-aside-header_compact .gn-aside-header__header_with-decoration:after{display:none}.gn-aside-header__logo-button-wrapper{width:var(--gn-aside-header-min-width)}.gn-aside-header__logo-button[class],.gn-aside-header__logo-button[class] .g-button__icon{height:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size))}.gn-aside-header__menu-items{flex-grow:1}.gn-aside-header__footer{display:flex;flex-direction:column;flex-shrink:0;margin:8px 0;width:100%}.gn-aside-header__panels{inset:var(--gn-aside-top-panel-height) 0 0;max-height:calc(100vh - var(--gn-aside-top-panel-height));overflow:auto;position:fixed;z-index:var(--gn-aside-header-panel-z-index,98)}.gn-aside-header__panel{height:100%}.gn-aside-header__pane-container{display:flex;flex-direction:row;outline:none;overflow:visible;user-select:text}.gn-aside-header__pane-top-divider{background-color:var(--gn-aside-header-divider-horizontal-color,var(--_--horizontal-divider-line-color));height:1px;margin-top:-1px}.gn-aside-header__pane-top{background:var(--g-color-base-background);position:fixed;top:0;width:100%;z-index:var(--gn-aside-header-pane-top-z-index,98)}.gn-aside-header__pane-top-alert_centered{display:flex;justify-content:space-around}.gn-aside-header__pane-top-alert_dense{padding-bottom:var(--g-spacing-2);padding-top:var(--g-spacing-2)}.gn-aside-header__content{margin-top:var(--gn-aside-top-panel-height);width:calc(100% - var(--gn-aside-header-size));z-index:var(--gn-aside-header-content-z-index,95)}');const Or=i.lazy((()=>n.e(99).then(n.bind(n,90099)).then((e=>({default:e.TopPanel}))))),Nr=Object.assign((({compact:e,className:t,children:n,topAlert:r})=>{const o=e?56:236,a=(0,i.useMemo)((()=>({size:o,compact:e})),[e,o]);return i.createElement(or,{value:a},i.createElement("div",{className:(0,kr.b)({compact:e},t),style:Object.assign({},{"--gn-aside-header-size":`${o}px`})},r&&i.createElement(i.Suspense,{fallback:null},i.createElement(Or,{topAlert:r})),i.createElement("div",{className:(0,kr.b)("pane-container")},n)))}),{Content:({children:e,renderContent:t})=>{const{size:n}=ar();return i.createElement(Cr,{size:n,className:(0,kr.b)("content"),renderContent:t},e)}});var Tr=n(42793);const Ar=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.5 2.255v-.01c.003-.03.013-.157-.361-.35C9.703 1.668 8.967 1.5 8 1.5s-1.703.169-2.138.394c-.375.194-.365.32-.362.351v.01c-.003.03-.013.157.362.35C6.297 2.832 7.033 3 8 3s1.703-.169 2.139-.394c.374-.194.364-.32.361-.351M8 4.5c.506 0 .99-.04 1.436-.118l.84 2.352.253.707.717.221c.648.2 1.055.44 1.277.65.192.18.227.31.227.438 0 .14-.055.488-.937.878-.869.384-2.2.622-3.813.622s-2.944-.238-3.813-.622c-.882-.39-.937-.738-.937-.878 0-.128.035-.259.227-.439.222-.209.629-.448 1.277-.649l.717-.221.253-.707.84-2.352c.445.079.93.118 1.436.118m4-2.25c0 .738-.433 1.294-1.136 1.669l.825 2.31c1.553.48 2.561 1.32 2.561 2.52 0 1.854-2.402 2.848-5.5 2.985V15a.75.75 0 0 1-1.5 0v-3.266c-3.098-.136-5.5-1.131-5.5-2.984 0-1.2 1.008-2.04 2.561-2.52l.825-2.311C4.433 3.544 4 2.988 4 2.25 4 .75 5.79 0 8 0s4 .75 4 2.25",clipRule:"evenodd"})),Ir=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.5 2.255v-.01c.003-.03.013-.157-.361-.35C9.703 1.668 8.967 1.5 8 1.5s-1.703.169-2.138.394c-.375.194-.365.32-.362.351v.01c-.003.03-.013.157.362.35C6.297 2.832 7.033 3 8 3s1.703-.169 2.139-.394c.374-.194.364-.32.361-.351M12 2.25c0 .738-.433 1.294-1.136 1.669l.825 2.31c1.553.48 2.561 1.32 2.561 2.52 0 1.854-2.402 2.848-5.5 2.985V15a.75.75 0 0 1-1.5 0v-3.266c-3.098-.136-5.5-1.131-5.5-2.984 0-1.2 1.008-2.04 2.561-2.52l.825-2.311C4.433 3.544 4 2.988 4 2.25 4 .75 5.79 0 8 0s4 .75 4 2.25",clipRule:"evenodd"}));var Pr;function Rr(){return Rr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rr.apply(null,arguments)}var Dr=function(e){return i.createElement("svg",Rr({width:56,height:29,viewBox:"0 0 56 29",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),Pr||(Pr=i.createElement("path",{d:"M56 0v29c-.8-1-7-6.1-17.7-8.4L13 15.7A16 16 0 0 1 0 0Z"})))},jr=n(32084),Mr=n(14794),Lr=n(48681);function zr(){return zr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zr.apply(null,arguments)}function Fr(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Br(e,t){return Br=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Br(e,t)}function Ur(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Br(e,t)}var qr,$r,Hr,Vr;function Wr(){if($r)return qr;$r=1;return qr="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Kr(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}(function(){if(Vr)return Hr;Vr=1;var e=Wr();function t(){}function n(){}return n.resetWarningCache=t,Hr=function(){function r(t,n,r,i,o,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function i(){return r}r.isRequired=r;var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o}})()();var Gr=!1,Yr=i.createContext(null),Qr=function(e){return e.scrollTop},Zr="unmounted",Jr="exited",Xr="entering",ei="entered",ti="exiting",ni=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=Jr,r.appearStatus=Xr):i=ei:i=t.unmountOnExit||t.mountOnEnter?Zr:Jr,r.state={status:i},r.nextCallback=null,r}Ur(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Zr?{status:Jr}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Xr&&n!==ei&&(t=Xr):n!==Xr&&n!==ei||(t=ti)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Xr){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Lr.findDOMNode(this);n&&Qr(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Jr&&this.setState({status:Zr})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[Lr.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||Gr?this.safeSetState({status:ei},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:Xr},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:ei},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Lr.findDOMNode(this);t&&!Gr?(this.props.onExit(r),this.safeSetState({status:ti},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Jr},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Jr},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Lr.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Zr)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=Fr(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return i.createElement(Yr.Provider,{value:null},"function"===typeof n?n(e,r):i.cloneElement(i.Children.only(n),r))},t}(i.Component);function ri(){}ni.contextType=Yr,ni.propTypes={},ni.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ri,onEntering:ri,onEntered:ri,onExit:ri,onExiting:ri,onExited:ri},ni.UNMOUNTED=Zr,ni.EXITED=Jr,ni.ENTERING=Xr,ni.ENTERED=ei,ni.EXITING=ti;var ii=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"===typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))},oi=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"===typeof n.className?n.className=Kr(n.className,r):n.setAttribute("class",Kr(n.className&&n.className.baseVal||"",r)));var n,r}))},ai=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1];t.removeClasses(i,"exit"),t.addClass(i,o?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.addClass(i,o,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.removeClasses(i,o),t.addClass(i,o,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"===typeof n,i=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:i,activeClassName:r?i+"-active":n[e+"Active"],doneClassName:r?i+"-done":n[e+"Done"]}},t}Ur(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],i=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&i&&(r+=" "+i),"active"===n&&e&&Qr(e),r&&(this.appliedClasses[t][n]=r,ii(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,o=n.done;this.appliedClasses[t]={},r&&oi(e,r),i&&oi(e,i),o&&oi(e,o)},n.render=function(){var e=this.props;e.classNames;var t=Fr(e,["classNames"]);return i.createElement(ni,zr({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(i.Component);function si(e,t){var n=Object.create(null);return e&&i.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,i.isValidElement)(e)?t(e):e}(e)})),n}function li(e,t,n){return null!=n[t]?n[t]:e.props[t]}function ci(e,t,n){var r=si(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var c=i[l][r];s[i[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(t,r);return Object.keys(o).forEach((function(a){var s=o[a];if((0,i.isValidElement)(s)){var l=a in t,c=a in r,u=t[a],d=(0,i.isValidElement)(u)&&!u.props.in;!c||l&&!d?c||!l||d?c&&l&&(0,i.isValidElement)(u)&&(o[a]=(0,i.cloneElement)(s,{onExited:n.bind(null,s),in:u.props.in,exit:li(s,"exit",e),enter:li(s,"enter",e)})):o[a]=(0,i.cloneElement)(s,{in:!1}):o[a]=(0,i.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:li(s,"exit",e),enter:li(s,"enter",e)})}})),o}ai.defaultProps={classNames:""},ai.propTypes={};var ui,di,fi=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},pi=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}Ur(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,si(n.children,(function(e){return(0,i.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:li(e,"appear",n),enter:li(e,"enter",n),exit:li(e,"exit",n)})}))):ci(e,o,a),firstRender:!1}},n.handleExited=function(e,t){var n=si(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=zr({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Fr(e,["component","childFactory"]),o=this.state.contextValue,a=fi(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?i.createElement(Yr.Provider,{value:o},a):i.createElement(Yr.Provider,{value:o},i.createElement(t,r,a))},t}(i.Component);pi.propTypes={},pi.defaultProps={component:"div",childFactory:function(e){return e}},(function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}Ur(t,e);var n=t.prototype;return n.handleLifecycle=function(e,t,n){var r,o=this.props.children,a=i.Children.toArray(o)[t];if(a.props[e]&&(r=a.props)[e].apply(r,n),this.props[e]){var s=a.props.nodeRef?void 0:Lr.findDOMNode(this);this.props[e](s)}},n.render=function(){var e=this.props,t=e.children,n=e.in,r=Fr(e,["children","in"]),o=i.Children.toArray(t),a=o[0],s=o[1];return delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,i.createElement(pi,r,n?i.cloneElement(a,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):i.cloneElement(s,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},t}(i.Component)).propTypes={};var hi="out-in",mi="in-out",gi=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},vi=((ui={})[hi]=function(e){var t=e.current,n=e.changeState;return i.cloneElement(t,{in:!1,onExited:gi(t,"onExited",(function(){n(Xr,null)}))})},ui[mi]=function(e){var t=e.current,n=e.changeState,r=e.children;return[t,i.cloneElement(r,{in:!0,onEntered:gi(r,"onEntered",(function(){n(Xr)}))})]},ui),yi=((di={})[hi]=function(e){var t=e.children,n=e.changeState;return i.cloneElement(t,{in:!0,onEntered:gi(t,"onEntered",(function(){n(ei,i.cloneElement(t,{in:!0}))}))})},di[mi]=function(e){var t=e.current,n=e.children,r=e.changeState;return[i.cloneElement(t,{in:!1,onExited:gi(t,"onExited",(function(){r(ei,i.cloneElement(n,{in:!0}))}))}),i.cloneElement(n,{in:!0})]},di),bi=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).state={status:ei,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}Ur(t,e);var n=t.prototype;return n.componentDidMount=function(){this.appeared=!0},t.getDerivedStateFromProps=function(e,t){return null==e.children?{current:null}:t.status===Xr&&e.mode===mi?{status:Xr}:!t.current||(n=t.current,r=e.children,n===r||i.isValidElement(n)&&i.isValidElement(r)&&null!=n.key&&n.key===r.key)?{current:i.cloneElement(e.children,{in:!0})}:{status:ti};var n,r},n.render=function(){var e,t=this.props,n=t.children,r=t.mode,o=this.state,a=o.status,s=o.current,l={children:n,current:s,changeState:this.changeState,status:a};switch(a){case Xr:e=yi[r](l);break;case ti:e=vi[r](l);break;case ei:e=s}return i.createElement(Yr.Provider,{value:{isMounting:!this.appeared}},e)},t}(i.Component);bi.propTypes={},bi.defaultProps={mode:hi};const wi=200,xi=800;function _i(e){var t,n;return"touches"in e?null!==(n=null===(t=e.touches[0])||void 0===t?void 0:t.clientX)&&void 0!==n?n:0:e.clientX}function Ei(e){const{direction:t,width:n,minResizeWidth:r=wi,maxResizeWidth:o=xi,onResizeStart:a,onResize:s}=e,[l,c]=i.useState(!1),[u,d]=i.useState(0),[f,p]=i.useState(null!==n&&void 0!==n?n:400),h=i.useCallback((e=>Math.min(Math.max(e,r),o)),[r,o]),m=i.useCallback((e=>h((null!==n&&void 0!==n?n:f)+("right"===t?e:-e))),[n,f,t,h]),g=i.useCallback((()=>{c(!0),d(0),null===a||void 0===a||a()}),[a]),v=i.useCallback((e=>{d(e)}),[]),y=i.useCallback((e=>{const t=m(e);c(!1),p(t),null===s||void 0===s||s(t)}),[m,s]),b=l?m(u):h(null!==n&&void 0!==n?n:f),w=function({onStart:e,onMove:t,onEnd:n}){const r=i.useRef(0),o=i.useRef(0),a=i.useCallback((e=>{const n=_i(e);if(o.current===n)return;o.current=n;const i=r.current-n;t(i)}),[t]),s=i.useCallback((e=>{window.removeEventListener("mousemove",a),window.removeEventListener("touchmove",a),document.body.style.removeProperty("user-select"),document.body.style.removeProperty("-webkit-user-select"),document.body.style.removeProperty("cursor");const t=_i(e),i=r.current-t;n(i)}),[a,n]),l=i.useCallback((t=>{const n=_i(t);r.current=n,o.current=n,window.addEventListener("mouseup",s,{once:!0}),window.addEventListener("touchend",s,{once:!0}),window.addEventListener("touchcancel",s,{once:!0}),window.addEventListener("mousemove",a),window.addEventListener("touchmove",a),document.body.style.setProperty("user-select","none"),document.body.style.setProperty("-webkit-user-select","none"),document.body.style.setProperty("cursor","col-resize"),e()}),[s,a,e]);return{onMouseDown:l,onTouchStart:l}}({onStart:g,onMove:v,onEnd:y});return{resizedWidth:b,resizerHandlers:w}}y(".gn-drawer{--_--item-shadow-default:0 1px 5px 0 var(--g-color-sfx-shadow);--_--resizer-width:8px;--_--resizer-color:var(--g-color-base-generic);--_--resizer-handle-color:var(--g-color-line-generic);--_--resizer-handle-color-hover:var(--g-color-line-generic-hover);--_--resizer-z-index:100;--_--veil-background-color:var(--g-color-sfx-veil);pointer-events:none}.gn-drawer_hideVeil{--_--item-shadow:var(--gn-drawer-item-shadow,var(--_--item-shadow-default))}.gn-drawer__item{background-color:var(--g-color-base-background);bottom:0;box-shadow:var(--_--item-shadow,none);height:100%;left:0;pointer-events:auto;position:absolute;top:0;will-change:transform;z-index:var(--gn-drawer-item-z-index)}.gn-drawer__item_direction_right{left:auto;right:0}.gn-drawer__item-transition-enter{transform:translate(-100%)}.gn-drawer__item-transition_direction_right-enter{transform:translate(100%)}.gn-drawer__item-transition-enter-active,.gn-drawer__item-transition_direction_right-enter-active{transform:translate(0);transition:transform .3s}.gn-drawer__item-transition-enter-done,.gn-drawer__item-transition_direction_right-enter-done{filter:blur(0);transform:translateZ(0)}.gn-drawer__item-transition-exit,.gn-drawer__item-transition_direction_right-exit{transform:translate(0)}.gn-drawer__item-transition-exit-active,.gn-drawer__item-transition_direction_right-exit-active{transition:transform .3s}.gn-drawer__item-transition-exit-active{transform:translate(-100%)}.gn-drawer__item-transition_direction_right-exit-active{transform:translate(100%)}.gn-drawer__item-transition-exit-done,.gn-drawer__item-transition_direction_right-exit-done,.gn-drawer__item_hidden{visibility:hidden}.gn-drawer__veil{background-color:var(--gn-drawer-veil-background-color,var(--_--veil-background-color));inset:0;pointer-events:auto;position:absolute;z-index:var(--gn-drawer-veil-z-index)}.gn-drawer__veil_hidden{display:none}.gn-drawer__veil-transition-enter{opacity:0}.gn-drawer__veil-transition-enter-active{opacity:1;transition:opacity .3s}.gn-drawer__veil-transition-exit{opacity:1}.gn-drawer__veil-transition-exit-active{opacity:0;transition:opacity .3s}.gn-drawer__veil-transition-exit-done{visibility:hidden}.gn-drawer__resizer-handle{background:var(--gn-drawer-item-resizer-handle-color,var(--_--resizer-handle-color));border-radius:2px;height:28px;width:2px}.gn-drawer__resizer{align-items:center;background:var(--gn-drawer-item-resizer-color,var(--_--resizer-color));cursor:col-resize;display:flex;flex-direction:column;height:100%;justify-content:center;position:absolute;top:0;width:var(--gn-drawer-item-resizer-width,var(--_--resizer-width));z-index:var(--gn-drawer-item-resizer-z-index,var(--_--resizer-z-index))}.gn-drawer__resizer_direction_right{left:0}.gn-drawer__resizer_direction_left{right:0}.gn-drawer__resizer:hover .gn-drawer__resizer-handle{background:var(--gn-drawer-item-resizer-handle-color-hover,var(--_--resizer-handle-color-hover))}");const Si=(0,v.b)("drawer"),Ci=i.forwardRef((function(e,t){const{visible:n,content:r,children:o,direction:a="left",className:s,resizable:l,width:c,minResizeWidth:u,maxResizeWidth:d,onResizeStart:f,onResize:p,keepMounted:h=!1}=e,[m,g]=i.useState(!0),v=i.useRef(null),y=(0,jr.N)(t,v),b="left"===a?void 0:a,{resizedWidth:w,resizerHandlers:x}=Ei({direction:a,width:c,minResizeWidth:u,maxResizeWidth:d,onResizeStart:f,onResize:p});i.useEffect((()=>{g(!0)}),[a]);const _=l?i.createElement("div",Object.assign({className:Si("resizer",{direction:a})},x),i.createElement("div",{className:Si("resizer-handle")})):null;return i.createElement(ai,{in:n,timeout:300,mountOnEnter:!h,unmountOnExit:!h,classNames:Si("item-transition",{direction:b}),nodeRef:v,onEnter:()=>g(!1),onExit:()=>g(!1)},i.createElement("div",{ref:y,className:Si("item",{direction:b,hidden:m&&!n},[s]),style:{width:l?`${w}px`:void 0}},_,null!==o&&void 0!==o?o:r))})),ki=({className:e,veilClassName:t,children:n,style:r,onVeilClick:o,onEscape:a,preventScrollBody:s=!0,hideVeil:l,disablePortal:c=!0,keepMounted:u=!1})=>{let d=!1;i.Children.forEach(n,(e=>{if(i.isValidElement(e)&&e.type===Ci){Boolean(e.props.visible)&&(d=!0)}})),i.useEffect((()=>{function e(e){"Escape"===e.key&&(null===a||void 0===a||a())}return d&&window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}}),[a,d]),(0,Mr.y)({enabled:s&&d});const f=i.useRef(null),p=i.useRef(null),h=i.createElement(ni,{in:d,timeout:{enter:0,exit:300},mountOnEnter:!u,unmountOnExit:!u,nodeRef:f},(a=>{const s=d&&"entered"===a;return i.createElement("div",{ref:f,className:Si({hideVeil:l},e),style:r},i.createElement(ai,{in:s,timeout:300,unmountOnExit:!0,classNames:Si("veil-transition"),nodeRef:p},i.createElement("div",{ref:p,className:Si("veil",{hidden:l},t),onClick:o})),i.Children.map(n,(e=>{if(i.isValidElement(e)&&e.type===Ci){const t=Boolean(e.props.visible);return i.cloneElement(e,Object.assign(Object.assign({keepMounted:u},e.props),{visible:t&&s}))}return e})))}));return c?h:i.createElement(Jn.Z,null,h)};y(".gn-all-pages-list-item{align-items:center;column-gap:var(--g-spacing-4);display:flex;height:40px;padding:0 var(--g-spacing-6);width:100%}.gn-all-pages-list-item__text{flex:1}.gn-all-pages-list-item__icon{color:var(--g-color-text-misc)}");const Oi=(0,v.b)("all-pages-list-item"),Ni=e=>{const{item:t,editMode:n,onToggle:r}=e,o=(0,i.useCallback)((e=>{e.stopPropagation(),e.preventDefault(),r()}),[r]);return i.createElement("div",{className:Oi(),onClick:e=>{n&&(e.stopPropagation(),e.preventDefault())}},t.icon?i.createElement(f.I,{className:Oi("icon"),data:t.icon,size:t.iconSize}):null,i.createElement("span",{className:Oi("text")},t.title),n&&!t.preventUserRemoving&&i.createElement(E.$,{onClick:o,view:t.hidden?"flat-secondary":"flat-action"},i.createElement(E.$.Icon,null,t.hidden?i.createElement(Ar,null):i.createElement(Ir,null))))};var Ti=(0,w.N)({en:{"menu-item.all-pages.title":"All pages","all-panel.menu.category.allOther":"All other","all-panel.resetToDefault":"Reset to default","all-panel.title.editing":"Editing","all-panel.title.main":"All pages"},ru:{"menu-item.all-pages.title":"\u0412\u0441\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b","all-panel.menu.category.allOther":"\u041e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435","all-panel.resetToDefault":"\u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e","all-panel.title.editing":"\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435","all-panel.title.main":"\u0412\u0441\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b"}},`${v.N}AllPagesPanel`);const Ai="all-pages";y(".gn-all-pages-panel{box-sizing:border-box;height:100%;min-width:300px;padding:var(--g-spacing-4) var(--g-spacing-6)}.gn-all-pages-panel__content{flex:1;margin:0 calc(var(--g-spacing-6)*-1);overflow:auto}.gn-all-pages-panel__category{padding:0 var(--g-spacing-6)}.gn-all-pages-panel__discoverable-feature-wrapper{display:flex}");const Ii=(0,v.b)("all-pages-panel"),Pi=e=>{const{startEditIcon:t,onEditModeChanged:n,className:r}=e,{menuItems:o,onMenuItemsChanged:a,editMenuProps:s}=rr(),l=(0,i.useRef)(o);l.current=o;const[c,u]=(0,i.useState)(!1),d=(0,i.useCallback)((()=>{u((e=>!e))}),[]),p=(e=>{const t=(0,i.useMemo)((()=>{const t=e.filter((e=>"divider"!==e.type&&e.id!==Ai));return t.sort(((e,t)=>"action"===e.type?1:"action"===t.type?-1:0)),t.reduce(((e,t)=>{const n=t.category||Ti("all-panel.menu.category.allOther");return e[n]||(e[n]=[]),e[n].push(t),e}),{})}),[e]);return t})(o);(0,i.useEffect)((()=>{var e;null===n||void 0===n||n(c),c&&(null===(e=null===s||void 0===s?void 0:s.onOpenEditMode)||void 0===e||e.call(s))}),[c,n,s]);const h=(0,i.useCallback)((e=>{var t;null===(t=e.onItemClick)||void 0===t||t.call(e,e,!1)}),[]),m=(0,i.useCallback)((e=>{var t;if(!a)return;const n=Object.assign(Object.assign({},e),{hidden:!e.hidden}),r=l.current.filter((e=>e.id!==Ai));null===(t=null===s||void 0===s?void 0:s.onToggleMenuItem)||void 0===t||t.call(s,n),a(r.map((e=>e.id!==n.id?e:n)))}),[a,s]),v=(0,i.useCallback)(((e,t,n)=>i.createElement(Ni,{item:e,editMode:c,onToggle:()=>m(e)})),[c,m]),y=(0,i.useCallback)((()=>{var e;if(!a)return;null===(e=null===s||void 0===s?void 0:s.onResetSettingsToDefault)||void 0===e||e.call(s);const t=l.current.filter((e=>e.id!==Ai));a(t.map((e=>Object.assign(Object.assign({},e),{hidden:!1}))))}),[a,s]);return i.createElement(g.s,{className:Ii(null,r),gap:"5",direction:"column"},i.createElement(g.s,{gap:"4",alignItems:"center",justifyContent:"space-between"},i.createElement(_.E,{variant:"subheader-2"},Ti(c?"all-panel.title.editing":"all-panel.title.main")),i.createElement(E.$,{selected:c,view:"normal",onClick:d},t||i.createElement(f.I,{data:Zn.A}))),i.createElement(g.s,{className:Ii("content"),gap:"5",direction:"column"},Object.keys(p).map((e=>i.createElement(g.s,{key:e,direction:"column",gap:"3"},i.createElement(_.E,{className:Ii("category"),variant:"body-1",color:"secondary"},e),i.createElement(er.B,{virtualized:!1,filterable:!1,items:p[e],onItemClick:h,renderItem:v}))))),c&&i.createElement(E.$,{onClick:y},Ti("all-panel.resetToDefault")))};let Ri;Ri="undefined"!==typeof window?window:"undefined"!==typeof self?self:n.g;let Di=null,ji=null;const Mi=Ri.clearTimeout,Li=Ri.setTimeout,zi=Ri.cancelAnimationFrame||Ri.mozCancelAnimationFrame||Ri.webkitCancelAnimationFrame,Fi=Ri.requestAnimationFrame||Ri.mozRequestAnimationFrame||Ri.webkitRequestAnimationFrame;function Bi(e){let t,n,r,i,o,a,s;const l="undefined"!==typeof document&&document.attachEvent;if(!l){a=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,i=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,i.style.width=n.offsetWidth+1+"px",i.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},o=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},s=function(e){if(e.target.className&&"function"===typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;a(this),this.__resizeRAF__&&Di(this.__resizeRAF__),this.__resizeRAF__=ji((function(){o(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))};let e=!1,l="";r="animationstart";const c="Webkit Moz O ms".split(" ");let u="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),d="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let n=0;n<c.length;n++)if(void 0!==t.style[c[n]+"AnimationName"]){d=c[n],l="-"+d.toLowerCase()+"-",r=u[n],e=!0;break}}n="resizeanim",t="@"+l+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",i=l+"animation: 1ms "+n+"; "}return{addResizeListener:function(o,c){if(l)o.attachEvent("onresize",c);else{if(!o.__resizeTriggers__){const l=o.ownerDocument,c=Ri.getComputedStyle(o);c&&"static"===c.position&&(o.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const r=(t||"")+".resize-triggers { "+(i||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',o=n.head||n.getElementsByTagName("head")[0],a=n.createElement("style");a.id="detectElementResize",a.type="text/css",null!=e&&a.setAttribute("nonce",e),a.styleSheet?a.styleSheet.cssText=r:a.appendChild(n.createTextNode(r)),o.appendChild(a)}}(l),o.__resizeLast__={},o.__resizeListeners__=[],(o.__resizeTriggers__=l.createElement("div")).className="resize-triggers";const u=l.createElement("div");u.className="expand-trigger",u.appendChild(l.createElement("div"));const d=l.createElement("div");d.className="contract-trigger",o.__resizeTriggers__.appendChild(u),o.__resizeTriggers__.appendChild(d),o.appendChild(o.__resizeTriggers__),a(o),o.addEventListener("scroll",s,!0),r&&(o.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&a(o)},o.__resizeTriggers__.addEventListener(r,o.__resizeTriggers__.__animationListener__))}o.__resizeListeners__.push(c)}},removeResizeListener:function(e,t){if(l)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",s,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(n){}}}}}null==zi||null==Fi?(Di=Mi,ji=function(e){return Li(e,20)}):(Di=function([e,t]){zi(e),Mi(t)},ji=function(e){const t=Fi((function(){Mi(n),e()})),n=Li((function(){zi(t),e()}),20);return[t,n]});class Ui extends i.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){const r=window.getComputedStyle(this._parentNode)||{},i=parseFloat(r.paddingLeft||"0"),o=parseFloat(r.paddingRight||"0"),a=parseFloat(r.paddingTop||"0"),s=parseFloat(r.paddingBottom||"0"),l=this._parentNode.getBoundingClientRect(),c=l.height-a-s,u=l.width-i-o,d=this._parentNode.offsetHeight-a-s,f=this._parentNode.offsetWidth-i-o;(e||this.state.height===d&&this.state.scaledHeight===c)&&(t||this.state.width===f&&this.state.scaledWidth===u)||(this.setState({height:d,width:f,scaledHeight:c,scaledWidth:u}),"function"===typeof n&&n({height:d,scaledHeight:c,scaledWidth:u,width:f}))}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(null!=t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;const n=t.ownerDocument.defaultView.ResizeObserver;null!=n?(this._resizeObserver=new n((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(t)):(this._detectElementResize=Bi(e),this._detectElementResize.addResizeListener(t,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:r=!1,disableWidth:o=!1,doNotBailOutOnEmptyChildren:a=!1,nonce:s,onResize:l,style:c={},tagName:u="div",...d}=this.props,{height:f,scaledHeight:p,scaledWidth:h,width:m}=this.state,g={overflow:"visible"},v={};let y=!1;return r||(0===f&&(y=!0),g.height=0,v.height=f,v.scaledHeight=p),o||(0===m&&(y=!0),g.width=0,v.width=m,v.scaledWidth=h),a&&(y=!1),(0,i.createElement)(u,{ref:this._setRef,style:{...g,...c},...d},!y&&e(v))}}const qi={active:!1,activeIndex:void 0,hideCollapseItemTooltip:!1,lastClickedItemIndex:void 0,setValue:()=>{}},$i=i.createContext(qi);class Hi extends i.PureComponent{constructor(){super(...arguments),this.state=Object.assign({},qi),this.setValue=e=>{this.setState(Object.assign({},e))}}render(){const{children:e}=this.props;return i.createElement($i.Provider,{value:Object.assign(Object.assign({},this.state),{setValue:this.setValue})},e)}}y('.g-root_theme_dark .gn-multiple-tooltip,.g-root_theme_dark-hc .gn-multiple-tooltip{--multiple-tooltip-item-bg-color:var(\n --g-color-base-float-medium,var(--g-color-private-white-100-solid)\n );--multiple-tooltip-item-active-bg-color:var(--g-color-base-float-heavy);--multiple-tooltip-backdrop-background:linear-gradient(90deg,var(--g-color-base-background) 50%,transparent);--multiple-tooltip-backdrop-filter:blur(16px)}.g-root_theme_dark-hc .gn-multiple-tooltip{--multiple-tooltip-item-bg-color:var(\n --g-color-base-float-medium,var(--g-color-private-white-150-solid)\n )}.g-root_theme_light .gn-multiple-tooltip,.g-root_theme_light-hc .gn-multiple-tooltip{--multiple-tooltip-item-bg-color:var(\n --g-color-base-float-medium,var(--g-color-private-black-550-solid)\n );--multiple-tooltip-item-active-bg-color:var(--g-color-base-float-heavy);--multiple-tooltip-backdrop-background:linear-gradient(90deg,var(--g-color-base-background) 50%,transparent);--multiple-tooltip-backdrop-filter:blur(12px)}.gn-multiple-tooltip.gn-multiple-tooltip{background-color:transparent;box-shadow:none}.gn-multiple-tooltip:before{background:var(--multiple-tooltip-backdrop-background);box-shadow:none;content:"";filter:var(--multiple-tooltip-backdrop-filter);height:100%;opacity:.7;position:absolute;width:100%;z-index:-1}.gn-multiple-tooltip__items-container{align-items:flex-start;display:flex;flex-direction:column;padding:32px 40px 32px 12px}.gn-multiple-tooltip__item{align-items:center;background-color:var(--multiple-tooltip-item-bg-color);border-radius:5px;box-sizing:border-box;color:var(--g-color-text-light-primary);display:flex;height:30px;margin-bottom:5px;padding:8px 12px;position:relative;transition:transform .1s ease-in-out}.gn-multiple-tooltip__item:first-child,.gn-multiple-tooltip__item:not(.gn-multiple-tooltip__item_divider)+.gn-multiple-tooltip__item:not(.gn-multiple-tooltip__item_divider){margin-top:5px}.gn-multiple-tooltip__item_divider+.gn-multiple-tooltip__item:not(.gn-multiple-tooltip__item_divider){margin-top:4px}.gn-multiple-tooltip__item_active{background-color:var(--multiple-tooltip-item-active-bg-color);transform:translateX(-12px)}.gn-multiple-tooltip__item_divider{height:15px;margin:0;visibility:hidden}');const Vi=(0,v.b)("multiple-tooltip"),Wi=[-32,4],Ki=[{name:"preventOverflow",enabled:!1}],Gi=({items:e,open:t,anchorRef:n,placement:r})=>{const{activeIndex:o,hideCollapseItemTooltip:a}=i.useContext($i),s=void 0===o?null:e[o];return i.createElement(_e.z,{open:t,anchorRef:n,placement:r,offset:Wi,contentClassName:Vi(null),modifiers:Ki,disableLayer:!0},i.createElement("div",{className:Vi("items-container")},e.filter((({type:e="regular",id:t})=>!a||t!==ur&&"action"!==e)).map(((e,t)=>"divider"===e.type?i.createElement("div",{className:Vi("item",{divider:!0}),key:t},e.title):i.createElement("div",{className:Vi("item",{active:e===s}),key:t},e.title)))))};y(".gn-composite-bar{flex:1 0 auto;min-height:40px;width:100%}.gn-composite-bar .gn-composite-bar__root-menu-item[class]{background-color:transparent}");const Yi=(0,v.b)("composite-bar"),Qi=({type:e,items:t,onItemClick:n,onMoreClick:r,collapseItems:o,multipleTooltip:a=!1})=>{const s=(0,i.useRef)(null),l=(0,i.useRef)(null),{setValue:c,active:u,activeIndex:d,lastClickedItemIndex:f}=(0,i.useContext)($i),{compact:p}=ar();i.useEffect((()=>{function e(){a&&u&&c({active:!1})}return window.addEventListener("blur",e),()=>{window.removeEventListener("blur",e)}}),[a,u,c]);const h=(0,i.useCallback)((e=>{a&&p&&!u&&document.hasFocus()&&d!==f&&e.clientX<=56&&(null===c||void 0===c||c({active:!0}))}),[a,p,u,d,f,c]),m=(0,i.useCallback)((()=>{a&&u&&document.hasFocus()&&(null===c||void 0===c||c({active:!1,lastClickedItemIndex:void 0}))}),[a,u,c]),g=(0,i.useCallback)((e=>()=>{if(a&&document.hasFocus()){let t=u;if(u||e===f||(t=!0),d===e&&u===t)return;c({activeIndex:e,active:t})}}),[a,u,f,d,c]),v=(0,i.useCallback)((()=>{var e;p&&document.hasFocus()&&(null===(e=s.current)||void 0===e||e.activateItem(void 0),!a||void 0===d&&void 0===f||c({activeIndex:void 0,lastClickedItemIndex:void 0}))}),[d,p,f,a,c]),y=(0,i.useCallback)((e=>(t,r,i)=>{p&&a&&e!==f&&t.id!==ur&&c({lastClickedItemIndex:e,active:!1}),null===n||void 0===n||n(t,r,i)}),[p,f,a,n,c]);return i.createElement(i.Fragment,null,i.createElement("div",{ref:l,onMouseEnter:h,onMouseLeave:m},i.createElement(er.B,{ref:s,items:t,selectedItemIndex:"menu"===e?hr(t):void 0,itemHeight:fr,itemsHeight:pr,itemClassName:Yi("root-menu-item"),virtualized:!1,filterable:!1,sortable:!1,renderItem:(e,t,n)=>{const s=mr(e)?{item:e}:e,l=mr(e)?!a:e.enableTooltip;return i.createElement(wr,Object.assign({},s,{enableTooltip:l,onMouseEnter:g(n),onMouseLeave:v,onItemClick:y(n),onCollapseItemClick:r,collapseItems:o}))}})),"menu"===e&&a&&i.createElement(Gi,{open:p&&u,anchorRef:l,placement:["right-start"],items:t}))},Zi=({type:e,items:t,menuMoreTitle:n,onItemClick:r,onMoreClick:o,multipleTooltip:a=!1})=>{if(0===t.length)return null;let s;if("menu"===e){const e=function(e){const t=function(e){const t=[];for(const n of e)(n.pinned||"divider"===n.type&&t.length>0&&"divider"!==t[t.length-1].type)&&t.push(n);return t}(e),n=e.filter((e=>e.afterMoreButton));return pr(t)+pr(n)+(t.length===e.length?0:40)}(t),l=function(e){return{id:ur,title:e,icon:sr.A,iconSize:18}}(n);s=i.createElement("div",{className:Yi({autosizer:!0}),style:{minHeight:e}},0!==t.length&&i.createElement(Ui,null,(e=>{const n=Number.isNaN(e.width)?0:e.width,s=Number.isNaN(e.height)?0:e.height,{listItems:c,collapseItems:u}=function(e,t,n){var r,i,o;const a=e.filter((e=>e.afterMoreButton)),s=e.filter((e=>!e.afterMoreButton)),l=[...s,...a],c=pr(l);if(c<=t)return{listItems:l,collapseItems:[]};const u=fr(n);l.splice(s.length,0,n);const d=[];let f=c+u,p=l.length;for(;f>t&&0!==p;){p--;const e=l[p];e.pinned||e.id===ur||e.afterMoreButton||("divider"!==e.type?(f-=fr(e),d.unshift(...l.splice(p,1))):p+1<l.length&&"divider"===(null===(r=l[p+1])||void 0===r?void 0:r.type)&&(f-=fr(e),l.splice(p,1)))}return"divider"!==(null===(i=l[p])||void 0===i?void 0:i.type)||0!==p&&"divider"!==(null===(o=l[p-1])||void 0===o?void 0:o.type)||l.splice(p,1),{listItems:l,collapseItems:d}}(t,s,l);return i.createElement("div",{style:{width:n,height:s}},i.createElement(Qi,{type:"menu",items:c,onItemClick:r,onMoreClick:o,collapseItems:u,multipleTooltip:a}))})))}else s=i.createElement("div",{className:Yi({subheader:!0})},i.createElement(Qi,{type:"subheader",items:t,onItemClick:r}));return i.createElement(Hi,null,s)};var Ji={button_collapse:"Collapse",button_expand:"Expand",label_more:"More"},Xi={button_collapse:"\u0421\u0432\u0435\u0440\u043d\u0443\u0442\u044c",button_expand:"\u0420\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c",label_more:"\u0415\u0449\u0451"};var eo,to=(0,w.N)({en:Ji,ru:Xi},`${v.N}AsideHeader`);function no(){return no=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},no.apply(null,arguments)}var ro=function(e){return i.createElement("svg",no({width:8,height:8,viewBox:"0 0 8 8",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),eo||(eo=i.createElement("path",{d:"m.72 7.64 6.39-3.2a.5.5 0 0 0 0-.89L.72.36A.5.5 0 0 0 0 .81v6.38c0 .37.4.61.72.45Z"})))};y('.gn-collapse-button{--_--focus-outline-color:var(--g-color-line-focus);--_--focus-outline-offset:0;align-items:center;background:none;border:none;border-top:1px solid var(--gn-aside-header-divider-horizontal-color,var(--_--horizontal-divider-line-color));box-sizing:content-box;color:inherit;cursor:pointer;display:flex;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);justify-content:center;min-height:20px;outline:none;padding:0;position:relative;width:100%}.gn-collapse-button:before{content:"";inset:0 2px 2px;position:absolute;z-index:-1}.gn-collapse-button:focus-visible:before{outline:var(--_--focus-outline-color) solid 2px;outline-offset:var(--_--focus-outline-offset)}.gn-collapse-button:not(.gn-collapse-button_compact) .gn-collapse-button__icon{transform:rotate(180deg)}.gn-collapse-button:hover .gn-collapse-button__icon{color:var(--g-color-text-primary)}.gn-collapse-button__icon{color:var(--g-color-text-secondary)}');const io=(0,v.b)("collapse-button"),oo=({className:e})=>{const{onChangeCompact:t,compact:n,expandTitle:r,collapseTitle:o}=rr(),a=(0,i.useCallback)((()=>{null===t||void 0===t||t(!n)}),[n,t]),s=n?r||to("button_expand"):o||to("button_collapse");return i.createElement("button",{className:io({compact:n},e),onClick:a,title:s},i.createElement(f.I,{data:ro,className:io("icon"),width:"16",height:"10"}))};y(".gn-logo{height:40px}.gn-logo,.gn-logo__logo-btn-place{align-items:center;display:flex;flex-shrink:0}.gn-logo__logo-btn-place{cursor:pointer;justify-content:center}.gn-logo__logo-btn-place .g-button:before{background-color:transparent}.gn-logo__logo{cursor:pointer;font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-2-line-height);vertical-align:middle}.gn-logo__logo-link,.gn-logo__logo-link:active,.gn-logo__logo-link:focus,.gn-logo__logo-link:hover,.gn-logo__logo-link:visited{color:inherit;outline:none;text-decoration:none}.g-root .gn-logo__btn-logo.button2_theme_flat.button2_hovered_yes:before{background-color:transparent}");const ao=(0,v.b)("logo"),so=({text:e,icon:t,iconSrc:n,iconClassName:r,iconSize:o=24,textSize:a=15,href:s,target:l="_self",wrapper:c,onClick:u,compact:d,className:p,buttonWrapperClassName:h,buttonClassName:m,"aria-label":g,"aria-labelledby":v})=>{const y="function"===typeof c;let b;n?b=i.createElement(E.$.Icon,{className:r},i.createElement("img",{alt:"logo icon",src:n,width:o,height:o})):t&&(b=i.createElement(f.I,{data:t,size:o,className:r}));const w=i.createElement(E.$,{view:"flat",size:"l",className:ao("btn-logo",m),component:y?"span":void 0,onClick:u,target:l,rel:"_self"===l?void 0:"noreferrer",href:s,extraProps:{"aria-label":g,"aria-labelledby":v}},b);let x;return x="function"===typeof e?e():i.createElement("div",{className:ao("logo"),style:{fontSize:a}},e),i.createElement("div",{className:ao(null,p)},i.createElement("div",{className:ao("logo-btn-place",h)},y?c(w,Boolean(d)):w),!d&&(y?i.createElement("div",{onClick:u},c(x,Boolean(d))):i.createElement("a",{href:null!==s&&void 0!==s?s:"/",target:l,rel:"_self"===l?void 0:"noreferrer",className:ao("logo-link"),onClick:u},x)))},lo=[],co=()=>{const{logo:e,onItemClick:t,onClosePanel:n,headerDecoration:r,subheaderItems:o}=rr(),{compact:a}=ar(),s=(0,i.useCallback)((t=>{var r;null===n||void 0===n||n(),null===(r=null===e||void 0===e?void 0:e.onClick)||void 0===r||r.call(e,t)}),[n,e]);return i.createElement("div",{className:(0,kr.b)("header",{"with-decoration":r})},e&&i.createElement(so,Object.assign({},e,{onClick:s,compact:a,buttonWrapperClassName:(0,kr.b)("logo-button-wrapper"),buttonClassName:(0,kr.b)("logo-button")})),i.createElement(Zi,{type:"subheader",items:o||lo,onItemClick:t}),r&&i.createElement(f.I,{data:Dr,className:(0,kr.b)("header-divider"),width:56,height:29}))},uo=()=>{const{panelItems:e,onClosePanel:t,size:n}=rr();return e?i.createElement(ki,{className:(0,kr.b)("panels"),onVeilClick:t,onEscape:t,style:{left:n}},e.map((e=>i.createElement(Ci,Object.assign({key:e.id},e))))):null},fo=i.forwardRef(((e,t)=>{const{size:n,onItemClick:r,headerDecoration:o,multipleTooltip:a,menuMoreTitle:s,onMenuMoreClick:l,renderFooter:c,compact:u,customBackground:d,customBackgroundClassName:f,className:p,hideCollapseButton:h,qa:m}=rr(),g=(()=>{const{menuItems:e,allPagesIsAvailable:t}=rr();return(0,i.useMemo)((()=>{if(!t)return e;let n=0;return e.filter(((e,t,r)=>!e.hidden&&(!(t>0&&"divider"===e.type)||"divider"!==r[n].type&&!r[n].hidden)&&(n=t,!0)))}),[t,e])})(),v=(0,i.useRef)(null);return i.useEffect((()=>{(0,Tr.c)(t,v.current)}),[t]),i.createElement(i.Fragment,null,i.createElement("div",{className:(0,kr.b)("aside",p),style:{width:n},"data-qa":m},i.createElement("div",{className:(0,kr.b)("aside-popup-anchor"),ref:v}),i.createElement("div",{className:(0,kr.b)("aside-content",{"with-decoration":o})},d&&i.createElement("div",{className:(0,kr.b)("aside-custom-background",f)},d),i.createElement(co,null),(null===g||void 0===g?void 0:g.length)?i.createElement(Zi,{type:"menu",items:g,menuMoreTitle:null!==s&&void 0!==s?s:to("label_more"),onItemClick:r,onMoreClick:l,multipleTooltip:a}):i.createElement("div",{className:(0,kr.b)("menu-items")}),i.createElement("div",{className:(0,kr.b)("footer")},null===c||void 0===c?void 0:c({size:n,compact:Boolean(u),asideRef:v})),!h&&i.createElement(oo,null))),i.createElement(uo,null))}));var po;fo.displayName="FirstPanel",function(e){e.AllPages="all-pages"}(po||(po={}));const ho=[],mo=e=>{const{size:t,onClosePanel:n,menuItems:r,panelItems:o,onMenuItemsChanged:a,onAllPagesClick:s}=e,[l,c]=(0,i.useState)(),u=i.useMemo((()=>({id:Ai,title:Ti("menu-item.all-pages.title"),tooltipText:Ti("menu-item.all-pages.title"),icon:sr.A})),[]),d=Boolean(a)&&(!r||(null===r||void 0===r?void 0:r.length)>0);(0,i.useEffect)((()=>{(null===o||void 0===o?void 0:o.some((e=>e.visible)))&&c(void 0)}),[o]);const f=(0,i.useCallback)((()=>{c(void 0),null===n||void 0===n||n()}),[n]),p=(0,i.useCallback)(((e,t,r)=>{var i;e.id===u.id?(null===n||void 0===n||n(),c((e=>e===po.AllPages?void 0:po.AllPages))):f(),null===(i=e.onItemClick)||void 0===i||i.call(e,e,t,r)}),[f,u,n]),h=(0,i.useMemo)((()=>d?[...r||ho,Object.assign(Object.assign({},u),{current:l===po.AllPages,onItemClick:s})]:r||ho),[d,r,l,u,s]),m=(0,i.useMemo)((()=>d?[...o||[],{id:po.AllPages,content:i.createElement(Pi,null),visible:l===po.AllPages}]:o),[d,o,l]);return Object.assign(Object.assign({},e),{onClosePanel:f,allPagesIsAvailable:d,menuItems:h,panelItems:m,size:t,onItemClick:p})},go=i.forwardRef(((e,t)=>{const{size:n,compact:r}=ar(),o=mo(Object.assign({size:n,compact:r},e));return i.createElement(nr,{value:o},i.createElement(fo,{ref:t}))}));go.displayName="PageLayoutAside";const vo=i.forwardRef(((e,t)=>{var{compact:n,className:r,topAlert:o}=e,a=d(e,["compact","className","topAlert"]);return i.createElement(Nr,{compact:n,className:r,topAlert:o},i.createElement(go,Object.assign({ref:t},a)),i.createElement(Nr.Content,{renderContent:a.renderContent}))}));vo.displayName="AsideHeader";var yo,bo=n(59001);function wo(){return wo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wo.apply(null,arguments)}const xo=function(e){return i.createElement("svg",wo({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"},e),yo||(yo=i.createElement("path",{d:"M560 448h-48V113.5c0-27.25-21.5-49.5-48-49.5l-112 .01V128h96v384h112c8.875 0 16-7.125 16-15.1v-31.1c0-10.7-7.1-17.8-16-17.8zM280.3 1.007l-192 49.75C73.1 54.51 64 67.76 64 82.88V448H16c-8.875 0-16 7.125-16 15.1v31.1C0 504.9 7.125 512 16 512h304V33.13c0-21.5-19.5-37.373-39.7-32.123zM232 288c-13.25 0-24-14.37-24-31.1 0-17.62 10.75-31.1 24-31.1s24 12.6 24 30.2-10.7 32-24 32z"})))},_o=(0,pe.cn)("kv-navigation");function Eo({isCompact:e,popupAnchor:t,user:n,children:r}){var o;const[a,s]=i.useState(!1),l=n?null!==(o=n.icon)&&void 0!==o?o:Yn:xo;return(0,oe.jsx)(Er,{compact:e,item:{id:"user-popup",title:null!==n&&void 0!==n&&n.login?n.login:ve("navigation-item.account"),current:a,icon:l,onItemClick:()=>s((e=>!e))},enableTooltip:!a,popupAnchor:t,popupVisible:a,onClosePopup:()=>s(!1),renderPopupContent:()=>(0,oe.jsx)("div",{className:_o("ydb-user-wrapper"),children:r})})}var So=function(e){return e.UserSettings="UserSettings",e}(So||{});function Co(e){const t=(0,ue.W6)(),[n,r]=i.useState(),[o,a]=(0,u.iK)(Le.LQ);return(0,oe.jsx)(i.Fragment,{children:(0,oe.jsx)(vo,{logo:{text:"YDB",icon:St,onClick:()=>t.push("/")},menuItems:e.menuItems,compact:o,onChangeCompact:a,className:_o(),renderContent:()=>e.content,renderFooter:({compact:t,asideRef:o})=>(0,oe.jsxs)(i.Fragment,{children:[(0,oe.jsx)(Er,{compact:t,item:{id:"documentation",title:ve("navigation-item.documentation"),icon:Qn.A,onItemClick:()=>{window.open("ru"===bo.f.readUserSettingsValue(Le.jS,navigator.language)?"https://ydb.tech/docs/ru/":"https://ydb.tech/docs/en/","_blank","noreferrer")}}}),(0,oe.jsx)(Er,{item:{id:"user-settings",title:ve("navigation-item.settings"),icon:Zn.A,current:n===So.UserSettings,onItemClick:()=>{r(n===So.UserSettings?void 0:So.UserSettings)}},compact:t}),(0,oe.jsx)(Eo,{isCompact:t,popupAnchor:o,user:e.user,children:e.ydbInternalUser})]}),panelItems:[{id:"user-settings",visible:n===So.UserSettings,content:e.settings}],onClosePanel:()=>{r(void 0)}})})}const ko=(new class{constructor(){this.type=void 0,this.entities={}}set(e,t){return this.entities[e]=t,this}get(e){return this.entities[e]}register(e,t){return this.entities[e]=t,this}}).register("StaffCard",(function({children:e}){return(0,oe.jsx)(i.Fragment,{children:e})})).register("AsideNavigation",Co).register("ErrorBoundary",s.lQ);function Oo({store:e,history:t,componentsRegistry:n=ko,children:r}){return(0,oe.jsx)(o.vd,{children:(0,oe.jsx)(a.Kq,{store:e,children:(0,oe.jsx)(ue.Ix,{history:t,children:(0,oe.jsx)(Kn.QueryParamProvider,{adapter:Gn,children:(0,oe.jsx)(No,{children:(0,oe.jsx)(l.I,{registry:n,children:(0,oe.jsx)(Vn.Kq,{children:r})})})})})})})}function No({children:e}){const[t]=(0,u.iK)(Le.k4);return(0,oe.jsx)(Wn.N,{theme:t,children:e})}const To=(0,a.Ng)((function(e){return{singleClusterMode:e.singleClusterMode}}))((function({store:e,history:t,singleClusterMode:n,children:r,userSettings:i=lt({singleClusterMode:n})}){return(0,oe.jsxs)(Oo,{store:e,history:t,children:[(0,oe.jsx)(o.mg,{defaultTitle:"YDB Monitoring",titleTemplate:"%s \u2014 YDB Monitoring"}),(0,oe.jsx)(Hn,{children:(0,oe.jsx)(we,{userSettings:i,children:(0,oe.jsxs)(s.tH,{children:[(0,oe.jsx)(Fn,{singleClusterMode:n,children:r}),(0,oe.jsx)("div",{id:"fullscreen-root"})]})})}),(0,oe.jsx)(Ie,{})]})}));function Ao({monitoring:e,dbName:t,dbType:n,clusterName:r}){try{const a=Po(e);if(a){var i,o;const e=null!==(i=a.host)&&void 0!==i?i:"cluster",s=null!==(o=a.slot)&&void 0!==o?o:"static",l=a.cluster_name||r||"",c=new URL(a.monitoring_url);if(!c.search){const e="Serverless"===n?a.serverless_dashboard:a.dedicated_dashboard;c.pathname+=`/${e}`}return c.searchParams.has("p.cluster")||c.searchParams.set("p.cluster",l),c.searchParams.set("p.host",e),c.searchParams.set("p.slot",s),c.searchParams.set("p.database",t),c.toString()}}catch{}return""}function Io(e,t){try{const n=Po(e);if(n){const e=n.cluster_dashboard,r=n.cluster_name||t||"",i=new URL(n.monitoring_url);return!i.search&&e&&(i.pathname+=`/${e}/view`),i.searchParams.has("p.cluster")||i.searchParams.set("p.cluster",r),i.searchParams.set("p.database","-"),i.toString()}}catch{}return""}function Po(e){try{const t=JSON.parse(e);if("object"===typeof t&&"monitoring_url"in t)return t}catch{}}var Ro=n(96873),Do=n(40537),jo=n(88655),Mo=n(69446),Lo=n(77630),zo=n(39567);const Fo=(0,pe.cn)("extended-cluster"),Bo=e=>{const t=(0,Mo.Zd)(e);return{label:"Balancer",value:(0,oe.jsxs)("div",{className:Fo("balancer"),children:[t,(0,oe.jsx)(Ro.b,{text:t,size:"s",className:Fo("clipboard-button")})]})}},Uo=(e,t,n,r)=>{const i={};if(t&&r){const n=r(t,e);n&&(i.links=[{title:"Monitoring",url:n}])}return n&&(i.info=[Bo(n)]),i},qo=(e=[])=>({getVersionToColorMap:()=>(0,Do.Vm)((0,Do.HD)(e))}),$o=(e,t,n,r,i)=>{const o={prepareTenantBackend:e=>{var t;if(n){if(r)return(0,Mo.PG)(n);if(e)return"string"===typeof e?(0,Lo.De)(e,n):null!==(t=(0,Lo.Vk)(e,n,!0))&&void 0!==t?t:void 0}}};return t&&i&&(o.getMonitoringLink=(n,r)=>n&&r?i({monitoring:t,dbName:n,dbType:r,clusterName:e}):null),o};function Ho({component:e,getMonitoringLink:t,getMonitoringClusterLink:n}){const r=function(){const[e]=(0,Kn.useQueryParam)("clusterName",Kn.StringParam),{data:t}=zo.ub.useGetClustersListQuery(void 0);return i.useMemo((()=>{const n=(t||[]).find((t=>t.name===e));return null===n||void 0===n?void 0:n.versions}),[t,e])}(),o=(0,jo.E)(),{name:a,balancer:s,monitoring:l}=(0,Xt.Zd)(),[c]=(0,u.iK)(Le.s2);return(0,oe.jsx)("div",{className:Fo(),children:(0,oe.jsx)(e,{additionalClusterProps:Uo(a,l,s,n),additionalVersionsProps:qo(r),additionalTenantsProps:$o(a,l,s,c,t),additionalNodesProps:o})})}function Vo({component:e,getMonitoringLink:t}){const{monitoring:n}=(0,Xt.Zd)(),r=(0,jo.E)(),i={getMonitoringLink:(e,r)=>n&&e&&r&&t?t({monitoring:n,dbName:e,dbType:r}):null};return(0,oe.jsx)(e,{additionalTenantProps:i,additionalNodesProps:r})}function Wo({store:e,history:t,getMonitoringLink:n=Ao,getMonitoringClusterLink:r=Io,userSettings:i,children:o}){return(0,oe.jsxs)(To,{store:e,history:t,userSettings:i,children:[(0,oe.jsx)(En,{children:({component:e})=>(0,oe.jsx)(Ho,{component:e,getMonitoringLink:n,getMonitoringClusterLink:r})}),(0,oe.jsx)(Sn,{children:({component:e})=>(0,oe.jsx)(Vo,{component:e,getMonitoringLink:n})}),o]})}var Ko=n(58351),Go=n(28197),Yo=n(88610),Qo=n(59625),Zo=n(42566)},25540:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,{A:()=>i})},26180:(e,t,n)=>{var r=n(62871),i=n(6737);e.exports=function(e){return r(e,i(e))}},26237:(e,t,n)=>{const r=n(22750),i=r.getBCHDigit(1335);t.getEncodedBits=function(e,t){const n=e.bit<<3|t;let o=n<<10;for(;r.getBCHDigit(o)-i>=0;)o^=1335<<r.getBCHDigit(o)-i;return 21522^(n<<10|o)}},26905:(e,t,n)=>{var r=n(935),i=n(37815),o=n(97269);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},27145:(e,t,n)=>{"use strict";n.d(t,{Tt:()=>r});function r(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}Object.create;Object.create;"function"===typeof SuppressedError&&SuppressedError},27199:(e,t,n)=>{"use strict";var r="undefined"!==typeof Symbol&&Symbol,i=n(80605);e.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&i())))}},27612:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"m7.836 6 .76-2.027L9.336 2H5.5a.72.72 0 0 0-.664.45L2.513 8.257a.177.177 0 0 0 .164.243h4.965l-.732 2.013-1.082 2.975a.382.382 0 0 0 .637.392l6.956-7.391A.29.29 0 0 0 13.21 6H7.835m2.727-3 .235-.627A1.386 1.386 0 0 0 9.5.5h-4c-.906 0-1.72.552-2.057 1.393L1.12 7.7A1.677 1.677 0 0 0 2.677 10H5.5l-.545 1.5-.537 1.475a1.882 1.882 0 0 0 3.14 1.933l6.956-7.391A1.79 1.79 0 0 0 13.21 4.5H10z",clipRule:"evenodd"}))},27629:(e,t,n)=>{"use strict";n.d(t,{m:()=>i});const r=new Map;function i(e){!e||r.has(e)}},27738:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.199 2H8.8a.2.2 0 0 1 .2.2c0 1.808 1.958 2.939 3.524 2.034a.2.2 0 0 1 .271.073l.802 1.388a.2.2 0 0 1-.073.272c-1.566.904-1.566 3.164 0 4.069a.2.2 0 0 1 .073.271l-.802 1.388a.2.2 0 0 1-.271.073C10.958 10.863 9 11.993 9 13.8a.2.2 0 0 1-.199.2H7.2a.2.2 0 0 1-.2-.2c0-1.808-1.958-2.938-3.524-2.034a.2.2 0 0 1-.272-.073l-.8-1.388a.2.2 0 0 1 .072-.271c1.566-.905 1.566-3.165 0-4.07a.2.2 0 0 1-.073-.27l.801-1.389a.2.2 0 0 1 .272-.072C5.042 5.138 7 4.007 7 2.199c0-.11.089-.199.199-.199M5.5 2.2c0-.94.76-1.7 1.699-1.7H8.8c.94 0 1.7.76 1.7 1.7a.85.85 0 0 0 1.274.735 1.7 1.7 0 0 1 2.32.622l.802 1.388c.469.813.19 1.851-.622 2.32a.85.85 0 0 0 0 1.472 1.7 1.7 0 0 1 .622 2.32l-.802 1.388a1.7 1.7 0 0 1-2.32.622.85.85 0 0 0-1.274.735c0 .939-.76 1.7-1.699 1.7H7.2a1.7 1.7 0 0 1-1.699-1.7.85.85 0 0 0-1.274-.735 1.7 1.7 0 0 1-2.32-.622l-.802-1.388a1.7 1.7 0 0 1 .622-2.32.85.85 0 0 0 0-1.471 1.7 1.7 0 0 1-.622-2.32l.801-1.389a1.7 1.7 0 0 1 2.32-.622A.85.85 0 0 0 5.5 2.2m4 5.8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M11 8a3 3 0 1 1-6 0 3 3 0 0 1 6 0",clipRule:"evenodd"}))},28197:(e,t,n)=>{"use strict";n.d(t,{i:()=>gr});var r={};n.r(r),n.d(r,{hasBrowserEnv:()=>de,hasStandardBrowserEnv:()=>pe,hasStandardBrowserWebWorkerEnv:()=>he,navigator:()=>fe,origin:()=>me});var i=n(58671),o=n.n(i);function a(e,t){return function(){return e.apply(t,arguments)}}const{toString:s}=Object.prototype,{getPrototypeOf:l}=Object,c=(u=Object.create(null),e=>{const t=s.call(e);return u[t]||(u[t]=t.slice(8,-1).toLowerCase())});var u;const d=e=>(e=e.toLowerCase(),t=>c(t)===e),f=e=>t=>typeof t===e,{isArray:p}=Array,h=f("undefined");const m=d("ArrayBuffer");const g=f("string"),v=f("function"),y=f("number"),b=e=>null!==e&&"object"===typeof e,w=e=>{if("object"!==c(e))return!1;const t=l(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},x=d("Date"),_=d("File"),E=d("Blob"),S=d("FileList"),C=d("URLSearchParams"),[k,O,N,T]=["ReadableStream","Request","Response","Headers"].map(d);function A(e,t,{allOwnKeys:n=!1}={}){if(null===e||"undefined"===typeof e)return;let r,i;if("object"!==typeof e&&(e=[e]),p(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let a;for(r=0;r<o;r++)a=i[r],t.call(null,e[a],a,e)}}function I(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,i=n.length;for(;i-- >0;)if(r=n[i],t===r.toLowerCase())return r;return null}const P="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global,R=e=>!h(e)&&e!==P;const D=(j="undefined"!==typeof Uint8Array&&l(Uint8Array),e=>j&&e instanceof j);var j;const M=d("HTMLFormElement"),L=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),z=d("RegExp"),F=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};A(n,((n,i)=>{let o;!1!==(o=t(n,i,e))&&(r[i]=o||n)})),Object.defineProperties(e,r)},B="abcdefghijklmnopqrstuvwxyz",U="0123456789",q={DIGIT:U,ALPHA:B,ALPHA_DIGIT:B+B.toUpperCase()+U};const $=d("AsyncFunction"),H=((e,t)=>{return e?setImmediate:t?(n=`axios@${Math.random()}`,r=[],P.addEventListener("message",(({source:e,data:t})=>{e===P&&t===n&&r.length&&r.shift()()}),!1),e=>{r.push(e),P.postMessage(n,"*")}):e=>setTimeout(e);var n,r})("function"===typeof setImmediate,v(P.postMessage)),V="undefined"!==typeof queueMicrotask?queueMicrotask.bind(P):"undefined"!==typeof process&&process.nextTick||H,W={isArray:p,isArrayBuffer:m,isBuffer:function(e){return null!==e&&!h(e)&&null!==e.constructor&&!h(e.constructor)&&v(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||v(e.append)&&("formdata"===(t=c(e))||"object"===t&&v(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&m(e.buffer),t},isString:g,isNumber:y,isBoolean:e=>!0===e||!1===e,isObject:b,isPlainObject:w,isReadableStream:k,isRequest:O,isResponse:N,isHeaders:T,isUndefined:h,isDate:x,isFile:_,isBlob:E,isRegExp:z,isFunction:v,isStream:e=>b(e)&&v(e.pipe),isURLSearchParams:C,isTypedArray:D,isFileList:S,forEach:A,merge:function e(){const{caseless:t}=R(this)&&this||{},n={},r=(r,i)=>{const o=t&&I(n,i)||i;w(n[o])&&w(r)?n[o]=e(n[o],r):w(r)?n[o]=e({},r):p(r)?n[o]=r.slice():n[o]=r};for(let i=0,o=arguments.length;i<o;i++)arguments[i]&&A(arguments[i],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(A(t,((t,r)=>{n&&v(t)?e[r]=a(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&l(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:c,kindOfTest:d,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(p(e))return e;let t=e.length;if(!y(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:M,hasOwnProperty:L,hasOwnProp:L,reduceDescriptors:F,freezeMethods:e=>{F(e,((t,n)=>{if(v(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];v(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return p(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:I,global:P,isContextDefined:R,ALPHABET:q,generateString:(e=16,t=q.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&v(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(b(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const i=p(e)?[]:{};return A(e,((e,t)=>{const o=n(e,r+1);!h(o)&&(i[t]=o)})),t[r]=void 0,i}}return e};return n(e,0)},isAsyncFn:$,isThenable:e=>e&&(b(e)||v(e))&&v(e.then)&&v(e.catch),setImmediate:H,asap:V};function K(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}W.inherits(K,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:W.toJSONObject(this.config),code:this.code,status:this.status}}});const G=K.prototype,Y={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{Y[e]={value:e}})),Object.defineProperties(K,Y),Object.defineProperty(G,"isAxiosError",{value:!0}),K.from=(e,t,n,r,i,o)=>{const a=Object.create(G);return W.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),K.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const Q=K;function Z(e){return W.isPlainObject(e)||W.isArray(e)}function J(e){return W.endsWith(e,"[]")?e.slice(0,-2):e}function X(e,t,n){return e?e.concat(t).map((function(e,t){return e=J(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const ee=W.toFlatObject(W,{},null,(function(e){return/^is[A-Z]/.test(e)}));const te=function(e,t,n){if(!W.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=W.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!W.isUndefined(t[e])}))).metaTokens,i=n.visitor||c,o=n.dots,a=n.indexes,s=(n.Blob||"undefined"!==typeof Blob&&Blob)&&W.isSpecCompliantForm(t);if(!W.isFunction(i))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(W.isDate(e))return e.toISOString();if(!s&&W.isBlob(e))throw new Q("Blob is not supported. Use a Buffer instead.");return W.isArrayBuffer(e)||W.isTypedArray(e)?s&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,i){let s=e;if(e&&!i&&"object"===typeof e)if(W.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(W.isArray(e)&&function(e){return W.isArray(e)&&!e.some(Z)}(e)||(W.isFileList(e)||W.endsWith(n,"[]"))&&(s=W.toArray(e)))return n=J(n),s.forEach((function(e,r){!W.isUndefined(e)&&null!==e&&t.append(!0===a?X([n],r,o):null===a?n:n+"[]",l(e))})),!1;return!!Z(e)||(t.append(X(i,n,o),l(e)),!1)}const u=[],d=Object.assign(ee,{defaultVisitor:c,convertValue:l,isVisitable:Z});if(!W.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!W.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),W.forEach(n,(function(n,o){!0===(!(W.isUndefined(n)||null===n)&&i.call(t,n,W.isString(o)?o.trim():o,r,d))&&e(n,r?r.concat(o):[o])})),u.pop()}}(e),t};function ne(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function re(e,t){this._pairs=[],e&&te(e,this,t)}const ie=re.prototype;ie.append=function(e,t){this._pairs.push([e,t])},ie.toString=function(e){const t=e?function(t){return e.call(this,t,ne)}:ne;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const oe=re;function ae(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function se(e,t,n){if(!t)return e;const r=n&&n.encode||ae;W.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(o=i?i(t,n):W.isURLSearchParams(t)?t.toString():new oe(t,n).toString(r),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}const le=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){W.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},ce={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ue={isBrowser:!0,classes:{URLSearchParams:"undefined"!==typeof URLSearchParams?URLSearchParams:oe,FormData:"undefined"!==typeof FormData?FormData:null,Blob:"undefined"!==typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},de="undefined"!==typeof window&&"undefined"!==typeof document,fe="object"===typeof navigator&&navigator||void 0,pe=de&&(!fe||["ReactNative","NativeScript","NS"].indexOf(fe.product)<0),he="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts,me=de&&window.location.href||"http://localhost",ge={...r,...ue};const ve=function(e){function t(e,n,r,i){let o=e[i++];if("__proto__"===o)return!0;const a=Number.isFinite(+o),s=i>=e.length;if(o=!o&&W.isArray(r)?r.length:o,s)return W.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!a;r[o]&&W.isObject(r[o])||(r[o]=[]);return t(e,n,r[o],i)&&W.isArray(r[o])&&(r[o]=function(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}(r[o])),!a}if(W.isFormData(e)&&W.isFunction(e.entries)){const n={};return W.forEachEntry(e,((e,r)=>{t(function(e){return W.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null};const ye={transitional:ce,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=W.isObject(e);i&&W.isHTMLForm(e)&&(e=new FormData(e));if(W.isFormData(e))return r?JSON.stringify(ve(e)):e;if(W.isArrayBuffer(e)||W.isBuffer(e)||W.isStream(e)||W.isFile(e)||W.isBlob(e)||W.isReadableStream(e))return e;if(W.isArrayBufferView(e))return e.buffer;if(W.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return te(e,new ge.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return ge.isNode&&W.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=W.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return te(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||r?(t.setContentType("application/json",!1),function(e,t,n){if(W.isString(e))try{return(t||JSON.parse)(e),W.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ye.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(W.isResponse(e)||W.isReadableStream(e))return e;if(e&&W.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(i){if(n){if("SyntaxError"===i.name)throw Q.from(i,Q.ERR_BAD_RESPONSE,this,null,this.response);throw i}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ge.classes.FormData,Blob:ge.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};W.forEach(["delete","get","head","post","put","patch"],(e=>{ye.headers[e]={}}));const be=ye,we=W.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),xe=Symbol("internals");function _e(e){return e&&String(e).trim().toLowerCase()}function Ee(e){return!1===e||null==e?e:W.isArray(e)?e.map(Ee):String(e)}function Se(e,t,n,r,i){return W.isFunction(r)?r.call(this,t,n):(i&&(t=n),W.isString(t)?W.isString(r)?-1!==t.indexOf(r):W.isRegExp(r)?r.test(t):void 0:void 0)}class Ce{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function i(e,t,n){const i=_e(t);if(!i)throw new Error("header name must be a non-empty string");const o=W.findKey(r,i);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||t]=Ee(e))}const o=(e,t)=>W.forEach(e,((e,n)=>i(e,n,t)));if(W.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(W.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))o((e=>{const t={};let n,r,i;return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!n||t[n]&&we[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(W.isHeaders(e))for(const[a,s]of e.entries())i(s,a,n);else null!=e&&i(t,e,n);return this}get(e,t){if(e=_e(e)){const n=W.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(W.isFunction(t))return t.call(this,e,n);if(W.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=_e(e)){const n=W.findKey(this,e);return!(!n||void 0===this[n]||t&&!Se(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function i(e){if(e=_e(e)){const i=W.findKey(n,e);!i||t&&!Se(0,n[i],i,t)||(delete n[i],r=!0)}}return W.isArray(e)?e.forEach(i):i(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const i=t[n];e&&!Se(0,this[i],i,e,!0)||(delete this[i],r=!0)}return r}normalize(e){const t=this,n={};return W.forEach(this,((r,i)=>{const o=W.findKey(n,i);if(o)return t[o]=Ee(r),void delete t[i];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(i):String(i).trim();a!==i&&delete t[i],t[a]=Ee(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return W.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&W.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[xe]=this[xe]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=_e(e);t[r]||(!function(e,t){const n=W.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})}))}(n,e),t[r]=!0)}return W.isArray(e)?e.forEach(r):r(e),this}}Ce.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),W.reduceDescriptors(Ce.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),W.freezeMethods(Ce);const ke=Ce;function Oe(e,t){const n=this||be,r=t||n,i=ke.from(r.headers);let o=r.data;return W.forEach(e,(function(e){o=e.call(n,o,i.normalize(),t?t.status:void 0)})),i.normalize(),o}function Ne(e){return!(!e||!e.__CANCEL__)}function Te(e,t,n){Q.call(this,null==e?"canceled":e,Q.ERR_CANCELED,t,n),this.name="CanceledError"}W.inherits(Te,Q,{__CANCEL__:!0});const Ae=Te;function Ie(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Q("Request failed with status code "+n.status,[Q.ERR_BAD_REQUEST,Q.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const Pe=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i,o=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];i||(i=l),n[o]=s,r[o]=l;let u=a,d=0;for(;u!==o;)d+=n[u++],u%=e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),l-i<t)return;const f=c&&l-c;return f?Math.round(1e3*d/f):void 0}};const Re=function(e,t){let n,r,i=0,o=1e3/t;const a=(t,o=Date.now())=>{i=o,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-i;s>=o?a(e,t):(n=e,r||(r=setTimeout((()=>{r=null,a(n)}),o-s)))},()=>n&&a(n)]},De=(e,t,n=3)=>{let r=0;const i=Pe(50,250);return Re((n=>{const o=n.loaded,a=n.lengthComputable?n.total:void 0,s=o-r,l=i(s);r=o;e({loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&o<=a?(a-o)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),n)},je=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Me=e=>(...t)=>W.asap((()=>e(...t))),Le=ge.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ge.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ge.origin),ge.navigator&&/(msie|trident)/i.test(ge.navigator.userAgent)):()=>!0,ze=ge.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];W.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),W.isString(r)&&a.push("path="+r),W.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Fe(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Be=e=>e instanceof ke?{...e}:e;function Ue(e,t){t=t||{};const n={};function r(e,t,n,r){return W.isPlainObject(e)&&W.isPlainObject(t)?W.merge.call({caseless:r},e,t):W.isPlainObject(t)?W.merge({},t):W.isArray(t)?t.slice():t}function i(e,t,n,i){return W.isUndefined(t)?W.isUndefined(e)?void 0:r(void 0,e,0,i):r(e,t,0,i)}function o(e,t){if(!W.isUndefined(t))return r(void 0,t)}function a(e,t){return W.isUndefined(t)?W.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,i,o){return o in t?r(n,i):o in e?r(void 0,n):void 0}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>i(Be(e),Be(t),0,!0)};return W.forEach(Object.keys(Object.assign({},e,t)),(function(r){const o=l[r]||i,a=o(e[r],t[r],r);W.isUndefined(a)&&o!==s||(n[r]=a)})),n}const qe=e=>{const t=Ue({},e);let n,{data:r,withXSRFToken:i,xsrfHeaderName:o,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=ke.from(s),t.url=se(Fe(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),W.isFormData(r))if(ge.hasStandardBrowserEnv||ge.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(ge.hasStandardBrowserEnv&&(i&&W.isFunction(i)&&(i=i(t)),i||!1!==i&&Le(t.url))){const e=o&&a&&ze.read(a);e&&s.set(o,e)}return t},$e="undefined"!==typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=qe(e);let i=r.data;const o=ke.from(r.headers).normalize();let a,s,l,c,u,{responseType:d,onUploadProgress:f,onDownloadProgress:p}=r;function h(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=ke.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Ie((function(e){t(e),h()}),(function(e){n(e),h()}),{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new Q("Request aborted",Q.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new Q("Network Error",Q.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const i=r.transitional||ce;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Q(t,i.clarifyTimeoutError?Q.ETIMEDOUT:Q.ECONNABORTED,e,m)),m=null},void 0===i&&o.setContentType(null),"setRequestHeader"in m&&W.forEach(o.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),W.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),p&&([l,u]=De(p,!0),m.addEventListener("progress",l)),f&&m.upload&&([s,c]=De(f),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{m&&(n(!t||t.type?new Ae(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const v=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);v&&-1===ge.protocols.indexOf(v)?n(new Q("Unsupported protocol "+v+":",Q.ERR_BAD_REQUEST,e)):m.send(i||null)}))},He=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const i=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof Q?t:new Ae(t instanceof Error?t.message:t))}};let o=t&&setTimeout((()=>{o=null,i(new Q(`timeout ${t} of ms exceeded`,Q.ETIMEDOUT))}),t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)})),e=null)};e.forEach((e=>e.addEventListener("abort",i)));const{signal:s}=r;return s.unsubscribe=()=>W.asap(a),s}},Ve=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,i=0;for(;i<n;)r=i+t,yield e.slice(i,r),i=r},We=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},Ke=(e,t,n,r)=>{const i=async function*(e,t){for await(const n of We(e))yield*Ve(n,t)}(e,t);let o,a=0,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await i.next();if(t)return s(),void e.close();let o=r.byteLength;if(n){let e=a+=o;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw s(t),t}},cancel:e=>(s(e),i.return())},{highWaterMark:2})},Ge="function"===typeof fetch&&"function"===typeof Request&&"function"===typeof Response,Ye=Ge&&"function"===typeof ReadableStream,Qe=Ge&&("function"===typeof TextEncoder?(Ze=new TextEncoder,e=>Ze.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var Ze;const Je=(e,...t)=>{try{return!!e(...t)}catch(n){return!1}},Xe=Ye&&Je((()=>{let e=!1;const t=new Request(ge.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),et=Ye&&Je((()=>W.isReadableStream(new Response("").body))),tt={stream:et&&(e=>e.body)};var nt;Ge&&(nt=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!tt[e]&&(tt[e]=W.isFunction(nt[e])?t=>t[e]():(t,n)=>{throw new Q(`Response type '${e}' is not supported`,Q.ERR_NOT_SUPPORT,n)})})));const rt=async(e,t)=>{const n=W.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(W.isBlob(e))return e.size;if(W.isSpecCompliantForm(e)){const t=new Request(ge.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return W.isArrayBufferView(e)||W.isArrayBuffer(e)?e.byteLength:(W.isURLSearchParams(e)&&(e+=""),W.isString(e)?(await Qe(e)).byteLength:void 0)})(t):n},it={http:null,xhr:$e,fetch:Ge&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:o,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:f}=qe(e);c=c?(c+"").toLowerCase():"text";let p,h=He([i,o&&o.toAbortSignal()],a);const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(l&&Xe&&"get"!==n&&"head"!==n&&0!==(g=await rt(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(W.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=je(g,De(Me(l)));r=Ke(n.body,65536,e,t)}}W.isString(d)||(d=d?"include":"omit");const i="credentials"in Request.prototype;p=new Request(t,{...f,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:i?d:void 0});let o=await fetch(p);const a=et&&("stream"===c||"response"===c);if(et&&(s||a&&m)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=W.toFiniteNumber(o.headers.get("content-length")),[n,r]=s&&je(t,De(Me(s),!0))||[];o=new Response(Ke(o.body,65536,n,(()=>{r&&r(),m&&m()})),e)}c=c||"text";let v=await tt[W.findKey(tt,c)||"text"](o,e);return!a&&m&&m(),await new Promise(((t,n)=>{Ie(t,n,{data:v,headers:ke.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:p})}))}catch(v){if(m&&m(),v&&"TypeError"===v.name&&/fetch/i.test(v.message))throw Object.assign(new Q("Network Error",Q.ERR_NETWORK,e,p),{cause:v.cause||v});throw Q.from(v,v&&v.code,e,p)}})};W.forEach(it,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}}));const ot=e=>`- ${e}`,at=e=>W.isFunction(e)||null===e||!1===e,st=e=>{e=W.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o<t;o++){let t;if(n=e[o],r=n,!at(n)&&(r=it[(t=String(n)).toLowerCase()],void 0===r))throw new Q(`Unknown adapter '${t}'`);if(r)break;i[t||"#"+o]=r}if(!r){const e=Object.entries(i).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(ot).join("\n"):" "+ot(e[0]):"as no adapter specified";throw new Q("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function lt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ae(null,e)}function ct(e){lt(e),e.headers=ke.from(e.headers),e.data=Oe.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return st(e.adapter||be.adapter)(e).then((function(t){return lt(e),t.data=Oe.call(e,e.transformResponse,t),t.headers=ke.from(t.headers),t}),(function(t){return Ne(t)||(lt(e),t&&t.response&&(t.response.data=Oe.call(e,e.transformResponse,t.response),t.response.headers=ke.from(t.response.headers))),Promise.reject(t)}))}const ut="1.7.9",dt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{dt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const ft={};dt.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.9] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,o)=>{if(!1===e)throw new Q(r(i," has been removed"+(t?" in "+t:"")),Q.ERR_DEPRECATED);return t&&!ft[i]&&(ft[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}},dt.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const pt={assertOptions:function(e,t,n){if("object"!==typeof e)throw new Q("options must be an object",Q.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const t=e[o],n=void 0===t||a(t,o,e);if(!0!==n)throw new Q("option "+o+" must be "+n,Q.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Q("Unknown option "+o,Q.ERR_BAD_OPTION)}},validators:dt},ht=pt.validators;class mt{constructor(e){this.defaults=e,this.interceptors={request:new le,response:new le}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(r){}}throw n}}_request(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{},t=Ue(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;void 0!==n&&pt.assertOptions(n,{silentJSONParsing:ht.transitional(ht.boolean),forcedJSONParsing:ht.transitional(ht.boolean),clarifyTimeoutError:ht.transitional(ht.boolean)},!1),null!=r&&(W.isFunction(r)?t.paramsSerializer={serialize:r}:pt.assertOptions(r,{encode:ht.function,serialize:ht.function},!0)),pt.assertOptions(t,{baseUrl:ht.spelling("baseURL"),withXsrfToken:ht.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=i&&W.merge(i.common,i[t.method]);i&&W.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]})),t.headers=ke.concat(o,i);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[ct.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let f=t;for(d=0;d<u;){const e=a[d++],t=a[d++];try{f=e(f)}catch(p){t.call(this,p);break}}try{c=ct.call(this,f)}catch(p){return Promise.reject(p)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return se(Fe((e=Ue(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}W.forEach(["delete","get","head","options"],(function(e){mt.prototype[e]=function(t,n){return this.request(Ue(n||{},{method:e,url:t,data:(n||{}).data}))}})),W.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,i){return this.request(Ue(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}mt.prototype[e]=t(),mt.prototype[e+"Form"]=t(!0)}));const gt=mt;class vt{constructor(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,i){n.reason||(n.reason=new Ae(e,r,i),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new vt((function(t){e=t})),cancel:e}}}const yt=vt;const bt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(bt).forEach((([e,t])=>{bt[t]=e}));const wt=bt;const xt=function e(t){const n=new gt(t),r=a(gt.prototype.request,n);return W.extend(r,gt.prototype,n,{allOwnKeys:!0}),W.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Ue(t,n))},r}(be);xt.Axios=gt,xt.CanceledError=Ae,xt.CancelToken=yt,xt.isCancel=Ne,xt.VERSION=ut,xt.toFormData=te,xt.AxiosError=Q,xt.Cancel=xt.CanceledError,xt.all=function(e){return Promise.all(e)},xt.spread=function(e){return function(t){return e.apply(null,t)}},xt.isAxiosError=function(e){return W.isObject(e)&&!0===e.isAxiosError},xt.mergeConfig=Ue,xt.AxiosHeaders=ke,xt.formToJSON=e=>ve(W.isHTMLForm(e)?new FormData(e):e),xt.getAdapter=st,xt.HttpStatusCode=wt,xt.default=xt;const _t=xt,{Axios:Et,AxiosError:St,CanceledError:Ct,isCancel:kt,CancelToken:Ot,VERSION:Nt,all:Tt,Cancel:At,isAxiosError:It,spread:Pt,toFormData:Rt,AxiosHeaders:Dt,HttpStatusCode:jt,formToJSON:Mt,getAdapter:Lt,mergeConfig:zt}=_t;class Ft{constructor(e={}){this.setApiEndpoint=(e="")=>{let t=e;"undefined"!==typeof location&&(t=t.replace("%CURRENT_HOST%",location.host)),this.apiEndpoint=t},this.setCSRFToken=e=>{this._axios.defaults.headers.post[this.csrfHeaderName]=e,this._axios.defaults.headers.put[this.csrfHeaderName]=e,this._axios.defaults.headers.delete[this.csrfHeaderName]=e},this.setDefaultHeader=({name:e,value:t,methods:n})=>{const r=this._axios.defaults.headers;Array.isArray(n)?n.forEach((n=>{const i=r[n];i&&i instanceof Dt&&(i[e]=t)})):r.common[e]=t},this.apiPath=e=>`${this.apiEndpoint}${e}`;const{config:t={},apiEndpoint:n="/api",collector:r={},csrfHeaderName:i="X-CSRF-Token"}=e,a=Object.assign({xsrfCookieName:"",timeout:Ft.DEFAULT_TIMEOUT,withCredentials:!0},t);this._axios=_t.create(a),this._axios.defaults.headers=o()(this._axios.defaults.headers),this.requestTokens={},this.setApiEndpoint(n),this.collectorSettings=r,this.collector={errors:[],requests:[]},this.csrfHeaderName=i}collectRequest({method:e,url:t,data:n,requestStart:r,response:i,responseError:o,error:a=!1,cancelled:s=!1}){const{collectErrors:l,collectRequests:c}=this.collectorSettings;if(!l&&!c)return;const{responseText:u="",responseURL:d=t}=i&&i.request||{},f=a&&o instanceof Error?o.message:"",p={method:e,url:d,time:{start:r,end:Number(new Date)},status:i&&i.status,size:u.length,requestData:n&&JSON.stringify(n,null,2)||"",responseData:i&&i.data&&JSON.stringify(i.data,null,2)||f,isError:a,isCancelled:s};l&&a&&(this.collector.errors=[...this.collector.errors,p].slice(-l)),c&&(this.collector.requests=[...this.collector.requests,p].slice(-c))}getCollectedRequests(){return{errors:[...this.collector.errors],requests:[...this.collector.requests]}}async request(e){const{method:t,url:n,data:r=null,params:i,options:o={},retries:a=0}=e,s=o.requestConfig||{},{concurrentId:l,collectRequest:c=!0,timeout:u,headers:d,onDownloadProgress:f}=o;l&&(this.cancelRequest(l),s.cancelToken=this.createRequestToken(l)),d&&(s.headers=d),"undefined"!==typeof u&&(s.timeout=u);const p=Number(new Date),h={method:t,url:n,data:r,params:i,onDownloadProgress:f};try{const e=await this._axios.request(Object.assign(Object.assign({},s),h));return c&&this.collectRequest(Object.assign(Object.assign({},h),{requestStart:p,response:e})),e.data}catch(m){if(_t.isCancel(m))throw{isCancelled:!0,error:m};let t;return t=m.response?m.response:"function"===typeof m.toJSON?m.toJSON():m,c&&this.collectRequest(Object.assign(Object.assign({},h),{requestStart:p,response:t,error:!0,cancelled:_t.isCancel(m),responseError:m})),this.handleRequestError(t,(()=>this.request(Object.assign(Object.assign({},e),{retries:a+1}))),a,new Error(m instanceof Error?m.message:"Unknown error"))}finally{this.clearRequestToken(l)}}cancelRequest(e){e&&this.requestTokens[e]&&this.requestTokens[e].cancel("Concurrent request")}get(e,t,n={}){return this.request({method:"GET",url:e,params:t,options:n})}post(e,t,n,r={}){return this.request({method:"POST",url:e,data:t,params:n,options:r})}put(e,t,n,r={}){return this.request({method:"PUT",url:e,data:t,params:n,options:r})}patch(e,t,n,r={}){return this.request({method:"PATCH",url:e,data:t,params:n,options:r})}delete(e,t,n,r={}){return this.request({method:"DELETE",url:e,data:t,params:n,options:r})}head(e,t,n={}){return this.request({method:"HEAD",url:e,params:t,options:n})}handleRequestError(e){throw e}createRequestToken(e){if(e){const t=_t.CancelToken.source();return this.requestTokens[e]=t,t.token}}clearRequestToken(e){e&&this.requestTokens[e]&&delete this.requestTokens[e]}}Ft.DEFAULT_TIMEOUT=6e4;var Bt=n(70911);const Ut="axios-retry";function qt(e){return!e.response&&(!!e.code&&(!["ERR_CANCELED","ECONNABORTED"].includes(e.code)&&Bt(e)))}const $t=["get","head","options"],Ht=$t.concat(["put","delete"]);function Vt(e){return"ECONNABORTED"!==e.code&&(!e.response||429===e.response.status||e.response.status>=500&&e.response.status<=599)}function Wt(e){return!!e.config?.method&&(Vt(e)&&-1!==Ht.indexOf(e.config.method))}function Kt(e){return qt(e)||Wt(e)}function Gt(e=void 0){const t=e?.response?.headers["retry-after"];if(!t)return 0;let n=1e3*(Number(t)||0);return 0===n&&(n=(new Date(t).valueOf()||0)-Date.now()),Math.max(0,n)}const Yt={retries:3,retryCondition:Kt,retryDelay:function(e=0,t=void 0){return Math.max(0,Gt(t))},shouldResetTimeout:!1,onRetry:()=>{},onMaxRetryTimesExceeded:()=>{},validateResponse:null};function Qt(e,t,n=!1){const r=function(e,t){return{...Yt,...t,...e[Ut]}}(e,t||{});return r.retryCount=r.retryCount||0,r.lastRequestTime&&!n||(r.lastRequestTime=Date.now()),e[Ut]=r,r}const Zt=(e,t)=>{const n=e.interceptors.request.use((e=>(Qt(e,t,!0),e[Ut]?.validateResponse&&(e.validateStatus=()=>!1),e))),r=e.interceptors.response.use(null,(async n=>{const{config:r}=n;if(!r)return Promise.reject(n);const i=Qt(r,t);return n.response&&i.validateResponse?.(n.response)?n.response:await async function(e,t){const{retries:n,retryCondition:r}=e,i=(e.retryCount||0)<n&&r(t);if("object"===typeof i)try{return!1!==await i}catch(o){return!1}return i}(i,n)?async function(e,t,n,r){t.retryCount+=1;const{retryDelay:i,shouldResetTimeout:o,onRetry:a}=t,s=i(t.retryCount,n);if(function(e,t){e.defaults.agent===t.agent&&delete t.agent,e.defaults.httpAgent===t.httpAgent&&delete t.httpAgent,e.defaults.httpsAgent===t.httpsAgent&&delete t.httpsAgent}(e,r),!o&&r.timeout&&t.lastRequestTime){const e=Date.now()-t.lastRequestTime,i=r.timeout-e-s;if(i<=0)return Promise.reject(n);r.timeout=i}return r.transformRequest=[e=>e],await a(t.retryCount,n,r),r.signal?.aborted?Promise.resolve(e(r)):new Promise((t=>{const n=()=>{clearTimeout(i),t(e(r))},i=setTimeout((()=>{t(e(r)),r.signal?.removeEventListener&&r.signal.removeEventListener("abort",n)}),s);r.signal?.addEventListener&&r.signal.addEventListener("abort",n,{once:!0})}))}(e,i,n,r):(await async function(e,t){e.retryCount>=e.retries&&await e.onMaxRetryTimesExceeded(t,e.retryCount)}(i,n),Promise.reject(n))}));return{requestInterceptorId:n,responseInterceptorId:r}};Zt.isNetworkError=qt,Zt.isSafeRequestError=function(e){return!!e.config?.method&&(Vt(e)&&-1!==$t.indexOf(e.config.method))},Zt.isIdempotentRequestError=Wt,Zt.isNetworkOrIdempotentRequestError=Kt,Zt.exponentialDelay=function(e=0,t=void 0,n=100){const r=2**e*n,i=Math.max(r,Gt(t));return i+.2*i*Math.random()},Zt.linearDelay=function(e=100){return(t=0,n=void 0)=>{const r=t*e;return Math.max(r,Gt(n))}},Zt.isRetryableError=Vt;const Jt=Zt;var Xt=n(58351),en=n(76086),tn=n(81288),nn=n(59001);class rn extends Ft{constructor(e){super(e),this.DEFAULT_RETRIES_COUNT=0,Jt(this._axios,{retries:this.DEFAULT_RETRIES_COUNT,retryDelay:Jt.exponentialDelay}),this._axios.interceptors.request.use((function(e){return nn.f.readUserSettingsValue(en.U0)&&(e.headers["X-Want-Trace"]=1),e})),this._axios.interceptors.response.use((function(e){if(e.data&&e.data instanceof Object&&!Array.isArray(e.data)&&e.headers.traceresponse){const t=e.headers.traceresponse.split("-")[1];e.data={...e.data,_meta:{...e.data._meta,traceId:t}}}return e})),this._axios.interceptors.response.use(null,(function(e){const t=e.response;return(0,tn.uP)(t)&&window.location.assign(t.data.authUrl),Promise.reject(e)}))}getPath(e){return`${null!==Xt.Hs&&void 0!==Xt.Hs?Xt.Hs:""}${e}`}prepareArrayRequestParam(e){return e.join(",")}}class on extends rn{authenticate(e){return this.post(this.getPath("/login"),e,{})}logout(){return this.post(this.getPath("/logout"),{},{})}}const an={Ide:"ydb",IdeVersion:"1",PluginFamily:"ydb",PluginVersion:"0.2"};class sn extends rn{getPath(e){return`${null!==Xt.p2&&void 0!==Xt.p2?Xt.p2:""}${e}`}async getCodeAssistSuggestions(e){const t=e.map((e=>{const t=e.cursorPosition.lineNumber,n=e.cursorPosition.column;return{Fragments:e.fragments.map((e=>{let r=e.text;const i=e.end.lineNumber<t||e.end.lineNumber===t&&e.end.column<=n,o=e.start.lineNumber>t||e.start.lineNumber===t&&e.start.column>n;return i?r=r.slice(-8e3):o&&(r=r.slice(0,1e3)),{Text:r,Start:{Ln:e.start.lineNumber,Col:e.start.column},End:{Ln:e.end.lineNumber,Col:e.end.column}}})),Cursor:{Ln:t,Col:n},Path:`${e.path}.yql`}}));const n=await this.post(this.getPath("/code-assist-suggestion"),{Files:t,ContextCreateType:1,IdeInfo:an},null,{concurrentId:"code-assist-suggestion",collectRequest:!1});return{items:n.Suggests.map((e=>e.Text)),requestId:n.RequestId}}sendCodeAssistTelemetry(e){return this.post("/code-assist-telemetry",e,null,{concurrentId:"code-assist-telemetry",collectRequest:!0})}sendCodeAssistOpenTabs(e){return this.post("/code-assist-telemetry",{OpenTabs:{Tabs:(t=e,t.map((e=>{const t=e.Text;return t.length>1e4?{...e,Text:t.slice(0,1e4)}:e}))),IdeInfo:an}},null,{concurrentId:"code-assist-telemetry",collectRequest:!1});var t}}const ln=e=>({TenantInfo:null===e||void 0===e?void 0:e.databases});class cn extends rn{getPath(e){return`${null!==Xt.In&&void 0!==Xt.In?Xt.In:""}${e}`}getClustersList(e,{signal:t}={}){return this.get(this.getPath("/meta/clusters"),null,{requestConfig:{signal:t}})}getTenants(e,{signal:t}={}){return this.get(this.getPath("/meta/cp_databases"),{cluster_name:e},{requestConfig:{signal:t}}).then(ln)}getClusterBaseInfo(e,{concurrentId:t,signal:n}={}){return this.get(this.getPath("/meta/db_clusters"),{name:e},{concurrentId:t,requestConfig:{signal:n}}).then((e=>e.clusters[0]))}}class un extends rn{getOperationList(e,{concurrentId:t,signal:n}={}){return this.get(this.getPath("/operation/list"),{...e},{concurrentId:t,requestConfig:{signal:n}})}cancelOperation(e,{concurrentId:t,signal:n}={}){return this.post(this.getPath("/operation/cancel"),{},{...e},{concurrentId:t,requestConfig:{signal:n}})}forgetOperation(e,{concurrentId:t,signal:n}={}){return this.post(this.getPath("/operation/forget"),{},{...e},{concurrentId:t,requestConfig:{signal:n}})}}var dn=n(31684);class fn extends rn{restartPDisk({nodeId:e,pDiskId:t,force:n}){return this.post(this.getPath("/pdisk/restart"),{},{node_id:e,pdisk_id:t,force:n},{requestConfig:{"axios-retry":{retries:0}}})}changePDiskStatus({nodeId:e,pDiskId:t,force:n,decommissionStatus:r}){return this.post(this.getPath("/pdisk/status"),{decommit_status:r},{node_id:e,pdisk_id:t,force:n},{requestConfig:{"axios-retry":{retries:0}}})}getPDiskInfo({nodeId:e,pDiskId:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/pdisk/info"),{node_id:e,pdisk_id:t},{concurrentId:n,requestConfig:{signal:r}})}restartPDiskOld({nodeId:e,pDiskId:t}){const n=(0,dn.ar)({nodeId:e,pDiskId:t,host:this.getPath("")});return this.post(n,"restartPDisk=",{},{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}})}}class pn extends rn{createSchemaDirectory({database:e,path:t},{signal:n}={}){return this.post(this.getPath("/scheme/directory"),{},{database:e,path:t},{requestConfig:{signal:n}})}}class hn extends rn{getStorageGroups({nodeId:e,pDiskId:t,groupId:n,fieldsRequired:r,filter:i,...o},{concurrentId:a,signal:s}={}){const l=Array.isArray(e)?this.prepareArrayRequestParam(e):e,c=Array.isArray(t)?this.prepareArrayRequestParam(t):t,u=Array.isArray(n)?this.prepareArrayRequestParam(n):n,d=Array.isArray(r)?this.prepareArrayRequestParam(r):r;return this.get(this.getPath("/storage/groups"),{node_id:l,pdisk_id:c,group_id:u,fields_required:d,filter:i||void 0,timeout:2e4,...o},{concurrentId:a,requestConfig:{signal:s}})}}function mn(e,t=";"){let n,r=";"===t?/(?:^|;)\s*([^=;\s]+)(\s*=\s*(?:"((?:[^"\\]|\\.)*)"|((?:[^;]|\\\;)+))?)?/g:/(?:^|,)\s*([^=,\s]+)(\s*=\s*(?:"((?:[^"\\]|\\.)*)"|((?:[^,]|\\\,)+))?)?/g,i=[];for(;null!==(n=r.exec(e));){let e,t=n[1].trim();n[2]&&(e=(n[3]||n[4]||"").replace(/\\(.)/g,"$1").trim()),i.push([t,e])}return i}function gn(e){return e.includes('"')||e.includes(";")||e.includes(" ")?`"${e.replace(/"/g,'\\"')}"`:e}function vn(e){return null!=e&&"function"===typeof e[Symbol.iterator]}function yn(e){return e instanceof Date&&!isNaN(e.getTime())}function bn(e){return"*"===e||/^(W\/)?".*"$/.test(e)?e:`"${e}"`}var wn=class{#e;constructor(e){if(this.#e=new Map,e){if("string"===typeof e)for(let t of e.split(/\s*,\s*/)){let e=mn(t);if(e.length<1)continue;let n=e[0][0],r=1;for(let t=1;t<e.length;t++){let[n,i]=e[t];if("q"===n){r=Number(i);break}}this.#e.set(n.toLowerCase(),r)}else if(vn(e))for(let t of e)Array.isArray(t)?this.#e.set(t[0].toLowerCase(),t[1]):this.#e.set(t.toLowerCase(),1);else for(let t of Object.getOwnPropertyNames(e))this.#e.set(t.toLowerCase(),e[t]);this.#t()}}#t(){this.#e=new Map([...this.#e].sort(((e,t)=>t[1]-e[1])))}get mediaTypes(){return Array.from(this.#e.keys())}get weights(){return Array.from(this.#e.values())}get size(){return this.#e.size}accepts(e){return this.getWeight(e)>0}getWeight(e){let[t,n]=e.toLowerCase().split("/");for(let[r,i]of this){let[e,o]=r.split("/");if((e===t||"*"===e||"*"===t)&&(o===n||"*"===o||"*"===n))return i}return 0}getPreferred(e){let t=e.map((e=>[e,this.getWeight(e)])).sort(((e,t)=>t[1]-e[1]))[0];return void 0!==t&&t[1]>0?t[0]:null}get(e){return this.#e.get(e.toLowerCase())??null}set(e,t=1){this.#e.set(e.toLowerCase(),t),this.#t()}delete(e){this.#e.delete(e.toLowerCase())}has(e){return this.#e.has(e.toLowerCase())}clear(){this.#e.clear()}entries(){return this.#e.entries()}[Symbol.iterator](){return this.entries()}forEach(e,t){for(let[n,r]of this)e.call(t,n,r,this)}toString(){let e=[];for(let[t,n]of this.#e)e.push(`${t}${1===n?"":`;q=${n}`}`);return e.join(",")}},xn=class{#e;constructor(e){if(this.#e=new Map,e){if("string"===typeof e)for(let t of e.split(/\s*,\s*/)){let e=mn(t);if(e.length<1)continue;let n=e[0][0],r=1;for(let t=1;t<e.length;t++){let[n,i]=e[t];if("q"===n){r=Number(i);break}}this.#e.set(n.toLowerCase(),r)}else if(vn(e))for(let t of e)Array.isArray(t)?this.#e.set(t[0].toLowerCase(),t[1]):this.#e.set(t.toLowerCase(),1);else for(let t of Object.getOwnPropertyNames(e))this.#e.set(t.toLowerCase(),e[t]);this.#t()}}#t(){this.#e=new Map([...this.#e].sort(((e,t)=>t[1]-e[1])))}get encodings(){return Array.from(this.#e.keys())}get weights(){return Array.from(this.#e.values())}get size(){return this.#e.size}accepts(e){return"identity"===e.toLowerCase()||this.getWeight(e)>0}getWeight(e){let t=e.toLowerCase();for(let[n,r]of this)if(n===t||"*"===n||"*"===t)return r;return 0}getPreferred(e){let t=e.map((e=>[e,this.getWeight(e)])).sort(((e,t)=>t[1]-e[1]))[0];return void 0!==t&&t[1]>0?t[0]:null}get(e){return this.#e.get(e.toLowerCase())??null}set(e,t=1){this.#e.set(e.toLowerCase(),t),this.#t()}delete(e){this.#e.delete(e.toLowerCase())}has(e){return this.#e.has(e.toLowerCase())}clear(){this.#e.clear()}entries(){return this.#e.entries()}[Symbol.iterator](){return this.entries()}forEach(e,t){for(let[n,r]of this)e.call(t,n,r,this)}toString(){let e=[];for(let[t,n]of this.#e)e.push(`${t}${1===n?"":`;q=${n}`}`);return e.join(",")}},_n=class{#e;constructor(e){if(this.#e=new Map,e){if("string"===typeof e)for(let t of e.split(/\s*,\s*/)){let e=mn(t);if(e.length<1)continue;let n=e[0][0],r=1;for(let t=1;t<e.length;t++){let[n,i]=e[t];if("q"===n){r=Number(i);break}}this.#e.set(n.toLowerCase(),r)}else if(vn(e))for(let t of e)Array.isArray(t)?this.#e.set(t[0].toLowerCase(),t[1]):this.#e.set(t.toLowerCase(),1);else for(let t of Object.getOwnPropertyNames(e))this.#e.set(t.toLowerCase(),e[t]);this.#t()}}#t(){this.#e=new Map([...this.#e].sort(((e,t)=>t[1]-e[1])))}get languages(){return Array.from(this.#e.keys())}get weights(){return Array.from(this.#e.values())}get size(){return this.#e.size}accepts(e){return this.getWeight(e)>0}getWeight(e){let[t,n]=e.toLowerCase().split("-");for(let[r,i]of this){let[e,o]=r.split("-");if((e===t||"*"===e||"*"===t)&&(o===n||void 0===o||void 0===n))return i}return 0}getPreferred(e){let t=e.map((e=>[e,this.getWeight(e)])).sort(((e,t)=>t[1]-e[1]))[0];return void 0!==t&&t[1]>0?t[0]:null}get(e){return this.#e.get(e.toLowerCase())??null}set(e,t=1){this.#e.set(e.toLowerCase(),t),this.#t()}delete(e){this.#e.delete(e.toLowerCase())}has(e){return this.#e.has(e.toLowerCase())}clear(){this.#e.clear()}entries(){return this.#e.entries()}[Symbol.iterator](){return this.entries()}forEach(e,t){for(let[n,r]of this)e.call(t,n,r,this)}toString(){let e=[];for(let[t,n]of this.#e)e.push(`${t}${1===n?"":`;q=${n}`}`);return e.join(",")}},En=class{maxAge;maxStale;minFresh;sMaxage;noCache;noStore;noTransform;onlyIfCached;mustRevalidate;proxyRevalidate;mustUnderstand;private;public;immutable;staleWhileRevalidate;staleIfError;constructor(e){if(e)if("string"===typeof e){let t=mn(e,",");if(t.length>0)for(let[e,n]of t)switch(e){case"max-age":this.maxAge=Number(n);break;case"max-stale":this.maxStale=Number(n);break;case"min-fresh":this.minFresh=Number(n);break;case"s-maxage":this.sMaxage=Number(n);break;case"no-cache":this.noCache=!0;break;case"no-store":this.noStore=!0;break;case"no-transform":this.noTransform=!0;break;case"only-if-cached":this.onlyIfCached=!0;break;case"must-revalidate":this.mustRevalidate=!0;break;case"proxy-revalidate":this.proxyRevalidate=!0;break;case"must-understand":this.mustUnderstand=!0;break;case"private":this.private=!0;break;case"public":this.public=!0;break;case"immutable":this.immutable=!0;break;case"stale-while-revalidate":this.staleWhileRevalidate=Number(n);break;case"stale-if-error":this.staleIfError=Number(n)}}else this.maxAge=e.maxAge,this.maxStale=e.maxStale,this.minFresh=e.minFresh,this.sMaxage=e.sMaxage,this.noCache=e.noCache,this.noStore=e.noStore,this.noTransform=e.noTransform,this.onlyIfCached=e.onlyIfCached,this.mustRevalidate=e.mustRevalidate,this.proxyRevalidate=e.proxyRevalidate,this.mustUnderstand=e.mustUnderstand,this.private=e.private,this.public=e.public,this.immutable=e.immutable,this.staleWhileRevalidate=e.staleWhileRevalidate,this.staleIfError=e.staleIfError}toString(){let e=[];return this.public&&e.push("public"),this.private&&e.push("private"),"number"===typeof this.maxAge&&e.push(`max-age=${this.maxAge}`),"number"===typeof this.sMaxage&&e.push(`s-maxage=${this.sMaxage}`),this.noCache&&e.push("no-cache"),this.noStore&&e.push("no-store"),this.noTransform&&e.push("no-transform"),this.onlyIfCached&&e.push("only-if-cached"),this.mustRevalidate&&e.push("must-revalidate"),this.proxyRevalidate&&e.push("proxy-revalidate"),this.mustUnderstand&&e.push("must-understand"),this.immutable&&e.push("immutable"),"number"===typeof this.staleWhileRevalidate&&e.push(`stale-while-revalidate=${this.staleWhileRevalidate}`),"number"===typeof this.staleIfError&&e.push(`stale-if-error=${this.staleIfError}`),"number"===typeof this.maxStale&&e.push(`max-stale=${this.maxStale}`),"number"===typeof this.minFresh&&e.push(`min-fresh=${this.minFresh}`),e.join(", ")}},Sn=class{filename;filenameSplat;name;type;constructor(e){if(e)if("string"===typeof e){let t=mn(e);if(t.length>0){this.type=t[0][0];for(let[e,n]of t.slice(1))"filename"===e?this.filename=n:"filename*"===e?this.filenameSplat=n:"name"===e&&(this.name=n)}}else this.filename=e.filename,this.filenameSplat=e.filenameSplat,this.name=e.name,this.type=e.type}get preferredFilename(){let e=this.filenameSplat;if(e){let t=function(e){let t=e.match(/^([\w-]+)'([^']*)'(.+)$/);if(!t)return null;let[,n,,r]=t,i=function(e){return e.replace(/\+/g," ").replace(/%([0-9A-Fa-f]{2})/g,((e,t)=>String.fromCharCode(parseInt(t,16))))}(r);try{let e=new TextDecoder(n),t=new Uint8Array(i.split("").map((e=>e.charCodeAt(0))));return e.decode(t)}catch(o){return console.warn(`Failed to decode filename from charset ${n}:`,o),i}}(e);if(t)return t}return this.filename}toString(){if(!this.type)return"";let e=[this.type];return this.name&&e.push(`name=${gn(this.name)}`),this.filename&&e.push(`filename=${gn(this.filename)}`),this.filenameSplat&&e.push(`filename*=${gn(this.filenameSplat)}`),e.join("; ")}};var Cn=class{boundary;charset;mediaType;constructor(e){if(e)if("string"===typeof e){let t=mn(e);if(t.length>0){this.mediaType=t[0][0];for(let[e,n]of t.slice(1))"boundary"===e?this.boundary=n:"charset"===e&&(this.charset=n)}}else this.boundary=e.boundary,this.charset=e.charset,this.mediaType=e.mediaType}toString(){if(!this.mediaType)return"";let e=[this.mediaType];return this.charset&&e.push(`charset=${gn(this.charset)}`),this.boundary&&e.push(`boundary=${gn(this.boundary)}`),e.join("; ")}},kn=class{#e;constructor(e){if(this.#e=new Map,e)if("string"===typeof e){let t=mn(e);for(let[e,n]of t)this.#e.set(e,n??"")}else if(vn(e))for(let[t,n]of e)this.#e.set(t,n);else for(let t of Object.getOwnPropertyNames(e))this.#e.set(t,e[t])}get names(){return Array.from(this.#e.keys())}get values(){return Array.from(this.#e.values())}get size(){return this.#e.size}get(e){return this.#e.get(e)??null}set(e,t){this.#e.set(e,t)}delete(e){this.#e.delete(e)}has(e){return this.#e.has(e)}clear(){this.#e.clear()}entries(){return this.#e.entries()}[Symbol.iterator](){return this.entries()}forEach(e,t){for(let[n,r]of this)e.call(t,n,r,this)}toString(){let e=[];for(let[t,n]of this.#e)e.push(`${t}=${gn(n)}`);return e.join("; ")}},On=class{tags=[];constructor(e){e&&("string"===typeof e?this.tags.push(...e.split(/\s*,\s*/).map(bn)):Array.isArray(e)?this.tags.push(...e.map(bn)):this.tags.push(...e.tags.map(bn)))}has(e){return this.tags.includes(bn(e))}matches(e){return this.has(e)||this.tags.includes("*")}toString(){return this.tags.join(", ")}},Nn=class{domain;expires;httpOnly;maxAge;name;path;sameSite;secure;value;constructor(e){if(e)if("string"===typeof e){let n=mn(e);if(n.length>0){this.name=n[0][0],this.value=n[0][1];for(let[e,r]of n.slice(1))switch(e.toLowerCase()){case"domain":this.domain=r;break;case"expires":if("string"===typeof r){let e=new Date(r);yn(e)&&(this.expires=e)}break;case"httponly":this.httpOnly=!0;break;case"max-age":if("string"===typeof r){let e=parseInt(r,10);isNaN(e)||(this.maxAge=e)}break;case"path":this.path=r;break;case"samesite":"string"===typeof r&&/strict|lax|none/i.test(r)&&(this.sameSite=(t=r).charAt(0).toUpperCase()+t.slice(1).toLowerCase());break;case"secure":this.secure=!0}}}else this.domain=e.domain,this.expires=e.expires,this.httpOnly=e.httpOnly,this.maxAge=e.maxAge,this.name=e.name,this.path=e.path,this.sameSite=e.sameSite,this.secure=e.secure,this.value=e.value;var t}toString(){if(!this.name)return"";let e=[`${this.name}=${gn(this.value||"")}`];return this.domain&&e.push(`Domain=${this.domain}`),this.path&&e.push(`Path=${this.path}`),this.expires&&e.push(`Expires=${this.expires.toUTCString()}`),this.maxAge&&e.push(`Max-Age=${this.maxAge}`),this.secure&&e.push("Secure"),this.httpOnly&&e.push("HttpOnly"),this.sameSite&&e.push(`SameSite=${this.sameSite}`),e.join("; ")}},Tn={ct:"CT",etag:"ETag",te:"TE",www:"WWW",x:"X",xss:"XSS"};var An="accept",In="accept-encoding",Pn="accept-language",Rn="accept-ranges",Dn="cache-control",jn="connection",Mn="content-disposition",Ln="content-encoding",zn="content-language",Fn="content-length",Bn="content-type",Un="cookie",qn="date",$n="etag",Hn="expires",Vn="host",Wn="if-modified-since",Kn="if-none-match",Gn="if-unmodified-since",Yn="last-modified",Qn="location",Zn="referer",Jn="set-cookie",Xn=class e extends Headers{#e;#n=[];constructor(t){if(super(),this.#e=new Map,t)if("string"===typeof t){let e=t.split("\r\n");for(let t of e){let e=t.match(/^([^:]+):(.*)/);e&&this.append(e[1].trim(),e[2].trim())}}else if(vn(t))for(let[e,n]of t)this.append(e,n);else if("object"===typeof t)for(let n of Object.getOwnPropertyNames(t)){let r=t[n],i=Object.getOwnPropertyDescriptor(e.prototype,n);i?.set?i.set.call(this,r):this.set(n,r.toString())}}append(e,t){let n=e.toLowerCase();if(n===Jn)this.#n.push(t);else{let e=this.#e.get(n);this.#e.set(n,e?`${e}, ${t}`:t)}}delete(e){let t=e.toLowerCase();t===Jn?this.#n=[]:this.#e.delete(t)}get(e){let t=e.toLowerCase();if(t===Jn)return this.getSetCookie().join(", ");{let e=this.#e.get(t);if("string"===typeof e)return e;if(null!=e){let t=e.toString();return""===t?null:t}return null}}getSetCookie(){return this.#n.map((e=>"string"===typeof e?e:e.toString()))}has(e){let t=e.toLowerCase();return t===Jn?this.#n.length>0:null!=this.get(t)}set(e,t){let n=e.toLowerCase();n===Jn?this.#n=[t]:this.#e.set(n,t)}*keys(){for(let[e]of this)yield e}*values(){for(let[,e]of this)yield e}*entries(){for(let[e]of this.#e){let t=this.get(e);t&&(yield[e,t])}for(let e of this.getSetCookie())yield[Jn,e]}[Symbol.iterator](){return this.entries()}forEach(e,t){for(let[n,r]of this)e.call(t,r,n,this)}toString(){let e=[];for(let[n,r]of this)e.push(`${t=n,t.toLowerCase().split("-").map((e=>Tn[e]||e.charAt(0).toUpperCase()+e.slice(1))).join("-")}: ${r}`);var t;return e.join("\r\n")}get accept(){return this.#r(An,wn)}set accept(e){this.#i(An,wn,e)}get acceptEncoding(){return this.#r(In,xn)}set acceptEncoding(e){this.#i(In,xn,e)}get acceptLanguage(){return this.#r(Pn,_n)}set acceptLanguage(e){this.#i(Pn,_n,e)}get acceptRanges(){return this.#o(Rn)}set acceptRanges(e){this.#a(Rn,e)}get age(){return this.#s("age")}set age(e){this.#l("age",e)}get cacheControl(){return this.#r(Dn,En)}set cacheControl(e){this.#i(Dn,En,e)}get connection(){return this.#o(jn)}set connection(e){this.#a(jn,e)}get contentDisposition(){return this.#r(Mn,Sn)}set contentDisposition(e){this.#i(Mn,Sn,e)}get contentEncoding(){return this.#o(Ln)}set contentEncoding(e){this.#a(Ln,Array.isArray(e)?e.join(", "):e)}get contentLanguage(){return this.#o(zn)}set contentLanguage(e){this.#a(zn,Array.isArray(e)?e.join(", "):e)}get contentLength(){return this.#s(Fn)}set contentLength(e){this.#l(Fn,e)}get contentType(){return this.#r(Bn,Cn)}set contentType(e){this.#i(Bn,Cn,e)}get cookie(){return this.#r(Un,kn)}set cookie(e){this.#i(Un,kn,e)}get date(){return this.#c(qn)}set date(e){this.#u(qn,e)}get etag(){return this.#o($n)}set etag(e){this.#a($n,"string"===typeof e?bn(e):e)}get expires(){return this.#c(Hn)}set expires(e){this.#u(Hn,e)}get host(){return this.#o(Vn)}set host(e){this.#a(Vn,e)}get ifModifiedSince(){return this.#c(Wn)}set ifModifiedSince(e){this.#u(Wn,e)}get ifNoneMatch(){return this.#r(Kn,On)}set ifNoneMatch(e){this.#i(Kn,On,e)}get ifUnmodifiedSince(){return this.#c(Gn)}set ifUnmodifiedSince(e){this.#u(Gn,e)}get lastModified(){return this.#c(Yn)}set lastModified(e){this.#u(Yn,e)}get location(){return this.#o(Qn)}set location(e){this.#a(Qn,e)}get referer(){return this.#o(Zn)}set referer(e){this.#a(Zn,e)}get setCookie(){let e=this.#n;for(let t=0;t<e.length;++t)"string"===typeof e[t]&&(e[t]=new Nn(e[t]));return e}set setCookie(e){this.#n=null!=e?(Array.isArray(e)?e:[e]).map((e=>"string"===typeof e?e:new Nn(e))):[]}#r(e,t){let n=this.#e.get(e);if(void 0!==n){if("string"===typeof n){let r=new t(n);return this.#e.set(e,r),r}return n}let r=new t;return this.#e.set(e,r),r}#i(e,t,n){null!=n?this.#e.set(e,"string"===typeof n?n:new t(n)):this.#e.delete(e)}#c(e){let t=this.#e.get(e);return void 0===t?null:new Date(t)}#u(e,t){null!=t?this.#e.set(e,"string"===typeof t?t:("number"===typeof t?new Date(t):t).toUTCString()):this.#e.delete(e)}#s(e){let t=this.#e.get(e);return void 0===t?null:parseInt(t,10)}#l(e,t){null!=t?this.#e.set(e,"string"===typeof t?t:t.toString()):this.#e.delete(e)}#o(e){let t=this.#e.get(e);return void 0===t?null:t}#a(e,t){null!=t?this.#e.set(e,t):this.#e.delete(e)}};async function*er(e){let t=e.getReader();for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}function tr(e){let t,n=(new TextEncoder).encode(e);if(!("Buffer"in globalThis)||"Bun"in globalThis||"Deno"in globalThis){let e=n.length-1,r=new Uint8Array(256).fill(n.length);for(let t=0;t<e;++t)r[n[t]]=e-t;t=(t,i=0)=>{let o=t.length,a=i+e;for(;a<o;){for(let r=e,i=a;r>=0&&t[i]===n[r];--r,--i)if(0===r)return i;a+=r[t[a]]}return-1}}else t=(e,t=0)=>Buffer.prototype.indexOf.call(e,n,t);return t}var nr=class extends Error{constructor(e){super(e),this.name="MultipartParseError"}},rr=class extends nr{constructor(e){super(`Multipart header size exceeds maximum allowed size of ${e} bytes`),this.name="MaxHeaderSizeExceededError"}},ir=class extends nr{constructor(e){super(`File size exceeds maximum allowed size of ${e} bytes`),this.name="MaxFileSizeExceededError"}};async function or(e,t,n){let r=new sr(t.boundary,{maxHeaderSize:t.maxHeaderSize,maxFileSize:t.maxFileSize});await r.parse(e,n)}var ar=tr("\r\n\r\n"),sr=class{boundary;maxHeaderSize;maxFileSize;#d;#f;#p;#h;#m;#g=0;#v=null;#y=null;#b=0;constructor(e,t){this.boundary=e,this.maxHeaderSize=t?.maxHeaderSize??8192,this.maxFileSize=t?.maxFileSize??1/0,this.#d=tr(`--${e}`),this.#f=2+e.length,this.#p=tr(`\r\n--${e}`),this.#h=function(e){let t=(new TextEncoder).encode(e),n={};for(let r=0;r<t.length;++r){let e=t[r];void 0===n[e]&&(n[e]=[]),n[e].push(r)}return function(e){let r=e.length-1;if(e[r]in n){let i=n[e[r]];for(let n=i.length-1;n>=0;--n)for(let o=i[n],a=r;o>=0&&e[a]===t[o];--o,--a)if(0===o)return a}return-1}}(`\r\n--${e}`),this.#m=4+e.length}async parse(e,t){0!==this.#g&&this.#w();let n=[];function r(e){let r=t(e);var i;"object"===typeof(i=r)&&null!=i&&"function"===typeof i.then&&(n.push(r),r.catch((()=>{})))}if(e instanceof ReadableStream)for await(let o of er(e))this.#x(o,r);else if("object"===typeof(i=e)&&null!=i&&Symbol.asyncIterator in i)for await(let o of e)this.#x(o,r);else if(e instanceof Uint8Array)this.#x(e,r);else{if(!function(e){return"object"===typeof e&&null!=e&&Symbol.iterator in e}(e))throw new TypeError("Cannot parse multipart message; expected a stream or buffer");for(let t of e)this.#x(t,r)}var i;if(4!==this.#g)throw new nr("Unexpected end of stream");await Promise.all(n)}#w(){this.#g=0,this.#v=null,this.#y=null,this.#b=0}#x(e,t){if(4===this.#g)throw new nr("Unexpected data after end of stream");let n=0,r=e.length;if(null!==this.#v){let t=new Uint8Array(this.#v.length+r);t.set(this.#v,0),t.set(e,this.#v.length),r=(e=t).length,this.#v=null}for(;;){if(3===this.#g){if(r-n<this.#m){this.#v=e.subarray(n);break}let t=this.#p(e,n);if(-1===t){let t=this.#h(e);-1===t?this.#_(0===n?e:e.subarray(n)):(this.#_(e.subarray(n,t)),this.#v=e.subarray(t));break}this.#_(e.subarray(n,t)),this.#E(),n=t+this.#m,this.#g=1}if(1===this.#g){if(r-n<2){this.#v=e.subarray(n);break}if(45===e[n]&&45===e[n+1]){this.#g=4;break}n+=2,this.#g=2}if(2!==this.#g){if(0===this.#g){if(r<this.#f){this.#v=e;break}if(0!==this.#d(e))throw new nr("Invalid multipart stream: missing initial boundary");n=this.#f,this.#g=1}}else{if(r-n<4){this.#v=e.subarray(n);break}let i=ar(e,n);if(-1===i){if(r-n>this.maxHeaderSize)throw new rr(this.maxHeaderSize);this.#v=e.subarray(n);break}if(i-n>this.maxHeaderSize)throw new rr(this.maxHeaderSize);let o=e.subarray(n,i);t(new lr(o,new ReadableStream({start:e=>{this.#y=e,this.#b=0}}))),n=i+4,this.#g=3}}}#_(e){if(this.#b+e.length>this.maxFileSize){let e=new ir(this.maxFileSize);throw this.#y.error(e),e}this.#y.enqueue(e),this.#b+=e.length}#E(){this.#y.close(),this.#y=null}};var lr=class{#S;#C;#k;#O=!1;constructor(e,t){this.#S=e,this.#C=t}async arrayBuffer(){return(await this.bytes()).buffer}get body(){return this.#C}get bodyUsed(){return this.#O}async bytes(){if(this.#O)throw new Error("Body is already consumed or is being consumed");this.#O=!0;let e=[],t=0;for await(let i of er(this.#C))e.push(i),t+=i.length;let n=new Uint8Array(t),r=0;for(let i of e)n.set(i,r),r+=i.length;return n}get headers(){return this.#k||(this.#k=new Xn((new TextDecoder).decode(this.#S))),this.#k}get isFile(){return void 0!==this.filename||"application/octet-stream"===this.mediaType}get filename(){return this.headers.contentDisposition.preferredFilename}get mediaType(){return this.headers.contentType.mediaType}get name(){return this.headers.contentDisposition.name}async text(){return(new TextDecoder).decode(await this.bytes())}};var cr=n(74309),ur=n.n(cr),dr=n(80971);class fr extends rn{async streamQuery(e,t){var n;const r=!nn.f.readUserSettingsValue(en.RY,!0),i=ur().stringify({timeout:e.timeout,base64:r,schema:"multipart"},{encoder:encodeURIComponent}),o={...e,base64:r,schema:"multipart"},a=new Headers({Accept:"multipart/form-data","Content-Type":"application/json"});e.tracingLevel&&a.set("X-Trace-Verbosity",String(e.tracingLevel));nn.f.readUserSettingsValue(en.U0)&&a.set("X-Want-Trace","1");const s=await fetch(`${this.getPath("/viewer/query")}?${i}`,{method:"POST",signal:t.signal,headers:a,body:JSON.stringify(o)});if(!s.ok){const e=await s.json().catch((()=>({})));if((0,tn.uP)({status:s.status,data:e}))return void window.location.assign(e.authUrl);throw new Error(`${s.status}`)}if(!s.body)throw new Error("Empty response body");const l=null===(n=s.headers.get("traceresponse"))||void 0===n?void 0:n.split("-")[1];await or(s.body,{boundary:"boundary"},(async e=>{try{const n=JSON.parse(await e.text());if((0,dr.y6)(n)){n.meta.trace_id=l,t.onSessionChunk(n)}else(0,dr.uR)(n)?t.onStreamDataChunk(n):(0,dr.HH)(n)&&t.onQueryResponseChunk(n)}catch(n){throw new Error(`Error parsing chunk: ${n}`)}}))}}class pr extends rn{evictVDiskOld({groupId:e,groupGeneration:t,failRealmIdx:n,failDomainIdx:r,vDiskIdx:i}){return this.post(this.getPath("/tablets/app?TabletID=72057594037932033&exec=1"),{Command:{ReassignGroupDisk:{GroupId:e,GroupGeneration:t,FailRealmIdx:n,FailDomainIdx:r,VDiskIdx:i}}},{},{headers:{Accept:"application/json"}})}killTablet(e){return this.get(this.getPath(`/tablets?KillTabletID=${e}`),{},{requestConfig:{"axios-retry":{retries:0}}})}stopTablet(e,t){return this.get(this.getPath(`/tablets/app?TabletID=${t}&page=StopTablet&tablet=${e}`),{},{requestConfig:{"axios-retry":{retries:0}}})}resumeTablet(e,t){return this.get(this.getPath(`/tablets/app?TabletID=${t}&page=ResumeTablet&tablet=${e}`),{},{requestConfig:{"axios-retry":{retries:0}}})}getTabletFromHive({id:e,hiveId:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/tablets/app"),{TabletID:t,page:"TabletInfo",tablet:e},{concurrentId:n,requestConfig:{signal:r}})}}class hr extends rn{evictVDisk({groupId:e,groupGeneration:t,failRealmIdx:n,failDomainIdx:r,vDiskIdx:i,force:o}){return this.post(this.getPath("/vdisk/evict"),{},{group_id:e,group_generation_id:t,fail_realm_idx:n,fail_domain_idx:r,vdisk_idx:i,force:o},{requestConfig:{"axios-retry":{retries:0}}})}}class mr extends rn{getClusterCapabilities({database:e}){return this.get(this.getPath("/viewer/capabilities"),{database:e},{})}getClusterInfo(e,{concurrentId:t,signal:n}={}){return this.get(this.getPath("/viewer/json/cluster"),{name:e,tablets:!0},{concurrentId:t||"getClusterInfo",requestConfig:{signal:n}})}getNodeInfo(e,{concurrentId:t,timeout:n,signal:r}={}){return this.get(this.getPath("/viewer/json/sysinfo?enums=true"),{node_id:e},{concurrentId:t,requestConfig:{signal:r},timeout:n})}getTenants(e,{concurrentId:t,signal:n}={}){return this.get(this.getPath("/viewer/json/tenantinfo"),{tablets:!1,storage:!0,cluster_name:e},{concurrentId:t,requestConfig:{signal:n}})}getTenantInfo({path:e,database:t=e},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/tenantinfo"),{database:t,path:e,tablets:!1,storage:!0,memory:!0},{concurrentId:n,requestConfig:{signal:r}})}getNodes({type:e="any",tablets:t=!1,database:n,tenant:r,fieldsRequired:i,filter:o,...a},{concurrentId:s,signal:l}={}){const c=Array.isArray(i)?this.prepareArrayRequestParam(i):i;return this.get(this.getPath("/viewer/json/nodes?enums=true"),{type:e,tablets:t,filter:o||void 0,database:n||r,tenant:r||n,fields_required:c,...a},{concurrentId:s,requestConfig:{signal:l}})}getTabletsInfo({nodeId:e,path:t,database:n},{concurrentId:r,signal:i}={}){return this.get(this.getPath("/viewer/json/tabletinfo"),{database:n,node_id:e,path:t,enums:!0},{concurrentId:r,requestConfig:{signal:i}})}getSchema({path:e,database:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/describe"),{database:t,path:e,enums:!0,backup:!1,private:!0,partition_config:!1,partition_stats:!1,partitioning_info:!1,subs:1},{concurrentId:n,requestConfig:{signal:r}})}getDescribe({path:e,database:t,timeout:n},{concurrentId:r,signal:i}={}){return this.get(this.getPath("/viewer/json/describe"),{database:t,path:e,enums:!0,partition_stats:!0,subs:0},{concurrentId:r||`getDescribe|${e}`,requestConfig:{signal:i},timeout:n})}getSchemaAcl({path:e,database:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/acl"),{database:t,path:e,merge_rules:!0},{concurrentId:n,requestConfig:{signal:r}})}getHeatmapData({path:e,database:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/describe"),{database:t,path:e,enums:!0,backup:!1,children:!1,partition_config:!1,partition_stats:!0},{concurrentId:n,requestConfig:{signal:r}})}getNetwork({path:e,database:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/netinfo"),{enums:!0,database:t,path:e},{concurrentId:n,requestConfig:{signal:r}})}getTopic({path:e,database:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/describe_topic"),{enums:!0,include_stats:!0,database:t,path:e},{concurrentId:n,requestConfig:{signal:r}})}getConsumer({path:e,consumer:t,database:n},{concurrentId:r,signal:i}={}){return this.get(this.getPath("/viewer/json/describe_consumer"),{enums:!0,include_stats:!0,database:n,path:e,consumer:t},{concurrentId:r||"getConsumer",requestConfig:{signal:i}})}getTablet({id:e,database:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/tabletinfo"),{enums:!0,database:t,filter:`(TabletId=${e})`},{concurrentId:n,requestConfig:{signal:r}})}getTabletHistory({id:e,database:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/tabletinfo"),{enums:!0,merge:!1,database:t,filter:`(TabletId=${e})`},{concurrentId:n,requestConfig:{signal:r}})}getNodesList({concurrentId:e,signal:t}={}){return this.get(this.getPath("/viewer/json/nodelist"),{enums:!0},{concurrentId:e,requestConfig:{signal:t}})}getTenantsList({concurrentId:e,signal:t}={}){return this.get(this.getPath("/viewer/json/tenants"),{enums:!0,state:0},{concurrentId:e,requestConfig:{signal:t}})}sendQuery(e,{concurrentId:t,signal:n,withRetries:r}={}){const i=!nn.f.readUserSettingsValue(en.RY,!0);return this.post(this.getPath("/viewer/json/query"),{...e,base64:i},{schema:"multi",base64:i,timeout:e.timeout},{concurrentId:t,timeout:e.timeout,requestConfig:{signal:n,"axios-retry":{retries:r?this.DEFAULT_RETRIES_COUNT:0}},headers:e.tracingLevel?{"X-Trace-Verbosity":e.tracingLevel}:void 0})}getHotKeys({path:e,database:t,enableSampling:n},{concurrentId:r,signal:i}={}){return this.get(this.getPath("/viewer/json/hotkeys"),{database:t,path:e,enable_sampling:n},{concurrentId:r||"getHotKeys",requestConfig:{signal:i}})}getTabletDescribe(e,{concurrentId:t,signal:n}={}){return this.get(this.getPath("/viewer/json/describe"),{schemeshard_id:null===e||void 0===e?void 0:e.SchemeShard,path_id:null===e||void 0===e?void 0:e.PathId},{concurrentId:t,requestConfig:{signal:n}})}getStorageInfo({tenant:e,database:t,nodeId:n,groupId:r,pDiskId:i,filter:o,...a},{concurrentId:s,signal:l}={}){return this.get(this.getPath("/viewer/json/storage?enums=true"),{database:t||e,tenant:e||t,node_id:n,group_id:r,pdisk_id:i,filter:o||void 0,...a},{concurrentId:s,requestConfig:{signal:l}})}getChartData({target:e,from:t,until:n,maxDataPoints:r,database:i},{concurrentId:o,signal:a}={}){const s=`${e}&from=${t}&until=${n}&maxDataPoints=${r}&format=json`;return this.post(this.getPath(`/viewer/json/render?database=${i}`),s,{},{concurrentId:o,headers:{"Content-Type":"application/x-www-form-urlencoded"},requestConfig:{signal:a}})}whoami({database:e}){return this.get(this.getPath("/viewer/json/whoami"),{database:e})}autocomplete(e){const{table:t,...n}=e,r=null===t||void 0===t?void 0:t.join(",");return this.get(this.getPath("/viewer/json/autocomplete"),{...n,table:r},{concurrentId:"sql-autocomplete"})}getClusterConfig(e,{concurrentId:t,signal:n}={}){return this.get(this.getPath("/viewer/feature_flags"),{database:e},{concurrentId:t,requestConfig:{signal:n}})}getVDiskInfo({vDiskSlotId:e,pDiskId:t,nodeId:n},{concurrentId:r,signal:i}={}){return this.get(this.getPath("/viewer/json/vdiskinfo?enums=true"),{node_id:n,filter:`(PDiskId=${t};VDiskSlotId=${e})`},{concurrentId:r,requestConfig:{signal:i}})}getNodeWhiteboardPDiskInfo({nodeId:e,pDiskId:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/pdiskinfo?enums=true"),{filter:`(NodeId=${e}${t?`;PDiskId=${t}`:""})`},{concurrentId:n,requestConfig:{signal:r}})}planToSvg({database:e,plan:t},{signal:n}={}){return this.post(this.getPath("/viewer/plan2svg"),t,{database:e},{requestConfig:{signal:n,responseType:"text",headers:{Accept:"image/svg+xml"}}})}getHealthcheckInfo({database:e,maxLevel:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/healthcheck?merge_records=true"),{database:e,tenant:e,max_level:t},{concurrentId:n,requestConfig:{signal:r}})}}class gr{constructor({webVersion:e=!1,withCredentials:t=!1}={}){this.auth=void 0,this.operation=void 0,this.pdisk=void 0,this.scheme=void 0,this.storage=void 0,this.streaming=void 0,this.tablets=void 0,this.vdisk=void 0,this.viewer=void 0,this.meta=void 0,this.codeAssist=void 0;const n={withCredentials:t};this.auth=new on({config:n}),e&&(this.meta=new cn({config:n}),this.codeAssist=new sn({config:n})),this.operation=new un({config:n}),this.pdisk=new fn({config:n}),this.scheme=new pn({config:n}),this.storage=new hn({config:n}),this.streaming=new fr({config:n}),this.tablets=new pr({config:n}),this.vdisk=new hr({config:n}),this.viewer=new mr({config:n})}}},28232:(e,t,n)=>{"use strict";n.d(t,{J:()=>i});var r=n(67087);function i(){const[e]=(0,r.useQueryParam)("database",r.StringParam);return null!==e&&void 0!==e?e:void 0}},28293:(e,t,n)=>{var r=n(85191),i=n(4178),o=n(9112),a=n(19305),s=n(35535);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):r(e):s(e)}},28664:(e,t,n)=>{"use strict";n.d(t,{k:()=>R});var r=n(59284),i=n(94420),o=n(85736),a=n(32084),s=n(90826),l=n(794),c=n(6104),u=n.n(c),d=n(61758),f=n.n(d);function p(e,t){const[n,i]=r.useState({width:0,height:0});return r.useLayoutEffect((()=>{const t=null===e||void 0===e?void 0:e.current;if(!t)return;i({width:u()(t.offsetWidth,2),height:u()(t.offsetHeight,2)});const n=new ResizeObserver(f()((e=>{if(!Array.isArray(e))return;const t=e[0];if(t.borderBoxSize){const e=t.borderBoxSize[0]?t.borderBoxSize[0]:t.borderBoxSize;i({width:u()(e.inlineSize,2),height:u()(e.blockSize,2)})}else{const e=t.target;i({width:u()(e.offsetWidth,2),height:u()(e.offsetHeight,2)})}}),16));return n.observe(t),()=>{n.disconnect()}}),[e,t]),n}var h=n(99991),m=n(84375),g=n(69220),v=n(81240),y=n(84476),b=n(72837);const w=JSON.parse('{"label_clear-button":"Clear"}'),x=JSON.parse('{"label_clear-button":"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c"}'),_=(0,b.N)({en:w,ru:x},`${g.CU}clear-button`),E=(0,g.om)("clear-button"),S=e=>{switch(e){case"s":return"xs";case"m":return"s";case"l":return"m";case"xl":return"l";default:throw new Error(`Unknown text input size "${e}"`)}},C=e=>{const{size:t,className:n,onClick:i}=e;return r.createElement(y.$,{size:t,className:E(null,n),onClick:i,extraProps:{onMouseDown:e=>{e.preventDefault()},"aria-label":_("label_clear-button")}},r.createElement(h.I,{data:v.A,size:16}))};var k=n(63246),O=n(34379);const N=(0,g.om)("text-input"),T=r.forwardRef((function({placement:e,children:t,onClick:n},i){return t?r.createElement("div",{ref:i,className:N("additional-content",{placement:e}),onClick:n},t):null})),A=(0,g.om)("text-input");function I(e){const{controlProps:t,controlRef:n,type:i,name:o,id:a,tabIndex:s,autoComplete:l,placeholder:c,value:u,defaultValue:d,autoFocus:f,disabled:p,readOnly:h,onChange:m,onFocus:g,onBlur:v,onKeyDown:y,onKeyUp:b,onKeyPress:w}=e;return r.createElement("input",Object.assign({},t,{ref:n,className:A("control",{type:"input"},t.className),type:i,name:o,id:a,tabIndex:s,placeholder:c,value:u,defaultValue:d,autoFocus:f,autoComplete:l,onChange:m,onFocus:g,onBlur:v,onKeyDown:y,onKeyUp:b,onKeyPress:w,disabled:null!==p&&void 0!==p?p:t.disabled,readOnly:null!==h&&void 0!==h?h:t.readOnly}))}const P=(0,g.om)("text-input"),R=r.forwardRef((function(e,t){const{view:n="normal",size:c="m",pin:u="round-round",name:d,value:f,defaultValue:g,label:v,disabled:y,readOnly:b,hasClear:w=!1,error:x,errorMessage:_,errorPlacement:E="outside",validationState:N,autoComplete:A,id:R,tabIndex:D,style:j,className:M,qa:L,controlProps:z,leftContent:F,rightContent:B,startContent:U=F,endContent:q=B,unstable_endContent:$,note:H,onUpdate:V,onChange:W}=e,{errorMessage:K,errorPlacement:G,validationState:Y}=(0,O.Av)({error:x,errorMessage:_,errorPlacement:E,validationState:N}),[Q,Z]=(0,o.P)(f,null!==g&&void 0!==g?g:"",V),J=r.useRef(null),X=(0,l.d)({initialValue:Q,onReset:Z}),ee=(0,a.N)(e.controlRef,J,X),te=r.useRef(null),ne=r.useRef(null),re=(0,O.lf)(Y),ie=Boolean(v),oe="invalid"===Y&&Boolean(K)&&"outside"===G,ae="invalid"===Y&&Boolean(K)&&"inside"===G,se=Boolean(w&&!y&&!b&&Q),le=Boolean(U),ce=Boolean($),ue=Boolean(q)&&!ce,de=ie&&!R&&!d&&"undefined"===typeof A,fe=(0,s.u)(),pe=ie?R||fe:R,he=p(ie?te:null,c),me=p(le?ne:null,c),ge=(0,s.u)(),ve=(0,s.u)(),ye=[null===z||void 0===z?void 0:z["aria-describedby"],H?ve:void 0,oe?ge:void 0].filter(Boolean).join(" "),be=Object.assign(Object.assign({},z),{style:Object.assign(Object.assign({},null===z||void 0===z?void 0:z.style),ie&&he.width?{paddingInlineStart:`${he.width}px`}:{}),"aria-invalid":"invalid"===Y||void 0,"aria-describedby":ye||void 0}),we={id:pe,tabIndex:D,name:d,onChange(e){Z(e.target.value),W&&W(e)},autoComplete:de?"off":(0,O.o$)(A),controlProps:be},xe=e=>{var t,n;const r=!e.currentTarget.contains(document.activeElement)&&e.currentTarget.contains(e.target),i=Boolean(null===(t=document.getSelection())||void 0===t?void 0:t.toString());r&&!i&&(null===(n=J.current)||void 0===n||n.focus())};return r.createElement("span",{ref:t,style:j,className:P({view:n,size:c,disabled:y,state:re,pin:"clear"===n?void 0:u,"has-clear":se,"has-start-content":le,"has-end-content":se||ue||ce,"has-unstable-end-content":ce},M),"data-qa":L},r.createElement("span",{className:P("content")},le&&r.createElement(T,{ref:ne,placement:"start",onClick:xe},U),ie&&r.createElement("label",{ref:te,style:{insetInlineStart:le?me.width:void 0,maxWidth:`calc(50% - ${me.width}px)`},className:P("label"),title:v,htmlFor:pe},`${v}`),r.createElement(I,Object.assign({},e,we,{controlRef:ee})),se&&r.createElement(C,{size:S(c),onClick:e=>{Z("");const t=J.current;if(t){const n=Object.create(e);n.target=t,n.currentTarget=t,t.value="",W&&W(n)}},className:P("clear",{size:c})}),ue&&r.createElement(T,{placement:"end",onClick:xe},q),ae&&r.createElement(m.A,{content:K},r.createElement("span",{"data-qa":O._y},r.createElement(h.I,{data:i.A,className:P("error-icon"),size:"s"===c?12:16}))),ce&&r.createElement(T,{placement:"end",onClick:xe},$)),r.createElement(k.o,{note:H,errorMessage:oe?K:null,noteId:ve,errorMessageId:ge}))}))},28815:(e,t,n)=>{var r=n(6993);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},29078:(e,t,n)=>{"use strict";n.d(t,{Ab:()=>d,Ay:()=>c,Tn:()=>h,Tp:()=>g,o:()=>u,sM:()=>f});var r=n(59284),i=n(97091),o=n(53850),a=n(21334);const s={loading:!0,data:{},currentSchemaPath:void 0,showPreview:!1},l=(0,i.Z0)({name:"schema",initialState:s,reducers:{setShowPreview:(e,t)=>{e.showPreview=t.payload}},selectors:{selectShowPreview:e=>e.showPreview}}),c=l.reducer,{setShowPreview:u}=l.actions,{selectShowPreview:d}=l.selectors,f=a.F.injectEndpoints({endpoints:e=>({createDirectory:e.mutation({queryFn:async({database:e,path:t},{signal:n})=>{try{return{data:await window.api.scheme.createSchemaDirectory({database:e,path:t},{signal:n})}}catch(r){return{error:r}}}}),getSchema:e.query({queryFn:async({path:e,database:t},{signal:n})=>{try{const r=await window.api.viewer.getSchema({path:e,database:t},{signal:n});return r?{data:{[e]:r,...p(r)}}:{error:new Error("Schema is not available")}}catch(r){return{error:r}}},keepUnusedDataFor:1/0,serializeQueryArgs:({queryArgs:{database:e}})=>({database:e}),merge:(e,t,{arg:{path:n}})=>{const{[n]:r,...i}=t;return r?{...i,...e,[n]:r}:e}})}),overrideExisting:"throw"});function p(e){const t={},{PathDescription:{Children:n=[]}={},Path:r}=e;for(const i of n){const{Name:e=""}=i,n=`${r}/${e}`;t[n]={PathDescription:{Self:i},Path:n,partial:!0}}return t}function h({path:e,database:t}){const{currentData:n,isFetching:i,error:o,refetch:a,originalArgs:s}=f.useGetSchemaQuery({path:e,database:t}),l=null===n||void 0===n?void 0:n[e],c=i&&void 0===l,u=(null===s||void 0===s?void 0:s.path)===e?o:void 0,d=!c&&(!l&&!o||(null===l||void 0===l?void 0:l.partial));return r.useEffect((()=>{d&&a()}),[a,e,d]),{data:l,isLoading:c,error:u}}const m=(0,o.Mz)((e=>e),((e,t)=>t),((e,t)=>f.endpoints.getSchema.select({path:e,database:t}))),g=(0,o.Mz)((e=>e),((e,t)=>t),((e,t,n)=>m(t,n)),((e,t,n)=>{var r;return null===(r=n(e).data)||void 0===r?void 0:r[t]}))},29322:(e,t,n)=>{"use strict";n.d(t,{v:()=>i});var r=n(59284);const i=({element:e,options:t,onIntersect:n})=>{r.useEffect((()=>{const r=new IntersectionObserver((([e])=>{e.isIntersecting&&(null===n||void 0===n||n())}),t);return e&&r.observe(e),()=>null===e?void 0:r.unobserve(e)}),[e,t,n])}},29355:e=>{var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var i=t(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},29416:(e,t)=>{"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case o:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case g:case m:case l:return e;default:return t}}case i:return t}}}function _(e){return x(e)===d}},29776:(e,t,n)=>{var r=n(150),i=1/0;e.exports=function(e){return e?(e=r(e))===i||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}},29819:(e,t,n)=>{"use strict";n.d(t,{GX:()=>l,Gi:()=>u,IK:()=>c,vI:()=>d});var r=n(67087),i=n(370),o=n(92459),a=n(29971);const s={storage:"storage",tablets:"tablets",structure:"structure"},l=[{id:s.storage,get title(){return(0,a.A)("tabs.storage")}},{id:s.structure,get title(){return(0,a.A)("tabs.structure")}},{id:s.tablets,get title(){return(0,a.A)("tabs.tablets")}}],c=i.z.nativeEnum(s).catch(s.tablets),u={database:r.StringParam,pdiskId:r.StringParam,vdiskId:r.StringParam};function d(e,t={},n){return(0,o.KY)(o.Ay.node,{id:e,activeTab:n},t)}},29863:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FORMAT_DEFAULT=void 0,t.expandFormat=l,t.formatDate=function(e,n,r){void 0===n&&(n=t.FORMAT_DEFAULT);void 0===r&&(r=i.settings.getLocaleData());var o=l(n,r.formats);return o.replace(c,(function(t){return u[t]?u[t](e,r,o):d(t)}))};var r=n(72328),i=n(77966),o=n(84080);function a(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}var s=/(\[[^\]]*])|(LTS?|l{1,4}|L{1,4})/g;function l(e,t){var n;void 0===t&&(t=null!==(n=i.settings.getLocaleData().formats)&&void 0!==n?n:r.englishFormats);for(var o=e,l=0;l<5;l++){var c=o.replace(s,(function(e,n,i){if(i){var o=i.toUpperCase();return t[i]||r.englishFormats[i]||a(t[o]||r.englishFormats[o])}return n}));if(c===o)break;o=c}return o}t.FORMAT_DEFAULT="YYYY-MM-DDTHH:mm:ssZ";var c=/(\[[^[]*\])|([Hh]mm(ss)?|Mo|M{1,4}|Do|DDDo|D{1,4}|d{2,4}|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|Y{4,6}|YY?|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,u={};function d(e){return e.replace(/^\[([\s\S)]*)\]$/g,"$1")}function f(e){return e%12||12}function p(e){return e||24}function h(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r}function m(e){var t=e.date,n=e.format,r=e.data,i=e.index,o=e.fullData,a=e.maxLength,s="";if(r&&(s="function"===typeof r?r(t,n):r[i]),!s&&o&&(s="function"===typeof o?o(t,n):o[i])&&(s=s.slice(0,a)),s)return s;throw new Error("Invalid locale data")}function g(e,t,n){void 0===n&&(n=!1);var r=String(Math.abs(e)),i="";return e<0?i="-":n&&(i="+"),"".concat(i).concat(r.padStart(t,"0"))}u.Y=function(e){var t=e.year();return t<=9999?g(t,4):"+"+t},u.YY=function(e){return g(e.year()%100,2)},u.YYYY=function(e){return g(e.year(),4)},u.YYYYY=function(e){return g(e.year(),5)},u.YYYYYY=function(e){return g(e.year(),6,!0)},u.M=function(e){return"".concat(e.month()+1)},u.MM=function(e){return g(e.month()+1,2)},u.Mo=function(e,t){var n;return d("".concat(null===(n=t.ordinal)||void 0===n?void 0:n.call(t,e.month()+1,"M")))},u.MMM=function(e,t,n){var r=e.month();return m({date:e,format:n,data:t.monthsShort,index:r,fullData:t.months,maxLength:3})},u.MMMM=function(e,t,n){var r=e.month();return m({date:e,format:n,data:t.months,index:r})},u.w=function(e){return"".concat(e.week())},u.ww=function(e){return g(e.week(),2)},u.wo=function(e,t){var n;return d("".concat(null===(n=t.ordinal)||void 0===n?void 0:n.call(t,e.week(),"w")))},u.W=function(e){return"".concat(e.isoWeek())},u.WW=function(e){return g(e.isoWeek(),2)},u.Wo=function(e,t){var n;return d("".concat(null===(n=t.ordinal)||void 0===n?void 0:n.call(t,e.isoWeek(),"W")))},u.d=function(e){return"".concat(e.day())},u.do=function(e,t){var n;return d("".concat(null===(n=t.ordinal)||void 0===n?void 0:n.call(t,e.day(),"d")))},u.dd=function(e,t,n){var r=e.day();return m({date:e,format:n,data:t.weekdaysMin,index:r,fullData:t.weekdays,maxLength:2})},u.ddd=function(e,t,n){var r=e.day();return m({date:e,format:n,data:t.weekdaysShort,index:r,fullData:t.weekdays,maxLength:3})},u.dddd=function(e,t,n){var r=e.day();return m({date:e,format:n,data:t.weekdays,index:r})},u.e=function(e){return"".concat(e.weekday())},u.E=function(e){return"".concat(e.isoWeekday())},u.H=function(e){return"".concat(e.hour())},u.HH=function(e){return g(e.hour(),2)},u.h=function(e){return"".concat(f(e.hour()))},u.hh=function(e){return g(f(e.hour()),2)},u.k=function(e){return"".concat(p(e.hour()))},u.kk=function(e){return g(p(e.hour()),2)},u.hmm=function(e){return"".concat(f(e.hour())).concat(g(e.minute(),2))},u.hmmss=function(e){return"".concat(f(e.hour())).concat(g(e.minute(),2)).concat(g(e.second(),2))},u.Hmm=function(e){return"".concat(e.hour()).concat(g(e.minute(),2))},u.Hmmss=function(e){return"".concat(e.hour()).concat(g(e.minute(),2)).concat(g(e.second(),2))},u.a=function(e,t){return(t.meridiem||h)(e.hour(),e.minute(),!0)},u.A=function(e,t){return(t.meridiem||h)(e.hour(),e.minute(),!1)},u.Z=function(e){var t=e.utcOffset(),n="+";return t<0&&(t=-t,n="-"),"".concat(n).concat(g(~~(t/60),2),":").concat(g(~~t%60,2))},u.ZZ=function(e){var t=e.utcOffset(),n="+";return t<0&&(t=-t,n="-"),"".concat(n).concat(g(~~(t/60),2)).concat(g(~~t%60,2))},u.Q=function(e){return"".concat(e.quarter())},u.Qo=function(e,t){var n;return d("".concat(null===(n=t.ordinal)||void 0===n?void 0:n.call(t,e.quarter(),"Q")))},u.D=function(e){return"".concat(e.date())},u.DD=function(e){return g(e.date(),2)},u.Do=function(e,t){var n;return d("".concat(null===(n=t.ordinal)||void 0===n?void 0:n.call(t,e.date(),"D")))},u.m=function(e){return"".concat(e.minute())},u.mm=function(e){return g(e.minute(),2)},u.s=function(e){return"".concat(e.second())},u.ss=function(e){return g(e.second(),2)},u.S=function(e){return"".concat(~~(e.millisecond()/100))},u.SS=function(e){return"".concat(~~(e.millisecond()/10))},u.SSS=function(e){return g(e.millisecond(),3)},u.SSSS=function(e){return g(10*e.millisecond(),4)},u.SSSSS=function(e){return g(100*e.millisecond(),5)},u.SSSSSS=function(e){return g(1e3*e.millisecond(),6)},u.SSSSSSS=function(e){return g(1e4*e.millisecond(),7)},u.SSSSSSSS=function(e){return g(1e5*e.millisecond(),8)},u.SSSSSSSSS=function(e){return g(1e6*e.millisecond(),9)},u.x=function(e){return"".concat(e.valueOf())},u.X=function(e){return"".concat(e.unix())},u.z=function(e){return(0,o.parseZoneInfo)({ts:e.valueOf(),locale:e.locale(),timeZone:e.timeZone(),offsetFormat:"short"})},u.zz=function(e){return(0,o.parseZoneInfo)({ts:e.valueOf(),locale:e.locale(),timeZone:e.timeZone(),offsetFormat:"long"})},u.DDD=function(e){return"".concat(e.dayOfYear())},u.DDDD=function(e){return g(e.dayOfYear(),3)},u.DDDo=function(e,t){var n;return d("".concat(null===(n=t.ordinal)||void 0===n?void 0:n.call(t,e.dayOfYear(),"DDD")))},u.gg=function(e){return g(e.weekYear()%100,2)},u.gggg=function(e){return g(e.weekYear(),4)},u.ggggg=function(e){return g(e.weekYear(),5)},u.GG=function(e){return g(e.isoWeekYear()%100,2)},u.GGGG=function(e){return g(e.isoWeekYear(),4)},u.GGGGG=function(e){return g(e.isoWeekYear(),5)}},29971:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(48372);const i=JSON.parse('{"pdisk.developer-ui-button-title":"PDisk Developer UI page","vdisk.developer-ui-button-title":"VDisk Developer UI page","tabs.storage":"Storage","tabs.structure":"Structure","tabs.tablets":"Tablets","node":"Node","fqdn":"FQDN","dc":"DC"}'),o=(0,r.g4)("ydb-node-page",{en:i})},30040:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},30507:(e,t,n)=>{var r=n(6993);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},30836:e=>{"use strict";e.exports=Object},31016:(e,t,n)=>{var r=n(31473),i=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!i&&i in e}},31062:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(48372);const i=JSON.parse('{"403.title":"Access denied","403.description":"You don\u2019t have the necessary roles to view this page.","responseError.defaultMessage":"Response error","error.title":"Error"}'),o=JSON.parse('{"403.title":"\u0414\u043e\u0441\u0442\u0443\u043f \u0437\u0430\u043f\u0440\u0435\u0449\u0435\u043d","403.description":"\u0423 \u0432\u0430\u0441 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u0430\u0432 \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b.","responseError.defaultMessage":"\u041e\u0448\u0438\u0431\u043a\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u0430","error.title":"\u041e\u0448\u0438\u0431\u043a\u0430"}'),a=(0,r.g4)("ydb-errors-access-denied",{ru:o,en:i})},31445:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},31473:(e,t,n)=>{var r=n(4133)["__core-js_shared__"];e.exports=r},31560:(e,t)=>{"use strict";function n(e){function t(t,i,o,a){var s=i?n+t+e.e+i:n+t,l=s;if(o){var c=" "+l+e.m;for(var u in o)if(o.hasOwnProperty(u)){var d=o[u];!0===d?l+=c+u:d&&(l+=c+u+r+d)}}if(void 0!==a)for(var f=0,p=(a=Array.isArray(a)?a:[a]).length;f<p;f++){var h=a[f];if(h&&"string"==typeof h.valueOf())for(var m=h.valueOf().split(" "),g=0;g<m.length;g++){var v=m[g];v!==s&&(l+=" "+v)}}return l}var n=e.n||"",r=e.v||e.m;return function(e,n){return function(r,i,o){return"string"==typeof r?"string"==typeof i||Array.isArray(i)?t(e,r,void 0,i):t(e,r,i,o):t(e,n,r,i)}}}n({e:"-",m:"_"}),t.withNaming=n},31684:(e,t,n)=>{"use strict";n.d(t,{Kx:()=>s,Un:()=>o,Wg:()=>c,_t:()=>u,ar:()=>l,t1:()=>a});var r=n(58351),i=n(41650);function o(e=r.Hs){return e+"/internal"}function a(e=r.Hs){return e+"/monitoring"}const s=(e,t=r.Hs)=>{const n=/\/node\/\d+\/?$/g;return n.test(String(t))?String(t).replace(n,`/node/${e}`):`${null!==t&&void 0!==t?t:""}/node/${e}`},l=({nodeId:e,pDiskId:t,host:n})=>{const r="/actors/pdisks/pdisk"+(0,i.pY)(t);return s(e,n)+r},c=({nodeId:e,pDiskId:t,vDiskSlotId:n,host:r})=>{const o="/actors/vdisks/vdisk"+(0,i.pY)(t)+"_"+(0,i.pY)(n);return s(e,r)+o};function u(e,t,n="TabletID",i=r.Hs){return`${i}/tablets${t?`/${t}`:""}?${n}=${e}`}},31693:e=>{e.exports=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}},31886:(e,t,n)=>{"use strict";var r=n(35711),i=n(39955),o=n(70084),a=n(63904);e.exports=function(e){if(e.length<1||"function"!==typeof e[0])throw new i("a function is required");return a(r,o,e)}},31926:(e,t,n)=>{var r=n(84100),i=n(59698);e.exports=function e(t,n,o,a,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!==t&&n!==n:r(t,n,o,a,e,s))}},32084:(e,t,n)=>{"use strict";n.d(t,{N:()=>o});var r=n(59284),i=n(42793);function o(...e){return r.useMemo((()=>e.every((e=>null===e||void 0===e))?null:t=>{for(const n of e)(0,i.c)(n,t)}),e)}},32112:e=>{e.exports=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}},32133:(e,t,n)=>{"use strict";var r=n(33410),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,o,a,s,l,c,u=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),s=document.createRange(),l=document.getSelection(),(c=document.createElement("span")).textContent=e,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),"undefined"===typeof r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=i[t.format]||i.default;window.clipboardData.setData(o,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(c),s.selectNodeContents(c),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(d){n&&console.error("unable to copy using execCommand: ",d),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(d){n&&console.error("unable to copy using clipboardData: ",d),n&&console.error("falling back to prompt"),o=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(o,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),c&&document.body.removeChild(c),a()}return u}},32213:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(l){s=[6,l],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.settings=void 0;var a=o(n(58671)),s=n(49837),l=o(n(38960)),c=n(84080),u=n(43377),d=function(){function e(){this.loadedLocales=new Set(["en"]),this.defaultLocale="en",this.defaultTimeZone="system",this.parser={parse:s.parse,isLikeRelative:s.isLikeRelative},this.updateLocale({weekStart:1,yearStart:1})}return e.prototype.loadLocale=function(e){return r(this,void 0,void 0,(function(){var t;return i(this,(function(n){switch(n.label){case 0:if(this.isLocaleLoaded(e))return[3,4];n.label=1;case 1:return n.trys.push([1,3,,4]),t=e.toLocaleLowerCase(),[4,(0,u.localeLoaders[t])()];case 2:return n.sent(),this.loadedLocales.add(t),[3,4];case 3:throw n.sent(),new Error("Can't load locale \"".concat(e,'". Either it does not exist, or there was a connection problem. Check the dayjs locations list: https://github.com/iamkun/dayjs/tree/dev/src/locale'));case 4:return[2]}}))}))},e.prototype.getLocale=function(){return this.defaultLocale},e.prototype.getLocaleData=function(){var e=l.default.Ls,t=e[this.getLocale()];if(t||(t=e.en),!t)throw new Error("There is something really wrong happening. Locale data is absent.");return(0,a.default)(t)},e.prototype.setLocale=function(e){if(!this.isLocaleLoaded(e))throw new Error('Seems you are trying to set an unloaded locale "'.concat(e,"\". Load it first by calling settings.loadLocale('").concat(e,"'). Check the dayjs locations list: https://github.com/iamkun/dayjs/tree/dev/src/locale"));this.defaultLocale=e},e.prototype.updateLocale=function(e){var t=this.getLocale();l.default.updateLocale(t,e)},e.prototype.setDefaultTimeZone=function(e){this.defaultTimeZone=(0,c.normalizeTimeZone)(e,"system")},e.prototype.getDefaultTimeZone=function(){return this.defaultTimeZone},e.prototype.setRelativeParser=function(e){this.parser=e},e.prototype.getRelativeParser=function(){return this.parser},e.prototype.isLocaleLoaded=function(e){var t=e.toLocaleLowerCase();return this.loadedLocales.has(t)},e}();t.settings=new d},32328:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var i=s(n(59284)),o=s(n(32133)),a=["text","onCopy","options","children"];function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function p(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h(e)}(this,n)}}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(l,e);var t,n,r,s=p(l);function l(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return g(h(e=s.call.apply(s,[this].concat(n))),"onClick",(function(t){var n=e.props,r=n.text,a=n.onCopy,s=n.children,l=n.options,c=i.default.Children.only(s),u=(0,o.default)(r,l);a&&a(r,u),c&&c.props&&"function"===typeof c.props.onClick&&c.props.onClick(t)})),e}return t=l,(n=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),n=u(e,a),r=i.default.Children.only(t);return i.default.cloneElement(r,c(c({},n),{},{onClick:this.onClick}))}}])&&d(t.prototype,n),r&&d(t,r),Object.defineProperty(t,"prototype",{writable:!1}),l}(i.default.PureComponent);t.CopyToClipboard=v,g(v,"defaultProps",{onCopy:void 0,options:void 0})},32361:(e,t,n)=>{var r=n(92470)(n(4133),"Set");e.exports=r},33120:(e,t,n)=>{var r=n(537),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},33410:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},33609:(e,t,n)=>{var r=n(29776);e.exports=function(e){var t=r(e),n=t%1;return t===t?n?t-n:t:0}},34271:(e,t,n)=>{"use strict";n.d(t,{I:()=>a,x:()=>s});var r=n(59284),i=n(60712);const o=r.createContext(void 0);function a({children:e,registry:t}){return(0,i.jsx)(o.Provider,{value:t,children:e})}function s(e){const t=r.useContext(o);if(void 0===t)throw new Error("useComponent must be used within ComponentsProvider");return t.get(e)}},34379:(e,t,n)=>{"use strict";n.d(t,{Av:()=>s,_y:()=>i,lf:()=>a,mF:()=>r,o$:()=>o});const r="control-error-message-qa",i="control-error-icon-qa",o=e=>"boolean"===typeof e?e?"on":"off":e,a=e=>"invalid"===e?"error":void 0,s=e=>{const{error:t,errorMessage:n,errorPlacement:r,validationState:i}=e;let o,a;return"string"===typeof t&&(o=t),n&&(o=n),("invalid"===i||Boolean(t))&&(a="invalid"),{errorMessage:o,errorPlacement:r,validationState:a}}},34657:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},35367:(e,t,n)=>{var r=n(81382),i=n(12249),o=n(71259),a=n(63909),s=n(46710),l=n(49538),c=n(11319),u=n(40279),d=n(91644),f=n(67530),p=n(35725),h=n(43261),m=n(613),g=n(55799),v=n(52497),y=n(19305),b=n(20368),w=n(50490),x=n(38469),_=n(87232),E=n(96294),S=n(6737),C="[object Arguments]",k="[object Function]",O="[object Object]",N={};N[C]=N["[object Array]"]=N["[object ArrayBuffer]"]=N["[object DataView]"]=N["[object Boolean]"]=N["[object Date]"]=N["[object Float32Array]"]=N["[object Float64Array]"]=N["[object Int8Array]"]=N["[object Int16Array]"]=N["[object Int32Array]"]=N["[object Map]"]=N["[object Number]"]=N[O]=N["[object RegExp]"]=N["[object Set]"]=N["[object String]"]=N["[object Symbol]"]=N["[object Uint8Array]"]=N["[object Uint8ClampedArray]"]=N["[object Uint16Array]"]=N["[object Uint32Array]"]=!0,N["[object Error]"]=N[k]=N["[object WeakMap]"]=!1,e.exports=function e(t,n,T,A,I,P){var R,D=1&n,j=2&n,M=4&n;if(T&&(R=I?T(t,A,I,P):T(t)),void 0!==R)return R;if(!x(t))return t;var L=y(t);if(L){if(R=m(t),!D)return c(t,R)}else{var z=h(t),F=z==k||"[object GeneratorFunction]"==z;if(b(t))return l(t,D);if(z==O||z==C||F&&!I){if(R=j||F?{}:v(t),!D)return j?d(t,s(R,t)):u(t,a(R,t))}else{if(!N[z])return I?t:{};R=g(t,z,D)}}P||(P=new r);var B=P.get(t);if(B)return B;P.set(t,R),_(t)?t.forEach((function(r){R.add(e(r,n,T,r,t,P))})):w(t)&&t.forEach((function(r,i){R.set(i,e(r,n,T,i,t,P))}));var U=L?void 0:(M?j?p:f:j?S:E)(t);return i(U||t,(function(r,i){U&&(r=t[i=r]),o(R,i,e(r,n,T,i,t,P))})),R}},35535:(e,t,n)=>{var r=n(73885),i=n(49535),o=n(46626),a=n(92061);e.exports=function(e){return o(e)?r(a(e)):i(e)}},35554:(e,t,n)=>{var r=n(18408),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)})),t}));e.exports=a},35647:(e,t,n)=>{var r=n(62990),i=n(90552);e.exports=function(e){return r((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++r<o;){var l=n[r];l&&e(t,l,r,a)}return t}))}},35711:(e,t,n)=>{"use strict";var r=n(9265);e.exports=Function.prototype.bind||r},35719:(e,t,n)=>{"use strict";n.d(t,{W:()=>r,z:()=>i});const r={.5:"half"},i={breakpoints:{s:576,m:768,l:1080,xl:1200,xxl:1400,xxxl:1920},spaceBaseSize:4,components:{container:{gutters:"3",media:{l:{gutters:"5"}}}}}},35725:(e,t,n)=>{var r=n(21551),i=n(12927),o=n(6737);e.exports=function(e){return r(e,o,i)}},36484:(e,t,n)=>{var r=n(92470)(n(4133),"DataView");e.exports=r},36613:(e,t,n)=>{var r=n(73148)();e.exports=r},36738:(e,t,n)=>{var r=n(16320),i=n(38469);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},36894:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,JP:()=>l,NJ:()=>u,Wg:()=>g,aW:()=>f,cu:()=>h,fu:()=>m,gJ:()=>c,xM:()=>p,ys:()=>d});var r=n(97091),i=n(76086),o=n(88610);const a=(0,r.Z0)({name:"queryActions",initialState:{queryName:null,queryAction:"idle",savedQueriesFilter:""},reducers:{setQueryNameToEdit:(e,t)=>{e.queryName=t.payload},clearQueryNameToEdit:e=>{e.queryName=null},setQueryAction:(e,t)=>{e.queryAction=t.payload},setSavedQueriesFilter:(e,t)=>{e.savedQueriesFilter=t.payload}},selectors:{selectQueryName:e=>e.queryName,selectQueryAction:e=>e.queryAction,selectSavedQueriesFilter:e=>e.savedQueriesFilter}}),s=a.reducer,{setQueryNameToEdit:l,clearQueryNameToEdit:c,setQueryAction:u,setSavedQueriesFilter:d}=a.actions,{selectQueryName:f,selectQueryAction:p,selectSavedQueriesFilter:h}=a.selectors;function m(e){return function(t,n){var r;const a=n(),s=(null!==(r=(0,o.CN)(a,i.ld))&&void 0!==r?r:[]).filter((t=>t.name.toLowerCase()!==e.toLowerCase()));t((0,o.gc)(i.ld,s))}}function g(e){return function(t,n){var r;const a=n(),s=null!==(r=(0,o.CN)(a,i.ld))&&void 0!==r?r:[],l=a.query.input;if(null===e)return;const c=[...s],u=c.find((t=>t.name.toLowerCase()===e.toLowerCase()));u?u.body=l:c.push({name:e,body:l}),t((0,o.gc)(i.ld,c))}}},37530:(e,t,n)=>{var r=n(9112);e.exports=function(e){return"function"==typeof e?e:r}},37737:e=>{e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<o.length;l++){var c=o[l];if(!s(c))return!1;var u=e[c],d=t[c];if(!1===(i=n?n.call(r,u,d,c):void 0)||void 0===i&&u!==d)return!1}return!0}},37815:(e,t,n)=>{var r=n(92470)(n(4133),"Map");e.exports=r},38198:(e,t,n)=>{const r=n(53577),i=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],o=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];t.getBlocksCount=function(e,t){switch(t){case r.L:return i[4*(e-1)+0];case r.M:return i[4*(e-1)+1];case r.Q:return i[4*(e-1)+2];case r.H:return i[4*(e-1)+3];default:return}},t.getTotalCodewordsCount=function(e,t){switch(t){case r.L:return o[4*(e-1)+0];case r.M:return o[4*(e-1)+1];case r.Q:return o[4*(e-1)+2];case r.H:return o[4*(e-1)+3];default:return}}},38469:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},38533:(e,t,n)=>{var r=n(57578),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},38596:(e,t,n)=>{"use strict";n.d(t,{Q:()=>i,U:()=>r});const r=e=>{let t=e;/\d{1,}-\d{1,}(-\d){0,}(-hotfix-\d{1,}(-\d{1,})?)?\.[0-9a-zA-Z]+$/.test(e)&&(t=t.replace(/(-hotfix-\d{1,}(-\d{1,})?)?\.[0-9a-zA-Z]+$/,""));return/\d{1,}-\d{1,}-\d{1,}-\d{1,}$/.test(e)&&(t=t.replace(/-\d{1,}$/,"")),t},i=e=>{const t=r(e);return/\d{1,}-\d{1,}-\d{1,}/.test(t)?t.replace(/-\d{1,}$/,""):t}},38602:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.47 13.03a.75.75 0 0 1 0-1.06L9.44 8 5.47 4.03a.75.75 0 0 1 1.06-1.06l4.5 4.5a.75.75 0 0 1 0 1.06l-4.5 4.5a.75.75 0 0 1-1.06 0",clipRule:"evenodd"}))},38896:(e,t,n)=>{var r=n(63546);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},38960:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(88409)),o=r(n(54533)),a=r(n(20549)),s=r(n(77354)),l=n(72328);i.default.extend(o.default),i.default.extend(s.default),i.default.extend(a.default),i.default.Ls.en.formats=l.englishFormats,t.default=i.default},39069:(e,t,n)=>{var r=n(34657),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),l=Array(s);++a<s;)l[a]=o[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=o[a];return c[t]=n(l),r(e,this,c)}}},39232:(e,t,n)=>{"use strict";var r=n(30836);e.exports=r.getPrototypeOf||null},39238:(e,t,n)=>{"use strict";n.d(t,{z:()=>Be});var r=n(59284),i=n(72630),o=n(32084),a=n(48681);function s(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function l(e){return e instanceof s(e).Element||e instanceof Element}function c(e){return e instanceof s(e).HTMLElement||e instanceof HTMLElement}function u(e){return"undefined"!==typeof ShadowRoot&&(e instanceof s(e).ShadowRoot||e instanceof ShadowRoot)}var d=Math.max,f=Math.min,p=Math.round;function h(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function m(){return!/^((?!chrome|android).)*safari/i.test(h())}function g(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&c(e)&&(i=e.offsetWidth>0&&p(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&p(r.height)/e.offsetHeight||1);var a=(l(e)?s(e):window).visualViewport,u=!m()&&n,d=(r.left+(u&&a?a.offsetLeft:0))/i,f=(r.top+(u&&a?a.offsetTop:0))/o,h=r.width/i,g=r.height/o;return{width:h,height:g,top:f,right:d+h,bottom:f+g,left:d,x:d,y:f}}function v(e){var t=s(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function y(e){return e?(e.nodeName||"").toLowerCase():null}function b(e){return((l(e)?e.ownerDocument:e.document)||window.document).documentElement}function w(e){return g(b(e)).left+v(e).scrollLeft}function x(e){return s(e).getComputedStyle(e)}function _(e){var t=x(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function E(e,t,n){void 0===n&&(n=!1);var r=c(t),i=c(t)&&function(e){var t=e.getBoundingClientRect(),n=p(t.width)/e.offsetWidth||1,r=p(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),o=b(t),a=g(e,i,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&(("body"!==y(t)||_(o))&&(l=function(e){return e!==s(e)&&c(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:v(e);var t}(t)),c(t)?((u=g(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):o&&(u.x=w(o))),{x:a.left+l.scrollLeft-u.x,y:a.top+l.scrollTop-u.y,width:a.width,height:a.height}}function S(e){var t=g(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function C(e){return"html"===y(e)?e:e.assignedSlot||e.parentNode||(u(e)?e.host:null)||b(e)}function k(e){return["html","body","#document"].indexOf(y(e))>=0?e.ownerDocument.body:c(e)&&_(e)?e:k(C(e))}function O(e,t){var n;void 0===t&&(t=[]);var r=k(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=s(r),a=i?[o].concat(o.visualViewport||[],_(r)?r:[]):r,l=t.concat(a);return i?l:l.concat(O(C(a)))}function N(e){return["table","td","th"].indexOf(y(e))>=0}function T(e){return c(e)&&"fixed"!==x(e).position?e.offsetParent:null}function A(e){for(var t=s(e),n=T(e);n&&N(n)&&"static"===x(n).position;)n=T(n);return n&&("html"===y(n)||"body"===y(n)&&"static"===x(n).position)?t:n||function(e){var t=/firefox/i.test(h());if(/Trident/i.test(h())&&c(e)&&"fixed"===x(e).position)return null;var n=C(e);for(u(n)&&(n=n.host);c(n)&&["html","body"].indexOf(y(n))<0;){var r=x(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var I="top",P="bottom",R="right",D="left",j="auto",M=[I,P,R,D],L="start",z="end",F="viewport",B="popper",U=M.reduce((function(e,t){return e.concat([t+"-"+L,t+"-"+z])}),[]),q=[].concat(M,[j]).reduce((function(e,t){return e.concat([t,t+"-"+L,t+"-"+z])}),[]),$=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function H(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}function V(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var W={placement:"bottom",modifiers:[],strategy:"absolute"};function K(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"===typeof e.getBoundingClientRect)}))}function G(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,i=t.defaultOptions,o=void 0===i?W:i;return function(e,t,n){void 0===n&&(n=o);var i={placement:"bottom",orderedModifiers:[],options:Object.assign({},W,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],s=!1,c={state:i,setOptions:function(n){var s="function"===typeof n?n(i.options):n;u(),i.options=Object.assign({},o,i.options,s),i.scrollParents={reference:l(e)?O(e):e.contextElement?O(e.contextElement):[],popper:O(t)};var d=function(e){var t=H(e);return $.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,i.options.modifiers)));return i.orderedModifiers=d.filter((function(e){return e.enabled})),i.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"===typeof o){var s=o({state:i,name:t,instance:c,options:r}),l=function(){};a.push(s||l)}})),c.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(K(t,n)){i.rects={reference:E(t,A(n),"fixed"===i.options.strategy),popper:S(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach((function(e){return i.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<i.orderedModifiers.length;r++)if(!0!==i.reset){var o=i.orderedModifiers[r],a=o.fn,l=o.options,u=void 0===l?{}:l,d=o.name;"function"===typeof a&&(i=a({state:i,options:u,name:d,instance:c})||i)}else i.reset=!1,r=-1}}},update:V((function(){return new Promise((function(e){c.forceUpdate(),e(i)}))})),destroy:function(){u(),s=!0}};if(!K(e,t))return c;function u(){a.forEach((function(e){return e()})),a=[]}return c.setOptions(n).then((function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)})),c}}var Y={passive:!0};function Q(e){return e.split("-")[0]}function Z(e){return e.split("-")[1]}function J(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function X(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?Q(i):null,a=i?Z(i):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case I:t={x:s,y:n.y-r.height};break;case P:t={x:s,y:n.y+n.height};break;case R:t={x:n.x+n.width,y:l};break;case D:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=o?J(o):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case L:t[c]=t[c]-(n[u]/2-r[u]/2);break;case z:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}var ee={top:"auto",right:"auto",bottom:"auto",left:"auto"};function te(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,f=e.isFixed,h=a.x,m=void 0===h?0:h,g=a.y,v=void 0===g?0:g,y="function"===typeof d?d({x:m,y:v}):{x:m,y:v};m=y.x,v=y.y;var w=a.hasOwnProperty("x"),_=a.hasOwnProperty("y"),E=D,S=I,C=window;if(u){var k=A(n),O="clientHeight",N="clientWidth";if(k===s(n)&&"static"!==x(k=b(n)).position&&"absolute"===l&&(O="scrollHeight",N="scrollWidth"),i===I||(i===D||i===R)&&o===z)S=P,v-=(f&&k===C&&C.visualViewport?C.visualViewport.height:k[O])-r.height,v*=c?1:-1;if(i===D||(i===I||i===P)&&o===z)E=R,m-=(f&&k===C&&C.visualViewport?C.visualViewport.width:k[N])-r.width,m*=c?1:-1}var T,j=Object.assign({position:l},u&&ee),M=!0===d?function(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:p(n*i)/i||0,y:p(r*i)/i||0}}({x:m,y:v},s(n)):{x:m,y:v};return m=M.x,v=M.y,c?Object.assign({},j,((T={})[S]=_?"0":"",T[E]=w?"0":"",T.transform=(C.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",T)):Object.assign({},j,((t={})[S]=_?v+"px":"",t[E]=w?m+"px":"",t.transform="",t))}const ne={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,a=q.reduce((function(e,n){return e[n]=function(e,t,n){var r=Q(e),i=[D,I].indexOf(r)>=0?-1:1,o="function"===typeof n?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[D,R].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,o),e}),{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}};var re={left:"right",right:"left",bottom:"top",top:"bottom"};function ie(e){return e.replace(/left|right|bottom|top/g,(function(e){return re[e]}))}var oe={start:"end",end:"start"};function ae(e){return e.replace(/start|end/g,(function(e){return oe[e]}))}function se(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&u(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function le(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ce(e,t,n){return t===F?le(function(e,t){var n=s(e),r=b(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,l=0,c=0;if(i){o=i.width,a=i.height;var u=m();(u||!u&&"fixed"===t)&&(l=i.offsetLeft,c=i.offsetTop)}return{width:o,height:a,x:l+w(e),y:c}}(e,n)):l(t)?function(e,t){var n=g(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):le(function(e){var t,n=b(e),r=v(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=d(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=d(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+w(e),l=-r.scrollTop;return"rtl"===x(i||n).direction&&(s+=d(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}(b(e)))}function ue(e,t,n,r){var i="clippingParents"===t?function(e){var t=O(C(e)),n=["absolute","fixed"].indexOf(x(e).position)>=0&&c(e)?A(e):e;return l(n)?t.filter((function(e){return l(e)&&se(e,n)&&"body"!==y(e)})):[]}(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce((function(t,n){var i=ce(e,n,r);return t.top=d(i.top,t.top),t.right=f(i.right,t.right),t.bottom=f(i.bottom,t.bottom),t.left=d(i.left,t.left),t}),ce(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function de(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function fe(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function pe(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,o=n.strategy,a=void 0===o?e.strategy:o,s=n.boundary,c=void 0===s?"clippingParents":s,u=n.rootBoundary,d=void 0===u?F:u,f=n.elementContext,p=void 0===f?B:f,h=n.altBoundary,m=void 0!==h&&h,v=n.padding,y=void 0===v?0:v,w=de("number"!==typeof y?y:fe(y,M)),x=p===B?"reference":B,_=e.rects.popper,E=e.elements[m?x:p],S=ue(l(E)?E:E.contextElement||b(e.elements.popper),c,d,a),C=g(e.elements.reference),k=X({reference:C,element:_,strategy:"absolute",placement:i}),O=le(Object.assign({},_,k)),N=p===B?O:C,T={top:S.top-N.top+w.top,bottom:N.bottom-S.bottom+w.bottom,left:S.left-N.left+w.left,right:N.right-S.right+w.right},A=e.modifiersData.offset;if(p===B&&A){var D=A[i];Object.keys(T).forEach((function(e){var t=[R,P].indexOf(e)>=0?1:-1,n=[I,P].indexOf(e)>=0?"y":"x";T[e]+=D[n]*t}))}return T}const he={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,g=t.options.placement,v=Q(g),y=l||(v===g||!h?[ie(g)]:function(e){if(Q(e)===j)return[];var t=ie(e);return[ae(e),t,ae(t)]}(g)),b=[g].concat(y).reduce((function(e,n){return e.concat(Q(n)===j?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?q:l,u=Z(r),d=u?s?U:U.filter((function(e){return Z(e)===u})):M,f=d.filter((function(e){return c.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=pe(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[Q(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),w=t.rects.reference,x=t.rects.popper,_=new Map,E=!0,S=b[0],C=0;C<b.length;C++){var k=b[C],O=Q(k),N=Z(k)===L,T=[I,P].indexOf(O)>=0,A=T?"width":"height",z=pe(t,{placement:k,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),F=T?N?R:D:N?P:I;w[A]>x[A]&&(F=ie(F));var B=ie(F),$=[];if(o&&$.push(z[O]<=0),s&&$.push(z[F]<=0,z[B]<=0),$.every((function(e){return e}))){S=k,E=!1;break}_.set(k,$)}if(E)for(var H=function(e){var t=b.find((function(t){var n=_.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},V=h?3:1;V>0;V--){if("break"===H(V))break}t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function me(e,t,n){return d(e,f(t,n))}const ge={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,p=n.padding,h=n.tether,m=void 0===h||h,g=n.tetherOffset,v=void 0===g?0:g,y=pe(t,{boundary:l,rootBoundary:c,padding:p,altBoundary:u}),b=Q(t.placement),w=Z(t.placement),x=!w,_=J(b),E="x"===_?"y":"x",C=t.modifiersData.popperOffsets,k=t.rects.reference,O=t.rects.popper,N="function"===typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,T="number"===typeof N?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(C){if(o){var z,F="y"===_?I:D,B="y"===_?P:R,U="y"===_?"height":"width",q=C[_],$=q+y[F],H=q-y[B],V=m?-O[U]/2:0,W=w===L?k[U]:O[U],K=w===L?-O[U]:-k[U],G=t.elements.arrow,Y=m&&G?S(G):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ee=X[F],te=X[B],ne=me(0,k[U],Y[U]),re=x?k[U]/2-V-ne-ee-T.mainAxis:W-ne-ee-T.mainAxis,ie=x?-k[U]/2+V+ne+te+T.mainAxis:K+ne+te+T.mainAxis,oe=t.elements.arrow&&A(t.elements.arrow),ae=oe?"y"===_?oe.clientTop||0:oe.clientLeft||0:0,se=null!=(z=null==j?void 0:j[_])?z:0,le=q+ie-se,ce=me(m?f($,q+re-se-ae):$,q,m?d(H,le):H);C[_]=ce,M[_]=ce-q}if(s){var ue,de="x"===_?I:D,fe="x"===_?P:R,he=C[E],ge="y"===E?"height":"width",ve=he+y[de],ye=he-y[fe],be=-1!==[I,D].indexOf(b),we=null!=(ue=null==j?void 0:j[E])?ue:0,xe=be?ve:he-k[ge]-O[ge]-we+T.altAxis,_e=be?he+k[ge]+O[ge]-we-T.altAxis:ye,Ee=m&&be?function(e,t,n){var r=me(e,t,n);return r>n?n:r}(xe,he,_e):me(m?xe:ve,he,m?_e:ye);C[E]=Ee,M[E]=Ee-he}t.modifiersData[r]=M}},requiresIfExists:["offset"]};const ve={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Q(n.placement),l=J(s),c=[D,R].indexOf(s)>=0?"height":"width";if(o&&a){var u=function(e,t){return de("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:fe(e,M))}(i.padding,n),d=S(o),f="y"===l?I:D,p="y"===l?P:R,h=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],m=a[l]-n.rects.reference[l],g=A(o),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,y=h/2-m/2,b=u[f],w=v-d[c]-u[p],x=v/2-d[c]/2+y,_=me(b,x,w),E=l;n.modifiersData[r]=((t={})[E]=_,t.centerOffset=_-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r)))&&se(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ye(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function be(e){return[I,R,P,D].some((function(t){return e[t]>=0}))}var we=G({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,a=r.resize,l=void 0===a||a,c=s(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach((function(e){e.addEventListener("scroll",n.update,Y)})),l&&c.addEventListener("resize",n.update,Y),function(){o&&u.forEach((function(e){e.removeEventListener("scroll",n.update,Y)})),l&&c.removeEventListener("resize",n.update,Y)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=X({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,l=void 0===s||s,c={placement:Q(t.placement),variation:Z(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,te(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,te(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];c(i)&&y(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});c(r)&&y(r)&&(Object.assign(r.style,o),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},ne,he,ge,ve,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=pe(t,{elementContext:"reference"}),s=pe(t,{altBoundary:!0}),l=ye(a,r),c=ye(s,i,o),u=be(l),d=be(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}),xe=n(45099),_e=n.n(xe),Ee=function(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})},Se="undefined"!==typeof window&&window.document&&window.document.createElement?r.useLayoutEffect:r.useEffect,Ce=[],ke=function(e,t,n){void 0===n&&(n={});var i=r.useRef(null),o={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||Ce},s=r.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=s[0],c=s[1],u=r.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);a.flushSync((function(){c({styles:Ee(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:Ee(n.map((function(e){return[e,t.attributes[e]]})))})}))},requires:["computeStyles"]}}),[]),d=r.useMemo((function(){var e={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[u,{name:"applyStyles",enabled:!1}])};return _e()(i.current,e)?i.current||e:(i.current=e,e)}),[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,u]),f=r.useRef();return Se((function(){f.current&&f.current.setOptions(d)}),[d]),Se((function(){if(null!=e&&null!=t){var r=(n.createPopper||we)(e,t,d);return f.current=r,function(){r.destroy(),f.current=null}}}),[e,t,n.createPopper]),{state:f.current?f.current.state:null,styles:l.styles,attributes:l.attributes,update:f.current?f.current.update:null,forceUpdate:f.current?f.current.forceUpdate:null}},Oe=n(54245);const Ne=["bottom-start","bottom","bottom-end","top-start","top","top-end","right-start","right","right-end","left-start","left","left-end"],Te={name:"rtlOffsetFix",enabled:!0,phase:"main",requires:["offset"],fn({state:e}){var t;if(!e.placement.startsWith("top")&&!e.placement.startsWith("bottom"))return;const n=null===(t=e.modifiersData.offset)||void 0===t?void 0:t[e.placement];n&&(e.modifiersData.popperOffsets.x-=2*n.x)}};var Ae=n(18670),Ie=n(98392),Pe=n(19225),Re=n(69220),De=n(99635),je=n(6826);const Me=(0,Re.om)("popup");function Le({styles:e,attributes:t,setArrowRef:n}){return r.createElement("div",Object.assign({"data-popper-arrow":!0,ref:n,className:Me("arrow"),style:e},t),r.createElement("div",{className:Me("arrow-content")},r.createElement("div",{className:Me("arrow-circle-wrapper")},r.createElement("div",{className:Me("arrow-circle",{left:!0})})),r.createElement("div",{className:Me("arrow-circle-wrapper")},r.createElement("div",{className:Me("arrow-circle",{right:!0})}))))}const ze=(0,Re.om)("popup"),Fe=8;function Be({keepMounted:e=!1,hasArrow:t=!1,offset:n=[0,4],open:a,placement:s,anchorRef:l,disableEscapeKeyDown:c,disableOutsideClick:u,disableLayer:d,style:f,className:p,contentClassName:h,modifiers:m=[],children:g,onEscapeKeyDown:v,onOutsideClick:y,onClose:b,onClick:w,onMouseEnter:x,onMouseLeave:_,onFocus:E,onBlur:S,onTransitionEnter:C,onTransitionEntered:k,onTransitionExit:O,onTransitionExited:N,disablePortal:T,container:A,strategy:I,qa:P,restoreFocus:R,restoreFocusRef:D,"aria-label":j,"aria-labelledby":M,role:L,id:z,focusTrap:F=!1,autoFocus:B=!1,"aria-modal":U=F}){const q=r.useRef(null);(0,De.Z)({open:a,disableEscapeKeyDown:c,disableOutsideClick:u,onEscapeKeyDown:v,onOutsideClick:y,onClose:b,contentRefs:[l,q],enabled:!d,type:"popup"});const{attributes:$,styles:H,setPopperRef:V,setArrowRef:W}=function({anchorRef:e,placement:t=Ne,offset:n,modifiers:i=[],strategy:o,altBoundary:a}){const[s,l]=r.useState(null),[c,u]=r.useState(null),d=(0,Oe.j)(),f=r.useMemo((()=>{let e=Array.isArray(t)?t:[t];return"rtl"===d&&(e=e.map((e=>e.replace(/(top|bottom)-(start|end)/g,((e,t,n)=>"start"===n?t+"-end":"end"===n?t+"-start":e))))),e}),[t,d]),{attributes:p,styles:h}=ke(null===e||void 0===e?void 0:e.current,s,{strategy:o,modifiers:[{name:"arrow",options:{element:c}},{name:"offset",options:{offset:n,altBoundary:a}},{name:"flip",options:{fallbackPlacements:f.slice(1),altBoundary:a}},..."rtl"===d?[Te]:[],...i],placement:f[0]});return{attributes:p,styles:h,setPopperRef:l,setArrowRef:u}}({anchorRef:l,placement:s,offset:t?[n[0],n[1]+Fe]:n,strategy:I,altBoundary:T,modifiers:[{name:"arrow",options:{enabled:t,padding:4}},{name:"preventOverflow",options:{padding:1,altBoundary:T}},...m]}),K=(0,o.N)(V,q,(0,Pe.N)()),G=(0,Ae.s)({enabled:Boolean(R&&a),restoreFocusRef:D});let Y=L;return!0!==U&&"true"!==U||Y||(Y="dialog"),r.createElement(i.A,{nodeRef:q,in:a,addEndListener:e=>{var t;return null===(t=q.current)||void 0===t?void 0:t.addEventListener("animationend",e)},classNames:(0,je.L)(ze),mountOnEnter:!e,unmountOnExit:!e,appear:!0,onEnter:()=>{null===C||void 0===C||C()},onEntered:()=>{null===k||void 0===k||k()},onExit:()=>{null===O||void 0===O||O()},onExited:()=>{null===N||void 0===N||N()}},r.createElement(Ie.Z,{container:A,disablePortal:T},r.createElement("div",Object.assign({ref:K,style:H.popper},$.popper,G,{className:ze({open:a},p),"data-qa":P,id:z,role:Y,"aria-label":j,"aria-labelledby":M,"aria-modal":U&&a?U:void 0}),r.createElement(Pe.s,{enabled:F&&a,autoFocus:B},r.createElement("div",{onClick:w,onMouseEnter:x,onMouseLeave:_,onFocus:E,onBlur:S,className:ze("content",h),style:f,tabIndex:-1},t&&r.createElement(Le,{styles:H.arrow,attributes:$.arrow,setArrowRef:W}),g)))))}},39450:(e,t,n)=>{var r=n(537),i=n(7804),o=n(61872),a=n(63679),s=n(96741),l=n(80303),c=r?r.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,d,f){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=s;case"[object Set]":var h=1&r;if(p||(p=l),e.size!=t.size&&!h)return!1;var m=f.get(e);if(m)return m==t;r|=2,f.set(e,t);var g=a(p(e),p(t),r,c,d,f);return f.delete(e),g;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},39567:(e,t,n)=>{"use strict";n.d(t,{Fe:()=>c,ub:()=>u,Ay:()=>l});var r=n(97091),i=n(21334),o=n(40537);const a=e=>{const{clusters:t=[]}=e;let n=new Map;t.forEach((({versions:e=[]})=>{n=(0,o.HD)(e,n)}));const r=(0,o.Vm)(n);return t.map((e=>({...e,preparedVersions:(0,o.NN)(e.versions,r)})))},s=(0,r.Z0)({name:"clusters",initialState:{clusterName:"",status:[],service:[],version:[]},reducers:{changeClustersFilters:(e,t)=>({...e,...t.payload})}}),l=s.reducer,{changeClustersFilters:c}=s.actions,u=i.F.injectEndpoints({endpoints:e=>({getClustersList:e.query({queryFn:async(e,{signal:t})=>{try{if(window.api.meta){const e=await window.api.meta.getClustersList(void 0,{signal:t});return{data:a(e)}}throw new Error("Method is not implemented.")}catch(n){return{error:n}}},providesTags:["All"]})}),overrideExisting:"throw"})},39955:e=>{"use strict";e.exports=TypeError},40091:(e,t,n)=>{"use strict";n.d(t,{B:()=>le});var r=n(59284),i=n(62060),o=n.n(i),a=n(38469),s=n.n(a),l=n(53202);let c;c="undefined"!==typeof window?window:"undefined"!==typeof self?self:n.g;let u=null,d=null;const f=c.clearTimeout,p=c.setTimeout,h=c.cancelAnimationFrame||c.mozCancelAnimationFrame||c.webkitCancelAnimationFrame,m=c.requestAnimationFrame||c.mozRequestAnimationFrame||c.webkitRequestAnimationFrame;function g(e){let t,n,r,i,o,a,s;const l="undefined"!==typeof document&&document.attachEvent;if(!l){a=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,i=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,i.style.width=n.offsetWidth+1+"px",i.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},o=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},s=function(e){if(e.target.className&&"function"===typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;a(this),this.__resizeRAF__&&u(this.__resizeRAF__),this.__resizeRAF__=d((function(){o(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))};let e=!1,l="";r="animationstart";const c="Webkit Moz O ms".split(" ");let f="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let n=0;n<c.length;n++)if(void 0!==t.style[c[n]+"AnimationName"]){p=c[n],l="-"+p.toLowerCase()+"-",r=f[n],e=!0;break}}n="resizeanim",t="@"+l+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",i=l+"animation: 1ms "+n+"; "}return{addResizeListener:function(o,u){if(l)o.attachEvent("onresize",u);else{if(!o.__resizeTriggers__){const l=o.ownerDocument,u=c.getComputedStyle(o);u&&"static"===u.position&&(o.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const r=(t||"")+".resize-triggers { "+(i||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',o=n.head||n.getElementsByTagName("head")[0],a=n.createElement("style");a.id="detectElementResize",a.type="text/css",null!=e&&a.setAttribute("nonce",e),a.styleSheet?a.styleSheet.cssText=r:a.appendChild(n.createTextNode(r)),o.appendChild(a)}}(l),o.__resizeLast__={},o.__resizeListeners__=[],(o.__resizeTriggers__=l.createElement("div")).className="resize-triggers";const d=l.createElement("div");d.className="expand-trigger",d.appendChild(l.createElement("div"));const f=l.createElement("div");f.className="contract-trigger",o.__resizeTriggers__.appendChild(d),o.__resizeTriggers__.appendChild(f),o.appendChild(o.__resizeTriggers__),a(o),o.addEventListener("scroll",s,!0),r&&(o.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&a(o)},o.__resizeTriggers__.addEventListener(r,o.__resizeTriggers__.__animationListener__))}o.__resizeListeners__.push(u)}},removeResizeListener:function(e,t){if(l)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",s,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(n){}}}}}null==h||null==m?(u=f,d=function(e){return p(e,20)}):(u=function([e,t]){h(e),f(t)},d=function(e){const t=m((function(){f(n),e()})),n=p((function(){h(t),e()}),20);return[t,n]});class v extends r.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){const r=window.getComputedStyle(this._parentNode)||{},i=parseFloat(r.paddingLeft||"0"),o=parseFloat(r.paddingRight||"0"),a=parseFloat(r.paddingTop||"0"),s=parseFloat(r.paddingBottom||"0"),l=this._parentNode.getBoundingClientRect(),c=l.height-a-s,u=l.width-i-o,d=this._parentNode.offsetHeight-a-s,f=this._parentNode.offsetWidth-i-o;(e||this.state.height===d&&this.state.scaledHeight===c)&&(t||this.state.width===f&&this.state.scaledWidth===u)||(this.setState({height:d,width:f,scaledHeight:c,scaledWidth:u}),"function"===typeof n&&n({height:d,scaledHeight:c,scaledWidth:u,width:f}))}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(null!=t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;const n=t.ownerDocument.defaultView.ResizeObserver;null!=n?(this._resizeObserver=new n((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(t)):(this._detectElementResize=g(e),this._detectElementResize.addResizeListener(t,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:i=!1,disableWidth:o=!1,doNotBailOutOnEmptyChildren:a=!1,nonce:s,onResize:l,style:c={},tagName:u="div",...d}=this.props,{height:f,scaledHeight:p,scaledWidth:h,width:m}=this.state,g={overflow:"visible"},v={};let y=!1;return i||(0===f&&(y=!0),g.height=0,v.height=f,v.scaledHeight=p),o||(0===m&&(y=!0),g.width=0,v.width=m,v.scaledWidth=h),a&&(y=!1),(0,r.createElement)(u,{ref:this._setRef,style:{...g,...c},...d},!y&&e(v))}}var y=n(58168),b=n(9417),w=n(25540),x=n(77995),_="object"===typeof performance&&"function"===typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function E(e){cancelAnimationFrame(e.id)}function S(e,t){var n=_();var r={id:requestAnimationFrame((function i(){_()-n>=t?e.call(null):r.id=requestAnimationFrame(i)}))};return r}var C=-1;function k(e){if(void 0===e&&(e=!1),-1===C||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),C=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return C}var O=null;function N(e){if(void 0===e&&(e=!1),null===O||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),i=r.style;return i.width="100px",i.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?O="positive-descending":(t.scrollLeft=1,O=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),O}return O}var T=function(e,t){return e};function A(e){var t,n=e.getItemOffset,i=e.getEstimatedTotalSize,o=e.getItemSize,a=e.getOffsetForIndexAndAlignment,s=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,c=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=c(r.props,(0,b.A)(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:(0,b.A)(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"===typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=(0,x.A)((function(e,t,n,i){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:i})})),r._callOnScroll=void 0,r._callOnScroll=(0,x.A)((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,s=i.itemSize,l=i.layout,c=r._getItemStyleCache(u&&s,u&&l,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=n(r.props,e,r._instanceProps),f=o(r.props,e,r._instanceProps),p="horizontal"===a||"horizontal"===l,h="rtl"===a,m=p?d:0;c[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:p?0:d,height:p?"100%":f,width:p?f:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=(0,x.A)((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,i=t.scrollLeft,o=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===i)return null;var t=r.props.direction,a=i;if("rtl"===t)switch(N()){case"negative":a=-i;break;case"positive-descending":a=o-n-i}return a=Math.max(0,Math.min(a,o-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,i=t.scrollHeight,o=t.scrollTop;r.setState((function(e){if(e.scrollOffset===o)return null;var t=Math.max(0,Math.min(o,i-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"===typeof t?t(e):null!=t&&"object"===typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&E(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=S(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}(0,w.A)(t,e),t.getDerivedStateFromProps=function(e,t){return I(e,t),d(e),null};var f=t.prototype;return f.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},f.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,i=n.layout,o=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===i?l.scrollWidth>l.clientWidth?k():0:l.scrollHeight>l.clientHeight?k():0}this.scrollTo(a(this.props,e,t,o,this._instanceProps,s))},f.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"===typeof n&&null!=this._outerRef){var i=this._outerRef;"horizontal"===t||"horizontal"===r?i.scrollLeft=n:i.scrollTop=n}this._callPropsCallbacks()},f.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,i=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(N()){case"negative":o.scrollLeft=-i;break;case"positive-ascending":o.scrollLeft=i;break;default:var a=o.clientWidth,s=o.scrollWidth;o.scrollLeft=s-a-i}else o.scrollLeft=i;else o.scrollTop=i}this._callPropsCallbacks()},f.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&E(this._resetIsScrollingTimeoutId)},f.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,a=e.height,s=e.innerRef,l=e.innerElementType,c=e.innerTagName,u=e.itemCount,d=e.itemData,f=e.itemKey,p=void 0===f?T:f,h=e.layout,m=e.outerElementType,g=e.outerTagName,v=e.style,b=e.useIsScrolling,w=e.width,x=this.state.isScrolling,_="horizontal"===o||"horizontal"===h,E=_?this._onScrollHorizontal:this._onScrollVertical,S=this._getRangeToRender(),C=S[0],k=S[1],O=[];if(u>0)for(var N=C;N<=k;N++)O.push((0,r.createElement)(t,{data:d,key:p(N,d),index:N,isScrolling:b?x:void 0,style:this._getItemStyle(N)}));var A=i(this.props,this._instanceProps);return(0,r.createElement)(m||g||"div",{className:n,onScroll:E,ref:this._outerRefSetter,style:(0,y.A)({position:"relative",height:a,width:w,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},(0,r.createElement)(l||c||"div",{children:O,ref:s,style:{height:_?"100%":A,pointerEvents:x?"none":void 0,width:_?A:"100%"}}))},f._callPropsCallbacks=function(){if("function"===typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],i=e[3];this._callOnItemsRendered(t,n,r,i)}if("function"===typeof this.props.onScroll){var o=this.state,a=o.scrollDirection,s=o.scrollOffset,l=o.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},f._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,i=r.isScrolling,o=r.scrollDirection,a=r.scrollOffset;if(0===t)return[0,0,0,0];var c=s(this.props,a,this._instanceProps),u=l(this.props,c,a,this._instanceProps),d=i&&"backward"!==o?1:Math.max(1,n),f=i&&"forward"!==o?1:Math.max(1,n);return[Math.max(0,c-d),Math.max(0,Math.min(t-1,u+f)),c,u]},t}(r.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var I=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},P=function(e,t,n){var r=e.itemSize,i=n.itemMetadataMap,o=n.lastMeasuredIndex;if(t>o){var a=0;if(o>=0){var s=i[o];a=s.offset+s.size}for(var l=o+1;l<=t;l++){var c=r(l);i[l]={offset:a,size:c},a+=c}n.lastMeasuredIndex=t}return i[t]},R=function(e,t,n,r,i){for(;r<=n;){var o=r+Math.floor((n-r)/2),a=P(e,o,t).offset;if(a===i)return o;a<i?r=o+1:a>i&&(n=o-1)}return r>0?r-1:0},D=function(e,t,n,r){for(var i=e.itemCount,o=1;n<i&&P(e,n,t).offset<r;)n+=o,o*=2;return R(e,t,Math.min(n,i-1),Math.floor(n/2),r)},j=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,i=t.estimatedItemSize,o=t.lastMeasuredIndex,a=0;if(o>=n&&(o=n-1),o>=0){var s=r[o];a=s.offset+s.size}return a+(n-o-1)*i},M=A({getItemOffset:function(e,t,n){return P(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:j,getOffsetForIndexAndAlignment:function(e,t,n,r,i,o){var a=e.direction,s=e.height,l=e.layout,c=e.width,u="horizontal"===a||"horizontal"===l?c:s,d=P(e,t,i),f=j(e,i),p=Math.max(0,Math.min(f-u,d.offset)),h=Math.max(0,d.offset-u+d.size+o);switch("smart"===n&&(n=r>=h-u&&r<=p+u?"auto":"center"),n){case"start":return p;case"end":return h;case"center":return Math.round(h+(p-h)/2);default:return r>=h&&r<=p?r:r<h?h:p}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,i=t.lastMeasuredIndex;return(i>0?r[i].offset:0)>=n?R(e,t,i,0,n):D(e,t,Math.max(0,i),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var i=e.direction,o=e.height,a=e.itemCount,s=e.layout,l=e.width,c="horizontal"===i||"horizontal"===s?l:o,u=P(e,t,r),d=n+c,f=u.offset+u.size,p=t;p<a-1&&f<d;)p++,f+=P(e,p,r).size;return p},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});var L=n(28664),z=n(11507),F=n(54245),B=n(69220),U=n(10176),q=n(29322),$=n(74417);const H=(0,B.om)("list"),V=e=>{const t=r.useRef(null);return(0,q.v)({element:t.current,onIntersect:null===e||void 0===e?void 0:e.onIntersect}),r.createElement("div",{ref:t,className:H("loading-indicator")},r.createElement($.a,{qa:"list-loader"}))};var W=n(66821),K=n(99991),G=n(11669),Y=n(359);const Q="list-active-item",Z=[Y.D.TAB],J=(0,B.om)("list"),X=e=>String(e);function ee(e,t){return t?Object.assign(Object.assign({},null===e||void 0===e?void 0:e.draggableProps.style),t):null===e||void 0===e?void 0:e.draggableProps.style}class te extends r.Component{constructor(){super(...arguments),this.node=null,this.getNode=()=>this.node,this.setRef=e=>{var t;this.node=e,null===(t=this.props.provided)||void 0===t||t.innerRef(e)},this.onClick=e=>{this.props.onClick&&this.props.onClick(this.props.item,this.props.itemIndex,!1,e)},this.onClickCapture=e=>{te.publishEvent({domEvent:e,eventId:"click"})},this.onMouseEnter=()=>!this.props.item.disabled&&this.props.onActivate(this.props.itemIndex)}render(){var e,t;const{item:n,height:i,style:o,sortable:a,sortHandleAlign:s,itemClassName:l,selected:c,active:u,role:d="listitem",isDragging:f=!1}=this.props,p=Object.assign(Object.assign({height:i},o),{right:void 0});return r.createElement("div",Object.assign({role:d,"aria-selected":c,"aria-disabled":n.disabled,"data-qa":u?Q:void 0,className:J("item",{sortable:a,active:u,selected:c,inactive:n.disabled,"sort-handle-align":s,dragging:f},l)},null===(e=this.props.provided)||void 0===e?void 0:e.draggableProps,null===(t=this.props.provided)||void 0===t?void 0:t.dragHandleProps,{style:ee(this.props.provided,p),onClick:n.disabled?void 0:this.onClick,onClickCapture:n.disabled?void 0:this.onClickCapture,onMouseEnter:this.onMouseEnter,ref:this.setRef,id:`${this.props.listId}-item-${this.props.itemIndex}`}),this.renderSortIcon(),this.renderContent())}renderSortIcon(){const{sortable:e}=this.props;return e?r.createElement("div",{className:J("item-sort-icon")},r.createElement(K.I,{data:W.A,size:12})):null}renderContent(){const{renderItem:e=X,item:t,active:n,itemIndex:i}=this.props;return r.createElement("div",{className:J("item-content")},e(t,n,i))}}te.publishEvent=G.o.withEventPublisher("List");var ne=n(36613),re=n.n(ne);function ie(e){return re()(e).reduce(((e,t)=>(e[t]=r.createRef(),e)),{})}class oe extends r.Component{static getDerivedStateFromProps({itemCount:e},t){return e===Object.keys(t.refsList).length?t:{refsList:ie(e)}}constructor(e){super(e),this.node=null,this.setRef=e=>{var t;this.node=e,null===(t=this.props.provided)||void 0===t||t.innerRef(e)},this.state={refsList:ie(e.itemCount)}}render(){const e=r.Children.map(this.props.children,((e,t)=>r.cloneElement(e,{ref:this.state.refsList[t]})));return r.createElement("div",{ref:this.setRef},e)}scrollToItem(e){var t,n,r,i;const o=null===(t=this.state.refsList[e])||void 0===t?void 0:t.current;if(o&&"function"===typeof o.getNode){const e=o.getNode();e&&((null===(r=(n=this.props).onScrollToItem)||void 0===r?void 0:r.call(n,e))||null===(i=e.scrollIntoView)||void 0===i||i.call(e,{block:"nearest"}))}}}const ae=(0,B.om)("list"),se=r.forwardRef(((e,t)=>r.createElement(M,Object.assign({ref:t},e,{direction:(0,F.j)()}))));se.displayName="ListContainer";class le extends r.Component{constructor(){super(...arguments),this.state={items:this.props.items,activeItem:this.props.activeItemIndex,filter:""},this.refFilter=r.createRef(),this.refContainer=r.createRef(),this.blurTimer=null,this.loadingItem={value:"__LIST_ITEM_LOADING__",disabled:!1},this.uniqId=(0,U.zm)(),this.onKeyDown=e=>{const{activeItem:t,pageSize:n}=this.state;if(Z.includes(e.key))return;const r=e.target instanceof HTMLInputElement;switch(e.key){case"ArrowDown":this.handleKeyMove(e,1,-1);break;case"ArrowUp":this.handleKeyMove(e,-1);break;case"PageDown":this.handleKeyMove(e,null!==n&&void 0!==n?n:10);break;case"PageUp":this.handleKeyMove(e,-(null!==n&&void 0!==n?n:10));break;case"Home":if(r)return;this.handleKeyMove(e,this.state.items.length-(t||0));break;case"End":if(r)return;this.handleKeyMove(e,-(t||0)-1);break;case"Enter":"number"===typeof t&&this.props.onItemClick&&this.props.onItemClick(this.state.items[t],t,!0,e);break;default:this.refFilter.current&&this.refFilter.current.focus()}},this.renderItemContent=(e,t,n)=>{const{onLoadMore:i}=this.props;return s()(e)&&"value"in e&&e.value===this.loadingItem.value?r.createElement(V,{onIntersect:0===n?void 0:i}):this.props.renderItem?this.props.renderItem(e,t,n):X(e)},this.renderItem=({index:e,style:t,height:n,provided:i,isDragging:o})=>{var a;const{sortHandleAlign:s,role:l}=this.props,{items:c,activeItem:u}=this.state,d=this.getItemsWithLoading()[e],f=this.props.sortable&&c.length>1&&!this.getFilter(),p=e===u||e===this.props.activeItemIndex,h=Array.isArray(this.props.selectedItemIndex)?this.props.selectedItemIndex.includes(e):e===this.props.selectedItemIndex;return r.createElement(te,{key:e,style:t,height:n,itemIndex:e,item:d,sortable:f,sortHandleAlign:s,renderItem:this.renderItemContent,itemClassName:this.props.itemClassName,active:p,selected:h,onActivate:this.onItemActivate,onClick:this.props.onItemClick,role:"listbox"===l?"option":"listitem",listId:null!==(a=this.props.id)&&void 0!==a?a:this.uniqId,provided:i,isDragging:o})},this.renderVirtualizedItem=({index:e,style:t})=>r.createElement(l.sx,{draggableId:String(e),index:e,key:`item-key-${e}`},(n=>this.renderItem({index:e,style:t,provided:n}))),this.filterItem=e=>t=>String(t).includes(e),this.scrollToIndex=e=>{const t=this.refContainer.current;t&&t.scrollToItem(e)},this.deactivate=()=>{this.blurTimer&&(this.blurTimer=null,this.props.deactivateOnLeave&&this.setState({activeItem:void 0}))},this.handleFocus=()=>{this.blurTimer&&(clearTimeout(this.blurTimer),this.blurTimer=null)},this.handleBlur=()=>{this.blurTimer||(this.blurTimer=setTimeout(this.deactivate,50))},this.onUpdateFilterInternal=e=>{const{items:t,filterItem:n=this.filterItem,onFilterEnd:r}=this.props;this.setState({filter:e,items:e?t.filter(n(e)):t},(()=>{r&&r({items:this.state.items})}))},this.onFilterUpdate=e=>{this.props.onFilterUpdate?this.props.onFilterUpdate(e):this.onUpdateFilterInternal(e)},this.onItemsRendered=({visibleStartIndex:e,visibleStopIndex:t})=>{this.setState({pageSize:t-e})},this.onItemActivate=e=>{this.state.sorting||this.activateItem(e,!1)},this.onMouseLeave=()=>{this.handleBlur()},this.onSortStart=()=>{this.setState({sorting:!0})},this.onSortEnd=e=>{if(!e.destination)return void this.setState({sorting:!1});if(e.source.index===e.destination.index)return void this.setState({sorting:!1});const t=e.source.index,n=e.destination.index;this.props.onSortEnd&&this.props.onSortEnd({oldIndex:t,newIndex:n});const r=((e,t,n)=>{const r=Array.from(e),[i]=r.splice(t,1);return r.splice(n,0,i),r})(this.getItems(),t,n);this.setState({activeItem:n,items:r,sorting:!1})},this.getItemHeight=e=>{const{itemHeight:t}=this.props;if("function"===typeof t){const{items:n}=this.state;return t(n[e],e)}return t},this.getVirtualizedItemHeight=e=>this.getItemHeight(e)||28}static moveListElement(e,t,n){if(t!==n){const[r]=e.splice(t,1);e.splice(n,0,r)}return e}static findNextIndex(e,t,n){const r=e.length;let i=(t+r)%r;for(let o=0;o<r;o+=1){if(e[i]&&!e[i].disabled)return i;i=(i+r+n)%r}}componentDidMount(){this.activateItem(this.props.activeItemIndex,!0)}componentDidUpdate(e,t){if(!o()(this.props.items,e.items)){const e=this.getFilter();e&&!this.props.onFilterUpdate?this.onUpdateFilterInternal(e):this.setState({items:this.props.items})}this.props.activeItemIndex!==e.activeItemIndex&&this.activateItem(this.props.activeItemIndex),this.props.onChangeActive&&this.state.activeItem!==t.activeItem&&this.props.onChangeActive(this.state.activeItem)}componentWillUnmount(){this.blurTimer=null}render(){const{id:e,emptyPlaceholder:t,virtualized:n,className:i,itemsClassName:o,qa:a,role:s="list"}=this.props,{items:l}=this.state;return r.createElement(z.G.Consumer,null,(({mobile:c})=>r.createElement("div",{className:ae({mobile:c},i),"data-qa":a,tabIndex:-1,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.onKeyDown},this.renderFilter(),r.createElement("div",{id:e,className:ae("items",{virtualized:n},o),style:this.getItemsStyle(),onMouseLeave:this.onMouseLeave,role:s},this.renderItems(),0===l.length&&Boolean(t)&&r.createElement("div",{className:ae("empty-placeholder")},t)))))}getItems(){return this.state.items}getItemsWithLoading(){return this.props.sortable?this.getItems():this.props.loading?[...this.state.items,this.loadingItem]:this.getItems()}getActiveItem(){return"number"===typeof this.state.activeItem?this.state.activeItem:null}activateItem(e,t=!0){this.setState({activeItem:e},(()=>{"number"===typeof e&&t&&this.scrollToIndex(e)}))}renderFilter(){const{size:e,filterable:t,filter:n=this.state.filter,filterPlaceholder:i,filterClassName:o="",autoFocus:a}=this.props;return t?r.createElement("div",{className:ae("filter",o)},r.createElement(L.k,{controlRef:this.refFilter,size:e,placeholder:i,value:n,hasClear:!0,onUpdate:this.onFilterUpdate,autoFocus:a})):null}renderSimpleContainer(){const{sortable:e}=this.props,t=this.getItemsWithLoading();return e?r.createElement(l.JY,{onDragStart:this.onSortStart,onDragEnd:this.onSortEnd},r.createElement(l.gL,{droppableId:"droppable",renderClone:(e,t,n)=>this.renderItem({index:n.source.index,provided:e,isDragging:t.isDragging})},(e=>r.createElement(oe,{ref:this.refContainer,itemCount:t.length,provided:e,onScrollToItem:this.props.onScrollToItem},t.map(((e,t)=>r.createElement(l.sx,{draggableId:String(t),index:t,key:`item-key-${t}`},((e,n)=>this.renderItem({index:t,isDragging:n.isDragging,provided:e,height:this.getItemHeight(t)}))))))))):r.createElement(oe,{itemCount:t.length,ref:this.refContainer,onScrollToItem:this.props.onScrollToItem},t.map(((e,t)=>this.renderItem({index:t,height:this.getItemHeight(t)}))))}renderVirtualizedContainer(){const e=[...this.getItemsWithLoading()];return this.props.sortable?r.createElement(l.JY,{onDragStart:this.onSortStart,onDragEnd:this.onSortEnd},r.createElement(l.gL,{droppableId:"droppable",mode:"virtual",renderClone:(e,t,n)=>this.renderItem({index:n.source.index,provided:e,isDragging:t.isDragging})},(t=>r.createElement(v,null,(({width:n,height:i})=>r.createElement(se,{ref:this.refContainer,outerRef:t.innerRef,width:n,height:i,itemSize:this.getVirtualizedItemHeight,itemData:e,itemCount:e.length,overscanCount:10,onItemsRendered:this.onItemsRendered,activeItem:this.state.activeItem},this.renderVirtualizedItem)))))):r.createElement(v,null,(({width:t,height:n})=>r.createElement(se,{ref:this.refContainer,width:t,height:n,itemSize:this.getVirtualizedItemHeight,itemData:e,itemCount:e.length,overscanCount:10,onItemsRendered:this.onItemsRendered,activeItem:this.state.activeItem},this.renderItem)))}renderItems(){return this.props.virtualized?this.renderVirtualizedContainer():this.renderSimpleContainer()}getFilter(){const{filter:e=this.state.filter}=this.props;return e}getItemsStyle(){let{itemsHeight:e}=this.props;return"function"===typeof e&&(e=e(this.state.items)),e?{height:e}:void 0}handleKeyMove(e,t,n=0){const{activeItem:r=n}=this.state;e.preventDefault();const i=this.getItemsWithLoading();this.activateItem(le.findNextIndex(i,r+t,Math.sign(t)))}}le.defaultProps={items:[],itemClassName:"",filterable:!0,sortable:!1,virtualized:!0,deactivateOnLeave:!0}},40174:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,g:()=>o});const r="header/SET_HEADER_BREADCRUMBS",i={pageBreadcrumbsOptions:{}};function o(e,t){return{type:r,page:e,options:t}}const a=(e=i,t)=>t.type===r?{page:t.page,pageBreadcrumbsOptions:t.options}:e},40279:(e,t,n)=>{var r=n(62871),i=n(54736);e.exports=function(e,t){return r(e,i(e),t)}},40336:(e,t,n)=>{"use strict";n.d(t,{u:()=>C});var r=n(59284),i=n(41668),o=n(27629);const a=r.createContext(void 0);function s({direction:e,contentMaxWidth:t,nameMaxWidth:n,children:i}){const o=n?{maxWidth:n,width:n}:{},s="number"===typeof t?{width:t,maxWidth:t}:{};return r.createElement(a.Provider,{value:{keyStyle:o,valueStyle:s,direction:e}},i)}var l=n(69220);const c=(0,l.om)("definition-list");var u=n(96873);function d({copyText:e,children:t}){const n=null!==t&&void 0!==t?t:"\u2014";return e?r.createElement("div",{className:c("copy-container")},n,r.createElement(u.b,{size:"s",text:e,className:c("copy-button"),view:"flat-secondary"})):n}var f=n(27145),p=n(73633),h=n(99991),m=n(84375);const g=(0,l.om)("help-mark");function v(e){var{buttonRef:t,buttonProps:n={},children:i,className:o}=e,a=(0,f.Tt)(e,["buttonRef","buttonProps","children","className"]);return r.createElement(m.A,Object.assign({},a,{delayClosing:300,className:g(null,o),content:i}),(()=>r.createElement("button",Object.assign({ref:t,type:"button"},n,{className:g("button",n.className)}),r.createElement(h.I,{data:p.A,size:16}))))}var y=n(72837);const b=JSON.parse('{"label_note":"Note"}'),w=JSON.parse('{"label_note":"\u0421\u043f\u0440\u0430\u0432\u043a\u0430"}'),x=(0,y.N)({en:b,ru:w},"DefinitionList");function _({note:e}){if(!e)return null;const t=c("item-note-tooltip");if("string"===typeof e)return r.createElement(v,{className:t,placement:["bottom","top"],buttonProps:{"aria-label":x("label_note")}},e);if("object"===typeof e){const{buttonProps:n}=e,i=(0,f.Tt)(e,["buttonProps"]);return r.createElement(v,Object.assign({className:t,placement:["bottom","top"],buttonProps:Object.assign({"aria-label":x("label_note")},n)},i))}return null}function E({note:e,name:t,direction:n}){const i=e?r.createElement(r.Fragment,null,"\xa0",r.createElement(_,{note:e})):null;return r.createElement(r.Fragment,null,r.createElement("div",{className:c("term-wrapper")},t,i),"horizontal"===n&&r.createElement("div",{className:c("dots")}))}function S({name:e,children:t,copyText:n,note:i}){const{direction:o,keyStyle:s,valueStyle:l}=function(){const e=r.useContext(a);if(void 0===e)throw new Error("useDefinitionListAttributes must be used within DefinitionListProvider");return e}();return r.createElement("div",{className:c("item")},r.createElement("dt",{className:c("term-container"),style:s},r.createElement(E,{direction:o,name:e,note:i})),r.createElement("dd",{className:c("definition"),style:Object.assign(Object.assign({},l),{lineBreak:"string"===typeof t&&(u=20,function(e){return e.split(/\s+/).some((e=>e.length>u))})(t)?"anywhere":void 0})},r.createElement(d,{copyText:n},t)));var u}function C({responsive:e,direction:t="horizontal",nameMaxWidth:n,contentMaxWidth:i,className:a,children:l,qa:u}){const d=function(e){const t=r.Children.toArray(e),n=[];for(const r of t){k(r)?n.push(r):(0,o.m)("[DefinitionList] Only <DefinitionList.Item> components is allowed as children")}return n}(l);return r.createElement(s,{direction:t,nameMaxWidth:n,contentMaxWidth:i},r.createElement("dl",{className:c({responsive:e,vertical:"vertical"===t},a),"data-qa":u},d))}S.displayName="DefinitionListItem";const k=(0,i.g)(S);C.Item=S,C.displayName="DefinitionList"},40453:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isDateTime=w,t.dateTime=x,t.dateTimeUtc=function(e){var t=e||{},n=t.input,r=t.format,i=t.lang,s=a.default.locale(i||l.settings.getLocale(),void 0,!0);return y({ts:b(n,o.UtcTimeZone,r,i,!0)[0],timeZone:o.UtcTimeZone,offset:0,locale:s})};var o=n(72328),a=i(n(38960)),s=n(62391),l=n(77966),c=n(84080),u=n(13064),d=n(29863),f=n(6597),p=n(16244),h=Symbol("isDateTime"),m=function(){function e(e){this._weekInfo=null,this[h]=!0,this._timestamp=e.ts,this._locale=e.locale,this._timeZone=e.timeZone,this._offset=e.offset,this._c=(0,u.tsToObject)(e.ts,e.offset),this._localeData=e.localeData,this._isValid=e.isValid}return e.isDateTime=function(e){return"object"===typeof e&&e&&h in e&&!0===e[h]||!1},e.prototype.format=function(e){return this.isValid()?void 0===e&&0===this._offset?this.format("YYYY-MM-DDTHH:mm:ss[Z]"):(0,d.formatDate)(this,e,this._localeData):this._localeData.invalidDate||o.INVALID_DATE_STRING},e.prototype.toISOString=function(e){return e?new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",this.format("Z")):this.toDate().toISOString()},e.prototype.utcOffset=function(e,t){var n=void 0!==e&&null!==e;if(!this.isValid())return n?this:NaN;if(n){var r=void 0;if("string"===typeof e){if(null===(r=(0,u.offsetFromString)(e)))return this}else r=Math.abs(e)<16?60*e:e;var i=this.valueOf();return t&&(i-=60*(r-this._offset)*1e3),y({ts:i,timeZone:o.UtcTimeZone,offset:r,locale:this._locale})}return this._offset},e.prototype.timeZone=function(e,t){var n;if(void 0===e)return"system"===this._timeZone?(0,c.guessUserTimeZone)():this._timeZone;if(!this.isValid())return this;var r=(0,c.normalizeTimeZone)(e,l.settings.getDefaultTimeZone()),i=this.valueOf(),o=(0,c.timeZoneOffset)(r,i);return t&&(i+=60*this._offset*1e3,i=(n=(0,c.fixOffset)(i,o,r))[0],o=n[1]),y({ts:i,timeZone:r,offset:o,locale:this._locale})},e.prototype.add=function(e,t){return this.addSubtract(e,t,1)},e.prototype.subtract=function(e,t){return this.addSubtract(e,t,-1)},e.prototype.startOf=function(e){if(!this.isValid())return this;var t={},n=(0,u.normalizeComponent)(e);switch(n){case"year":case"quarter":t.month="quarter"===n?this.month()-this.month()%3:0;case"month":case"weekNumber":case"isoWeekNumber":t.date="weekNumber"===n?this.date()-this.weekday():"isoWeekNumber"===n?this.date()-(this.isoWeekday()-1):1;case"day":case"date":case"weekday":case"isoWeekday":case"dayOfYear":t.hour=0;case"hour":t.minute=0;case"minute":t.second=0;case"second":t.millisecond=0}return this.set(t)},e.prototype.endOf=function(e){var t;if(!this.isValid())return this;var n={},r=(0,u.normalizeComponent)(e);switch(r){case"year":case"quarter":n.month="quarter"===r?this.month()-this.month()%3+2:11;case"month":case"weekNumber":case"isoWeekNumber":n.date="weekNumber"===r?this.date()-this.weekday()+6:"isoWeekNumber"===r?this.date()-(this.isoWeekday()-1)+6:(0,u.daysInMonth)(this.year(),null!==(t=n.month)&&void 0!==t?t:this.month());case"day":case"date":case"weekday":case"isoWeekday":case"dayOfYear":n.hour=23;case"hour":n.minute=59;case"minute":n.second=59;case"second":n.millisecond=999}return this.set(n)},e.prototype.local=function(e){return this.timeZone("system",e)},e.prototype.valueOf=function(){return this.isValid()?this._timestamp:NaN},e.prototype.isSame=function(e,t){var n=b(e,"system")[0];return!(!this.isValid()||isNaN(n))&&(!this.isBefore(n,t)&&!this.isAfter(n,t))},e.prototype.isBefore=function(e,t){var n=b(e,"system")[0];if(!this.isValid()||isNaN(n))return!1;var r=(0,u.normalizeDurationUnit)(null!==t&&void 0!==t?t:"millisecond");return("milliseconds"===r?this.valueOf():this.endOf(r).valueOf())<n},e.prototype.isAfter=function(e,t){var n=b(e,"system")[0];if(!this.isValid()||isNaN(n))return!1;var r=(0,u.normalizeDurationUnit)(null!==t&&void 0!==t?t:"millisecond");return("milliseconds"===r?this.valueOf():this.startOf(r).valueOf())>n},e.prototype.isValid=function(){return this._isValid},e.prototype.diff=function(t,n,r){if(!this.isValid())return NaN;var i=e.isDateTime(t)?t.timeZone(this._timeZone):y({ts:b(t,"system")[0],timeZone:this._timeZone,locale:this._locale,offset:this._offset});if(!i.isValid())return NaN;var o=(0,u.normalizeDurationUnit)(n||"millisecond"),a=6e4*(i.utcOffset()-this.utcOffset()),s=0;switch(o){case"years":s=(0,u.monthDiff)(this,i)/12;break;case"quarters":s=(0,u.monthDiff)(this,i)/3;break;case"months":s=(0,u.monthDiff)(this,i);break;case"weeks":s=(this.valueOf()-i.valueOf()-a)/6048e5;break;case"days":s=(this.valueOf()-i.valueOf()-a)/864e5;break;case"hours":s=(this.valueOf()-i.valueOf())/36e5;break;case"minutes":s=(this.valueOf()-i.valueOf())/6e4;break;case"seconds":s=(this.valueOf()-i.valueOf())/1e3;break;default:s=this.valueOf()-i.valueOf()}return r?s:Math.floor(Math.abs(s))*Math.sign(s)||0},e.prototype.fromNow=function(e){return this.from(x({timeZone:this._timeZone,lang:this._locale}),e)},e.prototype.from=function(t,n){if(!this.isValid())return this._localeData.invalidDate||o.INVALID_DATE_STRING;var r=e.isDateTime(t)?t.timeZone(this._timeZone):y({ts:b(t,"system",this._locale)[0],timeZone:this._timeZone,locale:this._locale,offset:this._offset});if(!r.isValid())return this._localeData.invalidDate||o.INVALID_DATE_STRING;var i=r,a=this,l=!1;a.isBefore(i)&&(i=this,a=r,l=!0);var c=a.month()-i.month()+12*(a.year()-i.year());i.add(c,"months").isAfter(a)&&c--;var u=a.valueOf()-i.add(c,"months").valueOf();return l&&(c=-c,u=-u),(0,p.fromTo)((0,s.duration)({months:c,milliseconds:u}),this._localeData.relativeTime,n)},e.prototype.locale=function(e){return e?this.isValid()?y({ts:this.valueOf(),timeZone:this._timeZone,offset:this._offset,locale:a.default.locale(e,void 0,!0)}):this:this._locale},e.prototype.toDate=function(){return new Date(this.valueOf())},e.prototype.unix=function(){return this.isValid()?Math.floor(this.valueOf()/1e3):NaN},e.prototype.utc=function(e){return this.timeZone(o.UtcTimeZone,e)},e.prototype.daysInMonth=function(){return this.isValid()?(0,u.daysInMonth)(this._c.year,this._c.month):NaN},e.prototype.set=function(e,t){var n,i;if(!this.isValid())return this;var a,s=this._c,l=(0,u.normalizeDateComponents)("object"===typeof e?e:((n={})[e]=t,n),u.normalizeComponent),d=void 0!==l.day||void 0!==l.weekNumber||void 0!==l.weekYear||void 0!==l.isoWeekNumber||void 0!==l.weekday||void 0!==l.isoWeekday||void 0!==l.isoWeekYear,f=void 0!==l.dayOfYear,p=void 0!==l.year,h=void 0!==l.month||void 0!==l.date;if(d&&(p||h||f))throw new Error("Can't mix weekYear/weekNumber units with year/month/day");if(f&&h)throw new Error("Can't mix day of year with month/day");if(d){var m=l.weekday,v=l.weekNumber,b=l.weekYear,w=l.isoWeekday,x=l.isoWeekNumber,_=l.isoWeekYear,E=l.day,S=void 0!==m||void 0!==v||void 0!==b;if(S&&(void 0!==w||void 0!==x||void 0!==_||void 0!==E))throw new Error("Can't mix local week with ISO week");var C=this.weekInfo();if(S){var k=g(this._localeData),O=k.minDaysInFirstWeek,N=k.startOfWeek,T={weekday:(null!==m&&void 0!==m?m:C.weekday)+1,weekNumber:null!==v&&void 0!==v?v:C.weekNumber,weekYear:null!==b&&void 0!==b?b:C.weekYear};a=r(r(r({},s),l),(0,u.weekToGregorian)(T,O,N))}else{T={weekday:null!==w&&void 0!==w?w:void 0===E?C.isoWeekday:E||7,weekNumber:null!==x&&void 0!==x?x:C.isoWeekNumber,weekYear:null!==_&&void 0!==_?_:C.isoWeekYear};a=r(r(r({},s),l),(0,u.weekToGregorian)(T,4,1))}}else f?a=r(r(r({},s),l),(0,u.uncomputeOrdinal)(r(r({ordinal:this.dayOfYear()},s),l))):(a=r(r({},s),l),void 0===l.date&&(a.date=Math.min((0,u.daysInMonth)(a.year,a.month),a.date)));var A=(0,u.objToTS)(a),I=this._offset;return this._timeZone===o.UtcTimeZone?A-=60*I*1e3:(A=(i=(0,c.fixOffset)(A,I,this._timeZone))[0],I=i[1]),y({ts:A,timeZone:this._timeZone,offset:I,locale:this._locale})},e.prototype.date=function(e){return"number"===typeof e?this.set("date",e):this.isValid()?this._c.date:NaN},e.prototype.month=function(e){return"number"===typeof e?this.set("month",e):this.isValid()?this._c.month:NaN},e.prototype.quarter=function(e){return"number"===typeof e?this.set("quarter",e):this.isValid()?Math.ceil((this._c.month+1)/3):NaN},e.prototype.year=function(e){return"number"===typeof e?this.set("year",e):this.isValid()?this._c.year:NaN},e.prototype.day=function(e){return"number"===typeof e?this.set("day",e):this.isValid()?this.weekInfo().day:NaN},e.prototype.isoWeekday=function(e){return"number"===typeof e?this.set("isoWeekday",e):this.isValid()?this.weekInfo().isoWeekday:NaN},e.prototype.hour=function(e){return"number"===typeof e?this.set("hour",e):this.isValid()?this._c.hour:NaN},e.prototype.minute=function(e){return"number"===typeof e?this.set("minute",e):this.isValid()?this._c.minute:NaN},e.prototype.second=function(e){return"number"===typeof e?this.set("second",e):this.isValid()?this._c.second:NaN},e.prototype.millisecond=function(e){return"number"===typeof e?this.set("millisecond",e):this.isValid()?this._c.millisecond:NaN},e.prototype.week=function(e){return"number"===typeof e?this.set("week",e):this.isValid()?this.weekInfo().weekNumber:NaN},e.prototype.weekYear=function(e){return"number"===typeof e?this.set("weekYear",e):this.isValid()?this.weekInfo().weekYear:NaN},e.prototype.weeksInYear=function(){var e=g(this._localeData),t=e.minDaysInFirstWeek,n=e.startOfWeek;return this.isValid()?(0,u.weeksInWeekYear)(this.year(),t,n):NaN},e.prototype.isoWeek=function(e){return"number"===typeof e?this.set("isoWeek",e):this.isValid()?this.weekInfo().isoWeekNumber:NaN},e.prototype.isoWeekYear=function(e){return"number"===typeof e?this.set("isoWeekYear",e):this.isValid()?this.weekInfo().isoWeekYear:NaN},e.prototype.isoWeeksInYear=function(){return this.isValid()?(0,u.weeksInWeekYear)(this.year(),4,1):NaN},e.prototype.weekday=function(e){return"number"===typeof e?this.set("weekday",e):this.isValid()?this.weekInfo().weekday:NaN},e.prototype.dayOfYear=function(e){return"number"===typeof e?this.set("dayOfYear",e):this.isValid()?(0,u.computeOrdinal)(this._c):NaN},e.prototype.toString=function(){return this.isValid()?this.toDate().toUTCString():this._localeData.invalidDate||o.INVALID_DATE_STRING},e.prototype.toJSON=function(){return this.isValid()?this.toISOString():null},e.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.isValid()?"DateTime { ts: ".concat(this.toISOString(),", zone: ").concat(this.timeZone(),", offset: ").concat(this.utcOffset(),", locale: ").concat(this.locale()," }"):"DateTime { ".concat(o.INVALID_DATE_STRING," }")},e.prototype.addSubtract=function(e,t,n){var i;if(!this.isValid())return this;var a=this._timeZone,l=this.valueOf(),d=this._offset,f=(0,s.duration)(e,t),p=(0,u.tsToObject)(l,d),h=v(f.months()+3*f.quarters()+12*f.years()),m=v(f.days()+7*f.weeks()),g=f.milliseconds()+1e3*f.seconds()+60*f.minutes()*1e3+60*f.hours()*60*1e3;if(h||m){var b=p.month+n*h,w=Math.min(p.date,(0,u.daysInMonth)(p.year,b))+n*m;l=(0,u.objToTS)(r(r({},p),{month:b,date:w})),a===o.UtcTimeZone?l-=60*d*1e3:(l=(i=(0,c.fixOffset)(l,d,a))[0],d=i[1])}return g&&(l+=n*g,a!==o.UtcTimeZone&&(d=(0,c.timeZoneOffset)(a,l))),y({ts:l,timeZone:a,offset:d,locale:this._locale})},e.prototype.weekInfo=function(){if(!this._weekInfo){var e=g(this._localeData),t=e.startOfWeek,n=e.minDaysInFirstWeek;this._weekInfo=(0,u.gregorianToWeek)(this._c,n,t)}return this._weekInfo},e}();function g(e){return{startOfWeek:e.weekStart||7,minDaysInFirstWeek:e.yearStart||1}}function v(e){var t=Math.sign(e);return Math.round(t*e)*t}function y(e){var t=e.ts,n=e.timeZone,r=e.offset,i=e.locale||"en",o=a.default.Ls[i],s=!isNaN(Number(new Date(t)));return new m({ts:t,timeZone:n,offset:r,locale:i,localeData:o,isValid:s})}function b(e,t,n,r,i){var s,u,d,p;if(void 0===i&&(i=!1),w(e)||"number"===typeof e||e instanceof Date||!isNaN(function(e){if(null===e||void 0===e)return NaN;if("string"===typeof e)return NaN;if("number"===typeof e||"bigint"===typeof e)return Number(e);if("object"===typeof e){var t=e.valueOf();if("number"===typeof t||"bigint"===typeof t)return Number(t)}return NaN}(e)))d=Number(e);else if(null===e||void 0===e)d=Date.now();else if(Array.isArray(e))d=(s=(0,f.getTimestampFromArray)(e,t))[0],p=s[1];else if("object"===typeof e)d=(u=(0,f.getTimestampFromObject)(e,t))[0],p=u[1];else if(i)d=a.default.utc(e,n,o.STRICT).valueOf();else{var h=a.default.locale(r||l.settings.getLocale(),void 0,!0);d=(n?(0,a.default)(e,n,h,o.STRICT):(0,a.default)(e,void 0,h)).valueOf()}return[d,p=null!==p&&void 0!==p?p:(0,c.timeZoneOffset)(t,d)]}function w(e){return m.isDateTime(e)}function x(e){var t=e||{},n=t.input,r=t.format,i=t.timeZone,o=t.lang,s=(0,c.normalizeTimeZone)(i,l.settings.getDefaultTimeZone()),u=a.default.locale(o||l.settings.getLocale(),void 0,!0),d=b(n,s,r,o);return y({ts:d[0],timeZone:s,offset:d[1],locale:u})}},40537:(e,t,n)=>{"use strict";n.d(t,{HD:()=>l,NN:()=>u,Vm:()=>c});var r=n(11078),i=n.n(r),o=n(38596),a=n(66592);const s="__no_color__",l=(e,t=new Map)=>(e.forEach((({version:e,version_base_color_index:n=s})=>{var r;const i=(0,o.U)(e);t.has(n)||t.set(n,new Set),null===(r=t.get(n))||void 0===r||r.add(i)})),t),c=e=>{const t=new Map;for(const[n,r]of e)Array.from(r).sort(((e,t)=>(0,a.s5)(t)-(0,a.s5)(e))).forEach(((e,i)=>{if(n===s)t.set(e,a.OT);else{const o=Number(n)%a.lm.length,s=r.size,l=a.lm[o],c=Math.max(100-i*(100/s),20),u=`${l}${Math.round(255*c/100).toString(16)}`;t.set(e,u)}}));return t},u=(e=[],t)=>{const n=e.filter((e=>e.version));return i()(n,"version").map((e=>({...e,minorVersion:(0,o.U)(e.version)}))).reduce(((e,n)=>{const r=t.get(n.minorVersion);return e.push({...n,color:r}),e}),[])}},40538:e=>{"use strict";e.exports=Math.min},40569:(e,t,n)=>{"use strict";n.d(t,{r:()=>F});var r=n(59284),i=n(7450),o=n(46734),a=n(84476),s=n(99991),l=n(69220);const c=(0,l.om)("dropdown-menu"),u=r.createContext({toggle(){},data:void 0});u.displayName="DropdownMenu.Context";var d=n(27145),f=n(9187),p=n(38602),h=n(90826);const m=(0,l.om)("menu"),g=r.forwardRef((function({label:e,children:t,style:n,className:i,qa:o},a){const s=(0,h.u)();return r.createElement("li",{ref:a,className:m("list-group-item")},r.createElement("div",{style:n,className:m("group",i),"data-qa":o},e&&r.createElement("div",{id:s,className:m("group-label")},e),r.createElement("ul",{role:"group","aria-labelledby":s,className:m("group-list")},t)))}));var v=n(11669);const y=(0,l.om)("menu"),b=r.forwardRef((function({icon:e,iconStart:t=e,iconEnd:n,title:i,disabled:a,active:s,selected:l,href:c,target:u,rel:d,onClick:f,style:p,className:h,theme:m,extraProps:g,children:b,qa:w},x){const{onKeyDown:_}=(0,o.N)(f),E=r.useCallback((e=>{v.o.publish({componentId:"MenuItem",eventId:"click",domEvent:e})}),[]),S={role:"menuitem",onKeyDown:f&&!a?_:void 0},C={title:i,onClick:a?void 0:f,onClickCapture:a?void 0:E,style:p,tabIndex:a?-1:0,className:y("item",{disabled:a,active:s,selected:l,theme:m,interactive:Boolean(f)||Boolean(c)},h),"data-qa":w},k=[t&&r.createElement("div",{key:"icon-start",className:y("item-icon")},t),r.createElement("div",{key:"content",className:y("item-content")},b),n&&r.createElement("div",{key:"icon-end",className:y("item-icon-end")},n)];let O;return O=c?r.createElement("a",Object.assign({},S,g,C,{href:c,target:u,rel:d}),k):r.createElement("div",Object.assign({},S,g,C),k),r.createElement("li",{ref:x,className:y("list-item")},O)})),w=(0,l.om)("menu"),x=r.forwardRef((function({size:e="m",children:t,style:n,className:i,qa:o},a){return r.createElement("ul",{ref:a,role:"menu",style:n,className:w({size:e},i),"data-qa":o},t)}));x.Item=b,x.Group=g;var _=n(54245);function E(e,t,n=1,r){const i=(e.length+t-n%e.length)%e.length;return r&&r(e[i])?E(e,i,1,r):i}function S(e,t,n=1,r){const i=(t+n)%e.length;return r&&r(e[i])?S(e,i,1,r):i}var C=n(39238);const k=[],O=r.createContext({activeMenuPath:k,setActiveMenuPath:()=>{},anchorRef:{current:null}}),N=({anchorRef:e,children:t,disabled:n})=>{const[i,o]=r.useState(k);r.useEffect((()=>{n&&o(k)}),[n]);const a=r.useMemo((()=>({activeMenuPath:i,setActiveMenuPath:o,anchorRef:e})),[i,e]);return r.createElement(O.Provider,{value:a},t)},T={text:"",action:()=>{},path:[]};function A(e){return e===T}function I(e){return e.disabled||A(e)}function P(e){var t;return null!==(t=null===e||void 0===e?void 0:e.join(" "))&&void 0!==t?t:""}const R=({items:e,open:t,anchorRef:n,onClose:i,size:o,menuProps:a,children:s,popupProps:l,path:d=[]})=>{const{toggle:f,data:p}=r.useContext(u),{activeMenuPath:h,setActiveMenuPath:m,anchorRef:g}=r.useContext(O),v=d.length>0,y=r.useCallback((()=>{m(d.slice(0,d.length-1))}),[m,d]),b=r.useCallback((e=>{var t;m(d),null===(t=null===l||void 0===l?void 0:l.onMouseEnter)||void 0===t||t.call(l,e)}),[d,l,m]),w=r.useCallback((e=>{var t;y(),null===(t=null===l||void 0===l?void 0:l.onMouseLeave)||void 0===t||t.call(l,e)}),[y,l]),_=r.useCallback(((e,t)=>{var n;e.items&&e.path?m(e.path):(null===(n=e.action)||void 0===n||n.call(e,t,p),f(!1))}),[p,m,f]),k=r.useCallback(((t,n)=>{switch(n.key){case"Escape":return v&&(n.stopPropagation(),null===y||void 0===y||y()),!1;case"Enter":case" ":{const r=e[t],i=null===r||void 0===r?void 0:r.items;return(v||i)&&(n.stopPropagation(),n.preventDefault()),r&&_(r,n),!1}}return!0}),[y,_,v,e]),N=t&&P(d)===P(h),{activeItemIndex:T,setActiveItemIndex:R,reset:D}=function({items:e,skip:t,pageSize:n,processHomeKey:i=!0,processEndKey:o=!0,anchorRef:a,disabled:s=!1,initialValue:l=-1,onAnchorKeyDown:c}){const[u,d]=r.useState(l),f=r.useCallback((()=>{d(l)}),[l]);return r.useEffect((()=>{e&&f()}),[e,f]),r.useLayoutEffect((()=>{if(s)return;if(!e.some((e=>!(null===t||void 0===t?void 0:t(e)))))return;const r=null===a||void 0===a?void 0:a.current;if(!r)return;const l=r=>{if(!1!==(null===c||void 0===c?void 0:c(u,r)))switch(r.key){case"ArrowDown":r.preventDefault(),d((n=>S(e,n,1,t)));break;case"ArrowUp":r.preventDefault(),d((n=>E(e,n,1,t)));break;case"PageDown":if(!n)return;r.preventDefault(),d((r=>S(e,r,n,t)));break;case"PageUp":if(!n)return;r.preventDefault(),d((r=>E(e,r,n,t)));break;case"Home":if(!i)return;r.preventDefault(),d((n=>E(e,n,n,t)));break;case"End":if(!o)return;r.preventDefault(),d((n=>E(e,n,n+1,t)))}};return r.addEventListener("keydown",l),()=>{r.removeEventListener("keydown",l)}}),[u,a,s,e,c,n,o,i,t]),{activeItemIndex:u,setActiveItemIndex:d,reset:f}}({items:e,skip:I,anchorRef:g,onAnchorKeyDown:k,disabled:!N,initialValue:v?0:-1});return r.useEffect((()=>{t||D()}),[t,D]),r.createElement(C.z,Object.assign({open:t,anchorRef:n,onClose:i},l,{onMouseEnter:b,onMouseLeave:w}),s||r.createElement(x,Object.assign({className:c("menu"),size:o},a),e.map(((e,n)=>{var o;const a=N&&T===n,s=t&&!a&&0!==h.length&&P(e.path)===P(h.slice(0,e.path.length)),u=Object.assign(Object.assign({},e.extraProps),{onMouseEnter:()=>R(n)});return r.createElement(M,Object.assign({key:n,className:c("menu-item",{separator:A(e),"active-parent":s,"with-submenu":Boolean(null===(o=e.items)||void 0===o?void 0:o.length)},e.className),selected:a,popupProps:l,closeMenu:i},e,{extraProps:u}))}))))};function D(e,t){var n;return null!==(n=null===e||void 0===e?void 0:e.every(((e,n)=>e===(null===t||void 0===t?void 0:t[n]))))&&void 0!==n&&n}function j({items:e,path:t}){const{activeMenuPath:n,setActiveMenuPath:i}=r.useContext(O),o=Boolean(t)&&Boolean(null===e||void 0===e?void 0:e.length),a=r.useCallback((()=>{t&&i(t.slice(0,t.length-1))}),[t,i]),s=r.useCallback((()=>{t&&i(t)}),[t,i]);return{hasSubmenu:o,isSubmenuOpen:D(t,n),openSubmenu:s,closeSubmenu:a}}const M=e=>{var{text:t,action:n,items:i,popupProps:o,closeMenu:a,children:l,path:h}=e,m=(0,d.Tt)(e,["text","action","items","popupProps","closeMenu","children","path"]);const{toggle:g,data:v}=r.useContext(u),y=r.useRef(null),b=(0,_.j)(),{hasSubmenu:w,isSubmenuOpen:E,closeSubmenu:S,openSubmenu:C}=j({items:i,path:h}),k=r.useCallback((()=>{const e=()=>{a?a():g(!1)};w?(S(),requestAnimationFrame(e)):e()}),[a,S,w,g]),O=r.useCallback((e=>{w||(null===n||void 0===n||n(e,v),k())}),[n,v,k,w]),N=r.useMemo((()=>Object.assign(Object.assign({},m.extraProps),{onMouseEnter:e=>{var t,n;null===(n=null===(t=m.extraProps)||void 0===t?void 0:t.onMouseEnter)||void 0===n||n.call(t,e),w&&C()},onMouseLeave:e=>{var t,n;null===(n=null===(t=m.extraProps)||void 0===t?void 0:t.onMouseLeave)||void 0===n||n.call(t,e),w&&S()}})),[m.extraProps,S,w,C]),T=r.useMemo((()=>"rtl"===b?["left-start","right-start"]:["right-start","left-start"]),[b]),A=r.useMemo((()=>w?r.createElement(s.I,{data:"rtl"===b?f.A:p.A,size:10,className:c("sub-menu-arrow")}):m.iconEnd),[w,b,m.iconEnd]);return r.createElement(r.Fragment,null,r.createElement(x.Item,Object.assign({ref:y},m,{extraProps:N,onClick:O,iconEnd:A}),t||l),w&&i&&r.createElement(R,{popupProps:Object.assign(Object.assign({},o),{className:c("sub-menu",null===o||void 0===o?void 0:o.className),placement:T}),items:i,path:h,open:E,anchorRef:y,onClose:k}))};function L(e,t,n,i=void 0!==e&&void 0!==t){const o=function(e,t){const[n,i]=r.useState(e);return[n,r.useCallback((e=>{"function"===typeof e?i((n=>{const r=e(n);return null===t||void 0===t||t(r),r})):(null===t||void 0===t||t(e),i(e))}),[t])]}(e||n,t);return i?[e,t]:o}function z(e,t,n=[],r=0){const i=[];let o=!1,a=r;for(const s of e)if(Array.isArray(s)){const e=z(s,t,n,a);0!==i.length&&i.push(t),i.push(...e),a+=e.length,o=!0}else{if(s.hidden)continue;o&&i.push(t);const e=Object.assign(Object.assign({},s),{path:[...n,a++]});s.items&&(e.items=z(s.items,t,e.path)),i.push(e),o=!1}return i}const F=Object.assign((({items:e=[],size:t="m",icon:n=r.createElement(s.I,{data:i.A}),open:l,onOpenToggle:d,hideOnScroll:f=!0,data:p,disabled:h,switcher:m,renderSwitcher:g,switcherWrapperClassName:v,defaultSwitcherProps:y,defaultSwitcherClassName:b,onSwitcherClick:w,menuProps:x,popupProps:_,children:E})=>{const S=r.useRef(null),{isPopupShown:C,togglePopup:k,closePopup:O}=function(e,t,n){const[i,o]=L(e,t,!1),a=r.useCallback((e=>{o((t=>"boolean"===typeof e?e:!t))}),[o]),s=r.useCallback((()=>{o(!1)}),[o]);return r.useEffect((()=>{n&&i&&s()}),[s,n,i]),{isPopupShown:i,togglePopup:a,closePopup:s}}(l,d,h);!function(e,t,n){r.useEffect((()=>{if(n)return;const r=n=>{n.target.contains(t.current)&&e(n)};return document.addEventListener("scroll",r,!0),()=>{document.removeEventListener("scroll",r,!0)}}),[t,e,n])}(O,S,!C||!f);const A=r.useMemo((()=>({toggle:k,data:p})),[p,k]),I=r.useMemo((()=>z(e,T)),[e]),P=r.useCallback((e=>{h||(null===w||void 0===w||w(e),k())}),[h,w,k]),{onKeyDown:D}=(0,o.N)(P),j=r.useMemo((()=>({onClick:P,onKeyDown:D})),[P,D]);return r.createElement(u.Provider,{value:A},r.createElement("div",Object.assign({ref:S,className:c("switcher-wrapper",v)},g?{}:j),(null===g||void 0===g?void 0:g(j))||m||r.createElement(a.$,Object.assign({view:"flat",size:t},y,{className:c("switcher-button",b),disabled:h}),n)),r.createElement(N,{anchorRef:S,disabled:!C},r.createElement(R,{items:I,open:C,size:t,menuProps:x,anchorRef:S,onClose:O,popupProps:_},E)))}),{Item:M})},40691:(e,t,n)=>{var r=n(92470),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=i},41527:(e,t,n)=>{var r=n(92470)(n(4133),"WeakMap");e.exports=r},41650:(e,t,n)=>{"use strict";function r(e){if(e)try{return JSON.parse(e)}catch{return e}}n.d(t,{O4:()=>a,en:()=>d,kf:()=>c,pY:()=>l,qF:()=>r,wb:()=>s,z0:()=>u});const i=[" B"," KB"," MB"," GB"," TB"," PB"," EB"],o=1e3;function a(e){const t=function(e){const t=Number(e);if(isNaN(t))return"";const n=t/o**2;return n<10?n.toFixed(2)+i[2]:n<100?n.toFixed(1)+i[2]:n.toFixed()+i[2]}(e);return`${t}${t?"ps":""}`}function s(e,t){const n=Number(e);if(isNaN(n))return"N/A";const r=n/1e9;return t?r.toFixed()+i[3]:r<10?r.toFixed(2)+i[3]:r<100?r.toFixed(1)+i[3]:r.toFixed()+i[3]}function l(e){const t=String(e);let n=t;for(let r=t.length;r<9;r++)n="0"+n;return n}function c(e){return"number"===typeof e?!isNaN(e):"string"===typeof e&&(!isNaN(Number(e))&&!isNaN(parseFloat(e)))}function u(e,t){return Number(e).toExponential(t)}const d="\xa0"},41668:(e,t,n)=>{"use strict";n.d(t,{g:()=>i});var r=n(59284);function i(e){return function(t){if(!r.isValidElement(t))return!1;const{type:n}=t;if(n===e)return!0;if("string"===typeof e||"string"===typeof n)return!1;const i=n.displayName;return Boolean(i&&i===e.displayName)}}},41826:(e,t,n)=>{"use strict";n.d(t,{p:()=>d,H:()=>f});n(59284);var r=n(40336),i=n(76086),o=n(56839),a=n(71661),s=n(48372);const l=JSON.parse('{"start-time":"Start time","disconnect-time":"Disconnect time","change-time":"Change time"}'),c=(0,s.g4)("ydb-uptime-viewer",{en:l});var u=n(60712);function d({StartTime:e,DisconnectTime:t}){let n,s=null;return t?(n=(0,o.wI)(t),s=(0,u.jsx)(r.u.Item,{name:c("disconnect-time"),children:(0,o.r6)(t,{withTimeZone:!0})},"DisconnectTime")):e&&(n=(0,o.H7)(e),s=(0,u.jsx)(r.u.Item,{name:c("start-time"),children:(0,o.r6)(e,{withTimeZone:!0})},"StartTime")),n?(0,u.jsx)(a.s,{placement:["top","auto"],disabled:!s,content:(0,u.jsx)(r.u,{responsive:!0,children:s}),children:n}):i.Pd}function f({ChangeTime:e}){let t;return e&&(t=(0,o.H7)(e)),t?(0,u.jsx)(a.s,{placement:["top","auto"],content:(0,u.jsx)(r.u,{responsive:!0,children:(0,u.jsx)(r.u.Item,{name:c("change-time"),children:(0,o.r6)(e,{withTimeZone:!0})},"changeTime")}),children:t}):i.Pd}},42566:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=e=>{e&&e instanceof Function&&n.e(2308).then(n.bind(n,62308)).then((({getCLS:t,getFID:n,getFCP:r,getLCP:i,getTTFB:o})=>{t(e),n(e),r(e),i(e),o(e)}))}},42589:e=>{e.exports=function(e){return this.__data__.get(e)}},42634:()=>{},42793:(e,t,n)=>{"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,{c:()=>r})},42933:(e,t,n)=>{"use strict";n.d(t,{D:()=>r});const r=n(59284).createContext(void 0);r.displayName="ThemeContext"},43160:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(16445),t)},43238:(e,t,n)=>{var r=n(68097),i=n(92061);e.exports=function(e,t){for(var n=0,o=(t=r(t,e)).length;null!=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},43261:(e,t,n)=>{var r=n(36484),i=n(37815),o=n(70364),a=n(32361),s=n(41527),l=n(16320),c=n(45865),u="[object Map]",d="[object Promise]",f="[object Set]",p="[object WeakMap]",h="[object DataView]",m=c(r),g=c(i),v=c(o),y=c(a),b=c(s),w=l;(r&&w(new r(new ArrayBuffer(1)))!=h||i&&w(new i)!=u||o&&w(o.resolve())!=d||a&&w(new a)!=f||s&&w(new s)!=p)&&(w=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case m:return h;case g:return u;case v:return d;case y:return f;case b:return p}return t}),e.exports=w},43377:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.localeLoaders=void 0,t.localeLoaders={af:function(){return n.e(9222).then(n.t.bind(n,89222,23))},am:function(){return n.e(9243).then(n.t.bind(n,59243,23))},"ar-dz":function(){return n.e(6881).then(n.t.bind(n,6881,23))},"ar-iq":function(){return n.e(5685).then(n.t.bind(n,45685,23))},"ar-kw":function(){return n.e(8081).then(n.t.bind(n,88081,23))},"ar-ly":function(){return n.e(8256).then(n.t.bind(n,28256,23))},"ar-ma":function(){return n.e(9697).then(n.t.bind(n,89697,23))},"ar-sa":function(){return n.e(1187).then(n.t.bind(n,1187,23))},"ar-tn":function(){return n.e(4349).then(n.t.bind(n,24349,23))},ar:function(){return n.e(8890).then(n.t.bind(n,58890,23))},az:function(){return n.e(3410).then(n.t.bind(n,3410,23))},be:function(){return n.e(7748).then(n.t.bind(n,97748,23))},bg:function(){return n.e(5950).then(n.t.bind(n,85950,23))},bi:function(){return n.e(1088).then(n.t.bind(n,61088,23))},bm:function(){return n.e(7420).then(n.t.bind(n,97420,23))},"bn-bd":function(){return n.e(2568).then(n.t.bind(n,72568,23))},bn:function(){return n.e(1237).then(n.t.bind(n,1237,23))},bo:function(){return n.e(9174).then(n.t.bind(n,9174,23))},br:function(){return n.e(513).then(n.t.bind(n,90513,23))},bs:function(){return n.e(2626).then(n.t.bind(n,22626,23))},ca:function(){return n.e(3761).then(n.t.bind(n,43761,23))},cs:function(){return n.e(6047).then(n.t.bind(n,46047,23))},cv:function(){return n.e(7348).then(n.t.bind(n,67348,23))},cy:function(){return n.e(8633).then(n.t.bind(n,48633,23))},da:function(){return n.e(5418).then(n.t.bind(n,15418,23))},"de-at":function(){return n.e(8534).then(n.t.bind(n,8534,23))},"de-ch":function(){return n.e(1696).then(n.t.bind(n,41696,23))},de:function(){return n.e(7878).then(n.t.bind(n,47878,23))},dv:function(){return n.e(9523).then(n.t.bind(n,49523,23))},el:function(){return n.e(3952).then(n.t.bind(n,3952,23))},"en-au":function(){return n.e(6625).then(n.t.bind(n,26625,23))},"en-ca":function(){return n.e(5027).then(n.t.bind(n,85027,23))},"en-gb":function(){return n.e(290).then(n.t.bind(n,90290,23))},"en-ie":function(){return n.e(5401).then(n.t.bind(n,65401,23))},"en-il":function(){return n.e(6786).then(n.t.bind(n,36786,23))},"en-in":function(){return n.e(1496).then(n.t.bind(n,51496,23))},"en-nz":function(){return n.e(1627).then(n.t.bind(n,51627,23))},"en-sg":function(){return n.e(3769).then(n.t.bind(n,63769,23))},"en-tt":function(){return n.e(1747).then(n.t.bind(n,81747,23))},en:function(){return n.e(730).then(n.t.bind(n,40730,23))},eo:function(){return n.e(9433).then(n.t.bind(n,79433,23))},"es-do":function(){return n.e(523).then(n.t.bind(n,30523,23))},"es-mx":function(){return n.e(8119).then(n.t.bind(n,88119,23))},"es-pr":function(){return n.e(4324).then(n.t.bind(n,74324,23))},"es-us":function(){return n.e(4730).then(n.t.bind(n,4730,23))},es:function(){return n.e(9725).then(n.t.bind(n,49725,23))},et:function(){return n.e(3672).then(n.t.bind(n,53672,23))},eu:function(){return n.e(5759).then(n.t.bind(n,45759,23))},fa:function(){return n.e(60).then(n.t.bind(n,40060,23))},fi:function(){return n.e(628).then(n.t.bind(n,90628,23))},fo:function(){return n.e(6114).then(n.t.bind(n,86114,23))},"fr-ca":function(){return n.e(7962).then(n.t.bind(n,87962,23))},"fr-ch":function(){return n.e(6833).then(n.t.bind(n,26833,23))},fr:function(){return n.e(7605).then(n.t.bind(n,67605,23))},fy:function(){return n.e(5924).then(n.t.bind(n,95924,23))},ga:function(){return n.e(8517).then(n.t.bind(n,78517,23))},gd:function(){return n.e(9882).then(n.t.bind(n,59882,23))},gl:function(){return n.e(2466).then(n.t.bind(n,92466,23))},"gom-latn":function(){return n.e(7548).then(n.t.bind(n,7548,23))},gu:function(){return n.e(3033).then(n.t.bind(n,93033,23))},he:function(){return n.e(8706).then(n.t.bind(n,88706,23))},hi:function(){return n.e(9606).then(n.t.bind(n,9606,23))},hr:function(){return n.e(9707).then(n.t.bind(n,79707,23))},ht:function(){return n.e(7697).then(n.t.bind(n,77697,23))},hu:function(){return n.e(7970).then(n.t.bind(n,57970,23))},"hy-am":function(){return n.e(1917).then(n.t.bind(n,61917,23))},id:function(){return n.e(6324).then(n.t.bind(n,26324,23))},is:function(){return n.e(4401).then(n.t.bind(n,6782,23))},"it-ch":function(){return n.e(3902).then(n.t.bind(n,3902,23))},it:function(){return n.e(7380).then(n.t.bind(n,37380,23))},ja:function(){return n.e(3008).then(n.t.bind(n,63008,23))},jv:function(){return n.e(2053).then(n.t.bind(n,82053,23))},ka:function(){return n.e(1865).then(n.t.bind(n,61865,23))},kk:function(){return n.e(47).then(n.t.bind(n,40047,23))},km:function(){return n.e(6541).then(n.t.bind(n,46541,23))},kn:function(){return n.e(1956).then(n.t.bind(n,21956,23))},ko:function(){return n.e(7579).then(n.t.bind(n,37579,23))},ku:function(){return n.e(6405).then(n.t.bind(n,56405,23))},ky:function(){return n.e(9025).then(n.t.bind(n,89025,23))},lb:function(){return n.e(3679).then(n.t.bind(n,86060,23))},lo:function(){return n.e(4652).then(n.t.bind(n,84652,23))},lt:function(){return n.e(5853).then(n.t.bind(n,55853,23))},lv:function(){return n.e(5819).then(n.t.bind(n,95819,23))},me:function(){return n.e(1975).then(n.t.bind(n,31975,23))},mi:function(){return n.e(9067).then(n.t.bind(n,49067,23))},mk:function(){return n.e(5453).then(n.t.bind(n,25453,23))},ml:function(){return n.e(6664).then(n.t.bind(n,16664,23))},mn:function(){return n.e(5634).then(n.t.bind(n,5634,23))},mr:function(){return n.e(6358).then(n.t.bind(n,26358,23))},"ms-my":function(){return n.e(7240).then(n.t.bind(n,17240,23))},ms:function(){return n.e(949).then(n.t.bind(n,60949,23))},mt:function(){return n.e(4096).then(n.t.bind(n,44096,23))},my:function(){return n.e(811).then(n.t.bind(n,30811,23))},nb:function(){return n.e(7357).then(n.t.bind(n,67357,23))},ne:function(){return n.e(8008).then(n.t.bind(n,48008,23))},"nl-be":function(){return n.e(5161).then(n.t.bind(n,35161,23))},nl:function(){return n.e(3879).then(n.t.bind(n,73879,23))},nn:function(){return n.e(4441).then(n.t.bind(n,4441,23))},"oc-lnc":function(){return n.e(3321).then(n.t.bind(n,23321,23))},"pa-in":function(){return n.e(3756).then(n.t.bind(n,93756,23))},pl:function(){return n.e(3121).then(n.t.bind(n,3121,23))},"pt-br":function(){return n.e(9922).then(n.t.bind(n,89922,23))},pt:function(){return n.e(4169).then(n.t.bind(n,34169,23))},rn:function(){return n.e(8053).then(n.t.bind(n,78053,23))},ro:function(){return n.e(310).then(n.t.bind(n,10310,23))},ru:function(){return n.e(4180).then(n.t.bind(n,4180,23))},rw:function(){return n.e(2286).then(n.t.bind(n,32286,23))},sd:function(){return n.e(1486).then(n.t.bind(n,71486,23))},se:function(){return n.e(1053).then(n.t.bind(n,21053,23))},si:function(){return n.e(921).then(n.t.bind(n,80921,23))},sk:function(){return n.e(5047).then(n.t.bind(n,85047,23))},sl:function(){return n.e(9801).then(n.t.bind(n,52182,23))},sq:function(){return n.e(3521).then(n.t.bind(n,33521,23))},"sr-cyrl":function(){return n.e(8103).then(n.t.bind(n,38103,23))},sr:function(){return n.e(8840).then(n.t.bind(n,58840,23))},ss:function(){return n.e(5647).then(n.t.bind(n,5647,23))},"sv-fi":function(){return n.e(8704).then(n.t.bind(n,8704,23))},sv:function(){return n.e(9220).then(n.t.bind(n,46839,23))},sw:function(){return n.e(4891).then(n.t.bind(n,74891,23))},ta:function(){return n.e(9466).then(n.t.bind(n,99466,23))},te:function(){return n.e(3510).then(n.t.bind(n,83510,23))},tet:function(){return n.e(2776).then(n.t.bind(n,12776,23))},tg:function(){return n.e(1756).then(n.t.bind(n,71756,23))},th:function(){return n.e(5953).then(n.t.bind(n,85953,23))},tk:function(){return n.e(5816).then(n.t.bind(n,55816,23))},"tl-ph":function(){return n.e(2166).then(n.t.bind(n,32166,23))},tlh:function(){return n.e(4601).then(n.t.bind(n,44601,23))},tr:function(){return n.e(2775).then(n.t.bind(n,72775,23))},tzl:function(){return n.e(5579).then(n.t.bind(n,65579,23))},"tzm-latn":function(){return n.e(108).then(n.t.bind(n,80108,23))},tzm:function(){return n.e(9908).then(n.t.bind(n,59908,23))},"ug-cn":function(){return n.e(4847).then(n.t.bind(n,34847,23))},uk:function(){return n.e(6261).then(n.t.bind(n,6261,23))},ur:function(){return n.e(9518).then(n.t.bind(n,9518,23))},"uz-latn":function(){return n.e(2161).then(n.t.bind(n,34542,23))},uz:function(){return n.e(710).then(n.t.bind(n,40710,23))},vi:function(){return n.e(2612).then(n.t.bind(n,42612,23))},"x-pseudo":function(){return n.e(2984).then(n.t.bind(n,92984,23))},yo:function(){return n.e(3333).then(n.t.bind(n,83333,23))},"zh-cn":function(){return n.e(1657).then(n.t.bind(n,21657,23))},"zh-hk":function(){return n.e(3653).then(n.t.bind(n,63653,23))},"zh-tw":function(){return n.e(221).then(n.t.bind(n,60221,23))},zh:function(){return n.e(6879).then(n.t.bind(n,76879,23))}}},43781:(e,t,n)=>{var r=n(38469),i=n(65236),o=n(150),a=Math.max,s=Math.min;e.exports=function(e,t,n){var l,c,u,d,f,p,h=0,m=!1,g=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=l,r=c;return l=c=void 0,h=t,d=e.apply(r,n)}function b(e){var n=e-p;return void 0===p||n>=t||n<0||g&&e-h>=u}function w(){var e=i();if(b(e))return x(e);f=setTimeout(w,function(e){var n=t-(e-p);return g?s(n,u-(e-h)):n}(e))}function x(e){return f=void 0,v&&l?y(e):(l=c=void 0,d)}function _(){var e=i(),n=b(e);if(l=arguments,c=this,p=e,n){if(void 0===f)return function(e){return h=e,f=setTimeout(w,t),m?y(e):d}(p);if(g)return clearTimeout(f),f=setTimeout(w,t),y(p)}return void 0===f&&(f=setTimeout(w,t)),d}return t=o(t)||0,r(n)&&(m=!!n.leading,u=(g="maxWait"in n)?a(o(n.maxWait)||0,t):u,v="trailing"in n?!!n.trailing:v),_.cancel=function(){void 0!==f&&clearTimeout(f),h=0,l=p=c=f=void 0},_.flush=function(){return void 0===f?d:x(i())},_}},43821:(e,t,n)=>{var r=n(32361),i=n(94454),o=n(80303),a=r&&1/o(new r([,-0]))[1]==1/0?function(e){return new r(e)}:i;e.exports=a},43937:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 13.5a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m1-9.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-.25 3a.75.75 0 0 0-1.5 0V11a.75.75 0 0 0 1.5 0z",clipRule:"evenodd"}))},44294:(e,t,n)=>{"use strict";n.d(t,{E:()=>r.E});var r=n(82015)},44433:(e,t,n)=>{"use strict";n.d(t,{a:()=>y});var r=n(59284),i=n(90826),o=n(85736);const a=new Set(["id"]),s=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),l=/^(data-.*)$/;var c=n(794);function u(e){var t,n;const{name:r,value:u,defaultValue:d,options:f=[],disabled:p,onUpdate:h,onChange:m,onFocus:g,onBlur:v}=e,y=(0,i.u)(),[b,w]=(0,o.P)(u,null!==(n=null!==d&&void 0!==d?d:null===(t=f[0])||void 0===t?void 0:t.value)&&void 0!==n?n:null,h),x=(0,c.d)({initialValue:b,onReset:w}),_=e=>{w(e.target.value),m&&m(e)},E=Object.assign(Object.assign({},function(e,t={}){const{labelable:n,propNames:r}=t,i={};for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(a.has(o)||n&&s.has(o)||(null===r||void 0===r?void 0:r.has(o))||l.test(o))&&(i[o]=e[o]);return i}(e,{labelable:!0})),{role:"radiogroup","aria-disabled":p});return{containerProps:E,optionsProps:f.map((e=>({name:r||y,value:e.value,content:e.content,title:e.title,checked:b===String(e.value),disabled:p||e.disabled,onChange:_,onFocus:g,onBlur:v,ref:x})))}}var d=n(69220),f=n(32084),p=n(11669);var h=n(10176);const m=(0,d.om)("radio-button"),g=r.forwardRef((function(e,t){const{disabled:n=!1,content:a,children:s,title:l}=e,{checked:u,inputProps:d}=function({name:e,value:t,checked:n,defaultChecked:a,disabled:s,controlRef:l,controlProps:u,onUpdate:d,onChange:h,onFocus:m,onBlur:g,id:v}){const y=(0,i.u)(),b=r.useRef(null),[w,x]=(0,o.P)(n,null!==a&&void 0!==a&&a,d),_=(0,c.d)({initialValue:w,onReset:x}),E=(0,f.N)(l,b,_);return{checked:w,inputProps:Object.assign(Object.assign({},u),{name:e||y,value:t,id:v,onFocus:m,onBlur:g,disabled:s,type:"radio",onChange:e=>{x(e.target.checked),h&&h(e)},onChangeCapture:e=>{p.o.publish({componentId:"Radio",eventId:"click",domEvent:e})},checked:n,defaultChecked:a,"aria-checked":w,ref:E})}}(e),g=a||s,v=(0,h.If)(g)||(0,h.$D)(g);return r.createElement("label",{className:m("option",{disabled:n,checked:u}),ref:t,title:l},r.createElement("input",Object.assign({},d,{className:m("option-control")})),r.createElement("span",{className:m("option-outline")}),g&&r.createElement("span",{className:m("option-text",{icon:v})},g))})),v=(0,d.om)("radio-button"),y=r.forwardRef((function(e,t){const{size:n="m",width:i,style:o,className:a,qa:s,children:l}=e;let c=e.options;c||(c=r.Children.toArray(l).map((({props:e})=>({value:e.value,content:e.content||e.children,disabled:e.disabled,title:e.title}))));const d=r.useRef(null),f=r.useRef(),p=r.useCallback((e=>{if(!e)return;const t=d.current;if(!t)return;const n=f.current;if(n&&n!==e){const r=e=>{t.style.left=`${e.offsetLeft}px`,t.style.width=`${e.offsetWidth}px`};r(n),t.hidden=!1,r(e)}f.current=e}),[]),{containerProps:h,optionsProps:m}=u(Object.assign(Object.assign({},e),{options:c}));return r.createElement("div",Object.assign({},h,{ref:t,style:o,className:v({size:n,width:i},a),"data-qa":s}),r.createElement("div",{ref:d,className:v("plate"),onTransitionEnd:e=>{e.currentTarget.hidden=!0},hidden:!0}),m.map((e=>r.createElement(g,Object.assign({},e,{key:e.value,ref:e.checked?p:void 0})))))}));y.Option=g},44508:(e,t,n)=>{"use strict";n.d(t,{o:()=>r.o});var r=n(79553)},44593:(e,t,n)=>{const r=n(71928),i=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function o(e){this.mode=r.ALPHANUMERIC,this.data=e}o.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=45*i.indexOf(this.data[t]);n+=i.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(i.indexOf(this.data[t]),6)},e.exports=o},44735:e=>{var t=Math.ceil,n=Math.max;e.exports=function(e,r,i,o){for(var a=-1,s=n(t((r-e)/(i||1)),0),l=Array(s);s--;)l[o?s:++a]=e,e+=i;return l}},44992:(e,t,n)=>{"use strict";n.d(t,{RE:()=>s,hT:()=>A,l0:()=>M,m7:()=>G});var r=n(96906),i=n(97091),o=n(90754),a=n(53850),s=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(s||{});var l=r.Qd;function c(e,t){if(e===t||!(l(e)&&l(t)||Array.isArray(e)&&Array.isArray(t)))return t;const n=Object.keys(t),r=Object.keys(e);let i=n.length===r.length;const o=Array.isArray(t)?[]:{};for(const a of n)o[a]=c(e[a],t[a]),i&&(i=e[a]===o[a]);return i?e:o}function u(e){let t=0;for(const n in e)t++;return t}var d=e=>[].concat(...e);function f(e){return null!=e}var p=class{constructor(e,t=void 0){this.value=e,this.meta=t}};var h=(0,i.VP)("__rtkq/focused"),m=(0,i.VP)("__rtkq/unfocused"),g=(0,i.VP)("__rtkq/online"),v=(0,i.VP)("__rtkq/offline");function y(e){return"query"===e.type}function b(e,t,n,r,i,o){return"function"===typeof e?e(t,n,r,i).filter(f).map(w).map(o):Array.isArray(e)?e.map(w).map(o):[]}function w(e){return"string"===typeof e?{type:e}:e}var x=Symbol("forceQueryFn"),_=e=>"function"===typeof e[x];function E(e){return e}function S(e,t,n,r){return b(n[e.meta.arg.endpointName][t],(0,i.sf)(e)?e.payload:void 0,(0,i.WA)(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function C(e,t,n){const r=e[t];r&&n(r)}function k(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function O(e,t,n){const r=e[k(t)];r&&n(r)}var N={};function T({reducerPath:e,queryThunk:t,mutationThunk:n,serializeQueryArgs:a,context:{endpointDefinitions:s,apiUid:l,extractRehydrationInfo:u,hasRehydrationInfo:d},assertTagType:f,config:p}){const y=(0,i.VP)(`${e}/resetApiState`);function b(e,t,n,r){e[t.queryCacheKey]??={status:"uninitialized",endpointName:t.endpointName},C(e,t.queryCacheKey,(e=>{e.status="pending",e.requestId=n&&e.requestId?e.requestId:r.requestId,void 0!==t.originalArgs&&(e.originalArgs=t.originalArgs),e.startedTimeStamp=r.startedTimeStamp}))}function w(e,t,n){C(e,t.arg.queryCacheKey,(e=>{if(e.requestId!==t.requestId&&!_(t.arg))return;const{merge:r}=s[t.arg.endpointName];if(e.status="fulfilled",r)if(void 0!==e.data){const{fulfilledTimeStamp:i,arg:a,baseQueryMeta:s,requestId:l}=t;let c=(0,o.jM)(e.data,(e=>r(e,n,{arg:a.originalArgs,baseQueryMeta:s,fulfilledTimeStamp:i,requestId:l})));e.data=c}else e.data=n;else e.data=s[t.arg.endpointName].structuralSharing??1?c((0,o.Qx)(e.data)?(0,o.c2)(e.data):e.data,n):n;delete e.error,e.fulfilledTimeStamp=t.fulfilledTimeStamp}))}const x=(0,i.Z0)({name:`${e}/queries`,initialState:N,reducers:{removeQueryResult:{reducer(e,{payload:{queryCacheKey:t}}){delete e[t]},prepare:(0,i.aA)()},cacheEntriesUpserted:{reducer(e,t){for(const n of t.payload){const{queryDescription:r,value:i}=n;b(e,r,!0,{arg:r,requestId:t.meta.requestId,startedTimeStamp:t.meta.timestamp}),w(e,{arg:r,requestId:t.meta.requestId,fulfilledTimeStamp:t.meta.timestamp,baseQueryMeta:{}},i)}},prepare:e=>({payload:e.map((e=>{const{endpointName:t,arg:n,value:r}=e,i=s[t];return{queryDescription:{type:"query",endpointName:t,originalArgs:e.arg,queryCacheKey:a({queryArgs:n,endpointDefinition:i,endpointName:t})},value:r}})),meta:{[i.cN]:!0,requestId:(0,i.Ak)(),timestamp:Date.now()}})},queryResultPatched:{reducer(e,{payload:{queryCacheKey:t,patches:n}}){C(e,t,(e=>{e.data=(0,o.$i)(e.data,n.concat())}))},prepare:(0,i.aA)()}},extraReducers(e){e.addCase(t.pending,((e,{meta:t,meta:{arg:n}})=>{b(e,n,_(n),t)})).addCase(t.fulfilled,((e,{meta:t,payload:n})=>{w(e,t,n)})).addCase(t.rejected,((e,{meta:{condition:t,arg:n,requestId:r},error:i,payload:o})=>{C(e,n.queryCacheKey,(e=>{if(t);else{if(e.requestId!==r)return;e.status="rejected",e.error=o??i}}))})).addMatcher(d,((e,t)=>{const{queries:n}=u(t);for(const[r,i]of Object.entries(n))"fulfilled"!==i?.status&&"rejected"!==i?.status||(e[r]=i)}))}}),E=(0,i.Z0)({name:`${e}/mutations`,initialState:N,reducers:{removeMutationResult:{reducer(e,{payload:t}){const n=k(t);n in e&&delete e[n]},prepare:(0,i.aA)()}},extraReducers(e){e.addCase(n.pending,((e,{meta:t,meta:{requestId:n,arg:r,startedTimeStamp:i}})=>{r.track&&(e[k(t)]={requestId:n,status:"pending",endpointName:r.endpointName,startedTimeStamp:i})})).addCase(n.fulfilled,((e,{payload:t,meta:n})=>{n.arg.track&&O(e,n,(e=>{e.requestId===n.requestId&&(e.status="fulfilled",e.data=t,e.fulfilledTimeStamp=n.fulfilledTimeStamp)}))})).addCase(n.rejected,((e,{payload:t,error:n,meta:r})=>{r.arg.track&&O(e,r,(e=>{e.requestId===r.requestId&&(e.status="rejected",e.error=t??n)}))})).addMatcher(d,((e,t)=>{const{mutations:n}=u(t);for(const[r,i]of Object.entries(n))"fulfilled"!==i?.status&&"rejected"!==i?.status||r===i?.requestId||(e[r]=i)}))}}),T=(0,i.Z0)({name:`${e}/invalidation`,initialState:N,reducers:{updateProvidedBy:{reducer(e,t){const{queryCacheKey:n,providedTags:r}=t.payload;for(const i of Object.values(e))for(const e of Object.values(i)){const t=e.indexOf(n);-1!==t&&e.splice(t,1)}for(const{type:i,id:o}of r){const t=(e[i]??={})[o||"__internal_without_id"]??=[];t.includes(n)||t.push(n)}},prepare:(0,i.aA)()}},extraReducers(e){e.addCase(x.actions.removeQueryResult,((e,{payload:{queryCacheKey:t}})=>{for(const n of Object.values(e))for(const e of Object.values(n)){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}})).addMatcher(d,((e,t)=>{const{provided:n}=u(t);for(const[r,i]of Object.entries(n))for(const[t,n]of Object.entries(i)){const i=(e[r]??={})[t||"__internal_without_id"]??=[];for(const e of n){i.includes(e)||i.push(e)}}})).addMatcher((0,i.i0)((0,i.sf)(t),(0,i.WA)(t)),((e,t)=>{const n=S(t,"providesTags",s,f),{queryCacheKey:r}=t.meta.arg;T.caseReducers.updateProvidedBy(e,T.actions.updateProvidedBy({queryCacheKey:r,providedTags:n}))}))}}),A=(0,i.Z0)({name:`${e}/subscriptions`,initialState:N,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),I=(0,i.Z0)({name:`${e}/internalSubscriptions`,initialState:N,reducers:{subscriptionsUpdated:{reducer:(e,t)=>(0,o.$i)(e,t.payload),prepare:(0,i.aA)()}}}),P=(0,i.Z0)({name:`${e}/config`,initialState:{online:"undefined"===typeof navigator||void 0===navigator.onLine||navigator.onLine,focused:"undefined"===typeof document||"hidden"!==document.visibilityState,middlewareRegistered:!1,...p},reducers:{middlewareRegistered(e,{payload:t}){e.middlewareRegistered="conflict"!==e.middlewareRegistered&&l===t||"conflict"}},extraReducers:e=>{e.addCase(g,(e=>{e.online=!0})).addCase(v,(e=>{e.online=!1})).addCase(h,(e=>{e.focused=!0})).addCase(m,(e=>{e.focused=!1})).addMatcher(d,(e=>({...e})))}}),R=(0,r.HY)({queries:x.reducer,mutations:E.reducer,provided:T.reducer,subscriptions:I.reducer,config:P.reducer});return{reducer:(e,t)=>R(y.match(t)?void 0:e,t),actions:{...P.actions,...x.actions,...A.actions,...I.actions,...E.actions,...T.actions,resetApiState:y}}}var A=Symbol.for("RTKQ/skipToken"),I={status:"uninitialized"},P=(0,o.jM)(I,(()=>{})),R=(0,o.jM)(I,(()=>{}));var D=WeakMap?new WeakMap:void 0,j=({endpointName:e,queryArgs:t})=>{let n="";const i=D?.get(t);if("string"===typeof i)n=i;else{const e=JSON.stringify(t,((e,t)=>(t="bigint"===typeof t?{$bigint:t.toString()}:t,t=(0,r.Qd)(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t)));(0,r.Qd)(t)&&D?.set(t,e),n=e}return`${e}(${n})`};function M(...e){return function(t){const n=(0,a.X4)((e=>t.extractRehydrationInfo?.(e,{reducerPath:t.reducerPath??"api"}))),r={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...t,extractRehydrationInfo:n,serializeQueryArgs(e){let n=j;if("serializeQueryArgs"in e.endpointDefinition){const t=e.endpointDefinition.serializeQueryArgs;n=e=>{const n=t(e);return"string"===typeof n?n:j({...e,queryArgs:n})}}else t.serializeQueryArgs&&(n=t.serializeQueryArgs);return n(e)},tagTypes:[...t.tagTypes||[]]},o={endpointDefinitions:{},batch(e){e()},apiUid:(0,i.Ak)(),extractRehydrationInfo:n,hasRehydrationInfo:(0,a.X4)((e=>null!=n(e)))},s={injectEndpoints:function(e){const t=e.endpoints({query:e=>({...e,type:"query"}),mutation:e=>({...e,type:"mutation"})});for(const[n,r]of Object.entries(t))if(!0!==e.overrideExisting&&n in o.endpointDefinitions){if("throw"===e.overrideExisting)throw new Error((0,i.gk)(39))}else{o.endpointDefinitions[n]=r;for(const e of l)e.injectEndpoint(n,r)}return s},enhanceEndpoints({addTagTypes:e,endpoints:t}){if(e)for(const n of e)r.tagTypes.includes(n)||r.tagTypes.push(n);if(t)for(const[n,r]of Object.entries(t))"function"===typeof r?r(o.endpointDefinitions[n]):Object.assign(o.endpointDefinitions[n]||{},r);return s}},l=e.map((e=>e.init(s,r,o)));return s.injectEndpoints({endpoints:t.endpoints})}}function L(e,...t){return Object.assign(e,...t)}var z=({api:e,queryThunk:t,internalState:n})=>{const r=`${e.reducerPath}/subscriptions`;let i=null,a=null;const{updateSubscriptionOptions:s,unsubscribeQueryResult:l}=e.internalActions,c=()=>n.currentSubscriptions,d={getSubscriptions:c,getSubscriptionCount:e=>u(c()[e]??{}),isRequestSubscribed:(e,t)=>{const n=c();return!!n?.[e]?.[t]}};return(c,u)=>{if(i||(i=JSON.parse(JSON.stringify(n.currentSubscriptions))),e.util.resetApiState.match(c))return i=n.currentSubscriptions={},a=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(c))return[!1,d];const f=((n,r)=>{if(s.match(r)){const{queryCacheKey:e,requestId:t,options:i}=r.payload;return n?.[e]?.[t]&&(n[e][t]=i),!0}if(l.match(r)){const{queryCacheKey:e,requestId:t}=r.payload;return n[e]&&delete n[e][t],!0}if(e.internalActions.removeQueryResult.match(r))return delete n[r.payload.queryCacheKey],!0;if(t.pending.match(r)){const{meta:{arg:e,requestId:t}}=r,i=n[e.queryCacheKey]??={};return i[`${t}_running`]={},e.subscribe&&(i[t]=e.subscriptionOptions??i[t]??{}),!0}let i=!1;if(t.fulfilled.match(r)||t.rejected.match(r)){const e=n[r.meta.arg.queryCacheKey]||{},t=`${r.meta.requestId}_running`;i||=!!e[t],delete e[t]}if(t.rejected.match(r)){const{meta:{condition:e,arg:t,requestId:o}}=r;if(e&&t.subscribe){const e=n[t.queryCacheKey]??={};e[o]=t.subscriptionOptions??e[o]??{},i=!0}}return i})(n.currentSubscriptions,c);let p=!0;if(f){a||(a=setTimeout((()=>{const t=JSON.parse(JSON.stringify(n.currentSubscriptions)),[,r]=(0,o.vI)(i,(()=>t));u.next(e.internalActions.subscriptionsUpdated(r)),i=t,a=null}),500));const s="string"==typeof c.type&&!!c.type.startsWith(r),l=t.rejected.match(c)&&c.meta.condition&&!!c.meta.arg.subscribe;p=!s&&!l}return[p,!1]}};var F=({reducerPath:e,api:t,queryThunk:n,context:r,internalState:o})=>{const{removeQueryResult:a,unsubscribeQueryResult:s,cacheEntriesUpserted:l}=t.internalActions,c=(0,i.i0)(s.match,n.fulfilled,n.rejected,l.match);function u(e){const t=o.currentSubscriptions[e];return!!t&&!function(e){for(const t in e)return!1;return!0}(t)}const d={};function f(e,t,n,i){const o=r.endpointDefinitions[t],s=o?.keepUnusedDataFor??i.keepUnusedDataFor;if(s===1/0)return;const l=Math.max(0,Math.min(s,2147482.647));if(!u(e)){const t=d[e];t&&clearTimeout(t),d[e]=setTimeout((()=>{u(e)||n.dispatch(a({queryCacheKey:e})),delete d[e]}),1e3*l)}}return(n,i,o)=>{if(c(n)){const t=i.getState()[e];let r;if(l.match(n))r=n.payload.map((e=>e.queryDescription.queryCacheKey));else{const{queryCacheKey:e}=s.match(n)?n.payload:n.meta.arg;r=[e]}for(const e of r)f(e,t.queries[e]?.endpointName,i,t.config)}if(t.util.resetApiState.match(n))for(const[e,t]of Object.entries(d))t&&clearTimeout(t),delete d[e];if(r.hasRehydrationInfo(n)){const t=i.getState()[e],{queries:o}=r.extractRehydrationInfo(n);for(const[e,n]of Object.entries(o))f(e,n?.endpointName,i,t.config)}}},B=new Error("Promise never resolved before cacheEntryRemoved."),U=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:o,internalState:a})=>{const s=(0,i.$S)(r),l=(0,i.$S)(o),c=(0,i.sf)(r,o),u={};function d(e,t,n){const r=u[e];r?.valueResolved&&(r.valueResolved({data:t,meta:n}),delete r.valueResolved)}function f(e){const t=u[e];t&&(delete u[e],t.cacheEntryRemoved())}function p(t,r,i,o,a){const s=n.endpointDefinitions[t],l=s?.onCacheEntryAdded;if(!l)return;const c={},d=new Promise((e=>{c.cacheEntryRemoved=e})),f=Promise.race([new Promise((e=>{c.valueResolved=e})),d.then((()=>{throw B}))]);f.catch((()=>{})),u[i]=c;const p=e.endpoints[t].select("query"===s.type?r:i),h=o.dispatch(((e,t,n)=>n)),m={...o,getCacheEntry:()=>p(o.getState()),requestId:a,extra:h,updateCachedData:"query"===s.type?n=>o.dispatch(e.util.updateQueryData(t,r,n)):void 0,cacheDataLoaded:f,cacheEntryRemoved:d},g=l(r,m);Promise.resolve(g).catch((e=>{if(e!==B)throw e}))}return(n,i,a)=>{const h=function(t){if(s(t))return t.meta.arg.queryCacheKey;if(l(t))return t.meta.arg.fixedCacheKey??t.meta.requestId;return e.internalActions.removeQueryResult.match(t)?t.payload.queryCacheKey:e.internalActions.removeMutationResult.match(t)?k(t.payload):""}(n);function m(e,n,r,o){const s=a[t].queries[n],l=i.getState()[t].queries[n];!s&&l&&p(e,o,n,i,r)}if(r.pending.match(n))m(n.meta.arg.endpointName,h,n.meta.requestId,n.meta.arg.originalArgs);else if(e.internalActions.cacheEntriesUpserted.match(n))for(const{queryDescription:e,value:t}of n.payload){const{endpointName:r,originalArgs:i,queryCacheKey:o}=e;m(r,o,n.meta.requestId,i),d(o,t,{})}else if(o.pending.match(n)){i.getState()[t].mutations[h]&&p(n.meta.arg.endpointName,n.meta.arg.originalArgs,h,i,n.meta.requestId)}else if(c(n))d(h,n.payload,n.meta.baseQueryMeta);else if(e.internalActions.removeQueryResult.match(n)||e.internalActions.removeMutationResult.match(n))f(h);else if(e.util.resetApiState.match(n))for(const e of Object.keys(u))f(e)}},q=({api:e,context:{apiUid:t},reducerPath:n})=>(n,r)=>{e.util.resetApiState.match(n)&&r.dispatch(e.internalActions.middlewareRegistered(t))},$=({reducerPath:e,context:t,context:{endpointDefinitions:n},mutationThunk:r,queryThunk:o,api:a,assertTagType:s,refetchQuery:l,internalState:c})=>{const{removeQueryResult:d}=a.internalActions,f=(0,i.i0)((0,i.sf)(r),(0,i.WA)(r)),p=(0,i.i0)((0,i.sf)(r,o),(0,i.TK)(r,o));let h=[];function m(n,r){const i=r.getState(),o=i[e];if(h.push(...n),"delayed"===o.config.invalidationBehavior&&function(e){for(const t in e.queries)if("pending"===e.queries[t]?.status)return!0;for(const t in e.mutations)if("pending"===e.mutations[t]?.status)return!0;return!1}(o))return;const s=h;if(h=[],0===s.length)return;const f=a.util.selectInvalidatedBy(i,s);t.batch((()=>{const e=Array.from(f.values());for(const{queryCacheKey:t}of e){const e=o.queries[t],n=c.currentSubscriptions[t]??{};e&&(0===u(n)?r.dispatch(d({queryCacheKey:t})):"uninitialized"!==e.status&&r.dispatch(l(e)))}}))}return(e,t)=>{f(e)?m(S(e,"invalidatesTags",n,s),t):p(e)?m([],t):a.util.invalidateTags.match(e)&&m(b(e.payload,void 0,void 0,void 0,void 0,s),t)}},H=({reducerPath:e,queryThunk:t,api:n,refetchQuery:r,internalState:i})=>{const o={};function a({queryCacheKey:t},n){const s=n.getState()[e],l=s.queries[t],u=i.currentSubscriptions[t];if(!l||"uninitialized"===l.status)return;const{lowestPollingInterval:d,skipPollingIfUnfocused:f}=c(u);if(!Number.isFinite(d))return;const p=o[t];p?.timeout&&(clearTimeout(p.timeout),p.timeout=void 0);const h=Date.now()+d;o[t]={nextPollTimestamp:h,pollingInterval:d,timeout:setTimeout((()=>{!s.config.focused&&f||n.dispatch(r(l)),a({queryCacheKey:t},n)}),d)}}function s({queryCacheKey:t},n){const r=n.getState()[e].queries[t],s=i.currentSubscriptions[t];if(!r||"uninitialized"===r.status)return;const{lowestPollingInterval:u}=c(s);if(!Number.isFinite(u))return void l(t);const d=o[t],f=Date.now()+u;(!d||f<d.nextPollTimestamp)&&a({queryCacheKey:t},n)}function l(e){const t=o[e];t?.timeout&&clearTimeout(t.timeout),delete o[e]}function c(e={}){let t=!1,n=Number.POSITIVE_INFINITY;for(let r in e)e[r].pollingInterval&&(n=Math.min(e[r].pollingInterval,n),t=e[r].skipPollingIfUnfocused||t);return{lowestPollingInterval:n,skipPollingIfUnfocused:t}}return(e,r)=>{(n.internalActions.updateSubscriptionOptions.match(e)||n.internalActions.unsubscribeQueryResult.match(e))&&s(e.payload,r),(t.pending.match(e)||t.rejected.match(e)&&e.meta.condition)&&s(e.meta.arg,r),(t.fulfilled.match(e)||t.rejected.match(e)&&!e.meta.condition)&&a(e.meta.arg,r),n.util.resetApiState.match(e)&&function(){for(const e of Object.keys(o))l(e)}()}},V=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{const o=(0,i.mm)(n,r),a=(0,i.TK)(n,r),s=(0,i.sf)(n,r),l={};return(n,r)=>{if(o(n)){const{requestId:i,arg:{endpointName:o,originalArgs:a}}=n.meta,s=t.endpointDefinitions[o],c=s?.onQueryStarted;if(c){const t={},n=new Promise(((e,n)=>{t.resolve=e,t.reject=n}));n.catch((()=>{})),l[i]=t;const u=e.endpoints[o].select("query"===s.type?a:i),d=r.dispatch(((e,t,n)=>n)),f={...r,getCacheEntry:()=>u(r.getState()),requestId:i,extra:d,updateCachedData:"query"===s.type?t=>r.dispatch(e.util.updateQueryData(o,a,t)):void 0,queryFulfilled:n};c(a,f)}}else if(s(n)){const{requestId:e,baseQueryMeta:t}=n.meta;l[e]?.resolve({data:n.payload,meta:t}),delete l[e]}else if(a(n)){const{requestId:e,rejectedWithValue:t,baseQueryMeta:r}=n.meta;l[e]?.reject({error:n.payload??n.error,isUnhandledError:!t,meta:r}),delete l[e]}}};function W(e){const{reducerPath:t,queryThunk:n,api:o,context:a}=e,{apiUid:s}=a,l={invalidateTags:(0,i.VP)(`${t}/invalidateTags`)},c=e=>e.type.startsWith(`${t}/`),d=[q,F,$,H,U,V];return{middleware:n=>{let i=!1;const l={...e,internalState:{currentSubscriptions:{}},refetchQuery:f,isThisApiSliceAction:c},p=d.map((e=>e(l))),m=z(l),v=(({reducerPath:e,context:t,api:n,refetchQuery:r,internalState:i})=>{const{removeQueryResult:o}=n.internalActions;function a(n,a){const s=n.getState()[e],l=s.queries,c=i.currentSubscriptions;t.batch((()=>{for(const e of Object.keys(c)){const t=l[e],i=c[e];i&&t&&((Object.values(i).some((e=>!0===e[a]))||Object.values(i).every((e=>void 0===e[a]))&&s.config[a])&&(0===u(i)?n.dispatch(o({queryCacheKey:e})):"uninitialized"!==t.status&&n.dispatch(r(t))))}}))}return(e,t)=>{h.match(e)&&a(t,"refetchOnFocus"),g.match(e)&&a(t,"refetchOnReconnect")}})(l);return e=>l=>{if(!(0,r.ve)(l))return e(l);i||(i=!0,n.dispatch(o.internalActions.middlewareRegistered(s)));const u={...n,next:e},d=n.getState(),[f,h]=m(l,u,d);let g;if(g=f?e(l):h,n.getState()[t]&&(v(l,u,d),c(l)||a.hasRehydrationInfo(l)))for(const e of p)e(l,u,d);return g}},actions:l};function f(t){return e.api.endpoints[t.endpointName].initiate(t.originalArgs,{subscribe:!1,forceRefetch:!0})}}var K=Symbol(),G=({createSelector:e=a.Mz}={})=>({name:K,init(t,{baseQuery:n,tagTypes:r,reducerPath:a,serializeQueryArgs:s,keepUnusedDataFor:l,refetchOnMountOrArgChange:c,refetchOnFocus:S,refetchOnReconnect:C,invalidationBehavior:O},N){(0,o.YT)();const I=e=>e;Object.assign(t,{reducerPath:a,endpoints:{},internalActions:{onOnline:g,onOffline:v,onFocus:h,onFocusLost:m},util:{}});const{queryThunk:D,mutationThunk:j,patchQueryData:M,updateQueryData:z,upsertQueryData:F,prefetch:B,buildMatchThunkActions:U}=function({reducerPath:e,baseQuery:t,context:{endpointDefinitions:n},serializeQueryArgs:r,api:a,assertTagType:s}){const l=async(e,{signal:r,abort:o,rejectWithValue:a,fulfillWithValue:s,dispatch:l,getState:u,extra:d})=>{const f=n[e.endpointName];try{let n,a=E;const h={signal:r,abort:o,dispatch:l,getState:u,extra:d,endpoint:e.endpointName,type:e.type,forced:"query"===e.type?c(e,u()):void 0,queryCacheKey:"query"===e.type?e.queryCacheKey:void 0},m="query"===e.type?e[x]:void 0;if(m?n=m():f.query?(n=await t(f.query(e.originalArgs),h,f.extraOptions),f.transformResponse&&(a=f.transformResponse)):n=await f.queryFn(e.originalArgs,h,f.extraOptions,(e=>t(e,h,f.extraOptions))),n.error)throw new p(n.error,n.meta);return s(await a(n.data,n.meta,e.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:n.meta,[i.cN]:!0})}catch(h){let t=h;if(t instanceof p){let n=E;f.query&&f.transformErrorResponse&&(n=f.transformErrorResponse);try{return a(await n(t.value,t.meta,e.originalArgs),{baseQueryMeta:t.meta,[i.cN]:!0})}catch(m){t=m}}throw console.error(t),t}};function c(t,n){const r=n[e]?.queries?.[t.queryCacheKey],i=n[e]?.config.refetchOnMountOrArgChange,o=r?.fulfilledTimeStamp,a=t.forceRefetch??(t.subscribe&&i);return!!a&&(!0===a||(Number(new Date)-Number(o))/1e3>=a)}const u=(0,i.zD)(`${e}/executeQuery`,l,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[i.cN]:!0}),condition(t,{getState:r}){const i=r(),o=i[e]?.queries?.[t.queryCacheKey],a=o?.fulfilledTimeStamp,s=t.originalArgs,l=o?.originalArgs,u=n[t.endpointName];return!!_(t)||"pending"!==o?.status&&(!!c(t,i)||!(!y(u)||!u?.forceRefetch?.({currentArg:s,previousArg:l,endpointState:o,state:i}))||!a)},dispatchConditionRejection:!0}),d=(0,i.zD)(`${e}/executeMutation`,l,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[i.cN]:!0})});function f(e){return t=>t?.meta?.arg?.endpointName===e}return{queryThunk:u,mutationThunk:d,prefetch:(e,t,n)=>(r,i)=>{const o=(e=>"force"in e)(n)&&n.force,s=(e=>"ifOlderThan"in e)(n)&&n.ifOlderThan,l=(n=!0)=>{const r={forceRefetch:n,isPrefetch:!0};return a.endpoints[e].initiate(t,r)},c=a.endpoints[e].select(t)(i());if(o)r(l());else if(s){const e=c?.fulfilledTimeStamp;if(!e)return void r(l());(Number(new Date)-Number(new Date(e)))/1e3>=s&&r(l())}else r(l(!1))},updateQueryData:(e,t,n,r=!0)=>(i,s)=>{const l=a.endpoints[e].select(t)(s()),c={patches:[],inversePatches:[],undo:()=>i(a.util.patchQueryData(e,t,c.inversePatches,r))};if("uninitialized"===l.status)return c;let u;if("data"in l)if((0,o.a6)(l.data)){const[e,t,r]=(0,o.vI)(l.data,n);c.patches.push(...t),c.inversePatches.push(...r),u=e}else u=n(l.data),c.patches.push({op:"replace",path:[],value:u}),c.inversePatches.push({op:"replace",path:[],value:l.data});return 0===c.patches.length||i(a.util.patchQueryData(e,t,c.patches,r)),c},upsertQueryData:(e,t,n)=>r=>r(a.endpoints[e].initiate(t,{subscribe:!1,forceRefetch:!0,[x]:()=>({data:n})})),patchQueryData:(e,t,i,o)=>(l,c)=>{const u=n[e],d=r({queryArgs:t,endpointDefinition:u,endpointName:e});if(l(a.internalActions.queryResultPatched({queryCacheKey:d,patches:i})),!o)return;const f=a.endpoints[e].select(t)(c()),p=b(u.providesTags,f.data,void 0,t,{},s);l(a.internalActions.updateProvidedBy({queryCacheKey:d,providedTags:p}))},buildMatchThunkActions:function(e,t){return{matchPending:(0,i.f$)((0,i.mm)(e),f(t)),matchFulfilled:(0,i.f$)((0,i.sf)(e),f(t)),matchRejected:(0,i.f$)((0,i.TK)(e),f(t))}}}}({baseQuery:n,reducerPath:a,context:N,api:t,serializeQueryArgs:s,assertTagType:I}),{reducer:q,actions:$}=T({context:N,queryThunk:D,mutationThunk:j,serializeQueryArgs:s,reducerPath:a,assertTagType:I,config:{refetchOnFocus:S,refetchOnReconnect:C,refetchOnMountOrArgChange:c,keepUnusedDataFor:l,reducerPath:a,invalidationBehavior:O}});L(t.util,{patchQueryData:M,updateQueryData:z,upsertQueryData:F,prefetch:B,resetApiState:$.resetApiState,upsertQueryEntries:$.cacheEntriesUpserted}),L(t.internalActions,$);const{middleware:H,actions:V}=W({reducerPath:a,context:N,queryThunk:D,mutationThunk:j,api:t,assertTagType:I});L(t.util,V),L(t,{reducer:q,middleware:H});const{buildQuerySelector:G,buildMutationSelector:Y,selectInvalidatedBy:Q,selectCachedArgsForQuery:Z}=function({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const r=e=>P,i=e=>R;return{buildQuerySelector:function(t,i){return s=>{if(s===A)return n(r,o);const l=e({queryArgs:s,endpointDefinition:i,endpointName:t});return n((e=>a(e)?.queries?.[l]??P),o)}},buildMutationSelector:function(){return e=>{let t;return t="object"===typeof e?k(e)??A:e,n(t===A?i:e=>a(e)?.mutations?.[t]??R,o)}},selectInvalidatedBy:function(e,n){const r=e[t],i=new Set;for(const t of n.filter(f).map(w)){const e=r.provided[t.type];if(!e)continue;let n=(void 0!==t.id?e[t.id]:d(Object.values(e)))??[];for(const t of n)i.add(t)}return d(Array.from(i.values()).map((e=>{const t=r.queries[e];return t?[{queryCacheKey:e,endpointName:t.endpointName,originalArgs:t.originalArgs}]:[]})))},selectCachedArgsForQuery:function(e,n){return Object.values(e[t].queries).filter((e=>e?.endpointName===n&&"uninitialized"!==e.status)).map((e=>e.originalArgs))}};function o(e){return{...e,...(t=e.status,{status:t,isUninitialized:"uninitialized"===t,isLoading:"pending"===t,isSuccess:"fulfilled"===t,isError:"rejected"===t})};var t}function a(e){return e[t]}}({serializeQueryArgs:s,reducerPath:a,createSelector:e});L(t.util,{selectInvalidatedBy:Q,selectCachedArgsForQuery:Z});const{buildInitiateQuery:J,buildInitiateMutation:X,getRunningMutationThunk:ee,getRunningMutationsThunk:te,getRunningQueriesThunk:ne,getRunningQueryThunk:re}=function({serializeQueryArgs:e,queryThunk:t,mutationThunk:n,api:r,context:i}){const o=new Map,a=new Map,{unsubscribeQueryResult:s,removeMutationResult:l,updateSubscriptionOptions:c}=r.internalActions;return{buildInitiateQuery:function(n,i){const a=(l,{subscribe:f=!0,forceRefetch:p,subscriptionOptions:h,[x]:m,...g}={})=>(v,y)=>{const b=e({queryArgs:l,endpointDefinition:i,endpointName:n}),w=t({...g,type:"query",subscribe:f,forceRefetch:p,subscriptionOptions:h,endpointName:n,originalArgs:l,queryCacheKey:b,[x]:m}),_=r.endpoints[n].select(l),E=v(w),S=_(y());d(v);const{requestId:C,abort:k}=E,O=S.requestId!==C,N=o.get(v)?.[b],T=()=>_(y()),A=Object.assign(m?E.then(T):O&&!N?Promise.resolve(S):Promise.all([N,E]).then(T),{arg:l,requestId:C,subscriptionOptions:h,queryCacheKey:b,abort:k,async unwrap(){const e=await A;if(e.isError)throw e.error;return e.data},refetch:()=>v(a(l,{subscribe:!1,forceRefetch:!0})),unsubscribe(){f&&v(s({queryCacheKey:b,requestId:C}))},updateSubscriptionOptions(e){A.subscriptionOptions=e,v(c({endpointName:n,requestId:C,queryCacheKey:b,options:e}))}});if(!N&&!O&&!m){const e=(P=v,R={},(I=o).has(P)?I.get(P):I.set(P,R).get(P));e[b]=A,A.then((()=>{delete e[b],u(e)||o.delete(v)}))}var I,P,R;return A};return a},buildInitiateMutation:function(e){return(t,{track:r=!0,fixedCacheKey:i}={})=>(o,s)=>{const c=n({type:"mutation",endpointName:e,originalArgs:t,track:r,fixedCacheKey:i}),f=o(c);d(o);const{requestId:p,abort:h,unwrap:m}=f,g=(v=e=>({error:e}),f.unwrap().then((e=>({data:e}))).catch(v));var v;const y=Object.assign(g,{arg:f.arg,requestId:p,abort:h,unwrap:m,reset:()=>{o(l({requestId:p,fixedCacheKey:i}))}}),b=a.get(o)||{};return a.set(o,b),b[p]=y,y.then((()=>{delete b[p],u(b)||a.delete(o)})),i&&(b[i]=y,y.then((()=>{b[i]===y&&(delete b[i],u(b)||a.delete(o))}))),y}},getRunningQueryThunk:function(t,n){return r=>{const a=i.endpointDefinitions[t],s=e({queryArgs:n,endpointDefinition:a,endpointName:t});return o.get(r)?.[s]}},getRunningMutationThunk:function(e,t){return e=>a.get(e)?.[t]},getRunningQueriesThunk:function(){return e=>Object.values(o.get(e)||{}).filter(f)},getRunningMutationsThunk:function(){return e=>Object.values(a.get(e)||{}).filter(f)}};function d(e){}}({queryThunk:D,mutationThunk:j,api:t,serializeQueryArgs:s,context:N});return L(t.util,{getRunningMutationThunk:ee,getRunningMutationsThunk:te,getRunningQueryThunk:re,getRunningQueriesThunk:ne}),{name:K,injectEndpoint(e,n){const r=t;r.endpoints[e]??={},y(n)?L(r.endpoints[e],{name:e,select:G(e,n),initiate:J(e,n)},U(D,e)):"mutation"===n.type&&L(r.endpoints[e],{name:e,select:Y(),initiate:X(e)},U(j,e))}}}});G()},45099:e=>{var t="undefined"!==typeof Element,n="function"===typeof Map,r="function"===typeof Set,i="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,l,c,u;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(l=s;0!==l--;)if(!o(e[l],a[l]))return!1;return!0}if(n&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;for(u=e.entries();!(l=u.next()).done;)if(!o(l.value[1],a.get(l.value[0])))return!1;return!0}if(r&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(l=s;0!==l--;)if(e[l]!==a[l])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"===typeof e.valueOf&&"function"===typeof a.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString&&"function"===typeof e.toString&&"function"===typeof a.toString)return e.toString()===a.toString();if((s=(c=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(l=s;0!==l--;)if(!Object.prototype.hasOwnProperty.call(a,c[l]))return!1;if(t&&e instanceof Element)return!1;for(l=s;0!==l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!e.$$typeof)&&!o(e[c[l]],a[c[l]]))return!1;return!0}return e!==e&&a!==a}e.exports=function(e,t){try{return o(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},45264:(e,t,n)=>{"use strict";n.d(t,{zR:()=>E,TM:()=>T,yJ:()=>m,sC:()=>I,AO:()=>h,Fu:()=>g});var r=n(58168);function i(e){return"/"===e.charAt(0)}function o(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}const a=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],a=t&&t.split("/")||[],s=e&&i(e),l=t&&i(t),c=s||l;if(e&&i(e)?a=r:r.length&&(a.pop(),a=a.concat(r)),!a.length)return"/";if(a.length){var u=a[a.length-1];n="."===u||".."===u||""===u}else n=!1;for(var d=0,f=a.length;f>=0;f--){var p=a[f];"."===p?o(a,f):".."===p?(o(a,f),d++):d&&(o(a,f),d--)}if(!c)for(;d--;d)a.unshift("..");!c||""===a[0]||a[0]&&i(a[0])||a.unshift("");var h=a.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};function s(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}const l=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"===typeof t||"object"===typeof n){var r=s(t),i=s(n);return r!==t||i!==n?e(r,i):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1};var c=n(68643);function u(e){return"/"===e.charAt(0)?e:"/"+e}function d(e){return"/"===e.charAt(0)?e.substr(1):e}function f(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function p(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function h(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function m(e,t,n,i){var o;"string"===typeof e?(o=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),o.state=t):(void 0===(o=(0,r.A)({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return n&&(o.key=n),i?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=a(o.pathname,i.pathname)):o.pathname=i.pathname:o.pathname||(o.pathname="/"),o}function g(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&l(e.state,t.state)}function v(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var o="function"===typeof e?e(t,n):e;"string"===typeof o?"function"===typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var y=!("undefined"===typeof window||!window.document||!window.document.createElement);function b(e,t){t(window.confirm(e))}var w="popstate",x="hashchange";function _(){try{return window.history.state||{}}catch(e){return{}}}function E(e){void 0===e&&(e={}),y||(0,c.A)(!1);var t=window.history,n=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history}(),i=!(-1===window.navigator.userAgent.indexOf("Trident")),o=e,a=o.forceRefresh,s=void 0!==a&&a,l=o.getUserConfirmation,d=void 0===l?b:l,g=o.keyLength,E=void 0===g?6:g,S=e.basename?p(u(e.basename)):"";function C(e){var t=e||{},n=t.key,r=t.state,i=window.location,o=i.pathname+i.search+i.hash;return S&&(o=f(o,S)),m(o,r,n)}function k(){return Math.random().toString(36).substr(2,E)}var O=v();function N(e){(0,r.A)(B,e),B.length=t.length,O.notifyListeners(B.location,B.action)}function T(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||P(C(e.state))}function A(){P(C(_()))}var I=!1;function P(e){if(I)I=!1,N();else{O.confirmTransitionTo(e,"POP",d,(function(t){t?N({action:"POP",location:e}):function(e){var t=B.location,n=D.indexOf(t.key);-1===n&&(n=0);var r=D.indexOf(e.key);-1===r&&(r=0);var i=n-r;i&&(I=!0,M(i))}(e)}))}}var R=C(_()),D=[R.key];function j(e){return S+h(e)}function M(e){t.go(e)}var L=0;function z(e){1===(L+=e)&&1===e?(window.addEventListener(w,T),i&&window.addEventListener(x,A)):0===L&&(window.removeEventListener(w,T),i&&window.removeEventListener(x,A))}var F=!1;var B={length:t.length,action:"POP",location:R,createHref:j,push:function(e,r){var i="PUSH",o=m(e,r,k(),B.location);O.confirmTransitionTo(o,i,d,(function(e){if(e){var r=j(o),a=o.key,l=o.state;if(n)if(t.pushState({key:a,state:l},null,r),s)window.location.href=r;else{var c=D.indexOf(B.location.key),u=D.slice(0,c+1);u.push(o.key),D=u,N({action:i,location:o})}else window.location.href=r}}))},replace:function(e,r){var i="REPLACE",o=m(e,r,k(),B.location);O.confirmTransitionTo(o,i,d,(function(e){if(e){var r=j(o),a=o.key,l=o.state;if(n)if(t.replaceState({key:a,state:l},null,r),s)window.location.replace(r);else{var c=D.indexOf(B.location.key);-1!==c&&(D[c]=o.key),N({action:i,location:o})}else window.location.replace(r)}}))},go:M,goBack:function(){M(-1)},goForward:function(){M(1)},block:function(e){void 0===e&&(e=!1);var t=O.setPrompt(e);return F||(z(1),F=!0),function(){return F&&(F=!1,z(-1)),t()}},listen:function(e){var t=O.appendListener(e);return z(1),function(){z(-1),t()}}};return B}var S="hashchange",C={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+d(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:d,decodePath:u},slash:{encodePath:u,decodePath:u}};function k(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function O(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function N(e){window.location.replace(k(window.location.href)+"#"+e)}function T(e){void 0===e&&(e={}),y||(0,c.A)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),i=n.getUserConfirmation,o=void 0===i?b:i,a=n.hashType,s=void 0===a?"slash":a,l=e.basename?p(u(e.basename)):"",d=C[s],g=d.encodePath,w=d.decodePath;function x(){var e=w(O());return l&&(e=f(e,l)),m(e)}var _=v();function E(e){(0,r.A)(B,e),B.length=t.length,_.notifyListeners(B.location,B.action)}var T=!1,A=null;function I(){var e,t,n=O(),r=g(n);if(n!==r)N(r);else{var i=x(),a=B.location;if(!T&&(t=i,(e=a).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(A===h(i))return;A=null,function(e){if(T)T=!1,E();else{var t="POP";_.confirmTransitionTo(e,t,o,(function(n){n?E({action:t,location:e}):function(e){var t=B.location,n=j.lastIndexOf(h(t));-1===n&&(n=0);var r=j.lastIndexOf(h(e));-1===r&&(r=0);var i=n-r;i&&(T=!0,M(i))}(e)}))}}(i)}}var P=O(),R=g(P);P!==R&&N(R);var D=x(),j=[h(D)];function M(e){t.go(e)}var L=0;function z(e){1===(L+=e)&&1===e?window.addEventListener(S,I):0===L&&window.removeEventListener(S,I)}var F=!1;var B={length:t.length,action:"POP",location:D,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=k(window.location.href)),n+"#"+g(l+h(e))},push:function(e,t){var n="PUSH",r=m(e,void 0,void 0,B.location);_.confirmTransitionTo(r,n,o,(function(e){if(e){var t=h(r),i=g(l+t);if(O()!==i){A=t,function(e){window.location.hash=e}(i);var o=j.lastIndexOf(h(B.location)),a=j.slice(0,o+1);a.push(t),j=a,E({action:n,location:r})}else E()}}))},replace:function(e,t){var n="REPLACE",r=m(e,void 0,void 0,B.location);_.confirmTransitionTo(r,n,o,(function(e){if(e){var t=h(r),i=g(l+t);O()!==i&&(A=t,N(i));var o=j.indexOf(h(B.location));-1!==o&&(j[o]=t),E({action:n,location:r})}}))},go:M,goBack:function(){M(-1)},goForward:function(){M(1)},block:function(e){void 0===e&&(e=!1);var t=_.setPrompt(e);return F||(z(1),F=!0),function(){return F&&(F=!1,z(-1)),t()}},listen:function(e){var t=_.appendListener(e);return z(1),function(){z(-1),t()}}};return B}function A(e,t,n){return Math.min(Math.max(e,t),n)}function I(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,i=t.initialEntries,o=void 0===i?["/"]:i,a=t.initialIndex,s=void 0===a?0:a,l=t.keyLength,c=void 0===l?6:l,u=v();function d(e){(0,r.A)(w,e),w.length=w.entries.length,u.notifyListeners(w.location,w.action)}function f(){return Math.random().toString(36).substr(2,c)}var p=A(s,0,o.length-1),g=o.map((function(e){return m(e,void 0,"string"===typeof e?f():e.key||f())})),y=h;function b(e){var t=A(w.index+e,0,w.entries.length-1),r=w.entries[t];u.confirmTransitionTo(r,"POP",n,(function(e){e?d({action:"POP",location:r,index:t}):d()}))}var w={length:g.length,action:"POP",location:g[p],index:p,entries:g,createHref:y,push:function(e,t){var r="PUSH",i=m(e,t,f(),w.location);u.confirmTransitionTo(i,r,n,(function(e){if(e){var t=w.index+1,n=w.entries.slice(0);n.length>t?n.splice(t,n.length-t,i):n.push(i),d({action:r,location:i,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",i=m(e,t,f(),w.location);u.confirmTransitionTo(i,r,n,(function(e){e&&(w.entries[w.index]=i,d({action:r,location:i}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(e){var t=w.index+e;return t>=0&&t<w.entries.length},block:function(e){return void 0===e&&(e=!1),u.setPrompt(e)},listen:function(e){return u.appendListener(e)}};return w}},45296:(e,t,n)=>{var r=n(97269);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},45865:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(n){}try{return e+""}catch(n){}}return""}},45904:e=>{"use strict";e.exports=Math.floor},46343:(e,t,n)=>{"use strict";var r=n(94701),i=n(90308),o=n(69123),a=n(5635),s=n(39955),l=r("%WeakMap%",!0),c=i("WeakMap.prototype.get",!0),u=i("WeakMap.prototype.set",!0),d=i("WeakMap.prototype.has",!0),f=i("WeakMap.prototype.delete",!0);e.exports=l?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new s("Side channel does not contain "+o(e))},delete:function(n){if(l&&n&&("object"===typeof n||"function"===typeof n)){if(e)return f(e,n)}else if(a&&t)return t.delete(n);return!1},get:function(n){return l&&n&&("object"===typeof n||"function"===typeof n)&&e?c(e,n):t&&t.get(n)},has:function(n){return l&&n&&("object"===typeof n||"function"===typeof n)&&e?d(e,n):!!t&&t.has(n)},set:function(n,r){l&&n&&("object"===typeof n||"function"===typeof n)?(e||(e=new l),u(e,n,r)):a&&(t||(t=a()),t.set(n,r))}};return n}:a},46423:(e,t,n)=>{"use strict";n.d(t,{sp:()=>s,Y:()=>a});var r=n(69220),i=n(8944);const o=(0,r.om)("s"),a=(e,t)=>{const n=[];for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const t=e[r];"undefined"!==typeof t&&n.push(o(`${r}_${(0,i.si)(t)}`))}return t&&n.push(t),n.join(" ")},s=a},46496:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>p,Xx:()=>h,rF:()=>f});var r=n(14750),i=n(97091),o=n(959),a=n(11822),s=n(21334),l=n(87747);function c(e,t,n,i){const a=i?`CAST(SUBSTRING(CAST(Path AS String), ${i.length}) AS Utf8) AS Path`:"Path";let s=`Path='${e}' OR Path LIKE '${e}/%'`;const l=function(e){var t,n;const i=[],o=null===(t=(0,r.bQ)(Number(null===e||void 0===e?void 0:e.to)||(null===e||void 0===e?void 0:e.to)))||void 0===t?void 0:t.valueOf(),a=null===(n=(0,r.bQ)(Number(null===e||void 0===e?void 0:e.from)||(null===e||void 0===e?void 0:e.from)))||void 0===n?void 0:n.valueOf();if(a&&o&&a>o)throw new Error("Invalid date range");if(a){const e=o===a?">=":">";i.push(`IntervalEnd ${e} Timestamp('${new Date(a).toISOString()}')`)}return o&&i.push(`IntervalEnd <= Timestamp('${new Date(o).toISOString()}')`),i.join(" AND ")}(t);l.length&&(s=`(${s}) AND ${l}`);return`SELECT\n ${a},\n TabletId,\n CPUCores,\n DataSize,\n NodeId,\n PeakTime,\n InFlightTxCount,\n IntervalEnd\nFROM \`.sys/top_partitions_one_hour\`\nWHERE ${s}\n${(0,o.JD)(n)}\nLIMIT 20`}function u(e,t,n){return`SELECT\n ${n?`CAST(SUBSTRING(CAST(Path AS String), ${n.length}) AS Utf8) AS Path`:"Path"},\n TabletId,\n CPUCores,\n DataSize,\n NodeId,\n InFlightTxCount\nFROM \`.sys/partition_stats\`\nWHERE\n Path='${e}'\n OR Path LIKE '${e}/%'\n${(0,o.JD)(t)}\nLIMIT 20`}const d=(0,i.Z0)({name:"shardsWorkload",initialState:{},reducers:{setShardsQueryFilters:(e,t)=>({...e,...t.payload})}}),{setShardsQueryFilters:f}=d.actions,p=d.reducer,h=s.F.injectEndpoints({endpoints:e=>({sendShardQuery:e.query({queryFn:async({database:e,path:t="",sortOrder:n,filters:r},{signal:i})=>{try{const o=await window.api.viewer.sendQuery({query:(null===r||void 0===r?void 0:r.mode)===l.h.Immediate?u(t,n,e):c(t,r,n,e),database:e,action:"execute-scan"},{signal:i,withRetries:!0});if((0,a.We)(o))return{error:o};return{data:(0,a.fW)(o)}}catch(o){return{error:o}}},providesTags:["All"],forceRefetch:({currentArg:e})=>{var t,n,i;return"immediate"===(null===e||void 0===e||null===(t=e.filters)||void 0===t?void 0:t.mode)||!(!(0,r.eP)(null===e||void 0===e||null===(n=e.filters)||void 0===n?void 0:n.from)&&!(0,r.eP)(null===e||void 0===e||null===(i=e.filters)||void 0===i?void 0:i.to))}})}),overrideExisting:"throw"})},46549:(e,t,n)=>{"use strict";n.d(t,{ey:()=>o,z3:()=>r.z,fn:()=>r.f});var r=n(15619),i=n(76086);const o=e=>({perMinute:e&&e.per_minute?Math.round(Number(e.per_minute)/i.r0):0,perHour:e&&e.per_hour?Math.round(Number(e.per_hour)/i.Jg):0,perDay:e&&e.per_day?Math.round(Number(e.per_day)/i.tt):0})},46626:(e,t,n)=>{var r=n(19305),i=n(60242),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||(a.test(e)||!o.test(e)||null!=t&&e in Object(t))}},46700:(e,t,n)=>{"use strict";n.d(t,{$:()=>s});var r=n(59284),i=n(64255),o=n.n(i);const a="pending";function s(e){const{children:t,text:n,options:i,timeout:s,onCopy:l}=e,[c,u]=r.useState(a),d=r.useRef(),f=r.useMemo((()=>t(c)),[t,c]),p=r.useCallback(((e,t)=>{u(t?"success":"error"),window.clearTimeout(d.current),d.current=window.setTimeout((()=>u(a)),s),null===l||void 0===l||l(e,t)}),[l,s]);if(r.useEffect((()=>()=>window.clearTimeout(d.current)),[]),!r.isValidElement(f))throw new Error("Content must be a valid react element");return r.createElement(o(),{text:n,onCopy:p,options:i},f)}},46710:(e,t,n)=>{var r=n(62871),i=n(6737);e.exports=function(e,t){return e&&r(t,i(t),e)}},46734:(e,t,n)=>{"use strict";n.d(t,{N:()=>a,h:()=>o});var r=n(59284),i=n(359);function o(e){return t=>{e&&[i.D.ENTER,i.D.SPACEBAR,i.D.SPACEBAR_OLD].includes(t.key)&&(t.preventDefault(),e(t))}}function a(e){return{onKeyDown:r.useMemo((()=>o(e)),[e])}}},46819:(e,t,n)=>{"use strict";n.d(t,{I:()=>o});var r=n(59284),i=n(11507);function o(){return r.useContext(i.G).mobile}},46878:(e,t,n)=>{"use strict";n.d(t,{w:()=>o});var r=n(59284),i=n(42933);function o(){const e=r.useContext(i.D);if(void 0===e)throw new Error("useTheme* hooks must be used within ThemeProvider");return e}},46898:(e,t,n)=>{"use strict";n.d(t,{m:()=>o});var r=n(59284);const i=(0,n(69220).om)("control-label"),o=r.forwardRef((({children:e,className:t,labelClassName:n,title:o,style:a,disabled:s=!1,control:l,size:c="m",qa:u},d)=>{const f=r.cloneElement(l,{className:i("indicator",l.props.className)});return r.createElement("label",{ref:d,title:o,style:a,className:i({size:c,disabled:s},t),"data-qa":u},f,e?r.createElement("span",{className:i("text",n)},e):null)}));o.displayName="ControlLabel"},47018:(e,t,n)=>{var r=n(80222),i=n(40691),o=n(9112),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=a},47058:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>d,aD:()=>f,WD:()=>u});var r=n(97091),i=n(21334),o=n(46549),a=n(73891),s=n(41650);const l=e=>{const{partition_offsets:t,store_size_bytes:n="0",last_write_time:r,max_write_time_lag:i,bytes_written:s,partition_node_id:l=0}=e||{},{start:c="0",end:u="0"}=t||{};return{storeSize:n,writeSpeed:(0,o.ey)(s),partitionWriteLag:(0,a.i6)(i),partitionWriteIdleTime:(0,a.MC)(r),startOffset:c,endOffset:u,partitionNodeId:l}},c=(0,r.Z0)({name:"partitions",initialState:{},reducers:{setSelectedConsumer:(e,t)=>{e.selectedConsumer=t.payload}}}),{setSelectedConsumer:u}=c.actions,d=c.reducer,f=i.F.injectEndpoints({endpoints:e=>({getPartitions:e.query({queryFn:async({path:e,database:t,consumerName:n},{signal:r})=>{try{if(n){const i=await window.api.viewer.getConsumer({path:e,database:t,consumer:n},{signal:r}),c=(e=>null===e||void 0===e?void 0:e.map((e=>{const{partition_id:t="0",partition_stats:n,partition_consumer_stats:r}=e,i=l(n),{endOffset:c}=i,{last_read_offset:u="0",committed_offset:d="0",read_session_id:f,last_read_time:p,max_read_time_lag:h,max_write_time_lag:m,bytes_read:g,reader_name:v,connection_node_id:y=0}=r||{},b=(0,s.kf)(c)&&(0,s.kf)(d)?Number(c)-Number(d):0,w=(0,s.kf)(c)&&(0,s.kf)(u)?Number(c)-Number(u):0;return{...i,partitionId:t,readSpeed:(0,o.ey)(g),consumerWriteLag:(0,a.i6)(m),consumerReadLag:(0,a.i6)(h),consumerReadIdleTime:(0,a.MC)(p),uncommitedMessages:b,unreadMessages:w,commitedOffset:d,readSessionId:f,readerName:v,connectionNodeId:y}})))(i.partitions);return{data:c}}{const n=await window.api.viewer.getTopic({path:e,database:t},{signal:r}),i=(e=>null===e||void 0===e?void 0:e.map((e=>{const{partition_id:t="0",partition_stats:n}=e;return{partitionId:t,...l(n)}})))(n.partitions);return{data:i}}}catch(i){return{error:i}}},providesTags:["All"]})}),overrideExisting:"throw"})},47334:(e,t,n)=>{"use strict";n.d(t,{a:()=>l});var r=n(74417),i=n(77506),o=n(66781),a=n(60712);const s=(0,i.cn)("ydb-loader"),l=({size:e="m",delay:t=600,className:n})=>{const[i]=(0,o.y)(t);return i?(0,a.jsx)("div",{className:s(null,n),children:(0,a.jsx)(r.a,{size:e})}):null}},47665:(e,t,n)=>{"use strict";n.d(t,{J:()=>u});var r=n(59284),i=n(81240),o=n(48699),a=n(46700),s=n(99991);const l=(0,n(69220).om)("label"),c={xs:{copyIconSize:12,closeIconSize:12},s:{copyIconSize:14,closeIconSize:14},m:{copyIconSize:16,closeIconSize:16}},u=r.forwardRef((function(e,t){const{type:n="default",theme:u="normal",size:d="xs",title:f,icon:p,children:h,onCloseClick:m,className:g,disabled:v,copyText:y,closeButtonLabel:b,copyButtonLabel:w,interactive:x=!1,value:_,onCopy:E,onClick:S,qa:C}=e,k=Boolean(""!==h&&r.Children.count(h)>0),O="close"===n&&k,N="copy"===n&&k,T="function"===typeof S,A=Boolean(N&&y),I=(T||A||x)&&!v,{copyIconSize:P,closeIconSize:R}=c[d],D=p&&r.createElement("div",{className:l("addon",{side:k?"start":void 0,type:"icon"})},p),j=k&&r.createElement("div",{className:l("text")},r.createElement("div",{className:l("content")},h),Boolean(_)&&r.createElement("div",{className:l("value")},r.createElement("div",{className:l("separator")},":"),r.createElement("div",{className:l("key")},_))),M=e=>{let n;return N?n=r.createElement("button",{type:"button","aria-label":w||void 0,onClick:T?S:void 0,disabled:v,className:l("addon",{side:"end",type:"button"})},r.createElement(o.u,{status:e||"pending",size:P})):O&&(n=r.createElement("button",{type:"button",onClick:m,"aria-label":b||void 0,disabled:v,className:l("addon",{side:"end",type:"button"})},r.createElement(s.I,{size:R,data:i.A}))),r.createElement("div",{ref:t,className:l({theme:u,size:d,interactive:I,disabled:v},g),title:f,"data-qa":C},D,T?r.createElement("button",{disabled:v,type:"button",onClick:S,className:l("main-button")},j):j,n)};return A&&y&&!T?r.createElement(a.$,{text:y,onCopy:E,timeout:1e3},(e=>M(e))):M()}))},48303:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},48372:(e,t,n)=>{"use strict";n.d(t,{JA:()=>s,oK:()=>l,Ru:()=>u,g4:()=>d});var r=n(1448),i=n(3357),o=n(59001),a=n(76086),s=function(e){return e.En="en",e.Ru="ru",e}(s||{});const l=s.En,c=o.f.readUserSettingsValue(a.jS,l),u=new r.TH({lang:c,fallbackLang:s.En});function d(e,t){for(const n of Object.keys(t))u.registerKeyset(n,e,t[n]);return u.keyset(e)}(0,i.jK)({lang:c})},48681:(e,t,n)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(76575)},48699:(e,t,n)=>{"use strict";n.d(t,{u:()=>c});var r=n(27145),i=n(59284);const o=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.5 12c0 .414-.168.79-.44 1.06A1.5 1.5 0 0 1 8 13.5H4a1.5 1.5 0 0 1-1.06-.44A1.5 1.5 0 0 1 2.5 12V8c0-.414.168-.79.44-1.06A1.5 1.5 0 0 1 4 6.5h4c.414 0 .79.168 1.06.44.272.27.44.646.44 1.06zm-1.47-1.03L7.06 10l.97-.97a.75.75 0 0 0-1.06-1.06L6 8.94l-.97-.97a.75.75 0 0 0-1.06 1.06l.97.97-.97.97a.75.75 0 0 0 1.06 1.06l.97-.97.97.97a.75.75 0 0 0 1.06-1.06M6.5 5H8a3 3 0 0 1 3 3v1.5h1A1.5 1.5 0 0 0 13.5 8V4A1.5 1.5 0 0 0 12 2.5H8A1.5 1.5 0 0 0 6.5 4zM5 4a3 3 0 0 1 3-3h4a3 3 0 0 1 3 3v4a3 3 0 0 1-3 3h-1v1a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V8a3 3 0 0 1 3-3h1z",clipRule:"evenodd"})),a=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("g",{fill:"currentColor"},i.createElement("path",{d:"m8 9.076.085-.107a.751.751 0 1 0-1.171-.937L5.438 9.877 5.03 9.47a.747.747 0 0 0-1.06 0 .75.75 0 0 0 0 1.06l.407.408.593.592a.75.75 0 0 0 1.116-.061l.522-.654h.001z"}),i.createElement("path",{fillRule:"evenodd",d:"M12 11a3 3 0 0 0 3-3V4a3 3 0 0 0-3-3H8a3 3 0 0 0-3 3v1H4a3 3 0 0 0-3 3v4a3 3 0 0 0 3 3h4a3 3 0 0 0 3-3v-1zM4 6.5A1.5 1.5 0 0 0 2.5 8v4A1.5 1.5 0 0 0 4 13.5h4A1.5 1.5 0 0 0 9.5 12V8A1.5 1.5 0 0 0 8 6.5zM13.5 4A1.5 1.5 0 0 0 12 2.5H8A1.5 1.5 0 0 0 6.5 4v1H8a3 3 0 0 1 3 3v1.5h1A1.5 1.5 0 0 0 13.5 8z",clipRule:"evenodd"})));var s=n(51016),l=n(99991);function c(e){var{status:t}=e,n=(0,r.Tt)(e,["status"]);return"error"===t?i.createElement(l.I,Object.assign({data:o},n)):"success"===t?i.createElement(l.I,Object.assign({data:a},n)):i.createElement(l.I,Object.assign({data:s.A},n))}},48955:(e,t,n)=>{var r=n(537),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(l){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},49034:(e,t,n)=>{"use strict";n.d(t,{d:()=>F});var r="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{};var i=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},o="object"==typeof r&&r&&r.Object===Object&&r,a="object"==typeof self&&self&&self.Object===Object&&self,s=o||a||Function("return this")(),l=s,c=function(){return l.Date.now()},u=/\s/;var d=function(e){for(var t=e.length;t--&&u.test(e.charAt(t)););return t},f=/^\s+/;var p=function(e){return e?e.slice(0,d(e)+1).replace(f,""):e},h=s.Symbol,m=h,g=Object.prototype,v=g.hasOwnProperty,y=g.toString,b=m?m.toStringTag:void 0;var w=function(e){var t=v.call(e,b),n=e[b];try{e[b]=void 0;var r=!0}catch(o){}var i=y.call(e);return r&&(t?e[b]=n:delete e[b]),i},x=Object.prototype.toString;var _=w,E=function(e){return x.call(e)},S=h?h.toStringTag:void 0;var C=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":S&&S in Object(e)?_(e):E(e)},k=function(e){return null!=e&&"object"==typeof e};var O=p,N=i,T=function(e){return"symbol"==typeof e||k(e)&&"[object Symbol]"==C(e)},A=/^[-+]0x[0-9a-f]+$/i,I=/^0b[01]+$/i,P=/^0o[0-7]+$/i,R=parseInt;var D=i,j=c,M=function(e){if("number"==typeof e)return e;if(T(e))return NaN;if(N(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=N(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=O(e);var n=I.test(e);return n||P.test(e)?R(e.slice(2),n?2:8):A.test(e)?NaN:+e},L=Math.max,z=Math.min;var F=function(e,t,n){var r,i,o,a,s,l,c=0,u=!1,d=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,o=i;return r=i=void 0,c=t,a=e.apply(o,n)}function h(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=o}function m(){var e=j();if(h(e))return g(e);s=setTimeout(m,function(e){var n=t-(e-l);return d?z(n,o-(e-c)):n}(e))}function g(e){return s=void 0,f&&r?p(e):(r=i=void 0,a)}function v(){var e=j(),n=h(e);if(r=arguments,i=this,l=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(m,t),u?p(e):a}(l);if(d)return clearTimeout(s),s=setTimeout(m,t),p(l)}return void 0===s&&(s=setTimeout(m,t)),a}return t=M(t)||0,D(n)&&(u=!!n.leading,o=(d="maxWait"in n)?L(M(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f),v.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=i=s=void 0},v.flush=function(){return void 0===s?a:g(j())},v}},49526:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.LOCATION_POP="REDUX-LOCATION-POP-ACTION",t.LOCATION_PUSH="REDUX-LOCATION-PUSH-ACTION",t.OBJECT_KEY_DELIMITER="-"},49535:(e,t,n)=>{var r=n(43238);e.exports=function(e){return function(t){return r(t,e)}}},49538:(e,t,n)=>{e=n.nmd(e);var r=n(4133),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},49818:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>u,DK:()=>c,oM:()=>a,w7:()=>l});var r=n(62060),i=n.n(r);const o="tooltip/HIDE_TOOLTIP",a="tooltip/UPDATE_REF",s={toolTipVisible:!1,currentHoveredRef:void 0,data:void 0,templateType:"cell"},l=()=>({type:o}),c=(e,t,n,r,i)=>({type:a,node:e,data:t,templateType:n,additionalData:r,positions:i}),u=(e=s,t)=>{switch(t.type){case o:return{...e,currentHoveredRef:void 0,toolTipVisible:!1};case a:return"cell"===t.templateType&&i()(t.node,e.currentHoveredRef)?{...e,currentHoveredRef:void 0,toolTipVisible:!1}:{...e,toolTipVisible:!0,currentHoveredRef:t.node,positions:t.positions,data:t.data,additionalData:t.additionalData,templateType:t.templateType};default:return e}}},49837:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(57855),t)},49860:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.orderedUnits=void 0,t.normalizeValues=s,t.removeZeros=l,t.shiftTo=c,t.rescale=function(e,t){return l(c(s(e),["years","months","weeks","days","hours","minutes","seconds","milliseconds"],t))};var r=365.2425,i=30.436875,o=n({years:{quarters:4,months:12,weeks:52.1775,days:r,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:i,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3}},{weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}});t.orderedUnits=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"];var a=t.orderedUnits.slice(0).reverse();function s(e,r){for(var i,s,l,c,u,d,f,p=(void 0===r?{}:r).roundUp,h=n({},e),m=function(e){for(var t,n=null!==(t=e.milliseconds)&&void 0!==t?t:0,r=0,i=a.slice(1);r<i.length;r++){var s=i[r],l=e[s];l&&(n+=l*o[s].milliseconds)}return n}(e)<0?-1:1,g=null,v=0;v<a.length;v++){if(void 0!==h[x=a[v]]&&null!==h[x])if(g){var y=(null!==(i=h[g])&&void 0!==i?i:0)*m,b=o[x][g],w=Math.floor(y/b);h[x]=(null!==(s=h[x])&&void 0!==s?s:0)+w*m,h[g]=(null!==(l=h[g])&&void 0!==l?l:0)-w*b*m,g=x}else g=x}g=null;for(v=0;v<t.orderedUnits.length;v++){var x;if(void 0!==h[x=t.orderedUnits[v]]&&null!==h[x])if(g){var _=(null!==(c=h[g])&&void 0!==c?c:0)%1;h[g]=(null!==(u=h[g])&&void 0!==u?u:0)-_,h[x]=(null!==(d=h[x])&&void 0!==d?d:0)+_*o[g][x],g=x}else g=x}return p&&g&&h[g]&&(h[g]=Math.round(null!==(f=h[g])&&void 0!==f?f:0)),h}function l(e){for(var t={},n=0,r=Object.entries(e);n<r.length;n++){var i=r[n],o=i[0],a=i[1];0!==a&&(t[o]=a)}return t}function c(e,n,r){var i;if(!n.length)return e;for(var a,l={},c={},u=0,d=t.orderedUnits;u<d.length;u++){var f=d[u];if(n.includes(f)){a=f;for(var p=0,h=0,m=Object.keys(c);h<m.length;h++){var g=m[h];p+=o[g][f]*c[g],c[g]=0}(E=e[f])&&(p+=E);var v=Math.trunc(p);l[f]=v,c[f]=(1e3*p-1e3*v)/1e3}else e[f]&&(c[f]=e[f])}if(a){for(var y=0,b=Object.entries(c);y<b.length;y++){var w=b[y],x=w[0],_=w[1];0!==_&&(l[a]=(null!==(i=l[a])&&void 0!==i?i:0)+(x===a?_:_/o[a][x]))}var E;(E=l[a])&&(l[a]=Math.round(1e3*E)/1e3)}return s(l,r)}},49917:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M15.53 1.53A.75.75 0 0 0 14.47.47l-1.29 1.29a4.24 4.24 0 0 0-5.423.483l-.58.58a.96.96 0 0 0 0 1.354l4.646 4.646a.96.96 0 0 0 1.354 0l.58-.58a4.24 4.24 0 0 0 .484-5.423zm-8.5 4.94a.75.75 0 0 1 0 1.06L5.78 8.78l1.44 1.44 1.25-1.25a.75.75 0 0 1 1.06 1.06l-1.25 1.25.543.543a.96.96 0 0 1 0 1.354l-.58.58a4.24 4.24 0 0 1-5.423.484l-1.29 1.29A.75.75 0 0 1 .47 14.47l1.29-1.29a4.24 4.24 0 0 1 .483-5.423l.58-.58a.96.96 0 0 1 1.354 0l.543.543 1.25-1.25a.75.75 0 0 1 1.06 0M3.5 8.62l-.197.197a2.743 2.743 0 0 0 3.879 3.879l.197-.197zm9.197-1.439-.197.197L8.621 3.5l.197-.197a2.743 2.743 0 0 1 3.879 3.879",clipRule:"evenodd"}))},50088:(e,t,n)=>{var r=n(38469),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},50490:(e,t,n)=>{var r=n(72220),i=n(57741),o=n(73073),a=o&&o.isMap,s=a?i(a):r;e.exports=s},50711:(e,t)=>{"use strict";var n=60103,r=60106,i=60107,o=60108,a=60114,s=60109,l=60110,c=60112,u=60113,d=60120,f=60115,p=60116,h=60121,m=60122,g=60117,v=60129,y=60131;if("function"===typeof Symbol&&Symbol.for){var b=Symbol.for;n=b("react.element"),r=b("react.portal"),i=b("react.fragment"),o=b("react.strict_mode"),a=b("react.profiler"),s=b("react.provider"),l=b("react.context"),c=b("react.forward_ref"),u=b("react.suspense"),d=b("react.suspense_list"),f=b("react.memo"),p=b("react.lazy"),h=b("react.block"),m=b("react.server.block"),g=b("react.fundamental"),v=b("react.debug_trace_mode"),y=b("react.legacy_hidden")}function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case i:case a:case o:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case c:case p:case f:case s:return e;default:return t}}case r:return t}}}t.isContextConsumer=function(e){return w(e)===l}},50743:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDuration=function(e,t,n){void 0===n&&(n={});var l={},c=null,u=(t&&"object"===typeof t?t:n).lang,d="string"===typeof t?t:"milliseconds";if((0,i.isDuration)(e))return e;if(isNaN(Number(e)))if("string"===typeof e&&(c=a.exec(e))){var f="-"===c[1]?-1:1,p=c[8]&&"-"===c[8][0]?-1:1;l=(0,o.removeZeros)({y:s(c[2])*f,M:s(c[3])*f,w:s(c[4])*f,d:s(c[5])*f,h:s(c[6])*f,m:s(c[7])*f,s:s(c[8])*f,ms:Math.floor(1e3*s(c[9]?"0.".concat(c[9]):c[9]))*p*f})}else{if(!e||"object"!==typeof e)throw new Error("Unknown duration: ".concat(e));l=e}else l[d]=Number(e);return new i.DurationImpl({values:(0,r.normalizeDateComponents)(l,r.normalizeDurationUnit),locale:u})};var r=n(11345),i=n(57491),o=n(49860),a=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9]+)(?:[.,]([0-9]+)?)?S)?)?$/;function s(e){var t=e?parseFloat(e.replace(",",".")):0;return isNaN(t)?0:t}},50943:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var w=b.prototype=new y;w.constructor=b,m(w,v.prototype),w.isPureReactComponent=!0;var x=Array.isArray,_=Object.prototype.hasOwnProperty,E={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,r){var i,o={},a=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)_.call(t,i)&&!S.hasOwnProperty(i)&&(o[i]=t[i]);var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(i in l=e.defaultProps)void 0===o[i]&&(o[i]=l[i]);return{$$typeof:n,type:e,key:a,ref:s,props:o,_owner:E.current}}function k(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var O=/\/+/g;function N(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function T(e,t,i,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return a=a(l=e),e=""===o?"."+N(l,0):o,x(a)?(i="",null!=e&&(i=e.replace(O,"$&/")+"/"),T(a,t,i,"",(function(e){return e}))):null!=a&&(k(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,i+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(O,"$&/")+"/")+e)),t.push(a)),1;if(l=0,o=""===o?".":o+":",x(e))for(var c=0;c<e.length;c++){var u=o+N(s=e[c],c);l+=T(s,t,i,u,a)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=T(s=s.value,t,i,u=o+N(s,c++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function A(e,t,n){if(null==e)return e;var r=[],i=0;return T(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function I(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var P={current:null},R={transition:null},D={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:R,ReactCurrentOwner:E};function j(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:A,forEach:function(e,t,n){A(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return A(e,(function(){t++})),t},toArray:function(e){return A(e,(function(e){return e}))||[]},only:function(e){if(!k(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=i,t.Profiler=a,t.PureComponent=b,t.StrictMode=o,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D,t.act=j,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=m({},e.props),o=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=E.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)_.call(t,c)&&!S.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];i.children=l}return{$$typeof:n,type:e.type,key:o,ref:a,props:i,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=C,t.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=k,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:I}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=R.transition;R.transition={};try{e()}finally{R.transition=t}},t.unstable_act=j,t.useCallback=function(e,t){return P.current.useCallback(e,t)},t.useContext=function(e){return P.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return P.current.useDeferredValue(e)},t.useEffect=function(e,t){return P.current.useEffect(e,t)},t.useId=function(){return P.current.useId()},t.useImperativeHandle=function(e,t,n){return P.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return P.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return P.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return P.current.useMemo(e,t)},t.useReducer=function(e,t,n){return P.current.useReducer(e,t,n)},t.useRef=function(e){return P.current.useRef(e)},t.useState=function(e){return P.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return P.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return P.current.useTransition()},t.version="18.3.1"},51016:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 2.5H8A1.5 1.5 0 0 0 6.5 4v1H8a3 3 0 0 1 3 3v1.5h1A1.5 1.5 0 0 0 13.5 8V4A1.5 1.5 0 0 0 12 2.5M11 11h1a3 3 0 0 0 3-3V4a3 3 0 0 0-3-3H8a3 3 0 0 0-3 3v1H4a3 3 0 0 0-3 3v4a3 3 0 0 0 3 3h4a3 3 0 0 0 3-3zM4 6.5h4A1.5 1.5 0 0 1 9.5 8v4A1.5 1.5 0 0 1 8 13.5H4A1.5 1.5 0 0 1 2.5 12V8A1.5 1.5 0 0 1 4 6.5",clipRule:"evenodd"}))},51533:(e,t,n)=>{"use strict";n.d(t,{Y:()=>r});const r=n(97434).wA},51682:e=>{"use strict";e.exports=Math.abs},51700:(e,t,n)=>{"use strict";e.exports=n(65144)},52497:(e,t,n)=>{var r=n(50088),i=n(22807),o=n(48303);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:r(i(e))}},52530:e=>{"use strict";e.exports=RangeError},52531:(e,t,n)=>{"use strict";n.d(t,{Dg:()=>i,Dt:()=>r,iJ:()=>a,ml:()=>s,pA:()=>l,tQ:()=>o});const r="tenantPage",i={query:"query",diagnostics:"diagnostics"},o={newQuery:"newQuery",history:"history",saved:"saved"},a={overview:"overview",schema:"schema",topQueries:"topQueries",topShards:"topShards",nodes:"nodes",tablets:"tablets",storage:"storage",network:"network",describe:"describe",hotKeys:"hotKeys",graph:"graph",consumers:"consumers",partitions:"partitions",configs:"configs",operations:"operations"},s={overview:"overview",acl:"acl",schema:"schema"},l={cpu:"cpu",storage:"storage",memory:"memory",healthcheck:"healthcheck"}},52905:(e,t,n)=>{"use strict";n.d(t,{N_:()=>m});var r=n(10755),i=n(25540),o=n(59284),a=n(45264),s=n(58168),l=n(98587),c=n(68643);o.Component;o.Component;var u=function(e,t){return"function"===typeof e?e(t):e},d=function(e,t){return"string"===typeof e?(0,a.yJ)(e,null,null,t):e},f=function(e){return e},p=o.forwardRef;"undefined"===typeof p&&(p=f);var h=p((function(e,t){var n=e.innerRef,r=e.navigate,i=e.onClick,a=(0,l.A)(e,["innerRef","navigate","onClick"]),c=a.target,u=(0,s.A)({},a,{onClick:function(e){try{i&&i(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||c&&"_self"!==c||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return u.ref=f!==p&&t||n,o.createElement("a",u)}));var m=p((function(e,t){var n=e.component,i=void 0===n?h:n,m=e.replace,g=e.to,v=e.innerRef,y=(0,l.A)(e,["component","replace","to","innerRef"]);return o.createElement(r.XZ.Consumer,null,(function(e){e||(0,c.A)(!1);var n=e.history,r=d(u(g,e.location),e.location),l=r?n.createHref(r):"",h=(0,s.A)({},y,{href:l,navigate:function(){var t=u(g,e.location),r=(0,a.AO)(e.location)===(0,a.AO)(d(t));(m||r?n.replace:n.push)(t)}});return f!==p?h.ref=t||v:h.innerRef=v,o.createElement(i,h)}))})),g=function(e){return e},v=o.forwardRef;"undefined"===typeof v&&(v=g);v((function(e,t){var n=e["aria-current"],i=void 0===n?"page":n,a=e.activeClassName,f=void 0===a?"active":a,p=e.activeStyle,h=e.className,y=e.exact,b=e.isActive,w=e.location,x=e.sensitive,_=e.strict,E=e.style,S=e.to,C=e.innerRef,k=(0,l.A)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return o.createElement(r.XZ.Consumer,null,(function(e){e||(0,c.A)(!1);var n=w||e.location,a=d(u(S,n),n),l=a.pathname,O=l&&l.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),N=O?(0,r.B6)(n.pathname,{path:O,exact:y,sensitive:x,strict:_}):null,T=!!(b?b(N,n):N),A="function"===typeof h?h(T):h,I="function"===typeof E?E(T):E;T&&(A=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(A,f),I=(0,s.A)({},I,p));var P=(0,s.A)({"aria-current":T&&i||null,className:A,style:I,to:a},k);return g!==v?P.ref=t||C:P.innerRef=C,o.createElement(m,P)}))}))},52964:(e,t,n)=>{var r=n(19750),i=n(59698),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},53202:(e,t,n)=>{"use strict";n.d(t,{JY:()=>yi,sx:()=>eo,gL:()=>io});var r=n(59284),i=n(25540),o=n(58168),a=n(96906),s=r.createContext(null);var l=function(e){e()},c=function(){return l};var u={notify:function(){},get:function(){return[]}};function d(e,t){var n,r=u;function i(){a.onStateChange&&a.onStateChange()}function o(){n||(n=t?t.addNestedSub(i):e.subscribe(i),r=function(){var e=c(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){r&&null!==t&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}())}var a={addNestedSub:function(e){return o(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:i,isSubscribed:function(){return Boolean(n)},trySubscribe:o,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=u)},getListeners:function(){return r}};return a}var f="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?r.useLayoutEffect:r.useEffect;const p=function(e){var t=e.store,n=e.context,i=e.children,o=(0,r.useMemo)((function(){var e=d(t);return{store:t,subscription:e}}),[t]),a=(0,r.useMemo)((function(){return t.getState()}),[t]);f((function(){var e=o.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),a!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[o,a]);var l=n||s;return r.createElement(l.Provider,{value:o},i)};var h=n(98587),m=n(5290),g=n.n(m),v=n(94771),y=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],b=["reactReduxForwardedRef"],w=[],x=[null,null];function _(e,t){var n=e[1];return[t.payload,n+1]}function E(e,t,n){f((function(){return e.apply(void 0,t)}),n)}function S(e,t,n,r,i,o,a){e.current=r,t.current=i,n.current=!1,o.current&&(o.current=null,a())}function C(e,t,n,r,i,o,a,s,l,c){if(e){var u=!1,d=null,f=function(){if(!u){var e,n,f=t.getState();try{e=r(f,i.current)}catch(p){n=p,d=p}n||(d=null),e===o.current?a.current||l():(o.current=e,s.current=e,a.current=!0,c({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=f,n.trySubscribe(),f();return function(){if(u=!0,n.tryUnsubscribe(),n.onStateChange=null,d)throw d}}}var k=function(){return[null,0]};function O(e,t){void 0===t&&(t={});var n=t,i=n.getDisplayName,a=void 0===i?function(e){return"ConnectAdvanced("+e+")"}:i,l=n.methodName,c=void 0===l?"connectAdvanced":l,u=n.renderCountProp,f=void 0===u?void 0:u,p=n.shouldHandleStateChanges,m=void 0===p||p,O=n.storeKey,N=void 0===O?"store":O,T=(n.withRef,n.forwardRef),A=void 0!==T&&T,I=n.context,P=void 0===I?s:I,R=(0,h.A)(n,y),D=P;return function(t){var n=t.displayName||t.name||"Component",i=a(n),s=(0,o.A)({},R,{getDisplayName:a,methodName:c,renderCountProp:f,shouldHandleStateChanges:m,storeKey:N,displayName:i,wrappedComponentName:n,WrappedComponent:t}),l=R.pure;var u=l?r.useMemo:function(e){return e()};function p(n){var i=(0,r.useMemo)((function(){var e=n.reactReduxForwardedRef,t=(0,h.A)(n,b);return[n.context,e,t]}),[n]),a=i[0],l=i[1],c=i[2],f=(0,r.useMemo)((function(){return a&&a.Consumer&&(0,v.isContextConsumer)(r.createElement(a.Consumer,null))?a:D}),[a,D]),p=(0,r.useContext)(f),g=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(p)&&Boolean(p.store);var y=g?n.store:p.store,O=(0,r.useMemo)((function(){return function(t){return e(t.dispatch,s)}(y)}),[y]),N=(0,r.useMemo)((function(){if(!m)return x;var e=d(y,g?null:p.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[y,g,p]),T=N[0],A=N[1],I=(0,r.useMemo)((function(){return g?p:(0,o.A)({},p,{subscription:T})}),[g,p,T]),P=(0,r.useReducer)(_,w,k),R=P[0][0],j=P[1];if(R&&R.error)throw R.error;var M=(0,r.useRef)(),L=(0,r.useRef)(c),z=(0,r.useRef)(),F=(0,r.useRef)(!1),B=u((function(){return z.current&&c===L.current?z.current:O(y.getState(),c)}),[y,R,c]);E(S,[L,M,F,c,B,z,A]),E(C,[m,y,T,O,L,M,F,z,A,j],[y,T,O]);var U=(0,r.useMemo)((function(){return r.createElement(t,(0,o.A)({},B,{ref:l}))}),[l,t,B]);return(0,r.useMemo)((function(){return m?r.createElement(f.Provider,{value:I},U):U}),[f,U,I])}var y=l?r.memo(p):p;if(y.WrappedComponent=t,y.displayName=p.displayName=i,A){var O=r.forwardRef((function(e,t){return r.createElement(y,(0,o.A)({},e,{reactReduxForwardedRef:t}))}));return O.displayName=i,O.WrappedComponent=t,g()(O,t)}return g()(y,t)}}function N(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function T(e,t){if(N(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!N(e[n[i]],t[n[i]]))return!1;return!0}function A(e){return function(t,n){var r=e(t,n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function I(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function P(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=I(e);var i=r(t,n);return"function"===typeof i&&(r.mapToProps=i,r.dependsOnOwnProps=I(i),i=r(t,n)),i},r}}const R=[function(e){return"function"===typeof e?P(e):void 0},function(e){return e?void 0:A((function(e){return{dispatch:e}}))},function(e){return e&&"object"===typeof e?A((function(t){return function(e,t){var n={},r=function(r){var i=e[r];"function"===typeof i&&(n[r]=function(){return t(i.apply(void 0,arguments))})};for(var i in e)r(i);return n}(e,t)})):void 0}];const D=[function(e){return"function"===typeof e?P(e):void 0},function(e){return e?void 0:A((function(){return{}}))}];function j(e,t,n){return(0,o.A)({},n,e,t)}const M=[function(e){return"function"===typeof e?function(e){return function(t,n){n.displayName;var r,i=n.pure,o=n.areMergedPropsEqual,a=!1;return function(t,n,s){var l=e(t,n,s);return a?i&&o(l,r)||(r=l):(a=!0,r=l),r}}}(e):void 0},function(e){return e?void 0:function(){return j}}];var L=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function z(e,t,n,r){return function(i,o){return n(e(i,o),t(r,o),o)}}function F(e,t,n,r,i){var o,a,s,l,c,u=i.areStatesEqual,d=i.areOwnPropsEqual,f=i.areStatePropsEqual,p=!1;function h(i,p){var h=!d(p,a),m=!u(i,o,p,a);return o=i,a=p,h&&m?(s=e(o,a),t.dependsOnOwnProps&&(l=t(r,a)),c=n(s,l,a)):h?(e.dependsOnOwnProps&&(s=e(o,a)),t.dependsOnOwnProps&&(l=t(r,a)),c=n(s,l,a)):m?function(){var t=e(o,a),r=!f(t,s);return s=t,r&&(c=n(s,l,a)),c}():c}return function(i,u){return p?h(i,u):(s=e(o=i,a=u),l=t(r,a),c=n(s,l,a),p=!0,c)}}function B(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,i=t.initMergeProps,o=(0,h.A)(t,L),a=n(e,o),s=r(e,o),l=i(e,o);return(o.pure?F:z)(a,s,l,e,o)}var U=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function q(e,t,n){for(var r=t.length-1;r>=0;r--){var i=t[r](e);if(i)return i}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function $(e,t){return e===t}function H(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?O:n,i=t.mapStateToPropsFactories,a=void 0===i?D:i,s=t.mapDispatchToPropsFactories,l=void 0===s?R:s,c=t.mergePropsFactories,u=void 0===c?M:c,d=t.selectorFactory,f=void 0===d?B:d;return function(e,t,n,i){void 0===i&&(i={});var s=i,c=s.pure,d=void 0===c||c,p=s.areStatesEqual,m=void 0===p?$:p,g=s.areOwnPropsEqual,v=void 0===g?T:g,y=s.areStatePropsEqual,b=void 0===y?T:y,w=s.areMergedPropsEqual,x=void 0===w?T:w,_=(0,h.A)(s,U),E=q(e,a,"mapStateToProps"),S=q(t,l,"mapDispatchToProps"),C=q(n,u,"mergeProps");return r(f,(0,o.A)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:E,initMapDispatchToProps:S,initMergeProps:C,pure:d,areStatesEqual:m,areOwnPropsEqual:v,areStatePropsEqual:b,areMergedPropsEqual:x},_))}}const V=H();var W,K=n(48681);function G(e,t){var n=(0,r.useState)((function(){return{inputs:t,result:e()}}))[0],i=(0,r.useRef)(!0),o=(0,r.useRef)(n),a=i.current||Boolean(t&&o.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,o.current.inputs))?o.current:{inputs:t,result:e()};return(0,r.useEffect)((function(){i.current=!1,o.current=a}),[a]),a.result}W=K.unstable_batchedUpdates,l=W;var Y=G,Q=function(e,t){return G((function(){return e}),t)},Z=n(68643),J=function(e){var t=e.top,n=e.right,r=e.bottom,i=e.left;return{top:t,right:n,bottom:r,left:i,width:n-i,height:r-t,x:i,y:t,center:{x:(n+i)/2,y:(r+t)/2}}},X=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},ee=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},te={top:0,right:0,bottom:0,left:0},ne=function(e){var t=e.borderBox,n=e.margin,r=void 0===n?te:n,i=e.border,o=void 0===i?te:i,a=e.padding,s=void 0===a?te:a,l=J(X(t,r)),c=J(ee(t,o)),u=J(ee(c,s));return{marginBox:l,borderBox:J(t),paddingBox:c,contentBox:u,margin:r,border:o,padding:s}},re=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(t);return isNaN(n)&&(0,Z.A)(!1),n},ie=function(e,t){var n,r,i=e.borderBox,o=e.border,a=e.margin,s=e.padding,l=(r=t,{top:(n=i).top+r.y,left:n.left+r.x,bottom:n.bottom+r.y,right:n.right+r.x});return ne({borderBox:l,border:o,margin:a,padding:s})},oe=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),ie(e,t)},ae=function(e,t){var n={top:re(t.marginTop),right:re(t.marginRight),bottom:re(t.marginBottom),left:re(t.marginLeft)},r={top:re(t.paddingTop),right:re(t.paddingRight),bottom:re(t.paddingBottom),left:re(t.paddingLeft)},i={top:re(t.borderTopWidth),right:re(t.borderRightWidth),bottom:re(t.borderBottomWidth),left:re(t.borderLeftWidth)};return ne({borderBox:e,margin:n,padding:r,border:i})},se=function(e){var t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return ae(t,n)},le=n(77995);const ce=function(e){var t=[],n=null,r=function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];t=i,n||(n=requestAnimationFrame((function(){n=null,e.apply(void 0,t)})))};return r.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},r};function ue(e,t){}ue.bind(null,"warn"),ue.bind(null,"error");function de(){}function fe(e,t,n){var r=t.map((function(t){var r=function(e,t){return(0,o.A)({},e,{},t)}(n,t.options);return e.addEventListener(t.eventName,t.fn,r),function(){e.removeEventListener(t.eventName,t.fn,r)}}));return function(){r.forEach((function(e){e()}))}}var pe=!0,he="Invariant failed";function me(e){this.message=e}function ge(e,t){if(!e)throw new me(pe?he:he+": "+(t||""))}me.prototype.toString=function(){return this.message};var ve=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).callbacks=null,t.unbind=de,t.onWindowError=function(e){var n=t.getCallbacks();n.isDragging()&&n.tryAbort(),e.error instanceof me&&e.preventDefault()},t.getCallbacks=function(){if(!t.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return t.callbacks},t.setCallbacks=function(e){t.callbacks=e},t}(0,i.A)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.unbind=fe(window,[{eventName:"error",fn:this.onWindowError}])},n.componentDidCatch=function(e){if(!(e instanceof me))throw e;this.setState({})},n.componentWillUnmount=function(){this.unbind()},n.render=function(){return this.props.children(this.setCallbacks)},t}(r.Component),ye=function(e){return e+1},be=function(e,t){var n=e.droppableId===t.droppableId,r=ye(e.index),i=ye(t.index);return n?"\n You have moved the item from position "+r+"\n to position "+i+"\n ":"\n You have moved the item from position "+r+"\n in list "+e.droppableId+"\n to list "+t.droppableId+"\n in position "+i+"\n "},we=function(e,t,n){return t.droppableId===n.droppableId?"\n The item "+e+"\n has been combined with "+n.draggableId:"\n The item "+e+"\n in list "+t.droppableId+"\n has been combined with "+n.draggableId+"\n in list "+n.droppableId+"\n "},xe=function(e){return"\n The item has returned to its starting position\n of "+ye(e.index)+"\n"},_e={dragHandleUsageInstructions:"\n Press space bar to start a drag.\n When dragging you can use the arrow keys to move the item around and escape to cancel.\n Some screen readers may require you to be in focus mode or to use your pass through key\n",onDragStart:function(e){return"\n You have lifted an item in position "+ye(e.source.index)+"\n"},onDragUpdate:function(e){var t=e.destination;if(t)return be(e.source,t);var n=e.combine;return n?we(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},onDragEnd:function(e){if("CANCEL"===e.reason)return"\n Movement cancelled.\n "+xe(e.source)+"\n ";var t=e.destination,n=e.combine;return t?"\n You have dropped the item.\n "+be(e.source,t)+"\n ":n?"\n You have dropped the item.\n "+we(e.draggableId,e.source,n)+"\n ":"\n The item has been dropped while not over a drop area.\n "+xe(e.source)+"\n "}},Ee={x:0,y:0},Se=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},Ce=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},ke=function(e,t){return e.x===t.x&&e.y===t.y},Oe=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},Ne=function(e,t,n){var r;return void 0===n&&(n=0),(r={})[e]=t,r["x"===e?"y":"x"]=n,r},Te=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},Ae=function(e,t){return Math.min.apply(Math,t.map((function(t){return Te(e,t)})))},Ie=function(e){return function(t){return{x:e(t.x),y:e(t.y)}}},Pe=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},Re=function(e){return[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}]},De=function(e,t){return t&&t.shouldClipSubject?function(e,t){var n=J({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n}(t.pageMarginBox,e):J(e)},je=function(e){var t=e.page,n=e.withPlaceholder,r=e.axis,i=e.frame,a=function(e,t){return t?Pe(e,t.scroll.diff.displacement):e}(t.marginBox,i),s=function(e,t,n){var r;return n&&n.increasedBy?(0,o.A)({},e,((r={})[t.end]=e[t.end]+n.increasedBy[t.line],r)):e}(a,r,n);return{page:t,withPlaceholder:n,active:De(s,i)}},Me=function(e,t){e.frame||ge(!1);var n=e.frame,r=Ce(t,n.scroll.initial),i=Oe(r),a=(0,o.A)({},n,{scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:i},max:n.scroll.max}}),s=je({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:a});return(0,o.A)({},e,{frame:a,subject:s})};function Le(e){return Object.values?Object.values(e):Object.keys(e).map((function(t){return e[t]}))}function ze(e,t){if(e.findIndex)return e.findIndex(t);for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}function Fe(e,t){if(e.find)return e.find(t);var n=ze(e,t);return-1!==n?e[n]:void 0}function Be(e){return Array.prototype.slice.call(e)}var Ue=(0,le.A)((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),qe=(0,le.A)((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),$e=(0,le.A)((function(e){return Le(e)})),He=(0,le.A)((function(e){return Le(e)})),Ve=(0,le.A)((function(e,t){var n=He(t).filter((function(t){return e===t.descriptor.droppableId})).sort((function(e,t){return e.descriptor.index-t.descriptor.index}));return n}));function We(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function Ke(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var Ge=(0,le.A)((function(e,t){return t.filter((function(t){return t.descriptor.id!==e.descriptor.id}))})),Ye=function(e,t){return e.descriptor.droppableId===t.descriptor.id},Qe={point:Ee,value:0},Ze={invisible:{},visible:{},all:[]},Je={displaced:Ze,displacedBy:Qe,at:null},Xe=function(e,t){return function(n){return e<=n&&n<=t}},et=function(e){var t=Xe(e.top,e.bottom),n=Xe(e.left,e.right);return function(r){if(t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right))return!0;var i=t(r.top)||t(r.bottom),o=n(r.left)||n(r.right);if(i&&o)return!0;var a=r.top<e.top&&r.bottom>e.bottom,s=r.left<e.left&&r.right>e.right;return!(!a||!s)||(a&&o||s&&i)}},tt=function(e){var t=Xe(e.top,e.bottom),n=Xe(e.left,e.right);return function(e){return t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)}},nt={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},rt={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},it=function(e){var t=e.target,n=e.destination,r=e.viewport,i=e.withDroppableDisplacement,o=e.isVisibleThroughFrameFn,a=i?function(e,t){var n=t.frame?t.frame.scroll.diff.displacement:Ee;return Pe(e,n)}(t,n):t;return function(e,t,n){return!!t.subject.active&&n(t.subject.active)(e)}(a,n,o)&&function(e,t,n){return n(t)(e)}(a,r,o)},ot=function(e){return it((0,o.A)({},e,{isVisibleThroughFrameFn:et}))},at=function(e){return it((0,o.A)({},e,{isVisibleThroughFrameFn:tt}))};function st(e){var t=e.afterDragging,n=e.destination,r=e.displacedBy,i=e.viewport,o=e.forceShouldAnimate,a=e.last;return t.reduce((function(e,t){var s=function(e,t){var n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return J(X(n,r))}(t,r),l=t.descriptor.id;if(e.all.push(l),!ot({target:s,destination:n,viewport:i,withDroppableDisplacement:!0}))return e.invisible[t.descriptor.id]=!0,e;var c=function(e,t,n){if("boolean"===typeof n)return n;if(!t)return!0;var r=t.invisible,i=t.visible;if(r[e])return!1;var o=i[e];return!o||o.shouldAnimate}(l,a,o),u={draggableId:l,shouldAnimate:c};return e.visible[l]=u,e}),{all:[],visible:{},invisible:{}})}function lt(e){var t=e.insideDestination,n=e.inHomeList,r=e.displacedBy,i=e.destination,o=function(e,t){if(!e.length)return 0;var n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}(t,{inHomeList:n});return{displaced:Ze,displacedBy:r,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:o}}}}function ct(e){var t=e.draggable,n=e.insideDestination,r=e.destination,i=e.viewport,o=e.displacedBy,a=e.last,s=e.index,l=e.forceShouldAnimate,c=Ye(t,r);if(null==s)return lt({insideDestination:n,inHomeList:c,displacedBy:o,destination:r});var u=Fe(n,(function(e){return e.descriptor.index===s}));if(!u)return lt({insideDestination:n,inHomeList:c,displacedBy:o,destination:r});var d=Ge(t,n),f=n.indexOf(u);return{displaced:st({afterDragging:d.slice(f),destination:r,displacedBy:o,last:a,viewport:i.frame,forceShouldAnimate:l}),displacedBy:o,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:s}}}}function ut(e,t){return Boolean(t.effected[e])}var dt=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.draggable,i=e.draggables,o=e.destination,a=e.insideDestination,s=e.previousImpact,l=e.viewport,c=e.afterCritical,u=s.at;if(u||ge(!1),"REORDER"===u.type){var d=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.insideDestination,i=e.location;if(!r.length)return null;var o=i.index,a=t?o+1:o-1,s=r[0].descriptor.index,l=r[r.length-1].descriptor.index;return a<s||a>(n?l:l+1)?null:a}({isMovingForward:t,isInHomeList:n,location:u.destination,insideDestination:a});return null==d?null:ct({draggable:r,insideDestination:a,destination:o,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:d})}var f=function(e){var t=e.isMovingForward,n=e.destination,r=e.draggables,i=e.combine,o=e.afterCritical;if(!n.isCombineEnabled)return null;var a=i.draggableId,s=r[a].descriptor.index;return ut(a,o)?t?s:s-1:t?s+1:s}({isMovingForward:t,destination:o,displaced:s.displaced,draggables:i,combine:u.combine,afterCritical:c});return null==f?null:ct({draggable:r,insideDestination:a,destination:o,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:f})},ft=function(e){var t=e.afterCritical,n=e.impact,r=e.draggables,i=Ke(n);i||ge(!1);var o=i.draggableId,a=r[o].page.borderBox.center,s=function(e){var t=e.displaced,n=e.afterCritical,r=e.combineWith,i=e.displacedBy,o=Boolean(t.visible[r]||t.invisible[r]);return ut(r,n)?o?Ee:Oe(i.point):o?i.point:Ee}({displaced:n.displaced,afterCritical:t,combineWith:o,displacedBy:n.displacedBy});return Se(a,s)},pt=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},ht=function(e,t,n){return t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2},mt=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return Ne(t.line,n.marginBox[t.end]+pt(t,r),ht(t,n.marginBox,r))},gt=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return Ne(t.line,n.marginBox[t.start]-function(e,t){return t.margin[e.end]+t.borderBox[e.size]/2}(t,r),ht(t,n.marginBox,r))},vt=function(e){var t=e.impact,n=e.draggable,r=e.draggables,i=e.droppable,o=e.afterCritical,a=Ve(i.descriptor.id,r),s=n.page,l=i.axis;if(!a.length)return function(e){var t=e.axis,n=e.moveInto,r=e.isMoving;return Ne(t.line,n.contentBox[t.start]+pt(t,r),ht(t,n.contentBox,r))}({axis:l,moveInto:i.page,isMoving:s});var c=t.displaced,u=t.displacedBy,d=c.all[0];if(d){var f=r[d];if(ut(d,o))return gt({axis:l,moveRelativeTo:f.page,isMoving:s});var p=ie(f.page,u.point);return gt({axis:l,moveRelativeTo:p,isMoving:s})}var h=a[a.length-1];if(h.descriptor.id===n.descriptor.id)return s.borderBox.center;if(ut(h.descriptor.id,o)){var m=ie(h.page,Oe(o.displacedBy.point));return mt({axis:l,moveRelativeTo:m,isMoving:s})}return mt({axis:l,moveRelativeTo:h.page,isMoving:s})},yt=function(e,t){var n=e.frame;return n?Se(t,n.scroll.diff.displacement):t},bt=function(e){var t=function(e){var t=e.impact,n=e.draggable,r=e.droppable,i=e.draggables,o=e.afterCritical,a=n.page.borderBox.center,s=t.at;return r&&s?"REORDER"===s.type?vt({impact:t,draggable:n,draggables:i,droppable:r,afterCritical:o}):ft({impact:t,draggables:i,afterCritical:o}):a}(e),n=e.droppable;return n?yt(n,t):t},wt=function(e,t){var n=Ce(t,e.scroll.initial),r=Oe(n);return{frame:J({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}}};function xt(e,t){return e.map((function(e){return t[e]}))}var _t=function(e){var t=e.pageBorderBoxCenter,n=e.draggable,r=function(e,t){return Se(e.scroll.diff.displacement,t)}(e.viewport,t),i=Ce(r,n.page.borderBox.center);return Se(n.client.borderBox.center,i)},Et=function(e){var t=e.draggable,n=e.destination,r=e.newPageBorderBoxCenter,i=e.viewport,a=e.withDroppableDisplacement,s=e.onlyOnMainAxis,l=void 0!==s&&s,c=Ce(r,t.page.borderBox.center),u={target:Pe(t.page.borderBox,c),destination:n,withDroppableDisplacement:a,viewport:i};return l?function(e){return it((0,o.A)({},e,{isVisibleThroughFrameFn:(t=e.destination.axis,function(e){var n=Xe(e.top,e.bottom),r=Xe(e.left,e.right);return function(e){return t===nt?n(e.top)&&n(e.bottom):r(e.left)&&r(e.right)}})}));var t}(u):at(u)},St=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,i=e.draggables,a=e.previousImpact,s=e.viewport,l=e.previousPageBorderBoxCenter,c=e.previousClientSelection,u=e.afterCritical;if(!r.isEnabled)return null;var d=Ve(r.descriptor.id,i),f=Ye(n,r),p=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,i=e.insideDestination,a=e.previousImpact;if(!r.isCombineEnabled)return null;if(!We(a))return null;function s(e){var t={type:"COMBINE",combine:{draggableId:e,droppableId:r.descriptor.id}};return(0,o.A)({},a,{at:t})}var l=a.displaced.all,c=l.length?l[0]:null;if(t)return c?s(c):null;var u=Ge(n,i);if(!c)return u.length?s(u[u.length-1].descriptor.id):null;var d=ze(u,(function(e){return e.descriptor.id===c}));-1===d&&ge(!1);var f=d-1;return f<0?null:s(u[f].descriptor.id)}({isMovingForward:t,draggable:n,destination:r,insideDestination:d,previousImpact:a})||dt({isMovingForward:t,isInHomeList:f,draggable:n,draggables:i,destination:r,insideDestination:d,previousImpact:a,viewport:s,afterCritical:u});if(!p)return null;var h=bt({impact:p,draggable:n,droppable:r,draggables:i,afterCritical:u});if(Et({draggable:n,destination:r,newPageBorderBoxCenter:h,viewport:s.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:_t({pageBorderBoxCenter:h,draggable:n,viewport:s}),impact:p,scrollJumpRequest:null};var m=Ce(h,l),g=function(e){var t=e.impact,n=e.viewport,r=e.destination,i=e.draggables,a=e.maxScrollChange,s=wt(n,Se(n.scroll.current,a)),l=r.frame?Me(r,Se(r.frame.scroll.current,a)):r,c=t.displaced,u=st({afterDragging:xt(c.all,i),destination:r,displacedBy:t.displacedBy,viewport:s.frame,last:c,forceShouldAnimate:!1}),d=st({afterDragging:xt(c.all,i),destination:l,displacedBy:t.displacedBy,viewport:n.frame,last:c,forceShouldAnimate:!1}),f={},p={},h=[c,u,d];return c.all.forEach((function(e){var t=function(e,t){for(var n=0;n<t.length;n++){var r=t[n].visible[e];if(r)return r}return null}(e,h);t?p[e]=t:f[e]=!0})),(0,o.A)({},t,{displaced:{all:c.all,invisible:f,visible:p}})}({impact:p,viewport:s,destination:r,draggables:i,maxScrollChange:m});return{clientSelection:c,impact:g,scrollJumpRequest:m}},Ct=function(e){var t=e.subject.active;return t||ge(!1),t},kt=function(e,t){var n=e.page.borderBox.center;return ut(e.descriptor.id,t)?Ce(n,t.displacedBy.point):n},Ot=function(e,t){var n=e.page.borderBox;return ut(e.descriptor.id,t)?Pe(n,Oe(t.displacedBy.point)):n},Nt=(0,le.A)((function(e,t){var n=t[e.line];return{value:n,point:Ne(e.line,n)}})),Tt=function(e,t){return(0,o.A)({},e,{scroll:(0,o.A)({},e.scroll,{max:t})})},At=function(e,t,n){var r=e.frame;Ye(t,e)&&ge(!1),e.subject.withPlaceholder&&ge(!1);var i=Nt(e.axis,t.displaceBy).point,a=function(e,t,n){var r=e.axis;if("virtual"===e.descriptor.mode)return Ne(r.line,t[r.line]);var i=e.subject.page.contentBox[r.size],o=Ve(e.descriptor.id,n).reduce((function(e,t){return e+t.client.marginBox[r.size]}),0)+t[r.line]-i;return o<=0?null:Ne(r.line,o)}(e,i,n),s={placeholderSize:i,increasedBy:a,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r){var l=je({page:e.subject.page,withPlaceholder:s,axis:e.axis,frame:e.frame});return(0,o.A)({},e,{subject:l})}var c=a?Se(r.scroll.max,a):r.scroll.max,u=Tt(r,c),d=je({page:e.subject.page,withPlaceholder:s,axis:e.axis,frame:u});return(0,o.A)({},e,{subject:d,frame:u})},It=function(e){var t=e.isMovingForward,n=e.previousPageBorderBoxCenter,r=e.draggable,i=e.isOver,o=e.draggables,a=e.droppables,s=e.viewport,l=e.afterCritical,c=function(e){var t=e.isMovingForward,n=e.pageBorderBoxCenter,r=e.source,i=e.droppables,o=e.viewport,a=r.subject.active;if(!a)return null;var s=r.axis,l=Xe(a[s.start],a[s.end]),c=$e(i).filter((function(e){return e!==r})).filter((function(e){return e.isEnabled})).filter((function(e){return Boolean(e.subject.active)})).filter((function(e){return et(o.frame)(Ct(e))})).filter((function(e){var n=Ct(e);return t?a[s.crossAxisEnd]<n[s.crossAxisEnd]:n[s.crossAxisStart]<a[s.crossAxisStart]})).filter((function(e){var t=Ct(e),n=Xe(t[s.start],t[s.end]);return l(t[s.start])||l(t[s.end])||n(a[s.start])||n(a[s.end])})).sort((function(e,n){var r=Ct(e)[s.crossAxisStart],i=Ct(n)[s.crossAxisStart];return t?r-i:i-r})).filter((function(e,t,n){return Ct(e)[s.crossAxisStart]===Ct(n[0])[s.crossAxisStart]}));if(!c.length)return null;if(1===c.length)return c[0];var u=c.filter((function(e){return Xe(Ct(e)[s.start],Ct(e)[s.end])(n[s.line])}));return 1===u.length?u[0]:u.length>1?u.sort((function(e,t){return Ct(e)[s.start]-Ct(t)[s.start]}))[0]:c.sort((function(e,t){var r=Ae(n,Re(Ct(e))),i=Ae(n,Re(Ct(t)));return r!==i?r-i:Ct(e)[s.start]-Ct(t)[s.start]}))[0]}({isMovingForward:t,pageBorderBoxCenter:n,source:i,droppables:a,viewport:s});if(!c)return null;var u=Ve(c.descriptor.id,o),d=function(e){var t=e.pageBorderBoxCenter,n=e.viewport,r=e.destination,i=e.insideDestination,o=e.afterCritical,a=i.filter((function(e){return at({target:Ot(e,o),destination:r,viewport:n.frame,withDroppableDisplacement:!0})})).sort((function(e,n){var i=Te(t,yt(r,kt(e,o))),a=Te(t,yt(r,kt(n,o)));return i<a?-1:a<i?1:e.descriptor.index-n.descriptor.index}));return a[0]||null}({pageBorderBoxCenter:n,viewport:s,destination:c,insideDestination:u,afterCritical:l}),f=function(e){var t=e.previousPageBorderBoxCenter,n=e.moveRelativeTo,r=e.insideDestination,i=e.draggable,o=e.draggables,a=e.destination,s=e.viewport,l=e.afterCritical;if(!n){if(r.length)return null;var c={displaced:Ze,displacedBy:Qe,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},u=bt({impact:c,draggable:i,droppable:a,draggables:o,afterCritical:l}),d=Ye(i,a)?a:At(a,i,o);return Et({draggable:i,destination:d,newPageBorderBoxCenter:u,viewport:s.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?c:null}var f=Boolean(t[a.axis.line]<=n.page.borderBox.center[a.axis.line]),p=function(){var e=n.descriptor.index;return n.descriptor.id===i.descriptor.id||f?e:e+1}(),h=Nt(a.axis,i.displaceBy);return ct({draggable:i,insideDestination:r,destination:a,viewport:s,displacedBy:h,last:Ze,index:p})}({previousPageBorderBoxCenter:n,destination:c,draggable:r,draggables:o,moveRelativeTo:d,insideDestination:u,viewport:s,afterCritical:l});if(!f)return null;var p=bt({impact:f,draggable:r,droppable:c,draggables:o,afterCritical:l});return{clientSelection:_t({pageBorderBoxCenter:p,draggable:r,viewport:s}),impact:f,scrollJumpRequest:null}},Pt=function(e){var t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null},Rt=function(e){var t=e.state,n=e.type,r=function(e,t){var n=Pt(e);return n?t[n]:null}(t.impact,t.dimensions.droppables),i=Boolean(r),o=t.dimensions.droppables[t.critical.droppable.id],a=r||o,s=a.axis.direction,l="vertical"===s&&("MOVE_UP"===n||"MOVE_DOWN"===n)||"horizontal"===s&&("MOVE_LEFT"===n||"MOVE_RIGHT"===n);if(l&&!i)return null;var c="MOVE_DOWN"===n||"MOVE_RIGHT"===n,u=t.dimensions.draggables[t.critical.draggable.id],d=t.current.page.borderBoxCenter,f=t.dimensions,p=f.draggables,h=f.droppables;return l?St({isMovingForward:c,previousPageBorderBoxCenter:d,draggable:u,destination:a,draggables:p,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):It({isMovingForward:c,previousPageBorderBoxCenter:d,draggable:u,isOver:a,draggables:p,droppables:h,viewport:t.viewport,afterCritical:t.afterCritical})};function Dt(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function jt(e){var t=Xe(e.top,e.bottom),n=Xe(e.left,e.right);return function(e){return t(e.y)&&n(e.x)}}function Mt(e){var t=e.pageBorderBox,n=e.draggable,r=e.droppables,i=$e(r).filter((function(e){if(!e.isEnabled)return!1;var n,r,i=e.subject.active;if(!i)return!1;if(r=i,!((n=t).left<r.right&&n.right>r.left&&n.top<r.bottom&&n.bottom>r.top))return!1;if(jt(i)(t.center))return!0;var o=e.axis,a=i.center[o.crossAxisLine],s=t[o.crossAxisStart],l=t[o.crossAxisEnd],c=Xe(i[o.crossAxisStart],i[o.crossAxisEnd]),u=c(s),d=c(l);return!u&&!d||(u?s<a:l>a)}));return i.length?1===i.length?i[0].descriptor.id:function(e){var t=e.pageBorderBox,n=e.draggable,r=e.candidates,i=n.page.borderBox.center,o=r.map((function(e){var n=e.axis,r=Ne(e.axis.line,t.center[n.line],e.page.borderBox.center[n.crossAxisLine]);return{id:e.descriptor.id,distance:Te(i,r)}})).sort((function(e,t){return t.distance-e.distance}));return o[0]?o[0].id:null}({pageBorderBox:t,draggable:n,candidates:i}):null}var Lt=function(e,t){return J(Pe(e,t))};function zt(e){var t=e.displaced,n=e.id;return Boolean(t.visible[n]||t.invisible[n])}var Ft=function(e){var t=e.pageOffset,n=e.draggable,r=e.draggables,i=e.droppables,o=e.previousImpact,a=e.viewport,s=e.afterCritical,l=Lt(n.page.borderBox,t),c=Mt({pageBorderBox:l,draggable:n,droppables:i});if(!c)return Je;var u=i[c],d=Ve(u.descriptor.id,r),f=function(e,t){var n=e.frame;return n?Lt(t,n.scroll.diff.value):t}(u,l);return function(e){var t=e.draggable,n=e.pageBorderBoxWithDroppableScroll,r=e.previousImpact,i=e.destination,o=e.insideDestination,a=e.afterCritical;if(!i.isCombineEnabled)return null;var s=i.axis,l=Nt(i.axis,t.displaceBy),c=l.value,u=n[s.start],d=n[s.end],f=Fe(Ge(t,o),(function(e){var t=e.descriptor.id,n=e.page.borderBox,i=n[s.size]/4,o=ut(t,a),l=zt({displaced:r.displaced,id:t});return o?l?d>n[s.start]+i&&d<n[s.end]-i:u>n[s.start]-c+i&&u<n[s.end]-c-i:l?d>n[s.start]+c+i&&d<n[s.end]+c-i:u>n[s.start]+i&&u<n[s.end]-i}));return f?{displacedBy:l,displaced:r.displaced,at:{type:"COMBINE",combine:{draggableId:f.descriptor.id,droppableId:i.descriptor.id}}}:null}({pageBorderBoxWithDroppableScroll:f,draggable:n,previousImpact:o,destination:u,insideDestination:d,afterCritical:s})||function(e){var t=e.pageBorderBoxWithDroppableScroll,n=e.draggable,r=e.destination,i=e.insideDestination,o=e.last,a=e.viewport,s=e.afterCritical,l=r.axis,c=Nt(r.axis,n.displaceBy),u=c.value,d=t[l.start],f=t[l.end],p=function(e){var t=e.draggable,n=e.closest,r=e.inHomeList;return n?r&&n.descriptor.index>t.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}({draggable:n,closest:Fe(Ge(n,i),(function(e){var t=e.descriptor.id,n=e.page.borderBox.center[l.line],r=ut(t,s),i=zt({displaced:o,id:t});return r?i?f<=n:d<n-u:i?f<=n+u:d<n})),inHomeList:Ye(n,r)});return ct({draggable:n,insideDestination:i,destination:r,viewport:a,last:o,displacedBy:c,index:p})}({pageBorderBoxWithDroppableScroll:f,draggable:n,destination:u,insideDestination:d,last:o.displaced,viewport:a,afterCritical:s})},Bt=function(e,t){var n;return(0,o.A)({},e,((n={})[t.descriptor.id]=t,n))},Ut=function(e){var t=e.previousImpact,n=e.impact,r=e.droppables,i=Pt(t),a=Pt(n);if(!i)return r;if(i===a)return r;var s=r[i];if(!s.subject.withPlaceholder)return r;var l=function(e){var t=e.subject.withPlaceholder;t||ge(!1);var n=e.frame;if(!n){var r=je({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return(0,o.A)({},e,{subject:r})}var i=t.oldFrameMaxScroll;i||ge(!1);var a=Tt(n,i),s=je({page:e.subject.page,axis:e.axis,frame:a,withPlaceholder:null});return(0,o.A)({},e,{subject:s,frame:a})}(s);return Bt(r,l)},qt=function(e){var t=e.state,n=e.clientSelection,r=e.dimensions,i=e.viewport,a=e.impact,s=e.scrollJumpRequest,l=i||t.viewport,c=r||t.dimensions,u=n||t.current.client.selection,d=Ce(u,t.initial.client.selection),f={offset:d,selection:u,borderBoxCenter:Se(t.initial.client.borderBoxCenter,d)},p={selection:Se(f.selection,l.scroll.current),borderBoxCenter:Se(f.borderBoxCenter,l.scroll.current),offset:Se(f.offset,l.scroll.diff.value)},h={client:f,page:p};if("COLLECTING"===t.phase)return(0,o.A)({phase:"COLLECTING"},t,{dimensions:c,viewport:l,current:h});var m=c.draggables[t.critical.draggable.id],g=a||Ft({pageOffset:p.offset,draggable:m,draggables:c.draggables,droppables:c.droppables,previousImpact:t.impact,viewport:l,afterCritical:t.afterCritical}),v=function(e){var t=e.draggable,n=e.draggables,r=e.droppables,i=e.previousImpact,o=e.impact,a=Ut({previousImpact:i,impact:o,droppables:r}),s=Pt(o);if(!s)return a;var l=r[s];if(Ye(t,l))return a;if(l.subject.withPlaceholder)return a;var c=At(l,t,n);return Bt(a,c)}({draggable:m,impact:g,previousImpact:t.impact,draggables:c.draggables,droppables:c.droppables});return(0,o.A)({},t,{current:h,dimensions:{draggables:c.draggables,droppables:v},impact:g,viewport:l,scrollJumpRequest:s||null,forceShouldAnimate:!s&&null})};var $t=function(e){var t=e.impact,n=e.viewport,r=e.draggables,i=e.destination,a=e.forceShouldAnimate,s=t.displaced,l=function(e,t){return e.map((function(e){return t[e]}))}(s.all,r),c=st({afterDragging:l,destination:i,displacedBy:t.displacedBy,viewport:n.frame,forceShouldAnimate:a,last:s});return(0,o.A)({},t,{displaced:c})},Ht=function(e){var t=e.impact,n=e.draggable,r=e.droppable,i=e.draggables,o=e.viewport,a=e.afterCritical,s=bt({impact:t,draggable:n,draggables:i,droppable:r,afterCritical:a});return _t({pageBorderBoxCenter:s,draggable:n,viewport:o})},Vt=function(e){var t=e.state,n=e.dimensions,r=e.viewport;"SNAP"!==t.movementMode&&ge(!1);var i=t.impact,o=r||t.viewport,a=n||t.dimensions,s=a.draggables,l=a.droppables,c=s[t.critical.draggable.id],u=Pt(i);u||ge(!1);var d=l[u],f=$t({impact:i,viewport:o,destination:d,draggables:s}),p=Ht({impact:f,draggable:c,droppable:d,draggables:s,viewport:o,afterCritical:t.afterCritical});return qt({impact:f,clientSelection:p,state:t,dimensions:a,viewport:o})},Wt=function(e){var t=e.draggable,n=e.home,r=e.draggables,i=e.viewport,o=Nt(n.axis,t.displaceBy),a=Ve(n.descriptor.id,r),s=a.indexOf(t);-1===s&&ge(!1);var l,c=a.slice(s+1),u=c.reduce((function(e,t){return e[t.descriptor.id]=!0,e}),{}),d={inVirtualList:"virtual"===n.descriptor.mode,displacedBy:o,effected:u};return{impact:{displaced:st({afterDragging:c,destination:n,displacedBy:o,last:null,viewport:i.frame,forceShouldAnimate:!1}),displacedBy:o,at:{type:"REORDER",destination:(l=t.descriptor,{index:l.index,droppableId:l.droppableId})}},afterCritical:d}},Kt=function(e){0},Gt=function(e){0},Yt=function(e){var t=e.additions,n=e.updatedDroppables,r=e.viewport,i=r.scroll.diff.value;return t.map((function(e){var t=e.descriptor.droppableId,a=function(e){var t=e.frame;return t||ge(!1),t}(n[t]),s=a.scroll.diff.value,l=function(e){var t=e.draggable,n=e.offset,r=e.initialWindowScroll,i=ie(t.client,n),a=oe(i,r);return(0,o.A)({},t,{placeholder:(0,o.A)({},t.placeholder,{client:i}),client:i,page:a})}({draggable:e,offset:Se(i,s),initialWindowScroll:r.scroll.initial});return l}))},Qt=function(e){return"SNAP"===e.movementMode},Zt=function(e,t,n){var r=function(e,t){return{draggables:e.draggables,droppables:Bt(e.droppables,t)}}(e.dimensions,t);return!Qt(e)||n?qt({state:e,dimensions:r}):Vt({state:e,dimensions:r})};function Jt(e){return e.isDragging&&"SNAP"===e.movementMode?(0,o.A)({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var Xt={phase:"IDLE",completed:null,shouldFlush:!1},en=function(e,t){if(void 0===e&&(e=Xt),"FLUSH"===t.type)return(0,o.A)({},Xt,{shouldFlush:!0});if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&ge(!1);var n=t.payload,r=n.critical,i=n.clientSelection,a=n.viewport,s=n.dimensions,l=n.movementMode,c=s.draggables[r.draggable.id],u=s.droppables[r.droppable.id],d={selection:i,borderBoxCenter:c.client.borderBox.center,offset:Ee},f={client:d,page:{selection:Se(d.selection,a.scroll.initial),borderBoxCenter:Se(d.selection,a.scroll.initial),offset:Se(d.selection,a.scroll.diff.value)}},p=$e(s.droppables).every((function(e){return!e.isFixedOnPage})),h=Wt({draggable:c,home:u,draggables:s.draggables,viewport:a}),m=h.impact;return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:l,dimensions:s,initial:f,current:f,isWindowScrollAllowed:p,impact:m,afterCritical:h.afterCritical,onLiftImpact:m,viewport:a,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&ge(!1),(0,o.A)({phase:"COLLECTING"},e,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&ge(!1),function(e){var t=e.state,n=e.published;Kt();var r=n.modified.map((function(e){var n=t.dimensions.droppables[e.droppableId];return Me(n,e.scroll)})),i=(0,o.A)({},t.dimensions.droppables,{},Ue(r)),a=qe(Yt({additions:n.additions,updatedDroppables:i,viewport:t.viewport})),s=(0,o.A)({},t.dimensions.draggables,{},a);n.removals.forEach((function(e){delete s[e]}));var l={droppables:i,draggables:s},c=Pt(t.impact),u=c?l.droppables[c]:null,d=l.draggables[t.critical.draggable.id],f=l.droppables[t.critical.droppable.id],p=Wt({draggable:d,home:f,draggables:s,viewport:t.viewport}),h=p.impact,m=p.afterCritical,g=u&&u.isCombineEnabled?t.impact:h,v=Ft({pageOffset:t.current.page.offset,draggable:l.draggables[t.critical.draggable.id],draggables:l.draggables,droppables:l.droppables,previousImpact:g,viewport:t.viewport,afterCritical:m});Gt();var y=(0,o.A)({phase:"DRAGGING"},t,{phase:"DRAGGING",impact:v,onLiftImpact:h,dimensions:l,afterCritical:m,forceShouldAnimate:!1});return"COLLECTING"===t.phase?y:(0,o.A)({phase:"DROP_PENDING"},y,{phase:"DROP_PENDING",reason:t.reason,isWaiting:!1})}({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;Dt(e)||ge(!1);var g=t.payload.client;return ke(g,e.current.client.selection)?e:qt({state:e,clientSelection:g,impact:Qt(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return Jt(e);if("COLLECTING"===e.phase)return Jt(e);Dt(e)||ge(!1);var v=t.payload,y=v.id,b=v.newScroll,w=e.dimensions.droppables[y];if(!w)return e;var x=Me(w,b);return Zt(e,x,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;Dt(e)||ge(!1);var _=t.payload,E=_.id,S=_.isEnabled,C=e.dimensions.droppables[E];C||ge(!1),C.isEnabled===S&&ge(!1);var k=(0,o.A)({},C,{isEnabled:S});return Zt(e,k,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;Dt(e)||ge(!1);var O=t.payload,N=O.id,T=O.isCombineEnabled,A=e.dimensions.droppables[N];A||ge(!1),A.isCombineEnabled===T&&ge(!1);var I=(0,o.A)({},A,{isCombineEnabled:T});return Zt(e,I,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;Dt(e)||ge(!1),e.isWindowScrollAllowed||ge(!1);var P=t.payload.newScroll;if(ke(e.viewport.scroll.current,P))return Jt(e);var R=wt(e.viewport,P);return Qt(e)?Vt({state:e,viewport:R}):qt({state:e,viewport:R})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!Dt(e))return e;var D=t.payload.maxScroll;if(ke(D,e.viewport.scroll.max))return e;var j=(0,o.A)({},e.viewport,{scroll:(0,o.A)({},e.viewport.scroll,{max:D})});return(0,o.A)({phase:"DRAGGING"},e,{viewport:j})}if("MOVE_UP"===t.type||"MOVE_DOWN"===t.type||"MOVE_LEFT"===t.type||"MOVE_RIGHT"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&ge(!1);var M=Rt({state:e,type:t.type});return M?qt({state:e,impact:M.impact,clientSelection:M.clientSelection,scrollJumpRequest:M.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){var L=t.payload.reason;return"COLLECTING"!==e.phase&&ge(!1),(0,o.A)({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:L})}if("DROP_ANIMATE"===t.type){var z=t.payload,F=z.completed,B=z.dropDuration,U=z.newHomeClientOffset;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&ge(!1),{phase:"DROP_ANIMATING",completed:F,dropDuration:B,newHomeClientOffset:U,dimensions:e.dimensions}}return"DROP_COMPLETE"===t.type?{phase:"IDLE",completed:t.payload.completed,shouldFlush:!1}:e},tn=function(e){return{type:"LIFT",payload:e}},nn=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},rn=function(){return{type:"COLLECTION_STARTING",payload:null}},on=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},an=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},sn=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},ln=function(e){return{type:"MOVE",payload:e}},cn=function(){return{type:"MOVE_UP",payload:null}},un=function(){return{type:"MOVE_DOWN",payload:null}},dn=function(){return{type:"MOVE_RIGHT",payload:null}},fn=function(){return{type:"MOVE_LEFT",payload:null}},pn=function(){return{type:"FLUSH",payload:null}},hn=function(e){return{type:"DROP_COMPLETE",payload:e}},mn=function(e){return{type:"DROP",payload:e}},gn=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};var vn="cubic-bezier(.2,1,.1,1)",yn={drop:0,combining:.7},bn={drop:.75},wn=.2+"s "+"cubic-bezier(0.2, 0, 0, 1)",xn={fluid:"opacity "+wn,snap:"transform "+wn+", opacity "+wn,drop:function(e){var t=e+"s "+vn;return"transform "+t+", opacity "+t},outOfTheWay:"transform "+wn,placeholder:"height "+wn+", width "+wn+", margin "+wn},_n=function(e){return ke(e,Ee)?null:"translate("+e.x+"px, "+e.y+"px)"},En=_n,Sn=function(e,t){var n=_n(e);return n?t?n+" scale("+bn.drop+")":n:null},Cn=.33,kn=.55,On=kn-Cn,Nn=function(e){var t=e.getState,n=e.dispatch;return function(e){return function(r){if("DROP"===r.type){var i=t(),a=r.payload.reason;if("COLLECTING"!==i.phase){if("IDLE"!==i.phase){"DROP_PENDING"===i.phase&&i.isWaiting&&ge(!1),"DRAGGING"!==i.phase&&"DROP_PENDING"!==i.phase&&ge(!1);var s=i.critical,l=i.dimensions,c=l.draggables[i.critical.draggable.id],u=function(e){var t=e.draggables,n=e.reason,r=e.lastImpact,i=e.home,a=e.viewport,s=e.onLiftImpact;return r.at&&"DROP"===n?"REORDER"===r.at.type?{impact:r,didDropInsideDroppable:!0}:{impact:(0,o.A)({},r,{displaced:Ze}),didDropInsideDroppable:!0}:{impact:$t({draggables:t,impact:s,destination:i,viewport:a,forceShouldAnimate:!0}),didDropInsideDroppable:!1}}({reason:a,lastImpact:i.impact,afterCritical:i.afterCritical,onLiftImpact:i.onLiftImpact,home:i.dimensions.droppables[i.critical.droppable.id],viewport:i.viewport,draggables:i.dimensions.draggables}),d=u.impact,f=u.didDropInsideDroppable,p=f?We(d):null,h=f?Ke(d):null,m={index:s.draggable.index,droppableId:s.droppable.id},g={draggableId:c.descriptor.id,type:c.descriptor.type,source:m,reason:a,mode:i.movementMode,destination:p,combine:h},v=function(e){var t=e.impact,n=e.draggable,r=e.dimensions,i=e.viewport,o=e.afterCritical,a=r.draggables,s=r.droppables,l=Pt(t),c=l?s[l]:null,u=s[n.descriptor.droppableId],d=Ht({impact:t,draggable:n,draggables:a,afterCritical:o,droppable:c||u,viewport:i});return Ce(d,n.client.borderBox.center)}({impact:d,draggable:c,dimensions:l,viewport:i.viewport,afterCritical:i.afterCritical}),y={critical:i.critical,afterCritical:i.afterCritical,result:g,impact:d};if(!ke(i.current.client.offset,v)||Boolean(g.combine)){var b=function(e){var t=e.current,n=e.destination,r=e.reason,i=Te(t,n);if(i<=0)return Cn;if(i>=1500)return kn;var o=Cn+On*(i/1500);return Number(("CANCEL"===r?.6*o:o).toFixed(2))}({current:i.current.client.offset,destination:v,reason:a});n(function(e){return{type:"DROP_ANIMATE",payload:e}}({newHomeClientOffset:v,dropDuration:b,completed:y}))}else n(hn({completed:y}))}}else n(function(e){return{type:"DROP_PENDING",payload:e}}({reason:a}))}else e(r)}}},Tn=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function An(e){var t=e.onWindowScroll;var n=ce((function(){t(Tn())})),r=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(t){t.target!==window&&t.target!==window.document||e()}}}(n),i=de;function o(){return i!==de}return{start:function(){o()&&ge(!1),i=fe(window,[r])},stop:function(){o()||ge(!1),n.cancel(),i(),i=de},isActive:o}}var In=function(e){var t=An({onWindowScroll:function(t){e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return function(e){return function(n){t.isActive()||"INITIAL_PUBLISH"!==n.type||t.start(),t.isActive()&&function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(n)&&t.stop(),e(n)}}},Pn=function(){var e=[];return{add:function(t){var n=setTimeout((function(){return function(t){var n=ze(e,(function(e){return e.timerId===t}));-1===n&&ge(!1),e.splice(n,1)[0].callback()}(n)})),r={timerId:n,callback:t};e.push(r)},flush:function(){if(e.length){var t=[].concat(e);e.length=0,t.forEach((function(e){clearTimeout(e.timerId),e.callback()}))}}}},Rn=function(e,t){Kt(),t(),Gt()},Dn=function(e,t){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t}},jn=function(e,t,n,r){if(e){var i=function(e){var t=!1,n=!1,r=setTimeout((function(){n=!0})),i=function(i){t||n||(t=!0,e(i),clearTimeout(r))};return i.wasCalled=function(){return t},i}(n);e(t,{announce:i}),i.wasCalled()||n(r(t))}else n(r(t))},Mn=function(e,t){var n=function(e,t){var n=Pn(),r=null,i=function(n){r||ge(!1),r=null,Rn(0,(function(){return jn(e().onDragEnd,n,t,_e.onDragEnd)}))};return{beforeCapture:function(t,n){r&&ge(!1),Rn(0,(function(){var r=e().onBeforeCapture;r&&r({draggableId:t,mode:n})}))},beforeStart:function(t,n){r&&ge(!1),Rn(0,(function(){var r=e().onBeforeDragStart;r&&r(Dn(t,n))}))},start:function(i,o){r&&ge(!1);var a=Dn(i,o);r={mode:o,lastCritical:i,lastLocation:a.source,lastCombine:null},n.add((function(){Rn(0,(function(){return jn(e().onDragStart,a,t,_e.onDragStart)}))}))},update:function(i,a){var s=We(a),l=Ke(a);r||ge(!1);var c=!function(e,t){if(e===t)return!0;var n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r}(i,r.lastCritical);c&&(r.lastCritical=i);var u,d,f=(d=s,!(null==(u=r.lastLocation)&&null==d||null!=u&&null!=d&&u.droppableId===d.droppableId&&u.index===d.index));f&&(r.lastLocation=s);var p=!function(e,t){return null==e&&null==t||null!=e&&null!=t&&e.draggableId===t.draggableId&&e.droppableId===t.droppableId}(r.lastCombine,l);if(p&&(r.lastCombine=l),c||f||p){var h=(0,o.A)({},Dn(i,r.mode),{combine:l,destination:s});n.add((function(){Rn(0,(function(){return jn(e().onDragUpdate,h,t,_e.onDragUpdate)}))}))}},flush:function(){r||ge(!1),n.flush()},drop:i,abort:function(){if(r){var e=(0,o.A)({},Dn(r.lastCritical,r.mode),{combine:null,destination:null,reason:"CANCEL"});i(e)}}}}(e,t);return function(e){return function(t){return function(r){if("BEFORE_INITIAL_CAPTURE"!==r.type){if("INITIAL_PUBLISH"===r.type){var i=r.payload.critical;return n.beforeStart(i,r.payload.movementMode),t(r),void n.start(i,r.payload.movementMode)}if("DROP_COMPLETE"===r.type){var o=r.payload.completed.result;return n.flush(),t(r),void n.drop(o)}if(t(r),"FLUSH"!==r.type){var a=e.getState();"DRAGGING"===a.phase&&n.update(a.critical,a.impact)}else n.abort()}else n.beforeCapture(r.payload.draggableId,r.payload.movementMode)}}}},Ln=function(e){return function(t){return function(n){if("DROP_ANIMATION_FINISHED"===n.type){var r=e.getState();"DROP_ANIMATING"!==r.phase&&ge(!1),e.dispatch(hn({completed:r.completed}))}else t(n)}}},zn=function(e){var t=null,n=null;return function(r){return function(i){if("FLUSH"!==i.type&&"DROP_COMPLETE"!==i.type&&"DROP_ANIMATION_FINISHED"!==i.type||(n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)),r(i),"DROP_ANIMATE"===i.type){var o={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};n=requestAnimationFrame((function(){n=null,t=fe(window,[o])}))}}}},Fn=function(e){return function(t){return function(n){if(t(n),"PUBLISH_WHILE_DRAGGING"===n.type){var r=e.getState();"DROP_PENDING"===r.phase&&(r.isWaiting||e.dispatch(mn({reason:r.reason})))}}}},Bn=a.Zz,Un=function(e){var t,n=e.dimensionMarshal,r=e.focusMarshal,i=e.styleMarshal,o=e.getResponders,s=e.announce,l=e.autoScroller;return(0,a.y$)(en,Bn((0,a.Tw)((t=i,function(){return function(e){return function(n){"INITIAL_PUBLISH"===n.type&&t.dragging(),"DROP_ANIMATE"===n.type&&t.dropping(n.payload.completed.result.reason),"FLUSH"!==n.type&&"DROP_COMPLETE"!==n.type||t.resting(),e(n)}}}),function(e){return function(){return function(t){return function(n){"DROP_COMPLETE"!==n.type&&"FLUSH"!==n.type&&"DROP_ANIMATE"!==n.type||e.stopPublishing(),t(n)}}}}(n),function(e){return function(t){var n=t.getState,r=t.dispatch;return function(t){return function(i){if("LIFT"===i.type){var o=i.payload,a=o.id,s=o.clientSelection,l=o.movementMode,c=n();"DROP_ANIMATING"===c.phase&&r(hn({completed:c.completed})),"IDLE"!==n().phase&&ge(!1),r(pn()),r({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:a,movementMode:l}});var u={draggableId:a,scrollOptions:{shouldPublishImmediately:"SNAP"===l}},d=e.startPublishing(u),f=d.critical,p=d.dimensions,h=d.viewport;r({type:"INITIAL_PUBLISH",payload:{critical:f,dimensions:p,clientSelection:s,movementMode:l,viewport:h}})}else t(i)}}}}(n),Nn,Ln,zn,Fn,function(e){return function(t){return function(n){return function(r){if(function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(r))return e.stop(),void n(r);if("INITIAL_PUBLISH"===r.type){n(r);var i=t.getState();return"DRAGGING"!==i.phase&&ge(!1),void e.start(i)}n(r),e.scroll(t.getState())}}}}(l),In,function(e){var t=!1;return function(){return function(n){return function(r){if("INITIAL_PUBLISH"===r.type)return t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),void e.tryRestoreFocusRecorded();if(n(r),t){if("FLUSH"===r.type)return t=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===r.type){t=!1;var i=r.payload.completed.result;i.combine&&e.tryShiftRecord(i.draggableId,i.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}}(r),Mn(o,s))))};var qn=function(e){var t=e.scrollHeight,n=e.scrollWidth,r=e.height,i=e.width,o=Ce({x:n,y:t},{x:i,y:r});return{x:Math.max(0,o.x),y:Math.max(0,o.y)}},$n=function(){var e=document.documentElement;return e||ge(!1),e},Hn=function(){var e=$n();return qn({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},Vn=function(e){var t=e.critical,n=e.scrollOptions,r=e.registry;Kt();var i=function(){var e=Tn(),t=Hn(),n=e.y,r=e.x,i=$n(),o=i.clientWidth,a=i.clientHeight;return{frame:J({top:n,left:r,right:r+o,bottom:n+a}),scroll:{initial:e,current:e,max:t,diff:{value:Ee,displacement:Ee}}}}(),o=i.scroll.current,a=t.droppable,s=r.droppable.getAllByType(a.type).map((function(e){return e.callbacks.getDimensionAndWatchScroll(o,n)})),l=r.draggable.getAllByType(t.draggable.type).map((function(e){return e.getDimension(o)})),c={draggables:qe(l),droppables:Ue(s)};return Gt(),{dimensions:c,critical:t,viewport:i}};function Wn(e,t,n){return n.descriptor.id!==t.id&&(n.descriptor.type===t.type&&"virtual"===e.droppable.getById(n.descriptor.droppableId).descriptor.mode)}var Kn=function(e,t){var n=null,r=function(e){var t=e.registry,n=e.callbacks,r={additions:{},removals:{},modified:{}},i=null,o=function(){i||(n.collectionStarting(),i=requestAnimationFrame((function(){i=null,Kt();var e=r,o=e.additions,a=e.removals,s=e.modified,l=Object.keys(o).map((function(e){return t.draggable.getById(e).getDimension(Ee)})).sort((function(e,t){return e.descriptor.index-t.descriptor.index})),c=Object.keys(s).map((function(e){return{droppableId:e,scroll:t.droppable.getById(e).callbacks.getScrollWhileDragging()}})),u={additions:l,removals:Object.keys(a),modified:c};r={additions:{},removals:{},modified:{}},Gt(),n.publish(u)})))};return{add:function(e){var t=e.descriptor.id;r.additions[t]=e,r.modified[e.descriptor.droppableId]=!0,r.removals[t]&&delete r.removals[t],o()},remove:function(e){var t=e.descriptor;r.removals[t.id]=!0,r.modified[t.droppableId]=!0,r.additions[t.id]&&delete r.additions[t.id],o()},stop:function(){i&&(cancelAnimationFrame(i),i=null,r={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),i=function(t){n||ge(!1);var i=n.critical.draggable;"ADDITION"===t.type&&Wn(e,i,t.value)&&r.add(t.value),"REMOVAL"===t.type&&Wn(e,i,t.value)&&r.remove(t.value)},o={updateDroppableIsEnabled:function(r,i){e.droppable.exists(r)||ge(!1),n&&t.updateDroppableIsEnabled({id:r,isEnabled:i})},updateDroppableIsCombineEnabled:function(r,i){n&&(e.droppable.exists(r)||ge(!1),t.updateDroppableIsCombineEnabled({id:r,isCombineEnabled:i}))},scrollDroppable:function(t,r){n&&e.droppable.getById(t).callbacks.scroll(r)},updateDroppableScroll:function(r,i){n&&(e.droppable.exists(r)||ge(!1),t.updateDroppableScroll({id:r,newScroll:i}))},startPublishing:function(t){n&&ge(!1);var r=e.draggable.getById(t.draggableId),o=e.droppable.getById(r.descriptor.droppableId),a={draggable:r.descriptor,droppable:o.descriptor},s=e.subscribe(i);return n={critical:a,unsubscribe:s},Vn({critical:a,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:function(){if(n){r.stop();var t=n.critical.droppable;e.droppable.getAllByType(t.type).forEach((function(e){return e.callbacks.dragStopped()})),n.unsubscribe(),n=null}}};return o},Gn=function(e,t){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&(e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason)},Yn=function(e){window.scrollBy(e.x,e.y)},Qn=(0,le.A)((function(e){return $e(e).filter((function(e){return!!e.isEnabled&&!!e.frame}))})),Zn=function(e){var t=e.center,n=e.destination,r=e.droppables;if(n){var i=r[n];return i.frame?i:null}var o=function(e,t){var n=Fe(Qn(t),(function(t){return t.frame||ge(!1),jt(t.frame.pageMarginBox)(e)}));return n}(t,r);return o},Jn=.25,Xn=.05,er=28,tr=function(e){return Math.pow(e,2)},nr={stopDampeningAt:1200,accelerateAt:360},rr=function(e){var t=e.startOfRange,n=e.endOfRange,r=e.current,i=n-t;return 0===i?0:(r-t)/i},ir=nr.accelerateAt,or=nr.stopDampeningAt,ar=function(e){var t=e.distanceToEdge,n=e.thresholds,r=e.dragStartTime,i=e.shouldUseTimeDampening,o=function(e,t){if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return er;if(e===t.startScrollingFrom)return 1;var n=rr({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),r=er*tr(1-n);return Math.ceil(r)}(t,n);return 0===o?0:i?Math.max(function(e,t){var n=t,r=or,i=Date.now()-n;if(i>=or)return e;if(i<ir)return 1;var o=rr({startOfRange:ir,endOfRange:r,current:i}),a=e*tr(o);return Math.ceil(a)}(o,r),1):o},sr=function(e){var t=e.container,n=e.distanceToEdges,r=e.dragStartTime,i=e.axis,o=e.shouldUseTimeDampening,a=function(e,t){return{startScrollingFrom:e[t.size]*Jn,maxScrollValueAt:e[t.size]*Xn}}(t,i);return n[i.end]<n[i.start]?ar({distanceToEdge:n[i.end],thresholds:a,dragStartTime:r,shouldUseTimeDampening:o}):-1*ar({distanceToEdge:n[i.start],thresholds:a,dragStartTime:r,shouldUseTimeDampening:o})},lr=Ie((function(e){return 0===e?0:e})),cr=function(e){var t=e.dragStartTime,n=e.container,r=e.subject,i=e.center,o=e.shouldUseTimeDampening,a={top:i.y-n.top,right:n.right-i.x,bottom:n.bottom-i.y,left:i.x-n.left},s=sr({container:n,distanceToEdges:a,dragStartTime:t,axis:nt,shouldUseTimeDampening:o}),l=sr({container:n,distanceToEdges:a,dragStartTime:t,axis:rt,shouldUseTimeDampening:o}),c=lr({x:l,y:s});if(ke(c,Ee))return null;var u=function(e){var t=e.container,n=e.subject,r=e.proposedScroll,i=n.height>t.height,o=n.width>t.width;return o||i?o&&i?null:{x:o?0:r.x,y:i?0:r.y}:r}({container:n,subject:r,proposedScroll:c});return u?ke(u,Ee)?null:u:null},ur=Ie((function(e){return 0===e?0:e>0?1:-1})),dr=function(){var e=function(e,t){return e<0?e:e>t?e-t:0};return function(t){var n=t.current,r=t.max,i=t.change,o=Se(n,i),a={x:e(o.x,r.x),y:e(o.y,r.y)};return ke(a,Ee)?null:a}}(),fr=function(e){var t=e.max,n=e.current,r=e.change,i={x:Math.max(n.x,t.x),y:Math.max(n.y,t.y)},o=ur(r),a=dr({max:i,current:n,change:o});return!a||(0!==o.x&&0===a.x||0!==o.y&&0===a.y)},pr=function(e,t){return fr({current:e.scroll.current,max:e.scroll.max,change:t})},hr=function(e,t){var n=e.frame;return!!n&&fr({current:n.scroll.current,max:n.scroll.max,change:t})},mr=function(e){var t=e.state,n=e.dragStartTime,r=e.shouldUseTimeDampening,i=e.scrollWindow,o=e.scrollDroppable,a=t.current.page.borderBoxCenter,s=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){var l=function(e){var t=e.viewport,n=e.subject,r=e.center,i=e.dragStartTime,o=e.shouldUseTimeDampening,a=cr({dragStartTime:i,container:t.frame,subject:n,center:r,shouldUseTimeDampening:o});return a&&pr(t,a)?a:null}({dragStartTime:n,viewport:t.viewport,subject:s,center:a,shouldUseTimeDampening:r});if(l)return void i(l)}var c=Zn({center:a,destination:Pt(t.impact),droppables:t.dimensions.droppables});if(c){var u=function(e){var t=e.droppable,n=e.subject,r=e.center,i=e.dragStartTime,o=e.shouldUseTimeDampening,a=t.frame;if(!a)return null;var s=cr({dragStartTime:i,container:a.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:o});return s&&hr(t,s)?s:null}({dragStartTime:n,droppable:c,subject:s,center:a,shouldUseTimeDampening:r});u&&o(c.descriptor.id,u)}},gr=function(e){var t=e.move,n=e.scrollDroppable,r=e.scrollWindow,i=function(e,t){if(!hr(e,t))return t;var r=function(e,t){var n=e.frame;return n&&hr(e,t)?dr({current:n.scroll.current,max:n.scroll.max,change:t}):null}(e,t);if(!r)return n(e.descriptor.id,t),null;var i=Ce(t,r);return n(e.descriptor.id,i),Ce(t,i)},o=function(e,t,n){if(!e)return n;if(!pr(t,n))return n;var i=function(e,t){if(!pr(e,t))return null;var n=e.scroll.max,r=e.scroll.current;return dr({current:r,max:n,change:t})}(t,n);if(!i)return r(n),null;var o=Ce(n,i);return r(o),Ce(n,o)};return function(e){var n=e.scrollJumpRequest;if(n){var r=Pt(e.impact);r||ge(!1);var a=i(e.dimensions.droppables[r],n);if(a){var s=e.viewport,l=o(e.isWindowScrollAllowed,s,a);l&&function(e,n){var r=Se(e.current.client.selection,n);t({client:r})}(e,l)}}}},vr=function(e){var t=e.scrollDroppable,n=e.scrollWindow,r=e.move,i=function(e){var t=e.scrollWindow,n=e.scrollDroppable,r=ce(t),i=ce(n),o=null,a=function(e){o||ge(!1);var t=o,n=t.shouldUseTimeDampening,a=t.dragStartTime;mr({state:e,scrollWindow:r,scrollDroppable:i,dragStartTime:a,shouldUseTimeDampening:n})};return{start:function(e){Kt(),o&&ge(!1);var t=Date.now(),n=!1,r=function(){n=!0};mr({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:r,scrollDroppable:r}),o={dragStartTime:t,shouldUseTimeDampening:n},Gt(),n&&a(e)},stop:function(){o&&(r.cancel(),i.cancel(),o=null)},scroll:a}}({scrollWindow:n,scrollDroppable:t}),o=gr({move:r,scrollWindow:n,scrollDroppable:t});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&o(e):i.scroll(e))},start:i.start,stop:i.stop}},yr="data-rbd",br=function(){var e=yr+"-drag-handle";return{base:e,draggableId:e+"-draggable-id",contextId:e+"-context-id"}}(),wr=function(){var e=yr+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),xr=function(){var e=yr+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),_r={contextId:yr+"-scroll-container-context-id"},Er=function(e,t){return e.map((function(e){var n=e.styles[t];return n?e.selector+" { "+n+" }":""})).join(" ")},Sr=function(e){var t,n=(t=e,function(e){return"["+e+'="'+t+'"]'}),r=function(){var e="\n cursor: -webkit-grab;\n cursor: grab;\n ";return{selector:n(br.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:e,dragging:"pointer-events: none;",dropAnimating:e}}}(),i=[function(){var e="\n transition: "+xn.outOfTheWay+";\n ";return{selector:n(wr.contextId),styles:{dragging:e,dropAnimating:e,userCancel:e}}}(),r,{selector:n(xr.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n overflow-anchor: none;\n "}}];return{always:Er(i,"always"),resting:Er(i,"resting"),dragging:Er(i,"dragging"),dropAnimating:Er(i,"dropAnimating"),userCancel:Er(i,"userCancel")}},Cr="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?r.useLayoutEffect:r.useEffect,kr=function(){var e=document.querySelector("head");return e||ge(!1),e},Or=function(e){var t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};var Nr=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function Tr(e){return e instanceof Nr(e).HTMLElement}function Ar(e,t){var n="["+br.contextId+'="'+e+'"]',r=Be(document.querySelectorAll(n));if(!r.length)return null;var i=Fe(r,(function(e){return e.getAttribute(br.draggableId)===t}));return i&&Tr(i)?i:null}function Ir(){var e={draggables:{},droppables:{}},t=[];function n(e){t.length&&t.forEach((function(t){return t(e)}))}function r(t){return e.draggables[t]||null}function i(t){return e.droppables[t]||null}return{draggable:{register:function(t){e.draggables[t.descriptor.id]=t,n({type:"ADDITION",value:t})},update:function(t,n){var r=e.draggables[n.descriptor.id];r&&r.uniqueId===t.uniqueId&&(delete e.draggables[n.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:function(t){var i=t.descriptor.id,o=r(i);o&&t.uniqueId===o.uniqueId&&(delete e.draggables[i],n({type:"REMOVAL",value:t}))},getById:function(e){var t=r(e);return t||ge(!1),t},findById:r,exists:function(e){return Boolean(r(e))},getAllByType:function(t){return Le(e.draggables).filter((function(e){return e.descriptor.type===t}))}},droppable:{register:function(t){e.droppables[t.descriptor.id]=t},unregister:function(t){var n=i(t.descriptor.id);n&&t.uniqueId===n.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){var t=i(e);return t||ge(!1),t},findById:i,exists:function(e){return Boolean(i(e))},getAllByType:function(t){return Le(e.droppables).filter((function(e){return e.descriptor.type===t}))}},subscribe:function(e){return t.push(e),function(){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var Pr=r.createContext(null),Rr=function(){var e=document.body;return e||ge(!1),e},Dr={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},jr=function(e){return"rbd-announcement-"+e};var Mr=0,Lr={separator:"::"};function zr(e,t){return void 0===t&&(t=Lr),Y((function(){return""+e+t.separator+Mr++}),[t.separator,e])}var Fr=r.createContext(null);function Br(e){0}function Ur(e,t){Br()}function qr(e){var t=(0,r.useRef)(e);return(0,r.useEffect)((function(){t.current=e})),t}var $r,Hr=(($r={})[13]=!0,$r[9]=!0,$r),Vr=function(e){Hr[e.keyCode]&&e.preventDefault()},Wr=function(){var e="visibilitychange";return"undefined"===typeof document?e:Fe([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}();var Kr,Gr={type:"IDLE"};function Yr(e){var t=e.cancel,n=e.completed,r=e.getPhase,i=e.setPhase;return[{eventName:"mousemove",fn:function(e){var t=e.button,n=e.clientX,o=e.clientY;if(0===t){var a={x:n,y:o},s=r();if("DRAGGING"===s.type)return e.preventDefault(),void s.actions.move(a);if("PENDING"!==s.type&&ge(!1),function(e,t){return Math.abs(t.x-e.x)>=5||Math.abs(t.y-e.y)>=5}(s.point,a)){e.preventDefault();var l=s.actions.fluidLift(a);i({type:"DRAGGING",actions:l})}}}},{eventName:"mouseup",fn:function(e){var i=r();"DRAGGING"===i.type?(e.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===r().type&&e.preventDefault(),t()}},{eventName:"keydown",fn:function(e){if("PENDING"!==r().type)return 27===e.keyCode?(e.preventDefault(),void t()):void Vr(e);t()}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===r().type&&t()}},{eventName:"webkitmouseforcedown",fn:function(e){var n=r();"IDLE"===n.type&&ge(!1),n.actions.shouldRespectForcePress()?t():e.preventDefault()}},{eventName:Wr,fn:t}]}function Qr(){}var Zr=((Kr={})[34]=!0,Kr[33]=!0,Kr[36]=!0,Kr[35]=!0,Kr);function Jr(e,t){function n(){t(),e.cancel()}return[{eventName:"keydown",fn:function(r){return 27===r.keyCode?(r.preventDefault(),void n()):32===r.keyCode?(r.preventDefault(),t(),void e.drop()):40===r.keyCode?(r.preventDefault(),void e.moveDown()):38===r.keyCode?(r.preventDefault(),void e.moveUp()):39===r.keyCode?(r.preventDefault(),void e.moveRight()):37===r.keyCode?(r.preventDefault(),void e.moveLeft()):void(Zr[r.keyCode]?r.preventDefault():Vr(r))}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:Wr,fn:n}]}var Xr={type:"IDLE"};var ei={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function ti(e,t){if(null==t)return!1;if(Boolean(ei[t.tagName.toLowerCase()]))return!0;var n=t.getAttribute("contenteditable");return"true"===n||""===n||t!==e&&ti(e,t.parentElement)}function ni(e,t){var n=t.target;return!!Tr(n)&&ti(e,n)}var ri=function(e){return J(e.getBoundingClientRect()).center};var ii=function(){var e="matches";return"undefined"===typeof document?e:Fe([e,"msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||e}();function oi(e,t){return null==e?null:e[ii](t)?e:oi(e.parentElement,t)}function ai(e,t){return e.closest?e.closest(t):oi(e,t)}function si(e,t){var n,r=t.target;if(!((n=r)instanceof Nr(n).Element))return null;var i=function(e){return"["+br.contextId+'="'+e+'"]'}(e),o=ai(r,i);return o&&Tr(o)?o:null}function li(e){e.preventDefault()}function ci(e){var t=e.expected,n=e.phase,r=e.isLockActive;e.shouldWarn;return!!r()&&t===n}function ui(e){var t=e.lockAPI,n=e.store,r=e.registry,i=e.draggableId;if(t.isClaimed())return!1;var o=r.draggable.findById(i);return!!o&&(!!o.options.isEnabled&&!!Gn(n.getState(),i))}function di(e){var t=e.lockAPI,n=e.contextId,r=e.store,i=e.registry,a=e.draggableId,s=e.forceSensorStop,l=e.sourceEvent;if(!ui({lockAPI:t,store:r,registry:i,draggableId:a}))return null;var c=i.draggable.getById(a),u=function(e,t){var n="["+wr.contextId+'="'+e+'"]',r=Fe(Be(document.querySelectorAll(n)),(function(e){return e.getAttribute(wr.id)===t}));return r&&Tr(r)?r:null}(n,c.descriptor.id);if(!u)return null;if(l&&!c.options.canDragInteractiveElements&&ni(u,l))return null;var d=t.claim(s||de),f="PRE_DRAG";function p(){return c.options.shouldRespectForcePress}function h(){return t.isActive(d)}var m=function(e,t){ci({expected:e,phase:f,isLockActive:h,shouldWarn:!0})&&r.dispatch(t())}.bind(null,"DRAGGING");function g(e){function n(){t.release(),f="COMPLETED"}function i(t,i){if(void 0===i&&(i={shouldBlockNextClick:!1}),e.cleanup(),i.shouldBlockNextClick){var o=fe(window,[{eventName:"click",fn:li,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(o)}n(),r.dispatch(mn({reason:t}))}return"PRE_DRAG"!==f&&(n(),"PRE_DRAG"!==f&&ge(!1)),r.dispatch(tn(e.liftActionArgs)),f="DRAGGING",(0,o.A)({isActive:function(){return ci({expected:"DRAGGING",phase:f,isLockActive:h,shouldWarn:!1})},shouldRespectForcePress:p,drop:function(e){return i("DROP",e)},cancel:function(e){return i("CANCEL",e)}},e.actions)}return{isActive:function(){return ci({expected:"PRE_DRAG",phase:f,isLockActive:h,shouldWarn:!1})},shouldRespectForcePress:p,fluidLift:function(e){var t=ce((function(e){m((function(){return ln({client:e})}))})),n=g({liftActionArgs:{id:a,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return t.cancel()},actions:{move:t}});return(0,o.A)({},n,{move:t})},snapLift:function(){var e={moveUp:function(){return m(cn)},moveRight:function(){return m(dn)},moveDown:function(){return m(un)},moveLeft:function(){return m(fn)}};return g({liftActionArgs:{id:a,clientSelection:ri(u),movementMode:"SNAP"},cleanup:de,actions:e})},abort:function(){ci({expected:"PRE_DRAG",phase:f,isLockActive:h,shouldWarn:!0})&&t.release()}}}var fi=[function(e){var t=(0,r.useRef)(Gr),n=(0,r.useRef)(de),i=Y((function(){return{eventName:"mousedown",fn:function(t){if(!t.defaultPrevented&&0===t.button&&!(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)){var r=e.findClosestDraggableId(t);if(r){var i=e.tryGetLock(r,s,{sourceEvent:t});if(i){t.preventDefault();var o={x:t.clientX,y:t.clientY};n.current(),u(i,o)}}}}}}),[e]),o=Y((function(){return{eventName:"webkitmouseforcewillbegin",fn:function(t){if(!t.defaultPrevented){var n=e.findClosestDraggableId(t);if(n){var r=e.findOptionsForDraggable(n);r&&(r.shouldRespectForcePress||e.canGetLock(n)&&t.preventDefault())}}}}}),[e]),a=Q((function(){n.current=fe(window,[o,i],{passive:!1,capture:!0})}),[o,i]),s=Q((function(){"IDLE"!==t.current.type&&(t.current=Gr,n.current(),a())}),[a]),l=Q((function(){var e=t.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[s]),c=Q((function(){var e=Yr({cancel:l,completed:s,getPhase:function(){return t.current},setPhase:function(e){t.current=e}});n.current=fe(window,e,{capture:!0,passive:!1})}),[l,s]),u=Q((function(e,n){"IDLE"!==t.current.type&&ge(!1),t.current={type:"PENDING",point:n,actions:e},c()}),[c]);Cr((function(){return a(),function(){n.current()}}),[a])},function(e){var t=(0,r.useRef)(Qr),n=Y((function(){return{eventName:"keydown",fn:function(n){if(!n.defaultPrevented&&32===n.keyCode){var r=e.findClosestDraggableId(n);if(r){var o=e.tryGetLock(r,l,{sourceEvent:n});if(o){n.preventDefault();var a=!0,s=o.snapLift();t.current(),t.current=fe(window,Jr(s,l),{capture:!0,passive:!1})}}}function l(){a||ge(!1),a=!1,t.current(),i()}}}}),[e]),i=Q((function(){t.current=fe(window,[n],{passive:!1,capture:!0})}),[n]);Cr((function(){return i(),function(){t.current()}}),[i])},function(e){var t=(0,r.useRef)(Xr),n=(0,r.useRef)(de),i=Q((function(){return t.current}),[]),o=Q((function(e){t.current=e}),[]),a=Y((function(){return{eventName:"touchstart",fn:function(t){if(!t.defaultPrevented){var r=e.findClosestDraggableId(t);if(r){var i=e.tryGetLock(r,l,{sourceEvent:t});if(i){var o=t.touches[0],a={x:o.clientX,y:o.clientY};n.current(),f(i,a)}}}}}}),[e]),s=Q((function(){n.current=fe(window,[a],{capture:!0,passive:!1})}),[a]),l=Q((function(){var e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),o(Xr),n.current(),s())}),[s,o]),c=Q((function(){var e=t.current;l(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[l]),u=Q((function(){var e={capture:!0,passive:!1},t={cancel:c,completed:l,getPhase:i},r=fe(window,function(e){var t=e.cancel,n=e.completed,r=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var n=r();if("DRAGGING"===n.type){n.hasMoved=!0;var i=e.touches[0],o={x:i.clientX,y:i.clientY};e.preventDefault(),n.actions.move(o)}else t()}},{eventName:"touchend",fn:function(e){var i=r();"DRAGGING"===i.type?(e.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===r().type?(e.preventDefault(),t()):t()}},{eventName:"touchforcechange",fn:function(e){var n=r();"IDLE"===n.type&&ge(!1);var i=e.touches[0];if(i&&i.force>=.15){var o=n.actions.shouldRespectForcePress();if("PENDING"!==n.type)return o?n.hasMoved?void e.preventDefault():void t():void e.preventDefault();o&&t()}}},{eventName:Wr,fn:t}]}(t),e),o=fe(window,function(e){var t=e.cancel,n=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===n().type?(27===e.keyCode&&e.preventDefault(),t()):t()}},{eventName:Wr,fn:t}]}(t),e);n.current=function(){r(),o()}}),[c,i,l]),d=Q((function(){var e=i();"PENDING"!==e.type&&ge(!1);var t=e.actions.fluidLift(e.point);o({type:"DRAGGING",actions:t,hasMoved:!1})}),[i,o]),f=Q((function(e,t){"IDLE"!==i().type&&ge(!1);var n=setTimeout(d,120);o({type:"PENDING",point:t,actions:e,longPressTimerId:n}),u()}),[u,i,o,d]);Cr((function(){return s(),function(){n.current();var e=i();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),o(Xr))}}),[i,s,o]),Cr((function(){return fe(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}];function pi(e){var t=e.contextId,n=e.store,i=e.registry,o=e.customSensors,a=e.enableDefaultSensors,s=[].concat(a?fi:[],o||[]),l=(0,r.useState)((function(){return function(){var e=null;function t(){e||ge(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&ge(!1);var n={abandon:t};return e=n,n},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()}))[0],c=Q((function(e,t){e.isDragging&&!t.isDragging&&l.tryAbandon()}),[l]);Cr((function(){var e=n.getState();return n.subscribe((function(){var t=n.getState();c(e,t),e=t}))}),[l,n,c]),Cr((function(){return l.tryAbandon}),[l.tryAbandon]);var u=Q((function(e){return ui({lockAPI:l,registry:i,store:n,draggableId:e})}),[l,i,n]),d=Q((function(e,r,o){return di({lockAPI:l,registry:i,contextId:t,store:n,draggableId:e,forceSensorStop:r,sourceEvent:o&&o.sourceEvent?o.sourceEvent:null})}),[t,l,i,n]),f=Q((function(e){return function(e,t){var n=si(e,t);return n?n.getAttribute(br.draggableId):null}(t,e)}),[t]),p=Q((function(e){var t=i.draggable.findById(e);return t?t.options:null}),[i.draggable]),h=Q((function(){l.isClaimed()&&(l.tryAbandon(),"IDLE"!==n.getState().phase&&n.dispatch(pn()))}),[l,n]),m=Q(l.isClaimed,[l]),g=Y((function(){return{canGetLock:u,tryGetLock:d,findClosestDraggableId:f,findOptionsForDraggable:p,tryReleaseLock:h,isLockClaimed:m}}),[u,d,f,p,h,m]);Br();for(var v=0;v<s.length;v++)s[v](g)}var hi=function(e){return{onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}};function mi(e){return e.current||ge(!1),e.current}function gi(e){var t=e.contextId,n=e.setCallbacks,i=e.sensors,s=e.nonce,l=e.dragHandleUsageInstructions,c=(0,r.useRef)(null);Ur();var u=qr(e),d=Q((function(){return hi(u.current)}),[u]),f=function(e){var t=Y((function(){return jr(e)}),[e]),n=(0,r.useRef)(null);return(0,r.useEffect)((function(){var e=document.createElement("div");return n.current=e,e.id=t,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),(0,o.A)(e.style,Dr),Rr().appendChild(e),function(){setTimeout((function(){var t=Rr();t.contains(e)&&t.removeChild(e),e===n.current&&(n.current=null)}))}}),[t]),Q((function(e){var t=n.current;t&&(t.textContent=e)}),[])}(t),h=function(e){var t=e.contextId,n=e.text,i=zr("hidden-text",{separator:"-"}),o=Y((function(){return"rbd-hidden-text-"+(e={contextId:t,uniqueId:i}).contextId+"-"+e.uniqueId;var e}),[i,t]);return(0,r.useEffect)((function(){var e=document.createElement("div");return e.id=o,e.textContent=n,e.style.display="none",Rr().appendChild(e),function(){var t=Rr();t.contains(e)&&t.removeChild(e)}}),[o,n]),o}({contextId:t,text:l}),m=function(e,t){var n=Y((function(){return Sr(e)}),[e]),i=(0,r.useRef)(null),o=(0,r.useRef)(null),a=Q((0,le.A)((function(e){var t=o.current;t||ge(!1),t.textContent=e})),[]),s=Q((function(e){var t=i.current;t||ge(!1),t.textContent=e}),[]);Cr((function(){(i.current||o.current)&&ge(!1);var r=Or(t),l=Or(t);return i.current=r,o.current=l,r.setAttribute(yr+"-always",e),l.setAttribute(yr+"-dynamic",e),kr().appendChild(r),kr().appendChild(l),s(n.always),a(n.resting),function(){var e=function(e){var t=e.current;t||ge(!1),kr().removeChild(t),e.current=null};e(i),e(o)}}),[t,s,a,n.always,n.resting,e]);var l=Q((function(){return a(n.dragging)}),[a,n.dragging]),c=Q((function(e){a("DROP"!==e?n.userCancel:n.dropAnimating)}),[a,n.dropAnimating,n.userCancel]),u=Q((function(){o.current&&a(n.resting)}),[a,n.resting]);return Y((function(){return{dragging:l,dropping:c,resting:u}}),[l,c,u])}(t,s),g=Q((function(e){mi(c).dispatch(e)}),[]),v=Y((function(){return(0,a.zH)({publishWhileDragging:nn,updateDroppableScroll:on,updateDroppableIsEnabled:an,updateDroppableIsCombineEnabled:sn,collectionStarting:rn},g)}),[g]),y=function(){var e=Y(Ir,[]);return(0,r.useEffect)((function(){return function(){requestAnimationFrame(e.clean)}}),[e]),e}(),b=Y((function(){return Kn(y,v)}),[y,v]),w=Y((function(){return vr((0,o.A)({scrollWindow:Yn,scrollDroppable:b.scrollDroppable},(0,a.zH)({move:ln},g)))}),[b.scrollDroppable,g]),x=function(e){var t=(0,r.useRef)({}),n=(0,r.useRef)(null),i=(0,r.useRef)(null),o=(0,r.useRef)(!1),a=Q((function(e,n){var r={id:e,focus:n};return t.current[e]=r,function(){var n=t.current;n[e]!==r&&delete n[e]}}),[]),s=Q((function(t){var n=Ar(e,t);n&&n!==document.activeElement&&n.focus()}),[e]),l=Q((function(e,t){n.current===e&&(n.current=t)}),[]),c=Q((function(){i.current||o.current&&(i.current=requestAnimationFrame((function(){i.current=null;var e=n.current;e&&s(e)})))}),[s]),u=Q((function(e){n.current=null;var t=document.activeElement;t&&t.getAttribute(br.draggableId)===e&&(n.current=e)}),[]);return Cr((function(){return o.current=!0,function(){o.current=!1;var e=i.current;e&&cancelAnimationFrame(e)}}),[]),Y((function(){return{register:a,tryRecordFocus:u,tryRestoreFocusRecorded:c,tryShiftRecord:l}}),[a,u,c,l])}(t),_=Y((function(){return Un({announce:f,autoScroller:w,dimensionMarshal:b,focusMarshal:x,getResponders:d,styleMarshal:m})}),[f,w,b,x,d,m]);c.current=_;var E=Q((function(){var e=mi(c);"IDLE"!==e.getState().phase&&e.dispatch(pn())}),[]),S=Q((function(){var e=mi(c).getState();return e.isDragging||"DROP_ANIMATING"===e.phase}),[]);n(Y((function(){return{isDragging:S,tryAbort:E}}),[S,E]));var C=Q((function(e){return Gn(mi(c).getState(),e)}),[]),k=Q((function(){return Dt(mi(c).getState())}),[]),O=Y((function(){return{marshal:b,focus:x,contextId:t,canLift:C,isMovementAllowed:k,dragHandleUsageInstructionsId:h,registry:y}}),[t,b,h,x,C,k,y]);return pi({contextId:t,store:_,registry:y,customSensors:i,enableDefaultSensors:!1!==e.enableDefaultSensors}),(0,r.useEffect)((function(){return E}),[E]),r.createElement(Fr.Provider,{value:O},r.createElement(p,{context:Pr,store:_},e.children))}var vi=0;function yi(e){var t=Y((function(){return""+vi++}),[]),n=e.dragHandleUsageInstructions||_e.dragHandleUsageInstructions;return r.createElement(ve,null,(function(i){return r.createElement(gi,{nonce:e.nonce,contextId:t,setCallbacks:i,dragHandleUsageInstructions:n,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd},e.children)}))}var bi=function(e){return function(t){return e===t}},wi=bi("scroll"),xi=bi("auto"),_i=(bi("visible"),function(e,t){return t(e.overflowX)||t(e.overflowY)}),Ei=function(e){var t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return _i(n,wi)||_i(n,xi)},Si=function e(t){return null==t||t===document.body||t===document.documentElement?null:Ei(t)?t:e(t.parentElement)},Ci=function(e){return{x:e.scrollLeft,y:e.scrollTop}},ki=function e(t){return!!t&&("fixed"===window.getComputedStyle(t).position||e(t.parentElement))},Oi=function(e){return{closestScrollable:Si(e),isFixedOnPage:ki(e)}},Ni=function(e){var t=e.ref,n=e.descriptor,r=e.env,i=e.windowScroll,o=e.direction,a=e.isDropDisabled,s=e.isCombineEnabled,l=e.shouldClipSubject,c=r.closestScrollable,u=function(e,t){var n=se(e);if(!t)return n;if(e!==t)return n;var r=n.paddingBox.top-t.scrollTop,i=n.paddingBox.left-t.scrollLeft,o=r+t.scrollHeight,a=i+t.scrollWidth,s=X({top:r,right:a,bottom:o,left:i},n.border);return ne({borderBox:s,margin:n.margin,border:n.border,padding:n.padding})}(t,c),d=oe(u,i),f=function(){if(!c)return null;var e=se(c),t={scrollHeight:c.scrollHeight,scrollWidth:c.scrollWidth};return{client:e,page:oe(e,i),scroll:Ci(c),scrollSize:t,shouldClipSubject:l}}(),p=function(e){var t=e.descriptor,n=e.isEnabled,r=e.isCombineEnabled,i=e.isFixedOnPage,o=e.direction,a=e.client,s=e.page,l=e.closest,c=function(){if(!l)return null;var e=l.scrollSize,t=l.client,n=qn({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:l.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:l.shouldClipSubject,scroll:{initial:l.scroll,current:l.scroll,max:n,diff:{value:Ee,displacement:Ee}}}}(),u="vertical"===o?nt:rt;return{descriptor:t,isCombineEnabled:r,isFixedOnPage:i,axis:u,isEnabled:n,client:a,page:s,frame:c,subject:je({page:s,withPlaceholder:null,axis:u,frame:c})}}({descriptor:n,isEnabled:!a,isCombineEnabled:s,isFixedOnPage:r.isFixedOnPage,direction:o,client:u,page:d,closest:f});return p},Ti={passive:!1},Ai={passive:!0},Ii=function(e){return e.shouldPublishImmediately?Ti:Ai};function Pi(e){var t=(0,r.useContext)(e);return t||ge(!1),t}var Ri=function(e){return e&&e.env.closestScrollable||null};function Di(){}var ji={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},Mi=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate,i=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate;return t||"close"===r?ji:{height:n.client.borderBox.height,width:n.client.borderBox.width,margin:n.client.margin}}({isAnimatingOpenOnMount:t,placeholder:n,animate:r});return{display:n.display,boxSizing:"border-box",width:i.width,height:i.height,marginTop:i.margin.top,marginRight:i.margin.right,marginBottom:i.margin.bottom,marginLeft:i.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==r?xn.placeholder:null}};var Li=r.memo((function(e){var t=(0,r.useRef)(null),n=Q((function(){t.current&&(clearTimeout(t.current),t.current=null)}),[]),i=e.animate,o=e.onTransitionEnd,a=e.onClose,s=e.contextId,l=(0,r.useState)("open"===e.animate),c=l[0],u=l[1];(0,r.useEffect)((function(){return c?"open"!==i?(n(),u(!1),Di):t.current?Di:(t.current=setTimeout((function(){t.current=null,u(!1)})),n):Di}),[i,c,n]);var d=Q((function(e){"height"===e.propertyName&&(o(),"close"===i&&a())}),[i,a,o]),f=Mi({isAnimatingOpenOnMount:c,animate:e.animate,placeholder:e.placeholder});return r.createElement(e.placeholder.tagName,{style:f,"data-rbd-placeholder-context-id":s,onTransitionEnd:d,ref:e.innerRef})})),zi=r.createContext(null);var Fi=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).state={isVisible:Boolean(t.props.on),data:t.props.on,animate:t.props.shouldAnimate&&t.props.on?"open":"none"},t.onClose=function(){"close"===t.state.animate&&t.setState({isVisible:!1})},t}return(0,i.A)(t,e),t.getDerivedStateFromProps=function(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}},t.prototype.render=function(){if(!this.state.isVisible)return null;var e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)},t}(r.PureComponent),Bi=5e3,Ui=4500,qi=function(e,t){return t?xn.drop(t.duration):e?xn.snap:xn.fluid},$i=function(e,t){return e?t?yn.drop:yn.combining:null};function Hi(e){return"DRAGGING"===e.type?function(e){var t=e.dimension.client,n=e.offset,r=e.combineWith,i=e.dropping,o=Boolean(r),a=function(e){return null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode}(e),s=Boolean(i),l=s?Sn(n,o):En(n);return{position:"fixed",top:t.marginBox.top,left:t.marginBox.left,boxSizing:"border-box",width:t.borderBox.width,height:t.borderBox.height,transition:qi(a,i),transform:l,opacity:$i(o,s),zIndex:s?Ui:Bi,pointerEvents:"none"}}(e):{transform:En((t=e).offset),transition:t.shouldAnimateDisplacement?null:"none"};var t}function Vi(e){var t=zr("draggable"),n=e.descriptor,i=e.registry,o=e.getDraggableRef,a=e.canDragInteractiveElements,s=e.shouldRespectForcePress,l=e.isEnabled,c=Y((function(){return{canDragInteractiveElements:a,shouldRespectForcePress:s,isEnabled:l}}),[a,l,s]),u=Q((function(e){var t=o();return t||ge(!1),function(e,t,n){void 0===n&&(n=Ee);var r=window.getComputedStyle(t),i=t.getBoundingClientRect(),o=ae(i,r),a=oe(o,n);return{descriptor:e,placeholder:{client:o,tagName:t.tagName.toLowerCase(),display:r.display},displaceBy:{x:o.marginBox.width,y:o.marginBox.height},client:o,page:a}}(n,t,e)}),[n,o]),d=Y((function(){return{uniqueId:t,descriptor:n,options:c,getDimension:u}}),[n,u,c,t]),f=(0,r.useRef)(d),p=(0,r.useRef)(!0);Cr((function(){return i.draggable.register(f.current),function(){return i.draggable.unregister(f.current)}}),[i.draggable]),Cr((function(){if(p.current)p.current=!1;else{var e=f.current;f.current=d,i.draggable.update(d,e)}}),[d,i.draggable])}function Wi(e,t,n){Ur()}function Ki(e){e.preventDefault()}var Gi=function(e,t){return e===t},Yi=function(e){var t=e.combine,n=e.destination;return n?n.droppableId:t?t.droppableId:null};function Qi(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var Zi={mapped:{type:"SECONDARY",offset:Ee,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Qi(null)}};var Ji=V((function(){var e=function(){var e=(0,le.A)((function(e,t){return{x:e,y:t}})),t=(0,le.A)((function(e,t,n,r,i){return{isDragging:!0,isClone:t,isDropAnimating:Boolean(i),dropAnimation:i,mode:e,draggingOver:n,combineWith:r,combineTargetFor:null}})),n=(0,le.A)((function(e,n,r,i,o,a,s){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:o,combineWith:a,mode:n,offset:e,dimension:r,forceShouldAnimate:s,snapshot:t(n,i,o,a,null)}}}));return function(r,i){if(r.isDragging){if(r.critical.draggable.id!==i.draggableId)return null;var o=r.current.client.offset,a=r.dimensions.draggables[i.draggableId],s=Pt(r.impact),l=(u=r.impact).at&&"COMBINE"===u.at.type?u.at.combine.draggableId:null,c=r.forceShouldAnimate;return n(e(o.x,o.y),r.movementMode,a,i.isClone,s,l,c)}var u;if("DROP_ANIMATING"===r.phase){var d=r.completed;if(d.result.draggableId!==i.draggableId)return null;var f=i.isClone,p=r.dimensions.draggables[i.draggableId],h=d.result,m=h.mode,g=Yi(h),v=function(e){return e.combine?e.combine.draggableId:null}(h),y={duration:r.dropDuration,curve:vn,moveTo:r.newHomeClientOffset,opacity:v?yn.drop:null,scale:v?bn.drop:null};return{mapped:{type:"DRAGGING",offset:r.newHomeClientOffset,dimension:p,dropping:y,draggingOver:g,combineWith:v,mode:m,forceShouldAnimate:null,snapshot:t(m,f,g,v,y)}}}return null}}(),t=function(){var e=(0,le.A)((function(e,t){return{x:e,y:t}})),t=(0,le.A)(Qi),n=(0,le.A)((function(e,n,r){return void 0===n&&(n=null),{mapped:{type:"SECONDARY",offset:e,combineTargetFor:n,shouldAnimateDisplacement:r,snapshot:t(n)}}})),r=function(e){return e?n(Ee,e,!0):null},i=function(t,i,o,a){var s=o.displaced.visible[t],l=Boolean(a.inVirtualList&&a.effected[t]),c=Ke(o),u=c&&c.draggableId===t?i:null;if(!s){if(!l)return r(u);if(o.displaced.invisible[t])return null;var d=Oe(a.displacedBy.point),f=e(d.x,d.y);return n(f,u,!0)}if(l)return r(u);var p=o.displacedBy.point,h=e(p.x,p.y);return n(h,u,s.shouldAnimate)};return function(e,t){if(e.isDragging)return e.critical.draggable.id===t.draggableId?null:i(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){var n=e.completed;return n.result.draggableId===t.draggableId?null:i(t.draggableId,n.result.draggableId,n.impact,n.afterCritical)}return null}}();return function(n,r){return e(n,r)||t(n,r)||Zi}}),{dropAnimationFinished:gn},null,{context:Pr,pure:!0,areStatePropsEqual:Gi})((function(e){var t=(0,r.useRef)(null),n=Q((function(e){t.current=e}),[]),i=Q((function(){return t.current}),[]),o=Pi(Fr),a=o.contextId,s=o.dragHandleUsageInstructionsId,l=o.registry,c=Pi(zi),u=c.type,d=c.droppableId,f=Y((function(){return{id:e.draggableId,index:e.index,type:u,droppableId:d}}),[e.draggableId,e.index,u,d]),p=e.children,h=e.draggableId,m=e.isEnabled,g=e.shouldRespectForcePress,v=e.canDragInteractiveElements,y=e.isClone,b=e.mapped,w=e.dropAnimationFinished;Wi(),Br(),y||Vi(Y((function(){return{descriptor:f,registry:l,getDraggableRef:i,canDragInteractiveElements:v,shouldRespectForcePress:g,isEnabled:m}}),[f,l,i,v,g,m]));var x=Y((function(){return m?{tabIndex:0,role:"button","aria-describedby":s,"data-rbd-drag-handle-draggable-id":h,"data-rbd-drag-handle-context-id":a,draggable:!1,onDragStart:Ki}:null}),[a,s,h,m]),_=Q((function(e){"DRAGGING"===b.type&&b.dropping&&"transform"===e.propertyName&&w()}),[w,b]),E=Y((function(){var e=Hi(b),t="DRAGGING"===b.type&&b.dropping?_:null;return{innerRef:n,draggableProps:{"data-rbd-draggable-context-id":a,"data-rbd-draggable-id":h,style:e,onTransitionEnd:t},dragHandleProps:x}}),[a,x,h,b,_,n]),S=Y((function(){return{draggableId:f.id,type:f.type,source:{index:f.index,droppableId:f.droppableId}}}),[f.droppableId,f.id,f.index,f.type]);return p(E,b.snapshot,S)}));function Xi(e){return Pi(zi).isUsingCloneFor!==e.draggableId||e.isClone?r.createElement(Ji,e):null}function eo(e){var t="boolean"!==typeof e.isDragDisabled||!e.isDragDisabled,n=Boolean(e.disableInteractiveElementBlocking),i=Boolean(e.shouldRespectForcePress);return r.createElement(Xi,(0,o.A)({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:i}))}var to=function(e,t){return e===t.droppable.type},no=function(e,t){return t.draggables[e.draggable.id]};var ro={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||ge(!1),document.body}},io=V((function(){var e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t=(0,o.A)({},e,{shouldAnimatePlaceholder:!1}),n=(0,le.A)((function(e){return{draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}})),r=(0,le.A)((function(r,i,o,a,s,l){var c=s.descriptor.id;if(s.descriptor.droppableId===r){var u=l?{render:l,dragging:n(s.descriptor)}:null,d={isDraggingOver:o,draggingOverWith:o?c:null,draggingFromThisWith:c,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!1,snapshot:d,useClone:u}}if(!i)return t;if(!a)return e;var f={isDraggingOver:o,draggingOverWith:c,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!0,snapshot:f,useClone:null}}));return function(n,i){var o=i.droppableId,a=i.type,s=!i.isDropDisabled,l=i.renderClone;if(n.isDragging){var c=n.critical;if(!to(a,c))return t;var u=no(c,n.dimensions),d=Pt(n.impact)===o;return r(o,s,d,d,u,l)}if("DROP_ANIMATING"===n.phase){var f=n.completed;if(!to(a,f.critical))return t;var p=no(f.critical,n.dimensions);return r(o,s,Yi(f.result)===o,Pt(f.impact)===o,p,l)}if("IDLE"===n.phase&&n.completed&&!n.shouldFlush){var h=n.completed;if(!to(a,h.critical))return t;var m=Pt(h.impact)===o,g=Boolean(h.impact.at&&"COMBINE"===h.impact.at.type),v=h.critical.droppable.id===o;return m?g?e:t:v?e:t}return t}}),{updateViewportMaxScroll:function(e){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}}},null,{context:Pr,pure:!0,areStatePropsEqual:Gi})((function(e){var t=(0,r.useContext)(Fr);t||ge(!1);var n=t.contextId,i=t.isMovementAllowed,o=(0,r.useRef)(null),a=(0,r.useRef)(null),s=e.children,l=e.droppableId,c=e.type,u=e.mode,d=e.direction,f=e.ignoreContainerClipping,p=e.isDropDisabled,h=e.isCombineEnabled,m=e.snapshot,g=e.useClone,v=e.updateViewportMaxScroll,y=e.getContainerForClone,b=Q((function(){return o.current}),[]),w=Q((function(e){o.current=e}),[]),x=(Q((function(){return a.current}),[]),Q((function(e){a.current=e}),[]));Ur();var _=Q((function(){i()&&v({maxScroll:Hn()})}),[i,v]);!function(e){var t=(0,r.useRef)(null),n=Pi(Fr),i=zr("droppable"),o=n.registry,a=n.marshal,s=qr(e),l=Y((function(){return{id:e.droppableId,type:e.type,mode:e.mode}}),[e.droppableId,e.mode,e.type]),c=(0,r.useRef)(l),u=Y((function(){return(0,le.A)((function(e,n){t.current||ge(!1);var r={x:e,y:n};a.updateDroppableScroll(l.id,r)}))}),[l.id,a]),d=Q((function(){var e=t.current;return e&&e.env.closestScrollable?Ci(e.env.closestScrollable):Ee}),[]),f=Q((function(){var e=d();u(e.x,e.y)}),[d,u]),p=Y((function(){return ce(f)}),[f]),h=Q((function(){var e=t.current,n=Ri(e);e&&n||ge(!1),e.scrollOptions.shouldPublishImmediately?f():p()}),[p,f]),m=Q((function(e,r){t.current&&ge(!1);var i=s.current,o=i.getDroppableRef();o||ge(!1);var a=Oi(o),c={ref:o,descriptor:l,env:a,scrollOptions:r};t.current=c;var u=Ni({ref:o,descriptor:l,env:a,windowScroll:e,direction:i.direction,isDropDisabled:i.isDropDisabled,isCombineEnabled:i.isCombineEnabled,shouldClipSubject:!i.ignoreContainerClipping}),d=a.closestScrollable;return d&&(d.setAttribute(_r.contextId,n.contextId),d.addEventListener("scroll",h,Ii(c.scrollOptions))),u}),[n.contextId,l,h,s]),g=Q((function(){var e=t.current,n=Ri(e);return e&&n||ge(!1),Ci(n)}),[]),v=Q((function(){var e=t.current;e||ge(!1);var n=Ri(e);t.current=null,n&&(p.cancel(),n.removeAttribute(_r.contextId),n.removeEventListener("scroll",h,Ii(e.scrollOptions)))}),[h,p]),y=Q((function(e){var n=t.current;n||ge(!1);var r=Ri(n);r||ge(!1),r.scrollTop+=e.y,r.scrollLeft+=e.x}),[]),b=Y((function(){return{getDimensionAndWatchScroll:m,getScrollWhileDragging:g,dragStopped:v,scroll:y}}),[v,m,g,y]),w=Y((function(){return{uniqueId:i,descriptor:l,callbacks:b}}),[b,l,i]);Cr((function(){return c.current=w.descriptor,o.droppable.register(w),function(){t.current&&v(),o.droppable.unregister(w)}}),[b,l,v,w,a,o.droppable]),Cr((function(){t.current&&a.updateDroppableIsEnabled(c.current.id,!e.isDropDisabled)}),[e.isDropDisabled,a]),Cr((function(){t.current&&a.updateDroppableIsCombineEnabled(c.current.id,e.isCombineEnabled)}),[e.isCombineEnabled,a])}({droppableId:l,type:c,mode:u,direction:d,isDropDisabled:p,isCombineEnabled:h,ignoreContainerClipping:f,getDroppableRef:b});var E=r.createElement(Fi,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},(function(e){var t=e.onClose,i=e.data,o=e.animate;return r.createElement(Li,{placeholder:i,onClose:t,innerRef:x,animate:o,contextId:n,onTransitionEnd:_})})),S=Y((function(){return{innerRef:w,placeholder:E,droppableProps:{"data-rbd-droppable-id":l,"data-rbd-droppable-context-id":n}}}),[n,l,E,w]),C=g?g.dragging.draggableId:null,k=Y((function(){return{droppableId:l,type:c,isUsingCloneFor:C}}),[l,C,c]);return r.createElement(zi.Provider,{value:k},s(S,m),function(){if(!g)return null;var e=g.dragging,t=g.render,n=r.createElement(Xi,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(function(n,r){return t(n,r,e)}));return K.createPortal(n,y())}())}));io.defaultProps=ro},53577:(e,t)=>{t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(e){return e&&"undefined"!==typeof e.bit&&e.bit>=0&&e.bit<4},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!==typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+e)}}(e)}catch(r){return n}}},53683:e=>{function t(){this.buffer=[],this.length=0}t.prototype={get:function(e){const t=Math.floor(e/8);return 1===(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(let n=0;n<t;n++)this.putBit(1===(e>>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},53850:(e,t,n)=>{"use strict";n.d(t,{Mz:()=>g,X4:()=>h,i5:()=>c});var r=Symbol("NOT_FOUND");function i(e,t="expected a function, instead received "+typeof e){if("function"!==typeof e)throw new TypeError(t)}var o=e=>Array.isArray(e)?e:[e];function a(e){const t=Array.isArray(e[0])?e[0]:e;return function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every((e=>"function"===typeof e))){const n=e.map((e=>"function"===typeof e?`function ${e.name||"unnamed"}()`:typeof e)).join(", ");throw new TypeError(`${t}[${n}]`)}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}Symbol(),Object.getPrototypeOf({});var s=(e,t)=>e===t;function l(e){return function(t,n){if(null===t||null===n||t.length!==n.length)return!1;const{length:r}=t;for(let i=0;i<r;i++)if(!e(t[i],n[i]))return!1;return!0}}function c(e,t){const n="object"===typeof t?t:{equalityCheck:t},{equalityCheck:i=s,maxSize:o=1,resultEqualityCheck:a}=n,c=l(i);let u=0;const d=o<=1?function(e){let t;return{get:n=>t&&e(t.key,n)?t.value:r,put(e,n){t={key:e,value:n}},getEntries:()=>t?[t]:[],clear(){t=void 0}}}(c):function(e,t){let n=[];function i(e){const i=n.findIndex((n=>t(e,n.key)));if(i>-1){const e=n[i];return i>0&&(n.splice(i,1),n.unshift(e)),e.value}return r}return{get:i,put:function(t,o){i(t)===r&&(n.unshift({key:t,value:o}),n.length>e&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(o,c);function f(){let t=d.get(arguments);if(t===r){if(t=e.apply(null,arguments),u++,a){const e=d.getEntries().find((e=>a(e.value,t)));e&&(t=e.value,0!==u&&u--)}d.put(arguments,t)}return t}return f.clearCache=()=>{d.clear(),f.resetResultsCount()},f.resultsCount=()=>u,f.resetResultsCount=()=>{u=0},f}var u="undefined"!==typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}},d=0,f=1;function p(){return{s:d,v:void 0,o:null,p:null}}function h(e,t={}){let n=p();const{resultEqualityCheck:r}=t;let i,o=0;function a(){let t=n;const{length:a}=arguments;for(let e=0,n=a;e<n;e++){const n=arguments[e];if("function"===typeof n||"object"===typeof n&&null!==n){let e=t.o;null===e&&(t.o=e=new WeakMap);const r=e.get(n);void 0===r?(t=p(),e.set(n,t)):t=r}else{let e=t.p;null===e&&(t.p=e=new Map);const r=e.get(n);void 0===r?(t=p(),e.set(n,t)):t=r}}const s=t;let l;if(t.s===f)l=t.v;else if(l=e.apply(null,arguments),o++,r){const e=i?.deref?.()??i;null!=e&&r(e,l)&&(l=e,0!==o&&o--);i="object"===typeof l&&null!==l||"function"===typeof l?new u(l):l}return s.s=f,s.v=l,l}return a.clearCache=()=>{n=p(),a.resetResultsCount()},a.resultsCount=()=>o,a.resetResultsCount=()=>{o=0},a}function m(e,...t){const n="function"===typeof e?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t,r=0,s=0,l={},c=e.pop();"object"===typeof c&&(l=c,c=e.pop()),i(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const u={...n,...l},{memoize:d,memoizeOptions:f=[],argsMemoize:p=h,argsMemoizeOptions:m=[],devModeChecks:g={}}=u,v=o(f),y=o(m),b=a(e),w=d((function(){return r++,c.apply(null,arguments)}),...v);const x=p((function(){s++;const e=function(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}(b,arguments);return t=w.apply(null,e),t}),...y);return Object.assign(x,{resultFunc:c,memoizedResultFunc:w,dependencies:b,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>t,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:d,argsMemoize:p})};return Object.assign(r,{withTypes:()=>r}),r}var g=m(h),v=Object.assign(((e,t=g)=>{!function(e,t="expected an object, instead received "+typeof e){if("object"!==typeof e)throw new TypeError(t)}(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const n=Object.keys(e);return t(n.map((t=>e[t])),((...e)=>e.reduce(((e,t,r)=>(e[n[r]]=t,e)),{})))}),{withTypes:()=>v})},54074:(e,t,n)=>{var r=n(64503)(Object.keys,Object);e.exports=r},54090:(e,t,n)=>{"use strict";n.d(t,{m:()=>r});let r=function(e){return e.Grey="Grey",e.Green="Green",e.Blue="Blue",e.Yellow="Yellow",e.Orange="Orange",e.Red="Red",e}({})},54245:(e,t,n)=>{"use strict";n.d(t,{j:()=>i});var r=n(46878);function i(){return(0,r.w)().direction}},54309:(e,t,n)=>{"use strict";n.d(t,{YL:()=>l,nb:()=>s,vh:()=>o,x$:()=>a});var r=n(92459),i=n(52531);const o={summaryTab:"summaryTab",queryTab:"queryTab",diagnosticsTab:"diagnosticsTab",metricsTab:"metricsTab"},a=[{id:i.ml.overview,title:"Overview"},{id:i.ml.acl,title:"ACL"}],s=[{id:i.ml.schema,title:"Schema"}],l=e=>(0,r.KY)(r.Ay.tenant,void 0,e)},54353:(e,t,n)=>{var r=n(74413);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},54380:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},54386:(e,t,n)=>{var r=n(12249),i=n(75125),o=n(37530),a=n(19305);e.exports=function(e,t){return(a(e)?r:i)(e,o(t))}},54528:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},54533:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,o={},a=function(e){return(e=+e)+(e>68?1900:2e3)},s=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],c=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?"pm":"PM");return n},d={A:[i,function(e){this.afternoon=u(e,!1)}],a:[i,function(e){this.afternoon=u(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,s("seconds")],ss:[r,s("seconds")],m:[r,s("minutes")],mm:[r,s("minutes")],H:[r,s("hours")],h:[r,s("hours")],HH:[r,s("hours")],hh:[r,s("hours")],D:[r,s("day")],DD:[n,s("day")],Do:[i,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],M:[r,s("month")],MM:[n,s("month")],MMM:[i,function(e){var t=c("months"),n=(c("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[i,function(e){var t=c("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,s("year")],YY:[n,function(e){this.year=a(e)}],YYYY:[/\d{4}/,s("year")],Z:l,ZZ:l};function f(n){var r,i;r=n,i=o&&o.formats;for(var a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var o=r&&r.toUpperCase();return n||i[r]||e[r]||i[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,l=0;l<s;l+=1){var c=a[l],u=d[c],f=u&&u[0],p=u&&u[1];a[l]=p?{regex:f,parser:p}:c.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=a[n];if("string"==typeof i)r+=i.length;else{var o=i.regex,l=i.parser,c=e.slice(r),u=o.exec(c)[0];l.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(a=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if("string"==typeof s){var l=!0===a[2],c=!0===a[3],u=l||c,d=a[2];c&&(d=a[2]),o=this.$locale(),!l&&d&&(o=n.Ls[d]),this.$d=function(e,t,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var r=f(t)(e),i=r.year,o=r.month,a=r.day,s=r.hours,l=r.minutes,c=r.seconds,u=r.milliseconds,d=r.zone,p=new Date,h=a||(i||o?1:p.getDate()),m=i||p.getFullYear(),g=0;i&&!o||(g=o>0?o-1:p.getMonth());var v=s||0,y=l||0,b=c||0,w=u||0;return d?new Date(Date.UTC(m,g,h,v,y,b,w+60*d.offset*1e3)):n?new Date(Date.UTC(m,g,h,v,y,b,w)):new Date(m,g,h,v,y,b,w)}catch(e){return new Date("")}}(t,s,r),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date("")),o={}}else if(s instanceof Array)for(var p=s.length,h=1;h<=p;h+=1){a[1]=s[h-1];var m=n.apply(this,a);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}h===p&&(this.$d=new Date(""))}else i.call(this,e)}}}()},54573:(e,t,n)=>{var r=n(16320),i=n(72078),o=n(59698),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[r(e)]}},54736:(e,t,n)=>{var r=n(61522),i=n(82121),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return o.call(e,t)})))}:i;e.exports=s},54878:(e,t,n)=>{"use strict";n.d(t,{Hs:()=>O,P8:()=>N,SL:()=>T,p2:()=>L,U1:()=>F,In:()=>M,jC:()=>D});var r=n(97091),i=n(45264),o=n(19859),a=n(28197);const s=({href:e,singleClusterMode:t,customBackend:n})=>{if(t){if(n){var r;const t=null!==(r=new URL(e).searchParams.get("backend"))&&void 0!==r?r:void 0;return{basename:"/",backend:t||n}}{const e=window.location.pathname.match(/.*(?=\/monitoring)/)||[],t=e.length>0?e[0]:"";return{basename:[t,"monitoring"].filter(Boolean).join("/"),backend:t||""}}}{var i,o;const t=new URL(e).searchParams;return{basename:"/",backend:null!==(i=t.get("backend"))&&void 0!==i?i:void 0,clusterName:null!==(o=t.get("clusterName"))&&void 0!==o?o:void 0}}};var l=n(81463),c=n(21334),u=n(88610),d=n(49818),f=n(22735),p=n.n(f),h=n(96294),m=n.n(h),g=n(17148),v=n.n(g),y=n(74309),b=n.n(y),w=n(49526),x=n(93650),_=n(93694),E=n(92189),S=n(90565);const C={global:{problemFilter:{stateKey:"settings.problemFilter",initialState:u.ue.problemFilter}},"/tenant":{sort:{stateKey:"heatmap.sort",initialState:S.ue.sort,type:"bool"},heatmap:{stateKey:"heatmap.heatmap",initialState:S.ue.heatmap,type:"bool"},currentMetric:{stateKey:"heatmap.currentMetric",initialState:S.ue.currentMetric},tenantPage:{stateKey:"tenant.tenantPage"},queryTab:{stateKey:"tenant.queryTab"},diagnosticsTab:{stateKey:"tenant.diagnosticsTab"},summaryTab:{stateKey:"tenant.summaryTab"},metricsTab:{stateKey:"tenant.metricsTab"},shardsMode:{stateKey:"shardsWorkload.mode"},shardsDateFrom:{stateKey:"shardsWorkload.from"},shardsDateTo:{stateKey:"shardsWorkload.to"},topQueriesDateFrom:{stateKey:"executeTopQueries.from"},topQueriesDateTo:{stateKey:"executeTopQueries.to"},selectedConsumer:{stateKey:"partitions.selectedConsumer"}},"/cluster/tenants":{search:{stateKey:"tenants.searchValue"}}};function k(e,t){return v()({},e,t.query)}let O,N,T,A="";function I(e,t,n){const r=(0,E.stateToParams)(e,t,n);let{location:i}=r;if(i.search===A)return{location:n,shouldPush:!1};{const e=/\?\w+/;return A=i.search,e.test(n.search)&&(i=function(e,t){const{search:n,...r}=e,i=b().parse(t.search.slice(1)),o=(0,x.getMatchingDeclaredPath)(C,e),a=o&&C[o];p()(m()(a),(e=>{delete i[e]})),p()(m()(C.global||{}),(e=>{delete i[e]}));const s=b().stringify(i,{encoder:encodeURIComponent}),l=n.startsWith("?")?"&":"?";return{search:`${n}${l}${s}`,...r}}(i,n)),{...r,location:i}}}function P(e,t,n){return(r,i)=>{const o=((n,r)=>{const{type:i,payload:o}=r;if(!o)return n;if(w.LOCATION_POP===i||w.LOCATION_PUSH===i){const r=o;return r.query=(0,_.parseQuery)(e,o),t(n,r)}return n})(n(r,i),i);return o!==r?o:r}}function R(e,t,n,i){const{locationMiddleware:a,reducersWithLocation:s}=function(e,t){const{locationMiddleware:n}=(0,o.zx)(C,k,e,t,I);return{locationMiddleware:n,reducersWithLocation:P(C,k,t)}}(t,e),l=(0,r.U1)({reducer:s,preloadedState:n,middleware:e=>e({immutableCheck:!window.react_app_disable_checks&&{ignoredPaths:["tooltip.currentHoveredRef"]},serializableCheck:!window.react_app_disable_checks&&{ignoredPaths:["tooltip.currentHoveredRef","api"],ignoredActions:[d.oM,"api/sendQuery/rejected"]}}).concat(a,...i)});return(0,u.N8)(l),l}const D=window.web_version,j=window.custom_backend,M=window.meta_backend,L=window.code_assist_backend,z="undefined"===`${M}`;function F({aRootReducer:e=l.A,singleClusterMode:t=z,api:n=new a.i({webVersion:D,withCredentials:!j})}={}){({backend:O,basename:N,clusterName:T}=s({href:window.location.href,singleClusterMode:t,customBackend:j}));const r=(0,i.zR)({basename:N}),u=R(e,r,{singleClusterMode:t},[c.F.middleware]);return(0,o.BL)(u,r),window.api=n,{history:r,store:u}}},55330:(e,t,n)=>{"use strict";n.d(t,{M:()=>o});var r=n(59284),i=n(35719);const o=r.createContext({theme:i.z,activeMediaQuery:"s"})},55357:e=>{"use strict";e.exports=Object.getOwnPropertyDescriptor},55799:(e,t,n)=>{var r=n(74413),i=n(54353),o=n(72665),a=n(33120),s=n(99889);e.exports=function(e,t,n){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return i(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,n);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return o(e);case"[object Symbol]":return a(e)}}},56029:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.listenForHistoryChange=function(e,t){var n=function(e){return{type:r.LOCATION_POP,payload:e}};t.listen((function(){t&&t.action&&"POP"===t.action&&e.dispatch(n(t.location))})),t.listen((function(){t&&t.action&&"PUSH"===t.action&&e.dispatch(function(e){return{type:r.LOCATION_PUSH,payload:e}}(t.location))})),e.dispatch(n(t.location))};var r=n(49526)},56674:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>l,GJ:()=>c,gB:()=>s});var r=n(97091),i=n(21334),o=n(20680);const a=(0,r.Z0)({name:"tenants",initialState:{searchValue:""},reducers:{setSearchValue:(e,t)=>{e.searchValue=t.payload}}}),{setSearchValue:s}=a.actions,l=a.reducer,c=i.F.injectEndpoints({endpoints:e=>({getTenantsInfo:e.query({queryFn:async({clusterName:e},{signal:t,getState:n})=>{try{const r=window.api.meta?await window.api.meta.getTenants(e,{signal:t}):await window.api.viewer.getTenants(e,{signal:t});let i;if(Array.isArray(r.TenantInfo)){const{singleClusterMode:e}=n();i=(0,o.T3)(r.TenantInfo,e)}else i=[];return{data:i}}catch(r){return{error:r}}},providesTags:["All"]})}),overrideExisting:"throw"})},56839:(e,t,n)=>{"use strict";n.d(t,{tC:()=>v,z3:()=>g,iM:()=>R,r6:()=>D,lr:()=>w,ZV:()=>N,Nd:()=>C,l9:()=>T,Pt:()=>A,j9:()=>S,vX:()=>k,ki:()=>O,Ey:()=>j,wI:()=>_,vN:()=>M,H7:()=>x,CR:()=>I,U9:()=>y});var r=n(14750),i=n(15619),o=n(76086),a=n(79685),s=n(41650);function l(e,t,n,r,i,o,a=!1){let l=t(Number(n)),c=!0,u=0;(0,s.kf)(r)&&(l=t(Number(r)),c=a,u=1);return[e({value:n,withSizeLabel:c,size:i||l,precision:u,delimiter:o}),e({value:r,size:i||l,delimiter:o})]}var c=n(82621);const u={noUnit:{value:1,label:""},thousand:{value:1e3,label:(0,c.A)("label_thousand")},million:{value:1e6,label:(0,c.A)("label_million")},billion:{value:1e9,label:(0,c.A)("label_billion")},trillion:{value:1e12,label:(0,c.A)("label_trillion")}},d=e=>{let t="noUnit";return e>=u.thousand.value&&(t="thousand"),e>=u.million.value&&(t="million"),e>=u.billion.value&&(t="billion"),e>=u.trillion.value&&(t="trillion"),t},f=({value:e,size:t,withSizeLabel:n=!0,delimiter:r,...i})=>{if(!(0,s.kf)(e))return"";const o=Number(e),a=null!==t&&void 0!==t?t:d(o),l=(({value:e,size:t="thousand",precision:n=0})=>{const r=I(Number(e)/u[t].value,n);return N(r)})({value:o,size:a,...i});return n?((e,t,n=s.en)=>{const r=u[t].label;return r?e+n+r:e})(l,a,r):l};var p=n(48372);const h=JSON.parse('{"format-cpu.cores":["core","cores","cores","cores"],"d":"d","s":"s"}'),m=(0,p.g4)("ydb-format-cpu",{en:h}),g=e=>(0,s.kf)(e)?(0,a.p)(e).format("0 b"):"",v=e=>{const t=g(e);return t?t+"/s":""},y=e=>e?Object.values(e).join("-"):"";function b(e){if(!(0,s.kf)(e))return;const t=e<0?"-":"",n=(0,r.p0)(Math.abs(e),"s").rescale();let i;return i=Math.floor(n.asDays())>0?n.format(`d[${m("d")}${s.en}]hh:mm:ss`):n.hours()>0?n.format("h:mm:ss"):n.minutes()>0?n.format("m:ss"):n.format(`s[${m("s")}]`),t+i}const w=e=>b(Number(e)/1e3);function x(e,t){let n=E(e,t);return n=n<0?0:n,b(n)}function _(e,t){let n=E(e,t);return n=n<0?0:n,b(-n)}function E(e,t=(new Date).getTime()){return(Number(t)-Number(e))/1e3}function S(e,t,n,r,o){return l(i.z,i.f,e,t,n,r,o)}function C(e,t,n,r,i){return l(f,d,e,t,n,r,i)}const k=(e,t)=>S(e,t,"gb"),O=(e,t)=>S(e,t,"tb"),N=e=>(0,s.kf)(e)?(0,a.p)(e).format("0,0.[00000]"):"",T=(e,t=2)=>{if(!(0,s.kf)(e))return"";const n=Number(e).toFixed(t);return(0,a.p)(n).format("0.[00]%")},A=e=>{const t=(e/o.Jg).toFixed(2);return`${N(t)} hours`},I=(e,t=0)=>{const n=Math.abs(Number(e));let[r]=String(n).split(".");return Number(n)<1&&(r=""),r.length>=t?Number(Number(e).toFixed(0)):Number(Number(e).toFixed(t-r.length))},P=e=>{const t=Number(e)/1e6;return I(t,3)},R=e=>{if(void 0!==e)return(0,a.p)(P(e)).format("0.[000]")},D=(e,{withTimeZone:t,defaultValue:n=""}={})=>{var i;const o=t?" z":"",a=null===(i=(0,r.bQ)(Number(e)))||void 0===i?void 0:i.format(`YYYY-MM-DD HH:mm${o}`);return null!==a&&void 0!==a?a:n},j=(e,t="")=>{var n;const i=null===(n=(0,r.bQ)(e))||void 0===n?void 0:n.format("YYYY-MM-DD HH:mm:ss.SSS");return null!==i&&void 0!==i?i:t};function M(e){return void 0===e?"":"object"===typeof e?JSON.stringify(e):e.toString()}},56932:(e,t,n)=>{const r=n(22750).getSymbolSize;t.getPositions=function(e){const t=r(e);return[[0,0],[t-7,0],[0,t-7]]}},56993:function(e,t,n){var r,i,o;"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self&&self,i=[t,n(59284),n(60712)],r=function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,v(r.key),r)}}function a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e,t,n){return t=d(t),l(e,u()?Reflect.construct(t,n||[],d(e).constructor):t.apply(e,n))}function l(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return c(e)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t,n){return(t=v(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e){var t=y(e,"string");return"symbol"==r(t)?t:t+""}function y(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var b={x:"clientWidth",y:"clientHeight"},w={x:"clientTop",y:"clientLeft"},x={x:"innerWidth",y:"innerHeight"},_={x:"offsetWidth",y:"offsetHeight"},E={x:"offsetLeft",y:"offsetTop"},S={x:"overflowX",y:"overflowY"},C={x:"scrollWidth",y:"scrollHeight"},k={x:"scrollLeft",y:"scrollTop"},O={x:"width",y:"height"},N=function(){},T=!!function(){if("undefined"===typeof window)return!1;var e=!1;try{document.createElement("div").addEventListener("test",N,{get passive(){return e=!0,!1}})}catch(t){}return e}()&&{passive:!0},A="ReactList failed to reach a stable state.",I=40,P=function(e,t){for(var n in t)if(e[n]!==t[n])return!1;return!0},R=function(e){for(var t=e.props.axis,n=e.getEl(),r=S[t];n=n.parentElement;)switch(window.getComputedStyle(n)[r]){case"auto":case"scroll":case"overlay":return n}return window},D=function(e){var t=e.props.axis,n=e.scrollParent;return n===window?window[x[t]]:n[b[t]]},j=function(e,t){var n=e.length,r=e.minSize,i=e.type,o=t.from,a=t.size,s=t.itemsPerRow,l=(a=Math.max(a,r))%s;return l&&(a+=s-l),a>n&&(a=n),(l=(o="simple"!==i&&o?Math.max(Math.min(o,n-a),0):0)%s)&&(o-=l,a+=l),o===t.from&&a===t.size?t:m(m({},t),{},{from:o,size:a})},M=e.default=function(e){function t(e){var n;return i(this,t),(n=s(this,t,[e])).state=j(e,{itemsPerRow:1,from:e.initialIndex,size:0}),n.cache={},n.cachedScrollPosition=null,n.prevPrevState={},n.unstable=!1,n.updateCounter=0,n}return f(t,e),a(t,[{key:"componentDidMount",value:function(){this.updateFrameAndClearCache=this.updateFrameAndClearCache.bind(this),window.addEventListener("resize",this.updateFrameAndClearCache),this.updateFrame(this.scrollTo.bind(this,this.props.initialIndex))}},{key:"componentDidUpdate",value:function(e){var t=this;if(this.props.axis!==e.axis&&this.clearSizeCache(),!this.unstable){if(++this.updateCounter>I)return this.unstable=!0,console.error(A);this.updateCounterTimeoutId||(this.updateCounterTimeoutId=setTimeout((function(){t.updateCounter=0,delete t.updateCounterTimeoutId}),0)),this.updateFrame()}}},{key:"maybeSetState",value:function(e,t){if(P(this.state,e))return t();this.setState(e,t)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.updateFrameAndClearCache),this.scrollParent.removeEventListener("scroll",this.updateFrameAndClearCache,T),this.scrollParent.removeEventListener("mousewheel",N,T)}},{key:"getOffset",value:function(e){var t=this.props.axis,n=e[w[t]]||0,r=E[t];do{n+=e[r]||0}while(e=e.offsetParent);return n}},{key:"getEl",value:function(){return this.el||this.items}},{key:"getScrollPosition",value:function(){if("number"===typeof this.cachedScrollPosition)return this.cachedScrollPosition;var e=this.scrollParent,t=this.props.axis,n=k[t],r=e===window?document.body[n]||document.documentElement[n]:e[n],i=this.getScrollSize()-this.props.scrollParentViewportSizeGetter(this),o=Math.max(0,Math.min(r,i)),a=this.getEl();return this.cachedScrollPosition=this.getOffset(e)+o-this.getOffset(a),this.cachedScrollPosition}},{key:"setScroll",value:function(e){var t=this.scrollParent,n=this.props.axis;if(e+=this.getOffset(this.getEl()),t===window)return window.scrollTo(0,e);e-=this.getOffset(this.scrollParent),t[k[n]]=e}},{key:"getScrollSize",value:function(){var e=this.scrollParent,t=document,n=t.body,r=t.documentElement,i=C[this.props.axis];return e===window?Math.max(n[i],r[i]):e[i]}},{key:"hasDeterminateSize",value:function(){var e=this.props,t=e.itemSizeGetter;return"uniform"===e.type||t}},{key:"getStartAndEnd",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.threshold,t=this.getScrollPosition(),n=Math.max(0,t-e),r=t+this.props.scrollParentViewportSizeGetter(this)+e;return this.hasDeterminateSize()&&(r=Math.min(r,this.getSpaceBefore(this.props.length))),{start:n,end:r}}},{key:"getItemSizeAndItemsPerRow",value:function(){var e=this.props,t=e.axis,n=e.useStaticSize,r=this.state,i=r.itemSize,o=r.itemsPerRow;if(n&&i&&o)return{itemSize:i,itemsPerRow:o};var a=this.items.children;if(!a.length)return{};var s=a[0],l=s[_[t]],c=Math.abs(l-i);if((isNaN(c)||c>=1)&&(i=l),!i)return{};for(var u=E[t],d=s[u],f=a[o=1];f&&f[u]===d;f=a[o])++o;return{itemSize:i,itemsPerRow:o}}},{key:"clearSizeCache",value:function(){this.cachedScrollPosition=null}},{key:"updateFrameAndClearCache",value:function(e){return this.clearSizeCache(),this.updateFrame(e)}},{key:"updateFrame",value:function(e){switch(this.updateScrollParent(),"function"!==typeof e&&(e=N),this.props.type){case"simple":return this.updateSimpleFrame(e);case"variable":return this.updateVariableFrame(e);case"uniform":return this.updateUniformFrame(e)}}},{key:"updateScrollParent",value:function(){var e=this.scrollParent;this.scrollParent=this.props.scrollParentGetter(this),e!==this.scrollParent&&(e&&(e.removeEventListener("scroll",this.updateFrameAndClearCache),e.removeEventListener("mousewheel",N)),this.clearSizeCache(),this.scrollParent.addEventListener("scroll",this.updateFrameAndClearCache,T),this.scrollParent.addEventListener("mousewheel",N,T))}},{key:"updateSimpleFrame",value:function(e){var t=this.getStartAndEnd().end,n=this.items.children,r=0;if(n.length){var i=this.props.axis,o=n[0],a=n[n.length-1];r=this.getOffset(a)+a[_[i]]-this.getOffset(o)}if(r>t)return e();var s=this.props,l=s.pageSize,c=s.length,u=Math.min(this.state.size+l,c);this.maybeSetState({size:u},e)}},{key:"updateVariableFrame",value:function(e){this.props.itemSizeGetter||this.cacheSizes();for(var t=this.getStartAndEnd(),n=t.start,r=t.end,i=this.props,o=i.length,a=i.pageSize,s=0,l=0,c=0,u=o-1;l<u;){var d=this.getSizeOfItem(l);if(null==d||s+d>n)break;s+=d,++l}for(var f=o-l;c<f&&s<r;){var p=this.getSizeOfItem(l+c);if(null==p){c=Math.min(c+a,f);break}s+=p,++c}this.maybeSetState(j(this.props,{from:l,itemsPerRow:1,size:c}),e)}},{key:"updateUniformFrame",value:function(e){var t=this.getItemSizeAndItemsPerRow(),n=t.itemSize,r=t.itemsPerRow;if(!n||!r)return e();var i=this.getStartAndEnd(),o=i.start,a=i.end,s=j(this.props,{from:Math.floor(o/n)*r,size:(Math.ceil((a-o)/n)+1)*r,itemsPerRow:r}),l=s.from,c=s.size;return this.maybeSetState({itemsPerRow:r,from:l,itemSize:n,size:c},e)}},{key:"getSpaceBefore",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null!=t[e])return t[e];var n=this.state,r=n.itemSize,i=n.itemsPerRow;if(r)return t[e]=Math.floor(e/i)*r;for(var o=e;o>0&&null==t[--o];);for(var a=t[o]||0,s=o;s<e;++s){t[s]=a;var l=this.getSizeOfItem(s);if(null==l)break;a+=l}return t[e]=a}},{key:"cacheSizes",value:function(){for(var e=this.cache,t=this.state.from,n=this.items.children,r=_[this.props.axis],i=0,o=n.length;i<o;++i)e[t+i]=n[i][r]}},{key:"getSizeOfItem",value:function(e){var t=this.cache,n=this.items,r=this.props,i=r.axis,o=r.itemSizeGetter,a=r.itemSizeEstimator,s=r.type,l=this.state,c=l.from,u=l.itemSize,d=l.size;if(u)return u;if(o)return o(e);if(e in t)return t[e];if("simple"===s&&e>=c&&e<c+d&&n){var f=n.children[e-c];if(f)return f[_[i]]}return a?a(e,t):void 0}},{key:"scrollTo",value:function(e){null!=e&&this.setScroll(this.getSpaceBefore(e))}},{key:"scrollAround",value:function(e){var t=this.getScrollPosition(),n=this.getSpaceBefore(e),r=n-this.props.scrollParentViewportSizeGetter(this)+this.getSizeOfItem(e),i=Math.min(r,n),o=Math.max(r,n);return t<=i?this.setScroll(i):t>o?this.setScroll(o):void 0}},{key:"getVisibleRange",value:function(){for(var e,t,n=this.state,r=n.from,i=n.size,o=this.getStartAndEnd(0),a=o.start,s=o.end,l={},c=r;c<r+i;++c){var u=this.getSpaceBefore(c,l),d=u+this.getSizeOfItem(c);null==e&&d>a&&(e=c),null!=e&&u<s&&(t=c)}return[e,t]}},{key:"renderItems",value:function(){for(var e=this,t=this.props,n=t.itemRenderer,r=t.itemsRenderer,i=this.state,o=i.from,a=i.size,s=[],l=0;l<a;++l)s.push(n(o+l,l));return r(s,(function(t){return e.items=t}))}},{key:"render",value:function(){var e=this,t=this.props,r=t.axis,i=t.length,o=t.type,a=t.useTranslate3d,s=this.state,l=s.from,c=s.itemsPerRow,u=this.renderItems();if("simple"===o)return u;var d={position:"relative"},f={},p=Math.ceil(i/c)*c,h=this.getSpaceBefore(p,f);h&&(d[O[r]]=h,"x"===r&&(d.overflowX="hidden"));var m=this.getSpaceBefore(l,f),g="x"===r?m:0,v="y"===r?m:0,y=a?"translate3d(".concat(g,"px, ").concat(v,"px, 0)"):"translate(".concat(g,"px, ").concat(v,"px)"),b={msTransform:y,WebkitTransform:y,transform:y};return(0,n.jsx)("div",{style:d,ref:function(t){return e.el=t},children:(0,n.jsx)("div",{style:b,children:u})})}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=j(e,t);return n===t?null:n}}])}(t.Component);g(M,"displayName","ReactList"),g(M,"defaultProps",{axis:"y",itemRenderer:function(e,t){return(0,n.jsx)("div",{children:e},t)},itemsRenderer:function(e,t){return(0,n.jsx)("div",{ref:t,children:e})},length:0,minSize:1,pageSize:10,scrollParentGetter:R,scrollParentViewportSizeGetter:D,threshold:100,type:"simple",useStaticSize:!1,useTranslate3d:!1})},void 0===(o="function"===typeof r?r.apply(t,i):r)||(e.exports=o)},57467:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.createReduxLocationActions=function(e,t,n,l){var c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:s.stateToParams;e[o.RLSCONFIG]&&e[o.RLSCONFIG][o.OVERWRITE_ACCESSORS]&&Object.keys(e[o.RLSCONFIG][o.OVERWRITE_ACCESSORS]).forEach((function(t){(0,o.overrideAccessors)(t,e[o.RLSCONFIG][o.OVERWRITE_ACCESSORS][t])}));var u={};return{locationMiddleware:function(t){return function(r){return function(i){var a=t.getState(),s=r(i),l=t.getState(),d=n.location,f=d.pathname!==u.pathname;if(l!==a||f){u=d;var p=c(e,l,d),h=p.shouldPush,m=p.location;(0,o.isEqual)(m,d)||(h&&!f?n.push(m):n.replace(m))}return s}}},reducersWithLocation:function(n,o){var s=function(n,o){var s=o.type,l=o.payload;if(s!==i.LOCATION_POP||!l)return n;var c=r({},l,{query:(0,a.parseQuery)(e,l)});return t(n,c)}(l(n,o),o);return s!==n?s:n}}};var i=n(49526),o=n(93650),a=n(93694),s=n(92189)},57491:function(e,t,n){"use strict";var r,i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.DurationImpl=void 0,t.isDuration=function(e){return p.isDuration(e)};var a=n(16244),s=n(77966),l=n(13064),c=n(16572),u=n(50743),d=n(49860),f=Symbol("isDuration"),p=function(){function e(e){this[r]=!0,this._values=e.values,this._locale=e.locale||s.settings.getLocale(),this._isValid=e.isValid||!0}return e.isDuration=function(e){return"object"===typeof e&&e&&f in e&&!0===e[f]||!1},e.prototype.get=function(e){if(!this.isValid())return NaN;var t=(0,l.normalizeDurationUnit)(e);return this._values[t]||0},e.prototype.set=function(t){return this.isValid()?new e({values:i(i({},this._values),(0,l.normalizeDateComponents)(t,l.normalizeDurationUnit)),locale:this._locale}):this},e.prototype.as=function(e){if(!this.isValid())return NaN;var t=(0,l.normalizeDurationUnit)(e),n=this.days()+7*this.weeks()+this.hours()/24+this.minutes()/1440+this.seconds()/86400,r=this.months()+3*this.quarters()+12*this.years(),i=this.milliseconds();if("months"===t||"quarters"===t||"years"===t){var o=r+function(e){return 4800*e/146097}(n+i/864e5);switch(t){case"months":return o;case"quarters":return o/3;case"years":return o/12}}var a=n+function(e){return 146097*e/4800}(r);switch(t){case"weeks":return a/7+i/6048e5;case"days":return a+i/864e5;case"hours":return 24*a+i/36e5;case"minutes":return 1440*a+i/6e4;case"seconds":return 86400*a+i/1e3;case"milliseconds":return Math.floor(864e5*a)+i;default:throw new Error("Unknown unit "+t)}},e.prototype.milliseconds=function(){return this.isValid()?this._values.milliseconds||0:NaN},e.prototype.asMilliseconds=function(){return this.as("milliseconds")},e.prototype.seconds=function(){return this.isValid()?this._values.seconds||0:NaN},e.prototype.asSeconds=function(){return this.as("seconds")},e.prototype.minutes=function(){return this.isValid()?this._values.minutes||0:NaN},e.prototype.asMinutes=function(){return this.as("minutes")},e.prototype.hours=function(){return this.isValid()?this._values.hours||0:NaN},e.prototype.asHours=function(){return this.as("hours")},e.prototype.days=function(){return this.isValid()?this._values.days||0:NaN},e.prototype.asDays=function(){return this.as("days")},e.prototype.weeks=function(){return this.isValid()?this._values.weeks||0:NaN},e.prototype.asWeeks=function(){return this.as("weeks")},e.prototype.months=function(){return this.isValid()?this._values.months||0:NaN},e.prototype.asMonths=function(){return this.as("months")},e.prototype.quarters=function(){return this.isValid()?this._values.quarters||0:NaN},e.prototype.asQuarters=function(){return this.as("quarters")},e.prototype.years=function(){return this.isValid()?this._values.years||0:NaN},e.prototype.asYears=function(){return this.as("years")},e.prototype.add=function(t,n){if(!this.isValid())return this;for(var r=this.toObject(),i=(0,u.createDuration)(t,n).toObject(),o=0,a=Object.entries(i);o<a.length;o++){var s=a[o],l=s[0],c=s[1],d=l;r[d]=(r[d]||0)+c}return new e({values:r,locale:this._locale})},e.prototype.subtract=function(e,t){var n=(0,u.createDuration)(e,t).negate();return this.add(n)},e.prototype.negate=function(){for(var t={},n=0,r=Object.entries(this._values);n<r.length;n++){var i=r[n],o=i[0],a=i[1];t[o]=a?-a:0}return new e({values:t,locale:this._locale})},e.prototype.normalize=function(t){return this.isValid()?new e({values:(0,d.normalizeValues)(this._values,t),locale:this._locale}):this},e.prototype.shiftTo=function(t,n){if(!this.isValid())return this;var r=t.map((function(e){return(0,l.normalizeDurationUnit)(e)}));return new e({values:(0,d.shiftTo)(this._values,r,n),locale:this._locale})},e.prototype.rescale=function(t){return this.isValid()?new e({values:(0,d.rescale)(this._values,t),locale:this._locale}):this},e.prototype.toISOString=function(){if(!this.isValid())return"Invalid Duration";var e="P";return 0!==this.years()&&(e+=this.years()+"Y"),0===this.months()&&0===this.quarters()||(e+=this.months()+3*this.quarters()+"M"),0!==this.weeks()&&(e+=this.weeks()+"W"),0!==this.days()&&(e+=this.days()+"D"),0===this.hours()&&0===this.minutes()&&0===this.seconds()&&0===this.milliseconds()||(e+="T"),0!==this.hours()&&(e+=this.hours()+"H"),0!==this.minutes()&&(e+=this.minutes()+"M"),0===this.seconds()&&0===this.milliseconds()||(e+=Math.round(1e3*this.seconds()+this.milliseconds())/1e3+"S"),"P"===e&&(e+="T0S"),e},e.prototype.toJSON=function(){return this.toISOString()},e.prototype.toObject=function(){return this.isValid()?i({},this._values):{}},e.prototype.toString=function(){return this.toISOString()},e.prototype.valueOf=function(){return this.asMilliseconds()},e.prototype[(r=f,Symbol.for("nodejs.util.inspect.custom"))]=function(){return this.isValid()?"Duration { values: ".concat(JSON.stringify(this._values)," }"):"Duration { Invalid Duration }"},e.prototype.humanize=function(e){if(!this.isValid())return"Invalid Duration";var t=(0,c.getLocaleData)(this._locale);return(0,a.fromTo)(this,t.relativeTime,!e)},e.prototype.humanizeIntl=function(e){var t=this;if(void 0===e&&(e={}),!this.isValid())return"Invalid Duration";var n=d.orderedUnits.map((function(n){var r=t._values[n];return void 0===r?null:(0,c.getNumberFormat)(t._locale,i(i({style:"unit",unitDisplay:"long"},e),{unit:n.slice(0,-1)})).format(r)})).filter(Boolean);return(0,c.getListFormat)(this._locale,{type:"conjunction",style:e.listStyle||"narrow"}).format(n)},e.prototype.format=function(e,t){if(void 0===t&&(t={}),!this.isValid())return"Invalid Duration";for(var n,r=/(\[[^[]*\])|y+|M+|w+|d+|h+|m+|s+|S+|./g,a=[],s=[];n=r.exec(e);){var l=n[0],u=n[1],d=h(l[0]);d?(a.push({literal:!1,padTo:l.length,unit:d}),s.push(d)):u?a.push({literal:!0,value:u.slice(1,-1)}):a.push({literal:!0,value:l})}for(var f=this.shiftTo(s),p="",m=t.floor,g=void 0===m||m,v=t.forceSimple,y=o(t,["floor","forceSimple"]),b=!v||Object.keys(y).length>0,w=0,x=a;w<x.length;w++){var _=x[w];if(_.literal)p+=_.value;else{var E=f.get(_.unit);if(b){var S=(0,c.getNumberFormat)(this._locale,i(i({useGrouping:!1},y),{minimumIntegerDigits:_.padTo})),C=g?Math.floor(E):E;p+=S.format(C)}else{C=g?Math.floor(E):Math.round(1e3*E)/1e3;p+="".concat(C<0?"-":"").concat(Math.abs(C).toString().padStart(_.padTo,"0"))}}}return p},e.prototype.isValid=function(){return this._isValid},e.prototype.locale=function(t){return t?new e({values:this._values,locale:t}):this._locale},e}();function h(e){switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}}t.DurationImpl=p},57578:(e,t,n)=>{var r=n(92470)(Object,"create");e.exports=r},57741:e=>{e.exports=function(e){return function(t){return e(t)}}},57855:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isLikeRelative=function(e){return e.startsWith("now")},t.parse=function(e,t){void 0===t&&(t={});if(!e)return;var n,i,a,s=t.roundUp,l=t.timeZone,c="";"now"===e.substring(0,3)?(n=(0,r.dateTime)({timeZone:l}),c=e.substring(3)):(-1===(i=e.indexOf("||"))?(a=e,c=""):(a=e.substring(0,i),c=e.substring(i+2)),n=(0,r.dateTime)({input:a,timeZone:l}));if(!n.isValid())return;if(!c.length)return n;return o(c,n,s)},t.parseDateMath=o;var r=n(60166),i=["y","Q","M","w","d","h","m","s"];function o(e,t,n){for(var r=e.replace(/\s/g,""),o=t,a=0,s=r.length;a<s;){var l=r.charAt(a++),c=void 0,u=void 0;if("/"===l)c=0;else if("+"===l)c=1;else{if("-"!==l)return;c=2}if(isNaN(parseInt(r.charAt(a),10)))u=1;else if(2===r.length)u=parseInt(r.charAt(a),10);else{for(var d=a;!isNaN(parseInt(r.charAt(a),10));)if(++a>10)return;u=parseInt(r.substring(d,a),10)}if(0===c&&1!==u)return;var f=r.charAt(a++);if(!i.includes(f))return;0===c?o=n?o.endOf(f):o.startOf(f):1===c?o=o.add(u,f):2===c&&(o=o.subtract(u,f))}return o}},58120:(e,t,n)=>{var r=n(78195)("toUpperCase");e.exports=r},58168:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{A:()=>r})},58351:(e,t,n)=>{"use strict";n.d(t,{Hs:()=>r.Hs,In:()=>r.In,P8:()=>r.P8,SL:()=>r.SL,U1:()=>r.U1,d$:()=>i.d,jC:()=>r.jC,p2:()=>r.p2});var r=n(54878),i=n(81463)},58671:(e,t,n)=>{var r=n(35367);e.exports=function(e){return r(e,5)}},58899:e=>{"use strict";e.exports=Number.isNaN||function(e){return e!==e}},59001:(e,t,n)=>{"use strict";n.d(t,{c:()=>s,f:()=>l});var r=n(52531),i=n(76086),o=n(11822),a=n(41650);const s={[i.k4]:"system",[i.jS]:void 0,[i.TJ]:!1,[i.RY]:!0,[i.ld]:[],[i.Mt]:r.Dg.query,[i.zk]:o.x5.execute,[i.LQ]:!0,[i.bs]:[],[i.g5]:!1,[i.lr]:!1,[i.s2]:!0,[i.LK]:!0,[i.bz]:!0,[i.kO]:!1,[i.IO]:!0,[i.Gj]:!1,[i.av]:0,[i.iD]:!1,[i.Xm]:!1,[i.J0]:!1,[i.fr]:void 0,[i.YQ]:void 0,[i.c4]:o.jU};const l=new class{constructor(){this.extractSettingsFromLS=e=>Object.entries(e).reduce(((e,[t,n])=>(e[t]=this.readUserSettingsValue(t,n),e)),{}),this.readValueFromLS=e=>{try{const t=localStorage.getItem(e);return(0,a.qF)(t)}catch{return}},this.setValueToLS=(e,t)=>{try{"string"===typeof t?localStorage.setItem(e,t):localStorage.setItem(e,JSON.stringify(t))}catch{}}}readUserSettingsValue(e,t){var n;return null!==(n=this.readValueFromLS(e))&&void 0!==n?n:t}setUserSettingsValue(e,t){return this.setValueToLS(e,t)}}},59109:(e,t,n)=>{"use strict";n.d(t,{O:()=>s});var r=n(7889),i=n(78524),o=n(31062),a=n(60712);const s=({title:e,description:t,...n})=>(0,a.jsx)(r.p,{image:(0,a.jsx)(i.v,{name:"403"}),title:e||(0,o.A)("403.title"),description:t||(0,o.A)("403.description"),...n})},59284:(e,t,n)=>{"use strict";e.exports=n(50943)},59368:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},59495:(e,t,n)=>{const r=n(3309),i=n(84405),o=n(97763),a=n(1836);function s(e,t,n,o,a){const s=[].slice.call(arguments,1),l=s.length,c="function"===typeof s[l-1];if(!c&&!r())throw new Error("Callback required as last argument");if(!c){if(l<1)throw new Error("Too few arguments provided");return 1===l?(n=t,t=o=void 0):2!==l||t.getContext||(o=n,n=t,t=void 0),new Promise((function(r,a){try{const a=i.create(n,o);r(e(a,t,o))}catch(s){a(s)}}))}if(l<2)throw new Error("Too few arguments provided");2===l?(a=n,n=t,t=o=void 0):3===l&&(t.getContext&&"undefined"===typeof a?(a=o,o=void 0):(a=o,o=n,n=t,t=void 0));try{const r=i.create(n,o);a(null,e(r,t,o))}catch(u){a(u)}}t.create=i.create,t.toCanvas=s.bind(null,o.render),t.toDataURL=s.bind(null,o.renderToDataURL),t.toString=s.bind(null,(function(e,t,n){return a.render(e,n)}))},59625:(e,t,n)=>{"use strict";n.d(t,{X:()=>re});var r=n(5906),i=n(59284),o=n(87924),a=n.n(o),s=n(48681),l=n(69220);function c(e,t){return e.findIndex((e=>e.name===t))}function u(e,t){return-1!==c(e,t)}function d(e,t){return u(e,t)?e.filter((e=>e.name!==t)):e}const f=i.createContext(null);f.displayName="ToasterContext";const p=i.createContext([]);p.displayName="ToastsContext";const h=i.forwardRef((function({children:e},t){const[n,r]=i.useState([]),o=i.useCallback((e=>{const{name:t}=e;r((n=>{let r=n;return u(n,t)&&(r=d(n,t)),[...r,Object.assign(Object.assign({},e),{addedAt:Date.now(),ref:i.createRef()})]}))}),[]),a=i.useCallback((e=>{r((t=>d(t,e)))}),[]),s=i.useCallback((()=>{r((()=>[]))}),[]),l=i.useCallback(((e,t)=>{r((n=>{if(!u(n,e))return n;const r=c(n,e);return[...n.slice(0,r),Object.assign(Object.assign({},n[r]),t),...n.slice(r+1)]}))}),[]),h=i.useRef(n);i.useEffect((()=>{h.current=n}),[n]);const m=i.useCallback((e=>!!h.current&&u(h.current,e)),[]),g=i.useMemo((()=>({add:o,remove:a,removeAll:s,update:l,has:m})),[o,a,s,l,m]);return i.useImperativeHandle(t,(()=>({add:o,remove:a,removeAll:s,update:l,has:m}))),i.createElement(f.Provider,{value:g},i.createElement(p.Provider,{value:n},e))}));h.displayName="ToasterProvider";var m=n(46819),g=n(98587),v=n(58168),y=n(9417),b=n(25540),w=n(10641);function x(e,t){var n=Object.create(null);return e&&i.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,i.isValidElement)(e)?t(e):e}(e)})),n}function _(e,t,n){return null!=n[t]?n[t]:e.props[t]}function E(e,t,n){var r=x(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var c=i[l][r];s[i[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(t,r);return Object.keys(o).forEach((function(a){var s=o[a];if((0,i.isValidElement)(s)){var l=a in t,c=a in r,u=t[a],d=(0,i.isValidElement)(u)&&!u.props.in;!c||l&&!d?c||!l||d?c&&l&&(0,i.isValidElement)(u)&&(o[a]=(0,i.cloneElement)(s,{onExited:n.bind(null,s),in:u.props.in,exit:_(s,"exit",e),enter:_(s,"enter",e)})):o[a]=(0,i.cloneElement)(s,{in:!1}):o[a]=(0,i.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:_(s,"exit",e),enter:_(s,"enter",e)})}})),o}var S=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},C=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind((0,y.A)(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}(0,b.A)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,x(n.children,(function(e){return(0,i.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:_(e,"appear",n),enter:_(e,"enter",n),exit:_(e,"exit",n)})}))):E(e,o,a),firstRender:!1}},n.handleExited=function(e,t){var n=x(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,v.A)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=(0,g.A)(e,["component","childFactory"]),o=this.state.contextValue,a=S(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?i.createElement(w.A.Provider,{value:o},a):i.createElement(w.A.Provider,{value:o},i.createElement(t,r,a))},t}(i.Component);C.propTypes={},C.defaultProps={component:"div",childFactory:function(e){return e}};const k=C;var O=n(72630),N=n(6826),T=n(43937),A=n(70825),I=n(94420),P=n(27612),R=n(81240);function D({onClose:e,timeout:t}){const[n,r,o]=function(){const[e,t]=i.useState(!1);return[i.useCallback((()=>{t(!0)}),[]),i.useCallback((()=>{t(!1)}),[]),e]}();var a,s;return a=e,s=o?null:t,i.useEffect((()=>{if("number"!==typeof s)return;const e=setTimeout((()=>{a()}),s);return()=>{clearTimeout(e)}}),[a,s]),{onMouseOver:n,onMouseLeave:r}}var j=n(84476),M=n(99991),L=n(72837);const z=JSON.parse('{"label_close-button":"Close"}'),F=JSON.parse('{"label_close-button":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"}'),B=(0,L.N)({en:z,ru:F},"Toaster"),U=(0,l.om)("toast"),q=5e3,$={normal:null,info:T.A,success:A.A,warning:I.A,danger:I.A,utility:P.A};const H=i.forwardRef((function(e,t){const{name:n,content:r,actions:o,title:a,className:s,theme:l="normal",renderIcon:c,autoHiding:u=q,isClosable:d=!0,mobile:f=!1,onClose:p,removeCallback:h}=e,m=i.useCallback((()=>{h(n),p&&p()}),[h,p,n]),g=D({onClose:m,timeout:"number"===typeof u?u:void 0}),v={mobile:f,theme:l},y=Boolean(a),b=Boolean(r),w=c?c(e):function({theme:e}){return e&&$[e]?i.createElement(M.I,{data:$[e],size:20,className:U("icon",{[e]:!0})}):null}({theme:l});return i.createElement("div",Object.assign({ref:t,className:U(v,s)},g,{"data-toast":!0}),w&&i.createElement("div",{className:U("icon-container")},w),i.createElement("div",{className:U("container")},y&&i.createElement("h3",{className:U("title")},a),d&&i.createElement(j.$,{size:"s",view:"flat",className:U("btn-close"),onClick:m,extraProps:{"aria-label":B("label_close-button")}},i.createElement(M.I,{data:R.A})),b&&i.createElement("div",{className:U("content",{"without-title":!y})},r),function({actions:e,onClose:t}){return e&&e.length?i.createElement("div",{className:U("actions")},e.map((({label:e,onClick:n,view:r="outlined",removeAfterClick:o=!0},a)=>i.createElement(j.$,{key:`${e}__${a}`,className:U("action"),onClick:()=>{n(),o&&t()},type:"button",size:"l",view:r,width:"auto"},e)))):null}({actions:o,onClose:m})))})),V=(0,N.L)((0,l.om)("toast-animation-desktop")),W=(0,N.L)((0,l.om)("toast-animation-mobile"));function K(e){const{toasts:t,mobile:n,removeCallback:r}=e;return i.createElement(k,{component:null},t.map((e=>i.createElement(O.A,{key:`${e.name}_${e.addedAt}`,nodeRef:e.ref,classNames:n?W:V,addEndListener:t=>{var n,r;return null===(r=null===(n=e.ref)||void 0===n?void 0:n.current)||void 0===r?void 0:r.addEventListener("animationend",t)},onEnter:()=>G(e),onExit:()=>G(e)},i.createElement(H,Object.assign({},e,{mobile:n,removeCallback:r}))))))}function G(e){var t;(null===(t=e.ref)||void 0===t?void 0:t.current)&&e.ref.current.style.setProperty("--_--item-height",`${e.ref.current.offsetHeight}px`)}var Y=n(98392);const Q=(0,l.om)("toaster");function Z({children:e,className:t,mobile:n}){const r=i.useRef("undefined"===typeof document?void 0:document.createElement("div"));return i.useEffect((()=>{const e=r.current;if(e)return document.body.appendChild(e),()=>{document.body.removeChild(e)}}),[]),i.useEffect((()=>{r.current&&(r.current.className=Q({mobile:n},t))}),[t,n]),i.createElement(Y.Z,{container:r.current},e)}function J({className:e,mobile:t,hasPortal:n=!0}){const r=(0,m.I)(),{remove:o}=function(){const e=i.useContext(f);if(null===e)throw new Error("Toaster: `useToaster` hook is used out of context");return i.useMemo((()=>e),[e])}(),a=i.useContext(p),s=i.createElement(K,{toasts:a,removeCallback:o,mobile:null!==t&&void 0!==t?t:r});return n?i.createElement(Z,{className:e||"",mobile:null!==t&&void 0!==t?t:r},s):s}Z.displayName="ToasterPortal",J.displayName="ToasterComponent";const X=Symbol("Toaster instance key"),ee=(0,l.om)("toaster");let te;class ne{static injectReactDOMClient(e){te=e}constructor(e){this.className="",this.mobile=!1,this.componentAPI=null,this.add=e=>{var t;null===(t=this.componentAPI)||void 0===t||t.add(e)},this.remove=e=>{var t;null===(t=this.componentAPI)||void 0===t||t.remove(e)},this.removeAll=()=>{var e;null===(e=this.componentAPI)||void 0===e||e.removeAll()},this.update=(e,t)=>{var n;null===(n=this.componentAPI)||void 0===n||n.update(e,t)},this.has=e=>{var t,n;return null!==(n=null===(t=this.componentAPI)||void 0===t?void 0:t.has(e))&&void 0!==n&&n};const t=a()(e,["className"],""),n=a()(e,["mobile"],!1);if(window[X]instanceof ne){const e=window[X];return e.className=t,e.mobile=n,e.setRootNodeClassName(),e}this.className=t,this.mobile=n,this.createRootNode(),this.createReactRoot(),this.render(),window[X]=this}destroy(){s.unmountComponentAtNode(this.rootNode),document.body.removeChild(this.rootNode)}createRootNode(){this.rootNode=document.createElement("div"),this.setRootNodeClassName(),document.body.appendChild(this.rootNode)}createReactRoot(){te&&(this.reactRoot=te.createRoot(this.rootNode))}render(){const e=i.createElement(h,{ref:e=>{this.componentAPI=e}},i.createElement(J,{hasPortal:!1,mobile:this.mobile}));this.reactRoot?this.reactRoot.render(e):s.render(e,this.rootNode,(()=>Promise.resolve()))}setRootNodeClassName(){this.rootNode.className=ee({mobile:this.mobile},this.className)}}ne.injectReactDOMClient(r);const re="object"===typeof window?new ne:{}},59653:(e,t,n)=>{var r=n(88118),i=n(59698);e.exports=function(e){return i(e)&&r(e)}},59698:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},60073:(e,t,n)=>{"use strict";n.d(t,{Hr:()=>i.H,jl:()=>i.j,z_:()=>r.z});var r=n(18863),i=n(82176)},60166:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(40453),t),i(n(29863),t)},60242:(e,t,n)=>{var r=n(16320),i=n(59698);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},60712:(e,t,n)=>{"use strict";e.exports=n(67124)},61522:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}},61750:(e,t,n)=>{"use strict";n.d(t,{mg:()=>J,vd:()=>V});var r=n(59284),i=n(45099),o=n.n(i),a=n(83791),s=n.n(a),l=n(37737),c=n.n(l),u=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(u||{}),d={rel:["amphtml","canonical","alternate"]},f={type:["application/ld+json"]},p={charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},h=Object.values(u),m={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},g=Object.entries(m).reduce(((e,[t,n])=>(e[n]=t,e)),{}),v="data-rh",y="defaultTitle",b="defer",w="encodeSpecialCharacters",x="onChangeClientState",_="titleTemplate",E="prioritizeSeoTags",S=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},C=e=>{let t=S(e,"title");const n=S(e,_);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,(()=>t));const r=S(e,y);return t||r||void 0},k=e=>S(e,x)||(()=>{}),O=(e,t)=>t.filter((t=>"undefined"!==typeof t[e])).map((t=>t[e])).reduce(((e,t)=>({...e,...t})),{}),N=(e,t)=>t.filter((e=>"undefined"!==typeof e.base)).map((e=>e.base)).reverse().reduce(((t,n)=>{if(!t.length){const r=Object.keys(n);for(let i=0;i<r.length;i+=1){const o=r[i].toLowerCase();if(-1!==e.indexOf(o)&&n[o])return t.concat(n)}}return t}),[]),T=(e,t,n)=>{const r={};return n.filter((t=>{return!!Array.isArray(t[e])||("undefined"!==typeof t[e]&&(n=`Helmet: ${e} should be of type "Array". Instead found type "${typeof t[e]}"`,console&&"function"===typeof console.warn&&console.warn(n)),!1);var n})).map((t=>t[e])).reverse().reduce(((e,n)=>{const i={};n.filter((e=>{let n;const o=Object.keys(e);for(let r=0;r<o.length;r+=1){const i=o[r],a=i.toLowerCase();-1===t.indexOf(a)||"rel"===n&&"canonical"===e[n].toLowerCase()||"rel"===a&&"stylesheet"===e[a].toLowerCase()||(n=a),-1===t.indexOf(i)||"innerHTML"!==i&&"cssText"!==i&&"itemprop"!==i||(n=i)}if(!n||!e[n])return!1;const a=e[n].toLowerCase();return r[n]||(r[n]={}),i[n]||(i[n]={}),!r[n][a]&&(i[n][a]=!0,!0)})).reverse().forEach((t=>e.push(t)));const o=Object.keys(i);for(let t=0;t<o.length;t+=1){const e=o[t],n={...r[e],...i[e]};r[e]=n}return e}),[]).reverse()},A=(e,t)=>{if(Array.isArray(e)&&e.length)for(let n=0;n<e.length;n+=1){if(e[n][t])return!0}return!1},I=e=>Array.isArray(e)?e.join(""):e,P=(e,t)=>Array.isArray(e)?e.reduce(((e,n)=>(((e,t)=>{const n=Object.keys(e);for(let r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1})(n,t)?e.priority.push(n):e.default.push(n),e)),{priority:[],default:[]}):{default:e,priority:[]},R=(e,t)=>({...e,[t]:void 0}),D=["noscript","script","style"],j=(e,t=!0)=>!1===t?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),M=e=>Object.keys(e).reduce(((t,n)=>{const r="undefined"!==typeof e[n]?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r}),""),L=(e,t={})=>Object.keys(e).reduce(((t,n)=>(t[m[n]||n]=e[n],t)),t),z=(e,t)=>t.map(((t,n)=>{const i={key:n,[v]:!0};return Object.keys(t).forEach((e=>{const n=m[e]||e;if("innerHTML"===n||"cssText"===n){const e=t.innerHTML||t.cssText;i.dangerouslySetInnerHTML={__html:e}}else i[n]=t[e]})),r.createElement(e,i)})),F=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>((e,t,n)=>{const i=L(n,{key:t,[v]:!0});return[r.createElement("title",i,t)]})(0,t.title,t.titleAttributes),toString:()=>((e,t,n,r)=>{const i=M(n),o=I(t);return i?`<${e} ${v}="true" ${i}>${j(o,r)}</${e}>`:`<${e} ${v}="true">${j(o,r)}</${e}>`})(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>L(t),toString:()=>M(t)};default:return{toComponent:()=>z(e,t),toString:()=>((e,t,n=!0)=>t.reduce(((t,r)=>{const i=r,o=Object.keys(i).filter((e=>!("innerHTML"===e||"cssText"===e))).reduce(((e,t)=>{const r="undefined"===typeof i[t]?t:`${t}="${j(i[t],n)}"`;return e?`${e} ${r}`:r}),""),a=i.innerHTML||i.cssText||"",s=-1===D.indexOf(e);return`${t}<${e} ${v}="true" ${o}${s?"/>":`>${a}</${e}>`}`}),""))(e,t,n)}}},B=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:i,noscriptTags:o,styleTags:a,title:s="",titleAttributes:l,prioritizeSeoTags:c}=e;let{linkTags:u,metaTags:h,scriptTags:m}=e,g={toComponent:()=>{},toString:()=>""};return c&&({priorityMethods:g,linkTags:u,metaTags:h,scriptTags:m}=(({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const i=P(e,p),o=P(t,d),a=P(n,f);return{priorityMethods:{toComponent:()=>[...z("meta",i.priority),...z("link",o.priority),...z("script",a.priority)],toString:()=>`${F("meta",i.priority,r)} ${F("link",o.priority,r)} ${F("script",a.priority,r)}`},metaTags:i.default,linkTags:o.default,scriptTags:a.default}})(e)),{priority:g,base:F("base",t,r),bodyAttributes:F("bodyAttributes",n,r),htmlAttributes:F("htmlAttributes",i,r),link:F("link",u,r),meta:F("meta",h,r),noscript:F("noscript",o,r),script:F("script",m,r),style:F("style",a,r),title:F("title",{title:s,titleAttributes:l},r)}},U=[],q=!("undefined"===typeof window||!window.document||!window.document.createElement),$=class{instances=[];canUseDOM=q;context;value={setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?U:this.instances,add:e=>{(this.canUseDOM?U:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?U:this.instances).indexOf(e);(this.canUseDOM?U:this.instances).splice(t,1)}}};constructor(e,t){this.context=e,this.canUseDOM=t||!1,t||(e.helmet=B({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},H=r.createContext({}),V=class e extends r.Component{static canUseDOM=q;helmetData;constructor(t){super(t),this.helmetData=new $(this.props.context||{},e.canUseDOM)}render(){return r.createElement(H.Provider,{value:this.helmetData.value},this.props.children)}},W=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${v}]`),i=[].slice.call(r),o=[];let a;return t&&t.length&&t.forEach((t=>{const n=document.createElement(e);for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))if("innerHTML"===e)n.innerHTML=t.innerHTML;else if("cssText"===e)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{const r=e,i="undefined"===typeof t[r]?"":t[r];n.setAttribute(e,i)}n.setAttribute(v,"true"),i.some(((e,t)=>(a=t,n.isEqualNode(e))))?i.splice(a,1):o.push(n)})),i.forEach((e=>e.parentNode?.removeChild(e))),o.forEach((e=>n.appendChild(e))),{oldTags:i,newTags:o}},K=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(v),i=r?r.split(","):[],o=[...i],a=Object.keys(t);for(const s of a){const e=t[s]||"";n.getAttribute(s)!==e&&n.setAttribute(s,e),-1===i.indexOf(s)&&i.push(s);const r=o.indexOf(s);-1!==r&&o.splice(r,1)}for(let s=o.length-1;s>=0;s-=1)n.removeAttribute(o[s]);i.length===o.length?n.removeAttribute(v):n.getAttribute(v)!==a.join(",")&&n.setAttribute(v,a.join(","))},G=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:i,linkTags:o,metaTags:a,noscriptTags:s,onChangeClientState:l,scriptTags:c,styleTags:u,title:d,titleAttributes:f}=e;K("body",r),K("html",i),((e,t)=>{"undefined"!==typeof e&&document.title!==e&&(document.title=I(e)),K("title",t)})(d,f);const p={baseTag:W("base",n),linkTags:W("link",o),metaTags:W("meta",a),noscriptTags:W("noscript",s),scriptTags:W("script",c),styleTags:W("style",u)},h={},m={};Object.keys(p).forEach((e=>{const{newTags:t,oldTags:n}=p[e];t.length&&(h[e]=t),n.length&&(m[e]=p[e].oldTags)})),t&&t(),l(e,h,m)},Y=null,Q=e=>{Y&&cancelAnimationFrame(Y),e.defer?Y=requestAnimationFrame((()=>{G(e,(()=>{Y=null}))})):(G(e),Y=null)},Z=class extends r.Component{rendered=!1;shouldComponentUpdate(e){return!c()(e,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:e}=this.props.context;e.remove(this),this.emitChange()}emitChange(){const{helmetInstances:e,setHelmet:t}=this.props.context;let n=null;const r=(i=e.get().map((e=>{const t={...e.props};return delete t.context,t})),{baseTag:N(["href"],i),bodyAttributes:O("bodyAttributes",i),defer:S(i,b),encode:S(i,w),htmlAttributes:O("htmlAttributes",i),linkTags:T("link",["rel","href"],i),metaTags:T("meta",["name","charset","http-equiv","property","itemprop"],i),noscriptTags:T("noscript",["innerHTML"],i),onChangeClientState:k(i),scriptTags:T("script",["src","innerHTML"],i),styleTags:T("style",["cssText"],i),title:C(i),titleAttributes:O("titleAttributes",i),prioritizeSeoTags:A(i,E)});var i;V.canUseDOM?Q(r):B&&(n=B(r)),t(n)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:e}=this.props.context;e.add(this),this.emitChange()}render(){return this.init(),null}},J=class extends r.Component{static defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1};shouldComponentUpdate(e){return!o()(R(this.props,"helmetData"),R(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach((t=>{n={...n,[t]:e[t]}})),n}warnOnInvalidChildren(e,t){return s()(h.some((t=>e.type===t)),"function"===typeof e.type?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${h.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),s()(!t||"string"===typeof t||Array.isArray(t)&&!t.some((e=>"string"!==typeof e)),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return r.Children.forEach(e,(e=>{if(!e||!e.props)return;const{children:r,...i}=e.props,o=Object.keys(i).reduce(((e,t)=>(e[g[t]||t]=i[t],e)),{});let{type:a}=e;switch("symbol"===typeof a?a=a.toString():this.warnOnInvalidChildren(e,r),a){case"Symbol(react.fragment)":t=this.mapChildrenToProps(r,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(e,n,o,r);break;default:t=this.mapObjectTypeChildren(e,t,o,r)}})),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:i}=t;if(e&&(n=this.mapChildrenToProps(e,n)),i&&!(i instanceof $)){i=new $(i.context,!0),delete n.helmetData}return i?r.createElement(Z,{...n,context:i.value}):r.createElement(H.Consumer,null,(e=>r.createElement(Z,{...n,context:e})))}}},61758:(e,t,n)=>{var r=n(43781),i=n(38469);e.exports=function(e,t,n){var o=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return i(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:o,maxWait:t,trailing:a})}},61872:e=>{e.exports=function(e,t){return e===t||e!==e&&t!==t}},62060:(e,t,n)=>{var r=n(31926);e.exports=function(e,t){return r(e,t)}},62384:e=>{"use strict";e.exports="undefined"!==typeof Reflect&&Reflect.getPrototypeOf||null},62391:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDuration=t.duration=void 0;var r=n(50743);Object.defineProperty(t,"duration",{enumerable:!0,get:function(){return r.createDuration}});var i=n(57491);Object.defineProperty(t,"isDuration",{enumerable:!0,get:function(){return i.isDuration}})},62509:(e,t,n)=>{var r=n(90035),i=n(82789),o=n(19417),a=n(2859),s=n(43821),l=n(80303);e.exports=function(e,t,n){var c=-1,u=i,d=e.length,f=!0,p=[],h=p;if(n)f=!1,u=o;else if(d>=200){var m=t?null:s(e);if(m)return l(m);f=!1,u=a,h=new r}else h=t?[]:p;e:for(;++c<d;){var g=e[c],v=t?t(g):g;if(g=n||0!==g?g:0,f&&v===v){for(var y=h.length;y--;)if(h[y]===v)continue e;t&&h.push(v),p.push(g)}else u(h,v,n)||(h!==p&&h.push(v),p.push(g))}return p}},62871:(e,t,n)=>{var r=n(71259),i=n(80472);e.exports=function(e,t,n,o){var a=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var c=t[s],u=o?o(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),a?i(n,c,u):r(n,c,u)}return n}},62990:(e,t,n)=>{var r=n(9112),i=n(39069),o=n(72633);e.exports=function(e,t){return o(i(e,t,r),e+"")}},63246:(e,t,n)=>{"use strict";n.d(t,{o:()=>s});var r=n(59284),i=n(69220),o=n(34379);const a=(0,i.om)("outer-additional-content"),s=({errorMessage:e,note:t,noteId:n,errorMessageId:i})=>e||t?r.createElement("div",{className:a()},e&&r.createElement("div",{className:a("error"),id:i,"data-qa":o.mF},e),t&&r.createElement("div",{className:a("note"),id:n},t)):null},63291:(e,t,n)=>{"use strict";var r;n.d(t,{J:()=>i,m:()=>r}),function(e){e.Immediate="immediate",e.Delayed="delayed",e.DelayedClosing="delayedClosing"}(r||(r={}));const i={[r.Immediate]:[0,0],[r.Delayed]:[300,300],[r.DelayedClosing]:[0,300]}},63365:(e,t,n)=>{"use strict";n.d(t,{$:()=>i});const r=(0,n(69220).om)("color-text"),i=({color:e},t)=>r({color:e},t)},63546:(e,t,n)=>{var r=n(71259),i=n(68097),o=n(83649),a=n(38469),s=n(92061);e.exports=function(e,t,n,l){if(!a(e))return e;for(var c=-1,u=(t=i(t,e)).length,d=u-1,f=e;null!=f&&++c<u;){var p=s(t[c]),h=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(c!=d){var m=f[p];void 0===(h=l?l(m,p,f):void 0)&&(h=a(m)?m:o(t[c+1])?[]:{})}r(f,p,h),f=f[p]}return e}},63636:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(48372);const i=JSON.parse('{"header":"Connect to the database","connection-info-message":"Use the following code to connect to the database","documentation":"Documentation","close":"Close","copy":"Copy","docs_bash":"https://ydb.tech/docs/en/concepts/connect","docs_cpp":"https://ydb.tech/docs/en/dev/example-app/example-cpp","docs_dotnet":"https://ydb.tech/docs/en/dev/example-app/example-dotnet","docs_go":"https://ydb.tech/docs/en/dev/example-app/go","docs_java":"https://ydb.tech/docs/en/dev/example-app/java","docs_nodejs":"https://ydb.tech/docs/en/dev/example-app/example-nodejs","docs_php":"https://ydb.tech/docs/en/dev/example-app/example-php","docs_python":"https://ydb.tech/docs/en/dev/example-app/python"}'),o=(0,r.g4)("ydb-connect-to-db",{en:i})},63679:(e,t,n)=>{var r=n(90035),i=n(89728),o=n(2859);e.exports=function(e,t,n,a,s,l){var c=1&n,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var f=l.get(e),p=l.get(t);if(f&&p)return f==t&&p==e;var h=-1,m=!0,g=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++h<u;){var v=e[h],y=t[h];if(a)var b=c?a(y,v,h,t,e,l):a(v,y,h,e,t,l);if(void 0!==b){if(b)continue;m=!1;break}if(g){if(!i(t,(function(e,t){if(!o(g,t)&&(v===e||s(v,e,n,a,l)))return g.push(t)}))){m=!1;break}}else if(v!==y&&!s(v,y,n,a,l)){m=!1;break}}return l.delete(e),l.delete(t),m}},63786:e=>{e.exports=function(e){return e.split("")}},63904:(e,t,n)=>{"use strict";var r=n(35711),i=n(69426),o=n(70084),a=n(98599);e.exports=a||r.call(o,i)},63909:(e,t,n)=>{var r=n(62871),i=n(96294);e.exports=function(e,t){return e&&r(t,i(t),e)}},64205:(e,t,n)=>{var r=n(4133),i=n(33609),o=n(150),a=n(68814),s=r.isFinite,l=Math.min;e.exports=function(e){var t=Math[e];return function(e,n){if(e=o(e),(n=null==n?0:l(i(n),292))&&s(e)){var r=(a(e)+"e").split("e"),c=t(r[0]+"e"+(+r[1]+n));return+((r=(a(c)+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}},64222:(e,t,n)=>{"use strict";n.d(t,{v:()=>l});var r=n(59284),i=n(85736),o=n(32084),a=n(11669),s=n(794);function l({name:e,value:t,id:n,defaultChecked:l,checked:c,indeterminate:u,onUpdate:d,onChange:f,controlRef:p,controlProps:h,onFocus:m,onBlur:g,disabled:v}){const y=r.useRef(null),[b,w]=(0,i.P)(c,null!==l&&void 0!==l&&l,d),x=!u&&c,_=u?"mixed":b,E=(0,s.d)({initialValue:b,onReset:w}),S=(0,o.N)(p,y,E);r.useLayoutEffect((()=>{y.current&&(y.current.indeterminate=Boolean(u))}),[u]);const C=r.useCallback((e=>{a.o.publish({componentId:"Checkbox",eventId:"click",domEvent:e,meta:{checked:e.target.checked}})}),[]);return{checked:b,inputProps:Object.assign(Object.assign({},h),{name:e,value:t,id:n,onFocus:m,onBlur:g,disabled:v,type:"checkbox",onChange:e=>{w(e.target.checked),f&&f(e)},onClickCapture:C,defaultChecked:l,checked:x,"aria-checked":_,ref:S})}}},64255:(e,t,n)=>{"use strict";var r=n(32328).CopyToClipboard;r.CopyToClipboard=r,e.exports=r},64503:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},64689:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(59284),i=n(81288),o=n(7889),a=n(78524),s=n(59109),l=n(44508),c=n(31062),u=n(60712);function d({title:e,description:t,error:n,children:d,...f}){return(0,i.uP)(n)?null:(0,i.Pq)(n)?(0,u.jsx)(s.O,{title:e,description:t,...f}):n||t?(0,u.jsx)(o.p,{image:(0,u.jsx)(a.v,{name:"error"}),title:e||(0,c.A)("error.title"),description:n?(0,u.jsx)(l.o,{error:n}):t,...f}):(0,u.jsx)(r.Fragment,{children:d})}},64898:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},65144:(e,t)=>{"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case o:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case g:case m:case l:return e;default:return t}}case i:return t}}}function _(e){return x(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return _(e)||x(e)===u},t.isConcurrentMode=_,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===f},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===d||e===s||e===a||e===p||e===h||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=x},65236:(e,t,n)=>{var r=n(4133);e.exports=function(){return r.Date.now()}},65809:(e,t,n)=>{"use strict";function r(e){if(e&&"string"===typeof e)return e;if(e&&"object"===typeof e){if("data"in e&&"string"===typeof e.data)return e.data;if("statusText"in e&&"string"===typeof e.statusText)return e.statusText;if("message"in e&&"string"===typeof e.message)return e.message}return""}n.d(t,{$:()=>r})},66217:(e,t,n)=>{var r=n(67530),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,a,s){var l=1&n,c=r(e),u=c.length;if(u!=r(t).length&&!l)return!1;for(var d=u;d--;){var f=c[d];if(!(l?f in t:i.call(t,f)))return!1}var p=s.get(e),h=s.get(t);if(p&&h)return p==t&&h==e;var m=!0;s.set(e,t),s.set(t,e);for(var g=l;++d<u;){var v=e[f=c[d]],y=t[f];if(o)var b=l?o(y,v,f,t,e,s):o(v,y,f,e,t,s);if(!(void 0===b?v===y||a(v,y,n,o,s):b)){m=!1;break}g||(g="constructor"==f)}if(m&&!g){var w=e.constructor,x=t.constructor;w==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(m=!1)}return s.delete(e),s.delete(t),m}},66592:(e,t,n)=>{"use strict";n.d(t,{OT:()=>a,_n:()=>s,lm:()=>o,s5:()=>i});var r=n(38596);const i=e=>e.split("").reduce(((e,t)=>{const n=(e<<5)-e+t.charCodeAt(0);return 0|n}),0),o=["#008000","#4169e1","#ffd700","#ff8c00","#808000","#e9967a","#ff1493","#00bfff","#da70d6","#8b4513","#b22222"],a="#3cb371",s=(e=[])=>(e=>{const t=Array.from(e.keys()).map((e=>({version:e,hash:i(e)}))),n=new Map;let r=o.length-1;return t.sort(((e,t)=>e.hash-t.hash)).forEach((t=>{if(/^(\w+-)?stable/.test(t.version)){r=(r+1)%o.length,n.set(t.version,o[r]);const a=Array.from(e.get(t.version)||[]).filter((e=>e!==t.version)).map((e=>({version:e,hash:i(e)}))),s=a.length;a.sort(((e,t)=>t.hash-e.hash)).forEach(((e,t)=>{const i=o[r],a=Math.max(100-t*(100/s),20),l=`${i}${Math.round(255*a/100).toString(16)}`;n.set(e.version,l)}))}else n.set(t.version,a)})),n})(((e,t=new Map)=>(e.forEach((e=>{var n;const i=(0,r.Q)(e),o=(0,r.U)(e);t.has(i)||t.set(i,new Set),null===(n=t.get(i))||void 0===n||n.add(o)})),t))(e))},66781:(e,t,n)=>{"use strict";n.d(t,{y:()=>i});var r=n(59284);function i(e=600){const[t,n]=r.useState(!1),[i,o]=r.useState(0);r.useEffect((()=>{n(!1);const t=setTimeout((()=>{n(!0)}),e);return()=>{clearTimeout(t)}}),[e,i]);return[t,r.useCallback((()=>{o((e=>e+1))}),[])]}},66821:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 3a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M5.5 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3m5 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3m0-5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3M7 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m3.5 1.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3",clipRule:"evenodd"}))},66944:(e,t,n)=>{var r=n(14837),i=n(49538),o=n(99889),a=n(11319),s=n(52497),l=n(52964),c=n(19305),u=n(59653),d=n(20368),f=n(36738),p=n(38469),h=n(20011),m=n(91159),g=n(76614),v=n(26180);e.exports=function(e,t,n,y,b,w,x){var _=g(e,n),E=g(t,n),S=x.get(E);if(S)r(e,n,S);else{var C=w?w(_,E,n+"",e,t,x):void 0,k=void 0===C;if(k){var O=c(E),N=!O&&d(E),T=!O&&!N&&m(E);C=E,O||N||T?c(_)?C=_:u(_)?C=a(_):N?(k=!1,C=i(E,!0)):T?(k=!1,C=o(E,!0)):C=[]:h(E)||l(E)?(C=_,l(_)?C=v(_):p(_)&&!f(_)||(C=s(E))):k=!1}k&&(x.set(E,C),b(C,E,y,w,x),x.delete(E)),r(e,n,C)}}},67028:(e,t,n)=>{"use strict";n.d(t,{DM:()=>m,Ii:()=>c,Oi:()=>d,Pm:()=>s,SA:()=>p,S_:()=>_,WF:()=>g,YA:()=>f,Ye:()=>h,_Q:()=>v,c2:()=>u,e5:()=>a,fp:()=>y,j2:()=>b,li:()=>x});var r=n(90182),i=n(28232),o=n(68712);function a(){const e=(0,i.J)();o.RE.useGetClusterCapabilitiesQuery({database:e})}function s(){const e=(0,i.J)(),{data:t,error:n}=(0,r.N4)((t=>(0,o.Ox)(t,e)));return Boolean(t||n)}const l=e=>{const t=(0,i.J)();return(0,r.N4)((n=>(0,o.p2)(n,e,t)||0))},c=()=>l("/scheme/directory")>0,u=()=>l("/pdisk/info")>0,d=()=>l("/viewer/query")>2,f=()=>l("/storage/groups")>2,p=()=>l("/storage/groups")>4,h=()=>l("/viewer/nodes")>6,m=()=>l("/viewer/nodes")>11,g=()=>l("/viewer/nodes")>13,v=()=>l("/viewer/feature_flags")>1,y=()=>l("/viewer/cluster")>4,b=()=>l("/viewer/query")>=7,w=e=>{const t=(0,i.J)();return(0,r.N4)((n=>(0,o.TL)(n,e,t)))},x=()=>!1===w("UseLoginProvider"),_=()=>!1===w("DomainLoginOnly")},67076:(e,t,n)=>{"use strict";n(29416)},67087:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return e;if(0===e.length&&(!t||t&&""!==e))return null;const n=e instanceof Array?e[0]:e;return null==n||t||""!==n?n:null}function i(e){const t=r(e);if(null==t)return t;if(""===t)return null;return+t}function o(e){const t=r(e,!0);return null==t?t:String(t)}n.d(t,{NumberParam:()=>s,QueryParamProvider:()=>k,StringParam:()=>a,useQueryParam:()=>R,useQueryParams:()=>I});const a={encode:function(e){return null==e?e:String(e)},decode:o},s={encode:function(e){return null==e?e:String(e)},decode:i};'{}[],":'.split("").map((e=>[e,encodeURIComponent(e)]));function l(e,t){const n={},r=Object.keys(t);for(const i of r){const r=t[i];e[i]?n[i]=e[i].encode(t[i]):n[i]=null==r?r:String(r)}return n}var c=n(59284);const u=new class{constructor(){this.paramsMap=new Map,this.registeredParams=new Map}set(e,t,n,r){this.paramsMap.set(e,{stringified:t,decoded:n,decode:r})}has(e,t,n){if(!this.paramsMap.has(e))return!1;const r=this.paramsMap.get(e);return!!r&&(r.stringified===t&&(null==n||r.decode===n))}get(e){var t;if(this.paramsMap.has(e))return null==(t=this.paramsMap.get(e))?void 0:t.decoded}registerParams(e){for(const t of e){const e=this.registeredParams.get(t)||0;this.registeredParams.set(t,e+1)}}unregisterParams(e){for(const t of e){const e=(this.registeredParams.get(t)||0)-1;e<=0?(this.registeredParams.delete(t),this.paramsMap.has(t)&&this.paramsMap.delete(t)):this.registeredParams.set(t,e)}}clear(){this.paramsMap.clear(),this.registeredParams.clear()}};function d(e,t,n,r){var i;if(!n||!t.length)return e;let o={...e},a=!1;for(const s of t)Object.prototype.hasOwnProperty.call(o,s)||(o[s]=null!=(i=n[s])?i:r,a=!0);return a?o:e}const f=Object.prototype.hasOwnProperty;function p(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function h(e,t,n){var r,i;if(p(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;const o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(let s=0;s<o.length;s++){const a=null!=(i=null==(r=null==n?void 0:n[o[s]])?void 0:r.equals)?i:p;if(!f.call(t,o[s])||!a(e[o[s]],t[o[s]]))return!1}return!0}function m(e,t,n){const r={},i=Object.keys(t);for(const o of i){const i=t[o],a=e[o];let s;if(n.has(o,a,i.decode))s=n.get(o);else{if(s=i.decode(a),i.equals&&n.has(o,a)){const e=n.get(o);i.equals(s,e)&&(s=e)}void 0!==s&&n.set(o,a,s,i.decode)}void 0===s&&void 0!==i.default&&(s=i.default),r[o]=s}return r}function g(){let e;return function(t,n,r){const i=m(t,n,r);return null!=e&&h(e,i)?e:(e=i,i)}}let v,y,b,w={};const x=(e,t,n)=>{if(v===t&&b===e&&y===n)return w;v=t,b=e;const r=e(null!=t?t:"");y=n;const i=function(e){if(e)return Object.fromEntries(e.split("\n").map((e=>e.split("\0"))))}(n);for(let[o,a]of Object.entries(r)){(null==i?void 0:i[o])&&(delete r[o],o=i[o],r[o]=a);const e=w[o];h(a,e)&&(r[o]=e)}return w=r,r};function _(e,t){null==t&&(t={});const n={...e,...t};return t.params&&e.params&&(n.params={...e.params,...t.params}),n}const E={adapter:{},options:{searchStringToObject:function(e){const t=new URLSearchParams(e),n={};for(let[r,i]of t)Object.prototype.hasOwnProperty.call(n,r)?Array.isArray(n[r])?n[r].push(i):n[r]=[n[r],i]:n[r]=i;return n},objectToSearchString:function(e){const t=new URLSearchParams,n=Object.entries(e);for(const[r,i]of n)if(void 0!==i&&null!==i)if(Array.isArray(i))for(const e of i)t.append(r,null!=e?e:"");else t.append(r,i);return t.toString()},updateType:"pushIn",includeKnownParams:void 0,includeAllParams:!1,removeDefaultsFromUrl:!1,enableBatching:!1,skipUpdateWhenNoChange:!0}},S=c.createContext(E);function C({children:e,adapter:t,options:n}){const{adapter:r,options:i}=c.useContext(S),o=c.useMemo((()=>({adapter:null!=t?t:r,options:_(i,n)})),[t,n,r,i]);return c.createElement(S.Provider,{value:o},e)}function k({children:e,adapter:t,options:n}){const r=t;return r?c.createElement(r,null,(t=>c.createElement(C,{adapter:t,options:n},e))):c.createElement(C,{options:n},e)}function O({changes:e,updateType:t,currentSearchString:n,paramConfigMap:r,options:i}){const{searchStringToObject:o,objectToSearchString:a}=i;let s;null==t&&(t=i.updateType);const c=x(o,n),f=d(r,Object.keys(e),i.params);let p,h;if("function"===typeof e){p=e(m(c,f,u))}else p=e;return s=l(f,p),i.removeDefaultsFromUrl&&function(e,t){var n;for(const r in e)void 0!==(null==(n=t[r])?void 0:n.default)&&void 0!==e[r]&&t[r].encode(t[r].default)===e[r]&&(e[r]=void 0)}(s,f),s=function(e,t){var n;let r={};for(const i in e)null!=(null==(n=t[i])?void 0:n.urlName)?r[t[i].urlName]=e[i]:r[i]=e[i];return r}(s,f),h=a("push"===t||"replace"===t?s:{...c,...s}),(null==h?void 0:h.length)&&"?"!==h[0]&&(h=`?${h}`),null!=h?h:""}const N=e=>e(),T=e=>setTimeout((()=>e()),0),A=[];function I(e,t){const{adapter:n,options:r}=function(){const e=c.useContext(S);if(void 0===e||e===E)throw new Error("useQueryParams must be used within a QueryParamProvider");return e}(),[i]=(0,c.useState)(g),{paramConfigMap:o,options:s}=function(e,t){let n,r;void 0===e?(n={},r=t):Array.isArray(e)?(n=Object.fromEntries(e.map((e=>[e,"inherit"]))),r=t):(n=e,r=t);return{paramConfigMap:n,options:r}}(e,t),l=(0,c.useMemo)((()=>_(r,s)),[r,s]);let f=function(e,t){var n,r,i;const o={};let s=!1;const l=Object.keys(e);let c=l;if(t.includeKnownParams||!1!==t.includeKnownParams&&0===l.length){const e=Object.keys(null!=(n=t.params)?n:{});c.push(...e)}for(const u of c){const n=e[u];null==n||"object"!==typeof n?(s=!0,o[u]=null!=(i=null==(r=t.params)?void 0:r[u])?i:a):o[u]=n}return s?o:e}(o,l);const p=x(l.searchStringToObject,n.location.search,function(e){let t;for(const n in e)if(e[n].urlName){const r=`${e[n].urlName}\0${n}`;t?t.push(r):t=[r]}return t?t.join("\n"):void 0}(f));l.includeAllParams&&(f=d(f,Object.keys(p),l.params,a));const h=i(p,f,u),m=Object.keys(f).join("\0");(0,c.useEffect)((()=>{const e=m.split("\0");return u.registerParams(e),()=>{u.unregisterParams(e)}}),[m]);const v={adapter:n,paramConfigMap:f,options:l},y=(0,c.useRef)(v);null==y.current&&(y.current=v),(0,c.useEffect)((()=>{y.current.adapter=n,y.current.paramConfigMap=f,y.current.options=l}),[n,f,l]);const[b]=(0,c.useState)((()=>(e,t)=>{const{adapter:n,paramConfigMap:r,options:i}=y.current;null==t&&(t=i.updateType),function(e,{immediate:t}={}){A.push(e);let n=t?N:T;1===A.length&&n((()=>{const t=A.slice();A.length=0;const n=t[0].currentSearchString;let r;for(let e=0;e<t.length;++e)r=O(0===e?t[e]:{...t[e],currentSearchString:r});e.options.skipUpdateWhenNoChange&&r===n||function({searchString:e,adapter:t,navigate:n,updateType:r}){const i={...t.location,search:e};n&&("string"===typeof r&&r.startsWith("replace")?t.replace(i):t.push(i))}({searchString:null!=r?r:"",adapter:t[t.length-1].adapter,navigate:!0,updateType:t[t.length-1].updateType})}))}({changes:e,updateType:t,currentSearchString:n.location.search,paramConfigMap:r,options:i,adapter:n},{immediate:!i.enableBatching})}));return[h,b]}var P=I;const R=(e,t,n)=>{const r=(0,c.useMemo)((()=>({[e]:null!=t?t:"inherit"})),[e,t]),[i,o]=P(r,n);return[i[e],(0,c.useCallback)(((t,n)=>o("function"===typeof t?n=>{const r=t(n[e]);return{[e]:r}}:{[e]:t},n)),[e,o])]}},67124:(e,t,n)=>{"use strict";var r=n(59284),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,o={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:c,ref:u,props:o,_owner:s.current}}t.Fragment=o,t.jsx=c,t.jsxs=c},67157:(e,t,n)=>{"use strict";n.d(t,{Zh:()=>S,Ay:()=>E,ds:()=>T,zR:()=>N,Yv:()=>_,Zd:()=>C});var r=n(97091),i=n(53850),o=n(44992),a=n(67087),s=n(87842),l=n(370);const c=l.z.object({url:l.z.string().url()});function u({traceView:e}){try{return{traceView:e?c.parse(JSON.parse(e)):void 0}}catch(t){console.error("Error parsing trace fields:",t)}return{}}var d=n(98730),f=n(76086),p=n(11822),h=n(21334),m=n(24600);function g(e){const t={};return null===e||void 0===e||e.forEach((e=>{const{PDiskFilter:n,ErasureSpecies:r,CurrentAvailableSize:i,CurrentAllocatedSize:o,CurrentGroupsCreated:a,AvailableGroupsToCreate:s}=e,l=Number(a)||0,c=l+(Number(s)||0),u=Number(o)||0,d=Number(i)||0,f=n&&"string"===typeof n&&(e=>{var t,n;const r=null===(t=e.match(/^Type:(?<type>[A-Za-z]+)/))||void 0===t||null===(n=t.groups)||void 0===n?void 0:n.type;return"ROT"===r?"HDD":r})(n);if(f&&r&&"string"===typeof r&&l){const e={diskType:f,erasure:r,createdGroups:l,totalGroups:c,allocatedSize:u,availableSize:d};if(t[f])if(t[f][r]){const e={...t[f][r]};t[f][r]={diskType:f,erasure:r,createdGroups:e.createdGroups+l,totalGroups:e.totalGroups+c,allocatedSize:e.allocatedSize+u,availableSize:e.availableSize+d}}else t[f][r]=e;else t[f]={[r]:e}}})),t}const v=e=>{var t,n;return g(null===(t=(0,p.fW)(e).resultSets)||void 0===t||null===(n=t[0])||void 0===n?void 0:n.result)};const y=localStorage.getItem(f.fY);let b;b=(0,s.eC)(y)?y:s.Bi.overview;const w={defaultClusterTab:b},x=(0,r.Z0)({name:"cluster",initialState:w,reducers:{setDefaultClusterTab(e,t){e.defaultClusterTab=t.payload}}});function _(e){return t=>{(0,s.eC)(e)&&(localStorage.setItem(f.fY,e),t(x.actions.setDefaultClusterTab(e)))}}const E=x.reducer,S=h.F.injectEndpoints({endpoints:e=>({getClusterInfo:e.query({queryFn:async(e,{signal:t})=>{try{const r=await window.api.viewer.getClusterInfo(e,{signal:t}),i=r.Domain;if(!i)return{data:{clusterData:r}};if((0,d.L)(r))return{data:{clusterData:r,groupsStats:(n=r,g(n.StorageStats))}};try{const e=(e=>`\nSELECT \n PDiskFilter,\n ErasureSpecies,\n CurrentAvailableSize,\n CurrentAllocatedSize,\n CurrentGroupsCreated,\n AvailableGroupsToCreate\n FROM \`${e}/.sys/ds_storage_stats\`\n ORDER BY CurrentGroupsCreated DESC;\n`)(i),t=await window.api.viewer.sendQuery({query:e,database:i,action:"execute-scan"});return(0,p.We)(t)?{data:{clusterData:r}}:{data:{clusterData:r,groupsStats:v(t)}}}catch{return{data:{clusterData:r}}}}catch(r){return{error:r}}var n},providesTags:["All"]}),getClusterBaseInfo:e.query({queryFn:async(e,{signal:t})=>{try{if(!window.api.meta)throw new Error("Method is not implemented.");return{data:await window.api.meta.getClusterBaseInfo(e,{signal:t})}}catch(n){return{error:n}}},providesTags:["All"]})}),overrideExisting:"throw"});function C(){var e;const[t]=(0,a.useQueryParam)("clusterName",a.StringParam),{currentData:n}=S.useGetClusterBaseInfoQuery(null!==t&&void 0!==t?t:o.hT),{solomon:r,name:i,trace_view:s,...l}=n||{};return{...l,...u({traceView:s}),name:null!==(e=null!==i&&void 0!==i?i:t)&&void 0!==e?e:void 0,monitoring:r}}const k=(0,i.Mz)((e=>e),(e=>S.endpoints.getClusterInfo.select(e))),O=(0,i.Mz)((e=>e),((e,t)=>k(t)),((e,t)=>t(e).data)),N=(0,i.Mz)(((e,t)=>t),((e,t)=>O(e,t)),((e,t)=>{var n;return e||function(e){if(!e)return;return(e.startsWith("/")?e.slice(1):e).toUpperCase()}(null===t||void 0===t||null===(n=t.clusterData)||void 0===n?void 0:n.Domain)||f.QM})),T=(0,i.Mz)(((e,t)=>O(e,t)),(e=>(0,m.K)(e)),((e,t)=>{var n;const r=null===e||void 0===e||null===(n=e.clusterData)||void 0===n?void 0:n.SystemTablets;return r?t?r.map((e=>{var n;const r=void 0===e.NodeId||null===(n=t.get(e.NodeId))||void 0===n?void 0:n.Host;return{...e,fqdn:r}})):r:[]}))},67459:(e,t,n)=>{"use strict";n.d(t,{O:()=>r});var r,i=n(69220);!function(e){e.IOS="ios",e.ANDROID="android",e.BROWSER="browser"}(r||(r={}));(0,i.om)("root")({mobile:!0}).split(/\s+/)[1]},67530:(e,t,n)=>{var r=n(21551),i=n(54736),o=n(96294);e.exports=function(e){return r(e,o,i)}},67596:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},67884:(e,t,n)=>{"use strict";n.d(t,{N:()=>s});var r=n(59284),i=n(69220),o=n(11669);const a=(0,i.om)("link"),s=r.forwardRef((function({view:e="normal",visitable:t,underline:n,href:i,target:s,rel:l,title:c,children:u,extraProps:d,onClick:f,onFocus:p,onBlur:h,id:m,style:g,className:v,qa:y},b){const w={title:c,onClick:f,onClickCapture:r.useCallback((e=>{o.o.publish({componentId:"Link",eventId:"click",domEvent:e})}),[]),onFocus:p,onBlur:h,id:m,style:g,className:a({view:e,visitable:t,underline:n},v),"data-qa":y},x="_blank"!==s||l?l:"noopener noreferrer";return r.createElement("a",Object.assign({},d,w,{ref:b,href:i,target:s,rel:x}),u)}))},68055:e=>{e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}},68097:(e,t,n)=>{var r=n(19305),i=n(46626),o=n(35554),a=n(68814);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}},68414:(e,t,n)=>{var r=n(43261),i=n(59698);e.exports=function(e){return i(e)&&"[object Set]"==r(e)}},68489:(e,t,n)=>{var r=n(57578),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},68643:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=!0,i="Invariant failed";function o(e,t){if(!e){if(r)throw new Error(i);var n="function"===typeof t?t():t,o=n?"".concat(i,": ").concat(n):i;throw new Error(o)}}},68712:(e,t,n)=>{"use strict";n.d(t,{FC:()=>c,Ox:()=>a,RE:()=>i,TL:()=>l,p2:()=>s});var r=n(53850);const i=n(21334).F.injectEndpoints({endpoints:e=>({getClusterCapabilities:e.query({queryFn:async e=>{try{return{data:await window.api.viewer.getClusterCapabilities(e)}}catch(t){return{error:t}}}})}),overrideExisting:"throw"}),o=(0,r.Mz)((e=>e),(e=>i.endpoints.getClusterCapabilities.select({database:e}))),a=(0,r.Mz)((e=>e),((e,t)=>o(t)),((e,t)=>t(e))),s=(0,r.Mz)((e=>e),((e,t)=>t),((e,t,n)=>n),((e,t,n)=>{var r,i;return null===(r=a(e,n).data)||void 0===r||null===(i=r.Capabilities)||void 0===i?void 0:i[t]})),l=(0,r.Mz)((e=>e),((e,t)=>t),((e,t,n)=>n),((e,t,n)=>{var r,i,o;return null===(r=a(e,n).data)||void 0===r||null===(i=r.Settings)||void 0===i||null===(o=i.Security)||void 0===o?void 0:o[t]}));async function c(e,t,{dispatch:n,getState:r}){const o=i.util.getRunningQueryThunk("getClusterCapabilities",{database:t});return await n(o),s(r(),e,t)||0}},68814:(e,t,n)=>{var r=n(85532);e.exports=function(e){return null==e?"":r(e)}},69033:(e,t,n)=>{"use strict";n.d(t,{L:()=>a});var r=n(59284),i=n(55330),o=n(8944);const a=()=>{const{activeMediaQuery:e,theme:t}=r.useContext(i.M),{isMediaActive:n,getClosestMediaProps:a}=r.useMemo((()=>({isMediaActive:(0,o.nR)(e),getClosestMediaProps:(0,o.yZ)(e)})),[e]);return{theme:t,activeMediaQuery:e,isMediaActive:n,getClosestMediaProps:a}}},69053:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>h,TX:()=>p,Ke:()=>g});var r=n(14750),i=n(97091),o=n(959),a=n(11822),s=n(21334);const l="EndTime",c="IntervalEnd";function u(e,t){var n,i;const o=[],a=null===(n=(0,r.bQ)(Number(null===t||void 0===t?void 0:t.to)||(null===t||void 0===t?void 0:t.to)))||void 0===n?void 0:n.valueOf(),s=null===(i=(0,r.bQ)(Number(null===t||void 0===t?void 0:t.from)||(null===t||void 0===t?void 0:t.from)))||void 0===i?void 0:i.valueOf();if(s&&a&&s>a)throw new Error("Invalid date range");if(s){const e=a===s?">=":">";o.push(`${l} ${e} Timestamp('${new Date(s).toISOString()}')`)}return a&&o.push(`${l} <= Timestamp('${new Date(a).toISOString()}')`),s||a||o.push(`${c} IN ${(e=>`(\n SELECT\n MAX(${c})\n FROM \`${e}/.sys/top_queries_by_cpu_time_one_hour\`\n)`)(e)}`),null!==t&&void 0!==t&&t.text&&o.push(`(QueryText ILIKE '%${t.text}%' OR UserSID ILIKE '%${t.text}%')`),o.join(" AND ")}const d="/*UI-QUERY-EXCLUDE*/",f=(0,i.Z0)({name:"executeTopQueries",initialState:{},reducers:{setTopQueriesFilters:(e,t)=>({...e,...t.payload})}}),{setTopQueriesFilters:p}=f.actions,h=f.reducer,m=(e,t,n)=>{const r=u(e,t),i=(0,o.JD)(n);return`\nSELECT ${d}\n CPUTime as CPUTimeUs,\n QueryText,\n IntervalEnd,\n EndTime,\n ReadRows,\n ReadBytes,\n UserSID,\n Duration\nFROM \`${e}/.sys/top_queries_by_cpu_time_one_hour\`\nWHERE ${r||"true"} AND QueryText NOT LIKE '%${d}%'\n${i}\nLIMIT 100\n`},g=s.F.injectEndpoints({endpoints:e=>({getTopQueries:e.query({queryFn:async({database:e,filters:t,sortOrder:n},{signal:r})=>{const i={...t,from:(null===t||void 0===t?void 0:t.from)||"now-1h",to:(null===t||void 0===t?void 0:t.to)||"now"};try{const t=await window.api.viewer.sendQuery({query:m(e,i,n),database:e,action:"execute-scan"},{signal:r,withRetries:!0});if((0,a.We)(t))throw t;return{data:(0,a.fW)(t)}}catch(o){return{error:o}}},forceRefetch:({currentArg:e})=>{var t,n,i,o;return!(null!==e&&void 0!==e&&null!==(t=e.filters)&&void 0!==t&&t.from&&null!==e&&void 0!==e&&null!==(n=e.filters)&&void 0!==n&&n.to&&!(0,r.eP)(null===e||void 0===e||null===(i=e.filters)||void 0===i?void 0:i.from)&&!(0,r.eP)(null===e||void 0===e||null===(o=e.filters)||void 0===o?void 0:o.to))},providesTags:["All"]}),getRunningQueries:e.query({queryFn:async({database:e,filters:t,sortOrder:n},{signal:r})=>{try{const i=null!==t&&void 0!==t&&t.text?`Query ILIKE '%${t.text}%' OR UserSID ILIKE '%${t.text}%'`:"",s=(0,o.JD)(n),l=`SELECT ${d}\n UserSID, QueryStartAt, Query as QueryText, ApplicationName\n FROM\n \`.sys/query_sessions\`\n WHERE\n ${i||"true"} AND Query NOT LIKE '%${d}%'\n ${s}\n LIMIT 100`,c=await window.api.viewer.sendQuery({query:l,database:e,action:"execute-scan"},{signal:r,withRetries:!0});if((0,a.We)(c))throw c;return{data:(0,a.fW)(c)}}catch(i){return{error:i}}},forceRefetch:()=>!0,providesTags:["All"]})}),overrideExisting:"throw"})},69118:(e,t,n)=>{"use strict";n.d(t,{N:()=>O});var r=n(59284),i=n(55330);const o={media:"",matches:!1,onchange:()=>{},addListener:()=>{},removeListener:()=>{},addEventListener:()=>{},removeEventListener:()=>{},dispatchEvent:e=>!0},a=e=>"undefined"===typeof window||"function"!==typeof window.matchMedia?o:window.matchMedia(e);class s{constructor(e){this.queryListsDecl=[];const t={s:`(max-width: ${(n=e).m-1}px)`,m:`(min-width: ${n.m}px) and (max-width: ${n.l-1}px)`,l:`(min-width: ${n.l}px) and (max-width: ${n.xl-1}px)`,xl:`(min-width: ${n.xl}px) and (max-width: ${n.xxl-1}px)`,xxl:`(min-width: ${n.xxl}px) and (max-width: ${n.xxxl-1}px)`,xxxl:`(min-width: ${n.xxxl}px)`};var n;this.queryListsDecl=[["s",a(t.s)],["m",a(t.m)],["l",a(t.l)],["xl",a(t.xl)],["xxl",a(t.xxl)],["xxxl",a(t.xxxl)]]}getCurrentActiveMedia(){const e=this.queryListsDecl.find((([e,t])=>t.matches));return e?e[0]:"s"}addListeners(e){this.queryListsDecl.forEach((([t,n])=>n.addEventListener("change",e)))}removeListeners(e){this.queryListsDecl.forEach((([t,n])=>n.removeEventListener("change",e)))}}const l=(e,t="s")=>{const[n,i]=r.useState(t);return r.useLayoutEffect((()=>{const t=new s(e),n=()=>{i(t.getCurrentActiveMedia())};return t.addListeners(n),n(),()=>{t.removeListeners(n)}}),[e]),n};var c=n(17148),u=n.n(c);function d({children:e,config:t,initialMediaQuery:n}){const o=r.useContext(i.M),a=r.useMemo((()=>function({theme:e,override:t}){return u()(e,t)}({theme:o.theme,override:t})),[t,o.theme]),s=l(a.breakpoints,n),c=r.useMemo((()=>({activeMediaQuery:s,theme:a})),[s,a]);return r.createElement(i.M.Provider,{value:c},e)}var f=n(69220),p=n(42933);const h=r.createContext(void 0);h.displayName="ThemeSettingsContext";const m="system",g="light",v="dark",y="root",b="ltr",w=(0,f.om)(y),x=w();function _({theme:e,nativeScrollbar:t=!1,className:n,prevClassName:r}){const i=document.body;if(i.classList.contains(x)||i.classList.add(x),r){r.split(" ").forEach((e=>{e&&i.classList.remove(e)}))}if(n){n.split(" ").forEach((e=>{e&&!i.classList.contains(e)&&i.classList.add(e)}))}[...i.classList].forEach((e=>{e.startsWith((0,f.Nx)(w({theme:!0})))&&i.classList.remove(e)})),i.classList.add((0,f.Nx)(w({theme:e})));const o={"native-scrollbar":t};for(const[a,s]of Object.entries(o))i.classList.toggle((0,f.Nx)(w({[a]:!0})),s)}const E="undefined"!==typeof window&&"function"===typeof window.matchMedia,S=()=>window.matchMedia("(prefers-color-scheme: dark)");function C(){const[e,t]=r.useState(E&&S().matches?"dark":"light");return r.useEffect((()=>{if(!E)return;const e=function(e,t){const n="function"!==typeof e.addEventListener;return n?e.addListener(t):e.addEventListener("change",t),()=>{n?e.removeListener(t):e.removeEventListener("change",t)}}(S(),(function(e){t(e.matches?"dark":"light")}));return()=>e()}),[]),e}const k=(0,f.om)(y);function O({theme:e,systemLightTheme:t,systemDarkTheme:n,direction:i,nativeScrollbar:o,scoped:a=!1,rootClassName:s="",children:l,layout:c}){var u,f,y,w;const x=r.useContext(p.D),E=r.useContext(h),S=void 0!==x||a,O=null!==(u=null===x||void 0===x?void 0:x.theme)&&void 0!==u?u:m,N=null!==e&&void 0!==e?e:O,T=null!==(f=null!==t&&void 0!==t?t:null===E||void 0===E?void 0:E.systemLightTheme)&&void 0!==f?f:g,A=null!==(y=null!==n&&void 0!==n?n:null===E||void 0===E?void 0:E.systemDarkTheme)&&void 0!==y?y:v,I=null!==(w=null===x||void 0===x?void 0:x.direction)&&void 0!==w?w:b,P=null!==i&&void 0!==i?i:I,R="light"===C()?T:A,D="system"===N?R:N,j=r.useRef("");r.useLayoutEffect((()=>{S||(_({theme:D,nativeScrollbar:o,className:s,prevClassName:j.current}),function(e){const t=document.body;e===b?t.removeAttribute("dir"):t.setAttribute("dir",e)}(P),j.current=s)}),[S,D,P,o,s]);const M=r.useMemo((()=>({theme:N,themeValue:D,direction:P,scoped:S})),[N,D,P,S]),L=r.useMemo((()=>({systemLightTheme:T,systemDarkTheme:A})),[T,A]);return r.createElement(d,Object.assign({},c),r.createElement(p.D.Provider,{value:M},r.createElement(h.Provider,{value:L},S?r.createElement("div",{className:k({theme:D,"native-scrollbar":!1!==o},s),dir:P},l):l)))}O.displayName="ThemeProvider"},69123:(e,t,n)=>{var r="function"===typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&i&&"function"===typeof i.get?i.get:null,a=r&&Map.prototype.forEach,s="function"===typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&l&&"function"===typeof l.get?l.get:null,u=s&&Set.prototype.forEach,d="function"===typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"===typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"===typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,m=Object.prototype.toString,g=Function.prototype.toString,v=String.prototype.match,y=String.prototype.slice,b=String.prototype.replace,w=String.prototype.toUpperCase,x=String.prototype.toLowerCase,_=RegExp.prototype.test,E=Array.prototype.concat,S=Array.prototype.join,C=Array.prototype.slice,k=Math.floor,O="function"===typeof BigInt?BigInt.prototype.valueOf:null,N=Object.getOwnPropertySymbols,T="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,A="function"===typeof Symbol&&"object"===typeof Symbol.iterator,I="function"===typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===A||"symbol")?Symbol.toStringTag:null,P=Object.prototype.propertyIsEnumerable,R=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function D(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||_.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof e){var r=e<0?-k(-e):k(e);if(r!==e){var i=String(r),o=y.call(t,i.length+1);return b.call(i,n,"$&_")+"."+b.call(b.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,n,"$&_")}var j=n(42634),M=j.custom,L=H(M)?M:null,z={__proto__:null,double:'"',single:"'"},F={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function B(e,t,n){var r=n.quoteStyle||t,i=z[r];return i+e+i}function U(e){return b.call(String(e),/"/g,""")}function q(e){return"[object Array]"===K(e)&&(!I||!("object"===typeof e&&I in e))}function $(e){return"[object RegExp]"===K(e)&&(!I||!("object"===typeof e&&I in e))}function H(e){if(A)return e&&"object"===typeof e&&e instanceof Symbol;if("symbol"===typeof e)return!0;if(!e||"object"!==typeof e||!T)return!1;try{return T.call(e),!0}catch(t){}return!1}e.exports=function e(t,r,i,s){var l=r||{};if(W(l,"quoteStyle")&&!W(z,l.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(W(l,"maxStringLength")&&("number"===typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!W(l,"customInspect")||l.customInspect;if("boolean"!==typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(W(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(W(l,"numericSeparator")&&"boolean"!==typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=l.numericSeparator;if("undefined"===typeof t)return"undefined";if(null===t)return"null";if("boolean"===typeof t)return t?"true":"false";if("string"===typeof t)return Y(t,l);if("number"===typeof t){if(0===t)return 1/0/t>0?"0":"-0";var _=String(t);return w?D(t,_):_}if("bigint"===typeof t){var k=String(t)+"n";return w?D(t,k):k}var N="undefined"===typeof l.depth?5:l.depth;if("undefined"===typeof i&&(i=0),i>=N&&N>0&&"object"===typeof t)return q(t)?"[Array]":"[Object]";var M=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"===typeof e.indent&&e.indent>0))return null;n=S.call(Array(e.indent+1)," ")}return{base:n,prev:S.call(Array(t+1),n)}}(l,i);if("undefined"===typeof s)s=[];else if(G(s,t)>=0)return"[Circular]";function F(t,n,r){if(n&&(s=C.call(s)).push(n),r){var o={depth:l.depth};return W(l,"quoteStyle")&&(o.quoteStyle=l.quoteStyle),e(t,o,i+1,s)}return e(t,l,i+1,s)}if("function"===typeof t&&!$(t)){var V=function(e){if(e.name)return e.name;var t=v.call(g.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),Q=te(t,F);return"[Function"+(V?": "+V:" (anonymous)")+"]"+(Q.length>0?" { "+S.call(Q,", ")+" }":"")}if(H(t)){var ne=A?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):T.call(t);return"object"!==typeof t||A?ne:Z(ne)}if(function(e){if(!e||"object"!==typeof e)return!1;if("undefined"!==typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"===typeof e.nodeName&&"function"===typeof e.getAttribute}(t)){for(var re="<"+x.call(String(t.nodeName)),ie=t.attributes||[],oe=0;oe<ie.length;oe++)re+=" "+ie[oe].name+"="+B(U(ie[oe].value),"double",l);return re+=">",t.childNodes&&t.childNodes.length&&(re+="..."),re+="</"+x.call(String(t.nodeName))+">"}if(q(t)){if(0===t.length)return"[]";var ae=te(t,F);return M&&!function(e){for(var t=0;t<e.length;t++)if(G(e[t],"\n")>=0)return!1;return!0}(ae)?"["+ee(ae,M)+"]":"[ "+S.call(ae,", ")+" ]"}if(function(e){return"[object Error]"===K(e)&&(!I||!("object"===typeof e&&I in e))}(t)){var se=te(t,F);return"cause"in Error.prototype||!("cause"in t)||P.call(t,"cause")?0===se.length?"["+String(t)+"]":"{ ["+String(t)+"] "+S.call(se,", ")+" }":"{ ["+String(t)+"] "+S.call(E.call("[cause]: "+F(t.cause),se),", ")+" }"}if("object"===typeof t&&m){if(L&&"function"===typeof t[L]&&j)return j(t,{depth:N-i});if("symbol"!==m&&"function"===typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!==typeof e)return!1;try{o.call(e);try{c.call(e)}catch(re){return!0}return e instanceof Map}catch(t){}return!1}(t)){var le=[];return a&&a.call(t,(function(e,n){le.push(F(n,t,!0)+" => "+F(e,t))})),X("Map",o.call(t),le,M)}if(function(e){if(!c||!e||"object"!==typeof e)return!1;try{c.call(e);try{o.call(e)}catch(t){return!0}return e instanceof Set}catch(n){}return!1}(t)){var ce=[];return u&&u.call(t,(function(e){ce.push(F(e,t))})),X("Set",c.call(t),ce,M)}if(function(e){if(!d||!e||"object"!==typeof e)return!1;try{d.call(e,d);try{f.call(e,f)}catch(re){return!0}return e instanceof WeakMap}catch(t){}return!1}(t))return J("WeakMap");if(function(e){if(!f||!e||"object"!==typeof e)return!1;try{f.call(e,f);try{d.call(e,d)}catch(re){return!0}return e instanceof WeakSet}catch(t){}return!1}(t))return J("WeakSet");if(function(e){if(!p||!e||"object"!==typeof e)return!1;try{return p.call(e),!0}catch(t){}return!1}(t))return J("WeakRef");if(function(e){return"[object Number]"===K(e)&&(!I||!("object"===typeof e&&I in e))}(t))return Z(F(Number(t)));if(function(e){if(!e||"object"!==typeof e||!O)return!1;try{return O.call(e),!0}catch(t){}return!1}(t))return Z(F(O.call(t)));if(function(e){return"[object Boolean]"===K(e)&&(!I||!("object"===typeof e&&I in e))}(t))return Z(h.call(t));if(function(e){return"[object String]"===K(e)&&(!I||!("object"===typeof e&&I in e))}(t))return Z(F(String(t)));if("undefined"!==typeof window&&t===window)return"{ [object Window] }";if("undefined"!==typeof globalThis&&t===globalThis||"undefined"!==typeof n.g&&t===n.g)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===K(e)&&(!I||!("object"===typeof e&&I in e))}(t)&&!$(t)){var ue=te(t,F),de=R?R(t)===Object.prototype:t instanceof Object||t.constructor===Object,fe=t instanceof Object?"":"null prototype",pe=!de&&I&&Object(t)===t&&I in t?y.call(K(t),8,-1):fe?"Object":"",he=(de||"function"!==typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(pe||fe?"["+S.call(E.call([],pe||[],fe||[]),": ")+"] ":"");return 0===ue.length?he+"{}":M?he+"{"+ee(ue,M)+"}":he+"{ "+S.call(ue,", ")+" }"}return String(t)};var V=Object.prototype.hasOwnProperty||function(e){return e in this};function W(e,t){return V.call(e,t)}function K(e){return m.call(e)}function G(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function Y(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return Y(y.call(e,0,t.maxStringLength),t)+r}var i=F[t.quoteStyle||"single"];return i.lastIndex=0,B(b.call(b.call(e,i,"\\$1"),/[\x00-\x1f]/g,Q),"single",t)}function Q(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function Z(e){return"Object("+e+")"}function J(e){return e+" { ? }"}function X(e,t,n,r){return e+" ("+t+") {"+(r?ee(n,r):S.call(n,", "))+"}"}function ee(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+S.call(e,","+n)+"\n"+t.prev}function te(e,t){var n=q(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=W(e,i)?t(e[i],e):""}var o,a="function"===typeof N?N(e):[];if(A){o={};for(var s=0;s<a.length;s++)o["$"+a[s]]=a[s]}for(var l in e)W(e,l)&&(n&&String(Number(l))===l&&l<e.length||A&&o["$"+l]instanceof Symbol||(_.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if("function"===typeof N)for(var c=0;c<a.length;c++)P.call(e,a[c])&&r.push("["+t(a[c])+"]: "+t(e[a[c]],e));return r}},69220:(e,t,n)=>{"use strict";n.d(t,{CU:()=>i,Nx:()=>a,om:()=>o});var r=n(82435);const i="g-",o=((0,r.withNaming)({e:"__",m:"_"}),(0,r.withNaming)({n:i,e:"__",m:"_"}));function a(e){return e.split(/\s(.*)/)[1]}},69310:(e,t)=>{t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},69426:e=>{"use strict";e.exports=Function.prototype.apply},69446:(e,t,n)=>{"use strict";n.d(t,{M6:()=>i,PG:()=>r,Zd:()=>o});const r=e=>e.replace(/\/viewer\/json/,""),i=e=>{const t=r((e=>e.replace(/http[s]?:\/\//,""))(e)),n=t.split("/");if(1===n.length)return{balancer:n[0],proxy:void 0};const i=n[0];return{balancer:t.replace(i+"/",""),proxy:i}},o=e=>i(e).balancer.replace(/:\d+$/,"")},70084:e=>{"use strict";e.exports=Function.prototype.call},70364:(e,t,n)=>{var r=n(92470)(n(4133),"Promise");e.exports=r},70825:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.5 8a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0m-3.9-1.55a.75.75 0 1 0-1.2-.9L7.419 8.858 6.03 7.47a.75.75 0 0 0-1.06 1.06l2 2a.75.75 0 0 0 1.13-.08z",clipRule:"evenodd"}))},70911:e=>{"use strict";const t=new Set(["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED","HOSTNAME_MISMATCH"]);e.exports=e=>!t.has(e&&e.code)},71165:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UtcTimeZone=void 0,t.UtcTimeZone="UTC"},71259:(e,t,n)=>{var r=n(80472),i=n(61872),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];o.call(e,t)&&i(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},71325:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},71661:(e,t,n)=>{"use strict";n.d(t,{s:()=>l});var r=n(84375),i=n(77506),o=n(60712);const a=(0,i.cn)("ydb-cell-with-popover"),s=100;function l({children:e,className:t,wrapperClassName:n,fullWidth:i,...l}){return(0,o.jsx)("div",{className:a({"full-width":i},n),children:(0,o.jsx)(r.A,{delayClosing:s,delayOpening:s,className:a("popover",{"full-width":i},t),...l,children:e})})}},71765:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.getTimeZonesList=t.guessUserTimeZone=void 0,t.isValidTimeZone=s,t.timeZoneOffset=c,t.normalizeTimeZone=u,t.fixOffset=function(e,t,n){var r=e-60*t*1e3,i=c(n,r);if(t===i)return[r,t];var o=c(n,r-=60*(i-t)*1e3);if(i===o)return[r,i];return[e-60*Math.min(i,o)*1e3,Math.min(i,o)]},t.parseZoneInfo=function(e){var t=e.timeZone,n=e.ts,i=e.locale,o=e.offsetFormat,a=new Date(n),s={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};t&&(s.timeZone=u(t,t));var l=r({timeZoneName:o},s),c=new Intl.DateTimeFormat(i,l).formatToParts(a).find((function(e){return"timezonename"===e.type.toLowerCase()}));return c?c.value:""};var i=n(72328),o=n(16572);t.guessUserTimeZone=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone};t.getTimeZonesList=function(){var e;return(null===(e=Intl.supportedValuesOf)||void 0===e?void 0:e.call(Intl,"timeZone"))||[]};var a={};function s(e){if(!e)return!1;if(Object.prototype.hasOwnProperty.call(a,e))return a[e];try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),a[e]=!0,!0}catch(t){return a[e]=!1,!1}}var l=["year","month","day","hour","minute","second","era"];function c(e,t){var n=new Date(t);if(isNaN(n.valueOf())||"system"!==e&&!s(e))return NaN;if("system"===e)return-n.getTimezoneOffset()||0;for(var r,i={year:1,month:1,day:1,hour:0,minute:0,second:0,era:"AD"},a=0,c=(0,o.getDateTimeFormat)("en-US",{hour12:!1,timeZone:"system"===e?void 0:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}).formatToParts(n);a<c.length;a++){var u=c[a],d=u.type,f=u.value;"era"===d?i.era=f:(r=d,l.includes(r)&&(i[d]=parseInt(f,10)))}var p="BC"===i.era?1-Math.abs(i.year):i.year,h=i.month-1,m=24===i.hour?0:i.hour,g=Date.UTC(p,h,i.day,m,i.minute,i.second,0);if(p<100&&p>=0){var v=new Date(g);v.setUTCFullYear(p,h,i.day),g=v.valueOf()}var y=n.valueOf(),b=y%1e3;return(g-(y-=b>=0?b:1e3+b))/6e4}function u(e,t){if(void 0===e||null===e)return t;var n=e.toLowerCase();if("utc"===n||"gmt"===n)return i.UtcTimeZone;if("system"===n)return"system";if("default"===n)return t;if(s(e))return e;throw new Error("InvalidZone: ".concat(e))}},71824:(e,t,n)=>{var r=n(48303),i=n(54074),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},71928:(e,t,n)=>{const r=n(69310),i=n(16284);t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!r.isValid(t))throw new Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return i.testNumeric(e)?t.NUMERIC:i.testAlphanumeric(e)?t.ALPHANUMERIC:i.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!==typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+e)}}(e)}catch(r){return n}}},72078:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},72220:(e,t,n)=>{var r=n(43261),i=n(59698);e.exports=function(e){return i(e)&&"[object Map]"==r(e)}},72328:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(22551),t),i(n(95197),t),i(n(71165),t)},72630:(e,t,n)=>{"use strict";n.d(t,{A:()=>_});var r=n(58168),i=n(98587),o=n(25540);function a(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var s=n(59284),l=n(48681);const c=!1;var u=n(10641),d=function(e){return e.scrollTop},f="unmounted",p="exited",h="entering",m="entered",g="exiting",v=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=p,r.appearStatus=h):i=m:i=t.unmountOnExit||t.mountOnEnter?f:p,r.state={status:i},r.nextCallback=null,r}(0,o.A)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===f?{status:p}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==h&&n!==m&&(t=h):n!==h&&n!==m||(t=g)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===h){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:l.findDOMNode(this);n&&d(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===p&&this.setState({status:f})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[l.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),u=r?s.appear:s.enter;!e&&!n||c?this.safeSetState({status:m},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:h},(function(){t.props.onEntering(o,a),t.onTransitionEnd(u,(function(){t.safeSetState({status:m},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:l.findDOMNode(this);t&&!c?(this.props.onExit(r),this.safeSetState({status:g},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:p},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:p},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:l.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===f)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,i.A)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return s.createElement(u.A.Provider,{value:null},"function"===typeof n?n(e,r):s.cloneElement(s.Children.only(n),r))},t}(s.Component);function y(){}v.contextType=u.A,v.propTypes={},v.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:y,onEntering:y,onEntered:y,onExit:y,onExiting:y,onExited:y},v.UNMOUNTED=f,v.EXITED=p,v.ENTERING=h,v.ENTERED=m,v.EXITING=g;const b=v;var w=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"===typeof n.className?n.className=a(n.className,r):n.setAttribute("class",a(n.className&&n.className.baseVal||"",r)));var n,r}))},x=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1];t.removeClasses(i,"exit"),t.addClass(i,o?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.addClass(i,o,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.removeClasses(i,o),t.addClass(i,o,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"===typeof n,i=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:i,activeClassName:r?i+"-active":n[e+"Active"],doneClassName:r?i+"-done":n[e+"Done"]}},t}(0,o.A)(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],i=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&i&&(r+=" "+i),"active"===n&&e&&d(e),r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"===typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,o=n.done;this.appliedClasses[t]={},r&&w(e,r),i&&w(e,i),o&&w(e,o)},n.render=function(){var e=this.props,t=(e.classNames,(0,i.A)(e,["classNames"]));return s.createElement(b,(0,r.A)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(s.Component);x.defaultProps={classNames:""},x.propTypes={};const _=x},72633:(e,t,n)=>{var r=n(47018),i=n(29355)(r);e.exports=i},72665:e=>{var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},72837:(e,t,n)=>{"use strict";n.d(t,{N:()=>l});var r=n(1448),i=n(3357);const{lang:o,fallbackLang:a}=(0,i.zj)(),s=new r.TH({lang:o,fallbackLang:a});function l(e,t){Object.entries(e).forEach((([e,n])=>s.registerKeyset(e,t,n)));return s.keyset(t)}(0,i.ZM)((e=>{s.setLang(e.lang),s.setFallbackLang(e.fallbackLang)}))},72976:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,Jf:()=>o,sM:()=>a});const r="ENABLE_FULLSCREEN_MODE",i="DISABLE_FULLSCREEN_MODE";function o(){return{type:r}}function a(){return{type:i}}const s=function(e=false,t){switch(t.type){case i:return!1;case r:return!0;default:return e}}},73073:(e,t,n)=>{e=n.nmd(e);var r=n(54528),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(t){}}();e.exports=s},73148:(e,t,n)=>{var r=n(44735),i=n(90552),o=n(29776);e.exports=function(e){return function(t,n,a){return a&&"number"!=typeof a&&i(t,n,a)&&(n=a=void 0),t=o(t),void 0===n?(n=t,t=0):n=o(n),a=void 0===a?t<n?1:-1:o(a),r(t,n,a,e)}}},73289:(e,t,n)=>{"use strict";n.d(t,{iZ:()=>E,Ay:()=>_,tS:()=>N,JK:()=>O,JO:()=>U,nO:()=>C,py:()=>M,Kz:()=>j,jY:()=>D,$u:()=>B,wf:()=>z,yJ:()=>L,Wp:()=>F,Ni:()=>A,Id:()=>T});var r=n(97091),i=n(59001),o=n(11822);const a={[o.PB.off]:0,[o.PB.toplevel]:4,[o.PB.basic]:9,[o.PB.detailed]:13,[o.PB.diagnostic]:14,[o.PB.trace]:15};var s=n(76086),l=n(41650),c=n(21334);const u=new Set(["PlanNodeId","PlanNodeType","Node Type","Plans"]);function d(e){const t=[];if(e.Operators){const n=[];for(const t of e.Operators){const e={name:t.Name,items:[]};for(const[n,r]of Object.entries(t)){if("Name"===n)continue;const t="string"===typeof r?r:JSON.stringify(r);e.items.push({name:n,value:t})}n.push(e)}t.push({group:"Operators",stats:n})}if("Connection"===e.PlanNodeType){const n=[];for(const[t,r]of Object.entries(e))u.has(t)||n.push({name:t,value:"string"===typeof r?r:JSON.stringify(r)});n.length>0&&t.push({group:"Attributes",stats:n})}if(e.Stats){const n=[];for(const[t,r]of Object.entries(e.Stats))n.push({name:t,value:"string"===typeof r?r:JSON.stringify(r)});t.push({group:"Stats",stats:n})}return t}function f(e){switch(e.PlanNodeType){case"Connection":return"connection";case"ResultSet":return"result";case"Query":return"query";default:return"stage"}}function p(e){const t=[],n=[];const r=e,i={name:String(r.PlanNodeId),data:{id:r.PlanNodeId,type:f(r),name:r["Node Type"]}};return t.push(i),function e(r=[],i){r.forEach((r=>{var o;const a={name:String(r.PlanNodeId),data:{id:r.PlanNodeId,type:f(r),name:r["Node Type"],operators:null===(o=r.Operators)||void 0===o?void 0:o.map((e=>e.Name)),stats:d(r),tables:r.Tables}};t.push(a),n.push({from:i,to:a.name}),e(r.Plans,a.name)}))}(r.Plans,i.name),{nodes:t,links:n}}const h=Object.values({v2:"0.2"});function m(e,t){var n,r,i;if(e){const{tables:t,meta:n,Plan:r,SimplifiedPlan:i}=(0,o.UF)(e);if(-1===h.indexOf(n.version))return{pristine:e,version:n.version};let a,s=[],l=[];if(r){const e=p(r);s=e.links,l=e.nodes}return i&&(a=function(e){const t=[],n=e.map((e=>({node:e})));for(;n.length>0;){var r;const{node:e,subNodes:i}=n.pop(),o=e.Plans,a=null===(r=e.Operators)||void 0===r?void 0:r[0],s=i||t;if(a){const{"A-Cpu":e,"A-Rows":t,"E-Cost":r,"E-Rows":i,"E-Size":l,SsaProgram:c,Name:u,...d}=a,f={name:u,operationParams:d,aCpu:e,aRows:t,eCost:r,eRows:i,eSize:l,children:[]};if(s.push(f),o)for(let a=o.length-1;a>=0;a--)n.push({node:o[a],subNodes:f.children})}else if(o)for(let t=o.length-1;t>=0;t--)n.push({node:o[t],subNodes:s})}return t}([i])),{links:s,nodes:l,tables:t,version:n.version,pristine:e,simplifiedPlan:i?{plan:a,pristine:i}:void 0}}const a=null===t||void 0===t||null===(n=t.Executions)||void 0===n||null===(r=n[0])||void 0===r||null===(i=r.TxPlansWithStats)||void 0===i?void 0:i[0];if(a)try{const e=JSON.parse(a);return{...p(e),pristine:e}}catch{return{}}return{}}function g(e){const t=(0,o.fW)(e),{plan:n,stats:r}=t,{simplifiedPlan:i,...a}=m(n,r);return{...t,preparedPlan:Object.keys(a).length>0?a:void 0,simplifiedPlan:i}}var v=n(80971);const y=i.f.readUserSettingsValue(s.MB,[]),b=y.length-20,w={input:"",history:{queries:y.slice(b<0?0:b).map(v.QG),currentIndex:y.length>20?19:y.length-1,filter:""}},x=(0,r.Z0)({name:"query",initialState:w,reducers:{changeUserInput:(e,t)=>{e.input=t.payload.input},setQueryResult:(e,t)=>{e.result=t.payload},saveQueryToHistory:(e,t)=>{const{queryText:n,queryId:r}=t.payload,o=[...e.history.queries,{queryText:n,queryId:r}].slice(e.history.queries.length>=20?1:0);i.f.setUserSettingsValue(s.MB,o);const a=o.length-1;e.history={queries:o,currentIndex:a}},updateQueryInHistory:(e,t)=>{const{queryId:n,stats:r}=t.payload;if(!r)return;const o=e.history.queries.findIndex((e=>e.queryId===n));if(-1===o)return;const a=[...e.history.queries],{durationUs:l,endTime:c}=r;a.splice(o,1,{...e.history.queries[o],durationUs:l,endTime:c}),i.f.setUserSettingsValue(s.MB,a),e.history.queries=a},goToPreviousQuery:e=>{const t=e.history.currentIndex;if(t<=0)return;const n=t-1,r=e.history.queries[n];e.input=r.queryText,e.history.currentIndex=n},goToNextQuery:e=>{const t=e.history.currentIndex;if(t>=e.history.queries.length-1)return;const n=t+1,r=e.history.queries[n];e.input=r.queryText,e.history.currentIndex=n},setTenantPath:(e,t)=>{e.tenantPath=t.payload},setQueryHistoryFilter:(e,t)=>{e.history.filter=t.payload},setStreamSession:(e,t)=>{if(!e.result)return;e.result.data||(e.result.data=g(null));const n=t.payload;e.result.isLoading=!0,e.result.queryId=n.meta.query_id,e.result.data.traceId=n.meta.trace_id},addStreamingChunks:(e,t)=>{if(!e.result)return;e.result.data=e.result.data||g(null),e.result.data.resultSets=e.result.data.resultSets||[];const n=t.payload.reduce(((e,t)=>{const n=t.meta.result_index,r=e.get(n);var i;r?(null===(i=r.result.rows)||void 0===i||i.push(...t.result.rows||[]),r.result.truncated=r.result.truncated||t.result.truncated):e.set(n,{...t,result:{...t.result,rows:t.result.rows||[],truncated:t.result.truncated}});return e}),new Map);for(const[i,a]of n.entries()){var r;const{columns:t,rows:n}=a.result,s=e.result.data.resultSets;s[i]||(s[i]={columns:[],result:[],truncated:!1});const l=s[i];!t||null!==(r=l.columns)&&void 0!==r&&r.length||(l.columns=t);const c=n||[];(0,o.F)(c,l.columns||[]).forEach((e=>{var t;null===(t=l.result)||void 0===t||t.push(e)})),l.truncated=a.result.truncated}},setStreamQueryResponse:(e,t)=>{if(!e.result)return;e.result.data||(e.result.data=g(null)),e.result.isLoading=!1;const n=t.payload;if("error"in n)e.result.error=n;else if("plan"in n){e.result.data||(e.result.data=g(null));const{plan:t,stats:r}=n,{simplifiedPlan:i,...o}=m(t,r);e.result.data.preparedPlan=Object.keys(o).length>0?o:void 0,e.result.data.simplifiedPlan=i,e.result.data.plan=n.plan,e.result.data.stats=n.stats}e.result.endTime=Date.now()}},selectors:{selectQueriesHistoryFilter:e=>e.history.filter||"",selectTenantPath:e=>e.tenantPath,selectQueryDuration:e=>{var t,n;return{startTime:null===(t=e.result)||void 0===t?void 0:t.startTime,endTime:null===(n=e.result)||void 0===n?void 0:n.endTime}},selectResult:e=>e.result,selectQueriesHistory:e=>{var t;const n=e.history.queries,r=null===(t=e.history.filter)||void 0===t?void 0:t.toLowerCase();return r?n.filter((e=>e.queryText.toLowerCase().includes(r))):n},selectUserInput:e=>e.input,selectQueriesHistoryCurrentIndex:e=>{var t;return null===(t=e.history)||void 0===t?void 0:t.currentIndex}}}),_=x.reducer,{changeUserInput:E,setQueryResult:S,saveQueryToHistory:C,updateQueryInHistory:k,goToPreviousQuery:O,goToNextQuery:N,setTenantPath:T,setQueryHistoryFilter:A,addStreamingChunks:I,setStreamQueryResponse:P,setStreamSession:R}=x.actions,{selectQueriesHistoryFilter:D,selectQueriesHistoryCurrentIndex:j,selectQueriesHistory:M,selectTenantPath:L,selectResult:z,selectUserInput:F,selectQueryDuration:B}=x.selectors,U=c.F.injectEndpoints({endpoints:e=>({useStreamQuery:e.mutation({queryFn:async({query:e,database:t,querySettings:n={},enableTracingLevel:r},{signal:i,dispatch:o,getState:s})=>{const c=Date.now();o(S({type:"execute",queryId:"",isLoading:!0,startTime:c}));const{action:u,syntax:d}=(0,v.AH)("execute",null===n||void 0===n?void 0:n.queryMode);try{let s=[],c=null;const f=()=>{s.length>0&&(o(I(s)),s=[]),c=null};return await window.api.streaming.streamQuery({query:e,database:t,action:u,syntax:d,stats:n.statisticsMode,tracingLevel:n.tracingLevel&&r?a[n.tracingLevel]:void 0,limit_rows:(0,l.kf)(n.limitRows)?Number(n.limitRows):void 0,transaction_mode:"implicit"===n.transactionMode?void 0:n.transactionMode,timeout:(0,l.kf)(n.timeout)?1e3*Number(n.timeout):void 0,output_chunk_max_size:1e3,concurrent_results:void 0},{signal:i,onSessionChunk:e=>{o(R(e))},onStreamDataChunk:e=>{s.push(e),c||(c=window.requestAnimationFrame(f))},onQueryResponseChunk:e=>{o(P(e))}}),c&&(window.cancelAnimationFrame(c),f()),{data:null}}catch(p){var f;const e=s();return o(S({...e.query.result,type:"execute",error:p,isLoading:!1,startTime:c,endTime:Date.now(),queryId:(null===(f=e.query.result)||void 0===f?void 0:f.queryId)||""})),{error:p}}}}),useSendQuery:e.mutation({queryFn:async({actionType:e="execute",query:t,database:n,querySettings:r={},enableTracingLevel:i,queryId:s},{signal:c,dispatch:u})=>{const d=Date.now();u(S({type:e,queryId:s,isLoading:!0,startTime:d}));const{action:f,syntax:p}=(0,v.AH)(e,null===r||void 0===r?void 0:r.queryMode);try{var h;const m=Date.now(),v=await window.api.viewer.sendQuery({query:t,database:n,action:f,syntax:p,stats:r.statisticsMode,tracingLevel:r.tracingLevel&&i?a[r.tracingLevel]:void 0,limit_rows:(0,l.kf)(r.limitRows)?Number(r.limitRows):void 0,transaction_mode:"implicit"===r.transactionMode?void 0:r.transactionMode,timeout:(0,l.kf)(r.timeout)?1e3*Number(r.timeout):void 0,query_id:s},{signal:c});if((0,o.We)(v))return u(S({type:e,error:v,isLoading:!1,queryId:s,startTime:d,endTime:Date.now()})),{error:v};const y=g(v);if(y.traceId=null===v||void 0===v||null===(h=v._meta)||void 0===h?void 0:h.traceId,"execute"===e){const e={};if(y.stats){const{DurationUs:t,Executions:[{FinishTimeMs:n}]=[{}]}=y.stats;e.durationUs=t,e.endTime=n}else{const t=Date.now();e.durationUs=1e3*(t-m),e.endTime=t}u(k({stats:e,queryId:s}))}return u(S({type:e,data:y,isLoading:!1,queryId:s,startTime:d,endTime:Date.now()})),{data:null}}catch(m){return u(S({type:e,error:m,isLoading:!1,queryId:s,startTime:d,endTime:Date.now()})),{error:m}}}})}),overrideExisting:"throw"})},73620:e=>{"use strict";e.exports=Math.max},73633:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 13.5a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14M6.44 4.54c.43-.354.994-.565 1.56-.565 1.217 0 2.34.82 2.34 2.14 0 .377-.078.745-.298 1.1-.208.339-.513.614-.875.867-.217.153-.325.257-.379.328-.038.052-.038.07-.038.089a.75.75 0 0 1-1.5 0c0-.794.544-1.286 1.057-1.645.28-.196.4-.332.458-.426a.54.54 0 0 0 .075-.312c0-.3-.244-.641-.84-.641a1 1 0 0 0-.608.223c-.167.138-.231.287-.231.418a.75.75 0 0 1-1.5 0c0-.674.345-1.22.78-1.577M8 12a1 1 0 1 0 0-2 1 1 0 0 0 0 2",clipRule:"evenodd"}))},73712:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},73759:e=>{"use strict";e.exports=Error},73885:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},73888:(e,t,n)=>{"use strict";var r=n(7445),i=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},r=0;r<e.length;++r)"undefined"!==typeof e[r]&&(n[r]=e[r]);return n},l=1024;e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],s=Object.keys(a),l=0;l<s.length;++l){var c=s[l],u=a[c];"object"===typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:a,prop:c}),n.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i<n.length;++i)"undefined"!==typeof n[i]&&r.push(n[i]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(i){return r}},encode:function(e,t,n,i,o){if(0===e.length)return e;var s=e;if("symbol"===typeof e?s=Symbol.prototype.toString.call(e):"string"!==typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var c="",u=0;u<s.length;u+=l){for(var d=s.length>=l?s.slice(u,u+l):s,f=[],p=0;p<d.length;++p){var h=d.charCodeAt(p);45===h||46===h||95===h||126===h||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||o===r.RFC1738&&(40===h||41===h)?f[f.length]=d.charAt(p):h<128?f[f.length]=a[h]:h<2048?f[f.length]=a[192|h>>6]+a[128|63&h]:h<55296||h>=57344?f[f.length]=a[224|h>>12]+a[128|h>>6&63]+a[128|63&h]:(p+=1,h=65536+((1023&h)<<10|1023&d.charCodeAt(p)),f[f.length]=a[240|h>>18]+a[128|h>>12&63]+a[128|h>>6&63]+a[128|63&h])}c+=f.join("")}return c},isBuffer:function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!==typeof n&&"function"!==typeof n){if(o(t))t.push(n);else{if(!t||"object"!==typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!i.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!==typeof t)return[t].concat(n);var a=t;return o(t)&&!o(n)&&(a=s(t,r)),o(t)&&o(n)?(n.forEach((function(n,o){if(i.call(t,o)){var a=t[o];a&&"object"===typeof a&&n&&"object"===typeof n?t[o]=e(a,n,r):t.push(n)}else t[o]=n})),t):Object.keys(n).reduce((function(t,o){var a=n[o];return i.call(t,o)?t[o]=e(t[o],a,r):t[o]=a,t}),a)}}},73891:(e,t,n)=>{"use strict";n.d(t,{Bi:()=>c,Xo:()=>u,i6:()=>h,ee:()=>f,MC:()=>m,Jc:()=>g});var r=n(76086),i=n(56839),o=n(48372);const a=JSON.parse('{"daysHours":"{{days}}\xa0d\xa0{{hours}}\xa0h","hoursMin":"{{hours}}\xa0h\xa0{{minutes}}\xa0m","minSec":"{{minutes}}\xa0m\xa0{{seconds}}\xa0s","secMs":"{{seconds}}\xa0s\xa0{{ms}}\xa0ms","days":"{{days}}\xa0d","hours":"{{hours}}\xa0h","min":"{{minutes}}\xa0m","sec":"{{seconds}}\xa0s","ms":"{{ms}}\xa0ms"}'),s=JSON.parse('{"daysHours":"{{days}}\xa0\u0434\xa0{{hours}}\xa0\u0447","hoursMin":"{{hours}}\xa0\u0447\xa0{{minutes}}\xa0\u043c","minSec":"{{minutes}}\xa0\u043c\xa0{{seconds}}\xa0\u0441","secMs":"{{seconds}}\xa0\u0441\xa0{{ms}}\xa0\u043c\u0441","days":"{{days}}\xa0\u0434","hours":"{{hours}}\xa0\u0447","min":"{{minutes}}\xa0\u043c","sec":"{{seconds}}\xa0\u0441","ms":"{{ms}}\xa0\u043c\u0441"}'),l=(0,o.g4)("ydb-time-parsers",{ru:s,en:a}),c=(e,t=2)=>{const n=e%1e3;let i=Math.floor(e/1e3);const o=Math.floor(i/r.tt);i%=r.tt;const a=Math.floor(i/r.Jg);i%=r.Jg;const s=Math.floor(i/60);i%=60;const c=i,u={days:o,hours:a,minutes:s,seconds:c,ms:n};if(2===t){if(o>0)return l("daysHours",u);if(a>0)return l("hoursMin",u);if(s>0)return l("minSec",u);if(c>0)return l("secMs",u)}if(1===t){if(o>0)return l("days",u);if(a>0)return l("hours",u);if(s>0)return l("min",u);if(c>0)return l("sec",u)}return l("ms",u)},u=e=>l("ms",{ms:(0,i.ZV)(e)}),d=e=>(e.seconds?1e3*Number(e.seconds):0)+(e.nanos?e.nanos/r.zz:0),f=e=>"string"===typeof e?Date.parse(e):d(e);var p=n(41650);const h=e=>e?(e=>"string"===typeof e?1e3*parseInt(e,10):d(e))(e):0,m=e=>{if(!e)return 0;const t=Date.now()-f(e);return t<0?0:t},g=(e,t=0)=>e&&(0,p.kf)(e)?(0,i.CR)(Number(e)/1e3,t):0},74309:(e,t,n)=>{"use strict";var r=n(93780),i=n(77146),o=n(7445);e.exports={formats:o,parse:i,stringify:r}},74343:(e,t,n)=>{var r=n(6993);e.exports=function(e){return r(this.__data__,e)>-1}},74413:(e,t,n)=>{var r=n(7804);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},74417:(e,t,n)=>{"use strict";n.d(t,{a:()=>o});var r=n(59284);const i=(0,n(69220).om)("loader");function o({size:e="s",className:t,qa:n}){return r.createElement("div",{className:i({size:e},t),"data-qa":n},r.createElement("div",{className:i("left")}),r.createElement("div",{className:i("center")}),r.createElement("div",{className:i("right")}))}},75022:(e,t,n)=>{"use strict";n.d(t,{N:()=>r});const r=n(97434).d4},75125:(e,t,n)=>{var r=n(98137),i=n(94305)(r);e.exports=i},75869:(e,t,n)=>{"use strict";var r=n(58899);e.exports=function(e){return r(e)||0===e?e:e<0?-1:1}},76086:(e,t,n)=>{"use strict";n.d(t,{Db:()=>l,Du:()=>p,ED:()=>D,Ed:()=>g,GV:()=>z,Gj:()=>re,Hh:()=>m,IO:()=>ne,J0:()=>V,J7:()=>s,Jg:()=>d,KF:()=>c,LK:()=>X,LQ:()=>N,MB:()=>T,Mt:()=>G,N3:()=>B,Nz:()=>b,Pd:()=>w,QM:()=>_,RY:()=>A,T5:()=>x,TJ:()=>k,U0:()=>ie,Xm:()=>Z,YQ:()=>H,av:()=>I,bk:()=>y,bs:()=>K,bz:()=>ee,c4:()=>q,eh:()=>o,fY:()=>F,fr:()=>$,g5:()=>Y,hh:()=>L,iD:()=>P,jQ:()=>j,jS:()=>C,jX:()=>M,jp:()=>U,k4:()=>S,kO:()=>te,l_:()=>R,ld:()=>O,lr:()=>Q,oK:()=>E,pg:()=>a,r0:()=>u,s2:()=>J,tt:()=>f,zk:()=>W,zz:()=>h});var r=n(4557),i=n(6354);const o=1e3,a=1e6,s=1e9,l=1e12,c=1e3,u=60,d=60*u,f=24*d,p=7*f,h=1e6,m=85,g=95,v={[i.e.OldTxProxy]:"P",[i.e.TxProxy]:"P",[i.e.BSController]:"BS",[i.e.Dummy]:"DY",[i.e.RTMRPartition]:"RP",[i.e.PersQueueReadBalancer]:"PB",[i.e.Cms]:"CM",[i.e.BlockStorePartition]:"BP",[i.e.BlockStoreVolume]:"BV",[i.e.Console]:"CN",[i.e.TenantSlotBroker]:"TB",[i.e.BlockStoreDiskRegistry]:"BDR"},y=e=>{var t;if(!e)return;const n=null===(t=e.match(/[A-Z]/g))||void 0===t?void 0:t.join("");return(e=>e in v)(e)?v[e]:n},b=5,w="\u2014",x="Developer UI",_="Cluster",E="Database",S="theme",C="language",k="invertedDisks",O="saved_queries",N="asideHeaderCompact",T="queries_history",A="binaryDataInPlainTextDisplay",I="auto-refresh-interval",P="caseSensitiveJsonSearch",R="default-size-result-pane",D="default-size-tenant-summary-pane",j="default-size-tenant-pane",M="default-is-tenant-summary-collapsed",L="default-is-tenant-common-info-collapsed",z="default-is-query-result-collapsed",F="default-cluster-tab",B={displayIndices:!1,stickyHead:r.Ay.MOVING,syncHeadOnResize:!0,dynamicRender:!0,highlightRows:!0},U={...B,stickyHead:"fixed",dynamicRender:!1,sortable:!1},q="queryExecutionSettings",$="last_query_execution_settings",H="querySettingsBannerLastClosed",V="queryStoppedBannerClosed",W="last_used_query_action",K="partitionsHiddenColumns",G="saved_tenant_initial_tab",Y="enableNetworkTable",Q="useShowPlanToSvg",Z="showDomainDatabase",J="useClusterBalancerAsBacked",X="enableAutocomplete",ee="enableCodeAssistant",te="enableQueryStreaming",ne="autocompleteOnEnter",re="isHotKeysHelpHidden",ie="enable_tracing_for_all_requests"},76575:(e,t,n)=>{"use strict";var r=n(59284),i=n(99158);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var u=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},h={};function m(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var i=g.hasOwnProperty(t)?g[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!d.call(h,e)||!d.call(p,e)&&(f.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=Symbol.for("react.element"),_=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),O=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),P=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var R=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var D=Symbol.iterator;function j(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=D&&e[D]||e["@@iterator"])?e:null}var M,L=Object.assign;function z(e){if(void 0===M)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);M=t&&t[1]||""}return"\n"+M+e}var F=!1;function B(e,t){if(!e||F)return"";F=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"===typeof c.stack){for(var i=c.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{F=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?z(e):""}function U(e){switch(e.tag){case 5:return z(e.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return e=B(e.type,!1);case 11:return e=B(e.type.render,!1);case 1:return e=B(e.type,!0);default:return""}}function q(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case E:return"Fragment";case _:return"Portal";case C:return"Profiler";case S:return"StrictMode";case T:return"Suspense";case A:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case O:return(e.displayName||"Context")+".Consumer";case k:return(e._context.displayName||"Context")+".Provider";case N:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case I:return null!==(t=e.displayName||null)?t:q(e.type)||"Memo";case P:t=e._payload,e=e._init;try{return q(e(t))}catch(n){}}return null}function $(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return q(t);case 8:return t===S?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function V(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function W(e){e._valueTracker||(e._valueTracker=function(e){var t=V(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function K(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=V(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function G(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Y(e,t){var n=t.checked;return L({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Q(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=H(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Z(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function J(e,t){Z(e,t);var n=H(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function X(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&G(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return L({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(te(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:H(n)}}function oe(e,t){var n=H(t.value),r=H(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(pe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ve=L({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(o(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var _e=null,Ee=null,Se=null;function Ce(e){if(e=bi(e)){if("function"!==typeof _e)throw Error(o(280));var t=e.stateNode;t&&(t=xi(t),_e(e.stateNode,e.type,t))}}function ke(e){Ee?Se?Se.push(e):Se=[e]:Ee=e}function Oe(){if(Ee){var e=Ee,t=Se;if(Se=Ee=null,Ce(e),t)for(e=0;e<t.length;e++)Ce(t[e])}}function Ne(e,t){return e(t)}function Te(){}var Ae=!1;function Ie(e,t,n){if(Ae)return e(t,n);Ae=!0;try{return Ne(e,t,n)}finally{Ae=!1,(null!==Ee||null!==Se)&&(Te(),Oe())}}function Pe(e,t){var n=e.stateNode;if(null===n)return null;var r=xi(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(o(231,t,typeof n));return n}var Re=!1;if(u)try{var De={};Object.defineProperty(De,"passive",{get:function(){Re=!0}}),window.addEventListener("test",De,De),window.removeEventListener("test",De,De)}catch(ue){Re=!1}function je(e,t,n,r,i,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var Me=!1,Le=null,ze=!1,Fe=null,Be={onError:function(e){Me=!0,Le=e}};function Ue(e,t,n,r,i,o,a,s,l){Me=!1,Le=null,je.apply(Be,arguments)}function qe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function $e(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function He(e){if(qe(e)!==e)throw Error(o(188))}function Ve(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=qe(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return He(i),e;if(a===r)return He(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=a;break}if(l===r){s=!0,r=i,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=i;break}if(l===r){s=!0,r=a,n=i;break}l=l.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?We(e):null}function We(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=We(e);if(null!==t)return t;e=e.sibling}return null}var Ke=i.unstable_scheduleCallback,Ge=i.unstable_cancelCallback,Ye=i.unstable_shouldYield,Qe=i.unstable_requestPaint,Ze=i.unstable_now,Je=i.unstable_getCurrentPriorityLevel,Xe=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,nt=i.unstable_LowPriority,rt=i.unstable_IdlePriority,it=null,ot=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=dt(s):0!==(o&=a)&&(r=dt(o))}else 0!==(a=n&~i)?r=dt(a):0!==o&&(r=dt(o));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&0!==(4194240&o)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-at(t)),r|=e[n],t&=~i;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ct;return 0===(4194240&(ct<<=1))&&(ct=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var xt,_t,Et,St,Ct,kt=!1,Ot=[],Nt=null,Tt=null,At=null,It=new Map,Pt=new Map,Rt=[],Dt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function jt(e,t){switch(e){case"focusin":case"focusout":Nt=null;break;case"dragenter":case"dragleave":Tt=null;break;case"mouseover":case"mouseout":At=null;break;case"pointerover":case"pointerout":It.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pt.delete(t.pointerId)}}function Mt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&(null!==(t=bi(t))&&_t(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Lt(e){var t=yi(e.target);if(null!==t){var n=qe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=$e(n)))return e.blockedOn=t,void Ct(e.priority,(function(){Et(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function zt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Yt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=bi(n))&&_t(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function Ft(e,t,n){zt(e)&&n.delete(t)}function Bt(){kt=!1,null!==Nt&&zt(Nt)&&(Nt=null),null!==Tt&&zt(Tt)&&(Tt=null),null!==At&&zt(At)&&(At=null),It.forEach(Ft),Pt.forEach(Ft)}function Ut(e,t){e.blockedOn===t&&(e.blockedOn=null,kt||(kt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Bt)))}function qt(e){function t(t){return Ut(t,e)}if(0<Ot.length){Ut(Ot[0],e);for(var n=1;n<Ot.length;n++){var r=Ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Nt&&Ut(Nt,e),null!==Tt&&Ut(Tt,e),null!==At&&Ut(At,e),It.forEach(t),Pt.forEach(t),n=0;n<Rt.length;n++)(r=Rt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Rt.length&&null===(n=Rt[0]).blockedOn;)Lt(n),null===n.blockedOn&&Rt.shift()}var $t=w.ReactCurrentBatchConfig,Ht=!0;function Vt(e,t,n,r){var i=bt,o=$t.transition;$t.transition=null;try{bt=1,Kt(e,t,n,r)}finally{bt=i,$t.transition=o}}function Wt(e,t,n,r){var i=bt,o=$t.transition;$t.transition=null;try{bt=4,Kt(e,t,n,r)}finally{bt=i,$t.transition=o}}function Kt(e,t,n,r){if(Ht){var i=Yt(e,t,n,r);if(null===i)Hr(e,t,r,Gt,n),jt(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return Nt=Mt(Nt,e,t,n,r,i),!0;case"dragenter":return Tt=Mt(Tt,e,t,n,r,i),!0;case"mouseover":return At=Mt(At,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return It.set(o,Mt(It.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Pt.set(o,Mt(Pt.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(jt(e,r),4&t&&-1<Dt.indexOf(e)){for(;null!==i;){var o=bi(i);if(null!==o&&xt(o),null===(o=Yt(e,t,n,r))&&Hr(e,t,r,Gt,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else Hr(e,t,r,null,n)}}var Gt=null;function Yt(e,t,n,r){if(Gt=null,null!==(e=yi(e=xe(r))))if(null===(t=qe(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=$e(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Gt=e,null}function Qt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Je()){case Xe:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Zt=null,Jt=null,Xt=null;function en(){if(Xt)return Xt;var e,t,n=Jt,r=n.length,i="value"in Zt?Zt.value:Zt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return Xt=i.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return L(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(cn),dn=L({},cn,{view:0,detail:0}),fn=on(dn),pn=L({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),hn=on(pn),mn=on(L({},pn,{dataTransfer:0})),gn=on(L({},dn,{relatedTarget:0})),vn=on(L({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=L({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(yn),wn=on(L({},cn,{data:0})),xn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_n={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},En={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=En[e])&&!!t[e]}function Cn(){return Sn}var kn=L({},dn,{key:function(e){if(e.key){var t=xn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?_n[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),On=on(kn),Nn=on(L({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Tn=on(L({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),An=on(L({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),In=L({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Pn=on(In),Rn=[9,13,27,32],Dn=u&&"CompositionEvent"in window,jn=null;u&&"documentMode"in document&&(jn=document.documentMode);var Mn=u&&"TextEvent"in window&&!jn,Ln=u&&(!Dn||jn&&8<jn&&11>=jn),zn=String.fromCharCode(32),Fn=!1;function Bn(e,t){switch(e){case"keyup":return-1!==Rn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var qn=!1;var $n={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!$n[e.type]:"textarea"===t}function Vn(e,t,n,r){ke(r),0<(t=Wr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Wn=null,Kn=null;function Gn(e){zr(e,0)}function Yn(e){if(K(wi(e)))return e}function Qn(e,t){if("change"===e)return t}var Zn=!1;if(u){var Jn;if(u){var Xn="oninput"in document;if(!Xn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Xn="function"===typeof er.oninput}Jn=Xn}else Jn=!1;Zn=Jn&&(!document.documentMode||9<document.documentMode)}function tr(){Wn&&(Wn.detachEvent("onpropertychange",nr),Kn=Wn=null)}function nr(e){if("value"===e.propertyName&&Yn(Kn)){var t=[];Vn(t,Kn,e,xe(e)),Ie(Gn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Kn=n,(Wn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Yn(Kn)}function or(e,t){if("click"===e)return Yn(t)}function ar(e,t){if("input"===e||"change"===e)return Yn(t)}var sr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function lr(e,t){if(sr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!d.call(t,i)||!sr(e[i],t[i]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=G();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=G((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=ur(n,o);var a=ur(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=u&&"documentMode"in document&&11>=document.documentMode,gr=null,vr=null,yr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==gr||gr!==G(r)||("selectionStart"in(r=gr)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&lr(yr,r)||(yr=r,0<(r=Wr(vr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function xr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var _r={animationend:xr("Animation","AnimationEnd"),animationiteration:xr("Animation","AnimationIteration"),animationstart:xr("Animation","AnimationStart"),transitionend:xr("Transition","TransitionEnd")},Er={},Sr={};function Cr(e){if(Er[e])return Er[e];if(!_r[e])return e;var t,n=_r[e];for(t in n)if(n.hasOwnProperty(t)&&t in Sr)return Er[e]=n[t];return e}u&&(Sr=document.createElement("div").style,"AnimationEvent"in window||(delete _r.animationend.animation,delete _r.animationiteration.animation,delete _r.animationstart.animation),"TransitionEvent"in window||delete _r.transitionend.transition);var kr=Cr("animationend"),Or=Cr("animationiteration"),Nr=Cr("animationstart"),Tr=Cr("transitionend"),Ar=new Map,Ir="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Pr(e,t){Ar.set(e,t),l(t,[e])}for(var Rr=0;Rr<Ir.length;Rr++){var Dr=Ir[Rr];Pr(Dr.toLowerCase(),"on"+(Dr[0].toUpperCase()+Dr.slice(1)))}Pr(kr,"onAnimationEnd"),Pr(Or,"onAnimationIteration"),Pr(Nr,"onAnimationStart"),Pr("dblclick","onDoubleClick"),Pr("focusin","onFocus"),Pr("focusout","onBlur"),Pr(Tr,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var jr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Mr=new Set("cancel close invalid load scroll toggle".split(" ").concat(jr));function Lr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,s,l,c){if(Ue.apply(this,arguments),Me){if(!Me)throw Error(o(198));var u=Le;Me=!1,Le=null,ze||(ze=!0,Fe=u)}}(r,t,void 0,e),e.currentTarget=null}function zr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;Lr(i,s,c),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;Lr(i,s,c),o=l}}}if(ze)throw e=Fe,ze=!1,Fe=null,e}function Fr(e,t){var n=t[mi];void 0===n&&(n=t[mi]=new Set);var r=e+"__bubble";n.has(r)||($r(t,e,2,!1),n.add(r))}function Br(e,t,n){var r=0;t&&(r|=4),$r(n,e,r,t)}var Ur="_reactListening"+Math.random().toString(36).slice(2);function qr(e){if(!e[Ur]){e[Ur]=!0,a.forEach((function(t){"selectionchange"!==t&&(Mr.has(t)||Br(t,!1,e),Br(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ur]||(t[Ur]=!0,Br("selectionchange",!1,t))}}function $r(e,t,n,r){switch(Qt(t)){case 1:var i=Vt;break;case 4:i=Wt;break;default:i=Kt}n=i.bind(null,t,n,e),i=void 0,!Re||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Hr(e,t,n,r,i){var o=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=yi(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}Ie((function(){var r=o,i=xe(n),a=[];e:{var s=Ar.get(e);if(void 0!==s){var l=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=On;break;case"focusin":c="focus",l=gn;break;case"focusout":c="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Tn;break;case kr:case Or:case Nr:l=vn;break;case Tr:l=An;break;case"scroll":l=fn;break;case"wheel":l=Pn;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Nn}var u=0!==(4&t),d=!u&&"scroll"===e,f=u?null!==s?s+"Capture":null:s;u=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&(null!=(m=Pe(h,f))&&u.push(Vr(h,m,p)))),d)break;h=h.return}0<u.length&&(s=new l(s,c,null,n,i),a.push({event:s,listeners:u}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===we||!(c=n.relatedTarget||n.fromElement)||!yi(c)&&!c[hi])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?yi(c):null)&&(c!==(d=qe(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=hn,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=Nn,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==l?s:wi(l),p=null==c?s:wi(c),(s=new u(m,h+"leave",l,n,i)).target=d,s.relatedTarget=p,m=null,yi(i)===r&&((u=new u(f,h+"enter",c,n,i)).target=p,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(f=c,h=0,p=u=l;p;p=Kr(p))h++;for(p=0,m=f;m;m=Kr(m))p++;for(;0<h-p;)u=Kr(u),h--;for(;0<p-h;)f=Kr(f),p--;for(;h--;){if(u===f||null!==f&&u===f.alternate)break e;u=Kr(u),f=Kr(f)}u=null}else u=null;null!==l&&Gr(a,s,l,u,!1),null!==c&&null!==d&&Gr(a,d,c,u,!0)}if("select"===(l=(s=r?wi(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Qn;else if(Hn(s))if(Zn)g=ar;else{g=ir;var v=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=or);switch(g&&(g=g(e,r))?Vn(a,g,n,i):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&ee(s,"number",s.value)),v=r?wi(r):window,e){case"focusin":(Hn(v)||"true"===v.contentEditable)&&(gr=v,vr=r,yr=null);break;case"focusout":yr=vr=gr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(a,n,i);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":wr(a,n,i)}var y;if(Dn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else qn?Bn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Ln&&"ko"!==n.locale&&(qn||"onCompositionStart"!==b?"onCompositionEnd"===b&&qn&&(y=en()):(Jt="value"in(Zt=i)?Zt.value:Zt.textContent,qn=!0)),0<(v=Wr(r,b)).length&&(b=new wn(b,e,null,n,i),a.push({event:b,listeners:v}),y?b.data=y:null!==(y=Un(n))&&(b.data=y))),(y=Mn?function(e,t){switch(e){case"compositionend":return Un(t);case"keypress":return 32!==t.which?null:(Fn=!0,zn);case"textInput":return(e=t.data)===zn&&Fn?null:e;default:return null}}(e,n):function(e,t){if(qn)return"compositionend"===e||!Dn&&Bn(e,t)?(e=en(),Xt=Jt=Zt=null,qn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ln&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Wr(r,"onBeforeInput")).length&&(i=new wn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=y))}zr(a,t)}))}function Vr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Wr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Pe(e,n))&&r.unshift(Vr(e,o,i)),null!=(o=Pe(e,t))&&r.push(Vr(e,o,i))),e=e.return}return r}function Kr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Gr(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,i?null!=(l=Pe(n,o))&&a.unshift(Vr(n,l,s)):i||null!=(l=Pe(n,o))&&a.push(Vr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Yr=/\r\n?/g,Qr=/\u0000|\uFFFD/g;function Zr(e){return("string"===typeof e?e:""+e).replace(Yr,"\n").replace(Qr,"")}function Jr(e,t,n){if(t=Zr(t),Zr(e)!==t&&n)throw Error(o(425))}function Xr(){}var ei=null,ti=null;function ni(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ri="function"===typeof setTimeout?setTimeout:void 0,ii="function"===typeof clearTimeout?clearTimeout:void 0,oi="function"===typeof Promise?Promise:void 0,ai="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof oi?function(e){return oi.resolve(null).then(e).catch(si)}:ri;function si(e){setTimeout((function(){throw e}))}function li(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void qt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);qt(t)}function ci(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ui(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var di=Math.random().toString(36).slice(2),fi="__reactFiber$"+di,pi="__reactProps$"+di,hi="__reactContainer$"+di,mi="__reactEvents$"+di,gi="__reactListeners$"+di,vi="__reactHandles$"+di;function yi(e){var t=e[fi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[hi]||n[fi]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ui(e);null!==e;){if(n=e[fi])return n;e=ui(e)}return t}n=(e=n).parentNode}return null}function bi(e){return!(e=e[fi]||e[hi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function xi(e){return e[pi]||null}var _i=[],Ei=-1;function Si(e){return{current:e}}function Ci(e){0>Ei||(e.current=_i[Ei],_i[Ei]=null,Ei--)}function ki(e,t){Ei++,_i[Ei]=e.current,e.current=t}var Oi={},Ni=Si(Oi),Ti=Si(!1),Ai=Oi;function Ii(e,t){var n=e.type.contextTypes;if(!n)return Oi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Pi(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Ri(){Ci(Ti),Ci(Ni)}function Di(e,t,n){if(Ni.current!==Oi)throw Error(o(168));ki(Ni,t),ki(Ti,n)}function ji(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(o(108,$(e)||"Unknown",i));return L({},n,r)}function Mi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Oi,Ai=Ni.current,ki(Ni,e),ki(Ti,Ti.current),!0}function Li(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=ji(e,t,Ai),r.__reactInternalMemoizedMergedChildContext=e,Ci(Ti),Ci(Ni),ki(Ni,e)):Ci(Ti),ki(Ti,n)}var zi=null,Fi=!1,Bi=!1;function Ui(e){null===zi?zi=[e]:zi.push(e)}function qi(){if(!Bi&&null!==zi){Bi=!0;var e=0,t=bt;try{var n=zi;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}zi=null,Fi=!1}catch(i){throw null!==zi&&(zi=zi.slice(e+1)),Ke(Xe,qi),i}finally{bt=t,Bi=!1}}return null}var $i=[],Hi=0,Vi=null,Wi=0,Ki=[],Gi=0,Yi=null,Qi=1,Zi="";function Ji(e,t){$i[Hi++]=Wi,$i[Hi++]=Vi,Vi=e,Wi=t}function Xi(e,t,n){Ki[Gi++]=Qi,Ki[Gi++]=Zi,Ki[Gi++]=Yi,Yi=e;var r=Qi;e=Zi;var i=32-at(r)-1;r&=~(1<<i),n+=1;var o=32-at(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Qi=1<<32-at(t)+i|n<<i|r,Zi=o+e}else Qi=1<<o|n<<i|r,Zi=e}function eo(e){null!==e.return&&(Ji(e,1),Xi(e,1,0))}function to(e){for(;e===Vi;)Vi=$i[--Hi],$i[Hi]=null,Wi=$i[--Hi],$i[Hi]=null;for(;e===Yi;)Yi=Ki[--Gi],Ki[Gi]=null,Zi=Ki[--Gi],Ki[Gi]=null,Qi=Ki[--Gi],Ki[Gi]=null}var no=null,ro=null,io=!1,oo=null;function ao(e,t){var n=Ic(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function so(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,no=e,ro=ci(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,no=e,ro=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Yi?{id:Qi,overflow:Zi}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Ic(18,null,null,0)).stateNode=t,n.return=e,e.child=n,no=e,ro=null,!0);default:return!1}}function lo(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function co(e){if(io){var t=ro;if(t){var n=t;if(!so(e,t)){if(lo(e))throw Error(o(418));t=ci(n.nextSibling);var r=no;t&&so(e,t)?ao(r,n):(e.flags=-4097&e.flags|2,io=!1,no=e)}}else{if(lo(e))throw Error(o(418));e.flags=-4097&e.flags|2,io=!1,no=e}}}function uo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;no=e}function fo(e){if(e!==no)return!1;if(!io)return uo(e),io=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ni(e.type,e.memoizedProps)),t&&(t=ro)){if(lo(e))throw po(),Error(o(418));for(;t;)ao(e,t),t=ci(t.nextSibling)}if(uo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ro=ci(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ro=null}}else ro=no?ci(e.stateNode.nextSibling):null;return!0}function po(){for(var e=ro;e;)e=ci(e.nextSibling)}function ho(){ro=no=null,io=!1}function mo(e){null===oo?oo=[e]:oo.push(e)}var go=w.ReactCurrentBatchConfig;function vo(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=r,a=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!==typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function yo(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bo(e){return(0,e._init)(e._payload)}function wo(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Rc(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Lc(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function c(e,t,n,r){var o=n.type;return o===E?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"===typeof o&&null!==o&&o.$$typeof===P&&bo(o)===t.type)?((r=i(t,n.props)).ref=vo(e,t,n),r.return=e,r):((r=Dc(n.type,n.key,n.props,null,e.mode,r)).ref=vo(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=zc(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=jc(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Lc(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case x:return(n=Dc(t.type,t.key,t.props,null,e.mode,n)).ref=vo(e,null,t),n.return=e,n;case _:return(t=zc(t,e.mode,n)).return=e,t;case P:return f(e,(0,t._init)(t._payload),n)}if(te(t)||j(t))return(t=jc(t,e.mode,n,null)).return=e,t;yo(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==i?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case x:return n.key===i?c(e,t,n,r):null;case _:return n.key===i?u(e,t,n,r):null;case P:return p(e,t,(i=n._init)(n._payload),r)}if(te(n)||j(n))return null!==i?null:d(e,t,n,r,null);yo(e,n)}return null}function h(e,t,n,r,i){if("string"===typeof r&&""!==r||"number"===typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case x:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case _:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case P:return h(e,t,n,(0,r._init)(r._payload),i)}if(te(r)||j(r))return d(t,e=e.get(n)||null,r,i,null);yo(t,r)}return null}function m(i,o,s,l){for(var c=null,u=null,d=o,m=o=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=p(i,d,s[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(i,d),o=a(v,o,m),null===u?c=v:u.sibling=v,u=v,d=g}if(m===s.length)return n(i,d),io&&Ji(i,m),c;if(null===d){for(;m<s.length;m++)null!==(d=f(i,s[m],l))&&(o=a(d,o,m),null===u?c=d:u.sibling=d,u=d);return io&&Ji(i,m),c}for(d=r(i,d);m<s.length;m++)null!==(g=h(d,i,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),o=a(g,o,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(i,e)})),io&&Ji(i,m),c}function g(i,s,l,c){var u=j(l);if("function"!==typeof u)throw Error(o(150));if(null==(l=u.call(l)))throw Error(o(151));for(var d=u=null,m=s,g=s=0,v=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=p(i,m,y.value,c);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(i,m),s=a(b,s,g),null===d?u=b:d.sibling=b,d=b,m=v}if(y.done)return n(i,m),io&&Ji(i,g),u;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=f(i,y.value,c))&&(s=a(y,s,g),null===d?u=y:d.sibling=y,d=y);return io&&Ji(i,g),u}for(m=r(i,m);!y.done;g++,y=l.next())null!==(y=h(m,i,g,y.value,c))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=a(y,s,g),null===d?u=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(i,e)})),io&&Ji(i,g),u}return function e(r,o,a,l){if("object"===typeof a&&null!==a&&a.type===E&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case x:e:{for(var c=a.key,u=o;null!==u;){if(u.key===c){if((c=a.type)===E){if(7===u.tag){n(r,u.sibling),(o=i(u,a.props.children)).return=r,r=o;break e}}else if(u.elementType===c||"object"===typeof c&&null!==c&&c.$$typeof===P&&bo(c)===u.type){n(r,u.sibling),(o=i(u,a.props)).ref=vo(r,u,a),o.return=r,r=o;break e}n(r,u);break}t(r,u),u=u.sibling}a.type===E?((o=jc(a.props.children,r.mode,l,a.key)).return=r,r=o):((l=Dc(a.type,a.key,a.props,null,r.mode,l)).ref=vo(r,o,a),l.return=r,r=l)}return s(r);case _:e:{for(u=a.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(r,o.sibling),(o=i(o,a.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=zc(a,r.mode,l)).return=r,r=o}return s(r);case P:return e(r,o,(u=a._init)(a._payload),l)}if(te(a))return m(r,o,a,l);if(j(a))return g(r,o,a,l);yo(r,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,a)).return=r,r=o):(n(r,o),(o=Lc(a,r.mode,l)).return=r,r=o),s(r)):n(r,o)}}var xo=wo(!0),_o=wo(!1),Eo=Si(null),So=null,Co=null,ko=null;function Oo(){ko=Co=So=null}function No(e){var t=Eo.current;Ci(Eo),e._currentValue=t}function To(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ao(e,t){So=e,ko=Co=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(bs=!0),e.firstContext=null)}function Io(e){var t=e._currentValue;if(ko!==e)if(e={context:e,memoizedValue:t,next:null},null===Co){if(null===So)throw Error(o(308));Co=e,So.dependencies={lanes:0,firstContext:e}}else Co=Co.next=e;return t}var Po=null;function Ro(e){null===Po?Po=[e]:Po.push(e)}function Do(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,Ro(t)):(n.next=i.next,i.next=n),t.interleaved=n,jo(e,r)}function jo(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Mo=!1;function Lo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function zo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Fo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Bo(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&Nl)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,jo(e,n)}return null===(i=r.interleaved)?(t.next=t,Ro(r)):(t.next=i.next,i.next=t),r.interleaved=t,jo(e,n)}function Uo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function qo(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function $o(e,t,n,r){var i=e.updateQueue;Mo=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?o=c:a.next=c,a=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==o){var d=i.baseState;for(a=0,u=c=l=null,s=o;;){var f=s.lane,p=s.eventTime;if((r&f)===f){null!==u&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(f=t,p=n,m.tag){case 1:if("function"===typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null===(f="function"===typeof(h=m.payload)?h.call(p,d,f):h)||void 0===f)break e;d=L({},d,f);break e;case 2:Mo=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=i.effects)?i.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=p,l=d):u=u.next=p,a|=f;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(f=s).next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}if(null===u&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);Ml|=a,e.lanes=a,e.memoizedState=d}}function Ho(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!==typeof i)throw Error(o(191,i));i.call(r)}}}var Vo={},Wo=Si(Vo),Ko=Si(Vo),Go=Si(Vo);function Yo(e){if(e===Vo)throw Error(o(174));return e}function Qo(e,t){switch(ki(Go,t),ki(Ko,e),ki(Wo,Vo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ci(Wo),ki(Wo,t)}function Zo(){Ci(Wo),Ci(Ko),Ci(Go)}function Jo(e){Yo(Go.current);var t=Yo(Wo.current),n=le(t,e.type);t!==n&&(ki(Ko,e),ki(Wo,n))}function Xo(e){Ko.current===e&&(Ci(Wo),Ci(Ko))}var ea=Si(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var ia=w.ReactCurrentDispatcher,oa=w.ReactCurrentBatchConfig,aa=0,sa=null,la=null,ca=null,ua=!1,da=!1,fa=0,pa=0;function ha(){throw Error(o(321))}function ma(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function ga(e,t,n,r,i,a){if(aa=a,sa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ia.current=null===e||null===e.memoizedState?Xa:es,e=n(r,i),da){a=0;do{if(da=!1,fa=0,25<=a)throw Error(o(301));a+=1,ca=la=null,t.updateQueue=null,ia.current=ts,e=n(r,i)}while(da)}if(ia.current=Ja,t=null!==la&&null!==la.next,aa=0,ca=la=sa=null,ua=!1,t)throw Error(o(300));return e}function va(){var e=0!==fa;return fa=0,e}function ya(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ca?sa.memoizedState=ca=e:ca=ca.next=e,ca}function ba(){if(null===la){var e=sa.alternate;e=null!==e?e.memoizedState:null}else e=la.next;var t=null===ca?sa.memoizedState:ca.next;if(null!==t)ca=t,la=e;else{if(null===e)throw Error(o(310));e={memoizedState:(la=e).memoizedState,baseState:la.baseState,baseQueue:la.baseQueue,queue:la.queue,next:null},null===ca?sa.memoizedState=ca=e:ca=ca.next=e}return ca}function wa(e,t){return"function"===typeof t?t(e):t}function xa(e){var t=ba(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=la,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}r.baseQueue=i=a,n.pending=null}if(null!==i){a=i.next,r=r.baseState;var l=s=null,c=null,u=a;do{var d=u.lane;if((aa&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=f,s=r):c=c.next=f,sa.lanes|=d,Ml|=d}u=u.next}while(null!==u&&u!==a);null===c?s=r:c.next=l,sr(r,t.memoizedState)||(bs=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{a=i.lane,sa.lanes|=a,Ml|=a,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function _a(e){var t=ba(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);sr(a,t.memoizedState)||(bs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Ea(){}function Sa(e,t){var n=sa,r=ba(),i=t(),a=!sr(r.memoizedState,i);if(a&&(r.memoizedState=i,bs=!0),r=r.queue,Ma(Oa.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ca&&1&ca.memoizedState.tag){if(n.flags|=2048,Ia(9,ka.bind(null,n,r,i,t),void 0,null),null===Tl)throw Error(o(349));0!==(30&aa)||Ca(n,t,i)}return i}function Ca(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function ka(e,t,n,r){t.value=n,t.getSnapshot=r,Na(t)&&Ta(e)}function Oa(e,t,n){return n((function(){Na(t)&&Ta(e)}))}function Na(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(r){return!0}}function Ta(e){var t=jo(e,1);null!==t&&nc(t,e,1,-1)}function Aa(e){var t=ya();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wa,lastRenderedState:e},t.queue=e,e=e.dispatch=Ga.bind(null,sa,e),[t.memoizedState,e]}function Ia(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Pa(){return ba().memoizedState}function Ra(e,t,n,r){var i=ya();sa.flags|=e,i.memoizedState=Ia(1|t,n,void 0,void 0===r?null:r)}function Da(e,t,n,r){var i=ba();r=void 0===r?null:r;var o=void 0;if(null!==la){var a=la.memoizedState;if(o=a.destroy,null!==r&&ma(r,a.deps))return void(i.memoizedState=Ia(t,n,o,r))}sa.flags|=e,i.memoizedState=Ia(1|t,n,o,r)}function ja(e,t){return Ra(8390656,8,e,t)}function Ma(e,t){return Da(2048,8,e,t)}function La(e,t){return Da(4,2,e,t)}function za(e,t){return Da(4,4,e,t)}function Fa(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ba(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Da(4,4,Fa.bind(null,t,e),n)}function Ua(){}function qa(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function $a(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ha(e,t,n){return 0===(21&aa)?(e.baseState&&(e.baseState=!1,bs=!0),e.memoizedState=n):(sr(n,t)||(n=mt(),sa.lanes|=n,Ml|=n,e.baseState=!0),t)}function Va(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=oa.transition;oa.transition={};try{e(!1),t()}finally{bt=n,oa.transition=r}}function Wa(){return ba().memoizedState}function Ka(e,t,n){var r=tc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ya(e))Qa(t,n);else if(null!==(n=Do(e,t,n,r))){nc(n,e,r,ec()),Za(n,t,r)}}function Ga(e,t,n){var r=tc(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ya(e))Qa(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,sr(s,a)){var l=t.interleaved;return null===l?(i.next=i,Ro(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(c){}null!==(n=Do(e,t,i,r))&&(nc(n,e,r,i=ec()),Za(n,t,r))}}function Ya(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function Qa(e,t){da=ua=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Za(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var Ja={readContext:Io,useCallback:ha,useContext:ha,useEffect:ha,useImperativeHandle:ha,useInsertionEffect:ha,useLayoutEffect:ha,useMemo:ha,useReducer:ha,useRef:ha,useState:ha,useDebugValue:ha,useDeferredValue:ha,useTransition:ha,useMutableSource:ha,useSyncExternalStore:ha,useId:ha,unstable_isNewReconciler:!1},Xa={readContext:Io,useCallback:function(e,t){return ya().memoizedState=[e,void 0===t?null:t],e},useContext:Io,useEffect:ja,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Ra(4194308,4,Fa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ra(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ra(4,2,e,t)},useMemo:function(e,t){var n=ya();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ya();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ka.bind(null,sa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ya().memoizedState=e},useState:Aa,useDebugValue:Ua,useDeferredValue:function(e){return ya().memoizedState=e},useTransition:function(){var e=Aa(!1),t=e[0];return e=Va.bind(null,e[1]),ya().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=sa,i=ya();if(io){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===Tl)throw Error(o(349));0!==(30&aa)||Ca(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,ja(Oa.bind(null,r,a,e),[e]),r.flags|=2048,Ia(9,ka.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ya(),t=Tl.identifierPrefix;if(io){var n=Zi;t=":"+t+"R"+(n=(Qi&~(1<<32-at(Qi)-1)).toString(32)+n),0<(n=fa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=pa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:Io,useCallback:qa,useContext:Io,useEffect:Ma,useImperativeHandle:Ba,useInsertionEffect:La,useLayoutEffect:za,useMemo:$a,useReducer:xa,useRef:Pa,useState:function(){return xa(wa)},useDebugValue:Ua,useDeferredValue:function(e){return Ha(ba(),la.memoizedState,e)},useTransition:function(){return[xa(wa)[0],ba().memoizedState]},useMutableSource:Ea,useSyncExternalStore:Sa,useId:Wa,unstable_isNewReconciler:!1},ts={readContext:Io,useCallback:qa,useContext:Io,useEffect:Ma,useImperativeHandle:Ba,useInsertionEffect:La,useLayoutEffect:za,useMemo:$a,useReducer:_a,useRef:Pa,useState:function(){return _a(wa)},useDebugValue:Ua,useDeferredValue:function(e){var t=ba();return null===la?t.memoizedState=e:Ha(t,la.memoizedState,e)},useTransition:function(){return[_a(wa)[0],ba().memoizedState]},useMutableSource:Ea,useSyncExternalStore:Sa,useId:Wa,unstable_isNewReconciler:!1};function ns(e,t){if(e&&e.defaultProps){for(var n in t=L({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rs(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:L({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var is={isMounted:function(e){return!!(e=e._reactInternals)&&qe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ec(),i=tc(e),o=Fo(r,i);o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=Bo(e,o,i))&&(nc(t,e,i,r),Uo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ec(),i=tc(e),o=Fo(r,i);o.tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=Bo(e,o,i))&&(nc(t,e,i,r),Uo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ec(),r=tc(e),i=Fo(n,r);i.tag=2,void 0!==t&&null!==t&&(i.callback=t),null!==(t=Bo(e,i,r))&&(nc(t,e,r,n),Uo(t,e,r))}};function os(e,t,n,r,i,o,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(i,o))}function as(e,t,n){var r=!1,i=Oi,o=t.contextType;return"object"===typeof o&&null!==o?o=Io(o):(i=Pi(t)?Ai:Ni.current,o=(r=null!==(r=t.contextTypes)&&void 0!==r)?Ii(e,i):Oi),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=is,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function ss(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&is.enqueueReplaceState(t,t.state,null)}function ls(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Lo(e);var o=t.contextType;"object"===typeof o&&null!==o?i.context=Io(o):(o=Pi(t)?Ai:Ni.current,i.context=Ii(e,o)),i.state=e.memoizedState,"function"===typeof(o=t.getDerivedStateFromProps)&&(rs(e,t,o,n),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&is.enqueueReplaceState(i,i.state,null),$o(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.flags|=4194308)}function cs(e,t){try{var n="",r=t;do{n+=U(r),r=r.return}while(r);var i=n}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:i,digest:null}}function us(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var fs="function"===typeof WeakMap?WeakMap:Map;function ps(e,t,n){(n=Fo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hl||(Hl=!0,Vl=r),ds(0,t)},n}function hs(e,t,n){(n=Fo(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){ds(0,t)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!==typeof r&&(null===Wl?Wl=new Set([this]):Wl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ms(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fs;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Cc.bind(null,e,t,n),t.then(e,e))}function gs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function vs(e,t,n,r,i){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Fo(-1,1)).tag=2,Bo(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var ys=w.ReactCurrentOwner,bs=!1;function ws(e,t,n,r){t.child=null===e?_o(t,null,n,r):xo(t,e.child,n,r)}function xs(e,t,n,r,i){n=n.render;var o=t.ref;return Ao(t,i),r=ga(e,t,n,r,o,i),n=va(),null===e||bs?(io&&n&&eo(t),t.flags|=1,ws(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Hs(e,t,i))}function _s(e,t,n,r,i){if(null===e){var o=n.type;return"function"!==typeof o||Pc(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Dc(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Es(e,t,o,r,i))}if(o=e.child,0===(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&e.ref===t.ref)return Hs(e,t,i)}return t.flags|=1,(e=Rc(o,r)).ref=t.ref,e.return=t,t.child=e}function Es(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(lr(o,r)&&e.ref===t.ref){if(bs=!1,t.pendingProps=r=o,0===(e.lanes&i))return t.lanes=e.lanes,Hs(e,t,i);0!==(131072&e.flags)&&(bs=!0)}}return ks(e,t,n,r,i)}function Ss(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ki(Rl,Pl),Pl|=n;else{if(0===(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ki(Rl,Pl),Pl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,ki(Rl,Pl),Pl|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,ki(Rl,Pl),Pl|=r;return ws(e,t,i,n),t.child}function Cs(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ks(e,t,n,r,i){var o=Pi(n)?Ai:Ni.current;return o=Ii(t,o),Ao(t,i),n=ga(e,t,n,r,o,i),r=va(),null===e||bs?(io&&r&&eo(t),t.flags|=1,ws(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Hs(e,t,i))}function Os(e,t,n,r,i){if(Pi(n)){var o=!0;Mi(t)}else o=!1;if(Ao(t,i),null===t.stateNode)$s(e,t),as(t,n,r),ls(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"===typeof c&&null!==c?c=Io(c):c=Ii(t,c=Pi(n)?Ai:Ni.current);var u=n.getDerivedStateFromProps,d="function"===typeof u||"function"===typeof a.getSnapshotBeforeUpdate;d||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||l!==c)&&ss(t,a,r,c),Mo=!1;var f=t.memoizedState;a.state=f,$o(t,r,a,i),l=t.memoizedState,s!==r||f!==l||Ti.current||Mo?("function"===typeof u&&(rs(t,n,u,r),l=t.memoizedState),(s=Mo||os(t,n,s,r,f,l,c))?(d||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4194308)):("function"===typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"===typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,zo(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:ns(t.type,s),a.props=c,d=t.pendingProps,f=a.context,"object"===typeof(l=n.contextType)&&null!==l?l=Io(l):l=Ii(t,l=Pi(n)?Ai:Ni.current);var p=n.getDerivedStateFromProps;(u="function"===typeof p||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==d||f!==l)&&ss(t,a,r,l),Mo=!1,f=t.memoizedState,a.state=f,$o(t,r,a,i);var h=t.memoizedState;s!==d||f!==h||Ti.current||Mo?("function"===typeof p&&(rs(t,n,p,r),h=t.memoizedState),(c=Mo||os(t,n,c,r,f,h,l)||!1)?(u||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=c):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Ns(e,t,n,r,o,i)}function Ns(e,t,n,r,i,o){Cs(e,t);var a=0!==(128&t.flags);if(!r&&!a)return i&&Li(t,n,!1),Hs(e,t,o);r=t.stateNode,ys.current=t;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=xo(t,e.child,null,o),t.child=xo(t,null,s,o)):ws(e,t,s,o),t.memoizedState=r.state,i&&Li(t,n,!0),t.child}function Ts(e){var t=e.stateNode;t.pendingContext?Di(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Di(0,t.context,!1),Qo(e,t.containerInfo)}function As(e,t,n,r,i){return ho(),mo(i),t.flags|=256,ws(e,t,n,r),t.child}var Is,Ps,Rs,Ds,js={dehydrated:null,treeContext:null,retryLane:0};function Ms(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ls(e,t,n){var r,i=t.pendingProps,a=ea.current,s=!1,l=0!==(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!==(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),ki(ea,1&a),null===e)return co(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=i.children,e=i.fallback,s?(i=t.mode,s=t.child,l={mode:"hidden",children:l},0===(1&i)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=Mc(l,i,0,null),e=jc(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ms(n),t.memoizedState=js,e):zs(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,i,a,s){if(n)return 256&t.flags?(t.flags&=-257,Fs(e,t,s,r=us(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=Mc({mode:"visible",children:r.children},i,0,null),(a=jc(a,i,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!==(1&t.mode)&&xo(t,e.child,null,s),t.child.memoizedState=Ms(s),t.memoizedState=js,a);if(0===(1&t.mode))return Fs(e,t,s,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var l=r.dgst;return r=l,Fs(e,t,s,r=us(a=Error(o(419)),r,void 0))}if(l=0!==(s&e.childLanes),bs||l){if(null!==(r=Tl)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!==(i&(r.suspendedLanes|s))?0:i)&&i!==a.retryLane&&(a.retryLane=i,jo(e,i),nc(r,e,i,-1))}return mc(),Fs(e,t,s,r=us(Error(o(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Oc.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,ro=ci(i.nextSibling),no=t,io=!0,oo=null,null!==e&&(Ki[Gi++]=Qi,Ki[Gi++]=Zi,Ki[Gi++]=Yi,Qi=e.id,Zi=e.overflow,Yi=t),t=zs(t,r.children),t.flags|=4096,t)}(e,t,l,i,r,a,n);if(s){s=i.fallback,l=t.mode,r=(a=e.child).sibling;var c={mode:"hidden",children:i.children};return 0===(1&l)&&t.child!==a?((i=t.child).childLanes=0,i.pendingProps=c,t.deletions=null):(i=Rc(a,c)).subtreeFlags=14680064&a.subtreeFlags,null!==r?s=Rc(r,s):(s=jc(s,l,n,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,l=null===(l=e.child.memoizedState)?Ms(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=js,i}return e=(s=e.child).sibling,i=Rc(s,{mode:"visible",children:i.children}),0===(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function zs(e,t){return(t=Mc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Fs(e,t,n,r){return null!==r&&mo(r),xo(t,e.child,null,n),(e=zs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Bs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),To(e.return,t,n)}function Us(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function qs(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(ws(e,t,r.children,n),0!==(2&(r=ea.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Bs(e,n,t);else if(19===e.tag)Bs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ki(ea,r),0===(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Us(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===ta(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Us(t,!0,n,null,o);break;case"together":Us(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function $s(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Hs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ml|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Rc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Rc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Vs(e,t){if(!io)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ws(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ks(e,t,n){var r=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ws(t),null;case 1:case 17:return Pi(t.type)&&Ri(),Ws(t),null;case 3:return r=t.stateNode,Zo(),Ci(Ti),Ci(Ni),ra(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fo(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==oo&&(ac(oo),oo=null))),Ps(e,t),Ws(t),null;case 5:Xo(t);var i=Yo(Go.current);if(n=t.type,null!==e&&null!=t.stateNode)Rs(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return Ws(t),null}if(e=Yo(Wo.current),fo(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[fi]=t,r[pi]=a,e=0!==(1&t.mode),n){case"dialog":Fr("cancel",r),Fr("close",r);break;case"iframe":case"object":case"embed":Fr("load",r);break;case"video":case"audio":for(i=0;i<jr.length;i++)Fr(jr[i],r);break;case"source":Fr("error",r);break;case"img":case"image":case"link":Fr("error",r),Fr("load",r);break;case"details":Fr("toggle",r);break;case"input":Q(r,a),Fr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Fr("invalid",r);break;case"textarea":ie(r,a),Fr("invalid",r)}for(var l in ye(n,a),i=null,a)if(a.hasOwnProperty(l)){var c=a[l];"children"===l?"string"===typeof c?r.textContent!==c&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,c,e),i=["children",c]):"number"===typeof c&&r.textContent!==""+c&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,c,e),i=["children",""+c]):s.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Fr("scroll",r)}switch(n){case"input":W(r),X(r,a,!0);break;case"textarea":W(r),ae(r);break;case"select":case"option":break;default:"function"===typeof a.onClick&&(r.onclick=Xr)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[fi]=t,e[pi]=r,Is(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(n,r),n){case"dialog":Fr("cancel",e),Fr("close",e),i=r;break;case"iframe":case"object":case"embed":Fr("load",e),i=r;break;case"video":case"audio":for(i=0;i<jr.length;i++)Fr(jr[i],e);i=r;break;case"source":Fr("error",e),i=r;break;case"img":case"image":case"link":Fr("error",e),Fr("load",e),i=r;break;case"details":Fr("toggle",e),i=r;break;case"input":Q(e,r),i=Y(e,r),Fr("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=L({},r,{value:void 0}),Fr("invalid",e);break;case"textarea":ie(e,r),i=re(e,r),Fr("invalid",e)}for(a in ye(n,i),c=i)if(c.hasOwnProperty(a)){var u=c[a];"style"===a?ge(e,u):"dangerouslySetInnerHTML"===a?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===a?"string"===typeof u?("textarea"!==n||""!==u)&&fe(e,u):"number"===typeof u&&fe(e,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=u&&"onScroll"===a&&Fr("scroll",e):null!=u&&b(e,a,u,l))}switch(n){case"input":W(e),X(e,r,!1);break;case"textarea":W(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+H(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof i.onClick&&(e.onclick=Xr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ws(t),null;case 6:if(e&&null!=t.stateNode)Ds(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(o(166));if(n=Yo(Go.current),Yo(Wo.current),fo(t)){if(r=t.stateNode,n=t.memoizedProps,r[fi]=t,(a=r.nodeValue!==n)&&null!==(e=no))switch(e.tag){case 3:Jr(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jr(r.nodeValue,n,0!==(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[fi]=t,t.stateNode=r}return Ws(t),null;case 13:if(Ci(ea),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(io&&null!==ro&&0!==(1&t.mode)&&0===(128&t.flags))po(),ho(),t.flags|=98560,a=!1;else if(a=fo(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(o(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(o(317));a[fi]=t}else ho(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ws(t),a=!1}else null!==oo&&(ac(oo),oo=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&ea.current)?0===Dl&&(Dl=3):mc())),null!==t.updateQueue&&(t.flags|=4),Ws(t),null);case 4:return Zo(),Ps(e,t),null===e&&qr(t.stateNode.containerInfo),Ws(t),null;case 10:return No(t.type._context),Ws(t),null;case 19:if(Ci(ea),null===(a=t.memoizedState))return Ws(t),null;if(r=0!==(128&t.flags),null===(l=a.rendering))if(r)Vs(a,!1);else{if(0!==Dl||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=ta(e))){for(t.flags|=128,Vs(a,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ki(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Ze()>ql&&(t.flags|=128,r=!0,Vs(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ta(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Vs(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!io)return Ws(t),null}else 2*Ze()-a.renderingStartTime>ql&&1073741824!==n&&(t.flags|=128,r=!0,Vs(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=a.last)?n.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ze(),t.sibling=null,n=ea.current,ki(ea,r?1&n|2:1&n),t):(Ws(t),null);case 22:case 23:return dc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Pl)&&(Ws(t),6&t.subtreeFlags&&(t.flags|=8192)):Ws(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function Gs(e,t){switch(to(t),t.tag){case 1:return Pi(t.type)&&Ri(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Zo(),Ci(Ti),Ci(Ni),ra(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Xo(t),null;case 13:if(Ci(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));ho()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ci(ea),null;case 4:return Zo(),null;case 10:return No(t.type._context),null;case 22:case 23:return dc(),null;default:return null}}Is=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ps=function(){},Rs=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Yo(Wo.current);var o,a=null;switch(n){case"input":i=Y(e,i),r=Y(e,r),a=[];break;case"select":i=L({},i,{value:void 0}),r=L({},r,{value:void 0}),a=[];break;case"textarea":i=re(e,i),r=re(e,r),a=[];break;default:"function"!==typeof i.onClick&&"function"===typeof r.onClick&&(e.onclick=Xr)}for(u in ye(n,r),n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&null!=i[u])if("style"===u){var l=i[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var c=r[u];if(l=null!=i?i[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(o in l)!l.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&l[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(a||(a=[]),a.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(a=a||[]).push(u,c)):"children"===u?"string"!==typeof c&&"number"!==typeof c||(a=a||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Fr("scroll",e),a||l===c||(a=[])):(a=a||[]).push(u,c))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},Ds=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ys=!1,Qs=!1,Zs="function"===typeof WeakSet?WeakSet:Set,Js=null;function Xs(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){Sc(e,t,r)}else n.current=null}function el(e,t,n){try{n()}catch(r){Sc(e,t,r)}}var tl=!1;function nl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&el(t,n,o)}i=i.next}while(i!==r)}}function rl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function il(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function ol(e){var t=e.alternate;null!==t&&(e.alternate=null,ol(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[fi],delete t[pi],delete t[mi],delete t[gi],delete t[vi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function al(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||al(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Xr));else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}var ul=null,dl=!1;function fl(e,t,n){for(n=n.child;null!==n;)pl(e,t,n),n=n.sibling}function pl(e,t,n){if(ot&&"function"===typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(it,n)}catch(s){}switch(n.tag){case 5:Qs||Xs(n,t);case 6:var r=ul,i=dl;ul=null,fl(e,t,n),dl=i,null!==(ul=r)&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ul.removeChild(n.stateNode));break;case 18:null!==ul&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?li(e.parentNode,n):1===e.nodeType&&li(e,n),qt(e)):li(ul,n.stateNode));break;case 4:r=ul,i=dl,ul=n.stateNode.containerInfo,dl=!0,fl(e,t,n),ul=r,dl=i;break;case 0:case 11:case 14:case 15:if(!Qs&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(0!==(2&o)||0!==(4&o))&&el(n,t,a),i=i.next}while(i!==r)}fl(e,t,n);break;case 1:if(!Qs&&(Xs(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Sc(n,t,s)}fl(e,t,n);break;case 21:fl(e,t,n);break;case 22:1&n.mode?(Qs=(r=Qs)||null!==n.memoizedState,fl(e,t,n),Qs=r):fl(e,t,n);break;default:fl(e,t,n)}}function hl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Zs),t.forEach((function(t){var r=Nc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ml(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:ul=l.stateNode,dl=!1;break e;case 3:case 4:ul=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===ul)throw Error(o(160));pl(a,s,i),ul=null,dl=!1;var c=i.alternate;null!==c&&(c.return=null),i.return=null}catch(u){Sc(i,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gl(t,e),t=t.sibling}function gl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),vl(e),4&r){try{nl(3,e,e.return),rl(3,e)}catch(g){Sc(e,e.return,g)}try{nl(5,e,e.return)}catch(g){Sc(e,e.return,g)}}break;case 1:ml(t,e),vl(e),512&r&&null!==n&&Xs(n,n.return);break;case 5:if(ml(t,e),vl(e),512&r&&null!==n&&Xs(n,n.return),32&e.flags){var i=e.stateNode;try{fe(i,"")}catch(g){Sc(e,e.return,g)}}if(4&r&&null!=(i=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===a.type&&null!=a.name&&Z(i,a),be(l,s);var u=be(l,a);for(s=0;s<c.length;s+=2){var d=c[s],f=c[s+1];"style"===d?ge(i,f):"dangerouslySetInnerHTML"===d?de(i,f):"children"===d?fe(i,f):b(i,d,f,u)}switch(l){case"input":J(i,a);break;case"textarea":oe(i,a);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ne(i,!!a.multiple,h,!1):p!==!!a.multiple&&(null!=a.defaultValue?ne(i,!!a.multiple,a.defaultValue,!0):ne(i,!!a.multiple,a.multiple?[]:"",!1))}i[pi]=a}catch(g){Sc(e,e.return,g)}}break;case 6:if(ml(t,e),vl(e),4&r){if(null===e.stateNode)throw Error(o(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(g){Sc(e,e.return,g)}}break;case 3:if(ml(t,e),vl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{qt(t.containerInfo)}catch(g){Sc(e,e.return,g)}break;case 4:default:ml(t,e),vl(e);break;case 13:ml(t,e),vl(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||(Ul=Ze())),4&r&&hl(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Qs=(u=Qs)||d,ml(t,e),Qs=u):ml(t,e),vl(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!==(1&e.mode))for(Js=e,d=e.child;null!==d;){for(f=Js=d;null!==Js;){switch(h=(p=Js).child,p.tag){case 0:case 11:case 14:case 15:nl(4,p,p.return);break;case 1:Xs(p,p.return);var m=p.stateNode;if("function"===typeof m.componentWillUnmount){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(g){Sc(r,n,g)}}break;case 5:Xs(p,p.return);break;case 22:if(null!==p.memoizedState){xl(f);continue}}null!==h?(h.return=p,Js=h):xl(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{i=f.stateNode,u?"function"===typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=f.stateNode,s=void 0!==(c=f.memoizedProps.style)&&null!==c&&c.hasOwnProperty("display")?c.display:null,l.style.display=me("display",s))}catch(g){Sc(e,e.return,g)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(g){Sc(e,e.return,g)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:ml(t,e),vl(e),4&r&&hl(e);case 21:}}function vl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(al(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(fe(i,""),r.flags&=-33),cl(e,sl(e),i);break;case 3:case 4:var a=r.stateNode.containerInfo;ll(e,sl(e),a);break;default:throw Error(o(161))}}catch(s){Sc(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yl(e,t,n){Js=e,bl(e,t,n)}function bl(e,t,n){for(var r=0!==(1&e.mode);null!==Js;){var i=Js,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||Ys;if(!a){var s=i.alternate,l=null!==s&&null!==s.memoizedState||Qs;s=Ys;var c=Qs;if(Ys=a,(Qs=l)&&!c)for(Js=i;null!==Js;)l=(a=Js).child,22===a.tag&&null!==a.memoizedState?_l(i):null!==l?(l.return=a,Js=l):_l(i);for(;null!==o;)Js=o,bl(o,t,n),o=o.sibling;Js=i,Ys=s,Qs=c}wl(e)}else 0!==(8772&i.subtreeFlags)&&null!==o?(o.return=i,Js=o):wl(e)}}function wl(e){for(;null!==Js;){var t=Js;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Qs||rl(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Qs)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:ns(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Ho(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Ho(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&qt(f)}}}break;default:throw Error(o(163))}Qs||512&t.flags&&il(t)}catch(p){Sc(t,t.return,p)}}if(t===e){Js=null;break}if(null!==(n=t.sibling)){n.return=t.return,Js=n;break}Js=t.return}}function xl(e){for(;null!==Js;){var t=Js;if(t===e){Js=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Js=n;break}Js=t.return}}function _l(e){for(;null!==Js;){var t=Js;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(l){Sc(t,n,l)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(l){Sc(t,i,l)}}var o=t.return;try{il(t)}catch(l){Sc(t,o,l)}break;case 5:var a=t.return;try{il(t)}catch(l){Sc(t,a,l)}}}catch(l){Sc(t,t.return,l)}if(t===e){Js=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Js=s;break}Js=t.return}}var El,Sl=Math.ceil,Cl=w.ReactCurrentDispatcher,kl=w.ReactCurrentOwner,Ol=w.ReactCurrentBatchConfig,Nl=0,Tl=null,Al=null,Il=0,Pl=0,Rl=Si(0),Dl=0,jl=null,Ml=0,Ll=0,zl=0,Fl=null,Bl=null,Ul=0,ql=1/0,$l=null,Hl=!1,Vl=null,Wl=null,Kl=!1,Gl=null,Yl=0,Ql=0,Zl=null,Jl=-1,Xl=0;function ec(){return 0!==(6&Nl)?Ze():-1!==Jl?Jl:Jl=Ze()}function tc(e){return 0===(1&e.mode)?1:0!==(2&Nl)&&0!==Il?Il&-Il:null!==go.transition?(0===Xl&&(Xl=mt()),Xl):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Qt(e.type)}function nc(e,t,n,r){if(50<Ql)throw Ql=0,Zl=null,Error(o(185));vt(e,n,r),0!==(2&Nl)&&e===Tl||(e===Tl&&(0===(2&Nl)&&(Ll|=n),4===Dl&&sc(e,Il)),rc(e,r),1===n&&0===Nl&&0===(1&t.mode)&&(ql=Ze()+500,Fi&&qi()))}function rc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-at(o),s=1<<a,l=i[a];-1===l?0!==(s&n)&&0===(s&r)||(i[a]=pt(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=ft(e,e===Tl?Il:0);if(0===r)null!==n&&Ge(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ge(n),1===t)0===e.tag?function(e){Fi=!0,Ui(e)}(lc.bind(null,e)):Ui(lc.bind(null,e)),ai((function(){0===(6&Nl)&&qi()})),n=null;else{switch(wt(r)){case 1:n=Xe;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Tc(n,ic.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ic(e,t){if(Jl=-1,Xl=0,0!==(6&Nl))throw Error(o(327));var n=e.callbackNode;if(_c()&&e.callbackNode!==n)return null;var r=ft(e,e===Tl?Il:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=gc(e,r);else{t=r;var i=Nl;Nl|=2;var a=hc();for(Tl===e&&Il===t||($l=null,ql=Ze()+500,fc(e,t));;)try{yc();break}catch(l){pc(e,l)}Oo(),Cl.current=a,Nl=i,null!==Al?t=0:(Tl=null,Il=0,t=Dl)}if(0!==t){if(2===t&&(0!==(i=ht(e))&&(r=i,t=oc(e,i))),1===t)throw n=jl,fc(e,0),sc(e,r),rc(e,Ze()),n;if(6===t)sc(e,r);else{if(i=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!sr(o(),i))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=gc(e,r))&&(0!==(a=ht(e))&&(r=a,t=oc(e,a))),1===t))throw n=jl,fc(e,0),sc(e,r),rc(e,Ze()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:case 5:xc(e,Bl,$l);break;case 3:if(sc(e,r),(130023424&r)===r&&10<(t=Ul+500-Ze())){if(0!==ft(e,0))break;if(((i=e.suspendedLanes)&r)!==r){ec(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ri(xc.bind(null,e,Bl,$l),t);break}xc(e,Bl,$l);break;case 4:if(sc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-at(r);a=1<<s,(s=t[s])>i&&(i=s),r&=~a}if(r=i,10<(r=(120>(r=Ze()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Sl(r/1960))-r)){e.timeoutHandle=ri(xc.bind(null,e,Bl,$l),r);break}xc(e,Bl,$l);break;default:throw Error(o(329))}}}return rc(e,Ze()),e.callbackNode===n?ic.bind(null,e):null}function oc(e,t){var n=Fl;return e.current.memoizedState.isDehydrated&&(fc(e,t).flags|=256),2!==(e=gc(e,t))&&(t=Bl,Bl=n,null!==t&&ac(t)),e}function ac(e){null===Bl?Bl=e:Bl.push.apply(Bl,e)}function sc(e,t){for(t&=~zl,t&=~Ll,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function lc(e){if(0!==(6&Nl))throw Error(o(327));_c();var t=ft(e,0);if(0===(1&t))return rc(e,Ze()),null;var n=gc(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=oc(e,r))}if(1===n)throw n=jl,fc(e,0),sc(e,t),rc(e,Ze()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xc(e,Bl,$l),rc(e,Ze()),null}function cc(e,t){var n=Nl;Nl|=1;try{return e(t)}finally{0===(Nl=n)&&(ql=Ze()+500,Fi&&qi())}}function uc(e){null!==Gl&&0===Gl.tag&&0===(6&Nl)&&_c();var t=Nl;Nl|=1;var n=Ol.transition,r=bt;try{if(Ol.transition=null,bt=1,e)return e()}finally{bt=r,Ol.transition=n,0===(6&(Nl=t))&&qi()}}function dc(){Pl=Rl.current,Ci(Rl)}function fc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ii(n)),null!==Al)for(n=Al.return;null!==n;){var r=n;switch(to(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&Ri();break;case 3:Zo(),Ci(Ti),Ci(Ni),ra();break;case 5:Xo(r);break;case 4:Zo();break;case 13:case 19:Ci(ea);break;case 10:No(r.type._context);break;case 22:case 23:dc()}n=n.return}if(Tl=e,Al=e=Rc(e.current,null),Il=Pl=t,Dl=0,jl=null,zl=Ll=Ml=0,Bl=Fl=null,null!==Po){for(t=0;t<Po.length;t++)if(null!==(r=(n=Po[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}Po=null}return e}function pc(e,t){for(;;){var n=Al;try{if(Oo(),ia.current=Ja,ua){for(var r=sa.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}ua=!1}if(aa=0,ca=la=sa=null,da=!1,fa=0,kl.current=null,null===n||null===n.return){Dl=1,jl=t,Al=null;break}e:{var a=e,s=n.return,l=n,c=t;if(t=Il,l.flags|=32768,null!==c&&"object"===typeof c&&"function"===typeof c.then){var u=c,d=l,f=d.tag;if(0===(1&d.mode)&&(0===f||11===f||15===f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=gs(s);if(null!==h){h.flags&=-257,vs(h,s,l,0,t),1&h.mode&&ms(a,u,t),c=u;var m=(t=h).updateQueue;if(null===m){var g=new Set;g.add(c),t.updateQueue=g}else m.add(c);break e}if(0===(1&t)){ms(a,u,t),mc();break e}c=Error(o(426))}else if(io&&1&l.mode){var v=gs(s);if(null!==v){0===(65536&v.flags)&&(v.flags|=256),vs(v,s,l,0,t),mo(cs(c,l));break e}}a=c=cs(c,l),4!==Dl&&(Dl=2),null===Fl?Fl=[a]:Fl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,qo(a,ps(0,c,t));break e;case 1:l=c;var y=a.type,b=a.stateNode;if(0===(128&a.flags)&&("function"===typeof y.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===Wl||!Wl.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,qo(a,hs(a,l,t));break e}}a=a.return}while(null!==a)}wc(n)}catch(w){t=w,Al===n&&null!==n&&(Al=n=n.return);continue}break}}function hc(){var e=Cl.current;return Cl.current=Ja,null===e?Ja:e}function mc(){0!==Dl&&3!==Dl&&2!==Dl||(Dl=4),null===Tl||0===(268435455&Ml)&&0===(268435455&Ll)||sc(Tl,Il)}function gc(e,t){var n=Nl;Nl|=2;var r=hc();for(Tl===e&&Il===t||($l=null,fc(e,t));;)try{vc();break}catch(i){pc(e,i)}if(Oo(),Nl=n,Cl.current=r,null!==Al)throw Error(o(261));return Tl=null,Il=0,Dl}function vc(){for(;null!==Al;)bc(Al)}function yc(){for(;null!==Al&&!Ye();)bc(Al)}function bc(e){var t=El(e.alternate,e,Pl);e.memoizedProps=e.pendingProps,null===t?wc(e):Al=t,kl.current=null}function wc(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=Ks(n,t,Pl)))return void(Al=n)}else{if(null!==(n=Gs(n,t)))return n.flags&=32767,void(Al=n);if(null===e)return Dl=6,void(Al=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Al=t);Al=t=e}while(null!==t);0===Dl&&(Dl=5)}function xc(e,t,n){var r=bt,i=Ol.transition;try{Ol.transition=null,bt=1,function(e,t,n,r){do{_c()}while(null!==Gl);if(0!==(6&Nl))throw Error(o(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-at(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,a),e===Tl&&(Al=Tl=null,Il=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||Kl||(Kl=!0,Tc(tt,(function(){return _c(),null}))),a=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||a){a=Ol.transition,Ol.transition=null;var s=bt;bt=1;var l=Nl;Nl|=4,kl.current=null,function(e,t){if(ei=Ht,pr(e=fr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(x){n=null;break e}var s=0,l=-1,c=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==i&&3!==f.nodeType||(l=s+i),f!==a||0!==r&&3!==f.nodeType||(c=s+r),3===f.nodeType&&(s+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++u===i&&(l=s),p===a&&++d===r&&(c=s),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(ti={focusedElem:e,selectionRange:n},Ht=!1,Js=t;null!==Js;)if(e=(t=Js).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Js=e;else for(;null!==Js;){t=Js;try{var m=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,v=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:ns(t.type,g),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(o(163))}}catch(x){Sc(t,t.return,x)}if(null!==(e=t.sibling)){e.return=t.return,Js=e;break}Js=t.return}m=tl,tl=!1}(e,n),gl(n,e),hr(ti),Ht=!!ei,ti=ei=null,e.current=n,yl(n,e,i),Qe(),Nl=l,bt=s,Ol.transition=a}else e.current=n;if(Kl&&(Kl=!1,Gl=e,Yl=i),a=e.pendingLanes,0===a&&(Wl=null),function(e){if(ot&&"function"===typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(it,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),rc(e,Ze()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Hl)throw Hl=!1,e=Vl,Vl=null,e;0!==(1&Yl)&&0!==e.tag&&_c(),a=e.pendingLanes,0!==(1&a)?e===Zl?Ql++:(Ql=0,Zl=e):Ql=0,qi()}(e,t,n,r)}finally{Ol.transition=i,bt=r}return null}function _c(){if(null!==Gl){var e=wt(Yl),t=Ol.transition,n=bt;try{if(Ol.transition=null,bt=16>e?16:e,null===Gl)var r=!1;else{if(e=Gl,Gl=null,Yl=0,0!==(6&Nl))throw Error(o(331));var i=Nl;for(Nl|=4,Js=e.current;null!==Js;){var a=Js,s=a.child;if(0!==(16&Js.flags)){var l=a.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Js=u;null!==Js;){var d=Js;switch(d.tag){case 0:case 11:case 15:nl(8,d,a)}var f=d.child;if(null!==f)f.return=d,Js=f;else for(;null!==Js;){var p=(d=Js).sibling,h=d.return;if(ol(d),d===u){Js=null;break}if(null!==p){p.return=h,Js=p;break}Js=h}}}var m=a.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Js=a}}if(0!==(2064&a.subtreeFlags)&&null!==s)s.return=a,Js=s;else e:for(;null!==Js;){if(0!==(2048&(a=Js).flags))switch(a.tag){case 0:case 11:case 15:nl(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Js=y;break e}Js=a.return}}var b=e.current;for(Js=b;null!==Js;){var w=(s=Js).child;if(0!==(2064&s.subtreeFlags)&&null!==w)w.return=s,Js=w;else e:for(s=b;null!==Js;){if(0!==(2048&(l=Js).flags))try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(_){Sc(l,l.return,_)}if(l===s){Js=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,Js=x;break e}Js=l.return}}if(Nl=i,qi(),ot&&"function"===typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(it,e)}catch(_){}r=!0}return r}finally{bt=n,Ol.transition=t}}return!1}function Ec(e,t,n){e=Bo(e,t=ps(0,t=cs(n,t),1),1),t=ec(),null!==e&&(vt(e,1,t),rc(e,t))}function Sc(e,t,n){if(3===e.tag)Ec(e,e,n);else for(;null!==t;){if(3===t.tag){Ec(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Wl||!Wl.has(r))){t=Bo(t,e=hs(t,e=cs(n,e),1),1),e=ec(),null!==t&&(vt(t,1,e),rc(t,e));break}}t=t.return}}function Cc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ec(),e.pingedLanes|=e.suspendedLanes&n,Tl===e&&(Il&n)===n&&(4===Dl||3===Dl&&(130023424&Il)===Il&&500>Ze()-Ul?fc(e,0):zl|=n),rc(e,t)}function kc(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ut,0===(130023424&(ut<<=1))&&(ut=4194304)));var n=ec();null!==(e=jo(e,t))&&(vt(e,t,n),rc(e,n))}function Oc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),kc(e,n)}function Nc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),kc(e,n)}function Tc(e,t){return Ke(e,t)}function Ac(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ic(e,t,n,r){return new Ac(e,t,n,r)}function Pc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Rc(e,t){var n=e.alternate;return null===n?((n=Ic(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Dc(e,t,n,r,i,a){var s=2;if(r=e,"function"===typeof e)Pc(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case E:return jc(n.children,i,a,t);case S:s=8,i|=8;break;case C:return(e=Ic(12,n,t,2|i)).elementType=C,e.lanes=a,e;case T:return(e=Ic(13,n,t,i)).elementType=T,e.lanes=a,e;case A:return(e=Ic(19,n,t,i)).elementType=A,e.lanes=a,e;case R:return Mc(n,i,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case k:s=10;break e;case O:s=9;break e;case N:s=11;break e;case I:s=14;break e;case P:s=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Ic(s,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function jc(e,t,n,r){return(e=Ic(7,e,r,t)).lanes=n,e}function Mc(e,t,n,r){return(e=Ic(22,e,r,t)).elementType=R,e.lanes=n,e.stateNode={isHidden:!1},e}function Lc(e,t,n){return(e=Ic(6,e,null,t)).lanes=n,e}function zc(e,t,n){return(t=Ic(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fc(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Bc(e,t,n,r,i,o,a,s,l){return e=new Fc(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Ic(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Lo(o),e}function Uc(e){if(!e)return Oi;e:{if(qe(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Pi(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(Pi(n))return ji(e,n,t)}return t}function qc(e,t,n,r,i,o,a,s,l){return(e=Bc(n,r,!0,e,0,o,0,s,l)).context=Uc(null),n=e.current,(o=Fo(r=ec(),i=tc(n))).callback=void 0!==t&&null!==t?t:null,Bo(n,o,i),e.current.lanes=i,vt(e,i,r),rc(e,r),e}function $c(e,t,n,r){var i=t.current,o=ec(),a=tc(i);return n=Uc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Fo(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Bo(i,t,a))&&(nc(e,i,a,o),Uo(e,i,a)),a}function Hc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Vc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Wc(e,t){Vc(e,t),(e=e.alternate)&&Vc(e,t)}El=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ti.current)bs=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return bs=!1,function(e,t,n){switch(t.tag){case 3:Ts(t),ho();break;case 5:Jo(t);break;case 1:Pi(t.type)&&Mi(t);break;case 4:Qo(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;ki(Eo,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(ki(ea,1&ea.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Ls(e,t,n):(ki(ea,1&ea.current),null!==(e=Hs(e,t,n))?e.sibling:null);ki(ea,1&ea.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return qs(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),ki(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,Ss(e,t,n)}return Hs(e,t,n)}(e,t,n);bs=0!==(131072&e.flags)}else bs=!1,io&&0!==(1048576&t.flags)&&Xi(t,Wi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;$s(e,t),e=t.pendingProps;var i=Ii(t,Ni.current);Ao(t,n),i=ga(null,t,r,e,i,n);var a=va();return t.flags|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Pi(r)?(a=!0,Mi(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Lo(t),i.updater=is,t.stateNode=i,i._reactInternals=t,ls(t,r,e,n),t=Ns(null,t,r,!0,a,n)):(t.tag=0,io&&a&&eo(t),ws(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch($s(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"===typeof e)return Pc(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===N)return 11;if(e===I)return 14}return 2}(r),e=ns(r,e),i){case 0:t=ks(null,t,r,e,n);break e;case 1:t=Os(null,t,r,e,n);break e;case 11:t=xs(null,t,r,e,n);break e;case 14:t=_s(null,t,r,ns(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,ks(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 1:return r=t.type,i=t.pendingProps,Os(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 3:e:{if(Ts(t),null===e)throw Error(o(387));r=t.pendingProps,i=(a=t.memoizedState).element,zo(e,t),$o(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=As(e,t,r,n,i=cs(Error(o(423)),t));break e}if(r!==i){t=As(e,t,r,n,i=cs(Error(o(424)),t));break e}for(ro=ci(t.stateNode.containerInfo.firstChild),no=t,io=!0,oo=null,n=_o(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ho(),r===i){t=Hs(e,t,n);break e}ws(e,t,r,n)}t=t.child}return t;case 5:return Jo(t),null===e&&co(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,ni(r,i)?s=null:null!==a&&ni(r,a)&&(t.flags|=32),Cs(e,t),ws(e,t,s,n),t.child;case 6:return null===e&&co(t),null;case 13:return Ls(e,t,n);case 4:return Qo(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=xo(t,null,r,n):ws(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,xs(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 7:return ws(e,t,t.pendingProps,n),t.child;case 8:case 12:return ws(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,ki(Eo,r._currentValue),r._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===i.children&&!Ti.current){t=Hs(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var c=l.firstContext;null!==c;){if(c.context===r){if(1===a.tag){(c=Fo(-1,n&-n)).tag=2;var u=a.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}a.lanes|=n,null!==(c=a.alternate)&&(c.lanes|=n),To(a.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(o(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),To(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}ws(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ao(t,n),r=r(i=Io(i)),t.flags|=1,ws(e,t,r,n),t.child;case 14:return i=ns(r=t.type,t.pendingProps),_s(e,t,r,i=ns(r.type,i),n);case 15:return Es(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ns(r,i),$s(e,t),t.tag=1,Pi(r)?(e=!0,Mi(t)):e=!1,Ao(t,n),as(t,r,i),ls(t,r,i,n),Ns(null,t,r,!0,e,n);case 19:return qs(e,t,n);case 22:return Ss(e,t,n)}throw Error(o(156,t.tag))};var Kc="function"===typeof reportError?reportError:function(e){console.error(e)};function Gc(e){this._internalRoot=e}function Yc(e){this._internalRoot=e}function Qc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Zc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Jc(){}function Xc(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"===typeof i){var s=i;i=function(){var e=Hc(a);s.call(e)}}$c(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"===typeof r){var o=r;r=function(){var e=Hc(a);o.call(e)}}var a=qc(t,r,e,0,null,!1,0,"",Jc);return e._reactRootContainer=a,e[hi]=a.current,qr(8===e.nodeType?e.parentNode:e),uc(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"===typeof r){var s=r;r=function(){var e=Hc(l);s.call(e)}}var l=Bc(e,0,!1,null,0,!1,0,"",Jc);return e._reactRootContainer=l,e[hi]=l.current,qr(8===e.nodeType?e.parentNode:e),uc((function(){$c(t,l,n,r)})),l}(n,t,e,i,r);return Hc(a)}Yc.prototype.render=Gc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));$c(e,t,null,null)},Yc.prototype.unmount=Gc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;uc((function(){$c(null,e,null,null)})),t[hi]=null}},Yc.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Rt.length&&0!==t&&t<Rt[n].priority;n++);Rt.splice(n,0,e),0===n&&Lt(e)}},xt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),rc(t,Ze()),0===(6&Nl)&&(ql=Ze()+500,qi()))}break;case 13:uc((function(){var t=jo(e,1);if(null!==t){var n=ec();nc(t,e,1,n)}})),Wc(e,1)}},_t=function(e){if(13===e.tag){var t=jo(e,134217728);if(null!==t)nc(t,e,134217728,ec());Wc(e,134217728)}},Et=function(e){if(13===e.tag){var t=tc(e),n=jo(e,t);if(null!==n)nc(n,e,t,ec());Wc(e,t)}},St=function(){return bt},Ct=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},_e=function(e,t,n){switch(t){case"input":if(J(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=xi(r);if(!i)throw Error(o(90));K(r),J(r,i)}}}break;case"textarea":oe(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Ne=cc,Te=uc;var eu={usingClientEntryPoint:!1,Events:[bi,wi,xi,ke,Oe,cc]},tu={findFiberByHostInstance:yi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nu={bundleType:tu.bundleType,version:tu.version,rendererPackageName:tu.rendererPackageName,rendererConfig:tu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ve(e))?null:e.stateNode},findFiberByHostInstance:tu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ru.isDisabled&&ru.supportsFiber)try{it=ru.inject(nu),ot=ru}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Qc(t))throw Error(o(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:_,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Qc(e))throw Error(o(299));var n=!1,r="",i=Kc;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Bc(e,1,!1,null,0,n,0,r,i),e[hi]=t.current,qr(8===e.nodeType?e.parentNode:e),new Gc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return e=null===(e=Ve(t))?null:e.stateNode},t.flushSync=function(e){return uc(e)},t.hydrate=function(e,t,n){if(!Zc(t))throw Error(o(200));return Xc(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Qc(e))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,i=!1,a="",s=Kc;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=qc(t,null,e,1,null!=n?n:null,i,0,a,s),e[hi]=t.current,qr(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Yc(t)},t.render=function(e,t,n){if(!Zc(t))throw Error(o(200));return Xc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Zc(e))throw Error(o(40));return!!e._reactRootContainer&&(uc((function(){Xc(null,null,e,!1,(function(){e._reactRootContainer=null,e[hi]=null}))})),!0)},t.unstable_batchedUpdates=cc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Zc(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return Xc(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},76614:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}},76941:(e,t,n)=>{const r=n(22750).getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];const t=Math.floor(e/7)+2,n=r(e),i=145===n?26:2*Math.ceil((n-13)/(2*t-2)),o=[n-7];for(let r=1;r<t-1;r++)o[r]=o[r-1]-i;return o.push(6),o.reverse()},t.getPositions=function(e){const n=[],r=t.getRowColCoords(e),i=r.length;for(let t=0;t<i;t++)for(let e=0;e<i;e++)0===t&&0===e||0===t&&e===i-1||t===i-1&&0===e||n.push([r[t],r[e]]);return n}},77146:(e,t,n)=>{"use strict";var r=n(73888),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"===typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(o),c=s?o.slice(0,s.index):o,u=[];if(c){if(!n.plainObjects&&i.call(Object.prototype,c)&&!n.allowPrototypes)return;u.push(c)}for(var d=0;n.depth>0&&null!==(s=a.exec(o))&&d<n.depth;){if(d+=1,!n.plainObjects&&i.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(s[1])}if(s){if(!0===n.strictDepth)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");u.push("["+o.slice(s.index)+"]")}return function(e,t,n,r){for(var i=r?t:l(t,n),o=e.length-1;o>=0;--o){var a,s=e[o];if("[]"===s&&n.parseArrays)a=n.allowEmptyArrays&&(""===i||n.strictNullHandling&&null===i)?[]:[].concat(i);else{a=n.plainObjects?{__proto__:null}:{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=n.decodeDotInKeys?c.replace(/%2E/g,"."):c,d=parseInt(u,10);n.parseArrays||""!==u?!isNaN(d)&&s!==u&&String(d)===u&&d>=0&&n.parseArrays&&d<=n.arrayLimit?(a=[])[d]=i:"__proto__"!==u&&(a[u]=i):a={0:i}}i=a}return i}(u,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if("undefined"!==typeof e.allowEmptyArrays&&"boolean"!==typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if("undefined"!==typeof e.decodeDotInKeys&&"boolean"!==typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&"undefined"!==typeof e.decoder&&"function"!==typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t="undefined"===typeof e.charset?a.charset:e.charset,n="undefined"===typeof e.duplicates?a.duplicates:e.duplicates;if("combine"!==n&&"first"!==n&&"last"!==n)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:"undefined"===typeof e.allowDots?!0===e.decodeDotInKeys||a.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"===typeof e.allowEmptyArrays?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"===typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:a.comma,decodeDotInKeys:"boolean"===typeof e.decodeDotInKeys?e.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"===typeof e.decoder?e.decoder:a.decoder,delimiter:"string"===typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:a.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:a.plainObjects,strictDepth:"boolean"===typeof e.strictDepth?!!e.strictDepth:a.strictDepth,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null===e||"undefined"===typeof e)return n.plainObjects?{__proto__:null}:{};for(var u="string"===typeof e?function(e,t){var n={__proto__:null},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;c=c.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var u,d=t.parameterLimit===1/0?void 0:t.parameterLimit,f=c.split(t.delimiter,d),p=-1,h=t.charset;if(t.charsetSentinel)for(u=0;u<f.length;++u)0===f[u].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[u]?h="utf-8":"utf8=%26%2310003%3B"===f[u]&&(h="iso-8859-1"),p=u,u=f.length);for(u=0;u<f.length;++u)if(u!==p){var m,g,v=f[u],y=v.indexOf("]="),b=-1===y?v.indexOf("="):y+1;-1===b?(m=t.decoder(v,a.decoder,h,"key"),g=t.strictNullHandling?null:""):(m=t.decoder(v.slice(0,b),a.decoder,h,"key"),g=r.maybeMap(l(v.slice(b+1),t),(function(e){return t.decoder(e,a.decoder,h,"value")}))),g&&t.interpretNumericEntities&&"iso-8859-1"===h&&(g=s(String(g))),v.indexOf("[]=")>-1&&(g=o(g)?[g]:g);var w=i.call(n,m);w&&"combine"===t.duplicates?n[m]=r.combine(n[m],g):w&&"last"!==t.duplicates||(n[m]=g)}return n}(e,n):e,d=n.plainObjects?{__proto__:null}:{},f=Object.keys(u),p=0;p<f.length;++p){var h=f[p],m=c(h,u[h],n,"string"===typeof e);d=r.merge(d,m,n)}return!0===n.allowSparse?d:r.compact(d)}},77354:function(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,i,o){var a=i.prototype;o.utc=function(e){return new i({date:e,utc:!0,args:arguments})},a.utc=function(t){var n=o(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},a.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var s=a.parse;a.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var l=a.init;a.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else l.call(this)};var c=a.utcOffset;a.utcOffset=function(r,i){var o=this.$utils().u;if(o(r))return this.$u?0:o(this.$offset)?c.call(this):this.$offset;if("string"==typeof r&&(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var i=(""+r[0]).match(n)||["-",0,0],o=i[0],a=60*+i[1]+ +i[2];return 0===a?0:"+"===o?a:-a}(r),null===r))return this;var a=Math.abs(r)<=16?60*r:r,s=this;if(i)return s.$offset=a,s.$u=0===r,s;if(0!==r){var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(a+l,e)).$offset=a,s.$x.$localOffset=l}else s=this.utc();return s};var u=a.format;a.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,t)},a.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var d=a.toDate;a.toDate=function(e){return"s"===e&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var f=a.diff;a.diff=function(e,t,n){if(e&&this.$u===e.$u)return f.call(this,e,t,n);var r=this.local(),i=o(e).local();return f.call(r,i,t,n)}}}()},77390:(e,t,n)=>{"use strict";var r=n(31445);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},77506:(e,t,n)=>{"use strict";n.d(t,{cn:()=>r});const r=(0,n(82435).withNaming)({e:"__",m:"_"})},77630:(e,t,n)=>{"use strict";n.d(t,{De:()=>o,Vk:()=>a});var r=n(69446);const i="https://",o=(e,t)=>{const n=null!==(o=e)&&void 0!==o&&o.startsWith("vm-")?`u-${o}`:o;var o;const a=(0,r.M6)(t).proxy;return a?i+a+"/"+n:i+n},a=(e,t,n)=>{const{Host:i,Endpoints:a,NodeId:s}=e;if(n&&s){return`${(0,r.PG)(t)}/node/${s}`}if(i&&a){var l;const e=null===(l=a.find((e=>"http-mon"===e.Name)))||void 0===l?void 0:l.Address;if(!e||!i)return;return o(i+e,t)}}},77966:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(32213),t)},77995:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=Number.isNaN||function(e){return"number"===typeof e&&e!==e};function i(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(i=e[n],o=t[n],!(i===o||r(i)&&r(o)))return!1;var i,o;return!0}const o=function(e,t){var n;void 0===t&&(t=i);var r,o=[],a=!1;return function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return a&&n===this&&t(i,o)||(r=e.apply(this,i),a=!0,n=this,o=i),r}}},78034:(e,t,n)=>{"use strict";n.d(t,{AB:()=>h,Bm:()=>c,DG:()=>u,Fo:()=>m,X7:()=>d,cW:()=>l,nN:()=>f,q1:()=>p});var r=n(370),i=n(88610),o=n(54090),a=n(76086),s=n(7435);let l=function(e){return e.All="All",e.SmallUptime="SmallUptime",e}({});const c=r.z.nativeEnum(l).catch(l.All),u={[l.All]:"All",[l.SmallUptime]:"Uptime < 1h"},d=e=>!e.SystemState||e.SystemState===o.m.Grey,f=e=>null===e||void 0===e?void 0:e.reduce(((e,t)=>{var n;(0,s.f8)(t.Id)&&e.set(t.Id,{Host:t.Host,DC:null===(n=t.PhysicalLocation)||void 0===n?void 0:n.DataCenterId});return e}),new Map);function p(e={}){var t,n,r,i,o,a;const l=(null===(t=e.Location)||void 0===t?void 0:t.Rack)||e.Rack,c=(null===(n=e.Location)||void 0===n?void 0:n.DataCenter)||e.DataCenter,u=null===e||void 0===e||null===(r=e.Tenants)||void 0===r?void 0:r[0],d=function(e={}){const{LoadAverage:t,NumberOfCpus:n}=e;if((0,s.f8)(t)&&(0,s.f8)(n))return t.map((e=>100*e/n))}(e),f=Number(null===(i=e.SharedCacheStats)||void 0===i?void 0:i.LimitBytes)||void 0,p=(0,s.f8)(null===(o=e.SharedCacheStats)||void 0===o?void 0:o.UsedBytes)?Number(null===(a=e.SharedCacheStats)||void 0===a?void 0:a.UsedBytes):void 0;return{...e,Rack:l,DC:c,LoadAveragePercents:d,TenantName:u,SharedCacheLimit:f,SharedCacheUsed:p}}const h=e=>e===i.s$.PROBLEMS,m=e=>e===l.SmallUptime?a.Jg:void 0},78195:(e,t,n)=>{var r=n(19418),i=n(9434),o=n(12880),a=n(68814);e.exports=function(e){return function(t){t=a(t);var n=i(t)?o(t):void 0,s=n?n[0]:t.charAt(0),l=n?r(n,1).join(""):t.slice(1);return s[e]()+l}}},78212:(e,t,n)=>{const r=n(86849);function i(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}i.prototype.initialize=function(e){this.degree=e,this.genPoly=r.generateECPolynomial(this.degree)},i.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");const t=new Uint8Array(e.length+this.degree);t.set(e);const n=r.mod(t,this.genPoly),i=this.degree-n.length;if(i>0){const e=new Uint8Array(this.degree);return e.set(n,i),e}return n},e.exports=i},78236:e=>{"use strict";e.exports=SyntaxError},78326:(e,t,n)=>{var r=n(68097),i=n(52964),o=n(19305),a=n(83649),s=n(72078),l=n(92061);e.exports=function(e,t,n){for(var c=-1,u=(t=r(t,e)).length,d=!1;++c<u;){var f=l(t[c]);if(!(d=null!=e&&n(e,f)))break;e=e[f]}return d||++c!=u?d:!!(u=null==e?0:e.length)&&s(u)&&a(f,u)&&(o(e)||i(e))}},78453:(e,t,n)=>{var r=n(85651);e.exports=function(e){return r(this,e).has(e)}},78475:e=>{e.exports=function(e){return this.__data__.has(e)}},78524:(e,t,n)=>{"use strict";n.d(t,{v:()=>c});var r=n(59284),i=n(22680),o=n(77506),a=n(60712);const s={light:{403:()=>n.e(7329).then(n.bind(n,67329)),thumbsUp:()=>n.e(3238).then(n.bind(n,73238)),error:()=>n.e(3872).then(n.bind(n,3872))},dark:{403:()=>n.e(1299).then(n.bind(n,81299)),thumbsUp:()=>n.e(5875).then(n.bind(n,98256)),error:()=>n.e(6990).then(n.bind(n,56990))}},l=(0,o.cn)("kv-illustration"),c=({name:e,className:t,...n})=>{const o=(0,i.i)(),[c,u]=r.useState(""),d=s[o]&&s[o][e];return r.useEffect((()=>{"function"===typeof d&&d().then((e=>u(e.default))).catch((e=>{console.error(e),u("")}))}),[d]),c?(0,a.jsx)("img",{alt:e,src:c,className:l(null,t),...n}):null}},78599:e=>{"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(n){t=!1}e.exports=t},78668:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,D_:()=>f,_5:()=>u,mB:()=>d});var r=n(97091),i=n(81288),o=n(21334);const a=(0,r.Z0)({name:"authentication",initialState:{isAuthenticated:!0,user:""},reducers:{setIsAuthenticated:(e,t)=>{const n=t.payload;e.isAuthenticated=n,n||(e.user="")},setUser:(e,t)=>{const{UserSID:n,AuthType:r,IsMonitoringAllowed:i}=t.payload;e.user="Login"===r?n:void 0,e.isUserAllowedToMakeChanges=!1!==i}},selectors:{selectIsUserAllowedToMakeChanges:e=>e.isUserAllowedToMakeChanges,selectUser:e=>e.user}}),s=a.reducer,{setIsAuthenticated:l,setUser:c}=a.actions,{selectIsUserAllowedToMakeChanges:u,selectUser:d}=a.selectors,f=o.F.injectEndpoints({endpoints:e=>({whoami:e.query({queryFn:async({database:e},{dispatch:t})=>{try{const n=await window.api.viewer.whoami({database:e});return t(c(n)),{data:n}}catch(r){var n;return!(0,i.qP)(r)||401!==r.status||null!==(n=r.data)&&void 0!==n&&n.authUrl||t(l(!1)),{error:r}}},providesTags:["UserData"]}),authenticate:e.mutation({queryFn:async(e,{dispatch:t})=>{try{const n=await window.api.auth.authenticate(e);return t(l(!0)),{data:n}}catch(n){return{error:n}}},invalidatesTags:(e,t)=>t?[]:["UserData"]}),logout:e.mutation({queryFn:async(e,{dispatch:t})=>{try{const e=await window.api.auth.logout();return t(l(!1)),{data:e}}catch(n){return{error:n}}}})}),overrideExisting:"throw"})},79553:(e,t,n)=>{"use strict";n.d(t,{o:()=>a});var r=n(65809),i=n(31062),o=n(60712);const a=({error:e,className:t,defaultMessage:n=(0,i.A)("responseError.defaultMessage")})=>{const a=(0,r.$)(e)||n;return(0,o.jsx)("div",{className:`error ${t}`,children:a})}},79685:(e,t,n)=>{"use strict";n.d(t,{p:()=>s});var r=n(7139),i=n.n(r),o=(n(97650),n(48372)),a=n(41650);Object.values(o.JA).forEach((e=>{i().locales[e]&&(i().locales[e].delimiters.thousands=a.en)})),i().locale(o.Ru.lang);const s=i()},80176:(e,t,n)=>{"use strict";n.d(t,{p:()=>f,HG:()=>y,nL:()=>g,Qz:()=>v});var r=n(40336),i=n(77506),o=n(12888),a=n(25196),s=n(48372);const l=JSON.parse('{"field_rack":"Rack","field_host":"Host","context_developer-ui":"Developer UI","field_database":"Database","field_roles":"Roles"}'),c=(0,s.g4)("ydb-node-name-tooltip",{en:l});var u=n(60712);const d=(0,i.cn)("ydb-node-endpoints-tooltip-content"),f=({data:e,nodeHref:t})=>{var n,i;const s=(0,o.X)(),l=[];return null!==e&&void 0!==e&&null!==(n=e.Roles)&&void 0!==n&&n.length&&l.push({name:c("field_roles"),children:e.Roles.join(", "),key:"Roles"}),null!==e&&void 0!==e&&null!==(i=e.Tenants)&&void 0!==i&&i[0]&&l.push({name:c("field_database"),children:e.Tenants[0],key:"Database"}),null!==e&&void 0!==e&&e.Host&&l.push({name:c("field_host"),children:e.Host,copyText:e.Host,key:"Host"}),null!==e&&void 0!==e&&e.Rack&&l.push({name:c("field_rack"),children:e.Rack,key:"Rack"}),null!==e&&void 0!==e&&e.Endpoints&&e.Endpoints.length&&e.Endpoints.forEach((({Name:e,Address:t})=>{e&&t&&l.push({name:e,children:t,key:e})})),s&&t&&l.push({name:"Links",children:(0,u.jsx)(a.K,{title:c("context_developer-ui"),url:t}),key:"developerUi"}),(0,u.jsx)("div",{className:d("list-container"),children:(0,u.jsx)(r.u,{responsive:!0,children:l.map((({children:e,key:t,...n})=>(0,u.jsx)(r.u.Item,{...n,children:(0,u.jsx)("div",{className:d("definition"),children:e})},t)))})})};var p=n(60073),h=n(41826);const m=(0,p.Hr)({values:{ChangeTime:e=>(0,u.jsx)(h.H,{ChangeTime:e})},labels:{TabletId:"Tablet"},defaultValueFormatter:e=>e&&String(e)}),g=({data:e={},className:t})=>{const{TabletId:n,NodeId:r,State:i,Type:o,ChangeTime:a,Generation:s}=e,l=(0,p.jl)(m,{TabletId:n,NodeId:r,State:i,Type:o,ChangeTime:a,Generation:s});return(0,u.jsx)(p.z_,{className:t,info:l,dots:!1,size:"s"})},v=(0,p.Hr)({values:{Usage:e=>e&&`${(100*Number(e)).toFixed(2)} %`},labels:{Name:"Pool"},defaultValueFormatter:e=>e&&String(e)}),y=({data:e={},className:t})=>{const n=(0,p.jl)(v,e);return(0,u.jsx)(p.z_,{className:t,info:n,dots:!1,size:"s"})}},80222:e=>{e.exports=function(e){return function(){return e}}},80303:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},80472:(e,t,n)=>{var r=n(40691);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},80605:e=>{"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var r in e[t]=42,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},80967:(e,t,n)=>{"use strict";n.d(t,{i:()=>s});var r=n(59284),i=n(88610),o=n(51533),a=n(75022);const s=(e,t)=>{const n=(0,o.Y)();return[(0,a.N)((n=>{var r;return null!==(r=(0,i.CN)(n,e))&&void 0!==r?r:t})),r.useCallback((t=>{n((0,i.gc)(e,t))}),[n,e])]}},80971:(e,t,n)=>{"use strict";function r(e="execute",t="query"){let n=e,r="yql_v1";return"pg"===t?(n=`${e}-query`,r="pg"):t&&(n=`${e}-${t}`),{action:n,syntax:r}}function i(e){return"string"===typeof e?{queryText:e}:e}function o(e){var t;return"SessionCreated"===(null===e||void 0===e||null===(t=e.meta)||void 0===t?void 0:t.event)}function a(e){var t;return"StreamData"===(null===e||void 0===e||null===(t=e.meta)||void 0===t?void 0:t.event)}function s(e){var t;return"QueryResponse"===(null===e||void 0===e||null===(t=e.meta)||void 0===t?void 0:t.event)}n.d(t,{AH:()=>r,HH:()=>s,QG:()=>i,uR:()=>a,y6:()=>o})},81240:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.47 3.47a.75.75 0 0 1 1.06 0L8 6.94l3.47-3.47a.75.75 0 1 1 1.06 1.06L9.06 8l3.47 3.47a.75.75 0 1 1-1.06 1.06L8 9.06l-3.47 3.47a.75.75 0 0 1-1.06-1.06L6.94 8 3.47 4.53a.75.75 0 0 1 0-1.06",clipRule:"evenodd"}))},81288:(e,t,n)=>{"use strict";n.d(t,{F0:()=>o,Pq:()=>a,TX:()=>r,qP:()=>i,uP:()=>s});const r=e=>Boolean(e&&"object"===typeof e&&"message"in e&&"string"===typeof e.message&&"network error"===e.message.toLowerCase()),i=e=>Boolean(e&&"object"===typeof e&&"status"in e);function o(e){return Boolean(e&&"object"===typeof e&&"name"in e&&"AxiosError"===e.name)}function a(e){return Boolean(e&&"object"===typeof e&&"status"in e&&(403===e.status||401===e.status))}function s(e){return Boolean(a(e)&&401===e.status&&"data"in e&&e.data&&"object"===typeof e.data&&"authUrl"in e.data&&e.data.authUrl&&"string"===typeof e.data.authUrl)}},81382:(e,t,n)=>{var r=n(935),i=n(4212),o=n(64898),a=n(42589),s=n(98545),l=n(26905);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,e.exports=c},81463:(e,t,n)=>{"use strict";n.d(t,{A:()=>E,d:()=>_});var r=n(96906),i=n(21334),o=n(78668),a=n(67157),s=n(39567),l=n(69053),c=n(72976),u=n(40174),d=n(90565),f=n(47058),p=n(73289),h=n(36894),m=n(29078),g=n(88610),v=n(46496);const y=function(e=!0){return e};var b=n(18517),w=n(56674),x=n(49818);const _={[i.F.reducerPath]:i.F.reducer,singleClusterMode:y,cluster:a.Ay,tenant:b.Ay,tooltip:x.Ay,schema:m.Ay,tenants:w.Ay,partitions:f.Ay,query:p.Ay,heatmap:d.Ay,settings:g.Ay,executeTopQueries:l.Ay,shardsWorkload:v.Ay,authentication:o.Ay,header:u.A,queryActions:h.Ay,fullscreen:c.Ay,clusters:s.Ay},E=(0,r.HY)({..._})},81517:(e,t,n)=>{"use strict";n.d(t,{d:()=>o});var r=n(59284),i=n(359);const o=(e,{openDelay:t=250,closeDelay:n,preventTriggerOnFocus:o=!1})=>{const[a,s,l]=function(e){const[t,n]=r.useState(e);return[t,r.useCallback((()=>n(!0)),[]),r.useCallback((()=>n(!1)),[]),r.useCallback((()=>n((e=>!e))),[])]}(!1),c=r.useRef(),u=r.useRef(!1);return r.useEffect((()=>{if(e)return e.addEventListener("mouseenter",r),e.addEventListener("mouseleave",a),e.addEventListener("keydown",p),o||(e.addEventListener("focus",d),e.addEventListener("blur",f)),()=>{e.removeEventListener("mouseenter",r),e.removeEventListener("mouseleave",a),e.removeEventListener("focus",d),e.removeEventListener("blur",f),e.removeEventListener("keydown",p)};function r(){clearTimeout(c.current),c.current=window.setTimeout(s,t)}function a(){clearTimeout(c.current),c.current=window.setTimeout(l,n)}function d(e){u.current||document.activeElement!==e.target||(u.current=!0,clearTimeout(c.current),s())}function f(e){u.current&&!e.currentTarget.contains(e.relatedTarget)&&(u.current=!1,clearTimeout(c.current),l())}function p(e){e.key===i.D.ESCAPE&&(clearTimeout(c.current),l())}}),[e,s,l,t,n,o]),a}},82015:(e,t,n)=>{"use strict";n.d(t,{E:()=>s});var r=n(52905),i=n(77506),o=n(60712);const a=(0,i.cn)("g-link"),s=({className:e,to:t,onClick:n,...i})=>t?(0,o.jsx)(r.N_,{to:t,onClick:n,className:a({view:"normal"},e),...i}):(0,o.jsx)("span",{className:e,onClick:n,children:i.children})},82121:e=>{e.exports=function(){return[]}},82176:(e,t,n)=>{"use strict";function r(e,t){var n;return null!==(n=t[e])&&void 0!==n?n:e}function i(e,t,n,r){const i=n[e]||r;return i?i(t):t}function o({values:e,labels:t,defaultValueFormatter:n}){return(o,a)=>({label:r(o,t||{}),value:i(o,a,e||{},n)})}n.d(t,{H:()=>o,j:()=>a});const a=(e,t)=>t?Object.entries(t).map((([t,n])=>e(t,n))).filter((({value:e})=>Boolean(e))):[]},82266:(e,t,n)=>{"use strict";n.d(t,{tH:()=>E,jt:()=>C,lQ:()=>S});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:400,height:400,fill:"none",viewBox:"0 0 400 400"},e),r.createElement("path",{fill:"var(--gil-color-background-shapes)",fillRule:"evenodd",d:"M315.141 81.442c4.093-8.992 22.26-32.072 22.26-32.072s-4.991 23.48-10.481 36.268c-3.793 8.593-15.572 3.997-11.779-4.196m-59.093 28.375c4.092-8.892 26.651-39.965 26.651-39.965s-9.383 31.373-14.873 44.162c-3.793 8.592-15.572 3.996-11.778-4.197M38.541 162.17s-15.372 17.785-19.165 25.978c-3.494 7.493 7.287 11.689 10.68 3.796 5.091-11.69 8.485-29.774 8.485-29.774m-9.084 171.153h334.495c27.95 0 26.952-40.665 8.485-54.353-15.173-11.29-33.04-7.494-33.04-7.494 3.893-7.493 16.57-38.666-16.371-68.34-25.054-22.58-89.039-10.591-89.039-10.591s-3.992-64.843-48.312-58.948c-5.89-23.58-29.746-34.37-45.218-26.078-27.251 14.588-4.592 43.363-4.592 43.363s-17.169-5.496-29.547 4.496c-21.46 17.285-10.78 45.56-10.78 45.56s-9.683-6.395-22.66.4c-32.34 16.885-26.152 42.263-23.956 49.257-5.59-1.099-28.448-3.997-36.833 14.087-9.683 20.882 9.982 32.772 9.982 32.772S6.798 304.348 6.798 312.74c0 .595-.01 1.209-.02 1.835-.142 8.224-.322 18.748 22.68 18.748",clipRule:"evenodd"}),r.createElement("path",{fill:"var(--gil-color-background-lines)",fillRule:"evenodd",d:"M353.492 190.948c8.01-.329 15.134 3.627 19.294 9.654l.042.063c1.459 2.295.048 5.571-2.986 5.571H354.87a2.795 2.795 0 0 0-2.792 2.796v8.992a2.795 2.795 0 0 0 2.792 2.796h14.873a3.47 3.47 0 0 1 3.121 1.938 3.2 3.2 0 0 1-.6 3.668c-4.06 5.614-10.693 9.285-18.093 9.285-8.446 0-15.78-4.755-19.589-11.692l-57.172-.098h-.003c-5.92-.001-10.956-4.117-11.081-10.353-.126-6.431 5.401-10.831 11.381-10.832h.002l56.973-.098c3.703-6.732 10.801-11.377 18.81-11.69m14.968 33.872c-3.375 4.203-8.562 6.891-14.289 6.891-7.272 0-13.581-4.313-16.562-10.552a2 2 0 0 0-1.802-1.138l-58.394-.1h-.003c-4.061 0-7.009-2.678-7.084-6.432m98.134 11.331h-13.59c-3.675 0-6.792-2.968-6.792-6.796v-8.992c0-3.673 2.963-6.796 6.792-6.796h14.163c-3.475-4.599-9.102-7.55-15.379-7.292l-.004.001c-6.919.269-13.056 4.506-15.941 10.552a2 2 0 0 1-1.802 1.139l-58.198.1c-4.2 0-7.456 2.995-7.383 6.753",clipRule:"evenodd"}),r.createElement("path",{fill:"var(--gil-color-background-lines)",fillRule:"evenodd",d:"M255.748 153.78a9.17 9.17 0 0 0-9.18 9.191v6.492H391v-6.492a9.167 9.167 0 0 0-9.18-9.191zM391 173.463H246.568V243.5a9.17 9.17 0 0 0 9.18 9.191H381.72c5.072 0 9.189-4.092 9.28-9.208zm-9.28 83.228H255.748c-7.295 0-13.18-5.893-13.18-13.191v-80.529c0-7.298 5.885-13.191 13.18-13.191H381.82c7.295 0 13.18 5.893 13.18 13.191v80.562c-.117 7.266-5.978 13.158-13.28 13.158",clipRule:"evenodd"}),r.createElement("path",{fill:"var(--gil-color-background-lines)",fillRule:"evenodd",d:"M280.5 133.497a10.055 10.055 0 0 1 10.085-10.093h59.792c5.614 0 10.085 4.61 10.085 10.093v18.384a2 2 0 0 1-2 2H282.5a2 2 0 0 1-2-2zm10.085-6.093a6.056 6.056 0 0 0-6.085 6.093v16.384h71.962v-16.384c0-3.309-2.715-6.093-6.085-6.093z",clipRule:"evenodd"}),r.createElement("path",{fill:"var(--gil-color-background-lines)",fillRule:"evenodd",d:"M291.979 136.396a2 2 0 0 1 2-2h53.104a2 2 0 0 1 2 2v15.486a2 2 0 0 1-2 2h-53.104a2 2 0 0 1-2-2zm4 2v11.486h49.104v-11.486z",clipRule:"evenodd"}),r.createElement("path",{fill:"var(--gil-color-background-shapes)",d:"M116.899 84.14s-15.372 17.785-19.165 25.978c-3.494 7.493 7.287 11.69 10.681 3.797 4.991-11.59 8.484-29.774 8.484-29.774"}),r.createElement("path",{fill:"var(--gil-color-background-lines)",fillRule:"evenodd",d:"M54.125 213.88c.318-2.546 2.42-4.55 5.079-4.55h7.187c2.658 0 4.76 2.004 5.079 4.55l.004.037.741 7.006c2.076.417 4.094.966 6.024 1.616l4.21-5.703.01-.011a5.07 5.07 0 0 1 6.586-1.336l.012.007 6.176 3.59.007.003c2.313 1.328 3.117 4.128 2.137 6.417l-.01.022-2.89 6.53a49 49 0 0 1 4.41 4.414l6.521-2.891.022-.01c2.29-.982 5.089-.175 6.415 2.139l.004.006 3.575 6.164c1.293 2.131.846 5.099-1.35 6.643l-5.686 4.207a51 51 0 0 1 1.623 6.026l6.999.741-.21 1.989.248-1.984c2.503.313 4.581 2.4 4.447 5.137v7.138c0 .726-.139 1.528-.49 2.252a4.92 4.92 0 0 1-4.008 2.836l-6.985.74a49 49 0 0 1-1.615 6.033l5.71 4.224a5.08 5.08 0 0 1 1.335 6.588l-.007.012-3.586 6.183-.004.005c-1.325 2.315-4.125 3.122-6.415 2.14l-.022-.01-6.52-2.891a49 49 0 0 1-4.412 4.414l2.89 6.53.01.022c.98 2.289.177 5.089-2.136 6.416l-.007.004-6.157 3.579c-2.132 1.295-5.1.847-6.642-1.351l-4.202-5.69a51 51 0 0 1-6.017 1.623l-.74 7.008-.005.037c-.318 2.546-2.42 4.55-5.08 4.55h-7.186c-2.659 0-4.761-2.004-5.08-4.55q0-.019-.004-.037l-.74-7.007a49 49 0 0 1-6.024-1.615l-4.211 5.703-.009.011a5.07 5.07 0 0 1-6.586 1.336l-.012-.007-6.177-3.59-.007-.004c-2.313-1.327-3.116-4.127-2.136-6.416l.01-.022 2.89-6.53a49 49 0 0 1-4.41-4.414l-6.521 2.891-.023.01c-2.29.982-5.089.175-6.414-2.139l-.004-.006-3.575-6.164c-1.293-2.131-.847-5.099 1.35-6.643l5.686-4.207a51 51 0 0 1-1.623-6.026l-7-.741-.023-.003-.014-.002c-1.304-.163-2.398-.804-3.163-1.57a2 2 0 0 1-.122-.134C4.514 274.257 4 273.118 4 271.777v-7.193c0-2.658 2-4.763 4.547-5.082l.037-.005 6.998-.741c.416-2.079.965-4.1 1.615-6.033l-5.71-4.224a5.08 5.08 0 0 1-1.335-6.588l.007-.012 3.59-6.19c1.327-2.314 4.126-3.12 6.415-2.138l.023.01 6.52 2.891a49 49 0 0 1 4.411-4.414l-2.89-6.53-.01-.022c-.98-2.289-.177-5.089 2.137-6.416l6.164-3.583c2.131-1.295 5.099-.847 6.642 1.351l4.202 5.69a51 51 0 0 1 6.016-1.623l.742-7.008q0-.019.004-.037m62.441 49.593-8.462-.897a2 2 0 0 1-1.762-1.66c-.475-2.853-1.237-5.533-2.207-8.249a2 2 0 0 1 .695-2.28l6.887-5.096.05-.036c.367-.254.515-.849.234-1.305l-.026-.044-3.593-6.194-.007-.012a1.08 1.08 0 0 0-1.359-.456l-7.872 3.49a2 2 0 0 1-2.354-.555 45 45 0 0 0-6.02-6.026 2 2 0 0 1-.554-2.351l3.487-7.879a1.09 1.09 0 0 0-.456-1.365l-.012-.007-6.176-3.59-.005-.003a1.07 1.07 0 0 0-1.392.261q0 .002-.003.005l-5.082 6.882a2 2 0 0 1-2.304.688 45 45 0 0 0-8.219-2.201 2 2 0 0 1-1.66-1.762l-.895-8.47c-.087-.643-.577-1.031-1.108-1.031h-7.187c-.532 0-1.021.388-1.108 1.031l-.896 8.47a2 2 0 0 1-1.66 1.762c-2.85.475-5.526 1.238-8.24 2.209a2 2 0 0 1-2.282-.696l-5.091-6.894-.036-.05c-.254-.367-.846-.513-1.3-.234l-.043.026-6.2 3.604c-.475.271-.668.86-.456 1.365l3.487 7.879a2 2 0 0 1-.554 2.351 45 45 0 0 0-6.021 6.026 2 2 0 0 1-2.353.555l-7.872-3.49a1.08 1.08 0 0 0-1.36.456l-.006.012-3.587 6.182-.002.005a1.08 1.08 0 0 0 .26 1.398l.005.003 6.876 5.087a2 2 0 0 1 .686 2.302 45 45 0 0 0-2.199 8.227 2 2 0 0 1-1.762 1.66l-8.461.897c-.639.086-1.029.575-1.029 1.111v7.193c0 .237.072.475.277.745.22.197.49.33.752.366l8.461.897a2 2 0 0 1 1.762 1.66c.475 2.853 1.238 5.533 2.207 8.249a2 2 0 0 1-.694 2.28l-6.888 5.096-.05.036c-.366.254-.514.849-.234 1.305l.026.044 3.6 6.206c.272.476.859.667 1.36.456l7.872-3.49a2 2 0 0 1 2.353.555 45 45 0 0 0 6.02 6.026 2 2 0 0 1 .555 2.351l-3.487 7.879a1.09 1.09 0 0 0 .455 1.365l.012.007 6.177 3.59.004.002a1.07 1.07 0 0 0 1.392-.26l.003-.005 5.083-6.882a2 2 0 0 1 2.304-.688 45 45 0 0 0 8.218 2.201 2 2 0 0 1 1.66 1.762l.896 8.47c.087.643.576 1.031 1.108 1.031h7.187c.531 0 1.02-.388 1.108-1.031l.896-8.47a2 2 0 0 1 1.66-1.762c2.849-.475 5.526-1.238 8.24-2.209a2 2 0 0 1 2.282.696l5.09 6.894.037.05c.253.367.846.513 1.299.234l.044-.026 6.188-3.597.012-.007c.475-.271.667-.86.456-1.365l-3.487-7.879a2 2 0 0 1 .554-2.351 45 45 0 0 0 6.02-6.026 2 2 0 0 1 2.354-.555l7.872 3.49c.501.211 1.087.02 1.359-.456l.007-.012 3.586-6.182.003-.005a1.08 1.08 0 0 0-.265-1.401l-6.876-5.087a2 2 0 0 1-.687-2.302 45 45 0 0 0 2.199-8.227 2 2 0 0 1 1.762-1.66l8.485-.899.029-.003a.92.92 0 0 0 .749-.519l.039-.082c.033-.065.089-.245.089-.505v-7.193q0-.063.004-.125c.026-.424-.273-.897-.933-.986m-53.669-18.569c-12.868 0-23.254 10.393-23.254 23.278S50.03 291.46 62.897 291.46c12.882 0 23.347-10.403 23.255-23.264v-.014c0-12.885-10.386-23.278-23.255-23.278m-27.254 23.278c0-15.091 12.173-27.278 27.254-27.278 15.079 0 27.25 12.183 27.255 27.27.104 15.112-12.189 27.286-27.255 27.286-15.08 0-27.254-12.187-27.254-27.278",clipRule:"evenodd"}),r.createElement("path",{fill:"var(--gil-color-object-hightlight)",fillRule:"evenodd",d:"m232.291 67.955 16.869-.5c.799 0 .998 1.2.499 2.098l-34.238 49.357c-.799 1.099-2.096 1.299-1.797-.1l8.984-35.968-16.869.5c-.799-.1-1.098-1.2-.5-2.099l34.039-50.356c.798-1.099 2.096-1.299 1.797.1zM61.799 112.414l10.68-.3c.5 0 .7.8.3 1.299L49.92 145.785c-.399.699-1.297.799-1.098-.1l4.093-23.879-10.68.3c-.5 0-.7-.8-.3-1.299l22.659-32.972c.4-.699 1.297-.799 1.098.1z",clipRule:"evenodd"}),r.createElement("path",{fill:"var(--gil-color-background-lines)",fillRule:"evenodd",d:"M137.562 40.278a2 2 0 0 1 2 2v7.294a2 2 0 0 1-4 0v-7.294a2 2 0 0 1 2-2m-17.072 17.09a2 2 0 0 1 2-2h7.187a2 2 0 0 1 0 4h-7.187a2 2 0 0 1-2-2m22.958 0a2 2 0 0 1 2-2h7.187a2 2 0 1 1 0 4h-7.187a2 2 0 0 1-2-2m-5.885 5.29a2 2 0 0 1 2 2v7.892a2 2 0 0 1-4 0v-7.893a2 2 0 0 1 2-2",clipRule:"evenodd"}),r.createElement("path",{fill:"var(--gil-color-object-base)",d:"m66.79 359.9 90.736 10.091c2.296.2 4.292-3.097 4.292-7.193V164.67c0-4.196-1.896-7.393-4.292-7.193L66.79 169.566c-1.996.2-3.693 3.397-3.693 7.294v175.746c0 3.897 1.697 7.094 3.693 7.294"}),r.createElement("path",{fill:"var(--gil-color-object-hightlight)",d:"m315.24 362.997-157.415 6.894c-4.092.2-7.387-3.097-7.387-7.193V164.67c0-4.196 3.295-7.393 7.387-7.193l157.415 6.894c3.494.199 6.389 3.397 6.389 7.293v184.04c0 3.896-2.895 7.194-6.389 7.293"}),r.createElement("path",{fill:"var(--gil-color-object-base)",fillRule:"evenodd",d:"m321.589 233.713-171.19-3.397.079-4 171.191 3.397zm.067 67.241-174.184 2.398-.055-4 174.184-2.397z",clipRule:"evenodd"}),r.createElement("path",{fill:"var(--gil-color-object-accent-heavy)",fillRule:"evenodd",d:"M170.901 184.852c2.096.2 3.893-1.698 3.893-4.096s-1.697-4.496-3.893-4.596c-2.096-.2-3.893 1.698-3.893 4.096s1.697 4.496 3.893 4.596m17.867.901c2.097.1 3.794-1.699 3.794-4.097 0-2.298-1.697-4.396-3.794-4.496-2.196-.1-3.893 1.699-3.893 4.097s1.797 4.396 3.893 4.496m21.262-3.097c0 2.397-1.696 4.196-3.793 4.096-2.096-.1-3.793-2.098-3.793-4.496s1.697-4.196 3.793-4.097c2.097.1 3.793 2.199 3.793 4.497m13.376 4.993c2.096.1 3.693-1.699 3.693-3.997 0-2.398-1.697-4.396-3.693-4.396-1.996-.1-3.693 1.699-3.693 3.997s1.697 4.296 3.693 4.396m20.463-3.095c0 2.298-1.597 4.096-3.593 3.996-1.997-.1-3.594-2.098-3.594-4.396s1.597-4.096 3.594-3.996c1.896.1 3.593 2.098 3.593 4.396m12.877 4.896c1.896.1 3.493-1.699 3.493-3.997s-1.597-4.296-3.493-4.296c-1.997-.1-3.594 1.698-3.594 3.996s1.597 4.197 3.594 4.297",clipRule:"evenodd"}),r.createElement("path",{fill:"var(--gil-color-object-accent-light)",fillRule:"evenodd",d:"M272.817 190.248c1.897.1 3.494-1.599 3.494-3.897s-1.597-4.196-3.494-4.296-3.494 1.599-3.494 3.897 1.597 4.196 3.494 4.296m15.871.799c1.897.1 3.394-1.698 3.394-3.896s-1.497-4.097-3.394-4.297c-1.896-.1-3.394 1.599-3.394 3.897s1.498 4.196 3.394 4.296",clipRule:"evenodd"}),r.createElement("path",{fill:"var(--gil-color-object-accent-light)",d:"M307.554 188.05c0 2.198-1.497 3.897-3.294 3.797-1.896-.1-3.394-1.998-3.394-4.196s1.498-3.997 3.394-3.797c1.797.1 3.294 1.998 3.294 4.196"}),r.createElement("path",{fill:"var(--gil-color-object-accent-heavy)",fillRule:"evenodd",d:"M170.901 256.89c2.096 0 3.893-1.898 3.893-4.296s-1.697-4.396-3.893-4.396c-2.096 0-3.893 1.898-3.893 4.296s1.697 4.396 3.893 4.396m17.868.2c2.097 0 3.794-1.898 3.794-4.296 0-2.298-1.697-4.296-3.794-4.396-2.196 0-3.893 1.898-3.893 4.296s1.797 4.396 3.893 4.396m21.262-3.995c0 2.398-1.697 4.196-3.794 4.196s-3.793-1.998-3.793-4.296c0-2.398 1.697-4.296 3.793-4.196 2.097 0 3.794 1.898 3.794 4.296m13.375 4.395c2.097 0 3.694-1.899 3.694-4.197s-1.697-4.196-3.694-4.296c-1.996 0-3.693 1.799-3.693 4.196 0 2.398 1.697 4.297 3.693 4.297m20.463-3.897c0 2.298-1.597 4.196-3.593 4.096-1.996 0-3.594-1.898-3.594-4.196s1.598-4.196 3.594-4.096c1.896 0 3.593 1.898 3.593 4.196m12.877 4.295c1.896 0 3.494-1.799 3.494-4.097s-1.598-4.196-3.494-4.196c-1.997 0-3.594 1.798-3.594 4.096s1.597 4.197 3.594 4.197m19.565-3.894c0 2.298-1.597 4.097-3.494 4.097s-3.494-1.899-3.494-4.197 1.597-4.096 3.494-4.096c1.897.1 3.494 1.998 3.494 4.196m12.377 4.295c1.897 0 3.394-1.798 3.394-3.997 0-2.298-1.497-4.096-3.394-4.096-1.896-.1-3.394 1.699-3.394 3.997 0 2.198 1.498 4.096 3.394 4.096",clipRule:"evenodd"}),r.createElement("path",{fill:"var(--gil-color-object-accent-light)",d:"M307.554 254.492c0 2.199-1.498 3.997-3.294 3.997-1.897 0-3.394-1.798-3.394-4.096 0-2.199 1.497-3.997 3.394-3.997 1.796 0 3.294 1.798 3.294 4.096"}),r.createElement("path",{fill:"var(--gil-color-object-accent-heavy)",fillRule:"evenodd",d:"M240.276 326.93c1.996-.1 3.593-1.998 3.593-4.296s-1.697-4.196-3.593-4.097c-1.997.1-3.594 1.999-3.594 4.297s1.597 4.196 3.594 4.096m-13.177-3.898c0 2.298-1.597 4.296-3.693 4.296-1.996.1-3.693-1.798-3.693-4.096s1.697-4.296 3.693-4.296c1.996-.1 3.693 1.798 3.693 4.096m-20.862 4.897c2.097-.1 3.793-1.998 3.793-4.396s-1.696-4.296-3.793-4.196c-2.096.1-3.793 1.998-3.793 4.396s1.697 4.296 3.793 4.196m-13.674-3.996c0 2.398-1.697 4.396-3.794 4.396-2.096.1-3.893-1.799-3.893-4.196 0-2.398 1.697-4.397 3.893-4.397 2.097 0 3.794 1.899 3.794 4.197m-17.769.501c0 2.398-1.797 4.396-3.893 4.496-2.196.1-3.893-1.798-3.893-4.296s1.797-4.396 3.893-4.496c2.196 0 3.893 1.898 3.893 4.296m98.023 1.496c1.897-.1 3.494-1.899 3.494-4.197s-1.597-4.096-3.494-3.996c-1.897 0-3.494 1.898-3.494 4.196s1.597 4.097 3.494 3.997m-16.071.4c1.897 0 3.494-1.899 3.494-4.197s-1.597-4.096-3.494-4.096c-1.996 0-3.593 1.898-3.593 4.196s1.597 4.197 3.593 4.097",clipRule:"evenodd"}),r.createElement("path",{fill:"var(--gil-color-object-accent-light)",fillRule:"evenodd",d:"M304.26 324.931c1.796 0 3.294-1.899 3.294-4.097s-1.498-3.896-3.294-3.896c-1.897 0-3.394 1.898-3.394 4.096s1.497 3.996 3.394 3.897m-15.572.598c1.897-.1 3.394-1.999 3.394-4.197 0-2.298-1.497-4.096-3.394-3.996-1.896.1-3.394 1.898-3.394 4.196s1.498 4.096 3.394 3.997",clipRule:"evenodd"}));var o=n(87184),a=n(98089),s=n(40336),l=n(59495);const c=(0,r.createContext)(null),u={didCatch:!1,error:null};class d extends r.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=u}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(null!==e){for(var t,n,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];null===(t=(n=this.props).onReset)||void 0===t||t.call(n,{args:i,reason:"imperative-api"}),this.setState(u)}}componentDidCatch(e,t){var n,r;null===(n=(r=this.props).onError)||void 0===n||n.call(r,e,t)}componentDidUpdate(e,t){const{didCatch:n}=this.state,{resetKeys:r}=this.props;var i,o;n&&null!==t.error&&function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==t.length||e.some(((e,n)=>!Object.is(e,t[n])))}(e.resetKeys,r)&&(null===(i=(o=this.props).onReset)||void 0===i||i.call(o,{next:r,prev:e.resetKeys,reason:"keys"}),this.setState(u))}render(){const{children:e,fallbackRender:t,FallbackComponent:n,fallback:i}=this.props,{didCatch:o,error:a}=this.state;let s=e;if(o){const e={error:a,resetErrorBoundary:this.resetErrorBoundary};if("function"===typeof t)s=t(e);else if(n)s=(0,r.createElement)(n,e);else{if(void 0===i)throw a;s=i}}return(0,r.createElement)(c.Provider,{value:{didCatch:o,error:a,resetErrorBoundary:this.resetErrorBoundary}},s)}}var f=n(77506);var p=n(34271),h=n(48372);const m=JSON.parse('{"error-title":"Oops! Something went wrong...","error-description":"Something seems to be broken. Please contact support for help.","send-qr-message":"Send QR code to the support","stack-title":"Trace","ui-version":"UI version","backend-version":"Backend version","error":"Error"}'),g=(0,h.g4)("ydb-error-boundary",{en:m});var v=n(65809),y=n(8330);async function b(e){return await async function(){try{var t,n;const e=await window.api.viewer.getNodeInfo(".",{timeout:1e3});return null===e||void 0===e||null===(t=e.SystemStateInfo)||void 0===t||null===(n=t[0])||void 0===n?void 0:n.Version}catch(e){return{error:(0,v.$)(e)}}}().then((t=>({location:window.location.href,userAgent:navigator.userAgent,error:{message:(0,v.$)(e),stack:w(e.stack,{trim:!0,maxLines:10})},uiVersion:y.rE,backendVersion:t})))}function w(e,{trim:t=!0,maxLines:n}={}){return null===e||void 0===e?void 0:e.split("\n").map(((e,n)=>{if(0===n)return e;const r=e.replace(`(${window.location.origin}/`,"(/");return t?r.trim():r})).slice(0,n?n+1:void 0).join("\n")}var x=n(60712);const _=(0,f.cn)("ydb-error-boundary");function E({children:e}){const t=(0,p.x)("ErrorBoundary");return(0,x.jsx)(t,{children:e})}function S({children:e}){return(0,x.jsx)(d,{onError:(e,t)=>{var n;!function(e,t,n="error"){var r;"undefined"!==typeof window&&null!==(r=window.Ya)&&void 0!==r&&r.Rum?window.Ya.Rum.logError({additional:{url:window.location.href},type:n,message:t,level:window.Ya.Rum.ERROR_LEVEL.ERROR},e):console.error(e)}(e,null!==(n=t.componentStack)&&void 0!==n?n:void 0,"error-boundary")},fallbackRender:({error:e})=>(0,x.jsx)(C,{error:e}),children:e})}function C({error:e}){const[t,n]=r.useState();return r.useEffect((()=>{b(e).then((e=>{n(e)}))}),[e]),(0,x.jsxs)(o.s,{direction:"column",gap:4,className:_(null),children:[(0,x.jsxs)(o.s,{direction:"row",alignItems:"center",gap:10,children:[(0,x.jsx)(i,{width:230,height:230}),(0,x.jsxs)(o.s,{direction:"column",gap:5,children:[(0,x.jsxs)(o.s,{direction:"column",gap:2,children:[(0,x.jsx)(a.E,{variant:"subheader-3",children:g("error-title")}),(0,x.jsx)(a.E,{variant:"body-1",color:"complementary",children:g("error-description")})]}),(0,x.jsx)(k,{data:t})]})]}),(0,x.jsxs)(o.s,{direction:"row",alignItems:"start",gap:8,children:[(0,x.jsx)(O,{stack:e.stack}),(0,x.jsxs)(o.s,{direction:"column",gap:3,children:[(0,x.jsx)(a.E,{variant:"body-1",color:"complementary",className:_("qr-help-text"),children:g("send-qr-message")}),(0,x.jsx)(N,{data:t})]})]})]})}function k({data:e}){return(0,x.jsxs)(s.u,{nameMaxWidth:200,children:[(null===e||void 0===e?void 0:e.uiVersion)&&"string"===typeof e.uiVersion&&(0,x.jsx)(s.u.Item,{name:g("ui-version"),children:e.uiVersion}),(null===e||void 0===e?void 0:e.backendVersion)&&"string"===typeof e.backendVersion&&(0,x.jsx)(s.u.Item,{name:g("backend-version"),children:e.backendVersion}),(0,x.jsx)(s.u.Item,{name:g("error"),children:null===e||void 0===e?void 0:e.error.message})]})}function O({stack:e}){if(!e)return null;const t=w(e,{trim:!1,maxLines:void 0});return(0,x.jsxs)(o.s,{direction:"column",className:_("error-stack-wrapper"),children:[(0,x.jsx)(a.E,{variant:"body-1",className:_("error-stack-title"),children:g("stack-title")}),(0,x.jsx)(a.E,{variant:"code-1",className:_("error-stack-code"),children:t})]})}function N({data:e}){const t=r.useRef(null);return r.useEffect((()=>{e&&l.toCanvas(t.current,JSON.stringify(e),{errorCorrectionLevel:"L",width:400})}),[e]),e?(0,x.jsx)("canvas",{ref:t}):null}},82435:(e,t,n)=>{"use strict";e.exports=n(31560)},82461:e=>{"use strict";e.exports=EvalError},82621:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(48372);const i=JSON.parse('{"b":"B","kb":"KB","mb":"MB","gb":"GB","tb":"TB","label_thousand":"k","label_million":"m","label_billion":"b","label_trillion":"t","perSecond":"/s"}'),o=(0,r.g4)("ydb-bytes-parsers",{en:i})},82789:(e,t,n)=>{var r=n(11275);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},83046:(e,t,n)=>{"use strict";n.d(t,{AO:()=>S,Kr:()=>_,nq:()=>E,tp:()=>k,yT:()=>f});var r=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],i=r.join(","),o="undefined"===typeof Element,a=o?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,s=!o&&Element.prototype.getRootNode?function(e){var t;return null===e||void 0===e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null===e||void 0===e?void 0:e.ownerDocument},l=function e(t,n){var r;void 0===n&&(n=!0);var i=null===t||void 0===t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===i||"true"===i||n&&t&&e(t.parentNode)},c=function(e,t,n){if(l(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(i));return t&&a.call(e,i)&&r.unshift(e),r=r.filter(n)},u=function e(t,n,r){for(var o=[],s=Array.from(t);s.length;){var c=s.shift();if(!l(c,!1))if("SLOT"===c.tagName){var u=c.assignedElements(),d=e(u.length?u:c.children,!0,r);r.flatten?o.push.apply(o,d):o.push({scopeParent:c,candidates:d})}else{a.call(c,i)&&r.filter(c)&&(n||!t.includes(c))&&o.push(c);var f=c.shadowRoot||"function"===typeof r.getShadowRoot&&r.getShadowRoot(c),p=!l(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(c));if(f&&p){var h=e(!0===f?c.children:f.children,!0,r);r.flatten?o.push.apply(o,h):o.push({scopeParent:c,candidates:h})}else s.unshift.apply(s,c.children)}}return o},d=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},f=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null===e||void 0===e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!d(e)?0:e.tabIndex},p=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},h=function(e){return"INPUT"===e.tagName},m=function(e){return function(e){return h(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||s(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!==typeof window&&"undefined"!==typeof window.CSS&&"function"===typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(o){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",o.message),!1}var i=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!i||i===e}(e)},g=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},v=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var i=a.call(e,"details>summary:first-of-type")?e.parentElement:e;if(a.call(i,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return g(e)}else{if("function"===typeof r){for(var o=e;e;){var l=e.parentElement,c=s(e);if(l&&!l.shadowRoot&&!0===r(l))return g(e);e=e.assignedSlot?e.assignedSlot:l||c===e.ownerDocument?l:c.host}e=o}if(function(e){var t,n,r,i,o=e&&s(e),a=null===(t=o)||void 0===t?void 0:t.host,l=!1;if(o&&o!==e)for(l=!!(null!==(n=a)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(a)||null!==e&&void 0!==e&&null!==(i=e.ownerDocument)&&void 0!==i&&i.contains(e));!l&&a;){var c,u,d;l=!(null===(u=a=null===(c=o=s(a))||void 0===c?void 0:c.host)||void 0===u||null===(d=u.ownerDocument)||void 0===d||!d.contains(a))}return l}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},y=function(e,t){return!(t.disabled||l(t)||function(e){return h(e)&&"hidden"===e.type}(t)||v(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!a.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},b=function(e,t){return!(m(t)||f(t)<0||!y(e,t))},w=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},x=function e(t){var n=[],r=[];return t.forEach((function(t,i){var o=!!t.scopeParent,a=o?t.scopeParent:t,s=function(e,t){var n=f(e);return n<0&&t&&!d(e)?0:n}(a,o),l=o?e(t.candidates):a;0===s?o?n.push.apply(n,l):n.push(a):r.push({documentOrder:i,tabIndex:s,item:t,isScope:o,content:l})})),r.sort(p).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},_=function(e,t){var n;return n=(t=t||{}).getShadowRoot?u([e],t.includeContainer,{filter:b.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:w}):c(e,t.includeContainer,b.bind(null,t)),x(n)},E=function(e,t){return(t=t||{}).getShadowRoot?u([e],t.includeContainer,{filter:y.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):c(e,t.includeContainer,y.bind(null,t))},S=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==a.call(e,i)&&b(t,e)},C=r.concat("iframe").join(","),k=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==a.call(e,C)&&y(t,e)}},83216:(e,t,n)=>{var r=n(17900),i=n(96294);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var o=t[n],a=e[o];t[n]=[o,a,r(a)]}return t}},83649:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},83791:e=>{"use strict";e.exports=function(e,t,n,r,i,o,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,o,a,s],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},84080:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(71765),t)},84100:(e,t,n)=>{var r=n(81382),i=n(63679),o=n(39450),a=n(66217),s=n(43261),l=n(19305),c=n(20368),u=n(91159),d="[object Arguments]",f="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,g,v){var y=l(e),b=l(t),w=y?f:s(e),x=b?f:s(t),_=(w=w==d?p:w)==p,E=(x=x==d?p:x)==p,S=w==x;if(S&&c(e)){if(!c(t))return!1;y=!0,_=!1}if(S&&!_)return v||(v=new r),y||u(e)?i(e,t,n,m,g,v):o(e,t,w,n,m,g,v);if(!(1&n)){var C=_&&h.call(e,"__wrapped__"),k=E&&h.call(t,"__wrapped__");if(C||k){var O=C?e.value():e,N=k?t.value():t;return v||(v=new r),g(O,N,n,m,v)}}return!!S&&(v||(v=new r),a(e,t,n,m,g,v))}},84363:(e,t,n)=>{"use strict";var r=n(55357);if(r)try{r([],"length")}catch(i){r=null}e.exports=r},84375:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var r=n(59284),i=n(81240),o=n(90826),a=n(84476),s=n(99991),l=n(39238),c=n(54245),u=n(27629);const d=(0,n(69220).om)("popover"),f=(e,t=!1)=>{switch(e){case"special":return t?"normal-contrast":"flat-contrast";case"announcement":return t?"normal-contrast":"outlined";default:return t?"normal":"flat"}},p=({theme:e,tooltipActionButton:t,tooltipCancelButton:n})=>t||n?r.createElement("div",{className:d("tooltip-buttons")},t&&r.createElement(a.$,{view:f(e,!0),width:"max",onClick:t.onClick,className:d("tooltip-button")},t.text),n&&r.createElement(a.$,{view:f(e,!1),width:"max",onClick:n.onClick,className:d("tooltip-button")},n.text)):null,h=({secondary:e,htmlContent:t,content:n,className:i})=>t||n?t?r.createElement("div",{className:d("tooltip-content",{secondary:e},i),dangerouslySetInnerHTML:{__html:t}}):n?r.createElement("div",{className:d("tooltip-content",{secondary:e},i)},n):null:null;var m=n(67884);const g=({links:e})=>0===e.length?null:r.createElement("div",{className:d("tooltip-links")},e.map(((e,t)=>{const{text:n,href:i,target:o="_blank",onClick:a}=e;return r.createElement(r.Fragment,{key:`link-${t}`},r.createElement(m.N,{href:i,target:o,onClick:a,className:d("tooltip-link")},n),r.createElement("br",null))})));var v=n(46734);const y=({open:e,openOnHover:t,disabled:n,className:i,openTooltip:o,closeTooltip:a,closedManually:s,onClick:l,children:c})=>{const u=async r=>{if(n||e&&t)return;if(!(!l||await l(r)))return;e?(a(),s.current=!0):(o(),s.current=!1)},{onKeyDown:d}=(0,v.N)(u);return"function"===typeof c?r.createElement(r.Fragment,null,c({onClick:u,onKeyDown:d,open:e})):r.createElement("div",{className:i,onClick:u,onKeyDown:l?d:void 0},c)};var b=n(63291);const w=({initialOpen:e,disabled:t,autoclosable:n,onOpenChange:i,delayOpening:o,delayClosing:a,behavior:s,shouldBeOpen:l})=>{const c=r.useRef(null),u=r.useRef(null),[d,f]=r.useState(e),p=r.useCallback((()=>{c.current&&(clearTimeout(c.current),c.current=null)}),[]),h=r.useCallback((()=>{u.current&&(clearTimeout(u.current),u.current=null)}),[]);r.useEffect((()=>()=>{p(),h()}),[h,p]);const m=r.useCallback((e=>{f(e),l.current=e,null===i||void 0===i||i(e)}),[i,l]),g=r.useCallback((()=>{p(),m(!0)}),[m,p]),v=r.useCallback((()=>{h(),m(!1)}),[m,h]);r.useEffect((()=>{t&&v()}),[t,v]),((e,t)=>{const n=r.useRef(!0);r.useEffect((()=>{n.current?n.current=!1:e()}),t)})((()=>{n&&!l.current&&v()}),[n,v,l]);const[y,w]=b.J[s],x=r.useCallback((()=>{c.current=setTimeout((()=>{c.current=null,g()}),null!==o&&void 0!==o?o:y)}),[y,o,g]),_=r.useCallback((()=>{u.current=setTimeout((()=>{u.current=null,v()}),null!==a&&void 0!==a?a:w)}),[v,w,a]);return{isOpen:d,closingTimeout:u,openTooltip:g,openTooltipDelayed:x,unsetOpeningTimeout:p,closeTooltip:v,closeTooltipDelayed:_,unsetClosingTimeout:h}},x=r.forwardRef((function({initialOpen:e=!1,disabled:t=!1,autoclosable:n=!0,openOnHover:f=!0,delayOpening:m,delayClosing:v,behavior:x=b.m.Delayed,placement:_,offset:E={},tooltipOffset:S,tooltipClassName:C,tooltipContentClassName:k,theme:O="info",size:N="s",hasArrow:T=!0,hasClose:A=!1,className:I,children:P,title:R,content:D,htmlContent:j,contentClassName:M,links:L,forceLinksAppearance:z=!1,tooltipActionButton:F,tooltipCancelButton:B,onOpenChange:U,onCloseClick:q,onClick:$,anchorRef:H,strategy:V,qa:W,disablePortal:K=!1,tooltipId:G,focusTrap:Y,autoFocus:Q,restoreFocusRef:Z,modifiers:J},X){const ee=(0,c.j)(),te=r.useRef(null),ne=r.useRef(!1),re=r.useRef(e),{isOpen:ie,closingTimeout:oe,openTooltip:ae,openTooltipDelayed:se,unsetOpeningTimeout:le,closeTooltip:ce,closeTooltipDelayed:ue,unsetClosingTimeout:de}=w({initialOpen:e,disabled:t,autoclosable:n,onOpenChange:U,delayOpening:m,delayClosing:v,behavior:x,shouldBeOpen:re}),fe=r.useMemo((()=>_||("rtl"===ee?["left","bottom"]:["right","bottom"])),[ee,_]);r.useImperativeHandle(X,(()=>({openTooltip:ae,closeTooltip:ce})),[ae,ce]);const pe=Boolean(R),he=`popover-${null!==G&&void 0!==G?G:""}-title-${(0,o.u)()}`,me=r.createElement(l.z,{id:G,role:f?"tooltip":"dialog",strategy:V,anchorRef:H||te,className:d("tooltip",{theme:O,size:N,"with-close":A,"force-links-appearance":z},C),contentClassName:d("tooltip-popup-content",k),open:ie,placement:fe,hasArrow:T,offset:S,onClose:H?void 0:ce,qa:W?`${W}-tooltip`:"",disablePortal:K,focusTrap:Y,autoFocus:Q,restoreFocus:!0,restoreFocusRef:Z||te,modifiers:J,"aria-labelledby":R?he:void 0},r.createElement(r.Fragment,null,R&&r.createElement("h3",{id:he,className:d("tooltip-title")},R),r.createElement(h,{secondary:!!pe&&"announcement"!==O,content:D,htmlContent:j,className:M}),L&&r.createElement(g,{links:L}),r.createElement(p,{theme:O,tooltipActionButton:F,tooltipCancelButton:B}),A&&r.createElement("div",{className:d("tooltip-close")},r.createElement(a.$,{size:"s",view:"flat-secondary",onClick:async e=>{ce(),null===q||void 0===q||q(e)},extraProps:{"aria-label":"Close"}},r.createElement(s.I,{data:i.A,size:16})))));if(H)return me;const ge=()=>{de(),ie||t||ne.current?re.current=!0:se()},ve=()=>{!n||ne.current||oe.current?re.current=!1:(le(),ue()),ne.current=!1};return!E||"number"!==typeof E.top&&"number"!==typeof E.left||(0,u.m)('[Popover] Physical names (top, left) of "offset" property are deprecated. Use logical names (block, inline) instead.'),r.createElement("div",{ref:te,className:d({disabled:t},I),onMouseEnter:f?ge:void 0,onMouseLeave:f?ve:void 0,onFocus:f?ge:void 0,onBlur:f?ve:void 0,style:{top:E.top,left:E.left,insetBlockStart:E.block,insetInlineStart:E.inline},"data-qa":W},r.createElement(y,{closeTooltip:ce,openTooltip:ae,open:ie,openOnHover:f,className:d("handler"),disabled:t,onClick:$,closedManually:ne},P),me)}));x.displayName="Popover"},84401:(e,t,n)=>{var r=n(31693)();e.exports=r},84405:(e,t,n)=>{const r=n(22750),i=n(53577),o=n(53683),a=n(90044),s=n(76941),l=n(56932),c=n(98220),u=n(38198),d=n(78212),f=n(15227),p=n(26237),h=n(71928),m=n(99105);function g(e,t,n){const r=e.size,i=p.getEncodedBits(t,n);let o,a;for(o=0;o<15;o++)a=1===(i>>o&1),o<6?e.set(o,8,a,!0):o<8?e.set(o+1,8,a,!0):e.set(r-15+o,8,a,!0),o<8?e.set(8,r-o-1,a,!0):o<9?e.set(8,15-o-1+1,a,!0):e.set(8,15-o-1,a,!0);e.set(r-8,8,1,!0)}function v(e,t,n){const i=new o;n.forEach((function(t){i.put(t.mode.bit,4),i.put(t.getLength(),h.getCharCountIndicator(t.mode,e)),t.write(i)}));const a=8*(r.getSymbolTotalCodewords(e)-u.getTotalCodewordsCount(e,t));for(i.getLengthInBits()+4<=a&&i.put(0,4);i.getLengthInBits()%8!==0;)i.putBit(0);const s=(a-i.getLengthInBits())/8;for(let r=0;r<s;r++)i.put(r%2?17:236,8);return function(e,t,n){const i=r.getSymbolTotalCodewords(t),o=u.getTotalCodewordsCount(t,n),a=i-o,s=u.getBlocksCount(t,n),l=i%s,c=s-l,f=Math.floor(i/s),p=Math.floor(a/s),h=p+1,m=f-p,g=new d(m);let v=0;const y=new Array(s),b=new Array(s);let w=0;const x=new Uint8Array(e.buffer);for(let r=0;r<s;r++){const e=r<c?p:h;y[r]=x.slice(v,v+e),b[r]=g.encode(y[r]),v+=e,w=Math.max(w,e)}const _=new Uint8Array(i);let E,S,C=0;for(E=0;E<w;E++)for(S=0;S<s;S++)E<y[S].length&&(_[C++]=y[S][E]);for(E=0;E<m;E++)for(S=0;S<s;S++)_[C++]=b[S][E];return _}(i,e,t)}function y(e,t,n,i){let o;if(Array.isArray(e))o=m.fromArray(e);else{if("string"!==typeof e)throw new Error("Invalid data");{let r=t;if(!r){const t=m.rawSplit(e);r=f.getBestVersionForData(t,n)}o=m.fromString(e,r||40)}}const u=f.getBestVersionForData(o,n);if(!u)throw new Error("The amount of data is too big to be stored in a QR Code");if(t){if(t<u)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+u+".\n")}else t=u;const d=v(t,n,o),p=r.getSymbolSize(t),h=new a(p);return function(e,t){const n=e.size,r=l.getPositions(t);for(let i=0;i<r.length;i++){const t=r[i][0],o=r[i][1];for(let r=-1;r<=7;r++)if(!(t+r<=-1||n<=t+r))for(let i=-1;i<=7;i++)o+i<=-1||n<=o+i||(r>=0&&r<=6&&(0===i||6===i)||i>=0&&i<=6&&(0===r||6===r)||r>=2&&r<=4&&i>=2&&i<=4?e.set(t+r,o+i,!0,!0):e.set(t+r,o+i,!1,!0))}}(h,t),function(e){const t=e.size;for(let n=8;n<t-8;n++){const t=n%2===0;e.set(n,6,t,!0),e.set(6,n,t,!0)}}(h),function(e,t){const n=s.getPositions(t);for(let r=0;r<n.length;r++){const t=n[r][0],i=n[r][1];for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)-2===n||2===n||-2===r||2===r||0===n&&0===r?e.set(t+n,i+r,!0,!0):e.set(t+n,i+r,!1,!0)}}(h,t),g(h,n,0),t>=7&&function(e,t){const n=e.size,r=f.getEncodedBits(t);let i,o,a;for(let s=0;s<18;s++)i=Math.floor(s/3),o=s%3+n-8-3,a=1===(r>>s&1),e.set(i,o,a,!0),e.set(o,i,a,!0)}(h,t),function(e,t){const n=e.size;let r=-1,i=n-1,o=7,a=0;for(let s=n-1;s>0;s-=2)for(6===s&&s--;;){for(let n=0;n<2;n++)if(!e.isReserved(i,s-n)){let r=!1;a<t.length&&(r=1===(t[a]>>>o&1)),e.set(i,s-n,r),o--,-1===o&&(a++,o=7)}if(i+=r,i<0||n<=i){i-=r,r=-r;break}}}(h,d),isNaN(i)&&(i=c.getBestMask(h,g.bind(null,h,n))),c.applyMask(i,h),g(h,n,i),{modules:h,version:t,errorCorrectionLevel:n,maskPattern:i,segments:o}}t.create=function(e,t){if("undefined"===typeof e||""===e)throw new Error("No input text");let n,o,a=i.M;return"undefined"!==typeof t&&(a=i.from(t.errorCorrectionLevel,i.M),n=f.from(t.version),o=c.from(t.maskPattern),t.toSJISFunc&&r.setToSJISFunction(t.toSJISFunc)),y(e,n,a,o)}},84476:(e,t,n)=>{"use strict";n.d(t,{$:()=>m});var r=n(59284),i=n(69220),o=n(10176),a=n(11669),s=n(41668),l=n(27629);const c=(0,i.om)("button");function u(){(0,l.m)('[Button.Icon] Physical values (left, right) of "side" property are deprecated. Use logical values (start, end) instead.')}const d=({side:e,className:t,children:n})=>r.createElement("span",{className:c("icon",{side:f(e)},t)},r.createElement("span",{className:c("icon-inner")},n));function f(e){let t=e;return"left"===t&&(u(),t="start"),"right"===t&&(u(),t="end"),t}d.displayName="Button.Icon";const p=(0,i.om)("button"),h=r.forwardRef((function({view:e="normal",size:t="m",pin:n="round-round",selected:i,disabled:o=!1,loading:s=!1,width:l,title:c,tabIndex:u,type:d="button",component:f,href:h,target:m,rel:g,extraProps:v,onClick:y,onMouseEnter:w,onMouseLeave:x,onFocus:_,onBlur:E,children:S,id:C,style:k,className:O,qa:N},T){const A={title:c,tabIndex:u,onClick:y,onClickCapture:r.useCallback((t=>{a.o.publish({componentId:"Button",eventId:"click",domEvent:t,meta:{content:t.currentTarget.textContent,view:e}})}),[e]),onMouseEnter:w,onMouseLeave:x,onFocus:_,onBlur:E,id:C,style:k,className:p({view:e,size:t,pin:n,selected:i,disabled:o||s,loading:s,width:l},O),"data-qa":N};if("string"===typeof h||f){const e={href:h,target:m,rel:"_blank"!==m||g?g:"noopener noreferrer"};return r.createElement(f||"a",Object.assign(Object.assign(Object.assign(Object.assign({},v),A),f?{}:e),{ref:T,"aria-disabled":o||s}),b(S))}return r.createElement("button",Object.assign({},v,A,{ref:T,type:d,disabled:o||s,"aria-pressed":i}),b(S))}));h.displayName="Button";const m=Object.assign(h,{Icon:d}),g=(0,s.g)(d),v=(0,s.g)("span"),y=RegExp(`^${p("icon")}($|\\s+\\w)`);function b(e){const t=r.Children.toArray(e);if(1===t.length){const e=t[0];return g(e)||v(e)&&y.test(e.props.className||"")?e:(0,o.If)(e)||(0,o.$D)(e)?r.createElement(m.Icon,{key:"icon"},e):r.createElement("span",{key:"text",className:p("text")},e)}{let e,n,i;const a=[];for(const s of t){const t=(0,o.If)(s)||(0,o.$D)(s),i=g(s),l=v(s)&&y.test(s.props.className||"");if(t||i||l)if(e||0!==a.length){if(!n&&0!==a.length){const e="icon-end",o="end";n=t?r.createElement(m.Icon,{key:e,side:o},s):i?r.cloneElement(s,{side:o}):r.cloneElement(s,{className:p("icon",{side:f(o)},s.props.className)})}}else{const n="icon-start",o="start";e=t?r.createElement(m.Icon,{key:n,side:o},s):i?r.cloneElement(s,{side:o}):r.cloneElement(s,{className:p("icon",{side:f(o)},s.props.className)})}else a.push(s)}return a.length>0&&(i=r.createElement("span",{key:"text",className:p("text")},a)),[e,n,i]}}},84579:(e,t,n)=>{var r=n(36738),i=n(31016),o=n(38469),a=n(45865),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,f=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?f:s).test(a(e))}},84711:e=>{e.exports=function(){return!1}},85191:(e,t,n)=>{var r=n(8543),i=n(83216),o=n(89157);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},85406:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},85532:(e,t,n)=>{var r=n(537),i=n(54380),o=n(19305),a=n(60242),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},85589:(e,t,n)=>{"use strict";n.d(t,{d:()=>s});var r=n(59284),i=n(64222),o=n(46898);const a=(0,n(69220).om)("switch"),s=r.forwardRef((function(e,t){const{size:n="m",disabled:s=!1,content:l,children:c,title:u,style:d,className:f,qa:p}=e,{checked:h,inputProps:m}=(0,i.v)(Object.assign(Object.assign({},e),{controlProps:Object.assign(Object.assign({},e.controlProps),{role:"switch"})})),g=l||c,v=r.createElement("span",{className:a("indicator")},r.createElement("input",Object.assign({},m,{className:a("control")})),r.createElement("span",{className:a("outline")}),r.createElement("span",{className:a("slider")}));return r.createElement(o.m,{ref:t,title:u,style:d,size:n,disabled:s,className:a({size:n,disabled:s,checked:h},f),labelClassName:a("text"),qa:p,control:v},g)}))},85651:(e,t,n)=>{var r=n(19058);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},85736:(e,t,n)=>{"use strict";n.d(t,{P:()=>i});var r=n(59284);function i(e,t,n){const[i,o]=r.useState(null!==e&&void 0!==e?e:t),a=r.useRef(void 0!==e),s=void 0!==e;r.useEffect((()=>{const e=a.current;e!==s&&console.error(`[useControlledState] A component changed from ${e?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),a.current=s}),[s]);let l=s?e:i;const c=r.useCallback(((e,...t)=>{Object.is(l,e)||null===n||void 0===n||n(e,...t),s||(l=e,o(e))}),[s,n,l]);return[l,c]}},86173:(e,t,n)=>{"use strict";var r=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=n(35711);e.exports=o.call(r,i)},86540:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.typeHandles=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){i=!0,o=l}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=n(49526),o=n(93650);function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}t.typeHandles={number:{serialize:function(e,t){return e.toString()},parse:function(e,t){return parseFloat(e)}},date:{serialize:function(e,t){return e.toISOString().substring(0,10)},parse:function(e,t){return new Date(e)}},array:{serialize:function(e,t){return(t.keepOrder?[].concat(a(e)):[].concat(a(e)).sort()).join(t.delimiter||i.OBJECT_KEY_DELIMITER)},parse:function(e,t){return(0,o.paramDecoder)(e).split(t.delimiter||i.OBJECT_KEY_DELIMITER)}},bool:{serialize:function(e,t){return e.toString()},parse:function(e,t){return"true"===e}},object:{serialize:function(e,t){return t.isFlags?Object.keys(e).filter((function(t,n){return e[t]})).join(i.OBJECT_KEY_DELIMITER):Object.keys(e).sort().map((function(t,n){return""+t+i.OBJECT_KEY_DELIMITER+e[t]}))},parse:function(e,t){return t.isFlags?e.split(t.delimiter||i.OBJECT_KEY_DELIMITER).reduce((function(e,t){return""===t||(e[t]=!0),e}),{}):(0,o.paramDecoder)(e).split(",").reduce((function(e,t){var n=t.split(i.OBJECT_KEY_DELIMITER),o=r(n,2),a=o[0],s=o[1];return e[a]=s,e}),{})}}}},86849:(e,t,n)=>{const r=n(87523);t.mul=function(e,t){const n=new Uint8Array(e.length+t.length-1);for(let i=0;i<e.length;i++)for(let o=0;o<t.length;o++)n[i+o]^=r.mul(e[i],t[o]);return n},t.mod=function(e,t){let n=new Uint8Array(e);for(;n.length-t.length>=0;){const e=n[0];for(let o=0;o<t.length;o++)n[o]^=r.mul(t[o],e);let i=0;for(;i<n.length&&0===n[i];)i++;n=n.slice(i)}return n},t.generateECPolynomial=function(e){let n=new Uint8Array([1]);for(let i=0;i<e;i++)n=t.mul(n,new Uint8Array([1,r.exp(i)]));return n}},87184:(e,t,n)=>{"use strict";n.d(t,{s:()=>u});var r=n(27145),i=n(59284),o=n(69220),a=n(9296),s=n(69033),l=n(8944);const c=(0,o.om)("flex"),u=i.forwardRef((function(e,t){const{as:n,direction:o,grow:u,basis:d,children:f,style:p,alignContent:h,alignItems:m,alignSelf:g,justifyContent:v,justifyItems:y,justifySelf:b,shrink:w,wrap:x,inline:_,gap:E,gapRow:S,className:C,space:k,centerContent:O}=e,N=(0,r.Tt)(e,["as","direction","grow","basis","children","style","alignContent","alignItems","alignSelf","justifyContent","justifyItems","justifySelf","shrink","wrap","inline","gap","gapRow","className","space","centerContent"]),T=n||"div",{getClosestMediaProps:A,theme:{spaceBaseSize:I}}=(0,s.L)(),P=e=>"object"===typeof e&&null!==e?A(e):e,R=P(E),D=R?I*Number(R):void 0,j=P(S)||R,M=j?I*Number(j):void 0,L=P(k),z=E||S||!L?void 0:(0,l.si)(L);return i.createElement(a.a,Object.assign({as:T,className:c({"center-content":O,inline:_,s:z},C),ref:t,style:Object.assign({flexDirection:P(o),flexGrow:!0===u?1:u,flexWrap:!0===x?"wrap":x,flexBasis:d,flexShrink:w,columnGap:D,rowGap:M,alignContent:P(h),alignItems:P(m),alignSelf:P(g),justifyContent:P(v),justifyItems:P(y),justifySelf:P(b)},p)},N),k?i.Children.map(f,(e=>e?i.createElement("div",{className:c("wr")},e):e)):f)}))},87232:(e,t,n)=>{var r=n(68414),i=n(57741),o=n(73073),a=o&&o.isSet,s=a?i(a):r;e.exports=s},87523:(e,t)=>{const n=new Uint8Array(512),r=new Uint8Array(256);!function(){let e=1;for(let t=0;t<255;t++)n[t]=e,r[e]=t,e<<=1,256&e&&(e^=285);for(let t=255;t<512;t++)n[t]=n[t-255]}(),t.log=function(e){if(e<1)throw new Error("log("+e+")");return r[e]},t.exp=function(e){return n[e]},t.mul=function(e,t){return 0===e||0===t?0:n[r[e]+r[t]]}},87747:(e,t,n)=>{"use strict";n.d(t,{h:()=>r});let r=function(e){return e.Immediate="immediate",e.History="history",e}({})},87842:(e,t,n)=>{"use strict";n.d(t,{Bi:()=>i,a:()=>f,bn:()=>u,eC:()=>d});var r=n(92459);const i={overview:"overview",tenants:"tenants",nodes:"nodes",storage:"storage",versions:"versions",tablets:"tablets"},o={id:i.overview,title:"Overview"},a={id:i.tenants,title:"Databases"},s={id:i.nodes,title:"Nodes"},l={id:i.storage,title:"Storage"},c={id:i.versions,title:"Versions"},u=[o,a,s,l,{id:i.tablets,title:"Tablets"},c];function d(e){return Object.values(i).includes(e)}const f=(e,t={})=>(0,r.KY)(r.Ay.cluster,e?{activeTab:e}:void 0,t)},87924:(e,t,n)=>{var r=n(43238);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},88118:(e,t,n)=>{var r=n(36738),i=n(72078);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},88409:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,n=36e5,r="millisecond",i="second",o="minute",a="hour",s="day",l="week",c="month",u="quarter",d="year",f="date",p="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},v=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+v(r,2,"0")+":"+v(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,c),o=n-i<0,a=t.clone().add(r+(o?-1:1),c);return+(-(r+(n-i)/(o?i-a:a-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:d,w:l,d:s,D:f,h:a,m:o,s:i,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",w={};w[b]=g;var x="$isDayjsObject",_=function(e){return e instanceof k||!(!e||!e[x])},E=function e(t,n,r){var i;if(!t)return b;if("string"==typeof t){var o=t.toLowerCase();w[o]&&(i=o),n&&(w[o]=n,i=o);var a=t.split("-");if(!i&&a.length>1)return e(a[0])}else{var s=t.name;w[s]=t,i=s}return!r&&i&&(b=i),i||!r&&b},S=function(e,t){if(_(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new k(n)},C=y;C.l=E,C.i=_,C.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var k=function(){function g(e){this.$L=E(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var v=g.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(C.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(h);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return C},v.isValid=function(){return!(this.$d.toString()===p)},v.isSame=function(e,t){var n=S(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return S(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<S(e)},v.$g=function(e,t,n){return C.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,r=!!C.u(t)||t,u=C.p(e),p=function(e,t){var i=C.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},h=function(e,t){return C.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,g=this.$M,v=this.$D,y="set"+(this.$u?"UTC":"");switch(u){case d:return r?p(1,0):p(31,11);case c:return r?p(1,g):p(0,g+1);case l:var b=this.$locale().weekStart||0,w=(m<b?m+7:m)-b;return p(r?v-w:v+(6-w),g);case s:case f:return h(y+"Hours",0);case a:return h(y+"Minutes",1);case o:return h(y+"Seconds",2);case i:return h(y+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var n,l=C.p(e),u="set"+(this.$u?"UTC":""),p=(n={},n[s]=u+"Date",n[f]=u+"Date",n[c]=u+"Month",n[d]=u+"FullYear",n[a]=u+"Hours",n[o]=u+"Minutes",n[i]=u+"Seconds",n[r]=u+"Milliseconds",n)[l],h=l===s?this.$D+(t-this.$W):t;if(l===c||l===d){var m=this.clone().set(f,1);m.$d[p](h),m.init(),this.$d=m.set(f,Math.min(this.$D,m.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[C.p(e)]()},v.add=function(r,u){var f,p=this;r=Number(r);var h=C.p(u),m=function(e){var t=S(p);return C.w(t.date(t.date()+Math.round(e*r)),p)};if(h===c)return this.set(c,this.$M+r);if(h===d)return this.set(d,this.$y+r);if(h===s)return m(1);if(h===l)return m(7);var g=(f={},f[o]=t,f[a]=n,f[i]=e,f)[h]||1,v=this.$d.getTime()+r*g;return C.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=C.z(this),o=this.$H,a=this.$m,s=this.$M,l=n.weekdays,c=n.months,u=n.meridiem,d=function(e,n,i,o){return e&&(e[n]||e(t,r))||i[n].slice(0,o)},f=function(e){return C.s(o%12||12,e,"0")},h=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(m,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return C.s(t.$y,4,"0");case"M":return s+1;case"MM":return C.s(s+1,2,"0");case"MMM":return d(n.monthsShort,s,c,3);case"MMMM":return d(c,s);case"D":return t.$D;case"DD":return C.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,l,2);case"ddd":return d(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(o);case"HH":return C.s(o,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return h(o,a,!0);case"A":return h(o,a,!1);case"m":return String(a);case"mm":return C.s(a,2,"0");case"s":return String(t.$s);case"ss":return C.s(t.$s,2,"0");case"SSS":return C.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(r,f,p){var h,m=this,g=C.p(f),v=S(r),y=(v.utcOffset()-this.utcOffset())*t,b=this-v,w=function(){return C.m(m,v)};switch(g){case d:h=w()/12;break;case c:h=w();break;case u:h=w()/3;break;case l:h=(b-y)/6048e5;break;case s:h=(b-y)/864e5;break;case a:h=b/n;break;case o:h=b/t;break;case i:h=b/e;break;default:h=b}return p?h:C.a(h)},v.daysInMonth=function(){return this.endOf(c).$D},v.$locale=function(){return w[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=E(e,t,!0);return r&&(n.$L=r),n},v.clone=function(){return C.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},g}(),O=k.prototype;return S.prototype=O,[["$ms",r],["$s",i],["$m",o],["$H",a],["$W",s],["$M",c],["$y",d],["$D",f]].forEach((function(e){O[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),S.extend=function(e,t){return e.$i||(e(t,k,S),e.$i=!0),S},S.locale=E,S.isDayjs=_,S.unix=function(e){return S(1e3*e)},S.en=w[b],S.Ls=w,S.p={},S}()},88610:(e,t,n)=>{"use strict";n.d(t,{$u:()=>d,Ay:()=>g,CN:()=>f,N8:()=>m,gc:()=>h,s$:()=>a,ue:()=>c,yV:()=>p});var r=n(97091),i=n(59001),o=n(41650);const a={ALL:"All",PROBLEMS:"With problems"},s=i.f.extractSettingsFromLS(i.c),l=window.systemSettings||{},c={problemFilter:a.ALL,userSettings:s,systemSettings:l},u=(0,r.Z0)({name:"settings",initialState:c,reducers:e=>({changeFilter:e.reducer(((e,t)=>{e.problemFilter=t.payload})),setSettingValue:e.reducer(((e,t)=>{e.userSettings[t.payload.name]=t.payload.value}))}),selectors:{getSettingValue:(e,t)=>e.userSettings[t],selectProblemFilter:e=>e.problemFilter}}),{changeFilter:d}=u.actions,{getSettingValue:f,selectProblemFilter:p}=u.selectors,h=(e,t)=>n=>{n(u.actions.setSettingValue({name:e,value:t})),i.f.setUserSettingsValue(e,t)};function m(e){"undefined"!==typeof window&&window.addEventListener("storage",(t=>{if(t.key&&t.key in i.c){const n=t.key;let r=i.c[n];null!==t.newValue&&(r=(0,o.qF)(t.newValue)),e.dispatch(u.actions.setSettingValue({name:n,value:r}))}}))}const g=u.reducer},88655:(e,t,n)=>{"use strict";n.d(t,{E:()=>u});var r=n(67157),i=n(58351),o=n(77630);const a=(e=i.Hs,t)=>({getNodeRef:(n={})=>(0,o.Vk)(n,null!==e&&void 0!==e?e:"",t)});var s=n(76086),l=n(80967),c=n(75022);function u(){const{balancer:e}=(0,r.Zd)(),[t]=(0,l.i)(s.s2),n=(0,c.N)((e=>e.singleClusterMode)),i=a(e,t);return n?void 0:i}},88730:(e,t,n)=>{"use strict";e.exports=n(6032)},89157:e=>{e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},89728:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},89875:e=>{e.exports=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}},89990:(e,t,n)=>{const r=n(71928);function i(e){this.mode=r.BYTE,this.data="string"===typeof e?(new TextEncoder).encode(e):new Uint8Array(e)}i.getBitsLength=function(e){return 8*e},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)},e.exports=i},90035:(e,t,n)=>{var r=n(97269),i=n(67596),o=n(78475);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},90044:e=>{function t(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}t.prototype.set=function(e,t,n,r){const i=e*this.size+t;this.data[i]=n,r&&(this.reservedBit[i]=!0)},t.prototype.get=function(e,t){return this.data[e*this.size+t]},t.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},t.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=t},90182:(e,t,n)=>{"use strict";n.d(t,{JN:()=>s.JN,Nt:()=>f,A5:()=>h,XS:()=>a.X,e4:()=>u,iK:()=>o.i,GY:()=>s.GY,YQ:()=>i.Y,N4:()=>r.N});var r=n(75022),i=n(51533),o=n(80967),a=n(95312),s=n(959),l=n(10755),c=n(92459);const u=()=>{const e=(0,l.zy)();return(0,c.mA)(e)};var d=n(76086);function f(){return(0,o.i)(d.av,0)}var p=n(59284);function h(e){const t=p.useRef(e);return p.useLayoutEffect((()=>{t.current=e}),[e]),p.useCallback(((...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}},90308:(e,t,n)=>{"use strict";var r=n(94701),i=n(31886),o=i([r("%String.prototype.indexOf%")]);e.exports=function(e,t){var n=r(e,!!t);return"function"===typeof n&&o(e,".prototype.")>-1?i([n]):n}},90552:(e,t,n)=>{var r=n(61872),i=n(88118),o=n(83649),a=n(38469);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?i(n)&&o(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},90565:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,f1:()=>c,nd:()=>l,ue:()=>o});var r=n(97091),i=n(21334);const o={currentMetric:void 0,sort:!1,heatmap:!1},a=(0,r.Z0)({name:"heatmap",initialState:o,reducers:{setHeatmapOptions:(e,t)=>({...e,...t.payload})}}),s=a.reducer,{setHeatmapOptions:l}=a.actions,c=i.F.injectEndpoints({endpoints:e=>({getHeatmapTabletsInfo:e.query({queryFn:async({path:e,database:t},{signal:n,getState:r,dispatch:i})=>{try{var o;const a=function([e,t]){const{TabletStateInfo:n=[]}=e,r=new Map,{PathDescription:i={}}=null!==t&&void 0!==t?t:{},{TablePartitions:o=[],TablePartitionStats:a=[],TablePartitionMetrics:s=[]}=i;n.forEach((e=>{e.TabletId&&r.set(e.TabletId,e)})),o.forEach(((e,t)=>{const n=Object.assign({},a[t],s[t]);e.DatashardId&&r.set(e.DatashardId,{...r.get(e.DatashardId),metrics:n})}));const l=Array.from(r.values()),c=l[0]&&l[0].metrics&&Object.keys(l[0].metrics).map((e=>({value:e,content:e})));return{tablets:l,metrics:c}}(await Promise.all([window.api.viewer.getTabletsInfo({path:e,database:t},{signal:n}),window.api.viewer.getHeatmapData({path:e,database:t},{signal:n})]));if(null!==(o=a.metrics)&&void 0!==o&&o.length){const e=r().heatmap.currentMetric;e&&a.metrics.find((t=>t.value===e))||i(l({currentMetric:a.metrics[0].value}))}return{data:a}}catch(a){return{error:a}}},providesTags:["All"]})}),overrideExisting:"throw"})},90754:(e,t,n)=>{"use strict";n.d(t,{$i:()=>Z,Qx:()=>l,YT:()=>K,a6:()=>c,c2:()=>f,jM:()=>Y,vI:()=>Q});var r=Symbol.for("immer-nothing"),i=Symbol.for("immer-draftable"),o=Symbol.for("immer-state");function a(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var s=Object.getPrototypeOf;function l(e){return!!e&&!!e[o]}function c(e){return!!e&&(d(e)||Array.isArray(e)||!!e[i]||!!e.constructor?.[i]||y(e)||b(e))}var u=Object.prototype.constructor.toString();function d(e){if(!e||"object"!==typeof e)return!1;const t=s(e);if(null===t)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===u}function f(e){return l(e)||a(15),e[o].base_}function p(e,t){0===h(e)?Reflect.ownKeys(e).forEach((n=>{t(n,e[n],e)})):e.forEach(((n,r)=>t(r,n,e)))}function h(e){const t=e[o];return t?t.type_:Array.isArray(e)?1:y(e)?2:b(e)?3:0}function m(e,t){return 2===h(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function g(e,t){return 2===h(e)?e.get(t):e[t]}function v(e,t,n){const r=h(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function y(e){return e instanceof Map}function b(e){return e instanceof Set}function w(e){return e.copy_||e.base_}function x(e,t){if(y(e))return new Map(e);if(b(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=d(e);if(!0===t||"class_only"===t&&!n){const t=Object.getOwnPropertyDescriptors(e);delete t[o];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){const i=n[r],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(s(e),t)}{const t=s(e);if(null!==t&&n)return{...e};const r=Object.create(t);return Object.assign(r,e)}}function _(e,t=!1){return S(e)||l(e)||!c(e)||(h(e)>1&&(e.set=e.add=e.clear=e.delete=E),Object.freeze(e),t&&Object.entries(e).forEach((([e,t])=>_(t,!0)))),e}function E(){a(2)}function S(e){return Object.isFrozen(e)}var C,k={};function O(e){const t=k[e];return t||a(0),t}function N(e,t){k[e]||(k[e]=t)}function T(){return C}function A(e,t){t&&(O("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function I(e){P(e),e.drafts_.forEach(D),e.drafts_=null}function P(e){e===C&&(C=e.parent_)}function R(e){return C={drafts_:[],parent_:C,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function D(e){const t=e[o];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function j(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[o].modified_&&(I(t),a(4)),c(e)&&(e=M(t,e),t.parent_||z(t,e)),t.patches_&&O("Patches").generateReplacementPatches_(n[o].base_,e,t.patches_,t.inversePatches_)):e=M(t,n,[]),I(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==r?e:void 0}function M(e,t,n){if(S(t))return t;const r=t[o];if(!r)return p(t,((i,o)=>L(e,r,t,i,o,n))),t;if(r.scope_!==e)return t;if(!r.modified_)return z(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let i=t,o=!1;3===r.type_&&(i=new Set(t),t.clear(),o=!0),p(i,((i,a)=>L(e,r,t,i,a,n,o))),z(e,t,!1),n&&e.patches_&&O("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function L(e,t,n,r,i,o,a){if(l(i)){const a=M(e,i,o&&t&&3!==t.type_&&!m(t.assigned_,r)?o.concat(r):void 0);if(v(n,r,a),!l(a))return;e.canAutoFreeze_=!1}else a&&n.add(i);if(c(i)&&!S(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;M(e,i),t&&t.scope_.parent_||"symbol"===typeof r||!Object.prototype.propertyIsEnumerable.call(n,r)||z(e,i)}}function z(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&_(t,n)}var F={get(e,t){if(t===o)return e;const n=w(e);if(!m(n,t))return function(e,t,n){const r=q(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}(e,n,t);const r=n[t];return e.finalized_||!c(r)?r:r===U(e.base_,t)?(H(e),e.copy_[t]=V(r,e)):r},has:(e,t)=>t in w(e),ownKeys:e=>Reflect.ownKeys(w(e)),set(e,t,n){const r=q(w(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=U(w(e),t),s=r?.[o];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(((i=n)===(a=r)?0!==i||1/i===1/a:i!==i&&a!==a)&&(void 0!==n||m(e.base_,t)))return!0;H(e),$(e)}var i,a;return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==U(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,H(e),$(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=w(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty(){a(11)},getPrototypeOf:e=>s(e.base_),setPrototypeOf(){a(12)}},B={};function U(e,t){const n=e[o];return(n?w(n):e)[t]}function q(e,t){if(!(t in e))return;let n=s(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=s(n)}}function $(e){e.modified_||(e.modified_=!0,e.parent_&&$(e.parent_))}function H(e){e.copy_||(e.copy_=x(e.base_,e.scope_.immer_.useStrictShallowCopy_))}p(F,((e,t)=>{B[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),B.deleteProperty=function(e,t){return B.set.call(this,e,t,void 0)},B.set=function(e,t,n){return F.set.call(this,e[0],t,n,e[0])};function V(e,t){const n=y(e)?O("MapSet").proxyMap_(e,t):b(e)?O("MapSet").proxySet_(e,t):function(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:T(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=F;n&&(i=[r],o=B);const{revoke:a,proxy:s}=Proxy.revocable(i,o);return r.draft_=s,r.revoke_=a,s}(e,t);return(t?t.scope_:T()).drafts_.push(n),n}function W(e){if(!c(e)||S(e))return e;const t=e[o];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=x(e,t.scope_.immer_.useStrictShallowCopy_)}else n=x(e,!0);return p(n,((e,t)=>{v(n,e,W(t))})),t&&(t.finalized_=!1),n}function K(){const e="replace",t="add",n="remove";function o(e){if(!c(e))return e;if(Array.isArray(e))return e.map(o);if(y(e))return new Map(Array.from(e.entries()).map((([e,t])=>[e,o(t)])));if(b(e))return new Set(Array.from(e).map(o));const t=Object.create(s(e));for(const n in e)t[n]=o(e[n]);return m(e,i)&&(t[i]=e[i]),t}function u(e){return l(e)?o(e):e}N("Patches",{applyPatches_:function(r,i){return i.forEach((i=>{const{path:s,op:l}=i;let c=r;for(let e=0;e<s.length-1;e++){const t=h(c);let n=s[e];"string"!==typeof n&&"number"!==typeof n&&(n=""+n),0!==t&&1!==t||"__proto__"!==n&&"constructor"!==n||a(19),"function"===typeof c&&"prototype"===n&&a(19),c=g(c,n),"object"!==typeof c&&a(18,s.join("/"))}const u=h(c),d=o(i.value),f=s[s.length-1];switch(l){case e:switch(u){case 2:return c.set(f,d);case 3:a(16);default:return c[f]=d}case t:switch(u){case 1:return"-"===f?c.push(d):c.splice(f,0,d);case 2:return c.set(f,d);case 3:return c.add(d);default:return c[f]=d}case n:switch(u){case 1:return c.splice(f,1);case 2:return c.delete(f);case 3:return c.delete(i.value);default:return delete c[f]}default:a(17)}})),r},generatePatches_:function(r,i,o,a){switch(r.type_){case 0:case 2:return function(r,i,o,a){const{base_:s,copy_:l}=r;p(r.assigned_,((r,c)=>{const d=g(s,r),f=g(l,r),p=c?m(s,r)?e:t:n;if(d===f&&p===e)return;const h=i.concat(r);o.push(p===n?{op:p,path:h}:{op:p,path:h,value:f}),a.push(p===t?{op:n,path:h}:p===n?{op:t,path:h,value:u(d)}:{op:e,path:h,value:u(d)})}))}(r,i,o,a);case 1:return function(r,i,o,a){let{base_:s,assigned_:l}=r,c=r.copy_;c.length<s.length&&([s,c]=[c,s],[o,a]=[a,o]);for(let t=0;t<s.length;t++)if(l[t]&&c[t]!==s[t]){const n=i.concat([t]);o.push({op:e,path:n,value:u(c[t])}),a.push({op:e,path:n,value:u(s[t])})}for(let e=s.length;e<c.length;e++){const n=i.concat([e]);o.push({op:t,path:n,value:u(c[e])})}for(let e=c.length-1;s.length<=e;--e){const t=i.concat([e]);a.push({op:n,path:t})}}(r,i,o,a);case 3:return function(e,r,i,o){let{base_:a,copy_:s}=e,l=0;a.forEach((e=>{if(!s.has(e)){const a=r.concat([l]);i.push({op:n,path:a,value:e}),o.unshift({op:t,path:a,value:e})}l++})),l=0,s.forEach((e=>{if(!a.has(e)){const a=r.concat([l]);i.push({op:t,path:a,value:e}),o.unshift({op:n,path:a,value:e})}l++}))}(r,i,o,a)}},generateReplacementPatches_:function(t,n,i,o){i.push({op:e,path:[],value:n===r?void 0:n}),o.push({op:e,path:[],value:t})}})}var G=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{if("function"===typeof e&&"function"!==typeof t){const n=t;t=e;const r=this;return function(e=n,...i){return r.produce(e,(e=>t.call(this,e,...i)))}}let i;if("function"!==typeof t&&a(6),void 0!==n&&"function"!==typeof n&&a(7),c(e)){const r=R(this),o=V(e,void 0);let a=!0;try{i=t(o),a=!1}finally{a?I(r):P(r)}return A(r,n),j(i,r)}if(!e||"object"!==typeof e){if(i=t(e),void 0===i&&(i=e),i===r&&(i=void 0),this.autoFreeze_&&_(i,!0),n){const t=[],r=[];O("Patches").generateReplacementPatches_(e,i,t,r),n(t,r)}return i}a(1)},this.produceWithPatches=(e,t)=>{if("function"===typeof e)return(t,...n)=>this.produceWithPatches(t,(t=>e(t,...n)));let n,r;return[this.produce(e,t,((e,t)=>{n=e,r=t})),n,r]},"boolean"===typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"===typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){c(e)||a(8),l(e)&&(e=function(e){l(e)||a(10);return W(e)}(e));const t=R(this),n=V(e,void 0);return n[o].isManual_=!0,P(t),n}finishDraft(e,t){const n=e&&e[o];n&&n.isManual_||a(9);const{scope_:r}=n;return A(r,t),j(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=O("Patches").applyPatches_;return l(e)?r(e,t):this.produce(e,(e=>r(e,t)))}},Y=G.produce,Q=G.produceWithPatches.bind(G),Z=(G.setAutoFreeze.bind(G),G.setUseStrictShallowCopy.bind(G),G.applyPatches.bind(G));G.createDraft.bind(G),G.finishDraft.bind(G)},90826:(e,t,n)=>{"use strict";n.d(t,{u:()=>a});var r=n(59284),i=n(69220),o=n(10176);const a="function"===typeof r.useId?function(){return`${i.CU}${r.useId()}`}:function(){const e=r.useRef();return void 0===e.current&&(e.current=(0,o.zm)()),e.current}},91159:(e,t,n)=>{var r=n(54573),i=n(57741),o=n(73073),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},91268:(e,t,n)=>{"use strict";var r=n(62384),i=n(39232),o=n(8928);e.exports=r?function(e){return r(e)}:i?function(e){if(!e||"object"!==typeof e&&"function"!==typeof e)throw new TypeError("getProto: not an object");return i(e)}:o?function(e){return o(e)}:null},91407:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>o(l,n))c<i&&0>o(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<i&&0>o(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,f=null,p=3,h=!1,m=!1,g=!1,v="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function w(e){for(var t=r(u);null!==t;){if(null===t.callback)i(u);else{if(!(t.startTime<=e))break;i(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function x(e){if(g=!1,w(e),!m)if(null!==r(c))m=!0,R(_);else{var t=r(u);null!==t&&D(x,t.startTime-e)}}function _(e,n){m=!1,g&&(g=!1,y(k),k=-1),h=!0;var o=p;try{for(w(n),f=r(c);null!==f&&(!(f.expirationTime>n)||e&&!T());){var a=f.callback;if("function"===typeof a){f.callback=null,p=f.priorityLevel;var s=a(f.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?f.callback=s:f===r(c)&&i(c),w(n)}else i(c);f=r(c)}if(null!==f)var l=!0;else{var d=r(u);null!==d&&D(x,d.startTime-n),l=!1}return l}finally{f=null,p=o,h=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E,S=!1,C=null,k=-1,O=5,N=-1;function T(){return!(t.unstable_now()-N<O)}function A(){if(null!==C){var e=t.unstable_now();N=e;var n=!0;try{n=C(!0,e)}finally{n?E():(S=!1,C=null)}}else S=!1}if("function"===typeof b)E=function(){b(A)};else if("undefined"!==typeof MessageChannel){var I=new MessageChannel,P=I.port2;I.port1.onmessage=A,E=function(){P.postMessage(null)}}else E=function(){v(A,0)};function R(e){C=e,S||(S=!0,E())}function D(e,n){k=v((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||h||(m=!0,R(_))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,i,o){var a=t.unstable_now();switch("object"===typeof o&&null!==o?o="number"===typeof(o=o.delay)&&0<o?a+o:a:o=a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:i,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(e.sortIndex=o,n(u,e),null===r(c)&&e===r(u)&&(g?(y(k),k=-1):g=!0,D(x,o-a))):(e.sortIndex=s,n(c,e),m||h||(m=!0,R(_))),e},t.unstable_shouldYield=T,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},91644:(e,t,n)=>{var r=n(62871),i=n(12927);e.exports=function(e,t){return r(e,i(e),t)}},92061:(e,t,n)=>{var r=n(60242);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},92189:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.stateToParams=function(e,t,n){var s=(0,o.createObjectFromConfig)(e,n),l=e[o.RLSCONFIG]&&e[o.RLSCONFIG].queryParser,c=(0,o.parseParams)(n.search,l);if(!s)return{location:i({},n)};var u=!1,d=Object.keys(s).reduce((function(e,n){var i=s[n],l=i.stateKey,d=i.options,f=void 0===d?{}:d,p=i.initialState,h=i.type,m=(0,o.get)(t,l),g=void 0;if("date"===h?g=m.toISOString().substring(0,10)===(p&&p.toISOString().substring(0,10)):(m&&"object"===("undefined"===typeof m?"undefined":r(m))&&!Object.keys(m).length&&(m=void 0),g="object"===("undefined"===typeof m?"undefined":r(m))?(0,o.isEqual)(p,m):m===p),("undefined"===typeof m&&!f.serialize||g)&&!f.setAsEmptyItem)return e;if(f.serialize){var v=f.serialize(m);if("undefined"===typeof v)return e;m=v}else h&&(m=a.typeHandles[h].serialize(m,f));return e[n]=m,m!==c[n]&&f.shouldPush&&(u=!0),e}),{});return{location:i({},n,{search:(0,o.createParamsString)(d)}),shouldPush:u}};var o=n(93650),a=n(86540)},92209:(e,t,n)=>{"use strict";n.d(t,{N:()=>i,b:()=>o});var r=n(82435);const i="gn-";(0,r.withNaming)({e:"__",m:"_"});const o=(0,r.withNaming)({n:i,e:"__",m:"_"})},92459:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>d,Ck:()=>v,DM:()=>x,KY:()=>h,Ow:()=>m,_g:()=>b,a3:()=>g,mA:()=>f,qc:()=>w,yX:()=>y});var r=n(905),i=n.n(r),o=n(95166),a=n(74309),s=n.n(a),l=n(67087),c=n(58351);const u={clusters:"/clusters",cluster:"/cluster/:activeTab?",tenant:"/tenant",node:"/node/:id/:activeTab?",pDisk:"/pDisk",vDisk:"/vDisk",storageGroup:"/storageGroup",tablet:"/tablet/:id",auth:"/auth"},d=u,f=e=>s().parse(e.search,{ignoreQueryPrefix:!0}),p=e=>{let t=e;const n=/:\d{3,5}/g,r=e.match(n);if(r){const i=r[0];t=e.replace(n,":\\"+i.slice(1))}return t};function h(e,t,n={}){let r=n;const a="backend"in n&&Boolean(n.backend);c.Hs&&!a&&c.jC&&(r={...n,backend:c.Hs});const l="clusterName"in n&&Boolean(n.clusterName);c.SL&&!l&&c.jC&&(r={...r,clusterName:c.SL});const u=i()(r)?"":`?${s().stringify(r,{encode:!1,arrayFormat:"repeat"})}`,d=p(e);return`${(0,o.compile)(d)(t)}${u}`}const m=(e={})=>h(window.location.pathname,void 0,e);function g(e){const{pathname:t,search:n,hash:r}=new URL(e,"http://localhost");return{pathname:t,search:n,hash:r}}function v(e,t,n={}){return h(u.pDisk,void 0,{...n,nodeId:t,pDiskId:e})}function y(e,t,n,r={}){return h(u.vDisk,void 0,{...r,nodeId:n,pDiskId:t,vDiskSlotId:e})}function b(e,t={}){return h(u.storageGroup,void 0,{...t,groupId:e})}const w={database:l.StringParam,clusterName:l.StringParam,activeTab:l.StringParam};function x(e,t={}){return h(u.tablet,{id:e},{...t})}},92470:(e,t,n)=>{var r=n(84579),i=n(98112);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},93339:(e,t,n)=>{"use strict";var r=n(69123),i=n(39955),o=function(e,t,n){for(var r,i=e;null!=(r=i.next);i=r)if(r.key===t)return i.next=r.next,n||(r.next=e.next,e.next=r),r};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new i("Side channel does not contain "+r(e))},delete:function(t){var n=e&&e.next,r=function(e,t){if(e)return o(e,t,!0)}(e,t);return r&&n&&n===r&&(e=void 0),!!r},get:function(t){return function(e,t){if(e){var n=o(e,t);return n&&n.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!o(e,t)}(e,t)},set:function(t,n){e||(e={next:void 0}),function(e,t,n){var r=o(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(e,t,n)}};return t}},93454:e=>{e.exports=function(){this.__data__=[],this.size=0}},93650:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.paramDecoder=t.OVERWRITE_ACCESSORS=t.RLSCONFIG=void 0,t.setParamEncoder=function(e){c=e},t.setParamDecoder=function(e){t.paramDecoder=u=e},t.overrideAccessors=function(e,t){l[e]=t},t.get=function(){return l.get.apply(l,arguments)},t.set=function(){return l.set.apply(l,arguments)},t.isEqual=function(){return l.isEqual.apply(l,arguments)},t.getMatchingDeclaredPath=d,t.createObjectFromConfig=function(e,t){if(!e)return;var n=d(e,t);return e.global?Object.assign({},e.global,e[n]||{}):e[n]},t.getPath=function(){var e=window.location.href,t=e.indexOf("#")+1;if(t&&0===e.substring(t).indexOf("/"))return e.substring(t);return window.location.pathname+window.location.search+window.location.hash},t.createParamsString=function(e){var t=Object.keys(e).reduce((function(t,n){var r=n.toString(),i=e[n];if(function(e){return"undefined"===typeof e||null===e}(i)||Array.isArray(i)&&!i.length)return t;var o=e[n].toString();return[].concat(s(t),[c(r)+"="+c(o)])}),[]);return t.length?"?"+t.join("&"):""},t.parseParams=function(e,t){return e&&e.split("&").reduce((function(e,n){"?"===n[0]&&(n=n.substr(1));var r=t?t(n):n.split("=");return e[u(r[0])]=u(r[1])||"",e}),{})||{}};var r=a(n(87924)),i=a(n(62060)),o=a(n(38896));function a(e){return e&&e.__esModule?e:{default:e}}function s(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}t.RLSCONFIG="RLSCONFIG",t.OVERWRITE_ACCESSORS="overwrite-accessors";var l={get:r.default,set:o.default,isEqual:i.default},c=encodeURIComponent,u=t.paramDecoder=decodeURIComponent;function d(e,t){var n=t.pathname.split("/");return Object.keys(e).filter((function(e){var t=[].concat(s(n)),r=e.split("/"),i=[].concat(s(r)),o=0;return r.forEach((function(e,n){"*"===e&&(t.splice(n-o,1),i.splice(n-o,1),o++)})),t.join("/")===i.join("/")}))[0]}},93694:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseQuery=function(e,t){var n=(0,r.createObjectFromConfig)(e,t),o=e[r.RLSCONFIG]&&e[r.RLSCONFIG].queryParser,a=(0,r.parseParams)(t.search,o);if(!n)return t.search;return Object.keys(n).reduce((function(e,t){var o=n[t],s=o.stateKey,l=o.options,c=void 0===l?{}:l,u=o.initialState,d=o.type,f=a[t],p=void 0;return"undefined"===typeof f||null===f?((0,r.set)(e,s,u),e):(p=c.parse?c.parse(f):d?i.typeHandles[d].parse(f,c):f,(0,r.set)(e,s,p),e)}),{})};var r=n(93650),i=n(86540)},93780:(e,t,n)=>{"use strict";var r=n(3584),i=n(73888),o=n(7445),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,l(t)?t:[t])},d=Date.prototype.toISOString,f=o.default,p={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:i.encode,encodeValuesOnly:!1,filter:void 0,format:f,formatter:o.formatters[f],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},h={},m=function e(t,n,o,a,s,c,d,f,m,g,v,y,b,w,x,_,E,S){for(var C,k=t,O=S,N=0,T=!1;void 0!==(O=O.get(h))&&!T;){var A=O.get(t);if(N+=1,"undefined"!==typeof A){if(A===N)throw new RangeError("Cyclic object value");T=!0}"undefined"===typeof O.get(h)&&(N=0)}if("function"===typeof g?k=g(n,k):k instanceof Date?k=b(k):"comma"===o&&l(k)&&(k=i.maybeMap(k,(function(e){return e instanceof Date?b(e):e}))),null===k){if(c)return m&&!_?m(n,p.encoder,E,"key",w):n;k=""}if("string"===typeof(C=k)||"number"===typeof C||"boolean"===typeof C||"symbol"===typeof C||"bigint"===typeof C||i.isBuffer(k))return m?[x(_?n:m(n,p.encoder,E,"key",w))+"="+x(m(k,p.encoder,E,"value",w))]:[x(n)+"="+x(String(k))];var I,P=[];if("undefined"===typeof k)return P;if("comma"===o&&l(k))_&&m&&(k=i.maybeMap(k,m)),I=[{value:k.length>0?k.join(",")||null:void 0}];else if(l(g))I=g;else{var R=Object.keys(k);I=v?R.sort(v):R}var D=f?String(n).replace(/\./g,"%2E"):String(n),j=a&&l(k)&&1===k.length?D+"[]":D;if(s&&l(k)&&0===k.length)return j+"[]";for(var M=0;M<I.length;++M){var L=I[M],z="object"===typeof L&&L&&"undefined"!==typeof L.value?L.value:k[L];if(!d||null!==z){var F=y&&f?String(L).replace(/\./g,"%2E"):String(L),B=l(k)?"function"===typeof o?o(j,F):j:j+(y?"."+F:"["+F+"]");S.set(t,N);var U=r();U.set(h,S),u(P,e(z,B,o,a,s,c,d,f,"comma"===o&&_&&l(k)?null:m,g,v,y,b,w,x,_,E,U))}}return P};e.exports=function(e,t){var n,i=e,c=function(e){if(!e)return p;if("undefined"!==typeof e.allowEmptyArrays&&"boolean"!==typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if("undefined"!==typeof e.encodeDotInKeys&&"boolean"!==typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&"undefined"!==typeof e.encoder&&"function"!==typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o.default;if("undefined"!==typeof e.format){if(!a.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r,i=o.formatters[n],c=p.filter;if(("function"===typeof e.filter||l(e.filter))&&(c=e.filter),r=e.arrayFormat in s?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":p.arrayFormat,"commaRoundTrip"in e&&"boolean"!==typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u="undefined"===typeof e.allowDots?!0===e.encodeDotInKeys||p.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"===typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:u,allowEmptyArrays:"boolean"===typeof e.allowEmptyArrays?!!e.allowEmptyArrays:p.allowEmptyArrays,arrayFormat:r,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:"undefined"===typeof e.delimiter?p.delimiter:e.delimiter,encode:"boolean"===typeof e.encode?e.encode:p.encode,encodeDotInKeys:"boolean"===typeof e.encodeDotInKeys?e.encodeDotInKeys:p.encodeDotInKeys,encoder:"function"===typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"===typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:c,format:n,formatter:i,serializeDate:"function"===typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"===typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"===typeof e.sort?e.sort:null,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}}(t);"function"===typeof c.filter?i=(0,c.filter)("",i):l(c.filter)&&(n=c.filter);var d=[];if("object"!==typeof i||null===i)return"";var f=s[c.arrayFormat],h="comma"===f&&c.commaRoundTrip;n||(n=Object.keys(i)),c.sort&&n.sort(c.sort);for(var g=r(),v=0;v<n.length;++v){var y=n[v],b=i[y];c.skipNulls&&null===b||u(d,m(b,y,f,h,c.allowEmptyArrays,c.strictNullHandling,c.skipNulls,c.encodeDotInKeys,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,g))}var w=d.join(c.delimiter),x=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?x+="utf8=%26%2310003%3B&":x+="utf8=%E2%9C%93&"),w.length>0?x+w:""}},94305:(e,t,n)=>{var r=n(88118);e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!r(n))return e(n,i);for(var o=n.length,a=t?o:-1,s=Object(n);(t?a--:++a<o)&&!1!==i(s[a],a,s););return n}}},94420:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.134 2.994 2.217 11.5a1 1 0 0 0 .866 1.5h9.834a1 1 0 0 0 .866-1.5L8.866 2.993a1 1 0 0 0-1.732 0m3.03-.75c-.962-1.665-3.366-1.665-4.329 0L.918 10.749c-.963 1.666.24 3.751 2.165 3.751h9.834c1.925 0 3.128-2.085 2.164-3.751zM8 5a.75.75 0 0 1 .75.75v2a.75.75 0 0 1-1.5 0v-2A.75.75 0 0 1 8 5m1 5.75a1 1 0 1 1-2 0 1 1 0 0 1 2 0",clipRule:"evenodd"}))},94454:e=>{e.exports=function(){}},94701:(e,t,n)=>{"use strict";var r,i=n(30836),o=n(73759),a=n(82461),s=n(52530),l=n(19770),c=n(78236),u=n(39955),d=n(22921),f=n(51682),p=n(45904),h=n(73620),m=n(40538),g=n(7328),v=n(54),y=n(75869),b=Function,w=function(e){try{return b('"use strict"; return ('+e+").constructor;")()}catch(t){}},x=n(84363),_=n(78599),E=function(){throw new u},S=x?function(){try{return E}catch(e){try{return x(arguments,"callee").get}catch(t){return E}}}():E,C=n(27199)(),k=n(91268),O=n(39232),N=n(62384),T=n(69426),A=n(70084),I={},P="undefined"!==typeof Uint8Array&&k?k(Uint8Array):r,R={__proto__:null,"%AggregateError%":"undefined"===typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":C&&k?k([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":I,"%AsyncGenerator%":I,"%AsyncGeneratorFunction%":I,"%AsyncIteratorPrototype%":I,"%Atomics%":"undefined"===typeof Atomics?r:Atomics,"%BigInt%":"undefined"===typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":a,"%Float32Array%":"undefined"===typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":b,"%GeneratorFunction%":I,"%Int8Array%":"undefined"===typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":C&&k?k(k([][Symbol.iterator]())):r,"%JSON%":"object"===typeof JSON?JSON:r,"%Map%":"undefined"===typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&C&&k?k((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":x,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?r:Promise,"%Proxy%":"undefined"===typeof Proxy?r:Proxy,"%RangeError%":s,"%ReferenceError%":l,"%Reflect%":"undefined"===typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&C&&k?k((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":C&&k?k(""[Symbol.iterator]()):r,"%Symbol%":C?Symbol:r,"%SyntaxError%":c,"%ThrowTypeError%":S,"%TypedArray%":P,"%TypeError%":u,"%Uint8Array%":"undefined"===typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?r:Uint32Array,"%URIError%":d,"%WeakMap%":"undefined"===typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?r:WeakSet,"%Function.prototype.call%":A,"%Function.prototype.apply%":T,"%Object.defineProperty%":_,"%Object.getPrototypeOf%":O,"%Math.abs%":f,"%Math.floor%":p,"%Math.max%":h,"%Math.min%":m,"%Math.pow%":g,"%Math.round%":v,"%Math.sign%":y,"%Reflect.getPrototypeOf%":N};if(k)try{null.error}catch(K){var D=k(k(K));R["%Error.prototype%"]=D}var j=function e(t){var n;if("%AsyncFunction%"===t)n=w("async function () {}");else if("%GeneratorFunction%"===t)n=w("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=w("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&k&&(n=k(i.prototype))}return R[t]=n,n},M={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},L=n(35711),z=n(86173),F=L.call(A,Array.prototype.concat),B=L.call(T,Array.prototype.splice),U=L.call(A,String.prototype.replace),q=L.call(A,String.prototype.slice),$=L.call(A,RegExp.prototype.exec),H=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,V=/\\(\\)?/g,W=function(e,t){var n,r=e;if(z(M,r)&&(r="%"+(n=M[r])[0]+"%"),z(R,r)){var i=R[r];if(i===I&&(i=j(r)),"undefined"===typeof i&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===$(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=q(e,0,1),n=q(e,-1);if("%"===t&&"%"!==n)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return U(e,H,(function(e,t,n,i){r[r.length]=n?U(i,V,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",i=W("%"+r+"%",t),o=i.name,a=i.value,s=!1,l=i.alias;l&&(r=l[0],B(n,F([0,1],l)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],h=q(p,0,1),m=q(p,-1);if(('"'===h||"'"===h||"`"===h||'"'===m||"'"===m||"`"===m)&&h!==m)throw new c("property names with quotes must have matching quotes");if("constructor"!==p&&f||(s=!0),z(R,o="%"+(r+="."+p)+"%"))a=R[o];else if(null!=a){if(!(p in a)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(x&&d+1>=n.length){var g=x(a,p);a=(f=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:a[p]}else f=z(a,p),a=a[p];f&&!s&&(R[o]=a)}}return a}},94771:(e,t,n)=>{"use strict";e.exports=n(50711)},95166:e=>{e.exports=d,e.exports.match=function(e,t){var n=[];return o(d(e,n,t),n)},e.exports.regexpToFunction=o,e.exports.parse=r,e.exports.compile=function(e,t){return a(r(e,t),t)},e.exports.tokensToFunction=a,e.exports.tokensToRegExp=u;var t="/",n=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");function r(e,r){for(var o,a=[],s=0,c=0,u="",d=r&&r.delimiter||t,f=r&&r.whitelist||void 0,p=!1;null!==(o=n.exec(e));){var h=o[0],m=o[1],g=o.index;if(u+=e.slice(c,g),c=g+h.length,m)u+=m[1],p=!0;else{var v="",y=o[2],b=o[3],w=o[4],x=o[5];if(!p&&u.length){var _=u.length-1,E=u[_];(!f||f.indexOf(E)>-1)&&(v=E,u=u.slice(0,_))}u&&(a.push(u),u="",p=!1);var S="+"===x||"*"===x,C="?"===x||"*"===x,k=b||w,O=v||d,N=v||("string"===typeof a[a.length-1]?a[a.length-1]:"");a.push({name:y||s++,prefix:v,delimiter:O,optional:C,repeat:S,pattern:k?l(k):i(O,d,N)})}}return(u||c<e.length)&&a.push(u+e.substr(c)),a}function i(e,t,n){var r="[^"+s(e===t?e:e+t)+"]";return!n||n.indexOf(e)>-1||n.indexOf(t)>-1?r+"+?":s(n)+"|(?:(?!"+s(n)+")"+r+")+?"}function o(e,t){return function(n,r){var i=e.exec(n);if(!i)return!1;for(var o=i[0],a=i.index,s={},l=r&&r.decode||decodeURIComponent,c=1;c<i.length;c++)if(void 0!==i[c]){var u=t[c-1];u.repeat?s[u.name]=i[c].split(u.delimiter).map((function(e){return l(e,u)})):s[u.name]=l(i[c],u)}return{path:o,index:a,params:s}}}function a(e,t){for(var n=new Array(e.length),r=0;r<e.length;r++)"object"===typeof e[r]&&(n[r]=new RegExp("^(?:"+e[r].pattern+")$",c(t)));return function(t,r){for(var i="",o=r&&r.encode||encodeURIComponent,a=!r||!1!==r.validate,s=0;s<e.length;s++){var l=e[s];if("string"!==typeof l){var c,u=t?t[l.name]:void 0;if(Array.isArray(u)){if(!l.repeat)throw new TypeError('Expected "'+l.name+'" to not repeat, but got array');if(0===u.length){if(l.optional)continue;throw new TypeError('Expected "'+l.name+'" to not be empty')}for(var d=0;d<u.length;d++){if(c=o(u[d],l),a&&!n[s].test(c))throw new TypeError('Expected all "'+l.name+'" to match "'+l.pattern+'"');i+=(0===d?l.prefix:l.delimiter)+c}}else if("string"!==typeof u&&"number"!==typeof u&&"boolean"!==typeof u){if(!l.optional)throw new TypeError('Expected "'+l.name+'" to be '+(l.repeat?"an array":"a string"))}else{if(c=o(String(u),l),a&&!n[s].test(c))throw new TypeError('Expected "'+l.name+'" to match "'+l.pattern+'", but got "'+c+'"');i+=l.prefix+c}}else i+=l}return i}}function s(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function l(e){return e.replace(/([=!:$/()])/g,"\\$1")}function c(e){return e&&e.sensitive?"":"i"}function u(e,n,r){for(var i=(r=r||{}).strict,o=!1!==r.start,a=!1!==r.end,l=r.delimiter||t,u=[].concat(r.endsWith||[]).map(s).concat("$").join("|"),d=o?"^":"",f=0;f<e.length;f++){var p=e[f];if("string"===typeof p)d+=s(p);else{var h=p.repeat?"(?:"+p.pattern+")(?:"+s(p.delimiter)+"(?:"+p.pattern+"))*":p.pattern;n&&n.push(p),p.optional?p.prefix?d+="(?:"+s(p.prefix)+"("+h+"))?":d+="("+h+")?":d+=s(p.prefix)+"("+h+")"}}if(a)i||(d+="(?:"+s(l)+")?"),d+="$"===u?"$":"(?="+u+")";else{var m=e[e.length-1],g="string"===typeof m?m[m.length-1]===l:void 0===m;i||(d+="(?:"+s(l)+"(?="+u+"))?"),g||(d+="(?="+s(l)+"|"+u+")")}return new RegExp(d,c(r))}function d(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,pattern:null});return e}(e,t):Array.isArray(e)?function(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(d(e[i],t,n).source);return new RegExp("(?:"+r.join("|")+")",c(n))}(e,t,n):function(e,t,n){return u(r(e,n),t,n)}(e,t,n)}},95197:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HTML5_INPUT_FORMATS=t.englishFormats=t.INVALID_DATE_STRING=t.DEFAULT_SYSTEM_DATE_FORMAT=void 0,t.DEFAULT_SYSTEM_DATE_FORMAT="YYYY-MM-DD",t.INVALID_DATE_STRING="Invalid Date",t.englishFormats={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t.HTML5_INPUT_FORMATS={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"}},95312:(e,t,n)=>{"use strict";n.d(t,{X:()=>l});var r=n(59284),i=n(67028),o=n(76086),a=n(11822),s=n(80967);const l=()=>{const e=(0,i.Oi)(),[t,n]=(0,s.i)(o.c4),l=a.dZ.parse(t),[c]=(0,s.i)(o.lr),u=r.useCallback((e=>{n({...e,statisticsMode:c?l.statisticsMode:e.statisticsMode})}),[n,c,l.statisticsMode]);return[{...l,statisticsMode:c?a.pE.full:l.statisticsMode,tracingLevel:e?l.tracingLevel:a.jU.tracingLevel},u]}},96294:(e,t,n)=>{var r=n(20943),i=n(71824),o=n(88118);e.exports=function(e){return o(e)?r(e):i(e)}},96741:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},96873:(e,t,n)=>{"use strict";n.d(t,{b:()=>b});var r=n(27145),i=n(59284),o=n(18650),a=n(84476),s=n(48699),l=n(46700),c=n(69220),u=n(72837);const d=JSON.parse('{"startCopy":"Copy","endCopy":"Copied"}'),f=JSON.parse('{"startCopy":"\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c","endCopy":"\u0421\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u043e"}'),p=(0,u.N)({en:d,ru:f},"ClipboardButton"),h=(0,c.om)("clipboard-button"),m=1200,g=200,v={xs:12,s:16,m:16,l:16,xl:20},y=e=>{const{size:t="m",hasTooltip:n=!0,tooltipInitialText:l=p("startCopy"),tooltipSuccessText:c=p("endCopy"),status:u,view:d="flat",extraProps:f={},children:m,iconPosition:g="start",closeDelay:y,onMouseEnter:b,onFocus:w}=e,x=(0,r.Tt)(e,["size","hasTooltip","tooltipInitialText","tooltipSuccessText","status","view","extraProps","children","iconPosition","closeDelay","onMouseEnter","onFocus"]),_=i.createElement(a.$.Icon,{className:h("icon")},i.createElement(s.u,{size:v[t],status:u}));return i.createElement(o.m,{title:"success"===u?c:l,disabled:!n,closeDelay:y},i.createElement(a.$,Object.assign({view:d,size:t,extraProps:Object.assign({"aria-label":l},f),onMouseEnter:b,onFocus:w},x),"start"===g?_:null,m,"end"===g?_:null))};function b(e){const{text:t,timeout:n=m,onCopy:o,options:a,hasTooltip:s=!0,onMouseEnter:c,onFocus:u}=e,d=(0,r.Tt)(e,["text","timeout","onCopy","options","hasTooltip","onMouseEnter","onFocus"]),f=i.useRef(),[p,h]=i.useState(void 0),[v,b]=i.useState(!1);i.useEffect((()=>window.clearTimeout(f.current)),[]);const w=i.useCallback(((e,t)=>{null===o||void 0===o||o(e,t),b(!1),h(n),window.clearTimeout(f.current),f.current=window.setTimeout((()=>{b(!0)}),n-g)}),[o,n]),x=i.useCallback((()=>{v&&(b(!1),h(void 0))}),[v]),_=i.useCallback((e=>{null===c||void 0===c||c(e),x()}),[c,x]),E=i.useCallback((e=>{null===u||void 0===u||u(e),x()}),[u,x]);return i.createElement(l.$,{text:t,timeout:n,onCopy:w,options:a},(e=>i.createElement(y,Object.assign({},d,{closeDelay:p,hasTooltip:s&&!v,status:e,onMouseEnter:_,onFocus:E}))))}},96906:(e,t,n)=>{"use strict";function r(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}n.d(t,{HY:()=>c,Qd:()=>s,Tw:()=>p,Zz:()=>f,ve:()=>h,y$:()=>l,zH:()=>d});var i=(()=>"function"===typeof Symbol&&Symbol.observable||"@@observable")(),o=()=>Math.random().toString(36).substring(7).split("").join("."),a={INIT:`@@redux/INIT${o()}`,REPLACE:`@@redux/REPLACE${o()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${o()}`};function s(e){if("object"!==typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function l(e,t,n){if("function"!==typeof e)throw new Error(r(2));if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(r(0));if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(r(1));return n(l)(e,t)}let o=e,c=t,u=new Map,d=u,f=0,p=!1;function h(){d===u&&(d=new Map,u.forEach(((e,t)=>{d.set(t,e)})))}function m(){if(p)throw new Error(r(3));return c}function g(e){if("function"!==typeof e)throw new Error(r(4));if(p)throw new Error(r(5));let t=!0;h();const n=f++;return d.set(n,e),function(){if(t){if(p)throw new Error(r(6));t=!1,h(),d.delete(n),u=null}}}function v(e){if(!s(e))throw new Error(r(7));if("undefined"===typeof e.type)throw new Error(r(8));if("string"!==typeof e.type)throw new Error(r(17));if(p)throw new Error(r(9));try{p=!0,c=o(c,e)}finally{p=!1}return(u=d).forEach((e=>{e()})),e}v({type:a.INIT});return{dispatch:v,subscribe:g,getState:m,replaceReducer:function(e){if("function"!==typeof e)throw new Error(r(10));o=e,v({type:a.REPLACE})},[i]:function(){const e=g;return{subscribe(t){if("object"!==typeof t||null===t)throw new Error(r(11));function n(){const e=t;e.next&&e.next(m())}n();return{unsubscribe:e(n)}},[i](){return this}}}}}function c(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const i=t[r];0,"function"===typeof e[i]&&(n[i]=e[i])}const i=Object.keys(n);let o;try{!function(e){Object.keys(e).forEach((t=>{const n=e[t];if("undefined"===typeof n(void 0,{type:a.INIT}))throw new Error(r(12));if("undefined"===typeof n(void 0,{type:a.PROBE_UNKNOWN_ACTION()}))throw new Error(r(13))}))}(n)}catch(s){o=s}return function(e={},t){if(o)throw o;let a=!1;const s={};for(let o=0;o<i.length;o++){const l=i[o],c=n[l],u=e[l],d=c(u,t);if("undefined"===typeof d){t&&t.type;throw new Error(r(14))}s[l]=d,a=a||d!==u}return a=a||i.length!==Object.keys(e).length,a?s:e}}function u(e,t){return function(...n){return t(e.apply(this,n))}}function d(e,t){if("function"===typeof e)return u(e,t);if("object"!==typeof e||null===e)throw new Error(r(16));const n={};for(const r in e){const i=e[r];"function"===typeof i&&(n[r]=u(i,t))}return n}function f(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}function p(...e){return t=>(n,i)=>{const o=t(n,i);let a=()=>{throw new Error(r(15))};const s={getState:o.getState,dispatch:(e,...t)=>a(e,...t)},l=e.map((e=>e(s)));return a=f(...l)(o.dispatch),{...o,dispatch:a}}}function h(e){return s(e)&&"type"in e&&"string"===typeof e.type}},97091:(e,t,n)=>{"use strict";n.d(t,{cN:()=>m,U1:()=>b,VP:()=>u,zD:()=>M,Z0:()=>q,gk:()=>V,f$:()=>E,i0:()=>_,$S:()=>A,sf:()=>T,mm:()=>k,TK:()=>O,WA:()=>N,Ak:()=>I,aA:()=>g});var r=n(96906);function i(e){return({dispatch:t,getState:n})=>r=>i=>"function"===typeof i?i(t,n,e):r(i)}var o=i(),a=i,s=n(90754),l="undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"===typeof arguments[0]?r.Zz:r.Zz.apply(null,arguments)},c=("undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__,e=>e&&"function"===typeof e.match);function u(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw new Error(V(0));return{type:e,payload:r.payload,..."meta"in r&&{meta:r.meta},..."error"in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>(0,r.ve)(t)&&t.type===e,n}var d=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function f(e){return(0,s.a6)(e)?(0,s.jM)(e,(()=>{})):e}function p(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}var h=()=>function(e){const{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:i=!0}=e??{};let s=new d;return t&&("boolean"===typeof t?s.push(o):s.push(a(t.extraArgument))),s},m="RTK_autoBatch",g=()=>e=>({payload:e,meta:{[m]:!0}}),v=e=>t=>{setTimeout(t,e)},y=e=>function(t){const{autoBatch:n=!0}=t??{};let r=new d(e);return n&&r.push(((e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,o=!1,a=!1;const s=new Set,l="tick"===e.type?queueMicrotask:"raf"===e.type?"undefined"!==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:v(10):"callback"===e.type?e.queueNotification:v(e.timeout),c=()=>{a=!1,o&&(o=!1,s.forEach((e=>e())))};return Object.assign({},r,{subscribe(e){const t=r.subscribe((()=>i&&e()));return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){try{return i=!e?.meta?.[m],o=!i,o&&(a||(a=!0,l(c))),r.dispatch(e)}finally{i=!0}}})})("object"===typeof n?n:void 0)),r};function b(e){const t=h(),{reducer:n,middleware:i,devTools:o=!0,preloadedState:a,enhancers:s}=e||{};let c,u;if("function"===typeof n)c=n;else{if(!(0,r.Qd)(n))throw new Error(V(1));c=(0,r.HY)(n)}u="function"===typeof i?i(t):t();let d=r.Zz;o&&(d=l({trace:!1,..."object"===typeof o&&o}));const f=(0,r.Tw)(...u),p=y(f);const m=d(..."function"===typeof s?s(p):p());return(0,r.y$)(c,a,m)}function w(e){const t={},n=[];let r;const i={addCase(e,n){const r="string"===typeof e?e:e.type;if(!r)throw new Error(V(28));if(r in t)throw new Error(V(29));return t[r]=n,i},addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),i),addDefaultCase:e=>(r=e,i)};return e(i),[t,n,r]}var x=(e,t)=>c(e)?e.match(t):e(t);function _(...e){return t=>e.some((e=>x(e,t)))}function E(...e){return t=>e.every((e=>x(e,t)))}function S(e,t){if(!e||!e.meta)return!1;const n="string"===typeof e.meta.requestId,r=t.indexOf(e.meta.requestStatus)>-1;return n&&r}function C(e){return"function"===typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function k(...e){return 0===e.length?e=>S(e,["pending"]):C(e)?_(...e.map((e=>e.pending))):k()(e[0])}function O(...e){return 0===e.length?e=>S(e,["rejected"]):C(e)?_(...e.map((e=>e.rejected))):O()(e[0])}function N(...e){const t=e=>e&&e.meta&&e.meta.rejectedWithValue;return 0===e.length||C(e)?E(O(...e),t):N()(e[0])}function T(...e){return 0===e.length?e=>S(e,["fulfilled"]):C(e)?_(...e.map((e=>e.fulfilled))):T()(e[0])}function A(...e){return 0===e.length?e=>S(e,["pending","fulfilled","rejected"]):C(e)?_(...e.flatMap((e=>[e.pending,e.rejected,e.fulfilled]))):A()(e[0])}var I=(e=21)=>{let t="",n=e;for(;n--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},P=["name","message","stack","code"],R=class{constructor(e,t){this.payload=e,this.meta=t}_type},D=class{constructor(e,t){this.payload=e,this.meta=t}_type},j=e=>{if("object"===typeof e&&null!==e){const t={};for(const n of P)"string"===typeof e[n]&&(t[n]=e[n]);return t}return{message:String(e)}},M=(()=>{function e(e,t,n){const r=u(e+"/fulfilled",((e,t,n,r)=>({payload:e,meta:{...r||{},arg:n,requestId:t,requestStatus:"fulfilled"}}))),i=u(e+"/pending",((e,t,n)=>({payload:void 0,meta:{...n||{},arg:t,requestId:e,requestStatus:"pending"}}))),o=u(e+"/rejected",((e,t,r,i,o)=>({payload:i,error:(n&&n.serializeError||j)(e||"Rejected"),meta:{...o||{},arg:r,requestId:t,rejectedWithValue:!!i,requestStatus:"rejected",aborted:"AbortError"===e?.name,condition:"ConditionError"===e?.name}})));return Object.assign((function(e){return(a,s,l)=>{const c=n?.idGenerator?n.idGenerator(e):I(),u=new AbortController;let d,f;function p(e){f=e,u.abort()}const h=async function(){let h;try{let o=n?.condition?.(e,{getState:s,extra:l});if(null!==(m=o)&&"object"===typeof m&&"function"===typeof m.then&&(o=await o),!1===o||u.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const g=new Promise(((e,t)=>{d=()=>{t({name:"AbortError",message:f||"Aborted"})},u.signal.addEventListener("abort",d)}));a(i(c,e,n?.getPendingMeta?.({requestId:c,arg:e},{getState:s,extra:l}))),h=await Promise.race([g,Promise.resolve(t(e,{dispatch:a,getState:s,extra:l,requestId:c,signal:u.signal,abort:p,rejectWithValue:(e,t)=>new R(e,t),fulfillWithValue:(e,t)=>new D(e,t)})).then((t=>{if(t instanceof R)throw t;return t instanceof D?r(t.payload,c,e,t.meta):r(t,c,e)}))])}catch(g){h=g instanceof R?o(null,c,e,g.payload,g.meta):o(g,c,e)}finally{d&&u.signal.removeEventListener("abort",d)}var m;return n&&!n.dispatchConditionRejection&&o.match(h)&&h.meta.condition||a(h),h}();return Object.assign(h,{abort:p,requestId:c,arg:e,unwrap:()=>h.then(L)})}}),{pending:i,rejected:o,fulfilled:r,settled:_(o,r),typePrefix:e})}return e.withTypes=()=>e,e})();function L(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}var z=Symbol.for("rtk-slice-createasyncthunk");function F(e,t){return`${e}/${t}`}function B({creators:e}={}){const t=e?.asyncThunk?.[z];return function(e){const{name:n,reducerPath:r=n}=e;if(!n)throw new Error(V(11));const i=("function"===typeof e.reducers?e.reducers(function(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},o=Object.keys(i),a={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},l={addCase(e,t){const n="string"===typeof e?e:e.type;if(!n)throw new Error(V(12));if(n in a.sliceCaseReducersByType)throw new Error(V(13));return a.sliceCaseReducersByType[n]=t,l},addMatcher:(e,t)=>(a.sliceMatchers.push({matcher:e,reducer:t}),l),exposeAction:(e,t)=>(a.actionCreators[e]=t,l),exposeCaseReducer:(e,t)=>(a.sliceCaseReducersByName[e]=t,l)};function c(){const[t={},n=[],r]="function"===typeof e.extraReducers?w(e.extraReducers):[e.extraReducers],i={...t,...a.sliceCaseReducersByType};return function(e,t){let n,[r,i,o]=w(t);if("function"===typeof e)n=()=>f(e());else{const t=f(e);n=()=>t}function a(e=n(),t){let a=[r[t.type],...i.filter((({matcher:e})=>e(t))).map((({reducer:e})=>e))];return 0===a.filter((e=>!!e)).length&&(a=[o]),a.reduce(((e,n)=>{if(n){if((0,s.Qx)(e)){const r=n(e,t);return void 0===r?e:r}if((0,s.a6)(e))return(0,s.jM)(e,(e=>n(e,t)));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}}return e}),e)}return a.getInitialState=n,a}(e.initialState,(e=>{for(let t in i)e.addCase(t,i[t]);for(let t of a.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)}))}o.forEach((r=>{const o=i[r],a={reducerName:r,type:F(n,r),createNotation:"function"===typeof e.reducers};!function(e){return"asyncThunk"===e._reducerDefinitionType}(o)?function({type:e,reducerName:t,createNotation:n},r,i){let o,a;if("reducer"in r){if(n&&!function(e){return"reducerWithPrepare"===e._reducerDefinitionType}(r))throw new Error(V(17));o=r.reducer,a=r.prepare}else o=r;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,a?u(e,a):u(e))}(a,o,l):function({type:e,reducerName:t},n,r,i){if(!i)throw new Error(V(18));const{payloadCreator:o,fulfilled:a,pending:s,rejected:l,settled:c,options:u}=n,d=i(e,o,u);r.exposeAction(t,d),a&&r.addCase(d.fulfilled,a);s&&r.addCase(d.pending,s);l&&r.addCase(d.rejected,l);c&&r.addMatcher(d.settled,c);r.exposeCaseReducer(t,{fulfilled:a||$,pending:s||$,rejected:l||$,settled:c||$})}(a,o,l,t)}));const d=e=>e,h=new Map;let m;function g(e,t){return m||(m=c()),m(e,t)}function v(){return m||(m=c()),m.getInitialState()}function y(t,n=!1){function r(e){let r=e[t];return"undefined"===typeof r&&n&&(r=v()),r}function i(t=d){const r=p(h,n,(()=>new WeakMap));return p(r,t,(()=>{const r={};for(const[i,o]of Object.entries(e.selectors??{}))r[i]=U(o,t,v,n);return r}))}return{reducerPath:t,getSelectors:i,get selectors(){return i(r)},selectSlice:r}}const b={name:n,reducer:g,actions:a.actionCreators,caseReducers:a.sliceCaseReducersByName,getInitialState:v,...y(r),injectInto(e,{reducerPath:t,...n}={}){const i=t??r;return e.inject({reducerPath:i,reducer:g},n),{...b,...y(i,!0)}}};return b}}function U(e,t,n,r){function i(i,...o){let a=t(i);return"undefined"===typeof a&&r&&(a=n()),e(a,...o)}return i.unwrapped=e,i}var q=B();function $(){}var{assign:H}=Object;Symbol.for("rtk-state-proxy-original");function V(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}},97269:(e,t,n)=>{var r=n(11320),i=n(22894),o=n(23097),a=n(78453),s=n(24381);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},97434:(e,t,n)=>{"use strict";n.d(t,{Kq:()=>te,Ng:()=>ee,Pj:()=>oe,bN:()=>D,d4:()=>ue,vA:()=>de,wA:()=>se});var r=n(59284),i=n(88730),o=r.version.startsWith("19"),a=Symbol.for(o?"react.transitional.element":"react.element"),s=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=p,b=g;function w(e){if("object"===typeof e&&null!==e){const{$$typeof:t}=e;switch(t){case a:switch(e=e.type){case l:case u:case c:case h:case m:return e;default:switch(e=e&&e.$$typeof){case f:case p:case v:case g:case d:return e;default:return t}}case s:return t}}}function x(e,t,n,r,{areStatesEqual:i,areOwnPropsEqual:o,areStatePropsEqual:a}){let s,l,c,u,d,f=!1;function p(f,p){const h=!o(p,l),m=!i(f,s,p,l);return s=f,l=p,h&&m?(c=e(s,l),t.dependsOnOwnProps&&(u=t(r,l)),d=n(c,u,l),d):h?(e.dependsOnOwnProps&&(c=e(s,l)),t.dependsOnOwnProps&&(u=t(r,l)),d=n(c,u,l),d):m?function(){const t=e(s,l),r=!a(t,c);return c=t,r&&(d=n(c,u,l)),d}():d}return function(i,o){return f?p(i,o):(s=i,l=o,c=e(s,l),u=t(r,l),d=n(c,u,l),f=!0,d)}}function _(e){return function(t){const n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function E(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function S(e,t){return function(t,{displayName:n}){const r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=E(e);let i=r(t,n);return"function"===typeof i&&(r.mapToProps=i,r.dependsOnOwnProps=E(i),i=r(t,n)),i},r}}function C(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function k(e,t,n){return{...n,...e,...t}}function O(e){e()}var N={notify(){},get:()=>[]};function T(e,t){let n,r=N,i=0,o=!1;function a(){c.onStateChange&&c.onStateChange()}function s(){i++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){O((()=>{let t=e;for(;t;)t.callback(),t=t.next}))},get(){const t=[];let n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){r&&null!==e&&(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}())}function l(){i--,n&&0===i&&(n(),n=void 0,r.clear(),r=N)}const c={addNestedSub:function(e){s();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),l())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return o},trySubscribe:function(){o||(o=!0,s())},tryUnsubscribe:function(){o&&(o=!1,l())},getListeners:()=>r};return c}var A=(()=>!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement))(),I=(()=>"undefined"!==typeof navigator&&"ReactNative"===navigator.product)(),P=(()=>A||I?r.useLayoutEffect:r.useEffect)();function R(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function D(e,t){if(R(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!R(e[n[i]],t[n[i]]))return!1;return!0}var j={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},M={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},L={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},z={[y]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[b]:L};function F(e){return w(e)===g?L:z[e.$$typeof]||j}var B=Object.defineProperty,U=Object.getOwnPropertyNames,q=Object.getOwnPropertySymbols,$=Object.getOwnPropertyDescriptor,H=Object.getPrototypeOf,V=Object.prototype;function W(e,t){if("string"!==typeof t){if(V){const n=H(t);n&&n!==V&&W(e,n)}let r=U(t);q&&(r=r.concat(q(t)));const i=F(e),o=F(t);for(let a=0;a<r.length;++a){const s=r[a];if(!M[s]&&(!o||!o[s])&&(!i||!i[s])){const r=$(t,s);try{B(e,s,r)}catch(n){}}}}return e}var K=Symbol.for("react-redux-context"),G="undefined"!==typeof globalThis?globalThis:{};function Y(){if(!r.createContext)return{};const e=G[K]??=new Map;let t=e.get(r.createContext);return t||(t=r.createContext(null),e.set(r.createContext,t)),t}var Q=Y(),Z=[null,null];function J(e,t,n,r,i,o){e.current=r,n.current=!1,i.current&&(i.current=null,o())}function X(e,t){return e===t}var ee=function(e,t,n,{pure:i,areStatesEqual:o=X,areOwnPropsEqual:a=D,areStatePropsEqual:s=D,areMergedPropsEqual:l=D,forwardRef:c=!1,context:u=Q}={}){const d=u,f=function(e){return e?"function"===typeof e?S(e):C(e,"mapStateToProps"):_((()=>({})))}(e),p=function(e){return e&&"object"===typeof e?_((t=>function(e,t){const n={};for(const r in e){const i=e[r];"function"===typeof i&&(n[r]=(...e)=>t(i(...e)))}return n}(e,t))):e?"function"===typeof e?S(e):C(e,"mapDispatchToProps"):_((e=>({dispatch:e})))}(t),h=function(e){return e?"function"===typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let i,o=!1;return function(t,n,a){const s=e(t,n,a);return o?r(s,i)||(i=s):(o=!0,i=s),i}}}(e):C(e,"mergeProps"):()=>k}(n),m=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",n=`Connect(${t})`,i={shouldHandleStateChanges:m,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:f,initMapDispatchToProps:p,initMergeProps:h,areStatesEqual:o,areStatePropsEqual:s,areOwnPropsEqual:a,areMergedPropsEqual:l};function u(t){const[n,o,a]=r.useMemo((()=>{const{reactReduxForwardedRef:e,...n}=t;return[t.context,e,n]}),[t]),s=r.useMemo((()=>d),[n,d]),l=r.useContext(s),c=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),u=Boolean(l)&&Boolean(l.store);const f=c?t.store:l.store,p=u?l.getServerState:f.getState,h=r.useMemo((()=>function(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...i}){return x(t(e,i),n(e,i),r(e,i),e,i)}(f.dispatch,i)),[f]),[g,v]=r.useMemo((()=>{if(!m)return Z;const e=T(f,c?void 0:l.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[f,c,l]),y=r.useMemo((()=>c?l:{...l,subscription:g}),[c,l,g]),b=r.useRef(void 0),w=r.useRef(a),_=r.useRef(void 0),E=r.useRef(!1),S=r.useRef(!1),C=r.useRef(void 0);P((()=>(S.current=!0,()=>{S.current=!1})),[]);const k=r.useMemo((()=>()=>_.current&&a===w.current?_.current:h(f.getState(),a)),[f,a]),O=r.useMemo((()=>e=>g?function(e,t,n,r,i,o,a,s,l,c,u){if(!e)return()=>{};let d=!1,f=null;const p=()=>{if(d||!s.current)return;const e=t.getState();let n,p;try{n=r(e,i.current)}catch(h){p=h,f=h}p||(f=null),n===o.current?a.current||c():(o.current=n,l.current=n,a.current=!0,u())};return n.onStateChange=p,n.trySubscribe(),p(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}(m,f,g,h,w,b,E,S,_,v,e):()=>{}),[g]);var N,A,I;let R;N=J,A=[w,b,E,a,_,v],P((()=>N(...A)),I);try{R=r.useSyncExternalStore(O,k,p?()=>h(p(),a):k)}catch(j){throw C.current&&(j.message+=`\nThe error may be correlated with this previous error:\n${C.current.stack}\n\n`),j}P((()=>{C.current=void 0,_.current=void 0,b.current=R}));const D=r.useMemo((()=>r.createElement(e,{...R,ref:o})),[o,e,R]);return r.useMemo((()=>m?r.createElement(s.Provider,{value:y},D):D),[s,D,y])}const g=r.memo(u);if(g.WrappedComponent=e,g.displayName=u.displayName=n,c){const t=r.forwardRef((function(e,t){return r.createElement(g,{...e,reactReduxForwardedRef:t})}));return t.displayName=n,t.WrappedComponent=e,W(t,e)}return W(g,e)}};var te=function(e){const{children:t,context:n,serverState:i,store:o}=e,a=r.useMemo((()=>{const e=T(o);return{store:o,subscription:e,getServerState:i?()=>i:void 0}}),[o,i]),s=r.useMemo((()=>o.getState()),[o]);P((()=>{const{subscription:e}=a;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),s!==o.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}}),[a,s]);const l=n||Q;return r.createElement(l.Provider,{value:a},t)};function ne(e=Q){return function(){return r.useContext(e)}}var re=ne();function ie(e=Q){const t=e===Q?re:ne(e),n=()=>{const{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var oe=ie();function ae(e=Q){const t=e===Q?oe:ie(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var se=ae(),le=(e,t)=>e===t;function ce(e=Q){const t=e===Q?re:ne(e),n=(e,n={})=>{const{equalityFn:o=le}="function"===typeof n?{equalityFn:n}:n;const a=t(),{store:s,subscription:l,getServerState:c}=a,u=(r.useRef(!0),r.useCallback({[e.name]:t=>e(t)}[e.name],[e])),d=(0,i.useSyncExternalStoreWithSelector)(l.addNestedSub,s.getState,c||s.getState,u,o);return r.useDebugValue(d),d};return Object.assign(n,{withTypes:()=>n}),n}var ue=ce(),de=O},97650:function(e,t,n){var r,i,o;i=[n(7139)],void 0===(o="function"===typeof(r=function(e){e.register("locale","bg",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"\u0445\u0438\u043b",million:"\u043c\u043b\u043d",billion:"\u043c\u043b\u0440\u0434",trillion:"\u0442\u0440\u043b\u043d"},ordinal:function(e){return""},currency:{symbol:"\u043b\u0432"}}),e.register("locale","chs",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"\u5343",million:"\u767e\u4e07",billion:"\u5341\u4ebf",trillion:"\u5146"},ordinal:function(e){return"."},currency:{symbol:"\xa5"}}),e.register("locale","cs",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tis.",million:"mil.",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"K\u010d"}}),e.register("locale","da-dk",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mio",billion:"mia",trillion:"b"},ordinal:function(e){return"."},currency:{symbol:"DKK"}}),e.register("locale","de-ch",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return"."},currency:{symbol:"CHF"}}),e.register("locale","de",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return"."},currency:{symbol:"\u20ac"}}),e.register("locale","en-au",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),e.register("locale","en-gb",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"\xa3"}}),e.register("locale","en-za",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"R"}}),e.register("locale","es-es",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===t||3===t?"er":2===t?"do":7===t||0===t?"mo":8===t?"vo":9===t?"no":"to"},currency:{symbol:"\u20ac"}}),e.register("locale","es",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===t||3===t?"er":2===t?"do":7===t||0===t?"mo":8===t?"vo":9===t?"no":"to"},currency:{symbol:"$"}}),e.register("locale","et",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:" tuh",million:" mln",billion:" mld",trillion:" trl"},ordinal:function(e){return"."},currency:{symbol:"\u20ac"}}),e.register("locale","fi",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"M",billion:"G",trillion:"T"},ordinal:function(e){return"."},currency:{symbol:"\u20ac"}}),e.register("locale","fr-ca",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"M",billion:"G",trillion:"T"},ordinal:function(e){return 1===e?"er":"e"},currency:{symbol:"$"}}),e.register("locale","fr-ch",{delimiters:{thousands:"'",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return 1===e?"er":"e"},currency:{symbol:"CHF"}}),e.register("locale","fr",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return 1===e?"er":"e"},currency:{symbol:"\u20ac"}}),e.register("locale","hu",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"E",million:"M",billion:"Mrd",trillion:"T"},ordinal:function(e){return"."},currency:{symbol:" Ft"}}),e.register("locale","it",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mila",million:"mil",billion:"b",trillion:"t"},ordinal:function(e){return"\xba"},currency:{symbol:"\u20ac"}}),e.register("locale","ja",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"\u5343",million:"\u767e\u4e07",billion:"\u5341\u5104",trillion:"\u5146"},ordinal:function(e){return"."},currency:{symbol:"\xa5"}}),e.register("locale","lv",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:" t\u016bkst.",million:" milj.",billion:" mljrd.",trillion:" trilj."},ordinal:function(e){return"."},currency:{symbol:"\u20ac"}}),e.register("locale","nl-be",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:" mln",billion:" mld",trillion:" bln"},ordinal:function(e){var t=e%100;return 0!==e&&t<=1||8===t||t>=20?"ste":"de"},currency:{symbol:"\u20ac "}}),e.register("locale","nl-nl",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mln",billion:"mrd",trillion:"bln"},ordinal:function(e){var t=e%100;return 0!==e&&t<=1||8===t||t>=20?"ste":"de"},currency:{symbol:"\u20ac "}}),e.register("locale","no",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return"."},currency:{symbol:"kr"}}),e.register("locale","pl",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tys.",million:"mln",billion:"mld",trillion:"bln"},ordinal:function(e){return"."},currency:{symbol:"PLN"}}),e.register("locale","pt-br",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mil",million:"milh\xf5es",billion:"b",trillion:"t"},ordinal:function(e){return"\xba"},currency:{symbol:"R$"}}),e.register("locale","pt-pt",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return"\xba"},currency:{symbol:"\u20ac"}}),e.register("locale","ru-ua",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"\u0442\u044b\u0441.",million:"\u043c\u043b\u043d",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"\u20b4"}}),e.register("locale","ru",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"\u0442\u044b\u0441.",million:"\u043c\u043b\u043d.",billion:"\u043c\u043b\u0440\u0434.",trillion:"\u0442\u0440\u043b\u043d."},ordinal:function(){return"."},currency:{symbol:"\u0440\u0443\u0431."}}),e.register("locale","sk",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tis.",million:"mil.",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"\u20ac"}}),e.register("locale","sl",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mio",billion:"mrd",trillion:"trilijon"},ordinal:function(){return"."},currency:{symbol:"\u20ac"}}),e.register("locale","th",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"\u0e1e\u0e31\u0e19",million:"\u0e25\u0e49\u0e32\u0e19",billion:"\u0e1e\u0e31\u0e19\u0e25\u0e49\u0e32\u0e19",trillion:"\u0e25\u0e49\u0e32\u0e19\u0e25\u0e49\u0e32\u0e19"},ordinal:function(e){return"."},currency:{symbol:"\u0e3f"}}),function(){var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};e.register("locale","tr",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"bin",million:"milyon",billion:"milyar",trillion:"trilyon"},ordinal:function(e){if(0===e)return"'\u0131nc\u0131";var n=e%10,r=e%100-n,i=e>=100?100:null;return t[n]||t[r]||t[i]},currency:{symbol:"\u20ba"}})}(),e.register("locale","uk-ua",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"\u0442\u0438\u0441.",million:"\u043c\u043b\u043d",billion:"\u043c\u043b\u0440\u0434",trillion:"\u0431\u043b\u043d"},ordinal:function(){return""},currency:{symbol:"\u20b4"}}),e.register("locale","vi",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:" ngh\xecn",million:" tri\u1ec7u",billion:" t\u1ef7",trillion:" ngh\xecn t\u1ef7"},ordinal:function(){return"."},currency:{symbol:"\u20ab"}})})?r.apply(t,i):r)||(e.exports=o)},97763:(e,t,n)=>{const r=n(15742);t.render=function(e,t,n){let i=n,o=t;"undefined"!==typeof i||t&&t.getContext||(i=t,t=void 0),t||(o=function(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}()),i=r.getOptions(i);const a=r.getImageWidth(e.modules.size,i),s=o.getContext("2d"),l=s.createImageData(a,a);return r.qrToImageData(l.data,e,i),function(e,t,n){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=n,t.width=n,t.style.height=n+"px",t.style.width=n+"px"}(s,o,a),s.putImageData(l,0,0),o},t.renderToDataURL=function(e,n,r){let i=r;"undefined"!==typeof i||n&&n.getContext||(i=n,n=void 0),i||(i={});const o=t.render(e,n,i),a=i.type||"image/png",s=i.rendererOpts||{};return o.toDataURL(a,s.quality)}},98089:(e,t,n)=>{"use strict";n.d(t,{E:()=>l});var r=n(27145),i=n(59284),o=n(63365);const a=(0,n(69220).om)("text"),s=({variant:e="body-1",ellipsis:t,ellipsisLines:n,whiteSpace:r,wordBreak:i},o)=>a({variant:e,ellipsis:t,ws:r,wb:i,"ellipsis-lines":n},o),l=i.forwardRef((function(e,t){var{as:n,children:a,variant:l,className:c,ellipsis:u,color:d,whiteSpace:f,wordBreak:p,ellipsisLines:h,style:m,qa:g}=e,v=(0,r.Tt)(e,["as","children","variant","className","ellipsis","color","whiteSpace","wordBreak","ellipsisLines","style","qa"]);const y=n||"span",b=Object.assign({},m);return"number"===typeof h&&(b.WebkitLineClamp=h),i.createElement(y,Object.assign({ref:t,className:s({variant:l,ellipsis:u,whiteSpace:f,wordBreak:p,ellipsisLines:"number"===typeof h},d?(0,o.$)({color:d},c):c),style:b,"data-qa":g},v),a)}));l.displayName="Text"},98112:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},98137:(e,t,n)=>{var r=n(84401),i=n(96294);e.exports=function(e,t){return e&&r(e,t,i)}},98167:(e,t,n)=>{"use strict";n.d(t,{r:()=>o});n(59284);var r=n(47334),i=n(60712);function o({loading:e,size:t="m",className:n,children:o}){return e?(0,i.jsx)(r.a,{size:t,className:n}):o}},98220:(e,t)=>{t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const n=3,r=3,i=40,o=10;function a(e,n,r){switch(e){case t.Patterns.PATTERN000:return(n+r)%2===0;case t.Patterns.PATTERN001:return n%2===0;case t.Patterns.PATTERN010:return r%3===0;case t.Patterns.PATTERN011:return(n+r)%3===0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2===0;case t.Patterns.PATTERN101:return n*r%2+n*r%3===0;case t.Patterns.PATTERN110:return(n*r%2+n*r%3)%2===0;case t.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2===0;default:throw new Error("bad maskPattern:"+e)}}t.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){const t=e.size;let r=0,i=0,o=0,a=null,s=null;for(let l=0;l<t;l++){i=o=0,a=s=null;for(let c=0;c<t;c++){let t=e.get(l,c);t===a?i++:(i>=5&&(r+=n+(i-5)),a=t,i=1),t=e.get(c,l),t===s?o++:(o>=5&&(r+=n+(o-5)),s=t,o=1)}i>=5&&(r+=n+(i-5)),o>=5&&(r+=n+(o-5))}return r},t.getPenaltyN2=function(e){const t=e.size;let n=0;for(let r=0;r<t-1;r++)for(let i=0;i<t-1;i++){const t=e.get(r,i)+e.get(r,i+1)+e.get(r+1,i)+e.get(r+1,i+1);4!==t&&0!==t||n++}return n*r},t.getPenaltyN3=function(e){const t=e.size;let n=0,r=0,o=0;for(let i=0;i<t;i++){r=o=0;for(let a=0;a<t;a++)r=r<<1&2047|e.get(i,a),a>=10&&(1488===r||93===r)&&n++,o=o<<1&2047|e.get(a,i),a>=10&&(1488===o||93===o)&&n++}return n*i},t.getPenaltyN4=function(e){let t=0;const n=e.data.length;for(let r=0;r<n;r++)t+=e.data[r];return Math.abs(Math.ceil(100*t/n/5)-10)*o},t.applyMask=function(e,t){const n=t.size;for(let r=0;r<n;r++)for(let i=0;i<n;i++)t.isReserved(i,r)||t.xor(i,r,a(e,i,r))},t.getBestMask=function(e,n){const r=Object.keys(t.Patterns).length;let i=0,o=1/0;for(let a=0;a<r;a++){n(a),t.applyMask(a,e);const r=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(a,e),r<o&&(o=r,i=a)}return i}},98392:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(59284),i=n(48681);const o=r.createContext({current:null});o.displayName="PortalContext";var a=n(69118),s=n(46878);const l=(0,n(69220).om)("portal");function c({container:e,children:t,disablePortal:n}){const c=function(){var e;const t=r.useContext(o);let n=null;return"object"===typeof window&&(n=window.document.body),null!==(e=t.current)&&void 0!==e?e:n}(),{scoped:u}=(0,s.w)(),d=null!==e&&void 0!==e?e:c;return n?r.createElement(r.Fragment,null,t):d?i.createPortal(u?r.createElement(a.N,{rootClassName:l("theme-wrapper"),scoped:!0},t):t,d):null}},98545:e=>{e.exports=function(e){return this.__data__.has(e)}},98587:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}n.d(t,{A:()=>r})},98599:e=>{"use strict";e.exports="undefined"!==typeof Reflect&&Reflect&&Reflect.apply},98730:(e,t,n)=>{"use strict";function r(e){return!!e&&("Version"in e&&"number"===typeof e.Version&&e.Version>=2)}n.d(t,{L:()=>r})},98816:(e,t,n)=>{var r=n(68814),i=n(58120);e.exports=function(e){return i(r(e).toLowerCase())}},99006:(e,t,n)=>{"use strict";n.d(t,{_:()=>l});var r=n(59284),i=n(74417),o=n(34271),a=n(82266),s=n(60712);function l(e,t,n){const i=r.lazy((()=>e().then((e=>({default:e[t]}))).catch((e=>({default:()=>(0,s.jsx)(a.jt,{error:e})}))))),l=r.forwardRef(((e,t)=>{const a=(0,o.x)("ErrorBoundary");return(0,s.jsx)(a,{children:(0,s.jsx)(r.Suspense,{fallback:null!==n&&void 0!==n?n:(0,s.jsx)(c,{}),children:(0,s.jsx)(i,{ref:t,...e})})})}));return l.displayName=t,l}function c(){return(0,s.jsx)("div",{style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,s.jsx)(i.a,{size:"l"})})}},99105:(e,t,n)=>{const r=n(71928),i=n(3773),o=n(44593),a=n(89990),s=n(6693),l=n(16284),c=n(22750),u=n(9624);function d(e){return unescape(encodeURIComponent(e)).length}function f(e,t,n){const r=[];let i;for(;null!==(i=e.exec(n));)r.push({data:i[0],index:i.index,mode:t,length:i[0].length});return r}function p(e){const t=f(l.NUMERIC,r.NUMERIC,e),n=f(l.ALPHANUMERIC,r.ALPHANUMERIC,e);let i,o;c.isKanjiModeEnabled()?(i=f(l.BYTE,r.BYTE,e),o=f(l.KANJI,r.KANJI,e)):(i=f(l.BYTE_KANJI,r.BYTE,e),o=[]);return t.concat(n,i,o).sort((function(e,t){return e.index-t.index})).map((function(e){return{data:e.data,mode:e.mode,length:e.length}}))}function h(e,t){switch(t){case r.NUMERIC:return i.getBitsLength(e);case r.ALPHANUMERIC:return o.getBitsLength(e);case r.KANJI:return s.getBitsLength(e);case r.BYTE:return a.getBitsLength(e)}}function m(e,t){let n;const l=r.getBestModeForData(e);if(n=r.from(t,l),n!==r.BYTE&&n.bit<l.bit)throw new Error('"'+e+'" cannot be encoded with mode '+r.toString(n)+".\n Suggested mode is: "+r.toString(l));switch(n!==r.KANJI||c.isKanjiModeEnabled()||(n=r.BYTE),n){case r.NUMERIC:return new i(e);case r.ALPHANUMERIC:return new o(e);case r.KANJI:return new s(e);case r.BYTE:return new a(e)}}t.fromArray=function(e){return e.reduce((function(e,t){return"string"===typeof t?e.push(m(t,null)):t.data&&e.push(m(t.data,t.mode)),e}),[])},t.fromString=function(e,n){const i=function(e){const t=[];for(let n=0;n<e.length;n++){const i=e[n];switch(i.mode){case r.NUMERIC:t.push([i,{data:i.data,mode:r.ALPHANUMERIC,length:i.length},{data:i.data,mode:r.BYTE,length:i.length}]);break;case r.ALPHANUMERIC:t.push([i,{data:i.data,mode:r.BYTE,length:i.length}]);break;case r.KANJI:t.push([i,{data:i.data,mode:r.BYTE,length:d(i.data)}]);break;case r.BYTE:t.push([{data:i.data,mode:r.BYTE,length:d(i.data)}])}}return t}(p(e,c.isKanjiModeEnabled())),o=function(e,t){const n={},i={start:{}};let o=["start"];for(let a=0;a<e.length;a++){const s=e[a],l=[];for(let e=0;e<s.length;e++){const c=s[e],u=""+a+e;l.push(u),n[u]={node:c,lastCount:0},i[u]={};for(let e=0;e<o.length;e++){const a=o[e];n[a]&&n[a].node.mode===c.mode?(i[a][u]=h(n[a].lastCount+c.length,c.mode)-h(n[a].lastCount,c.mode),n[a].lastCount+=c.length):(n[a]&&(n[a].lastCount=c.length),i[a][u]=h(c.length,c.mode)+4+r.getCharCountIndicator(c.mode,t))}}o=l}for(let r=0;r<o.length;r++)i[o[r]].end=0;return{map:i,table:n}}(i,n),a=u.find_path(o.map,"start","end"),s=[];for(let t=1;t<a.length-1;t++)s.push(o.table[a[t]].node);return t.fromArray(function(e){return e.reduce((function(e,t){const n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)}),[])}(s))},t.rawSplit=function(e){return t.fromArray(p(e,c.isKanjiModeEnabled()))}},99158:(e,t,n)=>{"use strict";e.exports=n(91407)},99635:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(59284),i=n(359),o=n(11669);const a=new class{constructor(){this.stack=[],this.handleDocumentKeyDown=e=>{var t,n,r;if(e.code===i.D.ESCAPE){const r=this.getTopLayer();r.disableEscapeKeyDown||(null===(t=r.onEscapeKeyDown)||void 0===t||t.call(r,e),null===(n=r.onClose)||void 0===n||n.call(r,e,"escapeKeyDown"))}if("Enter"===e.code){const t=this.getTopLayer();null===(r=t.onEnterKeyDown)||void 0===r||r.call(t,e)}},this.handleDocumentClick=e=>{var t,n;if(this.isToastClick(e))return;let r,i=null;if(this.mouseDownLayerTarget){if(r=this.mouseDownLayerTarget.layer,i=this.mouseDownLayerTarget.target,this.mouseDownLayerTarget=void 0,!this.stack.includes(r))return}else r=this.getTopLayer();!r.disableOutsideClick&&this.isOutsideClick(r,e,i)&&(null===(t=r.onOutsideClick)||void 0===t||t.call(r,e),null===(n=r.onClose)||void 0===n||n.call(r,e,"outsideClick"))},this.handleDocumentMouseDown=e=>{const t=this.getTopLayer();t&&(this.mouseDownLayerTarget={layer:t,target:e.target})}}add(e){this.stack.push(e),1===this.stack.length&&this.addListeners(),this.notifyLayersChange()}remove(e){const t=this.stack.indexOf(e);this.stack.splice(t,1),0===this.stack.length&&this.removeListeners(),this.notifyLayersChange()}getLayersCount(){return this.stack.length}getLayers(){return this.stack.map((({type:e})=>({type:e})))}addListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("click",this.handleDocumentClick,!0),document.addEventListener("mousedown",this.handleDocumentMouseDown,!0)}removeListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("click",this.handleDocumentClick,!0),document.removeEventListener("mousedown",this.handleDocumentMouseDown,!0)}notifyLayersChange(){o.o.publish({componentId:"LayerManager",eventId:"layerschange",meta:{layersCount:this.getLayersCount(),layers:this.getLayers()}})}getTopLayer(){return this.stack[this.stack.length-1]}isOutsideClick(e,t,n=null){const r=e.contentRefs||[],{target:i}=t,o="function"===typeof t.composedPath?t.composedPath():[];if(r.length>0){return!r.some((e=>{var t,r,a,s;return(null===(r=null===(t=null===e||void 0===e?void 0:e.current)||void 0===t?void 0:t.contains)||void 0===r?void 0:r.call(t,i))||(null===(s=null===(a=null===e||void 0===e?void 0:e.current)||void 0===a?void 0:a.contains)||void 0===s?void 0:s.call(a,n))||o.includes(null===e||void 0===e?void 0:e.current)}))}return!1}isToastClick(e){return("function"===typeof e.composedPath?e.composedPath():[]).some((e=>{var t;return Boolean(null===(t=null===e||void 0===e?void 0:e.dataset)||void 0===t?void 0:t.toast)}))}};function s({open:e,disableEscapeKeyDown:t,disableOutsideClick:n,onEscapeKeyDown:i,onEnterKeyDown:o,onOutsideClick:s,onClose:l,contentRefs:c,enabled:u=!0,type:d}){const f=r.useRef({disableEscapeKeyDown:t,disableOutsideClick:n,onEscapeKeyDown:i,onEnterKeyDown:o,onOutsideClick:s,onClose:l,contentRefs:c,type:d});r.useEffect((()=>{Object.assign(f.current,{disableEscapeKeyDown:t,disableOutsideClick:n,onEscapeKeyDown:i,onEnterKeyDown:o,onOutsideClick:s,onClose:l,contentRefs:c,enabled:u})}),[t,n,i,o,s,l,c,u]),r.useEffect((()=>{if(e&&u){const e=f.current;return a.add(e),()=>{a.remove(e)}}}),[e,u])}},99661:(e,t,n)=>{var r=n(57578);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},99806:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},99889:(e,t,n)=>{var r=n(74413);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},99991:(e,t,n)=>{"use strict";n.d(t,{I:()=>c});var r=n(59284),i=n(69220);const o={"aria-hidden":!0};function a(e){return"object"===typeof e}function s(e){return"string"===typeof e}const l=(0,i.om)("icon"),c=r.forwardRef((({data:e,width:t,height:n,size:i,className:u,fill:d="currentColor",stroke:f="none",qa:p},h)=>{let m,g,v;if(i&&(m=i,g=i),t&&(m=t),n&&(g=n),a(e))({viewBox:v}=e);else if(s(e))v=function(e){const t=e.match(/viewBox=(["']?)([\d\s,-]+)\1/);return t?t[2]:void 0}(e);else if(function(e){return("object"===typeof e||"function"===typeof e)&&"defaultProps"in e}(e))({viewBox:v}=e.defaultProps);else if(function(e){return"function"===typeof e&&(!e.prototype||!e.prototype.render)}(e)){const t=e({});t&&({viewBox:v}=t.props)}if(v&&(!m||!g)){const e=v.split(/\s+|\s*,\s*/);m||(m=e[2]),g||(g=e[3])}const y=Object.assign({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:m,height:g,className:l(null,u),fill:d,stroke:f,"data-qa":p},o);if(s(e)){const t=function(e){return e.replace(/<svg[^>]*>/,(e=>e.replace(/(width|height)=(["']?)\d+\2/g,"").replace(/(\s){2,}\b/g,"$1").replace(/(\s)+>/g,">")))}(e);return r.createElement("svg",Object.assign({},y,{ref:h,dangerouslySetInnerHTML:{__html:t}}))}if(a(e)){const t=c.prefix+(e.url||`#${e.id}`);return r.createElement("svg",Object.assign({},y,{viewBox:v,ref:h}),r.createElement("use",{href:t,xlinkHref:t}))}const b=e;return b.defaultProps&&(b.defaultProps.width=b.defaultProps.height=void 0),r.createElement("svg",Object.assign({},y,{ref:h}),r.createElement(b,{width:void 0,height:void 0}))}));c.displayName="Icon",c.prefix=""}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.m=e,n.amdO={},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(r,i){if(1&i&&(r=this(r)),8&i)return r;if("object"===typeof r&&r){if(4&i&&r.__esModule)return r;if(16&i&&"function"===typeof r.then)return r}var o=Object.create(null);n.r(o);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&i&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>r[e]));return a.default=()=>r,n.d(o,a),o}})(),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.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((t,r)=>(n.f[r](e,t),t)),[])),n.u=e=>"static/js/"+e+"."+{30:"69969059",47:"54dd12ac",60:"85d957cd",99:"73d10ff1",108:"d2d9c180",110:"2c798565",118:"112f7e2f",132:"cf00f1e7",221:"b740df48",225:"cf362439",245:"041a06df",246:"13bb9db2",290:"b4f1e118",310:"b23bf6b2",431:"f23349ec",513:"46a664ad",523:"17013d4e",628:"70d08de9",654:"863ea445",684:"9346e985",710:"87e9f2e0",730:"a22f6f5f",734:"3fe325e9",811:"a0c1e1ce",856:"36f195a5",902:"a1b90b1b",921:"0402e36c",949:"12b4714d",957:"08a1c505",1053:"f976b474",1088:"40c16ea2",1094:"b5bb2475",1187:"c5435886",1237:"328d0241",1278:"d5c24e15",1299:"aaedb42e",1321:"401aa9b8",1329:"d6e31925",1414:"4cfda0bc",1486:"8a488ae4",1496:"18b1eb19",1606:"0041ed7d",1627:"80c94ebf",1657:"d6f0b340",1696:"6120f4a8",1747:"f01c9fd8",1756:"b612458a",1836:"1a1c6d4b",1865:"72c933c8",1917:"e3ac9c6d",1956:"c11f9b8a",1975:"e3066826",2016:"397296b7",2031:"d8f098f9",2042:"81e83eeb",2053:"b4294b46",2161:"865bcd48",2162:"cca3e026",2166:"e382ccb1",2182:"1e53f745",2286:"e992ffd4",2308:"9e3a980c",2350:"a7af0a2e",2372:"880a31f6",2466:"b8b05e16",2518:"ac97d255",2568:"5bec7af3",2612:"55127fa0",2626:"a5b0d58c",2726:"abc3a0c2",2742:"d5c8fae8",2775:"9105769d",2776:"0f5e87f5",2854:"48cc58dc",2984:"df749ebe",2994:"6c6016a8",3008:"c8aa656b",3033:"06c03554",3048:"692b5966",3121:"74e9e7dc",3158:"3f2d4e5f",3238:"a9505f7f",3321:"3370cf83",3333:"eb9ec516",3338:"83fe4e63",3410:"6391755f",3478:"480dafa6",3510:"0740f36d",3521:"775b3981",3534:"3f09429a",3638:"ee3efb24",3648:"3a72999a",3653:"06b5272c",3672:"12436dd6",3679:"e293221d",3702:"778880f9",3756:"9a440b73",3761:"dd957fd1",3769:"860e8d58",3779:"1d869a05",3812:"368eb751",3822:"00ab6aaa",3872:"a25d87b5",3879:"17f211ad",3902:"973b73c6",3952:"ce1b4fad",3977:"4c33ec16",4096:"33f702a0",4130:"4d4b9fad",4169:"f2243012",4180:"1de6c8ba",4324:"c69948f7",4349:"9c8d20fd",4401:"f46d19f6",4441:"2b4963cf",4534:"b98f1389",4542:"18433910",4582:"5bf174ff",4601:"39745c4e",4652:"9a5d2242",4662:"1c10232d",4678:"4e2f4af4",4730:"78e66e9a",4818:"6beda30c",4847:"63c73f0a",4870:"1916a88d",4872:"bbf7ab34",4891:"c441be74",5027:"9e6325ef",5047:"ebc9f1b2",5050:"ffa3921f",5161:"20e37d15",5252:"991dcab8",5382:"3a2e6ac6",5401:"dfb63825",5418:"00d0c5d1",5438:"91fe1c76",5453:"921caa82",5454:"e8f64f1a",5475:"20ce4f75",5542:"7c13d444",5579:"a2c9515c",5634:"0a0bddae",5636:"da9c4c85",5647:"0920ef73",5652:"40b9a7d3",5685:"c0a21a10",5759:"52418ea5",5816:"144b5755",5819:"0ae2eb3d",5853:"0c5ec1d1",5866:"14d27c8c",5875:"f8a190bf",5888:"4fa64369",5924:"53ba4f49",5950:"28656717",5953:"cb95c45e",5988:"38ef363d",6012:"aac08e72",6030:"b30fca36",6047:"328b41a5",6114:"c74edf11",6210:"69d6a30a",6214:"a9a481a7",6261:"78de43a8",6262:"44dba84f",6324:"de01edfb",6342:"a2819c87",6358:"2997762b",6374:"be0c5879",6397:"b8cf6fae",6405:"b0dd94a9",6447:"2c0d9bda",6541:"a39e9d6a",6554:"6dfab136",6625:"a8d44d36",6658:"b22172da",6664:"b4dbf019",6786:"28af14f6",6820:"bff2520f",6833:"584b7806",6879:"2965a366",6881:"7e6434c9",6990:"70257b9b",7118:"ce0cd05f",7148:"ef54cd41",7206:"6b7278f5",7240:"a674bc94",7329:"514640a4",7348:"eac33db2",7357:"a518ad9e",7380:"38a8eedf",7420:"d0c66c34",7548:"fd5d2b6c",7574:"8ac9803d",7579:"079e5569",7605:"cdc8f605",7614:"00d00ded",7638:"5489d672",7642:"39707d60",7692:"af7181c9",7697:"44af783d",7718:"f897f8ca",7748:"3ec14243",7878:"1f9512c4",7946:"3b4cf6fd",7962:"43ffbad7",7970:"80caf61d",8008:"da36f479",8014:"eb9f97f2",8053:"71be175a",8081:"5fafc7dc",8103:"00c9e9c1",8119:"196e82ef",8234:"7512920e",8256:"a2ce240a",8393:"2e643149",8452:"3bfa9018",8517:"cf981031",8534:"f7aec532",8633:"da605a09",8704:"87492da1",8706:"755fcb81",8821:"96eeccd6",8840:"5eb376ca",8868:"a9031705",8890:"9f3d8f08",8979:"0c0acc31",8986:"de287636",9010:"4bfaf5fa",9025:"6ae28867",9067:"254af4a9",9172:"f332051f",9174:"ae7682da",9176:"3f08336f",9220:"a9f48eb9",9222:"a1913f85",9243:"cb95c73b",9300:"89daa9ec",9312:"5eb8d4b1",9393:"b0a1bf0a",9394:"ca56f408",9433:"4cf14d1c",9466:"0afe6e6e",9507:"14872b99",9518:"3fffdd45",9523:"ac019963",9582:"c09a3623",9606:"fc9247cb",9697:"bed5988b",9707:"72e68790",9725:"a94823a0",9728:"7cc957e4",9748:"e711e962",9778:"52ad76ce",9796:"23c68f38",9801:"b9143d43",9802:"b15025e5",9842:"b8ba19ad",9872:"65a6fae7",9882:"b983931a",9908:"4bd3acb1",9922:"367b63b0"}[e]+".chunk.js",n.miniCssF=e=>"static/css/"+e+"."+{99:"7cffb936",431:"3826ea2f",684:"a4d29f42",2031:"1e565ac5",3779:"66c0ef83",3812:"440ff245",5438:"615bd68a",5652:"261c3a7a",6030:"05f92b81",8393:"09a78946",8593:"95df9723",9393:"c6fb8cd9",9796:"828f7385",9802:"d30d0ff3"}[e]+".chunk.css",n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="ydb-embedded-ui:";n.l=(r,i,o,a)=>{if(e[r])e[r].push(i);else{var s,l;if(void 0!==o)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==t+o){s=d;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,n.nc&&s.setAttribute("nonce",n.nc),s.setAttribute("data-webpack",t+o),s.src=r),e[r]=[i];var f=(t,n)=>{s.onerror=s.onload=null,clearTimeout(p);var i=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach((e=>e(n))),t)return t(n)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=f.bind(null,s.onerror),s.onload=f.bind(null,s.onload),l&&document.head.appendChild(s)}}})(),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.p="./",(()=>{if("undefined"!==typeof document){var e=e=>new Promise(((t,r)=>{var i=n.miniCssF(e),o=n.p+i;if(((e,t)=>{for(var n=document.getElementsByTagName("link"),r=0;r<n.length;r++){var i=(a=n[r]).getAttribute("data-href")||a.getAttribute("href");if("stylesheet"===a.rel&&(i===e||i===t))return a}var o=document.getElementsByTagName("style");for(r=0;r<o.length;r++){var a;if((i=(a=o[r]).getAttribute("data-href"))===e||i===t)return a}})(i,o))return t();((e,t,r,i,o)=>{var a=document.createElement("link");a.rel="stylesheet",a.type="text/css",n.nc&&(a.nonce=n.nc),a.onerror=a.onload=n=>{if(a.onerror=a.onload=null,"load"===n.type)i();else{var r=n&&n.type,s=n&&n.target&&n.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+r+": "+s+")");l.name="ChunkLoadError",l.code="CSS_CHUNK_LOAD_FAILED",l.type=r,l.request=s,a.parentNode&&a.parentNode.removeChild(a),o(l)}},a.href=t,r?r.parentNode.insertBefore(a,r.nextSibling):document.head.appendChild(a)})(e,o,null,t,r)})),t={8792:0};n.f.miniCss=(n,r)=>{t[n]?r.push(t[n]):0!==t[n]&&{99:1,431:1,684:1,2031:1,3779:1,3812:1,5438:1,5652:1,6030:1,8393:1,8593:1,9393:1,9796:1,9802:1}[n]&&r.push(t[n]=e(n).then((()=>{t[n]=0}),(e=>{throw delete t[n],e})))}}})(),(()=>{var e={8792:0};n.f.j=(t,r)=>{var i=n.o(e,t)?e[t]:void 0;if(0!==i)if(i)r.push(i[2]);else if(8593!=t){var o=new Promise(((n,r)=>i=e[t]=[n,r]));r.push(i[2]=o);var a=n.p+n.u(t),s=new Error;n.l(a,(r=>{if(n.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var o=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",s.name="ChunkLoadError",s.type=o,s.request=a,i[1](s)}}),"chunk-"+t,t)}else e[t]=0};var t=(t,r)=>{var i,o,[a,s,l]=r,c=0;if(a.some((t=>0!==e[t]))){for(i in s)n.o(s,i)&&(n.m[i]=s[i]);if(l)l(n)}for(t&&t(r);c<a.length;c++)o=a[c],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0},r=globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),(()=>{"use strict";var e=n(5906),t=n(25412),r=n(42566),i=n(54878);const{store:o,history:a}=(0,i.U1)();var s=n(60712);!async function(){let r;r=await Promise.resolve().then(n.bind(n,25412)).then((({SingleClusterApp:e})=>e));const i=document.getElementById("root");if(!i)throw new Error("Can't find root element");e.createRoot(i).render((0,s.jsx)(t.ErrorBoundary,{children:(0,s.jsx)(r,{store:o,history:a})}))}(),(0,r.A)()})()})();
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/main.9d6586d0.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/main.806ca619.js.LICENSE.txt index ab1d0ae270..ab1d0ae270 100644 --- a/ydb/core/viewer/monitoring/static/js/main.9d6586d0.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/main.806ca619.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/main.9d6586d0.js b/ydb/core/viewer/monitoring/static/js/main.9d6586d0.js deleted file mode 100644 index 319bc0e7c6..0000000000 --- a/ydb/core/viewer/monitoring/static/js/main.9d6586d0.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see main.9d6586d0.js.LICENSE.txt */ -(()=>{var e={71661:(e,t,n)=>{"use strict";n.d(t,{s:()=>l});var r=n(84375),i=n(77506),o=n(60712);const a=(0,i.cn)("ydb-cell-with-popover"),s=100;function l({children:e,className:t,wrapperClassName:n,fullWidth:i,...l}){return(0,o.jsx)("div",{className:a({"full-width":i},n),children:(0,o.jsx)(r.A,{delayClosing:s,delayOpening:s,className:a("popover",{"full-width":i},t),...l,children:e})})}},34271:(e,t,n)=>{"use strict";n.d(t,{I:()=>a,x:()=>s});var r=n(59284),i=n(60712);const o=r.createContext(void 0);function a({children:e,registry:t}){return(0,i.jsx)(o.Provider,{value:t,children:e})}function s(e){const t=r.useContext(o);if(void 0===t)throw new Error("useComponent must be used within ComponentsProvider");return t.get(e)}},1064:(e,t,n)=>{"use strict";n.d(t,{S:()=>v});var r=n(59284),i=n(16332),o=n(2198),a=n(23871),s=n(77506),l=n(25196);const c=(0,n(99006)._)((()=>Promise.all([n.e(6820),n.e(8452),n.e(5438)]).then(n.bind(n,45438))),"ConnectToDBSyntaxHighlighter");var u=n(63636);var d=n(60712);const f=(0,s.cn)("ydb-connect-to-db"),p=[{id:"bash",title:"Bash"},{id:"cpp",title:"C++"},{id:"csharp",title:"C# (.NET)"},{id:"go",title:"Go"},{id:"java",title:"Java"},{id:"javascript",title:"Node JS"},{id:"php",title:"PHP"},{id:"python",title:"Python"}];function h({open:e,onClose:t,database:n,endpoint:i}){const[s,h]=r.useState("bash"),m=function(e,t){switch(e){case"cpp":return function({database:e,endpoint:t}){return`auto connectionParams = TConnectionsParams()\n .SetEndpoint("${null!==t&&void 0!==t?t:"<endpoint>"}")\n .SetDatabase("${null!==e&&void 0!==e?e:"/<database>"}")\n .SetAuthToken(GetEnv("YDB_TOKEN"));\n\nTDriver driver(connectionParams);`}(t);case"csharp":return function({database:e,endpoint:t}){return`var config = new DriverConfig(\n endpoint: "${null!==t&&void 0!==t?t:"<endpoint>"}",\n database: "${null!==e&&void 0!==e?e:"/<database>"}",\n credentials: credentialsProvider\n);\n\nusing var driver = new Driver(\n config: config\n);\n\nawait driver.Initialize();`}(t);case"go":return function({database:e,endpoint:t}){return`package main\n\nimport (\n "context"\n "os"\n\n "github.com/ydb-platform/ydb-go-sdk/v3"\n "github.com/ydb-platform/ydb-go-sdk/v3/table"\n)\n\nfunc main() {\n ctx, cancel := context.WithCancel(context.Background())\n defer cancel()\n db, err := ydb.Open(ctx,\n "${null!==t&&void 0!==t?t:"<endpoint>"}${null!==e&&void 0!==e?e:"/<database>"}",\n ydb.WithAccessTokenCredentials(os.Getenv("YDB_ACCESS_TOKEN_CREDENTIALS")),\n )\n if err != nil {\n panic(err)\n }\n\n defer db.Close(ctx)\n\n err = db.Table().Do(ctx,\n func(ctx context.Context, s table.Session) error {\n _, res, err := s.Execute(\n ctx,\n table.TxControl(table.BeginTx(table.WithOnlineReadOnly()), table.CommitTx()),\n "SELECT 'Hello, world!'",\n nil,\n )\n if err != nil {\n return err\n }\n defer res.Close()\n var val string\n\n for res.NextResultSet(ctx) {\n for res.NextRow() {\n err = res.Scan(&val)\n if err != nil {\n return err\n }\n println(val)\n }\n }\n return res.Err()\n })\n if err != nil {\n panic(err)\n }\n}`}(t);case"java":return function({database:e,endpoint:t}){return`package com.example;\n\nimport java.io.IOException;\nimport java.nio.charset.Charset;\n\nimport tech.ydb.core.grpc.GrpcTransport;\nimport tech.ydb.table.SessionRetryContext;\nimport tech.ydb.table.TableClient;\nimport tech.ydb.table.query.DataQueryResult;\nimport tech.ydb.table.result.ResultSetReader;\nimport tech.ydb.table.transaction.TxControl;\nimport tech.ydb.auth.TokenAuthProvider;\n\npublic class YDBConnect {\n public static void main(String[] args) throws IOException {\n try (GrpcTransport transport = GrpcTransport.forEndpoint(\n "${null!==t&&void 0!==t?t:"<endpoint>"}",\n "${null!==e&&void 0!==e?e:"/<database>"}")\n .withAuthProvider(new TokenAuthProvider(System.getenv("YDB_ACCESS_TOKEN_CREDENTIALS")))\n .build()) {\n try (TableClient tableClient = TableClient.newClient(transport)\n .build()) {\n SessionRetryContext retryCtx = SessionRetryContext.create(tableClient).build();\n DataQueryResult queryResult = retryCtx.supplyResult(\n session -> session.executeDataQuery("SELECT 'Hello, world!'", TxControl.serializableRw())\n ).join().getValue();\n\n ResultSetReader rsReader = queryResult.getResultSet(0);\n while (rsReader.next()) {\n System.out.println(rsReader.getColumn(0).getBytesAsString(Charset.forName("utf8")));\n }\n }\n }\n }\n}`}(t);case"javascript":return function({database:e,endpoint:t}){return`const {Driver, getCredentialsFromEnv, getLogger} = require('ydb-sdk');\n\nconst logger = getLogger({level: 'debug'});\nconst endpoint = '${null!==t&&void 0!==t?t:"<endpoint>"}';\nconst database = '${null!==e&&void 0!==e?e:"/<database>"}';\nconst authService = getCredentialsFromEnv();\nconst driver = new Driver({endpoint, database, authService});\n\nasync function run() {\n if (!await driver.ready(100)) {\n logger.fatal('Driver has not become ready in 10 seconds!');\n process.exit(1);\n }\n\n await driver.tableClient.withSession(async (session) => {\n res = await session.executeQuery("SELECT 'Hello, world!'")\n console.log(res.resultSets[0].rows[0].items[0].bytesValue.toString())\n return\n });\n\n process.exit(0)\n}\n\nrun();`}(t);case"php":return function({database:e,endpoint:t}){return`<?php\n\nuse YdbPlatform\\Ydb\\Ydb;\n\n$config = [\n // Database path\n 'database' => '${null!==e&&void 0!==e?e:"/<database>"}',\n\n // Database endpoint\n 'endpoint' => '${null!==t&&void 0!==t?t:"<endpoint>"}',\n\n // Auto discovery (dedicated server only)\n 'discovery' => false,\n\n // IAM config\n 'iam_config' => [\n // 'root_cert_file' => './CA.pem', Root CA file (uncomment for dedicated server only)\n ],\n\n 'credentials' => new AccessTokenAuthentication('<token>') // use from reference/ydb-sdk/auth\n];\n\n$ydb = new Ydb($config);`}(t);case"python":return function({database:e,endpoint:t}){return`#!/usr/bin/python3\nimport ydb\n\ndriver_config = ydb.DriverConfig(\n '${t||"<endpoint>"}', '${null!==e&&void 0!==e?e:"/<database>"}',\n credentials=ydb.credentials_from_env_variables(),\n)\nprint(driver_config)\nwith ydb.Driver(driver_config) as driver:\n try:\n driver.wait(10)\n session = driver.table_client.session().create()\n with session.transaction() as tx:\n query = "SELECT 'Hello, world!'"\n result_set = tx.execute(query)[0]\n for row in result_set.rows:\n print(row)\n except TimeoutError:\n print("Connect failed to YDB")\n print("Last reported errors by discovery:")\n print(driver.discovery_debug_details())`}(t);default:return function({database:e,endpoint:t}){return`ydb -e ${t||"<endpoint>"} --token-file ~/my_token\n -d ${null!==e&&void 0!==e?e:"/<database>"} table query execute -q 'SELECT "Hello, world!"'`}(t)}}(s,{database:n,endpoint:i}),g=function(e){switch(e){case"bash":return(0,u.A)("docs_bash");case"cpp":return(0,u.A)("docs_cpp");case"csharp":return(0,u.A)("docs_dotnet");case"go":return(0,u.A)("docs_go");case"java":return(0,u.A)("docs_java");case"javascript":return(0,u.A)("docs_nodejs");case"php":return(0,u.A)("docs_php");case"python":return(0,u.A)("docs_python");default:return}}(s);return(0,d.jsxs)(o.l,{open:e,hasCloseButton:!0,onClose:t,size:"l",children:[(0,d.jsx)(o.l.Header,{caption:(0,u.A)("header")}),(0,d.jsxs)(o.l.Body,{children:[(0,d.jsx)("div",{children:(0,u.A)("connection-info-message")}),(0,d.jsx)(a.t,{size:"m",allowNotSelected:!1,activeTab:s,items:p,onSelectTab:e=>h(e),className:f("dialog-tabs")}),(0,d.jsx)("div",{className:f("snippet-container"),children:(0,d.jsx)(c,{language:s,text:m})}),g?(0,d.jsx)(l.K,{className:f("docs"),title:(0,u.A)("documentation"),url:g}):null]}),(0,d.jsx)(o.l.Footer,{onClickButtonCancel:t,textButtonCancel:(0,u.A)("close")})]})}const m=i.Ay.create((e=>{const t=i.Ay.useModal();return(0,d.jsx)(h,{...e,onClose:()=>{t.resolve(!1),t.hide(),t.remove()},open:t.visible})})),g="connect-to-db-dialog";async function v(e){return await i.Ay.show(g,{id:g,...e})}i.Ay.register(g,m)},63636:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(48372);const i=JSON.parse('{"header":"Connect to the database","connection-info-message":"Use the following code to connect to the database","documentation":"Documentation","close":"Close","copy":"Copy","docs_bash":"https://ydb.tech/docs/en/concepts/connect","docs_cpp":"https://ydb.tech/docs/en/dev/example-app/example-cpp","docs_dotnet":"https://ydb.tech/docs/en/dev/example-app/example-dotnet","docs_go":"https://ydb.tech/docs/en/dev/example-app/go","docs_java":"https://ydb.tech/docs/en/dev/example-app/java","docs_nodejs":"https://ydb.tech/docs/en/dev/example-app/example-nodejs","docs_php":"https://ydb.tech/docs/en/dev/example-app/example-php","docs_python":"https://ydb.tech/docs/en/dev/example-app/python"}'),o=(0,r.g4)("ydb-connect-to-db",{en:i})},7889:(e,t,n)=>{"use strict";n.d(t,{p:()=>_,q:()=>E});var r,i,o,a,s,l,c,u,d,f,p,h=n(99991),m=n(77506),g=n(59284);function v(){return v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v.apply(null,arguments)}const y=function(e){return g.createElement("svg",v({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 383 396",fill:"none"},e),r||(r=g.createElement("path",{d:"M307.333 168.43c9.4-14.2 14.1-32.6 14.1-55.3 0-34.4-11.7-61.9-35.3-82.2-23.4-20.5-63-30.7-106.7-30.7-13.1 0-24.1.9-34.8 2.7-10.7 1.8-20.1 3.9-28.2 6.3-5.4 1.6-16.1 5.7-23.3 8.6-4.1 1.7-6.9 6-6.9 10.8v39.5c0 8.2 7.8 13.8 14.9 10.5a458.74 458.74 0 001.806-.818c2.367-1.074 4.452-2.02 5.894-2.581 5.7-2.3 12.4-4.2 20.1-5.8 7.7-1.6 16.3-2.4 25.7-2.4 22.2 0 43.1 5 52.3 14.9 9.2 10 13.8 22.499 13.8 37.499 0 13-2.7 24.1-8.2 33.2-5.5 9.1-13.1 18-22.9 26.5-7.9 6.9-15.2 13.5-22 19.8-6.8 6.3-12.6 13.2-17.5 20.7s-8.7 16-11.3 25.3c-1.6 5.6-2.7 20.3-3.3 31-.3 6.6 4.5 12.2 10.7 12.2h51.2c5.4 0 10-4.4 10.6-10.2.6-5.7 2-12.5 5.5-17.8 4-5.9 8.7-11.8 14.7-17.3s13-11 20.9-16.7c8-5.6 16.2-12.1 24.9-19.4 12.8-11.4 23.9-24.1 33.3-38.3zm-167.6 212.7c9 9.5 20.1 14.2 33.4 14.2 6.3 0 12.4-1.3 18.2-4 5.8-2.6 10.9-6 15.2-10.3 4.3-4.3 7.7-9.4 10.2-15.2 2.5-5.8 3.7-12.1 3.7-19 0-6.8-1.2-13.2-3.7-19-2.5-5.8-5.9-10.9-10.2-15.4-4.3-4.5-9.4-7.9-15.2-10.3-5.8-2.4-11.9-3.6-18.2-3.6-13.3 0-24.4 4.6-33.4 13.9s-13.5 20.8-13.5 34.5c0 13.4 4.5 24.8 13.5 34.2z",fill:"#ECF2F9"})),i||(i=g.createElement("path",{d:"M213.933 353.03h-193.5c-10 0-18.2-8.2-18.2-18.2v-125.4c0-10 8.2-18.2 18.2-18.2h193.5c10 0 18.2 8.2 18.2 18.2v125.4c0 10.1-8.2 18.2-18.2 18.2z",stroke:"#00E6C5",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"4 10"})),o||(o=g.createElement("path",{d:"M21.034 214.732a5.2 5.2 0 100-10.4 5.2 5.2 0 000 10.4zm16.899 0a5.2 5.2 0 100-10.4 5.2 5.2 0 000 10.4zm16.9 0a5.2 5.2 0 100-10.4 5.2 5.2 0 000 10.4z",fill:"#2EE5C0"})),a||(a=g.createElement("path",{d:"M2.533 228.129h228.9",stroke:"#00E6C5",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"4 10"})),s||(s=g.createElement("path",{d:"M301.033 264.83l-216.9 12c-7.3.4-13.3-5.2-13.3-12.5V96.93c0-7.3 6-12.9 13.3-12.5l216.9 12c5.6.3 10.1 5.7 10.1 12v144.4c0 6.3-4.5 11.7-10.1 12z",fill:"#027BF3"})),l||(l=g.createElement("path",{d:"M90.433 107.93c3.4.2 6.1-2.4 6.1-5.8s-2.7-6.3-6.1-6.4c-3.3-.2-6.1 2.4-6.1 5.8s2.7 6.3 6.1 6.4zm19.8.798c3.3.1 6-2.5 6-5.8s-2.7-6.1-6-6.3c-3.3-.1-6 2.5-6 5.8s2.7 6.2 6 6.3zm25.2-4.9c0 3.3-2.6 5.9-5.8 5.7-3.2-.1-5.9-2.9-5.9-6.2 0-3.3 2.6-5.9 5.9-5.7 3.2.1 5.8 2.9 5.8 6.2zm66.001 61.703l19.1-20.9 17.4 19.1-18.9 20.9 18.9 20.5-17.4 19.5-19.1-20.5-19.4 21.5-18.1-19.1 19.6-21.5-19.6-21 18.1-19.5 19.4 21z",fill:"#fff"})),c||(c=g.createElement("path",{d:"M327.433 112.83c0-28.4-21.7-37.1-33.5-37.9-.1 0-33.5 2.3-33.5 45.3 0 25.5 21.2 45.5 46 44.6 7.8-.3 14.9-2.6 21-6.4v-45.6z",fill:"#67B0F8"})),u||(u=g.createElement("path",{d:"M380.534 195.931c-2.9 3.4-7.6 3.7-10.5.8l-38.6-39 11.3-12.2 37.8 39c2.9 3 2.9 8 0 11.4z",fill:"#FF4645"})),d||(d=g.createElement("path",{d:"M342.833 145.629l-11.3 12.2 3.7 3.7c1.9 1.9 4.9 2 6.8.2 1.1-1 2.2-2.1 3.2-3.2.6-.7 1.3-1.4 1.9-2.1 1.6-1.9 1.5-4.8-.3-6.6l-4-4.2z",fill:"#D93654"})),f||(f=g.createElement("path",{d:"M267.633 154.13c-23-21.401-23-57.3 0-78.1 21.9-19.8 55.1-17 74.4 4.3 18.4 20.399 18.4 51.7 0 71.6-19.3 20.8-52.5 22.6-74.4 2.2zm9.4-10.802c15.6 15 39.8 14.2 54.1-.9 13.8-14.6 13.8-37.8 0-52.8-14.3-15.5-38.5-17-54.1-2.5-16.2 15.1-16.2 40.7 0 56.2z",fill:"#00236B"})),p||(p=g.createElement("path",{d:"M41.034 42.73a2 2 0 10-4 0h4zm-4 8.3a2 2 0 004 0h-4zm4 17.2a2 2 0 10-4 0h4zm-4 8.9a2 2 0 004 0h-4zm19.2-15.2a2 2 0 000-4v4zm-8.2-4a2 2 0 100 4v-4zm-17.9 4a2 2 0 000-4v4zm-8.2-4a2 2 0 100 4v-4zm15.1-15.2v8.3h4v-8.3h-4zm0 25.5v8.9h4v-8.9h-4zm19.2-10.3h-8.2v4h8.2v-4zm-26.1 0h-8.2v4h8.2v-4z",fill:"#2EE5C0"})))};var b=n(60712);const w=(0,m.cn)("empty-state"),x={s:150,m:250,l:350},_=({image:e,title:t,description:n,actions:r,size:i="m",position:o="center"})=>(0,b.jsx)("div",{className:w({size:i}),children:(0,b.jsxs)("div",{className:w("wrapper",{size:i,position:o}),children:[(0,b.jsx)("div",{className:w("image"),children:e||(0,b.jsx)(h.I,{data:y,width:x[i],height:x[i]})}),(0,b.jsx)("div",{className:w("title",{size:i}),children:t}),(0,b.jsx)("div",{className:w("description"),children:n}),(0,b.jsx)("div",{className:w("actions"),children:r})]})});function E({isEmpty:e,children:t,className:n,...r}){return e?(0,b.jsx)("div",{className:n,children:(0,b.jsx)(_,{...r})}):t}},88632:(e,t,n)=>{"use strict";n.d(t,{tH:()=>L,jt:()=>F,lQ:()=>z});var r=n(59284),i=n(41668),o=n(90826);const a=r.createContext(void 0),s=r.createContext(void 0);function l(e){const{size:t,disabled:n,defaultExpanded:i,arrowPosition:l,summary:c,keepMounted:u,onUpdate:d,expanded:f}=e,[p,h]=r.useState((()=>Boolean(i))),m=void 0!==f,g=(0,o.u)(),v=`disclosure${g}`;return r.createElement(a.Provider,{value:{size:t,disabled:n,summary:c,arrowPosition:l,keepMounted:u,expanded:m?f:p,ariaControls:g,ariaLabelledby:v}},r.createElement(s.Provider,{value:()=>{h((e=>!e));d(m?!f:!p)}},e.children))}function c(){const e=r.useContext(a);if(void 0===e)throw new Error("useDisclosureAttributes must be used within DisclosureProvider");return e}var u=n(72630),d=n(6826);const f=(0,n(69220).om)("disclosure"),p="disclosure-summary",h="disclosure-details";function m({children:e}){const t=r.useRef(null),{ariaControls:n,ariaLabelledby:i,keepMounted:o,expanded:a}=c();return r.createElement(u.A,{nodeRef:t,in:a,addEndListener:e=>{var n;return null===(n=t.current)||void 0===n?void 0:n.addEventListener("animationend",e)},classNames:(0,d.L)(f),mountOnEnter:!o,unmountOnExit:!o,appear:!0},r.createElement("div",{ref:t,id:n,role:"region","aria-labelledby":i,className:f("content",{visible:a}),"data-qa":h},e))}m.displayName="DisclosureDetails";var g=n(33705),v=n(27629);const y={m:14,l:16,xl:20};function b(){(0,v.m)('[Disclosure] Physical values (left, right) of "arrowPosition" property are deprecated. Use logical values (start, end) instead.')}function w({children:e}){const t=function(){const e=r.useContext(s);if(void 0===e)throw new Error("useToggleDisclosure must be used within DisclosureProvider");return e}(),{ariaControls:n,ariaLabelledby:i,expanded:o,disabled:a}=c(),l={onClick:t,ariaControls:n,id:i,expanded:o,disabled:a};return e(l,r.createElement(x,Object.assign({},l)))}function x({onClick:e,ariaControls:t,id:n,expanded:i,disabled:o}){const{size:a,summary:s,arrowPosition:l}=c();let u=l;return"left"===u&&(b(),u="start"),"right"===u&&(b(),u="end"),r.createElement("button",{type:"button","aria-expanded":i,className:f("trigger",{disabled:o,arrow:u}),"aria-controls":t,id:n,onClick:e,disabled:o,"data-qa":p},r.createElement(g.I,{size:y[a],direction:i?"top":"bottom"}),s)}w.displayName="DisclosureSummary";const _=(0,i.g)(w),E=r.forwardRef((function(e,t){const{size:n="m",disabled:i=!1,defaultExpanded:o=!1,arrowPosition:a="start",summary:s="",className:c,keepMounted:u=!0,children:d,onUpdate:p=()=>{},expanded:h,qa:g}=e,[v,y]=function(e){const t=r.Children.toArray(e);let n,i;const o=[];for(const r of t){if(_(r)){if(n)throw new Error("Only one <Disclosure.Summary> component is allowed");n=r}else o.push(r)}o.length>0&&(i=r.createElement(m,null,o));n||(n=r.createElement(w,null,(e=>r.createElement(x,Object.assign({},e)))));return[n,i]}(d);return r.createElement(l,{disabled:i,defaultExpanded:o,expanded:h,keepMounted:u,size:n,summary:s,arrowPosition:a,onUpdate:p},r.createElement("section",{ref:t,className:f({size:n},c),"data-qa":g},v,y))}));E.Summary=w,E.displayName="Disclosure";var S=n(84476);const k=(0,r.createContext)(null),C={didCatch:!1,error:null};class O extends r.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=C}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(null!==e){for(var t,n,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];null===(t=(n=this.props).onReset)||void 0===t||t.call(n,{args:i,reason:"imperative-api"}),this.setState(C)}}componentDidCatch(e,t){var n,r;null===(n=(r=this.props).onError)||void 0===n||n.call(r,e,t)}componentDidUpdate(e,t){const{didCatch:n}=this.state,{resetKeys:r}=this.props;var i,o;n&&null!==t.error&&function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==t.length||e.some(((e,n)=>!Object.is(e,t[n])))}(e.resetKeys,r)&&(null===(i=(o=this.props).onReset)||void 0===i||i.call(o,{next:r,prev:e.resetKeys,reason:"keys"}),this.setState(C))}render(){const{children:e,fallbackRender:t,FallbackComponent:n,fallback:i}=this.props,{didCatch:o,error:a}=this.state;let s=e;if(o){const e={error:a,resetErrorBoundary:this.resetErrorBoundary};if("function"===typeof t)s=t(e);else if(n)s=(0,r.createElement)(n,e);else{if(void 0===i)throw a;s=i}}return(0,r.createElement)(k.Provider,{value:{didCatch:o,error:a,resetErrorBoundary:this.resetErrorBoundary}},s)}}var N=n(77506);var T=n(34271),A=n(78524),I=n(48372);const D=JSON.parse('{"error-title":"Something went wrong","error-description":"We have something broken, but don\'t worry, it won\'t last long","show-details":"Show details","report-problem":"Report a problem","button-reset":"Try again"}'),P=JSON.parse('{"error-title":"\u0427\u0442\u043e-\u0442\u043e \u043f\u043e\u0448\u043b\u043e \u043d\u0435 \u0442\u0430\u043a","error-description":"\u0423 \u043d\u0430\u0441 \u0447\u0442\u043e-\u0442\u043e \u0441\u043b\u043e\u043c\u0430\u043b\u043e\u0441\u044c, \u043d\u043e \u043d\u0435 \u043f\u0435\u0440\u0435\u0436\u0438\u0432\u0430\u0439\u0442\u0435, \u044d\u0442\u043e \u043d\u0435\u043d\u0430\u0434\u043e\u043b\u0433\u043e","show-details":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0434\u0435\u0442\u0430\u043b\u0438","report-problem":"\u0421\u043e\u043e\u0431\u0449\u0438\u0442\u044c \u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0435","button-reset":"\u041f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0441\u043d\u043e\u0432\u0430"}'),R=(0,I.g4)("ydb-error-boundary",{ru:P,en:D});var j=n(60712);const M=(0,N.cn)("ydb-error-boundary");function L({children:e}){const t=(0,T.x)("ErrorBoundary");return(0,j.jsx)(t,{children:e})}function z({children:e,useRetry:t=!0,onReportProblem:n}){return(0,j.jsx)(O,{onError:(e,t)=>{var n;!function(e,t,n="error"){var r;"undefined"!==typeof window&&null!==(r=window.Ya)&&void 0!==r&&r.Rum?window.Ya.Rum.logError({additional:{url:window.location.href},type:n,message:t,level:window.Ya.Rum.ERROR_LEVEL.ERROR},e):console.error(e)}(e,null!==(n=t.componentStack)&&void 0!==n?n:void 0,"error-boundary")},fallbackRender:({error:e,resetErrorBoundary:r})=>(0,j.jsx)(F,{error:e,useRetry:t,resetErrorBoundary:r,onReportProblem:n}),children:e})}function F({error:e,resetErrorBoundary:t,useRetry:n,onReportProblem:r}){return(0,j.jsxs)("div",{className:M(),children:[(0,j.jsx)(A.v,{name:"error",className:M("illustration")}),(0,j.jsxs)("div",{className:M("content"),children:[(0,j.jsx)("h2",{className:M("error-title"),children:R("error-title")}),(0,j.jsx)("div",{className:M("error-description"),children:R("error-description")}),(0,j.jsx)(E,{summary:R("show-details"),className:M("show-details"),size:"m",children:(0,j.jsx)("pre",{className:M("error-details"),children:e.stack})}),(0,j.jsxs)("div",{className:M("actions"),children:[n&&(0,j.jsx)(S.$,{view:"outlined",onClick:t,children:R("button-reset")}),r&&(0,j.jsx)(S.$,{view:"outlined",onClick:()=>r(e),children:R("report-problem")})]})]})]})}},59109:(e,t,n)=>{"use strict";n.d(t,{O:()=>s});var r=n(7889),i=n(78524),o=n(31062),a=n(60712);const s=({title:e,description:t,...n})=>(0,a.jsx)(r.p,{image:(0,a.jsx)(i.v,{name:"403"}),title:e||(0,o.A)("403.title"),description:t||(0,o.A)("403.description"),...n})},64689:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(59284),i=n(81288),o=n(7889),a=n(78524),s=n(59109),l=n(44508),c=n(31062),u=n(60712);function d({title:e,description:t,error:n,children:d,...f}){return(0,i.uP)(n)?null:(0,i.Pq)(n)?(0,u.jsx)(s.O,{title:e,description:t,...f}):n||t?(0,u.jsx)(o.p,{image:(0,u.jsx)(a.v,{name:"error"}),title:e||(0,c.A)("error.title"),description:n?(0,u.jsx)(l.o,{error:n}):t,...f}):(0,u.jsx)(r.Fragment,{children:d})}},79553:(e,t,n)=>{"use strict";n.d(t,{o:()=>o});var r=n(31062),i=n(60712);const o=({error:e,className:t,defaultMessage:n=(0,r.A)("responseError.defaultMessage")})=>{let o="";return e&&"string"===typeof e&&(o=e),e&&"object"===typeof e&&("data"in e&&"string"===typeof e.data?o=e.data:"statusText"in e&&"string"===typeof e.statusText?o=e.statusText:"message"in e&&"string"===typeof e.message&&(o=e.message)),(0,i.jsx)("div",{className:`error ${t}`,children:o||n})}},44508:(e,t,n)=>{"use strict";n.d(t,{o:()=>r.o});var r=n(79553)},31062:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(48372);const i=JSON.parse('{"403.title":"Access denied","403.description":"You don\u2019t have the necessary roles to view this page.","responseError.defaultMessage":"Response error","error.title":"Error"}'),o=JSON.parse('{"403.title":"\u0414\u043e\u0441\u0442\u0443\u043f \u0437\u0430\u043f\u0440\u0435\u0449\u0435\u043d","403.description":"\u0423 \u0432\u0430\u0441 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u0430\u0432 \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b.","responseError.defaultMessage":"\u041e\u0448\u0438\u0431\u043a\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u0430","error.title":"\u041e\u0448\u0438\u0431\u043a\u0430"}'),a=(0,r.g4)("ydb-errors-access-denied",{ru:o,en:i})},78524:(e,t,n)=>{"use strict";n.d(t,{v:()=>c});var r=n(59284),i=n(22680),o=n(77506),a=n(60712);const s={light:{403:()=>n.e(7329).then(n.bind(n,67329)),thumbsUp:()=>n.e(3238).then(n.bind(n,73238)),error:()=>n.e(3872).then(n.bind(n,3872))},dark:{403:()=>n.e(1299).then(n.bind(n,81299)),thumbsUp:()=>n.e(5875).then(n.bind(n,98256)),error:()=>n.e(6990).then(n.bind(n,56990))}},l=(0,o.cn)("kv-illustration"),c=({name:e,className:t,...n})=>{const o=(0,i.i)(),[c,u]=r.useState(""),d=s[o]&&s[o][e];return r.useEffect((()=>{"function"===typeof d&&d().then((e=>u(e.default))).catch((e=>{console.error(e),u("")}))}),[d]),c?(0,a.jsx)("img",{alt:e,src:c,className:l(null,t),...n}):null}},18863:(e,t,n)=>{"use strict";n.d(t,{z:()=>l});var r=n(59284),i=n(77506),o=n(5741),a=n(60712);const s=(0,i.cn)("info-viewer"),l=({title:e,info:t,dots:n=!0,size:i,className:l,multilineLabels:c,renderEmptyState:u})=>t&&t.length||!u?(0,a.jsxs)("div",{className:s({size:i},l),children:[e&&(0,a.jsx)("div",{className:s("title"),children:e}),t&&t.length>0?(0,a.jsx)("div",{className:s("items"),children:t.map(((e,t)=>(0,a.jsxs)("div",{className:s("row"),children:[(0,a.jsxs)("div",{className:s("label"),children:[(0,a.jsx)("div",{className:s("label-text",{multiline:c}),children:e.label}),n&&(0,a.jsx)("div",{className:s("dots")})]}),(0,a.jsx)("div",{className:s("value"),children:e.value})]},t)))}):(0,o.A)("no-data")]}):(0,a.jsx)(r.Fragment,{children:u({title:e,size:i})})},5741:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(48372);const i=JSON.parse('{"common.created":"Created","common.type":"Type","no-data":"No data"}'),o=(0,r.g4)("ydb-components-info-viewer",{en:i})},60073:(e,t,n)=>{"use strict";n.d(t,{Hr:()=>i.H,jl:()=>i.j,z_:()=>r.z});var r=n(18863),i=n(82176)},82176:(e,t,n)=>{"use strict";function r(e,t){var n;return null!==(n=t[e])&&void 0!==n?n:e}function i(e,t,n,r){const i=n[e]||r;return i?i(t):t}function o({values:e,labels:t,defaultValueFormatter:n}){return(o,a)=>({label:r(o,t||{}),value:i(o,a,e||{},n)})}n.d(t,{H:()=>o,j:()=>a});const a=(e,t)=>t?Object.entries(t).map((([t,n])=>e(t,n))).filter((({value:e})=>Boolean(e))):[]},82015:(e,t,n)=>{"use strict";n.d(t,{E:()=>s});var r=n(52905),i=n(77506),o=n(60712);const a=(0,i.cn)("g-link"),s=({className:e,to:t,onClick:n,...i})=>t?(0,o.jsx)(r.N_,{to:t,onClick:n,className:a({view:"normal"},e),...i}):(0,o.jsx)("span",{className:e,onClick:n,children:i.children})},44294:(e,t,n)=>{"use strict";n.d(t,{E:()=>r.E});var r=n(82015)},25196:(e,t,n)=>{"use strict";n.d(t,{K:()=>u});var r=n(59284),i=n(112),o=n(67884),a=n(77506),s=n(44294),l=n(60712);const c=(0,a.cn)("ydb-link-with-icon"),u=({title:e,url:t,external:n=!0,className:a})=>{const u=(0,l.jsxs)(r.Fragment,{children:[e,"\xa0",(0,l.jsx)(i.A,{})]});return n?(0,l.jsx)(o.N,{href:t,target:"_blank",className:c(null,a),children:u}):(0,l.jsx)(s.E,{to:t,className:c(null,a),children:u})}},47334:(e,t,n)=>{"use strict";n.d(t,{a:()=>l});var r=n(74417),i=n(77506),o=n(66781),a=n(60712);const s=(0,i.cn)("ydb-loader"),l=({size:e="m",delay:t=600,className:n})=>{const[i]=(0,o.y)(t);return i?(0,a.jsx)("div",{className:s(null,n),children:(0,a.jsx)(r.a,{size:e})}):null}},98167:(e,t,n)=>{"use strict";n.d(t,{r:()=>o});n(59284);var r=n(47334),i=n(60712);function o({loading:e,size:t="m",className:n,children:o}){return e?(0,i.jsx)(r.a,{size:t,className:n}):o}},80176:(e,t,n)=>{"use strict";n.d(t,{p:()=>f,HG:()=>y,nL:()=>g,Qz:()=>v});var r=n(40336),i=n(77506),o=n(12888),a=n(25196),s=n(48372);const l=JSON.parse('{"field_rack":"Rack","field_host":"Host","context_developer-ui":"Developer UI","field_database":"Database","field_roles":"Roles"}'),c=(0,s.g4)("ydb-node-name-tooltip",{en:l});var u=n(60712);const d=(0,i.cn)("ydb-node-endpoints-tooltip-content"),f=({data:e,nodeHref:t})=>{var n,i;const s=(0,o.X)(),l=[];return null!==e&&void 0!==e&&null!==(n=e.Roles)&&void 0!==n&&n.length&&l.push({name:c("field_roles"),children:e.Roles.join(", "),key:"Roles"}),null!==e&&void 0!==e&&null!==(i=e.Tenants)&&void 0!==i&&i[0]&&l.push({name:c("field_database"),children:e.Tenants[0],key:"Database"}),null!==e&&void 0!==e&&e.Host&&l.push({name:c("field_host"),children:e.Host,copyText:e.Host,key:"Host"}),null!==e&&void 0!==e&&e.Rack&&l.push({name:c("field_rack"),children:e.Rack,key:"Rack"}),null!==e&&void 0!==e&&e.Endpoints&&e.Endpoints.length&&e.Endpoints.forEach((({Name:e,Address:t})=>{e&&t&&l.push({name:e,children:t,key:e})})),s&&t&&l.push({name:"Links",children:(0,u.jsx)(a.K,{title:c("context_developer-ui"),url:t}),key:"developerUi"}),(0,u.jsx)("div",{className:d("list-container"),children:(0,u.jsx)(r.u,{responsive:!0,children:l.map((({children:e,key:t,...n})=>(0,u.jsx)(r.u.Item,{...n,children:(0,u.jsx)("div",{className:d("definition"),children:e})},t)))})})};var p=n(60073),h=n(41826);const m=(0,p.Hr)({values:{ChangeTime:e=>(0,u.jsx)(h.H,{ChangeTime:e})},labels:{TabletId:"Tablet"},defaultValueFormatter:e=>e&&String(e)}),g=({data:e={},className:t})=>{const{TabletId:n,NodeId:r,State:i,Type:o,ChangeTime:a,Generation:s}=e,l=(0,p.jl)(m,{TabletId:n,NodeId:r,State:i,Type:o,ChangeTime:a,Generation:s});return(0,u.jsx)(p.z_,{className:t,info:l,dots:!1,size:"s"})},v=(0,p.Hr)({values:{Usage:e=>e&&`${(100*Number(e)).toFixed(2)} %`},labels:{Name:"Pool"},defaultValueFormatter:e=>e&&String(e)}),y=({data:e={},className:t})=>{const n=(0,p.jl)(v,e);return(0,u.jsx)(p.z_,{className:t,info:n,dots:!1,size:"s"})}},41826:(e,t,n)=>{"use strict";n.d(t,{p:()=>d,H:()=>f});n(59284);var r=n(40336),i=n(76086),o=n(56839),a=n(71661),s=n(48372);const l=JSON.parse('{"start-time":"Start time","disconnect-time":"Disconnect time","change-time":"Change time"}'),c=(0,s.g4)("ydb-uptime-viewer",{en:l});var u=n(60712);function d({StartTime:e,DisconnectTime:t}){let n,s=null;return t?(n=(0,o.wI)(t),s=(0,u.jsx)(r.u.Item,{name:c("disconnect-time"),children:(0,o.r6)(t,{withTimeZone:!0})},"DisconnectTime")):e&&(n=(0,o.H7)(e),s=(0,u.jsx)(r.u.Item,{name:c("start-time"),children:(0,o.r6)(e,{withTimeZone:!0})},"StartTime")),n?(0,u.jsx)(a.s,{placement:["top","auto"],disabled:!s,content:(0,u.jsx)(r.u,{responsive:!0,children:s}),children:n}):i.Pd}function f({ChangeTime:e}){let t;return e&&(t=(0,o.H7)(e)),t?(0,u.jsx)(a.s,{placement:["top","auto"],content:(0,u.jsx)(r.u,{responsive:!0,children:(0,u.jsx)(r.u.Item,{name:c("change-time"),children:(0,o.r6)(e,{withTimeZone:!0})},"changeTime")}),children:t}):i.Pd}},87842:(e,t,n)=>{"use strict";n.d(t,{Bi:()=>i,a:()=>f,bn:()=>u,eC:()=>d});var r=n(92459);const i={overview:"overview",tenants:"tenants",nodes:"nodes",storage:"storage",versions:"versions",tablets:"tablets"},o={id:i.overview,title:"Overview"},a={id:i.tenants,title:"Databases"},s={id:i.nodes,title:"Nodes"},l={id:i.storage,title:"Storage"},c={id:i.versions,title:"Versions"},u=[o,a,s,l,{id:i.tablets,title:"Tablets"},c];function d(e){return Object.values(i).includes(e)}const f=(e,t={})=>(0,r.KY)(r.Ay.cluster,e?{activeTab:e}:void 0,t)},29819:(e,t,n)=>{"use strict";n.d(t,{GX:()=>l,Gi:()=>u,IK:()=>c,vI:()=>d});var r=n(67087),i=n(370),o=n(92459),a=n(29971);const s={storage:"storage",tablets:"tablets",structure:"structure"},l=[{id:s.storage,get title(){return(0,a.A)("tabs.storage")}},{id:s.structure,get title(){return(0,a.A)("tabs.structure")}},{id:s.tablets,get title(){return(0,a.A)("tabs.tablets")}}],c=i.z.nativeEnum(s).catch(s.tablets),u={database:r.StringParam,pdiskId:r.StringParam,vdiskId:r.StringParam};function d(e,t={},n){return(0,o.KY)(o.Ay.node,{id:e,activeTab:n},t)}},29971:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(48372);const i=JSON.parse('{"pdisk.developer-ui-button-title":"PDisk Developer UI page","vdisk.developer-ui-button-title":"VDisk Developer UI page","tabs.storage":"Storage","tabs.structure":"Structure","tabs.tablets":"Tablets","node":"Node","fqdn":"FQDN","dc":"DC"}'),o=(0,r.g4)("ydb-node-page",{en:i})},54309:(e,t,n)=>{"use strict";n.d(t,{YL:()=>l,nb:()=>s,vh:()=>o,x$:()=>a});var r=n(92459),i=n(52531);const o={summaryTab:"summaryTab",queryTab:"queryTab",diagnosticsTab:"diagnosticsTab",metricsTab:"metricsTab"},a=[{id:i.ml.overview,title:"Overview"},{id:i.ml.acl,title:"ACL"}],s=[{id:i.ml.schema,title:"Schema"}],l=e=>(0,r.KY)(r.Ay.tenant,void 0,e)},48873:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ASIDE_HEADER_COMPACT_KEY:()=>Le.LQ,AUTOCOMPLETE_ON_ENTER:()=>Le.IO,AUTO_REFRESH_INTERVAL:()=>Le.av,AppSlots:()=>r,AsideNavigation:()=>So,BINARY_DATA_IN_PLAIN_TEXT_DISPLAY:()=>Le.RY,CASE_SENSITIVE_JSON_SEARCH:()=>Le.iD,CLUSTER_DEFAULT_TITLE:()=>Le.QM,DAY_IN_SECONDS:()=>Le.tt,DEFAULT_CLUSTER_TAB_KEY:()=>Le.fY,DEFAULT_DANGER_THRESHOLD:()=>Le.Ed,DEFAULT_IS_QUERY_RESULT_COLLAPSED:()=>Le.GV,DEFAULT_IS_TENANT_COMMON_INFO_COLLAPSED:()=>Le.hh,DEFAULT_IS_TENANT_SUMMARY_COLLAPSED:()=>Le.jX,DEFAULT_SIZE_RESULT_PANE_KEY:()=>Le.l_,DEFAULT_SIZE_TENANT_KEY:()=>Le.jQ,DEFAULT_SIZE_TENANT_SUMMARY_KEY:()=>Le.ED,DEFAULT_TABLE_SETTINGS:()=>Le.N3,DEFAULT_WARNING_THRESHOLD:()=>Le.Hh,DEVELOPER_UI_TITLE:()=>Le.T5,DEV_ENABLE_TRACING_FOR_ALL_REQUESTS:()=>Le.U0,EMPTY_DATA_PLACEHOLDER:()=>Le.Pd,ENABLE_AUTOCOMPLETE:()=>Le.LK,ENABLE_CODE_ASSISTANT:()=>Le.bz,ENABLE_NETWORK_TABLE_KEY:()=>Le.g5,ENABLE_QUERY_STREAMING:()=>Le.kO,ErrorBoundary:()=>s.lQ,ErrorBoundaryFallback:()=>s.jt,GIGABYTE:()=>Le.J7,HOUR_IN_SECONDS:()=>Le.Jg,INVERTED_DISKS_KEY:()=>Le.TJ,IS_HOTKEYS_HELP_HIDDEN_KEY:()=>Le.Gj,KILOBYTE:()=>Le.eh,LANGUAGE_KEY:()=>Le.jS,LAST_QUERY_EXECUTION_SETTINGS_KEY:()=>Le.fr,LAST_USED_QUERY_ACTION_KEY:()=>Le.zk,Lang:()=>me.JA,MEGABYTE:()=>Le.pg,MINUTE_IN_SECONDS:()=>Le.r0,MS_IN_NANOSECONDS:()=>Le.zz,MultiClusterApp:()=>Vo,PARTITIONS_HIDDEN_COLUMNS_KEY:()=>Le.bs,QUERIES_HISTORY_KEY:()=>Le.MB,QUERY_EXECUTION_SETTINGS_KEY:()=>Le.c4,QUERY_SETTINGS_BANNER_LAST_CLOSED_KEY:()=>Le.YQ,SAVED_QUERIES_KEY:()=>Le.ld,SECOND_IN_MS:()=>Le.KF,SHOW_DOMAIN_DATABASE_KEY:()=>Le.Xm,SingleClusterApp:()=>No,TENANT_DEFAULT_TITLE:()=>Le.oK,TENANT_INITIAL_PAGE_KEY:()=>Le.Mt,TENANT_OVERVIEW_TABLES_LIMIT:()=>Le.Nz,TENANT_OVERVIEW_TABLES_SETTINGS:()=>Le.jp,TERABYTE:()=>Le.Db,THEME_KEY:()=>Le.k4,USE_CLUSTER_BALANCER_AS_BACKEND_KEY:()=>Le.s2,USE_SHOW_PLAN_SVG_KEY:()=>Le.lr,WEEK_IN_SECONDS:()=>Le.Du,YdbEmbeddedAPI:()=>Ko.i,appRoutes:()=>de.Ay,cn:()=>pe.cn,componentsRegistry:()=>ko,configureStore:()=>Wo.U1,createApi:()=>Ko.x,getMonitoringClusterLink:()=>Ao,getMonitoringLink:()=>To,getSettingValue:()=>Go.CN,getTabletLabel:()=>Le.bk,getUserSettings:()=>st,i18n:()=>me.Ru,parseMonitoringData:()=>Io,registerKeysets:()=>me.g4,reportWebVitals:()=>Qo.A,rootReducer:()=>Wo.d$,setSettingValue:()=>Go.gc,settingsManager:()=>yo.f,toaster:()=>Yo.X,useSetting:()=>u.iK,useTypedSelector:()=>u.N4});var r={};n.r(r),n.d(r,{ClusterSlot:()=>_n,ClustersSlot:()=>xn,NodeSlot:()=>Sn,PDiskPageSlot:()=>kn,RedirectSlot:()=>An,RoutesSlot:()=>Tn,StorageGroupSlot:()=>On,TabletSlot:()=>Nn,TenantSlot:()=>En,VDiskPageSlot:()=>Cn});var i=n(59284),o=n(61750),a=n(97434),s=n(88632),l=n(34271),c=n(78668),u=n(90182);function d(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}"function"===typeof SuppressedError&&SuppressedError;var f=n(99991),p=n(23871),h=n(28664),m=n(74417),g=n(87184),v=n(92209);function y(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!==typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}var b=n(49034),w=n(72837),x=n(81240),_=n(98089),E=n(84476),S={button_close:"Close"},k={button_close:"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"};var C=(0,w.N)({en:S,ru:k},`${v.N}Title`);y(".gn-title{align-items:center;box-sizing:border-box;display:flex;justify-content:space-between;min-height:64px;padding:14px 10px 14px 20px}.gn-title_separator{border-bottom:1px solid var(--g-color-line-generic)}.gn-title__text{margin:0 20px 0 0}");const O=(0,v.b)("title"),N=({children:e,closeIconSize:t=23,hasSeparator:n,closeTitle:r=C("button_close"),onClose:o})=>i.createElement("div",{className:O({separator:n})},i.createElement(_.E,{className:O("text"),as:"h3",variant:"subheader-3"},e),o&&i.createElement(E.$,{onClick:o,view:"flat",size:"l",extraProps:{"aria-label":r}},i.createElement(f.I,{data:x.A,size:t})));function T(e){const t=i.useRef();return i.useEffect((()=>(t.current=e,()=>{t.current=void 0})),[e]),i.useCallback(((...e)=>{if("function"===typeof t.current)return t.current(...e)}),[])}function A(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function I(e,t=""){const n=A(t).replace(/\s+/g,".*?");return D(e,"",new RegExp(n,"i"))}function D(e,t="",n){const r=[],o={};let a=!1,s=!1;return i.Children.forEach(e,(e=>{var l,c;if(i.isValidElement(e))if(e.type===i.Fragment){const{menu:i,pages:a}=D(e.props.children,t,n);r.push(...i),Object.assign(o,a)}else if(e.props.groupTitle){0;const i=`${t}/${null!==(l=e.props.id)&&void 0!==l?l:e.props.groupTitle}`;a=!0;const{menu:s,pages:c}=D(e.props.children,i,n);0,r.push({groupTitle:e.props.groupTitle,items:s}),Object.assign(o,c)}else{s=!0;const i=`${t}/${null!==(c=e.props.id)&&void 0!==c?c:e.props.title}`;0,o[i]=P(e.props.children,n),o[i].id=i,r.push({id:i,title:e.props.title,icon:e.props.icon,withBadge:o[i].withBadge,disabled:o[i].hidden})}})),{menu:r,pages:o}}function P(e,t){const n={id:"",sections:[],hidden:!0};return i.Children.forEach(e,(e=>{if(i.isValidElement(e))if(e.type===i.Fragment){const{sections:r,withBadge:i,hidden:o}=P(e.props.children,t);n.sections.push(...r),n.withBadge=i||n.withBadge,n.hidden=o&&n.hidden}else{const{withBadge:r,showTitle:i=!0}=e.props,{items:o,hidden:a}=R(e.props.children,t);n.withBadge=r||n.withBadge,n.hidden=a&&n.hidden,n.sections.push(Object.assign(Object.assign({},e.props),{withBadge:r,items:o,hidden:a,showTitle:i}))}})),n}function R(e,t){let n=!0;const r=[];return i.Children.forEach(e,(e=>{if(i.isValidElement(e))if(e.type===i.Fragment){const i=R(e.props.children,t);r.push(...i.items),n=n&&i.hidden}else{const i=Object.assign(Object.assign({},e.props),{element:e,hidden:!t.test(e.props.title)});r.push(i),n=n&&i.hidden}})),{items:r,hidden:n}}N.displayName="Title";const j=i.createContext({});function M(e,t){const n=i.useRef(null);return i.useMemo((()=>t?Object.assign({selectedRef:n},function(e,t){if(!t.settingId&&!t.section&&!t.page)return{};for(const n of Object.values(e)){if(!t.settingId&&!t.section){if(t.page!==n.id)continue;return{page:n}}for(const e of n.sections)if(t.settingId){for(const r of e.items)if(r.id===t.settingId)return{page:n,section:e,setting:r}}else if(t.section&&("id"in t.section?t.section.id===e.id:t.section.title===e.title))return{page:n,section:e}}return{}}(e,t)):{selectedRef:n}),[e,t])}j.displayName="SettingsSelectionContext";const L=j.Provider;var z=function(e){return e};y('.gn-settings-menu__group-heading{display:inline-block;font-weight:var(--g-text-accent-font-weight);line-height:18px;margin-bottom:12px;padding:0 20px}.gn-settings-menu__group+.gn-settings-menu__group{margin-top:24px}.gn-settings-menu__item{align-items:center;color:var(--g-color-text-primary);cursor:pointer;display:flex;height:40px;padding:0 20px}.gn-settings-menu__item-icon{color:var(--g-color-text-misc);margin-right:5px}.gn-settings-menu__item:hover,.gn-settings-menu__item_focused{background:var(--g-color-base-simple-hover)}.gn-settings-menu__item_selected{background:var(--g-color-base-selection)}.gn-settings-menu__item_selected.gn-settings-menu__item_focused,.gn-settings-menu__item_selected:hover{background:var(--g-color-base-selection-hover)}.gn-settings-menu__item_disabled{color:var(--g-color-text-secondary);cursor:auto}.gn-settings-menu__item_disabled:hover{background:none}.gn-settings-menu__item_disabled .gn-settings-menu__item-icon{color:var(--g-color-base-misc-heavy)}.gn-settings-menu__item_badge{position:relative}.gn-settings-menu__item_badge:after{background-color:var(--g-color-text-danger);border-radius:50%;content:"";display:block;height:6px;position:absolute;right:9px;top:calc(50% - 3px);width:6px}');const F=(0,v.b)("settings-menu"),B=i.forwardRef((function({items:e,onChange:t,activeItemId:n},r){const[o,a]=i.useState(),s=i.useRef(null),l=T(t),c=function(e){const t=i.useRef(e);return t.current=e,i.useCallback((()=>t.current),[])}(o);return i.useImperativeHandle(r,(()=>({handleKeyDown(e){if(!s.current)return!1;const t=c();return t&&"Enter"===e.key?(l(t),!0):"ArrowDown"===e.key?(a($(s.current,t,1)),!0):"ArrowUp"===e.key&&(a($(s.current,t,-1)),!0)},clearFocus(){a(void 0)}})),[c,l]),i.createElement("div",{ref:s,className:F()},e.map((e=>"groupTitle"in e?i.createElement("div",{key:e.groupTitle,className:F("group")},i.createElement("span",{className:F("group-heading")},e.groupTitle),e.items.map((e=>U(e,t,n,o)))):U(e,t,n,o))))}));function U(e,t,n,r){return i.createElement("span",{key:e.title,className:F("item",{selected:n===e.id,disabled:e.disabled,focused:r===e.id,badge:e.withBadge}),onClick:()=>{e.disabled||t(e.id)},"data-id":e.id},e.icon?i.createElement(f.I,Object.assign({size:16},e.icon,{className:F("item-icon")})):void 0,i.createElement("span",null,e.title))}function $(e,t,n){var r;const i=e.querySelectorAll(`.${F("item")}:not(.${F("item")}_disabled)`);if(0===i.length)return;let o=n>0?-1:0;return t&&(o=Array.prototype.findIndex.call(i,(e=>e.getAttribute("data-id")===t))),o=(i.length+o+n)%i.length,null!==(r=i[o].getAttribute("data-id"))&&void 0!==r?r:void 0}y('.gn-settings-menu-mobile.g-tabs_direction_horizontal{-ms-overflow-style:none;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:none;scrollbar-width:none}.gn-settings-menu-mobile.g-tabs_direction_horizontal::-webkit-scrollbar{display:none}.gn-settings-menu-mobile__item_badge{position:relative}.gn-settings-menu-mobile__item_badge:after{background-color:var(--g-color-text-danger);border-radius:50%;content:"";display:block;height:6px;position:absolute;right:-8px;top:11px;width:6px}');const q=(0,v.b)("settings-menu-mobile"),H=({items:e,onChange:t,activeItemId:n,className:r})=>{const o=i.useRef(null),a=i.useMemo((()=>{const t=[];return e.forEach((e=>{if("groupTitle"in e)t.push(...e.items.map((({id:e,title:t,disabled:n,withBadge:r})=>({id:e,title:t,disabled:n,className:q("item",{badge:r})}))));else{const{id:n,title:r,disabled:i,withBadge:o}=e;t.push({id:n,title:r,disabled:i,className:q("item",{badge:o})})}})),t}),[e]);return i.createElement("div",{ref:o,onTouchMove:e=>{e.stopPropagation()}},i.createElement(p.t,{items:a,className:q(null,r),size:"l",activeTab:n,onSelectTab:t}))};var V={label_title:"Settings","label_filter-placeholder":"Search settings","label_empty-placeholder":"No results found",label_search:"Search"},W={label_title:"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438","label_filter-placeholder":"\u041d\u0430\u0439\u0442\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438","label_empty-placeholder":"\u041d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043e",label_search:"\u041f\u043e\u0438\u0441\u043a"};var K=(0,w.N)({en:V,ru:W},`${v.N}Settings`);const G=(0,v.b)("settings-search");function Y({className:e,initialValue:t,onChange:n,debounce:r=200,inputRef:o,inputSize:a,placeholder:s,autoFocus:l=!0}){const[c,u]=i.useState(null!==t&&void 0!==t?t:""),d=T((0,b.d)(n,r)),f=T((e=>{u(e),d(e)}));return i.createElement("div",{className:G(null,e)},i.createElement(h.k,{value:c,controlRef:o,hasClear:!0,autoFocus:l,size:a,placeholder:s,onUpdate:f,controlProps:{"aria-label":K("label_search")}}))}y('.gn-settings{display:grid;grid-template-columns:216px 1fr;height:100%;width:834px}.gn-settings_view_mobile{display:block;height:calc(80vh - 56px);overflow-x:hidden;width:auto}@supports (height:90dvh){.gn-settings_view_mobile{height:calc(90dvh - 56px)}}.gn-settings_view_mobile.gn-settings_loading{text-align:center}.gn-settings_view_mobile .gn-settings__loader{margin-top:20px}.gn-settings_view_mobile .gn-settings__search{margin:4px 0 16px;padding:0 20px}.gn-settings_view_mobile .gn-settings__page{overflow-y:visible}.gn-settings_view_mobile .gn-settings__tabs .g-tabs__item:first-child{margin-left:20px}.gn-settings_view_mobile .gn-settings__tabs .g-tabs__item:last-child{margin-right:20px}.gn-settings_view_mobile .gn-settings__section-heading{font-size:var(--g-text-subheader-3-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-3-line-height)}.gn-settings_view_mobile .gn-settings__section-subheader{color:var(--g-color-text-secondary)}.gn-settings_view_mobile .gn-settings__section-heading+.gn-settings-subheader{margin-top:8px}.gn-settings_view_mobile .gn-settings__section-item{margin-top:0}.gn-settings_view_mobile .gn-settings__section-heading+.gn-settings__section-item,.gn-settings_view_mobile .gn-settings__section-subheader+.gn-settings__section-item{margin-top:30px}.gn-settings_view_mobile .gn-settings__section-item+.gn-settings__section-item{margin-top:22px}.gn-settings_view_mobile .gn-settings__item:not(.gn-settings_view_mobile .gn-settings__item_mode_row){gap:8px;grid-template-columns:1fr}.gn-settings_view_mobile .gn-settings__item-heading{font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-2-line-height)}.gn-settings_view_mobile .gn-settings__item-description{font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height)}.gn-settings_view_mobile .gn-settings__item_mode_row{grid-template-columns:1fr auto}.gn-settings_view_mobile .gn-settings__item_mode_row .gn-settings__item-heading{padding-right:20px}.gn-settings_view_mobile .gn-settings__item-content{width:100%}.gn-settings_view_mobile .gn-settings__not-found{color:var(--g-color-text-hint);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);justify-items:start;line-height:var(--g-text-body-2-line-height);margin:20px 0 0 20px}.gn-settings_loading{grid-template-columns:auto}.gn-settings__loader{place-self:center}.gn-settings__not-found{display:grid;height:100%;place-items:center}.gn-settings__menu{border-right:1px solid var(--g-color-line-generic)}.gn-settings__heading{font-size:var(--g-text-subheader-2-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-2-line-height);margin:20px 20px 0}.gn-settings__search{margin:0 20px 16px}.gn-settings__page{overflow-y:auto}.gn-settings__content{padding:20px}.gn-settings__section-right-adornment_hidden{opacity:0;transition:opacity .2s}.gn-settings__section-heading:hover .gn-settings__section-right-adornment_hidden{opacity:1}.gn-settings__section-heading{font-size:var(--g-text-subheader-2-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-2-line-height);margin:0}.gn-settings__section-item{margin-top:24px}.gn-settings__section+.gn-settings__section{margin-top:32px}.gn-settings__section_only-child:only-child .gn-settings__section-item:first-of-type{margin-top:0}.gn-settings__section_only-child:only-child .gn-settings__section-heading{display:none}.gn-settings__item{display:grid;grid-template-columns:216px 1fr;justify-items:start}.gn-settings__item_align_top{align-items:start}.gn-settings__item_align_center{align-items:center}.gn-settings__item-title_badge{position:relative}.gn-settings__item-title_badge:after{background-color:var(--g-color-text-danger);border-radius:50%;content:"";display:block;height:6px;position:absolute;right:-8px;top:1px;width:6px}.gn-settings__item-description{color:var(--g-color-text-secondary);display:block;font-size:var(--g-text-caption-2-font-size);font-weight:var(--g-text-caption-font-weight);line-height:var(--g-text-caption-2-line-height);margin-top:2px;padding-right:20px}.gn-settings__item-right-adornment_hidden{opacity:0;transition:opacity .2s}.gn-settings__item:hover .gn-settings__item-right-adornment_hidden{opacity:1}.gn-settings__item_selected,.gn-settings__section_selected{background:var(--g-color-base-selection);border-radius:8px;margin-left:-8px;padding:8px}.gn-settings__found{background:var(--g-color-base-selection);font-weight:var(--g-text-accent-font-weight)}');const Q=(0,v.b)("settings"),Z=i.createContext({}),J=()=>i.useContext(Z);function X(e){var{loading:t,renderLoading:n,children:r,view:o="normal",renderRightAdornment:a,renderSectionRightAdornment:s,showRightAdornmentOnHover:l=!0}=e,c=d(e,["loading","renderLoading","children","view","renderRightAdornment","renderSectionRightAdornment","showRightAdornmentOnHover"]);return t?i.createElement("div",{className:Q({loading:!0,view:o})},"function"===typeof n?n():i.createElement(m.a,{className:Q("loader"),size:"m"})):i.createElement(Z.Provider,{value:{renderRightAdornment:a,renderSectionRightAdornment:s,showRightAdornmentOnHover:l}},i.createElement(te,Object.assign({view:o},c),r))}const ee=(e,t)=>{for(const n of e)if("groupTitle"in n){for(const e of n.items)if(e.id===t)return e.title}else if(n.id===t)return n.title;return""};function te({initialPage:e,initialSearch:t,selection:n,children:r,renderNotFound:o,title:a=K("label_title"),filterPlaceholder:s=K("label_filter-placeholder"),emptyPlaceholder:l=K("label_empty-placeholder"),view:c,onPageChange:u,onClose:d}){var f,p;const{renderSectionRightAdornment:h,showRightAdornmentOnHover:m}=J(),[v,y]=i.useState(null!==t&&void 0!==t?t:""),{menu:b,pages:w}=I(r,v),x=M(w,n),_=Object.keys(w),E=x.page&&_.includes(x.page.id)?x.page.id:void 0,[S,k]=i.useState(E||(e&&_.includes(e)?e:void 0)),C=i.useRef(null),O=i.useRef(null),T="mobile"===c;i.useEffect((()=>{var e;null===(e=O.current)||void 0===e||e.clearFocus()}),[v]),i.useEffect((()=>{const e=()=>{var e;null===(e=O.current)||void 0===e||e.clearFocus()};return window.addEventListener("click",e),()=>{window.removeEventListener("click",e)}}),[]);let A=S;A&&!(null===(f=w[A])||void 0===f?void 0:f.hidden)||(A=null===(p=Object.values(w).find((({hidden:e})=>!e)))||void 0===p?void 0:p.id);const D=e=>{k((t=>(t!==e&&(null===u||void 0===u||u(e)),e)))};i.useEffect((()=>{A!==S&&D(A)})),i.useEffect((()=>{E&&k(E)}),[E]),i.useEffect((()=>{var e;(null===(e=x.selectedRef)||void 0===e?void 0:e.current)&&x.selectedRef.current.scrollIntoView()}),[x.selectedRef]);const P=(e,t)=>{const n=function(e,t,n){var r;return!(!e.section||e.setting)&&(!(!e.section.id||e.section.id!==n.id)||!((null===(r=e.page)||void 0===r?void 0:r.id)!==t||!e.section.title||e.section.title!==n.title))}(x,e,t);return i.createElement("div",{key:t.title,className:Q("section",{selected:n,"only-child":t.onlyChild}),ref:n?x.selectedRef:void 0},t.showTitle&&i.createElement("h3",{className:Q("section-heading")},h?i.createElement(g.s,{gap:2,alignItems:"center"},t.title,i.createElement("div",{className:Q("section-right-adornment",{hidden:m})},h(t))):t.title),t.header&&(T?i.createElement("div",{className:Q("section-subheader")},t.header):t.header),t.items.map((e=>e.hidden?null:(({title:e,element:t})=>i.createElement("div",{key:e,className:Q("section-item")},i.cloneElement(t,Object.assign(Object.assign({},t.props),{highlightedTitle:v&&e?ne(e,v):e}))))(e))))};return i.createElement(L,{value:x},i.createElement("div",{className:Q({view:c})},T?i.createElement(i.Fragment,null,i.createElement(Y,{inputRef:C,className:Q("search"),initialValue:t,onChange:y,autoFocus:!1,inputSize:"xl"}),i.createElement(H,{items:b,onChange:D,activeItemId:A,className:Q("tabs")})):i.createElement("div",{className:Q("menu"),onClick:()=>{C.current&&C.current.focus()},onKeyDown:e=>{O.current&&O.current.handleKeyDown(e)&&e.preventDefault()}},i.createElement(N,null,a),i.createElement(Y,{inputRef:C,className:Q("search"),initialValue:t,onChange:y,placeholder:s,autoFocus:!0}),i.createElement(B,{ref:O,items:b,onChange:D,activeItemId:A})),i.createElement("div",{className:Q("page")},(e=>{if(!e)return"function"===typeof o?o():i.createElement("div",{className:Q("not-found")},l);const t=w[e].sections.filter((e=>!e.hidden));return i.createElement(i.Fragment,null,!T&&i.createElement(N,{hasSeparator:!0,onClose:d},ee(b,e)),i.createElement("div",{className:Q("content")},t.map((t=>P(e,t)))))})(A))))}function ne(e,t){let n=e.slice(0);const r=[],o=A(t).split(" ").filter(Boolean);let a=0;for(const s of o){const e=new RegExp(s,"ig").exec(n);if(e){const t=e[0],o=e.index;o>0&&r.push(n.slice(0,o)),r.push(i.createElement("strong",{key:a++,className:Q("found")},t)),n=n.slice(o+t.length)}}return n&&r.push(n),r}X.Group=function({children:e}){return i.createElement(i.Fragment,null,e)},X.Page=function({children:e}){return i.createElement(i.Fragment,null,e)},X.Section=function({children:e}){return i.createElement(i.Fragment,null,e)},X.Item=function(e){const{id:t,labelId:n,highlightedTitle:r,children:o,align:a="center",withBadge:s,renderTitleComponent:l=z,mode:c,description:u}=e,d=i.useContext(j),f=d.setting&&d.setting.id===t,{renderRightAdornment:p,showRightAdornmentOnHover:h}=J(),m=i.createElement("span",{className:Q("item-title",{badge:s})},l(r));return i.createElement("div",{className:Q("item",{align:a,mode:c,selected:f}),ref:f?d.selectedRef:void 0},i.createElement("label",{className:Q("item-heading"),id:n},p?i.createElement(g.s,{className:Q("item-title-wrapper"),gap:3},m,i.createElement("div",{className:Q("item-right-adornment",{hidden:h})},p(e))):m,u?i.createElement("span",{className:Q("item-description")},u):null),i.createElement("div",{className:Q("item-content")},o))};var re=n(85589),ie=n(44433),oe=n(60712);const ae=({type:e="switch",settingKey:t,options:n,defaultValue:r,onValueUpdate:i})=>{const[o,a]=(0,u.iK)(t,r),s=e=>{a(e),null===i||void 0===i||i()};switch(e){case"switch":return(0,oe.jsx)(re.d,{checked:Boolean(o),onUpdate:s});case"radio":return n?(0,oe.jsx)(ie.a,{value:String(o),onUpdate:s,children:n.map((({value:e,content:t})=>(0,oe.jsx)(ie.a.Option,{value:e,children:t},e)))}):null;default:return null}},se=({settings:e})=>(0,oe.jsx)(X,{children:e.map((e=>{const{id:t,title:n,icon:r,sections:i=[],showTitle:o}=e;return(0,oe.jsx)(X.Page,{id:t,title:n,icon:r,children:i.map((e=>{const{title:n,settings:r=[]}=e;return(0,oe.jsx)(X.Section,{title:n,showTitle:null===o||void 0===o||o,children:r.map((e=>{if("info"===e.type)return(0,oe.jsx)(X.Item,{...e,children:e.content},e.title);const{description:t,...n}=e;return(0,oe.jsxs)(X.Item,{align:"top",...n,children:[(0,oe.jsx)(ae,{...e}),(0,oe.jsx)(_.E,{color:"secondary",as:"div",children:t})]},e.title)}))},t)}))},t)}))}),le=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.78 7.47a.75.75 0 0 1 0 1.06l-2.5 2.5a.75.75 0 1 1-1.06-1.06l1.22-1.22H1.75a.75.75 0 0 1 0-1.5h7.69L8.22 6.03a.75.75 0 0 1 1.06-1.06zM4 11.75a.75.75 0 0 1 1.5 0V12A1.5 1.5 0 0 0 7 13.5h5a1.5 1.5 0 0 0 1.5-1.5V4A1.5 1.5 0 0 0 12 2.5H7A1.5 1.5 0 0 0 5.5 4v.25a.75.75 0 0 1-1.5 0V4a3 3 0 0 1 3-3h5a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3H7a3 3 0 0 1-3-3z",clipRule:"evenodd"})),ce=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.78 7.47a.75.75 0 0 1 0 1.06l-2.5 2.5a.75.75 0 1 1-1.06-1.06l1.22-1.22H4.75a.75.75 0 0 1 0-1.5h7.69l-1.22-1.22a.75.75 0 0 1 1.06-1.06zM9.5 4.25a.75.75 0 0 1-1.5 0V4a1.5 1.5 0 0 0-1.5-1.5H4A1.5 1.5 0 0 0 2.5 4v8A1.5 1.5 0 0 0 4 13.5h2.5A1.5 1.5 0 0 0 8 12v-.25a.75.75 0 0 1 1.5 0V12a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V4a3 3 0 0 1 3-3h2.5a3 3 0 0 1 3 3z",clipRule:"evenodd"}));var ue=n(10755),de=n(92459),fe=n(67028),pe=n(77506),he=n(28232),me=n(48372);const ge=JSON.parse('{"navigation-item.documentation":"Documentation","navigation-item.settings":"Settings","navigation-item.account":"Account","account.user":"YDB User","account.login":"Login","account.logout":"Logout"}'),ve=(0,me.g4)("ydb-aside-navigation",{en:ge}),ye=(0,pe.cn)("kv-ydb-internal-user");function be({login:e}){const[t]=c.D_.useLogoutMutation(),n=(0,fe.li)(),r=(0,he.J)(),i=(0,ue.W6)(),o=()=>{i.push((0,de.KY)(de.Ay.auth,void 0,{returnUrl:encodeURIComponent(location.href),database:r}))};return(0,oe.jsxs)("div",{className:ye(),children:[(0,oe.jsxs)("div",{className:ye("user-info-wrapper"),children:[(0,oe.jsx)("div",{className:ye("ydb-internal-user-title"),children:ve("account.user")}),e&&(0,oe.jsx)("div",{className:ye("username"),children:e})]}),e?(0,oe.jsx)(E.$,{view:"flat-secondary",title:ve("account.logout"),onClick:()=>{t(void 0)},children:(0,oe.jsx)(f.I,{data:ce})}):n?null:(0,oe.jsx)(E.$,{view:"flat-secondary",title:ve("account.login"),onClick:o,children:(0,oe.jsx)(f.I,{data:le})})]})}function we({children:e,userSettings:t}){const n=(0,l.x)("AsideNavigation"),r=(0,u.N4)(c.mB);return(0,oe.jsx)(n,{settings:(0,oe.jsx)(se,{settings:t}),ydbInternalUser:(0,oe.jsx)(be,{login:r}),user:r?{login:r}:void 0,content:e})}const xe={top:0,right:0,bottom:0,left:0};var _e=n(39238),Ee=n(49818),Se=n(80176);const ke=(0,pe.cn)("node-tootltip"),Ce=e=>{const{data:t}=e;return t&&(0,oe.jsx)("div",{className:ke(),children:(0,oe.jsx)("table",{children:(0,oe.jsxs)("tbody",{children:[(0,oe.jsxs)("tr",{children:[(0,oe.jsx)("td",{className:ke("label"),children:"ID"}),(0,oe.jsx)("td",{className:ke("value"),children:t.nodeId||"?"})]}),(0,oe.jsxs)("tr",{children:[(0,oe.jsx)("td",{className:ke("label"),children:"Rack"}),(0,oe.jsx)("td",{className:ke("value"),children:t.rack||"?"})]}),t.connected&&t.capacity?(0,oe.jsxs)("tr",{children:[(0,oe.jsx)("td",{className:ke("label"),children:"Net"}),(0,oe.jsx)("td",{className:ke("value"),children:`${t.connected} / ${t.capacity}`})]}):null]})})})},Oe=(0,pe.cn)("histogram-tooltip"),Ne=e=>{const{data:t}=e;return t&&(0,oe.jsx)("div",{className:Oe(),children:(0,oe.jsx)("table",{children:(0,oe.jsxs)("tbody",{children:[(0,oe.jsxs)("tr",{children:[(0,oe.jsx)("td",{className:Oe("label"),children:"Count"}),(0,oe.jsx)("td",{className:Oe("value"),children:t.count||"?"})]}),(0,oe.jsxs)("tr",{children:[(0,oe.jsx)("td",{className:Oe("label"),children:"From"}),(0,oe.jsx)("td",{className:Oe("value"),children:t.leftBound||"?"})]}),(0,oe.jsxs)("tr",{children:[(0,oe.jsx)("td",{className:Oe("label"),children:"To"}),(0,oe.jsx)("td",{className:Oe("value"),children:t.rightBound||"?"})]})]})})})},Te=(0,pe.cn)("cell-tooltip"),Ae={tablet:e=>(0,oe.jsx)(Se.nL,{data:e}),node:e=>(0,oe.jsx)(Ce,{data:e}),histogram:e=>(0,oe.jsx)(Ne,{data:e}),cell:e=>(0,oe.jsx)("div",{className:Te(),children:e})};const Ie=(0,a.Ng)((e=>{const{toolTipVisible:t,currentHoveredRef:n,data:r,templateType:i,additionalData:o,positions:a}=e.tooltip,{popupClassName:s}=o||{};return{toolTipVisible:t,currentHoveredRef:n,data:r,template:Ae[i],additionalData:o,positions:a,popupClassName:s}}),{hideTooltip:Ee.w7})((function(e){var t,n;const r=function(e={}){const{rect:t,contextElement:n}=e,r=i.useRef(xe),o=i.useRef({contextElement:n,getBoundingClientRect(){const{top:e,right:t,bottom:n,left:i}=r.current;return{top:e,right:t,bottom:n,left:i,width:t-i,height:n-e}}});if(o.current.contextElement=n,t){const{top:e=0,left:n=0,right:i=n,bottom:o=e}=t;r.current={top:e,right:i,bottom:o,left:n}}else r.current=xe;return o}({rect:{top:null===(t=e.positions)||void 0===t?void 0:t.top,left:null===(n=e.positions)||void 0===n?void 0:n.left}}),o=i.useCallback((()=>{const{hideTooltip:t,toolTipVisible:n}=e;n&&setTimeout((()=>t()),500)}),[e]);i.useEffect((()=>(window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o)})),[o]);const{className:a="",toolTipVisible:s,currentHoveredRef:l,data:c,additionalData:u,positions:d}=e;return(0,oe.jsx)("div",{className:`redux-tooltip ${a}`,children:d?((t,n,o,a)=>{const{template:s,popupClassName:l,hideTooltip:c}=e;return(0,oe.jsx)(i.Fragment,{children:(0,oe.jsx)(_e.z,{open:t,placement:["top","bottom","left","right"],contentClassName:l,anchorRef:r,onOutsideClick:c,children:o&&s(o,a)})})})(s,0,c,u):((t,n,r,i)=>{const{template:o,popupClassName:a,hideTooltip:s}=e;return(0,oe.jsx)(_e.z,{open:t,anchorRef:{current:n},hasArrow:!0,placement:["top","bottom","left","right"],className:a,onOutsideClick:s,children:r&&o(r,i)})})(s,l,c,u)})})),De=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",d:"M6.886.773C7.29-.231 8.71-.231 9.114.773l1.472 3.667 3.943.268c1.08.073 1.518 1.424.688 2.118L12.185 9.36l.964 3.832c.264 1.05-.886 1.884-1.802 1.31L8 12.4l-3.347 2.101c-.916.575-2.066-.26-1.802-1.309l.964-3.832L.783 6.826c-.83-.694-.391-2.045.688-2.118l3.943-.268z"})),Pe=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.494 13.2c.837-.482 1.006-.946 1.006-1.2 0-.35-.105-.692-.303-.981L9.072 6.435a1.85 1.85 0 0 1-.322-1.044V2.909C8.518 2.968 8.265 3 8 3s-.518-.032-.75-.09v2.48c0 .373-.112.737-.322 1.045L3.803 11.02c-.198.289-.303.63-.303.981 0 .254.169.718 1.006 1.2.813.468 2.043.8 3.494.8s2.68-.332 3.494-.8M8 .5c2 0 2.25 1 2.25 1.5v3.39q0 .11.062.2l3.125 4.584c.367.538.563 1.175.563 1.826 0 2-2.686 3.5-6 3.5S2 14 2 12c0-.652.196-1.288.563-1.826L5.69 5.59a.35.35 0 0 0 .061-.2V2C5.75 1.5 6 .5 8 .5m.084 7.626a.75.75 0 0 1 1.04.208l1.5 2.25a.75.75 0 1 1-1.248.832l-1.5-2.25a.75.75 0 0 1 .208-1.04",clipRule:"evenodd"})),Re=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.169 6.331a3 3 0 0 0-.833 1.6l-.338 1.912a1 1 0 0 0 1.159 1.159l1.912-.338a3 3 0 0 0 1.6-.833l3.07-3.07 2-2A.9.9 0 0 0 15 4.13 3.13 3.13 0 0 0 11.87 1a.9.9 0 0 0-.632.262l-2 2zm3.936-1.814L7.229 7.392a1.5 1.5 0 0 0-.416.8L6.6 9.4l1.208-.213.057-.01a1.5 1.5 0 0 0 .743-.406l2.875-2.876a1.63 1.63 0 0 0-1.378-1.378m2.558.199a3.14 3.14 0 0 0-1.379-1.38l.82-.82a1.63 1.63 0 0 1 1.38 1.38zM8 2.25a.75.75 0 0 0-.75-.75H4.5a3 3 0 0 0-3 3v7a3 3 0 0 0 3 3h7a3 3 0 0 0 3-3V8.75a.75.75 0 0 0-1.5 0v2.75a1.5 1.5 0 0 1-1.5 1.5h-7A1.5 1.5 0 0 1 3 11.5v-7A1.5 1.5 0 0 1 4.5 3h2.75A.75.75 0 0 0 8 2.25",clipRule:"evenodd"}));var je=n(43937),Me=n(90754),Le=n(76086);const ze=JSON.parse('{"page.general":"General","section.appearance":"Appearance","page.experiments":"Experiments","section.experiments":"Experiments","page.editor":"Editor","section.dev-setting":"Development settings","page.about":"About","section.about":"About","settings.editor.autocomplete.title":"Enable autocomplete","settings.editor.autocomplete.description":"You\'re always able to get suggestions by pressing Ctrl+Space.","settings.editor.codeAssistant.title":"Code Assistant","settings.editor.codeAssistant.description":"Use Code Assistant for autocomplete.","settings.editor.queryStreaming.title":"Query Streaming","settings.editor.queryStreaming.description":"Use streaming api for query results.","settings.editor.autocomplete-on-enter.title":"Accept suggestion on Enter","settings.editor.autocomplete-on-enter.description":"Controls whether suggestions should be accepted on Enter, in addition to Tab. Helps to avoid ambiguity between inserting new lines or accepting suggestions.","settings.theme.title":"Interface theme","settings.theme.option-dark":"Dark","settings.theme.option-light":"Light","settings.theme.option-system":"System","settings.language.title":"Interface language","settings.language.option-russian":"Russian","settings.language.option-english":"English","settings.binaryDataInPlainTextDisplay.title":"Display binary data in plain text","settings.invertedDisks.title":"Inverted disks space indicators","settings.enableNetworkTable.title":"Enable network table","settings.useShowPlanToSvg.title":"Execution plan","settings.useShowPlanToSvg.description":" Show \\"Execution plan\\" button in query result widow. Opens svg with execution plan in a new window.","settings.showDomainDatabase.title":"Show domain database","settings.useClusterBalancerAsBackend.title":"Use cluster balancer as backend","settings.useClusterBalancerAsBackend.description":"By default random cluster node is used as backend. It causes saved links to become invalid after some time, when node is restarted. Using balancer as backend fixes it","settings.about.interfaceVersionInfoField.title":"Interface version"}'),Fe=(0,me.g4)("ydb-user-settings",{en:ze}),Be=[{value:"system",content:Fe("settings.theme.option-system")},{value:"light",content:Fe("settings.theme.option-light")},{value:"dark",content:Fe("settings.theme.option-dark")}],Ue={settingKey:Le.k4,title:Fe("settings.theme.title"),type:"radio",options:Be},$e=(me.JA.Ru,Fe("settings.language.option-russian"),me.JA.En,Fe("settings.language.option-english"),Le.jS,Fe("settings.language.title"),me.oK,{settingKey:Le.RY,title:Fe("settings.binaryDataInPlainTextDisplay.title")}),qe={settingKey:Le.TJ,title:Fe("settings.invertedDisks.title")},He={settingKey:Le.g5,title:Fe("settings.enableNetworkTable.title")},Ve={settingKey:Le.lr,title:Fe("settings.useShowPlanToSvg.title"),description:Fe("settings.useShowPlanToSvg.description")},We={settingKey:Le.Xm,title:Fe("settings.showDomainDatabase.title")},Ke={settingKey:Le.s2,title:Fe("settings.useClusterBalancerAsBackend.title"),description:Fe("settings.useClusterBalancerAsBackend.description")},Ge={settingKey:Le.LK,title:Fe("settings.editor.autocomplete.title"),description:Fe("settings.editor.autocomplete.description")},Ye={settingKey:Le.bz,title:Fe("settings.editor.codeAssistant.title"),description:Fe("settings.editor.codeAssistant.description")},Qe={settingKey:Le.kO,title:Fe("settings.editor.queryStreaming.title"),description:Fe("settings.editor.queryStreaming.description")},Ze={settingKey:Le.IO,title:Fe("settings.editor.autocomplete-on-enter.title"),description:Fe("settings.editor.autocomplete-on-enter.description")},Je={title:Fe("settings.about.interfaceVersionInfoField.title"),type:"info",content:"8.12.0"},Xe={id:"appearanceSection",title:Fe("section.appearance"),settings:[Ue,qe,$e,We]},et={id:"experimentsSection",title:Fe("section.experiments"),settings:[He,Ve,Qe]},tt={id:"devSettingsSection",title:Fe("section.dev-setting"),settings:[Ge,Ze]},nt={id:"aboutSettingsSection",title:Fe("section.about"),settings:[Je]},rt={id:"generalPage",title:Fe("page.general"),icon:{data:De,height:14,width:14},sections:[Xe],showTitle:!1},it={id:"experimentsPage",title:Fe("page.experiments"),icon:{data:Pe},sections:[et],showTitle:!1},ot={id:"editorPage",title:Fe("page.editor"),icon:{data:Re},sections:[tt]},at={id:"aboutPage",title:Fe("page.about"),icon:{data:je.A},sections:[nt],showTitle:!1};function st({singleClusterMode:e,codeAssistantConfigured:t}){const n=e?it:(0,Me.jM)(it,(e=>{e.sections[0].settings.push(Ke)})),r=t?(0,Me.jM)(ot,(e=>{e.sections[0].settings.push(Ye)})):ot;return[rt,r,n,at]}var lt=n(59109),ct=n(64689),ut=n(98167);function dt(e="unknown"){const t=()=>null;return t.displayName=`Slot(${e})`,t.__slotName=e,t}function ft(e){return"function"===typeof e&&"__slotName"in e}class pt{constructor(e){this.children=null,this.slots=void 0;const t=[];this.slots=new Map,i.Children.forEach(e,(e=>{if(n=e,i.isValidElement(n)&&ft(n.type)){const{type:t,props:n,ref:r}=e;if(this.slots.has(t))throw new Error(`Duplicate slot elements with name "${t.__slotName}" found.`);this.slots.set(t,{name:t.__slotName,props:n,ref:r,rendered:n.children})}else null!==e&&void 0!==e&&""!==e&&t.push(e);var n}));t.length>0&&(this.children=t)}get(e){if(!ft(e))throw new Error('Invalid slot component. Should be a component created using "createSlot".');return this.slots.get(e)}}var ht=n(24600),mt=n(99006);const gt=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.03 1.97a.75.75 0 0 0-1.06 1.06l.83.83A8.2 8.2 0 0 0 .5 6.876l-.26.585a1.33 1.33 0 0 0 0 1.079l.26.585a8.21 8.21 0 0 0 11.434 3.87l1.036 1.035a.75.75 0 1 0 1.06-1.06zm7.788 9.908-1.294-1.293a3 3 0 0 1-4.109-4.109L3.866 4.927A6.7 6.7 0 0 0 1.87 7.486L1.641 8l.23.515a6.71 6.71 0 0 0 8.947 3.363M6.55 7.611A1.502 1.502 0 0 0 8.389 9.45zm1.658-2.604 2.784 2.784a3 3 0 0 0-2.784-2.784m5.92 3.508a6.7 6.7 0 0 1-.915 1.496l1.065 1.066A8.2 8.2 0 0 0 15.5 9.125l.26-.585a1.33 1.33 0 0 0 0-1.08l-.26-.584A8.21 8.21 0 0 0 5.572 2.37L6.81 3.61a6.71 6.71 0 0 1 7.32 3.877l.228.514z",clipRule:"evenodd"})),vt=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.87 8.515 1.641 8l.229-.515a6.708 6.708 0 0 1 12.26 0l.228.515-.229.515a6.708 6.708 0 0 1-12.259 0M.5 6.876l-.26.585a1.33 1.33 0 0 0 0 1.079l.26.584a8.208 8.208 0 0 0 15 0l.26-.584a1.33 1.33 0 0 0 0-1.08l-.26-.584a8.208 8.208 0 0 0-15 0M9.5 8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M11 8a3 3 0 1 1-6 0 3 3 0 0 1 6 0",clipRule:"evenodd"}));var yt,bt,wt=n(67884);function xt(e){return Boolean(e&&"object"===typeof e&&"data"in e&&e.data&&"object"===typeof e.data&&"error"in e.data&&"string"===typeof e.data.error)}function _t(){return _t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_t.apply(null,arguments)}const Et=function(e){return i.createElement("svg",_t({viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),yt||(yt=i.createElement("path",{d:"M0 16C0 7.163 7.163 0 16 0s16 7.163 16 16-7.163 16-16 16S0 24.837 0 16z",fill:"#5282FF"})),bt||(bt=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 9.5c0 .828-1.343 1.5-3 1.5s-3-.672-3-1.5S19.343 8 21 8s3 .672 3 1.5zM13 19.6v2.7c0 .9 1.3 1.6 3 1.6s3-.7 3-1.6v-2.7c-.8.7-1.9 1-3 1s-2.2-.3-3-1zm5-8.6v-.4c.8.7 1.9 1 3 1s2.2-.3 3-1v2.8c0 .8-1.2 1.5-2.8 1.6l-2.475 2.871c.176.192.275.405.275.629 0 .828-1.343 1.5-3 1.5s-3-.672-3-1.5a.9.9 0 01.232-.58L10.8 15.1C9.3 15 8 14.3 8 13.5v-2.9c.8.7 1.9 1 3 1s2.2-.3 3-1v.4h4zm-.276 6.272A5.27 5.27 0 0016 17c-.265 0-.522.017-.766.05a5.994 5.994 0 00-1.134.25L12 14.9c1.1-.2 2-.8 2-1.5V12h4v1.4c0 .7.7 1.3 1.8 1.5l-2.076 2.372zM14 9.5c0 .828-1.343 1.5-3 1.5s-3-.672-3-1.5S9.343 8 11 8s3 .672 3 1.5z",fill:"#fff"})))},St=(0,pe.cn)("authentication");const kt=function({closable:e=!1}){var t;const n=(0,ue.W6)(),r=(0,ue.zy)(),o=(0,fe.S_)(),[a,{isLoading:s}]=c.D_.useAuthenticateMutation(void 0),{returnUrl:l,database:u}=(0,de.mA)(r),[d,p]=i.useState(""),[m,g]=i.useState(null!==(t=null===u||void 0===u?void 0:u.toString())&&void 0!==t?t:""),[v,y]=i.useState(""),[b,w]=i.useState(""),[_,S]=i.useState(""),[k,C]=i.useState(""),[O,N]=i.useState(!1),T=()=>{a({user:d,password:v,database:m}).unwrap().then((()=>{if(l){const e=decodeURIComponent(l.toString()),t=new URL(e),r=t.pathname+t.search;n.replace(r)}})).catch((e=>{(function(e){return xt(e)&&e.data.error.includes("user")})(e)&&w(e.data.error),function(e){return xt(e)&&e.data.error.includes("password")}(e)&&S(e.data.error),function(e){return xt(e)&&e.data.error.includes("database")}(e)&&C(e.data.error)}))},A=e=>{13===e.keyCode&&T()};return(0,oe.jsxs)("section",{className:St(),children:[(0,oe.jsxs)("form",{className:St("form-wrapper"),children:[(0,oe.jsxs)("div",{className:St("header"),children:[(0,oe.jsxs)("div",{className:St("logo"),children:[(0,oe.jsx)(f.I,{data:Et,size:24}),"YDB"]}),(0,oe.jsx)(wt.N,{href:"https://ydb.tech/docs",target:"_blank",children:"Documentation"})]}),(0,oe.jsx)("h2",{className:St("title"),children:"Sign in"}),(0,oe.jsx)("div",{className:St("field-wrapper"),children:(0,oe.jsx)(h.k,{value:d,onUpdate:e=>{p(e),w("")},placeholder:"Username",error:b,onKeyDown:A,size:"l",autoFocus:!0})}),(0,oe.jsxs)("div",{className:St("field-wrapper"),children:[(0,oe.jsx)(h.k,{value:v,onUpdate:e=>{y(e),S("")},type:O?"text":"password",placeholder:"Password",error:_,onKeyDown:A,size:"l"}),(0,oe.jsx)(E.$,{onClick:()=>{N((e=>!e))},size:"l",className:St("show-password-button"),children:(0,oe.jsx)(f.I,{data:O?gt:vt,size:16})})]}),o&&(0,oe.jsx)("div",{className:St("field-wrapper"),children:(0,oe.jsx)(h.k,{value:m,onUpdate:e=>{g(e),C("")},placeholder:"Database",error:k,onKeyDown:A,size:"l"})}),(0,oe.jsx)(E.$,{view:"action",onClick:T,width:"max",size:"l",disabled:Boolean(!d||b||_),loading:s,className:St("button-sign-in"),children:"Sign in"})]}),e&&n.length>1&&(0,oe.jsx)(E.$,{onClick:()=>{n.go(-1)},className:St("close"),children:(0,oe.jsx)(f.I,{data:x.A,size:24})})]})};var Ct=n(87842),Ot=n(49917),Nt=n(112),Tt=n(69220);const At=(0,Tt.om)("divider"),It=i.forwardRef((function(e,t){const{orientation:n="horizontal",className:r,style:o,qa:a,children:s,align:l="start"}=e;return i.createElement("div",{className:At({orientation:n,align:l},r),ref:t,style:o,"data-qa":a,role:"separator","aria-orientation":"vertical"===n?"vertical":void 0},s)}));var Dt=n(61758),Pt=n.n(Dt);const Rt=(0,Tt.om)("breadcrumbs");function jt(e){return i.createElement("button",Object.assign({},e,{type:"button",className:Rt("switcher",{more:!0})}))}const Mt=(0,Tt.om)("breadcrumbs");const Lt=i.memo((function({item:e,isCurrent:t,isPrevCurrent:n,renderItemContent:r,renderItem:o}){const a=r?r(e,t,n):e.text;if(o)return o({item:e,children:a,isCurrent:t,isPrevCurrent:n});const s=e.title||e.text;return n||!t?void 0!==e.href?i.createElement(wt.N,{key:e.text,view:"secondary",href:e.href,title:s,onClick:e.action,className:Mt("item",{"prev-current":n})},a):i.createElement(jt,{key:e.text,title:s,onClick:e.action},a):i.createElement("div",{title:s,className:Mt("item",{current:!0})},a)}));Lt.displayName="Breadcrumbs.Item";var zt=n(40569);const Ft=JSON.parse('{"label_more":"Show more"}'),Bt=JSON.parse('{"label_more":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435"}'),Ut=(0,w.N)({en:Ft,ru:Bt},"Breadcrumbs"),$t=(0,Tt.om)("breadcrumbs");function qt({popupStyle:e,popupPlacement:t,items:n}){return i.createElement(zt.r,{items:n,popupProps:{className:$t("popup",{staircase:"staircase"===e}),placement:t},renderSwitcher:({onClick:e})=>i.createElement(jt,{title:Ut("label_more"),onClick:e},"...")})}qt.displayName="Breadcrumbs.More";const Ht=(0,Tt.om)("breadcrumbs");function Vt({renderItemDivider:e}){return i.createElement("div",{"aria-hidden":!0,className:Ht("divider")},e?e():"/")}Vt.displayName="Breadcrumbs.Separator";const Wt=(0,Tt.om)("breadcrumbs");var Kt,Gt;!function(e){e[e.One=1]="One",e[e.Two=2]="Two"}(Kt||(Kt={})),function(e){e[e.Zero=0]="Zero",e[e.One=1]="One"}(Gt||(Gt={}));class Yt extends i.Component{static prepareInitialState(e){const{firstDisplayedItemsCount:t}=e;return{calculated:!1,rootItem:t?e.items[0]:void 0,visibleItems:e.items.slice(t),hiddenItems:[],allItems:e.items}}static getDerivedStateFromProps(e,t){return t.allItems!==e.items?Yt.prepareInitialState(e):null}constructor(e){super(e),this.handleResize=()=>{const e=Yt.prepareInitialState(this.props);this.setState(e,this.recalculate)},this.handleResize=Pt()(this.handleResize,200),"undefined"!==typeof window&&(this.resizeObserver=new ResizeObserver(this.handleResize)),this.container=i.createRef(),this.state=Yt.prepareInitialState(e)}componentDidMount(){var e;this.recalculate(),null===(e=this.resizeObserver)||void 0===e||e.observe(this.container.current)}componentDidUpdate(e){e.items!==this.state.allItems&&this.recalculate()}componentWillUnmount(){var e;null===(e=this.resizeObserver)||void 0===e||e.disconnect()}render(){const{className:e,qa:t}=this.props,{calculated:n}=this.state;return i.createElement("div",{className:Wt({calculated:n?"yes":"no"},e),"data-qa":t},i.createElement("div",{className:Wt("inner"),ref:this.container},this.renderRootItem(),this.renderMoreItem(),this.renderVisibleItems()))}renderItem(e,t,n,r){return i.createElement(Lt,{item:e,isCurrent:t,isPrevCurrent:n,renderItemContent:r||this.props.renderItemContent,renderItem:this.props.renderItem})}renderItemDivider(){const{renderItemDivider:e}=this.props;return i.createElement(Vt,{renderItemDivider:e})}renderRootItem(){const{renderRootContent:e}=this.props,{rootItem:t,visibleItems:n}=this.state,r=0===n.length;return t?this.renderItem(t,r,!1,e):null}renderVisibleItems(){const{visibleItems:e}=this.state;return e.map(((e,t,n)=>{const r=t===n.length-1,o=t===n.length-2;return i.createElement(i.Fragment,{key:t},this.renderItemDivider(),this.renderItem(e,r,o))}))}renderMoreItem(){const{hiddenItems:e}=this.state;if(0===e.length)return null;const{popupStyle:t,popupPlacement:n,renderItemDivider:r}=this.props;return i.createElement(i.Fragment,null,i.createElement(Vt,{renderItemDivider:r}),i.createElement(qt,{items:e,popupPlacement:n,popupStyle:t}))}recalculate(){var e;const{items:t,lastDisplayedItemsCount:n,firstDisplayedItemsCount:r}=this.props;let i=(null===(e=this.container.current)||void 0===e?void 0:e.offsetWidth)||0;if(this.container.current&&i>0){i+=4;const e=Array.from(this.container.current.querySelectorAll(`.${Wt("divider")}`)),o=[...Array.from(this.container.current.querySelectorAll(`.${Wt("switcher")}`)),...Array.from(this.container.current.querySelectorAll(`.${Wt("item")}`))],a=o.map(((e,t)=>e.scrollWidth+(t===o.length-1?4:8))),s=e.map((e=>e.offsetWidth));let l=a.reduce(((e,t,r,i)=>{const o=i.length-1===r,a=n===Kt.Two&&i.length-2===r;return o||a?e+Math.min(t,200):e+t}),0)+s.reduce(((e,t)=>e+t),0),c=1;for(;l>i&&c<o.length-n;)1===c&&(l+=34+s[c]),l-=a[c]+s[c],c++;this.setState({calculated:!0,visibleItems:t.slice(c-(1-r)),hiddenItems:t.slice(r,c-(1-r))})}}}Yt.defaultProps={popupPlacement:["bottom","top"]};var Qt=n(1064),Zt=n(44294),Jt=n(67157),Xt=n(31684),en=n(12888);const tn=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11 2.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3M14 4a3 3 0 1 0-5.895.79L6.15 5.908a3 3 0 1 0 0 4.185l1.955 1.117A3.003 3.003 0 0 0 11 15a3 3 0 1 0-2.15-5.092L6.895 8.79a3 3 0 0 0 0-1.58L8.85 6.092A3 3 0 0 0 14 4m-3 6.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3M2.5 8a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0",clipRule:"evenodd"})),nn=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.615 4.888c.814-.375.885-.714.885-.888s-.071-.513-.885-.888S9.538 2.5 8 2.5s-2.799.237-3.615.612C3.57 3.487 3.5 3.826 3.5 4s.071.513.885.888S6.462 5.5 8 5.5s2.799-.237 3.615-.612m.885 1.235C11.4 6.708 9.792 7 8 7s-3.4-.292-4.5-.877V8c0 .174.071.513.885.888S6.462 9.5 8 9.5s2.799-.237 3.615-.612c.814-.375.885-.714.885-.888zm0 4C11.4 10.708 9.792 11 8 11s-3.4-.293-4.5-.877V12c0 .174.071.513.885.887.816.377 2.077.613 3.615.613s2.799-.236 3.615-.613c.814-.374.885-.713.885-.887zM14 4c0-2-2.686-3-6-3S2 2 2 4v8c0 2 2.686 3 6 3s6-1 6-3z",clipRule:"evenodd"})),rn=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 8.5a1.5 1.5 0 0 1 1.5 1.5v1a1.5 1.5 0 0 1-1.5 1.5H4A1.5 1.5 0 0 1 2.5 11v-1A1.5 1.5 0 0 1 4 8.5zm.89-1.366L11.488 4.33a1.5 1.5 0 0 0-1.342-.829H5.854a1.5 1.5 0 0 0-1.342.83L3.11 7.133A3 3 0 0 1 4 7h8a3 3 0 0 1 .89.134M15 9.18V11a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V9.18a5 5 0 0 1 .528-2.236L3.17 3.658A3 3 0 0 1 5.854 2h4.292a3 3 0 0 1 2.683 1.658l1.643 3.286A5 5 0 0 1 15 9.18m-6 .57a.75.75 0 0 0 0 1.5h2.5a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"})),on=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 1.25a.75.75 0 0 0-1.5 0V2.5a3 3 0 0 0-3 3H1.25a.75.75 0 0 0 0 1.5H2.5v2H1.25a.75.75 0 0 0 0 1.5H2.5a3 3 0 0 0 3 3v1.25a.75.75 0 0 0 1.5 0V13.5h2v1.25a.75.75 0 0 0 1.5 0V13.5a3 3 0 0 0 3-3h1.25a.75.75 0 0 0 0-1.5H13.5V7h1.25a.75.75 0 0 0 0-1.5H13.5a3 3 0 0 0-3-3V1.25a.75.75 0 0 0-1.5 0V2.5H7zM10.5 4h-5A1.5 1.5 0 0 0 4 5.5v5A1.5 1.5 0 0 0 5.5 12h5a1.5 1.5 0 0 0 1.5-1.5v-5A1.5 1.5 0 0 0 10.5 4m0 2.25a.75.75 0 0 0-.75-.75h-3.5a.75.75 0 0 0-.75.75v3.5a.75.75 0 0 0 .75.75h3.5a.75.75 0 0 0 .75-.75zM7 7h2v2H7z",clipRule:"evenodd"})),an=(0,pe.cn)("tablet-icon"),sn=({text:e,className:t})=>(0,oe.jsx)("div",{className:an(null,t),children:(0,oe.jsx)("div",{className:an("type"),children:e||"T"})});var ln=n(52531),cn=n(29819),un=n(54309);const dn=JSON.parse('{"breadcrumbs.tenant":"Tenant","breadcrumbs.node":"Node","breadcrumbs.pDisk":"PDisk","breadcrumbs.vDisk":"VDisk","breadcrumbs.tablet":"Tablet","breadcrumbs.tablets":"Tablets","breadcrumbs.storageGroup":"Storage Group","connect":"Connect"}'),fn=(0,me.g4)("ydb-header",{en:dn}),pn=(e,t={})=>{const{clusterName:n,clusterTab:r}=e;return[{text:n||Le.QM,link:(0,Ct.a)(r,t),icon:(0,oe.jsx)(tn,{})}]},hn=(e,t={})=>{const{tenantName:n}=e,r=pn(e,t),i=n?(e=>e.startsWith("/")?e.slice(1):e)(n):fn("breadcrumbs.tenant"),o={text:i,link:n?(0,un.YL)({...t,database:n}):void 0,icon:(0,oe.jsx)(nn,{})};return r.push(o),r},mn=(e,t={})=>{const{nodeId:n,nodeRole:r,nodeActiveTab:i,tenantName:o}=e,a=(s="tablets"===i?"tablets":"nodes",{[ln.Dt]:ln.Dg.diagnostics,[un.vh.diagnosticsTab]:ln.iJ[s]});var s;const l=o?hn(e,{...t,...a}):pn(e,t);let c=fn("breadcrumbs.node");n&&(c+=` ${n}`);const u={text:c,link:n?(0,cn.vI)(n,{database:o,...t},i):void 0,icon:gn(r)};return l.push(u),l};function gn(e){switch(e){case"Storage":return(0,oe.jsx)(rn,{});case"Compute":return(0,oe.jsx)(on,{});default:return}}const vn=(e,t={})=>{const{nodeId:n,pDiskId:r,nodeRole:i}=e,o=mn({...e,nodeRole:null!==i&&void 0!==i?i:"Storage"});let a=fn("breadcrumbs.pDisk");r&&(a+=` ${r}`);const s={text:a,link:r&&n?(0,de.Ck)(r,n,t):void 0};return o.push(s),o},yn={cluster:pn,node:mn,pDisk:vn,tablet:(e,t={})=>{const{tabletId:n,tabletType:r,tenantName:i}=e,o=i?hn(e,t):pn(e,t),a={text:n||fn("breadcrumbs.tablet"),icon:(0,oe.jsx)(sn,{text:(0,Le.bk)(r)})};return o.push(a),o},tenant:hn,vDisk:(e,t={})=>{const{vDiskSlotId:n}=e,r=vn(e,t);let i=fn("breadcrumbs.vDisk");n&&(i+=` ${n}`);const o={text:i};return r.push(o),r},storageGroup:(e,t={})=>{const{groupId:n}=e,r=pn(e,t);let i=fn("breadcrumbs.storageGroup");n&&(i+=` ${n}`);const o={text:i};return r.push(o),r}},bn=(0,pe.cn)("header");const wn=function({mainPage:e}){const{page:t,pageBreadcrumbsOptions:n}=(0,u.N4)((e=>e.header)),r=(0,en.X)(),o=(0,Jt.Zd)(),a=(0,he.J)(),s="/tenant"===(0,ue.zy)().pathname,l=o.title||o.name,c=i.useMemo((()=>{const r=[];let i=n;e&&r.push(e),l&&(i={...i,clusterName:l});const o=((e,t,n=[],r={})=>{if(!e)return n;const i=(0,yn[e])(t,r);return[...n,...i]})(t,i,r);return o.map((e=>({...e,action:()=>{}})))}),[l,e,t,n]),d=()=>{const e=[];return s&&a&&e.push((0,oe.jsxs)(E.$,{view:"flat",onClick:()=>(0,Qt.S)({database:a}),children:[(0,oe.jsx)(f.I,{data:Ot.A}),fn("connect")]})),r&&e.push((0,oe.jsxs)(E.$,{view:"flat",href:(0,Xt.Un)(),target:"_blank",children:[Le.T5,(0,oe.jsx)(f.I,{data:Nt.A})]})),e.length?(0,oe.jsx)(g.s,{direction:"row",gap:1,children:e.map(((t,n)=>(0,oe.jsxs)(i.Fragment,{children:[t,n===e.length-1?null:(0,oe.jsx)(It,{orientation:"vertical"})]},n)))}):null};return(0,oe.jsxs)("header",{className:bn(),children:[(0,oe.jsx)(Yt,{items:c,lastDisplayedItemsCount:1,firstDisplayedItemsCount:1,className:bn("breadcrumbs"),renderItem:({item:e,isCurrent:t})=>{const{icon:n,text:r,link:i}=e;return(0,oe.jsxs)(Zt.E,{className:bn("breadcrumbs-item",{active:t,link:!t}),to:t?void 0:i,children:[n?(0,oe.jsx)("span",{className:bn("breadcrumbs-icon"),children:n}):null,(0,oe.jsx)("span",{children:r})]})}}),d()]})},xn=dt("clusters"),_n=dt("cluster"),En=dt("tenant"),Sn=dt("node"),kn=dt("pDisk"),Cn=dt("vDisk"),On=dt("storageGroup"),Nn=dt("tablet"),Tn=dt("routes"),An=dt("redirect"),In=JSON.parse('{"pages.clusters":"All clusters"}'),Dn=JSON.parse('{"pages.clusters":"\u0412\u0441\u0435 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u044b"}'),Pn=(0,me.g4)("ydb-app-content",{ru:Dn,en:In}),Rn=(0,pe.cn)("app"),jn=[{path:de.Ay.cluster,slot:_n,component:(0,mt._)((()=>Promise.all([n.e(3940),n.e(4130),n.e(4872),n.e(856),n.e(9796),n.e(1434),n.e(5652)]).then(n.bind(n,5252))),"Cluster"),wrapper:Fn},{path:de.Ay.tenant,slot:En,component:(0,mt._)((()=>Promise.all([n.e(3940),n.e(4130),n.e(4872),n.e(7341),n.e(6820),n.e(114),n.e(9796),n.e(1434),n.e(3456)]).then(n.bind(n,85469))),"Tenant"),wrapper:Fn},{path:de.Ay.node,slot:Sn,component:(0,mt._)((()=>Promise.all([n.e(3940),n.e(4130),n.e(4872),n.e(9796),n.e(5168),n.e(4905)]).then(n.bind(n,13758))),"Node"),wrapper:Fn},{path:de.Ay.pDisk,slot:kn,component:(0,mt._)((()=>Promise.all([n.e(3940),n.e(4130),n.e(4872),n.e(9796),n.e(5168),n.e(7145)]).then(n.bind(n,69134))),"PDiskPage"),wrapper:Fn},{path:de.Ay.vDisk,slot:Cn,component:(0,mt._)((()=>Promise.all([n.e(3940),n.e(4130),n.e(4872),n.e(9796),n.e(5168),n.e(8155)]).then(n.bind(n,80208))),"VDiskPage"),wrapper:Fn},{path:de.Ay.storageGroup,slot:On,component:(0,mt._)((()=>Promise.all([n.e(3940),n.e(4130),n.e(4872),n.e(9796),n.e(3812)]).then(n.bind(n,75510))),"StorageGroupPage"),wrapper:Fn},{path:de.Ay.tablet,slot:Nn,component:(0,mt._)((()=>Promise.all([n.e(3940),n.e(7341),n.e(535)]).then(n.bind(n,47584))),"Tablet"),wrapper:Fn}],Mn=(0,mt._)((()=>Promise.all([n.e(3940),n.e(4130),n.e(3779)]).then(n.bind(n,48288))),"Clusters");function Ln(e,t){return(0,oe.jsx)(ue.qh,{path:t.path,exact:t.exact,render:n=>{var r;const o=e.get(t.slot);let a;if(o)a="function"===typeof o.rendered?o.rendered({component:t.component,...n}):o.rendered;else{const e=t.component;a=(0,oe.jsx)(e,{...n})}const s=null!==(r=t.wrapper)&&void 0!==r?r:i.Fragment;return(0,oe.jsx)("main",{className:Rn("main"),children:(0,oe.jsx)(s,{children:a})})}},t.path)}function zn(e){var t;const{singleClusterMode:n}=e,r=function(e){const{children:t}=e;return i.useMemo((()=>new pt(t)),[t])}(e),o=r.get(Tn),a=r.get(An),s=null!==(t=null===a||void 0===a?void 0:a.props)&&void 0!==t?t:n?{to:(0,Ct.a)()}:{to:de.Ay.clusters};let l;return n||(l={text:Pn("pages.clusters"),link:de.Ay.clusters}),(0,oe.jsxs)(ue.dO,{children:[n?null:Ln(r,{path:de.Ay.clusters,exact:!0,component:Mn,slot:xn}),null===o||void 0===o?void 0:o.rendered,(0,oe.jsxs)(ue.qh,{children:[(0,oe.jsx)(wn,{mainPage:l}),(0,oe.jsxs)(ue.dO,{children:[jn.map((e=>Ln(r,e))),(0,oe.jsx)(ue.qh,{path:s.from||s.path,exact:s.exact,strict:s.strict,render:()=>(0,oe.jsx)(ue.rd,{to:s.to,push:s.push})})]})]},"single-cluster")]})}function Fn({children:e}){return(0,oe.jsx)($n,{children:(0,oe.jsxs)(Bn,{children:[(0,oe.jsx)(Un,{}),(0,oe.jsx)($n,{children:e})]})})}function Bn({children:e}){const t=(0,he.J)(),{isLoading:n,error:r}=c.D_.useWhoamiQuery({database:t});return(0,oe.jsx)(ut.r,{loading:n,size:"l",children:(0,oe.jsx)(ct.A,{error:r,children:e})})}function Un(){return ht.m.useGetNodesListQuery(void 0),null}function $n({children:e}){(0,fe.e5)();const t=(0,fe.Pm)();return(0,oe.jsx)(ut.r,{loading:!t,size:"l",children:e})}const qn=(0,a.Ng)((function(e){return{isAuthenticated:e.authentication.isAuthenticated,singleClusterMode:e.singleClusterMode}}))((function(e){const{singleClusterMode:t,isAuthenticated:n}=e,r=(0,fe.li)();return(0,oe.jsxs)(ue.dO,{children:[!r&&(0,oe.jsx)(ue.qh,{path:de.Ay.auth,children:(0,oe.jsx)(kt,{closable:!0})}),(0,oe.jsx)(ue.qh,{children:(0,oe.jsx)("div",{className:Rn({embedded:t}),children:n?e.children:r?(0,oe.jsx)(lt.O,{}):(0,oe.jsx)(kt,{})})})]})}));var Hn=n(16332),Vn=n(69118),Wn=n(67087);const Kn=({children:e})=>{(0,ue.zy)();const t=(0,ue.W6)();return e({replace(e){t.replace(e.search||"?",e.state)},push(e){t.push(e.search||"?",e.state)},get location(){return t.location}})},Gn=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10 4.5a2 2 0 1 1-4 0 2 2 0 0 1 4 0m1.5 0a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0m-9 8c0-.204.22-.809 1.32-1.459C4.838 10.44 6.32 10 8 10s3.162.44 4.18 1.041c1.1.65 1.32 1.255 1.32 1.459a1 1 0 0 1-1 1h-9a1 1 0 0 1-1-1m5.5-4c-3.85 0-7 2-7 4A2.5 2.5 0 0 0 3.5 15h9a2.5 2.5 0 0 0 2.5-2.5c0-2-3.15-4-7-4",clipRule:"evenodd"}));var Yn=n(73633),Qn=n(27738),Zn=n(98392),Jn=n(18650),Xn=n(40091);const er=i.createContext(void 0);er.displayName="AsideHeaderInnerContext";const tr=er.Provider,nr=()=>{const e=i.useContext(er);if(void 0===e)throw new Error("AsideHeaderInnerContext is not initialized.\n Please check if you wrapped your component with AsideHeaderInnerContext.Provider");return e},rr=i.createContext({compact:!1,size:0});rr.displayName="AsideHeaderContext";const ir=rr.Provider,or=()=>{const e=i.useContext(rr);if(void 0===e)throw new Error("AsideHeaderContext is not initialized.\n Please check if you wrapped your component with AsideHeader\n Context.Provider");return e};var ar=n(7450);y('.gn-composite-bar-highlighted-item{--_--background-color:var(--g-color-base-background);--_--item-icon-background-size:38px;--_--item-background-color-hover:var(--g-color-base-selection-hover);--_--item-selected-background-color-active:var(--g-color-base-selection);display:flex;justify-content:center;position:absolute;z-index:10000}.gn-composite-bar-highlighted-item__icon{align-items:center;background-color:var(--gn-aside-header-background-color,var(--_--background-color));border-radius:7px;box-shadow:0 8px 20px 0 var(--g-color-sfx-shadow);cursor:pointer;display:flex;height:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));justify-content:center;overflow:hidden;position:relative;transform:translateY(1px);width:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size))}.gn-composite-bar-highlighted-item__icon:before{background-color:var(--gn-aside-header-item-current-background-color,var(--_--item-selected-background-color-active));content:"";height:100%;position:absolute;width:100%;z-index:-1}.gn-composite-bar-highlighted-item__icon:hover:before{background-color:var(--gn-aside-header-item-background-color-hover,var(--_--item-background-color-hover))}');const sr=(0,v.b)("composite-bar-highlighted-item"),lr=({iconRef:e,iconNode:t,onClick:n,onClickCapture:r})=>{const{openModalSubscriber:o}=nr(),[{top:a,left:s,width:l,height:c},u]=(0,i.useState)({top:0,left:0,width:0,height:0}),[d,f]=(0,i.useState)(!1),p=(0,i.useMemo)((()=>(0,b.d)((()=>{var t;const{top:n=0,left:r=0,width:i=0,height:o=0}=(null===(t=null===e||void 0===e?void 0:e.current)||void 0===t?void 0:t.getBoundingClientRect())||{};u({top:n+window.scrollY,left:r+window.scrollX,width:i,height:o})}),200,{leading:!0})),[e]),h=(0,i.useCallback)((()=>p()),[p]);return(0,i.useEffect)((()=>{if(d)return h(),window.addEventListener("resize",h),()=>window.removeEventListener("resize",h)}),[h,d]),null===o||void 0===o||o((e=>{f(e)})),t&&d?i.createElement(Zn.Z,null,i.createElement("div",{className:sr(),style:{left:s,top:a,width:l,height:c},onClick:n,onClickCapture:r,"data-toast":!0},i.createElement("div",{className:sr("icon")},t))):null};lr.displayName="HighlightedItem";const cr="collapse-item-id",ur=["right-start","right-end","right"];function dr(e){if(!hr(e))return 40;switch(e.type){case"action":return 50;case"divider":return 15;default:return 40}}function fr(e){return e.reduce(((e,t)=>e+dr(t)),0)}function pr(e){const t=e.findIndex((({current:e})=>Boolean(e)));return-1===t?void 0:t}function hr(e){return void 0!==(null===e||void 0===e?void 0:e.id)}y('.gn-composite-bar-item{--gn-composite-bar-item-action-size:36px;--_--horizontal-divider-line-color:var(--g-color-line-generic);--_--item-background-color-hover:var(--g-color-base-simple-hover);--_--item-general-icon-color:var(--g-color-text-primary);--_--item-icon-color:var(--g-color-text-misc);--_--item-text-color:var(--g-color-text-primary);--_--item-collapsed-radius:7px;--_--item-selected-text-color:var(--g-color-text-primary);--_--item-selected-background-color-active:var(--g-color-base-selection);align-items:center;cursor:pointer;display:flex;height:100%;min-width:0;width:100%}.gn-composite-bar-item__icon{color:var(--gn-aside-header-item-icon-color,var(--_--item-icon-color))}.gn-composite-bar-item_current .gn-composite-bar-item__icon{color:var(--gn-aside-header-item-current-icon-color,var(--gn-aside-header-item-icon-color,var(--_--item-icon-color)))}.gn-composite-bar-highlighted-item .gn-composite-bar-item__icon,.gn-composite-bar_subheader .gn-composite-bar-item__icon,.gn-footer-item .gn-composite-bar-item__icon{color:var(--gn-aside-header-general-item-icon-color,var(--_--item-general-icon-color))}.gn-composite-bar-highlighted-item.gn-composite-bar-item_current .gn-composite-bar-item__icon,.gn-composite-bar_subheader .gn-composite-bar-item_current .gn-composite-bar-item__icon,.gn-footer-item.gn-composite-bar-item_current .gn-composite-bar-item__icon{color:var(--gn-aside-header-item-current-icon-color,var(--gn-aside-header-general-item-icon-color,var(--_--item-general-icon-color)))}.gn-composite-bar-item__icon-tooltip .g-action-tooltip__description{color:var(--g-color-text-light-primary);margin-block-start:0}.gn-composite-bar-item__icon-place{align-items:center;display:flex;flex-shrink:0;height:100%;justify-content:center;width:var(--gn-aside-header-min-width)}.gn-composite-bar-item__title{display:flex;overflow:hidden}.gn-composite-bar-item__title-text{color:var(--gn-aside-header-item-text-color,var(--_--item-text-color));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gn-composite-bar-item_current .gn-composite-bar-item__title-text{color:var(--gn-aside-header-item-current-text-color,var(--_--item-selected-text-color))}.gn-composite-bar-item__title-adornment{margin:0 10px}.gn-composite-bar-item__collapse-item{--_--item-icon-color:var(--g-color-text-misc);align-items:center;cursor:pointer;display:flex;height:100%;padding:0 16px;width:100%}.gn-composite-bar-item__collapse-item-icon{color:var(--gn-aside-header-item-icon-color,var(--_--item-icon-color));margin-right:10px}.gn-composite-bar-item__collapse-item .gn-composite-bar-item__title-adornment{margin-right:0}.gn-composite-bar-item__menu-divider{border-top:1px solid var(--gn-aside-header-divider-horizontal-color,var(--_--horizontal-divider-line-color));cursor:default;margin:0 8px;width:100%}.gn-composite-bar-item__collapse-items-popup-content{padding:4px 0}.gn-composite-bar-item__link{align-items:center;display:flex;height:100%;width:100%}.gn-composite-bar-item__link,.gn-composite-bar-item__link:active,.gn-composite-bar-item__link:focus,.gn-composite-bar-item__link:hover,.gn-composite-bar-item__link:visited{color:inherit;outline:none;text-decoration:none}.gn-composite-bar-item__btn-icon{align-items:center;display:flex;height:100%;justify-content:center;width:100%}.gn-composite-bar-item_type_action{background:var(--g-color-base-float);border-radius:var(--gn-composite-bar-item-action-size);box-shadow:0 0 0 1px rgba(0,0,0,.03),0 5px 6px rgba(0,0,0,.12);height:var(--gn-composite-bar-item-action-size);justify-content:center;margin:0 10px 8px;transition:transform .1s ease-out,background-color .15s linear}.gn-composite-bar-item_type_action:focus-visible{box-shadow:0 0 0 2px var(--g-color-line-misc)}.gn-composite-bar-item_type_action:hover{background-color:var(--g-color-base-float-hover)}.gn-composite-bar-item_type_action:active{box-shadow:0 1px 2px var(--g-color-sfx-shadow);transform:scale(.96);transition:none}.gn-composite-bar-item_type_action .gn-composite-bar-item__icon-place{width:var(--gn-composite-bar-item-action-size)}.gn-composite-bar-item_type_action .gn-composite-bar-item__title{margin-right:16px}.gn-composite-bar-item__icon-tooltip_item-type_action{margin-left:10px}.gn-composite-bar-item:not(.gn-composite-bar-item_compact).gn-composite-bar-item_current.gn-composite-bar-item_type_regular{background-color:var(--gn-aside-header-item-current-background-color,var(--_--item-selected-background-color-active));border-radius:var(--gn-aside-header-item-expanded-radius)}.gn-composite-bar-item:not(.gn-composite-bar-item_compact):hover.gn-composite-bar-item_type_regular{background-color:var(--gn-aside-header-item-current-background-color-hover,var(--gn-aside-header-item-current-background-color,var(--_--item-selected-background-color-active)));border-radius:var(--gn-aside-header-item-expanded-radius)}.gn-composite-bar-item:not(.gn-composite-bar-item_compact):not(.gn-composite-bar-item_current):hover.gn-composite-bar-item_type_regular{background-color:var(--gn-aside-header-item-background-color-hover,var(--_--item-background-color-hover));border-radius:var(--gn-aside-header-item-expanded-radius)}.gn-composite-bar-item_compact.gn-composite-bar-item_type_action{width:var(--gn-composite-bar-item-action-size)}.gn-composite-bar-item_compact.gn-composite-bar-item_type_action .gn-composite-bar-item__title{margin:0}.gn-composite-bar-item_compact.gn-composite-bar-item_current.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon{background-color:transparent;position:relative}.gn-composite-bar-item_compact.gn-composite-bar-item_current.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon:before{background-color:var(--gn-aside-header-item-current-background-color,var(--_--item-selected-background-color-active));border-radius:var(--gn-aside-header-item-collapsed-radius,var(--_--item-collapsed-radius));content:"";height:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));left:50%;margin-left:-19px;margin-top:-19px;position:absolute;top:50%;width:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));z-index:-1}.gn-composite-bar-item_compact:hover.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon{background-color:transparent;position:relative}.gn-composite-bar-item_compact:hover.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon:before{background-color:var(--gn-aside-header-item-current-background-color-hover,var(--gn-aside-header-item-current-background-color,var(--_--item-selected-background-color-active)));border-radius:var(--gn-aside-header-item-collapsed-radius,var(--_--item-collapsed-radius));content:"";height:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));left:50%;margin-left:-19px;margin-top:-19px;position:absolute;top:50%;width:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));z-index:-1}.gn-composite-bar-item_compact:not(.gn-composite-bar-item_current):hover.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon{background-color:transparent;position:relative}.gn-composite-bar-item_compact:not(.gn-composite-bar-item_current):hover.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon:before{background-color:var(--gn-aside-header-item-background-color-hover,var(--_--item-background-color-hover));border-radius:var(--gn-aside-header-item-collapsed-radius,var(--_--item-collapsed-radius));content:"";height:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));left:50%;margin-left:-19px;margin-top:-19px;position:absolute;top:50%;width:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));z-index:-1}');const mr=(0,v.b)("composite-bar-item");function gr(e){let t=i.createElement("div",{className:mr("title-text")},e.title);return e.rightAdornment&&(t=i.createElement(i.Fragment,null,t,i.createElement("div",{className:mr("title-adornment")},e.rightAdornment))),t}const vr=["right-end"],yr=[-20,8],br=e=>{const{item:t,className:n,collapseItems:r,onMouseLeave:o,onMouseEnter:a,enableTooltip:s=!0,popupVisible:l=!1,popupAnchor:c,popupPlacement:u=vr,popupOffset:d=yr,popupKeepMounted:p,popupContentClassName:h,renderPopupContent:m,onClosePopup:g,onItemClick:v,onItemClickCapture:y,onCollapseItemClick:b,bringForward:w}=e,{compact:x}=or(),[_,E]=i.useState(!1),S=i.useRef(null),k=c||S,C=i.useRef(null),O=t.type||"regular",N=t.current||!1,T=t.tooltipText||t.title,A=t.icon,I=t.iconSize||18,D=t.iconQa,P=t.id===cr,R=i.useMemo((()=>[{name:"compact",enabled:!0,options:{compact:x},phase:"main",fn(){}}]),[x]),j=i.useCallback((e=>{var t;e instanceof MouseEvent&&e.target&&(null===(t=S.current)||void 0===t?void 0:t.contains(e.target))||null===g||void 0===g||g()}),[g]);if("divider"===t.type)return i.createElement("div",{className:mr("menu-divider")});const M=e=>x?i.createElement(Jn.m,{title:"",description:T,disabled:!s||P&&_||l,placement:"right",className:mr("icon-tooltip",{"item-type":O})},i.createElement("div",{onMouseEnter:()=>null===a||void 0===a?void 0:a(),onMouseLeave:()=>null===o||void 0===o?void 0:o(),className:mr("btn-icon")},e)):e,L=({icon:e,title:r})=>{const s=i.createElement(i.Fragment,null,i.createElement("div",{className:mr({type:O,current:N,compact:x},n),ref:S,"data-qa":t.qa,onClick:e=>{P?(E(!_),null===b||void 0===b||b()):null===v||void 0===v||v(t,!1,e)},onClickCapture:y,onMouseEnter:()=>{x||null===a||void 0===a||a()},onMouseLeave:()=>{x||null===o||void 0===o||o()}},i.createElement("div",{className:mr("icon-place"),ref:C},M(e)),i.createElement("div",{className:mr("title"),title:"string"===typeof t.title?t.title:void 0},r)),m&&Boolean(null===k||void 0===k?void 0:k.current)&&i.createElement(_e.z,{contentClassName:mr("popup",h),open:l,keepMounted:p,placement:u,offset:d,anchorRef:k,onClose:j,modifiers:R},m()));return t.link?i.createElement("a",{href:t.link,className:mr("link")},s):s},z=A?i.createElement(f.I,{qa:D,data:A,size:I,className:mr("icon")}):null,F={icon:z,title:gr(t)};let B,U=null;const $={compact:Boolean(x),collapsed:!1,item:t,ref:S};return"function"===typeof t.itemWrapper?(B=t.itemWrapper(F,L,$),U=w&&t.itemWrapper(F,(({icon:e})=>M(e)),$)):(B=L(F),U=w&&M(z)),i.createElement(i.Fragment,null,w&&i.createElement(lr,{iconNode:U,iconRef:C,onClick:e=>null===v||void 0===v?void 0:v(t,!1,e),onClickCapture:y}),B,_&&P&&(null===r||void 0===r?void 0:r.length)&&Boolean(null===k||void 0===k?void 0:k.current)&&i.createElement(wr,Object.assign({},e,{anchorRef:S,onClose:()=>E(!1)})))};function wr({onItemClick:e,collapseItems:t,anchorRef:n,onClose:r}){const{compact:o}=or();return(null===t||void 0===t?void 0:t.length)?i.createElement(_e.z,{placement:ur,open:!0,anchorRef:n,onClose:r},i.createElement("div",{className:mr("collapse-items-popup-content")},i.createElement(Xn.B,{itemClassName:mr("root-collapse-item"),items:t,selectedItemIndex:pr(t),itemHeight:28,itemsHeight:28*t.length,virtualized:!1,filterable:!1,sortable:!1,onItemClick:r,renderItem:t=>{const r=({title:n,icon:r})=>{const o=i.createElement("div",{className:mr("collapse-item"),onClick:n=>{null===e||void 0===e||e(t,!0,n)}},r,n);return t.link?i.createElement("a",{href:t.link,className:mr("link")},o):o},a={title:gr(t),icon:t.icon&&i.createElement(f.I,{data:t.icon,size:14,className:mr("collapse-item-icon")})},s={compact:Boolean(o),collapsed:!0,item:t,ref:n};return"function"===typeof t.itemWrapper?t.itemWrapper(a,r,s):r(a)}}))):null}br.displayName="Item";n(82435);y(".gn-footer-item{height:40px;width:100%}");const xr=(0,v.b)("footer-item"),_r=e=>{var{item:t}=e,n=d(e,["item"]);return i.createElement(br,Object.assign({},n,{item:Object.assign({iconSize:18},t),className:xr({compact:n.compact}),onItemClick:t.onItemClick,onItemClickCapture:t.onItemClickCapture}))},Er=i.memo((({renderContent:e,size:t})=>i.createElement(i.Fragment,null,e({size:t}))));Er.displayName="RenderContent";const Sr=({size:e,className:t,cssSizeVariableName:n="--gn-aside-header-size",renderContent:r,children:o})=>i.createElement("div",{className:t,style:Object.assign({},{[n]:`${e}px`})},"function"===typeof r?i.createElement(Er,{size:e,renderContent:r}):o);var kr=n(16258);y('.g-root{--gn-aside-top-panel-height:0px}.gn-aside-header{--gn-aside-header-min-width:56px;--_--item-icon-background-size:38px;--_--background-color:var(--g-color-base-background);--_--decoration-collapsed-background-color:var(--g-color-base-warning-light);--_--decoration-expanded-background-color:var(--g-color-base-warning-light);--_--vertical-divider-line-color:var(--g-color-line-generic);--_--horizontal-divider-line-color:var(--g-color-line-generic);background-color:var(--g-color-base-background);height:100%;position:relative;width:100%}.gn-aside-header__aside{background-color:var(--gn-aside-header-expanded-background-color,var(--gn-aside-header-background-color,var(--_--background-color)));box-sizing:border-box;display:flex;flex-direction:column;height:100vh;left:0;margin-top:var(--gn-aside-top-panel-height);max-height:calc(100vh - var(--gn-aside-top-panel-height));position:sticky;top:var(--gn-aside-top-panel-height);width:inherit;z-index:var(--gn-aside-header-z-index,100)}.gn-aside-header__aside:after{background-color:var(--gn-aside-header-divider-vertical-color,var(--_--vertical-divider-line-color));content:"";height:100%;position:absolute;right:0;top:0;width:1px;z-index:2}.gn-aside-header__aside-popup-anchor{inset:0;position:absolute;z-index:1}.gn-aside-header__aside-content{--gradient-height:334px;display:flex;flex-direction:column;height:inherit;overflow-x:hidden;padding-top:var(--gn-aside-header-padding-top);position:relative;user-select:none;width:inherit;z-index:2}.gn-aside-header__aside-content>.gn-aside-header-logo{margin:8px 0}.gn-aside-header__aside-content_with-decoration{background:linear-gradient(180deg,var(--gn-aside-header-decoration-expanded-background-color,var(--_--decoration-expanded-background-color)) calc(var(--gradient-height)*.33),transparent calc(var(--gradient-height)*.88))}.gn-aside-header__aside-custom-background{bottom:0;display:flex;position:absolute;top:0;z-index:-1}.gn-aside-header_compact .gn-aside-header__aside{background-color:var(--gn-aside-header-collapsed-background-color,var(--gn-aside-header-background-color,var(--_--background-color)))}.gn-aside-header_compact .gn-aside-header__aside-content{background:transparent}.gn-aside-header__header{--gn-aside-header-header-divider-height:29px;box-sizing:border-box;flex:none;padding-bottom:22px;padding-top:8px;position:relative;width:100%;z-index:1}.gn-aside-header__header .gn-aside-header__header-divider{bottom:0;color:var(--gn-aside-header-decoration-collapsed-background-color,var(--_--decoration-collapsed-background-color));display:none;left:0;position:absolute;z-index:-2}.gn-aside-header__header_with-decoration:before{background-color:var(--gn-aside-header-decoration-collapsed-background-color,var(--_--decoration-collapsed-background-color));content:"";display:none;height:calc(100% - var(--gn-aside-header-header-divider-height));left:0;position:absolute;top:0;width:100%;z-index:-2}.gn-aside-header__header:after{background-color:var(--gn-aside-header-divider-horizontal-color,var(--_--horizontal-divider-line-color));bottom:12px;content:"";height:1px;left:0;position:absolute;width:100%;z-index:-2}.gn-aside-header_compact .gn-aside-header__header:before,.gn-aside-header_compact .gn-aside-header__header_with-decoration .gn-aside-header__header-divider{display:block}.gn-aside-header_compact .gn-aside-header__header_with-decoration:after{display:none}.gn-aside-header__logo-button-wrapper{width:var(--gn-aside-header-min-width)}.gn-aside-header__logo-button[class],.gn-aside-header__logo-button[class] .g-button__icon{height:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size))}.gn-aside-header__menu-items{flex-grow:1}.gn-aside-header__footer{display:flex;flex-direction:column;flex-shrink:0;margin:8px 0;width:100%}.gn-aside-header__panels{inset:var(--gn-aside-top-panel-height) 0 0;max-height:calc(100vh - var(--gn-aside-top-panel-height));overflow:auto;position:fixed;z-index:var(--gn-aside-header-panel-z-index,98)}.gn-aside-header__panel{height:100%}.gn-aside-header__pane-container{display:flex;flex-direction:row;outline:none;overflow:visible;user-select:text}.gn-aside-header__pane-top-divider{background-color:var(--gn-aside-header-divider-horizontal-color,var(--_--horizontal-divider-line-color));height:1px;margin-top:-1px}.gn-aside-header__pane-top{background:var(--g-color-base-background);position:fixed;top:0;width:100%;z-index:var(--gn-aside-header-pane-top-z-index,98)}.gn-aside-header__pane-top-alert_centered{display:flex;justify-content:space-around}.gn-aside-header__pane-top-alert_dense{padding-bottom:var(--g-spacing-2);padding-top:var(--g-spacing-2)}.gn-aside-header__content{margin-top:var(--gn-aside-top-panel-height);width:calc(100% - var(--gn-aside-header-size));z-index:var(--gn-aside-header-content-z-index,95)}');const Cr=i.lazy((()=>n.e(99).then(n.bind(n,90099)).then((e=>({default:e.TopPanel}))))),Or=Object.assign((({compact:e,className:t,children:n,topAlert:r})=>{const o=e?56:236,a=(0,i.useMemo)((()=>({size:o,compact:e})),[e,o]);return i.createElement(ir,{value:a},i.createElement("div",{className:(0,kr.b)({compact:e},t),style:Object.assign({},{"--gn-aside-header-size":`${o}px`})},r&&i.createElement(i.Suspense,{fallback:null},i.createElement(Cr,{topAlert:r})),i.createElement("div",{className:(0,kr.b)("pane-container")},n)))}),{Content:({children:e,renderContent:t})=>{const{size:n}=or();return i.createElement(Sr,{size:n,className:(0,kr.b)("content"),renderContent:t},e)}});var Nr=n(42793);const Tr=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.5 2.255v-.01c.003-.03.013-.157-.361-.35C9.703 1.668 8.967 1.5 8 1.5s-1.703.169-2.138.394c-.375.194-.365.32-.362.351v.01c-.003.03-.013.157.362.35C6.297 2.832 7.033 3 8 3s1.703-.169 2.139-.394c.374-.194.364-.32.361-.351M8 4.5c.506 0 .99-.04 1.436-.118l.84 2.352.253.707.717.221c.648.2 1.055.44 1.277.65.192.18.227.31.227.438 0 .14-.055.488-.937.878-.869.384-2.2.622-3.813.622s-2.944-.238-3.813-.622c-.882-.39-.937-.738-.937-.878 0-.128.035-.259.227-.439.222-.209.629-.448 1.277-.649l.717-.221.253-.707.84-2.352c.445.079.93.118 1.436.118m4-2.25c0 .738-.433 1.294-1.136 1.669l.825 2.31c1.553.48 2.561 1.32 2.561 2.52 0 1.854-2.402 2.848-5.5 2.985V15a.75.75 0 0 1-1.5 0v-3.266c-3.098-.136-5.5-1.131-5.5-2.984 0-1.2 1.008-2.04 2.561-2.52l.825-2.311C4.433 3.544 4 2.988 4 2.25 4 .75 5.79 0 8 0s4 .75 4 2.25",clipRule:"evenodd"})),Ar=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.5 2.255v-.01c.003-.03.013-.157-.361-.35C9.703 1.668 8.967 1.5 8 1.5s-1.703.169-2.138.394c-.375.194-.365.32-.362.351v.01c-.003.03-.013.157.362.35C6.297 2.832 7.033 3 8 3s1.703-.169 2.139-.394c.374-.194.364-.32.361-.351M12 2.25c0 .738-.433 1.294-1.136 1.669l.825 2.31c1.553.48 2.561 1.32 2.561 2.52 0 1.854-2.402 2.848-5.5 2.985V15a.75.75 0 0 1-1.5 0v-3.266c-3.098-.136-5.5-1.131-5.5-2.984 0-1.2 1.008-2.04 2.561-2.52l.825-2.311C4.433 3.544 4 2.988 4 2.25 4 .75 5.79 0 8 0s4 .75 4 2.25",clipRule:"evenodd"}));var Ir;function Dr(){return Dr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dr.apply(null,arguments)}var Pr=function(e){return i.createElement("svg",Dr({width:56,height:29,viewBox:"0 0 56 29",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),Ir||(Ir=i.createElement("path",{d:"M56 0v29c-.8-1-7-6.1-17.7-8.4L13 15.7A16 16 0 0 1 0 0Z"})))},Rr=n(32084),jr=n(14794),Mr=n(48681);function Lr(){return Lr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lr.apply(null,arguments)}function zr(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Fr(e,t){return Fr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Fr(e,t)}function Br(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Fr(e,t)}var Ur,$r,qr,Hr;function Vr(){if($r)return Ur;$r=1;return Ur="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Wr(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}(function(){if(Hr)return qr;Hr=1;var e=Vr();function t(){}function n(){}return n.resetWarningCache=t,qr=function(){function r(t,n,r,i,o,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function i(){return r}r.isRequired=r;var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o}})()();var Kr=!1,Gr=i.createContext(null),Yr=function(e){return e.scrollTop},Qr="unmounted",Zr="exited",Jr="entering",Xr="entered",ei="exiting",ti=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=Zr,r.appearStatus=Jr):i=Xr:i=t.unmountOnExit||t.mountOnEnter?Qr:Zr,r.state={status:i},r.nextCallback=null,r}Br(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Qr?{status:Zr}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Jr&&n!==Xr&&(t=Jr):n!==Jr&&n!==Xr||(t=ei)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Jr){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Mr.findDOMNode(this);n&&Yr(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Zr&&this.setState({status:Qr})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[Mr.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||Kr?this.safeSetState({status:Xr},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:Jr},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Xr},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Mr.findDOMNode(this);t&&!Kr?(this.props.onExit(r),this.safeSetState({status:ei},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Zr},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Zr},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Mr.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Qr)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=zr(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return i.createElement(Gr.Provider,{value:null},"function"===typeof n?n(e,r):i.cloneElement(i.Children.only(n),r))},t}(i.Component);function ni(){}ti.contextType=Gr,ti.propTypes={},ti.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ni,onEntering:ni,onEntered:ni,onExit:ni,onExiting:ni,onExited:ni},ti.UNMOUNTED=Qr,ti.EXITED=Zr,ti.ENTERING=Jr,ti.ENTERED=Xr,ti.EXITING=ei;var ri=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"===typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))},ii=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"===typeof n.className?n.className=Wr(n.className,r):n.setAttribute("class",Wr(n.className&&n.className.baseVal||"",r)));var n,r}))},oi=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1];t.removeClasses(i,"exit"),t.addClass(i,o?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.addClass(i,o,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.removeClasses(i,o),t.addClass(i,o,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"===typeof n,i=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:i,activeClassName:r?i+"-active":n[e+"Active"],doneClassName:r?i+"-done":n[e+"Done"]}},t}Br(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],i=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&i&&(r+=" "+i),"active"===n&&e&&Yr(e),r&&(this.appliedClasses[t][n]=r,ri(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,o=n.done;this.appliedClasses[t]={},r&&ii(e,r),i&&ii(e,i),o&&ii(e,o)},n.render=function(){var e=this.props;e.classNames;var t=zr(e,["classNames"]);return i.createElement(ti,Lr({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(i.Component);function ai(e,t){var n=Object.create(null);return e&&i.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,i.isValidElement)(e)?t(e):e}(e)})),n}function si(e,t,n){return null!=n[t]?n[t]:e.props[t]}function li(e,t,n){var r=ai(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var c=i[l][r];s[i[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(t,r);return Object.keys(o).forEach((function(a){var s=o[a];if((0,i.isValidElement)(s)){var l=a in t,c=a in r,u=t[a],d=(0,i.isValidElement)(u)&&!u.props.in;!c||l&&!d?c||!l||d?c&&l&&(0,i.isValidElement)(u)&&(o[a]=(0,i.cloneElement)(s,{onExited:n.bind(null,s),in:u.props.in,exit:si(s,"exit",e),enter:si(s,"enter",e)})):o[a]=(0,i.cloneElement)(s,{in:!1}):o[a]=(0,i.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:si(s,"exit",e),enter:si(s,"enter",e)})}})),o}oi.defaultProps={classNames:""},oi.propTypes={};var ci,ui,di=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},fi=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}Br(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,ai(n.children,(function(e){return(0,i.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:si(e,"appear",n),enter:si(e,"enter",n),exit:si(e,"exit",n)})}))):li(e,o,a),firstRender:!1}},n.handleExited=function(e,t){var n=ai(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Lr({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=zr(e,["component","childFactory"]),o=this.state.contextValue,a=di(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?i.createElement(Gr.Provider,{value:o},a):i.createElement(Gr.Provider,{value:o},i.createElement(t,r,a))},t}(i.Component);fi.propTypes={},fi.defaultProps={component:"div",childFactory:function(e){return e}},(function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}Br(t,e);var n=t.prototype;return n.handleLifecycle=function(e,t,n){var r,o=this.props.children,a=i.Children.toArray(o)[t];if(a.props[e]&&(r=a.props)[e].apply(r,n),this.props[e]){var s=a.props.nodeRef?void 0:Mr.findDOMNode(this);this.props[e](s)}},n.render=function(){var e=this.props,t=e.children,n=e.in,r=zr(e,["children","in"]),o=i.Children.toArray(t),a=o[0],s=o[1];return delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,i.createElement(fi,r,n?i.cloneElement(a,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):i.cloneElement(s,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},t}(i.Component)).propTypes={};var pi="out-in",hi="in-out",mi=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},gi=((ci={})[pi]=function(e){var t=e.current,n=e.changeState;return i.cloneElement(t,{in:!1,onExited:mi(t,"onExited",(function(){n(Jr,null)}))})},ci[hi]=function(e){var t=e.current,n=e.changeState,r=e.children;return[t,i.cloneElement(r,{in:!0,onEntered:mi(r,"onEntered",(function(){n(Jr)}))})]},ci),vi=((ui={})[pi]=function(e){var t=e.children,n=e.changeState;return i.cloneElement(t,{in:!0,onEntered:mi(t,"onEntered",(function(){n(Xr,i.cloneElement(t,{in:!0}))}))})},ui[hi]=function(e){var t=e.current,n=e.children,r=e.changeState;return[i.cloneElement(t,{in:!1,onExited:mi(t,"onExited",(function(){r(Xr,i.cloneElement(n,{in:!0}))}))}),i.cloneElement(n,{in:!0})]},ui),yi=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).state={status:Xr,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}Br(t,e);var n=t.prototype;return n.componentDidMount=function(){this.appeared=!0},t.getDerivedStateFromProps=function(e,t){return null==e.children?{current:null}:t.status===Jr&&e.mode===hi?{status:Jr}:!t.current||(n=t.current,r=e.children,n===r||i.isValidElement(n)&&i.isValidElement(r)&&null!=n.key&&n.key===r.key)?{current:i.cloneElement(e.children,{in:!0})}:{status:ei};var n,r},n.render=function(){var e,t=this.props,n=t.children,r=t.mode,o=this.state,a=o.status,s=o.current,l={children:n,current:s,changeState:this.changeState,status:a};switch(a){case Jr:e=vi[r](l);break;case ei:e=gi[r](l);break;case Xr:e=s}return i.createElement(Gr.Provider,{value:{isMounting:!this.appeared}},e)},t}(i.Component);yi.propTypes={},yi.defaultProps={mode:pi};const bi=200,wi=800;function xi(e){var t,n;return"touches"in e?null!==(n=null===(t=e.touches[0])||void 0===t?void 0:t.clientX)&&void 0!==n?n:0:e.clientX}function _i(e){const{direction:t,width:n,minResizeWidth:r=bi,maxResizeWidth:o=wi,onResizeStart:a,onResize:s}=e,[l,c]=i.useState(!1),[u,d]=i.useState(0),[f,p]=i.useState(null!==n&&void 0!==n?n:400),h=i.useCallback((e=>Math.min(Math.max(e,r),o)),[r,o]),m=i.useCallback((e=>h((null!==n&&void 0!==n?n:f)+("right"===t?e:-e))),[n,f,t,h]),g=i.useCallback((()=>{c(!0),d(0),null===a||void 0===a||a()}),[a]),v=i.useCallback((e=>{d(e)}),[]),y=i.useCallback((e=>{const t=m(e);c(!1),p(t),null===s||void 0===s||s(t)}),[m,s]),b=l?m(u):h(null!==n&&void 0!==n?n:f),w=function({onStart:e,onMove:t,onEnd:n}){const r=i.useRef(0),o=i.useRef(0),a=i.useCallback((e=>{const n=xi(e);if(o.current===n)return;o.current=n;const i=r.current-n;t(i)}),[t]),s=i.useCallback((e=>{window.removeEventListener("mousemove",a),window.removeEventListener("touchmove",a),document.body.style.removeProperty("user-select"),document.body.style.removeProperty("-webkit-user-select"),document.body.style.removeProperty("cursor");const t=xi(e),i=r.current-t;n(i)}),[a,n]),l=i.useCallback((t=>{const n=xi(t);r.current=n,o.current=n,window.addEventListener("mouseup",s,{once:!0}),window.addEventListener("touchend",s,{once:!0}),window.addEventListener("touchcancel",s,{once:!0}),window.addEventListener("mousemove",a),window.addEventListener("touchmove",a),document.body.style.setProperty("user-select","none"),document.body.style.setProperty("-webkit-user-select","none"),document.body.style.setProperty("cursor","col-resize"),e()}),[s,a,e]);return{onMouseDown:l,onTouchStart:l}}({onStart:g,onMove:v,onEnd:y});return{resizedWidth:b,resizerHandlers:w}}y(".gn-drawer{--_--item-shadow-default:0 1px 5px 0 var(--g-color-sfx-shadow);--_--resizer-width:8px;--_--resizer-color:var(--g-color-base-generic);--_--resizer-handle-color:var(--g-color-line-generic);--_--resizer-handle-color-hover:var(--g-color-line-generic-hover);--_--resizer-z-index:100;--_--veil-background-color:var(--g-color-sfx-veil);pointer-events:none}.gn-drawer_hideVeil{--_--item-shadow:var(--gn-drawer-item-shadow,var(--_--item-shadow-default))}.gn-drawer__item{background-color:var(--g-color-base-background);bottom:0;box-shadow:var(--_--item-shadow,none);height:100%;left:0;pointer-events:auto;position:absolute;top:0;will-change:transform;z-index:var(--gn-drawer-item-z-index)}.gn-drawer__item_direction_right{left:auto;right:0}.gn-drawer__item-transition-enter{transform:translate(-100%)}.gn-drawer__item-transition_direction_right-enter{transform:translate(100%)}.gn-drawer__item-transition-enter-active,.gn-drawer__item-transition_direction_right-enter-active{transform:translate(0);transition:transform .3s}.gn-drawer__item-transition-enter-done,.gn-drawer__item-transition_direction_right-enter-done{filter:blur(0);transform:translateZ(0)}.gn-drawer__item-transition-exit,.gn-drawer__item-transition_direction_right-exit{transform:translate(0)}.gn-drawer__item-transition-exit-active,.gn-drawer__item-transition_direction_right-exit-active{transition:transform .3s}.gn-drawer__item-transition-exit-active{transform:translate(-100%)}.gn-drawer__item-transition_direction_right-exit-active{transform:translate(100%)}.gn-drawer__item-transition-exit-done,.gn-drawer__item-transition_direction_right-exit-done,.gn-drawer__item_hidden{visibility:hidden}.gn-drawer__veil{background-color:var(--gn-drawer-veil-background-color,var(--_--veil-background-color));inset:0;pointer-events:auto;position:absolute;z-index:var(--gn-drawer-veil-z-index)}.gn-drawer__veil_hidden{display:none}.gn-drawer__veil-transition-enter{opacity:0}.gn-drawer__veil-transition-enter-active{opacity:1;transition:opacity .3s}.gn-drawer__veil-transition-exit{opacity:1}.gn-drawer__veil-transition-exit-active{opacity:0;transition:opacity .3s}.gn-drawer__veil-transition-exit-done{visibility:hidden}.gn-drawer__resizer-handle{background:var(--gn-drawer-item-resizer-handle-color,var(--_--resizer-handle-color));border-radius:2px;height:28px;width:2px}.gn-drawer__resizer{align-items:center;background:var(--gn-drawer-item-resizer-color,var(--_--resizer-color));cursor:col-resize;display:flex;flex-direction:column;height:100%;justify-content:center;position:absolute;top:0;width:var(--gn-drawer-item-resizer-width,var(--_--resizer-width));z-index:var(--gn-drawer-item-resizer-z-index,var(--_--resizer-z-index))}.gn-drawer__resizer_direction_right{left:0}.gn-drawer__resizer_direction_left{right:0}.gn-drawer__resizer:hover .gn-drawer__resizer-handle{background:var(--gn-drawer-item-resizer-handle-color-hover,var(--_--resizer-handle-color-hover))}");const Ei=(0,v.b)("drawer"),Si=i.forwardRef((function(e,t){const{visible:n,content:r,children:o,direction:a="left",className:s,resizable:l,width:c,minResizeWidth:u,maxResizeWidth:d,onResizeStart:f,onResize:p,keepMounted:h=!1}=e,[m,g]=i.useState(!0),v=i.useRef(null),y=(0,Rr.N)(t,v),b="left"===a?void 0:a,{resizedWidth:w,resizerHandlers:x}=_i({direction:a,width:c,minResizeWidth:u,maxResizeWidth:d,onResizeStart:f,onResize:p});i.useEffect((()=>{g(!0)}),[a]);const _=l?i.createElement("div",Object.assign({className:Ei("resizer",{direction:a})},x),i.createElement("div",{className:Ei("resizer-handle")})):null;return i.createElement(oi,{in:n,timeout:300,mountOnEnter:!h,unmountOnExit:!h,classNames:Ei("item-transition",{direction:b}),nodeRef:v,onEnter:()=>g(!1),onExit:()=>g(!1)},i.createElement("div",{ref:y,className:Ei("item",{direction:b,hidden:m&&!n},[s]),style:{width:l?`${w}px`:void 0}},_,null!==o&&void 0!==o?o:r))})),ki=({className:e,veilClassName:t,children:n,style:r,onVeilClick:o,onEscape:a,preventScrollBody:s=!0,hideVeil:l,disablePortal:c=!0,keepMounted:u=!1})=>{let d=!1;i.Children.forEach(n,(e=>{if(i.isValidElement(e)&&e.type===Si){Boolean(e.props.visible)&&(d=!0)}})),i.useEffect((()=>{function e(e){"Escape"===e.key&&(null===a||void 0===a||a())}return d&&window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}}),[a,d]),(0,jr.y)({enabled:s&&d});const f=i.useRef(null),p=i.useRef(null),h=i.createElement(ti,{in:d,timeout:{enter:0,exit:300},mountOnEnter:!u,unmountOnExit:!u,nodeRef:f},(a=>{const s=d&&"entered"===a;return i.createElement("div",{ref:f,className:Ei({hideVeil:l},e),style:r},i.createElement(oi,{in:s,timeout:300,unmountOnExit:!0,classNames:Ei("veil-transition"),nodeRef:p},i.createElement("div",{ref:p,className:Ei("veil",{hidden:l},t),onClick:o})),i.Children.map(n,(e=>{if(i.isValidElement(e)&&e.type===Si){const t=Boolean(e.props.visible);return i.cloneElement(e,Object.assign(Object.assign({keepMounted:u},e.props),{visible:t&&s}))}return e})))}));return c?h:i.createElement(Zn.Z,null,h)};y(".gn-all-pages-list-item{align-items:center;column-gap:var(--g-spacing-4);display:flex;height:40px;padding:0 var(--g-spacing-6);width:100%}.gn-all-pages-list-item__text{flex:1}.gn-all-pages-list-item__icon{color:var(--g-color-text-misc)}");const Ci=(0,v.b)("all-pages-list-item"),Oi=e=>{const{item:t,editMode:n,onToggle:r}=e,o=(0,i.useCallback)((e=>{e.stopPropagation(),e.preventDefault(),r()}),[r]);return i.createElement("div",{className:Ci(),onClick:e=>{n&&(e.stopPropagation(),e.preventDefault())}},t.icon?i.createElement(f.I,{className:Ci("icon"),data:t.icon,size:t.iconSize}):null,i.createElement("span",{className:Ci("text")},t.title),n&&!t.preventUserRemoving&&i.createElement(E.$,{onClick:o,view:t.hidden?"flat-secondary":"flat-action"},i.createElement(E.$.Icon,null,t.hidden?i.createElement(Tr,null):i.createElement(Ar,null))))};var Ni=(0,w.N)({en:{"menu-item.all-pages.title":"All pages","all-panel.menu.category.allOther":"All other","all-panel.resetToDefault":"Reset to default","all-panel.title.editing":"Editing","all-panel.title.main":"All pages"},ru:{"menu-item.all-pages.title":"\u0412\u0441\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b","all-panel.menu.category.allOther":"\u041e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435","all-panel.resetToDefault":"\u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e","all-panel.title.editing":"\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435","all-panel.title.main":"\u0412\u0441\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b"}},`${v.N}AllPagesPanel`);const Ti="all-pages";y(".gn-all-pages-panel{box-sizing:border-box;height:100%;min-width:300px;padding:var(--g-spacing-4) var(--g-spacing-6)}.gn-all-pages-panel__content{flex:1;margin:0 calc(var(--g-spacing-6)*-1);overflow:auto}.gn-all-pages-panel__category{padding:0 var(--g-spacing-6)}.gn-all-pages-panel__discoverable-feature-wrapper{display:flex}");const Ai=(0,v.b)("all-pages-panel"),Ii=e=>{const{startEditIcon:t,onEditModeChanged:n,className:r}=e,{menuItems:o,onMenuItemsChanged:a,editMenuProps:s}=nr(),l=(0,i.useRef)(o);l.current=o;const[c,u]=(0,i.useState)(!1),d=(0,i.useCallback)((()=>{u((e=>!e))}),[]),p=(e=>{const t=(0,i.useMemo)((()=>{const t=e.filter((e=>"divider"!==e.type&&e.id!==Ti));return t.sort(((e,t)=>"action"===e.type?1:"action"===t.type?-1:0)),t.reduce(((e,t)=>{const n=t.category||Ni("all-panel.menu.category.allOther");return e[n]||(e[n]=[]),e[n].push(t),e}),{})}),[e]);return t})(o);(0,i.useEffect)((()=>{var e;null===n||void 0===n||n(c),c&&(null===(e=null===s||void 0===s?void 0:s.onOpenEditMode)||void 0===e||e.call(s))}),[c,n,s]);const h=(0,i.useCallback)((e=>{var t;null===(t=e.onItemClick)||void 0===t||t.call(e,e,!1)}),[]),m=(0,i.useCallback)((e=>{var t;if(!a)return;const n=Object.assign(Object.assign({},e),{hidden:!e.hidden}),r=l.current.filter((e=>e.id!==Ti));null===(t=null===s||void 0===s?void 0:s.onToggleMenuItem)||void 0===t||t.call(s,n),a(r.map((e=>e.id!==n.id?e:n)))}),[a,s]),v=(0,i.useCallback)(((e,t,n)=>i.createElement(Oi,{item:e,editMode:c,onToggle:()=>m(e)})),[c,m]),y=(0,i.useCallback)((()=>{var e;if(!a)return;null===(e=null===s||void 0===s?void 0:s.onResetSettingsToDefault)||void 0===e||e.call(s);const t=l.current.filter((e=>e.id!==Ti));a(t.map((e=>Object.assign(Object.assign({},e),{hidden:!1}))))}),[a,s]);return i.createElement(g.s,{className:Ai(null,r),gap:"5",direction:"column"},i.createElement(g.s,{gap:"4",alignItems:"center",justifyContent:"space-between"},i.createElement(_.E,{variant:"subheader-2"},Ni(c?"all-panel.title.editing":"all-panel.title.main")),i.createElement(E.$,{selected:c,view:"normal",onClick:d},t||i.createElement(f.I,{data:Qn.A}))),i.createElement(g.s,{className:Ai("content"),gap:"5",direction:"column"},Object.keys(p).map((e=>i.createElement(g.s,{key:e,direction:"column",gap:"3"},i.createElement(_.E,{className:Ai("category"),variant:"body-1",color:"secondary"},e),i.createElement(Xn.B,{virtualized:!1,filterable:!1,items:p[e],onItemClick:h,renderItem:v}))))),c&&i.createElement(E.$,{onClick:y},Ni("all-panel.resetToDefault")))};let Di;Di="undefined"!==typeof window?window:"undefined"!==typeof self?self:n.g;let Pi=null,Ri=null;const ji=Di.clearTimeout,Mi=Di.setTimeout,Li=Di.cancelAnimationFrame||Di.mozCancelAnimationFrame||Di.webkitCancelAnimationFrame,zi=Di.requestAnimationFrame||Di.mozRequestAnimationFrame||Di.webkitRequestAnimationFrame;function Fi(e){let t,n,r,i,o,a,s;const l="undefined"!==typeof document&&document.attachEvent;if(!l){a=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,i=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,i.style.width=n.offsetWidth+1+"px",i.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},o=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},s=function(e){if(e.target.className&&"function"===typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;a(this),this.__resizeRAF__&&Pi(this.__resizeRAF__),this.__resizeRAF__=Ri((function(){o(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))};let e=!1,l="";r="animationstart";const c="Webkit Moz O ms".split(" ");let u="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),d="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let n=0;n<c.length;n++)if(void 0!==t.style[c[n]+"AnimationName"]){d=c[n],l="-"+d.toLowerCase()+"-",r=u[n],e=!0;break}}n="resizeanim",t="@"+l+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",i=l+"animation: 1ms "+n+"; "}return{addResizeListener:function(o,c){if(l)o.attachEvent("onresize",c);else{if(!o.__resizeTriggers__){const l=o.ownerDocument,c=Di.getComputedStyle(o);c&&"static"===c.position&&(o.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const r=(t||"")+".resize-triggers { "+(i||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',o=n.head||n.getElementsByTagName("head")[0],a=n.createElement("style");a.id="detectElementResize",a.type="text/css",null!=e&&a.setAttribute("nonce",e),a.styleSheet?a.styleSheet.cssText=r:a.appendChild(n.createTextNode(r)),o.appendChild(a)}}(l),o.__resizeLast__={},o.__resizeListeners__=[],(o.__resizeTriggers__=l.createElement("div")).className="resize-triggers";const u=l.createElement("div");u.className="expand-trigger",u.appendChild(l.createElement("div"));const d=l.createElement("div");d.className="contract-trigger",o.__resizeTriggers__.appendChild(u),o.__resizeTriggers__.appendChild(d),o.appendChild(o.__resizeTriggers__),a(o),o.addEventListener("scroll",s,!0),r&&(o.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&a(o)},o.__resizeTriggers__.addEventListener(r,o.__resizeTriggers__.__animationListener__))}o.__resizeListeners__.push(c)}},removeResizeListener:function(e,t){if(l)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",s,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(n){}}}}}null==Li||null==zi?(Pi=ji,Ri=function(e){return Mi(e,20)}):(Pi=function([e,t]){Li(e),ji(t)},Ri=function(e){const t=zi((function(){ji(n),e()})),n=Mi((function(){Li(t),e()}),20);return[t,n]});class Bi extends i.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){const r=window.getComputedStyle(this._parentNode)||{},i=parseFloat(r.paddingLeft||"0"),o=parseFloat(r.paddingRight||"0"),a=parseFloat(r.paddingTop||"0"),s=parseFloat(r.paddingBottom||"0"),l=this._parentNode.getBoundingClientRect(),c=l.height-a-s,u=l.width-i-o,d=this._parentNode.offsetHeight-a-s,f=this._parentNode.offsetWidth-i-o;(e||this.state.height===d&&this.state.scaledHeight===c)&&(t||this.state.width===f&&this.state.scaledWidth===u)||(this.setState({height:d,width:f,scaledHeight:c,scaledWidth:u}),"function"===typeof n&&n({height:d,scaledHeight:c,scaledWidth:u,width:f}))}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(null!=t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;const n=t.ownerDocument.defaultView.ResizeObserver;null!=n?(this._resizeObserver=new n((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(t)):(this._detectElementResize=Fi(e),this._detectElementResize.addResizeListener(t,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:r=!1,disableWidth:o=!1,doNotBailOutOnEmptyChildren:a=!1,nonce:s,onResize:l,style:c={},tagName:u="div",...d}=this.props,{height:f,scaledHeight:p,scaledWidth:h,width:m}=this.state,g={overflow:"visible"},v={};let y=!1;return r||(0===f&&(y=!0),g.height=0,v.height=f,v.scaledHeight=p),o||(0===m&&(y=!0),g.width=0,v.width=m,v.scaledWidth=h),a&&(y=!1),(0,i.createElement)(u,{ref:this._setRef,style:{...g,...c},...d},!y&&e(v))}}const Ui={active:!1,activeIndex:void 0,hideCollapseItemTooltip:!1,lastClickedItemIndex:void 0,setValue:()=>{}},$i=i.createContext(Ui);class qi extends i.PureComponent{constructor(){super(...arguments),this.state=Object.assign({},Ui),this.setValue=e=>{this.setState(Object.assign({},e))}}render(){const{children:e}=this.props;return i.createElement($i.Provider,{value:Object.assign(Object.assign({},this.state),{setValue:this.setValue})},e)}}y('.g-root_theme_dark .gn-multiple-tooltip,.g-root_theme_dark-hc .gn-multiple-tooltip{--multiple-tooltip-item-bg-color:var(\n --g-color-base-float-medium,var(--g-color-private-white-100-solid)\n );--multiple-tooltip-item-active-bg-color:var(--g-color-base-float-heavy);--multiple-tooltip-backdrop-background:linear-gradient(90deg,var(--g-color-base-background) 50%,transparent);--multiple-tooltip-backdrop-filter:blur(16px)}.g-root_theme_dark-hc .gn-multiple-tooltip{--multiple-tooltip-item-bg-color:var(\n --g-color-base-float-medium,var(--g-color-private-white-150-solid)\n )}.g-root_theme_light .gn-multiple-tooltip,.g-root_theme_light-hc .gn-multiple-tooltip{--multiple-tooltip-item-bg-color:var(\n --g-color-base-float-medium,var(--g-color-private-black-550-solid)\n );--multiple-tooltip-item-active-bg-color:var(--g-color-base-float-heavy);--multiple-tooltip-backdrop-background:linear-gradient(90deg,var(--g-color-base-background) 50%,transparent);--multiple-tooltip-backdrop-filter:blur(12px)}.gn-multiple-tooltip.gn-multiple-tooltip{background-color:transparent;box-shadow:none}.gn-multiple-tooltip:before{background:var(--multiple-tooltip-backdrop-background);box-shadow:none;content:"";filter:var(--multiple-tooltip-backdrop-filter);height:100%;opacity:.7;position:absolute;width:100%;z-index:-1}.gn-multiple-tooltip__items-container{align-items:flex-start;display:flex;flex-direction:column;padding:32px 40px 32px 12px}.gn-multiple-tooltip__item{align-items:center;background-color:var(--multiple-tooltip-item-bg-color);border-radius:5px;box-sizing:border-box;color:var(--g-color-text-light-primary);display:flex;height:30px;margin-bottom:5px;padding:8px 12px;position:relative;transition:transform .1s ease-in-out}.gn-multiple-tooltip__item:first-child,.gn-multiple-tooltip__item:not(.gn-multiple-tooltip__item_divider)+.gn-multiple-tooltip__item:not(.gn-multiple-tooltip__item_divider){margin-top:5px}.gn-multiple-tooltip__item_divider+.gn-multiple-tooltip__item:not(.gn-multiple-tooltip__item_divider){margin-top:4px}.gn-multiple-tooltip__item_active{background-color:var(--multiple-tooltip-item-active-bg-color);transform:translateX(-12px)}.gn-multiple-tooltip__item_divider{height:15px;margin:0;visibility:hidden}');const Hi=(0,v.b)("multiple-tooltip"),Vi=[-32,4],Wi=[{name:"preventOverflow",enabled:!1}],Ki=({items:e,open:t,anchorRef:n,placement:r})=>{const{activeIndex:o,hideCollapseItemTooltip:a}=i.useContext($i),s=void 0===o?null:e[o];return i.createElement(_e.z,{open:t,anchorRef:n,placement:r,offset:Vi,contentClassName:Hi(null),modifiers:Wi,disableLayer:!0},i.createElement("div",{className:Hi("items-container")},e.filter((({type:e="regular",id:t})=>!a||t!==cr&&"action"!==e)).map(((e,t)=>"divider"===e.type?i.createElement("div",{className:Hi("item",{divider:!0}),key:t},e.title):i.createElement("div",{className:Hi("item",{active:e===s}),key:t},e.title)))))};y(".gn-composite-bar{flex:1 0 auto;min-height:40px;width:100%}.gn-composite-bar .gn-composite-bar__root-menu-item[class]{background-color:transparent}");const Gi=(0,v.b)("composite-bar"),Yi=({type:e,items:t,onItemClick:n,onMoreClick:r,collapseItems:o,multipleTooltip:a=!1})=>{const s=(0,i.useRef)(null),l=(0,i.useRef)(null),{setValue:c,active:u,activeIndex:d,lastClickedItemIndex:f}=(0,i.useContext)($i),{compact:p}=or();i.useEffect((()=>{function e(){a&&u&&c({active:!1})}return window.addEventListener("blur",e),()=>{window.removeEventListener("blur",e)}}),[a,u,c]);const h=(0,i.useCallback)((e=>{a&&p&&!u&&document.hasFocus()&&d!==f&&e.clientX<=56&&(null===c||void 0===c||c({active:!0}))}),[a,p,u,d,f,c]),m=(0,i.useCallback)((()=>{a&&u&&document.hasFocus()&&(null===c||void 0===c||c({active:!1,lastClickedItemIndex:void 0}))}),[a,u,c]),g=(0,i.useCallback)((e=>()=>{if(a&&document.hasFocus()){let t=u;if(u||e===f||(t=!0),d===e&&u===t)return;c({activeIndex:e,active:t})}}),[a,u,f,d,c]),v=(0,i.useCallback)((()=>{var e;p&&document.hasFocus()&&(null===(e=s.current)||void 0===e||e.activateItem(void 0),!a||void 0===d&&void 0===f||c({activeIndex:void 0,lastClickedItemIndex:void 0}))}),[d,p,f,a,c]),y=(0,i.useCallback)((e=>(t,r,i)=>{p&&a&&e!==f&&t.id!==cr&&c({lastClickedItemIndex:e,active:!1}),null===n||void 0===n||n(t,r,i)}),[p,f,a,n,c]);return i.createElement(i.Fragment,null,i.createElement("div",{ref:l,onMouseEnter:h,onMouseLeave:m},i.createElement(Xn.B,{ref:s,items:t,selectedItemIndex:"menu"===e?pr(t):void 0,itemHeight:dr,itemsHeight:fr,itemClassName:Gi("root-menu-item"),virtualized:!1,filterable:!1,sortable:!1,renderItem:(e,t,n)=>{const s=hr(e)?{item:e}:e,l=hr(e)?!a:e.enableTooltip;return i.createElement(br,Object.assign({},s,{enableTooltip:l,onMouseEnter:g(n),onMouseLeave:v,onItemClick:y(n),onCollapseItemClick:r,collapseItems:o}))}})),"menu"===e&&a&&i.createElement(Ki,{open:p&&u,anchorRef:l,placement:["right-start"],items:t}))},Qi=({type:e,items:t,menuMoreTitle:n,onItemClick:r,onMoreClick:o,multipleTooltip:a=!1})=>{if(0===t.length)return null;let s;if("menu"===e){const e=function(e){const t=function(e){const t=[];for(const n of e)(n.pinned||"divider"===n.type&&t.length>0&&"divider"!==t[t.length-1].type)&&t.push(n);return t}(e),n=e.filter((e=>e.afterMoreButton));return fr(t)+fr(n)+(t.length===e.length?0:40)}(t),l=function(e){return{id:cr,title:e,icon:ar.A,iconSize:18}}(n);s=i.createElement("div",{className:Gi({autosizer:!0}),style:{minHeight:e}},0!==t.length&&i.createElement(Bi,null,(e=>{const n=Number.isNaN(e.width)?0:e.width,s=Number.isNaN(e.height)?0:e.height,{listItems:c,collapseItems:u}=function(e,t,n){var r,i,o;const a=e.filter((e=>e.afterMoreButton)),s=e.filter((e=>!e.afterMoreButton)),l=[...s,...a],c=fr(l);if(c<=t)return{listItems:l,collapseItems:[]};const u=dr(n);l.splice(s.length,0,n);const d=[];let f=c+u,p=l.length;for(;f>t&&0!==p;){p--;const e=l[p];e.pinned||e.id===cr||e.afterMoreButton||("divider"!==e.type?(f-=dr(e),d.unshift(...l.splice(p,1))):p+1<l.length&&"divider"===(null===(r=l[p+1])||void 0===r?void 0:r.type)&&(f-=dr(e),l.splice(p,1)))}return"divider"!==(null===(i=l[p])||void 0===i?void 0:i.type)||0!==p&&"divider"!==(null===(o=l[p-1])||void 0===o?void 0:o.type)||l.splice(p,1),{listItems:l,collapseItems:d}}(t,s,l);return i.createElement("div",{style:{width:n,height:s}},i.createElement(Yi,{type:"menu",items:c,onItemClick:r,onMoreClick:o,collapseItems:u,multipleTooltip:a}))})))}else s=i.createElement("div",{className:Gi({subheader:!0})},i.createElement(Yi,{type:"subheader",items:t,onItemClick:r}));return i.createElement(qi,null,s)};var Zi={button_collapse:"Collapse",button_expand:"Expand",label_more:"More"},Ji={button_collapse:"\u0421\u0432\u0435\u0440\u043d\u0443\u0442\u044c",button_expand:"\u0420\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c",label_more:"\u0415\u0449\u0451"};var Xi,eo=(0,w.N)({en:Zi,ru:Ji},`${v.N}AsideHeader`);function to(){return to=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},to.apply(null,arguments)}var no=function(e){return i.createElement("svg",to({width:8,height:8,viewBox:"0 0 8 8",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),Xi||(Xi=i.createElement("path",{d:"m.72 7.64 6.39-3.2a.5.5 0 0 0 0-.89L.72.36A.5.5 0 0 0 0 .81v6.38c0 .37.4.61.72.45Z"})))};y('.gn-collapse-button{--_--focus-outline-color:var(--g-color-line-focus);--_--focus-outline-offset:0;align-items:center;background:none;border:none;border-top:1px solid var(--gn-aside-header-divider-horizontal-color,var(--_--horizontal-divider-line-color));box-sizing:content-box;color:inherit;cursor:pointer;display:flex;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);justify-content:center;min-height:20px;outline:none;padding:0;position:relative;width:100%}.gn-collapse-button:before{content:"";inset:0 2px 2px;position:absolute;z-index:-1}.gn-collapse-button:focus-visible:before{outline:var(--_--focus-outline-color) solid 2px;outline-offset:var(--_--focus-outline-offset)}.gn-collapse-button:not(.gn-collapse-button_compact) .gn-collapse-button__icon{transform:rotate(180deg)}.gn-collapse-button:hover .gn-collapse-button__icon{color:var(--g-color-text-primary)}.gn-collapse-button__icon{color:var(--g-color-text-secondary)}');const ro=(0,v.b)("collapse-button"),io=({className:e})=>{const{onChangeCompact:t,compact:n,expandTitle:r,collapseTitle:o}=nr(),a=(0,i.useCallback)((()=>{null===t||void 0===t||t(!n)}),[n,t]),s=n?r||eo("button_expand"):o||eo("button_collapse");return i.createElement("button",{className:ro({compact:n},e),onClick:a,title:s},i.createElement(f.I,{data:no,className:ro("icon"),width:"16",height:"10"}))};y(".gn-logo{height:40px}.gn-logo,.gn-logo__logo-btn-place{align-items:center;display:flex;flex-shrink:0}.gn-logo__logo-btn-place{cursor:pointer;justify-content:center}.gn-logo__logo-btn-place .g-button:before{background-color:transparent}.gn-logo__logo{cursor:pointer;font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-2-line-height);vertical-align:middle}.gn-logo__logo-link,.gn-logo__logo-link:active,.gn-logo__logo-link:focus,.gn-logo__logo-link:hover,.gn-logo__logo-link:visited{color:inherit;outline:none;text-decoration:none}.g-root .gn-logo__btn-logo.button2_theme_flat.button2_hovered_yes:before{background-color:transparent}");const oo=(0,v.b)("logo"),ao=({text:e,icon:t,iconSrc:n,iconClassName:r,iconSize:o=24,textSize:a=15,href:s,target:l="_self",wrapper:c,onClick:u,compact:d,className:p,buttonWrapperClassName:h,buttonClassName:m,"aria-label":g,"aria-labelledby":v})=>{const y="function"===typeof c;let b;n?b=i.createElement(E.$.Icon,{className:r},i.createElement("img",{alt:"logo icon",src:n,width:o,height:o})):t&&(b=i.createElement(f.I,{data:t,size:o,className:r}));const w=i.createElement(E.$,{view:"flat",size:"l",className:oo("btn-logo",m),component:y?"span":void 0,onClick:u,target:l,rel:"_self"===l?void 0:"noreferrer",href:s,extraProps:{"aria-label":g,"aria-labelledby":v}},b);let x;return x="function"===typeof e?e():i.createElement("div",{className:oo("logo"),style:{fontSize:a}},e),i.createElement("div",{className:oo(null,p)},i.createElement("div",{className:oo("logo-btn-place",h)},y?c(w,Boolean(d)):w),!d&&(y?i.createElement("div",{onClick:u},c(x,Boolean(d))):i.createElement("a",{href:null!==s&&void 0!==s?s:"/",target:l,rel:"_self"===l?void 0:"noreferrer",className:oo("logo-link"),onClick:u},x)))},so=[],lo=()=>{const{logo:e,onItemClick:t,onClosePanel:n,headerDecoration:r,subheaderItems:o}=nr(),{compact:a}=or(),s=(0,i.useCallback)((t=>{var r;null===n||void 0===n||n(),null===(r=null===e||void 0===e?void 0:e.onClick)||void 0===r||r.call(e,t)}),[n,e]);return i.createElement("div",{className:(0,kr.b)("header",{"with-decoration":r})},e&&i.createElement(ao,Object.assign({},e,{onClick:s,compact:a,buttonWrapperClassName:(0,kr.b)("logo-button-wrapper"),buttonClassName:(0,kr.b)("logo-button")})),i.createElement(Qi,{type:"subheader",items:o||so,onItemClick:t}),r&&i.createElement(f.I,{data:Pr,className:(0,kr.b)("header-divider"),width:56,height:29}))},co=()=>{const{panelItems:e,onClosePanel:t,size:n}=nr();return e?i.createElement(ki,{className:(0,kr.b)("panels"),onVeilClick:t,onEscape:t,style:{left:n}},e.map((e=>i.createElement(Si,Object.assign({key:e.id},e))))):null},uo=i.forwardRef(((e,t)=>{const{size:n,onItemClick:r,headerDecoration:o,multipleTooltip:a,menuMoreTitle:s,onMenuMoreClick:l,renderFooter:c,compact:u,customBackground:d,customBackgroundClassName:f,className:p,hideCollapseButton:h,qa:m}=nr(),g=(()=>{const{menuItems:e,allPagesIsAvailable:t}=nr();return(0,i.useMemo)((()=>{if(!t)return e;let n=0;return e.filter(((e,t,r)=>!e.hidden&&(!(t>0&&"divider"===e.type)||"divider"!==r[n].type&&!r[n].hidden)&&(n=t,!0)))}),[t,e])})(),v=(0,i.useRef)(null);return i.useEffect((()=>{(0,Nr.c)(t,v.current)}),[t]),i.createElement(i.Fragment,null,i.createElement("div",{className:(0,kr.b)("aside",p),style:{width:n},"data-qa":m},i.createElement("div",{className:(0,kr.b)("aside-popup-anchor"),ref:v}),i.createElement("div",{className:(0,kr.b)("aside-content",{"with-decoration":o})},d&&i.createElement("div",{className:(0,kr.b)("aside-custom-background",f)},d),i.createElement(lo,null),(null===g||void 0===g?void 0:g.length)?i.createElement(Qi,{type:"menu",items:g,menuMoreTitle:null!==s&&void 0!==s?s:eo("label_more"),onItemClick:r,onMoreClick:l,multipleTooltip:a}):i.createElement("div",{className:(0,kr.b)("menu-items")}),i.createElement("div",{className:(0,kr.b)("footer")},null===c||void 0===c?void 0:c({size:n,compact:Boolean(u),asideRef:v})),!h&&i.createElement(io,null))),i.createElement(co,null))}));var fo;uo.displayName="FirstPanel",function(e){e.AllPages="all-pages"}(fo||(fo={}));const po=[],ho=e=>{const{size:t,onClosePanel:n,menuItems:r,panelItems:o,onMenuItemsChanged:a,onAllPagesClick:s}=e,[l,c]=(0,i.useState)(),u=i.useMemo((()=>({id:Ti,title:Ni("menu-item.all-pages.title"),tooltipText:Ni("menu-item.all-pages.title"),icon:ar.A})),[]),d=Boolean(a)&&(!r||(null===r||void 0===r?void 0:r.length)>0);(0,i.useEffect)((()=>{(null===o||void 0===o?void 0:o.some((e=>e.visible)))&&c(void 0)}),[o]);const f=(0,i.useCallback)((()=>{c(void 0),null===n||void 0===n||n()}),[n]),p=(0,i.useCallback)(((e,t,r)=>{var i;e.id===u.id?(null===n||void 0===n||n(),c((e=>e===fo.AllPages?void 0:fo.AllPages))):f(),null===(i=e.onItemClick)||void 0===i||i.call(e,e,t,r)}),[f,u,n]),h=(0,i.useMemo)((()=>d?[...r||po,Object.assign(Object.assign({},u),{current:l===fo.AllPages,onItemClick:s})]:r||po),[d,r,l,u,s]),m=(0,i.useMemo)((()=>d?[...o||[],{id:fo.AllPages,content:i.createElement(Ii,null),visible:l===fo.AllPages}]:o),[d,o,l]);return Object.assign(Object.assign({},e),{onClosePanel:f,allPagesIsAvailable:d,menuItems:h,panelItems:m,size:t,onItemClick:p})},mo=i.forwardRef(((e,t)=>{const{size:n,compact:r}=or(),o=ho(Object.assign({size:n,compact:r},e));return i.createElement(tr,{value:o},i.createElement(uo,{ref:t}))}));mo.displayName="PageLayoutAside";const go=i.forwardRef(((e,t)=>{var{compact:n,className:r,topAlert:o}=e,a=d(e,["compact","className","topAlert"]);return i.createElement(Or,{compact:n,className:r,topAlert:o},i.createElement(mo,Object.assign({ref:t},a)),i.createElement(Or.Content,{renderContent:a.renderContent}))}));go.displayName="AsideHeader";var vo,yo=n(59001);function bo(){return bo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bo.apply(null,arguments)}const wo=function(e){return i.createElement("svg",bo({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"},e),vo||(vo=i.createElement("path",{d:"M560 448h-48V113.5c0-27.25-21.5-49.5-48-49.5l-112 .01V128h96v384h112c8.875 0 16-7.125 16-15.1v-31.1c0-10.7-7.1-17.8-16-17.8zM280.3 1.007l-192 49.75C73.1 54.51 64 67.76 64 82.88V448H16c-8.875 0-16 7.125-16 15.1v31.1C0 504.9 7.125 512 16 512h304V33.13c0-21.5-19.5-37.373-39.7-32.123zM232 288c-13.25 0-24-14.37-24-31.1 0-17.62 10.75-31.1 24-31.1s24 12.6 24 30.2-10.7 32-24 32z"})))},xo=(0,pe.cn)("kv-navigation");function _o({isCompact:e,popupAnchor:t,user:n,children:r}){var o;const[a,s]=i.useState(!1),l=n?null!==(o=n.icon)&&void 0!==o?o:Gn:wo;return(0,oe.jsx)(_r,{compact:e,item:{id:"user-popup",title:null!==n&&void 0!==n&&n.login?n.login:ve("navigation-item.account"),current:a,icon:l,onItemClick:()=>s((e=>!e))},enableTooltip:!a,popupAnchor:t,popupVisible:a,onClosePopup:()=>s(!1),renderPopupContent:()=>(0,oe.jsx)("div",{className:xo("ydb-user-wrapper"),children:r})})}var Eo=function(e){return e.UserSettings="UserSettings",e}(Eo||{});function So(e){const t=(0,ue.W6)(),[n,r]=i.useState(),[o,a]=(0,u.iK)(Le.LQ);return(0,oe.jsx)(i.Fragment,{children:(0,oe.jsx)(go,{logo:{text:"YDB",icon:Et,onClick:()=>t.push("/")},menuItems:e.menuItems,compact:o,onChangeCompact:a,className:xo(),renderContent:()=>e.content,renderFooter:({compact:t,asideRef:o})=>(0,oe.jsxs)(i.Fragment,{children:[(0,oe.jsx)(_r,{compact:t,item:{id:"documentation",title:ve("navigation-item.documentation"),icon:Yn.A,onItemClick:()=>{window.open("ru"===yo.f.readUserSettingsValue(Le.jS,navigator.language)?"https://ydb.tech/docs/ru/":"https://ydb.tech/docs/en/","_blank","noreferrer")}}}),(0,oe.jsx)(_r,{item:{id:"user-settings",title:ve("navigation-item.settings"),icon:Qn.A,current:n===Eo.UserSettings,onItemClick:()=>{r(n===Eo.UserSettings?void 0:Eo.UserSettings)}},compact:t}),(0,oe.jsx)(_o,{isCompact:t,popupAnchor:o,user:e.user,children:e.ydbInternalUser})]}),panelItems:[{id:"user-settings",visible:n===Eo.UserSettings,content:e.settings}],onClosePanel:()=>{r(void 0)}})})}const ko=(new class{constructor(){this.type=void 0,this.entities={}}set(e,t){return this.entities[e]=t,this}get(e){return this.entities[e]}register(e,t){return this.entities[e]=t,this}}).register("StaffCard",(function({children:e}){return(0,oe.jsx)(i.Fragment,{children:e})})).register("AsideNavigation",So).register("ErrorBoundary",s.lQ);function Co({store:e,history:t,componentsRegistry:n=ko,children:r}){return(0,oe.jsx)(o.vd,{children:(0,oe.jsx)(a.Kq,{store:e,children:(0,oe.jsx)(ue.Ix,{history:t,children:(0,oe.jsx)(Wn.QueryParamProvider,{adapter:Kn,children:(0,oe.jsx)(Oo,{children:(0,oe.jsx)(l.I,{registry:n,children:(0,oe.jsx)(Hn.Kq,{children:r})})})})})})})}function Oo({children:e}){const[t]=(0,u.iK)(Le.k4);return(0,oe.jsx)(Vn.N,{theme:t,children:e})}const No=(0,a.Ng)((function(e){return{singleClusterMode:e.singleClusterMode}}))((function({store:e,history:t,singleClusterMode:n,children:r,userSettings:i=st({singleClusterMode:n})}){return(0,oe.jsxs)(Co,{store:e,history:t,children:[(0,oe.jsx)(o.mg,{defaultTitle:"YDB Monitoring",titleTemplate:"%s \u2014 YDB Monitoring"}),(0,oe.jsx)(qn,{children:(0,oe.jsx)(we,{userSettings:i,children:(0,oe.jsxs)(s.tH,{children:[(0,oe.jsx)(zn,{singleClusterMode:n,children:r}),(0,oe.jsx)("div",{id:"fullscreen-root"})]})})}),(0,oe.jsx)(Ie,{})]})}));function To({monitoring:e,dbName:t,dbType:n,clusterName:r}){try{const a=Io(e);if(a){var i,o;const e=null!==(i=a.host)&&void 0!==i?i:"cluster",s=null!==(o=a.slot)&&void 0!==o?o:"static",l=a.cluster_name||r||"",c=new URL(a.monitoring_url);if(!c.search){const e="Serverless"===n?a.serverless_dashboard:a.dedicated_dashboard;c.pathname+=`/${e}`}return c.searchParams.has("p.cluster")||c.searchParams.set("p.cluster",l),c.searchParams.set("p.host",e),c.searchParams.set("p.slot",s),c.searchParams.set("p.database",t),c.toString()}}catch{}return""}function Ao(e,t){try{const n=Io(e);if(n){const e=n.cluster_dashboard,r=n.cluster_name||t||"",i=new URL(n.monitoring_url);return!i.search&&e&&(i.pathname+=`/${e}/view`),i.searchParams.has("p.cluster")||i.searchParams.set("p.cluster",r),i.searchParams.set("p.database","-"),i.toString()}}catch{}return""}function Io(e){try{const t=JSON.parse(e);if("object"===typeof t&&"monitoring_url"in t)return t}catch{}}var Do=n(96873),Po=n(40537),Ro=n(88655),jo=n(69446),Mo=n(77630),Lo=n(39567);const zo=(0,pe.cn)("extended-cluster"),Fo=e=>{const t=(0,jo.Zd)(e);return{label:"Balancer",value:(0,oe.jsxs)("div",{className:zo("balancer"),children:[t,(0,oe.jsx)(Do.b,{text:t,size:"s",className:zo("clipboard-button")})]})}},Bo=(e,t,n,r)=>{const i={};if(t&&r){const n=r(t,e);n&&(i.links=[{title:"Monitoring",url:n}])}return n&&(i.info=[Fo(n)]),i},Uo=(e=[])=>({getVersionToColorMap:()=>(0,Po.Vm)((0,Po.HD)(e))}),$o=(e,t,n,r,i)=>{const o={prepareTenantBackend:e=>{var t;if(n){if(r)return(0,jo.PG)(n);if(e)return"string"===typeof e?(0,Mo.De)(e,n):null!==(t=(0,Mo.Vk)(e,n,!0))&&void 0!==t?t:void 0}}};return t&&i&&(o.getMonitoringLink=(n,r)=>n&&r?i({monitoring:t,dbName:n,dbType:r,clusterName:e}):null),o};function qo({component:e,getMonitoringLink:t,getMonitoringClusterLink:n}){const r=function(){const[e]=(0,Wn.useQueryParam)("clusterName",Wn.StringParam),{data:t}=Lo.ub.useGetClustersListQuery(void 0);return i.useMemo((()=>{const n=(t||[]).find((t=>t.name===e));return null===n||void 0===n?void 0:n.versions}),[t,e])}(),o=(0,Ro.E)(),{name:a,balancer:s,monitoring:l}=(0,Jt.Zd)(),[c]=(0,u.iK)(Le.s2);return(0,oe.jsx)("div",{className:zo(),children:(0,oe.jsx)(e,{additionalClusterProps:Bo(a,l,s,n),additionalVersionsProps:Uo(r),additionalTenantsProps:$o(a,l,s,c,t),additionalNodesProps:o})})}function Ho({component:e,getMonitoringLink:t}){const{monitoring:n}=(0,Jt.Zd)(),r=(0,Ro.E)(),i={getMonitoringLink:(e,r)=>n&&e&&r&&t?t({monitoring:n,dbName:e,dbType:r}):null};return(0,oe.jsx)(e,{additionalTenantProps:i,additionalNodesProps:r})}function Vo({store:e,history:t,getMonitoringLink:n=To,getMonitoringClusterLink:r=Ao,userSettings:i,children:o}){return(0,oe.jsxs)(No,{store:e,history:t,userSettings:i,children:[(0,oe.jsx)(_n,{children:({component:e})=>(0,oe.jsx)(qo,{component:e,getMonitoringLink:n,getMonitoringClusterLink:r})}),(0,oe.jsx)(En,{children:({component:e})=>(0,oe.jsx)(Ho,{component:e,getMonitoringLink:n})}),o]})}var Wo=n(58351),Ko=n(28197),Go=n(88610),Yo=n(59625),Qo=n(42566)},42566:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=e=>{e&&e instanceof Function&&n.e(2308).then(n.bind(n,62308)).then((({getCLS:t,getFID:n,getFCP:r,getLCP:i,getTTFB:o})=>{t(e),n(e),r(e),i(e),o(e)}))}},92459:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>d,Ck:()=>v,DM:()=>x,KY:()=>h,Ow:()=>m,_g:()=>b,a3:()=>g,mA:()=>f,qc:()=>w,yX:()=>y});var r=n(905),i=n.n(r),o=n(95166),a=n(74309),s=n.n(a),l=n(67087),c=n(58351);const u={clusters:"/clusters",cluster:"/cluster/:activeTab?",tenant:"/tenant",node:"/node/:id/:activeTab?",pDisk:"/pDisk",vDisk:"/vDisk",storageGroup:"/storageGroup",tablet:"/tablet/:id",auth:"/auth"},d=u,f=e=>s().parse(e.search,{ignoreQueryPrefix:!0}),p=e=>{let t=e;const n=/:\d{3,5}/g,r=e.match(n);if(r){const i=r[0];t=e.replace(n,":\\"+i.slice(1))}return t};function h(e,t,n={}){let r=n;const a="backend"in n&&Boolean(n.backend);c.Hs&&!a&&c.jC&&(r={...n,backend:c.Hs});const l="clusterName"in n&&Boolean(n.clusterName);c.SL&&!l&&c.jC&&(r={...r,clusterName:c.SL});const u=i()(r)?"":`?${s().stringify(r,{encode:!1,arrayFormat:"repeat"})}`,d=p(e);return`${(0,o.compile)(d)(t)}${u}`}const m=(e={})=>h(window.location.pathname,void 0,e);function g(e){const{pathname:t,search:n,hash:r}=new URL(e,"http://localhost");return{pathname:t,search:n,hash:r}}function v(e,t,n={}){return h(u.pDisk,void 0,{...n,nodeId:t,pDiskId:e})}function y(e,t,n,r={}){return h(u.vDisk,void 0,{...r,nodeId:n,pDiskId:t,vDiskSlotId:e})}function b(e,t={}){return h(u.storageGroup,void 0,{...t,groupId:e})}const w={database:l.StringParam,clusterName:l.StringParam,activeTab:l.StringParam};function x(e,t={}){return h(u.tablet,{id:e},{...t})}},28197:(e,t,n)=>{"use strict";n.d(t,{i:()=>gr,x:()=>vr});var r={};n.r(r),n.d(r,{hasBrowserEnv:()=>de,hasStandardBrowserEnv:()=>pe,hasStandardBrowserWebWorkerEnv:()=>he,navigator:()=>fe,origin:()=>me});var i=n(58671),o=n.n(i);function a(e,t){return function(){return e.apply(t,arguments)}}const{toString:s}=Object.prototype,{getPrototypeOf:l}=Object,c=(u=Object.create(null),e=>{const t=s.call(e);return u[t]||(u[t]=t.slice(8,-1).toLowerCase())});var u;const d=e=>(e=e.toLowerCase(),t=>c(t)===e),f=e=>t=>typeof t===e,{isArray:p}=Array,h=f("undefined");const m=d("ArrayBuffer");const g=f("string"),v=f("function"),y=f("number"),b=e=>null!==e&&"object"===typeof e,w=e=>{if("object"!==c(e))return!1;const t=l(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},x=d("Date"),_=d("File"),E=d("Blob"),S=d("FileList"),k=d("URLSearchParams"),[C,O,N,T]=["ReadableStream","Request","Response","Headers"].map(d);function A(e,t,{allOwnKeys:n=!1}={}){if(null===e||"undefined"===typeof e)return;let r,i;if("object"!==typeof e&&(e=[e]),p(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let a;for(r=0;r<o;r++)a=i[r],t.call(null,e[a],a,e)}}function I(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,i=n.length;for(;i-- >0;)if(r=n[i],t===r.toLowerCase())return r;return null}const D="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global,P=e=>!h(e)&&e!==D;const R=(j="undefined"!==typeof Uint8Array&&l(Uint8Array),e=>j&&e instanceof j);var j;const M=d("HTMLFormElement"),L=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),z=d("RegExp"),F=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};A(n,((n,i)=>{let o;!1!==(o=t(n,i,e))&&(r[i]=o||n)})),Object.defineProperties(e,r)},B="abcdefghijklmnopqrstuvwxyz",U="0123456789",$={DIGIT:U,ALPHA:B,ALPHA_DIGIT:B+B.toUpperCase()+U};const q=d("AsyncFunction"),H=((e,t)=>{return e?setImmediate:t?(n=`axios@${Math.random()}`,r=[],D.addEventListener("message",(({source:e,data:t})=>{e===D&&t===n&&r.length&&r.shift()()}),!1),e=>{r.push(e),D.postMessage(n,"*")}):e=>setTimeout(e);var n,r})("function"===typeof setImmediate,v(D.postMessage)),V="undefined"!==typeof queueMicrotask?queueMicrotask.bind(D):"undefined"!==typeof process&&process.nextTick||H,W={isArray:p,isArrayBuffer:m,isBuffer:function(e){return null!==e&&!h(e)&&null!==e.constructor&&!h(e.constructor)&&v(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||v(e.append)&&("formdata"===(t=c(e))||"object"===t&&v(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&m(e.buffer),t},isString:g,isNumber:y,isBoolean:e=>!0===e||!1===e,isObject:b,isPlainObject:w,isReadableStream:C,isRequest:O,isResponse:N,isHeaders:T,isUndefined:h,isDate:x,isFile:_,isBlob:E,isRegExp:z,isFunction:v,isStream:e=>b(e)&&v(e.pipe),isURLSearchParams:k,isTypedArray:R,isFileList:S,forEach:A,merge:function e(){const{caseless:t}=P(this)&&this||{},n={},r=(r,i)=>{const o=t&&I(n,i)||i;w(n[o])&&w(r)?n[o]=e(n[o],r):w(r)?n[o]=e({},r):p(r)?n[o]=r.slice():n[o]=r};for(let i=0,o=arguments.length;i<o;i++)arguments[i]&&A(arguments[i],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(A(t,((t,r)=>{n&&v(t)?e[r]=a(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&l(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:c,kindOfTest:d,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(p(e))return e;let t=e.length;if(!y(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:M,hasOwnProperty:L,hasOwnProp:L,reduceDescriptors:F,freezeMethods:e=>{F(e,((t,n)=>{if(v(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];v(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return p(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:I,global:D,isContextDefined:P,ALPHABET:$,generateString:(e=16,t=$.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&v(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(b(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const i=p(e)?[]:{};return A(e,((e,t)=>{const o=n(e,r+1);!h(o)&&(i[t]=o)})),t[r]=void 0,i}}return e};return n(e,0)},isAsyncFn:q,isThenable:e=>e&&(b(e)||v(e))&&v(e.then)&&v(e.catch),setImmediate:H,asap:V};function K(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}W.inherits(K,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:W.toJSONObject(this.config),code:this.code,status:this.status}}});const G=K.prototype,Y={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{Y[e]={value:e}})),Object.defineProperties(K,Y),Object.defineProperty(G,"isAxiosError",{value:!0}),K.from=(e,t,n,r,i,o)=>{const a=Object.create(G);return W.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),K.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const Q=K;function Z(e){return W.isPlainObject(e)||W.isArray(e)}function J(e){return W.endsWith(e,"[]")?e.slice(0,-2):e}function X(e,t,n){return e?e.concat(t).map((function(e,t){return e=J(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const ee=W.toFlatObject(W,{},null,(function(e){return/^is[A-Z]/.test(e)}));const te=function(e,t,n){if(!W.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=W.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!W.isUndefined(t[e])}))).metaTokens,i=n.visitor||c,o=n.dots,a=n.indexes,s=(n.Blob||"undefined"!==typeof Blob&&Blob)&&W.isSpecCompliantForm(t);if(!W.isFunction(i))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(W.isDate(e))return e.toISOString();if(!s&&W.isBlob(e))throw new Q("Blob is not supported. Use a Buffer instead.");return W.isArrayBuffer(e)||W.isTypedArray(e)?s&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,i){let s=e;if(e&&!i&&"object"===typeof e)if(W.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(W.isArray(e)&&function(e){return W.isArray(e)&&!e.some(Z)}(e)||(W.isFileList(e)||W.endsWith(n,"[]"))&&(s=W.toArray(e)))return n=J(n),s.forEach((function(e,r){!W.isUndefined(e)&&null!==e&&t.append(!0===a?X([n],r,o):null===a?n:n+"[]",l(e))})),!1;return!!Z(e)||(t.append(X(i,n,o),l(e)),!1)}const u=[],d=Object.assign(ee,{defaultVisitor:c,convertValue:l,isVisitable:Z});if(!W.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!W.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),W.forEach(n,(function(n,o){!0===(!(W.isUndefined(n)||null===n)&&i.call(t,n,W.isString(o)?o.trim():o,r,d))&&e(n,r?r.concat(o):[o])})),u.pop()}}(e),t};function ne(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function re(e,t){this._pairs=[],e&&te(e,this,t)}const ie=re.prototype;ie.append=function(e,t){this._pairs.push([e,t])},ie.toString=function(e){const t=e?function(t){return e.call(this,t,ne)}:ne;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const oe=re;function ae(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function se(e,t,n){if(!t)return e;const r=n&&n.encode||ae;W.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(o=i?i(t,n):W.isURLSearchParams(t)?t.toString():new oe(t,n).toString(r),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}const le=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){W.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},ce={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ue={isBrowser:!0,classes:{URLSearchParams:"undefined"!==typeof URLSearchParams?URLSearchParams:oe,FormData:"undefined"!==typeof FormData?FormData:null,Blob:"undefined"!==typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},de="undefined"!==typeof window&&"undefined"!==typeof document,fe="object"===typeof navigator&&navigator||void 0,pe=de&&(!fe||["ReactNative","NativeScript","NS"].indexOf(fe.product)<0),he="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts,me=de&&window.location.href||"http://localhost",ge={...r,...ue};const ve=function(e){function t(e,n,r,i){let o=e[i++];if("__proto__"===o)return!0;const a=Number.isFinite(+o),s=i>=e.length;if(o=!o&&W.isArray(r)?r.length:o,s)return W.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!a;r[o]&&W.isObject(r[o])||(r[o]=[]);return t(e,n,r[o],i)&&W.isArray(r[o])&&(r[o]=function(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}(r[o])),!a}if(W.isFormData(e)&&W.isFunction(e.entries)){const n={};return W.forEachEntry(e,((e,r)=>{t(function(e){return W.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null};const ye={transitional:ce,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=W.isObject(e);i&&W.isHTMLForm(e)&&(e=new FormData(e));if(W.isFormData(e))return r?JSON.stringify(ve(e)):e;if(W.isArrayBuffer(e)||W.isBuffer(e)||W.isStream(e)||W.isFile(e)||W.isBlob(e)||W.isReadableStream(e))return e;if(W.isArrayBufferView(e))return e.buffer;if(W.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return te(e,new ge.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return ge.isNode&&W.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=W.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return te(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||r?(t.setContentType("application/json",!1),function(e,t,n){if(W.isString(e))try{return(t||JSON.parse)(e),W.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ye.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(W.isResponse(e)||W.isReadableStream(e))return e;if(e&&W.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(i){if(n){if("SyntaxError"===i.name)throw Q.from(i,Q.ERR_BAD_RESPONSE,this,null,this.response);throw i}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ge.classes.FormData,Blob:ge.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};W.forEach(["delete","get","head","post","put","patch"],(e=>{ye.headers[e]={}}));const be=ye,we=W.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),xe=Symbol("internals");function _e(e){return e&&String(e).trim().toLowerCase()}function Ee(e){return!1===e||null==e?e:W.isArray(e)?e.map(Ee):String(e)}function Se(e,t,n,r,i){return W.isFunction(r)?r.call(this,t,n):(i&&(t=n),W.isString(t)?W.isString(r)?-1!==t.indexOf(r):W.isRegExp(r)?r.test(t):void 0:void 0)}class ke{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function i(e,t,n){const i=_e(t);if(!i)throw new Error("header name must be a non-empty string");const o=W.findKey(r,i);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||t]=Ee(e))}const o=(e,t)=>W.forEach(e,((e,n)=>i(e,n,t)));if(W.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(W.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))o((e=>{const t={};let n,r,i;return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!n||t[n]&&we[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(W.isHeaders(e))for(const[a,s]of e.entries())i(s,a,n);else null!=e&&i(t,e,n);return this}get(e,t){if(e=_e(e)){const n=W.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(W.isFunction(t))return t.call(this,e,n);if(W.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=_e(e)){const n=W.findKey(this,e);return!(!n||void 0===this[n]||t&&!Se(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function i(e){if(e=_e(e)){const i=W.findKey(n,e);!i||t&&!Se(0,n[i],i,t)||(delete n[i],r=!0)}}return W.isArray(e)?e.forEach(i):i(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const i=t[n];e&&!Se(0,this[i],i,e,!0)||(delete this[i],r=!0)}return r}normalize(e){const t=this,n={};return W.forEach(this,((r,i)=>{const o=W.findKey(n,i);if(o)return t[o]=Ee(r),void delete t[i];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(i):String(i).trim();a!==i&&delete t[i],t[a]=Ee(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return W.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&W.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[xe]=this[xe]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=_e(e);t[r]||(!function(e,t){const n=W.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})}))}(n,e),t[r]=!0)}return W.isArray(e)?e.forEach(r):r(e),this}}ke.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),W.reduceDescriptors(ke.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),W.freezeMethods(ke);const Ce=ke;function Oe(e,t){const n=this||be,r=t||n,i=Ce.from(r.headers);let o=r.data;return W.forEach(e,(function(e){o=e.call(n,o,i.normalize(),t?t.status:void 0)})),i.normalize(),o}function Ne(e){return!(!e||!e.__CANCEL__)}function Te(e,t,n){Q.call(this,null==e?"canceled":e,Q.ERR_CANCELED,t,n),this.name="CanceledError"}W.inherits(Te,Q,{__CANCEL__:!0});const Ae=Te;function Ie(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Q("Request failed with status code "+n.status,[Q.ERR_BAD_REQUEST,Q.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const De=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i,o=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];i||(i=l),n[o]=s,r[o]=l;let u=a,d=0;for(;u!==o;)d+=n[u++],u%=e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),l-i<t)return;const f=c&&l-c;return f?Math.round(1e3*d/f):void 0}};const Pe=function(e,t){let n,r,i=0,o=1e3/t;const a=(t,o=Date.now())=>{i=o,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-i;s>=o?a(e,t):(n=e,r||(r=setTimeout((()=>{r=null,a(n)}),o-s)))},()=>n&&a(n)]},Re=(e,t,n=3)=>{let r=0;const i=De(50,250);return Pe((n=>{const o=n.loaded,a=n.lengthComputable?n.total:void 0,s=o-r,l=i(s);r=o;e({loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&o<=a?(a-o)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),n)},je=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Me=e=>(...t)=>W.asap((()=>e(...t))),Le=ge.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ge.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ge.origin),ge.navigator&&/(msie|trident)/i.test(ge.navigator.userAgent)):()=>!0,ze=ge.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];W.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),W.isString(r)&&a.push("path="+r),W.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Fe(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Be=e=>e instanceof Ce?{...e}:e;function Ue(e,t){t=t||{};const n={};function r(e,t,n,r){return W.isPlainObject(e)&&W.isPlainObject(t)?W.merge.call({caseless:r},e,t):W.isPlainObject(t)?W.merge({},t):W.isArray(t)?t.slice():t}function i(e,t,n,i){return W.isUndefined(t)?W.isUndefined(e)?void 0:r(void 0,e,0,i):r(e,t,0,i)}function o(e,t){if(!W.isUndefined(t))return r(void 0,t)}function a(e,t){return W.isUndefined(t)?W.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,i,o){return o in t?r(n,i):o in e?r(void 0,n):void 0}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>i(Be(e),Be(t),0,!0)};return W.forEach(Object.keys(Object.assign({},e,t)),(function(r){const o=l[r]||i,a=o(e[r],t[r],r);W.isUndefined(a)&&o!==s||(n[r]=a)})),n}const $e=e=>{const t=Ue({},e);let n,{data:r,withXSRFToken:i,xsrfHeaderName:o,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=Ce.from(s),t.url=se(Fe(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),W.isFormData(r))if(ge.hasStandardBrowserEnv||ge.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(ge.hasStandardBrowserEnv&&(i&&W.isFunction(i)&&(i=i(t)),i||!1!==i&&Le(t.url))){const e=o&&a&&ze.read(a);e&&s.set(o,e)}return t},qe="undefined"!==typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=$e(e);let i=r.data;const o=Ce.from(r.headers).normalize();let a,s,l,c,u,{responseType:d,onUploadProgress:f,onDownloadProgress:p}=r;function h(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=Ce.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Ie((function(e){t(e),h()}),(function(e){n(e),h()}),{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new Q("Request aborted",Q.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new Q("Network Error",Q.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const i=r.transitional||ce;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Q(t,i.clarifyTimeoutError?Q.ETIMEDOUT:Q.ECONNABORTED,e,m)),m=null},void 0===i&&o.setContentType(null),"setRequestHeader"in m&&W.forEach(o.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),W.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),p&&([l,u]=Re(p,!0),m.addEventListener("progress",l)),f&&m.upload&&([s,c]=Re(f),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{m&&(n(!t||t.type?new Ae(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const v=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);v&&-1===ge.protocols.indexOf(v)?n(new Q("Unsupported protocol "+v+":",Q.ERR_BAD_REQUEST,e)):m.send(i||null)}))},He=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const i=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof Q?t:new Ae(t instanceof Error?t.message:t))}};let o=t&&setTimeout((()=>{o=null,i(new Q(`timeout ${t} of ms exceeded`,Q.ETIMEDOUT))}),t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)})),e=null)};e.forEach((e=>e.addEventListener("abort",i)));const{signal:s}=r;return s.unsubscribe=()=>W.asap(a),s}},Ve=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,i=0;for(;i<n;)r=i+t,yield e.slice(i,r),i=r},We=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},Ke=(e,t,n,r)=>{const i=async function*(e,t){for await(const n of We(e))yield*Ve(n,t)}(e,t);let o,a=0,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await i.next();if(t)return s(),void e.close();let o=r.byteLength;if(n){let e=a+=o;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw s(t),t}},cancel:e=>(s(e),i.return())},{highWaterMark:2})},Ge="function"===typeof fetch&&"function"===typeof Request&&"function"===typeof Response,Ye=Ge&&"function"===typeof ReadableStream,Qe=Ge&&("function"===typeof TextEncoder?(Ze=new TextEncoder,e=>Ze.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var Ze;const Je=(e,...t)=>{try{return!!e(...t)}catch(n){return!1}},Xe=Ye&&Je((()=>{let e=!1;const t=new Request(ge.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),et=Ye&&Je((()=>W.isReadableStream(new Response("").body))),tt={stream:et&&(e=>e.body)};var nt;Ge&&(nt=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!tt[e]&&(tt[e]=W.isFunction(nt[e])?t=>t[e]():(t,n)=>{throw new Q(`Response type '${e}' is not supported`,Q.ERR_NOT_SUPPORT,n)})})));const rt=async(e,t)=>{const n=W.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(W.isBlob(e))return e.size;if(W.isSpecCompliantForm(e)){const t=new Request(ge.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return W.isArrayBufferView(e)||W.isArrayBuffer(e)?e.byteLength:(W.isURLSearchParams(e)&&(e+=""),W.isString(e)?(await Qe(e)).byteLength:void 0)})(t):n},it={http:null,xhr:qe,fetch:Ge&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:o,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:f}=$e(e);c=c?(c+"").toLowerCase():"text";let p,h=He([i,o&&o.toAbortSignal()],a);const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(l&&Xe&&"get"!==n&&"head"!==n&&0!==(g=await rt(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(W.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=je(g,Re(Me(l)));r=Ke(n.body,65536,e,t)}}W.isString(d)||(d=d?"include":"omit");const i="credentials"in Request.prototype;p=new Request(t,{...f,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:i?d:void 0});let o=await fetch(p);const a=et&&("stream"===c||"response"===c);if(et&&(s||a&&m)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=W.toFiniteNumber(o.headers.get("content-length")),[n,r]=s&&je(t,Re(Me(s),!0))||[];o=new Response(Ke(o.body,65536,n,(()=>{r&&r(),m&&m()})),e)}c=c||"text";let v=await tt[W.findKey(tt,c)||"text"](o,e);return!a&&m&&m(),await new Promise(((t,n)=>{Ie(t,n,{data:v,headers:Ce.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:p})}))}catch(v){if(m&&m(),v&&"TypeError"===v.name&&/fetch/i.test(v.message))throw Object.assign(new Q("Network Error",Q.ERR_NETWORK,e,p),{cause:v.cause||v});throw Q.from(v,v&&v.code,e,p)}})};W.forEach(it,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}}));const ot=e=>`- ${e}`,at=e=>W.isFunction(e)||null===e||!1===e,st=e=>{e=W.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o<t;o++){let t;if(n=e[o],r=n,!at(n)&&(r=it[(t=String(n)).toLowerCase()],void 0===r))throw new Q(`Unknown adapter '${t}'`);if(r)break;i[t||"#"+o]=r}if(!r){const e=Object.entries(i).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(ot).join("\n"):" "+ot(e[0]):"as no adapter specified";throw new Q("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function lt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ae(null,e)}function ct(e){lt(e),e.headers=Ce.from(e.headers),e.data=Oe.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return st(e.adapter||be.adapter)(e).then((function(t){return lt(e),t.data=Oe.call(e,e.transformResponse,t),t.headers=Ce.from(t.headers),t}),(function(t){return Ne(t)||(lt(e),t&&t.response&&(t.response.data=Oe.call(e,e.transformResponse,t.response),t.response.headers=Ce.from(t.response.headers))),Promise.reject(t)}))}const ut="1.7.9",dt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{dt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const ft={};dt.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.9] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,o)=>{if(!1===e)throw new Q(r(i," has been removed"+(t?" in "+t:"")),Q.ERR_DEPRECATED);return t&&!ft[i]&&(ft[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}},dt.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const pt={assertOptions:function(e,t,n){if("object"!==typeof e)throw new Q("options must be an object",Q.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const t=e[o],n=void 0===t||a(t,o,e);if(!0!==n)throw new Q("option "+o+" must be "+n,Q.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Q("Unknown option "+o,Q.ERR_BAD_OPTION)}},validators:dt},ht=pt.validators;class mt{constructor(e){this.defaults=e,this.interceptors={request:new le,response:new le}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(r){}}throw n}}_request(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{},t=Ue(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;void 0!==n&&pt.assertOptions(n,{silentJSONParsing:ht.transitional(ht.boolean),forcedJSONParsing:ht.transitional(ht.boolean),clarifyTimeoutError:ht.transitional(ht.boolean)},!1),null!=r&&(W.isFunction(r)?t.paramsSerializer={serialize:r}:pt.assertOptions(r,{encode:ht.function,serialize:ht.function},!0)),pt.assertOptions(t,{baseUrl:ht.spelling("baseURL"),withXsrfToken:ht.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=i&&W.merge(i.common,i[t.method]);i&&W.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]})),t.headers=Ce.concat(o,i);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[ct.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let f=t;for(d=0;d<u;){const e=a[d++],t=a[d++];try{f=e(f)}catch(p){t.call(this,p);break}}try{c=ct.call(this,f)}catch(p){return Promise.reject(p)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return se(Fe((e=Ue(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}W.forEach(["delete","get","head","options"],(function(e){mt.prototype[e]=function(t,n){return this.request(Ue(n||{},{method:e,url:t,data:(n||{}).data}))}})),W.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,i){return this.request(Ue(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}mt.prototype[e]=t(),mt.prototype[e+"Form"]=t(!0)}));const gt=mt;class vt{constructor(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,i){n.reason||(n.reason=new Ae(e,r,i),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new vt((function(t){e=t})),cancel:e}}}const yt=vt;const bt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(bt).forEach((([e,t])=>{bt[t]=e}));const wt=bt;const xt=function e(t){const n=new gt(t),r=a(gt.prototype.request,n);return W.extend(r,gt.prototype,n,{allOwnKeys:!0}),W.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Ue(t,n))},r}(be);xt.Axios=gt,xt.CanceledError=Ae,xt.CancelToken=yt,xt.isCancel=Ne,xt.VERSION=ut,xt.toFormData=te,xt.AxiosError=Q,xt.Cancel=xt.CanceledError,xt.all=function(e){return Promise.all(e)},xt.spread=function(e){return function(t){return e.apply(null,t)}},xt.isAxiosError=function(e){return W.isObject(e)&&!0===e.isAxiosError},xt.mergeConfig=Ue,xt.AxiosHeaders=Ce,xt.formToJSON=e=>ve(W.isHTMLForm(e)?new FormData(e):e),xt.getAdapter=st,xt.HttpStatusCode=wt,xt.default=xt;const _t=xt,{Axios:Et,AxiosError:St,CanceledError:kt,isCancel:Ct,CancelToken:Ot,VERSION:Nt,all:Tt,Cancel:At,isAxiosError:It,spread:Dt,toFormData:Pt,AxiosHeaders:Rt,HttpStatusCode:jt,formToJSON:Mt,getAdapter:Lt,mergeConfig:zt}=_t;class Ft{constructor(e={}){this.setApiEndpoint=(e="")=>{let t=e;"undefined"!==typeof location&&(t=t.replace("%CURRENT_HOST%",location.host)),this.apiEndpoint=t},this.setCSRFToken=e=>{this._axios.defaults.headers.post[this.csrfHeaderName]=e,this._axios.defaults.headers.put[this.csrfHeaderName]=e,this._axios.defaults.headers.delete[this.csrfHeaderName]=e},this.setDefaultHeader=({name:e,value:t,methods:n})=>{const r=this._axios.defaults.headers;Array.isArray(n)?n.forEach((n=>{const i=r[n];i&&i instanceof Rt&&(i[e]=t)})):r.common[e]=t},this.apiPath=e=>`${this.apiEndpoint}${e}`;const{config:t={},apiEndpoint:n="/api",collector:r={},csrfHeaderName:i="X-CSRF-Token"}=e,a=Object.assign({xsrfCookieName:"",timeout:Ft.DEFAULT_TIMEOUT,withCredentials:!0},t);this._axios=_t.create(a),this._axios.defaults.headers=o()(this._axios.defaults.headers),this.requestTokens={},this.setApiEndpoint(n),this.collectorSettings=r,this.collector={errors:[],requests:[]},this.csrfHeaderName=i}collectRequest({method:e,url:t,data:n,requestStart:r,response:i,responseError:o,error:a=!1,cancelled:s=!1}){const{collectErrors:l,collectRequests:c}=this.collectorSettings;if(!l&&!c)return;const{responseText:u="",responseURL:d=t}=i&&i.request||{},f=a&&o instanceof Error?o.message:"",p={method:e,url:d,time:{start:r,end:Number(new Date)},status:i&&i.status,size:u.length,requestData:n&&JSON.stringify(n,null,2)||"",responseData:i&&i.data&&JSON.stringify(i.data,null,2)||f,isError:a,isCancelled:s};l&&a&&(this.collector.errors=[...this.collector.errors,p].slice(-l)),c&&(this.collector.requests=[...this.collector.requests,p].slice(-c))}getCollectedRequests(){return{errors:[...this.collector.errors],requests:[...this.collector.requests]}}async request(e){const{method:t,url:n,data:r=null,params:i,options:o={},retries:a=0}=e,s=o.requestConfig||{},{concurrentId:l,collectRequest:c=!0,timeout:u,headers:d,onDownloadProgress:f}=o;l&&(this.cancelRequest(l),s.cancelToken=this.createRequestToken(l)),d&&(s.headers=d),"undefined"!==typeof u&&(s.timeout=u);const p=Number(new Date),h={method:t,url:n,data:r,params:i,onDownloadProgress:f};try{const e=await this._axios.request(Object.assign(Object.assign({},s),h));return c&&this.collectRequest(Object.assign(Object.assign({},h),{requestStart:p,response:e})),e.data}catch(m){if(_t.isCancel(m))throw{isCancelled:!0,error:m};let t;return t=m.response?m.response:"function"===typeof m.toJSON?m.toJSON():m,c&&this.collectRequest(Object.assign(Object.assign({},h),{requestStart:p,response:t,error:!0,cancelled:_t.isCancel(m),responseError:m})),this.handleRequestError(t,(()=>this.request(Object.assign(Object.assign({},e),{retries:a+1}))),a,new Error(m instanceof Error?m.message:"Unknown error"))}finally{this.clearRequestToken(l)}}cancelRequest(e){e&&this.requestTokens[e]&&this.requestTokens[e].cancel("Concurrent request")}get(e,t,n={}){return this.request({method:"GET",url:e,params:t,options:n})}post(e,t,n,r={}){return this.request({method:"POST",url:e,data:t,params:n,options:r})}put(e,t,n,r={}){return this.request({method:"PUT",url:e,data:t,params:n,options:r})}patch(e,t,n,r={}){return this.request({method:"PATCH",url:e,data:t,params:n,options:r})}delete(e,t,n,r={}){return this.request({method:"DELETE",url:e,data:t,params:n,options:r})}head(e,t,n={}){return this.request({method:"HEAD",url:e,params:t,options:n})}handleRequestError(e){throw e}createRequestToken(e){if(e){const t=_t.CancelToken.source();return this.requestTokens[e]=t,t.token}}clearRequestToken(e){e&&this.requestTokens[e]&&delete this.requestTokens[e]}}Ft.DEFAULT_TIMEOUT=6e4;var Bt=n(70911);const Ut="axios-retry";function $t(e){return!e.response&&(!!e.code&&(!["ERR_CANCELED","ECONNABORTED"].includes(e.code)&&Bt(e)))}const qt=["get","head","options"],Ht=qt.concat(["put","delete"]);function Vt(e){return"ECONNABORTED"!==e.code&&(!e.response||429===e.response.status||e.response.status>=500&&e.response.status<=599)}function Wt(e){return!!e.config?.method&&(Vt(e)&&-1!==Ht.indexOf(e.config.method))}function Kt(e){return $t(e)||Wt(e)}function Gt(e=void 0){const t=e?.response?.headers["retry-after"];if(!t)return 0;let n=1e3*(Number(t)||0);return 0===n&&(n=(new Date(t).valueOf()||0)-Date.now()),Math.max(0,n)}const Yt={retries:3,retryCondition:Kt,retryDelay:function(e=0,t=void 0){return Math.max(0,Gt(t))},shouldResetTimeout:!1,onRetry:()=>{},onMaxRetryTimesExceeded:()=>{},validateResponse:null};function Qt(e,t,n=!1){const r=function(e,t){return{...Yt,...t,...e[Ut]}}(e,t||{});return r.retryCount=r.retryCount||0,r.lastRequestTime&&!n||(r.lastRequestTime=Date.now()),e[Ut]=r,r}const Zt=(e,t)=>{const n=e.interceptors.request.use((e=>(Qt(e,t,!0),e[Ut]?.validateResponse&&(e.validateStatus=()=>!1),e))),r=e.interceptors.response.use(null,(async n=>{const{config:r}=n;if(!r)return Promise.reject(n);const i=Qt(r,t);return n.response&&i.validateResponse?.(n.response)?n.response:await async function(e,t){const{retries:n,retryCondition:r}=e,i=(e.retryCount||0)<n&&r(t);if("object"===typeof i)try{return!1!==await i}catch(o){return!1}return i}(i,n)?async function(e,t,n,r){t.retryCount+=1;const{retryDelay:i,shouldResetTimeout:o,onRetry:a}=t,s=i(t.retryCount,n);if(function(e,t){e.defaults.agent===t.agent&&delete t.agent,e.defaults.httpAgent===t.httpAgent&&delete t.httpAgent,e.defaults.httpsAgent===t.httpsAgent&&delete t.httpsAgent}(e,r),!o&&r.timeout&&t.lastRequestTime){const e=Date.now()-t.lastRequestTime,i=r.timeout-e-s;if(i<=0)return Promise.reject(n);r.timeout=i}return r.transformRequest=[e=>e],await a(t.retryCount,n,r),r.signal?.aborted?Promise.resolve(e(r)):new Promise((t=>{const n=()=>{clearTimeout(i),t(e(r))},i=setTimeout((()=>{t(e(r)),r.signal?.removeEventListener&&r.signal.removeEventListener("abort",n)}),s);r.signal?.addEventListener&&r.signal.addEventListener("abort",n,{once:!0})}))}(e,i,n,r):(await async function(e,t){e.retryCount>=e.retries&&await e.onMaxRetryTimesExceeded(t,e.retryCount)}(i,n),Promise.reject(n))}));return{requestInterceptorId:n,responseInterceptorId:r}};Zt.isNetworkError=$t,Zt.isSafeRequestError=function(e){return!!e.config?.method&&(Vt(e)&&-1!==qt.indexOf(e.config.method))},Zt.isIdempotentRequestError=Wt,Zt.isNetworkOrIdempotentRequestError=Kt,Zt.exponentialDelay=function(e=0,t=void 0,n=100){const r=2**e*n,i=Math.max(r,Gt(t));return i+.2*i*Math.random()},Zt.linearDelay=function(e=100){return(t=0,n=void 0)=>{const r=t*e;return Math.max(r,Gt(n))}},Zt.isRetryableError=Vt;const Jt=Zt;var Xt=n(58351),en=n(76086),tn=n(81288),nn=n(59001);class rn extends Ft{constructor(e){super(e),this.DEFAULT_RETRIES_COUNT=0,Jt(this._axios,{retries:this.DEFAULT_RETRIES_COUNT,retryDelay:Jt.exponentialDelay}),this._axios.interceptors.request.use((function(e){return nn.f.readUserSettingsValue(en.U0)&&(e.headers["X-Want-Trace"]=1),e})),this._axios.interceptors.response.use((function(e){if(e.data&&e.data instanceof Object&&!Array.isArray(e.data)&&e.headers.traceresponse){const t=e.headers.traceresponse.split("-")[1];e.data={...e.data,_meta:{...e.data._meta,traceId:t}}}return e})),this._axios.interceptors.response.use(null,(function(e){const t=e.response;return(0,tn.uP)(t)&&window.location.assign(t.data.authUrl),Promise.reject(e)}))}getPath(e){return`${null!==Xt.Hs&&void 0!==Xt.Hs?Xt.Hs:""}${e}`}prepareArrayRequestParam(e){return e.join(",")}}class on extends rn{authenticate(e){return this.post(this.getPath("/login"),e,{})}logout(){return this.post(this.getPath("/logout"),{},{})}}const an={Ide:"ydb",IdeVersion:"1",PluginFamily:"ydb",PluginVersion:"0.2"};class sn extends rn{getPath(e){return`${null!==Xt.p2&&void 0!==Xt.p2?Xt.p2:""}${e}`}async getCodeAssistSuggestions(e){const t=e.map((e=>{const t=e.cursorPosition.lineNumber,n=e.cursorPosition.column;return{Fragments:e.fragments.map((e=>{let r=e.text;const i=e.end.lineNumber<t||e.end.lineNumber===t&&e.end.column<=n,o=e.start.lineNumber>t||e.start.lineNumber===t&&e.start.column>n;return i?r=r.slice(-8e3):o&&(r=r.slice(0,1e3)),{Text:r,Start:{Ln:e.start.lineNumber,Col:e.start.column},End:{Ln:e.end.lineNumber,Col:e.end.column}}})),Cursor:{Ln:t,Col:n},Path:`${e.path}.yql`}}));const n=await this.post(this.getPath("/code-assist-suggestion"),{Files:t,ContextCreateType:1,IdeInfo:an},null,{concurrentId:"code-assist-suggestion",collectRequest:!1});return{items:n.Suggests.map((e=>e.Text)),requestId:n.RequestId}}sendCodeAssistTelemetry(e){return this.post("/code-assist-telemetry",e,null,{concurrentId:"code-assist-telemetry",collectRequest:!0})}sendCodeAssistOpenTabs(e){return this.post("/code-assist-telemetry",{OpenTabs:{Tabs:(t=e,t.map((e=>{const t=e.Text;return t.length>1e4?{...e,Text:t.slice(0,1e4)}:e}))),IdeInfo:an}},null,{concurrentId:"code-assist-telemetry",collectRequest:!1});var t}}const ln=e=>({TenantInfo:null===e||void 0===e?void 0:e.databases});class cn extends rn{getPath(e){return`${null!==Xt.In&&void 0!==Xt.In?Xt.In:""}${e}`}getClustersList(e,{signal:t}={}){return this.get(this.getPath("/meta/clusters"),null,{requestConfig:{signal:t}})}getTenants(e,{signal:t}={}){return this.get(this.getPath("/meta/cp_databases"),{cluster_name:e},{requestConfig:{signal:t}}).then(ln)}getClusterBaseInfo(e,{concurrentId:t,signal:n}={}){return this.get(this.getPath("/meta/db_clusters"),{name:e},{concurrentId:t,requestConfig:{signal:n}}).then((e=>e.clusters[0]))}}class un extends rn{getOperationList(e,{concurrentId:t,signal:n}={}){return this.get(this.getPath("/operation/list"),{...e},{concurrentId:t,requestConfig:{signal:n}})}cancelOperation(e,{concurrentId:t,signal:n}={}){return this.post(this.getPath("/operation/cancel"),{},{...e},{concurrentId:t,requestConfig:{signal:n}})}forgetOperation(e,{concurrentId:t,signal:n}={}){return this.post(this.getPath("/operation/forget"),{},{...e},{concurrentId:t,requestConfig:{signal:n}})}}var dn=n(31684);class fn extends rn{restartPDisk({nodeId:e,pDiskId:t,force:n}){return this.post(this.getPath("/pdisk/restart"),{},{node_id:e,pdisk_id:t,force:n},{requestConfig:{"axios-retry":{retries:0}}})}changePDiskStatus({nodeId:e,pDiskId:t,force:n,decommissionStatus:r}){return this.post(this.getPath("/pdisk/status"),{decommit_status:r},{node_id:e,pdisk_id:t,force:n},{requestConfig:{"axios-retry":{retries:0}}})}getPDiskInfo({nodeId:e,pDiskId:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/pdisk/info"),{node_id:e,pdisk_id:t},{concurrentId:n,requestConfig:{signal:r}})}restartPDiskOld({nodeId:e,pDiskId:t}){const n=(0,dn.ar)({nodeId:e,pDiskId:t,host:this.getPath("")});return this.post(n,"restartPDisk=",{},{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}})}}class pn extends rn{createSchemaDirectory({database:e,path:t},{signal:n}={}){return this.post(this.getPath("/scheme/directory"),{},{database:e,path:t},{requestConfig:{signal:n}})}}class hn extends rn{getStorageGroups({nodeId:e,pDiskId:t,groupId:n,fieldsRequired:r,filter:i,...o},{concurrentId:a,signal:s}={}){const l=Array.isArray(e)?this.prepareArrayRequestParam(e):e,c=Array.isArray(t)?this.prepareArrayRequestParam(t):t,u=Array.isArray(n)?this.prepareArrayRequestParam(n):n,d=Array.isArray(r)?this.prepareArrayRequestParam(r):r;return this.get(this.getPath("/storage/groups"),{node_id:l,pdisk_id:c,group_id:u,fields_required:d,filter:i||void 0,timeout:2e4,...o},{concurrentId:a,requestConfig:{signal:s}})}}function mn(e,t=";"){let n,r=";"===t?/(?:^|;)\s*([^=;\s]+)(\s*=\s*(?:"((?:[^"\\]|\\.)*)"|((?:[^;]|\\\;)+))?)?/g:/(?:^|,)\s*([^=,\s]+)(\s*=\s*(?:"((?:[^"\\]|\\.)*)"|((?:[^,]|\\\,)+))?)?/g,i=[];for(;null!==(n=r.exec(e));){let e,t=n[1].trim();n[2]&&(e=(n[3]||n[4]||"").replace(/\\(.)/g,"$1").trim()),i.push([t,e])}return i}function gn(e){return e.includes('"')||e.includes(";")||e.includes(" ")?`"${e.replace(/"/g,'\\"')}"`:e}function vn(e){return null!=e&&"function"===typeof e[Symbol.iterator]}function yn(e){return e instanceof Date&&!isNaN(e.getTime())}function bn(e){return"*"===e||/^(W\/)?".*"$/.test(e)?e:`"${e}"`}var wn=class{#e;constructor(e){if(this.#e=new Map,e){if("string"===typeof e)for(let t of e.split(/\s*,\s*/)){let e=mn(t);if(e.length<1)continue;let n=e[0][0],r=1;for(let t=1;t<e.length;t++){let[n,i]=e[t];if("q"===n){r=Number(i);break}}this.#e.set(n.toLowerCase(),r)}else if(vn(e))for(let t of e)Array.isArray(t)?this.#e.set(t[0].toLowerCase(),t[1]):this.#e.set(t.toLowerCase(),1);else for(let t of Object.getOwnPropertyNames(e))this.#e.set(t.toLowerCase(),e[t]);this.#t()}}#t(){this.#e=new Map([...this.#e].sort(((e,t)=>t[1]-e[1])))}get mediaTypes(){return Array.from(this.#e.keys())}get weights(){return Array.from(this.#e.values())}get size(){return this.#e.size}accepts(e){return this.getWeight(e)>0}getWeight(e){let[t,n]=e.toLowerCase().split("/");for(let[r,i]of this){let[e,o]=r.split("/");if((e===t||"*"===e||"*"===t)&&(o===n||"*"===o||"*"===n))return i}return 0}getPreferred(e){let t=e.map((e=>[e,this.getWeight(e)])).sort(((e,t)=>t[1]-e[1]))[0];return void 0!==t&&t[1]>0?t[0]:null}get(e){return this.#e.get(e.toLowerCase())??null}set(e,t=1){this.#e.set(e.toLowerCase(),t),this.#t()}delete(e){this.#e.delete(e.toLowerCase())}has(e){return this.#e.has(e.toLowerCase())}clear(){this.#e.clear()}entries(){return this.#e.entries()}[Symbol.iterator](){return this.entries()}forEach(e,t){for(let[n,r]of this)e.call(t,n,r,this)}toString(){let e=[];for(let[t,n]of this.#e)e.push(`${t}${1===n?"":`;q=${n}`}`);return e.join(",")}},xn=class{#e;constructor(e){if(this.#e=new Map,e){if("string"===typeof e)for(let t of e.split(/\s*,\s*/)){let e=mn(t);if(e.length<1)continue;let n=e[0][0],r=1;for(let t=1;t<e.length;t++){let[n,i]=e[t];if("q"===n){r=Number(i);break}}this.#e.set(n.toLowerCase(),r)}else if(vn(e))for(let t of e)Array.isArray(t)?this.#e.set(t[0].toLowerCase(),t[1]):this.#e.set(t.toLowerCase(),1);else for(let t of Object.getOwnPropertyNames(e))this.#e.set(t.toLowerCase(),e[t]);this.#t()}}#t(){this.#e=new Map([...this.#e].sort(((e,t)=>t[1]-e[1])))}get encodings(){return Array.from(this.#e.keys())}get weights(){return Array.from(this.#e.values())}get size(){return this.#e.size}accepts(e){return"identity"===e.toLowerCase()||this.getWeight(e)>0}getWeight(e){let t=e.toLowerCase();for(let[n,r]of this)if(n===t||"*"===n||"*"===t)return r;return 0}getPreferred(e){let t=e.map((e=>[e,this.getWeight(e)])).sort(((e,t)=>t[1]-e[1]))[0];return void 0!==t&&t[1]>0?t[0]:null}get(e){return this.#e.get(e.toLowerCase())??null}set(e,t=1){this.#e.set(e.toLowerCase(),t),this.#t()}delete(e){this.#e.delete(e.toLowerCase())}has(e){return this.#e.has(e.toLowerCase())}clear(){this.#e.clear()}entries(){return this.#e.entries()}[Symbol.iterator](){return this.entries()}forEach(e,t){for(let[n,r]of this)e.call(t,n,r,this)}toString(){let e=[];for(let[t,n]of this.#e)e.push(`${t}${1===n?"":`;q=${n}`}`);return e.join(",")}},_n=class{#e;constructor(e){if(this.#e=new Map,e){if("string"===typeof e)for(let t of e.split(/\s*,\s*/)){let e=mn(t);if(e.length<1)continue;let n=e[0][0],r=1;for(let t=1;t<e.length;t++){let[n,i]=e[t];if("q"===n){r=Number(i);break}}this.#e.set(n.toLowerCase(),r)}else if(vn(e))for(let t of e)Array.isArray(t)?this.#e.set(t[0].toLowerCase(),t[1]):this.#e.set(t.toLowerCase(),1);else for(let t of Object.getOwnPropertyNames(e))this.#e.set(t.toLowerCase(),e[t]);this.#t()}}#t(){this.#e=new Map([...this.#e].sort(((e,t)=>t[1]-e[1])))}get languages(){return Array.from(this.#e.keys())}get weights(){return Array.from(this.#e.values())}get size(){return this.#e.size}accepts(e){return this.getWeight(e)>0}getWeight(e){let[t,n]=e.toLowerCase().split("-");for(let[r,i]of this){let[e,o]=r.split("-");if((e===t||"*"===e||"*"===t)&&(o===n||void 0===o||void 0===n))return i}return 0}getPreferred(e){let t=e.map((e=>[e,this.getWeight(e)])).sort(((e,t)=>t[1]-e[1]))[0];return void 0!==t&&t[1]>0?t[0]:null}get(e){return this.#e.get(e.toLowerCase())??null}set(e,t=1){this.#e.set(e.toLowerCase(),t),this.#t()}delete(e){this.#e.delete(e.toLowerCase())}has(e){return this.#e.has(e.toLowerCase())}clear(){this.#e.clear()}entries(){return this.#e.entries()}[Symbol.iterator](){return this.entries()}forEach(e,t){for(let[n,r]of this)e.call(t,n,r,this)}toString(){let e=[];for(let[t,n]of this.#e)e.push(`${t}${1===n?"":`;q=${n}`}`);return e.join(",")}},En=class{maxAge;maxStale;minFresh;sMaxage;noCache;noStore;noTransform;onlyIfCached;mustRevalidate;proxyRevalidate;mustUnderstand;private;public;immutable;staleWhileRevalidate;staleIfError;constructor(e){if(e)if("string"===typeof e){let t=mn(e,",");if(t.length>0)for(let[e,n]of t)switch(e){case"max-age":this.maxAge=Number(n);break;case"max-stale":this.maxStale=Number(n);break;case"min-fresh":this.minFresh=Number(n);break;case"s-maxage":this.sMaxage=Number(n);break;case"no-cache":this.noCache=!0;break;case"no-store":this.noStore=!0;break;case"no-transform":this.noTransform=!0;break;case"only-if-cached":this.onlyIfCached=!0;break;case"must-revalidate":this.mustRevalidate=!0;break;case"proxy-revalidate":this.proxyRevalidate=!0;break;case"must-understand":this.mustUnderstand=!0;break;case"private":this.private=!0;break;case"public":this.public=!0;break;case"immutable":this.immutable=!0;break;case"stale-while-revalidate":this.staleWhileRevalidate=Number(n);break;case"stale-if-error":this.staleIfError=Number(n)}}else this.maxAge=e.maxAge,this.maxStale=e.maxStale,this.minFresh=e.minFresh,this.sMaxage=e.sMaxage,this.noCache=e.noCache,this.noStore=e.noStore,this.noTransform=e.noTransform,this.onlyIfCached=e.onlyIfCached,this.mustRevalidate=e.mustRevalidate,this.proxyRevalidate=e.proxyRevalidate,this.mustUnderstand=e.mustUnderstand,this.private=e.private,this.public=e.public,this.immutable=e.immutable,this.staleWhileRevalidate=e.staleWhileRevalidate,this.staleIfError=e.staleIfError}toString(){let e=[];return this.public&&e.push("public"),this.private&&e.push("private"),"number"===typeof this.maxAge&&e.push(`max-age=${this.maxAge}`),"number"===typeof this.sMaxage&&e.push(`s-maxage=${this.sMaxage}`),this.noCache&&e.push("no-cache"),this.noStore&&e.push("no-store"),this.noTransform&&e.push("no-transform"),this.onlyIfCached&&e.push("only-if-cached"),this.mustRevalidate&&e.push("must-revalidate"),this.proxyRevalidate&&e.push("proxy-revalidate"),this.mustUnderstand&&e.push("must-understand"),this.immutable&&e.push("immutable"),"number"===typeof this.staleWhileRevalidate&&e.push(`stale-while-revalidate=${this.staleWhileRevalidate}`),"number"===typeof this.staleIfError&&e.push(`stale-if-error=${this.staleIfError}`),"number"===typeof this.maxStale&&e.push(`max-stale=${this.maxStale}`),"number"===typeof this.minFresh&&e.push(`min-fresh=${this.minFresh}`),e.join(", ")}},Sn=class{filename;filenameSplat;name;type;constructor(e){if(e)if("string"===typeof e){let t=mn(e);if(t.length>0){this.type=t[0][0];for(let[e,n]of t.slice(1))"filename"===e?this.filename=n:"filename*"===e?this.filenameSplat=n:"name"===e&&(this.name=n)}}else this.filename=e.filename,this.filenameSplat=e.filenameSplat,this.name=e.name,this.type=e.type}get preferredFilename(){let e=this.filenameSplat;if(e){let t=function(e){let t=e.match(/^([\w-]+)'([^']*)'(.+)$/);if(!t)return null;let[,n,,r]=t,i=function(e){return e.replace(/\+/g," ").replace(/%([0-9A-Fa-f]{2})/g,((e,t)=>String.fromCharCode(parseInt(t,16))))}(r);try{let e=new TextDecoder(n),t=new Uint8Array(i.split("").map((e=>e.charCodeAt(0))));return e.decode(t)}catch(o){return console.warn(`Failed to decode filename from charset ${n}:`,o),i}}(e);if(t)return t}return this.filename}toString(){if(!this.type)return"";let e=[this.type];return this.name&&e.push(`name=${gn(this.name)}`),this.filename&&e.push(`filename=${gn(this.filename)}`),this.filenameSplat&&e.push(`filename*=${gn(this.filenameSplat)}`),e.join("; ")}};var kn=class{boundary;charset;mediaType;constructor(e){if(e)if("string"===typeof e){let t=mn(e);if(t.length>0){this.mediaType=t[0][0];for(let[e,n]of t.slice(1))"boundary"===e?this.boundary=n:"charset"===e&&(this.charset=n)}}else this.boundary=e.boundary,this.charset=e.charset,this.mediaType=e.mediaType}toString(){if(!this.mediaType)return"";let e=[this.mediaType];return this.charset&&e.push(`charset=${gn(this.charset)}`),this.boundary&&e.push(`boundary=${gn(this.boundary)}`),e.join("; ")}},Cn=class{#e;constructor(e){if(this.#e=new Map,e)if("string"===typeof e){let t=mn(e);for(let[e,n]of t)this.#e.set(e,n??"")}else if(vn(e))for(let[t,n]of e)this.#e.set(t,n);else for(let t of Object.getOwnPropertyNames(e))this.#e.set(t,e[t])}get names(){return Array.from(this.#e.keys())}get values(){return Array.from(this.#e.values())}get size(){return this.#e.size}get(e){return this.#e.get(e)??null}set(e,t){this.#e.set(e,t)}delete(e){this.#e.delete(e)}has(e){return this.#e.has(e)}clear(){this.#e.clear()}entries(){return this.#e.entries()}[Symbol.iterator](){return this.entries()}forEach(e,t){for(let[n,r]of this)e.call(t,n,r,this)}toString(){let e=[];for(let[t,n]of this.#e)e.push(`${t}=${gn(n)}`);return e.join("; ")}},On=class{tags=[];constructor(e){e&&("string"===typeof e?this.tags.push(...e.split(/\s*,\s*/).map(bn)):Array.isArray(e)?this.tags.push(...e.map(bn)):this.tags.push(...e.tags.map(bn)))}has(e){return this.tags.includes(bn(e))}matches(e){return this.has(e)||this.tags.includes("*")}toString(){return this.tags.join(", ")}},Nn=class{domain;expires;httpOnly;maxAge;name;path;sameSite;secure;value;constructor(e){if(e)if("string"===typeof e){let n=mn(e);if(n.length>0){this.name=n[0][0],this.value=n[0][1];for(let[e,r]of n.slice(1))switch(e.toLowerCase()){case"domain":this.domain=r;break;case"expires":if("string"===typeof r){let e=new Date(r);yn(e)&&(this.expires=e)}break;case"httponly":this.httpOnly=!0;break;case"max-age":if("string"===typeof r){let e=parseInt(r,10);isNaN(e)||(this.maxAge=e)}break;case"path":this.path=r;break;case"samesite":"string"===typeof r&&/strict|lax|none/i.test(r)&&(this.sameSite=(t=r).charAt(0).toUpperCase()+t.slice(1).toLowerCase());break;case"secure":this.secure=!0}}}else this.domain=e.domain,this.expires=e.expires,this.httpOnly=e.httpOnly,this.maxAge=e.maxAge,this.name=e.name,this.path=e.path,this.sameSite=e.sameSite,this.secure=e.secure,this.value=e.value;var t}toString(){if(!this.name)return"";let e=[`${this.name}=${gn(this.value||"")}`];return this.domain&&e.push(`Domain=${this.domain}`),this.path&&e.push(`Path=${this.path}`),this.expires&&e.push(`Expires=${this.expires.toUTCString()}`),this.maxAge&&e.push(`Max-Age=${this.maxAge}`),this.secure&&e.push("Secure"),this.httpOnly&&e.push("HttpOnly"),this.sameSite&&e.push(`SameSite=${this.sameSite}`),e.join("; ")}},Tn={ct:"CT",etag:"ETag",te:"TE",www:"WWW",x:"X",xss:"XSS"};var An="accept",In="accept-encoding",Dn="accept-language",Pn="accept-ranges",Rn="cache-control",jn="connection",Mn="content-disposition",Ln="content-encoding",zn="content-language",Fn="content-length",Bn="content-type",Un="cookie",$n="date",qn="etag",Hn="expires",Vn="host",Wn="if-modified-since",Kn="if-none-match",Gn="if-unmodified-since",Yn="last-modified",Qn="location",Zn="referer",Jn="set-cookie",Xn=class e extends Headers{#e;#n=[];constructor(t){if(super(),this.#e=new Map,t)if("string"===typeof t){let e=t.split("\r\n");for(let t of e){let e=t.match(/^([^:]+):(.*)/);e&&this.append(e[1].trim(),e[2].trim())}}else if(vn(t))for(let[e,n]of t)this.append(e,n);else if("object"===typeof t)for(let n of Object.getOwnPropertyNames(t)){let r=t[n],i=Object.getOwnPropertyDescriptor(e.prototype,n);i?.set?i.set.call(this,r):this.set(n,r.toString())}}append(e,t){let n=e.toLowerCase();if(n===Jn)this.#n.push(t);else{let e=this.#e.get(n);this.#e.set(n,e?`${e}, ${t}`:t)}}delete(e){let t=e.toLowerCase();t===Jn?this.#n=[]:this.#e.delete(t)}get(e){let t=e.toLowerCase();if(t===Jn)return this.getSetCookie().join(", ");{let e=this.#e.get(t);if("string"===typeof e)return e;if(null!=e){let t=e.toString();return""===t?null:t}return null}}getSetCookie(){return this.#n.map((e=>"string"===typeof e?e:e.toString()))}has(e){let t=e.toLowerCase();return t===Jn?this.#n.length>0:null!=this.get(t)}set(e,t){let n=e.toLowerCase();n===Jn?this.#n=[t]:this.#e.set(n,t)}*keys(){for(let[e]of this)yield e}*values(){for(let[,e]of this)yield e}*entries(){for(let[e]of this.#e){let t=this.get(e);t&&(yield[e,t])}for(let e of this.getSetCookie())yield[Jn,e]}[Symbol.iterator](){return this.entries()}forEach(e,t){for(let[n,r]of this)e.call(t,r,n,this)}toString(){let e=[];for(let[n,r]of this)e.push(`${t=n,t.toLowerCase().split("-").map((e=>Tn[e]||e.charAt(0).toUpperCase()+e.slice(1))).join("-")}: ${r}`);var t;return e.join("\r\n")}get accept(){return this.#r(An,wn)}set accept(e){this.#i(An,wn,e)}get acceptEncoding(){return this.#r(In,xn)}set acceptEncoding(e){this.#i(In,xn,e)}get acceptLanguage(){return this.#r(Dn,_n)}set acceptLanguage(e){this.#i(Dn,_n,e)}get acceptRanges(){return this.#o(Pn)}set acceptRanges(e){this.#a(Pn,e)}get age(){return this.#s("age")}set age(e){this.#l("age",e)}get cacheControl(){return this.#r(Rn,En)}set cacheControl(e){this.#i(Rn,En,e)}get connection(){return this.#o(jn)}set connection(e){this.#a(jn,e)}get contentDisposition(){return this.#r(Mn,Sn)}set contentDisposition(e){this.#i(Mn,Sn,e)}get contentEncoding(){return this.#o(Ln)}set contentEncoding(e){this.#a(Ln,Array.isArray(e)?e.join(", "):e)}get contentLanguage(){return this.#o(zn)}set contentLanguage(e){this.#a(zn,Array.isArray(e)?e.join(", "):e)}get contentLength(){return this.#s(Fn)}set contentLength(e){this.#l(Fn,e)}get contentType(){return this.#r(Bn,kn)}set contentType(e){this.#i(Bn,kn,e)}get cookie(){return this.#r(Un,Cn)}set cookie(e){this.#i(Un,Cn,e)}get date(){return this.#c($n)}set date(e){this.#u($n,e)}get etag(){return this.#o(qn)}set etag(e){this.#a(qn,"string"===typeof e?bn(e):e)}get expires(){return this.#c(Hn)}set expires(e){this.#u(Hn,e)}get host(){return this.#o(Vn)}set host(e){this.#a(Vn,e)}get ifModifiedSince(){return this.#c(Wn)}set ifModifiedSince(e){this.#u(Wn,e)}get ifNoneMatch(){return this.#r(Kn,On)}set ifNoneMatch(e){this.#i(Kn,On,e)}get ifUnmodifiedSince(){return this.#c(Gn)}set ifUnmodifiedSince(e){this.#u(Gn,e)}get lastModified(){return this.#c(Yn)}set lastModified(e){this.#u(Yn,e)}get location(){return this.#o(Qn)}set location(e){this.#a(Qn,e)}get referer(){return this.#o(Zn)}set referer(e){this.#a(Zn,e)}get setCookie(){let e=this.#n;for(let t=0;t<e.length;++t)"string"===typeof e[t]&&(e[t]=new Nn(e[t]));return e}set setCookie(e){this.#n=null!=e?(Array.isArray(e)?e:[e]).map((e=>"string"===typeof e?e:new Nn(e))):[]}#r(e,t){let n=this.#e.get(e);if(void 0!==n){if("string"===typeof n){let r=new t(n);return this.#e.set(e,r),r}return n}let r=new t;return this.#e.set(e,r),r}#i(e,t,n){null!=n?this.#e.set(e,"string"===typeof n?n:new t(n)):this.#e.delete(e)}#c(e){let t=this.#e.get(e);return void 0===t?null:new Date(t)}#u(e,t){null!=t?this.#e.set(e,"string"===typeof t?t:("number"===typeof t?new Date(t):t).toUTCString()):this.#e.delete(e)}#s(e){let t=this.#e.get(e);return void 0===t?null:parseInt(t,10)}#l(e,t){null!=t?this.#e.set(e,"string"===typeof t?t:t.toString()):this.#e.delete(e)}#o(e){let t=this.#e.get(e);return void 0===t?null:t}#a(e,t){null!=t?this.#e.set(e,t):this.#e.delete(e)}};async function*er(e){let t=e.getReader();for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}function tr(e){let t,n=(new TextEncoder).encode(e);if(!("Buffer"in globalThis)||"Bun"in globalThis||"Deno"in globalThis){let e=n.length-1,r=new Uint8Array(256).fill(n.length);for(let t=0;t<e;++t)r[n[t]]=e-t;t=(t,i=0)=>{let o=t.length,a=i+e;for(;a<o;){for(let r=e,i=a;r>=0&&t[i]===n[r];--r,--i)if(0===r)return i;a+=r[t[a]]}return-1}}else t=(e,t=0)=>Buffer.prototype.indexOf.call(e,n,t);return t}var nr=class extends Error{constructor(e){super(e),this.name="MultipartParseError"}},rr=class extends nr{constructor(e){super(`Multipart header size exceeds maximum allowed size of ${e} bytes`),this.name="MaxHeaderSizeExceededError"}},ir=class extends nr{constructor(e){super(`File size exceeds maximum allowed size of ${e} bytes`),this.name="MaxFileSizeExceededError"}};async function or(e,t,n){let r=new sr(t.boundary,{maxHeaderSize:t.maxHeaderSize,maxFileSize:t.maxFileSize});await r.parse(e,n)}var ar=tr("\r\n\r\n"),sr=class{boundary;maxHeaderSize;maxFileSize;#d;#f;#p;#h;#m;#g=0;#v=null;#y=null;#b=0;constructor(e,t){this.boundary=e,this.maxHeaderSize=t?.maxHeaderSize??8192,this.maxFileSize=t?.maxFileSize??1/0,this.#d=tr(`--${e}`),this.#f=2+e.length,this.#p=tr(`\r\n--${e}`),this.#h=function(e){let t=(new TextEncoder).encode(e),n={};for(let r=0;r<t.length;++r){let e=t[r];void 0===n[e]&&(n[e]=[]),n[e].push(r)}return function(e){let r=e.length-1;if(e[r]in n){let i=n[e[r]];for(let n=i.length-1;n>=0;--n)for(let o=i[n],a=r;o>=0&&e[a]===t[o];--o,--a)if(0===o)return a}return-1}}(`\r\n--${e}`),this.#m=4+e.length}async parse(e,t){0!==this.#g&&this.#w();let n=[];function r(e){let r=t(e);var i;"object"===typeof(i=r)&&null!=i&&"function"===typeof i.then&&(n.push(r),r.catch((()=>{})))}if(e instanceof ReadableStream)for await(let o of er(e))this.#x(o,r);else if("object"===typeof(i=e)&&null!=i&&Symbol.asyncIterator in i)for await(let o of e)this.#x(o,r);else if(e instanceof Uint8Array)this.#x(e,r);else{if(!function(e){return"object"===typeof e&&null!=e&&Symbol.iterator in e}(e))throw new TypeError("Cannot parse multipart message; expected a stream or buffer");for(let t of e)this.#x(t,r)}var i;if(4!==this.#g)throw new nr("Unexpected end of stream");await Promise.all(n)}#w(){this.#g=0,this.#v=null,this.#y=null,this.#b=0}#x(e,t){if(4===this.#g)throw new nr("Unexpected data after end of stream");let n=0,r=e.length;if(null!==this.#v){let t=new Uint8Array(this.#v.length+r);t.set(this.#v,0),t.set(e,this.#v.length),r=(e=t).length,this.#v=null}for(;;){if(3===this.#g){if(r-n<this.#m){this.#v=e.subarray(n);break}let t=this.#p(e,n);if(-1===t){let t=this.#h(e);-1===t?this.#_(0===n?e:e.subarray(n)):(this.#_(e.subarray(n,t)),this.#v=e.subarray(t));break}this.#_(e.subarray(n,t)),this.#E(),n=t+this.#m,this.#g=1}if(1===this.#g){if(r-n<2){this.#v=e.subarray(n);break}if(45===e[n]&&45===e[n+1]){this.#g=4;break}n+=2,this.#g=2}if(2!==this.#g){if(0===this.#g){if(r<this.#f){this.#v=e;break}if(0!==this.#d(e))throw new nr("Invalid multipart stream: missing initial boundary");n=this.#f,this.#g=1}}else{if(r-n<4){this.#v=e.subarray(n);break}let i=ar(e,n);if(-1===i){if(r-n>this.maxHeaderSize)throw new rr(this.maxHeaderSize);this.#v=e.subarray(n);break}if(i-n>this.maxHeaderSize)throw new rr(this.maxHeaderSize);let o=e.subarray(n,i);t(new lr(o,new ReadableStream({start:e=>{this.#y=e,this.#b=0}}))),n=i+4,this.#g=3}}}#_(e){if(this.#b+e.length>this.maxFileSize){let e=new ir(this.maxFileSize);throw this.#y.error(e),e}this.#y.enqueue(e),this.#b+=e.length}#E(){this.#y.close(),this.#y=null}};var lr=class{#S;#k;#C;#O=!1;constructor(e,t){this.#S=e,this.#k=t}async arrayBuffer(){return(await this.bytes()).buffer}get body(){return this.#k}get bodyUsed(){return this.#O}async bytes(){if(this.#O)throw new Error("Body is already consumed or is being consumed");this.#O=!0;let e=[],t=0;for await(let i of er(this.#k))e.push(i),t+=i.length;let n=new Uint8Array(t),r=0;for(let i of e)n.set(i,r),r+=i.length;return n}get headers(){return this.#C||(this.#C=new Xn((new TextDecoder).decode(this.#S))),this.#C}get isFile(){return void 0!==this.filename||"application/octet-stream"===this.mediaType}get filename(){return this.headers.contentDisposition.preferredFilename}get mediaType(){return this.headers.contentType.mediaType}get name(){return this.headers.contentDisposition.name}async text(){return(new TextDecoder).decode(await this.bytes())}};var cr=n(74309),ur=n.n(cr),dr=n(80971);class fr extends rn{async streamQuery(e,t){var n;const r=!nn.f.readUserSettingsValue(en.RY,!0),i=ur().stringify({timeout:e.timeout,base64:r,schema:"multipart"},{encoder:encodeURIComponent}),o={...e,base64:r,schema:"multipart"},a=new Headers({Accept:"multipart/form-data","Content-Type":"application/json"});e.tracingLevel&&a.set("X-Trace-Verbosity",String(e.tracingLevel));nn.f.readUserSettingsValue(en.U0)&&a.set("X-Want-Trace","1");const s=await fetch(`${this.getPath("/viewer/query")}?${i}`,{method:"POST",signal:t.signal,headers:a,body:JSON.stringify(o)});if(!s.ok){const e=await s.json().catch((()=>({})));if((0,tn.uP)({status:s.status,data:e}))return void window.location.assign(e.authUrl);throw new Error(`${s.status}`)}if(!s.body)throw new Error("Empty response body");const l=null===(n=s.headers.get("traceresponse"))||void 0===n?void 0:n.split("-")[1];await or(s.body,{boundary:"boundary"},(async e=>{try{const n=JSON.parse(await e.text());if((0,dr.y6)(n)){n.meta.trace_id=l,t.onSessionChunk(n)}else(0,dr.uR)(n)?t.onStreamDataChunk(n):(0,dr.HH)(n)&&t.onQueryResponseChunk(n)}catch(n){throw new Error(`Error parsing chunk: ${n}`)}}))}}class pr extends rn{evictVDiskOld({groupId:e,groupGeneration:t,failRealmIdx:n,failDomainIdx:r,vDiskIdx:i}){return this.post(this.getPath("/tablets/app?TabletID=72057594037932033&exec=1"),{Command:{ReassignGroupDisk:{GroupId:e,GroupGeneration:t,FailRealmIdx:n,FailDomainIdx:r,VDiskIdx:i}}},{},{headers:{Accept:"application/json"}})}killTablet(e){return this.get(this.getPath(`/tablets?KillTabletID=${e}`),{},{requestConfig:{"axios-retry":{retries:0}}})}stopTablet(e,t){return this.get(this.getPath(`/tablets/app?TabletID=${t}&page=StopTablet&tablet=${e}`),{},{requestConfig:{"axios-retry":{retries:0}}})}resumeTablet(e,t){return this.get(this.getPath(`/tablets/app?TabletID=${t}&page=ResumeTablet&tablet=${e}`),{},{requestConfig:{"axios-retry":{retries:0}}})}getTabletFromHive({id:e,hiveId:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/tablets/app"),{TabletID:t,page:"TabletInfo",tablet:e},{concurrentId:n,requestConfig:{signal:r}})}}class hr extends rn{evictVDisk({groupId:e,groupGeneration:t,failRealmIdx:n,failDomainIdx:r,vDiskIdx:i,force:o}){return this.post(this.getPath("/vdisk/evict"),{},{group_id:e,group_generation_id:t,fail_realm_idx:n,fail_domain_idx:r,vdisk_idx:i,force:o},{requestConfig:{"axios-retry":{retries:0}}})}}class mr extends rn{getClusterCapabilities({database:e}){return this.get(this.getPath("/viewer/capabilities"),{database:e},{})}getClusterInfo(e,{concurrentId:t,signal:n}={}){return this.get(this.getPath("/viewer/json/cluster"),{name:e,tablets:!0},{concurrentId:t||"getClusterInfo",requestConfig:{signal:n}})}getNodeInfo(e,{concurrentId:t,signal:n}={}){return this.get(this.getPath("/viewer/json/sysinfo?enums=true"),{node_id:e},{concurrentId:t,requestConfig:{signal:n}})}getTenants(e,{concurrentId:t,signal:n}={}){return this.get(this.getPath("/viewer/json/tenantinfo"),{tablets:!1,storage:!0,cluster_name:e},{concurrentId:t,requestConfig:{signal:n}})}getTenantInfo({path:e,database:t=e},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/tenantinfo"),{database:t,path:e,tablets:!1,storage:!0,memory:!0},{concurrentId:n,requestConfig:{signal:r}})}getNodes({type:e="any",tablets:t=!1,database:n,tenant:r,fieldsRequired:i,filter:o,...a},{concurrentId:s,signal:l}={}){const c=Array.isArray(i)?this.prepareArrayRequestParam(i):i;return this.get(this.getPath("/viewer/json/nodes?enums=true"),{type:e,tablets:t,filter:o||void 0,database:n||r,tenant:r||n,fields_required:c,...a},{concurrentId:s,requestConfig:{signal:l}})}getTabletsInfo({nodeId:e,path:t,database:n},{concurrentId:r,signal:i}={}){return this.get(this.getPath("/viewer/json/tabletinfo"),{database:n,node_id:e,path:t,enums:!0},{concurrentId:r,requestConfig:{signal:i}})}getSchema({path:e,database:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/describe"),{database:t,path:e,enums:!0,backup:!1,private:!0,partition_config:!1,partition_stats:!1,partitioning_info:!1,subs:1},{concurrentId:n,requestConfig:{signal:r}})}getDescribe({path:e,database:t,timeout:n},{concurrentId:r,signal:i}={}){return this.get(this.getPath("/viewer/json/describe"),{database:t,path:e,enums:!0,partition_stats:!0,subs:0},{concurrentId:r||`getDescribe|${e}`,requestConfig:{signal:i},timeout:n})}getSchemaAcl({path:e,database:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/acl"),{database:t,path:e,merge_rules:!0},{concurrentId:n,requestConfig:{signal:r}})}getHeatmapData({path:e,database:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/describe"),{database:t,path:e,enums:!0,backup:!1,children:!1,partition_config:!1,partition_stats:!0},{concurrentId:n,requestConfig:{signal:r}})}getNetwork({path:e,database:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/netinfo"),{enums:!0,database:t,path:e},{concurrentId:n,requestConfig:{signal:r}})}getTopic({path:e,database:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/describe_topic"),{enums:!0,include_stats:!0,database:t,path:e},{concurrentId:n,requestConfig:{signal:r}})}getConsumer({path:e,consumer:t,database:n},{concurrentId:r,signal:i}={}){return this.get(this.getPath("/viewer/json/describe_consumer"),{enums:!0,include_stats:!0,database:n,path:e,consumer:t},{concurrentId:r||"getConsumer",requestConfig:{signal:i}})}getTablet({id:e,database:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/tabletinfo"),{enums:!0,database:t,filter:`(TabletId=${e})`},{concurrentId:n,requestConfig:{signal:r}})}getTabletHistory({id:e,database:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/tabletinfo"),{enums:!0,merge:!1,database:t,filter:`(TabletId=${e})`},{concurrentId:n,requestConfig:{signal:r}})}getNodesList({concurrentId:e,signal:t}={}){return this.get(this.getPath("/viewer/json/nodelist"),{enums:!0},{concurrentId:e,requestConfig:{signal:t}})}getTenantsList({concurrentId:e,signal:t}={}){return this.get(this.getPath("/viewer/json/tenants"),{enums:!0,state:0},{concurrentId:e,requestConfig:{signal:t}})}sendQuery(e,{concurrentId:t,signal:n,withRetries:r}={}){const i=!nn.f.readUserSettingsValue(en.RY,!0);return this.post(this.getPath("/viewer/json/query"),{...e,base64:i},{schema:"multi",base64:i,timeout:e.timeout},{concurrentId:t,timeout:e.timeout,requestConfig:{signal:n,"axios-retry":{retries:r?this.DEFAULT_RETRIES_COUNT:0}},headers:e.tracingLevel?{"X-Trace-Verbosity":e.tracingLevel}:void 0})}getHotKeys({path:e,database:t,enableSampling:n},{concurrentId:r,signal:i}={}){return this.get(this.getPath("/viewer/json/hotkeys"),{database:t,path:e,enable_sampling:n},{concurrentId:r||"getHotKeys",requestConfig:{signal:i}})}getTabletDescribe(e,{concurrentId:t,signal:n}={}){return this.get(this.getPath("/viewer/json/describe"),{schemeshard_id:null===e||void 0===e?void 0:e.SchemeShard,path_id:null===e||void 0===e?void 0:e.PathId},{concurrentId:t,requestConfig:{signal:n}})}getStorageInfo({tenant:e,database:t,nodeId:n,groupId:r,pDiskId:i,filter:o,...a},{concurrentId:s,signal:l}={}){return this.get(this.getPath("/viewer/json/storage?enums=true"),{database:t||e,tenant:e||t,node_id:n,group_id:r,pdisk_id:i,filter:o||void 0,...a},{concurrentId:s,requestConfig:{signal:l}})}getChartData({target:e,from:t,until:n,maxDataPoints:r,database:i},{concurrentId:o,signal:a}={}){const s=`${e}&from=${t}&until=${n}&maxDataPoints=${r}&format=json`;return this.post(this.getPath(`/viewer/json/render?database=${i}`),s,{},{concurrentId:o,headers:{"Content-Type":"application/x-www-form-urlencoded"},requestConfig:{signal:a}})}whoami({database:e}){return this.get(this.getPath("/viewer/json/whoami"),{database:e})}autocomplete(e){const{table:t,...n}=e,r=null===t||void 0===t?void 0:t.join(",");return this.get(this.getPath("/viewer/json/autocomplete"),{...n,table:r},{concurrentId:"sql-autocomplete"})}getClusterConfig(e,{concurrentId:t,signal:n}={}){return this.get(this.getPath("/viewer/feature_flags"),{database:e},{concurrentId:t,requestConfig:{signal:n}})}getVDiskInfo({vDiskSlotId:e,pDiskId:t,nodeId:n},{concurrentId:r,signal:i}={}){return this.get(this.getPath("/viewer/json/vdiskinfo?enums=true"),{node_id:n,filter:`(PDiskId=${t};VDiskSlotId=${e})`},{concurrentId:r,requestConfig:{signal:i}})}getNodeWhiteboardPDiskInfo({nodeId:e,pDiskId:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/pdiskinfo?enums=true"),{filter:`(NodeId=${e}${t?`;PDiskId=${t}`:""})`},{concurrentId:n,requestConfig:{signal:r}})}planToSvg({database:e,plan:t},{signal:n}={}){return this.post(this.getPath("/viewer/plan2svg"),t,{database:e},{requestConfig:{signal:n,responseType:"text",headers:{Accept:"image/svg+xml"}}})}getHealthcheckInfo({database:e,maxLevel:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/healthcheck?merge_records=true"),{database:e,tenant:e,max_level:t},{concurrentId:n,requestConfig:{signal:r}})}}class gr{constructor({config:e,webVersion:t}){this.auth=void 0,this.operation=void 0,this.pdisk=void 0,this.scheme=void 0,this.storage=void 0,this.streaming=void 0,this.tablets=void 0,this.vdisk=void 0,this.viewer=void 0,this.meta=void 0,this.codeAssist=void 0,this.auth=new on({config:e}),t&&(this.meta=new cn({config:e}),this.codeAssist=new sn({config:e})),this.operation=new un({config:e}),this.pdisk=new fn({config:e}),this.scheme=new pn({config:e}),this.storage=new hn({config:e}),this.streaming=new fr({config:e}),this.tablets=new pr({config:e}),this.vdisk=new hr({config:e}),this.viewer=new mr({config:e})}}function vr({webVersion:e=!1,withCredentials:t=!1}={}){return new gr({config:{withCredentials:t},webVersion:e})}},59001:(e,t,n)=>{"use strict";n.d(t,{c:()=>s,f:()=>l});var r=n(52531),i=n(76086),o=n(11822),a=n(41650);const s={[i.k4]:"system",[i.jS]:void 0,[i.TJ]:!1,[i.RY]:!0,[i.ld]:[],[i.Mt]:r.Dg.query,[i.zk]:o.x5.execute,[i.LQ]:!0,[i.bs]:[],[i.g5]:!1,[i.lr]:!1,[i.s2]:!0,[i.LK]:!0,[i.bz]:!0,[i.kO]:!1,[i.IO]:!0,[i.Gj]:!1,[i.av]:0,[i.iD]:!1,[i.Xm]:!1,[i.fr]:void 0,[i.YQ]:void 0,[i.c4]:o.jU};const l=new class{constructor(){this.extractSettingsFromLS=e=>Object.entries(e).reduce(((e,[t,n])=>(e[t]=this.readUserSettingsValue(t,n),e)),{}),this.readValueFromLS=e=>{try{const t=localStorage.getItem(e);return(0,a.qF)(t)}catch{return}},this.setValueToLS=(e,t)=>{try{"string"===typeof t?localStorage.setItem(e,t):localStorage.setItem(e,JSON.stringify(t))}catch{}}}readUserSettingsValue(e,t){var n;return null!==(n=this.readValueFromLS(e))&&void 0!==n?n:t}setUserSettingsValue(e,t){return this.setValueToLS(e,t)}}},54878:(e,t,n)=>{"use strict";n.d(t,{Hs:()=>O,P8:()=>N,SL:()=>T,p2:()=>L,U1:()=>F,In:()=>M,jC:()=>R});var r=n(97091),i=n(45264),o=n(19859),a=n(28197);const s=({href:e,singleClusterMode:t,customBackend:n})=>{if(t){if(n){var r;const t=null!==(r=new URL(e).searchParams.get("backend"))&&void 0!==r?r:void 0;return{basename:"/",backend:t||n}}{const e=window.location.pathname.match(/.*(?=\/monitoring)/)||[],t=e.length>0?e[0]:"";return{basename:[t,"monitoring"].filter(Boolean).join("/"),backend:t||""}}}{var i,o;const t=new URL(e).searchParams;return{basename:"/",backend:null!==(i=t.get("backend"))&&void 0!==i?i:void 0,clusterName:null!==(o=t.get("clusterName"))&&void 0!==o?o:void 0}}};var l=n(81463),c=n(21334),u=n(88610),d=n(49818),f=n(22735),p=n.n(f),h=n(96294),m=n.n(h),g=n(17148),v=n.n(g),y=n(74309),b=n.n(y),w=n(49526),x=n(93650),_=n(93694),E=n(92189),S=n(90565);const k={global:{problemFilter:{stateKey:"settings.problemFilter",initialState:u.ue.problemFilter}},"/tenant":{sort:{stateKey:"heatmap.sort",initialState:S.ue.sort,type:"bool"},heatmap:{stateKey:"heatmap.heatmap",initialState:S.ue.heatmap,type:"bool"},currentMetric:{stateKey:"heatmap.currentMetric",initialState:S.ue.currentMetric},tenantPage:{stateKey:"tenant.tenantPage"},queryTab:{stateKey:"tenant.queryTab"},diagnosticsTab:{stateKey:"tenant.diagnosticsTab"},summaryTab:{stateKey:"tenant.summaryTab"},metricsTab:{stateKey:"tenant.metricsTab"},shardsMode:{stateKey:"shardsWorkload.mode"},shardsDateFrom:{stateKey:"shardsWorkload.from"},shardsDateTo:{stateKey:"shardsWorkload.to"},topQueriesDateFrom:{stateKey:"executeTopQueries.from"},topQueriesDateTo:{stateKey:"executeTopQueries.to"},selectedConsumer:{stateKey:"partitions.selectedConsumer"}},"/cluster/tenants":{search:{stateKey:"tenants.searchValue"}}};function C(e,t){return v()({},e,t.query)}let O,N,T,A="";function I(e,t,n){const r=(0,E.stateToParams)(e,t,n);let{location:i}=r;if(i.search===A)return{location:n,shouldPush:!1};{const e=/\?\w+/;return A=i.search,e.test(n.search)&&(i=function(e,t){const{search:n,...r}=e,i=b().parse(t.search.slice(1)),o=(0,x.getMatchingDeclaredPath)(k,e),a=o&&k[o];p()(m()(a),(e=>{delete i[e]})),p()(m()(k.global||{}),(e=>{delete i[e]}));const s=b().stringify(i,{encoder:encodeURIComponent}),l=n.startsWith("?")?"&":"?";return{search:`${n}${l}${s}`,...r}}(i,n)),{...r,location:i}}}function D(e,t,n){return(r,i)=>{const o=((n,r)=>{const{type:i,payload:o}=r;if(!o)return n;if(w.LOCATION_POP===i||w.LOCATION_PUSH===i){const r=o;return r.query=(0,_.parseQuery)(e,o),t(n,r)}return n})(n(r,i),i);return o!==r?o:r}}function P(e,t,n,i){const{locationMiddleware:a,reducersWithLocation:s}=function(e,t){const{locationMiddleware:n}=(0,o.zx)(k,C,e,t,I);return{locationMiddleware:n,reducersWithLocation:D(k,C,t)}}(t,e),l=(0,r.U1)({reducer:s,preloadedState:n,middleware:e=>e({immutableCheck:{ignoredPaths:["tooltip.currentHoveredRef"]},serializableCheck:{ignoredPaths:["tooltip.currentHoveredRef","api"],ignoredActions:[d.oM,"api/sendQuery/rejected"]}}).concat(a,...i)});return(0,u.N8)(l),l}const R=window.web_version,j=window.custom_backend,M=window.meta_backend,L=window.code_assist_backend,z="undefined"===`${M}`;function F({aRootReducer:e=l.A,singleClusterMode:t=z,api:n=(0,a.x)({webVersion:R,withCredentials:!j})}={}){({backend:O,basename:N,clusterName:T}=s({href:window.location.href,singleClusterMode:t,customBackend:j}));const r=(0,i.zR)({basename:N}),u=P(e,r,{singleClusterMode:t},[c.F.middleware]);return(0,o.BL)(u,r),window.api=n,{history:r,store:u}}},58351:(e,t,n)=>{"use strict";n.d(t,{Hs:()=>r.Hs,In:()=>r.In,P8:()=>r.P8,SL:()=>r.SL,U1:()=>r.U1,d$:()=>i.d,jC:()=>r.jC,p2:()=>r.p2});var r=n(54878),i=n(81463)},21334:(e,t,n)=>{"use strict";n.d(t,{F:()=>_});var r=n(44992),i=n(97434),o=n(53850),a=n(96906),s=n(97091),l=n(59284);function c(e){return e.replace(e[0],e[0].toUpperCase())}function u(e,...t){return Object.assign(e,...t)}var d=WeakMap?new WeakMap:void 0,f=({endpointName:e,queryArgs:t})=>{let n="";const r=d?.get(t);if("string"===typeof r)n=r;else{const e=JSON.stringify(t,((e,t)=>(t="bigint"===typeof t?{$bigint:t.toString()}:t,t=(0,a.Qd)(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t)));(0,a.Qd)(t)&&d?.set(t,e),n=e}return`${e}(${n})`},p=Symbol();function h(e,t,n,r){const i=(0,l.useMemo)((()=>({queryArgs:e,serialized:"object"==typeof e?t({queryArgs:e,endpointDefinition:n,endpointName:r}):e})),[e,t,n,r]),o=(0,l.useRef)(i);return(0,l.useEffect)((()=>{o.current.serialized!==i.serialized&&(o.current=i)}),[i]),o.current.serialized===i.serialized?o.current.queryArgs:e}function m(e){const t=(0,l.useRef)(e);return(0,l.useEffect)((()=>{(0,i.bN)(t.current,e)||(t.current=e)}),[e]),(0,i.bN)(t.current,e)?t.current:e}var g=(()=>!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement))(),v=(()=>"undefined"!==typeof navigator&&"ReactNative"===navigator.product)(),y=(()=>g||v?l.useLayoutEffect:l.useEffect)(),b=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:void 0===e.data,status:r.RE.pending}:e;var w=Symbol();var x=(0,r.l0)((0,r.m7)(),(({batch:e=i.vA,hooks:t={useDispatch:i.wA,useSelector:i.d4,useStore:i.Pj},createSelector:n=o.Mz,unstable__sideEffectsInRender:a=!1,...d}={})=>({name:w,init(o,{serializeQueryArgs:d},g){const v=o,{buildQueryHooks:w,buildMutationHook:x,usePrefetch:_}=function({api:e,moduleOptions:{batch:t,hooks:{useDispatch:n,useSelector:o,useStore:a},unstable__sideEffectsInRender:c,createSelector:u},serializeQueryArgs:d,context:g}){const v=c?e=>e():l.useEffect;return{buildQueryHooks:function(c){const x=(t,{refetchOnReconnect:i,refetchOnFocus:o,refetchOnMountOrArgChange:a,skip:u=!1,pollingInterval:d=0,skipPollingIfUnfocused:p=!1}={})=>{const{initiate:y}=e.endpoints[c],b=n(),w=(0,l.useRef)(void 0);if(!w.current){const t=b(e.internalActions.internal_getRTKQSubscriptions());w.current=t}const x=h(u?r.hT:t,f,g.endpointDefinitions[c],c),_=m({refetchOnReconnect:i,refetchOnFocus:o,pollingInterval:d,skipPollingIfUnfocused:p}),E=(0,l.useRef)(!1),S=(0,l.useRef)(void 0);let{queryCacheKey:k,requestId:C}=S.current||{},O=!1;k&&C&&(O=w.current.isRequestSubscribed(k,C));const N=!O&&E.current;return v((()=>{E.current=O})),v((()=>{N&&(S.current=void 0)}),[N]),v((()=>{const e=S.current;if(x===r.hT)return e?.unsubscribe(),void(S.current=void 0);const t=S.current?.subscriptionOptions;if(e&&e.arg===x)_!==t&&e.updateSubscriptionOptions(_);else{e?.unsubscribe();const t=b(y(x,{subscriptionOptions:_,forceRefetch:a}));S.current=t}}),[b,y,a,x,_,N]),(0,l.useEffect)((()=>()=>{S.current?.unsubscribe(),S.current=void 0}),[]),(0,l.useMemo)((()=>({refetch:()=>{if(!S.current)throw new Error((0,s.gk)(38));return S.current?.refetch()}})),[])},_=({refetchOnReconnect:r,refetchOnFocus:i,pollingInterval:o=0,skipPollingIfUnfocused:a=!1}={})=>{const{initiate:s}=e.endpoints[c],u=n(),[d,f]=(0,l.useState)(p),h=(0,l.useRef)(void 0),g=m({refetchOnReconnect:r,refetchOnFocus:i,pollingInterval:o,skipPollingIfUnfocused:a});v((()=>{const e=h.current?.subscriptionOptions;g!==e&&h.current?.updateSubscriptionOptions(g)}),[g]);const y=(0,l.useRef)(g);v((()=>{y.current=g}),[g]);const b=(0,l.useCallback)((function(e,n=!1){let r;return t((()=>{h.current?.unsubscribe(),h.current=r=u(s(e,{subscriptionOptions:y.current,forceRefetch:!n})),f(e)})),r}),[u,s]),w=(0,l.useCallback)((()=>{h.current?.queryCacheKey&&u(e.internalActions.removeQueryResult({queryCacheKey:h.current?.queryCacheKey}))}),[u]);return(0,l.useEffect)((()=>()=>{h?.current?.unsubscribe()}),[]),(0,l.useEffect)((()=>{d===p||h.current||b(d,!0)}),[d,b]),(0,l.useMemo)((()=>[b,d,{reset:w}]),[b,d,w])},E=(t,{skip:n=!1,selectFromResult:s}={})=>{const{select:f}=e.endpoints[c],p=h(n?r.hT:t,d,g.endpointDefinitions[c],c),m=(0,l.useRef)(void 0),v=(0,l.useMemo)((()=>u([f(p),(e,t)=>t,e=>p],w,{memoizeOptions:{resultEqualityCheck:i.bN}})),[f,p]),b=(0,l.useMemo)((()=>s?u([v],s,{devModeChecks:{identityFunctionCheck:"never"}}):v),[v,s]),x=o((e=>b(e,m.current)),i.bN),_=a(),E=v(_.getState(),m.current);return y((()=>{m.current=E}),[E]),x};return{useQueryState:E,useQuerySubscription:x,useLazyQuerySubscription:_,useLazyQuery(e){const[t,n,{reset:r}]=_(e),i=E(n,{...e,skip:n===p}),o=(0,l.useMemo)((()=>({lastArg:n})),[n]);return(0,l.useMemo)((()=>[t,{...i,reset:r},o]),[t,i,r,o])},useQuery(e,t){const n=x(e,t),i=E(e,{selectFromResult:e===r.hT||t?.skip?void 0:b,...t}),{data:o,status:a,isLoading:s,isSuccess:c,isError:u,error:d}=i;return(0,l.useDebugValue)({data:o,status:a,isLoading:s,isSuccess:c,isError:u,error:d}),(0,l.useMemo)((()=>({...i,...n})),[i,n])}}},buildMutationHook:function(r){return({selectFromResult:a,fixedCacheKey:s}={})=>{const{select:c,initiate:d}=e.endpoints[r],f=n(),[p,h]=(0,l.useState)();(0,l.useEffect)((()=>()=>{p?.arg.fixedCacheKey||p?.reset()}),[p]);const m=(0,l.useCallback)((function(e){const t=f(d(e,{fixedCacheKey:s}));return h(t),t}),[f,d,s]),{requestId:g}=p||{},v=(0,l.useMemo)((()=>c({fixedCacheKey:s,requestId:p?.requestId})),[s,p,c]),y=(0,l.useMemo)((()=>a?u([v],a):v),[a,v]),b=o(y,i.bN),w=null==s?p?.arg.originalArgs:void 0,x=(0,l.useCallback)((()=>{t((()=>{p&&h(void 0),s&&f(e.internalActions.removeMutationResult({requestId:g,fixedCacheKey:s}))}))}),[f,s,p,g]),{endpointName:_,data:E,status:S,isLoading:k,isSuccess:C,isError:O,error:N}=b;(0,l.useDebugValue)({endpointName:_,data:E,status:S,isLoading:k,isSuccess:C,isError:O,error:N});const T=(0,l.useMemo)((()=>({...b,originalArgs:w,reset:x})),[b,w,x]);return(0,l.useMemo)((()=>[m,T]),[m,T])}},usePrefetch:function(t,r){const i=n(),o=m(r);return(0,l.useCallback)(((n,r)=>i(e.util.prefetch(t,n,{...o,...r}))),[t,i,o])}};function w(e,t,n){if(t?.endpointName&&e.isUninitialized){const{endpointName:e}=t,i=g.endpointDefinitions[e];n!==r.hT&&d({queryArgs:t.originalArgs,endpointDefinition:i,endpointName:e})===d({queryArgs:n,endpointDefinition:i,endpointName:e})&&(t=void 0)}let i=e.isSuccess?e.data:t?.data;void 0===i&&(i=e.data);const o=void 0!==i,a=e.isLoading,s=(!t||t.isLoading||t.isUninitialized)&&!o&&a,l=e.isSuccess||o&&(a&&!t?.isError||e.isUninitialized);return{...e,data:i,currentData:e.data,isFetching:a,isLoading:s,isSuccess:l}}}({api:o,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:a,createSelector:n},serializeQueryArgs:d,context:g});return u(v,{usePrefetch:_}),u(g,{batch:e}),{injectEndpoint(e,t){if("query"===t.type){const{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:i,useQuerySubscription:a}=w(e);u(v.endpoints[e],{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:i,useQuerySubscription:a}),o[`use${c(e)}Query`]=t,o[`useLazy${c(e)}Query`]=n}else if(function(e){return"mutation"===e.type}(t)){const t=x(e);u(v.endpoints[e],{useMutation:t}),o[`use${c(e)}Mutation`]=t}}}}}))());const _=x({baseQuery:function(){throw new Error("When using `fakeBaseQuery`, all queries & mutations must use the `queryFn` definition syntax.")},endpoints:()=>({}),invalidationBehavior:"immediately",tagTypes:["All","PDiskData","PreviewData","SchemaTree","StorageData","Tablet","UserData","VDiskData"]});Symbol()},78668:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,D_:()=>f,_5:()=>u,mB:()=>d});var r=n(97091),i=n(81288),o=n(21334);const a=(0,r.Z0)({name:"authentication",initialState:{isAuthenticated:!0,user:""},reducers:{setIsAuthenticated:(e,t)=>{const n=t.payload;e.isAuthenticated=n,n||(e.user="")},setUser:(e,t)=>{const{UserSID:n,AuthType:r,IsMonitoringAllowed:i}=t.payload;e.user="Login"===r?n:void 0,e.isUserAllowedToMakeChanges=!1!==i}},selectors:{selectIsUserAllowedToMakeChanges:e=>e.isUserAllowedToMakeChanges,selectUser:e=>e.user}}),s=a.reducer,{setIsAuthenticated:l,setUser:c}=a.actions,{selectIsUserAllowedToMakeChanges:u,selectUser:d}=a.selectors,f=o.F.injectEndpoints({endpoints:e=>({whoami:e.query({queryFn:async({database:e},{dispatch:t})=>{try{const n=await window.api.viewer.whoami({database:e});return t(c(n)),{data:n}}catch(r){var n;return!(0,i.qP)(r)||401!==r.status||null!==(n=r.data)&&void 0!==n&&n.authUrl||t(l(!1)),{error:r}}},providesTags:["UserData"]}),authenticate:e.mutation({queryFn:async(e,{dispatch:t})=>{try{const n=await window.api.auth.authenticate(e);return t(l(!0)),{data:n}}catch(n){return{error:n}}},invalidatesTags:(e,t)=>t?[]:["UserData"]}),logout:e.mutation({queryFn:async(e,{dispatch:t})=>{try{const e=await window.api.auth.logout();return t(l(!1)),{data:e}}catch(n){return{error:n}}}})}),overrideExisting:"throw"})},68712:(e,t,n)=>{"use strict";n.d(t,{FC:()=>c,Ox:()=>a,RE:()=>i,TL:()=>l,p2:()=>s});var r=n(53850);const i=n(21334).F.injectEndpoints({endpoints:e=>({getClusterCapabilities:e.query({queryFn:async e=>{try{return{data:await window.api.viewer.getClusterCapabilities(e)}}catch(t){return{error:t}}}})}),overrideExisting:"throw"}),o=(0,r.Mz)((e=>e),(e=>i.endpoints.getClusterCapabilities.select({database:e}))),a=(0,r.Mz)((e=>e),((e,t)=>o(t)),((e,t)=>t(e))),s=(0,r.Mz)((e=>e),((e,t)=>t),((e,t,n)=>n),((e,t,n)=>{var r,i;return null===(r=a(e,n).data)||void 0===r||null===(i=r.Capabilities)||void 0===i?void 0:i[t]})),l=(0,r.Mz)((e=>e),((e,t)=>t),((e,t,n)=>n),((e,t,n)=>{var r,i,o;return null===(r=a(e,n).data)||void 0===r||null===(i=r.Settings)||void 0===i||null===(o=i.Security)||void 0===o?void 0:o[t]}));async function c(e,t,{dispatch:n,getState:r}){const o=i.util.getRunningQueryThunk("getClusterCapabilities",{database:t});return await n(o),s(r(),e,t)||0}},67028:(e,t,n)=>{"use strict";n.d(t,{DM:()=>m,Ii:()=>c,Oi:()=>d,Pm:()=>s,SA:()=>p,S_:()=>_,WF:()=>g,YA:()=>f,Ye:()=>h,_Q:()=>v,c2:()=>u,e5:()=>a,fp:()=>y,j2:()=>b,li:()=>x});var r=n(90182),i=n(28232),o=n(68712);function a(){const e=(0,i.J)();o.RE.useGetClusterCapabilitiesQuery({database:e})}function s(){const e=(0,i.J)(),{data:t,error:n}=(0,r.N4)((t=>(0,o.Ox)(t,e)));return Boolean(t||n)}const l=e=>{const t=(0,i.J)();return(0,r.N4)((n=>(0,o.p2)(n,e,t)||0))},c=()=>l("/scheme/directory")>0,u=()=>l("/pdisk/info")>0,d=()=>l("/viewer/query")>2,f=()=>l("/storage/groups")>2,p=()=>l("/storage/groups")>4,h=()=>l("/viewer/nodes")>6,m=()=>l("/viewer/nodes")>11,g=()=>l("/viewer/nodes")>13,v=()=>l("/viewer/feature_flags")>1,y=()=>l("/viewer/cluster")>4,b=()=>l("/viewer/query")>=7,w=e=>{const t=(0,i.J)();return(0,r.N4)((n=>(0,o.TL)(n,e,t)))},x=()=>!1===w("UseLoginProvider"),_=()=>!1===w("DomainLoginOnly")},67157:(e,t,n)=>{"use strict";n.d(t,{Zh:()=>S,Ay:()=>E,ds:()=>T,zR:()=>N,Yv:()=>_,Zd:()=>k});var r=n(97091),i=n(53850),o=n(44992),a=n(67087),s=n(87842),l=n(370);const c=l.z.object({url:l.z.string().url()});function u({traceView:e}){try{return{traceView:e?c.parse(JSON.parse(e)):void 0}}catch(t){console.error("Error parsing trace fields:",t)}return{}}var d=n(98730),f=n(76086),p=n(11822),h=n(21334),m=n(24600);function g(e){const t={};return null===e||void 0===e||e.forEach((e=>{const{PDiskFilter:n,ErasureSpecies:r,CurrentAvailableSize:i,CurrentAllocatedSize:o,CurrentGroupsCreated:a,AvailableGroupsToCreate:s}=e,l=Number(a)||0,c=l+(Number(s)||0),u=Number(o)||0,d=Number(i)||0,f=n&&"string"===typeof n&&(e=>{var t,n;const r=null===(t=e.match(/^Type:(?<type>[A-Za-z]+)/))||void 0===t||null===(n=t.groups)||void 0===n?void 0:n.type;return"ROT"===r?"HDD":r})(n);if(f&&r&&"string"===typeof r&&l){const e={diskType:f,erasure:r,createdGroups:l,totalGroups:c,allocatedSize:u,availableSize:d};if(t[f])if(t[f][r]){const e={...t[f][r]};t[f][r]={diskType:f,erasure:r,createdGroups:e.createdGroups+l,totalGroups:e.totalGroups+c,allocatedSize:e.allocatedSize+u,availableSize:e.availableSize+d}}else t[f][r]=e;else t[f]={[r]:e}}})),t}const v=e=>{var t,n;return g(null===(t=(0,p.fW)(e).resultSets)||void 0===t||null===(n=t[0])||void 0===n?void 0:n.result)};const y=localStorage.getItem(f.fY);let b;b=(0,s.eC)(y)?y:s.Bi.overview;const w={defaultClusterTab:b},x=(0,r.Z0)({name:"cluster",initialState:w,reducers:{setDefaultClusterTab(e,t){e.defaultClusterTab=t.payload}}});function _(e){return t=>{(0,s.eC)(e)&&(localStorage.setItem(f.fY,e),t(x.actions.setDefaultClusterTab(e)))}}const E=x.reducer,S=h.F.injectEndpoints({endpoints:e=>({getClusterInfo:e.query({queryFn:async(e,{signal:t})=>{try{const r=await window.api.viewer.getClusterInfo(e,{signal:t}),i=r.Domain;if(!i)return{data:{clusterData:r}};if((0,d.L)(r))return{data:{clusterData:r,groupsStats:(n=r,g(n.StorageStats))}};try{const e=(e=>`\nSELECT \n PDiskFilter,\n ErasureSpecies,\n CurrentAvailableSize,\n CurrentAllocatedSize,\n CurrentGroupsCreated,\n AvailableGroupsToCreate\n FROM \`${e}/.sys/ds_storage_stats\`\n ORDER BY CurrentGroupsCreated DESC;\n`)(i),t=await window.api.viewer.sendQuery({query:e,database:i,action:"execute-scan"});return(0,p.We)(t)?{data:{clusterData:r}}:{data:{clusterData:r,groupsStats:v(t)}}}catch{return{data:{clusterData:r}}}}catch(r){return{error:r}}var n},providesTags:["All"]}),getClusterBaseInfo:e.query({queryFn:async(e,{signal:t})=>{try{if(!window.api.meta)throw new Error("Method is not implemented.");return{data:await window.api.meta.getClusterBaseInfo(e,{signal:t})}}catch(n){return{error:n}}},providesTags:["All"]})}),overrideExisting:"throw"});function k(){var e;const[t]=(0,a.useQueryParam)("clusterName",a.StringParam),{currentData:n}=S.useGetClusterBaseInfoQuery(null!==t&&void 0!==t?t:o.hT),{solomon:r,name:i,trace_view:s,...l}=n||{};return{...l,...u({traceView:s}),name:null!==(e=null!==i&&void 0!==i?i:t)&&void 0!==e?e:void 0,monitoring:r}}const C=(0,i.Mz)((e=>e),(e=>S.endpoints.getClusterInfo.select(e))),O=(0,i.Mz)((e=>e),((e,t)=>C(t)),((e,t)=>t(e).data)),N=(0,i.Mz)(((e,t)=>t),((e,t)=>O(e,t)),((e,t)=>{var n;return e||function(e){if(!e)return;return(e.startsWith("/")?e.slice(1):e).toUpperCase()}(null===t||void 0===t||null===(n=t.clusterData)||void 0===n?void 0:n.Domain)||f.QM})),T=(0,i.Mz)(((e,t)=>O(e,t)),(e=>(0,m.K)(e)),((e,t)=>{var n;const r=null===e||void 0===e||null===(n=e.clusterData)||void 0===n?void 0:n.SystemTablets;return r?t?r.map((e=>{var n;const r=void 0===e.NodeId||null===(n=t.get(e.NodeId))||void 0===n?void 0:n.Host;return{...e,fqdn:r}})):r:[]}))},39567:(e,t,n)=>{"use strict";n.d(t,{Fe:()=>c,ub:()=>u,Ay:()=>l});var r=n(97091),i=n(21334),o=n(40537);const a=e=>{const{clusters:t=[]}=e;let n=new Map;t.forEach((({versions:e=[]})=>{n=(0,o.HD)(e,n)}));const r=(0,o.Vm)(n);return t.map((e=>({...e,preparedVersions:(0,o.NN)(e.versions,r)})))},s=(0,r.Z0)({name:"clusters",initialState:{clusterName:"",status:[],service:[],version:[]},reducers:{changeClustersFilters:(e,t)=>({...e,...t.payload})}}),l=s.reducer,{changeClustersFilters:c}=s.actions,u=i.F.injectEndpoints({endpoints:e=>({getClustersList:e.query({queryFn:async(e,{signal:t})=>{try{if(window.api.meta){const e=await window.api.meta.getClustersList(void 0,{signal:t});return{data:a(e)}}throw new Error("Method is not implemented.")}catch(n){return{error:n}}},providesTags:["All"]})}),overrideExisting:"throw"})},69053:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>h,TX:()=>p,Ke:()=>g});var r=n(14750),i=n(97091),o=n(959),a=n(11822),s=n(21334);const l="EndTime",c="IntervalEnd";function u(e,t){var n,i;const o=[],a=null===(n=(0,r.bQ)(Number(null===t||void 0===t?void 0:t.to)||(null===t||void 0===t?void 0:t.to)))||void 0===n?void 0:n.valueOf(),s=null===(i=(0,r.bQ)(Number(null===t||void 0===t?void 0:t.from)||(null===t||void 0===t?void 0:t.from)))||void 0===i?void 0:i.valueOf();if(s&&a&&s>a)throw new Error("Invalid date range");if(s){const e=a===s?">=":">";o.push(`${l} ${e} Timestamp('${new Date(s).toISOString()}')`)}return a&&o.push(`${l} <= Timestamp('${new Date(a).toISOString()}')`),s||a||o.push(`${c} IN ${(e=>`(\n SELECT\n MAX(${c})\n FROM \`${e}/.sys/top_queries_by_cpu_time_one_hour\`\n)`)(e)}`),null!==t&&void 0!==t&&t.text&&o.push(`(QueryText ILIKE '%${t.text}%' OR UserSID ILIKE '%${t.text}%')`),o.join(" AND ")}const d="/*UI-QUERY-EXCLUDE*/",f=(0,i.Z0)({name:"executeTopQueries",initialState:{},reducers:{setTopQueriesFilters:(e,t)=>({...e,...t.payload})}}),{setTopQueriesFilters:p}=f.actions,h=f.reducer,m=(e,t,n)=>{const r=u(e,t),i=(0,o.JD)(n);return`\nSELECT ${d}\n CPUTime as CPUTimeUs,\n QueryText,\n IntervalEnd,\n EndTime,\n ReadRows,\n ReadBytes,\n UserSID,\n Duration\nFROM \`${e}/.sys/top_queries_by_cpu_time_one_hour\`\nWHERE ${r||"true"} AND QueryText NOT LIKE '%${d}%'\n${i}\nLIMIT 100\n`},g=s.F.injectEndpoints({endpoints:e=>({getTopQueries:e.query({queryFn:async({database:e,filters:t,sortOrder:n},{signal:r})=>{const i={...t,from:(null===t||void 0===t?void 0:t.from)||"now-1h",to:(null===t||void 0===t?void 0:t.to)||"now"};try{const t=await window.api.viewer.sendQuery({query:m(e,i,n),database:e,action:"execute-scan"},{signal:r,withRetries:!0});if((0,a.We)(t))throw t;return{data:(0,a.fW)(t)}}catch(o){return{error:o}}},forceRefetch:({currentArg:e})=>{var t,n,i,o;return!(null!==e&&void 0!==e&&null!==(t=e.filters)&&void 0!==t&&t.from&&null!==e&&void 0!==e&&null!==(n=e.filters)&&void 0!==n&&n.to&&!(0,r.eP)(null===e||void 0===e||null===(i=e.filters)||void 0===i?void 0:i.from)&&!(0,r.eP)(null===e||void 0===e||null===(o=e.filters)||void 0===o?void 0:o.to))},providesTags:["All"]}),getRunningQueries:e.query({queryFn:async({database:e,filters:t,sortOrder:n},{signal:r})=>{try{const i=null!==t&&void 0!==t&&t.text?`Query ILIKE '%${t.text}%' OR UserSID ILIKE '%${t.text}%'`:"",s=(0,o.JD)(n),l=`SELECT ${d}\n UserSID, QueryStartAt, Query as QueryText, ApplicationName\n FROM\n \`.sys/query_sessions\`\n WHERE\n ${i||"true"} AND Query NOT LIKE '%${d}%'\n ${s}\n LIMIT 100`,c=await window.api.viewer.sendQuery({query:l,database:e,action:"execute-scan"},{signal:r,withRetries:!0});if((0,a.We)(c))throw c;return{data:(0,a.fW)(c)}}catch(i){return{error:i}}},forceRefetch:()=>!0,providesTags:["All"]})}),overrideExisting:"throw"})},72976:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,Jf:()=>o,sM:()=>a});const r="ENABLE_FULLSCREEN_MODE",i="DISABLE_FULLSCREEN_MODE";function o(){return{type:r}}function a(){return{type:i}}const s=function(e=false,t){switch(t.type){case i:return!1;case r:return!0;default:return e}}},40174:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,g:()=>o});const r="header/SET_HEADER_BREADCRUMBS",i={pageBreadcrumbsOptions:{}};function o(e,t){return{type:r,page:e,options:t}}const a=(e=i,t)=>t.type===r?{page:t.page,pageBreadcrumbsOptions:t.options}:e},90565:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,f1:()=>c,nd:()=>l,ue:()=>o});var r=n(97091),i=n(21334);const o={currentMetric:void 0,sort:!1,heatmap:!1},a=(0,r.Z0)({name:"heatmap",initialState:o,reducers:{setHeatmapOptions:(e,t)=>({...e,...t.payload})}}),s=a.reducer,{setHeatmapOptions:l}=a.actions,c=i.F.injectEndpoints({endpoints:e=>({getHeatmapTabletsInfo:e.query({queryFn:async({path:e,database:t},{signal:n,getState:r,dispatch:i})=>{try{var o;const a=function([e,t]){const{TabletStateInfo:n=[]}=e,r=new Map,{PathDescription:i={}}=null!==t&&void 0!==t?t:{},{TablePartitions:o=[],TablePartitionStats:a=[],TablePartitionMetrics:s=[]}=i;n.forEach((e=>{e.TabletId&&r.set(e.TabletId,e)})),o.forEach(((e,t)=>{const n=Object.assign({},a[t],s[t]);e.DatashardId&&r.set(e.DatashardId,{...r.get(e.DatashardId),metrics:n})}));const l=Array.from(r.values()),c=l[0]&&l[0].metrics&&Object.keys(l[0].metrics).map((e=>({value:e,content:e})));return{tablets:l,metrics:c}}(await Promise.all([window.api.viewer.getTabletsInfo({path:e,database:t},{signal:n}),window.api.viewer.getHeatmapData({path:e,database:t},{signal:n})]));if(null!==(o=a.metrics)&&void 0!==o&&o.length){const e=r().heatmap.currentMetric;e&&a.metrics.find((t=>t.value===e))||i(l({currentMetric:a.metrics[0].value}))}return{data:a}}catch(a){return{error:a}}},providesTags:["All"]})}),overrideExisting:"throw"})},81463:(e,t,n)=>{"use strict";n.d(t,{A:()=>E,d:()=>_});var r=n(96906),i=n(21334),o=n(78668),a=n(67157),s=n(39567),l=n(69053),c=n(72976),u=n(40174),d=n(90565),f=n(47058),p=n(73289),h=n(36894),m=n(29078),g=n(88610),v=n(46496);const y=function(e=!0){return e};var b=n(18517),w=n(56674),x=n(49818);const _={[i.F.reducerPath]:i.F.reducer,singleClusterMode:y,cluster:a.Ay,tenant:b.Ay,tooltip:x.Ay,schema:m.Ay,tenants:w.Ay,partitions:f.Ay,query:p.Ay,heatmap:d.Ay,settings:g.Ay,executeTopQueries:l.Ay,shardsWorkload:v.Ay,authentication:o.Ay,header:u.A,queryActions:h.Ay,fullscreen:c.Ay,clusters:s.Ay},E=(0,r.HY)({..._})},24600:(e,t,n)=>{"use strict";n.d(t,{K:()=>s,m:()=>o});var r=n(53850),i=n(78034);const o=n(21334).F.injectEndpoints({endpoints:e=>({getNodesList:e.query({queryFn:async(e,{signal:t})=>{try{return{data:await window.api.viewer.getNodesList({signal:t})}}catch(n){return{error:n}}}})}),overrideExisting:"throw"}),a=o.endpoints.getNodesList.select(void 0),s=(0,r.Mz)((e=>a(e).data),(e=>(0,i.nN)(e)))},47058:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>d,aD:()=>f,WD:()=>u});var r=n(97091),i=n(21334),o=n(46549),a=n(73891),s=n(41650);const l=e=>{const{partition_offsets:t,store_size_bytes:n="0",last_write_time:r,max_write_time_lag:i,bytes_written:s,partition_node_id:l=0}=e||{},{start:c="0",end:u="0"}=t||{};return{storeSize:n,writeSpeed:(0,o.ey)(s),partitionWriteLag:(0,a.i6)(i),partitionWriteIdleTime:(0,a.MC)(r),startOffset:c,endOffset:u,partitionNodeId:l}},c=(0,r.Z0)({name:"partitions",initialState:{},reducers:{setSelectedConsumer:(e,t)=>{e.selectedConsumer=t.payload}}}),{setSelectedConsumer:u}=c.actions,d=c.reducer,f=i.F.injectEndpoints({endpoints:e=>({getPartitions:e.query({queryFn:async({path:e,database:t,consumerName:n},{signal:r})=>{try{if(n){const i=await window.api.viewer.getConsumer({path:e,database:t,consumer:n},{signal:r}),c=(e=>null===e||void 0===e?void 0:e.map((e=>{const{partition_id:t="0",partition_stats:n,partition_consumer_stats:r}=e,i=l(n),{endOffset:c}=i,{last_read_offset:u="0",committed_offset:d="0",read_session_id:f,last_read_time:p,max_read_time_lag:h,max_write_time_lag:m,bytes_read:g,reader_name:v,connection_node_id:y=0}=r||{},b=(0,s.kf)(c)&&(0,s.kf)(d)?Number(c)-Number(d):0,w=(0,s.kf)(c)&&(0,s.kf)(u)?Number(c)-Number(u):0;return{...i,partitionId:t,readSpeed:(0,o.ey)(g),consumerWriteLag:(0,a.i6)(m),consumerReadLag:(0,a.i6)(h),consumerReadIdleTime:(0,a.MC)(p),uncommitedMessages:b,unreadMessages:w,commitedOffset:d,readSessionId:f,readerName:v,connectionNodeId:y}})))(i.partitions);return{data:c}}{const n=await window.api.viewer.getTopic({path:e,database:t},{signal:r}),i=(e=>null===e||void 0===e?void 0:e.map((e=>{const{partition_id:t="0",partition_stats:n}=e;return{partitionId:t,...l(n)}})))(n.partitions);return{data:i}}}catch(i){return{error:i}}},providesTags:["All"]})}),overrideExisting:"throw"})},73289:(e,t,n)=>{"use strict";n.d(t,{iZ:()=>S,Ay:()=>E,tS:()=>T,JK:()=>N,JO:()=>U,nO:()=>C,py:()=>L,Kz:()=>M,jY:()=>j,wf:()=>F,yJ:()=>z,Wp:()=>B,Ni:()=>I,Id:()=>A});var r=n(97091),i=n(59001),o=n(11822);const a={[o.PB.off]:0,[o.PB.toplevel]:4,[o.PB.basic]:9,[o.PB.detailed]:13,[o.PB.diagnostic]:14,[o.PB.trace]:15};var s=n(76086),l=n(41650),c=n(21334);const u=new Set(["PlanNodeId","PlanNodeType","Node Type","Plans"]);function d(e){const t=[];if(e.Operators){const n=[];for(const t of e.Operators){const e={name:t.Name,items:[]};for(const[n,r]of Object.entries(t)){if("Name"===n)continue;const t="string"===typeof r?r:JSON.stringify(r);e.items.push({name:n,value:t})}n.push(e)}t.push({group:"Operators",stats:n})}if("Connection"===e.PlanNodeType){const n=[];for(const[t,r]of Object.entries(e))u.has(t)||n.push({name:t,value:"string"===typeof r?r:JSON.stringify(r)});n.length>0&&t.push({group:"Attributes",stats:n})}if(e.Stats){const n=[];for(const[t,r]of Object.entries(e.Stats))n.push({name:t,value:"string"===typeof r?r:JSON.stringify(r)});t.push({group:"Stats",stats:n})}return t}function f(e){switch(e.PlanNodeType){case"Connection":return"connection";case"ResultSet":return"result";case"Query":return"query";default:return"stage"}}function p(e){const t=[],n=[];const r=e,i={name:String(r.PlanNodeId),data:{id:r.PlanNodeId,type:f(r),name:r["Node Type"]}};return t.push(i),function e(r=[],i){r.forEach((r=>{var o;const a={name:String(r.PlanNodeId),data:{id:r.PlanNodeId,type:f(r),name:r["Node Type"],operators:null===(o=r.Operators)||void 0===o?void 0:o.map((e=>e.Name)),stats:d(r),tables:r.Tables}};t.push(a),n.push({from:i,to:a.name}),e(r.Plans,a.name)}))}(r.Plans,i.name),{nodes:t,links:n}}const h=Object.values({v2:"0.2"});function m(e,t){var n,r,i;if(e){const{tables:t,meta:n,Plan:r,SimplifiedPlan:i}=(0,o.UF)(e);if(-1===h.indexOf(n.version))return{pristine:e,version:n.version};let a,s=[],l=[];if(r){const e=p(r);s=e.links,l=e.nodes}return i&&(a=function(e){const t=[],n=e.map((e=>({node:e})));for(;n.length>0;){var r;const{node:e,subNodes:i}=n.pop(),o=e.Plans,a=null===(r=e.Operators)||void 0===r?void 0:r[0],s=i||t;if(a){const{"A-Cpu":e,"A-Rows":t,"E-Cost":r,"E-Rows":i,"E-Size":l,SsaProgram:c,Name:u,...d}=a,f={name:u,operationParams:d,aCpu:e,aRows:t,eCost:r,eRows:i,eSize:l,children:[]};if(s.push(f),o)for(let a=o.length-1;a>=0;a--)n.push({node:o[a],subNodes:f.children})}else if(o)for(let t=o.length-1;t>=0;t--)n.push({node:o[t],subNodes:s})}return t}([i])),{links:s,nodes:l,tables:t,version:n.version,pristine:e,simplifiedPlan:i?{plan:a,pristine:i}:void 0}}const a=null===t||void 0===t||null===(n=t.Executions)||void 0===n||null===(r=n[0])||void 0===r||null===(i=r.TxPlansWithStats)||void 0===i?void 0:i[0];if(a)try{const e=JSON.parse(a);return{...p(e),pristine:e}}catch{return{}}return{}}function g(e){const t=(0,o.fW)(e),{plan:n,stats:r}=t,{simplifiedPlan:i,...a}=m(n,r);return{...t,preparedPlan:Object.keys(a).length>0?a:void 0,simplifiedPlan:i}}const v=(e,t)=>{const n=Date.now();if(e.recentChunks.push({timestamp:n,rowCount:t}),e.recentChunks=e.recentChunks.filter((e=>n-e.timestamp<=5e3)),e.recentChunks.length>0){const t=e.recentChunks[0].timestamp,r=(n-t)/1e3,i=e.recentChunks.reduce(((e,t)=>e+t.rowCount),0);e.rowsPerSecond=r>0?i/r:0}e.lastUpdateTime=n};var y=n(80971);const b=i.f.readUserSettingsValue(s.MB,[]),w=b.length-20,x={input:"",history:{queries:b.slice(w<0?0:w).map(y.QG),currentIndex:b.length>20?19:b.length-1,filter:""}},_=(0,r.Z0)({name:"query",initialState:x,reducers:{changeUserInput:(e,t)=>{e.input=t.payload.input},setQueryResult:(e,t)=>{e.result=t.payload},saveQueryToHistory:(e,t)=>{const{queryText:n,queryId:r}=t.payload,o=[...e.history.queries,{queryText:n,queryId:r}].slice(e.history.queries.length>=20?1:0);i.f.setUserSettingsValue(s.MB,o);const a=o.length-1;e.history={queries:o,currentIndex:a}},updateQueryInHistory:(e,t)=>{const{queryId:n,stats:r}=t.payload;if(!r)return;const o=e.history.queries.findIndex((e=>e.queryId===n));if(-1===o)return;const a=[...e.history.queries],{durationUs:l,endTime:c}=r;a.splice(o,1,{...e.history.queries[o],durationUs:l,endTime:c}),i.f.setUserSettingsValue(s.MB,a),e.history.queries=a},goToPreviousQuery:e=>{const t=e.history.currentIndex;if(t<=0)return;const n=t-1,r=e.history.queries[n];e.input=r.queryText,e.history.currentIndex=n},goToNextQuery:e=>{const t=e.history.currentIndex;if(t>=e.history.queries.length-1)return;const n=t+1,r=e.history.queries[n];e.input=r.queryText,e.history.currentIndex=n},setTenantPath:(e,t)=>{e.tenantPath=t.payload},setQueryHistoryFilter:(e,t)=>{e.history.filter=t.payload},setStreamSession:(e,t)=>{if(!e.result)return;e.result.data||(e.result.data=g(null));const n=t.payload;e.result.isLoading=!0,e.result.queryId=n.meta.query_id,e.result.data.traceId=n.meta.trace_id},addStreamingChunks:(e,t)=>{if(!e.result)return;e.result.data=e.result.data||g(null),e.result.data.resultSets=e.result.data.resultSets||[];const n=t.payload.reduce(((e,t)=>{const n=t.meta.result_index,r=e.get(n);var i;r?(null===(i=r.result.rows)||void 0===i||i.push(...t.result.rows||[]),r.result.truncated=r.result.truncated||t.result.truncated):e.set(n,{...t,result:{...t.result,rows:t.result.rows||[],truncated:t.result.truncated}});return e}),new Map),r=t.payload.reduce(((e,t)=>{var n;return e+((null===(n=t.result.rows)||void 0===n?void 0:n.length)||0)}),0);for(const[a,s]of n.entries()){var i;const{columns:t,rows:n}=s.result,l=e.result.data.resultSets;l[a]||(l[a]={columns:[],result:[],truncated:!1,streamMetrics:{rowsPerSecond:0,lastUpdateTime:Date.now(),recentChunks:[]}});const c=l[a];!t||null!==(i=c.columns)&&void 0!==i&&i.length||(c.columns=t);const u=n||[];(0,o.F)(u,c.columns||[]).forEach((e=>{var t;null===(t=c.result)||void 0===t||t.push(e)})),c.truncated=s.result.truncated,c.streamMetrics&&v(c.streamMetrics,r)}},setStreamQueryResponse:(e,t)=>{if(!e.result)return;e.result.data||(e.result.data=g(null)),e.result.isLoading=!1;const n=t.payload;if("error"in n)e.result.error=n;else if("plan"in n){e.result.data||(e.result.data=g(null));const{plan:t,stats:r}=n,{simplifiedPlan:i,...o}=m(t,r);e.result.data.preparedPlan=Object.keys(o).length>0?o:void 0,e.result.data.simplifiedPlan=i,e.result.data.plan=n.plan,e.result.data.stats=n.stats}}},selectors:{selectQueriesHistoryFilter:e=>e.history.filter||"",selectTenantPath:e=>e.tenantPath,selectResult:e=>e.result,selectQueriesHistory:e=>{var t;const n=e.history.queries,r=null===(t=e.history.filter)||void 0===t?void 0:t.toLowerCase();return r?n.filter((e=>e.queryText.toLowerCase().includes(r))):n},selectUserInput:e=>e.input,selectQueriesHistoryCurrentIndex:e=>{var t;return null===(t=e.history)||void 0===t?void 0:t.currentIndex}}}),E=_.reducer,{changeUserInput:S,setQueryResult:k,saveQueryToHistory:C,updateQueryInHistory:O,goToPreviousQuery:N,goToNextQuery:T,setTenantPath:A,setQueryHistoryFilter:I,addStreamingChunks:D,setStreamQueryResponse:P,setStreamSession:R}=_.actions,{selectQueriesHistoryFilter:j,selectQueriesHistoryCurrentIndex:M,selectQueriesHistory:L,selectTenantPath:z,selectResult:F,selectUserInput:B}=_.selectors,U=c.F.injectEndpoints({endpoints:e=>({useStreamQuery:e.mutation({queryFn:async({query:e,database:t,querySettings:n={},enableTracingLevel:r,queryId:i},{signal:o,dispatch:s,getState:c})=>{s(k({type:"execute",queryId:i,isLoading:!0}));const{action:u,syntax:d}=(0,y.AH)("execute",null===n||void 0===n?void 0:n.queryMode);try{let i=[],c=null;const f=()=>{i.length>0&&(s(D(i)),i=[]),c=null};return await window.api.streaming.streamQuery({query:e,database:t,action:u,syntax:d,stats:n.statisticsMode,tracingLevel:n.tracingLevel&&r?a[n.tracingLevel]:void 0,limit_rows:(0,l.kf)(n.limitRows)?Number(n.limitRows):void 0,transaction_mode:"implicit"===n.transactionMode?void 0:n.transactionMode,timeout:(0,l.kf)(n.timeout)?1e3*Number(n.timeout):void 0,output_chunk_max_size:1e3,concurrent_results:void 0},{signal:o,onQueryResponseChunk:e=>{s(P(e))},onSessionChunk:e=>{s(R(e))},onStreamDataChunk:e=>{i.push(e),c||(c=window.requestAnimationFrame(f))}}),c&&(window.cancelAnimationFrame(c),f()),{data:null}}catch(f){const e=c();return s(k({...e.query.result,type:"execute",error:f,isLoading:!1,queryId:i})),{error:f}}}}),useSendQuery:e.mutation({queryFn:async({actionType:e="execute",query:t,database:n,querySettings:r={},enableTracingLevel:i,queryId:s},{signal:c,dispatch:u})=>{u(k({type:e,queryId:s,isLoading:!0}));const{action:d,syntax:f}=(0,y.AH)(e,null===r||void 0===r?void 0:r.queryMode);try{var p;const h=Date.now(),m=await window.api.viewer.sendQuery({query:t,database:n,action:d,syntax:f,stats:r.statisticsMode,tracingLevel:r.tracingLevel&&i?a[r.tracingLevel]:void 0,limit_rows:(0,l.kf)(r.limitRows)?Number(r.limitRows):void 0,transaction_mode:"implicit"===r.transactionMode?void 0:r.transactionMode,timeout:(0,l.kf)(r.timeout)?1e3*Number(r.timeout):void 0,query_id:s},{signal:c});if((0,o.We)(m))return u(k({type:e,error:m,isLoading:!1,queryId:s})),{error:m};const v=g(m);if(v.traceId=null===m||void 0===m||null===(p=m._meta)||void 0===p?void 0:p.traceId,"execute"===e){const e={};if(v.stats){const{DurationUs:t,Executions:[{FinishTimeMs:n}]=[{}]}=v.stats;e.durationUs=t,e.endTime=n}else{const t=Date.now();e.durationUs=1e3*(t-h),e.endTime=t}u(O({stats:e,queryId:s}))}return u(k({type:e,data:v,isLoading:!1,queryId:s})),{data:null}}catch(h){return u(k({type:e,error:h,isLoading:!1,queryId:s})),{error:h}}}})}),overrideExisting:"throw"})},80971:(e,t,n)=>{"use strict";function r(e="execute",t="query"){let n=e,r="yql_v1";return"pg"===t?(n=`${e}-query`,r="pg"):t&&(n=`${e}-${t}`),{action:n,syntax:r}}function i(e){return"string"===typeof e?{queryText:e}:e}function o(e){var t;return"SessionCreated"===(null===e||void 0===e||null===(t=e.meta)||void 0===t?void 0:t.event)}function a(e){var t;return"StreamData"===(null===e||void 0===e||null===(t=e.meta)||void 0===t?void 0:t.event)}function s(e){var t;return"QueryResponse"===(null===e||void 0===e||null===(t=e.meta)||void 0===t?void 0:t.event)}n.d(t,{AH:()=>r,HH:()=>s,QG:()=>i,uR:()=>a,y6:()=>o})},36894:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,JP:()=>l,NJ:()=>u,Wg:()=>g,aW:()=>f,cu:()=>h,fu:()=>m,gJ:()=>c,xM:()=>p,ys:()=>d});var r=n(97091),i=n(76086),o=n(88610);const a=(0,r.Z0)({name:"queryActions",initialState:{queryName:null,queryAction:"idle",savedQueriesFilter:""},reducers:{setQueryNameToEdit:(e,t)=>{e.queryName=t.payload},clearQueryNameToEdit:e=>{e.queryName=null},setQueryAction:(e,t)=>{e.queryAction=t.payload},setSavedQueriesFilter:(e,t)=>{e.savedQueriesFilter=t.payload}},selectors:{selectQueryName:e=>e.queryName,selectQueryAction:e=>e.queryAction,selectSavedQueriesFilter:e=>e.savedQueriesFilter}}),s=a.reducer,{setQueryNameToEdit:l,clearQueryNameToEdit:c,setQueryAction:u,setSavedQueriesFilter:d}=a.actions,{selectQueryName:f,selectQueryAction:p,selectSavedQueriesFilter:h}=a.selectors;function m(e){return function(t,n){var r;const a=n(),s=(null!==(r=(0,o.CN)(a,i.ld))&&void 0!==r?r:[]).filter((t=>t.name.toLowerCase()!==e.toLowerCase()));t((0,o.gc)(i.ld,s))}}function g(e){return function(t,n){var r;const a=n(),s=null!==(r=(0,o.CN)(a,i.ld))&&void 0!==r?r:[],l=a.query.input;if(null===e)return;const c=[...s],u=c.find((t=>t.name.toLowerCase()===e.toLowerCase()));u?u.body=l:c.push({name:e,body:l}),t((0,o.gc)(i.ld,c))}}},29078:(e,t,n)=>{"use strict";n.d(t,{Ab:()=>d,Ay:()=>c,Tn:()=>h,Tp:()=>g,o:()=>u,sM:()=>f});var r=n(59284),i=n(97091),o=n(53850),a=n(21334);const s={loading:!0,data:{},currentSchemaPath:void 0,showPreview:!1},l=(0,i.Z0)({name:"schema",initialState:s,reducers:{setShowPreview:(e,t)=>{e.showPreview=t.payload}},selectors:{selectShowPreview:e=>e.showPreview}}),c=l.reducer,{setShowPreview:u}=l.actions,{selectShowPreview:d}=l.selectors,f=a.F.injectEndpoints({endpoints:e=>({createDirectory:e.mutation({queryFn:async({database:e,path:t},{signal:n})=>{try{return{data:await window.api.scheme.createSchemaDirectory({database:e,path:t},{signal:n})}}catch(r){return{error:r}}}}),getSchema:e.query({queryFn:async({path:e,database:t},{signal:n})=>{try{const r=await window.api.viewer.getSchema({path:e,database:t},{signal:n});return r?{data:{[e]:r,...p(r)}}:{error:new Error("Schema is not available")}}catch(r){return{error:r}}},keepUnusedDataFor:1/0,serializeQueryArgs:({queryArgs:{database:e}})=>({database:e}),merge:(e,t,{arg:{path:n}})=>{const{[n]:r,...i}=t;return r?{...i,...e,[n]:r}:e}})}),overrideExisting:"throw"});function p(e){const t={},{PathDescription:{Children:n=[]}={},Path:r}=e;for(const i of n){const{Name:e=""}=i,n=`${r}/${e}`;t[n]={PathDescription:{Self:i},Path:n,partial:!0}}return t}function h({path:e,database:t}){const{currentData:n,isFetching:i,error:o,refetch:a,originalArgs:s}=f.useGetSchemaQuery({path:e,database:t}),l=null===n||void 0===n?void 0:n[e],c=i&&void 0===l,u=(null===s||void 0===s?void 0:s.path)===e?o:void 0,d=!c&&(!l&&!o||(null===l||void 0===l?void 0:l.partial));return r.useEffect((()=>{d&&a()}),[a,e,d]),{data:l,isLoading:c,error:u}}const m=(0,o.Mz)((e=>e),((e,t)=>t),((e,t)=>f.endpoints.getSchema.select({path:e,database:t}))),g=(0,o.Mz)((e=>e),((e,t)=>t),((e,t,n)=>m(t,n)),((e,t,n)=>{var r;return null===(r=n(e).data)||void 0===r?void 0:r[t]}))},88610:(e,t,n)=>{"use strict";n.d(t,{$u:()=>d,Ay:()=>g,CN:()=>f,N8:()=>m,gc:()=>h,s$:()=>a,ue:()=>c,yV:()=>p});var r=n(97091),i=n(59001),o=n(41650);const a={ALL:"All",PROBLEMS:"With problems"},s=i.f.extractSettingsFromLS(i.c),l=window.systemSettings||{},c={problemFilter:a.ALL,userSettings:s,systemSettings:l},u=(0,r.Z0)({name:"settings",initialState:c,reducers:e=>({changeFilter:e.reducer(((e,t)=>{e.problemFilter=t.payload})),setSettingValue:e.reducer(((e,t)=>{e.userSettings[t.payload.name]=t.payload.value}))}),selectors:{getSettingValue:(e,t)=>e.userSettings[t],selectProblemFilter:e=>e.problemFilter}}),{changeFilter:d}=u.actions,{getSettingValue:f,selectProblemFilter:p}=u.selectors,h=(e,t)=>n=>{n(u.actions.setSettingValue({name:e,value:t})),i.f.setUserSettingsValue(e,t)};function m(e){"undefined"!==typeof window&&window.addEventListener("storage",(t=>{if(t.key&&t.key in i.c){const n=t.key;let r=i.c[n];null!==t.newValue&&(r=(0,o.qF)(t.newValue)),e.dispatch(u.actions.setSettingValue({name:n,value:r}))}}))}const g=u.reducer},46496:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>p,Xx:()=>h,rF:()=>f});var r=n(14750),i=n(97091),o=n(959),a=n(11822),s=n(21334),l=n(87747);function c(e,t,n,i){const a=i?`CAST(SUBSTRING(CAST(Path AS String), ${i.length}) AS Utf8) AS Path`:"Path";let s=`Path='${e}' OR Path LIKE '${e}/%'`;const l=function(e){var t,n;const i=[],o=null===(t=(0,r.bQ)(Number(null===e||void 0===e?void 0:e.to)||(null===e||void 0===e?void 0:e.to)))||void 0===t?void 0:t.valueOf(),a=null===(n=(0,r.bQ)(Number(null===e||void 0===e?void 0:e.from)||(null===e||void 0===e?void 0:e.from)))||void 0===n?void 0:n.valueOf();if(a&&o&&a>o)throw new Error("Invalid date range");if(a){const e=o===a?">=":">";i.push(`IntervalEnd ${e} Timestamp('${new Date(a).toISOString()}')`)}return o&&i.push(`IntervalEnd <= Timestamp('${new Date(o).toISOString()}')`),i.join(" AND ")}(t);l.length&&(s=`(${s}) AND ${l}`);return`SELECT\n ${a},\n TabletId,\n CPUCores,\n DataSize,\n NodeId,\n PeakTime,\n InFlightTxCount,\n IntervalEnd\nFROM \`.sys/top_partitions_one_hour\`\nWHERE ${s}\n${(0,o.JD)(n)}\nLIMIT 20`}function u(e,t,n){return`SELECT\n ${n?`CAST(SUBSTRING(CAST(Path AS String), ${n.length}) AS Utf8) AS Path`:"Path"},\n TabletId,\n CPUCores,\n DataSize,\n NodeId,\n InFlightTxCount\nFROM \`.sys/partition_stats\`\nWHERE\n Path='${e}'\n OR Path LIKE '${e}/%'\n${(0,o.JD)(t)}\nLIMIT 20`}const d=(0,i.Z0)({name:"shardsWorkload",initialState:{},reducers:{setShardsQueryFilters:(e,t)=>({...e,...t.payload})}}),{setShardsQueryFilters:f}=d.actions,p=d.reducer,h=s.F.injectEndpoints({endpoints:e=>({sendShardQuery:e.query({queryFn:async({database:e,path:t="",sortOrder:n,filters:r},{signal:i})=>{try{const o=await window.api.viewer.sendQuery({query:(null===r||void 0===r?void 0:r.mode)===l.h.Immediate?u(t,n,e):c(t,r,n,e),database:e,action:"execute-scan"},{signal:i,withRetries:!0});if((0,a.We)(o))return{error:o};return{data:(0,a.fW)(o)}}catch(o){return{error:o}}},providesTags:["All"],forceRefetch:({currentArg:e})=>{var t,n,i;return"immediate"===(null===e||void 0===e||null===(t=e.filters)||void 0===t?void 0:t.mode)||!(!(0,r.eP)(null===e||void 0===e||null===(n=e.filters)||void 0===n?void 0:n.from)&&!(0,r.eP)(null===e||void 0===e||null===(i=e.filters)||void 0===i?void 0:i.to))}})}),overrideExisting:"throw"})},87747:(e,t,n)=>{"use strict";n.d(t,{h:()=>r});let r=function(e){return e.Immediate="immediate",e.History="history",e}({})},52531:(e,t,n)=>{"use strict";n.d(t,{Dg:()=>i,Dt:()=>r,iJ:()=>a,ml:()=>s,pA:()=>l,tQ:()=>o});const r="tenantPage",i={query:"query",diagnostics:"diagnostics"},o={newQuery:"newQuery",history:"history",saved:"saved"},a={overview:"overview",schema:"schema",topQueries:"topQueries",topShards:"topShards",nodes:"nodes",tablets:"tablets",storage:"storage",network:"network",describe:"describe",hotKeys:"hotKeys",graph:"graph",consumers:"consumers",partitions:"partitions",configs:"configs",operations:"operations"},s={overview:"overview",acl:"acl",schema:"schema"},l={cpu:"cpu",storage:"storage",memory:"memory",healthcheck:"healthcheck"}},18517:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>d,WO:()=>h,sH:()=>p,Mj:()=>m,es:()=>f,z6:()=>v});var r=n(97091),i=n(59001),o=n(76086),a=n(21334),s=n(370),l=n(52531);const c={tenantPage:s.z.nativeEnum(l.Dg).catch(i.c[o.Mt]).parse(i.f.readUserSettingsValue(o.Mt))},u=(0,r.Z0)({name:"tenant",initialState:c,reducers:{setTenantPage:(e,t)=>{e.tenantPage=t.payload},setQueryTab:(e,t)=>{e.queryTab=t.payload},setDiagnosticsTab:(e,t)=>{e.diagnosticsTab=t.payload},setSummaryTab:(e,t)=>{e.summaryTab=t.payload},setMetricsTab:(e,t)=>{e.metricsTab=t.payload}}}),d=u.reducer,{setTenantPage:f,setQueryTab:p,setDiagnosticsTab:h,setSummaryTab:m,setMetricsTab:g}=u.actions,v=a.F.injectEndpoints({endpoints:e=>({getTenantInfo:e.query({queryFn:async({path:e},{signal:t})=>{try{var n,r;return{data:null!==(n=null===(r=(await window.api.viewer.getTenantInfo({path:e},{signal:t})).TenantInfo)||void 0===r?void 0:r[0])&&void 0!==n?n:null}}catch(i){return{error:i}}},providesTags:["All"]}),getClusterConfig:e.query({queryFn:async({database:e},{signal:t})=>{try{const n=await window.api.viewer.getClusterConfig(e,{signal:t});return{data:n.Databases[0].FeatureFlags}}catch(n){return{error:n}}},providesTags:["All"]})}),overrideExisting:"throw"})},8861:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i,u:()=>r});const r={Unspecified:"Unspecified",Good:"Good",Warning:"Warning",Danger:"Danger"},i={[r.Unspecified]:0,[r.Good]:1,[r.Warning]:2,[r.Danger]:3}},56674:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>l,GJ:()=>c,gB:()=>s});var r=n(97091),i=n(21334),o=n(20680);const a=(0,r.Z0)({name:"tenants",initialState:{searchValue:""},reducers:{setSearchValue:(e,t)=>{e.searchValue=t.payload}}}),{setSearchValue:s}=a.actions,l=a.reducer,c=i.F.injectEndpoints({endpoints:e=>({getTenantsInfo:e.query({queryFn:async({clusterName:e},{signal:t,getState:n})=>{try{const r=window.api.meta?await window.api.meta.getTenants(e,{signal:t}):await window.api.viewer.getTenants(e,{signal:t});let i;if(Array.isArray(r.TenantInfo)){const{singleClusterMode:e}=n();i=(0,o.T3)(r.TenantInfo,e)}else i=[];return{data:i}}catch(r){return{error:r}}},providesTags:["All"]})}),overrideExisting:"throw"})},20680:(e,t,n)=>{"use strict";n.d(t,{uI:()=>s,sf:()=>u,T3:()=>l});let r=function(e){return e.None="None",e.HDD="HDD",e.SSD="SSD",e}({});var i=n(76086),o=n(41650),a=n(8861);const s=(e={})=>{const{CoresUsed:t,MemoryUsed:n,StorageAllocatedSize:i,MemoryLimit:a,StorageAllocatedLimit:s,PoolStats:l,Metrics:u={},DatabaseQuotas:d={},StorageUsage:f,QuotaUsage:p}=e,h=1e6*Number(t)||0,m=Number(n)||0,g=Number(i)||0,v=Number(u.Storage)||0,y=(0,o.kf)(a)?Number(a):void 0,b=(0,o.kf)(s)?Number(s):void 0,w=(0,o.kf)(d.data_size_soft_quota)?Number(d.data_size_soft_quota):void 0,x=(e=>{if(e)return e.map((e=>{if(e.Name){const t=Number(e.Usage)||0,n=Number(e.Threads),r=n*t;return{name:e.Name,usage:100*t,limit:n,used:r}}})).filter((e=>void 0!==e))})(l);let _,E;_=f?f.map((e=>{const{Type:t,Size:n,Limit:r}=e,i=Number(n),o=Number(r);return{name:t,used:i,limit:o,usage:c(i,o)}})):[{name:r.SSD,used:g,limit:b,usage:c(g,b)}],p?E=p.map((e=>{const{Type:t,Size:n,Limit:r}=e,i=Number(n),o=Number(r);return{name:t,used:i,limit:o,usage:c(i,o)}})):w&&(E=[{name:r.SSD,used:v,limit:w,usage:c(v,w)}]);return{memory:m,blobStorage:g,tabletStorage:v,memoryLimit:y,blobStorageLimit:b,tabletStorageLimit:w,cpu:h,poolsStats:x,memoryStats:[{name:"Process",used:m,limit:y,usage:c(m,y)}],blobStorageStats:_,tabletStorageStats:E}},l=(e,t)=>e.map((n=>{const r=t?(e=>{var t;const n=e.Nodes?e.Nodes[0]:{},r=n.Host&&n.Endpoints?null===(t=n.Endpoints.find((e=>"http-mon"===e.Name)))||void 0===t?void 0:t.Address:void 0;return n.Host?`${n.Host}${r||""}`:void 0})(n):void 0,i=e.find((e=>e.Id===n.ResourceId)),a=null===i||void 0===i?void 0:i.Name,l=null===i||void 0===i?void 0:i.NodeIds,c=(e=>{var t,n;const r=null===(t=e.Name)||void 0===t?void 0:t.split("/"),i=null!==r&&void 0!==r&&r.length?r[r.length-1]:"\u2014",o=null===(n=e.ControlPlane)||void 0===n?void 0:n.name;return null!==o&&void 0!==o?o:i})(n),{cpu:u,memory:d,blobStorage:f}=s(n),{nodesCount:p,groupsCount:h}=(e=>{var t;const{StorageGroups:n,NodeIds:r}=e;return{nodesCount:null!==(t=null===r||void 0===r?void 0:r.length)&&void 0!==t?t:0,groupsCount:(0,o.kf)(n)?Number(n):0}})(n);return{...n,backend:r,sharedTenantName:a,sharedNodeIds:l,controlPlaneName:c,cpu:u,memory:d,storage:f,nodesCount:p,groupsCount:h}}));function c(e,t){if(e&&t)return 100*e/t}function u(e){return e?e>i.Ed?a.u.Danger:e>i.Hh?a.u.Warning:a.u.Good:a.u.Unspecified}},49818:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>u,DK:()=>c,oM:()=>a,w7:()=>l});var r=n(62060),i=n.n(r);const o="tooltip/HIDE_TOOLTIP",a="tooltip/UPDATE_REF",s={toolTipVisible:!1,currentHoveredRef:void 0,data:void 0,templateType:"cell"},l=()=>({type:o}),c=(e,t,n,r,i)=>({type:a,node:e,data:t,templateType:n,additionalData:r,positions:i}),u=(e=s,t)=>{switch(t.type){case o:return{...e,currentHoveredRef:void 0,toolTipVisible:!1};case a:return"cell"===t.templateType&&i()(t.node,e.currentHoveredRef)?{...e,currentHoveredRef:void 0,toolTipVisible:!1}:{...e,toolTipVisible:!0,currentHoveredRef:t.node,positions:t.positions,data:t.data,additionalData:t.additionalData,templateType:t.templateType};default:return e}}},98730:(e,t,n)=>{"use strict";function r(e){return!!e&&("Version"in e&&"number"===typeof e.Version&&e.Version>=2)}n.d(t,{L:()=>r})},54090:(e,t,n)=>{"use strict";n.d(t,{m:()=>r});let r=function(e){return e.Grey="Grey",e.Green="Green",e.Blue="Blue",e.Yellow="Yellow",e.Orange="Orange",e.Red="Red",e}({})},6354:(e,t,n)=>{"use strict";n.d(t,{e:()=>r,r:()=>i});let r=function(e){return e.Unknown="Unknown",e.OldSchemeShard="OldSchemeShard",e.OldDataShard="OldDataShard",e.OldHive="OldHive",e.OldCoordinator="OldCoordinator",e.Mediator="Mediator",e.OldTxProxy="OldTxProxy",e.OldBSController="OldBSController",e.Dummy="Dummy",e.RTMRPartition="RTMRPartition",e.OldKeyValue="OldKeyValue",e.KeyValue="KeyValue",e.Coordinator="Coordinator",e.Hive="Hive",e.BSController="BSController",e.SchemeShard="SchemeShard",e.TxProxy="TxProxy",e.DataShard="DataShard",e.PersQueue="PersQueue",e.Cms="Cms",e.NodeBroker="NodeBroker",e.TxAllocator="TxAllocator",e.PersQueueReadBalancer="PersQueueReadBalancer",e.BlockStoreVolume="BlockStoreVolume",e.BlockStorePartition="BlockStorePartition",e.TenantSlotBroker="TenantSlotBroker",e.Console="Console",e.Kesus="Kesus",e.BlockStorePartition2="BlockStorePartition2",e.BlockStoreDiskRegistry="BlockStoreDiskRegistry",e.SysViewProcessor="SysViewProcessor",e.FileStore="FileStore",e.ColumnShard="ColumnShard",e.TestShard="TestShard",e.SequenceShard="SequenceShard",e.ReplicationController="ReplicationController",e.BlobDepot="BlobDepot",e.UserTypeStart="UserTypeStart",e.TypeInvalid="TypeInvalid",e}({}),i=function(e){return e.Created="Created",e.ResolveStateStorage="ResolveStateStorage",e.Candidate="Candidate",e.BlockBlobStorage="BlockBlobStorage",e.RebuildGraph="RebuildGraph",e.WriteZeroEntry="WriteZeroEntry",e.Restored="Restored",e.Discover="Discover",e.Lock="Lock",e.Dead="Dead",e.Active="Active",e.ResolveLeader="ResolveLeader",e.Deleted="Deleted",e.Stopped="Stopped",e}({})},15619:(e,t,n)=>{"use strict";n.d(t,{f:()=>l,z:()=>u});var r=n(76086),i=n(56839),o=n(41650),a=n(82621);const s={b:{value:1,label:(0,a.A)("b")},kb:{value:r.eh,label:(0,a.A)("kb")},mb:{value:r.pg,label:(0,a.A)("mb")},gb:{value:r.J7,label:(0,a.A)("gb")},tb:{value:r.Db,label:(0,a.A)("tb")}},l=e=>{let t="b";return e>=s.kb.value&&(t="kb"),e>=s.mb.value&&(t="mb"),e>=s.gb.value&&(t="gb"),e>=s.tb.value&&(t="tb"),t},c=(e,t,n=o.en)=>e+n+s[t].label,u=({value:e,size:t,withSpeedLabel:n=!1,withSizeLabel:r=!0,delimiter:u,...d})=>{if(!(0,o.kf)(e))return"";const f=Number(e),p=null!==t&&void 0!==t?t:l(f),h=(({value:e,size:t="mb",precision:n=0})=>{const r=(0,i.CR)(Number(e)/s[t].value,n);return(0,i.ZV)(r)})({value:f,size:p,...d});return n?((e,t)=>c(e,t)+(0,a.A)("perSecond"))(h,p):r?c(h,p,u):h}},82621:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(48372);const i=JSON.parse('{"b":"B","kb":"KB","mb":"MB","gb":"GB","tb":"TB","label_thousand":"k","label_million":"m","label_billion":"b","label_trillion":"t","perSecond":"/s"}'),o=(0,r.g4)("ydb-bytes-parsers",{en:i})},46549:(e,t,n)=>{"use strict";n.d(t,{ey:()=>o,z3:()=>r.z,fn:()=>r.f});var r=n(15619),i=n(76086);const o=e=>({perMinute:e&&e.per_minute?Math.round(Number(e.per_minute)/i.r0):0,perHour:e&&e.per_hour?Math.round(Number(e.per_hour)/i.Jg):0,perDay:e&&e.per_day?Math.round(Number(e.per_day)/i.tt):0})},40537:(e,t,n)=>{"use strict";n.d(t,{HD:()=>l,NN:()=>u,Vm:()=>c});var r=n(11078),i=n.n(r),o=n(38596),a=n(66592);const s="__no_color__",l=(e,t=new Map)=>(e.forEach((({version:e,version_base_color_index:n=s})=>{var r;const i=(0,o.U)(e);t.has(n)||t.set(n,new Set),null===(r=t.get(n))||void 0===r||r.add(i)})),t),c=e=>{const t=new Map;for(const[n,r]of e)Array.from(r).sort(((e,t)=>(0,a.s5)(t)-(0,a.s5)(e))).forEach(((e,i)=>{if(n===s)t.set(e,a.OT);else{const o=Number(n)%a.lm.length,s=r.size,l=a.lm[o],c=Math.max(100-i*(100/s),20),u=`${l}${Math.round(255*c/100).toString(16)}`;t.set(e,u)}}));return t},u=(e=[],t)=>{const n=e.filter((e=>e.version));return i()(n,"version").map((e=>({...e,minorVersion:(0,o.U)(e.version)}))).reduce(((e,n)=>{const r=t.get(n.minorVersion);return e.push({...n,color:r}),e}),[])}},77506:(e,t,n)=>{"use strict";n.d(t,{cn:()=>r});const r=(0,n(82435).withNaming)({e:"__",m:"_"})},76086:(e,t,n)=>{"use strict";n.d(t,{Db:()=>l,Du:()=>p,ED:()=>R,Ed:()=>g,GV:()=>z,Gj:()=>ne,Hh:()=>m,IO:()=>te,J7:()=>s,Jg:()=>d,KF:()=>c,LK:()=>J,LQ:()=>N,MB:()=>T,Mt:()=>K,N3:()=>B,Nz:()=>b,Pd:()=>w,QM:()=>_,RY:()=>A,T5:()=>x,TJ:()=>C,U0:()=>re,Xm:()=>Q,YQ:()=>H,av:()=>I,bk:()=>y,bs:()=>W,bz:()=>X,c4:()=>$,eh:()=>o,fY:()=>F,fr:()=>q,g5:()=>G,hh:()=>L,iD:()=>D,jQ:()=>j,jS:()=>k,jX:()=>M,jp:()=>U,k4:()=>S,kO:()=>ee,l_:()=>P,ld:()=>O,lr:()=>Y,oK:()=>E,pg:()=>a,r0:()=>u,s2:()=>Z,tt:()=>f,zk:()=>V,zz:()=>h});var r=n(4557),i=n(6354);const o=1e3,a=1e6,s=1e9,l=1e12,c=1e3,u=60,d=60*u,f=24*d,p=7*f,h=1e6,m=85,g=95,v={[i.e.OldTxProxy]:"P",[i.e.TxProxy]:"P",[i.e.BSController]:"BS",[i.e.Dummy]:"DY",[i.e.RTMRPartition]:"RP",[i.e.PersQueueReadBalancer]:"PB",[i.e.Cms]:"CM",[i.e.BlockStorePartition]:"BP",[i.e.BlockStoreVolume]:"BV",[i.e.Console]:"CN",[i.e.TenantSlotBroker]:"TB",[i.e.BlockStoreDiskRegistry]:"BDR"},y=e=>{var t;if(!e)return;const n=null===(t=e.match(/[A-Z]/g))||void 0===t?void 0:t.join("");return(e=>e in v)(e)?v[e]:n},b=5,w="\u2014",x="Developer UI",_="Cluster",E="Database",S="theme",k="language",C="invertedDisks",O="saved_queries",N="asideHeaderCompact",T="queries_history",A="binaryDataInPlainTextDisplay",I="auto-refresh-interval",D="caseSensitiveJsonSearch",P="default-size-result-pane",R="default-size-tenant-summary-pane",j="default-size-tenant-pane",M="default-is-tenant-summary-collapsed",L="default-is-tenant-common-info-collapsed",z="default-is-query-result-collapsed",F="default-cluster-tab",B={displayIndices:!1,stickyHead:r.Ay.MOVING,syncHeadOnResize:!0,dynamicRender:!0,highlightRows:!0},U={...B,stickyHead:"fixed",dynamicRender:!1},$="queryExecutionSettings",q="last_query_execution_settings",H="querySettingsBannerLastClosed",V="last_used_query_action",W="partitionsHiddenColumns",K="saved_tenant_initial_tab",G="enableNetworkTable",Y="useShowPlanToSvg",Q="showDomainDatabase",Z="useClusterBalancerAsBacked",J="enableAutocomplete",X="enableCodeAssistant",ee="enableQueryStreaming",te="autocompleteOnEnter",ne="isHotKeysHelpHidden",re="enable_tracing_for_all_requests"},56839:(e,t,n)=>{"use strict";n.d(t,{tC:()=>v,z3:()=>g,iM:()=>P,r6:()=>R,lr:()=>w,ZV:()=>N,Nd:()=>k,l9:()=>T,Pt:()=>A,j9:()=>S,vX:()=>C,ki:()=>O,Ey:()=>j,wI:()=>_,vN:()=>M,H7:()=>x,CR:()=>I,U9:()=>y});var r=n(14750),i=n(15619),o=n(76086),a=n(79685),s=n(41650);function l(e,t,n,r,i,o,a=!1){let l=t(Number(n)),c=!0,u=0;(0,s.kf)(r)&&(l=t(Number(r)),c=a,u=1);return[e({value:n,withSizeLabel:c,size:i||l,precision:u,delimiter:o}),e({value:r,size:i||l,delimiter:o})]}var c=n(82621);const u={noUnit:{value:1,label:""},thousand:{value:1e3,label:(0,c.A)("label_thousand")},million:{value:1e6,label:(0,c.A)("label_million")},billion:{value:1e9,label:(0,c.A)("label_billion")},trillion:{value:1e12,label:(0,c.A)("label_trillion")}},d=e=>{let t="noUnit";return e>=u.thousand.value&&(t="thousand"),e>=u.million.value&&(t="million"),e>=u.billion.value&&(t="billion"),e>=u.trillion.value&&(t="trillion"),t},f=({value:e,size:t,withSizeLabel:n=!0,delimiter:r,...i})=>{if(!(0,s.kf)(e))return"";const o=Number(e),a=null!==t&&void 0!==t?t:d(o),l=(({value:e,size:t="thousand",precision:n=0})=>{const r=I(Number(e)/u[t].value,n);return N(r)})({value:o,size:a,...i});return n?((e,t,n=s.en)=>{const r=u[t].label;return r?e+n+r:e})(l,a,r):l};var p=n(48372);const h=JSON.parse('{"format-cpu.cores":["core","cores","cores","cores"],"d":"d","s":"s"}'),m=(0,p.g4)("ydb-format-cpu",{en:h}),g=e=>(0,s.kf)(e)?(0,a.p)(e).format("0 b"):"",v=e=>{const t=g(e);return t?t+"/s":""},y=e=>e?Object.values(e).join("-"):"";function b(e){if(!(0,s.kf)(e))return;const t=e<0?"-":"",n=(0,r.p0)(Math.abs(e),"s").rescale();let i;return i=Math.floor(n.asDays())>0?n.format(`d[${m("d")}${s.en}]hh:mm:ss`):n.hours()>0?n.format("h:mm:ss"):n.minutes()>0?n.format("m:ss"):n.format(`s[${m("s")}]`),t+i}const w=e=>b(Number(e)/1e3);function x(e,t){let n=E(e,t);return n=n<0?0:n,b(n)}function _(e,t){let n=E(e,t);return n=n<0?0:n,b(-n)}function E(e,t=(new Date).getTime()){return(Number(t)-Number(e))/1e3}function S(e,t,n,r,o){return l(i.z,i.f,e,t,n,r,o)}function k(e,t,n,r,i){return l(f,d,e,t,n,r,i)}const C=(e,t)=>S(e,t,"gb"),O=(e,t)=>S(e,t,"tb"),N=e=>(0,s.kf)(e)?(0,a.p)(e).format("0,0.[00000]"):"",T=(e,t=2)=>{if(!(0,s.kf)(e))return"";const n=Number(e).toFixed(t);return(0,a.p)(n).format("0.[00]%")},A=e=>{const t=(e/o.Jg).toFixed(2);return`${N(t)} hours`},I=(e,t=0)=>{const n=Math.abs(Number(e));let[r]=String(n).split(".");return Number(n)<1&&(r=""),r.length>=t?Number(Number(e).toFixed(0)):Number(Number(e).toFixed(t-r.length))},D=e=>{const t=Number(e)/1e6;return I(t,3)},P=e=>{if(void 0!==e)return(0,a.p)(D(e)).format("0.[000]")},R=(e,{withTimeZone:t,defaultValue:n=""}={})=>{var i;const o=t?" z":"",a=null===(i=(0,r.bQ)(Number(e)))||void 0===i?void 0:i.format(`YYYY-MM-DD HH:mm${o}`);return null!==a&&void 0!==a?a:n},j=(e,t="")=>{var n;const i=null===(n=(0,r.bQ)(e))||void 0===n?void 0:n.format("YYYY-MM-DD HH:mm:ss.SSS");return null!==i&&void 0!==i?i:t};function M(e){return void 0===e?"":"object"===typeof e?JSON.stringify(e):e.toString()}},31684:(e,t,n)=>{"use strict";n.d(t,{Kx:()=>s,Un:()=>o,Wg:()=>c,_t:()=>u,ar:()=>l,t1:()=>a});var r=n(58351),i=n(41650);function o(e=r.Hs){return e+"/internal"}function a(e=r.Hs){return e+"/monitoring"}const s=(e,t=r.Hs)=>{const n=/\/node\/\d+\/?$/g;return n.test(String(t))?String(t).replace(n,`/node/${e}`):`${null!==t&&void 0!==t?t:""}/node/${e}`},l=({nodeId:e,pDiskId:t,host:n})=>{const r="/actors/pdisks/pdisk"+(0,i.pY)(t);return s(e,n)+r},c=({nodeId:e,pDiskId:t,vDiskSlotId:n,host:r})=>{const o="/actors/vdisks/vdisk"+(0,i.pY)(t)+"_"+(0,i.pY)(n);return s(e,r)+o};function u(e,t,n="TabletID",i=r.Hs){return`${i}/tablets${t?`/${t}`:""}?${n}=${e}`}},90182:(e,t,n)=>{"use strict";n.d(t,{JN:()=>s.JN,Nt:()=>f,A5:()=>h,XS:()=>a.X,e4:()=>u,iK:()=>o.i,GY:()=>s.GY,YQ:()=>i.Y,N4:()=>r.N});var r=n(75022),i=n(51533),o=n(80967),a=n(95312),s=n(959),l=n(10755),c=n(92459);const u=()=>{const e=(0,l.zy)();return(0,c.mA)(e)};var d=n(76086);function f(){return(0,o.i)(d.av,0)}var p=n(59284);function h(e){const t=p.useRef(e);return p.useLayoutEffect((()=>{t.current=e}),[e]),p.useCallback(((...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}},88655:(e,t,n)=>{"use strict";n.d(t,{E:()=>u});var r=n(67157),i=n(58351),o=n(77630);const a=(e=i.Hs,t)=>({getNodeRef:(n={})=>(0,o.Vk)(n,null!==e&&void 0!==e?e:"",t)});var s=n(76086),l=n(80967),c=n(75022);function u(){const{balancer:e}=(0,r.Zd)(),[t]=(0,l.i)(s.s2),n=(0,c.N)((e=>e.singleClusterMode)),i=a(e,t);return n?void 0:i}},28232:(e,t,n)=>{"use strict";n.d(t,{J:()=>i});var r=n(67087);function i(){const[e]=(0,r.useQueryParam)("database",r.StringParam);return null!==e&&void 0!==e?e:void 0}},66781:(e,t,n)=>{"use strict";n.d(t,{y:()=>i});var r=n(59284);function i(e=600){const[t,n]=r.useState(!1),[i,o]=r.useState(0);r.useEffect((()=>{n(!1);const t=setTimeout((()=>{n(!0)}),e);return()=>{clearTimeout(t)}}),[e,i]);return[t,r.useCallback((()=>{o((e=>e+1))}),[])]}},12888:(e,t,n)=>{"use strict";n.d(t,{X:()=>o});var r=n(78668),i=n(75022);function o(){return(0,i.N)(r._5)}},95312:(e,t,n)=>{"use strict";n.d(t,{X:()=>l});var r=n(59284),i=n(67028),o=n(76086),a=n(11822),s=n(80967);const l=()=>{const e=(0,i.Oi)(),[t,n]=(0,s.i)(o.c4),l=a.dZ.parse(t),[c]=(0,s.i)(o.lr),u=r.useCallback((e=>{n({...e,statisticsMode:c?l.statisticsMode:e.statisticsMode})}),[n,c,l.statisticsMode]);return[{...l,statisticsMode:c?a.pE.full:l.statisticsMode,tracingLevel:e?l.tracingLevel:a.jU.tracingLevel},u]}},80967:(e,t,n)=>{"use strict";n.d(t,{i:()=>s});var r=n(59284),i=n(88610),o=n(51533),a=n(75022);const s=(e,t)=>{const n=(0,o.Y)();return[(0,a.N)((n=>{var r;return null!==(r=(0,i.CN)(n,e))&&void 0!==r?r:t})),r.useCallback((t=>{n((0,i.gc)(e,t))}),[n,e])]}},959:(e,t,n)=>{"use strict";n.d(t,{GY:()=>a,JD:()=>c,JN:()=>s});var r=n(59284),i=n(62060),o=n.n(i);function a({initialSortColumn:e,initialSortOrder:t=-1,fixedOrderType:n,multiple:i,onSort:a}){const[s,l]=r.useState((()=>{if(e)return[{columnId:e,order:n||t}]}));return[s,r.useCallback((e=>{if(!e||Array.isArray(e)&&!e.length)return void(n||(null===a||void 0===a||a(void 0),l(void 0)));let t=Array.isArray(e)?e:[e];n&&(t=t.map((e=>({columnId:e.columnId,order:n})))),i||(t=t.slice(0,1)),l((e=>t&&!o()(e,t)?(null===a||void 0===a||a(t),t):e))}),[n,i,a])]}function s(e=[],t){const n=e.map((e=>({columnId:t(e.columnId),order:e.order}))).filter((e=>Boolean(e.columnId)));if(n.length)return n}function l({columnId:e,order:t}){return`${e} ${-1===t?"DESC":"ASC"}`}function c(e){return e?`ORDER BY ${e.map(l).join(", ")}`:""}},51533:(e,t,n)=>{"use strict";n.d(t,{Y:()=>r});const r=n(97434).wA},75022:(e,t,n)=>{"use strict";n.d(t,{N:()=>r});const r=n(97434).d4},48372:(e,t,n)=>{"use strict";n.d(t,{JA:()=>s,oK:()=>l,Ru:()=>u,g4:()=>d});var r=n(1448),i=n(3357),o=n(59001),a=n(76086),s=function(e){return e.En="en",e.Ru="ru",e}(s||{});const l=s.En,c=o.f.readUserSettingsValue(a.jS,l),u=new r.TH({lang:c,fallbackLang:s.En});function d(e,t){for(const n of Object.keys(t))u.registerKeyset(n,e,t[n]);return u.keyset(e)}(0,i.jK)({lang:c})},7435:(e,t,n)=>{"use strict";n.d(t,{_e:()=>r,f8:()=>i,uk:()=>o});const r=e=>[...Array(e).keys()];function i(e){return null!==e&&void 0!==e}async function o(e,t){return new Promise((n=>{setTimeout((()=>n(t)),e)}))}},99006:(e,t,n)=>{"use strict";n.d(t,{_:()=>l});var r=n(59284),i=n(74417),o=n(34271),a=n(88632),s=n(60712);function l(e,t,n){const i=r.lazy((()=>e().then((e=>({default:e[t]}))).catch((e=>({default:()=>(0,s.jsx)(a.jt,{error:e})}))))),l=r.forwardRef(((e,t)=>{const a=(0,o.x)("ErrorBoundary");return(0,s.jsx)(a,{children:(0,s.jsx)(r.Suspense,{fallback:null!==n&&void 0!==n?n:(0,s.jsx)(c,{}),children:(0,s.jsx)(i,{ref:t,...e})})})}));return l.displayName=t,l}function c(){return(0,s.jsx)("div",{style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,s.jsx)(i.a,{size:"l"})})}},78034:(e,t,n)=>{"use strict";n.d(t,{AB:()=>h,Bm:()=>c,DG:()=>u,Fo:()=>m,X7:()=>d,cW:()=>l,nN:()=>f,q1:()=>p});var r=n(370),i=n(88610),o=n(54090),a=n(76086),s=n(7435);let l=function(e){return e.All="All",e.SmallUptime="SmallUptime",e}({});const c=r.z.nativeEnum(l).catch(l.All),u={[l.All]:"All",[l.SmallUptime]:"Uptime < 1h"},d=e=>!e.SystemState||e.SystemState===o.m.Grey,f=e=>null===e||void 0===e?void 0:e.reduce(((e,t)=>{var n;(0,s.f8)(t.Id)&&e.set(t.Id,{Host:t.Host,DC:null===(n=t.PhysicalLocation)||void 0===n?void 0:n.DataCenterId});return e}),new Map);function p(e={}){var t,n,r,i,o,a;const l=(null===(t=e.Location)||void 0===t?void 0:t.Rack)||e.Rack,c=(null===(n=e.Location)||void 0===n?void 0:n.DataCenter)||e.DataCenter,u=null===e||void 0===e||null===(r=e.Tenants)||void 0===r?void 0:r[0],d=function(e={}){const{LoadAverage:t,NumberOfCpus:n}=e;if((0,s.f8)(t)&&(0,s.f8)(n))return t.map((e=>100*e/n))}(e),f=Number(null===(i=e.SharedCacheStats)||void 0===i?void 0:i.LimitBytes)||void 0,p=(0,s.f8)(null===(o=e.SharedCacheStats)||void 0===o?void 0:o.UsedBytes)?Number(null===(a=e.SharedCacheStats)||void 0===a?void 0:a.UsedBytes):void 0;return{...e,Rack:l,DC:c,LoadAveragePercents:d,TenantName:u,SharedCacheLimit:f,SharedCacheUsed:p}}const h=e=>e===i.s$.PROBLEMS,m=e=>e===l.SmallUptime?a.Jg:void 0},79685:(e,t,n)=>{"use strict";n.d(t,{p:()=>s});var r=n(7139),i=n.n(r),o=(n(97650),n(48372)),a=n(41650);Object.values(o.JA).forEach((e=>{i().locales[e]&&(i().locales[e].delimiters.thousands=a.en)})),i().locale(o.Ru.lang);const s=i()},69446:(e,t,n)=>{"use strict";n.d(t,{M6:()=>i,PG:()=>r,Zd:()=>o});const r=e=>e.replace(/\/viewer\/json/,""),i=e=>{const t=r((e=>e.replace(/http[s]?:\/\//,""))(e)),n=t.split("/");if(1===n.length)return{balancer:n[0],proxy:void 0};const i=n[0];return{balancer:t.replace(i+"/",""),proxy:i}},o=e=>i(e).balancer.replace(/:\d+$/,"")},77630:(e,t,n)=>{"use strict";n.d(t,{De:()=>o,Vk:()=>a});var r=n(69446);const i="https://",o=(e,t)=>{const n=null!==(o=e)&&void 0!==o&&o.startsWith("vm-")?`u-${o}`:o;var o;const a=(0,r.M6)(t).proxy;return a?i+a+"/"+n:i+n},a=(e,t,n)=>{const{Host:i,Endpoints:a,NodeId:s}=e;if(n&&s){return`${(0,r.PG)(t)}/node/${s}`}if(i&&a){var l;const e=null===(l=a.find((e=>"http-mon"===e.Name)))||void 0===l?void 0:l.Address;if(!e||!i)return;return o(i+e,t)}}},11822:(e,t,n)=>{"use strict";n.d(t,{jU:()=>k,x5:()=>f,ei:()=>p,om:()=>h,pE:()=>l,Pn:()=>c,PB:()=>u,PX:()=>d,Wg:()=>a,_d:()=>s,nh:()=>m,We:()=>w,fW:()=>x,KH:()=>E,Cb:()=>S,UF:()=>_,F:()=>g,dZ:()=>I,id:()=>A});var r=n(370);let i=function(e){return e.Bool="Bool",e.Int8="Int8",e.Int16="Int16",e.Int32="Int32",e.Int64="Int64",e.Uint8="Uint8",e.Uint16="Uint16",e.Uint32="Uint32",e.Uint64="Uint64",e.Float="Float",e.Double="Double",e.Decimal="Decimal",e.String="String",e.Utf8="Utf8",e.Json="Json",e.JsonDocument="JsonDocument",e.Yson="Yson",e.Uuid="Uuid",e.Date="Date",e.Datetime="Datetime",e.Timestamp="Timestamp",e.Interval="Interval",e.TzDate="TzDate",e.TzDateTime="TzDateTime",e.TzTimestamp="TzTimestamp",e.Date32="Date32",e.Datetime64="Datetime64",e.Timestamp64="Timestamp64",e.Interval64="Interval64",e.TzDate32="TzDate32",e.TzDatetime64="TzDatetime64",e.TzTimestamp64="TzTimestamp64",e}({});var o=n(81288);const a={serializable:"serializable-read-write",stalero:"stale-read-only",onlinero:"online-read-only",snapshot:"snapshot-read-only",implicit:"implicit"},s={[a.serializable]:"Serializable",[a.stalero]:"Stale Read-Only",[a.onlinero]:"Online Read-Only",[a.snapshot]:"Snapshot Read-Only",[a.implicit]:"Implicit"},l={none:"none",basic:"basic",full:"full",profile:"profile"},c={[l.none]:"None",[l.full]:"Full",[l.basic]:"Basic",[l.profile]:"Profile"},u={off:"off",toplevel:"toplevel",basic:"basic",detailed:"detailed",diagnostic:"diagnostic",trace:"trace"},d={[u.off]:"Off",[u.toplevel]:"TopLevel",[u.basic]:"Basic",[u.detailed]:"Detailed",[u.diagnostic]:"Diagnostic",[u.trace]:"Trace"},f={execute:"execute",explain:"explain"},p={scan:"scan",script:"script",data:"data",query:"query",pg:"pg"},h={scan:"Scan",script:"YQL Script",data:"Data",query:"YQL - QueryService",pg:"PostgreSQL"},m=e=>{switch(e.replace(/\?$/,"")){case i.Bool:return"boolean";case i.Int8:case i.Int16:case i.Int32:case i.Int64:case i.Uint8:case i.Uint16:case i.Uint32:case i.Uint64:case i.Float:case i.Double:case i.Decimal:return"number";case i.String:case i.Utf8:case i.Json:case i.JsonDocument:case i.Yson:case i.Uuid:return"string";case i.Date:case i.Datetime:case i.Timestamp:case i.Interval:case i.TzDate:case i.TzDateTime:case i.TzTimestamp:case i.Date32:case i.Datetime64:case i.Timestamp64:case i.Interval64:case i.TzDate32:case i.TzDatetime64:case i.TzTimestamp64:return"date";default:return}},g=(e,t)=>{const n=t.map((e=>e.name));return e.map((e=>{const t={};return e.forEach(((e,r)=>{const i=n[r];null!==e&&"object"===typeof e||"boolean"===typeof e||Array.isArray(e)?t[i]=JSON.stringify(e):t[i]=e})),t}))},v=e=>{const{result:t,...n}=e;return{resultSets:null===t||void 0===t?void 0:t.map((e=>{const{rows:t,columns:n,truncated:r}=e;let i;return n&&(i=[]),t&&n&&(i=g(t,n)),{columns:n,result:i,truncated:r}})),...n}},y=e=>Boolean(e&&!Array.isArray(e)&&"result"in e&&Array.isArray(e.result)&&"object"===typeof e.result[0]&&"rows"in e.result[0]&&"columns"in e.result[0]),b=e=>Boolean(!e||"object"!==typeof e||Array.isArray(e)||"result"in e&&!Array.isArray(e.result));function w(e){return Boolean(e&&"object"===typeof e&&"error"in e&&"issues"in e)}function x(e){return b(e)?{}:y(e)?v(e):e}const _=e=>(e=>Boolean(e&&"queries"in e))(e)?e.queries&&e.queries.length?{Plan:e.queries[0].Plan,tables:e.queries[0].tables,meta:e.meta,SimplifiedPlan:e.queries[0].SimplifiedPlan}:{meta:e.meta}:e,E=e=>"string"===typeof e||w(e)?e:(0,o.TX)(e)?e.message:(0,o.qP)(e)?"data"in e&&w(e.data)?e.data:e.statusText:void 0,S=e=>{var t;const n=E(e);return"string"===typeof n?n:null===n||void 0===n||null===(t=n.error)||void 0===t?void 0:t.message},k={queryMode:p.query,transactionMode:a.implicit,timeout:60,limitRows:1e4,statisticsMode:l.none,tracingLevel:u.off},C=r.z.nativeEnum(p),O=r.z.nativeEnum(a),N=r.z.nativeEnum(l),T=r.z.nativeEnum(u),A=r.z.object({timeout:r.z.preprocess((e=>""===e?void 0:e),r.z.coerce.number().positive().or(r.z.undefined())),limitRows:r.z.preprocess((e=>""===e?void 0:e),r.z.coerce.number().gt(0).lte(1e5).or(r.z.undefined())),queryMode:C,transactionMode:O,statisticsMode:N,tracingLevel:T}),I=r.z.object({timeout:r.z.preprocess((e=>""===e?void 0:e),r.z.coerce.number().positive().optional().catch(k.timeout)),limitRows:r.z.preprocess((e=>""===e?void 0:e),r.z.coerce.number().gt(0).lte(1e5).optional().catch(k.limitRows)),queryMode:C.catch(k.queryMode),transactionMode:O.catch(k.transactionMode),statisticsMode:N.catch(k.statisticsMode),tracingLevel:T.catch(k.tracingLevel)}).catch(k)},81288:(e,t,n)=>{"use strict";n.d(t,{F0:()=>o,Pq:()=>a,TX:()=>r,qP:()=>i,uP:()=>s});const r=e=>Boolean(e&&"object"===typeof e&&"message"in e&&"string"===typeof e.message&&"network error"===e.message.toLowerCase()),i=e=>Boolean(e&&"object"===typeof e&&"status"in e);function o(e){return Boolean(e&&"object"===typeof e&&"name"in e&&"AxiosError"===e.name)}function a(e){return Boolean(e&&"object"===typeof e&&"status"in e&&(403===e.status||401===e.status))}function s(e){return Boolean(a(e)&&401===e.status&&"data"in e&&e.data&&"object"===typeof e.data&&"authUrl"in e.data&&e.data.authUrl&&"string"===typeof e.data.authUrl)}},73891:(e,t,n)=>{"use strict";n.d(t,{Bi:()=>c,Xo:()=>u,i6:()=>h,ee:()=>f,MC:()=>m,Jc:()=>g});var r=n(76086),i=n(56839),o=n(48372);const a=JSON.parse('{"daysHours":"{{days}}\xa0d\xa0{{hours}}\xa0h","hoursMin":"{{hours}}\xa0h\xa0{{minutes}}\xa0m","minSec":"{{minutes}}\xa0m\xa0{{seconds}}\xa0s","secMs":"{{seconds}}\xa0s\xa0{{ms}}\xa0ms","days":"{{days}}\xa0d","hours":"{{hours}}\xa0h","min":"{{minutes}}\xa0m","sec":"{{seconds}}\xa0s","ms":"{{ms}}\xa0ms"}'),s=JSON.parse('{"daysHours":"{{days}}\xa0\u0434\xa0{{hours}}\xa0\u0447","hoursMin":"{{hours}}\xa0\u0447\xa0{{minutes}}\xa0\u043c","minSec":"{{minutes}}\xa0\u043c\xa0{{seconds}}\xa0\u0441","secMs":"{{seconds}}\xa0\u0441\xa0{{ms}}\xa0\u043c\u0441","days":"{{days}}\xa0\u0434","hours":"{{hours}}\xa0\u0447","min":"{{minutes}}\xa0\u043c","sec":"{{seconds}}\xa0\u0441","ms":"{{ms}}\xa0\u043c\u0441"}'),l=(0,o.g4)("ydb-time-parsers",{ru:s,en:a}),c=(e,t=2)=>{const n=e%1e3;let i=Math.floor(e/1e3);const o=Math.floor(i/r.tt);i%=r.tt;const a=Math.floor(i/r.Jg);i%=r.Jg;const s=Math.floor(i/60);i%=60;const c=i,u={days:o,hours:a,minutes:s,seconds:c,ms:n};if(2===t){if(o>0)return l("daysHours",u);if(a>0)return l("hoursMin",u);if(s>0)return l("minSec",u);if(c>0)return l("secMs",u)}if(1===t){if(o>0)return l("days",u);if(a>0)return l("hours",u);if(s>0)return l("min",u);if(c>0)return l("sec",u)}return l("ms",u)},u=e=>l("ms",{ms:(0,i.ZV)(e)}),d=e=>(e.seconds?1e3*Number(e.seconds):0)+(e.nanos?e.nanos/r.zz:0),f=e=>"string"===typeof e?Date.parse(e):d(e);var p=n(41650);const h=e=>e?(e=>"string"===typeof e?1e3*parseInt(e,10):d(e))(e):0,m=e=>{if(!e)return 0;const t=Date.now()-f(e);return t<0?0:t},g=(e,t=0)=>e&&(0,p.kf)(e)?(0,i.CR)(Number(e)/1e3,t):0},41650:(e,t,n)=>{"use strict";function r(e){if(e)try{return JSON.parse(e)}catch{return e}}n.d(t,{O4:()=>a,en:()=>d,kf:()=>c,pY:()=>l,qF:()=>r,wb:()=>s,z0:()=>u});const i=[" B"," KB"," MB"," GB"," TB"," PB"," EB"],o=1e3;function a(e){const t=function(e){const t=Number(e);if(isNaN(t))return"";const n=t/o**2;return n<10?n.toFixed(2)+i[2]:n<100?n.toFixed(1)+i[2]:n.toFixed()+i[2]}(e);return`${t}${t?"ps":""}`}function s(e,t){const n=Number(e);if(isNaN(n))return"N/A";const r=n/1e9;return t?r.toFixed()+i[3]:r<10?r.toFixed(2)+i[3]:r<100?r.toFixed(1)+i[3]:r.toFixed()+i[3]}function l(e){const t=String(e);let n=t;for(let r=t.length;r<9;r++)n="0"+n;return n}function c(e){return"number"===typeof e?!isNaN(e):"string"===typeof e&&(!isNaN(Number(e))&&!isNaN(parseFloat(e)))}function u(e,t){return Number(e).toExponential(t)}const d="\xa0"},66592:(e,t,n)=>{"use strict";n.d(t,{OT:()=>a,_n:()=>s,lm:()=>o,s5:()=>i});var r=n(38596);const i=e=>e.split("").reduce(((e,t)=>{const n=(e<<5)-e+t.charCodeAt(0);return 0|n}),0),o=["#008000","#4169e1","#ffd700","#ff8c00","#808000","#e9967a","#ff1493","#00bfff","#da70d6","#8b4513","#b22222"],a="#3cb371",s=(e=[])=>(e=>{const t=Array.from(e.keys()).map((e=>({version:e,hash:i(e)}))),n=new Map;let r=o.length-1;return t.sort(((e,t)=>e.hash-t.hash)).forEach((t=>{if(/^(\w+-)?stable/.test(t.version)){r=(r+1)%o.length,n.set(t.version,o[r]);const a=Array.from(e.get(t.version)||[]).filter((e=>e!==t.version)).map((e=>({version:e,hash:i(e)}))),s=a.length;a.sort(((e,t)=>t.hash-e.hash)).forEach(((e,t)=>{const i=o[r],a=Math.max(100-t*(100/s),20),l=`${i}${Math.round(255*a/100).toString(16)}`;n.set(e.version,l)}))}else n.set(t.version,a)})),n})(((e,t=new Map)=>(e.forEach((e=>{var n;const i=(0,r.Q)(e),o=(0,r.U)(e);t.has(i)||t.set(i,new Set),null===(n=t.get(i))||void 0===n||n.add(o)})),t))(e))},38596:(e,t,n)=>{"use strict";n.d(t,{Q:()=>i,U:()=>r});const r=e=>{let t=e;/\d{1,}-\d{1,}(-\d){0,}(-hotfix-\d{1,}(-\d{1,})?)?\.[0-9a-zA-Z]+$/.test(e)&&(t=t.replace(/(-hotfix-\d{1,}(-\d{1,})?)?\.[0-9a-zA-Z]+$/,""));return/\d{1,}-\d{1,}-\d{1,}-\d{1,}$/.test(e)&&(t=t.replace(/-\d{1,}$/,"")),t},i=e=>{const t=r(e);return/\d{1,}-\d{1,}-\d{1,}/.test(t)?t.replace(/-\d{1,}$/,""):t}},31560:(e,t)=>{"use strict";function n(e){function t(t,i,o,a){var s=i?n+t+e.e+i:n+t,l=s;if(o){var c=" "+l+e.m;for(var u in o)if(o.hasOwnProperty(u)){var d=o[u];!0===d?l+=c+u:d&&(l+=c+u+r+d)}}if(void 0!==a)for(var f=0,p=(a=Array.isArray(a)?a:[a]).length;f<p;f++){var h=a[f];if(h&&"string"==typeof h.valueOf())for(var m=h.valueOf().split(" "),g=0;g<m.length;g++){var v=m[g];v!==s&&(l+=" "+v)}}return l}var n=e.n||"",r=e.v||e.m;return function(e,n){return function(r,i,o){return"string"==typeof r?"string"==typeof i||Array.isArray(i)?t(e,r,void 0,i):t(e,r,i,o):t(e,n,r,i)}}}n({e:"-",m:"_"}),t.withNaming=n},82435:(e,t,n)=>{"use strict";e.exports=n(31560)},16332:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>A,Kq:()=>O,hS:()=>_,kz:()=>S,vt:()=>E});var r=n(59284),i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)},o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},a=Symbol("NiceModalId"),s={},l=r.createContext(s),c=r.createContext(null),u={},d={},f=0,p=function(){throw new Error("No dispatch method detected, did you embed your app with NiceModal.Provider?")},h=function(){return"_nice_modal_"+f++},m=function(e,t){var n,r,o;switch(void 0===e&&(e=s),t.type){case"nice-modal/show":var a=t.payload,l=a.modalId,c=a.args;return i(i({},e),((n={})[l]=i(i({},e[l]),{id:l,args:c,visible:!!d[l],delayVisible:!d[l]}),n));case"nice-modal/hide":return e[l=t.payload.modalId]?i(i({},e),((r={})[l]=i(i({},e[l]),{visible:!1}),r)):e;case"nice-modal/remove":l=t.payload.modalId;var u=i({},e);return delete u[l],u;case"nice-modal/set-flags":var f=t.payload,p=(l=f.modalId,f.flags);return i(i({},e),((o={})[l]=i(i({},e[l]),p),o));default:return e}};var g={},v={},y=function(e){return"string"===typeof e?e:(e[a]||(e[a]=h()),e[a])};function b(e,t){var n=y(e);if("string"===typeof e||u[n]||S(n,e),p(function(e,t){return{type:"nice-modal/show",payload:{modalId:e,args:t}}}(n,t)),!g[n]){var r,i,o=new Promise((function(e,t){r=e,i=t}));g[n]={resolve:r,reject:i,promise:o}}return g[n].promise}function w(e){var t=y(e);if(p(function(e){return{type:"nice-modal/hide",payload:{modalId:e}}}(t)),delete g[t],!v[t]){var n,r,i=new Promise((function(e,t){n=e,r=t}));v[t]={resolve:n,reject:r,promise:i}}return v[t].promise}var x=function(e){var t=y(e);p(function(e){return{type:"nice-modal/remove",payload:{modalId:e}}}(t)),delete g[t],delete v[t]};function _(e,t){var n=(0,r.useContext)(l),i=(0,r.useContext)(c),o=null,a=e&&"string"!==typeof e;if(!(o=e?y(e):i))throw new Error("No modal id found in NiceModal.useModal.");var s=o;(0,r.useEffect)((function(){a&&!u[s]&&S(s,e,t)}),[a,s,e,t]);var d=n[s],f=(0,r.useCallback)((function(e){return b(s,e)}),[s]),p=(0,r.useCallback)((function(){return w(s)}),[s]),h=(0,r.useCallback)((function(){return x(s)}),[s]),m=(0,r.useCallback)((function(e){var t;null===(t=g[s])||void 0===t||t.resolve(e),delete g[s]}),[s]),_=(0,r.useCallback)((function(e){var t;null===(t=g[s])||void 0===t||t.reject(e),delete g[s]}),[s]),E=(0,r.useCallback)((function(e){var t;null===(t=v[s])||void 0===t||t.resolve(e),delete v[s]}),[s]);return(0,r.useMemo)((function(){return{id:s,args:null===d||void 0===d?void 0:d.args,visible:!!(null===d||void 0===d?void 0:d.visible),keepMounted:!!(null===d||void 0===d?void 0:d.keepMounted),show:f,hide:p,remove:h,resolve:m,reject:_,resolveHide:E}}),[s,null===d||void 0===d?void 0:d.args,null===d||void 0===d?void 0:d.visible,null===d||void 0===d?void 0:d.keepMounted,f,p,h,m,_,E])}var E=function(e){return function(t){var n,a=t.defaultVisible,s=t.keepMounted,u=t.id,f=o(t,["defaultVisible","keepMounted","id"]),h=_(u),m=h.args,g=h.show,v=(0,r.useContext)(l),y=!!v[u];(0,r.useEffect)((function(){return a&&g(),d[u]=!0,function(){delete d[u]}}),[u,g,a]),(0,r.useEffect)((function(){s&&p(function(e,t){return{type:"nice-modal/set-flags",payload:{modalId:e,flags:t}}}(u,{keepMounted:!0}))}),[u,s]);var b=null===(n=v[u])||void 0===n?void 0:n.delayVisible;return(0,r.useEffect)((function(){b&&g(m)}),[b,m,g]),y?r.createElement(c.Provider,{value:u},r.createElement(e,i({},f,m))):null}},S=function(e,t,n){u[e]?u[e].props=n:u[e]={comp:t,props:n}},k=function(){var e=(0,r.useContext)(l),t=Object.keys(e).filter((function(t){return!!e[t]}));t.forEach((function(e){u[e]||d[e]||console.warn("No modal found for id: "+e+". Please check the id or if it is registered or declared via JSX.")}));var n=t.filter((function(e){return u[e]})).map((function(e){return i({id:e},u[e])}));return r.createElement(r.Fragment,null,n.map((function(e){return r.createElement(e.comp,i({key:e.id,id:e.id},e.props))})))},C=function(e){var t=e.children,n=(0,r.useReducer)(m,s),i=n[0];return p=n[1],r.createElement(l.Provider,{value:i},t,r.createElement(k,null))},O=function(e){var t=e.children,n=e.dispatch,i=e.modals;return n&&i?(p=n,r.createElement(l.Provider,{value:i},t,r.createElement(k,null))):r.createElement(C,null,t)},N=function(e){return{visible:e.visible,onOk:function(){return e.hide()},onCancel:function(){return e.hide()},afterClose:function(){e.resolveHide(),e.keepMounted||e.remove()}}},T=function(e){return{visible:e.visible,onClose:function(){return e.hide()},afterVisibleChange:function(t){t||e.resolveHide(),!t&&!e.keepMounted&&e.remove()}}};const A={Provider:O,ModalDef:function(e){var t=e.id,n=e.component;return(0,r.useEffect)((function(){return S(t,n),function(){!function(e){delete u[e]}(t)}}),[t,n]),null},ModalHolder:function(e){var t,n=e.modal,a=e.handler,s=void 0===a?{}:a,l=o(e,["modal","handler"]),c=(0,r.useMemo)((function(){return h()}),[]),d="string"===typeof n?null===(t=u[n])||void 0===t?void 0:t.comp:n;if(!s)throw new Error("No handler found in NiceModal.ModalHolder.");if(!d)throw new Error("No modal found for id: "+n+" in NiceModal.ModalHolder.");return s.show=(0,r.useCallback)((function(e){return b(c,e)}),[c]),s.hide=(0,r.useCallback)((function(){return w(c)}),[c]),r.createElement(d,i({id:c},l))},NiceModalContext:l,create:E,register:S,getModal:function(e){var t;return null===(t=u[e])||void 0===t?void 0:t.comp},show:b,hide:w,remove:x,useModal:_,reducer:m,antdModal:N,antdDrawer:T,muiDialog:function(e){return{open:e.visible,onClose:function(){return e.hide()},onExited:function(){e.resolveHide(),!e.keepMounted&&e.remove()}}},bootstrapDialog:function(e){return{show:e.visible,onHide:function(){return e.hide()},onExited:function(){e.resolveHide(),!e.keepMounted&&e.remove()}}}}},22551:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.STRICT=void 0,t.STRICT=!0},95197:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HTML5_INPUT_FORMATS=t.englishFormats=t.INVALID_DATE_STRING=t.DEFAULT_SYSTEM_DATE_FORMAT=void 0,t.DEFAULT_SYSTEM_DATE_FORMAT="YYYY-MM-DD",t.INVALID_DATE_STRING="Invalid Date",t.englishFormats={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t.HTML5_INPUT_FORMATS={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"}},72328:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(22551),t),i(n(95197),t),i(n(71165),t)},71165:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UtcTimeZone=void 0,t.UtcTimeZone="UTC"},40453:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isDateTime=w,t.dateTime=x,t.dateTimeUtc=function(e){var t=e||{},n=t.input,r=t.format,i=t.lang,s=a.default.locale(i||l.settings.getLocale(),void 0,!0);return y({ts:b(n,o.UtcTimeZone,r,i,!0)[0],timeZone:o.UtcTimeZone,offset:0,locale:s})};var o=n(72328),a=i(n(38960)),s=n(62391),l=n(77966),c=n(84080),u=n(13064),d=n(29863),f=n(6597),p=n(16244),h=Symbol("isDateTime"),m=function(){function e(e){this._weekInfo=null,this[h]=!0,this._timestamp=e.ts,this._locale=e.locale,this._timeZone=e.timeZone,this._offset=e.offset,this._c=(0,u.tsToObject)(e.ts,e.offset),this._localeData=e.localeData,this._isValid=e.isValid}return e.isDateTime=function(e){return"object"===typeof e&&e&&h in e&&!0===e[h]||!1},e.prototype.format=function(e){return this.isValid()?void 0===e&&0===this._offset?this.format("YYYY-MM-DDTHH:mm:ss[Z]"):(0,d.formatDate)(this,e,this._localeData):this._localeData.invalidDate||o.INVALID_DATE_STRING},e.prototype.toISOString=function(e){return e?new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",this.format("Z")):this.toDate().toISOString()},e.prototype.utcOffset=function(e,t){var n=void 0!==e&&null!==e;if(!this.isValid())return n?this:NaN;if(n){var r=void 0;if("string"===typeof e){if(null===(r=(0,u.offsetFromString)(e)))return this}else r=Math.abs(e)<16?60*e:e;var i=this.valueOf();return t&&(i-=60*(r-this._offset)*1e3),y({ts:i,timeZone:o.UtcTimeZone,offset:r,locale:this._locale})}return this._offset},e.prototype.timeZone=function(e,t){var n;if(void 0===e)return"system"===this._timeZone?(0,c.guessUserTimeZone)():this._timeZone;if(!this.isValid())return this;var r=(0,c.normalizeTimeZone)(e,l.settings.getDefaultTimeZone()),i=this.valueOf(),o=(0,c.timeZoneOffset)(r,i);return t&&(i+=60*this._offset*1e3,i=(n=(0,c.fixOffset)(i,o,r))[0],o=n[1]),y({ts:i,timeZone:r,offset:o,locale:this._locale})},e.prototype.add=function(e,t){return this.addSubtract(e,t,1)},e.prototype.subtract=function(e,t){return this.addSubtract(e,t,-1)},e.prototype.startOf=function(e){if(!this.isValid())return this;var t={},n=(0,u.normalizeComponent)(e);switch(n){case"year":case"quarter":t.month="quarter"===n?this.month()-this.month()%3:0;case"month":case"weekNumber":case"isoWeekNumber":t.date="weekNumber"===n?this.date()-this.weekday():"isoWeekNumber"===n?this.date()-(this.isoWeekday()-1):1;case"day":case"date":case"weekday":case"isoWeekday":case"dayOfYear":t.hour=0;case"hour":t.minute=0;case"minute":t.second=0;case"second":t.millisecond=0}return this.set(t)},e.prototype.endOf=function(e){var t;if(!this.isValid())return this;var n={},r=(0,u.normalizeComponent)(e);switch(r){case"year":case"quarter":n.month="quarter"===r?this.month()-this.month()%3+2:11;case"month":case"weekNumber":case"isoWeekNumber":n.date="weekNumber"===r?this.date()-this.weekday()+6:"isoWeekNumber"===r?this.date()-(this.isoWeekday()-1)+6:(0,u.daysInMonth)(this.year(),null!==(t=n.month)&&void 0!==t?t:this.month());case"day":case"date":case"weekday":case"isoWeekday":case"dayOfYear":n.hour=23;case"hour":n.minute=59;case"minute":n.second=59;case"second":n.millisecond=999}return this.set(n)},e.prototype.local=function(e){return this.timeZone("system",e)},e.prototype.valueOf=function(){return this.isValid()?this._timestamp:NaN},e.prototype.isSame=function(e,t){var n=b(e,"system")[0];return!(!this.isValid()||isNaN(n))&&(!this.isBefore(n,t)&&!this.isAfter(n,t))},e.prototype.isBefore=function(e,t){var n=b(e,"system")[0];if(!this.isValid()||isNaN(n))return!1;var r=(0,u.normalizeDurationUnit)(null!==t&&void 0!==t?t:"millisecond");return("milliseconds"===r?this.valueOf():this.endOf(r).valueOf())<n},e.prototype.isAfter=function(e,t){var n=b(e,"system")[0];if(!this.isValid()||isNaN(n))return!1;var r=(0,u.normalizeDurationUnit)(null!==t&&void 0!==t?t:"millisecond");return("milliseconds"===r?this.valueOf():this.startOf(r).valueOf())>n},e.prototype.isValid=function(){return this._isValid},e.prototype.diff=function(t,n,r){if(!this.isValid())return NaN;var i=e.isDateTime(t)?t.timeZone(this._timeZone):y({ts:b(t,"system")[0],timeZone:this._timeZone,locale:this._locale,offset:this._offset});if(!i.isValid())return NaN;var o=(0,u.normalizeDurationUnit)(n||"millisecond"),a=6e4*(i.utcOffset()-this.utcOffset()),s=0;switch(o){case"years":s=(0,u.monthDiff)(this,i)/12;break;case"quarters":s=(0,u.monthDiff)(this,i)/3;break;case"months":s=(0,u.monthDiff)(this,i);break;case"weeks":s=(this.valueOf()-i.valueOf()-a)/6048e5;break;case"days":s=(this.valueOf()-i.valueOf()-a)/864e5;break;case"hours":s=(this.valueOf()-i.valueOf())/36e5;break;case"minutes":s=(this.valueOf()-i.valueOf())/6e4;break;case"seconds":s=(this.valueOf()-i.valueOf())/1e3;break;default:s=this.valueOf()-i.valueOf()}return r?s:Math.floor(Math.abs(s))*Math.sign(s)||0},e.prototype.fromNow=function(e){return this.from(x({timeZone:this._timeZone,lang:this._locale}),e)},e.prototype.from=function(t,n){if(!this.isValid())return this._localeData.invalidDate||o.INVALID_DATE_STRING;var r=e.isDateTime(t)?t.timeZone(this._timeZone):y({ts:b(t,"system",this._locale)[0],timeZone:this._timeZone,locale:this._locale,offset:this._offset});if(!r.isValid())return this._localeData.invalidDate||o.INVALID_DATE_STRING;var i=r,a=this,l=!1;a.isBefore(i)&&(i=this,a=r,l=!0);var c=a.month()-i.month()+12*(a.year()-i.year());i.add(c,"months").isAfter(a)&&c--;var u=a.valueOf()-i.add(c,"months").valueOf();return l&&(c=-c,u=-u),(0,p.fromTo)((0,s.duration)({months:c,milliseconds:u}),this._localeData.relativeTime,n)},e.prototype.locale=function(e){return e?this.isValid()?y({ts:this.valueOf(),timeZone:this._timeZone,offset:this._offset,locale:a.default.locale(e,void 0,!0)}):this:this._locale},e.prototype.toDate=function(){return new Date(this.valueOf())},e.prototype.unix=function(){return this.isValid()?Math.floor(this.valueOf()/1e3):NaN},e.prototype.utc=function(e){return this.timeZone(o.UtcTimeZone,e)},e.prototype.daysInMonth=function(){return this.isValid()?(0,u.daysInMonth)(this._c.year,this._c.month):NaN},e.prototype.set=function(e,t){var n,i;if(!this.isValid())return this;var a,s=this._c,l=(0,u.normalizeDateComponents)("object"===typeof e?e:((n={})[e]=t,n),u.normalizeComponent),d=void 0!==l.day||void 0!==l.weekNumber||void 0!==l.weekYear||void 0!==l.isoWeekNumber||void 0!==l.weekday||void 0!==l.isoWeekday||void 0!==l.isoWeekYear,f=void 0!==l.dayOfYear,p=void 0!==l.year,h=void 0!==l.month||void 0!==l.date;if(d&&(p||h||f))throw new Error("Can't mix weekYear/weekNumber units with year/month/day");if(f&&h)throw new Error("Can't mix day of year with month/day");if(d){var m=l.weekday,v=l.weekNumber,b=l.weekYear,w=l.isoWeekday,x=l.isoWeekNumber,_=l.isoWeekYear,E=l.day,S=void 0!==m||void 0!==v||void 0!==b;if(S&&(void 0!==w||void 0!==x||void 0!==_||void 0!==E))throw new Error("Can't mix local week with ISO week");var k=this.weekInfo();if(S){var C=g(this._localeData),O=C.minDaysInFirstWeek,N=C.startOfWeek,T={weekday:(null!==m&&void 0!==m?m:k.weekday)+1,weekNumber:null!==v&&void 0!==v?v:k.weekNumber,weekYear:null!==b&&void 0!==b?b:k.weekYear};a=r(r(r({},s),l),(0,u.weekToGregorian)(T,O,N))}else{T={weekday:null!==w&&void 0!==w?w:void 0===E?k.isoWeekday:E||7,weekNumber:null!==x&&void 0!==x?x:k.isoWeekNumber,weekYear:null!==_&&void 0!==_?_:k.isoWeekYear};a=r(r(r({},s),l),(0,u.weekToGregorian)(T,4,1))}}else f?a=r(r(r({},s),l),(0,u.uncomputeOrdinal)(r(r({ordinal:this.dayOfYear()},s),l))):(a=r(r({},s),l),void 0===l.date&&(a.date=Math.min((0,u.daysInMonth)(a.year,a.month),a.date)));var A=(0,u.objToTS)(a),I=this._offset;return this._timeZone===o.UtcTimeZone?A-=60*I*1e3:(A=(i=(0,c.fixOffset)(A,I,this._timeZone))[0],I=i[1]),y({ts:A,timeZone:this._timeZone,offset:I,locale:this._locale})},e.prototype.date=function(e){return"number"===typeof e?this.set("date",e):this.isValid()?this._c.date:NaN},e.prototype.month=function(e){return"number"===typeof e?this.set("month",e):this.isValid()?this._c.month:NaN},e.prototype.quarter=function(e){return"number"===typeof e?this.set("quarter",e):this.isValid()?Math.ceil((this._c.month+1)/3):NaN},e.prototype.year=function(e){return"number"===typeof e?this.set("year",e):this.isValid()?this._c.year:NaN},e.prototype.day=function(e){return"number"===typeof e?this.set("day",e):this.isValid()?this.weekInfo().day:NaN},e.prototype.isoWeekday=function(e){return"number"===typeof e?this.set("isoWeekday",e):this.isValid()?this.weekInfo().isoWeekday:NaN},e.prototype.hour=function(e){return"number"===typeof e?this.set("hour",e):this.isValid()?this._c.hour:NaN},e.prototype.minute=function(e){return"number"===typeof e?this.set("minute",e):this.isValid()?this._c.minute:NaN},e.prototype.second=function(e){return"number"===typeof e?this.set("second",e):this.isValid()?this._c.second:NaN},e.prototype.millisecond=function(e){return"number"===typeof e?this.set("millisecond",e):this.isValid()?this._c.millisecond:NaN},e.prototype.week=function(e){return"number"===typeof e?this.set("week",e):this.isValid()?this.weekInfo().weekNumber:NaN},e.prototype.weekYear=function(e){return"number"===typeof e?this.set("weekYear",e):this.isValid()?this.weekInfo().weekYear:NaN},e.prototype.weeksInYear=function(){var e=g(this._localeData),t=e.minDaysInFirstWeek,n=e.startOfWeek;return this.isValid()?(0,u.weeksInWeekYear)(this.year(),t,n):NaN},e.prototype.isoWeek=function(e){return"number"===typeof e?this.set("isoWeek",e):this.isValid()?this.weekInfo().isoWeekNumber:NaN},e.prototype.isoWeekYear=function(e){return"number"===typeof e?this.set("isoWeekYear",e):this.isValid()?this.weekInfo().isoWeekYear:NaN},e.prototype.isoWeeksInYear=function(){return this.isValid()?(0,u.weeksInWeekYear)(this.year(),4,1):NaN},e.prototype.weekday=function(e){return"number"===typeof e?this.set("weekday",e):this.isValid()?this.weekInfo().weekday:NaN},e.prototype.dayOfYear=function(e){return"number"===typeof e?this.set("dayOfYear",e):this.isValid()?(0,u.computeOrdinal)(this._c):NaN},e.prototype.toString=function(){return this.isValid()?this.toDate().toUTCString():this._localeData.invalidDate||o.INVALID_DATE_STRING},e.prototype.toJSON=function(){return this.isValid()?this.toISOString():null},e.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.isValid()?"DateTime { ts: ".concat(this.toISOString(),", zone: ").concat(this.timeZone(),", offset: ").concat(this.utcOffset(),", locale: ").concat(this.locale()," }"):"DateTime { ".concat(o.INVALID_DATE_STRING," }")},e.prototype.addSubtract=function(e,t,n){var i;if(!this.isValid())return this;var a=this._timeZone,l=this.valueOf(),d=this._offset,f=(0,s.duration)(e,t),p=(0,u.tsToObject)(l,d),h=v(f.months()+3*f.quarters()+12*f.years()),m=v(f.days()+7*f.weeks()),g=f.milliseconds()+1e3*f.seconds()+60*f.minutes()*1e3+60*f.hours()*60*1e3;if(h||m){var b=p.month+n*h,w=Math.min(p.date,(0,u.daysInMonth)(p.year,b))+n*m;l=(0,u.objToTS)(r(r({},p),{month:b,date:w})),a===o.UtcTimeZone?l-=60*d*1e3:(l=(i=(0,c.fixOffset)(l,d,a))[0],d=i[1])}return g&&(l+=n*g,a!==o.UtcTimeZone&&(d=(0,c.timeZoneOffset)(a,l))),y({ts:l,timeZone:a,offset:d,locale:this._locale})},e.prototype.weekInfo=function(){if(!this._weekInfo){var e=g(this._localeData),t=e.startOfWeek,n=e.minDaysInFirstWeek;this._weekInfo=(0,u.gregorianToWeek)(this._c,n,t)}return this._weekInfo},e}();function g(e){return{startOfWeek:e.weekStart||7,minDaysInFirstWeek:e.yearStart||1}}function v(e){var t=Math.sign(e);return Math.round(t*e)*t}function y(e){var t=e.ts,n=e.timeZone,r=e.offset,i=e.locale||"en",o=a.default.Ls[i],s=!isNaN(Number(new Date(t)));return new m({ts:t,timeZone:n,offset:r,locale:i,localeData:o,isValid:s})}function b(e,t,n,r,i){var s,u,d,p;if(void 0===i&&(i=!1),w(e)||"number"===typeof e||e instanceof Date||!isNaN(function(e){if(null===e||void 0===e)return NaN;if("string"===typeof e)return NaN;if("number"===typeof e||"bigint"===typeof e)return Number(e);if("object"===typeof e){var t=e.valueOf();if("number"===typeof t||"bigint"===typeof t)return Number(t)}return NaN}(e)))d=Number(e);else if(null===e||void 0===e)d=Date.now();else if(Array.isArray(e))d=(s=(0,f.getTimestampFromArray)(e,t))[0],p=s[1];else if("object"===typeof e)d=(u=(0,f.getTimestampFromObject)(e,t))[0],p=u[1];else if(i)d=a.default.utc(e,n,o.STRICT).valueOf();else{var h=a.default.locale(r||l.settings.getLocale(),void 0,!0);d=(n?(0,a.default)(e,n,h,o.STRICT):(0,a.default)(e,void 0,h)).valueOf()}return[d,p=null!==p&&void 0!==p?p:(0,c.timeZoneOffset)(t,d)]}function w(e){return m.isDateTime(e)}function x(e){var t=e||{},n=t.input,r=t.format,i=t.timeZone,o=t.lang,s=(0,c.normalizeTimeZone)(i,l.settings.getDefaultTimeZone()),u=a.default.locale(o||l.settings.getLocale(),void 0,!0),d=b(n,s,r,o);return y({ts:d[0],timeZone:s,offset:d[1],locale:u})}},29863:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FORMAT_DEFAULT=void 0,t.expandFormat=l,t.formatDate=function(e,n,r){void 0===n&&(n=t.FORMAT_DEFAULT);void 0===r&&(r=i.settings.getLocaleData());var o=l(n,r.formats);return o.replace(c,(function(t){return u[t]?u[t](e,r,o):d(t)}))};var r=n(72328),i=n(77966),o=n(84080);function a(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}var s=/(\[[^\]]*])|(LTS?|l{1,4}|L{1,4})/g;function l(e,t){var n;void 0===t&&(t=null!==(n=i.settings.getLocaleData().formats)&&void 0!==n?n:r.englishFormats);for(var o=e,l=0;l<5;l++){var c=o.replace(s,(function(e,n,i){if(i){var o=i.toUpperCase();return t[i]||r.englishFormats[i]||a(t[o]||r.englishFormats[o])}return n}));if(c===o)break;o=c}return o}t.FORMAT_DEFAULT="YYYY-MM-DDTHH:mm:ssZ";var c=/(\[[^[]*\])|([Hh]mm(ss)?|Mo|M{1,4}|Do|DDDo|D{1,4}|d{2,4}|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|Y{4,6}|YY?|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,u={};function d(e){return e.replace(/^\[([\s\S)]*)\]$/g,"$1")}function f(e){return e%12||12}function p(e){return e||24}function h(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r}function m(e){var t=e.date,n=e.format,r=e.data,i=e.index,o=e.fullData,a=e.maxLength,s="";if(r&&(s="function"===typeof r?r(t,n):r[i]),!s&&o&&(s="function"===typeof o?o(t,n):o[i])&&(s=s.slice(0,a)),s)return s;throw new Error("Invalid locale data")}function g(e,t,n){void 0===n&&(n=!1);var r=String(Math.abs(e)),i="";return e<0?i="-":n&&(i="+"),"".concat(i).concat(r.padStart(t,"0"))}u.Y=function(e){var t=e.year();return t<=9999?g(t,4):"+"+t},u.YY=function(e){return g(e.year()%100,2)},u.YYYY=function(e){return g(e.year(),4)},u.YYYYY=function(e){return g(e.year(),5)},u.YYYYYY=function(e){return g(e.year(),6,!0)},u.M=function(e){return"".concat(e.month()+1)},u.MM=function(e){return g(e.month()+1,2)},u.Mo=function(e,t){var n;return d("".concat(null===(n=t.ordinal)||void 0===n?void 0:n.call(t,e.month()+1,"M")))},u.MMM=function(e,t,n){var r=e.month();return m({date:e,format:n,data:t.monthsShort,index:r,fullData:t.months,maxLength:3})},u.MMMM=function(e,t,n){var r=e.month();return m({date:e,format:n,data:t.months,index:r})},u.w=function(e){return"".concat(e.week())},u.ww=function(e){return g(e.week(),2)},u.wo=function(e,t){var n;return d("".concat(null===(n=t.ordinal)||void 0===n?void 0:n.call(t,e.week(),"w")))},u.W=function(e){return"".concat(e.isoWeek())},u.WW=function(e){return g(e.isoWeek(),2)},u.Wo=function(e,t){var n;return d("".concat(null===(n=t.ordinal)||void 0===n?void 0:n.call(t,e.isoWeek(),"W")))},u.d=function(e){return"".concat(e.day())},u.do=function(e,t){var n;return d("".concat(null===(n=t.ordinal)||void 0===n?void 0:n.call(t,e.day(),"d")))},u.dd=function(e,t,n){var r=e.day();return m({date:e,format:n,data:t.weekdaysMin,index:r,fullData:t.weekdays,maxLength:2})},u.ddd=function(e,t,n){var r=e.day();return m({date:e,format:n,data:t.weekdaysShort,index:r,fullData:t.weekdays,maxLength:3})},u.dddd=function(e,t,n){var r=e.day();return m({date:e,format:n,data:t.weekdays,index:r})},u.e=function(e){return"".concat(e.weekday())},u.E=function(e){return"".concat(e.isoWeekday())},u.H=function(e){return"".concat(e.hour())},u.HH=function(e){return g(e.hour(),2)},u.h=function(e){return"".concat(f(e.hour()))},u.hh=function(e){return g(f(e.hour()),2)},u.k=function(e){return"".concat(p(e.hour()))},u.kk=function(e){return g(p(e.hour()),2)},u.hmm=function(e){return"".concat(f(e.hour())).concat(g(e.minute(),2))},u.hmmss=function(e){return"".concat(f(e.hour())).concat(g(e.minute(),2)).concat(g(e.second(),2))},u.Hmm=function(e){return"".concat(e.hour()).concat(g(e.minute(),2))},u.Hmmss=function(e){return"".concat(e.hour()).concat(g(e.minute(),2)).concat(g(e.second(),2))},u.a=function(e,t){return(t.meridiem||h)(e.hour(),e.minute(),!0)},u.A=function(e,t){return(t.meridiem||h)(e.hour(),e.minute(),!1)},u.Z=function(e){var t=e.utcOffset(),n="+";return t<0&&(t=-t,n="-"),"".concat(n).concat(g(~~(t/60),2),":").concat(g(~~t%60,2))},u.ZZ=function(e){var t=e.utcOffset(),n="+";return t<0&&(t=-t,n="-"),"".concat(n).concat(g(~~(t/60),2)).concat(g(~~t%60,2))},u.Q=function(e){return"".concat(e.quarter())},u.Qo=function(e,t){var n;return d("".concat(null===(n=t.ordinal)||void 0===n?void 0:n.call(t,e.quarter(),"Q")))},u.D=function(e){return"".concat(e.date())},u.DD=function(e){return g(e.date(),2)},u.Do=function(e,t){var n;return d("".concat(null===(n=t.ordinal)||void 0===n?void 0:n.call(t,e.date(),"D")))},u.m=function(e){return"".concat(e.minute())},u.mm=function(e){return g(e.minute(),2)},u.s=function(e){return"".concat(e.second())},u.ss=function(e){return g(e.second(),2)},u.S=function(e){return"".concat(~~(e.millisecond()/100))},u.SS=function(e){return"".concat(~~(e.millisecond()/10))},u.SSS=function(e){return g(e.millisecond(),3)},u.SSSS=function(e){return g(10*e.millisecond(),4)},u.SSSSS=function(e){return g(100*e.millisecond(),5)},u.SSSSSS=function(e){return g(1e3*e.millisecond(),6)},u.SSSSSSS=function(e){return g(1e4*e.millisecond(),7)},u.SSSSSSSS=function(e){return g(1e5*e.millisecond(),8)},u.SSSSSSSSS=function(e){return g(1e6*e.millisecond(),9)},u.x=function(e){return"".concat(e.valueOf())},u.X=function(e){return"".concat(e.unix())},u.z=function(e){return(0,o.parseZoneInfo)({ts:e.valueOf(),locale:e.locale(),timeZone:e.timeZone(),offsetFormat:"short"})},u.zz=function(e){return(0,o.parseZoneInfo)({ts:e.valueOf(),locale:e.locale(),timeZone:e.timeZone(),offsetFormat:"long"})},u.DDD=function(e){return"".concat(e.dayOfYear())},u.DDDD=function(e){return g(e.dayOfYear(),3)},u.DDDo=function(e,t){var n;return d("".concat(null===(n=t.ordinal)||void 0===n?void 0:n.call(t,e.dayOfYear(),"DDD")))},u.gg=function(e){return g(e.weekYear()%100,2)},u.gggg=function(e){return g(e.weekYear(),4)},u.ggggg=function(e){return g(e.weekYear(),5)},u.GG=function(e){return g(e.isoWeekYear()%100,2)},u.GGGG=function(e){return g(e.isoWeekYear(),4)},u.GGGGG=function(e){return g(e.isoWeekYear(),5)}},60166:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(40453),t),i(n(29863),t)},6597:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTimestampFromArray=function(e,t){if(0===e.length)return s({},t);var n=e.map(Number),r=n[0],i=n[1],o=void 0===i?0:i,a=n[2],l=void 0===a?1:a,c=n[3],u=void 0===c?0:c,d=n[4],f=void 0===d?0:d,p=n[5],h=void 0===p?0:p,m=n[6];return s({year:r,month:o,date:l,hour:u,minute:f,second:h,millisecond:void 0===m?0:m},t)},t.getTimestampFromObject=s;var r=n(84080),i=n(13064);var o={year:1,month:1,date:1,hour:0,minute:0,second:0,millisecond:0},a=["year","month","date","hour","minute","second","millisecond"];function s(e,t){var n,s=(0,i.normalizeDateComponents)(e,i.normalizeComponent);s.date=null!==(n=s.day)&&void 0!==n?n:s.date;for(var l=(0,i.tsToObject)(Date.now(),(0,r.timeZoneOffset)(t,Date.now())),c=!1,u=0,d=a;u<d.length;u++){var f=d[u];void 0!==s[f]?c=!0:s[f]=c?o[f]:l[f]}var p=(0,r.fixOffset)((0,i.objToTS)(s),(0,r.timeZoneOffset)(t,Date.now()),t);return[p[0],p[1]]}},16244:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromTo=function(e,t,i){void 0===t&&(t=r);void 0===i&&(i=!1);for(var o,a=0,s="",l=0;l<n.length;l+=1){var c=n[l];c.d&&(a=e.as(c.d));var u=Math.round(Math.abs(a));if(o=a>0,u<=c.r){u<=1&&l>0&&(c=n[l-1]);var d=t[c.l];s="string"===typeof d?d.replace("%d","".concat(u)):d(u,i,c.l,o);break}}if(i)return s;var f=o?t.future:t.past;if("function"===typeof f)return f(s);return f.replace("%s",s)};var n=[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",r:1/0,d:"year"}],r={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}},57855:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isLikeRelative=function(e){return e.startsWith("now")},t.parse=function(e,t){void 0===t&&(t={});if(!e)return;var n,i,a,s=t.roundUp,l=t.timeZone,c="";"now"===e.substring(0,3)?(n=(0,r.dateTime)({timeZone:l}),c=e.substring(3)):(-1===(i=e.indexOf("||"))?(a=e,c=""):(a=e.substring(0,i),c=e.substring(i+2)),n=(0,r.dateTime)({input:a,timeZone:l}));if(!n.isValid())return;if(!c.length)return n;return o(c,n,s)},t.parseDateMath=o;var r=n(60166),i=["y","Q","M","w","d","h","m","s"];function o(e,t,n){for(var r=e.replace(/\s/g,""),o=t,a=0,s=r.length;a<s;){var l=r.charAt(a++),c=void 0,u=void 0;if("/"===l)c=0;else if("+"===l)c=1;else{if("-"!==l)return;c=2}if(isNaN(parseInt(r.charAt(a),10)))u=1;else if(2===r.length)u=parseInt(r.charAt(a),10);else{for(var d=a;!isNaN(parseInt(r.charAt(a),10));)if(++a>10)return;u=parseInt(r.substring(d,a),10)}if(0===c&&1!==u)return;var f=r.charAt(a++);if(!i.includes(f))return;0===c?o=n?o.endOf(f):o.startOf(f):1===c?o=o.add(u,f):2===c&&(o=o.subtract(u,f))}return o}},49837:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(57855),t)},38960:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(88409)),o=r(n(54533)),a=r(n(20549)),s=r(n(77354)),l=n(72328);i.default.extend(o.default),i.default.extend(s.default),i.default.extend(a.default),i.default.Ls.en.formats=l.englishFormats,t.default=i.default},50743:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDuration=function(e,t,n){void 0===n&&(n={});var l={},c=null,u=(t&&"object"===typeof t?t:n).lang,d="string"===typeof t?t:"milliseconds";if((0,i.isDuration)(e))return e;if(isNaN(Number(e)))if("string"===typeof e&&(c=a.exec(e))){var f="-"===c[1]?-1:1,p=c[8]&&"-"===c[8][0]?-1:1;l=(0,o.removeZeros)({y:s(c[2])*f,M:s(c[3])*f,w:s(c[4])*f,d:s(c[5])*f,h:s(c[6])*f,m:s(c[7])*f,s:s(c[8])*f,ms:Math.floor(1e3*s(c[9]?"0.".concat(c[9]):c[9]))*p*f})}else{if(!e||"object"!==typeof e)throw new Error("Unknown duration: ".concat(e));l=e}else l[d]=Number(e);return new i.DurationImpl({values:(0,r.normalizeDateComponents)(l,r.normalizeDurationUnit),locale:u})};var r=n(11345),i=n(57491),o=n(49860),a=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9]+)(?:[.,]([0-9]+)?)?S)?)?$/;function s(e){var t=e?parseFloat(e.replace(",",".")):0;return isNaN(t)?0:t}},57491:function(e,t,n){"use strict";var r,i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.DurationImpl=void 0,t.isDuration=function(e){return p.isDuration(e)};var a=n(16244),s=n(77966),l=n(13064),c=n(16572),u=n(50743),d=n(49860),f=Symbol("isDuration"),p=function(){function e(e){this[r]=!0,this._values=e.values,this._locale=e.locale||s.settings.getLocale(),this._isValid=e.isValid||!0}return e.isDuration=function(e){return"object"===typeof e&&e&&f in e&&!0===e[f]||!1},e.prototype.get=function(e){if(!this.isValid())return NaN;var t=(0,l.normalizeDurationUnit)(e);return this._values[t]||0},e.prototype.set=function(t){return this.isValid()?new e({values:i(i({},this._values),(0,l.normalizeDateComponents)(t,l.normalizeDurationUnit)),locale:this._locale}):this},e.prototype.as=function(e){if(!this.isValid())return NaN;var t=(0,l.normalizeDurationUnit)(e),n=this.days()+7*this.weeks()+this.hours()/24+this.minutes()/1440+this.seconds()/86400,r=this.months()+3*this.quarters()+12*this.years(),i=this.milliseconds();if("months"===t||"quarters"===t||"years"===t){var o=r+function(e){return 4800*e/146097}(n+i/864e5);switch(t){case"months":return o;case"quarters":return o/3;case"years":return o/12}}var a=n+function(e){return 146097*e/4800}(r);switch(t){case"weeks":return a/7+i/6048e5;case"days":return a+i/864e5;case"hours":return 24*a+i/36e5;case"minutes":return 1440*a+i/6e4;case"seconds":return 86400*a+i/1e3;case"milliseconds":return Math.floor(864e5*a)+i;default:throw new Error("Unknown unit "+t)}},e.prototype.milliseconds=function(){return this.isValid()?this._values.milliseconds||0:NaN},e.prototype.asMilliseconds=function(){return this.as("milliseconds")},e.prototype.seconds=function(){return this.isValid()?this._values.seconds||0:NaN},e.prototype.asSeconds=function(){return this.as("seconds")},e.prototype.minutes=function(){return this.isValid()?this._values.minutes||0:NaN},e.prototype.asMinutes=function(){return this.as("minutes")},e.prototype.hours=function(){return this.isValid()?this._values.hours||0:NaN},e.prototype.asHours=function(){return this.as("hours")},e.prototype.days=function(){return this.isValid()?this._values.days||0:NaN},e.prototype.asDays=function(){return this.as("days")},e.prototype.weeks=function(){return this.isValid()?this._values.weeks||0:NaN},e.prototype.asWeeks=function(){return this.as("weeks")},e.prototype.months=function(){return this.isValid()?this._values.months||0:NaN},e.prototype.asMonths=function(){return this.as("months")},e.prototype.quarters=function(){return this.isValid()?this._values.quarters||0:NaN},e.prototype.asQuarters=function(){return this.as("quarters")},e.prototype.years=function(){return this.isValid()?this._values.years||0:NaN},e.prototype.asYears=function(){return this.as("years")},e.prototype.add=function(t,n){if(!this.isValid())return this;for(var r=this.toObject(),i=(0,u.createDuration)(t,n).toObject(),o=0,a=Object.entries(i);o<a.length;o++){var s=a[o],l=s[0],c=s[1],d=l;r[d]=(r[d]||0)+c}return new e({values:r,locale:this._locale})},e.prototype.subtract=function(e,t){var n=(0,u.createDuration)(e,t).negate();return this.add(n)},e.prototype.negate=function(){for(var t={},n=0,r=Object.entries(this._values);n<r.length;n++){var i=r[n],o=i[0],a=i[1];t[o]=a?-a:0}return new e({values:t,locale:this._locale})},e.prototype.normalize=function(t){return this.isValid()?new e({values:(0,d.normalizeValues)(this._values,t),locale:this._locale}):this},e.prototype.shiftTo=function(t,n){if(!this.isValid())return this;var r=t.map((function(e){return(0,l.normalizeDurationUnit)(e)}));return new e({values:(0,d.shiftTo)(this._values,r,n),locale:this._locale})},e.prototype.rescale=function(t){return this.isValid()?new e({values:(0,d.rescale)(this._values,t),locale:this._locale}):this},e.prototype.toISOString=function(){if(!this.isValid())return"Invalid Duration";var e="P";return 0!==this.years()&&(e+=this.years()+"Y"),0===this.months()&&0===this.quarters()||(e+=this.months()+3*this.quarters()+"M"),0!==this.weeks()&&(e+=this.weeks()+"W"),0!==this.days()&&(e+=this.days()+"D"),0===this.hours()&&0===this.minutes()&&0===this.seconds()&&0===this.milliseconds()||(e+="T"),0!==this.hours()&&(e+=this.hours()+"H"),0!==this.minutes()&&(e+=this.minutes()+"M"),0===this.seconds()&&0===this.milliseconds()||(e+=Math.round(1e3*this.seconds()+this.milliseconds())/1e3+"S"),"P"===e&&(e+="T0S"),e},e.prototype.toJSON=function(){return this.toISOString()},e.prototype.toObject=function(){return this.isValid()?i({},this._values):{}},e.prototype.toString=function(){return this.toISOString()},e.prototype.valueOf=function(){return this.asMilliseconds()},e.prototype[(r=f,Symbol.for("nodejs.util.inspect.custom"))]=function(){return this.isValid()?"Duration { values: ".concat(JSON.stringify(this._values)," }"):"Duration { Invalid Duration }"},e.prototype.humanize=function(e){if(!this.isValid())return"Invalid Duration";var t=(0,c.getLocaleData)(this._locale);return(0,a.fromTo)(this,t.relativeTime,!e)},e.prototype.humanizeIntl=function(e){var t=this;if(void 0===e&&(e={}),!this.isValid())return"Invalid Duration";var n=d.orderedUnits.map((function(n){var r=t._values[n];return void 0===r?null:(0,c.getNumberFormat)(t._locale,i(i({style:"unit",unitDisplay:"long"},e),{unit:n.slice(0,-1)})).format(r)})).filter(Boolean);return(0,c.getListFormat)(this._locale,{type:"conjunction",style:e.listStyle||"narrow"}).format(n)},e.prototype.format=function(e,t){if(void 0===t&&(t={}),!this.isValid())return"Invalid Duration";for(var n,r=/(\[[^[]*\])|y+|M+|w+|d+|h+|m+|s+|S+|./g,a=[],s=[];n=r.exec(e);){var l=n[0],u=n[1],d=h(l[0]);d?(a.push({literal:!1,padTo:l.length,unit:d}),s.push(d)):u?a.push({literal:!0,value:u.slice(1,-1)}):a.push({literal:!0,value:l})}for(var f=this.shiftTo(s),p="",m=t.floor,g=void 0===m||m,v=t.forceSimple,y=o(t,["floor","forceSimple"]),b=!v||Object.keys(y).length>0,w=0,x=a;w<x.length;w++){var _=x[w];if(_.literal)p+=_.value;else{var E=f.get(_.unit);if(b){var S=(0,c.getNumberFormat)(this._locale,i(i({useGrouping:!1},y),{minimumIntegerDigits:_.padTo})),k=g?Math.floor(E):E;p+=S.format(k)}else{k=g?Math.floor(E):Math.round(1e3*E)/1e3;p+="".concat(k<0?"-":"").concat(Math.abs(k).toString().padStart(_.padTo,"0"))}}}return p},e.prototype.isValid=function(){return this._isValid},e.prototype.locale=function(t){return t?new e({values:this._values,locale:t}):this._locale},e}();function h(e){switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}}t.DurationImpl=p},62391:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDuration=t.duration=void 0;var r=n(50743);Object.defineProperty(t,"duration",{enumerable:!0,get:function(){return r.createDuration}});var i=n(57491);Object.defineProperty(t,"isDuration",{enumerable:!0,get:function(){return i.isDuration}})},49860:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.orderedUnits=void 0,t.normalizeValues=s,t.removeZeros=l,t.shiftTo=c,t.rescale=function(e,t){return l(c(s(e),["years","months","weeks","days","hours","minutes","seconds","milliseconds"],t))};var r=365.2425,i=30.436875,o=n({years:{quarters:4,months:12,weeks:52.1775,days:r,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:i,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3}},{weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}});t.orderedUnits=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"];var a=t.orderedUnits.slice(0).reverse();function s(e,r){for(var i,s,l,c,u,d,f,p=(void 0===r?{}:r).roundUp,h=n({},e),m=function(e){for(var t,n=null!==(t=e.milliseconds)&&void 0!==t?t:0,r=0,i=a.slice(1);r<i.length;r++){var s=i[r],l=e[s];l&&(n+=l*o[s].milliseconds)}return n}(e)<0?-1:1,g=null,v=0;v<a.length;v++){if(void 0!==h[x=a[v]]&&null!==h[x])if(g){var y=(null!==(i=h[g])&&void 0!==i?i:0)*m,b=o[x][g],w=Math.floor(y/b);h[x]=(null!==(s=h[x])&&void 0!==s?s:0)+w*m,h[g]=(null!==(l=h[g])&&void 0!==l?l:0)-w*b*m,g=x}else g=x}g=null;for(v=0;v<t.orderedUnits.length;v++){var x;if(void 0!==h[x=t.orderedUnits[v]]&&null!==h[x])if(g){var _=(null!==(c=h[g])&&void 0!==c?c:0)%1;h[g]=(null!==(u=h[g])&&void 0!==u?u:0)-_,h[x]=(null!==(d=h[x])&&void 0!==d?d:0)+_*o[g][x],g=x}else g=x}return p&&g&&h[g]&&(h[g]=Math.round(null!==(f=h[g])&&void 0!==f?f:0)),h}function l(e){for(var t={},n=0,r=Object.entries(e);n<r.length;n++){var i=r[n],o=i[0],a=i[1];0!==a&&(t[o]=a)}return t}function c(e,n,r){var i;if(!n.length)return e;for(var a,l={},c={},u=0,d=t.orderedUnits;u<d.length;u++){var f=d[u];if(n.includes(f)){a=f;for(var p=0,h=0,m=Object.keys(c);h<m.length;h++){var g=m[h];p+=o[g][f]*c[g],c[g]=0}(E=e[f])&&(p+=E);var v=Math.trunc(p);l[f]=v,c[f]=(1e3*p-1e3*v)/1e3}else e[f]&&(c[f]=e[f])}if(a){for(var y=0,b=Object.entries(c);y<b.length;y++){var w=b[y],x=w[0],_=w[1];0!==_&&(l[a]=(null!==(i=l[a])&&void 0!==i?i:0)+(x===a?_:_/o[a][x]))}var E;(E=l[a])&&(l[a]=Math.round(1e3*E)/1e3)}return s(l,r)}},14750:(e,t,n)=>{"use strict";t.p0=t.Pn=t.eP=t.bQ=t.cS=t.KQ=void 0,n(77966).settings;var r=n(60166);Object.defineProperty(t,"KQ",{enumerable:!0,get:function(){return r.dateTime}}),Object.defineProperty(t,"cS",{enumerable:!0,get:function(){return r.expandFormat}});var i=n(49837);var o=n(43160);Object.defineProperty(t,"bQ",{enumerable:!0,get:function(){return o.dateTimeParse}}),Object.defineProperty(t,"eP",{enumerable:!0,get:function(){return o.isLikeRelative}});var a=n(84080);Object.defineProperty(t,"Pn",{enumerable:!0,get:function(){return a.getTimeZonesList}});var s=n(72328);var l=n(62391);Object.defineProperty(t,"p0",{enumerable:!0,get:function(){return l.duration}})},43160:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(16445),t)},16445:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dateTimeParse=void 0,t.isLikeRelative=o,t.isValid=function(e){try{if((0,r.isDateTime)(e))return e.isValid();var n=(0,t.dateTimeParse)(e,{allowRelative:!0});return!!n&&n.isValid()}catch(i){return!1}};var r=n(60166),i=n(77966);function o(e){return"string"===typeof e&&i.settings.getRelativeParser().isLikeRelative(e)}t.dateTimeParse=function(e,t){if(void 0!==e){var n=function(e,t){var n;if(o(e)){if(null!==(n=null===t||void 0===t?void 0:t.allowRelative)&&void 0!==n&&!n)return;return i.settings.getRelativeParser().parse(e,t)}var a=t||{},s=a.format,l=a.lang;try{var c=(0,r.dateTime)({input:e,format:s,lang:l,timeZone:null===t||void 0===t?void 0:t.timeZone});return c.isValid()?c:void 0}catch(u){return}}(e,t);return n}}},77966:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(32213),t)},43377:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.localeLoaders=void 0,t.localeLoaders={af:function(){return n.e(9222).then(n.t.bind(n,89222,23))},am:function(){return n.e(9243).then(n.t.bind(n,59243,23))},"ar-dz":function(){return n.e(6881).then(n.t.bind(n,6881,23))},"ar-iq":function(){return n.e(5685).then(n.t.bind(n,45685,23))},"ar-kw":function(){return n.e(8081).then(n.t.bind(n,88081,23))},"ar-ly":function(){return n.e(8256).then(n.t.bind(n,28256,23))},"ar-ma":function(){return n.e(9697).then(n.t.bind(n,89697,23))},"ar-sa":function(){return n.e(1187).then(n.t.bind(n,1187,23))},"ar-tn":function(){return n.e(4349).then(n.t.bind(n,24349,23))},ar:function(){return n.e(8890).then(n.t.bind(n,58890,23))},az:function(){return n.e(3410).then(n.t.bind(n,3410,23))},be:function(){return n.e(7748).then(n.t.bind(n,97748,23))},bg:function(){return n.e(5950).then(n.t.bind(n,85950,23))},bi:function(){return n.e(1088).then(n.t.bind(n,61088,23))},bm:function(){return n.e(7420).then(n.t.bind(n,97420,23))},"bn-bd":function(){return n.e(2568).then(n.t.bind(n,72568,23))},bn:function(){return n.e(1237).then(n.t.bind(n,1237,23))},bo:function(){return n.e(9174).then(n.t.bind(n,9174,23))},br:function(){return n.e(513).then(n.t.bind(n,90513,23))},bs:function(){return n.e(2626).then(n.t.bind(n,22626,23))},ca:function(){return n.e(3761).then(n.t.bind(n,43761,23))},cs:function(){return n.e(6047).then(n.t.bind(n,46047,23))},cv:function(){return n.e(7348).then(n.t.bind(n,67348,23))},cy:function(){return n.e(8633).then(n.t.bind(n,48633,23))},da:function(){return n.e(5418).then(n.t.bind(n,15418,23))},"de-at":function(){return n.e(8534).then(n.t.bind(n,8534,23))},"de-ch":function(){return n.e(1696).then(n.t.bind(n,41696,23))},de:function(){return n.e(7878).then(n.t.bind(n,47878,23))},dv:function(){return n.e(9523).then(n.t.bind(n,49523,23))},el:function(){return n.e(3952).then(n.t.bind(n,3952,23))},"en-au":function(){return n.e(6625).then(n.t.bind(n,26625,23))},"en-ca":function(){return n.e(5027).then(n.t.bind(n,85027,23))},"en-gb":function(){return n.e(290).then(n.t.bind(n,90290,23))},"en-ie":function(){return n.e(5401).then(n.t.bind(n,65401,23))},"en-il":function(){return n.e(6786).then(n.t.bind(n,36786,23))},"en-in":function(){return n.e(1496).then(n.t.bind(n,51496,23))},"en-nz":function(){return n.e(1627).then(n.t.bind(n,51627,23))},"en-sg":function(){return n.e(3769).then(n.t.bind(n,63769,23))},"en-tt":function(){return n.e(1747).then(n.t.bind(n,81747,23))},en:function(){return n.e(730).then(n.t.bind(n,40730,23))},eo:function(){return n.e(9433).then(n.t.bind(n,79433,23))},"es-do":function(){return n.e(523).then(n.t.bind(n,30523,23))},"es-mx":function(){return n.e(8119).then(n.t.bind(n,88119,23))},"es-pr":function(){return n.e(4324).then(n.t.bind(n,74324,23))},"es-us":function(){return n.e(4730).then(n.t.bind(n,4730,23))},es:function(){return n.e(9725).then(n.t.bind(n,49725,23))},et:function(){return n.e(3672).then(n.t.bind(n,53672,23))},eu:function(){return n.e(5759).then(n.t.bind(n,45759,23))},fa:function(){return n.e(60).then(n.t.bind(n,40060,23))},fi:function(){return n.e(628).then(n.t.bind(n,90628,23))},fo:function(){return n.e(6114).then(n.t.bind(n,86114,23))},"fr-ca":function(){return n.e(7962).then(n.t.bind(n,87962,23))},"fr-ch":function(){return n.e(6833).then(n.t.bind(n,26833,23))},fr:function(){return n.e(7605).then(n.t.bind(n,67605,23))},fy:function(){return n.e(5924).then(n.t.bind(n,95924,23))},ga:function(){return n.e(8517).then(n.t.bind(n,78517,23))},gd:function(){return n.e(9882).then(n.t.bind(n,59882,23))},gl:function(){return n.e(2466).then(n.t.bind(n,92466,23))},"gom-latn":function(){return n.e(7548).then(n.t.bind(n,7548,23))},gu:function(){return n.e(3033).then(n.t.bind(n,93033,23))},he:function(){return n.e(8706).then(n.t.bind(n,88706,23))},hi:function(){return n.e(9606).then(n.t.bind(n,9606,23))},hr:function(){return n.e(9707).then(n.t.bind(n,79707,23))},ht:function(){return n.e(7697).then(n.t.bind(n,77697,23))},hu:function(){return n.e(7970).then(n.t.bind(n,57970,23))},"hy-am":function(){return n.e(1917).then(n.t.bind(n,61917,23))},id:function(){return n.e(6324).then(n.t.bind(n,26324,23))},is:function(){return n.e(4401).then(n.t.bind(n,6782,23))},"it-ch":function(){return n.e(3902).then(n.t.bind(n,3902,23))},it:function(){return n.e(7380).then(n.t.bind(n,37380,23))},ja:function(){return n.e(3008).then(n.t.bind(n,63008,23))},jv:function(){return n.e(2053).then(n.t.bind(n,82053,23))},ka:function(){return n.e(1865).then(n.t.bind(n,61865,23))},kk:function(){return n.e(47).then(n.t.bind(n,40047,23))},km:function(){return n.e(6541).then(n.t.bind(n,46541,23))},kn:function(){return n.e(1956).then(n.t.bind(n,21956,23))},ko:function(){return n.e(7579).then(n.t.bind(n,37579,23))},ku:function(){return n.e(6405).then(n.t.bind(n,56405,23))},ky:function(){return n.e(9025).then(n.t.bind(n,89025,23))},lb:function(){return n.e(3679).then(n.t.bind(n,86060,23))},lo:function(){return n.e(4652).then(n.t.bind(n,84652,23))},lt:function(){return n.e(5853).then(n.t.bind(n,55853,23))},lv:function(){return n.e(5819).then(n.t.bind(n,95819,23))},me:function(){return n.e(1975).then(n.t.bind(n,31975,23))},mi:function(){return n.e(9067).then(n.t.bind(n,49067,23))},mk:function(){return n.e(5453).then(n.t.bind(n,25453,23))},ml:function(){return n.e(6664).then(n.t.bind(n,16664,23))},mn:function(){return n.e(5634).then(n.t.bind(n,5634,23))},mr:function(){return n.e(6358).then(n.t.bind(n,26358,23))},"ms-my":function(){return n.e(7240).then(n.t.bind(n,17240,23))},ms:function(){return n.e(949).then(n.t.bind(n,60949,23))},mt:function(){return n.e(4096).then(n.t.bind(n,44096,23))},my:function(){return n.e(811).then(n.t.bind(n,30811,23))},nb:function(){return n.e(7357).then(n.t.bind(n,67357,23))},ne:function(){return n.e(8008).then(n.t.bind(n,48008,23))},"nl-be":function(){return n.e(5161).then(n.t.bind(n,35161,23))},nl:function(){return n.e(3879).then(n.t.bind(n,73879,23))},nn:function(){return n.e(4441).then(n.t.bind(n,4441,23))},"oc-lnc":function(){return n.e(3321).then(n.t.bind(n,23321,23))},"pa-in":function(){return n.e(3756).then(n.t.bind(n,93756,23))},pl:function(){return n.e(3121).then(n.t.bind(n,3121,23))},"pt-br":function(){return n.e(9922).then(n.t.bind(n,89922,23))},pt:function(){return n.e(4169).then(n.t.bind(n,34169,23))},rn:function(){return n.e(8053).then(n.t.bind(n,78053,23))},ro:function(){return n.e(310).then(n.t.bind(n,10310,23))},ru:function(){return n.e(4180).then(n.t.bind(n,4180,23))},rw:function(){return n.e(2286).then(n.t.bind(n,32286,23))},sd:function(){return n.e(1486).then(n.t.bind(n,71486,23))},se:function(){return n.e(1053).then(n.t.bind(n,21053,23))},si:function(){return n.e(921).then(n.t.bind(n,80921,23))},sk:function(){return n.e(5047).then(n.t.bind(n,85047,23))},sl:function(){return n.e(9801).then(n.t.bind(n,52182,23))},sq:function(){return n.e(3521).then(n.t.bind(n,33521,23))},"sr-cyrl":function(){return n.e(8103).then(n.t.bind(n,38103,23))},sr:function(){return n.e(8840).then(n.t.bind(n,58840,23))},ss:function(){return n.e(5647).then(n.t.bind(n,5647,23))},"sv-fi":function(){return n.e(8704).then(n.t.bind(n,8704,23))},sv:function(){return n.e(9220).then(n.t.bind(n,46839,23))},sw:function(){return n.e(4891).then(n.t.bind(n,74891,23))},ta:function(){return n.e(9466).then(n.t.bind(n,99466,23))},te:function(){return n.e(3510).then(n.t.bind(n,83510,23))},tet:function(){return n.e(2776).then(n.t.bind(n,12776,23))},tg:function(){return n.e(1756).then(n.t.bind(n,71756,23))},th:function(){return n.e(5953).then(n.t.bind(n,85953,23))},tk:function(){return n.e(5816).then(n.t.bind(n,55816,23))},"tl-ph":function(){return n.e(2166).then(n.t.bind(n,32166,23))},tlh:function(){return n.e(4601).then(n.t.bind(n,44601,23))},tr:function(){return n.e(2775).then(n.t.bind(n,72775,23))},tzl:function(){return n.e(5579).then(n.t.bind(n,65579,23))},"tzm-latn":function(){return n.e(108).then(n.t.bind(n,80108,23))},tzm:function(){return n.e(9908).then(n.t.bind(n,59908,23))},"ug-cn":function(){return n.e(4847).then(n.t.bind(n,34847,23))},uk:function(){return n.e(6261).then(n.t.bind(n,6261,23))},ur:function(){return n.e(9518).then(n.t.bind(n,9518,23))},"uz-latn":function(){return n.e(2161).then(n.t.bind(n,34542,23))},uz:function(){return n.e(710).then(n.t.bind(n,40710,23))},vi:function(){return n.e(2612).then(n.t.bind(n,42612,23))},"x-pseudo":function(){return n.e(2984).then(n.t.bind(n,92984,23))},yo:function(){return n.e(3333).then(n.t.bind(n,83333,23))},"zh-cn":function(){return n.e(1657).then(n.t.bind(n,21657,23))},"zh-hk":function(){return n.e(3653).then(n.t.bind(n,63653,23))},"zh-tw":function(){return n.e(221).then(n.t.bind(n,60221,23))},zh:function(){return n.e(6879).then(n.t.bind(n,76879,23))}}},32213:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(l){s=[6,l],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.settings=void 0;var a=o(n(58671)),s=n(49837),l=o(n(38960)),c=n(84080),u=n(43377),d=function(){function e(){this.loadedLocales=new Set(["en"]),this.defaultLocale="en",this.defaultTimeZone="system",this.parser={parse:s.parse,isLikeRelative:s.isLikeRelative},this.updateLocale({weekStart:1,yearStart:1})}return e.prototype.loadLocale=function(e){return r(this,void 0,void 0,(function(){var t;return i(this,(function(n){switch(n.label){case 0:if(this.isLocaleLoaded(e))return[3,4];n.label=1;case 1:return n.trys.push([1,3,,4]),t=e.toLocaleLowerCase(),[4,(0,u.localeLoaders[t])()];case 2:return n.sent(),this.loadedLocales.add(t),[3,4];case 3:throw n.sent(),new Error("Can't load locale \"".concat(e,'". Either it does not exist, or there was a connection problem. Check the dayjs locations list: https://github.com/iamkun/dayjs/tree/dev/src/locale'));case 4:return[2]}}))}))},e.prototype.getLocale=function(){return this.defaultLocale},e.prototype.getLocaleData=function(){var e=l.default.Ls,t=e[this.getLocale()];if(t||(t=e.en),!t)throw new Error("There is something really wrong happening. Locale data is absent.");return(0,a.default)(t)},e.prototype.setLocale=function(e){if(!this.isLocaleLoaded(e))throw new Error('Seems you are trying to set an unloaded locale "'.concat(e,"\". Load it first by calling settings.loadLocale('").concat(e,"'). Check the dayjs locations list: https://github.com/iamkun/dayjs/tree/dev/src/locale"));this.defaultLocale=e},e.prototype.updateLocale=function(e){var t=this.getLocale();l.default.updateLocale(t,e)},e.prototype.setDefaultTimeZone=function(e){this.defaultTimeZone=(0,c.normalizeTimeZone)(e,"system")},e.prototype.getDefaultTimeZone=function(){return this.defaultTimeZone},e.prototype.setRelativeParser=function(e){this.parser=e},e.prototype.getRelativeParser=function(){return this.parser},e.prototype.isLocaleLoaded=function(e){var t=e.toLocaleLowerCase();return this.loadedLocales.has(t)},e}();t.settings=new d},84080:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(71765),t)},71765:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.getTimeZonesList=t.guessUserTimeZone=void 0,t.isValidTimeZone=s,t.timeZoneOffset=c,t.normalizeTimeZone=u,t.fixOffset=function(e,t,n){var r=e-60*t*1e3,i=c(n,r);if(t===i)return[r,t];var o=c(n,r-=60*(i-t)*1e3);if(i===o)return[r,i];return[e-60*Math.min(i,o)*1e3,Math.min(i,o)]},t.parseZoneInfo=function(e){var t=e.timeZone,n=e.ts,i=e.locale,o=e.offsetFormat,a=new Date(n),s={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};t&&(s.timeZone=u(t,t));var l=r({timeZoneName:o},s),c=new Intl.DateTimeFormat(i,l).formatToParts(a).find((function(e){return"timezonename"===e.type.toLowerCase()}));return c?c.value:""};var i=n(72328),o=n(16572);t.guessUserTimeZone=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone};t.getTimeZonesList=function(){var e;return(null===(e=Intl.supportedValuesOf)||void 0===e?void 0:e.call(Intl,"timeZone"))||[]};var a={};function s(e){if(!e)return!1;if(Object.prototype.hasOwnProperty.call(a,e))return a[e];try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),a[e]=!0,!0}catch(t){return a[e]=!1,!1}}var l=["year","month","day","hour","minute","second","era"];function c(e,t){var n=new Date(t);if(isNaN(n.valueOf())||"system"!==e&&!s(e))return NaN;if("system"===e)return-n.getTimezoneOffset()||0;for(var r,i={year:1,month:1,day:1,hour:0,minute:0,second:0,era:"AD"},a=0,c=(0,o.getDateTimeFormat)("en-US",{hour12:!1,timeZone:"system"===e?void 0:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}).formatToParts(n);a<c.length;a++){var u=c[a],d=u.type,f=u.value;"era"===d?i.era=f:(r=d,l.includes(r)&&(i[d]=parseInt(f,10)))}var p="BC"===i.era?1-Math.abs(i.year):i.year,h=i.month-1,m=24===i.hour?0:i.hour,g=Date.UTC(p,h,i.day,m,i.minute,i.second,0);if(p<100&&p>=0){var v=new Date(g);v.setUTCFullYear(p,h,i.day),g=v.valueOf()}var y=n.valueOf(),b=y%1e3;return(g-(y-=b>=0?b:1e3+b))/6e4}function u(e,t){if(void 0===e||null===e)return t;var n=e.toLowerCase();if("utc"===n||"gmt"===n)return i.UtcTimeZone;if("system"===n)return"system";if("default"===n)return t;if(s(e))return e;throw new Error("InvalidZone: ".concat(e))}},13064:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(11345),t)},16572:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getDateTimeFormat=function(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=o.get(n);r||(r=new Intl.DateTimeFormat(e,t),o.set(n,r));return r},t.getListFormat=function(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=a.get(n);r||(r=new Intl.ListFormat(e,t),a.set(n,r));return r},t.getNumberFormat=function(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=s.get(n);r||(r=new Intl.NumberFormat(e,t),s.set(n,r));return r},t.getLocaleData=function(e){var t=i.default.Ls[e];if(!t)throw new Error("Locale ".concat(e," is not loaded"));return t};var i=r(n(38960)),o=new Map;var a=new Map;var s=new Map},11345:(e,t)=>{"use strict";function n(e,t){return e-t*Math.floor(e/t)}function r(e){return e%4===0&&(e%100!==0||e%400===0)}function i(e){return r(e)?366:365}Object.defineProperty(t,"__esModule",{value:!0}),t.floorMod=n,t.isLeapYear=r,t.daysInYear=i,t.daysInMonth=function(e,t){var i=n(t,12),o=e+(t-i)/12;return 1===i?r(o)?29:28:[31,-1,31,30,31,30,31,31,30,31,30,31][i]},t.tsToObject=function(e,t){var n=new Date(e+60*t*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth(),date:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}},t.objToTS=function(e){var t=Date.UTC(e.year,e.month,e.date,e.hour,e.minute,e.second,e.millisecond);if(e.year<100&&e.year>=0){var n=new Date(t);return n.setUTCFullYear(e.year,e.month,e.date),n.valueOf()}return t},t.normalizeDurationUnit=function(e){var t=["d","D","m","M","w","W","E","Q"].includes(e)?e:e.toLowerCase();if(t in o)return o[t];throw new Error("Invalid unit ".concat(e))},t.normalizeComponent=function(e){var t=["d","D","m","M","w","W","e","E","Q"].includes(e)?e:e.toLowerCase();if(t in a)return a[t];throw new Error("Invalid unit ".concat(e))},t.normalizeDateComponents=function(e,t){for(var n={},r=0,i=Object.entries(e);r<i.length;r++){var o=i[r],a=o[0],l=o[1];void 0!==l&&null!==l&&(n[t(a)]=s(l))}return n},t.offsetFromString=function(e){var t=(e||"").match(l);if(null===t)return null;var n=t[t.length-1]||"",r=String(n).match(c)||["-",0,0],i=r[0],o=r[1],a=r[2],s=Number(60*Number(o))+(isFinite(Number(a))?Number(a):0);return"+"===i?s:-s},t.computeOrdinal=h,t.uncomputeOrdinal=m,t.isoWeekdayToLocal=g,t.gregorianToWeek=function(e,t,n){var r=e.year,i=e.month,o=e.date,a=u(r,i,o),s=v(e,t,n),l=s.weekYear,c=s.weekNumber,d=s.weekday,f=v(e,4,1),p=f.weekYear,h=f.weekNumber,m=f.weekday;return{day:a,weekYear:l,weekNumber:c,weekday:d-1,isoWeekYear:p,isoWeekNumber:h,isoWeekday:m}},t.weeksInWeekYear=b,t.weekToGregorian=function(e,t,n){var r,o=e.weekYear,a=e.weekNumber,s=e.weekday,l=g(d(o,0,t),n),c=i(o),u=7*a+s-l-7+t;u<1?u+=i(r=o-1):u>c?(r=o+1,u-=i(o)):r=o;var f=m({year:r,ordinal:u}),p=f.month,h=f.date;return{year:r,month:p,date:h}},t.monthDiff=function e(t,n){if(t.date()<n.date())return-e(n,t);var r,i=12*(n.year()-t.year())+(n.month()-t.month()),o=t.add(i,"months");if(n.valueOf()-o.valueOf()<0){var a=t.add(i-1,"months");r=(n.valueOf()-o.valueOf())/(o.valueOf()-a.valueOf())}else{a=t.add(i+1,"months");r=(n.valueOf()-o.valueOf())/(a.valueOf()-o.valueOf())}return-(i+r)||0};var o={y:"years",year:"years",years:"years",Q:"quarters",quarter:"quarters",quarters:"quarters",M:"months",month:"months",months:"months",w:"weeks",week:"weeks",weeks:"weeks",d:"days",day:"days",days:"days",h:"hours",hour:"hours",hours:"hours",m:"minutes",minute:"minutes",minutes:"minutes",s:"seconds",second:"seconds",seconds:"seconds",ms:"milliseconds",millisecond:"milliseconds",milliseconds:"milliseconds"};var a={y:"year",year:"year",years:"year",M:"month",month:"month",months:"month",D:"date",date:"date",dates:"date",h:"hour",hour:"hour",hours:"hour",m:"minute",minute:"minute",minutes:"minute",Q:"quarter",quarter:"quarter",quarters:"quarter",s:"second",second:"second",seconds:"second",ms:"millisecond",millisecond:"millisecond",milliseconds:"millisecond",d:"day",day:"day",days:"day",weeknumber:"weekNumber",w:"weekNumber",week:"weekNumber",weeks:"weekNumber",isoweeknumber:"isoWeekNumber",W:"isoWeekNumber",isoweek:"isoWeekNumber",isoweeks:"isoWeekNumber",E:"isoWeekday",isoweekday:"isoWeekday",isoweekdays:"isoWeekday",weekday:"weekday",weekdays:"weekday",e:"weekday",dayOfYear:"dayOfYear",dayOfYears:"dayOfYear",DDD:"dayOfYear",weekyear:"weekYear",isoweekyear:"isoWeekYear"};function s(e){var t=Number(e);if("boolean"===typeof e||""===e||Number.isNaN(t))throw new Error("Invalid unit value ".concat(e));return t}var l=/Z|[+-]\d\d(?::?\d\d)?/gi,c=/([+-]|\d\d)/gi;function u(e,t,n){var r=new Date(Date.UTC(e,t,n));return e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900),r.getUTCDay()}function d(e,t,n){var r=u(e,t,n);return 0===r?7:r}var f=[0,31,59,90,120,151,181,212,243,273,304,334],p=[0,31,60,91,121,152,182,213,244,274,305,335];function h(e){var t=e.year,n=e.month;return e.date+(r(t)?p:f)[n]}function m(e){var t=e.year,n=e.ordinal,i=r(t)?p:f,o=i.findIndex((function(e){return e<n}));return{month:o,date:n-i[o]}}function g(e,t){return(e-t+7)%7+1}function v(e,t,n){var r,i=e.year,o=e.month,a=e.date,s=g(d(i,o,a),n),l=h({year:i,month:o,date:a}),c=Math.floor((l-s+14-t)/7);return c<1?c=b(r=i-1,t,n):c>b(i,t,n)?(r=i+1,c=1):r=i,{weekYear:r,weekNumber:c,weekday:s}}function y(e,t,n){return-g(d(e,0,t),n)+t-1}function b(e,t,n){void 0===t&&(t=4),void 0===n&&(n=1);var r=y(e,t,n),o=y(e+1,t,n);return(i(e)-r+o)/7}},1448:(e,t,n)=>{"use strict";n.d(t,{TH:()=>u});const r=/{{(.*?)}}/g;const i=()=>new RegExp(/\$t{([^}]+)}/g);var o;!function(e){e.EmptyKeyset="EMPTY_KEYSET",e.EmptyLanguageData="EMPTY_LANGUAGE_DATA",e.KeysetNotFound="KEYSET_NOT_FOUND",e.MissingKey="MISSING_KEY",e.MissingKeyFor0="MISSING_KEY_FOR_0",e.MissingKeyParamsCount="MISSING_KEY_PARAMS_COUNT",e.MissingKeyPlurals="MISSING_KEY_PLURALS",e.MissingInheritedKey="MISSING_INHERITED_KEY",e.NestedPlural="NESTED_PLURAL",e.ExceedTranslationNestingDepth="EXCEED_TRANSLATION_NESTING_DEPTH",e.NoLanguageData="NO_LANGUAGE_DATA"}(o||(o={}));Object.values(o);var a;function s(e,t){return 0===e?t.None:1===e||-1===e?t.One:t.Many}function l(e,t){const n=Math.abs(e%10),r=Math.abs(e%100);return 0===e?t.None:1===n&&11!==r?t.One:n>1&&n<5&&(r<10||r>20)?t.Few:t.Many}function c({value:e,count:t,lang:n,pluralizers:r,log:i,key:o}){if(!Array.isArray(e))return function(e,t,n){if(e.zero&&0===t)return e.zero;if(!Intl.PluralRules)throw new Error("Intl.PluralRules is not available. Use polyfill.");const r=new Intl.PluralRules(n).select(t);return"other"===r&&"undefined"===typeof e.other?e.many||e.few:e[r]||e.other}(e,t,n)||o;if(!r)return i("Can not use deprecated plural format without pluralizers"),o;if(r[n]||i(`Pluralization is not configured for language '${n}', falling back to the english ruleset`),e.length<3)return i("Missing required plurals"),o;const s=r[n]||r.en;return s?e[s(t,a)]||e[a.Many]||o:(i("Fallback pluralization is not configured!"),o)}!function(e){e[e.One=0]="One",e[e.Few=1]="Few",e[e.Many=2]="Many",e[e.None=3]="None"}(a||(a={}));class u{constructor(e={}){this.data={},this.pluralizers={en:s,ru:l},this.logger=null;const{data:t,fallbackLang:n,lang:r,logger:i=null}=e;this.fallbackLang=n,this.lang=r,this.logger=i,t&&Object.entries(t).forEach((([e,t])=>{this.registerKeysets(e,t)}))}setLang(e){this.lang=e}setFallbackLang(e){this.fallbackLang=e}configurePluralization(e){this.pluralizers=Object.assign({},this.pluralizers,e)}registerKeyset(e,t,n={}){const r=this.data[e]&&Object.prototype.hasOwnProperty.call(this.data[e],t);if(r)throw new Error(`Keyset '${t}' is already registered, aborting!`);r&&this.warn(`Keyset '${t}' is already registered.`),this.data[e]=Object.assign({},this.data[e],{[t]:n})}registerKeysets(e,t){Object.keys(t).forEach((n=>{this.registerKeyset(e,n,t[n])}))}has(e,t,n){var r;const i=this.getLanguageData(n);return Boolean(i&&i[e]&&(null===(r=i[e])||void 0===r?void 0:r[t]))}i18n(e,t,n){if(!this.lang&&!this.fallbackLang)throw new Error('Language is not specified. You should set at least one of these: "lang", "fallbackLang"');let r;return this.lang?r=this._i18n(e,t,this.lang,n):this.warn("Target language is not specified."),void 0===r&&this.fallbackLang&&this.fallbackLang!==this.lang&&(r=this._i18n(e,t,this.fallbackLang,n)),null!==r&&void 0!==r?r:t}keyset(e){return(t,n)=>this.i18n(e,t,n)}warn(e,t,n){var r;let i="";t?(i+=t,n&&(i+=`.${n}`)):i="languageData",null===(r=this.logger)||void 0===r||r.log(`I18n: ${e}`,{level:"info",logger:i,extra:{type:"i18n"}})}getLanguageData(e){const t=e||this.lang;return t?this.data[t]:void 0}_i18n(e,t,n,r){const{text:i,details:a}=new d(this,n,t,e,r).getTranslationData();if(a){const e=function(e){const{code:t,fallbackLang:n,lang:r}=e;let i=`Using language ${r}. `;switch(t){case o.EmptyKeyset:i+="Keyset is empty.";break;case o.EmptyLanguageData:i+="Language data is empty.";break;case o.KeysetNotFound:i+="Keyset not found.";break;case o.MissingKey:i+="Missing key.";break;case o.MissingKeyFor0:return i+="Missing key for 0",i;case o.MissingKeyParamsCount:i+="Missing params.count for key.";break;case o.MissingKeyPlurals:i+="Missing required plurals.";break;case o.NoLanguageData:i=`Language "${r}" is not defined, make sure you call setLang for the same language you called registerKeysets for!`}return n&&(i+=` Trying to use fallback language "${n}"...`),i}({code:a.code,lang:n,fallbackLang:this.fallbackLang===n?void 0:this.fallbackLang});this.warn(e,a.keysetName,a.key)}return i}}class d{constructor(e,t,n,r,i,o){this.i18n=e,this.lang=t,this.key=n,this.keysetName=r,this.params=i,this.nestingDepth=null!==o&&void 0!==o?o:0}getTranslationData(){var e;const{data:t,details:n}=this.getKeyset();if(n)return{details:n};const a=t&&t[this.key],s={};if(void 0===a)return this.getTranslationDataError(o.MissingKey);if("string"!==typeof a){const t=this.nestingDepth>0,n=(e=>e instanceof Array?e:e instanceof Object?Object.values(e):[])(a).some((e=>(e=>{var t;const n=i().exec(e);return(null!==(t=null===n||void 0===n?void 0:n.length)&&void 0!==t?t:0)>0})(e)));if(t||n)return this.getTranslationDataError(o.NestedPlural);const r=Number(null===(e=this.params)||void 0===e?void 0:e.count);if(Number.isNaN(r))return this.getTranslationDataError(o.MissingKeyParamsCount);s.text=c({key:this.key,value:a,count:r,lang:this.lang||"en",pluralizers:this.i18n.pluralizers,log:e=>this.i18n.warn(e,this.keysetName,this.key)})}else s.text=String(a);this.params&&(s.text=function(e,t){let n,i="",o=r.lastIndex=0;for(;n=r.exec(e);){o!==n.index&&(i+=e.slice(o,n.index)),o=r.lastIndex;const[a,s]=n;s&&Object.prototype.hasOwnProperty.call(t,s)?i+=t[s]:i+=a}return o<e.length&&(i+=e.slice(o)),i}(String(s.text),this.params));const l=this.replaceTranslationsInheritance({keyValue:String(s.text)});return l.text?(s.text=l.text,s):l}getTranslationDataError(e){return{details:{code:e,keysetName:this.keysetName,key:this.key}}}getKeyset(){const e=this.i18n.getLanguageData(this.lang);if("undefined"===typeof e)return this.getTranslationDataError(o.NoLanguageData);if(0===Object.keys(e).length)return this.getTranslationDataError(o.EmptyLanguageData);const t=e[this.keysetName];return t?0===Object.keys(t).length?this.getTranslationDataError(o.EmptyKeyset):{data:t}:this.getTranslationDataError(o.KeysetNotFound)}replaceTranslationsInheritance(e){const{keyValue:t}=e,n=i();let r,a="",s=n.lastIndex=0;for(;r=n.exec(t);){s!==r.index&&(a+=t.slice(s,r.index)),s=n.lastIndex;const[e,i]=r;if(i){if(this.nestingDepth+1>1)return this.getTranslationDataError(o.ExceedTranslationNestingDepth);let[e,t]=[i,void 0];const n=i.split("::");if(n.length>1&&([t,e]=[n[0],n[1]]),!e)return this.getTranslationDataError(o.MissingInheritedKey);const r=new d(this.i18n,this.lang,e,null!==t&&void 0!==t?t:this.keysetName,void 0,this.nestingDepth+1).getTranslationData();if(r.details)return this.getTranslationDataError(o.MissingInheritedKey);a+=r.text}else a+=e}return s<t.length&&(a+=t.slice(s)),{text:a}}}},112:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10 1.5A.75.75 0 0 0 10 3h1.94L6.97 7.97a.75.75 0 0 0 1.06 1.06L13 4.06V6a.75.75 0 0 0 1.5 0V2.25a.75.75 0 0 0-.75-.75zM7.5 3.25a.75.75 0 0 0-.75-.75H4.5a3 3 0 0 0-3 3v6a3 3 0 0 0 3 3h6a3 3 0 0 0 3-3V9.25a.75.75 0 0 0-1.5 0v2.25a1.5 1.5 0 0 1-1.5 1.5h-6A1.5 1.5 0 0 1 3 11.5v-6A1.5 1.5 0 0 1 4.5 4h2.25a.75.75 0 0 0 .75-.75",clipRule:"evenodd"}))},13066:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.97 5.47a.75.75 0 0 1 1.06 0L8 9.44l3.97-3.97a.75.75 0 1 1 1.06 1.06l-4.5 4.5a.75.75 0 0 1-1.06 0l-4.5-4.5a.75.75 0 0 1 0-1.06",clipRule:"evenodd"}))},9187:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.53 2.97a.75.75 0 0 1 0 1.06L6.56 8l3.97 3.97a.75.75 0 1 1-1.06 1.06l-4.5-4.5a.75.75 0 0 1 0-1.06l4.5-4.5a.75.75 0 0 1 1.06 0",clipRule:"evenodd"}))},38602:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.47 13.03a.75.75 0 0 1 0-1.06L9.44 8 5.47 4.03a.75.75 0 0 1 1.06-1.06l4.5 4.5a.75.75 0 0 1 0 1.06l-4.5 4.5a.75.75 0 0 1-1.06 0",clipRule:"evenodd"}))},70825:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.5 8a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0m-3.9-1.55a.75.75 0 1 0-1.2-.9L7.419 8.858 6.03 7.47a.75.75 0 0 0-1.06 1.06l2 2a.75.75 0 0 0 1.13-.08z",clipRule:"evenodd"}))},43937:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 13.5a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m1-9.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-.25 3a.75.75 0 0 0-1.5 0V11a.75.75 0 0 0 1.5 0z",clipRule:"evenodd"}))},73633:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 13.5a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14M6.44 4.54c.43-.354.994-.565 1.56-.565 1.217 0 2.34.82 2.34 2.14 0 .377-.078.745-.298 1.1-.208.339-.513.614-.875.867-.217.153-.325.257-.379.328-.038.052-.038.07-.038.089a.75.75 0 0 1-1.5 0c0-.794.544-1.286 1.057-1.645.28-.196.4-.332.458-.426a.54.54 0 0 0 .075-.312c0-.3-.244-.641-.84-.641a1 1 0 0 0-.608.223c-.167.138-.231.287-.231.418a.75.75 0 0 1-1.5 0c0-.674.345-1.22.78-1.577M8 12a1 1 0 1 0 0-2 1 1 0 0 0 0 2",clipRule:"evenodd"}))},51016:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 2.5H8A1.5 1.5 0 0 0 6.5 4v1H8a3 3 0 0 1 3 3v1.5h1A1.5 1.5 0 0 0 13.5 8V4A1.5 1.5 0 0 0 12 2.5M11 11h1a3 3 0 0 0 3-3V4a3 3 0 0 0-3-3H8a3 3 0 0 0-3 3v1H4a3 3 0 0 0-3 3v4a3 3 0 0 0 3 3h4a3 3 0 0 0 3-3zM4 6.5h4A1.5 1.5 0 0 1 9.5 8v4A1.5 1.5 0 0 1 8 13.5H4A1.5 1.5 0 0 1 2.5 12V8A1.5 1.5 0 0 1 4 6.5",clipRule:"evenodd"}))},7450:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M3 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3M9.5 8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m5 0a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0",clipRule:"evenodd"}))},27738:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.199 2H8.8a.2.2 0 0 1 .2.2c0 1.808 1.958 2.939 3.524 2.034a.2.2 0 0 1 .271.073l.802 1.388a.2.2 0 0 1-.073.272c-1.566.904-1.566 3.164 0 4.069a.2.2 0 0 1 .073.271l-.802 1.388a.2.2 0 0 1-.271.073C10.958 10.863 9 11.993 9 13.8a.2.2 0 0 1-.199.2H7.2a.2.2 0 0 1-.2-.2c0-1.808-1.958-2.938-3.524-2.034a.2.2 0 0 1-.272-.073l-.8-1.388a.2.2 0 0 1 .072-.271c1.566-.905 1.566-3.165 0-4.07a.2.2 0 0 1-.073-.27l.801-1.389a.2.2 0 0 1 .272-.072C5.042 5.138 7 4.007 7 2.199c0-.11.089-.199.199-.199M5.5 2.2c0-.94.76-1.7 1.699-1.7H8.8c.94 0 1.7.76 1.7 1.7a.85.85 0 0 0 1.274.735 1.7 1.7 0 0 1 2.32.622l.802 1.388c.469.813.19 1.851-.622 2.32a.85.85 0 0 0 0 1.472 1.7 1.7 0 0 1 .622 2.32l-.802 1.388a1.7 1.7 0 0 1-2.32.622.85.85 0 0 0-1.274.735c0 .939-.76 1.7-1.699 1.7H7.2a1.7 1.7 0 0 1-1.699-1.7.85.85 0 0 0-1.274-.735 1.7 1.7 0 0 1-2.32-.622l-.802-1.388a1.7 1.7 0 0 1 .622-2.32.85.85 0 0 0 0-1.471 1.7 1.7 0 0 1-.622-2.32l.801-1.389a1.7 1.7 0 0 1 2.32-.622A.85.85 0 0 0 5.5 2.2m4 5.8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M11 8a3 3 0 1 1-6 0 3 3 0 0 1 6 0",clipRule:"evenodd"}))},66821:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 3a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M5.5 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3m5 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3m0-5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3M7 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m3.5 1.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3",clipRule:"evenodd"}))},49917:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M15.53 1.53A.75.75 0 0 0 14.47.47l-1.29 1.29a4.24 4.24 0 0 0-5.423.483l-.58.58a.96.96 0 0 0 0 1.354l4.646 4.646a.96.96 0 0 0 1.354 0l.58-.58a4.24 4.24 0 0 0 .484-5.423zm-8.5 4.94a.75.75 0 0 1 0 1.06L5.78 8.78l1.44 1.44 1.25-1.25a.75.75 0 0 1 1.06 1.06l-1.25 1.25.543.543a.96.96 0 0 1 0 1.354l-.58.58a4.24 4.24 0 0 1-5.423.484l-1.29 1.29A.75.75 0 0 1 .47 14.47l1.29-1.29a4.24 4.24 0 0 1 .483-5.423l.58-.58a.96.96 0 0 1 1.354 0l.543.543 1.25-1.25a.75.75 0 0 1 1.06 0M3.5 8.62l-.197.197a2.743 2.743 0 0 0 3.879 3.879l.197-.197zm9.197-1.439-.197.197L8.621 3.5l.197-.197a2.743 2.743 0 0 1 3.879 3.879",clipRule:"evenodd"}))},27612:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"m7.836 6 .76-2.027L9.336 2H5.5a.72.72 0 0 0-.664.45L2.513 8.257a.177.177 0 0 0 .164.243h4.965l-.732 2.013-1.082 2.975a.382.382 0 0 0 .637.392l6.956-7.391A.29.29 0 0 0 13.21 6H7.835m2.727-3 .235-.627A1.386 1.386 0 0 0 9.5.5h-4c-.906 0-1.72.552-2.057 1.393L1.12 7.7A1.677 1.677 0 0 0 2.677 10H5.5l-.545 1.5-.537 1.475a1.882 1.882 0 0 0 3.14 1.933l6.956-7.391A1.79 1.79 0 0 0 13.21 4.5H10z",clipRule:"evenodd"}))},94420:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.134 2.994 2.217 11.5a1 1 0 0 0 .866 1.5h9.834a1 1 0 0 0 .866-1.5L8.866 2.993a1 1 0 0 0-1.732 0m3.03-.75c-.962-1.665-3.366-1.665-4.329 0L.918 10.749c-.963 1.666.24 3.751 2.165 3.751h9.834c1.925 0 3.128-2.085 2.164-3.751zM8 5a.75.75 0 0 1 .75.75v2a.75.75 0 0 1-1.5 0v-2A.75.75 0 0 1 8 5m1 5.75a1 1 0 1 1-2 0 1 1 0 0 1 2 0",clipRule:"evenodd"}))},81240:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.47 3.47a.75.75 0 0 1 1.06 0L8 6.94l3.47-3.47a.75.75 0 1 1 1.06 1.06L9.06 8l3.47 3.47a.75.75 0 1 1-1.06 1.06L8 9.06l-3.47 3.47a.75.75 0 0 1-1.06-1.06L6.94 8 3.47 4.53a.75.75 0 0 1 0-1.06",clipRule:"evenodd"}))},92209:(e,t,n)=>{"use strict";n.d(t,{N:()=>i,b:()=>o});var r=n(82435);const i="gn-";(0,r.withNaming)({e:"__",m:"_"});const o=(0,r.withNaming)({n:i,e:"__",m:"_"})},49034:(e,t,n)=>{"use strict";n.d(t,{d:()=>F});var r="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{};var i=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},o="object"==typeof r&&r&&r.Object===Object&&r,a="object"==typeof self&&self&&self.Object===Object&&self,s=o||a||Function("return this")(),l=s,c=function(){return l.Date.now()},u=/\s/;var d=function(e){for(var t=e.length;t--&&u.test(e.charAt(t)););return t},f=/^\s+/;var p=function(e){return e?e.slice(0,d(e)+1).replace(f,""):e},h=s.Symbol,m=h,g=Object.prototype,v=g.hasOwnProperty,y=g.toString,b=m?m.toStringTag:void 0;var w=function(e){var t=v.call(e,b),n=e[b];try{e[b]=void 0;var r=!0}catch(o){}var i=y.call(e);return r&&(t?e[b]=n:delete e[b]),i},x=Object.prototype.toString;var _=w,E=function(e){return x.call(e)},S=h?h.toStringTag:void 0;var k=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":S&&S in Object(e)?_(e):E(e)},C=function(e){return null!=e&&"object"==typeof e};var O=p,N=i,T=function(e){return"symbol"==typeof e||C(e)&&"[object Symbol]"==k(e)},A=/^[-+]0x[0-9a-f]+$/i,I=/^0b[01]+$/i,D=/^0o[0-7]+$/i,P=parseInt;var R=i,j=c,M=function(e){if("number"==typeof e)return e;if(T(e))return NaN;if(N(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=N(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=O(e);var n=I.test(e);return n||D.test(e)?P(e.slice(2),n?2:8):A.test(e)?NaN:+e},L=Math.max,z=Math.min;var F=function(e,t,n){var r,i,o,a,s,l,c=0,u=!1,d=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,o=i;return r=i=void 0,c=t,a=e.apply(o,n)}function h(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=o}function m(){var e=j();if(h(e))return g(e);s=setTimeout(m,function(e){var n=t-(e-l);return d?z(n,o-(e-c)):n}(e))}function g(e){return s=void 0,f&&r?p(e):(r=i=void 0,a)}function v(){var e=j(),n=h(e);if(r=arguments,i=this,l=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(m,t),u?p(e):a}(l);if(d)return clearTimeout(s),s=setTimeout(m,t),p(l)}return void 0===s&&(s=setTimeout(m,t)),a}return t=M(t)||0,R(n)&&(u=!!n.leading,o=(d="maxWait"in n)?L(M(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f),v.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=i=s=void 0},v.flush=function(){return void 0===s?a:g(j())},v}},16258:(e,t,n)=>{"use strict";n.d(t,{b:()=>r});const r=(0,n(92209).b)("aside-header")},6388:(e,t,n)=>{"use strict";n.d(t,{M3:()=>o,N2:()=>l,NS:()=>s,Q7:()=>a,Uc:()=>u,VU:()=>r,xN:()=>i,zQ:()=>c});const r=1,i=-1,o="left",a="center",s="right",l="fixed",c="moving",u="__index__"},4557:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>P});var r=n(27145),i=n(59284),o=n(56993),a=n.n(o),s=n(82435),l=n(6388);const c=(0,s.withNaming)({e:"__",m:"_"})("data-table");function u({name:e,defaultOrder:t},{sortOrder:n={},sortColumns:i=[]},o=!1,{defaultOrder:a,disableSortReset:s}={}){const c=t||a,u={sortOrder:{},sortColumns:[]};if(!e)return o?{sortOrder:n,sortColumns:i}:u;let d=i;const f=n[e];let p=c;if(f&&(p=f===c||s?f===l.VU?l.xN:l.VU:void 0),!o)return p?{sortOrder:{[e]:p},sortColumns:[e]}:u;const h=n,m=e,g=(h[m],(0,r.Tt)(h,["symbol"===typeof m?m:m+""]));return p?(g[e]=p,new Set(i).has(e)||(d=[...i,e])):d=i.filter((t=>t!==e)),{sortOrder:g,sortColumns:d}}function d(e,t,n={}){const r=t,{sortAscending:i}=e;return"function"===typeof i?(e,t)=>r*i(e,t):(t,i)=>{const o=e._getSortValue(t.row),a=e._getSortValue(i.row);return null==o&&null!=a?n.nullBeforeNumbers?-r:1:null==a&&null!=o?n.nullBeforeNumbers?r:-1:o<a?Number(-r):o>a?Number(r):0}}function f(e,t,{sortOrder:n,sortColumns:r},i){const o={};t.forEach((e=>{n[e.name]?o[e.name]=d(e,n[e.name],i):e.group&&e.autogroup&&(o[e.name]=d(e,l.VU,i))}));const a=t.filter((e=>e.group)),s=a.length>0,c=[...a.map((e=>o[e.name])).filter(Boolean),...r.map((e=>o[e])).filter(Boolean)],u=e.map(((e,t)=>s?{row:e,index:t,span:{}}:{row:e,index:t}));if(c.length&&!i.externalSort&&u.sort(((e,t)=>{let n=0;return c.some((r=>(n=r(e,t),Boolean(n)))),n||e.index-t.index})),u.length>1&&s){const e=[],t=[];u.forEach((n=>{a.every(((r,i)=>{const o=r._getValue(n.row);return e[i]&&o===t[i]?(e[i].span[r.name]+=1,n.span[r.name]=0,!0):(a.slice(i).forEach(((r,o)=>{e[i+o]=n,t[i+o]=r._getValue(n.row),n.span[r.name]=1})),!1)}))}))}return u}function p(e,t){return(Array.isArray(e)?e:[e]).reduce(((e,{columnId:n,order:r})=>u({name:n,defaultOrder:r},e,!0,t)),{sortOrder:{},sortColumns:[]})}function h({getColumn:e,columnIndex:t,columnId:n,minWidth:r,maxWidth:o,onResize:a}){const s=i.useRef(null),[l,u]=i.useState(!1);return i.useEffect((()=>{const i=s.current;if(!i)return;let l,c,d;const f=function(e){let t,n=null;return function(...r){t=r,"number"!==typeof n&&(n=requestAnimationFrame((()=>{e(...t),n=null})))}}((e=>{if(m(e),"number"!==typeof l||"number"!==typeof c)return;const t=e.clientX-l,i=function(e,t=40,n=1/0){return Math.max(t,Math.min(e,n))}(c+t,r,o);i!==d&&(d=i,null===a||void 0===a||a(n,d))})),p=e=>{m(e),void 0!==d&&(null===a||void 0===a||a(n,d)),u(!1),l=void 0,document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",p)},h=n=>{var r;c=null===(r=e(t))||void 0===r?void 0:r.getBoundingClientRect().width,m(n),l=n.clientX,u(!0),document.addEventListener("mousemove",f),document.addEventListener("mouseup",p)};return i.addEventListener("mousedown",h),()=>{i.removeEventListener("mousedown",h),document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",p)}}),[n,a,r,o,e,t]),i.createElement("span",{ref:s,className:c("resize-handler",{resizing:l}),onClick:e=>m(e)})}function m(e){e.preventDefault(),e.stopPropagation()}const g=function(){const e=document.createElement("a").style;return e.cssText="position:sticky; position:-webkit-sticky;",-1!==e.position.indexOf("sticky")}(),v={getSrcElement:()=>null,onHeightChange:()=>{}};class y{constructor(e){this.prevHeight=0,this.params=v,this.checkAndUpdateHeight=()=>{this.node?requestAnimationFrame((()=>{const e=this.node;e?this.updateHeight(e.offsetHeight):this.updateHeight(0)})):this.updateHeight(0)},this.params=Object.assign({},e)}destroy(){this.updateHeight(0),this.params=v}get node(){return this.params.getSrcElement()}updateHeight(e){this.prevHeight!==e&&(this.prevHeight=e,this.params.onHeightChange(e))}}const b=i.createElement("svg",{className:c("icon"),viewBox:"0 0 10 6",width:"10",height:"6"},i.createElement("path",{fill:"currentColor",d:"M0 5h10l-5 -5z"})),w=i.createElement("svg",{className:c("icon"),viewBox:"0 0 10 6",width:"10",height:"6"},i.createElement("path",{fill:"currentColor",d:"M0 1h10l-5 5z"})),x={ICON_ASC:b,ICON_DESC:w};const _=({sortOrder:e,sortIndex:t,sortable:n,defaultOrder:r})=>n?i.createElement("span",{className:c("sort-icon",{shadow:!e}),"data-index":t},function(e){switch(e){case l.VU:return x.ICON_ASC;case l.xN:return x.ICON_DESC;default:return!1}}(e||r)):null;class E extends i.PureComponent{constructor(){super(...arguments),this.onClick=e=>{if(this.props.onClick){const{row:t,index:n}=this.props;this.props.onClick(t,n,e)}}}render(){const{className:e,columns:t,row:n,index:r,odd:o,footer:a,span:s,getColSpansOfRow:l,headerData:u}=this.props,d=l?l(this.props):void 0;let f=0;return i.createElement("tr",{className:c("row",{odd:o,footer:a,"header-data":u},e),onClick:this.onClick},t.map(((e,t)=>{if(d){if(--f>0)return null;d[e.name]>1&&(f=d[e.name])}let o;if(s){if(0===s[e.name])return null;o=s[e.name]}const l=e._getValue(n);let c=e.customStyle({row:n,index:r,name:e.name,header:!1,footer:a,headerData:u});return e.resizeable&&(c=Object.assign(Object.assign({},c),{width:e.width,maxWidth:e.width})),i.createElement("td",{key:t,className:e._className,title:e._getTitle(n),style:c,colSpan:d?d[e.name]:void 0,rowSpan:o,onClick:e._getOnClick({row:n,index:r,footer:a,headerData:u})},e._renderValue({value:l,row:n,index:r,footer:a,headerData:u}))})))}}E.defaultProps={footer:!1};class S extends i.Component{constructor(){super(...arguments),this._dataRowsRef=null,this.renderedColumns=[],this.renderHeadCell=e=>{var t;const{onResize:n}=this.props,{column:r,rowSpan:o,colSpan:a}=e,{sortable:s=!1,header:l=r.name,className:u,index:d,columnIndex:f,align:p,name:m,width:g,resizeable:v,resizeMinWidth:y,resizeMaxWidth:b}=r,{headerTitle:w="string"===typeof l&&l||void 0}=r;let x=null===(t=r.customStyle)||void 0===t?void 0:t.call(r,{header:!0,name:m});return v&&(x=Object.assign(Object.assign({},x),{width:g,maxWidth:g})),i.createElement("th",{ref:r.dataColumn?this._getColumnRef(f):null,className:c("th",{sortable:s,align:p},u),key:m,title:w,"data-index":d,colSpan:a,rowSpan:o,style:x,onClick:this._getOnSortClick(r)},i.createElement("div",{className:c("head-cell")},l,i.createElement(_,Object.assign({},r))),v&&i.createElement(h,{getColumn:this._getRenderedColumn,columnIndex:f,onResize:n,columnId:m,minWidth:y,maxWidth:b}))},this.renderHeadLevel=(e,t)=>i.createElement("tr",{key:t,className:c("head-row")},e.map(this.renderHeadCell)),this.dataRowsRef=e=>{var t;this._dataRowsRef=e,e&&(null===(t=this.dataRowsHeightObserver)||void 0===t||t.checkAndUpdateHeight())},this._getColumnRef=e=>t=>{this.renderedColumns[e]=t},this._getRenderedColumn=e=>{if(void 0!==e)return this.renderedColumns[e]}}componentDidMount(){this._calculateColumnsWidth(),"function"===typeof this.props.onDataRowsHeightChange&&(this.dataRowsHeightObserver=new y({getSrcElement:()=>this._dataRowsRef,onHeightChange:e=>{"function"===typeof this.props.onDataRowsHeightChange&&this.props.onDataRowsHeightChange(e)}}))}componentDidUpdate(){var e;this._calculateColumnsWidth(),null===(e=this.dataRowsHeightObserver)||void 0===e||e.checkAndUpdateHeight()}componentWillUnmount(){var e;null===(e=this.dataRowsHeightObserver)||void 0===e||e.destroy()}render(){const{headColumns:e,dataColumns:t,renderedDataRows:n}=this.props;return this.renderedColumns.length=t.length,i.createElement(i.Fragment,null,i.createElement("thead",{className:c("head")},e.map(this.renderHeadLevel)),void 0===n?null:i.createElement("tbody",{ref:this.dataRowsRef},n))}_calculateColumnsWidth(){const{onColumnsUpdated:e}=this.props;"function"===typeof e&&requestAnimationFrame((()=>{const t=this.renderedColumns.map((e=>e&&e.getBoundingClientRect().width));e(t)}))}onSort(e,t){const{onSort:n}=this.props;"function"===typeof n&&n(e,t)}_getOnSortClick(e){const{sortable:t=!1,name:n}=e;return n===l.Uc?()=>{this.onSort()}:t?t=>{this.onSort(e,t.ctrlKey||t.metaKey)}:void 0}}class k extends i.Component{constructor(){super(...arguments),this.state={style:{top:k.defaultProps.top}},this.onDataRowsHeightChange=e=>{this.props.onDataRowsHeightChange(e+1)},this._nodeRef=e=>{this._node=e}}static getDerivedStateFromProps(e,t){var n;return e.top!==(null===(n=t.style)||void 0===n?void 0:n.top)?void 0===e.top?null:{style:{top:e.top}}:null}render(){const e=this.props,{mode:t,top:n}=e,o=(0,r.Tt)(e,["mode","top"]);if(t===l.zQ){const{style:e}=this.state;return i.createElement("div",{className:c("sticky",{moving:!0,head:!0}),style:e},this.renderHeader(o))}{const{widths:e=[],right:t=0}=this.state,n=e.reduce(((e,t)=>e+t),0);return i.createElement("div",{ref:this._nodeRef,className:c("sticky",{fixed:!0,head:!0}),style:{right:t,display:n?void 0:"none"}},this.renderHeader(o))}}setScrollLeft(e){requestAnimationFrame((()=>{this._node&&(this._node.scrollLeft=e)}))}setRightPosition(e){this.state.right===e||this.props.top||this.props.mode===l.zQ||this.setState({right:e})}renderHeader(e){const{widths:t=[]}=this.state,n=t.reduce(((e,t)=>e+t),0);return i.createElement("div",{className:c("table-wrapper",{sticky:!0})},i.createElement("table",{className:c("table",{sticky:!0}),style:{width:n||"auto"}},i.createElement("colgroup",null,t.map(((e,t)=>i.createElement("col",{key:t,style:{width:e}})))),i.createElement(S,Object.assign({},e,{onDataRowsHeightChange:this.onDataRowsHeightChange}))))}updateWidths(e=[]){const{widths:t=[]}=this.state;e.some(((e,n)=>e!==t[n]))&&this.setState({widths:e})}}k.defaultProps={top:0};class C extends i.PureComponent{constructor(){super(...arguments),this.state={style:{bottom:0}},this._nodeFixed=null,this._nodeMoving=null,this._nodeFixedRef=e=>{this._nodeFixed=e},this._nodeMovingRef=e=>{var t;this._nodeMoving=e,e&&(null===(t=this.heightObserver)||void 0===t||t.checkAndUpdateHeight())}}static getDerivedStateFromProps(e,t){var n;return e.bottom!==(null===(n=t.style)||void 0===n?void 0:n.bottom)?void 0===e.bottom?null:{style:{bottom:e.bottom}}:null}componentDidMount(){this.heightObserver=new y({getSrcElement:()=>this._nodeMoving,onHeightChange:this.props.onMovingHeightChange})}componentDidUpdate(){var e;null===(e=this.heightObserver)||void 0===e||e.checkAndUpdateHeight()}componentWillUnmount(){var e;null===(e=this.heightObserver)||void 0===e||e.destroy()}render(){if(!this.props.renderedRows)return null;const{mode:e,renderedRows:t}=this.props;if(e===l.zQ){const{style:e}=this.state;return i.createElement("div",{ref:this._nodeMovingRef,className:c("sticky",{footer:!0,moving:!0}),style:e},this.renderFooter(t))}{const{widths:e=[],right:n=0}=this.state,r=e.reduce(((e,t)=>e+t),0);return i.createElement("div",{ref:this._nodeFixedRef,className:c("sticky",{footer:!0,fixed:!0}),style:{right:n,display:r?void 0:"none"}},this.renderFooter(t))}}setScrollLeft(e){requestAnimationFrame((()=>{this._nodeFixed&&(this._nodeFixed.scrollLeft=e)}))}setRightPosition(e){this.state.right!==e&&!this.props.bottom&&this._nodeFixed&&this.setState({right:e})}renderFooter(e){const{widths:t=[]}=this.state,n=t.reduce(((e,t)=>e+t),0);return i.createElement("div",{className:c("table-wrapper",{sticky:!0})},i.createElement("table",{className:c("table",{sticky:!0}),style:{width:n||"auto"}},i.createElement("colgroup",null,t.map(((e,t)=>i.createElement("col",{key:t,style:{width:e}})))),i.createElement("tbody",null,e)))}updateWidths(e=[]){const{widths:t=[]}=this.state;e.some(((e,n)=>e!==t[n]))&&this.setState({widths:e})}}C.defaultProps={bottom:0};class O extends i.PureComponent{constructor(){super(...arguments),this.state={},this._refBody=e=>{this._body=e},this._refBox=e=>{this._box=e},this._refHead=e=>{this._head=e},this._refStickyHead=e=>{this._stickyHead=e},this._refStickyFooter=e=>{this._stickyFooter=e},this._onBoxScroll=()=>{this._updateBoxConstraints()},this._onColumnsUpdated=e=>{this._stickyHead&&this._stickyHead.updateWidths(e),this._stickyFooter&&this._stickyFooter.updateWidths(e)},this.onMovingHeaderDataRowsHeightChange=e=>{var t;-e!==(null===(t=this.state.movingHeaderStyle)||void 0===t?void 0:t.marginTop)&&this.setState({movingHeaderStyle:{marginTop:-e}})},this.onMovingFooterHeightChange=e=>{var t;-e!==(null===(t=this.state.movingFooterStyle)||void 0===t?void 0:t.marginBottom)&&this.setState({movingFooterStyle:{marginBottom:-e}})},this.renderRow=e=>{const{data:t,onRowClick:n}=this.props,{row:r,index:i,span:o}=t[e];return this.renderRowImpl(r,i,{onRowClick:n,odd:e%2===0,span:o})},this.renderFooterRow=(e,t)=>this.renderRowImpl(e,t,{footer:!0}),this.renderHeaderRow=(e,t)=>this.renderRowImpl(e,t,{headerData:!0}),this.renderRowImpl=(e,t,{onRowClick:n,odd:r,span:o,footer:a,headerData:s}={})=>{const{columns:{dataColumns:l},rowClassName:c,rowKey:u,getColSpansOfRow:d}=this.props,f="function"===typeof c?c(e,t,a,s):"";return i.createElement(E,{getColSpansOfRow:d,key:u(e,t),className:f,columns:l,row:e,index:t,span:o,odd:r,onClick:n,footer:a,headerData:s})},this.renderTable=(e,t)=>{const{footerData:n,columns:{dataColumns:r},settings:{stickyHead:o}}=this.props,{movingHeaderStyle:a,movingFooterStyle:s}=this.state,u=this.getStickyFooterMode();return i.createElement("div",{className:c("table-wrapper"),style:u===l.zQ?s:void 0},i.createElement("table",{className:c("table"),style:o===l.zQ?a:void 0},i.createElement("colgroup",null,r.map((({width:e},t)=>i.createElement("col",{key:t,width:e})))),this.renderHead(),i.createElement("tbody",{ref:t},e.length?e:this._getEmptyRow()),n&&i.createElement("tfoot",{className:c("foot",{"has-sticky-footer":u})},n.map(this.renderFooterRow))))}}componentDidMount(){const{stickyHead:e,syncHeadOnResize:t}=this.props.settings;this._updateBoxConstraints(),e&&t&&!this._onWindowResize&&(this._onWindowResize=()=>{this.syncHeadWidths()},window.addEventListener("resize",this._onWindowResize))}componentDidUpdate(){this._updateBoxConstraints()}componentWillUnmount(){this._onWindowResize&&(window.removeEventListener("resize",this._onWindowResize),delete this._onWindowResize)}render(){const{className:e}=this.props,{stickyHead:t,dynamicRender:n}=this.props.settings,r=this.getStickyFooterMode();return i.createElement("div",{className:e,ref:this._refBody},t&&this.renderStickyHead(),i.createElement("div",{ref:this._refBox,className:c("box",{"sticky-head":t,"sticky-footer":r}),onScroll:this._onBoxScroll},n?this.renderTableDynamic():this.renderTableSimple()),r&&this.renderStickyFooter())}_updateBoxConstraints(){const e=this._stickyHead||this._stickyFooter;if(this._box&&e){const e=this._box.offsetWidth-this._box.clientWidth;this._stickyHead&&(this._stickyHead.setRightPosition(e),this._stickyHead.setScrollLeft(this._box.scrollLeft)),this._stickyFooter&&(this._stickyFooter.setRightPosition(e),this._stickyFooter.setScrollLeft(this._box.scrollLeft))}}syncHeadWidths(){this._head&&this._head._calculateColumnsWidth()}_getEmptyRow(){const{columns:{dataColumns:e},emptyDataMessage:t,renderEmptyRow:n}=this.props;return"function"===typeof n?n(e):i.createElement("tr",{className:c("row")},i.createElement("td",{className:c("td",c("no-data")),colSpan:e.length},t))}renderHead(){const{columns:e,onSort:t,onResize:n}=this.props,{displayIndices:r}=this.props.settings,o=this.renderHeaderRows();return i.createElement(S,Object.assign({ref:this._refHead},e,{displayIndices:Boolean(r),onSort:t,onResize:n,onColumnsUpdated:this._onColumnsUpdated,renderedDataRows:o}))}renderStickyHead(){const{columns:e,onSort:t,onResize:n}=this.props,{displayIndices:r,stickyTop:o,stickyHead:a}=this.props.settings,s="auto"===o&&this._body&&this._body.parentNode?this._body.parentNode.offsetTop:Number(o)||0,l=this.renderHeaderRows();return i.createElement(k,Object.assign({mode:a,top:s,ref:this._refStickyHead},e,{displayIndices:r,onSort:t,onResize:n,renderedDataRows:l,onDataRowsHeightChange:this.onMovingHeaderDataRowsHeightChange}))}renderStickyFooter(){const{columns:e}=this.props,{stickyBottom:t}=this.props.settings;let n=Number(t)||0;if("auto"===t&&this._body&&this._body.parentNode){const e=this._body.parentNode;n=e.offsetTop+e.offsetHeight}const r=this.renderFooterRows();return i.createElement(C,{ref:this._refStickyFooter,mode:this.getStickyFooterMode(),bottom:n,dataColumns:e.dataColumns,renderedRows:r,onMovingHeightChange:this.onMovingFooterHeightChange})}renderTableDynamic(){const{data:e,settings:{dynamicInnerRef:t,dynamicRenderType:n="uniform",dynamicRenderUseStaticSize:r,dynamicRenderThreshold:o,dynamicRenderMinSize:s,dynamicRenderScrollParentGetter:l,dynamicRenderScrollParentViewportSizeGetter:c,dynamicItemSizeEstimator:u,dynamicItemSizeGetter:d}={}}=this.props;return i.createElement(a(),{ref:t,type:n,useStaticSize:r,threshold:o,minSize:s,itemSizeEstimator:u,itemSizeGetter:d,length:e.length,itemRenderer:this.renderRow,itemsRenderer:this.renderTable,scrollParentGetter:l,scrollParentViewportSizeGetter:c})}renderTableSimple(){const{data:e}=this.props,t=e.map(((e,t)=>this.renderRow(t)));return this.renderTable(t,null)}renderHeaderRows(){const{headerData:e}=this.props;return e&&e.map(this.renderHeaderRow)}renderFooterRows(){const{footerData:e}=this.props;return null===e||void 0===e?void 0:e.map(this.renderFooterRow)}getStickyFooterMode(){const{footerData:e}=this.props;if(!(null===e||void 0===e?void 0:e.length))return!1;const{stickyFooter:t}=this.props.settings;return t}}const N=i.memo((function(e){const{column:t,value:n,row:r,index:o,footer:a,headerData:s}=e;return i.createElement(i.Fragment,null,t.render({value:n,row:r,index:o,footer:a,headerData:s}))}));class T extends i.Component{constructor(){super(...arguments),this.state=Object.assign({settings:{}},p(this.props.initialSortOrder,this.props.settings)),this._tableRef=e=>{this.table=e},this.renderMemoizedCell=({column:e,value:t,row:n,index:r,footer:o,headerData:a})=>i.createElement(N,{column:e,value:t,row:n,index:r,footer:o,headerData:a}),this.getColumn=(e,t)=>{var n;const{onResize:r}=this.props,{settings:i}=this.state,{defaultOrder:o}=i,{sortOrder:a={},sortColumns:s,indexColumn:l}=this.state,u=Number(Boolean(l)),d=this.isSortEnabled(),{name:f,accessor:p=e.name,align:h,sortable:m=i.sortable,group:g,autogroup:v=!0}=e,{sortAccessor:y,onClick:b}=e,w=c("td",{align:h},e.className),x=(null!==(n=e.resizeable)&&void 0!==n?n:i.defaultResizeable)&&Boolean(r),_="function"===typeof p?e=>p(e):e=>Object.prototype.hasOwnProperty.call(e,p)?e[p]:void 0,E="function"===typeof e.title?t=>e.title(t):()=>"string"===typeof e.title&&e.title||void 0,S="function"===typeof y?e=>y(e):_,k="function"===typeof e.render?({value:t,row:n,index:r,footer:i,headerData:o})=>this.renderMemoizedCell({column:e,value:t,row:n,index:r,footer:i,headerData:o}):({value:e})=>e,C="function"===typeof e.customStyle?e.customStyle:()=>{},O="function"===typeof b?t=>n=>b(t,e,n):()=>{};return Object.assign(Object.assign({index:t-u,columnIndex:t,dataColumn:!0,defaultOrder:o},e),{resizeable:x,sortable:m&&d,_className:w,_getValue:_,_getTitle:E,_getSortValue:S,_renderValue:k,_getOnClick:O,customStyle:C,group:g,autogroup:v,sortOrder:a[f]||void 0,sortIndex:s.length>1?s.indexOf(f)+1:void 0})},this.isSortEnabled=()=>{const{data:e}=this.props;return Array.isArray(e)&&e.length>1},this.onSort=(e,t)=>{if(e){const{sortOrder:n,sortColumns:r}=u(e,this.state,t,this.props.settings);this.setState({sortOrder:n,sortColumns:r});const{onSort:i}=this.props;if("function"===typeof i){const e=function(e){return Object.keys(e).map((t=>({columnId:t,order:e[t]})))}(n);i(e)}}else{this.setState({sortOrder:{},sortColumns:[]});const{onSort:e}=this.props;"function"===typeof e&&e([])}}}static normalizeStickyHead(e=!1){return e!==l.zQ||g?e:(console.warn("Your browser does not support position: sticky, moving sticky headers will be disabled."),!1)}static calculateSettings(e){return Object.assign(Object.assign(Object.assign({},T.defaultProps.settings),e),{stickyHead:T.normalizeStickyHead(e.stickyHead),stickyFooter:T.normalizeStickyHead(e.stickyFooter)})}static getIndexColumn({startIndex:e,data:t,visibleRowIndex:n,settings:r}){const i="object"===typeof r.displayIndices?r.displayIndices.maxIndex:e+t.length+1;return{name:l.Uc,header:"#",className:c("index"),render:({row:t,index:r,footer:i,headerData:o})=>{var a,s;return o?null!==(a=t.headerIndex)&&void 0!==a?a:e+r:i?null!==(s=t.footerIndex)&&void 0!==s?s:e+r:"function"===typeof n?n(t,r):e+r},sortable:!1,resizeable:!1,width:20+10*Math.ceil(Math.log10(i))}}static getDerivedStateFromProps(e){const t=T.calculateSettings(e.settings);return Object.assign({settings:t,indexColumn:Boolean(t.displayIndices)&&T.getIndexColumn(e)},e.sortOrder?Object.assign({},p(e.sortOrder,e.settings)):void 0)}render(){const{getColSpansOfRow:e,headerData:t,data:n,footerData:r,columns:o,startIndex:a,emptyDataMessage:s,rowClassName:l,rowKey:u,onRowClick:d,onResize:p,theme:h,renderEmptyRow:m,nullBeforeNumbers:g}=this.props,{settings:v,sortOrder:y,sortColumns:b}=this.state,{highlightRows:w=!1,stripedRows:x=!1,headerMod:_=!1}=v,E=c({"highlight-rows":w,"striped-rows":x,header:_,theme:h}),S=this.getComplexColumns(o);return v.dynamicRender&&S.dataColumns.some((e=>e.group))&&console.warn("Simultaneously used grouping cells and dynamic render. The table will render unpredictable."),i.createElement(O,{ref:this._tableRef,getColSpansOfRow:e,className:E,settings:v,startIndex:a,columns:S,emptyDataMessage:s,renderEmptyRow:m,rowClassName:l,rowKey:u||T.defaultProps.rowKey,onRowClick:d,headerData:t,data:f(n,S.dataColumns,{sortOrder:y,sortColumns:b},{nullBeforeNumbers:g,externalSort:null===v||void 0===v?void 0:v.externalSort}),footerData:r,onSort:this.onSort,onResize:p})}getComplexColumns(e){const t=[],n=[],r=[],{indexColumn:i}=this.state,o=i?[i,...e]:e,a=(e,i)=>{t[i]||(t[i]=[]);const o=t[i];return e.reduce(((e,t)=>{let s=1,l=-1,c=t;if(Array.isArray(t.sub))s=a(t.sub,i+1);else{const e=this.getColumn(t,n.length);n.push(e),l=i,c=e}const u={column:c,itemLevel:l,colSpan:s,rowSpan:0};return r.push(u),o.push(u),s+e}),0)};return a(o,0),r.forEach((e=>{e.rowSpan=e.itemLevel<0?1:t.length-e.itemLevel})),{headColumns:t,dataColumns:n}}resize(){this.table&&this.table.syncHeadWidths()}}function A(e){return new Set(e.map((e=>e.name))).size!==e.length}T.defaultProps={startIndex:0,emptyDataMessage:"No data",settings:{displayIndices:!0,dynamicRenderMinSize:1,stickyHead:!1,stickyFooter:!1,sortable:!0,externalSort:!1,defaultOrder:l.VU,defaultResizeable:!1},rowKey:(e,t)=>Object.prototype.hasOwnProperty.call(e,"id")?e.id:t,initialSortOrder:{},initialSortColumns:[],theme:"yandex-cloud"},T.getSortedData=f;const I="It is strongly recommended against using duplicate column names. They act as default accessors and titles, so doing so may lead to confusing titles and the wrong data being extracted.";class D extends i.PureComponent{constructor(){super(...arguments),this.state={},this._tableRef=e=>{this.table=e}}static setCustomIcons(e){x.ICON_ASC=e.ICON_ASC||b,x.ICON_DESC=e.ICON_DESC||w}componentDidMount(){A(this.props.columns)&&console.warn(I)}componentDidUpdate(e){const{columns:t}=this.props;t!==e.columns&&A(t)&&console.warn(I)}componentDidCatch(e){console.error(e),this.setState({error:e});const{onError:t}=this.props;"function"===typeof t&&t(e)}render(){const{error:e}=this.state;return e?i.createElement("pre",{className:c("error")},"DataTable got stuck in invalid state. Please tell developers about it.","\n\n",e.stack&&String(e.stack)||String(e)):i.createElement(T,Object.assign({ref:this._tableRef},this.props))}resize(){this.table&&this.table.resize()}}D.FIXED=l.N2,D.MOVING=l.zQ,D.ASCENDING=l.VU,D.DESCENDING=l.xN,D.LEFT=l.M3,D.CENTER=l.Q7,D.RIGHT=l.NS;const P=D},18650:(e,t,n)=>{"use strict";n.d(t,{m:()=>S});var r=n(27145),i=n(59284),o=n(32084),a=n(81517),s=n(69220);const l={pc:{NormalizeMap:{arrowup:"up",arrowdown:"down",arrowleft:"left",arrowright:"right",esc:"escape",return:"enter",mod:"ctrl",control:"ctrl",opt:"alt",option:"alt",cmd:"ctrl",command:"ctrl"},Priority:{shift:200,alt:300,ctrl:400},DisplayName:{up:"\u2191",down:"\u2193",left:"\u2190",right:"\u2192",escape:"Esc",plus:"\uff0b",enter:"Enter",ctrl:"Ctrl",alt:"Alt",shift:"Shift",tab:"Tab",backspace:"Backspace"}},mac:{NormalizeMap:{arrowup:"up",arrowdown:"down",arrowleft:"left",arrowright:"right",esc:"escape",enter:"return",mod:"command",ctrl:"control",alt:"option",opt:"option",cmd:"command"},Priority:{command:100,shift:200,option:300,control:400},DisplayName:{up:"\u25b2",down:"\u25bc",left:"\u25c0",right:"\u25b6",escape:"\u238b",plus:"\uff0b",return:"\u23ce",command:"\u2318",option:"\u2325",control:"\u2303",shift:"\u21e7",backspace:"\u232b",tab:"\u21e5"}}};var c=n(98816),u=n.n(c),d=n(11078),f=n.n(d);function p(e,t){return e.trim().split(t).filter(Boolean)}const h=/\s/;function m(e,t){return p(t,h).map((t=>f()(p(t,"+").map(function(e){return function(t){var n;const r=function(e,t){var n;return t=t.toLowerCase(),null!==(n=e.NormalizeMap[t])&&void 0!==n?n:t}(e,t);return{raw:t,id:r,priority:null!==(n=e.Priority[r])&&void 0!==n?n:0,displayName:e.DisplayName[r]}}}(e)).sort(((e,t)=>t.priority-e.priority)),(e=>e.id)).map(g)))}function g(e){var t;return null!==(t=e.displayName)&&void 0!==t?t:u()(e.id)}const v=(0,s.om)("hotkey"),y={BetweenGroups:String.fromCharCode(160),BetweenKeys:String.fromCharCode(8239)},b=i.forwardRef((function(e,t){const{value:n,platform:r,view:o="light",qa:a,style:s,className:c}=e,u=function(e,t){var n;const r=null!==(n=t.platform)&&void 0!==n?n:"undefined"!==typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform)?"mac":"pc",i=l[r];return m(i,e)}(n,{platform:r}),d=[];let f=!1;return u.forEach(((e,t)=>{0!==e.length&&(f?d.push(y.BetweenGroups):f=!0,e.forEach(((e,n)=>{0===n||d.push(y.BetweenKeys,i.createElement("span",{key:`${e}_${t}_${n}_plus`,className:v("plus")},"+"),y.BetweenKeys),d.push(i.createElement("kbd",{key:`${e}_${t}_${n}`},e))})))})),0===d.length?null:i.createElement("kbd",{ref:t,style:s,"data-qa":a,className:v({view:o},c)},d)}));var w=n(39238),x=n(7412);const _=["bottom","top"],E=(0,s.om)("action-tooltip");function S(e){const{placement:t=_,title:n,hotkey:s,children:l,className:c,contentClassName:u,description:d,disabled:f=!1,style:p,qa:h,id:m,disablePortal:g}=e,v=(0,r.Tt)(e,["placement","title","hotkey","children","className","contentClassName","description","disabled","style","qa","id","disablePortal"]),[y,S]=i.useState(null),k=(0,a.d)(y,v),C=i.Children.only(l),O=(0,x.Q)(C),N=(0,o.N)(S,O);return i.createElement(i.Fragment,null,i.cloneElement(C,{ref:N}),y?i.createElement(w.z,{id:m,disablePortal:g,role:"tooltip",className:E(null,c),style:p,open:k&&!f,placement:t,anchorRef:{current:y},disableEscapeKeyDown:!0,disableOutsideClick:!0,disableLayer:!0,qa:h},i.createElement("div",{className:E("content",u)},i.createElement("div",{className:E("heading")},i.createElement("div",{className:E("title")},n),s&&i.createElement(b,{view:"dark",value:s,className:E("hotkey")})),d&&i.createElement("div",{className:E("description")},d))):null)}},33705:(e,t,n)=>{"use strict";n.d(t,{I:()=>s});var r=n(59284),i=n(13066),o=n(99991);const a=(0,n(69220).om)("arrow-toggle");function s({size:e=16,direction:t="bottom",className:n,qa:s}){return r.createElement("span",{style:{width:e,height:e},className:a({direction:t},n),"data-qa":s},r.createElement(o.I,{data:i.A,size:e}))}},84476:(e,t,n)=>{"use strict";n.d(t,{$:()=>m});var r=n(59284),i=n(69220),o=n(10176),a=n(11669),s=n(41668),l=n(27629);const c=(0,i.om)("button");function u(){(0,l.m)('[Button.Icon] Physical values (left, right) of "side" property are deprecated. Use logical values (start, end) instead.')}const d=({side:e,className:t,children:n})=>r.createElement("span",{className:c("icon",{side:f(e)},t)},r.createElement("span",{className:c("icon-inner")},n));function f(e){let t=e;return"left"===t&&(u(),t="start"),"right"===t&&(u(),t="end"),t}d.displayName="Button.Icon";const p=(0,i.om)("button"),h=r.forwardRef((function({view:e="normal",size:t="m",pin:n="round-round",selected:i,disabled:o=!1,loading:s=!1,width:l,title:c,tabIndex:u,type:d="button",component:f,href:h,target:m,rel:g,extraProps:v,onClick:y,onMouseEnter:w,onMouseLeave:x,onFocus:_,onBlur:E,children:S,id:k,style:C,className:O,qa:N},T){const A={title:c,tabIndex:u,onClick:y,onClickCapture:r.useCallback((t=>{a.o.publish({componentId:"Button",eventId:"click",domEvent:t,meta:{content:t.currentTarget.textContent,view:e}})}),[e]),onMouseEnter:w,onMouseLeave:x,onFocus:_,onBlur:E,id:k,style:C,className:p({view:e,size:t,pin:n,selected:i,disabled:o||s,loading:s,width:l},O),"data-qa":N};if("string"===typeof h||f){const e={href:h,target:m,rel:"_blank"!==m||g?g:"noopener noreferrer"};return r.createElement(f||"a",Object.assign(Object.assign(Object.assign(Object.assign({},v),A),f?{}:e),{ref:T,"aria-disabled":o||s}),b(S))}return r.createElement("button",Object.assign({},v,A,{ref:T,type:d,disabled:o||s,"aria-pressed":i}),b(S))}));h.displayName="Button";const m=Object.assign(h,{Icon:d}),g=(0,s.g)(d),v=(0,s.g)("span"),y=RegExp(`^${p("icon")}($|\\s+\\w)`);function b(e){const t=r.Children.toArray(e);if(1===t.length){const e=t[0];return g(e)||v(e)&&y.test(e.props.className||"")?e:(0,o.If)(e)||(0,o.$D)(e)?r.createElement(m.Icon,{key:"icon"},e):r.createElement("span",{key:"text",className:p("text")},e)}{let e,n,i;const a=[];for(const s of t){const t=(0,o.If)(s)||(0,o.$D)(s),i=g(s),l=v(s)&&y.test(s.props.className||"");if(t||i||l)if(e||0!==a.length){if(!n&&0!==a.length){const e="icon-end",o="end";n=t?r.createElement(m.Icon,{key:e,side:o},s):i?r.cloneElement(s,{side:o}):r.cloneElement(s,{className:p("icon",{side:f(o)},s.props.className)})}}else{const n="icon-start",o="start";e=t?r.createElement(m.Icon,{key:n,side:o},s):i?r.cloneElement(s,{side:o}):r.cloneElement(s,{className:p("icon",{side:f(o)},s.props.className)})}else a.push(s)}return a.length>0&&(i=r.createElement("span",{key:"text",className:p("text")},a)),[e,n,i]}}},96873:(e,t,n)=>{"use strict";n.d(t,{b:()=>b});var r=n(27145),i=n(59284),o=n(18650),a=n(84476),s=n(48699),l=n(46700),c=n(69220),u=n(72837);const d=JSON.parse('{"startCopy":"Copy","endCopy":"Copied"}'),f=JSON.parse('{"startCopy":"\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c","endCopy":"\u0421\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u043e"}'),p=(0,u.N)({en:d,ru:f},"ClipboardButton"),h=(0,c.om)("clipboard-button"),m=1200,g=200,v={xs:12,s:16,m:16,l:16,xl:20},y=e=>{const{size:t="m",hasTooltip:n=!0,tooltipInitialText:l=p("startCopy"),tooltipSuccessText:c=p("endCopy"),status:u,view:d="flat",extraProps:f={},children:m,iconPosition:g="start",closeDelay:y,onMouseEnter:b,onFocus:w}=e,x=(0,r.Tt)(e,["size","hasTooltip","tooltipInitialText","tooltipSuccessText","status","view","extraProps","children","iconPosition","closeDelay","onMouseEnter","onFocus"]),_=i.createElement(a.$.Icon,{className:h("icon")},i.createElement(s.u,{size:v[t],status:u}));return i.createElement(o.m,{title:"success"===u?c:l,disabled:!n,closeDelay:y},i.createElement(a.$,Object.assign({view:d,size:t,extraProps:Object.assign({"aria-label":l},f),onMouseEnter:b,onFocus:w},x),"start"===g?_:null,m,"end"===g?_:null))};function b(e){const{text:t,timeout:n=m,onCopy:o,options:a,hasTooltip:s=!0,onMouseEnter:c,onFocus:u}=e,d=(0,r.Tt)(e,["text","timeout","onCopy","options","hasTooltip","onMouseEnter","onFocus"]),f=i.useRef(),[p,h]=i.useState(void 0),[v,b]=i.useState(!1);i.useEffect((()=>window.clearTimeout(f.current)),[]);const w=i.useCallback(((e,t)=>{null===o||void 0===o||o(e,t),b(!1),h(n),window.clearTimeout(f.current),f.current=window.setTimeout((()=>{b(!0)}),n-g)}),[o,n]),x=i.useCallback((()=>{v&&(b(!1),h(void 0))}),[v]),_=i.useCallback((e=>{null===c||void 0===c||c(e),x()}),[c,x]),E=i.useCallback((e=>{null===u||void 0===u||u(e),x()}),[u,x]);return i.createElement(l.$,{text:t,timeout:n,onCopy:w,options:a},(e=>i.createElement(y,Object.assign({},d,{closeDelay:p,hasTooltip:s&&!v,status:e,onMouseEnter:_,onFocus:E}))))}},48699:(e,t,n)=>{"use strict";n.d(t,{u:()=>c});var r=n(27145),i=n(59284);const o=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.5 12c0 .414-.168.79-.44 1.06A1.5 1.5 0 0 1 8 13.5H4a1.5 1.5 0 0 1-1.06-.44A1.5 1.5 0 0 1 2.5 12V8c0-.414.168-.79.44-1.06A1.5 1.5 0 0 1 4 6.5h4c.414 0 .79.168 1.06.44.272.27.44.646.44 1.06zm-1.47-1.03L7.06 10l.97-.97a.75.75 0 0 0-1.06-1.06L6 8.94l-.97-.97a.75.75 0 0 0-1.06 1.06l.97.97-.97.97a.75.75 0 0 0 1.06 1.06l.97-.97.97.97a.75.75 0 0 0 1.06-1.06M6.5 5H8a3 3 0 0 1 3 3v1.5h1A1.5 1.5 0 0 0 13.5 8V4A1.5 1.5 0 0 0 12 2.5H8A1.5 1.5 0 0 0 6.5 4zM5 4a3 3 0 0 1 3-3h4a3 3 0 0 1 3 3v4a3 3 0 0 1-3 3h-1v1a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V8a3 3 0 0 1 3-3h1z",clipRule:"evenodd"})),a=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("g",{fill:"currentColor"},i.createElement("path",{d:"m8 9.076.085-.107a.751.751 0 1 0-1.171-.937L5.438 9.877 5.03 9.47a.747.747 0 0 0-1.06 0 .75.75 0 0 0 0 1.06l.407.408.593.592a.75.75 0 0 0 1.116-.061l.522-.654h.001z"}),i.createElement("path",{fillRule:"evenodd",d:"M12 11a3 3 0 0 0 3-3V4a3 3 0 0 0-3-3H8a3 3 0 0 0-3 3v1H4a3 3 0 0 0-3 3v4a3 3 0 0 0 3 3h4a3 3 0 0 0 3-3v-1zM4 6.5A1.5 1.5 0 0 0 2.5 8v4A1.5 1.5 0 0 0 4 13.5h4A1.5 1.5 0 0 0 9.5 12V8A1.5 1.5 0 0 0 8 6.5zM13.5 4A1.5 1.5 0 0 0 12 2.5H8A1.5 1.5 0 0 0 6.5 4v1H8a3 3 0 0 1 3 3v1.5h1A1.5 1.5 0 0 0 13.5 8z",clipRule:"evenodd"})));var s=n(51016),l=n(99991);function c(e){var{status:t}=e,n=(0,r.Tt)(e,["status"]);return"error"===t?i.createElement(l.I,Object.assign({data:o},n)):"success"===t?i.createElement(l.I,Object.assign({data:a},n)):i.createElement(l.I,Object.assign({data:s.A},n))}},46898:(e,t,n)=>{"use strict";n.d(t,{m:()=>o});var r=n(59284);const i=(0,n(69220).om)("control-label"),o=r.forwardRef((({children:e,className:t,labelClassName:n,title:o,style:a,disabled:s=!1,control:l,size:c="m",qa:u},d)=>{const f=r.cloneElement(l,{className:i("indicator",l.props.className)});return r.createElement("label",{ref:d,title:o,style:a,className:i({size:c,disabled:s},t),"data-qa":u},f,e?r.createElement("span",{className:i("text",n)},e):null)}));o.displayName="ControlLabel"},46700:(e,t,n)=>{"use strict";n.d(t,{$:()=>s});var r=n(59284),i=n(64255),o=n.n(i);const a="pending";function s(e){const{children:t,text:n,options:i,timeout:s,onCopy:l}=e,[c,u]=r.useState(a),d=r.useRef(),f=r.useMemo((()=>t(c)),[t,c]),p=r.useCallback(((e,t)=>{u(t?"success":"error"),window.clearTimeout(d.current),d.current=window.setTimeout((()=>u(a)),s),null===l||void 0===l||l(e,t)}),[l,s]);if(r.useEffect((()=>()=>window.clearTimeout(d.current)),[]),!r.isValidElement(f))throw new Error("Content must be a valid react element");return r.createElement(o(),{text:n,onCopy:p,options:i},f)}},40336:(e,t,n)=>{"use strict";n.d(t,{u:()=>k});var r=n(59284),i=n(41668),o=n(27629);const a=r.createContext(void 0);function s({direction:e,contentMaxWidth:t,nameMaxWidth:n,children:i}){const o=n?{maxWidth:n,width:n}:{},s="number"===typeof t?{width:t,maxWidth:t}:{};return r.createElement(a.Provider,{value:{keyStyle:o,valueStyle:s,direction:e}},i)}var l=n(69220);const c=(0,l.om)("definition-list");var u=n(96873);function d({copyText:e,children:t}){const n=null!==t&&void 0!==t?t:"\u2014";return e?r.createElement("div",{className:c("copy-container")},n,r.createElement(u.b,{size:"s",text:e,className:c("copy-button"),view:"flat-secondary"})):n}var f=n(27145),p=n(73633),h=n(99991),m=n(84375);const g=(0,l.om)("help-mark");function v(e){var{buttonRef:t,buttonProps:n={},children:i,className:o}=e,a=(0,f.Tt)(e,["buttonRef","buttonProps","children","className"]);return r.createElement(m.A,Object.assign({},a,{delayClosing:300,className:g(null,o),content:i}),(()=>r.createElement("button",Object.assign({ref:t,type:"button"},n,{className:g("button",n.className)}),r.createElement(h.I,{data:p.A,size:16}))))}var y=n(72837);const b=JSON.parse('{"label_note":"Note"}'),w=JSON.parse('{"label_note":"\u0421\u043f\u0440\u0430\u0432\u043a\u0430"}'),x=(0,y.N)({en:b,ru:w},"DefinitionList");function _({note:e}){if(!e)return null;const t=c("item-note-tooltip");if("string"===typeof e)return r.createElement(v,{className:t,placement:["bottom","top"],buttonProps:{"aria-label":x("label_note")}},e);if("object"===typeof e){const{buttonProps:n}=e,i=(0,f.Tt)(e,["buttonProps"]);return r.createElement(v,Object.assign({className:t,placement:["bottom","top"],buttonProps:Object.assign({"aria-label":x("label_note")},n)},i))}return null}function E({note:e,name:t,direction:n}){const i=e?r.createElement(r.Fragment,null,"\xa0",r.createElement(_,{note:e})):null;return r.createElement(r.Fragment,null,r.createElement("div",{className:c("term-wrapper")},t,i),"horizontal"===n&&r.createElement("div",{className:c("dots")}))}function S({name:e,children:t,copyText:n,note:i}){const{direction:o,keyStyle:s,valueStyle:l}=function(){const e=r.useContext(a);if(void 0===e)throw new Error("useDefinitionListAttributes must be used within DefinitionListProvider");return e}();return r.createElement("div",{className:c("item")},r.createElement("dt",{className:c("term-container"),style:s},r.createElement(E,{direction:o,name:e,note:i})),r.createElement("dd",{className:c("definition"),style:Object.assign(Object.assign({},l),{lineBreak:"string"===typeof t&&(u=20,function(e){return e.split(/\s+/).some((e=>e.length>u))})(t)?"anywhere":void 0})},r.createElement(d,{copyText:n},t)));var u}function k({responsive:e,direction:t="horizontal",nameMaxWidth:n,contentMaxWidth:i,className:a,children:l,qa:u}){const d=function(e){const t=r.Children.toArray(e),n=[];for(const r of t){C(r)?n.push(r):(0,o.m)("[DefinitionList] Only <DefinitionList.Item> components is allowed as children")}return n}(l);return r.createElement(s,{direction:t,nameMaxWidth:n,contentMaxWidth:i},r.createElement("dl",{className:c({responsive:e,vertical:"vertical"===t},a),"data-qa":u},d))}S.displayName="DefinitionListItem";const C=(0,i.g)(S);k.Item=S,k.displayName="DefinitionList"},2198:(e,t,n)=>{"use strict";n.d(t,{l:()=>A});var r=n(59284),i=n(72630),o=n(14794),a=n(18670),s=n(98392),l=n(19225),c=n(69220),u=n(99635),d=n(6826);const f=(0,c.om)("modal");function p({open:e=!1,keepMounted:t=!1,disableBodyScrollLock:n=!1,disableEscapeKeyDown:c,disableOutsideClick:p,disableFocusTrap:h,disableAutoFocus:m,focusTrap:g=!0,autoFocus:v=!0,restoreFocusRef:y,onEscapeKeyDown:b,onEnterKeyDown:w,onOutsideClick:x,onClose:_,onTransitionEnter:E,onTransitionEntered:S,onTransitionExit:k,onTransitionExited:C,children:O,style:N,contentOverflow:T="visible",className:A,contentClassName:I,"aria-labelledby":D,"aria-label":P,container:R,qa:j}){const M=r.useRef(null),L=r.useRef(null),[z,F]=r.useState(!1);(0,o.y)({enabled:!n&&(e||z)});const B=(0,a.s)({enabled:e||z,restoreFocusRef:y,focusTrapped:!0});return(0,u.Z)({open:e,disableEscapeKeyDown:c,disableOutsideClick:p,onEscapeKeyDown:b,onEnterKeyDown:w,onOutsideClick:x,onClose:_,contentRefs:[L],type:"modal"}),r.createElement(i.A,{nodeRef:M,in:e,addEndListener:e=>{var t;return null===(t=M.current)||void 0===t?void 0:t.addEventListener("animationend",e)},classNames:(0,d.L)(f),mountOnEnter:!t,unmountOnExit:!t,appear:!0,onEnter:()=>{F(!0),null===E||void 0===E||E()},onExit:()=>{F(!0),null===k||void 0===k||k()},onEntered:()=>{F(!1),null===S||void 0===S||S()},onExited:()=>{F(!1),null===C||void 0===C||C()}},r.createElement(s.Z,{container:R},r.createElement("div",{ref:M,style:N,className:f({open:e},A),"data-qa":j},r.createElement("div",{className:f("content-aligner")},r.createElement("div",{className:f("content-wrapper")},r.createElement(l.s,{enabled:!h&&g&&e&&!z,autoFocus:!m&&v},r.createElement("div",Object.assign({ref:L,tabIndex:-1,role:"dialog","aria-modal":e,"aria-label":P,"aria-labelledby":D,className:f("content",{"has-scroll":"auto"===T},I)},B),O)))))))}var h=n(81240),m=n(84476),g=n(99991),v=n(72837);const y=JSON.parse('{"close":"Close dialog"}'),b=JSON.parse('{"close":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432\u043e\u0435 \u043e\u043a\u043d\u043e"}'),w=(0,v.N)({en:y,ru:b},"Dialog"),x=(0,c.om)("dialog-btn-close");function _({onClose:e}){return r.createElement("div",{className:x()},r.createElement(m.$,{view:"flat",size:"l",className:x("btn"),onClick:t=>e(t,{isOutsideClick:!1}),extraProps:{"aria-label":w("close")}},r.createElement(g.I,{data:h.A,size:20})))}const E=(0,c.om)("dialog-body");const S=(0,c.om)("dialog-divider");var k=n(39238);const C=(0,c.om)("dialog-footer");class O extends r.Component{constructor(){super(...arguments),this.errorTooltipRef=r.createRef(),this.handleKeyDown=e=>{"Enter"===e.key&&(e.preventDefault(),this.props.onClickButtonApply&&this.props.onClickButtonApply(e))}}componentDidMount(){this.props.listenKeyEnter&&this.attachKeyDownListeners()}componentDidUpdate(e){!this.props.listenKeyEnter&&e.listenKeyEnter&&this.detachKeyDownListeners(),this.props.listenKeyEnter&&!e.listenKeyEnter&&this.attachKeyDownListeners()}componentWillUnmount(){this.detachKeyDownListeners()}render(){const{onClickButtonCancel:e,onClickButtonApply:t,loading:n,textButtonCancel:i,textButtonApply:o,propsButtonCancel:a,propsButtonApply:s,preset:l,children:c,errorText:u,showError:d,renderButtons:f,className:p}=this.props,h=r.createElement("div",{className:C("button",{action:"cancel"})},r.createElement(m.$,Object.assign({view:o?"flat":"normal",size:"l",width:"max",onClick:e,disabled:n},a),i)),g=r.createElement("div",{className:C("button",{action:"apply"})},r.createElement(m.$,Object.assign({ref:this.errorTooltipRef,type:"submit",view:"action",size:"l",width:"max",onClick:t,loading:n,className:C("button-apply",{preset:l})},s),o),u&&r.createElement(k.z,{open:d,anchorRef:this.errorTooltipRef,placement:["bottom","top"],disableLayer:!0,disablePortal:!0,hasArrow:!0},r.createElement("div",{className:C("error")},u)));return r.createElement("div",{className:C(null,p)},r.createElement("div",{className:C("children")},c),r.createElement("div",{className:C("bts-wrapper")},f?f(g,h):r.createElement(r.Fragment,null,i&&h,o&&g)))}attachKeyDownListeners(){setTimeout((()=>{window.addEventListener("keydown",this.handleKeyDown)}),0)}detachKeyDownListeners(){window.removeEventListener("keydown",this.handleKeyDown)}}O.defaultProps={preset:"default",showError:!1,listenKeyEnter:!1};const N=(0,c.om)("dialog-header");const T=(0,c.om)("dialog");class A extends r.Component{constructor(){super(...arguments),this.handleCloseButtonClick=e=>{const{onClose:t}=this.props;t(e.nativeEvent,"closeButtonClick")}}render(){const{container:e,children:t,open:n,disableBodyScrollLock:i,disableEscapeKeyDown:o,disableOutsideClick:a,disableFocusTrap:s,disableAutoFocus:l,restoreFocusRef:c,keepMounted:u,size:d,contentOverflow:f="visible",className:h,modalClassName:m,hasCloseButton:g,onEscapeKeyDown:v,onEnterKeyDown:y,onOutsideClick:b,onClose:w,onTransitionEnter:x,onTransitionEntered:E,onTransitionExit:S,onTransitionExited:k,"aria-label":C,"aria-labelledby":O,qa:N}=this.props;return r.createElement(p,{open:n,contentOverflow:f,disableBodyScrollLock:i,disableEscapeKeyDown:o,disableOutsideClick:a,disableFocusTrap:s,disableAutoFocus:l,restoreFocusRef:c,keepMounted:u,onEscapeKeyDown:v,onEnterKeyDown:y,onOutsideClick:b,onClose:w,onTransitionEnter:x,onTransitionEntered:E,onTransitionExit:S,onTransitionExited:k,className:T("modal",m),"aria-label":C,"aria-labelledby":O,container:e,qa:N},r.createElement("div",{className:T({size:d,"has-close":g,"has-scroll":"auto"===f},h)},t,g&&r.createElement(_,{onClose:this.handleCloseButtonClick})))}}A.defaultProps={disableBodyScrollLock:!1,disableEscapeKeyDown:!1,disableOutsideClick:!1,keepMounted:!1,hasCloseButton:!0},A.Footer=O,A.Header=function(e){const{caption:t="",insertBefore:n,insertAfter:i,className:o,id:a}=e;return r.createElement("div",{className:N(null,o)},n,r.createElement("div",{className:N("caption"),id:a},t),i)},A.Body=function(e){const{className:t,hasBorders:n=!1}=e;return r.createElement("div",{className:E({"has-borders":n},t)},e.children)},A.Divider=function({className:e}){return r.createElement("div",{className:S(null,e)})}},40569:(e,t,n)=>{"use strict";n.d(t,{r:()=>F});var r=n(59284),i=n(7450),o=n(46734),a=n(84476),s=n(99991),l=n(69220);const c=(0,l.om)("dropdown-menu"),u=r.createContext({toggle(){},data:void 0});u.displayName="DropdownMenu.Context";var d=n(27145),f=n(9187),p=n(38602),h=n(90826);const m=(0,l.om)("menu"),g=r.forwardRef((function({label:e,children:t,style:n,className:i,qa:o},a){const s=(0,h.u)();return r.createElement("li",{ref:a,className:m("list-group-item")},r.createElement("div",{style:n,className:m("group",i),"data-qa":o},e&&r.createElement("div",{id:s,className:m("group-label")},e),r.createElement("ul",{role:"group","aria-labelledby":s,className:m("group-list")},t)))}));var v=n(11669);const y=(0,l.om)("menu"),b=r.forwardRef((function({icon:e,iconStart:t=e,iconEnd:n,title:i,disabled:a,active:s,selected:l,href:c,target:u,rel:d,onClick:f,style:p,className:h,theme:m,extraProps:g,children:b,qa:w},x){const{onKeyDown:_}=(0,o.N)(f),E=r.useCallback((e=>{v.o.publish({componentId:"MenuItem",eventId:"click",domEvent:e})}),[]),S={role:"menuitem",onKeyDown:f&&!a?_:void 0},k={title:i,onClick:a?void 0:f,onClickCapture:a?void 0:E,style:p,tabIndex:a?-1:0,className:y("item",{disabled:a,active:s,selected:l,theme:m,interactive:Boolean(f)||Boolean(c)},h),"data-qa":w},C=[t&&r.createElement("div",{key:"icon-start",className:y("item-icon")},t),r.createElement("div",{key:"content",className:y("item-content")},b),n&&r.createElement("div",{key:"icon-end",className:y("item-icon-end")},n)];let O;return O=c?r.createElement("a",Object.assign({},S,g,k,{href:c,target:u,rel:d}),C):r.createElement("div",Object.assign({},S,g,k),C),r.createElement("li",{ref:x,className:y("list-item")},O)})),w=(0,l.om)("menu"),x=r.forwardRef((function({size:e="m",children:t,style:n,className:i,qa:o},a){return r.createElement("ul",{ref:a,role:"menu",style:n,className:w({size:e},i),"data-qa":o},t)}));x.Item=b,x.Group=g;var _=n(54245);function E(e,t,n=1,r){const i=(e.length+t-n%e.length)%e.length;return r&&r(e[i])?E(e,i,1,r):i}function S(e,t,n=1,r){const i=(t+n)%e.length;return r&&r(e[i])?S(e,i,1,r):i}var k=n(39238);const C=[],O=r.createContext({activeMenuPath:C,setActiveMenuPath:()=>{},anchorRef:{current:null}}),N=({anchorRef:e,children:t,disabled:n})=>{const[i,o]=r.useState(C);r.useEffect((()=>{n&&o(C)}),[n]);const a=r.useMemo((()=>({activeMenuPath:i,setActiveMenuPath:o,anchorRef:e})),[i,e]);return r.createElement(O.Provider,{value:a},t)},T={text:"",action:()=>{},path:[]};function A(e){return e===T}function I(e){return e.disabled||A(e)}function D(e){var t;return null!==(t=null===e||void 0===e?void 0:e.join(" "))&&void 0!==t?t:""}const P=({items:e,open:t,anchorRef:n,onClose:i,size:o,menuProps:a,children:s,popupProps:l,path:d=[]})=>{const{toggle:f,data:p}=r.useContext(u),{activeMenuPath:h,setActiveMenuPath:m,anchorRef:g}=r.useContext(O),v=d.length>0,y=r.useCallback((()=>{m(d.slice(0,d.length-1))}),[m,d]),b=r.useCallback((e=>{var t;m(d),null===(t=null===l||void 0===l?void 0:l.onMouseEnter)||void 0===t||t.call(l,e)}),[d,l,m]),w=r.useCallback((e=>{var t;y(),null===(t=null===l||void 0===l?void 0:l.onMouseLeave)||void 0===t||t.call(l,e)}),[y,l]),_=r.useCallback(((e,t)=>{var n;e.items&&e.path?m(e.path):(null===(n=e.action)||void 0===n||n.call(e,t,p),f(!1))}),[p,m,f]),C=r.useCallback(((t,n)=>{switch(n.key){case"Escape":return v&&(n.stopPropagation(),null===y||void 0===y||y()),!1;case"Enter":case" ":{const r=e[t],i=null===r||void 0===r?void 0:r.items;return(v||i)&&(n.stopPropagation(),n.preventDefault()),r&&_(r,n),!1}}return!0}),[y,_,v,e]),N=t&&D(d)===D(h),{activeItemIndex:T,setActiveItemIndex:P,reset:R}=function({items:e,skip:t,pageSize:n,processHomeKey:i=!0,processEndKey:o=!0,anchorRef:a,disabled:s=!1,initialValue:l=-1,onAnchorKeyDown:c}){const[u,d]=r.useState(l),f=r.useCallback((()=>{d(l)}),[l]);return r.useEffect((()=>{e&&f()}),[e,f]),r.useLayoutEffect((()=>{if(s)return;if(!e.some((e=>!(null===t||void 0===t?void 0:t(e)))))return;const r=null===a||void 0===a?void 0:a.current;if(!r)return;const l=r=>{if(!1!==(null===c||void 0===c?void 0:c(u,r)))switch(r.key){case"ArrowDown":r.preventDefault(),d((n=>S(e,n,1,t)));break;case"ArrowUp":r.preventDefault(),d((n=>E(e,n,1,t)));break;case"PageDown":if(!n)return;r.preventDefault(),d((r=>S(e,r,n,t)));break;case"PageUp":if(!n)return;r.preventDefault(),d((r=>E(e,r,n,t)));break;case"Home":if(!i)return;r.preventDefault(),d((n=>E(e,n,n,t)));break;case"End":if(!o)return;r.preventDefault(),d((n=>E(e,n,n+1,t)))}};return r.addEventListener("keydown",l),()=>{r.removeEventListener("keydown",l)}}),[u,a,s,e,c,n,o,i,t]),{activeItemIndex:u,setActiveItemIndex:d,reset:f}}({items:e,skip:I,anchorRef:g,onAnchorKeyDown:C,disabled:!N,initialValue:v?0:-1});return r.useEffect((()=>{t||R()}),[t,R]),r.createElement(k.z,Object.assign({open:t,anchorRef:n,onClose:i},l,{onMouseEnter:b,onMouseLeave:w}),s||r.createElement(x,Object.assign({className:c("menu"),size:o},a),e.map(((e,n)=>{var o;const a=N&&T===n,s=t&&!a&&0!==h.length&&D(e.path)===D(h.slice(0,e.path.length)),u=Object.assign(Object.assign({},e.extraProps),{onMouseEnter:()=>P(n)});return r.createElement(M,Object.assign({key:n,className:c("menu-item",{separator:A(e),"active-parent":s,"with-submenu":Boolean(null===(o=e.items)||void 0===o?void 0:o.length)},e.className),selected:a,popupProps:l,closeMenu:i},e,{extraProps:u}))}))))};function R(e,t){var n;return null!==(n=null===e||void 0===e?void 0:e.every(((e,n)=>e===(null===t||void 0===t?void 0:t[n]))))&&void 0!==n&&n}function j({items:e,path:t}){const{activeMenuPath:n,setActiveMenuPath:i}=r.useContext(O),o=Boolean(t)&&Boolean(null===e||void 0===e?void 0:e.length),a=r.useCallback((()=>{t&&i(t.slice(0,t.length-1))}),[t,i]),s=r.useCallback((()=>{t&&i(t)}),[t,i]);return{hasSubmenu:o,isSubmenuOpen:R(t,n),openSubmenu:s,closeSubmenu:a}}const M=e=>{var{text:t,action:n,items:i,popupProps:o,closeMenu:a,children:l,path:h}=e,m=(0,d.Tt)(e,["text","action","items","popupProps","closeMenu","children","path"]);const{toggle:g,data:v}=r.useContext(u),y=r.useRef(null),b=(0,_.j)(),{hasSubmenu:w,isSubmenuOpen:E,closeSubmenu:S,openSubmenu:k}=j({items:i,path:h}),C=r.useCallback((()=>{const e=()=>{a?a():g(!1)};w?(S(),requestAnimationFrame(e)):e()}),[a,S,w,g]),O=r.useCallback((e=>{w||(null===n||void 0===n||n(e,v),C())}),[n,v,C,w]),N=r.useMemo((()=>Object.assign(Object.assign({},m.extraProps),{onMouseEnter:e=>{var t,n;null===(n=null===(t=m.extraProps)||void 0===t?void 0:t.onMouseEnter)||void 0===n||n.call(t,e),w&&k()},onMouseLeave:e=>{var t,n;null===(n=null===(t=m.extraProps)||void 0===t?void 0:t.onMouseLeave)||void 0===n||n.call(t,e),w&&S()}})),[m.extraProps,S,w,k]),T=r.useMemo((()=>"rtl"===b?["left-start","right-start"]:["right-start","left-start"]),[b]),A=r.useMemo((()=>w?r.createElement(s.I,{data:"rtl"===b?f.A:p.A,size:10,className:c("sub-menu-arrow")}):m.iconEnd),[w,b,m.iconEnd]);return r.createElement(r.Fragment,null,r.createElement(x.Item,Object.assign({ref:y},m,{extraProps:N,onClick:O,iconEnd:A}),t||l),w&&i&&r.createElement(P,{popupProps:Object.assign(Object.assign({},o),{className:c("sub-menu",null===o||void 0===o?void 0:o.className),placement:T}),items:i,path:h,open:E,anchorRef:y,onClose:C}))};function L(e,t,n,i=void 0!==e&&void 0!==t){const o=function(e,t){const[n,i]=r.useState(e);return[n,r.useCallback((e=>{"function"===typeof e?i((n=>{const r=e(n);return null===t||void 0===t||t(r),r})):(null===t||void 0===t||t(e),i(e))}),[t])]}(e||n,t);return i?[e,t]:o}function z(e,t,n=[],r=0){const i=[];let o=!1,a=r;for(const s of e)if(Array.isArray(s)){const e=z(s,t,n,a);0!==i.length&&i.push(t),i.push(...e),a+=e.length,o=!0}else{if(s.hidden)continue;o&&i.push(t);const e=Object.assign(Object.assign({},s),{path:[...n,a++]});s.items&&(e.items=z(s.items,t,e.path)),i.push(e),o=!1}return i}const F=Object.assign((({items:e=[],size:t="m",icon:n=r.createElement(s.I,{data:i.A}),open:l,onOpenToggle:d,hideOnScroll:f=!0,data:p,disabled:h,switcher:m,renderSwitcher:g,switcherWrapperClassName:v,defaultSwitcherProps:y,defaultSwitcherClassName:b,onSwitcherClick:w,menuProps:x,popupProps:_,children:E})=>{const S=r.useRef(null),{isPopupShown:k,togglePopup:C,closePopup:O}=function(e,t,n){const[i,o]=L(e,t,!1),a=r.useCallback((e=>{o((t=>"boolean"===typeof e?e:!t))}),[o]),s=r.useCallback((()=>{o(!1)}),[o]);return r.useEffect((()=>{n&&i&&s()}),[s,n,i]),{isPopupShown:i,togglePopup:a,closePopup:s}}(l,d,h);!function(e,t,n){r.useEffect((()=>{if(n)return;const r=n=>{n.target.contains(t.current)&&e(n)};return document.addEventListener("scroll",r,!0),()=>{document.removeEventListener("scroll",r,!0)}}),[t,e,n])}(O,S,!k||!f);const A=r.useMemo((()=>({toggle:C,data:p})),[p,C]),I=r.useMemo((()=>z(e,T)),[e]),D=r.useCallback((e=>{h||(null===w||void 0===w||w(e),C())}),[h,w,C]),{onKeyDown:R}=(0,o.N)(D),j=r.useMemo((()=>({onClick:D,onKeyDown:R})),[D,R]);return r.createElement(u.Provider,{value:A},r.createElement("div",Object.assign({ref:S,className:c("switcher-wrapper",v)},g?{}:j),(null===g||void 0===g?void 0:g(j))||m||r.createElement(a.$,Object.assign({view:"flat",size:t},y,{className:c("switcher-button",b),disabled:h}),n)),r.createElement(N,{anchorRef:S,disabled:!k},r.createElement(P,{items:I,open:k,size:t,menuProps:x,anchorRef:S,onClose:O,popupProps:_},E)))}),{Item:M})},99991:(e,t,n)=>{"use strict";n.d(t,{I:()=>c});var r=n(59284),i=n(69220);const o={"aria-hidden":!0};function a(e){return"object"===typeof e}function s(e){return"string"===typeof e}const l=(0,i.om)("icon"),c=r.forwardRef((({data:e,width:t,height:n,size:i,className:u,fill:d="currentColor",stroke:f="none",qa:p},h)=>{let m,g,v;if(i&&(m=i,g=i),t&&(m=t),n&&(g=n),a(e))({viewBox:v}=e);else if(s(e))v=function(e){const t=e.match(/viewBox=(["']?)([\d\s,-]+)\1/);return t?t[2]:void 0}(e);else if(function(e){return("object"===typeof e||"function"===typeof e)&&"defaultProps"in e}(e))({viewBox:v}=e.defaultProps);else if(function(e){return"function"===typeof e&&(!e.prototype||!e.prototype.render)}(e)){const t=e({});t&&({viewBox:v}=t.props)}if(v&&(!m||!g)){const e=v.split(/\s+|\s*,\s*/);m||(m=e[2]),g||(g=e[3])}const y=Object.assign({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:m,height:g,className:l(null,u),fill:d,stroke:f,"data-qa":p},o);if(s(e)){const t=function(e){return e.replace(/<svg[^>]*>/,(e=>e.replace(/(width|height)=(["']?)\d+\2/g,"").replace(/(\s){2,}\b/g,"$1").replace(/(\s)+>/g,">")))}(e);return r.createElement("svg",Object.assign({},y,{ref:h,dangerouslySetInnerHTML:{__html:t}}))}if(a(e)){const t=c.prefix+(e.url||`#${e.id}`);return r.createElement("svg",Object.assign({},y,{viewBox:v,ref:h}),r.createElement("use",{href:t,xlinkHref:t}))}const b=e;return b.defaultProps&&(b.defaultProps.width=b.defaultProps.height=void 0),r.createElement("svg",Object.assign({},y,{ref:h}),r.createElement(b,{width:void 0,height:void 0}))}));c.displayName="Icon",c.prefix=""},47665:(e,t,n)=>{"use strict";n.d(t,{J:()=>u});var r=n(59284),i=n(81240),o=n(48699),a=n(46700),s=n(99991);const l=(0,n(69220).om)("label"),c={xs:{copyIconSize:12,closeIconSize:12},s:{copyIconSize:14,closeIconSize:14},m:{copyIconSize:16,closeIconSize:16}},u=r.forwardRef((function(e,t){const{type:n="default",theme:u="normal",size:d="xs",title:f,icon:p,children:h,onCloseClick:m,className:g,disabled:v,copyText:y,closeButtonLabel:b,copyButtonLabel:w,interactive:x=!1,value:_,onCopy:E,onClick:S,qa:k}=e,C=Boolean(""!==h&&r.Children.count(h)>0),O="close"===n&&C,N="copy"===n&&C,T="function"===typeof S,A=Boolean(N&&y),I=(T||A||x)&&!v,{copyIconSize:D,closeIconSize:P}=c[d],R=p&&r.createElement("div",{className:l("addon",{side:C?"start":void 0,type:"icon"})},p),j=C&&r.createElement("div",{className:l("text")},r.createElement("div",{className:l("content")},h),Boolean(_)&&r.createElement("div",{className:l("value")},r.createElement("div",{className:l("separator")},":"),r.createElement("div",{className:l("key")},_))),M=e=>{let n;return N?n=r.createElement("button",{type:"button","aria-label":w||void 0,onClick:T?S:void 0,disabled:v,className:l("addon",{side:"end",type:"button"})},r.createElement(o.u,{status:e||"pending",size:D})):O&&(n=r.createElement("button",{type:"button",onClick:m,"aria-label":b||void 0,disabled:v,className:l("addon",{side:"end",type:"button"})},r.createElement(s.I,{size:P,data:i.A}))),r.createElement("div",{ref:t,className:l({theme:u,size:d,interactive:I,disabled:v},g),title:f,"data-qa":k},R,T?r.createElement("button",{disabled:v,type:"button",onClick:S,className:l("main-button")},j):j,n)};return A&&y&&!T?r.createElement(a.$,{text:y,onCopy:E,timeout:1e3},(e=>M(e))):M()}))},67884:(e,t,n)=>{"use strict";n.d(t,{N:()=>s});var r=n(59284),i=n(69220),o=n(11669);const a=(0,i.om)("link"),s=r.forwardRef((function({view:e="normal",visitable:t,underline:n,href:i,target:s,rel:l,title:c,children:u,extraProps:d,onClick:f,onFocus:p,onBlur:h,id:m,style:g,className:v,qa:y},b){const w={title:c,onClick:f,onClickCapture:r.useCallback((e=>{o.o.publish({componentId:"Link",eventId:"click",domEvent:e})}),[]),onFocus:p,onBlur:h,id:m,style:g,className:a({view:e,visitable:t,underline:n},v),"data-qa":y},x="_blank"!==s||l?l:"noopener noreferrer";return r.createElement("a",Object.assign({},d,w,{ref:b,href:i,target:s,rel:x}),u)}))},40091:(e,t,n)=>{"use strict";n.d(t,{B:()=>le});var r=n(59284),i=n(62060),o=n.n(i),a=n(38469),s=n.n(a),l=n(53202);let c;c="undefined"!==typeof window?window:"undefined"!==typeof self?self:n.g;let u=null,d=null;const f=c.clearTimeout,p=c.setTimeout,h=c.cancelAnimationFrame||c.mozCancelAnimationFrame||c.webkitCancelAnimationFrame,m=c.requestAnimationFrame||c.mozRequestAnimationFrame||c.webkitRequestAnimationFrame;function g(e){let t,n,r,i,o,a,s;const l="undefined"!==typeof document&&document.attachEvent;if(!l){a=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,i=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,i.style.width=n.offsetWidth+1+"px",i.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},o=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},s=function(e){if(e.target.className&&"function"===typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;a(this),this.__resizeRAF__&&u(this.__resizeRAF__),this.__resizeRAF__=d((function(){o(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))};let e=!1,l="";r="animationstart";const c="Webkit Moz O ms".split(" ");let f="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let n=0;n<c.length;n++)if(void 0!==t.style[c[n]+"AnimationName"]){p=c[n],l="-"+p.toLowerCase()+"-",r=f[n],e=!0;break}}n="resizeanim",t="@"+l+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",i=l+"animation: 1ms "+n+"; "}return{addResizeListener:function(o,u){if(l)o.attachEvent("onresize",u);else{if(!o.__resizeTriggers__){const l=o.ownerDocument,u=c.getComputedStyle(o);u&&"static"===u.position&&(o.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const r=(t||"")+".resize-triggers { "+(i||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',o=n.head||n.getElementsByTagName("head")[0],a=n.createElement("style");a.id="detectElementResize",a.type="text/css",null!=e&&a.setAttribute("nonce",e),a.styleSheet?a.styleSheet.cssText=r:a.appendChild(n.createTextNode(r)),o.appendChild(a)}}(l),o.__resizeLast__={},o.__resizeListeners__=[],(o.__resizeTriggers__=l.createElement("div")).className="resize-triggers";const d=l.createElement("div");d.className="expand-trigger",d.appendChild(l.createElement("div"));const f=l.createElement("div");f.className="contract-trigger",o.__resizeTriggers__.appendChild(d),o.__resizeTriggers__.appendChild(f),o.appendChild(o.__resizeTriggers__),a(o),o.addEventListener("scroll",s,!0),r&&(o.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&a(o)},o.__resizeTriggers__.addEventListener(r,o.__resizeTriggers__.__animationListener__))}o.__resizeListeners__.push(u)}},removeResizeListener:function(e,t){if(l)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",s,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(n){}}}}}null==h||null==m?(u=f,d=function(e){return p(e,20)}):(u=function([e,t]){h(e),f(t)},d=function(e){const t=m((function(){f(n),e()})),n=p((function(){h(t),e()}),20);return[t,n]});class v extends r.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){const r=window.getComputedStyle(this._parentNode)||{},i=parseFloat(r.paddingLeft||"0"),o=parseFloat(r.paddingRight||"0"),a=parseFloat(r.paddingTop||"0"),s=parseFloat(r.paddingBottom||"0"),l=this._parentNode.getBoundingClientRect(),c=l.height-a-s,u=l.width-i-o,d=this._parentNode.offsetHeight-a-s,f=this._parentNode.offsetWidth-i-o;(e||this.state.height===d&&this.state.scaledHeight===c)&&(t||this.state.width===f&&this.state.scaledWidth===u)||(this.setState({height:d,width:f,scaledHeight:c,scaledWidth:u}),"function"===typeof n&&n({height:d,scaledHeight:c,scaledWidth:u,width:f}))}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(null!=t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;const n=t.ownerDocument.defaultView.ResizeObserver;null!=n?(this._resizeObserver=new n((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(t)):(this._detectElementResize=g(e),this._detectElementResize.addResizeListener(t,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:i=!1,disableWidth:o=!1,doNotBailOutOnEmptyChildren:a=!1,nonce:s,onResize:l,style:c={},tagName:u="div",...d}=this.props,{height:f,scaledHeight:p,scaledWidth:h,width:m}=this.state,g={overflow:"visible"},v={};let y=!1;return i||(0===f&&(y=!0),g.height=0,v.height=f,v.scaledHeight=p),o||(0===m&&(y=!0),g.width=0,v.width=m,v.scaledWidth=h),a&&(y=!1),(0,r.createElement)(u,{ref:this._setRef,style:{...g,...c},...d},!y&&e(v))}}var y=n(58168),b=n(9417),w=n(25540),x=n(77995),_="object"===typeof performance&&"function"===typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function E(e){cancelAnimationFrame(e.id)}function S(e,t){var n=_();var r={id:requestAnimationFrame((function i(){_()-n>=t?e.call(null):r.id=requestAnimationFrame(i)}))};return r}var k=-1;function C(e){if(void 0===e&&(e=!1),-1===k||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),k=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return k}var O=null;function N(e){if(void 0===e&&(e=!1),null===O||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),i=r.style;return i.width="100px",i.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?O="positive-descending":(t.scrollLeft=1,O=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),O}return O}var T=function(e,t){return e};function A(e){var t,n=e.getItemOffset,i=e.getEstimatedTotalSize,o=e.getItemSize,a=e.getOffsetForIndexAndAlignment,s=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,c=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=c(r.props,(0,b.A)(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:(0,b.A)(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"===typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=(0,x.A)((function(e,t,n,i){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:i})})),r._callOnScroll=void 0,r._callOnScroll=(0,x.A)((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,s=i.itemSize,l=i.layout,c=r._getItemStyleCache(u&&s,u&&l,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=n(r.props,e,r._instanceProps),f=o(r.props,e,r._instanceProps),p="horizontal"===a||"horizontal"===l,h="rtl"===a,m=p?d:0;c[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:p?0:d,height:p?"100%":f,width:p?f:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=(0,x.A)((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,i=t.scrollLeft,o=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===i)return null;var t=r.props.direction,a=i;if("rtl"===t)switch(N()){case"negative":a=-i;break;case"positive-descending":a=o-n-i}return a=Math.max(0,Math.min(a,o-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,i=t.scrollHeight,o=t.scrollTop;r.setState((function(e){if(e.scrollOffset===o)return null;var t=Math.max(0,Math.min(o,i-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"===typeof t?t(e):null!=t&&"object"===typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&E(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=S(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}(0,w.A)(t,e),t.getDerivedStateFromProps=function(e,t){return I(e,t),d(e),null};var f=t.prototype;return f.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},f.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,i=n.layout,o=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===i?l.scrollWidth>l.clientWidth?C():0:l.scrollHeight>l.clientHeight?C():0}this.scrollTo(a(this.props,e,t,o,this._instanceProps,s))},f.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"===typeof n&&null!=this._outerRef){var i=this._outerRef;"horizontal"===t||"horizontal"===r?i.scrollLeft=n:i.scrollTop=n}this._callPropsCallbacks()},f.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,i=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(N()){case"negative":o.scrollLeft=-i;break;case"positive-ascending":o.scrollLeft=i;break;default:var a=o.clientWidth,s=o.scrollWidth;o.scrollLeft=s-a-i}else o.scrollLeft=i;else o.scrollTop=i}this._callPropsCallbacks()},f.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&E(this._resetIsScrollingTimeoutId)},f.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,a=e.height,s=e.innerRef,l=e.innerElementType,c=e.innerTagName,u=e.itemCount,d=e.itemData,f=e.itemKey,p=void 0===f?T:f,h=e.layout,m=e.outerElementType,g=e.outerTagName,v=e.style,b=e.useIsScrolling,w=e.width,x=this.state.isScrolling,_="horizontal"===o||"horizontal"===h,E=_?this._onScrollHorizontal:this._onScrollVertical,S=this._getRangeToRender(),k=S[0],C=S[1],O=[];if(u>0)for(var N=k;N<=C;N++)O.push((0,r.createElement)(t,{data:d,key:p(N,d),index:N,isScrolling:b?x:void 0,style:this._getItemStyle(N)}));var A=i(this.props,this._instanceProps);return(0,r.createElement)(m||g||"div",{className:n,onScroll:E,ref:this._outerRefSetter,style:(0,y.A)({position:"relative",height:a,width:w,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},(0,r.createElement)(l||c||"div",{children:O,ref:s,style:{height:_?"100%":A,pointerEvents:x?"none":void 0,width:_?A:"100%"}}))},f._callPropsCallbacks=function(){if("function"===typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],i=e[3];this._callOnItemsRendered(t,n,r,i)}if("function"===typeof this.props.onScroll){var o=this.state,a=o.scrollDirection,s=o.scrollOffset,l=o.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},f._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,i=r.isScrolling,o=r.scrollDirection,a=r.scrollOffset;if(0===t)return[0,0,0,0];var c=s(this.props,a,this._instanceProps),u=l(this.props,c,a,this._instanceProps),d=i&&"backward"!==o?1:Math.max(1,n),f=i&&"forward"!==o?1:Math.max(1,n);return[Math.max(0,c-d),Math.max(0,Math.min(t-1,u+f)),c,u]},t}(r.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var I=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},D=function(e,t,n){var r=e.itemSize,i=n.itemMetadataMap,o=n.lastMeasuredIndex;if(t>o){var a=0;if(o>=0){var s=i[o];a=s.offset+s.size}for(var l=o+1;l<=t;l++){var c=r(l);i[l]={offset:a,size:c},a+=c}n.lastMeasuredIndex=t}return i[t]},P=function(e,t,n,r,i){for(;r<=n;){var o=r+Math.floor((n-r)/2),a=D(e,o,t).offset;if(a===i)return o;a<i?r=o+1:a>i&&(n=o-1)}return r>0?r-1:0},R=function(e,t,n,r){for(var i=e.itemCount,o=1;n<i&&D(e,n,t).offset<r;)n+=o,o*=2;return P(e,t,Math.min(n,i-1),Math.floor(n/2),r)},j=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,i=t.estimatedItemSize,o=t.lastMeasuredIndex,a=0;if(o>=n&&(o=n-1),o>=0){var s=r[o];a=s.offset+s.size}return a+(n-o-1)*i},M=A({getItemOffset:function(e,t,n){return D(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:j,getOffsetForIndexAndAlignment:function(e,t,n,r,i,o){var a=e.direction,s=e.height,l=e.layout,c=e.width,u="horizontal"===a||"horizontal"===l?c:s,d=D(e,t,i),f=j(e,i),p=Math.max(0,Math.min(f-u,d.offset)),h=Math.max(0,d.offset-u+d.size+o);switch("smart"===n&&(n=r>=h-u&&r<=p+u?"auto":"center"),n){case"start":return p;case"end":return h;case"center":return Math.round(h+(p-h)/2);default:return r>=h&&r<=p?r:r<h?h:p}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,i=t.lastMeasuredIndex;return(i>0?r[i].offset:0)>=n?P(e,t,i,0,n):R(e,t,Math.max(0,i),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var i=e.direction,o=e.height,a=e.itemCount,s=e.layout,l=e.width,c="horizontal"===i||"horizontal"===s?l:o,u=D(e,t,r),d=n+c,f=u.offset+u.size,p=t;p<a-1&&f<d;)p++,f+=D(e,p,r).size;return p},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});var L=n(28664),z=n(11507),F=n(54245),B=n(69220),U=n(10176),$=n(29322),q=n(74417);const H=(0,B.om)("list"),V=e=>{const t=r.useRef(null);return(0,$.v)({element:t.current,onIntersect:null===e||void 0===e?void 0:e.onIntersect}),r.createElement("div",{ref:t,className:H("loading-indicator")},r.createElement(q.a,{qa:"list-loader"}))};var W=n(66821),K=n(99991),G=n(11669),Y=n(359);const Q="list-active-item",Z=[Y.D.TAB],J=(0,B.om)("list"),X=e=>String(e);function ee(e,t){return t?Object.assign(Object.assign({},null===e||void 0===e?void 0:e.draggableProps.style),t):null===e||void 0===e?void 0:e.draggableProps.style}class te extends r.Component{constructor(){super(...arguments),this.node=null,this.getNode=()=>this.node,this.setRef=e=>{var t;this.node=e,null===(t=this.props.provided)||void 0===t||t.innerRef(e)},this.onClick=e=>{this.props.onClick&&this.props.onClick(this.props.item,this.props.itemIndex,!1,e)},this.onClickCapture=e=>{te.publishEvent({domEvent:e,eventId:"click"})},this.onMouseEnter=()=>!this.props.item.disabled&&this.props.onActivate(this.props.itemIndex)}render(){var e,t;const{item:n,height:i,style:o,sortable:a,sortHandleAlign:s,itemClassName:l,selected:c,active:u,role:d="listitem",isDragging:f=!1}=this.props,p=Object.assign(Object.assign({height:i},o),{right:void 0});return r.createElement("div",Object.assign({role:d,"aria-selected":c,"aria-disabled":n.disabled,"data-qa":u?Q:void 0,className:J("item",{sortable:a,active:u,selected:c,inactive:n.disabled,"sort-handle-align":s,dragging:f},l)},null===(e=this.props.provided)||void 0===e?void 0:e.draggableProps,null===(t=this.props.provided)||void 0===t?void 0:t.dragHandleProps,{style:ee(this.props.provided,p),onClick:n.disabled?void 0:this.onClick,onClickCapture:n.disabled?void 0:this.onClickCapture,onMouseEnter:this.onMouseEnter,ref:this.setRef,id:`${this.props.listId}-item-${this.props.itemIndex}`}),this.renderSortIcon(),this.renderContent())}renderSortIcon(){const{sortable:e}=this.props;return e?r.createElement("div",{className:J("item-sort-icon")},r.createElement(K.I,{data:W.A,size:12})):null}renderContent(){const{renderItem:e=X,item:t,active:n,itemIndex:i}=this.props;return r.createElement("div",{className:J("item-content")},e(t,n,i))}}te.publishEvent=G.o.withEventPublisher("List");var ne=n(36613),re=n.n(ne);function ie(e){return re()(e).reduce(((e,t)=>(e[t]=r.createRef(),e)),{})}class oe extends r.Component{static getDerivedStateFromProps({itemCount:e},t){return e===Object.keys(t.refsList).length?t:{refsList:ie(e)}}constructor(e){super(e),this.node=null,this.setRef=e=>{var t;this.node=e,null===(t=this.props.provided)||void 0===t||t.innerRef(e)},this.state={refsList:ie(e.itemCount)}}render(){const e=r.Children.map(this.props.children,((e,t)=>r.cloneElement(e,{ref:this.state.refsList[t]})));return r.createElement("div",{ref:this.setRef},e)}scrollToItem(e){var t,n,r,i;const o=null===(t=this.state.refsList[e])||void 0===t?void 0:t.current;if(o&&"function"===typeof o.getNode){const e=o.getNode();e&&((null===(r=(n=this.props).onScrollToItem)||void 0===r?void 0:r.call(n,e))||null===(i=e.scrollIntoView)||void 0===i||i.call(e,{block:"nearest"}))}}}const ae=(0,B.om)("list"),se=r.forwardRef(((e,t)=>r.createElement(M,Object.assign({ref:t},e,{direction:(0,F.j)()}))));se.displayName="ListContainer";class le extends r.Component{constructor(){super(...arguments),this.state={items:this.props.items,activeItem:this.props.activeItemIndex,filter:""},this.refFilter=r.createRef(),this.refContainer=r.createRef(),this.blurTimer=null,this.loadingItem={value:"__LIST_ITEM_LOADING__",disabled:!1},this.uniqId=(0,U.zm)(),this.onKeyDown=e=>{const{activeItem:t,pageSize:n}=this.state;if(Z.includes(e.key))return;const r=e.target instanceof HTMLInputElement;switch(e.key){case"ArrowDown":this.handleKeyMove(e,1,-1);break;case"ArrowUp":this.handleKeyMove(e,-1);break;case"PageDown":this.handleKeyMove(e,null!==n&&void 0!==n?n:10);break;case"PageUp":this.handleKeyMove(e,-(null!==n&&void 0!==n?n:10));break;case"Home":if(r)return;this.handleKeyMove(e,this.state.items.length-(t||0));break;case"End":if(r)return;this.handleKeyMove(e,-(t||0)-1);break;case"Enter":"number"===typeof t&&this.props.onItemClick&&this.props.onItemClick(this.state.items[t],t,!0,e);break;default:this.refFilter.current&&this.refFilter.current.focus()}},this.renderItemContent=(e,t,n)=>{const{onLoadMore:i}=this.props;return s()(e)&&"value"in e&&e.value===this.loadingItem.value?r.createElement(V,{onIntersect:0===n?void 0:i}):this.props.renderItem?this.props.renderItem(e,t,n):X(e)},this.renderItem=({index:e,style:t,height:n,provided:i,isDragging:o})=>{var a;const{sortHandleAlign:s,role:l}=this.props,{items:c,activeItem:u}=this.state,d=this.getItemsWithLoading()[e],f=this.props.sortable&&c.length>1&&!this.getFilter(),p=e===u||e===this.props.activeItemIndex,h=Array.isArray(this.props.selectedItemIndex)?this.props.selectedItemIndex.includes(e):e===this.props.selectedItemIndex;return r.createElement(te,{key:e,style:t,height:n,itemIndex:e,item:d,sortable:f,sortHandleAlign:s,renderItem:this.renderItemContent,itemClassName:this.props.itemClassName,active:p,selected:h,onActivate:this.onItemActivate,onClick:this.props.onItemClick,role:"listbox"===l?"option":"listitem",listId:null!==(a=this.props.id)&&void 0!==a?a:this.uniqId,provided:i,isDragging:o})},this.renderVirtualizedItem=({index:e,style:t})=>r.createElement(l.sx,{draggableId:String(e),index:e,key:`item-key-${e}`},(n=>this.renderItem({index:e,style:t,provided:n}))),this.filterItem=e=>t=>String(t).includes(e),this.scrollToIndex=e=>{const t=this.refContainer.current;t&&t.scrollToItem(e)},this.deactivate=()=>{this.blurTimer&&(this.blurTimer=null,this.props.deactivateOnLeave&&this.setState({activeItem:void 0}))},this.handleFocus=()=>{this.blurTimer&&(clearTimeout(this.blurTimer),this.blurTimer=null)},this.handleBlur=()=>{this.blurTimer||(this.blurTimer=setTimeout(this.deactivate,50))},this.onUpdateFilterInternal=e=>{const{items:t,filterItem:n=this.filterItem,onFilterEnd:r}=this.props;this.setState({filter:e,items:e?t.filter(n(e)):t},(()=>{r&&r({items:this.state.items})}))},this.onFilterUpdate=e=>{this.props.onFilterUpdate?this.props.onFilterUpdate(e):this.onUpdateFilterInternal(e)},this.onItemsRendered=({visibleStartIndex:e,visibleStopIndex:t})=>{this.setState({pageSize:t-e})},this.onItemActivate=e=>{this.state.sorting||this.activateItem(e,!1)},this.onMouseLeave=()=>{this.handleBlur()},this.onSortStart=()=>{this.setState({sorting:!0})},this.onSortEnd=e=>{if(!e.destination)return void this.setState({sorting:!1});if(e.source.index===e.destination.index)return void this.setState({sorting:!1});const t=e.source.index,n=e.destination.index;this.props.onSortEnd&&this.props.onSortEnd({oldIndex:t,newIndex:n});const r=((e,t,n)=>{const r=Array.from(e),[i]=r.splice(t,1);return r.splice(n,0,i),r})(this.getItems(),t,n);this.setState({activeItem:n,items:r,sorting:!1})},this.getItemHeight=e=>{const{itemHeight:t}=this.props;if("function"===typeof t){const{items:n}=this.state;return t(n[e],e)}return t},this.getVirtualizedItemHeight=e=>this.getItemHeight(e)||28}static moveListElement(e,t,n){if(t!==n){const[r]=e.splice(t,1);e.splice(n,0,r)}return e}static findNextIndex(e,t,n){const r=e.length;let i=(t+r)%r;for(let o=0;o<r;o+=1){if(e[i]&&!e[i].disabled)return i;i=(i+r+n)%r}}componentDidMount(){this.activateItem(this.props.activeItemIndex,!0)}componentDidUpdate(e,t){if(!o()(this.props.items,e.items)){const e=this.getFilter();e&&!this.props.onFilterUpdate?this.onUpdateFilterInternal(e):this.setState({items:this.props.items})}this.props.activeItemIndex!==e.activeItemIndex&&this.activateItem(this.props.activeItemIndex),this.props.onChangeActive&&this.state.activeItem!==t.activeItem&&this.props.onChangeActive(this.state.activeItem)}componentWillUnmount(){this.blurTimer=null}render(){const{id:e,emptyPlaceholder:t,virtualized:n,className:i,itemsClassName:o,qa:a,role:s="list"}=this.props,{items:l}=this.state;return r.createElement(z.G.Consumer,null,(({mobile:c})=>r.createElement("div",{className:ae({mobile:c},i),"data-qa":a,tabIndex:-1,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.onKeyDown},this.renderFilter(),r.createElement("div",{id:e,className:ae("items",{virtualized:n},o),style:this.getItemsStyle(),onMouseLeave:this.onMouseLeave,role:s},this.renderItems(),0===l.length&&Boolean(t)&&r.createElement("div",{className:ae("empty-placeholder")},t)))))}getItems(){return this.state.items}getItemsWithLoading(){return this.props.sortable?this.getItems():this.props.loading?[...this.state.items,this.loadingItem]:this.getItems()}getActiveItem(){return"number"===typeof this.state.activeItem?this.state.activeItem:null}activateItem(e,t=!0){this.setState({activeItem:e},(()=>{"number"===typeof e&&t&&this.scrollToIndex(e)}))}renderFilter(){const{size:e,filterable:t,filter:n=this.state.filter,filterPlaceholder:i,filterClassName:o="",autoFocus:a}=this.props;return t?r.createElement("div",{className:ae("filter",o)},r.createElement(L.k,{controlRef:this.refFilter,size:e,placeholder:i,value:n,hasClear:!0,onUpdate:this.onFilterUpdate,autoFocus:a})):null}renderSimpleContainer(){const{sortable:e}=this.props,t=this.getItemsWithLoading();return e?r.createElement(l.JY,{onDragStart:this.onSortStart,onDragEnd:this.onSortEnd},r.createElement(l.gL,{droppableId:"droppable",renderClone:(e,t,n)=>this.renderItem({index:n.source.index,provided:e,isDragging:t.isDragging})},(e=>r.createElement(oe,{ref:this.refContainer,itemCount:t.length,provided:e,onScrollToItem:this.props.onScrollToItem},t.map(((e,t)=>r.createElement(l.sx,{draggableId:String(t),index:t,key:`item-key-${t}`},((e,n)=>this.renderItem({index:t,isDragging:n.isDragging,provided:e,height:this.getItemHeight(t)}))))))))):r.createElement(oe,{itemCount:t.length,ref:this.refContainer,onScrollToItem:this.props.onScrollToItem},t.map(((e,t)=>this.renderItem({index:t,height:this.getItemHeight(t)}))))}renderVirtualizedContainer(){const e=[...this.getItemsWithLoading()];return this.props.sortable?r.createElement(l.JY,{onDragStart:this.onSortStart,onDragEnd:this.onSortEnd},r.createElement(l.gL,{droppableId:"droppable",mode:"virtual",renderClone:(e,t,n)=>this.renderItem({index:n.source.index,provided:e,isDragging:t.isDragging})},(t=>r.createElement(v,null,(({width:n,height:i})=>r.createElement(se,{ref:this.refContainer,outerRef:t.innerRef,width:n,height:i,itemSize:this.getVirtualizedItemHeight,itemData:e,itemCount:e.length,overscanCount:10,onItemsRendered:this.onItemsRendered,activeItem:this.state.activeItem},this.renderVirtualizedItem)))))):r.createElement(v,null,(({width:t,height:n})=>r.createElement(se,{ref:this.refContainer,width:t,height:n,itemSize:this.getVirtualizedItemHeight,itemData:e,itemCount:e.length,overscanCount:10,onItemsRendered:this.onItemsRendered,activeItem:this.state.activeItem},this.renderItem)))}renderItems(){return this.props.virtualized?this.renderVirtualizedContainer():this.renderSimpleContainer()}getFilter(){const{filter:e=this.state.filter}=this.props;return e}getItemsStyle(){let{itemsHeight:e}=this.props;return"function"===typeof e&&(e=e(this.state.items)),e?{height:e}:void 0}handleKeyMove(e,t,n=0){const{activeItem:r=n}=this.state;e.preventDefault();const i=this.getItemsWithLoading();this.activateItem(le.findNextIndex(i,r+t,Math.sign(t)))}}le.defaultProps={items:[],itemClassName:"",filterable:!0,sortable:!1,virtualized:!0,deactivateOnLeave:!0}},74417:(e,t,n)=>{"use strict";n.d(t,{a:()=>o});var r=n(59284);const i=(0,n(69220).om)("loader");function o({size:e="s",className:t,qa:n}){return r.createElement("div",{className:i({size:e},t),"data-qa":n},r.createElement("div",{className:i("left")}),r.createElement("div",{className:i("center")}),r.createElement("div",{className:i("right")}))}},84375:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var r=n(59284),i=n(81240),o=n(90826),a=n(84476),s=n(99991),l=n(39238),c=n(54245),u=n(27629);const d=(0,n(69220).om)("popover"),f=(e,t=!1)=>{switch(e){case"special":return t?"normal-contrast":"flat-contrast";case"announcement":return t?"normal-contrast":"outlined";default:return t?"normal":"flat"}},p=({theme:e,tooltipActionButton:t,tooltipCancelButton:n})=>t||n?r.createElement("div",{className:d("tooltip-buttons")},t&&r.createElement(a.$,{view:f(e,!0),width:"max",onClick:t.onClick,className:d("tooltip-button")},t.text),n&&r.createElement(a.$,{view:f(e,!1),width:"max",onClick:n.onClick,className:d("tooltip-button")},n.text)):null,h=({secondary:e,htmlContent:t,content:n,className:i})=>t||n?t?r.createElement("div",{className:d("tooltip-content",{secondary:e},i),dangerouslySetInnerHTML:{__html:t}}):n?r.createElement("div",{className:d("tooltip-content",{secondary:e},i)},n):null:null;var m=n(67884);const g=({links:e})=>0===e.length?null:r.createElement("div",{className:d("tooltip-links")},e.map(((e,t)=>{const{text:n,href:i,target:o="_blank",onClick:a}=e;return r.createElement(r.Fragment,{key:`link-${t}`},r.createElement(m.N,{href:i,target:o,onClick:a,className:d("tooltip-link")},n),r.createElement("br",null))})));var v=n(46734);const y=({open:e,openOnHover:t,disabled:n,className:i,openTooltip:o,closeTooltip:a,closedManually:s,onClick:l,children:c})=>{const u=async r=>{if(n||e&&t)return;if(!(!l||await l(r)))return;e?(a(),s.current=!0):(o(),s.current=!1)},{onKeyDown:d}=(0,v.N)(u);return"function"===typeof c?r.createElement(r.Fragment,null,c({onClick:u,onKeyDown:d,open:e})):r.createElement("div",{className:i,onClick:u,onKeyDown:l?d:void 0},c)};var b=n(63291);const w=({initialOpen:e,disabled:t,autoclosable:n,onOpenChange:i,delayOpening:o,delayClosing:a,behavior:s,shouldBeOpen:l})=>{const c=r.useRef(null),u=r.useRef(null),[d,f]=r.useState(e),p=r.useCallback((()=>{c.current&&(clearTimeout(c.current),c.current=null)}),[]),h=r.useCallback((()=>{u.current&&(clearTimeout(u.current),u.current=null)}),[]);r.useEffect((()=>()=>{p(),h()}),[h,p]);const m=r.useCallback((e=>{f(e),l.current=e,null===i||void 0===i||i(e)}),[i,l]),g=r.useCallback((()=>{p(),m(!0)}),[m,p]),v=r.useCallback((()=>{h(),m(!1)}),[m,h]);r.useEffect((()=>{t&&v()}),[t,v]),((e,t)=>{const n=r.useRef(!0);r.useEffect((()=>{n.current?n.current=!1:e()}),t)})((()=>{n&&!l.current&&v()}),[n,v,l]);const[y,w]=b.J[s],x=r.useCallback((()=>{c.current=setTimeout((()=>{c.current=null,g()}),null!==o&&void 0!==o?o:y)}),[y,o,g]),_=r.useCallback((()=>{u.current=setTimeout((()=>{u.current=null,v()}),null!==a&&void 0!==a?a:w)}),[v,w,a]);return{isOpen:d,closingTimeout:u,openTooltip:g,openTooltipDelayed:x,unsetOpeningTimeout:p,closeTooltip:v,closeTooltipDelayed:_,unsetClosingTimeout:h}},x=r.forwardRef((function({initialOpen:e=!1,disabled:t=!1,autoclosable:n=!0,openOnHover:f=!0,delayOpening:m,delayClosing:v,behavior:x=b.m.Delayed,placement:_,offset:E={},tooltipOffset:S,tooltipClassName:k,tooltipContentClassName:C,theme:O="info",size:N="s",hasArrow:T=!0,hasClose:A=!1,className:I,children:D,title:P,content:R,htmlContent:j,contentClassName:M,links:L,forceLinksAppearance:z=!1,tooltipActionButton:F,tooltipCancelButton:B,onOpenChange:U,onCloseClick:$,onClick:q,anchorRef:H,strategy:V,qa:W,disablePortal:K=!1,tooltipId:G,focusTrap:Y,autoFocus:Q,restoreFocusRef:Z,modifiers:J},X){const ee=(0,c.j)(),te=r.useRef(null),ne=r.useRef(!1),re=r.useRef(e),{isOpen:ie,closingTimeout:oe,openTooltip:ae,openTooltipDelayed:se,unsetOpeningTimeout:le,closeTooltip:ce,closeTooltipDelayed:ue,unsetClosingTimeout:de}=w({initialOpen:e,disabled:t,autoclosable:n,onOpenChange:U,delayOpening:m,delayClosing:v,behavior:x,shouldBeOpen:re}),fe=r.useMemo((()=>_||("rtl"===ee?["left","bottom"]:["right","bottom"])),[ee,_]);r.useImperativeHandle(X,(()=>({openTooltip:ae,closeTooltip:ce})),[ae,ce]);const pe=Boolean(P),he=`popover-${null!==G&&void 0!==G?G:""}-title-${(0,o.u)()}`,me=r.createElement(l.z,{id:G,role:f?"tooltip":"dialog",strategy:V,anchorRef:H||te,className:d("tooltip",{theme:O,size:N,"with-close":A,"force-links-appearance":z},k),contentClassName:d("tooltip-popup-content",C),open:ie,placement:fe,hasArrow:T,offset:S,onClose:H?void 0:ce,qa:W?`${W}-tooltip`:"",disablePortal:K,focusTrap:Y,autoFocus:Q,restoreFocus:!0,restoreFocusRef:Z||te,modifiers:J,"aria-labelledby":P?he:void 0},r.createElement(r.Fragment,null,P&&r.createElement("h3",{id:he,className:d("tooltip-title")},P),r.createElement(h,{secondary:!!pe&&"announcement"!==O,content:R,htmlContent:j,className:M}),L&&r.createElement(g,{links:L}),r.createElement(p,{theme:O,tooltipActionButton:F,tooltipCancelButton:B}),A&&r.createElement("div",{className:d("tooltip-close")},r.createElement(a.$,{size:"s",view:"flat-secondary",onClick:async e=>{ce(),null===$||void 0===$||$(e)},extraProps:{"aria-label":"Close"}},r.createElement(s.I,{data:i.A,size:16})))));if(H)return me;const ge=()=>{de(),ie||t||ne.current?re.current=!0:se()},ve=()=>{!n||ne.current||oe.current?re.current=!1:(le(),ue()),ne.current=!1};return!E||"number"!==typeof E.top&&"number"!==typeof E.left||(0,u.m)('[Popover] Physical names (top, left) of "offset" property are deprecated. Use logical names (block, inline) instead.'),r.createElement("div",{ref:te,className:d({disabled:t},I),onMouseEnter:f?ge:void 0,onMouseLeave:f?ve:void 0,onFocus:f?ge:void 0,onBlur:f?ve:void 0,style:{top:E.top,left:E.left,insetBlockStart:E.block,insetInlineStart:E.inline},"data-qa":W},r.createElement(y,{closeTooltip:ce,openTooltip:ae,open:ie,openOnHover:f,className:d("handler"),disabled:t,onClick:q,closedManually:ne},D),me)}));x.displayName="Popover"},63291:(e,t,n)=>{"use strict";var r;n.d(t,{J:()=>i,m:()=>r}),function(e){e.Immediate="immediate",e.Delayed="delayed",e.DelayedClosing="delayedClosing"}(r||(r={}));const i={[r.Immediate]:[0,0],[r.Delayed]:[300,300],[r.DelayedClosing]:[0,300]}},39238:(e,t,n)=>{"use strict";n.d(t,{z:()=>Be});var r=n(59284),i=n(72630),o=n(32084),a=n(48681);function s(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function l(e){return e instanceof s(e).Element||e instanceof Element}function c(e){return e instanceof s(e).HTMLElement||e instanceof HTMLElement}function u(e){return"undefined"!==typeof ShadowRoot&&(e instanceof s(e).ShadowRoot||e instanceof ShadowRoot)}var d=Math.max,f=Math.min,p=Math.round;function h(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function m(){return!/^((?!chrome|android).)*safari/i.test(h())}function g(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&c(e)&&(i=e.offsetWidth>0&&p(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&p(r.height)/e.offsetHeight||1);var a=(l(e)?s(e):window).visualViewport,u=!m()&&n,d=(r.left+(u&&a?a.offsetLeft:0))/i,f=(r.top+(u&&a?a.offsetTop:0))/o,h=r.width/i,g=r.height/o;return{width:h,height:g,top:f,right:d+h,bottom:f+g,left:d,x:d,y:f}}function v(e){var t=s(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function y(e){return e?(e.nodeName||"").toLowerCase():null}function b(e){return((l(e)?e.ownerDocument:e.document)||window.document).documentElement}function w(e){return g(b(e)).left+v(e).scrollLeft}function x(e){return s(e).getComputedStyle(e)}function _(e){var t=x(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function E(e,t,n){void 0===n&&(n=!1);var r=c(t),i=c(t)&&function(e){var t=e.getBoundingClientRect(),n=p(t.width)/e.offsetWidth||1,r=p(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),o=b(t),a=g(e,i,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&(("body"!==y(t)||_(o))&&(l=function(e){return e!==s(e)&&c(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:v(e);var t}(t)),c(t)?((u=g(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):o&&(u.x=w(o))),{x:a.left+l.scrollLeft-u.x,y:a.top+l.scrollTop-u.y,width:a.width,height:a.height}}function S(e){var t=g(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function k(e){return"html"===y(e)?e:e.assignedSlot||e.parentNode||(u(e)?e.host:null)||b(e)}function C(e){return["html","body","#document"].indexOf(y(e))>=0?e.ownerDocument.body:c(e)&&_(e)?e:C(k(e))}function O(e,t){var n;void 0===t&&(t=[]);var r=C(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=s(r),a=i?[o].concat(o.visualViewport||[],_(r)?r:[]):r,l=t.concat(a);return i?l:l.concat(O(k(a)))}function N(e){return["table","td","th"].indexOf(y(e))>=0}function T(e){return c(e)&&"fixed"!==x(e).position?e.offsetParent:null}function A(e){for(var t=s(e),n=T(e);n&&N(n)&&"static"===x(n).position;)n=T(n);return n&&("html"===y(n)||"body"===y(n)&&"static"===x(n).position)?t:n||function(e){var t=/firefox/i.test(h());if(/Trident/i.test(h())&&c(e)&&"fixed"===x(e).position)return null;var n=k(e);for(u(n)&&(n=n.host);c(n)&&["html","body"].indexOf(y(n))<0;){var r=x(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var I="top",D="bottom",P="right",R="left",j="auto",M=[I,D,P,R],L="start",z="end",F="viewport",B="popper",U=M.reduce((function(e,t){return e.concat([t+"-"+L,t+"-"+z])}),[]),$=[].concat(M,[j]).reduce((function(e,t){return e.concat([t,t+"-"+L,t+"-"+z])}),[]),q=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function H(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}function V(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var W={placement:"bottom",modifiers:[],strategy:"absolute"};function K(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"===typeof e.getBoundingClientRect)}))}function G(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,i=t.defaultOptions,o=void 0===i?W:i;return function(e,t,n){void 0===n&&(n=o);var i={placement:"bottom",orderedModifiers:[],options:Object.assign({},W,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],s=!1,c={state:i,setOptions:function(n){var s="function"===typeof n?n(i.options):n;u(),i.options=Object.assign({},o,i.options,s),i.scrollParents={reference:l(e)?O(e):e.contextElement?O(e.contextElement):[],popper:O(t)};var d=function(e){var t=H(e);return q.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,i.options.modifiers)));return i.orderedModifiers=d.filter((function(e){return e.enabled})),i.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"===typeof o){var s=o({state:i,name:t,instance:c,options:r}),l=function(){};a.push(s||l)}})),c.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(K(t,n)){i.rects={reference:E(t,A(n),"fixed"===i.options.strategy),popper:S(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach((function(e){return i.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<i.orderedModifiers.length;r++)if(!0!==i.reset){var o=i.orderedModifiers[r],a=o.fn,l=o.options,u=void 0===l?{}:l,d=o.name;"function"===typeof a&&(i=a({state:i,options:u,name:d,instance:c})||i)}else i.reset=!1,r=-1}}},update:V((function(){return new Promise((function(e){c.forceUpdate(),e(i)}))})),destroy:function(){u(),s=!0}};if(!K(e,t))return c;function u(){a.forEach((function(e){return e()})),a=[]}return c.setOptions(n).then((function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)})),c}}var Y={passive:!0};function Q(e){return e.split("-")[0]}function Z(e){return e.split("-")[1]}function J(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function X(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?Q(i):null,a=i?Z(i):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case I:t={x:s,y:n.y-r.height};break;case D:t={x:s,y:n.y+n.height};break;case P:t={x:n.x+n.width,y:l};break;case R:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=o?J(o):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case L:t[c]=t[c]-(n[u]/2-r[u]/2);break;case z:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}var ee={top:"auto",right:"auto",bottom:"auto",left:"auto"};function te(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,f=e.isFixed,h=a.x,m=void 0===h?0:h,g=a.y,v=void 0===g?0:g,y="function"===typeof d?d({x:m,y:v}):{x:m,y:v};m=y.x,v=y.y;var w=a.hasOwnProperty("x"),_=a.hasOwnProperty("y"),E=R,S=I,k=window;if(u){var C=A(n),O="clientHeight",N="clientWidth";if(C===s(n)&&"static"!==x(C=b(n)).position&&"absolute"===l&&(O="scrollHeight",N="scrollWidth"),i===I||(i===R||i===P)&&o===z)S=D,v-=(f&&C===k&&k.visualViewport?k.visualViewport.height:C[O])-r.height,v*=c?1:-1;if(i===R||(i===I||i===D)&&o===z)E=P,m-=(f&&C===k&&k.visualViewport?k.visualViewport.width:C[N])-r.width,m*=c?1:-1}var T,j=Object.assign({position:l},u&&ee),M=!0===d?function(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:p(n*i)/i||0,y:p(r*i)/i||0}}({x:m,y:v},s(n)):{x:m,y:v};return m=M.x,v=M.y,c?Object.assign({},j,((T={})[S]=_?"0":"",T[E]=w?"0":"",T.transform=(k.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",T)):Object.assign({},j,((t={})[S]=_?v+"px":"",t[E]=w?m+"px":"",t.transform="",t))}const ne={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,a=$.reduce((function(e,n){return e[n]=function(e,t,n){var r=Q(e),i=[R,I].indexOf(r)>=0?-1:1,o="function"===typeof n?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[R,P].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,o),e}),{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}};var re={left:"right",right:"left",bottom:"top",top:"bottom"};function ie(e){return e.replace(/left|right|bottom|top/g,(function(e){return re[e]}))}var oe={start:"end",end:"start"};function ae(e){return e.replace(/start|end/g,(function(e){return oe[e]}))}function se(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&u(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function le(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ce(e,t,n){return t===F?le(function(e,t){var n=s(e),r=b(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,l=0,c=0;if(i){o=i.width,a=i.height;var u=m();(u||!u&&"fixed"===t)&&(l=i.offsetLeft,c=i.offsetTop)}return{width:o,height:a,x:l+w(e),y:c}}(e,n)):l(t)?function(e,t){var n=g(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):le(function(e){var t,n=b(e),r=v(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=d(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=d(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+w(e),l=-r.scrollTop;return"rtl"===x(i||n).direction&&(s+=d(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}(b(e)))}function ue(e,t,n,r){var i="clippingParents"===t?function(e){var t=O(k(e)),n=["absolute","fixed"].indexOf(x(e).position)>=0&&c(e)?A(e):e;return l(n)?t.filter((function(e){return l(e)&&se(e,n)&&"body"!==y(e)})):[]}(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce((function(t,n){var i=ce(e,n,r);return t.top=d(i.top,t.top),t.right=f(i.right,t.right),t.bottom=f(i.bottom,t.bottom),t.left=d(i.left,t.left),t}),ce(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function de(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function fe(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function pe(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,o=n.strategy,a=void 0===o?e.strategy:o,s=n.boundary,c=void 0===s?"clippingParents":s,u=n.rootBoundary,d=void 0===u?F:u,f=n.elementContext,p=void 0===f?B:f,h=n.altBoundary,m=void 0!==h&&h,v=n.padding,y=void 0===v?0:v,w=de("number"!==typeof y?y:fe(y,M)),x=p===B?"reference":B,_=e.rects.popper,E=e.elements[m?x:p],S=ue(l(E)?E:E.contextElement||b(e.elements.popper),c,d,a),k=g(e.elements.reference),C=X({reference:k,element:_,strategy:"absolute",placement:i}),O=le(Object.assign({},_,C)),N=p===B?O:k,T={top:S.top-N.top+w.top,bottom:N.bottom-S.bottom+w.bottom,left:S.left-N.left+w.left,right:N.right-S.right+w.right},A=e.modifiersData.offset;if(p===B&&A){var R=A[i];Object.keys(T).forEach((function(e){var t=[P,D].indexOf(e)>=0?1:-1,n=[I,D].indexOf(e)>=0?"y":"x";T[e]+=R[n]*t}))}return T}const he={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,g=t.options.placement,v=Q(g),y=l||(v===g||!h?[ie(g)]:function(e){if(Q(e)===j)return[];var t=ie(e);return[ae(e),t,ae(t)]}(g)),b=[g].concat(y).reduce((function(e,n){return e.concat(Q(n)===j?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?$:l,u=Z(r),d=u?s?U:U.filter((function(e){return Z(e)===u})):M,f=d.filter((function(e){return c.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=pe(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[Q(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),w=t.rects.reference,x=t.rects.popper,_=new Map,E=!0,S=b[0],k=0;k<b.length;k++){var C=b[k],O=Q(C),N=Z(C)===L,T=[I,D].indexOf(O)>=0,A=T?"width":"height",z=pe(t,{placement:C,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),F=T?N?P:R:N?D:I;w[A]>x[A]&&(F=ie(F));var B=ie(F),q=[];if(o&&q.push(z[O]<=0),s&&q.push(z[F]<=0,z[B]<=0),q.every((function(e){return e}))){S=C,E=!1;break}_.set(C,q)}if(E)for(var H=function(e){var t=b.find((function(t){var n=_.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},V=h?3:1;V>0;V--){if("break"===H(V))break}t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function me(e,t,n){return d(e,f(t,n))}const ge={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,p=n.padding,h=n.tether,m=void 0===h||h,g=n.tetherOffset,v=void 0===g?0:g,y=pe(t,{boundary:l,rootBoundary:c,padding:p,altBoundary:u}),b=Q(t.placement),w=Z(t.placement),x=!w,_=J(b),E="x"===_?"y":"x",k=t.modifiersData.popperOffsets,C=t.rects.reference,O=t.rects.popper,N="function"===typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,T="number"===typeof N?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(k){if(o){var z,F="y"===_?I:R,B="y"===_?D:P,U="y"===_?"height":"width",$=k[_],q=$+y[F],H=$-y[B],V=m?-O[U]/2:0,W=w===L?C[U]:O[U],K=w===L?-O[U]:-C[U],G=t.elements.arrow,Y=m&&G?S(G):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ee=X[F],te=X[B],ne=me(0,C[U],Y[U]),re=x?C[U]/2-V-ne-ee-T.mainAxis:W-ne-ee-T.mainAxis,ie=x?-C[U]/2+V+ne+te+T.mainAxis:K+ne+te+T.mainAxis,oe=t.elements.arrow&&A(t.elements.arrow),ae=oe?"y"===_?oe.clientTop||0:oe.clientLeft||0:0,se=null!=(z=null==j?void 0:j[_])?z:0,le=$+ie-se,ce=me(m?f(q,$+re-se-ae):q,$,m?d(H,le):H);k[_]=ce,M[_]=ce-$}if(s){var ue,de="x"===_?I:R,fe="x"===_?D:P,he=k[E],ge="y"===E?"height":"width",ve=he+y[de],ye=he-y[fe],be=-1!==[I,R].indexOf(b),we=null!=(ue=null==j?void 0:j[E])?ue:0,xe=be?ve:he-C[ge]-O[ge]-we+T.altAxis,_e=be?he+C[ge]+O[ge]-we-T.altAxis:ye,Ee=m&&be?function(e,t,n){var r=me(e,t,n);return r>n?n:r}(xe,he,_e):me(m?xe:ve,he,m?_e:ye);k[E]=Ee,M[E]=Ee-he}t.modifiersData[r]=M}},requiresIfExists:["offset"]};const ve={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Q(n.placement),l=J(s),c=[R,P].indexOf(s)>=0?"height":"width";if(o&&a){var u=function(e,t){return de("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:fe(e,M))}(i.padding,n),d=S(o),f="y"===l?I:R,p="y"===l?D:P,h=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],m=a[l]-n.rects.reference[l],g=A(o),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,y=h/2-m/2,b=u[f],w=v-d[c]-u[p],x=v/2-d[c]/2+y,_=me(b,x,w),E=l;n.modifiersData[r]=((t={})[E]=_,t.centerOffset=_-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r)))&&se(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ye(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function be(e){return[I,P,D,R].some((function(t){return e[t]>=0}))}var we=G({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,a=r.resize,l=void 0===a||a,c=s(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach((function(e){e.addEventListener("scroll",n.update,Y)})),l&&c.addEventListener("resize",n.update,Y),function(){o&&u.forEach((function(e){e.removeEventListener("scroll",n.update,Y)})),l&&c.removeEventListener("resize",n.update,Y)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=X({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,l=void 0===s||s,c={placement:Q(t.placement),variation:Z(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,te(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,te(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];c(i)&&y(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});c(r)&&y(r)&&(Object.assign(r.style,o),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},ne,he,ge,ve,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=pe(t,{elementContext:"reference"}),s=pe(t,{altBoundary:!0}),l=ye(a,r),c=ye(s,i,o),u=be(l),d=be(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}),xe=n(45099),_e=n.n(xe),Ee=function(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})},Se="undefined"!==typeof window&&window.document&&window.document.createElement?r.useLayoutEffect:r.useEffect,ke=[],Ce=function(e,t,n){void 0===n&&(n={});var i=r.useRef(null),o={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||ke},s=r.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=s[0],c=s[1],u=r.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);a.flushSync((function(){c({styles:Ee(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:Ee(n.map((function(e){return[e,t.attributes[e]]})))})}))},requires:["computeStyles"]}}),[]),d=r.useMemo((function(){var e={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[u,{name:"applyStyles",enabled:!1}])};return _e()(i.current,e)?i.current||e:(i.current=e,e)}),[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,u]),f=r.useRef();return Se((function(){f.current&&f.current.setOptions(d)}),[d]),Se((function(){if(null!=e&&null!=t){var r=(n.createPopper||we)(e,t,d);return f.current=r,function(){r.destroy(),f.current=null}}}),[e,t,n.createPopper]),{state:f.current?f.current.state:null,styles:l.styles,attributes:l.attributes,update:f.current?f.current.update:null,forceUpdate:f.current?f.current.forceUpdate:null}},Oe=n(54245);const Ne=["bottom-start","bottom","bottom-end","top-start","top","top-end","right-start","right","right-end","left-start","left","left-end"],Te={name:"rtlOffsetFix",enabled:!0,phase:"main",requires:["offset"],fn({state:e}){var t;if(!e.placement.startsWith("top")&&!e.placement.startsWith("bottom"))return;const n=null===(t=e.modifiersData.offset)||void 0===t?void 0:t[e.placement];n&&(e.modifiersData.popperOffsets.x-=2*n.x)}};var Ae=n(18670),Ie=n(98392),De=n(19225),Pe=n(69220),Re=n(99635),je=n(6826);const Me=(0,Pe.om)("popup");function Le({styles:e,attributes:t,setArrowRef:n}){return r.createElement("div",Object.assign({"data-popper-arrow":!0,ref:n,className:Me("arrow"),style:e},t),r.createElement("div",{className:Me("arrow-content")},r.createElement("div",{className:Me("arrow-circle-wrapper")},r.createElement("div",{className:Me("arrow-circle",{left:!0})})),r.createElement("div",{className:Me("arrow-circle-wrapper")},r.createElement("div",{className:Me("arrow-circle",{right:!0})}))))}const ze=(0,Pe.om)("popup"),Fe=8;function Be({keepMounted:e=!1,hasArrow:t=!1,offset:n=[0,4],open:a,placement:s,anchorRef:l,disableEscapeKeyDown:c,disableOutsideClick:u,disableLayer:d,style:f,className:p,contentClassName:h,modifiers:m=[],children:g,onEscapeKeyDown:v,onOutsideClick:y,onClose:b,onClick:w,onMouseEnter:x,onMouseLeave:_,onFocus:E,onBlur:S,onTransitionEnter:k,onTransitionEntered:C,onTransitionExit:O,onTransitionExited:N,disablePortal:T,container:A,strategy:I,qa:D,restoreFocus:P,restoreFocusRef:R,"aria-label":j,"aria-labelledby":M,role:L,id:z,focusTrap:F=!1,autoFocus:B=!1,"aria-modal":U=F}){const $=r.useRef(null);(0,Re.Z)({open:a,disableEscapeKeyDown:c,disableOutsideClick:u,onEscapeKeyDown:v,onOutsideClick:y,onClose:b,contentRefs:[l,$],enabled:!d,type:"popup"});const{attributes:q,styles:H,setPopperRef:V,setArrowRef:W}=function({anchorRef:e,placement:t=Ne,offset:n,modifiers:i=[],strategy:o,altBoundary:a}){const[s,l]=r.useState(null),[c,u]=r.useState(null),d=(0,Oe.j)(),f=r.useMemo((()=>{let e=Array.isArray(t)?t:[t];return"rtl"===d&&(e=e.map((e=>e.replace(/(top|bottom)-(start|end)/g,((e,t,n)=>"start"===n?t+"-end":"end"===n?t+"-start":e))))),e}),[t,d]),{attributes:p,styles:h}=Ce(null===e||void 0===e?void 0:e.current,s,{strategy:o,modifiers:[{name:"arrow",options:{element:c}},{name:"offset",options:{offset:n,altBoundary:a}},{name:"flip",options:{fallbackPlacements:f.slice(1),altBoundary:a}},..."rtl"===d?[Te]:[],...i],placement:f[0]});return{attributes:p,styles:h,setPopperRef:l,setArrowRef:u}}({anchorRef:l,placement:s,offset:t?[n[0],n[1]+Fe]:n,strategy:I,altBoundary:T,modifiers:[{name:"arrow",options:{enabled:t,padding:4}},{name:"preventOverflow",options:{padding:1,altBoundary:T}},...m]}),K=(0,o.N)(V,$,(0,De.N)()),G=(0,Ae.s)({enabled:Boolean(P&&a),restoreFocusRef:R});let Y=L;return!0!==U&&"true"!==U||Y||(Y="dialog"),r.createElement(i.A,{nodeRef:$,in:a,addEndListener:e=>{var t;return null===(t=$.current)||void 0===t?void 0:t.addEventListener("animationend",e)},classNames:(0,je.L)(ze),mountOnEnter:!e,unmountOnExit:!e,appear:!0,onEnter:()=>{null===k||void 0===k||k()},onEntered:()=>{null===C||void 0===C||C()},onExit:()=>{null===O||void 0===O||O()},onExited:()=>{null===N||void 0===N||N()}},r.createElement(Ie.Z,{container:A,disablePortal:T},r.createElement("div",Object.assign({ref:K,style:H.popper},q.popper,G,{className:ze({open:a},p),"data-qa":D,id:z,role:Y,"aria-label":j,"aria-labelledby":M,"aria-modal":U&&a?U:void 0}),r.createElement(De.s,{enabled:F&&a,autoFocus:B},r.createElement("div",{onClick:w,onMouseEnter:x,onMouseLeave:_,onFocus:E,onBlur:S,className:ze("content",h),style:f,tabIndex:-1},t&&r.createElement(Le,{styles:H.arrow,attributes:q.arrow,setArrowRef:W}),g)))))}},98392:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(59284),i=n(48681);const o=r.createContext({current:null});o.displayName="PortalContext";var a=n(69118),s=n(46878);const l=(0,n(69220).om)("portal");function c({container:e,children:t,disablePortal:n}){const c=function(){var e;const t=r.useContext(o);let n=null;return"object"===typeof window&&(n=window.document.body),null!==(e=t.current)&&void 0!==e?e:n}(),{scoped:u}=(0,s.w)(),d=null!==e&&void 0!==e?e:c;return n?r.createElement(r.Fragment,null,t):d?i.createPortal(u?r.createElement(a.N,{rootClassName:l("theme-wrapper"),scoped:!0},t):t,d):null}},44433:(e,t,n)=>{"use strict";n.d(t,{a:()=>y});var r=n(59284),i=n(90826),o=n(85736);const a=new Set(["id"]),s=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),l=/^(data-.*)$/;var c=n(794);function u(e){var t,n;const{name:r,value:u,defaultValue:d,options:f=[],disabled:p,onUpdate:h,onChange:m,onFocus:g,onBlur:v}=e,y=(0,i.u)(),[b,w]=(0,o.P)(u,null!==(n=null!==d&&void 0!==d?d:null===(t=f[0])||void 0===t?void 0:t.value)&&void 0!==n?n:null,h),x=(0,c.d)({initialValue:b,onReset:w}),_=e=>{w(e.target.value),m&&m(e)},E=Object.assign(Object.assign({},function(e,t={}){const{labelable:n,propNames:r}=t,i={};for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(a.has(o)||n&&s.has(o)||(null===r||void 0===r?void 0:r.has(o))||l.test(o))&&(i[o]=e[o]);return i}(e,{labelable:!0})),{role:"radiogroup","aria-disabled":p});return{containerProps:E,optionsProps:f.map((e=>({name:r||y,value:e.value,content:e.content,title:e.title,checked:b===String(e.value),disabled:p||e.disabled,onChange:_,onFocus:g,onBlur:v,ref:x})))}}var d=n(69220),f=n(32084),p=n(11669);var h=n(10176);const m=(0,d.om)("radio-button"),g=r.forwardRef((function(e,t){const{disabled:n=!1,content:a,children:s,title:l}=e,{checked:u,inputProps:d}=function({name:e,value:t,checked:n,defaultChecked:a,disabled:s,controlRef:l,controlProps:u,onUpdate:d,onChange:h,onFocus:m,onBlur:g,id:v}){const y=(0,i.u)(),b=r.useRef(null),[w,x]=(0,o.P)(n,null!==a&&void 0!==a&&a,d),_=(0,c.d)({initialValue:w,onReset:x}),E=(0,f.N)(l,b,_);return{checked:w,inputProps:Object.assign(Object.assign({},u),{name:e||y,value:t,id:v,onFocus:m,onBlur:g,disabled:s,type:"radio",onChange:e=>{x(e.target.checked),h&&h(e)},onChangeCapture:e=>{p.o.publish({componentId:"Radio",eventId:"click",domEvent:e})},checked:n,defaultChecked:a,"aria-checked":w,ref:E})}}(e),g=a||s,v=(0,h.If)(g)||(0,h.$D)(g);return r.createElement("label",{className:m("option",{disabled:n,checked:u}),ref:t,title:l},r.createElement("input",Object.assign({},d,{className:m("option-control")})),r.createElement("span",{className:m("option-outline")}),g&&r.createElement("span",{className:m("option-text",{icon:v})},g))})),v=(0,d.om)("radio-button"),y=r.forwardRef((function(e,t){const{size:n="m",width:i,style:o,className:a,qa:s,children:l}=e;let c=e.options;c||(c=r.Children.toArray(l).map((({props:e})=>({value:e.value,content:e.content||e.children,disabled:e.disabled,title:e.title}))));const d=r.useRef(null),f=r.useRef(),p=r.useCallback((e=>{if(!e)return;const t=d.current;if(!t)return;const n=f.current;if(n&&n!==e){const r=e=>{t.style.left=`${e.offsetLeft}px`,t.style.width=`${e.offsetWidth}px`};r(n),t.hidden=!1,r(e)}f.current=e}),[]),{containerProps:h,optionsProps:m}=u(Object.assign(Object.assign({},e),{options:c}));return r.createElement("div",Object.assign({},h,{ref:t,style:o,className:v({size:n,width:i},a),"data-qa":s}),r.createElement("div",{ref:d,className:v("plate"),onTransitionEnd:e=>{e.currentTarget.hidden=!0},hidden:!0}),m.map((e=>r.createElement(g,Object.assign({},e,{key:e.value,ref:e.checked?p:void 0})))))}));y.Option=g},85589:(e,t,n)=>{"use strict";n.d(t,{d:()=>s});var r=n(59284),i=n(64222),o=n(46898);const a=(0,n(69220).om)("switch"),s=r.forwardRef((function(e,t){const{size:n="m",disabled:s=!1,content:l,children:c,title:u,style:d,className:f,qa:p}=e,{checked:h,inputProps:m}=(0,i.v)(Object.assign(Object.assign({},e),{controlProps:Object.assign(Object.assign({},e.controlProps),{role:"switch"})})),g=l||c,v=r.createElement("span",{className:a("indicator")},r.createElement("input",Object.assign({},m,{className:a("control")})),r.createElement("span",{className:a("outline")}),r.createElement("span",{className:a("slider")}));return r.createElement(o.m,{ref:t,title:u,style:d,size:n,disabled:s,className:a({size:n,disabled:s,checked:h},f),labelClassName:a("text"),qa:p,control:v},g)}))},23871:(e,t,n)=>{"use strict";n.d(t,{t:()=>p});var r=n(59284),i=n(69220);const o=r.createContext({activeTabId:void 0});o.displayName="TabsContext";var a=n(47665);const s=(0,i.om)("tabs");function l({id:e,className:t,title:n,meta:i,hint:l,icon:c,counter:u,label:d,active:f,disabled:p,hasOverflow:h,extraProps:m,onClick:g}){const{activeTabId:v}=r.useContext(o),y="boolean"===typeof f?f:v===e,b=r.useMemo((()=>void 0!==l?l:"string"===typeof n?n:void 0),[l,n]);return r.createElement("div",Object.assign({},m,{role:"tab","aria-selected":y,"aria-disabled":!0===p,tabIndex:p?-1:0,className:s("item",{active:y,disabled:p,overflow:Boolean(h)},t),title:b,onClick:()=>{g(e)},onKeyDown:t=>{" "===t.key&&g(e)}}),r.createElement("div",{className:s("item-content")},c&&r.createElement("div",{className:s("item-icon")},c),r.createElement("div",{className:s("item-title")},n||e),void 0!==u&&r.createElement("div",{className:s("item-counter")},u),d&&r.createElement(a.J,{className:s("item-label"),theme:d.theme},d.content)),i&&r.createElement("div",{className:s("item-meta")},i))}l.displayName="Tabs.Item";const c=(0,i.om)("tabs");var u;!function(e){e.Horizontal="horizontal",e.Vertical="vertical"}(u||(u={}));const d=[],f=r.forwardRef((({direction:e=u.Horizontal,size:t="m",activeTab:n,allowNotSelected:i=!1,items:a=d,children:s,className:f,onSelectTab:p,wrapTo:h,qa:m},g)=>{const v=((e,t,n)=>{var r;return e||(t||0===(null===n||void 0===n?void 0:n.length)||null===(r=null===n||void 0===n?void 0:n[0])||void 0===r?void 0:r.id)})(n,i,a),y=r.useMemo((()=>({activeTabId:v})),[v]),b=r.useMemo((()=>{const e=e=>{p&&p(e)};return a.map(((t,n)=>{const i=r.createElement(l,Object.assign({key:t.id},t,{onClick:e}));return h?h(t,i,n):i}))}),[a,p,h]);return r.createElement("div",{role:"tablist",className:c({direction:e,size:t},f),"data-qa":m,ref:g},r.createElement(o.Provider,{value:y},s||b))}));f.displayName="Tabs";const p=Object.assign(f,{Item:l})},98089:(e,t,n)=>{"use strict";n.d(t,{E:()=>l});var r=n(27145),i=n(59284),o=n(63365);const a=(0,n(69220).om)("text"),s=({variant:e="body-1",ellipsis:t,ellipsisLines:n,whiteSpace:r,wordBreak:i},o)=>a({variant:e,ellipsis:t,ws:r,wb:i,"ellipsis-lines":n},o),l=i.forwardRef((function(e,t){var{as:n,children:a,variant:l,className:c,ellipsis:u,color:d,whiteSpace:f,wordBreak:p,ellipsisLines:h,style:m,qa:g}=e,v=(0,r.Tt)(e,["as","children","variant","className","ellipsis","color","whiteSpace","wordBreak","ellipsisLines","style","qa"]);const y=n||"span",b=Object.assign({},m);return"number"===typeof h&&(b.WebkitLineClamp=h),i.createElement(y,Object.assign({ref:t,className:s({variant:l,ellipsis:u,whiteSpace:f,wordBreak:p,ellipsisLines:"number"===typeof h},d?(0,o.$)({color:d},c):c),style:b,"data-qa":g},v),a)}));l.displayName="Text"},63365:(e,t,n)=>{"use strict";n.d(t,{$:()=>i});const r=(0,n(69220).om)("color-text"),i=({color:e},t)=>r({color:e},t)},28664:(e,t,n)=>{"use strict";n.d(t,{k:()=>P});var r=n(59284),i=n(94420),o=n(85736),a=n(32084),s=n(90826),l=n(794),c=n(6104),u=n.n(c),d=n(61758),f=n.n(d);function p(e,t){const[n,i]=r.useState({width:0,height:0});return r.useLayoutEffect((()=>{const t=null===e||void 0===e?void 0:e.current;if(!t)return;i({width:u()(t.offsetWidth,2),height:u()(t.offsetHeight,2)});const n=new ResizeObserver(f()((e=>{if(!Array.isArray(e))return;const t=e[0];if(t.borderBoxSize){const e=t.borderBoxSize[0]?t.borderBoxSize[0]:t.borderBoxSize;i({width:u()(e.inlineSize,2),height:u()(e.blockSize,2)})}else{const e=t.target;i({width:u()(e.offsetWidth,2),height:u()(e.offsetHeight,2)})}}),16));return n.observe(t),()=>{n.disconnect()}}),[e,t]),n}var h=n(99991),m=n(84375),g=n(69220),v=n(81240),y=n(84476),b=n(72837);const w=JSON.parse('{"label_clear-button":"Clear"}'),x=JSON.parse('{"label_clear-button":"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c"}'),_=(0,b.N)({en:w,ru:x},`${g.CU}clear-button`),E=(0,g.om)("clear-button"),S=e=>{switch(e){case"s":return"xs";case"m":return"s";case"l":return"m";case"xl":return"l";default:throw new Error(`Unknown text input size "${e}"`)}},k=e=>{const{size:t,className:n,onClick:i}=e;return r.createElement(y.$,{size:t,className:E(null,n),onClick:i,extraProps:{onMouseDown:e=>{e.preventDefault()},"aria-label":_("label_clear-button")}},r.createElement(h.I,{data:v.A,size:16}))};var C=n(63246),O=n(34379);const N=(0,g.om)("text-input"),T=r.forwardRef((function({placement:e,children:t,onClick:n},i){return t?r.createElement("div",{ref:i,className:N("additional-content",{placement:e}),onClick:n},t):null})),A=(0,g.om)("text-input");function I(e){const{controlProps:t,controlRef:n,type:i,name:o,id:a,tabIndex:s,autoComplete:l,placeholder:c,value:u,defaultValue:d,autoFocus:f,disabled:p,readOnly:h,onChange:m,onFocus:g,onBlur:v,onKeyDown:y,onKeyUp:b,onKeyPress:w}=e;return r.createElement("input",Object.assign({},t,{ref:n,className:A("control",{type:"input"},t.className),type:i,name:o,id:a,tabIndex:s,placeholder:c,value:u,defaultValue:d,autoFocus:f,autoComplete:l,onChange:m,onFocus:g,onBlur:v,onKeyDown:y,onKeyUp:b,onKeyPress:w,disabled:null!==p&&void 0!==p?p:t.disabled,readOnly:null!==h&&void 0!==h?h:t.readOnly}))}const D=(0,g.om)("text-input"),P=r.forwardRef((function(e,t){const{view:n="normal",size:c="m",pin:u="round-round",name:d,value:f,defaultValue:g,label:v,disabled:y,readOnly:b,hasClear:w=!1,error:x,errorMessage:_,errorPlacement:E="outside",validationState:N,autoComplete:A,id:P,tabIndex:R,style:j,className:M,qa:L,controlProps:z,leftContent:F,rightContent:B,startContent:U=F,endContent:$=B,unstable_endContent:q,note:H,onUpdate:V,onChange:W}=e,{errorMessage:K,errorPlacement:G,validationState:Y}=(0,O.Av)({error:x,errorMessage:_,errorPlacement:E,validationState:N}),[Q,Z]=(0,o.P)(f,null!==g&&void 0!==g?g:"",V),J=r.useRef(null),X=(0,l.d)({initialValue:Q,onReset:Z}),ee=(0,a.N)(e.controlRef,J,X),te=r.useRef(null),ne=r.useRef(null),re=(0,O.lf)(Y),ie=Boolean(v),oe="invalid"===Y&&Boolean(K)&&"outside"===G,ae="invalid"===Y&&Boolean(K)&&"inside"===G,se=Boolean(w&&!y&&!b&&Q),le=Boolean(U),ce=Boolean(q),ue=Boolean($)&&!ce,de=ie&&!P&&!d&&"undefined"===typeof A,fe=(0,s.u)(),pe=ie?P||fe:P,he=p(ie?te:null,c),me=p(le?ne:null,c),ge=(0,s.u)(),ve=(0,s.u)(),ye=[null===z||void 0===z?void 0:z["aria-describedby"],H?ve:void 0,oe?ge:void 0].filter(Boolean).join(" "),be=Object.assign(Object.assign({},z),{style:Object.assign(Object.assign({},null===z||void 0===z?void 0:z.style),ie&&he.width?{paddingInlineStart:`${he.width}px`}:{}),"aria-invalid":"invalid"===Y||void 0,"aria-describedby":ye||void 0}),we={id:pe,tabIndex:R,name:d,onChange(e){Z(e.target.value),W&&W(e)},autoComplete:de?"off":(0,O.o$)(A),controlProps:be},xe=e=>{var t,n;const r=!e.currentTarget.contains(document.activeElement)&&e.currentTarget.contains(e.target),i=Boolean(null===(t=document.getSelection())||void 0===t?void 0:t.toString());r&&!i&&(null===(n=J.current)||void 0===n||n.focus())};return r.createElement("span",{ref:t,style:j,className:D({view:n,size:c,disabled:y,state:re,pin:"clear"===n?void 0:u,"has-clear":se,"has-start-content":le,"has-end-content":se||ue||ce,"has-unstable-end-content":ce},M),"data-qa":L},r.createElement("span",{className:D("content")},le&&r.createElement(T,{ref:ne,placement:"start",onClick:xe},U),ie&&r.createElement("label",{ref:te,style:{insetInlineStart:le?me.width:void 0,maxWidth:`calc(50% - ${me.width}px)`},className:D("label"),title:v,htmlFor:pe},`${v}`),r.createElement(I,Object.assign({},e,we,{controlRef:ee})),se&&r.createElement(k,{size:S(c),onClick:e=>{Z("");const t=J.current;if(t){const n=Object.create(e);n.target=t,n.currentTarget=t,t.value="",W&&W(n)}},className:D("clear",{size:c})}),ue&&r.createElement(T,{placement:"end",onClick:xe},$),ae&&r.createElement(m.A,{content:K},r.createElement("span",{"data-qa":O._y},r.createElement(h.I,{data:i.A,className:D("error-icon"),size:"s"===c?12:16}))),ce&&r.createElement(T,{placement:"end",onClick:xe},q)),r.createElement(C.o,{note:H,errorMessage:oe?K:null,noteId:ve,errorMessageId:ge}))}))},63246:(e,t,n)=>{"use strict";n.d(t,{o:()=>s});var r=n(59284),i=n(69220),o=n(34379);const a=(0,i.om)("outer-additional-content"),s=({errorMessage:e,note:t,noteId:n,errorMessageId:i})=>e||t?r.createElement("div",{className:a()},e&&r.createElement("div",{className:a("error"),id:i,"data-qa":o.mF},e),t&&r.createElement("div",{className:a("note"),id:n},t)):null},34379:(e,t,n)=>{"use strict";n.d(t,{Av:()=>s,_y:()=>i,lf:()=>a,mF:()=>r,o$:()=>o});const r="control-error-message-qa",i="control-error-icon-qa",o=e=>"boolean"===typeof e?e?"on":"off":e,a=e=>"invalid"===e?"error":void 0,s=e=>{const{error:t,errorMessage:n,errorPlacement:r,validationState:i}=e;let o,a;return"string"===typeof t&&(o=t),n&&(o=n),("invalid"===i||Boolean(t))&&(a="invalid"),{errorMessage:o,errorPlacement:r,validationState:a}}},9296:(e,t,n)=>{"use strict";n.d(t,{a:()=>l});var r=n(27145),i=n(59284),o=n(69220),a=n(46423);const s=(0,o.om)("box"),l=i.forwardRef((function(e,t){var{as:n,children:o,qa:l,className:c,width:u,height:d,minWidth:f,minHeight:p,maxHeight:h,maxWidth:m,position:g,style:v,spacing:y,overflow:b}=e,w=(0,r.Tt)(e,["as","children","qa","className","width","height","minWidth","minHeight","maxHeight","maxWidth","position","style","spacing","overflow"]);const x=n||"div",_=Object.assign({width:u,height:d,minWidth:f,minHeight:p,maxHeight:h,maxWidth:m,position:g},v);return i.createElement(x,Object.assign({},w,{"data-qa":l,style:_,ref:t,className:s({overflow:b},y?(0,a.sp)(y,c):c)}),o)}))},87184:(e,t,n)=>{"use strict";n.d(t,{s:()=>u});var r=n(27145),i=n(59284),o=n(69220),a=n(9296),s=n(69033),l=n(8944);const c=(0,o.om)("flex"),u=i.forwardRef((function(e,t){const{as:n,direction:o,grow:u,basis:d,children:f,style:p,alignContent:h,alignItems:m,alignSelf:g,justifyContent:v,justifyItems:y,justifySelf:b,shrink:w,wrap:x,inline:_,gap:E,gapRow:S,className:k,space:C,centerContent:O}=e,N=(0,r.Tt)(e,["as","direction","grow","basis","children","style","alignContent","alignItems","alignSelf","justifyContent","justifyItems","justifySelf","shrink","wrap","inline","gap","gapRow","className","space","centerContent"]),T=n||"div",{getClosestMediaProps:A,theme:{spaceBaseSize:I}}=(0,s.L)(),D=e=>"object"===typeof e&&null!==e?A(e):e,P=D(E),R=P?I*Number(P):void 0,j=D(S)||P,M=j?I*Number(j):void 0,L=D(C),z=E||S||!L?void 0:(0,l.si)(L);return i.createElement(a.a,Object.assign({as:T,className:c({"center-content":O,inline:_,s:z},k),ref:t,style:Object.assign({flexDirection:D(o),flexGrow:!0===u?1:u,flexWrap:!0===x?"wrap":x,flexBasis:d,flexShrink:w,columnGap:R,rowGap:M,alignContent:D(h),alignItems:D(m),alignSelf:D(g),justifyContent:D(v),justifyItems:D(y),justifySelf:D(b)},p)},N),C?i.Children.map(f,(e=>e?i.createElement("div",{className:c("wr")},e):e)):f)}))},35719:(e,t,n)=>{"use strict";n.d(t,{W:()=>r,z:()=>i});const r={.5:"half"},i={breakpoints:{s:576,m:768,l:1080,xl:1200,xxl:1400,xxxl:1920},spaceBaseSize:4,components:{container:{gutters:"3",media:{l:{gutters:"5"}}}}}},55330:(e,t,n)=>{"use strict";n.d(t,{M:()=>o});var r=n(59284),i=n(35719);const o=r.createContext({theme:i.z,activeMediaQuery:"s"})},69033:(e,t,n)=>{"use strict";n.d(t,{L:()=>a});var r=n(59284),i=n(55330),o=n(8944);const a=()=>{const{activeMediaQuery:e,theme:t}=r.useContext(i.M),{isMediaActive:n,getClosestMediaProps:a}=r.useMemo((()=>({isMediaActive:(0,o.nR)(e),getClosestMediaProps:(0,o.yZ)(e)})),[e]);return{theme:t,activeMediaQuery:e,isMediaActive:n,getClosestMediaProps:a}}},46423:(e,t,n)=>{"use strict";n.d(t,{sp:()=>s,Y:()=>a});var r=n(69220),i=n(8944);const o=(0,r.om)("s"),a=(e,t)=>{const n=[];for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const t=e[r];"undefined"!==typeof t&&n.push(o(`${r}_${(0,i.si)(t)}`))}return t&&n.push(t),n.join(" ")},s=a},8944:(e,t,n)=>{"use strict";n.d(t,{nR:()=>o,si:()=>l,yZ:()=>s});var r=n(35719);const i={s:0,m:1,l:2,xl:3,xxl:4,xxxl:5},o=e=>t=>e in i&&i[e]-i[t]>=0,a=["s","m","l","xl","xxl","xxxl"],s=e=>(t={})=>{if(!e)return;let n=e;for(;n;){if(t[n])return t[n];n=a[i[n]-1]}},l=e=>e in r.W?r.W[e]:String(e)},11507:(e,t,n)=>{"use strict";n.d(t,{G:()=>o});var r=n(59284);const i={mobile:!1,platform:n(67459).O.BROWSER,useHistory:()=>({action:"",replace(){},push(){},goBack(){}}),useLocation:()=>({pathname:"",search:"",hash:""})},o=r.createContext(i)},67459:(e,t,n)=>{"use strict";n.d(t,{O:()=>r});var r,i=n(69220);!function(e){e.IOS="ios",e.ANDROID="android",e.BROWSER="browser"}(r||(r={}));(0,i.om)("root")({mobile:!0}).split(/\s+/)[1]},46819:(e,t,n)=>{"use strict";n.d(t,{I:()=>o});var r=n(59284),i=n(11507);function o(){return r.useContext(i.G).mobile}},42933:(e,t,n)=>{"use strict";n.d(t,{D:()=>r});const r=n(59284).createContext(void 0);r.displayName="ThemeContext"},69118:(e,t,n)=>{"use strict";n.d(t,{N:()=>O});var r=n(59284),i=n(55330);const o={media:"",matches:!1,onchange:()=>{},addListener:()=>{},removeListener:()=>{},addEventListener:()=>{},removeEventListener:()=>{},dispatchEvent:e=>!0},a=e=>"undefined"===typeof window||"function"!==typeof window.matchMedia?o:window.matchMedia(e);class s{constructor(e){this.queryListsDecl=[];const t={s:`(max-width: ${(n=e).m-1}px)`,m:`(min-width: ${n.m}px) and (max-width: ${n.l-1}px)`,l:`(min-width: ${n.l}px) and (max-width: ${n.xl-1}px)`,xl:`(min-width: ${n.xl}px) and (max-width: ${n.xxl-1}px)`,xxl:`(min-width: ${n.xxl}px) and (max-width: ${n.xxxl-1}px)`,xxxl:`(min-width: ${n.xxxl}px)`};var n;this.queryListsDecl=[["s",a(t.s)],["m",a(t.m)],["l",a(t.l)],["xl",a(t.xl)],["xxl",a(t.xxl)],["xxxl",a(t.xxxl)]]}getCurrentActiveMedia(){const e=this.queryListsDecl.find((([e,t])=>t.matches));return e?e[0]:"s"}addListeners(e){this.queryListsDecl.forEach((([t,n])=>n.addEventListener("change",e)))}removeListeners(e){this.queryListsDecl.forEach((([t,n])=>n.removeEventListener("change",e)))}}const l=(e,t="s")=>{const[n,i]=r.useState(t);return r.useLayoutEffect((()=>{const t=new s(e),n=()=>{i(t.getCurrentActiveMedia())};return t.addListeners(n),n(),()=>{t.removeListeners(n)}}),[e]),n};var c=n(17148),u=n.n(c);function d({children:e,config:t,initialMediaQuery:n}){const o=r.useContext(i.M),a=r.useMemo((()=>function({theme:e,override:t}){return u()(e,t)}({theme:o.theme,override:t})),[t,o.theme]),s=l(a.breakpoints,n),c=r.useMemo((()=>({activeMediaQuery:s,theme:a})),[s,a]);return r.createElement(i.M.Provider,{value:c},e)}var f=n(69220),p=n(42933);const h=r.createContext(void 0);h.displayName="ThemeSettingsContext";const m="system",g="light",v="dark",y="root",b="ltr",w=(0,f.om)(y),x=w();function _({theme:e,nativeScrollbar:t=!1,className:n,prevClassName:r}){const i=document.body;if(i.classList.contains(x)||i.classList.add(x),r){r.split(" ").forEach((e=>{e&&i.classList.remove(e)}))}if(n){n.split(" ").forEach((e=>{e&&!i.classList.contains(e)&&i.classList.add(e)}))}[...i.classList].forEach((e=>{e.startsWith((0,f.Nx)(w({theme:!0})))&&i.classList.remove(e)})),i.classList.add((0,f.Nx)(w({theme:e})));const o={"native-scrollbar":t};for(const[a,s]of Object.entries(o))i.classList.toggle((0,f.Nx)(w({[a]:!0})),s)}const E="undefined"!==typeof window&&"function"===typeof window.matchMedia,S=()=>window.matchMedia("(prefers-color-scheme: dark)");function k(){const[e,t]=r.useState(E&&S().matches?"dark":"light");return r.useEffect((()=>{if(!E)return;const e=function(e,t){const n="function"!==typeof e.addEventListener;return n?e.addListener(t):e.addEventListener("change",t),()=>{n?e.removeListener(t):e.removeEventListener("change",t)}}(S(),(function(e){t(e.matches?"dark":"light")}));return()=>e()}),[]),e}const C=(0,f.om)(y);function O({theme:e,systemLightTheme:t,systemDarkTheme:n,direction:i,nativeScrollbar:o,scoped:a=!1,rootClassName:s="",children:l,layout:c}){var u,f,y,w;const x=r.useContext(p.D),E=r.useContext(h),S=void 0!==x||a,O=null!==(u=null===x||void 0===x?void 0:x.theme)&&void 0!==u?u:m,N=null!==e&&void 0!==e?e:O,T=null!==(f=null!==t&&void 0!==t?t:null===E||void 0===E?void 0:E.systemLightTheme)&&void 0!==f?f:g,A=null!==(y=null!==n&&void 0!==n?n:null===E||void 0===E?void 0:E.systemDarkTheme)&&void 0!==y?y:v,I=null!==(w=null===x||void 0===x?void 0:x.direction)&&void 0!==w?w:b,D=null!==i&&void 0!==i?i:I,P="light"===k()?T:A,R="system"===N?P:N,j=r.useRef("");r.useLayoutEffect((()=>{S||(_({theme:R,nativeScrollbar:o,className:s,prevClassName:j.current}),function(e){const t=document.body;e===b?t.removeAttribute("dir"):t.setAttribute("dir",e)}(D),j.current=s)}),[S,R,D,o,s]);const M=r.useMemo((()=>({theme:N,themeValue:R,direction:D,scoped:S})),[N,R,D,S]),L=r.useMemo((()=>({systemLightTheme:T,systemDarkTheme:A})),[T,A]);return r.createElement(d,Object.assign({},c),r.createElement(p.D.Provider,{value:M},r.createElement(h.Provider,{value:L},S?r.createElement("div",{className:C({theme:R,"native-scrollbar":!1!==o},s),dir:D},l):l)))}O.displayName="ThemeProvider"},54245:(e,t,n)=>{"use strict";n.d(t,{j:()=>i});var r=n(46878);function i(){return(0,r.w)().direction}},46878:(e,t,n)=>{"use strict";n.d(t,{w:()=>o});var r=n(59284),i=n(42933);function o(){const e=r.useContext(i.D);if(void 0===e)throw new Error("useTheme* hooks must be used within ThemeProvider");return e}},22680:(e,t,n)=>{"use strict";n.d(t,{i:()=>i});var r=n(46878);function i(){return(0,r.w)().themeValue}},19225:(e,t,n)=>{"use strict";n.d(t,{s:()=>S,N:()=>k});var r=n(59284),i=n(83046);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var u=function(e,t){if(e.length>0){var n=e[e.length-1];n!==t&&n._setPausedState(!0)}var r=e.indexOf(t);-1===r||e.splice(r,1),e.push(t)},d=function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1),e.length>0&&!e[e.length-1]._isManuallyPaused()&&e[e.length-1]._setPausedState(!1)},f=function(e){return"Tab"===(null===e||void 0===e?void 0:e.key)||9===(null===e||void 0===e?void 0:e.keyCode)},p=function(e){return f(e)&&!e.shiftKey},h=function(e){return f(e)&&e.shiftKey},m=function(e){return setTimeout(e,0)},g=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"===typeof e?e.apply(void 0,n):e},v=function(e){return e.target.shadowRoot&&"function"===typeof e.composedPath?e.composedPath()[0]:e.target},y=[],b=function(e,t){var n,r=(null===t||void 0===t?void 0:t.document)||document,o=(null===t||void 0===t?void 0:t.trapStack)||y,a=l({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:p,isKeyBackward:h},t),s={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},b=function(e,t,n){return e&&void 0!==e[t]?e[t]:a[n||t]},w=function(e,t){var n="function"===typeof(null===t||void 0===t?void 0:t.composedPath)?t.composedPath():void 0;return s.containerGroups.findIndex((function(t){var r=t.container,i=t.tabbableNodes;return r.contains(e)||(null===n||void 0===n?void 0:n.includes(r))||i.find((function(t){return t===e}))}))},x=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.hasFallback,i=void 0!==n&&n,o=t.params,s=void 0===o?[]:o,l=a[e];if("function"===typeof l&&(l=l.apply(void 0,c(s))),!0===l&&(l=void 0),!l){if(void 0===l||!1===l)return l;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var u=l;if("string"===typeof l){try{u=r.querySelector(l)}catch(d){throw new Error("`".concat(e,'` appears to be an invalid selector; error="').concat(d.message,'"'))}if(!u&&!i)throw new Error("`".concat(e,"` as selector refers to no known node"))}return u},_=function(){var e=x("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void 0===e||e&&!(0,i.tp)(e,a.tabbableOptions))if(w(r.activeElement)>=0)e=r.activeElement;else{var t=s.tabbableGroups[0];e=t&&t.firstTabbableNode||x("fallbackFocus")}else null===e&&(e=x("fallbackFocus"));if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},E=function(){if(s.containerGroups=s.containers.map((function(e){var t=(0,i.Kr)(e,a.tabbableOptions),n=(0,i.nq)(e,a.tabbableOptions),r=t.length>0?t[0]:void 0,o=t.length>0?t[t.length-1]:void 0,s=n.find((function(e){return(0,i.AO)(e)})),l=n.slice().reverse().find((function(e){return(0,i.AO)(e)})),c=!!t.find((function(e){return(0,i.yT)(e)>0}));return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:c,firstTabbableNode:r,lastTabbableNode:o,firstDomTabbableNode:s,lastDomTabbableNode:l,nextTabbableNode:function(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=t.indexOf(e);return o<0?r?n.slice(n.indexOf(e)+1).find((function(e){return(0,i.AO)(e)})):n.slice(0,n.indexOf(e)).reverse().find((function(e){return(0,i.AO)(e)})):t[o+(r?1:-1)]}}})),s.tabbableGroups=s.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),s.tabbableGroups.length<=0&&!x("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(s.containerGroups.find((function(e){return e.posTabIndexesFound}))&&s.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},S=function(e){var t=e.activeElement;if(t)return t.shadowRoot&&null!==t.shadowRoot.activeElement?S(t.shadowRoot):t},k=function(e){!1!==e&&e!==S(document)&&(e&&e.focus?(e.focus({preventScroll:!!a.preventScroll}),s.mostRecentlyFocusedNode=e,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"===typeof e.select}(e)&&e.select()):k(_()))},C=function(e){var t=x("setReturnFocus",{params:[e]});return t||!1!==t&&e},O=function(e){var t=e.target,n=e.event,r=e.isBackward,o=void 0!==r&&r;t=t||v(n),E();var l=null;if(s.tabbableGroups.length>0){var c=w(t,n),u=c>=0?s.containerGroups[c]:void 0;if(c<0)l=o?s.tabbableGroups[s.tabbableGroups.length-1].lastTabbableNode:s.tabbableGroups[0].firstTabbableNode;else if(o){var d=s.tabbableGroups.findIndex((function(e){var n=e.firstTabbableNode;return t===n}));if(d<0&&(u.container===t||(0,i.tp)(t,a.tabbableOptions)&&!(0,i.AO)(t,a.tabbableOptions)&&!u.nextTabbableNode(t,!1))&&(d=c),d>=0){var p=0===d?s.tabbableGroups.length-1:d-1,h=s.tabbableGroups[p];l=(0,i.yT)(t)>=0?h.lastTabbableNode:h.lastDomTabbableNode}else f(n)||(l=u.nextTabbableNode(t,!1))}else{var m=s.tabbableGroups.findIndex((function(e){var n=e.lastTabbableNode;return t===n}));if(m<0&&(u.container===t||(0,i.tp)(t,a.tabbableOptions)&&!(0,i.AO)(t,a.tabbableOptions)&&!u.nextTabbableNode(t))&&(m=c),m>=0){var g=m===s.tabbableGroups.length-1?0:m+1,y=s.tabbableGroups[g];l=(0,i.yT)(t)>=0?y.firstTabbableNode:y.firstDomTabbableNode}else f(n)||(l=u.nextTabbableNode(t))}}else l=x("fallbackFocus");return l},N=function(e){var t=v(e);w(t,e)>=0||(g(a.clickOutsideDeactivates,e)?n.deactivate({returnFocus:a.returnFocusOnDeactivate}):g(a.allowOutsideClick,e)||e.preventDefault())},T=function(e){var t=v(e),n=w(t,e)>=0;if(n||t instanceof Document)n&&(s.mostRecentlyFocusedNode=t);else{var r;e.stopImmediatePropagation();var o=!0;if(s.mostRecentlyFocusedNode)if((0,i.yT)(s.mostRecentlyFocusedNode)>0){var l=w(s.mostRecentlyFocusedNode),c=s.containerGroups[l].tabbableNodes;if(c.length>0){var u=c.findIndex((function(e){return e===s.mostRecentlyFocusedNode}));u>=0&&(a.isKeyForward(s.recentNavEvent)?u+1<c.length&&(r=c[u+1],o=!1):u-1>=0&&(r=c[u-1],o=!1))}}else s.containerGroups.some((function(e){return e.tabbableNodes.some((function(e){return(0,i.yT)(e)>0}))}))||(o=!1);else o=!1;o&&(r=O({target:s.mostRecentlyFocusedNode,isBackward:a.isKeyBackward(s.recentNavEvent)})),k(r||(s.mostRecentlyFocusedNode||_()))}s.recentNavEvent=void 0},A=function(e){(a.isKeyForward(e)||a.isKeyBackward(e))&&function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];s.recentNavEvent=e;var n=O({event:e,isBackward:t});n&&(f(e)&&e.preventDefault(),k(n))}(e,a.isKeyBackward(e))},I=function(e){var t;"Escape"!==(null===(t=e)||void 0===t?void 0:t.key)&&"Esc"!==(null===t||void 0===t?void 0:t.key)&&27!==(null===t||void 0===t?void 0:t.keyCode)||!1===g(a.escapeDeactivates,e)||(e.preventDefault(),n.deactivate())},D=function(e){var t=v(e);w(t,e)>=0||g(a.clickOutsideDeactivates,e)||g(a.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},P=function(){if(s.active)return u(o,n),s.delayInitialFocusTimer=a.delayInitialFocus?m((function(){k(_())})):k(_()),r.addEventListener("focusin",T,!0),r.addEventListener("mousedown",N,{capture:!0,passive:!1}),r.addEventListener("touchstart",N,{capture:!0,passive:!1}),r.addEventListener("click",D,{capture:!0,passive:!1}),r.addEventListener("keydown",A,{capture:!0,passive:!1}),r.addEventListener("keydown",I),n},R=function(){if(s.active)return r.removeEventListener("focusin",T,!0),r.removeEventListener("mousedown",N,!0),r.removeEventListener("touchstart",N,!0),r.removeEventListener("click",D,!0),r.removeEventListener("keydown",A,!0),r.removeEventListener("keydown",I),n},j="undefined"!==typeof window&&"MutationObserver"in window?new MutationObserver((function(e){e.some((function(e){return Array.from(e.removedNodes).some((function(e){return e===s.mostRecentlyFocusedNode}))}))&&k(_())})):void 0,M=function(){j&&(j.disconnect(),s.active&&!s.paused&&s.containers.map((function(e){j.observe(e,{subtree:!0,childList:!0})})))};return n={get active(){return s.active},get paused(){return s.paused},activate:function(e){if(s.active)return this;var t=b(e,"onActivate"),n=b(e,"onPostActivate"),i=b(e,"checkCanFocusTrap");i||E(),s.active=!0,s.paused=!1,s.nodeFocusedBeforeActivation=r.activeElement,null===t||void 0===t||t();var o=function(){i&&E(),P(),M(),null===n||void 0===n||n()};return i?(i(s.containers.concat()).then(o,o),this):(o(),this)},deactivate:function(e){if(!s.active)return this;var t=l({onDeactivate:a.onDeactivate,onPostDeactivate:a.onPostDeactivate,checkCanReturnFocus:a.checkCanReturnFocus},e);clearTimeout(s.delayInitialFocusTimer),s.delayInitialFocusTimer=void 0,R(),s.active=!1,s.paused=!1,M(),d(o,n);var r=b(t,"onDeactivate"),i=b(t,"onPostDeactivate"),c=b(t,"checkCanReturnFocus"),u=b(t,"returnFocus","returnFocusOnDeactivate");null===r||void 0===r||r();var f=function(){m((function(){u&&k(C(s.nodeFocusedBeforeActivation)),null===i||void 0===i||i()}))};return u&&c?(c(C(s.nodeFocusedBeforeActivation)).then(f,f),this):(f(),this)},pause:function(e){return s.active?(s.manuallyPaused=!0,this._setPausedState(!0,e)):this},unpause:function(e){return s.active?(s.manuallyPaused=!1,o[o.length-1]!==this?this:this._setPausedState(!1,e)):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return s.containers=t.map((function(e){return"string"===typeof e?r.querySelector(e):e})),s.active&&E(),M(),this}},Object.defineProperties(n,{_isManuallyPaused:{value:function(){return s.manuallyPaused}},_setPausedState:{value:function(e,t){if(s.paused===e)return this;if(s.paused=e,e){var n=b(t,"onPause"),r=b(t,"onPostPause");null===n||void 0===n||n(),R(),M(),null===r||void 0===r||r()}else{var i=b(t,"onUnpause"),o=b(t,"onPostUnpause");null===i||void 0===i||i(),E(),P(),M(),null===o||void 0===o||o()}return this}}}),n.updateContainerElements(e),n},w=n(32084),x=n(90826),_=n(7412);const E=r.createContext(void 0);function S({children:e,enabled:t=!0,disableAutoFocus:n,autoFocus:i=!0}){const o=r.useRef(null),a=r.useRef(!n&&i);r.useEffect((()=>{a.current=!n&&i}));const s=r.useRef(),l=r.useRef({}),c=r.useCallback((()=>{var e;null===(e=s.current)||void 0===e||e.updateContainerElements([o.current,...Object.values(l.current)])}),[]),u=r.useMemo((()=>({addNode(e,t){var n;l.current[e]===t||(null===(n=o.current)||void 0===n?void 0:n.contains(t))||(l.current[e]=t,c())},removeNode(e){l.current[e]&&(delete l.current[e],c())}})),[c]),d=r.useCallback((e=>{var n;t&&e?(o.current=e,s.current||(s.current=b([],{initialFocus:()=>a.current&&function(e){if(!(document.activeElement instanceof HTMLElement)||!e.contains(document.activeElement))return e.hasAttribute("tabIndex")||e.setAttribute("tabIndex","-1"),e;return document.activeElement}(e),fallbackFocus:()=>e,returnFocusOnDeactivate:!1,escapeDeactivates:!1,clickOutsideDeactivates:!1,allowOutsideClick:!0})),c(),s.current.activate()):(null===(n=s.current)||void 0===n||n.deactivate(),o.current=null)}),[t,c]),f=r.Children.only(e);if(!r.isValidElement(f))throw new Error("Children must contain only one valid element");const p=(0,_.Q)(f),h=(0,w.N)(d,p);return r.createElement(E.Provider,{value:u},r.cloneElement(f,{ref:h}))}function k(){const e=r.useContext(E),t=(0,x.u)();return r.useMemo((()=>{if(e)return n=>{n?e.addNode(t,n):e.removeNode(t)}}),[e,t])}},69220:(e,t,n)=>{"use strict";n.d(t,{CU:()=>i,Nx:()=>a,om:()=>o});var r=n(82435);const i="g-",o=((0,r.withNaming)({e:"__",m:"_"}),(0,r.withNaming)({n:i,e:"__",m:"_"}));function a(e){return e.split(/\s(.*)/)[1]}},10176:(e,t,n)=>{"use strict";n.d(t,{$D:()=>l,If:()=>c,zm:()=>s});var r=n(99991),i=n(69220),o=n(41668);let a=1;function s(){return`${i.CU}uniq-${a++}`}const l=(0,o.g)("svg"),c=(0,o.g)(r.I)},3357:(e,t,n)=>{"use strict";var r;n.d(t,{ZM:()=>s,jK:()=>a,zj:()=>l}),function(e){e.Ru="ru",e.En="en"}(r||(r={}));let i=[];const o={lang:r.En,fallbackLang:r.En},a=e=>{Object.assign(o,e),i.forEach((e=>{e(o)}))},s=e=>(i.push(e),()=>{i=i.filter((t=>t!==e))}),l=()=>o},11669:(e,t,n)=>{"use strict";n.d(t,{o:()=>o});var r=n(27145),i=n(69220);const o=new class{constructor(e){this.subscriptions=[],this.componentPrefix=e}subscribe(e){this.subscriptions.push(e)}unsubscribe(e){const t=this.subscriptions.indexOf(e);t>-1&&this.subscriptions.splice(t,1)}publish(e){var{componentId:t}=e,n=(0,r.Tt)(e,["componentId"]);this.subscriptions.forEach((e=>e(Object.assign(Object.assign({},n),{componentId:this.componentPrefix?`${this.componentPrefix}${t}`:t}))))}withEventPublisher(e,t){return n=>{this.publish(Object.assign(Object.assign({},n),{componentId:e,qa:t}))}}}(i.CU)},7412:(e,t,n)=>{"use strict";function r(e){var t;return null!==(t=e.props.ref)&&void 0!==t?t:e.ref}n.d(t,{Q:()=>r})},41668:(e,t,n)=>{"use strict";n.d(t,{g:()=>i});var r=n(59284);function i(e){return function(t){if(!r.isValidElement(t))return!1;const{type:n}=t;if(n===e)return!0;if("string"===typeof e||"string"===typeof n)return!1;const i=n.displayName;return Boolean(i&&i===e.displayName)}}},99635:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(59284),i=n(359),o=n(11669);const a=new class{constructor(){this.stack=[],this.handleDocumentKeyDown=e=>{var t,n,r;if(e.code===i.D.ESCAPE){const r=this.getTopLayer();r.disableEscapeKeyDown||(null===(t=r.onEscapeKeyDown)||void 0===t||t.call(r,e),null===(n=r.onClose)||void 0===n||n.call(r,e,"escapeKeyDown"))}if("Enter"===e.code){const t=this.getTopLayer();null===(r=t.onEnterKeyDown)||void 0===r||r.call(t,e)}},this.handleDocumentClick=e=>{var t,n;if(this.isToastClick(e))return;let r,i=null;if(this.mouseDownLayerTarget){if(r=this.mouseDownLayerTarget.layer,i=this.mouseDownLayerTarget.target,this.mouseDownLayerTarget=void 0,!this.stack.includes(r))return}else r=this.getTopLayer();!r.disableOutsideClick&&this.isOutsideClick(r,e,i)&&(null===(t=r.onOutsideClick)||void 0===t||t.call(r,e),null===(n=r.onClose)||void 0===n||n.call(r,e,"outsideClick"))},this.handleDocumentMouseDown=e=>{const t=this.getTopLayer();t&&(this.mouseDownLayerTarget={layer:t,target:e.target})}}add(e){this.stack.push(e),1===this.stack.length&&this.addListeners(),this.notifyLayersChange()}remove(e){const t=this.stack.indexOf(e);this.stack.splice(t,1),0===this.stack.length&&this.removeListeners(),this.notifyLayersChange()}getLayersCount(){return this.stack.length}getLayers(){return this.stack.map((({type:e})=>({type:e})))}addListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("click",this.handleDocumentClick,!0),document.addEventListener("mousedown",this.handleDocumentMouseDown,!0)}removeListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("click",this.handleDocumentClick,!0),document.removeEventListener("mousedown",this.handleDocumentMouseDown,!0)}notifyLayersChange(){o.o.publish({componentId:"LayerManager",eventId:"layerschange",meta:{layersCount:this.getLayersCount(),layers:this.getLayers()}})}getTopLayer(){return this.stack[this.stack.length-1]}isOutsideClick(e,t,n=null){const r=e.contentRefs||[],{target:i}=t,o="function"===typeof t.composedPath?t.composedPath():[];if(r.length>0){return!r.some((e=>{var t,r,a,s;return(null===(r=null===(t=null===e||void 0===e?void 0:e.current)||void 0===t?void 0:t.contains)||void 0===r?void 0:r.call(t,i))||(null===(s=null===(a=null===e||void 0===e?void 0:e.current)||void 0===a?void 0:a.contains)||void 0===s?void 0:s.call(a,n))||o.includes(null===e||void 0===e?void 0:e.current)}))}return!1}isToastClick(e){return("function"===typeof e.composedPath?e.composedPath():[]).some((e=>{var t;return Boolean(null===(t=null===e||void 0===e?void 0:e.dataset)||void 0===t?void 0:t.toast)}))}};function s({open:e,disableEscapeKeyDown:t,disableOutsideClick:n,onEscapeKeyDown:i,onEnterKeyDown:o,onOutsideClick:s,onClose:l,contentRefs:c,enabled:u=!0,type:d}){const f=r.useRef({disableEscapeKeyDown:t,disableOutsideClick:n,onEscapeKeyDown:i,onEnterKeyDown:o,onOutsideClick:s,onClose:l,contentRefs:c,type:d});r.useEffect((()=>{Object.assign(f.current,{disableEscapeKeyDown:t,disableOutsideClick:n,onEscapeKeyDown:i,onEnterKeyDown:o,onOutsideClick:s,onClose:l,contentRefs:c,enabled:u})}),[t,n,i,o,s,l,c,u]),r.useEffect((()=>{if(e&&u){const e=f.current;return a.add(e),()=>{a.remove(e)}}}),[e,u])}},6826:(e,t,n)=>{"use strict";n.d(t,{L:()=>i});var r=n(69220);function i(e){return{appear:(0,r.Nx)(e({appear:!0})),appearActive:(0,r.Nx)(e({appear:"active"})),appearDone:(0,r.Nx)(e({appear:"done"})),enter:(0,r.Nx)(e({enter:!0})),enterActive:(0,r.Nx)(e({enter:"active"})),enterDone:(0,r.Nx)(e({enter:"done"})),exit:(0,r.Nx)(e({exit:!0})),exitActive:(0,r.Nx)(e({exit:"active"})),exitDone:(0,r.Nx)(e({exit:"done"}))}}},27629:(e,t,n)=>{"use strict";n.d(t,{m:()=>i});const r=new Map;function i(e){!e||r.has(e)}},359:(e,t,n)=>{"use strict";n.d(t,{D:()=>r});const r={BACKSPACE:"Backspace",ENTER:"Enter",TAB:"Tab",SPACEBAR:" ",SPACEBAR_OLD:"Spacebar",ESCAPE:"Escape",ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",SHIFT:"Shift",HOME:"Home",END:"End"}},64222:(e,t,n)=>{"use strict";n.d(t,{v:()=>l});var r=n(59284),i=n(85736),o=n(32084),a=n(11669),s=n(794);function l({name:e,value:t,id:n,defaultChecked:l,checked:c,indeterminate:u,onUpdate:d,onChange:f,controlRef:p,controlProps:h,onFocus:m,onBlur:g,disabled:v}){const y=r.useRef(null),[b,w]=(0,i.P)(c,null!==l&&void 0!==l&&l,d),x=!u&&c,_=u?"mixed":b,E=(0,s.d)({initialValue:b,onReset:w}),S=(0,o.N)(p,y,E);r.useLayoutEffect((()=>{y.current&&(y.current.indeterminate=Boolean(u))}),[u]);const k=r.useCallback((e=>{a.o.publish({componentId:"Checkbox",eventId:"click",domEvent:e,meta:{checked:e.target.checked}})}),[]);return{checked:b,inputProps:Object.assign(Object.assign({},h),{name:e,value:t,id:n,onFocus:m,onBlur:g,disabled:v,type:"checkbox",onChange:e=>{w(e.target.checked),f&&f(e)},onClickCapture:k,defaultChecked:l,checked:x,"aria-checked":_,ref:S})}}},794:(e,t,n)=>{"use strict";n.d(t,{d:()=>i});var r=n(59284);function i({initialValue:e,onReset:t}){const[n,i]=r.useState(null),o=r.useRef(e);r.useEffect((()=>{if(!n)return;const e=()=>{t(o.current)};return n.addEventListener("reset",e),()=>{n.removeEventListener("reset",e)}}),[n,t]);return r.useCallback((e=>{var t;i(null!==(t=null===e||void 0===e?void 0:e.form)&&void 0!==t?t:null)}),[])}},18670:(e,t,n)=>{"use strict";n.d(t,{s:()=>o});var r=n(59284),i=n(83046);function o({enabled:e,restoreFocusRef:t,focusTrapped:n}){const o=r.useRef(null),a=r.useRef(null),s=r.useRef(null);return r.useEffect((()=>{if(!e)return;const t=e=>{const t=e.target;!n&&t instanceof HTMLElement&&(0,i.AO)(t)&&(s.current=t)},r=e=>{const t=e.target;t instanceof HTMLElement&&(0,i.AO)(t)?s.current=t:s.current=null};return window.addEventListener("focusin",t),window.addEventListener("mousedown",r),window.addEventListener("touchstart",r),()=>{window.removeEventListener("focusin",t),window.removeEventListener("mousedown",r),window.removeEventListener("touchstart",r)}}),[e,n]),r.useEffect((()=>{var n;o.current=e&&null!==(n=(null===t||void 0===t?void 0:t.current)||a.current)&&void 0!==n?n:null})),r.useEffect((()=>{if(e)return()=>{let e=o.current;const t=s.current;t&&document.contains(t)&&(0,i.AO)(t)&&(e=t),e&&"function"===typeof e.focus&&document.contains(e)&&(0,i.tp)(e)&&(e!==document.activeElement&&setTimeout((()=>{null===e||void 0===e||e.focus()}),0),a.current=null,s.current=null)}}),[e]),{onFocus:n=>{var r;e&&null===a.current&&(a.current=n.relatedTarget,s.current=a.current,o.current=null!==(r=(null===t||void 0===t?void 0:t.current)||a.current)&&void 0!==r?r:null)}}}},81517:(e,t,n)=>{"use strict";n.d(t,{d:()=>o});var r=n(59284),i=n(359);const o=(e,{openDelay:t=250,closeDelay:n,preventTriggerOnFocus:o=!1})=>{const[a,s,l]=function(e){const[t,n]=r.useState(e);return[t,r.useCallback((()=>n(!0)),[]),r.useCallback((()=>n(!1)),[]),r.useCallback((()=>n((e=>!e))),[])]}(!1),c=r.useRef(),u=r.useRef(!1);return r.useEffect((()=>{if(e)return e.addEventListener("mouseenter",r),e.addEventListener("mouseleave",a),e.addEventListener("keydown",p),o||(e.addEventListener("focus",d),e.addEventListener("blur",f)),()=>{e.removeEventListener("mouseenter",r),e.removeEventListener("mouseleave",a),e.removeEventListener("focus",d),e.removeEventListener("blur",f),e.removeEventListener("keydown",p)};function r(){clearTimeout(c.current),c.current=window.setTimeout(s,t)}function a(){clearTimeout(c.current),c.current=window.setTimeout(l,n)}function d(e){u.current||document.activeElement!==e.target||(u.current=!0,clearTimeout(c.current),s())}function f(e){u.current&&!e.currentTarget.contains(e.relatedTarget)&&(u.current=!1,clearTimeout(c.current),l())}function p(e){e.key===i.D.ESCAPE&&(clearTimeout(c.current),l())}}),[e,s,l,t,n,o]),a}},46734:(e,t,n)=>{"use strict";n.d(t,{N:()=>a,h:()=>o});var r=n(59284),i=n(359);function o(e){return t=>{e&&[i.D.ENTER,i.D.SPACEBAR,i.D.SPACEBAR_OLD].includes(t.key)&&(t.preventDefault(),e(t))}}function a(e){return{onKeyDown:r.useMemo((()=>o(e)),[e])}}},14794:(e,t,n)=>{"use strict";n.d(t,{y:()=>u});var r=n(59284);const i="padding-right",o="padding-bottom",a="overflow",s=[a,i,o];let l=0,c={};function u({enabled:e}){r.useLayoutEffect((()=>{if(e)return l++,1===l&&function(){const e=window.innerWidth-document.documentElement.clientWidth,t=window.innerHeight-document.documentElement.clientHeight,n=function(){const e=window.getComputedStyle(document.body);return{top:Number.parseFloat(e.paddingTop),right:Number.parseFloat(e.paddingRight),bottom:Number.parseFloat(e.paddingBottom),left:Number.parseFloat(e.paddingLeft)}}();c=function(){const e={};for(const t of s)e[t]=document.body.style.getPropertyValue(t);return e}(),document.body.style.setProperty(a,"hidden"),e&&document.body.style.setProperty(i,`${n.right+e}px`);t&&document.body.style.setProperty(o,`${n.bottom+t}px`)}(),()=>{l--,0===l&&function(){for(const e of s){const t=c[e];t?document.body.style.setProperty(e,t):document.body.style.removeProperty(e)}}()}}),[e])}},85736:(e,t,n)=>{"use strict";n.d(t,{P:()=>i});var r=n(59284);function i(e,t,n){const[i,o]=r.useState(null!==e&&void 0!==e?e:t),a=r.useRef(void 0!==e),s=void 0!==e;r.useEffect((()=>{const e=a.current;e!==s&&console.error(`[useControlledState] A component changed from ${e?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),a.current=s}),[s]);let l=s?e:i;const c=r.useCallback(((e,...t)=>{Object.is(l,e)||null===n||void 0===n||n(e,...t),s||(l=e,o(e))}),[s,n,l]);return[l,c]}},42793:(e,t,n)=>{"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,{c:()=>r})},32084:(e,t,n)=>{"use strict";n.d(t,{N:()=>o});var r=n(59284),i=n(42793);function o(...e){return r.useMemo((()=>e.every((e=>null===e||void 0===e))?null:t=>{for(const n of e)(0,i.c)(n,t)}),e)}},29322:(e,t,n)=>{"use strict";n.d(t,{v:()=>i});var r=n(59284);const i=({element:e,options:t,onIntersect:n})=>{r.useEffect((()=>{const r=new IntersectionObserver((([e])=>{e.isIntersecting&&(null===n||void 0===n||n())}),t);return e&&r.observe(e),()=>null===e?void 0:r.unobserve(e)}),[e,t,n])}},90826:(e,t,n)=>{"use strict";n.d(t,{u:()=>a});var r=n(59284),i=n(69220),o=n(10176);const a="function"===typeof r.useId?function(){return`${i.CU}${r.useId()}`}:function(){const e=r.useRef();return void 0===e.current&&(e.current=(0,o.zm)()),e.current}},72837:(e,t,n)=>{"use strict";n.d(t,{N:()=>l});var r=n(1448),i=n(3357);const{lang:o,fallbackLang:a}=(0,i.zj)(),s=new r.TH({lang:o,fallbackLang:a});function l(e,t){Object.entries(e).forEach((([e,n])=>s.registerKeyset(e,t,n)));return s.keyset(t)}(0,i.ZM)((e=>{s.setLang(e.lang),s.setFallbackLang(e.fallbackLang)}))},59625:(e,t,n)=>{"use strict";n.d(t,{X:()=>re});var r=n(5906),i=n(59284),o=n(87924),a=n.n(o),s=n(48681),l=n(69220);function c(e,t){return e.findIndex((e=>e.name===t))}function u(e,t){return-1!==c(e,t)}function d(e,t){return u(e,t)?e.filter((e=>e.name!==t)):e}const f=i.createContext(null);f.displayName="ToasterContext";const p=i.createContext([]);p.displayName="ToastsContext";const h=i.forwardRef((function({children:e},t){const[n,r]=i.useState([]),o=i.useCallback((e=>{const{name:t}=e;r((n=>{let r=n;return u(n,t)&&(r=d(n,t)),[...r,Object.assign(Object.assign({},e),{addedAt:Date.now(),ref:i.createRef()})]}))}),[]),a=i.useCallback((e=>{r((t=>d(t,e)))}),[]),s=i.useCallback((()=>{r((()=>[]))}),[]),l=i.useCallback(((e,t)=>{r((n=>{if(!u(n,e))return n;const r=c(n,e);return[...n.slice(0,r),Object.assign(Object.assign({},n[r]),t),...n.slice(r+1)]}))}),[]),h=i.useRef(n);i.useEffect((()=>{h.current=n}),[n]);const m=i.useCallback((e=>!!h.current&&u(h.current,e)),[]),g=i.useMemo((()=>({add:o,remove:a,removeAll:s,update:l,has:m})),[o,a,s,l,m]);return i.useImperativeHandle(t,(()=>({add:o,remove:a,removeAll:s,update:l,has:m}))),i.createElement(f.Provider,{value:g},i.createElement(p.Provider,{value:n},e))}));h.displayName="ToasterProvider";var m=n(46819),g=n(98587),v=n(58168),y=n(9417),b=n(25540),w=n(10641);function x(e,t){var n=Object.create(null);return e&&i.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,i.isValidElement)(e)?t(e):e}(e)})),n}function _(e,t,n){return null!=n[t]?n[t]:e.props[t]}function E(e,t,n){var r=x(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var c=i[l][r];s[i[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(t,r);return Object.keys(o).forEach((function(a){var s=o[a];if((0,i.isValidElement)(s)){var l=a in t,c=a in r,u=t[a],d=(0,i.isValidElement)(u)&&!u.props.in;!c||l&&!d?c||!l||d?c&&l&&(0,i.isValidElement)(u)&&(o[a]=(0,i.cloneElement)(s,{onExited:n.bind(null,s),in:u.props.in,exit:_(s,"exit",e),enter:_(s,"enter",e)})):o[a]=(0,i.cloneElement)(s,{in:!1}):o[a]=(0,i.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:_(s,"exit",e),enter:_(s,"enter",e)})}})),o}var S=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},k=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind((0,y.A)(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}(0,b.A)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,x(n.children,(function(e){return(0,i.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:_(e,"appear",n),enter:_(e,"enter",n),exit:_(e,"exit",n)})}))):E(e,o,a),firstRender:!1}},n.handleExited=function(e,t){var n=x(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,v.A)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=(0,g.A)(e,["component","childFactory"]),o=this.state.contextValue,a=S(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?i.createElement(w.A.Provider,{value:o},a):i.createElement(w.A.Provider,{value:o},i.createElement(t,r,a))},t}(i.Component);k.propTypes={},k.defaultProps={component:"div",childFactory:function(e){return e}};const C=k;var O=n(72630),N=n(6826),T=n(43937),A=n(70825),I=n(94420),D=n(27612),P=n(81240);function R({onClose:e,timeout:t}){const[n,r,o]=function(){const[e,t]=i.useState(!1);return[i.useCallback((()=>{t(!0)}),[]),i.useCallback((()=>{t(!1)}),[]),e]}();var a,s;return a=e,s=o?null:t,i.useEffect((()=>{if("number"!==typeof s)return;const e=setTimeout((()=>{a()}),s);return()=>{clearTimeout(e)}}),[a,s]),{onMouseOver:n,onMouseLeave:r}}var j=n(84476),M=n(99991),L=n(72837);const z=JSON.parse('{"label_close-button":"Close"}'),F=JSON.parse('{"label_close-button":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"}'),B=(0,L.N)({en:z,ru:F},"Toaster"),U=(0,l.om)("toast"),$=5e3,q={normal:null,info:T.A,success:A.A,warning:I.A,danger:I.A,utility:D.A};const H=i.forwardRef((function(e,t){const{name:n,content:r,actions:o,title:a,className:s,theme:l="normal",renderIcon:c,autoHiding:u=$,isClosable:d=!0,mobile:f=!1,onClose:p,removeCallback:h}=e,m=i.useCallback((()=>{h(n),p&&p()}),[h,p,n]),g=R({onClose:m,timeout:"number"===typeof u?u:void 0}),v={mobile:f,theme:l},y=Boolean(a),b=Boolean(r),w=c?c(e):function({theme:e}){return e&&q[e]?i.createElement(M.I,{data:q[e],size:20,className:U("icon",{[e]:!0})}):null}({theme:l});return i.createElement("div",Object.assign({ref:t,className:U(v,s)},g,{"data-toast":!0}),w&&i.createElement("div",{className:U("icon-container")},w),i.createElement("div",{className:U("container")},y&&i.createElement("h3",{className:U("title")},a),d&&i.createElement(j.$,{size:"s",view:"flat",className:U("btn-close"),onClick:m,extraProps:{"aria-label":B("label_close-button")}},i.createElement(M.I,{data:P.A})),b&&i.createElement("div",{className:U("content",{"without-title":!y})},r),function({actions:e,onClose:t}){return e&&e.length?i.createElement("div",{className:U("actions")},e.map((({label:e,onClick:n,view:r="outlined",removeAfterClick:o=!0},a)=>i.createElement(j.$,{key:`${e}__${a}`,className:U("action"),onClick:()=>{n(),o&&t()},type:"button",size:"l",view:r,width:"auto"},e)))):null}({actions:o,onClose:m})))})),V=(0,N.L)((0,l.om)("toast-animation-desktop")),W=(0,N.L)((0,l.om)("toast-animation-mobile"));function K(e){const{toasts:t,mobile:n,removeCallback:r}=e;return i.createElement(C,{component:null},t.map((e=>i.createElement(O.A,{key:`${e.name}_${e.addedAt}`,nodeRef:e.ref,classNames:n?W:V,addEndListener:t=>{var n,r;return null===(r=null===(n=e.ref)||void 0===n?void 0:n.current)||void 0===r?void 0:r.addEventListener("animationend",t)},onEnter:()=>G(e),onExit:()=>G(e)},i.createElement(H,Object.assign({},e,{mobile:n,removeCallback:r}))))))}function G(e){var t;(null===(t=e.ref)||void 0===t?void 0:t.current)&&e.ref.current.style.setProperty("--_--item-height",`${e.ref.current.offsetHeight}px`)}var Y=n(98392);const Q=(0,l.om)("toaster");function Z({children:e,className:t,mobile:n}){const r=i.useRef("undefined"===typeof document?void 0:document.createElement("div"));return i.useEffect((()=>{const e=r.current;if(e)return document.body.appendChild(e),()=>{document.body.removeChild(e)}}),[]),i.useEffect((()=>{r.current&&(r.current.className=Q({mobile:n},t))}),[t,n]),i.createElement(Y.Z,{container:r.current},e)}function J({className:e,mobile:t,hasPortal:n=!0}){const r=(0,m.I)(),{remove:o}=function(){const e=i.useContext(f);if(null===e)throw new Error("Toaster: `useToaster` hook is used out of context");return i.useMemo((()=>e),[e])}(),a=i.useContext(p),s=i.createElement(K,{toasts:a,removeCallback:o,mobile:null!==t&&void 0!==t?t:r});return n?i.createElement(Z,{className:e||"",mobile:null!==t&&void 0!==t?t:r},s):s}Z.displayName="ToasterPortal",J.displayName="ToasterComponent";const X=Symbol("Toaster instance key"),ee=(0,l.om)("toaster");let te;class ne{static injectReactDOMClient(e){te=e}constructor(e){this.className="",this.mobile=!1,this.componentAPI=null,this.add=e=>{var t;null===(t=this.componentAPI)||void 0===t||t.add(e)},this.remove=e=>{var t;null===(t=this.componentAPI)||void 0===t||t.remove(e)},this.removeAll=()=>{var e;null===(e=this.componentAPI)||void 0===e||e.removeAll()},this.update=(e,t)=>{var n;null===(n=this.componentAPI)||void 0===n||n.update(e,t)},this.has=e=>{var t,n;return null!==(n=null===(t=this.componentAPI)||void 0===t?void 0:t.has(e))&&void 0!==n&&n};const t=a()(e,["className"],""),n=a()(e,["mobile"],!1);if(window[X]instanceof ne){const e=window[X];return e.className=t,e.mobile=n,e.setRootNodeClassName(),e}this.className=t,this.mobile=n,this.createRootNode(),this.createReactRoot(),this.render(),window[X]=this}destroy(){s.unmountComponentAtNode(this.rootNode),document.body.removeChild(this.rootNode)}createRootNode(){this.rootNode=document.createElement("div"),this.setRootNodeClassName(),document.body.appendChild(this.rootNode)}createReactRoot(){te&&(this.reactRoot=te.createRoot(this.rootNode))}render(){const e=i.createElement(h,{ref:e=>{this.componentAPI=e}},i.createElement(J,{hasPortal:!1,mobile:this.mobile}));this.reactRoot?this.reactRoot.render(e):s.render(e,this.rootNode,(()=>Promise.resolve()))}setRootNodeClassName(){this.rootNode.className=ee({mobile:this.mobile},this.className)}}ne.injectReactDOMClient(r);const re="object"===typeof window?new ne:{}},63904:(e,t,n)=>{"use strict";var r=n(35711),i=n(69426),o=n(70084),a=n(98599);e.exports=a||r.call(o,i)},69426:e=>{"use strict";e.exports=Function.prototype.apply},70084:e=>{"use strict";e.exports=Function.prototype.call},31886:(e,t,n)=>{"use strict";var r=n(35711),i=n(39955),o=n(70084),a=n(63904);e.exports=function(e){if(e.length<1||"function"!==typeof e[0])throw new i("a function is required");return a(r,o,e)}},98599:e=>{"use strict";e.exports="undefined"!==typeof Reflect&&Reflect&&Reflect.apply},90308:(e,t,n)=>{"use strict";var r=n(94701),i=n(31886),o=i([r("%String.prototype.indexOf%")]);e.exports=function(e,t){var n=r(e,!!t);return"function"===typeof n&&o(e,".prototype.")>-1?i([n]):n}},32133:(e,t,n)=>{"use strict";var r=n(33410),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,o,a,s,l,c,u=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),s=document.createRange(),l=document.getSelection(),(c=document.createElement("span")).textContent=e,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),"undefined"===typeof r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=i[t.format]||i.default;window.clipboardData.setData(o,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(c),s.selectNodeContents(c),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(d){n&&console.error("unable to copy using execCommand: ",d),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(d){n&&console.error("unable to copy using clipboardData: ",d),n&&console.error("falling back to prompt"),o=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(o,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),c&&document.body.removeChild(c),a()}return u}},88409:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,n=36e5,r="millisecond",i="second",o="minute",a="hour",s="day",l="week",c="month",u="quarter",d="year",f="date",p="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},v=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+v(r,2,"0")+":"+v(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,c),o=n-i<0,a=t.clone().add(r+(o?-1:1),c);return+(-(r+(n-i)/(o?i-a:a-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:d,w:l,d:s,D:f,h:a,m:o,s:i,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",w={};w[b]=g;var x="$isDayjsObject",_=function(e){return e instanceof C||!(!e||!e[x])},E=function e(t,n,r){var i;if(!t)return b;if("string"==typeof t){var o=t.toLowerCase();w[o]&&(i=o),n&&(w[o]=n,i=o);var a=t.split("-");if(!i&&a.length>1)return e(a[0])}else{var s=t.name;w[s]=t,i=s}return!r&&i&&(b=i),i||!r&&b},S=function(e,t){if(_(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new C(n)},k=y;k.l=E,k.i=_,k.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var C=function(){function g(e){this.$L=E(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var v=g.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(k.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(h);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return k},v.isValid=function(){return!(this.$d.toString()===p)},v.isSame=function(e,t){var n=S(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return S(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<S(e)},v.$g=function(e,t,n){return k.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,r=!!k.u(t)||t,u=k.p(e),p=function(e,t){var i=k.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},h=function(e,t){return k.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,g=this.$M,v=this.$D,y="set"+(this.$u?"UTC":"");switch(u){case d:return r?p(1,0):p(31,11);case c:return r?p(1,g):p(0,g+1);case l:var b=this.$locale().weekStart||0,w=(m<b?m+7:m)-b;return p(r?v-w:v+(6-w),g);case s:case f:return h(y+"Hours",0);case a:return h(y+"Minutes",1);case o:return h(y+"Seconds",2);case i:return h(y+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var n,l=k.p(e),u="set"+(this.$u?"UTC":""),p=(n={},n[s]=u+"Date",n[f]=u+"Date",n[c]=u+"Month",n[d]=u+"FullYear",n[a]=u+"Hours",n[o]=u+"Minutes",n[i]=u+"Seconds",n[r]=u+"Milliseconds",n)[l],h=l===s?this.$D+(t-this.$W):t;if(l===c||l===d){var m=this.clone().set(f,1);m.$d[p](h),m.init(),this.$d=m.set(f,Math.min(this.$D,m.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[k.p(e)]()},v.add=function(r,u){var f,p=this;r=Number(r);var h=k.p(u),m=function(e){var t=S(p);return k.w(t.date(t.date()+Math.round(e*r)),p)};if(h===c)return this.set(c,this.$M+r);if(h===d)return this.set(d,this.$y+r);if(h===s)return m(1);if(h===l)return m(7);var g=(f={},f[o]=t,f[a]=n,f[i]=e,f)[h]||1,v=this.$d.getTime()+r*g;return k.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=k.z(this),o=this.$H,a=this.$m,s=this.$M,l=n.weekdays,c=n.months,u=n.meridiem,d=function(e,n,i,o){return e&&(e[n]||e(t,r))||i[n].slice(0,o)},f=function(e){return k.s(o%12||12,e,"0")},h=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(m,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return k.s(t.$y,4,"0");case"M":return s+1;case"MM":return k.s(s+1,2,"0");case"MMM":return d(n.monthsShort,s,c,3);case"MMMM":return d(c,s);case"D":return t.$D;case"DD":return k.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,l,2);case"ddd":return d(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(o);case"HH":return k.s(o,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return h(o,a,!0);case"A":return h(o,a,!1);case"m":return String(a);case"mm":return k.s(a,2,"0");case"s":return String(t.$s);case"ss":return k.s(t.$s,2,"0");case"SSS":return k.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(r,f,p){var h,m=this,g=k.p(f),v=S(r),y=(v.utcOffset()-this.utcOffset())*t,b=this-v,w=function(){return k.m(m,v)};switch(g){case d:h=w()/12;break;case c:h=w();break;case u:h=w()/3;break;case l:h=(b-y)/6048e5;break;case s:h=(b-y)/864e5;break;case a:h=b/n;break;case o:h=b/t;break;case i:h=b/e;break;default:h=b}return p?h:k.a(h)},v.daysInMonth=function(){return this.endOf(c).$D},v.$locale=function(){return w[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=E(e,t,!0);return r&&(n.$L=r),n},v.clone=function(){return k.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},g}(),O=C.prototype;return S.prototype=O,[["$ms",r],["$s",i],["$m",o],["$H",a],["$W",s],["$M",c],["$y",d],["$D",f]].forEach((function(e){O[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),S.extend=function(e,t){return e.$i||(e(t,C,S),e.$i=!0),S},S.locale=E,S.isDayjs=_,S.unix=function(e){return S(1e3*e)},S.en=w[b],S.Ls=w,S.p={},S}()},54533:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,o={},a=function(e){return(e=+e)+(e>68?1900:2e3)},s=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],c=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?"pm":"PM");return n},d={A:[i,function(e){this.afternoon=u(e,!1)}],a:[i,function(e){this.afternoon=u(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,s("seconds")],ss:[r,s("seconds")],m:[r,s("minutes")],mm:[r,s("minutes")],H:[r,s("hours")],h:[r,s("hours")],HH:[r,s("hours")],hh:[r,s("hours")],D:[r,s("day")],DD:[n,s("day")],Do:[i,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],M:[r,s("month")],MM:[n,s("month")],MMM:[i,function(e){var t=c("months"),n=(c("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[i,function(e){var t=c("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,s("year")],YY:[n,function(e){this.year=a(e)}],YYYY:[/\d{4}/,s("year")],Z:l,ZZ:l};function f(n){var r,i;r=n,i=o&&o.formats;for(var a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var o=r&&r.toUpperCase();return n||i[r]||e[r]||i[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,l=0;l<s;l+=1){var c=a[l],u=d[c],f=u&&u[0],p=u&&u[1];a[l]=p?{regex:f,parser:p}:c.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=a[n];if("string"==typeof i)r+=i.length;else{var o=i.regex,l=i.parser,c=e.slice(r),u=o.exec(c)[0];l.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(a=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if("string"==typeof s){var l=!0===a[2],c=!0===a[3],u=l||c,d=a[2];c&&(d=a[2]),o=this.$locale(),!l&&d&&(o=n.Ls[d]),this.$d=function(e,t,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var r=f(t)(e),i=r.year,o=r.month,a=r.day,s=r.hours,l=r.minutes,c=r.seconds,u=r.milliseconds,d=r.zone,p=new Date,h=a||(i||o?1:p.getDate()),m=i||p.getFullYear(),g=0;i&&!o||(g=o>0?o-1:p.getMonth());var v=s||0,y=l||0,b=c||0,w=u||0;return d?new Date(Date.UTC(m,g,h,v,y,b,w+60*d.offset*1e3)):n?new Date(Date.UTC(m,g,h,v,y,b,w)):new Date(m,g,h,v,y,b,w)}catch(e){return new Date("")}}(t,s,r),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date("")),o={}}else if(s instanceof Array)for(var p=s.length,h=1;h<=p;h+=1){a[1]=s[h-1];var m=n.apply(this,a);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}h===p&&(this.$d=new Date(""))}else i.call(this,e)}}}()},20549:function(e){e.exports=function(){"use strict";return function(e,t,n){n.updateLocale=function(e,t){var r=n.Ls[e];if(r)return(t?Object.keys(t):[]).forEach((function(e){r[e]=t[e]})),r}}}()},77354:function(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,i,o){var a=i.prototype;o.utc=function(e){return new i({date:e,utc:!0,args:arguments})},a.utc=function(t){var n=o(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},a.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var s=a.parse;a.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var l=a.init;a.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else l.call(this)};var c=a.utcOffset;a.utcOffset=function(r,i){var o=this.$utils().u;if(o(r))return this.$u?0:o(this.$offset)?c.call(this):this.$offset;if("string"==typeof r&&(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var i=(""+r[0]).match(n)||["-",0,0],o=i[0],a=60*+i[1]+ +i[2];return 0===a?0:"+"===o?a:-a}(r),null===r))return this;var a=Math.abs(r)<=16?60*r:r,s=this;if(i)return s.$offset=a,s.$u=0===r,s;if(0!==r){var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(a+l,e)).$offset=a,s.$x.$localOffset=l}else s=this.utc();return s};var u=a.format;a.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,t)},a.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var d=a.toDate;a.toDate=function(e){return"s"===e&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var f=a.diff;a.diff=function(e,t,n){if(e&&this.$u===e.$u)return f.call(this,e,t,n);var r=this.local(),i=o(e).local();return f.call(r,i,t,n)}}}()},8928:(e,t,n)=>{"use strict";var r,i=n(31886),o=n(84363);try{r=[].__proto__===Array.prototype}catch(c){if(!c||"object"!==typeof c||!("code"in c)||"ERR_PROTO_ACCESS"!==c.code)throw c}var a=!!r&&o&&o(Object.prototype,"__proto__"),s=Object,l=s.getPrototypeOf;e.exports=a&&"function"===typeof a.get?i([a.get]):"function"===typeof l&&function(e){return l(null==e?e:s(e))}},78599:e=>{"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(n){t=!1}e.exports=t},82461:e=>{"use strict";e.exports=EvalError},73759:e=>{"use strict";e.exports=Error},52530:e=>{"use strict";e.exports=RangeError},19770:e=>{"use strict";e.exports=ReferenceError},78236:e=>{"use strict";e.exports=SyntaxError},39955:e=>{"use strict";e.exports=TypeError},22921:e=>{"use strict";e.exports=URIError},30836:e=>{"use strict";e.exports=Object},9265:e=>{"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n};e.exports=function(e){var i=this;if("function"!==typeof i||"[object Function]"!==t.apply(i))throw new TypeError("Function.prototype.bind called on incompatible "+i);for(var o,a=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n}(arguments,1),s=n(0,i.length-a.length),l=[],c=0;c<s;c++)l[c]="$"+c;if(o=Function("binder","return function ("+function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n}(l,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof o){var t=i.apply(this,r(a,arguments));return Object(t)===t?t:this}return i.apply(e,r(a,arguments))})),i.prototype){var u=function(){};u.prototype=i.prototype,o.prototype=new u,u.prototype=null}return o}},35711:(e,t,n)=>{"use strict";var r=n(9265);e.exports=Function.prototype.bind||r},94701:(e,t,n)=>{"use strict";var r,i=n(30836),o=n(73759),a=n(82461),s=n(52530),l=n(19770),c=n(78236),u=n(39955),d=n(22921),f=n(51682),p=n(45904),h=n(73620),m=n(40538),g=n(7328),v=n(54),y=n(75869),b=Function,w=function(e){try{return b('"use strict"; return ('+e+").constructor;")()}catch(t){}},x=n(84363),_=n(78599),E=function(){throw new u},S=x?function(){try{return E}catch(e){try{return x(arguments,"callee").get}catch(t){return E}}}():E,k=n(27199)(),C=n(91268),O=n(39232),N=n(62384),T=n(69426),A=n(70084),I={},D="undefined"!==typeof Uint8Array&&C?C(Uint8Array):r,P={__proto__:null,"%AggregateError%":"undefined"===typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":k&&C?C([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":I,"%AsyncGenerator%":I,"%AsyncGeneratorFunction%":I,"%AsyncIteratorPrototype%":I,"%Atomics%":"undefined"===typeof Atomics?r:Atomics,"%BigInt%":"undefined"===typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":a,"%Float32Array%":"undefined"===typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":b,"%GeneratorFunction%":I,"%Int8Array%":"undefined"===typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":k&&C?C(C([][Symbol.iterator]())):r,"%JSON%":"object"===typeof JSON?JSON:r,"%Map%":"undefined"===typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&k&&C?C((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":x,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?r:Promise,"%Proxy%":"undefined"===typeof Proxy?r:Proxy,"%RangeError%":s,"%ReferenceError%":l,"%Reflect%":"undefined"===typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&k&&C?C((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":k&&C?C(""[Symbol.iterator]()):r,"%Symbol%":k?Symbol:r,"%SyntaxError%":c,"%ThrowTypeError%":S,"%TypedArray%":D,"%TypeError%":u,"%Uint8Array%":"undefined"===typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?r:Uint32Array,"%URIError%":d,"%WeakMap%":"undefined"===typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?r:WeakSet,"%Function.prototype.call%":A,"%Function.prototype.apply%":T,"%Object.defineProperty%":_,"%Object.getPrototypeOf%":O,"%Math.abs%":f,"%Math.floor%":p,"%Math.max%":h,"%Math.min%":m,"%Math.pow%":g,"%Math.round%":v,"%Math.sign%":y,"%Reflect.getPrototypeOf%":N};if(C)try{null.error}catch(K){var R=C(C(K));P["%Error.prototype%"]=R}var j=function e(t){var n;if("%AsyncFunction%"===t)n=w("async function () {}");else if("%GeneratorFunction%"===t)n=w("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=w("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&C&&(n=C(i.prototype))}return P[t]=n,n},M={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},L=n(35711),z=n(86173),F=L.call(A,Array.prototype.concat),B=L.call(T,Array.prototype.splice),U=L.call(A,String.prototype.replace),$=L.call(A,String.prototype.slice),q=L.call(A,RegExp.prototype.exec),H=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,V=/\\(\\)?/g,W=function(e,t){var n,r=e;if(z(M,r)&&(r="%"+(n=M[r])[0]+"%"),z(P,r)){var i=P[r];if(i===I&&(i=j(r)),"undefined"===typeof i&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===q(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=$(e,0,1),n=$(e,-1);if("%"===t&&"%"!==n)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return U(e,H,(function(e,t,n,i){r[r.length]=n?U(i,V,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",i=W("%"+r+"%",t),o=i.name,a=i.value,s=!1,l=i.alias;l&&(r=l[0],B(n,F([0,1],l)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],h=$(p,0,1),m=$(p,-1);if(('"'===h||"'"===h||"`"===h||'"'===m||"'"===m||"`"===m)&&h!==m)throw new c("property names with quotes must have matching quotes");if("constructor"!==p&&f||(s=!0),z(P,o="%"+(r+="."+p)+"%"))a=P[o];else if(null!=a){if(!(p in a)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(x&&d+1>=n.length){var g=x(a,p);a=(f=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:a[p]}else f=z(a,p),a=a[p];f&&!s&&(P[o]=a)}}return a}},39232:(e,t,n)=>{"use strict";var r=n(30836);e.exports=r.getPrototypeOf||null},62384:e=>{"use strict";e.exports="undefined"!==typeof Reflect&&Reflect.getPrototypeOf||null},91268:(e,t,n)=>{"use strict";var r=n(62384),i=n(39232),o=n(8928);e.exports=r?function(e){return r(e)}:i?function(e){if(!e||"object"!==typeof e&&"function"!==typeof e)throw new TypeError("getProto: not an object");return i(e)}:o?function(e){return o(e)}:null},55357:e=>{"use strict";e.exports=Object.getOwnPropertyDescriptor},84363:(e,t,n)=>{"use strict";var r=n(55357);if(r)try{r([],"length")}catch(i){r=null}e.exports=r},27199:(e,t,n)=>{"use strict";var r="undefined"!==typeof Symbol&&Symbol,i=n(80605);e.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&i())))}},80605:e=>{"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var r in e[t]=42,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},86173:(e,t,n)=>{"use strict";var r=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=n(35711);e.exports=o.call(r,i)},45264:(e,t,n)=>{"use strict";n.d(t,{zR:()=>E,TM:()=>T,yJ:()=>m,sC:()=>I,AO:()=>h,Fu:()=>g});var r=n(58168);function i(e){return"/"===e.charAt(0)}function o(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}const a=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],a=t&&t.split("/")||[],s=e&&i(e),l=t&&i(t),c=s||l;if(e&&i(e)?a=r:r.length&&(a.pop(),a=a.concat(r)),!a.length)return"/";if(a.length){var u=a[a.length-1];n="."===u||".."===u||""===u}else n=!1;for(var d=0,f=a.length;f>=0;f--){var p=a[f];"."===p?o(a,f):".."===p?(o(a,f),d++):d&&(o(a,f),d--)}if(!c)for(;d--;d)a.unshift("..");!c||""===a[0]||a[0]&&i(a[0])||a.unshift("");var h=a.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};function s(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}const l=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"===typeof t||"object"===typeof n){var r=s(t),i=s(n);return r!==t||i!==n?e(r,i):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1};var c=n(68643);function u(e){return"/"===e.charAt(0)?e:"/"+e}function d(e){return"/"===e.charAt(0)?e.substr(1):e}function f(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function p(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function h(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function m(e,t,n,i){var o;"string"===typeof e?(o=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),o.state=t):(void 0===(o=(0,r.A)({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return n&&(o.key=n),i?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=a(o.pathname,i.pathname)):o.pathname=i.pathname:o.pathname||(o.pathname="/"),o}function g(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&l(e.state,t.state)}function v(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var o="function"===typeof e?e(t,n):e;"string"===typeof o?"function"===typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var y=!("undefined"===typeof window||!window.document||!window.document.createElement);function b(e,t){t(window.confirm(e))}var w="popstate",x="hashchange";function _(){try{return window.history.state||{}}catch(e){return{}}}function E(e){void 0===e&&(e={}),y||(0,c.A)(!1);var t=window.history,n=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history}(),i=!(-1===window.navigator.userAgent.indexOf("Trident")),o=e,a=o.forceRefresh,s=void 0!==a&&a,l=o.getUserConfirmation,d=void 0===l?b:l,g=o.keyLength,E=void 0===g?6:g,S=e.basename?p(u(e.basename)):"";function k(e){var t=e||{},n=t.key,r=t.state,i=window.location,o=i.pathname+i.search+i.hash;return S&&(o=f(o,S)),m(o,r,n)}function C(){return Math.random().toString(36).substr(2,E)}var O=v();function N(e){(0,r.A)(B,e),B.length=t.length,O.notifyListeners(B.location,B.action)}function T(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||D(k(e.state))}function A(){D(k(_()))}var I=!1;function D(e){if(I)I=!1,N();else{O.confirmTransitionTo(e,"POP",d,(function(t){t?N({action:"POP",location:e}):function(e){var t=B.location,n=R.indexOf(t.key);-1===n&&(n=0);var r=R.indexOf(e.key);-1===r&&(r=0);var i=n-r;i&&(I=!0,M(i))}(e)}))}}var P=k(_()),R=[P.key];function j(e){return S+h(e)}function M(e){t.go(e)}var L=0;function z(e){1===(L+=e)&&1===e?(window.addEventListener(w,T),i&&window.addEventListener(x,A)):0===L&&(window.removeEventListener(w,T),i&&window.removeEventListener(x,A))}var F=!1;var B={length:t.length,action:"POP",location:P,createHref:j,push:function(e,r){var i="PUSH",o=m(e,r,C(),B.location);O.confirmTransitionTo(o,i,d,(function(e){if(e){var r=j(o),a=o.key,l=o.state;if(n)if(t.pushState({key:a,state:l},null,r),s)window.location.href=r;else{var c=R.indexOf(B.location.key),u=R.slice(0,c+1);u.push(o.key),R=u,N({action:i,location:o})}else window.location.href=r}}))},replace:function(e,r){var i="REPLACE",o=m(e,r,C(),B.location);O.confirmTransitionTo(o,i,d,(function(e){if(e){var r=j(o),a=o.key,l=o.state;if(n)if(t.replaceState({key:a,state:l},null,r),s)window.location.replace(r);else{var c=R.indexOf(B.location.key);-1!==c&&(R[c]=o.key),N({action:i,location:o})}else window.location.replace(r)}}))},go:M,goBack:function(){M(-1)},goForward:function(){M(1)},block:function(e){void 0===e&&(e=!1);var t=O.setPrompt(e);return F||(z(1),F=!0),function(){return F&&(F=!1,z(-1)),t()}},listen:function(e){var t=O.appendListener(e);return z(1),function(){z(-1),t()}}};return B}var S="hashchange",k={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+d(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:d,decodePath:u},slash:{encodePath:u,decodePath:u}};function C(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function O(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function N(e){window.location.replace(C(window.location.href)+"#"+e)}function T(e){void 0===e&&(e={}),y||(0,c.A)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),i=n.getUserConfirmation,o=void 0===i?b:i,a=n.hashType,s=void 0===a?"slash":a,l=e.basename?p(u(e.basename)):"",d=k[s],g=d.encodePath,w=d.decodePath;function x(){var e=w(O());return l&&(e=f(e,l)),m(e)}var _=v();function E(e){(0,r.A)(B,e),B.length=t.length,_.notifyListeners(B.location,B.action)}var T=!1,A=null;function I(){var e,t,n=O(),r=g(n);if(n!==r)N(r);else{var i=x(),a=B.location;if(!T&&(t=i,(e=a).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(A===h(i))return;A=null,function(e){if(T)T=!1,E();else{var t="POP";_.confirmTransitionTo(e,t,o,(function(n){n?E({action:t,location:e}):function(e){var t=B.location,n=j.lastIndexOf(h(t));-1===n&&(n=0);var r=j.lastIndexOf(h(e));-1===r&&(r=0);var i=n-r;i&&(T=!0,M(i))}(e)}))}}(i)}}var D=O(),P=g(D);D!==P&&N(P);var R=x(),j=[h(R)];function M(e){t.go(e)}var L=0;function z(e){1===(L+=e)&&1===e?window.addEventListener(S,I):0===L&&window.removeEventListener(S,I)}var F=!1;var B={length:t.length,action:"POP",location:R,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=C(window.location.href)),n+"#"+g(l+h(e))},push:function(e,t){var n="PUSH",r=m(e,void 0,void 0,B.location);_.confirmTransitionTo(r,n,o,(function(e){if(e){var t=h(r),i=g(l+t);if(O()!==i){A=t,function(e){window.location.hash=e}(i);var o=j.lastIndexOf(h(B.location)),a=j.slice(0,o+1);a.push(t),j=a,E({action:n,location:r})}else E()}}))},replace:function(e,t){var n="REPLACE",r=m(e,void 0,void 0,B.location);_.confirmTransitionTo(r,n,o,(function(e){if(e){var t=h(r),i=g(l+t);O()!==i&&(A=t,N(i));var o=j.indexOf(h(B.location));-1!==o&&(j[o]=t),E({action:n,location:r})}}))},go:M,goBack:function(){M(-1)},goForward:function(){M(1)},block:function(e){void 0===e&&(e=!1);var t=_.setPrompt(e);return F||(z(1),F=!0),function(){return F&&(F=!1,z(-1)),t()}},listen:function(e){var t=_.appendListener(e);return z(1),function(){z(-1),t()}}};return B}function A(e,t,n){return Math.min(Math.max(e,t),n)}function I(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,i=t.initialEntries,o=void 0===i?["/"]:i,a=t.initialIndex,s=void 0===a?0:a,l=t.keyLength,c=void 0===l?6:l,u=v();function d(e){(0,r.A)(w,e),w.length=w.entries.length,u.notifyListeners(w.location,w.action)}function f(){return Math.random().toString(36).substr(2,c)}var p=A(s,0,o.length-1),g=o.map((function(e){return m(e,void 0,"string"===typeof e?f():e.key||f())})),y=h;function b(e){var t=A(w.index+e,0,w.entries.length-1),r=w.entries[t];u.confirmTransitionTo(r,"POP",n,(function(e){e?d({action:"POP",location:r,index:t}):d()}))}var w={length:g.length,action:"POP",location:g[p],index:p,entries:g,createHref:y,push:function(e,t){var r="PUSH",i=m(e,t,f(),w.location);u.confirmTransitionTo(i,r,n,(function(e){if(e){var t=w.index+1,n=w.entries.slice(0);n.length>t?n.splice(t,n.length-t,i):n.push(i),d({action:r,location:i,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",i=m(e,t,f(),w.location);u.confirmTransitionTo(i,r,n,(function(e){e&&(w.entries[w.index]=i,d({action:r,location:i}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(e){var t=w.index+e;return t>=0&&t<w.entries.length},block:function(e){return void 0===e&&(e=!1),u.setPrompt(e)},listen:function(e){return u.appendListener(e)}};return w}},5290:(e,t,n)=>{"use strict";var r=n(51700),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(h){var i=p(n);i&&i!==h&&e(t,i,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),g=0;g<a.length;++g){var v=a[g];if(!o[v]&&(!r||!r[v])&&(!m||!m[v])&&(!s||!s[v])){var y=f(n,v);try{c(t,v,y)}catch(b){}}}}return t}},65144:(e,t)=>{"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case o:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case g:case m:case l:return e;default:return t}}case i:return t}}}function _(e){return x(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return _(e)||x(e)===u},t.isConcurrentMode=_,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===f},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===d||e===s||e===a||e===p||e===h||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=x},51700:(e,t,n)=>{"use strict";e.exports=n(65144)},83791:e=>{"use strict";e.exports=function(e,t,n,r,i,o,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,o,a,s],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},70911:e=>{"use strict";const t=new Set(["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED","HOSTNAME_MISMATCH"]);e.exports=e=>!t.has(e&&e.code)},4786:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},36484:(e,t,n)=>{var r=n(92470)(n(4133),"DataView");e.exports=r},7653:(e,t,n)=>{var r=n(22984),i=n(99806),o=n(68489),a=n(38533),s=n(99661);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},935:(e,t,n)=>{var r=n(93454),i=n(4200),o=n(30507),a=n(74343),s=n(28815);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},37815:(e,t,n)=>{var r=n(92470)(n(4133),"Map");e.exports=r},97269:(e,t,n)=>{var r=n(11320),i=n(22894),o=n(23097),a=n(78453),s=n(24381);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},70364:(e,t,n)=>{var r=n(92470)(n(4133),"Promise");e.exports=r},32361:(e,t,n)=>{var r=n(92470)(n(4133),"Set");e.exports=r},90035:(e,t,n)=>{var r=n(97269),i=n(67596),o=n(78475);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},81382:(e,t,n)=>{var r=n(935),i=n(4212),o=n(64898),a=n(42589),s=n(98545),l=n(26905);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,e.exports=c},537:(e,t,n)=>{var r=n(4133).Symbol;e.exports=r},7804:(e,t,n)=>{var r=n(4133).Uint8Array;e.exports=r},41527:(e,t,n)=>{var r=n(92470)(n(4133),"WeakMap");e.exports=r},34657:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},12249:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},61522:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}},82789:(e,t,n)=>{var r=n(11275);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},19417:e=>{e.exports=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}},20943:(e,t,n)=>{var r=n(30040),i=n(52964),o=n(19305),a=n(20368),s=n(83649),l=n(91159),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),u=!n&&i(e),d=!n&&!u&&a(e),f=!n&&!u&&!d&&l(e),p=n||u||d||f,h=p?r(e.length,String):[],m=h.length;for(var g in e)!t&&!c.call(e,g)||p&&("length"==g||d&&("offset"==g||"parent"==g)||f&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||h.push(g);return h}},54380:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},59368:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},89728:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},63786:e=>{e.exports=function(e){return e.split("")}},14837:(e,t,n)=>{var r=n(80472),i=n(61872);e.exports=function(e,t,n){(void 0!==n&&!i(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},71259:(e,t,n)=>{var r=n(80472),i=n(61872),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];o.call(e,t)&&i(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},6993:(e,t,n)=>{var r=n(61872);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},63909:(e,t,n)=>{var r=n(62871),i=n(96294);e.exports=function(e,t){return e&&r(t,i(t),e)}},46710:(e,t,n)=>{var r=n(62871),i=n(6737);e.exports=function(e,t){return e&&r(t,i(t),e)}},80472:(e,t,n)=>{var r=n(40691);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},35367:(e,t,n)=>{var r=n(81382),i=n(12249),o=n(71259),a=n(63909),s=n(46710),l=n(49538),c=n(11319),u=n(40279),d=n(91644),f=n(67530),p=n(35725),h=n(43261),m=n(613),g=n(55799),v=n(52497),y=n(19305),b=n(20368),w=n(50490),x=n(38469),_=n(87232),E=n(96294),S=n(6737),k="[object Arguments]",C="[object Function]",O="[object Object]",N={};N[k]=N["[object Array]"]=N["[object ArrayBuffer]"]=N["[object DataView]"]=N["[object Boolean]"]=N["[object Date]"]=N["[object Float32Array]"]=N["[object Float64Array]"]=N["[object Int8Array]"]=N["[object Int16Array]"]=N["[object Int32Array]"]=N["[object Map]"]=N["[object Number]"]=N[O]=N["[object RegExp]"]=N["[object Set]"]=N["[object String]"]=N["[object Symbol]"]=N["[object Uint8Array]"]=N["[object Uint8ClampedArray]"]=N["[object Uint16Array]"]=N["[object Uint32Array]"]=!0,N["[object Error]"]=N[C]=N["[object WeakMap]"]=!1,e.exports=function e(t,n,T,A,I,D){var P,R=1&n,j=2&n,M=4&n;if(T&&(P=I?T(t,A,I,D):T(t)),void 0!==P)return P;if(!x(t))return t;var L=y(t);if(L){if(P=m(t),!R)return c(t,P)}else{var z=h(t),F=z==C||"[object GeneratorFunction]"==z;if(b(t))return l(t,R);if(z==O||z==k||F&&!I){if(P=j||F?{}:v(t),!R)return j?d(t,s(P,t)):u(t,a(P,t))}else{if(!N[z])return I?t:{};P=g(t,z,R)}}D||(D=new r);var B=D.get(t);if(B)return B;D.set(t,P),_(t)?t.forEach((function(r){P.add(e(r,n,T,r,t,D))})):w(t)&&t.forEach((function(r,i){P.set(i,e(r,n,T,i,t,D))}));var U=L?void 0:(M?j?p:f:j?S:E)(t);return i(U||t,(function(r,i){U&&(r=t[i=r]),o(P,i,e(r,n,T,i,t,D))})),P}},50088:(e,t,n)=>{var r=n(38469),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},75125:(e,t,n)=>{var r=n(98137),i=n(94305)(r);e.exports=i},89875:e=>{e.exports=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}},84401:(e,t,n)=>{var r=n(31693)();e.exports=r},98137:(e,t,n)=>{var r=n(84401),i=n(96294);e.exports=function(e,t){return e&&r(e,t,i)}},43238:(e,t,n)=>{var r=n(68097),i=n(92061);e.exports=function(e,t){for(var n=0,o=(t=r(t,e)).length;null!=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},21551:(e,t,n)=>{var r=n(59368),i=n(19305);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},16320:(e,t,n)=>{var r=n(537),i=n(48955),o=n(85406),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},16133:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},11275:(e,t,n)=>{var r=n(89875),i=n(21519),o=n(68055);e.exports=function(e,t,n){return t===t?o(e,t,n):r(e,i,n)}},19750:(e,t,n)=>{var r=n(16320),i=n(59698);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},31926:(e,t,n)=>{var r=n(84100),i=n(59698);e.exports=function e(t,n,o,a,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!==t&&n!==n:r(t,n,o,a,e,s))}},84100:(e,t,n)=>{var r=n(81382),i=n(63679),o=n(39450),a=n(66217),s=n(43261),l=n(19305),c=n(20368),u=n(91159),d="[object Arguments]",f="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,g,v){var y=l(e),b=l(t),w=y?f:s(e),x=b?f:s(t),_=(w=w==d?p:w)==p,E=(x=x==d?p:x)==p,S=w==x;if(S&&c(e)){if(!c(t))return!1;y=!0,_=!1}if(S&&!_)return v||(v=new r),y||u(e)?i(e,t,n,m,g,v):o(e,t,w,n,m,g,v);if(!(1&n)){var k=_&&h.call(e,"__wrapped__"),C=E&&h.call(t,"__wrapped__");if(k||C){var O=k?e.value():e,N=C?t.value():t;return v||(v=new r),g(O,N,n,m,v)}}return!!S&&(v||(v=new r),a(e,t,n,m,g,v))}},72220:(e,t,n)=>{var r=n(43261),i=n(59698);e.exports=function(e){return i(e)&&"[object Map]"==r(e)}},8543:(e,t,n)=>{var r=n(81382),i=n(31926);e.exports=function(e,t,n,o){var a=n.length,s=a,l=!o;if(null==e)return!s;for(e=Object(e);a--;){var c=n[a];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<s;){var u=(c=n[a])[0],d=e[u],f=c[1];if(l&&c[2]){if(void 0===d&&!(u in e))return!1}else{var p=new r;if(o)var h=o(d,f,u,e,t,p);if(!(void 0===h?i(f,d,3,o,p):h))return!1}}return!0}},21519:e=>{e.exports=function(e){return e!==e}},84579:(e,t,n)=>{var r=n(36738),i=n(31016),o=n(38469),a=n(45865),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,f=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?f:s).test(a(e))}},68414:(e,t,n)=>{var r=n(43261),i=n(59698);e.exports=function(e){return i(e)&&"[object Set]"==r(e)}},54573:(e,t,n)=>{var r=n(16320),i=n(72078),o=n(59698),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[r(e)]}},28293:(e,t,n)=>{var r=n(85191),i=n(4178),o=n(9112),a=n(19305),s=n(35535);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):r(e):s(e)}},71824:(e,t,n)=>{var r=n(48303),i=n(54074),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},24447:(e,t,n)=>{var r=n(38469),i=n(48303),o=n(71325),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=i(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},85191:(e,t,n)=>{var r=n(8543),i=n(83216),o=n(89157);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},4178:(e,t,n)=>{var r=n(31926),i=n(87924),o=n(1167),a=n(46626),s=n(17900),l=n(89157),c=n(92061);e.exports=function(e,t){return a(e)&&s(t)?l(c(e),t):function(n){var a=i(n,e);return void 0===a&&a===t?o(n,e):r(t,a,3)}}},634:(e,t,n)=>{var r=n(81382),i=n(14837),o=n(84401),a=n(66944),s=n(38469),l=n(6737),c=n(76614);e.exports=function e(t,n,u,d,f){t!==n&&o(n,(function(o,l){if(f||(f=new r),s(o))a(t,n,l,u,e,d,f);else{var p=d?d(c(t,l),o,l+"",t,n,f):void 0;void 0===p&&(p=o),i(t,l,p)}}),l)}},66944:(e,t,n)=>{var r=n(14837),i=n(49538),o=n(99889),a=n(11319),s=n(52497),l=n(52964),c=n(19305),u=n(59653),d=n(20368),f=n(36738),p=n(38469),h=n(20011),m=n(91159),g=n(76614),v=n(26180);e.exports=function(e,t,n,y,b,w,x){var _=g(e,n),E=g(t,n),S=x.get(E);if(S)r(e,n,S);else{var k=w?w(_,E,n+"",e,t,x):void 0,C=void 0===k;if(C){var O=c(E),N=!O&&d(E),T=!O&&!N&&m(E);k=E,O||N||T?c(_)?k=_:u(_)?k=a(_):N?(C=!1,k=i(E,!0)):T?(C=!1,k=o(E,!0)):k=[]:h(E)||l(E)?(k=_,l(_)?k=v(_):p(_)&&!f(_)||(k=s(E))):C=!1}C&&(x.set(E,k),b(k,E,y,w,x),x.delete(E)),r(e,n,k)}}},73885:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},49535:(e,t,n)=>{var r=n(43238);e.exports=function(e){return function(t){return r(t,e)}}},44735:e=>{var t=Math.ceil,n=Math.max;e.exports=function(e,r,i,o){for(var a=-1,s=n(t((r-e)/(i||1)),0),l=Array(s);s--;)l[o?s:++a]=e,e+=i;return l}},62990:(e,t,n)=>{var r=n(9112),i=n(39069),o=n(72633);e.exports=function(e,t){return o(i(e,t,r),e+"")}},63546:(e,t,n)=>{var r=n(71259),i=n(68097),o=n(83649),a=n(38469),s=n(92061);e.exports=function(e,t,n,l){if(!a(e))return e;for(var c=-1,u=(t=i(t,e)).length,d=u-1,f=e;null!=f&&++c<u;){var p=s(t[c]),h=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(c!=d){var m=f[p];void 0===(h=l?l(m,p,f):void 0)&&(h=a(m)?m:o(t[c+1])?[]:{})}r(f,p,h),f=f[p]}return e}},47018:(e,t,n)=>{var r=n(80222),i=n(40691),o=n(9112),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=a},32112:e=>{e.exports=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}},30040:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},85532:(e,t,n)=>{var r=n(537),i=n(54380),o=n(19305),a=n(60242),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},15464:(e,t,n)=>{var r=n(73712),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},57741:e=>{e.exports=function(e){return function(t){return e(t)}}},62509:(e,t,n)=>{var r=n(90035),i=n(82789),o=n(19417),a=n(2859),s=n(43821),l=n(80303);e.exports=function(e,t,n){var c=-1,u=i,d=e.length,f=!0,p=[],h=p;if(n)f=!1,u=o;else if(d>=200){var m=t?null:s(e);if(m)return l(m);f=!1,u=a,h=new r}else h=t?[]:p;e:for(;++c<d;){var g=e[c],v=t?t(g):g;if(g=n||0!==g?g:0,f&&v===v){for(var y=h.length;y--;)if(h[y]===v)continue e;t&&h.push(v),p.push(g)}else u(h,v,n)||(h!==p&&h.push(v),p.push(g))}return p}},2859:e=>{e.exports=function(e,t){return e.has(t)}},37530:(e,t,n)=>{var r=n(9112);e.exports=function(e){return"function"==typeof e?e:r}},68097:(e,t,n)=>{var r=n(19305),i=n(46626),o=n(35554),a=n(68814);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}},19418:(e,t,n)=>{var r=n(32112);e.exports=function(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:r(e,t,n)}},74413:(e,t,n)=>{var r=n(7804);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},49538:(e,t,n)=>{e=n.nmd(e);var r=n(4133),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},54353:(e,t,n)=>{var r=n(74413);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},72665:e=>{var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},33120:(e,t,n)=>{var r=n(537),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},99889:(e,t,n)=>{var r=n(74413);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},11319:e=>{e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},62871:(e,t,n)=>{var r=n(71259),i=n(80472);e.exports=function(e,t,n,o){var a=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var c=t[s],u=o?o(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),a?i(n,c,u):r(n,c,u)}return n}},40279:(e,t,n)=>{var r=n(62871),i=n(54736);e.exports=function(e,t){return r(e,i(e),t)}},91644:(e,t,n)=>{var r=n(62871),i=n(12927);e.exports=function(e,t){return r(e,i(e),t)}},31473:(e,t,n)=>{var r=n(4133)["__core-js_shared__"];e.exports=r},35647:(e,t,n)=>{var r=n(62990),i=n(90552);e.exports=function(e){return r((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++r<o;){var l=n[r];l&&e(t,l,r,a)}return t}))}},94305:(e,t,n)=>{var r=n(88118);e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!r(n))return e(n,i);for(var o=n.length,a=t?o:-1,s=Object(n);(t?a--:++a<o)&&!1!==i(s[a],a,s););return n}}},31693:e=>{e.exports=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}},78195:(e,t,n)=>{var r=n(19418),i=n(9434),o=n(12880),a=n(68814);e.exports=function(e){return function(t){t=a(t);var n=i(t)?o(t):void 0,s=n?n[0]:t.charAt(0),l=n?r(n,1).join(""):t.slice(1);return s[e]()+l}}},73148:(e,t,n)=>{var r=n(44735),i=n(90552),o=n(29776);e.exports=function(e){return function(t,n,a){return a&&"number"!=typeof a&&i(t,n,a)&&(n=a=void 0),t=o(t),void 0===n?(n=t,t=0):n=o(n),a=void 0===a?t<n?1:-1:o(a),r(t,n,a,e)}}},64205:(e,t,n)=>{var r=n(4133),i=n(33609),o=n(150),a=n(68814),s=r.isFinite,l=Math.min;e.exports=function(e){var t=Math[e];return function(e,n){if(e=o(e),(n=null==n?0:l(i(n),292))&&s(e)){var r=(a(e)+"e").split("e"),c=t(r[0]+"e"+(+r[1]+n));return+((r=(a(c)+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}},43821:(e,t,n)=>{var r=n(32361),i=n(94454),o=n(80303),a=r&&1/o(new r([,-0]))[1]==1/0?function(e){return new r(e)}:i;e.exports=a},40691:(e,t,n)=>{var r=n(92470),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=i},63679:(e,t,n)=>{var r=n(90035),i=n(89728),o=n(2859);e.exports=function(e,t,n,a,s,l){var c=1&n,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var f=l.get(e),p=l.get(t);if(f&&p)return f==t&&p==e;var h=-1,m=!0,g=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++h<u;){var v=e[h],y=t[h];if(a)var b=c?a(y,v,h,t,e,l):a(v,y,h,e,t,l);if(void 0!==b){if(b)continue;m=!1;break}if(g){if(!i(t,(function(e,t){if(!o(g,t)&&(v===e||s(v,e,n,a,l)))return g.push(t)}))){m=!1;break}}else if(v!==y&&!s(v,y,n,a,l)){m=!1;break}}return l.delete(e),l.delete(t),m}},39450:(e,t,n)=>{var r=n(537),i=n(7804),o=n(61872),a=n(63679),s=n(96741),l=n(80303),c=r?r.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,d,f){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=s;case"[object Set]":var h=1&r;if(p||(p=l),e.size!=t.size&&!h)return!1;var m=f.get(e);if(m)return m==t;r|=2,f.set(e,t);var g=a(p(e),p(t),r,c,d,f);return f.delete(e),g;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},66217:(e,t,n)=>{var r=n(67530),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,a,s){var l=1&n,c=r(e),u=c.length;if(u!=r(t).length&&!l)return!1;for(var d=u;d--;){var f=c[d];if(!(l?f in t:i.call(t,f)))return!1}var p=s.get(e),h=s.get(t);if(p&&h)return p==t&&h==e;var m=!0;s.set(e,t),s.set(t,e);for(var g=l;++d<u;){var v=e[f=c[d]],y=t[f];if(o)var b=l?o(y,v,f,t,e,s):o(v,y,f,e,t,s);if(!(void 0===b?v===y||a(v,y,n,o,s):b)){m=!1;break}g||(g="constructor"==f)}if(m&&!g){var w=e.constructor,x=t.constructor;w==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(m=!1)}return s.delete(e),s.delete(t),m}},54528:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},67530:(e,t,n)=>{var r=n(21551),i=n(54736),o=n(96294);e.exports=function(e){return r(e,o,i)}},35725:(e,t,n)=>{var r=n(21551),i=n(12927),o=n(6737);e.exports=function(e){return r(e,o,i)}},85651:(e,t,n)=>{var r=n(19058);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},83216:(e,t,n)=>{var r=n(17900),i=n(96294);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var o=t[n],a=e[o];t[n]=[o,a,r(a)]}return t}},92470:(e,t,n)=>{var r=n(84579),i=n(98112);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},22807:(e,t,n)=>{var r=n(64503)(Object.getPrototypeOf,Object);e.exports=r},48955:(e,t,n)=>{var r=n(537),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(l){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},54736:(e,t,n)=>{var r=n(61522),i=n(82121),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return o.call(e,t)})))}:i;e.exports=s},12927:(e,t,n)=>{var r=n(59368),i=n(22807),o=n(54736),a=n(82121),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,o(e)),e=i(e);return t}:a;e.exports=s},43261:(e,t,n)=>{var r=n(36484),i=n(37815),o=n(70364),a=n(32361),s=n(41527),l=n(16320),c=n(45865),u="[object Map]",d="[object Promise]",f="[object Set]",p="[object WeakMap]",h="[object DataView]",m=c(r),g=c(i),v=c(o),y=c(a),b=c(s),w=l;(r&&w(new r(new ArrayBuffer(1)))!=h||i&&w(new i)!=u||o&&w(o.resolve())!=d||a&&w(new a)!=f||s&&w(new s)!=p)&&(w=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case m:return h;case g:return u;case v:return d;case y:return f;case b:return p}return t}),e.exports=w},98112:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},78326:(e,t,n)=>{var r=n(68097),i=n(52964),o=n(19305),a=n(83649),s=n(72078),l=n(92061);e.exports=function(e,t,n){for(var c=-1,u=(t=r(t,e)).length,d=!1;++c<u;){var f=l(t[c]);if(!(d=null!=e&&n(e,f)))break;e=e[f]}return d||++c!=u?d:!!(u=null==e?0:e.length)&&s(u)&&a(f,u)&&(o(e)||i(e))}},9434:e=>{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},22984:(e,t,n)=>{var r=n(57578);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},99806:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},68489:(e,t,n)=>{var r=n(57578),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},38533:(e,t,n)=>{var r=n(57578),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},99661:(e,t,n)=>{var r=n(57578);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},613:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},55799:(e,t,n)=>{var r=n(74413),i=n(54353),o=n(72665),a=n(33120),s=n(99889);e.exports=function(e,t,n){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return i(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,n);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return o(e);case"[object Symbol]":return a(e)}}},52497:(e,t,n)=>{var r=n(50088),i=n(22807),o=n(48303);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:r(i(e))}},83649:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},90552:(e,t,n)=>{var r=n(61872),i=n(88118),o=n(83649),a=n(38469);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?i(n)&&o(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},46626:(e,t,n)=>{var r=n(19305),i=n(60242),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||(a.test(e)||!o.test(e)||null!=t&&e in Object(t))}},19058:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},31016:(e,t,n)=>{var r=n(31473),i=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!i&&i in e}},48303:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},17900:(e,t,n)=>{var r=n(38469);e.exports=function(e){return e===e&&!r(e)}},93454:e=>{e.exports=function(){this.__data__=[],this.size=0}},4200:(e,t,n)=>{var r=n(6993),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},30507:(e,t,n)=>{var r=n(6993);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},74343:(e,t,n)=>{var r=n(6993);e.exports=function(e){return r(this.__data__,e)>-1}},28815:(e,t,n)=>{var r=n(6993);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},11320:(e,t,n)=>{var r=n(7653),i=n(935),o=n(37815);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},22894:(e,t,n)=>{var r=n(85651);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},23097:(e,t,n)=>{var r=n(85651);e.exports=function(e){return r(this,e).get(e)}},78453:(e,t,n)=>{var r=n(85651);e.exports=function(e){return r(this,e).has(e)}},24381:(e,t,n)=>{var r=n(85651);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},96741:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},89157:e=>{e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},18408:(e,t,n)=>{var r=n(45296);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},57578:(e,t,n)=>{var r=n(92470)(Object,"create");e.exports=r},54074:(e,t,n)=>{var r=n(64503)(Object.keys,Object);e.exports=r},71325:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},73073:(e,t,n)=>{e=n.nmd(e);var r=n(54528),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(t){}}();e.exports=s},85406:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},64503:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},39069:(e,t,n)=>{var r=n(34657),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),l=Array(s);++a<s;)l[a]=o[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=o[a];return c[t]=n(l),r(e,this,c)}}},4133:(e,t,n)=>{var r=n(54528),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},76614:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}},67596:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},78475:e=>{e.exports=function(e){return this.__data__.has(e)}},80303:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},72633:(e,t,n)=>{var r=n(47018),i=n(29355)(r);e.exports=i},29355:e=>{var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var i=t(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},4212:(e,t,n)=>{var r=n(935);e.exports=function(){this.__data__=new r,this.size=0}},64898:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},42589:e=>{e.exports=function(e){return this.__data__.get(e)}},98545:e=>{e.exports=function(e){return this.__data__.has(e)}},26905:(e,t,n)=>{var r=n(935),i=n(37815),o=n(97269);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},68055:e=>{e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}},12880:(e,t,n)=>{var r=n(63786),i=n(9434),o=n(20878);e.exports=function(e){return i(e)?o(e):r(e)}},35554:(e,t,n)=>{var r=n(18408),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)})),t}));e.exports=a},92061:(e,t,n)=>{var r=n(60242);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},45865:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(n){}try{return e+""}catch(n){}}return""}},73712:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},20878:e=>{var t="\\ud800-\\udfff",n="["+t+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",o="[^"+t+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+i+")"+"?",c="[\\ufe0e\\ufe0f]?",u=c+l+("(?:\\u200d(?:"+[o,a,s].join("|")+")"+c+l+")*"),d="(?:"+[o+r+"?",r,a,s,n].join("|")+")",f=RegExp(i+"(?="+i+")|"+d+u,"g");e.exports=function(e){return e.match(f)||[]}},98816:(e,t,n)=>{var r=n(68814),i=n(58120);e.exports=function(e){return i(r(e).toLowerCase())}},58671:(e,t,n)=>{var r=n(35367);e.exports=function(e){return r(e,5)}},80222:e=>{e.exports=function(e){return function(){return e}}},43781:(e,t,n)=>{var r=n(38469),i=n(65236),o=n(150),a=Math.max,s=Math.min;e.exports=function(e,t,n){var l,c,u,d,f,p,h=0,m=!1,g=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=l,r=c;return l=c=void 0,h=t,d=e.apply(r,n)}function b(e){var n=e-p;return void 0===p||n>=t||n<0||g&&e-h>=u}function w(){var e=i();if(b(e))return x(e);f=setTimeout(w,function(e){var n=t-(e-p);return g?s(n,u-(e-h)):n}(e))}function x(e){return f=void 0,v&&l?y(e):(l=c=void 0,d)}function _(){var e=i(),n=b(e);if(l=arguments,c=this,p=e,n){if(void 0===f)return function(e){return h=e,f=setTimeout(w,t),m?y(e):d}(p);if(g)return clearTimeout(f),f=setTimeout(w,t),y(p)}return void 0===f&&(f=setTimeout(w,t)),d}return t=o(t)||0,r(n)&&(m=!!n.leading,u=(g="maxWait"in n)?a(o(n.maxWait)||0,t):u,v="trailing"in n?!!n.trailing:v),_.cancel=function(){void 0!==f&&clearTimeout(f),h=0,l=p=c=f=void 0},_.flush=function(){return void 0===f?d:x(i())},_}},22735:(e,t,n)=>{e.exports=n(54386)},61872:e=>{e.exports=function(e,t){return e===t||e!==e&&t!==t}},54386:(e,t,n)=>{var r=n(12249),i=n(75125),o=n(37530),a=n(19305);e.exports=function(e,t){return(a(e)?r:i)(e,o(t))}},87924:(e,t,n)=>{var r=n(43238);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},1167:(e,t,n)=>{var r=n(16133),i=n(78326);e.exports=function(e,t){return null!=e&&i(e,t,r)}},9112:e=>{e.exports=function(e){return e}},52964:(e,t,n)=>{var r=n(19750),i=n(59698),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},19305:e=>{var t=Array.isArray;e.exports=t},88118:(e,t,n)=>{var r=n(36738),i=n(72078);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},59653:(e,t,n)=>{var r=n(88118),i=n(59698);e.exports=function(e){return i(e)&&r(e)}},20368:(e,t,n)=>{e=n.nmd(e);var r=n(4133),i=n(84711),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||i;e.exports=l},905:(e,t,n)=>{var r=n(71824),i=n(43261),o=n(52964),a=n(19305),s=n(88118),l=n(20368),c=n(48303),u=n(91159),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||u(e)||o(e)))return!e.length;var t=i(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(c(e))return!r(e).length;for(var n in e)if(d.call(e,n))return!1;return!0}},62060:(e,t,n)=>{var r=n(31926);e.exports=function(e,t){return r(e,t)}},36738:(e,t,n)=>{var r=n(16320),i=n(38469);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},72078:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},50490:(e,t,n)=>{var r=n(72220),i=n(57741),o=n(73073),a=o&&o.isMap,s=a?i(a):r;e.exports=s},38469:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},59698:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},20011:(e,t,n)=>{var r=n(16320),i=n(22807),o=n(59698),a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==u}},87232:(e,t,n)=>{var r=n(68414),i=n(57741),o=n(73073),a=o&&o.isSet,s=a?i(a):r;e.exports=s},60242:(e,t,n)=>{var r=n(16320),i=n(59698);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},91159:(e,t,n)=>{var r=n(54573),i=n(57741),o=n(73073),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},96294:(e,t,n)=>{var r=n(20943),i=n(71824),o=n(88118);e.exports=function(e){return o(e)?r(e):i(e)}},6737:(e,t,n)=>{var r=n(20943),i=n(24447),o=n(88118);e.exports=function(e){return o(e)?r(e,!0):i(e)}},45296:(e,t,n)=>{var r=n(97269);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},17148:(e,t,n)=>{var r=n(634),i=n(35647)((function(e,t,n){r(e,t,n)}));e.exports=i},94454:e=>{e.exports=function(){}},65236:(e,t,n)=>{var r=n(4133);e.exports=function(){return r.Date.now()}},35535:(e,t,n)=>{var r=n(73885),i=n(49535),o=n(46626),a=n(92061);e.exports=function(e){return o(e)?r(a(e)):i(e)}},36613:(e,t,n)=>{var r=n(73148)();e.exports=r},6104:(e,t,n)=>{var r=n(64205)("round");e.exports=r},38896:(e,t,n)=>{var r=n(63546);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},82121:e=>{e.exports=function(){return[]}},84711:e=>{e.exports=function(){return!1}},61758:(e,t,n)=>{var r=n(43781),i=n(38469);e.exports=function(e,t,n){var o=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return i(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:o,maxWait:t,trailing:a})}},29776:(e,t,n)=>{var r=n(150),i=1/0;e.exports=function(e){return e?(e=r(e))===i||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}},33609:(e,t,n)=>{var r=n(29776);e.exports=function(e){var t=r(e),n=t%1;return t===t?n?t-n:t:0}},150:(e,t,n)=>{var r=n(15464),i=n(38469),o=n(60242),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}},26180:(e,t,n)=>{var r=n(62871),i=n(6737);e.exports=function(e){return r(e,i(e))}},68814:(e,t,n)=>{var r=n(85532);e.exports=function(e){return null==e?"":r(e)}},11078:(e,t,n)=>{var r=n(28293),i=n(62509);e.exports=function(e,t){return e&&e.length?i(e,r(t,2)):[]}},58120:(e,t,n)=>{var r=n(78195)("toUpperCase");e.exports=r},51682:e=>{"use strict";e.exports=Math.abs},45904:e=>{"use strict";e.exports=Math.floor},58899:e=>{"use strict";e.exports=Number.isNaN||function(e){return e!==e}},73620:e=>{"use strict";e.exports=Math.max},40538:e=>{"use strict";e.exports=Math.min},7328:e=>{"use strict";e.exports=Math.pow},54:e=>{"use strict";e.exports=Math.round},75869:(e,t,n)=>{"use strict";var r=n(58899);e.exports=function(e){return r(e)||0===e?e:e<0?-1:1}},77995:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=Number.isNaN||function(e){return"number"===typeof e&&e!==e};function i(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(i=e[n],o=t[n],!(i===o||r(i)&&r(o)))return!1;var i,o;return!0}const o=function(e,t){var n;void 0===t&&(t=i);var r,o=[],a=!1;return function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return a&&n===this&&t(i,o)||(r=e.apply(this,i),a=!0,n=this,o=i),r}}},97650:function(e,t,n){var r,i,o;i=[n(7139)],void 0===(o="function"===typeof(r=function(e){e.register("locale","bg",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"\u0445\u0438\u043b",million:"\u043c\u043b\u043d",billion:"\u043c\u043b\u0440\u0434",trillion:"\u0442\u0440\u043b\u043d"},ordinal:function(e){return""},currency:{symbol:"\u043b\u0432"}}),e.register("locale","chs",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"\u5343",million:"\u767e\u4e07",billion:"\u5341\u4ebf",trillion:"\u5146"},ordinal:function(e){return"."},currency:{symbol:"\xa5"}}),e.register("locale","cs",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tis.",million:"mil.",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"K\u010d"}}),e.register("locale","da-dk",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mio",billion:"mia",trillion:"b"},ordinal:function(e){return"."},currency:{symbol:"DKK"}}),e.register("locale","de-ch",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return"."},currency:{symbol:"CHF"}}),e.register("locale","de",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return"."},currency:{symbol:"\u20ac"}}),e.register("locale","en-au",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),e.register("locale","en-gb",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"\xa3"}}),e.register("locale","en-za",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"R"}}),e.register("locale","es-es",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===t||3===t?"er":2===t?"do":7===t||0===t?"mo":8===t?"vo":9===t?"no":"to"},currency:{symbol:"\u20ac"}}),e.register("locale","es",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===t||3===t?"er":2===t?"do":7===t||0===t?"mo":8===t?"vo":9===t?"no":"to"},currency:{symbol:"$"}}),e.register("locale","et",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:" tuh",million:" mln",billion:" mld",trillion:" trl"},ordinal:function(e){return"."},currency:{symbol:"\u20ac"}}),e.register("locale","fi",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"M",billion:"G",trillion:"T"},ordinal:function(e){return"."},currency:{symbol:"\u20ac"}}),e.register("locale","fr-ca",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"M",billion:"G",trillion:"T"},ordinal:function(e){return 1===e?"er":"e"},currency:{symbol:"$"}}),e.register("locale","fr-ch",{delimiters:{thousands:"'",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return 1===e?"er":"e"},currency:{symbol:"CHF"}}),e.register("locale","fr",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return 1===e?"er":"e"},currency:{symbol:"\u20ac"}}),e.register("locale","hu",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"E",million:"M",billion:"Mrd",trillion:"T"},ordinal:function(e){return"."},currency:{symbol:" Ft"}}),e.register("locale","it",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mila",million:"mil",billion:"b",trillion:"t"},ordinal:function(e){return"\xba"},currency:{symbol:"\u20ac"}}),e.register("locale","ja",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"\u5343",million:"\u767e\u4e07",billion:"\u5341\u5104",trillion:"\u5146"},ordinal:function(e){return"."},currency:{symbol:"\xa5"}}),e.register("locale","lv",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:" t\u016bkst.",million:" milj.",billion:" mljrd.",trillion:" trilj."},ordinal:function(e){return"."},currency:{symbol:"\u20ac"}}),e.register("locale","nl-be",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:" mln",billion:" mld",trillion:" bln"},ordinal:function(e){var t=e%100;return 0!==e&&t<=1||8===t||t>=20?"ste":"de"},currency:{symbol:"\u20ac "}}),e.register("locale","nl-nl",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mln",billion:"mrd",trillion:"bln"},ordinal:function(e){var t=e%100;return 0!==e&&t<=1||8===t||t>=20?"ste":"de"},currency:{symbol:"\u20ac "}}),e.register("locale","no",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return"."},currency:{symbol:"kr"}}),e.register("locale","pl",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tys.",million:"mln",billion:"mld",trillion:"bln"},ordinal:function(e){return"."},currency:{symbol:"PLN"}}),e.register("locale","pt-br",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mil",million:"milh\xf5es",billion:"b",trillion:"t"},ordinal:function(e){return"\xba"},currency:{symbol:"R$"}}),e.register("locale","pt-pt",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return"\xba"},currency:{symbol:"\u20ac"}}),e.register("locale","ru-ua",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"\u0442\u044b\u0441.",million:"\u043c\u043b\u043d",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"\u20b4"}}),e.register("locale","ru",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"\u0442\u044b\u0441.",million:"\u043c\u043b\u043d.",billion:"\u043c\u043b\u0440\u0434.",trillion:"\u0442\u0440\u043b\u043d."},ordinal:function(){return"."},currency:{symbol:"\u0440\u0443\u0431."}}),e.register("locale","sk",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tis.",million:"mil.",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"\u20ac"}}),e.register("locale","sl",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mio",billion:"mrd",trillion:"trilijon"},ordinal:function(){return"."},currency:{symbol:"\u20ac"}}),e.register("locale","th",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"\u0e1e\u0e31\u0e19",million:"\u0e25\u0e49\u0e32\u0e19",billion:"\u0e1e\u0e31\u0e19\u0e25\u0e49\u0e32\u0e19",trillion:"\u0e25\u0e49\u0e32\u0e19\u0e25\u0e49\u0e32\u0e19"},ordinal:function(e){return"."},currency:{symbol:"\u0e3f"}}),function(){var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};e.register("locale","tr",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"bin",million:"milyon",billion:"milyar",trillion:"trilyon"},ordinal:function(e){if(0===e)return"'\u0131nc\u0131";var n=e%10,r=e%100-n,i=e>=100?100:null;return t[n]||t[r]||t[i]},currency:{symbol:"\u20ba"}})}(),e.register("locale","uk-ua",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"\u0442\u0438\u0441.",million:"\u043c\u043b\u043d",billion:"\u043c\u043b\u0440\u0434",trillion:"\u0431\u043b\u043d"},ordinal:function(){return""},currency:{symbol:"\u20b4"}}),e.register("locale","vi",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:" ngh\xecn",million:" tri\u1ec7u",billion:" t\u1ef7",trillion:" ngh\xecn t\u1ef7"},ordinal:function(){return"."},currency:{symbol:"\u20ab"}})})?r.apply(t,i):r)||(e.exports=o)},7139:function(e,t,n){var r,i;r=function(){var e,t,n="2.0.6",r={},i={},o={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},a={currentLocale:o.currentLocale,zeroFormat:o.zeroFormat,nullFormat:o.nullFormat,defaultFormat:o.defaultFormat,scalePercentBy100:o.scalePercentBy100};function s(e,t){this._input=e,this._value=t}return(e=function(n){var i,o,l,c;if(e.isNumeral(n))i=n.value();else if(0===n||"undefined"===typeof n)i=0;else if(null===n||t.isNaN(n))i=null;else if("string"===typeof n)if(a.zeroFormat&&n===a.zeroFormat)i=0;else if(a.nullFormat&&n===a.nullFormat||!n.replace(/[^0-9]+/g,"").length)i=null;else{for(o in r)if((c="function"===typeof r[o].regexps.unformat?r[o].regexps.unformat():r[o].regexps.unformat)&&n.match(c)){l=r[o].unformat;break}i=(l=l||e._.stringToNumber)(n)}else i=Number(n)||null;return new s(n,i)}).version=n,e.isNumeral=function(e){return e instanceof s},e._=t={numberToFormat:function(t,n,r){var o,a,s,l,c,u,d,f=i[e.options.currentLocale],p=!1,h=!1,m=0,g="",v=1e12,y=1e9,b=1e6,w=1e3,x="",_=!1;if(t=t||0,a=Math.abs(t),e._.includes(n,"(")?(p=!0,n=n.replace(/[\(|\)]/g,"")):(e._.includes(n,"+")||e._.includes(n,"-"))&&(c=e._.includes(n,"+")?n.indexOf("+"):t<0?n.indexOf("-"):-1,n=n.replace(/[\+|\-]/g,"")),e._.includes(n,"a")&&(o=!!(o=n.match(/a(k|m|b|t)?/))&&o[1],e._.includes(n," a")&&(g=" "),n=n.replace(new RegExp(g+"a[kmbt]?"),""),a>=v&&!o||"t"===o?(g+=f.abbreviations.trillion,t/=v):a<v&&a>=y&&!o||"b"===o?(g+=f.abbreviations.billion,t/=y):a<y&&a>=b&&!o||"m"===o?(g+=f.abbreviations.million,t/=b):(a<b&&a>=w&&!o||"k"===o)&&(g+=f.abbreviations.thousand,t/=w)),e._.includes(n,"[.]")&&(h=!0,n=n.replace("[.]",".")),s=t.toString().split(".")[0],l=n.split(".")[1],u=n.indexOf(","),m=(n.split(".")[0].split(",")[0].match(/0/g)||[]).length,l?(e._.includes(l,"[")?(l=(l=l.replace("]","")).split("["),x=e._.toFixed(t,l[0].length+l[1].length,r,l[1].length)):x=e._.toFixed(t,l.length,r),s=x.split(".")[0],x=e._.includes(x,".")?f.delimiters.decimal+x.split(".")[1]:"",h&&0===Number(x.slice(1))&&(x="")):s=e._.toFixed(t,0,r),g&&!o&&Number(s)>=1e3&&g!==f.abbreviations.trillion)switch(s=String(Number(s)/1e3),g){case f.abbreviations.thousand:g=f.abbreviations.million;break;case f.abbreviations.million:g=f.abbreviations.billion;break;case f.abbreviations.billion:g=f.abbreviations.trillion}if(e._.includes(s,"-")&&(s=s.slice(1),_=!0),s.length<m)for(var E=m-s.length;E>0;E--)s="0"+s;return u>-1&&(s=s.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+f.delimiters.thousands)),0===n.indexOf(".")&&(s=""),d=s+x+(g||""),p?d=(p&&_?"(":"")+d+(p&&_?")":""):c>=0?d=0===c?(_?"-":"+")+d:d+(_?"-":"+"):_&&(d="-"+d),d},stringToNumber:function(e){var t,n,r,o=i[a.currentLocale],s=e,l={thousand:3,million:6,billion:9,trillion:12};if(a.zeroFormat&&e===a.zeroFormat)n=0;else if(a.nullFormat&&e===a.nullFormat||!e.replace(/[^0-9]+/g,"").length)n=null;else{for(t in n=1,"."!==o.delimiters.decimal&&(e=e.replace(/\./g,"").replace(o.delimiters.decimal,".")),l)if(r=new RegExp("[^a-zA-Z]"+o.abbreviations[t]+"(?:\\)|(\\"+o.currency.symbol+")?(?:\\))?)?$"),s.match(r)){n*=Math.pow(10,l[t]);break}n*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,""),n*=Number(e)}return n},isNaN:function(e){return"number"===typeof e&&isNaN(e)},includes:function(e,t){return-1!==e.indexOf(t)},insert:function(e,t,n){return e.slice(0,n)+t+e.slice(n)},reduce:function(e,t){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!==typeof t)throw new TypeError(t+" is not a function");var n,r=Object(e),i=r.length>>>0,o=0;if(3===arguments.length)n=arguments[2];else{for(;o<i&&!(o in r);)o++;if(o>=i)throw new TypeError("Reduce of empty array with no initial value");n=r[o++]}for(;o<i;o++)o in r&&(n=t(n,r[o],o,r));return n},multiplier:function(e){var t=e.toString().split(".");return t.length<2?1:Math.pow(10,t[1].length)},correctionFactor:function(){return Array.prototype.slice.call(arguments).reduce((function(e,n){var r=t.multiplier(n);return e>r?e:r}),1)},toFixed:function(e,t,n,r){var i,o,a,s,l=e.toString().split("."),c=t-(r||0);return i=2===l.length?Math.min(Math.max(l[1].length,c),t):c,a=Math.pow(10,i),s=(n(e+"e+"+i)/a).toFixed(i),r>t-i&&(o=new RegExp("\\.?0{1,"+(r-(t-i))+"}$"),s=s.replace(o,"")),s}},e.options=a,e.formats=r,e.locales=i,e.locale=function(e){return e&&(a.currentLocale=e.toLowerCase()),a.currentLocale},e.localeData=function(e){if(!e)return i[a.currentLocale];if(e=e.toLowerCase(),!i[e])throw new Error("Unknown locale : "+e);return i[e]},e.reset=function(){for(var e in o)a[e]=o[e]},e.zeroFormat=function(e){a.zeroFormat="string"===typeof e?e:null},e.nullFormat=function(e){a.nullFormat="string"===typeof e?e:null},e.defaultFormat=function(e){a.defaultFormat="string"===typeof e?e:"0.0"},e.register=function(e,t,n){if(t=t.toLowerCase(),this[e+"s"][t])throw new TypeError(t+" "+e+" already registered.");return this[e+"s"][t]=n,n},e.validate=function(t,n){var r,i,o,a,s,l,c,u;if("string"!==typeof t&&(t+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",t)),(t=t.trim()).match(/^\d+$/))return!0;if(""===t)return!1;try{c=e.localeData(n)}catch(d){c=e.localeData(e.locale())}return o=c.currency.symbol,s=c.abbreviations,r=c.delimiters.decimal,i="."===c.delimiters.thousands?"\\.":c.delimiters.thousands,(null===(u=t.match(/^[^\d]+/))||(t=t.substr(1),u[0]===o))&&(null===(u=t.match(/[^\d]+$/))||(t=t.slice(0,-1),u[0]===s.thousand||u[0]===s.million||u[0]===s.billion||u[0]===s.trillion))&&(l=new RegExp(i+"{2}"),!t.match(/[^\d.,]/g)&&!((a=t.split(r)).length>2)&&(a.length<2?!!a[0].match(/^\d+.*\d$/)&&!a[0].match(l):1===a[0].length?!!a[0].match(/^\d+$/)&&!a[0].match(l)&&!!a[1].match(/^\d+$/):!!a[0].match(/^\d+.*\d$/)&&!a[0].match(l)&&!!a[1].match(/^\d+$/)))},e.fn=s.prototype={clone:function(){return e(this)},format:function(t,n){var i,o,s,l=this._value,c=t||a.defaultFormat;if(n=n||Math.round,0===l&&null!==a.zeroFormat)o=a.zeroFormat;else if(null===l&&null!==a.nullFormat)o=a.nullFormat;else{for(i in r)if(c.match(r[i].regexps.format)){s=r[i].format;break}o=(s=s||e._.numberToFormat)(l,c,n)}return o},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){var n=t.correctionFactor.call(null,this._value,e);function r(e,t,r,i){return e+Math.round(n*t)}return this._value=t.reduce([this._value,e],r,0)/n,this},subtract:function(e){var n=t.correctionFactor.call(null,this._value,e);function r(e,t,r,i){return e-Math.round(n*t)}return this._value=t.reduce([e],r,Math.round(this._value*n))/n,this},multiply:function(e){function n(e,n,r,i){var o=t.correctionFactor(e,n);return Math.round(e*o)*Math.round(n*o)/Math.round(o*o)}return this._value=t.reduce([this._value,e],n,1),this},divide:function(e){function n(e,n,r,i){var o=t.correctionFactor(e,n);return Math.round(e*o)/Math.round(n*o)}return this._value=t.reduce([this._value,e],n),this},difference:function(t){return Math.abs(e(this._value).subtract(t).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(t,n,r){var i,o=e._.includes(n," BPS")?" ":"";return t*=1e4,n=n.replace(/\s?BPS/,""),i=e._.numberToFormat(t,n,r),e._.includes(i,")")?((i=i.split("")).splice(-1,0,o+"BPS"),i=i.join("")):i=i+o+"BPS",i},unformat:function(t){return+(1e-4*e._.stringToNumber(t)).toFixed(15)}}),function(){var t={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},n={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},r=t.suffixes.concat(n.suffixes.filter((function(e){return t.suffixes.indexOf(e)<0}))).join("|");r="("+r.replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(r)},format:function(r,i,o){var a,s,l,c=e._.includes(i,"ib")?n:t,u=e._.includes(i," b")||e._.includes(i," ib")?" ":"";for(i=i.replace(/\s?i?b/,""),a=0;a<=c.suffixes.length;a++)if(s=Math.pow(c.base,a),l=Math.pow(c.base,a+1),null===r||0===r||r>=s&&r<l){u+=c.suffixes[a],s>0&&(r/=s);break}return e._.numberToFormat(r,i,o)+u},unformat:function(r){var i,o,a=e._.stringToNumber(r);if(a){for(i=t.suffixes.length-1;i>=0;i--){if(e._.includes(r,t.suffixes[i])){o=Math.pow(t.base,i);break}if(e._.includes(r,n.suffixes[i])){o=Math.pow(n.base,i);break}}a*=o||1}return a}})}(),e.register("format","currency",{regexps:{format:/(\$)/},format:function(t,n,r){var i,o,a=e.locales[e.options.currentLocale],s={before:n.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:n.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(n=n.replace(/\s?\$\s?/,""),i=e._.numberToFormat(t,n,r),t>=0?(s.before=s.before.replace(/[\-\(]/,""),s.after=s.after.replace(/[\-\)]/,"")):t<0&&!e._.includes(s.before,"-")&&!e._.includes(s.before,"(")&&(s.before="-"+s.before),o=0;o<s.before.length;o++)switch(s.before[o]){case"$":i=e._.insert(i,a.currency.symbol,o);break;case" ":i=e._.insert(i," ",o+a.currency.symbol.length-1)}for(o=s.after.length-1;o>=0;o--)switch(s.after[o]){case"$":i=o===s.after.length-1?i+a.currency.symbol:e._.insert(i,a.currency.symbol,-(s.after.length-(1+o)));break;case" ":i=o===s.after.length-1?i+" ":e._.insert(i," ",-(s.after.length-(1+o)+a.currency.symbol.length-1))}return i}}),e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(t,n,r){var i=("number"!==typeof t||e._.isNaN(t)?"0e+0":t.toExponential()).split("e");return n=n.replace(/e[\+|\-]{1}0/,""),e._.numberToFormat(Number(i[0]),n,r)+"e"+i[1]},unformat:function(t){var n=e._.includes(t,"e+")?t.split("e+"):t.split("e-"),r=Number(n[0]),i=Number(n[1]);function o(t,n,r,i){var o=e._.correctionFactor(t,n);return t*o*(n*o)/(o*o)}return i=e._.includes(t,"e-")?i*=-1:i,e._.reduce([r,Math.pow(10,i)],o,1)}}),e.register("format","ordinal",{regexps:{format:/(o)/},format:function(t,n,r){var i=e.locales[e.options.currentLocale],o=e._.includes(n," o")?" ":"";return n=n.replace(/\s?o/,""),o+=i.ordinal(t),e._.numberToFormat(t,n,r)+o}}),e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(t,n,r){var i,o=e._.includes(n," %")?" ":"";return e.options.scalePercentBy100&&(t*=100),n=n.replace(/\s?\%/,""),i=e._.numberToFormat(t,n,r),e._.includes(i,")")?((i=i.split("")).splice(-1,0,o+"%"),i=i.join("")):i=i+o+"%",i},unformat:function(t){var n=e._.stringToNumber(t);return e.options.scalePercentBy100?.01*n:n}}),e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,t,n){var r=Math.floor(e/60/60),i=Math.floor((e-60*r*60)/60),o=Math.round(e-60*r*60-60*i);return r+":"+(i<10?"0"+i:i)+":"+(o<10?"0"+o:o)},unformat:function(e){var t=e.split(":"),n=0;return 3===t.length?(n+=60*Number(t[0])*60,n+=60*Number(t[1]),n+=Number(t[2])):2===t.length&&(n+=60*Number(t[0]),n+=Number(t[1])),Number(n)}}),e},void 0===(i="function"===typeof r?r.call(t,n,t,e):r)||(e.exports=i)},69123:(e,t,n)=>{var r="function"===typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&i&&"function"===typeof i.get?i.get:null,a=r&&Map.prototype.forEach,s="function"===typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&l&&"function"===typeof l.get?l.get:null,u=s&&Set.prototype.forEach,d="function"===typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"===typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"===typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,m=Object.prototype.toString,g=Function.prototype.toString,v=String.prototype.match,y=String.prototype.slice,b=String.prototype.replace,w=String.prototype.toUpperCase,x=String.prototype.toLowerCase,_=RegExp.prototype.test,E=Array.prototype.concat,S=Array.prototype.join,k=Array.prototype.slice,C=Math.floor,O="function"===typeof BigInt?BigInt.prototype.valueOf:null,N=Object.getOwnPropertySymbols,T="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,A="function"===typeof Symbol&&"object"===typeof Symbol.iterator,I="function"===typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===A||"symbol")?Symbol.toStringTag:null,D=Object.prototype.propertyIsEnumerable,P=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function R(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||_.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof e){var r=e<0?-C(-e):C(e);if(r!==e){var i=String(r),o=y.call(t,i.length+1);return b.call(i,n,"$&_")+"."+b.call(b.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,n,"$&_")}var j=n(42634),M=j.custom,L=H(M)?M:null,z={__proto__:null,double:'"',single:"'"},F={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function B(e,t,n){var r=n.quoteStyle||t,i=z[r];return i+e+i}function U(e){return b.call(String(e),/"/g,""")}function $(e){return"[object Array]"===K(e)&&(!I||!("object"===typeof e&&I in e))}function q(e){return"[object RegExp]"===K(e)&&(!I||!("object"===typeof e&&I in e))}function H(e){if(A)return e&&"object"===typeof e&&e instanceof Symbol;if("symbol"===typeof e)return!0;if(!e||"object"!==typeof e||!T)return!1;try{return T.call(e),!0}catch(t){}return!1}e.exports=function e(t,r,i,s){var l=r||{};if(W(l,"quoteStyle")&&!W(z,l.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(W(l,"maxStringLength")&&("number"===typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!W(l,"customInspect")||l.customInspect;if("boolean"!==typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(W(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(W(l,"numericSeparator")&&"boolean"!==typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=l.numericSeparator;if("undefined"===typeof t)return"undefined";if(null===t)return"null";if("boolean"===typeof t)return t?"true":"false";if("string"===typeof t)return Y(t,l);if("number"===typeof t){if(0===t)return 1/0/t>0?"0":"-0";var _=String(t);return w?R(t,_):_}if("bigint"===typeof t){var C=String(t)+"n";return w?R(t,C):C}var N="undefined"===typeof l.depth?5:l.depth;if("undefined"===typeof i&&(i=0),i>=N&&N>0&&"object"===typeof t)return $(t)?"[Array]":"[Object]";var M=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"===typeof e.indent&&e.indent>0))return null;n=S.call(Array(e.indent+1)," ")}return{base:n,prev:S.call(Array(t+1),n)}}(l,i);if("undefined"===typeof s)s=[];else if(G(s,t)>=0)return"[Circular]";function F(t,n,r){if(n&&(s=k.call(s)).push(n),r){var o={depth:l.depth};return W(l,"quoteStyle")&&(o.quoteStyle=l.quoteStyle),e(t,o,i+1,s)}return e(t,l,i+1,s)}if("function"===typeof t&&!q(t)){var V=function(e){if(e.name)return e.name;var t=v.call(g.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),Q=te(t,F);return"[Function"+(V?": "+V:" (anonymous)")+"]"+(Q.length>0?" { "+S.call(Q,", ")+" }":"")}if(H(t)){var ne=A?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):T.call(t);return"object"!==typeof t||A?ne:Z(ne)}if(function(e){if(!e||"object"!==typeof e)return!1;if("undefined"!==typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"===typeof e.nodeName&&"function"===typeof e.getAttribute}(t)){for(var re="<"+x.call(String(t.nodeName)),ie=t.attributes||[],oe=0;oe<ie.length;oe++)re+=" "+ie[oe].name+"="+B(U(ie[oe].value),"double",l);return re+=">",t.childNodes&&t.childNodes.length&&(re+="..."),re+="</"+x.call(String(t.nodeName))+">"}if($(t)){if(0===t.length)return"[]";var ae=te(t,F);return M&&!function(e){for(var t=0;t<e.length;t++)if(G(e[t],"\n")>=0)return!1;return!0}(ae)?"["+ee(ae,M)+"]":"[ "+S.call(ae,", ")+" ]"}if(function(e){return"[object Error]"===K(e)&&(!I||!("object"===typeof e&&I in e))}(t)){var se=te(t,F);return"cause"in Error.prototype||!("cause"in t)||D.call(t,"cause")?0===se.length?"["+String(t)+"]":"{ ["+String(t)+"] "+S.call(se,", ")+" }":"{ ["+String(t)+"] "+S.call(E.call("[cause]: "+F(t.cause),se),", ")+" }"}if("object"===typeof t&&m){if(L&&"function"===typeof t[L]&&j)return j(t,{depth:N-i});if("symbol"!==m&&"function"===typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!==typeof e)return!1;try{o.call(e);try{c.call(e)}catch(re){return!0}return e instanceof Map}catch(t){}return!1}(t)){var le=[];return a&&a.call(t,(function(e,n){le.push(F(n,t,!0)+" => "+F(e,t))})),X("Map",o.call(t),le,M)}if(function(e){if(!c||!e||"object"!==typeof e)return!1;try{c.call(e);try{o.call(e)}catch(t){return!0}return e instanceof Set}catch(n){}return!1}(t)){var ce=[];return u&&u.call(t,(function(e){ce.push(F(e,t))})),X("Set",c.call(t),ce,M)}if(function(e){if(!d||!e||"object"!==typeof e)return!1;try{d.call(e,d);try{f.call(e,f)}catch(re){return!0}return e instanceof WeakMap}catch(t){}return!1}(t))return J("WeakMap");if(function(e){if(!f||!e||"object"!==typeof e)return!1;try{f.call(e,f);try{d.call(e,d)}catch(re){return!0}return e instanceof WeakSet}catch(t){}return!1}(t))return J("WeakSet");if(function(e){if(!p||!e||"object"!==typeof e)return!1;try{return p.call(e),!0}catch(t){}return!1}(t))return J("WeakRef");if(function(e){return"[object Number]"===K(e)&&(!I||!("object"===typeof e&&I in e))}(t))return Z(F(Number(t)));if(function(e){if(!e||"object"!==typeof e||!O)return!1;try{return O.call(e),!0}catch(t){}return!1}(t))return Z(F(O.call(t)));if(function(e){return"[object Boolean]"===K(e)&&(!I||!("object"===typeof e&&I in e))}(t))return Z(h.call(t));if(function(e){return"[object String]"===K(e)&&(!I||!("object"===typeof e&&I in e))}(t))return Z(F(String(t)));if("undefined"!==typeof window&&t===window)return"{ [object Window] }";if("undefined"!==typeof globalThis&&t===globalThis||"undefined"!==typeof n.g&&t===n.g)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===K(e)&&(!I||!("object"===typeof e&&I in e))}(t)&&!q(t)){var ue=te(t,F),de=P?P(t)===Object.prototype:t instanceof Object||t.constructor===Object,fe=t instanceof Object?"":"null prototype",pe=!de&&I&&Object(t)===t&&I in t?y.call(K(t),8,-1):fe?"Object":"",he=(de||"function"!==typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(pe||fe?"["+S.call(E.call([],pe||[],fe||[]),": ")+"] ":"");return 0===ue.length?he+"{}":M?he+"{"+ee(ue,M)+"}":he+"{ "+S.call(ue,", ")+" }"}return String(t)};var V=Object.prototype.hasOwnProperty||function(e){return e in this};function W(e,t){return V.call(e,t)}function K(e){return m.call(e)}function G(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function Y(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return Y(y.call(e,0,t.maxStringLength),t)+r}var i=F[t.quoteStyle||"single"];return i.lastIndex=0,B(b.call(b.call(e,i,"\\$1"),/[\x00-\x1f]/g,Q),"single",t)}function Q(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function Z(e){return"Object("+e+")"}function J(e){return e+" { ? }"}function X(e,t,n,r){return e+" ("+t+") {"+(r?ee(n,r):S.call(n,", "))+"}"}function ee(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+S.call(e,","+n)+"\n"+t.prev}function te(e,t){var n=$(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=W(e,i)?t(e[i],e):""}var o,a="function"===typeof N?N(e):[];if(A){o={};for(var s=0;s<a.length;s++)o["$"+a[s]]=a[s]}for(var l in e)W(e,l)&&(n&&String(Number(l))===l&&l<e.length||A&&o["$"+l]instanceof Symbol||(_.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if("function"===typeof N)for(var c=0;c<a.length;c++)D.call(e,a[c])&&r.push("["+t(a[c])+"]: "+t(e[a[c]],e));return r}},95166:e=>{e.exports=d,e.exports.match=function(e,t){var n=[];return o(d(e,n,t),n)},e.exports.regexpToFunction=o,e.exports.parse=r,e.exports.compile=function(e,t){return a(r(e,t),t)},e.exports.tokensToFunction=a,e.exports.tokensToRegExp=u;var t="/",n=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");function r(e,r){for(var o,a=[],s=0,c=0,u="",d=r&&r.delimiter||t,f=r&&r.whitelist||void 0,p=!1;null!==(o=n.exec(e));){var h=o[0],m=o[1],g=o.index;if(u+=e.slice(c,g),c=g+h.length,m)u+=m[1],p=!0;else{var v="",y=o[2],b=o[3],w=o[4],x=o[5];if(!p&&u.length){var _=u.length-1,E=u[_];(!f||f.indexOf(E)>-1)&&(v=E,u=u.slice(0,_))}u&&(a.push(u),u="",p=!1);var S="+"===x||"*"===x,k="?"===x||"*"===x,C=b||w,O=v||d,N=v||("string"===typeof a[a.length-1]?a[a.length-1]:"");a.push({name:y||s++,prefix:v,delimiter:O,optional:k,repeat:S,pattern:C?l(C):i(O,d,N)})}}return(u||c<e.length)&&a.push(u+e.substr(c)),a}function i(e,t,n){var r="[^"+s(e===t?e:e+t)+"]";return!n||n.indexOf(e)>-1||n.indexOf(t)>-1?r+"+?":s(n)+"|(?:(?!"+s(n)+")"+r+")+?"}function o(e,t){return function(n,r){var i=e.exec(n);if(!i)return!1;for(var o=i[0],a=i.index,s={},l=r&&r.decode||decodeURIComponent,c=1;c<i.length;c++)if(void 0!==i[c]){var u=t[c-1];u.repeat?s[u.name]=i[c].split(u.delimiter).map((function(e){return l(e,u)})):s[u.name]=l(i[c],u)}return{path:o,index:a,params:s}}}function a(e,t){for(var n=new Array(e.length),r=0;r<e.length;r++)"object"===typeof e[r]&&(n[r]=new RegExp("^(?:"+e[r].pattern+")$",c(t)));return function(t,r){for(var i="",o=r&&r.encode||encodeURIComponent,a=!r||!1!==r.validate,s=0;s<e.length;s++){var l=e[s];if("string"!==typeof l){var c,u=t?t[l.name]:void 0;if(Array.isArray(u)){if(!l.repeat)throw new TypeError('Expected "'+l.name+'" to not repeat, but got array');if(0===u.length){if(l.optional)continue;throw new TypeError('Expected "'+l.name+'" to not be empty')}for(var d=0;d<u.length;d++){if(c=o(u[d],l),a&&!n[s].test(c))throw new TypeError('Expected all "'+l.name+'" to match "'+l.pattern+'"');i+=(0===d?l.prefix:l.delimiter)+c}}else if("string"!==typeof u&&"number"!==typeof u&&"boolean"!==typeof u){if(!l.optional)throw new TypeError('Expected "'+l.name+'" to be '+(l.repeat?"an array":"a string"))}else{if(c=o(String(u),l),a&&!n[s].test(c))throw new TypeError('Expected "'+l.name+'" to match "'+l.pattern+'", but got "'+c+'"');i+=l.prefix+c}}else i+=l}return i}}function s(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function l(e){return e.replace(/([=!:$/()])/g,"\\$1")}function c(e){return e&&e.sensitive?"":"i"}function u(e,n,r){for(var i=(r=r||{}).strict,o=!1!==r.start,a=!1!==r.end,l=r.delimiter||t,u=[].concat(r.endsWith||[]).map(s).concat("$").join("|"),d=o?"^":"",f=0;f<e.length;f++){var p=e[f];if("string"===typeof p)d+=s(p);else{var h=p.repeat?"(?:"+p.pattern+")(?:"+s(p.delimiter)+"(?:"+p.pattern+"))*":p.pattern;n&&n.push(p),p.optional?p.prefix?d+="(?:"+s(p.prefix)+"("+h+"))?":d+="("+h+")?":d+=s(p.prefix)+"("+h+")"}}if(a)i||(d+="(?:"+s(l)+")?"),d+="$"===u?"$":"(?="+u+")";else{var m=e[e.length-1],g="string"===typeof m?m[m.length-1]===l:void 0===m;i||(d+="(?:"+s(l)+"(?="+u+"))?"),g||(d+="(?="+s(l)+"|"+u+")")}return new RegExp(d,c(r))}function d(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,pattern:null});return e}(e,t):Array.isArray(e)?function(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(d(e[i],t,n).source);return new RegExp("(?:"+r.join("|")+")",c(n))}(e,t,n):function(e,t,n){return u(r(e,n),t,n)}(e,t,n)}},77390:(e,t,n)=>{"use strict";var r=n(31445);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},13260:(e,t,n)=>{e.exports=n(77390)()},31445:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},7445:e=>{"use strict";var t=String.prototype.replace,n=/%20/g,r="RFC1738",i="RFC3986";e.exports={default:i,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:r,RFC3986:i}},74309:(e,t,n)=>{"use strict";var r=n(93780),i=n(77146),o=n(7445);e.exports={formats:o,parse:i,stringify:r}},77146:(e,t,n)=>{"use strict";var r=n(73888),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"===typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(o),c=s?o.slice(0,s.index):o,u=[];if(c){if(!n.plainObjects&&i.call(Object.prototype,c)&&!n.allowPrototypes)return;u.push(c)}for(var d=0;n.depth>0&&null!==(s=a.exec(o))&&d<n.depth;){if(d+=1,!n.plainObjects&&i.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(s[1])}if(s){if(!0===n.strictDepth)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");u.push("["+o.slice(s.index)+"]")}return function(e,t,n,r){for(var i=r?t:l(t,n),o=e.length-1;o>=0;--o){var a,s=e[o];if("[]"===s&&n.parseArrays)a=n.allowEmptyArrays&&(""===i||n.strictNullHandling&&null===i)?[]:[].concat(i);else{a=n.plainObjects?{__proto__:null}:{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=n.decodeDotInKeys?c.replace(/%2E/g,"."):c,d=parseInt(u,10);n.parseArrays||""!==u?!isNaN(d)&&s!==u&&String(d)===u&&d>=0&&n.parseArrays&&d<=n.arrayLimit?(a=[])[d]=i:"__proto__"!==u&&(a[u]=i):a={0:i}}i=a}return i}(u,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if("undefined"!==typeof e.allowEmptyArrays&&"boolean"!==typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if("undefined"!==typeof e.decodeDotInKeys&&"boolean"!==typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&"undefined"!==typeof e.decoder&&"function"!==typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t="undefined"===typeof e.charset?a.charset:e.charset,n="undefined"===typeof e.duplicates?a.duplicates:e.duplicates;if("combine"!==n&&"first"!==n&&"last"!==n)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:"undefined"===typeof e.allowDots?!0===e.decodeDotInKeys||a.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"===typeof e.allowEmptyArrays?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"===typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:a.comma,decodeDotInKeys:"boolean"===typeof e.decodeDotInKeys?e.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"===typeof e.decoder?e.decoder:a.decoder,delimiter:"string"===typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:a.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:a.plainObjects,strictDepth:"boolean"===typeof e.strictDepth?!!e.strictDepth:a.strictDepth,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null===e||"undefined"===typeof e)return n.plainObjects?{__proto__:null}:{};for(var u="string"===typeof e?function(e,t){var n={__proto__:null},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;c=c.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var u,d=t.parameterLimit===1/0?void 0:t.parameterLimit,f=c.split(t.delimiter,d),p=-1,h=t.charset;if(t.charsetSentinel)for(u=0;u<f.length;++u)0===f[u].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[u]?h="utf-8":"utf8=%26%2310003%3B"===f[u]&&(h="iso-8859-1"),p=u,u=f.length);for(u=0;u<f.length;++u)if(u!==p){var m,g,v=f[u],y=v.indexOf("]="),b=-1===y?v.indexOf("="):y+1;-1===b?(m=t.decoder(v,a.decoder,h,"key"),g=t.strictNullHandling?null:""):(m=t.decoder(v.slice(0,b),a.decoder,h,"key"),g=r.maybeMap(l(v.slice(b+1),t),(function(e){return t.decoder(e,a.decoder,h,"value")}))),g&&t.interpretNumericEntities&&"iso-8859-1"===h&&(g=s(String(g))),v.indexOf("[]=")>-1&&(g=o(g)?[g]:g);var w=i.call(n,m);w&&"combine"===t.duplicates?n[m]=r.combine(n[m],g):w&&"last"!==t.duplicates||(n[m]=g)}return n}(e,n):e,d=n.plainObjects?{__proto__:null}:{},f=Object.keys(u),p=0;p<f.length;++p){var h=f[p],m=c(h,u[h],n,"string"===typeof e);d=r.merge(d,m,n)}return!0===n.allowSparse?d:r.compact(d)}},93780:(e,t,n)=>{"use strict";var r=n(3584),i=n(73888),o=n(7445),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,l(t)?t:[t])},d=Date.prototype.toISOString,f=o.default,p={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:i.encode,encodeValuesOnly:!1,filter:void 0,format:f,formatter:o.formatters[f],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},h={},m=function e(t,n,o,a,s,c,d,f,m,g,v,y,b,w,x,_,E,S){for(var k,C=t,O=S,N=0,T=!1;void 0!==(O=O.get(h))&&!T;){var A=O.get(t);if(N+=1,"undefined"!==typeof A){if(A===N)throw new RangeError("Cyclic object value");T=!0}"undefined"===typeof O.get(h)&&(N=0)}if("function"===typeof g?C=g(n,C):C instanceof Date?C=b(C):"comma"===o&&l(C)&&(C=i.maybeMap(C,(function(e){return e instanceof Date?b(e):e}))),null===C){if(c)return m&&!_?m(n,p.encoder,E,"key",w):n;C=""}if("string"===typeof(k=C)||"number"===typeof k||"boolean"===typeof k||"symbol"===typeof k||"bigint"===typeof k||i.isBuffer(C))return m?[x(_?n:m(n,p.encoder,E,"key",w))+"="+x(m(C,p.encoder,E,"value",w))]:[x(n)+"="+x(String(C))];var I,D=[];if("undefined"===typeof C)return D;if("comma"===o&&l(C))_&&m&&(C=i.maybeMap(C,m)),I=[{value:C.length>0?C.join(",")||null:void 0}];else if(l(g))I=g;else{var P=Object.keys(C);I=v?P.sort(v):P}var R=f?String(n).replace(/\./g,"%2E"):String(n),j=a&&l(C)&&1===C.length?R+"[]":R;if(s&&l(C)&&0===C.length)return j+"[]";for(var M=0;M<I.length;++M){var L=I[M],z="object"===typeof L&&L&&"undefined"!==typeof L.value?L.value:C[L];if(!d||null!==z){var F=y&&f?String(L).replace(/\./g,"%2E"):String(L),B=l(C)?"function"===typeof o?o(j,F):j:j+(y?"."+F:"["+F+"]");S.set(t,N);var U=r();U.set(h,S),u(D,e(z,B,o,a,s,c,d,f,"comma"===o&&_&&l(C)?null:m,g,v,y,b,w,x,_,E,U))}}return D};e.exports=function(e,t){var n,i=e,c=function(e){if(!e)return p;if("undefined"!==typeof e.allowEmptyArrays&&"boolean"!==typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if("undefined"!==typeof e.encodeDotInKeys&&"boolean"!==typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&"undefined"!==typeof e.encoder&&"function"!==typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o.default;if("undefined"!==typeof e.format){if(!a.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r,i=o.formatters[n],c=p.filter;if(("function"===typeof e.filter||l(e.filter))&&(c=e.filter),r=e.arrayFormat in s?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":p.arrayFormat,"commaRoundTrip"in e&&"boolean"!==typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u="undefined"===typeof e.allowDots?!0===e.encodeDotInKeys||p.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"===typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:u,allowEmptyArrays:"boolean"===typeof e.allowEmptyArrays?!!e.allowEmptyArrays:p.allowEmptyArrays,arrayFormat:r,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:"undefined"===typeof e.delimiter?p.delimiter:e.delimiter,encode:"boolean"===typeof e.encode?e.encode:p.encode,encodeDotInKeys:"boolean"===typeof e.encodeDotInKeys?e.encodeDotInKeys:p.encodeDotInKeys,encoder:"function"===typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"===typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:c,format:n,formatter:i,serializeDate:"function"===typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"===typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"===typeof e.sort?e.sort:null,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}}(t);"function"===typeof c.filter?i=(0,c.filter)("",i):l(c.filter)&&(n=c.filter);var d=[];if("object"!==typeof i||null===i)return"";var f=s[c.arrayFormat],h="comma"===f&&c.commaRoundTrip;n||(n=Object.keys(i)),c.sort&&n.sort(c.sort);for(var g=r(),v=0;v<n.length;++v){var y=n[v],b=i[y];c.skipNulls&&null===b||u(d,m(b,y,f,h,c.allowEmptyArrays,c.strictNullHandling,c.skipNulls,c.encodeDotInKeys,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,g))}var w=d.join(c.delimiter),x=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?x+="utf8=%26%2310003%3B&":x+="utf8=%E2%9C%93&"),w.length>0?x+w:""}},73888:(e,t,n)=>{"use strict";var r=n(7445),i=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},r=0;r<e.length;++r)"undefined"!==typeof e[r]&&(n[r]=e[r]);return n},l=1024;e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],s=Object.keys(a),l=0;l<s.length;++l){var c=s[l],u=a[c];"object"===typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:a,prop:c}),n.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i<n.length;++i)"undefined"!==typeof n[i]&&r.push(n[i]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(i){return r}},encode:function(e,t,n,i,o){if(0===e.length)return e;var s=e;if("symbol"===typeof e?s=Symbol.prototype.toString.call(e):"string"!==typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var c="",u=0;u<s.length;u+=l){for(var d=s.length>=l?s.slice(u,u+l):s,f=[],p=0;p<d.length;++p){var h=d.charCodeAt(p);45===h||46===h||95===h||126===h||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||o===r.RFC1738&&(40===h||41===h)?f[f.length]=d.charAt(p):h<128?f[f.length]=a[h]:h<2048?f[f.length]=a[192|h>>6]+a[128|63&h]:h<55296||h>=57344?f[f.length]=a[224|h>>12]+a[128|h>>6&63]+a[128|63&h]:(p+=1,h=65536+((1023&h)<<10|1023&d.charCodeAt(p)),f[f.length]=a[240|h>>18]+a[128|h>>12&63]+a[128|h>>6&63]+a[128|63&h])}c+=f.join("")}return c},isBuffer:function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!==typeof n&&"function"!==typeof n){if(o(t))t.push(n);else{if(!t||"object"!==typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!i.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!==typeof t)return[t].concat(n);var a=t;return o(t)&&!o(n)&&(a=s(t,r)),o(t)&&o(n)?(n.forEach((function(n,o){if(i.call(t,o)){var a=t[o];a&&"object"===typeof a&&n&&"object"===typeof n?t[o]=e(a,n,r):t.push(n)}else t[o]=n})),t):Object.keys(n).reduce((function(t,o){var a=n[o];return i.call(t,o)?t[o]=e(t[o],a,r):t[o]=a,t}),a)}}},53202:(e,t,n)=>{"use strict";n.d(t,{JY:()=>yi,sx:()=>eo,gL:()=>io});var r=n(59284),i=n(25540),o=n(58168),a=n(96906),s=r.createContext(null);var l=function(e){e()},c=function(){return l};var u={notify:function(){},get:function(){return[]}};function d(e,t){var n,r=u;function i(){a.onStateChange&&a.onStateChange()}function o(){n||(n=t?t.addNestedSub(i):e.subscribe(i),r=function(){var e=c(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){r&&null!==t&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}())}var a={addNestedSub:function(e){return o(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:i,isSubscribed:function(){return Boolean(n)},trySubscribe:o,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=u)},getListeners:function(){return r}};return a}var f="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?r.useLayoutEffect:r.useEffect;const p=function(e){var t=e.store,n=e.context,i=e.children,o=(0,r.useMemo)((function(){var e=d(t);return{store:t,subscription:e}}),[t]),a=(0,r.useMemo)((function(){return t.getState()}),[t]);f((function(){var e=o.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),a!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[o,a]);var l=n||s;return r.createElement(l.Provider,{value:o},i)};var h=n(98587),m=n(5290),g=n.n(m),v=n(94771),y=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],b=["reactReduxForwardedRef"],w=[],x=[null,null];function _(e,t){var n=e[1];return[t.payload,n+1]}function E(e,t,n){f((function(){return e.apply(void 0,t)}),n)}function S(e,t,n,r,i,o,a){e.current=r,t.current=i,n.current=!1,o.current&&(o.current=null,a())}function k(e,t,n,r,i,o,a,s,l,c){if(e){var u=!1,d=null,f=function(){if(!u){var e,n,f=t.getState();try{e=r(f,i.current)}catch(p){n=p,d=p}n||(d=null),e===o.current?a.current||l():(o.current=e,s.current=e,a.current=!0,c({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=f,n.trySubscribe(),f();return function(){if(u=!0,n.tryUnsubscribe(),n.onStateChange=null,d)throw d}}}var C=function(){return[null,0]};function O(e,t){void 0===t&&(t={});var n=t,i=n.getDisplayName,a=void 0===i?function(e){return"ConnectAdvanced("+e+")"}:i,l=n.methodName,c=void 0===l?"connectAdvanced":l,u=n.renderCountProp,f=void 0===u?void 0:u,p=n.shouldHandleStateChanges,m=void 0===p||p,O=n.storeKey,N=void 0===O?"store":O,T=(n.withRef,n.forwardRef),A=void 0!==T&&T,I=n.context,D=void 0===I?s:I,P=(0,h.A)(n,y),R=D;return function(t){var n=t.displayName||t.name||"Component",i=a(n),s=(0,o.A)({},P,{getDisplayName:a,methodName:c,renderCountProp:f,shouldHandleStateChanges:m,storeKey:N,displayName:i,wrappedComponentName:n,WrappedComponent:t}),l=P.pure;var u=l?r.useMemo:function(e){return e()};function p(n){var i=(0,r.useMemo)((function(){var e=n.reactReduxForwardedRef,t=(0,h.A)(n,b);return[n.context,e,t]}),[n]),a=i[0],l=i[1],c=i[2],f=(0,r.useMemo)((function(){return a&&a.Consumer&&(0,v.isContextConsumer)(r.createElement(a.Consumer,null))?a:R}),[a,R]),p=(0,r.useContext)(f),g=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(p)&&Boolean(p.store);var y=g?n.store:p.store,O=(0,r.useMemo)((function(){return function(t){return e(t.dispatch,s)}(y)}),[y]),N=(0,r.useMemo)((function(){if(!m)return x;var e=d(y,g?null:p.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[y,g,p]),T=N[0],A=N[1],I=(0,r.useMemo)((function(){return g?p:(0,o.A)({},p,{subscription:T})}),[g,p,T]),D=(0,r.useReducer)(_,w,C),P=D[0][0],j=D[1];if(P&&P.error)throw P.error;var M=(0,r.useRef)(),L=(0,r.useRef)(c),z=(0,r.useRef)(),F=(0,r.useRef)(!1),B=u((function(){return z.current&&c===L.current?z.current:O(y.getState(),c)}),[y,P,c]);E(S,[L,M,F,c,B,z,A]),E(k,[m,y,T,O,L,M,F,z,A,j],[y,T,O]);var U=(0,r.useMemo)((function(){return r.createElement(t,(0,o.A)({},B,{ref:l}))}),[l,t,B]);return(0,r.useMemo)((function(){return m?r.createElement(f.Provider,{value:I},U):U}),[f,U,I])}var y=l?r.memo(p):p;if(y.WrappedComponent=t,y.displayName=p.displayName=i,A){var O=r.forwardRef((function(e,t){return r.createElement(y,(0,o.A)({},e,{reactReduxForwardedRef:t}))}));return O.displayName=i,O.WrappedComponent=t,g()(O,t)}return g()(y,t)}}function N(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function T(e,t){if(N(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!N(e[n[i]],t[n[i]]))return!1;return!0}function A(e){return function(t,n){var r=e(t,n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function I(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function D(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=I(e);var i=r(t,n);return"function"===typeof i&&(r.mapToProps=i,r.dependsOnOwnProps=I(i),i=r(t,n)),i},r}}const P=[function(e){return"function"===typeof e?D(e):void 0},function(e){return e?void 0:A((function(e){return{dispatch:e}}))},function(e){return e&&"object"===typeof e?A((function(t){return function(e,t){var n={},r=function(r){var i=e[r];"function"===typeof i&&(n[r]=function(){return t(i.apply(void 0,arguments))})};for(var i in e)r(i);return n}(e,t)})):void 0}];const R=[function(e){return"function"===typeof e?D(e):void 0},function(e){return e?void 0:A((function(){return{}}))}];function j(e,t,n){return(0,o.A)({},n,e,t)}const M=[function(e){return"function"===typeof e?function(e){return function(t,n){n.displayName;var r,i=n.pure,o=n.areMergedPropsEqual,a=!1;return function(t,n,s){var l=e(t,n,s);return a?i&&o(l,r)||(r=l):(a=!0,r=l),r}}}(e):void 0},function(e){return e?void 0:function(){return j}}];var L=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function z(e,t,n,r){return function(i,o){return n(e(i,o),t(r,o),o)}}function F(e,t,n,r,i){var o,a,s,l,c,u=i.areStatesEqual,d=i.areOwnPropsEqual,f=i.areStatePropsEqual,p=!1;function h(i,p){var h=!d(p,a),m=!u(i,o,p,a);return o=i,a=p,h&&m?(s=e(o,a),t.dependsOnOwnProps&&(l=t(r,a)),c=n(s,l,a)):h?(e.dependsOnOwnProps&&(s=e(o,a)),t.dependsOnOwnProps&&(l=t(r,a)),c=n(s,l,a)):m?function(){var t=e(o,a),r=!f(t,s);return s=t,r&&(c=n(s,l,a)),c}():c}return function(i,u){return p?h(i,u):(s=e(o=i,a=u),l=t(r,a),c=n(s,l,a),p=!0,c)}}function B(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,i=t.initMergeProps,o=(0,h.A)(t,L),a=n(e,o),s=r(e,o),l=i(e,o);return(o.pure?F:z)(a,s,l,e,o)}var U=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function $(e,t,n){for(var r=t.length-1;r>=0;r--){var i=t[r](e);if(i)return i}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function q(e,t){return e===t}function H(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?O:n,i=t.mapStateToPropsFactories,a=void 0===i?R:i,s=t.mapDispatchToPropsFactories,l=void 0===s?P:s,c=t.mergePropsFactories,u=void 0===c?M:c,d=t.selectorFactory,f=void 0===d?B:d;return function(e,t,n,i){void 0===i&&(i={});var s=i,c=s.pure,d=void 0===c||c,p=s.areStatesEqual,m=void 0===p?q:p,g=s.areOwnPropsEqual,v=void 0===g?T:g,y=s.areStatePropsEqual,b=void 0===y?T:y,w=s.areMergedPropsEqual,x=void 0===w?T:w,_=(0,h.A)(s,U),E=$(e,a,"mapStateToProps"),S=$(t,l,"mapDispatchToProps"),k=$(n,u,"mergeProps");return r(f,(0,o.A)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:E,initMapDispatchToProps:S,initMergeProps:k,pure:d,areStatesEqual:m,areOwnPropsEqual:v,areStatePropsEqual:b,areMergedPropsEqual:x},_))}}const V=H();var W,K=n(48681);function G(e,t){var n=(0,r.useState)((function(){return{inputs:t,result:e()}}))[0],i=(0,r.useRef)(!0),o=(0,r.useRef)(n),a=i.current||Boolean(t&&o.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,o.current.inputs))?o.current:{inputs:t,result:e()};return(0,r.useEffect)((function(){i.current=!1,o.current=a}),[a]),a.result}W=K.unstable_batchedUpdates,l=W;var Y=G,Q=function(e,t){return G((function(){return e}),t)},Z=n(68643),J=function(e){var t=e.top,n=e.right,r=e.bottom,i=e.left;return{top:t,right:n,bottom:r,left:i,width:n-i,height:r-t,x:i,y:t,center:{x:(n+i)/2,y:(r+t)/2}}},X=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},ee=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},te={top:0,right:0,bottom:0,left:0},ne=function(e){var t=e.borderBox,n=e.margin,r=void 0===n?te:n,i=e.border,o=void 0===i?te:i,a=e.padding,s=void 0===a?te:a,l=J(X(t,r)),c=J(ee(t,o)),u=J(ee(c,s));return{marginBox:l,borderBox:J(t),paddingBox:c,contentBox:u,margin:r,border:o,padding:s}},re=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(t);return isNaN(n)&&(0,Z.A)(!1),n},ie=function(e,t){var n,r,i=e.borderBox,o=e.border,a=e.margin,s=e.padding,l=(r=t,{top:(n=i).top+r.y,left:n.left+r.x,bottom:n.bottom+r.y,right:n.right+r.x});return ne({borderBox:l,border:o,margin:a,padding:s})},oe=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),ie(e,t)},ae=function(e,t){var n={top:re(t.marginTop),right:re(t.marginRight),bottom:re(t.marginBottom),left:re(t.marginLeft)},r={top:re(t.paddingTop),right:re(t.paddingRight),bottom:re(t.paddingBottom),left:re(t.paddingLeft)},i={top:re(t.borderTopWidth),right:re(t.borderRightWidth),bottom:re(t.borderBottomWidth),left:re(t.borderLeftWidth)};return ne({borderBox:e,margin:n,padding:r,border:i})},se=function(e){var t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return ae(t,n)},le=n(77995);const ce=function(e){var t=[],n=null,r=function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];t=i,n||(n=requestAnimationFrame((function(){n=null,e.apply(void 0,t)})))};return r.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},r};function ue(e,t){}ue.bind(null,"warn"),ue.bind(null,"error");function de(){}function fe(e,t,n){var r=t.map((function(t){var r=function(e,t){return(0,o.A)({},e,{},t)}(n,t.options);return e.addEventListener(t.eventName,t.fn,r),function(){e.removeEventListener(t.eventName,t.fn,r)}}));return function(){r.forEach((function(e){e()}))}}var pe=!0,he="Invariant failed";function me(e){this.message=e}function ge(e,t){if(!e)throw new me(pe?he:he+": "+(t||""))}me.prototype.toString=function(){return this.message};var ve=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).callbacks=null,t.unbind=de,t.onWindowError=function(e){var n=t.getCallbacks();n.isDragging()&&n.tryAbort(),e.error instanceof me&&e.preventDefault()},t.getCallbacks=function(){if(!t.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return t.callbacks},t.setCallbacks=function(e){t.callbacks=e},t}(0,i.A)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.unbind=fe(window,[{eventName:"error",fn:this.onWindowError}])},n.componentDidCatch=function(e){if(!(e instanceof me))throw e;this.setState({})},n.componentWillUnmount=function(){this.unbind()},n.render=function(){return this.props.children(this.setCallbacks)},t}(r.Component),ye=function(e){return e+1},be=function(e,t){var n=e.droppableId===t.droppableId,r=ye(e.index),i=ye(t.index);return n?"\n You have moved the item from position "+r+"\n to position "+i+"\n ":"\n You have moved the item from position "+r+"\n in list "+e.droppableId+"\n to list "+t.droppableId+"\n in position "+i+"\n "},we=function(e,t,n){return t.droppableId===n.droppableId?"\n The item "+e+"\n has been combined with "+n.draggableId:"\n The item "+e+"\n in list "+t.droppableId+"\n has been combined with "+n.draggableId+"\n in list "+n.droppableId+"\n "},xe=function(e){return"\n The item has returned to its starting position\n of "+ye(e.index)+"\n"},_e={dragHandleUsageInstructions:"\n Press space bar to start a drag.\n When dragging you can use the arrow keys to move the item around and escape to cancel.\n Some screen readers may require you to be in focus mode or to use your pass through key\n",onDragStart:function(e){return"\n You have lifted an item in position "+ye(e.source.index)+"\n"},onDragUpdate:function(e){var t=e.destination;if(t)return be(e.source,t);var n=e.combine;return n?we(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},onDragEnd:function(e){if("CANCEL"===e.reason)return"\n Movement cancelled.\n "+xe(e.source)+"\n ";var t=e.destination,n=e.combine;return t?"\n You have dropped the item.\n "+be(e.source,t)+"\n ":n?"\n You have dropped the item.\n "+we(e.draggableId,e.source,n)+"\n ":"\n The item has been dropped while not over a drop area.\n "+xe(e.source)+"\n "}},Ee={x:0,y:0},Se=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},ke=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},Ce=function(e,t){return e.x===t.x&&e.y===t.y},Oe=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},Ne=function(e,t,n){var r;return void 0===n&&(n=0),(r={})[e]=t,r["x"===e?"y":"x"]=n,r},Te=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},Ae=function(e,t){return Math.min.apply(Math,t.map((function(t){return Te(e,t)})))},Ie=function(e){return function(t){return{x:e(t.x),y:e(t.y)}}},De=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},Pe=function(e){return[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}]},Re=function(e,t){return t&&t.shouldClipSubject?function(e,t){var n=J({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n}(t.pageMarginBox,e):J(e)},je=function(e){var t=e.page,n=e.withPlaceholder,r=e.axis,i=e.frame,a=function(e,t){return t?De(e,t.scroll.diff.displacement):e}(t.marginBox,i),s=function(e,t,n){var r;return n&&n.increasedBy?(0,o.A)({},e,((r={})[t.end]=e[t.end]+n.increasedBy[t.line],r)):e}(a,r,n);return{page:t,withPlaceholder:n,active:Re(s,i)}},Me=function(e,t){e.frame||ge(!1);var n=e.frame,r=ke(t,n.scroll.initial),i=Oe(r),a=(0,o.A)({},n,{scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:i},max:n.scroll.max}}),s=je({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:a});return(0,o.A)({},e,{frame:a,subject:s})};function Le(e){return Object.values?Object.values(e):Object.keys(e).map((function(t){return e[t]}))}function ze(e,t){if(e.findIndex)return e.findIndex(t);for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}function Fe(e,t){if(e.find)return e.find(t);var n=ze(e,t);return-1!==n?e[n]:void 0}function Be(e){return Array.prototype.slice.call(e)}var Ue=(0,le.A)((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),$e=(0,le.A)((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),qe=(0,le.A)((function(e){return Le(e)})),He=(0,le.A)((function(e){return Le(e)})),Ve=(0,le.A)((function(e,t){var n=He(t).filter((function(t){return e===t.descriptor.droppableId})).sort((function(e,t){return e.descriptor.index-t.descriptor.index}));return n}));function We(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function Ke(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var Ge=(0,le.A)((function(e,t){return t.filter((function(t){return t.descriptor.id!==e.descriptor.id}))})),Ye=function(e,t){return e.descriptor.droppableId===t.descriptor.id},Qe={point:Ee,value:0},Ze={invisible:{},visible:{},all:[]},Je={displaced:Ze,displacedBy:Qe,at:null},Xe=function(e,t){return function(n){return e<=n&&n<=t}},et=function(e){var t=Xe(e.top,e.bottom),n=Xe(e.left,e.right);return function(r){if(t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right))return!0;var i=t(r.top)||t(r.bottom),o=n(r.left)||n(r.right);if(i&&o)return!0;var a=r.top<e.top&&r.bottom>e.bottom,s=r.left<e.left&&r.right>e.right;return!(!a||!s)||(a&&o||s&&i)}},tt=function(e){var t=Xe(e.top,e.bottom),n=Xe(e.left,e.right);return function(e){return t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)}},nt={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},rt={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},it=function(e){var t=e.target,n=e.destination,r=e.viewport,i=e.withDroppableDisplacement,o=e.isVisibleThroughFrameFn,a=i?function(e,t){var n=t.frame?t.frame.scroll.diff.displacement:Ee;return De(e,n)}(t,n):t;return function(e,t,n){return!!t.subject.active&&n(t.subject.active)(e)}(a,n,o)&&function(e,t,n){return n(t)(e)}(a,r,o)},ot=function(e){return it((0,o.A)({},e,{isVisibleThroughFrameFn:et}))},at=function(e){return it((0,o.A)({},e,{isVisibleThroughFrameFn:tt}))};function st(e){var t=e.afterDragging,n=e.destination,r=e.displacedBy,i=e.viewport,o=e.forceShouldAnimate,a=e.last;return t.reduce((function(e,t){var s=function(e,t){var n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return J(X(n,r))}(t,r),l=t.descriptor.id;if(e.all.push(l),!ot({target:s,destination:n,viewport:i,withDroppableDisplacement:!0}))return e.invisible[t.descriptor.id]=!0,e;var c=function(e,t,n){if("boolean"===typeof n)return n;if(!t)return!0;var r=t.invisible,i=t.visible;if(r[e])return!1;var o=i[e];return!o||o.shouldAnimate}(l,a,o),u={draggableId:l,shouldAnimate:c};return e.visible[l]=u,e}),{all:[],visible:{},invisible:{}})}function lt(e){var t=e.insideDestination,n=e.inHomeList,r=e.displacedBy,i=e.destination,o=function(e,t){if(!e.length)return 0;var n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}(t,{inHomeList:n});return{displaced:Ze,displacedBy:r,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:o}}}}function ct(e){var t=e.draggable,n=e.insideDestination,r=e.destination,i=e.viewport,o=e.displacedBy,a=e.last,s=e.index,l=e.forceShouldAnimate,c=Ye(t,r);if(null==s)return lt({insideDestination:n,inHomeList:c,displacedBy:o,destination:r});var u=Fe(n,(function(e){return e.descriptor.index===s}));if(!u)return lt({insideDestination:n,inHomeList:c,displacedBy:o,destination:r});var d=Ge(t,n),f=n.indexOf(u);return{displaced:st({afterDragging:d.slice(f),destination:r,displacedBy:o,last:a,viewport:i.frame,forceShouldAnimate:l}),displacedBy:o,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:s}}}}function ut(e,t){return Boolean(t.effected[e])}var dt=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.draggable,i=e.draggables,o=e.destination,a=e.insideDestination,s=e.previousImpact,l=e.viewport,c=e.afterCritical,u=s.at;if(u||ge(!1),"REORDER"===u.type){var d=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.insideDestination,i=e.location;if(!r.length)return null;var o=i.index,a=t?o+1:o-1,s=r[0].descriptor.index,l=r[r.length-1].descriptor.index;return a<s||a>(n?l:l+1)?null:a}({isMovingForward:t,isInHomeList:n,location:u.destination,insideDestination:a});return null==d?null:ct({draggable:r,insideDestination:a,destination:o,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:d})}var f=function(e){var t=e.isMovingForward,n=e.destination,r=e.draggables,i=e.combine,o=e.afterCritical;if(!n.isCombineEnabled)return null;var a=i.draggableId,s=r[a].descriptor.index;return ut(a,o)?t?s:s-1:t?s+1:s}({isMovingForward:t,destination:o,displaced:s.displaced,draggables:i,combine:u.combine,afterCritical:c});return null==f?null:ct({draggable:r,insideDestination:a,destination:o,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:f})},ft=function(e){var t=e.afterCritical,n=e.impact,r=e.draggables,i=Ke(n);i||ge(!1);var o=i.draggableId,a=r[o].page.borderBox.center,s=function(e){var t=e.displaced,n=e.afterCritical,r=e.combineWith,i=e.displacedBy,o=Boolean(t.visible[r]||t.invisible[r]);return ut(r,n)?o?Ee:Oe(i.point):o?i.point:Ee}({displaced:n.displaced,afterCritical:t,combineWith:o,displacedBy:n.displacedBy});return Se(a,s)},pt=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},ht=function(e,t,n){return t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2},mt=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return Ne(t.line,n.marginBox[t.end]+pt(t,r),ht(t,n.marginBox,r))},gt=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return Ne(t.line,n.marginBox[t.start]-function(e,t){return t.margin[e.end]+t.borderBox[e.size]/2}(t,r),ht(t,n.marginBox,r))},vt=function(e){var t=e.impact,n=e.draggable,r=e.draggables,i=e.droppable,o=e.afterCritical,a=Ve(i.descriptor.id,r),s=n.page,l=i.axis;if(!a.length)return function(e){var t=e.axis,n=e.moveInto,r=e.isMoving;return Ne(t.line,n.contentBox[t.start]+pt(t,r),ht(t,n.contentBox,r))}({axis:l,moveInto:i.page,isMoving:s});var c=t.displaced,u=t.displacedBy,d=c.all[0];if(d){var f=r[d];if(ut(d,o))return gt({axis:l,moveRelativeTo:f.page,isMoving:s});var p=ie(f.page,u.point);return gt({axis:l,moveRelativeTo:p,isMoving:s})}var h=a[a.length-1];if(h.descriptor.id===n.descriptor.id)return s.borderBox.center;if(ut(h.descriptor.id,o)){var m=ie(h.page,Oe(o.displacedBy.point));return mt({axis:l,moveRelativeTo:m,isMoving:s})}return mt({axis:l,moveRelativeTo:h.page,isMoving:s})},yt=function(e,t){var n=e.frame;return n?Se(t,n.scroll.diff.displacement):t},bt=function(e){var t=function(e){var t=e.impact,n=e.draggable,r=e.droppable,i=e.draggables,o=e.afterCritical,a=n.page.borderBox.center,s=t.at;return r&&s?"REORDER"===s.type?vt({impact:t,draggable:n,draggables:i,droppable:r,afterCritical:o}):ft({impact:t,draggables:i,afterCritical:o}):a}(e),n=e.droppable;return n?yt(n,t):t},wt=function(e,t){var n=ke(t,e.scroll.initial),r=Oe(n);return{frame:J({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}}};function xt(e,t){return e.map((function(e){return t[e]}))}var _t=function(e){var t=e.pageBorderBoxCenter,n=e.draggable,r=function(e,t){return Se(e.scroll.diff.displacement,t)}(e.viewport,t),i=ke(r,n.page.borderBox.center);return Se(n.client.borderBox.center,i)},Et=function(e){var t=e.draggable,n=e.destination,r=e.newPageBorderBoxCenter,i=e.viewport,a=e.withDroppableDisplacement,s=e.onlyOnMainAxis,l=void 0!==s&&s,c=ke(r,t.page.borderBox.center),u={target:De(t.page.borderBox,c),destination:n,withDroppableDisplacement:a,viewport:i};return l?function(e){return it((0,o.A)({},e,{isVisibleThroughFrameFn:(t=e.destination.axis,function(e){var n=Xe(e.top,e.bottom),r=Xe(e.left,e.right);return function(e){return t===nt?n(e.top)&&n(e.bottom):r(e.left)&&r(e.right)}})}));var t}(u):at(u)},St=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,i=e.draggables,a=e.previousImpact,s=e.viewport,l=e.previousPageBorderBoxCenter,c=e.previousClientSelection,u=e.afterCritical;if(!r.isEnabled)return null;var d=Ve(r.descriptor.id,i),f=Ye(n,r),p=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,i=e.insideDestination,a=e.previousImpact;if(!r.isCombineEnabled)return null;if(!We(a))return null;function s(e){var t={type:"COMBINE",combine:{draggableId:e,droppableId:r.descriptor.id}};return(0,o.A)({},a,{at:t})}var l=a.displaced.all,c=l.length?l[0]:null;if(t)return c?s(c):null;var u=Ge(n,i);if(!c)return u.length?s(u[u.length-1].descriptor.id):null;var d=ze(u,(function(e){return e.descriptor.id===c}));-1===d&&ge(!1);var f=d-1;return f<0?null:s(u[f].descriptor.id)}({isMovingForward:t,draggable:n,destination:r,insideDestination:d,previousImpact:a})||dt({isMovingForward:t,isInHomeList:f,draggable:n,draggables:i,destination:r,insideDestination:d,previousImpact:a,viewport:s,afterCritical:u});if(!p)return null;var h=bt({impact:p,draggable:n,droppable:r,draggables:i,afterCritical:u});if(Et({draggable:n,destination:r,newPageBorderBoxCenter:h,viewport:s.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:_t({pageBorderBoxCenter:h,draggable:n,viewport:s}),impact:p,scrollJumpRequest:null};var m=ke(h,l),g=function(e){var t=e.impact,n=e.viewport,r=e.destination,i=e.draggables,a=e.maxScrollChange,s=wt(n,Se(n.scroll.current,a)),l=r.frame?Me(r,Se(r.frame.scroll.current,a)):r,c=t.displaced,u=st({afterDragging:xt(c.all,i),destination:r,displacedBy:t.displacedBy,viewport:s.frame,last:c,forceShouldAnimate:!1}),d=st({afterDragging:xt(c.all,i),destination:l,displacedBy:t.displacedBy,viewport:n.frame,last:c,forceShouldAnimate:!1}),f={},p={},h=[c,u,d];return c.all.forEach((function(e){var t=function(e,t){for(var n=0;n<t.length;n++){var r=t[n].visible[e];if(r)return r}return null}(e,h);t?p[e]=t:f[e]=!0})),(0,o.A)({},t,{displaced:{all:c.all,invisible:f,visible:p}})}({impact:p,viewport:s,destination:r,draggables:i,maxScrollChange:m});return{clientSelection:c,impact:g,scrollJumpRequest:m}},kt=function(e){var t=e.subject.active;return t||ge(!1),t},Ct=function(e,t){var n=e.page.borderBox.center;return ut(e.descriptor.id,t)?ke(n,t.displacedBy.point):n},Ot=function(e,t){var n=e.page.borderBox;return ut(e.descriptor.id,t)?De(n,Oe(t.displacedBy.point)):n},Nt=(0,le.A)((function(e,t){var n=t[e.line];return{value:n,point:Ne(e.line,n)}})),Tt=function(e,t){return(0,o.A)({},e,{scroll:(0,o.A)({},e.scroll,{max:t})})},At=function(e,t,n){var r=e.frame;Ye(t,e)&&ge(!1),e.subject.withPlaceholder&&ge(!1);var i=Nt(e.axis,t.displaceBy).point,a=function(e,t,n){var r=e.axis;if("virtual"===e.descriptor.mode)return Ne(r.line,t[r.line]);var i=e.subject.page.contentBox[r.size],o=Ve(e.descriptor.id,n).reduce((function(e,t){return e+t.client.marginBox[r.size]}),0)+t[r.line]-i;return o<=0?null:Ne(r.line,o)}(e,i,n),s={placeholderSize:i,increasedBy:a,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r){var l=je({page:e.subject.page,withPlaceholder:s,axis:e.axis,frame:e.frame});return(0,o.A)({},e,{subject:l})}var c=a?Se(r.scroll.max,a):r.scroll.max,u=Tt(r,c),d=je({page:e.subject.page,withPlaceholder:s,axis:e.axis,frame:u});return(0,o.A)({},e,{subject:d,frame:u})},It=function(e){var t=e.isMovingForward,n=e.previousPageBorderBoxCenter,r=e.draggable,i=e.isOver,o=e.draggables,a=e.droppables,s=e.viewport,l=e.afterCritical,c=function(e){var t=e.isMovingForward,n=e.pageBorderBoxCenter,r=e.source,i=e.droppables,o=e.viewport,a=r.subject.active;if(!a)return null;var s=r.axis,l=Xe(a[s.start],a[s.end]),c=qe(i).filter((function(e){return e!==r})).filter((function(e){return e.isEnabled})).filter((function(e){return Boolean(e.subject.active)})).filter((function(e){return et(o.frame)(kt(e))})).filter((function(e){var n=kt(e);return t?a[s.crossAxisEnd]<n[s.crossAxisEnd]:n[s.crossAxisStart]<a[s.crossAxisStart]})).filter((function(e){var t=kt(e),n=Xe(t[s.start],t[s.end]);return l(t[s.start])||l(t[s.end])||n(a[s.start])||n(a[s.end])})).sort((function(e,n){var r=kt(e)[s.crossAxisStart],i=kt(n)[s.crossAxisStart];return t?r-i:i-r})).filter((function(e,t,n){return kt(e)[s.crossAxisStart]===kt(n[0])[s.crossAxisStart]}));if(!c.length)return null;if(1===c.length)return c[0];var u=c.filter((function(e){return Xe(kt(e)[s.start],kt(e)[s.end])(n[s.line])}));return 1===u.length?u[0]:u.length>1?u.sort((function(e,t){return kt(e)[s.start]-kt(t)[s.start]}))[0]:c.sort((function(e,t){var r=Ae(n,Pe(kt(e))),i=Ae(n,Pe(kt(t)));return r!==i?r-i:kt(e)[s.start]-kt(t)[s.start]}))[0]}({isMovingForward:t,pageBorderBoxCenter:n,source:i,droppables:a,viewport:s});if(!c)return null;var u=Ve(c.descriptor.id,o),d=function(e){var t=e.pageBorderBoxCenter,n=e.viewport,r=e.destination,i=e.insideDestination,o=e.afterCritical,a=i.filter((function(e){return at({target:Ot(e,o),destination:r,viewport:n.frame,withDroppableDisplacement:!0})})).sort((function(e,n){var i=Te(t,yt(r,Ct(e,o))),a=Te(t,yt(r,Ct(n,o)));return i<a?-1:a<i?1:e.descriptor.index-n.descriptor.index}));return a[0]||null}({pageBorderBoxCenter:n,viewport:s,destination:c,insideDestination:u,afterCritical:l}),f=function(e){var t=e.previousPageBorderBoxCenter,n=e.moveRelativeTo,r=e.insideDestination,i=e.draggable,o=e.draggables,a=e.destination,s=e.viewport,l=e.afterCritical;if(!n){if(r.length)return null;var c={displaced:Ze,displacedBy:Qe,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},u=bt({impact:c,draggable:i,droppable:a,draggables:o,afterCritical:l}),d=Ye(i,a)?a:At(a,i,o);return Et({draggable:i,destination:d,newPageBorderBoxCenter:u,viewport:s.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?c:null}var f=Boolean(t[a.axis.line]<=n.page.borderBox.center[a.axis.line]),p=function(){var e=n.descriptor.index;return n.descriptor.id===i.descriptor.id||f?e:e+1}(),h=Nt(a.axis,i.displaceBy);return ct({draggable:i,insideDestination:r,destination:a,viewport:s,displacedBy:h,last:Ze,index:p})}({previousPageBorderBoxCenter:n,destination:c,draggable:r,draggables:o,moveRelativeTo:d,insideDestination:u,viewport:s,afterCritical:l});if(!f)return null;var p=bt({impact:f,draggable:r,droppable:c,draggables:o,afterCritical:l});return{clientSelection:_t({pageBorderBoxCenter:p,draggable:r,viewport:s}),impact:f,scrollJumpRequest:null}},Dt=function(e){var t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null},Pt=function(e){var t=e.state,n=e.type,r=function(e,t){var n=Dt(e);return n?t[n]:null}(t.impact,t.dimensions.droppables),i=Boolean(r),o=t.dimensions.droppables[t.critical.droppable.id],a=r||o,s=a.axis.direction,l="vertical"===s&&("MOVE_UP"===n||"MOVE_DOWN"===n)||"horizontal"===s&&("MOVE_LEFT"===n||"MOVE_RIGHT"===n);if(l&&!i)return null;var c="MOVE_DOWN"===n||"MOVE_RIGHT"===n,u=t.dimensions.draggables[t.critical.draggable.id],d=t.current.page.borderBoxCenter,f=t.dimensions,p=f.draggables,h=f.droppables;return l?St({isMovingForward:c,previousPageBorderBoxCenter:d,draggable:u,destination:a,draggables:p,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):It({isMovingForward:c,previousPageBorderBoxCenter:d,draggable:u,isOver:a,draggables:p,droppables:h,viewport:t.viewport,afterCritical:t.afterCritical})};function Rt(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function jt(e){var t=Xe(e.top,e.bottom),n=Xe(e.left,e.right);return function(e){return t(e.y)&&n(e.x)}}function Mt(e){var t=e.pageBorderBox,n=e.draggable,r=e.droppables,i=qe(r).filter((function(e){if(!e.isEnabled)return!1;var n,r,i=e.subject.active;if(!i)return!1;if(r=i,!((n=t).left<r.right&&n.right>r.left&&n.top<r.bottom&&n.bottom>r.top))return!1;if(jt(i)(t.center))return!0;var o=e.axis,a=i.center[o.crossAxisLine],s=t[o.crossAxisStart],l=t[o.crossAxisEnd],c=Xe(i[o.crossAxisStart],i[o.crossAxisEnd]),u=c(s),d=c(l);return!u&&!d||(u?s<a:l>a)}));return i.length?1===i.length?i[0].descriptor.id:function(e){var t=e.pageBorderBox,n=e.draggable,r=e.candidates,i=n.page.borderBox.center,o=r.map((function(e){var n=e.axis,r=Ne(e.axis.line,t.center[n.line],e.page.borderBox.center[n.crossAxisLine]);return{id:e.descriptor.id,distance:Te(i,r)}})).sort((function(e,t){return t.distance-e.distance}));return o[0]?o[0].id:null}({pageBorderBox:t,draggable:n,candidates:i}):null}var Lt=function(e,t){return J(De(e,t))};function zt(e){var t=e.displaced,n=e.id;return Boolean(t.visible[n]||t.invisible[n])}var Ft=function(e){var t=e.pageOffset,n=e.draggable,r=e.draggables,i=e.droppables,o=e.previousImpact,a=e.viewport,s=e.afterCritical,l=Lt(n.page.borderBox,t),c=Mt({pageBorderBox:l,draggable:n,droppables:i});if(!c)return Je;var u=i[c],d=Ve(u.descriptor.id,r),f=function(e,t){var n=e.frame;return n?Lt(t,n.scroll.diff.value):t}(u,l);return function(e){var t=e.draggable,n=e.pageBorderBoxWithDroppableScroll,r=e.previousImpact,i=e.destination,o=e.insideDestination,a=e.afterCritical;if(!i.isCombineEnabled)return null;var s=i.axis,l=Nt(i.axis,t.displaceBy),c=l.value,u=n[s.start],d=n[s.end],f=Fe(Ge(t,o),(function(e){var t=e.descriptor.id,n=e.page.borderBox,i=n[s.size]/4,o=ut(t,a),l=zt({displaced:r.displaced,id:t});return o?l?d>n[s.start]+i&&d<n[s.end]-i:u>n[s.start]-c+i&&u<n[s.end]-c-i:l?d>n[s.start]+c+i&&d<n[s.end]+c-i:u>n[s.start]+i&&u<n[s.end]-i}));return f?{displacedBy:l,displaced:r.displaced,at:{type:"COMBINE",combine:{draggableId:f.descriptor.id,droppableId:i.descriptor.id}}}:null}({pageBorderBoxWithDroppableScroll:f,draggable:n,previousImpact:o,destination:u,insideDestination:d,afterCritical:s})||function(e){var t=e.pageBorderBoxWithDroppableScroll,n=e.draggable,r=e.destination,i=e.insideDestination,o=e.last,a=e.viewport,s=e.afterCritical,l=r.axis,c=Nt(r.axis,n.displaceBy),u=c.value,d=t[l.start],f=t[l.end],p=function(e){var t=e.draggable,n=e.closest,r=e.inHomeList;return n?r&&n.descriptor.index>t.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}({draggable:n,closest:Fe(Ge(n,i),(function(e){var t=e.descriptor.id,n=e.page.borderBox.center[l.line],r=ut(t,s),i=zt({displaced:o,id:t});return r?i?f<=n:d<n-u:i?f<=n+u:d<n})),inHomeList:Ye(n,r)});return ct({draggable:n,insideDestination:i,destination:r,viewport:a,last:o,displacedBy:c,index:p})}({pageBorderBoxWithDroppableScroll:f,draggable:n,destination:u,insideDestination:d,last:o.displaced,viewport:a,afterCritical:s})},Bt=function(e,t){var n;return(0,o.A)({},e,((n={})[t.descriptor.id]=t,n))},Ut=function(e){var t=e.previousImpact,n=e.impact,r=e.droppables,i=Dt(t),a=Dt(n);if(!i)return r;if(i===a)return r;var s=r[i];if(!s.subject.withPlaceholder)return r;var l=function(e){var t=e.subject.withPlaceholder;t||ge(!1);var n=e.frame;if(!n){var r=je({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return(0,o.A)({},e,{subject:r})}var i=t.oldFrameMaxScroll;i||ge(!1);var a=Tt(n,i),s=je({page:e.subject.page,axis:e.axis,frame:a,withPlaceholder:null});return(0,o.A)({},e,{subject:s,frame:a})}(s);return Bt(r,l)},$t=function(e){var t=e.state,n=e.clientSelection,r=e.dimensions,i=e.viewport,a=e.impact,s=e.scrollJumpRequest,l=i||t.viewport,c=r||t.dimensions,u=n||t.current.client.selection,d=ke(u,t.initial.client.selection),f={offset:d,selection:u,borderBoxCenter:Se(t.initial.client.borderBoxCenter,d)},p={selection:Se(f.selection,l.scroll.current),borderBoxCenter:Se(f.borderBoxCenter,l.scroll.current),offset:Se(f.offset,l.scroll.diff.value)},h={client:f,page:p};if("COLLECTING"===t.phase)return(0,o.A)({phase:"COLLECTING"},t,{dimensions:c,viewport:l,current:h});var m=c.draggables[t.critical.draggable.id],g=a||Ft({pageOffset:p.offset,draggable:m,draggables:c.draggables,droppables:c.droppables,previousImpact:t.impact,viewport:l,afterCritical:t.afterCritical}),v=function(e){var t=e.draggable,n=e.draggables,r=e.droppables,i=e.previousImpact,o=e.impact,a=Ut({previousImpact:i,impact:o,droppables:r}),s=Dt(o);if(!s)return a;var l=r[s];if(Ye(t,l))return a;if(l.subject.withPlaceholder)return a;var c=At(l,t,n);return Bt(a,c)}({draggable:m,impact:g,previousImpact:t.impact,draggables:c.draggables,droppables:c.droppables});return(0,o.A)({},t,{current:h,dimensions:{draggables:c.draggables,droppables:v},impact:g,viewport:l,scrollJumpRequest:s||null,forceShouldAnimate:!s&&null})};var qt=function(e){var t=e.impact,n=e.viewport,r=e.draggables,i=e.destination,a=e.forceShouldAnimate,s=t.displaced,l=function(e,t){return e.map((function(e){return t[e]}))}(s.all,r),c=st({afterDragging:l,destination:i,displacedBy:t.displacedBy,viewport:n.frame,forceShouldAnimate:a,last:s});return(0,o.A)({},t,{displaced:c})},Ht=function(e){var t=e.impact,n=e.draggable,r=e.droppable,i=e.draggables,o=e.viewport,a=e.afterCritical,s=bt({impact:t,draggable:n,draggables:i,droppable:r,afterCritical:a});return _t({pageBorderBoxCenter:s,draggable:n,viewport:o})},Vt=function(e){var t=e.state,n=e.dimensions,r=e.viewport;"SNAP"!==t.movementMode&&ge(!1);var i=t.impact,o=r||t.viewport,a=n||t.dimensions,s=a.draggables,l=a.droppables,c=s[t.critical.draggable.id],u=Dt(i);u||ge(!1);var d=l[u],f=qt({impact:i,viewport:o,destination:d,draggables:s}),p=Ht({impact:f,draggable:c,droppable:d,draggables:s,viewport:o,afterCritical:t.afterCritical});return $t({impact:f,clientSelection:p,state:t,dimensions:a,viewport:o})},Wt=function(e){var t=e.draggable,n=e.home,r=e.draggables,i=e.viewport,o=Nt(n.axis,t.displaceBy),a=Ve(n.descriptor.id,r),s=a.indexOf(t);-1===s&&ge(!1);var l,c=a.slice(s+1),u=c.reduce((function(e,t){return e[t.descriptor.id]=!0,e}),{}),d={inVirtualList:"virtual"===n.descriptor.mode,displacedBy:o,effected:u};return{impact:{displaced:st({afterDragging:c,destination:n,displacedBy:o,last:null,viewport:i.frame,forceShouldAnimate:!1}),displacedBy:o,at:{type:"REORDER",destination:(l=t.descriptor,{index:l.index,droppableId:l.droppableId})}},afterCritical:d}},Kt=function(e){0},Gt=function(e){0},Yt=function(e){var t=e.additions,n=e.updatedDroppables,r=e.viewport,i=r.scroll.diff.value;return t.map((function(e){var t=e.descriptor.droppableId,a=function(e){var t=e.frame;return t||ge(!1),t}(n[t]),s=a.scroll.diff.value,l=function(e){var t=e.draggable,n=e.offset,r=e.initialWindowScroll,i=ie(t.client,n),a=oe(i,r);return(0,o.A)({},t,{placeholder:(0,o.A)({},t.placeholder,{client:i}),client:i,page:a})}({draggable:e,offset:Se(i,s),initialWindowScroll:r.scroll.initial});return l}))},Qt=function(e){return"SNAP"===e.movementMode},Zt=function(e,t,n){var r=function(e,t){return{draggables:e.draggables,droppables:Bt(e.droppables,t)}}(e.dimensions,t);return!Qt(e)||n?$t({state:e,dimensions:r}):Vt({state:e,dimensions:r})};function Jt(e){return e.isDragging&&"SNAP"===e.movementMode?(0,o.A)({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var Xt={phase:"IDLE",completed:null,shouldFlush:!1},en=function(e,t){if(void 0===e&&(e=Xt),"FLUSH"===t.type)return(0,o.A)({},Xt,{shouldFlush:!0});if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&ge(!1);var n=t.payload,r=n.critical,i=n.clientSelection,a=n.viewport,s=n.dimensions,l=n.movementMode,c=s.draggables[r.draggable.id],u=s.droppables[r.droppable.id],d={selection:i,borderBoxCenter:c.client.borderBox.center,offset:Ee},f={client:d,page:{selection:Se(d.selection,a.scroll.initial),borderBoxCenter:Se(d.selection,a.scroll.initial),offset:Se(d.selection,a.scroll.diff.value)}},p=qe(s.droppables).every((function(e){return!e.isFixedOnPage})),h=Wt({draggable:c,home:u,draggables:s.draggables,viewport:a}),m=h.impact;return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:l,dimensions:s,initial:f,current:f,isWindowScrollAllowed:p,impact:m,afterCritical:h.afterCritical,onLiftImpact:m,viewport:a,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&ge(!1),(0,o.A)({phase:"COLLECTING"},e,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&ge(!1),function(e){var t=e.state,n=e.published;Kt();var r=n.modified.map((function(e){var n=t.dimensions.droppables[e.droppableId];return Me(n,e.scroll)})),i=(0,o.A)({},t.dimensions.droppables,{},Ue(r)),a=$e(Yt({additions:n.additions,updatedDroppables:i,viewport:t.viewport})),s=(0,o.A)({},t.dimensions.draggables,{},a);n.removals.forEach((function(e){delete s[e]}));var l={droppables:i,draggables:s},c=Dt(t.impact),u=c?l.droppables[c]:null,d=l.draggables[t.critical.draggable.id],f=l.droppables[t.critical.droppable.id],p=Wt({draggable:d,home:f,draggables:s,viewport:t.viewport}),h=p.impact,m=p.afterCritical,g=u&&u.isCombineEnabled?t.impact:h,v=Ft({pageOffset:t.current.page.offset,draggable:l.draggables[t.critical.draggable.id],draggables:l.draggables,droppables:l.droppables,previousImpact:g,viewport:t.viewport,afterCritical:m});Gt();var y=(0,o.A)({phase:"DRAGGING"},t,{phase:"DRAGGING",impact:v,onLiftImpact:h,dimensions:l,afterCritical:m,forceShouldAnimate:!1});return"COLLECTING"===t.phase?y:(0,o.A)({phase:"DROP_PENDING"},y,{phase:"DROP_PENDING",reason:t.reason,isWaiting:!1})}({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;Rt(e)||ge(!1);var g=t.payload.client;return Ce(g,e.current.client.selection)?e:$t({state:e,clientSelection:g,impact:Qt(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return Jt(e);if("COLLECTING"===e.phase)return Jt(e);Rt(e)||ge(!1);var v=t.payload,y=v.id,b=v.newScroll,w=e.dimensions.droppables[y];if(!w)return e;var x=Me(w,b);return Zt(e,x,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;Rt(e)||ge(!1);var _=t.payload,E=_.id,S=_.isEnabled,k=e.dimensions.droppables[E];k||ge(!1),k.isEnabled===S&&ge(!1);var C=(0,o.A)({},k,{isEnabled:S});return Zt(e,C,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;Rt(e)||ge(!1);var O=t.payload,N=O.id,T=O.isCombineEnabled,A=e.dimensions.droppables[N];A||ge(!1),A.isCombineEnabled===T&&ge(!1);var I=(0,o.A)({},A,{isCombineEnabled:T});return Zt(e,I,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;Rt(e)||ge(!1),e.isWindowScrollAllowed||ge(!1);var D=t.payload.newScroll;if(Ce(e.viewport.scroll.current,D))return Jt(e);var P=wt(e.viewport,D);return Qt(e)?Vt({state:e,viewport:P}):$t({state:e,viewport:P})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!Rt(e))return e;var R=t.payload.maxScroll;if(Ce(R,e.viewport.scroll.max))return e;var j=(0,o.A)({},e.viewport,{scroll:(0,o.A)({},e.viewport.scroll,{max:R})});return(0,o.A)({phase:"DRAGGING"},e,{viewport:j})}if("MOVE_UP"===t.type||"MOVE_DOWN"===t.type||"MOVE_LEFT"===t.type||"MOVE_RIGHT"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&ge(!1);var M=Pt({state:e,type:t.type});return M?$t({state:e,impact:M.impact,clientSelection:M.clientSelection,scrollJumpRequest:M.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){var L=t.payload.reason;return"COLLECTING"!==e.phase&&ge(!1),(0,o.A)({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:L})}if("DROP_ANIMATE"===t.type){var z=t.payload,F=z.completed,B=z.dropDuration,U=z.newHomeClientOffset;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&ge(!1),{phase:"DROP_ANIMATING",completed:F,dropDuration:B,newHomeClientOffset:U,dimensions:e.dimensions}}return"DROP_COMPLETE"===t.type?{phase:"IDLE",completed:t.payload.completed,shouldFlush:!1}:e},tn=function(e){return{type:"LIFT",payload:e}},nn=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},rn=function(){return{type:"COLLECTION_STARTING",payload:null}},on=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},an=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},sn=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},ln=function(e){return{type:"MOVE",payload:e}},cn=function(){return{type:"MOVE_UP",payload:null}},un=function(){return{type:"MOVE_DOWN",payload:null}},dn=function(){return{type:"MOVE_RIGHT",payload:null}},fn=function(){return{type:"MOVE_LEFT",payload:null}},pn=function(){return{type:"FLUSH",payload:null}},hn=function(e){return{type:"DROP_COMPLETE",payload:e}},mn=function(e){return{type:"DROP",payload:e}},gn=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};var vn="cubic-bezier(.2,1,.1,1)",yn={drop:0,combining:.7},bn={drop:.75},wn=.2+"s "+"cubic-bezier(0.2, 0, 0, 1)",xn={fluid:"opacity "+wn,snap:"transform "+wn+", opacity "+wn,drop:function(e){var t=e+"s "+vn;return"transform "+t+", opacity "+t},outOfTheWay:"transform "+wn,placeholder:"height "+wn+", width "+wn+", margin "+wn},_n=function(e){return Ce(e,Ee)?null:"translate("+e.x+"px, "+e.y+"px)"},En=_n,Sn=function(e,t){var n=_n(e);return n?t?n+" scale("+bn.drop+")":n:null},kn=.33,Cn=.55,On=Cn-kn,Nn=function(e){var t=e.getState,n=e.dispatch;return function(e){return function(r){if("DROP"===r.type){var i=t(),a=r.payload.reason;if("COLLECTING"!==i.phase){if("IDLE"!==i.phase){"DROP_PENDING"===i.phase&&i.isWaiting&&ge(!1),"DRAGGING"!==i.phase&&"DROP_PENDING"!==i.phase&&ge(!1);var s=i.critical,l=i.dimensions,c=l.draggables[i.critical.draggable.id],u=function(e){var t=e.draggables,n=e.reason,r=e.lastImpact,i=e.home,a=e.viewport,s=e.onLiftImpact;return r.at&&"DROP"===n?"REORDER"===r.at.type?{impact:r,didDropInsideDroppable:!0}:{impact:(0,o.A)({},r,{displaced:Ze}),didDropInsideDroppable:!0}:{impact:qt({draggables:t,impact:s,destination:i,viewport:a,forceShouldAnimate:!0}),didDropInsideDroppable:!1}}({reason:a,lastImpact:i.impact,afterCritical:i.afterCritical,onLiftImpact:i.onLiftImpact,home:i.dimensions.droppables[i.critical.droppable.id],viewport:i.viewport,draggables:i.dimensions.draggables}),d=u.impact,f=u.didDropInsideDroppable,p=f?We(d):null,h=f?Ke(d):null,m={index:s.draggable.index,droppableId:s.droppable.id},g={draggableId:c.descriptor.id,type:c.descriptor.type,source:m,reason:a,mode:i.movementMode,destination:p,combine:h},v=function(e){var t=e.impact,n=e.draggable,r=e.dimensions,i=e.viewport,o=e.afterCritical,a=r.draggables,s=r.droppables,l=Dt(t),c=l?s[l]:null,u=s[n.descriptor.droppableId],d=Ht({impact:t,draggable:n,draggables:a,afterCritical:o,droppable:c||u,viewport:i});return ke(d,n.client.borderBox.center)}({impact:d,draggable:c,dimensions:l,viewport:i.viewport,afterCritical:i.afterCritical}),y={critical:i.critical,afterCritical:i.afterCritical,result:g,impact:d};if(!Ce(i.current.client.offset,v)||Boolean(g.combine)){var b=function(e){var t=e.current,n=e.destination,r=e.reason,i=Te(t,n);if(i<=0)return kn;if(i>=1500)return Cn;var o=kn+On*(i/1500);return Number(("CANCEL"===r?.6*o:o).toFixed(2))}({current:i.current.client.offset,destination:v,reason:a});n(function(e){return{type:"DROP_ANIMATE",payload:e}}({newHomeClientOffset:v,dropDuration:b,completed:y}))}else n(hn({completed:y}))}}else n(function(e){return{type:"DROP_PENDING",payload:e}}({reason:a}))}else e(r)}}},Tn=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function An(e){var t=e.onWindowScroll;var n=ce((function(){t(Tn())})),r=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(t){t.target!==window&&t.target!==window.document||e()}}}(n),i=de;function o(){return i!==de}return{start:function(){o()&&ge(!1),i=fe(window,[r])},stop:function(){o()||ge(!1),n.cancel(),i(),i=de},isActive:o}}var In=function(e){var t=An({onWindowScroll:function(t){e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return function(e){return function(n){t.isActive()||"INITIAL_PUBLISH"!==n.type||t.start(),t.isActive()&&function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(n)&&t.stop(),e(n)}}},Dn=function(){var e=[];return{add:function(t){var n=setTimeout((function(){return function(t){var n=ze(e,(function(e){return e.timerId===t}));-1===n&&ge(!1),e.splice(n,1)[0].callback()}(n)})),r={timerId:n,callback:t};e.push(r)},flush:function(){if(e.length){var t=[].concat(e);e.length=0,t.forEach((function(e){clearTimeout(e.timerId),e.callback()}))}}}},Pn=function(e,t){Kt(),t(),Gt()},Rn=function(e,t){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t}},jn=function(e,t,n,r){if(e){var i=function(e){var t=!1,n=!1,r=setTimeout((function(){n=!0})),i=function(i){t||n||(t=!0,e(i),clearTimeout(r))};return i.wasCalled=function(){return t},i}(n);e(t,{announce:i}),i.wasCalled()||n(r(t))}else n(r(t))},Mn=function(e,t){var n=function(e,t){var n=Dn(),r=null,i=function(n){r||ge(!1),r=null,Pn(0,(function(){return jn(e().onDragEnd,n,t,_e.onDragEnd)}))};return{beforeCapture:function(t,n){r&&ge(!1),Pn(0,(function(){var r=e().onBeforeCapture;r&&r({draggableId:t,mode:n})}))},beforeStart:function(t,n){r&&ge(!1),Pn(0,(function(){var r=e().onBeforeDragStart;r&&r(Rn(t,n))}))},start:function(i,o){r&&ge(!1);var a=Rn(i,o);r={mode:o,lastCritical:i,lastLocation:a.source,lastCombine:null},n.add((function(){Pn(0,(function(){return jn(e().onDragStart,a,t,_e.onDragStart)}))}))},update:function(i,a){var s=We(a),l=Ke(a);r||ge(!1);var c=!function(e,t){if(e===t)return!0;var n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r}(i,r.lastCritical);c&&(r.lastCritical=i);var u,d,f=(d=s,!(null==(u=r.lastLocation)&&null==d||null!=u&&null!=d&&u.droppableId===d.droppableId&&u.index===d.index));f&&(r.lastLocation=s);var p=!function(e,t){return null==e&&null==t||null!=e&&null!=t&&e.draggableId===t.draggableId&&e.droppableId===t.droppableId}(r.lastCombine,l);if(p&&(r.lastCombine=l),c||f||p){var h=(0,o.A)({},Rn(i,r.mode),{combine:l,destination:s});n.add((function(){Pn(0,(function(){return jn(e().onDragUpdate,h,t,_e.onDragUpdate)}))}))}},flush:function(){r||ge(!1),n.flush()},drop:i,abort:function(){if(r){var e=(0,o.A)({},Rn(r.lastCritical,r.mode),{combine:null,destination:null,reason:"CANCEL"});i(e)}}}}(e,t);return function(e){return function(t){return function(r){if("BEFORE_INITIAL_CAPTURE"!==r.type){if("INITIAL_PUBLISH"===r.type){var i=r.payload.critical;return n.beforeStart(i,r.payload.movementMode),t(r),void n.start(i,r.payload.movementMode)}if("DROP_COMPLETE"===r.type){var o=r.payload.completed.result;return n.flush(),t(r),void n.drop(o)}if(t(r),"FLUSH"!==r.type){var a=e.getState();"DRAGGING"===a.phase&&n.update(a.critical,a.impact)}else n.abort()}else n.beforeCapture(r.payload.draggableId,r.payload.movementMode)}}}},Ln=function(e){return function(t){return function(n){if("DROP_ANIMATION_FINISHED"===n.type){var r=e.getState();"DROP_ANIMATING"!==r.phase&&ge(!1),e.dispatch(hn({completed:r.completed}))}else t(n)}}},zn=function(e){var t=null,n=null;return function(r){return function(i){if("FLUSH"!==i.type&&"DROP_COMPLETE"!==i.type&&"DROP_ANIMATION_FINISHED"!==i.type||(n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)),r(i),"DROP_ANIMATE"===i.type){var o={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};n=requestAnimationFrame((function(){n=null,t=fe(window,[o])}))}}}},Fn=function(e){return function(t){return function(n){if(t(n),"PUBLISH_WHILE_DRAGGING"===n.type){var r=e.getState();"DROP_PENDING"===r.phase&&(r.isWaiting||e.dispatch(mn({reason:r.reason})))}}}},Bn=a.Zz,Un=function(e){var t,n=e.dimensionMarshal,r=e.focusMarshal,i=e.styleMarshal,o=e.getResponders,s=e.announce,l=e.autoScroller;return(0,a.y$)(en,Bn((0,a.Tw)((t=i,function(){return function(e){return function(n){"INITIAL_PUBLISH"===n.type&&t.dragging(),"DROP_ANIMATE"===n.type&&t.dropping(n.payload.completed.result.reason),"FLUSH"!==n.type&&"DROP_COMPLETE"!==n.type||t.resting(),e(n)}}}),function(e){return function(){return function(t){return function(n){"DROP_COMPLETE"!==n.type&&"FLUSH"!==n.type&&"DROP_ANIMATE"!==n.type||e.stopPublishing(),t(n)}}}}(n),function(e){return function(t){var n=t.getState,r=t.dispatch;return function(t){return function(i){if("LIFT"===i.type){var o=i.payload,a=o.id,s=o.clientSelection,l=o.movementMode,c=n();"DROP_ANIMATING"===c.phase&&r(hn({completed:c.completed})),"IDLE"!==n().phase&&ge(!1),r(pn()),r({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:a,movementMode:l}});var u={draggableId:a,scrollOptions:{shouldPublishImmediately:"SNAP"===l}},d=e.startPublishing(u),f=d.critical,p=d.dimensions,h=d.viewport;r({type:"INITIAL_PUBLISH",payload:{critical:f,dimensions:p,clientSelection:s,movementMode:l,viewport:h}})}else t(i)}}}}(n),Nn,Ln,zn,Fn,function(e){return function(t){return function(n){return function(r){if(function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(r))return e.stop(),void n(r);if("INITIAL_PUBLISH"===r.type){n(r);var i=t.getState();return"DRAGGING"!==i.phase&&ge(!1),void e.start(i)}n(r),e.scroll(t.getState())}}}}(l),In,function(e){var t=!1;return function(){return function(n){return function(r){if("INITIAL_PUBLISH"===r.type)return t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),void e.tryRestoreFocusRecorded();if(n(r),t){if("FLUSH"===r.type)return t=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===r.type){t=!1;var i=r.payload.completed.result;i.combine&&e.tryShiftRecord(i.draggableId,i.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}}(r),Mn(o,s))))};var $n=function(e){var t=e.scrollHeight,n=e.scrollWidth,r=e.height,i=e.width,o=ke({x:n,y:t},{x:i,y:r});return{x:Math.max(0,o.x),y:Math.max(0,o.y)}},qn=function(){var e=document.documentElement;return e||ge(!1),e},Hn=function(){var e=qn();return $n({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},Vn=function(e){var t=e.critical,n=e.scrollOptions,r=e.registry;Kt();var i=function(){var e=Tn(),t=Hn(),n=e.y,r=e.x,i=qn(),o=i.clientWidth,a=i.clientHeight;return{frame:J({top:n,left:r,right:r+o,bottom:n+a}),scroll:{initial:e,current:e,max:t,diff:{value:Ee,displacement:Ee}}}}(),o=i.scroll.current,a=t.droppable,s=r.droppable.getAllByType(a.type).map((function(e){return e.callbacks.getDimensionAndWatchScroll(o,n)})),l=r.draggable.getAllByType(t.draggable.type).map((function(e){return e.getDimension(o)})),c={draggables:$e(l),droppables:Ue(s)};return Gt(),{dimensions:c,critical:t,viewport:i}};function Wn(e,t,n){return n.descriptor.id!==t.id&&(n.descriptor.type===t.type&&"virtual"===e.droppable.getById(n.descriptor.droppableId).descriptor.mode)}var Kn=function(e,t){var n=null,r=function(e){var t=e.registry,n=e.callbacks,r={additions:{},removals:{},modified:{}},i=null,o=function(){i||(n.collectionStarting(),i=requestAnimationFrame((function(){i=null,Kt();var e=r,o=e.additions,a=e.removals,s=e.modified,l=Object.keys(o).map((function(e){return t.draggable.getById(e).getDimension(Ee)})).sort((function(e,t){return e.descriptor.index-t.descriptor.index})),c=Object.keys(s).map((function(e){return{droppableId:e,scroll:t.droppable.getById(e).callbacks.getScrollWhileDragging()}})),u={additions:l,removals:Object.keys(a),modified:c};r={additions:{},removals:{},modified:{}},Gt(),n.publish(u)})))};return{add:function(e){var t=e.descriptor.id;r.additions[t]=e,r.modified[e.descriptor.droppableId]=!0,r.removals[t]&&delete r.removals[t],o()},remove:function(e){var t=e.descriptor;r.removals[t.id]=!0,r.modified[t.droppableId]=!0,r.additions[t.id]&&delete r.additions[t.id],o()},stop:function(){i&&(cancelAnimationFrame(i),i=null,r={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),i=function(t){n||ge(!1);var i=n.critical.draggable;"ADDITION"===t.type&&Wn(e,i,t.value)&&r.add(t.value),"REMOVAL"===t.type&&Wn(e,i,t.value)&&r.remove(t.value)},o={updateDroppableIsEnabled:function(r,i){e.droppable.exists(r)||ge(!1),n&&t.updateDroppableIsEnabled({id:r,isEnabled:i})},updateDroppableIsCombineEnabled:function(r,i){n&&(e.droppable.exists(r)||ge(!1),t.updateDroppableIsCombineEnabled({id:r,isCombineEnabled:i}))},scrollDroppable:function(t,r){n&&e.droppable.getById(t).callbacks.scroll(r)},updateDroppableScroll:function(r,i){n&&(e.droppable.exists(r)||ge(!1),t.updateDroppableScroll({id:r,newScroll:i}))},startPublishing:function(t){n&&ge(!1);var r=e.draggable.getById(t.draggableId),o=e.droppable.getById(r.descriptor.droppableId),a={draggable:r.descriptor,droppable:o.descriptor},s=e.subscribe(i);return n={critical:a,unsubscribe:s},Vn({critical:a,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:function(){if(n){r.stop();var t=n.critical.droppable;e.droppable.getAllByType(t.type).forEach((function(e){return e.callbacks.dragStopped()})),n.unsubscribe(),n=null}}};return o},Gn=function(e,t){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&(e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason)},Yn=function(e){window.scrollBy(e.x,e.y)},Qn=(0,le.A)((function(e){return qe(e).filter((function(e){return!!e.isEnabled&&!!e.frame}))})),Zn=function(e){var t=e.center,n=e.destination,r=e.droppables;if(n){var i=r[n];return i.frame?i:null}var o=function(e,t){var n=Fe(Qn(t),(function(t){return t.frame||ge(!1),jt(t.frame.pageMarginBox)(e)}));return n}(t,r);return o},Jn=.25,Xn=.05,er=28,tr=function(e){return Math.pow(e,2)},nr={stopDampeningAt:1200,accelerateAt:360},rr=function(e){var t=e.startOfRange,n=e.endOfRange,r=e.current,i=n-t;return 0===i?0:(r-t)/i},ir=nr.accelerateAt,or=nr.stopDampeningAt,ar=function(e){var t=e.distanceToEdge,n=e.thresholds,r=e.dragStartTime,i=e.shouldUseTimeDampening,o=function(e,t){if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return er;if(e===t.startScrollingFrom)return 1;var n=rr({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),r=er*tr(1-n);return Math.ceil(r)}(t,n);return 0===o?0:i?Math.max(function(e,t){var n=t,r=or,i=Date.now()-n;if(i>=or)return e;if(i<ir)return 1;var o=rr({startOfRange:ir,endOfRange:r,current:i}),a=e*tr(o);return Math.ceil(a)}(o,r),1):o},sr=function(e){var t=e.container,n=e.distanceToEdges,r=e.dragStartTime,i=e.axis,o=e.shouldUseTimeDampening,a=function(e,t){return{startScrollingFrom:e[t.size]*Jn,maxScrollValueAt:e[t.size]*Xn}}(t,i);return n[i.end]<n[i.start]?ar({distanceToEdge:n[i.end],thresholds:a,dragStartTime:r,shouldUseTimeDampening:o}):-1*ar({distanceToEdge:n[i.start],thresholds:a,dragStartTime:r,shouldUseTimeDampening:o})},lr=Ie((function(e){return 0===e?0:e})),cr=function(e){var t=e.dragStartTime,n=e.container,r=e.subject,i=e.center,o=e.shouldUseTimeDampening,a={top:i.y-n.top,right:n.right-i.x,bottom:n.bottom-i.y,left:i.x-n.left},s=sr({container:n,distanceToEdges:a,dragStartTime:t,axis:nt,shouldUseTimeDampening:o}),l=sr({container:n,distanceToEdges:a,dragStartTime:t,axis:rt,shouldUseTimeDampening:o}),c=lr({x:l,y:s});if(Ce(c,Ee))return null;var u=function(e){var t=e.container,n=e.subject,r=e.proposedScroll,i=n.height>t.height,o=n.width>t.width;return o||i?o&&i?null:{x:o?0:r.x,y:i?0:r.y}:r}({container:n,subject:r,proposedScroll:c});return u?Ce(u,Ee)?null:u:null},ur=Ie((function(e){return 0===e?0:e>0?1:-1})),dr=function(){var e=function(e,t){return e<0?e:e>t?e-t:0};return function(t){var n=t.current,r=t.max,i=t.change,o=Se(n,i),a={x:e(o.x,r.x),y:e(o.y,r.y)};return Ce(a,Ee)?null:a}}(),fr=function(e){var t=e.max,n=e.current,r=e.change,i={x:Math.max(n.x,t.x),y:Math.max(n.y,t.y)},o=ur(r),a=dr({max:i,current:n,change:o});return!a||(0!==o.x&&0===a.x||0!==o.y&&0===a.y)},pr=function(e,t){return fr({current:e.scroll.current,max:e.scroll.max,change:t})},hr=function(e,t){var n=e.frame;return!!n&&fr({current:n.scroll.current,max:n.scroll.max,change:t})},mr=function(e){var t=e.state,n=e.dragStartTime,r=e.shouldUseTimeDampening,i=e.scrollWindow,o=e.scrollDroppable,a=t.current.page.borderBoxCenter,s=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){var l=function(e){var t=e.viewport,n=e.subject,r=e.center,i=e.dragStartTime,o=e.shouldUseTimeDampening,a=cr({dragStartTime:i,container:t.frame,subject:n,center:r,shouldUseTimeDampening:o});return a&&pr(t,a)?a:null}({dragStartTime:n,viewport:t.viewport,subject:s,center:a,shouldUseTimeDampening:r});if(l)return void i(l)}var c=Zn({center:a,destination:Dt(t.impact),droppables:t.dimensions.droppables});if(c){var u=function(e){var t=e.droppable,n=e.subject,r=e.center,i=e.dragStartTime,o=e.shouldUseTimeDampening,a=t.frame;if(!a)return null;var s=cr({dragStartTime:i,container:a.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:o});return s&&hr(t,s)?s:null}({dragStartTime:n,droppable:c,subject:s,center:a,shouldUseTimeDampening:r});u&&o(c.descriptor.id,u)}},gr=function(e){var t=e.move,n=e.scrollDroppable,r=e.scrollWindow,i=function(e,t){if(!hr(e,t))return t;var r=function(e,t){var n=e.frame;return n&&hr(e,t)?dr({current:n.scroll.current,max:n.scroll.max,change:t}):null}(e,t);if(!r)return n(e.descriptor.id,t),null;var i=ke(t,r);return n(e.descriptor.id,i),ke(t,i)},o=function(e,t,n){if(!e)return n;if(!pr(t,n))return n;var i=function(e,t){if(!pr(e,t))return null;var n=e.scroll.max,r=e.scroll.current;return dr({current:r,max:n,change:t})}(t,n);if(!i)return r(n),null;var o=ke(n,i);return r(o),ke(n,o)};return function(e){var n=e.scrollJumpRequest;if(n){var r=Dt(e.impact);r||ge(!1);var a=i(e.dimensions.droppables[r],n);if(a){var s=e.viewport,l=o(e.isWindowScrollAllowed,s,a);l&&function(e,n){var r=Se(e.current.client.selection,n);t({client:r})}(e,l)}}}},vr=function(e){var t=e.scrollDroppable,n=e.scrollWindow,r=e.move,i=function(e){var t=e.scrollWindow,n=e.scrollDroppable,r=ce(t),i=ce(n),o=null,a=function(e){o||ge(!1);var t=o,n=t.shouldUseTimeDampening,a=t.dragStartTime;mr({state:e,scrollWindow:r,scrollDroppable:i,dragStartTime:a,shouldUseTimeDampening:n})};return{start:function(e){Kt(),o&&ge(!1);var t=Date.now(),n=!1,r=function(){n=!0};mr({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:r,scrollDroppable:r}),o={dragStartTime:t,shouldUseTimeDampening:n},Gt(),n&&a(e)},stop:function(){o&&(r.cancel(),i.cancel(),o=null)},scroll:a}}({scrollWindow:n,scrollDroppable:t}),o=gr({move:r,scrollWindow:n,scrollDroppable:t});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&o(e):i.scroll(e))},start:i.start,stop:i.stop}},yr="data-rbd",br=function(){var e=yr+"-drag-handle";return{base:e,draggableId:e+"-draggable-id",contextId:e+"-context-id"}}(),wr=function(){var e=yr+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),xr=function(){var e=yr+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),_r={contextId:yr+"-scroll-container-context-id"},Er=function(e,t){return e.map((function(e){var n=e.styles[t];return n?e.selector+" { "+n+" }":""})).join(" ")},Sr=function(e){var t,n=(t=e,function(e){return"["+e+'="'+t+'"]'}),r=function(){var e="\n cursor: -webkit-grab;\n cursor: grab;\n ";return{selector:n(br.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:e,dragging:"pointer-events: none;",dropAnimating:e}}}(),i=[function(){var e="\n transition: "+xn.outOfTheWay+";\n ";return{selector:n(wr.contextId),styles:{dragging:e,dropAnimating:e,userCancel:e}}}(),r,{selector:n(xr.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n overflow-anchor: none;\n "}}];return{always:Er(i,"always"),resting:Er(i,"resting"),dragging:Er(i,"dragging"),dropAnimating:Er(i,"dropAnimating"),userCancel:Er(i,"userCancel")}},kr="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?r.useLayoutEffect:r.useEffect,Cr=function(){var e=document.querySelector("head");return e||ge(!1),e},Or=function(e){var t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};var Nr=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function Tr(e){return e instanceof Nr(e).HTMLElement}function Ar(e,t){var n="["+br.contextId+'="'+e+'"]',r=Be(document.querySelectorAll(n));if(!r.length)return null;var i=Fe(r,(function(e){return e.getAttribute(br.draggableId)===t}));return i&&Tr(i)?i:null}function Ir(){var e={draggables:{},droppables:{}},t=[];function n(e){t.length&&t.forEach((function(t){return t(e)}))}function r(t){return e.draggables[t]||null}function i(t){return e.droppables[t]||null}return{draggable:{register:function(t){e.draggables[t.descriptor.id]=t,n({type:"ADDITION",value:t})},update:function(t,n){var r=e.draggables[n.descriptor.id];r&&r.uniqueId===t.uniqueId&&(delete e.draggables[n.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:function(t){var i=t.descriptor.id,o=r(i);o&&t.uniqueId===o.uniqueId&&(delete e.draggables[i],n({type:"REMOVAL",value:t}))},getById:function(e){var t=r(e);return t||ge(!1),t},findById:r,exists:function(e){return Boolean(r(e))},getAllByType:function(t){return Le(e.draggables).filter((function(e){return e.descriptor.type===t}))}},droppable:{register:function(t){e.droppables[t.descriptor.id]=t},unregister:function(t){var n=i(t.descriptor.id);n&&t.uniqueId===n.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){var t=i(e);return t||ge(!1),t},findById:i,exists:function(e){return Boolean(i(e))},getAllByType:function(t){return Le(e.droppables).filter((function(e){return e.descriptor.type===t}))}},subscribe:function(e){return t.push(e),function(){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var Dr=r.createContext(null),Pr=function(){var e=document.body;return e||ge(!1),e},Rr={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},jr=function(e){return"rbd-announcement-"+e};var Mr=0,Lr={separator:"::"};function zr(e,t){return void 0===t&&(t=Lr),Y((function(){return""+e+t.separator+Mr++}),[t.separator,e])}var Fr=r.createContext(null);function Br(e){0}function Ur(e,t){Br()}function $r(e){var t=(0,r.useRef)(e);return(0,r.useEffect)((function(){t.current=e})),t}var qr,Hr=((qr={})[13]=!0,qr[9]=!0,qr),Vr=function(e){Hr[e.keyCode]&&e.preventDefault()},Wr=function(){var e="visibilitychange";return"undefined"===typeof document?e:Fe([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}();var Kr,Gr={type:"IDLE"};function Yr(e){var t=e.cancel,n=e.completed,r=e.getPhase,i=e.setPhase;return[{eventName:"mousemove",fn:function(e){var t=e.button,n=e.clientX,o=e.clientY;if(0===t){var a={x:n,y:o},s=r();if("DRAGGING"===s.type)return e.preventDefault(),void s.actions.move(a);if("PENDING"!==s.type&&ge(!1),function(e,t){return Math.abs(t.x-e.x)>=5||Math.abs(t.y-e.y)>=5}(s.point,a)){e.preventDefault();var l=s.actions.fluidLift(a);i({type:"DRAGGING",actions:l})}}}},{eventName:"mouseup",fn:function(e){var i=r();"DRAGGING"===i.type?(e.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===r().type&&e.preventDefault(),t()}},{eventName:"keydown",fn:function(e){if("PENDING"!==r().type)return 27===e.keyCode?(e.preventDefault(),void t()):void Vr(e);t()}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===r().type&&t()}},{eventName:"webkitmouseforcedown",fn:function(e){var n=r();"IDLE"===n.type&&ge(!1),n.actions.shouldRespectForcePress()?t():e.preventDefault()}},{eventName:Wr,fn:t}]}function Qr(){}var Zr=((Kr={})[34]=!0,Kr[33]=!0,Kr[36]=!0,Kr[35]=!0,Kr);function Jr(e,t){function n(){t(),e.cancel()}return[{eventName:"keydown",fn:function(r){return 27===r.keyCode?(r.preventDefault(),void n()):32===r.keyCode?(r.preventDefault(),t(),void e.drop()):40===r.keyCode?(r.preventDefault(),void e.moveDown()):38===r.keyCode?(r.preventDefault(),void e.moveUp()):39===r.keyCode?(r.preventDefault(),void e.moveRight()):37===r.keyCode?(r.preventDefault(),void e.moveLeft()):void(Zr[r.keyCode]?r.preventDefault():Vr(r))}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:Wr,fn:n}]}var Xr={type:"IDLE"};var ei={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function ti(e,t){if(null==t)return!1;if(Boolean(ei[t.tagName.toLowerCase()]))return!0;var n=t.getAttribute("contenteditable");return"true"===n||""===n||t!==e&&ti(e,t.parentElement)}function ni(e,t){var n=t.target;return!!Tr(n)&&ti(e,n)}var ri=function(e){return J(e.getBoundingClientRect()).center};var ii=function(){var e="matches";return"undefined"===typeof document?e:Fe([e,"msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||e}();function oi(e,t){return null==e?null:e[ii](t)?e:oi(e.parentElement,t)}function ai(e,t){return e.closest?e.closest(t):oi(e,t)}function si(e,t){var n,r=t.target;if(!((n=r)instanceof Nr(n).Element))return null;var i=function(e){return"["+br.contextId+'="'+e+'"]'}(e),o=ai(r,i);return o&&Tr(o)?o:null}function li(e){e.preventDefault()}function ci(e){var t=e.expected,n=e.phase,r=e.isLockActive;e.shouldWarn;return!!r()&&t===n}function ui(e){var t=e.lockAPI,n=e.store,r=e.registry,i=e.draggableId;if(t.isClaimed())return!1;var o=r.draggable.findById(i);return!!o&&(!!o.options.isEnabled&&!!Gn(n.getState(),i))}function di(e){var t=e.lockAPI,n=e.contextId,r=e.store,i=e.registry,a=e.draggableId,s=e.forceSensorStop,l=e.sourceEvent;if(!ui({lockAPI:t,store:r,registry:i,draggableId:a}))return null;var c=i.draggable.getById(a),u=function(e,t){var n="["+wr.contextId+'="'+e+'"]',r=Fe(Be(document.querySelectorAll(n)),(function(e){return e.getAttribute(wr.id)===t}));return r&&Tr(r)?r:null}(n,c.descriptor.id);if(!u)return null;if(l&&!c.options.canDragInteractiveElements&&ni(u,l))return null;var d=t.claim(s||de),f="PRE_DRAG";function p(){return c.options.shouldRespectForcePress}function h(){return t.isActive(d)}var m=function(e,t){ci({expected:e,phase:f,isLockActive:h,shouldWarn:!0})&&r.dispatch(t())}.bind(null,"DRAGGING");function g(e){function n(){t.release(),f="COMPLETED"}function i(t,i){if(void 0===i&&(i={shouldBlockNextClick:!1}),e.cleanup(),i.shouldBlockNextClick){var o=fe(window,[{eventName:"click",fn:li,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(o)}n(),r.dispatch(mn({reason:t}))}return"PRE_DRAG"!==f&&(n(),"PRE_DRAG"!==f&&ge(!1)),r.dispatch(tn(e.liftActionArgs)),f="DRAGGING",(0,o.A)({isActive:function(){return ci({expected:"DRAGGING",phase:f,isLockActive:h,shouldWarn:!1})},shouldRespectForcePress:p,drop:function(e){return i("DROP",e)},cancel:function(e){return i("CANCEL",e)}},e.actions)}return{isActive:function(){return ci({expected:"PRE_DRAG",phase:f,isLockActive:h,shouldWarn:!1})},shouldRespectForcePress:p,fluidLift:function(e){var t=ce((function(e){m((function(){return ln({client:e})}))})),n=g({liftActionArgs:{id:a,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return t.cancel()},actions:{move:t}});return(0,o.A)({},n,{move:t})},snapLift:function(){var e={moveUp:function(){return m(cn)},moveRight:function(){return m(dn)},moveDown:function(){return m(un)},moveLeft:function(){return m(fn)}};return g({liftActionArgs:{id:a,clientSelection:ri(u),movementMode:"SNAP"},cleanup:de,actions:e})},abort:function(){ci({expected:"PRE_DRAG",phase:f,isLockActive:h,shouldWarn:!0})&&t.release()}}}var fi=[function(e){var t=(0,r.useRef)(Gr),n=(0,r.useRef)(de),i=Y((function(){return{eventName:"mousedown",fn:function(t){if(!t.defaultPrevented&&0===t.button&&!(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)){var r=e.findClosestDraggableId(t);if(r){var i=e.tryGetLock(r,s,{sourceEvent:t});if(i){t.preventDefault();var o={x:t.clientX,y:t.clientY};n.current(),u(i,o)}}}}}}),[e]),o=Y((function(){return{eventName:"webkitmouseforcewillbegin",fn:function(t){if(!t.defaultPrevented){var n=e.findClosestDraggableId(t);if(n){var r=e.findOptionsForDraggable(n);r&&(r.shouldRespectForcePress||e.canGetLock(n)&&t.preventDefault())}}}}}),[e]),a=Q((function(){n.current=fe(window,[o,i],{passive:!1,capture:!0})}),[o,i]),s=Q((function(){"IDLE"!==t.current.type&&(t.current=Gr,n.current(),a())}),[a]),l=Q((function(){var e=t.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[s]),c=Q((function(){var e=Yr({cancel:l,completed:s,getPhase:function(){return t.current},setPhase:function(e){t.current=e}});n.current=fe(window,e,{capture:!0,passive:!1})}),[l,s]),u=Q((function(e,n){"IDLE"!==t.current.type&&ge(!1),t.current={type:"PENDING",point:n,actions:e},c()}),[c]);kr((function(){return a(),function(){n.current()}}),[a])},function(e){var t=(0,r.useRef)(Qr),n=Y((function(){return{eventName:"keydown",fn:function(n){if(!n.defaultPrevented&&32===n.keyCode){var r=e.findClosestDraggableId(n);if(r){var o=e.tryGetLock(r,l,{sourceEvent:n});if(o){n.preventDefault();var a=!0,s=o.snapLift();t.current(),t.current=fe(window,Jr(s,l),{capture:!0,passive:!1})}}}function l(){a||ge(!1),a=!1,t.current(),i()}}}}),[e]),i=Q((function(){t.current=fe(window,[n],{passive:!1,capture:!0})}),[n]);kr((function(){return i(),function(){t.current()}}),[i])},function(e){var t=(0,r.useRef)(Xr),n=(0,r.useRef)(de),i=Q((function(){return t.current}),[]),o=Q((function(e){t.current=e}),[]),a=Y((function(){return{eventName:"touchstart",fn:function(t){if(!t.defaultPrevented){var r=e.findClosestDraggableId(t);if(r){var i=e.tryGetLock(r,l,{sourceEvent:t});if(i){var o=t.touches[0],a={x:o.clientX,y:o.clientY};n.current(),f(i,a)}}}}}}),[e]),s=Q((function(){n.current=fe(window,[a],{capture:!0,passive:!1})}),[a]),l=Q((function(){var e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),o(Xr),n.current(),s())}),[s,o]),c=Q((function(){var e=t.current;l(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[l]),u=Q((function(){var e={capture:!0,passive:!1},t={cancel:c,completed:l,getPhase:i},r=fe(window,function(e){var t=e.cancel,n=e.completed,r=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var n=r();if("DRAGGING"===n.type){n.hasMoved=!0;var i=e.touches[0],o={x:i.clientX,y:i.clientY};e.preventDefault(),n.actions.move(o)}else t()}},{eventName:"touchend",fn:function(e){var i=r();"DRAGGING"===i.type?(e.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===r().type?(e.preventDefault(),t()):t()}},{eventName:"touchforcechange",fn:function(e){var n=r();"IDLE"===n.type&&ge(!1);var i=e.touches[0];if(i&&i.force>=.15){var o=n.actions.shouldRespectForcePress();if("PENDING"!==n.type)return o?n.hasMoved?void e.preventDefault():void t():void e.preventDefault();o&&t()}}},{eventName:Wr,fn:t}]}(t),e),o=fe(window,function(e){var t=e.cancel,n=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===n().type?(27===e.keyCode&&e.preventDefault(),t()):t()}},{eventName:Wr,fn:t}]}(t),e);n.current=function(){r(),o()}}),[c,i,l]),d=Q((function(){var e=i();"PENDING"!==e.type&&ge(!1);var t=e.actions.fluidLift(e.point);o({type:"DRAGGING",actions:t,hasMoved:!1})}),[i,o]),f=Q((function(e,t){"IDLE"!==i().type&&ge(!1);var n=setTimeout(d,120);o({type:"PENDING",point:t,actions:e,longPressTimerId:n}),u()}),[u,i,o,d]);kr((function(){return s(),function(){n.current();var e=i();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),o(Xr))}}),[i,s,o]),kr((function(){return fe(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}];function pi(e){var t=e.contextId,n=e.store,i=e.registry,o=e.customSensors,a=e.enableDefaultSensors,s=[].concat(a?fi:[],o||[]),l=(0,r.useState)((function(){return function(){var e=null;function t(){e||ge(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&ge(!1);var n={abandon:t};return e=n,n},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()}))[0],c=Q((function(e,t){e.isDragging&&!t.isDragging&&l.tryAbandon()}),[l]);kr((function(){var e=n.getState();return n.subscribe((function(){var t=n.getState();c(e,t),e=t}))}),[l,n,c]),kr((function(){return l.tryAbandon}),[l.tryAbandon]);var u=Q((function(e){return ui({lockAPI:l,registry:i,store:n,draggableId:e})}),[l,i,n]),d=Q((function(e,r,o){return di({lockAPI:l,registry:i,contextId:t,store:n,draggableId:e,forceSensorStop:r,sourceEvent:o&&o.sourceEvent?o.sourceEvent:null})}),[t,l,i,n]),f=Q((function(e){return function(e,t){var n=si(e,t);return n?n.getAttribute(br.draggableId):null}(t,e)}),[t]),p=Q((function(e){var t=i.draggable.findById(e);return t?t.options:null}),[i.draggable]),h=Q((function(){l.isClaimed()&&(l.tryAbandon(),"IDLE"!==n.getState().phase&&n.dispatch(pn()))}),[l,n]),m=Q(l.isClaimed,[l]),g=Y((function(){return{canGetLock:u,tryGetLock:d,findClosestDraggableId:f,findOptionsForDraggable:p,tryReleaseLock:h,isLockClaimed:m}}),[u,d,f,p,h,m]);Br();for(var v=0;v<s.length;v++)s[v](g)}var hi=function(e){return{onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}};function mi(e){return e.current||ge(!1),e.current}function gi(e){var t=e.contextId,n=e.setCallbacks,i=e.sensors,s=e.nonce,l=e.dragHandleUsageInstructions,c=(0,r.useRef)(null);Ur();var u=$r(e),d=Q((function(){return hi(u.current)}),[u]),f=function(e){var t=Y((function(){return jr(e)}),[e]),n=(0,r.useRef)(null);return(0,r.useEffect)((function(){var e=document.createElement("div");return n.current=e,e.id=t,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),(0,o.A)(e.style,Rr),Pr().appendChild(e),function(){setTimeout((function(){var t=Pr();t.contains(e)&&t.removeChild(e),e===n.current&&(n.current=null)}))}}),[t]),Q((function(e){var t=n.current;t&&(t.textContent=e)}),[])}(t),h=function(e){var t=e.contextId,n=e.text,i=zr("hidden-text",{separator:"-"}),o=Y((function(){return"rbd-hidden-text-"+(e={contextId:t,uniqueId:i}).contextId+"-"+e.uniqueId;var e}),[i,t]);return(0,r.useEffect)((function(){var e=document.createElement("div");return e.id=o,e.textContent=n,e.style.display="none",Pr().appendChild(e),function(){var t=Pr();t.contains(e)&&t.removeChild(e)}}),[o,n]),o}({contextId:t,text:l}),m=function(e,t){var n=Y((function(){return Sr(e)}),[e]),i=(0,r.useRef)(null),o=(0,r.useRef)(null),a=Q((0,le.A)((function(e){var t=o.current;t||ge(!1),t.textContent=e})),[]),s=Q((function(e){var t=i.current;t||ge(!1),t.textContent=e}),[]);kr((function(){(i.current||o.current)&&ge(!1);var r=Or(t),l=Or(t);return i.current=r,o.current=l,r.setAttribute(yr+"-always",e),l.setAttribute(yr+"-dynamic",e),Cr().appendChild(r),Cr().appendChild(l),s(n.always),a(n.resting),function(){var e=function(e){var t=e.current;t||ge(!1),Cr().removeChild(t),e.current=null};e(i),e(o)}}),[t,s,a,n.always,n.resting,e]);var l=Q((function(){return a(n.dragging)}),[a,n.dragging]),c=Q((function(e){a("DROP"!==e?n.userCancel:n.dropAnimating)}),[a,n.dropAnimating,n.userCancel]),u=Q((function(){o.current&&a(n.resting)}),[a,n.resting]);return Y((function(){return{dragging:l,dropping:c,resting:u}}),[l,c,u])}(t,s),g=Q((function(e){mi(c).dispatch(e)}),[]),v=Y((function(){return(0,a.zH)({publishWhileDragging:nn,updateDroppableScroll:on,updateDroppableIsEnabled:an,updateDroppableIsCombineEnabled:sn,collectionStarting:rn},g)}),[g]),y=function(){var e=Y(Ir,[]);return(0,r.useEffect)((function(){return function(){requestAnimationFrame(e.clean)}}),[e]),e}(),b=Y((function(){return Kn(y,v)}),[y,v]),w=Y((function(){return vr((0,o.A)({scrollWindow:Yn,scrollDroppable:b.scrollDroppable},(0,a.zH)({move:ln},g)))}),[b.scrollDroppable,g]),x=function(e){var t=(0,r.useRef)({}),n=(0,r.useRef)(null),i=(0,r.useRef)(null),o=(0,r.useRef)(!1),a=Q((function(e,n){var r={id:e,focus:n};return t.current[e]=r,function(){var n=t.current;n[e]!==r&&delete n[e]}}),[]),s=Q((function(t){var n=Ar(e,t);n&&n!==document.activeElement&&n.focus()}),[e]),l=Q((function(e,t){n.current===e&&(n.current=t)}),[]),c=Q((function(){i.current||o.current&&(i.current=requestAnimationFrame((function(){i.current=null;var e=n.current;e&&s(e)})))}),[s]),u=Q((function(e){n.current=null;var t=document.activeElement;t&&t.getAttribute(br.draggableId)===e&&(n.current=e)}),[]);return kr((function(){return o.current=!0,function(){o.current=!1;var e=i.current;e&&cancelAnimationFrame(e)}}),[]),Y((function(){return{register:a,tryRecordFocus:u,tryRestoreFocusRecorded:c,tryShiftRecord:l}}),[a,u,c,l])}(t),_=Y((function(){return Un({announce:f,autoScroller:w,dimensionMarshal:b,focusMarshal:x,getResponders:d,styleMarshal:m})}),[f,w,b,x,d,m]);c.current=_;var E=Q((function(){var e=mi(c);"IDLE"!==e.getState().phase&&e.dispatch(pn())}),[]),S=Q((function(){var e=mi(c).getState();return e.isDragging||"DROP_ANIMATING"===e.phase}),[]);n(Y((function(){return{isDragging:S,tryAbort:E}}),[S,E]));var k=Q((function(e){return Gn(mi(c).getState(),e)}),[]),C=Q((function(){return Rt(mi(c).getState())}),[]),O=Y((function(){return{marshal:b,focus:x,contextId:t,canLift:k,isMovementAllowed:C,dragHandleUsageInstructionsId:h,registry:y}}),[t,b,h,x,k,C,y]);return pi({contextId:t,store:_,registry:y,customSensors:i,enableDefaultSensors:!1!==e.enableDefaultSensors}),(0,r.useEffect)((function(){return E}),[E]),r.createElement(Fr.Provider,{value:O},r.createElement(p,{context:Dr,store:_},e.children))}var vi=0;function yi(e){var t=Y((function(){return""+vi++}),[]),n=e.dragHandleUsageInstructions||_e.dragHandleUsageInstructions;return r.createElement(ve,null,(function(i){return r.createElement(gi,{nonce:e.nonce,contextId:t,setCallbacks:i,dragHandleUsageInstructions:n,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd},e.children)}))}var bi=function(e){return function(t){return e===t}},wi=bi("scroll"),xi=bi("auto"),_i=(bi("visible"),function(e,t){return t(e.overflowX)||t(e.overflowY)}),Ei=function(e){var t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return _i(n,wi)||_i(n,xi)},Si=function e(t){return null==t||t===document.body||t===document.documentElement?null:Ei(t)?t:e(t.parentElement)},ki=function(e){return{x:e.scrollLeft,y:e.scrollTop}},Ci=function e(t){return!!t&&("fixed"===window.getComputedStyle(t).position||e(t.parentElement))},Oi=function(e){return{closestScrollable:Si(e),isFixedOnPage:Ci(e)}},Ni=function(e){var t=e.ref,n=e.descriptor,r=e.env,i=e.windowScroll,o=e.direction,a=e.isDropDisabled,s=e.isCombineEnabled,l=e.shouldClipSubject,c=r.closestScrollable,u=function(e,t){var n=se(e);if(!t)return n;if(e!==t)return n;var r=n.paddingBox.top-t.scrollTop,i=n.paddingBox.left-t.scrollLeft,o=r+t.scrollHeight,a=i+t.scrollWidth,s=X({top:r,right:a,bottom:o,left:i},n.border);return ne({borderBox:s,margin:n.margin,border:n.border,padding:n.padding})}(t,c),d=oe(u,i),f=function(){if(!c)return null;var e=se(c),t={scrollHeight:c.scrollHeight,scrollWidth:c.scrollWidth};return{client:e,page:oe(e,i),scroll:ki(c),scrollSize:t,shouldClipSubject:l}}(),p=function(e){var t=e.descriptor,n=e.isEnabled,r=e.isCombineEnabled,i=e.isFixedOnPage,o=e.direction,a=e.client,s=e.page,l=e.closest,c=function(){if(!l)return null;var e=l.scrollSize,t=l.client,n=$n({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:l.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:l.shouldClipSubject,scroll:{initial:l.scroll,current:l.scroll,max:n,diff:{value:Ee,displacement:Ee}}}}(),u="vertical"===o?nt:rt;return{descriptor:t,isCombineEnabled:r,isFixedOnPage:i,axis:u,isEnabled:n,client:a,page:s,frame:c,subject:je({page:s,withPlaceholder:null,axis:u,frame:c})}}({descriptor:n,isEnabled:!a,isCombineEnabled:s,isFixedOnPage:r.isFixedOnPage,direction:o,client:u,page:d,closest:f});return p},Ti={passive:!1},Ai={passive:!0},Ii=function(e){return e.shouldPublishImmediately?Ti:Ai};function Di(e){var t=(0,r.useContext)(e);return t||ge(!1),t}var Pi=function(e){return e&&e.env.closestScrollable||null};function Ri(){}var ji={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},Mi=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate,i=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate;return t||"close"===r?ji:{height:n.client.borderBox.height,width:n.client.borderBox.width,margin:n.client.margin}}({isAnimatingOpenOnMount:t,placeholder:n,animate:r});return{display:n.display,boxSizing:"border-box",width:i.width,height:i.height,marginTop:i.margin.top,marginRight:i.margin.right,marginBottom:i.margin.bottom,marginLeft:i.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==r?xn.placeholder:null}};var Li=r.memo((function(e){var t=(0,r.useRef)(null),n=Q((function(){t.current&&(clearTimeout(t.current),t.current=null)}),[]),i=e.animate,o=e.onTransitionEnd,a=e.onClose,s=e.contextId,l=(0,r.useState)("open"===e.animate),c=l[0],u=l[1];(0,r.useEffect)((function(){return c?"open"!==i?(n(),u(!1),Ri):t.current?Ri:(t.current=setTimeout((function(){t.current=null,u(!1)})),n):Ri}),[i,c,n]);var d=Q((function(e){"height"===e.propertyName&&(o(),"close"===i&&a())}),[i,a,o]),f=Mi({isAnimatingOpenOnMount:c,animate:e.animate,placeholder:e.placeholder});return r.createElement(e.placeholder.tagName,{style:f,"data-rbd-placeholder-context-id":s,onTransitionEnd:d,ref:e.innerRef})})),zi=r.createContext(null);var Fi=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).state={isVisible:Boolean(t.props.on),data:t.props.on,animate:t.props.shouldAnimate&&t.props.on?"open":"none"},t.onClose=function(){"close"===t.state.animate&&t.setState({isVisible:!1})},t}return(0,i.A)(t,e),t.getDerivedStateFromProps=function(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}},t.prototype.render=function(){if(!this.state.isVisible)return null;var e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)},t}(r.PureComponent),Bi=5e3,Ui=4500,$i=function(e,t){return t?xn.drop(t.duration):e?xn.snap:xn.fluid},qi=function(e,t){return e?t?yn.drop:yn.combining:null};function Hi(e){return"DRAGGING"===e.type?function(e){var t=e.dimension.client,n=e.offset,r=e.combineWith,i=e.dropping,o=Boolean(r),a=function(e){return null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode}(e),s=Boolean(i),l=s?Sn(n,o):En(n);return{position:"fixed",top:t.marginBox.top,left:t.marginBox.left,boxSizing:"border-box",width:t.borderBox.width,height:t.borderBox.height,transition:$i(a,i),transform:l,opacity:qi(o,s),zIndex:s?Ui:Bi,pointerEvents:"none"}}(e):{transform:En((t=e).offset),transition:t.shouldAnimateDisplacement?null:"none"};var t}function Vi(e){var t=zr("draggable"),n=e.descriptor,i=e.registry,o=e.getDraggableRef,a=e.canDragInteractiveElements,s=e.shouldRespectForcePress,l=e.isEnabled,c=Y((function(){return{canDragInteractiveElements:a,shouldRespectForcePress:s,isEnabled:l}}),[a,l,s]),u=Q((function(e){var t=o();return t||ge(!1),function(e,t,n){void 0===n&&(n=Ee);var r=window.getComputedStyle(t),i=t.getBoundingClientRect(),o=ae(i,r),a=oe(o,n);return{descriptor:e,placeholder:{client:o,tagName:t.tagName.toLowerCase(),display:r.display},displaceBy:{x:o.marginBox.width,y:o.marginBox.height},client:o,page:a}}(n,t,e)}),[n,o]),d=Y((function(){return{uniqueId:t,descriptor:n,options:c,getDimension:u}}),[n,u,c,t]),f=(0,r.useRef)(d),p=(0,r.useRef)(!0);kr((function(){return i.draggable.register(f.current),function(){return i.draggable.unregister(f.current)}}),[i.draggable]),kr((function(){if(p.current)p.current=!1;else{var e=f.current;f.current=d,i.draggable.update(d,e)}}),[d,i.draggable])}function Wi(e,t,n){Ur()}function Ki(e){e.preventDefault()}var Gi=function(e,t){return e===t},Yi=function(e){var t=e.combine,n=e.destination;return n?n.droppableId:t?t.droppableId:null};function Qi(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var Zi={mapped:{type:"SECONDARY",offset:Ee,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Qi(null)}};var Ji=V((function(){var e=function(){var e=(0,le.A)((function(e,t){return{x:e,y:t}})),t=(0,le.A)((function(e,t,n,r,i){return{isDragging:!0,isClone:t,isDropAnimating:Boolean(i),dropAnimation:i,mode:e,draggingOver:n,combineWith:r,combineTargetFor:null}})),n=(0,le.A)((function(e,n,r,i,o,a,s){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:o,combineWith:a,mode:n,offset:e,dimension:r,forceShouldAnimate:s,snapshot:t(n,i,o,a,null)}}}));return function(r,i){if(r.isDragging){if(r.critical.draggable.id!==i.draggableId)return null;var o=r.current.client.offset,a=r.dimensions.draggables[i.draggableId],s=Dt(r.impact),l=(u=r.impact).at&&"COMBINE"===u.at.type?u.at.combine.draggableId:null,c=r.forceShouldAnimate;return n(e(o.x,o.y),r.movementMode,a,i.isClone,s,l,c)}var u;if("DROP_ANIMATING"===r.phase){var d=r.completed;if(d.result.draggableId!==i.draggableId)return null;var f=i.isClone,p=r.dimensions.draggables[i.draggableId],h=d.result,m=h.mode,g=Yi(h),v=function(e){return e.combine?e.combine.draggableId:null}(h),y={duration:r.dropDuration,curve:vn,moveTo:r.newHomeClientOffset,opacity:v?yn.drop:null,scale:v?bn.drop:null};return{mapped:{type:"DRAGGING",offset:r.newHomeClientOffset,dimension:p,dropping:y,draggingOver:g,combineWith:v,mode:m,forceShouldAnimate:null,snapshot:t(m,f,g,v,y)}}}return null}}(),t=function(){var e=(0,le.A)((function(e,t){return{x:e,y:t}})),t=(0,le.A)(Qi),n=(0,le.A)((function(e,n,r){return void 0===n&&(n=null),{mapped:{type:"SECONDARY",offset:e,combineTargetFor:n,shouldAnimateDisplacement:r,snapshot:t(n)}}})),r=function(e){return e?n(Ee,e,!0):null},i=function(t,i,o,a){var s=o.displaced.visible[t],l=Boolean(a.inVirtualList&&a.effected[t]),c=Ke(o),u=c&&c.draggableId===t?i:null;if(!s){if(!l)return r(u);if(o.displaced.invisible[t])return null;var d=Oe(a.displacedBy.point),f=e(d.x,d.y);return n(f,u,!0)}if(l)return r(u);var p=o.displacedBy.point,h=e(p.x,p.y);return n(h,u,s.shouldAnimate)};return function(e,t){if(e.isDragging)return e.critical.draggable.id===t.draggableId?null:i(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){var n=e.completed;return n.result.draggableId===t.draggableId?null:i(t.draggableId,n.result.draggableId,n.impact,n.afterCritical)}return null}}();return function(n,r){return e(n,r)||t(n,r)||Zi}}),{dropAnimationFinished:gn},null,{context:Dr,pure:!0,areStatePropsEqual:Gi})((function(e){var t=(0,r.useRef)(null),n=Q((function(e){t.current=e}),[]),i=Q((function(){return t.current}),[]),o=Di(Fr),a=o.contextId,s=o.dragHandleUsageInstructionsId,l=o.registry,c=Di(zi),u=c.type,d=c.droppableId,f=Y((function(){return{id:e.draggableId,index:e.index,type:u,droppableId:d}}),[e.draggableId,e.index,u,d]),p=e.children,h=e.draggableId,m=e.isEnabled,g=e.shouldRespectForcePress,v=e.canDragInteractiveElements,y=e.isClone,b=e.mapped,w=e.dropAnimationFinished;Wi(),Br(),y||Vi(Y((function(){return{descriptor:f,registry:l,getDraggableRef:i,canDragInteractiveElements:v,shouldRespectForcePress:g,isEnabled:m}}),[f,l,i,v,g,m]));var x=Y((function(){return m?{tabIndex:0,role:"button","aria-describedby":s,"data-rbd-drag-handle-draggable-id":h,"data-rbd-drag-handle-context-id":a,draggable:!1,onDragStart:Ki}:null}),[a,s,h,m]),_=Q((function(e){"DRAGGING"===b.type&&b.dropping&&"transform"===e.propertyName&&w()}),[w,b]),E=Y((function(){var e=Hi(b),t="DRAGGING"===b.type&&b.dropping?_:null;return{innerRef:n,draggableProps:{"data-rbd-draggable-context-id":a,"data-rbd-draggable-id":h,style:e,onTransitionEnd:t},dragHandleProps:x}}),[a,x,h,b,_,n]),S=Y((function(){return{draggableId:f.id,type:f.type,source:{index:f.index,droppableId:f.droppableId}}}),[f.droppableId,f.id,f.index,f.type]);return p(E,b.snapshot,S)}));function Xi(e){return Di(zi).isUsingCloneFor!==e.draggableId||e.isClone?r.createElement(Ji,e):null}function eo(e){var t="boolean"!==typeof e.isDragDisabled||!e.isDragDisabled,n=Boolean(e.disableInteractiveElementBlocking),i=Boolean(e.shouldRespectForcePress);return r.createElement(Xi,(0,o.A)({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:i}))}var to=function(e,t){return e===t.droppable.type},no=function(e,t){return t.draggables[e.draggable.id]};var ro={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||ge(!1),document.body}},io=V((function(){var e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t=(0,o.A)({},e,{shouldAnimatePlaceholder:!1}),n=(0,le.A)((function(e){return{draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}})),r=(0,le.A)((function(r,i,o,a,s,l){var c=s.descriptor.id;if(s.descriptor.droppableId===r){var u=l?{render:l,dragging:n(s.descriptor)}:null,d={isDraggingOver:o,draggingOverWith:o?c:null,draggingFromThisWith:c,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!1,snapshot:d,useClone:u}}if(!i)return t;if(!a)return e;var f={isDraggingOver:o,draggingOverWith:c,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!0,snapshot:f,useClone:null}}));return function(n,i){var o=i.droppableId,a=i.type,s=!i.isDropDisabled,l=i.renderClone;if(n.isDragging){var c=n.critical;if(!to(a,c))return t;var u=no(c,n.dimensions),d=Dt(n.impact)===o;return r(o,s,d,d,u,l)}if("DROP_ANIMATING"===n.phase){var f=n.completed;if(!to(a,f.critical))return t;var p=no(f.critical,n.dimensions);return r(o,s,Yi(f.result)===o,Dt(f.impact)===o,p,l)}if("IDLE"===n.phase&&n.completed&&!n.shouldFlush){var h=n.completed;if(!to(a,h.critical))return t;var m=Dt(h.impact)===o,g=Boolean(h.impact.at&&"COMBINE"===h.impact.at.type),v=h.critical.droppable.id===o;return m?g?e:t:v?e:t}return t}}),{updateViewportMaxScroll:function(e){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}}},null,{context:Dr,pure:!0,areStatePropsEqual:Gi})((function(e){var t=(0,r.useContext)(Fr);t||ge(!1);var n=t.contextId,i=t.isMovementAllowed,o=(0,r.useRef)(null),a=(0,r.useRef)(null),s=e.children,l=e.droppableId,c=e.type,u=e.mode,d=e.direction,f=e.ignoreContainerClipping,p=e.isDropDisabled,h=e.isCombineEnabled,m=e.snapshot,g=e.useClone,v=e.updateViewportMaxScroll,y=e.getContainerForClone,b=Q((function(){return o.current}),[]),w=Q((function(e){o.current=e}),[]),x=(Q((function(){return a.current}),[]),Q((function(e){a.current=e}),[]));Ur();var _=Q((function(){i()&&v({maxScroll:Hn()})}),[i,v]);!function(e){var t=(0,r.useRef)(null),n=Di(Fr),i=zr("droppable"),o=n.registry,a=n.marshal,s=$r(e),l=Y((function(){return{id:e.droppableId,type:e.type,mode:e.mode}}),[e.droppableId,e.mode,e.type]),c=(0,r.useRef)(l),u=Y((function(){return(0,le.A)((function(e,n){t.current||ge(!1);var r={x:e,y:n};a.updateDroppableScroll(l.id,r)}))}),[l.id,a]),d=Q((function(){var e=t.current;return e&&e.env.closestScrollable?ki(e.env.closestScrollable):Ee}),[]),f=Q((function(){var e=d();u(e.x,e.y)}),[d,u]),p=Y((function(){return ce(f)}),[f]),h=Q((function(){var e=t.current,n=Pi(e);e&&n||ge(!1),e.scrollOptions.shouldPublishImmediately?f():p()}),[p,f]),m=Q((function(e,r){t.current&&ge(!1);var i=s.current,o=i.getDroppableRef();o||ge(!1);var a=Oi(o),c={ref:o,descriptor:l,env:a,scrollOptions:r};t.current=c;var u=Ni({ref:o,descriptor:l,env:a,windowScroll:e,direction:i.direction,isDropDisabled:i.isDropDisabled,isCombineEnabled:i.isCombineEnabled,shouldClipSubject:!i.ignoreContainerClipping}),d=a.closestScrollable;return d&&(d.setAttribute(_r.contextId,n.contextId),d.addEventListener("scroll",h,Ii(c.scrollOptions))),u}),[n.contextId,l,h,s]),g=Q((function(){var e=t.current,n=Pi(e);return e&&n||ge(!1),ki(n)}),[]),v=Q((function(){var e=t.current;e||ge(!1);var n=Pi(e);t.current=null,n&&(p.cancel(),n.removeAttribute(_r.contextId),n.removeEventListener("scroll",h,Ii(e.scrollOptions)))}),[h,p]),y=Q((function(e){var n=t.current;n||ge(!1);var r=Pi(n);r||ge(!1),r.scrollTop+=e.y,r.scrollLeft+=e.x}),[]),b=Y((function(){return{getDimensionAndWatchScroll:m,getScrollWhileDragging:g,dragStopped:v,scroll:y}}),[v,m,g,y]),w=Y((function(){return{uniqueId:i,descriptor:l,callbacks:b}}),[b,l,i]);kr((function(){return c.current=w.descriptor,o.droppable.register(w),function(){t.current&&v(),o.droppable.unregister(w)}}),[b,l,v,w,a,o.droppable]),kr((function(){t.current&&a.updateDroppableIsEnabled(c.current.id,!e.isDropDisabled)}),[e.isDropDisabled,a]),kr((function(){t.current&&a.updateDroppableIsCombineEnabled(c.current.id,e.isCombineEnabled)}),[e.isCombineEnabled,a])}({droppableId:l,type:c,mode:u,direction:d,isDropDisabled:p,isCombineEnabled:h,ignoreContainerClipping:f,getDroppableRef:b});var E=r.createElement(Fi,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},(function(e){var t=e.onClose,i=e.data,o=e.animate;return r.createElement(Li,{placeholder:i,onClose:t,innerRef:x,animate:o,contextId:n,onTransitionEnd:_})})),S=Y((function(){return{innerRef:w,placeholder:E,droppableProps:{"data-rbd-droppable-id":l,"data-rbd-droppable-context-id":n}}}),[n,l,E,w]),k=g?g.dragging.draggableId:null,C=Y((function(){return{droppableId:l,type:c,isUsingCloneFor:k}}),[l,k,c]);return r.createElement(zi.Provider,{value:C},s(S,m),function(){if(!g)return null;var e=g.dragging,t=g.render,n=r.createElement(Xi,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(function(n,r){return t(n,r,e)}));return K.createPortal(n,y())}())}));io.defaultProps=ro},32328:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var i=s(n(59284)),o=s(n(32133)),a=["text","onCopy","options","children"];function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function p(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h(e)}(this,n)}}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(l,e);var t,n,r,s=p(l);function l(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return g(h(e=s.call.apply(s,[this].concat(n))),"onClick",(function(t){var n=e.props,r=n.text,a=n.onCopy,s=n.children,l=n.options,c=i.default.Children.only(s),u=(0,o.default)(r,l);a&&a(r,u),c&&c.props&&"function"===typeof c.props.onClick&&c.props.onClick(t)})),e}return t=l,(n=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),n=u(e,a),r=i.default.Children.only(t);return i.default.cloneElement(r,c(c({},n),{},{onClick:this.onClick}))}}])&&d(t.prototype,n),r&&d(t,r),Object.defineProperty(t,"prototype",{writable:!1}),l}(i.default.PureComponent);t.CopyToClipboard=v,g(v,"defaultProps",{onCopy:void 0,options:void 0})},64255:(e,t,n)=>{"use strict";var r=n(32328).CopyToClipboard;r.CopyToClipboard=r,e.exports=r},76575:(e,t,n)=>{"use strict";var r=n(59284),i=n(99158);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var u=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},h={};function m(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var i=g.hasOwnProperty(t)?g[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!d.call(h,e)||!d.call(p,e)&&(f.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=Symbol.for("react.element"),_=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),O=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),D=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var P=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var R=Symbol.iterator;function j(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=R&&e[R]||e["@@iterator"])?e:null}var M,L=Object.assign;function z(e){if(void 0===M)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);M=t&&t[1]||""}return"\n"+M+e}var F=!1;function B(e,t){if(!e||F)return"";F=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"===typeof c.stack){for(var i=c.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{F=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?z(e):""}function U(e){switch(e.tag){case 5:return z(e.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return e=B(e.type,!1);case 11:return e=B(e.type.render,!1);case 1:return e=B(e.type,!0);default:return""}}function $(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case E:return"Fragment";case _:return"Portal";case k:return"Profiler";case S:return"StrictMode";case T:return"Suspense";case A:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case O:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case N:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case I:return null!==(t=e.displayName||null)?t:$(e.type)||"Memo";case D:t=e._payload,e=e._init;try{return $(e(t))}catch(n){}}return null}function q(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return $(t);case 8:return t===S?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function V(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function W(e){e._valueTracker||(e._valueTracker=function(e){var t=V(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function K(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=V(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function G(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Y(e,t){var n=t.checked;return L({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Q(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=H(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Z(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function J(e,t){Z(e,t);var n=H(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function X(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&G(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return L({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(te(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:H(n)}}function oe(e,t){var n=H(t.value),r=H(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(pe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ve=L({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(o(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var _e=null,Ee=null,Se=null;function ke(e){if(e=bi(e)){if("function"!==typeof _e)throw Error(o(280));var t=e.stateNode;t&&(t=xi(t),_e(e.stateNode,e.type,t))}}function Ce(e){Ee?Se?Se.push(e):Se=[e]:Ee=e}function Oe(){if(Ee){var e=Ee,t=Se;if(Se=Ee=null,ke(e),t)for(e=0;e<t.length;e++)ke(t[e])}}function Ne(e,t){return e(t)}function Te(){}var Ae=!1;function Ie(e,t,n){if(Ae)return e(t,n);Ae=!0;try{return Ne(e,t,n)}finally{Ae=!1,(null!==Ee||null!==Se)&&(Te(),Oe())}}function De(e,t){var n=e.stateNode;if(null===n)return null;var r=xi(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(o(231,t,typeof n));return n}var Pe=!1;if(u)try{var Re={};Object.defineProperty(Re,"passive",{get:function(){Pe=!0}}),window.addEventListener("test",Re,Re),window.removeEventListener("test",Re,Re)}catch(ue){Pe=!1}function je(e,t,n,r,i,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var Me=!1,Le=null,ze=!1,Fe=null,Be={onError:function(e){Me=!0,Le=e}};function Ue(e,t,n,r,i,o,a,s,l){Me=!1,Le=null,je.apply(Be,arguments)}function $e(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function qe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function He(e){if($e(e)!==e)throw Error(o(188))}function Ve(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=$e(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return He(i),e;if(a===r)return He(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=a;break}if(l===r){s=!0,r=i,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=i;break}if(l===r){s=!0,r=a,n=i;break}l=l.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?We(e):null}function We(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=We(e);if(null!==t)return t;e=e.sibling}return null}var Ke=i.unstable_scheduleCallback,Ge=i.unstable_cancelCallback,Ye=i.unstable_shouldYield,Qe=i.unstable_requestPaint,Ze=i.unstable_now,Je=i.unstable_getCurrentPriorityLevel,Xe=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,nt=i.unstable_LowPriority,rt=i.unstable_IdlePriority,it=null,ot=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=dt(s):0!==(o&=a)&&(r=dt(o))}else 0!==(a=n&~i)?r=dt(a):0!==o&&(r=dt(o));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&0!==(4194240&o)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-at(t)),r|=e[n],t&=~i;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ct;return 0===(4194240&(ct<<=1))&&(ct=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var xt,_t,Et,St,kt,Ct=!1,Ot=[],Nt=null,Tt=null,At=null,It=new Map,Dt=new Map,Pt=[],Rt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function jt(e,t){switch(e){case"focusin":case"focusout":Nt=null;break;case"dragenter":case"dragleave":Tt=null;break;case"mouseover":case"mouseout":At=null;break;case"pointerover":case"pointerout":It.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Dt.delete(t.pointerId)}}function Mt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&(null!==(t=bi(t))&&_t(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Lt(e){var t=yi(e.target);if(null!==t){var n=$e(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=qe(n)))return e.blockedOn=t,void kt(e.priority,(function(){Et(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function zt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Yt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=bi(n))&&_t(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function Ft(e,t,n){zt(e)&&n.delete(t)}function Bt(){Ct=!1,null!==Nt&&zt(Nt)&&(Nt=null),null!==Tt&&zt(Tt)&&(Tt=null),null!==At&&zt(At)&&(At=null),It.forEach(Ft),Dt.forEach(Ft)}function Ut(e,t){e.blockedOn===t&&(e.blockedOn=null,Ct||(Ct=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Bt)))}function $t(e){function t(t){return Ut(t,e)}if(0<Ot.length){Ut(Ot[0],e);for(var n=1;n<Ot.length;n++){var r=Ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Nt&&Ut(Nt,e),null!==Tt&&Ut(Tt,e),null!==At&&Ut(At,e),It.forEach(t),Dt.forEach(t),n=0;n<Pt.length;n++)(r=Pt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Pt.length&&null===(n=Pt[0]).blockedOn;)Lt(n),null===n.blockedOn&&Pt.shift()}var qt=w.ReactCurrentBatchConfig,Ht=!0;function Vt(e,t,n,r){var i=bt,o=qt.transition;qt.transition=null;try{bt=1,Kt(e,t,n,r)}finally{bt=i,qt.transition=o}}function Wt(e,t,n,r){var i=bt,o=qt.transition;qt.transition=null;try{bt=4,Kt(e,t,n,r)}finally{bt=i,qt.transition=o}}function Kt(e,t,n,r){if(Ht){var i=Yt(e,t,n,r);if(null===i)Hr(e,t,r,Gt,n),jt(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return Nt=Mt(Nt,e,t,n,r,i),!0;case"dragenter":return Tt=Mt(Tt,e,t,n,r,i),!0;case"mouseover":return At=Mt(At,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return It.set(o,Mt(It.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Dt.set(o,Mt(Dt.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(jt(e,r),4&t&&-1<Rt.indexOf(e)){for(;null!==i;){var o=bi(i);if(null!==o&&xt(o),null===(o=Yt(e,t,n,r))&&Hr(e,t,r,Gt,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else Hr(e,t,r,null,n)}}var Gt=null;function Yt(e,t,n,r){if(Gt=null,null!==(e=yi(e=xe(r))))if(null===(t=$e(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=qe(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Gt=e,null}function Qt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Je()){case Xe:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Zt=null,Jt=null,Xt=null;function en(){if(Xt)return Xt;var e,t,n=Jt,r=n.length,i="value"in Zt?Zt.value:Zt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return Xt=i.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return L(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(cn),dn=L({},cn,{view:0,detail:0}),fn=on(dn),pn=L({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),hn=on(pn),mn=on(L({},pn,{dataTransfer:0})),gn=on(L({},dn,{relatedTarget:0})),vn=on(L({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=L({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(yn),wn=on(L({},cn,{data:0})),xn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_n={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},En={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=En[e])&&!!t[e]}function kn(){return Sn}var Cn=L({},dn,{key:function(e){if(e.key){var t=xn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?_n[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),On=on(Cn),Nn=on(L({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Tn=on(L({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kn})),An=on(L({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),In=L({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Dn=on(In),Pn=[9,13,27,32],Rn=u&&"CompositionEvent"in window,jn=null;u&&"documentMode"in document&&(jn=document.documentMode);var Mn=u&&"TextEvent"in window&&!jn,Ln=u&&(!Rn||jn&&8<jn&&11>=jn),zn=String.fromCharCode(32),Fn=!1;function Bn(e,t){switch(e){case"keyup":return-1!==Pn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var $n=!1;var qn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!qn[e.type]:"textarea"===t}function Vn(e,t,n,r){Ce(r),0<(t=Wr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Wn=null,Kn=null;function Gn(e){zr(e,0)}function Yn(e){if(K(wi(e)))return e}function Qn(e,t){if("change"===e)return t}var Zn=!1;if(u){var Jn;if(u){var Xn="oninput"in document;if(!Xn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Xn="function"===typeof er.oninput}Jn=Xn}else Jn=!1;Zn=Jn&&(!document.documentMode||9<document.documentMode)}function tr(){Wn&&(Wn.detachEvent("onpropertychange",nr),Kn=Wn=null)}function nr(e){if("value"===e.propertyName&&Yn(Kn)){var t=[];Vn(t,Kn,e,xe(e)),Ie(Gn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Kn=n,(Wn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Yn(Kn)}function or(e,t){if("click"===e)return Yn(t)}function ar(e,t){if("input"===e||"change"===e)return Yn(t)}var sr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function lr(e,t){if(sr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!d.call(t,i)||!sr(e[i],t[i]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=G();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=G((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=ur(n,o);var a=ur(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=u&&"documentMode"in document&&11>=document.documentMode,gr=null,vr=null,yr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==gr||gr!==G(r)||("selectionStart"in(r=gr)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&lr(yr,r)||(yr=r,0<(r=Wr(vr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function xr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var _r={animationend:xr("Animation","AnimationEnd"),animationiteration:xr("Animation","AnimationIteration"),animationstart:xr("Animation","AnimationStart"),transitionend:xr("Transition","TransitionEnd")},Er={},Sr={};function kr(e){if(Er[e])return Er[e];if(!_r[e])return e;var t,n=_r[e];for(t in n)if(n.hasOwnProperty(t)&&t in Sr)return Er[e]=n[t];return e}u&&(Sr=document.createElement("div").style,"AnimationEvent"in window||(delete _r.animationend.animation,delete _r.animationiteration.animation,delete _r.animationstart.animation),"TransitionEvent"in window||delete _r.transitionend.transition);var Cr=kr("animationend"),Or=kr("animationiteration"),Nr=kr("animationstart"),Tr=kr("transitionend"),Ar=new Map,Ir="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Dr(e,t){Ar.set(e,t),l(t,[e])}for(var Pr=0;Pr<Ir.length;Pr++){var Rr=Ir[Pr];Dr(Rr.toLowerCase(),"on"+(Rr[0].toUpperCase()+Rr.slice(1)))}Dr(Cr,"onAnimationEnd"),Dr(Or,"onAnimationIteration"),Dr(Nr,"onAnimationStart"),Dr("dblclick","onDoubleClick"),Dr("focusin","onFocus"),Dr("focusout","onBlur"),Dr(Tr,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var jr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Mr=new Set("cancel close invalid load scroll toggle".split(" ").concat(jr));function Lr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,s,l,c){if(Ue.apply(this,arguments),Me){if(!Me)throw Error(o(198));var u=Le;Me=!1,Le=null,ze||(ze=!0,Fe=u)}}(r,t,void 0,e),e.currentTarget=null}function zr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;Lr(i,s,c),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;Lr(i,s,c),o=l}}}if(ze)throw e=Fe,ze=!1,Fe=null,e}function Fr(e,t){var n=t[mi];void 0===n&&(n=t[mi]=new Set);var r=e+"__bubble";n.has(r)||(qr(t,e,2,!1),n.add(r))}function Br(e,t,n){var r=0;t&&(r|=4),qr(n,e,r,t)}var Ur="_reactListening"+Math.random().toString(36).slice(2);function $r(e){if(!e[Ur]){e[Ur]=!0,a.forEach((function(t){"selectionchange"!==t&&(Mr.has(t)||Br(t,!1,e),Br(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ur]||(t[Ur]=!0,Br("selectionchange",!1,t))}}function qr(e,t,n,r){switch(Qt(t)){case 1:var i=Vt;break;case 4:i=Wt;break;default:i=Kt}n=i.bind(null,t,n,e),i=void 0,!Pe||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Hr(e,t,n,r,i){var o=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=yi(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}Ie((function(){var r=o,i=xe(n),a=[];e:{var s=Ar.get(e);if(void 0!==s){var l=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=On;break;case"focusin":c="focus",l=gn;break;case"focusout":c="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Tn;break;case Cr:case Or:case Nr:l=vn;break;case Tr:l=An;break;case"scroll":l=fn;break;case"wheel":l=Dn;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Nn}var u=0!==(4&t),d=!u&&"scroll"===e,f=u?null!==s?s+"Capture":null:s;u=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&(null!=(m=De(h,f))&&u.push(Vr(h,m,p)))),d)break;h=h.return}0<u.length&&(s=new l(s,c,null,n,i),a.push({event:s,listeners:u}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===we||!(c=n.relatedTarget||n.fromElement)||!yi(c)&&!c[hi])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?yi(c):null)&&(c!==(d=$e(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=hn,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=Nn,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==l?s:wi(l),p=null==c?s:wi(c),(s=new u(m,h+"leave",l,n,i)).target=d,s.relatedTarget=p,m=null,yi(i)===r&&((u=new u(f,h+"enter",c,n,i)).target=p,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(f=c,h=0,p=u=l;p;p=Kr(p))h++;for(p=0,m=f;m;m=Kr(m))p++;for(;0<h-p;)u=Kr(u),h--;for(;0<p-h;)f=Kr(f),p--;for(;h--;){if(u===f||null!==f&&u===f.alternate)break e;u=Kr(u),f=Kr(f)}u=null}else u=null;null!==l&&Gr(a,s,l,u,!1),null!==c&&null!==d&&Gr(a,d,c,u,!0)}if("select"===(l=(s=r?wi(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Qn;else if(Hn(s))if(Zn)g=ar;else{g=ir;var v=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=or);switch(g&&(g=g(e,r))?Vn(a,g,n,i):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&ee(s,"number",s.value)),v=r?wi(r):window,e){case"focusin":(Hn(v)||"true"===v.contentEditable)&&(gr=v,vr=r,yr=null);break;case"focusout":yr=vr=gr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(a,n,i);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":wr(a,n,i)}var y;if(Rn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else $n?Bn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Ln&&"ko"!==n.locale&&($n||"onCompositionStart"!==b?"onCompositionEnd"===b&&$n&&(y=en()):(Jt="value"in(Zt=i)?Zt.value:Zt.textContent,$n=!0)),0<(v=Wr(r,b)).length&&(b=new wn(b,e,null,n,i),a.push({event:b,listeners:v}),y?b.data=y:null!==(y=Un(n))&&(b.data=y))),(y=Mn?function(e,t){switch(e){case"compositionend":return Un(t);case"keypress":return 32!==t.which?null:(Fn=!0,zn);case"textInput":return(e=t.data)===zn&&Fn?null:e;default:return null}}(e,n):function(e,t){if($n)return"compositionend"===e||!Rn&&Bn(e,t)?(e=en(),Xt=Jt=Zt=null,$n=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ln&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Wr(r,"onBeforeInput")).length&&(i=new wn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=y))}zr(a,t)}))}function Vr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Wr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=De(e,n))&&r.unshift(Vr(e,o,i)),null!=(o=De(e,t))&&r.push(Vr(e,o,i))),e=e.return}return r}function Kr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Gr(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,i?null!=(l=De(n,o))&&a.unshift(Vr(n,l,s)):i||null!=(l=De(n,o))&&a.push(Vr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Yr=/\r\n?/g,Qr=/\u0000|\uFFFD/g;function Zr(e){return("string"===typeof e?e:""+e).replace(Yr,"\n").replace(Qr,"")}function Jr(e,t,n){if(t=Zr(t),Zr(e)!==t&&n)throw Error(o(425))}function Xr(){}var ei=null,ti=null;function ni(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ri="function"===typeof setTimeout?setTimeout:void 0,ii="function"===typeof clearTimeout?clearTimeout:void 0,oi="function"===typeof Promise?Promise:void 0,ai="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof oi?function(e){return oi.resolve(null).then(e).catch(si)}:ri;function si(e){setTimeout((function(){throw e}))}function li(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void $t(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);$t(t)}function ci(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ui(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var di=Math.random().toString(36).slice(2),fi="__reactFiber$"+di,pi="__reactProps$"+di,hi="__reactContainer$"+di,mi="__reactEvents$"+di,gi="__reactListeners$"+di,vi="__reactHandles$"+di;function yi(e){var t=e[fi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[hi]||n[fi]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ui(e);null!==e;){if(n=e[fi])return n;e=ui(e)}return t}n=(e=n).parentNode}return null}function bi(e){return!(e=e[fi]||e[hi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function xi(e){return e[pi]||null}var _i=[],Ei=-1;function Si(e){return{current:e}}function ki(e){0>Ei||(e.current=_i[Ei],_i[Ei]=null,Ei--)}function Ci(e,t){Ei++,_i[Ei]=e.current,e.current=t}var Oi={},Ni=Si(Oi),Ti=Si(!1),Ai=Oi;function Ii(e,t){var n=e.type.contextTypes;if(!n)return Oi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Di(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Pi(){ki(Ti),ki(Ni)}function Ri(e,t,n){if(Ni.current!==Oi)throw Error(o(168));Ci(Ni,t),Ci(Ti,n)}function ji(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(o(108,q(e)||"Unknown",i));return L({},n,r)}function Mi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Oi,Ai=Ni.current,Ci(Ni,e),Ci(Ti,Ti.current),!0}function Li(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=ji(e,t,Ai),r.__reactInternalMemoizedMergedChildContext=e,ki(Ti),ki(Ni),Ci(Ni,e)):ki(Ti),Ci(Ti,n)}var zi=null,Fi=!1,Bi=!1;function Ui(e){null===zi?zi=[e]:zi.push(e)}function $i(){if(!Bi&&null!==zi){Bi=!0;var e=0,t=bt;try{var n=zi;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}zi=null,Fi=!1}catch(i){throw null!==zi&&(zi=zi.slice(e+1)),Ke(Xe,$i),i}finally{bt=t,Bi=!1}}return null}var qi=[],Hi=0,Vi=null,Wi=0,Ki=[],Gi=0,Yi=null,Qi=1,Zi="";function Ji(e,t){qi[Hi++]=Wi,qi[Hi++]=Vi,Vi=e,Wi=t}function Xi(e,t,n){Ki[Gi++]=Qi,Ki[Gi++]=Zi,Ki[Gi++]=Yi,Yi=e;var r=Qi;e=Zi;var i=32-at(r)-1;r&=~(1<<i),n+=1;var o=32-at(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Qi=1<<32-at(t)+i|n<<i|r,Zi=o+e}else Qi=1<<o|n<<i|r,Zi=e}function eo(e){null!==e.return&&(Ji(e,1),Xi(e,1,0))}function to(e){for(;e===Vi;)Vi=qi[--Hi],qi[Hi]=null,Wi=qi[--Hi],qi[Hi]=null;for(;e===Yi;)Yi=Ki[--Gi],Ki[Gi]=null,Zi=Ki[--Gi],Ki[Gi]=null,Qi=Ki[--Gi],Ki[Gi]=null}var no=null,ro=null,io=!1,oo=null;function ao(e,t){var n=Ic(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function so(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,no=e,ro=ci(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,no=e,ro=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Yi?{id:Qi,overflow:Zi}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Ic(18,null,null,0)).stateNode=t,n.return=e,e.child=n,no=e,ro=null,!0);default:return!1}}function lo(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function co(e){if(io){var t=ro;if(t){var n=t;if(!so(e,t)){if(lo(e))throw Error(o(418));t=ci(n.nextSibling);var r=no;t&&so(e,t)?ao(r,n):(e.flags=-4097&e.flags|2,io=!1,no=e)}}else{if(lo(e))throw Error(o(418));e.flags=-4097&e.flags|2,io=!1,no=e}}}function uo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;no=e}function fo(e){if(e!==no)return!1;if(!io)return uo(e),io=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ni(e.type,e.memoizedProps)),t&&(t=ro)){if(lo(e))throw po(),Error(o(418));for(;t;)ao(e,t),t=ci(t.nextSibling)}if(uo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ro=ci(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ro=null}}else ro=no?ci(e.stateNode.nextSibling):null;return!0}function po(){for(var e=ro;e;)e=ci(e.nextSibling)}function ho(){ro=no=null,io=!1}function mo(e){null===oo?oo=[e]:oo.push(e)}var go=w.ReactCurrentBatchConfig;function vo(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=r,a=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!==typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function yo(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bo(e){return(0,e._init)(e._payload)}function wo(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Pc(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Lc(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function c(e,t,n,r){var o=n.type;return o===E?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"===typeof o&&null!==o&&o.$$typeof===D&&bo(o)===t.type)?((r=i(t,n.props)).ref=vo(e,t,n),r.return=e,r):((r=Rc(n.type,n.key,n.props,null,e.mode,r)).ref=vo(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=zc(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=jc(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Lc(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case x:return(n=Rc(t.type,t.key,t.props,null,e.mode,n)).ref=vo(e,null,t),n.return=e,n;case _:return(t=zc(t,e.mode,n)).return=e,t;case D:return f(e,(0,t._init)(t._payload),n)}if(te(t)||j(t))return(t=jc(t,e.mode,n,null)).return=e,t;yo(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==i?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case x:return n.key===i?c(e,t,n,r):null;case _:return n.key===i?u(e,t,n,r):null;case D:return p(e,t,(i=n._init)(n._payload),r)}if(te(n)||j(n))return null!==i?null:d(e,t,n,r,null);yo(e,n)}return null}function h(e,t,n,r,i){if("string"===typeof r&&""!==r||"number"===typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case x:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case _:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case D:return h(e,t,n,(0,r._init)(r._payload),i)}if(te(r)||j(r))return d(t,e=e.get(n)||null,r,i,null);yo(t,r)}return null}function m(i,o,s,l){for(var c=null,u=null,d=o,m=o=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=p(i,d,s[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(i,d),o=a(v,o,m),null===u?c=v:u.sibling=v,u=v,d=g}if(m===s.length)return n(i,d),io&&Ji(i,m),c;if(null===d){for(;m<s.length;m++)null!==(d=f(i,s[m],l))&&(o=a(d,o,m),null===u?c=d:u.sibling=d,u=d);return io&&Ji(i,m),c}for(d=r(i,d);m<s.length;m++)null!==(g=h(d,i,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),o=a(g,o,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(i,e)})),io&&Ji(i,m),c}function g(i,s,l,c){var u=j(l);if("function"!==typeof u)throw Error(o(150));if(null==(l=u.call(l)))throw Error(o(151));for(var d=u=null,m=s,g=s=0,v=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=p(i,m,y.value,c);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(i,m),s=a(b,s,g),null===d?u=b:d.sibling=b,d=b,m=v}if(y.done)return n(i,m),io&&Ji(i,g),u;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=f(i,y.value,c))&&(s=a(y,s,g),null===d?u=y:d.sibling=y,d=y);return io&&Ji(i,g),u}for(m=r(i,m);!y.done;g++,y=l.next())null!==(y=h(m,i,g,y.value,c))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=a(y,s,g),null===d?u=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(i,e)})),io&&Ji(i,g),u}return function e(r,o,a,l){if("object"===typeof a&&null!==a&&a.type===E&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case x:e:{for(var c=a.key,u=o;null!==u;){if(u.key===c){if((c=a.type)===E){if(7===u.tag){n(r,u.sibling),(o=i(u,a.props.children)).return=r,r=o;break e}}else if(u.elementType===c||"object"===typeof c&&null!==c&&c.$$typeof===D&&bo(c)===u.type){n(r,u.sibling),(o=i(u,a.props)).ref=vo(r,u,a),o.return=r,r=o;break e}n(r,u);break}t(r,u),u=u.sibling}a.type===E?((o=jc(a.props.children,r.mode,l,a.key)).return=r,r=o):((l=Rc(a.type,a.key,a.props,null,r.mode,l)).ref=vo(r,o,a),l.return=r,r=l)}return s(r);case _:e:{for(u=a.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(r,o.sibling),(o=i(o,a.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=zc(a,r.mode,l)).return=r,r=o}return s(r);case D:return e(r,o,(u=a._init)(a._payload),l)}if(te(a))return m(r,o,a,l);if(j(a))return g(r,o,a,l);yo(r,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,a)).return=r,r=o):(n(r,o),(o=Lc(a,r.mode,l)).return=r,r=o),s(r)):n(r,o)}}var xo=wo(!0),_o=wo(!1),Eo=Si(null),So=null,ko=null,Co=null;function Oo(){Co=ko=So=null}function No(e){var t=Eo.current;ki(Eo),e._currentValue=t}function To(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ao(e,t){So=e,Co=ko=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(bs=!0),e.firstContext=null)}function Io(e){var t=e._currentValue;if(Co!==e)if(e={context:e,memoizedValue:t,next:null},null===ko){if(null===So)throw Error(o(308));ko=e,So.dependencies={lanes:0,firstContext:e}}else ko=ko.next=e;return t}var Do=null;function Po(e){null===Do?Do=[e]:Do.push(e)}function Ro(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,Po(t)):(n.next=i.next,i.next=n),t.interleaved=n,jo(e,r)}function jo(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Mo=!1;function Lo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function zo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Fo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Bo(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&Nl)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,jo(e,n)}return null===(i=r.interleaved)?(t.next=t,Po(r)):(t.next=i.next,i.next=t),r.interleaved=t,jo(e,n)}function Uo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function $o(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function qo(e,t,n,r){var i=e.updateQueue;Mo=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?o=c:a.next=c,a=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==o){var d=i.baseState;for(a=0,u=c=l=null,s=o;;){var f=s.lane,p=s.eventTime;if((r&f)===f){null!==u&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(f=t,p=n,m.tag){case 1:if("function"===typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null===(f="function"===typeof(h=m.payload)?h.call(p,d,f):h)||void 0===f)break e;d=L({},d,f);break e;case 2:Mo=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=i.effects)?i.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=p,l=d):u=u.next=p,a|=f;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(f=s).next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}if(null===u&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);Ml|=a,e.lanes=a,e.memoizedState=d}}function Ho(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!==typeof i)throw Error(o(191,i));i.call(r)}}}var Vo={},Wo=Si(Vo),Ko=Si(Vo),Go=Si(Vo);function Yo(e){if(e===Vo)throw Error(o(174));return e}function Qo(e,t){switch(Ci(Go,t),Ci(Ko,e),Ci(Wo,Vo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ki(Wo),Ci(Wo,t)}function Zo(){ki(Wo),ki(Ko),ki(Go)}function Jo(e){Yo(Go.current);var t=Yo(Wo.current),n=le(t,e.type);t!==n&&(Ci(Ko,e),Ci(Wo,n))}function Xo(e){Ko.current===e&&(ki(Wo),ki(Ko))}var ea=Si(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var ia=w.ReactCurrentDispatcher,oa=w.ReactCurrentBatchConfig,aa=0,sa=null,la=null,ca=null,ua=!1,da=!1,fa=0,pa=0;function ha(){throw Error(o(321))}function ma(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function ga(e,t,n,r,i,a){if(aa=a,sa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ia.current=null===e||null===e.memoizedState?Xa:es,e=n(r,i),da){a=0;do{if(da=!1,fa=0,25<=a)throw Error(o(301));a+=1,ca=la=null,t.updateQueue=null,ia.current=ts,e=n(r,i)}while(da)}if(ia.current=Ja,t=null!==la&&null!==la.next,aa=0,ca=la=sa=null,ua=!1,t)throw Error(o(300));return e}function va(){var e=0!==fa;return fa=0,e}function ya(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ca?sa.memoizedState=ca=e:ca=ca.next=e,ca}function ba(){if(null===la){var e=sa.alternate;e=null!==e?e.memoizedState:null}else e=la.next;var t=null===ca?sa.memoizedState:ca.next;if(null!==t)ca=t,la=e;else{if(null===e)throw Error(o(310));e={memoizedState:(la=e).memoizedState,baseState:la.baseState,baseQueue:la.baseQueue,queue:la.queue,next:null},null===ca?sa.memoizedState=ca=e:ca=ca.next=e}return ca}function wa(e,t){return"function"===typeof t?t(e):t}function xa(e){var t=ba(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=la,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}r.baseQueue=i=a,n.pending=null}if(null!==i){a=i.next,r=r.baseState;var l=s=null,c=null,u=a;do{var d=u.lane;if((aa&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=f,s=r):c=c.next=f,sa.lanes|=d,Ml|=d}u=u.next}while(null!==u&&u!==a);null===c?s=r:c.next=l,sr(r,t.memoizedState)||(bs=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{a=i.lane,sa.lanes|=a,Ml|=a,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function _a(e){var t=ba(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);sr(a,t.memoizedState)||(bs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Ea(){}function Sa(e,t){var n=sa,r=ba(),i=t(),a=!sr(r.memoizedState,i);if(a&&(r.memoizedState=i,bs=!0),r=r.queue,Ma(Oa.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ca&&1&ca.memoizedState.tag){if(n.flags|=2048,Ia(9,Ca.bind(null,n,r,i,t),void 0,null),null===Tl)throw Error(o(349));0!==(30&aa)||ka(n,t,i)}return i}function ka(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ca(e,t,n,r){t.value=n,t.getSnapshot=r,Na(t)&&Ta(e)}function Oa(e,t,n){return n((function(){Na(t)&&Ta(e)}))}function Na(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(r){return!0}}function Ta(e){var t=jo(e,1);null!==t&&nc(t,e,1,-1)}function Aa(e){var t=ya();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wa,lastRenderedState:e},t.queue=e,e=e.dispatch=Ga.bind(null,sa,e),[t.memoizedState,e]}function Ia(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Da(){return ba().memoizedState}function Pa(e,t,n,r){var i=ya();sa.flags|=e,i.memoizedState=Ia(1|t,n,void 0,void 0===r?null:r)}function Ra(e,t,n,r){var i=ba();r=void 0===r?null:r;var o=void 0;if(null!==la){var a=la.memoizedState;if(o=a.destroy,null!==r&&ma(r,a.deps))return void(i.memoizedState=Ia(t,n,o,r))}sa.flags|=e,i.memoizedState=Ia(1|t,n,o,r)}function ja(e,t){return Pa(8390656,8,e,t)}function Ma(e,t){return Ra(2048,8,e,t)}function La(e,t){return Ra(4,2,e,t)}function za(e,t){return Ra(4,4,e,t)}function Fa(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ba(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Ra(4,4,Fa.bind(null,t,e),n)}function Ua(){}function $a(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function qa(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ha(e,t,n){return 0===(21&aa)?(e.baseState&&(e.baseState=!1,bs=!0),e.memoizedState=n):(sr(n,t)||(n=mt(),sa.lanes|=n,Ml|=n,e.baseState=!0),t)}function Va(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=oa.transition;oa.transition={};try{e(!1),t()}finally{bt=n,oa.transition=r}}function Wa(){return ba().memoizedState}function Ka(e,t,n){var r=tc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ya(e))Qa(t,n);else if(null!==(n=Ro(e,t,n,r))){nc(n,e,r,ec()),Za(n,t,r)}}function Ga(e,t,n){var r=tc(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ya(e))Qa(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,sr(s,a)){var l=t.interleaved;return null===l?(i.next=i,Po(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(c){}null!==(n=Ro(e,t,i,r))&&(nc(n,e,r,i=ec()),Za(n,t,r))}}function Ya(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function Qa(e,t){da=ua=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Za(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var Ja={readContext:Io,useCallback:ha,useContext:ha,useEffect:ha,useImperativeHandle:ha,useInsertionEffect:ha,useLayoutEffect:ha,useMemo:ha,useReducer:ha,useRef:ha,useState:ha,useDebugValue:ha,useDeferredValue:ha,useTransition:ha,useMutableSource:ha,useSyncExternalStore:ha,useId:ha,unstable_isNewReconciler:!1},Xa={readContext:Io,useCallback:function(e,t){return ya().memoizedState=[e,void 0===t?null:t],e},useContext:Io,useEffect:ja,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Pa(4194308,4,Fa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Pa(4194308,4,e,t)},useInsertionEffect:function(e,t){return Pa(4,2,e,t)},useMemo:function(e,t){var n=ya();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ya();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ka.bind(null,sa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ya().memoizedState=e},useState:Aa,useDebugValue:Ua,useDeferredValue:function(e){return ya().memoizedState=e},useTransition:function(){var e=Aa(!1),t=e[0];return e=Va.bind(null,e[1]),ya().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=sa,i=ya();if(io){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===Tl)throw Error(o(349));0!==(30&aa)||ka(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,ja(Oa.bind(null,r,a,e),[e]),r.flags|=2048,Ia(9,Ca.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ya(),t=Tl.identifierPrefix;if(io){var n=Zi;t=":"+t+"R"+(n=(Qi&~(1<<32-at(Qi)-1)).toString(32)+n),0<(n=fa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=pa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:Io,useCallback:$a,useContext:Io,useEffect:Ma,useImperativeHandle:Ba,useInsertionEffect:La,useLayoutEffect:za,useMemo:qa,useReducer:xa,useRef:Da,useState:function(){return xa(wa)},useDebugValue:Ua,useDeferredValue:function(e){return Ha(ba(),la.memoizedState,e)},useTransition:function(){return[xa(wa)[0],ba().memoizedState]},useMutableSource:Ea,useSyncExternalStore:Sa,useId:Wa,unstable_isNewReconciler:!1},ts={readContext:Io,useCallback:$a,useContext:Io,useEffect:Ma,useImperativeHandle:Ba,useInsertionEffect:La,useLayoutEffect:za,useMemo:qa,useReducer:_a,useRef:Da,useState:function(){return _a(wa)},useDebugValue:Ua,useDeferredValue:function(e){var t=ba();return null===la?t.memoizedState=e:Ha(t,la.memoizedState,e)},useTransition:function(){return[_a(wa)[0],ba().memoizedState]},useMutableSource:Ea,useSyncExternalStore:Sa,useId:Wa,unstable_isNewReconciler:!1};function ns(e,t){if(e&&e.defaultProps){for(var n in t=L({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rs(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:L({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var is={isMounted:function(e){return!!(e=e._reactInternals)&&$e(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ec(),i=tc(e),o=Fo(r,i);o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=Bo(e,o,i))&&(nc(t,e,i,r),Uo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ec(),i=tc(e),o=Fo(r,i);o.tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=Bo(e,o,i))&&(nc(t,e,i,r),Uo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ec(),r=tc(e),i=Fo(n,r);i.tag=2,void 0!==t&&null!==t&&(i.callback=t),null!==(t=Bo(e,i,r))&&(nc(t,e,r,n),Uo(t,e,r))}};function os(e,t,n,r,i,o,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(i,o))}function as(e,t,n){var r=!1,i=Oi,o=t.contextType;return"object"===typeof o&&null!==o?o=Io(o):(i=Di(t)?Ai:Ni.current,o=(r=null!==(r=t.contextTypes)&&void 0!==r)?Ii(e,i):Oi),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=is,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function ss(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&is.enqueueReplaceState(t,t.state,null)}function ls(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Lo(e);var o=t.contextType;"object"===typeof o&&null!==o?i.context=Io(o):(o=Di(t)?Ai:Ni.current,i.context=Ii(e,o)),i.state=e.memoizedState,"function"===typeof(o=t.getDerivedStateFromProps)&&(rs(e,t,o,n),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&is.enqueueReplaceState(i,i.state,null),qo(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.flags|=4194308)}function cs(e,t){try{var n="",r=t;do{n+=U(r),r=r.return}while(r);var i=n}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:i,digest:null}}function us(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var fs="function"===typeof WeakMap?WeakMap:Map;function ps(e,t,n){(n=Fo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hl||(Hl=!0,Vl=r),ds(0,t)},n}function hs(e,t,n){(n=Fo(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){ds(0,t)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!==typeof r&&(null===Wl?Wl=new Set([this]):Wl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ms(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fs;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=kc.bind(null,e,t,n),t.then(e,e))}function gs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function vs(e,t,n,r,i){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Fo(-1,1)).tag=2,Bo(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var ys=w.ReactCurrentOwner,bs=!1;function ws(e,t,n,r){t.child=null===e?_o(t,null,n,r):xo(t,e.child,n,r)}function xs(e,t,n,r,i){n=n.render;var o=t.ref;return Ao(t,i),r=ga(e,t,n,r,o,i),n=va(),null===e||bs?(io&&n&&eo(t),t.flags|=1,ws(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Hs(e,t,i))}function _s(e,t,n,r,i){if(null===e){var o=n.type;return"function"!==typeof o||Dc(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Rc(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Es(e,t,o,r,i))}if(o=e.child,0===(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&e.ref===t.ref)return Hs(e,t,i)}return t.flags|=1,(e=Pc(o,r)).ref=t.ref,e.return=t,t.child=e}function Es(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(lr(o,r)&&e.ref===t.ref){if(bs=!1,t.pendingProps=r=o,0===(e.lanes&i))return t.lanes=e.lanes,Hs(e,t,i);0!==(131072&e.flags)&&(bs=!0)}}return Cs(e,t,n,r,i)}function Ss(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ci(Pl,Dl),Dl|=n;else{if(0===(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ci(Pl,Dl),Dl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,Ci(Pl,Dl),Dl|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,Ci(Pl,Dl),Dl|=r;return ws(e,t,i,n),t.child}function ks(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Cs(e,t,n,r,i){var o=Di(n)?Ai:Ni.current;return o=Ii(t,o),Ao(t,i),n=ga(e,t,n,r,o,i),r=va(),null===e||bs?(io&&r&&eo(t),t.flags|=1,ws(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Hs(e,t,i))}function Os(e,t,n,r,i){if(Di(n)){var o=!0;Mi(t)}else o=!1;if(Ao(t,i),null===t.stateNode)qs(e,t),as(t,n,r),ls(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"===typeof c&&null!==c?c=Io(c):c=Ii(t,c=Di(n)?Ai:Ni.current);var u=n.getDerivedStateFromProps,d="function"===typeof u||"function"===typeof a.getSnapshotBeforeUpdate;d||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||l!==c)&&ss(t,a,r,c),Mo=!1;var f=t.memoizedState;a.state=f,qo(t,r,a,i),l=t.memoizedState,s!==r||f!==l||Ti.current||Mo?("function"===typeof u&&(rs(t,n,u,r),l=t.memoizedState),(s=Mo||os(t,n,s,r,f,l,c))?(d||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4194308)):("function"===typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"===typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,zo(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:ns(t.type,s),a.props=c,d=t.pendingProps,f=a.context,"object"===typeof(l=n.contextType)&&null!==l?l=Io(l):l=Ii(t,l=Di(n)?Ai:Ni.current);var p=n.getDerivedStateFromProps;(u="function"===typeof p||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==d||f!==l)&&ss(t,a,r,l),Mo=!1,f=t.memoizedState,a.state=f,qo(t,r,a,i);var h=t.memoizedState;s!==d||f!==h||Ti.current||Mo?("function"===typeof p&&(rs(t,n,p,r),h=t.memoizedState),(c=Mo||os(t,n,c,r,f,h,l)||!1)?(u||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=c):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Ns(e,t,n,r,o,i)}function Ns(e,t,n,r,i,o){ks(e,t);var a=0!==(128&t.flags);if(!r&&!a)return i&&Li(t,n,!1),Hs(e,t,o);r=t.stateNode,ys.current=t;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=xo(t,e.child,null,o),t.child=xo(t,null,s,o)):ws(e,t,s,o),t.memoizedState=r.state,i&&Li(t,n,!0),t.child}function Ts(e){var t=e.stateNode;t.pendingContext?Ri(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ri(0,t.context,!1),Qo(e,t.containerInfo)}function As(e,t,n,r,i){return ho(),mo(i),t.flags|=256,ws(e,t,n,r),t.child}var Is,Ds,Ps,Rs,js={dehydrated:null,treeContext:null,retryLane:0};function Ms(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ls(e,t,n){var r,i=t.pendingProps,a=ea.current,s=!1,l=0!==(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!==(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Ci(ea,1&a),null===e)return co(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=i.children,e=i.fallback,s?(i=t.mode,s=t.child,l={mode:"hidden",children:l},0===(1&i)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=Mc(l,i,0,null),e=jc(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ms(n),t.memoizedState=js,e):zs(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,i,a,s){if(n)return 256&t.flags?(t.flags&=-257,Fs(e,t,s,r=us(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=Mc({mode:"visible",children:r.children},i,0,null),(a=jc(a,i,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!==(1&t.mode)&&xo(t,e.child,null,s),t.child.memoizedState=Ms(s),t.memoizedState=js,a);if(0===(1&t.mode))return Fs(e,t,s,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var l=r.dgst;return r=l,Fs(e,t,s,r=us(a=Error(o(419)),r,void 0))}if(l=0!==(s&e.childLanes),bs||l){if(null!==(r=Tl)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!==(i&(r.suspendedLanes|s))?0:i)&&i!==a.retryLane&&(a.retryLane=i,jo(e,i),nc(r,e,i,-1))}return mc(),Fs(e,t,s,r=us(Error(o(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Oc.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,ro=ci(i.nextSibling),no=t,io=!0,oo=null,null!==e&&(Ki[Gi++]=Qi,Ki[Gi++]=Zi,Ki[Gi++]=Yi,Qi=e.id,Zi=e.overflow,Yi=t),t=zs(t,r.children),t.flags|=4096,t)}(e,t,l,i,r,a,n);if(s){s=i.fallback,l=t.mode,r=(a=e.child).sibling;var c={mode:"hidden",children:i.children};return 0===(1&l)&&t.child!==a?((i=t.child).childLanes=0,i.pendingProps=c,t.deletions=null):(i=Pc(a,c)).subtreeFlags=14680064&a.subtreeFlags,null!==r?s=Pc(r,s):(s=jc(s,l,n,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,l=null===(l=e.child.memoizedState)?Ms(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=js,i}return e=(s=e.child).sibling,i=Pc(s,{mode:"visible",children:i.children}),0===(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function zs(e,t){return(t=Mc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Fs(e,t,n,r){return null!==r&&mo(r),xo(t,e.child,null,n),(e=zs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Bs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),To(e.return,t,n)}function Us(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function $s(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(ws(e,t,r.children,n),0!==(2&(r=ea.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Bs(e,n,t);else if(19===e.tag)Bs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ci(ea,r),0===(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Us(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===ta(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Us(t,!0,n,null,o);break;case"together":Us(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function qs(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Hs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ml|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Pc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Pc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Vs(e,t){if(!io)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ws(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ks(e,t,n){var r=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ws(t),null;case 1:case 17:return Di(t.type)&&Pi(),Ws(t),null;case 3:return r=t.stateNode,Zo(),ki(Ti),ki(Ni),ra(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fo(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==oo&&(ac(oo),oo=null))),Ds(e,t),Ws(t),null;case 5:Xo(t);var i=Yo(Go.current);if(n=t.type,null!==e&&null!=t.stateNode)Ps(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return Ws(t),null}if(e=Yo(Wo.current),fo(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[fi]=t,r[pi]=a,e=0!==(1&t.mode),n){case"dialog":Fr("cancel",r),Fr("close",r);break;case"iframe":case"object":case"embed":Fr("load",r);break;case"video":case"audio":for(i=0;i<jr.length;i++)Fr(jr[i],r);break;case"source":Fr("error",r);break;case"img":case"image":case"link":Fr("error",r),Fr("load",r);break;case"details":Fr("toggle",r);break;case"input":Q(r,a),Fr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Fr("invalid",r);break;case"textarea":ie(r,a),Fr("invalid",r)}for(var l in ye(n,a),i=null,a)if(a.hasOwnProperty(l)){var c=a[l];"children"===l?"string"===typeof c?r.textContent!==c&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,c,e),i=["children",c]):"number"===typeof c&&r.textContent!==""+c&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,c,e),i=["children",""+c]):s.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Fr("scroll",r)}switch(n){case"input":W(r),X(r,a,!0);break;case"textarea":W(r),ae(r);break;case"select":case"option":break;default:"function"===typeof a.onClick&&(r.onclick=Xr)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[fi]=t,e[pi]=r,Is(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(n,r),n){case"dialog":Fr("cancel",e),Fr("close",e),i=r;break;case"iframe":case"object":case"embed":Fr("load",e),i=r;break;case"video":case"audio":for(i=0;i<jr.length;i++)Fr(jr[i],e);i=r;break;case"source":Fr("error",e),i=r;break;case"img":case"image":case"link":Fr("error",e),Fr("load",e),i=r;break;case"details":Fr("toggle",e),i=r;break;case"input":Q(e,r),i=Y(e,r),Fr("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=L({},r,{value:void 0}),Fr("invalid",e);break;case"textarea":ie(e,r),i=re(e,r),Fr("invalid",e)}for(a in ye(n,i),c=i)if(c.hasOwnProperty(a)){var u=c[a];"style"===a?ge(e,u):"dangerouslySetInnerHTML"===a?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===a?"string"===typeof u?("textarea"!==n||""!==u)&&fe(e,u):"number"===typeof u&&fe(e,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=u&&"onScroll"===a&&Fr("scroll",e):null!=u&&b(e,a,u,l))}switch(n){case"input":W(e),X(e,r,!1);break;case"textarea":W(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+H(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof i.onClick&&(e.onclick=Xr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ws(t),null;case 6:if(e&&null!=t.stateNode)Rs(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(o(166));if(n=Yo(Go.current),Yo(Wo.current),fo(t)){if(r=t.stateNode,n=t.memoizedProps,r[fi]=t,(a=r.nodeValue!==n)&&null!==(e=no))switch(e.tag){case 3:Jr(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jr(r.nodeValue,n,0!==(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[fi]=t,t.stateNode=r}return Ws(t),null;case 13:if(ki(ea),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(io&&null!==ro&&0!==(1&t.mode)&&0===(128&t.flags))po(),ho(),t.flags|=98560,a=!1;else if(a=fo(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(o(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(o(317));a[fi]=t}else ho(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ws(t),a=!1}else null!==oo&&(ac(oo),oo=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&ea.current)?0===Rl&&(Rl=3):mc())),null!==t.updateQueue&&(t.flags|=4),Ws(t),null);case 4:return Zo(),Ds(e,t),null===e&&$r(t.stateNode.containerInfo),Ws(t),null;case 10:return No(t.type._context),Ws(t),null;case 19:if(ki(ea),null===(a=t.memoizedState))return Ws(t),null;if(r=0!==(128&t.flags),null===(l=a.rendering))if(r)Vs(a,!1);else{if(0!==Rl||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=ta(e))){for(t.flags|=128,Vs(a,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ci(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Ze()>$l&&(t.flags|=128,r=!0,Vs(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ta(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Vs(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!io)return Ws(t),null}else 2*Ze()-a.renderingStartTime>$l&&1073741824!==n&&(t.flags|=128,r=!0,Vs(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=a.last)?n.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ze(),t.sibling=null,n=ea.current,Ci(ea,r?1&n|2:1&n),t):(Ws(t),null);case 22:case 23:return dc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Dl)&&(Ws(t),6&t.subtreeFlags&&(t.flags|=8192)):Ws(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function Gs(e,t){switch(to(t),t.tag){case 1:return Di(t.type)&&Pi(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Zo(),ki(Ti),ki(Ni),ra(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Xo(t),null;case 13:if(ki(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));ho()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return ki(ea),null;case 4:return Zo(),null;case 10:return No(t.type._context),null;case 22:case 23:return dc(),null;default:return null}}Is=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ds=function(){},Ps=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Yo(Wo.current);var o,a=null;switch(n){case"input":i=Y(e,i),r=Y(e,r),a=[];break;case"select":i=L({},i,{value:void 0}),r=L({},r,{value:void 0}),a=[];break;case"textarea":i=re(e,i),r=re(e,r),a=[];break;default:"function"!==typeof i.onClick&&"function"===typeof r.onClick&&(e.onclick=Xr)}for(u in ye(n,r),n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&null!=i[u])if("style"===u){var l=i[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var c=r[u];if(l=null!=i?i[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(o in l)!l.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&l[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(a||(a=[]),a.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(a=a||[]).push(u,c)):"children"===u?"string"!==typeof c&&"number"!==typeof c||(a=a||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Fr("scroll",e),a||l===c||(a=[])):(a=a||[]).push(u,c))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},Rs=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ys=!1,Qs=!1,Zs="function"===typeof WeakSet?WeakSet:Set,Js=null;function Xs(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){Sc(e,t,r)}else n.current=null}function el(e,t,n){try{n()}catch(r){Sc(e,t,r)}}var tl=!1;function nl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&el(t,n,o)}i=i.next}while(i!==r)}}function rl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function il(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function ol(e){var t=e.alternate;null!==t&&(e.alternate=null,ol(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[fi],delete t[pi],delete t[mi],delete t[gi],delete t[vi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function al(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||al(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Xr));else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}var ul=null,dl=!1;function fl(e,t,n){for(n=n.child;null!==n;)pl(e,t,n),n=n.sibling}function pl(e,t,n){if(ot&&"function"===typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(it,n)}catch(s){}switch(n.tag){case 5:Qs||Xs(n,t);case 6:var r=ul,i=dl;ul=null,fl(e,t,n),dl=i,null!==(ul=r)&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ul.removeChild(n.stateNode));break;case 18:null!==ul&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?li(e.parentNode,n):1===e.nodeType&&li(e,n),$t(e)):li(ul,n.stateNode));break;case 4:r=ul,i=dl,ul=n.stateNode.containerInfo,dl=!0,fl(e,t,n),ul=r,dl=i;break;case 0:case 11:case 14:case 15:if(!Qs&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(0!==(2&o)||0!==(4&o))&&el(n,t,a),i=i.next}while(i!==r)}fl(e,t,n);break;case 1:if(!Qs&&(Xs(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Sc(n,t,s)}fl(e,t,n);break;case 21:fl(e,t,n);break;case 22:1&n.mode?(Qs=(r=Qs)||null!==n.memoizedState,fl(e,t,n),Qs=r):fl(e,t,n);break;default:fl(e,t,n)}}function hl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Zs),t.forEach((function(t){var r=Nc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ml(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:ul=l.stateNode,dl=!1;break e;case 3:case 4:ul=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===ul)throw Error(o(160));pl(a,s,i),ul=null,dl=!1;var c=i.alternate;null!==c&&(c.return=null),i.return=null}catch(u){Sc(i,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gl(t,e),t=t.sibling}function gl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),vl(e),4&r){try{nl(3,e,e.return),rl(3,e)}catch(g){Sc(e,e.return,g)}try{nl(5,e,e.return)}catch(g){Sc(e,e.return,g)}}break;case 1:ml(t,e),vl(e),512&r&&null!==n&&Xs(n,n.return);break;case 5:if(ml(t,e),vl(e),512&r&&null!==n&&Xs(n,n.return),32&e.flags){var i=e.stateNode;try{fe(i,"")}catch(g){Sc(e,e.return,g)}}if(4&r&&null!=(i=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===a.type&&null!=a.name&&Z(i,a),be(l,s);var u=be(l,a);for(s=0;s<c.length;s+=2){var d=c[s],f=c[s+1];"style"===d?ge(i,f):"dangerouslySetInnerHTML"===d?de(i,f):"children"===d?fe(i,f):b(i,d,f,u)}switch(l){case"input":J(i,a);break;case"textarea":oe(i,a);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ne(i,!!a.multiple,h,!1):p!==!!a.multiple&&(null!=a.defaultValue?ne(i,!!a.multiple,a.defaultValue,!0):ne(i,!!a.multiple,a.multiple?[]:"",!1))}i[pi]=a}catch(g){Sc(e,e.return,g)}}break;case 6:if(ml(t,e),vl(e),4&r){if(null===e.stateNode)throw Error(o(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(g){Sc(e,e.return,g)}}break;case 3:if(ml(t,e),vl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{$t(t.containerInfo)}catch(g){Sc(e,e.return,g)}break;case 4:default:ml(t,e),vl(e);break;case 13:ml(t,e),vl(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||(Ul=Ze())),4&r&&hl(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Qs=(u=Qs)||d,ml(t,e),Qs=u):ml(t,e),vl(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!==(1&e.mode))for(Js=e,d=e.child;null!==d;){for(f=Js=d;null!==Js;){switch(h=(p=Js).child,p.tag){case 0:case 11:case 14:case 15:nl(4,p,p.return);break;case 1:Xs(p,p.return);var m=p.stateNode;if("function"===typeof m.componentWillUnmount){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(g){Sc(r,n,g)}}break;case 5:Xs(p,p.return);break;case 22:if(null!==p.memoizedState){xl(f);continue}}null!==h?(h.return=p,Js=h):xl(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{i=f.stateNode,u?"function"===typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=f.stateNode,s=void 0!==(c=f.memoizedProps.style)&&null!==c&&c.hasOwnProperty("display")?c.display:null,l.style.display=me("display",s))}catch(g){Sc(e,e.return,g)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(g){Sc(e,e.return,g)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:ml(t,e),vl(e),4&r&&hl(e);case 21:}}function vl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(al(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(fe(i,""),r.flags&=-33),cl(e,sl(e),i);break;case 3:case 4:var a=r.stateNode.containerInfo;ll(e,sl(e),a);break;default:throw Error(o(161))}}catch(s){Sc(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yl(e,t,n){Js=e,bl(e,t,n)}function bl(e,t,n){for(var r=0!==(1&e.mode);null!==Js;){var i=Js,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||Ys;if(!a){var s=i.alternate,l=null!==s&&null!==s.memoizedState||Qs;s=Ys;var c=Qs;if(Ys=a,(Qs=l)&&!c)for(Js=i;null!==Js;)l=(a=Js).child,22===a.tag&&null!==a.memoizedState?_l(i):null!==l?(l.return=a,Js=l):_l(i);for(;null!==o;)Js=o,bl(o,t,n),o=o.sibling;Js=i,Ys=s,Qs=c}wl(e)}else 0!==(8772&i.subtreeFlags)&&null!==o?(o.return=i,Js=o):wl(e)}}function wl(e){for(;null!==Js;){var t=Js;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Qs||rl(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Qs)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:ns(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Ho(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Ho(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&$t(f)}}}break;default:throw Error(o(163))}Qs||512&t.flags&&il(t)}catch(p){Sc(t,t.return,p)}}if(t===e){Js=null;break}if(null!==(n=t.sibling)){n.return=t.return,Js=n;break}Js=t.return}}function xl(e){for(;null!==Js;){var t=Js;if(t===e){Js=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Js=n;break}Js=t.return}}function _l(e){for(;null!==Js;){var t=Js;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(l){Sc(t,n,l)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(l){Sc(t,i,l)}}var o=t.return;try{il(t)}catch(l){Sc(t,o,l)}break;case 5:var a=t.return;try{il(t)}catch(l){Sc(t,a,l)}}}catch(l){Sc(t,t.return,l)}if(t===e){Js=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Js=s;break}Js=t.return}}var El,Sl=Math.ceil,kl=w.ReactCurrentDispatcher,Cl=w.ReactCurrentOwner,Ol=w.ReactCurrentBatchConfig,Nl=0,Tl=null,Al=null,Il=0,Dl=0,Pl=Si(0),Rl=0,jl=null,Ml=0,Ll=0,zl=0,Fl=null,Bl=null,Ul=0,$l=1/0,ql=null,Hl=!1,Vl=null,Wl=null,Kl=!1,Gl=null,Yl=0,Ql=0,Zl=null,Jl=-1,Xl=0;function ec(){return 0!==(6&Nl)?Ze():-1!==Jl?Jl:Jl=Ze()}function tc(e){return 0===(1&e.mode)?1:0!==(2&Nl)&&0!==Il?Il&-Il:null!==go.transition?(0===Xl&&(Xl=mt()),Xl):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Qt(e.type)}function nc(e,t,n,r){if(50<Ql)throw Ql=0,Zl=null,Error(o(185));vt(e,n,r),0!==(2&Nl)&&e===Tl||(e===Tl&&(0===(2&Nl)&&(Ll|=n),4===Rl&&sc(e,Il)),rc(e,r),1===n&&0===Nl&&0===(1&t.mode)&&($l=Ze()+500,Fi&&$i()))}function rc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-at(o),s=1<<a,l=i[a];-1===l?0!==(s&n)&&0===(s&r)||(i[a]=pt(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=ft(e,e===Tl?Il:0);if(0===r)null!==n&&Ge(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ge(n),1===t)0===e.tag?function(e){Fi=!0,Ui(e)}(lc.bind(null,e)):Ui(lc.bind(null,e)),ai((function(){0===(6&Nl)&&$i()})),n=null;else{switch(wt(r)){case 1:n=Xe;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Tc(n,ic.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ic(e,t){if(Jl=-1,Xl=0,0!==(6&Nl))throw Error(o(327));var n=e.callbackNode;if(_c()&&e.callbackNode!==n)return null;var r=ft(e,e===Tl?Il:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=gc(e,r);else{t=r;var i=Nl;Nl|=2;var a=hc();for(Tl===e&&Il===t||(ql=null,$l=Ze()+500,fc(e,t));;)try{yc();break}catch(l){pc(e,l)}Oo(),kl.current=a,Nl=i,null!==Al?t=0:(Tl=null,Il=0,t=Rl)}if(0!==t){if(2===t&&(0!==(i=ht(e))&&(r=i,t=oc(e,i))),1===t)throw n=jl,fc(e,0),sc(e,r),rc(e,Ze()),n;if(6===t)sc(e,r);else{if(i=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!sr(o(),i))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=gc(e,r))&&(0!==(a=ht(e))&&(r=a,t=oc(e,a))),1===t))throw n=jl,fc(e,0),sc(e,r),rc(e,Ze()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:case 5:xc(e,Bl,ql);break;case 3:if(sc(e,r),(130023424&r)===r&&10<(t=Ul+500-Ze())){if(0!==ft(e,0))break;if(((i=e.suspendedLanes)&r)!==r){ec(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ri(xc.bind(null,e,Bl,ql),t);break}xc(e,Bl,ql);break;case 4:if(sc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-at(r);a=1<<s,(s=t[s])>i&&(i=s),r&=~a}if(r=i,10<(r=(120>(r=Ze()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Sl(r/1960))-r)){e.timeoutHandle=ri(xc.bind(null,e,Bl,ql),r);break}xc(e,Bl,ql);break;default:throw Error(o(329))}}}return rc(e,Ze()),e.callbackNode===n?ic.bind(null,e):null}function oc(e,t){var n=Fl;return e.current.memoizedState.isDehydrated&&(fc(e,t).flags|=256),2!==(e=gc(e,t))&&(t=Bl,Bl=n,null!==t&&ac(t)),e}function ac(e){null===Bl?Bl=e:Bl.push.apply(Bl,e)}function sc(e,t){for(t&=~zl,t&=~Ll,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function lc(e){if(0!==(6&Nl))throw Error(o(327));_c();var t=ft(e,0);if(0===(1&t))return rc(e,Ze()),null;var n=gc(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=oc(e,r))}if(1===n)throw n=jl,fc(e,0),sc(e,t),rc(e,Ze()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xc(e,Bl,ql),rc(e,Ze()),null}function cc(e,t){var n=Nl;Nl|=1;try{return e(t)}finally{0===(Nl=n)&&($l=Ze()+500,Fi&&$i())}}function uc(e){null!==Gl&&0===Gl.tag&&0===(6&Nl)&&_c();var t=Nl;Nl|=1;var n=Ol.transition,r=bt;try{if(Ol.transition=null,bt=1,e)return e()}finally{bt=r,Ol.transition=n,0===(6&(Nl=t))&&$i()}}function dc(){Dl=Pl.current,ki(Pl)}function fc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ii(n)),null!==Al)for(n=Al.return;null!==n;){var r=n;switch(to(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&Pi();break;case 3:Zo(),ki(Ti),ki(Ni),ra();break;case 5:Xo(r);break;case 4:Zo();break;case 13:case 19:ki(ea);break;case 10:No(r.type._context);break;case 22:case 23:dc()}n=n.return}if(Tl=e,Al=e=Pc(e.current,null),Il=Dl=t,Rl=0,jl=null,zl=Ll=Ml=0,Bl=Fl=null,null!==Do){for(t=0;t<Do.length;t++)if(null!==(r=(n=Do[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}Do=null}return e}function pc(e,t){for(;;){var n=Al;try{if(Oo(),ia.current=Ja,ua){for(var r=sa.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}ua=!1}if(aa=0,ca=la=sa=null,da=!1,fa=0,Cl.current=null,null===n||null===n.return){Rl=1,jl=t,Al=null;break}e:{var a=e,s=n.return,l=n,c=t;if(t=Il,l.flags|=32768,null!==c&&"object"===typeof c&&"function"===typeof c.then){var u=c,d=l,f=d.tag;if(0===(1&d.mode)&&(0===f||11===f||15===f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=gs(s);if(null!==h){h.flags&=-257,vs(h,s,l,0,t),1&h.mode&&ms(a,u,t),c=u;var m=(t=h).updateQueue;if(null===m){var g=new Set;g.add(c),t.updateQueue=g}else m.add(c);break e}if(0===(1&t)){ms(a,u,t),mc();break e}c=Error(o(426))}else if(io&&1&l.mode){var v=gs(s);if(null!==v){0===(65536&v.flags)&&(v.flags|=256),vs(v,s,l,0,t),mo(cs(c,l));break e}}a=c=cs(c,l),4!==Rl&&(Rl=2),null===Fl?Fl=[a]:Fl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,$o(a,ps(0,c,t));break e;case 1:l=c;var y=a.type,b=a.stateNode;if(0===(128&a.flags)&&("function"===typeof y.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===Wl||!Wl.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,$o(a,hs(a,l,t));break e}}a=a.return}while(null!==a)}wc(n)}catch(w){t=w,Al===n&&null!==n&&(Al=n=n.return);continue}break}}function hc(){var e=kl.current;return kl.current=Ja,null===e?Ja:e}function mc(){0!==Rl&&3!==Rl&&2!==Rl||(Rl=4),null===Tl||0===(268435455&Ml)&&0===(268435455&Ll)||sc(Tl,Il)}function gc(e,t){var n=Nl;Nl|=2;var r=hc();for(Tl===e&&Il===t||(ql=null,fc(e,t));;)try{vc();break}catch(i){pc(e,i)}if(Oo(),Nl=n,kl.current=r,null!==Al)throw Error(o(261));return Tl=null,Il=0,Rl}function vc(){for(;null!==Al;)bc(Al)}function yc(){for(;null!==Al&&!Ye();)bc(Al)}function bc(e){var t=El(e.alternate,e,Dl);e.memoizedProps=e.pendingProps,null===t?wc(e):Al=t,Cl.current=null}function wc(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=Ks(n,t,Dl)))return void(Al=n)}else{if(null!==(n=Gs(n,t)))return n.flags&=32767,void(Al=n);if(null===e)return Rl=6,void(Al=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Al=t);Al=t=e}while(null!==t);0===Rl&&(Rl=5)}function xc(e,t,n){var r=bt,i=Ol.transition;try{Ol.transition=null,bt=1,function(e,t,n,r){do{_c()}while(null!==Gl);if(0!==(6&Nl))throw Error(o(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-at(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,a),e===Tl&&(Al=Tl=null,Il=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||Kl||(Kl=!0,Tc(tt,(function(){return _c(),null}))),a=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||a){a=Ol.transition,Ol.transition=null;var s=bt;bt=1;var l=Nl;Nl|=4,Cl.current=null,function(e,t){if(ei=Ht,pr(e=fr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(x){n=null;break e}var s=0,l=-1,c=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==i&&3!==f.nodeType||(l=s+i),f!==a||0!==r&&3!==f.nodeType||(c=s+r),3===f.nodeType&&(s+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++u===i&&(l=s),p===a&&++d===r&&(c=s),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(ti={focusedElem:e,selectionRange:n},Ht=!1,Js=t;null!==Js;)if(e=(t=Js).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Js=e;else for(;null!==Js;){t=Js;try{var m=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,v=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:ns(t.type,g),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(o(163))}}catch(x){Sc(t,t.return,x)}if(null!==(e=t.sibling)){e.return=t.return,Js=e;break}Js=t.return}m=tl,tl=!1}(e,n),gl(n,e),hr(ti),Ht=!!ei,ti=ei=null,e.current=n,yl(n,e,i),Qe(),Nl=l,bt=s,Ol.transition=a}else e.current=n;if(Kl&&(Kl=!1,Gl=e,Yl=i),a=e.pendingLanes,0===a&&(Wl=null),function(e){if(ot&&"function"===typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(it,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),rc(e,Ze()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Hl)throw Hl=!1,e=Vl,Vl=null,e;0!==(1&Yl)&&0!==e.tag&&_c(),a=e.pendingLanes,0!==(1&a)?e===Zl?Ql++:(Ql=0,Zl=e):Ql=0,$i()}(e,t,n,r)}finally{Ol.transition=i,bt=r}return null}function _c(){if(null!==Gl){var e=wt(Yl),t=Ol.transition,n=bt;try{if(Ol.transition=null,bt=16>e?16:e,null===Gl)var r=!1;else{if(e=Gl,Gl=null,Yl=0,0!==(6&Nl))throw Error(o(331));var i=Nl;for(Nl|=4,Js=e.current;null!==Js;){var a=Js,s=a.child;if(0!==(16&Js.flags)){var l=a.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Js=u;null!==Js;){var d=Js;switch(d.tag){case 0:case 11:case 15:nl(8,d,a)}var f=d.child;if(null!==f)f.return=d,Js=f;else for(;null!==Js;){var p=(d=Js).sibling,h=d.return;if(ol(d),d===u){Js=null;break}if(null!==p){p.return=h,Js=p;break}Js=h}}}var m=a.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Js=a}}if(0!==(2064&a.subtreeFlags)&&null!==s)s.return=a,Js=s;else e:for(;null!==Js;){if(0!==(2048&(a=Js).flags))switch(a.tag){case 0:case 11:case 15:nl(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Js=y;break e}Js=a.return}}var b=e.current;for(Js=b;null!==Js;){var w=(s=Js).child;if(0!==(2064&s.subtreeFlags)&&null!==w)w.return=s,Js=w;else e:for(s=b;null!==Js;){if(0!==(2048&(l=Js).flags))try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(_){Sc(l,l.return,_)}if(l===s){Js=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,Js=x;break e}Js=l.return}}if(Nl=i,$i(),ot&&"function"===typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(it,e)}catch(_){}r=!0}return r}finally{bt=n,Ol.transition=t}}return!1}function Ec(e,t,n){e=Bo(e,t=ps(0,t=cs(n,t),1),1),t=ec(),null!==e&&(vt(e,1,t),rc(e,t))}function Sc(e,t,n){if(3===e.tag)Ec(e,e,n);else for(;null!==t;){if(3===t.tag){Ec(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Wl||!Wl.has(r))){t=Bo(t,e=hs(t,e=cs(n,e),1),1),e=ec(),null!==t&&(vt(t,1,e),rc(t,e));break}}t=t.return}}function kc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ec(),e.pingedLanes|=e.suspendedLanes&n,Tl===e&&(Il&n)===n&&(4===Rl||3===Rl&&(130023424&Il)===Il&&500>Ze()-Ul?fc(e,0):zl|=n),rc(e,t)}function Cc(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ut,0===(130023424&(ut<<=1))&&(ut=4194304)));var n=ec();null!==(e=jo(e,t))&&(vt(e,t,n),rc(e,n))}function Oc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Cc(e,n)}function Nc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),Cc(e,n)}function Tc(e,t){return Ke(e,t)}function Ac(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ic(e,t,n,r){return new Ac(e,t,n,r)}function Dc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Pc(e,t){var n=e.alternate;return null===n?((n=Ic(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Rc(e,t,n,r,i,a){var s=2;if(r=e,"function"===typeof e)Dc(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case E:return jc(n.children,i,a,t);case S:s=8,i|=8;break;case k:return(e=Ic(12,n,t,2|i)).elementType=k,e.lanes=a,e;case T:return(e=Ic(13,n,t,i)).elementType=T,e.lanes=a,e;case A:return(e=Ic(19,n,t,i)).elementType=A,e.lanes=a,e;case P:return Mc(n,i,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case C:s=10;break e;case O:s=9;break e;case N:s=11;break e;case I:s=14;break e;case D:s=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Ic(s,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function jc(e,t,n,r){return(e=Ic(7,e,r,t)).lanes=n,e}function Mc(e,t,n,r){return(e=Ic(22,e,r,t)).elementType=P,e.lanes=n,e.stateNode={isHidden:!1},e}function Lc(e,t,n){return(e=Ic(6,e,null,t)).lanes=n,e}function zc(e,t,n){return(t=Ic(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fc(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Bc(e,t,n,r,i,o,a,s,l){return e=new Fc(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Ic(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Lo(o),e}function Uc(e){if(!e)return Oi;e:{if($e(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Di(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(Di(n))return ji(e,n,t)}return t}function $c(e,t,n,r,i,o,a,s,l){return(e=Bc(n,r,!0,e,0,o,0,s,l)).context=Uc(null),n=e.current,(o=Fo(r=ec(),i=tc(n))).callback=void 0!==t&&null!==t?t:null,Bo(n,o,i),e.current.lanes=i,vt(e,i,r),rc(e,r),e}function qc(e,t,n,r){var i=t.current,o=ec(),a=tc(i);return n=Uc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Fo(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Bo(i,t,a))&&(nc(e,i,a,o),Uo(e,i,a)),a}function Hc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Vc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Wc(e,t){Vc(e,t),(e=e.alternate)&&Vc(e,t)}El=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ti.current)bs=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return bs=!1,function(e,t,n){switch(t.tag){case 3:Ts(t),ho();break;case 5:Jo(t);break;case 1:Di(t.type)&&Mi(t);break;case 4:Qo(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Ci(Eo,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ci(ea,1&ea.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Ls(e,t,n):(Ci(ea,1&ea.current),null!==(e=Hs(e,t,n))?e.sibling:null);Ci(ea,1&ea.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return $s(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ci(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,Ss(e,t,n)}return Hs(e,t,n)}(e,t,n);bs=0!==(131072&e.flags)}else bs=!1,io&&0!==(1048576&t.flags)&&Xi(t,Wi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;qs(e,t),e=t.pendingProps;var i=Ii(t,Ni.current);Ao(t,n),i=ga(null,t,r,e,i,n);var a=va();return t.flags|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Di(r)?(a=!0,Mi(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Lo(t),i.updater=is,t.stateNode=i,i._reactInternals=t,ls(t,r,e,n),t=Ns(null,t,r,!0,a,n)):(t.tag=0,io&&a&&eo(t),ws(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(qs(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"===typeof e)return Dc(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===N)return 11;if(e===I)return 14}return 2}(r),e=ns(r,e),i){case 0:t=Cs(null,t,r,e,n);break e;case 1:t=Os(null,t,r,e,n);break e;case 11:t=xs(null,t,r,e,n);break e;case 14:t=_s(null,t,r,ns(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,Cs(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 1:return r=t.type,i=t.pendingProps,Os(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 3:e:{if(Ts(t),null===e)throw Error(o(387));r=t.pendingProps,i=(a=t.memoizedState).element,zo(e,t),qo(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=As(e,t,r,n,i=cs(Error(o(423)),t));break e}if(r!==i){t=As(e,t,r,n,i=cs(Error(o(424)),t));break e}for(ro=ci(t.stateNode.containerInfo.firstChild),no=t,io=!0,oo=null,n=_o(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ho(),r===i){t=Hs(e,t,n);break e}ws(e,t,r,n)}t=t.child}return t;case 5:return Jo(t),null===e&&co(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,ni(r,i)?s=null:null!==a&&ni(r,a)&&(t.flags|=32),ks(e,t),ws(e,t,s,n),t.child;case 6:return null===e&&co(t),null;case 13:return Ls(e,t,n);case 4:return Qo(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=xo(t,null,r,n):ws(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,xs(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 7:return ws(e,t,t.pendingProps,n),t.child;case 8:case 12:return ws(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,Ci(Eo,r._currentValue),r._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===i.children&&!Ti.current){t=Hs(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var c=l.firstContext;null!==c;){if(c.context===r){if(1===a.tag){(c=Fo(-1,n&-n)).tag=2;var u=a.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}a.lanes|=n,null!==(c=a.alternate)&&(c.lanes|=n),To(a.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(o(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),To(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}ws(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ao(t,n),r=r(i=Io(i)),t.flags|=1,ws(e,t,r,n),t.child;case 14:return i=ns(r=t.type,t.pendingProps),_s(e,t,r,i=ns(r.type,i),n);case 15:return Es(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ns(r,i),qs(e,t),t.tag=1,Di(r)?(e=!0,Mi(t)):e=!1,Ao(t,n),as(t,r,i),ls(t,r,i,n),Ns(null,t,r,!0,e,n);case 19:return $s(e,t,n);case 22:return Ss(e,t,n)}throw Error(o(156,t.tag))};var Kc="function"===typeof reportError?reportError:function(e){console.error(e)};function Gc(e){this._internalRoot=e}function Yc(e){this._internalRoot=e}function Qc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Zc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Jc(){}function Xc(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"===typeof i){var s=i;i=function(){var e=Hc(a);s.call(e)}}qc(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"===typeof r){var o=r;r=function(){var e=Hc(a);o.call(e)}}var a=$c(t,r,e,0,null,!1,0,"",Jc);return e._reactRootContainer=a,e[hi]=a.current,$r(8===e.nodeType?e.parentNode:e),uc(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"===typeof r){var s=r;r=function(){var e=Hc(l);s.call(e)}}var l=Bc(e,0,!1,null,0,!1,0,"",Jc);return e._reactRootContainer=l,e[hi]=l.current,$r(8===e.nodeType?e.parentNode:e),uc((function(){qc(t,l,n,r)})),l}(n,t,e,i,r);return Hc(a)}Yc.prototype.render=Gc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));qc(e,t,null,null)},Yc.prototype.unmount=Gc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;uc((function(){qc(null,e,null,null)})),t[hi]=null}},Yc.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Pt.length&&0!==t&&t<Pt[n].priority;n++);Pt.splice(n,0,e),0===n&&Lt(e)}},xt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),rc(t,Ze()),0===(6&Nl)&&($l=Ze()+500,$i()))}break;case 13:uc((function(){var t=jo(e,1);if(null!==t){var n=ec();nc(t,e,1,n)}})),Wc(e,1)}},_t=function(e){if(13===e.tag){var t=jo(e,134217728);if(null!==t)nc(t,e,134217728,ec());Wc(e,134217728)}},Et=function(e){if(13===e.tag){var t=tc(e),n=jo(e,t);if(null!==n)nc(n,e,t,ec());Wc(e,t)}},St=function(){return bt},kt=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},_e=function(e,t,n){switch(t){case"input":if(J(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=xi(r);if(!i)throw Error(o(90));K(r),J(r,i)}}}break;case"textarea":oe(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Ne=cc,Te=uc;var eu={usingClientEntryPoint:!1,Events:[bi,wi,xi,Ce,Oe,cc]},tu={findFiberByHostInstance:yi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nu={bundleType:tu.bundleType,version:tu.version,rendererPackageName:tu.rendererPackageName,rendererConfig:tu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ve(e))?null:e.stateNode},findFiberByHostInstance:tu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ru.isDisabled&&ru.supportsFiber)try{it=ru.inject(nu),ot=ru}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Qc(t))throw Error(o(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:_,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Qc(e))throw Error(o(299));var n=!1,r="",i=Kc;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Bc(e,1,!1,null,0,n,0,r,i),e[hi]=t.current,$r(8===e.nodeType?e.parentNode:e),new Gc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return e=null===(e=Ve(t))?null:e.stateNode},t.flushSync=function(e){return uc(e)},t.hydrate=function(e,t,n){if(!Zc(t))throw Error(o(200));return Xc(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Qc(e))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,i=!1,a="",s=Kc;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=$c(t,null,e,1,null!=n?n:null,i,0,a,s),e[hi]=t.current,$r(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Yc(t)},t.render=function(e,t,n){if(!Zc(t))throw Error(o(200));return Xc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Zc(e))throw Error(o(40));return!!e._reactRootContainer&&(uc((function(){Xc(null,null,e,!1,(function(){e._reactRootContainer=null,e[hi]=null}))})),!0)},t.unstable_batchedUpdates=cc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Zc(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return Xc(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},5906:(e,t,n)=>{"use strict";var r=n(48681);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},48681:(e,t,n)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(76575)},45099:e=>{var t="undefined"!==typeof Element,n="function"===typeof Map,r="function"===typeof Set,i="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,l,c,u;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(l=s;0!==l--;)if(!o(e[l],a[l]))return!1;return!0}if(n&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;for(u=e.entries();!(l=u.next()).done;)if(!o(l.value[1],a.get(l.value[0])))return!1;return!0}if(r&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(l=s;0!==l--;)if(e[l]!==a[l])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"===typeof e.valueOf&&"function"===typeof a.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString&&"function"===typeof e.toString&&"function"===typeof a.toString)return e.toString()===a.toString();if((s=(c=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(l=s;0!==l--;)if(!Object.prototype.hasOwnProperty.call(a,c[l]))return!1;if(t&&e instanceof Element)return!1;for(l=s;0!==l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!e.$$typeof)&&!o(e[c[l]],a[c[l]]))return!1;return!0}return e!==e&&a!==a}e.exports=function(e,t){try{return o(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},61750:(e,t,n)=>{"use strict";n.d(t,{mg:()=>J,vd:()=>V});var r=n(59284),i=n(45099),o=n.n(i),a=n(83791),s=n.n(a),l=n(37737),c=n.n(l),u=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(u||{}),d={rel:["amphtml","canonical","alternate"]},f={type:["application/ld+json"]},p={charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},h=Object.values(u),m={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},g=Object.entries(m).reduce(((e,[t,n])=>(e[n]=t,e)),{}),v="data-rh",y="defaultTitle",b="defer",w="encodeSpecialCharacters",x="onChangeClientState",_="titleTemplate",E="prioritizeSeoTags",S=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},k=e=>{let t=S(e,"title");const n=S(e,_);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,(()=>t));const r=S(e,y);return t||r||void 0},C=e=>S(e,x)||(()=>{}),O=(e,t)=>t.filter((t=>"undefined"!==typeof t[e])).map((t=>t[e])).reduce(((e,t)=>({...e,...t})),{}),N=(e,t)=>t.filter((e=>"undefined"!==typeof e.base)).map((e=>e.base)).reverse().reduce(((t,n)=>{if(!t.length){const r=Object.keys(n);for(let i=0;i<r.length;i+=1){const o=r[i].toLowerCase();if(-1!==e.indexOf(o)&&n[o])return t.concat(n)}}return t}),[]),T=(e,t,n)=>{const r={};return n.filter((t=>{return!!Array.isArray(t[e])||("undefined"!==typeof t[e]&&(n=`Helmet: ${e} should be of type "Array". Instead found type "${typeof t[e]}"`,console&&"function"===typeof console.warn&&console.warn(n)),!1);var n})).map((t=>t[e])).reverse().reduce(((e,n)=>{const i={};n.filter((e=>{let n;const o=Object.keys(e);for(let r=0;r<o.length;r+=1){const i=o[r],a=i.toLowerCase();-1===t.indexOf(a)||"rel"===n&&"canonical"===e[n].toLowerCase()||"rel"===a&&"stylesheet"===e[a].toLowerCase()||(n=a),-1===t.indexOf(i)||"innerHTML"!==i&&"cssText"!==i&&"itemprop"!==i||(n=i)}if(!n||!e[n])return!1;const a=e[n].toLowerCase();return r[n]||(r[n]={}),i[n]||(i[n]={}),!r[n][a]&&(i[n][a]=!0,!0)})).reverse().forEach((t=>e.push(t)));const o=Object.keys(i);for(let t=0;t<o.length;t+=1){const e=o[t],n={...r[e],...i[e]};r[e]=n}return e}),[]).reverse()},A=(e,t)=>{if(Array.isArray(e)&&e.length)for(let n=0;n<e.length;n+=1){if(e[n][t])return!0}return!1},I=e=>Array.isArray(e)?e.join(""):e,D=(e,t)=>Array.isArray(e)?e.reduce(((e,n)=>(((e,t)=>{const n=Object.keys(e);for(let r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1})(n,t)?e.priority.push(n):e.default.push(n),e)),{priority:[],default:[]}):{default:e,priority:[]},P=(e,t)=>({...e,[t]:void 0}),R=["noscript","script","style"],j=(e,t=!0)=>!1===t?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),M=e=>Object.keys(e).reduce(((t,n)=>{const r="undefined"!==typeof e[n]?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r}),""),L=(e,t={})=>Object.keys(e).reduce(((t,n)=>(t[m[n]||n]=e[n],t)),t),z=(e,t)=>t.map(((t,n)=>{const i={key:n,[v]:!0};return Object.keys(t).forEach((e=>{const n=m[e]||e;if("innerHTML"===n||"cssText"===n){const e=t.innerHTML||t.cssText;i.dangerouslySetInnerHTML={__html:e}}else i[n]=t[e]})),r.createElement(e,i)})),F=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>((e,t,n)=>{const i=L(n,{key:t,[v]:!0});return[r.createElement("title",i,t)]})(0,t.title,t.titleAttributes),toString:()=>((e,t,n,r)=>{const i=M(n),o=I(t);return i?`<${e} ${v}="true" ${i}>${j(o,r)}</${e}>`:`<${e} ${v}="true">${j(o,r)}</${e}>`})(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>L(t),toString:()=>M(t)};default:return{toComponent:()=>z(e,t),toString:()=>((e,t,n=!0)=>t.reduce(((t,r)=>{const i=r,o=Object.keys(i).filter((e=>!("innerHTML"===e||"cssText"===e))).reduce(((e,t)=>{const r="undefined"===typeof i[t]?t:`${t}="${j(i[t],n)}"`;return e?`${e} ${r}`:r}),""),a=i.innerHTML||i.cssText||"",s=-1===R.indexOf(e);return`${t}<${e} ${v}="true" ${o}${s?"/>":`>${a}</${e}>`}`}),""))(e,t,n)}}},B=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:i,noscriptTags:o,styleTags:a,title:s="",titleAttributes:l,prioritizeSeoTags:c}=e;let{linkTags:u,metaTags:h,scriptTags:m}=e,g={toComponent:()=>{},toString:()=>""};return c&&({priorityMethods:g,linkTags:u,metaTags:h,scriptTags:m}=(({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const i=D(e,p),o=D(t,d),a=D(n,f);return{priorityMethods:{toComponent:()=>[...z("meta",i.priority),...z("link",o.priority),...z("script",a.priority)],toString:()=>`${F("meta",i.priority,r)} ${F("link",o.priority,r)} ${F("script",a.priority,r)}`},metaTags:i.default,linkTags:o.default,scriptTags:a.default}})(e)),{priority:g,base:F("base",t,r),bodyAttributes:F("bodyAttributes",n,r),htmlAttributes:F("htmlAttributes",i,r),link:F("link",u,r),meta:F("meta",h,r),noscript:F("noscript",o,r),script:F("script",m,r),style:F("style",a,r),title:F("title",{title:s,titleAttributes:l},r)}},U=[],$=!("undefined"===typeof window||!window.document||!window.document.createElement),q=class{instances=[];canUseDOM=$;context;value={setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?U:this.instances,add:e=>{(this.canUseDOM?U:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?U:this.instances).indexOf(e);(this.canUseDOM?U:this.instances).splice(t,1)}}};constructor(e,t){this.context=e,this.canUseDOM=t||!1,t||(e.helmet=B({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},H=r.createContext({}),V=class e extends r.Component{static canUseDOM=$;helmetData;constructor(t){super(t),this.helmetData=new q(this.props.context||{},e.canUseDOM)}render(){return r.createElement(H.Provider,{value:this.helmetData.value},this.props.children)}},W=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${v}]`),i=[].slice.call(r),o=[];let a;return t&&t.length&&t.forEach((t=>{const n=document.createElement(e);for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))if("innerHTML"===e)n.innerHTML=t.innerHTML;else if("cssText"===e)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{const r=e,i="undefined"===typeof t[r]?"":t[r];n.setAttribute(e,i)}n.setAttribute(v,"true"),i.some(((e,t)=>(a=t,n.isEqualNode(e))))?i.splice(a,1):o.push(n)})),i.forEach((e=>e.parentNode?.removeChild(e))),o.forEach((e=>n.appendChild(e))),{oldTags:i,newTags:o}},K=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(v),i=r?r.split(","):[],o=[...i],a=Object.keys(t);for(const s of a){const e=t[s]||"";n.getAttribute(s)!==e&&n.setAttribute(s,e),-1===i.indexOf(s)&&i.push(s);const r=o.indexOf(s);-1!==r&&o.splice(r,1)}for(let s=o.length-1;s>=0;s-=1)n.removeAttribute(o[s]);i.length===o.length?n.removeAttribute(v):n.getAttribute(v)!==a.join(",")&&n.setAttribute(v,a.join(","))},G=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:i,linkTags:o,metaTags:a,noscriptTags:s,onChangeClientState:l,scriptTags:c,styleTags:u,title:d,titleAttributes:f}=e;K("body",r),K("html",i),((e,t)=>{"undefined"!==typeof e&&document.title!==e&&(document.title=I(e)),K("title",t)})(d,f);const p={baseTag:W("base",n),linkTags:W("link",o),metaTags:W("meta",a),noscriptTags:W("noscript",s),scriptTags:W("script",c),styleTags:W("style",u)},h={},m={};Object.keys(p).forEach((e=>{const{newTags:t,oldTags:n}=p[e];t.length&&(h[e]=t),n.length&&(m[e]=p[e].oldTags)})),t&&t(),l(e,h,m)},Y=null,Q=e=>{Y&&cancelAnimationFrame(Y),e.defer?Y=requestAnimationFrame((()=>{G(e,(()=>{Y=null}))})):(G(e),Y=null)},Z=class extends r.Component{rendered=!1;shouldComponentUpdate(e){return!c()(e,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:e}=this.props.context;e.remove(this),this.emitChange()}emitChange(){const{helmetInstances:e,setHelmet:t}=this.props.context;let n=null;const r=(i=e.get().map((e=>{const t={...e.props};return delete t.context,t})),{baseTag:N(["href"],i),bodyAttributes:O("bodyAttributes",i),defer:S(i,b),encode:S(i,w),htmlAttributes:O("htmlAttributes",i),linkTags:T("link",["rel","href"],i),metaTags:T("meta",["name","charset","http-equiv","property","itemprop"],i),noscriptTags:T("noscript",["innerHTML"],i),onChangeClientState:C(i),scriptTags:T("script",["src","innerHTML"],i),styleTags:T("style",["cssText"],i),title:k(i),titleAttributes:O("titleAttributes",i),prioritizeSeoTags:A(i,E)});var i;V.canUseDOM?Q(r):B&&(n=B(r)),t(n)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:e}=this.props.context;e.add(this),this.emitChange()}render(){return this.init(),null}},J=class extends r.Component{static defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1};shouldComponentUpdate(e){return!o()(P(this.props,"helmetData"),P(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach((t=>{n={...n,[t]:e[t]}})),n}warnOnInvalidChildren(e,t){return s()(h.some((t=>e.type===t)),"function"===typeof e.type?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${h.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),s()(!t||"string"===typeof t||Array.isArray(t)&&!t.some((e=>"string"!==typeof e)),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return r.Children.forEach(e,(e=>{if(!e||!e.props)return;const{children:r,...i}=e.props,o=Object.keys(i).reduce(((e,t)=>(e[g[t]||t]=i[t],e)),{});let{type:a}=e;switch("symbol"===typeof a?a=a.toString():this.warnOnInvalidChildren(e,r),a){case"Symbol(react.fragment)":t=this.mapChildrenToProps(r,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(e,n,o,r);break;default:t=this.mapObjectTypeChildren(e,t,o,r)}})),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:i}=t;if(e&&(n=this.mapChildrenToProps(e,n)),i&&!(i instanceof q)){i=new q(i.context,!0),delete n.helmetData}return i?r.createElement(Z,{...n,context:i.value}):r.createElement(H.Consumer,null,(e=>r.createElement(Z,{...n,context:e})))}}},50711:(e,t)=>{"use strict";var n=60103,r=60106,i=60107,o=60108,a=60114,s=60109,l=60110,c=60112,u=60113,d=60120,f=60115,p=60116,h=60121,m=60122,g=60117,v=60129,y=60131;if("function"===typeof Symbol&&Symbol.for){var b=Symbol.for;n=b("react.element"),r=b("react.portal"),i=b("react.fragment"),o=b("react.strict_mode"),a=b("react.profiler"),s=b("react.provider"),l=b("react.context"),c=b("react.forward_ref"),u=b("react.suspense"),d=b("react.suspense_list"),f=b("react.memo"),p=b("react.lazy"),h=b("react.block"),m=b("react.server.block"),g=b("react.fundamental"),v=b("react.debug_trace_mode"),y=b("react.legacy_hidden")}function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case i:case a:case o:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case c:case p:case f:case s:return e;default:return t}}case r:return t}}}t.isContextConsumer=function(e){return w(e)===l}},94771:(e,t,n)=>{"use strict";e.exports=n(50711)},56993:function(e,t,n){var r,i,o;"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self&&self,i=[t,n(59284),n(60712)],r=function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,v(r.key),r)}}function a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e,t,n){return t=d(t),l(e,u()?Reflect.construct(t,n||[],d(e).constructor):t.apply(e,n))}function l(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return c(e)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t,n){return(t=v(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e){var t=y(e,"string");return"symbol"==r(t)?t:t+""}function y(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var b={x:"clientWidth",y:"clientHeight"},w={x:"clientTop",y:"clientLeft"},x={x:"innerWidth",y:"innerHeight"},_={x:"offsetWidth",y:"offsetHeight"},E={x:"offsetLeft",y:"offsetTop"},S={x:"overflowX",y:"overflowY"},k={x:"scrollWidth",y:"scrollHeight"},C={x:"scrollLeft",y:"scrollTop"},O={x:"width",y:"height"},N=function(){},T=!!function(){if("undefined"===typeof window)return!1;var e=!1;try{document.createElement("div").addEventListener("test",N,{get passive(){return e=!0,!1}})}catch(t){}return e}()&&{passive:!0},A="ReactList failed to reach a stable state.",I=40,D=function(e,t){for(var n in t)if(e[n]!==t[n])return!1;return!0},P=function(e){for(var t=e.props.axis,n=e.getEl(),r=S[t];n=n.parentElement;)switch(window.getComputedStyle(n)[r]){case"auto":case"scroll":case"overlay":return n}return window},R=function(e){var t=e.props.axis,n=e.scrollParent;return n===window?window[x[t]]:n[b[t]]},j=function(e,t){var n=e.length,r=e.minSize,i=e.type,o=t.from,a=t.size,s=t.itemsPerRow,l=(a=Math.max(a,r))%s;return l&&(a+=s-l),a>n&&(a=n),(l=(o="simple"!==i&&o?Math.max(Math.min(o,n-a),0):0)%s)&&(o-=l,a+=l),o===t.from&&a===t.size?t:m(m({},t),{},{from:o,size:a})},M=e.default=function(e){function t(e){var n;return i(this,t),(n=s(this,t,[e])).state=j(e,{itemsPerRow:1,from:e.initialIndex,size:0}),n.cache={},n.cachedScrollPosition=null,n.prevPrevState={},n.unstable=!1,n.updateCounter=0,n}return f(t,e),a(t,[{key:"componentDidMount",value:function(){this.updateFrameAndClearCache=this.updateFrameAndClearCache.bind(this),window.addEventListener("resize",this.updateFrameAndClearCache),this.updateFrame(this.scrollTo.bind(this,this.props.initialIndex))}},{key:"componentDidUpdate",value:function(e){var t=this;if(this.props.axis!==e.axis&&this.clearSizeCache(),!this.unstable){if(++this.updateCounter>I)return this.unstable=!0,console.error(A);this.updateCounterTimeoutId||(this.updateCounterTimeoutId=setTimeout((function(){t.updateCounter=0,delete t.updateCounterTimeoutId}),0)),this.updateFrame()}}},{key:"maybeSetState",value:function(e,t){if(D(this.state,e))return t();this.setState(e,t)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.updateFrameAndClearCache),this.scrollParent.removeEventListener("scroll",this.updateFrameAndClearCache,T),this.scrollParent.removeEventListener("mousewheel",N,T)}},{key:"getOffset",value:function(e){var t=this.props.axis,n=e[w[t]]||0,r=E[t];do{n+=e[r]||0}while(e=e.offsetParent);return n}},{key:"getEl",value:function(){return this.el||this.items}},{key:"getScrollPosition",value:function(){if("number"===typeof this.cachedScrollPosition)return this.cachedScrollPosition;var e=this.scrollParent,t=this.props.axis,n=C[t],r=e===window?document.body[n]||document.documentElement[n]:e[n],i=this.getScrollSize()-this.props.scrollParentViewportSizeGetter(this),o=Math.max(0,Math.min(r,i)),a=this.getEl();return this.cachedScrollPosition=this.getOffset(e)+o-this.getOffset(a),this.cachedScrollPosition}},{key:"setScroll",value:function(e){var t=this.scrollParent,n=this.props.axis;if(e+=this.getOffset(this.getEl()),t===window)return window.scrollTo(0,e);e-=this.getOffset(this.scrollParent),t[C[n]]=e}},{key:"getScrollSize",value:function(){var e=this.scrollParent,t=document,n=t.body,r=t.documentElement,i=k[this.props.axis];return e===window?Math.max(n[i],r[i]):e[i]}},{key:"hasDeterminateSize",value:function(){var e=this.props,t=e.itemSizeGetter;return"uniform"===e.type||t}},{key:"getStartAndEnd",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.threshold,t=this.getScrollPosition(),n=Math.max(0,t-e),r=t+this.props.scrollParentViewportSizeGetter(this)+e;return this.hasDeterminateSize()&&(r=Math.min(r,this.getSpaceBefore(this.props.length))),{start:n,end:r}}},{key:"getItemSizeAndItemsPerRow",value:function(){var e=this.props,t=e.axis,n=e.useStaticSize,r=this.state,i=r.itemSize,o=r.itemsPerRow;if(n&&i&&o)return{itemSize:i,itemsPerRow:o};var a=this.items.children;if(!a.length)return{};var s=a[0],l=s[_[t]],c=Math.abs(l-i);if((isNaN(c)||c>=1)&&(i=l),!i)return{};for(var u=E[t],d=s[u],f=a[o=1];f&&f[u]===d;f=a[o])++o;return{itemSize:i,itemsPerRow:o}}},{key:"clearSizeCache",value:function(){this.cachedScrollPosition=null}},{key:"updateFrameAndClearCache",value:function(e){return this.clearSizeCache(),this.updateFrame(e)}},{key:"updateFrame",value:function(e){switch(this.updateScrollParent(),"function"!==typeof e&&(e=N),this.props.type){case"simple":return this.updateSimpleFrame(e);case"variable":return this.updateVariableFrame(e);case"uniform":return this.updateUniformFrame(e)}}},{key:"updateScrollParent",value:function(){var e=this.scrollParent;this.scrollParent=this.props.scrollParentGetter(this),e!==this.scrollParent&&(e&&(e.removeEventListener("scroll",this.updateFrameAndClearCache),e.removeEventListener("mousewheel",N)),this.clearSizeCache(),this.scrollParent.addEventListener("scroll",this.updateFrameAndClearCache,T),this.scrollParent.addEventListener("mousewheel",N,T))}},{key:"updateSimpleFrame",value:function(e){var t=this.getStartAndEnd().end,n=this.items.children,r=0;if(n.length){var i=this.props.axis,o=n[0],a=n[n.length-1];r=this.getOffset(a)+a[_[i]]-this.getOffset(o)}if(r>t)return e();var s=this.props,l=s.pageSize,c=s.length,u=Math.min(this.state.size+l,c);this.maybeSetState({size:u},e)}},{key:"updateVariableFrame",value:function(e){this.props.itemSizeGetter||this.cacheSizes();for(var t=this.getStartAndEnd(),n=t.start,r=t.end,i=this.props,o=i.length,a=i.pageSize,s=0,l=0,c=0,u=o-1;l<u;){var d=this.getSizeOfItem(l);if(null==d||s+d>n)break;s+=d,++l}for(var f=o-l;c<f&&s<r;){var p=this.getSizeOfItem(l+c);if(null==p){c=Math.min(c+a,f);break}s+=p,++c}this.maybeSetState(j(this.props,{from:l,itemsPerRow:1,size:c}),e)}},{key:"updateUniformFrame",value:function(e){var t=this.getItemSizeAndItemsPerRow(),n=t.itemSize,r=t.itemsPerRow;if(!n||!r)return e();var i=this.getStartAndEnd(),o=i.start,a=i.end,s=j(this.props,{from:Math.floor(o/n)*r,size:(Math.ceil((a-o)/n)+1)*r,itemsPerRow:r}),l=s.from,c=s.size;return this.maybeSetState({itemsPerRow:r,from:l,itemSize:n,size:c},e)}},{key:"getSpaceBefore",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null!=t[e])return t[e];var n=this.state,r=n.itemSize,i=n.itemsPerRow;if(r)return t[e]=Math.floor(e/i)*r;for(var o=e;o>0&&null==t[--o];);for(var a=t[o]||0,s=o;s<e;++s){t[s]=a;var l=this.getSizeOfItem(s);if(null==l)break;a+=l}return t[e]=a}},{key:"cacheSizes",value:function(){for(var e=this.cache,t=this.state.from,n=this.items.children,r=_[this.props.axis],i=0,o=n.length;i<o;++i)e[t+i]=n[i][r]}},{key:"getSizeOfItem",value:function(e){var t=this.cache,n=this.items,r=this.props,i=r.axis,o=r.itemSizeGetter,a=r.itemSizeEstimator,s=r.type,l=this.state,c=l.from,u=l.itemSize,d=l.size;if(u)return u;if(o)return o(e);if(e in t)return t[e];if("simple"===s&&e>=c&&e<c+d&&n){var f=n.children[e-c];if(f)return f[_[i]]}return a?a(e,t):void 0}},{key:"scrollTo",value:function(e){null!=e&&this.setScroll(this.getSpaceBefore(e))}},{key:"scrollAround",value:function(e){var t=this.getScrollPosition(),n=this.getSpaceBefore(e),r=n-this.props.scrollParentViewportSizeGetter(this)+this.getSizeOfItem(e),i=Math.min(r,n),o=Math.max(r,n);return t<=i?this.setScroll(i):t>o?this.setScroll(o):void 0}},{key:"getVisibleRange",value:function(){for(var e,t,n=this.state,r=n.from,i=n.size,o=this.getStartAndEnd(0),a=o.start,s=o.end,l={},c=r;c<r+i;++c){var u=this.getSpaceBefore(c,l),d=u+this.getSizeOfItem(c);null==e&&d>a&&(e=c),null!=e&&u<s&&(t=c)}return[e,t]}},{key:"renderItems",value:function(){for(var e=this,t=this.props,n=t.itemRenderer,r=t.itemsRenderer,i=this.state,o=i.from,a=i.size,s=[],l=0;l<a;++l)s.push(n(o+l,l));return r(s,(function(t){return e.items=t}))}},{key:"render",value:function(){var e=this,t=this.props,r=t.axis,i=t.length,o=t.type,a=t.useTranslate3d,s=this.state,l=s.from,c=s.itemsPerRow,u=this.renderItems();if("simple"===o)return u;var d={position:"relative"},f={},p=Math.ceil(i/c)*c,h=this.getSpaceBefore(p,f);h&&(d[O[r]]=h,"x"===r&&(d.overflowX="hidden"));var m=this.getSpaceBefore(l,f),g="x"===r?m:0,v="y"===r?m:0,y=a?"translate3d(".concat(g,"px, ").concat(v,"px, 0)"):"translate(".concat(g,"px, ").concat(v,"px)"),b={msTransform:y,WebkitTransform:y,transform:y};return(0,n.jsx)("div",{style:d,ref:function(t){return e.el=t},children:(0,n.jsx)("div",{style:b,children:u})})}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=j(e,t);return n===t?null:n}}])}(t.Component);g(M,"displayName","ReactList"),g(M,"defaultProps",{axis:"y",itemRenderer:function(e,t){return(0,n.jsx)("div",{children:e},t)},itemsRenderer:function(e,t){return(0,n.jsx)("div",{ref:t,children:e})},length:0,minSize:1,pageSize:10,scrollParentGetter:P,scrollParentViewportSizeGetter:R,threshold:100,type:"simple",useStaticSize:!1,useTranslate3d:!1})},void 0===(o="function"===typeof r?r.apply(t,i):r)||(e.exports=o)},52905:(e,t,n)=>{"use strict";n.d(t,{N_:()=>m});var r=n(10755),i=n(25540),o=n(59284),a=n(45264),s=n(58168),l=n(98587),c=n(68643);o.Component;o.Component;var u=function(e,t){return"function"===typeof e?e(t):e},d=function(e,t){return"string"===typeof e?(0,a.yJ)(e,null,null,t):e},f=function(e){return e},p=o.forwardRef;"undefined"===typeof p&&(p=f);var h=p((function(e,t){var n=e.innerRef,r=e.navigate,i=e.onClick,a=(0,l.A)(e,["innerRef","navigate","onClick"]),c=a.target,u=(0,s.A)({},a,{onClick:function(e){try{i&&i(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||c&&"_self"!==c||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return u.ref=f!==p&&t||n,o.createElement("a",u)}));var m=p((function(e,t){var n=e.component,i=void 0===n?h:n,m=e.replace,g=e.to,v=e.innerRef,y=(0,l.A)(e,["component","replace","to","innerRef"]);return o.createElement(r.XZ.Consumer,null,(function(e){e||(0,c.A)(!1);var n=e.history,r=d(u(g,e.location),e.location),l=r?n.createHref(r):"",h=(0,s.A)({},y,{href:l,navigate:function(){var t=u(g,e.location),r=(0,a.AO)(e.location)===(0,a.AO)(d(t));(m||r?n.replace:n.push)(t)}});return f!==p?h.ref=t||v:h.innerRef=v,o.createElement(i,h)}))})),g=function(e){return e},v=o.forwardRef;"undefined"===typeof v&&(v=g);v((function(e,t){var n=e["aria-current"],i=void 0===n?"page":n,a=e.activeClassName,f=void 0===a?"active":a,p=e.activeStyle,h=e.className,y=e.exact,b=e.isActive,w=e.location,x=e.sensitive,_=e.strict,E=e.style,S=e.to,k=e.innerRef,C=(0,l.A)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return o.createElement(r.XZ.Consumer,null,(function(e){e||(0,c.A)(!1);var n=w||e.location,a=d(u(S,n),n),l=a.pathname,O=l&&l.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),N=O?(0,r.B6)(n.pathname,{path:O,exact:y,sensitive:x,strict:_}):null,T=!!(b?b(N,n):N),A="function"===typeof h?h(T):h,I="function"===typeof E?E(T):E;T&&(A=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(A,f),I=(0,s.A)({},I,p));var D=(0,s.A)({"aria-current":T&&i||null,className:A,style:I,to:a},C);return g!==v?D.ref=t||k:D.innerRef=k,o.createElement(m,D)}))}))},10755:(e,t,n)=>{"use strict";n.d(t,{B6:()=>T,Ix:()=>b,W5:()=>U,W6:()=>z,XZ:()=>y,dO:()=>M,g:()=>B,qh:()=>A,rd:()=>k,zy:()=>F});var r=n(25540),i=n(59284),o=n(13260),a=n.n(o),s=n(45264),l=n(68643),c=n(58168),u=n(13489),d=n.n(u),f=(n(67076),n(98587)),p=(n(5290),1073741823),h="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{};var m=i.createContext||function(e,t){var n,o,s="__create-react-context-"+function(){var e="__global_unique_id__";return h[e]=(h[e]||0)+1}()+"__",l=function(e){function n(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).emitter=function(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}(t.props.value),t}(0,r.A)(n,e);var i=n.prototype;return i.getChildContext=function(){var e;return(e={})[s]=this.emitter,e},i.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,i=e.value;((o=r)===(a=i)?0!==o||1/o===1/a:o!==o&&a!==a)?n=0:(n="function"===typeof t?t(r,i):p,0!==(n|=0)&&this.emitter.set(e.value,n))}var o,a},i.render=function(){return this.props.children},n}(i.Component);l.childContextTypes=((n={})[s]=a().object.isRequired,n);var c=function(t){function n(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))||this).observedBits=void 0,e.state={value:e.getValue()},e.onUpdate=function(t,n){0!==((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}(0,r.A)(n,t);var i=n.prototype;return i.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?p:t},i.componentDidMount=function(){this.context[s]&&this.context[s].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?p:e},i.componentWillUnmount=function(){this.context[s]&&this.context[s].off(this.onUpdate)},i.getValue=function(){return this.context[s]?this.context[s].get():e},i.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(i.Component);return c.contextTypes=((o={})[s]=a().object,o),{Provider:l,Consumer:c}},g=function(e){var t=m();return t.displayName=e,t},v=g("Router-History"),y=g("Router"),b=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._pendingLocation=e}))),n}(0,r.A)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){var e=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(t){e._isMounted&&e.setState({location:t})}))),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return i.createElement(y.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},i.createElement(v.Provider,{children:this.props.children||null,value:this.props.history}))},t}(i.Component);i.Component;var w=function(e){function t(){return e.apply(this,arguments)||this}(0,r.A)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(i.Component);var x={},_=1e4,E=0;function S(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(x[e])return x[e];var t=d().compile(e);return E<_&&(x[e]=t,E++),t}(e)(t,{pretty:!0})}function k(e){var t=e.computedMatch,n=e.to,r=e.push,o=void 0!==r&&r;return i.createElement(y.Consumer,null,(function(e){e||(0,l.A)(!1);var r=e.history,a=e.staticContext,u=o?r.push:r.replace,d=(0,s.yJ)(t?"string"===typeof n?S(n,t.params):(0,c.A)({},n,{pathname:S(n.pathname,t.params)}):n);return a?(u(d),null):i.createElement(w,{onMount:function(){u(d)},onUpdate:function(e,t){var n=(0,s.yJ)(t.to);(0,s.Fu)(n,(0,c.A)({},d,{key:n.key}))||u(d)},to:n})}))}var C={},O=1e4,N=0;function T(e,t){void 0===t&&(t={}),("string"===typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,i=n.exact,o=void 0!==i&&i,a=n.strict,s=void 0!==a&&a,l=n.sensitive,c=void 0!==l&&l;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=C[n]||(C[n]={});if(r[e])return r[e];var i=[],o={regexp:d()(e,i,t),keys:i};return N<O&&(r[e]=o,N++),o}(n,{end:o,strict:s,sensitive:c}),i=r.regexp,a=r.keys,l=i.exec(e);if(!l)return null;var u=l[0],f=l.slice(1),p=e===u;return o&&!p?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:p,params:a.reduce((function(e,t,n){return e[t.name]=f[n],e}),{})}}),null)}var A=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.A)(t,e),t.prototype.render=function(){var e=this;return i.createElement(y.Consumer,null,(function(t){t||(0,l.A)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?T(n.pathname,e.props):t.match,o=(0,c.A)({},t,{location:n,match:r}),a=e.props,s=a.children,u=a.component,d=a.render;return Array.isArray(s)&&function(e){return 0===i.Children.count(e)}(s)&&(s=null),i.createElement(y.Provider,{value:o},o.match?s?"function"===typeof s?s(o):s:u?i.createElement(u,o):d?d(o):null:"function"===typeof s?s(o):null)}))},t}(i.Component);function I(e){return"/"===e.charAt(0)?e:"/"+e}function D(e,t){if(!e)return t;var n=I(e);return 0!==t.pathname.indexOf(n)?t:(0,c.A)({},t,{pathname:t.pathname.substr(n.length)})}function P(e){return"string"===typeof e?e:(0,s.AO)(e)}function R(e){return function(){(0,l.A)(!1)}}function j(){}i.Component;var M=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.A)(t,e),t.prototype.render=function(){var e=this;return i.createElement(y.Consumer,null,(function(t){t||(0,l.A)(!1);var n,r,o=e.props.location||t.location;return i.Children.forEach(e.props.children,(function(e){if(null==r&&i.isValidElement(e)){n=e;var a=e.props.path||e.props.from;r=a?T(o.pathname,(0,c.A)({},e.props,{path:a})):t.match}})),r?i.cloneElement(n,{location:o,computedMatch:r}):null}))},t}(i.Component);var L=i.useContext;function z(){return L(v)}function F(){return L(y).location}function B(){var e=L(y).match;return e?e.params:{}}function U(e){var t=F(),n=L(y).match;return e?T(t.pathname,e):n}},13489:(e,t,n)=>{var r=n(4786);e.exports=h,e.exports.parse=o,e.exports.compile=function(e,t){return l(o(e,t),t)},e.exports.tokensToFunction=l,e.exports.tokensToRegExp=p;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var n,r=[],o=0,s=0,l="",c=t&&t.delimiter||"/";null!=(n=i.exec(e));){var d=n[0],f=n[1],p=n.index;if(l+=e.slice(s,p),s=p+d.length,f)l+=f[1];else{var h=e[s],m=n[2],g=n[3],v=n[4],y=n[5],b=n[6],w=n[7];l&&(r.push(l),l="");var x=null!=m&&null!=h&&h!==m,_="+"===b||"*"===b,E="?"===b||"*"===b,S=m||c,k=v||y,C=m||("string"===typeof r[r.length-1]?r[r.length-1]:"");r.push({name:g||o++,prefix:m||"",delimiter:S,optional:E,repeat:_,partial:x,asterisk:!!w,pattern:k?u(k):w?".*":a(S,C)})}}return s<e.length&&(l+=e.substr(s)),l&&r.push(l),r}function a(e,t){return!t||t.indexOf(e)>-1?"[^"+c(e)+"]+?":c(t)+"|(?:(?!"+c(t)+")[^"+c(e)+"])+?"}function s(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function l(e,t){for(var n=new Array(e.length),i=0;i<e.length;i++)"object"===typeof e[i]&&(n[i]=new RegExp("^(?:"+e[i].pattern+")$",f(t)));return function(t,i){for(var o="",a=t||{},l=(i||{}).pretty?s:encodeURIComponent,c=0;c<e.length;c++){var u=e[c];if("string"!==typeof u){var d,f=a[u.name];if(null==f){if(u.optional){u.partial&&(o+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(r(f)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(0===f.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var p=0;p<f.length;p++){if(d=l(f[p]),!n[c].test(d))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(d)+"`");o+=(0===p?u.prefix:u.delimiter)+d}}else{if(d=u.asterisk?encodeURI(f).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):l(f),!n[c].test(d))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+d+'"');o+=u.prefix+d}}else o+=u}return o}}function c(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function u(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function d(e,t){return e.keys=t,e}function f(e){return e&&e.sensitive?"":"i"}function p(e,t,n){r(t)||(n=t||n,t=[]);for(var i=(n=n||{}).strict,o=!1!==n.end,a="",s=0;s<e.length;s++){var l=e[s];if("string"===typeof l)a+=c(l);else{var u=c(l.prefix),p="(?:"+l.pattern+")";t.push(l),l.repeat&&(p+="(?:"+u+p+")*"),a+=p=l.optional?l.partial?u+"("+p+")?":"(?:"+u+"("+p+"))?":u+"("+p+")"}}var h=c(n.delimiter||"/"),m=a.slice(-h.length)===h;return i||(a=(m?a.slice(0,-h.length):a)+"(?:"+h+"(?=$))?"),a+=o?"$":i&&m?"":"(?="+h+"|$)",d(new RegExp("^"+a,f(n)),t)}function h(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return d(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(h(e[i],t,n).source);return d(new RegExp("(?:"+r.join("|")+")",f(n)),t)}(e,t,n):function(e,t,n){return p(o(e,n),t,n)}(e,t,n)}},29416:(e,t)=>{"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case o:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case g:case m:case l:return e;default:return t}}case i:return t}}}function _(e){return x(e)===d}},67076:(e,t,n)=>{"use strict";n(29416)},72630:(e,t,n)=>{"use strict";n.d(t,{A:()=>_});var r=n(58168),i=n(98587),o=n(25540);function a(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var s=n(59284),l=n(48681);const c=!1;var u=n(10641),d=function(e){return e.scrollTop},f="unmounted",p="exited",h="entering",m="entered",g="exiting",v=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=p,r.appearStatus=h):i=m:i=t.unmountOnExit||t.mountOnEnter?f:p,r.state={status:i},r.nextCallback=null,r}(0,o.A)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===f?{status:p}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==h&&n!==m&&(t=h):n!==h&&n!==m||(t=g)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===h){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:l.findDOMNode(this);n&&d(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===p&&this.setState({status:f})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[l.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),u=r?s.appear:s.enter;!e&&!n||c?this.safeSetState({status:m},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:h},(function(){t.props.onEntering(o,a),t.onTransitionEnd(u,(function(){t.safeSetState({status:m},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:l.findDOMNode(this);t&&!c?(this.props.onExit(r),this.safeSetState({status:g},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:p},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:p},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:l.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===f)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,i.A)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return s.createElement(u.A.Provider,{value:null},"function"===typeof n?n(e,r):s.cloneElement(s.Children.only(n),r))},t}(s.Component);function y(){}v.contextType=u.A,v.propTypes={},v.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:y,onEntering:y,onEntered:y,onExit:y,onExiting:y,onExited:y},v.UNMOUNTED=f,v.EXITED=p,v.ENTERING=h,v.ENTERED=m,v.EXITING=g;const b=v;var w=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"===typeof n.className?n.className=a(n.className,r):n.setAttribute("class",a(n.className&&n.className.baseVal||"",r)));var n,r}))},x=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1];t.removeClasses(i,"exit"),t.addClass(i,o?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.addClass(i,o,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.removeClasses(i,o),t.addClass(i,o,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"===typeof n,i=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:i,activeClassName:r?i+"-active":n[e+"Active"],doneClassName:r?i+"-done":n[e+"Done"]}},t}(0,o.A)(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],i=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&i&&(r+=" "+i),"active"===n&&e&&d(e),r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"===typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,o=n.done;this.appliedClasses[t]={},r&&w(e,r),i&&w(e,i),o&&w(e,o)},n.render=function(){var e=this.props,t=(e.classNames,(0,i.A)(e,["classNames"]));return s.createElement(b,(0,r.A)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(s.Component);x.defaultProps={classNames:""},x.propTypes={};const _=x},10641:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(59284).createContext(null)},67124:(e,t,n)=>{"use strict";var r=n(59284),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,o={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:c,ref:u,props:o,_owner:s.current}}t.Fragment=o,t.jsx=c,t.jsxs=c},50943:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var w=b.prototype=new y;w.constructor=b,m(w,v.prototype),w.isPureReactComponent=!0;var x=Array.isArray,_=Object.prototype.hasOwnProperty,E={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function k(e,t,r){var i,o={},a=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)_.call(t,i)&&!S.hasOwnProperty(i)&&(o[i]=t[i]);var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(i in l=e.defaultProps)void 0===o[i]&&(o[i]=l[i]);return{$$typeof:n,type:e,key:a,ref:s,props:o,_owner:E.current}}function C(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var O=/\/+/g;function N(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function T(e,t,i,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return a=a(l=e),e=""===o?"."+N(l,0):o,x(a)?(i="",null!=e&&(i=e.replace(O,"$&/")+"/"),T(a,t,i,"",(function(e){return e}))):null!=a&&(C(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,i+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(O,"$&/")+"/")+e)),t.push(a)),1;if(l=0,o=""===o?".":o+":",x(e))for(var c=0;c<e.length;c++){var u=o+N(s=e[c],c);l+=T(s,t,i,u,a)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=T(s=s.value,t,i,u=o+N(s,c++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function A(e,t,n){if(null==e)return e;var r=[],i=0;return T(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function I(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var D={current:null},P={transition:null},R={ReactCurrentDispatcher:D,ReactCurrentBatchConfig:P,ReactCurrentOwner:E};function j(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:A,forEach:function(e,t,n){A(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return A(e,(function(){t++})),t},toArray:function(e){return A(e,(function(e){return e}))||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=i,t.Profiler=a,t.PureComponent=b,t.StrictMode=o,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=R,t.act=j,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=m({},e.props),o=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=E.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)_.call(t,c)&&!S.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];i.children=l}return{$$typeof:n,type:e.type,key:o,ref:a,props:i,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=k,t.createFactory=function(e){var t=k.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:I}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=P.transition;P.transition={};try{e()}finally{P.transition=t}},t.unstable_act=j,t.useCallback=function(e,t){return D.current.useCallback(e,t)},t.useContext=function(e){return D.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return D.current.useDeferredValue(e)},t.useEffect=function(e,t){return D.current.useEffect(e,t)},t.useId=function(){return D.current.useId()},t.useImperativeHandle=function(e,t,n){return D.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return D.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return D.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return D.current.useMemo(e,t)},t.useReducer=function(e,t,n){return D.current.useReducer(e,t,n)},t.useRef=function(e){return D.current.useRef(e)},t.useState=function(e){return D.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return D.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return D.current.useTransition()},t.version="18.3.1"},59284:(e,t,n)=>{"use strict";e.exports=n(50943)},60712:(e,t,n)=>{"use strict";e.exports=n(67124)},49526:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.LOCATION_POP="REDUX-LOCATION-POP-ACTION",t.LOCATION_PUSH="REDUX-LOCATION-PUSH-ACTION",t.OBJECT_KEY_DELIMITER="-"},57467:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.createReduxLocationActions=function(e,t,n,l){var c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:s.stateToParams;e[o.RLSCONFIG]&&e[o.RLSCONFIG][o.OVERWRITE_ACCESSORS]&&Object.keys(e[o.RLSCONFIG][o.OVERWRITE_ACCESSORS]).forEach((function(t){(0,o.overrideAccessors)(t,e[o.RLSCONFIG][o.OVERWRITE_ACCESSORS][t])}));var u={};return{locationMiddleware:function(t){return function(r){return function(i){var a=t.getState(),s=r(i),l=t.getState(),d=n.location,f=d.pathname!==u.pathname;if(l!==a||f){u=d;var p=c(e,l,d),h=p.shouldPush,m=p.location;(0,o.isEqual)(m,d)||(h&&!f?n.push(m):n.replace(m))}return s}}},reducersWithLocation:function(n,o){var s=function(n,o){var s=o.type,l=o.payload;if(s!==i.LOCATION_POP||!l)return n;var c=r({},l,{query:(0,a.parseQuery)(e,l)});return t(n,c)}(l(n,o),o);return s!==n?s:n}}};var i=n(49526),o=n(93650),a=n(93694),s=n(92189)},93650:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.paramDecoder=t.OVERWRITE_ACCESSORS=t.RLSCONFIG=void 0,t.setParamEncoder=function(e){c=e},t.setParamDecoder=function(e){t.paramDecoder=u=e},t.overrideAccessors=function(e,t){l[e]=t},t.get=function(){return l.get.apply(l,arguments)},t.set=function(){return l.set.apply(l,arguments)},t.isEqual=function(){return l.isEqual.apply(l,arguments)},t.getMatchingDeclaredPath=d,t.createObjectFromConfig=function(e,t){if(!e)return;var n=d(e,t);return e.global?Object.assign({},e.global,e[n]||{}):e[n]},t.getPath=function(){var e=window.location.href,t=e.indexOf("#")+1;if(t&&0===e.substring(t).indexOf("/"))return e.substring(t);return window.location.pathname+window.location.search+window.location.hash},t.createParamsString=function(e){var t=Object.keys(e).reduce((function(t,n){var r=n.toString(),i=e[n];if(function(e){return"undefined"===typeof e||null===e}(i)||Array.isArray(i)&&!i.length)return t;var o=e[n].toString();return[].concat(s(t),[c(r)+"="+c(o)])}),[]);return t.length?"?"+t.join("&"):""},t.parseParams=function(e,t){return e&&e.split("&").reduce((function(e,n){"?"===n[0]&&(n=n.substr(1));var r=t?t(n):n.split("=");return e[u(r[0])]=u(r[1])||"",e}),{})||{}};var r=a(n(87924)),i=a(n(62060)),o=a(n(38896));function a(e){return e&&e.__esModule?e:{default:e}}function s(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}t.RLSCONFIG="RLSCONFIG",t.OVERWRITE_ACCESSORS="overwrite-accessors";var l={get:r.default,set:o.default,isEqual:i.default},c=encodeURIComponent,u=t.paramDecoder=decodeURIComponent;function d(e,t){var n=t.pathname.split("/");return Object.keys(e).filter((function(e){var t=[].concat(s(n)),r=e.split("/"),i=[].concat(s(r)),o=0;return r.forEach((function(e,n){"*"===e&&(t.splice(n-o,1),i.splice(n-o,1),o++)})),t.join("/")===i.join("/")}))[0]}},19859:(e,t,n)=>{"use strict";var r=n(57467);Object.defineProperty(t,"zx",{enumerable:!0,get:function(){return r.createReduxLocationActions}});var i=n(56029);Object.defineProperty(t,"BL",{enumerable:!0,get:function(){return i.listenForHistoryChange}});var o=n(93650)},56029:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.listenForHistoryChange=function(e,t){var n=function(e){return{type:r.LOCATION_POP,payload:e}};t.listen((function(){t&&t.action&&"POP"===t.action&&e.dispatch(n(t.location))})),t.listen((function(){t&&t.action&&"PUSH"===t.action&&e.dispatch(function(e){return{type:r.LOCATION_PUSH,payload:e}}(t.location))})),e.dispatch(n(t.location))};var r=n(49526)},93694:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseQuery=function(e,t){var n=(0,r.createObjectFromConfig)(e,t),o=e[r.RLSCONFIG]&&e[r.RLSCONFIG].queryParser,a=(0,r.parseParams)(t.search,o);if(!n)return t.search;return Object.keys(n).reduce((function(e,t){var o=n[t],s=o.stateKey,l=o.options,c=void 0===l?{}:l,u=o.initialState,d=o.type,f=a[t],p=void 0;return"undefined"===typeof f||null===f?((0,r.set)(e,s,u),e):(p=c.parse?c.parse(f):d?i.typeHandles[d].parse(f,c):f,(0,r.set)(e,s,p),e)}),{})};var r=n(93650),i=n(86540)},92189:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.stateToParams=function(e,t,n){var s=(0,o.createObjectFromConfig)(e,n),l=e[o.RLSCONFIG]&&e[o.RLSCONFIG].queryParser,c=(0,o.parseParams)(n.search,l);if(!s)return{location:i({},n)};var u=!1,d=Object.keys(s).reduce((function(e,n){var i=s[n],l=i.stateKey,d=i.options,f=void 0===d?{}:d,p=i.initialState,h=i.type,m=(0,o.get)(t,l),g=void 0;if("date"===h?g=m.toISOString().substring(0,10)===(p&&p.toISOString().substring(0,10)):(m&&"object"===("undefined"===typeof m?"undefined":r(m))&&!Object.keys(m).length&&(m=void 0),g="object"===("undefined"===typeof m?"undefined":r(m))?(0,o.isEqual)(p,m):m===p),("undefined"===typeof m&&!f.serialize||g)&&!f.setAsEmptyItem)return e;if(f.serialize){var v=f.serialize(m);if("undefined"===typeof v)return e;m=v}else h&&(m=a.typeHandles[h].serialize(m,f));return e[n]=m,m!==c[n]&&f.shouldPush&&(u=!0),e}),{});return{location:i({},n,{search:(0,o.createParamsString)(d)}),shouldPush:u}};var o=n(93650),a=n(86540)},86540:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.typeHandles=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){i=!0,o=l}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=n(49526),o=n(93650);function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}t.typeHandles={number:{serialize:function(e,t){return e.toString()},parse:function(e,t){return parseFloat(e)}},date:{serialize:function(e,t){return e.toISOString().substring(0,10)},parse:function(e,t){return new Date(e)}},array:{serialize:function(e,t){return(t.keepOrder?[].concat(a(e)):[].concat(a(e)).sort()).join(t.delimiter||i.OBJECT_KEY_DELIMITER)},parse:function(e,t){return(0,o.paramDecoder)(e).split(t.delimiter||i.OBJECT_KEY_DELIMITER)}},bool:{serialize:function(e,t){return e.toString()},parse:function(e,t){return"true"===e}},object:{serialize:function(e,t){return t.isFlags?Object.keys(e).filter((function(t,n){return e[t]})).join(i.OBJECT_KEY_DELIMITER):Object.keys(e).sort().map((function(t,n){return""+t+i.OBJECT_KEY_DELIMITER+e[t]}))},parse:function(e,t){return t.isFlags?e.split(t.delimiter||i.OBJECT_KEY_DELIMITER).reduce((function(e,t){return""===t||(e[t]=!0),e}),{}):(0,o.paramDecoder)(e).split(",").reduce((function(e,t){var n=t.split(i.OBJECT_KEY_DELIMITER),o=r(n,2),a=o[0],s=o[1];return e[a]=s,e}),{})}}}},91407:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>o(l,n))c<i&&0>o(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<i&&0>o(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,f=null,p=3,h=!1,m=!1,g=!1,v="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function w(e){for(var t=r(u);null!==t;){if(null===t.callback)i(u);else{if(!(t.startTime<=e))break;i(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function x(e){if(g=!1,w(e),!m)if(null!==r(c))m=!0,P(_);else{var t=r(u);null!==t&&R(x,t.startTime-e)}}function _(e,n){m=!1,g&&(g=!1,y(C),C=-1),h=!0;var o=p;try{for(w(n),f=r(c);null!==f&&(!(f.expirationTime>n)||e&&!T());){var a=f.callback;if("function"===typeof a){f.callback=null,p=f.priorityLevel;var s=a(f.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?f.callback=s:f===r(c)&&i(c),w(n)}else i(c);f=r(c)}if(null!==f)var l=!0;else{var d=r(u);null!==d&&R(x,d.startTime-n),l=!1}return l}finally{f=null,p=o,h=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E,S=!1,k=null,C=-1,O=5,N=-1;function T(){return!(t.unstable_now()-N<O)}function A(){if(null!==k){var e=t.unstable_now();N=e;var n=!0;try{n=k(!0,e)}finally{n?E():(S=!1,k=null)}}else S=!1}if("function"===typeof b)E=function(){b(A)};else if("undefined"!==typeof MessageChannel){var I=new MessageChannel,D=I.port2;I.port1.onmessage=A,E=function(){D.postMessage(null)}}else E=function(){v(A,0)};function P(e){k=e,S||(S=!0,E())}function R(e,n){C=v((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||h||(m=!0,P(_))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,i,o){var a=t.unstable_now();switch("object"===typeof o&&null!==o?o="number"===typeof(o=o.delay)&&0<o?a+o:a:o=a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:i,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(e.sortIndex=o,n(u,e),null===r(c)&&e===r(u)&&(g?(y(C),C=-1):g=!0,R(x,o-a))):(e.sortIndex=s,n(c,e),m||h||(m=!0,P(_))),e},t.unstable_shouldYield=T,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},99158:(e,t,n)=>{"use strict";e.exports=n(91407)},37737:e=>{e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<o.length;l++){var c=o[l];if(!s(c))return!1;var u=e[c],d=t[c];if(!1===(i=n?n.call(r,u,d,c):void 0)||void 0===i&&u!==d)return!1}return!0}},93339:(e,t,n)=>{"use strict";var r=n(69123),i=n(39955),o=function(e,t,n){for(var r,i=e;null!=(r=i.next);i=r)if(r.key===t)return i.next=r.next,n||(r.next=e.next,e.next=r),r};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new i("Side channel does not contain "+r(e))},delete:function(t){var n=e&&e.next,r=function(e,t){if(e)return o(e,t,!0)}(e,t);return r&&n&&n===r&&(e=void 0),!!r},get:function(t){return function(e,t){if(e){var n=o(e,t);return n&&n.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!o(e,t)}(e,t)},set:function(t,n){e||(e={next:void 0}),function(e,t,n){var r=o(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(e,t,n)}};return t}},5635:(e,t,n)=>{"use strict";var r=n(94701),i=n(90308),o=n(69123),a=n(39955),s=r("%Map%",!0),l=i("Map.prototype.get",!0),c=i("Map.prototype.set",!0),u=i("Map.prototype.has",!0),d=i("Map.prototype.delete",!0),f=i("Map.prototype.size",!0);e.exports=!!s&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a("Side channel does not contain "+o(e))},delete:function(t){if(e){var n=d(e,t);return 0===f(e)&&(e=void 0),n}return!1},get:function(t){if(e)return l(e,t)},has:function(t){return!!e&&u(e,t)},set:function(t,n){e||(e=new s),c(e,t,n)}};return t}},46343:(e,t,n)=>{"use strict";var r=n(94701),i=n(90308),o=n(69123),a=n(5635),s=n(39955),l=r("%WeakMap%",!0),c=i("WeakMap.prototype.get",!0),u=i("WeakMap.prototype.set",!0),d=i("WeakMap.prototype.has",!0),f=i("WeakMap.prototype.delete",!0);e.exports=l?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new s("Side channel does not contain "+o(e))},delete:function(n){if(l&&n&&("object"===typeof n||"function"===typeof n)){if(e)return f(e,n)}else if(a&&t)return t.delete(n);return!1},get:function(n){return l&&n&&("object"===typeof n||"function"===typeof n)&&e?c(e,n):t&&t.get(n)},has:function(n){return l&&n&&("object"===typeof n||"function"===typeof n)&&e?d(e,n):!!t&&t.has(n)},set:function(n,r){l&&n&&("object"===typeof n||"function"===typeof n)?(e||(e=new l),u(e,n,r)):a&&(t||(t=a()),t.set(n,r))}};return n}:a},3584:(e,t,n)=>{"use strict";var r=n(39955),i=n(69123),o=n(93339),a=n(5635),s=n(46343)||a||o;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new r("Side channel does not contain "+i(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||(e=s()),e.set(t,n)}};return t}},83046:(e,t,n)=>{"use strict";n.d(t,{AO:()=>S,Kr:()=>_,nq:()=>E,tp:()=>C,yT:()=>f});var r=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],i=r.join(","),o="undefined"===typeof Element,a=o?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,s=!o&&Element.prototype.getRootNode?function(e){var t;return null===e||void 0===e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null===e||void 0===e?void 0:e.ownerDocument},l=function e(t,n){var r;void 0===n&&(n=!0);var i=null===t||void 0===t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===i||"true"===i||n&&t&&e(t.parentNode)},c=function(e,t,n){if(l(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(i));return t&&a.call(e,i)&&r.unshift(e),r=r.filter(n)},u=function e(t,n,r){for(var o=[],s=Array.from(t);s.length;){var c=s.shift();if(!l(c,!1))if("SLOT"===c.tagName){var u=c.assignedElements(),d=e(u.length?u:c.children,!0,r);r.flatten?o.push.apply(o,d):o.push({scopeParent:c,candidates:d})}else{a.call(c,i)&&r.filter(c)&&(n||!t.includes(c))&&o.push(c);var f=c.shadowRoot||"function"===typeof r.getShadowRoot&&r.getShadowRoot(c),p=!l(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(c));if(f&&p){var h=e(!0===f?c.children:f.children,!0,r);r.flatten?o.push.apply(o,h):o.push({scopeParent:c,candidates:h})}else s.unshift.apply(s,c.children)}}return o},d=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},f=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null===e||void 0===e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!d(e)?0:e.tabIndex},p=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},h=function(e){return"INPUT"===e.tagName},m=function(e){return function(e){return h(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||s(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!==typeof window&&"undefined"!==typeof window.CSS&&"function"===typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(o){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",o.message),!1}var i=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!i||i===e}(e)},g=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},v=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var i=a.call(e,"details>summary:first-of-type")?e.parentElement:e;if(a.call(i,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return g(e)}else{if("function"===typeof r){for(var o=e;e;){var l=e.parentElement,c=s(e);if(l&&!l.shadowRoot&&!0===r(l))return g(e);e=e.assignedSlot?e.assignedSlot:l||c===e.ownerDocument?l:c.host}e=o}if(function(e){var t,n,r,i,o=e&&s(e),a=null===(t=o)||void 0===t?void 0:t.host,l=!1;if(o&&o!==e)for(l=!!(null!==(n=a)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(a)||null!==e&&void 0!==e&&null!==(i=e.ownerDocument)&&void 0!==i&&i.contains(e));!l&&a;){var c,u,d;l=!(null===(u=a=null===(c=o=s(a))||void 0===c?void 0:c.host)||void 0===u||null===(d=u.ownerDocument)||void 0===d||!d.contains(a))}return l}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},y=function(e,t){return!(t.disabled||l(t)||function(e){return h(e)&&"hidden"===e.type}(t)||v(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!a.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},b=function(e,t){return!(m(t)||f(t)<0||!y(e,t))},w=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},x=function e(t){var n=[],r=[];return t.forEach((function(t,i){var o=!!t.scopeParent,a=o?t.scopeParent:t,s=function(e,t){var n=f(e);return n<0&&t&&!d(e)?0:n}(a,o),l=o?e(t.candidates):a;0===s?o?n.push.apply(n,l):n.push(a):r.push({documentOrder:i,tabIndex:s,item:t,isScope:o,content:l})})),r.sort(p).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},_=function(e,t){var n;return n=(t=t||{}).getShadowRoot?u([e],t.includeContainer,{filter:b.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:w}):c(e,t.includeContainer,b.bind(null,t)),x(n)},E=function(e,t){return(t=t||{}).getShadowRoot?u([e],t.includeContainer,{filter:y.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):c(e,t.includeContainer,y.bind(null,t))},S=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==a.call(e,i)&&b(t,e)},k=r.concat("iframe").join(","),C=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==a.call(e,k)&&y(t,e)}},33410:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},67087:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return e;if(0===e.length&&(!t||t&&""!==e))return null;const n=e instanceof Array?e[0]:e;return null==n||t||""!==n?n:null}function i(e){const t=r(e);if(null==t)return t;if(""===t)return null;return+t}function o(e){const t=r(e,!0);return null==t?t:String(t)}n.d(t,{NumberParam:()=>s,QueryParamProvider:()=>C,StringParam:()=>a,useQueryParam:()=>P,useQueryParams:()=>I});const a={encode:function(e){return null==e?e:String(e)},decode:o},s={encode:function(e){return null==e?e:String(e)},decode:i};'{}[],":'.split("").map((e=>[e,encodeURIComponent(e)]));function l(e,t){const n={},r=Object.keys(t);for(const i of r){const r=t[i];e[i]?n[i]=e[i].encode(t[i]):n[i]=null==r?r:String(r)}return n}var c=n(59284);const u=new class{constructor(){this.paramsMap=new Map,this.registeredParams=new Map}set(e,t,n,r){this.paramsMap.set(e,{stringified:t,decoded:n,decode:r})}has(e,t,n){if(!this.paramsMap.has(e))return!1;const r=this.paramsMap.get(e);return!!r&&(r.stringified===t&&(null==n||r.decode===n))}get(e){var t;if(this.paramsMap.has(e))return null==(t=this.paramsMap.get(e))?void 0:t.decoded}registerParams(e){for(const t of e){const e=this.registeredParams.get(t)||0;this.registeredParams.set(t,e+1)}}unregisterParams(e){for(const t of e){const e=(this.registeredParams.get(t)||0)-1;e<=0?(this.registeredParams.delete(t),this.paramsMap.has(t)&&this.paramsMap.delete(t)):this.registeredParams.set(t,e)}}clear(){this.paramsMap.clear(),this.registeredParams.clear()}};function d(e,t,n,r){var i;if(!n||!t.length)return e;let o={...e},a=!1;for(const s of t)Object.prototype.hasOwnProperty.call(o,s)||(o[s]=null!=(i=n[s])?i:r,a=!0);return a?o:e}const f=Object.prototype.hasOwnProperty;function p(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function h(e,t,n){var r,i;if(p(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;const o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(let s=0;s<o.length;s++){const a=null!=(i=null==(r=null==n?void 0:n[o[s]])?void 0:r.equals)?i:p;if(!f.call(t,o[s])||!a(e[o[s]],t[o[s]]))return!1}return!0}function m(e,t,n){const r={},i=Object.keys(t);for(const o of i){const i=t[o],a=e[o];let s;if(n.has(o,a,i.decode))s=n.get(o);else{if(s=i.decode(a),i.equals&&n.has(o,a)){const e=n.get(o);i.equals(s,e)&&(s=e)}void 0!==s&&n.set(o,a,s,i.decode)}void 0===s&&void 0!==i.default&&(s=i.default),r[o]=s}return r}function g(){let e;return function(t,n,r){const i=m(t,n,r);return null!=e&&h(e,i)?e:(e=i,i)}}let v,y,b,w={};const x=(e,t,n)=>{if(v===t&&b===e&&y===n)return w;v=t,b=e;const r=e(null!=t?t:"");y=n;const i=function(e){if(e)return Object.fromEntries(e.split("\n").map((e=>e.split("\0"))))}(n);for(let[o,a]of Object.entries(r)){(null==i?void 0:i[o])&&(delete r[o],o=i[o],r[o]=a);const e=w[o];h(a,e)&&(r[o]=e)}return w=r,r};function _(e,t){null==t&&(t={});const n={...e,...t};return t.params&&e.params&&(n.params={...e.params,...t.params}),n}const E={adapter:{},options:{searchStringToObject:function(e){const t=new URLSearchParams(e),n={};for(let[r,i]of t)Object.prototype.hasOwnProperty.call(n,r)?Array.isArray(n[r])?n[r].push(i):n[r]=[n[r],i]:n[r]=i;return n},objectToSearchString:function(e){const t=new URLSearchParams,n=Object.entries(e);for(const[r,i]of n)if(void 0!==i&&null!==i)if(Array.isArray(i))for(const e of i)t.append(r,null!=e?e:"");else t.append(r,i);return t.toString()},updateType:"pushIn",includeKnownParams:void 0,includeAllParams:!1,removeDefaultsFromUrl:!1,enableBatching:!1,skipUpdateWhenNoChange:!0}},S=c.createContext(E);function k({children:e,adapter:t,options:n}){const{adapter:r,options:i}=c.useContext(S),o=c.useMemo((()=>({adapter:null!=t?t:r,options:_(i,n)})),[t,n,r,i]);return c.createElement(S.Provider,{value:o},e)}function C({children:e,adapter:t,options:n}){const r=t;return r?c.createElement(r,null,(t=>c.createElement(k,{adapter:t,options:n},e))):c.createElement(k,{options:n},e)}function O({changes:e,updateType:t,currentSearchString:n,paramConfigMap:r,options:i}){const{searchStringToObject:o,objectToSearchString:a}=i;let s;null==t&&(t=i.updateType);const c=x(o,n),f=d(r,Object.keys(e),i.params);let p,h;if("function"===typeof e){p=e(m(c,f,u))}else p=e;return s=l(f,p),i.removeDefaultsFromUrl&&function(e,t){var n;for(const r in e)void 0!==(null==(n=t[r])?void 0:n.default)&&void 0!==e[r]&&t[r].encode(t[r].default)===e[r]&&(e[r]=void 0)}(s,f),s=function(e,t){var n;let r={};for(const i in e)null!=(null==(n=t[i])?void 0:n.urlName)?r[t[i].urlName]=e[i]:r[i]=e[i];return r}(s,f),h=a("push"===t||"replace"===t?s:{...c,...s}),(null==h?void 0:h.length)&&"?"!==h[0]&&(h=`?${h}`),null!=h?h:""}const N=e=>e(),T=e=>setTimeout((()=>e()),0),A=[];function I(e,t){const{adapter:n,options:r}=function(){const e=c.useContext(S);if(void 0===e||e===E)throw new Error("useQueryParams must be used within a QueryParamProvider");return e}(),[i]=(0,c.useState)(g),{paramConfigMap:o,options:s}=function(e,t){let n,r;void 0===e?(n={},r=t):Array.isArray(e)?(n=Object.fromEntries(e.map((e=>[e,"inherit"]))),r=t):(n=e,r=t);return{paramConfigMap:n,options:r}}(e,t),l=(0,c.useMemo)((()=>_(r,s)),[r,s]);let f=function(e,t){var n,r,i;const o={};let s=!1;const l=Object.keys(e);let c=l;if(t.includeKnownParams||!1!==t.includeKnownParams&&0===l.length){const e=Object.keys(null!=(n=t.params)?n:{});c.push(...e)}for(const u of c){const n=e[u];null==n||"object"!==typeof n?(s=!0,o[u]=null!=(i=null==(r=t.params)?void 0:r[u])?i:a):o[u]=n}return s?o:e}(o,l);const p=x(l.searchStringToObject,n.location.search,function(e){let t;for(const n in e)if(e[n].urlName){const r=`${e[n].urlName}\0${n}`;t?t.push(r):t=[r]}return t?t.join("\n"):void 0}(f));l.includeAllParams&&(f=d(f,Object.keys(p),l.params,a));const h=i(p,f,u),m=Object.keys(f).join("\0");(0,c.useEffect)((()=>{const e=m.split("\0");return u.registerParams(e),()=>{u.unregisterParams(e)}}),[m]);const v={adapter:n,paramConfigMap:f,options:l},y=(0,c.useRef)(v);null==y.current&&(y.current=v),(0,c.useEffect)((()=>{y.current.adapter=n,y.current.paramConfigMap=f,y.current.options=l}),[n,f,l]);const[b]=(0,c.useState)((()=>(e,t)=>{const{adapter:n,paramConfigMap:r,options:i}=y.current;null==t&&(t=i.updateType),function(e,{immediate:t}={}){A.push(e);let n=t?N:T;1===A.length&&n((()=>{const t=A.slice();A.length=0;const n=t[0].currentSearchString;let r;for(let e=0;e<t.length;++e)r=O(0===e?t[e]:{...t[e],currentSearchString:r});e.options.skipUpdateWhenNoChange&&r===n||function({searchString:e,adapter:t,navigate:n,updateType:r}){const i={...t.location,search:e};n&&("string"===typeof r&&r.startsWith("replace")?t.replace(i):t.push(i))}({searchString:null!=r?r:"",adapter:t[t.length-1].adapter,navigate:!0,updateType:t[t.length-1].updateType})}))}({changes:e,updateType:t,currentSearchString:n.location.search,paramConfigMap:r,options:i,adapter:n},{immediate:!i.enableBatching})}));return[h,b]}var D=I;const P=(e,t,n)=>{const r=(0,c.useMemo)((()=>({[e]:null!=t?t:"inherit"})),[e,t]),[i,o]=D(r,n);return[i[e],(0,c.useCallback)(((t,n)=>o("function"===typeof t?n=>{const r=t(n[e]);return{[e]:r}}:{[e]:t},n)),[e,o])]}},6032:(e,t,n)=>{"use strict";var r=n(59284);var i="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},o=r.useSyncExternalStore,a=r.useRef,s=r.useEffect,l=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=a(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l((function(){function e(e){if(!s){if(s=!0,o=e,e=r(e),void 0!==u&&f.hasValue){var t=f.value;if(u(t,e))return a=t}return a=e}if(t=a,i(o,e))return t;var n=r(e);return void 0!==u&&u(t,n)?(o=e,t):(o=e,a=n)}var o,a,s=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]}),[t,n,r,u]);var p=o(e,d[0],d[1]);return s((function(){f.hasValue=!0,f.value=p}),[p]),c(p),p}},88730:(e,t,n)=>{"use strict";e.exports=n(6032)},42634:()=>{},9417:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:()=>r})},58168:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{A:()=>r})},25540:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,{A:()=>i})},98587:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}n.d(t,{A:()=>r})},44992:(e,t,n)=>{"use strict";n.d(t,{RE:()=>s,hT:()=>A,l0:()=>M,m7:()=>G});var r=n(96906),i=n(97091),o=n(90754),a=n(53850),s=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(s||{});var l=r.Qd;function c(e,t){if(e===t||!(l(e)&&l(t)||Array.isArray(e)&&Array.isArray(t)))return t;const n=Object.keys(t),r=Object.keys(e);let i=n.length===r.length;const o=Array.isArray(t)?[]:{};for(const a of n)o[a]=c(e[a],t[a]),i&&(i=e[a]===o[a]);return i?e:o}function u(e){let t=0;for(const n in e)t++;return t}var d=e=>[].concat(...e);function f(e){return null!=e}var p=class{constructor(e,t=void 0){this.value=e,this.meta=t}};var h=(0,i.VP)("__rtkq/focused"),m=(0,i.VP)("__rtkq/unfocused"),g=(0,i.VP)("__rtkq/online"),v=(0,i.VP)("__rtkq/offline");function y(e){return"query"===e.type}function b(e,t,n,r,i,o){return"function"===typeof e?e(t,n,r,i).filter(f).map(w).map(o):Array.isArray(e)?e.map(w).map(o):[]}function w(e){return"string"===typeof e?{type:e}:e}var x=Symbol("forceQueryFn"),_=e=>"function"===typeof e[x];function E(e){return e}function S(e,t,n,r){return b(n[e.meta.arg.endpointName][t],(0,i.sf)(e)?e.payload:void 0,(0,i.WA)(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function k(e,t,n){const r=e[t];r&&n(r)}function C(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function O(e,t,n){const r=e[C(t)];r&&n(r)}var N={};function T({reducerPath:e,queryThunk:t,mutationThunk:n,serializeQueryArgs:a,context:{endpointDefinitions:s,apiUid:l,extractRehydrationInfo:u,hasRehydrationInfo:d},assertTagType:f,config:p}){const y=(0,i.VP)(`${e}/resetApiState`);function b(e,t,n,r){e[t.queryCacheKey]??={status:"uninitialized",endpointName:t.endpointName},k(e,t.queryCacheKey,(e=>{e.status="pending",e.requestId=n&&e.requestId?e.requestId:r.requestId,void 0!==t.originalArgs&&(e.originalArgs=t.originalArgs),e.startedTimeStamp=r.startedTimeStamp}))}function w(e,t,n){k(e,t.arg.queryCacheKey,(e=>{if(e.requestId!==t.requestId&&!_(t.arg))return;const{merge:r}=s[t.arg.endpointName];if(e.status="fulfilled",r)if(void 0!==e.data){const{fulfilledTimeStamp:i,arg:a,baseQueryMeta:s,requestId:l}=t;let c=(0,o.jM)(e.data,(e=>r(e,n,{arg:a.originalArgs,baseQueryMeta:s,fulfilledTimeStamp:i,requestId:l})));e.data=c}else e.data=n;else e.data=s[t.arg.endpointName].structuralSharing??1?c((0,o.Qx)(e.data)?(0,o.c2)(e.data):e.data,n):n;delete e.error,e.fulfilledTimeStamp=t.fulfilledTimeStamp}))}const x=(0,i.Z0)({name:`${e}/queries`,initialState:N,reducers:{removeQueryResult:{reducer(e,{payload:{queryCacheKey:t}}){delete e[t]},prepare:(0,i.aA)()},cacheEntriesUpserted:{reducer(e,t){for(const n of t.payload){const{queryDescription:r,value:i}=n;b(e,r,!0,{arg:r,requestId:t.meta.requestId,startedTimeStamp:t.meta.timestamp}),w(e,{arg:r,requestId:t.meta.requestId,fulfilledTimeStamp:t.meta.timestamp,baseQueryMeta:{}},i)}},prepare:e=>({payload:e.map((e=>{const{endpointName:t,arg:n,value:r}=e,i=s[t];return{queryDescription:{type:"query",endpointName:t,originalArgs:e.arg,queryCacheKey:a({queryArgs:n,endpointDefinition:i,endpointName:t})},value:r}})),meta:{[i.cN]:!0,requestId:(0,i.Ak)(),timestamp:Date.now()}})},queryResultPatched:{reducer(e,{payload:{queryCacheKey:t,patches:n}}){k(e,t,(e=>{e.data=(0,o.$i)(e.data,n.concat())}))},prepare:(0,i.aA)()}},extraReducers(e){e.addCase(t.pending,((e,{meta:t,meta:{arg:n}})=>{b(e,n,_(n),t)})).addCase(t.fulfilled,((e,{meta:t,payload:n})=>{w(e,t,n)})).addCase(t.rejected,((e,{meta:{condition:t,arg:n,requestId:r},error:i,payload:o})=>{k(e,n.queryCacheKey,(e=>{if(t);else{if(e.requestId!==r)return;e.status="rejected",e.error=o??i}}))})).addMatcher(d,((e,t)=>{const{queries:n}=u(t);for(const[r,i]of Object.entries(n))"fulfilled"!==i?.status&&"rejected"!==i?.status||(e[r]=i)}))}}),E=(0,i.Z0)({name:`${e}/mutations`,initialState:N,reducers:{removeMutationResult:{reducer(e,{payload:t}){const n=C(t);n in e&&delete e[n]},prepare:(0,i.aA)()}},extraReducers(e){e.addCase(n.pending,((e,{meta:t,meta:{requestId:n,arg:r,startedTimeStamp:i}})=>{r.track&&(e[C(t)]={requestId:n,status:"pending",endpointName:r.endpointName,startedTimeStamp:i})})).addCase(n.fulfilled,((e,{payload:t,meta:n})=>{n.arg.track&&O(e,n,(e=>{e.requestId===n.requestId&&(e.status="fulfilled",e.data=t,e.fulfilledTimeStamp=n.fulfilledTimeStamp)}))})).addCase(n.rejected,((e,{payload:t,error:n,meta:r})=>{r.arg.track&&O(e,r,(e=>{e.requestId===r.requestId&&(e.status="rejected",e.error=t??n)}))})).addMatcher(d,((e,t)=>{const{mutations:n}=u(t);for(const[r,i]of Object.entries(n))"fulfilled"!==i?.status&&"rejected"!==i?.status||r===i?.requestId||(e[r]=i)}))}}),T=(0,i.Z0)({name:`${e}/invalidation`,initialState:N,reducers:{updateProvidedBy:{reducer(e,t){const{queryCacheKey:n,providedTags:r}=t.payload;for(const i of Object.values(e))for(const e of Object.values(i)){const t=e.indexOf(n);-1!==t&&e.splice(t,1)}for(const{type:i,id:o}of r){const t=(e[i]??={})[o||"__internal_without_id"]??=[];t.includes(n)||t.push(n)}},prepare:(0,i.aA)()}},extraReducers(e){e.addCase(x.actions.removeQueryResult,((e,{payload:{queryCacheKey:t}})=>{for(const n of Object.values(e))for(const e of Object.values(n)){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}})).addMatcher(d,((e,t)=>{const{provided:n}=u(t);for(const[r,i]of Object.entries(n))for(const[t,n]of Object.entries(i)){const i=(e[r]??={})[t||"__internal_without_id"]??=[];for(const e of n){i.includes(e)||i.push(e)}}})).addMatcher((0,i.i0)((0,i.sf)(t),(0,i.WA)(t)),((e,t)=>{const n=S(t,"providesTags",s,f),{queryCacheKey:r}=t.meta.arg;T.caseReducers.updateProvidedBy(e,T.actions.updateProvidedBy({queryCacheKey:r,providedTags:n}))}))}}),A=(0,i.Z0)({name:`${e}/subscriptions`,initialState:N,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),I=(0,i.Z0)({name:`${e}/internalSubscriptions`,initialState:N,reducers:{subscriptionsUpdated:{reducer:(e,t)=>(0,o.$i)(e,t.payload),prepare:(0,i.aA)()}}}),D=(0,i.Z0)({name:`${e}/config`,initialState:{online:"undefined"===typeof navigator||void 0===navigator.onLine||navigator.onLine,focused:"undefined"===typeof document||"hidden"!==document.visibilityState,middlewareRegistered:!1,...p},reducers:{middlewareRegistered(e,{payload:t}){e.middlewareRegistered="conflict"!==e.middlewareRegistered&&l===t||"conflict"}},extraReducers:e=>{e.addCase(g,(e=>{e.online=!0})).addCase(v,(e=>{e.online=!1})).addCase(h,(e=>{e.focused=!0})).addCase(m,(e=>{e.focused=!1})).addMatcher(d,(e=>({...e})))}}),P=(0,r.HY)({queries:x.reducer,mutations:E.reducer,provided:T.reducer,subscriptions:I.reducer,config:D.reducer});return{reducer:(e,t)=>P(y.match(t)?void 0:e,t),actions:{...D.actions,...x.actions,...A.actions,...I.actions,...E.actions,...T.actions,resetApiState:y}}}var A=Symbol.for("RTKQ/skipToken"),I={status:"uninitialized"},D=(0,o.jM)(I,(()=>{})),P=(0,o.jM)(I,(()=>{}));var R=WeakMap?new WeakMap:void 0,j=({endpointName:e,queryArgs:t})=>{let n="";const i=R?.get(t);if("string"===typeof i)n=i;else{const e=JSON.stringify(t,((e,t)=>(t="bigint"===typeof t?{$bigint:t.toString()}:t,t=(0,r.Qd)(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t)));(0,r.Qd)(t)&&R?.set(t,e),n=e}return`${e}(${n})`};function M(...e){return function(t){const n=(0,a.X4)((e=>t.extractRehydrationInfo?.(e,{reducerPath:t.reducerPath??"api"}))),r={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...t,extractRehydrationInfo:n,serializeQueryArgs(e){let n=j;if("serializeQueryArgs"in e.endpointDefinition){const t=e.endpointDefinition.serializeQueryArgs;n=e=>{const n=t(e);return"string"===typeof n?n:j({...e,queryArgs:n})}}else t.serializeQueryArgs&&(n=t.serializeQueryArgs);return n(e)},tagTypes:[...t.tagTypes||[]]},o={endpointDefinitions:{},batch(e){e()},apiUid:(0,i.Ak)(),extractRehydrationInfo:n,hasRehydrationInfo:(0,a.X4)((e=>null!=n(e)))},s={injectEndpoints:function(e){const t=e.endpoints({query:e=>({...e,type:"query"}),mutation:e=>({...e,type:"mutation"})});for(const[n,r]of Object.entries(t))if(!0!==e.overrideExisting&&n in o.endpointDefinitions){if("throw"===e.overrideExisting)throw new Error((0,i.gk)(39))}else{o.endpointDefinitions[n]=r;for(const e of l)e.injectEndpoint(n,r)}return s},enhanceEndpoints({addTagTypes:e,endpoints:t}){if(e)for(const n of e)r.tagTypes.includes(n)||r.tagTypes.push(n);if(t)for(const[n,r]of Object.entries(t))"function"===typeof r?r(o.endpointDefinitions[n]):Object.assign(o.endpointDefinitions[n]||{},r);return s}},l=e.map((e=>e.init(s,r,o)));return s.injectEndpoints({endpoints:t.endpoints})}}function L(e,...t){return Object.assign(e,...t)}var z=({api:e,queryThunk:t,internalState:n})=>{const r=`${e.reducerPath}/subscriptions`;let i=null,a=null;const{updateSubscriptionOptions:s,unsubscribeQueryResult:l}=e.internalActions,c=()=>n.currentSubscriptions,d={getSubscriptions:c,getSubscriptionCount:e=>u(c()[e]??{}),isRequestSubscribed:(e,t)=>{const n=c();return!!n?.[e]?.[t]}};return(c,u)=>{if(i||(i=JSON.parse(JSON.stringify(n.currentSubscriptions))),e.util.resetApiState.match(c))return i=n.currentSubscriptions={},a=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(c))return[!1,d];const f=((n,r)=>{if(s.match(r)){const{queryCacheKey:e,requestId:t,options:i}=r.payload;return n?.[e]?.[t]&&(n[e][t]=i),!0}if(l.match(r)){const{queryCacheKey:e,requestId:t}=r.payload;return n[e]&&delete n[e][t],!0}if(e.internalActions.removeQueryResult.match(r))return delete n[r.payload.queryCacheKey],!0;if(t.pending.match(r)){const{meta:{arg:e,requestId:t}}=r,i=n[e.queryCacheKey]??={};return i[`${t}_running`]={},e.subscribe&&(i[t]=e.subscriptionOptions??i[t]??{}),!0}let i=!1;if(t.fulfilled.match(r)||t.rejected.match(r)){const e=n[r.meta.arg.queryCacheKey]||{},t=`${r.meta.requestId}_running`;i||=!!e[t],delete e[t]}if(t.rejected.match(r)){const{meta:{condition:e,arg:t,requestId:o}}=r;if(e&&t.subscribe){const e=n[t.queryCacheKey]??={};e[o]=t.subscriptionOptions??e[o]??{},i=!0}}return i})(n.currentSubscriptions,c);let p=!0;if(f){a||(a=setTimeout((()=>{const t=JSON.parse(JSON.stringify(n.currentSubscriptions)),[,r]=(0,o.vI)(i,(()=>t));u.next(e.internalActions.subscriptionsUpdated(r)),i=t,a=null}),500));const s="string"==typeof c.type&&!!c.type.startsWith(r),l=t.rejected.match(c)&&c.meta.condition&&!!c.meta.arg.subscribe;p=!s&&!l}return[p,!1]}};var F=({reducerPath:e,api:t,queryThunk:n,context:r,internalState:o})=>{const{removeQueryResult:a,unsubscribeQueryResult:s,cacheEntriesUpserted:l}=t.internalActions,c=(0,i.i0)(s.match,n.fulfilled,n.rejected,l.match);function u(e){const t=o.currentSubscriptions[e];return!!t&&!function(e){for(const t in e)return!1;return!0}(t)}const d={};function f(e,t,n,i){const o=r.endpointDefinitions[t],s=o?.keepUnusedDataFor??i.keepUnusedDataFor;if(s===1/0)return;const l=Math.max(0,Math.min(s,2147482.647));if(!u(e)){const t=d[e];t&&clearTimeout(t),d[e]=setTimeout((()=>{u(e)||n.dispatch(a({queryCacheKey:e})),delete d[e]}),1e3*l)}}return(n,i,o)=>{if(c(n)){const t=i.getState()[e];let r;if(l.match(n))r=n.payload.map((e=>e.queryDescription.queryCacheKey));else{const{queryCacheKey:e}=s.match(n)?n.payload:n.meta.arg;r=[e]}for(const e of r)f(e,t.queries[e]?.endpointName,i,t.config)}if(t.util.resetApiState.match(n))for(const[e,t]of Object.entries(d))t&&clearTimeout(t),delete d[e];if(r.hasRehydrationInfo(n)){const t=i.getState()[e],{queries:o}=r.extractRehydrationInfo(n);for(const[e,n]of Object.entries(o))f(e,n?.endpointName,i,t.config)}}},B=new Error("Promise never resolved before cacheEntryRemoved."),U=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:o,internalState:a})=>{const s=(0,i.$S)(r),l=(0,i.$S)(o),c=(0,i.sf)(r,o),u={};function d(e,t,n){const r=u[e];r?.valueResolved&&(r.valueResolved({data:t,meta:n}),delete r.valueResolved)}function f(e){const t=u[e];t&&(delete u[e],t.cacheEntryRemoved())}function p(t,r,i,o,a){const s=n.endpointDefinitions[t],l=s?.onCacheEntryAdded;if(!l)return;const c={},d=new Promise((e=>{c.cacheEntryRemoved=e})),f=Promise.race([new Promise((e=>{c.valueResolved=e})),d.then((()=>{throw B}))]);f.catch((()=>{})),u[i]=c;const p=e.endpoints[t].select("query"===s.type?r:i),h=o.dispatch(((e,t,n)=>n)),m={...o,getCacheEntry:()=>p(o.getState()),requestId:a,extra:h,updateCachedData:"query"===s.type?n=>o.dispatch(e.util.updateQueryData(t,r,n)):void 0,cacheDataLoaded:f,cacheEntryRemoved:d},g=l(r,m);Promise.resolve(g).catch((e=>{if(e!==B)throw e}))}return(n,i,a)=>{const h=function(t){if(s(t))return t.meta.arg.queryCacheKey;if(l(t))return t.meta.arg.fixedCacheKey??t.meta.requestId;return e.internalActions.removeQueryResult.match(t)?t.payload.queryCacheKey:e.internalActions.removeMutationResult.match(t)?C(t.payload):""}(n);function m(e,n,r,o){const s=a[t].queries[n],l=i.getState()[t].queries[n];!s&&l&&p(e,o,n,i,r)}if(r.pending.match(n))m(n.meta.arg.endpointName,h,n.meta.requestId,n.meta.arg.originalArgs);else if(e.internalActions.cacheEntriesUpserted.match(n))for(const{queryDescription:e,value:t}of n.payload){const{endpointName:r,originalArgs:i,queryCacheKey:o}=e;m(r,o,n.meta.requestId,i),d(o,t,{})}else if(o.pending.match(n)){i.getState()[t].mutations[h]&&p(n.meta.arg.endpointName,n.meta.arg.originalArgs,h,i,n.meta.requestId)}else if(c(n))d(h,n.payload,n.meta.baseQueryMeta);else if(e.internalActions.removeQueryResult.match(n)||e.internalActions.removeMutationResult.match(n))f(h);else if(e.util.resetApiState.match(n))for(const e of Object.keys(u))f(e)}},$=({api:e,context:{apiUid:t},reducerPath:n})=>(n,r)=>{e.util.resetApiState.match(n)&&r.dispatch(e.internalActions.middlewareRegistered(t))},q=({reducerPath:e,context:t,context:{endpointDefinitions:n},mutationThunk:r,queryThunk:o,api:a,assertTagType:s,refetchQuery:l,internalState:c})=>{const{removeQueryResult:d}=a.internalActions,f=(0,i.i0)((0,i.sf)(r),(0,i.WA)(r)),p=(0,i.i0)((0,i.sf)(r,o),(0,i.TK)(r,o));let h=[];function m(n,r){const i=r.getState(),o=i[e];if(h.push(...n),"delayed"===o.config.invalidationBehavior&&function(e){for(const t in e.queries)if("pending"===e.queries[t]?.status)return!0;for(const t in e.mutations)if("pending"===e.mutations[t]?.status)return!0;return!1}(o))return;const s=h;if(h=[],0===s.length)return;const f=a.util.selectInvalidatedBy(i,s);t.batch((()=>{const e=Array.from(f.values());for(const{queryCacheKey:t}of e){const e=o.queries[t],n=c.currentSubscriptions[t]??{};e&&(0===u(n)?r.dispatch(d({queryCacheKey:t})):"uninitialized"!==e.status&&r.dispatch(l(e)))}}))}return(e,t)=>{f(e)?m(S(e,"invalidatesTags",n,s),t):p(e)?m([],t):a.util.invalidateTags.match(e)&&m(b(e.payload,void 0,void 0,void 0,void 0,s),t)}},H=({reducerPath:e,queryThunk:t,api:n,refetchQuery:r,internalState:i})=>{const o={};function a({queryCacheKey:t},n){const s=n.getState()[e],l=s.queries[t],u=i.currentSubscriptions[t];if(!l||"uninitialized"===l.status)return;const{lowestPollingInterval:d,skipPollingIfUnfocused:f}=c(u);if(!Number.isFinite(d))return;const p=o[t];p?.timeout&&(clearTimeout(p.timeout),p.timeout=void 0);const h=Date.now()+d;o[t]={nextPollTimestamp:h,pollingInterval:d,timeout:setTimeout((()=>{!s.config.focused&&f||n.dispatch(r(l)),a({queryCacheKey:t},n)}),d)}}function s({queryCacheKey:t},n){const r=n.getState()[e].queries[t],s=i.currentSubscriptions[t];if(!r||"uninitialized"===r.status)return;const{lowestPollingInterval:u}=c(s);if(!Number.isFinite(u))return void l(t);const d=o[t],f=Date.now()+u;(!d||f<d.nextPollTimestamp)&&a({queryCacheKey:t},n)}function l(e){const t=o[e];t?.timeout&&clearTimeout(t.timeout),delete o[e]}function c(e={}){let t=!1,n=Number.POSITIVE_INFINITY;for(let r in e)e[r].pollingInterval&&(n=Math.min(e[r].pollingInterval,n),t=e[r].skipPollingIfUnfocused||t);return{lowestPollingInterval:n,skipPollingIfUnfocused:t}}return(e,r)=>{(n.internalActions.updateSubscriptionOptions.match(e)||n.internalActions.unsubscribeQueryResult.match(e))&&s(e.payload,r),(t.pending.match(e)||t.rejected.match(e)&&e.meta.condition)&&s(e.meta.arg,r),(t.fulfilled.match(e)||t.rejected.match(e)&&!e.meta.condition)&&a(e.meta.arg,r),n.util.resetApiState.match(e)&&function(){for(const e of Object.keys(o))l(e)}()}},V=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{const o=(0,i.mm)(n,r),a=(0,i.TK)(n,r),s=(0,i.sf)(n,r),l={};return(n,r)=>{if(o(n)){const{requestId:i,arg:{endpointName:o,originalArgs:a}}=n.meta,s=t.endpointDefinitions[o],c=s?.onQueryStarted;if(c){const t={},n=new Promise(((e,n)=>{t.resolve=e,t.reject=n}));n.catch((()=>{})),l[i]=t;const u=e.endpoints[o].select("query"===s.type?a:i),d=r.dispatch(((e,t,n)=>n)),f={...r,getCacheEntry:()=>u(r.getState()),requestId:i,extra:d,updateCachedData:"query"===s.type?t=>r.dispatch(e.util.updateQueryData(o,a,t)):void 0,queryFulfilled:n};c(a,f)}}else if(s(n)){const{requestId:e,baseQueryMeta:t}=n.meta;l[e]?.resolve({data:n.payload,meta:t}),delete l[e]}else if(a(n)){const{requestId:e,rejectedWithValue:t,baseQueryMeta:r}=n.meta;l[e]?.reject({error:n.payload??n.error,isUnhandledError:!t,meta:r}),delete l[e]}}};function W(e){const{reducerPath:t,queryThunk:n,api:o,context:a}=e,{apiUid:s}=a,l={invalidateTags:(0,i.VP)(`${t}/invalidateTags`)},c=e=>e.type.startsWith(`${t}/`),d=[$,F,q,H,U,V];return{middleware:n=>{let i=!1;const l={...e,internalState:{currentSubscriptions:{}},refetchQuery:f,isThisApiSliceAction:c},p=d.map((e=>e(l))),m=z(l),v=(({reducerPath:e,context:t,api:n,refetchQuery:r,internalState:i})=>{const{removeQueryResult:o}=n.internalActions;function a(n,a){const s=n.getState()[e],l=s.queries,c=i.currentSubscriptions;t.batch((()=>{for(const e of Object.keys(c)){const t=l[e],i=c[e];i&&t&&((Object.values(i).some((e=>!0===e[a]))||Object.values(i).every((e=>void 0===e[a]))&&s.config[a])&&(0===u(i)?n.dispatch(o({queryCacheKey:e})):"uninitialized"!==t.status&&n.dispatch(r(t))))}}))}return(e,t)=>{h.match(e)&&a(t,"refetchOnFocus"),g.match(e)&&a(t,"refetchOnReconnect")}})(l);return e=>l=>{if(!(0,r.ve)(l))return e(l);i||(i=!0,n.dispatch(o.internalActions.middlewareRegistered(s)));const u={...n,next:e},d=n.getState(),[f,h]=m(l,u,d);let g;if(g=f?e(l):h,n.getState()[t]&&(v(l,u,d),c(l)||a.hasRehydrationInfo(l)))for(const e of p)e(l,u,d);return g}},actions:l};function f(t){return e.api.endpoints[t.endpointName].initiate(t.originalArgs,{subscribe:!1,forceRefetch:!0})}}var K=Symbol(),G=({createSelector:e=a.Mz}={})=>({name:K,init(t,{baseQuery:n,tagTypes:r,reducerPath:a,serializeQueryArgs:s,keepUnusedDataFor:l,refetchOnMountOrArgChange:c,refetchOnFocus:S,refetchOnReconnect:k,invalidationBehavior:O},N){(0,o.YT)();const I=e=>e;Object.assign(t,{reducerPath:a,endpoints:{},internalActions:{onOnline:g,onOffline:v,onFocus:h,onFocusLost:m},util:{}});const{queryThunk:R,mutationThunk:j,patchQueryData:M,updateQueryData:z,upsertQueryData:F,prefetch:B,buildMatchThunkActions:U}=function({reducerPath:e,baseQuery:t,context:{endpointDefinitions:n},serializeQueryArgs:r,api:a,assertTagType:s}){const l=async(e,{signal:r,abort:o,rejectWithValue:a,fulfillWithValue:s,dispatch:l,getState:u,extra:d})=>{const f=n[e.endpointName];try{let n,a=E;const h={signal:r,abort:o,dispatch:l,getState:u,extra:d,endpoint:e.endpointName,type:e.type,forced:"query"===e.type?c(e,u()):void 0,queryCacheKey:"query"===e.type?e.queryCacheKey:void 0},m="query"===e.type?e[x]:void 0;if(m?n=m():f.query?(n=await t(f.query(e.originalArgs),h,f.extraOptions),f.transformResponse&&(a=f.transformResponse)):n=await f.queryFn(e.originalArgs,h,f.extraOptions,(e=>t(e,h,f.extraOptions))),n.error)throw new p(n.error,n.meta);return s(await a(n.data,n.meta,e.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:n.meta,[i.cN]:!0})}catch(h){let t=h;if(t instanceof p){let n=E;f.query&&f.transformErrorResponse&&(n=f.transformErrorResponse);try{return a(await n(t.value,t.meta,e.originalArgs),{baseQueryMeta:t.meta,[i.cN]:!0})}catch(m){t=m}}throw console.error(t),t}};function c(t,n){const r=n[e]?.queries?.[t.queryCacheKey],i=n[e]?.config.refetchOnMountOrArgChange,o=r?.fulfilledTimeStamp,a=t.forceRefetch??(t.subscribe&&i);return!!a&&(!0===a||(Number(new Date)-Number(o))/1e3>=a)}const u=(0,i.zD)(`${e}/executeQuery`,l,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[i.cN]:!0}),condition(t,{getState:r}){const i=r(),o=i[e]?.queries?.[t.queryCacheKey],a=o?.fulfilledTimeStamp,s=t.originalArgs,l=o?.originalArgs,u=n[t.endpointName];return!!_(t)||"pending"!==o?.status&&(!!c(t,i)||!(!y(u)||!u?.forceRefetch?.({currentArg:s,previousArg:l,endpointState:o,state:i}))||!a)},dispatchConditionRejection:!0}),d=(0,i.zD)(`${e}/executeMutation`,l,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[i.cN]:!0})});function f(e){return t=>t?.meta?.arg?.endpointName===e}return{queryThunk:u,mutationThunk:d,prefetch:(e,t,n)=>(r,i)=>{const o=(e=>"force"in e)(n)&&n.force,s=(e=>"ifOlderThan"in e)(n)&&n.ifOlderThan,l=(n=!0)=>{const r={forceRefetch:n,isPrefetch:!0};return a.endpoints[e].initiate(t,r)},c=a.endpoints[e].select(t)(i());if(o)r(l());else if(s){const e=c?.fulfilledTimeStamp;if(!e)return void r(l());(Number(new Date)-Number(new Date(e)))/1e3>=s&&r(l())}else r(l(!1))},updateQueryData:(e,t,n,r=!0)=>(i,s)=>{const l=a.endpoints[e].select(t)(s()),c={patches:[],inversePatches:[],undo:()=>i(a.util.patchQueryData(e,t,c.inversePatches,r))};if("uninitialized"===l.status)return c;let u;if("data"in l)if((0,o.a6)(l.data)){const[e,t,r]=(0,o.vI)(l.data,n);c.patches.push(...t),c.inversePatches.push(...r),u=e}else u=n(l.data),c.patches.push({op:"replace",path:[],value:u}),c.inversePatches.push({op:"replace",path:[],value:l.data});return 0===c.patches.length||i(a.util.patchQueryData(e,t,c.patches,r)),c},upsertQueryData:(e,t,n)=>r=>r(a.endpoints[e].initiate(t,{subscribe:!1,forceRefetch:!0,[x]:()=>({data:n})})),patchQueryData:(e,t,i,o)=>(l,c)=>{const u=n[e],d=r({queryArgs:t,endpointDefinition:u,endpointName:e});if(l(a.internalActions.queryResultPatched({queryCacheKey:d,patches:i})),!o)return;const f=a.endpoints[e].select(t)(c()),p=b(u.providesTags,f.data,void 0,t,{},s);l(a.internalActions.updateProvidedBy({queryCacheKey:d,providedTags:p}))},buildMatchThunkActions:function(e,t){return{matchPending:(0,i.f$)((0,i.mm)(e),f(t)),matchFulfilled:(0,i.f$)((0,i.sf)(e),f(t)),matchRejected:(0,i.f$)((0,i.TK)(e),f(t))}}}}({baseQuery:n,reducerPath:a,context:N,api:t,serializeQueryArgs:s,assertTagType:I}),{reducer:$,actions:q}=T({context:N,queryThunk:R,mutationThunk:j,serializeQueryArgs:s,reducerPath:a,assertTagType:I,config:{refetchOnFocus:S,refetchOnReconnect:k,refetchOnMountOrArgChange:c,keepUnusedDataFor:l,reducerPath:a,invalidationBehavior:O}});L(t.util,{patchQueryData:M,updateQueryData:z,upsertQueryData:F,prefetch:B,resetApiState:q.resetApiState,upsertQueryEntries:q.cacheEntriesUpserted}),L(t.internalActions,q);const{middleware:H,actions:V}=W({reducerPath:a,context:N,queryThunk:R,mutationThunk:j,api:t,assertTagType:I});L(t.util,V),L(t,{reducer:$,middleware:H});const{buildQuerySelector:G,buildMutationSelector:Y,selectInvalidatedBy:Q,selectCachedArgsForQuery:Z}=function({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const r=e=>D,i=e=>P;return{buildQuerySelector:function(t,i){return s=>{if(s===A)return n(r,o);const l=e({queryArgs:s,endpointDefinition:i,endpointName:t});return n((e=>a(e)?.queries?.[l]??D),o)}},buildMutationSelector:function(){return e=>{let t;return t="object"===typeof e?C(e)??A:e,n(t===A?i:e=>a(e)?.mutations?.[t]??P,o)}},selectInvalidatedBy:function(e,n){const r=e[t],i=new Set;for(const t of n.filter(f).map(w)){const e=r.provided[t.type];if(!e)continue;let n=(void 0!==t.id?e[t.id]:d(Object.values(e)))??[];for(const t of n)i.add(t)}return d(Array.from(i.values()).map((e=>{const t=r.queries[e];return t?[{queryCacheKey:e,endpointName:t.endpointName,originalArgs:t.originalArgs}]:[]})))},selectCachedArgsForQuery:function(e,n){return Object.values(e[t].queries).filter((e=>e?.endpointName===n&&"uninitialized"!==e.status)).map((e=>e.originalArgs))}};function o(e){return{...e,...(t=e.status,{status:t,isUninitialized:"uninitialized"===t,isLoading:"pending"===t,isSuccess:"fulfilled"===t,isError:"rejected"===t})};var t}function a(e){return e[t]}}({serializeQueryArgs:s,reducerPath:a,createSelector:e});L(t.util,{selectInvalidatedBy:Q,selectCachedArgsForQuery:Z});const{buildInitiateQuery:J,buildInitiateMutation:X,getRunningMutationThunk:ee,getRunningMutationsThunk:te,getRunningQueriesThunk:ne,getRunningQueryThunk:re}=function({serializeQueryArgs:e,queryThunk:t,mutationThunk:n,api:r,context:i}){const o=new Map,a=new Map,{unsubscribeQueryResult:s,removeMutationResult:l,updateSubscriptionOptions:c}=r.internalActions;return{buildInitiateQuery:function(n,i){const a=(l,{subscribe:f=!0,forceRefetch:p,subscriptionOptions:h,[x]:m,...g}={})=>(v,y)=>{const b=e({queryArgs:l,endpointDefinition:i,endpointName:n}),w=t({...g,type:"query",subscribe:f,forceRefetch:p,subscriptionOptions:h,endpointName:n,originalArgs:l,queryCacheKey:b,[x]:m}),_=r.endpoints[n].select(l),E=v(w),S=_(y());d(v);const{requestId:k,abort:C}=E,O=S.requestId!==k,N=o.get(v)?.[b],T=()=>_(y()),A=Object.assign(m?E.then(T):O&&!N?Promise.resolve(S):Promise.all([N,E]).then(T),{arg:l,requestId:k,subscriptionOptions:h,queryCacheKey:b,abort:C,async unwrap(){const e=await A;if(e.isError)throw e.error;return e.data},refetch:()=>v(a(l,{subscribe:!1,forceRefetch:!0})),unsubscribe(){f&&v(s({queryCacheKey:b,requestId:k}))},updateSubscriptionOptions(e){A.subscriptionOptions=e,v(c({endpointName:n,requestId:k,queryCacheKey:b,options:e}))}});if(!N&&!O&&!m){const e=(D=v,P={},(I=o).has(D)?I.get(D):I.set(D,P).get(D));e[b]=A,A.then((()=>{delete e[b],u(e)||o.delete(v)}))}var I,D,P;return A};return a},buildInitiateMutation:function(e){return(t,{track:r=!0,fixedCacheKey:i}={})=>(o,s)=>{const c=n({type:"mutation",endpointName:e,originalArgs:t,track:r,fixedCacheKey:i}),f=o(c);d(o);const{requestId:p,abort:h,unwrap:m}=f,g=(v=e=>({error:e}),f.unwrap().then((e=>({data:e}))).catch(v));var v;const y=Object.assign(g,{arg:f.arg,requestId:p,abort:h,unwrap:m,reset:()=>{o(l({requestId:p,fixedCacheKey:i}))}}),b=a.get(o)||{};return a.set(o,b),b[p]=y,y.then((()=>{delete b[p],u(b)||a.delete(o)})),i&&(b[i]=y,y.then((()=>{b[i]===y&&(delete b[i],u(b)||a.delete(o))}))),y}},getRunningQueryThunk:function(t,n){return r=>{const a=i.endpointDefinitions[t],s=e({queryArgs:n,endpointDefinition:a,endpointName:t});return o.get(r)?.[s]}},getRunningMutationThunk:function(e,t){return e=>a.get(e)?.[t]},getRunningQueriesThunk:function(){return e=>Object.values(o.get(e)||{}).filter(f)},getRunningMutationsThunk:function(){return e=>Object.values(a.get(e)||{}).filter(f)}};function d(e){}}({queryThunk:R,mutationThunk:j,api:t,serializeQueryArgs:s,context:N});return L(t.util,{getRunningMutationThunk:ee,getRunningMutationsThunk:te,getRunningQueryThunk:re,getRunningQueriesThunk:ne}),{name:K,injectEndpoint(e,n){const r=t;r.endpoints[e]??={},y(n)?L(r.endpoints[e],{name:e,select:G(e,n),initiate:J(e,n)},U(R,e)):"mutation"===n.type&&L(r.endpoints[e],{name:e,select:Y(),initiate:X(e)},U(j,e))}}}});G()},97091:(e,t,n)=>{"use strict";n.d(t,{cN:()=>m,U1:()=>b,VP:()=>u,zD:()=>M,Z0:()=>$,gk:()=>V,f$:()=>E,i0:()=>_,$S:()=>A,sf:()=>T,mm:()=>C,TK:()=>O,WA:()=>N,Ak:()=>I,aA:()=>g});var r=n(96906);function i(e){return({dispatch:t,getState:n})=>r=>i=>"function"===typeof i?i(t,n,e):r(i)}var o=i(),a=i,s=n(90754),l="undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"===typeof arguments[0]?r.Zz:r.Zz.apply(null,arguments)},c=("undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__,e=>e&&"function"===typeof e.match);function u(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw new Error(V(0));return{type:e,payload:r.payload,..."meta"in r&&{meta:r.meta},..."error"in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>(0,r.ve)(t)&&t.type===e,n}var d=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function f(e){return(0,s.a6)(e)?(0,s.jM)(e,(()=>{})):e}function p(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}var h=()=>function(e){const{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:i=!0}=e??{};let s=new d;return t&&("boolean"===typeof t?s.push(o):s.push(a(t.extraArgument))),s},m="RTK_autoBatch",g=()=>e=>({payload:e,meta:{[m]:!0}}),v=e=>t=>{setTimeout(t,e)},y=e=>function(t){const{autoBatch:n=!0}=t??{};let r=new d(e);return n&&r.push(((e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,o=!1,a=!1;const s=new Set,l="tick"===e.type?queueMicrotask:"raf"===e.type?"undefined"!==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:v(10):"callback"===e.type?e.queueNotification:v(e.timeout),c=()=>{a=!1,o&&(o=!1,s.forEach((e=>e())))};return Object.assign({},r,{subscribe(e){const t=r.subscribe((()=>i&&e()));return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){try{return i=!e?.meta?.[m],o=!i,o&&(a||(a=!0,l(c))),r.dispatch(e)}finally{i=!0}}})})("object"===typeof n?n:void 0)),r};function b(e){const t=h(),{reducer:n,middleware:i,devTools:o=!0,preloadedState:a,enhancers:s}=e||{};let c,u;if("function"===typeof n)c=n;else{if(!(0,r.Qd)(n))throw new Error(V(1));c=(0,r.HY)(n)}u="function"===typeof i?i(t):t();let d=r.Zz;o&&(d=l({trace:!1,..."object"===typeof o&&o}));const f=(0,r.Tw)(...u),p=y(f);const m=d(..."function"===typeof s?s(p):p());return(0,r.y$)(c,a,m)}function w(e){const t={},n=[];let r;const i={addCase(e,n){const r="string"===typeof e?e:e.type;if(!r)throw new Error(V(28));if(r in t)throw new Error(V(29));return t[r]=n,i},addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),i),addDefaultCase:e=>(r=e,i)};return e(i),[t,n,r]}var x=(e,t)=>c(e)?e.match(t):e(t);function _(...e){return t=>e.some((e=>x(e,t)))}function E(...e){return t=>e.every((e=>x(e,t)))}function S(e,t){if(!e||!e.meta)return!1;const n="string"===typeof e.meta.requestId,r=t.indexOf(e.meta.requestStatus)>-1;return n&&r}function k(e){return"function"===typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function C(...e){return 0===e.length?e=>S(e,["pending"]):k(e)?_(...e.map((e=>e.pending))):C()(e[0])}function O(...e){return 0===e.length?e=>S(e,["rejected"]):k(e)?_(...e.map((e=>e.rejected))):O()(e[0])}function N(...e){const t=e=>e&&e.meta&&e.meta.rejectedWithValue;return 0===e.length||k(e)?E(O(...e),t):N()(e[0])}function T(...e){return 0===e.length?e=>S(e,["fulfilled"]):k(e)?_(...e.map((e=>e.fulfilled))):T()(e[0])}function A(...e){return 0===e.length?e=>S(e,["pending","fulfilled","rejected"]):k(e)?_(...e.flatMap((e=>[e.pending,e.rejected,e.fulfilled]))):A()(e[0])}var I=(e=21)=>{let t="",n=e;for(;n--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},D=["name","message","stack","code"],P=class{constructor(e,t){this.payload=e,this.meta=t}_type},R=class{constructor(e,t){this.payload=e,this.meta=t}_type},j=e=>{if("object"===typeof e&&null!==e){const t={};for(const n of D)"string"===typeof e[n]&&(t[n]=e[n]);return t}return{message:String(e)}},M=(()=>{function e(e,t,n){const r=u(e+"/fulfilled",((e,t,n,r)=>({payload:e,meta:{...r||{},arg:n,requestId:t,requestStatus:"fulfilled"}}))),i=u(e+"/pending",((e,t,n)=>({payload:void 0,meta:{...n||{},arg:t,requestId:e,requestStatus:"pending"}}))),o=u(e+"/rejected",((e,t,r,i,o)=>({payload:i,error:(n&&n.serializeError||j)(e||"Rejected"),meta:{...o||{},arg:r,requestId:t,rejectedWithValue:!!i,requestStatus:"rejected",aborted:"AbortError"===e?.name,condition:"ConditionError"===e?.name}})));return Object.assign((function(e){return(a,s,l)=>{const c=n?.idGenerator?n.idGenerator(e):I(),u=new AbortController;let d,f;function p(e){f=e,u.abort()}const h=async function(){let h;try{let o=n?.condition?.(e,{getState:s,extra:l});if(null!==(m=o)&&"object"===typeof m&&"function"===typeof m.then&&(o=await o),!1===o||u.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const g=new Promise(((e,t)=>{d=()=>{t({name:"AbortError",message:f||"Aborted"})},u.signal.addEventListener("abort",d)}));a(i(c,e,n?.getPendingMeta?.({requestId:c,arg:e},{getState:s,extra:l}))),h=await Promise.race([g,Promise.resolve(t(e,{dispatch:a,getState:s,extra:l,requestId:c,signal:u.signal,abort:p,rejectWithValue:(e,t)=>new P(e,t),fulfillWithValue:(e,t)=>new R(e,t)})).then((t=>{if(t instanceof P)throw t;return t instanceof R?r(t.payload,c,e,t.meta):r(t,c,e)}))])}catch(g){h=g instanceof P?o(null,c,e,g.payload,g.meta):o(g,c,e)}finally{d&&u.signal.removeEventListener("abort",d)}var m;return n&&!n.dispatchConditionRejection&&o.match(h)&&h.meta.condition||a(h),h}();return Object.assign(h,{abort:p,requestId:c,arg:e,unwrap:()=>h.then(L)})}}),{pending:i,rejected:o,fulfilled:r,settled:_(o,r),typePrefix:e})}return e.withTypes=()=>e,e})();function L(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}var z=Symbol.for("rtk-slice-createasyncthunk");function F(e,t){return`${e}/${t}`}function B({creators:e}={}){const t=e?.asyncThunk?.[z];return function(e){const{name:n,reducerPath:r=n}=e;if(!n)throw new Error(V(11));const i=("function"===typeof e.reducers?e.reducers(function(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},o=Object.keys(i),a={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},l={addCase(e,t){const n="string"===typeof e?e:e.type;if(!n)throw new Error(V(12));if(n in a.sliceCaseReducersByType)throw new Error(V(13));return a.sliceCaseReducersByType[n]=t,l},addMatcher:(e,t)=>(a.sliceMatchers.push({matcher:e,reducer:t}),l),exposeAction:(e,t)=>(a.actionCreators[e]=t,l),exposeCaseReducer:(e,t)=>(a.sliceCaseReducersByName[e]=t,l)};function c(){const[t={},n=[],r]="function"===typeof e.extraReducers?w(e.extraReducers):[e.extraReducers],i={...t,...a.sliceCaseReducersByType};return function(e,t){let n,[r,i,o]=w(t);if("function"===typeof e)n=()=>f(e());else{const t=f(e);n=()=>t}function a(e=n(),t){let a=[r[t.type],...i.filter((({matcher:e})=>e(t))).map((({reducer:e})=>e))];return 0===a.filter((e=>!!e)).length&&(a=[o]),a.reduce(((e,n)=>{if(n){if((0,s.Qx)(e)){const r=n(e,t);return void 0===r?e:r}if((0,s.a6)(e))return(0,s.jM)(e,(e=>n(e,t)));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}}return e}),e)}return a.getInitialState=n,a}(e.initialState,(e=>{for(let t in i)e.addCase(t,i[t]);for(let t of a.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)}))}o.forEach((r=>{const o=i[r],a={reducerName:r,type:F(n,r),createNotation:"function"===typeof e.reducers};!function(e){return"asyncThunk"===e._reducerDefinitionType}(o)?function({type:e,reducerName:t,createNotation:n},r,i){let o,a;if("reducer"in r){if(n&&!function(e){return"reducerWithPrepare"===e._reducerDefinitionType}(r))throw new Error(V(17));o=r.reducer,a=r.prepare}else o=r;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,a?u(e,a):u(e))}(a,o,l):function({type:e,reducerName:t},n,r,i){if(!i)throw new Error(V(18));const{payloadCreator:o,fulfilled:a,pending:s,rejected:l,settled:c,options:u}=n,d=i(e,o,u);r.exposeAction(t,d),a&&r.addCase(d.fulfilled,a);s&&r.addCase(d.pending,s);l&&r.addCase(d.rejected,l);c&&r.addMatcher(d.settled,c);r.exposeCaseReducer(t,{fulfilled:a||q,pending:s||q,rejected:l||q,settled:c||q})}(a,o,l,t)}));const d=e=>e,h=new Map;let m;function g(e,t){return m||(m=c()),m(e,t)}function v(){return m||(m=c()),m.getInitialState()}function y(t,n=!1){function r(e){let r=e[t];return"undefined"===typeof r&&n&&(r=v()),r}function i(t=d){const r=p(h,n,(()=>new WeakMap));return p(r,t,(()=>{const r={};for(const[i,o]of Object.entries(e.selectors??{}))r[i]=U(o,t,v,n);return r}))}return{reducerPath:t,getSelectors:i,get selectors(){return i(r)},selectSlice:r}}const b={name:n,reducer:g,actions:a.actionCreators,caseReducers:a.sliceCaseReducersByName,getInitialState:v,...y(r),injectInto(e,{reducerPath:t,...n}={}){const i=t??r;return e.inject({reducerPath:i,reducer:g},n),{...b,...y(i,!0)}}};return b}}function U(e,t,n,r){function i(i,...o){let a=t(i);return"undefined"===typeof a&&r&&(a=n()),e(a,...o)}return i.unwrapped=e,i}var $=B();function q(){}var{assign:H}=Object;Symbol.for("rtk-state-proxy-original");function V(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}},90754:(e,t,n)=>{"use strict";n.d(t,{$i:()=>Z,Qx:()=>l,YT:()=>K,a6:()=>c,c2:()=>f,jM:()=>Y,vI:()=>Q});var r=Symbol.for("immer-nothing"),i=Symbol.for("immer-draftable"),o=Symbol.for("immer-state");function a(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var s=Object.getPrototypeOf;function l(e){return!!e&&!!e[o]}function c(e){return!!e&&(d(e)||Array.isArray(e)||!!e[i]||!!e.constructor?.[i]||y(e)||b(e))}var u=Object.prototype.constructor.toString();function d(e){if(!e||"object"!==typeof e)return!1;const t=s(e);if(null===t)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===u}function f(e){return l(e)||a(15),e[o].base_}function p(e,t){0===h(e)?Reflect.ownKeys(e).forEach((n=>{t(n,e[n],e)})):e.forEach(((n,r)=>t(r,n,e)))}function h(e){const t=e[o];return t?t.type_:Array.isArray(e)?1:y(e)?2:b(e)?3:0}function m(e,t){return 2===h(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function g(e,t){return 2===h(e)?e.get(t):e[t]}function v(e,t,n){const r=h(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function y(e){return e instanceof Map}function b(e){return e instanceof Set}function w(e){return e.copy_||e.base_}function x(e,t){if(y(e))return new Map(e);if(b(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=d(e);if(!0===t||"class_only"===t&&!n){const t=Object.getOwnPropertyDescriptors(e);delete t[o];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){const i=n[r],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(s(e),t)}{const t=s(e);if(null!==t&&n)return{...e};const r=Object.create(t);return Object.assign(r,e)}}function _(e,t=!1){return S(e)||l(e)||!c(e)||(h(e)>1&&(e.set=e.add=e.clear=e.delete=E),Object.freeze(e),t&&Object.entries(e).forEach((([e,t])=>_(t,!0)))),e}function E(){a(2)}function S(e){return Object.isFrozen(e)}var k,C={};function O(e){const t=C[e];return t||a(0),t}function N(e,t){C[e]||(C[e]=t)}function T(){return k}function A(e,t){t&&(O("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function I(e){D(e),e.drafts_.forEach(R),e.drafts_=null}function D(e){e===k&&(k=e.parent_)}function P(e){return k={drafts_:[],parent_:k,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function R(e){const t=e[o];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function j(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[o].modified_&&(I(t),a(4)),c(e)&&(e=M(t,e),t.parent_||z(t,e)),t.patches_&&O("Patches").generateReplacementPatches_(n[o].base_,e,t.patches_,t.inversePatches_)):e=M(t,n,[]),I(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==r?e:void 0}function M(e,t,n){if(S(t))return t;const r=t[o];if(!r)return p(t,((i,o)=>L(e,r,t,i,o,n))),t;if(r.scope_!==e)return t;if(!r.modified_)return z(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let i=t,o=!1;3===r.type_&&(i=new Set(t),t.clear(),o=!0),p(i,((i,a)=>L(e,r,t,i,a,n,o))),z(e,t,!1),n&&e.patches_&&O("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function L(e,t,n,r,i,o,a){if(l(i)){const a=M(e,i,o&&t&&3!==t.type_&&!m(t.assigned_,r)?o.concat(r):void 0);if(v(n,r,a),!l(a))return;e.canAutoFreeze_=!1}else a&&n.add(i);if(c(i)&&!S(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;M(e,i),t&&t.scope_.parent_||"symbol"===typeof r||!Object.prototype.propertyIsEnumerable.call(n,r)||z(e,i)}}function z(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&_(t,n)}var F={get(e,t){if(t===o)return e;const n=w(e);if(!m(n,t))return function(e,t,n){const r=$(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}(e,n,t);const r=n[t];return e.finalized_||!c(r)?r:r===U(e.base_,t)?(H(e),e.copy_[t]=V(r,e)):r},has:(e,t)=>t in w(e),ownKeys:e=>Reflect.ownKeys(w(e)),set(e,t,n){const r=$(w(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=U(w(e),t),s=r?.[o];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(((i=n)===(a=r)?0!==i||1/i===1/a:i!==i&&a!==a)&&(void 0!==n||m(e.base_,t)))return!0;H(e),q(e)}var i,a;return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==U(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,H(e),q(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=w(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty(){a(11)},getPrototypeOf:e=>s(e.base_),setPrototypeOf(){a(12)}},B={};function U(e,t){const n=e[o];return(n?w(n):e)[t]}function $(e,t){if(!(t in e))return;let n=s(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=s(n)}}function q(e){e.modified_||(e.modified_=!0,e.parent_&&q(e.parent_))}function H(e){e.copy_||(e.copy_=x(e.base_,e.scope_.immer_.useStrictShallowCopy_))}p(F,((e,t)=>{B[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),B.deleteProperty=function(e,t){return B.set.call(this,e,t,void 0)},B.set=function(e,t,n){return F.set.call(this,e[0],t,n,e[0])};function V(e,t){const n=y(e)?O("MapSet").proxyMap_(e,t):b(e)?O("MapSet").proxySet_(e,t):function(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:T(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=F;n&&(i=[r],o=B);const{revoke:a,proxy:s}=Proxy.revocable(i,o);return r.draft_=s,r.revoke_=a,s}(e,t);return(t?t.scope_:T()).drafts_.push(n),n}function W(e){if(!c(e)||S(e))return e;const t=e[o];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=x(e,t.scope_.immer_.useStrictShallowCopy_)}else n=x(e,!0);return p(n,((e,t)=>{v(n,e,W(t))})),t&&(t.finalized_=!1),n}function K(){const e="replace",t="add",n="remove";function o(e){if(!c(e))return e;if(Array.isArray(e))return e.map(o);if(y(e))return new Map(Array.from(e.entries()).map((([e,t])=>[e,o(t)])));if(b(e))return new Set(Array.from(e).map(o));const t=Object.create(s(e));for(const n in e)t[n]=o(e[n]);return m(e,i)&&(t[i]=e[i]),t}function u(e){return l(e)?o(e):e}N("Patches",{applyPatches_:function(r,i){return i.forEach((i=>{const{path:s,op:l}=i;let c=r;for(let e=0;e<s.length-1;e++){const t=h(c);let n=s[e];"string"!==typeof n&&"number"!==typeof n&&(n=""+n),0!==t&&1!==t||"__proto__"!==n&&"constructor"!==n||a(19),"function"===typeof c&&"prototype"===n&&a(19),c=g(c,n),"object"!==typeof c&&a(18,s.join("/"))}const u=h(c),d=o(i.value),f=s[s.length-1];switch(l){case e:switch(u){case 2:return c.set(f,d);case 3:a(16);default:return c[f]=d}case t:switch(u){case 1:return"-"===f?c.push(d):c.splice(f,0,d);case 2:return c.set(f,d);case 3:return c.add(d);default:return c[f]=d}case n:switch(u){case 1:return c.splice(f,1);case 2:return c.delete(f);case 3:return c.delete(i.value);default:return delete c[f]}default:a(17)}})),r},generatePatches_:function(r,i,o,a){switch(r.type_){case 0:case 2:return function(r,i,o,a){const{base_:s,copy_:l}=r;p(r.assigned_,((r,c)=>{const d=g(s,r),f=g(l,r),p=c?m(s,r)?e:t:n;if(d===f&&p===e)return;const h=i.concat(r);o.push(p===n?{op:p,path:h}:{op:p,path:h,value:f}),a.push(p===t?{op:n,path:h}:p===n?{op:t,path:h,value:u(d)}:{op:e,path:h,value:u(d)})}))}(r,i,o,a);case 1:return function(r,i,o,a){let{base_:s,assigned_:l}=r,c=r.copy_;c.length<s.length&&([s,c]=[c,s],[o,a]=[a,o]);for(let t=0;t<s.length;t++)if(l[t]&&c[t]!==s[t]){const n=i.concat([t]);o.push({op:e,path:n,value:u(c[t])}),a.push({op:e,path:n,value:u(s[t])})}for(let e=s.length;e<c.length;e++){const n=i.concat([e]);o.push({op:t,path:n,value:u(c[e])})}for(let e=c.length-1;s.length<=e;--e){const t=i.concat([e]);a.push({op:n,path:t})}}(r,i,o,a);case 3:return function(e,r,i,o){let{base_:a,copy_:s}=e,l=0;a.forEach((e=>{if(!s.has(e)){const a=r.concat([l]);i.push({op:n,path:a,value:e}),o.unshift({op:t,path:a,value:e})}l++})),l=0,s.forEach((e=>{if(!a.has(e)){const a=r.concat([l]);i.push({op:t,path:a,value:e}),o.unshift({op:n,path:a,value:e})}l++}))}(r,i,o,a)}},generateReplacementPatches_:function(t,n,i,o){i.push({op:e,path:[],value:n===r?void 0:n}),o.push({op:e,path:[],value:t})}})}var G=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{if("function"===typeof e&&"function"!==typeof t){const n=t;t=e;const r=this;return function(e=n,...i){return r.produce(e,(e=>t.call(this,e,...i)))}}let i;if("function"!==typeof t&&a(6),void 0!==n&&"function"!==typeof n&&a(7),c(e)){const r=P(this),o=V(e,void 0);let a=!0;try{i=t(o),a=!1}finally{a?I(r):D(r)}return A(r,n),j(i,r)}if(!e||"object"!==typeof e){if(i=t(e),void 0===i&&(i=e),i===r&&(i=void 0),this.autoFreeze_&&_(i,!0),n){const t=[],r=[];O("Patches").generateReplacementPatches_(e,i,t,r),n(t,r)}return i}a(1)},this.produceWithPatches=(e,t)=>{if("function"===typeof e)return(t,...n)=>this.produceWithPatches(t,(t=>e(t,...n)));let n,r;return[this.produce(e,t,((e,t)=>{n=e,r=t})),n,r]},"boolean"===typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"===typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){c(e)||a(8),l(e)&&(e=function(e){l(e)||a(10);return W(e)}(e));const t=P(this),n=V(e,void 0);return n[o].isManual_=!0,D(t),n}finishDraft(e,t){const n=e&&e[o];n&&n.isManual_||a(9);const{scope_:r}=n;return A(r,t),j(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=O("Patches").applyPatches_;return l(e)?r(e,t):this.produce(e,(e=>r(e,t)))}},Y=G.produce,Q=G.produceWithPatches.bind(G),Z=(G.setAutoFreeze.bind(G),G.setUseStrictShallowCopy.bind(G),G.applyPatches.bind(G));G.createDraft.bind(G),G.finishDraft.bind(G)},97434:(e,t,n)=>{"use strict";n.d(t,{Kq:()=>te,Ng:()=>ee,Pj:()=>oe,bN:()=>R,d4:()=>ue,vA:()=>de,wA:()=>se});var r=n(59284),i=n(88730),o=r.version.startsWith("19"),a=Symbol.for(o?"react.transitional.element":"react.element"),s=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=p,b=g;function w(e){if("object"===typeof e&&null!==e){const{$$typeof:t}=e;switch(t){case a:switch(e=e.type){case l:case u:case c:case h:case m:return e;default:switch(e=e&&e.$$typeof){case f:case p:case v:case g:case d:return e;default:return t}}case s:return t}}}function x(e,t,n,r,{areStatesEqual:i,areOwnPropsEqual:o,areStatePropsEqual:a}){let s,l,c,u,d,f=!1;function p(f,p){const h=!o(p,l),m=!i(f,s,p,l);return s=f,l=p,h&&m?(c=e(s,l),t.dependsOnOwnProps&&(u=t(r,l)),d=n(c,u,l),d):h?(e.dependsOnOwnProps&&(c=e(s,l)),t.dependsOnOwnProps&&(u=t(r,l)),d=n(c,u,l),d):m?function(){const t=e(s,l),r=!a(t,c);return c=t,r&&(d=n(c,u,l)),d}():d}return function(i,o){return f?p(i,o):(s=i,l=o,c=e(s,l),u=t(r,l),d=n(c,u,l),f=!0,d)}}function _(e){return function(t){const n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function E(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function S(e,t){return function(t,{displayName:n}){const r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=E(e);let i=r(t,n);return"function"===typeof i&&(r.mapToProps=i,r.dependsOnOwnProps=E(i),i=r(t,n)),i},r}}function k(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function C(e,t,n){return{...n,...e,...t}}function O(e){e()}var N={notify(){},get:()=>[]};function T(e,t){let n,r=N,i=0,o=!1;function a(){c.onStateChange&&c.onStateChange()}function s(){i++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){O((()=>{let t=e;for(;t;)t.callback(),t=t.next}))},get(){const t=[];let n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){r&&null!==e&&(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}())}function l(){i--,n&&0===i&&(n(),n=void 0,r.clear(),r=N)}const c={addNestedSub:function(e){s();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),l())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return o},trySubscribe:function(){o||(o=!0,s())},tryUnsubscribe:function(){o&&(o=!1,l())},getListeners:()=>r};return c}var A=(()=>!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement))(),I=(()=>"undefined"!==typeof navigator&&"ReactNative"===navigator.product)(),D=(()=>A||I?r.useLayoutEffect:r.useEffect)();function P(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function R(e,t){if(P(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!P(e[n[i]],t[n[i]]))return!1;return!0}var j={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},M={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},L={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},z={[y]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[b]:L};function F(e){return w(e)===g?L:z[e.$$typeof]||j}var B=Object.defineProperty,U=Object.getOwnPropertyNames,$=Object.getOwnPropertySymbols,q=Object.getOwnPropertyDescriptor,H=Object.getPrototypeOf,V=Object.prototype;function W(e,t){if("string"!==typeof t){if(V){const n=H(t);n&&n!==V&&W(e,n)}let r=U(t);$&&(r=r.concat($(t)));const i=F(e),o=F(t);for(let a=0;a<r.length;++a){const s=r[a];if(!M[s]&&(!o||!o[s])&&(!i||!i[s])){const r=q(t,s);try{B(e,s,r)}catch(n){}}}}return e}var K=Symbol.for("react-redux-context"),G="undefined"!==typeof globalThis?globalThis:{};function Y(){if(!r.createContext)return{};const e=G[K]??=new Map;let t=e.get(r.createContext);return t||(t=r.createContext(null),e.set(r.createContext,t)),t}var Q=Y(),Z=[null,null];function J(e,t,n,r,i,o){e.current=r,n.current=!1,i.current&&(i.current=null,o())}function X(e,t){return e===t}var ee=function(e,t,n,{pure:i,areStatesEqual:o=X,areOwnPropsEqual:a=R,areStatePropsEqual:s=R,areMergedPropsEqual:l=R,forwardRef:c=!1,context:u=Q}={}){const d=u,f=function(e){return e?"function"===typeof e?S(e):k(e,"mapStateToProps"):_((()=>({})))}(e),p=function(e){return e&&"object"===typeof e?_((t=>function(e,t){const n={};for(const r in e){const i=e[r];"function"===typeof i&&(n[r]=(...e)=>t(i(...e)))}return n}(e,t))):e?"function"===typeof e?S(e):k(e,"mapDispatchToProps"):_((e=>({dispatch:e})))}(t),h=function(e){return e?"function"===typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let i,o=!1;return function(t,n,a){const s=e(t,n,a);return o?r(s,i)||(i=s):(o=!0,i=s),i}}}(e):k(e,"mergeProps"):()=>C}(n),m=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",n=`Connect(${t})`,i={shouldHandleStateChanges:m,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:f,initMapDispatchToProps:p,initMergeProps:h,areStatesEqual:o,areStatePropsEqual:s,areOwnPropsEqual:a,areMergedPropsEqual:l};function u(t){const[n,o,a]=r.useMemo((()=>{const{reactReduxForwardedRef:e,...n}=t;return[t.context,e,n]}),[t]),s=r.useMemo((()=>d),[n,d]),l=r.useContext(s),c=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),u=Boolean(l)&&Boolean(l.store);const f=c?t.store:l.store,p=u?l.getServerState:f.getState,h=r.useMemo((()=>function(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...i}){return x(t(e,i),n(e,i),r(e,i),e,i)}(f.dispatch,i)),[f]),[g,v]=r.useMemo((()=>{if(!m)return Z;const e=T(f,c?void 0:l.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[f,c,l]),y=r.useMemo((()=>c?l:{...l,subscription:g}),[c,l,g]),b=r.useRef(void 0),w=r.useRef(a),_=r.useRef(void 0),E=r.useRef(!1),S=r.useRef(!1),k=r.useRef(void 0);D((()=>(S.current=!0,()=>{S.current=!1})),[]);const C=r.useMemo((()=>()=>_.current&&a===w.current?_.current:h(f.getState(),a)),[f,a]),O=r.useMemo((()=>e=>g?function(e,t,n,r,i,o,a,s,l,c,u){if(!e)return()=>{};let d=!1,f=null;const p=()=>{if(d||!s.current)return;const e=t.getState();let n,p;try{n=r(e,i.current)}catch(h){p=h,f=h}p||(f=null),n===o.current?a.current||c():(o.current=n,l.current=n,a.current=!0,u())};return n.onStateChange=p,n.trySubscribe(),p(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}(m,f,g,h,w,b,E,S,_,v,e):()=>{}),[g]);var N,A,I;let P;N=J,A=[w,b,E,a,_,v],D((()=>N(...A)),I);try{P=r.useSyncExternalStore(O,C,p?()=>h(p(),a):C)}catch(j){throw k.current&&(j.message+=`\nThe error may be correlated with this previous error:\n${k.current.stack}\n\n`),j}D((()=>{k.current=void 0,_.current=void 0,b.current=P}));const R=r.useMemo((()=>r.createElement(e,{...P,ref:o})),[o,e,P]);return r.useMemo((()=>m?r.createElement(s.Provider,{value:y},R):R),[s,R,y])}const g=r.memo(u);if(g.WrappedComponent=e,g.displayName=u.displayName=n,c){const t=r.forwardRef((function(e,t){return r.createElement(g,{...e,reactReduxForwardedRef:t})}));return t.displayName=n,t.WrappedComponent=e,W(t,e)}return W(g,e)}};var te=function(e){const{children:t,context:n,serverState:i,store:o}=e,a=r.useMemo((()=>{const e=T(o);return{store:o,subscription:e,getServerState:i?()=>i:void 0}}),[o,i]),s=r.useMemo((()=>o.getState()),[o]);D((()=>{const{subscription:e}=a;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),s!==o.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}}),[a,s]);const l=n||Q;return r.createElement(l.Provider,{value:a},t)};function ne(e=Q){return function(){return r.useContext(e)}}var re=ne();function ie(e=Q){const t=e===Q?re:ne(e),n=()=>{const{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var oe=ie();function ae(e=Q){const t=e===Q?oe:ie(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var se=ae(),le=(e,t)=>e===t;function ce(e=Q){const t=e===Q?re:ne(e),n=(e,n={})=>{const{equalityFn:o=le}="function"===typeof n?{equalityFn:n}:n;const a=t(),{store:s,subscription:l,getServerState:c}=a,u=(r.useRef(!0),r.useCallback({[e.name]:t=>e(t)}[e.name],[e])),d=(0,i.useSyncExternalStoreWithSelector)(l.addNestedSub,s.getState,c||s.getState,u,o);return r.useDebugValue(d),d};return Object.assign(n,{withTypes:()=>n}),n}var ue=ce(),de=O},96906:(e,t,n)=>{"use strict";function r(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}n.d(t,{HY:()=>c,Qd:()=>s,Tw:()=>p,Zz:()=>f,ve:()=>h,y$:()=>l,zH:()=>d});var i=(()=>"function"===typeof Symbol&&Symbol.observable||"@@observable")(),o=()=>Math.random().toString(36).substring(7).split("").join("."),a={INIT:`@@redux/INIT${o()}`,REPLACE:`@@redux/REPLACE${o()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${o()}`};function s(e){if("object"!==typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function l(e,t,n){if("function"!==typeof e)throw new Error(r(2));if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(r(0));if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(r(1));return n(l)(e,t)}let o=e,c=t,u=new Map,d=u,f=0,p=!1;function h(){d===u&&(d=new Map,u.forEach(((e,t)=>{d.set(t,e)})))}function m(){if(p)throw new Error(r(3));return c}function g(e){if("function"!==typeof e)throw new Error(r(4));if(p)throw new Error(r(5));let t=!0;h();const n=f++;return d.set(n,e),function(){if(t){if(p)throw new Error(r(6));t=!1,h(),d.delete(n),u=null}}}function v(e){if(!s(e))throw new Error(r(7));if("undefined"===typeof e.type)throw new Error(r(8));if("string"!==typeof e.type)throw new Error(r(17));if(p)throw new Error(r(9));try{p=!0,c=o(c,e)}finally{p=!1}return(u=d).forEach((e=>{e()})),e}v({type:a.INIT});return{dispatch:v,subscribe:g,getState:m,replaceReducer:function(e){if("function"!==typeof e)throw new Error(r(10));o=e,v({type:a.REPLACE})},[i]:function(){const e=g;return{subscribe(t){if("object"!==typeof t||null===t)throw new Error(r(11));function n(){const e=t;e.next&&e.next(m())}n();return{unsubscribe:e(n)}},[i](){return this}}}}}function c(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const i=t[r];0,"function"===typeof e[i]&&(n[i]=e[i])}const i=Object.keys(n);let o;try{!function(e){Object.keys(e).forEach((t=>{const n=e[t];if("undefined"===typeof n(void 0,{type:a.INIT}))throw new Error(r(12));if("undefined"===typeof n(void 0,{type:a.PROBE_UNKNOWN_ACTION()}))throw new Error(r(13))}))}(n)}catch(s){o=s}return function(e={},t){if(o)throw o;let a=!1;const s={};for(let o=0;o<i.length;o++){const l=i[o],c=n[l],u=e[l],d=c(u,t);if("undefined"===typeof d){t&&t.type;throw new Error(r(14))}s[l]=d,a=a||d!==u}return a=a||i.length!==Object.keys(e).length,a?s:e}}function u(e,t){return function(...n){return t(e.apply(this,n))}}function d(e,t){if("function"===typeof e)return u(e,t);if("object"!==typeof e||null===e)throw new Error(r(16));const n={};for(const r in e){const i=e[r];"function"===typeof i&&(n[r]=u(i,t))}return n}function f(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}function p(...e){return t=>(n,i)=>{const o=t(n,i);let a=()=>{throw new Error(r(15))};const s={getState:o.getState,dispatch:(e,...t)=>a(e,...t)},l=e.map((e=>e(s)));return a=f(...l)(o.dispatch),{...o,dispatch:a}}}function h(e){return s(e)&&"type"in e&&"string"===typeof e.type}},53850:(e,t,n)=>{"use strict";n.d(t,{Mz:()=>g,X4:()=>h,i5:()=>c});var r=Symbol("NOT_FOUND");function i(e,t="expected a function, instead received "+typeof e){if("function"!==typeof e)throw new TypeError(t)}var o=e=>Array.isArray(e)?e:[e];function a(e){const t=Array.isArray(e[0])?e[0]:e;return function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every((e=>"function"===typeof e))){const n=e.map((e=>"function"===typeof e?`function ${e.name||"unnamed"}()`:typeof e)).join(", ");throw new TypeError(`${t}[${n}]`)}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}Symbol(),Object.getPrototypeOf({});var s=(e,t)=>e===t;function l(e){return function(t,n){if(null===t||null===n||t.length!==n.length)return!1;const{length:r}=t;for(let i=0;i<r;i++)if(!e(t[i],n[i]))return!1;return!0}}function c(e,t){const n="object"===typeof t?t:{equalityCheck:t},{equalityCheck:i=s,maxSize:o=1,resultEqualityCheck:a}=n,c=l(i);let u=0;const d=o<=1?function(e){let t;return{get:n=>t&&e(t.key,n)?t.value:r,put(e,n){t={key:e,value:n}},getEntries:()=>t?[t]:[],clear(){t=void 0}}}(c):function(e,t){let n=[];function i(e){const i=n.findIndex((n=>t(e,n.key)));if(i>-1){const e=n[i];return i>0&&(n.splice(i,1),n.unshift(e)),e.value}return r}return{get:i,put:function(t,o){i(t)===r&&(n.unshift({key:t,value:o}),n.length>e&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(o,c);function f(){let t=d.get(arguments);if(t===r){if(t=e.apply(null,arguments),u++,a){const e=d.getEntries().find((e=>a(e.value,t)));e&&(t=e.value,0!==u&&u--)}d.put(arguments,t)}return t}return f.clearCache=()=>{d.clear(),f.resetResultsCount()},f.resultsCount=()=>u,f.resetResultsCount=()=>{u=0},f}var u="undefined"!==typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}},d=0,f=1;function p(){return{s:d,v:void 0,o:null,p:null}}function h(e,t={}){let n=p();const{resultEqualityCheck:r}=t;let i,o=0;function a(){let t=n;const{length:a}=arguments;for(let e=0,n=a;e<n;e++){const n=arguments[e];if("function"===typeof n||"object"===typeof n&&null!==n){let e=t.o;null===e&&(t.o=e=new WeakMap);const r=e.get(n);void 0===r?(t=p(),e.set(n,t)):t=r}else{let e=t.p;null===e&&(t.p=e=new Map);const r=e.get(n);void 0===r?(t=p(),e.set(n,t)):t=r}}const s=t;let l;if(t.s===f)l=t.v;else if(l=e.apply(null,arguments),o++,r){const e=i?.deref?.()??i;null!=e&&r(e,l)&&(l=e,0!==o&&o--);i="object"===typeof l&&null!==l||"function"===typeof l?new u(l):l}return s.s=f,s.v=l,l}return a.clearCache=()=>{n=p(),a.resetResultsCount()},a.resultsCount=()=>o,a.resetResultsCount=()=>{o=0},a}function m(e,...t){const n="function"===typeof e?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t,r=0,s=0,l={},c=e.pop();"object"===typeof c&&(l=c,c=e.pop()),i(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const u={...n,...l},{memoize:d,memoizeOptions:f=[],argsMemoize:p=h,argsMemoizeOptions:m=[],devModeChecks:g={}}=u,v=o(f),y=o(m),b=a(e),w=d((function(){return r++,c.apply(null,arguments)}),...v);const x=p((function(){s++;const e=function(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}(b,arguments);return t=w.apply(null,e),t}),...y);return Object.assign(x,{resultFunc:c,memoizedResultFunc:w,dependencies:b,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>t,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:d,argsMemoize:p})};return Object.assign(r,{withTypes:()=>r}),r}var g=m(h),v=Object.assign(((e,t=g)=>{!function(e,t="expected an object, instead received "+typeof e){if("object"!==typeof e)throw new TypeError(t)}(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const n=Object.keys(e);return t(n.map((t=>e[t])),((...e)=>e.reduce(((e,t,r)=>(e[n[r]]=t,e)),{})))}),{withTypes:()=>v})},68643:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=!0,i="Invariant failed";function o(e,t){if(!e){if(r)throw new Error(i);var n="function"===typeof t?t():t,o=n?"".concat(i,": ").concat(n):i;throw new Error(o)}}},27145:(e,t,n)=>{"use strict";n.d(t,{Tt:()=>r});function r(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}Object.create;Object.create;"function"===typeof SuppressedError&&SuppressedError},370:(e,t,n)=>{"use strict";var r,i;n.d(t,{z:()=>kt}),function(e){e.assertEqual=e=>e,e.assertIs=function(e){},e.assertNever=function(e){throw new Error},e.arrayToEnum=e=>{const t={};for(const n of e)t[n]=n;return t},e.getValidEnumValues=t=>{const n=e.objectKeys(t).filter((e=>"number"!==typeof t[t[e]])),r={};for(const e of n)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map((function(e){return t[e]})),e.objectKeys="function"===typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(const n of e)if(t(n))return n},e.isInteger="function"===typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"===typeof e&&isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map((e=>"string"===typeof e?`'${e}'`:e)).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"===typeof t?t.toString():t}(r||(r={})),function(e){e.mergeShapes=(e,t)=>({...e,...t})}(i||(i={}));const o=r.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),a=e=>{switch(typeof e){case"undefined":return o.undefined;case"string":return o.string;case"number":return isNaN(e)?o.nan:o.number;case"boolean":return o.boolean;case"function":return o.function;case"bigint":return o.bigint;case"symbol":return o.symbol;case"object":return Array.isArray(e)?o.array:null===e?o.null:e.then&&"function"===typeof e.then&&e.catch&&"function"===typeof e.catch?o.promise:"undefined"!==typeof Map&&e instanceof Map?o.map:"undefined"!==typeof Set&&e instanceof Set?o.set:"undefined"!==typeof Date&&e instanceof Date?o.date:o.object;default:return o.unknown}},s=r.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class l extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){const t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(const i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(r);else if("invalid_return_type"===i.code)r(i.returnTypeError);else if("invalid_arguments"===i.code)r(i.argumentsError);else if(0===i.path.length)n._errors.push(t(i));else{let e=n,r=0;for(;r<i.path.length;){const n=i.path[r];r===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(this),n}static assert(e){if(!(e instanceof l))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,r.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){const t={},n=[];for(const r of this.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}l.create=e=>new l(e);const c=(e,t)=>{let n;switch(e.code){case s.invalid_type:n=e.received===o.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case s.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,r.jsonStringifyReplacer)}`;break;case s.unrecognized_keys:n=`Unrecognized key(s) in object: ${r.joinValues(e.keys,", ")}`;break;case s.invalid_union:n="Invalid input";break;case s.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${r.joinValues(e.options)}`;break;case s.invalid_enum_value:n=`Invalid enum value. Expected ${r.joinValues(e.options)}, received '${e.received}'`;break;case s.invalid_arguments:n="Invalid function arguments";break;case s.invalid_return_type:n="Invalid function return type";break;case s.invalid_date:n="Invalid date";break;case s.invalid_string:"object"===typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"===typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:r.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case s.too_small:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case s.too_big:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case s.custom:n="Invalid input";break;case s.invalid_intersection_types:n="Intersection results could not be merged";break;case s.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case s.not_finite:n="Number must be finite";break;default:n=t.defaultError,r.assertNever(e)}return{message:n}};let u=c;function d(){return u}const f=e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,o=[...n,...i.path||[]],a={...i,path:o};if(void 0!==i.message)return{...i,path:o,message:i.message};let s="";const l=r.filter((e=>!!e)).slice().reverse();for(const c of l)s=c(a,{data:t,defaultError:s}).message;return{...i,path:o,message:s}};function p(e,t){const n=d(),r=f({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===c?void 0:c].filter((e=>!!e))});e.common.issues.push(r)}class h{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){const n=[];for(const r of t){if("aborted"===r.status)return m;"dirty"===r.status&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){const n=[];for(const r of t){const e=await r.key,t=await r.value;n.push({key:e,value:t})}return h.mergeObjectSync(e,n)}static mergeObjectSync(e,t){const n={};for(const r of t){const{key:t,value:i}=r;if("aborted"===t.status)return m;if("aborted"===i.status)return m;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),"__proto__"===t.value||"undefined"===typeof i.value&&!r.alwaysSet||(n[t.value]=i.value)}return{status:e.value,value:n}}}const m=Object.freeze({status:"aborted"}),g=e=>({status:"dirty",value:e}),v=e=>({status:"valid",value:e}),y=e=>"aborted"===e.status,b=e=>"dirty"===e.status,w=e=>"valid"===e.status,x=e=>"undefined"!==typeof Promise&&e instanceof Promise;function _(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function E(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}var S,k,C;"function"===typeof SuppressedError&&SuppressedError,function(e){e.errToObj=e=>"string"===typeof e?{message:e}:e||{},e.toString=e=>"string"===typeof e?e:null===e||void 0===e?void 0:e.message}(S||(S={}));class O{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const N=(e,t)=>{if(w(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new l(e.common.issues);return this._error=t,this._error}}};function T(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');if(t)return{errorMap:t,description:i};return{errorMap:(t,i)=>{var o,a;const{message:s}=e;return"invalid_enum_value"===t.code?{message:null!==s&&void 0!==s?s:i.defaultError}:"undefined"===typeof i.data?{message:null!==(o=null!==s&&void 0!==s?s:r)&&void 0!==o?o:i.defaultError}:"invalid_type"!==t.code?{message:i.defaultError}:{message:null!==(a=null!==s&&void 0!==s?s:n)&&void 0!==a?a:i.defaultError}},description:i}}class A{get description(){return this._def.description}_getType(e){return a(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:a(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new h,ctx:{common:e.parent.common,data:e.data,parsedType:a(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(x(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;const r={common:{issues:[],async:null!==(n=null===t||void 0===t?void 0:t.async)&&void 0!==n&&n,contextualErrorMap:null===t||void 0===t?void 0:t.errorMap},path:(null===t||void 0===t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:a(e)},i=this._parseSync({data:e,path:r.path,parent:r});return N(r,i)}"~validate"(e){var t,n;const r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:a(e)};if(!this["~standard"].async)try{const t=this._parseSync({data:e,path:[],parent:r});return w(t)?{value:t.value}:{issues:r.common.issues}}catch(i){(null===(n=null===(t=null===i||void 0===i?void 0:i.message)||void 0===t?void 0:t.toLowerCase())||void 0===n?void 0:n.includes("encountered"))&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:r}).then((e=>w(e)?{value:e.value}:{issues:r.common.issues}))}async parseAsync(e,t){const n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){const n={common:{issues:[],contextualErrorMap:null===t||void 0===t?void 0:t.errorMap,async:!0},path:(null===t||void 0===t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:a(e)},r=this._parse({data:e,path:n.path,parent:n}),i=await(x(r)?r:Promise.resolve(r));return N(n,i)}refine(e,t){const n=e=>"string"===typeof t||"undefined"===typeof t?{message:t}:"function"===typeof t?t(e):t;return this._refinement(((t,r)=>{const i=e(t),o=()=>r.addIssue({code:s.custom,...n(t)});return"undefined"!==typeof Promise&&i instanceof Promise?i.then((e=>!!e||(o(),!1))):!!i||(o(),!1)}))}refinement(e,t){return this._refinement(((n,r)=>!!e(n)||(r.addIssue("function"===typeof t?t(n,r):t),!1)))}_refinement(e){return new Ae({schema:this,typeName:$e.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return Ie.create(this,this._def)}nullable(){return De.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return de.create(this)}promise(){return Te.create(this,this._def)}or(e){return he.create([this,e],this._def)}and(e){return ye.create(this,e,this._def)}transform(e){return new Ae({...T(this._def),schema:this,typeName:$e.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"===typeof e?e:()=>e;return new Pe({...T(this._def),innerType:this,defaultValue:t,typeName:$e.ZodDefault})}brand(){return new Le({typeName:$e.ZodBranded,type:this,...T(this._def)})}catch(e){const t="function"===typeof e?e:()=>e;return new Re({...T(this._def),innerType:this,catchValue:t,typeName:$e.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return ze.create(this,e)}readonly(){return Fe.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const I=/^c[^\s-]{8,}$/i,D=/^[0-9a-z]+$/,P=/^[0-9A-HJKMNP-TV-Z]{26}$/i,R=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,j=/^[a-z0-9_-]{21}$/i,M=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,L=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,z=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;let F;const B=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,U=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,$=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,q=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,H=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,V=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,W="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",K=new RegExp(`^${W}$`);function G(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`),t}function Y(e){let t=`${W}T${G(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function Q(e,t){if(!M.test(e))return!1;try{const[n]=e.split("."),r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),i=JSON.parse(atob(r));return"object"===typeof i&&null!==i&&(!(!i.typ||!i.alg)&&(!t||i.alg===t))}catch(n){return!1}}function Z(e,t){return!("v4"!==t&&t||!U.test(e))||!("v6"!==t&&t||!q.test(e))}class J extends A{_parse(e){this._def.coerce&&(e.data=String(e.data));if(this._getType(e)!==o.string){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:o.string,received:t.parsedType}),m}const t=new h;let n;for(const o of this._def.checks)if("min"===o.kind)e.data.length<o.value&&(n=this._getOrReturnCtx(e,n),p(n,{code:s.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),t.dirty());else if("max"===o.kind)e.data.length>o.value&&(n=this._getOrReturnCtx(e,n),p(n,{code:s.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),t.dirty());else if("length"===o.kind){const r=e.data.length>o.value,i=e.data.length<o.value;(r||i)&&(n=this._getOrReturnCtx(e,n),r?p(n,{code:s.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):i&&p(n,{code:s.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),t.dirty())}else if("email"===o.kind)z.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"email",code:s.invalid_string,message:o.message}),t.dirty());else if("emoji"===o.kind)F||(F=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),F.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"emoji",code:s.invalid_string,message:o.message}),t.dirty());else if("uuid"===o.kind)R.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"uuid",code:s.invalid_string,message:o.message}),t.dirty());else if("nanoid"===o.kind)j.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"nanoid",code:s.invalid_string,message:o.message}),t.dirty());else if("cuid"===o.kind)I.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"cuid",code:s.invalid_string,message:o.message}),t.dirty());else if("cuid2"===o.kind)D.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"cuid2",code:s.invalid_string,message:o.message}),t.dirty());else if("ulid"===o.kind)P.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"ulid",code:s.invalid_string,message:o.message}),t.dirty());else if("url"===o.kind)try{new URL(e.data)}catch(l){n=this._getOrReturnCtx(e,n),p(n,{validation:"url",code:s.invalid_string,message:o.message}),t.dirty()}else if("regex"===o.kind){o.regex.lastIndex=0;o.regex.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"regex",code:s.invalid_string,message:o.message}),t.dirty())}else if("trim"===o.kind)e.data=e.data.trim();else if("includes"===o.kind)e.data.includes(o.value,o.position)||(n=this._getOrReturnCtx(e,n),p(n,{code:s.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),t.dirty());else if("toLowerCase"===o.kind)e.data=e.data.toLowerCase();else if("toUpperCase"===o.kind)e.data=e.data.toUpperCase();else if("startsWith"===o.kind)e.data.startsWith(o.value)||(n=this._getOrReturnCtx(e,n),p(n,{code:s.invalid_string,validation:{startsWith:o.value},message:o.message}),t.dirty());else if("endsWith"===o.kind)e.data.endsWith(o.value)||(n=this._getOrReturnCtx(e,n),p(n,{code:s.invalid_string,validation:{endsWith:o.value},message:o.message}),t.dirty());else if("datetime"===o.kind){Y(o).test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{code:s.invalid_string,validation:"datetime",message:o.message}),t.dirty())}else if("date"===o.kind){K.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{code:s.invalid_string,validation:"date",message:o.message}),t.dirty())}else if("time"===o.kind){new RegExp(`^${G(o)}$`).test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{code:s.invalid_string,validation:"time",message:o.message}),t.dirty())}else"duration"===o.kind?L.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"duration",code:s.invalid_string,message:o.message}),t.dirty()):"ip"===o.kind?(i=e.data,("v4"!==(a=o.version)&&a||!B.test(i))&&("v6"!==a&&a||!$.test(i))&&(n=this._getOrReturnCtx(e,n),p(n,{validation:"ip",code:s.invalid_string,message:o.message}),t.dirty())):"jwt"===o.kind?Q(e.data,o.alg)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"jwt",code:s.invalid_string,message:o.message}),t.dirty()):"cidr"===o.kind?Z(e.data,o.version)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"cidr",code:s.invalid_string,message:o.message}),t.dirty()):"base64"===o.kind?H.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"base64",code:s.invalid_string,message:o.message}),t.dirty()):"base64url"===o.kind?V.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"base64url",code:s.invalid_string,message:o.message}),t.dirty()):r.assertNever(o);var i,a;return{status:t.value,value:e.data}}_regex(e,t,n){return this.refinement((t=>e.test(t)),{validation:t,code:s.invalid_string,...S.errToObj(n)})}_addCheck(e){return new J({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...S.errToObj(e)})}url(e){return this._addCheck({kind:"url",...S.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...S.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...S.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...S.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...S.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...S.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...S.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...S.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...S.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...S.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...S.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...S.errToObj(e)})}datetime(e){var t,n;return"string"===typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:"undefined"===typeof(null===e||void 0===e?void 0:e.precision)?null:null===e||void 0===e?void 0:e.precision,offset:null!==(t=null===e||void 0===e?void 0:e.offset)&&void 0!==t&&t,local:null!==(n=null===e||void 0===e?void 0:e.local)&&void 0!==n&&n,...S.errToObj(null===e||void 0===e?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"===typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:"undefined"===typeof(null===e||void 0===e?void 0:e.precision)?null:null===e||void 0===e?void 0:e.precision,...S.errToObj(null===e||void 0===e?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...S.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...S.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null===t||void 0===t?void 0:t.position,...S.errToObj(null===t||void 0===t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...S.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...S.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...S.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...S.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...S.errToObj(t)})}nonempty(e){return this.min(1,S.errToObj(e))}trim(){return new J({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new J({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new J({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((e=>"datetime"===e.kind))}get isDate(){return!!this._def.checks.find((e=>"date"===e.kind))}get isTime(){return!!this._def.checks.find((e=>"time"===e.kind))}get isDuration(){return!!this._def.checks.find((e=>"duration"===e.kind))}get isEmail(){return!!this._def.checks.find((e=>"email"===e.kind))}get isURL(){return!!this._def.checks.find((e=>"url"===e.kind))}get isEmoji(){return!!this._def.checks.find((e=>"emoji"===e.kind))}get isUUID(){return!!this._def.checks.find((e=>"uuid"===e.kind))}get isNANOID(){return!!this._def.checks.find((e=>"nanoid"===e.kind))}get isCUID(){return!!this._def.checks.find((e=>"cuid"===e.kind))}get isCUID2(){return!!this._def.checks.find((e=>"cuid2"===e.kind))}get isULID(){return!!this._def.checks.find((e=>"ulid"===e.kind))}get isIP(){return!!this._def.checks.find((e=>"ip"===e.kind))}get isCIDR(){return!!this._def.checks.find((e=>"cidr"===e.kind))}get isBase64(){return!!this._def.checks.find((e=>"base64"===e.kind))}get isBase64url(){return!!this._def.checks.find((e=>"base64url"===e.kind))}get minLength(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function X(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r;return parseInt(e.toFixed(i).replace(".",""))%parseInt(t.toFixed(i).replace(".",""))/Math.pow(10,i)}J.create=e=>{var t;return new J({checks:[],typeName:$e.ZodString,coerce:null!==(t=null===e||void 0===e?void 0:e.coerce)&&void 0!==t&&t,...T(e)})};class ee extends A{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){this._def.coerce&&(e.data=Number(e.data));if(this._getType(e)!==o.number){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:o.number,received:t.parsedType}),m}let t;const n=new h;for(const i of this._def.checks)if("int"===i.kind)r.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),p(t,{code:s.invalid_type,expected:"integer",received:"float",message:i.message}),n.dirty());else if("min"===i.kind){(i.inclusive?e.data<i.value:e.data<=i.value)&&(t=this._getOrReturnCtx(e,t),p(t,{code:s.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),n.dirty())}else if("max"===i.kind){(i.inclusive?e.data>i.value:e.data>=i.value)&&(t=this._getOrReturnCtx(e,t),p(t,{code:s.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),n.dirty())}else"multipleOf"===i.kind?0!==X(e.data,i.value)&&(t=this._getOrReturnCtx(e,t),p(t,{code:s.not_multiple_of,multipleOf:i.value,message:i.message}),n.dirty()):"finite"===i.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),p(t,{code:s.not_finite,message:i.message}),n.dirty()):r.assertNever(i);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,S.toString(t))}gt(e,t){return this.setLimit("min",e,!1,S.toString(t))}lte(e,t){return this.setLimit("max",e,!0,S.toString(t))}lt(e,t){return this.setLimit("max",e,!1,S.toString(t))}setLimit(e,t,n,r){return new ee({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:S.toString(r)}]})}_addCheck(e){return new ee({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:S.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:S.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:S.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:S.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:S.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:S.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:S.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:S.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:S.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find((e=>"int"===e.kind||"multipleOf"===e.kind&&r.isInteger(e.value)))}get isFinite(){let e=null,t=null;for(const n of this._def.checks){if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.value<e)&&(e=n.value)}return Number.isFinite(t)&&Number.isFinite(e)}}ee.create=e=>new ee({checks:[],typeName:$e.ZodNumber,coerce:(null===e||void 0===e?void 0:e.coerce)||!1,...T(e)});class te extends A{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch(i){return this._getInvalidInput(e)}if(this._getType(e)!==o.bigint)return this._getInvalidInput(e);let t;const n=new h;for(const o of this._def.checks)if("min"===o.kind){(o.inclusive?e.data<o.value:e.data<=o.value)&&(t=this._getOrReturnCtx(e,t),p(t,{code:s.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),n.dirty())}else if("max"===o.kind){(o.inclusive?e.data>o.value:e.data>=o.value)&&(t=this._getOrReturnCtx(e,t),p(t,{code:s.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),n.dirty())}else"multipleOf"===o.kind?e.data%o.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),p(t,{code:s.not_multiple_of,multipleOf:o.value,message:o.message}),n.dirty()):r.assertNever(o);return{status:n.value,value:e.data}}_getInvalidInput(e){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:o.bigint,received:t.parsedType}),m}gte(e,t){return this.setLimit("min",e,!0,S.toString(t))}gt(e,t){return this.setLimit("min",e,!1,S.toString(t))}lte(e,t){return this.setLimit("max",e,!0,S.toString(t))}lt(e,t){return this.setLimit("max",e,!1,S.toString(t))}setLimit(e,t,n,r){return new te({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:S.toString(r)}]})}_addCheck(e){return new te({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:S.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:S.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:S.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:S.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:S.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}te.create=e=>{var t;return new te({checks:[],typeName:$e.ZodBigInt,coerce:null!==(t=null===e||void 0===e?void 0:e.coerce)&&void 0!==t&&t,...T(e)})};class ne extends A{_parse(e){this._def.coerce&&(e.data=Boolean(e.data));if(this._getType(e)!==o.boolean){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:o.boolean,received:t.parsedType}),m}return v(e.data)}}ne.create=e=>new ne({typeName:$e.ZodBoolean,coerce:(null===e||void 0===e?void 0:e.coerce)||!1,...T(e)});class re extends A{_parse(e){this._def.coerce&&(e.data=new Date(e.data));if(this._getType(e)!==o.date){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:o.date,received:t.parsedType}),m}if(isNaN(e.data.getTime())){return p(this._getOrReturnCtx(e),{code:s.invalid_date}),m}const t=new h;let n;for(const i of this._def.checks)"min"===i.kind?e.data.getTime()<i.value&&(n=this._getOrReturnCtx(e,n),p(n,{code:s.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),t.dirty()):"max"===i.kind?e.data.getTime()>i.value&&(n=this._getOrReturnCtx(e,n),p(n,{code:s.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),t.dirty()):r.assertNever(i);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new re({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:S.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:S.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}re.create=e=>new re({checks:[],coerce:(null===e||void 0===e?void 0:e.coerce)||!1,typeName:$e.ZodDate,...T(e)});class ie extends A{_parse(e){if(this._getType(e)!==o.symbol){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:o.symbol,received:t.parsedType}),m}return v(e.data)}}ie.create=e=>new ie({typeName:$e.ZodSymbol,...T(e)});class oe extends A{_parse(e){if(this._getType(e)!==o.undefined){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:o.undefined,received:t.parsedType}),m}return v(e.data)}}oe.create=e=>new oe({typeName:$e.ZodUndefined,...T(e)});class ae extends A{_parse(e){if(this._getType(e)!==o.null){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:o.null,received:t.parsedType}),m}return v(e.data)}}ae.create=e=>new ae({typeName:$e.ZodNull,...T(e)});class se extends A{constructor(){super(...arguments),this._any=!0}_parse(e){return v(e.data)}}se.create=e=>new se({typeName:$e.ZodAny,...T(e)});class le extends A{constructor(){super(...arguments),this._unknown=!0}_parse(e){return v(e.data)}}le.create=e=>new le({typeName:$e.ZodUnknown,...T(e)});class ce extends A{_parse(e){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:o.never,received:t.parsedType}),m}}ce.create=e=>new ce({typeName:$e.ZodNever,...T(e)});class ue extends A{_parse(e){if(this._getType(e)!==o.undefined){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:o.void,received:t.parsedType}),m}return v(e.data)}}ue.create=e=>new ue({typeName:$e.ZodVoid,...T(e)});class de extends A{_parse(e){const{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==o.array)return p(t,{code:s.invalid_type,expected:o.array,received:t.parsedType}),m;if(null!==r.exactLength){const e=t.data.length>r.exactLength.value,i=t.data.length<r.exactLength.value;(e||i)&&(p(t,{code:e?s.too_big:s.too_small,minimum:i?r.exactLength.value:void 0,maximum:e?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),n.dirty())}if(null!==r.minLength&&t.data.length<r.minLength.value&&(p(t,{code:s.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),n.dirty()),null!==r.maxLength&&t.data.length>r.maxLength.value&&(p(t,{code:s.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map(((e,n)=>r.type._parseAsync(new O(t,e,t.path,n))))).then((e=>h.mergeArray(n,e)));const i=[...t.data].map(((e,n)=>r.type._parseSync(new O(t,e,t.path,n))));return h.mergeArray(n,i)}get element(){return this._def.type}min(e,t){return new de({...this._def,minLength:{value:e,message:S.toString(t)}})}max(e,t){return new de({...this._def,maxLength:{value:e,message:S.toString(t)}})}length(e,t){return new de({...this._def,exactLength:{value:e,message:S.toString(t)}})}nonempty(e){return this.min(1,e)}}function fe(e){if(e instanceof pe){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Ie.create(fe(r))}return new pe({...e._def,shape:()=>t})}return e instanceof de?new de({...e._def,type:fe(e.element)}):e instanceof Ie?Ie.create(fe(e.unwrap())):e instanceof De?De.create(fe(e.unwrap())):e instanceof be?be.create(e.items.map((e=>fe(e)))):e}de.create=(e,t)=>new de({type:e,minLength:null,maxLength:null,exactLength:null,typeName:$e.ZodArray,...T(t)});class pe extends A{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const e=this._def.shape(),t=r.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==o.object){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:o.object,received:t.parsedType}),m}const{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof ce&&"strip"===this._def.unknownKeys))for(const o in n.data)i.includes(o)||a.push(o);const l=[];for(const o of i){const e=r[o],t=n.data[o];l.push({key:{status:"valid",value:o},value:e._parse(new O(n,t,n.path,o)),alwaysSet:o in n.data})}if(this._def.catchall instanceof ce){const e=this._def.unknownKeys;if("passthrough"===e)for(const t of a)l.push({key:{status:"valid",value:t},value:{status:"valid",value:n.data[t]}});else if("strict"===e)a.length>0&&(p(n,{code:s.unrecognized_keys,keys:a}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const e=this._def.catchall;for(const t of a){const r=n.data[t];l.push({key:{status:"valid",value:t},value:e._parse(new O(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then((async()=>{const e=[];for(const t of l){const n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet})}return e})).then((e=>h.mergeObjectSync(t,e))):h.mergeObjectSync(t,l)}get shape(){return this._def.shape()}strict(e){return S.errToObj,new pe({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{var r,i,o,a;const s=null!==(o=null===(i=(r=this._def).errorMap)||void 0===i?void 0:i.call(r,t,n).message)&&void 0!==o?o:n.defaultError;return"unrecognized_keys"===t.code?{message:null!==(a=S.errToObj(e).message)&&void 0!==a?a:s}:{message:s}}}:{}})}strip(){return new pe({...this._def,unknownKeys:"strip"})}passthrough(){return new pe({...this._def,unknownKeys:"passthrough"})}extend(e){return new pe({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new pe({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:$e.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new pe({...this._def,catchall:e})}pick(e){const t={};return r.objectKeys(e).forEach((n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n])})),new pe({...this._def,shape:()=>t})}omit(e){const t={};return r.objectKeys(this.shape).forEach((n=>{e[n]||(t[n]=this.shape[n])})),new pe({...this._def,shape:()=>t})}deepPartial(){return fe(this)}partial(e){const t={};return r.objectKeys(this.shape).forEach((n=>{const r=this.shape[n];e&&!e[n]?t[n]=r:t[n]=r.optional()})),new pe({...this._def,shape:()=>t})}required(e){const t={};return r.objectKeys(this.shape).forEach((n=>{if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n];for(;e instanceof Ie;)e=e._def.innerType;t[n]=e}})),new pe({...this._def,shape:()=>t})}keyof(){return Ce(r.objectKeys(this.shape))}}pe.create=(e,t)=>new pe({shape:()=>e,unknownKeys:"strip",catchall:ce.create(),typeName:$e.ZodObject,...T(t)}),pe.strictCreate=(e,t)=>new pe({shape:()=>e,unknownKeys:"strict",catchall:ce.create(),typeName:$e.ZodObject,...T(t)}),pe.lazycreate=(e,t)=>new pe({shape:e,unknownKeys:"strip",catchall:ce.create(),typeName:$e.ZodObject,...T(t)});class he extends A{_parse(e){const{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map((async e=>{const n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}}))).then((function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;const n=e.map((e=>new l(e.ctx.common.issues)));return p(t,{code:s.invalid_union,unionErrors:n}),m}));{let e;const r=[];for(const o of n){const n={...t,common:{...t.common,issues:[]},parent:null},i=o._parseSync({data:t.data,path:t.path,parent:n});if("valid"===i.status)return i;"dirty"!==i.status||e||(e={result:i,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const i=r.map((e=>new l(e)));return p(t,{code:s.invalid_union,unionErrors:i}),m}}get options(){return this._def.options}}he.create=(e,t)=>new he({options:e,typeName:$e.ZodUnion,...T(t)});const me=e=>e instanceof Se?me(e.schema):e instanceof Ae?me(e.innerType()):e instanceof ke?[e.value]:e instanceof Oe?e.options:e instanceof Ne?r.objectValues(e.enum):e instanceof Pe?me(e._def.innerType):e instanceof oe?[void 0]:e instanceof ae?[null]:e instanceof Ie?[void 0,...me(e.unwrap())]:e instanceof De?[null,...me(e.unwrap())]:e instanceof Le||e instanceof Fe?me(e.unwrap()):e instanceof Re?me(e._def.innerType):[];class ge extends A{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==o.object)return p(t,{code:s.invalid_type,expected:o.object,received:t.parsedType}),m;const n=this.discriminator,r=t.data[n],i=this.optionsMap.get(r);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(p(t,{code:s.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),m)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){const r=new Map;for(const i of t){const t=me(i.shape[e]);if(!t.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const n of t){if(r.has(n))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(n)}`);r.set(n,i)}}return new ge({typeName:$e.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...T(n)})}}function ve(e,t){const n=a(e),i=a(t);if(e===t)return{valid:!0,data:e};if(n===o.object&&i===o.object){const n=r.objectKeys(t),i=r.objectKeys(e).filter((e=>-1!==n.indexOf(e))),o={...e,...t};for(const r of i){const n=ve(e[r],t[r]);if(!n.valid)return{valid:!1};o[r]=n.data}return{valid:!0,data:o}}if(n===o.array&&i===o.array){if(e.length!==t.length)return{valid:!1};const n=[];for(let r=0;r<e.length;r++){const i=ve(e[r],t[r]);if(!i.valid)return{valid:!1};n.push(i.data)}return{valid:!0,data:n}}return n===o.date&&i===o.date&&+e===+t?{valid:!0,data:e}:{valid:!1}}class ye extends A{_parse(e){const{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{if(y(e)||y(r))return m;const i=ve(e.value,r.value);return i.valid?((b(e)||b(r))&&t.dirty(),{status:t.value,value:i.data}):(p(n,{code:s.invalid_intersection_types}),m)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then((([e,t])=>r(e,t))):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}ye.create=(e,t,n)=>new ye({left:e,right:t,typeName:$e.ZodIntersection,...T(n)});class be extends A{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==o.array)return p(n,{code:s.invalid_type,expected:o.array,received:n.parsedType}),m;if(n.data.length<this._def.items.length)return p(n,{code:s.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),m;!this._def.rest&&n.data.length>this._def.items.length&&(p(n,{code:s.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const r=[...n.data].map(((e,t)=>{const r=this._def.items[t]||this._def.rest;return r?r._parse(new O(n,e,n.path,t)):null})).filter((e=>!!e));return n.common.async?Promise.all(r).then((e=>h.mergeArray(t,e))):h.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new be({...this._def,rest:e})}}be.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new be({items:e,typeName:$e.ZodTuple,rest:null,...T(t)})};class we extends A{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==o.object)return p(n,{code:s.invalid_type,expected:o.object,received:n.parsedType}),m;const r=[],i=this._def.keyType,a=this._def.valueType;for(const o in n.data)r.push({key:i._parse(new O(n,o,n.path,o)),value:a._parse(new O(n,n.data[o],n.path,o)),alwaysSet:o in n.data});return n.common.async?h.mergeObjectAsync(t,r):h.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(e,t,n){return new we(t instanceof A?{keyType:e,valueType:t,typeName:$e.ZodRecord,...T(n)}:{keyType:J.create(),valueType:e,typeName:$e.ZodRecord,...T(t)})}}class xe extends A{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==o.map)return p(n,{code:s.invalid_type,expected:o.map,received:n.parsedType}),m;const r=this._def.keyType,i=this._def.valueType,a=[...n.data.entries()].map((([e,t],o)=>({key:r._parse(new O(n,e,n.path,[o,"key"])),value:i._parse(new O(n,t,n.path,[o,"value"]))})));if(n.common.async){const e=new Map;return Promise.resolve().then((async()=>{for(const n of a){const r=await n.key,i=await n.value;if("aborted"===r.status||"aborted"===i.status)return m;"dirty"!==r.status&&"dirty"!==i.status||t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}))}{const e=new Map;for(const n of a){const r=n.key,i=n.value;if("aborted"===r.status||"aborted"===i.status)return m;"dirty"!==r.status&&"dirty"!==i.status||t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}}}xe.create=(e,t,n)=>new xe({valueType:t,keyType:e,typeName:$e.ZodMap,...T(n)});class _e extends A{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==o.set)return p(n,{code:s.invalid_type,expected:o.set,received:n.parsedType}),m;const r=this._def;null!==r.minSize&&n.data.size<r.minSize.value&&(p(n,{code:s.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),null!==r.maxSize&&n.data.size>r.maxSize.value&&(p(n,{code:s.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());const i=this._def.valueType;function a(e){const n=new Set;for(const r of e){if("aborted"===r.status)return m;"dirty"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}const l=[...n.data.values()].map(((e,t)=>i._parse(new O(n,e,n.path,t))));return n.common.async?Promise.all(l).then((e=>a(e))):a(l)}min(e,t){return new _e({...this._def,minSize:{value:e,message:S.toString(t)}})}max(e,t){return new _e({...this._def,maxSize:{value:e,message:S.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}_e.create=(e,t)=>new _e({valueType:e,minSize:null,maxSize:null,typeName:$e.ZodSet,...T(t)});class Ee extends A{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==o.function)return p(t,{code:s.invalid_type,expected:o.function,received:t.parsedType}),m;function n(e,n){return f({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,d(),c].filter((e=>!!e)),issueData:{code:s.invalid_arguments,argumentsError:n}})}function r(e,n){return f({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,d(),c].filter((e=>!!e)),issueData:{code:s.invalid_return_type,returnTypeError:n}})}const i={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof Te){const e=this;return v((async function(...t){const o=new l([]),s=await e._def.args.parseAsync(t,i).catch((e=>{throw o.addIssue(n(t,e)),o})),c=await Reflect.apply(a,this,s);return await e._def.returns._def.type.parseAsync(c,i).catch((e=>{throw o.addIssue(r(c,e)),o}))}))}{const e=this;return v((function(...t){const o=e._def.args.safeParse(t,i);if(!o.success)throw new l([n(t,o.error)]);const s=Reflect.apply(a,this,o.data),c=e._def.returns.safeParse(s,i);if(!c.success)throw new l([r(s,c.error)]);return c.data}))}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new Ee({...this._def,args:be.create(e).rest(le.create())})}returns(e){return new Ee({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new Ee({args:e||be.create([]).rest(le.create()),returns:t||le.create(),typeName:$e.ZodFunction,...T(n)})}}class Se extends A{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}Se.create=(e,t)=>new Se({getter:e,typeName:$e.ZodLazy,...T(t)});class ke extends A{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return p(t,{received:t.data,code:s.invalid_literal,expected:this._def.value}),m}return{status:"valid",value:e.data}}get value(){return this._def.value}}function Ce(e,t){return new Oe({values:e,typeName:$e.ZodEnum,...T(t)})}ke.create=(e,t)=>new ke({value:e,typeName:$e.ZodLiteral,...T(t)});class Oe extends A{constructor(){super(...arguments),k.set(this,void 0)}_parse(e){if("string"!==typeof e.data){const t=this._getOrReturnCtx(e),n=this._def.values;return p(t,{expected:r.joinValues(n),received:t.parsedType,code:s.invalid_type}),m}if(_(this,k,"f")||E(this,k,new Set(this._def.values),"f"),!_(this,k,"f").has(e.data)){const t=this._getOrReturnCtx(e),n=this._def.values;return p(t,{received:t.data,code:s.invalid_enum_value,options:n}),m}return v(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return Oe.create(e,{...this._def,...t})}exclude(e,t=this._def){return Oe.create(this.options.filter((t=>!e.includes(t))),{...this._def,...t})}}k=new WeakMap,Oe.create=Ce;class Ne extends A{constructor(){super(...arguments),C.set(this,void 0)}_parse(e){const t=r.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==o.string&&n.parsedType!==o.number){const e=r.objectValues(t);return p(n,{expected:r.joinValues(e),received:n.parsedType,code:s.invalid_type}),m}if(_(this,C,"f")||E(this,C,new Set(r.getValidEnumValues(this._def.values)),"f"),!_(this,C,"f").has(e.data)){const e=r.objectValues(t);return p(n,{received:n.data,code:s.invalid_enum_value,options:e}),m}return v(e.data)}get enum(){return this._def.values}}C=new WeakMap,Ne.create=(e,t)=>new Ne({values:e,typeName:$e.ZodNativeEnum,...T(t)});class Te extends A{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==o.promise&&!1===t.common.async)return p(t,{code:s.invalid_type,expected:o.promise,received:t.parsedType}),m;const n=t.parsedType===o.promise?t.data:Promise.resolve(t.data);return v(n.then((e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap}))))}}Te.create=(e,t)=>new Te({type:e,typeName:$e.ZodPromise,...T(t)});class Ae extends A{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===$e.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:n}=this._processInputParams(e),i=this._def.effect||null,o={addIssue:e=>{p(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(o.addIssue=o.addIssue.bind(o),"preprocess"===i.type){const e=i.transform(n.data,o);if(n.common.async)return Promise.resolve(e).then((async e=>{if("aborted"===t.value)return m;const r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return"aborted"===r.status?m:"dirty"===r.status||"dirty"===t.value?g(r.value):r}));{if("aborted"===t.value)return m;const r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return"aborted"===r.status?m:"dirty"===r.status||"dirty"===t.value?g(r.value):r}}if("refinement"===i.type){const e=e=>{const t=i.refinement(e,o);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===n.common.async){const r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===r.status?m:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((n=>"aborted"===n.status?m:("dirty"===n.status&&t.dirty(),e(n.value).then((()=>({status:t.value,value:n.value}))))))}if("transform"===i.type){if(!1===n.common.async){const e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!w(e))return e;const r=i.transform(e.value,o);if(r instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:r}}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((e=>w(e)?Promise.resolve(i.transform(e.value,o)).then((e=>({status:t.value,value:e}))):e))}r.assertNever(i)}}Ae.create=(e,t,n)=>new Ae({schema:e,typeName:$e.ZodEffects,effect:t,...T(n)}),Ae.createWithPreprocess=(e,t,n)=>new Ae({schema:t,effect:{type:"preprocess",transform:e},typeName:$e.ZodEffects,...T(n)});class Ie extends A{_parse(e){return this._getType(e)===o.undefined?v(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Ie.create=(e,t)=>new Ie({innerType:e,typeName:$e.ZodOptional,...T(t)});class De extends A{_parse(e){return this._getType(e)===o.null?v(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}De.create=(e,t)=>new De({innerType:e,typeName:$e.ZodNullable,...T(t)});class Pe extends A{_parse(e){const{ctx:t}=this._processInputParams(e);let n=t.data;return t.parsedType===o.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}Pe.create=(e,t)=>new Pe({innerType:e,typeName:$e.ZodDefault,defaultValue:"function"===typeof t.default?t.default:()=>t.default,...T(t)});class Re extends A{_parse(e){const{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return x(r)?r.then((e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new l(n.common.issues)},input:n.data})}))):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new l(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}Re.create=(e,t)=>new Re({innerType:e,typeName:$e.ZodCatch,catchValue:"function"===typeof t.catch?t.catch:()=>t.catch,...T(t)});class je extends A{_parse(e){if(this._getType(e)!==o.nan){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:o.nan,received:t.parsedType}),m}return{status:"valid",value:e.data}}}je.create=e=>new je({typeName:$e.ZodNaN,...T(e)});const Me=Symbol("zod_brand");class Le extends A{_parse(e){const{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class ze extends A{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.common.async){return(async()=>{const e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?m:"dirty"===e.status?(t.dirty(),g(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})()}{const e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?m:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new ze({in:e,out:t,typeName:$e.ZodPipeline})}}class Fe extends A{_parse(e){const t=this._def.innerType._parse(e),n=e=>(w(e)&&(e.value=Object.freeze(e.value)),e);return x(t)?t.then((e=>n(e))):n(t)}unwrap(){return this._def.innerType}}function Be(e,t={},n){return e?se.create().superRefine(((r,i)=>{var o,a;if(!e(r)){const e="function"===typeof t?t(r):"string"===typeof t?{message:t}:t,s=null===(a=null!==(o=e.fatal)&&void 0!==o?o:n)||void 0===a||a,l="string"===typeof e?{message:e}:e;i.addIssue({code:"custom",...l,fatal:s})}})):se.create()}Fe.create=(e,t)=>new Fe({innerType:e,typeName:$e.ZodReadonly,...T(t)});const Ue={object:pe.lazycreate};var $e;!function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}($e||($e={}));const qe=J.create,He=ee.create,Ve=je.create,We=te.create,Ke=ne.create,Ge=re.create,Ye=ie.create,Qe=oe.create,Ze=ae.create,Je=se.create,Xe=le.create,et=ce.create,tt=ue.create,nt=de.create,rt=pe.create,it=pe.strictCreate,ot=he.create,at=ge.create,st=ye.create,lt=be.create,ct=we.create,ut=xe.create,dt=_e.create,ft=Ee.create,pt=Se.create,ht=ke.create,mt=Oe.create,gt=Ne.create,vt=Te.create,yt=Ae.create,bt=Ie.create,wt=De.create,xt=Ae.createWithPreprocess,_t=ze.create,Et={string:e=>J.create({...e,coerce:!0}),number:e=>ee.create({...e,coerce:!0}),boolean:e=>ne.create({...e,coerce:!0}),bigint:e=>te.create({...e,coerce:!0}),date:e=>re.create({...e,coerce:!0})},St=m;var kt=Object.freeze({__proto__:null,defaultErrorMap:c,setErrorMap:function(e){u=e},getErrorMap:d,makeIssue:f,EMPTY_PATH:[],addIssueToContext:p,ParseStatus:h,INVALID:m,DIRTY:g,OK:v,isAborted:y,isDirty:b,isValid:w,isAsync:x,get util(){return r},get objectUtil(){return i},ZodParsedType:o,getParsedType:a,ZodType:A,datetimeRegex:Y,ZodString:J,ZodNumber:ee,ZodBigInt:te,ZodBoolean:ne,ZodDate:re,ZodSymbol:ie,ZodUndefined:oe,ZodNull:ae,ZodAny:se,ZodUnknown:le,ZodNever:ce,ZodVoid:ue,ZodArray:de,ZodObject:pe,ZodUnion:he,ZodDiscriminatedUnion:ge,ZodIntersection:ye,ZodTuple:be,ZodRecord:we,ZodMap:xe,ZodSet:_e,ZodFunction:Ee,ZodLazy:Se,ZodLiteral:ke,ZodEnum:Oe,ZodNativeEnum:Ne,ZodPromise:Te,ZodEffects:Ae,ZodTransformer:Ae,ZodOptional:Ie,ZodNullable:De,ZodDefault:Pe,ZodCatch:Re,ZodNaN:je,BRAND:Me,ZodBranded:Le,ZodPipeline:ze,ZodReadonly:Fe,custom:Be,Schema:A,ZodSchema:A,late:Ue,get ZodFirstPartyTypeKind(){return $e},coerce:Et,any:Je,array:nt,bigint:We,boolean:Ke,date:Ge,discriminatedUnion:at,effect:yt,enum:mt,function:ft,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>Be((t=>t instanceof e),t),intersection:st,lazy:pt,literal:ht,map:ut,nan:Ve,nativeEnum:gt,never:et,null:Ze,nullable:wt,number:He,object:rt,oboolean:()=>Ke().optional(),onumber:()=>He().optional(),optional:bt,ostring:()=>qe().optional(),pipeline:_t,preprocess:xt,promise:vt,record:ct,set:dt,strictObject:it,string:qe,symbol:Ye,transformer:yt,tuple:lt,undefined:Qe,union:ot,unknown:Xe,void:tt,NEVER:St,ZodIssueCode:s,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:l})}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.m=e,n.amdO={},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(r,i){if(1&i&&(r=this(r)),8&i)return r;if("object"===typeof r&&r){if(4&i&&r.__esModule)return r;if(16&i&&"function"===typeof r.then)return r}var o=Object.create(null);n.r(o);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&i&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>r[e]));return a.default=()=>r,n.d(o,a),o}})(),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.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((t,r)=>(n.f[r](e,t),t)),[])),n.u=e=>"static/js/"+e+"."+{30:"69969059",47:"54dd12ac",60:"85d957cd",99:"dd803d0d",108:"d2d9c180",110:"2c798565",114:"7d7ab57f",118:"112f7e2f",132:"cf00f1e7",221:"b740df48",225:"cf362439",245:"041a06df",246:"13bb9db2",290:"b4f1e118",310:"b23bf6b2",513:"46a664ad",523:"17013d4e",535:"688ceefb",628:"70d08de9",654:"863ea445",710:"87e9f2e0",730:"a22f6f5f",734:"3fe325e9",811:"a0c1e1ce",856:"78147a4f",902:"a1b90b1b",921:"0402e36c",949:"12b4714d",957:"08a1c505",1053:"f976b474",1088:"40c16ea2",1094:"b5bb2475",1187:"c5435886",1237:"328d0241",1278:"d5c24e15",1299:"aaedb42e",1321:"401aa9b8",1414:"4cfda0bc",1434:"b8423300",1486:"8a488ae4",1496:"18b1eb19",1606:"0041ed7d",1627:"80c94ebf",1657:"d6f0b340",1696:"6120f4a8",1747:"f01c9fd8",1756:"b612458a",1836:"f49bfd4f",1865:"72c933c8",1917:"e3ac9c6d",1956:"c11f9b8a",1975:"e3066826",2016:"397296b7",2042:"81e83eeb",2053:"b4294b46",2161:"865bcd48",2162:"cca3e026",2166:"e382ccb1",2182:"1e53f745",2286:"e992ffd4",2308:"9e3a980c",2350:"a7af0a2e",2372:"880a31f6",2466:"b8b05e16",2518:"ac97d255",2568:"5bec7af3",2612:"55127fa0",2626:"a5b0d58c",2726:"e753cb7c",2742:"d5c8fae8",2775:"9105769d",2776:"0f5e87f5",2854:"48cc58dc",2984:"df749ebe",2994:"6c6016a8",3008:"c8aa656b",3033:"06c03554",3048:"692b5966",3121:"74e9e7dc",3158:"3f2d4e5f",3238:"a9505f7f",3321:"3370cf83",3333:"eb9ec516",3338:"83fe4e63",3410:"6391755f",3456:"72251ae0",3478:"480dafa6",3510:"0740f36d",3521:"775b3981",3534:"3f09429a",3638:"ee3efb24",3648:"3a72999a",3653:"06b5272c",3672:"12436dd6",3679:"e293221d",3702:"778880f9",3756:"9a440b73",3761:"dd957fd1",3769:"860e8d58",3779:"31972bdb",3812:"368eb751",3822:"00ab6aaa",3872:"a25d87b5",3879:"17f211ad",3902:"973b73c6",3940:"f5079e40",3952:"ce1b4fad",3977:"4c33ec16",4096:"33f702a0",4130:"e9433987",4169:"f2243012",4180:"1de6c8ba",4324:"c69948f7",4349:"9c8d20fd",4401:"f46d19f6",4441:"2b4963cf",4534:"b98f1389",4542:"18433910",4582:"5bf174ff",4601:"39745c4e",4652:"9a5d2242",4662:"1c10232d",4678:"4e2f4af4",4730:"78e66e9a",4818:"6beda30c",4847:"63c73f0a",4870:"1916a88d",4872:"2eea7e0a",4891:"c441be74",4905:"8121426d",5027:"9e6325ef",5047:"ebc9f1b2",5050:"ffa3921f",5161:"20e37d15",5168:"5c3dfc04",5252:"991dcab8",5382:"3a2e6ac6",5401:"dfb63825",5418:"00d0c5d1",5438:"179dc201",5453:"921caa82",5454:"e8f64f1a",5475:"20ce4f75",5542:"7c13d444",5579:"a2c9515c",5634:"0a0bddae",5636:"da9c4c85",5647:"0920ef73",5652:"6c4f054d",5685:"c0a21a10",5759:"52418ea5",5816:"144b5755",5819:"0ae2eb3d",5853:"0c5ec1d1",5866:"14d27c8c",5875:"f8a190bf",5888:"4fa64369",5924:"53ba4f49",5950:"28656717",5953:"cb95c45e",5988:"38ef363d",6012:"aac08e72",6047:"328b41a5",6114:"c74edf11",6210:"69d6a30a",6214:"a9a481a7",6261:"78de43a8",6262:"44dba84f",6324:"de01edfb",6342:"a2819c87",6358:"2997762b",6374:"be0c5879",6397:"b8cf6fae",6405:"b0dd94a9",6447:"2c0d9bda",6541:"a39e9d6a",6554:"6dfab136",6625:"a8d44d36",6658:"b22172da",6664:"b4dbf019",6786:"28af14f6",6820:"73ff230e",6833:"584b7806",6879:"2965a366",6881:"7e6434c9",6990:"70257b9b",7118:"ce0cd05f",7145:"7676c06d",7148:"ef54cd41",7206:"6b7278f5",7240:"a674bc94",7329:"514640a4",7341:"6e678529",7348:"eac33db2",7357:"a518ad9e",7380:"38a8eedf",7420:"d0c66c34",7548:"fd5d2b6c",7574:"8ac9803d",7579:"079e5569",7605:"cdc8f605",7614:"00d00ded",7638:"5489d672",7642:"39707d60",7692:"af7181c9",7697:"44af783d",7718:"f897f8ca",7748:"3ec14243",7878:"1f9512c4",7946:"3b4cf6fd",7962:"43ffbad7",7970:"80caf61d",8008:"da36f479",8014:"eb9f97f2",8053:"71be175a",8081:"5fafc7dc",8103:"00c9e9c1",8119:"196e82ef",8155:"654c40b5",8234:"7512920e",8256:"a2ce240a",8452:"551c16c8",8517:"cf981031",8534:"f7aec532",8633:"da605a09",8704:"87492da1",8706:"755fcb81",8821:"96eeccd6",8840:"5eb376ca",8868:"a9031705",8890:"9f3d8f08",8979:"0c0acc31",8986:"de287636",9010:"4bfaf5fa",9025:"6ae28867",9067:"254af4a9",9174:"ae7682da",9176:"3f08336f",9220:"a9f48eb9",9222:"a1913f85",9243:"cb95c73b",9312:"5eb8d4b1",9394:"ca56f408",9433:"4cf14d1c",9466:"0afe6e6e",9507:"14872b99",9518:"3fffdd45",9523:"ac019963",9582:"c09a3623",9606:"fc9247cb",9697:"bed5988b",9707:"72e68790",9725:"a94823a0",9728:"7cc957e4",9748:"e711e962",9778:"52ad76ce",9796:"47d2388f",9801:"b9143d43",9842:"b8ba19ad",9872:"65a6fae7",9882:"b983931a",9908:"4bd3acb1",9922:"367b63b0"}[e]+".chunk.js",n.miniCssF=e=>"static/css/"+e+"."+{99:"7cffb936",114:"1e565ac5",535:"c6fb8cd9",3456:"a5760e03",3779:"66c0ef83",3812:"440ff245",3940:"0971684f",4905:"028ad14b",5438:"615bd68a",5652:"261c3a7a",7145:"90fbb646",8155:"fd13e90a",8593:"95df9723",9796:"828f7385"}[e]+".chunk.css",n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="ydb-embedded-ui:";n.l=(r,i,o,a)=>{if(e[r])e[r].push(i);else{var s,l;if(void 0!==o)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==t+o){s=d;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,n.nc&&s.setAttribute("nonce",n.nc),s.setAttribute("data-webpack",t+o),s.src=r),e[r]=[i];var f=(t,n)=>{s.onerror=s.onload=null,clearTimeout(p);var i=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach((e=>e(n))),t)return t(n)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=f.bind(null,s.onerror),s.onload=f.bind(null,s.onload),l&&document.head.appendChild(s)}}})(),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.p="./",(()=>{if("undefined"!==typeof document){var e=e=>new Promise(((t,r)=>{var i=n.miniCssF(e),o=n.p+i;if(((e,t)=>{for(var n=document.getElementsByTagName("link"),r=0;r<n.length;r++){var i=(a=n[r]).getAttribute("data-href")||a.getAttribute("href");if("stylesheet"===a.rel&&(i===e||i===t))return a}var o=document.getElementsByTagName("style");for(r=0;r<o.length;r++){var a;if((i=(a=o[r]).getAttribute("data-href"))===e||i===t)return a}})(i,o))return t();((e,t,r,i,o)=>{var a=document.createElement("link");a.rel="stylesheet",a.type="text/css",n.nc&&(a.nonce=n.nc),a.onerror=a.onload=n=>{if(a.onerror=a.onload=null,"load"===n.type)i();else{var r=n&&n.type,s=n&&n.target&&n.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+r+": "+s+")");l.name="ChunkLoadError",l.code="CSS_CHUNK_LOAD_FAILED",l.type=r,l.request=s,a.parentNode&&a.parentNode.removeChild(a),o(l)}},a.href=t,r?r.parentNode.insertBefore(a,r.nextSibling):document.head.appendChild(a)})(e,o,null,t,r)})),t={8792:0};n.f.miniCss=(n,r)=>{t[n]?r.push(t[n]):0!==t[n]&&{99:1,114:1,535:1,3456:1,3779:1,3812:1,3940:1,4905:1,5438:1,5652:1,7145:1,8155:1,8593:1,9796:1}[n]&&r.push(t[n]=e(n).then((()=>{t[n]=0}),(e=>{throw delete t[n],e})))}}})(),(()=>{var e={8792:0};n.f.j=(t,r)=>{var i=n.o(e,t)?e[t]:void 0;if(0!==i)if(i)r.push(i[2]);else if(8593!=t){var o=new Promise(((n,r)=>i=e[t]=[n,r]));r.push(i[2]=o);var a=n.p+n.u(t),s=new Error;n.l(a,(r=>{if(n.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var o=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",s.name="ChunkLoadError",s.type=o,s.request=a,i[1](s)}}),"chunk-"+t,t)}else e[t]=0};var t=(t,r)=>{var i,o,[a,s,l]=r,c=0;if(a.some((t=>0!==e[t]))){for(i in s)n.o(s,i)&&(n.m[i]=s[i]);if(l)l(n)}for(t&&t(r);c<a.length;c++)o=a[c],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0},r=globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),(()=>{"use strict";var e=n(5906),t=n(48873),r=n(42566),i=n(54878);const{store:o,history:a}=(0,i.U1)();var s=n(60712);!async function(){let r;r=await Promise.resolve().then(n.bind(n,48873)).then((({SingleClusterApp:e})=>e));const i=document.getElementById("root");if(!i)throw new Error("Can't find root element");e.createRoot(i).render((0,s.jsx)(t.ErrorBoundary,{children:(0,s.jsx)(r,{store:o,history:a})}))}(),(0,r.A)()})()})();
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/ts.worker.js b/ydb/core/viewer/monitoring/ts.worker.js index 27b29f255a..68720f6a67 100644 --- a/ydb/core/viewer/monitoring/ts.worker.js +++ b/ydb/core/viewer/monitoring/ts.worker.js @@ -1,5 +1,5 @@ /*! For license information please see ts.worker.js.LICENSE.txt */ -(()=>{var e={9861:(e,t,n)=>{"use strict";function r(e,t,n=(e,t)=>e===t){if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(let r=0,o=e.length;r<o;r++)if(!n(e[r],t[r]))return!1;return!0}function*o(e,t){let n,r;for(const o of e)void 0!==r&&t(r,o)?n.push(o):(n&&(yield n),n=[o]),r=o;n&&(yield n)}function i(e,t){for(let n=0;n<=e.length;n++)t(0===n?void 0:e[n-1],n===e.length?void 0:e[n])}function a(e,t){for(let n=0;n<e.length;n++)t(0===n?void 0:e[n-1],e[n],n+1===e.length?void 0:e[n+1])}function s(e,t=e=>e){const n=new Set;return e.filter((e=>{const r=t(e);return!n.has(r)&&(n.add(r),!0)}))}function l(e,t){return e.length>0?e[0]:t}function c(e,t,n){const r=e.slice(0,t),o=e.slice(t);return r.concat(n,o)}function d(e,t){for(const n of t)e.push(n)}var u;function p(e,t){return(n,r)=>t(e(n),e(r))}n.d(t,{E4:()=>d,Fy:()=>l,Hw:()=>m,U9:()=>f,VE:()=>p,aI:()=>r,c1:()=>h,dM:()=>s,j3:()=>_,kj:()=>a,n:()=>o,nK:()=>c,pN:()=>i}),function(e){e.isLessThan=function(e){return e<0},e.isLessThanOrEqual=function(e){return e<=0},e.isGreaterThan=function(e){return e>0},e.isNeitherLessOrGreaterThan=function(e){return 0===e},e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0}(u||(u={}));const f=(e,t)=>e-t;function m(e){return(t,n)=>-e(t,n)}class _{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t<this.items.length&&e(this.items[t]);)t++;const n=t===this.firstIdx?null:this.items.slice(this.firstIdx,t);return this.firstIdx=t,n}takeFromEndWhile(e){let t=this.lastIdx;for(;t>=0&&e(this.items[t]);)t--;const n=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,n}peek(){if(0!==this.length)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class h{static{this.empty=new h((e=>{}))}constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate((t=>(e.push(t),!0))),e}filter(e){return new h((t=>this.iterate((n=>!e(n)||t(n)))))}map(e){return new h((t=>this.iterate((n=>t(e(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||u.isGreaterThan(e(r,t)))&&(n=!1,t=r),!0))),t}}},6041:(e,t,n)=>{"use strict";function r(e,t){const n=function(e,t,n=e.length-1){for(let r=n;r>=0;r--){if(t(e[r]))return r}return-1}(e,t);if(-1!==n)return e[n]}function o(e,t){const n=i(e,t);return-1===n?void 0:e[n]}function i(e,t,n=0,r=e.length){let o=n,i=r;for(;o<i;){const n=Math.floor((o+i)/2);t(e[n])?o=n+1:i=n}return o-1}function a(e,t){const n=s(e,t);return n===e.length?void 0:e[n]}function s(e,t,n=0,r=e.length){let o=n,i=r;for(;o<i;){const n=Math.floor((o+i)/2);t(e[n])?i=n:o=n+1}return o}n.d(t,{Uk:()=>r,XP:()=>a,hw:()=>s,iM:()=>i,lx:()=>o,vJ:()=>l});class l{static{this.assertInvariants=!1}constructor(e){this._array=e,this._findLastMonotonousLastIdx=0}findLastMonotonous(e){if(l.assertInvariants){if(this._prevFindLastPredicate)for(const t of this._array)if(this._prevFindLastPredicate(t)&&!e(t))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.");this._prevFindLastPredicate=e}const t=i(this._array,e,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=t+1,-1===t?void 0:this._array[t]}}},6782:(e,t,n)=>{"use strict";n.d(t,{Ft:()=>a,Xo:()=>s,ok:()=>o,xb:()=>i});var r=n(4383);function o(e,t){if(!e)throw new Error(t?`Assertion failed (${t})`:"Assertion Failed")}function i(e,t="Unreachable"){throw new Error(t)}function a(e){e()||(e(),(0,r.dz)(new r.D7("Assertion Failed")))}function s(e,t){let n=0;for(;n<e.length-1;){if(!t(e[n],e[n+1]))return!1;n++}return!0}},1940:(e,t,n)=>{"use strict";n.d(t,{vb:()=>l,uC:()=>c,Qg:()=>s,$6:()=>d});n(8447);var r=n(4383),o=n(1234),i=n(1484),a=n(8067);Symbol("MicrotaskDelay");function s(e){return!!e&&"function"===typeof e.then}class l{constructor(){this.disposable=void 0,this.isDisposed=!1}cancel(){this.disposable?.dispose(),this.disposable=void 0}cancelAndSet(e,t,n=globalThis){if(this.isDisposed)throw new r.D7("Calling 'cancelAndSet' on a disposed IntervalTimer");this.cancel();const o=n.setInterval((()=>{e()}),t);this.disposable=(0,i.s)((()=>{n.clearInterval(o),this.disposable=void 0}))}dispose(){this.cancel(),this.isDisposed=!0}}class c{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return-1!==this.timeoutToken}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner?.()}}let d,u;u="function"!==typeof globalThis.requestIdleCallback||"function"!==typeof globalThis.cancelIdleCallback?(e,t)=>{(0,a._p)((()=>{if(n)return;const e=Date.now()+15,r={didTimeout:!0,timeRemaining:()=>Math.max(0,e-Date.now())};t(Object.freeze(r))}));let n=!1;return{dispose(){n||(n=!0)}}}:(e,t,n)=>{const r=e.requestIdleCallback(t,"number"===typeof n?{timeout:n}:void 0);let o=!1;return{dispose(){o||(o=!0,e.cancelIdleCallback(r))}}},d=e=>u(globalThis,e);var p;!function(e){e.settled=async function(e){let t;const n=await Promise.all(e.map((e=>e.then((e=>e),(e=>{t||(t=e)})))));if("undefined"!==typeof t)throw t;return n},e.withAsyncBody=function(e){return new Promise((async(t,n)=>{try{await e(t,n)}catch(r){n(r)}}))}}(p||(p={}));class f{static fromArray(e){return new f((t=>{t.emitMany(e)}))}static fromPromise(e){return new f((async t=>{t.emitMany(await e)}))}static fromPromises(e){return new f((async t=>{await Promise.all(e.map((async e=>t.emitOne(await e))))}))}static merge(e){return new f((async t=>{await Promise.all(e.map((async e=>{for await(const n of e)t.emitOne(n)})))}))}static{this.EMPTY=f.fromArray([])}constructor(e,t){this._state=0,this._results=[],this._error=null,this._onReturn=t,this._onStateChanged=new o.vl,queueMicrotask((async()=>{const t={emitOne:e=>this.emitOne(e),emitMany:e=>this.emitMany(e),reject:e=>this.reject(e)};try{await Promise.resolve(e(t)),this.resolve()}catch(n){this.reject(n)}finally{t.emitOne=void 0,t.emitMany=void 0,t.reject=void 0}}))}[Symbol.asyncIterator](){let e=0;return{next:async()=>{for(;;){if(2===this._state)throw this._error;if(e<this._results.length)return{done:!1,value:this._results[e++]};if(1===this._state)return{done:!0,value:void 0};await o.Jh.toPromise(this._onStateChanged.event)}},return:async()=>(this._onReturn?.(),{done:!0,value:void 0})}}static map(e,t){return new f((async n=>{for await(const r of e)n.emitOne(t(r))}))}map(e){return f.map(this,e)}static filter(e,t){return new f((async n=>{for await(const r of e)t(r)&&n.emitOne(r)}))}filter(e){return f.filter(this,e)}static coalesce(e){return f.filter(e,(e=>!!e))}coalesce(){return f.coalesce(this)}static async toPromise(e){const t=[];for await(const n of e)t.push(n);return t}toPromise(){return f.toPromise(this)}emitOne(e){0===this._state&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){0===this._state&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){0===this._state&&(this._state=1,this._onStateChanged.fire())}reject(e){0===this._state&&(this._state=2,this._error=e,this._onStateChanged.fire())}}},1674:(e,t,n)=>{"use strict";n.d(t,{$l:()=>s,Gs:()=>p,MB:()=>a,Sw:()=>d,bb:()=>c,gN:()=>l,pJ:()=>u});var r=n(1090);const o="undefined"!==typeof Buffer;new r.d((()=>new Uint8Array(256)));let i;class a{static wrap(e){return o&&!Buffer.isBuffer(e)&&(e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),new a(e)}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}toString(){return o?this.buffer.toString():(i||(i=new TextDecoder),i.decode(this.buffer))}}function s(e,t){return(e[t+0]|0)>>>0|e[t+1]<<8>>>0}function l(e,t,n){e[n+0]=255&t,t>>>=8,e[n+1]=255&t}function c(e,t){return e[t]*2**24+65536*e[t+1]+256*e[t+2]+e[t+3]}function d(e,t,n){e[n+3]=t,t>>>=8,e[n+2]=t,t>>>=8,e[n+1]=t,t>>>=8,e[n]=t}function u(e,t){return e[t]}function p(e,t,n){e[n]=t}},1788:(e,t,n)=>{"use strict";function r(e){return e}n.d(t,{VV:()=>i,o5:()=>o});class o{constructor(e,t){this.lastCache=void 0,this.lastArgKey=void 0,"function"===typeof e?(this._fn=e,this._computeKey=r):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this._fn(e)),this.lastCache}}class i{get cachedValues(){return this._map}constructor(e,t){this._map=new Map,this._map2=new Map,"function"===typeof e?(this._fn=e,this._computeKey=r):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);if(this._map2.has(t))return this._map2.get(t);const n=this._fn(e);return this._map.set(e,n),this._map2.set(t,n),n}}},8447:(e,t,n)=>{"use strict";n.d(t,{Qi:()=>s});var r=n(1234);const o=Object.freeze((function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}}));var i;!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||(t instanceof a||!(!t||"object"!==typeof t)&&("boolean"===typeof t.isCancellationRequested&&"function"===typeof t.onCancellationRequested))},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:r.Jh.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:o})}(i||(i={}));class a{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?o:(this._emitter||(this._emitter=new r.vl),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class s{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new a),this._token}cancel(){this._token?this._token instanceof a&&this._token.cancel():this._token=i.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof a&&this._token.dispose():this._token=i.None}}},9493:(e,t,n)=>{"use strict";n.d(t,{W:()=>a});var r=n(631);const o=Object.create(null);function i(e,t){if((0,r.Kg)(t)){const n=o[t];if(void 0===n)throw new Error(`${e} references an unknown codicon: ${t}`);t=n}return o[e]=t,{id:e}}const a={...{add:i("add",6e4),plus:i("plus",6e4),gistNew:i("gist-new",6e4),repoCreate:i("repo-create",6e4),lightbulb:i("lightbulb",60001),lightBulb:i("light-bulb",60001),repo:i("repo",60002),repoDelete:i("repo-delete",60002),gistFork:i("gist-fork",60003),repoForked:i("repo-forked",60003),gitPullRequest:i("git-pull-request",60004),gitPullRequestAbandoned:i("git-pull-request-abandoned",60004),recordKeys:i("record-keys",60005),keyboard:i("keyboard",60005),tag:i("tag",60006),gitPullRequestLabel:i("git-pull-request-label",60006),tagAdd:i("tag-add",60006),tagRemove:i("tag-remove",60006),person:i("person",60007),personFollow:i("person-follow",60007),personOutline:i("person-outline",60007),personFilled:i("person-filled",60007),gitBranch:i("git-branch",60008),gitBranchCreate:i("git-branch-create",60008),gitBranchDelete:i("git-branch-delete",60008),sourceControl:i("source-control",60008),mirror:i("mirror",60009),mirrorPublic:i("mirror-public",60009),star:i("star",60010),starAdd:i("star-add",60010),starDelete:i("star-delete",60010),starEmpty:i("star-empty",60010),comment:i("comment",60011),commentAdd:i("comment-add",60011),alert:i("alert",60012),warning:i("warning",60012),search:i("search",60013),searchSave:i("search-save",60013),logOut:i("log-out",60014),signOut:i("sign-out",60014),logIn:i("log-in",60015),signIn:i("sign-in",60015),eye:i("eye",60016),eyeUnwatch:i("eye-unwatch",60016),eyeWatch:i("eye-watch",60016),circleFilled:i("circle-filled",60017),primitiveDot:i("primitive-dot",60017),closeDirty:i("close-dirty",60017),debugBreakpoint:i("debug-breakpoint",60017),debugBreakpointDisabled:i("debug-breakpoint-disabled",60017),debugHint:i("debug-hint",60017),terminalDecorationSuccess:i("terminal-decoration-success",60017),primitiveSquare:i("primitive-square",60018),edit:i("edit",60019),pencil:i("pencil",60019),info:i("info",60020),issueOpened:i("issue-opened",60020),gistPrivate:i("gist-private",60021),gitForkPrivate:i("git-fork-private",60021),lock:i("lock",60021),mirrorPrivate:i("mirror-private",60021),close:i("close",60022),removeClose:i("remove-close",60022),x:i("x",60022),repoSync:i("repo-sync",60023),sync:i("sync",60023),clone:i("clone",60024),desktopDownload:i("desktop-download",60024),beaker:i("beaker",60025),microscope:i("microscope",60025),vm:i("vm",60026),deviceDesktop:i("device-desktop",60026),file:i("file",60027),fileText:i("file-text",60027),more:i("more",60028),ellipsis:i("ellipsis",60028),kebabHorizontal:i("kebab-horizontal",60028),mailReply:i("mail-reply",60029),reply:i("reply",60029),organization:i("organization",60030),organizationFilled:i("organization-filled",60030),organizationOutline:i("organization-outline",60030),newFile:i("new-file",60031),fileAdd:i("file-add",60031),newFolder:i("new-folder",60032),fileDirectoryCreate:i("file-directory-create",60032),trash:i("trash",60033),trashcan:i("trashcan",60033),history:i("history",60034),clock:i("clock",60034),folder:i("folder",60035),fileDirectory:i("file-directory",60035),symbolFolder:i("symbol-folder",60035),logoGithub:i("logo-github",60036),markGithub:i("mark-github",60036),github:i("github",60036),terminal:i("terminal",60037),console:i("console",60037),repl:i("repl",60037),zap:i("zap",60038),symbolEvent:i("symbol-event",60038),error:i("error",60039),stop:i("stop",60039),variable:i("variable",60040),symbolVariable:i("symbol-variable",60040),array:i("array",60042),symbolArray:i("symbol-array",60042),symbolModule:i("symbol-module",60043),symbolPackage:i("symbol-package",60043),symbolNamespace:i("symbol-namespace",60043),symbolObject:i("symbol-object",60043),symbolMethod:i("symbol-method",60044),symbolFunction:i("symbol-function",60044),symbolConstructor:i("symbol-constructor",60044),symbolBoolean:i("symbol-boolean",60047),symbolNull:i("symbol-null",60047),symbolNumeric:i("symbol-numeric",60048),symbolNumber:i("symbol-number",60048),symbolStructure:i("symbol-structure",60049),symbolStruct:i("symbol-struct",60049),symbolParameter:i("symbol-parameter",60050),symbolTypeParameter:i("symbol-type-parameter",60050),symbolKey:i("symbol-key",60051),symbolText:i("symbol-text",60051),symbolReference:i("symbol-reference",60052),goToFile:i("go-to-file",60052),symbolEnum:i("symbol-enum",60053),symbolValue:i("symbol-value",60053),symbolRuler:i("symbol-ruler",60054),symbolUnit:i("symbol-unit",60054),activateBreakpoints:i("activate-breakpoints",60055),archive:i("archive",60056),arrowBoth:i("arrow-both",60057),arrowDown:i("arrow-down",60058),arrowLeft:i("arrow-left",60059),arrowRight:i("arrow-right",60060),arrowSmallDown:i("arrow-small-down",60061),arrowSmallLeft:i("arrow-small-left",60062),arrowSmallRight:i("arrow-small-right",60063),arrowSmallUp:i("arrow-small-up",60064),arrowUp:i("arrow-up",60065),bell:i("bell",60066),bold:i("bold",60067),book:i("book",60068),bookmark:i("bookmark",60069),debugBreakpointConditionalUnverified:i("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:i("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:i("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:i("debug-breakpoint-data-unverified",60072),debugBreakpointData:i("debug-breakpoint-data",60073),debugBreakpointDataDisabled:i("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:i("debug-breakpoint-log-unverified",60074),debugBreakpointLog:i("debug-breakpoint-log",60075),debugBreakpointLogDisabled:i("debug-breakpoint-log-disabled",60075),briefcase:i("briefcase",60076),broadcast:i("broadcast",60077),browser:i("browser",60078),bug:i("bug",60079),calendar:i("calendar",60080),caseSensitive:i("case-sensitive",60081),check:i("check",60082),checklist:i("checklist",60083),chevronDown:i("chevron-down",60084),chevronLeft:i("chevron-left",60085),chevronRight:i("chevron-right",60086),chevronUp:i("chevron-up",60087),chromeClose:i("chrome-close",60088),chromeMaximize:i("chrome-maximize",60089),chromeMinimize:i("chrome-minimize",60090),chromeRestore:i("chrome-restore",60091),circleOutline:i("circle-outline",60092),circle:i("circle",60092),debugBreakpointUnverified:i("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:i("terminal-decoration-incomplete",60092),circleSlash:i("circle-slash",60093),circuitBoard:i("circuit-board",60094),clearAll:i("clear-all",60095),clippy:i("clippy",60096),closeAll:i("close-all",60097),cloudDownload:i("cloud-download",60098),cloudUpload:i("cloud-upload",60099),code:i("code",60100),collapseAll:i("collapse-all",60101),colorMode:i("color-mode",60102),commentDiscussion:i("comment-discussion",60103),creditCard:i("credit-card",60105),dash:i("dash",60108),dashboard:i("dashboard",60109),database:i("database",60110),debugContinue:i("debug-continue",60111),debugDisconnect:i("debug-disconnect",60112),debugPause:i("debug-pause",60113),debugRestart:i("debug-restart",60114),debugStart:i("debug-start",60115),debugStepInto:i("debug-step-into",60116),debugStepOut:i("debug-step-out",60117),debugStepOver:i("debug-step-over",60118),debugStop:i("debug-stop",60119),debug:i("debug",60120),deviceCameraVideo:i("device-camera-video",60121),deviceCamera:i("device-camera",60122),deviceMobile:i("device-mobile",60123),diffAdded:i("diff-added",60124),diffIgnored:i("diff-ignored",60125),diffModified:i("diff-modified",60126),diffRemoved:i("diff-removed",60127),diffRenamed:i("diff-renamed",60128),diff:i("diff",60129),diffSidebyside:i("diff-sidebyside",60129),discard:i("discard",60130),editorLayout:i("editor-layout",60131),emptyWindow:i("empty-window",60132),exclude:i("exclude",60133),extensions:i("extensions",60134),eyeClosed:i("eye-closed",60135),fileBinary:i("file-binary",60136),fileCode:i("file-code",60137),fileMedia:i("file-media",60138),filePdf:i("file-pdf",60139),fileSubmodule:i("file-submodule",60140),fileSymlinkDirectory:i("file-symlink-directory",60141),fileSymlinkFile:i("file-symlink-file",60142),fileZip:i("file-zip",60143),files:i("files",60144),filter:i("filter",60145),flame:i("flame",60146),foldDown:i("fold-down",60147),foldUp:i("fold-up",60148),fold:i("fold",60149),folderActive:i("folder-active",60150),folderOpened:i("folder-opened",60151),gear:i("gear",60152),gift:i("gift",60153),gistSecret:i("gist-secret",60154),gist:i("gist",60155),gitCommit:i("git-commit",60156),gitCompare:i("git-compare",60157),compareChanges:i("compare-changes",60157),gitMerge:i("git-merge",60158),githubAction:i("github-action",60159),githubAlt:i("github-alt",60160),globe:i("globe",60161),grabber:i("grabber",60162),graph:i("graph",60163),gripper:i("gripper",60164),heart:i("heart",60165),home:i("home",60166),horizontalRule:i("horizontal-rule",60167),hubot:i("hubot",60168),inbox:i("inbox",60169),issueReopened:i("issue-reopened",60171),issues:i("issues",60172),italic:i("italic",60173),jersey:i("jersey",60174),json:i("json",60175),kebabVertical:i("kebab-vertical",60176),key:i("key",60177),law:i("law",60178),lightbulbAutofix:i("lightbulb-autofix",60179),linkExternal:i("link-external",60180),link:i("link",60181),listOrdered:i("list-ordered",60182),listUnordered:i("list-unordered",60183),liveShare:i("live-share",60184),loading:i("loading",60185),location:i("location",60186),mailRead:i("mail-read",60187),mail:i("mail",60188),markdown:i("markdown",60189),megaphone:i("megaphone",60190),mention:i("mention",60191),milestone:i("milestone",60192),gitPullRequestMilestone:i("git-pull-request-milestone",60192),mortarBoard:i("mortar-board",60193),move:i("move",60194),multipleWindows:i("multiple-windows",60195),mute:i("mute",60196),noNewline:i("no-newline",60197),note:i("note",60198),octoface:i("octoface",60199),openPreview:i("open-preview",60200),package:i("package",60201),paintcan:i("paintcan",60202),pin:i("pin",60203),play:i("play",60204),run:i("run",60204),plug:i("plug",60205),preserveCase:i("preserve-case",60206),preview:i("preview",60207),project:i("project",60208),pulse:i("pulse",60209),question:i("question",60210),quote:i("quote",60211),radioTower:i("radio-tower",60212),reactions:i("reactions",60213),references:i("references",60214),refresh:i("refresh",60215),regex:i("regex",60216),remoteExplorer:i("remote-explorer",60217),remote:i("remote",60218),remove:i("remove",60219),replaceAll:i("replace-all",60220),replace:i("replace",60221),repoClone:i("repo-clone",60222),repoForcePush:i("repo-force-push",60223),repoPull:i("repo-pull",60224),repoPush:i("repo-push",60225),report:i("report",60226),requestChanges:i("request-changes",60227),rocket:i("rocket",60228),rootFolderOpened:i("root-folder-opened",60229),rootFolder:i("root-folder",60230),rss:i("rss",60231),ruby:i("ruby",60232),saveAll:i("save-all",60233),saveAs:i("save-as",60234),save:i("save",60235),screenFull:i("screen-full",60236),screenNormal:i("screen-normal",60237),searchStop:i("search-stop",60238),server:i("server",60240),settingsGear:i("settings-gear",60241),settings:i("settings",60242),shield:i("shield",60243),smiley:i("smiley",60244),sortPrecedence:i("sort-precedence",60245),splitHorizontal:i("split-horizontal",60246),splitVertical:i("split-vertical",60247),squirrel:i("squirrel",60248),starFull:i("star-full",60249),starHalf:i("star-half",60250),symbolClass:i("symbol-class",60251),symbolColor:i("symbol-color",60252),symbolConstant:i("symbol-constant",60253),symbolEnumMember:i("symbol-enum-member",60254),symbolField:i("symbol-field",60255),symbolFile:i("symbol-file",60256),symbolInterface:i("symbol-interface",60257),symbolKeyword:i("symbol-keyword",60258),symbolMisc:i("symbol-misc",60259),symbolOperator:i("symbol-operator",60260),symbolProperty:i("symbol-property",60261),wrench:i("wrench",60261),wrenchSubaction:i("wrench-subaction",60261),symbolSnippet:i("symbol-snippet",60262),tasklist:i("tasklist",60263),telescope:i("telescope",60264),textSize:i("text-size",60265),threeBars:i("three-bars",60266),thumbsdown:i("thumbsdown",60267),thumbsup:i("thumbsup",60268),tools:i("tools",60269),triangleDown:i("triangle-down",60270),triangleLeft:i("triangle-left",60271),triangleRight:i("triangle-right",60272),triangleUp:i("triangle-up",60273),twitter:i("twitter",60274),unfold:i("unfold",60275),unlock:i("unlock",60276),unmute:i("unmute",60277),unverified:i("unverified",60278),verified:i("verified",60279),versions:i("versions",60280),vmActive:i("vm-active",60281),vmOutline:i("vm-outline",60282),vmRunning:i("vm-running",60283),watch:i("watch",60284),whitespace:i("whitespace",60285),wholeWord:i("whole-word",60286),window:i("window",60287),wordWrap:i("word-wrap",60288),zoomIn:i("zoom-in",60289),zoomOut:i("zoom-out",60290),listFilter:i("list-filter",60291),listFlat:i("list-flat",60292),listSelection:i("list-selection",60293),selection:i("selection",60293),listTree:i("list-tree",60294),debugBreakpointFunctionUnverified:i("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:i("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:i("debug-breakpoint-function-disabled",60296),debugStackframeActive:i("debug-stackframe-active",60297),circleSmallFilled:i("circle-small-filled",60298),debugStackframeDot:i("debug-stackframe-dot",60298),terminalDecorationMark:i("terminal-decoration-mark",60298),debugStackframe:i("debug-stackframe",60299),debugStackframeFocused:i("debug-stackframe-focused",60299),debugBreakpointUnsupported:i("debug-breakpoint-unsupported",60300),symbolString:i("symbol-string",60301),debugReverseContinue:i("debug-reverse-continue",60302),debugStepBack:i("debug-step-back",60303),debugRestartFrame:i("debug-restart-frame",60304),debugAlt:i("debug-alt",60305),callIncoming:i("call-incoming",60306),callOutgoing:i("call-outgoing",60307),menu:i("menu",60308),expandAll:i("expand-all",60309),feedback:i("feedback",60310),gitPullRequestReviewer:i("git-pull-request-reviewer",60310),groupByRefType:i("group-by-ref-type",60311),ungroupByRefType:i("ungroup-by-ref-type",60312),account:i("account",60313),gitPullRequestAssignee:i("git-pull-request-assignee",60313),bellDot:i("bell-dot",60314),debugConsole:i("debug-console",60315),library:i("library",60316),output:i("output",60317),runAll:i("run-all",60318),syncIgnored:i("sync-ignored",60319),pinned:i("pinned",60320),githubInverted:i("github-inverted",60321),serverProcess:i("server-process",60322),serverEnvironment:i("server-environment",60323),pass:i("pass",60324),issueClosed:i("issue-closed",60324),stopCircle:i("stop-circle",60325),playCircle:i("play-circle",60326),record:i("record",60327),debugAltSmall:i("debug-alt-small",60328),vmConnect:i("vm-connect",60329),cloud:i("cloud",60330),merge:i("merge",60331),export:i("export",60332),graphLeft:i("graph-left",60333),magnet:i("magnet",60334),notebook:i("notebook",60335),redo:i("redo",60336),checkAll:i("check-all",60337),pinnedDirty:i("pinned-dirty",60338),passFilled:i("pass-filled",60339),circleLargeFilled:i("circle-large-filled",60340),circleLarge:i("circle-large",60341),circleLargeOutline:i("circle-large-outline",60341),combine:i("combine",60342),gather:i("gather",60342),table:i("table",60343),variableGroup:i("variable-group",60344),typeHierarchy:i("type-hierarchy",60345),typeHierarchySub:i("type-hierarchy-sub",60346),typeHierarchySuper:i("type-hierarchy-super",60347),gitPullRequestCreate:i("git-pull-request-create",60348),runAbove:i("run-above",60349),runBelow:i("run-below",60350),notebookTemplate:i("notebook-template",60351),debugRerun:i("debug-rerun",60352),workspaceTrusted:i("workspace-trusted",60353),workspaceUntrusted:i("workspace-untrusted",60354),workspaceUnknown:i("workspace-unknown",60355),terminalCmd:i("terminal-cmd",60356),terminalDebian:i("terminal-debian",60357),terminalLinux:i("terminal-linux",60358),terminalPowershell:i("terminal-powershell",60359),terminalTmux:i("terminal-tmux",60360),terminalUbuntu:i("terminal-ubuntu",60361),terminalBash:i("terminal-bash",60362),arrowSwap:i("arrow-swap",60363),copy:i("copy",60364),personAdd:i("person-add",60365),filterFilled:i("filter-filled",60366),wand:i("wand",60367),debugLineByLine:i("debug-line-by-line",60368),inspect:i("inspect",60369),layers:i("layers",60370),layersDot:i("layers-dot",60371),layersActive:i("layers-active",60372),compass:i("compass",60373),compassDot:i("compass-dot",60374),compassActive:i("compass-active",60375),azure:i("azure",60376),issueDraft:i("issue-draft",60377),gitPullRequestClosed:i("git-pull-request-closed",60378),gitPullRequestDraft:i("git-pull-request-draft",60379),debugAll:i("debug-all",60380),debugCoverage:i("debug-coverage",60381),runErrors:i("run-errors",60382),folderLibrary:i("folder-library",60383),debugContinueSmall:i("debug-continue-small",60384),beakerStop:i("beaker-stop",60385),graphLine:i("graph-line",60386),graphScatter:i("graph-scatter",60387),pieChart:i("pie-chart",60388),bracket:i("bracket",60175),bracketDot:i("bracket-dot",60389),bracketError:i("bracket-error",60390),lockSmall:i("lock-small",60391),azureDevops:i("azure-devops",60392),verifiedFilled:i("verified-filled",60393),newline:i("newline",60394),layout:i("layout",60395),layoutActivitybarLeft:i("layout-activitybar-left",60396),layoutActivitybarRight:i("layout-activitybar-right",60397),layoutPanelLeft:i("layout-panel-left",60398),layoutPanelCenter:i("layout-panel-center",60399),layoutPanelJustify:i("layout-panel-justify",60400),layoutPanelRight:i("layout-panel-right",60401),layoutPanel:i("layout-panel",60402),layoutSidebarLeft:i("layout-sidebar-left",60403),layoutSidebarRight:i("layout-sidebar-right",60404),layoutStatusbar:i("layout-statusbar",60405),layoutMenubar:i("layout-menubar",60406),layoutCentered:i("layout-centered",60407),target:i("target",60408),indent:i("indent",60409),recordSmall:i("record-small",60410),errorSmall:i("error-small",60411),terminalDecorationError:i("terminal-decoration-error",60411),arrowCircleDown:i("arrow-circle-down",60412),arrowCircleLeft:i("arrow-circle-left",60413),arrowCircleRight:i("arrow-circle-right",60414),arrowCircleUp:i("arrow-circle-up",60415),layoutSidebarRightOff:i("layout-sidebar-right-off",60416),layoutPanelOff:i("layout-panel-off",60417),layoutSidebarLeftOff:i("layout-sidebar-left-off",60418),blank:i("blank",60419),heartFilled:i("heart-filled",60420),map:i("map",60421),mapHorizontal:i("map-horizontal",60421),foldHorizontal:i("fold-horizontal",60421),mapFilled:i("map-filled",60422),mapHorizontalFilled:i("map-horizontal-filled",60422),foldHorizontalFilled:i("fold-horizontal-filled",60422),circleSmall:i("circle-small",60423),bellSlash:i("bell-slash",60424),bellSlashDot:i("bell-slash-dot",60425),commentUnresolved:i("comment-unresolved",60426),gitPullRequestGoToChanges:i("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:i("git-pull-request-new-changes",60428),searchFuzzy:i("search-fuzzy",60429),commentDraft:i("comment-draft",60430),send:i("send",60431),sparkle:i("sparkle",60432),insert:i("insert",60433),mic:i("mic",60434),thumbsdownFilled:i("thumbsdown-filled",60435),thumbsupFilled:i("thumbsup-filled",60436),coffee:i("coffee",60437),snake:i("snake",60438),game:i("game",60439),vr:i("vr",60440),chip:i("chip",60441),piano:i("piano",60442),music:i("music",60443),micFilled:i("mic-filled",60444),repoFetch:i("repo-fetch",60445),copilot:i("copilot",60446),lightbulbSparkle:i("lightbulb-sparkle",60447),robot:i("robot",60448),sparkleFilled:i("sparkle-filled",60449),diffSingle:i("diff-single",60450),diffMultiple:i("diff-multiple",60451),surroundWith:i("surround-with",60452),share:i("share",60453),gitStash:i("git-stash",60454),gitStashApply:i("git-stash-apply",60455),gitStashPop:i("git-stash-pop",60456),vscode:i("vscode",60457),vscodeInsiders:i("vscode-insiders",60458),codeOss:i("code-oss",60459),runCoverage:i("run-coverage",60460),runAllCoverage:i("run-all-coverage",60461),coverage:i("coverage",60462),githubProject:i("github-project",60463),mapVertical:i("map-vertical",60464),foldVertical:i("fold-vertical",60464),mapVerticalFilled:i("map-vertical-filled",60465),foldVerticalFilled:i("fold-vertical-filled",60465),goToSearch:i("go-to-search",60466),percentage:i("percentage",60467),sortPercentage:i("sort-percentage",60467),attach:i("attach",60468)},...{dialogError:i("dialog-error","error"),dialogWarning:i("dialog-warning","warning"),dialogInfo:i("dialog-info","info"),dialogClose:i("dialog-close","close"),treeItemExpanded:i("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:i("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:i("tree-filter-on-type-off","list-selection"),treeFilterClear:i("tree-filter-clear","close"),treeItemLoading:i("tree-item-loading","loading"),menuSelection:i("menu-selection","check"),menuSubmenu:i("menu-submenu","chevron-right"),menuBarMore:i("menubar-more","more"),scrollbarButtonLeft:i("scrollbar-button-left","triangle-left"),scrollbarButtonRight:i("scrollbar-button-right","triangle-right"),scrollbarButtonUp:i("scrollbar-button-up","triangle-up"),scrollbarButtonDown:i("scrollbar-button-down","triangle-down"),toolBarMore:i("toolbar-more","more"),quickInputBack:i("quick-input-back","arrow-left"),dropDownButton:i("drop-down-button",60084),symbolCustomColor:i("symbol-customcolor",60252),exportIcon:i("export",60332),workspaceUnspecified:i("workspace-unspecified",60355),newLine:i("newline",60394),thumbsDownFilled:i("thumbsdown-filled",60435),thumbsUpFilled:i("thumbsup-filled",60436),gitFetch:i("git-fetch",60445),lightbulbSparkleAutofix:i("lightbulb-sparkle-autofix",60447),debugBreakpointPending:i("debug-breakpoint-pending",60377)}}},7661:(e,t,n)=>{"use strict";function r(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}n.d(t,{Q1:()=>s,bU:()=>o,hB:()=>i});class o{constructor(e,t,n,o=1){this._rgbaBrand=void 0,this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,t)),this.b=0|Math.min(255,Math.max(0,n)),this.a=r(Math.max(Math.min(1,o),0),3)}static equals(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}}class i{constructor(e,t,n,o){this._hslaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=r(Math.max(Math.min(1,t),0),3),this.l=r(Math.max(Math.min(1,n),0),3),this.a=r(Math.max(Math.min(1,o),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(e){const t=e.r/255,n=e.g/255,r=e.b/255,o=e.a,a=Math.max(t,n,r),s=Math.min(t,n,r);let l=0,c=0;const d=(s+a)/2,u=a-s;if(u>0){switch(c=Math.min(d<=.5?u/(2*d):u/(2-2*d),1),a){case t:l=(n-r)/u+(n<r?6:0);break;case n:l=(r-t)/u+2;break;case r:l=(t-n)/u+4}l*=60,l=Math.round(l)}return new i(l,c,d,o)}static _hue2rgb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}static toRGBA(e){const t=e.h/360,{s:n,l:r,a:a}=e;let s,l,c;if(0===n)s=l=c=r;else{const e=r<.5?r*(1+n):r+n-r*n,o=2*r-e;s=i._hue2rgb(o,e,t+1/3),l=i._hue2rgb(o,e,t),c=i._hue2rgb(o,e,t-1/3)}return new o(Math.round(255*s),Math.round(255*l),Math.round(255*c),a)}}class a{constructor(e,t,n,o){this._hsvaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=r(Math.max(Math.min(1,t),0),3),this.v=r(Math.max(Math.min(1,n),0),3),this.a=r(Math.max(Math.min(1,o),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(e){const t=e.r/255,n=e.g/255,r=e.b/255,o=Math.max(t,n,r),i=o-Math.min(t,n,r),s=0===o?0:i/o;let l;return l=0===i?0:o===t?((n-r)/i%6+6)%6:o===n?(r-t)/i+2:(t-n)/i+4,new a(Math.round(60*l),s,o,e.a)}static toRGBA(e){const{h:t,s:n,v:r,a:i}=e,a=r*n,s=a*(1-Math.abs(t/60%2-1)),l=r-a;let[c,d,u]=[0,0,0];return t<60?(c=a,d=s):t<120?(c=s,d=a):t<180?(d=a,u=s):t<240?(d=s,u=a):t<300?(c=s,u=a):t<=360&&(c=a,u=s),c=Math.round(255*(c+l)),d=Math.round(255*(d+l)),u=Math.round(255*(u+l)),new o(c,d,u,i)}}class s{static fromHex(e){return s.Format.CSS.parseHex(e)||s.red}static equals(e,t){return!e&&!t||!(!e||!t)&&e.equals(t)}get hsla(){return this._hsla?this._hsla:i.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:a.fromRGBA(this.rgba)}constructor(e){if(!e)throw new Error("Color needs a value");if(e instanceof o)this.rgba=e;else if(e instanceof i)this._hsla=e,this.rgba=i.toRGBA(e);else{if(!(e instanceof a))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=a.toRGBA(e)}}equals(e){return!!e&&o.equals(this.rgba,e.rgba)&&i.equals(this.hsla,e.hsla)&&a.equals(this.hsva,e.hsva)}getRelativeLuminance(){return r(.2126*s._relativeLuminanceForComponent(this.rgba.r)+.7152*s._relativeLuminanceForComponent(this.rgba.g)+.0722*s._relativeLuminanceForComponent(this.rgba.b),4)}static _relativeLuminanceForComponent(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}isLighter(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128}isLighterThan(e){return this.getRelativeLuminance()>e.getRelativeLuminance()}isDarkerThan(e){return this.getRelativeLuminance()<e.getRelativeLuminance()}lighten(e){return new s(new i(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*e,this.hsla.a))}darken(e){return new s(new i(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*e,this.hsla.a))}transparent(e){const{r:t,g:n,b:r,a:i}=this.rgba;return new s(new o(t,n,r,i*e))}isTransparent(){return 0===this.rgba.a}isOpaque(){return 1===this.rgba.a}opposite(){return new s(new o(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(e){if(this.isOpaque()||1!==e.rgba.a)return this;const{r:t,g:n,b:r,a:i}=this.rgba;return new s(new o(e.rgba.r-i*(e.rgba.r-t),e.rgba.g-i*(e.rgba.g-n),e.rgba.b-i*(e.rgba.b-r),1))}toString(){return this._toString||(this._toString=s.Format.CSS.format(this)),this._toString}static getLighterColor(e,t,n){if(e.isLighterThan(t))return e;n=n||.5;const r=e.getRelativeLuminance(),o=t.getRelativeLuminance();return n=n*(o-r)/o,e.lighten(n)}static getDarkerColor(e,t,n){if(e.isDarkerThan(t))return e;n=n||.5;const r=e.getRelativeLuminance();return n=n*(r-t.getRelativeLuminance())/r,e.darken(n)}static{this.white=new s(new o(255,255,255,1))}static{this.black=new s(new o(0,0,0,1))}static{this.red=new s(new o(255,0,0,1))}static{this.blue=new s(new o(0,0,255,1))}static{this.green=new s(new o(0,255,0,1))}static{this.cyan=new s(new o(0,255,255,1))}static{this.lightgrey=new s(new o(211,211,211,1))}static{this.transparent=new s(new o(0,0,0,0))}}!function(e){let t;!function(t){let n;!function(t){function n(e){const t=e.toString(16);return 2!==t.length?"0"+t:t}function r(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:case 65:return 10;case 98:case 66:return 11;case 99:case 67:return 12;case 100:case 68:return 13;case 101:case 69:return 14;case 102:case 70:return 15}return 0}t.formatRGB=function(t){return 1===t.rgba.a?`rgb(${t.rgba.r}, ${t.rgba.g}, ${t.rgba.b})`:e.Format.CSS.formatRGBA(t)},t.formatRGBA=function(e){return`rgba(${e.rgba.r}, ${e.rgba.g}, ${e.rgba.b}, ${+e.rgba.a.toFixed(2)})`},t.formatHSL=function(t){return 1===t.hsla.a?`hsl(${t.hsla.h}, ${(100*t.hsla.s).toFixed(2)}%, ${(100*t.hsla.l).toFixed(2)}%)`:e.Format.CSS.formatHSLA(t)},t.formatHSLA=function(e){return`hsla(${e.hsla.h}, ${(100*e.hsla.s).toFixed(2)}%, ${(100*e.hsla.l).toFixed(2)}%, ${e.hsla.a.toFixed(2)})`},t.formatHex=function(e){return`#${n(e.rgba.r)}${n(e.rgba.g)}${n(e.rgba.b)}`},t.formatHexA=function(t,r=!1){return r&&1===t.rgba.a?e.Format.CSS.formatHex(t):`#${n(t.rgba.r)}${n(t.rgba.g)}${n(t.rgba.b)}${n(Math.round(255*t.rgba.a))}`},t.format=function(t){return t.isOpaque()?e.Format.CSS.formatHex(t):e.Format.CSS.formatRGBA(t)},t.parseHex=function(t){const n=t.length;if(0===n)return null;if(35!==t.charCodeAt(0))return null;if(7===n){const n=16*r(t.charCodeAt(1))+r(t.charCodeAt(2)),i=16*r(t.charCodeAt(3))+r(t.charCodeAt(4)),a=16*r(t.charCodeAt(5))+r(t.charCodeAt(6));return new e(new o(n,i,a,1))}if(9===n){const n=16*r(t.charCodeAt(1))+r(t.charCodeAt(2)),i=16*r(t.charCodeAt(3))+r(t.charCodeAt(4)),a=16*r(t.charCodeAt(5))+r(t.charCodeAt(6)),s=16*r(t.charCodeAt(7))+r(t.charCodeAt(8));return new e(new o(n,i,a,s/255))}if(4===n){const n=r(t.charCodeAt(1)),i=r(t.charCodeAt(2)),a=r(t.charCodeAt(3));return new e(new o(16*n+n,16*i+i,16*a+a))}if(5===n){const n=r(t.charCodeAt(1)),i=r(t.charCodeAt(2)),a=r(t.charCodeAt(3)),s=r(t.charCodeAt(4));return new e(new o(16*n+n,16*i+i,16*a+a,(16*s+s)/255))}return null}}(n=t.CSS||(t.CSS={}))}(t=e.Format||(e.Format={}))}(s||(s={}))},4383:(e,t,n)=>{"use strict";n.d(t,{D7:()=>f,EM:()=>u,Qg:()=>c,cU:()=>i,dz:()=>o,iH:()=>d});const r=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((()=>{if(e.stack){if(p.isErrorNoTelemetry(e))throw new p(e.message+"\n\n"+e.stack);throw new Error(e.message+"\n\n"+e.stack)}throw e}),0)}}emit(e){this.listeners.forEach((t=>{t(e)}))}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function o(e){s(e)||r.onUnexpectedError(e)}function i(e){if(e instanceof Error){const{name:t,message:n}=e;return{$isError:!0,name:t,message:n,stack:e.stacktrace||e.stack,noTelemetry:p.isErrorNoTelemetry(e)}}return e}const a="Canceled";function s(e){return e instanceof l||e instanceof Error&&e.name===a&&e.message===a}class l extends Error{constructor(){super(a),this.name=this.message}}function c(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")}function d(e){return e?new Error(`Illegal state: ${e}`):new Error("Illegal state")}class u extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class p extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof p)return e;const t=new p;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return"CodeExpectedError"===e.name}}class f extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,f.prototype)}}},1234:(e,t,n)=>{"use strict";n.d(t,{Jh:()=>a,vl:()=>m});var r=n(4383),o=n(1484),i=(n(8925),n(8381));var a;!function(e){function t(e){false}function n(e){return(t,n=null,r)=>{let o,i=!1;return o=e((e=>{if(!i)return o?o.dispose():i=!0,t.call(n,e)}),null,r),i&&o.dispose(),o}}function r(e,t,n){return a(((n,r=null,o)=>e((e=>n.call(r,t(e))),null,o)),n)}function i(e,t,n){return a(((n,r=null,o)=>e((e=>t(e)&&n.call(r,e)),null,o)),n)}function a(e,n){let r;const o={onWillAddFirstListener(){r=e(i.fire,i)},onDidRemoveLastListener(){r?.dispose()}};n||t();const i=new m(o);return n?.add(i),i.event}function s(e,n,r=100,o=!1,i=!1,a,s){let l,c,d,u,p=0;const f={leakWarningThreshold:a,onWillAddFirstListener(){l=e((e=>{p++,c=n(c,e),o&&!d&&(_.fire(c),c=void 0),u=()=>{const e=c;c=void 0,d=void 0,(!o||p>1)&&_.fire(e),p=0},"number"===typeof r?(clearTimeout(d),d=setTimeout(u,r)):void 0===d&&(d=0,queueMicrotask(u))}))},onWillRemoveListener(){i&&p>0&&u?.()},onDidRemoveLastListener(){u=void 0,l.dispose()}};s||t();const _=new m(f);return s?.add(_),_.event}e.None=()=>o.jG.None,e.defer=function(e,t){return s(e,(()=>{}),0,void 0,!0,void 0,t)},e.once=n,e.onceIf=function(t,n){return e.once(e.filter(t,n))},e.map=r,e.forEach=function(e,t,n){return a(((n,r=null,o)=>e((e=>{t(e),n.call(r,e)}),null,o)),n)},e.filter=i,e.signal=function(e){return e},e.any=function(...e){return(t,n=null,r)=>function(e,t){t instanceof Array?t.push(e):t&&t.add(e);return e}((0,o.qE)(...e.map((e=>e((e=>t.call(n,e)))))),r)},e.reduce=function(e,t,n,o){let i=n;return r(e,(e=>(i=t(i,e),i)),o)},e.debounce=s,e.accumulate=function(t,n=0,r){return e.debounce(t,((e,t)=>e?(e.push(t),e):[t]),n,void 0,!0,void 0,r)},e.latch=function(e,t=(e,t)=>e===t,n){let r,o=!0;return i(e,(e=>{const n=o||!t(e,r);return o=!1,r=e,n}),n)},e.split=function(t,n,r){return[e.filter(t,n,r),e.filter(t,(e=>!n(e)),r)]},e.buffer=function(e,t=!1,n=[],r){let o=n.slice(),i=e((e=>{o?o.push(e):s.fire(e)}));r&&r.add(i);const a=()=>{o?.forEach((e=>s.fire(e))),o=null},s=new m({onWillAddFirstListener(){i||(i=e((e=>s.fire(e))),r&&r.add(i))},onDidAddFirstListener(){o&&(t?setTimeout(a):a())},onDidRemoveLastListener(){i&&i.dispose(),i=null}});return r&&r.add(s),s.event},e.chain=function(e,t){return(n,r,o)=>{const i=t(new c);return e((function(e){const t=i.evaluate(e);t!==l&&n.call(r,t)}),void 0,o)}};const l=Symbol("HaltChainable");class c{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:l)),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,n=!0;return this.steps.push((r=>{const o=n||!e(r,t);return n=!1,t=r,o?r:l})),this}evaluate(e){for(const t of this.steps)if((e=t(e))===l)break;return e}}e.fromNodeEventEmitter=function(e,t,n=e=>e){const r=(...e)=>o.fire(n(...e)),o=new m({onWillAddFirstListener:()=>e.on(t,r),onDidRemoveLastListener:()=>e.removeListener(t,r)});return o.event},e.fromDOMEventEmitter=function(e,t,n=e=>e){const r=(...e)=>o.fire(n(...e)),o=new m({onWillAddFirstListener:()=>e.addEventListener(t,r),onDidRemoveLastListener:()=>e.removeEventListener(t,r)});return o.event},e.toPromise=function(e){return new Promise((t=>n(e)(t)))},e.fromPromise=function(e){const t=new m;return e.then((e=>{t.fire(e)}),(()=>{t.fire(void 0)})).finally((()=>{t.dispose()})),t.event},e.forward=function(e,t){return e((e=>t.fire(e)))},e.runAndSubscribe=function(e,t,n){return t(n),e((e=>t(e)))};class d{constructor(e,n){this._observable=e,this._counter=0,this._hasChanged=!1;const r={onWillAddFirstListener:()=>{e.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{e.removeObserver(this)}};n||t(),this.emitter=new m(r),n&&n.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,0===this._counter&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}e.fromObservable=function(e,t){return new d(e,t).emitter.event},e.fromObservableLight=function(e){return(t,n,r)=>{let i=0,a=!1;const s={beginUpdate(){i++},endUpdate(){i--,0===i&&(e.reportChanges(),a&&(a=!1,t.call(n)))},handlePossibleChange(){},handleChange(){a=!0}};e.addObserver(s),e.reportChanges();const l={dispose(){e.removeObserver(s)}};return r instanceof o.Cm?r.add(l):Array.isArray(r)&&r.push(l),l}}}(a||(a={}));class s{static{this.all=new Set}static{this._idPool=0}constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${s._idPool++}`,s.all.add(this)}start(e){this._stopWatch=new i.W,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}class l{static{this._idPool=1}constructor(e,t,n=(l._idPool++).toString(16).padStart(3,"0")){this._errorHandler=e,this.threshold=t,this.name=n,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(e,t){const n=this.threshold;if(n<=0||t<n)return;this._stacks||(this._stacks=new Map);const r=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,r+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=.5*n;const[e,r]=this.getMostFrequentStack(),o=`[${this.name}] potential listener LEAK detected, having ${t} listeners already. MOST frequent listener (${r}):`;console.warn(o),console.warn(e);const i=new d(o,e);this._errorHandler(i)}return()=>{const t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}getMostFrequentStack(){if(!this._stacks)return;let e,t=0;for(const[n,r]of this._stacks)(!e||t<r)&&(e=[n,r],t=r);return e}}class c{static create(){const e=new Error;return new c(e.stack??"")}constructor(e){this.value=e}print(){console.warn(this.value.split("\n").slice(2).join("\n"))}}class d extends Error{constructor(e,t){super(e),this.name="ListenerLeakError",this.stack=t}}class u extends Error{constructor(e,t){super(e),this.name="ListenerRefusalError",this.stack=t}}class p{constructor(e){this.value=e}}let f;class m{constructor(e){this._size=0,this._options=e,this._leakageMon=this._options?.leakWarningThreshold?new l(e?.onListenerError??r.dz,this._options?.leakWarningThreshold??-1):void 0,this._perfMon=this._options?._profName?new s(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,t,n)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const 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);const t=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],n=new u(`${e}. HINT: Stack shows most frequent listener (${t[1]}-times)`,t[0]);return(this._options?.onListenerError||r.dz)(n),o.jG.None}if(this._disposed)return o.jG.None;t&&(e=e.bind(t));const i=new p(e);let a;this._leakageMon&&this._size>=Math.ceil(.2*this._leakageMon.threshold)&&(i.stack=c.create(),a=this._leakageMon.check(i.stack,this._size+1)),this._listeners?this._listeners instanceof p?(this._deliveryQueue??=new _,this._listeners=[this._listeners,i]):this._listeners.push(i):(this._options?.onWillAddFirstListener?.(this),this._listeners=i,this._options?.onDidAddFirstListener?.(this)),this._size++;const s=(0,o.s)((()=>{f?.unregister(s),a?.(),this._removeListener(i)}));if(n instanceof o.Cm?n.add(s):Array.isArray(n)&&n.push(s),f){const e=(new Error).stack.split("\n").slice(2,3).join("\n").trim(),t=/(file:|vscode-file:\/\/vscode-app)?(\/[^:]*:\d+:\d+)/.exec(e);f.register(s,t?.[2]??e,s)}return s},this._event}_removeListener(e){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(1===this._size)return this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),void(this._size=0);const t=this._listeners,n=t.indexOf(e);if(-1===n)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,t[n]=void 0;const r=this._deliveryQueue.current===this;if(2*this._size<=t.length){let e=0;for(let n=0;n<t.length;n++)t[n]?t[e++]=t[n]:r&&(this._deliveryQueue.end--,e<this._deliveryQueue.i&&this._deliveryQueue.i--);t.length=e}}_deliver(e,t){if(!e)return;const n=this._options?.onListenerError||r.dz;if(n)try{e.value(t)}catch(o){n(o)}else e.value(t)}_deliverQueue(e){const 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 p)this._deliver(this._listeners,e);else{const t=this._deliveryQueue;t.enqueue(this,e,this._listeners.length),this._deliverQueue(t)}else;this._perfMon?.stop()}hasListeners(){return this._size>0}}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}}},9326:(e,t,n)=>{"use strict";n.d(t,{TH:()=>a,Zn:()=>l,_1:()=>c,kb:()=>s});var r=n(8821),o=(n(8067),n(1508));function i(e){return 47===e||92===e}function a(e){return e.replace(/[\\/]/g,r.SA.sep)}function s(e){return-1===e.indexOf("/")&&(e=a(e)),/^[a-zA-Z]:(\/|$)/.test(e)&&(e="/"+e),e}function l(e,t=r.SA.sep){if(!e)return"";const n=e.length,o=e.charCodeAt(0);if(i(o)){if(i(e.charCodeAt(1))&&!i(e.charCodeAt(2))){let r=3;const o=r;for(;r<n&&!i(e.charCodeAt(r));r++);if(o!==r&&!i(e.charCodeAt(r+1)))for(r+=1;r<n;r++)if(i(e.charCodeAt(r)))return e.slice(0,r+1).replace(/[\\/]/g,t)}return t}if(d(o)&&58===e.charCodeAt(1))return i(e.charCodeAt(2))?e.slice(0,2)+t:e.slice(0,2);let a=e.indexOf("://");if(-1!==a)for(a+=3;a<n;a++)if(i(e.charCodeAt(a)))return e.slice(0,a+1);return""}function c(e,t,n,i=r.Vn){if(e===t)return!0;if(!e||!t)return!1;if(t.length>e.length)return!1;if(n){if(!(0,o.ns)(e,t))return!1;if(t.length===e.length)return!0;let n=t.length;return t.charAt(t.length-1)===i&&n--,e.charAt(n)===i}return t.charAt(t.length-1)!==i&&(t+=i),0===e.indexOf(t)}function d(e){return e>=65&&e<=90||e>=97&&e<=122}},6958:(e,t,n)=>{"use strict";n.d(t,{YW:()=>N,qg:()=>M});var r=n(1940),o=n(9326),i=n(4320),a=n(8821),s=n(8067),l=n(1508);const c="**",d="/",u="[/\\\\]",p="[^/\\\\]",f=/\//g;function m(e,t){switch(e){case 0:return"";case 1:return`${p}*?`;default:return`(?:${u}|${p}+${u}${t?`|${u}${p}+`:""})*?`}}function _(e,t){if(!e)return[];const n=[];let r=!1,o=!1,i="";for(const a of e){switch(a){case t:if(!r&&!o){n.push(i),i="";continue}break;case"{":r=!0;break;case"}":r=!1;break;case"[":o=!0;break;case"]":o=!1}i+=a}return i&&n.push(i),n}function h(e){if(!e)return"";let t="";const n=_(e,d);if(n.every((e=>e===c)))t=".*";else{let e=!1;n.forEach(((r,o)=>{if(r===c){if(e)return;t+=m(2,o===n.length-1)}else{let e=!1,i="",a=!1,s="";for(const n of r)if("}"!==n&&e)i+=n;else if(!a||"]"===n&&s)switch(n){case"{":e=!0;continue;case"[":a=!0;continue;case"}":{const n=`(?:${_(i,",").map((e=>h(e))).join("|")})`;t+=n,e=!1,i="";break}case"]":t+="["+s+"]",a=!1,s="";break;case"?":t+=p;continue;case"*":t+=m(1);continue;default:t+=(0,l.bm)(n)}else{let e;e="-"===n?n:"^"!==n&&"!"!==n||s?n===d?"":(0,l.bm)(n):"^",s+=e}o<n.length-1&&(n[o+1]!==c||o+2<n.length)&&(t+=u)}e=r===c}))}return t}const g=/^\*\*\/\*\.[\w\.-]+$/,y=/^\*\*\/([\w\.-]+)\/?$/,v=/^{\*\*\/\*?[\w\.-]+\/?(,\*\*\/\*?[\w\.-]+\/?)*}$/,b=/^{\*\*\/\*?[\w\.-]+(\/(\*\*)?)?(,\*\*\/\*?[\w\.-]+(\/(\*\*)?)?)*}$/,E=/^\*\*((\/[\w\.-]+)+)\/?$/,S=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,T=new i.qK(1e4),x=function(){return!1},A=function(){return null};function I(e,t){if(!e)return A;let n;n="string"!==typeof e?e.pattern:e,n=n.trim();const r=`${n}_${!!t.trimForExclusions}`;let o,i=T.get(r);return i||(i=g.test(n)?function(e,t){return function(n,r){return"string"===typeof n&&n.endsWith(e)?t:null}}(n.substr(4),n):(o=y.exec(C(n,t)))?function(e,t){const n=`/${e}`,r=`\\${e}`,o=function(o,i){return"string"!==typeof o?null:i?i===e?t:null:o===e||o.endsWith(n)||o.endsWith(r)?t:null},i=[e];return o.basenames=i,o.patterns=[t],o.allBasenames=i,o}(o[1],n):(t.trimForExclusions?b:v).test(n)?function(e,t){const n=L(e.slice(1,-1).split(",").map((e=>I(e,t))).filter((e=>e!==A)),e),r=n.length;if(!r)return A;if(1===r)return n[0];const o=function(t,r){for(let o=0,i=n.length;o<i;o++)if(n[o](t,r))return e;return null},i=n.find((e=>!!e.allBasenames));i&&(o.allBasenames=i.allBasenames);const a=n.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);a.length&&(o.allPaths=a);return o}(n,t):(o=E.exec(C(n,t)))?D(o[1].substr(1),n,!0):(o=S.exec(C(n,t)))?D(o[1],n,!1):function(e){try{const t=new RegExp(`^${h(e)}$`);return function(n){return t.lastIndex=0,"string"===typeof n&&t.test(n)?e:null}}catch(t){return A}}(n),T.set(r,i)),R(i,e)}function R(e,t){if("string"===typeof t)return e;const n=function(n,r){return(0,o._1)(n,t.base,!s.j9)?e((0,l.NB)(n.substr(t.base.length),a.Vn),r):null};return n.allBasenames=e.allBasenames,n.allPaths=e.allPaths,n.basenames=e.basenames,n.patterns=e.patterns,n}function C(e,t){return t.trimForExclusions&&e.endsWith("/**")?e.substr(0,e.length-2):e}function D(e,t,n){const r=a.Vn===a.SA.sep,o=r?e:e.replace(f,a.Vn),i=a.Vn+o,s=a.SA.sep+e;let l;return l=n?function(n,a){return"string"!==typeof n||n!==o&&!n.endsWith(i)&&(r||n!==e&&!n.endsWith(s))?null:t}:function(n,i){return"string"!==typeof n||n!==o&&(r||n!==e)?null:t},l.allPaths=[(n?"*/":"./")+e],l}function N(e,t,n){return!(!e||"string"!==typeof t)&&M(e)(t,void 0,n)}function M(e,t={}){if(!e)return x;if("string"===typeof e||function(e){const t=e;if(!t)return!1;return"string"===typeof t.base&&"string"===typeof t.pattern}(e)){const n=I(e,t);if(n===A)return x;const r=function(e,t){return!!n(e,t)};return n.allBasenames&&(r.allBasenames=n.allBasenames),n.allPaths&&(r.allPaths=n.allPaths),r}return function(e,t){const n=L(Object.getOwnPropertyNames(e).map((n=>function(e,t,n){if(!1===t)return A;const o=I(e,n);if(o===A)return A;if("boolean"===typeof t)return o;if(t){const n=t.when;if("string"===typeof n){const t=(t,i,a,s)=>{if(!s||!o(t,i))return null;const l=s(n.replace("$(basename)",(()=>a)));return(0,r.Qg)(l)?l.then((t=>t?e:null)):l?e:null};return t.requiresSiblings=!0,t}}return o}(n,e[n],t))).filter((e=>e!==A))),o=n.length;if(!o)return A;if(!n.some((e=>!!e.requiresSiblings))){if(1===o)return n[0];const e=function(e,t){let o;for(let i=0,a=n.length;i<a;i++){const a=n[i](e,t);if("string"===typeof a)return a;(0,r.Qg)(a)&&(o||(o=[]),o.push(a))}return o?(async()=>{for(const e of o){const t=await e;if("string"===typeof t)return t}return null})():null},t=n.find((e=>!!e.allBasenames));t&&(e.allBasenames=t.allBasenames);const i=n.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);return i.length&&(e.allPaths=i),e}const i=function(e,t,o){let i,s;for(let l=0,c=n.length;l<c;l++){const c=n[l];c.requiresSiblings&&o&&(t||(t=(0,a.P8)(e)),i||(i=t.substr(0,t.length-(0,a.LC)(e).length)));const d=c(e,t,i,o);if("string"===typeof d)return d;(0,r.Qg)(d)&&(s||(s=[]),s.push(d))}return s?(async()=>{for(const e of s){const t=await e;if("string"===typeof t)return t}return null})():null},s=n.find((e=>!!e.allBasenames));s&&(i.allBasenames=s.allBasenames);const l=n.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);l.length&&(i.allPaths=l);return i}(e,t)}function L(e,t){const n=e.filter((e=>!!e.basenames));if(n.length<2)return e;const r=n.reduce(((e,t)=>{const n=t.basenames;return n?e.concat(n):e}),[]);let o;if(t){o=[];for(let e=0,n=r.length;e<n;e++)o.push(t)}else o=n.reduce(((e,t)=>{const n=t.patterns;return n?e.concat(n):e}),[]);const i=function(e,t){if("string"!==typeof e)return null;if(!t){let n;for(n=e.length;n>0;n--){const t=e.charCodeAt(n-1);if(47===t||92===t)break}t=e.substr(n)}const n=r.indexOf(t);return-1!==n?o[n]:null};i.basenames=r,i.patterns=o,i.allBasenames=r;const a=e.filter((e=>!e.basenames));return a.push(i),a}},5600:(e,t,n)=>{"use strict";n.d(t,{e2:()=>a,sN:()=>o,v7:()=>d});var r=n(1508);function o(e,t){switch(typeof e){case"object":return null===e?i(349,t):Array.isArray(e)?(n=e,r=i(104579,r=t),n.reduce(((e,t)=>o(t,e)),r)):function(e,t){return t=i(181387,t),Object.keys(e).sort().reduce(((t,n)=>(t=a(n,t),o(e[n],t))),t)}(e,t);case"string":return a(e,t);case"boolean":return function(e,t){return i(e?433:863,t)}(e,t);case"number":return i(e,t);case"undefined":return i(937,t);default:return i(617,t)}var n,r}function i(e,t){return(t<<5)-t+e|0}function a(e,t){t=i(149417,t);for(let n=0,r=e.length;n<r;n++)t=i(e.charCodeAt(n),t);return t}function s(e,t,n=32){const r=n-t;return(e<<t|(~((1<<r)-1)&e)>>>r)>>>0}function l(e,t=0,n=e.byteLength,r=0){for(let o=0;o<n;o++)e[t+o]=r}function c(e,t=32){return e instanceof ArrayBuffer?Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join(""):function(e,t,n="0"){for(;e.length<t;)e=n+e;return e}((e>>>0).toString(16),t/4)}class d{static{this._bigBlock32=new DataView(new ArrayBuffer(320))}constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(0===t)return;const n=this._buff;let o,i,a=this._buffLen,s=this._leftoverHighSurrogate;for(0!==s?(o=s,i=-1,s=0):(o=e.charCodeAt(0),i=0);;){let l=o;if(r.pc(o)){if(!(i+1<t)){s=o;break}{const t=e.charCodeAt(i+1);r.LJ(t)?(i++,l=r.z_(o,t)):l=65533}}else r.LJ(o)&&(l=65533);if(a=this._push(n,a,l),i++,!(i<t))break;o=e.charCodeAt(i)}this._buffLen=a,this._leftoverHighSurrogate=s}_push(e,t,n){return n<128?e[t++]=n:n<2048?(e[t++]=192|(1984&n)>>>6,e[t++]=128|(63&n)>>>0):n<65536?(e[t++]=224|(61440&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0):(e[t++]=240|(1835008&n)>>>18,e[t++]=128|(258048&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>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()),c(this._h0)+c(this._h1)+c(this._h2)+c(this._h3)+c(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,l(this._buff,this._buffLen),this._buffLen>56&&(this._step(),l(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=d._bigBlock32,t=this._buffDV;for(let s=0;s<64;s+=4)e.setUint32(s,t.getUint32(s,!1),!1);for(let d=64;d<320;d+=4)e.setUint32(d,s(e.getUint32(d-12,!1)^e.getUint32(d-32,!1)^e.getUint32(d-56,!1)^e.getUint32(d-64,!1),1),!1);let n,r,o,i=this._h0,a=this._h1,l=this._h2,c=this._h3,u=this._h4;for(let d=0;d<80;d++)d<20?(n=a&l|~a&c,r=1518500249):d<40?(n=a^l^c,r=1859775393):d<60?(n=a&l|a&c|l&c,r=2400959708):(n=a^l^c,r=3395469782),o=s(i,5)+n+u+r+e.getUint32(4*d,!1)&4294967295,u=c,c=l,l=s(a,30),a=i,i=o;this._h0=this._h0+i&4294967295,this._h1=this._h1+a&4294967295,this._h2=this._h2+l&4294967295,this._h3=this._h3+c&4294967295,this._h4=this._h4+u&4294967295}}},2522:(e,t,n)=>{"use strict";var r;n.d(t,{f:()=>r}),function(e){function t(e){return e&&"object"===typeof e&&"function"===typeof e[Symbol.iterator]}e.is=t;const n=Object.freeze([]);function*r(e){yield e}e.empty=function(){return n},e.single=r,e.wrap=function(e){return t(e)?e:r(e)},e.from=function(e){return e||n},e.reverse=function*(e){for(let t=e.length-1;t>=0;t--)yield e[t]},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){let n=0;for(const r of e)if(t(r,n++))return!0;return!1},e.find=function(e,t){for(const n of e)if(t(n))return n},e.filter=function*(e,t){for(const n of e)t(n)&&(yield n)},e.map=function*(e,t){let n=0;for(const r of e)yield t(r,n++)},e.flatMap=function*(e,t){let n=0;for(const r of e)yield*t(r,n++)},e.concat=function*(...e){for(const t of e)yield*t},e.reduce=function(e,t,n){let r=n;for(const o of e)r=t(r,o);return r},e.slice=function*(e,t,n=e.length){for(t<0&&(t+=e.length),n<0?n+=e.length:n>e.length&&(n=e.length);t<n;t++)yield e[t]},e.consume=function(t,n=Number.POSITIVE_INFINITY){const r=[];if(0===n)return[r,t];const o=t[Symbol.iterator]();for(let i=0;i<n;i++){const t=o.next();if(t.done)return[r,e.empty()];r.push(t.value)}return[r,{[Symbol.iterator]:()=>o}]},e.asyncToArray=async function(e){const t=[];for await(const n of e)t.push(n);return Promise.resolve(t)}}(r||(r={}))},1090:(e,t,n)=>{"use strict";n.d(t,{d:()=>r});class r{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}},1484:(e,t,n)=>{"use strict";function r(e,t){const n=this;let r,o=!1;return function(){if(o)return r;if(o=!0,t)try{r=e.apply(n,arguments)}finally{t()}else r=e.apply(n,arguments);return r}}n.d(t,{jG:()=>f,$w:()=>_,Cm:()=>p,HE:()=>m,qE:()=>d,AS:()=>c,VD:()=>s,s:()=>u,Ay:()=>a});var o=n(2522);let i=null;function a(e){return i?.trackDisposable(e),e}function s(e){i?.markAsDisposed(e)}function l(e,t){i?.setParent(e,t)}function c(e){if(o.f.is(e)){const n=[];for(const r of e)if(r)try{r.dispose()}catch(t){n.push(t)}if(1===n.length)throw n[0];if(n.length>1)throw new AggregateError(n,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function d(...e){const t=u((()=>c(e)));return function(e,t){if(i)for(const n of e)i.setParent(n,t)}(e,t),t}function u(e){const t=a({dispose:r((()=>{s(t),e()}))});return t}class p{static{this.DISABLE_DISPOSED_WARNING=!1}constructor(){this._toDispose=new Set,this._isDisposed=!1,a(this)}dispose(){this._isDisposed||(s(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(0!==this._toDispose.size)try{c(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return l(e,this),this._isDisposed?p.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}deleteAndLeak(e){e&&this._toDispose.has(e)&&(this._toDispose.delete(e),l(e,null))}}class f{static{this.None=Object.freeze({dispose(){}})}constructor(){this._store=new p,a(this),l(this._store,this)}dispose(){s(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}class m{constructor(){this._isDisposed=!1,a(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){this._isDisposed||e===this._value||(this._value?.dispose(),e&&l(e,this),this._value=e)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,s(this),this._value?.dispose(),this._value=void 0}}class _{constructor(){this._store=new Map,this._isDisposed=!1,a(this)}dispose(){s(this),this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{c(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,t,n=!1){this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),n||this._store.get(e)?.dispose(),this._store.set(e,t)}deleteAndDispose(e){this._store.get(e)?.dispose(),this._store.delete(e)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}},8925:(e,t,n)=>{"use strict";n.d(t,{w:()=>o});class r{static{this.Undefined=new r(void 0)}constructor(e){this.element=e,this.next=r.Undefined,this.prev=r.Undefined}}class o{constructor(){this._first=r.Undefined,this._last=r.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===r.Undefined}clear(){let e=this._first;for(;e!==r.Undefined;){const t=e.next;e.prev=r.Undefined,e.next=r.Undefined,e=t}this._first=r.Undefined,this._last=r.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new r(e);if(this._first===r.Undefined)this._first=n,this._last=n;else if(t){const e=this._last;this._last=n,n.prev=e,e.next=n}else{const e=this._first;this._first=n,n.next=e,e.prev=n}this._size+=1;let o=!1;return()=>{o||(o=!0,this._remove(n))}}shift(){if(this._first!==r.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==r.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==r.Undefined&&e.next!==r.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===r.Undefined&&e.next===r.Undefined?(this._first=r.Undefined,this._last=r.Undefined):e.next===r.Undefined?(this._last=this._last.prev,this._last.next=r.Undefined):e.prev===r.Undefined&&(this._first=this._first.next,this._first.prev=r.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==r.Undefined;)yield e.element,e=e.next}}},4320:(e,t,n)=>{"use strict";var r,o;n.d(t,{cO:()=>d,db:()=>u,fT:()=>a,qK:()=>c});class i{constructor(e,t){this.uri=e,this.value=t}}class a{static{this.defaultToKey=e=>e.toString()}constructor(e,t){if(this[r]="ResourceMap",e instanceof a)this.map=new Map(e.map),this.toKey=t??a.defaultToKey;else if(function(e){return Array.isArray(e)}(e)){this.map=new Map,this.toKey=t??a.defaultToKey;for(const[t,n]of e)this.set(t,n)}else this.map=new Map,this.toKey=e??a.defaultToKey}set(e,t){return this.map.set(this.toKey(e),new i(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){"undefined"!==typeof t&&(e=e.bind(t));for(const[n,r]of this.map)e(r.value,r.uri,this)}*values(){for(const e of this.map.values())yield e.value}*keys(){for(const e of this.map.values())yield e.uri}*entries(){for(const e of this.map.values())yield[e.uri,e.value]}*[(r=Symbol.toStringTag,Symbol.iterator)](){for(const[,e]of this.map)yield[e.uri,e.value]}}class s{constructor(){this[o]="LinkedMap",this._map=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){const n=this._map.get(e);if(n)return 0!==t&&this.touch(n,t),n.value}set(e,t,n=0){let r=this._map.get(e);if(r)r.value=t,0!==n&&this.touch(r,n);else{switch(r={key:e,value:t,next:void 0,previous:void 0},n){case 0:case 2:default:this.addItemLast(r);break;case 1:this.addItemFirst(r)}this._map.set(e,r),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const 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 new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const n=this._state;let 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 new Error("LinkedMap got modified during iteration.");r=r.next}}keys(){const e=this,t=this._state;let n=this._head;const r={[Symbol.iterator]:()=>r,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.key,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return r}values(){const e=this,t=this._state;let n=this._head;const r={[Symbol.iterator]:()=>r,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.value,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return r}entries(){const e=this,t=this._state;let n=this._head;const r={[Symbol.iterator]:()=>r,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:[n.key,n.value],done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return r}[(o=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();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(0===e)return void this.clear();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){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;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 new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,n=e.previous;if(!t||!n)throw new 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 new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;const 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(2===t){if(e===this._tail)return;const 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(){const e=[];return this.forEach(((t,n)=>{e.push([n,t])})),e}fromJSON(e){this.clear();for(const[t,n]of e)this.set(t,n)}}class l extends s{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))}}class c extends l{constructor(e,t=1){super(e,t)}trim(e){this.trimOld(e)}set(e,t){return super.set(e,t),this.checkTrim(),this}}class d{constructor(e){if(this._m1=new Map,this._m2=new Map,e)for(const[t,n]of e)this.set(t,n)}clear(){this._m1.clear(),this._m2.clear()}set(e,t){this._m1.set(e,t),this._m2.set(t,e)}get(e){return this._m1.get(e)}getKey(e){return this._m2.get(e)}delete(e){const t=this._m1.get(e);return void 0!==t&&(this._m1.delete(e),this._m2.delete(t),!0)}keys(){return this._m1.keys()}values(){return this._m1.values()}}class u{constructor(){this.map=new Map}add(e,t){let n=this.map.get(e);n||(n=new Set,this.map.set(e,n)),n.add(t)}delete(e,t){const n=this.map.get(e);n&&(n.delete(t),0===n.size&&this.map.delete(e))}forEach(e,t){const n=this.map.get(e);n&&n.forEach(t)}get(e){const t=this.map.get(e);return t||new Set}}},1939:(e,t,n)=>{"use strict";n.d(t,{K:()=>r});const r=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"})},6456:(e,t,n)=>{"use strict";n.d(t,{ny:()=>r,v$:()=>c,zl:()=>p});var r,o=n(4383),i=n(8067),a=n(1508),s=n(9400),l=n(8821);function c(e,t){return s.r.isUri(e)?(0,a.Q_)(e.scheme,t):(0,a.ns)(e,t+":")}!function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command",e.vscodeRemote="vscode-remote",e.vscodeRemoteResource="vscode-remote-resource",e.vscodeManagedRemoteResource="vscode-managed-remote-resource",e.vscodeUserData="vscode-userdata",e.vscodeCustomEditor="vscode-custom-editor",e.vscodeNotebookCell="vscode-notebook-cell",e.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",e.vscodeNotebookCellMetadataDiff="vscode-notebook-cell-metadata-diff",e.vscodeNotebookCellOutput="vscode-notebook-cell-output",e.vscodeNotebookCellOutputDiff="vscode-notebook-cell-output-diff",e.vscodeNotebookMetadata="vscode-notebook-metadata",e.vscodeInteractiveInput="vscode-interactive-input",e.vscodeSettings="vscode-settings",e.vscodeWorkspaceTrust="vscode-workspace-trust",e.vscodeTerminal="vscode-terminal",e.vscodeChatCodeBlock="vscode-chat-code-block",e.vscodeChatCodeCompareBlock="vscode-chat-code-compare-block",e.vscodeChatSesssion="vscode-chat-editor",e.webviewPanel="webview-panel",e.vscodeWebview="vscode-webview",e.extension="extension",e.vscodeFileResource="vscode-file",e.tmp="tmp",e.vsls="vsls",e.vscodeSourceControl="vscode-scm",e.commentsInput="comment",e.codeSetting="code-setting",e.outputChannel="output"}(r||(r={}));const d=new class{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(e){this._preferredWebSchema=e}get _remoteResourcesPath(){return l.SA.join(this._serverRootPath,r.vscodeRemoteResource)}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(d){return o.dz(d),e}const t=e.authority;let n=this._hosts[t];n&&-1!==n.indexOf(":")&&-1===n.indexOf("[")&&(n=`[${n}]`);const a=this._ports[t],l=this._connectionTokens[t];let c=`path=${encodeURIComponent(e.path)}`;return"string"===typeof l&&(c+=`&tkn=${encodeURIComponent(l)}`),s.r.from({scheme:i.HZ?this._preferredWebSchema:r.vscodeRemoteResource,authority:`${n}:${a}`,path:this._remoteResourcesPath,query:c})}};class u{static{this.FALLBACK_AUTHORITY="vscode-app"}asBrowserUri(e){const t=this.toUri(e);return this.uriToBrowserUri(t)}uriToBrowserUri(e){return e.scheme===r.vscodeRemote?d.rewrite(e):e.scheme!==r.file||!i.ib&&i.lg!==`${r.vscodeFileResource}://${u.FALLBACK_AUTHORITY}`?e:e.with({scheme:r.vscodeFileResource,authority:e.authority||u.FALLBACK_AUTHORITY,query:null,fragment:null})}toUri(e,t){if(s.r.isUri(e))return e;if(globalThis._VSCODE_FILE_ROOT){const t=globalThis._VSCODE_FILE_ROOT;if(/^\w[\w\d+.-]*:\/\//.test(t))return s.r.joinPath(s.r.parse(t,!0),e);const n=l.fj(t,e);return s.r.file(n)}return s.r.parse(t.toUrl(e))}}const p=new u;var f;!function(e){const t=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);e.CoopAndCoep=Object.freeze(t.get("3"));const n="vscode-coi";e.getHeadersFromQuery=function(e){let r;"string"===typeof e?r=new URL(e).searchParams:e instanceof URL?r=e.searchParams:s.r.isUri(e)&&(r=new URL(e.toString(!0)).searchParams);const o=r?.get(n);if(o)return t.get(o)},e.addSearchParam=function(e,t,r){if(!globalThis.crossOriginIsolated)return;const o=t&&r?"3":r?"2":"1";e instanceof URLSearchParams?e.set(n,o):e[n]=o}}(f||(f={}))},146:(e,t,n)=>{"use strict";n.d(t,{V0:()=>o,aI:()=>r,kT:()=>i});Object.prototype.hasOwnProperty;function r(e,t){if(e===t)return!0;if(null===e||void 0===e||null===t||void 0===t)return!1;if(typeof e!==typeof t)return!1;if("object"!==typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;let n,o;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else{const i=[];for(o in e)i.push(o);i.sort();const a=[];for(o in t)a.push(o);if(a.sort(),!r(i,a))return!1;for(n=0;n<i.length;n++)if(!r(e[i[n]],t[i[n]]))return!1}return!0}function o(e){const t=[];for(const n of function(e){let t=[];for(;Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}(e))"function"===typeof e[n]&&t.push(n);return t}function i(e,t){const n=e=>function(){const n=Array.prototype.slice.call(arguments,0);return t(e,n)},r={};for(const o of e)r[o]=n(o);return r}},8821:(e,t,n)=>{"use strict";n.d(t,{P8:()=>C,pD:()=>R,LC:()=>D,fj:()=>x,S8:()=>T,SA:()=>S,V8:()=>I,hd:()=>A,Vn:()=>N,IN:()=>b});var r=n(8067);let o;const i=globalThis.vscode;if("undefined"!==typeof i&&"undefined"!==typeof i.process){const e=i.process;o={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd:()=>e.cwd()}}else o="undefined"!==typeof process&&"string"===typeof process?.versions?.node?{get platform(){return process.platform},get arch(){return process.arch},get env(){return{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}},cwd:()=>({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}.VSCODE_CWD||process.cwd())}:{get platform(){return r.uF?"win32":r.zx?"darwin":"linux"},get arch(){},get env(){return{}},cwd:()=>"/"};const a=o.cwd,s=(o.env,o.platform),l=46,c=47,d=92,u=58;class p extends Error{constructor(e,t,n){let r;"string"===typeof t&&0===t.indexOf("not ")?(r="must not be",t=t.replace(/^not /,"")):r="must be";const o=-1!==e.indexOf(".")?"property":"argument";let i=`The "${e}" ${o} ${r} of type ${t}`;i+=". Received type "+typeof n,super(i),this.code="ERR_INVALID_ARG_TYPE"}}function f(e,t){if("string"!==typeof e)throw new p(t,"string",e)}const m="win32"===s;function _(e){return e===c||e===d}function h(e){return e===c}function g(e){return e>=65&&e<=90||e>=97&&e<=122}function y(e,t,n,r){let o="",i=0,a=-1,s=0,d=0;for(let u=0;u<=e.length;++u){if(u<e.length)d=e.charCodeAt(u);else{if(r(d))break;d=c}if(r(d)){if(a===u-1||1===s);else if(2===s){if(o.length<2||2!==i||o.charCodeAt(o.length-1)!==l||o.charCodeAt(o.length-2)!==l){if(o.length>2){const e=o.lastIndexOf(n);-1===e?(o="",i=0):(o=o.slice(0,e),i=o.length-1-o.lastIndexOf(n)),a=u,s=0;continue}if(0!==o.length){o="",i=0,a=u,s=0;continue}}t&&(o+=o.length>0?`${n}..`:"..",i=2)}else o.length>0?o+=`${n}${e.slice(a+1,u)}`:o=e.slice(a+1,u),i=u-a-1;a=u,s=0}else d===l&&-1!==s?++s:s=-1}return o}function v(e,t){!function(e,t){if(null===e||"object"!==typeof e)throw new p(t,"Object",e)}(t,"pathObject");const n=t.dir||t.root,r=t.base||`${t.name||""}${o=t.ext,o?`${"."===o[0]?"":"."}${o}`:""}`;var o;return n?n===t.root?`${n}${r}`:`${n}${e}${r}`:r}const b={resolve(...e){let t="",n="",r=!1;for(let o=e.length-1;o>=-1;o--){let i;if(o>=0){if(i=e[o],f(i,`paths[${o}]`),0===i.length)continue}else 0===t.length?i=a():(i={NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}[`=${t}`]||a(),(void 0===i||i.slice(0,2).toLowerCase()!==t.toLowerCase()&&i.charCodeAt(2)===d)&&(i=`${t}\\`));const s=i.length;let l=0,c="",p=!1;const m=i.charCodeAt(0);if(1===s)_(m)&&(l=1,p=!0);else if(_(m))if(p=!0,_(i.charCodeAt(1))){let e=2,t=e;for(;e<s&&!_(i.charCodeAt(e));)e++;if(e<s&&e!==t){const n=i.slice(t,e);for(t=e;e<s&&_(i.charCodeAt(e));)e++;if(e<s&&e!==t){for(t=e;e<s&&!_(i.charCodeAt(e));)e++;e!==s&&e===t||(c=`\\\\${n}\\${i.slice(t,e)}`,l=e)}}}else l=1;else g(m)&&i.charCodeAt(1)===u&&(c=i.slice(0,2),l=2,s>2&&_(i.charCodeAt(2))&&(p=!0,l=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=`${i.slice(l)}\\${n}`,r=p,p&&t.length>0)break}return n=y(n,!r,"\\",_),r?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){f(e,"path");const t=e.length;if(0===t)return".";let n,r=0,o=!1;const i=e.charCodeAt(0);if(1===t)return h(i)?"\\":e;if(_(i))if(o=!0,_(e.charCodeAt(1))){let o=2,i=o;for(;o<t&&!_(e.charCodeAt(o));)o++;if(o<t&&o!==i){const a=e.slice(i,o);for(i=o;o<t&&_(e.charCodeAt(o));)o++;if(o<t&&o!==i){for(i=o;o<t&&!_(e.charCodeAt(o));)o++;if(o===t)return`\\\\${a}\\${e.slice(i)}\\`;o!==i&&(n=`\\\\${a}\\${e.slice(i,o)}`,r=o)}}}else r=1;else g(i)&&e.charCodeAt(1)===u&&(n=e.slice(0,2),r=2,t>2&&_(e.charCodeAt(2))&&(o=!0,r=3));let a=r<t?y(e.slice(r),!o,"\\",_):"";return 0!==a.length||o||(a="."),a.length>0&&_(e.charCodeAt(t-1))&&(a+="\\"),void 0===n?o?`\\${a}`:a:o?`${n}\\${a}`:`${n}${a}`},isAbsolute(e){f(e,"path");const t=e.length;if(0===t)return!1;const n=e.charCodeAt(0);return _(n)||t>2&&g(n)&&e.charCodeAt(1)===u&&_(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let t,n;for(let i=0;i<e.length;++i){const r=e[i];f(r,"path"),r.length>0&&(void 0===t?t=n=r:t+=`\\${r}`)}if(void 0===t)return".";let r=!0,o=0;if("string"===typeof n&&_(n.charCodeAt(0))){++o;const e=n.length;e>1&&_(n.charCodeAt(1))&&(++o,e>2&&(_(n.charCodeAt(2))?++o:r=!1))}if(r){for(;o<t.length&&_(t.charCodeAt(o));)o++;o>=2&&(t=`\\${t.slice(o)}`)}return b.normalize(t)},relative(e,t){if(f(e,"from"),f(t,"to"),e===t)return"";const n=b.resolve(e),r=b.resolve(t);if(n===r)return"";if((e=n.toLowerCase())===(t=r.toLowerCase()))return"";let o=0;for(;o<e.length&&e.charCodeAt(o)===d;)o++;let i=e.length;for(;i-1>o&&e.charCodeAt(i-1)===d;)i--;const a=i-o;let s=0;for(;s<t.length&&t.charCodeAt(s)===d;)s++;let l=t.length;for(;l-1>s&&t.charCodeAt(l-1)===d;)l--;const c=l-s,u=a<c?a:c;let p=-1,m=0;for(;m<u;m++){const n=e.charCodeAt(o+m);if(n!==t.charCodeAt(s+m))break;n===d&&(p=m)}if(m!==u){if(-1===p)return r}else{if(c>u){if(t.charCodeAt(s+m)===d)return r.slice(s+m+1);if(2===m)return r.slice(s+m)}a>u&&(e.charCodeAt(o+m)===d?p=m:2===m&&(p=3)),-1===p&&(p=0)}let _="";for(m=o+p+1;m<=i;++m)m!==i&&e.charCodeAt(m)!==d||(_+=0===_.length?"..":"\\..");return s+=p,_.length>0?`${_}${r.slice(s,l)}`:(r.charCodeAt(s)===d&&++s,r.slice(s,l))},toNamespacedPath(e){if("string"!==typeof e||0===e.length)return e;const t=b.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===d){if(t.charCodeAt(1)===d){const e=t.charCodeAt(2);if(63!==e&&e!==l)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(g(t.charCodeAt(0))&&t.charCodeAt(1)===u&&t.charCodeAt(2)===d)return`\\\\?\\${t}`;return e},dirname(e){f(e,"path");const t=e.length;if(0===t)return".";let n=-1,r=0;const o=e.charCodeAt(0);if(1===t)return _(o)?e:".";if(_(o)){if(n=r=1,_(e.charCodeAt(1))){let o=2,i=o;for(;o<t&&!_(e.charCodeAt(o));)o++;if(o<t&&o!==i){for(i=o;o<t&&_(e.charCodeAt(o));)o++;if(o<t&&o!==i){for(i=o;o<t&&!_(e.charCodeAt(o));)o++;if(o===t)return e;o!==i&&(n=r=o+1)}}}}else g(o)&&e.charCodeAt(1)===u&&(n=t>2&&_(e.charCodeAt(2))?3:2,r=n);let i=-1,a=!0;for(let s=t-1;s>=r;--s)if(_(e.charCodeAt(s))){if(!a){i=s;break}}else a=!1;if(-1===i){if(-1===n)return".";i=n}return e.slice(0,i)},basename(e,t){void 0!==t&&f(t,"suffix"),f(e,"path");let n,r=0,o=-1,i=!0;if(e.length>=2&&g(e.charCodeAt(0))&&e.charCodeAt(1)===u&&(r=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let a=t.length-1,s=-1;for(n=e.length-1;n>=r;--n){const l=e.charCodeAt(n);if(_(l)){if(!i){r=n+1;break}}else-1===s&&(i=!1,s=n+1),a>=0&&(l===t.charCodeAt(a)?-1===--a&&(o=n):(a=-1,o=s))}return r===o?o=s:-1===o&&(o=e.length),e.slice(r,o)}for(n=e.length-1;n>=r;--n)if(_(e.charCodeAt(n))){if(!i){r=n+1;break}}else-1===o&&(i=!1,o=n+1);return-1===o?"":e.slice(r,o)},extname(e){f(e,"path");let t=0,n=-1,r=0,o=-1,i=!0,a=0;e.length>=2&&e.charCodeAt(1)===u&&g(e.charCodeAt(0))&&(t=r=2);for(let s=e.length-1;s>=t;--s){const t=e.charCodeAt(s);if(_(t)){if(!i){r=s+1;break}}else-1===o&&(i=!1,o=s+1),t===l?-1===n?n=s:1!==a&&(a=1):-1!==n&&(a=-1)}return-1===n||-1===o||0===a||1===a&&n===o-1&&n===r+1?"":e.slice(n,o)},format:v.bind(null,"\\"),parse(e){f(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.length;let r=0,o=e.charCodeAt(0);if(1===n)return _(o)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(_(o)){if(r=1,_(e.charCodeAt(1))){let t=2,o=t;for(;t<n&&!_(e.charCodeAt(t));)t++;if(t<n&&t!==o){for(o=t;t<n&&_(e.charCodeAt(t));)t++;if(t<n&&t!==o){for(o=t;t<n&&!_(e.charCodeAt(t));)t++;t===n?r=t:t!==o&&(r=t+1)}}}}else if(g(o)&&e.charCodeAt(1)===u){if(n<=2)return t.root=t.dir=e,t;if(r=2,_(e.charCodeAt(2))){if(3===n)return t.root=t.dir=e,t;r=3}}r>0&&(t.root=e.slice(0,r));let i=-1,a=r,s=-1,c=!0,d=e.length-1,p=0;for(;d>=r;--d)if(o=e.charCodeAt(d),_(o)){if(!c){a=d+1;break}}else-1===s&&(c=!1,s=d+1),o===l?-1===i?i=d:1!==p&&(p=1):-1!==i&&(p=-1);return-1!==s&&(-1===i||0===p||1===p&&i===s-1&&i===a+1?t.base=t.name=e.slice(a,s):(t.name=e.slice(a,i),t.base=e.slice(a,s),t.ext=e.slice(i,s))),t.dir=a>0&&a!==r?e.slice(0,a-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},E=(()=>{if(m){const e=/\\/g;return()=>{const t=a().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>a()})(),S={resolve(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const o=r>=0?e[r]:E();f(o,`paths[${r}]`),0!==o.length&&(t=`${o}/${t}`,n=o.charCodeAt(0)===c)}return t=y(t,!n,"/",h),n?`/${t}`:t.length>0?t:"."},normalize(e){if(f(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===c,n=e.charCodeAt(e.length-1)===c;return 0===(e=y(e,!t,"/",h)).length?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute:e=>(f(e,"path"),e.length>0&&e.charCodeAt(0)===c),join(...e){if(0===e.length)return".";let t;for(let n=0;n<e.length;++n){const r=e[n];f(r,"path"),r.length>0&&(void 0===t?t=r:t+=`/${r}`)}return void 0===t?".":S.normalize(t)},relative(e,t){if(f(e,"from"),f(t,"to"),e===t)return"";if((e=S.resolve(e))===(t=S.resolve(t)))return"";const n=e.length,r=n-1,o=t.length-1,i=r<o?r:o;let a=-1,s=0;for(;s<i;s++){const n=e.charCodeAt(1+s);if(n!==t.charCodeAt(1+s))break;n===c&&(a=s)}if(s===i)if(o>i){if(t.charCodeAt(1+s)===c)return t.slice(1+s+1);if(0===s)return t.slice(1+s)}else r>i&&(e.charCodeAt(1+s)===c?a=s:0===s&&(a=0));let l="";for(s=1+a+1;s<=n;++s)s!==n&&e.charCodeAt(s)!==c||(l+=0===l.length?"..":"/..");return`${l}${t.slice(1+a)}`},toNamespacedPath:e=>e,dirname(e){if(f(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===c;let n=-1,r=!0;for(let o=e.length-1;o>=1;--o)if(e.charCodeAt(o)===c){if(!r){n=o;break}}else r=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename(e,t){void 0!==t&&f(t,"ext"),f(e,"path");let n,r=0,o=-1,i=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let a=t.length-1,s=-1;for(n=e.length-1;n>=0;--n){const l=e.charCodeAt(n);if(l===c){if(!i){r=n+1;break}}else-1===s&&(i=!1,s=n+1),a>=0&&(l===t.charCodeAt(a)?-1===--a&&(o=n):(a=-1,o=s))}return r===o?o=s:-1===o&&(o=e.length),e.slice(r,o)}for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===c){if(!i){r=n+1;break}}else-1===o&&(i=!1,o=n+1);return-1===o?"":e.slice(r,o)},extname(e){f(e,"path");let t=-1,n=0,r=-1,o=!0,i=0;for(let a=e.length-1;a>=0;--a){const s=e.charCodeAt(a);if(s!==c)-1===r&&(o=!1,r=a+1),s===l?-1===t?t=a:1!==i&&(i=1):-1!==t&&(i=-1);else if(!o){n=a+1;break}}return-1===t||-1===r||0===i||1===i&&t===r-1&&t===n+1?"":e.slice(t,r)},format:v.bind(null,"/"),parse(e){f(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.charCodeAt(0)===c;let r;n?(t.root="/",r=1):r=0;let o=-1,i=0,a=-1,s=!0,d=e.length-1,u=0;for(;d>=r;--d){const t=e.charCodeAt(d);if(t!==c)-1===a&&(s=!1,a=d+1),t===l?-1===o?o=d:1!==u&&(u=1):-1!==o&&(u=-1);else if(!s){i=d+1;break}}if(-1!==a){const r=0===i&&n?1:i;-1===o||0===u||1===u&&o===a-1&&o===i+1?t.base=t.name=e.slice(r,a):(t.name=e.slice(r,o),t.base=e.slice(r,a),t.ext=e.slice(o,a))}return i>0?t.dir=e.slice(0,i-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};S.win32=b.win32=b,S.posix=b.posix=S;const T=m?b.normalize:S.normalize,x=m?b.join:S.join,A=m?b.resolve:S.resolve,I=m?b.relative:S.relative,R=m?b.dirname:S.dirname,C=m?b.basename:S.basename,D=m?b.extname:S.extname,N=m?b.sep:S.sep},8067:(e,t,n)=>{"use strict";n.d(t,{H8:()=>W,HZ:()=>D,OS:()=>P,UP:()=>G,_p:()=>k,cm:()=>F,gm:()=>z,ib:()=>C,j9:()=>R,lg:()=>N,nr:()=>B,uF:()=>A,zx:()=>I});var r=n(8209);const o="en";let i,a,s=!1,l=!1,c=!1,d=!1,u=!1,p=!1,f=!1,m=!1,_=!1,h=!1,g=null,y=null,v=null;const b=globalThis;let E;"undefined"!==typeof b.vscode&&"undefined"!==typeof b.vscode.process?E=b.vscode.process:"undefined"!==typeof process&&"string"===typeof process?.versions?.node&&(E=process);const S="string"===typeof E?.versions?.electron,T=S&&"renderer"===E?.type;if("object"===typeof E){s="win32"===E.platform,l="darwin"===E.platform,c="linux"===E.platform,d=c&&!!E.env.SNAP&&!!E.env.SNAP_REVISION,f=S,_=!!E.env.CI||!!E.env.BUILD_ARTIFACTSTAGINGDIRECTORY,i=o,g=o;const e=E.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e);i=t.userLocale,y=t.osLocale,g=t.resolvedLanguage||o,v=t.languagePack?.translationsConfigFile}catch(j){}u=!0}else"object"!==typeof navigator||T?console.error("Unable to resolve platform."):(a=navigator.userAgent,s=a.indexOf("Windows")>=0,l=a.indexOf("Macintosh")>=0,m=(a.indexOf("Macintosh")>=0||a.indexOf("iPad")>=0||a.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,c=a.indexOf("Linux")>=0,h=a?.indexOf("Mobi")>=0,p=!0,g=r.i8()||o,i=navigator.language.toLowerCase(),y=i);let x=0;l?x=1:s?x=3:c&&(x=2);const A=s,I=l,R=c,C=u,D=p,N=p&&"function"===typeof b.importScripts?b.origin:void 0,M=a,L="function"===typeof b.postMessage&&!b.importScripts,k=(()=>{if(L){const e=[];b.addEventListener("message",(t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let n=0,r=e.length;n<r;n++){const r=e[n];if(r.id===t.data.vscodeScheduleAsyncWork)return e.splice(n,1),void r.callback()}}));let t=0;return n=>{const r=++t;e.push({id:r,callback:n}),b.postMessage({vscodeScheduleAsyncWork:r},"*")}}return e=>setTimeout(e)})(),P=l||m?2:s?1:3;let w=!0,O=!1;function F(){if(!O){O=!0;const e=new Uint8Array(2);e[0]=1,e[1]=2;const t=new Uint16Array(e.buffer);w=513===t[0]}return w}const W=!!(M&&M.indexOf("Chrome")>=0),z=!!(M&&M.indexOf("Firefox")>=0),B=!!(!W&&M&&M.indexOf("Safari")>=0),G=!!(M&&M.indexOf("Edg/")>=0);M&&M.indexOf("Android")},9403:(e,t,n)=>{"use strict";n.d(t,{B6:()=>_,P8:()=>p});var r=n(9326),o=n(6456),i=n(8821),a=n(8067),s=n(1508),l=n(9400);function c(e){return(0,l.I)(e,!0)}class d{constructor(e){this._ignorePathCasing=e}compare(e,t,n=!1){return e===t?0:(0,s.UD)(this.getComparisonKey(e,n),this.getComparisonKey(t,n))}isEqual(e,t,n=!1){return e===t||!(!e||!t)&&this.getComparisonKey(e,n)===this.getComparisonKey(t,n)}getComparisonKey(e,t=!1){return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:t?null:void 0}).toString()}isEqualOrParent(e,t,n=!1){if(e.scheme===t.scheme){if(e.scheme===o.ny.file)return r._1(c(e),c(t),this._ignorePathCasing(e))&&e.query===t.query&&(n||e.fragment===t.fragment);if(f(e.authority,t.authority))return r._1(e.path,t.path,this._ignorePathCasing(e),"/")&&e.query===t.query&&(n||e.fragment===t.fragment)}return!1}joinPath(e,...t){return l.r.joinPath(e,...t)}basenameOrAuthority(e){return p(e)||e.authority}basename(e){return i.SA.basename(e.path)}extname(e){return i.SA.extname(e.path)}dirname(e){if(0===e.path.length)return e;let t;return e.scheme===o.ny.file?t=l.r.file(i.pD(c(e))).path:(t=i.SA.dirname(e.path),e.authority&&t.length&&47!==t.charCodeAt(0)&&(console.error(`dirname("${e.toString})) resulted in a relative path`),t="/")),e.with({path:t})}normalizePath(e){if(!e.path.length)return e;let t;return t=e.scheme===o.ny.file?l.r.file(i.S8(c(e))).path:i.SA.normalize(e.path),e.with({path:t})}relativePath(e,t){if(e.scheme!==t.scheme||!f(e.authority,t.authority))return;if(e.scheme===o.ny.file){const n=i.V8(c(e),c(t));return a.uF?r.TH(n):n}let n=e.path||"/";const s=t.path||"/";if(this._ignorePathCasing(e)){let e=0;for(const t=Math.min(n.length,s.length);e<t&&(n.charCodeAt(e)===s.charCodeAt(e)||n.charAt(e).toLowerCase()===s.charAt(e).toLowerCase());e++);n=s.substr(0,e)+n.substr(e)}return i.SA.relative(n,s)}resolvePath(e,t){if(e.scheme===o.ny.file){const n=l.r.file(i.hd(c(e),t));return e.with({authority:n.authority,path:n.path})}return t=r.kb(t),e.with({path:i.SA.resolve(e.path,t)})}isAbsolutePath(e){return!!e.path&&"/"===e.path[0]}isEqualAuthority(e,t){return e===t||void 0!==e&&void 0!==t&&(0,s.Q_)(e,t)}hasTrailingPathSeparator(e,t=i.Vn){if(e.scheme===o.ny.file){const n=c(e);return n.length>r.Zn(n).length&&n[n.length-1]===t}{const t=e.path;return t.length>1&&47===t.charCodeAt(t.length-1)&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}}removeTrailingPathSeparator(e,t=i.Vn){return m(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e,t=i.Vn){let n=!1;if(e.scheme===o.ny.file){const o=c(e);n=void 0!==o&&o.length===r.Zn(o).length&&o[o.length-1]===t}else{t="/";const r=e.path;n=1===r.length&&47===r.charCodeAt(r.length-1)}return n||m(e,t)?e:e.with({path:e.path+"/"})}}const u=new d((()=>!1)),p=(new d((e=>e.scheme!==o.ny.file||!a.j9)),new d((e=>!0)),u.isEqual.bind(u),u.isEqualOrParent.bind(u),u.getComparisonKey.bind(u),u.basenameOrAuthority.bind(u),u.basename.bind(u)),f=(u.extname.bind(u),u.dirname.bind(u),u.joinPath.bind(u),u.normalizePath.bind(u),u.relativePath.bind(u),u.resolvePath.bind(u),u.isAbsolutePath.bind(u),u.isEqualAuthority.bind(u)),m=u.hasTrailingPathSeparator.bind(u);u.removeTrailingPathSeparator.bind(u),u.addTrailingPathSeparator.bind(u);var _;!function(e){e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=function(t){const n=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach((e=>{const[t,r]=e.split(":");t&&r&&n.set(t,r)}));const r=t.path.substring(0,t.path.indexOf(";"));return r&&n.set(e.META_DATA_MIME,r),n}}(_||(_={}))},8381:(e,t,n)=>{"use strict";n.d(t,{W:()=>o});const r=globalThis.performance&&"function"===typeof globalThis.performance.now;class o{static create(e){return new o(e)}constructor(e){this._now=r&&!1===e?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}}},1508:(e,t,n)=>{"use strict";n.d(t,{$X:()=>L,AV:()=>i,E_:()=>C,HG:()=>p,LJ:()=>S,LU:()=>O,NB:()=>l,OS:()=>c,Q_:()=>v,Ss:()=>P,UD:()=>m,Wv:()=>y,Z5:()=>x,_J:()=>M,aC:()=>N,bm:()=>s,eY:()=>d,jy:()=>a,km:()=>I,lT:()=>f,ne:()=>k,ns:()=>b,pc:()=>E,r_:()=>w,tk:()=>F,tl:()=>B,uz:()=>u,y_:()=>G,z_:()=>T});var r=n(1788),o=n(1090);function i(e){return!e||"string"!==typeof e||0===e.trim().length}function a(e){return e.replace(/[<>"'&]/g,(e=>{switch(e){case"<":return"<";case">":return">";case'"':return""";case"'":return"'";case"&":return"&"}return e}))}function s(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function l(e,t){if(!e||!t)return e;const n=t.length;if(0===n||0===e.length)return e;let r=0;for(;e.indexOf(t,r)===r;)r+=n;return e.substring(r)}function c(e,t,n={}){if(!e)throw new Error("Cannot create regex from empty string");t||(e=s(e)),n.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));let r="";return n.global&&(r+="g"),n.matchCase||(r+="i"),n.multiline&&(r+="m"),n.unicode&&(r+="u"),new RegExp(e,r)}function d(e){if("^"===e.source||"^$"===e.source||"$"===e.source||"^\\s*$"===e.source)return!1;return!(!e.exec("")||0!==e.lastIndex)}function u(e){return e.split(/\r\n|\r|\n/)}function p(e){for(let t=0,n=e.length;t<n;t++){const n=e.charCodeAt(t);if(32!==n&&9!==n)return t}return-1}function f(e,t=e.length-1){for(let n=t;n>=0;n--){const t=e.charCodeAt(n);if(32!==t&&9!==t)return n}return-1}function m(e,t){return e<t?-1:e>t?1:0}function _(e,t,n=0,r=e.length,o=0,i=t.length){for(;n<r&&o<i;n++,o++){const r=e.charCodeAt(n),i=t.charCodeAt(o);if(r<i)return-1;if(r>i)return 1}const a=r-n,s=i-o;return a<s?-1:a>s?1:0}function h(e,t,n=0,r=e.length,o=0,i=t.length){for(;n<r&&o<i;n++,o++){let a=e.charCodeAt(n),s=t.charCodeAt(o);if(a===s)continue;if(a>=128||s>=128)return _(e.toLowerCase(),t.toLowerCase(),n,r,o,i);g(a)&&(a-=32),g(s)&&(s-=32);const l=a-s;if(0!==l)return l}const a=r-n,s=i-o;return a<s?-1:a>s?1:0}function g(e){return e>=97&&e<=122}function y(e){return e>=65&&e<=90}function v(e,t){return e.length===t.length&&0===h(e,t)}function b(e,t){const n=t.length;return!(t.length>e.length)&&0===h(e,t,0,n)}function E(e){return 55296<=e&&e<=56319}function S(e){return 56320<=e&&e<=57343}function T(e,t){return t-56320+(e-55296<<10)+65536}function x(e,t,n){const r=e.charCodeAt(n);if(E(r)&&n+1<t){const t=e.charCodeAt(n+1);if(S(t))return T(r,t)}return r}class A{get offset(){return this._offset}constructor(e,t=0){this._str=e,this._len=e.length,this._offset=t}setOffset(e){this._offset=e}prevCodePoint(){const e=function(e,t){const n=e.charCodeAt(t-1);if(S(n)&&t>1){const r=e.charCodeAt(t-2);if(E(r))return T(r,n)}return n}(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){const e=x(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class I{get offset(){return this._iterator.offset}constructor(e,t=0){this._iterator=new A(e,t)}nextGraphemeLength(){const e=z.getInstance(),t=this._iterator,n=t.offset;let r=e.getGraphemeBreakType(t.nextCodePoint());for(;!t.eol();){const n=t.offset,o=e.getGraphemeBreakType(t.nextCodePoint());if(W(r,o)){t.setOffset(n);break}r=o}return t.offset-n}prevGraphemeLength(){const e=z.getInstance(),t=this._iterator,n=t.offset;let r=e.getGraphemeBreakType(t.prevCodePoint());for(;t.offset>0;){const n=t.offset,o=e.getGraphemeBreakType(t.prevCodePoint());if(W(o,r)){t.setOffset(n);break}r=o}return n-t.offset}eol(){return this._iterator.eol()}}let R;function C(e){return R||(R=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/),R.test(e)}const D=/^[\t\n\r\x20-\x7E]*$/;function N(e){return D.test(e)}const M=/[\u2028\u2029]/;function L(e){return M.test(e)}function k(e){return e>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function P(e){return e>=127462&&e<=127487||8986===e||8987===e||9200===e||9203===e||e>=9728&&e<=10175||11088===e||11093===e||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129008||e>=129280&&e<=129535||e>=129648&&e<=129782}const w=String.fromCharCode(65279);function O(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}function F(e){return(e%=52)<26?String.fromCharCode(97+e):String.fromCharCode(65+e-26)}function W(e,t){return 0===e?5!==t&&7!==t:(2!==e||3!==t)&&(4===e||2===e||3===e||(4===t||2===t||3===t||(8!==e||8!==t&&9!==t&&11!==t&&12!==t)&&((11!==e&&9!==e||9!==t&&10!==t)&&((12!==e&&10!==e||10!==t)&&(5!==t&&13!==t&&(7!==t&&(1!==e&&((13!==e||14!==t)&&(6!==e||6!==t)))))))))}class z{static{this._INSTANCE=null}static getInstance(){return z._INSTANCE||(z._INSTANCE=new z),z._INSTANCE}constructor(){this._data=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]")}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;const t=this._data,n=t.length/3;let r=1;for(;r<=n;)if(e<t[3*r])r*=2;else{if(!(e>t[3*r+1]))return t[3*r+2];r=2*r+1}return 0}}class B{static{this.ambiguousCharacterData=new o.d((()=>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,8218,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,8242,96,1370,96,1523,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,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,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,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,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,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,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,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,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,71922,67,71913,67,65315,67,8557,67,8450,67,8493,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,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,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,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,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,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,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,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,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,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,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,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,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,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,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,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,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,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,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,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,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,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,71919,87,71910,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,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,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,66293,90,71909,90,65338,90,8484,90,8488,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,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,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,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,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,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,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,65283,35,65292,44,65307,59],"ko":[8211,45,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,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,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,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[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,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,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,65283,35,65307,59]}')))}static{this.cache=new r.o5({getCacheKey:JSON.stringify},(e=>{function t(e){const t=new Map;for(let n=0;n<e.length;n+=2)t.set(e[n],e[n+1]);return t}function n(e,t){if(!e)return t;const n=new Map;for(const[r,o]of e)t.has(r)&&n.set(r,o);return n}const r=this.ambiguousCharacterData.value;let o,i=e.filter((e=>!e.startsWith("_")&&e in r));0===i.length&&(i=["_default"]);for(const s of i){o=n(o,t(r[s]))}const a=function(e,t){const n=new Map(e);for(const[r,o]of t)n.set(r,o);return n}(t(r._common),o);return new B(a)}))}static getInstance(e){return B.cache.get(Array.from(e))}static{this._locales=new o.d((()=>Object.keys(B.ambiguousCharacterData.value).filter((e=>!e.startsWith("_")))))}static getLocales(){return B._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())}}class G{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,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,12288,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]")}static{this._data=void 0}static getData(){return this._data||(this._data=new Set(G.getRawData())),this._data}static isInvisibleCharacter(e){return G.getData().has(e)}static get codePoints(){return G.getData()}}},631:(e,t,n)=>{"use strict";function r(e){return"string"===typeof e}function o(e){return"object"===typeof e&&null!==e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function i(e){return"undefined"===typeof e}function a(e){return i(e)||null===e}n.d(t,{Gv:()=>o,Kg:()=>r,b0:()=>i,z:()=>a})},5152:(e,t,n)=>{"use strict";function r(e){return e<0?0:e>255?255:0|e}function o(e){return e<0?0:e>4294967295?4294967295:0|e}n.d(t,{W:()=>r,j:()=>o})},9400:(e,t,n)=>{"use strict";n.d(t,{I:()=>g,r:()=>u});var r=n(8821),o=n(8067);const i=/^\w[\w\d+.-]*$/,a=/^\//,s=/^\/\//;const l="",c="/",d=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class u{static isUri(e){return e instanceof u||!!e&&("string"===typeof e.authority&&"string"===typeof e.fragment&&"string"===typeof e.path&&"string"===typeof e.query&&"string"===typeof e.scheme&&"string"===typeof e.fsPath&&"function"===typeof e.with&&"function"===typeof e.toString)}constructor(e,t,n,r,o,d=!1){"object"===typeof e?(this.scheme=e.scheme||l,this.authority=e.authority||l,this.path=e.path||l,this.query=e.query||l,this.fragment=e.fragment||l):(this.scheme=function(e,t){return e||t?e:"file"}(e,d),this.authority=t||l,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==c&&(t=c+t):t=c}return t}(this.scheme,n||l),this.query=r||l,this.fragment=o||l,function(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!i.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!a.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(s.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,d))}get fsPath(){return g(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:o,fragment:i}=e;return void 0===t?t=this.scheme:null===t&&(t=l),void 0===n?n=this.authority:null===n&&(n=l),void 0===r?r=this.path:null===r&&(r=l),void 0===o?o=this.query:null===o&&(o=l),void 0===i?i=this.fragment:null===i&&(i=l),t===this.scheme&&n===this.authority&&r===this.path&&o===this.query&&i===this.fragment?this:new f(t,n,r,o,i)}static parse(e,t=!1){const n=d.exec(e);return n?new f(n[2]||l,E(n[4]||l),E(n[5]||l),E(n[7]||l),E(n[9]||l),t):new f(l,l,l,l,l)}static file(e){let t=l;if(o.uF&&(e=e.replace(/\\/g,c)),e[0]===c&&e[1]===c){const n=e.indexOf(c,2);-1===n?(t=e.substring(2),e=c):(t=e.substring(2,n),e=e.substring(n)||c)}return new f("file",t,e,l,l)}static from(e,t){return new f(e.scheme,e.authority,e.path,e.query,e.fragment,t)}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let n;return n=o.uF&&"file"===e.scheme?u.file(r.IN.join(g(e,!0),...t)).path:r.SA.join(e.path,...t),e.with({path:n})}toString(e=!1){return y(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof u)return e;{const t=new f(e);return t._formatted=e.external??null,t._fsPath=e._sep===p?e.fsPath??null:null,t}}return e}}const p=o.uF?1:void 0;class f extends u{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=g(this,!1)),this._fsPath}toString(e=!1){return e?y(this,!0):(this._formatted||(this._formatted=y(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=p),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}}const m={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 _(e,t,n){let r,o=-1;for(let i=0;i<e.length;i++){const a=e.charCodeAt(i);if(a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||45===a||46===a||95===a||126===a||t&&47===a||n&&91===a||n&&93===a||n&&58===a)-1!==o&&(r+=encodeURIComponent(e.substring(o,i)),o=-1),void 0!==r&&(r+=e.charAt(i));else{void 0===r&&(r=e.substr(0,i));const t=m[a];void 0!==t?(-1!==o&&(r+=encodeURIComponent(e.substring(o,i)),o=-1),r+=t):-1===o&&(o=i)}}return-1!==o&&(r+=encodeURIComponent(e.substring(o))),void 0!==r?r:e}function h(e){let t;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);35===r||63===r?(void 0===t&&(t=e.substr(0,n)),t+=m[r]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function g(e,t){let n;return n=e.authority&&e.path.length>1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,o.uF&&(n=n.replace(/\//g,"\\")),n}function y(e,t){const n=t?h:_;let r="",{scheme:o,authority:i,path:a,query:s,fragment:l}=e;if(o&&(r+=o,r+=":"),(i||"file"===o)&&(r+=c,r+=c),i){let e=i.indexOf("@");if(-1!==e){const t=i.substr(0,e);i=i.substr(e+1),e=t.lastIndexOf(":"),-1===e?r+=n(t,!1,!1):(r+=n(t.substr(0,e),!1,!1),r+=":",r+=n(t.substr(e+1),!1,!0)),r+="@"}i=i.toLowerCase(),e=i.lastIndexOf(":"),-1===e?r+=n(i,!1,!0):(r+=n(i.substr(0,e),!1,!0),r+=i.substr(e))}if(a){if(a.length>=3&&47===a.charCodeAt(0)&&58===a.charCodeAt(2)){const e=a.charCodeAt(1);e>=65&&e<=90&&(a=`/${String.fromCharCode(e+32)}:${a.substr(3)}`)}else if(a.length>=2&&58===a.charCodeAt(1)){const e=a.charCodeAt(0);e>=65&&e<=90&&(a=`${String.fromCharCode(e+32)}:${a.substr(2)}`)}r+=n(a,!0,!1)}return s&&(r+="?",r+=n(s,!1,!1)),l&&(r+="#",r+=t?l:_(l,!1,!1)),r}function v(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+v(e.substr(3)):e}}const b=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function E(e){return e.match(b)?e.replace(b,(e=>v(e))):e}},1929:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SimpleWorkerClient:()=>v,SimpleWorkerServer:()=>S,create:()=>T,logOnceWebWorkerWarning:()=>p});var r=n(4383),o=n(1234),i=n(1484),a=n(6456),s=n(8067),l=n(1508);const c="default",d="$initialize";let u=!1;function p(e){s.HZ&&(u||(u=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(e.message))}class f{constructor(e,t,n,r,o){this.vsWorker=e,this.req=t,this.channel=n,this.method=r,this.args=o,this.type=0}}class m{constructor(e,t,n,r){this.vsWorker=e,this.seq=t,this.res=n,this.err=r,this.type=1}}class _{constructor(e,t,n,r,o){this.vsWorker=e,this.req=t,this.channel=n,this.eventName=r,this.arg=o,this.type=2}}class h{constructor(e,t,n){this.vsWorker=e,this.req=t,this.event=n,this.type=3}}class g{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class y{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,t,n){const r=String(++this._lastSentReq);return new Promise(((o,i)=>{this._pendingReplies[r]={resolve:o,reject:i},this._send(new f(this._workerId,r,e,t,n))}))}listen(e,t,n){let r=null;const i=new o.vl({onWillAddFirstListener:()=>{r=String(++this._lastSentReq),this._pendingEmitters.set(r,i),this._send(new _(this._workerId,r,e,t,n))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(r),this._send(new g(this._workerId,r)),r=null}});return i.event}handleMessage(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))}createProxyToRemoteChannel(e,t){const n={get:(n,r)=>("string"!==typeof r||n[r]||(E(r)?n[r]=t=>this.listen(e,r,t):b(r)?n[r]=this.listen(e,r,void 0):36===r.charCodeAt(0)&&(n[r]=async(...n)=>(await(t?.()),this.sendMessage(e,r,n)))),n[r])};return new Proxy(Object.create(null),n)}_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])return void console.warn("Got reply to unknown seq");const t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let n=e.err;return e.err.$isError&&(n=new Error,n.name=e.err.name,n.message=e.err.message,n.stack=e.err.stack),void t.reject(n)}t.resolve(e.res)}_handleRequestMessage(e){const t=e.req;this._handler.handleMessage(e.channel,e.method,e.args).then((e=>{this._send(new m(this._workerId,t,e,void 0))}),(e=>{e.detail instanceof Error&&(e.detail=(0,r.cU)(e.detail)),this._send(new m(this._workerId,t,void 0,(0,r.cU)(e)))}))}_handleSubscribeEventMessage(e){const t=e.req,n=this._handler.handleEvent(e.channel,e.eventName,e.arg)((e=>{this._send(new h(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){const t=[];if(0===e.type)for(let n=0;n<e.args.length;n++)e.args[n]instanceof ArrayBuffer&&t.push(e.args[n]);else 1===e.type&&e.res instanceof ArrayBuffer&&t.push(e.res);this._handler.sendMessage(e,t)}}class v extends i.jG{constructor(e,t){super(),this._localChannels=new Map,this._worker=this._register(e.create({amdModuleId:"vs/base/common/worker/simpleWorker",esmModuleLocation:t.esmModuleLocation,label:t.label},(e=>{this._protocol.handleMessage(e)}),(e=>{(0,r.dz)(e)}))),this._protocol=new y({sendMessage:(e,t)=>{this._worker.postMessage(e,t)},handleMessage:(e,t,n)=>this._handleMessage(e,t,n),handleEvent:(e,t,n)=>this._handleEvent(e,t,n)}),this._protocol.setWorkerId(this._worker.getId());let n=null;const o=globalThis.require;"undefined"!==typeof o&&"function"===typeof o.getConfig?n=o.getConfig():"undefined"!==typeof globalThis.requirejs&&(n=globalThis.requirejs.s.contexts._.config),this._onModuleLoaded=this._protocol.sendMessage(c,d,[this._worker.getId(),JSON.parse(JSON.stringify(n)),t.amdModuleId]),this.proxy=this._protocol.createProxyToRemoteChannel(c,(async()=>{await this._onModuleLoaded})),this._onModuleLoaded.catch((e=>{this._onError("Worker failed to load "+t.amdModuleId,e)}))}_handleMessage(e,t,n){const r=this._localChannels.get(e);if(!r)return Promise.reject(new Error(`Missing channel ${e} on main thread`));if("function"!==typeof r[t])return Promise.reject(new Error(`Missing method ${t} on main thread channel ${e}`));try{return Promise.resolve(r[t].apply(r,n))}catch(o){return Promise.reject(o)}}_handleEvent(e,t,n){const r=this._localChannels.get(e);if(!r)throw new Error(`Missing channel ${e} on main thread`);if(E(t)){const o=r[t].call(r,n);if("function"!==typeof o)throw new Error(`Missing dynamic event ${t} on main thread channel ${e}.`);return o}if(b(t)){const n=r[t];if("function"!==typeof n)throw new Error(`Missing event ${t} on main thread channel ${e}.`);return n}throw new Error(`Malformed event name ${t}`)}setChannel(e,t){this._localChannels.set(e,t)}_onError(e,t){console.error(e),console.info(t)}}function b(e){return"o"===e[0]&&"n"===e[1]&&l.Wv(e.charCodeAt(2))}function E(e){return/^onDynamic/.test(e)&&l.Wv(e.charCodeAt(9))}class S{constructor(e,t){this._localChannels=new Map,this._remoteChannels=new Map,this._requestHandlerFactory=t,this._requestHandler=null,this._protocol=new y({sendMessage:(t,n)=>{e(t,n)},handleMessage:(e,t,n)=>this._handleMessage(e,t,n),handleEvent:(e,t,n)=>this._handleEvent(e,t,n)})}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,t,n){if(e===c&&t===d)return this.initialize(n[0],n[1],n[2]);const r=e===c?this._requestHandler:this._localChannels.get(e);if(!r)return Promise.reject(new Error(`Missing channel ${e} on worker thread`));if("function"!==typeof r[t])return Promise.reject(new Error(`Missing method ${t} on worker thread channel ${e}`));try{return Promise.resolve(r[t].apply(r,n))}catch(o){return Promise.reject(o)}}_handleEvent(e,t,n){const r=e===c?this._requestHandler:this._localChannels.get(e);if(!r)throw new Error(`Missing channel ${e} on worker thread`);if(E(t)){const e=r[t].call(r,n);if("function"!==typeof e)throw new Error(`Missing dynamic event ${t} on request handler.`);return e}if(b(t)){const e=r[t];if("function"!==typeof e)throw new Error(`Missing event ${t} on request handler.`);return e}throw new Error(`Malformed event name ${t}`)}getChannel(e){if(!this._remoteChannels.has(e)){const t=this._protocol.createProxyToRemoteChannel(e);this._remoteChannels.set(e,t)}return this._remoteChannels.get(e)}async initialize(e,t,r){if(this._protocol.setWorkerId(e),!this._requestHandlerFactory){t&&("undefined"!==typeof t.baseUrl&&delete t.baseUrl,"undefined"!==typeof t.paths&&"undefined"!==typeof t.paths.vs&&delete t.paths.vs,"undefined"!==typeof t.trustedTypesPolicy&&delete t.trustedTypesPolicy,t.catchError=!0,globalThis.require.config(t));{const e=a.zl.asBrowserUri(`${r}.js`).toString(!0);return n(5890)(`${e}`).then((e=>{if(this._requestHandler=e.create(this),!this._requestHandler)throw new Error("No RequestHandler!")}))}}this._requestHandler=this._requestHandlerFactory(this)}}function T(e){return new S(e,null)}},534:(e,t,n)=>{"use strict";n.d(t,{V:()=>o});var r=n(5152);class o{constructor(e){const t=(0,r.W)(e);this._defaultValue=t,this._asciiMap=o._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){const t=new Uint8Array(256);return t.fill(e),t}set(e,t){const n=(0,r.W)(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()}}},7119:(e,t,n)=>{"use strict";n.d(t,{AQ:()=>g,aZ:()=>h,l5:()=>E,lQ:()=>v,s7:()=>x,sH:()=>S,sN:()=>y,ss:()=>b,yI:()=>_,zp:()=>T});var r=n(8209),o=n(7661),i=n(5845),a=n(5724);const s=(0,i.x1A)("editor.lineHighlightBackground",null,r.kg("lineHighlight","Background color for the highlight of line at the cursor position.")),l=((0,i.x1A)("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hcDark:"#f38518",hcLight:i.b1q},r.kg("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),(0,i.x1A)("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hcDark:null,hcLight:null},r.kg("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),(0,i.x1A)("editor.rangeHighlightBorder",{dark:null,light:null,hcDark:i.buw,hcLight:i.buw},r.kg("rangeHighlightBorder","Background color of the border around highlighted ranges.")),(0,i.x1A)("editor.symbolHighlightBackground",{dark:i.Ubg,light:i.Ubg,hcDark:null,hcLight:null},r.kg("symbolHighlight","Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."),!0),(0,i.x1A)("editor.symbolHighlightBorder",{dark:null,light:null,hcDark:i.buw,hcLight:i.buw},r.kg("symbolHighlightBorder","Background color of the border around highlighted symbols.")),(0,i.x1A)("editorCursor.foreground",{dark:"#AEAFAD",light:o.Q1.black,hcDark:o.Q1.white,hcLight:"#0F4A85"},r.kg("caret","Color of the editor cursor."))),c=(0,i.x1A)("editorCursor.background",null,r.kg("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),d=((0,i.x1A)("editorMultiCursor.primary.foreground",l,r.kg("editorMultiCursorPrimaryForeground","Color of the primary editor cursor when multiple cursors are present.")),(0,i.x1A)("editorMultiCursor.primary.background",c,r.kg("editorMultiCursorPrimaryBackground","The background color of the primary editor cursor when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),(0,i.x1A)("editorMultiCursor.secondary.foreground",l,r.kg("editorMultiCursorSecondaryForeground","Color of secondary editor cursors when multiple cursors are present.")),(0,i.x1A)("editorMultiCursor.secondary.background",c,r.kg("editorMultiCursorSecondaryBackground","The background color of secondary editor cursors when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),(0,i.x1A)("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hcDark:"#e3e4e229",hcLight:"#CCCCCC"},r.kg("editorWhitespaces","Color of whitespace characters in the editor."))),u=((0,i.x1A)("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hcDark:o.Q1.white,hcLight:"#292929"},r.kg("editorLineNumbers","Color of editor line numbers.")),(0,i.x1A)("editorIndentGuide.background",d,r.kg("editorIndentGuides","Color of the editor indentation guides."),!1,r.kg("deprecatedEditorIndentGuides","'editorIndentGuide.background' is deprecated. Use 'editorIndentGuide.background1' instead."))),p=(0,i.x1A)("editorIndentGuide.activeBackground",d,r.kg("editorActiveIndentGuide","Color of the active editor indentation guides."),!1,r.kg("deprecatedEditorActiveIndentGuide","'editorIndentGuide.activeBackground' is deprecated. Use 'editorIndentGuide.activeBackground1' instead.")),f=((0,i.x1A)("editorIndentGuide.background1",u,r.kg("editorIndentGuides1","Color of the editor indentation guides (1).")),(0,i.x1A)("editorIndentGuide.background2","#00000000",r.kg("editorIndentGuides2","Color of the editor indentation guides (2).")),(0,i.x1A)("editorIndentGuide.background3","#00000000",r.kg("editorIndentGuides3","Color of the editor indentation guides (3).")),(0,i.x1A)("editorIndentGuide.background4","#00000000",r.kg("editorIndentGuides4","Color of the editor indentation guides (4).")),(0,i.x1A)("editorIndentGuide.background5","#00000000",r.kg("editorIndentGuides5","Color of the editor indentation guides (5).")),(0,i.x1A)("editorIndentGuide.background6","#00000000",r.kg("editorIndentGuides6","Color of the editor indentation guides (6).")),(0,i.x1A)("editorIndentGuide.activeBackground1",p,r.kg("editorActiveIndentGuide1","Color of the active editor indentation guides (1).")),(0,i.x1A)("editorIndentGuide.activeBackground2","#00000000",r.kg("editorActiveIndentGuide2","Color of the active editor indentation guides (2).")),(0,i.x1A)("editorIndentGuide.activeBackground3","#00000000",r.kg("editorActiveIndentGuide3","Color of the active editor indentation guides (3).")),(0,i.x1A)("editorIndentGuide.activeBackground4","#00000000",r.kg("editorActiveIndentGuide4","Color of the active editor indentation guides (4).")),(0,i.x1A)("editorIndentGuide.activeBackground5","#00000000",r.kg("editorActiveIndentGuide5","Color of the active editor indentation guides (5).")),(0,i.x1A)("editorIndentGuide.activeBackground6","#00000000",r.kg("editorActiveIndentGuide6","Color of the active editor indentation guides (6).")),(0,i.x1A)("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hcDark:i.buw,hcLight:i.buw},r.kg("editorActiveLineNumber","Color of editor active line number"),!1,r.kg("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead."))),m=((0,i.x1A)("editorLineNumber.activeForeground",f,r.kg("editorActiveLineNumber","Color of editor active line number")),(0,i.x1A)("editorLineNumber.dimmedForeground",null,r.kg("editorDimmedLineNumber","Color of the final editor line when editor.renderFinalNewline is set to dimmed.")),(0,i.x1A)("editorRuler.foreground",{dark:"#5A5A5A",light:o.Q1.lightgrey,hcDark:o.Q1.white,hcLight:"#292929"},r.kg("editorRuler","Color of the editor rulers.")),(0,i.x1A)("editorCodeLens.foreground",{dark:"#999999",light:"#919191",hcDark:"#999999",hcLight:"#292929"},r.kg("editorCodeLensForeground","Foreground color of editor CodeLens")),(0,i.x1A)("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hcDark:"#0064001a",hcLight:"#0000"},r.kg("editorBracketMatchBackground","Background color behind matching brackets")),(0,i.x1A)("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hcDark:i.b1q,hcLight:i.b1q},r.kg("editorBracketMatchBorder","Color for matching brackets boxes")),(0,i.x1A)("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hcDark:"#7f7f7f4d",hcLight:"#666666"},r.kg("editorOverviewRulerBorder","Color of the overview ruler border.")),(0,i.x1A)("editorOverviewRuler.background",null,r.kg("editorOverviewRulerBackground","Background color of the editor overview ruler.")),(0,i.x1A)("editorGutter.background",i.YtV,r.kg("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),(0,i.x1A)("editorUnnecessaryCode.border",{dark:null,light:null,hcDark:o.Q1.fromHex("#fff").transparent(.8),hcLight:i.b1q},r.kg("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),(0,i.x1A)("editorUnnecessaryCode.opacity",{dark:o.Q1.fromHex("#000a"),light:o.Q1.fromHex("#0007"),hcDark:null,hcLight:null},r.kg("unnecessaryCodeOpacity","Opacity of unnecessary (unused) source code in the editor. For example, \"#000000c0\" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out.")),(0,i.x1A)("editorGhostText.border",{dark:null,light:null,hcDark:o.Q1.fromHex("#fff").transparent(.8),hcLight:o.Q1.fromHex("#292929").transparent(.8)},r.kg("editorGhostTextBorder","Border color of ghost text in the editor.")),(0,i.x1A)("editorGhostText.foreground",{dark:o.Q1.fromHex("#ffffff56"),light:o.Q1.fromHex("#0007"),hcDark:null,hcLight:null},r.kg("editorGhostTextForeground","Foreground color of the ghost text in the editor.")),(0,i.x1A)("editorGhostText.background",null,r.kg("editorGhostTextBackground","Background color of the ghost text in the editor.")),new o.Q1(new o.bU(0,122,204,.6))),_=((0,i.x1A)("editorOverviewRuler.rangeHighlightForeground",m,r.kg("overviewRulerRangeHighlight","Overview ruler marker color for range highlights. The color must not be opaque so as not to hide underlying decorations."),!0),(0,i.x1A)("editorOverviewRuler.errorForeground",{dark:new o.Q1(new o.bU(255,18,18,.7)),light:new o.Q1(new o.bU(255,18,18,.7)),hcDark:new o.Q1(new o.bU(255,50,50,1)),hcLight:"#B5200D"},r.kg("overviewRuleError","Overview ruler marker color for errors."))),h=(0,i.x1A)("editorOverviewRuler.warningForeground",{dark:i.Hng,light:i.Hng,hcDark:i.Stt,hcLight:i.Stt},r.kg("overviewRuleWarning","Overview ruler marker color for warnings.")),g=(0,i.x1A)("editorOverviewRuler.infoForeground",{dark:i.pOz,light:i.pOz,hcDark:i.IIb,hcLight:i.IIb},r.kg("overviewRuleInfo","Overview ruler marker color for infos.")),y=(0,i.x1A)("editorBracketHighlight.foreground1",{dark:"#FFD700",light:"#0431FAFF",hcDark:"#FFD700",hcLight:"#0431FAFF"},r.kg("editorBracketHighlightForeground1","Foreground color of brackets (1). Requires enabling bracket pair colorization.")),v=(0,i.x1A)("editorBracketHighlight.foreground2",{dark:"#DA70D6",light:"#319331FF",hcDark:"#DA70D6",hcLight:"#319331FF"},r.kg("editorBracketHighlightForeground2","Foreground color of brackets (2). Requires enabling bracket pair colorization.")),b=(0,i.x1A)("editorBracketHighlight.foreground3",{dark:"#179FFF",light:"#7B3814FF",hcDark:"#87CEFA",hcLight:"#7B3814FF"},r.kg("editorBracketHighlightForeground3","Foreground color of brackets (3). Requires enabling bracket pair colorization.")),E=(0,i.x1A)("editorBracketHighlight.foreground4","#00000000",r.kg("editorBracketHighlightForeground4","Foreground color of brackets (4). Requires enabling bracket pair colorization.")),S=(0,i.x1A)("editorBracketHighlight.foreground5","#00000000",r.kg("editorBracketHighlightForeground5","Foreground color of brackets (5). Requires enabling bracket pair colorization.")),T=(0,i.x1A)("editorBracketHighlight.foreground6","#00000000",r.kg("editorBracketHighlightForeground6","Foreground color of brackets (6). Requires enabling bracket pair colorization.")),x=(0,i.x1A)("editorBracketHighlight.unexpectedBracket.foreground",{dark:new o.Q1(new o.bU(255,18,18,.8)),light:new o.Q1(new o.bU(255,18,18,.8)),hcDark:"new Color(new RGBA(255, 50, 50, 1))",hcLight:"#B5200D"},r.kg("editorBracketHighlightUnexpectedBracketForeground","Foreground color of unexpected brackets."));(0,i.x1A)("editorBracketPairGuide.background1","#00000000",r.kg("editorBracketPairGuide.background1","Background color of inactive bracket pair guides (1). Requires enabling bracket pair guides.")),(0,i.x1A)("editorBracketPairGuide.background2","#00000000",r.kg("editorBracketPairGuide.background2","Background color of inactive bracket pair guides (2). Requires enabling bracket pair guides.")),(0,i.x1A)("editorBracketPairGuide.background3","#00000000",r.kg("editorBracketPairGuide.background3","Background color of inactive bracket pair guides (3). Requires enabling bracket pair guides.")),(0,i.x1A)("editorBracketPairGuide.background4","#00000000",r.kg("editorBracketPairGuide.background4","Background color of inactive bracket pair guides (4). Requires enabling bracket pair guides.")),(0,i.x1A)("editorBracketPairGuide.background5","#00000000",r.kg("editorBracketPairGuide.background5","Background color of inactive bracket pair guides (5). Requires enabling bracket pair guides.")),(0,i.x1A)("editorBracketPairGuide.background6","#00000000",r.kg("editorBracketPairGuide.background6","Background color of inactive bracket pair guides (6). Requires enabling bracket pair guides.")),(0,i.x1A)("editorBracketPairGuide.activeBackground1","#00000000",r.kg("editorBracketPairGuide.activeBackground1","Background color of active bracket pair guides (1). Requires enabling bracket pair guides.")),(0,i.x1A)("editorBracketPairGuide.activeBackground2","#00000000",r.kg("editorBracketPairGuide.activeBackground2","Background color of active bracket pair guides (2). Requires enabling bracket pair guides.")),(0,i.x1A)("editorBracketPairGuide.activeBackground3","#00000000",r.kg("editorBracketPairGuide.activeBackground3","Background color of active bracket pair guides (3). Requires enabling bracket pair guides.")),(0,i.x1A)("editorBracketPairGuide.activeBackground4","#00000000",r.kg("editorBracketPairGuide.activeBackground4","Background color of active bracket pair guides (4). Requires enabling bracket pair guides.")),(0,i.x1A)("editorBracketPairGuide.activeBackground5","#00000000",r.kg("editorBracketPairGuide.activeBackground5","Background color of active bracket pair guides (5). Requires enabling bracket pair guides.")),(0,i.x1A)("editorBracketPairGuide.activeBackground6","#00000000",r.kg("editorBracketPairGuide.activeBackground6","Background color of active bracket pair guides (6). Requires enabling bracket pair guides.")),(0,i.x1A)("editorUnicodeHighlight.border",i.Hng,r.kg("editorUnicodeHighlight.border","Border color used to highlight unicode characters.")),(0,i.x1A)("editorUnicodeHighlight.background",i.whs,r.kg("editorUnicodeHighlight.background","Background color used to highlight unicode characters."));(0,a.zy)(((e,t)=>{const n=e.getColor(i.YtV),r=e.getColor(s),o=r&&!r.isTransparent()?r:n;o&&t.addRule(`.monaco-editor .inputarea.ime-input { background-color: ${o}; }`)}))},4454:(e,t,n)=>{"use strict";function r(e){let t=0,n=0,r=0,o=0;for(let i=0,a=e.length;i<a;i++){const s=e.charCodeAt(i);13===s?(0===t&&(n=i),t++,i+1<a&&10===e.charCodeAt(i+1)?(o|=2,i++):o|=3,r=i+1):10===s&&(o|=1,0===t&&(n=i),t++,r=i+1)}return 0===t&&(n=e.length),[t,n,e.length-r,o]}n.d(t,{W:()=>r})},6571:(e,t,n)=>{"use strict";n.d(t,{M:()=>s,S:()=>l});var r=n(4383),o=n(4444),i=n(6677),a=n(6041);class s{static fromRangeInclusive(e){return new s(e.startLineNumber,e.endLineNumber+1)}static joinMany(e){if(0===e.length)return[];let t=new l(e[0].slice());for(let n=1;n<e.length;n++)t=t.getUnion(new l(e[n].slice()));return t.ranges}static join(e){if(0===e.length)throw new r.D7("lineRanges cannot be empty");let t=e[0].startLineNumber,n=e[0].endLineNumberExclusive;for(let r=1;r<e.length;r++)t=Math.min(t,e[r].startLineNumber),n=Math.max(n,e[r].endLineNumberExclusive);return new s(t,n)}static ofLength(e,t){return new s(e,e+t)}static deserialize(e){return new s(e[0],e[1])}constructor(e,t){if(e>t)throw new r.D7(`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(e){return new s(this.startLineNumber+e,this.endLineNumberExclusive+e)}deltaLength(e){return new s(this.startLineNumber,this.endLineNumberExclusive+e)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(e){return new s(Math.min(this.startLineNumber,e.startLineNumber),Math.max(this.endLineNumberExclusive,e.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(e){const t=Math.max(this.startLineNumber,e.startLineNumber),n=Math.min(this.endLineNumberExclusive,e.endLineNumberExclusive);if(t<=n)return new s(t,n)}intersectsStrict(e){return this.startLineNumber<e.endLineNumberExclusive&&e.startLineNumber<this.endLineNumberExclusive}overlapOrTouch(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 i.Q(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new i.Q(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(e){const 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]}includes(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}toOffsetRange(){return new o.L(this.startLineNumber-1,this.endLineNumberExclusive-1)}}class l{constructor(e=[]){this._normalizedRanges=e}get ranges(){return this._normalizedRanges}addRange(e){if(0===e.length)return;const t=(0,a.hw)(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),n=(0,a.iM)(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===n)this._normalizedRanges.splice(t,0,e);else if(t===n-1){const n=this._normalizedRanges[t];this._normalizedRanges[t]=n.join(e)}else{const r=this._normalizedRanges[t].join(this._normalizedRanges[n-1]).join(e);this._normalizedRanges.splice(t,n-t,r)}}contains(e){const t=(0,a.lx)(this._normalizedRanges,(t=>t.startLineNumber<=e));return!!t&&t.endLineNumberExclusive>e}intersects(e){const t=(0,a.lx)(this._normalizedRanges,(t=>t.startLineNumber<e.endLineNumberExclusive));return!!t&&t.endLineNumberExclusive>e.startLineNumber}getUnion(e){if(0===this._normalizedRanges.length)return e;if(0===e._normalizedRanges.length)return this;const t=[];let n=0,r=0,o=null;for(;n<this._normalizedRanges.length||r<e._normalizedRanges.length;){let i=null;if(n<this._normalizedRanges.length&&r<e._normalizedRanges.length){const t=this._normalizedRanges[n],o=e._normalizedRanges[r];t.startLineNumber<o.startLineNumber?(i=t,n++):(i=o,r++)}else n<this._normalizedRanges.length?(i=this._normalizedRanges[n],n++):(i=e._normalizedRanges[r],r++);null===o?o=i:o.endLineNumberExclusive>=i.startLineNumber?o=new s(o.startLineNumber,Math.max(o.endLineNumberExclusive,i.endLineNumberExclusive)):(t.push(o),o=i)}return null!==o&&t.push(o),new l(t)}subtractFrom(e){const t=(0,a.hw)(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),n=(0,a.iM)(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===n)return new l([e]);const r=[];let o=e.startLineNumber;for(let i=t;i<n;i++){const e=this._normalizedRanges[i];e.startLineNumber>o&&r.push(new s(o,e.startLineNumber)),o=e.endLineNumberExclusive}return o<e.endLineNumberExclusive&&r.push(new s(o,e.endLineNumberExclusive)),new l(r)}toString(){return this._normalizedRanges.map((e=>e.toString())).join(", ")}getIntersection(e){const t=[];let n=0,r=0;for(;n<this._normalizedRanges.length&&r<e._normalizedRanges.length;){const o=this._normalizedRanges[n],i=e._normalizedRanges[r],a=o.intersect(i);a&&!a.isEmpty&&t.push(a),o.endLineNumberExclusive<i.endLineNumberExclusive?n++:r++}return new l(t)}getWithDelta(e){return new l(this._normalizedRanges.map((t=>t.delta(e))))}}},4444:(e,t,n)=>{"use strict";n.d(t,{L:()=>o});var r=n(4383);class o{static addRange(e,t){let n=0;for(;n<t.length&&t[n].endExclusive<e.start;)n++;let r=n;for(;r<t.length&&t[r].start<=e.endExclusive;)r++;if(n===r)t.splice(n,0,e);else{const i=Math.min(e.start,t[n].start),a=Math.max(e.endExclusive,t[r-1].endExclusive);t.splice(n,r-n,new o(i,a))}}static tryCreate(e,t){if(!(e>t))return new o(e,t)}static ofLength(e){return new o(0,e)}static ofStartAndLength(e,t){return new o(e,e+t)}constructor(e,t){if(this.start=e,this.endExclusive=t,e>t)throw new r.D7(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new o(this.start+e,this.endExclusive+e)}deltaStart(e){return new o(this.start+e,this.endExclusive)}deltaEnd(e){return new o(this.start,this.endExclusive+e)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}contains(e){return this.start<=e&&e<this.endExclusive}join(e){return new o(Math.min(this.start,e.start),Math.max(this.endExclusive,e.endExclusive))}intersect(e){const t=Math.max(this.start,e.start),n=Math.min(this.endExclusive,e.endExclusive);if(t<=n)return new o(t,n)}intersects(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 r.D7(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,e))}clipCyclic(e){if(this.isEmpty)throw new r.D7(`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)}}},3069:(e,t,n)=>{"use strict";n.d(t,{y:()=>r});class r{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new r(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return r.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return r.isBefore(this,e)}static isBefore(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column}isBeforeOrEqual(e){return r.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<=t.column}static compare(e,t){const n=0|e.lineNumber,r=0|t.lineNumber;if(n===r){return(0|e.column)-(0|t.column)}return n-r}clone(){return new r(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new r(e.lineNumber,e.column)}static isIPosition(e){return e&&"number"===typeof e.lineNumber&&"number"===typeof e.column}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}}},6677:(e,t,n)=>{"use strict";n.d(t,{Q:()=>o});var r=n(3069);class o{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 o.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return o.containsPosition(this,e)}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(e){return o.containsRange(this,e)}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(e){return o.strictContainsRange(this,e)}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(e){return o.plusRange(this,e)}static plusRange(e,t){let n,r,i,a;return t.startLineNumber<e.startLineNumber?(n=t.startLineNumber,r=t.startColumn):t.startLineNumber===e.startLineNumber?(n=t.startLineNumber,r=Math.min(t.startColumn,e.startColumn)):(n=e.startLineNumber,r=e.startColumn),t.endLineNumber>e.endLineNumber?(i=t.endLineNumber,a=t.endColumn):t.endLineNumber===e.endLineNumber?(i=t.endLineNumber,a=Math.max(t.endColumn,e.endColumn)):(i=e.endLineNumber,a=e.endColumn),new o(n,r,i,a)}intersectRanges(e){return o.intersectRanges(this,e)}static intersectRanges(e,t){let n=e.startLineNumber,r=e.startColumn,i=e.endLineNumber,a=e.endColumn;const s=t.startLineNumber,l=t.startColumn,c=t.endLineNumber,d=t.endColumn;return n<s?(n=s,r=l):n===s&&(r=Math.max(r,l)),i>c?(i=c,a=d):i===c&&(a=Math.min(a,d)),n>i||n===i&&r>a?null:new o(n,r,i,a)}equalsRange(e){return o.equalsRange(this,e)}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 o.getEndPosition(this)}static getEndPosition(e){return new r.y(e.endLineNumber,e.endColumn)}getStartPosition(){return o.getStartPosition(this)}static getStartPosition(e){return new r.y(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new o(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new o(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return o.collapseToStart(this)}static collapseToStart(e){return new o(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return o.collapseToEnd(this)}static collapseToEnd(e){return new o(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new o(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,t=e){return new o(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new o(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"===typeof e.startLineNumber&&"number"===typeof e.startColumn&&"number"===typeof e.endLineNumber&&"number"===typeof e.endColumn}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 compareRangesUsingStarts(e,t){if(e&&t){const n=0|e.startLineNumber,r=0|t.startLineNumber;if(n===r){const n=0|e.startColumn,r=0|t.startColumn;if(n===r){const n=0|e.endLineNumber,r=0|t.endLineNumber;if(n===r){return(0|e.endColumn)-(0|t.endColumn)}return n-r}return n-r}return n-r}return(e?1:0)-(t?1:0)}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}}},5326:(e,t,n)=>{"use strict";n.d(t,{L:()=>i});var r=n(3069),o=n(6677);class i extends o.Q{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(e){return i.selectionsEqual(this,e)}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(e,t){return 0===this.getDirection()?new i(this.startLineNumber,this.startColumn,e,t):new i(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new r.y(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new r.y(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return 0===this.getDirection()?new i(e,t,this.endLineNumber,this.endColumn):new i(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new i(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return 0===t?new i(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new i(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new i(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.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&&"number"===typeof e.selectionStartLineNumber&&"number"===typeof e.selectionStartColumn&&"number"===typeof e.positionLineNumber&&"number"===typeof e.positionColumn}static createWithDirection(e,t,n,r,o){return 0===o?new i(e,t,n,r):new i(n,r,e,t)}}},973:(e,t,n)=>{"use strict";n.d(t,{W:()=>i});var r=n(3069),o=n(6677);class i{static{this.zero=new i(0,0)}static betweenPositions(e,t){return e.lineNumber===t.lineNumber?new i(0,t.column-e.column):new i(t.lineNumber-e.lineNumber,t.column-1)}static ofRange(e){return i.betweenPositions(e.getStartPosition(),e.getEndPosition())}static ofText(e){let t=0,n=0;for(const r of e)"\n"===r?(t++,n=0):n++;return new i(t,n)}constructor(e,t){this.lineCount=e,this.columnCount=t}isGreaterThanOrEqualTo(e){return this.lineCount!==e.lineCount?this.lineCount>e.lineCount:this.columnCount>=e.columnCount}createRange(e){return 0===this.lineCount?new o.Q(e.lineNumber,e.column,e.lineNumber,e.column+this.columnCount):new o.Q(e.lineNumber,e.column,e.lineNumber+this.lineCount,this.columnCount+1)}addToPosition(e){return 0===this.lineCount?new r.y(e.lineNumber,e.column+this.columnCount):new r.y(e.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}}},6486:(e,t,n)=>{"use strict";n.d(t,{Io:()=>a,Ld:()=>i,Th:()=>l});var r=n(2522),o=n(8925);const i=function(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const n of"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?")e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}();function a(e){let t=i;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}const s=new o.w;function l(e,t,n,o,i){if(t=a(t),i||(i=r.f.first(s)),n.length>i.maxLen){let r=e-i.maxLen/2;return r<0?r=0:o+=r,l(e,t,n=n.substring(r,e+i.maxLen/2),o,i)}const d=Date.now(),u=e-1-o;let p=-1,f=null;for(let r=1;!(Date.now()-d>=i.timeBudget);r++){const e=u-i.windowSize*r;t.lastIndex=Math.max(0,e);const o=c(t,n,u,p);if(!o&&f)break;if(f=o,e<=0)break;p=e}if(f){const e={word:f[0],startColumn:o+1+f.index,endColumn:o+1+f.index+f[0].length};return t.lastIndex=0,e}return null}function c(e,t,n,r){let o;for(;o=e.exec(t);){const t=o.index||0;if(t<=n&&e.lastIndex>=n)return o;if(r>0&&t>r)return null}return null}s.unshift({maxLen:1e3,windowSize:15,timeBudget:150})},5982:(e,t,n)=>{"use strict";n.d(t,{x:()=>r});class r{static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return 0!==(1024&e)}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(16744448&e)>>>15}static getBackground(e){return(4278190080&e)>>>24}static getClassNameFromMetadata(e){let t="mtk"+this.getForeground(e);const n=this.getFontStyle(e);return 1&n&&(t+=" mtki"),2&n&&(t+=" mtkb"),4&n&&(t+=" mtku"),8&n&&(t+=" mtks"),t}static getInlineStyleFromMetadata(e,t){const n=this.getForeground(e),r=this.getFontStyle(e);let o=`color: ${t[n]};`;1&r&&(o+="font-style: italic;"),2&r&&(o+="font-weight: bold;");let i="";return 4&r&&(i+=" underline"),8&r&&(i+=" line-through"),i&&(o+=`text-decoration:${i};`),o}static getPresentationFromMetadata(e){const t=this.getForeground(e),n=this.getFontStyle(e);return{foreground:t,italic:Boolean(1&n),bold:Boolean(2&n),underline:Boolean(4&n),strikethrough:Boolean(8&n)}}}},2083:(e,t,n)=>{"use strict";n.d(t,{rY:()=>h,ou:()=>_,dG:()=>T,OB:()=>x});var r=n(9493),o=(n(9400),n(1234)),i=n(1484);class a{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new o.vl,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]),(0,i.s)((()=>{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();const n=new s(this,e,t);return this._factories.set(e,n),(0,i.s)((()=>{const t=this._factories.get(e);t&&t===n&&(this._factories.delete(e),t.dispose())}))}async getOrCreate(e){const t=this.get(e);if(t)return t;const n=this._factories.get(e);return!n||n.isResolved?null:(await n.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;const 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}}class s extends i.jG{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._resolvePromise=this._create()),this._resolvePromise}async _create(){const e=await this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}}var l,c,d,u,p,f,m=n(8209);class _{constructor(e,t,n){this.offset=e,this.type=t,this.language=n,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}class h{constructor(e,t){this.tokens=e,this.endState=t,this._encodedTokenizationResultBrand=void 0}}!function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(l||(l={})),function(e){const t=new Map;t.set(0,r.W.symbolMethod),t.set(1,r.W.symbolFunction),t.set(2,r.W.symbolConstructor),t.set(3,r.W.symbolField),t.set(4,r.W.symbolVariable),t.set(5,r.W.symbolClass),t.set(6,r.W.symbolStruct),t.set(7,r.W.symbolInterface),t.set(8,r.W.symbolModule),t.set(9,r.W.symbolProperty),t.set(10,r.W.symbolEvent),t.set(11,r.W.symbolOperator),t.set(12,r.W.symbolUnit),t.set(13,r.W.symbolValue),t.set(15,r.W.symbolEnum),t.set(14,r.W.symbolConstant),t.set(15,r.W.symbolEnum),t.set(16,r.W.symbolEnumMember),t.set(17,r.W.symbolKeyword),t.set(27,r.W.symbolSnippet),t.set(18,r.W.symbolText),t.set(19,r.W.symbolColor),t.set(20,r.W.symbolFile),t.set(21,r.W.symbolReference),t.set(22,r.W.symbolCustomColor),t.set(23,r.W.symbolFolder),t.set(24,r.W.symbolTypeParameter),t.set(25,r.W.account),t.set(26,r.W.issues),e.toIcon=function(e){let n=t.get(e);return n||(console.info("No codicon found for CompletionItemKind "+e),n=r.W.symbolProperty),n};const n=new Map;n.set("method",0),n.set("function",1),n.set("constructor",2),n.set("field",3),n.set("variable",4),n.set("class",5),n.set("struct",6),n.set("interface",7),n.set("module",8),n.set("property",9),n.set("event",10),n.set("operator",11),n.set("unit",12),n.set("value",13),n.set("constant",14),n.set("enum",15),n.set("enum-member",16),n.set("enumMember",16),n.set("keyword",17),n.set("snippet",27),n.set("text",18),n.set("color",19),n.set("file",20),n.set("reference",21),n.set("customcolor",22),n.set("folder",23),n.set("type-parameter",24),n.set("typeParameter",24),n.set("account",25),n.set("issue",26),e.fromString=function(e,t){let r=n.get(e);return"undefined"!==typeof r||t||(r=9),r}}(c||(c={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(d||(d={}));!function(e){e[e.Automatic=0]="Automatic",e[e.PasteAs=1]="PasteAs"}(u||(u={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(p||(p={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(f||(f={}));(0,m.kg)("Array","array"),(0,m.kg)("Boolean","boolean"),(0,m.kg)("Class","class"),(0,m.kg)("Constant","constant"),(0,m.kg)("Constructor","constructor"),(0,m.kg)("Enum","enumeration"),(0,m.kg)("EnumMember","enumeration member"),(0,m.kg)("Event","event"),(0,m.kg)("Field","field"),(0,m.kg)("File","file"),(0,m.kg)("Function","function"),(0,m.kg)("Interface","interface"),(0,m.kg)("Key","key"),(0,m.kg)("Method","method"),(0,m.kg)("Module","module"),(0,m.kg)("Namespace","namespace"),(0,m.kg)("Null","null"),(0,m.kg)("Number","number"),(0,m.kg)("Object","object"),(0,m.kg)("Operator","operator"),(0,m.kg)("Package","package"),(0,m.kg)("Property","property"),(0,m.kg)("String","string"),(0,m.kg)("Struct","struct"),(0,m.kg)("TypeParameter","type parameter"),(0,m.kg)("Variable","variable");var g,y,v,b,E;!function(e){const t=new Map;t.set(0,r.W.symbolFile),t.set(1,r.W.symbolModule),t.set(2,r.W.symbolNamespace),t.set(3,r.W.symbolPackage),t.set(4,r.W.symbolClass),t.set(5,r.W.symbolMethod),t.set(6,r.W.symbolProperty),t.set(7,r.W.symbolField),t.set(8,r.W.symbolConstructor),t.set(9,r.W.symbolEnum),t.set(10,r.W.symbolInterface),t.set(11,r.W.symbolFunction),t.set(12,r.W.symbolVariable),t.set(13,r.W.symbolConstant),t.set(14,r.W.symbolString),t.set(15,r.W.symbolNumber),t.set(16,r.W.symbolBoolean),t.set(17,r.W.symbolArray),t.set(18,r.W.symbolObject),t.set(19,r.W.symbolKey),t.set(20,r.W.symbolNull),t.set(21,r.W.symbolEnumMember),t.set(22,r.W.symbolStruct),t.set(23,r.W.symbolEvent),t.set(24,r.W.symbolOperator),t.set(25,r.W.symbolTypeParameter),e.toIcon=function(e){let n=t.get(e);return n||(console.info("No codicon found for SymbolKind "+e),n=r.W.symbolProperty),n}}(g||(g={}));class S{static{this.Comment=new S("comment")}static{this.Imports=new S("imports")}static{this.Region=new S("region")}static fromValue(e){switch(e){case"comment":return S.Comment;case"imports":return S.Imports;case"region":return S.Region}return new S(e)}constructor(e){this.value=e}}!function(e){e[e.AIGenerated=1]="AIGenerated"}(y||(y={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(v||(v={})),function(e){e.is=function(e){return!(!e||"object"!==typeof e)&&("string"===typeof e.id&&"string"===typeof e.title)}}(b||(b={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(E||(E={}));const T=new a,x=new a;var A;!function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(A||(A={}))},154:(e,t,n)=>{"use strict";n.d(t,{L:()=>r});const r=(0,n(3591).u1)("languageService")},3941:(e,t,n)=>{"use strict";n.d(t,{W6:()=>l,vH:()=>c});var r=n(8209),o=n(1234),i=n(6359),a=n(1939),s=n(1646);const l=new class{constructor(){this._onDidChangeLanguages=new o.vl,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[]}registerLanguage(e){return this._languages.push(e),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let t=0,n=this._languages.length;t<n;t++)if(this._languages[t]===e)return void this._languages.splice(t,1)}}}getLanguages(){return this._languages}};i.O.add("editor.modesRegistry",l);const c="plaintext";l.registerLanguage({id:c,extensions:[".txt"],aliases:[r.kg("plainText.alias","Plain Text"),"text"],mimetypes:[a.K.text]}),i.O.as(s.Fd.Configuration).registerDefaultConfigurations([{overrides:{"[plaintext]":{"editor.unicodeHighlight.ambiguousCharacters":!1,"editor.unicodeHighlight.invisibleCharacters":!1}}}])},6223:(e,t,n)=>{"use strict";n.d(t,{A5:()=>r,Dg:()=>l,F4:()=>p,L5:()=>u,Wo:()=>d,X2:()=>s,ZS:()=>o,nk:()=>c,vd:()=>f});var r,o,i,a=n(146);!function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(r||(r={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(o||(o={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(i||(i={}));class s{get originalIndentSize(){return this._indentSizeIsTabSize?"tabSize":this.indentSize}constructor(e){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,0|e.tabSize),"tabSize"===e.indentSize?(this.indentSize=this.tabSize,this._indentSizeIsTabSize=!0):(this.indentSize=Math.max(1,0|e.indentSize),this._indentSizeIsTabSize=!1),this.insertSpaces=Boolean(e.insertSpaces),this.defaultEOL=0|e.defaultEOL,this.trimAutoWhitespace=Boolean(e.trimAutoWhitespace),this.bracketPairColorizationOptions=e.bracketPairColorizationOptions}equals(e){return this.tabSize===e.tabSize&&this._indentSizeIsTabSize===e._indentSizeIsTabSize&&this.indentSize===e.indentSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace&&(0,a.aI)(this.bracketPairColorizationOptions,e.bracketPairColorizationOptions)}createChangeEvent(e){return{tabSize:this.tabSize!==e.tabSize,indentSize:this.indentSize!==e.indentSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}}}class l{constructor(e,t){this._findMatchBrand=void 0,this.range=e,this.matches=t}}function c(e){return e&&"function"===typeof e.read}class d{constructor(e,t,n,r,o,i){this.identifier=e,this.range=t,this.text=n,this.forceMoveMarkers=r,this.isAutoWhitespaceEdit=o,this._isTracked=i}}class u{constructor(e,t,n){this.regex=e,this.wordSeparators=t,this.simpleSearch=n}}class p{constructor(e,t,n){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=n}}function f(e){return!e.isTooLargeForSyncing()&&!e.isForSimpleWidget}},7729:(e,t,n)=>{"use strict";n.d(t,{lt:()=>u,W5:()=>h,hB:()=>m,dr:()=>p,wC:()=>_});var r=n(1508),o=n(4320),i=n(534);class a extends i.V{constructor(e,t){super(0),this._segmenter=null,this._cachedLine=null,this._cachedSegments=[],this.intlSegmenterLocales=t,this.intlSegmenterLocales.length>0?this._segmenter=new Intl.Segmenter(this.intlSegmenterLocales,{granularity:"word"}):this._segmenter=null;for(let n=0,r=e.length;n<r;n++)this.set(e.charCodeAt(n),2);this.set(32,1),this.set(9,1)}findPrevIntlWordBeforeOrAtOffset(e,t){let n=null;for(const r of this._getIntlSegmenterWordsOnLine(e)){if(r.index>t)break;n=r}return n}findNextIntlWordAtOrAfterOffset(e,t){for(const n of this._getIntlSegmenterWordsOnLine(e))if(!(n.index<t))return n;return null}_getIntlSegmenterWordsOnLine(e){return this._segmenter?(this._cachedLine===e||(this._cachedLine=e,this._cachedSegments=this._filterWordSegments(this._segmenter.segment(e))),this._cachedSegments):[]}_filterWordSegments(e){const t=[];for(const n of e)this._isWordLike(n)&&t.push(n);return t}_isWordLike(e){return!!e.isWordLike}}const s=new o.qK(10);var l=n(3069),c=n(6677),d=n(6223);class u{constructor(e,t,n,r){this.searchString=e,this.isRegex=t,this.matchCase=n,this.wordSeparators=r}parseSearchRequest(){if(""===this.searchString)return null;let e;e=this.isRegex?function(e){if(!e||0===e.length)return!1;for(let t=0,n=e.length;t<n;t++){const r=e.charCodeAt(t);if(10===r)return!0;if(92===r){if(t++,t>=n)break;const r=e.charCodeAt(t);if(110===r||114===r||87===r)return!0}}return!1}(this.searchString):this.searchString.indexOf("\n")>=0;let t=null;try{t=r.OS(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0,unicode:!0})}catch(o){return null}if(!t)return null;let n=!this.isRegex&&!e;return n&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(n=this.matchCase),new d.L5(t,this.wordSeparators?function(e,t){const n=`${e}/${t.join(",")}`;let r=s.get(n);return r||(r=new a(e,t),s.set(n,r)),r}(this.wordSeparators,[]):null,n?this.searchString:null)}}function p(e,t,n){if(!n)return new d.Dg(e,null);const r=[];for(let o=0,i=t.length;o<i;o++)r[o]=t[o];return new d.Dg(e,r)}class f{constructor(e){const t=[];let n=0;for(let r=0,o=e.length;r<o;r++)10===e.charCodeAt(r)&&(t[n++]=r);this._lineFeedsOffsets=t}findLineFeedCountBeforeOffset(e){const t=this._lineFeedsOffsets;let n=0,r=t.length-1;if(-1===r)return 0;if(e<=t[0])return 0;for(;n<r;){const o=n+((r-n)/2|0);t[o]>=e?r=o-1:t[o+1]>=e?(n=o,r=o):n=o+1}return n+1}}class m{static findMatches(e,t,n,r,o){const i=t.parseSearchRequest();return i?i.regex.multiline?this._doFindMatchesMultiline(e,n,new h(i.wordSeparators,i.regex),r,o):this._doFindMatchesLineByLine(e,n,i,r,o):[]}static _getMultilineMatchRange(e,t,n,r,o,i){let a,s,l=0;if(r?(l=r.findLineFeedCountBeforeOffset(o),a=t+o+l):a=t+o,r){const e=r.findLineFeedCountBeforeOffset(o+i.length)-l;s=a+i.length+e}else s=a+i.length;const d=e.getPositionAt(a),u=e.getPositionAt(s);return new c.Q(d.lineNumber,d.column,u.lineNumber,u.column)}static _doFindMatchesMultiline(e,t,n,r,o){const i=e.getOffsetAt(t.getStartPosition()),a=e.getValueInRange(t,1),s="\r\n"===e.getEOL()?new f(a):null,l=[];let c,d=0;for(n.reset(0);c=n.next(a);)if(l[d++]=p(this._getMultilineMatchRange(e,i,a,s,c.index,c[0]),c,r),d>=o)return l;return l}static _doFindMatchesLineByLine(e,t,n,r,o){const i=[];let a=0;if(t.startLineNumber===t.endLineNumber){const s=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return a=this._findMatchesInLine(n,s,t.startLineNumber,t.startColumn-1,a,i,r,o),i}const s=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);a=this._findMatchesInLine(n,s,t.startLineNumber,t.startColumn-1,a,i,r,o);for(let l=t.startLineNumber+1;l<t.endLineNumber&&a<o;l++)a=this._findMatchesInLine(n,e.getLineContent(l),l,0,a,i,r,o);if(a<o){const s=e.getLineContent(t.endLineNumber).substring(0,t.endColumn-1);a=this._findMatchesInLine(n,s,t.endLineNumber,0,a,i,r,o)}return i}static _findMatchesInLine(e,t,n,r,o,i,a,s){const l=e.wordSeparators;if(!a&&e.simpleSearch){const a=e.simpleSearch,u=a.length,p=t.length;let f=-u;for(;-1!==(f=t.indexOf(a,f+u));)if((!l||_(l,t,p,f,u))&&(i[o++]=new d.Dg(new c.Q(n,f+1+r,n,f+1+u+r),null),o>=s))return o;return o}const u=new h(e.wordSeparators,e.regex);let f;u.reset(0);do{if(f=u.next(t),f&&(i[o++]=p(new c.Q(n,f.index+1+r,n,f.index+1+f[0].length+r),f,a),o>=s))return o}while(f);return o}static findNextMatch(e,t,n,r){const o=t.parseSearchRequest();if(!o)return null;const i=new h(o.wordSeparators,o.regex);return o.regex.multiline?this._doFindNextMatchMultiline(e,n,i,r):this._doFindNextMatchLineByLine(e,n,i,r)}static _doFindNextMatchMultiline(e,t,n,r){const o=new l.y(t.lineNumber,1),i=e.getOffsetAt(o),a=e.getLineCount(),s=e.getValueInRange(new c.Q(o.lineNumber,o.column,a,e.getLineMaxColumn(a)),1),d="\r\n"===e.getEOL()?new f(s):null;n.reset(t.column-1);const u=n.next(s);return u?p(this._getMultilineMatchRange(e,i,s,d,u.index,u[0]),u,r):1!==t.lineNumber||1!==t.column?this._doFindNextMatchMultiline(e,new l.y(1,1),n,r):null}static _doFindNextMatchLineByLine(e,t,n,r){const o=e.getLineCount(),i=t.lineNumber,a=e.getLineContent(i),s=this._findFirstMatchInLine(n,a,i,t.column,r);if(s)return s;for(let l=1;l<=o;l++){const t=(i+l-1)%o,a=e.getLineContent(t+1),s=this._findFirstMatchInLine(n,a,t+1,1,r);if(s)return s}return null}static _findFirstMatchInLine(e,t,n,r,o){e.reset(r-1);const i=e.next(t);return i?p(new c.Q(n,i.index+1,n,i.index+1+i[0].length),i,o):null}static findPreviousMatch(e,t,n,r){const o=t.parseSearchRequest();if(!o)return null;const i=new h(o.wordSeparators,o.regex);return o.regex.multiline?this._doFindPreviousMatchMultiline(e,n,i,r):this._doFindPreviousMatchLineByLine(e,n,i,r)}static _doFindPreviousMatchMultiline(e,t,n,r){const o=this._doFindMatchesMultiline(e,new c.Q(1,1,t.lineNumber,t.column),n,r,9990);if(o.length>0)return o[o.length-1];const i=e.getLineCount();return t.lineNumber!==i||t.column!==e.getLineMaxColumn(i)?this._doFindPreviousMatchMultiline(e,new l.y(i,e.getLineMaxColumn(i)),n,r):null}static _doFindPreviousMatchLineByLine(e,t,n,r){const o=e.getLineCount(),i=t.lineNumber,a=e.getLineContent(i).substring(0,t.column-1),s=this._findLastMatchInLine(n,a,i,r);if(s)return s;for(let l=1;l<=o;l++){const t=(o+i-l-1)%o,a=e.getLineContent(t+1),s=this._findLastMatchInLine(n,a,t+1,r);if(s)return s}return null}static _findLastMatchInLine(e,t,n,r){let o,i=null;for(e.reset(0);o=e.next(t);)i=p(new c.Q(n,o.index+1,n,o.index+1+o[0].length),o,r);return i}}function _(e,t,n,r,o){return function(e,t,n,r,o){if(0===r)return!0;const i=t.charCodeAt(r-1);if(0!==e.get(i))return!0;if(13===i||10===i)return!0;if(o>0){const n=t.charCodeAt(r);if(0!==e.get(n))return!0}return!1}(e,t,0,r,o)&&function(e,t,n,r,o){if(r+o===n)return!0;const i=t.charCodeAt(r+o);if(0!==e.get(i))return!0;if(13===i||10===i)return!0;if(o>0){const n=t.charCodeAt(r+o-1);if(0!==e.get(n))return!0}return!1}(e,t,n,r,o)}class h{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){const t=e.length;let n;do{if(this._prevMatchStartIndex+this._prevMatchLength===t)return null;if(n=this._searchRegex.exec(e),!n)return null;const o=n.index,i=n[0].length;if(o===this._prevMatchStartIndex&&i===this._prevMatchLength){if(0===i){r.Z5(e,t,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=o,this._prevMatchLength=i,!this._wordSeparators||_(this._wordSeparators,e,t,o,i))return n}while(n);return null}}},4272:(e,t,n)=>{"use strict";n.r(t),n.d(t,{KeyMod:()=>me,createMonacoBaseAPI:()=>_e});var r=n(8447),o=n(1234);class i{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}}const a=new i,s=new i,l=new i,c=new Array(230),d={},u=[],p=Object.create(null),f=Object.create(null),m=[],_=[];for(let he=0;he<=193;he++)m[he]=-1;for(let he=0;he<=132;he++)_[he]=-1;var h;!function(){const e="",t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[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,e,0,e,e,e],[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",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],n=[],r=[];for(const o of t){const[e,t,i,h,g,y,v,b,E]=o;if(r[t]||(r[t]=!0,u[t]=i,p[i]=t,f[i.toLowerCase()]=t,e&&(m[t]=h,0!==h&&3!==h&&5!==h&&4!==h&&6!==h&&57!==h&&(_[h]=t))),!n[h]){if(n[h]=!0,!g)throw new Error(`String representation missing for key code ${h} around scan code ${i}`);a.define(h,g),s.define(h,b||g),l.define(h,E||b||g)}y&&(c[y]=h),v&&(d[v]=h)}_[3]=46}(),function(e){e.toString=function(e){return a.keyCodeToStr(e)},e.fromString=function(e){return a.strToKeyCode(e)},e.toUserSettingsUS=function(e){return s.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return l.keyCodeToStr(e)},e.fromUserSettings=function(e){return s.strToKeyCode(e)||l.strToKeyCode(e)},e.toElectronAccelerator=function(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 a.keyCodeToStr(e)}}(h||(h={}));var g,y,v,b,E,S,T,x,A,I,R,C,D,N,M,L,k,P,w,O,F,W,z,B,G,j,V,U,H,K,q,J,X,$,Y,Q,Z,ee,te,ne,re,oe,ie,ae,se,le,ce=n(9400),de=n(3069),ue=n(6677),pe=n(5326),fe=n(2083);!function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"}(g||(g={})),function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"}(y||(y={})),function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(v||(v={})),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.Snippet=27]="Snippet"}(b||(b={})),function(e){e[e.Deprecated=1]="Deprecated"}(E||(E={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(S||(S={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(T||(T={})),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"}(x||(x={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(A||(A={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(I||(I={})),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"}(R||(R={})),function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.ariaRequired=5]="ariaRequired",e[e.autoClosingBrackets=6]="autoClosingBrackets",e[e.autoClosingComments=7]="autoClosingComments",e[e.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=9]="autoClosingDelete",e[e.autoClosingOvertype=10]="autoClosingOvertype",e[e.autoClosingQuotes=11]="autoClosingQuotes",e[e.autoIndent=12]="autoIndent",e[e.automaticLayout=13]="automaticLayout",e[e.autoSurround=14]="autoSurround",e[e.bracketPairColorization=15]="bracketPairColorization",e[e.guides=16]="guides",e[e.codeLens=17]="codeLens",e[e.codeLensFontFamily=18]="codeLensFontFamily",e[e.codeLensFontSize=19]="codeLensFontSize",e[e.colorDecorators=20]="colorDecorators",e[e.colorDecoratorsLimit=21]="colorDecoratorsLimit",e[e.columnSelection=22]="columnSelection",e[e.comments=23]="comments",e[e.contextmenu=24]="contextmenu",e[e.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",e[e.cursorBlinking=26]="cursorBlinking",e[e.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",e[e.cursorStyle=28]="cursorStyle",e[e.cursorSurroundingLines=29]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",e[e.cursorWidth=31]="cursorWidth",e[e.disableLayerHinting=32]="disableLayerHinting",e[e.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",e[e.domReadOnly=34]="domReadOnly",e[e.dragAndDrop=35]="dragAndDrop",e[e.dropIntoEditor=36]="dropIntoEditor",e[e.emptySelectionClipboard=37]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",e[e.extraEditorClassName=39]="extraEditorClassName",e[e.fastScrollSensitivity=40]="fastScrollSensitivity",e[e.find=41]="find",e[e.fixedOverflowWidgets=42]="fixedOverflowWidgets",e[e.folding=43]="folding",e[e.foldingStrategy=44]="foldingStrategy",e[e.foldingHighlight=45]="foldingHighlight",e[e.foldingImportsByDefault=46]="foldingImportsByDefault",e[e.foldingMaximumRegions=47]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=49]="fontFamily",e[e.fontInfo=50]="fontInfo",e[e.fontLigatures=51]="fontLigatures",e[e.fontSize=52]="fontSize",e[e.fontWeight=53]="fontWeight",e[e.fontVariations=54]="fontVariations",e[e.formatOnPaste=55]="formatOnPaste",e[e.formatOnType=56]="formatOnType",e[e.glyphMargin=57]="glyphMargin",e[e.gotoLocation=58]="gotoLocation",e[e.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",e[e.hover=60]="hover",e[e.inDiffEditor=61]="inDiffEditor",e[e.inlineSuggest=62]="inlineSuggest",e[e.inlineEdit=63]="inlineEdit",e[e.letterSpacing=64]="letterSpacing",e[e.lightbulb=65]="lightbulb",e[e.lineDecorationsWidth=66]="lineDecorationsWidth",e[e.lineHeight=67]="lineHeight",e[e.lineNumbers=68]="lineNumbers",e[e.lineNumbersMinChars=69]="lineNumbersMinChars",e[e.linkedEditing=70]="linkedEditing",e[e.links=71]="links",e[e.matchBrackets=72]="matchBrackets",e[e.minimap=73]="minimap",e[e.mouseStyle=74]="mouseStyle",e[e.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=76]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",e[e.multiCursorModifier=78]="multiCursorModifier",e[e.multiCursorPaste=79]="multiCursorPaste",e[e.multiCursorLimit=80]="multiCursorLimit",e[e.occurrencesHighlight=81]="occurrencesHighlight",e[e.overviewRulerBorder=82]="overviewRulerBorder",e[e.overviewRulerLanes=83]="overviewRulerLanes",e[e.padding=84]="padding",e[e.pasteAs=85]="pasteAs",e[e.parameterHints=86]="parameterHints",e[e.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",e[e.placeholder=88]="placeholder",e[e.definitionLinkOpensInPeek=89]="definitionLinkOpensInPeek",e[e.quickSuggestions=90]="quickSuggestions",e[e.quickSuggestionsDelay=91]="quickSuggestionsDelay",e[e.readOnly=92]="readOnly",e[e.readOnlyMessage=93]="readOnlyMessage",e[e.renameOnType=94]="renameOnType",e[e.renderControlCharacters=95]="renderControlCharacters",e[e.renderFinalNewline=96]="renderFinalNewline",e[e.renderLineHighlight=97]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=98]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=99]="renderValidationDecorations",e[e.renderWhitespace=100]="renderWhitespace",e[e.revealHorizontalRightPadding=101]="revealHorizontalRightPadding",e[e.roundedSelection=102]="roundedSelection",e[e.rulers=103]="rulers",e[e.scrollbar=104]="scrollbar",e[e.scrollBeyondLastColumn=105]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=106]="scrollBeyondLastLine",e[e.scrollPredominantAxis=107]="scrollPredominantAxis",e[e.selectionClipboard=108]="selectionClipboard",e[e.selectionHighlight=109]="selectionHighlight",e[e.selectOnLineNumbers=110]="selectOnLineNumbers",e[e.showFoldingControls=111]="showFoldingControls",e[e.showUnused=112]="showUnused",e[e.snippetSuggestions=113]="snippetSuggestions",e[e.smartSelect=114]="smartSelect",e[e.smoothScrolling=115]="smoothScrolling",e[e.stickyScroll=116]="stickyScroll",e[e.stickyTabStops=117]="stickyTabStops",e[e.stopRenderingLineAfter=118]="stopRenderingLineAfter",e[e.suggest=119]="suggest",e[e.suggestFontSize=120]="suggestFontSize",e[e.suggestLineHeight=121]="suggestLineHeight",e[e.suggestOnTriggerCharacters=122]="suggestOnTriggerCharacters",e[e.suggestSelection=123]="suggestSelection",e[e.tabCompletion=124]="tabCompletion",e[e.tabIndex=125]="tabIndex",e[e.unicodeHighlighting=126]="unicodeHighlighting",e[e.unusualLineTerminators=127]="unusualLineTerminators",e[e.useShadowDOM=128]="useShadowDOM",e[e.useTabStops=129]="useTabStops",e[e.wordBreak=130]="wordBreak",e[e.wordSegmenterLocales=131]="wordSegmenterLocales",e[e.wordSeparators=132]="wordSeparators",e[e.wordWrap=133]="wordWrap",e[e.wordWrapBreakAfterCharacters=134]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=135]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=136]="wordWrapColumn",e[e.wordWrapOverride1=137]="wordWrapOverride1",e[e.wordWrapOverride2=138]="wordWrapOverride2",e[e.wrappingIndent=139]="wrappingIndent",e[e.wrappingStrategy=140]="wrappingStrategy",e[e.showDeprecated=141]="showDeprecated",e[e.inlayHints=142]="inlayHints",e[e.editorClassName=143]="editorClassName",e[e.pixelRatio=144]="pixelRatio",e[e.tabFocusMode=145]="tabFocusMode",e[e.layoutInfo=146]="layoutInfo",e[e.wrappingInfo=147]="wrappingInfo",e[e.defaultColorDecorators=148]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=149]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=150]="inlineCompletionsAccessibilityVerbose"}(C||(C={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(D||(D={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}(N||(N={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(M||(M={})),function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(L||(L={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(k||(k={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(P||(P={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(w||(w={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(O||(O={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(F||(F={})),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"}(W||(W={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(z||(z={})),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(B||(B={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(G||(G={})),function(e){e[e.Normal=1]="Normal",e[e.Underlined=2]="Underlined"}(j||(j={})),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"}(V||(V={})),function(e){e[e.AIGenerated=1]="AIGenerated"}(U||(U={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(H||(H={})),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"}(K||(K={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(q||(q={})),function(e){e[e.Word=0]="Word",e[e.Line=1]="Line",e[e.Suggest=2]="Suggest"}(J||(J={})),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"}(X||(X={})),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"}($||($={})),function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"}(Y||(Y={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"}(Q||(Q={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(Z||(Z={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(ee||(ee={})),function(e){e.Off="off",e.OnCode="onCode",e.On="on"}(te||(te={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(ne||(ne={})),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"}(re||(re={})),function(e){e[e.Deprecated=1]="Deprecated"}(oe||(oe={})),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"}(ie||(ie={})),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"}(ae||(ae={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(se||(se={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(le||(le={}));class me{static{this.CtrlCmd=2048}static{this.Shift=1024}static{this.Alt=512}static{this.WinCtrl=256}static chord(e,t){return function(e,t){return(e|(65535&t)<<16>>>0)>>>0}(e,t)}}function _e(){return{editor:void 0,languages:void 0,CancellationTokenSource:r.Qi,Emitter:o.vl,KeyCode:W,KeyMod:me,Position:de.y,Range:ue.Q,Selection:pe.L,SelectionDirection:ee,MarkerSeverity:z,MarkerTag:B,Uri:ce.r,Token:fe.ou}}},5196:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BaseEditorSimpleWorker:()=>We,EditorSimpleWorker:()=>ze,create:()=>Be});class r{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}}var o=n(5600);class i{constructor(e){this.source=e}getElements(){const 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 a(e,t,n){return new d(new i(e),new i(t)).ComputeDiff(n).changes}class s{static Assert(e,t){if(!e)throw new Error(t)}}class l{static Copy(e,t,n,r,o){for(let i=0;i<o;i++)n[r+i]=e[t+i]}static Copy2(e,t,n,r,o){for(let i=0;i<o;i++)n[r+i]=e[t+i]}}class c{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 r(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}}class d{constructor(e,t,n=null){this.ContinueProcessingPredicate=n,this._originalSequence=e,this._modifiedSequence=t;const[r,o,i]=d._getElements(e),[a,s,l]=d._getElements(t);this._hasStrings=i&&l,this._originalStringElements=r,this._originalElementsOrHash=o,this._modifiedStringElements=a,this._modifiedElementsOrHash=s,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"===typeof e[0]}static _getElements(e){const t=e.getElements();if(d._isStringArray(t)){const e=new Int32Array(t.length);for(let n=0,r=t.length;n<r;n++)e[n]=(0,o.e2)(t[n],0);return[t,e,!0]}return t instanceof Int32Array?[[],t,!1]:[[],new Int32Array(t),!1]}ElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._modifiedStringElements[t])}ElementsAreStrictEqual(e,t){if(!this.ElementsAreEqual(e,t))return!1;return d._getStrictElement(this._originalSequence,e)===d._getStrictElement(this._modifiedSequence,t)}static _getStrictElement(e,t){return"function"===typeof e.getStrictElement?e.getStrictElement(t):null}OriginalElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._originalElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._originalStringElements[t])}ModifiedElementsAreEqual(e,t){return this._modifiedElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._modifiedStringElements[e]===this._modifiedStringElements[t])}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,t,n,r,o){const i=[!1];let a=this.ComputeDiffRecursive(e,t,n,r,i);return o&&(a=this.PrettifyChanges(a)),{quitEarly:i[0],changes:a}}ComputeDiffRecursive(e,t,n,o,i){for(i[0]=!1;e<=t&&n<=o&&this.ElementsAreEqual(e,n);)e++,n++;for(;t>=e&&o>=n&&this.ElementsAreEqual(t,o);)t--,o--;if(e>t||n>o){let i;return n<=o?(s.Assert(e===t+1,"originalStart should only be one more than originalEnd"),i=[new r(e,0,n,o-n+1)]):e<=t?(s.Assert(n===o+1,"modifiedStart should only be one more than modifiedEnd"),i=[new r(e,t-e+1,n,0)]):(s.Assert(e===t+1,"originalStart should only be one more than originalEnd"),s.Assert(n===o+1,"modifiedStart should only be one more than modifiedEnd"),i=[]),i}const a=[0],l=[0],c=this.ComputeRecursionPoint(e,t,n,o,a,l,i),d=a[0],u=l[0];if(null!==c)return c;if(!i[0]){const a=this.ComputeDiffRecursive(e,d,n,u,i);let s=[];return s=i[0]?[new r(d+1,t-(d+1)+1,u+1,o-(u+1)+1)]:this.ComputeDiffRecursive(d+1,t,u+1,o,i),this.ConcatenateChanges(a,s)}return[new r(e,t-e+1,n,o-n+1)]}WALKTRACE(e,t,n,o,i,a,s,l,d,u,p,f,m,_,h,g,y,v){let b=null,E=null,S=new c,T=t,x=n,A=m[0]-g[0]-o,I=-1073741824,R=this.m_forwardHistory.length-1;do{const t=A+e;t===T||t<x&&d[t-1]<d[t+1]?(_=(p=d[t+1])-A-o,p<I&&S.MarkNextChange(),I=p,S.AddModifiedElement(p+1,_),A=t+1-e):(_=(p=d[t-1]+1)-A-o,p<I&&S.MarkNextChange(),I=p-1,S.AddOriginalElement(p,_+1),A=t-1-e),R>=0&&(e=(d=this.m_forwardHistory[R])[0],T=1,x=d.length-1)}while(--R>=-1);if(b=S.getReverseChanges(),v[0]){let e=m[0]+1,t=g[0]+1;if(null!==b&&b.length>0){const n=b[b.length-1];e=Math.max(e,n.getOriginalEnd()),t=Math.max(t,n.getModifiedEnd())}E=[new r(e,f-e+1,t,h-t+1)]}else{S=new c,T=a,x=s,A=m[0]-g[0]-l,I=1073741824,R=y?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=A+i;e===T||e<x&&u[e-1]>=u[e+1]?(_=(p=u[e+1]-1)-A-l,p>I&&S.MarkNextChange(),I=p+1,S.AddOriginalElement(p+1,_+1),A=e+1-i):(_=(p=u[e-1])-A-l,p>I&&S.MarkNextChange(),I=p,S.AddModifiedElement(p+1,_+1),A=e-1-i),R>=0&&(i=(u=this.m_reverseHistory[R])[0],T=1,x=u.length-1)}while(--R>=-1);E=S.getChanges()}return this.ConcatenateChanges(b,E)}ComputeRecursionPoint(e,t,n,o,i,a,s){let c=0,d=0,u=0,p=0,f=0,m=0;e--,n--,i[0]=0,a[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const _=t-e+(o-n),h=_+1,g=new Int32Array(h),y=new Int32Array(h),v=o-n,b=t-e,E=e-n,S=t-o,T=(b-v)%2===0;g[v]=e,y[b]=t,s[0]=!1;for(let x=1;x<=_/2+1;x++){let _=0,A=0;u=this.ClipDiagonalBound(v-x,x,v,h),p=this.ClipDiagonalBound(v+x,x,v,h);for(let e=u;e<=p;e+=2){c=e===u||e<p&&g[e-1]<g[e+1]?g[e+1]:g[e-1]+1,d=c-(e-v)-E;const n=c;for(;c<t&&d<o&&this.ElementsAreEqual(c+1,d+1);)c++,d++;if(g[e]=c,c+d>_+A&&(_=c,A=d),!T&&Math.abs(e-b)<=x-1&&c>=y[e])return i[0]=c,a[0]=d,n<=y[e]&&x<=1448?this.WALKTRACE(v,u,p,E,b,f,m,S,g,y,c,t,i,d,o,a,T,s):null}const I=(_-e+(A-n)-x)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(_,I))return s[0]=!0,i[0]=_,a[0]=A,I>0&&x<=1448?this.WALKTRACE(v,u,p,E,b,f,m,S,g,y,c,t,i,d,o,a,T,s):(e++,n++,[new r(e,t-e+1,n,o-n+1)]);f=this.ClipDiagonalBound(b-x,x,b,h),m=this.ClipDiagonalBound(b+x,x,b,h);for(let r=f;r<=m;r+=2){c=r===f||r<m&&y[r-1]>=y[r+1]?y[r+1]-1:y[r-1],d=c-(r-b)-S;const l=c;for(;c>e&&d>n&&this.ElementsAreEqual(c,d);)c--,d--;if(y[r]=c,T&&Math.abs(r-v)<=x&&c<=g[r])return i[0]=c,a[0]=d,l>=g[r]&&x<=1448?this.WALKTRACE(v,u,p,E,b,f,m,S,g,y,c,t,i,d,o,a,T,s):null}if(x<=1447){let e=new Int32Array(p-u+2);e[0]=v-u+1,l.Copy2(g,u,e,1,p-u+1),this.m_forwardHistory.push(e),e=new Int32Array(m-f+2),e[0]=b-f+1,l.Copy2(y,f,e,1,m-f+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(v,u,p,E,b,f,m,S,g,y,c,t,i,d,o,a,T,s)}PrettifyChanges(e){for(let t=0;t<e.length;t++){const n=e[t],r=t<e.length-1?e[t+1].originalStart:this._originalElementsOrHash.length,o=t<e.length-1?e[t+1].modifiedStart:this._modifiedElementsOrHash.length,i=n.originalLength>0,a=n.modifiedLength>0;for(;n.originalStart+n.originalLength<r&&n.modifiedStart+n.modifiedLength<o&&(!i||this.OriginalElementsAreEqual(n.originalStart,n.originalStart+n.originalLength))&&(!a||this.ModifiedElementsAreEqual(n.modifiedStart,n.modifiedStart+n.modifiedLength));){const e=this.ElementsAreStrictEqual(n.originalStart,n.modifiedStart);if(this.ElementsAreStrictEqual(n.originalStart+n.originalLength,n.modifiedStart+n.modifiedLength)&&!e)break;n.originalStart++,n.modifiedStart++}const 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--){const n=e[t];let r=0,o=0;if(t>0){const n=e[t-1];r=n.originalStart+n.originalLength,o=n.modifiedStart+n.modifiedLength}const i=n.originalLength>0,a=n.modifiedLength>0;let s=0,l=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let e=1;;e++){const t=n.originalStart-e,c=n.modifiedStart-e;if(t<r||c<o)break;if(i&&!this.OriginalElementsAreEqual(t,t+n.originalLength))break;if(a&&!this.ModifiedElementsAreEqual(c,c+n.modifiedLength))break;const d=(t===r&&c===o?5:0)+this._boundaryScore(t,n.originalLength,c,n.modifiedLength);d>l&&(l=d,s=e)}n.originalStart-=s,n.modifiedStart-=s;const c=[null];t>0&&this.ChangesOverlap(e[t-1],e[t],c)&&(e[t-1]=c[0],e.splice(t,1),t++)}if(this._hasStrings)for(let t=1,n=e.length;t<n;t++){const n=e[t-1],r=e[t],o=r.originalStart-n.originalStart-n.originalLength,i=n.originalStart,a=r.originalStart+r.originalLength,s=a-i,l=n.modifiedStart,c=r.modifiedStart+r.modifiedLength,d=c-l;if(o<5&&s<20&&d<20){const e=this._findBetterContiguousSequence(i,s,l,d,o);if(e){const[t,i]=e;t===n.originalStart+n.originalLength&&i===n.modifiedStart+n.modifiedLength||(n.originalLength=t-n.originalStart,n.modifiedLength=i-n.modifiedStart,r.originalStart=t+o,r.modifiedStart=i+o,r.originalLength=a-r.originalStart,r.modifiedLength=c-r.modifiedStart)}}}return e}_findBetterContiguousSequence(e,t,n,r,o){if(t<o||r<o)return null;const i=e+t-o+1,a=n+r-o+1;let s=0,l=0,c=0;for(let d=e;d<i;d++)for(let e=n;e<a;e++){const t=this._contiguousSequenceScore(d,e,o);t>0&&t>s&&(s=t,l=d,c=e)}return s>0?[l,c]:null}_contiguousSequenceScore(e,t,n){let r=0;for(let o=0;o<n;o++){if(!this.ElementsAreEqual(e+o,t+o))return 0;r+=this._originalStringElements[e+o].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){const 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){const 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)?1:0)+(this._ModifiedRegionIsBoundary(n,r)?1:0)}ConcatenateChanges(e,t){const n=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){const r=new Array(e.length+t.length-1);return l.Copy(e,0,r,0,e.length-1),r[e.length-1]=n[0],l.Copy(t,1,r,e.length,t.length-1),r}{const n=new Array(e.length+t.length);return l.Copy(e,0,n,0,e.length),l.Copy(t,0,n,e.length,t.length),n}}ChangesOverlap(e,t,n){if(s.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),s.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){const o=e.originalStart;let i=e.originalLength;const a=e.modifiedStart;let s=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(i=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(s=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new r(o,i,a,s),!0}return n[0]=null,!1}ClipDiagonalBound(e,t,n,r){if(e>=0&&e<r)return e;const o=t%2===0;if(e<0){return o===(n%2===0)?0:1}return o===((r-n-1)%2===0)?r-1:r-2}}var u=n(6677),p=n(534);class f{constructor(e,t,n){const r=new Uint8Array(e*t);for(let o=0,i=e*t;o<i;o++)r[o]=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}}class m{constructor(e){let t=0,n=0;for(let o=0,i=e.length;o<i;o++){const[r,i,a]=e[o];i>t&&(t=i),r>n&&(n=r),a>n&&(n=a)}t++,n++;const r=new f(n,t,0);for(let o=0,i=e.length;o<i;o++){const[t,n,i]=e[o];r.set(t,n,i)}this._states=r,this._maxCharCode=t}nextState(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)}}let _=null;let h=null;class g{static _createLink(e,t,n,r,o){let i=o-1;do{const n=t.charCodeAt(i);if(2!==e.get(n))break;i--}while(i>r);if(r>0){const e=t.charCodeAt(r-1),n=t.charCodeAt(i);(40===e&&41===n||91===e&&93===n||123===e&&125===n)&&i--}return{range:{startLineNumber:n,startColumn:r+1,endLineNumber:n,endColumn:i+2},url:t.substring(r,i+1)}}static computeLinks(e,t=function(){return null===_&&(_=new m([[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]])),_}()){const n=function(){if(null===h){h=new p.V(0);const e=" \t<>'\"\u3001\u3002\uff61\uff64\uff0c\uff0e\uff1a\uff1b\u2018\u3008\u300c\u300e\u3014\uff08\uff3b\uff5b\uff62\uff63\uff5d\uff3d\uff09\u3015\u300f\u300d\u3009\u2019\uff40\uff5e\u2026";for(let n=0;n<e.length;n++)h.set(e.charCodeAt(n),1);const t=".,;:";for(let n=0;n<t.length;n++)h.set(t.charCodeAt(n),2)}return h}(),r=[];for(let o=1,i=e.getLineCount();o<=i;o++){const i=e.getLineContent(o),a=i.length;let s=0,l=0,c=0,d=1,u=!1,p=!1,f=!1,m=!1;for(;s<a;){let e=!1;const a=i.charCodeAt(s);if(13===d){let t;switch(a){case 40:u=!0,t=0;break;case 41:t=u?0:1;break;case 91:f=!0,p=!0,t=0;break;case 93:f=!1,t=p?0:1;break;case 123:m=!0,t=0;break;case 125:t=m?0:1;break;case 39:case 34:case 96:t=c===a?1:39===c||34===c||96===c?0:1;break;case 42:t=42===c?1:0;break;case 124:t=124===c?1:0;break;case 32:t=f?0:1;break;default:t=n.get(a)}1===t&&(r.push(g._createLink(n,i,o,l,s)),e=!0)}else if(12===d){let t;91===a?(p=!0,t=0):t=n.get(a),1===t?e=!0:d=13}else d=t.nextState(d,a),0===d&&(e=!0);e&&(d=1,u=!1,p=!1,m=!1,l=s+1,c=a),s++}13===d&&r.push(g._createLink(n,i,o,l,a))}return r}}class y{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}static{this.INSTANCE=new y}navigateValueSet(e,t,n,r,o){if(e&&t){const n=this.doNavigateValueSet(t,o);if(n)return{range:e,value:n}}if(n&&r){const e=this.doNavigateValueSet(r,o);if(e)return{range:n,value:e}}return null}doNavigateValueSet(e,t){const n=this.numberReplace(e,t);return null!==n?n:this.textReplace(e,t)}numberReplace(e,t){const n=Math.pow(10,e.length-(e.lastIndexOf(".")+1));let r=Number(e);const o=parseFloat(e);return isNaN(r)||isNaN(o)||r!==o?null:0!==r||t?(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 o=0,i=e.length;null===r&&o<i;o++)r=this.valueSetReplace(e[o],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}}var v=n(4272),b=n(718),E=n(8381),S=n(4855);class T{constructor(e,t,n){this.changes=e,this.moves=t,this.hitTimeout=n}}class x{constructor(e,t){this.lineRangeMapping=e,this.changes=t}}var A=n(4383),I=n(6571),R=n(3069),C=n(6782),D=n(4444);n(973);class N{constructor(e,t){this.range=e,this.text=t}toSingleEditOperation(){return{range:this.range,text:this.text}}}class M{static inverse(e,t,n){const r=[];let o=1,i=1;for(const s of e){const e=new M(new I.M(o,s.original.startLineNumber),new I.M(i,s.modified.startLineNumber));e.modified.isEmpty||r.push(e),o=s.original.endLineNumberExclusive,i=s.modified.endLineNumberExclusive}const a=new M(new I.M(o,t+1),new I.M(i,n+1));return a.modified.isEmpty||r.push(a),r}static clip(e,t,n){const r=[];for(const o of e){const e=o.original.intersect(t),i=o.modified.intersect(n);e&&!e.isEmpty&&i&&!i.isEmpty&&r.push(new M(e,i))}return r}constructor(e,t){this.original=e,this.modified=t}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new M(this.modified,this.original)}join(e){return new M(this.original.join(e.original),this.modified.join(e.modified))}toRangeMapping(){const e=this.original.toInclusiveRange(),t=this.modified.toInclusiveRange();if(e&&t)return new w(e,t);if(1===this.original.startLineNumber||1===this.modified.startLineNumber){if(1!==this.modified.startLineNumber||1!==this.original.startLineNumber)throw new A.D7("not a valid diff");return new w(new u.Q(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new u.Q(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}return new w(new u.Q(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new u.Q(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}toRangeMapping2(e,t){if(k(this.original.endLineNumberExclusive,e)&&k(this.modified.endLineNumberExclusive,t))return new w(new u.Q(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new u.Q(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1));if(!this.original.isEmpty&&!this.modified.isEmpty)return new w(u.Q.fromPositions(new R.y(this.original.startLineNumber,1),L(new R.y(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),u.Q.fromPositions(new R.y(this.modified.startLineNumber,1),L(new R.y(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)));if(this.original.startLineNumber>1&&this.modified.startLineNumber>1)return new w(u.Q.fromPositions(L(new R.y(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER),e),L(new R.y(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),u.Q.fromPositions(L(new R.y(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER),t),L(new R.y(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)));throw new A.D7}}function L(e,t){if(e.lineNumber<1)return new R.y(1,1);if(e.lineNumber>t.length)return new R.y(t.length,t[t.length-1].length+1);const n=t[e.lineNumber-1];return e.column>n.length+1?new R.y(e.lineNumber,n.length+1):e}function k(e,t){return e>=1&&e<=t.length}class P extends M{static fromRangeMappings(e){const t=I.M.join(e.map((e=>I.M.fromRangeInclusive(e.originalRange)))),n=I.M.join(e.map((e=>I.M.fromRangeInclusive(e.modifiedRange))));return new P(t,n,e)}constructor(e,t,n){super(e,t),this.innerChanges=n}flip(){return new P(this.modified,this.original,this.innerChanges?.map((e=>e.flip())))}withInnerChangesFromLineRanges(){return new P(this.original,this.modified,[this.toRangeMapping()])}}class w{static assertSorted(e){for(let t=1;t<e.length;t++){const n=e[t-1],r=e[t];if(!n.originalRange.getEndPosition().isBeforeOrEqual(r.originalRange.getStartPosition())||!n.modifiedRange.getEndPosition().isBeforeOrEqual(r.modifiedRange.getStartPosition()))throw new A.D7("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 w(this.modifiedRange,this.originalRange)}toTextEdit(e){const t=e.getValueOfRange(this.modifiedRange);return new N(this.originalRange,t)}}var O=n(1508);class F{computeDiff(e,t,n){const r=new V(e,t,{maxComputationTime:n.maxComputationTimeMs,shouldIgnoreTrimWhitespace:n.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),o=[];let i=null;for(const a of r.changes){let e,t;e=0===a.originalEndLineNumber?new I.M(a.originalStartLineNumber+1,a.originalStartLineNumber+1):new I.M(a.originalStartLineNumber,a.originalEndLineNumber+1),t=0===a.modifiedEndLineNumber?new I.M(a.modifiedStartLineNumber+1,a.modifiedStartLineNumber+1):new I.M(a.modifiedStartLineNumber,a.modifiedEndLineNumber+1);let n=new P(e,t,a.charChanges?.map((e=>new w(new u.Q(e.originalStartLineNumber,e.originalStartColumn,e.originalEndLineNumber,e.originalEndColumn),new u.Q(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)))));i&&(i.modified.endLineNumberExclusive!==n.modified.startLineNumber&&i.original.endLineNumberExclusive!==n.original.startLineNumber||(n=new P(i.original.join(n.original),i.modified.join(n.modified),i.innerChanges&&n.innerChanges?i.innerChanges.concat(n.innerChanges):void 0),o.pop())),o.push(n),i=n}return(0,C.Ft)((()=>(0,C.Xo)(o,((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 T(o,[],r.quitEarly)}}function W(e,t,n,r){return new d(e,t,n).ComputeDiff(r)}class z{constructor(e){const t=[],n=[];for(let r=0,o=e.length;r<o;r++)t[r]=U(e[r],1),n[r]=H(e[r],1);this.lines=e,this._startColumns=t,this._endColumns=n}getElements(){const 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){const r=[],o=[],i=[];let a=0;for(let s=t;s<=n;s++){const t=this.lines[s],l=e?this._startColumns[s]:1,c=e?this._endColumns[s]:t.length+1;for(let e=l;e<c;e++)r[a]=t.charCodeAt(e-1),o[a]=s+1,i[a]=e,a++;!e&&s<n&&(r[a]=10,o[a]=s+1,i[a]=t.length+1,a++)}return new B(r,o,i)}}class B{constructor(e,t,n){this._charCodes=e,this._lineNumbers=t,this._columns=n}toString(){return"["+this._charCodes.map(((e,t)=>(10===e?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[t]},${this._columns[t]})`)).join(", ")+"]"}_assertIndex(e,t){if(e<0||e>=t.length)throw new 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-1===e?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),10===this._charCodes[e]?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-1===e?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),10===this._charCodes[e]?1:this._columns[e]+1)}}class G{constructor(e,t,n,r,o,i,a,s){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=n,this.originalEndColumn=r,this.modifiedStartLineNumber=o,this.modifiedStartColumn=i,this.modifiedEndLineNumber=a,this.modifiedEndColumn=s}static createFromDiffChange(e,t,n){const r=t.getStartLineNumber(e.originalStart),o=t.getStartColumn(e.originalStart),i=t.getEndLineNumber(e.originalStart+e.originalLength-1),a=t.getEndColumn(e.originalStart+e.originalLength-1),s=n.getStartLineNumber(e.modifiedStart),l=n.getStartColumn(e.modifiedStart),c=n.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),d=n.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new G(r,o,i,a,s,l,c,d)}}class j{constructor(e,t,n,r,o){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=n,this.modifiedEndLineNumber=r,this.charChanges=o}static createFromDiffResult(e,t,n,r,o,i,a){let s,l,c,d,u;if(0===t.originalLength?(s=n.getStartLineNumber(t.originalStart)-1,l=0):(s=n.getStartLineNumber(t.originalStart),l=n.getEndLineNumber(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(c=r.getStartLineNumber(t.modifiedStart)-1,d=0):(c=r.getStartLineNumber(t.modifiedStart),d=r.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),i&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&o()){const i=n.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),s=r.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);if(i.getElements().length>0&&s.getElements().length>0){let e=W(i,s,o,!0).changes;a&&(e=function(e){if(e.length<=1)return e;const t=[e[0]];let n=t[0];for(let r=1,o=e.length;r<o;r++){const o=e[r],i=o.originalStart-(n.originalStart+n.originalLength),a=o.modifiedStart-(n.modifiedStart+n.modifiedLength);Math.min(i,a)<3?(n.originalLength=o.originalStart+o.originalLength-n.originalStart,n.modifiedLength=o.modifiedStart+o.modifiedLength-n.modifiedStart):(t.push(o),n=o)}return t}(e)),u=[];for(let t=0,n=e.length;t<n;t++)u.push(G.createFromDiffChange(e[t],i,s))}}return new j(s,l,c,d,u)}}class V{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 z(e),this.modified=new z(t),this.continueLineDiff=K(n.maxComputationTime),this.continueCharDiff=K(0===n.maxComputationTime?0:Math.min(n.maxComputationTime,5e3))}computeDiff(){if(1===this.original.lines.length&&0===this.original.lines[0].length)return 1===this.modified.lines.length&&0===this.modified.lines[0].length?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(1===this.modified.lines.length&&0===this.modified.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const e=W(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=e.changes,n=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){const e=[];for(let n=0,r=t.length;n<r;n++)e.push(j.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[n],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:n,changes:e}}const r=[];let o=0,i=0;for(let a=-1,s=t.length;a<s;a++){const e=a+1<s?t[a+1]:null,n=e?e.originalStart:this.originalLines.length,l=e?e.modifiedStart:this.modifiedLines.length;for(;o<n&&i<l;){const e=this.originalLines[o],t=this.modifiedLines[i];if(e!==t){{let n=U(e,1),a=U(t,1);for(;n>1&&a>1;){if(e.charCodeAt(n-2)!==t.charCodeAt(a-2))break;n--,a--}(n>1||a>1)&&this._pushTrimWhitespaceCharChange(r,o+1,1,n,i+1,1,a)}{let n=H(e,1),a=H(t,1);const s=e.length+1,l=t.length+1;for(;n<s&&a<l;){if(e.charCodeAt(n-1)!==e.charCodeAt(a-1))break;n++,a++}(n<s||a<l)&&this._pushTrimWhitespaceCharChange(r,o+1,n,s,i+1,a,l)}}o++,i++}e&&(r.push(j.createFromDiffResult(this.shouldIgnoreTrimWhitespace,e,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),o+=e.originalLength,i+=e.modifiedLength)}return{quitEarly:n,changes:r}}_pushTrimWhitespaceCharChange(e,t,n,r,o,i,a){if(this._mergeTrimWhitespaceCharChange(e,t,n,r,o,i,a))return;let s;this.shouldComputeCharChanges&&(s=[new G(t,n,t,r,o,i,o,a)]),e.push(new j(t,t,o,o,s))}_mergeTrimWhitespaceCharChange(e,t,n,r,o,i,a){const s=e.length;if(0===s)return!1;const l=e[s-1];return 0!==l.originalEndLineNumber&&0!==l.modifiedEndLineNumber&&(l.originalEndLineNumber===t&&l.modifiedEndLineNumber===o?(this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new G(t,n,t,r,o,i,o,a)),!0):l.originalEndLineNumber+1===t&&l.modifiedEndLineNumber+1===o&&(l.originalEndLineNumber=t,l.modifiedEndLineNumber=o,this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new G(t,n,t,r,o,i,o,a)),!0))}}function U(e,t){const n=O.HG(e);return-1===n?t:n+1}function H(e,t){const n=O.lT(e);return-1===n?t:n+2}function K(e){if(0===e)return()=>!0;const t=Date.now();return()=>Date.now()-t<e}var q=n(9861);class J{static trivial(e,t){return new J([new X(D.L.ofLength(e.length),D.L.ofLength(t.length))],!1)}static trivialTimedOut(e,t){return new J([new X(D.L.ofLength(e.length),D.L.ofLength(t.length))],!0)}constructor(e,t){this.diffs=e,this.hitTimeout=t}}class X{static invert(e,t){const n=[];return(0,q.pN)(e,((e,r)=>{n.push(X.fromOffsetPairs(e?e.getEndExclusives():$.zero,r?r.getStarts():new $(t,(e?e.seq2Range.endExclusive-e.seq1Range.endExclusive:0)+t)))})),n}static fromOffsetPairs(e,t){return new X(new D.L(e.offset1,t.offset1),new D.L(e.offset2,t.offset2))}static assertSorted(e){let t;for(const n of e){if(t&&!(t.seq1Range.endExclusive<=n.seq1Range.start&&t.seq2Range.endExclusive<=n.seq2Range.start))throw new A.D7("Sequence diffs must be sorted");t=n}}constructor(e,t){this.seq1Range=e,this.seq2Range=t}swap(){return new X(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(e){return new X(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}delta(e){return 0===e?this:new X(this.seq1Range.delta(e),this.seq2Range.delta(e))}deltaStart(e){return 0===e?this:new X(this.seq1Range.deltaStart(e),this.seq2Range.deltaStart(e))}deltaEnd(e){return 0===e?this:new X(this.seq1Range.deltaEnd(e),this.seq2Range.deltaEnd(e))}intersect(e){const t=this.seq1Range.intersect(e.seq1Range),n=this.seq2Range.intersect(e.seq2Range);if(t&&n)return new X(t,n)}getStarts(){return new $(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new $(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}class ${static{this.zero=new $(0,0)}static{this.max=new $(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER)}constructor(e,t){this.offset1=e,this.offset2=t}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(e){return 0===e?this:new $(this.offset1+e,this.offset2+e)}equals(e){return this.offset1===e.offset1&&this.offset2===e.offset2}}class Y{static{this.instance=new Y}isValid(){return!0}}class Q{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new A.D7("timeout must be positive")}isValid(){return!(Date.now()-this.startTime<this.timeout)&&this.valid&&(this.valid=!1),this.valid}}class Z{constructor(e,t){this.width=e,this.height=t,this.array=[],this.array=new 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 ee(e){return 32===e||9===e}class te{static{this.chrKeys=new Map}static getKey(e){let t=this.chrKeys.get(e);return void 0===t&&(t=this.chrKeys.size,this.chrKeys.set(e,t)),t}constructor(e,t,n){this.range=e,this.lines=t,this.source=n,this.histogram=[];let r=0;for(let o=e.startLineNumber-1;o<e.endLineNumberExclusive-1;o++){const e=t[o];for(let t=0;t<e.length;t++){r++;const n=e[t],o=te.getKey(n);this.histogram[o]=(this.histogram[o]||0)+1}r++;const n=te.getKey("\n");this.histogram[n]=(this.histogram[n]||0)+1}this.totalCount=r}computeSimilarity(e){let t=0;const 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)}}class ne{compute(e,t,n=Y.instance,r){if(0===e.length||0===t.length)return J.trivial(e,t);const o=new Z(e.length,t.length),i=new Z(e.length,t.length),a=new Z(e.length,t.length);for(let f=0;f<e.length;f++)for(let s=0;s<t.length;s++){if(!n.isValid())return J.trivialTimedOut(e,t);const l=0===f?0:o.get(f-1,s),c=0===s?0:o.get(f,s-1);let d;e.getElement(f)===t.getElement(s)?(d=0===f||0===s?0:o.get(f-1,s-1),f>0&&s>0&&3===i.get(f-1,s-1)&&(d+=a.get(f-1,s-1)),d+=r?r(f,s):1):d=-1;const u=Math.max(l,c,d);if(u===d){const e=f>0&&s>0?a.get(f-1,s-1):0;a.set(f,s,e+1),i.set(f,s,3)}else u===l?(a.set(f,s,0),i.set(f,s,1)):u===c&&(a.set(f,s,0),i.set(f,s,2));o.set(f,s,u)}const s=[];let l=e.length,c=t.length;function d(e,t){e+1===l&&t+1===c||s.push(new X(new D.L(e+1,l),new D.L(t+1,c))),l=e,c=t}let u=e.length-1,p=t.length-1;for(;u>=0&&p>=0;)3===i.get(u,p)?(d(u,p),u--,p--):1===i.get(u,p)?u--:p--;return d(-1,-1),s.reverse(),new J(s,!1)}}class re{compute(e,t,n=Y.instance){if(0===e.length||0===t.length)return J.trivial(e,t);const r=e,o=t;function i(e,t){for(;e<r.length&&t<o.length&&r.getElement(e)===o.getElement(t);)e++,t++;return e}let a=0;const s=new ie;s.set(0,i(0,0));const l=new ae;l.set(0,0===s.get(0)?null:new oe(null,0,0,s.get(0)));let c=0;e:for(;;){if(a++,!n.isValid())return J.trivialTimedOut(r,o);const e=-Math.min(a,o.length+a%2),t=Math.min(a,r.length+a%2);for(c=e;c<=t;c+=2){let n=0;const a=c===t?-1:s.get(c+1),d=c===e?-1:s.get(c-1)+1;n++;const u=Math.min(Math.max(a,d),r.length),p=u-c;if(n++,u>r.length||p>o.length)continue;const f=i(u,p);s.set(c,f);const m=u===a?l.get(c+1):l.get(c-1);if(l.set(c,f!==u?new oe(m,u,p,f-u):m),s.get(c)===r.length&&s.get(c)-c===o.length)break e}}let d=l.get(c);const u=[];let p=r.length,f=o.length;for(;;){const e=d?d.x+d.length:0,t=d?d.y+d.length:0;if(e===p&&t===f||u.push(new X(new D.L(e,p),new D.L(t,f))),!d)break;p=d.x,f=d.y,d=d.prev}return u.reverse(),new J(u,!1)}}class oe{constructor(e,t,n,r){this.prev=e,this.x=t,this.y=n,this.length=r}}class ie{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=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)>=this.negativeArr.length){const e=this.negativeArr;this.negativeArr=new Int32Array(2*e.length),this.negativeArr.set(e)}this.negativeArr[e]=t}else{if(e>=this.positiveArr.length){const e=this.positiveArr;this.positiveArr=new Int32Array(2*e.length),this.positiveArr.set(e)}this.positiveArr[e]=t}}}class ae{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}}var se=n(6041),le=n(4320);class ce{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 r=this.range.startLineNumber;r<=this.range.endLineNumber;r++){let t=e[r-1],o=0;r===this.range.startLineNumber&&this.range.startColumn>1&&(o=this.range.startColumn-1,t=t.substring(o)),this.lineStartOffsets.push(o);let i=0;if(!n){const e=t.trimStart();i=t.length-e.length,t=e.trimEnd()}this.trimmedWsLengthsByLineIdx.push(i);const a=r===this.range.endLineNumber?Math.min(this.range.endColumn-1-o-i,t.length):t.length;for(let e=0;e<a;e++)this.elements.push(t.charCodeAt(e));r<this.range.endLineNumber&&(this.elements.push("\n".charCodeAt(0)),this.firstElementOffsetByLineIdx.push(this.elements.length))}}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new D.L(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){const t=fe(e>0?this.elements[e-1]:-1),n=fe(e<this.elements.length?this.elements[e]:-1);if(7===t&&8===n)return 0;if(8===t)return 150;let r=0;return t!==n&&(r+=10,0===t&&1===n&&(r+=1)),r+=pe(t),r+=pe(n),r}translateOffset(e,t="right"){const n=(0,se.iM)(this.firstElementOffsetByLineIdx,(t=>t<=e)),r=e-this.firstElementOffsetByLineIdx[n];return new R.y(this.range.startLineNumber+n,1+this.lineStartOffsets[n]+r+(0===r&&"left"===t?0:this.trimmedWsLengthsByLineIdx[n]))}translateRange(e){const t=this.translateOffset(e.start,"right"),n=this.translateOffset(e.endExclusive,"left");return n.isBefore(t)?u.Q.fromPositions(n,n):u.Q.fromPositions(t,n)}findWordContaining(e){if(e<0||e>=this.elements.length)return;if(!de(this.elements[e]))return;let t=e;for(;t>0&&de(this.elements[t-1]);)t--;let n=e;for(;n<this.elements.length&&de(this.elements[n]);)n++;return new D.L(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){const t=(0,se.lx)(this.firstElementOffsetByLineIdx,(t=>t<=e.start))??0,n=(0,se.XP)(this.firstElementOffsetByLineIdx,(t=>e.endExclusive<=t))??this.elements.length;return new D.L(t,n)}}function de(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}const ue={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function pe(e){return ue[e]}function fe(e){return 10===e?8:13===e?7:ee(e)?6:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:-1===e?3:44===e||59===e?5:4}function me(e,t,n,r,o,i){let{moves:a,excludedChanges:s}=function(e,t,n,r){const o=[],i=e.filter((e=>e.modified.isEmpty&&e.original.length>=3)).map((e=>new te(e.original,t,e))),a=new Set(e.filter((e=>e.original.isEmpty&&e.modified.length>=3)).map((e=>new te(e.modified,n,e)))),s=new Set;for(const l of i){let e,t=-1;for(const n of a){const r=l.computeSimilarity(n);r>t&&(t=r,e=n)}if(t>.9&&e&&(a.delete(e),o.push(new M(l.range,e.range)),s.add(l.source),s.add(e.source)),!r.isValid())return{moves:o,excludedChanges:s}}return{moves:o,excludedChanges:s}}(e,t,n,i);if(!i.isValid())return[];const l=function(e,t,n,r,o,i){const a=[],s=new le.db;for(const p of e)for(let e=p.original.startLineNumber;e<p.original.endLineNumberExclusive-2;e++){const n=`${t[e-1]}:${t[e+1-1]}:${t[e+2-1]}`;s.add(n,{range:new I.M(e,e+3)})}const l=[];e.sort((0,q.VE)((e=>e.modified.startLineNumber),q.U9));for(const p of e){let e=[];for(let t=p.modified.startLineNumber;t<p.modified.endLineNumberExclusive-2;t++){const r=`${n[t-1]}:${n[t+1-1]}:${n[t+2-1]}`,o=new I.M(t,t+3),i=[];s.forEach(r,(({range:t})=>{for(const r of e)if(r.originalLineRange.endLineNumberExclusive+1===t.endLineNumberExclusive&&r.modifiedLineRange.endLineNumberExclusive+1===o.endLineNumberExclusive)return r.originalLineRange=new I.M(r.originalLineRange.startLineNumber,t.endLineNumberExclusive),r.modifiedLineRange=new I.M(r.modifiedLineRange.startLineNumber,o.endLineNumberExclusive),void i.push(r);const n={modifiedLineRange:o,originalLineRange:t};l.push(n),i.push(n)})),e=i}if(!i.isValid())return[]}l.sort((0,q.Hw)((0,q.VE)((e=>e.modifiedLineRange.length),q.U9)));const c=new I.S,d=new I.S;for(const p of l){const e=p.modifiedLineRange.startLineNumber-p.originalLineRange.startLineNumber,t=c.subtractFrom(p.modifiedLineRange),n=d.subtractFrom(p.originalLineRange).getWithDelta(e),r=t.getIntersection(n);for(const o of r.ranges){if(o.length<3)continue;const t=o,n=o.delta(-e);a.push(new M(n,t)),c.addRange(t),d.addRange(n)}}a.sort((0,q.VE)((e=>e.original.startLineNumber),q.U9));const u=new se.vJ(e);for(let p=0;p<a.length;p++){const t=a[p],n=u.findLastMonotonous((e=>e.original.startLineNumber<=t.original.startLineNumber)),s=(0,se.lx)(e,(e=>e.modified.startLineNumber<=t.modified.startLineNumber)),l=Math.max(t.original.startLineNumber-n.original.startLineNumber,t.modified.startLineNumber-s.modified.startLineNumber),f=u.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive)),m=(0,se.lx)(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)),_=Math.max(f.original.endLineNumberExclusive-t.original.endLineNumberExclusive,m.modified.endLineNumberExclusive-t.modified.endLineNumberExclusive);let h,g;for(h=0;h<l;h++){const e=t.original.startLineNumber-h-1,n=t.modified.startLineNumber-h-1;if(e>r.length||n>o.length)break;if(c.contains(n)||d.contains(e))break;if(!_e(r[e-1],o[n-1],i))break}for(h>0&&(d.addRange(new I.M(t.original.startLineNumber-h,t.original.startLineNumber)),c.addRange(new I.M(t.modified.startLineNumber-h,t.modified.startLineNumber))),g=0;g<_;g++){const e=t.original.endLineNumberExclusive+g,n=t.modified.endLineNumberExclusive+g;if(e>r.length||n>o.length)break;if(c.contains(n)||d.contains(e))break;if(!_e(r[e-1],o[n-1],i))break}g>0&&(d.addRange(new I.M(t.original.endLineNumberExclusive,t.original.endLineNumberExclusive+g)),c.addRange(new I.M(t.modified.endLineNumberExclusive,t.modified.endLineNumberExclusive+g))),(h>0||g>0)&&(a[p]=new M(new I.M(t.original.startLineNumber-h,t.original.endLineNumberExclusive+g),new I.M(t.modified.startLineNumber-h,t.modified.endLineNumberExclusive+g)))}return a}(e.filter((e=>!s.has(e))),r,o,t,n,i);return(0,q.E4)(a,l),a=function(e){if(0===e.length)return e;e.sort((0,q.VE)((e=>e.original.startLineNumber),q.U9));const t=[e[0]];for(let n=1;n<e.length;n++){const r=t[t.length-1],o=e[n],i=o.original.startLineNumber-r.original.endLineNumberExclusive,a=o.modified.startLineNumber-r.modified.endLineNumberExclusive;i>=0&&a>=0&&i+a<=2?t[t.length-1]=r.join(o):t.push(o)}return t}(a),a=a.filter((e=>{const n=e.original.toOffsetRange().slice(t).map((e=>e.trim()));return n.join("\n").length>=15&&function(e,t){let n=0;for(const r of e)t(r)&&n++;return n}(n,(e=>e.length>=2))>=2})),a=function(e,t){const n=new se.vJ(e);return t=t.filter((t=>(n.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive))||new M(new I.M(1,1),new I.M(1,1)))!==(0,se.lx)(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)))),t}(e,a),a}function _e(e,t,n){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;const r=(new re).compute(new ce([e],new u.Q(1,1,1,e.length),!1),new ce([t],new u.Q(1,1,1,t.length),!1),n);let o=0;const i=X.invert(r.diffs,e.length);for(const s of i)s.seq1Range.forEach((t=>{ee(e.charCodeAt(t))||o++}));const a=function(t){let n=0;for(let r=0;r<e.length;r++)ee(t.charCodeAt(r))||n++;return n}(e.length>t.length?e:t);return o/a>.6&&a>10}function he(e,t,n){let r=n;return r=ge(e,t,r),r=ge(e,t,r),r=function(e,t,n){if(!e.getBoundaryScore||!t.getBoundaryScore)return n;for(let r=0;r<n.length;r++){const o=r>0?n[r-1]:void 0,i=n[r],a=r+1<n.length?n[r+1]:void 0,s=new D.L(o?o.seq1Range.endExclusive+1:0,a?a.seq1Range.start-1:e.length),l=new D.L(o?o.seq2Range.endExclusive+1:0,a?a.seq2Range.start-1:t.length);i.seq1Range.isEmpty?n[r]=ye(i,e,t,s,l):i.seq2Range.isEmpty&&(n[r]=ye(i.swap(),t,e,l,s).swap())}return n}(e,t,r),r}function ge(e,t,n){if(0===n.length)return n;const r=[];r.push(n[0]);for(let i=1;i<n.length;i++){const o=r[r.length-1];let a=n[i];if(a.seq1Range.isEmpty||a.seq2Range.isEmpty){const n=a.seq1Range.start-o.seq1Range.endExclusive;let i;for(i=1;i<=n&&(e.getElement(a.seq1Range.start-i)===e.getElement(a.seq1Range.endExclusive-i)&&t.getElement(a.seq2Range.start-i)===t.getElement(a.seq2Range.endExclusive-i));i++);if(i--,i===n){r[r.length-1]=new X(new D.L(o.seq1Range.start,a.seq1Range.endExclusive-n),new D.L(o.seq2Range.start,a.seq2Range.endExclusive-n));continue}a=a.delta(-i)}r.push(a)}const o=[];for(let i=0;i<r.length-1;i++){const n=r[i+1];let a=r[i];if(a.seq1Range.isEmpty||a.seq2Range.isEmpty){const o=n.seq1Range.start-a.seq1Range.endExclusive;let s;for(s=0;s<o&&(e.isStronglyEqual(a.seq1Range.start+s,a.seq1Range.endExclusive+s)&&t.isStronglyEqual(a.seq2Range.start+s,a.seq2Range.endExclusive+s));s++);if(s===o){r[i+1]=new X(new D.L(a.seq1Range.start+o,n.seq1Range.endExclusive),new D.L(a.seq2Range.start+o,n.seq2Range.endExclusive));continue}s>0&&(a=a.delta(s))}o.push(a)}return r.length>0&&o.push(r[r.length-1]),o}function ye(e,t,n,r,o){let i=1;for(;e.seq1Range.start-i>=r.start&&e.seq2Range.start-i>=o.start&&n.isStronglyEqual(e.seq2Range.start-i,e.seq2Range.endExclusive-i)&&i<100;)i++;i--;let a=0;for(;e.seq1Range.start+a<r.endExclusive&&e.seq2Range.endExclusive+a<o.endExclusive&&n.isStronglyEqual(e.seq2Range.start+a,e.seq2Range.endExclusive+a)&&a<100;)a++;if(0===i&&0===a)return e;let s=0,l=-1;for(let c=-i;c<=a;c++){const r=e.seq2Range.start+c,o=e.seq2Range.endExclusive+c,i=e.seq1Range.start+c,a=t.getBoundaryScore(i)+n.getBoundaryScore(r)+n.getBoundaryScore(o);a>l&&(l=a,s=c)}return e.delta(s)}class ve{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-((0===e?0:be(this.lines[e-1]))+(e===this.lines.length?0:be(this.lines[e])))}getText(e){return this.lines.slice(e.start,e.endExclusive).join("\n")}isStronglyEqual(e,t){return this.lines[e]===this.lines[t]}}function be(e){let t=0;for(;t<e.length&&(32===e.charCodeAt(t)||9===e.charCodeAt(t));)t++;return t}class Ee{constructor(){this.dynamicProgrammingDiffing=new ne,this.myersDiffingAlgorithm=new re}computeDiff(e,t,n){if(e.length<=1&&(0,q.aI)(e,t,((e,t)=>e===t)))return new T([],[],!1);if(1===e.length&&0===e[0].length||1===t.length&&0===t[0].length)return new T([new P(new I.M(1,e.length+1),new I.M(1,t.length+1),[new w(new u.Q(1,1,e.length,e[e.length-1].length+1),new u.Q(1,1,t.length,t[t.length-1].length+1))])],[],!1);const r=0===n.maxComputationTimeMs?Y.instance:new Q(n.maxComputationTimeMs),o=!n.ignoreTrimWhitespace,i=new Map;function a(e){let t=i.get(e);return void 0===t&&(t=i.size,i.set(e,t)),t}const s=e.map((e=>a(e.trim()))),l=t.map((e=>a(e.trim()))),c=new ve(s,e),d=new ve(l,t),p=(()=>c.length+d.length<1700?this.dynamicProgrammingDiffing.compute(c,d,r,((n,r)=>e[n]===t[r]?0===t[r].length?.1:1+Math.log(1+t[r].length):.99)):this.myersDiffingAlgorithm.compute(c,d,r))();let f=p.diffs,m=p.hitTimeout;f=he(c,d,f),f=function(e,t,n){let r=n;if(0===r.length)return r;let o,i=0;do{o=!1;const a=[r[0]];for(let s=1;s<r.length;s++){const l=r[s],c=a[a.length-1];function d(t,n){const r=new D.L(c.seq1Range.endExclusive,l.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)}d(c,l)?(o=!0,a[a.length-1]=a[a.length-1].join(l)):a.push(l)}r=a}while(i++<10&&o);return r}(c,0,f);const _=[],h=n=>{if(o)for(let i=0;i<n;i++){const n=g+i,a=y+i;if(e[n]!==t[a]){const i=this.refineDiff(e,t,new X(new D.L(n,n+1),new D.L(a,a+1)),r,o);for(const e of i.mappings)_.push(e);i.hitTimeout&&(m=!0)}}};let g=0,y=0;for(const u of f){(0,C.Ft)((()=>u.seq1Range.start-g===u.seq2Range.start-y));h(u.seq1Range.start-g),g=u.seq1Range.endExclusive,y=u.seq2Range.endExclusive;const n=this.refineDiff(e,t,u,r,o);n.hitTimeout&&(m=!0);for(const e of n.mappings)_.push(e)}h(e.length-g);const v=Se(_,e,t);let b=[];return n.computeMoves&&(b=this.computeMoves(v,e,t,s,l,r,o)),(0,C.Ft)((()=>{function n(e,t){if(e.lineNumber<1||e.lineNumber>t.length)return!1;const 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(const o of v){if(!o.innerChanges)return!1;for(const r of o.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(o.modified,t)||!r(o.original,e))return!1}return!0})),new T(v,b,m)}computeMoves(e,t,n,r,o,i,a){return me(e,t,n,r,o,i).map((e=>{const r=Se(this.refineDiff(t,n,new X(e.original.toOffsetRange(),e.modified.toOffsetRange()),i,a).mappings,t,n,!0);return new x(e,r)}))}refineDiff(e,t,n,r,o){var i;const a=(i=n,new M(new I.M(i.seq1Range.start+1,i.seq1Range.endExclusive+1),new I.M(i.seq2Range.start+1,i.seq2Range.endExclusive+1))).toRangeMapping2(e,t),s=new ce(e,a.originalRange,o),l=new ce(t,a.modifiedRange,o),c=s.length+l.length<500?this.dynamicProgrammingDiffing.compute(s,l,r):this.myersDiffingAlgorithm.compute(s,l,r),d=!1;let u=c.diffs;u=he(s,l,u),u=function(e,t,n){const r=X.invert(n,e.length),o=[];let i=new $(0,0);function a(n,a){if(n.offset1<i.offset1||n.offset2<i.offset2)return;const s=e.findWordContaining(n.offset1),l=t.findWordContaining(n.offset2);if(!s||!l)return;let c=new X(s,l);const d=c.intersect(a);let u=d.seq1Range.length,p=d.seq2Range.length;for(;r.length>0;){const n=r[0];if(!n.seq1Range.intersects(c.seq1Range)&&!n.seq2Range.intersects(c.seq2Range))break;const o=e.findWordContaining(n.seq1Range.start),i=t.findWordContaining(n.seq2Range.start),a=new X(o,i),s=a.intersect(n);if(u+=s.seq1Range.length,p+=s.seq2Range.length,c=c.join(a),!(c.seq1Range.endExclusive>=n.seq1Range.endExclusive))break;r.shift()}u+p<2*(c.seq1Range.length+c.seq2Range.length)/3&&o.push(c),i=c.getEndExclusives()}for(;r.length>0;){const e=r.shift();e.seq1Range.isEmpty||(a(e.getStarts(),e),a(e.getEndExclusives().delta(-1),e))}return function(e,t){const n=[];for(;e.length>0||t.length>0;){const r=e[0],o=t[0];let i;i=r&&(!o||r.seq1Range.start<o.seq1Range.start)?e.shift():t.shift(),n.length>0&&n[n.length-1].seq1Range.endExclusive>=i.seq1Range.start?n[n.length-1]=n[n.length-1].join(i):n.push(i)}return n}(n,o)}(s,l,u),u=function(e,t,n){const r=[];for(const o of n){const e=r[r.length-1];e&&(o.seq1Range.start-e.seq1Range.endExclusive<=2||o.seq2Range.start-e.seq2Range.endExclusive<=2)?r[r.length-1]=new X(e.seq1Range.join(o.seq1Range),e.seq2Range.join(o.seq2Range)):r.push(o)}return r}(0,0,u),u=function(e,t,n){let r=n;if(0===r.length)return r;let o,i=0;do{o=!1;const s=[r[0]];for(let l=1;l<r.length;l++){const c=r[l],d=s[s.length-1];function u(n,r){const o=new D.L(d.seq1Range.endExclusive,c.seq1Range.start);if(e.countLinesIn(o)>5||o.length>500)return!1;const i=e.getText(o).trim();if(i.length>20||i.split(/\r\n|\r|\n/).length>1)return!1;const a=e.countLinesIn(n.seq1Range),s=n.seq1Range.length,l=t.countLinesIn(n.seq2Range),u=n.seq2Range.length,p=e.countLinesIn(r.seq1Range),f=r.seq1Range.length,m=t.countLinesIn(r.seq2Range),_=r.seq2Range.length;function h(e){return Math.min(e,130)}return Math.pow(Math.pow(h(40*a+s),1.5)+Math.pow(h(40*l+u),1.5),1.5)+Math.pow(Math.pow(h(40*p+f),1.5)+Math.pow(h(40*m+_),1.5),1.5)>74184.96480721243}u(d,c)?(o=!0,s[s.length-1]=s[s.length-1].join(c)):s.push(c)}r=s}while(i++<10&&o);const a=[];return(0,q.kj)(r,((t,n,r)=>{let o=n;function i(e){return e.length>0&&e.trim().length<=3&&n.seq1Range.length+n.seq2Range.length>100}const s=e.extendToFullLines(n.seq1Range),l=e.getText(new D.L(s.start,n.seq1Range.start));i(l)&&(o=o.deltaStart(-l.length));const c=e.getText(new D.L(n.seq1Range.endExclusive,s.endExclusive));i(c)&&(o=o.deltaEnd(c.length));const d=X.fromOffsetPairs(t?t.getEndExclusives():$.zero,r?r.getStarts():$.max),u=o.intersect(d);a.length>0&&u.getStarts().equals(a[a.length-1].getEndExclusives())?a[a.length-1]=a[a.length-1].join(u):a.push(u)})),a}(s,l,u);const p=u.map((e=>new w(s.translateRange(e.seq1Range),l.translateRange(e.seq2Range))));return{mappings:p,hitTimeout:c.hitTimeout}}}function Se(e,t,n,r=!1){const o=[];for(const i of(0,q.n)(e.map((e=>function(e,t,n){let r=0,o=0;1===e.modifiedRange.endColumn&&1===e.originalRange.endColumn&&e.originalRange.startLineNumber+r<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+r<=e.modifiedRange.endLineNumber&&(o=-1);e.modifiedRange.startColumn-1>=n[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+o&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+o&&(r=1);const i=new I.M(e.originalRange.startLineNumber+r,e.originalRange.endLineNumber+1+o),a=new I.M(e.modifiedRange.startLineNumber+r,e.modifiedRange.endLineNumber+1+o);return new P(i,a,[e])}(e,t,n))),((e,t)=>e.original.overlapOrTouch(t.original)||e.modified.overlapOrTouch(t.modified)))){const e=i[0],t=i[i.length-1];o.push(new P(e.original.join(t.original),e.modified.join(t.modified),i.map((e=>e.innerChanges[0]))))}return(0,C.Ft)((()=>{if(!r&&o.length>0){if(o[0].modified.startLineNumber!==o[0].original.startLineNumber)return!1;if(n.length-o[o.length-1].modified.endLineNumberExclusive!==t.length-o[o.length-1].original.endLineNumberExclusive)return!1}return(0,C.Xo)(o,((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))})),o}const Te=()=>new F,xe=()=>new Ee;var Ae=n(146),Ie=n(6456),Re=n(7661);function Ce(e){const t=[];for(const n of e){const e=Number(n);(e||0===e&&""!==n.replace(/\s/g,""))&&t.push(e)}return t}function De(e,t,n,r){return{red:e/255,blue:n/255,green:t/255,alpha:r}}function Ne(e,t){const n=t.index,r=t[0].length;if(!n)return;const o=e.positionAt(n);return{startLineNumber:o.lineNumber,startColumn:o.column,endLineNumber:o.lineNumber,endColumn:o.column+r}}function Me(e,t){if(!e)return;const n=Re.Q1.Format.CSS.parseHex(t);return n?{range:e,color:De(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}:void 0}function Le(e,t,n){if(!e||1!==t.length)return;const r=Ce(t[0].values());return{range:e,color:De(r[0],r[1],r[2],n?r[3]:1)}}function ke(e,t,n){if(!e||1!==t.length)return;const r=Ce(t[0].values()),o=new Re.Q1(new Re.hB(r[0],r[1]/100,r[2]/100,n?r[3]:1));return{range:e,color:De(o.rgba.r,o.rgba.g,o.rgba.b,o.rgba.a)}}function Pe(e,t){return"string"===typeof e?[...e.matchAll(t)]:e.findMatches(t)}function we(e){return e&&"function"===typeof e.getValue&&"function"===typeof e.positionAt?function(e){const t=[],n=Pe(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/gm);if(n.length>0)for(const r of n){const n=r.filter((e=>void 0!==e)),o=n[1],i=n[2];if(!i)continue;let a;if("rgb"===o){const t=/^\(\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;a=Le(Ne(e,r),Pe(i,t),!1)}else if("rgba"===o){const t=/^\(\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;a=Le(Ne(e,r),Pe(i,t),!0)}else if("hsl"===o){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;a=ke(Ne(e,r),Pe(i,t),!1)}else if("hsla"===o){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;a=ke(Ne(e,r),Pe(i,t),!0)}else"#"===o&&(a=Me(Ne(e,r),o+i));a&&t.push(a)}return t}(e):[]}var Oe=n(6691),Fe=n(796);class We{constructor(){this._workerTextModelSyncServer=new Fe.WorkerTextModelSyncServer}dispose(){}_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){const r=this._getModel(e);return r?S.UnicodeTextModelHighlighter.computeUnicodeHighlights(r,t,n):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async $findSectionHeaders(e,t){const n=this._getModel(e);return n?(0,Oe.findSectionHeaders)(n,t):[]}async $computeDiff(e,t,n,r){const o=this._getModel(e),i=this._getModel(t);if(!o||!i)return null;return ze.computeDiff(o,i,n,r)}static computeDiff(e,t,n,r){const o="advanced"===r?xe():Te(),i=e.getLinesContent(),a=t.getLinesContent(),s=o.computeDiff(i,a,n);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:!(s.changes.length>0)&&this._modelsAreIdentical(e,t),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){const 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(e,t,n){const r=this._getModel(e);if(!r)return t;const o=[];let i;t=t.slice(0).sort(((e,t)=>{if(e.range&&t.range)return u.Q.compareRangesUsingStarts(e.range,t.range);return(e.range?0:1)-(t.range?0:1)}));let s=0;for(let a=1;a<t.length;a++)u.Q.getEndPosition(t[s].range).equals(u.Q.getStartPosition(t[a].range))?(t[s].range=u.Q.fromPositions(u.Q.getStartPosition(t[s].range),u.Q.getEndPosition(t[a].range)),t[s].text+=t[a].text):(s++,t[s]=t[a]);t.length=s+1;for(let{range:l,text:c,eol:d}of t){if("number"===typeof d&&(i=d),u.Q.isEmpty(l)&&!c)continue;const e=r.getValueInRange(l);if(c=c.replace(/\r\n|\n|\r/g,r.eol),e===c)continue;if(Math.max(c.length,e.length)>ze._diffLimit){o.push({range:l,text:c});continue}const t=a(e,c,n),s=r.offsetAt(u.Q.lift(l).getStartPosition());for(const n of t){const e=r.positionAt(s+n.originalStart),t=r.positionAt(s+n.originalStart+n.originalLength),i={text:c.substr(n.modifiedStart,n.modifiedLength),range:{startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:t.lineNumber,endColumn:t.column}};r.getValueInRange(i.range)!==i.text&&o.push(i)}}return"number"===typeof i&&o.push({eol:i,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),o}async $computeLinks(e){const t=this._getModel(e);return t?function(e){return e&&"function"===typeof e.getLineCount&&"function"===typeof e.getLineContent?g.computeLinks(e):[]}(t):null}async $computeDefaultDocumentColors(e){const t=this._getModel(e);return t?we(t):null}static{this._suggestionsLimit=1e4}async $textualSuggest(e,t,n,r){const o=new E.W,i=new RegExp(n,r),a=new Set;e:for(const s of e){const e=this._getModel(s);if(e)for(const n of e.words(i))if(n!==t&&isNaN(Number(n))&&(a.add(n),a.size>ze._suggestionsLimit))break e}return{words:Array.from(a),duration:o.elapsed()}}async $computeWordRanges(e,t,n,r){const o=this._getModel(e);if(!o)return Object.create(null);const i=new RegExp(n,r),a=Object.create(null);for(let s=t.startLineNumber;s<t.endLineNumber;s++){const e=o.getLineWords(s,i);for(const t of e){if(!isNaN(Number(t.word)))continue;let e=a[t.word];e||(e=[],a[t.word]=e),e.push({startLineNumber:s,startColumn:t.startColumn,endLineNumber:s,endColumn:t.endColumn})}}return a}async $navigateValueSet(e,t,n,r,o){const i=this._getModel(e);if(!i)return null;const a=new RegExp(r,o);t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1});const s=i.getValueInRange(t),l=i.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},a);if(!l)return null;const c=i.getValueInRange(l);return y.INSTANCE.navigateValueSet(t,s,l,c,n)}}class ze extends We{constructor(e,t){super(),this._host=e,this._foreignModuleFactory=t,this._foreignModule=null}async $ping(){return"pong"}$loadForeignModule(e,t,r){const o={host:(0,Ae.kT)(r,((e,t)=>this._host.$fhr(e,t))),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(o,t),Promise.resolve((0,Ae.V0)(this._foreignModule))):new Promise(((r,i)=>{const a=e=>{this._foreignModule=e.create(o,t),r((0,Ae.V0)(this._foreignModule))};{const t=Ie.zl.asBrowserUri(`${e}.js`).toString(!0);n(9204)(`${t}`).then(a).catch(i)}}))}$fmr(e,t){if(!this._foreignModule||"function"!==typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(n){return Promise.reject(n)}}}function Be(e){return new ze(b.EditorWorkerHost.getChannel(e),null)}"function"===typeof importScripts&&(globalThis.monaco=(0,v.createMonacoBaseAPI)())},920:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IEditorWorkerService:()=>r});const r=(0,n(3591).u1)("editorWorkerService")},718:(e,t,n)=>{"use strict";n.r(t),n.d(t,{EditorWorkerHost:()=>r});class r{static{this.CHANNEL_NAME="editorWorkerHost"}static getChannel(e){return e.getChannel(r.CHANNEL_NAME)}static setChannel(e,t){e.setChannel(r.CHANNEL_NAME,t)}}},6691:(e,t,n)=>{"use strict";n.r(t),n.d(t,{findSectionHeaders:()=>i});const r=new RegExp("\\bMARK:\\s*(.*)$","d"),o=/^-+|-+$/g;function i(e,t){let n=[];if(t.findRegionSectionHeaders&&t.foldingRules?.markers){const r=function(e,t){const n=[],r=e.getLineCount();for(let o=1;o<=r;o++){const r=e.getLineContent(o),i=r.match(t.foldingRules.markers.start);if(i){const e={startLineNumber:o,startColumn:i[0].length+1,endLineNumber:o,endColumn:r.length+1};if(e.endColumn>e.startColumn){const t={range:e,...s(r.substring(i[0].length)),shouldBeInComments:!1};(t.text||t.hasSeparatorLine)&&n.push(t)}}}return n}(e,t);n=n.concat(r)}if(t.findMarkSectionHeaders){const t=function(e){const t=[],n=e.getLineCount();for(let r=1;r<=n;r++){a(e.getLineContent(r),r,t)}return t}(e);n=n.concat(t)}return n}function a(e,t,n){r.lastIndex=0;const o=r.exec(e);if(o){const e={startLineNumber:t,startColumn:o.indices[1][0]+1,endLineNumber:t,endColumn:o.indices[1][1]+1};if(e.endColumn>e.startColumn){const t={range:e,...s(o[1]),shouldBeInComments:!0};(t.text||t.hasSeparatorLine)&&n.push(t)}}}function s(e){const t=(e=e.trim()).startsWith("-");return{text:e=e.replace(o,""),hasSeparatorLine:t}}},5628:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getIconClasses:()=>p});var r,o=n(6456),i=n(9403),a=n(9400),s=n(3941);!function(e){e[e.FILE=0]="FILE",e[e.FOLDER=1]="FOLDER",e[e.ROOT_FOLDER=2]="ROOT_FOLDER"}(r||(r={}));var l,c,d=n(9493);!function(e){e.isThemeColor=function(e){return e&&"object"===typeof e&&"string"===typeof e.id}}(l||(l={})),function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9-]+",e.iconModifierExpression="~[A-Za-z]+",e.iconNameCharacter="[A-Za-z0-9~-]";const t=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function n(e){const r=t.exec(e.id);if(!r)return n(d.W.error);const[,o,i]=r,a=["codicon","codicon-"+o];return i&&a.push("codicon-modifier-"+i.substring(1)),a}e.asClassNameArray=n,e.asClassName=function(e){return n(e).join(" ")},e.asCSSSelector=function(e){return"."+n(e).join(".")},e.isThemeIcon=function(e){return e&&"object"===typeof e&&"string"===typeof e.id&&("undefined"===typeof e.color||l.isThemeColor(e.color))};const r=new RegExp(`^\\$\\((${e.iconNameExpression}(?:${e.iconModifierExpression})?)\\)$`);e.fromString=function(e){const t=r.exec(e);if(!t)return;const[,n]=t;return{id:n}},e.fromId=function(e){return{id:e}},e.modify=function(e,t){let n=e.id;const r=n.lastIndexOf("~");return-1!==r&&(n=n.substring(0,r)),t&&(n=`${n}~${t}`),{id:n}},e.getModifier=function(e){const t=e.id.lastIndexOf("~");if(-1!==t)return e.id.substring(t+1)},e.isEqual=function(e,t){return e.id===t.id&&e.color?.id===t.color?.id}}(c||(c={}));const u=/(?:\/|^)(?:([^\/]+)\/)?([^\/]+)$/;function p(e,t,n,l,d){if(c.isThemeIcon(d))return[`codicon-${d.id}`,"predefined-file-icon"];if(a.r.isUri(d))return[];const p=l===r.ROOT_FOLDER?["rootfolder-icon"]:l===r.FOLDER?["folder-icon"]:["file-icon"];if(n){let a;if(n.scheme===o.ny.data){a=i.B6.parseMetaData(n).get(i.B6.META_DATA_LABEL)}else{const e=n.path.match(u);e?(a=f(e[2].toLowerCase()),e[1]&&p.push(`${f(e[1].toLowerCase())}-name-dir-icon`)):a=f(n.authority.toLowerCase())}if(l===r.ROOT_FOLDER)p.push(`${a}-root-name-folder-icon`);else if(l===r.FOLDER)p.push(`${a}-name-folder-icon`);else{if(a){if(p.push(`${a}-name-file-icon`),p.push("name-file-icon"),a.length<=255){const e=a.split(".");for(let t=1;t<e.length;t++)p.push(`${e.slice(t).join(".")}-ext-file-icon`)}p.push("ext-file-icon")}const r=function(e,t,n){if(!n)return null;let r=null;if(n.scheme===o.ny.data){const e=i.B6.parseMetaData(n).get(i.B6.META_DATA_MIME);e&&(r=t.getLanguageIdByMimeType(e))}else{const t=e.getModel(n);t&&(r=t.getLanguageId())}if(r&&r!==s.vH)return r;return t.guessLanguageIdByFilepathOrFirstLine(n)}(e,t,n);r&&p.push(`${f(r)}-lang-file-icon`)}}return p}function f(e){return e.replace(/[\s]/g,"/")}},8709:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ILanguageFeatureDebounceService:()=>_,LanguageFeatureDebounceService:()=>v});var r=n(5600),o=n(4320);function i(e,t,n){return Math.min(Math.max(e,t),n)}class a{constructor(){this._n=1,this._val=0}update(e){return this._val=this._val+(e-this._val)/this._n,this._n+=1,this._val}get value(){return this._val}}class s{constructor(e){this._n=0,this._val=0,this._values=[],this._index=0,this._sum=0,this._values=new Array(e),this._values.fill(0,0,e)}update(e){const t=this._values[this._index];return this._values[this._index]=e,this._index=(this._index+1)%this._values.length,this._sum-=t,this._sum+=e,this._n<this._values.length&&(this._n+=1),this._val=this._sum/this._n,this._val}get value(){return this._val}}var l=n(3591);const c=(0,l.u1)("environmentService");var d=n(4621),u=n(3511),p=n(6456),f=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},m=function(e,t){return function(n,r){t(n,r,e)}};const _=(0,l.u1)("ILanguageFeatureDebounceService");var h;!function(e){const t=new WeakMap;let n=0;e.of=function(e){let r=t.get(e);return void 0===r&&(r=++n,t.set(e,r)),r}}(h||(h={}));class g{constructor(e){this._default=e}get(e){return this._default}update(e,t){return this._default}default(){return this._default}}class y{constructor(e,t,n,r,i,a){this._logService=e,this._name=t,this._registry=n,this._default=r,this._min=i,this._max=a,this._cache=new o.qK(50,.7)}_key(e){return e.id+this._registry.all(e).reduce(((e,t)=>(0,r.sN)(h.of(t),e)),0)}get(e){const t=this._key(e),n=this._cache.get(t);return n?i(n.value,this._min,this._max):this.default()}update(e,t){const n=this._key(e);let r=this._cache.get(n);r||(r=new s(6),this._cache.set(n,r));const o=i(r.update(t),this._min,this._max);return(0,p.v$)(e.uri,"output")||this._logService.trace(`[DEBOUNCE: ${this._name}] for ${e.uri.toString()} is ${o}ms`),o}_overall(){const e=new a;for(const[,t]of this._cache)e.update(t.value);return e.value}default(){return i(0|this._overall()||this._default,this._min,this._max)}}let v=class{constructor(e,t){this._logService=e,this._data=new Map,this._isDev=t.isExtensionDevelopment||!t.isBuilt}for(e,t,n){const r=n?.min??50,o=n?.max??r**2,i=n?.key??void 0,a=`${h.of(e)},${r}${i?","+i:""}`;let s=this._data.get(a);return s||(this._isDev?(this._logService.debug(`[DEBOUNCE: ${t}] is disabled in developed mode`),s=new g(1.5*r)):s=new y(this._logService,t,e,0|this._overallAverage()||1.5*r,r,o),this._data.set(a,s)),s}_overallAverage(){const e=new a;for(const t of this._data.values())e.update(t.default());return e.value}};v=f([m(0,u.rr),m(1,c)],v),(0,d.v)(_,v,1)},6942:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ILanguageFeaturesService:()=>r});const r=(0,n(3591).u1)("ILanguageFeaturesService")},2661:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LanguageFeaturesService:()=>_});var r=n(1234),o=n(1484),i=n(6223),a=n(6958),s=n(8821);function l(e,t,n,r,o,i){if(Array.isArray(e)){let a=0;for(const s of e){const e=l(s,t,n,r,o,i);if(10===e)return e;e>a&&(a=e)}return a}if("string"===typeof e)return r?"*"===e?5:e===n?10:0:0;if(e){const{language:l,pattern:c,scheme:d,hasAccessToAllModels:u,notebookType:p}=e;if(!r&&!u)return 0;p&&o&&(t=o);let f=0;if(d)if(d===t.scheme)f=10;else{if("*"!==d)return 0;f=5}if(l)if(l===n)f=10;else{if("*"!==l)return 0;f=Math.max(f,5)}if(p)if(p===i)f=10;else{if("*"!==p||void 0===i)return 0;f=Math.max(f,5)}if(c){let e;if(e="string"===typeof c?c:{...c,base:(0,s.S8)(c.base)},e!==t.fsPath&&!(0,a.YW)(e,t.fsPath))return 0;f=10}return f}return 0}function c(e){return"string"!==typeof e&&(Array.isArray(e)?e.every(c):!!e.exclusive)}class d{constructor(e,t,n,r,o){this.uri=e,this.languageId=t,this.notebookUri=n,this.notebookType=r,this.recursive=o}equals(e){return this.notebookType===e.notebookType&&this.languageId===e.languageId&&this.uri.toString()===e.uri.toString()&&this.notebookUri?.toString()===e.notebookUri?.toString()&&this.recursive===e.recursive}}class u{constructor(e){this._notebookInfoResolver=e,this._clock=0,this._entries=[],this._onDidChange=new r.vl,this.onDidChange=this._onDidChange.event}register(e,t){let n={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(n),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),(0,o.s)((()=>{if(n){const e=this._entries.indexOf(n);e>=0&&(this._entries.splice(e,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),n=void 0)}}))}has(e){return this.all(e).length>0}all(e){if(!e)return[];this._updateScores(e,!1);const t=[];for(const n of this._entries)n._score>0&&t.push(n.provider);return t}ordered(e,t=!1){const n=[];return this._orderedForEach(e,t,(e=>n.push(e.provider))),n}orderedGroups(e){const t=[];let n,r;return this._orderedForEach(e,!1,(e=>{n&&r===e._score?n.push(e.provider):(r=e._score,n=[e.provider],t.push(n))})),t}_orderedForEach(e,t,n){this._updateScores(e,t);for(const r of this._entries)r._score>0&&n(r)}_updateScores(e,t){const n=this._notebookInfoResolver?.(e.uri),r=n?new d(e.uri,e.getLanguageId(),n.uri,n.type,t):new d(e.uri,e.getLanguageId(),void 0,void 0,t);if(!this._lastCandidate?.equals(r)){this._lastCandidate=r;for(const n of this._entries)if(n._score=l(n.selector,r.uri,r.languageId,(0,i.vd)(e),r.notebookUri,r.notebookType),c(n.selector)&&n._score>0){if(!t){for(const e of this._entries)e._score=0;n._score=1e3;break}n._score=0}this._entries.sort(u._compareByScoreAndTime)}}static _compareByScoreAndTime(e,t){return e._score<t._score?1:e._score>t._score?-1:p(e.selector)&&!p(t.selector)?1:!p(e.selector)&&p(t.selector)?-1:e._time<t._time?1:e._time>t._time?-1:0}}function p(e){return"string"!==typeof e&&(Array.isArray(e)?e.some(p):Boolean(e.isBuiltin))}var f=n(6942),m=n(4621);class _{constructor(){this.referenceProvider=new u(this._score.bind(this)),this.renameProvider=new u(this._score.bind(this)),this.newSymbolNamesProvider=new u(this._score.bind(this)),this.codeActionProvider=new u(this._score.bind(this)),this.definitionProvider=new u(this._score.bind(this)),this.typeDefinitionProvider=new u(this._score.bind(this)),this.declarationProvider=new u(this._score.bind(this)),this.implementationProvider=new u(this._score.bind(this)),this.documentSymbolProvider=new u(this._score.bind(this)),this.inlayHintsProvider=new u(this._score.bind(this)),this.colorProvider=new u(this._score.bind(this)),this.codeLensProvider=new u(this._score.bind(this)),this.documentFormattingEditProvider=new u(this._score.bind(this)),this.documentRangeFormattingEditProvider=new u(this._score.bind(this)),this.onTypeFormattingEditProvider=new u(this._score.bind(this)),this.signatureHelpProvider=new u(this._score.bind(this)),this.hoverProvider=new u(this._score.bind(this)),this.documentHighlightProvider=new u(this._score.bind(this)),this.multiDocumentHighlightProvider=new u(this._score.bind(this)),this.selectionRangeProvider=new u(this._score.bind(this)),this.foldingRangeProvider=new u(this._score.bind(this)),this.linkProvider=new u(this._score.bind(this)),this.inlineCompletionsProvider=new u(this._score.bind(this)),this.inlineEditProvider=new u(this._score.bind(this)),this.completionProvider=new u(this._score.bind(this)),this.linkedEditingRangeProvider=new u(this._score.bind(this)),this.documentRangeSemanticTokensProvider=new u(this._score.bind(this)),this.documentSemanticTokensProvider=new u(this._score.bind(this)),this.documentDropEditProvider=new u(this._score.bind(this)),this.documentPasteEditProvider=new u(this._score.bind(this))}_score(e){return this._notebookTypeResolver?.(e)}}(0,m.v)(f.ILanguageFeaturesService,_,1)},7596:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LanguageService:()=>L});var r=n(1234),o=n(1484),i=n(9259),a=n(9861),s=n(2083),l=n(3941);const c=(e,t)=>e===t;new WeakMap;class d{constructor(e,t,n){this.owner=e,this.debugNameSource=t,this.referenceFn=n}getDebugName(e){return function(e,t){const n=p.get(e);if(n)return n;const r=function(e,t){const n=p.get(e);if(n)return n;const r=t.owner?function(e){const t=m.get(e);if(t)return t;const n=function(e){const t=e.constructor;if(t)return t.name;return"Object"}(e);let r=f.get(n)??0;r++,f.set(n,r);const o=1===r?n:`${n}#${r}`;return m.set(e,o),o}(t.owner)+".":"";let o;const i=t.debugNameSource;if(void 0!==i){if("function"!==typeof i)return r+i;if(o=i(),void 0!==o)return r+o}const a=t.referenceFn;if(void 0!==a&&(o=_(a),void 0!==o))return r+o;if(void 0!==t.owner){const n=function(e,t){for(const n in e)if(e[n]===t)return n;return}(t.owner,e);if(void 0!==n)return r+n}return}(e,t);if(r){let t=u.get(r)??0;t++,u.set(r,t);const n=1===t?r:`${r}#${t}`;return p.set(e,n),n}return}(e,this)}}const u=new Map,p=new WeakMap;const f=new Map,m=new WeakMap;function _(e){const t=e.toString(),n=/\/\*\*\s*@description\s*([^*]*)\*\//.exec(t),r=n?n[1]:void 0;return r?.trim()}let h,g,y,v;function b(){return h}class E{get TChange(){return null}reportChanges(){this.get()}read(e){return e?e.readObservable(this):this.get()}map(e,t){const n=void 0===t?void 0:e,r=void 0===t?e:t;return v({owner:n,debugName:()=>{const e=_(r);if(void 0!==e)return e;const t=/^\s*\(?\s*([a-zA-Z_$][a-zA-Z_$0-9]*)\s*\)?\s*=>\s*\1(?:\??)\.([a-zA-Z_$][a-zA-Z_$0-9]*)\s*$/.exec(r.toString());return t?`${this.debugName}.${t[2]}`:n?void 0:`${this.debugName} (mapped)`},debugReferenceFn:r},(e=>r(this.read(e),e)))}flatten(){return v({owner:void 0,debugName:()=>`${this.debugName} (flattened)`},(e=>this.read(e).read(e)))}recomputeInitiallyAndOnChange(e,t){return e.add(g(this,t)),this}keepObserved(e){return e.add(y(this)),this}}class S extends E{constructor(){super(...arguments),this.observers=new Set}addObserver(e){const t=this.observers.size;this.observers.add(e),0===t&&this.onFirstObserverAdded()}removeObserver(e){this.observers.delete(e)&&0===this.observers.size&&this.onLastObserverRemoved()}onFirstObserverAdded(){}onLastObserverRemoved(){}}function T(e,t){const n=new x(e,t);try{e(n)}finally{n.finish()}}class x{constructor(e,t){this._fn=e,this._getDebugName=t,this.updatingObservers=[],b()?.handleBeginTransaction(this)}getDebugName(){return this._getDebugName?this._getDebugName():_(this._fn)}updateObserver(e,t){this.updatingObservers.push({observer:e,observable:t}),e.beginUpdate(t)}finish(){const e=this.updatingObservers;for(let t=0;t<e.length;t++){const{observer:n,observable:r}=e[t];n.endUpdate(r)}this.updatingObservers=null,b()?.handleEndTransaction()}}var A=n(6782);!function(e){v=e}((function(e,t){return new I(new d(e.owner,e.debugName,e.debugReferenceFn),t,void 0,void 0,e.onLastObserverRemoved,e.equalsFn??c)}));class I extends S{get debugName(){return this._debugNameData.getDebugName(this)??"(anonymous)"}constructor(e,t,n,r,o=void 0,i){super(),this._debugNameData=e,this._computeFn=t,this.createChangeSummary=n,this._handleChange=r,this._handleLastObserverRemoved=o,this._equalityComparator=i,this.state=0,this.value=void 0,this.updateCount=0,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=void 0,this.changeSummary=this.createChangeSummary?.(),b()?.handleDerivedCreated(this)}onLastObserverRemoved(){this.state=0,this.value=void 0;for(const e of this.dependencies)e.removeObserver(this);this.dependencies.clear(),this._handleLastObserverRemoved?.()}get(){if(0===this.observers.size){const e=this._computeFn(this,this.createChangeSummary?.());return this.onLastObserverRemoved(),e}do{if(1===this.state)for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break;1===this.state&&(this.state=3),this._recomputeIfNeeded()}while(3!==this.state);return this.value}_recomputeIfNeeded(){if(3===this.state)return;const e=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=e;const t=0!==this.state,n=this.value;this.state=3;const r=this.changeSummary;this.changeSummary=this.createChangeSummary?.();try{this.value=this._computeFn(this,r)}finally{for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}const o=t&&!this._equalityComparator(n,this.value);if(b()?.handleDerivedRecomputed(this,{oldValue:n,newValue:this.value,change:void 0,didChange:o,hadValue:t}),o)for(const i of this.observers)i.handleChange(this,void 0)}toString(){return`LazyDerived<${this.debugName}>`}beginUpdate(e){this.updateCount++;const t=1===this.updateCount;if(3===this.state&&(this.state=1,!t))for(const n of this.observers)n.handlePossibleChange(this);if(t)for(const n of this.observers)n.beginUpdate(this)}endUpdate(e){if(this.updateCount--,0===this.updateCount){const e=[...this.observers];for(const t of e)t.endUpdate(this)}(0,A.Ft)((()=>this.updateCount>=0))}handlePossibleChange(e){if(3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){this.state=1;for(const e of this.observers)e.handlePossibleChange(this)}}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){const n=!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary),r=3===this.state;if(n&&(1===this.state||r)&&(this.state=2,r))for(const e of this.observers)e.handlePossibleChange(this)}}readObservable(e){e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}addObserver(e){const t=!this.observers.has(e)&&this.updateCount>0;super.addObserver(e),t&&e.beginUpdate(this)}removeObserver(e){const t=this.observers.has(e)&&this.updateCount>0;super.removeObserver(e),t&&e.endUpdate(this)}}function R(e){return new C(new d(void 0,void 0,e),e,void 0,void 0)}class C{get debugName(){return this._debugNameData.getDebugName(this)??"(anonymous)"}constructor(e,t,n,r){this._debugNameData=e,this._runFn=t,this.createChangeSummary=n,this._handleChange=r,this.state=2,this.updateCount=0,this.disposed=!1,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=this.createChangeSummary?.(),b()?.handleAutorunCreated(this),this._runIfNeeded(),(0,o.Ay)(this)}dispose(){this.disposed=!0;for(const e of this.dependencies)e.removeObserver(this);this.dependencies.clear(),(0,o.VD)(this)}_runIfNeeded(){if(3===this.state)return;const e=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=e,this.state=3;const t=this.disposed;try{if(!t){b()?.handleAutorunTriggered(this);const e=this.changeSummary;this.changeSummary=this.createChangeSummary?.(),this._runFn(this,e)}}finally{t||b()?.handleAutorunFinished(this);for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}}toString(){return`Autorun<${this.debugName}>`}beginUpdate(){3===this.state&&(this.state=1),this.updateCount++}endUpdate(){if(1===this.updateCount)do{if(1===this.state){this.state=3;for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break}this._runIfNeeded()}while(3!==this.state);this.updateCount--,(0,A.Ft)((()=>this.updateCount>=0))}handlePossibleChange(e){3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)&&(this.state=1)}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){(!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary))&&(this.state=2)}}readObservable(e){if(this.disposed)return e.get();e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}}!function(e){e.Observer=C}(R||(R={}));function D(...e){let t,n,r;return 3===e.length?[t,n,r]=e:[n,r]=e,new N(new d(t,void 0,r),n,r,(()=>N.globalTransaction),c)}class N extends S{constructor(e,t,n,r,o){super(),this._debugNameData=e,this.event=t,this._getValue=n,this._getTransaction=r,this._equalityComparator=o,this.hasValue=!1,this.handleEvent=e=>{const t=this._getValue(e),n=this.value,r=!this.hasValue||!this._equalityComparator(n,t);let o=!1;r&&(this.value=t,this.hasValue&&(o=!0,function(e,t,n){e?t(e):T(t,n)}(this._getTransaction(),(e=>{b()?.handleFromEventObservableTriggered(this,{oldValue:n,newValue:t,change:void 0,didChange:r,hadValue:this.hasValue});for(const t of this.observers)e.updateObserver(t,this),t.handleChange(this,void 0)}),(()=>{const e=this.getDebugName();return"Event fired"+(e?`: ${e}`:"")}))),this.hasValue=!0),o||b()?.handleFromEventObservableTriggered(this,{oldValue:n,newValue:t,change:void 0,didChange:r,hadValue:this.hasValue})}}getDebugName(){return this._debugNameData.getDebugName(this)}get debugName(){const e=this.getDebugName();return"From Event"+(e?`: ${e}`:"")}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0,this.hasValue=!1,this.value=void 0}get(){if(this.subscription)return this.hasValue||this.handleEvent(void 0),this.value;return this._getValue(void 0)}}!function(e){e.Observer=N,e.batchEventsGlobally=function(e,t){let n=!1;void 0===N.globalTransaction&&(N.globalTransaction=e,n=!0);try{t()}finally{n&&(N.globalTransaction=void 0)}}}(D||(D={}));!function(e){y=e}((function(e){const t=new M(!1,void 0);return e.addObserver(t),(0,o.s)((()=>{e.removeObserver(t)}))})),function(e){g=e}((function(e,t){const n=new M(!0,t);return e.addObserver(n),t?t(e.get()):e.reportChanges(),(0,o.s)((()=>{e.removeObserver(n)}))}));class M{constructor(e,t){this._forceRecompute=e,this._handleValue=t,this._counter=0}beginUpdate(e){this._counter++}endUpdate(e){this._counter--,0===this._counter&&this._forceRecompute&&(this._handleValue?this._handleValue(e.get()):e.reportChanges())}handlePossibleChange(e){}handleChange(e,t){}}n(4383);class L extends o.jG{static{this.instanceCount=0}constructor(e=!1){super(),this._onDidRequestBasicLanguageFeatures=this._register(new r.vl),this.onDidRequestBasicLanguageFeatures=this._onDidRequestBasicLanguageFeatures.event,this._onDidRequestRichLanguageFeatures=this._register(new r.vl),this.onDidRequestRichLanguageFeatures=this._onDidRequestRichLanguageFeatures.event,this._onDidChange=this._register(new r.vl({leakWarningThreshold:200})),this.onDidChange=this._onDidChange.event,this._requestedBasicLanguages=new Set,this._requestedRichLanguages=new Set,L.instanceCount++,this._registry=this._register(new i.LanguagesRegistry(!0,e)),this.languageIdCodec=this._registry.languageIdCodec,this._register(this._registry.onDidChange((()=>this._onDidChange.fire())))}dispose(){L.instanceCount--,super.dispose()}isRegisteredLanguageId(e){return this._registry.isRegisteredLanguageId(e)}getLanguageIdByLanguageName(e){return this._registry.getLanguageIdByLanguageName(e)}getLanguageIdByMimeType(e){return this._registry.getLanguageIdByMimeType(e)}guessLanguageIdByFilepathOrFirstLine(e,t){const n=this._registry.guessLanguageIdByFilepathOrFirstLine(e,t);return(0,a.Fy)(n,null)}createById(e){return new k(this.onDidChange,(()=>this._createAndGetLanguageIdentifier(e)))}createByFilepathOrFirstLine(e,t){return new k(this.onDidChange,(()=>{const n=this.guessLanguageIdByFilepathOrFirstLine(e,t);return this._createAndGetLanguageIdentifier(n)}))}_createAndGetLanguageIdentifier(e){return e&&this.isRegisteredLanguageId(e)||(e=l.vH),e}requestBasicLanguageFeatures(e){this._requestedBasicLanguages.has(e)||(this._requestedBasicLanguages.add(e),this._onDidRequestBasicLanguageFeatures.fire(e))}requestRichLanguageFeatures(e){this._requestedRichLanguages.has(e)||(this._requestedRichLanguages.add(e),this.requestBasicLanguageFeatures(e),s.dG.getOrCreate(e),this._onDidRequestRichLanguageFeatures.fire(e))}}class k{constructor(e,t){this._value=D(this,e,(()=>t())),this.onDidChange=r.Jh.fromObservable(this._value)}get languageId(){return this._value.get()}}},9908:(e,t,n)=>{"use strict";n.r(t),n.d(t,{clearPlatformLanguageAssociations:()=>m,getLanguageIds:()=>_,registerPlatformLanguageAssociation:()=>f});var r=n(6958),o=n(1939),i=n(6456),a=n(8821),s=n(9403),l=n(1508),c=n(3941);let d=[],u=[],p=[];function f(e,t=!1){!function(e,t,n){const o=function(e,t){return{id:e.id,mime:e.mime,filename:e.filename,extension:e.extension,filepattern:e.filepattern,firstline:e.firstline,userConfigured:t,filenameLowercase:e.filename?e.filename.toLowerCase():void 0,extensionLowercase:e.extension?e.extension.toLowerCase():void 0,filepatternLowercase:e.filepattern?(0,r.qg)(e.filepattern.toLowerCase()):void 0,filepatternOnPath:!!e.filepattern&&e.filepattern.indexOf(a.SA.sep)>=0}}(e,t);d.push(o),o.userConfigured?p.push(o):u.push(o);n&&!o.userConfigured&&d.forEach((e=>{e.mime===o.mime||e.userConfigured||(o.extension&&e.extension===o.extension&&console.warn(`Overwriting extension <<${o.extension}>> to now point to mime <<${o.mime}>>`),o.filename&&e.filename===o.filename&&console.warn(`Overwriting filename <<${o.filename}>> to now point to mime <<${o.mime}>>`),o.filepattern&&e.filepattern===o.filepattern&&console.warn(`Overwriting filepattern <<${o.filepattern}>> to now point to mime <<${o.mime}>>`),o.firstline&&e.firstline===o.firstline&&console.warn(`Overwriting firstline <<${o.firstline}>> to now point to mime <<${o.mime}>>`))}))}(e,!1,t)}function m(){d=d.filter((e=>e.userConfigured)),u=[]}function _(e,t){return function(e,t){let n;if(e)switch(e.scheme){case i.ny.file:n=e.fsPath;break;case i.ny.data:n=s.B6.parseMetaData(e).get(s.B6.META_DATA_LABEL);break;case i.ny.vscodeNotebookCell:n=void 0;break;default:n=e.path}if(!n)return[{id:"unknown",mime:o.K.unknown}];n=n.toLowerCase();const r=(0,a.P8)(n),f=h(n,r,p);if(f)return[f,{id:c.vH,mime:o.K.text}];const m=h(n,r,u);if(m)return[m,{id:c.vH,mime:o.K.text}];if(t){const e=function(e){(0,l.LU)(e)&&(e=e.substr(1));if(e.length>0)for(let t=d.length-1;t>=0;t--){const n=d[t];if(!n.firstline)continue;const r=e.match(n.firstline);if(r&&r.length>0)return n}return}(t);if(e)return[e,{id:c.vH,mime:o.K.text}]}return[{id:"unknown",mime:o.K.unknown}]}(e,t).map((e=>e.id))}function h(e,t,n){let r,o,i;for(let a=n.length-1;a>=0;a--){const s=n[a];if(t===s.filenameLowercase){r=s;break}if(s.filepattern&&(!o||s.filepattern.length>o.filepattern.length)){const n=s.filepatternOnPath?e:t;s.filepatternLowercase?.(n)&&(o=s)}s.extension&&(!i||s.extension.length>i.extension.length)&&t.endsWith(s.extensionLowercase)&&(i=s)}return r||(o||(i||void 0))}},9259:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LanguageIdCodec:()=>p,LanguagesRegistry:()=>f});var r=n(1234),o=n(1484),i=n(1508),a=n(9908),s=n(3941),l=n(1646),c=n(6359);const d=Object.prototype.hasOwnProperty,u="vs.editor.nullLanguage";class p{constructor(){this._languageIdToLanguage=[],this._languageToLanguageId=new Map,this._register(u,0),this._register(s.vH,1),this._nextLanguageId=2}_register(e,t){this._languageIdToLanguage[t]=e,this._languageToLanguageId.set(e,t)}register(e){if(this._languageToLanguageId.has(e))return;const t=this._nextLanguageId++;this._register(e,t)}encodeLanguageId(e){return this._languageToLanguageId.get(e)||0}decodeLanguageId(e){return this._languageIdToLanguage[e]||u}}class f extends o.jG{static{this.instanceCount=0}constructor(e=!0,t=!1){super(),this._onDidChange=this._register(new r.vl),this.onDidChange=this._onDidChange.event,f.instanceCount++,this._warnOnOverwrite=t,this.languageIdCodec=new p,this._dynamicLanguages=[],this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},e&&(this._initializeFromRegistry(),this._register(s.W6.onDidChangeLanguages((e=>{this._initializeFromRegistry()}))))}dispose(){f.instanceCount--,super.dispose()}_initializeFromRegistry(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},(0,a.clearPlatformLanguageAssociations)();const e=[].concat(s.W6.getLanguages()).concat(this._dynamicLanguages);this._registerLanguages(e)}_registerLanguages(e){for(const t of e)this._registerLanguage(t);this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach((e=>{const t=this._languages[e];t.name&&(this._nameMap[t.name]=t.identifier),t.aliases.forEach((e=>{this._lowercaseNameMap[e.toLowerCase()]=t.identifier})),t.mimetypes.forEach((e=>{this._mimeTypesMap[e]=t.identifier}))})),c.O.as(l.Fd.Configuration).registerOverrideIdentifiers(this.getRegisteredLanguageIds()),this._onDidChange.fire()}_registerLanguage(e){const t=e.id;let n;d.call(this._languages,t)?n=this._languages[t]:(this.languageIdCodec.register(t),n={identifier:t,name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[],icons:[]},this._languages[t]=n),this._mergeLanguage(n,e)}_mergeLanguage(e,t){const n=t.id;let r=null;if(Array.isArray(t.mimetypes)&&t.mimetypes.length>0&&(e.mimetypes.push(...t.mimetypes),r=t.mimetypes[0]),r||(r=`text/x-${n}`,e.mimetypes.push(r)),Array.isArray(t.extensions)){t.configuration?e.extensions=t.extensions.concat(e.extensions):e.extensions=e.extensions.concat(t.extensions);for(const e of t.extensions)(0,a.registerPlatformLanguageAssociation)({id:n,mime:r,extension:e},this._warnOnOverwrite)}if(Array.isArray(t.filenames))for(const i of t.filenames)(0,a.registerPlatformLanguageAssociation)({id:n,mime:r,filename:i},this._warnOnOverwrite),e.filenames.push(i);if(Array.isArray(t.filenamePatterns))for(const i of t.filenamePatterns)(0,a.registerPlatformLanguageAssociation)({id:n,mime:r,filepattern:i},this._warnOnOverwrite);if("string"===typeof t.firstLine&&t.firstLine.length>0){let e=t.firstLine;"^"!==e.charAt(0)&&(e="^"+e);try{const t=new RegExp(e);(0,i.eY)(t)||(0,a.registerPlatformLanguageAssociation)({id:n,mime:r,firstline:t},this._warnOnOverwrite)}catch(l){console.warn(`[${t.id}]: Invalid regular expression \`${e}\`: `,l)}}e.aliases.push(n);let o=null;if("undefined"!==typeof t.aliases&&Array.isArray(t.aliases)&&(o=0===t.aliases.length?[null]:t.aliases),null!==o)for(const i of o)i&&0!==i.length&&e.aliases.push(i);const s=null!==o&&o.length>0;if(s&&null===o[0]);else{const t=(s?o[0]:null)||n;!s&&e.name||(e.name=t)}t.configuration&&e.configurationFiles.push(t.configuration),t.icon&&e.icons.push(t.icon)}isRegisteredLanguageId(e){return!!e&&d.call(this._languages,e)}getRegisteredLanguageIds(){return Object.keys(this._languages)}getLanguageIdByLanguageName(e){const t=e.toLowerCase();return d.call(this._lowercaseNameMap,t)?this._lowercaseNameMap[t]:null}getLanguageIdByMimeType(e){return e&&d.call(this._mimeTypesMap,e)?this._mimeTypesMap[e]:null}guessLanguageIdByFilepathOrFirstLine(e,t){return e||t?(0,a.getLanguageIds)(e,t):[]}}},7550:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IMarkerDecorationsService:()=>r});const r=(0,n(3591).u1)("markerDecorationsService")},448:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MarkerDecorationsService:()=>T});var r,o=n(1508);!function(e){e[e.Ignore=0]="Ignore",e[e.Info=1]="Info",e[e.Warning=2]="Warning",e[e.Error=3]="Error"}(r||(r={})),function(e){const t="error",n="warning",r="info";e.fromValue=function(i){return i?o.Q_(t,i)?e.Error:o.Q_(n,i)||o.Q_("warn",i)?e.Warning:o.Q_(r,i)?e.Info:e.Ignore:e.Ignore},e.toString=function(o){switch(o){case e.Error:return t;case e.Warning:return n;case e.Info:return r;default:return"ignore"}}}(r||(r={}));const i=r;var a,s,l=n(8209),c=n(3591);!function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(a||(a={})),function(e){e.compare=function(e,t){return t-e};const t=Object.create(null);t[e.Error]=(0,l.kg)("sev.error","Error"),t[e.Warning]=(0,l.kg)("sev.warning","Warning"),t[e.Info]=(0,l.kg)("sev.info","Info"),e.toString=function(e){return t[e]||""},e.fromSeverity=function(t){switch(t){case i.Error:return e.Error;case i.Warning:return e.Warning;case i.Info:return e.Info;case i.Ignore:return e.Hint}},e.toSeverity=function(t){switch(t){case e.Error:return i.Error;case e.Warning:return i.Warning;case e.Info:return i.Info;case e.Hint:return i.Ignore}}}(a||(a={})),function(e){const t="";function n(e,n){const r=[t];return e.source?r.push(e.source.replace("\xa6","\\\xa6")):r.push(t),e.code?"string"===typeof e.code?r.push(e.code.replace("\xa6","\\\xa6")):r.push(e.code.value.replace("\xa6","\\\xa6")):r.push(t),void 0!==e.severity&&null!==e.severity?r.push(a.toString(e.severity)):r.push(t),e.message&&n?r.push(e.message.replace("\xa6","\\\xa6")):r.push(t),void 0!==e.startLineNumber&&null!==e.startLineNumber?r.push(e.startLineNumber.toString()):r.push(t),void 0!==e.startColumn&&null!==e.startColumn?r.push(e.startColumn.toString()):r.push(t),void 0!==e.endLineNumber&&null!==e.endLineNumber?r.push(e.endLineNumber.toString()):r.push(t),void 0!==e.endColumn&&null!==e.endColumn?r.push(e.endColumn.toString()):r.push(t),r.push(t),r.join("\xa6")}e.makeKey=function(e){return n(e,!0)},e.makeKeyOptionalMessage=n}(s||(s={}));const d=(0,c.u1)("markerService");var u=n(1484),p=n(6223),f=n(5724),m=n(7119),_=n(3750),h=n(6677),g=n(6456),y=n(1234),v=n(5845),b=n(4320);var E=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},S=function(e,t){return function(n,r){t(n,r,e)}};let T=class extends u.jG{constructor(e,t){super(),this._markerService=t,this._onDidChangeMarker=this._register(new y.vl),this._markerDecorations=new b.fT,e.getModels().forEach((e=>this._onModelAdded(e))),this._register(e.onModelAdded(this._onModelAdded,this)),this._register(e.onModelRemoved(this._onModelRemoved,this)),this._register(this._markerService.onMarkerChanged(this._handleMarkerChange,this))}dispose(){super.dispose(),this._markerDecorations.forEach((e=>e.dispose())),this._markerDecorations.clear()}getMarker(e,t){const n=this._markerDecorations.get(e);return n&&n.getMarker(t)||null}_handleMarkerChange(e){e.forEach((e=>{const t=this._markerDecorations.get(e);t&&this._updateDecorations(t)}))}_onModelAdded(e){const t=new x(e);this._markerDecorations.set(e.uri,t),this._updateDecorations(t)}_onModelRemoved(e){const t=this._markerDecorations.get(e.uri);t&&(t.dispose(),this._markerDecorations.delete(e.uri)),e.uri.scheme!==g.ny.inMemory&&e.uri.scheme!==g.ny.internal&&e.uri.scheme!==g.ny.vscode||this._markerService?.read({resource:e.uri}).map((e=>e.owner)).forEach((t=>this._markerService.remove(t,[e.uri])))}_updateDecorations(e){const t=this._markerService.read({resource:e.model.uri,take:500});e.update(t)&&this._onDidChangeMarker.fire(e.model)}};T=E([S(0,_.IModelService),S(1,d)],T);class x extends u.jG{constructor(e){super(),this.model=e,this._map=new b.cO,this._register((0,u.s)((()=>{this.model.deltaDecorations([...this._map.values()],[]),this._map.clear()})))}update(e){const{added:t,removed:n}=function(e,t){const n=[],r=[];for(const o of e)t.has(o)||n.push(o);for(const o of t)e.has(o)||r.push(o);return{removed:n,added:r}}(new Set(this._map.keys()),new Set(e));if(0===t.length&&0===n.length)return!1;const r=n.map((e=>this._map.get(e))),o=t.map((e=>({range:this._createDecorationRange(this.model,e),options:this._createDecorationOption(e)}))),i=this.model.deltaDecorations(r,o);for(const a of n)this._map.delete(a);for(let a=0;a<i.length;a++)this._map.set(t[a],i[a]);return!0}getMarker(e){return this._map.getKey(e.id)}_createDecorationRange(e,t){let n=h.Q.lift(t);if(t.severity!==a.Hint||this._hasMarkerTag(t,1)||this._hasMarkerTag(t,2)||(n=n.setEndPosition(n.startLineNumber,n.startColumn+2)),n=e.validateRange(n),n.isEmpty()){const t=e.getLineLastNonWhitespaceColumn(n.startLineNumber)||e.getLineMaxColumn(n.startLineNumber);if(1===t||n.endColumn>=t)return n;const r=e.getWordAtPosition(n.getStartPosition());r&&(n=new h.Q(n.startLineNumber,r.startColumn,n.endLineNumber,r.endColumn))}else if(t.endColumn===Number.MAX_VALUE&&1===t.startColumn&&n.startLineNumber===n.endLineNumber){const r=e.getLineFirstNonWhitespaceColumn(t.startLineNumber);r<n.endColumn&&(n=new h.Q(n.startLineNumber,r,n.endLineNumber,n.endColumn),t.startColumn=r)}return n}_createDecorationOption(e){let t,n,r,o,i;switch(e.severity){case a.Hint:t=this._hasMarkerTag(e,2)?void 0:this._hasMarkerTag(e,1)?"squiggly-unnecessary":"squiggly-hint",r=0;break;case a.Info:t="squiggly-info",n=(0,f.Yf)(m.AQ),r=10,i={color:(0,f.Yf)(v.KoI),position:1};break;case a.Warning:t="squiggly-warning",n=(0,f.Yf)(m.aZ),r=20,i={color:(0,f.Yf)(v.uMG),position:1};break;case a.Error:default:t="squiggly-error",n=(0,f.Yf)(m.yI),r=30,i={color:(0,f.Yf)(v.yLC),position:1}}return e.tags&&(-1!==e.tags.indexOf(1)&&(o="squiggly-inline-unnecessary"),-1!==e.tags.indexOf(2)&&(o="squiggly-inline-deprecated")),{description:"marker-decoration",stickiness:1,className:t,showIfCollapsed:!0,overviewRuler:{color:n,position:p.A5.Right},minimap:i,zIndex:r,inlineClassName:o}}_hasMarkerTag(e,t){return!!e.tags&&e.tags.indexOf(t)>=0}}},3750:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IModelService:()=>r});const r=(0,n(3591).u1)("modelService")},1773:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DefaultModelSHA1Computer:()=>To,ModelService:()=>So});var r=n(1234),o=n(1484),i=n(8067),a=n(9861),s=n(7661),l=n(4383),c=n(1508),d=n(9400),u=n(4454);class p{static _nextVisibleColumn(e,t,n){return 9===e?p.nextRenderTabStop(t,n):c.ne(e)||c.Ss(e)?t+2:t+1}static visibleColumnFromColumn(e,t,n){const r=Math.min(t-1,e.length),o=e.substring(0,r),i=new c.km(o);let a=0;for(;!i.eol();){const e=c.Z5(o,r,i.offset);i.nextGraphemeLength(),a=this._nextVisibleColumn(e,a,n)}return a}static columnFromVisibleColumn(e,t,n){if(t<=0)return 1;const r=e.length,o=new c.km(e);let i=0,a=1;for(;!o.eol();){const s=c.Z5(e,r,o.offset);o.nextGraphemeLength();const l=this._nextVisibleColumn(s,i,n),d=o.offset+1;if(l>=t){return l-t<t-i?d:a}i=l,a=d}return r+1}static nextRenderTabStop(e,t){return e+t-e%t}static nextIndentTabStop(e,t){return e+t-e%t}static prevRenderTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}static prevIndentTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}}function f(e,t,n){let r=c.HG(e);return-1===r&&(r=e.length),function(e,t,n){let r=0;for(let i=0;i<e.length;i++)"\t"===e.charAt(i)?r=p.nextIndentTabStop(r,t):r++;let o="";if(!n){const e=Math.floor(r/t);r%=t;for(let t=0;t<e;t++)o+="\t"}for(let i=0;i<r;i++)o+=" ";return o}(e.substring(0,r),t,n)+e.substring(r)}var m=n(3069),_=n(6677),h=n(5326);const g={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}};var y,v=n(154),b=n(6486);!function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(y||(y={}));class E{constructor(e){if(this._neutralCharacter=null,this._neutralCharacterSearched=!1,this.open=e.open,this.close=e.close,this._inString=!0,this._inComment=!0,this._inRegEx=!0,Array.isArray(e.notIn))for(let t=0,n=e.notIn.length;t<n;t++){switch(e.notIn[t]){case"string":this._inString=!1;break;case"comment":this._inComment=!1;break;case"regex":this._inRegEx=!1}}}isOK(e){switch(e){case 0:return!0;case 1:return this._inComment;case 2:return this._inString;case 3:return this._inRegEx}}shouldAutoClose(e,t){if(0===e.getTokenCount())return!0;const n=e.findTokenIndexAtOffset(t-2),r=e.getStandardTokenType(n);return this.isOK(r)}_findNeutralCharacterInRange(e,t){for(let n=e;n<=t;n++){const e=String.fromCharCode(n);if(!this.open.includes(e)&&!this.close.includes(e))return e}return null}findNeutralCharacter(){return this._neutralCharacterSearched||(this._neutralCharacterSearched=!0,this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(48,57)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(97,122)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(65,90))),this._neutralCharacter}}class S{constructor(e){this.autoClosingPairsOpenByStart=new Map,this.autoClosingPairsOpenByEnd=new Map,this.autoClosingPairsCloseByStart=new Map,this.autoClosingPairsCloseByEnd=new Map,this.autoClosingPairsCloseSingleChar=new Map;for(const t of e)T(this.autoClosingPairsOpenByStart,t.open.charAt(0),t),T(this.autoClosingPairsOpenByEnd,t.open.charAt(t.open.length-1),t),T(this.autoClosingPairsCloseByStart,t.close.charAt(0),t),T(this.autoClosingPairsCloseByEnd,t.close.charAt(t.close.length-1),t),1===t.close.length&&1===t.open.length&&T(this.autoClosingPairsCloseSingleChar,t.close,t)}}function T(e,t,n){e.has(t)?e.get(t).push(n):e.set(t,[n])}class x{static{this.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES=";:.,=}])> \n\t"}static{this.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS="'\"`;:.,=}])> \n\t"}constructor(e){if(e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map((e=>new E(e))):e.brackets?this._autoClosingPairs=e.brackets.map((e=>new E({open:e[0],close:e[1]}))):this._autoClosingPairs=[],e.__electricCharacterSupport&&e.__electricCharacterSupport.docComment){const t=e.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new E({open:t.open,close:t.close||""}))}this._autoCloseBeforeForQuotes="string"===typeof e.autoCloseBefore?e.autoCloseBefore:x.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES,this._autoCloseBeforeForBrackets="string"===typeof e.autoCloseBefore?e.autoCloseBefore:x.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS,this._surroundingPairs=e.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(e){return e?this._autoCloseBeforeForQuotes:this._autoCloseBeforeForBrackets}getSurroundingPairs(){return this._surroundingPairs}}function A(e){return 0!==(3&e)}var I=n(1674);let R,C,D;function N(){return R||(R=new TextDecoder("UTF-16LE")),R}function M(){return D||(D=i.cm()?N():(C||(C=new TextDecoder("UTF-16BE")),C)),D}function L(e,t,n){const r=new Uint16Array(e.buffer,t,n);return n>0&&(65279===r[0]||65534===r[0])?function(e,t,n){const r=[];let o=0;for(let i=0;i<n;i++){const n=I.$l(e,t);t+=2,r[o++]=String.fromCharCode(n)}return r.join("")}(e,t,n):N().decode(r)}class k{constructor(e,t,n,r,o,i){this._richEditBracketBrand=void 0,this.languageId=e,this.index=t,this.open=n,this.close=r,this.forwardRegex=o,this.reversedRegex=i,this._openSet=k._toSet(this.open),this._closeSet=k._toSet(this.close)}isOpen(e){return this._openSet.has(e)}isClose(e){return this._closeSet.has(e)}static _toSet(e){const t=new Set;for(const n of e)t.add(n);return t}}class P{constructor(e,t){this._richEditBracketsBrand=void 0;const n=function(e){const t=e.length;e=e.map((e=>[e[0].toLowerCase(),e[1].toLowerCase()]));const n=[];for(let a=0;a<t;a++)n[a]=a;const r=(e,t)=>{const[n,r]=e,[o,i]=t;return n===o||n===i||r===o||r===i},o=(e,r)=>{const o=Math.min(e,r),i=Math.max(e,r);for(let a=0;a<t;a++)n[a]===i&&(n[a]=o)};for(let a=0;a<t;a++){const i=e[a];for(let s=a+1;s<t;s++)r(i,e[s])&&o(n[a],n[s])}const i=[];for(let a=0;a<t;a++){const r=[],o=[];for(let i=0;i<t;i++)if(n[i]===a){const[t,n]=e[i];r.push(t),o.push(n)}r.length>0&&i.push({open:r,close:o})}return i}(t);this.brackets=n.map(((t,r)=>new k(e,r,t.open,t.close,function(e,t,n,r){let o=[];o=o.concat(e),o=o.concat(t);for(let i=0,a=o.length;i<a;i++)w(o[i],n,r,o);return o=F(o),o.sort(O),o.reverse(),z(o)}(t.open,t.close,n,r),function(e,t,n,r){let o=[];o=o.concat(e),o=o.concat(t);for(let i=0,a=o.length;i<a;i++)w(o[i],n,r,o);return o=F(o),o.sort(O),o.reverse(),z(o.map(B))}(t.open,t.close,n,r)))),this.forwardRegex=function(e){let t=[];for(const n of e){for(const e of n.open)t.push(e);for(const e of n.close)t.push(e)}return t=F(t),z(t)}(this.brackets),this.reversedRegex=function(e){let t=[];for(const n of e){for(const e of n.open)t.push(e);for(const e of n.close)t.push(e)}return t=F(t),z(t.map(B))}(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(const r of this.brackets){for(const e of r.open)this.textIsBracket[e]=r,this.textIsOpenBracket[e]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,e.length);for(const e of r.close)this.textIsBracket[e]=r,this.textIsOpenBracket[e]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,e.length)}}}function w(e,t,n,r){for(let o=0,i=t.length;o<i;o++){if(o===n)continue;const i=t[o];for(const t of i.open)t.indexOf(e)>=0&&r.push(t);for(const t of i.close)t.indexOf(e)>=0&&r.push(t)}}function O(e,t){return e.length-t.length}function F(e){if(e.length<=1)return e;const t=[],n=new Set;for(const r of e)n.has(r)||(t.push(r),n.add(r));return t}function W(e){const t=/^[\w ]+$/.test(e);return e=c.bm(e),t?`\\b${e}\\b`:e}function z(e,t){const n=`(${e.map(W).join(")|(")})`;return c.OS(n,!0,t)}const B=function(){let e=null,t=null;return function(n){return e!==n&&(e=n,t=function(e){const t=new Uint16Array(e.length);let n=0;for(let r=e.length-1;r>=0;r--)t[n++]=e.charCodeAt(r);return M().decode(t)}(e)),t}}();class G{static _findPrevBracketInText(e,t,n,r){const o=n.match(e);if(!o)return null;const i=n.length-(o.index||0),a=o[0].length,s=r+i;return new _.Q(t,s-a+1,t,s+1)}static findPrevBracketInRange(e,t,n,r,o){const i=B(n).substring(n.length-o,n.length-r);return this._findPrevBracketInText(e,t,i,r)}static findNextBracketInText(e,t,n,r){const o=n.match(e);if(!o)return null;const i=o.index||0,a=o[0].length;if(0===a)return null;const s=r+i;return new _.Q(t,s+1,t,s+1+a)}static findNextBracketInRange(e,t,n,r,o){const i=n.substring(r,o);return this.findNextBracketInText(e,t,i,r)}}class j{constructor(e){this._richEditBrackets=e}getElectricCharacters(){const e=[];if(this._richEditBrackets)for(const t of this._richEditBrackets.brackets)for(const n of t.close){const t=n.charAt(n.length-1);e.push(t)}return(0,a.dM)(e)}onElectricCharacter(e,t,n){if(!this._richEditBrackets||0===this._richEditBrackets.brackets.length)return null;const r=t.findTokenIndexAtOffset(n-1);if(A(t.getStandardTokenType(r)))return null;const o=this._richEditBrackets.reversedRegex,i=t.getLineContent().substring(0,n-1)+e,a=G.findPrevBracketInRange(o,1,i,0,i.length);if(!a)return null;const s=i.substring(a.startColumn-1,a.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[s])return null;const l=t.getActualLineContentBefore(a.startColumn-1);return/^\s*$/.test(l)?{matchOpenBracket:s}:null}}function V(e){return e.global&&(e.lastIndex=0),!0}class U{constructor(e){this._indentationRules=e}shouldIncrease(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&V(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(e))}shouldDecrease(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&V(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(e))}shouldIndentNextLine(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&V(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(e))}shouldIgnore(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&V(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(e))}getIndentMetadata(e){let t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t}}class H{constructor(e){(e=e||{}).brackets=e.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],e.brackets.forEach((e=>{const t=H._createOpenBracketRegExp(e[0]),n=H._createCloseBracketRegExp(e[1]);t&&n&&this._brackets.push({open:e[0],openRegExp:t,close:e[1],closeRegExp:n})})),this._regExpRules=e.onEnterRules||[]}onEnter(e,t,n,r){if(e>=3)for(let o=0,i=this._regExpRules.length;o<i;o++){const e=this._regExpRules[o];if([{reg:e.beforeText,text:n},{reg:e.afterText,text:r},{reg:e.previousLineText,text:t}].every((e=>!e.reg||(e.reg.lastIndex=0,e.reg.test(e.text)))))return e.action}if(e>=2&&n.length>0&&r.length>0)for(let o=0,i=this._brackets.length;o<i;o++){const e=this._brackets[o];if(e.openRegExp.test(n)&&e.closeRegExp.test(r))return{indentAction:y.IndentOutdent}}if(e>=2&&n.length>0)for(let o=0,i=this._brackets.length;o<i;o++){if(this._brackets[o].openRegExp.test(n))return{indentAction:y.Indent}}return null}static _createOpenBracketRegExp(e){let t=c.bm(e);return/\B/.test(t.charAt(0))||(t="\\b"+t),t+="\\s*$",H._safeRegExp(t)}static _createCloseBracketRegExp(e){let t=c.bm(e);return/\B/.test(t.charAt(t.length-1))||(t+="\\b"),t="^\\s*"+t,H._safeRegExp(t)}static _safeRegExp(e){try{return new RegExp(e)}catch(t){return(0,l.dz)(t),null}}}var K=n(3591),q=n(4001),J=n(4621),X=n(3941),$=n(1788);class Y{constructor(e,t){this.languageId=e;const n=t.brackets?Q(t.brackets):[],r=new $.VV((e=>{const t=new Set;return{info:new ee(this,e,t),closing:t}})),o=new $.VV((e=>{const t=new Set,n=new Set;return{info:new te(this,e,t,n),opening:t,openingColorized:n}}));for(const[a,s]of n){const e=r.get(a),t=o.get(s);e.closing.add(t.info),t.opening.add(e.info)}const i=t.colorizedBracketPairs?Q(t.colorizedBracketPairs):n.filter((e=>!("<"===e[0]&&">"===e[1])));for(const[a,s]of i){const e=r.get(a),t=o.get(s);e.closing.add(t.info),t.openingColorized.add(e.info),t.opening.add(e.info)}this._openingBrackets=new Map([...r.cachedValues].map((([e,t])=>[e,t.info]))),this._closingBrackets=new Map([...o.cachedValues].map((([e,t])=>[e,t.info])))}get openingBrackets(){return[...this._openingBrackets.values()]}get closingBrackets(){return[...this._closingBrackets.values()]}getOpeningBracketInfo(e){return this._openingBrackets.get(e)}getClosingBracketInfo(e){return this._closingBrackets.get(e)}getBracketInfo(e){return this.getOpeningBracketInfo(e)||this.getClosingBracketInfo(e)}getBracketRegExp(e){return z(Array.from([...this._openingBrackets.keys(),...this._closingBrackets.keys()]),e)}}function Q(e){return e.filter((([e,t])=>""!==e&&""!==t))}class Z{constructor(e,t){this.config=e,this.bracketText=t}get languageId(){return this.config.languageId}}class ee extends Z{constructor(e,t,n){super(e,t),this.openedBrackets=n,this.isOpeningBracket=!0}}class te extends Z{constructor(e,t,n,r){super(e,t),this.openingBrackets=n,this.openingColorizedBrackets=r,this.isOpeningBracket=!1}closes(e){return e.config===this.config&&this.openingBrackets.has(e)}closesColorized(e){return e.config===this.config&&this.openingColorizedBrackets.has(e)}getOpeningBrackets(){return[...this.openingBrackets]}}var ne=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},re=function(e,t){return function(n,r){t(n,r,e)}};class oe{constructor(e){this.languageId=e}affects(e){return!this.languageId||this.languageId===e}}const ie=(0,K.u1)("languageConfigurationService");let ae=class extends o.jG{constructor(e,t){super(),this.configurationService=e,this.languageService=t,this._registry=this._register(new fe),this.onDidChangeEmitter=this._register(new r.vl),this.onDidChange=this.onDidChangeEmitter.event,this.configurations=new Map;const n=new Set(Object.values(se));this._register(this.configurationService.onDidChangeConfiguration((e=>{const t=e.change.keys.some((e=>n.has(e))),r=e.change.overrides.filter((([e,t])=>t.some((e=>n.has(e))))).map((([e])=>e));if(t)this.configurations.clear(),this.onDidChangeEmitter.fire(new oe(void 0));else for(const n of r)this.languageService.isRegisteredLanguageId(n)&&(this.configurations.delete(n),this.onDidChangeEmitter.fire(new oe(n)))}))),this._register(this._registry.onDidChange((e=>{this.configurations.delete(e.languageId),this.onDidChangeEmitter.fire(new oe(e.languageId))})))}register(e,t,n){return this._registry.register(e,t,n)}getLanguageConfiguration(e){let t=this.configurations.get(e);return t||(t=function(e,t,n,r){let o=t.getLanguageConfiguration(e);if(!o){if(!r.isRegisteredLanguageId(e))return new me(e,{});o=new me(e,{})}const i=function(e,t){const n=t.getValue(se.brackets,{overrideIdentifier:e}),r=t.getValue(se.colorizedBracketPairs,{overrideIdentifier:e});return{brackets:le(n),colorizedBracketPairs:le(r)}}(o.languageId,n),a=de([o.underlyingConfig,i]);return new me(o.languageId,a)}(e,this._registry,this.configurationService,this.languageService),this.configurations.set(e,t)),t}};ae=ne([re(0,q.pG),re(1,v.L)],ae);const se={brackets:"editor.language.brackets",colorizedBracketPairs:"editor.language.colorizedBracketPairs"};function le(e){if(Array.isArray(e))return e.map((e=>{if(Array.isArray(e)&&2===e.length)return[e[0],e[1]]})).filter((e=>!!e))}class ce{constructor(e){this.languageId=e,this._resolved=null,this._entries=[],this._order=0,this._resolved=null}register(e,t){const n=new ue(e,t,++this._order);return this._entries.push(n),this._resolved=null,(0,o.s)((()=>{for(let e=0;e<this._entries.length;e++)if(this._entries[e]===n){this._entries.splice(e,1),this._resolved=null;break}}))}getResolvedConfiguration(){if(!this._resolved){const e=this._resolve();e&&(this._resolved=new me(this.languageId,e))}return this._resolved}_resolve(){return 0===this._entries.length?null:(this._entries.sort(ue.cmp),de(this._entries.map((e=>e.configuration))))}}function de(e){let t={comments:void 0,brackets:void 0,wordPattern:void 0,indentationRules:void 0,onEnterRules:void 0,autoClosingPairs:void 0,surroundingPairs:void 0,autoCloseBefore:void 0,folding:void 0,colorizedBracketPairs:void 0,__electricCharacterSupport:void 0};for(const n of e)t={comments:n.comments||t.comments,brackets:n.brackets||t.brackets,wordPattern:n.wordPattern||t.wordPattern,indentationRules:n.indentationRules||t.indentationRules,onEnterRules:n.onEnterRules||t.onEnterRules,autoClosingPairs:n.autoClosingPairs||t.autoClosingPairs,surroundingPairs:n.surroundingPairs||t.surroundingPairs,autoCloseBefore:n.autoCloseBefore||t.autoCloseBefore,folding:n.folding||t.folding,colorizedBracketPairs:n.colorizedBracketPairs||t.colorizedBracketPairs,__electricCharacterSupport:n.__electricCharacterSupport||t.__electricCharacterSupport};return t}class ue{constructor(e,t,n){this.configuration=e,this.priority=t,this.order=n}static cmp(e,t){return e.priority===t.priority?e.order-t.order:e.priority-t.priority}}class pe{constructor(e){this.languageId=e}}class fe extends o.jG{constructor(){super(),this._entries=new Map,this._onDidChange=this._register(new r.vl),this.onDidChange=this._onDidChange.event,this._register(this.register(X.vH,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],colorizedBracketPairs:[],folding:{offSide:!0}},0))}register(e,t,n=0){let r=this._entries.get(e);r||(r=new ce(e),this._entries.set(e,r));const i=r.register(t,n);return this._onDidChange.fire(new pe(e)),(0,o.s)((()=>{i.dispose(),this._onDidChange.fire(new pe(e))}))}getLanguageConfiguration(e){const t=this._entries.get(e);return t?.getResolvedConfiguration()||null}}class me{constructor(e,t){this.languageId=e,this.underlyingConfig=t,this._brackets=null,this._electricCharacter=null,this._onEnterSupport=this.underlyingConfig.brackets||this.underlyingConfig.indentationRules||this.underlyingConfig.onEnterRules?new H(this.underlyingConfig):null,this.comments=me._handleComments(this.underlyingConfig),this.characterPair=new x(this.underlyingConfig),this.wordDefinition=this.underlyingConfig.wordPattern||b.Ld,this.indentationRules=this.underlyingConfig.indentationRules,this.underlyingConfig.indentationRules?this.indentRulesSupport=new U(this.underlyingConfig.indentationRules):this.indentRulesSupport=null,this.foldingRules=this.underlyingConfig.folding||{},this.bracketsNew=new Y(e,this.underlyingConfig)}getWordDefinition(){return(0,b.Io)(this.wordDefinition)}get brackets(){return!this._brackets&&this.underlyingConfig.brackets&&(this._brackets=new P(this.languageId,this.underlyingConfig.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new j(this.brackets)),this._electricCharacter}onEnter(e,t,n,r){return this._onEnterSupport?this._onEnterSupport.onEnter(e,t,n,r):null}getAutoClosingPairs(){return new S(this.characterPair.getAutoClosingPairs())}getAutoCloseBeforeSet(e){return this.characterPair.getAutoCloseBeforeSet(e)}getSurroundingPairs(){return this.characterPair.getSurroundingPairs()}static _handleComments(e){const t=e.comments;if(!t)return null;const n={};if(t.lineComment&&(n.lineCommentToken=t.lineComment),t.blockComment){const[e,r]=t.blockComment;n.blockCommentStartToken=e,n.blockCommentEndToken=r}return n}}(0,J.v)(ie,ae,1);var _e=n(6223);class he{constructor(e,t,n,r){this.range=e,this.nestingLevel=t,this.nestingLevelOfEqualBracketType=n,this.isInvalid=r}}class ge{constructor(e,t,n,r,o,i){this.range=e,this.openingBracketRange=t,this.closingBracketRange=n,this.nestingLevel=r,this.nestingLevelOfEqualBracketType=o,this.bracketPairNode=i}get openingBracketInfo(){return this.bracketPairNode.openingBracket.bracketInfo}}class ye extends ge{constructor(e,t,n,r,o,i,a){super(e,t,n,r,o,i),this.minVisibleColumnIndentation=a}}var ve=n(973);function be(e){return 0===e}const Ee=2**26;function Se(e,t){return e*Ee+t}function Te(e){const t=e,n=Math.floor(t/Ee),r=t-n*Ee;return new ve.W(n,r)}function xe(e,t){let n=e+t;return t>=Ee&&(n-=e%Ee),n}function Ae(e,t){return e.reduce(((e,n)=>xe(e,t(n))),0)}function Ie(e,t){return e===t}function Re(e,t){const n=e,r=t;if(r-n<=0)return 0;const o=Math.floor(n/Ee),i=Math.floor(r/Ee),a=r-i*Ee;if(o===i){return Se(0,a-(n-o*Ee))}return Se(i-o,a)}function Ce(e,t){return e<t}function De(e,t){return e<=t}function Ne(e,t){return e>=t}function Me(e){return Se(e.lineNumber-1,e.column-1)}function Le(e,t){const n=e,r=Math.floor(n/Ee),o=n-r*Ee,i=t,a=Math.floor(i/Ee),s=i-a*Ee;return new _.Q(r+1,o+1,a+1,s+1)}class ke{static fromModelContentChanges(e){return e.map((e=>{const t=_.Q.lift(e.range);return new ke(Me(t.getStartPosition()),Me(t.getEndPosition()),function(e){const t=(0,c.uz)(e);return Se(t.length-1,t[t.length-1].length)}(e.text))})).reverse()}constructor(e,t,n){this.startOffset=e,this.endOffset=t,this.newLength=n}toString(){return`[${Te(this.startOffset)}...${Te(this.endOffset)}) -> ${Te(this.newLength)}`}}class Pe{constructor(e){this.nextEditIdx=0,this.deltaOldToNewLineCount=0,this.deltaOldToNewColumnCount=0,this.deltaLineIdxInOld=-1,this.edits=e.map((e=>we.from(e)))}getOffsetBeforeChange(e){return this.adjustNextEdit(e),this.translateCurToOld(e)}getDistanceToNextChange(e){this.adjustNextEdit(e);const t=this.edits[this.nextEditIdx],n=t?this.translateOldToCur(t.offsetObj):null;return null===n?null:Re(e,n)}translateOldToCur(e){return e.lineCount===this.deltaLineIdxInOld?Se(e.lineCount+this.deltaOldToNewLineCount,e.columnCount+this.deltaOldToNewColumnCount):Se(e.lineCount+this.deltaOldToNewLineCount,e.columnCount)}translateCurToOld(e){const t=Te(e);return t.lineCount-this.deltaOldToNewLineCount===this.deltaLineIdxInOld?Se(t.lineCount-this.deltaOldToNewLineCount,t.columnCount-this.deltaOldToNewColumnCount):Se(t.lineCount-this.deltaOldToNewLineCount,t.columnCount)}adjustNextEdit(e){for(;this.nextEditIdx<this.edits.length;){const t=this.edits[this.nextEditIdx],n=this.translateOldToCur(t.endOffsetAfterObj);if(!De(n,e))break;{this.nextEditIdx++;const e=Te(n),r=Te(this.translateOldToCur(t.endOffsetBeforeObj)),o=e.lineCount-r.lineCount;this.deltaOldToNewLineCount+=o;const i=this.deltaLineIdxInOld===t.endOffsetBeforeObj.lineCount?this.deltaOldToNewColumnCount:0,a=e.columnCount-r.columnCount;this.deltaOldToNewColumnCount=i+a,this.deltaLineIdxInOld=t.endOffsetBeforeObj.lineCount}}}}class we{static from(e){return new we(e.startOffset,e.endOffset,e.newLength)}constructor(e,t,n){this.endOffsetBeforeObj=Te(t),this.endOffsetAfterObj=Te(xe(e,n)),this.offsetObj=Te(e)}}const Oe=[];class Fe{static{this.cache=new Array(129)}static create(e,t){if(e<=128&&0===t.length){let n=Fe.cache[e];return n||(n=new Fe(e,t),Fe.cache[e]=n),n}return new Fe(e,t)}static{this.empty=Fe.create(0,Oe)}static getEmpty(){return this.empty}constructor(e,t){this.items=e,this.additionalItems=t}add(e,t){const n=t.getKey(e);let r=n>>5;if(0===r){const e=1<<n|this.items;return e===this.items?this:Fe.create(e,this.additionalItems)}r--;const o=this.additionalItems.slice(0);for(;o.length<r;)o.push(0);return o[r]|=1<<(31&n),Fe.create(this.items,o)}merge(e){const t=this.items|e.items;if(this.additionalItems===Oe&&e.additionalItems===Oe)return t===this.items?this:t===e.items?e:Fe.create(t,Oe);const n=[];for(let r=0;r<Math.max(this.additionalItems.length,e.additionalItems.length);r++){const t=this.additionalItems[r]||0,o=e.additionalItems[r]||0;n.push(t|o)}return Fe.create(t,n)}intersects(e){if(0!==(this.items&e.items))return!0;for(let t=0;t<Math.min(this.additionalItems.length,e.additionalItems.length);t++)if(0!==(this.additionalItems[t]&e.additionalItems[t]))return!0;return!1}}const We={getKey:e=>e};class ze{constructor(){this.items=new Map}getKey(e){let t=this.items.get(e);return void 0===t&&(t=this.items.size,this.items.set(e,t)),t}}class Be{get length(){return this._length}constructor(e){this._length=e}}class Ge extends Be{static create(e,t,n){let r=e.length;return t&&(r=xe(r,t.length)),n&&(r=xe(r,n.length)),new Ge(r,e,t,n,t?t.missingOpeningBracketIds:Fe.getEmpty())}get kind(){return 2}get listHeight(){return 0}get childrenLength(){return 3}getChild(e){switch(e){case 0:return this.openingBracket;case 1:return this.child;case 2:return this.closingBracket}throw new Error("Invalid child index")}get children(){const e=[];return e.push(this.openingBracket),this.child&&e.push(this.child),this.closingBracket&&e.push(this.closingBracket),e}constructor(e,t,n,r,o){super(e),this.openingBracket=t,this.child=n,this.closingBracket=r,this.missingOpeningBracketIds=o}canBeReused(e){return null!==this.closingBracket&&!e.intersects(this.missingOpeningBracketIds)}deepClone(){return new Ge(this.length,this.openingBracket.deepClone(),this.child&&this.child.deepClone(),this.closingBracket&&this.closingBracket.deepClone(),this.missingOpeningBracketIds)}computeMinIndentation(e,t){return this.child?this.child.computeMinIndentation(xe(e,this.openingBracket.length),t):Number.MAX_SAFE_INTEGER}}class je extends Be{static create23(e,t,n,r=!1){let o=e.length,i=e.missingOpeningBracketIds;if(e.listHeight!==t.listHeight)throw new Error("Invalid list heights");if(o=xe(o,t.length),i=i.merge(t.missingOpeningBracketIds),n){if(e.listHeight!==n.listHeight)throw new Error("Invalid list heights");o=xe(o,n.length),i=i.merge(n.missingOpeningBracketIds)}return r?new Ue(o,e.listHeight+1,e,t,n,i):new Ve(o,e.listHeight+1,e,t,n,i)}static getEmpty(){return new Ke(0,0,[],Fe.getEmpty())}get kind(){return 4}get missingOpeningBracketIds(){return this._missingOpeningBracketIds}constructor(e,t,n){super(e),this.listHeight=t,this._missingOpeningBracketIds=n,this.cachedMinIndentation=-1}throwIfImmutable(){}makeLastElementMutable(){this.throwIfImmutable();const e=this.childrenLength;if(0===e)return;const t=this.getChild(e-1),n=4===t.kind?t.toMutable():t;return t!==n&&this.setChild(e-1,n),n}makeFirstElementMutable(){this.throwIfImmutable();if(0===this.childrenLength)return;const e=this.getChild(0),t=4===e.kind?e.toMutable():e;return e!==t&&this.setChild(0,t),t}canBeReused(e){if(e.intersects(this.missingOpeningBracketIds))return!1;if(0===this.childrenLength)return!1;let t=this;for(;4===t.kind;){const e=t.childrenLength;if(0===e)throw new l.D7;t=t.getChild(e-1)}return t.canBeReused(e)}handleChildrenChanged(){this.throwIfImmutable();const e=this.childrenLength;let t=this.getChild(0).length,n=this.getChild(0).missingOpeningBracketIds;for(let r=1;r<e;r++){const e=this.getChild(r);t=xe(t,e.length),n=n.merge(e.missingOpeningBracketIds)}this._length=t,this._missingOpeningBracketIds=n,this.cachedMinIndentation=-1}computeMinIndentation(e,t){if(-1!==this.cachedMinIndentation)return this.cachedMinIndentation;let n=Number.MAX_SAFE_INTEGER,r=e;for(let o=0;o<this.childrenLength;o++){const e=this.getChild(o);e&&(n=Math.min(n,e.computeMinIndentation(r,t)),r=xe(r,e.length))}return this.cachedMinIndentation=n,n}}class Ve extends je{get childrenLength(){return null!==this._item3?3:2}getChild(e){switch(e){case 0:return this._item1;case 1:return this._item2;case 2:return this._item3}throw new Error("Invalid child index")}setChild(e,t){switch(e){case 0:return void(this._item1=t);case 1:return void(this._item2=t);case 2:return void(this._item3=t)}throw new Error("Invalid child index")}get children(){return this._item3?[this._item1,this._item2,this._item3]:[this._item1,this._item2]}get item1(){return this._item1}get item2(){return this._item2}get item3(){return this._item3}constructor(e,t,n,r,o,i){super(e,t,i),this._item1=n,this._item2=r,this._item3=o}deepClone(){return new Ve(this.length,this.listHeight,this._item1.deepClone(),this._item2.deepClone(),this._item3?this._item3.deepClone():null,this.missingOpeningBracketIds)}appendChildOfSameHeight(e){if(this._item3)throw new Error("Cannot append to a full (2,3) tree node");this.throwIfImmutable(),this._item3=e,this.handleChildrenChanged()}unappendChild(){if(!this._item3)throw new Error("Cannot remove from a non-full (2,3) tree node");this.throwIfImmutable();const e=this._item3;return this._item3=null,this.handleChildrenChanged(),e}prependChildOfSameHeight(e){if(this._item3)throw new Error("Cannot prepend to a full (2,3) tree node");this.throwIfImmutable(),this._item3=this._item2,this._item2=this._item1,this._item1=e,this.handleChildrenChanged()}unprependChild(){if(!this._item3)throw new Error("Cannot remove from a non-full (2,3) tree node");this.throwIfImmutable();const e=this._item1;return this._item1=this._item2,this._item2=this._item3,this._item3=null,this.handleChildrenChanged(),e}toMutable(){return this}}class Ue extends Ve{toMutable(){return new Ve(this.length,this.listHeight,this.item1,this.item2,this.item3,this.missingOpeningBracketIds)}throwIfImmutable(){throw new Error("this instance is immutable")}}class He extends je{get childrenLength(){return this._children.length}getChild(e){return this._children[e]}setChild(e,t){this._children[e]=t}get children(){return this._children}constructor(e,t,n,r){super(e,t,r),this._children=n}deepClone(){const e=new Array(this._children.length);for(let t=0;t<this._children.length;t++)e[t]=this._children[t].deepClone();return new He(this.length,this.listHeight,e,this.missingOpeningBracketIds)}appendChildOfSameHeight(e){this.throwIfImmutable(),this._children.push(e),this.handleChildrenChanged()}unappendChild(){this.throwIfImmutable();const e=this._children.pop();return this.handleChildrenChanged(),e}prependChildOfSameHeight(e){this.throwIfImmutable(),this._children.unshift(e),this.handleChildrenChanged()}unprependChild(){this.throwIfImmutable();const e=this._children.shift();return this.handleChildrenChanged(),e}toMutable(){return this}}class Ke extends He{toMutable(){return new He(this.length,this.listHeight,[...this.children],this.missingOpeningBracketIds)}throwIfImmutable(){throw new Error("this instance is immutable")}}const qe=[];class Je extends Be{get listHeight(){return 0}get childrenLength(){return 0}getChild(e){return null}get children(){return qe}deepClone(){return this}}class Xe extends Je{get kind(){return 0}get missingOpeningBracketIds(){return Fe.getEmpty()}canBeReused(e){return!0}computeMinIndentation(e,t){const n=Te(e),r=(0===n.columnCount?n.lineCount:n.lineCount+1)+1,o=(i=xe(e,this.length),Math.floor(i/Ee)+1);var i;let a=Number.MAX_SAFE_INTEGER;for(let s=r;s<=o;s++){const e=t.getLineFirstNonWhitespaceColumn(s),n=t.getLineContent(s);if(0===e)continue;const r=p.visibleColumnFromColumn(n,e,t.getOptions().tabSize);a=Math.min(a,r)}return a}}class $e extends Je{static create(e,t,n){return new $e(e,t,n)}get kind(){return 1}get missingOpeningBracketIds(){return Fe.getEmpty()}constructor(e,t,n){super(e),this.bracketInfo=t,this.bracketIds=n}get text(){return this.bracketInfo.bracketText}get languageId(){return this.bracketInfo.languageId}canBeReused(e){return!1}computeMinIndentation(e,t){return Number.MAX_SAFE_INTEGER}}class Ye extends Je{get kind(){return 3}constructor(e,t){super(t),this.missingOpeningBracketIds=e}canBeReused(e){return!e.intersects(this.missingOpeningBracketIds)}computeMinIndentation(e,t){return Number.MAX_SAFE_INTEGER}}var Qe=n(5982);class Ze{constructor(e,t,n,r,o){this.length=e,this.kind=t,this.bracketId=n,this.bracketIds=r,this.astNode=o}}class et{constructor(e,t){this.textModel=e,this.bracketTokens=t,this.reader=new tt(this.textModel,this.bracketTokens),this._offset=0,this.didPeek=!1,this.peeked=null,this.textBufferLineCount=e.getLineCount(),this.textBufferLastLineLength=e.getLineLength(this.textBufferLineCount)}get offset(){return this._offset}get length(){return Se(this.textBufferLineCount-1,this.textBufferLastLineLength)}skip(e){this.didPeek=!1,this._offset=xe(this._offset,e);const t=Te(this._offset);this.reader.setPosition(t.lineCount,t.columnCount)}read(){let e;return this.peeked?(this.didPeek=!1,e=this.peeked):e=this.reader.read(),e&&(this._offset=xe(this._offset,e.length)),e}peek(){return this.didPeek||(this.peeked=this.reader.read(),this.didPeek=!0),this.peeked}}class tt{constructor(e,t){this.textModel=e,this.bracketTokens=t,this.lineIdx=0,this.line=null,this.lineCharOffset=0,this.lineTokens=null,this.lineTokenOffset=0,this.peekedToken=null,this.textBufferLineCount=e.getLineCount(),this.textBufferLastLineLength=e.getLineLength(this.textBufferLineCount)}setPosition(e,t){e===this.lineIdx?(this.lineCharOffset=t,null!==this.line&&(this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset))):(this.lineIdx=e,this.lineCharOffset=t,this.line=null),this.peekedToken=null}read(){if(this.peekedToken){const e=this.peekedToken;return this.peekedToken=null,this.lineCharOffset+=e.length,e}if(this.lineIdx>this.textBufferLineCount-1||this.lineIdx===this.textBufferLineCount-1&&this.lineCharOffset>=this.textBufferLastLineLength)return null;null===this.line&&(this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.line=this.lineTokens.getLineContent(),this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset));const e=this.lineIdx,t=this.lineCharOffset;let n=0;for(;;){const r=this.lineTokens,o=r.getCount();let i=null;if(this.lineTokenOffset<o){const a=r.getMetadata(this.lineTokenOffset);for(;this.lineTokenOffset+1<o&&a===r.getMetadata(this.lineTokenOffset+1);)this.lineTokenOffset++;const s=0===Qe.x.getTokenType(a),l=Qe.x.containsBalancedBrackets(a),c=r.getEndOffset(this.lineTokenOffset);if(l&&s&&this.lineCharOffset<c){const e=r.getLanguageId(this.lineTokenOffset),t=this.line.substring(this.lineCharOffset,c),n=this.bracketTokens.getSingleLanguageBracketTokens(e),o=n.regExpGlobal;if(o){o.lastIndex=0;const e=o.exec(t);e&&(i=n.getToken(e[0]),i&&(this.lineCharOffset+=e.index))}}if(n+=c-this.lineCharOffset,i){if(e!==this.lineIdx||t!==this.lineCharOffset){this.peekedToken=i;break}return this.lineCharOffset+=i.length,i}this.lineTokenOffset++,this.lineCharOffset=c}else{if(this.lineIdx===this.textBufferLineCount-1)break;if(this.lineIdx++,this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.lineTokenOffset=0,this.line=this.lineTokens.getLineContent(),this.lineCharOffset=0,n+=33,n>1e3)break}if(n>1500)break}const r=(o=e,i=t,a=this.lineIdx,s=this.lineCharOffset,o!==a?Se(a-o,s):Se(0,s-i));var o,i,a,s;return new Ze(r,0,-1,Fe.getEmpty(),new Xe(r))}}class nt{constructor(e,t){this.text=e,this._offset=0,this.idx=0;const n=t.getRegExpStr(),r=n?new RegExp(n+"|\n","gi"):null,o=[];let i,a=0,s=0,l=0,c=0;const d=[];for(let f=0;f<60;f++)d.push(new Ze(Se(0,f),0,-1,Fe.getEmpty(),new Xe(Se(0,f))));const u=[];for(let f=0;f<60;f++)u.push(new Ze(Se(1,f),0,-1,Fe.getEmpty(),new Xe(Se(1,f))));if(r)for(r.lastIndex=0;null!==(i=r.exec(e));){const e=i.index,n=i[0];if("\n"===n)a++,s=e+1;else{if(l!==e){let t;if(c===a){const n=e-l;if(n<d.length)t=d[n];else{const e=Se(0,n);t=new Ze(e,0,-1,Fe.getEmpty(),new Xe(e))}}else{const n=a-c,r=e-s;if(1===n&&r<u.length)t=u[r];else{const e=Se(n,r);t=new Ze(e,0,-1,Fe.getEmpty(),new Xe(e))}}o.push(t)}o.push(t.getToken(n)),l=e+n.length,c=a}}const p=e.length;if(l!==p){const e=c===a?Se(0,p-l):Se(a-c,p-s);o.push(new Ze(e,0,-1,Fe.getEmpty(),new Xe(e)))}this.length=Se(a,p-s),this.tokens=o}get offset(){return this._offset}read(){return this.tokens[this.idx++]||null}peek(){return this.tokens[this.idx]||null}skip(e){throw new l.EM}}class rt{static createFromLanguage(e,t){function n(e){return t.getKey(`${e.languageId}:::${e.bracketText}`)}const r=new Map;for(const o of e.bracketsNew.openingBrackets){const e=Se(0,o.bracketText.length),t=n(o),i=Fe.getEmpty().add(t,We);r.set(o.bracketText,new Ze(e,1,t,i,$e.create(e,o,i)))}for(const o of e.bracketsNew.closingBrackets){const e=Se(0,o.bracketText.length);let t=Fe.getEmpty();const i=o.getOpeningBrackets();for(const r of i)t=t.add(n(r),We);r.set(o.bracketText,new Ze(e,2,n(i[0]),t,$e.create(e,o,t)))}return new rt(r)}constructor(e){this.map=e,this.hasRegExp=!1,this._regExpGlobal=null}getRegExpStr(){if(this.isEmpty)return null;{const e=[...this.map.keys()];return e.sort(),e.reverse(),e.map((e=>function(e){let t=(0,c.bm)(e);/^[\w ]+/.test(e)&&(t=`\\b${t}`);/[\w ]+$/.test(e)&&(t=`${t}\\b`);return t}(e))).join("|")}}get regExpGlobal(){if(!this.hasRegExp){const e=this.getRegExpStr();this._regExpGlobal=e?new RegExp(e,"gi"):null,this.hasRegExp=!0}return this._regExpGlobal}getToken(e){return this.map.get(e.toLowerCase())}findClosingTokenText(e){for(const[t,n]of this.map)if(2===n.kind&&n.bracketIds.intersects(e))return t}get isEmpty(){return 0===this.map.size}}class ot{constructor(e,t){this.denseKeyProvider=e,this.getLanguageConfiguration=t,this.languageIdToBracketTokens=new Map}didLanguageChange(e){return this.languageIdToBracketTokens.has(e)}getSingleLanguageBracketTokens(e){let t=this.languageIdToBracketTokens.get(e);return t||(t=rt.createFromLanguage(this.getLanguageConfiguration(e),this.denseKeyProvider),this.languageIdToBracketTokens.set(e,t)),t}}function it(e,t=!1){if(0===e.length)return null;if(1===e.length)return e[0];let n=e.length;for(;n>3;){const r=n>>1;for(let o=0;o<r;o++){const r=o<<1;e[o]=je.create23(e[r],e[r+1],r+3===n?e[r+2]:null,t)}n=r}return je.create23(e[0],e[1],n>=3?e[2]:null,t)}function at(e,t){return Math.abs(e.listHeight-t.listHeight)}function st(e,t){return e.listHeight===t.listHeight?je.create23(e,t,null,!1):e.listHeight>t.listHeight?function(e,t){let n=e=e.toMutable();const r=[];let o;for(;;){if(t.listHeight===n.listHeight){o=t;break}if(4!==n.kind)throw new Error("unexpected");r.push(n),n=n.makeLastElementMutable()}for(let i=r.length-1;i>=0;i--){const e=r[i];o?e.childrenLength>=3?o=je.create23(e.unappendChild(),o,null,!1):(e.appendChildOfSameHeight(o),o=void 0):e.handleChildrenChanged()}return o?je.create23(e,o,null,!1):e}(e,t):function(e,t){let n=e=e.toMutable();const r=[];for(;t.listHeight!==n.listHeight;){if(4!==n.kind)throw new Error("unexpected");r.push(n),n=n.makeFirstElementMutable()}let o=t;for(let i=r.length-1;i>=0;i--){const e=r[i];o?e.childrenLength>=3?o=je.create23(o,e.unprependChild(),null,!1):(e.prependChildOfSameHeight(o),o=void 0):e.handleChildrenChanged()}return o?je.create23(o,e,null,!1):e}(t,e)}class lt{constructor(e){this.lastOffset=0,this.nextNodes=[e],this.offsets=[0],this.idxs=[]}readLongestNodeAt(e,t){if(Ce(e,this.lastOffset))throw new Error("Invalid offset");for(this.lastOffset=e;;){const n=dt(this.nextNodes);if(!n)return;const r=dt(this.offsets);if(Ce(e,r))return;if(Ce(r,e))if(xe(r,n.length)<=e)this.nextNodeAfterCurrent();else{const e=ct(n);-1!==e?(this.nextNodes.push(n.getChild(e)),this.offsets.push(r),this.idxs.push(e)):this.nextNodeAfterCurrent()}else{if(t(n))return this.nextNodeAfterCurrent(),n;{const e=ct(n);if(-1===e)return void this.nextNodeAfterCurrent();this.nextNodes.push(n.getChild(e)),this.offsets.push(r),this.idxs.push(e)}}}}nextNodeAfterCurrent(){for(;;){const e=dt(this.offsets),t=dt(this.nextNodes);if(this.nextNodes.pop(),this.offsets.pop(),0===this.idxs.length)break;const n=dt(this.nextNodes),r=ct(n,this.idxs[this.idxs.length-1]);if(-1!==r){this.nextNodes.push(n.getChild(r)),this.offsets.push(xe(e,t.length)),this.idxs[this.idxs.length-1]=r;break}this.idxs.pop()}}}function ct(e,t=-1){for(;;){if(++t>=e.childrenLength)return-1;if(e.getChild(t))return t}}function dt(e){return e.length>0?e[e.length-1]:void 0}function ut(e,t,n,r){return new pt(e,t,n,r).parseDocument()}class pt{constructor(e,t,n,r){if(this.tokenizer=e,this.createImmutableLists=r,this._itemsConstructed=0,this._itemsFromCache=0,n&&r)throw new Error("Not supported");this.oldNodeReader=n?new lt(n):void 0,this.positionMapper=new Pe(t)}parseDocument(){this._itemsConstructed=0,this._itemsFromCache=0;let e=this.parseList(Fe.getEmpty(),0);return e||(e=je.getEmpty()),e}parseList(e,t){const n=[];for(;;){let r=this.tryReadChildFromCache(e);if(!r){const n=this.tokenizer.peek();if(!n||2===n.kind&&n.bracketIds.intersects(e))break;r=this.parseChild(e,t+1)}4===r.kind&&0===r.childrenLength||n.push(r)}const r=this.oldNodeReader?function(e){if(0===e.length)return null;if(1===e.length)return e[0];let t=0;function n(){if(t>=e.length)return null;const n=t,r=e[n].listHeight;for(t++;t<e.length&&e[t].listHeight===r;)t++;return t-n>=2?it(0===n&&t===e.length?e:e.slice(n,t),!1):e[n]}let r=n(),o=n();if(!o)return r;for(let i=n();i;i=n())at(r,o)<=at(o,i)?(r=st(r,o),o=i):o=st(o,i);return st(r,o)}(n):it(n,this.createImmutableLists);return r}tryReadChildFromCache(e){if(this.oldNodeReader){const t=this.positionMapper.getDistanceToNextChange(this.tokenizer.offset);if(null===t||!be(t)){const n=this.oldNodeReader.readLongestNodeAt(this.positionMapper.getOffsetBeforeChange(this.tokenizer.offset),(n=>{if(null!==t&&!Ce(n.length,t))return!1;return n.canBeReused(e)}));if(n)return this._itemsFromCache++,this.tokenizer.skip(n.length),n}}}parseChild(e,t){this._itemsConstructed++;const n=this.tokenizer.read();switch(n.kind){case 2:return new Ye(n.bracketIds,n.length);case 0:return n.astNode;case 1:{if(t>300)return new Xe(n.length);const r=e.merge(n.bracketIds),o=this.parseList(r,t+1),i=this.tokenizer.peek();return i&&2===i.kind&&(i.bracketId===n.bracketId||i.bracketIds.intersects(n.bracketIds))?(this.tokenizer.read(),Ge.create(n.astNode,o,i.astNode)):Ge.create(n.astNode,o,null)}default:throw new Error("unexpected")}}}function ft(e,t){if(0===e.length)return t;if(0===t.length)return e;const n=new a.j3(_t(e)),r=_t(t);r.push({modified:!1,lengthBefore:void 0,lengthAfter:void 0});let o=n.dequeue();function i(e){if(void 0===e){const e=n.takeWhile((e=>!0))||[];return o&&e.unshift(o),e}const t=[];for(;o&&!be(e);){const[r,i]=o.splitAt(e);t.push(r),e=Re(r.lengthAfter,e),o=i??n.dequeue()}return be(e)||t.push(new mt(!1,e,e)),t}const s=[];function l(e,t,n){if(s.length>0&&Ie(s[s.length-1].endOffset,e)){const e=s[s.length-1];s[s.length-1]=new ke(e.startOffset,t,xe(e.newLength,n))}else s.push({startOffset:e,endOffset:t,newLength:n})}let c=0;for(const a of r){const e=i(a.lengthBefore);if(a.modified){const t=xe(c,Ae(e,(e=>e.lengthBefore)));l(c,t,a.lengthAfter),c=t}else for(const t of e){const e=c;c=xe(c,t.lengthBefore),t.modified&&l(e,c,t.lengthAfter)}}return s}class mt{constructor(e,t,n){this.modified=e,this.lengthBefore=t,this.lengthAfter=n}splitAt(e){const t=Re(e,this.lengthAfter);return Ie(t,0)?[this,void 0]:this.modified?[new mt(this.modified,this.lengthBefore,e),new mt(this.modified,0,t)]:[new mt(this.modified,e,e),new mt(this.modified,t,t)]}toString(){return`${this.modified?"M":"U"}:${Te(this.lengthBefore)} -> ${Te(this.lengthAfter)}`}}function _t(e){const t=[];let n=0;for(const r of e){const e=Re(n,r.startOffset);be(e)||t.push(new mt(!1,e,e));const o=Re(r.startOffset,r.endOffset);t.push(new mt(!0,o,r.newLength)),n=r.endOffset}return t}class ht extends o.jG{didLanguageChange(e){return this.brackets.didLanguageChange(e)}constructor(e,t){if(super(),this.textModel=e,this.getLanguageConfiguration=t,this.didChangeEmitter=new r.vl,this.denseKeyProvider=new ze,this.brackets=new ot(this.denseKeyProvider,this.getLanguageConfiguration),this.onDidChange=this.didChangeEmitter.event,this.queuedTextEditsForInitialAstWithoutTokens=[],this.queuedTextEdits=[],e.tokenization.hasTokens)2===e.tokenization.backgroundTokenizationState?(this.initialAstWithoutTokens=void 0,this.astWithTokens=this.parseDocumentFromTextBuffer([],void 0,!1)):(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer([],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens);else{const e=this.brackets.getSingleLanguageBracketTokens(this.textModel.getLanguageId()),t=new nt(this.textModel.getValue(),e);this.initialAstWithoutTokens=ut(t,[],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens}}handleDidChangeBackgroundTokenizationState(){if(2===this.textModel.tokenization.backgroundTokenizationState){const e=void 0===this.initialAstWithoutTokens;this.initialAstWithoutTokens=void 0,e||this.didChangeEmitter.fire()}}handleDidChangeTokens({ranges:e}){const t=e.map((e=>new ke(Se(e.fromLineNumber-1,0),Se(e.toLineNumber,0),Se(e.toLineNumber-e.fromLineNumber+1,0))));this.handleEdits(t,!0),this.initialAstWithoutTokens||this.didChangeEmitter.fire()}handleContentChanged(e){const t=ke.fromModelContentChanges(e.changes);this.handleEdits(t,!1)}handleEdits(e,t){const n=ft(this.queuedTextEdits,e);this.queuedTextEdits=n,this.initialAstWithoutTokens&&!t&&(this.queuedTextEditsForInitialAstWithoutTokens=ft(this.queuedTextEditsForInitialAstWithoutTokens,e))}flushQueue(){this.queuedTextEdits.length>0&&(this.astWithTokens=this.parseDocumentFromTextBuffer(this.queuedTextEdits,this.astWithTokens,!1),this.queuedTextEdits=[]),this.queuedTextEditsForInitialAstWithoutTokens.length>0&&(this.initialAstWithoutTokens&&(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer(this.queuedTextEditsForInitialAstWithoutTokens,this.initialAstWithoutTokens,!1)),this.queuedTextEditsForInitialAstWithoutTokens=[])}parseDocumentFromTextBuffer(e,t,n){const r=t;return ut(new et(this.textModel,this.brackets),e,r,n)}getBracketsInRange(e,t){this.flushQueue();const n=Se(e.startLineNumber-1,e.startColumn-1),r=Se(e.endLineNumber-1,e.endColumn-1);return new a.c1((e=>{const o=this.initialAstWithoutTokens||this.astWithTokens;vt(o,0,o.length,n,r,e,0,0,new Map,t)}))}getBracketPairsInRange(e,t){this.flushQueue();const n=Me(e.getStartPosition()),r=Me(e.getEndPosition());return new a.c1((e=>{const o=this.initialAstWithoutTokens||this.astWithTokens,i=new bt(e,t,this.textModel);Et(o,0,o.length,n,r,i,0,new Map)}))}getFirstBracketAfter(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return yt(t,0,t.length,Me(e))}getFirstBracketBefore(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return gt(t,0,t.length,Me(e))}}function gt(e,t,n,r){if(4===e.kind||2===e.kind){const o=[];for(const r of e.children)n=xe(t,r.length),o.push({nodeOffsetStart:t,nodeOffsetEnd:n}),t=n;for(let t=o.length-1;t>=0;t--){const{nodeOffsetStart:n,nodeOffsetEnd:i}=o[t];if(Ce(n,r)){const o=gt(e.children[t],n,i,r);if(o)return o}}return null}if(3===e.kind)return null;if(1===e.kind){const r=Le(t,n);return{bracketInfo:e.bracketInfo,range:r}}return null}function yt(e,t,n,r){if(4===e.kind||2===e.kind){for(const o of e.children){if(Ce(r,n=xe(t,o.length))){const e=yt(o,t,n,r);if(e)return e}t=n}return null}if(3===e.kind)return null;if(1===e.kind){const r=Le(t,n);return{bracketInfo:e.bracketInfo,range:r}}return null}function vt(e,t,n,r,o,i,a,s,l,c,d=!1){if(a>200)return!0;e:for(;;)switch(e.kind){case 4:{const s=e.childrenLength;for(let d=0;d<s;d++){const s=e.getChild(d);if(s){if(n=xe(t,s.length),De(t,o)&&Ne(n,r)){if(Ne(n,o)){e=s;continue e}if(!vt(s,t,n,r,o,i,a,0,l,c))return!1}t=n}}return!0}case 2:{const d=!c||!e.closingBracket||e.closingBracket.bracketInfo.closesColorized(e.openingBracket.bracketInfo);let u=0;if(l){let t=l.get(e.openingBracket.text);void 0===t&&(t=0),u=t,d&&(t++,l.set(e.openingBracket.text,t))}const p=e.childrenLength;for(let f=0;f<p;f++){const p=e.getChild(f);if(p){if(n=xe(t,p.length),De(t,o)&&Ne(n,r)){if(Ne(n,o)&&1!==p.kind){e=p,d?(a++,s=u+1):s=u;continue e}if(d||1!==p.kind||!e.closingBracket){if(!vt(p,t,n,r,o,i,d?a+1:a,d?u+1:u,l,c,!e.closingBracket))return!1}}t=n}}return l?.set(e.openingBracket.text,u),!0}case 3:{const e=Le(t,n);return i(new he(e,a-1,0,!0))}case 1:{const e=Le(t,n);return i(new he(e,a-1,s-1,d))}case 0:return!0}}class bt{constructor(e,t,n){this.push=e,this.includeMinIndentation=t,this.textModel=n}}function Et(e,t,n,r,o,i,a,s){if(a>200)return!0;let l=!0;if(2===e.kind){let c=0;if(s){let t=s.get(e.openingBracket.text);void 0===t&&(t=0),c=t,t++,s.set(e.openingBracket.text,t)}const d=xe(t,e.openingBracket.length);let u=-1;if(i.includeMinIndentation&&(u=e.computeMinIndentation(t,i.textModel)),l=i.push(new ye(Le(t,n),Le(t,d),e.closingBracket?Le(xe(d,e.child?.length||0),n):void 0,a,c,e,u)),t=d,l&&e.child){const c=e.child;if(n=xe(t,c.length),De(t,o)&&Ne(n,r)&&(l=Et(c,t,n,r,o,i,a+1,s),!l))return!1}s?.set(e.openingBracket.text,c)}else{let n=t;for(const t of e.children){const e=n;if(n=xe(n,t.length),De(e,o)&&De(r,n)&&(l=Et(t,e,n,r,o,i,a,s),!l))return!1}}return l}class St extends o.jG{get canBuildAST(){return this.textModel.getValueLength()<=5e6}constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t,this.bracketPairsTree=this._register(new o.HE),this.onDidChangeEmitter=new r.vl,this.onDidChange=this.onDidChangeEmitter.event,this.bracketsRequested=!1}handleLanguageConfigurationServiceChange(e){e.languageId&&!this.bracketPairsTree.value?.object.didLanguageChange(e.languageId)||(this.bracketPairsTree.clear(),this.updateBracketPairsTree())}handleDidChangeOptions(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeLanguage(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeContent(e){this.bracketPairsTree.value?.object.handleContentChanged(e)}handleDidChangeBackgroundTokenizationState(){this.bracketPairsTree.value?.object.handleDidChangeBackgroundTokenizationState()}handleDidChangeTokens(e){this.bracketPairsTree.value?.object.handleDidChangeTokens(e)}updateBracketPairsTree(){if(this.bracketsRequested&&this.canBuildAST){if(!this.bracketPairsTree.value){const n=new o.Cm;this.bracketPairsTree.value=(e=n.add(new ht(this.textModel,(e=>this.languageConfigurationService.getLanguageConfiguration(e)))),t=n,{object:e,dispose:()=>t?.dispose()}),n.add(this.bracketPairsTree.value.object.onDidChange((e=>this.onDidChangeEmitter.fire(e)))),this.onDidChangeEmitter.fire()}}else this.bracketPairsTree.value&&(this.bracketPairsTree.clear(),this.onDidChangeEmitter.fire());var e,t}getBracketPairsInRange(e){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketPairsInRange(e,!1)||a.c1.empty}getBracketPairsInRangeWithMinIndentation(e){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketPairsInRange(e,!0)||a.c1.empty}getBracketsInRange(e,t=!1){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketsInRange(e,t)||a.c1.empty}findMatchingBracketUp(e,t,n){const r=this.textModel.validatePosition(t),o=this.textModel.getLanguageIdAtPosition(r.lineNumber,r.column);if(this.canBuildAST){const n=this.languageConfigurationService.getLanguageConfiguration(o).bracketsNew.getClosingBracketInfo(e);if(!n)return null;const r=this.getBracketPairsInRange(_.Q.fromPositions(t,t)).findLast((e=>n.closes(e.openingBracketInfo)));return r?r.openingBracketRange:null}{const t=e.toLowerCase(),i=this.languageConfigurationService.getLanguageConfiguration(o).brackets;if(!i)return null;const a=i.textIsBracket[t];return a?At(this._findMatchingBracketUp(a,r,Tt(n))):null}}matchBracket(e,t){if(this.canBuildAST){const t=this.getBracketPairsInRange(_.Q.fromPositions(e,e)).filter((t=>void 0!==t.closingBracketRange&&(t.openingBracketRange.containsPosition(e)||t.closingBracketRange.containsPosition(e)))).findLastMaxBy((0,a.VE)((t=>t.openingBracketRange.containsPosition(e)?t.openingBracketRange:t.closingBracketRange),_.Q.compareRangesUsingStarts));return t?[t.openingBracketRange,t.closingBracketRange]:null}{const n=Tt(t);return this._matchBracket(this.textModel.validatePosition(e),n)}}_establishBracketSearchOffsets(e,t,n,r){const o=t.getCount(),i=t.getLanguageId(r);let a=Math.max(0,e.column-1-n.maxBracketLength);for(let l=r-1;l>=0;l--){const e=t.getEndOffset(l);if(e<=a)break;if(A(t.getStandardTokenType(l))||t.getLanguageId(l)!==i){a=e;break}}let s=Math.min(t.getLineContent().length,e.column-1+n.maxBracketLength);for(let l=r+1;l<o;l++){const e=t.getStartOffset(l);if(e>=s)break;if(A(t.getStandardTokenType(l))||t.getLanguageId(l)!==i){s=e;break}}return{searchStartOffset:a,searchEndOffset:s}}_matchBracket(e,t){const n=e.lineNumber,r=this.textModel.tokenization.getLineTokens(n),o=this.textModel.getLineContent(n),i=r.findTokenIndexAtOffset(e.column-1);if(i<0)return null;const a=this.languageConfigurationService.getLanguageConfiguration(r.getLanguageId(i)).brackets;if(a&&!A(r.getStandardTokenType(i))){let{searchStartOffset:s,searchEndOffset:l}=this._establishBracketSearchOffsets(e,r,a,i),c=null;for(;;){const r=G.findNextBracketInRange(a.forwardRegex,n,o,s,l);if(!r)break;if(r.startColumn<=e.column&&e.column<=r.endColumn){const e=o.substring(r.startColumn-1,r.endColumn-1).toLowerCase(),n=this._matchFoundBracket(r,a.textIsBracket[e],a.textIsOpenBracket[e],t);if(n){if(n instanceof xt)return null;c=n}}s=r.endColumn-1}if(c)return c}if(i>0&&r.getStartOffset(i)===e.column-1){const a=i-1,s=this.languageConfigurationService.getLanguageConfiguration(r.getLanguageId(a)).brackets;if(s&&!A(r.getStandardTokenType(a))){const{searchStartOffset:i,searchEndOffset:l}=this._establishBracketSearchOffsets(e,r,s,a),c=G.findPrevBracketInRange(s.reversedRegex,n,o,i,l);if(c&&c.startColumn<=e.column&&e.column<=c.endColumn){const e=o.substring(c.startColumn-1,c.endColumn-1).toLowerCase(),n=this._matchFoundBracket(c,s.textIsBracket[e],s.textIsOpenBracket[e],t);if(n)return n instanceof xt?null:n}}}return null}_matchFoundBracket(e,t,n,r){if(!t)return null;const o=n?this._findMatchingBracketDown(t,e.getEndPosition(),r):this._findMatchingBracketUp(t,e.getStartPosition(),r);return o?o instanceof xt?o:[e,o]:null}_findMatchingBracketUp(e,t,n){const r=e.languageId,o=e.reversedRegex;let i=-1,a=0;const s=(t,r,s,l)=>{for(;;){if(n&&++a%100===0&&!n())return xt.INSTANCE;const c=G.findPrevBracketInRange(o,t,r,s,l);if(!c)break;const d=r.substring(c.startColumn-1,c.endColumn-1).toLowerCase();if(e.isOpen(d)?i++:e.isClose(d)&&i--,0===i)return c;l=c.startColumn-1}return null};for(let l=t.lineNumber;l>=1;l--){const e=this.textModel.tokenization.getLineTokens(l),n=e.getCount(),o=this.textModel.getLineContent(l);let i=n-1,a=o.length,c=o.length;l===t.lineNumber&&(i=e.findTokenIndexAtOffset(t.column-1),a=t.column-1,c=t.column-1);let d=!0;for(;i>=0;i--){const t=e.getLanguageId(i)===r&&!A(e.getStandardTokenType(i));if(t)d?a=e.getStartOffset(i):(a=e.getStartOffset(i),c=e.getEndOffset(i));else if(d&&a!==c){const e=s(l,o,a,c);if(e)return e}d=t}if(d&&a!==c){const e=s(l,o,a,c);if(e)return e}}return null}_findMatchingBracketDown(e,t,n){const r=e.languageId,o=e.forwardRegex;let i=1,a=0;const s=(t,r,s,l)=>{for(;;){if(n&&++a%100===0&&!n())return xt.INSTANCE;const c=G.findNextBracketInRange(o,t,r,s,l);if(!c)break;const d=r.substring(c.startColumn-1,c.endColumn-1).toLowerCase();if(e.isOpen(d)?i++:e.isClose(d)&&i--,0===i)return c;s=c.endColumn-1}return null},l=this.textModel.getLineCount();for(let c=t.lineNumber;c<=l;c++){const e=this.textModel.tokenization.getLineTokens(c),n=e.getCount(),o=this.textModel.getLineContent(c);let i=0,a=0,l=0;c===t.lineNumber&&(i=e.findTokenIndexAtOffset(t.column-1),a=t.column-1,l=t.column-1);let d=!0;for(;i<n;i++){const t=e.getLanguageId(i)===r&&!A(e.getStandardTokenType(i));if(t)d||(a=e.getStartOffset(i)),l=e.getEndOffset(i);else if(d&&a!==l){const e=s(c,o,a,l);if(e)return e}d=t}if(d&&a!==l){const e=s(c,o,a,l);if(e)return e}}return null}findPrevBracket(e){const t=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getFirstBracketBefore(t)||null;let n=null,r=null,o=null;for(let i=t.lineNumber;i>=1;i--){const e=this.textModel.tokenization.getLineTokens(i),a=e.getCount(),s=this.textModel.getLineContent(i);let l=a-1,c=s.length,d=s.length;if(i===t.lineNumber){l=e.findTokenIndexAtOffset(t.column-1),c=t.column-1,d=t.column-1;const i=e.getLanguageId(l);n!==i&&(n=i,r=this.languageConfigurationService.getLanguageConfiguration(n).brackets,o=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew)}let u=!0;for(;l>=0;l--){const t=e.getLanguageId(l);if(n!==t){if(r&&o&&u&&c!==d){const e=G.findPrevBracketInRange(r.reversedRegex,i,s,c,d);if(e)return this._toFoundBracket(o,e);u=!1}n=t,r=this.languageConfigurationService.getLanguageConfiguration(n).brackets,o=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew}const a=!!r&&!A(e.getStandardTokenType(l));if(a)u?c=e.getStartOffset(l):(c=e.getStartOffset(l),d=e.getEndOffset(l));else if(o&&r&&u&&c!==d){const e=G.findPrevBracketInRange(r.reversedRegex,i,s,c,d);if(e)return this._toFoundBracket(o,e)}u=a}if(o&&r&&u&&c!==d){const e=G.findPrevBracketInRange(r.reversedRegex,i,s,c,d);if(e)return this._toFoundBracket(o,e)}}return null}findNextBracket(e){const t=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getFirstBracketAfter(t)||null;const n=this.textModel.getLineCount();let r=null,o=null,i=null;for(let a=t.lineNumber;a<=n;a++){const e=this.textModel.tokenization.getLineTokens(a),n=e.getCount(),s=this.textModel.getLineContent(a);let l=0,c=0,d=0;if(a===t.lineNumber){l=e.findTokenIndexAtOffset(t.column-1),c=t.column-1,d=t.column-1;const n=e.getLanguageId(l);r!==n&&(r=n,o=this.languageConfigurationService.getLanguageConfiguration(r).brackets,i=this.languageConfigurationService.getLanguageConfiguration(r).bracketsNew)}let u=!0;for(;l<n;l++){const t=e.getLanguageId(l);if(r!==t){if(i&&o&&u&&c!==d){const e=G.findNextBracketInRange(o.forwardRegex,a,s,c,d);if(e)return this._toFoundBracket(i,e);u=!1}r=t,o=this.languageConfigurationService.getLanguageConfiguration(r).brackets,i=this.languageConfigurationService.getLanguageConfiguration(r).bracketsNew}const n=!!o&&!A(e.getStandardTokenType(l));if(n)u||(c=e.getStartOffset(l)),d=e.getEndOffset(l);else if(i&&o&&u&&c!==d){const e=G.findNextBracketInRange(o.forwardRegex,a,s,c,d);if(e)return this._toFoundBracket(i,e)}u=n}if(i&&o&&u&&c!==d){const e=G.findNextBracketInRange(o.forwardRegex,a,s,c,d);if(e)return this._toFoundBracket(i,e)}}return null}findEnclosingBrackets(e,t){const n=this.textModel.validatePosition(e);if(this.canBuildAST){const e=_.Q.fromPositions(n),t=this.getBracketPairsInRange(_.Q.fromPositions(n,n)).findLast((t=>void 0!==t.closingBracketRange&&t.range.strictContainsRange(e)));return t?[t.openingBracketRange,t.closingBracketRange]:null}const r=Tt(t),o=this.textModel.getLineCount(),i=new Map;let a=[];const s=(e,t)=>{if(!i.has(e)){const n=[];for(let e=0,r=t?t.brackets.length:0;e<r;e++)n[e]=0;i.set(e,n)}a=i.get(e)};let l=0;const c=(e,t,n,o,i)=>{for(;;){if(r&&++l%100===0&&!r())return xt.INSTANCE;const s=G.findNextBracketInRange(e.forwardRegex,t,n,o,i);if(!s)break;const c=n.substring(s.startColumn-1,s.endColumn-1).toLowerCase(),d=e.textIsBracket[c];if(d&&(d.isOpen(c)?a[d.index]++:d.isClose(c)&&a[d.index]--,-1===a[d.index]))return this._matchFoundBracket(s,d,!1,r);o=s.endColumn-1}return null};let d=null,u=null;for(let p=n.lineNumber;p<=o;p++){const e=this.textModel.tokenization.getLineTokens(p),t=e.getCount(),r=this.textModel.getLineContent(p);let o=0,i=0,a=0;if(p===n.lineNumber){o=e.findTokenIndexAtOffset(n.column-1),i=n.column-1,a=n.column-1;const t=e.getLanguageId(o);d!==t&&(d=t,u=this.languageConfigurationService.getLanguageConfiguration(d).brackets,s(d,u))}let l=!0;for(;o<t;o++){const t=e.getLanguageId(o);if(d!==t){if(u&&l&&i!==a){const e=c(u,p,r,i,a);if(e)return At(e);l=!1}d=t,u=this.languageConfigurationService.getLanguageConfiguration(d).brackets,s(d,u)}const n=!!u&&!A(e.getStandardTokenType(o));if(n)l||(i=e.getStartOffset(o)),a=e.getEndOffset(o);else if(u&&l&&i!==a){const e=c(u,p,r,i,a);if(e)return At(e)}l=n}if(u&&l&&i!==a){const e=c(u,p,r,i,a);if(e)return At(e)}}return null}_toFoundBracket(e,t){if(!t)return null;let n=this.textModel.getValueInRange(t);n=n.toLowerCase();const r=e.getBracketInfo(n);return r?{range:t,bracketInfo:r}:null}}function Tt(e){if("undefined"===typeof e)return()=>!0;{const t=Date.now();return()=>Date.now()-t<=e}}class xt{static{this.INSTANCE=new xt}constructor(){this._searchCanceledBrand=void 0}}function At(e){return e instanceof xt?null:e}var It=n(7119),Rt=n(5724);class Ct extends o.jG{constructor(e){super(),this.textModel=e,this.colorProvider=new Dt,this.onDidChangeEmitter=new r.vl,this.onDidChange=this.onDidChangeEmitter.event,this.colorizationOptions=e.getOptions().bracketPairColorizationOptions,this._register(e.bracketPairs.onDidChange((e=>{this.onDidChangeEmitter.fire()})))}handleDidChangeOptions(e){this.colorizationOptions=this.textModel.getOptions().bracketPairColorizationOptions}getDecorationsInRange(e,t,n,r){if(r)return[];if(void 0===t)return[];if(!this.colorizationOptions.enabled)return[];return this.textModel.bracketPairs.getBracketsInRange(e,!0).map((e=>({id:`bracket${e.range.toString()}-${e.nestingLevel}`,options:{description:"BracketPairColorization",inlineClassName:this.colorProvider.getInlineClassName(e,this.colorizationOptions.independentColorPoolPerBracketType)},ownerId:0,range:e.range}))).toArray()}getAllDecorations(e,t){return void 0===e?[]:this.colorizationOptions.enabled?this.getDecorationsInRange(new _.Q(1,1,this.textModel.getLineCount(),1),e,t):[]}}class Dt{constructor(){this.unexpectedClosingBracketClassName="unexpected-closing-bracket"}getInlineClassName(e,t){return e.isInvalid?this.unexpectedClosingBracketClassName:this.getInlineClassNameOfLevel(t?e.nestingLevelOfEqualBracketType:e.nestingLevel)}getInlineClassNameOfLevel(e){return"bracket-highlighting-"+e%30}}(0,Rt.zy)(((e,t)=>{const n=[It.sN,It.lQ,It.ss,It.l5,It.sH,It.zp],r=new Dt;t.addRule(`.monaco-editor .${r.unexpectedClosingBracketClassName} { color: ${e.getColor(It.s7)}; }`);const o=n.map((t=>e.getColor(t))).filter((e=>!!e)).filter((e=>!e.isTransparent()));for(let i=0;i<30;i++){const e=o[i%o.length];t.addRule(`.monaco-editor .${r.getInlineClassNameOfLevel(i)} { color: ${e}; }`)}}));var Nt=n(8209);function Mt(e){return e.replace(/\n/g,"\\n").replace(/\r/g,"\\r")}class Lt{get oldLength(){return this.oldText.length}get oldEnd(){return this.oldPosition+this.oldText.length}get newLength(){return this.newText.length}get newEnd(){return this.newPosition+this.newText.length}constructor(e,t,n,r){this.oldPosition=e,this.oldText=t,this.newPosition=n,this.newText=r}toString(){return 0===this.oldText.length?`(insert@${this.oldPosition} "${Mt(this.newText)}")`:0===this.newText.length?`(delete@${this.oldPosition} "${Mt(this.oldText)}")`:`(replace@${this.oldPosition} "${Mt(this.oldText)}" with "${Mt(this.newText)}")`}static _writeStringSize(e){return 4+2*e.length}static _writeString(e,t,n){const r=t.length;I.Sw(e,r,n),n+=4;for(let o=0;o<r;o++)I.gN(e,t.charCodeAt(o),n),n+=2;return n}static _readString(e,t){const n=I.bb(e,t);return L(e,t+=4,n)}writeSize(){return 8+Lt._writeStringSize(this.oldText)+Lt._writeStringSize(this.newText)}write(e,t){return I.Sw(e,this.oldPosition,t),t+=4,I.Sw(e,this.newPosition,t),t+=4,t=Lt._writeString(e,this.oldText,t),t=Lt._writeString(e,this.newText,t)}static read(e,t,n){const r=I.bb(e,t);t+=4;const o=I.bb(e,t);t+=4;const i=Lt._readString(e,t);t+=Lt._writeStringSize(i);const a=Lt._readString(e,t);return t+=Lt._writeStringSize(a),n.push(new Lt(r,i,o,a)),t}}class kt{constructor(e,t){this._prevEdits=e,this._currEdits=t,this._result=[],this._resultLen=0,this._prevLen=this._prevEdits.length,this._prevDeltaOffset=0,this._currLen=this._currEdits.length,this._currDeltaOffset=0}compress(){let e=0,t=0,n=this._getPrev(e),r=this._getCurr(t);for(;e<this._prevLen||t<this._currLen;){if(null===n){this._acceptCurr(r),r=this._getCurr(++t);continue}if(null===r){this._acceptPrev(n),n=this._getPrev(++e);continue}if(r.oldEnd<=n.newPosition){this._acceptCurr(r),r=this._getCurr(++t);continue}if(n.newEnd<=r.oldPosition){this._acceptPrev(n),n=this._getPrev(++e);continue}if(r.oldPosition<n.newPosition){const[e,t]=kt._splitCurr(r,n.newPosition-r.oldPosition);this._acceptCurr(e),r=t;continue}if(n.newPosition<r.oldPosition){const[e,t]=kt._splitPrev(n,r.oldPosition-n.newPosition);this._acceptPrev(e),n=t;continue}let o,i;if(r.oldEnd===n.newEnd)o=n,i=r,n=this._getPrev(++e),r=this._getCurr(++t);else if(r.oldEnd<n.newEnd){const[e,a]=kt._splitPrev(n,r.oldLength);o=e,i=r,n=a,r=this._getCurr(++t)}else{const[t,a]=kt._splitCurr(r,n.newLength);o=n,i=t,n=this._getPrev(++e),r=a}this._result[this._resultLen++]=new Lt(o.oldPosition,o.oldText,i.newPosition,i.newText),this._prevDeltaOffset+=o.newLength-o.oldLength,this._currDeltaOffset+=i.newLength-i.oldLength}const o=kt._merge(this._result);return kt._removeNoOps(o)}_acceptCurr(e){this._result[this._resultLen++]=kt._rebaseCurr(this._prevDeltaOffset,e),this._currDeltaOffset+=e.newLength-e.oldLength}_getCurr(e){return e<this._currLen?this._currEdits[e]:null}_acceptPrev(e){this._result[this._resultLen++]=kt._rebasePrev(this._currDeltaOffset,e),this._prevDeltaOffset+=e.newLength-e.oldLength}_getPrev(e){return e<this._prevLen?this._prevEdits[e]:null}static _rebaseCurr(e,t){return new Lt(t.oldPosition-e,t.oldText,t.newPosition,t.newText)}static _rebasePrev(e,t){return new Lt(t.oldPosition,t.oldText,t.newPosition+e,t.newText)}static _splitPrev(e,t){const n=e.newText.substr(0,t),r=e.newText.substr(t);return[new Lt(e.oldPosition,e.oldText,e.newPosition,n),new Lt(e.oldEnd,"",e.newPosition+t,r)]}static _splitCurr(e,t){const n=e.oldText.substr(0,t),r=e.oldText.substr(t);return[new Lt(e.oldPosition,n,e.newPosition,e.newText),new Lt(e.oldPosition+t,r,e.newEnd,"")]}static _merge(e){if(0===e.length)return e;const t=[];let n=0,r=e[0];for(let o=1;o<e.length;o++){const i=e[o];r.oldEnd===i.oldPosition?r=new Lt(r.oldPosition,r.oldText+i.oldText,r.newPosition,r.newText+i.newText):(t[n++]=r,r=i)}return t[n++]=r,t}static _removeNoOps(e){if(0===e.length)return e;const t=[];let n=0;for(let r=0;r<e.length;r++){const o=e[r];o.oldText!==o.newText&&(t[n++]=o)}return t}}var Pt=n(9403);function wt(e){return e.toString()}class Ot{static create(e,t){const n=e.getAlternativeVersionId(),r=zt(e);return new Ot(n,n,r,r,t,t,[])}constructor(e,t,n,r,o,i,a){this.beforeVersionId=e,this.afterVersionId=t,this.beforeEOL=n,this.afterEOL=r,this.beforeCursorState=o,this.afterCursorState=i,this.changes=a}append(e,t,n,r,o){var i,a;t.length>0&&(this.changes=(i=this.changes,a=t,null===i||0===i.length?a:new kt(i,a).compress())),this.afterEOL=n,this.afterVersionId=r,this.afterCursorState=o}static _writeSelectionsSize(e){return 4+16*(e?e.length:0)}static _writeSelections(e,t,n){if(I.Sw(e,t?t.length:0,n),n+=4,t)for(const r of t)I.Sw(e,r.selectionStartLineNumber,n),n+=4,I.Sw(e,r.selectionStartColumn,n),n+=4,I.Sw(e,r.positionLineNumber,n),n+=4,I.Sw(e,r.positionColumn,n),n+=4;return n}static _readSelections(e,t,n){const r=I.bb(e,t);t+=4;for(let o=0;o<r;o++){const r=I.bb(e,t);t+=4;const o=I.bb(e,t);t+=4;const i=I.bb(e,t);t+=4;const a=I.bb(e,t);t+=4,n.push(new h.L(r,o,i,a))}return t}serialize(){let e=10+Ot._writeSelectionsSize(this.beforeCursorState)+Ot._writeSelectionsSize(this.afterCursorState)+4;for(const r of this.changes)e+=r.writeSize();const t=new Uint8Array(e);let n=0;I.Sw(t,this.beforeVersionId,n),n+=4,I.Sw(t,this.afterVersionId,n),n+=4,I.Gs(t,this.beforeEOL,n),n+=1,I.Gs(t,this.afterEOL,n),n+=1,n=Ot._writeSelections(t,this.beforeCursorState,n),n=Ot._writeSelections(t,this.afterCursorState,n),I.Sw(t,this.changes.length,n),n+=4;for(const r of this.changes)n=r.write(t,n);return t.buffer}static deserialize(e){const t=new Uint8Array(e);let n=0;const r=I.bb(t,n);n+=4;const o=I.bb(t,n);n+=4;const i=I.pJ(t,n);n+=1;const a=I.pJ(t,n);n+=1;const s=[];n=Ot._readSelections(t,n,s);const l=[];n=Ot._readSelections(t,n,l);const c=I.bb(t,n);n+=4;const d=[];for(let u=0;u<c;u++)n=Lt.read(t,n,d);return new Ot(r,o,i,a,s,l,d)}}class Ft{get type(){return 0}get resource(){return d.r.isUri(this.model)?this.model:this.model.uri}constructor(e,t,n,r){this.label=e,this.code=t,this.model=n,this._data=Ot.create(n,r)}toString(){return(this._data instanceof Ot?this._data:Ot.deserialize(this._data)).changes.map((e=>e.toString())).join(", ")}matchesResource(e){return(d.r.isUri(this.model)?this.model:this.model.uri).toString()===e.toString()}setModel(e){this.model=e}canAppend(e){return this.model===e&&this._data instanceof Ot}append(e,t,n,r,o){this._data instanceof Ot&&this._data.append(e,t,n,r,o)}close(){this._data instanceof Ot&&(this._data=this._data.serialize())}open(){this._data instanceof Ot||(this._data=Ot.deserialize(this._data))}undo(){if(d.r.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof Ot&&(this._data=this._data.serialize());const e=Ot.deserialize(this._data);this.model._applyUndo(e.changes,e.beforeEOL,e.beforeVersionId,e.beforeCursorState)}redo(){if(d.r.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof Ot&&(this._data=this._data.serialize());const e=Ot.deserialize(this._data);this.model._applyRedo(e.changes,e.afterEOL,e.afterVersionId,e.afterCursorState)}heapSize(){return this._data instanceof Ot&&(this._data=this._data.serialize()),this._data.byteLength+168}}class Wt{get resources(){return this._editStackElementsArr.map((e=>e.resource))}constructor(e,t,n){this.label=e,this.code=t,this.type=1,this._isOpen=!0,this._editStackElementsArr=n.slice(0),this._editStackElementsMap=new Map;for(const r of this._editStackElementsArr){const e=wt(r.resource);this._editStackElementsMap.set(e,r)}this._delegate=null}prepareUndoRedo(){if(this._delegate)return this._delegate.prepareUndoRedo(this)}matchesResource(e){const t=wt(e);return this._editStackElementsMap.has(t)}setModel(e){const t=wt(d.r.isUri(e)?e:e.uri);this._editStackElementsMap.has(t)&&this._editStackElementsMap.get(t).setModel(e)}canAppend(e){if(!this._isOpen)return!1;const t=wt(e.uri);if(this._editStackElementsMap.has(t)){return this._editStackElementsMap.get(t).canAppend(e)}return!1}append(e,t,n,r,o){const i=wt(e.uri);this._editStackElementsMap.get(i).append(e,t,n,r,o)}close(){this._isOpen=!1}open(){}undo(){this._isOpen=!1;for(const e of this._editStackElementsArr)e.undo()}redo(){for(const e of this._editStackElementsArr)e.redo()}heapSize(e){const t=wt(e);if(this._editStackElementsMap.has(t)){return this._editStackElementsMap.get(t).heapSize()}return 0}split(){return this._editStackElementsArr}toString(){const e=[];for(const t of this._editStackElementsArr)e.push(`${(0,Pt.P8)(t.resource)}: ${t}`);return`{${e.join(", ")}}`}}function zt(e){return"\n"===e.getEOL()?0:1}function Bt(e){return!!e&&(e instanceof Ft||e instanceof Wt)}class Gt{constructor(e,t){this._model=e,this._undoRedoService=t}pushStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);Bt(e)&&e.close()}popStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);Bt(e)&&e.open()}clear(){this._undoRedoService.removeElements(this._model.uri)}_getOrCreateEditStackElement(e,t){const n=this._undoRedoService.getLastElement(this._model.uri);if(Bt(n)&&n.canAppend(this._model))return n;const r=new Ft(Nt.kg("edit","Typing"),"undoredo.textBufferEdit",this._model,e);return this._undoRedoService.pushElement(r,t),r}pushEOL(e){const t=this._getOrCreateEditStackElement(null,void 0);this._model.setEOL(e),t.append(this._model,[],zt(this._model),this._model.getAlternativeVersionId(),null)}pushEditOperation(e,t,n,r){const o=this._getOrCreateEditStackElement(e,r),i=this._model.applyEdits(t,!0),a=Gt._computeCursorState(n,i),s=i.map(((e,t)=>({index:t,textChange:e.textChange})));return s.sort(((e,t)=>e.textChange.oldPosition===t.textChange.oldPosition?e.index-t.index:e.textChange.oldPosition-t.textChange.oldPosition)),o.append(this._model,s.map((e=>e.textChange)),zt(this._model),this._model.getAlternativeVersionId(),a),a}static _computeCursorState(e,t){try{return e?e(t):null}catch(n){return(0,l.dz)(n),null}}}var jt,Vt=n(6041);class Ut extends o.jG{constructor(){super(...arguments),this._isDisposed=!1}dispose(){super.dispose(),this._isDisposed=!0}assertNotDisposed(){if(this._isDisposed)throw new Error("TextModelPart is disposed!")}}!function(e){e[e.Disabled=0]="Disabled",e[e.EnabledForActive=1]="EnabledForActive",e[e.Enabled=2]="Enabled"}(jt||(jt={}));class Ht{constructor(e,t,n,r,o,i){if(this.visibleColumn=e,this.column=t,this.className=n,this.horizontalLine=r,this.forWrappedLinesAfterColumn=o,this.forWrappedLinesBeforeOrAtColumn=i,-1!==e===(-1!==t))throw new Error}}class Kt{constructor(e,t){this.top=e,this.endColumn=t}}class qt extends Ut{constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t}getLanguageConfiguration(e){return this.languageConfigurationService.getLanguageConfiguration(e)}_computeIndentLevel(e){return function(e,t){let n=0,r=0;const o=e.length;for(;r<o;){const o=e.charCodeAt(r);if(32===o)n++;else{if(9!==o)break;n=n-n%t+t}r++}return r===o?-1:n}(this.textModel.getLineContent(e+1),this.textModel.getOptions().tabSize)}getActiveIndentGuide(e,t,n){this.assertNotDisposed();const r=this.textModel.getLineCount();if(e<1||e>r)throw new l.D7("Illegal value for lineNumber");const o=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,i=Boolean(o&&o.offSide);let a=-2,s=-1,c=-2,d=-1;const u=e=>{if(-1!==a&&(-2===a||a>e-1)){a=-1,s=-1;for(let t=e-2;t>=0;t--){const e=this._computeIndentLevel(t);if(e>=0){a=t,s=e;break}}}if(-2===c){c=-1,d=-1;for(let t=e;t<r;t++){const e=this._computeIndentLevel(t);if(e>=0){c=t,d=e;break}}}};let p=-2,f=-1,m=-2,_=-1;const h=e=>{if(-2===p){p=-1,f=-1;for(let t=e-2;t>=0;t--){const e=this._computeIndentLevel(t);if(e>=0){p=t,f=e;break}}}if(-1!==m&&(-2===m||m<e-1)){m=-1,_=-1;for(let t=e;t<r;t++){const e=this._computeIndentLevel(t);if(e>=0){m=t,_=e;break}}}};let g=0,y=!0,v=0,b=!0,E=0,S=0;for(let l=0;y||b;l++){const o=e-l,a=e+l;l>1&&(o<1||o<t)&&(y=!1),l>1&&(a>r||a>n)&&(b=!1),l>5e4&&(y=!1,b=!1);let m=-1;if(y&&o>=1){const e=this._computeIndentLevel(o-1);e>=0?(c=o-1,d=e,m=Math.ceil(e/this.textModel.getOptions().indentSize)):(u(o),m=this._getIndentLevelForWhitespaceLine(i,s,d))}let T=-1;if(b&&a<=r){const e=this._computeIndentLevel(a-1);e>=0?(p=a-1,f=e,T=Math.ceil(e/this.textModel.getOptions().indentSize)):(h(a),T=this._getIndentLevelForWhitespaceLine(i,f,_))}if(0!==l){if(1===l){if(a<=r&&T>=0&&S+1===T){y=!1,g=a,v=a,E=T;continue}if(o>=1&&m>=0&&m-1===S){b=!1,g=o,v=o,E=m;continue}if(g=e,v=e,E=S,0===E)return{startLineNumber:g,endLineNumber:v,indent:E}}y&&(m>=E?g=o:y=!1),b&&(T>=E?v=a:b=!1)}else S=m}return{startLineNumber:g,endLineNumber:v,indent:E}}getLinesBracketGuides(e,t,n,r){const o=[];for(let c=e;c<=t;c++)o.push([]);const i=!0,a=this.textModel.bracketPairs.getBracketPairsInRangeWithMinIndentation(new _.Q(e,1,t,this.textModel.getLineMaxColumn(t))).toArray();let s;if(n&&a.length>0){const r=(e<=n.lineNumber&&n.lineNumber<=t?a:this.textModel.bracketPairs.getBracketPairsInRange(_.Q.fromPositions(n)).toArray()).filter((e=>_.Q.strictContainsPosition(e.range,n)));s=(0,Vt.Uk)(r,(e=>i))?.range}const l=this.textModel.getOptions().bracketPairColorizationOptions.independentColorPoolPerBracketType,d=new Jt;for(const u of a){if(!u.closingBracketRange)continue;const n=s&&u.range.equalsRange(s);if(!n&&!r.includeInactive)continue;const i=d.getInlineClassName(u.nestingLevel,u.nestingLevelOfEqualBracketType,l)+(r.highlightActive&&n?" "+d.activeClassName:""),a=u.openingBracketRange.getStartPosition(),p=u.closingBracketRange.getStartPosition(),f=r.horizontalGuides===jt.Enabled||r.horizontalGuides===jt.EnabledForActive&&n;if(u.range.startLineNumber===u.range.endLineNumber){f&&o[u.range.startLineNumber-e].push(new Ht(-1,u.openingBracketRange.getEndPosition().column,i,new Kt(!1,p.column),-1,-1));continue}const m=this.getVisibleColumnFromPosition(p),_=this.getVisibleColumnFromPosition(u.openingBracketRange.getStartPosition()),h=Math.min(_,m,u.minVisibleColumnIndentation+1);let g=!1;c.HG(this.textModel.getLineContent(u.closingBracketRange.startLineNumber))<u.closingBracketRange.startColumn-1&&(g=!0);const y=Math.max(a.lineNumber,e),v=Math.min(p.lineNumber,t),b=g?1:0;for(let t=y;t<v+b;t++)o[t-e].push(new Ht(h,-1,i,null,t===a.lineNumber?a.column:-1,t===p.lineNumber?p.column:-1));f&&(a.lineNumber>=e&&_>h&&o[a.lineNumber-e].push(new Ht(h,-1,i,new Kt(!1,a.column),-1,-1)),p.lineNumber<=t&&m>h&&o[p.lineNumber-e].push(new Ht(h,-1,i,new Kt(!g,p.column),-1,-1)))}for(const c of o)c.sort(((e,t)=>e.visibleColumn-t.visibleColumn));return o}getVisibleColumnFromPosition(e){return p.visibleColumnFromColumn(this.textModel.getLineContent(e.lineNumber),e.column,this.textModel.getOptions().tabSize)+1}getLinesIndentGuides(e,t){this.assertNotDisposed();const n=this.textModel.getLineCount();if(e<1||e>n)throw new Error("Illegal value for startLineNumber");if(t<1||t>n)throw new Error("Illegal value for endLineNumber");const r=this.textModel.getOptions(),o=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,i=Boolean(o&&o.offSide),a=new Array(t-e+1);let s=-2,l=-1,c=-2,d=-1;for(let u=e;u<=t;u++){const t=u-e,o=this._computeIndentLevel(u-1);if(o>=0)s=u-1,l=o,a[t]=Math.ceil(o/r.indentSize);else{if(-2===s){s=-1,l=-1;for(let e=u-2;e>=0;e--){const t=this._computeIndentLevel(e);if(t>=0){s=e,l=t;break}}}if(-1!==c&&(-2===c||c<u-1)){c=-1,d=-1;for(let e=u;e<n;e++){const t=this._computeIndentLevel(e);if(t>=0){c=e,d=t;break}}}a[t]=this._getIndentLevelForWhitespaceLine(i,l,d)}}return a}_getIndentLevelForWhitespaceLine(e,t,n){const r=this.textModel.getOptions();return-1===t||-1===n?0:t<n?1+Math.floor(t/r.indentSize):t===n||e?Math.ceil(n/r.indentSize):1+Math.floor(n/r.indentSize)}}class Jt{constructor(){this.activeClassName="indent-active"}getInlineClassName(e,t,n){return this.getInlineClassNameOfLevel(n?t:e)}getInlineClassNameOfLevel(e){return"bracket-indent-guide lvl-"+e%30}}class Xt{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}}function $t(e,t,n,r,o){let i;for(o.spacesDiff=0,o.looksLikeAlignment=!1,i=0;i<t&&i<r;i++){if(e.charCodeAt(i)!==n.charCodeAt(i))break}let a=0,s=0;for(let p=i;p<t;p++){32===e.charCodeAt(p)?a++:s++}let l=0,c=0;for(let p=i;p<r;p++){32===n.charCodeAt(p)?l++:c++}if(a>0&&s>0)return;if(l>0&&c>0)return;const d=Math.abs(s-c),u=Math.abs(a-l);if(0===d)return o.spacesDiff=u,void(u>0&&0<=l-1&&l-1<e.length&&l<n.length&&32!==n.charCodeAt(l)&&32===e.charCodeAt(l-1)&&44===e.charCodeAt(e.length-1)&&(o.looksLikeAlignment=!0));u%d!==0||(o.spacesDiff=u/d)}function Yt(e,t,n){const r=Math.min(e.getLineCount(),1e4);let o=0,i=0,a="",s=0;const l=[2,4,6,8,3,5,7],c=[0,0,0,0,0,0,0,0,0],d=new Xt;for(let f=1;f<=r;f++){const r=e.getLineLength(f),l=e.getLineContent(f),u=r<=65536;let p=!1,m=0,_=0,h=0;for(let t=0,n=r;t<n;t++){const n=u?l.charCodeAt(t):e.getLineCharCode(f,t);if(9===n)h++;else{if(32!==n){p=!0,m=t;break}_++}}if(!p)continue;if(h>0?o++:_>1&&i++,$t(a,s,l,m,d),d.looksLikeAlignment&&(!n||t!==d.spacesDiff))continue;const g=d.spacesDiff;g<=8&&c[g]++,a=l,s=m}let u=n;o!==i&&(u=o<i);let p=t;if(u){let e=u?0:.1*r;l.forEach((t=>{const n=c[t];n>e&&(e=n,p=t)})),4===p&&c[4]>0&&c[2]>0&&c[2]>=c[4]/2&&(p=2)}return{insertSpaces:u,tabSize:p}}function Qt(e){return(1&e.metadata)>>>0}function Zt(e,t){e.metadata=254&e.metadata|t}function en(e){return(2&e.metadata)>>>1===1}function tn(e,t){e.metadata=253&e.metadata|(t?1:0)<<1}function nn(e){return(4&e.metadata)>>>2===1}function rn(e,t){e.metadata=251&e.metadata|(t?1:0)<<2}function on(e){return(64&e.metadata)>>>6===1}function an(e,t){e.metadata=191&e.metadata|(t?1:0)<<6}function sn(e,t){e.metadata=231&e.metadata|t<<3}function ln(e,t){e.metadata=223&e.metadata|(t?1:0)<<5}class cn{constructor(e,t,n){this.metadata=0,this.parent=this,this.left=this,this.right=this,Zt(this,1),this.start=t,this.end=n,this.delta=0,this.maxEnd=n,this.id=e,this.ownerId=0,this.options=null,rn(this,!1),an(this,!1),sn(this,1),ln(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=null,tn(this,!1)}reset(e,t,n,r){this.start=t,this.end=n,this.maxEnd=n,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=r}setOptions(e){this.options=e;const t=this.options.className;rn(this,"squiggly-error"===t||"squiggly-warning"===t||"squiggly-info"===t),an(this,null!==this.options.glyphMarginClassName),sn(this,this.options.stickiness),ln(this,this.options.collapseOnReplaceEdit)}setCachedOffsets(e,t,n){this.cachedVersionId!==n&&(this.range=null),this.cachedVersionId=n,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t}detach(){this.parent=null,this.left=null,this.right=null}}const dn=new cn(null,0,0);dn.parent=dn,dn.left=dn,dn.right=dn,Zt(dn,0);class un{constructor(){this.root=dn,this.requestNormalizeDelta=!1}intervalSearch(e,t,n,r,o,i){return this.root===dn?[]:function(e,t,n,r,o,i,a){let s=e.root,l=0,c=0,d=0,u=0;const p=[];let f=0;for(;s!==dn;)if(en(s))tn(s.left,!1),tn(s.right,!1),s===s.parent.right&&(l-=s.parent.delta),s=s.parent;else{if(!en(s.left)){if(c=l+s.maxEnd,c<t){tn(s,!0);continue}if(s.left!==dn){s=s.left;continue}}if(d=l+s.start,d>n)tn(s,!0);else{if(u=l+s.end,u>=t){s.setCachedOffsets(d,u,i);let e=!0;r&&s.ownerId&&s.ownerId!==r&&(e=!1),o&&nn(s)&&(e=!1),a&&!on(s)&&(e=!1),e&&(p[f++]=s)}tn(s,!0),s.right===dn||en(s.right)||(l+=s.delta,s=s.right)}}return tn(e.root,!1),p}(this,e,t,n,r,o,i)}search(e,t,n,r){return this.root===dn?[]:function(e,t,n,r,o){let i=e.root,a=0,s=0,l=0;const c=[];let d=0;for(;i!==dn;){if(en(i)){tn(i.left,!1),tn(i.right,!1),i===i.parent.right&&(a-=i.parent.delta),i=i.parent;continue}if(i.left!==dn&&!en(i.left)){i=i.left;continue}s=a+i.start,l=a+i.end,i.setCachedOffsets(s,l,r);let e=!0;t&&i.ownerId&&i.ownerId!==t&&(e=!1),n&&nn(i)&&(e=!1),o&&!on(i)&&(e=!1),e&&(c[d++]=i),tn(i,!0),i.right===dn||en(i.right)||(a+=i.delta,i=i.right)}return tn(e.root,!1),c}(this,e,t,n,r)}collectNodesFromOwner(e){return function(e,t){let n=e.root;const r=[];let o=0;for(;n!==dn;)en(n)?(tn(n.left,!1),tn(n.right,!1),n=n.parent):n.left===dn||en(n.left)?(n.ownerId===t&&(r[o++]=n),tn(n,!0),n.right===dn||en(n.right)||(n=n.right)):n=n.left;return tn(e.root,!1),r}(this,e)}collectNodesPostOrder(){return function(e){let t=e.root;const n=[];let r=0;for(;t!==dn;)en(t)?(tn(t.left,!1),tn(t.right,!1),t=t.parent):t.left===dn||en(t.left)?t.right===dn||en(t.right)?(n[r++]=t,tn(t,!0)):t=t.right:t=t.left;return tn(e.root,!1),n}(this)}insert(e){mn(this,e),this._normalizeDeltaIfNecessary()}delete(e){_n(this,e),this._normalizeDeltaIfNecessary()}resolveNode(e,t){const n=e;let r=0;for(;e!==this.root;)e===e.parent.right&&(r+=e.parent.delta),e=e.parent;const o=n.start+r,i=n.end+r;n.setCachedOffsets(o,i,t)}acceptReplace(e,t,n,r){const o=function(e,t,n){let r=e.root,o=0,i=0,a=0,s=0;const l=[];let c=0;for(;r!==dn;)if(en(r))tn(r.left,!1),tn(r.right,!1),r===r.parent.right&&(o-=r.parent.delta),r=r.parent;else{if(!en(r.left)){if(i=o+r.maxEnd,i<t){tn(r,!0);continue}if(r.left!==dn){r=r.left;continue}}a=o+r.start,a>n?tn(r,!0):(s=o+r.end,s>=t&&(r.setCachedOffsets(a,s,0),l[c++]=r),tn(r,!0),r.right===dn||en(r.right)||(o+=r.delta,r=r.right))}return tn(e.root,!1),l}(this,e,e+t);for(let i=0,a=o.length;i<a;i++){_n(this,o[i])}this._normalizeDeltaIfNecessary(),function(e,t,n,r){let o=e.root,i=0,a=0,s=0;const l=r-(n-t);for(;o!==dn;)if(en(o))tn(o.left,!1),tn(o.right,!1),o===o.parent.right&&(i-=o.parent.delta),bn(o),o=o.parent;else{if(!en(o.left)){if(a=i+o.maxEnd,a<t){tn(o,!0);continue}if(o.left!==dn){o=o.left;continue}}s=i+o.start,s>n?(o.start+=l,o.end+=l,o.delta+=l,(o.delta<-1073741824||o.delta>1073741824)&&(e.requestNormalizeDelta=!0),tn(o,!0)):(tn(o,!0),o.right===dn||en(o.right)||(i+=o.delta,o=o.right))}tn(e.root,!1)}(this,e,e+t,n),this._normalizeDeltaIfNecessary();for(let i=0,a=o.length;i<a;i++){const a=o[i];a.start=a.cachedAbsoluteStart,a.end=a.cachedAbsoluteEnd,fn(a,e,e+t,n,r),a.maxEnd=a.end,mn(this,a)}this._normalizeDeltaIfNecessary()}_normalizeDeltaIfNecessary(){this.requestNormalizeDelta&&(this.requestNormalizeDelta=!1,function(e){let t=e.root,n=0;for(;t!==dn;)t.left===dn||en(t.left)?t.right===dn||en(t.right)?(t.start=n+t.start,t.end=n+t.end,t.delta=0,bn(t),tn(t,!0),tn(t.left,!1),tn(t.right,!1),t===t.parent.right&&(n-=t.parent.delta),t=t.parent):(n+=t.delta,t=t.right):t=t.left;tn(e.root,!1)}(this))}}function pn(e,t,n,r){return e<n||!(e>n)&&(1!==r&&(2===r||t))}function fn(e,t,n,r,o){const i=function(e){return(24&e.metadata)>>>3}(e),a=0===i||2===i,s=1===i||2===i,l=n-t,c=r,d=Math.min(l,c),u=e.start;let p=!1;const f=e.end;let m=!1;t<=u&&f<=n&&function(e){return(32&e.metadata)>>>5===1}(e)&&(e.start=t,p=!0,e.end=t,m=!0);{const e=o?1:l>0?2:0;!p&&pn(u,a,t,e)&&(p=!0),!m&&pn(f,s,t,e)&&(m=!0)}if(d>0&&!o){const e=l>c?2:0;!p&&pn(u,a,t+d,e)&&(p=!0),!m&&pn(f,s,t+d,e)&&(m=!0)}{const r=o?1:0;!p&&pn(u,a,n,r)&&(e.start=t+c,p=!0),!m&&pn(f,s,n,r)&&(e.end=t+c,m=!0)}const _=c-l;p||(e.start=Math.max(0,u+_)),m||(e.end=Math.max(0,f+_)),e.start>e.end&&(e.end=e.start)}function mn(e,t){if(e.root===dn)return t.parent=dn,t.left=dn,t.right=dn,Zt(t,0),e.root=t,e.root;!function(e,t){let n=0,r=e.root;const o=t.start,i=t.end;for(;;){if(Sn(o,i,r.start+n,r.end+n)<0){if(r.left===dn){t.start-=n,t.end-=n,t.maxEnd-=n,r.left=t;break}r=r.left}else{if(r.right===dn){t.start-=n+r.delta,t.end-=n+r.delta,t.maxEnd-=n+r.delta,r.right=t;break}n+=r.delta,r=r.right}}t.parent=r,t.left=dn,t.right=dn,Zt(t,1)}(e,t),En(t.parent);let n=t;for(;n!==e.root&&1===Qt(n.parent);)if(n.parent===n.parent.parent.left){const t=n.parent.parent.right;1===Qt(t)?(Zt(n.parent,0),Zt(t,0),Zt(n.parent.parent,1),n=n.parent.parent):(n===n.parent.right&&(n=n.parent,gn(e,n)),Zt(n.parent,0),Zt(n.parent.parent,1),yn(e,n.parent.parent))}else{const t=n.parent.parent.left;1===Qt(t)?(Zt(n.parent,0),Zt(t,0),Zt(n.parent.parent,1),n=n.parent.parent):(n===n.parent.left&&(n=n.parent,yn(e,n)),Zt(n.parent,0),Zt(n.parent.parent,1),gn(e,n.parent.parent))}return Zt(e.root,0),t}function _n(e,t){let n,r;if(t.left===dn?(n=t.right,r=t,n.delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta):t.right===dn?(n=t.left,r=t):(r=function(e){for(;e.left!==dn;)e=e.left;return e}(t.right),n=r.right,n.start+=r.delta,n.end+=r.delta,n.delta+=r.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),r.start+=t.delta,r.end+=t.delta,r.delta=t.delta,(r.delta<-1073741824||r.delta>1073741824)&&(e.requestNormalizeDelta=!0)),r===e.root)return e.root=n,Zt(n,0),t.detach(),hn(),bn(n),void(e.root.parent=dn);const o=1===Qt(r);if(r===r.parent.left?r.parent.left=n:r.parent.right=n,r===t?n.parent=r.parent:(r.parent===t?n.parent=r:n.parent=r.parent,r.left=t.left,r.right=t.right,r.parent=t.parent,Zt(r,Qt(t)),t===e.root?e.root=r:t===t.parent.left?t.parent.left=r:t.parent.right=r,r.left!==dn&&(r.left.parent=r),r.right!==dn&&(r.right.parent=r)),t.detach(),o)return En(n.parent),r!==t&&(En(r),En(r.parent)),void hn();let i;for(En(n),En(n.parent),r!==t&&(En(r),En(r.parent));n!==e.root&&0===Qt(n);)n===n.parent.left?(i=n.parent.right,1===Qt(i)&&(Zt(i,0),Zt(n.parent,1),gn(e,n.parent),i=n.parent.right),0===Qt(i.left)&&0===Qt(i.right)?(Zt(i,1),n=n.parent):(0===Qt(i.right)&&(Zt(i.left,0),Zt(i,1),yn(e,i),i=n.parent.right),Zt(i,Qt(n.parent)),Zt(n.parent,0),Zt(i.right,0),gn(e,n.parent),n=e.root)):(i=n.parent.left,1===Qt(i)&&(Zt(i,0),Zt(n.parent,1),yn(e,n.parent),i=n.parent.left),0===Qt(i.left)&&0===Qt(i.right)?(Zt(i,1),n=n.parent):(0===Qt(i.left)&&(Zt(i.right,0),Zt(i,1),gn(e,i),i=n.parent.left),Zt(i,Qt(n.parent)),Zt(n.parent,0),Zt(i.left,0),yn(e,n.parent),n=e.root));Zt(n,0),hn()}function hn(){dn.parent=dn,dn.delta=0,dn.start=0,dn.end=0}function gn(e,t){const n=t.right;n.delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta,t.right=n.left,n.left!==dn&&(n.left.parent=t),n.parent=t.parent,t.parent===dn?e.root=n:t===t.parent.left?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n,bn(t),bn(n)}function yn(e,t){const n=t.left;t.delta-=n.delta,(t.delta<-1073741824||t.delta>1073741824)&&(e.requestNormalizeDelta=!0),t.start-=n.delta,t.end-=n.delta,t.left=n.right,n.right!==dn&&(n.right.parent=t),n.parent=t.parent,t.parent===dn?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n,bn(t),bn(n)}function vn(e){let t=e.end;if(e.left!==dn){const n=e.left.maxEnd;n>t&&(t=n)}if(e.right!==dn){const n=e.right.maxEnd+e.delta;n>t&&(t=n)}return t}function bn(e){e.maxEnd=vn(e)}function En(e){for(;e!==dn;){const t=vn(e);if(e.maxEnd===t)return;e.maxEnd=t,e=e.parent}}function Sn(e,t,n,r){return e===n?t-r:e-n}class Tn{constructor(e,t){this.piece=e,this.color=t,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}next(){if(this.right!==xn)return An(this.right);let e=this;for(;e.parent!==xn&&e.parent.left!==e;)e=e.parent;return e.parent===xn?xn:e.parent}prev(){if(this.left!==xn)return In(this.left);let e=this;for(;e.parent!==xn&&e.parent.right!==e;)e=e.parent;return e.parent===xn?xn:e.parent}detach(){this.parent=null,this.left=null,this.right=null}}const xn=new Tn(null,0);function An(e){for(;e.left!==xn;)e=e.left;return e}function In(e){for(;e.right!==xn;)e=e.right;return e}function Rn(e){return e===xn?0:e.size_left+e.piece.length+Rn(e.right)}function Cn(e){return e===xn?0:e.lf_left+e.piece.lineFeedCnt+Cn(e.right)}function Dn(){xn.parent=xn}function Nn(e,t){const n=t.right;n.size_left+=t.size_left+(t.piece?t.piece.length:0),n.lf_left+=t.lf_left+(t.piece?t.piece.lineFeedCnt:0),t.right=n.left,n.left!==xn&&(n.left.parent=t),n.parent=t.parent,t.parent===xn?e.root=n:t.parent.left===t?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n}function Mn(e,t){const n=t.left;t.left=n.right,n.right!==xn&&(n.right.parent=t),n.parent=t.parent,t.size_left-=n.size_left+(n.piece?n.piece.length:0),t.lf_left-=n.lf_left+(n.piece?n.piece.lineFeedCnt:0),t.parent===xn?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n}function Ln(e,t){let n,r;if(t.left===xn?(r=t,n=r.right):t.right===xn?(r=t,n=r.left):(r=An(t.right),n=r.right),r===e.root)return e.root=n,n.color=0,t.detach(),Dn(),void(e.root.parent=xn);const o=1===r.color;if(r===r.parent.left?r.parent.left=n:r.parent.right=n,r===t?(n.parent=r.parent,wn(e,n)):(r.parent===t?n.parent=r:n.parent=r.parent,wn(e,n),r.left=t.left,r.right=t.right,r.parent=t.parent,r.color=t.color,t===e.root?e.root=r:t===t.parent.left?t.parent.left=r:t.parent.right=r,r.left!==xn&&(r.left.parent=r),r.right!==xn&&(r.right.parent=r),r.size_left=t.size_left,r.lf_left=t.lf_left,wn(e,r)),t.detach(),n.parent.left===n){const t=Rn(n),r=Cn(n);if(t!==n.parent.size_left||r!==n.parent.lf_left){const o=t-n.parent.size_left,i=r-n.parent.lf_left;n.parent.size_left=t,n.parent.lf_left=r,Pn(e,n.parent,o,i)}}if(wn(e,n.parent),o)return void Dn();let i;for(;n!==e.root&&0===n.color;)n===n.parent.left?(i=n.parent.right,1===i.color&&(i.color=0,n.parent.color=1,Nn(e,n.parent),i=n.parent.right),0===i.left.color&&0===i.right.color?(i.color=1,n=n.parent):(0===i.right.color&&(i.left.color=0,i.color=1,Mn(e,i),i=n.parent.right),i.color=n.parent.color,n.parent.color=0,i.right.color=0,Nn(e,n.parent),n=e.root)):(i=n.parent.left,1===i.color&&(i.color=0,n.parent.color=1,Mn(e,n.parent),i=n.parent.left),0===i.left.color&&0===i.right.color?(i.color=1,n=n.parent):(0===i.left.color&&(i.right.color=0,i.color=1,Nn(e,i),i=n.parent.left),i.color=n.parent.color,n.parent.color=0,i.left.color=0,Mn(e,n.parent),n=e.root));n.color=0,Dn()}function kn(e,t){for(wn(e,t);t!==e.root&&1===t.parent.color;)if(t.parent===t.parent.parent.left){const n=t.parent.parent.right;1===n.color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.right&&Nn(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,Mn(e,t.parent.parent))}else{const n=t.parent.parent.left;1===n.color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.left&&Mn(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,Nn(e,t.parent.parent))}e.root.color=0}function Pn(e,t,n,r){for(;t!==e.root&&t!==xn;)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=r),t=t.parent}function wn(e,t){let n=0,r=0;if(t!==e.root){for(;t!==e.root&&t===t.parent.right;)t=t.parent;if(t!==e.root)for(n=Rn((t=t.parent).left)-t.size_left,r=Cn(t.left)-t.lf_left,t.size_left+=n,t.lf_left+=r;t!==e.root&&(0!==n||0!==r);)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=r),t=t.parent}}xn.parent=xn,xn.left=xn,xn.right=xn,xn.color=0;var On=n(7729);const Fn=65535;function Wn(e){let t;return t=e[e.length-1]<65536?new Uint16Array(e.length):new Uint32Array(e.length),t.set(e,0),t}class zn{constructor(e,t,n,r,o){this.lineStarts=e,this.cr=t,this.lf=n,this.crlf=r,this.isBasicASCII=o}}function Bn(e,t=!0){const n=[0];let r=1;for(let o=0,i=e.length;o<i;o++){const t=e.charCodeAt(o);13===t?o+1<i&&10===e.charCodeAt(o+1)?(n[r++]=o+2,o++):n[r++]=o+1:10===t&&(n[r++]=o+1)}return t?Wn(n):n}class Gn{constructor(e,t,n,r,o){this.bufferIndex=e,this.start=t,this.end=n,this.lineFeedCnt=r,this.length=o}}class jn{constructor(e,t){this.buffer=e,this.lineStarts=t}}class Vn{constructor(e,t){this._pieces=[],this._tree=e,this._BOM=t,this._index=0,e.root!==xn&&e.iterate(e.root,(e=>(e!==xn&&this._pieces.push(e.piece),!0)))}read(){return 0===this._pieces.length?0===this._index?(this._index++,this._BOM):null:this._index>this._pieces.length-1?null:0===this._index?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])}}class Un{constructor(e){this._limit=e,this._cache=[]}get(e){for(let t=this._cache.length-1;t>=0;t--){const n=this._cache[t];if(n.nodeStartOffset<=e&&n.nodeStartOffset+n.node.piece.length>=e)return n}return null}get2(e){for(let t=this._cache.length-1;t>=0;t--){const n=this._cache[t];if(n.nodeStartLineNumber&&n.nodeStartLineNumber<e&&n.nodeStartLineNumber+n.node.piece.lineFeedCnt>=e)return n}return null}set(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)}validate(e){let t=!1;const n=this._cache;for(let r=0;r<n.length;r++){const o=n[r];(null===o.node.parent||o.nodeStartOffset>=e)&&(n[r]=null,t=!0)}if(t){const e=[];for(const t of n)null!==t&&e.push(t);this._cache=e}}}class Hn{constructor(e,t,n){this.create(e,t,n)}create(e,t,n){this._buffers=[new jn("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=xn,this._lineCnt=1,this._length=0,this._EOL=t,this._EOLLength=t.length,this._EOLNormalized=n;let r=null;for(let o=0,i=e.length;o<i;o++)if(e[o].buffer.length>0){e[o].lineStarts||(e[o].lineStarts=Bn(e[o].buffer));const t=new Gn(o+1,{line:0,column:0},{line:e[o].lineStarts.length-1,column:e[o].buffer.length-e[o].lineStarts[e[o].lineStarts.length-1]},e[o].lineStarts.length-1,e[o].buffer.length);this._buffers.push(e[o]),r=this.rbInsertRight(r,t)}this._searchCache=new Un(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()}normalizeEOL(e){const t=Fn,n=t-Math.floor(21845),r=2*n;let o="",i=0;const a=[];if(this.iterate(this.root,(t=>{const s=this.getNodeContent(t),l=s.length;if(i<=n||i+l<r)return o+=s,i+=l,!0;const c=o.replace(/\r\n|\r|\n/g,e);return a.push(new jn(c,Bn(c))),o=s,i=l,!0})),i>0){const t=o.replace(/\r\n|\r|\n/g,e);a.push(new jn(t,Bn(t)))}this.create(a,e,!0)}getEOL(){return this._EOL}setEOL(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)}createSnapshot(e){return new Vn(this,e)}getOffsetAt(e,t){let n=0,r=this.root;for(;r!==xn;)if(r.left!==xn&&r.lf_left+1>=e)r=r.left;else{if(r.lf_left+r.piece.lineFeedCnt+1>=e){n+=r.size_left;return n+(this.getAccumulatedValue(r,e-r.lf_left-2)+t-1)}e-=r.lf_left+r.piece.lineFeedCnt,n+=r.size_left+r.piece.length,r=r.right}return n}getPositionAt(e){e=Math.floor(e),e=Math.max(0,e);let t=this.root,n=0;const r=e;for(;t!==xn;)if(0!==t.size_left&&t.size_left>=e)t=t.left;else{if(t.size_left+t.piece.length>=e){const o=this.getIndexOf(t,e-t.size_left);if(n+=t.lf_left+o.index,0===o.index){const e=r-this.getOffsetAt(n+1,1);return new m.y(n+1,e+1)}return new m.y(n+1,o.remainder+1)}if(e-=t.size_left+t.piece.length,n+=t.lf_left+t.piece.lineFeedCnt,t.right===xn){const t=r-e-this.getOffsetAt(n+1,1);return new m.y(n+1,t+1)}t=t.right}return new m.y(1,1)}getValueInRange(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";const n=this.nodeAt2(e.startLineNumber,e.startColumn),r=this.nodeAt2(e.endLineNumber,e.endColumn),o=this.getValueInRange2(n,r);return t?t===this._EOL&&this._EOLNormalized&&t===this.getEOL()&&this._EOLNormalized?o:o.replace(/\r\n|\r|\n/g,t):o}getValueInRange2(e,t){if(e.node===t.node){const n=e.node,r=this._buffers[n.piece.bufferIndex].buffer,o=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return r.substring(o+e.remainder,o+t.remainder)}let n=e.node;const r=this._buffers[n.piece.bufferIndex].buffer,o=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);let i=r.substring(o+e.remainder,o+n.piece.length);for(n=n.next();n!==xn;){const e=this._buffers[n.piece.bufferIndex].buffer,r=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);if(n===t.node){i+=e.substring(r,r+t.remainder);break}i+=e.substr(r,n.piece.length),n=n.next()}return i}getLinesContent(){const e=[];let t=0,n="",r=!1;return this.iterate(this.root,(o=>{if(o===xn)return!0;const i=o.piece;let a=i.length;if(0===a)return!0;const s=this._buffers[i.bufferIndex].buffer,l=this._buffers[i.bufferIndex].lineStarts,c=i.start.line,d=i.end.line;let u=l[c]+i.start.column;if(r&&(10===s.charCodeAt(u)&&(u++,a--),e[t++]=n,n="",r=!1,0===a))return!0;if(c===d)return this._EOLNormalized||13!==s.charCodeAt(u+a-1)?n+=s.substr(u,a):(r=!0,n+=s.substr(u,a-1)),!0;n+=this._EOLNormalized?s.substring(u,Math.max(u,l[c+1]-this._EOLLength)):s.substring(u,l[c+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=n;for(let r=c+1;r<d;r++)n=this._EOLNormalized?s.substring(l[r],l[r+1]-this._EOLLength):s.substring(l[r],l[r+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=n;return this._EOLNormalized||13!==s.charCodeAt(l[d]+i.end.column-1)?n=s.substr(l[d],i.end.column):(r=!0,0===i.end.column?t--:n=s.substr(l[d],i.end.column-1)),!0})),r&&(e[t++]=n,n=""),e[t++]=n,e}getLength(){return this._length}getLineCount(){return this._lineCnt}getLineContent(e){return this._lastVisitedLine.lineNumber===e||(this._lastVisitedLine.lineNumber=e,e===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(e):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(e,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(e).replace(/(\r\n|\r|\n)$/,"")),this._lastVisitedLine.value}_getCharCode(e){if(e.remainder===e.node.piece.length){const t=e.node.next();if(!t)return 0;const n=this._buffers[t.piece.bufferIndex],r=this.offsetInBuffer(t.piece.bufferIndex,t.piece.start);return n.buffer.charCodeAt(r)}{const t=this._buffers[e.node.piece.bufferIndex],n=this.offsetInBuffer(e.node.piece.bufferIndex,e.node.piece.start)+e.remainder;return t.buffer.charCodeAt(n)}}getLineCharCode(e,t){const n=this.nodeAt2(e,t+1);return this._getCharCode(n)}getLineLength(e){if(e===this.getLineCount()){const t=this.getOffsetAt(e,1);return this.getLength()-t}return this.getOffsetAt(e+1,1)-this.getOffsetAt(e,1)-this._EOLLength}findMatchesInNode(e,t,n,r,o,i,a,s,l,c,d){const u=this._buffers[e.piece.bufferIndex],p=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start),f=this.offsetInBuffer(e.piece.bufferIndex,o),m=this.offsetInBuffer(e.piece.bufferIndex,i);let h;const g={line:0,column:0};let y,v;t._wordSeparators?(y=u.buffer.substring(f,m),v=e=>e+f,t.reset(0)):(y=u.buffer,v=e=>e,t.reset(f));do{if(h=t.next(y),h){if(v(h.index)>=m)return c;this.positionInBuffer(e,v(h.index)-p,g);const t=this.getLineFeedCnt(e.piece.bufferIndex,o,g),i=g.line===o.line?g.column-o.column+r:g.column+1,a=i+h[0].length;if(d[c++]=(0,On.dr)(new _.Q(n+t,i,n+t,a),h,s),v(h.index)+h[0].length>=m)return c;if(c>=l)return c}}while(h);return c}findMatchesLineByLine(e,t,n,r){const o=[];let i=0;const a=new On.W5(t.wordSeparators,t.regex);let s=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===s)return[];const l=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===l)return[];let c=this.positionInBuffer(s.node,s.remainder);const d=this.positionInBuffer(l.node,l.remainder);if(s.node===l.node)return this.findMatchesInNode(s.node,a,e.startLineNumber,e.startColumn,c,d,t,n,r,i,o),o;let u=e.startLineNumber,p=s.node;for(;p!==l.node;){const l=this.getLineFeedCnt(p.piece.bufferIndex,c,p.piece.end);if(l>=1){const s=this._buffers[p.piece.bufferIndex].lineStarts,d=this.offsetInBuffer(p.piece.bufferIndex,p.piece.start),f=s[c.line+l],m=u===e.startLineNumber?e.startColumn:1;if(i=this.findMatchesInNode(p,a,u,m,c,this.positionInBuffer(p,f-d),t,n,r,i,o),i>=r)return o;u+=l}const d=u===e.startLineNumber?e.startColumn-1:0;if(u===e.endLineNumber){const s=this.getLineContent(u).substring(d,e.endColumn-1);return i=this._findMatchesInLine(t,a,s,e.endLineNumber,d,i,o,n,r),o}if(i=this._findMatchesInLine(t,a,this.getLineContent(u).substr(d),u,d,i,o,n,r),i>=r)return o;u++,s=this.nodeAt2(u,1),p=s.node,c=this.positionInBuffer(s.node,s.remainder)}if(u===e.endLineNumber){const s=u===e.startLineNumber?e.startColumn-1:0,l=this.getLineContent(u).substring(s,e.endColumn-1);return i=this._findMatchesInLine(t,a,l,e.endLineNumber,s,i,o,n,r),o}const f=u===e.startLineNumber?e.startColumn:1;return i=this.findMatchesInNode(l.node,a,u,f,c,d,t,n,r,i,o),o}_findMatchesInLine(e,t,n,r,o,i,a,s,l){const c=e.wordSeparators;if(!s&&e.simpleSearch){const t=e.simpleSearch,s=t.length,d=n.length;let u=-s;for(;-1!==(u=n.indexOf(t,u+s));)if((!c||(0,On.wC)(c,n,d,u,s))&&(a[i++]=new _e.Dg(new _.Q(r,u+1+o,r,u+1+s+o),null),i>=l))return i;return i}let d;t.reset(0);do{if(d=t.next(n),d&&(a[i++]=(0,On.dr)(new _.Q(r,d.index+1+o,r,d.index+1+d[0].length+o),d,s),i>=l))return i}while(d);return i}insert(e,t,n=!1){if(this._EOLNormalized=this._EOLNormalized&&n,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==xn){const{node:n,remainder:r,nodeStartOffset:o}=this.nodeAt(e),i=n.piece,a=i.bufferIndex,s=this.positionInBuffer(n,r);if(0===n.piece.bufferIndex&&i.end.line===this._lastChangeBufferPos.line&&i.end.column===this._lastChangeBufferPos.column&&o+i.length===e&&t.length<Fn)return this.appendToNode(n,t),void this.computeBufferMetadata();if(o===e)this.insertContentToNodeLeft(t,n),this._searchCache.validate(e);else if(o+n.piece.length>e){const e=[];let o=new Gn(i.bufferIndex,s,i.end,this.getLineFeedCnt(i.bufferIndex,s,i.end),this.offsetInBuffer(a,i.end)-this.offsetInBuffer(a,s));if(this.shouldCheckCRLF()&&this.endWithCR(t)){if(10===this.nodeCharCodeAt(n,r)){const e={line:o.start.line+1,column:0};o=new Gn(o.bufferIndex,e,o.end,this.getLineFeedCnt(o.bufferIndex,e,o.end),o.length-1),t+="\n"}}if(this.shouldCheckCRLF()&&this.startWithLF(t)){if(13===this.nodeCharCodeAt(n,r-1)){const o=this.positionInBuffer(n,r-1);this.deleteNodeTail(n,o),t="\r"+t,0===n.piece.length&&e.push(n)}else this.deleteNodeTail(n,s)}else this.deleteNodeTail(n,s);const l=this.createNewPieces(t);o.length>0&&this.rbInsertRight(n,o);let c=n;for(let t=0;t<l.length;t++)c=this.rbInsertRight(c,l[t]);this.deleteNodes(e)}else this.insertContentToNodeRight(t,n)}else{const e=this.createNewPieces(t);let n=this.rbInsertLeft(null,e[0]);for(let t=1;t<e.length;t++)n=this.rbInsertRight(n,e[t])}this.computeBufferMetadata()}delete(e,t){if(this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",t<=0||this.root===xn)return;const n=this.nodeAt(e),r=this.nodeAt(e+t),o=n.node,i=r.node;if(o===i){const i=this.positionInBuffer(o,n.remainder),a=this.positionInBuffer(o,r.remainder);if(n.nodeStartOffset===e){if(t===o.piece.length){const e=o.next();return Ln(this,o),this.validateCRLFWithPrevNode(e),void this.computeBufferMetadata()}return this.deleteNodeHead(o,a),this._searchCache.validate(e),this.validateCRLFWithPrevNode(o),void this.computeBufferMetadata()}return n.nodeStartOffset+o.piece.length===e+t?(this.deleteNodeTail(o,i),this.validateCRLFWithNextNode(o),void this.computeBufferMetadata()):(this.shrinkNode(o,i,a),void this.computeBufferMetadata())}const a=[],s=this.positionInBuffer(o,n.remainder);this.deleteNodeTail(o,s),this._searchCache.validate(e),0===o.piece.length&&a.push(o);const l=this.positionInBuffer(i,r.remainder);this.deleteNodeHead(i,l),0===i.piece.length&&a.push(i);for(let d=o.next();d!==xn&&d!==i;d=d.next())a.push(d);const c=0===o.piece.length?o.prev():o;this.deleteNodes(a),this.validateCRLFWithNextNode(c),this.computeBufferMetadata()}insertContentToNodeLeft(e,t){const n=[];if(this.shouldCheckCRLF()&&this.endWithCR(e)&&this.startWithLF(t)){const r=t.piece,o={line:r.start.line+1,column:0},i=new Gn(r.bufferIndex,o,r.end,this.getLineFeedCnt(r.bufferIndex,o,r.end),r.length-1);t.piece=i,e+="\n",Pn(this,t,-1,-1),0===t.piece.length&&n.push(t)}const r=this.createNewPieces(e);let o=this.rbInsertLeft(t,r[r.length-1]);for(let i=r.length-2;i>=0;i--)o=this.rbInsertLeft(o,r[i]);this.validateCRLFWithPrevNode(o),this.deleteNodes(n)}insertContentToNodeRight(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+="\n");const n=this.createNewPieces(e),r=this.rbInsertRight(t,n[0]);let o=r;for(let i=1;i<n.length;i++)o=this.rbInsertRight(o,n[i]);this.validateCRLFWithPrevNode(r)}positionInBuffer(e,t,n){const r=e.piece,o=e.piece.bufferIndex,i=this._buffers[o].lineStarts,a=i[r.start.line]+r.start.column+t;let s=r.start.line,l=r.end.line,c=0,d=0,u=0;for(;s<=l&&(c=s+(l-s)/2|0,u=i[c],c!==l);)if(d=i[c+1],a<u)l=c-1;else{if(!(a>=d))break;s=c+1}return n?(n.line=c,n.column=a-u,null):{line:c,column:a-u}}getLineFeedCnt(e,t,n){if(0===n.column)return n.line-t.line;const r=this._buffers[e].lineStarts;if(n.line===r.length-1)return n.line-t.line;const o=r[n.line+1],i=r[n.line]+n.column;if(o>i+1)return n.line-t.line;const a=i-1;return 13===this._buffers[e].buffer.charCodeAt(a)?n.line-t.line+1:n.line-t.line}offsetInBuffer(e,t){return this._buffers[e].lineStarts[t.line]+t.column}deleteNodes(e){for(let t=0;t<e.length;t++)Ln(this,e[t])}createNewPieces(e){if(e.length>Fn){const t=[];for(;e.length>Fn;){const n=e.charCodeAt(65534);let r;13===n||n>=55296&&n<=56319?(r=e.substring(0,65534),e=e.substring(65534)):(r=e.substring(0,Fn),e=e.substring(Fn));const o=Bn(r);t.push(new Gn(this._buffers.length,{line:0,column:0},{line:o.length-1,column:r.length-o[o.length-1]},o.length-1,r.length)),this._buffers.push(new jn(r,o))}const n=Bn(e);return t.push(new Gn(this._buffers.length,{line:0,column:0},{line:n.length-1,column:e.length-n[n.length-1]},n.length-1,e.length)),this._buffers.push(new jn(e,n)),t}let t=this._buffers[0].buffer.length;const n=Bn(e,!1);let r=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===t&&0!==t&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},r=this._lastChangeBufferPos;for(let e=0;e<n.length;e++)n[e]+=t+1;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(n.slice(1)),this._buffers[0].buffer+="_"+e,t+=1}else{if(0!==t)for(let e=0;e<n.length;e++)n[e]+=t;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(n.slice(1)),this._buffers[0].buffer+=e}const o=this._buffers[0].buffer.length,i=this._buffers[0].lineStarts.length-1,a={line:i,column:o-this._buffers[0].lineStarts[i]},s=new Gn(0,r,a,this.getLineFeedCnt(0,r,a),o-t);return this._lastChangeBufferPos=a,[s]}getLineRawContent(e,t=0){let n=this.root,r="";const o=this._searchCache.get2(e);if(o){n=o.node;const i=this.getAccumulatedValue(n,e-o.nodeStartLineNumber-1),a=this._buffers[n.piece.bufferIndex].buffer,s=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);if(o.nodeStartLineNumber+n.piece.lineFeedCnt!==e){const r=this.getAccumulatedValue(n,e-o.nodeStartLineNumber);return a.substring(s+i,s+r-t)}r=a.substring(s+i,s+n.piece.length)}else{let o=0;const i=e;for(;n!==xn;)if(n.left!==xn&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){const r=this.getAccumulatedValue(n,e-n.lf_left-2),a=this.getAccumulatedValue(n,e-n.lf_left-1),s=this._buffers[n.piece.bufferIndex].buffer,l=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return o+=n.size_left,this._searchCache.set({node:n,nodeStartOffset:o,nodeStartLineNumber:i-(e-1-n.lf_left)}),s.substring(l+r,l+a-t)}if(n.lf_left+n.piece.lineFeedCnt===e-1){const t=this.getAccumulatedValue(n,e-n.lf_left-2),o=this._buffers[n.piece.bufferIndex].buffer,i=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);r=o.substring(i+t,i+n.piece.length);break}e-=n.lf_left+n.piece.lineFeedCnt,o+=n.size_left+n.piece.length,n=n.right}}for(n=n.next();n!==xn;){const e=this._buffers[n.piece.bufferIndex].buffer;if(n.piece.lineFeedCnt>0){const o=this.getAccumulatedValue(n,0),i=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return r+=e.substring(i,i+o-t),r}{const t=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);r+=e.substr(t,n.piece.length)}n=n.next()}return r}computeBufferMetadata(){let e=this.root,t=1,n=0;for(;e!==xn;)t+=e.lf_left+e.piece.lineFeedCnt,n+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=n,this._searchCache.validate(this._length)}getIndexOf(e,t){const n=e.piece,r=this.positionInBuffer(e,t),o=r.line-n.start.line;if(this.offsetInBuffer(n.bufferIndex,n.end)-this.offsetInBuffer(n.bufferIndex,n.start)===t){const t=this.getLineFeedCnt(e.piece.bufferIndex,n.start,r);if(t!==o)return{index:t,remainder:0}}return{index:o,remainder:r.column}}getAccumulatedValue(e,t){if(t<0)return 0;const n=e.piece,r=this._buffers[n.bufferIndex].lineStarts,o=n.start.line+t+1;return o>n.end.line?r[n.end.line]+n.end.column-r[n.start.line]-n.start.column:r[o]-r[n.start.line]-n.start.column}deleteNodeTail(e,t){const n=e.piece,r=n.lineFeedCnt,o=this.offsetInBuffer(n.bufferIndex,n.end),i=t,a=this.offsetInBuffer(n.bufferIndex,i),s=this.getLineFeedCnt(n.bufferIndex,n.start,i),l=s-r,c=a-o,d=n.length+c;e.piece=new Gn(n.bufferIndex,n.start,i,s,d),Pn(this,e,c,l)}deleteNodeHead(e,t){const n=e.piece,r=n.lineFeedCnt,o=this.offsetInBuffer(n.bufferIndex,n.start),i=t,a=this.getLineFeedCnt(n.bufferIndex,i,n.end),s=a-r,l=o-this.offsetInBuffer(n.bufferIndex,i),c=n.length+l;e.piece=new Gn(n.bufferIndex,i,n.end,a,c),Pn(this,e,l,s)}shrinkNode(e,t,n){const r=e.piece,o=r.start,i=r.end,a=r.length,s=r.lineFeedCnt,l=t,c=this.getLineFeedCnt(r.bufferIndex,r.start,l),d=this.offsetInBuffer(r.bufferIndex,t)-this.offsetInBuffer(r.bufferIndex,o);e.piece=new Gn(r.bufferIndex,r.start,l,c,d),Pn(this,e,d-a,c-s);const u=new Gn(r.bufferIndex,n,i,this.getLineFeedCnt(r.bufferIndex,n,i),this.offsetInBuffer(r.bufferIndex,i)-this.offsetInBuffer(r.bufferIndex,n)),p=this.rbInsertRight(e,u);this.validateCRLFWithPrevNode(p)}appendToNode(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+="\n");const n=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),r=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;const o=Bn(t,!1);for(let u=0;u<o.length;u++)o[u]+=r;if(n){const e=this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-2];this._buffers[0].lineStarts.pop(),this._lastChangeBufferPos={line:this._lastChangeBufferPos.line-1,column:r-e}}this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(o.slice(1));const i=this._buffers[0].lineStarts.length-1,a={line:i,column:this._buffers[0].buffer.length-this._buffers[0].lineStarts[i]},s=e.piece.length+t.length,l=e.piece.lineFeedCnt,c=this.getLineFeedCnt(0,e.piece.start,a),d=c-l;e.piece=new Gn(e.piece.bufferIndex,e.piece.start,a,c,s),this._lastChangeBufferPos=a,Pn(this,e,t.length,d)}nodeAt(e){let t=this.root;const n=this._searchCache.get(e);if(n)return{node:n.node,nodeStartOffset:n.nodeStartOffset,remainder:e-n.nodeStartOffset};let r=0;for(;t!==xn;)if(t.size_left>e)t=t.left;else{if(t.size_left+t.piece.length>=e){r+=t.size_left;const n={node:t,remainder:e-t.size_left,nodeStartOffset:r};return this._searchCache.set(n),n}e-=t.size_left+t.piece.length,r+=t.size_left+t.piece.length,t=t.right}return null}nodeAt2(e,t){let n=this.root,r=0;for(;n!==xn;)if(n.left!==xn&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){const o=this.getAccumulatedValue(n,e-n.lf_left-2),i=this.getAccumulatedValue(n,e-n.lf_left-1);return r+=n.size_left,{node:n,remainder:Math.min(o+t-1,i),nodeStartOffset:r}}if(n.lf_left+n.piece.lineFeedCnt===e-1){const o=this.getAccumulatedValue(n,e-n.lf_left-2);if(o+t-1<=n.piece.length)return{node:n,remainder:o+t-1,nodeStartOffset:r};t-=n.piece.length-o;break}e-=n.lf_left+n.piece.lineFeedCnt,r+=n.size_left+n.piece.length,n=n.right}for(n=n.next();n!==xn;){if(n.piece.lineFeedCnt>0){const e=this.getAccumulatedValue(n,0),r=this.offsetOfNode(n);return{node:n,remainder:Math.min(t-1,e),nodeStartOffset:r}}if(n.piece.length>=t-1){return{node:n,remainder:t-1,nodeStartOffset:this.offsetOfNode(n)}}t-=n.piece.length,n=n.next()}return null}nodeCharCodeAt(e,t){if(e.piece.lineFeedCnt<1)return-1;const n=this._buffers[e.piece.bufferIndex],r=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return n.buffer.charCodeAt(r)}offsetOfNode(e){if(!e)return 0;let t=e.size_left;for(;e!==this.root;)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t}shouldCheckCRLF(){return!(this._EOLNormalized&&"\n"===this._EOL)}startWithLF(e){if("string"===typeof e)return 10===e.charCodeAt(0);if(e===xn||0===e.piece.lineFeedCnt)return!1;const t=e.piece,n=this._buffers[t.bufferIndex].lineStarts,r=t.start.line,o=n[r]+t.start.column;if(r===n.length-1)return!1;return!(n[r+1]>o+1)&&10===this._buffers[t.bufferIndex].buffer.charCodeAt(o)}endWithCR(e){return"string"===typeof e?13===e.charCodeAt(e.length-1):e!==xn&&0!==e.piece.lineFeedCnt&&13===this.nodeCharCodeAt(e,e.piece.length-1)}validateCRLFWithPrevNode(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){const t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}}validateCRLFWithNextNode(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}}fixCRLF(e,t){const n=[],r=this._buffers[e.piece.bufferIndex].lineStarts;let o;o=0===e.piece.end.column?{line:e.piece.end.line-1,column:r[e.piece.end.line]-r[e.piece.end.line-1]-1}:{line:e.piece.end.line,column:e.piece.end.column-1};const i=e.piece.length-1,a=e.piece.lineFeedCnt-1;e.piece=new Gn(e.piece.bufferIndex,e.piece.start,o,a,i),Pn(this,e,-1,-1),0===e.piece.length&&n.push(e);const s={line:t.piece.start.line+1,column:0},l=t.piece.length-1,c=this.getLineFeedCnt(t.piece.bufferIndex,s,t.piece.end);t.piece=new Gn(t.piece.bufferIndex,s,t.piece.end,c,l),Pn(this,t,-1,-1),0===t.piece.length&&n.push(t);const d=this.createNewPieces("\r\n");this.rbInsertRight(e,d[0]);for(let u=0;u<n.length;u++)Ln(this,n[u])}adjustCarriageReturnFromNext(e,t){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const n=t.next();if(this.startWithLF(n)){if(e+="\n",1===n.piece.length)Ln(this,n);else{const e=n.piece,t={line:e.start.line+1,column:0},r=e.length-1,o=this.getLineFeedCnt(e.bufferIndex,t,e.end);n.piece=new Gn(e.bufferIndex,t,e.end,o,r),Pn(this,n,-1,-1)}return!0}}return!1}iterate(e,t){if(e===xn)return t(xn);const n=this.iterate(e.left,t);return n?t(e)&&this.iterate(e.right,t):n}getNodeContent(e){if(e===xn)return"";const t=this._buffers[e.piece.bufferIndex],n=e.piece,r=this.offsetInBuffer(n.bufferIndex,n.start),o=this.offsetInBuffer(n.bufferIndex,n.end);return t.buffer.substring(r,o)}getPieceContent(e){const t=this._buffers[e.bufferIndex],n=this.offsetInBuffer(e.bufferIndex,e.start),r=this.offsetInBuffer(e.bufferIndex,e.end);return t.buffer.substring(n,r)}rbInsertRight(e,t){const n=new Tn(t,1);n.left=xn,n.right=xn,n.parent=xn,n.size_left=0,n.lf_left=0;if(this.root===xn)this.root=n,n.color=0;else if(e.right===xn)e.right=n,n.parent=e;else{const t=An(e.right);t.left=n,n.parent=t}return kn(this,n),n}rbInsertLeft(e,t){const n=new Tn(t,1);if(n.left=xn,n.right=xn,n.parent=xn,n.size_left=0,n.lf_left=0,this.root===xn)this.root=n,n.color=0;else if(e.left===xn)e.left=n,n.parent=e;else{const t=In(e.left);t.right=n,n.parent=t}return kn(this,n),n}}class Kn extends o.jG{constructor(e,t,n,o,i,a,s){super(),this._onDidChangeContent=this._register(new r.vl),this._BOM=t,this._mightContainNonBasicASCII=!a,this._mightContainRTL=o,this._mightContainUnusualLineTerminators=i,this._pieceTree=new Hn(e,n,s)}mightContainRTL(){return this._mightContainRTL}mightContainUnusualLineTerminators(){return this._mightContainUnusualLineTerminators}resetMightContainUnusualLineTerminators(){this._mightContainUnusualLineTerminators=!1}mightContainNonBasicASCII(){return this._mightContainNonBasicASCII}getBOM(){return this._BOM}getEOL(){return this._pieceTree.getEOL()}createSnapshot(e){return this._pieceTree.createSnapshot(e?this._BOM:"")}getOffsetAt(e,t){return this._pieceTree.getOffsetAt(e,t)}getPositionAt(e){return this._pieceTree.getPositionAt(e)}getRangeAt(e,t){const n=e+t,r=this.getPositionAt(e),o=this.getPositionAt(n);return new _.Q(r.lineNumber,r.column,o.lineNumber,o.column)}getValueInRange(e,t=0){if(e.isEmpty())return"";const n=this._getEndOfLine(t);return this._pieceTree.getValueInRange(e,n)}getValueLengthInRange(e,t=0){if(e.isEmpty())return 0;if(e.startLineNumber===e.endLineNumber)return e.endColumn-e.startColumn;const n=this.getOffsetAt(e.startLineNumber,e.startColumn),r=this.getOffsetAt(e.endLineNumber,e.endColumn);let o=0;const i=this._getEndOfLine(t),a=this.getEOL();if(i.length!==a.length){o=(i.length-a.length)*(e.endLineNumber-e.startLineNumber)}return r-n+o}getCharacterCountInRange(e,t=0){if(this._mightContainNonBasicASCII){let n=0;const r=e.startLineNumber,o=e.endLineNumber;for(let t=r;t<=o;t++){const i=this.getLineContent(t),a=t===r?e.startColumn-1:0,s=t===o?e.endColumn-1:i.length;for(let e=a;e<s;e++)c.pc(i.charCodeAt(e))?(n+=1,e+=1):n+=1}return n+=this._getEndOfLine(t).length*(o-r),n}return this.getValueLengthInRange(e,t)}getLength(){return this._pieceTree.getLength()}getLineCount(){return this._pieceTree.getLineCount()}getLinesContent(){return this._pieceTree.getLinesContent()}getLineContent(e){return this._pieceTree.getLineContent(e)}getLineCharCode(e,t){return this._pieceTree.getLineCharCode(e,t)}getLineLength(e){return this._pieceTree.getLineLength(e)}getLineFirstNonWhitespaceColumn(e){const t=c.HG(this.getLineContent(e));return-1===t?0:t+1}getLineLastNonWhitespaceColumn(e){const t=c.lT(this.getLineContent(e));return-1===t?0:t+2}_getEndOfLine(e){switch(e){case 1:return"\n";case 2:return"\r\n";case 0:return this.getEOL();default:throw new Error("Unknown EOL preference")}}setEOL(e){this._pieceTree.setEOL(e)}applyEdits(e,t,n){let r=this._mightContainRTL,o=this._mightContainUnusualLineTerminators,i=this._mightContainNonBasicASCII,a=!0,s=[];for(let h=0;h<e.length;h++){const t=e[h];a&&t._isTracked&&(a=!1);const n=t.range;if(t.text){let e=!0;i||(e=!c.aC(t.text),i=e),!r&&e&&(r=c.E_(t.text)),!o&&e&&(o=c.$X(t.text))}let l="",d=0,p=0,f=0;if(t.text){let e;[d,p,f,e]=(0,u.W)(t.text);const n=this.getEOL();l=0===e||e===("\r\n"===n?2:1)?t.text:t.text.replace(/\r\n|\r|\n/g,n)}s[h]={sortIndex:h,identifier:t.identifier||null,range:n,rangeOffset:this.getOffsetAt(n.startLineNumber,n.startColumn),rangeLength:this.getValueLengthInRange(n),text:l,eolCount:d,firstLineLength:p,lastLineLength:f,forceMoveMarkers:Boolean(t.forceMoveMarkers),isAutoWhitespaceEdit:t.isAutoWhitespaceEdit||!1}}s.sort(Kn._sortOpsAscending);let l=!1;for(let c=0,u=s.length-1;c<u;c++){const e=s[c].range.getEndPosition(),t=s[c+1].range.getStartPosition();if(t.isBeforeOrEqual(e)){if(t.isBefore(e))throw new Error("Overlapping ranges are not allowed!");l=!0}}a&&(s=this._reduceOperations(s));const d=n||t?Kn._getInverseEditRanges(s):[],p=[];if(t)for(let u=0;u<s.length;u++){const e=s[u],t=d[u];if(e.isAutoWhitespaceEdit&&e.range.isEmpty())for(let n=t.startLineNumber;n<=t.endLineNumber;n++){let r="";n===t.startLineNumber&&(r=this.getLineContent(e.range.startLineNumber),-1!==c.HG(r))||p.push({lineNumber:n,oldContent:r})}}let f=null;if(n){let e=0;f=[];for(let t=0;t<s.length;t++){const n=s[t],r=d[t],o=this.getValueInRange(n.range),i=n.rangeOffset+e;e+=n.text.length-o.length,f[t]={sortIndex:n.sortIndex,identifier:n.identifier,range:r,text:o,textChange:new Lt(n.rangeOffset,o,i,n.text)}}l||f.sort(((e,t)=>e.sortIndex-t.sortIndex))}this._mightContainRTL=r,this._mightContainUnusualLineTerminators=o,this._mightContainNonBasicASCII=i;const m=this._doApplyEdits(s);let _=null;if(t&&p.length>0){p.sort(((e,t)=>t.lineNumber-e.lineNumber)),_=[];for(let e=0,t=p.length;e<t;e++){const t=p[e].lineNumber;if(e>0&&p[e-1].lineNumber===t)continue;const n=p[e].oldContent,r=this.getLineContent(t);0!==r.length&&r!==n&&-1===c.HG(r)&&_.push(t)}}return this._onDidChangeContent.fire(),new _e.F4(f,m,_)}_reduceOperations(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]}_toSingleEditOperation(e){let t=!1;const n=e[0].range,r=e[e.length-1].range,o=new _.Q(n.startLineNumber,n.startColumn,r.endLineNumber,r.endColumn);let i=n.startLineNumber,a=n.startColumn;const s=[];for(let u=0,f=e.length;u<f;u++){const n=e[u],r=n.range;t=t||n.forceMoveMarkers,s.push(this.getValueInRange(new _.Q(i,a,r.startLineNumber,r.startColumn))),n.text.length>0&&s.push(n.text),i=r.endLineNumber,a=r.endColumn}const l=s.join(""),[c,d,p]=(0,u.W)(l);return{sortIndex:0,identifier:e[0].identifier,range:o,rangeOffset:this.getOffsetAt(o.startLineNumber,o.startColumn),rangeLength:this.getValueLengthInRange(o,0),text:l,eolCount:c,firstLineLength:d,lastLineLength:p,forceMoveMarkers:t,isAutoWhitespaceEdit:!1}}_doApplyEdits(e){e.sort(Kn._sortOpsDescending);const t=[];for(let n=0;n<e.length;n++){const r=e[n],o=r.range.startLineNumber,i=r.range.startColumn,a=r.range.endLineNumber,s=r.range.endColumn;if(o===a&&i===s&&0===r.text.length)continue;r.text?(this._pieceTree.delete(r.rangeOffset,r.rangeLength),this._pieceTree.insert(r.rangeOffset,r.text,!0)):this._pieceTree.delete(r.rangeOffset,r.rangeLength);const l=new _.Q(o,i,a,s);t.push({range:l,rangeLength:r.rangeLength,text:r.text,rangeOffset:r.rangeOffset,forceMoveMarkers:r.forceMoveMarkers})}return t}findMatchesLineByLine(e,t,n,r){return this._pieceTree.findMatchesLineByLine(e,t,n,r)}static _getInverseEditRanges(e){const t=[];let n=0,r=0,o=null;for(let i=0,a=e.length;i<a;i++){const a=e[i];let s,l,c;if(o?o.range.endLineNumber===a.range.startLineNumber?(s=n,l=r+(a.range.startColumn-o.range.endColumn)):(s=n+(a.range.startLineNumber-o.range.endLineNumber),l=a.range.startColumn):(s=a.range.startLineNumber,l=a.range.startColumn),a.text.length>0){const e=a.eolCount+1;c=1===e?new _.Q(s,l,s,l+a.firstLineLength):new _.Q(s,l,s+e-1,a.lastLineLength+1)}else c=new _.Q(s,l,s,l);n=c.endLineNumber,r=c.endColumn,t.push(c),o=a}return t}static _sortOpsAscending(e,t){const n=_.Q.compareRangesUsingEnds(e.range,t.range);return 0===n?e.sortIndex-t.sortIndex:n}static _sortOpsDescending(e,t){const n=_.Q.compareRangesUsingEnds(e.range,t.range);return 0===n?t.sortIndex-e.sortIndex:-n}}class qn{constructor(e,t,n,r,o,i,a,s,l){this._chunks=e,this._bom=t,this._cr=n,this._lf=r,this._crlf=o,this._containsRTL=i,this._containsUnusualLineTerminators=a,this._isBasicASCII=s,this._normalizeEOL=l}_getEOL(e){const t=this._cr+this._lf+this._crlf,n=this._cr+this._crlf;return 0===t?1===e?"\n":"\r\n":n>t/2?"\r\n":"\n"}create(e){const t=this._getEOL(e),n=this._chunks;if(this._normalizeEOL&&("\r\n"===t&&(this._cr>0||this._lf>0)||"\n"===t&&(this._cr>0||this._crlf>0)))for(let o=0,i=n.length;o<i;o++){const e=n[o].buffer.replace(/\r\n|\r|\n/g,t),r=Bn(e);n[o]=new jn(e,r)}const r=new Kn(n,this._bom,t,this._containsRTL,this._containsUnusualLineTerminators,this._isBasicASCII,this._normalizeEOL);return{textBuffer:r,disposable:r}}}class Jn{constructor(){this.chunks=[],this.BOM="",this._hasPreviousChar=!1,this._previousChar=0,this._tmpLineStarts=[],this.cr=0,this.lf=0,this.crlf=0,this.containsRTL=!1,this.containsUnusualLineTerminators=!1,this.isBasicASCII=!0}acceptChunk(e){if(0===e.length)return;0===this.chunks.length&&c.LU(e)&&(this.BOM=c.r_,e=e.substr(1));const t=e.charCodeAt(e.length-1);13===t||t>=55296&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0,this._previousChar=t):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1,this._previousChar=t)}_acceptChunk1(e,t){(t||0!==e.length)&&(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))}_acceptChunk2(e){const t=function(e,t){e.length=0,e[0]=0;let n=1,r=0,o=0,i=0,a=!0;for(let l=0,c=t.length;l<c;l++){const s=t.charCodeAt(l);13===s?l+1<c&&10===t.charCodeAt(l+1)?(i++,e[n++]=l+2,l++):(r++,e[n++]=l+1):10===s?(o++,e[n++]=l+1):a&&9!==s&&(s<32||s>126)&&(a=!1)}const s=new zn(Wn(e),r,o,i,a);return e.length=0,s}(this._tmpLineStarts,e);this.chunks.push(new jn(e,t.lineStarts)),this.cr+=t.cr,this.lf+=t.lf,this.crlf+=t.crlf,t.isBasicASCII||(this.isBasicASCII=!1,this.containsRTL||(this.containsRTL=c.E_(e)),this.containsUnusualLineTerminators||(this.containsUnusualLineTerminators=c.$X(e)))}finish(e=!0){return this._finish(),new qn(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,e)}_finish(){if(0===this.chunks.length&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;const e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);const t=Bn(e.buffer);e.lineStarts=t,13===this._previousChar&&this.cr++}}}var Xn=n(6571),$n=n(2083),Yn=n(1940),Qn=n(8381),Zn=n(4444);const er=new class{clone(){return this}equals(e){return this===e}};class tr{constructor(e){this._default=e,this._store=[]}get(e){return e<this._store.length?this._store[e]:this._default}set(e,t){for(;e>=this._store.length;)this._store[this._store.length]=this._default;this._store[e]=t}replace(e,t,n){if(e>=this._store.length)return;if(0===t)return void this.insert(e,n);if(0===n)return void this.delete(e,t);const r=this._store.slice(0,e),o=this._store.slice(e+t),i=function(e,t){const n=[];for(let r=0;r<e;r++)n[r]=t;return n}(n,this._default);this._store=r.concat(i,o)}delete(e,t){0===t||e>=this._store.length||this._store.splice(e,t)}insert(e,t){if(0===t||e>=this._store.length)return;const n=[];for(let r=0;r<t;r++)n[r]=this._default;this._store=(0,a.nK)(this._store,e,n)}}class nr{get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._startLineNumber+this._tokens.length-1}constructor(e,t){this._startLineNumber=e,this._tokens=t}getLineTokens(e){return this._tokens[e-this._startLineNumber]}appendLineTokens(e){this._tokens.push(e)}}class rr{constructor(){this._tokens=[]}add(e,t){if(this._tokens.length>0){const n=this._tokens[this._tokens.length-1];if(n.endLineNumber+1===e)return void n.appendLineTokens(t)}this._tokens.push(new nr(e,[t]))}finalize(){return this._tokens}}class or{static{this.defaultTokenMetadata=33587200}static createEmpty(e,t){const n=or.defaultTokenMetadata,r=new Uint32Array(2);return r[0]=e.length,r[1]=n,new or(r,e,t)}static createFromTextAndMetadata(e,t){let n=0,r="";const o=new Array;for(const{text:i,metadata:a}of e)o.push(n+i.length,a),n+=i.length,r+=i;return new or(new Uint32Array(o),r,t)}constructor(e,t,n){this._lineTokensBrand=void 0,this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t,this.languageIdCodec=n}equals(e){return e instanceof or&&this.slicedEquals(e,0,this._tokensCount)}slicedEquals(e,t,n){if(this._text!==e._text)return!1;if(this._tokensCount!==e._tokensCount)return!1;const r=t<<1,o=r+(n<<1);for(let i=r;i<o;i++)if(this._tokens[i]!==e._tokens[i])return!1;return!0}getLineContent(){return this._text}getCount(){return this._tokensCount}getStartOffset(e){return e>0?this._tokens[e-1<<1]:0}getMetadata(e){return this._tokens[1+(e<<1)]}getLanguageId(e){const t=this._tokens[1+(e<<1)],n=Qe.x.getLanguageId(t);return this.languageIdCodec.decodeLanguageId(n)}getStandardTokenType(e){const t=this._tokens[1+(e<<1)];return Qe.x.getTokenType(t)}getForeground(e){const t=this._tokens[1+(e<<1)];return Qe.x.getForeground(t)}getClassName(e){const t=this._tokens[1+(e<<1)];return Qe.x.getClassNameFromMetadata(t)}getInlineStyle(e,t){const n=this._tokens[1+(e<<1)];return Qe.x.getInlineStyleFromMetadata(n,t)}getPresentation(e){const t=this._tokens[1+(e<<1)];return Qe.x.getPresentationFromMetadata(t)}getEndOffset(e){return this._tokens[e<<1]}findTokenIndexAtOffset(e){return or.findIndexInTokensArray(this._tokens,e)}inflate(){return this}sliceAndInflate(e,t,n){return new ir(this,e,t,n)}static convertToEndOffset(e,t){const n=(e.length>>>1)-1;for(let r=0;r<n;r++)e[r<<1]=e[r+1<<1];e[n<<1]=t}static findIndexInTokensArray(e,t){if(e.length<=2)return 0;let n=0,r=(e.length>>>1)-1;for(;n<r;){const o=n+Math.floor((r-n)/2),i=e[o<<1];if(i===t)return o+1;i<t?n=o+1:i>t&&(r=o)}return n}withInserted(e){if(0===e.length)return this;let t=0,n=0,r="";const o=new Array;let i=0;for(;;){const a=t<this._tokensCount?this._tokens[t<<1]:-1,s=n<e.length?e[n]:null;if(-1!==a&&(null===s||a<=s.offset)){r+=this._text.substring(i,a);const e=this._tokens[1+(t<<1)];o.push(r.length,e),t++,i=a}else{if(!s)break;if(s.offset>i){r+=this._text.substring(i,s.offset);const e=this._tokens[1+(t<<1)];o.push(r.length,e),i=s.offset}r+=s.text,o.push(r.length,s.tokenMetadata),n++}}return new or(new Uint32Array(o),r,this.languageIdCodec)}getTokenText(e){const t=this.getStartOffset(e),n=this.getEndOffset(e);return this._text.substring(t,n)}forEach(e){const t=this.getCount();for(let n=0;n<t;n++)e(n)}}class ir{constructor(e,t,n,r){this._source=e,this._startOffset=t,this._endOffset=n,this._deltaOffset=r,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this.languageIdCodec=e.languageIdCodec,this._tokensCount=0;for(let o=this._firstTokenIndex,i=e.getCount();o<i;o++){if(e.getStartOffset(o)>=n)break;this._tokensCount++}}getMetadata(e){return this._source.getMetadata(this._firstTokenIndex+e)}getLanguageId(e){return this._source.getLanguageId(this._firstTokenIndex+e)}getLineContent(){return this._source.getLineContent().substring(this._startOffset,this._endOffset)}equals(e){return e instanceof ir&&(this._startOffset===e._startOffset&&this._endOffset===e._endOffset&&this._deltaOffset===e._deltaOffset&&this._source.slicedEquals(e._source,this._firstTokenIndex,this._tokensCount))}getCount(){return this._tokensCount}getStandardTokenType(e){return this._source.getStandardTokenType(this._firstTokenIndex+e)}getForeground(e){return this._source.getForeground(this._firstTokenIndex+e)}getEndOffset(e){const t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset}getClassName(e){return this._source.getClassName(this._firstTokenIndex+e)}getInlineStyle(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)}getPresentation(e){return this._source.getPresentation(this._firstTokenIndex+e)}findTokenIndexAtOffset(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex}getTokenText(e){const t=this._firstTokenIndex+e,n=this._source.getStartOffset(t),r=this._source.getEndOffset(t);let o=this._source.getTokenText(t);return n<this._startOffset&&(o=o.substring(this._startOffset-n)),r>this._endOffset&&(o=o.substring(0,o.length-(r-this._endOffset))),o}forEach(e){for(let t=0;t<this.getCount();t++)e(t)}}class ar{constructor(e,t){this.tokenizationSupport=t,this.initialState=this.tokenizationSupport.getInitialState(),this.store=new lr(e)}getStartState(e){return this.store.getStartState(e,this.initialState)}getFirstInvalidLine(){return this.store.getFirstInvalidLine(this.initialState)}}class sr extends ar{constructor(e,t,n,r){super(e,t),this._textModel=n,this._languageIdCodec=r}updateTokensUntilLine(e,t){const n=this._textModel.getLanguageId();for(;;){const r=this.getFirstInvalidLine();if(!r||r.lineNumber>t)break;const o=this._textModel.getLineContent(r.lineNumber),i=ur(this._languageIdCodec,n,this.tokenizationSupport,o,!0,r.startState);e.add(r.lineNumber,i.tokens),this.store.setEndState(r.lineNumber,i.endState)}}getTokenTypeIfInsertingCharacter(e,t){const n=this.getStartState(e.lineNumber);if(!n)return 0;const r=this._textModel.getLanguageId(),o=this._textModel.getLineContent(e.lineNumber),i=o.substring(0,e.column-1)+t+o.substring(e.column-1),a=ur(this._languageIdCodec,r,this.tokenizationSupport,i,!0,n),s=new or(a.tokens,i,this._languageIdCodec);if(0===s.getCount())return 0;const l=s.findTokenIndexAtOffset(e.column-1);return s.getStandardTokenType(l)}tokenizeLineWithEdit(e,t,n){const r=e.lineNumber,o=e.column,i=this.getStartState(r);if(!i)return null;const a=this._textModel.getLineContent(r),s=a.substring(0,o-1)+n+a.substring(o-1+t),l=this._textModel.getLanguageIdAtPosition(r,0),c=ur(this._languageIdCodec,l,this.tokenizationSupport,s,!0,i);return new or(c.tokens,s,this._languageIdCodec)}hasAccurateTokensForLine(e){return e<this.store.getFirstInvalidEndStateLineNumberOrMax()}isCheapToTokenize(e){const t=this.store.getFirstInvalidEndStateLineNumberOrMax();return e<t||e===t&&this._textModel.getLineLength(e)<2048}tokenizeHeuristically(e,t,n){if(n<=this.store.getFirstInvalidEndStateLineNumberOrMax())return{heuristicTokens:!1};if(t<=this.store.getFirstInvalidEndStateLineNumberOrMax())return this.updateTokensUntilLine(e,n),{heuristicTokens:!1};let r=this.guessStartState(t);const o=this._textModel.getLanguageId();for(let i=t;i<=n;i++){const t=this._textModel.getLineContent(i),n=ur(this._languageIdCodec,o,this.tokenizationSupport,t,!0,r);e.add(i,n.tokens),r=n.endState}return{heuristicTokens:!0}}guessStartState(e){let t=this._textModel.getLineFirstNonWhitespaceColumn(e);const n=[];let r=null;for(let a=e-1;t>1&&a>=1;a--){const e=this._textModel.getLineFirstNonWhitespaceColumn(a);if(0!==e&&(e<t&&(n.push(this._textModel.getLineContent(a)),t=e,r=this.getStartState(a),r)))break}r||(r=this.tokenizationSupport.getInitialState()),n.reverse();const o=this._textModel.getLanguageId();let i=r;for(const a of n){i=ur(this._languageIdCodec,o,this.tokenizationSupport,a,!1,i).endState}return i}}class lr{constructor(e){this.lineCount=e,this._tokenizationStateStore=new cr,this._invalidEndStatesLineNumbers=new dr,this._invalidEndStatesLineNumbers.addRange(new Zn.L(1,e+1))}getEndState(e){return this._tokenizationStateStore.getEndState(e)}setEndState(e,t){if(!t)throw new l.D7("Cannot set null/undefined state");this._invalidEndStatesLineNumbers.delete(e);const n=this._tokenizationStateStore.setEndState(e,t);return n&&e<this.lineCount&&this._invalidEndStatesLineNumbers.addRange(new Zn.L(e+1,e+2)),n}acceptChange(e,t){this.lineCount+=t-e.length,this._tokenizationStateStore.acceptChange(e,t),this._invalidEndStatesLineNumbers.addRangeAndResize(new Zn.L(e.startLineNumber,e.endLineNumberExclusive),t)}acceptChanges(e){for(const t of e){const[e]=(0,u.W)(t.text);this.acceptChange(new Xn.M(t.range.startLineNumber,t.range.endLineNumber+1),e+1)}}invalidateEndStateRange(e){this._invalidEndStatesLineNumbers.addRange(new Zn.L(e.startLineNumber,e.endLineNumberExclusive))}getFirstInvalidEndStateLineNumber(){return this._invalidEndStatesLineNumbers.min}getFirstInvalidEndStateLineNumberOrMax(){return this.getFirstInvalidEndStateLineNumber()||Number.MAX_SAFE_INTEGER}allStatesValid(){return null===this._invalidEndStatesLineNumbers.min}getStartState(e,t){return 1===e?t:this.getEndState(e-1)}getFirstInvalidLine(e){const t=this.getFirstInvalidEndStateLineNumber();if(null===t)return null;const n=this.getStartState(t,e);if(!n)throw new l.D7("Start state must be defined");return{lineNumber:t,startState:n}}}class cr{constructor(){this._lineEndStates=new tr(null)}getEndState(e){return this._lineEndStates.get(e)}setEndState(e,t){const n=this._lineEndStates.get(e);return(!n||!n.equals(t))&&(this._lineEndStates.set(e,t),!0)}acceptChange(e,t){let n=e.length;t>0&&n>0&&(n--,t--),this._lineEndStates.replace(e.startLineNumber,n,t)}}class dr{constructor(){this._ranges=[]}get min(){return 0===this._ranges.length?null:this._ranges[0].start}delete(e){const t=this._ranges.findIndex((t=>t.contains(e)));if(-1!==t){const n=this._ranges[t];n.start===e?n.endExclusive===e+1?this._ranges.splice(t,1):this._ranges[t]=new Zn.L(e+1,n.endExclusive):n.endExclusive===e+1?this._ranges[t]=new Zn.L(n.start,e):this._ranges.splice(t,1,new Zn.L(n.start,e),new Zn.L(e+1,n.endExclusive))}}addRange(e){Zn.L.addRange(e,this._ranges)}addRangeAndResize(e,t){let n=0;for(;!(n>=this._ranges.length||e.start<=this._ranges[n].endExclusive);)n++;let r=n;for(;!(r>=this._ranges.length||e.endExclusive<this._ranges[r].start);)r++;const o=t-e.length;for(let i=r;i<this._ranges.length;i++)this._ranges[i]=this._ranges[i].delta(o);if(n===r){const r=new Zn.L(e.start,e.start+t);r.isEmpty||this._ranges.splice(n,0,r)}else{const t=Math.min(e.start,this._ranges[n].start),i=Math.max(e.endExclusive,this._ranges[r-1].endExclusive),a=new Zn.L(t,i+o);a.isEmpty?this._ranges.splice(n,r-n):this._ranges.splice(n,r-n,a)}}toString(){return this._ranges.map((e=>e.toString())).join(" + ")}}function ur(e,t,n,r,o,i){let a=null;if(n)try{a=n.tokenizeEncoded(r,o,i.clone())}catch(s){(0,l.dz)(s)}return a||(a=function(e,t){const n=new Uint32Array(2);return n[0]=0,n[1]=(32768|e|2<<24)>>>0,new $n.rY(n,null===t?er:t)}(e.encodeLanguageId(t),i)),or.convertToEndOffset(a.tokens,r.length),a}class pr{constructor(e,t){this._tokenizerWithStateStore=e,this._backgroundTokenStore=t,this._isDisposed=!1,this._isScheduled=!1}dispose(){this._isDisposed=!0}handleChanges(){this._beginBackgroundTokenization()}_beginBackgroundTokenization(){!this._isScheduled&&this._tokenizerWithStateStore._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&(this._isScheduled=!0,(0,Yn.$6)((e=>{this._isScheduled=!1,this._backgroundTokenizeWithDeadline(e)})))}_backgroundTokenizeWithDeadline(e){const t=Date.now()+e.timeRemaining(),n=()=>{!this._isDisposed&&this._tokenizerWithStateStore._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&(this._backgroundTokenizeForAtLeast1ms(),Date.now()<t?(0,i._p)(n):this._beginBackgroundTokenization())};n()}_backgroundTokenizeForAtLeast1ms(){const e=this._tokenizerWithStateStore._textModel.getLineCount(),t=new rr,n=Qn.W.create(!1);do{if(n.elapsed()>1)break;if(this._tokenizeOneInvalidLine(t)>=e)break}while(this._hasLinesToTokenize());this._backgroundTokenStore.setTokens(t.finalize()),this.checkFinished()}_hasLinesToTokenize(){return!!this._tokenizerWithStateStore&&!this._tokenizerWithStateStore.store.allStatesValid()}_tokenizeOneInvalidLine(e){const t=this._tokenizerWithStateStore?.getFirstInvalidLine();return t?(this._tokenizerWithStateStore.updateTokensUntilLine(e,t.lineNumber),t.lineNumber):this._tokenizerWithStateStore._textModel.getLineCount()+1}checkFinished(){this._isDisposed||this._tokenizerWithStateStore.store.allStatesValid()&&this._backgroundTokenStore.backgroundTokenizationFinished()}requestTokens(e,t){this._tokenizerWithStateStore.store.invalidateEndStateRange(new Xn.M(e,t))}}class fr{constructor(){this._onDidChangeVisibleRanges=new r.vl,this.onDidChangeVisibleRanges=this._onDidChangeVisibleRanges.event,this._views=new Set}attachView(){const e=new mr((t=>{this._onDidChangeVisibleRanges.fire({view:e,state:t})}));return this._views.add(e),e}detachView(e){this._views.delete(e),this._onDidChangeVisibleRanges.fire({view:e,state:void 0})}}class mr{constructor(e){this.handleStateChange=e}setVisibleLines(e,t){const n=e.map((e=>new Xn.M(e.startLineNumber,e.endLineNumber+1)));this.handleStateChange({visibleLineRanges:n,stabilized:t})}}class _r extends o.jG{get lineRanges(){return this._lineRanges}constructor(e){super(),this._refreshTokens=e,this.runner=this._register(new Yn.uC((()=>this.update()),50)),this._computedLineRanges=[],this._lineRanges=[]}update(){(0,a.aI)(this._computedLineRanges,this._lineRanges,((e,t)=>e.equals(t)))||(this._computedLineRanges=this._lineRanges,this._refreshTokens())}handleStateChange(e){this._lineRanges=e.visibleLineRanges,e.stabilized?(this.runner.cancel(),this.update()):this.runner.schedule()}}class hr extends o.jG{get backgroundTokenizationState(){return this._backgroundTokenizationState}constructor(e,t,n){super(),this._languageIdCodec=e,this._textModel=t,this.getLanguageId=n,this._backgroundTokenizationState=1,this._onDidChangeBackgroundTokenizationState=this._register(new r.vl),this.onDidChangeBackgroundTokenizationState=this._onDidChangeBackgroundTokenizationState.event,this._onDidChangeTokens=this._register(new r.vl),this.onDidChangeTokens=this._onDidChangeTokens.event}tokenizeIfCheap(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)}}class gr extends hr{constructor(e,t,n,r){super(t,n,r),this._treeSitterService=e,this._tokenizationSupport=null,this._initialize()}_initialize(){const e=this.getLanguageId();this._tokenizationSupport&&this._lastLanguageId===e||(this._lastLanguageId=e,this._tokenizationSupport=$n.OB.get(e))}getLineTokens(e){const t=this._textModel.getLineContent(e);if(this._tokenizationSupport){const n=this._tokenizationSupport.tokenizeEncoded(e,this._textModel);if(n)return new or(n,t,this._languageIdCodec)}return or.createEmpty(t,this._languageIdCodec)}resetTokenization(e=!0){e&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]}),this._initialize()}handleDidChangeAttached(){}handleDidChangeContent(e){e.isFlush&&this.resetTokenization(!1)}forceTokenization(e){}hasAccurateTokensForLine(e){return!0}isCheapToTokenize(e){return!0}getTokenTypeIfInsertingCharacter(e,t,n){return 0}tokenizeLineWithEdit(e,t,n){return null}get hasTokens(){return void 0!==this._treeSitterService.getParseResult(this._textModel)}}var yr=n(4432);const vr=new Uint32Array(0).buffer;class br{static deleteBeginning(e,t){return null===e||e===vr?e:br.delete(e,0,t)}static deleteEnding(e,t){if(null===e||e===vr)return e;const n=Er(e),r=n[n.length-2];return br.delete(e,t,r)}static delete(e,t,n){if(null===e||e===vr||t===n)return e;const r=Er(e),o=r.length>>>1;if(0===t&&r[r.length-2]===n)return vr;const i=or.findIndexInTokensArray(r,t),a=i>0?r[i-1<<1]:0;if(n<r[i<<1]){const a=n-t;for(let e=i;e<o;e++)r[e<<1]-=a;return e}let s,l;a!==t?(r[i<<1]=t,s=i+1<<1,l=t):(s=i<<1,l=a);const c=n-t;for(let u=i+1;u<o;u++){const e=r[u<<1]-c;e>l&&(r[s++]=e,r[s++]=r[1+(u<<1)],l=e)}if(s===r.length)return e;const d=new Uint32Array(s);return d.set(r.subarray(0,s),0),d.buffer}static append(e,t){if(t===vr)return e;if(e===vr)return t;if(null===e)return e;if(null===t)return null;const n=Er(e),r=Er(t),o=r.length>>>1,i=new Uint32Array(n.length+r.length);i.set(n,0);let a=n.length;const s=n[n.length-2];for(let l=0;l<o;l++)i[a++]=r[l<<1]+s,i[a++]=r[1+(l<<1)];return i.buffer}static insert(e,t,n){if(null===e||e===vr)return e;const r=Er(e),o=r.length>>>1;let i=or.findIndexInTokensArray(r,t);if(i>0){r[i-1<<1]===t&&i--}for(let a=i;a<o;a++)r[a<<1]+=n;return e}}function Er(e){return e instanceof Uint32Array?e:new Uint32Array(e)}class Sr{constructor(e){this._lineTokens=[],this._len=0,this._languageIdCodec=e}flush(){this._lineTokens=[],this._len=0}get hasTokens(){return this._lineTokens.length>0}getTokens(e,t,n){let r=null;if(t<this._len&&(r=this._lineTokens[t]),null!==r&&r!==vr)return new or(Er(r),n,this._languageIdCodec);const o=new Uint32Array(2);return o[0]=n.length,o[1]=Tr(this._languageIdCodec.encodeLanguageId(e)),new or(o,n,this._languageIdCodec)}static _massageTokens(e,t,n){const r=n?Er(n):null;if(0===t){let t=!1;if(r&&r.length>1&&(t=Qe.x.getLanguageId(r[1])!==e),!t)return vr}if(!r||0===r.length){const n=new Uint32Array(2);return n[0]=t,n[1]=Tr(e),n.buffer}return r[r.length-2]=t,0===r.byteOffset&&r.byteLength===r.buffer.byteLength?r.buffer:r}_ensureLine(e){for(;e>=this._len;)this._lineTokens[this._len]=null,this._len++}_deleteLines(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._lineTokens.splice(e,t),this._len-=t)}_insertLines(e,t){if(0===t)return;const n=[];for(let r=0;r<t;r++)n[r]=null;this._lineTokens=a.nK(this._lineTokens,e,n),this._len+=t}setTokens(e,t,n,r,o){const i=Sr._massageTokens(this._languageIdCodec.encodeLanguageId(e),n,r);this._ensureLine(t);const a=this._lineTokens[t];return this._lineTokens[t]=i,!!o&&!Sr._equals(a,i)}static _equals(e,t){if(!e||!t)return!e&&!t;const n=Er(e),r=Er(t);if(n.length!==r.length)return!1;for(let o=0,i=n.length;o<i;o++)if(n[o]!==r[o])return!1;return!0}acceptEdit(e,t,n){this._acceptDeleteRange(e),this._acceptInsertText(new m.y(e.startLineNumber,e.startColumn),t,n)}_acceptDeleteRange(e){const t=e.startLineNumber-1;if(t>=this._len)return;if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;return void(this._lineTokens[t]=br.delete(this._lineTokens[t],e.startColumn-1,e.endColumn-1))}this._lineTokens[t]=br.deleteEnding(this._lineTokens[t],e.startColumn-1);const n=e.endLineNumber-1;let r=null;n<this._len&&(r=br.deleteBeginning(this._lineTokens[n],e.endColumn-1)),this._lineTokens[t]=br.append(this._lineTokens[t],r),this._deleteLines(e.startLineNumber,e.endLineNumber-e.startLineNumber)}_acceptInsertText(e,t,n){if(0===t&&0===n)return;const r=e.lineNumber-1;r>=this._len||(0!==t?(this._lineTokens[r]=br.deleteEnding(this._lineTokens[r],e.column-1),this._lineTokens[r]=br.insert(this._lineTokens[r],e.column-1,n),this._insertLines(e.lineNumber,t)):this._lineTokens[r]=br.insert(this._lineTokens[r],e.column-1,n))}setMultilineTokens(e,t){if(0===e.length)return{changes:[]};const n=[];for(let r=0,o=e.length;r<o;r++){const o=e[r];let i=0,a=0,s=!1;for(let e=o.startLineNumber;e<=o.endLineNumber;e++)if(s)this.setTokens(t.getLanguageId(),e-1,t.getLineLength(e),o.getLineTokens(e),!1),a=e;else{this.setTokens(t.getLanguageId(),e-1,t.getLineLength(e),o.getLineTokens(e),!0)&&(s=!0,i=e,a=e)}s&&n.push({fromLineNumber:i,toLineNumber:a})}return{changes:n}}}function Tr(e){return(32768|e|2<<24|1024)>>>0}class xr{constructor(e){this._pieces=[],this._isComplete=!1,this._languageIdCodec=e}flush(){this._pieces=[],this._isComplete=!1}isEmpty(){return 0===this._pieces.length}set(e,t){this._pieces=e||[],this._isComplete=t}setPartial(e,t){let n=e;if(t.length>0){const r=t[0].getRange(),o=t[t.length-1].getRange();if(!r||!o)return e;n=e.plusRange(r).plusRange(o)}let r=null;for(let o=0,i=this._pieces.length;o<i;o++){const e=this._pieces[o];if(e.endLineNumber<n.startLineNumber)continue;if(e.startLineNumber>n.endLineNumber){r=r||{index:o};break}if(e.removeTokens(n),e.isEmpty()){this._pieces.splice(o,1),o--,i--;continue}if(e.endLineNumber<n.startLineNumber)continue;if(e.startLineNumber>n.endLineNumber){r=r||{index:o};continue}const[t,a]=e.split(n);t.isEmpty()?r=r||{index:o}:a.isEmpty()||(this._pieces.splice(o,1,t,a),o++,i++,r=r||{index:o})}return r=r||{index:this._pieces.length},t.length>0&&(this._pieces=a.nK(this._pieces,r.index,t)),n}isComplete(){return this._isComplete}addSparseTokens(e,t){if(0===t.getLineContent().length)return t;const n=this._pieces;if(0===n.length)return t;const r=n[xr._findFirstPieceWithLine(n,e)].getLineTokens(e);if(!r)return t;const o=t.getCount(),i=r.getCount();let a=0;const s=[];let l=0,c=0;const d=(e,t)=>{e!==c&&(c=e,s[l++]=e,s[l++]=t)};for(let u=0;u<i;u++){const e=r.getStartCharacter(u),n=r.getEndCharacter(u),i=r.getMetadata(u),s=((1&i?2048:0)|(2&i?4096:0)|(4&i?8192:0)|(8&i?16384:0)|(16&i?16744448:0)|(32&i?4278190080:0))>>>0,l=~s>>>0;for(;a<o&&t.getEndOffset(a)<=e;)d(t.getEndOffset(a),t.getMetadata(a)),a++;for(a<o&&t.getStartOffset(a)<e&&d(e,t.getMetadata(a));a<o&&t.getEndOffset(a)<n;)d(t.getEndOffset(a),t.getMetadata(a)&l|i&s),a++;if(a<o)d(n,t.getMetadata(a)&l|i&s),t.getEndOffset(a)===n&&a++;else{const e=Math.min(Math.max(0,a-1),o-1);d(n,t.getMetadata(e)&l|i&s)}}for(;a<o;)d(t.getEndOffset(a),t.getMetadata(a)),a++;return new or(new Uint32Array(s),t.getLineContent(),this._languageIdCodec)}static _findFirstPieceWithLine(e,t){let n=0,r=e.length-1;for(;n<r;){let o=n+Math.floor((r-n)/2);if(e[o].endLineNumber<t)n=o+1;else{if(!(e[o].startLineNumber>t)){for(;o>n&&e[o-1].startLineNumber<=t&&t<=e[o-1].endLineNumber;)o--;return o}r=o-1}}return n}acceptEdit(e,t,n,r,o){for(const i of this._pieces)i.acceptEdit(e,t,n,r,o)}}var Ar,Ir=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Rr=function(e,t){return function(n,r){t(n,r,e)}};let Cr=Ar=class extends Ut{constructor(e,t,n,i,a,s,l){super(),this._textModel=e,this._bracketPairsTextModelPart=t,this._languageId=n,this._attachedViews=i,this._languageService=a,this._languageConfigurationService=s,this._treeSitterService=l,this._semanticTokens=new xr(this._languageService.languageIdCodec),this._onDidChangeLanguage=this._register(new r.vl),this.onDidChangeLanguage=this._onDidChangeLanguage.event,this._onDidChangeLanguageConfiguration=this._register(new r.vl),this.onDidChangeLanguageConfiguration=this._onDidChangeLanguageConfiguration.event,this._onDidChangeTokens=this._register(new r.vl),this.onDidChangeTokens=this._onDidChangeTokens.event,this._tokensDisposables=this._register(new o.Cm),this._register(this._languageConfigurationService.onDidChange((e=>{e.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})}))),this._register(r.Jh.filter($n.OB.onDidChange,(e=>e.changedLanguages.includes(this._languageId)))((()=>{this.createPreferredTokenProvider()}))),this.createPreferredTokenProvider()}createGrammarTokens(){return this._register(new Dr(this._languageService.languageIdCodec,this._textModel,(()=>this._languageId),this._attachedViews))}createTreeSitterTokens(){return this._register(new gr(this._treeSitterService,this._languageService.languageIdCodec,this._textModel,(()=>this._languageId)))}createTokens(e){const t=void 0!==this._tokens;this._tokens?.dispose(),this._tokens=e?this.createTreeSitterTokens():this.createGrammarTokens(),this._tokensDisposables.clear(),this._tokensDisposables.add(this._tokens.onDidChangeTokens((e=>{this._emitModelTokensChangedEvent(e)}))),this._tokensDisposables.add(this._tokens.onDidChangeBackgroundTokenizationState((e=>{this._bracketPairsTextModelPart.handleDidChangeBackgroundTokenizationState()}))),t&&this._tokens.resetTokenization()}createPreferredTokenProvider(){$n.OB.get(this._languageId)?this._tokens instanceof gr||this.createTokens(!0):this._tokens instanceof Dr||this.createTokens(!1)}handleLanguageConfigurationServiceChange(e){e.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})}handleDidChangeContent(e){if(e.isFlush)this._semanticTokens.flush();else if(!e.isEolChange)for(const t of e.changes){const[e,n,r]=(0,u.W)(t.text);this._semanticTokens.acceptEdit(t.range,e,n,r,t.text.length>0?t.text.charCodeAt(0):0)}this._tokens.handleDidChangeContent(e)}handleDidChangeAttached(){this._tokens.handleDidChangeAttached()}getLineTokens(e){this.validateLineNumber(e);const t=this._tokens.getLineTokens(e);return this._semanticTokens.addSparseTokens(e,t)}_emitModelTokensChangedEvent(e){this._textModel._isDisposing()||(this._bracketPairsTextModelPart.handleDidChangeTokens(e),this._onDidChangeTokens.fire(e))}validateLineNumber(e){if(e<1||e>this._textModel.getLineCount())throw new l.D7("Illegal value for lineNumber")}get hasTokens(){return this._tokens.hasTokens}resetTokenization(){this._tokens.resetTokenization()}get backgroundTokenizationState(){return this._tokens.backgroundTokenizationState}forceTokenization(e){this.validateLineNumber(e),this._tokens.forceTokenization(e)}hasAccurateTokensForLine(e){return this.validateLineNumber(e),this._tokens.hasAccurateTokensForLine(e)}isCheapToTokenize(e){return this.validateLineNumber(e),this._tokens.isCheapToTokenize(e)}tokenizeIfCheap(e){this.validateLineNumber(e),this._tokens.tokenizeIfCheap(e)}getTokenTypeIfInsertingCharacter(e,t,n){return this._tokens.getTokenTypeIfInsertingCharacter(e,t,n)}tokenizeLineWithEdit(e,t,n){return this._tokens.tokenizeLineWithEdit(e,t,n)}setSemanticTokens(e,t){this._semanticTokens.set(e,t),this._emitModelTokensChangedEvent({semanticTokensApplied:null!==e,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]})}hasCompleteSemanticTokens(){return this._semanticTokens.isComplete()}hasSomeSemanticTokens(){return!this._semanticTokens.isEmpty()}setPartialSemanticTokens(e,t){if(this.hasCompleteSemanticTokens())return;const n=this._textModel.validateRange(this._semanticTokens.setPartial(e,t));this._emitModelTokensChangedEvent({semanticTokensApplied:!0,ranges:[{fromLineNumber:n.startLineNumber,toLineNumber:n.endLineNumber}]})}getWordAtPosition(e){this.assertNotDisposed();const t=this._textModel.validatePosition(e),n=this._textModel.getLineContent(t.lineNumber),r=this.getLineTokens(t.lineNumber),o=r.findTokenIndexAtOffset(t.column-1),[i,a]=Ar._findLanguageBoundaries(r,o),s=(0,b.Th)(t.column,this.getLanguageConfiguration(r.getLanguageId(o)).getWordDefinition(),n.substring(i,a),i);if(s&&s.startColumn<=e.column&&e.column<=s.endColumn)return s;if(o>0&&i===t.column-1){const[i,a]=Ar._findLanguageBoundaries(r,o-1),s=(0,b.Th)(t.column,this.getLanguageConfiguration(r.getLanguageId(o-1)).getWordDefinition(),n.substring(i,a),i);if(s&&s.startColumn<=e.column&&e.column<=s.endColumn)return s}return null}getLanguageConfiguration(e){return this._languageConfigurationService.getLanguageConfiguration(e)}static _findLanguageBoundaries(e,t){const n=e.getLanguageId(t);let r=0;for(let i=t;i>=0&&e.getLanguageId(i)===n;i--)r=e.getStartOffset(i);let o=e.getLineContent().length;for(let i=t,a=e.getCount();i<a&&e.getLanguageId(i)===n;i++)o=e.getEndOffset(i);return[r,o]}getWordUntilPosition(e){const t=this.getWordAtPosition(e);return t?{word:t.word.substr(0,e.column-t.startColumn),startColumn:t.startColumn,endColumn:e.column}:{word:"",startColumn:e.column,endColumn:e.column}}getLanguageId(){return this._languageId}getLanguageIdAtPosition(e,t){const n=this._textModel.validatePosition(new m.y(e,t)),r=this.getLineTokens(n.lineNumber);return r.getLanguageId(r.findTokenIndexAtOffset(n.column-1))}setLanguageId(e,t="api"){if(this._languageId===e)return;const n={oldLanguage:this._languageId,newLanguage:e,source:t};this._languageId=e,this._bracketPairsTextModelPart.handleDidChangeLanguage(n),this._tokens.resetTokenization(),this.createPreferredTokenProvider(),this._onDidChangeLanguage.fire(n),this._onDidChangeLanguageConfiguration.fire({})}};Cr=Ar=Ir([Rr(4,v.L),Rr(5,ie),Rr(6,yr.ITreeSitterParserService)],Cr);class Dr extends hr{constructor(e,t,n,r){super(e,t,n),this._tokenizer=null,this._defaultBackgroundTokenizer=null,this._backgroundTokenizer=this._register(new o.HE),this._tokens=new Sr(this._languageIdCodec),this._debugBackgroundTokenizer=this._register(new o.HE),this._attachedViewStates=this._register(new o.$w),this._register($n.dG.onDidChange((e=>{const t=this.getLanguageId();-1!==e.changedLanguages.indexOf(t)&&this.resetTokenization()}))),this.resetTokenization(),this._register(r.onDidChangeVisibleRanges((({view:e,state:t})=>{if(t){let n=this._attachedViewStates.get(e);n||(n=new _r((()=>this.refreshRanges(n.lineRanges))),this._attachedViewStates.set(e,n)),n.handleStateChange(t)}else this._attachedViewStates.deleteAndDispose(e)})))}resetTokenization(e=!0){this._tokens.flush(),this._debugBackgroundTokens?.flush(),this._debugBackgroundStates&&(this._debugBackgroundStates=new lr(this._textModel.getLineCount())),e&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]});const[t,n]=(()=>{if(this._textModel.isTooLargeForTokenization())return[null,null];const e=$n.dG.get(this.getLanguageId());if(!e)return[null,null];let t;try{t=e.getInitialState()}catch(n){return(0,l.dz)(n),[null,null]}return[e,t]})();if(this._tokenizer=t&&n?new sr(this._textModel.getLineCount(),t,this._textModel,this._languageIdCodec):null,this._backgroundTokenizer.clear(),this._defaultBackgroundTokenizer=null,this._tokenizer){const e={setTokens:e=>{this.setTokens(e)},backgroundTokenizationFinished:()=>{if(2===this._backgroundTokenizationState)return;this._backgroundTokenizationState=2,this._onDidChangeBackgroundTokenizationState.fire()},setEndState:(e,t)=>{if(!this._tokenizer)return;const n=this._tokenizer.store.getFirstInvalidEndStateLineNumber();null!==n&&e>=n&&this._tokenizer?.store.setEndState(e,t)}};t&&t.createBackgroundTokenizer&&!t.backgroundTokenizerShouldOnlyVerifyTokens&&(this._backgroundTokenizer.value=t.createBackgroundTokenizer(this._textModel,e)),this._backgroundTokenizer.value||this._textModel.isTooLargeForTokenization()||(this._backgroundTokenizer.value=this._defaultBackgroundTokenizer=new pr(this._tokenizer,e),this._defaultBackgroundTokenizer.handleChanges()),t?.backgroundTokenizerShouldOnlyVerifyTokens&&t.createBackgroundTokenizer?(this._debugBackgroundTokens=new Sr(this._languageIdCodec),this._debugBackgroundStates=new lr(this._textModel.getLineCount()),this._debugBackgroundTokenizer.clear(),this._debugBackgroundTokenizer.value=t.createBackgroundTokenizer(this._textModel,{setTokens:e=>{this._debugBackgroundTokens?.setMultilineTokens(e,this._textModel)},backgroundTokenizationFinished(){},setEndState:(e,t)=>{this._debugBackgroundStates?.setEndState(e,t)}})):(this._debugBackgroundTokens=void 0,this._debugBackgroundStates=void 0,this._debugBackgroundTokenizer.value=void 0)}this.refreshAllVisibleLineTokens()}handleDidChangeAttached(){this._defaultBackgroundTokenizer?.handleChanges()}handleDidChangeContent(e){if(e.isFlush)this.resetTokenization(!1);else if(!e.isEolChange){for(const t of e.changes){const[e,n]=(0,u.W)(t.text);this._tokens.acceptEdit(t.range,e,n),this._debugBackgroundTokens?.acceptEdit(t.range,e,n)}this._debugBackgroundStates?.acceptChanges(e.changes),this._tokenizer&&this._tokenizer.store.acceptChanges(e.changes),this._defaultBackgroundTokenizer?.handleChanges()}}setTokens(e){const{changes:t}=this._tokens.setMultilineTokens(e,this._textModel);return t.length>0&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:t}),{changes:t}}refreshAllVisibleLineTokens(){const e=Xn.M.joinMany([...this._attachedViewStates].map((([e,t])=>t.lineRanges)));this.refreshRanges(e)}refreshRanges(e){for(const t of e)this.refreshRange(t.startLineNumber,t.endLineNumberExclusive-1)}refreshRange(e,t){if(!this._tokenizer)return;e=Math.max(1,Math.min(this._textModel.getLineCount(),e)),t=Math.min(this._textModel.getLineCount(),t);const n=new rr,{heuristicTokens:r}=this._tokenizer.tokenizeHeuristically(n,e,t),o=this.setTokens(n.finalize());if(r)for(const i of o.changes)this._backgroundTokenizer.value?.requestTokens(i.fromLineNumber,i.toLineNumber+1);this._defaultBackgroundTokenizer?.checkFinished()}forceTokenization(e){const t=new rr;this._tokenizer?.updateTokensUntilLine(t,e),this.setTokens(t.finalize()),this._defaultBackgroundTokenizer?.checkFinished()}hasAccurateTokensForLine(e){return!this._tokenizer||this._tokenizer.hasAccurateTokensForLine(e)}isCheapToTokenize(e){return!this._tokenizer||this._tokenizer.isCheapToTokenize(e)}getLineTokens(e){const t=this._textModel.getLineContent(e),n=this._tokens.getTokens(this._textModel.getLanguageId(),e-1,t);if(this._debugBackgroundTokens&&this._debugBackgroundStates&&this._tokenizer&&this._debugBackgroundStates.getFirstInvalidEndStateLineNumberOrMax()>e&&this._tokenizer.store.getFirstInvalidEndStateLineNumberOrMax()>e){const r=this._debugBackgroundTokens.getTokens(this._textModel.getLanguageId(),e-1,t);!n.equals(r)&&this._debugBackgroundTokenizer.value?.reportMismatchingTokens&&this._debugBackgroundTokenizer.value.reportMismatchingTokens(e)}return n}getTokenTypeIfInsertingCharacter(e,t,n){if(!this._tokenizer)return 0;const r=this._textModel.validatePosition(new m.y(e,t));return this.forceTokenization(r.lineNumber),this._tokenizer.getTokenTypeIfInsertingCharacter(r,n)}tokenizeLineWithEdit(e,t,n){if(!this._tokenizer)return null;const r=this._textModel.validatePosition(e);return this.forceTokenization(r.lineNumber),this._tokenizer.tokenizeLineWithEdit(r,t,n)}get hasTokens(){return this._tokens.hasTokens}}class Nr{constructor(){this.changeType=1}}class Mr{static applyInjectedText(e,t){if(!t||0===t.length)return e;let n="",r=0;for(const o of t)n+=e.substring(r,o.column-1),r=o.column-1,n+=o.options.content;return n+=e.substring(r),n}static fromDecorations(e){const t=[];for(const n of e)n.options.before&&n.options.before.content.length>0&&t.push(new Mr(n.ownerId,n.range.startLineNumber,n.range.startColumn,n.options.before,0)),n.options.after&&n.options.after.content.length>0&&t.push(new Mr(n.ownerId,n.range.endLineNumber,n.range.endColumn,n.options.after,1));return t.sort(((e,t)=>e.lineNumber===t.lineNumber?e.column===t.column?e.order-t.order:e.column-t.column:e.lineNumber-t.lineNumber)),t}constructor(e,t,n,r,o){this.ownerId=e,this.lineNumber=t,this.column=n,this.options=r,this.order=o}}class Lr{constructor(e,t,n){this.changeType=2,this.lineNumber=e,this.detail=t,this.injectedText=n}}class kr{constructor(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t}}class Pr{constructor(e,t,n,r){this.changeType=4,this.injectedTexts=r,this.fromLineNumber=e,this.toLineNumber=t,this.detail=n}}class wr{constructor(){this.changeType=5}}class Or{constructor(e,t,n,r){this.changes=e,this.versionId=t,this.isUndoing=n,this.isRedoing=r,this.resultingSelection=null}containsEvent(e){for(let t=0,n=this.changes.length;t<n;t++){if(this.changes[t].changeType===e)return!0}return!1}static merge(e,t){const n=[].concat(e.changes).concat(t.changes),r=t.versionId,o=e.isUndoing||t.isUndoing,i=e.isRedoing||t.isRedoing;return new Or(n,r,o,i)}}class Fr{constructor(e){this.changes=e}}class Wr{constructor(e,t){this.rawContentChangedEvent=e,this.contentChangedEvent=t}merge(e){const t=Or.merge(this.rawContentChangedEvent,e.rawContentChangedEvent),n=Wr._mergeChangeEvents(this.contentChangedEvent,e.contentChangedEvent);return new Wr(t,n)}static _mergeChangeEvents(e,t){const n=[].concat(e.changes).concat(t.changes),r=t.eol,o=t.versionId,i=e.isUndoing||t.isUndoing,a=e.isRedoing||t.isRedoing,s=e.isFlush||t.isFlush;return{changes:n,eol:r,isEolChange:e.isEolChange&&t.isEolChange,versionId:o,isUndoing:i,isRedoing:a,isFlush:s}}}const zr=(0,K.u1)("undoRedoService");class Br{static{this._ID=0}constructor(){this.id=Br._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}static{this.None=new Br}}class Gr{static{this._ID=0}constructor(){this.id=Gr._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}static{this.None=new Gr}}var jr,Vr=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ur=function(e,t){return function(n,r){t(n,r,e)}};function Hr(e,t){let n;return n="string"===typeof e?function(e){const t=new Jn;return t.acceptChunk(e),t.finish()}(e):_e.nk(e)?function(e){const t=new Jn;let n;for(;"string"===typeof(n=e.read());)t.acceptChunk(n);return t.finish()}(e):e,n.create(t)}let Kr=0;class qr{constructor(e){this._source=e,this._eos=!1}read(){if(this._eos)return null;const e=[];let t=0,n=0;for(;;){const r=this._source.read();if(null===r)return this._eos=!0,0===t?null:e.join("");if(r.length>0&&(e[t++]=r,n+=r.length),n>=65536)return e.join("")}}}const Jr=()=>{throw new Error("Invalid change accessor")};let Xr=class extends o.jG{static{jr=this}static{this._MODEL_SYNC_LIMIT=52428800}static{this.LARGE_FILE_SIZE_THRESHOLD=20971520}static{this.LARGE_FILE_LINE_COUNT_THRESHOLD=3e5}static{this.LARGE_FILE_HEAP_OPERATION_THRESHOLD=268435456}static{this.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:g.tabSize,indentSize:g.indentSize,insertSpaces:g.insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:g.trimAutoWhitespace,largeFileOptimizations:g.largeFileOptimizations,bracketPairColorizationOptions:g.bracketPairColorizationOptions}}static resolveOptions(e,t){if(t.detectIndentation){const n=Yt(e,t.tabSize,t.insertSpaces);return new _e.X2({tabSize:n.tabSize,indentSize:"tabSize",insertSpaces:n.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL,bracketPairColorizationOptions:t.bracketPairColorizationOptions})}return new _e.X2(t)}get onDidChangeLanguage(){return this._tokenizationTextModelPart.onDidChangeLanguage}get onDidChangeLanguageConfiguration(){return this._tokenizationTextModelPart.onDidChangeLanguageConfiguration}get onDidChangeTokens(){return this._tokenizationTextModelPart.onDidChangeTokens}onDidChangeContent(e){return this._eventEmitter.slowEvent((t=>e(t.contentChangedEvent)))}onDidChangeContentOrInjectedText(e){return(0,o.qE)(this._eventEmitter.fastEvent((t=>e(t))),this._onDidChangeInjectedText.event((t=>e(t))))}_isDisposing(){return this.__isDisposing}get tokenization(){return this._tokenizationTextModelPart}get bracketPairs(){return this._bracketPairs}get guides(){return this._guidesTextModelPart}constructor(e,t,n,i=null,a,s,l,u){super(),this._undoRedoService=a,this._languageService=s,this._languageConfigurationService=l,this.instantiationService=u,this._onWillDispose=this._register(new r.vl),this.onWillDispose=this._onWillDispose.event,this._onDidChangeDecorations=this._register(new lo((e=>this.handleBeforeFireDecorationsChangedEvent(e)))),this.onDidChangeDecorations=this._onDidChangeDecorations.event,this._onDidChangeOptions=this._register(new r.vl),this.onDidChangeOptions=this._onDidChangeOptions.event,this._onDidChangeAttached=this._register(new r.vl),this.onDidChangeAttached=this._onDidChangeAttached.event,this._onDidChangeInjectedText=this._register(new r.vl),this._eventEmitter=this._register(new co),this._languageSelectionListener=this._register(new o.HE),this._deltaDecorationCallCnt=0,this._attachedViews=new fr,Kr++,this.id="$model"+Kr,this.isForSimpleWidget=n.isForSimpleWidget,this._associatedResource="undefined"===typeof i||null===i?d.r.parse("inmemory://model/"+Kr):i,this._attachedEditorCount=0;const{textBuffer:p,disposable:f}=Hr(e,n.defaultEOL);this._buffer=p,this._bufferDisposable=f,this._options=jr.resolveOptions(this._buffer,n);const m="string"===typeof t?t:t.languageId;"string"!==typeof t&&(this._languageSelectionListener.value=t.onDidChange((()=>this._setLanguage(t.languageId)))),this._bracketPairs=this._register(new St(this,this._languageConfigurationService)),this._guidesTextModelPart=this._register(new qt(this,this._languageConfigurationService)),this._decorationProvider=this._register(new Ct(this)),this._tokenizationTextModelPart=this.instantiationService.createInstance(Cr,this,this._bracketPairs,m,this._attachedViews);const h=this._buffer.getLineCount(),g=this._buffer.getValueLengthInRange(new _.Q(1,1,h,this._buffer.getLineLength(h)+1),0);n.largeFileOptimizations?(this._isTooLargeForTokenization=g>jr.LARGE_FILE_SIZE_THRESHOLD||h>jr.LARGE_FILE_LINE_COUNT_THRESHOLD,this._isTooLargeForHeapOperation=g>jr.LARGE_FILE_HEAP_OPERATION_THRESHOLD):(this._isTooLargeForTokenization=!1,this._isTooLargeForHeapOperation=!1),this._isTooLargeForSyncing=g>jr._MODEL_SYNC_LIMIT,this._versionId=1,this._alternativeVersionId=1,this._initialUndoRedoSnapshot=null,this._isDisposed=!1,this.__isDisposing=!1,this._instanceId=c.tk(Kr),this._lastDecorationId=0,this._decorations=Object.create(null),this._decorationsTree=new Qr,this._commandManager=new Gt(this,this._undoRedoService),this._isUndoing=!1,this._isRedoing=!1,this._trimAutoWhitespaceLines=null,this._register(this._decorationProvider.onDidChange((()=>{this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._onDidChangeDecorations.endDeferredEmit()}))),this._languageService.requestRichLanguageFeatures(m),this._register(this._languageConfigurationService.onDidChange((e=>{this._bracketPairs.handleLanguageConfigurationServiceChange(e),this._tokenizationTextModelPart.handleLanguageConfigurationServiceChange(e)})))}dispose(){this.__isDisposing=!0,this._onWillDispose.fire(),this._tokenizationTextModelPart.dispose(),this._isDisposed=!0,super.dispose(),this._bufferDisposable.dispose(),this.__isDisposing=!1;const e=new Kn([],"","\n",!1,!1,!0,!0);e.dispose(),this._buffer=e,this._bufferDisposable=o.jG.None}_assertNotDisposed(){if(this._isDisposed)throw new l.D7("Model is disposed!")}_emitContentChangedEvent(e,t){this.__isDisposing||(this._tokenizationTextModelPart.handleDidChangeContent(t),this._bracketPairs.handleDidChangeContent(t),this._eventEmitter.fire(new Wr(e,t)))}setValue(e){if(this._assertNotDisposed(),null===e||void 0===e)throw(0,l.Qg)();const{textBuffer:t,disposable:n}=Hr(e,this._options.defaultEOL);this._setValueFromTextBuffer(t,n)}_createContentChanged2(e,t,n,r,o,i,a,s){return{changes:[{range:e,rangeOffset:t,rangeLength:n,text:r}],eol:this._buffer.getEOL(),isEolChange:s,versionId:this.getVersionId(),isUndoing:o,isRedoing:i,isFlush:a}}_setValueFromTextBuffer(e,t){this._assertNotDisposed();const n=this.getFullModelRange(),r=this.getValueLengthInRange(n),o=this.getLineCount(),i=this.getLineMaxColumn(o);this._buffer=e,this._bufferDisposable.dispose(),this._bufferDisposable=t,this._increaseVersionId(),this._decorations=Object.create(null),this._decorationsTree=new Qr,this._commandManager.clear(),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new Or([new Nr],this._versionId,!1,!1),this._createContentChanged2(new _.Q(1,1,o,i),0,r,this.getValue(),!1,!1,!0,!1))}setEOL(e){this._assertNotDisposed();const t=1===e?"\r\n":"\n";if(this._buffer.getEOL()===t)return;const n=this.getFullModelRange(),r=this.getValueLengthInRange(n),o=this.getLineCount(),i=this.getLineMaxColumn(o);this._onBeforeEOLChange(),this._buffer.setEOL(t),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new Or([new wr],this._versionId,!1,!1),this._createContentChanged2(new _.Q(1,1,o,i),0,r,this.getValue(),!1,!1,!1,!0))}_onBeforeEOLChange(){this._decorationsTree.ensureAllNodesHaveRanges(this)}_onAfterEOLChange(){const e=this.getVersionId(),t=this._decorationsTree.collectNodesPostOrder();for(let n=0,r=t.length;n<r;n++){const r=t[n],o=r.range,i=r.cachedAbsoluteStart-r.start,a=this._buffer.getOffsetAt(o.startLineNumber,o.startColumn),s=this._buffer.getOffsetAt(o.endLineNumber,o.endColumn);r.cachedAbsoluteStart=a,r.cachedAbsoluteEnd=s,r.cachedVersionId=e,r.start=a-i,r.end=s-i,bn(r)}}onBeforeAttached(){return this._attachedEditorCount++,1===this._attachedEditorCount&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0)),this._attachedViews.attachView()}onBeforeDetached(e){this._attachedEditorCount--,0===this._attachedEditorCount&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0)),this._attachedViews.detachView(e)}isAttachedToEditor(){return this._attachedEditorCount>0}getAttachedEditorCount(){return this._attachedEditorCount}isTooLargeForSyncing(){return this._isTooLargeForSyncing}isTooLargeForTokenization(){return this._isTooLargeForTokenization}isTooLargeForHeapOperation(){return this._isTooLargeForHeapOperation}isDisposed(){return this._isDisposed}isDominatedByLongLines(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;let e=0,t=0;const n=this._buffer.getLineCount();for(let r=1;r<=n;r++){const n=this._buffer.getLineLength(r);n>=1e4?t+=n:e+=n}return t>e}get uri(){return this._associatedResource}getOptions(){return this._assertNotDisposed(),this._options}getFormattingOptions(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}}updateOptions(e){this._assertNotDisposed();const t="undefined"!==typeof e.tabSize?e.tabSize:this._options.tabSize,n="undefined"!==typeof e.indentSize?e.indentSize:this._options.originalIndentSize,r="undefined"!==typeof e.insertSpaces?e.insertSpaces:this._options.insertSpaces,o="undefined"!==typeof e.trimAutoWhitespace?e.trimAutoWhitespace:this._options.trimAutoWhitespace,i="undefined"!==typeof e.bracketColorizationOptions?e.bracketColorizationOptions:this._options.bracketPairColorizationOptions,a=new _e.X2({tabSize:t,indentSize:n,insertSpaces:r,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:o,bracketPairColorizationOptions:i});if(this._options.equals(a))return;const s=this._options.createChangeEvent(a);this._options=a,this._bracketPairs.handleDidChangeOptions(s),this._decorationProvider.handleDidChangeOptions(s),this._onDidChangeOptions.fire(s)}detectIndentation(e,t){this._assertNotDisposed();const n=Yt(this._buffer,t,e);this.updateOptions({insertSpaces:n.insertSpaces,tabSize:n.tabSize,indentSize:n.tabSize})}normalizeIndentation(e){return this._assertNotDisposed(),f(e,this._options.indentSize,this._options.insertSpaces)}getVersionId(){return this._assertNotDisposed(),this._versionId}mightContainRTL(){return this._buffer.mightContainRTL()}mightContainUnusualLineTerminators(){return this._buffer.mightContainUnusualLineTerminators()}removeUnusualLineTerminators(e=null){const t=this.findMatches(c._J.source,!1,!0,!1,null,!1,1073741824);this._buffer.resetMightContainUnusualLineTerminators(),this.pushEditOperations(e,t.map((e=>({range:e.range,text:null}))),(()=>null))}mightContainNonBasicASCII(){return this._buffer.mightContainNonBasicASCII()}getAlternativeVersionId(){return this._assertNotDisposed(),this._alternativeVersionId}getInitialUndoRedoSnapshot(){return this._assertNotDisposed(),this._initialUndoRedoSnapshot}getOffsetAt(e){this._assertNotDisposed();const t=this._validatePosition(e.lineNumber,e.column,0);return this._buffer.getOffsetAt(t.lineNumber,t.column)}getPositionAt(e){this._assertNotDisposed();const t=Math.min(this._buffer.getLength(),Math.max(0,e));return this._buffer.getPositionAt(t)}_increaseVersionId(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId}_overwriteVersionId(e){this._versionId=e}_overwriteAlternativeVersionId(e){this._alternativeVersionId=e}_overwriteInitialUndoRedoSnapshot(e){this._initialUndoRedoSnapshot=e}getValue(e,t=!1){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new l.D7("Operation would exceed heap memory limits");const n=this.getFullModelRange(),r=this.getValueInRange(n,e);return t?this._buffer.getBOM()+r:r}createSnapshot(e=!1){return new qr(this._buffer.createSnapshot(e))}getValueLength(e,t=!1){this._assertNotDisposed();const n=this.getFullModelRange(),r=this.getValueLengthInRange(n,e);return t?this._buffer.getBOM().length+r:r}getValueInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(e),t)}getValueLengthInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(e),t)}getCharacterCountInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(e),t)}getLineCount(){return this._assertNotDisposed(),this._buffer.getLineCount()}getLineContent(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineContent(e)}getLineLength(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineLength(e)}getLinesContent(){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new l.D7("Operation would exceed heap memory limits");return this._buffer.getLinesContent()}getEOL(){return this._assertNotDisposed(),this._buffer.getEOL()}getEndOfLineSequence(){return this._assertNotDisposed(),"\n"===this._buffer.getEOL()?0:1}getLineMinColumn(e){return this._assertNotDisposed(),1}getLineMaxColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineLength(e)+1}getLineFirstNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)}getLineLastNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)}_validateRangeRelaxedNoAllocations(e){const t=this._buffer.getLineCount(),n=e.startLineNumber,r=e.startColumn;let o=Math.floor("number"!==typeof n||isNaN(n)?1:n),i=Math.floor("number"!==typeof r||isNaN(r)?1:r);if(o<1)o=1,i=1;else if(o>t)o=t,i=this.getLineMaxColumn(o);else if(i<=1)i=1;else{const e=this.getLineMaxColumn(o);i>=e&&(i=e)}const a=e.endLineNumber,s=e.endColumn;let l=Math.floor("number"!==typeof a||isNaN(a)?1:a),c=Math.floor("number"!==typeof s||isNaN(s)?1:s);if(l<1)l=1,c=1;else if(l>t)l=t,c=this.getLineMaxColumn(l);else if(c<=1)c=1;else{const e=this.getLineMaxColumn(l);c>=e&&(c=e)}return n===o&&r===i&&a===l&&s===c&&e instanceof _.Q&&!(e instanceof h.L)?e:new _.Q(o,i,l,c)}_isValidPosition(e,t,n){if("number"!==typeof e||"number"!==typeof t)return!1;if(isNaN(e)||isNaN(t))return!1;if(e<1||t<1)return!1;if((0|e)!==e||(0|t)!==t)return!1;if(e>this._buffer.getLineCount())return!1;if(1===t)return!0;if(t>this.getLineMaxColumn(e))return!1;if(1===n){const n=this._buffer.getLineCharCode(e,t-2);if(c.pc(n))return!1}return!0}_validatePosition(e,t,n){const r=Math.floor("number"!==typeof e||isNaN(e)?1:e),o=Math.floor("number"!==typeof t||isNaN(t)?1:t),i=this._buffer.getLineCount();if(r<1)return new m.y(1,1);if(r>i)return new m.y(i,this.getLineMaxColumn(i));if(o<=1)return new m.y(r,1);const a=this.getLineMaxColumn(r);if(o>=a)return new m.y(r,a);if(1===n){const e=this._buffer.getLineCharCode(r,o-2);if(c.pc(e))return new m.y(r,o-1)}return new m.y(r,o)}validatePosition(e){return this._assertNotDisposed(),e instanceof m.y&&this._isValidPosition(e.lineNumber,e.column,1)?e:this._validatePosition(e.lineNumber,e.column,1)}_isValidRange(e,t){const n=e.startLineNumber,r=e.startColumn,o=e.endLineNumber,i=e.endColumn;if(!this._isValidPosition(n,r,0))return!1;if(!this._isValidPosition(o,i,0))return!1;if(1===t){const e=r>1?this._buffer.getLineCharCode(n,r-2):0,t=i>1&&i<=this._buffer.getLineLength(o)?this._buffer.getLineCharCode(o,i-2):0,a=c.pc(e),s=c.pc(t);return!a&&!s}return!0}validateRange(e){if(this._assertNotDisposed(),e instanceof _.Q&&!(e instanceof h.L)&&this._isValidRange(e,1))return e;const t=this._validatePosition(e.startLineNumber,e.startColumn,0),n=this._validatePosition(e.endLineNumber,e.endColumn,0),r=t.lineNumber,o=t.column,i=n.lineNumber,a=n.column;{const e=o>1?this._buffer.getLineCharCode(r,o-2):0,t=a>1&&a<=this._buffer.getLineLength(i)?this._buffer.getLineCharCode(i,a-2):0,n=c.pc(e),s=c.pc(t);return n||s?r===i&&o===a?new _.Q(r,o-1,i,a-1):n&&s?new _.Q(r,o-1,i,a+1):n?new _.Q(r,o-1,i,a):new _.Q(r,o,i,a+1):new _.Q(r,o,i,a)}}modifyPosition(e,t){this._assertNotDisposed();const n=this.getOffsetAt(e)+t;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,n)))}getFullModelRange(){this._assertNotDisposed();const e=this.getLineCount();return new _.Q(1,1,e,this.getLineMaxColumn(e))}findMatchesLineByLine(e,t,n,r){return this._buffer.findMatchesLineByLine(e,t,n,r)}findMatches(e,t,n,r,o,i,a=999){this._assertNotDisposed();let s=null;null!==t&&(Array.isArray(t)||(t=[t]),t.every((e=>_.Q.isIRange(e)))&&(s=t.map((e=>this.validateRange(e))))),null===s&&(s=[this.getFullModelRange()]),s=s.sort(((e,t)=>e.startLineNumber-t.startLineNumber||e.startColumn-t.startColumn));const l=[];let c;if(l.push(s.reduce(((e,t)=>_.Q.areIntersecting(e,t)?e.plusRange(t):(l.push(e),t)))),!n&&e.indexOf("\n")<0){const t=new On.lt(e,n,r,o).parseSearchRequest();if(!t)return[];c=e=>this.findMatchesLineByLine(e,t,i,a)}else c=t=>On.hB.findMatches(this,new On.lt(e,n,r,o),t,i,a);return l.map(c).reduce(((e,t)=>e.concat(t)),[])}findNextMatch(e,t,n,r,o,i){this._assertNotDisposed();const a=this.validatePosition(t);if(!n&&e.indexOf("\n")<0){const t=new On.lt(e,n,r,o).parseSearchRequest();if(!t)return null;const s=this.getLineCount();let l=new _.Q(a.lineNumber,a.column,s,this.getLineMaxColumn(s)),c=this.findMatchesLineByLine(l,t,i,1);return On.hB.findNextMatch(this,new On.lt(e,n,r,o),a,i),c.length>0?c[0]:(l=new _.Q(1,1,a.lineNumber,this.getLineMaxColumn(a.lineNumber)),c=this.findMatchesLineByLine(l,t,i,1),c.length>0?c[0]:null)}return On.hB.findNextMatch(this,new On.lt(e,n,r,o),a,i)}findPreviousMatch(e,t,n,r,o,i){this._assertNotDisposed();const a=this.validatePosition(t);return On.hB.findPreviousMatch(this,new On.lt(e,n,r,o),a,i)}pushStackElement(){this._commandManager.pushStackElement()}popStackElement(){this._commandManager.popStackElement()}pushEOL(e){if(("\n"===this.getEOL()?0:1)!==e)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEOL(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_validateEditOperation(e){return e instanceof _e.Wo?e:new _e.Wo(e.identifier||null,this.validateRange(e.range),e.text,e.forceMoveMarkers||!1,e.isAutoWhitespaceEdit||!1,e._isTracked||!1)}_validateEditOperations(e){const t=[];for(let n=0,r=e.length;n<r;n++)t[n]=this._validateEditOperation(e[n]);return t}pushEditOperations(e,t,n,r){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(e,this._validateEditOperations(t),n,r)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_pushEditOperations(e,t,n,r){if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){const n=t.map((e=>({range:this.validateRange(e.range),text:e.text})));let r=!0;if(e)for(let t=0,o=e.length;t<o;t++){const o=e[t];let i=!1;for(let e=0,t=n.length;e<t;e++){const t=n[e].range,r=t.startLineNumber>o.endLineNumber,a=o.startLineNumber>t.endLineNumber;if(!r&&!a){i=!0;break}}if(!i){r=!1;break}}if(r)for(let e=0,o=this._trimAutoWhitespaceLines.length;e<o;e++){const r=this._trimAutoWhitespaceLines[e],o=this.getLineMaxColumn(r);let i=!0;for(let e=0,t=n.length;e<t;e++){const t=n[e].range,a=n[e].text;if(!(r<t.startLineNumber||r>t.endLineNumber)&&(!(r===t.startLineNumber&&t.startColumn===o&&t.isEmpty()&&a&&a.length>0&&"\n"===a.charAt(0))&&!(r===t.startLineNumber&&1===t.startColumn&&t.isEmpty()&&a&&a.length>0&&"\n"===a.charAt(a.length-1)))){i=!1;break}}if(i){const e=new _.Q(r,1,r,o);t.push(new _e.Wo(null,e,null,!1,!1,!1))}}this._trimAutoWhitespaceLines=null}return null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEditOperation(e,t,n,r)}_applyUndo(e,t,n,r){const o=e.map((e=>{const t=this.getPositionAt(e.newPosition),n=this.getPositionAt(e.newEnd);return{range:new _.Q(t.lineNumber,t.column,n.lineNumber,n.column),text:e.oldText}}));this._applyUndoRedoEdits(o,t,!0,!1,n,r)}_applyRedo(e,t,n,r){const o=e.map((e=>{const t=this.getPositionAt(e.oldPosition),n=this.getPositionAt(e.oldEnd);return{range:new _.Q(t.lineNumber,t.column,n.lineNumber,n.column),text:e.newText}}));this._applyUndoRedoEdits(o,t,!1,!0,n,r)}_applyUndoRedoEdits(e,t,n,r,o,i){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._isUndoing=n,this._isRedoing=r,this.applyEdits(e,!1),this.setEOL(t),this._overwriteAlternativeVersionId(o)}finally{this._isUndoing=!1,this._isRedoing=!1,this._eventEmitter.endDeferredEmit(i),this._onDidChangeDecorations.endDeferredEmit()}}applyEdits(e,t=!1){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit();const n=this._validateEditOperations(e);return this._doApplyEdits(n,t)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_doApplyEdits(e,t){const n=this._buffer.getLineCount(),r=this._buffer.applyEdits(e,this._options.trimAutoWhitespace,t),o=this._buffer.getLineCount(),i=r.changes;if(this._trimAutoWhitespaceLines=r.trimAutoWhitespaceLineNumbers,0!==i.length){for(let n=0,r=i.length;n<r;n++){const e=i[n];this._decorationsTree.acceptReplace(e.rangeOffset,e.rangeLength,e.text.length,e.forceMoveMarkers)}const e=[];this._increaseVersionId();let t=n;for(let n=0,r=i.length;n<r;n++){const r=i[n],[s]=(0,u.W)(r.text);this._onDidChangeDecorations.fire();const l=r.range.startLineNumber,c=r.range.endLineNumber,d=c-l,p=s,f=Math.min(d,p),_=p-d,h=o-t-_+l,g=h,y=h+p,v=this._decorationsTree.getInjectedTextInInterval(this,this.getOffsetAt(new m.y(g,1)),this.getOffsetAt(new m.y(y,this.getLineMaxColumn(y))),0),b=Mr.fromDecorations(v),E=new a.j3(b);for(let t=f;t>=0;t--){const n=l+t,r=h+t;E.takeFromEndWhile((e=>e.lineNumber>r));const o=E.takeFromEndWhile((e=>e.lineNumber===r));e.push(new Lr(n,this.getLineContent(r),o))}if(f<d){const t=l+f;e.push(new kr(t+1,c))}if(f<p){const n=new a.j3(b),r=l+f,i=p-f,s=o-t-i+r+1,c=[],d=[];for(let e=0;e<i;e++){const t=s+e;d[e]=this.getLineContent(t),n.takeWhile((e=>e.lineNumber<t)),c[e]=n.takeWhile((e=>e.lineNumber===t))}e.push(new Pr(r+1,l+p,d,c))}t+=_}this._emitContentChangedEvent(new Or(e,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:i,eol:this._buffer.getEOL(),isEolChange:!1,versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return null===r.reverseEdits?void 0:r.reverseEdits}undo(){return this._undoRedoService.undo(this.uri)}canUndo(){return this._undoRedoService.canUndo(this.uri)}redo(){return this._undoRedoService.redo(this.uri)}canRedo(){return this._undoRedoService.canRedo(this.uri)}handleBeforeFireDecorationsChangedEvent(e){if(null===e||0===e.size)return;const t=Array.from(e).map((e=>new Lr(e,this.getLineContent(e),this._getInjectedTextInLine(e))));this._onDidChangeInjectedText.fire(new Fr(t))}changeDecorations(e,t=0){this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(t,e)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_changeDecorations(e,t){const n={addDecoration:(t,n)=>this._deltaDecorationsImpl(e,[],[{range:t,options:n}])[0],changeDecoration:(e,t)=>{this._changeDecorationImpl(e,t)},changeDecorationOptions:(e,t)=>{this._changeDecorationOptionsImpl(e,so(t))},removeDecoration:t=>{this._deltaDecorationsImpl(e,[t],[])},deltaDecorations:(t,n)=>0===t.length&&0===n.length?[]:this._deltaDecorationsImpl(e,t,n)};let r=null;try{r=t(n)}catch(o){(0,l.dz)(o)}return n.addDecoration=Jr,n.changeDecoration=Jr,n.changeDecorationOptions=Jr,n.removeDecoration=Jr,n.deltaDecorations=Jr,r}deltaDecorations(e,t,n=0){if(this._assertNotDisposed(),e||(e=[]),0===e.length&&0===t.length)return[];try{return this._deltaDecorationCallCnt++,this._deltaDecorationCallCnt>1&&(console.warn("Invoking deltaDecorations recursively could lead to leaking decorations."),(0,l.dz)(new Error("Invoking deltaDecorations recursively could lead to leaking decorations."))),this._onDidChangeDecorations.beginDeferredEmit(),this._deltaDecorationsImpl(n,e,t)}finally{this._onDidChangeDecorations.endDeferredEmit(),this._deltaDecorationCallCnt--}}_getTrackedRange(e){return this.getDecorationRange(e)}_setTrackedRange(e,t,n){const r=e?this._decorations[e]:null;if(!r)return t?this._deltaDecorationsImpl(0,[],[{range:t,options:ao[n]}],!0)[0]:null;if(!t)return this._decorationsTree.delete(r),delete this._decorations[r.id],null;const o=this._validateRangeRelaxedNoAllocations(t),i=this._buffer.getOffsetAt(o.startLineNumber,o.startColumn),a=this._buffer.getOffsetAt(o.endLineNumber,o.endColumn);return this._decorationsTree.delete(r),r.reset(this.getVersionId(),i,a,o),r.setOptions(ao[n]),this._decorationsTree.insert(r),r.id}removeAllDecorationsWithOwnerId(e){if(this._isDisposed)return;const t=this._decorationsTree.collectNodesFromOwner(e);for(let n=0,r=t.length;n<r;n++){const e=t[n];this._decorationsTree.delete(e),delete this._decorations[e.id]}}getDecorationOptions(e){const t=this._decorations[e];return t?t.options:null}getDecorationRange(e){const t=this._decorations[e];return t?this._decorationsTree.getNodeRange(this,t):null}getLineDecorations(e,t=0,n=!1){return e<1||e>this.getLineCount()?[]:this.getLinesDecorations(e,e,t,n)}getLinesDecorations(e,t,n=0,r=!1,o=!1){const i=this.getLineCount(),s=Math.min(i,Math.max(1,e)),l=Math.min(i,Math.max(1,t)),c=this.getLineMaxColumn(l),d=new _.Q(s,1,l,c),u=this._getDecorationsInRange(d,n,r,o);return(0,a.E4)(u,this._decorationProvider.getDecorationsInRange(d,n,r)),u}getDecorationsInRange(e,t=0,n=!1,r=!1,o=!1){const i=this.validateRange(e),s=this._getDecorationsInRange(i,t,n,o);return(0,a.E4)(s,this._decorationProvider.getDecorationsInRange(i,t,n,r)),s}getOverviewRulerDecorations(e=0,t=!1){return this._decorationsTree.getAll(this,e,t,!0,!1)}getInjectedTextDecorations(e=0){return this._decorationsTree.getAllInjectedText(this,e)}_getInjectedTextInLine(e){const t=this._buffer.getOffsetAt(e,1),n=t+this._buffer.getLineLength(e),r=this._decorationsTree.getInjectedTextInInterval(this,t,n,0);return Mr.fromDecorations(r).filter((t=>t.lineNumber===e))}getAllDecorations(e=0,t=!1){let n=this._decorationsTree.getAll(this,e,t,!1,!1);return n=n.concat(this._decorationProvider.getAllDecorations(e,t)),n}getAllMarginDecorations(e=0){return this._decorationsTree.getAll(this,e,!1,!1,!0)}_getDecorationsInRange(e,t,n,r){const o=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),i=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn);return this._decorationsTree.getAllInInterval(this,o,i,t,n,r)}getRangeAt(e,t){return this._buffer.getRangeAt(e,t-e)}_changeDecorationImpl(e,t){const n=this._decorations[e];if(!n)return;if(n.options.after){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.endLineNumber)}if(n.options.before){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.startLineNumber)}const r=this._validateRangeRelaxedNoAllocations(t),o=this._buffer.getOffsetAt(r.startLineNumber,r.startColumn),i=this._buffer.getOffsetAt(r.endLineNumber,r.endColumn);this._decorationsTree.delete(n),n.reset(this.getVersionId(),o,i,r),this._decorationsTree.insert(n),this._onDidChangeDecorations.checkAffectedAndFire(n.options),n.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(r.endLineNumber),n.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(r.startLineNumber)}_changeDecorationOptionsImpl(e,t){const n=this._decorations[e];if(!n)return;const r=!(!n.options.overviewRuler||!n.options.overviewRuler.color),o=!(!t.overviewRuler||!t.overviewRuler.color);if(this._onDidChangeDecorations.checkAffectedAndFire(n.options),this._onDidChangeDecorations.checkAffectedAndFire(t),n.options.after||t.after){const e=this._decorationsTree.getNodeRange(this,n);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(n.options.before||t.before){const e=this._decorationsTree.getNodeRange(this,n);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}const i=r!==o,a=function(e){return!!e.after||!!e.before}(t)!==Yr(n);i||a?(this._decorationsTree.delete(n),n.setOptions(t),this._decorationsTree.insert(n)):n.setOptions(t)}_deltaDecorationsImpl(e,t,n,r=!1){const o=this.getVersionId(),i=t.length;let a=0;const s=n.length;let l=0;this._onDidChangeDecorations.beginDeferredEmit();try{const c=new Array(s);for(;a<i||l<s;){let d=null;if(a<i){do{d=this._decorations[t[a++]]}while(!d&&a<i);if(d){if(d.options.after){const e=this._decorationsTree.getNodeRange(this,d);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(d.options.before){const e=this._decorationsTree.getNodeRange(this,d);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}this._decorationsTree.delete(d),r||this._onDidChangeDecorations.checkAffectedAndFire(d.options)}}if(l<s){if(!d){const e=++this._lastDecorationId,t=`${this._instanceId};${e}`;d=new cn(t,0,0),this._decorations[t]=d}const t=n[l],i=this._validateRangeRelaxedNoAllocations(t.range),a=so(t.options),s=this._buffer.getOffsetAt(i.startLineNumber,i.startColumn),u=this._buffer.getOffsetAt(i.endLineNumber,i.endColumn);d.ownerId=e,d.reset(o,s,u,i),d.setOptions(a),d.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(i.endLineNumber),d.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(i.startLineNumber),r||this._onDidChangeDecorations.checkAffectedAndFire(a),this._decorationsTree.insert(d),c[l]=d.id,l++}else d&&delete this._decorations[d.id]}return c}finally{this._onDidChangeDecorations.endDeferredEmit()}}getLanguageId(){return this.tokenization.getLanguageId()}setLanguage(e,t){"string"===typeof e?(this._languageSelectionListener.clear(),this._setLanguage(e,t)):(this._languageSelectionListener.value=e.onDidChange((()=>this._setLanguage(e.languageId,t))),this._setLanguage(e.languageId,t))}_setLanguage(e,t){this.tokenization.setLanguageId(e,t),this._languageService.requestRichLanguageFeatures(e)}getLanguageIdAtPosition(e,t){return this.tokenization.getLanguageIdAtPosition(e,t)}getWordAtPosition(e){return this._tokenizationTextModelPart.getWordAtPosition(e)}getWordUntilPosition(e){return this._tokenizationTextModelPart.getWordUntilPosition(e)}normalizePosition(e,t){return e}getLineIndentColumn(e){return function(e){let t=0;for(const n of e){if(" "!==n&&"\t"!==n)break;t++}return t}(this.getLineContent(e))+1}};function $r(e){return!(!e.options.overviewRuler||!e.options.overviewRuler.color)}function Yr(e){return!!e.options.after||!!e.options.before}Xr=jr=Vr([Ur(4,zr),Ur(5,v.L),Ur(6,ie),Ur(7,K._Y)],Xr);class Qr{constructor(){this._decorationsTree0=new un,this._decorationsTree1=new un,this._injectedTextDecorationsTree=new un}ensureAllNodesHaveRanges(e){this.getAll(e,0,!1,!1,!1)}_ensureNodesHaveRanges(e,t){for(const n of t)null===n.range&&(n.range=e.getRangeAt(n.cachedAbsoluteStart,n.cachedAbsoluteEnd));return t}getAllInInterval(e,t,n,r,o,i){const a=e.getVersionId(),s=this._intervalSearch(t,n,r,o,a,i);return this._ensureNodesHaveRanges(e,s)}_intervalSearch(e,t,n,r,o,i){const a=this._decorationsTree0.intervalSearch(e,t,n,r,o,i),s=this._decorationsTree1.intervalSearch(e,t,n,r,o,i),l=this._injectedTextDecorationsTree.intervalSearch(e,t,n,r,o,i);return a.concat(s).concat(l)}getInjectedTextInInterval(e,t,n,r){const o=e.getVersionId(),i=this._injectedTextDecorationsTree.intervalSearch(t,n,r,!1,o,!1);return this._ensureNodesHaveRanges(e,i).filter((e=>e.options.showIfCollapsed||!e.range.isEmpty()))}getAllInjectedText(e,t){const n=e.getVersionId(),r=this._injectedTextDecorationsTree.search(t,!1,n,!1);return this._ensureNodesHaveRanges(e,r).filter((e=>e.options.showIfCollapsed||!e.range.isEmpty()))}getAll(e,t,n,r,o){const i=e.getVersionId(),a=this._search(t,n,r,i,o);return this._ensureNodesHaveRanges(e,a)}_search(e,t,n,r,o){if(n)return this._decorationsTree1.search(e,t,r,o);{const n=this._decorationsTree0.search(e,t,r,o),i=this._decorationsTree1.search(e,t,r,o),a=this._injectedTextDecorationsTree.search(e,t,r,o);return n.concat(i).concat(a)}}collectNodesFromOwner(e){const t=this._decorationsTree0.collectNodesFromOwner(e),n=this._decorationsTree1.collectNodesFromOwner(e),r=this._injectedTextDecorationsTree.collectNodesFromOwner(e);return t.concat(n).concat(r)}collectNodesPostOrder(){const e=this._decorationsTree0.collectNodesPostOrder(),t=this._decorationsTree1.collectNodesPostOrder(),n=this._injectedTextDecorationsTree.collectNodesPostOrder();return e.concat(t).concat(n)}insert(e){Yr(e)?this._injectedTextDecorationsTree.insert(e):$r(e)?this._decorationsTree1.insert(e):this._decorationsTree0.insert(e)}delete(e){Yr(e)?this._injectedTextDecorationsTree.delete(e):$r(e)?this._decorationsTree1.delete(e):this._decorationsTree0.delete(e)}getNodeRange(e,t){const n=e.getVersionId();return t.cachedVersionId!==n&&this._resolveNode(t,n),null===t.range&&(t.range=e.getRangeAt(t.cachedAbsoluteStart,t.cachedAbsoluteEnd)),t.range}_resolveNode(e,t){Yr(e)?this._injectedTextDecorationsTree.resolveNode(e,t):$r(e)?this._decorationsTree1.resolveNode(e,t):this._decorationsTree0.resolveNode(e,t)}acceptReplace(e,t,n,r){this._decorationsTree0.acceptReplace(e,t,n,r),this._decorationsTree1.acceptReplace(e,t,n,r),this._injectedTextDecorationsTree.acceptReplace(e,t,n,r)}}function Zr(e){return e.replace(/[^a-z0-9\-_]/gi," ")}class eo{constructor(e){this.color=e.color||"",this.darkColor=e.darkColor||""}}class to extends eo{constructor(e){super(e),this._resolvedColor=null,this.position="number"===typeof e.position?e.position:_e.A5.Center}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=null}_resolveColor(e,t){if("string"===typeof e)return e;const n=e?t.getColor(e.id):null;return n?n.toString():""}}class no{constructor(e){this.position=e?.position??_e.ZS.Center,this.persistLane=e?.persistLane}}class ro extends eo{constructor(e){super(e),this.position=e.position,this.sectionHeaderStyle=e.sectionHeaderStyle??null,this.sectionHeaderText=e.sectionHeaderText??null}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=void 0}_resolveColor(e,t){return"string"===typeof e?s.Q1.fromHex(e):t.getColor(e.id)}}class oo{static from(e){return e instanceof oo?e:new oo(e)}constructor(e){this.content=e.content||"",this.inlineClassName=e.inlineClassName||null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.attachedData=e.attachedData||null,this.cursorStops=e.cursorStops||null}}class io{static register(e){return new io(e)}static createDynamic(e){return new io(e)}constructor(e){this.description=e.description,this.blockClassName=e.blockClassName?Zr(e.blockClassName):null,this.blockDoesNotCollapse=e.blockDoesNotCollapse??null,this.blockIsAfterEnd=e.blockIsAfterEnd??null,this.blockPadding=e.blockPadding??null,this.stickiness=e.stickiness||0,this.zIndex=e.zIndex||0,this.className=e.className?Zr(e.className):null,this.shouldFillLineOnLineBreak=e.shouldFillLineOnLineBreak??null,this.hoverMessage=e.hoverMessage||null,this.glyphMarginHoverMessage=e.glyphMarginHoverMessage||null,this.lineNumberHoverMessage=e.lineNumberHoverMessage||null,this.isWholeLine=e.isWholeLine||!1,this.showIfCollapsed=e.showIfCollapsed||!1,this.collapseOnReplaceEdit=e.collapseOnReplaceEdit||!1,this.overviewRuler=e.overviewRuler?new to(e.overviewRuler):null,this.minimap=e.minimap?new ro(e.minimap):null,this.glyphMargin=e.glyphMarginClassName?new no(e.glyphMargin):null,this.glyphMarginClassName=e.glyphMarginClassName?Zr(e.glyphMarginClassName):null,this.linesDecorationsClassName=e.linesDecorationsClassName?Zr(e.linesDecorationsClassName):null,this.lineNumberClassName=e.lineNumberClassName?Zr(e.lineNumberClassName):null,this.linesDecorationsTooltip=e.linesDecorationsTooltip?c.jy(e.linesDecorationsTooltip):null,this.firstLineDecorationClassName=e.firstLineDecorationClassName?Zr(e.firstLineDecorationClassName):null,this.marginClassName=e.marginClassName?Zr(e.marginClassName):null,this.inlineClassName=e.inlineClassName?Zr(e.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=e.beforeContentClassName?Zr(e.beforeContentClassName):null,this.afterContentClassName=e.afterContentClassName?Zr(e.afterContentClassName):null,this.after=e.after?oo.from(e.after):null,this.before=e.before?oo.from(e.before):null,this.hideInCommentTokens=e.hideInCommentTokens??!1,this.hideInStringTokens=e.hideInStringTokens??!1}}io.EMPTY=io.register({description:"empty"});const ao=[io.register({description:"tracked-range-always-grows-when-typing-at-edges",stickiness:0}),io.register({description:"tracked-range-never-grows-when-typing-at-edges",stickiness:1}),io.register({description:"tracked-range-grows-only-when-typing-before",stickiness:2}),io.register({description:"tracked-range-grows-only-when-typing-after",stickiness:3})];function so(e){return e instanceof io?e:io.createDynamic(e)}class lo extends o.jG{constructor(e){super(),this.handleBeforeFire=e,this._actual=this._register(new r.vl),this.event=this._actual.event,this._affectedInjectedTextLines=null,this._deferredCnt=0,this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._affectsLineNumber=!1}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(){this._deferredCnt--,0===this._deferredCnt&&(this._shouldFireDeferred&&this.doFire(),this._affectedInjectedTextLines?.clear(),this._affectedInjectedTextLines=null)}recordLineAffectedByInjectedText(e){this._affectedInjectedTextLines||(this._affectedInjectedTextLines=new Set),this._affectedInjectedTextLines.add(e)}checkAffectedAndFire(e){this._affectsMinimap||=!!e.minimap?.position,this._affectsOverviewRuler||=!!e.overviewRuler?.color,this._affectsGlyphMargin||=!!e.glyphMarginClassName,this._affectsLineNumber||=!!e.lineNumberClassName,this.tryFire()}fire(){this._affectsMinimap=!0,this._affectsOverviewRuler=!0,this._affectsGlyphMargin=!0,this.tryFire()}tryFire(){0===this._deferredCnt?this.doFire():this._shouldFireDeferred=!0}doFire(){this.handleBeforeFire(this._affectedInjectedTextLines);const e={affectsMinimap:this._affectsMinimap,affectsOverviewRuler:this._affectsOverviewRuler,affectsGlyphMargin:this._affectsGlyphMargin,affectsLineNumber:this._affectsLineNumber};this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._actual.fire(e)}}class co extends o.jG{constructor(){super(),this._fastEmitter=this._register(new r.vl),this.fastEvent=this._fastEmitter.event,this._slowEmitter=this._register(new r.vl),this.slowEvent=this._slowEmitter.event,this._deferredCnt=0,this._deferredEvent=null}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(e=null){if(this._deferredCnt--,0===this._deferredCnt&&null!==this._deferredEvent){this._deferredEvent.rawContentChangedEvent.resultingSelection=e;const t=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(t),this._slowEmitter.fire(t)}}fire(e){this._deferredCnt>0?this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e:(this._fastEmitter.fire(e),this._slowEmitter.fire(e))}}var uo,po=n(360),fo=n(5600),mo=n(6456),_o=n(146),ho=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},go=function(e,t){return function(n,r){t(n,r,e)}};function yo(e){return e.toString()}class vo{constructor(e,t,n){this.model=e,this._modelEventListeners=new o.Cm,this.model=e,this._modelEventListeners.add(e.onWillDispose((()=>t(e)))),this._modelEventListeners.add(e.onDidChangeLanguage((t=>n(e,t))))}dispose(){this._modelEventListeners.dispose()}}const bo=i.j9||i.zx?1:2;class Eo{constructor(e,t,n,r,o,i,a,s){this.uri=e,this.initialUndoRedoSnapshot=t,this.time=n,this.sharesUndoRedoStack=r,this.heapSize=o,this.sha1=i,this.versionId=a,this.alternativeVersionId=s}}let So=class extends o.jG{static{uo=this}static{this.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK=20971520}constructor(e,t,n,o){super(),this._configurationService=e,this._resourcePropertiesService=t,this._undoRedoService=n,this._instantiationService=o,this._onModelAdded=this._register(new r.vl),this.onModelAdded=this._onModelAdded.event,this._onModelRemoved=this._register(new r.vl),this.onModelRemoved=this._onModelRemoved.event,this._onModelModeChanged=this._register(new r.vl),this.onModelLanguageChanged=this._onModelModeChanged.event,this._modelCreationOptionsByLanguageAndResource=Object.create(null),this._models={},this._disposedModels=new Map,this._disposedModelsHeapSize=0,this._register(this._configurationService.onDidChangeConfiguration((e=>this._updateModelOptions(e)))),this._updateModelOptions(void 0)}static _readModelOptions(e,t){let n=g.tabSize;if(e.editor&&"undefined"!==typeof e.editor.tabSize){const t=parseInt(e.editor.tabSize,10);isNaN(t)||(n=t),n<1&&(n=1)}let r="tabSize";if(e.editor&&"undefined"!==typeof e.editor.indentSize&&"tabSize"!==e.editor.indentSize){const t=parseInt(e.editor.indentSize,10);isNaN(t)||(r=Math.max(t,1))}let o=g.insertSpaces;e.editor&&"undefined"!==typeof e.editor.insertSpaces&&(o="false"!==e.editor.insertSpaces&&Boolean(e.editor.insertSpaces));let i=bo;const a=e.eol;"\r\n"===a?i=2:"\n"===a&&(i=1);let s=g.trimAutoWhitespace;e.editor&&"undefined"!==typeof e.editor.trimAutoWhitespace&&(s="false"!==e.editor.trimAutoWhitespace&&Boolean(e.editor.trimAutoWhitespace));let l=g.detectIndentation;e.editor&&"undefined"!==typeof e.editor.detectIndentation&&(l="false"!==e.editor.detectIndentation&&Boolean(e.editor.detectIndentation));let c=g.largeFileOptimizations;e.editor&&"undefined"!==typeof e.editor.largeFileOptimizations&&(c="false"!==e.editor.largeFileOptimizations&&Boolean(e.editor.largeFileOptimizations));let d=g.bracketPairColorizationOptions;return e.editor?.bracketPairColorization&&"object"===typeof e.editor.bracketPairColorization&&(d={enabled:!!e.editor.bracketPairColorization.enabled,independentColorPoolPerBracketType:!!e.editor.bracketPairColorization.independentColorPoolPerBracketType}),{isForSimpleWidget:t,tabSize:n,indentSize:r,insertSpaces:o,detectIndentation:l,defaultEOL:i,trimAutoWhitespace:s,largeFileOptimizations:c,bracketPairColorizationOptions:d}}_getEOL(e,t){if(e)return this._resourcePropertiesService.getEOL(e,t);const n=this._configurationService.getValue("files.eol",{overrideIdentifier:t});return n&&"string"===typeof n&&"auto"!==n?n:3===i.OS||2===i.OS?"\n":"\r\n"}_shouldRestoreUndoStack(){const e=this._configurationService.getValue("files.restoreUndoStack");return"boolean"!==typeof e||e}getCreationOptions(e,t,n){const r="string"===typeof e?e:e.languageId;let o=this._modelCreationOptionsByLanguageAndResource[r+t];if(!o){const e=this._configurationService.getValue("editor",{overrideIdentifier:r,resource:t}),i=this._getEOL(t,r);o=uo._readModelOptions({editor:e,eol:i},n),this._modelCreationOptionsByLanguageAndResource[r+t]=o}return o}_updateModelOptions(e){const t=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);const n=Object.keys(this._models);for(let r=0,o=n.length;r<o;r++){const o=n[r],i=this._models[o],a=i.model.getLanguageId(),s=i.model.uri;if(e&&!e.affectsConfiguration("editor",{overrideIdentifier:a,resource:s})&&!e.affectsConfiguration("files.eol",{overrideIdentifier:a,resource:s}))continue;const l=t[a+s],c=this.getCreationOptions(a,s,i.model.isForSimpleWidget);uo._setModelOptionsForModel(i.model,c,l)}}static _setModelOptionsForModel(e,t,n){n&&n.defaultEOL!==t.defaultEOL&&1===e.getLineCount()&&e.setEOL(1===t.defaultEOL?0:1),n&&n.detectIndentation===t.detectIndentation&&n.insertSpaces===t.insertSpaces&&n.tabSize===t.tabSize&&n.indentSize===t.indentSize&&n.trimAutoWhitespace===t.trimAutoWhitespace&&(0,_o.aI)(n.bracketPairColorizationOptions,t.bracketPairColorizationOptions)||(t.detectIndentation?(e.detectIndentation(t.insertSpaces,t.tabSize),e.updateOptions({trimAutoWhitespace:t.trimAutoWhitespace,bracketColorizationOptions:t.bracketPairColorizationOptions})):e.updateOptions({insertSpaces:t.insertSpaces,tabSize:t.tabSize,indentSize:t.indentSize,trimAutoWhitespace:t.trimAutoWhitespace,bracketColorizationOptions:t.bracketPairColorizationOptions}))}_insertDisposedModel(e){this._disposedModels.set(yo(e.uri),e),this._disposedModelsHeapSize+=e.heapSize}_removeDisposedModel(e){const t=this._disposedModels.get(yo(e));return t&&(this._disposedModelsHeapSize-=t.heapSize),this._disposedModels.delete(yo(e)),t}_ensureDisposedModelsHeapSize(e){if(this._disposedModelsHeapSize>e){const t=[];for(this._disposedModels.forEach((e=>{e.sharesUndoRedoStack||t.push(e)})),t.sort(((e,t)=>e.time-t.time));t.length>0&&this._disposedModelsHeapSize>e;){const e=t.shift();this._removeDisposedModel(e.uri),null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}}}_createModelData(e,t,n,r){const o=this.getCreationOptions(t,n,r),i=this._instantiationService.createInstance(Xr,e,t,o,n);if(n&&this._disposedModels.has(yo(n))){const e=this._removeDisposedModel(n),t=this._undoRedoService.getElements(n),r=this._getSHA1Computer(),o=!!r.canComputeSHA1(i)&&r.computeSHA1(i)===e.sha1;if(o||e.sharesUndoRedoStack){for(const e of t.past)Bt(e)&&e.matchesResource(n)&&e.setModel(i);for(const e of t.future)Bt(e)&&e.matchesResource(n)&&e.setModel(i);this._undoRedoService.setElementsValidFlag(n,!0,(e=>Bt(e)&&e.matchesResource(n))),o&&(i._overwriteVersionId(e.versionId),i._overwriteAlternativeVersionId(e.alternativeVersionId),i._overwriteInitialUndoRedoSnapshot(e.initialUndoRedoSnapshot))}else null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}const a=yo(i.uri);if(this._models[a])throw new Error("ModelService: Cannot add model because it already exists!");const s=new vo(i,(e=>this._onWillDispose(e)),((e,t)=>this._onDidChangeLanguage(e,t)));return this._models[a]=s,s}createModel(e,t,n,r=!1){let o;return o=t?this._createModelData(e,t,n,r):this._createModelData(e,X.vH,n,r),this._onModelAdded.fire(o.model),o.model}getModels(){const e=[],t=Object.keys(this._models);for(let n=0,r=t.length;n<r;n++){const r=t[n];e.push(this._models[r].model)}return e}getModel(e){const t=yo(e),n=this._models[t];return n?n.model:null}_schemaShouldMaintainUndoRedoElements(e){return e.scheme===mo.ny.file||e.scheme===mo.ny.vscodeRemote||e.scheme===mo.ny.vscodeUserData||e.scheme===mo.ny.vscodeNotebookCell||"fake-fs"===e.scheme}_onWillDispose(e){const t=yo(e.uri),n=this._models[t],r=this._undoRedoService.getUriComparisonKey(e.uri)!==e.uri.toString();let o=!1,i=0;if(r||this._shouldRestoreUndoStack()&&this._schemaShouldMaintainUndoRedoElements(e.uri)){const t=this._undoRedoService.getElements(e.uri);if(t.past.length>0||t.future.length>0){for(const n of t.past)Bt(n)&&n.matchesResource(e.uri)&&(o=!0,i+=n.heapSize(e.uri),n.setModel(e.uri));for(const n of t.future)Bt(n)&&n.matchesResource(e.uri)&&(o=!0,i+=n.heapSize(e.uri),n.setModel(e.uri))}}const a=uo.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK,s=this._getSHA1Computer();if(o)if(r||!(i>a)&&s.canComputeSHA1(e))this._ensureDisposedModelsHeapSize(a-i),this._undoRedoService.setElementsValidFlag(e.uri,!1,(t=>Bt(t)&&t.matchesResource(e.uri))),this._insertDisposedModel(new Eo(e.uri,n.model.getInitialUndoRedoSnapshot(),Date.now(),r,i,s.computeSHA1(e),e.getVersionId(),e.getAlternativeVersionId()));else{const e=n.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}else if(!r){const e=n.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}delete this._models[t],n.dispose(),delete this._modelCreationOptionsByLanguageAndResource[e.getLanguageId()+e.uri],this._onModelRemoved.fire(e)}_onDidChangeLanguage(e,t){const n=t.oldLanguage,r=e.getLanguageId(),o=this.getCreationOptions(n,e.uri,e.isForSimpleWidget),i=this.getCreationOptions(r,e.uri,e.isForSimpleWidget);uo._setModelOptionsForModel(e,i,o),this._onModelModeChanged.fire({model:e,oldLanguageId:n})}_getSHA1Computer(){return new To}};So=uo=ho([go(0,q.pG),go(1,po.ITextResourcePropertiesService),go(2,zr),go(3,K._Y)],So);class To{static{this.MAX_MODEL_SIZE=10485760}canComputeSHA1(e){return e.getValueLength()<=To.MAX_MODEL_SIZE}computeSHA1(e){const t=new fo.v7,n=e.createSnapshot();let r;for(;r=n.read();)t.update(r);return t.digest()}}},8938:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITextModelService:()=>r});const r=(0,n(3591).u1)("textModelService")},8232:(e,t,n)=>{"use strict";n.r(t),n.d(t,{encodeSemanticTokensDto:()=>i});var r=n(1674),o=n(8067);function i(e){const t=new Uint32Array(function(e){let t=0;if(t+=2,"full"===e.type)t+=1+e.data.length;else{t+=1,t+=3*e.deltas.length;for(const n of e.deltas)n.data&&(t+=n.data.length)}return t}(e));let n=0;if(t[n++]=e.id,"full"===e.type)t[n++]=1,t[n++]=e.data.length,t.set(e.data,n),n+=e.data.length;else{t[n++]=2,t[n++]=e.deltas.length;for(const r of e.deltas)t[n++]=r.start,t[n++]=r.deleteCount,r.data?(t[n++]=r.data.length,t.set(r.data,n),n+=r.data.length):t[n++]=0}return function(e){const t=new Uint8Array(e.buffer,e.byteOffset,4*e.length);return o.cm()||function(e){for(let t=0,n=e.length;t<n;t+=4){const n=e[t+0],r=e[t+1],o=e[t+2],i=e[t+3];e[t+0]=i,e[t+1]=o,e[t+2]=r,e[t+3]=n}}(t),r.MB.wrap(t)}(t)}},5538:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SemanticTokensProviderStyling:()=>_,toMultilineTokens2:()=>h});n(5982);var r=n(5724),o=n(3511),i=n(3069),a=n(6677),s=n(4454);class l{static create(e,t){return new l(e,new c(t))}get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._endLineNumber}constructor(e,t){this._startLineNumber=e,this._tokens=t,this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}toString(){return this._tokens.toString(this._startLineNumber)}_updateEndLineNumber(){this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}isEmpty(){return this._tokens.isEmpty()}getLineTokens(e){return this._startLineNumber<=e&&e<=this._endLineNumber?this._tokens.getLineTokens(e-this._startLineNumber):null}getRange(){const e=this._tokens.getRange();return e?new a.Q(this._startLineNumber+e.startLineNumber,e.startColumn,this._startLineNumber+e.endLineNumber,e.endColumn):e}removeTokens(e){const t=e.startLineNumber-this._startLineNumber,n=e.endLineNumber-this._startLineNumber;this._startLineNumber+=this._tokens.removeTokens(t,e.startColumn-1,n,e.endColumn-1),this._updateEndLineNumber()}split(e){const t=e.startLineNumber-this._startLineNumber,n=e.endLineNumber-this._startLineNumber,[r,o,i]=this._tokens.split(t,e.startColumn-1,n,e.endColumn-1);return[new l(this._startLineNumber,r),new l(this._startLineNumber+i,o)]}applyEdit(e,t){const[n,r,o]=(0,s.W)(t);this.acceptEdit(e,n,r,o,t.length>0?t.charCodeAt(0):0)}acceptEdit(e,t,n,r,o){this._acceptDeleteRange(e),this._acceptInsertText(new i.y(e.startLineNumber,e.startColumn),t,n,r,o),this._updateEndLineNumber()}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return;const t=e.startLineNumber-this._startLineNumber,n=e.endLineNumber-this._startLineNumber;if(n<0){const e=n-t;return void(this._startLineNumber-=e)}const r=this._tokens.getMaxDeltaLine();if(!(t>=r+1)){if(t<0&&n>=r+1)return this._startLineNumber=0,void this._tokens.clear();if(t<0){const r=-t;this._startLineNumber-=r,this._tokens.acceptDeleteRange(e.startColumn-1,0,0,n,e.endColumn-1)}else this._tokens.acceptDeleteRange(0,t,e.startColumn-1,n,e.endColumn-1)}}_acceptInsertText(e,t,n,r,o){if(0===t&&0===n)return;const i=e.lineNumber-this._startLineNumber;if(i<0)return void(this._startLineNumber+=t);i>=this._tokens.getMaxDeltaLine()+1||this._tokens.acceptInsertText(i,e.column-1,t,n,r,o)}}class c{constructor(e){this._tokens=e,this._tokenCount=e.length/4}toString(e){const t=[];for(let n=0;n<this._tokenCount;n++)t.push(`(${this._getDeltaLine(n)+e},${this._getStartCharacter(n)}-${this._getEndCharacter(n)})`);return`[${t.join(",")}]`}getMaxDeltaLine(){const e=this._getTokenCount();return 0===e?-1:this._getDeltaLine(e-1)}getRange(){const e=this._getTokenCount();if(0===e)return null;const t=this._getStartCharacter(0),n=this._getDeltaLine(e-1),r=this._getEndCharacter(e-1);return new a.Q(0,t+1,n,r+1)}_getTokenCount(){return this._tokenCount}_getDeltaLine(e){return this._tokens[4*e]}_getStartCharacter(e){return this._tokens[4*e+1]}_getEndCharacter(e){return this._tokens[4*e+2]}isEmpty(){return 0===this._getTokenCount()}getLineTokens(e){let t=0,n=this._getTokenCount()-1;for(;t<n;){const r=t+Math.floor((n-t)/2),o=this._getDeltaLine(r);if(o<e)t=r+1;else{if(!(o>e)){let o=r;for(;o>t&&this._getDeltaLine(o-1)===e;)o--;let i=r;for(;i<n&&this._getDeltaLine(i+1)===e;)i++;return new d(this._tokens.subarray(4*o,4*i+4))}n=r-1}}return this._getDeltaLine(t)===e?new d(this._tokens.subarray(4*t,4*t+4)):null}clear(){this._tokenCount=0}removeTokens(e,t,n,r){const o=this._tokens,i=this._tokenCount;let a=0,s=!1,l=0;for(let c=0;c<i;c++){const i=4*c,d=o[i],u=o[i+1],p=o[i+2],f=o[i+3];if((d>e||d===e&&p>=t)&&(d<n||d===n&&u<=r))s=!0;else{if(0===a&&(l=d),s){const e=4*a;o[e]=d-l,o[e+1]=u,o[e+2]=p,o[e+3]=f}a++}}return this._tokenCount=a,l}split(e,t,n,r){const o=this._tokens,i=this._tokenCount,a=[],s=[];let l=a,d=0,u=0;for(let c=0;c<i;c++){const i=4*c,a=o[i],p=o[i+1],f=o[i+2],m=o[i+3];if(a>e||a===e&&f>=t){if(a<n||a===n&&p<=r)continue;l!==s&&(l=s,d=0,u=a)}l[d++]=a-u,l[d++]=p,l[d++]=f,l[d++]=m}return[new c(new Uint32Array(a)),new c(new Uint32Array(s)),u]}acceptDeleteRange(e,t,n,r,o){const i=this._tokens,a=this._tokenCount,s=r-t;let l=0,c=!1;for(let d=0;d<a;d++){const u=4*d;let p=i[u],f=i[u+1],m=i[u+2];const _=i[u+3];if(p<t||p===t&&m<=n){l++;continue}if(p===t&&f<n)p===r&&m>o?m-=o-n:m=n;else if(p===t&&f===n){if(!(p===r&&m>o)){c=!0;continue}m-=o-n}else if(p<r||p===r&&f<o){if(!(p===r&&m>o)){c=!0;continue}p=t,f=n,m=f+(m-o)}else if(p>r){if(0===s&&!c){l=a;break}p-=s}else{if(!(p===r&&f>=o))throw new Error("Not possible!");e&&0===p&&(f+=e,m+=e),p-=s,f-=o-n,m-=o-n}const h=4*l;i[h]=p,i[h+1]=f,i[h+2]=m,i[h+3]=_,l++}this._tokenCount=l}acceptInsertText(e,t,n,r,o,i){const a=0===n&&1===r&&(i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122),s=this._tokens,l=this._tokenCount;for(let c=0;c<l;c++){const i=4*c;let l=s[i],d=s[i+1],u=s[i+2];if(!(l<e||l===e&&u<t)){if(l===e&&u===t){if(!a)continue;u+=1}else if(l===e&&d<t&&t<u)0===n?u+=r:u=t;else{if(l===e&&d===t&&a)continue;if(l===e)if(l+=n,0===n)d+=r,u+=r;else{const e=u-d;d=o+(d-t),u=d+e}else l+=n}s[i]=l,s[i+1]=d,s[i+2]=u}}}}class d{constructor(e){this._tokens=e}getCount(){return this._tokens.length/4}getStartCharacter(e){return this._tokens[4*e+1]}getEndCharacter(e){return this._tokens[4*e+2]}getMetadata(e){return this._tokens[4*e+3]}}var u=n(154),p=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},f=function(e,t){return function(n,r){t(n,r,e)}};const m=!1;let _=class{constructor(e,t,n,r){this._legend=e,this._themeService=t,this._languageService=n,this._logService=r,this._hasWarnedOverlappingTokens=!1,this._hasWarnedInvalidLengthTokens=!1,this._hasWarnedInvalidEditStart=!1,this._hashTable=new y}getMetadata(e,t,n){const r=this._languageService.languageIdCodec.encodeLanguageId(n),o=this._hashTable.get(e,t,r);let i;if(o)i=o.metadata;else{let o=this._legend.tokenTypes[e];const a=[];if(o){let e=t;for(let t=0;e>0&&t<this._legend.tokenModifiers.length;t++)1&e&&a.push(this._legend.tokenModifiers[t]),e>>=1;m;const r=this._themeService.getColorTheme().getTokenStyleMetadata(o,a,n);if("undefined"===typeof r)i=2147483647;else{if(i=0,"undefined"!==typeof r.italic){i|=1|(r.italic?1:0)<<11}if("undefined"!==typeof r.bold){i|=2|(r.bold?2:0)<<11}if("undefined"!==typeof r.underline){i|=4|(r.underline?4:0)<<11}if("undefined"!==typeof r.strikethrough){i|=8|(r.strikethrough?8:0)<<11}if(r.foreground){i|=16|r.foreground<<15}0===i&&(i=2147483647)}}else i=2147483647,o="not-in-legend";this._hashTable.add(e,t,r,i)}return i}warnOverlappingSemanticTokens(e,t){this._hasWarnedOverlappingTokens||(this._hasWarnedOverlappingTokens=!0,this._logService.warn(`Overlapping semantic tokens detected at lineNumber ${e}, column ${t}`))}warnInvalidLengthSemanticTokens(e,t){this._hasWarnedInvalidLengthTokens||(this._hasWarnedInvalidLengthTokens=!0,this._logService.warn(`Semantic token with invalid length detected at lineNumber ${e}, column ${t}`))}warnInvalidEditStart(e,t,n,r,o){this._hasWarnedInvalidEditStart||(this._hasWarnedInvalidEditStart=!0,this._logService.warn(`Invalid semantic tokens edit detected (previousResultId: ${e}, resultId: ${t}) at edit #${n}: The provided start offset ${r} is outside the previous data (length ${o}).`))}};function h(e,t,n){const r=e.data,o=e.data.length/5|0,i=Math.max(Math.ceil(o/1024),400),a=[];let s=0,c=1,d=0;for(;s<o;){const e=s;let u=Math.min(e+i,o);if(u<o){let t=u;for(;t-1>e&&0===r[5*t];)t--;if(t-1===e){let e=u;for(;e+1<o&&0===r[5*e];)e++;u=e}else u=t}let p=new Uint32Array(4*(u-e)),f=0,m=0,_=0,h=0;for(;s<u;){const e=5*s,o=r[e],i=r[e+1],a=c+o|0,l=0===o?d+i|0:i,u=l+r[e+2]|0,g=r[e+3],y=r[e+4];if(u<=l)t.warnInvalidLengthSemanticTokens(a,l+1);else if(_===a&&h>l)t.warnOverlappingSemanticTokens(a,l+1);else{const e=t.getMetadata(g,y,n);2147483647!==e&&(0===m&&(m=a),p[f]=a-m,p[f+1]=l,p[f+2]=u,p[f+3]=e,f+=4,_=a,h=u)}c=a,d=l,s++}f!==p.length&&(p=p.subarray(0,f));const g=l.create(m,p);a.push(g)}return a}_=p([f(1,r.Gy),f(2,u.L),f(3,o.rr)],_);class g{constructor(e,t,n,r){this.tokenTypeIndex=e,this.tokenModifierSet=t,this.languageId=n,this.metadata=r,this.next=null}}class y{static{this._SIZES=[3,7,13,31,61,127,251,509,1021,2039,4093,8191,16381,32749,65521,131071,262139,524287,1048573,2097143]}constructor(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=y._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<y._SIZES.length?2/3*this._currentLength:0),this._elements=[],y._nullOutEntries(this._elements,this._currentLength)}static _nullOutEntries(e,t){for(let n=0;n<t;n++)e[n]=null}_hash2(e,t){return(e<<5)-e+t|0}_hashFunc(e,t,n){return this._hash2(this._hash2(e,t),n)%this._currentLength}get(e,t,n){const r=this._hashFunc(e,t,n);let o=this._elements[r];for(;o;){if(o.tokenTypeIndex===e&&o.tokenModifierSet===t&&o.languageId===n)return o;o=o.next}return null}add(e,t,n,r){if(this._elementsCount++,0!==this._growCount&&this._elementsCount>=this._growCount){const e=this._elements;this._currentLengthIndex++,this._currentLength=y._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<y._SIZES.length?2/3*this._currentLength:0),this._elements=[],y._nullOutEntries(this._elements,this._currentLength);for(const t of e){let e=t;for(;e;){const t=e.next;e.next=null,this._add(e),e=t}}}this._add(new g(e,t,n,r))}_add(e){const t=this._hashFunc(e.tokenTypeIndex,e.tokenModifierSet,e.languageId);e.next=this._elements[t],this._elements[t]=e}}},4243:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ISemanticTokensStylingService:()=>r});const r=(0,n(3591).u1)("semanticTokensStylingService")},7004:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SemanticTokensStylingService:()=>p});var r=n(1484),o=n(154),i=n(5724),a=n(3511),s=n(5538),l=n(4243),c=n(4621),d=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},u=function(e,t){return function(n,r){t(n,r,e)}};let p=class extends r.jG{constructor(e,t,n){super(),this._themeService=e,this._logService=t,this._languageService=n,this._caches=new WeakMap,this._register(this._themeService.onDidColorThemeChange((()=>{this._caches=new WeakMap})))}getStyling(e){return this._caches.has(e)||this._caches.set(e,new s.SemanticTokensProviderStyling(e.getLegend(),this._themeService,this._languageService,this._logService)),this._caches.get(e)}};p=d([u(0,i.Gy),u(1,a.rr),u(2,o.L)],p),(0,c.v)(l.ISemanticTokensStylingService,p,1)},796:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MirrorModel:()=>g,STOP_SYNC_MODEL_DELTA_TIME_MS:()=>m,WorkerTextModelSyncClient:()=>_,WorkerTextModelSyncServer:()=>h});var r=n(1940),o=n(1484),i=n(9400),a=n(3069),s=n(6677),l=n(6486),c=n(1508),d=(n(9861),n(5152));class u{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=(0,d.j)(e);const n=this.values,r=this.prefixSum,o=t.length;return 0!==o&&(this.values=new Uint32Array(n.length+o),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+o),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=(0,d.j)(e),t=(0,d.j)(t),this.values[e]!==t&&(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,t){e=(0,d.j)(e),t=(0,d.j)(t);const n=this.values,r=this.prefixSum;if(e>=n.length)return!1;const o=n.length-e;return t>=o&&(t=o),0!==t&&(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 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=(0,d.j)(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;0===t&&(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,o=0,i=0;for(;t<=n;)if(r=t+(n-t)/2|0,o=this.prefixSum[r],i=o-this.values[r],e<i)n=r-1;else{if(!(e>=o))break;t=r+1}return new p(r,e-i)}}class p{constructor(e,t){this.index=e,this.remainder=t,this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=t}}class f{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 null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const t=e.changes;for(const n of t)this._acceptDeleteRange(n.range),this._acceptInsertText(new a.y(n.range.startLineNumber,n.range.startColumn),n.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const 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 u(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)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);else{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))}}_acceptInsertText(e,t){if(0===t.length)return;const n=(0,c.uz)(t);if(1===n.length)return void 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));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]);const r=new Uint32Array(n.length-1);for(let o=1;o<n.length;o++)this._lines.splice(e.lineNumber+o-1,0,n[o]),r[o-1]=n[o].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,r)}}const m=6e4;class _ extends o.jG{constructor(e,t,n=!1){if(super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=e,this._modelService=t,!n){const e=new r.vb;e.cancelAndSet((()=>this._checkStopModelSync()),Math.round(m/2)),this._register(e)}}dispose(){for(const e in this._syncedModels)(0,o.AS)(this._syncedModels[e]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(e,t=!1){for(const n of e){const e=n.toString();this._syncedModels[e]||this._beginModelSync(n,t),this._syncedModels[e]&&(this._syncedModelsLastUsedTime[e]=(new Date).getTime())}}_checkStopModelSync(){const e=(new Date).getTime(),t=[];for(const n in this._syncedModelsLastUsedTime){e-this._syncedModelsLastUsedTime[n]>m&&t.push(n)}for(const n of t)this._stopModelSync(n)}_beginModelSync(e,t){const n=this._modelService.getModel(e);if(!n)return;if(!t&&n.isTooLargeForSyncing())return;const r=e.toString();this._proxy.$acceptNewModel({url:n.uri.toString(),lines:n.getLinesContent(),EOL:n.getEOL(),versionId:n.getVersionId()});const i=new o.Cm;i.add(n.onDidChangeContent((e=>{this._proxy.$acceptModelChanged(r.toString(),e)}))),i.add(n.onWillDispose((()=>{this._stopModelSync(r)}))),i.add((0,o.s)((()=>{this._proxy.$acceptRemovedModel(r)}))),this._syncedModels[r]=i}_stopModelSync(e){const t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],(0,o.AS)(t)}}class h{constructor(){this._models=Object.create(null)}getModel(e){return this._models[e]}getModels(){const e=[];return Object.keys(this._models).forEach((t=>e.push(this._models[t]))),e}$acceptNewModel(e){this._models[e.url]=new g(i.r.parse(e.url),e.lines,e.EOL,e.versionId)}$acceptModelChanged(e,t){if(!this._models[e])return;this._models[e].onEvents(t)}$acceptRemovedModel(e){this._models[e]&&delete this._models[e]}}class g extends f{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){const t=[];for(let n=0;n<this._lines.length;n++){const r=this._lines[n],o=this.offsetAt(new a.y(n+1,1)),i=r.matchAll(e);for(const e of i)(e.index||0===e.index)&&(e.index=e.index+o),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){const n=(0,l.Th)(e.column,(0,l.Io)(t),this._lines[e.lineNumber-1],0);return n?new s.Q(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null}words(e){const t=this._lines,n=this._wordenize.bind(this);let r=0,o="",i=0,a=[];return{*[Symbol.iterator](){for(;;)if(i<a.length){const e=o.substring(a[i].start,a[i].end);i+=1,yield e}else{if(!(r<t.length))break;o=t[r],a=n(o,e),i=0,r+=1}}}}getLineWords(e,t){const n=this._lines[e-1],r=this._wordenize(n,t),o=[];for(const i of r)o.push({word:n.substring(i.start,i.end),startColumn:i.start+1,endColumn:i.end+1});return o}_wordenize(e,t){const n=[];let r;for(t.lastIndex=0;(r=t.exec(e))&&0!==r[0].length;)n.push({start:r.index,end:r.index+r[0].length});return n}getValueInRange(e){if((e=this._validateRange(e)).startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);const t=this._eol,n=e.startLineNumber-1,r=e.endLineNumber-1,o=[];o.push(this._lines[n].substring(e.startColumn-1));for(let i=n+1;i<r;i++)o.push(this._lines[i]);return o.push(this._lines[r].substring(0,e.endColumn-1)),o.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();const 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){const 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(!a.y.isIPosition(e))throw new 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{const 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}}},8868:(e,t,n)=>{"use strict";n.r(t)},360:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITextResourceConfigurationService:()=>o,ITextResourcePropertiesService:()=>i});var r=n(3591);const o=(0,r.u1)("textResourceConfigurationService"),i=(0,r.u1)("textResourcePropertiesService")},4432:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITreeSitterParserService:()=>r});const r=(0,n(3591).u1)("treeSitterParserService")},6723:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DraggedTreeItemsIdentifier:()=>o,TreeViewsDnDService:()=>r});class r{constructor(){this._dragOperations=new Map}removeDragOperationTransfer(e){if(e&&this._dragOperations.has(e)){const t=this._dragOperations.get(e);return this._dragOperations.delete(e),t}}}class o{constructor(e){this.identifier=e}}},9100:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITreeViewsDnDService:()=>a});var r=n(4621),o=n(3591),i=n(6723);const a=(0,o.u1)("treeViewsDndService");(0,r.v)(a,i.TreeViewsDnDService,1)},4855:(e,t,n)=>{"use strict";n.r(t),n.d(t,{UnicodeTextModelHighlighter:()=>l});var r=n(6677),o=n(7729),i=n(1508),a=n(6782),s=n(6486);class l{static computeUnicodeHighlights(e,t,n){const l=n?n.startLineNumber:1,d=n?n.endLineNumber:e.getLineCount(),u=new c(t),p=u.getCandidateCodePoints();let f;var m;f="allNonBasicAscii"===p?new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):new RegExp(""+(m=Array.from(p),`[${i.bm(m.map((e=>String.fromCodePoint(e))).join(""))}]`),"g");const _=new o.W5(null,f),h=[];let g,y=!1,v=0,b=0,E=0;e:for(let o=l,c=d;o<=c;o++){const t=e.getLineContent(o),n=t.length;_.reset(0);do{if(g=_.next(t),g){let e=g.index,l=g.index+g[0].length;if(e>0){const n=t.charCodeAt(e-1);i.pc(n)&&e--}if(l+1<n){const e=t.charCodeAt(l-1);i.pc(e)&&l++}const c=t.substring(e,l);let d=(0,s.Th)(e+1,s.Ld,t,0);d&&d.endColumn<=e+1&&(d=null);const p=u.shouldHighlightNonBasicASCII(c,d?d.word:null);if(0!==p){3===p?v++:2===p?b++:1===p?E++:(0,a.xb)(p);const t=1e3;if(h.length>=t){y=!0;break e}h.push(new r.Q(o,e+1,o,l+1))}}}while(g)}return{ranges:h,hasMore:y,ambiguousCharacterCount:v,invisibleCharacterCount:b,nonBasicAsciiCharacterCount:E}}static computeUnicodeHighlightReason(e,t){const n=new c(t);switch(n.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const r=e.codePointAt(0),o=n.ambiguousCharacters.getPrimaryConfusable(r),a=i.tl.getLocales().filter((e=>!i.tl.getInstance(new Set([...t.allowedLocales,e])).isAmbiguous(r)));return{kind:0,confusableWith:String.fromCodePoint(o),notAmbiguousInLocales:a}}case 1:return{kind:2}}}}class c{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=i.tl.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const t of i.y_.codePoints)d(String.fromCodePoint(t))||e.add(t);if(this.options.ambiguousCharacters)for(const t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(const t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e,t){const n=e.codePointAt(0);if(this.allowedCodePoints.has(n))return 0;if(this.options.nonBasicASCII)return 1;let r=!1,o=!1;if(t)for(const a of t){const e=a.codePointAt(0),t=i.aC(a);r=r||t,t||this.ambiguousCharacters.isAmbiguous(e)||i.y_.isInvisibleCharacter(e)||(o=!0)}return!r&&o?0:this.options.invisibleCharacters&&!d(e)&&i.y_.isInvisibleCharacter(n)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(n)?3:0}}function d(e){return" "===e||"\n"===e||"\t"===e}},8209:(e,t,n)=>{"use strict";function r(){return globalThis._VSCODE_NLS_LANGUAGE}n.d(t,{i8:()=>r,kg:()=>a});const o="pseudo"===r()||"undefined"!==typeof document&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function i(e,t){let n;return n=0===t.length?e:e.replace(/\{(\d+)\}/g,((e,n)=>{const r=n[0],o=t[r];let i=e;return"string"===typeof o?i=o:"number"!==typeof o&&"boolean"!==typeof o&&void 0!==o&&null!==o||(i=String(o)),i})),o&&(n="\uff3b"+n.replace(/[aouei]/g,"$&$&")+"\uff3d"),n}function a(e,t,...n){return i("number"===typeof e?s(e,t):t,n)}function s(e,t){const n=globalThis._VSCODE_NLS_MESSAGES?.[e];if("string"!==typeof n){if("string"===typeof t)return t;throw new Error(`!!! NLS MISSING: ${e} !!!`)}return n}},4001:(e,t,n)=>{"use strict";n.d(t,{Mo:()=>o,pG:()=>r});const r=(0,n(3591).u1)("configurationService");function o(e){return e.replace(/[\[\]]/g,"")}},1646:(e,t,n)=>{"use strict";n.d(t,{Fd:()=>d});var r=n(9861),o=n(1234),i=n(631),a=n(8209),s=n(4001),l=n(8748),c=n(6359);const d={Configuration:"base.contributions.configuration"},u={properties:{},patternProperties:{}},p={properties:{},patternProperties:{}},f={properties:{},patternProperties:{}},m={properties:{},patternProperties:{}},_={properties:{},patternProperties:{}},h={properties:{},patternProperties:{}},g="vscode://schemas/settings/resourceLanguage",y=c.O.as(l.F.JSONContribution);const v="\\[([^\\]]+)\\]",b=new RegExp(v,"g"),E=`^(${v})+$`,S=new RegExp(E);function T(e){const t=[];if(S.test(e)){let n=b.exec(e);for(;n?.length;){const r=n[1].trim();r&&t.push(r),n=b.exec(e)}}return(0,r.dM)(t)}const x=new class{constructor(){this.registeredConfigurationDefaults=[],this.overrideIdentifiers=new Set,this._onDidSchemaChange=new o.vl,this._onDidUpdateConfiguration=new o.vl,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:a.kg("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!0,allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.policyConfigurations=new Map,this.excludedConfigurationProperties={},y.registerSchema(g,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(e,t=!0){this.registerConfigurations([e],t)}registerConfigurations(e,t=!0){const n=new Set;this.doRegisterConfigurations(e,t,n),y.registerSchema(g,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:n})}registerDefaultConfigurations(e){const t=new Set;this.doRegisterDefaultConfigurations(e,t),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:t,defaultsOverrides:!0})}doRegisterDefaultConfigurations(e,t){this.registeredConfigurationDefaults.push(...e);const n=[];for(const{overrides:r,source:o}of e)for(const e in r){t.add(e);const i=this.configurationDefaultsOverrides.get(e)??this.configurationDefaultsOverrides.set(e,{configurationDefaultOverrides:[]}).get(e),a=r[e];if(i.configurationDefaultOverrides.push({value:a,source:o}),S.test(e)){const t=this.mergeDefaultConfigurationsForOverrideIdentifier(e,a,o,i.configurationDefaultOverrideValue);if(!t)continue;i.configurationDefaultOverrideValue=t,this.updateDefaultOverrideProperty(e,t,o),n.push(...T(e))}else{const t=this.mergeDefaultConfigurationsForConfigurationProperty(e,a,o,i.configurationDefaultOverrideValue);if(!t)continue;i.configurationDefaultOverrideValue=t;const n=this.configurationProperties[e];n&&(this.updatePropertyDefaultValue(e,n),this.updateSchema(e,n))}}this.doRegisterOverrideIdentifiers(n)}updateDefaultOverrideProperty(e,t,n){const r={type:"object",default:t.value,description:a.kg("defaultLanguageConfiguration.description","Configure settings to be overridden for the {0} language.",(0,s.Mo)(e)),$ref:g,defaultDefaultValue:t.value,source:n,defaultValueSource:n};this.configurationProperties[e]=r,this.defaultLanguageConfigurationOverridesNode.properties[e]=r}mergeDefaultConfigurationsForOverrideIdentifier(e,t,n,r){const o=r?.value||{},a=r?.source??new Map;if(a instanceof Map){for(const e of Object.keys(t)){const r=t[e];if(i.Gv(r)&&(i.b0(o[e])||i.Gv(o[e]))){if(o[e]={...o[e]??{},...r},n)for(const t in r)a.set(`${e}.${t}`,n)}else o[e]=r,n?a.set(e,n):a.delete(e)}return{value:o,source:a}}console.error("objectConfigurationSources is not a Map")}mergeDefaultConfigurationsForConfigurationProperty(e,t,n,r){const o=this.configurationProperties[e],a=r?.value??o?.defaultDefaultValue;let s=n;if(i.Gv(t)&&(void 0!==o&&"object"===o.type||void 0===o&&(i.b0(a)||i.Gv(a)))){if(s=r?.source??new Map,!(s instanceof Map))return void console.error("defaultValueSource is not a Map");for(const r in t)n&&s.set(`${e}.${r}`,n);t={...i.Gv(a)?a:{},...t}}return{value:t,source:s}}registerOverrideIdentifiers(e){this.doRegisterOverrideIdentifiers(e),this._onDidSchemaChange.fire()}doRegisterOverrideIdentifiers(e){for(const t of e)this.overrideIdentifiers.add(t);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(e,t,n){e.forEach((e=>{this.validateAndRegisterProperties(e,t,e.extensionInfo,e.restrictedProperties,void 0,n),this.configurationContributors.push(e),this.registerJSONConfiguration(e)}))}validateAndRegisterProperties(e,t=!0,n,r,o=3,a){o=i.z(e.scope)?o:e.scope;const s=e.properties;if(s)for(const c in s){const e=s[c];t&&A(c,e)?delete s[c]:(e.source=n,e.defaultDefaultValue=s[c].default,this.updatePropertyDefaultValue(c,e),S.test(c)?e.scope=void 0:(e.scope=i.z(e.scope)?o:e.scope,e.restricted=i.z(e.restricted)?!!r?.includes(c):e.restricted),!s[c].hasOwnProperty("included")||s[c].included?(this.configurationProperties[c]=s[c],s[c].policy?.name&&this.policyConfigurations.set(s[c].policy.name,c),!s[c].deprecationMessage&&s[c].markdownDeprecationMessage&&(s[c].deprecationMessage=s[c].markdownDeprecationMessage),a.add(c)):(this.excludedConfigurationProperties[c]=s[c],delete s[c]))}const l=e.allOf;if(l)for(const i of l)this.validateAndRegisterProperties(i,t,n,r,o,a)}getConfigurationProperties(){return this.configurationProperties}getPolicyConfigurations(){return this.policyConfigurations}registerJSONConfiguration(e){const t=e=>{const n=e.properties;if(n)for(const t in n)this.updateSchema(t,n[t]);const r=e.allOf;r?.forEach(t)};t(e)}updateSchema(e,t){switch(u.properties[e]=t,t.scope){case 1:p.properties[e]=t;break;case 2:f.properties[e]=t;break;case 6:m.properties[e]=t;break;case 3:_.properties[e]=t;break;case 4:h.properties[e]=t;break;case 5:h.properties[e]=t,this.resourceLanguageSettingsSchema.properties[e]=t}}updateOverridePropertyPatternKey(){for(const e of this.overrideIdentifiers.values()){const t=`[${e}]`,n={type:"object",description:a.kg("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:a.kg("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:g};this.updatePropertyDefaultValue(t,n),u.properties[t]=n,p.properties[t]=n,f.properties[t]=n,m.properties[t]=n,_.properties[t]=n,h.properties[t]=n}}registerOverridePropertyPatternKey(){const e={type:"object",description:a.kg("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:a.kg("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:g};u.patternProperties[E]=e,p.patternProperties[E]=e,f.patternProperties[E]=e,m.patternProperties[E]=e,_.patternProperties[E]=e,h.patternProperties[E]=e,this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,t){const n=this.configurationDefaultsOverrides.get(e)?.configurationDefaultOverrideValue;let r,o;!n||t.disallowConfigurationDefault&&n.source||(r=n.value,o=n.source),i.b0(r)&&(r=t.defaultDefaultValue,o=void 0),i.b0(r)&&(r=function(e){switch(Array.isArray(e)?e[0]:e){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}(t.type)),t.default=r,t.defaultValueSource=o}};function A(e,t){return e.trim()?S.test(e)?a.kg("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e):void 0!==x.getConfigurationProperties()[e]?a.kg("config.property.duplicate","Cannot register '{0}'. This property is already registered.",e):t.policy?.name&&void 0!==x.getPolicyConfigurations().get(t.policy?.name)?a.kg("config.policy.duplicate","Cannot register '{0}'. The associated policy {1} is already registered with {2}.",e,t.policy?.name,x.getPolicyConfigurations().get(t.policy?.name)):null:a.kg("config.property.empty","Cannot register an empty property")}c.O.add(d.Configuration,x)},4621:(e,t,n)=>{"use strict";n.d(t,{v:()=>i});class r{constructor(e,t=[],n=!1){this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=n}}const o=[];function i(e,t,n){t instanceof r||(t=new r(t,[],Boolean(n))),o.push([e,t])}},3591:(e,t,n)=>{"use strict";var r;n.d(t,{_Y:()=>o,u1:()=>i}),function(e){e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=function(t){return t[e.DI_DEPENDENCIES]||[]}}(r||(r={}));const o=i("instantiationService");function i(e){if(r.serviceIds.has(e))return r.serviceIds.get(e);const t=function(e,n,o){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");!function(e,t,n){t[r.DI_TARGET]===t?t[r.DI_DEPENDENCIES].push({id:e,index:n}):(t[r.DI_DEPENDENCIES]=[{id:e,index:n}],t[r.DI_TARGET]=t)}(t,e,o)};return t.toString=()=>e,r.serviceIds.set(e,t),t}},8748:(e,t,n)=>{"use strict";n.d(t,{F:()=>i});var r=n(1234),o=n(6359);const i={JSONContribution:"base.contributions.json"};const a=new class{constructor(){this._onDidChangeSchema=new r.vl,this.schemasById={}}registerSchema(e,t){var n;this.schemasById[(n=e,n.length>0&&"#"===n.charAt(n.length-1)?n.substring(0,n.length-1):n)]=t,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}};o.O.add(i.JSONContribution,a)},3511:(e,t,n)=>{"use strict";n.d(t,{rr:()=>X,$b:()=>$});n(1234);var r=n(1484),o=n(8067),i=n(1508),a=n(4383),s=n(8209);function l(...e){switch(e.length){case 1:return(0,s.kg)("contextkey.scanner.hint.didYouMean1","Did you mean {0}?",e[0]);case 2:return(0,s.kg)("contextkey.scanner.hint.didYouMean2","Did you mean {0} or {1}?",e[0],e[1]);case 3:return(0,s.kg)("contextkey.scanner.hint.didYouMean3","Did you mean {0}, {1} or {2}?",e[0],e[1],e[2]);default:return}}const c=(0,s.kg)("contextkey.scanner.hint.didYouForgetToOpenOrCloseQuote","Did you forget to open or close the quote?"),d=(0,s.kg)("contextkey.scanner.hint.didYouForgetToEscapeSlash","Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'.");class u{constructor(){this._input="",this._start=0,this._current=0,this._tokens=[],this._errors=[],this.stringRe=/[a-zA-Z0-9_<>\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(e){switch(e.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return e.isTripleEq?"===":"==";case 4:return e.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:case 8:return">=";case 9:return"=~";case 10:case 17:case 18:case 19:return e.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 20:return"EOF";default:throw(0,a.iH)(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}static{this._regexFlags=new Set(["i","g","s","m","y","u"].map((e=>e.charCodeAt(0))))}static{this._keywords=new Map([["not",14],["in",13],["false",12],["true",11]])}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();){this._start=this._current;switch(this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){const e=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:e})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){const e=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:e})}else this._match(126)?this._addToken(9):this._error(l("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(l("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(l("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return!this._isAtEnd()&&(this._input.charCodeAt(this._current)===e&&(this._current++,!0))}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){const t=this._start,n=this._input.substring(this._start,this._current),r={type:19,offset:this._start,lexeme:n};this._errors.push({offset:t,lexeme:n,additionalInfo:e}),this._tokens.push(r)}_string(){this.stringRe.lastIndex=this._start;const e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;const t=this._input.substring(this._start,this._current),n=u._keywords.get(t);n?this._addToken(n):this._tokens.push({type:17,lexeme:t,offset:this._start})}}_quotedString(){for(;39!==this._peek()&&!this._isAtEnd();)this._advance();this._isAtEnd()?this._error(c):(this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1}))}_regex(){let e=this._current,t=!1,n=!1;for(;;){if(e>=this._input.length)return this._current=e,void this._error(d);const r=this._input.charCodeAt(e);if(t)t=!1;else{if(47===r&&!n){e++;break}91===r?n=!0:92===r?t=!0:93===r&&(n=!1)}e++}for(;e<this._input.length&&u._regexFlags.has(this._input.charCodeAt(e));)e++;this._current=e;const r=this._input.substring(this._start,this._current);this._tokens.push({type:10,lexeme:r,offset:this._start})}_isAtEnd(){return this._current>=this._input.length}}var p=n(3591);const f=new Map;f.set("false",!1),f.set("true",!0),f.set("isMac",o.zx),f.set("isLinux",o.j9),f.set("isWindows",o.uF),f.set("isWeb",o.HZ),f.set("isMacNative",o.zx&&!o.HZ),f.set("isEdge",o.UP),f.set("isFirefox",o.gm),f.set("isChrome",o.H8),f.set("isSafari",o.nr);const m=Object.prototype.hasOwnProperty,_={regexParsingWithErrorRecovery:!0},h=(0,s.kg)("contextkey.parser.error.emptyString","Empty context key expression"),g=(0,s.kg)("contextkey.parser.error.emptyString.hint","Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),y=(0,s.kg)("contextkey.parser.error.noInAfterNot","'in' after 'not'."),v=(0,s.kg)("contextkey.parser.error.closingParenthesis","closing parenthesis ')'"),b=(0,s.kg)("contextkey.parser.error.unexpectedToken","Unexpected token"),E=(0,s.kg)("contextkey.parser.error.unexpectedToken.hint","Did you forget to put && or || before the token?"),S=(0,s.kg)("contextkey.parser.error.unexpectedEOF","Unexpected end of expression"),T=(0,s.kg)("contextkey.parser.error.unexpectedEOF.hint","Did you forget to put a context key?");class x{static{this._parseError=new Error}constructor(e=_){this._config=e,this._scanner=new u,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(""!==e){this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{const e=this._expr();if(!this._isAtEnd()){const e=this._peek(),t=17===e.type?E:void 0;throw this._parsingErrors.push({message:b,offset:e.offset,lexeme:u.getLexeme(e),additionalInfo:t}),x._parseError}return e}catch(t){if(t!==x._parseError)throw t;return}}else this._parsingErrors.push({message:h,offset:0,lexeme:"",additionalInfo:g})}_expr(){return this._or()}_or(){const e=[this._and()];for(;this._matchOne(16);){const t=this._and();e.push(t)}return 1===e.length?e[0]:A.or(...e)}_and(){const e=[this._term()];for(;this._matchOne(15);){const t=this._term();e.push(t)}return 1===e.length?e[0]:A.and(...e)}_term(){if(this._matchOne(2)){const e=this._peek();switch(e.type){case 11:return this._advance(),R.INSTANCE;case 12:return this._advance(),C.INSTANCE;case 0:{this._advance();const e=this._expr();return this._consume(1,v),e?.negate()}case 17:return this._advance(),P.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){const e=this._peek();switch(e.type){case 11:return this._advance(),A.true();case 12:return this._advance(),A.false();case 0:{this._advance();const e=this._expr();return this._consume(1,v),e}case 17:{const r=e.lexeme;if(this._advance(),this._matchOne(9)){const e=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),10!==e.type)throw this._errExpectedButGot("REGEX",e);const n=e.lexeme,o=n.lastIndexOf("/"),i=o===n.length-1?void 0:this._removeFlagsGY(n.substring(o+1));let a;try{a=new RegExp(n.substring(1,o),i)}catch(t){throw this._errExpectedButGot("REGEX",e)}return B.create(r,a)}switch(e.type){case 10:case 19:{const n=[e.lexeme];this._advance();let o=this._peek(),i=0;for(let t=0;t<e.lexeme.length;t++)40===e.lexeme.charCodeAt(t)?i++:41===e.lexeme.charCodeAt(t)&&i--;for(;!this._isAtEnd()&&15!==o.type&&16!==o.type;){switch(o.type){case 0:i++;break;case 1:i--;break;case 10:case 18:for(let t=0;t<o.lexeme.length;t++)40===o.lexeme.charCodeAt(t)?i++:41===e.lexeme.charCodeAt(t)&&i--}if(i<0)break;n.push(u.getLexeme(o)),this._advance(),o=this._peek()}const a=n.join(""),s=a.lastIndexOf("/"),l=s===a.length-1?void 0:this._removeFlagsGY(a.substring(s+1));let c;try{c=new RegExp(a.substring(1,s),l)}catch(t){throw this._errExpectedButGot("REGEX",e)}return A.regex(r,c)}case 18:{const t=e.lexeme;this._advance();let o=null;if(!(0,i.AV)(t)){const r=t.indexOf("/"),i=t.lastIndexOf("/");if(r!==i&&r>=0){const a=t.slice(r+1,i),s="i"===t[i+1]?"i":"";try{o=new RegExp(a,s)}catch(n){throw this._errExpectedButGot("REGEX",e)}}}if(null===o)throw this._errExpectedButGot("REGEX",e);return B.create(r,o)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,y);const e=this._value();return A.notIn(r,e)}switch(this._peek().type){case 3:{this._advance();const e=this._value();if(18===this._previous().type)return A.equals(r,e);switch(e){case"true":return A.has(r);case"false":return A.not(r);default:return A.equals(r,e)}}case 4:{this._advance();const e=this._value();if(18===this._previous().type)return A.notEquals(r,e);switch(e){case"true":return A.not(r);case"false":return A.has(r);default:return A.notEquals(r,e)}}case 5:return this._advance(),W.create(r,this._value());case 6:return this._advance(),z.create(r,this._value());case 7:return this._advance(),O.create(r,this._value());case 8:return this._advance(),F.create(r,this._value());case 13:return this._advance(),A.in(r,this._value());default:return A.has(r)}}case 20:throw this._parsingErrors.push({message:S,offset:e.offset,lexeme:"",additionalInfo:T}),x._parseError;default:throw this._errExpectedButGot("true | false | KEY \n\t| KEY '=~' REGEX \n\t| KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value",this._peek())}}_value(){const e=this._peek();switch(e.type){case 17:case 18:return this._advance(),e.lexeme;case 11:return this._advance(),"true";case 12:return this._advance(),"false";case 13:return this._advance(),"in";default:return""}}_removeFlagsGY(e){return e.replaceAll(this._flagsGYRe,"")}_previous(){return this._tokens[this._current-1]}_matchOne(e){return!!this._check(e)&&(this._advance(),!0)}_advance(){return this._isAtEnd()||this._current++,this._previous()}_consume(e,t){if(this._check(e))return this._advance();throw this._errExpectedButGot(t,this._peek())}_errExpectedButGot(e,t,n){const r=(0,s.kg)("contextkey.parser.error.expectedButGot","Expected: {0}\nReceived: '{1}'.",e,u.getLexeme(t)),o=t.offset,i=u.getLexeme(t);return this._parsingErrors.push({message:r,offset:o,lexeme:i,additionalInfo:n}),x._parseError}_check(e){return this._peek().type===e}_peek(){return this._tokens[this._current]}_isAtEnd(){return 20===this._peek().type}}class A{static false(){return R.INSTANCE}static true(){return C.INSTANCE}static has(e){return D.create(e)}static equals(e,t){return N.create(e,t)}static notEquals(e,t){return k.create(e,t)}static regex(e,t){return B.create(e,t)}static in(e,t){return M.create(e,t)}static notIn(e,t){return L.create(e,t)}static not(e){return P.create(e)}static and(...e){return V.create(e,null,!0)}static or(...e){return U.create(e,null,!0)}static{this._parser=new x({regexParsingWithErrorRecovery:!1})}static deserialize(e){if(void 0===e||null===e)return;return this._parser.parse(e)}}function I(e,t){return e.cmp(t)}class R{static{this.INSTANCE=new R}constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!1}serialize(){return"false"}keys(){return[]}negate(){return C.INSTANCE}}class C{static{this.INSTANCE=new C}constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!0}serialize(){return"true"}keys(){return[]}negate(){return R.INSTANCE}}class D{static create(e,t=null){const n=f.get(e);return"boolean"===typeof n?n?C.INSTANCE:R.INSTANCE:new D(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=2}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=f.get(this.key);return"boolean"===typeof e?e?C.INSTANCE:R.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=P.create(this.key,this)),this.negated}}class N{static create(e,t,n=null){if("boolean"===typeof t)return t?D.create(e,n):P.create(e,n);const r=f.get(e);if("boolean"===typeof r){return t===(r?"true":"false")?C.INSTANCE:R.INSTANCE}return new N(e,t,n)}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=4}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=f.get(this.key);if("boolean"===typeof e){const t=e?"true":"false";return this.value===t?C.INSTANCE:R.INSTANCE}return this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=k.create(this.key,this.value,this)),this.negated}}class M{static create(e,t){return new M(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=10,this.negated=null}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type&&(this.key===e.key&&this.valueKey===e.valueKey)}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.valueKey),n=e.getValue(this.key);return Array.isArray(t)?t.includes(n):"string"===typeof n&&"object"===typeof t&&null!==t&&m.call(t,n)}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=L.create(this.key,this.valueKey)),this.negated}}class L{static create(e,t){return new L(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=11,this._negated=M.create(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:this._negated.cmp(e._negated)}equals(e){return e.type===this.type&&this._negated.equals(e._negated)}substituteConstants(){return this}evaluate(e){return!this._negated.evaluate(e)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}negate(){return this._negated}}class k{static create(e,t,n=null){if("boolean"===typeof t)return t?P.create(e,n):D.create(e,n);const r=f.get(e);if("boolean"===typeof r){return t===(r?"true":"false")?R.INSTANCE:C.INSTANCE}return new k(e,t,n)}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=5}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=f.get(this.key);if("boolean"===typeof e){const t=e?"true":"false";return this.value===t?R.INSTANCE:C.INSTANCE}return this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=N.create(this.key,this.value,this)),this.negated}}class P{static create(e,t=null){const n=f.get(e);return"boolean"===typeof n?n?R.INSTANCE:C.INSTANCE:new P(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=3}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=f.get(this.key);return"boolean"===typeof e?e?R.INSTANCE:C.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=D.create(this.key,this)),this.negated}}function w(e,t){if("string"===typeof e){const t=parseFloat(e);isNaN(t)||(e=t)}return"string"===typeof e||"number"===typeof e?t(e):R.INSTANCE}class O{static create(e,t,n=null){return w(t,(t=>new O(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=12}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=z.create(this.key,this.value,this)),this.negated}}class F{static create(e,t,n=null){return w(t,(t=>new F(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=13}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=W.create(this.key,this.value,this)),this.negated}}class W{static create(e,t,n=null){return w(t,(t=>new W(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=14}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=F.create(this.key,this.value,this)),this.negated}}class z{static create(e,t,n=null){return w(t,(t=>new z(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=15}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=O.create(this.key,this.value,this)),this.negated}}class B{static create(e,t){return new B(e,t)}constructor(e,t){this.key=e,this.regexp=t,this.type=7,this.negated=null}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.key<e.key)return-1;if(this.key>e.key)return 1;const t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return t<n?-1:t>n?1:0}equals(e){if(e.type===this.type){const t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return this.key===e.key&&t===n}return!1}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.key);return!!this.regexp&&this.regexp.test(t)}serialize(){const e=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=G.create(this)),this.negated}}class G{static create(e){return new G(e)}constructor(e){this._actual=e,this.type=8}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type&&this._actual.equals(e._actual)}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){return`!(${this._actual.serialize()})`}keys(){return this._actual.keys()}negate(){return this._actual}}function j(e){let t=null;for(let n=0,r=e.length;n<r;n++){const r=e[n].substituteConstants();if(e[n]!==r&&null===t){t=[];for(let r=0;r<n;r++)t[r]=e[r]}null!==t&&(t[n]=r)}return null===t?e:t}class V{static create(e,t,n){return V._normalizeArr(e,t,n)}constructor(e,t){this.expr=e,this.negated=t,this.type=6}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,n=this.expr.length;t<n;t++){const n=I(this.expr[t],e.expr[t]);if(0!==n)return n}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){const e=j(this.expr);return e===this.expr?this:V.create(e,this.negated,!1)}evaluate(e){for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].evaluate(e))return!1;return!0}static _normalizeArr(e,t,n){const r=[];let o=!1;for(const i of e)if(i)if(1!==i.type){if(0===i.type)return R.INSTANCE;6!==i.type?r.push(i):r.push(...i.expr)}else o=!0;if(0===r.length&&o)return C.INSTANCE;if(0!==r.length){if(1===r.length)return r[0];r.sort(I);for(let e=1;e<r.length;e++)r[e-1].equals(r[e])&&(r.splice(e,1),e--);if(1===r.length)return r[0];for(;r.length>1;){const e=r[r.length-1];if(9!==e.type)break;r.pop();const t=r.pop(),o=0===r.length,i=U.create(e.expr.map((e=>V.create([e,t],null,n))),null,o);i&&(r.push(i),r.sort(I))}if(1===r.length)return r[0];if(n){for(let e=0;e<r.length;e++)for(let t=e+1;t<r.length;t++)if(r[e].negate().equals(r[t]))return R.INSTANCE;if(1===r.length)return r[0]}return new V(r,t)}}serialize(){return this.expr.map((e=>e.serialize())).join(" && ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());this.negated=U.create(e,this,!0)}return this.negated}}class U{static create(e,t,n){return U._normalizeArr(e,t,n)}constructor(e,t){this.expr=e,this.negated=t,this.type=9}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,n=this.expr.length;t<n;t++){const n=I(this.expr[t],e.expr[t]);if(0!==n)return n}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){const e=j(this.expr);return e===this.expr?this:U.create(e,this.negated,!1)}evaluate(e){for(let t=0,n=this.expr.length;t<n;t++)if(this.expr[t].evaluate(e))return!0;return!1}static _normalizeArr(e,t,n){let r=[],o=!1;if(e){for(let t=0,n=e.length;t<n;t++){const n=e[t];if(n)if(0!==n.type){if(1===n.type)return C.INSTANCE;9!==n.type?r.push(n):r=r.concat(n.expr)}else o=!0}if(0===r.length&&o)return R.INSTANCE;r.sort(I)}if(0!==r.length){if(1===r.length)return r[0];for(let e=1;e<r.length;e++)r[e-1].equals(r[e])&&(r.splice(e,1),e--);if(1===r.length)return r[0];if(n){for(let e=0;e<r.length;e++)for(let t=e+1;t<r.length;t++)if(r[e].negate().equals(r[t]))return C.INSTANCE;if(1===r.length)return r[0]}return new U(r,t)}}serialize(){return this.expr.map((e=>e.serialize())).join(" || ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());for(;e.length>1;){const t=e.shift(),n=e.shift(),r=[];for(const e of J(t))for(const t of J(n))r.push(V.create([e,t],null,!1));e.unshift(U.create(r,null,!1))}this.negated=U.create(e,this,!0)}return this.negated}}class H extends D{static{this._info=[]}static all(){return H._info.values()}constructor(e,t,n){super(e,null),this._defaultValue=t,"object"===typeof n?H._info.push({...n,key:e}):!0!==n&&H._info.push({key:e,description:n,type:null!==t&&void 0!==t?typeof t:void 0})}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return N.create(this.key,e)}}(0,p.u1)("contextKeyService");function K(e,t){return e<t?-1:e>t?1:0}function q(e,t,n,r){return e<n?-1:e>n?1:t<r?-1:t>r?1:0}function J(e){return 9===e.type?e.expr:[e]}const X=(0,p.u1)("logService");var $;!function(e){e[e.Off=0]="Off",e[e.Trace=1]="Trace",e[e.Debug=2]="Debug",e[e.Info=3]="Info",e[e.Warning=4]="Warning",e[e.Error=5]="Error"}($||($={}));$.Info;r.jG;new H("logLevel",function(e){switch(e){case $.Trace:return"trace";case $.Debug:return"debug";case $.Info:return"info";case $.Warning:return"warn";case $.Error:return"error";case $.Off:return"off"}}($.Info))},6359:(e,t,n)=>{"use strict";n.d(t,{O:()=>i});var r=n(6782),o=n(631);const i=new class{constructor(){this.data=new Map}add(e,t){r.ok(o.Kg(e)),r.ok(o.Gv(t)),r.ok(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)}as(e){return this.data.get(e)||null}}},5845:(e,t,n)=>{"use strict";n.d(t,{buw:()=>A,b1q:()=>x,YtV:()=>M,Ubg:()=>j,IIb:()=>B,pOz:()=>z,whs:()=>O,Stt:()=>W,Hng:()=>F,yLC:()=>le,KoI:()=>ae,uMG:()=>se,x1A:()=>u});var r=n(6782),o=n(1940),i=n(7661),a=n(1234),s=n(8748),l=n(6359),c=n(8209);const d=new class{constructor(){this._onDidChangeSchema=new a.vl,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}registerColor(e,t,n,r=!1,o){const i={id:e,description:n,defaults:t,needsTransparency:r,deprecationMessage:o};this.colorsById[e]=i;const a={type:"string",format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return o&&(a.deprecationMessage=o),r&&(a.pattern="^#(?:(?<rgba>[0-9a-fA-f]{3}[0-9a-eA-E])|(?:[0-9a-fA-F]{6}(?:(?![fF]{2})(?:[0-9a-fA-F]{2}))))?$",a.patternErrorMessage=c.kg("transparecyRequired","This color must be transparent or it will obscure content")),this.colorSchema.properties[e]={description:n,oneOf:[a,{type:"string",const:"default",description:c.kg("useDefault","Use the default color.")}]},this.colorReferenceSchema.enum.push(e),this.colorReferenceSchema.enumDescriptions.push(n),this._onDidChangeSchema.fire(),e}getColors(){return Object.keys(this.colorsById).map((e=>this.colorsById[e]))}resolveDefaultColor(e,t){const n=this.colorsById[e];if(n?.defaults){return g(null!==(r=n.defaults)&&"object"===typeof r&&"light"in r&&"dark"in r?n.defaults[t.type]:n.defaults,t)}var r}getColorSchema(){return this.colorSchema}toString(){return Object.keys(this.colorsById).sort(((e,t)=>{const n=-1===e.indexOf(".")?0:1,r=-1===t.indexOf(".")?0:1;return n!==r?n-r:e.localeCompare(t)})).map((e=>`- \`${e}\`: ${this.colorsById[e].description}`)).join("\n")}};function u(e,t,n,r,o){return d.registerColor(e,t,n,r,o)}function p(e,t){return{op:0,value:e,factor:t}}function f(e,t){return{op:1,value:e,factor:t}}function m(e,t){return{op:2,value:e,factor:t}}function _(...e){return{op:4,values:e}}function h(e,t,n,r){return{op:5,value:e,background:t,factor:n,transparency:r}}function g(e,t){if(null!==e)return"string"===typeof e?"#"===e[0]?i.Q1.fromHex(e):t.getColor(e):e instanceof i.Q1?e:"object"===typeof e?function(e,t){switch(e.op){case 0:return g(e.value,t)?.darken(e.factor);case 1:return g(e.value,t)?.lighten(e.factor);case 2:return g(e.value,t)?.transparent(e.factor);case 3:{const n=g(e.background,t);return n?g(e.value,t)?.makeOpaque(n):g(e.value,t)}case 4:for(const n of e.values){const e=g(n,t);if(e)return e}return;case 6:return g(t.defines(e.if)?e.then:e.else,t);case 5:{const n=g(e.value,t);if(!n)return;const r=g(e.background,t);return r?n.isDarkerThan(r)?i.Q1.getLighterColor(n,r,e.factor).transparent(e.transparency):i.Q1.getDarkerColor(n,r,e.factor).transparent(e.transparency):n.transparent(e.factor*e.transparency)}default:throw(0,r.xb)(e)}}(e,t):void 0}l.O.add("base.contributions.colors",d);const y="vscode://schemas/workbench-colors",v=l.O.as(s.F.JSONContribution);v.registerSchema(y,d.getColorSchema());const b=new o.uC((()=>v.notifySchemaChanged(y)),200);d.onDidChangeSchema((()=>{b.isScheduled()||b.schedule()}));const E=u("foreground",{dark:"#CCCCCC",light:"#616161",hcDark:"#FFFFFF",hcLight:"#292929"},c.kg("foreground","Overall foreground color. This color is only used if not overridden by a component.")),S=(u("disabledForeground",{dark:"#CCCCCC80",light:"#61616180",hcDark:"#A5A5A5",hcLight:"#7F7F7F"},c.kg("disabledForeground","Overall foreground for disabled elements. This color is only used if not overridden by a component.")),u("errorForeground",{dark:"#F48771",light:"#A1260D",hcDark:"#F48771",hcLight:"#B5200D"},c.kg("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),u("descriptionForeground",{light:"#717171",dark:m(E,.7),hcDark:m(E,.7),hcLight:m(E,.7)},c.kg("descriptionForeground","Foreground color for description text providing additional information, for example for a label.")),u("icon.foreground",{dark:"#C5C5C5",light:"#424242",hcDark:"#FFFFFF",hcLight:"#292929"},c.kg("iconForeground","The default color for icons in the workbench."))),T=u("focusBorder",{dark:"#007FD4",light:"#0090F1",hcDark:"#F38518",hcLight:"#006BBD"},c.kg("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),x=u("contrastBorder",{light:null,dark:null,hcDark:"#6FC3DF",hcLight:"#0F4A85"},c.kg("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),A=u("contrastActiveBorder",{light:null,dark:null,hcDark:T,hcLight:T},c.kg("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),I=(u("selection.background",null,c.kg("selectionBackground","The background color of text selections in the workbench (e.g. for input fields or text areas). Note that this does not apply to selections within the editor.")),u("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},c.kg("textLinkForeground","Foreground color for links in text.")),u("textLink.activeForeground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},c.kg("textLinkActiveForeground","Foreground color for links in text when clicked on and on mouse hover.")),u("textSeparator.foreground",{light:"#0000002e",dark:"#ffffff2e",hcDark:i.Q1.black,hcLight:"#292929"},c.kg("textSeparatorForeground","Color for text separators.")),u("textPreformat.foreground",{light:"#A31515",dark:"#D7BA7D",hcDark:"#000000",hcLight:"#FFFFFF"},c.kg("textPreformatForeground","Foreground color for preformatted text segments.")),u("textPreformat.background",{light:"#0000001A",dark:"#FFFFFF1A",hcDark:"#FFFFFF",hcLight:"#09345f"},c.kg("textPreformatBackground","Background color for preformatted text segments.")),u("textBlockQuote.background",{light:"#f2f2f2",dark:"#222222",hcDark:null,hcLight:"#F2F2F2"},c.kg("textBlockQuoteBackground","Background color for block quotes in text.")),u("textBlockQuote.border",{light:"#007acc80",dark:"#007acc80",hcDark:i.Q1.white,hcLight:"#292929"},c.kg("textBlockQuoteBorder","Border color for block quotes in text.")),u("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hcDark:i.Q1.black,hcLight:"#F2F2F2"},c.kg("textCodeBlockBackground","Background color for code blocks in text.")),u("sash.hoverBorder",T,c.kg("sashActiveBorder","Border color of active sashes.")),u("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hcDark:i.Q1.black,hcLight:"#0F4A85"},c.kg("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count."))),R=(u("badge.foreground",{dark:i.Q1.white,light:"#333",hcDark:i.Q1.white,hcLight:i.Q1.white},c.kg("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),u("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hcDark:null,hcLight:null},c.kg("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled."))),C=u("scrollbarSlider.background",{dark:i.Q1.fromHex("#797979").transparent(.4),light:i.Q1.fromHex("#646464").transparent(.4),hcDark:m(x,.6),hcLight:m(x,.4)},c.kg("scrollbarSliderBackground","Scrollbar slider background color.")),D=u("scrollbarSlider.hoverBackground",{dark:i.Q1.fromHex("#646464").transparent(.7),light:i.Q1.fromHex("#646464").transparent(.7),hcDark:m(x,.8),hcLight:m(x,.8)},c.kg("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),N=u("scrollbarSlider.activeBackground",{dark:i.Q1.fromHex("#BFBFBF").transparent(.4),light:i.Q1.fromHex("#000000").transparent(.6),hcDark:x,hcLight:x},c.kg("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),M=(u("progressBar.background",{dark:i.Q1.fromHex("#0E70C0"),light:i.Q1.fromHex("#0E70C0"),hcDark:x,hcLight:x},c.kg("progressBarBackground","Background color of the progress bar that can show for long running operations.")),u("editor.background",{light:"#ffffff",dark:"#1E1E1E",hcDark:i.Q1.black,hcLight:i.Q1.white},c.kg("editorBackground","Editor background color."))),L=(u("editor.foreground",{light:"#333333",dark:"#BBBBBB",hcDark:i.Q1.white,hcLight:E},c.kg("editorForeground","Editor default foreground color.")),u("editorStickyScroll.background",M,c.kg("editorStickyScrollBackground","Background color of sticky scroll in the editor")),u("editorStickyScrollHover.background",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:null,hcLight:i.Q1.fromHex("#0F4A85").transparent(.1)},c.kg("editorStickyScrollHoverBackground","Background color of sticky scroll on hover in the editor")),u("editorStickyScroll.border",{dark:null,light:null,hcDark:x,hcLight:x},c.kg("editorStickyScrollBorder","Border color of sticky scroll in the editor")),u("editorStickyScroll.shadow",R,c.kg("editorStickyScrollShadow"," Shadow color of sticky scroll in the editor")),u("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hcDark:"#0C141F",hcLight:i.Q1.white},c.kg("editorWidgetBackground","Background color of editor widgets, such as find/replace."))),k=u("editorWidget.foreground",E,c.kg("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),P=u("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hcDark:x,hcLight:x},c.kg("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),w=(u("editorWidget.resizeBorder",null,c.kg("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),u("editorError.background",null,c.kg("editorError.background","Background color of error text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),u("editorError.foreground",{dark:"#F14C4C",light:"#E51400",hcDark:"#F48771",hcLight:"#B5200D"},c.kg("editorError.foreground","Foreground color of error squigglies in the editor."))),O=(u("editorError.border",{dark:null,light:null,hcDark:i.Q1.fromHex("#E47777").transparent(.8),hcLight:"#B5200D"},c.kg("errorBorder","If set, color of double underlines for errors in the editor.")),u("editorWarning.background",null,c.kg("editorWarning.background","Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0)),F=u("editorWarning.foreground",{dark:"#CCA700",light:"#BF8803",hcDark:"#FFD370",hcLight:"#895503"},c.kg("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),W=u("editorWarning.border",{dark:null,light:null,hcDark:i.Q1.fromHex("#FFCC00").transparent(.8),hcLight:i.Q1.fromHex("#FFCC00").transparent(.8)},c.kg("warningBorder","If set, color of double underlines for warnings in the editor.")),z=(u("editorInfo.background",null,c.kg("editorInfo.background","Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),u("editorInfo.foreground",{dark:"#3794FF",light:"#1a85ff",hcDark:"#3794FF",hcLight:"#1a85ff"},c.kg("editorInfo.foreground","Foreground color of info squigglies in the editor."))),B=u("editorInfo.border",{dark:null,light:null,hcDark:i.Q1.fromHex("#3794FF").transparent(.8),hcLight:"#292929"},c.kg("infoBorder","If set, color of double underlines for infos in the editor.")),G=(u("editorHint.foreground",{dark:i.Q1.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hcDark:null,hcLight:null},c.kg("editorHint.foreground","Foreground color of hint squigglies in the editor.")),u("editorHint.border",{dark:null,light:null,hcDark:i.Q1.fromHex("#eeeeee").transparent(.8),hcLight:"#292929"},c.kg("hintBorder","If set, color of double underlines for hints in the editor.")),u("editorLink.activeForeground",{dark:"#4E94CE",light:i.Q1.blue,hcDark:i.Q1.cyan,hcLight:"#292929"},c.kg("activeLinkForeground","Color of active links.")),u("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hcDark:"#f3f518",hcLight:"#0F4A85"},c.kg("editorSelectionBackground","Color of the editor selection."))),j=(u("editor.selectionForeground",{light:null,dark:null,hcDark:"#000000",hcLight:i.Q1.white},c.kg("editorSelectionForeground","Color of the selected text for high contrast.")),u("editor.inactiveSelectionBackground",{light:m(G,.5),dark:m(G,.5),hcDark:m(G,.7),hcLight:m(G,.5)},c.kg("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),u("editor.selectionHighlightBackground",{light:h(G,M,.3,.6),dark:h(G,M,.3,.6),hcDark:null,hcLight:null},c.kg("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),u("editor.selectionHighlightBorder",{light:null,dark:null,hcDark:A,hcLight:A},c.kg("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),u("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hcDark:null,hcLight:null},c.kg("editorFindMatch","Color of the current search match.")),u("editor.findMatchForeground",null,c.kg("editorFindMatchForeground","Text color of the current search match.")),u("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hcDark:null,hcLight:null},c.kg("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0)),V=(u("editor.findMatchHighlightForeground",null,c.kg("findMatchHighlightForeground","Foreground color of the other search matches."),!0),u("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hcDark:null,hcLight:null},c.kg("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),u("editor.findMatchBorder",{light:null,dark:null,hcDark:A,hcLight:A},c.kg("editorFindMatchBorder","Border color of the current search match.")),u("editor.findMatchHighlightBorder",{light:null,dark:null,hcDark:A,hcLight:A},c.kg("findMatchHighlightBorder","Border color of the other search matches."))),U=(u("editor.findRangeHighlightBorder",{dark:null,light:null,hcDark:m(A,.4),hcLight:m(A,.4)},c.kg("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),u("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hcDark:"#ADD6FF26",hcLight:null},c.kg("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),u("editorHoverWidget.background",L,c.kg("hoverBackground","Background color of the editor hover."))),H=(u("editorHoverWidget.foreground",k,c.kg("hoverForeground","Foreground color of the editor hover.")),u("editorHoverWidget.border",P,c.kg("hoverBorder","Border color of the editor hover.")),u("editorHoverWidget.statusBarBackground",{dark:f(U,.2),light:p(U,.05),hcDark:L,hcLight:L},c.kg("statusBarBackground","Background color of the editor hover status bar.")),u("editorInlayHint.foreground",{dark:"#969696",light:"#969696",hcDark:i.Q1.white,hcLight:i.Q1.black},c.kg("editorInlayHintForeground","Foreground color of inline hints"))),K=u("editorInlayHint.background",{dark:m(I,.1),light:m(I,.1),hcDark:m(i.Q1.white,.1),hcLight:m(I,.1)},c.kg("editorInlayHintBackground","Background color of inline hints")),q=(u("editorInlayHint.typeForeground",H,c.kg("editorInlayHintForegroundTypes","Foreground color of inline hints for types")),u("editorInlayHint.typeBackground",K,c.kg("editorInlayHintBackgroundTypes","Background color of inline hints for types")),u("editorInlayHint.parameterForeground",H,c.kg("editorInlayHintForegroundParameter","Foreground color of inline hints for parameters")),u("editorInlayHint.parameterBackground",K,c.kg("editorInlayHintBackgroundParameter","Background color of inline hints for parameters")),u("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hcDark:"#FFCC00",hcLight:"#007ACC"},c.kg("editorLightBulbForeground","The color used for the lightbulb actions icon."))),J=(u("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},c.kg("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),u("editorLightBulbAi.foreground",q,c.kg("editorLightBulbAiForeground","The color used for the lightbulb AI icon.")),u("editor.snippetTabstopHighlightBackground",{dark:new i.Q1(new i.bU(124,124,124,.3)),light:new i.Q1(new i.bU(10,50,100,.2)),hcDark:new i.Q1(new i.bU(124,124,124,.3)),hcLight:new i.Q1(new i.bU(10,50,100,.2))},c.kg("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),u("editor.snippetTabstopHighlightBorder",null,c.kg("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),u("editor.snippetFinalTabstopHighlightBackground",null,c.kg("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),u("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new i.Q1(new i.bU(10,50,100,.5)),hcDark:"#525252",hcLight:"#292929"},c.kg("snippetFinalTabstopHighlightBorder","Highlight border color of the final tabstop of a snippet.")),new i.Q1(new i.bU(155,185,85,.2))),X=new i.Q1(new i.bU(255,0,0,.2)),$=(u("diffEditor.insertedTextBackground",{dark:"#9ccc2c33",light:"#9ccc2c40",hcDark:null,hcLight:null},c.kg("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),u("diffEditor.removedTextBackground",{dark:"#ff000033",light:"#ff000033",hcDark:null,hcLight:null},c.kg("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),u("diffEditor.insertedLineBackground",{dark:J,light:J,hcDark:null,hcLight:null},c.kg("diffEditorInsertedLines","Background color for lines that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),u("diffEditor.removedLineBackground",{dark:X,light:X,hcDark:null,hcLight:null},c.kg("diffEditorRemovedLines","Background color for lines that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),u("diffEditorGutter.insertedLineBackground",null,c.kg("diffEditorInsertedLineGutter","Background color for the margin where lines got inserted.")),u("diffEditorGutter.removedLineBackground",null,c.kg("diffEditorRemovedLineGutter","Background color for the margin where lines got removed.")),u("diffEditorOverview.insertedForeground",null,c.kg("diffEditorOverviewInserted","Diff overview ruler foreground for inserted content.")),u("diffEditorOverview.removedForeground",null,c.kg("diffEditorOverviewRemoved","Diff overview ruler foreground for removed content.")),u("diffEditor.insertedTextBorder",{dark:null,light:null,hcDark:"#33ff2eff",hcLight:"#374E06"},c.kg("diffEditorInsertedOutline","Outline color for the text that got inserted.")),u("diffEditor.removedTextBorder",{dark:null,light:null,hcDark:"#FF008F",hcLight:"#AD0707"},c.kg("diffEditorRemovedOutline","Outline color for text that got removed.")),u("diffEditor.border",{dark:null,light:null,hcDark:x,hcLight:x},c.kg("diffEditorBorder","Border color between the two text editors.")),u("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hcDark:null,hcLight:null},c.kg("diffDiagonalFill","Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.")),u("diffEditor.unchangedRegionBackground","sideBar.background",c.kg("diffEditor.unchangedRegionBackground","The background color of unchanged blocks in the diff editor.")),u("diffEditor.unchangedRegionForeground","foreground",c.kg("diffEditor.unchangedRegionForeground","The foreground color of unchanged blocks in the diff editor.")),u("diffEditor.unchangedCodeBackground",{dark:"#74747429",light:"#b8b8b829",hcDark:null,hcLight:null},c.kg("diffEditor.unchangedCodeBackground","The background color of unchanged code in the diff editor.")),u("widget.shadow",{dark:m(i.Q1.black,.36),light:m(i.Q1.black,.16),hcDark:null,hcLight:null},c.kg("widgetShadow","Shadow color of widgets such as find/replace inside the editor."))),Y=(u("widget.border",{dark:null,light:null,hcDark:x,hcLight:x},c.kg("widgetBorder","Border color of widgets such as find/replace inside the editor.")),u("toolbar.hoverBackground",{dark:"#5a5d5e50",light:"#b8b8b850",hcDark:null,hcLight:null},c.kg("toolbarHoverBackground","Toolbar background when hovering over actions using the mouse"))),Q=(u("toolbar.hoverOutline",{dark:null,light:null,hcDark:A,hcLight:A},c.kg("toolbarHoverOutline","Toolbar outline when hovering over actions using the mouse")),u("toolbar.activeBackground",{dark:f(Y,.1),light:p(Y,.1),hcDark:null,hcLight:null},c.kg("toolbarActiveBackground","Toolbar background when holding the mouse over actions")),u("breadcrumb.foreground",m(E,.8),c.kg("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),u("breadcrumb.background",M,c.kg("breadcrumbsBackground","Background color of breadcrumb items.")),u("breadcrumb.focusForeground",{light:p(E,.2),dark:f(E,.1),hcDark:f(E,.1),hcLight:f(E,.1)},c.kg("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),u("breadcrumb.activeSelectionForeground",{light:p(E,.2),dark:f(E,.1),hcDark:f(E,.1),hcLight:f(E,.1)},c.kg("breadcrumbsSelectedForeground","Color of selected breadcrumb items.")),u("breadcrumbPicker.background",L,c.kg("breadcrumbsSelectedBackground","Background color of breadcrumb item picker.")),i.Q1.fromHex("#40C8AE").transparent(.5)),Z=i.Q1.fromHex("#40A6FF").transparent(.5),ee=i.Q1.fromHex("#606060").transparent(.4),te=u("merge.currentHeaderBackground",{dark:Q,light:Q,hcDark:null,hcLight:null},c.kg("mergeCurrentHeaderBackground","Current header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),ne=(u("merge.currentContentBackground",m(te,.4),c.kg("mergeCurrentContentBackground","Current content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),u("merge.incomingHeaderBackground",{dark:Z,light:Z,hcDark:null,hcLight:null},c.kg("mergeIncomingHeaderBackground","Incoming header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0)),re=(u("merge.incomingContentBackground",m(ne,.4),c.kg("mergeIncomingContentBackground","Incoming content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),u("merge.commonHeaderBackground",{dark:ee,light:ee,hcDark:null,hcLight:null},c.kg("mergeCommonHeaderBackground","Common ancestor header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0)),oe=(u("merge.commonContentBackground",m(re,.4),c.kg("mergeCommonContentBackground","Common ancestor content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),u("merge.border",{dark:null,light:null,hcDark:"#C3DF6F",hcLight:"#007ACC"},c.kg("mergeBorder","Border color on headers and the splitter in inline merge-conflicts."))),ie=(u("editorOverviewRuler.currentContentForeground",{dark:m(te,1),light:m(te,1),hcDark:oe,hcLight:oe},c.kg("overviewRulerCurrentContentForeground","Current overview ruler foreground for inline merge-conflicts.")),u("editorOverviewRuler.incomingContentForeground",{dark:m(ne,1),light:m(ne,1),hcDark:oe,hcLight:oe},c.kg("overviewRulerIncomingContentForeground","Incoming overview ruler foreground for inline merge-conflicts.")),u("editorOverviewRuler.commonContentForeground",{dark:m(re,1),light:m(re,1),hcDark:oe,hcLight:oe},c.kg("overviewRulerCommonContentForeground","Common ancestor overview ruler foreground for inline merge-conflicts.")),u("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hcDark:"#AB5A00",hcLight:"#AB5A00"},c.kg("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0),u("editorOverviewRuler.selectionHighlightForeground","#A0A0A0CC",c.kg("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),u("problemsErrorIcon.foreground",w,c.kg("problemsErrorIconForeground","The color used for the problems error icon.")),u("problemsWarningIcon.foreground",F,c.kg("problemsWarningIconForeground","The color used for the problems warning icon.")),u("problemsInfoIcon.foreground",z,c.kg("problemsInfoIconForeground","The color used for the problems info icon.")),u("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hcDark:"#AB5A00",hcLight:"#0F4A85"},c.kg("minimapFindMatchHighlight","Minimap marker color for find matches."),!0)),ae=(u("minimap.selectionOccurrenceHighlight",{light:"#c9c9c9",dark:"#676767",hcDark:"#ffffff",hcLight:"#0F4A85"},c.kg("minimapSelectionOccurrenceHighlight","Minimap marker color for repeating editor selections."),!0),u("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hcDark:"#ffffff",hcLight:"#0F4A85"},c.kg("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),u("minimap.infoHighlight",{dark:z,light:z,hcDark:B,hcLight:B},c.kg("minimapInfo","Minimap marker color for infos."))),se=u("minimap.warningHighlight",{dark:F,light:F,hcDark:W,hcLight:W},c.kg("overviewRuleWarning","Minimap marker color for warnings.")),le=u("minimap.errorHighlight",{dark:new i.Q1(new i.bU(255,18,18,.7)),light:new i.Q1(new i.bU(255,18,18,.7)),hcDark:new i.Q1(new i.bU(255,50,50,1)),hcLight:"#B5200D"},c.kg("minimapError","Minimap marker color for errors.")),ce=(u("minimap.background",null,c.kg("minimapBackground","Minimap background color.")),u("minimap.foregroundOpacity",i.Q1.fromHex("#000f"),c.kg("minimapForegroundOpacity",'Opacity of foreground elements rendered in the minimap. For example, "#000000c0" will render the elements with 75% opacity.')),u("minimapSlider.background",m(C,.5),c.kg("minimapSliderBackground","Minimap slider background color.")),u("minimapSlider.hoverBackground",m(D,.5),c.kg("minimapSliderHoverBackground","Minimap slider background color when hovering.")),u("minimapSlider.activeBackground",m(N,.5),c.kg("minimapSliderActiveBackground","Minimap slider background color when clicked on.")),u("charts.foreground",E,c.kg("chartsForeground","The foreground color used in charts.")),u("charts.lines",m(E,.5),c.kg("chartsLines","The color used for horizontal lines in charts.")),u("charts.red",w,c.kg("chartsRed","The red color used in chart visualizations.")),u("charts.blue",z,c.kg("chartsBlue","The blue color used in chart visualizations.")),u("charts.yellow",F,c.kg("chartsYellow","The yellow color used in chart visualizations.")),u("charts.orange",ie,c.kg("chartsOrange","The orange color used in chart visualizations.")),u("charts.green",{dark:"#89D185",light:"#388A34",hcDark:"#89D185",hcLight:"#374e06"},c.kg("chartsGreen","The green color used in chart visualizations.")),u("charts.purple",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},c.kg("chartsPurple","The purple color used in chart visualizations.")),u("input.background",{dark:"#3C3C3C",light:i.Q1.white,hcDark:i.Q1.black,hcLight:i.Q1.white},c.kg("inputBoxBackground","Input box background.")),u("input.foreground",E,c.kg("inputBoxForeground","Input box foreground.")),u("input.border",{dark:null,light:null,hcDark:x,hcLight:x},c.kg("inputBoxBorder","Input box border.")),u("inputOption.activeBorder",{dark:"#007ACC",light:"#007ACC",hcDark:x,hcLight:x},c.kg("inputBoxActiveOptionBorder","Border color of activated options in input fields."))),de=u("inputOption.hoverBackground",{dark:"#5a5d5e80",light:"#b8b8b850",hcDark:null,hcLight:null},c.kg("inputOption.hoverBackground","Background color of activated options in input fields.")),ue=u("inputOption.activeBackground",{dark:m(T,.4),light:m(T,.2),hcDark:i.Q1.transparent,hcLight:i.Q1.transparent},c.kg("inputOption.activeBackground","Background hover color of options in input fields.")),pe=u("inputOption.activeForeground",{dark:i.Q1.white,light:i.Q1.black,hcDark:E,hcLight:E},c.kg("inputOption.activeForeground","Foreground color of activated options in input fields.")),fe=(u("input.placeholderForeground",{light:m(E,.5),dark:m(E,.5),hcDark:m(E,.7),hcLight:m(E,.7)},c.kg("inputPlaceholderForeground","Input box foreground color for placeholder text.")),u("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hcDark:i.Q1.black,hcLight:i.Q1.white},c.kg("inputValidationInfoBackground","Input validation background color for information severity.")),u("inputValidation.infoForeground",{dark:null,light:null,hcDark:null,hcLight:E},c.kg("inputValidationInfoForeground","Input validation foreground color for information severity.")),u("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hcDark:x,hcLight:x},c.kg("inputValidationInfoBorder","Input validation border color for information severity.")),u("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hcDark:i.Q1.black,hcLight:i.Q1.white},c.kg("inputValidationWarningBackground","Input validation background color for warning severity.")),u("inputValidation.warningForeground",{dark:null,light:null,hcDark:null,hcLight:E},c.kg("inputValidationWarningForeground","Input validation foreground color for warning severity.")),u("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hcDark:x,hcLight:x},c.kg("inputValidationWarningBorder","Input validation border color for warning severity.")),u("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hcDark:i.Q1.black,hcLight:i.Q1.white},c.kg("inputValidationErrorBackground","Input validation background color for error severity.")),u("inputValidation.errorForeground",{dark:null,light:null,hcDark:null,hcLight:E},c.kg("inputValidationErrorForeground","Input validation foreground color for error severity.")),u("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hcDark:x,hcLight:x},c.kg("inputValidationErrorBorder","Input validation border color for error severity.")),u("dropdown.background",{dark:"#3C3C3C",light:i.Q1.white,hcDark:i.Q1.black,hcLight:i.Q1.white},c.kg("dropdownBackground","Dropdown background."))),me=(u("dropdown.listBackground",{dark:null,light:null,hcDark:i.Q1.black,hcLight:i.Q1.white},c.kg("dropdownListBackground","Dropdown list background.")),u("dropdown.foreground",{dark:"#F0F0F0",light:E,hcDark:i.Q1.white,hcLight:E},c.kg("dropdownForeground","Dropdown foreground."))),_e=u("dropdown.border",{dark:fe,light:"#CECECE",hcDark:x,hcLight:x},c.kg("dropdownBorder","Dropdown border.")),he=u("button.foreground",i.Q1.white,c.kg("buttonForeground","Button foreground color.")),ge=(u("button.separator",m(he,.4),c.kg("buttonSeparator","Button separator color.")),u("button.background",{dark:"#0E639C",light:"#007ACC",hcDark:null,hcLight:"#0F4A85"},c.kg("buttonBackground","Button background color."))),ye=(u("button.hoverBackground",{dark:f(ge,.2),light:p(ge,.2),hcDark:ge,hcLight:ge},c.kg("buttonHoverBackground","Button background color when hovering.")),u("button.border",x,c.kg("buttonBorder","Button border color.")),u("button.secondaryForeground",{dark:i.Q1.white,light:i.Q1.white,hcDark:i.Q1.white,hcLight:E},c.kg("buttonSecondaryForeground","Secondary button foreground color.")),u("button.secondaryBackground",{dark:"#3A3D41",light:"#5F6A79",hcDark:null,hcLight:i.Q1.white},c.kg("buttonSecondaryBackground","Secondary button background color."))),ve=(u("button.secondaryHoverBackground",{dark:f(ye,.2),light:p(ye,.2),hcDark:null,hcLight:null},c.kg("buttonSecondaryHoverBackground","Secondary button background color when hovering.")),u("radio.activeForeground",pe,c.kg("radioActiveForeground","Foreground color of active radio option."))),be=(u("radio.activeBackground",ue,c.kg("radioBackground","Background color of active radio option.")),u("radio.activeBorder",ce,c.kg("radioActiveBorder","Border color of the active radio option.")),u("radio.inactiveForeground",null,c.kg("radioInactiveForeground","Foreground color of inactive radio option.")),u("radio.inactiveBackground",null,c.kg("radioInactiveBackground","Background color of inactive radio option.")),u("radio.inactiveBorder",{light:m(ve,.2),dark:m(ve,.2),hcDark:m(ve,.4),hcLight:m(ve,.2)},c.kg("radioInactiveBorder","Border color of the inactive radio option.")),u("radio.inactiveHoverBackground",de,c.kg("radioHoverBackground","Background color of inactive active radio option when hovering.")),u("checkbox.background",fe,c.kg("checkbox.background","Background color of checkbox widget.")),u("checkbox.selectBackground",L,c.kg("checkbox.select.background","Background color of checkbox widget when the element it's in is selected.")),u("checkbox.foreground",me,c.kg("checkbox.foreground","Foreground color of checkbox widget.")),u("checkbox.border",_e,c.kg("checkbox.border","Border color of checkbox widget.")),u("checkbox.selectBorder",S,c.kg("checkbox.select.border","Border color of checkbox widget when the element it's in is selected.")),u("keybindingLabel.background",{dark:new i.Q1(new i.bU(128,128,128,.17)),light:new i.Q1(new i.bU(221,221,221,.4)),hcDark:i.Q1.transparent,hcLight:i.Q1.transparent},c.kg("keybindingLabelBackground","Keybinding label background color. The keybinding label is used to represent a keyboard shortcut.")),u("keybindingLabel.foreground",{dark:i.Q1.fromHex("#CCCCCC"),light:i.Q1.fromHex("#555555"),hcDark:i.Q1.white,hcLight:E},c.kg("keybindingLabelForeground","Keybinding label foreground color. The keybinding label is used to represent a keyboard shortcut.")),u("keybindingLabel.border",{dark:new i.Q1(new i.bU(51,51,51,.6)),light:new i.Q1(new i.bU(204,204,204,.4)),hcDark:new i.Q1(new i.bU(111,195,223)),hcLight:x},c.kg("keybindingLabelBorder","Keybinding label border color. The keybinding label is used to represent a keyboard shortcut.")),u("keybindingLabel.bottomBorder",{dark:new i.Q1(new i.bU(68,68,68,.6)),light:new i.Q1(new i.bU(187,187,187,.4)),hcDark:new i.Q1(new i.bU(111,195,223)),hcLight:E},c.kg("keybindingLabelBottomBorder","Keybinding label border bottom color. The keybinding label is used to represent a keyboard shortcut.")),u("list.focusBackground",null,c.kg("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),u("list.focusForeground",null,c.kg("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),u("list.focusOutline",{dark:T,light:T,hcDark:A,hcLight:A},c.kg("listFocusOutline","List/Tree outline color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),u("list.focusAndSelectionOutline",null,c.kg("listFocusAndSelectionOutline","List/Tree outline color for the focused item when the list/tree is active and selected. An active list/tree has keyboard focus, an inactive does not.")),u("list.activeSelectionBackground",{dark:"#04395E",light:"#0060C0",hcDark:null,hcLight:i.Q1.fromHex("#0F4A85").transparent(.1)},c.kg("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not."))),Ee=u("list.activeSelectionForeground",{dark:i.Q1.white,light:i.Q1.white,hcDark:null,hcLight:null},c.kg("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Se=u("list.activeSelectionIconForeground",null,c.kg("listActiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Te=(u("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hcDark:null,hcLight:i.Q1.fromHex("#0F4A85").transparent(.1)},c.kg("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),u("list.inactiveSelectionForeground",null,c.kg("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),u("list.inactiveSelectionIconForeground",null,c.kg("listInactiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),u("list.inactiveFocusBackground",null,c.kg("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),u("list.inactiveFocusOutline",null,c.kg("listInactiveFocusOutline","List/Tree outline color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),u("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:i.Q1.white.transparent(.1),hcLight:i.Q1.fromHex("#0F4A85").transparent(.1)},c.kg("listHoverBackground","List/Tree background when hovering over items using the mouse.")),u("list.hoverForeground",null,c.kg("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),u("list.dropBackground",{dark:"#062F4A",light:"#D6EBFF",hcDark:null,hcLight:null},c.kg("listDropBackground","List/Tree drag and drop background when moving items over other items when using the mouse.")),u("list.dropBetweenBackground",{dark:S,light:S,hcDark:null,hcLight:null},c.kg("listDropBetweenBackground","List/Tree drag and drop border color when moving items between items when using the mouse.")),u("list.highlightForeground",{dark:"#2AAAFF",light:"#0066BF",hcDark:T,hcLight:T},c.kg("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")));u("list.focusHighlightForeground",{dark:Te,light:(xe=be,Ae=Te,Ie="#BBE7FF",{op:6,if:xe,then:Ae,else:Ie}),hcDark:Te,hcLight:Te},c.kg("listFocusHighlightForeground","List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree."));var xe,Ae,Ie;u("list.invalidItemForeground",{dark:"#B89500",light:"#B89500",hcDark:"#B89500",hcLight:"#B5200D"},c.kg("invalidItemForeground","List/Tree foreground color for invalid items, for example an unresolved root in explorer.")),u("list.errorForeground",{dark:"#F88070",light:"#B01011",hcDark:null,hcLight:null},c.kg("listErrorForeground","Foreground color of list items containing errors.")),u("list.warningForeground",{dark:"#CCA700",light:"#855F00",hcDark:null,hcLight:null},c.kg("listWarningForeground","Foreground color of list items containing warnings.")),u("listFilterWidget.background",{light:p(L,0),dark:f(L,0),hcDark:L,hcLight:L},c.kg("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),u("listFilterWidget.outline",{dark:i.Q1.transparent,light:i.Q1.transparent,hcDark:"#f38518",hcLight:"#007ACC"},c.kg("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),u("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hcDark:x,hcLight:x},c.kg("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),u("listFilterWidget.shadow",$,c.kg("listFilterWidgetShadow","Shadow color of the type filter widget in lists and trees.")),u("list.filterMatchBackground",{dark:j,light:j,hcDark:null,hcLight:null},c.kg("listFilterMatchHighlight","Background color of the filtered match.")),u("list.filterMatchBorder",{dark:V,light:V,hcDark:x,hcLight:A},c.kg("listFilterMatchHighlightBorder","Border color of the filtered match.")),u("list.deemphasizedForeground",{dark:"#8C8C8C",light:"#8E8E90",hcDark:"#A7A8A9",hcLight:"#666666"},c.kg("listDeemphasizedForeground","List/Tree foreground color for items that are deemphasized."));const Re=u("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hcDark:"#a9a9a9",hcLight:"#a5a5a5"},c.kg("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),Ce=(u("tree.inactiveIndentGuidesStroke",m(Re,.4),c.kg("treeInactiveIndentGuidesStroke","Tree stroke color for the indentation guides that are not active.")),u("tree.tableColumnsBorder",{dark:"#CCCCCC20",light:"#61616120",hcDark:null,hcLight:null},c.kg("tableColumnsBorder","Table border color between columns.")),u("tree.tableOddRowsBackground",{dark:m(E,.04),light:m(E,.04),hcDark:null,hcLight:null},c.kg("tableOddRowsBackgroundColor","Background color for odd table rows.")),u("editorActionList.background",L,c.kg("editorActionListBackground","Action List background color.")),u("editorActionList.foreground",k,c.kg("editorActionListForeground","Action List foreground color.")),u("editorActionList.focusForeground",Ee,c.kg("editorActionListFocusForeground","Action List foreground color for the focused item.")),u("editorActionList.focusBackground",be,c.kg("editorActionListFocusBackground","Action List background color for the focused item.")),u("menu.border",{dark:null,light:null,hcDark:x,hcLight:x},c.kg("menuBorder","Border color of menus.")),u("menu.foreground",me,c.kg("menuForeground","Foreground color of menu items.")),u("menu.background",fe,c.kg("menuBackground","Background color of menu items.")),u("menu.selectionForeground",Ee,c.kg("menuSelectionForeground","Foreground color of the selected menu item in menus.")),u("menu.selectionBackground",be,c.kg("menuSelectionBackground","Background color of the selected menu item in menus.")),u("menu.selectionBorder",{dark:null,light:null,hcDark:A,hcLight:A},c.kg("menuSelectionBorder","Border color of the selected menu item in menus.")),u("menu.separatorBackground",{dark:"#606060",light:"#D4D4D4",hcDark:x,hcLight:x},c.kg("menuSeparatorBackground","Color of a separator menu item in menus.")),u("quickInput.background",L,c.kg("pickerBackground","Quick picker background color. The quick picker widget is the container for pickers like the command palette.")),u("quickInput.foreground",k,c.kg("pickerForeground","Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")),u("quickInputTitle.background",{dark:new i.Q1(new i.bU(255,255,255,.105)),light:new i.Q1(new i.bU(0,0,0,.06)),hcDark:"#000000",hcLight:i.Q1.white},c.kg("pickerTitleBackground","Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")),u("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hcDark:i.Q1.white,hcLight:"#0F4A85"},c.kg("pickerGroupForeground","Quick picker color for grouping labels.")),u("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hcDark:i.Q1.white,hcLight:"#0F4A85"},c.kg("pickerGroupBorder","Quick picker color for grouping borders.")),u("quickInput.list.focusBackground",null,"",void 0,c.kg("quickInput.list.focusBackground deprecation","Please use quickInputList.focusBackground instead")));u("quickInputList.focusForeground",Ee,c.kg("quickInput.listFocusForeground","Quick picker foreground color for the focused item.")),u("quickInputList.focusIconForeground",Se,c.kg("quickInput.listFocusIconForeground","Quick picker icon foreground color for the focused item.")),u("quickInputList.focusBackground",{dark:_(Ce,be),light:_(Ce,be),hcDark:null,hcLight:null},c.kg("quickInput.listFocusBackground","Quick picker background color for the focused item.")),u("search.resultsInfoForeground",{light:E,dark:m(E,.65),hcDark:E,hcLight:E},c.kg("search.resultsInfoForeground","Color of the text in the search viewlet's completion message.")),u("searchEditor.findMatchBackground",{light:m(j,.66),dark:m(j,.66),hcDark:j,hcLight:j},c.kg("searchEditor.queryMatch","Color of the Search Editor query matches.")),u("searchEditor.findMatchBorder",{light:m(V,.66),dark:m(V,.66),hcDark:V,hcLight:V},c.kg("searchEditor.editorFindMatchBorder","Border color of the Search Editor query matches."))},5724:(e,t,n)=>{"use strict";n.d(t,{Gy:()=>l,zy:()=>u,Yf:()=>c});var r,o=n(1234),i=n(1484),a=n(3591),s=n(6359);!function(e){e.DARK="dark",e.LIGHT="light",e.HIGH_CONTRAST_DARK="hcDark",e.HIGH_CONTRAST_LIGHT="hcLight"}(r||(r={}));const l=(0,a.u1)("themeService");function c(e){return{id:e}}const d=new class{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new o.vl}onColorThemeChange(e){return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),(0,i.s)((()=>{const t=this.themingParticipants.indexOf(e);this.themingParticipants.splice(t,1)}))}getThemingParticipants(){return this.themingParticipants}};function u(e){return d.onColorThemeChange(e)}s.O.add("base.contributions.theming",d);i.jG},5890:(e,t,n)=>{var r={"./simpleWorker":1929,"./simpleWorker.js":1929,"monaco-editor/esm/vs/base/common/worker/simpleWorker":1929,"monaco-editor/esm/vs/base/common/worker/simpleWorker.js":1929};function o(e){return Promise.resolve().then((()=>{if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n(r[e])}))}o.keys=()=>Object.keys(r),o.id=5890,e.exports=o},9204:(e,t,n)=>{var r={"./editorBaseApi":[4272],"./editorBaseApi.js":[4272],"./editorSimpleWorker":[5196],"./editorSimpleWorker.js":[5196],"./editorWorker":[920,792],"./editorWorker.js":[920,792],"./editorWorkerHost":[718],"./editorWorkerHost.js":[718],"./findSectionHeaders":[6691],"./findSectionHeaders.js":[6691],"./getIconClasses":[5628,792],"./getIconClasses.js":[5628,792],"./languageFeatureDebounce":[8709,792],"./languageFeatureDebounce.js":[8709,792],"./languageFeatures":[6942,792],"./languageFeatures.js":[6942,792],"./languageFeaturesService":[2661,792],"./languageFeaturesService.js":[2661,792],"./languageService":[7596,792],"./languageService.js":[7596,792],"./languagesAssociations":[9908,792],"./languagesAssociations.js":[9908,792],"./languagesRegistry":[9259,792],"./languagesRegistry.js":[9259,792],"./markerDecorations":[7550,792],"./markerDecorations.js":[7550,792],"./markerDecorationsService":[448,792],"./markerDecorationsService.js":[448,792],"./model":[3750,792],"./model.js":[3750,792],"./modelService":[1773,792],"./modelService.js":[1773,792],"./resolverService":[8938,792],"./resolverService.js":[8938,792],"./semanticTokensDto":[8232,792],"./semanticTokensDto.js":[8232,792],"./semanticTokensProviderStyling":[5538,792],"./semanticTokensProviderStyling.js":[5538,792],"./semanticTokensStyling":[4243,792],"./semanticTokensStyling.js":[4243,792],"./semanticTokensStylingService":[7004,792],"./semanticTokensStylingService.js":[7004,792],"./textModelSync/textModelSync.impl":[796],"./textModelSync/textModelSync.impl.js":[796],"./textModelSync/textModelSync.protocol":[8868,792],"./textModelSync/textModelSync.protocol.js":[8868,792],"./textResourceConfiguration":[360,792],"./textResourceConfiguration.js":[360,792],"./treeSitterParserService":[4432,792],"./treeSitterParserService.js":[4432,792],"./treeViewsDnd":[6723,792],"./treeViewsDnd.js":[6723,792],"./treeViewsDndService":[9100,792],"./treeViewsDndService.js":[9100,792],"./unicodeTextModelHighlighter":[4855],"./unicodeTextModelHighlighter.js":[4855],"monaco-editor/esm/vs/editor/common/services/editorBaseApi":[4272],"monaco-editor/esm/vs/editor/common/services/editorBaseApi.js":[4272],"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker":[5196],"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker.js":[5196],"monaco-editor/esm/vs/editor/common/services/editorWorker":[920,792],"monaco-editor/esm/vs/editor/common/services/editorWorker.js":[920,792],"monaco-editor/esm/vs/editor/common/services/editorWorkerHost":[718],"monaco-editor/esm/vs/editor/common/services/editorWorkerHost.js":[718],"monaco-editor/esm/vs/editor/common/services/findSectionHeaders":[6691],"monaco-editor/esm/vs/editor/common/services/findSectionHeaders.js":[6691],"monaco-editor/esm/vs/editor/common/services/getIconClasses":[5628,792],"monaco-editor/esm/vs/editor/common/services/getIconClasses.js":[5628,792],"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce":[8709,792],"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce.js":[8709,792],"monaco-editor/esm/vs/editor/common/services/languageFeatures":[6942,792],"monaco-editor/esm/vs/editor/common/services/languageFeatures.js":[6942,792],"monaco-editor/esm/vs/editor/common/services/languageFeaturesService":[2661,792],"monaco-editor/esm/vs/editor/common/services/languageFeaturesService.js":[2661,792],"monaco-editor/esm/vs/editor/common/services/languageService":[7596,792],"monaco-editor/esm/vs/editor/common/services/languageService.js":[7596,792],"monaco-editor/esm/vs/editor/common/services/languagesAssociations":[9908,792],"monaco-editor/esm/vs/editor/common/services/languagesAssociations.js":[9908,792],"monaco-editor/esm/vs/editor/common/services/languagesRegistry":[9259,792],"monaco-editor/esm/vs/editor/common/services/languagesRegistry.js":[9259,792],"monaco-editor/esm/vs/editor/common/services/markerDecorations":[7550,792],"monaco-editor/esm/vs/editor/common/services/markerDecorations.js":[7550,792],"monaco-editor/esm/vs/editor/common/services/markerDecorationsService":[448,792],"monaco-editor/esm/vs/editor/common/services/markerDecorationsService.js":[448,792],"monaco-editor/esm/vs/editor/common/services/model":[3750,792],"monaco-editor/esm/vs/editor/common/services/model.js":[3750,792],"monaco-editor/esm/vs/editor/common/services/modelService":[1773,792],"monaco-editor/esm/vs/editor/common/services/modelService.js":[1773,792],"monaco-editor/esm/vs/editor/common/services/resolverService":[8938,792],"monaco-editor/esm/vs/editor/common/services/resolverService.js":[8938,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensDto":[8232,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensDto.js":[8232,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling":[5538,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling.js":[5538,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling":[4243,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling.js":[4243,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService":[7004,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService.js":[7004,792],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl":[796],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl.js":[796],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol":[8868,792],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol.js":[8868,792],"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration":[360,792],"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration.js":[360,792],"monaco-editor/esm/vs/editor/common/services/treeSitterParserService":[4432,792],"monaco-editor/esm/vs/editor/common/services/treeSitterParserService.js":[4432,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDnd":[6723,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDnd.js":[6723,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDndService":[9100,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDndService.js":[9100,792],"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter":[4855],"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter.js":[4855]};function o(e){if(!n.o(r,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],o=t[0];return Promise.all(t.slice(1).map(n.e)).then((()=>n(o)))}o.keys=()=>Object.keys(r),o.id=9204,e.exports=o},7614:(e,t,n)=>{var r={"./editorBaseApi":4272,"./editorBaseApi.js":4272,"./editorSimpleWorker":5196,"./editorSimpleWorker.js":5196,"./editorWorker":920,"./editorWorker.js":920,"./editorWorkerHost":718,"./editorWorkerHost.js":718,"./findSectionHeaders":6691,"./findSectionHeaders.js":6691,"./getIconClasses":5628,"./getIconClasses.js":5628,"./languageFeatureDebounce":8709,"./languageFeatureDebounce.js":8709,"./languageFeatures":6942,"./languageFeatures.js":6942,"./languageFeaturesService":2661,"./languageFeaturesService.js":2661,"./languageService":7596,"./languageService.js":7596,"./languagesAssociations":9908,"./languagesAssociations.js":9908,"./languagesRegistry":9259,"./languagesRegistry.js":9259,"./markerDecorations":7550,"./markerDecorations.js":7550,"./markerDecorationsService":448,"./markerDecorationsService.js":448,"./model":3750,"./model.js":3750,"./modelService":1773,"./modelService.js":1773,"./resolverService":8938,"./resolverService.js":8938,"./semanticTokensDto":8232,"./semanticTokensDto.js":8232,"./semanticTokensProviderStyling":5538,"./semanticTokensProviderStyling.js":5538,"./semanticTokensStyling":4243,"./semanticTokensStyling.js":4243,"./semanticTokensStylingService":7004,"./semanticTokensStylingService.js":7004,"./textModelSync/textModelSync.impl":796,"./textModelSync/textModelSync.impl.js":796,"./textModelSync/textModelSync.protocol":8868,"./textModelSync/textModelSync.protocol.js":8868,"./textResourceConfiguration":360,"./textResourceConfiguration.js":360,"./treeSitterParserService":4432,"./treeSitterParserService.js":4432,"./treeViewsDnd":6723,"./treeViewsDnd.js":6723,"./treeViewsDndService":9100,"./treeViewsDndService.js":9100,"./unicodeTextModelHighlighter":4855,"./unicodeTextModelHighlighter.js":4855,"monaco-editor/esm/vs/editor/common/services/editorBaseApi":4272,"monaco-editor/esm/vs/editor/common/services/editorBaseApi.js":4272,"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker":5196,"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker.js":5196,"monaco-editor/esm/vs/editor/common/services/editorWorker":920,"monaco-editor/esm/vs/editor/common/services/editorWorker.js":920,"monaco-editor/esm/vs/editor/common/services/editorWorkerHost":718,"monaco-editor/esm/vs/editor/common/services/editorWorkerHost.js":718,"monaco-editor/esm/vs/editor/common/services/findSectionHeaders":6691,"monaco-editor/esm/vs/editor/common/services/findSectionHeaders.js":6691,"monaco-editor/esm/vs/editor/common/services/getIconClasses":5628,"monaco-editor/esm/vs/editor/common/services/getIconClasses.js":5628,"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce":8709,"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce.js":8709,"monaco-editor/esm/vs/editor/common/services/languageFeatures":6942,"monaco-editor/esm/vs/editor/common/services/languageFeatures.js":6942,"monaco-editor/esm/vs/editor/common/services/languageFeaturesService":2661,"monaco-editor/esm/vs/editor/common/services/languageFeaturesService.js":2661,"monaco-editor/esm/vs/editor/common/services/languageService":7596,"monaco-editor/esm/vs/editor/common/services/languageService.js":7596,"monaco-editor/esm/vs/editor/common/services/languagesAssociations":9908,"monaco-editor/esm/vs/editor/common/services/languagesAssociations.js":9908,"monaco-editor/esm/vs/editor/common/services/languagesRegistry":9259,"monaco-editor/esm/vs/editor/common/services/languagesRegistry.js":9259,"monaco-editor/esm/vs/editor/common/services/markerDecorations":7550,"monaco-editor/esm/vs/editor/common/services/markerDecorations.js":7550,"monaco-editor/esm/vs/editor/common/services/markerDecorationsService":448,"monaco-editor/esm/vs/editor/common/services/markerDecorationsService.js":448,"monaco-editor/esm/vs/editor/common/services/model":3750,"monaco-editor/esm/vs/editor/common/services/model.js":3750,"monaco-editor/esm/vs/editor/common/services/modelService":1773,"monaco-editor/esm/vs/editor/common/services/modelService.js":1773,"monaco-editor/esm/vs/editor/common/services/resolverService":8938,"monaco-editor/esm/vs/editor/common/services/resolverService.js":8938,"monaco-editor/esm/vs/editor/common/services/semanticTokensDto":8232,"monaco-editor/esm/vs/editor/common/services/semanticTokensDto.js":8232,"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling":5538,"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling.js":5538,"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling":4243,"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling.js":4243,"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService":7004,"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService.js":7004,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl":796,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl.js":796,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol":8868,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol.js":8868,"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration":360,"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration.js":360,"monaco-editor/esm/vs/editor/common/services/treeSitterParserService":4432,"monaco-editor/esm/vs/editor/common/services/treeSitterParserService.js":4432,"monaco-editor/esm/vs/editor/common/services/treeViewsDnd":6723,"monaco-editor/esm/vs/editor/common/services/treeViewsDnd.js":6723,"monaco-editor/esm/vs/editor/common/services/treeViewsDndService":9100,"monaco-editor/esm/vs/editor/common/services/treeViewsDndService.js":9100,"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter":4855,"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter.js":4855};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=7614}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.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.e=()=>Promise.resolve(),n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=n(1929),t=n(5196),r=n(718);let o=!1;function i(n){if(o)return;o=!0;const i=new e.SimpleWorkerServer((e=>{globalThis.postMessage(e)}),(e=>new t.EditorSimpleWorker(r.EditorWorkerHost.getChannel(e),n)));globalThis.onmessage=e=>{i.onmessage(e.data)}}globalThis.onmessage=e=>{o||i(null)};var a="/index.js",s=Object.defineProperty,l={};((e,t)=>{for(var n in t)s(e,n,{get:t[n],enumerable:!0})})(l,{EndOfLineState:()=>_,IndentStyle:()=>g,ScriptKind:()=>y,ScriptTarget:()=>v,TokenClass:()=>b,createClassifier:()=>p,createLanguageService:()=>f,displayPartsToString:()=>m,flattenDiagnosticMessageText:()=>h,typescript:()=>E});var c=void 0,d={exports:{}},u=(()=>{var e,t,r,o,i,s,l,u,p,f,m,_,h,g,y=Object.defineProperty,v=Object.getOwnPropertyNames,b=(e,t)=>function(){return e&&(t=(0,e[v(e)[0]])(e=0)),t},E=(e,t)=>{for(var n in t)y(e,n,{get:t[n],enumerable:!0})},S=b({"src/compiler/corePublic.ts"(){e="5.4",t="5.4.5",r=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(r||{})}});function T(e){return e?e.length:0}function x(e,t){if(e)for(let n=0;n<e.length;n++){const r=t(e[n],n);if(r)return r}}function A(e,t){if(e)for(let n=e.length-1;n>=0;n--){const r=t(e[n],n);if(r)return r}}function I(e,t){if(void 0!==e)for(let n=0;n<e.length;n++){const r=t(e[n],n);if(void 0!==r)return r}}function R(e,t){for(const n of e){const e=t(n);if(void 0!==e)return e}}function C(e,t,n){let r=n;if(e){let n=0;for(const o of e)r=t(r,o,n),n++}return r}function D(e,t,n){const r=[];In.assertEqual(e.length,t.length);for(let o=0;o<e.length;o++)r.push(n(e[o],t[o],o));return r}function N(e,t){if(e.length<=1)return e;const n=[];for(let r=0,o=e.length;r<o;r++)r&&n.push(t),n.push(e[r]);return n}function M(e,t){if(e)for(let n=0;n<e.length;n++)if(!t(e[n],n))return!1;return!0}function L(e,t,n){if(void 0!==e)for(let r=n??0;r<e.length;r++){const n=e[r];if(t(n,r))return n}}function k(e,t,n){if(void 0!==e)for(let r=n??e.length-1;r>=0;r--){const n=e[r];if(t(n,r))return n}}function P(e,t,n){if(void 0===e)return-1;for(let r=n??0;r<e.length;r++)if(t(e[r],r))return r;return-1}function w(e,t,n){if(void 0===e)return-1;for(let r=n??e.length-1;r>=0;r--)if(t(e[r],r))return r;return-1}function O(e,t){for(let n=0;n<e.length;n++){const r=t(e[n],n);if(r)return r}return In.fail()}function F(e,t,n=kt){if(e)for(const r of e)if(n(r,t))return!0;return!1}function W(e,t,n=kt){return e.length===t.length&&e.every(((e,r)=>n(e,t[r])))}function z(e,t,n){for(let r=n||0;r<e.length;r++)if(F(t,e.charCodeAt(r)))return r;return-1}function B(e,t){let n=0;if(e)for(let r=0;r<e.length;r++){t(e[r],r)&&n++}return n}function G(e,t){if(e){const n=e.length;let r=0;for(;r<n&&t(e[r]);)r++;if(r<n){const o=e.slice(0,r);for(r++;r<n;){const n=e[r];t(n)&&o.push(n),r++}return o}}return e}function j(e,t){let n=0;for(let r=0;r<e.length;r++)t(e[r],r,e)&&(e[n]=e[r],n++);e.length=n}function V(e){e.length=0}function U(e,t){let n;if(e){n=[];for(let r=0;r<e.length;r++)n.push(t(e[r],r))}return n}function*H(e,t){for(const n of e)yield t(n)}function K(e,t){if(e)for(let n=0;n<e.length;n++){const r=e[n],o=t(r,n);if(r!==o){const r=e.slice(0,n);for(r.push(o),n++;n<e.length;n++)r.push(t(e[n],n));return r}}return e}function q(e){const t=[];for(const n of e)n&&(mt(n)?xe(t,n):t.push(n));return t}function J(e,t){let n;if(e)for(let r=0;r<e.length;r++){const o=t(e[r],r);o&&(n=mt(o)?xe(n,o):Ee(n,o))}return n||o}function X(e,t){const n=[];if(e)for(let r=0;r<e.length;r++){const o=t(e[r],r);o&&(mt(o)?xe(n,o):n.push(o))}return n}function*$(e,t){for(const n of e){const e=t(n);e&&(yield*e)}}function Y(e,t){let n;if(e)for(let r=0;r<e.length;r++){const o=e[r],i=t(o,r);(n||o!==i||mt(i))&&(n||(n=e.slice(0,r)),mt(i)?xe(n,i):n.push(i))}return n||e}function Q(e,t){const n=[];for(let r=0;r<e.length;r++){const o=t(e[r],r);if(void 0===o)return;n.push(o)}return n}function Z(e,t){const n=[];if(e)for(let r=0;r<e.length;r++){const o=t(e[r],r);void 0!==o&&n.push(o)}return n}function*ee(e,t){for(const n of e){const e=t(n);void 0!==e&&(yield e)}}function te(e,t){if(!e)return;const n=new Map;return e.forEach(((e,r)=>{const o=t(r,e);if(void 0!==o){const[e,t]=o;void 0!==e&&void 0!==t&&n.set(e,t)}})),n}function ne(e,t,n){if(e.has(t))return e.get(t);const r=n();return e.set(t,r),r}function re(e,t){return!e.has(t)&&(e.add(t),!0)}function*oe(e){yield e}function ie(e,t,n){let r;if(e){r=[];const o=e.length;let i,a,s=0,l=0;for(;s<o;){for(;l<o;){if(a=t(e[l],l),0===l)i=a;else if(a!==i)break;l++}if(s<l){const t=n(e.slice(s,l),i,s,l);t&&r.push(t),s=l}i=a,l++}}return r}function ae(e,t){if(!e)return;const n=new Map;return e.forEach(((e,r)=>{const[o,i]=t(r,e);n.set(o,i)})),n}function se(e,t){if(e){if(!t)return e.length>0;for(const n of e)if(t(n))return!0}return!1}function le(e,t,n){let r;for(let o=0;o<e.length;o++)t(e[o])?r=void 0===r?o:r:void 0!==r&&(n(r,o),r=void 0);void 0!==r&&n(r,e.length)}function ce(e,t){return se(t)?se(e)?[...e,...t]:t:e}function de(e,t){return t}function ue(e){return e.map(de)}function pe(e,t,n){return 0===e.length?[]:1===e.length?e.slice():n?function(e,t,n){const r=ue(e);Re(e,r,n);let o=e[r[0]];const i=[r[0]];for(let a=1;a<r.length;a++){const n=r[a],s=e[n];t(o,s)||(i.push(n),o=s)}return i.sort(),i.map((t=>e[t]))}(e,t,n):function(e,t){const n=[];for(const r of e)Ae(n,r,t);return n}(e,t)}function fe(){return[]}function me(e,t,n,r){if(0===e.length)return e.push(t),!0;const o=je(e,t,xt,n);return o<0?(e.splice(~o,0,t),!0):!!r&&(e.splice(o,0,t),!0)}function _e(e,t,n){return function(e,t){if(0===e.length)return o;let n=e[0];const r=[n];for(let o=1;o<e.length;o++){const i=e[o];switch(t(i,n)){case!0:case 0:continue;case-1:return In.fail("Array is unsorted.")}r.push(n=i)}return r}(Ce(e,t),n||t||jt)}function he(e,t){if(e.length<2)return!0;for(let n=1,r=e.length;n<r;n++)if(1===t(e[n-1],e[n]))return!1;return!0}function ge(e,t,n,r){let o=3;if(e.length<2)return o;let i=t(e[0]);for(let a=1,s=e.length;a<s&&0!==o;a++){const s=t(e[a]);1&o&&n(i,s)>0&&(o&=-2),2&o&&r(i,s)>0&&(o&=-3),i=s}return o}function ye(e,t,n=kt){if(!e||!t)return e===t;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r],r))return!1;return!0}function ve(e){let t;if(e)for(let n=0;n<e.length;n++){const r=e[n];!t&&r||(t||(t=e.slice(0,n)),r&&t.push(r))}return t||e}function be(e,t,n){if(!t||!e||0===t.length||0===e.length)return t;const r=[];e:for(let o=0,i=0;i<t.length;i++){i>0&&In.assertGreaterThanOrEqual(n(t[i],t[i-1]),0);t:for(const a=o;o<e.length;o++)switch(o>a&&In.assertGreaterThanOrEqual(n(e[o],e[o-1]),0),n(t[i],e[o])){case-1:r.push(t[i]);continue e;case 0:continue e;case 1:continue t}}return r}function Ee(e,t){return void 0===t?e:void 0===e?[t]:(e.push(t),e)}function Se(e,t){return void 0===e?t:void 0===t?e:mt(e)?mt(t)?ce(e,t):Ee(e,t):mt(t)?Ee(t,e):[e,t]}function Te(e,t){return t<0?e.length+t:t}function xe(e,t,n,r){if(void 0===t||0===t.length)return e;if(void 0===e)return t.slice(n,r);n=void 0===n?0:Te(t,n),r=void 0===r?t.length:Te(t,r);for(let o=n;o<r&&o<t.length;o++)void 0!==t[o]&&e.push(t[o]);return e}function Ae(e,t,n){return!F(e,t,n)&&(e.push(t),!0)}function Ie(e,t,n){return e?(Ae(e,t,n),e):[t]}function Re(e,t,n){t.sort(((t,r)=>n(e[t],e[r])||Ft(t,r)))}function Ce(e,t){return 0===e.length?e:e.slice().sort(t)}function*De(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function Ne(e,t){const n=ue(e);return Re(e,n,t),n.map((t=>e[t]))}function Me(e,t,n,r){for(;n<r;){if(e[n]!==t[n])return!1;n++}return!0}function Le(e){return void 0===e||0===e.length?void 0:e[0]}function ke(e){if(e)for(const t of e)return t}function Pe(e){return In.assert(0!==e.length),e[0]}function we(e){for(const t of e)return t;In.fail("iterator is empty")}function Oe(e){return void 0===e||0===e.length?void 0:e[e.length-1]}function Fe(e){return In.assert(0!==e.length),e[e.length-1]}function We(e){return e&&1===e.length?e[0]:void 0}function ze(e){return In.checkDefined(We(e))}function Be(e){return e&&1===e.length?e[0]:e}function Ge(e,t,n){const r=e.slice(0);return r[t]=n,r}function je(e,t,n,r,o){return Ve(e,n(t),n,r,o)}function Ve(e,t,n,r,o){if(!se(e))return-1;let i=o||0,a=e.length-1;for(;i<=a;){const o=i+(a-i>>1);switch(r(n(e[o],o),t)){case-1:i=o+1;break;case 0:return o;case 1:a=o-1}}return~i}function Ue(e,t,n,r,o){if(e&&e.length>0){const i=e.length;if(i>0){let a=void 0===r||r<0?0:r;const s=void 0===o||a+o>i-1?i-1:a+o;let l;for(arguments.length<=2?(l=e[a],a++):l=n;a<=s;)l=t(l,e[a],a),a++;return l}}return n}function He(e,t){return p.call(e,t)}function Ke(e,t){return p.call(e,t)?e[t]:void 0}function qe(e){const t=[];for(const n in e)p.call(e,n)&&t.push(n);return t}function Je(e){const t=[];do{const n=Object.getOwnPropertyNames(e);for(const e of n)Ae(t,e)}while(e=Object.getPrototypeOf(e));return t}function Xe(e){const t=[];for(const n in e)p.call(e,n)&&t.push(e[n]);return t}function $e(e,t){const n=new Array(e);for(let r=0;r<e;r++)n[r]=t(r);return n}function Ye(e,t){const n=[];for(const r of e)n.push(t?t(r):r);return n}function Qe(e,...t){for(const n of t)if(void 0!==n)for(const t in n)He(n,t)&&(e[t]=n[t]);return e}function Ze(e,t,n=kt){if(e===t)return!0;if(!e||!t)return!1;for(const r in e)if(p.call(e,r)){if(!p.call(t,r))return!1;if(!n(e[r],t[r]))return!1}for(const r in t)if(p.call(t,r)&&!p.call(e,r))return!1;return!0}function et(e,t,n=xt){const r=new Map;for(const o of e){const e=t(o);void 0!==e&&r.set(e,n(o))}return r}function tt(e,t,n=xt){const r=[];for(const o of e)r[t(o)]=n(o);return r}function nt(e,t,n=xt){const r=ct();for(const o of e)r.add(t(o),n(o));return r}function rt(e,t,n=xt){return Ye(nt(e,t).values(),n)}function ot(e,t){const n={};if(e)for(const r of e){const e=`${t(r)}`;(n[e]??(n[e]=[])).push(r)}return n}function it(e){const t={};for(const n in e)p.call(e,n)&&(t[n]=e[n]);return t}function at(e,t){const n={};for(const r in t)p.call(t,r)&&(n[r]=t[r]);for(const r in e)p.call(e,r)&&(n[r]=e[r]);return n}function st(e,t){for(const n in t)p.call(t,n)&&(e[n]=t[n])}function lt(e,t){return t?t.bind(e):void 0}function ct(){const e=new Map;return e.add=dt,e.remove=ut,e}function dt(e,t){let n=this.get(e);return n?n.push(t):this.set(e,n=[t]),n}function ut(e,t){const n=this.get(e);n&&(on(n,t),n.length||this.delete(e))}function pt(e){const t=(null==e?void 0:e.slice())||[];let n=0;function r(){return n===t.length}return{enqueue:function(...e){t.push(...e)},dequeue:function(){if(r())throw new Error("Queue is empty");const e=t[n];if(t[n]=void 0,n++,n>100&&n>t.length>>1){const e=t.length-n;t.copyWithin(0,n),t.length=e,n=0}return e},isEmpty:r}}function ft(e,t){const n=new Map;let r=0;function*o(){for(const e of n.values())mt(e)?yield*e:yield e}const i={has(r){const o=e(r);if(!n.has(o))return!1;const i=n.get(o);if(!mt(i))return t(i,r);for(const e of i)if(t(e,r))return!0;return!1},add(o){const i=e(o);if(n.has(i)){const e=n.get(i);if(mt(e))F(e,o,t)||(e.push(o),r++);else{const a=e;t(a,o)||(n.set(i,[a,o]),r++)}}else n.set(i,o),r++;return this},delete(o){const i=e(o);if(!n.has(i))return!1;const a=n.get(i);if(mt(a)){for(let e=0;e<a.length;e++)if(t(a[e],o))return 1===a.length?n.delete(i):2===a.length?n.set(i,a[1-e]):rn(a,e),r--,!0}else{if(t(a,o))return n.delete(i),r--,!0}return!1},clear(){n.clear(),r=0},get size(){return r},forEach(e){for(const t of Ye(n.values()))if(mt(t))for(const n of t)e(n,n,i);else{e(t,t,i)}},keys:()=>o(),values:()=>o(),*entries(){for(const e of o())yield[e,e]},[Symbol.iterator]:()=>o(),[Symbol.toStringTag]:n[Symbol.toStringTag]};return i}function mt(e){return Array.isArray(e)}function _t(e){return mt(e)?e:[e]}function ht(e){return"string"===typeof e}function gt(e){return"number"===typeof e}function yt(e,t){return void 0!==e&&t(e)?e:void 0}function vt(e,t){return void 0!==e&&t(e)?e:In.fail(`Invalid cast. The supplied value ${e} did not pass the test '${In.getFunctionName(t)}'.`)}function bt(e){}function Et(){return!1}function St(){return!0}function Tt(){}function xt(e){return e}function At(e){return e.toLowerCase()}function It(e){return f.test(e)?e.replace(f,At):e}function Rt(){throw new Error("Not implemented")}function Ct(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function Dt(e){const t=new Map;return n=>{const r=`${typeof n}:${n}`;let o=t.get(r);return void 0!==o||t.has(r)||(o=e(n),t.set(r,o)),o}}function Nt(e){const t=new WeakMap;return n=>{let r=t.get(n);return void 0!==r||t.has(n)||(r=e(n),t.set(n,r)),r}}function Mt(e,t){return(...n)=>{let r=t.get(n);return void 0!==r||t.has(n)||(r=e(...n),t.set(n,r)),r}}function Lt(e,t,n,r,o){if(o){const e=[];for(let t=0;t<arguments.length;t++)e[t]=arguments[t];return t=>Ue(e,((e,t)=>t(e)),t)}return r?o=>r(n(t(e(o)))):n?r=>n(t(e(r))):t?n=>t(e(n)):e?t=>e(t):e=>e}function kt(e,t){return e===t}function Pt(e,t){return e===t||void 0!==e&&void 0!==t&&e.toUpperCase()===t.toUpperCase()}function wt(e,t){return kt(e,t)}function Ot(e,t){return e===t?0:void 0===e?-1:void 0===t?1:e<t?-1:1}function Ft(e,t){return Ot(e,t)}function Wt(e,t){return Ft(null==e?void 0:e.start,null==t?void 0:t.start)||Ft(null==e?void 0:e.length,null==t?void 0:t.length)}function zt(e,t){return Ue(e,((e,n)=>-1===t(e,n)?e:n))}function Bt(e,t){return e===t?0:void 0===e?-1:void 0===t?1:(e=e.toUpperCase())<(t=t.toUpperCase())?-1:e>t?1:0}function Gt(e,t){return e===t?0:void 0===e?-1:void 0===t?1:(e=e.toLowerCase())<(t=t.toLowerCase())?-1:e>t?1:0}function jt(e,t){return Ot(e,t)}function Vt(e){return e?Bt:jt}function Ut(){return g}function Ht(e){g!==e&&(g=e,h=void 0)}function Kt(e,t){return(h||(h=_(g)))(e,t)}function qt(e,t,n,r){return e===t?0:void 0===e?-1:void 0===t?1:r(e[n],t[n])}function Jt(e,t){return Ft(e?1:0,t?1:0)}function Xt(e,t,n){const r=Math.max(2,Math.floor(.34*e.length));let o,i=Math.floor(.4*e.length)+1;for(const a of t){const t=n(a);if(void 0!==t&&Math.abs(t.length-e.length)<=r){if(t===e)continue;if(t.length<3&&t.toLowerCase()!==e.toLowerCase())continue;const n=$t(e,t,i-.1);if(void 0===n)continue;In.assert(n<i),i=n,o=a}}return o}function $t(e,t,n){let r=new Array(t.length+1),o=new Array(t.length+1);const i=n+.01;for(let s=0;s<=t.length;s++)r[s]=s;for(let s=1;s<=e.length;s++){const a=e.charCodeAt(s-1),l=Math.ceil(s>n?s-n:1),c=Math.floor(t.length>n+s?n+s:t.length);o[0]=s;let d=s;for(let e=1;e<l;e++)o[e]=i;for(let n=l;n<=c;n++){const i=e[s-1].toLowerCase()===t[n-1].toLowerCase()?r[n-1]+.1:r[n-1]+2,l=a===t.charCodeAt(n-1)?r[n-1]:Math.min(r[n]+1,o[n-1]+1,i);o[n]=l,d=Math.min(d,l)}for(let e=c+1;e<=t.length;e++)o[e]=i;if(d>n)return;const u=r;r=o,o=u}const a=r[t.length];return a>n?void 0:a}function Yt(e,t,n){const r=e.length-t.length;return r>=0&&(n?Pt(e.slice(r),t):e.indexOf(t,r)===r)}function Qt(e,t){return Yt(e,t)?e.slice(0,e.length-t.length):e}function Zt(e,t){return Yt(e,t)?e.slice(0,e.length-t.length):void 0}function en(e){let t=e.length;for(let n=t-1;n>0;n--){let r=e.charCodeAt(n);if(r>=48&&r<=57)do{--n,r=e.charCodeAt(n)}while(n>0&&r>=48&&r<=57);else{if(!(n>4)||110!==r&&78!==r)break;if(--n,r=e.charCodeAt(n),105!==r&&73!==r)break;if(--n,r=e.charCodeAt(n),109!==r&&77!==r)break;--n,r=e.charCodeAt(n)}if(45!==r&&46!==r)break;t=n}return t===e.length?e:e.slice(0,t)}function tn(e,t){for(let n=0;n<e.length;n++)if(e[n]===t)return nn(e,n),!0;return!1}function nn(e,t){for(let n=t;n<e.length-1;n++)e[n]=e[n+1];e.pop()}function rn(e,t){e[t]=e[e.length-1],e.pop()}function on(e,t){return function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return rn(e,n),!0;return!1}(e,(e=>e===t))}function an(e){return e?xt:It}function sn({prefix:e,suffix:t}){return`${e}*${t}`}function ln(e,t){return In.assert(fn(e,t)),t.substring(e.prefix.length,t.length-e.suffix.length)}function cn(e,t,n){let r,o=-1;for(const i of e){const e=t(i);fn(e,n)&&e.prefix.length>o&&(o=e.prefix.length,r=i)}return r}function dn(e,t,n){return n?Pt(e.slice(0,t.length),t):0===e.lastIndexOf(t,0)}function un(e,t){return dn(e,t)?e.substr(t.length):e}function pn(e,t,n=xt){return dn(n(e),n(t))?e.substring(t.length):void 0}function fn({prefix:e,suffix:t},n){return n.length>=e.length+t.length&&dn(n,e)&&Yt(n,t)}function mn(e,t){return n=>e(n)&&t(n)}function _n(...e){return(...t)=>{let n;for(const r of e)if(n=r(...t),n)return n;return n}}function hn(e){return(...t)=>!e(...t)}function gn(e){}function yn(e){return void 0===e?void 0:[e]}function vn(e,t,n,r,o,i){i=i||bt;let a=0,s=0;const l=e.length,c=t.length;let d=!1;for(;a<l&&s<c;){const l=e[a],c=t[s],u=n(l,c);-1===u?(r(l),a++,d=!0):1===u?(o(c),s++,d=!0):(i(c,l),a++,s++)}for(;a<l;)r(e[a++]),d=!0;for(;s<c;)o(t[s++]),d=!0;return d}function bn(e){const t=[];return En(e,t,void 0,0),t}function En(e,t,n,r){for(const o of e[r]){let i;n?(i=n.slice(),i.push(o)):i=[o],r===e.length-1?t.push(i):En(e,t,i,r+1)}}function Sn(e,t){if(e){const n=e.length;let r=0;for(;r<n&&t(e[r]);)r++;return e.slice(0,r)}}function Tn(e,t){if(e){const n=e.length;let r=0;for(;r<n&&t(e[r]);)r++;return e.slice(r)}}function xn(){return"undefined"!==typeof process&&!!process.nextTick&&!process.browser&&"object"===typeof d}var An,In,Rn,Cn,Dn,Nn,Mn,Ln,kn,Pn,wn,On,Fn,Wn,zn,Bn,Gn=b({"src/compiler/core.ts"(){JJ(),o=[],i=new Map,s=new Set,l=(e=>(e[e.None=0]="None",e[e.CaseSensitive=1]="CaseSensitive",e[e.CaseInsensitive=2]="CaseInsensitive",e[e.Both=3]="Both",e))(l||{}),u=Array.prototype.at?(e,t)=>null==e?void 0:e.at(t):(e,t)=>{if(e&&(t=Te(e,t))<e.length)return e[t]},p=Object.prototype.hasOwnProperty,f=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_. ]+/g,m=(e=>(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(m||{}),_=(()=>function(e){const t=new Intl.Collator(e,{usage:"sort",sensitivity:"variant"}).compare;return(e,n)=>function(e,t,n){if(e===t)return 0;if(void 0===e)return-1;if(void 0===t)return 1;const r=n(e,t);return r<0?-1:r>0?1:0}(e,n,t)})()}}),jn=b({"src/compiler/debug.ts"(){JJ(),JJ(),An=(e=>(e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose",e))(An||{}),(e=>{let t=0;function n(t){return e.currentLogLevel<=t}function r(t,r){e.loggingHost&&n(t)&&e.loggingHost.log(t,r)}function o(e){r(3,e)}var i;e.currentLogLevel=2,e.isDebugging=!1,e.shouldLog=n,e.log=o,(i=o=e.log||(e.log={})).error=function(e){r(1,e)},i.warn=function(e){r(2,e)},i.log=function(e){r(3,e)},i.trace=function(e){r(4,e)};const a={};function s(e){return t>=e}function l(t,n){return!!s(t)||(a[n]={level:t,assertion:e[n]},e[n]=bt,!1)}function c(e,t){const n=new Error(e?`Debug Failure. ${e}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(n,t||c),n}function d(e,t,n,r){e||(t=t?`False expression: ${t}`:"False expression.",n&&(t+="\r\nVerbose Debug Information: "+("string"===typeof n?n:n())),c(t,r||d))}function u(e,t,n){void 0!==e&&null!==e||c(t,n||u)}function p(e,t,n){for(const r of e)u(r,t,n||p)}function f(e,t="Illegal value:",n){return c(`${t} ${"object"===typeof e&&He(e,"kind")&&He(e,"pos")?"SyntaxKind: "+y(e.kind):JSON.stringify(e)}`,n||f)}function m(e){}function _(e){if("function"!==typeof e)return"";if(He(e,"name"))return e.name;{const t=Function.prototype.toString.call(e),n=/^function\s+([\w$]+)\s*\(/.exec(t);return n?n[1]:""}}function h(e=0,t,n){const r=function(e){const t=g.get(e);if(t)return t;const n=[];for(const o in e){const t=e[o];"number"===typeof t&&n.push([t,o])}const r=Ne(n,((e,t)=>Ft(e[0],t[0])));return g.set(e,r),r}(t);if(0===e)return r.length>0&&0===r[0][0]?r[0][1]:"0";if(n){const t=[];let n=e;for(const[o,i]of r){if(o>e)break;0!==o&&o&e&&(t.push(i),n&=~o)}if(0===n)return t.join("|")}else for(const[o,i]of r)if(o===e)return i;return e.toString()}e.getAssertionLevel=function(){return t},e.setAssertionLevel=function(n){const r=t;if(t=n,n>r)for(const t of qe(a)){const r=a[t];void 0!==r&&e[t]!==r.assertion&&n>=r.level&&(e[t]=r,a[t]=void 0)}},e.shouldAssert=s,e.fail=c,e.failBadSyntaxKind=function e(t,n,r){return c(`${n||"Unexpected node."}\r\nNode ${y(t.kind)} was unexpected.`,r||e)},e.assert=d,e.assertEqual=function e(t,n,r,o,i){if(t!==n){c(`Expected ${t} === ${n}. ${r?o?`${r} ${o}`:r:""}`,i||e)}},e.assertLessThan=function e(t,n,r,o){t>=n&&c(`Expected ${t} < ${n}. ${r||""}`,o||e)},e.assertLessThanOrEqual=function e(t,n,r){t>n&&c(`Expected ${t} <= ${n}`,r||e)},e.assertGreaterThanOrEqual=function e(t,n,r){t<n&&c(`Expected ${t} >= ${n}`,r||e)},e.assertIsDefined=u,e.checkDefined=function e(t,n,r){return u(t,n,r||e),t},e.assertEachIsDefined=p,e.checkEachDefined=function e(t,n,r){return p(t,n,r||e),t},e.assertNever=f,e.assertEachNode=function e(t,n,r,o){l(1,"assertEachNode")&&d(void 0===n||M(t,n),r||"Unexpected node.",(()=>`Node array did not pass test '${_(n)}'.`),o||e)},e.assertNode=function e(t,n,r,o){l(1,"assertNode")&&d(void 0!==t&&(void 0===n||n(t)),r||"Unexpected node.",(()=>`Node ${y(null==t?void 0:t.kind)} did not pass test '${_(n)}'.`),o||e)},e.assertNotNode=function e(t,n,r,o){l(1,"assertNotNode")&&d(void 0===t||void 0===n||!n(t),r||"Unexpected node.",(()=>`Node ${y(t.kind)} should not have passed test '${_(n)}'.`),o||e)},e.assertOptionalNode=function e(t,n,r,o){l(1,"assertOptionalNode")&&d(void 0===n||void 0===t||n(t),r||"Unexpected node.",(()=>`Node ${y(null==t?void 0:t.kind)} did not pass test '${_(n)}'.`),o||e)},e.assertOptionalToken=function e(t,n,r,o){l(1,"assertOptionalToken")&&d(void 0===n||void 0===t||t.kind===n,r||"Unexpected node.",(()=>`Node ${y(null==t?void 0:t.kind)} was not a '${y(n)}' token.`),o||e)},e.assertMissingNode=function e(t,n,r){l(1,"assertMissingNode")&&d(void 0===t,n||"Unexpected node.",(()=>`Node ${y(t.kind)} was unexpected'.`),r||e)},e.type=m,e.getFunctionName=_,e.formatSymbol=function(e){return`{ name: ${Ll(e.escapedName)}; flags: ${T(e.flags)}; declarations: ${U(e.declarations,(e=>y(e.kind)))} }`},e.formatEnum=h;const g=new Map;function y(e){return h(e,Fr,!1)}function v(e){return h(e,Wr,!0)}function b(e){return h(e,zr,!0)}function E(e){return h(e,Ho,!0)}function S(e){return h(e,qo,!0)}function T(e){return h(e,lo,!0)}function x(e){return h(e,mo,!0)}function A(e){return h(e,So,!0)}function I(e){return h(e,_o,!0)}function R(e){return h(e,Ur,!0)}e.formatSyntaxKind=y,e.formatSnippetKind=function(e){return h(e,Ko,!1)},e.formatScriptKind=function(e){return h(e,zo,!1)},e.formatNodeFlags=v,e.formatModifierFlags=b,e.formatTransformFlags=E,e.formatEmitFlags=S,e.formatSymbolFlags=T,e.formatTypeFlags=x,e.formatSignatureFlags=A,e.formatObjectFlags=I,e.formatFlowFlags=R,e.formatRelationComparisonResult=function(e){return h(e,Gr,!0)},e.formatCheckMode=function(e){return h(e,Oz,!0)},e.formatSignatureCheckMode=function(e){return h(e,Fz,!0)},e.formatTypeFacts=function(e){return h(e,Pz,!0)};let C,N,L=!1;function k(e){"__debugFlowFlags"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value(){const e=2&this.flags?"FlowStart":4&this.flags?"FlowBranchLabel":8&this.flags?"FlowLoopLabel":16&this.flags?"FlowAssignment":32&this.flags?"FlowTrueCondition":64&this.flags?"FlowFalseCondition":128&this.flags?"FlowSwitchClause":256&this.flags?"FlowArrayMutation":512&this.flags?"FlowCall":1024&this.flags?"FlowReduceLabel":1&this.flags?"FlowUnreachable":"UnknownFlow",t=-2048&this.flags;return`${e}${t?` (${R(t)})`:""}`}},__debugFlowFlags:{get(){return h(this.flags,Ur,!0)}},__debugToString:{value(){return O(this)}}})}function P(e){"__tsDebuggerDisplay"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value:e=>`NodeArray ${e=String(e).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]")}`}})}e.attachFlowNodeDebugInfo=function(e){L&&("function"===typeof Object.setPrototypeOf?(C||(C=Object.create(Object.prototype),k(C)),Object.setPrototypeOf(e,C)):k(e))},e.attachNodeArrayDebugInfo=function(e){L&&("function"===typeof Object.setPrototypeOf?(N||(N=Object.create(Array.prototype),P(N)),Object.setPrototypeOf(e,N)):P(e))},e.enableDebugInfo=function(){if(L)return;const e=new WeakMap,t=new WeakMap;Object.defineProperties(Wp.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){const e=33554432&this.flags?"TransientSymbol":"Symbol",t=-33554433&this.flags;return`${e} '${wl(this)}'${t?` (${T(t)})`:""}`}},__debugFlags:{get(){return T(this.flags)}}}),Object.defineProperties(Wp.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){const e=67359327&this.flags?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:98304&this.flags?"NullableType":384&this.flags?`LiteralType ${JSON.stringify(this.value)}`:2048&this.flags?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:8192&this.flags?"UniqueESSymbolType":32&this.flags?"EnumType":1048576&this.flags?"UnionType":2097152&this.flags?"IntersectionType":4194304&this.flags?"IndexType":8388608&this.flags?"IndexedAccessType":16777216&this.flags?"ConditionalType":33554432&this.flags?"SubstitutionType":262144&this.flags?"TypeParameter":524288&this.flags?3&this.objectFlags?"InterfaceType":4&this.objectFlags?"TypeReference":8&this.objectFlags?"TupleType":16&this.objectFlags?"AnonymousType":32&this.objectFlags?"MappedType":1024&this.objectFlags?"ReverseMappedType":256&this.objectFlags?"EvolvingArrayType":"ObjectType":"Type",t=524288&this.flags?-1344&this.objectFlags:0;return`${e}${this.symbol?` '${wl(this.symbol)}'`:""}${t?` (${I(t)})`:""}`}},__debugFlags:{get(){return x(this.flags)}},__debugObjectFlags:{get(){return 524288&this.flags?I(this.objectFlags):""}},__debugTypeToString:{value(){let t=e.get(this);return void 0===t&&(t=this.checker.typeToString(this),e.set(this,t)),t}}}),Object.defineProperties(Wp.getSignatureConstructor().prototype,{__debugFlags:{get(){return A(this.flags)}},__debugSignatureToString:{value(){var e;return null==(e=this.checker)?void 0:e.signatureToString(this)}}});const n=[Wp.getNodeConstructor(),Wp.getIdentifierConstructor(),Wp.getTokenConstructor(),Wp.getSourceFileConstructor()];for(const r of n)He(r.prototype,"__debugKind")||Object.defineProperties(r.prototype,{__tsDebuggerDisplay:{value(){return`${ud(this)?"GeneratedIdentifier":nC(this)?`Identifier '${kl(this)}'`:rC(this)?`PrivateIdentifier '${kl(this)}'`:zR(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:FR(this)?`NumericLiteral ${this.text}`:WR(this)?`BigIntLiteral ${this.text}n`:vC(this)?"TypeParameterDeclaration":bC(this)?"ParameterDeclaration":RC(this)?"ConstructorDeclaration":CC(this)?"GetAccessorDeclaration":DC(this)?"SetAccessorDeclaration":NC(this)?"CallSignatureDeclaration":MC(this)?"ConstructSignatureDeclaration":LC(this)?"IndexSignatureDeclaration":kC(this)?"TypePredicateNode":PC(this)?"TypeReferenceNode":wC(this)?"FunctionTypeNode":OC(this)?"ConstructorTypeNode":FC(this)?"TypeQueryNode":WC(this)?"TypeLiteralNode":zC(this)?"ArrayTypeNode":BC(this)?"TupleTypeNode":jC(this)?"OptionalTypeNode":VC(this)?"RestTypeNode":UC(this)?"UnionTypeNode":HC(this)?"IntersectionTypeNode":KC(this)?"ConditionalTypeNode":qC(this)?"InferTypeNode":JC(this)?"ParenthesizedTypeNode":XC(this)?"ThisTypeNode":$C(this)?"TypeOperatorNode":YC(this)?"IndexedAccessTypeNode":QC(this)?"MappedTypeNode":ZC(this)?"LiteralTypeNode":GC(this)?"NamedTupleMember":eD(this)?"ImportTypeNode":y(this.kind)}${this.flags?` (${v(this.flags)})`:""}`}},__debugKind:{get(){return y(this.kind)}},__debugNodeFlags:{get(){return v(this.flags)}},__debugModifierFlags:{get(){return b(oE(this))}},__debugTransformFlags:{get(){return E(this.transformFlags)}},__debugIsParseTreeNode:{get(){return Dl(this)}},__debugEmitFlags:{get(){return S(Rm(this))}},__debugGetText:{value(e){if(Sv(this))return"";let n=t.get(this);if(void 0===n){const r=Nl(this),o=r&&Yf(r);n=o?Em(o,r,e):"",t.set(this,n)}return n}}});L=!0},e.formatVariance=function(e){const t=7&e;let n=0===t?"in out":3===t?"[bivariant]":2===t?"in":1===t?"out":4===t?"[independent]":"";return 8&e?n+=" (unmeasurable)":16&e&&(n+=" (unreliable)"),n};class w{__debugToString(){var e;switch(this.kind){case 3:return(null==(e=this.debugInfo)?void 0:e.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return D(this.sources,this.targets||U(this.sources,(()=>"any")),((e,t)=>`${e.__debugTypeToString()} -> ${"string"===typeof t?t:t.__debugTypeToString()}`)).join(", ");case 2:return D(this.sources,this.targets,((e,t)=>`${e.__debugTypeToString()} -> ${t().__debugTypeToString()}`)).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split("\n").join("\n ")}\nm2: ${this.mapper2.__debugToString().split("\n").join("\n ")}`;default:return f(this)}}}function O(e){let t,n=-1;function r(e){return e.id||(e.id=n,n--),e.id}var o;let i;var a;(o=t||(t={})).lr="\u2500",o.ud="\u2502",o.dr="\u256d",o.dl="\u256e",o.ul="\u256f",o.ur="\u2570",o.udr="\u251c",o.udl="\u2524",o.dlr="\u252c",o.ulr="\u2534",o.udlr="\u256b",(a=i||(i={}))[a.None=0]="None",a[a.Up=1]="Up",a[a.Down=2]="Down",a[a.Left=4]="Left",a[a.Right=8]="Right",a[a.UpDown=3]="UpDown",a[a.LeftRight=12]="LeftRight",a[a.UpLeft=5]="UpLeft",a[a.UpRight=9]="UpRight",a[a.DownLeft=6]="DownLeft",a[a.DownRight=10]="DownRight",a[a.UpDownLeft=7]="UpDownLeft",a[a.UpDownRight=11]="UpDownRight",a[a.UpLeftRight=13]="UpLeftRight",a[a.DownLeftRight=14]="DownLeftRight",a[a.UpDownLeftRight=15]="UpDownLeftRight",a[a.NoChildren=16]="NoChildren";const s=Object.create(null),l=[],c=[],d=_(e,new Set);for(const T of l)T.text=v(T.flowNode,T.circular),g(T);const u=function e(t){let n=0;for(const r of f(t))n=Math.max(n,e(r));return n+1}(d),p=function(e){const t=E(Array(e),0);for(const n of l)t[n.level]=Math.max(t[n.level],n.text.length);return t}(u);return function e(t,n){if(-1===t.lane){t.lane=n,t.endLane=n;const r=f(t);for(let o=0;o<r.length;o++){o>0&&n++;const i=r[o];e(i,n),i.endLane>t.endLane&&(n=i.endLane)}t.endLane=n}}(d,0),function(){const e=p.length,t=l.reduce(((e,t)=>Math.max(e,t.lane)),0)+1,n=E(Array(t),""),r=p.map((()=>Array(t))),o=p.map((()=>E(Array(t),0)));for(const a of l){r[a.level][a.lane]=a;const e=f(a);for(let n=0;n<e.length;n++){const t=e[n];let r=8;t.lane===a.lane&&(r|=4),n>0&&(r|=1),n<e.length-1&&(r|=2),o[a.level][t.lane]|=r}0===e.length&&(o[a.level][a.lane]|=16);const t=m(a);for(let n=0;n<t.length;n++){const e=t[n];let r=4;n>0&&(r|=1),n<t.length-1&&(r|=2),o[a.level-1][e.lane]|=r}}for(let a=0;a<e;a++)for(let e=0;e<t;e++){const t=a>0?o[a-1][e]:0,n=e>0?o[a][e-1]:0;let r=o[a][e];r||(8&t&&(r|=12),2&n&&(r|=3),o[a][e]=r)}for(let a=0;a<e;a++)for(let t=0;t<n.length;t++){const n=o[a][t],s=4&n?"\u2500":" ",l=r[a][t];l?(i(t,l.text),a<e-1&&(i(t," "),i(t,S(s,p[a]-l.text.length)))):a<e-1&&i(t,S(s,p[a]+1)),i(t,b(n)),i(t,8&n&&a<e-1&&!r[a+1][t]?"\u2500":" ")}return`\n${n.join("\n")}\n`;function i(e,t){n[e]+=t}}();function f(e){const t=[];for(const n of e.edges)n.source===e&&t.push(n.target);return t}function m(e){const t=[];for(const n of e.edges)n.target===e&&t.push(n.source);return t}function _(e,t){const n=r(e);let o=s[n];if(o&&t.has(e))return o.circular=!0,o={id:-1,flowNode:e,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},l.push(o),o;if(t.add(e),!o)if(s[n]=o={id:n,flowNode:e,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},l.push(o),12&(i=e).flags&&i.antecedents)for(const r of e.antecedents)h(o,r,t);else(function(e){return!!(2032&e.flags)})(e)&&h(o,e.antecedent,t);var i;return t.delete(e),o}function h(e,t,n){const r=_(t,n),o={source:e,target:r};c.push(o),e.edges.push(o),r.edges.push(o)}function g(e){if(-1!==e.level)return e.level;let t=0;for(const n of m(e))t=Math.max(t,g(n)+1);return e.level=t}function y(e){return Em(Yf(e),e,!1)}function v(e,t){let n=function(e){if(2&e)return"Start";if(4&e)return"Branch";if(8&e)return"Loop";if(16&e)return"Assignment";if(32&e)return"True";if(64&e)return"False";if(128&e)return"SwitchClause";if(256&e)return"ArrayMutation";if(512&e)return"Call";if(1024&e)return"ReduceLabel";if(1&e)return"Unreachable";throw new Error}(e.flags);if(t&&(n=`${n}#${r(e)}`),882&e.flags)e.node&&(n+=` (${y(e.node)})`);else if(function(e){return!!(128&e.flags)}(e)){const t=[];for(let n=e.clauseStart;n<e.clauseEnd;n++){const r=e.switchStatement.caseBlock.clauses[n];XN(r)?t.push("default"):t.push(y(r.expression))}n+=` (${t.join(", ")})`}return"circularity"===t?`Circular(${n})`:n}function b(e){switch(e){case 3:return"\u2502";case 12:return"\u2500";case 5:return"\u256f";case 9:return"\u2570";case 6:return"\u256e";case 10:return"\u256d";case 7:return"\u2524";case 11:return"\u251c";case 13:return"\u2534";case 14:return"\u252c";case 15:return"\u256b"}return" "}function E(e,t){if(e.fill)e.fill(t);else for(let n=0;n<e.length;n++)e[n]=t;return e}function S(e,t){if(e.repeat)return t>0?e.repeat(t):"";let n="";for(;n.length<t;)n+=e;return n}}e.DebugTypeMapper=w,e.attachDebugPrototypeIfDebug=function(t){return e.isDebugging?Object.setPrototypeOf(t,w.prototype):t},e.printControlFlowGraph=function(e){return console.log(O(e))},e.formatControlFlowGraph=O})(In||(In={}))}});function Vn(e){const t=Rn.exec(e);if(!t)return;const[,n,r="0",o="0",i="",a=""]=t;return i&&!Cn.test(i)||a&&!Nn.test(a)?void 0:{major:parseInt(n,10),minor:parseInt(r,10),patch:parseInt(o,10),prerelease:i,build:a}}function Un(e){const t=[];for(let n of e.trim().split(On)){if(!n)continue;const e=[];n=n.trim();const r=zn.exec(n);if(r){if(!Kn(r[1],r[2],e))return}else for(const t of n.split(Fn)){const n=Bn.exec(t.trim());if(!n||!qn(n[1],n[2],e))return}t.push(e)}return t}function Hn(e){const t=Wn.exec(e);if(!t)return;const[,n,r="*",o="*",i,a]=t;return{version:new Pn(Jn(n)?0:parseInt(n,10),Jn(n)||Jn(r)?0:parseInt(r,10),Jn(n)||Jn(r)||Jn(o)?0:parseInt(o,10),i,a),major:n,minor:r,patch:o}}function Kn(e,t,n){const r=Hn(e);if(!r)return!1;const o=Hn(t);return!!o&&(Jn(r.major)||n.push(Xn(">=",r.version)),Jn(o.major)||n.push(Jn(o.minor)?Xn("<",o.version.increment("major")):Jn(o.patch)?Xn("<",o.version.increment("minor")):Xn("<=",o.version)),!0)}function qn(e,t,n){const r=Hn(t);if(!r)return!1;const{version:o,major:i,minor:a,patch:s}=r;if(Jn(i))"<"!==e&&">"!==e||n.push(Xn("<",Pn.zero));else switch(e){case"~":n.push(Xn(">=",o)),n.push(Xn("<",o.increment(Jn(a)?"major":"minor")));break;case"^":n.push(Xn(">=",o)),n.push(Xn("<",o.increment(o.major>0||Jn(a)?"major":o.minor>0||Jn(s)?"minor":"patch")));break;case"<":case">=":n.push(Jn(a)||Jn(s)?Xn(e,o.with({prerelease:"0"})):Xn(e,o));break;case"<=":case">":n.push(Jn(a)?Xn("<="===e?"<":">=",o.increment("major").with({prerelease:"0"})):Jn(s)?Xn("<="===e?"<":">=",o.increment("minor").with({prerelease:"0"})):Xn(e,o));break;case"=":case void 0:Jn(a)||Jn(s)?(n.push(Xn(">=",o.with({prerelease:"0"}))),n.push(Xn("<",o.increment(Jn(a)?"major":"minor").with({prerelease:"0"})))):n.push(Xn("=",o));break;default:return!1}return!0}function Jn(e){return"*"===e||"x"===e||"X"===e}function Xn(e,t){return{operator:e,operand:t}}function $n(e,t){for(const n of t)if(!Yn(e,n.operator,n.operand))return!1;return!0}function Yn(e,t,n){const r=e.compareTo(n);switch(t){case"<":return r<0;case"<=":return r<=0;case">":return r>0;case">=":return r>=0;case"=":return 0===r;default:return In.assertNever(t)}}function Qn(e){return U(e,Zn).join(" ")}function Zn(e){return`${e.operator}${e.operand}`}var er,tr,nr,rr=b({"src/compiler/semver.ts"(){JJ(),Rn=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,Cn=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,Dn=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,Nn=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,Mn=/^[a-z0-9-]+$/i,Ln=/^(0|[1-9]\d*)$/,(kn=class e{constructor(e,t=0,n=0,r="",i=""){if("string"===typeof e){const o=In.checkDefined(Vn(e),"Invalid version");({major:e,minor:t,patch:n,prerelease:r,build:i}=o)}In.assert(e>=0,"Invalid argument: major"),In.assert(t>=0,"Invalid argument: minor"),In.assert(n>=0,"Invalid argument: patch");const a=r?mt(r)?r:r.split("."):o,s=i?mt(i)?i:i.split("."):o;In.assert(M(a,(e=>Dn.test(e))),"Invalid argument: prerelease"),In.assert(M(s,(e=>Mn.test(e))),"Invalid argument: build"),this.major=e,this.minor=t,this.patch=n,this.prerelease=a,this.build=s}static tryParse(t){const n=Vn(t);if(!n)return;const{major:r,minor:o,patch:i,prerelease:a,build:s}=n;return new e(r,o,i,a,s)}compareTo(e){return this===e?0:void 0===e?1:Ft(this.major,e.major)||Ft(this.minor,e.minor)||Ft(this.patch,e.patch)||function(e,t){if(e===t)return 0;if(0===e.length)return 0===t.length?0:1;if(0===t.length)return-1;const n=Math.min(e.length,t.length);for(let r=0;r<n;r++){const n=e[r],o=t[r];if(n===o)continue;const i=Ln.test(n),a=Ln.test(o);if(i||a){if(i!==a)return i?-1:1;const e=Ft(+n,+o);if(e)return e}else{const e=jt(n,o);if(e)return e}}return Ft(e.length,t.length)}(this.prerelease,e.prerelease)}increment(t){switch(t){case"major":return new e(this.major+1,0,0);case"minor":return new e(this.major,this.minor+1,0);case"patch":return new e(this.major,this.minor,this.patch+1);default:return In.assertNever(t)}}with(t){const{major:n=this.major,minor:r=this.minor,patch:o=this.patch,prerelease:i=this.prerelease,build:a=this.build}=t;return new e(n,r,o,i,a)}toString(){let e=`${this.major}.${this.minor}.${this.patch}`;return se(this.prerelease)&&(e+=`-${this.prerelease.join(".")}`),se(this.build)&&(e+=`+${this.build.join(".")}`),e}}).zero=new kn(0,0,0,["0"]),Pn=kn,wn=class e{constructor(e){this._alternatives=e?In.checkDefined(Un(e),"Invalid range spec."):o}static tryParse(t){const n=Un(t);if(n){const t=new e("");return t._alternatives=n,t}}test(e){return"string"===typeof e&&(e=new Pn(e)),function(e,t){if(0===t.length)return!0;for(const n of t)if($n(e,n))return!0;return!1}(e,this._alternatives)}toString(){return U(this._alternatives,Qn).join(" || ")||"*"}},On=/\|\|/g,Fn=/\s+/g,Wn=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,zn=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,Bn=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i}});function or(e,t){return"object"===typeof e&&"number"===typeof e.timeOrigin&&"function"===typeof e.mark&&"function"===typeof e.measure&&"function"===typeof e.now&&"function"===typeof e.clearMarks&&"function"===typeof e.clearMeasures&&"function"===typeof t}function ir(){return er}var ar,sr,lr,cr,dr,ur,pr,fr,mr,_r,hr=b({"src/compiler/performanceCore.ts"(){JJ(),er=function(){if("object"===typeof performance&&"function"===typeof PerformanceObserver&&or(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance:performance,PerformanceObserver:PerformanceObserver}}()||function(){if(xn())try{const{performance:e,PerformanceObserver:t}=c("perf_hooks");if(or(e,t))return{shouldWriteNativeEvents:!1,performance:e,PerformanceObserver:t}}catch{}}(),tr=null==er?void 0:er.performance,nr=tr?()=>tr.now():Date.now?Date.now:()=>+new Date}}),gr=b({"src/compiler/perfLogger.ts"(){try{ar=c({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}.TS_ETW_MODULE_PATH??"./node_modules/@microsoft/typescript-etw")}catch(e){ar=void 0}sr=(null==ar?void 0:ar.logEvent)?ar:void 0}});function yr(e,t,n,r){return e?vr(t,n,r):dr}function vr(e,t,n){let r=0;return{enter:function(){1===++r&&br(t)},exit:function(){0===--r?(br(n),Er(e,t,n)):r<0&&In.fail("enter/exit count does not match.")}}}function br(e){if(ur){const t=mr.get(e)??0;mr.set(e,t+1),fr.set(e,nr()),null==cr||cr.mark(e),"function"===typeof onProfilerEvent&&onProfilerEvent(e)}}function Er(e,t,n){if(ur){const r=(void 0!==n?fr.get(n):void 0)??nr(),o=(void 0!==t?fr.get(t):void 0)??pr,i=_r.get(e)||0;_r.set(e,i+(r-o)),null==cr||cr.measure(e,t,n)}}function Sr(e){return mr.get(e)||0}function Tr(e){return _r.get(e)||0}function xr(e){_r.forEach(((t,n)=>e(n,t)))}function Ar(e){fr.forEach(((t,n)=>e(n)))}function Ir(e){void 0!==e?_r.delete(e):_r.clear(),null==cr||cr.clearMeasures(e)}function Rr(e){void 0!==e?(mr.delete(e),fr.delete(e)):(mr.clear(),fr.clear()),null==cr||cr.clearMarks(e)}function Cr(){return ur}function Dr(e=hi){var t;return ur||(ur=!0,lr||(lr=ir()),lr&&(pr=lr.performance.timeOrigin,(lr.shouldWriteNativeEvents||(null==(t=null==e?void 0:e.cpuProfilingEnabled)?void 0:t.call(e))||(null==e?void 0:e.debugMode))&&(cr=lr.performance))),!0}function Nr(){ur&&(fr.clear(),mr.clear(),_r.clear(),cr=void 0,ur=!1)}var Mr=b({"src/compiler/performance.ts"(){JJ(),dr={enter:bt,exit:bt},ur=!1,pr=nr(),fr=new Map,mr=new Map,_r=new Map}}),Lr={};E(Lr,{clearMarks:()=>Rr,clearMeasures:()=>Ir,createTimer:()=>vr,createTimerIf:()=>yr,disable:()=>Nr,enable:()=>Dr,forEachMark:()=>Ar,forEachMeasure:()=>xr,getCount:()=>Sr,getDuration:()=>Tr,isEnabled:()=>Cr,mark:()=>br,measure:()=>Er,nullTimer:()=>dr});var kr,Pr,wr,Or,Fr,Wr,zr,Br,Gr,jr,Vr,Ur,Hr,Kr,qr,Jr,Xr,$r,Yr,Qr,Zr,eo,to,no,ro,oo,io,ao,so,lo,co,uo,po,fo,mo,_o,ho,go,yo,vo,bo,Eo,So,To,xo,Ao,Io,Ro,Co,Do,No,Mo,Lo,ko,Po,wo,Oo,Fo,Wo,zo,Bo,Go,jo,Vo,Uo,Ho,Ko,qo,Jo,Xo,$o,Yo,Qo,Zo,ei,ti,ni,ri,oi=b({"src/compiler/_namespaces/ts.performance.ts"(){Mr()}}),ii=b({"src/compiler/tracing.ts"(){JJ(),oi(),(e=>{let t,n,r=0,o=0;const i=[];let a;const s=[];let l;var d;e.startTracing=function(l,d,u){if(In.assert(!kr,"Tracing already started"),void 0===t)try{t=c("fs")}catch(h){throw new Error(`tracing requires having fs\n(original error: ${h.message||h})`)}n=l,i.length=0,void 0===a&&(a=ua(d,"legend.json")),t.existsSync(d)||t.mkdirSync(d,{recursive:!0});const p="build"===n?`.${process.pid}-${++r}`:"server"===n?`.${process.pid}`:"",f=ua(d,`trace${p}.json`),m=ua(d,`types${p}.json`);s.push({configFilePath:u,tracePath:f,typesPath:m}),o=t.openSync(f,"w"),kr=e;const _={cat:"__metadata",ph:"M",ts:1e3*nr(),pid:1,tid:1};t.writeSync(o,"[\n"+[{name:"process_name",args:{name:"tsc"},..._},{name:"thread_name",args:{name:"Main"},..._},{name:"TracingStartedInBrowser",..._,cat:"disabled-by-default-devtools.timeline"}].map((e=>JSON.stringify(e))).join(",\n"))},e.stopTracing=function(){In.assert(kr,"Tracing is not in progress"),In.assert(!!i.length===("server"!==n)),t.writeSync(o,"\n]\n"),t.closeSync(o),kr=void 0,i.length?function(e){var n,r,o,i,a,l,c,d,u,p,f,m,h,g,y,v,b,E,S;br("beginDumpTypes");const T=s[s.length-1].typesPath,x=t.openSync(T,"w"),A=new Map;t.writeSync(x,"[");const I=e.length;for(let s=0;s<I;s++){const T=e[s],R=T.objectFlags,C=T.aliasSymbol??T.symbol;let D;if(16&R|2944&T.flags)try{D=null==(n=T.checker)?void 0:n.typeToString(T)}catch{D=void 0}let N={};if(8388608&T.flags){const e=T;N={indexedAccessObjectType:null==(r=e.objectType)?void 0:r.id,indexedAccessIndexType:null==(o=e.indexType)?void 0:o.id}}let M={};if(4&R){const e=T;M={instantiatedType:null==(i=e.target)?void 0:i.id,typeArguments:null==(a=e.resolvedTypeArguments)?void 0:a.map((e=>e.id)),referenceLocation:_(e.node)}}let L={};if(16777216&T.flags){const e=T;L={conditionalCheckType:null==(l=e.checkType)?void 0:l.id,conditionalExtendsType:null==(c=e.extendsType)?void 0:c.id,conditionalTrueType:(null==(d=e.resolvedTrueType)?void 0:d.id)??-1,conditionalFalseType:(null==(u=e.resolvedFalseType)?void 0:u.id)??-1}}let k={};if(33554432&T.flags){const e=T;k={substitutionBaseType:null==(p=e.baseType)?void 0:p.id,constraintType:null==(f=e.constraint)?void 0:f.id}}let P={};if(1024&R){const e=T;P={reverseMappedSourceType:null==(m=e.source)?void 0:m.id,reverseMappedMappedType:null==(h=e.mappedType)?void 0:h.id,reverseMappedConstraintType:null==(g=e.constraintType)?void 0:g.id}}let w,O={};if(256&R){const e=T;O={evolvingArrayElementType:e.elementType.id,evolvingArrayFinalType:null==(y=e.finalArrayType)?void 0:y.id}}const F=T.checker.getRecursionIdentity(T);F&&(w=A.get(F),w||(w=A.size,A.set(F,w)));const W={id:T.id,intrinsicName:T.intrinsicName,symbolName:(null==C?void 0:C.escapedName)&&Ll(C.escapedName),recursionId:w,isTuple:!!(8&R)||void 0,unionTypes:1048576&T.flags?null==(v=T.types)?void 0:v.map((e=>e.id)):void 0,intersectionTypes:2097152&T.flags?T.types.map((e=>e.id)):void 0,aliasTypeArguments:null==(b=T.aliasTypeArguments)?void 0:b.map((e=>e.id)),keyofType:4194304&T.flags?null==(E=T.type)?void 0:E.id:void 0,...N,...M,...L,...k,...P,...O,destructuringPattern:_(T.pattern),firstDeclaration:_(null==(S=null==C?void 0:C.declarations)?void 0:S[0]),flags:In.formatTypeFlags(T.flags).split("|"),display:D};t.writeSync(x,JSON.stringify(W)),s<I-1&&t.writeSync(x,",\n")}t.writeSync(x,"]\n"),t.closeSync(x),br("endDumpTypes"),Er("Dump types","beginDumpTypes","endDumpTypes")}(i):s[s.length-1].typesPath=void 0},e.recordType=function(e){"server"!==n&&i.push(e)},(d=l=e.Phase||(e.Phase={})).Parse="parse",d.Program="program",d.Bind="bind",d.Check="check",d.CheckTypes="checkTypes",d.Emit="emit",d.Session="session",e.instant=function(e,t,n){m("I",e,t,n,'"s":"g"')};const u=[];e.push=function(e,t,n,r=!1){r&&m("B",e,t,n),u.push({phase:e,name:t,args:n,time:1e3*nr(),separateBeginAndEnd:r})},e.pop=function(e){In.assert(u.length>0),f(u.length-1,1e3*nr(),e),u.length--},e.popAll=function(){const e=1e3*nr();for(let t=u.length-1;t>=0;t--)f(t,e);u.length=0};const p=1e4;function f(e,t,n){const{phase:r,name:o,args:i,time:a,separateBeginAndEnd:s}=u[e];s?(In.assert(!n,"`results` are not supported for events with `separateBeginAndEnd`"),m("E",r,o,i,void 0,t)):p-a%p<=t-a&&m("X",r,o,{...i,results:n},'"dur":'+(t-a),a)}function m(e,r,i,a,s,l=1e3*nr()){"server"===n&&"checkTypes"===r||(br("beginTracing"),t.writeSync(o,`,\n{"pid":1,"tid":1,"ph":"${e}","cat":"${r}","ts":${l},"name":"${i}"`),s&&t.writeSync(o,`,${s}`),a&&t.writeSync(o,`,"args":${JSON.stringify(a)}`),t.writeSync(o,"}"),br("endTracing"),Er("Tracing","beginTracing","endTracing"))}function _(e){const t=Yf(e);return t?{path:t.path,start:n(_s(t,e.pos)),end:n(_s(t,e.end))}:void 0;function n(e){return{line:e.line+1,character:e.character+1}}}e.dumpLegend=function(){a&&t.writeFileSync(a,JSON.stringify(s))}})(Pr||(Pr={})),wr=Pr.startTracing,Or=Pr.dumpLegend}});function ai(e,t=!0){const n=Do[e.category];return t?n.toLowerCase():n}var si,li,ci,di,ui,pi,fi,mi,_i,hi,gi=b({"src/compiler/types.ts"(){Fr=(e=>(e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",e[e.NumericLiteral=9]="NumericLiteral",e[e.BigIntLiteral=10]="BigIntLiteral",e[e.StringLiteral=11]="StringLiteral",e[e.JsxText=12]="JsxText",e[e.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=14]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=16]="TemplateHead",e[e.TemplateMiddle=17]="TemplateMiddle",e[e.TemplateTail=18]="TemplateTail",e[e.OpenBraceToken=19]="OpenBraceToken",e[e.CloseBraceToken=20]="CloseBraceToken",e[e.OpenParenToken=21]="OpenParenToken",e[e.CloseParenToken=22]="CloseParenToken",e[e.OpenBracketToken=23]="OpenBracketToken",e[e.CloseBracketToken=24]="CloseBracketToken",e[e.DotToken=25]="DotToken",e[e.DotDotDotToken=26]="DotDotDotToken",e[e.SemicolonToken=27]="SemicolonToken",e[e.CommaToken=28]="CommaToken",e[e.QuestionDotToken=29]="QuestionDotToken",e[e.LessThanToken=30]="LessThanToken",e[e.LessThanSlashToken=31]="LessThanSlashToken",e[e.GreaterThanToken=32]="GreaterThanToken",e[e.LessThanEqualsToken=33]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=35]="EqualsEqualsToken",e[e.ExclamationEqualsToken=36]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",e[e.PlusToken=40]="PlusToken",e[e.MinusToken=41]="MinusToken",e[e.AsteriskToken=42]="AsteriskToken",e[e.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",e[e.SlashToken=44]="SlashToken",e[e.PercentToken=45]="PercentToken",e[e.PlusPlusToken=46]="PlusPlusToken",e[e.MinusMinusToken=47]="MinusMinusToken",e[e.LessThanLessThanToken=48]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=51]="AmpersandToken",e[e.BarToken=52]="BarToken",e[e.CaretToken=53]="CaretToken",e[e.ExclamationToken=54]="ExclamationToken",e[e.TildeToken=55]="TildeToken",e[e.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",e[e.BarBarToken=57]="BarBarToken",e[e.QuestionToken=58]="QuestionToken",e[e.ColonToken=59]="ColonToken",e[e.AtToken=60]="AtToken",e[e.QuestionQuestionToken=61]="QuestionQuestionToken",e[e.BacktickToken=62]="BacktickToken",e[e.HashToken=63]="HashToken",e[e.EqualsToken=64]="EqualsToken",e[e.PlusEqualsToken=65]="PlusEqualsToken",e[e.MinusEqualsToken=66]="MinusEqualsToken",e[e.AsteriskEqualsToken=67]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=69]="SlashEqualsToken",e[e.PercentEqualsToken=70]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=74]="AmpersandEqualsToken",e[e.BarEqualsToken=75]="BarEqualsToken",e[e.BarBarEqualsToken=76]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=79]="CaretEqualsToken",e[e.Identifier=80]="Identifier",e[e.PrivateIdentifier=81]="PrivateIdentifier",e[e.JSDocCommentTextToken=82]="JSDocCommentTextToken",e[e.BreakKeyword=83]="BreakKeyword",e[e.CaseKeyword=84]="CaseKeyword",e[e.CatchKeyword=85]="CatchKeyword",e[e.ClassKeyword=86]="ClassKeyword",e[e.ConstKeyword=87]="ConstKeyword",e[e.ContinueKeyword=88]="ContinueKeyword",e[e.DebuggerKeyword=89]="DebuggerKeyword",e[e.DefaultKeyword=90]="DefaultKeyword",e[e.DeleteKeyword=91]="DeleteKeyword",e[e.DoKeyword=92]="DoKeyword",e[e.ElseKeyword=93]="ElseKeyword",e[e.EnumKeyword=94]="EnumKeyword",e[e.ExportKeyword=95]="ExportKeyword",e[e.ExtendsKeyword=96]="ExtendsKeyword",e[e.FalseKeyword=97]="FalseKeyword",e[e.FinallyKeyword=98]="FinallyKeyword",e[e.ForKeyword=99]="ForKeyword",e[e.FunctionKeyword=100]="FunctionKeyword",e[e.IfKeyword=101]="IfKeyword",e[e.ImportKeyword=102]="ImportKeyword",e[e.InKeyword=103]="InKeyword",e[e.InstanceOfKeyword=104]="InstanceOfKeyword",e[e.NewKeyword=105]="NewKeyword",e[e.NullKeyword=106]="NullKeyword",e[e.ReturnKeyword=107]="ReturnKeyword",e[e.SuperKeyword=108]="SuperKeyword",e[e.SwitchKeyword=109]="SwitchKeyword",e[e.ThisKeyword=110]="ThisKeyword",e[e.ThrowKeyword=111]="ThrowKeyword",e[e.TrueKeyword=112]="TrueKeyword",e[e.TryKeyword=113]="TryKeyword",e[e.TypeOfKeyword=114]="TypeOfKeyword",e[e.VarKeyword=115]="VarKeyword",e[e.VoidKeyword=116]="VoidKeyword",e[e.WhileKeyword=117]="WhileKeyword",e[e.WithKeyword=118]="WithKeyword",e[e.ImplementsKeyword=119]="ImplementsKeyword",e[e.InterfaceKeyword=120]="InterfaceKeyword",e[e.LetKeyword=121]="LetKeyword",e[e.PackageKeyword=122]="PackageKeyword",e[e.PrivateKeyword=123]="PrivateKeyword",e[e.ProtectedKeyword=124]="ProtectedKeyword",e[e.PublicKeyword=125]="PublicKeyword",e[e.StaticKeyword=126]="StaticKeyword",e[e.YieldKeyword=127]="YieldKeyword",e[e.AbstractKeyword=128]="AbstractKeyword",e[e.AccessorKeyword=129]="AccessorKeyword",e[e.AsKeyword=130]="AsKeyword",e[e.AssertsKeyword=131]="AssertsKeyword",e[e.AssertKeyword=132]="AssertKeyword",e[e.AnyKeyword=133]="AnyKeyword",e[e.AsyncKeyword=134]="AsyncKeyword",e[e.AwaitKeyword=135]="AwaitKeyword",e[e.BooleanKeyword=136]="BooleanKeyword",e[e.ConstructorKeyword=137]="ConstructorKeyword",e[e.DeclareKeyword=138]="DeclareKeyword",e[e.GetKeyword=139]="GetKeyword",e[e.InferKeyword=140]="InferKeyword",e[e.IntrinsicKeyword=141]="IntrinsicKeyword",e[e.IsKeyword=142]="IsKeyword",e[e.KeyOfKeyword=143]="KeyOfKeyword",e[e.ModuleKeyword=144]="ModuleKeyword",e[e.NamespaceKeyword=145]="NamespaceKeyword",e[e.NeverKeyword=146]="NeverKeyword",e[e.OutKeyword=147]="OutKeyword",e[e.ReadonlyKeyword=148]="ReadonlyKeyword",e[e.RequireKeyword=149]="RequireKeyword",e[e.NumberKeyword=150]="NumberKeyword",e[e.ObjectKeyword=151]="ObjectKeyword",e[e.SatisfiesKeyword=152]="SatisfiesKeyword",e[e.SetKeyword=153]="SetKeyword",e[e.StringKeyword=154]="StringKeyword",e[e.SymbolKeyword=155]="SymbolKeyword",e[e.TypeKeyword=156]="TypeKeyword",e[e.UndefinedKeyword=157]="UndefinedKeyword",e[e.UniqueKeyword=158]="UniqueKeyword",e[e.UnknownKeyword=159]="UnknownKeyword",e[e.UsingKeyword=160]="UsingKeyword",e[e.FromKeyword=161]="FromKeyword",e[e.GlobalKeyword=162]="GlobalKeyword",e[e.BigIntKeyword=163]="BigIntKeyword",e[e.OverrideKeyword=164]="OverrideKeyword",e[e.OfKeyword=165]="OfKeyword",e[e.QualifiedName=166]="QualifiedName",e[e.ComputedPropertyName=167]="ComputedPropertyName",e[e.TypeParameter=168]="TypeParameter",e[e.Parameter=169]="Parameter",e[e.Decorator=170]="Decorator",e[e.PropertySignature=171]="PropertySignature",e[e.PropertyDeclaration=172]="PropertyDeclaration",e[e.MethodSignature=173]="MethodSignature",e[e.MethodDeclaration=174]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=175]="ClassStaticBlockDeclaration",e[e.Constructor=176]="Constructor",e[e.GetAccessor=177]="GetAccessor",e[e.SetAccessor=178]="SetAccessor",e[e.CallSignature=179]="CallSignature",e[e.ConstructSignature=180]="ConstructSignature",e[e.IndexSignature=181]="IndexSignature",e[e.TypePredicate=182]="TypePredicate",e[e.TypeReference=183]="TypeReference",e[e.FunctionType=184]="FunctionType",e[e.ConstructorType=185]="ConstructorType",e[e.TypeQuery=186]="TypeQuery",e[e.TypeLiteral=187]="TypeLiteral",e[e.ArrayType=188]="ArrayType",e[e.TupleType=189]="TupleType",e[e.OptionalType=190]="OptionalType",e[e.RestType=191]="RestType",e[e.UnionType=192]="UnionType",e[e.IntersectionType=193]="IntersectionType",e[e.ConditionalType=194]="ConditionalType",e[e.InferType=195]="InferType",e[e.ParenthesizedType=196]="ParenthesizedType",e[e.ThisType=197]="ThisType",e[e.TypeOperator=198]="TypeOperator",e[e.IndexedAccessType=199]="IndexedAccessType",e[e.MappedType=200]="MappedType",e[e.LiteralType=201]="LiteralType",e[e.NamedTupleMember=202]="NamedTupleMember",e[e.TemplateLiteralType=203]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=204]="TemplateLiteralTypeSpan",e[e.ImportType=205]="ImportType",e[e.ObjectBindingPattern=206]="ObjectBindingPattern",e[e.ArrayBindingPattern=207]="ArrayBindingPattern",e[e.BindingElement=208]="BindingElement",e[e.ArrayLiteralExpression=209]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=210]="ObjectLiteralExpression",e[e.PropertyAccessExpression=211]="PropertyAccessExpression",e[e.ElementAccessExpression=212]="ElementAccessExpression",e[e.CallExpression=213]="CallExpression",e[e.NewExpression=214]="NewExpression",e[e.TaggedTemplateExpression=215]="TaggedTemplateExpression",e[e.TypeAssertionExpression=216]="TypeAssertionExpression",e[e.ParenthesizedExpression=217]="ParenthesizedExpression",e[e.FunctionExpression=218]="FunctionExpression",e[e.ArrowFunction=219]="ArrowFunction",e[e.DeleteExpression=220]="DeleteExpression",e[e.TypeOfExpression=221]="TypeOfExpression",e[e.VoidExpression=222]="VoidExpression",e[e.AwaitExpression=223]="AwaitExpression",e[e.PrefixUnaryExpression=224]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=225]="PostfixUnaryExpression",e[e.BinaryExpression=226]="BinaryExpression",e[e.ConditionalExpression=227]="ConditionalExpression",e[e.TemplateExpression=228]="TemplateExpression",e[e.YieldExpression=229]="YieldExpression",e[e.SpreadElement=230]="SpreadElement",e[e.ClassExpression=231]="ClassExpression",e[e.OmittedExpression=232]="OmittedExpression",e[e.ExpressionWithTypeArguments=233]="ExpressionWithTypeArguments",e[e.AsExpression=234]="AsExpression",e[e.NonNullExpression=235]="NonNullExpression",e[e.MetaProperty=236]="MetaProperty",e[e.SyntheticExpression=237]="SyntheticExpression",e[e.SatisfiesExpression=238]="SatisfiesExpression",e[e.TemplateSpan=239]="TemplateSpan",e[e.SemicolonClassElement=240]="SemicolonClassElement",e[e.Block=241]="Block",e[e.EmptyStatement=242]="EmptyStatement",e[e.VariableStatement=243]="VariableStatement",e[e.ExpressionStatement=244]="ExpressionStatement",e[e.IfStatement=245]="IfStatement",e[e.DoStatement=246]="DoStatement",e[e.WhileStatement=247]="WhileStatement",e[e.ForStatement=248]="ForStatement",e[e.ForInStatement=249]="ForInStatement",e[e.ForOfStatement=250]="ForOfStatement",e[e.ContinueStatement=251]="ContinueStatement",e[e.BreakStatement=252]="BreakStatement",e[e.ReturnStatement=253]="ReturnStatement",e[e.WithStatement=254]="WithStatement",e[e.SwitchStatement=255]="SwitchStatement",e[e.LabeledStatement=256]="LabeledStatement",e[e.ThrowStatement=257]="ThrowStatement",e[e.TryStatement=258]="TryStatement",e[e.DebuggerStatement=259]="DebuggerStatement",e[e.VariableDeclaration=260]="VariableDeclaration",e[e.VariableDeclarationList=261]="VariableDeclarationList",e[e.FunctionDeclaration=262]="FunctionDeclaration",e[e.ClassDeclaration=263]="ClassDeclaration",e[e.InterfaceDeclaration=264]="InterfaceDeclaration",e[e.TypeAliasDeclaration=265]="TypeAliasDeclaration",e[e.EnumDeclaration=266]="EnumDeclaration",e[e.ModuleDeclaration=267]="ModuleDeclaration",e[e.ModuleBlock=268]="ModuleBlock",e[e.CaseBlock=269]="CaseBlock",e[e.NamespaceExportDeclaration=270]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=271]="ImportEqualsDeclaration",e[e.ImportDeclaration=272]="ImportDeclaration",e[e.ImportClause=273]="ImportClause",e[e.NamespaceImport=274]="NamespaceImport",e[e.NamedImports=275]="NamedImports",e[e.ImportSpecifier=276]="ImportSpecifier",e[e.ExportAssignment=277]="ExportAssignment",e[e.ExportDeclaration=278]="ExportDeclaration",e[e.NamedExports=279]="NamedExports",e[e.NamespaceExport=280]="NamespaceExport",e[e.ExportSpecifier=281]="ExportSpecifier",e[e.MissingDeclaration=282]="MissingDeclaration",e[e.ExternalModuleReference=283]="ExternalModuleReference",e[e.JsxElement=284]="JsxElement",e[e.JsxSelfClosingElement=285]="JsxSelfClosingElement",e[e.JsxOpeningElement=286]="JsxOpeningElement",e[e.JsxClosingElement=287]="JsxClosingElement",e[e.JsxFragment=288]="JsxFragment",e[e.JsxOpeningFragment=289]="JsxOpeningFragment",e[e.JsxClosingFragment=290]="JsxClosingFragment",e[e.JsxAttribute=291]="JsxAttribute",e[e.JsxAttributes=292]="JsxAttributes",e[e.JsxSpreadAttribute=293]="JsxSpreadAttribute",e[e.JsxExpression=294]="JsxExpression",e[e.JsxNamespacedName=295]="JsxNamespacedName",e[e.CaseClause=296]="CaseClause",e[e.DefaultClause=297]="DefaultClause",e[e.HeritageClause=298]="HeritageClause",e[e.CatchClause=299]="CatchClause",e[e.ImportAttributes=300]="ImportAttributes",e[e.ImportAttribute=301]="ImportAttribute",e[e.AssertClause=300]="AssertClause",e[e.AssertEntry=301]="AssertEntry",e[e.ImportTypeAssertionContainer=302]="ImportTypeAssertionContainer",e[e.PropertyAssignment=303]="PropertyAssignment",e[e.ShorthandPropertyAssignment=304]="ShorthandPropertyAssignment",e[e.SpreadAssignment=305]="SpreadAssignment",e[e.EnumMember=306]="EnumMember",e[e.UnparsedPrologue=307]="UnparsedPrologue",e[e.UnparsedPrepend=308]="UnparsedPrepend",e[e.UnparsedText=309]="UnparsedText",e[e.UnparsedInternalText=310]="UnparsedInternalText",e[e.UnparsedSyntheticReference=311]="UnparsedSyntheticReference",e[e.SourceFile=312]="SourceFile",e[e.Bundle=313]="Bundle",e[e.UnparsedSource=314]="UnparsedSource",e[e.InputFiles=315]="InputFiles",e[e.JSDocTypeExpression=316]="JSDocTypeExpression",e[e.JSDocNameReference=317]="JSDocNameReference",e[e.JSDocMemberName=318]="JSDocMemberName",e[e.JSDocAllType=319]="JSDocAllType",e[e.JSDocUnknownType=320]="JSDocUnknownType",e[e.JSDocNullableType=321]="JSDocNullableType",e[e.JSDocNonNullableType=322]="JSDocNonNullableType",e[e.JSDocOptionalType=323]="JSDocOptionalType",e[e.JSDocFunctionType=324]="JSDocFunctionType",e[e.JSDocVariadicType=325]="JSDocVariadicType",e[e.JSDocNamepathType=326]="JSDocNamepathType",e[e.JSDoc=327]="JSDoc",e[e.JSDocComment=327]="JSDocComment",e[e.JSDocText=328]="JSDocText",e[e.JSDocTypeLiteral=329]="JSDocTypeLiteral",e[e.JSDocSignature=330]="JSDocSignature",e[e.JSDocLink=331]="JSDocLink",e[e.JSDocLinkCode=332]="JSDocLinkCode",e[e.JSDocLinkPlain=333]="JSDocLinkPlain",e[e.JSDocTag=334]="JSDocTag",e[e.JSDocAugmentsTag=335]="JSDocAugmentsTag",e[e.JSDocImplementsTag=336]="JSDocImplementsTag",e[e.JSDocAuthorTag=337]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=338]="JSDocDeprecatedTag",e[e.JSDocClassTag=339]="JSDocClassTag",e[e.JSDocPublicTag=340]="JSDocPublicTag",e[e.JSDocPrivateTag=341]="JSDocPrivateTag",e[e.JSDocProtectedTag=342]="JSDocProtectedTag",e[e.JSDocReadonlyTag=343]="JSDocReadonlyTag",e[e.JSDocOverrideTag=344]="JSDocOverrideTag",e[e.JSDocCallbackTag=345]="JSDocCallbackTag",e[e.JSDocOverloadTag=346]="JSDocOverloadTag",e[e.JSDocEnumTag=347]="JSDocEnumTag",e[e.JSDocParameterTag=348]="JSDocParameterTag",e[e.JSDocReturnTag=349]="JSDocReturnTag",e[e.JSDocThisTag=350]="JSDocThisTag",e[e.JSDocTypeTag=351]="JSDocTypeTag",e[e.JSDocTemplateTag=352]="JSDocTemplateTag",e[e.JSDocTypedefTag=353]="JSDocTypedefTag",e[e.JSDocSeeTag=354]="JSDocSeeTag",e[e.JSDocPropertyTag=355]="JSDocPropertyTag",e[e.JSDocThrowsTag=356]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=357]="JSDocSatisfiesTag",e[e.SyntaxList=358]="SyntaxList",e[e.NotEmittedStatement=359]="NotEmittedStatement",e[e.PartiallyEmittedExpression=360]="PartiallyEmittedExpression",e[e.CommaListExpression=361]="CommaListExpression",e[e.SyntheticReferenceExpression=362]="SyntheticReferenceExpression",e[e.Count=363]="Count",e[e.FirstAssignment=64]="FirstAssignment",e[e.LastAssignment=79]="LastAssignment",e[e.FirstCompoundAssignment=65]="FirstCompoundAssignment",e[e.LastCompoundAssignment=79]="LastCompoundAssignment",e[e.FirstReservedWord=83]="FirstReservedWord",e[e.LastReservedWord=118]="LastReservedWord",e[e.FirstKeyword=83]="FirstKeyword",e[e.LastKeyword=165]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=182]="FirstTypeNode",e[e.LastTypeNode=205]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=165]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=9]="FirstLiteralToken",e[e.LastLiteralToken=15]="LastLiteralToken",e[e.FirstTemplateToken=15]="FirstTemplateToken",e[e.LastTemplateToken=18]="LastTemplateToken",e[e.FirstBinaryOperator=30]="FirstBinaryOperator",e[e.LastBinaryOperator=79]="LastBinaryOperator",e[e.FirstStatement=243]="FirstStatement",e[e.LastStatement=259]="LastStatement",e[e.FirstNode=166]="FirstNode",e[e.FirstJSDocNode=316]="FirstJSDocNode",e[e.LastJSDocNode=357]="LastJSDocNode",e[e.FirstJSDocTagNode=334]="FirstJSDocTagNode",e[e.LastJSDocTagNode=357]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=165]="LastContextualKeyword",e))(Fr||{}),Wr=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.Using=4]="Using",e[e.AwaitUsing=6]="AwaitUsing",e[e.NestedNamespace=8]="NestedNamespace",e[e.Synthesized=16]="Synthesized",e[e.Namespace=32]="Namespace",e[e.OptionalChain=64]="OptionalChain",e[e.ExportContext=128]="ExportContext",e[e.ContainsThis=256]="ContainsThis",e[e.HasImplicitReturn=512]="HasImplicitReturn",e[e.HasExplicitReturn=1024]="HasExplicitReturn",e[e.GlobalAugmentation=2048]="GlobalAugmentation",e[e.HasAsyncFunctions=4096]="HasAsyncFunctions",e[e.DisallowInContext=8192]="DisallowInContext",e[e.YieldContext=16384]="YieldContext",e[e.DecoratorContext=32768]="DecoratorContext",e[e.AwaitContext=65536]="AwaitContext",e[e.DisallowConditionalTypesContext=131072]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=262144]="ThisNodeHasError",e[e.JavaScriptFile=524288]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=1048576]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=2097152]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=4194304]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=8388608]="PossiblyContainsImportMeta",e[e.JSDoc=16777216]="JSDoc",e[e.Ambient=33554432]="Ambient",e[e.InWithStatement=67108864]="InWithStatement",e[e.JsonFile=134217728]="JsonFile",e[e.TypeCached=268435456]="TypeCached",e[e.Deprecated=536870912]="Deprecated",e[e.BlockScoped=7]="BlockScoped",e[e.Constant=6]="Constant",e[e.ReachabilityCheckFlags=1536]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=5632]="ReachabilityAndEmitFlags",e[e.ContextFlags=101441536]="ContextFlags",e[e.TypeExcludesFlags=81920]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=12582912]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=256]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=4096]="IdentifierIsInJSDocNamespace",e))(Wr||{}),zr=(e=>(e[e.None=0]="None",e[e.Public=1]="Public",e[e.Private=2]="Private",e[e.Protected=4]="Protected",e[e.Readonly=8]="Readonly",e[e.Override=16]="Override",e[e.Export=32]="Export",e[e.Abstract=64]="Abstract",e[e.Ambient=128]="Ambient",e[e.Static=256]="Static",e[e.Accessor=512]="Accessor",e[e.Async=1024]="Async",e[e.Default=2048]="Default",e[e.Const=4096]="Const",e[e.In=8192]="In",e[e.Out=16384]="Out",e[e.Decorator=32768]="Decorator",e[e.Deprecated=65536]="Deprecated",e[e.JSDocPublic=8388608]="JSDocPublic",e[e.JSDocPrivate=16777216]="JSDocPrivate",e[e.JSDocProtected=33554432]="JSDocProtected",e[e.JSDocReadonly=67108864]="JSDocReadonly",e[e.JSDocOverride=134217728]="JSDocOverride",e[e.SyntacticOrJSDocModifiers=31]="SyntacticOrJSDocModifiers",e[e.SyntacticOnlyModifiers=65504]="SyntacticOnlyModifiers",e[e.SyntacticModifiers=65535]="SyntacticModifiers",e[e.JSDocCacheOnlyModifiers=260046848]="JSDocCacheOnlyModifiers",e[e.JSDocOnlyModifiers=65536]="JSDocOnlyModifiers",e[e.NonCacheOnlyModifiers=131071]="NonCacheOnlyModifiers",e[e.HasComputedJSDocModifiers=268435456]="HasComputedJSDocModifiers",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=7]="AccessibilityModifier",e[e.ParameterPropertyModifier=31]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=6]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=28895]="TypeScriptModifier",e[e.ExportDefault=2080]="ExportDefault",e[e.All=131071]="All",e[e.Modifier=98303]="Modifier",e))(zr||{}),Br=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(Br||{}),Gr=(e=>(e[e.None=0]="None",e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.Reported=4]="Reported",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e))(Gr||{}),jr=(e=>(e[e.None=0]="None",e[e.Auto=1]="Auto",e[e.Loop=2]="Loop",e[e.Unique=3]="Unique",e[e.Node=4]="Node",e[e.KindMask=7]="KindMask",e[e.ReservedInNestedScopes=8]="ReservedInNestedScopes",e[e.Optimistic=16]="Optimistic",e[e.FileLevel=32]="FileLevel",e[e.AllowNameSubstitution=64]="AllowNameSubstitution",e))(jr||{}),Vr=(e=>(e[e.None=0]="None",e[e.PrecedingLineBreak=1]="PrecedingLineBreak",e[e.PrecedingJSDocComment=2]="PrecedingJSDocComment",e[e.Unterminated=4]="Unterminated",e[e.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",e[e.Scientific=16]="Scientific",e[e.Octal=32]="Octal",e[e.HexSpecifier=64]="HexSpecifier",e[e.BinarySpecifier=128]="BinarySpecifier",e[e.OctalSpecifier=256]="OctalSpecifier",e[e.ContainsSeparator=512]="ContainsSeparator",e[e.UnicodeEscape=1024]="UnicodeEscape",e[e.ContainsInvalidEscape=2048]="ContainsInvalidEscape",e[e.HexEscape=4096]="HexEscape",e[e.ContainsLeadingZero=8192]="ContainsLeadingZero",e[e.ContainsInvalidSeparator=16384]="ContainsInvalidSeparator",e[e.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.WithSpecifier=448]="WithSpecifier",e[e.StringLiteralFlags=7176]="StringLiteralFlags",e[e.NumericLiteralFlags=25584]="NumericLiteralFlags",e[e.TemplateLiteralLikeFlags=7176]="TemplateLiteralLikeFlags",e[e.IsInvalid=26656]="IsInvalid",e))(Vr||{}),Ur=(e=>(e[e.Unreachable=1]="Unreachable",e[e.Start=2]="Start",e[e.BranchLabel=4]="BranchLabel",e[e.LoopLabel=8]="LoopLabel",e[e.Assignment=16]="Assignment",e[e.TrueCondition=32]="TrueCondition",e[e.FalseCondition=64]="FalseCondition",e[e.SwitchClause=128]="SwitchClause",e[e.ArrayMutation=256]="ArrayMutation",e[e.Call=512]="Call",e[e.ReduceLabel=1024]="ReduceLabel",e[e.Referenced=2048]="Referenced",e[e.Shared=4096]="Shared",e[e.Label=12]="Label",e[e.Condition=96]="Condition",e))(Ur||{}),Hr=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(Hr||{}),Kr=class{},qr=(e=>(e[e.RootFile=0]="RootFile",e[e.SourceFromProjectReference=1]="SourceFromProjectReference",e[e.OutputFromProjectReference=2]="OutputFromProjectReference",e[e.Import=3]="Import",e[e.ReferenceFile=4]="ReferenceFile",e[e.TypeReferenceDirective=5]="TypeReferenceDirective",e[e.LibFile=6]="LibFile",e[e.LibReferenceDirective=7]="LibReferenceDirective",e[e.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile",e))(qr||{}),Jr=(e=>(e[e.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.ResolutionDiagnostics=2]="ResolutionDiagnostics",e))(Jr||{}),Xr=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e))(Xr||{}),$r=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))($r||{}),Yr=(e=>(e[e.Success=0]="Success",e[e.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",e[e.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",e[e.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",e[e.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",e))(Yr||{}),Qr=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(Qr||{}),Zr=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(Zr||{}),eo=(e=>(e[e.None=0]="None",e[e.Signature=1]="Signature",e[e.NoConstraints=2]="NoConstraints",e[e.Completions=4]="Completions",e[e.SkipBindingPatterns=8]="SkipBindingPatterns",e))(eo||{}),to=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",e[e.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",e[e.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",e[e.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",e[e.AllowEmptyTuple=524288]="AllowEmptyTuple",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",e[e.WriteComputedProps=1073741824]="WriteComputedProps",e[e.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",e[e.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",e[e.IgnoreErrors=70221824]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName",e))(to||{}),no=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AddUndefined=131072]="AddUndefined",e[e.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",e[e.InArrayType=524288]="InArrayType",e[e.InElementType=2097152]="InElementType",e[e.InFirstTypeArgument=4194304]="InFirstTypeArgument",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.NodeBuilderFlagsMask=848330095]="NodeBuilderFlagsMask",e))(no||{}),ro=(e=>(e[e.None=0]="None",e[e.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",e[e.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",e[e.AllowAnyNodeKind=4]="AllowAnyNodeKind",e[e.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",e[e.WriteComputedProps=16]="WriteComputedProps",e[e.DoNotIncludeSymbolChain=32]="DoNotIncludeSymbolChain",e))(ro||{}),oo=(e=>(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e))(oo||{}),io=(e=>(e[e.UnionOrIntersection=0]="UnionOrIntersection",e[e.Spread=1]="Spread",e))(io||{}),ao=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(ao||{}),so=(e=>(e[e.Unknown=0]="Unknown",e[e.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",e[e.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",e[e.NumberLikeType=3]="NumberLikeType",e[e.BigIntLikeType=4]="BigIntLikeType",e[e.StringLikeType=5]="StringLikeType",e[e.BooleanType=6]="BooleanType",e[e.ArrayLikeType=7]="ArrayLikeType",e[e.ESSymbolType=8]="ESSymbolType",e[e.Promise=9]="Promise",e[e.TypeWithCallSignature=10]="TypeWithCallSignature",e[e.ObjectType=11]="ObjectType",e))(so||{}),lo=(e=>(e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=-1]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.AccessorExcludes=13247]="AccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer",e))(lo||{}),co=(e=>(e[e.Numeric=0]="Numeric",e[e.Literal=1]="Literal",e))(co||{}),uo=(e=>(e[e.None=0]="None",e[e.Instantiated=1]="Instantiated",e[e.SyntheticProperty=2]="SyntheticProperty",e[e.SyntheticMethod=4]="SyntheticMethod",e[e.Readonly=8]="Readonly",e[e.ReadPartial=16]="ReadPartial",e[e.WritePartial=32]="WritePartial",e[e.HasNonUniformType=64]="HasNonUniformType",e[e.HasLiteralType=128]="HasLiteralType",e[e.ContainsPublic=256]="ContainsPublic",e[e.ContainsProtected=512]="ContainsProtected",e[e.ContainsPrivate=1024]="ContainsPrivate",e[e.ContainsStatic=2048]="ContainsStatic",e[e.Late=4096]="Late",e[e.ReverseMapped=8192]="ReverseMapped",e[e.OptionalParameter=16384]="OptionalParameter",e[e.RestParameter=32768]="RestParameter",e[e.DeferredType=65536]="DeferredType",e[e.HasNeverType=131072]="HasNeverType",e[e.Mapped=262144]="Mapped",e[e.StripOptional=524288]="StripOptional",e[e.Unresolved=1048576]="Unresolved",e[e.Synthetic=6]="Synthetic",e[e.Discriminant=192]="Discriminant",e[e.Partial=48]="Partial",e))(uo||{}),po=(e=>(e.Call="__call",e.Constructor="__constructor",e.New="__new",e.Index="__index",e.ExportStar="__export",e.Global="__global",e.Missing="__missing",e.Type="__type",e.Object="__object",e.JSXAttributes="__jsxAttributes",e.Class="__class",e.Function="__function",e.Computed="__computed",e.Resolving="__resolving__",e.ExportEquals="export=",e.Default="default",e.This="this",e.InstantiationExpression="__instantiationExpression",e.ImportAttributes="__importAttributes",e))(po||{}),fo=(e=>(e[e.None=0]="None",e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=16]="SuperInstance",e[e.SuperStatic=32]="SuperStatic",e[e.ContextChecked=64]="ContextChecked",e[e.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",e[e.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",e[e.CaptureArguments=512]="CaptureArguments",e[e.EnumValuesComputed=1024]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",e[e.NeedsLoopOutParameter=65536]="NeedsLoopOutParameter",e[e.AssignmentsMarked=131072]="AssignmentsMarked",e[e.ContainsConstructorReference=262144]="ContainsConstructorReference",e[e.ConstructorReference=536870912]="ConstructorReference",e[e.ContainsClassWithPrivateIdentifiers=1048576]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=2097152]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=4194304]="InCheckIdentifier",e))(fo||{}),mo=(e=>(e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.Reserved1=536870912]="Reserved1",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109472]="Unit",e[e.Freshable=2976]="Freshable",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.StringLike=402653316]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.Primitive=402784252]="Primitive",e[e.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=3899393]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=473694207]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.IncludesConstrainedTypeVariable=536870912]="IncludesConstrainedTypeVariable",e[e.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",e))(mo||{}),_o=(e=>(e[e.None=0]="None",e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.InstantiatedMapped=96]="InstantiatedMapped",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection",e[e.IsConstrainedTypeVariable=67108864]="IsConstrainedTypeVariable",e))(_o||{}),ho=(e=>(e[e.Invariant=0]="Invariant",e[e.Covariant=1]="Covariant",e[e.Contravariant=2]="Contravariant",e[e.Bivariant=3]="Bivariant",e[e.Independent=4]="Independent",e[e.VarianceMask=7]="VarianceMask",e[e.Unmeasurable=8]="Unmeasurable",e[e.Unreliable=16]="Unreliable",e[e.AllowsStructuralFallback=24]="AllowsStructuralFallback",e))(ho||{}),go=(e=>(e[e.Required=1]="Required",e[e.Optional=2]="Optional",e[e.Rest=4]="Rest",e[e.Variadic=8]="Variadic",e[e.Fixed=3]="Fixed",e[e.Variable=12]="Variable",e[e.NonRequired=14]="NonRequired",e[e.NonRest=11]="NonRest",e))(go||{}),yo=(e=>(e[e.None=0]="None",e[e.IncludeUndefined=1]="IncludeUndefined",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.Writing=4]="Writing",e[e.CacheSymbol=8]="CacheSymbol",e[e.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",e[e.ExpressionPosition=32]="ExpressionPosition",e[e.ReportDeprecated=64]="ReportDeprecated",e[e.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",e[e.Contextual=256]="Contextual",e[e.Persistent=1]="Persistent",e))(yo||{}),vo=(e=>(e[e.None=0]="None",e[e.StringsOnly=1]="StringsOnly",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.NoReducibleCheck=4]="NoReducibleCheck",e))(vo||{}),bo=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))(bo||{}),Eo=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))(Eo||{}),So=(e=>(e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.IsNonInferrable=64]="IsNonInferrable",e[e.IsSignatureCandidateForOverloadFailure=128]="IsSignatureCandidateForOverloadFailure",e[e.PropagatingFlags=167]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))(So||{}),To=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(To||{}),xo=(e=>(e[e.Simple=0]="Simple",e[e.Array=1]="Array",e[e.Deferred=2]="Deferred",e[e.Function=3]="Function",e[e.Composite=4]="Composite",e[e.Merged=5]="Merged",e))(xo||{}),Ao=(e=>(e[e.None=0]="None",e[e.NakedTypeVariable=1]="NakedTypeVariable",e[e.SpeculativeTuple=2]="SpeculativeTuple",e[e.SubstituteSource=4]="SubstituteSource",e[e.HomomorphicMappedType=8]="HomomorphicMappedType",e[e.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",e[e.MappedTypeConstraint=32]="MappedTypeConstraint",e[e.ContravariantConditional=64]="ContravariantConditional",e[e.ReturnType=128]="ReturnType",e[e.LiteralKeyof=256]="LiteralKeyof",e[e.NoConstraints=512]="NoConstraints",e[e.AlwaysStrict=1024]="AlwaysStrict",e[e.MaxValue=2048]="MaxValue",e[e.PriorityImpliesCombination=416]="PriorityImpliesCombination",e[e.Circularity=-1]="Circularity",e))(Ao||{}),Io=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(Io||{}),Ro=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))(Ro||{}),Co=(e=>(e[e.None=0]="None",e[e.ExportsProperty=1]="ExportsProperty",e[e.ModuleExports=2]="ModuleExports",e[e.PrototypeProperty=3]="PrototypeProperty",e[e.ThisProperty=4]="ThisProperty",e[e.Property=5]="Property",e[e.Prototype=6]="Prototype",e[e.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",e[e.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",e[e.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",e))(Co||{}),Do=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(Do||{}),No=(e=>(e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs",e[e.Node10=2]="Node10",e[e.Node16=3]="Node16",e[e.NodeNext=99]="NodeNext",e[e.Bundler=100]="Bundler",e))(No||{}),Mo=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))(Mo||{}),Lo=(e=>(e[e.FixedPollingInterval=0]="FixedPollingInterval",e[e.PriorityPollingInterval=1]="PriorityPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e[e.UseFsEvents=4]="UseFsEvents",e[e.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory",e))(Lo||{}),ko=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(ko||{}),Po=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))(Po||{}),wo=(e=>(e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ES2020=6]="ES2020",e[e.ES2022=7]="ES2022",e[e.ESNext=99]="ESNext",e[e.Node16=100]="Node16",e[e.NodeNext=199]="NodeNext",e[e.Preserve=200]="Preserve",e))(wo||{}),Oo=(e=>(e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative",e[e.ReactJSX=4]="ReactJSX",e[e.ReactJSXDev=5]="ReactJSXDev",e))(Oo||{}),Fo=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))(Fo||{}),Wo=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(Wo||{}),zo=(e=>(e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred",e))(zo||{}),Bo=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(Bo||{}),Go=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(Go||{}),jo=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))(jo||{}),Vo=(e=>(e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.backtick=96]="backtick",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.hash=35]="hash",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab",e))(Vo||{}),Uo=(e=>(e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo",e.Mjs=".mjs",e.Mts=".mts",e.Dmts=".d.mts",e.Cjs=".cjs",e.Cts=".cts",e.Dcts=".d.cts",e))(Uo||{}),Ho=(e=>(e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2022=8]="ContainsES2022",e[e.ContainsES2021=16]="ContainsES2021",e[e.ContainsES2020=32]="ContainsES2020",e[e.ContainsES2019=64]="ContainsES2019",e[e.ContainsES2018=128]="ContainsES2018",e[e.ContainsES2017=256]="ContainsES2017",e[e.ContainsES2016=512]="ContainsES2016",e[e.ContainsES2015=1024]="ContainsES2015",e[e.ContainsGenerator=2048]="ContainsGenerator",e[e.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=16384]="ContainsLexicalThis",e[e.ContainsRestOrSpread=32768]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=524288]="ContainsBindingPattern",e[e.ContainsYield=1048576]="ContainsYield",e[e.ContainsAwait=2097152]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=8388608]="ContainsDynamicImport",e[e.ContainsClassFields=16777216]="ContainsClassFields",e[e.ContainsDecorators=33554432]="ContainsDecorators",e[e.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",e[e.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",e[e.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",e[e.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",e[e.HasComputedFlags=-2147483648]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2022=8]="AssertES2022",e[e.AssertES2021=16]="AssertES2021",e[e.AssertES2020=32]="AssertES2020",e[e.AssertES2019=64]="AssertES2019",e[e.AssertES2018=128]="AssertES2018",e[e.AssertES2017=256]="AssertES2017",e[e.AssertES2016=512]="AssertES2016",e[e.AssertES2015=1024]="AssertES2015",e[e.AssertGenerator=2048]="AssertGenerator",e[e.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",e[e.NodeExcludes=-2147483648]="NodeExcludes",e[e.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",e[e.FunctionExcludes=-1937940480]="FunctionExcludes",e[e.ConstructorExcludes=-1937948672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",e[e.PropertyExcludes=-2013249536]="PropertyExcludes",e[e.ClassExcludes=-2147344384]="ClassExcludes",e[e.ModuleExcludes=-1941676032]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",e[e.ParameterExcludes=-2147483648]="ParameterExcludes",e[e.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",e[e.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",e[e.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",e[e.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",e))(Ho||{}),Ko=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(Ko||{}),qo=(e=>(e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.MultiLine=2]="MultiLine",e[e.AdviseOnEmitNode=4]="AdviseOnEmitNode",e[e.NoSubstitution=8]="NoSubstitution",e[e.CapturesThis=16]="CapturesThis",e[e.NoLeadingSourceMap=32]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=64]="NoTrailingSourceMap",e[e.NoSourceMap=96]="NoSourceMap",e[e.NoNestedSourceMaps=128]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=768]="NoTokenSourceMaps",e[e.NoLeadingComments=1024]="NoLeadingComments",e[e.NoTrailingComments=2048]="NoTrailingComments",e[e.NoComments=3072]="NoComments",e[e.NoNestedComments=4096]="NoNestedComments",e[e.HelperName=8192]="HelperName",e[e.ExportName=16384]="ExportName",e[e.LocalName=32768]="LocalName",e[e.InternalName=65536]="InternalName",e[e.Indented=131072]="Indented",e[e.NoIndentation=262144]="NoIndentation",e[e.AsyncFunctionBody=524288]="AsyncFunctionBody",e[e.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",e[e.CustomPrologue=2097152]="CustomPrologue",e[e.NoHoisting=4194304]="NoHoisting",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e))(qo||{}),Jo=(e=>(e[e.None=0]="None",e[e.TypeScriptClassWrapper=1]="TypeScriptClassWrapper",e[e.NeverApplyImportHelper=2]="NeverApplyImportHelper",e[e.IgnoreSourceNewlines=4]="IgnoreSourceNewlines",e[e.Immutable=8]="Immutable",e[e.IndirectCall=16]="IndirectCall",e[e.TransformPrivateStaticElements=32]="TransformPrivateStaticElements",e))(Jo||{}),Xo=(e=>(e[e.Extends=1]="Extends",e[e.Assign=2]="Assign",e[e.Rest=4]="Rest",e[e.Decorate=8]="Decorate",e[e.ESDecorateAndRunInitializers=8]="ESDecorateAndRunInitializers",e[e.Metadata=16]="Metadata",e[e.Param=32]="Param",e[e.Awaiter=64]="Awaiter",e[e.Generator=128]="Generator",e[e.Values=256]="Values",e[e.Read=512]="Read",e[e.SpreadArray=1024]="SpreadArray",e[e.Await=2048]="Await",e[e.AsyncGenerator=4096]="AsyncGenerator",e[e.AsyncDelegator=8192]="AsyncDelegator",e[e.AsyncValues=16384]="AsyncValues",e[e.ExportStar=32768]="ExportStar",e[e.ImportStar=65536]="ImportStar",e[e.ImportDefault=131072]="ImportDefault",e[e.MakeTemplateObject=262144]="MakeTemplateObject",e[e.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",e[e.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",e[e.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",e[e.CreateBinding=4194304]="CreateBinding",e[e.SetFunctionName=8388608]="SetFunctionName",e[e.PropKey=16777216]="PropKey",e[e.AddDisposableResourceAndDisposeResources=33554432]="AddDisposableResourceAndDisposeResources",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=33554432]="LastEmitHelper",e[e.ForOfIncludes=256]="ForOfIncludes",e[e.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",e[e.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",e[e.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",e[e.SpreadIncludes=1536]="SpreadIncludes",e))(Xo||{}),$o=(e=>(e[e.SourceFile=0]="SourceFile",e[e.Expression=1]="Expression",e[e.IdentifierName=2]="IdentifierName",e[e.MappedTypeParameter=3]="MappedTypeParameter",e[e.Unspecified=4]="Unspecified",e[e.EmbeddedStatement=5]="EmbeddedStatement",e[e.JsxAttributeValue=6]="JsxAttributeValue",e[e.ImportTypeNodeAttributes=7]="ImportTypeNodeAttributes",e))($o||{}),Yo=(e=>(e[e.Parentheses=1]="Parentheses",e[e.TypeAssertions=2]="TypeAssertions",e[e.NonNullAssertions=4]="NonNullAssertions",e[e.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",e[e.Assertions=6]="Assertions",e[e.All=15]="All",e[e.ExcludeJSDocTypeAssertion=16]="ExcludeJSDocTypeAssertion",e))(Yo||{}),Qo=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))(Qo||{}),Zo=(e=>(e.Prologue="prologue",e.EmitHelpers="emitHelpers",e.NoDefaultLib="no-default-lib",e.Reference="reference",e.Type="type",e.TypeResolutionModeRequire="type-require",e.TypeResolutionModeImport="type-import",e.Lib="lib",e.Prepend="prepend",e.Text="text",e.Internal="internal",e))(Zo||{}),ei=(e=>(e[e.None=0]="None",e[e.SingleLine=0]="SingleLine",e[e.MultiLine=1]="MultiLine",e[e.PreserveLines=2]="PreserveLines",e[e.LinesMask=3]="LinesMask",e[e.NotDelimited=0]="NotDelimited",e[e.BarDelimited=4]="BarDelimited",e[e.AmpersandDelimited=8]="AmpersandDelimited",e[e.CommaDelimited=16]="CommaDelimited",e[e.AsteriskDelimited=32]="AsteriskDelimited",e[e.DelimitersMask=60]="DelimitersMask",e[e.AllowTrailingComma=64]="AllowTrailingComma",e[e.Indented=128]="Indented",e[e.SpaceBetweenBraces=256]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",e[e.Braces=1024]="Braces",e[e.Parenthesis=2048]="Parenthesis",e[e.AngleBrackets=4096]="AngleBrackets",e[e.SquareBrackets=8192]="SquareBrackets",e[e.BracketsMask=15360]="BracketsMask",e[e.OptionalIfUndefined=16384]="OptionalIfUndefined",e[e.OptionalIfEmpty=32768]="OptionalIfEmpty",e[e.Optional=49152]="Optional",e[e.PreferNewLine=65536]="PreferNewLine",e[e.NoTrailingNewLine=131072]="NoTrailingNewLine",e[e.NoInterveningComments=262144]="NoInterveningComments",e[e.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",e[e.SingleElement=1048576]="SingleElement",e[e.SpaceAfterList=2097152]="SpaceAfterList",e[e.Modifiers=2359808]="Modifiers",e[e.HeritageClauses=512]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",e[e.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",e[e.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",e[e.UnionTypeConstituents=516]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",e[e.ImportAttributes=526226]="ImportAttributes",e[e.ImportClauseEntries=526226]="ImportClauseEntries",e[e.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",e[e.CommaListElements=528]="CommaListElements",e[e.CallExpressionArguments=2576]="CallExpressionArguments",e[e.NewExpressionArguments=18960]="NewExpressionArguments",e[e.TemplateExpressionSpans=262144]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=768]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=129]="MultiLineBlockStatements",e[e.VariableDeclarationList=528]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=0]="ClassHeritageClauses",e[e.ClassMembers=129]="ClassMembers",e[e.InterfaceMembers=129]="InterfaceMembers",e[e.EnumMembers=145]="EnumMembers",e[e.CaseBlockClauses=129]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",e[e.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",e[e.JsxElementAttributes=262656]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=528]="HeritageClauseTypes",e[e.SourceFileStatements=131073]="SourceFileStatements",e[e.Decorators=2146305]="Decorators",e[e.TypeArguments=53776]="TypeArguments",e[e.TypeParameters=53776]="TypeParameters",e[e.Parameters=2576]="Parameters",e[e.IndexSignatureParameters=8848]="IndexSignatureParameters",e[e.JSDocComment=33]="JSDocComment",e))(ei||{}),ti=(e=>(e[e.None=0]="None",e[e.TripleSlashXML=1]="TripleSlashXML",e[e.SingleLine=2]="SingleLine",e[e.MultiLine=4]="MultiLine",e[e.All=7]="All",e[e.Default=7]="Default",e))(ti||{}),ni={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0},{name:"resolution-mode",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}},ri=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))(ri||{})}});function yi(e){let t=5381;for(let n=0;n<e.length;n++)t=(t<<5)+t+e.charCodeAt(n);return t.toString()}function vi(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100)}function bi(e,t){return e.getModifiedTime(t)||ci}function Ei(e){return{250:e.Low,500:e.Medium,2e3:e.High}}function Si(e){if(!e.getEnvironmentVariable)return;const t=function(e,t){const r=n(e);if(r)return o("Low"),o("Medium"),o("High"),!0;return!1;function o(e){t[e]=r[e]||t[e]}}("TSC_WATCH_POLLINGINTERVAL",li);function n(t){let n;return r("Low"),r("Medium"),r("High"),n;function r(r){const o=function(t,n){return e.getEnvironmentVariable(`${t}_${n.toUpperCase()}`)}(t,r);o&&((n||(n={}))[r]=Number(o))}}function r(e,r){const o=n(e);return(t||o)&&Ei(o?{...r,...o}:r)}ui=r("TSC_WATCH_POLLINGCHUNKSIZE",di)||ui,pi=r("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",di)||pi}function Ti(e,t,n,r,o){let i=n;for(let s=t.length;r&&s;a(),s--){const a=t[n];if(!a)continue;if(a.isClosed){t[n]=void 0;continue}r--;const s=Ri(a,bi(e,a.fileName));a.isClosed?t[n]=void 0:(null==o||o(a,n,s),t[n]&&(i<n&&(t[i]=a,t[n]=void 0),i++))}return n;function a(){++n===t.length&&(i<n&&(t.length=i),n=0,i=0)}}function xi(e){const t=[],n=[],r=a(250),o=a(500),i=a(2e3);return function(n,r,o){const i={fileName:n,callback:r,unchangedPolls:0,mtime:bi(e,n)};return t.push(i),u(i,o),{close:()=>{i.isClosed=!0,on(t,i)}}};function a(e){const t=[];return t.pollingInterval=e,t.pollIndex=0,t.pollScheduled=!1,t}function s(e,t){t.pollIndex=c(t,t.pollingInterval,t.pollIndex,ui[t.pollingInterval]),t.length?f(t.pollingInterval):(In.assert(0===t.pollIndex),t.pollScheduled=!1)}function l(e,t){c(n,250,0,n.length),s(0,t),!t.pollScheduled&&n.length&&f(250)}function c(t,r,o,i){return Ti(e,t,o,i,(function(e,o,i){i?(e.unchangedPolls=0,t!==n&&(t[o]=void 0,a=e,n.push(a),p(250))):e.unchangedPolls!==pi[r]?e.unchangedPolls++:t===n?(e.unchangedPolls=1,t[o]=void 0,u(e,250)):2e3!==r&&(e.unchangedPolls++,t[o]=void 0,u(e,250===r?500:2e3));var a}))}function d(e){switch(e){case 250:return r;case 500:return o;case 2e3:return i}}function u(e,t){d(t).push(e),p(t)}function p(e){d(e).pollScheduled||f(e)}function f(t){d(t).pollScheduled=e.setTimeout(250===t?l:s,t,250===t?"pollLowPollingIntervalQueue":"pollPollingIntervalQueue",d(t))}}function Ai(e,t,n,r){const o=ct(),i=r?new Map:void 0,a=new Map,s=an(t);return function(t,r,l,c){const d=s(t);1===o.add(d,r).length&&i&&i.set(d,n(t)||ci);const u=ra(d)||".",p=a.get(u)||function(t,r,l){const c=e(t,1,((e,r)=>{if(!ht(r))return;const a=ma(r,t),l=s(a),c=a&&o.get(l);if(c){let t,r=1;if(i){const o=i.get(l);if("change"===e&&(t=n(a)||ci,t.getTime()===o.getTime()))return;t||(t=n(a)||ci),i.set(l,t),o===ci?r=0:t===ci&&(r=2)}for(const e of c)e(a,r,t)}}),!1,500,l);return c.referenceCount=0,a.set(r,c),c}(ra(t)||".",u,c);return p.referenceCount++,{close:()=>{1===p.referenceCount?(p.close(),a.delete(u)):p.referenceCount--,o.remove(d,r)}}}}function Ii(e,t,n,r,o){const i=an(t)(n),a=e.get(i);return a?a.callbacks.push(r):e.set(i,{watcher:o(((t,n,r)=>{var o;return null==(o=e.get(i))?void 0:o.callbacks.slice().forEach((e=>e(t,n,r)))})),callbacks:[r]}),{close:()=>{const t=e.get(i);t&&tn(t.callbacks,r)&&!t.callbacks.length&&(e.delete(i),lU(t))}}}function Ri(e,t){const n=e.mtime.getTime(),r=t.getTime();return n!==r&&(e.mtime=t,e.callback(e.fileName,Ci(n,r),t),!0)}function Ci(e,t){return 0===e?0:0===t?2:1}function Di(e){return mi(e)}function Ni(e){mi=e}function Mi({watchDirectory:e,useCaseSensitiveFileNames:t,getCurrentDirectory:n,getAccessibleSortedChildDirectories:r,fileSystemEntryExists:i,realpath:a,setTimeout:s,clearTimeout:l}){const c=new Map,d=ct(),u=new Map;let p;const f=Vt(!t),m=an(t);return(t,n,r,o)=>r?_(t,o,n):e(t,n,r,o);function _(t,n,r){const a=m(t);let f=c.get(a);f?f.refCount++:(f={watcher:e(t,(e=>{b(e,n)||((null==n?void 0:n.synchronousWatchDirectory)?(h(a,e),v(t,a,n)):function(e,t,n,r){const o=c.get(t);if(o&&i(e,1))return void function(e,t,n,r){const o=u.get(t);o?o.fileNames.push(n):u.set(t,{dirName:e,options:r,fileNames:[n]});p&&(l(p),p=void 0);p=s(g,1e3,"timerToUpdateChildWatches")}(e,t,n,r);h(t,n),y(o)}(t,a,e,n))}),!1,n),refCount:1,childWatches:o},c.set(a,f),v(t,a,n));const _=r&&{dirName:t,callback:r};return _&&d.add(a,_),{dirName:t,close:()=>{const e=In.checkDefined(c.get(a));_&&d.remove(a,_),e.refCount--,e.refCount||(c.delete(a),lU(e),e.childWatches.forEach(fS))}}}function h(e,t,n){let r,o;ht(t)?r=t:o=t,d.forEach(((t,i)=>{if((!o||!0!==o.get(i))&&(i===e||dn(e,i)&&e[i.length]===Fi))if(o)if(n){const e=o.get(i);e?e.push(...n):o.set(i,n.slice())}else o.set(i,!0);else t.forEach((({callback:e})=>e(r)))}))}function g(){p=void 0,Di(`sysLog:: onTimerToUpdateChildWatches:: ${u.size}`);const e=nr(),t=new Map;for(;!p&&u.size;){const e=u.entries().next();In.assert(!e.done);const{value:[n,{dirName:r,options:o,fileNames:i}]}=e;u.delete(n);const a=v(r,n,o);h(n,t,a?void 0:i)}Di(`sysLog:: invokingWatchers:: Elapsed:: ${nr()-e}ms:: ${u.size}`),d.forEach(((e,n)=>{const r=t.get(n);r&&e.forEach((({callback:e,dirName:t})=>{mt(r)?r.forEach(e):e(t)}))}));Di(`sysLog:: Elapsed:: ${nr()-e}ms:: onTimerToUpdateChildWatches:: ${u.size} ${p}`)}function y(e){if(!e)return;const t=e.childWatches;e.childWatches=o;for(const n of t)n.close(),y(c.get(m(n.dirName)))}function v(e,t,n){const s=c.get(t);if(!s)return!1;let l;const d=vn(i(e,1)?Z(r(e),(t=>{const r=ma(t,e);return b(r,n)||0!==f(r,_a(a(r)))?void 0:r})):o,s.childWatches,((e,t)=>f(e,t.dirName)),(function(e){u(_(e,n))}),fS,u);return s.childWatches=l||o,d;function u(e){(l||(l=[])).push(e)}}function b(e,r){return se(fi,(n=>function(e,n){return!!e.includes(n)||!t&&m(e).includes(n)}(e,n)))||Li(e,r,t,n)}}function Li(e,t,n,r){return((null==t?void 0:t.excludeDirectories)||(null==t?void 0:t.excludeFiles))&&(NO(e,null==t?void 0:t.excludeFiles,n,r())||NO(e,null==t?void 0:t.excludeDirectories,n,r()))}function ki(e,t,n,r,o){return(i,a)=>{if("rename"===i){const i=a?_a(ua(e,a)):e;a&&Li(i,n,r,o)||t(i)}}}function Pi({pollingWatchFileWorker:e,getModifiedTime:t,setTimeout:n,clearTimeout:r,fsWatchWorker:o,fileSystemEntryExists:i,useCaseSensitiveFileNames:a,getCurrentDirectory:s,fsSupportsRecursiveFsWatch:l,getAccessibleSortedChildDirectories:c,realpath:d,tscWatchFile:u,useNonPollingWatchers:p,tscWatchDirectory:f,inodeWatching:m,fsWatchWithTimestamp:_,sysLog:h}){const g=new Map,y=new Map,v=new Map;let b,E,S,T,x=!1;return{watchFile:A,watchDirectory:function(e,t,o,u){if(l)return M(e,1,ki(e,t,u,a,s),o,500,sU(u));T||(T=Mi({useCaseSensitiveFileNames:a,getCurrentDirectory:s,fileSystemEntryExists:i,getAccessibleSortedChildDirectories:c,watchDirectory:D,realpath:d,setTimeout:n,clearTimeout:r}));return T(e,t,o,u)}};function A(e,n,r,o){o=function(e,t){if(e&&void 0!==e.watchFile)return e;switch(u){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return C(4,1,e);case"UseFsEventsWithFallbackDynamicPolling":return C(4,2,e);case"UseFsEventsOnParentDirectory":t=!0;default:return t?C(5,1,e):{watchFile:4}}}(o,p);const i=In.checkDefined(o.watchFile);switch(i){case 0:return N(e,n,250,void 0);case 1:return N(e,n,r,void 0);case 2:return I()(e,n,r,void 0);case 3:return R()(e,n,void 0,void 0);case 4:return M(e,0,function(e,t,n){return(r,o,i)=>{"rename"===r?(i||(i=n(e)||ci),t(e,i!==ci?0:2,i)):t(e,1,i)}}(e,n,t),!1,r,sU(o));case 5:return S||(S=Ai(M,a,t,_)),S(e,n,r,sU(o));default:In.assertNever(i)}}function I(){return b||(b=xi({getModifiedTime:t,setTimeout:n}))}function R(){return E||(E=function(e){const t=[];let n,r=0;return function(n,r){const o={fileName:n,callback:r,mtime:bi(e,n)};return t.push(o),i(),{close:()=>{o.isClosed=!0,on(t,o)}}};function o(){n=void 0,r=Ti(e,t,r,ui[250]),i()}function i(){t.length&&!n&&(n=e.setTimeout(o,2e3,"pollQueue"))}}({getModifiedTime:t,setTimeout:n}))}function C(e,t,n){const r=null==n?void 0:n.fallbackPolling;return{watchFile:e,fallbackPolling:void 0===r?t:r}}function D(e,t,n,r){In.assert(!n);const o=function(e){if(e&&void 0!==e.watchDirectory)return e;switch(f){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:const t=null==e?void 0:e.fallbackPolling;return{watchDirectory:0,fallbackPolling:void 0!==t?t:void 0}}}(r),i=In.checkDefined(o.watchDirectory);switch(i){case 1:return N(e,(()=>t(e)),500,void 0);case 2:return I()(e,(()=>t(e)),500,void 0);case 3:return R()(e,(()=>t(e)),void 0,void 0);case 0:return M(e,1,ki(e,t,r,a,s),n,500,sU(o));default:In.assertNever(i)}}function N(t,n,r,o){return Ii(g,a,t,n,(n=>e(t,n,r,o)))}function M(e,n,r,s,l,c){return Ii(s?v:y,a,e,r,(r=>function(e,n,r,a,s,l){let c,d;m&&(c=e.substring(e.lastIndexOf(Fi)),d=c.slice(Fi.length));let u=i(e,n)?f():v();return{close:()=>{u&&(u.close(),u=void 0)}};function p(t){u&&(h(`sysLog:: ${e}:: Changing watcher to ${t===f?"Present":"Missing"}FileSystemEntryWatcher`),u.close(),u=t())}function f(){if(x)return h(`sysLog:: ${e}:: Defaulting to watchFile`),y();try{const t=(1!==n&&_?L:o)(e,a,m?g:r);return t.on("error",(()=>{r("rename",""),p(v)})),t}catch(t){return x||(x="ENOSPC"===t.code),h(`sysLog:: ${e}:: Changing to watchFile`),y()}}function g(n,o){let i;if(o&&Yt(o,"~")&&(i=o,o=o.slice(0,o.length-1)),"rename"!==n||o&&o!==d&&!Yt(o,c))i&&r(n,i),r(n,o);else{const a=t(e)||ci;i&&r(n,i,a),r(n,o,a),m?p(a===ci?v:f):a===ci&&p(v)}}function y(){return A(e,function(e){return(t,n,r)=>e(1===n?"change":"rename","",r)}(r),s,l)}function v(){return A(e,((n,o,i)=>{0===o&&(i||(i=t(e)||ci),i!==ci&&(r("rename","",i),p(f)))}),s,l)}}(e,n,r,s,l,c)))}function L(e,n,r){let i=t(e)||ci;return o(e,n,((n,o,a)=>{"change"===n&&(a||(a=t(e)||ci),a.getTime()===i.getTime())||(i=a||t(e)||ci,r(n,o,i))}))}}function wi(e){const t=e.writeFile;e.writeFile=(n,r,o)=>pb(n,r,!!o,((n,r,o)=>t.call(e,n,r,o)),(t=>e.createDirectory(t)),(t=>e.directoryExists(t)))}function Oi(e){hi=e}var Fi,Wi,zi,Bi,Gi,ji=b({"src/compiler/sys.ts"(){JJ(),si=(e=>(e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",e))(si||{}),li=(e=>(e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low",e))(li||{}),ci=new Date(0),ui=Ei(di={Low:32,Medium:64,High:256}),pi=Ei(di),fi=["/node_modules/.","/.git","/.#"],mi=bt,_i=(e=>(e[e.File=0]="File",e[e.Directory=1]="Directory",e))(_i||{}),(hi=(()=>{let e;return xn()&&(e=function(){const e=/^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/,t=c("fs"),r=c("path"),o=c("os");let i,s;try{i=c("crypto")}catch{i=void 0}let l="./profile.cpuprofile";const d=c("buffer").Buffer,u="darwin"===process.platform,p="linux"===process.platform||u,f=o.platform(),m=function(){return"win32"!==f&&"win64"!==f&&!R((e=a,e.replace(/\w/g,(e=>{const t=e.toUpperCase();return e===t?e.toLowerCase():t}))));var e}(),_=t.realpathSync.native?"win32"===process.platform?function(e){return e.length<260?t.realpathSync.native(e):t.realpathSync(e)}:t.realpathSync.native:t.realpathSync,h=a.endsWith("sys.js")?r.join(r.dirname("/"),"__fake__.js"):a,g="win32"===process.platform||u,y=Ct((()=>process.cwd())),{watchFile:v,watchDirectory:b}=Pi({pollingWatchFileWorker:function(e,n,r){let o;return t.watchFile(e,{persistent:!0,interval:r},i),{close:()=>t.unwatchFile(e,i)};function i(t,r){const i=0===+r.mtime||2===o;if(0===+t.mtime){if(i)return;o=2}else if(i)o=0;else{if(+t.mtime===+r.mtime)return;o=1}n(e,o,t.mtime)}},getModifiedTime:D,setTimeout:setTimeout,clearTimeout:clearTimeout,fsWatchWorker:function(e,n,r){return t.watch(e,g?{persistent:!0,recursive:!!n}:{persistent:!0},r)},useCaseSensitiveFileNames:m,getCurrentDirectory:y,fileSystemEntryExists:I,fsSupportsRecursiveFsWatch:g,getAccessibleSortedChildDirectories:e=>A(e).directories,realpath:C,tscWatchFile:{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}.TSC_WATCHFILE,useNonPollingWatchers:!!{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}.TSC_NONPOLLING_WATCHER,tscWatchDirectory:{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}.TSC_WATCHDIRECTORY,inodeWatching:p,fsWatchWithTimestamp:u,sysLog:Di}),E={args:process.argv.slice(2),newLine:o.EOL,useCaseSensitiveFileNames:m,write(e){process.stdout.write(e)},getWidthOfTerminal:()=>process.stdout.columns,writeOutputIsTTY:()=>process.stdout.isTTY,readFile:function(e,n){var r,o;null==(r=sr)||r.logStartReadFile(e);const i=function(e){let n;try{n=t.readFileSync(e)}catch(o){return}let r=n.length;if(r>=2&&254===n[0]&&255===n[1]){r&=-2;for(let e=0;e<r;e+=2){const t=n[e];n[e]=n[e+1],n[e+1]=t}return n.toString("utf16le",2)}return r>=2&&255===n[0]&&254===n[1]?n.toString("utf16le",2):r>=3&&239===n[0]&&187===n[1]&&191===n[2]?n.toString("utf8",3):n.toString("utf8")}(e);return null==(o=sr)||o.logStopReadFile(),i},writeFile:function(e,n,r){var o;let i;null==(o=sr)||o.logEvent("WriteFile: "+e),r&&(n="\ufeff"+n);try{i=t.openSync(e,"w"),t.writeSync(i,n,void 0,"utf8")}finally{void 0!==i&&t.closeSync(i)}},watchFile:v,watchDirectory:b,resolvePath:e=>r.resolve(e),fileExists:R,directoryExists:function(e){return I(e,1)},getAccessibleFileSystemEntries:A,createDirectory(e){if(!E.directoryExists(e))try{t.mkdirSync(e)}catch(n){if("EEXIST"!==n.code)throw n}},getExecutingFilePath:()=>h,getCurrentDirectory:y,getDirectories:function(e){return A(e).directories.slice()},getEnvironmentVariable:e=>({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}[e]||""),readDirectory:function(e,t,n,r,o){return XT(e,t,n,r,m,process.cwd(),o,A,C)},getModifiedTime:D,setModifiedTime:function(e,n){try{t.utimesSync(e,n,n)}catch(r){return}},deleteFile:function(e){try{return t.unlinkSync(e)}catch(n){return}},createHash:i?N:yi,createSHA256Hash:i?N:void 0,getMemoryUsage:()=>(n.g.gc&&n.g.gc(),process.memoryUsage().heapUsed),getFileSize(e){try{const t=S(e);if(null==t?void 0:t.isFile())return t.size}catch{}return 0},exit(e){T((()=>process.exit(e)))},enableCPUProfiler:function(e,t){if(s)return t(),!1;const n=c("inspector");if(!n||!n.Session)return t(),!1;const r=new n.Session;return r.connect(),r.post("Profiler.enable",(()=>{r.post("Profiler.start",(()=>{s=r,l=e,t()}))})),!0},disableCPUProfiler:T,cpuProfilingEnabled:()=>!!s||F(process.execArgv,"--cpu-prof")||F(process.execArgv,"--prof"),realpath:C,debugMode:!!{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}.NODE_INSPECTOR_IPC||!!{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}.VSCODE_INSPECTOR_OPTIONS||se(process.execArgv,(e=>/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(e)))||!!process.recordreplay,tryEnableSourceMapsForHost(){try{c("source-map-support").install()}catch{}},setTimeout:setTimeout,clearTimeout:clearTimeout,clearScreen:()=>{process.stdout.write("\x1bc")},setBlocking:()=>{var e;const t=null==(e=process.stdout)?void 0:e._handle;t&&t.setBlocking&&t.setBlocking(!0)},bufferFrom:x,base64decode:e=>x(e,"base64").toString("utf8"),base64encode:e=>x(e).toString("base64"),require:(e,t)=>{try{const n=FF(t,e,E);return{module:c(n),modulePath:n,error:void 0}}catch(n){return{module:void 0,modulePath:void 0,error:n}}}};return E;function S(e){return t.statSync(e,{throwIfNoEntry:!1})}function T(n){if(s&&"stopping"!==s){const o=s;return s.post("Profiler.stop",((i,{profile:a})=>{var c;if(!i){try{(null==(c=S(l))?void 0:c.isDirectory())&&(l=r.join(l,`${(new Date).toISOString().replace(/:/g,"-")}+P${process.pid}.cpuprofile`))}catch{}try{t.mkdirSync(r.dirname(l),{recursive:!0})}catch{}t.writeFileSync(l,JSON.stringify(function(t){let n=0;const o=new Map,i=ca(r.dirname(h)),a=`file://${1===na(i)?"":"/"}${i}`;for(const r of t.nodes)if(r.callFrame.url){const t=ca(r.callFrame.url);Ra(a,t,m)?r.callFrame.url=ka(a,t,a,an(m),!0):e.test(t)||(r.callFrame.url=(o.has(t)?o:o.set(t,`external${n}.js`)).get(t),n++)}return t}(a)))}s=void 0,o.disconnect(),n()})),s="stopping",!0}return n(),!1}function x(e,t){return d.from&&d.from!==Int8Array.from?d.from(e,t):new d(e,t)}function A(e){var n;null==(n=sr)||n.logEvent("ReadDir: "+(e||"."));try{const n=t.readdirSync(e||".",{withFileTypes:!0}),o=[],i=[];for(const t of n){const n="string"===typeof t?t:t.name;if("."===n||".."===n)continue;let a;if("string"===typeof t||t.isSymbolicLink()){const t=ua(e,n);try{if(a=S(t),!a)continue}catch(r){continue}}else a=t;a.isFile()?o.push(n):a.isDirectory()&&i.push(n)}return o.sort(),i.sort(),{files:o,directories:i}}catch(r){return If}}function I(e,t){const n=Error.stackTraceLimit;Error.stackTraceLimit=0;try{const n=S(e);if(!n)return!1;switch(t){case 0:return n.isFile();case 1:return n.isDirectory();default:return!1}}catch(r){return!1}finally{Error.stackTraceLimit=n}}function R(e){return I(e,0)}function C(e){try{return _(e)}catch{return e}}function D(e){var t;const n=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return null==(t=S(e))?void 0:t.mtime}catch(r){return}finally{Error.stackTraceLimit=n}}function N(e){const t=i.createHash("sha256");return t.update(e),t.digest("hex")}}()),e&&wi(e),e})())&&hi.getEnvironmentVariable&&(Si(hi),In.setAssertionLevel(/^development$/i.test(hi.getEnvironmentVariable("NODE_ENV"))?1:0)),hi&&hi.debugMode&&(In.isDebugging=!0)}});function Vi(e){return 47===e||92===e}function Ui(e){return ta(e)<0}function Hi(e){return ta(e)>0}function Ki(e){const t=ta(e);return t>0&&t===e.length}function qi(e){return 0!==ta(e)}function Ji(e){return/^\.\.?($|[\\/])/.test(e)}function Xi(e){return!qi(e)&&!Ji(e)}function $i(e){return oa(e).includes(".")}function Yi(e,t){return e.length>t.length&&Yt(e,t)}function Qi(e,t){for(const n of t)if(Yi(e,n))return!0;return!1}function Zi(e){return e.length>0&&Vi(e.charCodeAt(e.length-1))}function ea(e){return e>=97&&e<=122||e>=65&&e<=90}function ta(e){if(!e)return 0;const t=e.charCodeAt(0);if(47===t||92===t){if(e.charCodeAt(1)!==t)return 1;const n=e.indexOf(47===t?Fi:Wi,2);return n<0?e.length:n+1}if(ea(t)&&58===e.charCodeAt(1)){const t=e.charCodeAt(2);if(47===t||92===t)return 3;if(2===e.length)return 2}const n=e.indexOf(zi);if(-1!==n){const t=n+zi.length,r=e.indexOf(Fi,t);if(-1!==r){const o=e.slice(0,n),i=e.slice(t,r);if("file"===o&&(""===i||"localhost"===i)&&ea(e.charCodeAt(r+1))){const t=function(e,t){const n=e.charCodeAt(t);if(58===n)return t+1;if(37===n&&51===e.charCodeAt(t+1)){const n=e.charCodeAt(t+2);if(97===n||65===n)return t+3}return-1}(e,r+2);if(-1!==t){if(47===e.charCodeAt(t))return~(t+1);if(t===e.length)return~t}}return~(r+1)}return~e.length}return 0}function na(e){const t=ta(e);return t<0?~t:t}function ra(e){const t=na(e=ca(e));return t===e.length?e:(e=ya(e)).slice(0,Math.max(t,e.lastIndexOf(Fi)))}function oa(e,t,n){if(na(e=ca(e))===e.length)return"";const r=(e=ya(e)).slice(Math.max(na(e),e.lastIndexOf(Fi)+1)),o=void 0!==t&&void 0!==n?aa(r,t,n):void 0;return o?r.slice(0,r.length-o.length):r}function ia(e,t,n){if(dn(t,".")||(t="."+t),e.length>=t.length&&46===e.charCodeAt(e.length-t.length)){const r=e.slice(e.length-t.length);if(n(r,t))return r}}function aa(e,t,n){if(t)return function(e,t,n){if("string"===typeof t)return ia(e,t,n)||"";for(const r of t){const t=ia(e,r,n);if(t)return t}return""}(ya(e),t,n?Pt:wt);const r=oa(e),o=r.lastIndexOf(".");return o>=0?r.substring(o):""}function sa(e,t=""){return function(e,t){const n=e.substring(0,t),r=e.substring(t).split(Fi);return r.length&&!Oe(r)&&r.pop(),[n,...r]}(e=ua(t,e),na(e))}function la(e,t){if(0===e.length)return"";return(e[0]&&va(e[0]))+e.slice(1,t).join(Fi)}function ca(e){return e.includes("\\")?e.replace(Bi,Fi):e}function da(e){if(!se(e))return[];const t=[e[0]];for(let n=1;n<e.length;n++){const r=e[n];if(r&&"."!==r){if(".."===r)if(t.length>1){if(".."!==t[t.length-1]){t.pop();continue}}else if(t[0])continue;t.push(r)}}return t}function ua(e,...t){e&&(e=ca(e));for(let n of t)n&&(n=ca(n),e=e&&0===na(n)?va(e)+n:n);return e}function pa(e,...t){return _a(se(t)?ua(e,...t):ca(e))}function fa(e,t){return da(sa(e,t))}function ma(e,t){return la(fa(e,t))}function _a(e){if(e=ca(e),!Gi.test(e))return e;const t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!Gi.test(e)))return e;const n=la(da(sa(e)));return n&&Zi(e)?va(n):n}function ha(e,t){return 0===(n=fa(e,t)).length?"":n.slice(1).join(Fi);var n}function ga(e,t,n){return n(Hi(e)?_a(e):ma(e,t))}function ya(e){return Zi(e)?e.substr(0,e.length-1):e}function va(e){return Zi(e)?e:e+Fi}function ba(e){return qi(e)||Ji(e)?e:"./"+e}function Ea(e,t,n,r){const o=void 0!==n&&void 0!==r?aa(e,n,r):aa(e);return o?e.slice(0,e.length-o.length)+(dn(t,".")?t:"."+t):e}function Sa(e,t){const n=hP(e);return n?e.slice(0,e.length-n.length)+(dn(t,".")?t:"."+t):Ea(e,t)}function Ta(e,t,n){if(e===t)return 0;if(void 0===e)return-1;if(void 0===t)return 1;const r=e.substring(0,na(e)),o=t.substring(0,na(t)),i=Bt(r,o);if(0!==i)return i;const a=e.substring(r.length),s=t.substring(o.length);if(!Gi.test(a)&&!Gi.test(s))return n(a,s);const l=da(sa(e)),c=da(sa(t)),d=Math.min(l.length,c.length);for(let u=1;u<d;u++){const e=n(l[u],c[u]);if(0!==e)return e}return Ft(l.length,c.length)}function xa(e,t){return Ta(e,t,jt)}function Aa(e,t){return Ta(e,t,Bt)}function Ia(e,t,n,r){return"string"===typeof n?(e=ua(n,e),t=ua(n,t)):"boolean"===typeof n&&(r=n),Ta(e,t,Vt(r))}function Ra(e,t,n,r){if("string"===typeof n?(e=ua(n,e),t=ua(n,t)):"boolean"===typeof n&&(r=n),void 0===e||void 0===t)return!1;if(e===t)return!0;const o=da(sa(e)),i=da(sa(t));if(i.length<o.length)return!1;const a=r?Pt:wt;for(let s=0;s<o.length;s++){if(!(0===s?Pt:a)(o[s],i[s]))return!1}return!0}function Ca(e,t,n){const r=n(e),o=n(t);return dn(r,o+"/")||dn(r,o+"\\")}function Da(e,t,n,r){const o=da(sa(e)),i=da(sa(t));let a;for(a=0;a<o.length&&a<i.length;a++){if(!(0===a?Pt:n)(r(o[a]),r(i[a])))break}if(0===a)return i;const s=i.slice(a),l=[];for(;a<o.length;a++)l.push("..");return["",...l,...s]}function Na(e,t,n){In.assert(na(e)>0===na(t)>0,"Paths must either both be absolute or both be relative");return la(Da(e,t,"boolean"===typeof n&&n?Pt:wt,"function"===typeof n?n:xt))}function Ma(e,t,n){return Hi(e)?ka(t,e,t,n,!1):e}function La(e,t,n){return ba(Na(ra(e),t,n))}function ka(e,t,n,r,o){const i=Da(pa(n,e),pa(n,t),wt,r),a=i[0];if(o&&Hi(a)){const e=a.charAt(0)===Fi?"file://":"file:///";i[0]=e+a}return la(i)}function Pa(e,t){for(;;){const n=t(e);if(void 0!==n)return n;const r=ra(e);if(r===e)return;e=r}}function wa(e){return Yt(e,"/node_modules")}var Oa,Fa=b({"src/compiler/path.ts"(){JJ(),Fi="/",Wi="\\",zi="://",Bi=/\\/g,Gi=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/}});function Wa(e,t,n,r,o,i,a){return{code:e,category:t,key:n,message:r,reportsUnnecessary:o,elidedInCompatabilityPyramid:i,reportsDeprecated:a}}var za,Ba,Ga,ja,Va,Ua,Ha,Ka,qa,Ja,Xa,$a,Ya,Qa,Za,es,ts=b({"src/compiler/diagnosticInformationMap.generated.ts"(){gi(),Oa={Unterminated_string_literal:Wa(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:Wa(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:Wa(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:Wa(1006,1,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:Wa(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:Wa(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:Wa(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:Wa(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:Wa(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:Wa(1013,1,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:Wa(1014,1,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:Wa(1015,1,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:Wa(1016,1,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:Wa(1017,1,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:Wa(1018,1,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:Wa(1019,1,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:Wa(1020,1,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:Wa(1021,1,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:Wa(1022,1,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:Wa(1024,1,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:Wa(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:Wa(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:Wa(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:Wa(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:Wa(1031,1,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:Wa(1034,1,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:Wa(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:Wa(1036,1,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:Wa(1038,1,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:Wa(1039,1,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:Wa(1040,1,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:Wa(1042,1,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:Wa(1044,1,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:Wa(1046,1,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:Wa(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:Wa(1048,1,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:Wa(1049,1,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:Wa(1051,1,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:Wa(1052,1,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:Wa(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:Wa(1054,1,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:Wa(1055,1,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055","Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:Wa(1056,1,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:Wa(1058,1,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:Wa(1059,1,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:Wa(1060,1,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:Wa(1061,1,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:Wa(1062,1,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:Wa(1063,1,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:Wa(1064,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise<T> type. Did you mean to write 'Promise<{0}>'?"),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:Wa(1065,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065","The return type of an async function or method must be the global Promise<T> type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:Wa(1066,1,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:Wa(1068,1,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:Wa(1069,1,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:Wa(1070,1,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:Wa(1071,1,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:Wa(1079,1,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:Wa(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:Wa(1089,1,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:Wa(1090,1,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:Wa(1091,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:Wa(1092,1,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:Wa(1093,1,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:Wa(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:Wa(1095,1,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:Wa(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:Wa(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:Wa(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:Wa(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:Wa(1100,1,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:Wa(1101,1,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:Wa(1102,1,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:Wa(1103,1,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:Wa(1104,1,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:Wa(1105,1,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:Wa(1106,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:Wa(1107,1,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:Wa(1108,1,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:Wa(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:Wa(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:Wa(1111,1,"Private_field_0_must_be_declared_in_an_enclosing_class_1111","Private field '{0}' must be declared in an enclosing class."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:Wa(1113,1,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:Wa(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:Wa(1115,1,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:Wa(1116,1,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name:Wa(1117,1,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:Wa(1118,1,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:Wa(1119,1,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:Wa(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:Wa(1121,1,"Octal_literals_are_not_allowed_Use_the_syntax_0_1121","Octal literals are not allowed. Use the syntax '{0}'."),Variable_declaration_list_cannot_be_empty:Wa(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:Wa(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:Wa(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:Wa(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:Wa(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:Wa(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:Wa(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:Wa(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:Wa(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:Wa(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:Wa(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:Wa(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:Wa(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:Wa(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:Wa(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:Wa(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:Wa(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:Wa(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:Wa(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:Wa(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:Wa(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:Wa(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:Wa(1147,1,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:Wa(1148,1,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:Wa(1149,1,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),_0_declarations_must_be_initialized:Wa(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:Wa(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:Wa(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:Wa(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:Wa(1162,1,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:Wa(1163,1,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:Wa(1164,1,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:Wa(1165,1,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:Wa(1166,1,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:Wa(1168,1,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:Wa(1169,1,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:Wa(1170,1,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:Wa(1171,1,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:Wa(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:Wa(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:Wa(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:Wa(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:Wa(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:Wa(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:Wa(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:Wa(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:Wa(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:Wa(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:Wa(1182,1,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:Wa(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:Wa(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:Wa(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:Wa(1186,1,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:Wa(1187,1,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:Wa(1188,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:Wa(1189,1,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:Wa(1190,1,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:Wa(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:Wa(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:Wa(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:Wa(1194,1,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:Wa(1195,1,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:Wa(1196,1,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:Wa(1197,1,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:Wa(1198,1,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:Wa(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:Wa(1200,1,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:Wa(1202,1,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202","Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from \"mod\"', 'import {a} from \"mod\"', 'import d from \"mod\"', or another module format instead."),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:Wa(1203,1,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_0_is_enabled_requires_using_export_type:Wa(1205,1,"Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205","Re-exporting a type when '{0}' is enabled requires using 'export type'."),Decorators_are_not_valid_here:Wa(1206,1,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:Wa(1207,1,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:Wa(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:Wa(1210,1,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:Wa(1211,1,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:Wa(1212,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:Wa(1213,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:Wa(1214,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:Wa(1215,1,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:Wa(1216,1,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:Wa(1218,1,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Generators_are_not_allowed_in_an_ambient_context:Wa(1221,1,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:Wa(1222,1,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:Wa(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:Wa(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:Wa(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:Wa(1226,1,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:Wa(1227,1,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:Wa(1228,1,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:Wa(1229,1,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:Wa(1230,1,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:Wa(1231,1,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:Wa(1232,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:Wa(1233,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:Wa(1234,1,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module:Wa(1235,1,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:Wa(1236,1,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:Wa(1237,1,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:Wa(1238,1,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:Wa(1239,1,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:Wa(1240,1,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:Wa(1241,1,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:Wa(1242,1,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:Wa(1243,1,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:Wa(1244,1,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:Wa(1245,1,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:Wa(1246,1,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:Wa(1247,1,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:Wa(1248,1,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:Wa(1249,1,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5:Wa(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:Wa(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:Wa(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."),Abstract_properties_can_only_appear_within_an_abstract_class:Wa(1253,1,"Abstract_properties_can_only_appear_within_an_abstract_class_1253","Abstract properties can only appear within an abstract class."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:Wa(1254,1,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:Wa(1255,1,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:Wa(1257,1,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:Wa(1258,1,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:Wa(1259,1,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:Wa(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:Wa(1261,1,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:Wa(1262,1,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:Wa(1263,1,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:Wa(1264,1,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:Wa(1265,1,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:Wa(1266,1,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:Wa(1267,1,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:Wa(1268,1,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled:Wa(1269,1,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269","Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled."),Decorator_function_return_type_0_is_not_assignable_to_type_1:Wa(1270,1,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:Wa(1271,1,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:Wa(1272,1,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:Wa(1273,1,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:Wa(1274,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:Wa(1275,1,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:Wa(1276,1,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class:Wa(1277,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277","'{0}' modifier can only appear on a type parameter of a function, method or class"),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:Wa(1278,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278","The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}."),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:Wa(1279,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279","The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}."),Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement:Wa(1280,1,"Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280","Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement."),Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead:Wa(1281,1,"Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281","Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead."),An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:Wa(1282,1,"An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282","An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:Wa(1283,1,"An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283","An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:Wa(1284,1,"An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284","An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:Wa(1285,1,"An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285","An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:Wa(1286,1,"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286","ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:Wa(1287,1,"A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287","A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:Wa(1288,1,"An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288","An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:Wa(1289,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:Wa(1290,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:Wa(1291,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:Wa(1292,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),with_statements_are_not_allowed_in_an_async_function_block:Wa(1300,1,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:Wa(1308,1,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:Wa(1309,1,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:Wa(1312,1,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:Wa(1313,1,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:Wa(1314,1,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:Wa(1315,1,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:Wa(1316,1,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:Wa(1317,1,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:Wa(1318,1,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:Wa(1319,1,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:Wa(1320,1,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:Wa(1321,1,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:Wa(1322,1,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext:Wa(1323,1,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext:Wa(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', or 'nodenext'."),Argument_of_dynamic_import_cannot_be_spread_element:Wa(1325,1,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:Wa(1326,1,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:Wa(1327,1,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:Wa(1328,1,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:Wa(1329,1,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:Wa(1330,1,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:Wa(1331,1,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:Wa(1332,1,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:Wa(1333,1,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:Wa(1334,1,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:Wa(1335,1,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:Wa(1337,1,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:Wa(1338,1,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:Wa(1339,1,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:Wa(1340,1,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Class_constructor_may_not_be_an_accessor:Wa(1341,1,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext:Wa(1343,1,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."),A_label_is_not_allowed_here:Wa(1344,1,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:Wa(1345,1,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:Wa(1346,1,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:Wa(1347,1,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:Wa(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:Wa(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:Wa(1350,3,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:Wa(1351,1,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:Wa(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:Wa(1353,1,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:Wa(1354,1,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:Wa(1355,1,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:Wa(1356,1,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:Wa(1357,1,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:Wa(1358,1,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:Wa(1359,1,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:Wa(1360,1,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:Wa(1361,1,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:Wa(1362,1,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:Wa(1363,1,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:Wa(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:Wa(1365,3,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:Wa(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:Wa(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:Wa(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:Wa(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error:Wa(1371,1,"This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371","This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:Wa(1375,1,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:Wa(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:Wa(1377,3,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:Wa(1378,1,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:Wa(1379,1,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:Wa(1380,1,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:Wa(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:Wa(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:Wa(1385,1,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:Wa(1386,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:Wa(1387,1,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:Wa(1388,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:Wa(1389,1,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:Wa(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:Wa(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:Wa(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:Wa(1394,3,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:Wa(1395,3,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:Wa(1396,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:Wa(1397,3,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:Wa(1398,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:Wa(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:Wa(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:Wa(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:Wa(1402,3,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:Wa(1403,3,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:Wa(1404,3,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:Wa(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:Wa(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:Wa(1407,3,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:Wa(1408,3,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:Wa(1409,3,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:Wa(1410,3,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:Wa(1411,3,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:Wa(1412,3,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:Wa(1413,3,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:Wa(1414,3,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:Wa(1415,3,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:Wa(1416,3,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:Wa(1417,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:Wa(1418,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:Wa(1419,3,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:Wa(1420,3,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:Wa(1421,3,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:Wa(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:Wa(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:Wa(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:Wa(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:Wa(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:Wa(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:Wa(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:Wa(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:Wa(1430,3,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:Wa(1431,1,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:Wa(1432,1,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:Wa(1433,1,"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433","Neither decorators nor modifiers may be applied to 'this' parameters."),Unexpected_keyword_or_identifier:Wa(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:Wa(1435,1,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:Wa(1436,1,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:Wa(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:Wa(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:Wa(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:Wa(1440,1,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:Wa(1441,1,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:Wa(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:Wa(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443","Module declaration names may only use ' or \" quoted strings."),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:Wa(1444,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444","'{0}' is a type and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:Wa(1446,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:Wa(1448,1,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:Wa(1449,3,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments:Wa(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional set of attributes as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:Wa(1451,1,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_should_be_either_require_or_import:Wa(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:Wa(1454,1,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:Wa(1455,1,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:Wa(1456,1,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:Wa(1457,3,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:Wa(1458,3,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",'File is ECMAScript module because \'{0}\' has field "type" with value "module"'),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:Wa(1459,3,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",'File is CommonJS module because \'{0}\' has field "type" whose value is not "module"'),File_is_CommonJS_module_because_0_does_not_have_field_type:Wa(1460,3,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460","File is CommonJS module because '{0}' does not have field \"type\""),File_is_CommonJS_module_because_package_json_was_not_found:Wa(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),resolution_mode_is_the_only_valid_key_for_type_import_attributes:Wa(1463,1,"resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463","'resolution-mode' is the only valid key for type import attributes."),Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:Wa(1464,1,"Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464","Type import attributes should have exactly one key - 'resolution-mode' - with value 'import' or 'require'."),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:Wa(1470,1,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:Wa(1471,1,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:Wa(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:Wa(1473,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:Wa(1474,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:Wa(1475,3,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:Wa(1476,3,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:Wa(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:Wa(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:Wa(1479,1,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479","The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"{0}\")' call instead."),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:Wa(1480,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:Wa(1481,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481","To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field `\"type\": \"module\"` to '{1}'."),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:Wa(1482,3,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:Wa(1483,3,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:Wa(1484,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484","'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:Wa(1485,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),Decorator_used_before_export_here:Wa(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:Wa(1487,1,"Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487","Octal escape sequences are not allowed. Use the syntax '{0}'."),Escape_sequence_0_is_not_allowed:Wa(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:Wa(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:Wa(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:Wa(1491,1,"_0_modifier_cannot_appear_on_a_using_declaration_1491","'{0}' modifier cannot appear on a 'using' declaration."),_0_declarations_may_not_have_binding_patterns:Wa(1492,1,"_0_declarations_may_not_have_binding_patterns_1492","'{0}' declarations may not have binding patterns."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:Wa(1493,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493","The left-hand side of a 'for...in' statement cannot be a 'using' declaration."),The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration:Wa(1494,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494","The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."),_0_modifier_cannot_appear_on_an_await_using_declaration:Wa(1495,1,"_0_modifier_cannot_appear_on_an_await_using_declaration_1495","'{0}' modifier cannot appear on an 'await using' declaration."),Identifier_string_literal_or_number_literal_expected:Wa(1496,1,"Identifier_string_literal_or_number_literal_expected_1496","Identifier, string literal, or number literal expected."),The_types_of_0_are_incompatible_between_these_types:Wa(2200,1,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:Wa(2201,1,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:Wa(2202,1,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:Wa(2203,1,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:Wa(2204,1,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:Wa(2205,1,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:Wa(2206,1,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:Wa(2207,1,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:Wa(2208,1,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:Wa(2209,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:Wa(2210,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:Wa(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:Wa(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:Wa(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:Wa(2301,1,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:Wa(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:Wa(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:Wa(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:Wa(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:Wa(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:Wa(2307,1,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:Wa(2308,1,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:Wa(2309,1,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:Wa(2310,1,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:Wa(2311,1,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:Wa(2312,1,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:Wa(2313,1,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:Wa(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:Wa(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:Wa(2316,1,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:Wa(2317,1,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:Wa(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:Wa(2319,1,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:Wa(2320,1,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:Wa(2321,1,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:Wa(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:Wa(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:Wa(2324,1,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:Wa(2325,1,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:Wa(2326,1,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:Wa(2327,1,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:Wa(2328,1,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:Wa(2329,1,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:Wa(2330,1,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:Wa(2331,1,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:Wa(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:Wa(2333,1,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:Wa(2334,1,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:Wa(2335,1,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:Wa(2336,1,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:Wa(2337,1,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:Wa(2338,1,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:Wa(2339,1,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:Wa(2340,1,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:Wa(2341,1,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:Wa(2343,1,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:Wa(2344,1,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:Wa(2345,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Untyped_function_calls_may_not_accept_type_arguments:Wa(2347,1,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:Wa(2348,1,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:Wa(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:Wa(2350,1,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:Wa(2351,1,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:Wa(2352,1,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:Wa(2353,1,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:Wa(2354,1,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value:Wa(2355,1,"A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:Wa(2356,1,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:Wa(2357,1,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:Wa(2358,1,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method:Wa(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359","The right-hand side of an 'instanceof' expression must be either of type 'any', a class, function, or other type assignable to the 'Function' interface type, or an object type with a 'Symbol.hasInstance' method."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:Wa(2362,1,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:Wa(2363,1,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:Wa(2364,1,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:Wa(2365,1,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:Wa(2366,1,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:Wa(2367,1,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:Wa(2368,1,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:Wa(2369,1,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:Wa(2370,1,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:Wa(2371,1,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:Wa(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:Wa(2373,1,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:Wa(2374,1,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:Wa(2375,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:Wa(2376,1,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:Wa(2377,1,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:Wa(2378,1,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:Wa(2379,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),Overload_signatures_must_all_be_exported_or_non_exported:Wa(2383,1,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:Wa(2384,1,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:Wa(2385,1,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:Wa(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:Wa(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:Wa(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:Wa(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:Wa(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:Wa(2391,1,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:Wa(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:Wa(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:Wa(2394,1,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:Wa(2395,1,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:Wa(2396,1,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:Wa(2397,1,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:Wa(2398,1,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:Wa(2399,1,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:Wa(2400,1,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:Wa(2401,1,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:Wa(2402,1,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:Wa(2403,1,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:Wa(2404,1,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:Wa(2405,1,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:Wa(2406,1,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:Wa(2407,1,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:Wa(2408,1,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:Wa(2409,1,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:Wa(2410,1,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:Wa(2412,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:Wa(2411,1,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:Wa(2413,1,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:Wa(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:Wa(2415,1,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:Wa(2416,1,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:Wa(2417,1,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:Wa(2418,1,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:Wa(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:Wa(2420,1,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:Wa(2422,1,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:Wa(2423,1,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:Wa(2425,1,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:Wa(2426,1,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:Wa(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:Wa(2428,1,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:Wa(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:Wa(2431,1,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:Wa(2432,1,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:Wa(2433,1,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:Wa(2434,1,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:Wa(2435,1,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:Wa(2436,1,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:Wa(2437,1,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:Wa(2438,1,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:Wa(2439,1,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:Wa(2440,1,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:Wa(2441,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:Wa(2442,1,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:Wa(2443,1,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:Wa(2444,1,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:Wa(2445,1,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:Wa(2446,1,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:Wa(2447,1,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:Wa(2448,1,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:Wa(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:Wa(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:Wa(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:Wa(2452,1,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:Wa(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:Wa(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:Wa(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:Wa(2458,1,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:Wa(2459,1,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:Wa(2460,1,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:Wa(2461,1,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:Wa(2462,1,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:Wa(2463,1,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:Wa(2464,1,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:Wa(2465,1,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:Wa(2466,1,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:Wa(2467,1,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:Wa(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:Wa(2469,1,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:Wa(2472,1,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:Wa(2473,1,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_must_be_constant_expressions:Wa(2474,1,"const_enum_member_initializers_must_be_constant_expressions_2474","const enum member initializers must be constant expressions."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:Wa(2475,1,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:Wa(2476,1,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:Wa(2477,1,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:Wa(2478,1,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:Wa(2480,1,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:Wa(2481,1,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:Wa(2483,1,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:Wa(2484,1,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:Wa(2487,1,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:Wa(2488,1,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:Wa(2489,1,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:Wa(2490,1,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:Wa(2491,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:Wa(2492,1,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:Wa(2493,1,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:Wa(2494,1,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:Wa(2495,1,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression:Wa(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:Wa(2497,1,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:Wa(2498,1,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:Wa(2499,1,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:Wa(2500,1,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:Wa(2501,1,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:Wa(2502,1,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:Wa(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:Wa(2504,1,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:Wa(2505,1,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:Wa(2506,1,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:Wa(2507,1,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:Wa(2508,1,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:Wa(2509,1,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:Wa(2510,1,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:Wa(2511,1,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:Wa(2512,1,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:Wa(2513,1,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),A_tuple_type_cannot_be_indexed_with_a_negative_value:Wa(2514,1,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:Wa(2515,1,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:Wa(2516,1,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:Wa(2517,1,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:Wa(2518,1,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:Wa(2519,1,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:Wa(2520,1,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:Wa(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522","The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:Wa(2523,1,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:Wa(2524,1,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:Wa(2525,1,"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525","Initializer provides no value for this binding element and the binding element has no default value."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:Wa(2526,1,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:Wa(2527,1,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:Wa(2528,1,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:Wa(2529,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:Wa(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:Wa(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:Wa(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:Wa(2533,1,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:Wa(2534,1,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Type_0_cannot_be_used_to_index_type_1:Wa(2536,1,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:Wa(2537,1,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:Wa(2538,1,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:Wa(2539,1,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:Wa(2540,1,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:Wa(2542,1,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:Wa(2543,1,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:Wa(2544,1,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:Wa(2545,1,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:Wa(2547,1,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:Wa(2548,1,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:Wa(2549,1,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:Wa(2550,1,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:Wa(2551,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:Wa(2552,1,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:Wa(2553,1,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:Wa(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:Wa(2555,1,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:Wa(2556,1,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:Wa(2558,1,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:Wa(2559,1,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:Wa(2560,1,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:Wa(2561,1,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:Wa(2562,1,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:Wa(2563,1,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:Wa(2564,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:Wa(2565,1,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:Wa(2566,1,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:Wa(2567,1,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:Wa(2568,1,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:Wa(2570,1,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:Wa(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:Wa(2574,1,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:Wa(2575,1,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:Wa(2576,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:Wa(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:Wa(2578,1,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:Wa(2580,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:Wa(2581,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:Wa(2582,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:Wa(2583,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:Wa(2584,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:Wa(2585,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:Wa(2588,1,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:Wa(2589,1,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:Wa(2590,1,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:Wa(2591,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:Wa(2592,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:Wa(2593,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:Wa(2594,1,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:Wa(2595,1,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:Wa(2596,1,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:Wa(2597,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:Wa(2598,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:Wa(2602,1,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:Wa(2603,1,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:Wa(2604,1,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:Wa(2606,1,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:Wa(2607,1,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:Wa(2608,1,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:Wa(2609,1,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:Wa(2610,1,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:Wa(2611,1,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:Wa(2612,1,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:Wa(2613,1,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:Wa(2614,1,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:Wa(2615,1,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:Wa(2616,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:Wa(2617,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:Wa(2618,1,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:Wa(2619,1,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:Wa(2620,1,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:Wa(2621,1,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:Wa(2623,1,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:Wa(2624,1,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:Wa(2625,1,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:Wa(2626,1,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:Wa(2627,1,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:Wa(2628,1,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:Wa(2629,1,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:Wa(2630,1,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:Wa(2631,1,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:Wa(2632,1,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:Wa(2633,1,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:Wa(2634,1,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:Wa(2635,1,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:Wa(2636,1,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:Wa(2637,1,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:Wa(2638,1,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),React_components_cannot_include_JSX_namespace_names:Wa(2639,1,"React_components_cannot_include_JSX_namespace_names_2639","React components cannot include JSX namespace names"),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:Wa(2649,1,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:Wa(2651,1,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:Wa(2652,1,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:Wa(2653,1,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),JSX_expressions_must_have_one_parent_element:Wa(2657,1,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:Wa(2658,1,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:Wa(2659,1,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:Wa(2660,1,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:Wa(2661,1,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:Wa(2662,1,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:Wa(2663,1,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:Wa(2664,1,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:Wa(2665,1,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:Wa(2666,1,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:Wa(2667,1,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:Wa(2668,1,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:Wa(2669,1,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:Wa(2670,1,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:Wa(2671,1,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:Wa(2672,1,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:Wa(2673,1,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:Wa(2674,1,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:Wa(2675,1,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:Wa(2676,1,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:Wa(2677,1,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:Wa(2678,1,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:Wa(2679,1,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:Wa(2680,1,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:Wa(2681,1,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:Wa(2683,1,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:Wa(2684,1,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:Wa(2685,1,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:Wa(2686,1,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:Wa(2687,1,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:Wa(2688,1,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:Wa(2689,1,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:Wa(2690,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:Wa(2692,1,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:Wa(2693,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:Wa(2694,1,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:Wa(2695,1,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:Wa(2696,1,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:Wa(2697,1,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:Wa(2698,1,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:Wa(2699,1,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:Wa(2700,1,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:Wa(2701,1,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:Wa(2702,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:Wa(2703,1,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:Wa(2704,1,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:Wa(2705,1,"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705","An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:Wa(2706,1,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:Wa(2707,1,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:Wa(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:Wa(2709,1,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:Wa(2710,1,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:Wa(2711,1,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:Wa(2712,1,"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712","A dynamic import call in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:Wa(2713,1,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713","Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}[\"{1}\"]'?"),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:Wa(2714,1,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:Wa(2715,1,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:Wa(2716,1,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:Wa(2717,1,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:Wa(2718,1,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:Wa(2719,1,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:Wa(2720,1,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:Wa(2721,1,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:Wa(2722,1,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:Wa(2723,1,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:Wa(2724,1,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:Wa(2725,1,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:Wa(2726,1,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:Wa(2727,1,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:Wa(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:Wa(2729,1,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:Wa(2730,1,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:Wa(2731,1,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:Wa(2732,1,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:Wa(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:Wa(2734,1,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:Wa(2735,1,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:Wa(2736,1,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:Wa(2737,1,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:Wa(2738,3,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:Wa(2739,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:Wa(2740,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:Wa(2741,1,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:Wa(2742,1,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:Wa(2743,1,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:Wa(2744,1,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:Wa(2745,1,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:Wa(2746,1,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:Wa(2747,1,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_0_is_enabled:Wa(2748,1,"Cannot_access_ambient_const_enums_when_0_is_enabled_2748","Cannot access ambient const enums when '{0}' is enabled."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:Wa(2749,1,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:Wa(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:Wa(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:Wa(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:Wa(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:Wa(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:Wa(2755,1,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:Wa(2756,1,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:Wa(2757,1,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:Wa(2758,1,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:Wa(2759,1,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:Wa(2760,1,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:Wa(2761,1,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:Wa(2762,1,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:Wa(2763,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:Wa(2764,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:Wa(2765,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:Wa(2766,1,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:Wa(2767,1,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:Wa(2768,1,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:Wa(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:Wa(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:Wa(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:Wa(2772,1,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:Wa(2773,1,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:Wa(2774,1,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:Wa(2775,1,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:Wa(2776,1,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:Wa(2777,1,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:Wa(2778,1,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:Wa(2779,1,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:Wa(2780,1,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:Wa(2781,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:Wa(2782,3,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:Wa(2783,1,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:Wa(2784,1,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:Wa(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:Wa(2786,1,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:Wa(2787,1,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:Wa(2788,1,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:Wa(2789,1,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:Wa(2790,1,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:Wa(2791,1,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:Wa(2792,1,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:Wa(2793,1,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:Wa(2794,1,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:Wa(2795,1,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:Wa(2796,1,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:Wa(2797,1,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:Wa(2798,1,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:Wa(2799,1,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:Wa(2800,1,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:Wa(2801,1,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:Wa(2802,1,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:Wa(2803,1,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:Wa(2804,1,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:Wa(2806,1,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:Wa(2807,1,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:Wa(2808,1,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses:Wa(2809,1,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:Wa(2810,1,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:Wa(2811,1,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:Wa(2812,1,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:Wa(2813,1,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:Wa(2814,1,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:Wa(2815,1,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:Wa(2816,1,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:Wa(2817,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:Wa(2818,1,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:Wa(2819,1,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:Wa(2820,1,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:Wa(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2821","Import assertions are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:Wa(2822,1,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:Wa(2823,1,"Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2823","Import attributes are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),Cannot_find_namespace_0_Did_you_mean_1:Wa(2833,1,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:Wa(2834,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:Wa(2835,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:Wa(2836,1,"Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836","Import assertions are not allowed on statements that compile to CommonJS 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:Wa(2837,1,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:Wa(2838,1,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:Wa(2839,1,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types:Wa(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840","An interface cannot extend a primitive type like '{0}'. It can only extend other named object types."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:Wa(2842,1,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:Wa(2843,1,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:Wa(2844,1,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:Wa(2845,1,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead:Wa(2846,1,"A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846","A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression:Wa(2848,1,"The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848","The right-hand side of an 'instanceof' expression must not be an instantiation expression."),Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1:Wa(2849,1,"Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849","Target signature provides too few arguments. Expected {0} or more, but got {1}."),The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined:Wa(2850,1,"The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850","The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined:Wa(2851,1,"The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851","The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:Wa(2852,1,"await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852","'await using' statements are only allowed within async functions and at the top levels of modules."),await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:Wa(2853,1,"await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853","'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:Wa(2854,1,"Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854","Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super:Wa(2855,1,"Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855","Class field '{0}' defined by the parent class is not accessible in the child class via super."),Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:Wa(2856,1,"Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856","Import attributes are not allowed on statements that compile to CommonJS 'require' calls."),Import_attributes_cannot_be_used_with_type_only_imports_or_exports:Wa(2857,1,"Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857","Import attributes cannot be used with type-only imports or exports."),Import_attribute_values_must_be_string_literal_expressions:Wa(2858,1,"Import_attribute_values_must_be_string_literal_expressions_2858","Import attribute values must be string literal expressions."),Excessive_complexity_comparing_types_0_and_1:Wa(2859,1,"Excessive_complexity_comparing_types_0_and_1_2859","Excessive complexity comparing types '{0}' and '{1}'."),The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method:Wa(2860,1,"The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860","The left-hand side of an 'instanceof' expression must be assignable to the first argument of the right-hand side's '[Symbol.hasInstance]' method."),An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression:Wa(2861,1,"An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861","An object's '[Symbol.hasInstance]' method must return a boolean value for it to be used on the right-hand side of an 'instanceof' expression."),Type_0_is_generic_and_can_only_be_indexed_for_reading:Wa(2862,1,"Type_0_is_generic_and_can_only_be_indexed_for_reading_2862","Type '{0}' is generic and can only be indexed for reading."),A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values:Wa(2863,1,"A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863","A class cannot extend a primitive type like '{0}'. Classes can only extend constructable values."),A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types:Wa(2864,1,"A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864","A class cannot implement a primitive type like '{0}'. It can only implement other named object types."),Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:Wa(2865,1,"Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865","Import '{0}' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled."),Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:Wa(2866,1,"Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866","Import '{0}' conflicts with global value used in this file, so must be declared with a type-only import when 'isolatedModules' is enabled."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun:Wa(2867,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_and_then_add_bun_to_the_types_field_in_your_tsconfig:Wa(2868,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2868","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun` and then add 'bun' to the types field in your tsconfig."),Import_declaration_0_is_using_private_name_1:Wa(4e3,1,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:Wa(4002,1,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:Wa(4004,1,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:Wa(4006,1,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:Wa(4008,1,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:Wa(4010,1,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:Wa(4012,1,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:Wa(4014,1,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:Wa(4016,1,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:Wa(4019,1,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:Wa(4020,1,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:Wa(4021,1,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:Wa(4022,1,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Wa(4023,1,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:Wa(4024,1,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:Wa(4025,1,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Wa(4026,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:Wa(4027,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:Wa(4028,1,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Wa(4029,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:Wa(4030,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:Wa(4031,1,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:Wa(4032,1,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:Wa(4033,1,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:Wa(4034,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:Wa(4035,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:Wa(4036,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:Wa(4037,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Wa(4038,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:Wa(4039,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:Wa(4040,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Wa(4041,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:Wa(4042,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:Wa(4043,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:Wa(4044,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:Wa(4045,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:Wa(4046,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:Wa(4047,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:Wa(4048,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:Wa(4049,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:Wa(4050,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:Wa(4051,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:Wa(4052,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:Wa(4053,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:Wa(4054,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:Wa(4055,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:Wa(4056,1,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:Wa(4057,1,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:Wa(4058,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:Wa(4059,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:Wa(4060,1,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Wa(4061,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:Wa(4062,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:Wa(4063,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:Wa(4064,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:Wa(4065,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:Wa(4066,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:Wa(4067,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Wa(4068,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:Wa(4069,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:Wa(4070,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Wa(4071,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:Wa(4072,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:Wa(4073,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:Wa(4074,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:Wa(4075,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Wa(4076,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:Wa(4077,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:Wa(4078,1,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:Wa(4081,1,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:Wa(4082,1,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:Wa(4083,1,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:Wa(4084,1,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1:Wa(4085,1,"Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085","Extends clause for inferred type '{0}' has or is using private name '{1}'."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:Wa(4090,1,"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090","Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:Wa(4091,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:Wa(4092,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_class_expression_may_not_be_private_or_protected:Wa(4094,1,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Wa(4095,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:Wa(4096,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:Wa(4097,1,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Wa(4098,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:Wa(4099,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:Wa(4100,1,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:Wa(4101,1,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:Wa(4102,1,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:Wa(4103,1,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:Wa(4104,1,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:Wa(4105,1,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:Wa(4106,1,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:Wa(4107,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Wa(4108,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:Wa(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:Wa(4110,1,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:Wa(4111,1,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:Wa(4112,1,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:Wa(4113,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:Wa(4114,1,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:Wa(4115,1,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:Wa(4116,1,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:Wa(4117,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:Wa(4118,1,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:Wa(4119,1,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:Wa(4120,1,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:Wa(4121,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:Wa(4122,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:Wa(4123,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:Wa(4124,1,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given:Wa(4125,1,"Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125","Each declaration of '{0}.{1}' differs in its value, where '{2}' was expected but '{3}' was given."),One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value:Wa(4126,1,"One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126","One value of '{0}.{1}' is the string '{2}', and the other is assumed to be an unknown numeric value."),The_current_host_does_not_support_the_0_option:Wa(5001,1,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:Wa(5009,1,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:Wa(5010,1,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:Wa(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:Wa(5014,1,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:Wa(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:Wa(5024,1,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:Wa(5025,1,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:Wa(5033,1,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:Wa(5042,1,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:Wa(5047,1,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_cannot_be_specified_when_option_target_is_ES3:Wa(5048,1,"Option_0_cannot_be_specified_when_option_target_is_ES3_5048","Option '{0}' cannot be specified when option 'target' is 'ES3'."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:Wa(5051,1,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:Wa(5052,1,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:Wa(5053,1,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:Wa(5054,1,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:Wa(5055,1,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:Wa(5056,1,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:Wa(5057,1,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:Wa(5058,1,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:Wa(5059,1,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:Wa(5061,1,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:Wa(5062,1,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:Wa(5063,1,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:Wa(5064,1,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:Wa(5065,1,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:Wa(5066,1,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:Wa(5067,1,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:Wa(5068,1,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:Wa(5069,1,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic:Wa(5070,1,"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070","Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd:Wa(5071,1,"Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071","Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'."),Unknown_build_option_0:Wa(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:Wa(5073,1,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:Wa(5074,1,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:Wa(5075,1,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:Wa(5076,1,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:Wa(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:Wa(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:Wa(5079,1,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:Wa(5080,1,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:Wa(5081,1,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:Wa(5082,1,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:Wa(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:Wa(5085,1,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:Wa(5086,1,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:Wa(5087,1,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:Wa(5088,1,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:Wa(5089,1,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:Wa(5090,1,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled:Wa(5091,1,"Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled."),The_root_value_of_a_0_file_must_be_an_object:Wa(5092,1,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:Wa(5093,1,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:Wa(5094,1,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later:Wa(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'preserve' or to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:Wa(5096,1,"Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096","Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:Wa(5097,1,"An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097","An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler:Wa(5098,1,"Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098","Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error:Wa(5101,1,"Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101","Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '\"ignoreDeprecations\": \"{2}\"' to silence this error."),Option_0_has_been_removed_Please_remove_it_from_your_configuration:Wa(5102,1,"Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102","Option '{0}' has been removed. Please remove it from your configuration."),Invalid_value_for_ignoreDeprecations:Wa(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:Wa(5104,1,"Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104","Option '{0}' is redundant and cannot be specified with option '{1}'."),Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System:Wa(5105,1,"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105","Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'."),Use_0_instead:Wa(5106,3,"Use_0_instead_5106","Use '{0}' instead."),Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error:Wa(5107,1,"Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107","Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '\"ignoreDeprecations\": \"{3}\"' to silence this error."),Option_0_1_has_been_removed_Please_remove_it_from_your_configuration:Wa(5108,1,"Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108","Option '{0}={1}' has been removed. Please remove it from your configuration."),Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1:Wa(5109,1,"Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109","Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."),Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1:Wa(5110,1,"Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110","Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:Wa(6e3,3,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:Wa(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:Wa(6002,3,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:Wa(6004,3,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:Wa(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:Wa(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:Wa(6007,3,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:Wa(6008,3,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:Wa(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:Wa(6010,3,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:Wa(6011,3,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:Wa(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:Wa(6013,3,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:Wa(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:Wa(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:Wa(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:Wa(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:Wa(6019,3,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:Wa(6020,3,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:Wa(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:Wa(6024,3,"options_6024","options"),file:Wa(6025,3,"file_6025","file"),Examples_Colon_0:Wa(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:Wa(6027,3,"Options_Colon_6027","Options:"),Version_0:Wa(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:Wa(6030,3,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:Wa(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:Wa(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:Wa(6034,3,"KIND_6034","KIND"),FILE:Wa(6035,3,"FILE_6035","FILE"),VERSION:Wa(6036,3,"VERSION_6036","VERSION"),LOCATION:Wa(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:Wa(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:Wa(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:Wa(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:Wa(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:Wa(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:Wa(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:Wa(6045,1,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:Wa(6046,1,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:Wa(6048,1,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form <language> or <language>-<territory>. For example '{0}' or '{1}'."),Unable_to_open_file_0:Wa(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:Wa(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:Wa(6052,3,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:Wa(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:Wa(6054,1,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:Wa(6055,3,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:Wa(6056,3,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:Wa(6058,3,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:Wa(6059,1,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:Wa(6060,3,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:Wa(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:Wa(6064,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:Wa(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:Wa(6066,3,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:Wa(6070,3,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:Wa(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:Wa(6072,3,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:Wa(6073,3,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:Wa(6074,3,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:Wa(6075,3,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:Wa(6076,3,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:Wa(6077,3,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:Wa(6078,3,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:Wa(6079,3,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:Wa(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),Only_amd_and_system_modules_are_supported_alongside_0:Wa(6082,1,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:Wa(6083,3,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:Wa(6084,3,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:Wa(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:Wa(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:Wa(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:Wa(6088,3,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:Wa(6089,3,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:Wa(6090,3,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:Wa(6091,3,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:Wa(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:Wa(6093,3,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:Wa(6094,3,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1:Wa(6095,3,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095","Loading module as file / folder, candidate module location '{0}', target file types: {1}."),File_0_does_not_exist:Wa(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:Wa(6097,3,"File_0_exists_use_it_as_a_name_resolution_result_6097","File '{0}' exists - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_types_Colon_1:Wa(6098,3,"Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098","Loading module '{0}' from 'node_modules' folder, target file types: {1}."),Found_package_json_at_0:Wa(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:Wa(6100,3,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:Wa(6101,3,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:Wa(6102,3,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:Wa(6104,3,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:Wa(6105,3,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:Wa(6106,3,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:Wa(6107,3,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:Wa(6108,3,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:Wa(6109,3,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:Wa(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:Wa(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:Wa(6112,3,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:Wa(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:Wa(6114,1,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:Wa(6115,3,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:Wa(6116,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:Wa(6119,3,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:Wa(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:Wa(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:Wa(6122,3,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:Wa(6123,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:Wa(6124,3,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:Wa(6125,3,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:Wa(6126,3,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:Wa(6127,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:Wa(6128,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:Wa(6130,3,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:Wa(6131,1,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:Wa(6132,3,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:Wa(6133,1,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:Wa(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:Wa(6135,3,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:Wa(6136,3,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:Wa(6137,1,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:Wa(6138,1,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:Wa(6139,3,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:Wa(6140,1,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:Wa(6141,3,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:Wa(6142,1,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:Wa(6144,3,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:Wa(6145,3,"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145","Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:Wa(6146,3,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:Wa(6147,3,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:Wa(6148,3,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:Wa(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:Wa(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:Wa(6151,3,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:Wa(6152,3,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:Wa(6153,3,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:Wa(6154,3,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:Wa(6155,3,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:Wa(6156,3,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:Wa(6157,3,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:Wa(6158,3,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:Wa(6159,3,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:Wa(6160,3,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:Wa(6161,3,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:Wa(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:Wa(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1:Wa(6164,3,"Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164","Skipping module '{0}' that looks like an absolute URI, target file types: {1}."),Do_not_truncate_error_messages:Wa(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:Wa(6166,3,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:Wa(6167,3,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:Wa(6168,3,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:Wa(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:Wa(6170,3,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:Wa(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:Wa(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."),Enable_all_strict_type_checking_options:Wa(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:Wa(6182,3,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:Wa(6183,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:Wa(6184,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:Wa(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:Wa(6187,3,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:Wa(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:Wa(6189,1,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:Wa(6191,3,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:Wa(6192,1,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:Wa(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:Wa(6194,3,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:Wa(6195,3,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:Wa(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:Wa(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:Wa(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:Wa(6199,1,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:Wa(6200,1,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:Wa(6201,3,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:Wa(6202,1,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:Wa(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:Wa(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:Wa(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:Wa(6206,3,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:Wa(6207,3,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:Wa(6208,3,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:Wa(6209,3,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:Wa(6210,3,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:Wa(6211,3,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:Wa(6212,3,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:Wa(6213,3,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:Wa(6214,3,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:Wa(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:Wa(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:Wa(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:Wa(6218,3,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:Wa(6219,3,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:Wa(6220,3,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:Wa(6221,3,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:Wa(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:Wa(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:Wa(6224,3,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:Wa(6225,3,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:Wa(6226,3,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:Wa(6227,3,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:Wa(6229,1,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:Wa(6230,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:Wa(6231,1,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:Wa(6232,1,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:Wa(6233,1,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:Wa(6234,1,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:Wa(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:Wa(6236,1,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:Wa(6237,3,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:Wa(6238,1,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:Wa(6239,3,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:Wa(6240,3,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:Wa(6241,3,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:Wa(6242,3,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:Wa(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:Wa(6244,3,"Modules_6244","Modules"),File_Management:Wa(6245,3,"File_Management_6245","File Management"),Emit:Wa(6246,3,"Emit_6246","Emit"),JavaScript_Support:Wa(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:Wa(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:Wa(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:Wa(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:Wa(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:Wa(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:Wa(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:Wa(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:Wa(6255,3,"Projects_6255","Projects"),Output_Formatting:Wa(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:Wa(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:Wa(6258,1,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_0:Wa(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:Wa(6260,3,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:Wa(6261,3,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),File_name_0_has_a_1_extension_looking_up_2_instead:Wa(6262,3,"File_name_0_has_a_1_extension_looking_up_2_instead_6262","File name '{0}' has a '{1}' extension - looking up '{2}' instead."),Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set:Wa(6263,1,"Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263","Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set."),Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present:Wa(6264,3,"Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264","Enable importing files with any extension, provided a declaration file is present."),Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder:Wa(6265,3,"Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265","Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder."),Option_0_can_only_be_specified_on_command_line:Wa(6266,1,"Option_0_can_only_be_specified_on_command_line_6266","Option '{0}' can only be specified on command line."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:Wa(6270,3,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:Wa(6271,3,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:Wa(6272,3,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:Wa(6273,3,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:Wa(6274,3,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:Wa(6275,3,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:Wa(6276,3,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update:Wa(6277,3,"Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277","Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings:Wa(6278,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278","There are types at '{0}', but this result could not be resolved when respecting package.json \"exports\". The '{1}' library may need to update its package.json or typings."),Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update:Wa(6279,3,"Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279","Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler:Wa(6280,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280","There are types at '{0}', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'."),Enable_project_compilation:Wa(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:Wa(6304,1,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:Wa(6305,1,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:Wa(6306,1,"Referenced_project_0_must_have_setting_composite_Colon_true_6306","Referenced project '{0}' must have setting \"composite\": true."),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:Wa(6307,1,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Cannot_prepend_project_0_because_it_does_not_have_outFile_set:Wa(6308,1,"Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308","Cannot prepend project '{0}' because it does not have 'outFile' set"),Output_file_0_from_project_1_does_not_exist:Wa(6309,1,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),Referenced_project_0_may_not_disable_emit:Wa(6310,1,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:Wa(6350,3,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:Wa(6351,3,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:Wa(6352,3,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:Wa(6353,3,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:Wa(6354,3,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:Wa(6355,3,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:Wa(6356,3,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:Wa(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:Wa(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:Wa(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:Wa(6361,3,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:Wa(6362,3,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:Wa(6363,3,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:Wa(6364,3,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:Wa(6365,3,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:Wa(6367,3,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:Wa(6369,1,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:Wa(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:Wa(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed:Wa(6372,3,"Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372","Project '{0}' is out of date because output of its dependency '{1}' has changed"),Updating_output_of_project_0:Wa(6373,3,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:Wa(6374,3,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),A_non_dry_build_would_update_output_of_project_0:Wa(6375,3,"A_non_dry_build_would_update_output_of_project_0_6375","A non-dry build would update output of project '{0}'"),Cannot_update_output_of_project_0_because_there_was_error_reading_file_1:Wa(6376,3,"Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376","Cannot update output of project '{0}' because there was error reading file '{1}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:Wa(6377,1,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Composite_projects_may_not_disable_incremental_compilation:Wa(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:Wa(6380,3,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:Wa(6381,3,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:Wa(6382,3,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:Wa(6383,3,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:Wa(6384,3,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:Wa(6385,2,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:Wa(6386,3,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:Wa(6387,2,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:Wa(6388,3,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:Wa(6389,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:Wa(6390,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:Wa(6391,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:Wa(6392,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:Wa(6393,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:Wa(6394,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:Wa(6395,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:Wa(6396,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:Wa(6397,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:Wa(6398,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:Wa(6399,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:Wa(6400,3,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:Wa(6401,3,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:Wa(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:Wa(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:Wa(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:Wa(6405,3,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions:Wa(6406,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406","Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions"),Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set:Wa(6407,3,"Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407","Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set."),Use_the_package_json_exports_field_when_resolving_package_imports:Wa(6408,3,"Use_the_package_json_exports_field_when_resolving_package_imports_6408","Use the package.json 'exports' field when resolving package imports."),Use_the_package_json_imports_field_when_resolving_imports:Wa(6409,3,"Use_the_package_json_imports_field_when_resolving_imports_6409","Use the package.json 'imports' field when resolving imports."),Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports:Wa(6410,3,"Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410","Conditions to set in addition to the resolver-specific defaults when resolving imports."),true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false:Wa(6411,3,"true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411","`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more:Wa(6412,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412","Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more."),Entering_conditional_exports:Wa(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:Wa(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:Wa(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:Wa(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:Wa(6417,3,"Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417","Searching all ancestor node_modules directories for preferred extensions: {0}."),Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0:Wa(6418,3,"Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418","Searching all ancestor node_modules directories for fallback extensions: {0}."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:Wa(6500,3,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:Wa(6501,3,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:Wa(6502,3,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:Wa(6503,3,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:Wa(6504,1,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:Wa(6505,3,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:Wa(6506,3,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:Wa(6600,3,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:Wa(6601,3,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:Wa(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:Wa(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:Wa(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:Wa(6605,3,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:Wa(6606,3,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:Wa(6607,3,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:Wa(6608,3,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:Wa(6609,3,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:Wa(6611,3,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:Wa(6612,3,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:Wa(6613,3,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:Wa(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:Wa(6615,3,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:Wa(6616,3,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:Wa(6617,3,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:Wa(6618,3,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:Wa(6619,3,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:Wa(6620,3,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:Wa(6621,3,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:Wa(6622,3,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:Wa(6623,3,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:Wa(6624,3,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:Wa(6625,3,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:Wa(6626,3,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:Wa(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:Wa(6628,3,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:Wa(6629,3,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_legacy_experimental_decorators:Wa(6630,3,"Enable_experimental_support_for_legacy_experimental_decorators_6630","Enable experimental support for legacy experimental decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:Wa(6631,3,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:Wa(6632,3,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:Wa(6633,3,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:Wa(6634,3,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:Wa(6635,3,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:Wa(6636,3,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:Wa(6637,3,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:Wa(6638,3,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:Wa(6639,3,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:Wa(6641,3,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:Wa(6642,3,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:Wa(6643,3,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:Wa(6644,3,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:Wa(6645,3,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:Wa(6646,3,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:Wa(6647,3,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:Wa(6648,3,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:Wa(6649,3,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:Wa(6650,3,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:Wa(6651,3,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:Wa(6652,3,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:Wa(6653,3,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:Wa(6654,3,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:Wa(6655,3,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:Wa(6656,3,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:Wa(6657,3,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:Wa(6658,3,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:Wa(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:Wa(6660,3,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:Wa(6661,3,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:Wa(6662,3,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:Wa(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:Wa(6664,3,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:Wa(6665,3,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:Wa(6666,3,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:Wa(6667,3,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:Wa(6668,3,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:Wa(6669,3,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:Wa(6670,3,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:Wa(6671,3,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:Wa(6672,3,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:Wa(6673,3,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:Wa(6674,3,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:Wa(6675,3,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:Wa(6676,3,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:Wa(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:Wa(6678,3,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:Wa(6679,3,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:Wa(6680,3,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:Wa(6681,3,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:Wa(6682,3,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:Wa(6683,3,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:Wa(6684,3,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:Wa(6685,3,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:Wa(6686,3,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:Wa(6687,3,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:Wa(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:Wa(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:Wa(6690,3,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:Wa(6691,3,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:Wa(6692,3,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:Wa(6693,3,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:Wa(6694,3,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:Wa(6695,3,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:Wa(6697,3,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:Wa(6698,3,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:Wa(6699,3,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:Wa(6700,3,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:Wa(6701,3,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:Wa(6702,3,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:Wa(6703,3,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:Wa(6704,3,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:Wa(6705,3,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:Wa(6706,3,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:Wa(6707,3,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:Wa(6709,3,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:Wa(6710,3,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:Wa(6711,3,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:Wa(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:Wa(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:Wa(6714,3,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:Wa(6715,3,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:Wa(6717,3,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:Wa(6718,3,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Default_catch_clause_variables_as_unknown_instead_of_any:Wa(6803,3,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting:Wa(6804,3,"Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804","Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),one_of_Colon:Wa(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:Wa(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:Wa(6902,3,"type_Colon_6902","type:"),default_Colon:Wa(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:Wa(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:Wa(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:Wa(6906,3,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:Wa(6907,3,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:Wa(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:Wa(6909,3,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:Wa(69010,3,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:Wa(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:Wa(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:Wa(6913,3,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:Wa(6914,3,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:Wa(6915,3,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:Wa(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:Wa(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:Wa(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:Wa(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:Wa(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:Wa(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:Wa(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:Wa(6923,3,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:Wa(6924,3,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:Wa(6925,3,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:Wa(6926,3,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:Wa(6927,3,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:Wa(6928,3,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:Wa(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:Wa(6930,3,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:Wa(6931,1,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:Wa(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:Wa(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:Wa(7008,1,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:Wa(7009,1,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:Wa(7010,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:Wa(7011,1,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation:Wa(7012,1,"This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012","This overload implicitly returns the type '{0}' because it lacks a return type annotation."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:Wa(7013,1,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:Wa(7014,1,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:Wa(7015,1,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:Wa(7016,1,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:Wa(7017,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:Wa(7018,1,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:Wa(7019,1,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:Wa(7020,1,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:Wa(7022,1,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:Wa(7023,1,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:Wa(7024,1,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:Wa(7025,1,"Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025","Generator implicitly has yield type '{0}' because it does not yield any values. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:Wa(7026,1,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:Wa(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:Wa(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:Wa(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:Wa(7030,1,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:Wa(7031,1,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:Wa(7032,1,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:Wa(7033,1,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:Wa(7034,1,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:Wa(7035,1,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:Wa(7036,1,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:Wa(7037,3,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:Wa(7038,3,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:Wa(7039,1,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:Wa(7040,1,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:Wa(7041,1,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:Wa(7042,1,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:Wa(7043,2,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:Wa(7044,2,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:Wa(7045,2,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:Wa(7046,2,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:Wa(7047,2,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:Wa(7048,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:Wa(7049,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:Wa(7050,2,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:Wa(7051,1,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:Wa(7052,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:Wa(7053,1,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:Wa(7054,1,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:Wa(7055,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:Wa(7056,1,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:Wa(7057,1,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:Wa(7058,1,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:Wa(7059,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:Wa(7060,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:Wa(7061,1,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:Wa(8e3,1,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:Wa(8001,1,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:Wa(8002,1,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:Wa(8003,1,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:Wa(8004,1,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:Wa(8005,1,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:Wa(8006,1,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:Wa(8008,1,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:Wa(8009,1,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:Wa(8010,1,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:Wa(8011,1,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:Wa(8012,1,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:Wa(8013,1,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:Wa(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Signature_declarations_can_only_be_used_in_TypeScript_files:Wa(8017,1,"Signature_declarations_can_only_be_used_in_TypeScript_files_8017","Signature declarations can only be used in TypeScript files."),Report_errors_in_js_files:Wa(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:Wa(8020,1,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:Wa(8021,1,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:Wa(8022,1,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:Wa(8023,1,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:Wa(8024,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:Wa(8025,1,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:Wa(8026,1,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:Wa(8027,1,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:Wa(8028,1,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:Wa(8029,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:Wa(8030,1,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:Wa(8031,1,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:Wa(8032,1,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:Wa(8033,1,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:Wa(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:Wa(8035,1,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:Wa(8036,1,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:Wa(8037,1,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export:Wa(8038,1,"Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038","Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag:Wa(8039,1,"A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039","A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag"),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:Wa(9005,1,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:Wa(9006,1,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:Wa(17e3,1,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:Wa(17001,1,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:Wa(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:Wa(17004,1,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:Wa(17005,1,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:Wa(17006,1,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:Wa(17007,1,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:Wa(17008,1,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:Wa(17009,1,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:Wa(17010,1,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:Wa(17011,1,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:Wa(17012,1,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:Wa(17013,1,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:Wa(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:Wa(17015,1,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:Wa(17016,1,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:Wa(17017,1,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:Wa(17018,1,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:Wa(17019,1,"_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019","'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:Wa(17020,1,"_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020","'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),Unicode_escape_sequence_cannot_appear_here:Wa(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),Circularity_detected_while_resolving_configuration_Colon_0:Wa(18e3,1,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:Wa(18002,1,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:Wa(18003,1,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:Wa(80001,2,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:Wa(80002,2,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:Wa(80003,2,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:Wa(80004,2,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:Wa(80005,2,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:Wa(80006,2,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:Wa(80007,2,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:Wa(80008,2,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),JSDoc_typedef_may_be_converted_to_TypeScript_type:Wa(80009,2,"JSDoc_typedef_may_be_converted_to_TypeScript_type_80009","JSDoc typedef may be converted to TypeScript type."),JSDoc_typedefs_may_be_converted_to_TypeScript_types:Wa(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:Wa(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:Wa(90002,3,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:Wa(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:Wa(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:Wa(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:Wa(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:Wa(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:Wa(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:Wa(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:Wa(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:Wa(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:Wa(90013,3,"Import_0_from_1_90013","Import '{0}' from \"{1}\""),Change_0_to_1:Wa(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:Wa(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:Wa(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:Wa(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:Wa(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:Wa(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:Wa(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:Wa(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:Wa(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:Wa(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:Wa(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:Wa(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:Wa(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:Wa(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:Wa(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:Wa(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:Wa(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:Wa(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:Wa(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:Wa(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:Wa(90037,3,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:Wa(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:Wa(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:Wa(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:Wa(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:Wa(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:Wa(90055,3,"Remove_type_from_import_declaration_from_0_90055","Remove 'type' from import declaration from \"{0}\""),Remove_type_from_import_of_0_from_1:Wa(90056,3,"Remove_type_from_import_of_0_from_1_90056","Remove 'type' from import of '{0}' from \"{1}\""),Add_import_from_0:Wa(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:Wa(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:Wa(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:Wa(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Convert_function_to_an_ES2015_class:Wa(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:Wa(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:Wa(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:Wa(95005,3,"Extract_function_95005","Extract function"),Extract_constant:Wa(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:Wa(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:Wa(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:Wa(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:Wa(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:Wa(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:Wa(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:Wa(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:Wa(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:Wa(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:Wa(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:Wa(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:Wa(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:Wa(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:Wa(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:Wa(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:Wa(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:Wa(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:Wa(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:Wa(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:Wa(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:Wa(95028,3,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:Wa(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:Wa(95030,3,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:Wa(95031,3,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:Wa(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:Wa(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:Wa(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:Wa(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:Wa(95036,3,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:Wa(95037,3,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:Wa(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:Wa(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:Wa(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:Wa(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:Wa(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:Wa(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:Wa(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:Wa(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:Wa(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:Wa(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:Wa(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:Wa(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:Wa(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:Wa(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:Wa(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:Wa(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:Wa(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:Wa(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:Wa(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:Wa(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:Wa(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:Wa(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:Wa(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:Wa(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:Wa(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:Wa(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:Wa(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:Wa(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:Wa(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:Wa(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:Wa(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:Wa(95069,3,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:Wa(95070,3,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:Wa(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:Wa(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:Wa(95073,3,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:Wa(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:Wa(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:Wa(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:Wa(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:Wa(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:Wa(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:Wa(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:Wa(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:Wa(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:Wa(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:Wa(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:Wa(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:Wa(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:Wa(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:Wa(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:Wa(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:Wa(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:Wa(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:Wa(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:Wa(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:Wa(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:Wa(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:Wa(95097,3,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:Wa(95098,3,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:Wa(95099,3,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:Wa(95100,3,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:Wa(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:Wa(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:Wa(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:Wa(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:Wa(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:Wa(95108,3,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:Wa(95109,3,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:Wa(95110,3,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:Wa(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:Wa(95112,3,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:Wa(95113,3,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:Wa(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:Wa(95115,3,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:Wa(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:Wa(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:Wa(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:Wa(95119,3,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:Wa(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:Wa(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:Wa(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:Wa(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:Wa(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:Wa(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:Wa(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:Wa(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:Wa(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:Wa(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:Wa(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:Wa(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:Wa(95132,3,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:Wa(95133,3,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:Wa(95134,3,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:Wa(95135,3,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:Wa(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:Wa(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:Wa(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:Wa(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:Wa(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:Wa(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:Wa(95142,3,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:Wa(95143,3,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:Wa(95144,3,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:Wa(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:Wa(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:Wa(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:Wa(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:Wa(95149,3,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:Wa(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:Wa(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:Wa(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:Wa(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenations_and_string_literals:Wa(95154,3,"Can_only_convert_string_concatenations_and_string_literals_95154","Can only convert string concatenations and string literals"),Selection_is_not_a_valid_statement_or_statements:Wa(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:Wa(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:Wa(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:Wa(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:Wa(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:Wa(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:Wa(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:Wa(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:Wa(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:Wa(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:Wa(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:Wa(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:Wa(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:Wa(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:Wa(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:Wa(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:Wa(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:Wa(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:Wa(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:Wa(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:Wa(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:Wa(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:Wa(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:Wa(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:Wa(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:Wa(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:Wa(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:Wa(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:Wa(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:Wa(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:Wa(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:Wa(95186,3,"Variables_with_multiple_declarations_cannot_be_inlined_95186","Variables with multiple declarations cannot be inlined."),Add_missing_comma_for_object_member_completion_0:Wa(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),Add_missing_parameter_to_0:Wa(95188,3,"Add_missing_parameter_to_0_95188","Add missing parameter to '{0}'"),Add_missing_parameters_to_0:Wa(95189,3,"Add_missing_parameters_to_0_95189","Add missing parameters to '{0}'"),Add_all_missing_parameters:Wa(95190,3,"Add_all_missing_parameters_95190","Add all missing parameters"),Add_optional_parameter_to_0:Wa(95191,3,"Add_optional_parameter_to_0_95191","Add optional parameter to '{0}'"),Add_optional_parameters_to_0:Wa(95192,3,"Add_optional_parameters_to_0_95192","Add optional parameters to '{0}'"),Add_all_optional_parameters:Wa(95193,3,"Add_all_optional_parameters_95193","Add all optional parameters"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:Wa(18004,1,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:Wa(18006,1,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:Wa(18007,1,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:Wa(18009,1,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:Wa(18010,1,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:Wa(18011,1,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:Wa(18012,1,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:Wa(18013,1,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:Wa(18014,1,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:Wa(18015,1,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:Wa(18016,1,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:Wa(18017,1,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:Wa(18018,1,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:Wa(18019,1,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:Wa(18024,1,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:Wa(18026,1,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:Wa(18027,1,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:Wa(18028,1,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:Wa(18029,1,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:Wa(18030,1,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:Wa(18031,1,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:Wa(18032,1,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values:Wa(18033,1,"Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033","Type '{0}' is not assignable to type '{1}' as required for computed enum member values."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:Wa(18034,3,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:Wa(18035,1,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:Wa(18036,1,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),await_expression_cannot_be_used_inside_a_class_static_block:Wa(18037,1,"await_expression_cannot_be_used_inside_a_class_static_block_18037","'await' expression cannot be used inside a class static block."),for_await_loops_cannot_be_used_inside_a_class_static_block:Wa(18038,1,"for_await_loops_cannot_be_used_inside_a_class_static_block_18038","'for await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:Wa(18039,1,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:Wa(18041,1,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:Wa(18042,1,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:Wa(18043,1,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:Wa(18044,3,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:Wa(18045,1,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:Wa(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:Wa(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:Wa(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:Wa(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:Wa(18050,1,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here."),Compiler_option_0_cannot_be_given_an_empty_string:Wa(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string."),Non_abstract_class_0_does_not_implement_all_abstract_members_of_1:Wa(18052,1,"Non_abstract_class_0_does_not_implement_all_abstract_members_of_1_18052","Non-abstract class '{0}' does not implement all abstract members of '{1}'"),Its_type_0_is_not_a_valid_JSX_element_type:Wa(18053,1,"Its_type_0_is_not_a_valid_JSX_element_type_18053","Its type '{0}' is not a valid JSX element type."),await_using_statements_cannot_be_used_inside_a_class_static_block:Wa(18054,1,"await_using_statements_cannot_be_used_inside_a_class_static_block_18054","'await using' statements cannot be used inside a class static block.")}}});function ns(e){return e>=80}function rs(e){return 32===e||ns(e)}function os(e,t){if(e<t[0])return!1;let n,r=0,o=t.length;for(;r+1<o;){if(n=r+(o-r)/2,n-=n%2,t[n]<=e&&e<=t[n+1])return!0;e<t[n]?o=n:r=n+2}return!1}function is(e,t){return os(e,t>=2?Ka:1===t?Ua:ja)}function as(e){return Ya[e]}function ss(e){return Ga.get(e)}function ls(e){const t=[];let n=0,r=0;for(;n<e.length;){const o=e.charCodeAt(n);switch(n++,o){case 13:10===e.charCodeAt(n)&&n++;case 10:t.push(r),r=n;break;default:o>127&&ys(o)&&(t.push(r),r=n)}}return t.push(r),t}function cs(e,t,n,r){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,n,r):ds(us(e),t,n,e.text,r)}function ds(e,t,n,r,o){(t<0||t>=e.length)&&(o?t=t<0?0:t>=e.length?e.length-1:t:In.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${void 0!==r?W(e,ls(r)):"unknown"}`));const i=e[t]+n;return o?i>e[t+1]?e[t+1]:"string"===typeof r&&i>r.length?r.length:i:(t<e.length-1?In.assert(i<e[t+1]):void 0!==r&&In.assert(i<=r.length),i)}function us(e){return e.lineMap||(e.lineMap=ls(e.text))}function ps(e,t){const n=fs(e,t);return{line:n,character:t-e[n]}}function fs(e,t,n){let r=je(e,t,xt,Ft,n);return r<0&&(r=~r-1,In.assert(-1!==r,"position cannot precede the beginning of the file")),r}function ms(e,t,n){if(t===n)return 0;const r=us(e),o=Math.min(t,n),i=o===n,a=i?t:n,s=fs(r,o),l=fs(r,a,s);return i?s-l:l-s}function _s(e,t){return ps(us(e),t)}function hs(e){return gs(e)||ys(e)}function gs(e){return 32===e||9===e||11===e||12===e||160===e||133===e||5760===e||e>=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function ys(e){return 10===e||13===e||8232===e||8233===e}function vs(e){return e>=48&&e<=57}function bs(e){return vs(e)||e>=65&&e<=70||e>=97&&e<=102}function Es(e){return e>=48&&e<=55}function Ss(e,t){const n=e.charCodeAt(t);switch(n){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return 0===t;default:return n>127}}function Ts(e,t,n,r,o){if(_x(t))return t;let i=!1;for(;;){const a=e.charCodeAt(t);switch(a){case 13:10===e.charCodeAt(t+1)&&t++;case 10:if(t++,n)return t;i=!!o;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(r)break;if(47===e.charCodeAt(t+1)){for(t+=2;t<e.length&&!ys(e.charCodeAt(t));)t++;i=!1;continue}if(42===e.charCodeAt(t+1)){for(t+=2;t<e.length;){if(42===e.charCodeAt(t)&&47===e.charCodeAt(t+1)){t+=2;break}t++}i=!1;continue}break;case 60:case 124:case 61:case 62:if(xs(e,t)){t=As(e,t),i=!1;continue}break;case 35:if(0===t&&Is(e,t)){t=Rs(e,t),i=!1;continue}break;case 42:if(i){t++,i=!1;continue}break;default:if(a>127&&hs(a)){t++;continue}}return t}}function xs(e,t){if(In.assert(t>=0),0===t||ys(e.charCodeAt(t-1))){const n=e.charCodeAt(t);if(t+Qa<e.length){for(let r=0;r<Qa;r++)if(e.charCodeAt(t+r)!==n)return!1;return 61===n||32===e.charCodeAt(t+Qa)}}return!1}function As(e,t,n){n&&n(Oa.Merge_conflict_marker_encountered,t,Qa);const r=e.charCodeAt(t),o=e.length;if(60===r||62===r)for(;t<o&&!ys(e.charCodeAt(t));)t++;else for(In.assert(124===r||61===r);t<o;){const n=e.charCodeAt(t);if((61===n||62===n)&&n!==r&&xs(e,t))break;t++}return t}function Is(e,t){return In.assert(0===t),Za.test(e)}function Rs(e,t){return t+=Za.exec(e)[0].length}function Cs(e,t,n,r,o,i,a){let s,l,c,d,u=!1,p=r,f=a;if(0===n){p=!0;const e=Os(t);e&&(n=e.length)}e:for(;n>=0&&n<t.length;){const a=t.charCodeAt(n);switch(a){case 13:10===t.charCodeAt(n+1)&&n++;case 10:if(n++,r)break e;p=!0,u&&(d=!0);continue;case 9:case 11:case 12:case 32:n++;continue;case 47:const m=t.charCodeAt(n+1);let _=!1;if(47===m||42===m){const r=47===m?2:3,a=n;if(n+=2,47===m)for(;n<t.length;){if(ys(t.charCodeAt(n))){_=!0;break}n++}else for(;n<t.length;){if(42===t.charCodeAt(n)&&47===t.charCodeAt(n+1)){n+=2;break}n++}if(p){if(u&&(f=o(s,l,c,d,i,f),!e&&f))return f;s=a,l=n,c=r,d=_,u=!0}continue}break e;default:if(a>127&&hs(a)){u&&ys(a)&&(d=!0),n++;continue}break e}}return u&&(f=o(s,l,c,d,i,f)),f}function Ds(e,t,n,r){return Cs(!1,e,t,!1,n,r)}function Ns(e,t,n,r){return Cs(!1,e,t,!0,n,r)}function Ms(e,t,n,r,o){return Cs(!0,e,t,!1,n,r,o)}function Ls(e,t,n,r,o){return Cs(!0,e,t,!0,n,r,o)}function ks(e,t,n,r,o,i=[]){return i.push({kind:n,pos:e,end:t,hasTrailingNewLine:r}),i}function Ps(e,t){return Ms(e,t,ks,void 0,void 0)}function ws(e,t){return Ls(e,t,ks,void 0,void 0)}function Os(e){const t=Za.exec(e);if(t)return t[0]}function Fs(e,t){return e>=65&&e<=90||e>=97&&e<=122||36===e||95===e||e>127&&is(e,t)}function Ws(e,t,n){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||36===e||95===e||1===n&&(45===e||58===e)||e>127&&function(e,t){return os(e,t>=2?qa:1===t?Ha:Va)}(e,t)}function zs(e,t,n){let r=Gs(e,0);if(!Fs(r,t))return!1;for(let o=js(r);o<e.length;o+=js(r))if(!Ws(r=Gs(e,o),t,n))return!1;return!0}function Bs(e,t,n=0,r,o,i,a){var s,l,c,d,u,p,f,m,_=r,h=0,g=0,y=0;U(_,i,a);var v={getTokenFullStart:()=>c,getStartPos:()=>c,getTokenEnd:()=>s,getTextPos:()=>s,getToken:()=>u,getTokenStart:()=>d,getTokenPos:()=>d,getTokenText:()=>_.substring(d,s),getTokenValue:()=>p,hasUnicodeEscape:()=>0!==(1024&f),hasExtendedUnicodeEscape:()=>0!==(8&f),hasPrecedingLineBreak:()=>0!==(1&f),hasPrecedingJSDocComment:()=>0!==(2&f),isIdentifier:()=>80===u||u>118,isReservedWord:()=>u>=83&&u<=118,isUnterminated:()=>0!==(4&f),getCommentDirectives:()=>m,getNumericLiteralFlags:()=>25584&f,getTokenFlags:()=>f,reScanGreaterToken:function(){if(32===u){if(62===_.charCodeAt(s))return 62===_.charCodeAt(s+1)?61===_.charCodeAt(s+2)?(s+=3,u=73):(s+=2,u=50):61===_.charCodeAt(s+1)?(s+=2,u=72):(s++,u=49);if(61===_.charCodeAt(s))return s++,u=34}return u},reScanAsteriskEqualsToken:function(){return In.assert(67===u,"'reScanAsteriskEqualsToken' should only be called on a '*='"),s=d+1,u=64},reScanSlashToken:function(){if(44===u||69===u){let t=d+1,n=!1,r=!1;for(;;){if(t>=l){f|=4,b(Oa.Unterminated_regular_expression_literal);break}const e=_.charCodeAt(t);if(ys(e)){f|=4,b(Oa.Unterminated_regular_expression_literal);break}if(n)n=!1;else{if(47===e&&!r){t++;break}91===e?r=!0:92===e?n=!0:93===e&&(r=!1)}t++}for(;t<l&&Ws(_.charCodeAt(t),e);)t++;s=t,p=_.substring(d,s),u=14}return u},reScanTemplateToken:function(e){return s=d,u=R(!e)},reScanTemplateHeadOrNoSubstitutionTemplate:function(){return s=d,u=R(!0)},scanJsxIdentifier:function(){if(ns(u)){for(;s<l;){if(45===_.charCodeAt(s)){p+="-",s++;continue}const e=s;if(p+=L(),s===e)break}return k()}return u},scanJsxAttributeValue:G,reScanJsxAttributeValue:function(){return s=d=c,G()},reScanJsxToken:function(e=!0){return s=d=c,u=B(e)},reScanLessThanToken:function(){if(48===u)return s=d+1,u=30;return u},reScanHashToken:function(){if(81===u)return s=d+1,u=63;return u},reScanQuestionToken:function(){return In.assert(61===u,"'reScanQuestionToken' should only be called on a '??'"),s=d+1,u=58},reScanInvalidIdentifier:function(){In.assert(0===u,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),s=d=c,f=0;const e=Gs(_,s),t=W(e,99);if(t)return u=t;return s+=js(e),u},scanJsxToken:B,scanJsDocToken:j,scanJSDocCommentTextToken:function(e){if(c=d=s,f=0,s>=l)return u=1;for(let t=_.charCodeAt(s);s<l&&!ys(t)&&96!==t;t=Gs(_,++s))if(!e){if(123===t)break;if(64===t&&s-1>=0&&gs(_.charCodeAt(s-1))&&!(s+1<l&&hs(_.charCodeAt(s+1))))break}if(s===d)return j();return p=_.substring(d,s),u=82},scan:O,getText:function(){return _},clearCommentDirectives:function(){m=void 0},setText:U,setScriptTarget:function(t){e=t},setLanguageVariant:function(e){n=e},setScriptKind:function(e){g=e},setJSDocParsingMode:function(e){y=e},setOnError:function(e){o=e},resetTokenState:H,setTextPos:H,setInJSDocType:function(e){h+=e?1:-1},tryScan:function(e){return V(e,!1)},lookAhead:function(e){return V(e,!0)},scanRange:function(e,t,n){const r=l,o=s,i=c,a=d,h=u,g=p,y=f,v=m;U(_,e,t);const b=n();return l=r,s=o,c=i,d=a,u=h,p=g,f=y,m=v,b}};return In.isDebugging&&Object.defineProperty(v,"__debugShowCurrentPositionInText",{get:()=>{const e=v.getText();return e.slice(0,v.getTokenFullStart())+"\u2551"+e.slice(v.getTokenFullStart())}}),v;function b(e,t=s,n,r){if(o){const i=s;s=t,o(e,n||0,r),s=i}}function E(){let e=s,t=!1,n=!1,r="";for(;;){const o=_.charCodeAt(s);if(95!==o){if(!vs(o))break;t=!0,n=!1,s++}else f|=512,t?(t=!1,n=!0,r+=_.substring(e,s)):(f|=16384,b(n?Oa.Multiple_consecutive_numeric_separators_are_not_permitted:Oa.Numeric_separators_are_not_allowed_here,s,1)),e=++s}return 95===_.charCodeAt(s-1)&&(f|=16384,b(Oa.Numeric_separators_are_not_allowed_here,s-1,1)),r+_.substring(e,s)}function S(){let e,t,n,r=s;if(48===_.charCodeAt(s))if(s++,95===_.charCodeAt(s))f|=16896,b(Oa.Numeric_separators_are_not_allowed_here,s,1),s--,e=E();else if(function(){const e=s;let t=!0;for(;vs(_.charCodeAt(s));)Es(_.charCodeAt(s))||(t=!1),s++;return p=_.substring(e,s),t}()){if(p){p=""+parseInt(p,8),f|=32;const e=41===u,t=(e?"-":"")+"0o"+(+p).toString(8);return e&&r--,b(Oa.Octal_literals_are_not_allowed_Use_the_syntax_0,r,s-r,t),9}e="0"}else f|=8192,e=""+ +p;else e=E();46===_.charCodeAt(s)&&(s++,t=E());let o,i=s;if(69===_.charCodeAt(s)||101===_.charCodeAt(s)){s++,f|=16,43!==_.charCodeAt(s)&&45!==_.charCodeAt(s)||s++;const e=s,t=E();t?(n=_.substring(i,e)+t,i=s):b(Oa.Digit_expected)}if(512&f?(o=e,t&&(o+="."+t),n&&(o+=n)):o=_.substring(r,i),8192&f)return b(Oa.Decimals_with_leading_zeros_are_not_allowed,r,i-r),p=""+ +o,9;if(void 0!==t||16&f)return T(r,void 0===t&&!!(16&f)),p=""+ +o,9;{p=o;const e=w();return T(r),e}}function T(t,n){if(!Fs(Gs(_,s),e))return;const r=s,{length:o}=L();1===o&&"n"===_[r]?b(n?Oa.A_bigint_literal_cannot_use_exponential_notation:Oa.A_bigint_literal_must_be_an_integer,t,r-t+1):(b(Oa.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,r,o),s=r)}function x(e,t){return A(e,!0,t)}function A(e,t,n){let r=[],o=!1,i=!1;for(;r.length<e||t;){let e=_.charCodeAt(s);if(n&&95===e)f|=512,o?(o=!1,i=!0):b(i?Oa.Multiple_consecutive_numeric_separators_are_not_permitted:Oa.Numeric_separators_are_not_allowed_here,s,1),s++;else{if(o=n,e>=65&&e<=70)e+=32;else if(!(e>=48&&e<=57||e>=97&&e<=102))break;r.push(e),s++,i=!1}}return r.length<e&&(r=[]),95===_.charCodeAt(s-1)&&b(Oa.Numeric_separators_are_not_allowed_here,s-1,1),String.fromCharCode(...r)}function I(e=!1){const t=_.charCodeAt(s);let n="",r=++s;for(;;){if(s>=l){n+=_.substring(r,s),f|=4,b(Oa.Unterminated_string_literal);break}const o=_.charCodeAt(s);if(o===t){n+=_.substring(r,s),s++;break}if(92!==o||e){if((10===o||13===o)&&!e){n+=_.substring(r,s),f|=4,b(Oa.Unterminated_string_literal);break}s++}else n+=_.substring(r,s),n+=C(!0),r=s}return n}function R(e){const t=96===_.charCodeAt(s);let n,r=++s,o="";for(;;){if(s>=l){o+=_.substring(r,s),f|=4,b(Oa.Unterminated_template_literal),n=t?15:18;break}const i=_.charCodeAt(s);if(96===i){o+=_.substring(r,s),s++,n=t?15:18;break}if(36===i&&s+1<l&&123===_.charCodeAt(s+1)){o+=_.substring(r,s),s+=2,n=t?16:17;break}92!==i?13!==i?s++:(o+=_.substring(r,s),++s<l&&10===_.charCodeAt(s)&&s++,o+="\n",r=s):(o+=_.substring(r,s),o+=C(e),r=s)}return In.assert(void 0!==n),p=o,n}function C(e){const t=s;if(++s>=l)return b(Oa.Unexpected_end_of_text),"";const n=_.charCodeAt(s);switch(s++,n){case 48:if(s>=l||!vs(_.charCodeAt(s)))return"\0";case 49:case 50:case 51:s<l&&Es(_.charCodeAt(s))&&s++;case 52:case 53:case 54:case 55:if(s<l&&Es(_.charCodeAt(s))&&s++,f|=2048,e){const e=parseInt(_.substring(t+1,s),8);return b(Oa.Octal_escape_sequences_are_not_allowed_Use_the_syntax_0,t,s-t,"\\x"+e.toString(16).padStart(2,"0")),String.fromCharCode(e)}return _.substring(t,s);case 56:case 57:return f|=2048,e?(b(Oa.Escape_sequence_0_is_not_allowed,t,s-t,_.substring(t,s)),String.fromCharCode(n)):_.substring(t,s);case 98:return"\b";case 116:return"\t";case 110:return"\n";case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:if(s<l&&123===_.charCodeAt(s)){s++;const n=x(1,!1),r=n?parseInt(n,16):-1;return r<0?(f|=2048,e&&b(Oa.Hexadecimal_digit_expected),_.substring(t,s)):r<=1114111?s>=l?(f|=2048,e&&b(Oa.Unexpected_end_of_text),_.substring(t,s)):125!==_.charCodeAt(s)?(f|=2048,e&&b(Oa.Unterminated_Unicode_escape_sequence),_.substring(t,s)):(s++,f|=8,Us(r)):(f|=2048,e&&b(Oa.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),_.substring(t,s))}for(;s<t+6;s++)if(!(s<l&&bs(_.charCodeAt(s))))return f|=2048,e&&b(Oa.Hexadecimal_digit_expected),_.substring(t,s);return f|=1024,String.fromCharCode(parseInt(_.substring(t+2,s),16));case 120:for(;s<t+4;s++)if(!(s<l&&bs(_.charCodeAt(s))))return f|=2048,e&&b(Oa.Hexadecimal_digit_expected),_.substring(t,s);return f|=4096,String.fromCharCode(parseInt(_.substring(t+2,s),16));case 13:s<l&&10===_.charCodeAt(s)&&s++;case 10:case 8232:case 8233:return"";default:return String.fromCharCode(n)}}function D(){const e=x(1,!1),t=e?parseInt(e,16):-1;let n=!1;return t<0?(b(Oa.Hexadecimal_digit_expected),n=!0):t>1114111&&(b(Oa.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),n=!0),s>=l?(b(Oa.Unexpected_end_of_text),n=!0):125===_.charCodeAt(s)?s++:(b(Oa.Unterminated_Unicode_escape_sequence),n=!0),n?"":Us(t)}function N(){if(s+5<l&&117===_.charCodeAt(s+1)){const e=s;s+=2;const t=function(e,t){const n=A(e,!1,t);return n?parseInt(n,16):-1}(4,!1);return s=e,t}return-1}function M(){if(117===Gs(_,s+1)&&123===Gs(_,s+2)){const e=s;s+=3;const t=x(1,!1),n=t?parseInt(t,16):-1;return s=e,n}return-1}function L(){let t="",n=s;for(;s<l;){let r=Gs(_,s);if(Ws(r,e))s+=js(r);else{if(92!==r)break;if(r=M(),r>=0&&Ws(r,e)){s+=3,f|=8,t+=D(),n=s;continue}if(r=N(),!(r>=0&&Ws(r,e)))break;f|=1024,t+=_.substring(n,s),t+=Us(r),n=s+=6}}return t+=_.substring(n,s),t}function k(){const e=p.length;if(e>=2&&e<=12){const e=p.charCodeAt(0);if(e>=97&&e<=122){const e=Ba.get(p);if(void 0!==e)return u=e}}return u=80}function P(e){let t="",n=!1,r=!1;for(;;){const o=_.charCodeAt(s);if(95!==o){if(n=!0,!vs(o)||o-48>=e)break;t+=_[s],s++,r=!1}else f|=512,n?(n=!1,r=!0):b(r?Oa.Multiple_consecutive_numeric_separators_are_not_permitted:Oa.Numeric_separators_are_not_allowed_here,s,1),s++}return 95===_.charCodeAt(s-1)&&b(Oa.Numeric_separators_are_not_allowed_here,s-1,1),t}function w(){if(110===_.charCodeAt(s))return p+="n",384&f&&(p=Nx(p)+"n"),s++,10;{const e=128&f?parseInt(p.slice(2),2):256&f?parseInt(p.slice(2),8):+p;return p=""+e,9}}function O(){c=s,f=0;let r=!1;for(;;){if(d=s,s>=l)return u=1;const o=Gs(_,s);if(0===s){if(_.slice(0,256).includes("\ufffd"))return b(Oa.File_appears_to_be_binary),s=l,u=8;if(35===o&&Is(_,s)){if(s=Rs(_,s),t)continue;return u=6}}switch(o){case 10:case 13:if(f|=1,t){s++;continue}return 13===o&&s+1<l&&10===_.charCodeAt(s+1)?s+=2:s++,u=4;case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8203:case 8239:case 8287:case 12288:case 65279:if(t){s++;continue}for(;s<l&&gs(_.charCodeAt(s));)s++;return u=5;case 33:return 61===_.charCodeAt(s+1)?61===_.charCodeAt(s+2)?(s+=3,u=38):(s+=2,u=36):(s++,u=54);case 34:case 39:return p=I(),u=11;case 96:return u=R(!1);case 37:return 61===_.charCodeAt(s+1)?(s+=2,u=70):(s++,u=45);case 38:return 38===_.charCodeAt(s+1)?61===_.charCodeAt(s+2)?(s+=3,u=77):(s+=2,u=56):61===_.charCodeAt(s+1)?(s+=2,u=74):(s++,u=51);case 40:return s++,u=21;case 41:return s++,u=22;case 42:if(61===_.charCodeAt(s+1))return s+=2,u=67;if(42===_.charCodeAt(s+1))return 61===_.charCodeAt(s+2)?(s+=3,u=68):(s+=2,u=43);if(s++,h&&!r&&1&f){r=!0;continue}return u=42;case 43:return 43===_.charCodeAt(s+1)?(s+=2,u=46):61===_.charCodeAt(s+1)?(s+=2,u=65):(s++,u=40);case 44:return s++,u=28;case 45:return 45===_.charCodeAt(s+1)?(s+=2,u=47):61===_.charCodeAt(s+1)?(s+=2,u=66):(s++,u=41);case 46:return vs(_.charCodeAt(s+1))?(S(),u=9):46===_.charCodeAt(s+1)&&46===_.charCodeAt(s+2)?(s+=3,u=26):(s++,u=25);case 47:if(47===_.charCodeAt(s+1)){for(s+=2;s<l&&!ys(_.charCodeAt(s));)s++;if(m=z(m,_.slice(d,s),Ja,d),t)continue;return u=2}if(42===_.charCodeAt(s+1)){s+=2;const e=42===_.charCodeAt(s)&&47!==_.charCodeAt(s+1);let n=!1,r=d;for(;s<l;){const e=_.charCodeAt(s);if(42===e&&47===_.charCodeAt(s+1)){s+=2,n=!0;break}s++,ys(e)&&(r=s,f|=1)}if(e&&F()&&(f|=2),m=z(m,_.slice(r,s),Xa,r),n||b(Oa.Asterisk_Slash_expected),t)continue;return n||(f|=4),u=3}return 61===_.charCodeAt(s+1)?(s+=2,u=69):(s++,u=44);case 48:if(s+2<l&&(88===_.charCodeAt(s+1)||120===_.charCodeAt(s+1)))return s+=2,(p=x(1,!0))||(b(Oa.Hexadecimal_digit_expected),p="0"),p="0x"+p,f|=64,u=w();if(s+2<l&&(66===_.charCodeAt(s+1)||98===_.charCodeAt(s+1)))return s+=2,(p=P(2))||(b(Oa.Binary_digit_expected),p="0"),p="0b"+p,f|=128,u=w();if(s+2<l&&(79===_.charCodeAt(s+1)||111===_.charCodeAt(s+1)))return s+=2,(p=P(8))||(b(Oa.Octal_digit_expected),p="0"),p="0o"+p,f|=256,u=w();case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return u=S();case 58:return s++,u=59;case 59:return s++,u=27;case 60:if(xs(_,s)){if(s=As(_,s,b),t)continue;return u=7}return 60===_.charCodeAt(s+1)?61===_.charCodeAt(s+2)?(s+=3,u=71):(s+=2,u=48):61===_.charCodeAt(s+1)?(s+=2,u=33):1===n&&47===_.charCodeAt(s+1)&&42!==_.charCodeAt(s+2)?(s+=2,u=31):(s++,u=30);case 61:if(xs(_,s)){if(s=As(_,s,b),t)continue;return u=7}return 61===_.charCodeAt(s+1)?61===_.charCodeAt(s+2)?(s+=3,u=37):(s+=2,u=35):62===_.charCodeAt(s+1)?(s+=2,u=39):(s++,u=64);case 62:if(xs(_,s)){if(s=As(_,s,b),t)continue;return u=7}return s++,u=32;case 63:return 46!==_.charCodeAt(s+1)||vs(_.charCodeAt(s+2))?63===_.charCodeAt(s+1)?61===_.charCodeAt(s+2)?(s+=3,u=78):(s+=2,u=61):(s++,u=58):(s+=2,u=29);case 91:return s++,u=23;case 93:return s++,u=24;case 94:return 61===_.charCodeAt(s+1)?(s+=2,u=79):(s++,u=53);case 123:return s++,u=19;case 124:if(xs(_,s)){if(s=As(_,s,b),t)continue;return u=7}return 124===_.charCodeAt(s+1)?61===_.charCodeAt(s+2)?(s+=3,u=76):(s+=2,u=57):61===_.charCodeAt(s+1)?(s+=2,u=75):(s++,u=52);case 125:return s++,u=20;case 126:return s++,u=55;case 64:return s++,u=60;case 92:const i=M();if(i>=0&&Fs(i,e))return s+=3,f|=8,p=D()+L(),u=k();const a=N();return a>=0&&Fs(a,e)?(s+=6,f|=1024,p=String.fromCharCode(a)+L(),u=k()):(b(Oa.Invalid_character),s++,u=0);case 35:if(0!==s&&"!"===_[s+1])return b(Oa.can_only_be_used_at_the_start_of_a_file),s++,u=0;const c=Gs(_,s+1);if(92===c){s++;const t=M();if(t>=0&&Fs(t,e))return s+=3,f|=8,p="#"+D()+L(),u=81;const n=N();if(n>=0&&Fs(n,e))return s+=6,f|=1024,p="#"+String.fromCharCode(n)+L(),u=81;s--}return Fs(c,e)?(s++,W(c,e)):(p="#",b(Oa.Invalid_character,s++,js(o))),u=81;default:const g=W(o,e);if(g)return u=g;if(gs(o)){s+=js(o);continue}if(ys(o)){f|=1,s+=js(o);continue}const y=js(o);return b(Oa.Invalid_character,s,y),s+=y,u=0}}}function F(){switch(y){case 0:return!0;case 1:return!1}return 3!==g&&4!==g||3!==y&&$a.test(_.slice(c,s))}function W(e,t){let n=e;if(Fs(n,t)){for(s+=js(n);s<l&&Ws(n=Gs(_,s),t);)s+=js(n);return p=_.substring(d,s),92===n&&(p+=L()),k()}}function z(e,t,n,r){const o=function(e,t){const n=t.exec(e);if(!n)return;switch(n[1]){case"ts-expect-error":return 0;case"ts-ignore":return 1}return}(t.trimStart(),n);return void 0===o?e:Ee(e,{range:{pos:r,end:s},type:o})}function B(e=!0){if(c=d=s,s>=l)return u=1;let t=_.charCodeAt(s);if(60===t)return 47===_.charCodeAt(s+1)?(s+=2,u=31):(s++,u=30);if(123===t)return s++,u=19;let n=0;for(;s<l&&(t=_.charCodeAt(s),123!==t);){if(60===t){if(xs(_,s))return s=As(_,s,b),u=7;break}if(62===t&&b(Oa.Unexpected_token_Did_you_mean_or_gt,s,1),125===t&&b(Oa.Unexpected_token_Did_you_mean_or_rbrace,s,1),ys(t)&&0===n)n=-1;else{if(!e&&ys(t)&&n>0)break;hs(t)||(n=s)}s++}return p=_.substring(c,s),-1===n?13:12}function G(){switch(c=s,_.charCodeAt(s)){case 34:case 39:return p=I(!0),u=11;default:return O()}}function j(){if(c=d=s,f=0,s>=l)return u=1;const t=Gs(_,s);switch(s+=js(t),t){case 9:case 11:case 12:case 32:for(;s<l&&gs(_.charCodeAt(s));)s++;return u=5;case 64:return u=60;case 13:10===_.charCodeAt(s)&&s++;case 10:return f|=1,u=4;case 42:return u=42;case 123:return u=19;case 125:return u=20;case 91:return u=23;case 93:return u=24;case 60:return u=30;case 62:return u=32;case 61:return u=64;case 44:return u=28;case 46:return u=25;case 96:return u=62;case 35:return u=63;case 92:s--;const t=M();if(t>=0&&Fs(t,e))return s+=3,f|=8,p=D()+L(),u=k();const n=N();return n>=0&&Fs(n,e)?(s+=6,f|=1024,p=String.fromCharCode(n)+L(),u=k()):(s++,u=0)}if(Fs(t,e)){let n=t;for(;s<l&&Ws(n=Gs(_,s),e)||45===_.charCodeAt(s);)s+=js(n);return p=_.substring(d,s),92===n&&(p+=L()),u=k()}return u=0}function V(e,t){const n=s,r=c,o=d,i=u,a=p,l=f,m=e();return m&&!t||(s=n,c=r,d=o,u=i,p=a,f=l),m}function U(e,t,n){_=e||"",l=void 0===n?_.length:t+n,H(t||0)}function H(e){In.assert(e>=0),s=e,c=e,d=e,u=0,p=void 0,f=0}}function Gs(e,t){return e.codePointAt(t)}function js(e){return e>=65536?2:1}function Vs(e){if(In.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);const t=Math.floor((e-65536)/1024)+55296,n=(e-65536)%1024+56320;return String.fromCharCode(t,n)}function Us(e){return es(e)}var Hs,Ks,qs,Js=b({"src/compiler/scanner.ts"(){JJ(),za={abstract:128,accessor:129,any:133,as:130,asserts:131,assert:132,bigint:163,boolean:136,break:83,case:84,catch:85,class:86,continue:88,const:87,constructor:137,debugger:89,declare:138,default:90,delete:91,do:92,else:93,enum:94,export:95,extends:96,false:97,finally:98,for:99,from:161,function:100,get:139,if:101,implements:119,import:102,in:103,infer:140,instanceof:104,interface:120,intrinsic:141,is:142,keyof:143,let:121,module:144,namespace:145,never:146,new:105,null:106,number:150,object:151,package:122,private:123,protected:124,public:125,override:164,out:147,readonly:148,require:149,global:162,return:107,satisfies:152,set:153,static:126,string:154,super:108,switch:109,symbol:155,this:110,throw:111,true:112,try:113,type:156,typeof:114,undefined:157,unique:158,unknown:159,using:160,var:115,void:116,while:117,with:118,yield:127,async:134,await:135,of:165},Ba=new Map(Object.entries(za)),Ga=new Map(Object.entries({...za,"{":19,"}":20,"(":21,")":22,"[":23,"]":24,".":25,"...":26,";":27,",":28,"<":30,">":32,"<=":33,">=":34,"==":35,"!=":36,"===":37,"!==":38,"=>":39,"+":40,"-":41,"**":43,"*":42,"/":44,"%":45,"++":46,"--":47,"<<":48,"</":31,">>":49,">>>":50,"&":51,"|":52,"^":53,"!":54,"~":55,"&&":56,"||":57,"?":58,"??":61,"?.":29,":":59,"=":64,"+=":65,"-=":66,"*=":67,"**=":68,"/=":69,"%=":70,"<<=":71,">>=":72,">>>=":73,"&=":74,"|=":75,"^=":79,"||=":76,"&&=":77,"??=":78,"@":60,"#":63,"`":62})),ja=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1569,1594,1600,1610,1649,1747,1749,1749,1765,1766,1786,1788,1808,1808,1810,1836,1920,1957,2309,2361,2365,2365,2384,2384,2392,2401,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2784,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2877,2908,2909,2911,2913,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3294,3294,3296,3297,3333,3340,3342,3344,3346,3368,3370,3385,3424,3425,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3805,3840,3840,3904,3911,3913,3946,3976,3979,4096,4129,4131,4135,4137,4138,4176,4181,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6067,6176,6263,6272,6312,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12329,12337,12341,12344,12346,12353,12436,12445,12446,12449,12538,12540,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65138,65140,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],Va=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,768,846,864,866,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1155,1158,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1425,1441,1443,1465,1467,1469,1471,1471,1473,1474,1476,1476,1488,1514,1520,1522,1569,1594,1600,1621,1632,1641,1648,1747,1749,1756,1759,1768,1770,1773,1776,1788,1808,1836,1840,1866,1920,1968,2305,2307,2309,2361,2364,2381,2384,2388,2392,2403,2406,2415,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2492,2494,2500,2503,2504,2507,2509,2519,2519,2524,2525,2527,2531,2534,2545,2562,2562,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2649,2652,2654,2654,2662,2676,2689,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2784,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2876,2883,2887,2888,2891,2893,2902,2903,2908,2909,2911,2913,2918,2927,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3010,3014,3016,3018,3021,3031,3031,3047,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3134,3140,3142,3144,3146,3149,3157,3158,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3395,3398,3400,3402,3405,3415,3415,3424,3425,3430,3439,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3805,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3946,3953,3972,3974,3979,3984,3991,3993,4028,4038,4038,4096,4129,4131,4135,4137,4138,4140,4146,4150,4153,4160,4169,4176,4185,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4969,4977,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6099,6112,6121,6160,6169,6176,6263,6272,6313,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8319,8319,8400,8412,8417,8417,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12335,12337,12341,12344,12346,12353,12436,12441,12442,12445,12446,12449,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65056,65059,65075,65076,65101,65103,65136,65138,65140,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500],Ua=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],Ha=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],Ka=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2208,2228,2230,2237,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42943,42946,42950,42999,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69376,69404,69415,69415,69424,69445,69600,69622,69635,69687,69763,69807,69840,69864,69891,69926,69956,69956,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70751,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71680,71723,71840,71903,71935,71935,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72384,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,123136,123180,123191,123197,123214,123214,123584,123627,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101],qa=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2208,2228,2230,2237,2259,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3162,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3328,3331,3333,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7673,7675,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42943,42946,42950,42999,43047,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69376,69404,69415,69415,69424,69456,69600,69622,69632,69702,69734,69743,69759,69818,69840,69864,69872,69881,69888,69940,69942,69951,69956,69958,69968,70003,70006,70006,70016,70084,70089,70092,70096,70106,70108,70108,70144,70161,70163,70199,70206,70206,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70751,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71680,71738,71840,71913,71935,71935,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72384,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92768,92777,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,123136,123180,123184,123197,123200,123209,123214,123214,123584,123641,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101,917760,917999],Ja=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,Xa=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,$a=/@(?:see|link)/i,Ya=function(e){const t=[];return e.forEach(((e,n)=>{t[e]=n})),t}(Ga),Qa=7,Za=/^#!.*/,es=String.fromCodePoint?e=>String.fromCodePoint(e):Vs}});function Xs(e){return Ji(e)||Hi(e)}function $s(e){return _e(e,pT)}function Ys(e){switch(jp(e)){case 99:return"lib.esnext.full.d.ts";case 9:return"lib.es2022.full.d.ts";case 8:return"lib.es2021.full.d.ts";case 7:return"lib.es2020.full.d.ts";case 6:return"lib.es2019.full.d.ts";case 5:return"lib.es2018.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}}function Qs(e){return e.start+e.length}function Zs(e){return 0===e.length}function el(e,t){return t>=e.start&&t<Qs(e)}function tl(e,t){return t>=e.pos&&t<=e.end}function nl(e,t){return t.start>=e.start&&Qs(t)<=Qs(e)}function rl(e,t){return void 0!==ol(e,t)}function ol(e,t){const n=cl(e,t);return n&&0===n.length?void 0:n}function il(e,t){return sl(e.start,e.length,t.start,t.length)}function al(e,t,n){return sl(e.start,e.length,t,n)}function sl(e,t,n,r){return n<=e+t&&n+r>=e}function ll(e,t){return t<=Qs(e)&&t>=e.start}function cl(e,t){const n=Math.max(e.start,t.start),r=Math.min(Qs(e),Qs(t));return n<=r?ul(n,r):void 0}function dl(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function ul(e,t){return dl(e,t-e)}function pl(e){return dl(e.span.start,e.newLength)}function fl(e){return Zs(e.span)&&0===e.newLength}function ml(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function _l(e){if(0===e.length)return Hs;if(1===e.length)return e[0];const t=e[0];let n=t.span.start,r=Qs(t.span),o=n+t.newLength;for(let i=1;i<e.length;i++){const t=e[i],a=n,s=r,l=o,c=t.span.start,d=Qs(t.span),u=c+t.newLength;n=Math.min(a,c),r=Math.max(s,s+(d-l)),o=Math.max(u,u+(l-d))}return ml(ul(n,r),o-n)}function hl(e){if(e&&168===e.kind)for(let t=e;t;t=t.parent)if(Td(t)||Md(t)||264===t.kind)return t}function gl(e,t){return bC(e)&&Gb(e,31)&&176===t.kind}function yl(e){return!!Vd(e)&&M(e.elements,vl)}function vl(e){return!!DD(e)||yl(e.name)}function bl(e){let t=e.parent;for(;iD(t.parent);)t=t.parent.parent;return t.parent}function El(e,t){iD(e)&&(e=bl(e));let n=t(e);return 260===e.kind&&(e=e.parent),e&&261===e.kind&&(n|=t(e),e=e.parent),e&&243===e.kind&&(n|=t(e)),n}function Sl(e){return El(e,Zb)}function Tl(e){return El(e,eE)}function xl(e){return El(e,Al)}function Al(e){return e.flags}function Il(e,t,n){const r=e.toLowerCase(),o=/^([a-z]+)([_-]([a-z]+))?$/.exec(r);if(!o)return void(n&&n.push(sT(Oa.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1,"en","ja-jp")));const i=o[1],a=o[3];function s(e,n,r){let o=ua(ra(_a(t.getExecutingFilePath())),e);if(n&&(o=o+"-"+n),o=t.resolvePath(ua(o,"diagnosticMessages.generated.json")),!t.fileExists(o))return!1;let i="";try{i=t.readFile(o)}catch(a){return r&&r.push(sT(Oa.Unable_to_open_file_0,o)),!1}try{QS(JSON.parse(i))}catch{return r&&r.push(sT(Oa.Corrupted_locale_file_0,o)),!1}return!0}F(Ks,r)&&!s(i,a,n)&&s(i,void 0,n),Ht(e)}function Rl(e,t){if(e)for(;void 0!==e.original;)e=e.original;return e&&t?t(e)?e:void 0:e}function Cl(e,t){for(;e;){const n=t(e);if("quit"===n)return;if(n)return e;e=e.parent}}function Dl(e){return 0===(16&e.flags)}function Nl(e,t){if(void 0===e||Dl(e))return e;for(e=e.original;e;){if(Dl(e))return!t||t(e)?e:void 0;e=e.original}}function Ml(e){return e.length>=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e}function Ll(e){const t=e;return t.length>=3&&95===t.charCodeAt(0)&&95===t.charCodeAt(1)&&95===t.charCodeAt(2)?t.substr(1):t}function kl(e){return Ll(e.escapedText)}function Pl(e){const t=ss(e.escapedText);return t?yt(t,Vy):void 0}function wl(e){return e.valueDeclaration&&md(e.valueDeclaration)?kl(e.valueDeclaration.name):Ll(e.escapedName)}function Ol(e){const t=e.parent.parent;if(t){if(Lu(t))return Fl(t);switch(t.kind){case 243:if(t.declarationList&&t.declarationList.declarations[0])return Fl(t.declarationList.declarations[0]);break;case 244:let e=t.expression;switch(226===e.kind&&64===e.operatorToken.kind&&(e=e.left),e.kind){case 211:return e.name;case 212:const t=e.argumentExpression;if(nC(t))return t}break;case 217:return Fl(t.expression);case 256:if(Lu(t.statement)||uu(t.statement))return Fl(t.statement)}}}function Fl(e){const t=jl(e);return t&&nC(t)?t:void 0}function Wl(e,t){return!(!Bl(e)||!nC(e.name)||kl(e.name)!==kl(t))||!(!GD(e)||!se(e.declarationList.declarations,(e=>Wl(e,t))))}function zl(e){return e.name||Ol(e)}function Bl(e){return!!e.name}function Gl(e){switch(e.kind){case 80:return e;case 355:case 348:{const{name:t}=e;if(166===t.kind)return t.right;break}case 213:case 226:{const t=e;switch(Eg(t)){case 1:case 4:case 5:case 3:return Dg(t.left);case 7:case 8:case 9:return t.arguments[1];default:return}}case 353:return zl(e);case 347:return Ol(e);case 277:{const{expression:t}=e;return nC(t)?t:void 0}case 212:const t=e;if(Ig(t))return t.argumentExpression}return e.name}function jl(e){if(void 0!==e)return Gl(e)||(_D(e)||hD(e)||CD(e)?Vl(e):void 0)}function Vl(e){if(e.parent){if(QN(e.parent)||iD(e.parent))return e.parent.name;if(TD(e.parent)&&e===e.parent.right){if(nC(e.parent.left))return e.parent.left;if(wS(e.parent.left))return Dg(e.parent.left)}else if(iN(e.parent)&&nC(e.parent.name))return e.parent.name}}function Ul(e){if(Xb(e))return G(e.modifiers,EC)}function Hl(e){if(Gb(e,98303))return G(e.modifiers,vd)}function Kl(e,t){if(e.name){if(nC(e.name)){const n=e.name.escapedText;return Ec(e.parent,t).filter((e=>OM(e)&&nC(e.name)&&e.name.escapedText===n))}{const n=e.parent.parameters.indexOf(e);In.assert(n>-1,"Parameters should always be in their parents' parameter list");const r=Ec(e.parent,t).filter(OM);if(n<r.length)return[r[n]]}}return o}function ql(e){return Kl(e,!1)}function Jl(e){return Kl(e,!0)}function Xl(e,t){const n=e.name.escapedText;return Ec(e.parent,t).filter((e=>BM(e)&&e.typeParameters.some((e=>e.name.escapedText===n))))}function $l(e){return Xl(e,!1)}function Yl(e){return Xl(e,!0)}function Ql(e){return!!xc(e,OM)}function Zl(e){return xc(e,TM)}function ec(e){return Ac(e,UM)}function tc(e){return xc(e,AM)}function nc(e){return xc(e,RM)}function rc(e){return xc(e,RM,!0)}function oc(e){return xc(e,CM)}function ic(e){return xc(e,CM,!0)}function ac(e){return xc(e,DM)}function sc(e){return xc(e,DM,!0)}function lc(e){return xc(e,NM)}function cc(e){return xc(e,NM,!0)}function dc(e){return xc(e,MM,!0)}function uc(e){return xc(e,kM)}function pc(e){return xc(e,kM,!0)}function fc(e){return xc(e,wM)}function mc(e){return xc(e,WM)}function _c(e){return xc(e,FM)}function hc(e){return xc(e,BM)}function gc(e){return xc(e,HM)}function yc(e){const t=xc(e,zM);if(t&&t.typeExpression&&t.typeExpression.type)return t}function vc(e){let t=xc(e,zM);return!t&&bC(e)&&(t=L(ql(e),(e=>!!e.typeExpression))),t&&t.typeExpression&&t.typeExpression.type}function bc(e){const t=_c(e);if(t&&t.typeExpression)return t.typeExpression.type;const n=yc(e);if(n&&n.typeExpression){const e=n.typeExpression.type;if(WC(e)){const t=L(e.members,NC);return t&&t.type}if(wC(e)||gM(e))return e.type}}function Ec(e,t){var n;if(!Zg(e))return o;let r=null==(n=e.jsDoc)?void 0:n.jsDocCache;if(void 0===r||t){const n=ey(e,t);In.assert(n.length<2||n[0]!==n[1]),r=J(n,(e=>bM(e)?e.tags:e)),t||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=r)}return r}function Sc(e){return Ec(e,!1)}function Tc(e){return Ec(e,!0)}function xc(e,t,n){return L(Ec(e,n),t)}function Ac(e,t){return Sc(e).filter(t)}function Ic(e,t){return Sc(e).filter((e=>e.kind===t))}function Rc(e){return"string"===typeof e?e:null==e?void 0:e.map((e=>328===e.kind?e.text:function(e){const t=331===e.kind?"link":332===e.kind?"linkcode":"linkplain",n=e.name?c_(e.name):"",r=e.name&&e.text.startsWith("://")?"":" ";return`{@${t} ${n}${r}${e.text}}`}(e))).join("")}function Cc(e){if(SM(e)){if(LM(e.parent)){const t=cy(e.parent);if(t&&T(t.tags))return J(t.tags,(e=>BM(e)?e.typeParameters:void 0))}return o}if(Kg(e))return In.assert(327===e.parent.kind),J(e.parent.tags,(e=>BM(e)?e.typeParameters:void 0));if(e.typeParameters)return e.typeParameters;if(GL(e)&&e.typeParameters)return e.typeParameters;if($h(e)){const t=Cb(e);if(t.length)return t;const n=vc(e);if(n&&wC(n)&&n.typeParameters)return n.typeParameters}return o}function Dc(e){return e.constraint?e.constraint:BM(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function Nc(e){return 80===e.kind||81===e.kind}function Mc(e){return 178===e.kind||177===e.kind}function Lc(e){return lD(e)&&!!(64&e.flags)}function kc(e){return cD(e)&&!!(64&e.flags)}function Pc(e){return dD(e)&&!!(64&e.flags)}function wc(e){const t=e.kind;return!!(64&e.flags)&&(211===t||212===t||213===t||235===t)}function Oc(e){return wc(e)&&!kD(e)&&!!e.questionDotToken}function Fc(e){return Oc(e.parent)&&e.parent.expression===e}function Wc(e){return!wc(e.parent)||Oc(e.parent)||e!==e.parent.expression}function zc(e){return 226===e.kind&&61===e.operatorToken.kind}function Bc(e){return PC(e)&&nC(e.typeName)&&"const"===e.typeName.escapedText&&!e.typeArguments}function Gc(e){return EL(e,8)}function jc(e){return kD(e)&&!!(64&e.flags)}function Vc(e){return 252===e.kind||251===e.kind}function Uc(e){return 280===e.kind||279===e.kind}function Hc(e){switch(e.kind){case 309:case 310:return!0;default:return!1}}function Kc(e){return Hc(e)||307===e.kind||311===e.kind}function qc(e){return 355===e.kind||348===e.kind}function Jc(e){return Xc(e.kind)}function Xc(e){return e>=166}function $c(e){return e>=0&&e<=165}function Yc(e){return $c(e.kind)}function Qc(e){return He(e,"pos")&&He(e,"end")}function Zc(e){return 9<=e&&e<=15}function ed(e){return Zc(e.kind)}function td(e){switch(e.kind){case 210:case 209:case 14:case 218:case 231:return!0}return!1}function nd(e){return 15<=e&&e<=18}function rd(e){return nd(e.kind)}function od(e){const t=e.kind;return 17===t||18===t}function id(e){return RN(e)||MN(e)}function ad(e){switch(e.kind){case 276:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 274:return e.parent.isTypeOnly;case 273:case 271:return e.isTypeOnly}return!1}function sd(e){switch(e.kind){case 281:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 278:return e.isTypeOnly&&!!e.moduleSpecifier&&!e.exportClause;case 280:return e.parent.isTypeOnly}return!1}function ld(e){return ad(e)||sd(e)}function cd(e){return 11===e.kind||nd(e.kind)}function dd(e){return zR(e)||nC(e)}function ud(e){var t;return nC(e)&&void 0!==(null==(t=e.emitNode)?void 0:t.autoGenerate)}function pd(e){var t;return rC(e)&&void 0!==(null==(t=e.emitNode)?void 0:t.autoGenerate)}function fd(e){const t=e.emitNode.autoGenerate.flags;return!!(32&t)&&!!(16&t)&&!!(8&t)}function md(e){return(TC(e)||wd(e))&&rC(e.name)}function _d(e){return lD(e)&&rC(e.name)}function hd(e){switch(e){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 164:return!0}return!1}function gd(e){return!!(31&sE(e))}function yd(e){return gd(e)||126===e||164===e||129===e}function vd(e){return hd(e.kind)}function bd(e){const t=e.kind;return 166===t||80===t}function Ed(e){const t=e.kind;return 80===t||81===t||11===t||9===t||167===t}function Sd(e){const t=e.kind;return 80===t||206===t||207===t}function Td(e){return!!e&&Cd(e.kind)}function xd(e){return!!e&&(Cd(e.kind)||IC(e))}function Ad(e){return e&&Rd(e.kind)}function Id(e){return 112===e.kind||97===e.kind}function Rd(e){switch(e){case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function Cd(e){switch(e){case 173:case 179:case 330:case 180:case 181:case 184:case 324:case 185:return!0;default:return Rd(e)}}function Dd(e){return rM(e)||fN(e)||BD(e)&&Td(e.parent)}function Nd(e){const t=e.kind;return 176===t||172===t||174===t||177===t||178===t||181===t||175===t||240===t}function Md(e){return e&&(263===e.kind||231===e.kind)}function Ld(e){return e&&(177===e.kind||178===e.kind)}function kd(e){return TC(e)&&qb(e)}function Pd(e){return $h(e)&&IA(e)?(!Ag(e)||!IE(e.expression))&&!Rg(e,!0):e.parent&&Md(e.parent)&&TC(e)&&!qb(e)}function wd(e){switch(e.kind){case 174:case 177:case 178:return!0;default:return!1}}function Od(e){switch(e.kind){case 174:case 177:case 178:case 172:return!0;default:return!1}}function Fd(e){return vd(e)||EC(e)}function Wd(e){const t=e.kind;return 180===t||179===t||171===t||173===t||181===t||177===t||178===t}function zd(e){return Wd(e)||Nd(e)}function Bd(e){const t=e.kind;return 303===t||304===t||305===t||174===t||177===t||178===t}function Gd(e){return PS(e.kind)}function jd(e){switch(e.kind){case 184:case 185:return!0}return!1}function Vd(e){if(e){const t=e.kind;return 207===t||206===t}return!1}function Ud(e){const t=e.kind;return 209===t||210===t}function Hd(e){const t=e.kind;return 208===t||232===t}function Kd(e){switch(e.kind){case 260:case 169:case 208:return!0}return!1}function qd(e){return iN(e)||bC(e)||$d(e)||Qd(e)}function Jd(e){return Xd(e)||Yd(e)}function Xd(e){switch(e.kind){case 206:case 210:return!0}return!1}function $d(e){switch(e.kind){case 208:case 303:case 304:case 305:return!0}return!1}function Yd(e){switch(e.kind){case 207:case 209:return!0}return!1}function Qd(e){switch(e.kind){case 208:case 232:case 230:case 209:case 210:case 80:case 211:case 212:return!0}return gE(e,!0)}function Zd(e){const t=e.kind;return 211===t||166===t||205===t}function eu(e){const t=e.kind;return 211===t||166===t}function tu(e){return nu(e)||eA(e)}function nu(e){switch(e.kind){case 286:case 285:case 213:case 214:case 215:case 170:return!0;default:return!1}}function ru(e){return 213===e.kind||214===e.kind}function ou(e){const t=e.kind;return 228===t||15===t}function iu(e){return au(Gc(e).kind)}function au(e){switch(e){case 211:case 212:case 214:case 213:case 284:case 285:case 288:case 215:case 209:case 217:case 210:case 231:case 218:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 228:case 97:case 106:case 110:case 112:case 108:case 235:case 233:case 236:case 102:case 282:return!0;default:return!1}}function su(e){return lu(Gc(e).kind)}function lu(e){switch(e){case 224:case 225:case 220:case 221:case 222:case 223:case 216:return!0;default:return au(e)}}function cu(e){switch(e.kind){case 225:return!0;case 224:return 46===e.operator||47===e.operator;default:return!1}}function du(e){switch(e.kind){case 106:case 112:case 97:case 224:return!0;default:return ed(e)}}function uu(e){return function(e){switch(e){case 227:case 229:case 219:case 226:case 230:case 234:case 232:case 361:case 360:case 238:return!0;default:return lu(e)}}(Gc(e).kind)}function pu(e){const t=e.kind;return 216===t||234===t}function fu(e){return kN(e)||OD(e)}function mu(e,t){switch(e.kind){case 248:case 249:case 250:case 246:case 247:return!0;case 256:return t&&mu(e.statement,t)}return!1}function _u(e){return CN(e)||DN(e)}function hu(e){return se(e,_u)}function gu(e){return!e_(e)&&!CN(e)&&!Gb(e,32)&&!Pm(e)}function yu(e){return e_(e)||CN(e)||Gb(e,32)}function vu(e){return 249===e.kind||250===e.kind}function bu(e){return BD(e)||uu(e)}function Eu(e){return BD(e)}function Su(e){return aN(e)||uu(e)}function Tu(e){const t=e.kind;return 268===t||267===t||80===t}function xu(e){const t=e.kind;return 268===t||267===t}function Au(e){const t=e.kind;return 80===t||267===t}function Iu(e){const t=e.kind;return 275===t||274===t}function Ru(e){return 267===e.kind||266===e.kind}function Cu(e){switch(e.kind){case 219:case 226:case 208:case 213:case 179:case 263:case 231:case 175:case 176:case 185:case 180:case 212:case 266:case 306:case 277:case 278:case 281:case 262:case 218:case 184:case 177:case 80:case 273:case 271:case 276:case 181:case 264:case 345:case 347:case 324:case 348:case 355:case 330:case 353:case 329:case 291:case 292:case 293:case 200:case 174:case 173:case 267:case 202:case 280:case 270:case 274:case 214:case 15:case 9:case 210:case 169:case 211:case 303:case 172:case 171:case 178:case 304:case 312:case 305:case 11:case 265:case 187:case 168:case 260:return!0;default:return!1}}function Du(e){switch(e.kind){case 219:case 241:case 179:case 269:case 299:case 175:case 194:case 176:case 185:case 180:case 248:case 249:case 250:case 262:case 218:case 184:case 177:case 181:case 345:case 347:case 324:case 330:case 353:case 200:case 174:case 173:case 267:case 178:case 312:case 265:return!0;default:return!1}}function Nu(e){return 262===e||282===e||263===e||264===e||265===e||266===e||267===e||272===e||271===e||278===e||277===e||270===e}function Mu(e){return 252===e||251===e||259===e||246===e||244===e||242===e||249===e||250===e||248===e||245===e||256===e||253===e||255===e||257===e||258===e||243===e||247===e||254===e||359===e}function Lu(e){return 168===e.kind?e.parent&&352!==e.parent.kind||$h(e):219===(t=e.kind)||208===t||263===t||231===t||175===t||176===t||266===t||306===t||281===t||262===t||218===t||177===t||273===t||271===t||276===t||264===t||291===t||174===t||173===t||267===t||270===t||274===t||280===t||169===t||303===t||172===t||171===t||178===t||304===t||265===t||168===t||260===t||353===t||345===t||355===t;var t}function ku(e){return Nu(e.kind)}function Pu(e){return Mu(e.kind)}function wu(e){const t=e.kind;return Mu(t)||Nu(t)||function(e){if(241!==e.kind)return!1;if(void 0!==e.parent&&(258===e.parent.kind||299===e.parent.kind))return!1;return!rh(e)}(e)}function Ou(e){const t=e.kind;return Mu(t)||Nu(t)||241===t}function Fu(e){const t=e.kind;return 283===t||166===t||80===t}function Wu(e){const t=e.kind;return 110===t||80===t||211===t||295===t}function zu(e){const t=e.kind;return 284===t||294===t||285===t||12===t||288===t}function Bu(e){const t=e.kind;return 291===t||293===t}function Gu(e){const t=e.kind;return 11===t||294===t}function ju(e){const t=e.kind;return 286===t||285===t}function Vu(e){const t=e.kind;return 296===t||297===t}function Uu(e){return e.kind>=316&&e.kind<=357}function Hu(e){return 327===e.kind||326===e.kind||328===e.kind||rp(e)||Ku(e)||EM(e)||SM(e)}function Ku(e){return e.kind>=334&&e.kind<=357}function qu(e){return 178===e.kind}function Ju(e){return 177===e.kind}function Xu(e){if(!Zg(e))return!1;const{jsDoc:t}=e;return!!t&&t.length>0}function $u(e){return!!e.type}function Yu(e){return!!e.initializer}function Qu(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:case 306:return!0;default:return!1}}function Zu(e){return 291===e.kind||293===e.kind||Bd(e)}function ep(e){return 183===e.kind||233===e.kind}function tp(e){let t=qs;for(const n of e){if(!n.length)continue;let e=0;for(;e<n.length&&e<t&&hs(n.charCodeAt(e));e++);if(e<t&&(t=e),0===t)return 0}return t===qs?void 0:t}function np(e){return 11===e.kind||15===e.kind}function rp(e){return 331===e.kind||332===e.kind||333===e.kind}function op(e){const t=Oe(e.parameters);return!!t&&ip(t)}function ip(e){const t=OM(e)?e.typeExpression&&e.typeExpression.type:e.type;return void 0!==e.dotDotDotToken||!!t&&325===t.kind}function ap(e,t){return t.text.substring(e.pos,e.end).includes("@internal")}function sp(e,t){t??(t=Yf(e));const n=Nl(e);if(n&&169===n.kind){const r=n.parent.parameters.indexOf(n),o=r>0?n.parent.parameters[r-1]:void 0,i=t.text,a=o?ce(ws(i,Ts(i,o.end+1,!1,!0)),Ps(i,e.pos)):ws(i,Ts(i,e.pos,!1,!0));return se(a)&&ap(Fe(a),t)}return!!x(n&&B_(n,t),(e=>ap(e,t)))}var lp,cp,dp,up,pp,fp,mp,_p,hp,gp,yp,vp,bp,Ep,Sp,Tp,xp,Ap,Ip,Rp,Cp,Dp,Np,Mp,Lp,kp,Pp,wp,Op,Fp,Wp,zp,Bp,Gp,jp,Vp,Up,Hp,Kp,qp,Jp,Xp,$p,Yp,Qp,Zp,ef,tf,nf,rf,of,af,sf,lf,cf,df,uf,pf,ff,mf,_f,hf,gf,yf,vf,bf,Ef,Sf,Tf,xf,Af,If,Rf,Cf=b({"src/compiler/utilitiesPublic.ts"(){JJ(),Hs=ml(dl(0,0),0),Ks=["cs","de","es","fr","it","ja","ko","pl","pt-br","ru","tr","zh-cn","zh-tw"],qs=1073741823}});function Df(e,t){const n=e.declarations;if(n)for(const r of n)if(r.kind===t)return r}function Nf(e,t){return G(e.declarations||o,(e=>e.kind===t))}function Mf(e){const t=new Map;if(e)for(const n of e)t.set(n.escapedName,n);return t}function Lf(e){return 0!==(33554432&e.flags)}function kf(e,t){return e.configFilePath!==t.configFilePath||Pf(e,t)}function Pf(e,t){return Of(e,t,WP)}function wf(e,t){return Of(e,t,BP)}function Of(e,t,n){return e!==t&&n.some((n=>!Dx(MT(e,n),MT(t,n))))}function Ff(e,t){for(;;){const n=t(e);if("quit"===n)return;if(void 0!==n)return n;if(rM(e))return;e=e.parent}}function Wf(e,t){const n=e.entries();for(const[r,o]of n){const e=t(o,r);if(e)return e}}function zf(e,t){const n=e.keys();for(const r of n){const e=t(r);if(e)return e}}function Bf(e,t){e.forEach(((e,n)=>{t.set(n,e)}))}function Gf(e){const t=pp.getText();try{return e(pp),pp.getText()}finally{pp.clear(),pp.writeKeyword(t)}}function jf(e){return e.end-e.pos}function Vf(e,t){return e.path===t.path&&!e.prepend===!t.prepend&&!e.circular===!t.circular}function Uf(e,t){return e===t||e.resolvedModule===t.resolvedModule||!!e.resolvedModule&&!!t.resolvedModule&&e.resolvedModule.isExternalLibraryImport===t.resolvedModule.isExternalLibraryImport&&e.resolvedModule.extension===t.resolvedModule.extension&&e.resolvedModule.resolvedFileName===t.resolvedModule.resolvedFileName&&e.resolvedModule.originalPath===t.resolvedModule.originalPath&&(n=e.resolvedModule.packageId,r=t.resolvedModule.packageId,n===r||!!n&&!!r&&n.name===r.name&&n.subModuleName===r.subModuleName&&n.version===r.version)&&e.alternateResult===t.alternateResult;var n,r}function Hf(e,t,n,r,o){var i;const a=null==(i=t.getResolvedModule(e,n,r))?void 0:i.alternateResult,s=a&&(2===Up(t.getCompilerOptions())?[Oa.There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler,[a]]:[Oa.There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings,[a,a.includes(HO+"@types/")?`@types/${xW(o)}`:o]]),l=s?cT(void 0,s[0],...s[1]):t.typesPackageExists(o)?cT(void 0,Oa.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,o,xW(o)):t.packageBundlesTypes(o)?cT(void 0,Oa.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,o,n):cT(void 0,Oa.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,n,xW(o));return l&&(l.repopulateInfo=()=>({moduleReference:n,mode:r,packageName:o===n?void 0:o})),l}function Kf({name:e,subModuleName:t}){return t?`${e}/${t}`:e}function qf(e){return`${Kf(e)}@${e.version}`}function Jf(e,t){return e===t||e.resolvedTypeReferenceDirective===t.resolvedTypeReferenceDirective||!!e.resolvedTypeReferenceDirective&&!!t.resolvedTypeReferenceDirective&&e.resolvedTypeReferenceDirective.resolvedFileName===t.resolvedTypeReferenceDirective.resolvedFileName&&!!e.resolvedTypeReferenceDirective.primary===!!t.resolvedTypeReferenceDirective.primary&&e.resolvedTypeReferenceDirective.originalPath===t.resolvedTypeReferenceDirective.originalPath}function Xf(e,t,n,r){In.assert(e.length===t.length);for(let o=0;o<e.length;o++){const i=t[o],a=n(e[o]);if(a?!i||!r(a,i):i)return!0}return!1}function $f(e){return function(e){if(!(2097152&e.flags)){(0!==(262144&e.flags)||oP(e,$f))&&(e.flags|=1048576),e.flags|=2097152}}(e),0!==(1048576&e.flags)}function Yf(e){for(;e&&312!==e.kind;)e=e.parent;return e}function Qf(e){return Yf(e.valueDeclaration||Vm(e))}function Zf(e,t){return!!e&&(1===e.scriptKind||2===e.scriptKind)&&!e.checkJsDirective&&void 0===t}function em(e){switch(e.kind){case 241:case 269:case 248:case 249:case 250:return!0}return!1}function tm(e,t){return In.assert(e>=0),us(t)[e]}function nm(e){const t=Yf(e),n=_s(t,e.pos);return`${t.fileName}(${n.line+1},${n.character+1})`}function rm(e,t){In.assert(e>=0);const n=us(t),r=e,o=t.text;if(r+1===n.length)return o.length-1;{const e=n[r];let t=n[r+1]-1;for(In.assert(ys(o.charCodeAt(t)));e<=t&&ys(o.charCodeAt(t));)t--;return t}}function om(e,t,n){return!(n&&n(t))&&!e.identifiers.has(t)}function im(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function am(e){return!im(e)}function sm(e,t){return vC(e)?t===e.expression:IC(e)?t===e.modifiers:SC(e)?t===e.initializer:TC(e)?t===e.questionToken&&kd(e):QN(e)?t===e.modifiers||t===e.questionToken||t===e.exclamationToken||lm(e.modifiers,t,Fd):ZN(e)?t===e.equalsToken||t===e.modifiers||t===e.questionToken||t===e.exclamationToken||lm(e.modifiers,t,Fd):AC(e)?t===e.exclamationToken:RC(e)?t===e.typeParameters||t===e.type||lm(e.typeParameters,t,vC):CC(e)?t===e.typeParameters||lm(e.typeParameters,t,vC):DC(e)?t===e.typeParameters||t===e.type||lm(e.typeParameters,t,vC):!!_N(e)&&(t===e.modifiers||lm(e.modifiers,t,Fd))}function lm(e,t,n){return!(!e||mt(t)||!n(t))&&F(e,t)}function cm(e,t,n){if(void 0===t||0===t.length)return e;let r=0;for(;r<e.length&&n(e[r]);++r);return e.splice(r,0,...t),e}function dm(e,t,n){if(void 0===t)return e;let r=0;for(;r<e.length&&n(e[r]);++r);return e.splice(r,0,t),e}function um(e){return w_(e)||!!(2097152&Rm(e))}function pm(e,t){return cm(e,t,w_)}function fm(e,t){return cm(e,t,um)}function mm(e,t){return dm(e,t,w_)}function _m(e,t){return dm(e,t,um)}function hm(e,t,n){if(47===e.charCodeAt(t+1)&&t+2<n&&47===e.charCodeAt(t+2)){const r=e.substring(t,n);return!!(_p.test(r)||yp.test(r)||vp.test(r)||hp.test(r)||gp.test(r)||bp.test(r))}return!1}function gm(e,t){return 42===e.charCodeAt(t+1)&&33===e.charCodeAt(t+2)}function ym(e,t){const n=new Map(t.map((t=>[`${_s(e,t.range.end).line}`,t]))),r=new Map;return{getUnusedExpectations:function(){return Ye(n.entries()).filter((([e,t])=>0===t.type&&!r.get(e))).map((([e,t])=>t))},markUsed:function(e){if(!n.has(`${e}`))return!1;return r.set(`${e}`,!0),!0}}}function vm(e,t,n){return im(e)?e.pos:Uu(e)||12===e.kind?Ts((t||Yf(e)).text,e.pos,!1,!0):n&&Xu(e)?vm(e.jsDoc[0],t):358===e.kind&&e._children.length>0?vm(e._children[0],t,n):Ts((t||Yf(e)).text,e.pos,!1,!1,Zh(e))}function bm(e,t){const n=!im(e)&&vk(e)?k(e.modifiers,EC):void 0;return n?Ts((t||Yf(e)).text,n.end):vm(e,t)}function Em(e,t,n=!1){return Tm(e.text,t,n)}function Sm(e){return!!(DN(e)&&e.exportClause&&AN(e.exportClause)&&"default"===e.exportClause.name.escapedText)}function Tm(e,t,n=!1){if(im(t))return"";let r=e.substring(n?t.pos:Ts(e,t.pos),t.end);return function(e){return!!Cl(e,aM)}(t)&&(r=r.split(/\r\n|\n|\r/).map((e=>e.replace(/^\s*\*/,"").trimStart())).join("\n")),r}function xm(e,t=!1){return Em(Yf(e),e,t)}function Am(e){return e.pos}function Im(e,t){return je(e,t,Am,Ft)}function Rm(e){const t=e.emitNode;return t&&t.flags||0}function Cm(e){const t=e.emitNode;return t&&t.internalFlags||0}function Dm(e,t,n){if(t&&function(e,t){if(Sv(e)||!e.parent||4&t&&e.isUnterminated)return!1;if(FR(e)){if(26656&e.numericLiteralFlags)return!1;if(512&e.numericLiteralFlags)return!!(8&t)}return!WR(e)}(e,n))return Em(t,e);switch(e.kind){case 11:{const t=2&n?Bv:1&n||16777216&Rm(e)?Fv:Wv;return e.singleQuote?"'"+t(e.text,39)+"'":'"'+t(e.text,34)+'"'}case 15:case 16:case 17:case 18:{const t=1&n||16777216&Rm(e)?Fv:Wv,r=e.rawText??Lv(t(e.text,96));switch(e.kind){case 15:return"`"+r+"`";case 16:return"`"+r+"${";case 17:return"}"+r+"${";case 18:return"}"+r+"`"}break}case 9:case 10:return e.text;case 14:return 4&n&&e.isUnterminated?e.text+(92===e.text.charCodeAt(e.text.length-1)?" /":"/"):e.text}return In.fail(`Literal kind '${e.kind}' not accounted for.`)}function Nm(e){return ht(e)?'"'+Wv(e)+'"':""+e}function Mm(e){return oa(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function Lm(e){return 0!==(7&xl(e))||km(e)}function km(e){const t=bv(e);return 260===t.kind&&299===t.parent.kind}function Pm(e){return pN(e)&&(11===e.name.kind||Bm(e))}function wm(e){return pN(e)&&11===e.name.kind}function Om(e){return pN(e)&&zR(e.name)}function Fm(e){return pN(e)||nC(e)}function Wm(e){return!!(t=e.valueDeclaration)&&267===t.kind&&!t.body;var t}function zm(e){return 312===e.kind||267===e.kind||xd(e)}function Bm(e){return!!(2048&e.flags)}function Gm(e){return Pm(e)&&jm(e)}function jm(e){switch(e.parent.kind){case 312:return uP(e.parent);case 268:return Pm(e.parent.parent)&&rM(e.parent.parent.parent)&&!uP(e.parent.parent.parent)}return!1}function Vm(e){var t;return null==(t=e.declarations)?void 0:t.find((e=>!Gm(e)&&!(pN(e)&&Bm(e))))}function Um(e,t){return uP(e)||(1===(n=Vp(t))||100===n||199===n)&&!!e.commonJsModuleIndicator;var n}function Hm(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return!e.isDeclarationFile&&(!!IT(t,"alwaysStrict")||(!!_L(e.statements)||!(!uP(e)&&!Kp(t))&&(Vp(t)>=5||!t.noImplicitUseStrict)))}function Km(e){return!!(33554432&e.flags)||Gb(e,128)}function qm(e,t){switch(e.kind){case 312:case 269:case 299:case 267:case 248:case 249:case 250:case 176:case 174:case 177:case 178:case 262:case 218:case 219:case 172:case 175:return!0;case 241:return!xd(t)}return!1}function Jm(e){switch(In.type(e),e.kind){case 345:case 353:case 330:return!0;default:return Xm(e)}}function Xm(e){switch(In.type(e),e.kind){case 179:case 180:case 173:case 181:case 184:case 185:case 324:case 263:case 231:case 264:case 265:case 352:case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function $m(e){switch(e.kind){case 272:case 271:return!0;default:return!1}}function Ym(e){return $m(e)||rg(e)}function Qm(e){switch(e.kind){case 272:case 271:case 243:case 263:case 262:case 267:case 265:case 264:case 266:return!0;default:return!1}}function Zm(e){return e_(e)||pN(e)||eD(e)||L_(e)}function e_(e){return $m(e)||DN(e)}function t_(e){return Cl(e.parent,(e=>!!(1&qW(e))))}function n_(e){return Cl(e.parent,(e=>qm(e,e.parent)))}function r_(e,t){let n=n_(e);for(;n;)t(n),n=n_(n)}function o_(e){return e&&0!==jf(e)?xm(e):"(Missing)"}function i_(e){return e.declaration?o_(e.declaration.parameters[0].name):void 0}function a_(e){return 167===e.kind&&!tv(e.expression)}function s_(e){var t;switch(e.kind){case 80:case 81:return(null==(t=e.emitNode)?void 0:t.autoGenerate)?void 0:e.escapedText;case 11:case 9:case 15:return Ml(e.text);case 167:return tv(e.expression)?Ml(e.expression.text):void 0;case 295:return EA(e);default:return In.assertNever(e)}}function l_(e){return In.checkDefined(s_(e))}function c_(e){switch(e.kind){case 110:return"this";case 81:case 80:return 0===jf(e)?kl(e):xm(e);case 166:return c_(e.left)+"."+c_(e.right);case 211:return nC(e.name)||rC(e.name)?c_(e.expression)+"."+c_(e.name):In.assertNever(e.name);case 318:return c_(e.left)+c_(e.right);case 295:return c_(e.namespace)+":"+c_(e.name);default:return In.assertNever(e)}}function d_(e,t,...n){return p_(Yf(e),e,t,...n)}function u_(e,t,n,...r){const o=Ts(e.text,t.pos);return iT(e,o,t.end-o,n,...r)}function p_(e,t,n,...r){const o=S_(e,t);return iT(e,o.start,o.length,n,...r)}function f_(e,t,n,r){const o=S_(e,t);return h_(e,o.start,o.length,n,r)}function m_(e,t,n,r){const o=Ts(e.text,t.pos);return h_(e,o,t.end-o,n,r)}function __(e,t,n){In.assertGreaterThanOrEqual(t,0),In.assertGreaterThanOrEqual(n,0),In.assertLessThanOrEqual(t,e.length),In.assertLessThanOrEqual(t+n,e.length)}function h_(e,t,n,r,o){return __(e.text,t,n),{file:e,start:t,length:n,code:r.code,category:r.category,messageText:r.next?r:r.messageText,relatedInformation:o}}function g_(e,t,n){return{file:e,start:0,length:0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:n}}function y_(e){return"string"===typeof e.messageText?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function v_(e,t,n){return{file:e,start:t.pos,length:t.end-t.pos,code:n.code,category:n.category,messageText:n.message}}function b_(e,t){const n=Bs(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);n.scan();return ul(n.getTokenStart(),n.getTokenEnd())}function E_(e,t){const n=Bs(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return n.scan(),n.getToken()}function S_(e,t){let n=t;switch(t.kind){case 312:{const t=Ts(e.text,0,!1);return t===e.text.length?dl(0,0):b_(e,t)}case 260:case 208:case 263:case 231:case 264:case 267:case 266:case 306:case 262:case 218:case 174:case 177:case 178:case 265:case 172:case 171:case 274:n=t.name;break;case 219:return function(e,t){const n=Ts(e.text,t.pos);if(t.body&&241===t.body.kind){const{line:r}=_s(e,t.body.pos),{line:o}=_s(e,t.body.end);if(r<o)return dl(n,rm(r,e)-n+1)}return ul(n,t.end)}(e,t);case 296:case 297:return ul(Ts(e.text,t.pos),t.statements.length>0?t.statements[0].pos:t.end);case 253:case 229:return b_(e,Ts(e.text,t.pos));case 238:return b_(e,Ts(e.text,t.expression.end));case 357:return b_(e,Ts(e.text,t.tagName.pos))}if(void 0===n)return b_(e,t.pos);In.assert(!bM(n));const r=im(n),o=r||BR(t)?n.pos:Ts(e.text,n.pos);return r?(In.assert(o===n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),In.assert(o===n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(In.assert(o>=n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),In.assert(o<=n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),ul(o,n.end)}function T_(e){return void 0!==(e.externalModuleIndicator||e.commonJsModuleIndicator)}function x_(e){return 6===e.scriptKind}function A_(e){return!!(4096&Sl(e))}function I_(e){return!(!(8&Sl(e))||gl(e,e.parent))}function R_(e){return 6===(7&xl(e))}function C_(e){return 4===(7&xl(e))}function D_(e){return 2===(7&xl(e))}function N_(e){return 1===(7&xl(e))}function M_(e){return 213===e.kind&&108===e.expression.kind}function L_(e){return 213===e.kind&&102===e.expression.kind}function k_(e){return PD(e)&&102===e.keywordToken&&"meta"===e.name.escapedText}function P_(e){return eD(e)&&ZC(e.argument)&&zR(e.argument.literal)}function w_(e){return 244===e.kind&&11===e.expression.kind}function O_(e){return!!(2097152&Rm(e))}function F_(e){return O_(e)&&sN(e)}function W_(e){return nC(e.name)&&!e.initializer}function z_(e){return O_(e)&&GD(e)&&M(e.declarationList.declarations,W_)}function B_(e,t){return 12!==e.kind?Ps(t.text,e.pos):void 0}function G_(e,t){return G(169===e.kind||168===e.kind||218===e.kind||219===e.kind||217===e.kind||260===e.kind||281===e.kind?ce(ws(t,e.pos),Ps(t,e.pos)):Ps(t,e.pos),(e=>42===t.charCodeAt(e.pos+1)&&42===t.charCodeAt(e.pos+2)&&47!==t.charCodeAt(e.pos+3)))}function j_(e){if(182<=e.kind&&e.kind<=205)return!0;switch(e.kind){case 133:case 159:case 150:case 163:case 154:case 136:case 155:case 151:case 157:case 106:case 146:return!0;case 116:return 222!==e.parent.kind;case 233:return V_(e);case 168:return 200===e.parent.kind||195===e.parent.kind;case 80:(166===e.parent.kind&&e.parent.right===e||211===e.parent.kind&&e.parent.name===e)&&(e=e.parent),In.assert(80===e.kind||166===e.kind||211===e.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 166:case 211:case 110:{const{parent:t}=e;if(186===t.kind)return!1;if(205===t.kind)return!t.isTypeOf;if(182<=t.kind&&t.kind<=205)return!0;switch(t.kind){case 233:return V_(t);case 168:case 352:return e===t.constraint;case 172:case 171:case 169:case 260:case 262:case 218:case 219:case 176:case 174:case 173:case 177:case 178:case 179:case 180:case 181:case 216:return e===t.type;case 213:case 214:case 215:return F(t.typeArguments,e)}}}return!1}function V_(e){return UM(e.parent)||TM(e.parent)||$N(e.parent)&&!bE(e)}function U_(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent}return!1}function H_(e,t){return function e(n){switch(n.kind){case 253:return t(n);case 269:case 241:case 245:case 246:case 247:case 248:case 249:case 250:case 254:case 255:case 296:case 297:case 256:case 258:case 299:return oP(n,e)}}(e)}function K_(e,t){return function e(n){switch(n.kind){case 229:t(n);const r=n.expression;return void(r&&e(r));case 266:case 264:case 267:case 265:return;default:if(Td(n)){if(n.name&&167===n.name.kind)return void e(n.name.expression)}else j_(n)||oP(n,e)}}(e)}function q_(e){return e&&188===e.kind?e.elementType:e&&183===e.kind?We(e.typeArguments):void 0}function J_(e){switch(e.kind){case 264:case 263:case 231:case 187:return e.members;case 210:return e.properties}}function X_(e){if(e)switch(e.kind){case 208:case 306:case 169:case 303:case 172:case 171:case 304:case 260:return!0}return!1}function $_(e){return X_(e)||Ld(e)}function Y_(e){return 261===e.parent.kind&&243===e.parent.parent.kind}function Q_(e){return!!$h(e)&&(sD(e.parent)&&TD(e.parent.parent)&&2===Eg(e.parent.parent)||Z_(e.parent))}function Z_(e){return!!$h(e)&&(TD(e)&&1===Eg(e))}function eh(e){return(iN(e)?D_(e)&&nC(e.name)&&Y_(e):TC(e)?Jb(e)&&Vb(e):SC(e)&&Jb(e))||Z_(e)}function th(e){switch(e.kind){case 174:case 173:case 176:case 177:case 178:case 262:case 218:return!0}return!1}function nh(e,t){for(;;){if(t&&t(e),256!==e.statement.kind)return e.statement;e=e.statement}}function rh(e){return e&&241===e.kind&&Td(e.parent)}function oh(e){return e&&174===e.kind&&210===e.parent.kind}function ih(e){return(174===e.kind||177===e.kind||178===e.kind)&&(210===e.parent.kind||231===e.parent.kind)}function ah(e){return e&&1===e.kind}function sh(e){return e&&0===e.kind}function lh(e,t,n,r){return x(null==e?void 0:e.properties,(e=>{if(!QN(e))return;const o=s_(e.name);return t===o||r&&r===o?n(e):void 0}))}function ch(e,t,n){return lh(e,t,(e=>aD(e.initializer)?L(e.initializer.elements,(e=>zR(e)&&e.text===n)):void 0))}function dh(e){if(e&&e.statements.length){return yt(e.statements[0].expression,sD)}}function uh(e,t,n){return ph(e,t,(e=>aD(e.initializer)?L(e.initializer.elements,(e=>zR(e)&&e.text===n)):void 0))}function ph(e,t,n){return lh(dh(e),t,n)}function fh(e){return Cl(e.parent,Td)}function mh(e){return Cl(e.parent,Ad)}function _h(e){return Cl(e.parent,Md)}function hh(e){return Cl(e.parent,(e=>Md(e)||Td(e)?"quit":IC(e)))}function gh(e){return Cl(e.parent,xd)}function yh(e){const t=Cl(e.parent,(e=>Md(e)?"quit":EC(e)));return t&&Md(t.parent)?_h(t.parent):_h(t??e)}function vh(e,t,n){for(In.assert(312!==e.kind);;){if(!(e=e.parent))return In.fail();switch(e.kind){case 167:if(n&&Md(e.parent.parent))return e;e=e.parent.parent;break;case 170:169===e.parent.kind&&Nd(e.parent.parent)?e=e.parent.parent:Nd(e.parent)&&(e=e.parent);break;case 219:if(!t)continue;case 262:case 218:case 267:case 175:case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 179:case 180:case 181:case 266:case 312:return e}}}function bh(e){switch(e.kind){case 219:case 262:case 218:case 172:return!0;case 241:switch(e.parent.kind){case 176:case 174:case 177:case 178:return!0;default:return!1}default:return!1}}function Eh(e){nC(e)&&(lN(e.parent)||sN(e.parent))&&e.parent.name===e&&(e=e.parent);return rM(vh(e,!0,!1))}function Sh(e){const t=vh(e,!1,!1);if(t)switch(t.kind){case 176:case 262:case 218:return t}}function Th(e,t){for(;;){if(!(e=e.parent))return;switch(e.kind){case 167:e=e.parent;break;case 262:case 218:case 219:if(!t)continue;case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 175:return e;case 170:169===e.parent.kind&&Nd(e.parent.parent)?e=e.parent.parent:Nd(e.parent)&&(e=e.parent)}}}function xh(e){if(218===e.kind||219===e.kind){let t=e,n=e.parent;for(;217===n.kind;)t=n,n=n.parent;if(213===n.kind&&n.expression===t)return n}}function Ah(e){return 108===e.kind||Ih(e)}function Ih(e){const t=e.kind;return(211===t||212===t)&&108===e.expression.kind}function Rh(e){const t=e.kind;return(211===t||212===t)&&110===e.expression.kind}function Ch(e){var t;return!!e&&iN(e)&&110===(null==(t=e.initializer)?void 0:t.kind)}function Dh(e){return!!e&&(ZN(e)||QN(e))&&TD(e.parent.parent)&&64===e.parent.parent.operatorToken.kind&&110===e.parent.parent.right.kind}function Nh(e){switch(e.kind){case 183:return e.typeName;case 233:return EE(e.expression)?e.expression:void 0;case 80:case 166:return e}}function Mh(e){switch(e.kind){case 215:return e.tag;case 286:case 285:return e.tagName;case 226:return e.right;default:return e.expression}}function Lh(e,t,n,r){if(e&&Bl(t)&&rC(t.name))return!1;switch(t.kind){case 263:return!0;case 231:return!e;case 172:return void 0!==n&&(e?lN(n):Md(n)&&!Hb(t)&&!Kb(t));case 177:case 178:case 174:return void 0!==t.body&&void 0!==n&&(e?lN(n):Md(n));case 169:return!!e&&(void 0!==n&&void 0!==n.body&&(176===n.kind||174===n.kind||178===n.kind)&&yb(n)!==t&&void 0!==r&&263===r.kind)}return!1}function kh(e,t,n,r){return Xb(t)&&Lh(e,t,n,r)}function Ph(e,t,n,r){return kh(e,t,n,r)||wh(e,t,n)}function wh(e,t,n){switch(t.kind){case 263:return se(t.members,(r=>Ph(e,r,t,n)));case 231:return!e&&se(t.members,(r=>Ph(e,r,t,n)));case 174:case 178:case 176:return se(t.parameters,(r=>kh(e,r,t,n)));default:return!1}}function Oh(e,t){if(kh(e,t))return!0;const n=_b(t);return!!n&&wh(e,n,t)}function Fh(e,t,n){let r;if(Ld(t)){const{firstAccessor:e,secondAccessor:o,setAccessor:i}=xb(n.members,t),a=Xb(e)?e:o&&Xb(o)?o:void 0;if(!a||t!==a)return!1;r=null==i?void 0:i.parameters}else AC(t)&&(r=t.parameters);if(kh(e,t,n))return!0;if(r)for(const o of r)if(!vb(o)&&kh(e,o,t,n))return!0;return!1}function Wh(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 11:return Wh(e.textSourceNode);case 15:return""===e.text}return!1}return""===e.text}function zh(e){const{parent:t}=e;return(286===t.kind||285===t.kind||287===t.kind)&&t.tagName===e}function Bh(e){switch(e.kind){case 108:case 106:case 112:case 97:case 14:case 209:case 210:case 211:case 212:case 213:case 214:case 215:case 234:case 216:case 238:case 235:case 217:case 218:case 231:case 219:case 222:case 220:case 221:case 224:case 225:case 226:case 227:case 230:case 228:case 232:case 284:case 285:case 288:case 229:case 223:case 236:return!0;case 233:return!$N(e.parent)&&!TM(e.parent);case 166:for(;166===e.parent.kind;)e=e.parent;return 186===e.parent.kind||rp(e.parent)||sM(e.parent)||lM(e.parent)||zh(e);case 318:for(;lM(e.parent);)e=e.parent;return 186===e.parent.kind||rp(e.parent)||sM(e.parent)||lM(e.parent)||zh(e);case 81:return TD(e.parent)&&e.parent.left===e&&103===e.parent.operatorToken.kind;case 80:if(186===e.parent.kind||rp(e.parent)||sM(e.parent)||lM(e.parent)||zh(e))return!0;case 9:case 10:case 11:case 15:case 110:return Gh(e);default:return!1}}function Gh(e){const{parent:t}=e;switch(t.kind){case 260:case 169:case 172:case 171:case 306:case 303:case 208:return t.initializer===e;case 244:case 245:case 246:case 247:case 253:case 254:case 255:case 296:case 257:return t.expression===e;case 248:const n=t;return n.initializer===e&&261!==n.initializer.kind||n.condition===e||n.incrementor===e;case 249:case 250:const r=t;return r.initializer===e&&261!==r.initializer.kind||r.expression===e;case 216:case 234:case 239:case 167:case 238:return e===t.expression;case 170:case 294:case 293:case 305:return!0;case 233:return t.expression===e&&!j_(t);case 304:return t.objectAssignmentInitializer===e;default:return Bh(t)}}function jh(e){for(;166===e.kind||80===e.kind;)e=e.parent;return 186===e.kind}function Vh(e){return AN(e)&&!!e.parent.moduleSpecifier}function Uh(e){return 271===e.kind&&283===e.moduleReference.kind}function Hh(e){return In.assert(Uh(e)),e.moduleReference.expression}function Kh(e){return rg(e)&&zS(e.initializer).arguments[0]}function qh(e){return 271===e.kind&&283!==e.moduleReference.kind}function Jh(e){return $h(e)}function Xh(e){return!$h(e)}function $h(e){return!!e&&!!(524288&e.flags)}function Yh(e){return!!e&&!!(134217728&e.flags)}function Qh(e){return!x_(e)}function Zh(e){return!!e&&!!(16777216&e.flags)}function eg(e){return PC(e)&&nC(e.typeName)&&"Object"===e.typeName.escapedText&&e.typeArguments&&2===e.typeArguments.length&&(154===e.typeArguments[0].kind||150===e.typeArguments[0].kind)}function tg(e,t){if(213!==e.kind)return!1;const{expression:n,arguments:r}=e;if(80!==n.kind||"require"!==n.escapedText)return!1;if(1!==r.length)return!1;const o=r[0];return!t||np(o)}function ng(e){return ig(e,!1)}function rg(e){return ig(e,!0)}function og(e){return iD(e)&&rg(e.parent.parent)}function ig(e,t){return iN(e)&&!!e.initializer&&tg(t?zS(e.initializer):e.initializer,!0)}function ag(e){return GD(e)&&e.declarationList.declarations.length>0&&M(e.declarationList.declarations,(e=>ng(e)))}function sg(e){return 39===e||34===e}function lg(e,t){return 34===Em(t,e).charCodeAt(0)}function cg(e){return TD(e)||wS(e)||nC(e)||dD(e)}function dg(e){return $h(e)&&e.initializer&&TD(e.initializer)&&(57===e.initializer.operatorToken.kind||61===e.initializer.operatorToken.kind)&&e.name&&EE(e.name)&&hg(e.name,e.initializer.left)?e.initializer.right:e.initializer}function ug(e){const t=dg(e);return t&&fg(t,IE(e.name))}function pg(e){if(e&&e.parent&&TD(e.parent)&&64===e.parent.operatorToken.kind){const t=IE(e.parent.left);return fg(e.parent.right,t)||function(e,t,n){const r=TD(t)&&(57===t.operatorToken.kind||61===t.operatorToken.kind)&&fg(t.right,n);if(r&&hg(e,t.left))return r}(e.parent.left,e.parent.right,t)}if(e&&dD(e)&&Sg(e)){const t=function(e,t){return x(e.properties,(e=>QN(e)&&nC(e.name)&&"value"===e.name.escapedText&&e.initializer&&fg(e.initializer,t)))}(e.arguments[2],"prototype"===e.arguments[1].text);if(t)return t}}function fg(e,t){if(dD(e)){const t=Ty(e.expression);return 218===t.kind||219===t.kind?e:void 0}return 218===e.kind||231===e.kind||219===e.kind||sD(e)&&(0===e.properties.length||t)?e:void 0}function mg(e){const t=iN(e.parent)?e.parent.name:TD(e.parent)&&64===e.parent.operatorToken.kind?e.parent.left:void 0;return t&&fg(e.right,IE(t))&&EE(t)&&hg(t,e.left)}function _g(e){if(TD(e.parent)){const t=57!==e.parent.operatorToken.kind&&61!==e.parent.operatorToken.kind||!TD(e.parent.parent)?e.parent:e.parent.parent;if(64===t.operatorToken.kind&&nC(t.left))return t.left}else if(iN(e.parent))return e.parent.name}function hg(e,t){return av(e)&&av(t)?sv(e)===sv(t):Nc(e)&&Tg(t)&&(110===t.expression.kind||nC(t.expression)&&("window"===t.expression.escapedText||"self"===t.expression.escapedText||"global"===t.expression.escapedText))?hg(e,Cg(t)):!(!Tg(e)||!Tg(t))&&(Ng(e)===Ng(t)&&hg(e.expression,t.expression))}function gg(e){for(;gE(e,!0);)e=e.right;return e}function yg(e){return nC(e)&&"exports"===e.escapedText}function vg(e){return nC(e)&&"module"===e.escapedText}function bg(e){return(lD(e)||xg(e))&&vg(e.expression)&&"exports"===Ng(e)}function Eg(e){const t=function(e){if(dD(e)){if(!Sg(e))return 0;const t=e.arguments[0];return yg(t)||bg(t)?8:Ag(t)&&"prototype"===Ng(t)?9:7}if(64!==e.operatorToken.kind||!wS(e.left)||(t=gg(e),vD(t)&&FR(t.expression)&&"0"===t.expression.text))return 0;var t;if(Rg(e.left.expression,!0)&&"prototype"===Ng(e.left)&&sD(Lg(e)))return 6;return Mg(e.left)}(e);return 5===t||$h(e)?t:0}function Sg(e){return 3===T(e.arguments)&&lD(e.expression)&&nC(e.expression.expression)&&"Object"===kl(e.expression.expression)&&"defineProperty"===kl(e.expression.name)&&tv(e.arguments[1])&&Rg(e.arguments[0],!0)}function Tg(e){return lD(e)||xg(e)}function xg(e){return cD(e)&&tv(e.argumentExpression)}function Ag(e,t){return lD(e)&&(!t&&110===e.expression.kind||nC(e.name)&&Rg(e.expression,!0))||Ig(e,t)}function Ig(e,t){return xg(e)&&(!t&&110===e.expression.kind||EE(e.expression)||Ag(e.expression,!0))}function Rg(e,t){return EE(e)||Ag(e,t)}function Cg(e){return lD(e)?e.name:e.argumentExpression}function Dg(e){if(lD(e))return e.name;const t=Ty(e.argumentExpression);return FR(t)||np(t)?t:e}function Ng(e){const t=Dg(e);if(t){if(nC(t))return t.escapedText;if(np(t)||FR(t))return Ml(t.text)}}function Mg(e){if(110===e.expression.kind)return 4;if(bg(e))return 2;if(Rg(e.expression,!0)){if(IE(e.expression))return 3;let t=e;for(;!nC(t.expression);)t=t.expression;const n=t.expression;if(("exports"===n.escapedText||"module"===n.escapedText&&"exports"===Ng(t))&&Ag(e))return 1;if(Rg(e,!0)||cD(e)&&ov(e))return 5}return 0}function Lg(e){for(;TD(e.right);)e=e.right;return e.right}function kg(e){return TD(e)&&3===Eg(e)}function Pg(e){return $h(e)&&e.parent&&244===e.parent.kind&&(!cD(e)||xg(e))&&!!yc(e.parent)}function wg(e,t){const{valueDeclaration:n}=e;(!n||(!(33554432&t.flags)||$h(t)||33554432&n.flags)&&cg(n)&&!cg(t)||n.kind!==t.kind&&Fm(n))&&(e.valueDeclaration=t)}function Og(e){if(!e||!e.valueDeclaration)return!1;const t=e.valueDeclaration;return 262===t.kind||iN(t)&&t.initializer&&Td(t.initializer)}function Fg(e){var t,n;switch(e.kind){case 260:case 208:return null==(t=Cl(e.initializer,(e=>tg(e,!0))))?void 0:t.arguments[0];case 272:case 278:return yt(e.moduleSpecifier,np);case 271:return yt(null==(n=yt(e.moduleReference,wN))?void 0:n.expression,np);case 273:case 280:return yt(e.parent.moduleSpecifier,np);case 274:case 281:return yt(e.parent.parent.moduleSpecifier,np);case 276:return yt(e.parent.parent.parent.moduleSpecifier,np);case 205:return P_(e)?e.argument.literal:void 0;default:In.assertNever(e)}}function Wg(e){return zg(e)||In.failBadSyntaxKind(e.parent)}function zg(e){switch(e.parent.kind){case 272:case 278:return e.parent;case 283:return e.parent.parent;case 213:return L_(e.parent)||tg(e.parent,!1)?e.parent:void 0;case 201:return In.assert(zR(e)),yt(e.parent.parent,eD);default:return}}function Bg(e){switch(e.kind){case 272:case 278:return e.moduleSpecifier;case 271:return 283===e.moduleReference.kind?e.moduleReference.expression:void 0;case 205:return P_(e)?e.argument.literal:void 0;case 213:return e.arguments[0];case 267:return 11===e.name.kind?e.name:void 0;default:return In.assertNever(e)}}function Gg(e){switch(e.kind){case 272:return e.importClause&&yt(e.importClause.namedBindings,xN);case 271:return e;case 278:return e.exportClause&&yt(e.exportClause,AN);default:return In.assertNever(e)}}function jg(e){return 272===e.kind&&!!e.importClause&&!!e.importClause.name}function Vg(e,t){if(e.name){const n=t(e);if(n)return n}if(e.namedBindings){const n=xN(e.namedBindings)?t(e.namedBindings):x(e.namedBindings.elements,t);if(n)return n}}function Ug(e){if(e)switch(e.kind){case 169:case 174:case 173:case 304:case 303:case 172:case 171:return void 0!==e.questionToken}return!1}function Hg(e){const t=gM(e)?Le(e.parameters):void 0,n=yt(t&&t.name,nC);return!!n&&"new"===n.escapedText}function Kg(e){return 353===e.kind||345===e.kind||347===e.kind}function qg(e){return Kg(e)||dN(e)}function Jg(e){return VD(e)&&TD(e.expression)&&0!==Eg(e.expression)&&TD(e.expression.right)&&(57===e.expression.right.operatorToken.kind||61===e.expression.right.operatorToken.kind)?e.expression.right.right:void 0}function Xg(e){switch(e.kind){case 243:const t=$g(e);return t&&t.initializer;case 172:case 303:return e.initializer}}function $g(e){return GD(e)?Le(e.declarationList.declarations):void 0}function Yg(e){return pN(e)&&e.body&&267===e.body.kind?e.body:void 0}function Qg(e){if(e.kind>=243&&e.kind<=259)return!0;switch(e.kind){case 80:case 110:case 108:case 166:case 236:case 212:case 211:case 208:case 218:case 219:case 174:case 177:case 178:return!0;default:return!1}}function Zg(e){switch(e.kind){case 219:case 226:case 241:case 252:case 179:case 296:case 263:case 231:case 175:case 176:case 185:case 180:case 251:case 259:case 246:case 212:case 242:case 1:case 266:case 306:case 277:case 278:case 281:case 244:case 249:case 250:case 248:case 262:case 218:case 184:case 177:case 80:case 245:case 272:case 271:case 181:case 264:case 324:case 330:case 256:case 174:case 173:case 267:case 202:case 270:case 210:case 169:case 217:case 211:case 303:case 172:case 171:case 253:case 240:case 178:case 304:case 305:case 255:case 257:case 258:case 265:case 168:case 260:case 243:case 247:case 254:return!0;default:return!1}}function ey(e,t){let n;X_(e)&&Yu(e)&&Xu(e.initializer)&&(n=xe(n,ty(e,e.initializer.jsDoc)));let r=e;for(;r&&r.parent;){if(Xu(r)&&(n=xe(n,ty(e,r.jsDoc))),169===r.kind){n=xe(n,(t?Jl:ql)(r));break}if(168===r.kind){n=xe(n,(t?Yl:$l)(r));break}r=ny(r)}return n||o}function ty(e,t){const n=Fe(t);return J(t,(t=>{if(t===n){const n=G(t.tags,(t=>function(e,t){return!(zM(t)||HM(t))||!t.parent||!bM(t.parent)||!mD(t.parent.parent)||t.parent.parent===e}(e,t)));return t.tags===n?[t]:n}return G(t.tags,LM)}))}function ny(e){const t=e.parent;return 303===t.kind||277===t.kind||172===t.kind||244===t.kind&&211===e.kind||253===t.kind||Yg(t)||gE(e)?t:t.parent&&($g(t.parent)===e||gE(t))?t.parent:t.parent&&t.parent.parent&&($g(t.parent.parent)||Xg(t.parent.parent)===e||Jg(t.parent.parent))?t.parent.parent:void 0}function ry(e){if(e.symbol)return e.symbol;if(!nC(e.name))return;const t=e.name.escapedText,n=ay(e);if(!n)return;const r=L(n.parameters,(e=>80===e.name.kind&&e.name.escapedText===t));return r&&r.symbol}function oy(e){if(bM(e.parent)&&e.parent.tags){const t=L(e.parent.tags,Kg);if(t)return t}return ay(e)}function iy(e){return Ac(e,LM)}function ay(e){const t=sy(e);if(t)return SC(t)&&t.type&&Td(t.type)?t.type:Td(t)?t:void 0}function sy(e){const t=ly(e);if(t)return Jg(t)||function(e){return VD(e)&&TD(e.expression)&&64===e.expression.operatorToken.kind?gg(e.expression):void 0}(t)||Xg(t)||$g(t)||Yg(t)||t}function ly(e){const t=cy(e);if(!t)return;const n=t.parent;return n&&n.jsDoc&&t===Oe(n.jsDoc)?n:void 0}function cy(e){return Cl(e.parent,bM)}function dy(e){const t=e.name.escapedText,{typeParameters:n}=e.parent.parent.parent;return n&&L(n,(e=>e.name.escapedText===t))}function uy(e){return!!e.typeArguments}function py(e){let t=e.parent;for(;;){switch(t.kind){case 226:const n=t;return mE(n.operatorToken.kind)&&n.left===e?n:void 0;case 224:case 225:const r=t,o=r.operator;return 46===o||47===o?r:void 0;case 249:case 250:const i=t;return i.initializer===e?i:void 0;case 217:case 209:case 230:case 235:e=t;break;case 305:e=t.parent;break;case 304:if(t.name!==e)return;e=t.parent;break;case 303:if(t.name===e)return;e=t.parent;break;default:return}t=e.parent}}function fy(e){const t=py(e);if(!t)return 0;switch(t.kind){case 226:const e=t.operatorToken.kind;return 64===e||dE(e)?1:2;case 224:case 225:return 2;case 249:case 250:return 1}}function my(e){return!!py(e)}function _y(e){const t=py(e);return!!t&&gE(t,!0)&&function(e){const t=Ty(e.right);return 226===t.kind&&$L(t.operatorToken.kind)}(t)}function hy(e){switch(e.kind){case 241:case 243:case 254:case 245:case 255:case 269:case 296:case 297:case 256:case 248:case 249:case 250:case 246:case 247:case 258:case 299:return!0}return!1}function gy(e){return _D(e)||hD(e)||wd(e)||sN(e)||RC(e)}function yy(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function vy(e){return yy(e,196)}function by(e){return yy(e,217)}function Ey(e){let t;for(;e&&196===e.kind;)t=e,e=e.parent;return[t,e]}function Sy(e){for(;JC(e);)e=e.type;return e}function Ty(e,t){return EL(e,t?17:1)}function xy(e){return(211===e.kind||212===e.kind)&&((e=by(e.parent))&&220===e.kind)}function Ay(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function Iy(e){return!rM(e)&&!Vd(e)&&Lu(e.parent)&&e.parent.name===e}function Ry(e){const t=e.parent;switch(e.kind){case 11:case 15:case 9:if(yC(t))return t.parent;case 80:if(Lu(t))return t.name===e?t:void 0;if(gC(t)){const e=t.parent;return OM(e)&&e.name===t?e:void 0}{const n=t.parent;return TD(n)&&0!==Eg(n)&&(n.left.symbol||n.symbol)&&jl(n)===e?n:void 0}case 81:return Lu(t)&&t.name===e?t:void 0;default:return}}function Cy(e){return tv(e)&&167===e.parent.kind&&Lu(e.parent.parent)}function Dy(e){const t=e.parent;switch(t.kind){case 172:case 171:case 174:case 173:case 177:case 178:case 306:case 303:case 211:return t.name===e;case 166:return t.right===e;case 208:case 276:return t.propertyName===e;case 281:case 291:case 285:case 286:case 287:return!0}return!1}function Ny(e){return!!(271===e.kind||270===e.kind||273===e.kind&&e.name||274===e.kind||280===e.kind||276===e.kind||281===e.kind||277===e.kind&&ky(e))||$h(e)&&(TD(e)&&2===Eg(e)&&ky(e)||lD(e)&&TD(e.parent)&&e.parent.left===e&&64===e.parent.operatorToken.kind&&Ly(e.parent.right))}function My(e){switch(e.parent.kind){case 273:case 276:case 274:case 281:case 277:case 271:case 280:return e.parent;case 166:do{e=e.parent}while(166===e.parent.kind);return My(e)}}function Ly(e){return EE(e)||CD(e)}function ky(e){return Ly(Py(e))}function Py(e){return CN(e)?e.expression:e.right}function wy(e){return 304===e.kind?e.name:303===e.kind?e.initializer:e.parent.right}function Oy(e){const t=Fy(e);if(t&&$h(e)){const t=Zl(e);if(t)return t.class}return t}function Fy(e){const t=Gy(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function Wy(e){if($h(e))return ec(e).map((e=>e.class));{const t=Gy(e.heritageClauses,119);return null==t?void 0:t.types}}function zy(e){return cN(e)?By(e)||o:Md(e)&&ce(yn(Oy(e)),Wy(e))||o}function By(e){const t=Gy(e.heritageClauses,96);return t?t.types:void 0}function Gy(e,t){if(e)for(const n of e)if(n.token===t)return n}function jy(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function Vy(e){return 83<=e&&e<=165}function Uy(e){return 19<=e&&e<=79}function Hy(e){return Vy(e)||Uy(e)}function Ky(e){return 128<=e&&e<=165}function qy(e){return Vy(e)&&!Ky(e)}function Jy(e){return 119<=e&&e<=127}function Xy(e){const t=ss(e);return void 0!==t&&qy(t)}function $y(e){const t=ss(e);return void 0!==t&&Vy(t)}function Yy(e){const t=Pl(e);return!!t&&!Ky(t)}function Qy(e){return 2<=e&&e<=7}function Zy(e){if(!e)return 4;let t=0;switch(e.kind){case 262:case 218:case 174:e.asteriskToken&&(t|=1);case 219:Gb(e,1024)&&(t|=2)}return e.body||(t|=4),t}function ev(e){switch(e.kind){case 262:case 218:case 219:case 174:return void 0!==e.body&&void 0===e.asteriskToken&&Gb(e,1024)}return!1}function tv(e){return np(e)||FR(e)}function nv(e){return ED(e)&&(40===e.operator||41===e.operator)&&FR(e.operand)}function rv(e){const t=jl(e);return!!t&&ov(t)}function ov(e){if(167!==e.kind&&212!==e.kind)return!1;const t=cD(e)?Ty(e.argumentExpression):e.expression;return!tv(t)&&!nv(t)}function iv(e){switch(e.kind){case 80:case 81:return e.escapedText;case 11:case 15:case 9:return Ml(e.text);case 167:const t=e.expression;return tv(t)?Ml(t.text):nv(t)?41===t.operator?as(t.operator)+t.operand.text:t.operand.text:void 0;case 295:return EA(e);default:return In.assertNever(e)}}function av(e){switch(e.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function sv(e){return Nc(e)?kl(e):qN(e)?SA(e):e.text}function lv(e){return Nc(e)?e.escapedText:qN(e)?EA(e):Ml(e.text)}function cv(e){return`__@${Kz(e)}@${e.escapedName}`}function dv(e,t){return`__#${Kz(e)}@${t}`}function uv(e){return dn(e.escapedName,"__@")}function pv(e){return dn(e.escapedName,"__#")}function fv(e){return 80===e.kind&&"Symbol"===e.escapedText}function mv(e){return nC(e)?"__proto__"===kl(e):zR(e)&&"__proto__"===e.text}function _v(e,t){switch((e=EL(e)).kind){case 231:if(zG(e))return!1;break;case 218:if(e.name)return!1;break;case 219:break;default:return!1}return"function"!==typeof t||t(e)}function hv(e){switch(e.kind){case 303:return!mv(e.name);case 304:return!!e.objectAssignmentInitializer;case 260:return nC(e.name)&&!!e.initializer;case 169:case 208:return nC(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 172:return!!e.initializer;case 226:switch(e.operatorToken.kind){case 64:case 77:case 76:case 78:return nC(e.left)}break;case 277:return!0}return!1}function gv(e,t){if(!hv(e))return!1;switch(e.kind){case 303:case 260:case 169:case 208:case 172:return _v(e.initializer,t);case 304:return _v(e.objectAssignmentInitializer,t);case 226:return _v(e.right,t);case 277:return _v(e.expression,t)}}function yv(e){return"push"===e.escapedText||"unshift"===e.escapedText}function vv(e){return 169===bv(e).kind}function bv(e){for(;208===e.kind;)e=e.parent.parent;return e}function Ev(e){const t=e.kind;return 176===t||218===t||262===t||219===t||174===t||177===t||178===t||267===t||312===t}function Sv(e){return _x(e.pos)||_x(e.end)}function Tv(e){return Nl(e,rM)||e}function xv(e){const t=Rv(e),n=214===e.kind&&void 0!==e.arguments;return Av(e.kind,t,n)}function Av(e,t,n){switch(e){case 214:return n?0:1;case 224:case 221:case 222:case 220:case 223:case 227:case 229:return 1;case 226:switch(t){case 43:case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 1}}return 0}function Iv(e){const t=Rv(e),n=214===e.kind&&void 0!==e.arguments;return Cv(e.kind,t,n)}function Rv(e){return 226===e.kind?e.operatorToken.kind:224===e.kind||225===e.kind?e.operator:e.kind}function Cv(e,t,n){switch(e){case 361:return 0;case 230:return 1;case 229:return 2;case 227:return 4;case 226:switch(t){case 28:return 0;case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 3;default:return Dv(t)}case 216:case 235:case 224:case 221:case 222:case 220:case 223:return 16;case 225:return 17;case 213:return 18;case 214:return n?19:18;case 215:case 211:case 212:case 236:return 19;case 234:case 238:return 11;case 110:case 108:case 80:case 81:case 106:case 112:case 97:case 9:case 10:case 11:case 209:case 210:case 218:case 219:case 231:case 14:case 15:case 228:case 217:case 232:case 284:case 285:case 288:return 20;default:return-1}}function Dv(e){switch(e){case 61:return 4;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function Nv(e){return G(e,(e=>{switch(e.kind){case 294:return!!e.expression;case 12:return!e.containsOnlyTriviaWhiteSpaces;default:return!0}}))}function Mv(){let e=[];const t=[],n=new Map;let r=!1;return{add:function(o){let i;o.file?(i=n.get(o.file.fileName),i||(i=[],n.set(o.file.fileName,i),me(t,o.file.fileName,jt))):(r&&(r=!1,e=e.slice()),i=e);me(i,o,fT)},lookup:function(t){let r;r=t.file?n.get(t.file.fileName):e;if(!r)return;const o=je(r,t,xt,fT);if(o>=0)return r[o];return},getGlobalDiagnostics:function(){return r=!0,e},getDiagnostics:function(r){if(r)return n.get(r)||[];const o=X(t,(e=>n.get(e)));if(!e.length)return o;return o.unshift(...e),o}}}function Lv(e){return e.replace(Ap,"\\${")}function kv(e){return!!(2048&(e.templateFlags||0))}function Pv(e){return e&&!!(jR(e)?kv(e):kv(e.head)||se(e.templateSpans,(e=>kv(e.literal))))}function wv(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function Ov(e,t,n){if(0===e.charCodeAt(0)){const r=n.charCodeAt(t+e.length);return r>=48&&r<=57?"\\x00":"\\0"}return Dp.get(e)||wv(e.charCodeAt(0))}function Fv(e,t){const n=96===t?Cp:39===t?Rp:Ip;return e.replace(n,Ov)}function Wv(e,t){return e=Fv(e,t),Np.test(e)?e.replace(Np,(e=>wv(e.charCodeAt(0)))):e}function zv(e){return 0===e.charCodeAt(0)?"�":kp.get(e)||"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function Bv(e,t){const n=39===t?Lp:Mp;return e.replace(n,zv)}function Gv(e){const t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&(39===(n=e.charCodeAt(0))||34===n||96===n)?e.substring(1,t-1):e;var n}function jv(e){const t=e.charCodeAt(0);return t>=97&&t<=122||e.includes("-")}function Vv(e){const t=Pp[1];for(let n=Pp.length;n<=e;n++)Pp.push(Pp[n-1]+t);return Pp[e]}function Uv(){return Pp[1].length}function Hv(e){var t,n,r,o,i,a=!1;function s(e){const n=ls(e);n.length>1?(o=o+n.length-1,i=t.length-e.length+Fe(n),r=i-t.length===0):r=!1}function l(e){e&&e.length&&(r&&(e=Vv(n)+e,r=!1),t+=e,s(e))}function c(e){e&&(a=!1),l(e)}function d(){t="",n=0,r=!0,o=0,i=0,a=!1}return d(),{write:c,rawWrite:function(e){void 0!==e&&(t+=e,s(e),a=!1)},writeLiteral:function(e){e&&e.length&&c(e)},writeLine:function(n){r&&!n||(o++,i=(t+=e).length,r=!0,a=!1)},increaseIndent:()=>{n++},decreaseIndent:()=>{n--},getIndent:()=>n,getTextPos:()=>t.length,getLine:()=>o,getColumn:()=>r?n*Uv():t.length-i,getText:()=>t,isAtStartOfLine:()=>r,hasTrailingComment:()=>a,hasTrailingWhitespace:()=>!!t.length&&hs(t.charCodeAt(t.length-1)),clear:d,writeKeyword:c,writeOperator:c,writeParameter:c,writeProperty:c,writePunctuation:c,writeSpace:c,writeStringLiteral:c,writeSymbol:(e,t)=>c(e),writeTrailingSemicolon:c,writeComment:function(e){e&&(a=!0),l(e)},getTextPosWithWriteLine:function(){return r?t.length:t.length+e.length}}}function Kv(e){let t=!1;function n(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return{...e,writeTrailingSemicolon(){t=!0},writeLiteral(t){n(),e.writeLiteral(t)},writeStringLiteral(t){n(),e.writeStringLiteral(t)},writeSymbol(t,r){n(),e.writeSymbol(t,r)},writePunctuation(t){n(),e.writePunctuation(t)},writeKeyword(t){n(),e.writeKeyword(t)},writeOperator(t){n(),e.writeOperator(t)},writeParameter(t){n(),e.writeParameter(t)},writeSpace(t){n(),e.writeSpace(t)},writeProperty(t){n(),e.writeProperty(t)},writeComment(t){n(),e.writeComment(t)},writeLine(){n(),e.writeLine()},increaseIndent(){n(),e.increaseIndent()},decreaseIndent(){n(),e.decreaseIndent()}}}function qv(e){return!!e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames()}function Jv(e){return an(qv(e))}function Xv(e,t,n){return t.moduleName||Qv(e,t.fileName,n&&n.fileName)}function $v(e,t){return e.getCanonicalFileName(ma(t,e.getCurrentDirectory()))}function Yv(e,t,n){const r=t.getExternalModuleFileFromDeclaration(n);if(!r||r.isDeclarationFile)return;const o=Bg(n);return!o||!np(o)||Ji(o.text)||$v(e,r.path).includes($v(e,va(e.getCommonSourceDirectory())))?Xv(e,r):void 0}function Qv(e,t,n){const r=t=>e.getCanonicalFileName(t),o=ga(n?ra(n):e.getCommonSourceDirectory(),e.getCurrentDirectory(),r),i=cx(ka(o,ma(t,e.getCurrentDirectory()),o,r,!1));return n?ba(i):i}function Zv(e,t,n){const r=t.getCompilerOptions();let o;return o=r.outDir?cx(lb(e,t,r.outDir)):cx(e),o+n}function eb(e,t){return tb(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),(e=>t.getCanonicalFileName(e)))}function tb(e,t,n,r,o){const i=t.declarationDir||t.outDir,a=i?cb(e,i,n,r,o):e,s=nb(a);return cx(a)+s}function nb(e){return Qi(e,[".mjs",".mts"])?".d.mts":Qi(e,[".cjs",".cts"])?".d.cts":Qi(e,[".json"])?".d.json.ts":".d.ts"}function rb(e){return Qi(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:Qi(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:Qi(e,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function ob(e){return e.outFile||e.out}function ib(e,t){var n;if(e.paths)return e.baseUrl??In.checkDefined(e.pathsBasePath||(null==(n=t.getCurrentDirectory)?void 0:n.call(t)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function ab(e,t,n){const r=e.getCompilerOptions();if(ob(r)){const t=Vp(r),o=r.emitDeclarationOnly||2===t||4===t;return G(e.getSourceFiles(),(t=>(o||!uP(t))&&sb(t,e,n)))}return G(void 0===t?e.getSourceFiles():[t],(t=>sb(t,e,n)))}function sb(e,t,n){const r=t.getCompilerOptions();if(r.noEmitForJsFiles&&Jh(e))return!1;if(e.isDeclarationFile)return!1;if(t.isSourceFileFromExternalLibrary(e))return!1;if(n)return!0;if(t.isSourceOfProjectReferenceRedirect(e.fileName))return!1;if(!x_(e))return!0;if(t.getResolvedProjectReferenceToRedirect(e.fileName))return!1;if(ob(r))return!0;if(!r.outDir)return!1;if(r.rootDir||r.composite&&r.configFilePath){const n=ma(wV(r,(()=>[]),t.getCurrentDirectory(),t.getCanonicalFileName),t.getCurrentDirectory()),o=cb(e.fileName,r.outDir,t.getCurrentDirectory(),n,t.getCanonicalFileName);if(0===Ia(e.fileName,o,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames()))return!1}return!0}function lb(e,t,n){return cb(e,n,t.getCurrentDirectory(),t.getCommonSourceDirectory(),(e=>t.getCanonicalFileName(e)))}function cb(e,t,n,r,o){let i=ma(e,n);return i=0===o(i).indexOf(o(r))?i.substring(r.length):i,ua(t,i)}function db(e,t,n,r,o,i,a){e.writeFile(n,r,o,(e=>{t.add(sT(Oa.Could_not_write_file_0_Colon_1,n,e))}),i,a)}function ub(e,t,n){if(e.length>na(e)&&!n(e)){ub(ra(e),t,n),t(e)}}function pb(e,t,n,r,o,i){try{r(e,t,n)}catch{ub(ra(_a(e)),o,i),r(e,t,n)}}function fb(e,t){return fs(us(e),t)}function mb(e,t){return fs(e,t)}function _b(e){return L(e.members,(e=>RC(e)&&am(e.body)))}function hb(e){if(e&&e.parameters.length>0){const t=2===e.parameters.length&&vb(e.parameters[0]);return e.parameters[t?1:0]}}function gb(e){const t=hb(e);return t&&t.type}function yb(e){if(e.parameters.length&&!SM(e)){const t=e.parameters[0];if(vb(t))return t}}function vb(e){return bb(e.name)}function bb(e){return!!e&&80===e.kind&&Tb(e)}function Eb(e){return!!Cl(e,(e=>186===e.kind||80!==e.kind&&166!==e.kind&&"quit"))}function Sb(e){if(!bb(e))return!1;for(;gC(e.parent)&&e.parent.left===e;)e=e.parent;return 186===e.parent.kind}function Tb(e){return"this"===e.escapedText}function xb(e,t){let n,r,o,i;return rv(t)?(n=t,177===t.kind?o=t:178===t.kind?i=t:In.fail("Accessor has wrong kind")):x(e,(e=>{if(Ld(e)&&jb(e)===jb(t)){iv(e.name)===iv(t.name)&&(n?r||(r=e):n=e,177!==e.kind||o||(o=e),178!==e.kind||i||(i=e))}})),{firstAccessor:n,secondAccessor:r,getAccessor:o,setAccessor:i}}function Ab(e){if(!$h(e)&&sN(e))return;const t=e.type;return t||!$h(e)?t:qc(e)?e.typeExpression&&e.typeExpression.type:vc(e)}function Ib(e){return e.type}function Rb(e){return SM(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||($h(e)?bc(e):void 0)}function Cb(e){return J(Sc(e),(e=>function(e){return BM(e)&&!(327===e.parent.kind&&(e.parent.tags.some(Kg)||e.parent.tags.some(LM)))}(e)?e.typeParameters:void 0))}function Db(e){const t=hb(e);return t&&Ab(t)}function Nb(e,t,n,r){Mb(e,t,n.pos,r)}function Mb(e,t,n,r){r&&r.length&&n!==r[0].pos&&mb(e,n)!==mb(e,r[0].pos)&&t.writeLine()}function Lb(e,t,n,r){n!==r&&mb(e,n)!==mb(e,r)&&t.writeLine()}function kb(e,t,n,r,o,i,a,s){if(r&&r.length>0){o&&n.writeSpace(" ");let l=!1;for(const o of r)l&&(n.writeSpace(" "),l=!1),s(e,t,n,o.pos,o.end,a),o.hasTrailingNewLine?n.writeLine():l=!0;l&&i&&n.writeSpace(" ")}}function Pb(e,t,n,r,o,i,a){let s,l;if(a?0===o.pos&&(s=G(Ps(e,o.pos),(function(t){return gm(e,t.pos)}))):s=Ps(e,o.pos),s){const a=[];let c;for(const e of s){if(c){const n=mb(t,c.end);if(mb(t,e.pos)>=n+2)break}a.push(e),c=e}if(a.length){const c=mb(t,Fe(a).end);mb(t,Ts(e,o.pos))>=c+2&&(Nb(t,n,o,s),kb(e,t,n,a,!1,!0,i,r),l={nodePos:o.pos,detachedCommentEndPos:Fe(a).end})}}return l}function wb(e,t,n,r,o,i){if(42===e.charCodeAt(r+1)){const a=ps(t,r),s=t.length;let l;for(let c=r,d=a.line;c<o;d++){const u=d+1===s?e.length+1:t[d+1];if(c!==r){void 0===l&&(l=Fb(e,t[a.line],r));const o=n.getIndent()*Uv()-l+Fb(e,c,u);if(o>0){let e=o%Uv();const t=Vv((o-e)/Uv());for(n.rawWrite(t);e;)n.rawWrite(" "),e--}else n.rawWrite("")}Ob(e,o,n,i,c,u),c=u}}else n.writeComment(e.substring(r,o))}function Ob(e,t,n,r,o,i){const a=Math.min(t,i-1),s=e.substring(o,a).trim();s?(n.writeComment(s),a!==t&&n.writeLine()):n.rawWrite(r)}function Fb(e,t,n){let r=0;for(;t<n&&gs(e.charCodeAt(t));t++)9===e.charCodeAt(t)?r+=Uv()-r%Uv():r++;return r}function Wb(e){return 0!==Zb(e)}function zb(e){return 0!==tE(e)}function Bb(e,t){return!!$b(e,t)}function Gb(e,t){return!!Yb(e,t)}function jb(e){return Nd(e)&&Vb(e)||IC(e)}function Vb(e){return Gb(e,256)}function Ub(e){return Bb(e,16)}function Hb(e){return Gb(e,64)}function Kb(e){return Gb(e,128)}function qb(e){return Gb(e,512)}function Jb(e){return Bb(e,8)}function Xb(e){return Gb(e,32768)}function $b(e,t){return Zb(e)&t}function Yb(e,t){return tE(e)&t}function Qb(e,t,n){return e.kind>=0&&e.kind<=165?0:(536870912&e.modifierFlagsCache||(e.modifierFlagsCache=536870912|iE(e)),n||t&&$h(e)?(268435456&e.modifierFlagsCache||!e.parent||(e.modifierFlagsCache|=268435456|nE(e)),rE(e.modifierFlagsCache)):65535&e.modifierFlagsCache)}function Zb(e){return Qb(e,!0)}function eE(e){return Qb(e,!0,!0)}function tE(e){return Qb(e,!1)}function nE(e){let t=0;return e.parent&&!bC(e)&&($h(e)&&(rc(e)&&(t|=8388608),ic(e)&&(t|=16777216),sc(e)&&(t|=33554432),cc(e)&&(t|=67108864),dc(e)&&(t|=134217728)),pc(e)&&(t|=65536)),t}function rE(e){return 131071&e|(260046848&e)>>>23}function oE(e){return iE(e)|function(e){return rE(nE(e))}(e)}function iE(e){let t=vk(e)?aE(e.modifiers):0;return(8&e.flags||80===e.kind&&4096&e.flags)&&(t|=32),t}function aE(e){let t=0;if(e)for(const n of e)t|=sE(n.kind);return t}function sE(e){switch(e){case 126:return 256;case 125:return 1;case 124:return 4;case 123:return 2;case 128:return 64;case 129:return 512;case 95:return 32;case 138:return 128;case 87:return 4096;case 90:return 2048;case 134:return 1024;case 148:return 8;case 164:return 16;case 103:return 8192;case 147:return 16384;case 170:return 32768}return 0}function lE(e){return 57===e||56===e}function cE(e){return lE(e)||54===e}function dE(e){return 76===e||77===e||78===e}function uE(e){return TD(e)&&dE(e.operatorToken.kind)}function pE(e){return lE(e)||61===e}function fE(e){return TD(e)&&pE(e.operatorToken.kind)}function mE(e){return e>=64&&e<=79}function _E(e){const t=hE(e);return t&&!t.isImplements?t.class:void 0}function hE(e){if(ND(e)){if($N(e.parent)&&Md(e.parent.parent))return{class:e.parent.parent,isImplements:119===e.parent.token};if(TM(e.parent)){const t=sy(e.parent);if(t&&Md(t))return{class:t,isImplements:!1}}}}function gE(e,t){return TD(e)&&(t?64===e.operatorToken.kind:mE(e.operatorToken.kind))&&iu(e.left)}function yE(e){return gE(e.parent)&&e.parent.left===e}function vE(e){if(gE(e,!0)){const t=e.left.kind;return 210===t||209===t}return!1}function bE(e){return void 0!==_E(e)}function EE(e){return 80===e.kind||xE(e)}function SE(e){switch(e.kind){case 80:return e;case 166:do{e=e.left}while(80!==e.kind);return e;case 211:do{e=e.expression}while(80!==e.kind);return e}}function TE(e){return 80===e.kind||110===e.kind||108===e.kind||236===e.kind||211===e.kind&&TE(e.expression)||217===e.kind&&TE(e.expression)}function xE(e){return lD(e)&&nC(e.name)&&EE(e.expression)}function AE(e){if(lD(e)){const t=AE(e.expression);if(void 0!==t)return t+"."+c_(e.name)}else if(cD(e)){const t=AE(e.expression);if(void 0!==t&&Ed(e.argumentExpression))return t+"."+iv(e.argumentExpression)}else{if(nC(e))return Ll(e.escapedText);if(qN(e))return SA(e)}}function IE(e){return Ag(e)&&"prototype"===Ng(e)}function RE(e){return 166===e.parent.kind&&e.parent.right===e||211===e.parent.kind&&e.parent.name===e||236===e.parent.kind&&e.parent.name===e}function CE(e){return!!e.parent&&(lD(e.parent)&&e.parent.name===e||cD(e.parent)&&e.parent.argumentExpression===e)}function DE(e){return gC(e.parent)&&e.parent.right===e||lD(e.parent)&&e.parent.name===e||lM(e.parent)&&e.parent.right===e}function NE(e){return TD(e)&&104===e.operatorToken.kind}function ME(e){return NE(e.parent)&&e===e.parent.right}function LE(e){return 210===e.kind&&0===e.properties.length}function kE(e){return 209===e.kind&&0===e.elements.length}function PE(e){if(function(e){return e&&T(e.declarations)>0&&Gb(e.declarations[0],2048)}(e)&&e.declarations)for(const t of e.declarations)if(t.localSymbol)return t.localSymbol}function wE(e){return L(hf,(t=>Yi(e,t)))}function OE(e){let t="";const n=function(e){const t=[],n=e.length;for(let r=0;r<n;r++){const n=e.charCodeAt(r);n<128?t.push(n):n<2048?(t.push(n>>6|192),t.push(63&n|128)):n<65536?(t.push(n>>12|224),t.push(n>>6&63|128),t.push(63&n|128)):n<131072?(t.push(n>>18|240),t.push(n>>12&63|128),t.push(n>>6&63|128),t.push(63&n|128)):In.assert(!1,"Unexpected code point")}return t}(e);let r=0;const o=n.length;let i,a,s,l;for(;r<o;)i=n[r]>>2,a=(3&n[r])<<4|n[r+1]>>4,s=(15&n[r+1])<<2|n[r+2]>>6,l=63&n[r+2],r+1>=o?s=l=64:r+2>=o&&(l=64),t+=wp.charAt(i)+wp.charAt(a)+wp.charAt(s)+wp.charAt(l),r+=3;return t}function FE(e,t){return e&&e.base64encode?e.base64encode(t):OE(t)}function WE(e,t){if(e&&e.base64decode)return e.base64decode(t);const n=t.length,r=[];let o=0;for(;o<n&&t.charCodeAt(o)!==wp.charCodeAt(64);){const e=wp.indexOf(t[o]),n=wp.indexOf(t[o+1]),i=wp.indexOf(t[o+2]),a=wp.indexOf(t[o+3]),s=(63&e)<<2|n>>4&3,l=(15&n)<<4|i>>2&15,c=(3&i)<<6|63&a;0===l&&0!==i?r.push(s):0===c&&0!==a?r.push(s,l):r.push(s,l,c),o+=4}return function(e){let t="",n=0;const r=e.length;for(;n<r;){const r=e[n];if(r<128)t+=String.fromCharCode(r),n++;else if(192===(192&r)){let o=63&r;n++;let i=e[n];for(;128===(192&i);)o=o<<6|63&i,n++,i=e[n];t+=String.fromCharCode(o)}else t+=String.fromCharCode(r),n++}return t}(r)}function zE(e,t){const n=ht(t)?t:t.readFile(e);if(!n)return;const r=Mw(e,n);return r.error?void 0:r.config}function BE(e,t){return zE(e,t)||{}}function GE(e){try{return JSON.parse(e)}catch{return}}function jE(e,t){return!t.directoryExists||t.directoryExists(e)}function VE(e){switch(e.newLine){case 0:return Op;case 1:case void 0:return Fp}}function UE(e,t=e){return In.assert(t>=e||-1===t),{pos:e,end:t}}function HE(e,t){return UE(e.pos,t)}function KE(e,t){return UE(t,e.end)}function qE(e){const t=vk(e)?k(e.modifiers,EC):void 0;return t&&!_x(t.end)?KE(e,t.end):e}function JE(e){if(TC(e)||AC(e))return KE(e,e.name.pos);const t=vk(e)?Oe(e.modifiers):void 0;return t&&!_x(t.end)?KE(e,t.end):qE(e)}function XE(e){return e.pos===e.end}function $E(e,t){return UE(e,e+as(t).length)}function YE(e,t){return eS(e,e,t)}function QE(e,t,n){return iS(aS(e,n,!1),aS(t,n,!1),n)}function ZE(e,t,n){return iS(e.end,t.end,n)}function eS(e,t,n){return iS(aS(e,n,!1),t.end,n)}function tS(e,t,n){return iS(e.end,aS(t,n,!1),n)}function nS(e,t,n,r){const o=aS(t,n,r);return ms(n,e.end,o)}function rS(e,t,n){return ms(n,e.end,t.end)}function oS(e,t){return!iS(e.pos,e.end,t)}function iS(e,t,n){return 0===ms(n,e,t)}function aS(e,t,n){return _x(e.pos)?-1:Ts(t.text,e.pos,!1,n)}function sS(e,t,n,r){const o=Ts(n.text,e,!1,r),i=function(e,t=0,n){for(;e-- >t;)if(!hs(n.text.charCodeAt(e)))return e}(o,t,n);return ms(n,i??t,o)}function lS(e,t,n,r){const o=Ts(n.text,e,!1,r);return ms(n,e,Math.min(t,o))}function cS(e){const t=Nl(e);if(t)switch(t.parent.kind){case 266:case 267:return t===t.parent.name}return!1}function dS(e){return G(e.declarations,uS)}function uS(e){return iN(e)&&void 0!==e.initializer}function pS(e){return e.watch&&He(e,"watch")}function fS(e){e.close()}function mS(e){return 33554432&e.flags?e.links.checkFlags:0}function _S(e,t=!1){if(e.valueDeclaration){const n=Sl(t&&e.declarations&&L(e.declarations,DC)||32768&e.flags&&L(e.declarations,CC)||e.valueDeclaration);return e.parent&&32&e.parent.flags?n:-8&n}if(6&mS(e)){const t=e.links.checkFlags;return(1024&t?2:256&t?1:4)|(2048&t?256:0)}return 4194304&e.flags?257:0}function hS(e,t){return 2097152&e.flags?t.getAliasedSymbol(e):e}function gS(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function yS(e){return 1===bS(e)}function vS(e){return 0!==bS(e)}function bS(e){const{parent:t}=e;switch(null==t?void 0:t.kind){case 217:case 209:return bS(t);case 225:case 224:const{operator:n}=t;return 46===n||47===n?2:0;case 226:const{left:r,operatorToken:o}=t;return r===e&&mE(o.kind)?64===o.kind?1:2:0;case 211:return t.name!==e?0:bS(t);case 303:{const n=bS(t.parent);return e===t.name?function(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return In.assertNever(e)}}(n):n}case 304:return e===t.objectAssignmentInitializer?0:bS(t.parent);default:return 0}}function ES(e,t){if(!e||!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if("object"===typeof e[n]){if(!ES(e[n],t[n]))return!1}else if("function"!==typeof e[n]&&e[n]!==t[n])return!1;return!0}function SS(e,t){e.forEach(t),e.clear()}function TS(e,t,n){const{onDeleteValue:r,onExistingValue:o}=n;e.forEach(((n,i)=>{var a;(null==t?void 0:t.has(i))?o&&o(n,null==(a=t.get)?void 0:a.call(t,i),i):(e.delete(i),r(n,i))}))}function xS(e,t,n){TS(e,t,n);const{createNewValue:r}=n;null==t||t.forEach(((t,n)=>{e.has(n)||e.set(n,r(n,t))}))}function AS(e){if(32&e.flags){const t=IS(e);return!!t&&Gb(t,64)}return!1}function IS(e){var t;return null==(t=e.declarations)?void 0:t.find(Md)}function RS(e){return 3899393&e.flags?e.objectFlags:0}function CS(e,t){return!!Pa(e,(e=>!!t(e)||void 0))}function DS(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&_N(e.declarations[0])}function NS({moduleSpecifier:e}){return zR(e)?e.text:xm(e)}function MS(e){let t;return oP(e,(e=>{am(e)&&(t=e)}),(e=>{for(let n=e.length-1;n>=0;n--)if(am(e[n])){t=e[n];break}})),t}function LS(e,t,n=!0){return!e.has(t)&&(e.set(t,n),!0)}function kS(e){return Md(e)||cN(e)||WC(e)}function PS(e){return e>=182&&e<=205||133===e||159===e||150===e||163===e||151===e||136===e||154===e||155===e||116===e||157===e||146===e||141===e||233===e||319===e||320===e||321===e||322===e||323===e||324===e||325===e}function wS(e){return 211===e.kind||212===e.kind}function OS(e){return 211===e.kind?e.name:(In.assert(212===e.kind),e.argumentExpression)}function FS(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}}function WS(e){return 275===e.kind||279===e.kind}function zS(e){for(;wS(e);)e=e.expression;return e}function BS(e,t){if(wS(e.parent)&&CE(e))return function e(n){if(211===n.kind){const e=t(n.name);if(void 0!==e)return e}else if(212===n.kind){if(!nC(n.argumentExpression)&&!np(n.argumentExpression))return;{const e=t(n.argumentExpression);if(void 0!==e)return e}}if(wS(n.expression))return e(n.expression);if(nC(n.expression))return t(n.expression);return}(e.parent)}function GS(e,t){for(;;){switch(e.kind){case 225:e=e.operand;continue;case 226:e=e.left;continue;case 227:e=e.condition;continue;case 215:e=e.tag;continue;case 213:if(t)return e;case 234:case 212:case 211:case 235:case 360:case 238:e=e.expression;continue}return e}}function jS(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.lastAssignmentPos=void 0,this.links=void 0}function VS(e,t){this.flags=t,(In.isDebugging||kr)&&(this.checker=e)}function US(e,t){this.flags=t,In.isDebugging&&(this.checker=e)}function HS(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function KS(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function qS(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function JS(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n||(e=>e)}function XS(e){zp.push(e),e(Wp)}function $S(e){Object.assign(Wp,e),x(zp,(e=>e(Wp)))}function YS(e,t){return e.replace(/{(\d+)}/g,((e,n)=>""+In.checkDefined(t[+n])))}function QS(e){Bp=e}function ZS(e){!Bp&&e&&(Bp=e())}function eT(e){return Bp&&Bp[e.key]||e.message}function tT(e,t,n,r,o,...i){n+r>t.length&&(r=t.length-n),__(t,n,r);let a=eT(o);return se(i)&&(a=YS(a,i)),{file:void 0,start:n,length:r,messageText:a,category:o.category,code:o.code,reportsUnnecessary:o.reportsUnnecessary,fileName:e}}function nT(e){return void 0===e.file&&void 0!==e.start&&void 0!==e.length&&"string"===typeof e.fileName}function rT(e,t){const n=t.fileName||"",r=t.text.length;In.assertEqual(e.fileName,n),In.assertLessThanOrEqual(e.start,r),In.assertLessThanOrEqual(e.start+e.length,r);const o={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){o.relatedInformation=[];for(const i of e.relatedInformation)nT(i)&&i.fileName===n?(In.assertLessThanOrEqual(i.start,r),In.assertLessThanOrEqual(i.start+i.length,r),o.relatedInformation.push(rT(i,t))):o.relatedInformation.push(i)}return o}function oT(e,t){const n=[];for(const r of e)n.push(rT(r,t));return n}function iT(e,t,n,r,...o){__(e.text,t,n);let i=eT(r);return se(o)&&(i=YS(i,o)),{file:e,start:t,length:n,messageText:i,category:r.category,code:r.code,reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated}}function aT(e,...t){let n=eT(e);return se(t)&&(n=YS(n,t)),n}function sT(e,...t){let n=eT(e);return se(t)&&(n=YS(n,t)),{file:void 0,start:void 0,length:void 0,messageText:n,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function lT(e,t){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText,relatedInformation:t}}function cT(e,t,...n){let r=eT(t);return se(n)&&(r=YS(r,n)),{messageText:r,category:t.category,code:t.code,next:void 0===e||Array.isArray(e)?e:[e]}}function dT(e,t){let n=e;for(;n.next;)n=n.next[0];n.next=[t]}function uT(e){return e.file?e.file.path:void 0}function pT(e,t){return fT(e,t)||function(e,t){if(!e.relatedInformation&&!t.relatedInformation)return 0;if(e.relatedInformation&&t.relatedInformation)return Ft(e.relatedInformation.length,t.relatedInformation.length)||x(e.relatedInformation,((e,n)=>pT(e,t.relatedInformation[n])))||0;return e.relatedInformation?-1:1}(e,t)||0}function fT(e,t){return jt(uT(e),uT(t))||Ft(e.start,t.start)||Ft(e.length,t.length)||Ft(e.code,t.code)||mT(e.messageText,t.messageText)||0}function mT(e,t){if("string"===typeof e&&"string"===typeof t)return jt(e,t);if("string"===typeof e)return-1;if("string"===typeof t)return 1;let n=jt(e.messageText,t.messageText);if(n)return n;if(!e.next&&!t.next)return 0;if(!e.next)return-1;if(!t.next)return 1;const r=Math.min(e.next.length,t.next.length);for(let o=0;o<r;o++)if(n=mT(e.next[o],t.next[o]),n)return n;return e.next.length<t.next.length?-1:e.next.length>t.next.length?1:0}function _T(e){return 4===e||2===e||1===e||6===e?1:0}function hT(e){if(2&e.transformFlags)return ju(e)||BN(e)?e:oP(e,hT)}function gT(e){return e.isDeclarationFile?void 0:hT(e)}function yT(e){return!(99!==e.impliedNodeFormat&&!Qi(e.fileName,[".cjs",".cts",".mjs",".mts"])||e.isDeclarationFile)||void 0}function vT(e){switch(Hp(e)){case 3:return e=>{e.externalModuleIndicator=Wk(e)||!e.isDeclarationFile||void 0};case 1:return e=>{e.externalModuleIndicator=Wk(e)};case 2:const t=[Wk];4!==e.jsx&&5!==e.jsx||t.push(gT),t.push(yT);const n=_n(...t);return e=>{e.externalModuleIndicator=n(e)}}}function bT(e){return e>=5&&e<=99}function ET(e){switch(Vp(e)){case 0:case 4:case 3:return!1}return!0}function ST(e){return e.verbatimModuleSyntax||e.isolatedModules&&e.preserveValueImports}function TT(e){return!1===e.allowUnreachableCode}function xT(e){return!1===e.allowUnusedLabels}function AT(e){return e>=3&&e<=99||100===e}function IT(e,t){return void 0===e[t]?!!e.strict:!!e[t]}function RT(e){return!1!==e.useDefineForClassFields&&jp(e)>=9}function CT(e,t){return Of(t,e,wP)}function DT(e,t){return Of(t,e,OP)}function NT(e,t){return Of(t,e,FP)}function MT(e,t){return t.strictFlag?IT(e,t.name):t.allowJsFlag?nf(e):e[t.name]}function LT(e){const t=e.jsx;return 2===t||4===t||5===t}function kT(e,t){const n=null==t?void 0:t.pragmas.get("jsximportsource"),r=mt(n)?n[n.length-1]:n;return 4===e.jsx||5===e.jsx||e.jsxImportSource||r?(null==r?void 0:r.arguments.factory)||e.jsxImportSource||"react":void 0}function PT(e,t){return e?`${e}/${5===t.jsx?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function wT(e){let t=!1;for(let n=0;n<e.length;n++)if(42===e.charCodeAt(n)){if(t)return!1;t=!0}return!0}function OT(e,t){let n,r,i,a=!1;return{getSymlinkedFiles:()=>i,getSymlinkedDirectories:()=>n,getSymlinkedDirectoriesByRealpath:()=>r,setSymlinkedFile:(e,t)=>(i||(i=new Map)).set(e,t),setSymlinkedDirectory:(o,i)=>{let a=ga(o,e,t);Xx(a)||(a=va(a),!1===i||(null==n?void 0:n.has(a))||(r||(r=ct())).add(i.realPath,o),(n||(n=new Map)).set(a,i))},setSymlinksFromResolutions(e,t,n){In.assert(!a),a=!0,e((e=>s(this,e.resolvedModule))),t((e=>s(this,e.resolvedTypeReferenceDirective))),n.forEach((e=>s(this,e.resolvedTypeReferenceDirective)))},hasProcessedResolutions:()=>a};function s(n,r){if(!r||!r.originalPath||!r.resolvedFileName)return;const{resolvedFileName:i,originalPath:a}=r;n.setSymlinkedFile(ga(a,e,t),i);const[s,l]=function(e,t,n,r){const o=sa(ma(e,n)),i=sa(ma(t,n));let a=!1;for(;o.length>=2&&i.length>=2&&!FT(o[o.length-2],r)&&!FT(i[i.length-2],r)&&r(o[o.length-1])===r(i[i.length-1]);)o.pop(),i.pop(),a=!0;return a?[la(o),la(i)]:void 0}(i,a,e,t)||o;s&&l&&n.setSymlinkedDirectory(l,{real:va(s),realPath:va(ga(s,e,t))})}}function FT(e,t){return void 0!==e&&("node_modules"===t(e)||dn(e,"@"))}function WT(e,t,n){const r=pn(e,t,n);return void 0===r?void 0:Vi((o=r).charCodeAt(0))?o.slice(1):void 0;var o}function zT(e){return e.replace(of,BT)}function BT(e){return"\\"+e}function GT(e,t,n){const r=jT(e,t,n);if(!r||!r.length)return;return`^(${r.map((e=>`(${e})`)).join("|")})${"exclude"===n?"($|/)":"$"}`}function jT(e,t,n){if(void 0!==e&&0!==e.length)return J(e,(e=>e&&HT(e,t,n,pf[n])))}function VT(e){return!/[.*?]/.test(e)}function UT(e,t,n){const r=e&&HT(e,t,n,pf[n]);return r&&`^(${r})${"exclude"===n?"($|/)":"$"}`}function HT(e,t,n,{singleAsteriskRegexFragment:r,doubleAsteriskRegexFragment:o,replaceWildcardCharacter:i}=pf[n]){let a="",s=!1;const l=fa(e,t),c=Fe(l);if("exclude"!==n&&"**"===c)return;l[0]=ya(l[0]),VT(c)&&l.push("**","*");let d=0;for(let u of l){if("**"===u)a+=o;else if("directories"===n&&(a+="(",d++),s&&(a+=Fi),"exclude"!==n){let e="";42===u.charCodeAt(0)?(e+="([^./]"+r+")?",u=u.substr(1)):63===u.charCodeAt(0)&&(e+="[^./]",u=u.substr(1)),e+=u.replace(of,i),e!==u&&(a+=lf),a+=e}else a+=u.replace(of,i);s=!0}for(;d>0;)a+=")?",d--;return a}function KT(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function qT(e,t,n,r,o){e=_a(e);const i=ua(o=_a(o),e);return{includeFilePatterns:U(jT(n,i,"files"),(e=>`^${e}$`)),includeFilePattern:GT(n,i,"files"),includeDirectoryPattern:GT(n,i,"directories"),excludePattern:GT(t,i,"exclude"),basePaths:$T(e,n,r)}}function JT(e,t){return new RegExp(e,t?"":"i")}function XT(e,t,n,r,o,i,a,s,l){e=_a(e),i=_a(i);const c=qT(e,n,r,o,i),d=c.includeFilePatterns&&c.includeFilePatterns.map((e=>JT(e,o))),u=c.includeDirectoryPattern&&JT(c.includeDirectoryPattern,o),p=c.excludePattern&&JT(c.excludePattern,o),f=d?d.map((()=>[])):[[]],m=new Map,_=an(o);for(const g of c.basePaths)h(g,ua(i,g),a);return q(f);function h(e,n,r){const o=_(l(n));if(m.has(o))return;m.set(o,!0);const{files:i,directories:a}=s(e);for(const s of Ce(i,jt)){const r=ua(e,s),o=ua(n,s);if((!t||Qi(r,t))&&(!p||!p.test(o)))if(d){const e=P(d,(e=>e.test(o)));-1!==e&&f[e].push(r)}else f[0].push(r)}if(void 0===r||0!==--r)for(const t of Ce(a,jt)){const o=ua(e,t),i=ua(n,t);u&&!u.test(i)||p&&p.test(i)||h(o,i,r)}}}function $T(e,t,n){const r=[e];if(t){const o=[];for(const n of t){const t=Hi(n)?n:_a(ua(e,n));o.push(YT(t))}o.sort(Vt(!n));for(const t of o)M(r,(r=>!Ra(r,t,e,!n)))&&r.push(t)}return r}function YT(e){const t=z(e,af);return t<0?$i(e)?ya(ra(e)):e:e.substring(0,e.lastIndexOf(Fi,t))}function QT(e,t){return t||ZT(e)||3}function ZT(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}function ex(e,t){const n=e&&nf(e);if(!t||0===t.length)return n?vf:ff;const r=n?vf:ff,o=q(r);return[...r,...Z(t,(e=>{return 7===e.scriptKind||n&&(1===(t=e.scriptKind)||2===t)&&!o.includes(e.extension)?[e.extension]:void 0;var t}))]}function tx(e,t){return e&&Yp(e)?t===vf?bf:t===ff?_f:[...t,[".json"]]:t}function nx(e){return se(yf,(t=>Yi(e,t)))}function rx(e){return se(mf,(t=>Yi(e,t)))}function ox({imports:e},t=_n(nx,rx)){return I(e,(({text:e})=>Ji(e)&&!Qi(e,Tf)?t(e):void 0))||!1}function ix(e,t,n,r){const i=Up(n),a=3<=i&&i<=99;return"js"===e||99===t&&a?NW(n)&&2!==s()?3:2:"minimal"===e?0:"index"===e?1:NW(n)?s():ox(r)?2:0;function s(){let e=!1;const i=r.imports.length?r.imports:Jh(r)?function(e){let t,n=0;for(const r of e.statements){if(n>3)break;ag(r)?t=ce(t,r.declarationList.declarations.map((e=>e.initializer))):VD(r)&&tg(r.expression,!0)?t=Ee(t,r.expression):n++}return t||o}(r).map((e=>e.arguments[0])):o;for(const o of i)if(Ji(o.text)){if(a&&1===t&&99===VU(r,o,n))continue;if(Qi(o.text,Tf))continue;if(rx(o.text))return 3;nx(o.text)&&(e=!0)}return e?2:0}}function ax(e,t,n){if(!e)return!1;const r=ex(t,n);for(const o of q(tx(t,r)))if(Yi(e,o))return!0;return!1}function sx(e){const t=e.match(/\//g);return t?t.length:0}function lx(e,t){return Ft(sx(e),sx(t))}function cx(e){for(const t of Af){const n=dx(e,t);if(void 0!==n)return n}return e}function dx(e,t){return Yi(e,t)?ux(e,t):void 0}function ux(e,t){return e.substring(0,e.length-t.length)}function px(e,t){return Ea(e,t,Af,!1)}function fx(e){const t=e.indexOf("*");return-1===t?e:-1!==e.indexOf("*",t+1)?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function mx(e){return Z(qe(e),(e=>fx(e)))}function _x(e){return!(e>=0)}function hx(e){return".ts"===e||".tsx"===e||".d.ts"===e||".cts"===e||".mts"===e||".d.mts"===e||".d.cts"===e||dn(e,".d.")&&Yt(e,".ts")}function gx(e){return hx(e)||".json"===e}function yx(e){const t=bx(e);return void 0!==t?t:In.fail(`File ${e} has unknown extension.`)}function vx(e){return void 0!==bx(e)}function bx(e){return L(Af,(t=>Yi(e,t)))}function Ex(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}function Sx(e,t){const n=[];for(const r of e){if(r===t)return t;ht(r)||n.push(r)}return cn(n,(e=>e),t)}function Tx(e,t){const n=e.indexOf(t);return In.assert(-1!==n),e.slice(n)}function xx(e,...t){return t.length?(e.relatedInformation||(e.relatedInformation=[]),In.assert(e.relatedInformation!==o,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t),e):e}function Ax(e,t){In.assert(0!==e.length);let n=t(e[0]),r=n;for(let o=1;o<e.length;o++){const i=t(e[o]);i<n?n=i:i>r&&(r=i)}return{min:n,max:r}}function Ix(e){return{pos:vm(e),end:e.end}}function Rx(e,t){return{pos:t.pos-1,end:Math.min(e.text.length,Ts(e.text,t.end)+1)}}function Cx(e,t,n){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||n.isSourceOfProjectReferenceRedirect(e.fileName)}function Dx(e,t){return e===t||"object"===typeof e&&null!==e&&"object"===typeof t&&null!==t&&Ze(e,t,Dx)}function Nx(e){let t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:const n=e.length-1;let r=0;for(;48===e.charCodeAt(r);)r++;return e.slice(r,n)||"0"}const n=e.length-1,r=(n-2)*t,o=new Uint16Array((r>>>4)+(15&r?1:0));for(let l=n-1,c=0;l>=2;l--,c+=t){const t=c>>>4,n=e.charCodeAt(l),r=(n<=57?n-48:10+n-(n<=70?65:97))<<(15&c);o[t]|=r;const i=r>>>16;i&&(o[t+1]|=i)}let i="",a=o.length-1,s=!0;for(;s;){let e=0;s=!1;for(let t=a;t>=0;t--){const n=e<<16|o[t],r=n/10|0;o[t]=r,e=n-10*r,r&&!s&&(a=t,s=!0)}i=e+i}return i}function Mx({negative:e,base10Value:t}){return(e&&"0"!==t?"-":"")+t}function Lx(e){if(Px(e,!1))return kx(e)}function kx(e){const t=e.startsWith("-");return{negative:t,base10Value:Nx(`${t?e.slice(1):e}n`)}}function Px(e,t){if(""===e)return!1;const n=Bs(99,!1);let r=!0;n.setOnError((()=>r=!1)),n.setText(e+"n");let o=n.scan();const i=41===o;i&&(o=n.scan());const a=n.getTokenFlags();return r&&10===o&&n.getTokenEnd()===e.length+1&&!(512&a)&&(!t||e===Mx({negative:i,base10Value:Nx(n.getTokenValue())}))}function wx(e){return!!(33554432&e.flags)||jh(e)||function(e){if(80!==e.kind)return!1;const t=Cl(e.parent,(e=>{switch(e.kind){case 298:return!0;case 211:case 233:return!1;default:return"quit"}}));return 119===(null==t?void 0:t.token)||264===(null==t?void 0:t.parent.kind)}(e)||function(e){for(;80===e.kind||211===e.kind;)e=e.parent;if(167!==e.kind)return!1;if(Gb(e.parent,64))return!0;const t=e.parent.parent.kind;return 264===t||187===t}(e)||!(Bh(e)||function(e){return nC(e)&&ZN(e.parent)&&e.parent.name===e}(e))}function Ox(e){return PC(e)&&nC(e.typeName)}function Fx(e,t=kt){if(e.length<2)return!0;const n=e[0];for(let r=1,o=e.length;r<o;r++){if(!t(n,e[r]))return!1}return!0}function Wx(e,t){return e.pos=t,e}function zx(e,t){return e.end=t,e}function Bx(e,t,n){return zx(Wx(e,t),n)}function Gx(e,t,n){return Bx(e,t,t+n)}function jx(e,t){return e&&(e.flags=t),e}function Vx(e,t){return e&&t&&(e.parent=t),e}function Ux(e,t){if(e)for(const n of e)Vx(n,t);return e}function Hx(e,t){return e?(iP(e,Uu(e)?n:function(e,t){return n(e,t)||function(e){if(Xu(e))for(const t of e.jsDoc)n(t,e),iP(t,n)}(e)}),e):e;function n(e,n){if(t&&e.parent===n)return"skip";Vx(e,n)}}function Kx(e){return!DD(e)}function qx(e){return aD(e)&&M(e.elements,Kx)}function Jx(e){for(In.assertIsDefined(e.parent);;){const t=e.parent;if(mD(t))e=t;else{if(VD(t)||vD(t)||qD(t)&&(t.initializer===e||t.incrementor===e))return!0;if(FD(t)){if(e!==Fe(t.elements))return!0;e=t}else{if(!TD(t)||28!==t.operatorToken.kind)return!1;if(e===t.left)return!0;e=t}}}}function Xx(e){return se(fi,(t=>e.includes(t)))}function $x(e){if(!e.parent)return;switch(e.kind){case 168:const{parent:t}=e;return 195===t.kind?void 0:t.typeParameters;case 169:return e.parent.parameters;case 204:case 239:return e.parent.templateSpans;case 170:{const{parent:t}=e;return bk(t)?t.modifiers:void 0}case 298:return e.parent.heritageClauses}const{parent:t}=e;if(Ku(e))return EM(e.parent)?void 0:e.parent.tags;switch(t.kind){case 187:case 264:return Wd(e)?t.members:void 0;case 192:case 193:return t.types;case 189:case 209:case 361:case 275:case 279:return t.elements;case 210:case 292:return t.properties;case 213:case 214:return Gd(e)?t.typeArguments:t.expression===e?void 0:t.arguments;case 284:case 288:return zu(e)?t.children:void 0;case 286:case 285:return Gd(e)?t.typeArguments:void 0;case 241:case 296:case 297:case 268:case 312:return t.statements;case 269:return t.clauses;case 263:case 231:return Nd(e)?t.members:void 0;case 266:return tM(e)?t.members:void 0}}function Yx(e){if(!e.typeParameters){if(se(e.parameters,(e=>!Ab(e))))return!0;if(219!==e.kind){const t=Le(e.parameters);if(!t||!vb(t))return!0}}return!1}function Qx(e){return"Infinity"===e||"-Infinity"===e||"NaN"===e}function Zx(e){return 260===e.kind&&299===e.parent.kind}function eA(e){return 218===e.kind||219===e.kind}function tA(e){return e.replace(/\$/gm,(()=>"\\$"))}function nA(e){return(+e).toString()===e}function rA(e,t,n,r,o){const i=o&&"new"===e;return!i&&zs(e,t)?UA.createIdentifier(e):!r&&!i&&nA(e)&&+e>=0?UA.createNumericLiteral(+e):UA.createStringLiteral(e,!!n)}function oA(e){return!!(262144&e.flags&&e.isThisType)}function iA(e){let t,n=0,r=0,o=0,i=0;var a;(a=t||(t={}))[a.BeforeNodeModules=0]="BeforeNodeModules",a[a.NodeModules=1]="NodeModules",a[a.Scope=2]="Scope",a[a.PackageContent=3]="PackageContent";let s=0,l=0,c=0;for(;l>=0;)switch(s=l,l=e.indexOf("/",s+1),c){case 0:e.indexOf(HO,s)===s&&(n=s,r=l,c=1);break;case 1:case 2:1===c&&"@"===e.charAt(s+1)?c=2:(o=l,c=3);break;case 3:c=e.indexOf(HO,s)===s?1:3}return i=s,c>1?{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:r,packageRootIndex:o,fileNameIndex:i}:void 0}function aA(e){var t;return 348===e.kind?null==(t=e.typeExpression)?void 0:t.type:e.type}function sA(e){switch(e.kind){case 168:case 263:case 264:case 265:case 266:case 353:case 345:case 347:return!0;case 273:return e.isTypeOnly;case 276:case 281:return e.parent.parent.isTypeOnly;default:return!1}}function lA(e){return uN(e)||GD(e)||sN(e)||lN(e)||cN(e)||sA(e)||pN(e)&&!Gm(e)&&!Bm(e)}function cA(e){if(!qc(e))return!1;const{isBracketed:t,typeExpression:n}=e;return t||!!n&&323===n.type.kind}function dA(e,t){if(0===e.length)return!1;const n=e.charCodeAt(0);return 35===n?e.length>1&&Fs(e.charCodeAt(1),t):Fs(n,t)}function uA(e){var t;return 0===(null==(t=zI(e))?void 0:t.kind)}function pA(e){return $h(e)&&(e.type&&323===e.type.kind||ql(e).some((({isBracketed:e,typeExpression:t})=>e||!!t&&323===t.type.kind)))}function fA(e){switch(e.kind){case 172:case 171:return!!e.questionToken;case 169:return!!e.questionToken||pA(e);case 355:case 348:return cA(e);default:return!1}}function mA(e){const t=e.kind;return(211===t||212===t)&&kD(e.expression)}function _A(e){return $h(e)&&mD(e)&&Xu(e)&&!!gc(e)}function hA(e){return In.checkDefined(gA(e))}function gA(e){const t=gc(e);return t&&t.typeExpression&&t.typeExpression.type}function yA(e){return nC(e)?e.escapedText:EA(e)}function vA(e){return nC(e)?kl(e):SA(e)}function bA(e){const t=e.kind;return 80===t||295===t}function EA(e){return`${e.namespace.escapedText}:${kl(e.name)}`}function SA(e){return`${kl(e.namespace)}:${kl(e.name)}`}function TA(e){return nC(e)?kl(e):SA(e)}function xA(e){return!!(8576&e.flags)}function AA(e){return 8192&e.flags?e.escapedName:384&e.flags?Ml(""+e.value):In.fail()}function IA(e){return!!e&&(lD(e)||cD(e)||TD(e))}function RA(e){return void 0!==e&&!!HU(e.attributes)}function CA(e,t){return Rf.call(e,"*",t)}function DA(e){return nC(e.name)?e.name.escapedText:Ml(e.name.text)}var NA=b({"src/compiler/utilities.ts"(){JJ(),lp=[],cp="tslib",dp=160,up=1e6,pp=function(){var e="";const t=t=>e+=t;return{getText:()=>e,write:t,rawWrite:t,writeKeyword:t,writeOperator:t,writePunctuation:t,writeSpace:t,writeStringLiteral:t,writeLiteral:t,writeParameter:t,writeProperty:t,writeSymbol:(e,n)=>t(e),writeTrailingSemicolon:t,writeComment:t,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&hs(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:bt,decreaseIndent:bt,clear:()=>e=""}}(),fp=Ct((()=>new Map(Object.entries({Array:new Map(Object.entries({es2015:["find","findIndex","fill","copyWithin","entries","keys","values"],es2016:["includes"],es2019:["flat","flatMap"],es2022:["at"],es2023:["findLastIndex","findLast"]})),Iterator:new Map(Object.entries({es2015:o})),AsyncIterator:new Map(Object.entries({es2015:o})),Atomics:new Map(Object.entries({es2017:o})),SharedArrayBuffer:new Map(Object.entries({es2017:o})),AsyncIterable:new Map(Object.entries({es2018:o})),AsyncIterableIterator:new Map(Object.entries({es2018:o})),AsyncGenerator:new Map(Object.entries({es2018:o})),AsyncGeneratorFunction:new Map(Object.entries({es2018:o})),RegExp:new Map(Object.entries({es2015:["flags","sticky","unicode"],es2018:["dotAll"]})),Reflect:new Map(Object.entries({es2015:["apply","construct","defineProperty","deleteProperty","get","getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"]})),ArrayConstructor:new Map(Object.entries({es2015:["from","of"]})),ObjectConstructor:new Map(Object.entries({es2015:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],es2017:["values","entries","getOwnPropertyDescriptors"],es2019:["fromEntries"],es2022:["hasOwn"]})),NumberConstructor:new Map(Object.entries({es2015:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"]})),Math:new Map(Object.entries({es2015:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"]})),Map:new Map(Object.entries({es2015:["entries","keys","values"]})),Set:new Map(Object.entries({es2015:["entries","keys","values"]})),PromiseConstructor:new Map(Object.entries({es2015:["all","race","reject","resolve"],es2020:["allSettled"],es2021:["any"]})),Symbol:new Map(Object.entries({es2015:["for","keyFor"],es2019:["description"]})),WeakMap:new Map(Object.entries({es2015:["entries","keys","values"]})),WeakSet:new Map(Object.entries({es2015:["entries","keys","values"]})),String:new Map(Object.entries({es2015:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],es2017:["padStart","padEnd"],es2019:["trimStart","trimEnd","trimLeft","trimRight"],es2020:["matchAll"],es2021:["replaceAll"],es2022:["at"]})),StringConstructor:new Map(Object.entries({es2015:["fromCodePoint","raw"]})),DateTimeFormat:new Map(Object.entries({es2017:["formatToParts"]})),Promise:new Map(Object.entries({es2015:o,es2018:["finally"]})),RegExpMatchArray:new Map(Object.entries({es2018:["groups"]})),RegExpExecArray:new Map(Object.entries({es2018:["groups"]})),Intl:new Map(Object.entries({es2018:["PluralRules"]})),NumberFormat:new Map(Object.entries({es2018:["formatToParts"]})),SymbolConstructor:new Map(Object.entries({es2020:["matchAll"]})),DataView:new Map(Object.entries({es2020:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"]})),BigInt:new Map(Object.entries({es2020:o})),RelativeTimeFormat:new Map(Object.entries({es2020:["format","formatToParts","resolvedOptions"]})),Int8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint8ClampedArray:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Int16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Int32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Float32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Float64Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),BigInt64Array:new Map(Object.entries({es2020:o,es2022:["at"],es2023:["findLastIndex","findLast"]})),BigUint64Array:new Map(Object.entries({es2020:o,es2022:["at"],es2023:["findLastIndex","findLast"]})),Error:new Map(Object.entries({es2022:["cause"]}))})))),mp=(e=>(e[e.None=0]="None",e[e.NeverAsciiEscape=1]="NeverAsciiEscape",e[e.JsxAttributeEscape=2]="JsxAttributeEscape",e[e.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",e[e.AllowNumericSeparator=8]="AllowNumericSeparator",e))(mp||{}),_p=/^(\/\/\/\s*<reference\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,hp=/^(\/\/\/\s*<reference\s+types\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,gp=/^(\/\/\/\s*<reference\s+lib\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,yp=/^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,vp=/^\/\/\/\s*<amd-module\s+.*?\/>/,bp=/^(\/\/\/\s*<reference\s+no-default-lib\s*=\s*)(('[^']*')|("[^"]*"))\s*\/>/,Ep=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))(Ep||{}),Sp=(e=>(e[e.Normal=0]="Normal",e[e.Generator=1]="Generator",e[e.Async=2]="Async",e[e.Invalid=4]="Invalid",e[e.AsyncGenerator=3]="AsyncGenerator",e))(Sp||{}),Tp=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(Tp||{}),xp=(e=>(e[e.Comma=0]="Comma",e[e.Spread=1]="Spread",e[e.Yield=2]="Yield",e[e.Assignment=3]="Assignment",e[e.Conditional=4]="Conditional",e[e.Coalesce=4]="Coalesce",e[e.LogicalOR=5]="LogicalOR",e[e.LogicalAND=6]="LogicalAND",e[e.BitwiseOR=7]="BitwiseOR",e[e.BitwiseXOR=8]="BitwiseXOR",e[e.BitwiseAND=9]="BitwiseAND",e[e.Equality=10]="Equality",e[e.Relational=11]="Relational",e[e.Shift=12]="Shift",e[e.Additive=13]="Additive",e[e.Multiplicative=14]="Multiplicative",e[e.Exponentiation=15]="Exponentiation",e[e.Unary=16]="Unary",e[e.Update=17]="Update",e[e.LeftHandSide=18]="LeftHandSide",e[e.Member=19]="Member",e[e.Primary=20]="Primary",e[e.Highest=20]="Highest",e[e.Lowest=0]="Lowest",e[e.Invalid=-1]="Invalid",e))(xp||{}),Ap=/\$\{/g,Ip=/[\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Rp=/[\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Cp=/\r\n|[\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,Dp=new Map(Object.entries({"\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085","\r\n":"\\r\\n"})),Np=/[^\u0000-\u007F]/g,Mp=/["\u0000-\u001f\u2028\u2029\u0085]/g,Lp=/['\u0000-\u001f\u2028\u2029\u0085]/g,kp=new Map(Object.entries({'"':""","'":"'"})),Pp=[""," "],wp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Op="\r\n",Fp="\n",Wp={getNodeConstructor:()=>HS,getTokenConstructor:()=>KS,getIdentifierConstructor:()=>qS,getPrivateIdentifierConstructor:()=>HS,getSourceFileConstructor:()=>HS,getSymbolConstructor:()=>jS,getTypeConstructor:()=>VS,getSignatureConstructor:()=>US,getSourceMapSourceConstructor:()=>JS},zp=[],jp=(Gp={target:{dependencies:["module"],computeValue:e=>e.target??((100===e.module?9:199===e.module&&99)||1)},module:{dependencies:["target"],computeValue:e=>"number"===typeof e.module?e.module:Gp.target.computeValue(e)>=2?5:1},moduleResolution:{dependencies:["module","target"],computeValue:e=>{let t=e.moduleResolution;if(void 0===t)switch(Gp.module.computeValue(e)){case 1:t=2;break;case 100:t=3;break;case 199:t=99;break;case 200:t=100;break;default:t=1}return t}},moduleDetection:{dependencies:["module","target"],computeValue:e=>e.moduleDetection||(100===Gp.module.computeValue(e)||199===Gp.module.computeValue(e)?3:2)},isolatedModules:{dependencies:["verbatimModuleSyntax"],computeValue:e=>!(!e.isolatedModules&&!e.verbatimModuleSyntax)},esModuleInterop:{dependencies:["module","target"],computeValue:e=>{if(void 0!==e.esModuleInterop)return e.esModuleInterop;switch(Gp.module.computeValue(e)){case 100:case 199:case 200:return!0}return!1}},allowSyntheticDefaultImports:{dependencies:["module","target","moduleResolution"],computeValue:e=>void 0!==e.allowSyntheticDefaultImports?e.allowSyntheticDefaultImports:Gp.esModuleInterop.computeValue(e)||4===Gp.module.computeValue(e)||100===Gp.moduleResolution.computeValue(e)},resolvePackageJsonExports:{dependencies:["moduleResolution"],computeValue:e=>{const t=Gp.moduleResolution.computeValue(e);if(!AT(t))return!1;if(void 0!==e.resolvePackageJsonExports)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolvePackageJsonImports:{dependencies:["moduleResolution","resolvePackageJsonExports"],computeValue:e=>{const t=Gp.moduleResolution.computeValue(e);if(!AT(t))return!1;if(void 0!==e.resolvePackageJsonExports)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolveJsonModule:{dependencies:["moduleResolution","module","target"],computeValue:e=>void 0!==e.resolveJsonModule?e.resolveJsonModule:100===Gp.moduleResolution.computeValue(e)},declaration:{dependencies:["composite"],computeValue:e=>!(!e.declaration&&!e.composite)},preserveConstEnums:{dependencies:["isolatedModules","verbatimModuleSyntax"],computeValue:e=>!(!e.preserveConstEnums&&!Gp.isolatedModules.computeValue(e))},incremental:{dependencies:["composite"],computeValue:e=>!(!e.incremental&&!e.composite)},declarationMap:{dependencies:["declaration","composite"],computeValue:e=>!(!e.declarationMap||!Gp.declaration.computeValue(e))},allowJs:{dependencies:["checkJs"],computeValue:e=>void 0===e.allowJs?!!e.checkJs:e.allowJs},useDefineForClassFields:{dependencies:["target","module"],computeValue:e=>void 0===e.useDefineForClassFields?Gp.target.computeValue(e)>=9:e.useDefineForClassFields},noImplicitAny:{dependencies:["strict"],computeValue:e=>IT(e,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:e=>IT(e,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:e=>IT(e,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:e=>IT(e,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:e=>IT(e,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:e=>IT(e,"strictPropertyInitialization")},alwaysStrict:{dependencies:["strict"],computeValue:e=>IT(e,"alwaysStrict")},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:e=>IT(e,"useUnknownInCatchVariables")}}).target.computeValue,Vp=Gp.module.computeValue,Up=Gp.moduleResolution.computeValue,Hp=Gp.moduleDetection.computeValue,Kp=Gp.isolatedModules.computeValue,qp=Gp.esModuleInterop.computeValue,Jp=Gp.allowSyntheticDefaultImports.computeValue,Xp=Gp.resolvePackageJsonExports.computeValue,$p=Gp.resolvePackageJsonImports.computeValue,Yp=Gp.resolveJsonModule.computeValue,Qp=Gp.declaration.computeValue,Zp=Gp.preserveConstEnums.computeValue,ef=Gp.incremental.computeValue,tf=Gp.declarationMap.computeValue,nf=Gp.allowJs.computeValue,rf=Gp.useDefineForClassFields.computeValue,of=/[^\w\s/]/g,af=[42,63],lf=`(?!(${(sf=["node_modules","bower_components","jspm_packages"]).join("|")})(/|$))`,pf={files:cf={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${lf}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>KT(e,cf.singleAsteriskRegexFragment)},directories:df={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${lf}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>KT(e,df.singleAsteriskRegexFragment)},exclude:uf={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:e=>KT(e,uf.singleAsteriskRegexFragment)}},mf=q(ff=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]]),_f=[...ff,[".json"]],hf=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],yf=q(gf=[[".js",".jsx"],[".mjs"],[".cjs"]]),vf=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],bf=[...vf,[".json"]],Ef=[".d.ts",".d.cts",".d.mts"],Sf=[".ts",".cts",".mts",".tsx"],Tf=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"],xf=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))(xf||{}),Af=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"],If={files:o,directories:o},Rf=String.prototype.replace}});function MA(){let e,t,n,r,o;return{createBaseSourceFileNode:function(e){return new(o||(o=Wp.getSourceFileConstructor()))(e,-1,-1)},createBaseIdentifierNode:function(e){return new(n||(n=Wp.getIdentifierConstructor()))(e,-1,-1)},createBasePrivateIdentifierNode:function(e){return new(r||(r=Wp.getPrivateIdentifierConstructor()))(e,-1,-1)},createBaseTokenNode:function(e){return new(t||(t=Wp.getTokenConstructor()))(e,-1,-1)},createBaseNode:function(t){return new(e||(e=Wp.getNodeConstructor()))(t,-1,-1)}}}var LA,kA=b({"src/compiler/factory/baseNodeFactory.ts"(){JJ()}});function PA(e){let t,n;return{getParenthesizeLeftSideOfBinaryForOperator:function(e){t||(t=new Map);let n=t.get(e);n||(n=t=>i(e,t),t.set(e,n));return n},getParenthesizeRightSideOfBinaryForOperator:function(e){n||(n=new Map);let t=n.get(e);t||(t=t=>a(e,void 0,t),n.set(e,t));return t},parenthesizeLeftSideOfBinary:i,parenthesizeRightSideOfBinary:a,parenthesizeExpressionOfComputedPropertyName:function(t){return gL(t)?e.createParenthesizedExpression(t):t},parenthesizeConditionOfConditionalExpression:function(t){const n=Cv(227,58),r=Gc(t);if(1!==Ft(Iv(r),n))return e.createParenthesizedExpression(t);return t},parenthesizeBranchOfConditionalExpression:function(t){return gL(Gc(t))?e.createParenthesizedExpression(t):t},parenthesizeExpressionOfExportDefault:function(t){const n=Gc(t);let r=gL(n);if(!r)switch(GS(n,!1).kind){case 231:case 218:r=!0}return r?e.createParenthesizedExpression(t):t},parenthesizeExpressionOfNew:function(t){const n=GS(t,!0);switch(n.kind){case 213:return e.createParenthesizedExpression(t);case 214:return n.arguments?t:e.createParenthesizedExpression(t)}return s(t)},parenthesizeLeftSideOfAccess:s,parenthesizeOperandOfPostfixUnary:function(t){return iu(t)?t:yk(e.createParenthesizedExpression(t),t)},parenthesizeOperandOfPrefixUnary:function(t){return su(t)?t:yk(e.createParenthesizedExpression(t),t)},parenthesizeExpressionsOfCommaDelimitedList:function(t){const n=K(t,l);return yk(e.createNodeArray(n,t.hasTrailingComma),t)},parenthesizeExpressionForDisallowedComma:l,parenthesizeExpressionOfExpressionStatement:function(t){const n=Gc(t);if(dD(n)){const r=n.expression,o=Gc(r).kind;if(218===o||219===o){const o=e.updateCallExpression(n,yk(e.createParenthesizedExpression(r),r),n.typeArguments,n.arguments);return e.restoreOuterExpressions(t,o,8)}}const r=GS(n,!1).kind;if(210===r||218===r)return yk(e.createParenthesizedExpression(t),t);return t},parenthesizeConciseBodyOfArrowFunction:function(t){if(!BD(t)&&(gL(t)||210===GS(t,!1).kind))return yk(e.createParenthesizedExpression(t),t);return t},parenthesizeCheckTypeOfConditionalType:c,parenthesizeExtendsTypeOfConditionalType:function(t){if(194===t.kind)return e.createParenthesizedType(t);return t},parenthesizeConstituentTypesOfUnionType:function(t){return e.createNodeArray(K(t,d))},parenthesizeConstituentTypeOfUnionType:d,parenthesizeConstituentTypesOfIntersectionType:function(t){return e.createNodeArray(K(t,u))},parenthesizeConstituentTypeOfIntersectionType:u,parenthesizeOperandOfTypeOperator:p,parenthesizeOperandOfReadonlyTypeOperator:function(t){if(198===t.kind)return e.createParenthesizedType(t);return p(t)},parenthesizeNonArrayTypeOfPostfixType:f,parenthesizeElementTypesOfTupleType:function(t){return e.createNodeArray(K(t,m))},parenthesizeElementTypeOfTupleType:m,parenthesizeTypeOfOptionalType:function(t){return _(t)?e.createParenthesizedType(t):f(t)},parenthesizeTypeArguments:function(t){if(se(t))return e.createNodeArray(K(t,g))},parenthesizeLeadingTypeArgument:h};function r(e){if(Zc((e=Gc(e)).kind))return e.kind;if(226===e.kind&&40===e.operatorToken.kind){if(void 0!==e.cachedLiteralKind)return e.cachedLiteralKind;const t=r(e.left),n=Zc(t)&&t===r(e.right)?t:0;return e.cachedLiteralKind=n,n}return 0}function o(t,n,o,i){return 217===Gc(n).kind?n:function(e,t,n,o){const i=Cv(226,e),a=Av(226,e),s=Gc(t);if(!n&&219===t.kind&&i>3)return!0;switch(Ft(Iv(s),i)){case-1:return!(!n&&1===a&&229===t.kind);case 1:return!1;case 0:if(n)return 1===a;if(TD(s)&&s.operatorToken.kind===e){if(function(e){return 42===e||52===e||51===e||53===e||28===e}(e))return!1;if(40===e){const e=o?r(o):0;if(Zc(e)&&e===r(s))return!1}}return 0===xv(s)}}(t,n,o,i)?e.createParenthesizedExpression(n):n}function i(e,t){return o(e,t,!0)}function a(e,t,n){return o(e,n,!1,t)}function s(t,n){const r=Gc(t);return!iu(r)||214===r.kind&&!r.arguments||!n&&wc(r)?yk(e.createParenthesizedExpression(t),t):t}function l(t){return Iv(Gc(t))>Cv(226,28)?t:yk(e.createParenthesizedExpression(t),t)}function c(t){switch(t.kind){case 184:case 185:case 194:return e.createParenthesizedType(t)}return t}function d(t){switch(t.kind){case 192:case 193:return e.createParenthesizedType(t)}return c(t)}function u(t){switch(t.kind){case 192:case 193:return e.createParenthesizedType(t)}return d(t)}function p(t){return 193===t.kind?e.createParenthesizedType(t):u(t)}function f(t){switch(t.kind){case 195:case 198:case 186:return e.createParenthesizedType(t)}return p(t)}function m(t){return _(t)?e.createParenthesizedType(t):t}function _(e){return mM(e)?e.postfix:GC(e)||wC(e)||OC(e)||$C(e)?_(e.type):KC(e)?_(e.falseType):UC(e)||HC(e)?_(Fe(e.types)):!!qC(e)&&(!!e.typeParameter.constraint&&_(e.typeParameter.constraint))}function h(t){return jd(t)&&t.typeParameters?e.createParenthesizedType(t):t}function g(e,t){return 0===t?h(e):e}}var wA,OA=b({"src/compiler/factory/parenthesizerRules.ts"(){JJ(),LA={getParenthesizeLeftSideOfBinaryForOperator:e=>xt,getParenthesizeRightSideOfBinaryForOperator:e=>xt,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,n)=>n,parenthesizeExpressionOfComputedPropertyName:xt,parenthesizeConditionOfConditionalExpression:xt,parenthesizeBranchOfConditionalExpression:xt,parenthesizeExpressionOfExportDefault:xt,parenthesizeExpressionOfNew:e=>vt(e,iu),parenthesizeLeftSideOfAccess:e=>vt(e,iu),parenthesizeOperandOfPostfixUnary:e=>vt(e,iu),parenthesizeOperandOfPrefixUnary:e=>vt(e,su),parenthesizeExpressionsOfCommaDelimitedList:e=>vt(e,Qc),parenthesizeExpressionForDisallowedComma:xt,parenthesizeExpressionOfExpressionStatement:xt,parenthesizeConciseBodyOfArrowFunction:xt,parenthesizeCheckTypeOfConditionalType:xt,parenthesizeExtendsTypeOfConditionalType:xt,parenthesizeConstituentTypesOfUnionType:e=>vt(e,Qc),parenthesizeConstituentTypeOfUnionType:xt,parenthesizeConstituentTypesOfIntersectionType:e=>vt(e,Qc),parenthesizeConstituentTypeOfIntersectionType:xt,parenthesizeOperandOfTypeOperator:xt,parenthesizeOperandOfReadonlyTypeOperator:xt,parenthesizeNonArrayTypeOfPostfixType:xt,parenthesizeElementTypesOfTupleType:e=>vt(e,Qc),parenthesizeElementTypeOfTupleType:xt,parenthesizeTypeOfOptionalType:xt,parenthesizeTypeArguments:e=>e&&vt(e,Qc),parenthesizeLeadingTypeArgument:xt}}});function FA(e){return{convertToFunctionBlock:function(t,n){if(BD(t))return t;const r=e.createReturnStatement(t);yk(r,t);const o=e.createBlock([r],n);return yk(o,t),o},convertToFunctionExpression:function(t){var n;if(!t.body)return In.fail("Cannot convert a FunctionDeclaration without a body");const r=e.createFunctionExpression(null==(n=Hl(t))?void 0:n.filter((e=>!oC(e)&&!iC(e))),t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);lI(r,t),yk(r,t),EI(t)&&SI(r,!0);return r},convertToClassExpression:function(t){var n;const r=e.createClassExpression(null==(n=t.modifiers)?void 0:n.filter((e=>!oC(e)&&!iC(e))),t.name,t.typeParameters,t.heritageClauses,t.members);lI(r,t),yk(r,t),EI(t)&&SI(r,!0);return r},convertToArrayAssignmentElement:t,convertToObjectAssignmentElement:n,convertToAssignmentPattern:r,convertToObjectAssignmentPattern:o,convertToArrayAssignmentPattern:i,convertToAssignmentElementTarget:a};function t(t){if(iD(t)){if(t.dotDotDotToken)return In.assertNode(t.name,nC),lI(yk(e.createSpreadElement(t.name),t),t);const n=a(t.name);return t.initializer?lI(yk(e.createAssignment(n,t.initializer),t),t):n}return vt(t,uu)}function n(t){if(iD(t)){if(t.dotDotDotToken)return In.assertNode(t.name,nC),lI(yk(e.createSpreadAssignment(t.name),t),t);if(t.propertyName){const n=a(t.name);return lI(yk(e.createPropertyAssignment(t.propertyName,t.initializer?e.createAssignment(n,t.initializer):n),t),t)}return In.assertNode(t.name,nC),lI(yk(e.createShorthandPropertyAssignment(t.name,t.initializer),t),t)}return vt(t,Bd)}function r(e){switch(e.kind){case 207:case 209:return i(e);case 206:case 210:return o(e)}}function o(t){return rD(t)?lI(yk(e.createObjectLiteralExpression(U(t.elements,n)),t),t):vt(t,sD)}function i(n){return oD(n)?lI(yk(e.createArrayLiteralExpression(U(n.elements,t)),n),n):vt(n,aD)}function a(e){return Vd(e)?r(e):vt(e,uu)}}var WA,zA,BA,GA,jA,VA,UA,HA,KA=b({"src/compiler/factory/nodeConverters.ts"(){JJ(),wA={convertToFunctionBlock:Rt,convertToFunctionExpression:Rt,convertToClassExpression:Rt,convertToArrayAssignmentElement:Rt,convertToObjectAssignmentElement:Rt,convertToAssignmentPattern:Rt,convertToObjectAssignmentPattern:Rt,convertToArrayAssignmentPattern:Rt,convertToAssignmentElementTarget:Rt}}});function qA(e){BA.push(e)}function JA(e,t){const n=8&e?xt:lI,r=Ct((()=>1&e?LA:PA(y))),i=Ct((()=>2&e?wA:FA(y))),a=Dt((e=>(t,n)=>Pt(t,e,n))),s=Dt((e=>t=>Lt(e,t))),l=Dt((e=>t=>kt(t,e))),c=Dt((e=>()=>function(e){return b(e)}(e))),d=Dt((e=>t=>ur(e,t))),u=Dt((e=>(t,n)=>function(e,t,n){return t.type!==n?ko(ur(e,n),t):t}(e,t,n))),p=Dt((e=>(t,n)=>dr(e,t,n))),f=Dt((e=>(t,n)=>function(e,t,n){return t.type!==n?ko(dr(e,n,t.postfix),t):t}(e,t,n))),m=Dt((e=>(t,n)=>kr(e,t,n))),_=Dt((e=>(t,n,r)=>function(e,t,n=hr(t),r){return t.tagName!==n||t.comment!==r?ko(kr(e,n,r),t):t}(e,t,n,r))),h=Dt((e=>(t,n,r)=>Pr(e,t,n,r))),g=Dt((e=>(t,n,r,o)=>function(e,t,n=hr(t),r,o){return t.tagName!==n||t.typeExpression!==r||t.comment!==o?ko(Pr(e,n,r,o),t):t}(e,t,n,r,o))),y={get parenthesizer(){return r()},get converters(){return i()},baseFactory:t,flags:e,createNodeArray:v,createNumericLiteral:T,createBigIntLiteral:A,createStringLiteral:R,createStringLiteralFromNode:function(e){const t=I(sv(e),void 0);return t.textSourceNode=e,t},createRegularExpressionLiteral:C,createLiteralLikeNode:function(e,t){switch(e){case 9:return T(t,0);case 10:return A(t);case 11:return R(t,void 0);case 12:return Ur(t,!1);case 13:return Ur(t,!0);case 14:return C(t);case 15:return Gt(e,t,void 0,0)}},createIdentifier:L,createTempVariable:k,createLoopVariable:function(e){let t=2;e&&(t|=8);return N("",t,void 0,void 0)},createUniqueName:function(e,t=0,n,r){return In.assert(!(7&t),"Argument out of range: flags"),In.assert(32!==(48&t),"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),N(e,3|t,n,r)},getGeneratedNameForNode:P,createPrivateIdentifier:function(e){dn(e,"#")||In.fail("First character of private identifier must be #: "+e);return w(Ml(e))},createUniquePrivateName:function(e,t,n){e&&!dn(e,"#")&&In.fail("First character of private identifier must be #: "+e);return O(e??"",8|(e?3:1),t,n)},getGeneratedPrivateNameForNode:function(e,t,n){const r=Nc(e)?ck(!0,t,e,n,kl):`#generated@${Hz(e)}`,o=O(r,4|(t||n?16:0),t,n);return o.original=e,o},createToken:W,createSuper:function(){return W(108)},createThis:z,createNull:B,createTrue:G,createFalse:j,createModifier:V,createModifiersFromModifierFlags:U,createQualifiedName:H,updateQualifiedName:function(e,t,n){return e.left!==t||e.right!==n?ko(H(t,n),e):e},createComputedPropertyName:K,updateComputedPropertyName:function(e,t){return e.expression!==t?ko(K(t),e):e},createTypeParameterDeclaration:q,updateTypeParameterDeclaration:J,createParameterDeclaration:X,updateParameterDeclaration:$,createDecorator:Q,updateDecorator:function(e,t){return e.expression!==t?ko(Q(t),e):e},createPropertySignature:Z,updatePropertySignature:ee,createPropertyDeclaration:te,updatePropertyDeclaration:ne,createMethodSignature:re,updateMethodSignature:oe,createMethodDeclaration:ie,updateMethodDeclaration:ae,createConstructorDeclaration:ce,updateConstructorDeclaration:de,createGetAccessorDeclaration:ue,updateGetAccessorDeclaration:pe,createSetAccessorDeclaration:fe,updateSetAccessorDeclaration:me,createCallSignature:_e,updateCallSignature:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?S(_e(t,n,r),e):e},createConstructSignature:he,updateConstructSignature:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?S(he(t,n,r),e):e},createIndexSignature:ge,updateIndexSignature:ye,createClassStaticBlockDeclaration:le,updateClassStaticBlockDeclaration:function(e,t){return e.body!==t?function(e,t){e!==t&&(e.modifiers=t.modifiers);return ko(e,t)}(le(t),e):e},createTemplateLiteralTypeSpan:ve,updateTemplateLiteralTypeSpan:function(e,t,n){return e.type!==t||e.literal!==n?ko(ve(t,n),e):e},createKeywordTypeNode:function(e){return W(e)},createTypePredicateNode:be,updateTypePredicateNode:function(e,t,n,r){return e.assertsModifier!==t||e.parameterName!==n||e.type!==r?ko(be(t,n,r),e):e},createTypeReferenceNode:Se,updateTypeReferenceNode:function(e,t,n){return e.typeName!==t||e.typeArguments!==n?ko(Se(t,n),e):e},createFunctionTypeNode:Te,updateFunctionTypeNode:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?function(e,t){e!==t&&(e.modifiers=t.modifiers);return S(e,t)}(Te(t,n,r),e):e},createConstructorTypeNode:xe,updateConstructorTypeNode:function(...e){return 5===e.length?Ie(...e):4===e.length?function(e,t,n,r){return Ie(e,e.modifiers,t,n,r)}(...e):In.fail("Incorrect number of arguments specified.")},createTypeQueryNode:Re,updateTypeQueryNode:function(e,t,n){return e.exprName!==t||e.typeArguments!==n?ko(Re(t,n),e):e},createTypeLiteralNode:Ce,updateTypeLiteralNode:function(e,t){return e.members!==t?ko(Ce(t),e):e},createArrayTypeNode:De,updateArrayTypeNode:function(e,t){return e.elementType!==t?ko(De(t),e):e},createTupleTypeNode:Ne,updateTupleTypeNode:function(e,t){return e.elements!==t?ko(Ne(t),e):e},createNamedTupleMember:Me,updateNamedTupleMember:function(e,t,n,r,o){return e.dotDotDotToken!==t||e.name!==n||e.questionToken!==r||e.type!==o?ko(Me(t,n,r,o),e):e},createOptionalTypeNode:Le,updateOptionalTypeNode:function(e,t){return e.type!==t?ko(Le(t),e):e},createRestTypeNode:ke,updateRestTypeNode:function(e,t){return e.type!==t?ko(ke(t),e):e},createUnionTypeNode:function(e){return Pe(192,e,r().parenthesizeConstituentTypesOfUnionType)},updateUnionTypeNode:function(e,t){return we(e,t,r().parenthesizeConstituentTypesOfUnionType)},createIntersectionTypeNode:function(e){return Pe(193,e,r().parenthesizeConstituentTypesOfIntersectionType)},updateIntersectionTypeNode:function(e,t){return we(e,t,r().parenthesizeConstituentTypesOfIntersectionType)},createConditionalTypeNode:Fe,updateConditionalTypeNode:function(e,t,n,r,o){return e.checkType!==t||e.extendsType!==n||e.trueType!==r||e.falseType!==o?ko(Fe(t,n,r,o),e):e},createInferTypeNode:ze,updateInferTypeNode:function(e,t){return e.typeParameter!==t?ko(ze(t),e):e},createImportTypeNode:Ge,updateImportTypeNode:function(e,t,n,r,o,i=e.isTypeOf){return e.argument!==t||e.attributes!==n||e.qualifier!==r||e.typeArguments!==o||e.isTypeOf!==i?ko(Ge(t,n,r,o,i),e):e},createParenthesizedType:je,updateParenthesizedType:function(e,t){return e.type!==t?ko(je(t),e):e},createThisTypeNode:function(){const e=b(197);return e.transformFlags=1,e},createTypeOperatorNode:Ve,updateTypeOperatorNode:function(e,t){return e.type!==t?ko(Ve(e.operator,t),e):e},createIndexedAccessTypeNode:Ke,updateIndexedAccessTypeNode:function(e,t,n){return e.objectType!==t||e.indexType!==n?ko(Ke(t,n),e):e},createMappedTypeNode:qe,updateMappedTypeNode:function(e,t,n,r,o,i,a){return e.readonlyToken!==t||e.typeParameter!==n||e.nameType!==r||e.questionToken!==o||e.type!==i||e.members!==a?ko(qe(t,n,r,o,i,a),e):e},createLiteralTypeNode:Je,updateLiteralTypeNode:function(e,t){return e.literal!==t?ko(Je(t),e):e},createTemplateLiteralType:Be,updateTemplateLiteralType:function(e,t,n){return e.head!==t||e.templateSpans!==n?ko(Be(t,n),e):e},createObjectBindingPattern:Xe,updateObjectBindingPattern:function(e,t){return e.elements!==t?ko(Xe(t),e):e},createArrayBindingPattern:$e,updateArrayBindingPattern:function(e,t){return e.elements!==t?ko($e(t),e):e},createBindingElement:Ye,updateBindingElement:function(e,t,n,r,o){return e.propertyName!==n||e.dotDotDotToken!==t||e.name!==r||e.initializer!==o?ko(Ye(t,n,r,o),e):e},createArrayLiteralExpression:Qe,updateArrayLiteralExpression:function(e,t){return e.elements!==t?ko(Qe(t,e.multiLine),e):e},createObjectLiteralExpression:Ze,updateObjectLiteralExpression:function(e,t){return e.properties!==t?ko(Ze(t,e.multiLine),e):e},createPropertyAccessExpression:4&e?(e,t)=>fI(tt(e,t),262144):tt,updatePropertyAccessExpression:function(e,t,n){if(Lc(e))return rt(e,t,e.questionDotToken,vt(n,nC));return e.expression!==t||e.name!==n?ko(tt(t,n),e):e},createPropertyAccessChain:4&e?(e,t,n)=>fI(nt(e,t,n),262144):nt,updatePropertyAccessChain:rt,createElementAccessExpression:it,updateElementAccessExpression:function(e,t,n){if(kc(e))return st(e,t,e.questionDotToken,n);return e.expression!==t||e.argumentExpression!==n?ko(it(t,n),e):e},createElementAccessChain:at,updateElementAccessChain:st,createCallExpression:ct,updateCallExpression:function(e,t,n,r){if(Pc(e))return ut(e,t,e.questionDotToken,n,r);return e.expression!==t||e.typeArguments!==n||e.arguments!==r?ko(ct(t,n,r),e):e},createCallChain:dt,updateCallChain:ut,createNewExpression:pt,updateNewExpression:function(e,t,n,r){return e.expression!==t||e.typeArguments!==n||e.arguments!==r?ko(pt(t,n,r),e):e},createTaggedTemplateExpression:ft,updateTaggedTemplateExpression:function(e,t,n,r){return e.tag!==t||e.typeArguments!==n||e.template!==r?ko(ft(t,n,r),e):e},createTypeAssertion:_t,updateTypeAssertion:ht,createParenthesizedExpression:gt,updateParenthesizedExpression:yt,createFunctionExpression:bt,updateFunctionExpression:Et,createArrowFunction:Tt,updateArrowFunction:At,createDeleteExpression:It,updateDeleteExpression:function(e,t){return e.expression!==t?ko(It(t),e):e},createTypeOfExpression:Rt,updateTypeOfExpression:function(e,t){return e.expression!==t?ko(Rt(t),e):e},createVoidExpression:Nt,updateVoidExpression:function(e,t){return e.expression!==t?ko(Nt(t),e):e},createAwaitExpression:Mt,updateAwaitExpression:function(e,t){return e.expression!==t?ko(Mt(t),e):e},createPrefixUnaryExpression:Lt,updatePrefixUnaryExpression:function(e,t){return e.operand!==t?ko(Lt(e.operator,t),e):e},createPostfixUnaryExpression:kt,updatePostfixUnaryExpression:function(e,t){return e.operand!==t?ko(kt(t,e.operator),e):e},createBinaryExpression:Pt,updateBinaryExpression:function(e,t,n,r){return e.left!==t||e.operatorToken!==n||e.right!==r?ko(Pt(t,n,r),e):e},createConditionalExpression:Ot,updateConditionalExpression:function(e,t,n,r,o,i){return e.condition!==t||e.questionToken!==n||e.whenTrue!==r||e.colonToken!==o||e.whenFalse!==i?ko(Ot(t,n,r,o,i),e):e},createTemplateExpression:Ft,updateTemplateExpression:function(e,t,n){return e.head!==t||e.templateSpans!==n?ko(Ft(t,n),e):e},createTemplateHead:function(e,t,n){return Gt(16,e=Wt(16,e,t,n),t,n)},createTemplateMiddle:function(e,t,n){return Gt(17,e=Wt(16,e,t,n),t,n)},createTemplateTail:function(e,t,n){return Gt(18,e=Wt(16,e,t,n),t,n)},createNoSubstitutionTemplateLiteral:function(e,t,n){return Bt(15,e=Wt(16,e,t,n),t,n)},createTemplateLiteralLikeNode:Gt,createYieldExpression:jt,updateYieldExpression:function(e,t,n){return e.expression!==n||e.asteriskToken!==t?ko(jt(t,n),e):e},createSpreadElement:Vt,updateSpreadElement:function(e,t){return e.expression!==t?ko(Vt(t),e):e},createClassExpression:Ut,updateClassExpression:Ht,createOmittedExpression:function(){return b(232)},createExpressionWithTypeArguments:Kt,updateExpressionWithTypeArguments:function(e,t,n){return e.expression!==t||e.typeArguments!==n?ko(Kt(t,n),e):e},createAsExpression:qt,updateAsExpression:Jt,createNonNullExpression:Xt,updateNonNullExpression:$t,createSatisfiesExpression:Yt,updateSatisfiesExpression:Qt,createNonNullChain:Zt,updateNonNullChain:en,createMetaProperty:tn,updateMetaProperty:function(e,t){return e.name!==t?ko(tn(e.keywordToken,t),e):e},createTemplateSpan:nn,updateTemplateSpan:function(e,t,n){return e.expression!==t||e.literal!==n?ko(nn(t,n),e):e},createSemicolonClassElement:function(){const e=b(240);return e.transformFlags|=1024,e},createBlock:rn,updateBlock:function(e,t){return e.statements!==t?ko(rn(t,e.multiLine),e):e},createVariableStatement:on,updateVariableStatement:an,createEmptyStatement:sn,createExpressionStatement:ln,updateExpressionStatement:function(e,t){return e.expression!==t?ko(ln(t),e):e},createIfStatement:cn,updateIfStatement:function(e,t,n,r){return e.expression!==t||e.thenStatement!==n||e.elseStatement!==r?ko(cn(t,n,r),e):e},createDoStatement:un,updateDoStatement:function(e,t,n){return e.statement!==t||e.expression!==n?ko(un(t,n),e):e},createWhileStatement:pn,updateWhileStatement:function(e,t,n){return e.expression!==t||e.statement!==n?ko(pn(t,n),e):e},createForStatement:fn,updateForStatement:function(e,t,n,r,o){return e.initializer!==t||e.condition!==n||e.incrementor!==r||e.statement!==o?ko(fn(t,n,r,o),e):e},createForInStatement:mn,updateForInStatement:function(e,t,n,r){return e.initializer!==t||e.expression!==n||e.statement!==r?ko(mn(t,n,r),e):e},createForOfStatement:_n,updateForOfStatement:function(e,t,n,r,o){return e.awaitModifier!==t||e.initializer!==n||e.expression!==r||e.statement!==o?ko(_n(t,n,r,o),e):e},createContinueStatement:hn,updateContinueStatement:function(e,t){return e.label!==t?ko(hn(t),e):e},createBreakStatement:gn,updateBreakStatement:function(e,t){return e.label!==t?ko(gn(t),e):e},createReturnStatement:yn,updateReturnStatement:function(e,t){return e.expression!==t?ko(yn(t),e):e},createWithStatement:vn,updateWithStatement:function(e,t,n){return e.expression!==t||e.statement!==n?ko(vn(t,n),e):e},createSwitchStatement:bn,updateSwitchStatement:function(e,t,n){return e.expression!==t||e.caseBlock!==n?ko(bn(t,n),e):e},createLabeledStatement:En,updateLabeledStatement:Sn,createThrowStatement:Tn,updateThrowStatement:function(e,t){return e.expression!==t?ko(Tn(t),e):e},createTryStatement:xn,updateTryStatement:function(e,t,n,r){return e.tryBlock!==t||e.catchClause!==n||e.finallyBlock!==r?ko(xn(t,n,r),e):e},createDebuggerStatement:function(){const e=b(259);return e.jsDoc=void 0,e.flowNode=void 0,e},createVariableDeclaration:An,updateVariableDeclaration:function(e,t,n,r,o){return e.name!==t||e.type!==r||e.exclamationToken!==n||e.initializer!==o?ko(An(t,n,r,o),e):e},createVariableDeclarationList:Rn,updateVariableDeclarationList:function(e,t){return e.declarations!==t?ko(Rn(t,e.flags),e):e},createFunctionDeclaration:Cn,updateFunctionDeclaration:Dn,createClassDeclaration:Nn,updateClassDeclaration:Mn,createInterfaceDeclaration:Ln,updateInterfaceDeclaration:kn,createTypeAliasDeclaration:Pn,updateTypeAliasDeclaration:wn,createEnumDeclaration:On,updateEnumDeclaration:Fn,createModuleDeclaration:Wn,updateModuleDeclaration:zn,createModuleBlock:Bn,updateModuleBlock:function(e,t){return e.statements!==t?ko(Bn(t),e):e},createCaseBlock:Gn,updateCaseBlock:function(e,t){return e.clauses!==t?ko(Gn(t),e):e},createNamespaceExportDeclaration:jn,updateNamespaceExportDeclaration:function(e,t){return e.name!==t?function(e,t){e!==t&&(e.modifiers=t.modifiers);return ko(e,t)}(jn(t),e):e},createImportEqualsDeclaration:Vn,updateImportEqualsDeclaration:Un,createImportDeclaration:Hn,updateImportDeclaration:Kn,createImportClause:qn,updateImportClause:function(e,t,n,r){return e.isTypeOnly!==t||e.name!==n||e.namedBindings!==r?ko(qn(t,n,r),e):e},createAssertClause:Jn,updateAssertClause:function(e,t,n){return e.elements!==t||e.multiLine!==n?ko(Jn(t,n),e):e},createAssertEntry:Xn,updateAssertEntry:function(e,t,n){return e.name!==t||e.value!==n?ko(Xn(t,n),e):e},createImportTypeAssertionContainer:$n,updateImportTypeAssertionContainer:function(e,t,n){return e.assertClause!==t||e.multiLine!==n?ko($n(t,n),e):e},createImportAttributes:Yn,updateImportAttributes:function(e,t,n){return e.elements!==t||e.multiLine!==n?ko(Yn(t,n,e.token),e):e},createImportAttribute:Qn,updateImportAttribute:function(e,t,n){return e.name!==t||e.value!==n?ko(Qn(t,n),e):e},createNamespaceImport:Zn,updateNamespaceImport:function(e,t){return e.name!==t?ko(Zn(t),e):e},createNamespaceExport:er,updateNamespaceExport:function(e,t){return e.name!==t?ko(er(t),e):e},createNamedImports:tr,updateNamedImports:function(e,t){return e.elements!==t?ko(tr(t),e):e},createImportSpecifier:nr,updateImportSpecifier:function(e,t,n,r){return e.isTypeOnly!==t||e.propertyName!==n||e.name!==r?ko(nr(t,n,r),e):e},createExportAssignment:rr,updateExportAssignment:or,createExportDeclaration:ir,updateExportDeclaration:ar,createNamedExports:sr,updateNamedExports:function(e,t){return e.elements!==t?ko(sr(t),e):e},createExportSpecifier:lr,updateExportSpecifier:function(e,t,n,r){return e.isTypeOnly!==t||e.propertyName!==n||e.name!==r?ko(lr(t,n,r),e):e},createMissingDeclaration:function(){const e=E(282);return e.jsDoc=void 0,e},createExternalModuleReference:cr,updateExternalModuleReference:function(e,t){return e.expression!==t?ko(cr(t),e):e},get createJSDocAllType(){return c(319)},get createJSDocUnknownType(){return c(320)},get createJSDocNonNullableType(){return p(322)},get updateJSDocNonNullableType(){return f(322)},get createJSDocNullableType(){return p(321)},get updateJSDocNullableType(){return f(321)},get createJSDocOptionalType(){return d(323)},get updateJSDocOptionalType(){return u(323)},get createJSDocVariadicType(){return d(325)},get updateJSDocVariadicType(){return u(325)},get createJSDocNamepathType(){return d(326)},get updateJSDocNamepathType(){return u(326)},createJSDocFunctionType:pr,updateJSDocFunctionType:function(e,t,n){return e.parameters!==t||e.type!==n?ko(pr(t,n),e):e},createJSDocTypeLiteral:fr,updateJSDocTypeLiteral:function(e,t,n){return e.jsDocPropertyTags!==t||e.isArrayType!==n?ko(fr(t,n),e):e},createJSDocTypeExpression:mr,updateJSDocTypeExpression:function(e,t){return e.type!==t?ko(mr(t),e):e},createJSDocSignature:_r,updateJSDocSignature:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?ko(_r(t,n,r),e):e},createJSDocTemplateTag:vr,updateJSDocTemplateTag:function(e,t=hr(e),n,r,o){return e.tagName!==t||e.constraint!==n||e.typeParameters!==r||e.comment!==o?ko(vr(t,n,r,o),e):e},createJSDocTypedefTag:br,updateJSDocTypedefTag:function(e,t=hr(e),n,r,o){return e.tagName!==t||e.typeExpression!==n||e.fullName!==r||e.comment!==o?ko(br(t,n,r,o),e):e},createJSDocParameterTag:Er,updateJSDocParameterTag:function(e,t=hr(e),n,r,o,i,a){return e.tagName!==t||e.name!==n||e.isBracketed!==r||e.typeExpression!==o||e.isNameFirst!==i||e.comment!==a?ko(Er(t,n,r,o,i,a),e):e},createJSDocPropertyTag:Sr,updateJSDocPropertyTag:function(e,t=hr(e),n,r,o,i,a){return e.tagName!==t||e.name!==n||e.isBracketed!==r||e.typeExpression!==o||e.isNameFirst!==i||e.comment!==a?ko(Sr(t,n,r,o,i,a),e):e},createJSDocCallbackTag:Tr,updateJSDocCallbackTag:function(e,t=hr(e),n,r,o){return e.tagName!==t||e.typeExpression!==n||e.fullName!==r||e.comment!==o?ko(Tr(t,n,r,o),e):e},createJSDocOverloadTag:xr,updateJSDocOverloadTag:function(e,t=hr(e),n,r){return e.tagName!==t||e.typeExpression!==n||e.comment!==r?ko(xr(t,n,r),e):e},createJSDocAugmentsTag:Ar,updateJSDocAugmentsTag:function(e,t=hr(e),n,r){return e.tagName!==t||e.class!==n||e.comment!==r?ko(Ar(t,n,r),e):e},createJSDocImplementsTag:Ir,updateJSDocImplementsTag:function(e,t=hr(e),n,r){return e.tagName!==t||e.class!==n||e.comment!==r?ko(Ir(t,n,r),e):e},createJSDocSeeTag:Rr,updateJSDocSeeTag:function(e,t,n,r){return e.tagName!==t||e.name!==n||e.comment!==r?ko(Rr(t,n,r),e):e},createJSDocNameReference:Cr,updateJSDocNameReference:function(e,t){return e.name!==t?ko(Cr(t),e):e},createJSDocMemberName:Dr,updateJSDocMemberName:function(e,t,n){return e.left!==t||e.right!==n?ko(Dr(t,n),e):e},createJSDocLink:Nr,updateJSDocLink:function(e,t,n){return e.name!==t?ko(Nr(t,n),e):e},createJSDocLinkCode:Mr,updateJSDocLinkCode:function(e,t,n){return e.name!==t?ko(Mr(t,n),e):e},createJSDocLinkPlain:Lr,updateJSDocLinkPlain:function(e,t,n){return e.name!==t?ko(Lr(t,n),e):e},get createJSDocTypeTag(){return h(351)},get updateJSDocTypeTag(){return g(351)},get createJSDocReturnTag(){return h(349)},get updateJSDocReturnTag(){return g(349)},get createJSDocThisTag(){return h(350)},get updateJSDocThisTag(){return g(350)},get createJSDocAuthorTag(){return m(337)},get updateJSDocAuthorTag(){return _(337)},get createJSDocClassTag(){return m(339)},get updateJSDocClassTag(){return _(339)},get createJSDocPublicTag(){return m(340)},get updateJSDocPublicTag(){return _(340)},get createJSDocPrivateTag(){return m(341)},get updateJSDocPrivateTag(){return _(341)},get createJSDocProtectedTag(){return m(342)},get updateJSDocProtectedTag(){return _(342)},get createJSDocReadonlyTag(){return m(343)},get updateJSDocReadonlyTag(){return _(343)},get createJSDocOverrideTag(){return m(344)},get updateJSDocOverrideTag(){return _(344)},get createJSDocDeprecatedTag(){return m(338)},get updateJSDocDeprecatedTag(){return _(338)},get createJSDocThrowsTag(){return h(356)},get updateJSDocThrowsTag(){return g(356)},get createJSDocSatisfiesTag(){return h(357)},get updateJSDocSatisfiesTag(){return g(357)},createJSDocEnumTag:Or,updateJSDocEnumTag:function(e,t=hr(e),n,r){return e.tagName!==t||e.typeExpression!==n||e.comment!==r?ko(Or(t,n,r),e):e},createJSDocUnknownTag:wr,updateJSDocUnknownTag:function(e,t,n){return e.tagName!==t||e.comment!==n?ko(wr(t,n),e):e},createJSDocText:Fr,updateJSDocText:function(e,t){return e.text!==t?ko(Fr(t),e):e},createJSDocComment:Wr,updateJSDocComment:function(e,t,n){return e.comment!==t||e.tags!==n?ko(Wr(t,n),e):e},createJsxElement:zr,updateJsxElement:function(e,t,n,r){return e.openingElement!==t||e.children!==n||e.closingElement!==r?ko(zr(t,n,r),e):e},createJsxSelfClosingElement:Br,updateJsxSelfClosingElement:function(e,t,n,r){return e.tagName!==t||e.typeArguments!==n||e.attributes!==r?ko(Br(t,n,r),e):e},createJsxOpeningElement:Gr,updateJsxOpeningElement:function(e,t,n,r){return e.tagName!==t||e.typeArguments!==n||e.attributes!==r?ko(Gr(t,n,r),e):e},createJsxClosingElement:jr,updateJsxClosingElement:function(e,t){return e.tagName!==t?ko(jr(t),e):e},createJsxFragment:Vr,createJsxText:Ur,updateJsxText:function(e,t,n){return e.text!==t||e.containsOnlyTriviaWhiteSpaces!==n?ko(Ur(t,n),e):e},createJsxOpeningFragment:function(){const e=b(289);return e.transformFlags|=2,e},createJsxJsxClosingFragment:function(){const e=b(290);return e.transformFlags|=2,e},updateJsxFragment:function(e,t,n,r){return e.openingFragment!==t||e.children!==n||e.closingFragment!==r?ko(Vr(t,n,r),e):e},createJsxAttribute:Hr,updateJsxAttribute:function(e,t,n){return e.name!==t||e.initializer!==n?ko(Hr(t,n),e):e},createJsxAttributes:Kr,updateJsxAttributes:function(e,t){return e.properties!==t?ko(Kr(t),e):e},createJsxSpreadAttribute:qr,updateJsxSpreadAttribute:function(e,t){return e.expression!==t?ko(qr(t),e):e},createJsxExpression:Jr,updateJsxExpression:function(e,t){return e.expression!==t?ko(Jr(e.dotDotDotToken,t),e):e},createJsxNamespacedName:Xr,updateJsxNamespacedName:function(e,t,n){return e.namespace!==t||e.name!==n?ko(Xr(t,n),e):e},createCaseClause:$r,updateCaseClause:function(e,t,n){return e.expression!==t||e.statements!==n?ko($r(t,n),e):e},createDefaultClause:Yr,updateDefaultClause:function(e,t){return e.statements!==t?ko(Yr(t),e):e},createHeritageClause:Qr,updateHeritageClause:function(e,t){return e.types!==t?ko(Qr(e.token,t),e):e},createCatchClause:Zr,updateCatchClause:function(e,t,n){return e.variableDeclaration!==t||e.block!==n?ko(Zr(t,n),e):e},createPropertyAssignment:eo,updatePropertyAssignment:to,createShorthandPropertyAssignment:no,updateShorthandPropertyAssignment:function(e,t,n){return e.name!==t||e.objectAssignmentInitializer!==n?function(e,t){e!==t&&(e.modifiers=t.modifiers,e.questionToken=t.questionToken,e.exclamationToken=t.exclamationToken,e.equalsToken=t.equalsToken);return ko(e,t)}(no(t,n),e):e},createSpreadAssignment:ro,updateSpreadAssignment:function(e,t){return e.expression!==t?ko(ro(t),e):e},createEnumMember:oo,updateEnumMember:function(e,t,n){return e.name!==t||e.initializer!==n?ko(oo(t,n),e):e},createSourceFile:function(e,n,r){const o=t.createBaseSourceFileNode(312);return o.statements=v(e),o.endOfFileToken=n,o.flags|=r,o.text="",o.fileName="",o.path="",o.resolvedPath="",o.originalFileName="",o.languageVersion=0,o.languageVariant=0,o.scriptKind=0,o.isDeclarationFile=!1,o.hasNoDefaultLib=!1,o.transformFlags|=ZA(o.statements)|QA(o.endOfFileToken),o.locals=void 0,o.nextContainer=void 0,o.endFlowNode=void 0,o.nodeCount=0,o.identifierCount=0,o.symbolCount=0,o.parseDiagnostics=void 0,o.bindDiagnostics=void 0,o.bindSuggestionDiagnostics=void 0,o.lineMap=void 0,o.externalModuleIndicator=void 0,o.setExternalModuleIndicator=void 0,o.pragmas=void 0,o.checkJsDirective=void 0,o.referencedFiles=void 0,o.typeReferenceDirectives=void 0,o.libReferenceDirectives=void 0,o.amdDependencies=void 0,o.commentDirectives=void 0,o.identifiers=void 0,o.packageJsonLocations=void 0,o.packageJsonScope=void 0,o.imports=void 0,o.moduleAugmentations=void 0,o.ambientModuleNames=void 0,o.classifiableNames=void 0,o.impliedNodeFormat=void 0,o},updateSourceFile:function(e,t,n=e.isDeclarationFile,r=e.referencedFiles,o=e.typeReferenceDirectives,i=e.hasNoDefaultLib,a=e.libReferenceDirectives){return e.statements!==t||e.isDeclarationFile!==n||e.referencedFiles!==r||e.typeReferenceDirectives!==o||e.hasNoDefaultLib!==i||e.libReferenceDirectives!==a?ko(function(e,t,n,r,o,i,a){const s=ao(e);return s.statements=v(t),s.isDeclarationFile=n,s.referencedFiles=r,s.typeReferenceDirectives=o,s.hasNoDefaultLib=i,s.libReferenceDirectives=a,s.transformFlags=ZA(s.statements)|QA(s.endOfFileToken),s}(e,t,n,r,o,i,a),e):e},createRedirectedSourceFile:io,createBundle:so,updateBundle:function(e,t,n=o){return e.sourceFiles!==t||e.prepends!==n?ko(so(t,n),e):e},createUnparsedSource:function(e,t,n){const r=b(314);return r.prologues=e,r.syntheticReferences=t,r.texts=n,r.fileName="",r.text="",r.referencedFiles=o,r.libReferenceDirectives=o,r.getLineAndCharacterOfPosition=e=>_s(r,e),r},createUnparsedPrologue:function(e){return lo(307,e)},createUnparsedPrepend:function(e,t){const n=lo(308,e);return n.texts=t,n},createUnparsedTextLike:function(e,t){return lo(t?310:309,e)},createUnparsedSyntheticReference:function(e){const t=b(311);return t.data=e.data,t.section=e,t},createInputFiles:function(){const e=b(315);return e.javascriptText="",e.declarationText="",e},createSyntheticExpression:function(e,t=!1,n){const r=b(237);return r.type=e,r.isSpread=t,r.tupleNameSource=n,r},createSyntaxList:function(e){const t=b(358);return t._children=e,t},createNotEmittedStatement:function(e){const t=b(359);return t.original=e,yk(t,e),t},createPartiallyEmittedExpression:co,updatePartiallyEmittedExpression:uo,createCommaListExpression:fo,updateCommaListExpression:function(e,t){return e.elements!==t?ko(fo(t),e):e},createSyntheticReferenceExpression:mo,updateSyntheticReferenceExpression:function(e,t,n){return e.expression!==t||e.thisArg!==n?ko(mo(t,n),e):e},cloneNode:_o,get createComma(){return a(28)},get createAssignment(){return a(64)},get createLogicalOr(){return a(57)},get createLogicalAnd(){return a(56)},get createBitwiseOr(){return a(52)},get createBitwiseXor(){return a(53)},get createBitwiseAnd(){return a(51)},get createStrictEquality(){return a(37)},get createStrictInequality(){return a(38)},get createEquality(){return a(35)},get createInequality(){return a(36)},get createLessThan(){return a(30)},get createLessThanEquals(){return a(33)},get createGreaterThan(){return a(32)},get createGreaterThanEquals(){return a(34)},get createLeftShift(){return a(48)},get createRightShift(){return a(49)},get createUnsignedRightShift(){return a(50)},get createAdd(){return a(40)},get createSubtract(){return a(41)},get createMultiply(){return a(42)},get createDivide(){return a(44)},get createModulo(){return a(45)},get createExponent(){return a(43)},get createPrefixPlus(){return s(40)},get createPrefixMinus(){return s(41)},get createPrefixIncrement(){return s(46)},get createPrefixDecrement(){return s(47)},get createBitwiseNot(){return s(55)},get createLogicalNot(){return s(54)},get createPostfixIncrement(){return l(46)},get createPostfixDecrement(){return l(47)},createImmediatelyInvokedFunctionExpression:function(e,t,n){return ct(bt(void 0,void 0,void 0,void 0,t?[t]:[],void 0,rn(e,!0)),void 0,n?[n]:[])},createImmediatelyInvokedArrowFunction:function(e,t,n){return ct(Tt(void 0,void 0,t?[t]:[],void 0,void 0,rn(e,!0)),void 0,n?[n]:[])},createVoidZero:ho,createExportDefault:function(e){return rr(void 0,!1,e)},createExternalModuleExport:function(e){return ir(void 0,!1,sr([lr(!1,void 0,e)]))},createTypeCheck:function(e,t){return"null"===t?y.createStrictEquality(e,B()):"undefined"===t?y.createStrictEquality(e,ho()):y.createStrictEquality(Rt(e),R(t))},createIsNotTypeCheck:function(e,t){return"null"===t?y.createStrictInequality(e,B()):"undefined"===t?y.createStrictInequality(e,ho()):y.createStrictInequality(Rt(e),R(t))},createMethodCall:go,createGlobalMethodCall:yo,createFunctionBindCall:function(e,t,n){return go(e,"bind",[t,...n])},createFunctionCallCall:function(e,t,n){return go(e,"call",[t,...n])},createFunctionApplyCall:function(e,t,n){return go(e,"apply",[t,n])},createArraySliceCall:function(e,t){return go(e,"slice",void 0===t?[]:[No(t)])},createArrayConcatCall:function(e,t){return go(e,"concat",t)},createObjectDefinePropertyCall:function(e,t,n){return yo("Object","defineProperty",[e,No(t),n])},createObjectGetOwnPropertyDescriptorCall:function(e,t){return yo("Object","getOwnPropertyDescriptor",[e,No(t)])},createReflectGetCall:function(e,t,n){return yo("Reflect","get",n?[e,t,n]:[e,t])},createReflectSetCall:function(e,t,n,r){return yo("Reflect","set",r?[e,t,n,r]:[e,t,n])},createPropertyDescriptor:function(e,t){const n=[];vo(n,"enumerable",No(e.enumerable)),vo(n,"configurable",No(e.configurable));let r=vo(n,"writable",No(e.writable));r=vo(n,"value",e.value)||r;let o=vo(n,"get",e.get);return o=vo(n,"set",e.set)||o,In.assert(!(r&&o),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),Ze(n,!t)},createCallBinding:function(e,t,n,o=!1){const i=EL(e,15);let a,s;Ih(i)?(a=z(),s=i):mC(i)?(a=z(),s=void 0!==n&&n<2?yk(L("_super"),i):i):8192&Rm(i)?(a=ho(),s=r().parenthesizeLeftSideOfAccess(i,!1)):lD(i)?bo(i.expression,o)?(a=k(t),s=tt(yk(y.createAssignment(a,i.expression),i.expression),i.name),yk(s,i)):(a=i.expression,s=i):cD(i)?bo(i.expression,o)?(a=k(t),s=it(yk(y.createAssignment(a,i.expression),i.expression),i.argumentExpression),yk(s,i)):(a=i.expression,s=i):(a=ho(),s=r().parenthesizeLeftSideOfAccess(e,!1));return{target:s,thisArg:a}},createAssignmentTargetWrapper:function(e,t){return tt(gt(Ze([fe(void 0,"value",[X(void 0,void 0,e,void 0,void 0,void 0)],rn([ln(t)]))])),"value")},inlineExpressions:function(e){return e.length>10?fo(e):Ue(e,y.createComma)},getInternalName:function(e,t,n){return Eo(e,t,n,98304)},getLocalName:function(e,t,n,r){return Eo(e,t,n,32768,r)},getExportName:So,getDeclarationName:function(e,t,n){return Eo(e,t,n)},getNamespaceMemberName:To,getExternalModuleOrNamespaceExportName:function(e,t,n,r){if(e&&Gb(t,32))return To(e,Eo(t),n,r);return So(t,n,r)},restoreOuterExpressions:function e(t,n,r=15){if(t&&bL(t,r)&&(o=t,!(mD(o)&&Sv(o)&&Sv(gI(o))&&Sv(TI(o)))||se(AI(o))||se(CI(o))))return function(e,t){switch(e.kind){case 217:return yt(e,t);case 216:return ht(e,e.type,t);case 234:return Jt(e,t,e.type);case 238:return Qt(e,t,e.type);case 235:return $t(e,t);case 360:return uo(e,t)}}(t,e(t.expression,n));var o;return n},restoreEnclosingLabel:function e(t,n,r){if(!n)return t;const o=Sn(n,n.label,tN(n.statement)?e(t,n.statement):t);r&&r(n);return o},createUseStrictPrologue:xo,copyPrologue:function(e,t,n,r){const o=Ao(e,t,0,n);return Io(e,t,o,r)},copyStandardPrologue:Ao,copyCustomPrologue:Io,ensureUseStrict:function(e){if(!mL(e))return yk(v([xo(),...e]),e);return e},liftToBlock:function(e){return In.assert(M(e,Ou),"Cannot lift nodes to a Block."),We(e)||rn(e)},mergeLexicalEnvironment:function(e,t){if(!se(t))return e;const n=Ro(e,w_,0),r=Ro(e,F_,n),o=Ro(e,z_,r),i=Ro(t,w_,0),a=Ro(t,F_,i),s=Ro(t,z_,a),l=Ro(t,O_,s);In.assert(l===t.length,"Expected declarations to be valid standard or custom prologues");const c=Qc(e)?e.slice():e;l>s&&c.splice(o,0,...t.slice(s,l));s>a&&c.splice(r,0,...t.slice(a,s));a>i&&c.splice(n,0,...t.slice(i,a));if(i>0)if(0===n)c.splice(0,0,...t.slice(0,i));else{const r=new Map;for(let t=0;t<n;t++){const n=e[t];r.set(n.expression.text,!0)}for(let e=i-1;e>=0;e--){const n=t[e];r.has(n.expression.text)||c.unshift(n)}}if(Qc(e))return yk(v(c,e.hasTrailingComma),e);return e},replaceModifiers:function(e,t){let n;n="number"===typeof t?U(t):t;return vC(e)?J(e,n,e.name,e.constraint,e.default):bC(e)?$(e,n,e.dotDotDotToken,e.name,e.questionToken,e.type,e.initializer):OC(e)?Ie(e,n,e.typeParameters,e.parameters,e.type):SC(e)?ee(e,n,e.name,e.questionToken,e.type):TC(e)?ne(e,n,e.name,e.questionToken??e.exclamationToken,e.type,e.initializer):xC(e)?oe(e,n,e.name,e.questionToken,e.typeParameters,e.parameters,e.type):AC(e)?ae(e,n,e.asteriskToken,e.name,e.questionToken,e.typeParameters,e.parameters,e.type,e.body):RC(e)?de(e,n,e.parameters,e.body):CC(e)?pe(e,n,e.name,e.parameters,e.type,e.body):DC(e)?me(e,n,e.name,e.parameters,e.body):LC(e)?ye(e,n,e.parameters,e.type):_D(e)?Et(e,n,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body):hD(e)?At(e,n,e.typeParameters,e.parameters,e.type,e.equalsGreaterThanToken,e.body):CD(e)?Ht(e,n,e.name,e.typeParameters,e.heritageClauses,e.members):GD(e)?an(e,n,e.declarationList):sN(e)?Dn(e,n,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body):lN(e)?Mn(e,n,e.name,e.typeParameters,e.heritageClauses,e.members):cN(e)?kn(e,n,e.name,e.typeParameters,e.heritageClauses,e.members):dN(e)?wn(e,n,e.name,e.typeParameters,e.type):uN(e)?Fn(e,n,e.name,e.members):pN(e)?zn(e,n,e.name,e.body):hN(e)?Un(e,n,e.isTypeOnly,e.name,e.moduleReference):gN(e)?Kn(e,n,e.importClause,e.moduleSpecifier,e.attributes):CN(e)?or(e,n,e.expression):DN(e)?ar(e,n,e.isTypeOnly,e.exportClause,e.moduleSpecifier,e.attributes):In.assertNever(e)},replaceDecoratorsAndModifiers:function(e,t){return bC(e)?$(e,t,e.dotDotDotToken,e.name,e.questionToken,e.type,e.initializer):TC(e)?ne(e,t,e.name,e.questionToken??e.exclamationToken,e.type,e.initializer):AC(e)?ae(e,t,e.asteriskToken,e.name,e.questionToken,e.typeParameters,e.parameters,e.type,e.body):CC(e)?pe(e,t,e.name,e.parameters,e.type,e.body):DC(e)?me(e,t,e.name,e.parameters,e.body):CD(e)?Ht(e,t,e.name,e.typeParameters,e.heritageClauses,e.members):lN(e)?Mn(e,t,e.name,e.typeParameters,e.heritageClauses,e.members):In.assertNever(e)},replacePropertyName:function(e,t){switch(e.kind){case 177:return pe(e,e.modifiers,t,e.parameters,e.type,e.body);case 178:return me(e,e.modifiers,t,e.parameters,e.body);case 174:return ae(e,e.modifiers,e.asteriskToken,t,e.questionToken,e.typeParameters,e.parameters,e.type,e.body);case 173:return oe(e,e.modifiers,t,e.questionToken,e.typeParameters,e.parameters,e.type);case 172:return ne(e,e.modifiers,t,e.questionToken??e.exclamationToken,e.type,e.initializer);case 171:return ee(e,e.modifiers,t,e.questionToken,e.type);case 303:return to(e,t,e.initializer)}}};return x(BA,(e=>e(y))),y;function v(e,t){if(void 0===e||e===o)e=[];else if(Qc(e)){if(void 0===t||e.hasTrailingComma===t)return void 0===e.transformFlags&&eI(e),In.attachNodeArrayDebugInfo(e),e;const n=e.slice();return n.pos=e.pos,n.end=e.end,n.hasTrailingComma=t,n.transformFlags=e.transformFlags,In.attachNodeArrayDebugInfo(n),n}const n=e.length,r=n>=1&&n<=4?e.slice():e;return r.pos=-1,r.end=-1,r.hasTrailingComma=!!t,r.transformFlags=0,eI(r),In.attachNodeArrayDebugInfo(r),r}function b(e){return t.createBaseNode(e)}function E(e){const t=b(e);return t.symbol=void 0,t.localSymbol=void 0,t}function S(e,t){return e!==t&&(e.typeArguments=t.typeArguments),ko(e,t)}function T(e,t=0){const n="number"===typeof e?e+"":e;In.assert(45!==n.charCodeAt(0),"Negative numbers should be created in combination with createPrefixUnaryExpression");const r=E(9);return r.text=n,r.numericLiteralFlags=t,384&t&&(r.transformFlags|=1024),r}function A(e){const t=F(10);return t.text="string"===typeof e?e:Mx(e)+"n",t.transformFlags|=32,t}function I(e,t){const n=E(11);return n.text=e,n.singleQuote=t,n}function R(e,t,n){const r=I(e,t);return r.hasExtendedUnicodeEscape=n,n&&(r.transformFlags|=1024),r}function C(e){const t=F(14);return t.text=e,t}function D(e){const n=t.createBaseIdentifierNode(80);return n.escapedText=e,n.jsDoc=void 0,n.flowNode=void 0,n.symbol=void 0,n}function N(e,t,n,r){const o=D(Ml(e));return KI(o,{flags:t,id:WA,prefix:n,suffix:r}),WA++,o}function L(e,t,n){void 0===t&&e&&(t=ss(e)),80===t&&(t=void 0);const r=D(Ml(e));return n&&(r.flags|=256),"await"===r.escapedText&&(r.transformFlags|=67108864),256&r.flags&&(r.transformFlags|=1024),r}function k(e,t,n,r){let o=1;t&&(o|=8);const i=N("",o,n,r);return e&&e(i),i}function P(e,t=0,n,r){In.assert(!(7&t),"Argument out of range: flags");(n||r)&&(t|=16);const o=N(e?Nc(e)?ck(!1,n,e,r,kl):`generated@${Hz(e)}`:"",4|t,n,r);return o.original=e,o}function w(e){const n=t.createBasePrivateIdentifierNode(81);return n.escapedText=e,n.transformFlags|=16777216,n}function O(e,t,n,r){const o=w(Ml(e));return KI(o,{flags:t,id:WA,prefix:n,suffix:r}),WA++,o}function F(e){return t.createBaseTokenNode(e)}function W(e){In.assert(e>=0&&e<=165,"Invalid token"),In.assert(e<=15||e>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),In.assert(e<=9||e>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),In.assert(80!==e,"Invalid token. Use 'createIdentifier' to create identifiers");const t=F(e);let n=0;switch(e){case 134:n=384;break;case 160:n=4;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 163:case 146:case 151:case 103:case 147:case 164:case 154:case 136:case 155:case 116:case 159:case 157:n=1;break;case 108:n=134218752,t.flowNode=void 0;break;case 126:n=1024;break;case 129:n=16777216;break;case 110:n=16384,t.flowNode=void 0}return n&&(t.transformFlags|=n),t}function z(){return W(110)}function B(){return W(106)}function G(){return W(112)}function j(){return W(97)}function V(e){return W(e)}function U(e){const t=[];return 32&e&&t.push(V(95)),128&e&&t.push(V(138)),2048&e&&t.push(V(90)),4096&e&&t.push(V(87)),1&e&&t.push(V(125)),2&e&&t.push(V(123)),4&e&&t.push(V(124)),64&e&&t.push(V(128)),256&e&&t.push(V(126)),16&e&&t.push(V(164)),8&e&&t.push(V(148)),512&e&&t.push(V(129)),1024&e&&t.push(V(134)),8192&e&&t.push(V(103)),16384&e&&t.push(V(147)),t.length?t:void 0}function H(e,t){const n=b(166);return n.left=e,n.right=Do(t),n.transformFlags|=QA(n.left)|YA(n.right),n.flowNode=void 0,n}function K(e){const t=b(167);return t.expression=r().parenthesizeExpressionOfComputedPropertyName(e),t.transformFlags|=132096|QA(t.expression),t}function q(e,t,n,r){const o=E(168);return o.modifiers=Co(e),o.name=Do(t),o.constraint=n,o.default=r,o.transformFlags=1,o.expression=void 0,o.jsDoc=void 0,o}function J(e,t,n,r,o){return e.modifiers!==t||e.name!==n||e.constraint!==r||e.default!==o?ko(q(t,n,r,o),e):e}function X(e,t,n,r,o,i){const a=E(169);return a.modifiers=Co(e),a.dotDotDotToken=t,a.name=Do(n),a.questionToken=r,a.type=o,a.initializer=Mo(i),bb(a.name)?a.transformFlags=1:a.transformFlags=ZA(a.modifiers)|QA(a.dotDotDotToken)|$A(a.name)|QA(a.questionToken)|QA(a.initializer)|(a.questionToken??a.type?1:0)|(a.dotDotDotToken??a.initializer?1024:0)|(31&aE(a.modifiers)?8192:0),a.jsDoc=void 0,a}function $(e,t,n,r,o,i,a){return e.modifiers!==t||e.dotDotDotToken!==n||e.name!==r||e.questionToken!==o||e.type!==i||e.initializer!==a?ko(X(t,n,r,o,i,a),e):e}function Q(e){const t=b(170);return t.expression=r().parenthesizeLeftSideOfAccess(e,!1),t.transformFlags|=33562625|QA(t.expression),t}function Z(e,t,n,r){const o=E(171);return o.modifiers=Co(e),o.name=Do(t),o.type=r,o.questionToken=n,o.transformFlags=1,o.initializer=void 0,o.jsDoc=void 0,o}function ee(e,t,n,r,o){return e.modifiers!==t||e.name!==n||e.questionToken!==r||e.type!==o?function(e,t){e!==t&&(e.initializer=t.initializer);return ko(e,t)}(Z(t,n,r,o),e):e}function te(e,t,n,r,o){const i=E(172);i.modifiers=Co(e),i.name=Do(t),i.questionToken=n&&QR(n)?n:void 0,i.exclamationToken=n&&YR(n)?n:void 0,i.type=r,i.initializer=Mo(o);const a=33554432&i.flags||128&aE(i.modifiers);return i.transformFlags=ZA(i.modifiers)|$A(i.name)|QA(i.initializer)|(a||i.questionToken||i.exclamationToken||i.type?1:0)|(yC(i.name)||256&aE(i.modifiers)&&i.initializer?8192:0)|16777216,i.jsDoc=void 0,i}function ne(e,t,n,r,o,i){return e.modifiers!==t||e.name!==n||e.questionToken!==(void 0!==r&&QR(r)?r:void 0)||e.exclamationToken!==(void 0!==r&&YR(r)?r:void 0)||e.type!==o||e.initializer!==i?ko(te(t,n,r,o,i),e):e}function re(e,t,n,r,o,i){const a=E(173);return a.modifiers=Co(e),a.name=Do(t),a.questionToken=n,a.typeParameters=Co(r),a.parameters=Co(o),a.type=i,a.transformFlags=1,a.jsDoc=void 0,a.locals=void 0,a.nextContainer=void 0,a.typeArguments=void 0,a}function oe(e,t,n,r,o,i,a){return e.modifiers!==t||e.name!==n||e.questionToken!==r||e.typeParameters!==o||e.parameters!==i||e.type!==a?S(re(t,n,r,o,i,a),e):e}function ie(e,t,n,r,o,i,a,s){const l=E(174);if(l.modifiers=Co(e),l.asteriskToken=t,l.name=Do(n),l.questionToken=r,l.exclamationToken=void 0,l.typeParameters=Co(o),l.parameters=v(i),l.type=a,l.body=s,l.body){const e=1024&aE(l.modifiers),t=!!l.asteriskToken,n=e&&t;l.transformFlags=ZA(l.modifiers)|QA(l.asteriskToken)|$A(l.name)|QA(l.questionToken)|ZA(l.typeParameters)|ZA(l.parameters)|QA(l.type)|-67108865&QA(l.body)|(n?128:e?256:t?2048:0)|(l.questionToken||l.typeParameters||l.type?1:0)|1024}else l.transformFlags=1;return l.typeArguments=void 0,l.jsDoc=void 0,l.locals=void 0,l.nextContainer=void 0,l.flowNode=void 0,l.endFlowNode=void 0,l.returnFlowNode=void 0,l}function ae(e,t,n,r,o,i,a,s,l){return e.modifiers!==t||e.asteriskToken!==n||e.name!==r||e.questionToken!==o||e.typeParameters!==i||e.parameters!==a||e.type!==s||e.body!==l?function(e,t){e!==t&&(e.exclamationToken=t.exclamationToken);return ko(e,t)}(ie(t,n,r,o,i,a,s,l),e):e}function le(e){const t=E(175);return t.body=e,t.transformFlags=16777216|QA(e),t.modifiers=void 0,t.jsDoc=void 0,t.locals=void 0,t.nextContainer=void 0,t.endFlowNode=void 0,t.returnFlowNode=void 0,t}function ce(e,t,n){const r=E(176);return r.modifiers=Co(e),r.parameters=v(t),r.body=n,r.transformFlags=ZA(r.modifiers)|ZA(r.parameters)|-67108865&QA(r.body)|1024,r.typeParameters=void 0,r.type=void 0,r.typeArguments=void 0,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.endFlowNode=void 0,r.returnFlowNode=void 0,r}function de(e,t,n,r){return e.modifiers!==t||e.parameters!==n||e.body!==r?function(e,t){e!==t&&(e.typeParameters=t.typeParameters,e.type=t.type);return S(e,t)}(ce(t,n,r),e):e}function ue(e,t,n,r,o){const i=E(177);return i.modifiers=Co(e),i.name=Do(t),i.parameters=v(n),i.type=r,i.body=o,i.body?i.transformFlags=ZA(i.modifiers)|$A(i.name)|ZA(i.parameters)|QA(i.type)|-67108865&QA(i.body)|(i.type?1:0):i.transformFlags=1,i.typeArguments=void 0,i.typeParameters=void 0,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.flowNode=void 0,i.endFlowNode=void 0,i.returnFlowNode=void 0,i}function pe(e,t,n,r,o,i){return e.modifiers!==t||e.name!==n||e.parameters!==r||e.type!==o||e.body!==i?function(e,t){e!==t&&(e.typeParameters=t.typeParameters);return S(e,t)}(ue(t,n,r,o,i),e):e}function fe(e,t,n,r){const o=E(178);return o.modifiers=Co(e),o.name=Do(t),o.parameters=v(n),o.body=r,o.body?o.transformFlags=ZA(o.modifiers)|$A(o.name)|ZA(o.parameters)|-67108865&QA(o.body)|(o.type?1:0):o.transformFlags=1,o.typeArguments=void 0,o.typeParameters=void 0,o.type=void 0,o.jsDoc=void 0,o.locals=void 0,o.nextContainer=void 0,o.flowNode=void 0,o.endFlowNode=void 0,o.returnFlowNode=void 0,o}function me(e,t,n,r,o){return e.modifiers!==t||e.name!==n||e.parameters!==r||e.body!==o?function(e,t){e!==t&&(e.typeParameters=t.typeParameters,e.type=t.type);return S(e,t)}(fe(t,n,r,o),e):e}function _e(e,t,n){const r=E(179);return r.typeParameters=Co(e),r.parameters=Co(t),r.type=n,r.transformFlags=1,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function he(e,t,n){const r=E(180);return r.typeParameters=Co(e),r.parameters=Co(t),r.type=n,r.transformFlags=1,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function ge(e,t,n){const r=E(181);return r.modifiers=Co(e),r.parameters=Co(t),r.type=n,r.transformFlags=1,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function ye(e,t,n,r){return e.parameters!==n||e.type!==r||e.modifiers!==t?S(ge(t,n,r),e):e}function ve(e,t){const n=b(204);return n.type=e,n.literal=t,n.transformFlags=1,n}function be(e,t,n){const r=b(182);return r.assertsModifier=e,r.parameterName=Do(t),r.type=n,r.transformFlags=1,r}function Se(e,t){const n=b(183);return n.typeName=Do(e),n.typeArguments=t&&r().parenthesizeTypeArguments(v(t)),n.transformFlags=1,n}function Te(e,t,n){const r=E(184);return r.typeParameters=Co(e),r.parameters=Co(t),r.type=n,r.transformFlags=1,r.modifiers=void 0,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function xe(...e){return 4===e.length?Ae(...e):3===e.length?function(e,t,n){return Ae(void 0,e,t,n)}(...e):In.fail("Incorrect number of arguments specified.")}function Ae(e,t,n,r){const o=E(185);return o.modifiers=Co(e),o.typeParameters=Co(t),o.parameters=Co(n),o.type=r,o.transformFlags=1,o.jsDoc=void 0,o.locals=void 0,o.nextContainer=void 0,o.typeArguments=void 0,o}function Ie(e,t,n,r,o){return e.modifiers!==t||e.typeParameters!==n||e.parameters!==r||e.type!==o?S(xe(t,n,r,o),e):e}function Re(e,t){const n=b(186);return n.exprName=e,n.typeArguments=t&&r().parenthesizeTypeArguments(t),n.transformFlags=1,n}function Ce(e){const t=E(187);return t.members=v(e),t.transformFlags=1,t}function De(e){const t=b(188);return t.elementType=r().parenthesizeNonArrayTypeOfPostfixType(e),t.transformFlags=1,t}function Ne(e){const t=b(189);return t.elements=v(r().parenthesizeElementTypesOfTupleType(e)),t.transformFlags=1,t}function Me(e,t,n,r){const o=E(202);return o.dotDotDotToken=e,o.name=t,o.questionToken=n,o.type=r,o.transformFlags=1,o.jsDoc=void 0,o}function Le(e){const t=b(190);return t.type=r().parenthesizeTypeOfOptionalType(e),t.transformFlags=1,t}function ke(e){const t=b(191);return t.type=e,t.transformFlags=1,t}function Pe(e,t,n){const r=b(e);return r.types=y.createNodeArray(n(t)),r.transformFlags=1,r}function we(e,t,n){return e.types!==t?ko(Pe(e.kind,t,n),e):e}function Fe(e,t,n,o){const i=b(194);return i.checkType=r().parenthesizeCheckTypeOfConditionalType(e),i.extendsType=r().parenthesizeExtendsTypeOfConditionalType(t),i.trueType=n,i.falseType=o,i.transformFlags=1,i.locals=void 0,i.nextContainer=void 0,i}function ze(e){const t=b(195);return t.typeParameter=e,t.transformFlags=1,t}function Be(e,t){const n=b(203);return n.head=e,n.templateSpans=v(t),n.transformFlags=1,n}function Ge(e,t,n,o,i=!1){const a=b(205);return a.argument=e,a.attributes=t,a.assertions&&a.assertions.assertClause&&a.attributes&&(a.assertions.assertClause=a.attributes),a.qualifier=n,a.typeArguments=o&&r().parenthesizeTypeArguments(o),a.isTypeOf=i,a.transformFlags=1,a}function je(e){const t=b(196);return t.type=e,t.transformFlags=1,t}function Ve(e,t){const n=b(198);return n.operator=e,n.type=148===e?r().parenthesizeOperandOfReadonlyTypeOperator(t):r().parenthesizeOperandOfTypeOperator(t),n.transformFlags=1,n}function Ke(e,t){const n=b(199);return n.objectType=r().parenthesizeNonArrayTypeOfPostfixType(e),n.indexType=t,n.transformFlags=1,n}function qe(e,t,n,r,o,i){const a=E(200);return a.readonlyToken=e,a.typeParameter=t,a.nameType=n,a.questionToken=r,a.type=o,a.members=i&&v(i),a.transformFlags=1,a.locals=void 0,a.nextContainer=void 0,a}function Je(e){const t=b(201);return t.literal=e,t.transformFlags=1,t}function Xe(e){const t=b(206);return t.elements=v(e),t.transformFlags|=525312|ZA(t.elements),32768&t.transformFlags&&(t.transformFlags|=65664),t}function $e(e){const t=b(207);return t.elements=v(e),t.transformFlags|=525312|ZA(t.elements),t}function Ye(e,t,n,r){const o=E(208);return o.dotDotDotToken=e,o.propertyName=Do(t),o.name=Do(n),o.initializer=Mo(r),o.transformFlags|=QA(o.dotDotDotToken)|$A(o.propertyName)|$A(o.name)|QA(o.initializer)|(o.dotDotDotToken?32768:0)|1024,o.flowNode=void 0,o}function Qe(e,t){const n=b(209),o=e&&Oe(e),i=v(e,!(!o||!DD(o))||void 0);return n.elements=r().parenthesizeExpressionsOfCommaDelimitedList(i),n.multiLine=t,n.transformFlags|=ZA(n.elements),n}function Ze(e,t){const n=E(210);return n.properties=v(e),n.multiLine=t,n.transformFlags|=ZA(n.properties),n.jsDoc=void 0,n}function et(e,t,n){const r=E(211);return r.expression=e,r.questionDotToken=t,r.name=n,r.transformFlags=QA(r.expression)|QA(r.questionDotToken)|(nC(r.name)?YA(r.name):536870912|QA(r.name)),r.jsDoc=void 0,r.flowNode=void 0,r}function tt(e,t){const n=et(r().parenthesizeLeftSideOfAccess(e,!1),void 0,Do(t));return mC(e)&&(n.transformFlags|=384),n}function nt(e,t,n){const o=et(r().parenthesizeLeftSideOfAccess(e,!0),t,Do(n));return o.flags|=64,o.transformFlags|=32,o}function rt(e,t,n,r){return In.assert(!!(64&e.flags),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),e.expression!==t||e.questionDotToken!==n||e.name!==r?ko(nt(t,n,r),e):e}function ot(e,t,n){const r=E(212);return r.expression=e,r.questionDotToken=t,r.argumentExpression=n,r.transformFlags|=QA(r.expression)|QA(r.questionDotToken)|QA(r.argumentExpression),r.jsDoc=void 0,r.flowNode=void 0,r}function it(e,t){const n=ot(r().parenthesizeLeftSideOfAccess(e,!1),void 0,No(t));return mC(e)&&(n.transformFlags|=384),n}function at(e,t,n){const o=ot(r().parenthesizeLeftSideOfAccess(e,!0),t,No(n));return o.flags|=64,o.transformFlags|=32,o}function st(e,t,n,r){return In.assert(!!(64&e.flags),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),e.expression!==t||e.questionDotToken!==n||e.argumentExpression!==r?ko(at(t,n,r),e):e}function lt(e,t,n,r){const o=E(213);return o.expression=e,o.questionDotToken=t,o.typeArguments=n,o.arguments=r,o.transformFlags|=QA(o.expression)|QA(o.questionDotToken)|ZA(o.typeArguments)|ZA(o.arguments),o.typeArguments&&(o.transformFlags|=1),Ih(o.expression)&&(o.transformFlags|=16384),o}function ct(e,t,n){const o=lt(r().parenthesizeLeftSideOfAccess(e,!1),void 0,Co(t),r().parenthesizeExpressionsOfCommaDelimitedList(v(n)));return _C(o.expression)&&(o.transformFlags|=8388608),o}function dt(e,t,n,o){const i=lt(r().parenthesizeLeftSideOfAccess(e,!0),t,Co(n),r().parenthesizeExpressionsOfCommaDelimitedList(v(o)));return i.flags|=64,i.transformFlags|=32,i}function ut(e,t,n,r,o){return In.assert(!!(64&e.flags),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),e.expression!==t||e.questionDotToken!==n||e.typeArguments!==r||e.arguments!==o?ko(dt(t,n,r,o),e):e}function pt(e,t,n){const o=E(214);return o.expression=r().parenthesizeExpressionOfNew(e),o.typeArguments=Co(t),o.arguments=n?r().parenthesizeExpressionsOfCommaDelimitedList(n):void 0,o.transformFlags|=QA(o.expression)|ZA(o.typeArguments)|ZA(o.arguments)|32,o.typeArguments&&(o.transformFlags|=1),o}function ft(e,t,n){const o=b(215);return o.tag=r().parenthesizeLeftSideOfAccess(e,!1),o.typeArguments=Co(t),o.template=n,o.transformFlags|=QA(o.tag)|ZA(o.typeArguments)|QA(o.template)|1024,o.typeArguments&&(o.transformFlags|=1),Pv(o.template)&&(o.transformFlags|=128),o}function _t(e,t){const n=b(216);return n.expression=r().parenthesizeOperandOfPrefixUnary(t),n.type=e,n.transformFlags|=QA(n.expression)|QA(n.type)|1,n}function ht(e,t,n){return e.type!==t||e.expression!==n?ko(_t(t,n),e):e}function gt(e){const t=b(217);return t.expression=e,t.transformFlags=QA(t.expression),t.jsDoc=void 0,t}function yt(e,t){return e.expression!==t?ko(gt(t),e):e}function bt(e,t,n,r,o,i,a){const s=E(218);s.modifiers=Co(e),s.asteriskToken=t,s.name=Do(n),s.typeParameters=Co(r),s.parameters=v(o),s.type=i,s.body=a;const l=1024&aE(s.modifiers),c=!!s.asteriskToken,d=l&&c;return s.transformFlags=ZA(s.modifiers)|QA(s.asteriskToken)|$A(s.name)|ZA(s.typeParameters)|ZA(s.parameters)|QA(s.type)|-67108865&QA(s.body)|(d?128:l?256:c?2048:0)|(s.typeParameters||s.type?1:0)|4194304,s.typeArguments=void 0,s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.flowNode=void 0,s.endFlowNode=void 0,s.returnFlowNode=void 0,s}function Et(e,t,n,r,o,i,a,s){return e.name!==r||e.modifiers!==t||e.asteriskToken!==n||e.typeParameters!==o||e.parameters!==i||e.type!==a||e.body!==s?S(bt(t,n,r,o,i,a,s),e):e}function Tt(e,t,n,o,i,a){const s=E(219);s.modifiers=Co(e),s.typeParameters=Co(t),s.parameters=v(n),s.type=o,s.equalsGreaterThanToken=i??W(39),s.body=r().parenthesizeConciseBodyOfArrowFunction(a);const l=1024&aE(s.modifiers);return s.transformFlags=ZA(s.modifiers)|ZA(s.typeParameters)|ZA(s.parameters)|QA(s.type)|QA(s.equalsGreaterThanToken)|-67108865&QA(s.body)|(s.typeParameters||s.type?1:0)|(l?16640:0)|1024,s.typeArguments=void 0,s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.flowNode=void 0,s.endFlowNode=void 0,s.returnFlowNode=void 0,s}function At(e,t,n,r,o,i,a){return e.modifiers!==t||e.typeParameters!==n||e.parameters!==r||e.type!==o||e.equalsGreaterThanToken!==i||e.body!==a?S(Tt(t,n,r,o,i,a),e):e}function It(e){const t=b(220);return t.expression=r().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=QA(t.expression),t}function Rt(e){const t=b(221);return t.expression=r().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=QA(t.expression),t}function Nt(e){const t=b(222);return t.expression=r().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=QA(t.expression),t}function Mt(e){const t=b(223);return t.expression=r().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=2097536|QA(t.expression),t}function Lt(e,t){const n=b(224);return n.operator=e,n.operand=r().parenthesizeOperandOfPrefixUnary(t),n.transformFlags|=QA(n.operand),46!==e&&47!==e||!nC(n.operand)||ud(n.operand)||uL(n.operand)||(n.transformFlags|=268435456),n}function kt(e,t){const n=b(225);return n.operator=t,n.operand=r().parenthesizeOperandOfPostfixUnary(e),n.transformFlags|=QA(n.operand),!nC(n.operand)||ud(n.operand)||uL(n.operand)||(n.transformFlags|=268435456),n}function Pt(e,t,n){const o=E(226),i="number"===typeof(a=t)?W(a):a;var a;const s=i.kind;return o.left=r().parenthesizeLeftSideOfBinary(s,e),o.operatorToken=i,o.right=r().parenthesizeRightSideOfBinary(s,o.left,n),o.transformFlags|=QA(o.left)|QA(o.operatorToken)|QA(o.right),61===s?o.transformFlags|=32:64===s?sD(o.left)?o.transformFlags|=5248|wt(o.left):aD(o.left)&&(o.transformFlags|=5120|wt(o.left)):43===s||68===s?o.transformFlags|=512:dE(s)&&(o.transformFlags|=16),103===s&&rC(o.left)&&(o.transformFlags|=536870912),o.jsDoc=void 0,o}function wt(e){return hk(e)?65536:0}function Ot(e,t,n,o,i){const a=b(227);return a.condition=r().parenthesizeConditionOfConditionalExpression(e),a.questionToken=t??W(58),a.whenTrue=r().parenthesizeBranchOfConditionalExpression(n),a.colonToken=o??W(59),a.whenFalse=r().parenthesizeBranchOfConditionalExpression(i),a.transformFlags|=QA(a.condition)|QA(a.questionToken)|QA(a.whenTrue)|QA(a.colonToken)|QA(a.whenFalse),a}function Ft(e,t){const n=b(228);return n.head=e,n.templateSpans=v(t),n.transformFlags|=QA(n.head)|ZA(n.templateSpans)|1024,n}function Wt(e,t,n,r=0){let o;if(In.assert(!(-7177&r),"Unsupported template flags."),void 0!==n&&n!==t&&(o=function(e,t){GA||(GA=Bs(99,!1,0));switch(e){case 15:GA.setText("`"+t+"`");break;case 16:GA.setText("`"+t+"${");break;case 17:GA.setText("}"+t+"${");break;case 18:GA.setText("}"+t+"`")}let n,r=GA.scan();20===r&&(r=GA.reScanTemplateToken(!1));if(GA.isUnterminated())return GA.setText(void 0),jA;switch(r){case 15:case 16:case 17:case 18:n=GA.getTokenValue()}if(void 0===n||1!==GA.scan())return GA.setText(void 0),jA;return GA.setText(void 0),n}(e,n),"object"===typeof o))return In.fail("Invalid raw text");if(void 0===t){if(void 0===o)return In.fail("Arguments 'text' and 'rawText' may not both be undefined.");t=o}else void 0!==o&&In.assert(t===o,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return t}function zt(e){let t=1024;return e&&(t|=128),t}function Bt(e,t,n,r){const o=E(e);return o.text=t,o.rawText=n,o.templateFlags=7176&r,o.transformFlags=zt(o.templateFlags),o}function Gt(e,t,n,r){return 15===e?Bt(e,t,n,r):function(e,t,n,r){const o=F(e);return o.text=t,o.rawText=n,o.templateFlags=7176&r,o.transformFlags=zt(o.templateFlags),o}(e,t,n,r)}function jt(e,t){In.assert(!e||!!t,"A `YieldExpression` with an asteriskToken must have an expression.");const n=b(229);return n.expression=t&&r().parenthesizeExpressionForDisallowedComma(t),n.asteriskToken=e,n.transformFlags|=1049728|(QA(n.expression)|QA(n.asteriskToken)),n}function Vt(e){const t=b(230);return t.expression=r().parenthesizeExpressionForDisallowedComma(e),t.transformFlags|=33792|QA(t.expression),t}function Ut(e,t,n,r,o){const i=E(231);return i.modifiers=Co(e),i.name=Do(t),i.typeParameters=Co(n),i.heritageClauses=Co(r),i.members=v(o),i.transformFlags|=ZA(i.modifiers)|$A(i.name)|ZA(i.typeParameters)|ZA(i.heritageClauses)|ZA(i.members)|(i.typeParameters?1:0)|1024,i.jsDoc=void 0,i}function Ht(e,t,n,r,o,i){return e.modifiers!==t||e.name!==n||e.typeParameters!==r||e.heritageClauses!==o||e.members!==i?ko(Ut(t,n,r,o,i),e):e}function Kt(e,t){const n=b(233);return n.expression=r().parenthesizeLeftSideOfAccess(e,!1),n.typeArguments=t&&r().parenthesizeTypeArguments(t),n.transformFlags|=QA(n.expression)|ZA(n.typeArguments)|1024,n}function qt(e,t){const n=b(234);return n.expression=e,n.type=t,n.transformFlags|=QA(n.expression)|QA(n.type)|1,n}function Jt(e,t,n){return e.expression!==t||e.type!==n?ko(qt(t,n),e):e}function Xt(e){const t=b(235);return t.expression=r().parenthesizeLeftSideOfAccess(e,!1),t.transformFlags|=1|QA(t.expression),t}function $t(e,t){return jc(e)?en(e,t):e.expression!==t?ko(Xt(t),e):e}function Yt(e,t){const n=b(238);return n.expression=e,n.type=t,n.transformFlags|=QA(n.expression)|QA(n.type)|1,n}function Qt(e,t,n){return e.expression!==t||e.type!==n?ko(Yt(t,n),e):e}function Zt(e){const t=b(235);return t.flags|=64,t.expression=r().parenthesizeLeftSideOfAccess(e,!0),t.transformFlags|=1|QA(t.expression),t}function en(e,t){return In.assert(!!(64&e.flags),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),e.expression!==t?ko(Zt(t),e):e}function tn(e,t){const n=b(236);switch(n.keywordToken=e,n.name=t,n.transformFlags|=QA(n.name),e){case 105:n.transformFlags|=1024;break;case 102:n.transformFlags|=32;break;default:return In.assertNever(e)}return n.flowNode=void 0,n}function nn(e,t){const n=b(239);return n.expression=e,n.literal=t,n.transformFlags|=QA(n.expression)|QA(n.literal)|1024,n}function rn(e,t){const n=b(241);return n.statements=v(e),n.multiLine=t,n.transformFlags|=ZA(n.statements),n.jsDoc=void 0,n.locals=void 0,n.nextContainer=void 0,n}function on(e,t){const n=b(243);return n.modifiers=Co(e),n.declarationList=mt(t)?Rn(t):t,n.transformFlags|=ZA(n.modifiers)|QA(n.declarationList),128&aE(n.modifiers)&&(n.transformFlags=1),n.jsDoc=void 0,n.flowNode=void 0,n}function an(e,t,n){return e.modifiers!==t||e.declarationList!==n?ko(on(t,n),e):e}function sn(){const e=b(242);return e.jsDoc=void 0,e}function ln(e){const t=b(244);return t.expression=r().parenthesizeExpressionOfExpressionStatement(e),t.transformFlags|=QA(t.expression),t.jsDoc=void 0,t.flowNode=void 0,t}function cn(e,t,n){const r=b(245);return r.expression=e,r.thenStatement=Lo(t),r.elseStatement=Lo(n),r.transformFlags|=QA(r.expression)|QA(r.thenStatement)|QA(r.elseStatement),r.jsDoc=void 0,r.flowNode=void 0,r}function un(e,t){const n=b(246);return n.statement=Lo(e),n.expression=t,n.transformFlags|=QA(n.statement)|QA(n.expression),n.jsDoc=void 0,n.flowNode=void 0,n}function pn(e,t){const n=b(247);return n.expression=e,n.statement=Lo(t),n.transformFlags|=QA(n.expression)|QA(n.statement),n.jsDoc=void 0,n.flowNode=void 0,n}function fn(e,t,n,r){const o=b(248);return o.initializer=e,o.condition=t,o.incrementor=n,o.statement=Lo(r),o.transformFlags|=QA(o.initializer)|QA(o.condition)|QA(o.incrementor)|QA(o.statement),o.jsDoc=void 0,o.locals=void 0,o.nextContainer=void 0,o.flowNode=void 0,o}function mn(e,t,n){const r=b(249);return r.initializer=e,r.expression=t,r.statement=Lo(n),r.transformFlags|=QA(r.initializer)|QA(r.expression)|QA(r.statement),r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.flowNode=void 0,r}function _n(e,t,n,o){const i=b(250);return i.awaitModifier=e,i.initializer=t,i.expression=r().parenthesizeExpressionForDisallowedComma(n),i.statement=Lo(o),i.transformFlags|=QA(i.awaitModifier)|QA(i.initializer)|QA(i.expression)|QA(i.statement)|1024,e&&(i.transformFlags|=128),i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.flowNode=void 0,i}function hn(e){const t=b(251);return t.label=Do(e),t.transformFlags|=4194304|QA(t.label),t.jsDoc=void 0,t.flowNode=void 0,t}function gn(e){const t=b(252);return t.label=Do(e),t.transformFlags|=4194304|QA(t.label),t.jsDoc=void 0,t.flowNode=void 0,t}function yn(e){const t=b(253);return t.expression=e,t.transformFlags|=4194432|QA(t.expression),t.jsDoc=void 0,t.flowNode=void 0,t}function vn(e,t){const n=b(254);return n.expression=e,n.statement=Lo(t),n.transformFlags|=QA(n.expression)|QA(n.statement),n.jsDoc=void 0,n.flowNode=void 0,n}function bn(e,t){const n=b(255);return n.expression=r().parenthesizeExpressionForDisallowedComma(e),n.caseBlock=t,n.transformFlags|=QA(n.expression)|QA(n.caseBlock),n.jsDoc=void 0,n.flowNode=void 0,n.possiblyExhaustive=!1,n}function En(e,t){const n=b(256);return n.label=Do(e),n.statement=Lo(t),n.transformFlags|=QA(n.label)|QA(n.statement),n.jsDoc=void 0,n.flowNode=void 0,n}function Sn(e,t,n){return e.label!==t||e.statement!==n?ko(En(t,n),e):e}function Tn(e){const t=b(257);return t.expression=e,t.transformFlags|=QA(t.expression),t.jsDoc=void 0,t.flowNode=void 0,t}function xn(e,t,n){const r=b(258);return r.tryBlock=e,r.catchClause=t,r.finallyBlock=n,r.transformFlags|=QA(r.tryBlock)|QA(r.catchClause)|QA(r.finallyBlock),r.jsDoc=void 0,r.flowNode=void 0,r}function An(e,t,n,r){const o=E(260);return o.name=Do(e),o.exclamationToken=t,o.type=n,o.initializer=Mo(r),o.transformFlags|=$A(o.name)|QA(o.initializer)|(o.exclamationToken??o.type?1:0),o.jsDoc=void 0,o}function Rn(e,t=0){const n=b(261);return n.flags|=7&t,n.declarations=v(e),n.transformFlags|=4194304|ZA(n.declarations),7&t&&(n.transformFlags|=263168),4&t&&(n.transformFlags|=4),n}function Cn(e,t,n,r,o,i,a){const s=E(262);if(s.modifiers=Co(e),s.asteriskToken=t,s.name=Do(n),s.typeParameters=Co(r),s.parameters=v(o),s.type=i,s.body=a,!s.body||128&aE(s.modifiers))s.transformFlags=1;else{const e=1024&aE(s.modifiers),t=!!s.asteriskToken,n=e&&t;s.transformFlags=ZA(s.modifiers)|QA(s.asteriskToken)|$A(s.name)|ZA(s.typeParameters)|ZA(s.parameters)|QA(s.type)|-67108865&QA(s.body)|(n?128:e?256:t?2048:0)|(s.typeParameters||s.type?1:0)|4194304}return s.typeArguments=void 0,s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.endFlowNode=void 0,s.returnFlowNode=void 0,s}function Dn(e,t,n,r,o,i,a,s){return e.modifiers!==t||e.asteriskToken!==n||e.name!==r||e.typeParameters!==o||e.parameters!==i||e.type!==a||e.body!==s?function(e,t){e!==t&&e.modifiers===t.modifiers&&(e.modifiers=t.modifiers);return S(e,t)}(Cn(t,n,r,o,i,a,s),e):e}function Nn(e,t,n,r,o){const i=E(263);return i.modifiers=Co(e),i.name=Do(t),i.typeParameters=Co(n),i.heritageClauses=Co(r),i.members=v(o),128&aE(i.modifiers)?i.transformFlags=1:(i.transformFlags|=ZA(i.modifiers)|$A(i.name)|ZA(i.typeParameters)|ZA(i.heritageClauses)|ZA(i.members)|(i.typeParameters?1:0)|1024,8192&i.transformFlags&&(i.transformFlags|=1)),i.jsDoc=void 0,i}function Mn(e,t,n,r,o,i){return e.modifiers!==t||e.name!==n||e.typeParameters!==r||e.heritageClauses!==o||e.members!==i?ko(Nn(t,n,r,o,i),e):e}function Ln(e,t,n,r,o){const i=E(264);return i.modifiers=Co(e),i.name=Do(t),i.typeParameters=Co(n),i.heritageClauses=Co(r),i.members=v(o),i.transformFlags=1,i.jsDoc=void 0,i}function kn(e,t,n,r,o,i){return e.modifiers!==t||e.name!==n||e.typeParameters!==r||e.heritageClauses!==o||e.members!==i?ko(Ln(t,n,r,o,i),e):e}function Pn(e,t,n,r){const o=E(265);return o.modifiers=Co(e),o.name=Do(t),o.typeParameters=Co(n),o.type=r,o.transformFlags=1,o.jsDoc=void 0,o.locals=void 0,o.nextContainer=void 0,o}function wn(e,t,n,r,o){return e.modifiers!==t||e.name!==n||e.typeParameters!==r||e.type!==o?ko(Pn(t,n,r,o),e):e}function On(e,t,n){const r=E(266);return r.modifiers=Co(e),r.name=Do(t),r.members=v(n),r.transformFlags|=ZA(r.modifiers)|QA(r.name)|ZA(r.members)|1,r.transformFlags&=-67108865,r.jsDoc=void 0,r}function Fn(e,t,n,r){return e.modifiers!==t||e.name!==n||e.members!==r?ko(On(t,n,r),e):e}function Wn(e,t,n,r=0){const o=E(267);return o.modifiers=Co(e),o.flags|=2088&r,o.name=t,o.body=n,128&aE(o.modifiers)?o.transformFlags=1:o.transformFlags|=ZA(o.modifiers)|QA(o.name)|QA(o.body)|1,o.transformFlags&=-67108865,o.jsDoc=void 0,o.locals=void 0,o.nextContainer=void 0,o}function zn(e,t,n,r){return e.modifiers!==t||e.name!==n||e.body!==r?ko(Wn(t,n,r,e.flags),e):e}function Bn(e){const t=b(268);return t.statements=v(e),t.transformFlags|=ZA(t.statements),t.jsDoc=void 0,t}function Gn(e){const t=b(269);return t.clauses=v(e),t.transformFlags|=ZA(t.clauses),t.locals=void 0,t.nextContainer=void 0,t}function jn(e){const t=E(270);return t.name=Do(e),t.transformFlags|=1|YA(t.name),t.modifiers=void 0,t.jsDoc=void 0,t}function Vn(e,t,n,r){const o=E(271);return o.modifiers=Co(e),o.name=Do(n),o.isTypeOnly=t,o.moduleReference=r,o.transformFlags|=ZA(o.modifiers)|YA(o.name)|QA(o.moduleReference),wN(o.moduleReference)||(o.transformFlags|=1),o.transformFlags&=-67108865,o.jsDoc=void 0,o}function Un(e,t,n,r,o){return e.modifiers!==t||e.isTypeOnly!==n||e.name!==r||e.moduleReference!==o?ko(Vn(t,n,r,o),e):e}function Hn(e,t,n,r){const o=b(272);return o.modifiers=Co(e),o.importClause=t,o.moduleSpecifier=n,o.attributes=o.assertClause=r,o.transformFlags|=QA(o.importClause)|QA(o.moduleSpecifier),o.transformFlags&=-67108865,o.jsDoc=void 0,o}function Kn(e,t,n,r,o){return e.modifiers!==t||e.importClause!==n||e.moduleSpecifier!==r||e.attributes!==o?ko(Hn(t,n,r,o),e):e}function qn(e,t,n){const r=E(273);return r.isTypeOnly=e,r.name=t,r.namedBindings=n,r.transformFlags|=QA(r.name)|QA(r.namedBindings),e&&(r.transformFlags|=1),r.transformFlags&=-67108865,r}function Jn(e,t){const n=b(300);return n.elements=v(e),n.multiLine=t,n.token=132,n.transformFlags|=4,n}function Xn(e,t){const n=b(301);return n.name=e,n.value=t,n.transformFlags|=4,n}function $n(e,t){const n=b(302);return n.assertClause=e,n.multiLine=t,n}function Yn(e,t,n){const r=b(300);return r.token=n??118,r.elements=v(e),r.multiLine=t,r.transformFlags|=4,r}function Qn(e,t){const n=b(301);return n.name=e,n.value=t,n.transformFlags|=4,n}function Zn(e){const t=E(274);return t.name=e,t.transformFlags|=QA(t.name),t.transformFlags&=-67108865,t}function er(e){const t=E(280);return t.name=e,t.transformFlags|=32|QA(t.name),t.transformFlags&=-67108865,t}function tr(e){const t=b(275);return t.elements=v(e),t.transformFlags|=ZA(t.elements),t.transformFlags&=-67108865,t}function nr(e,t,n){const r=E(276);return r.isTypeOnly=e,r.propertyName=t,r.name=n,r.transformFlags|=QA(r.propertyName)|QA(r.name),r.transformFlags&=-67108865,r}function rr(e,t,n){const o=E(277);return o.modifiers=Co(e),o.isExportEquals=t,o.expression=t?r().parenthesizeRightSideOfBinary(64,void 0,n):r().parenthesizeExpressionOfExportDefault(n),o.transformFlags|=ZA(o.modifiers)|QA(o.expression),o.transformFlags&=-67108865,o.jsDoc=void 0,o}function or(e,t,n){return e.modifiers!==t||e.expression!==n?ko(rr(t,e.isExportEquals,n),e):e}function ir(e,t,n,r,o){const i=E(278);return i.modifiers=Co(e),i.isTypeOnly=t,i.exportClause=n,i.moduleSpecifier=r,i.attributes=i.assertClause=o,i.transformFlags|=ZA(i.modifiers)|QA(i.exportClause)|QA(i.moduleSpecifier),i.transformFlags&=-67108865,i.jsDoc=void 0,i}function ar(e,t,n,r,o,i){return e.modifiers!==t||e.isTypeOnly!==n||e.exportClause!==r||e.moduleSpecifier!==o||e.attributes!==i?function(e,t){e!==t&&e.modifiers===t.modifiers&&(e.modifiers=t.modifiers);return ko(e,t)}(ir(t,n,r,o,i),e):e}function sr(e){const t=b(279);return t.elements=v(e),t.transformFlags|=ZA(t.elements),t.transformFlags&=-67108865,t}function lr(e,t,n){const r=b(281);return r.isTypeOnly=e,r.propertyName=Do(t),r.name=Do(n),r.transformFlags|=QA(r.propertyName)|QA(r.name),r.transformFlags&=-67108865,r.jsDoc=void 0,r}function cr(e){const t=b(283);return t.expression=e,t.transformFlags|=QA(t.expression),t.transformFlags&=-67108865,t}function dr(e,t,n=!1){const o=ur(e,n?t&&r().parenthesizeNonArrayTypeOfPostfixType(t):t);return o.postfix=n,o}function ur(e,t){const n=b(e);return n.type=t,n}function pr(e,t){const n=E(324);return n.parameters=Co(e),n.type=t,n.transformFlags=ZA(n.parameters)|(n.type?1:0),n.jsDoc=void 0,n.locals=void 0,n.nextContainer=void 0,n.typeArguments=void 0,n}function fr(e,t=!1){const n=E(329);return n.jsDocPropertyTags=Co(e),n.isArrayType=t,n}function mr(e){const t=b(316);return t.type=e,t}function _r(e,t,n){const r=E(330);return r.typeParameters=Co(e),r.parameters=v(t),r.type=n,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r}function hr(e){const t=XA(e.kind);return e.tagName.escapedText===Ml(t)?e.tagName:L(t)}function gr(e,t,n){const r=b(e);return r.tagName=t,r.comment=n,r}function yr(e,t,n){const r=E(e);return r.tagName=t,r.comment=n,r}function vr(e,t,n,r){const o=gr(352,e??L("template"),r);return o.constraint=t,o.typeParameters=v(n),o}function br(e,t,n,r){const o=yr(353,e??L("typedef"),r);return o.typeExpression=t,o.fullName=n,o.name=zL(n),o.locals=void 0,o.nextContainer=void 0,o}function Er(e,t,n,r,o,i){const a=yr(348,e??L("param"),i);return a.typeExpression=r,a.name=t,a.isNameFirst=!!o,a.isBracketed=n,a}function Sr(e,t,n,r,o,i){const a=yr(355,e??L("prop"),i);return a.typeExpression=r,a.name=t,a.isNameFirst=!!o,a.isBracketed=n,a}function Tr(e,t,n,r){const o=yr(345,e??L("callback"),r);return o.typeExpression=t,o.fullName=n,o.name=zL(n),o.locals=void 0,o.nextContainer=void 0,o}function xr(e,t,n){const r=gr(346,e??L("overload"),n);return r.typeExpression=t,r}function Ar(e,t,n){const r=gr(335,e??L("augments"),n);return r.class=t,r}function Ir(e,t,n){const r=gr(336,e??L("implements"),n);return r.class=t,r}function Rr(e,t,n){const r=gr(354,e??L("see"),n);return r.name=t,r}function Cr(e){const t=b(317);return t.name=e,t}function Dr(e,t){const n=b(318);return n.left=e,n.right=t,n.transformFlags|=QA(n.left)|QA(n.right),n}function Nr(e,t){const n=b(331);return n.name=e,n.text=t,n}function Mr(e,t){const n=b(332);return n.name=e,n.text=t,n}function Lr(e,t){const n=b(333);return n.name=e,n.text=t,n}function kr(e,t,n){return gr(e,t??L(XA(e)),n)}function Pr(e,t,n,r){const o=gr(e,t??L(XA(e)),r);return o.typeExpression=n,o}function wr(e,t){return gr(334,e,t)}function Or(e,t,n){const r=yr(347,e??L(XA(347)),n);return r.typeExpression=t,r.locals=void 0,r.nextContainer=void 0,r}function Fr(e){const t=b(328);return t.text=e,t}function Wr(e,t){const n=b(327);return n.comment=e,n.tags=Co(t),n}function zr(e,t,n){const r=b(284);return r.openingElement=e,r.children=v(t),r.closingElement=n,r.transformFlags|=QA(r.openingElement)|ZA(r.children)|QA(r.closingElement)|2,r}function Br(e,t,n){const r=b(285);return r.tagName=e,r.typeArguments=Co(t),r.attributes=n,r.transformFlags|=QA(r.tagName)|ZA(r.typeArguments)|QA(r.attributes)|2,r.typeArguments&&(r.transformFlags|=1),r}function Gr(e,t,n){const r=b(286);return r.tagName=e,r.typeArguments=Co(t),r.attributes=n,r.transformFlags|=QA(r.tagName)|ZA(r.typeArguments)|QA(r.attributes)|2,t&&(r.transformFlags|=1),r}function jr(e){const t=b(287);return t.tagName=e,t.transformFlags|=2|QA(t.tagName),t}function Vr(e,t,n){const r=b(288);return r.openingFragment=e,r.children=v(t),r.closingFragment=n,r.transformFlags|=QA(r.openingFragment)|ZA(r.children)|QA(r.closingFragment)|2,r}function Ur(e,t){const n=b(12);return n.text=e,n.containsOnlyTriviaWhiteSpaces=!!t,n.transformFlags|=2,n}function Hr(e,t){const n=E(291);return n.name=e,n.initializer=t,n.transformFlags|=QA(n.name)|QA(n.initializer)|2,n}function Kr(e){const t=E(292);return t.properties=v(e),t.transformFlags|=2|ZA(t.properties),t}function qr(e){const t=b(293);return t.expression=e,t.transformFlags|=2|QA(t.expression),t}function Jr(e,t){const n=b(294);return n.dotDotDotToken=e,n.expression=t,n.transformFlags|=QA(n.dotDotDotToken)|QA(n.expression)|2,n}function Xr(e,t){const n=b(295);return n.namespace=e,n.name=t,n.transformFlags|=QA(n.namespace)|QA(n.name)|2,n}function $r(e,t){const n=b(296);return n.expression=r().parenthesizeExpressionForDisallowedComma(e),n.statements=v(t),n.transformFlags|=QA(n.expression)|ZA(n.statements),n.jsDoc=void 0,n}function Yr(e){const t=b(297);return t.statements=v(e),t.transformFlags=ZA(t.statements),t}function Qr(e,t){const n=b(298);switch(n.token=e,n.types=v(t),n.transformFlags|=ZA(n.types),e){case 96:n.transformFlags|=1024;break;case 119:n.transformFlags|=1;break;default:return In.assertNever(e)}return n}function Zr(e,t){const n=b(299);return n.variableDeclaration=function(e){if("string"===typeof e||e&&!iN(e))return An(e,void 0,void 0,void 0);return e}(e),n.block=t,n.transformFlags|=QA(n.variableDeclaration)|QA(n.block)|(e?0:64),n.locals=void 0,n.nextContainer=void 0,n}function eo(e,t){const n=E(303);return n.name=Do(e),n.initializer=r().parenthesizeExpressionForDisallowedComma(t),n.transformFlags|=$A(n.name)|QA(n.initializer),n.modifiers=void 0,n.questionToken=void 0,n.exclamationToken=void 0,n.jsDoc=void 0,n}function to(e,t,n){return e.name!==t||e.initializer!==n?function(e,t){e!==t&&(e.modifiers=t.modifiers,e.questionToken=t.questionToken,e.exclamationToken=t.exclamationToken);return ko(e,t)}(eo(t,n),e):e}function no(e,t){const n=E(304);return n.name=Do(e),n.objectAssignmentInitializer=t&&r().parenthesizeExpressionForDisallowedComma(t),n.transformFlags|=YA(n.name)|QA(n.objectAssignmentInitializer)|1024,n.equalsToken=void 0,n.modifiers=void 0,n.questionToken=void 0,n.exclamationToken=void 0,n.jsDoc=void 0,n}function ro(e){const t=E(305);return t.expression=r().parenthesizeExpressionForDisallowedComma(e),t.transformFlags|=65664|QA(t.expression),t.jsDoc=void 0,t}function oo(e,t){const n=E(306);return n.name=Do(e),n.initializer=t&&r().parenthesizeExpressionForDisallowedComma(t),n.transformFlags|=QA(n.name)|QA(n.initializer)|1,n.jsDoc=void 0,n}function io(e){const t=Object.create(e.redirectTarget);return Object.defineProperties(t,{id:{get(){return this.redirectInfo.redirectTarget.id},set(e){this.redirectInfo.redirectTarget.id=e}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(e){this.redirectInfo.redirectTarget.symbol=e}}}),t.redirectInfo=e,t}function ao(e){const r=e.redirectInfo?function(e){const t=io(e.redirectInfo);return t.flags|=-17&e.flags,t.fileName=e.fileName,t.path=e.path,t.resolvedPath=e.resolvedPath,t.originalFileName=e.originalFileName,t.packageJsonLocations=e.packageJsonLocations,t.packageJsonScope=e.packageJsonScope,t.emitNode=void 0,t}(e):function(e){const n=t.createBaseSourceFileNode(312);n.flags|=-17&e.flags;for(const t in e)!He(n,t)&&He(e,t)&&("emitNode"!==t?n[t]=e[t]:n.emitNode=void 0);return n}(e);return n(r,e),r}function so(e,t=o){const n=b(313);return n.prepends=t,n.sourceFiles=e,n.syntheticFileReferences=void 0,n.syntheticTypeReferences=void 0,n.syntheticLibReferences=void 0,n.hasNoDefaultLib=void 0,n}function lo(e,t){const n=b(e);return n.data=t,n}function co(e,t){const n=b(360);return n.expression=e,n.original=t,n.transformFlags|=1|QA(n.expression),yk(n,t),n}function uo(e,t){return e.expression!==t?ko(co(t,e.original),e):e}function po(e){if(Sv(e)&&!Dl(e)&&!e.original&&!e.emitNode&&!e.id){if(FD(e))return e.elements;if(TD(e)&&qR(e.operatorToken))return[e.left,e.right]}return e}function fo(e){const t=b(361);return t.elements=v(Y(e,po)),t.transformFlags|=ZA(t.elements),t}function mo(e,t){const n=b(362);return n.expression=e,n.thisArg=t,n.transformFlags|=QA(n.expression)|QA(n.thisArg),n}function _o(e){if(void 0===e)return e;if(rM(e))return ao(e);if(ud(e))return function(e){const t=D(e.escapedText);return t.flags|=-17&e.flags,t.transformFlags=e.transformFlags,n(t,e),KI(t,{...e.emitNode.autoGenerate}),t}(e);if(nC(e))return function(e){const t=D(e.escapedText);t.flags|=-17&e.flags,t.jsDoc=e.jsDoc,t.flowNode=e.flowNode,t.symbol=e.symbol,t.transformFlags=e.transformFlags,n(t,e);const r=HI(e);return r&&UI(t,r),t}(e);if(pd(e))return function(e){const t=w(e.escapedText);return t.flags|=-17&e.flags,t.transformFlags=e.transformFlags,n(t,e),KI(t,{...e.emitNode.autoGenerate}),t}(e);if(rC(e))return function(e){const t=w(e.escapedText);return t.flags|=-17&e.flags,t.transformFlags=e.transformFlags,n(t,e),t}(e);const r=Xc(e.kind)?t.createBaseNode(e.kind):t.createBaseTokenNode(e.kind);r.flags|=-17&e.flags,r.transformFlags=e.transformFlags,n(r,e);for(const t in e)!He(r,t)&&He(e,t)&&(r[t]=e[t]);return r}function ho(){return Nt(T("0"))}function go(e,t,n){return Pc(e)?dt(nt(e,void 0,t),void 0,void 0,n):ct(tt(e,t),void 0,n)}function yo(e,t,n){return go(L(e),t,n)}function vo(e,t,n){return!!n&&(e.push(eo(t,n)),!0)}function bo(e,t){const n=Ty(e);switch(n.kind){case 80:return t;case 110:case 9:case 10:case 11:return!1;case 209:return 0!==n.elements.length;case 210:return n.properties.length>0;default:return!0}}function Eo(e,t,n,r=0,o){const i=o?e&&Gl(e):jl(e);if(i&&nC(i)&&!ud(i)){const e=Vx(yk(_o(i),i),i.parent);return r|=Rm(i),n||(r|=96),t||(r|=3072),r&&fI(e,r),e}return P(e)}function So(e,t,n){return Eo(e,t,n,16384)}function To(e,t,n,r){const o=tt(e,Sv(t)?t:_o(t));yk(o,t);let i=0;return r||(i|=96),n||(i|=3072),i&&fI(o,i),o}function xo(){return xL(ln(R("use strict")))}function Ao(e,t,n=0,r){In.assert(0===t.length,"Prologue directives should be at the first statement in the target statements array");let o=!1;const i=e.length;for(;n<i;){const r=e[n];if(!w_(r))break;zR((a=r).expression)&&"use strict"===a.expression.text&&(o=!0),t.push(r),n++}var a;return r&&!o&&t.push(xo()),n}function Io(e,t,n,r,o=St){const i=e.length;for(;void 0!==n&&n<i;){const i=e[n];if(!(2097152&Rm(i)&&o(i)))break;Ee(t,r?rB(i,r,wu):i),n++}return n}function Ro(e,t,n){let r=n;for(;r<e.length&&t(e[r]);)r++;return r}function Co(e){return e?v(e):void 0}function Do(e){return"string"===typeof e?L(e):e}function No(e){return"string"===typeof e?R(e):"number"===typeof e?T(e):"boolean"===typeof e?e?G():j():e}function Mo(e){return e&&r().parenthesizeExpressionForDisallowedComma(e)}function Lo(e){return e&&kN(e)?yk(n(sn(),e),e):e}function ko(e,t){return e!==t&&(n(e,t),yk(e,t)),e}}function XA(e){switch(e){case 351:return"type";case 349:return"returns";case 350:return"this";case 347:return"enum";case 337:return"author";case 339:return"class";case 340:return"public";case 341:return"private";case 342:return"protected";case 343:return"readonly";case 344:return"override";case 352:return"template";case 353:return"typedef";case 348:return"param";case 355:return"prop";case 345:return"callback";case 346:return"overload";case 335:return"augments";case 336:return"implements";default:return In.fail(`Unsupported kind: ${In.formatSyntaxKind(e)}`)}}function $A(e){return e&&nC(e)?YA(e):QA(e)}function YA(e){return-67108865&QA(e)}function QA(e){if(!e)return 0;const t=e.transformFlags&~tI(e.kind);return Bl(e)&&Ed(e.name)?(n=e.name,t|134234112&n.transformFlags):t;var n}function ZA(e){return e?e.transformFlags:0}function eI(e){let t=0;for(const n of e)t|=QA(n);e.transformFlags=t}function tI(e){if(e>=182&&e<=205)return-2;switch(e){case 213:case 214:case 209:case 206:case 207:return-2147450880;case 267:return-1941676032;case 169:case 216:case 238:case 234:case 360:case 217:case 108:case 211:case 212:default:return-2147483648;case 219:return-2072174592;case 218:case 262:return-1937940480;case 261:return-2146893824;case 263:case 231:return-2147344384;case 176:return-1937948672;case 172:return-2013249536;case 174:case 177:case 178:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 168:case 171:case 173:case 179:case 180:case 181:case 264:case 265:return-2;case 210:return-2147278848;case 299:return-2147418112}}function nI(e){return e.flags|=16,e}function rI(e,t,n){let r,i,a,s,l,c,d,u,p,f;ht(e)?(a="",s=e,l=e.length,c=t,d=n):(In.assert("js"===t||"dts"===t),a=("js"===t?e.javascriptPath:e.declarationPath)||"",c="js"===t?e.javascriptMapPath:e.declarationMapPath,u=()=>"js"===t?e.javascriptText:e.declarationText,p=()=>"js"===t?e.javascriptMapText:e.declarationMapText,l=()=>u().length,e.buildInfo&&e.buildInfo.bundle&&(In.assert(void 0===n||"boolean"===typeof n),r=n,i="js"===t?e.buildInfo.bundle.js:e.buildInfo.bundle.dts,f=e.oldFileOfCurrentEmit));const m=f?function(e){let t,n;for(const o of e.sections)switch(o.kind){case"internal":case"text":t=Ee(t,yk(UA.createUnparsedTextLike(o.data,"internal"===o.kind),o));break;case"no-default-lib":case"reference":case"type":case"type-import":case"type-require":case"lib":n=Ee(n,yk(UA.createUnparsedSyntheticReference(o),o));break;case"prologue":case"emitHelpers":case"prepend":break;default:In.assertNever(o)}const r=UA.createUnparsedSource(o,n,t??o);return Ux(n,r),Ux(t,r),r.helpers=U(e.sources&&e.sources.helpers,(e=>PR().get(e))),r}(In.checkDefined(i)):function(e,t,n){let r,i,a,s,l,c,d,u;for(const f of e?e.sections:o)switch(f.kind){case"prologue":r=Ee(r,yk(UA.createUnparsedPrologue(f.data),f));break;case"emitHelpers":i=Ee(i,PR().get(f.data));break;case"no-default-lib":u=!0;break;case"reference":a=Ee(a,{pos:-1,end:-1,fileName:f.data});break;case"type":s=Ee(s,{pos:-1,end:-1,fileName:f.data});break;case"type-import":s=Ee(s,{pos:-1,end:-1,fileName:f.data,resolutionMode:99});break;case"type-require":s=Ee(s,{pos:-1,end:-1,fileName:f.data,resolutionMode:1});break;case"lib":l=Ee(l,{pos:-1,end:-1,fileName:f.data});break;case"prepend":let e;for(const n of f.texts)t&&"internal"===n.kind||(e=Ee(e,yk(UA.createUnparsedTextLike(n.data,"internal"===n.kind),n)));c=xe(c,e),d=Ee(d,UA.createUnparsedPrepend(f.data,e??o));break;case"internal":if(t){d||(d=[]);break}case"text":d=Ee(d,yk(UA.createUnparsedTextLike(f.data,"internal"===f.kind),f));break;default:In.assertNever(f)}if(!d){const e=UA.createUnparsedTextLike(void 0,!1);Gx(e,0,"function"===typeof n?n():n),d=[e]}const p=Rk.createUnparsedSource(r??o,void 0,d);return Ux(r,p),Ux(d,p),Ux(c,p),p.hasNoDefaultLib=u,p.helpers=i,p.referencedFiles=a||o,p.typeReferenceDirectives=s,p.libReferenceDirectives=l||o,p}(i,r,l);return m.fileName=a,m.sourceMapPath=c,m.oldFileOfCurrentEmit=f,u&&p?(Object.defineProperty(m,"text",{get:u}),Object.defineProperty(m,"sourceMapText",{get:p})):(In.assert(!f),m.text=s??"",m.sourceMapText=d),m}function oI(e,t,n,r,o,i){return ht(e)?aI(void 0,e,n,r,void 0,t,o,i):iI(e,t,n,r,o,i)}function iI(e,t,n,r,o,i,a,s){const l=Rk.createInputFiles();l.javascriptPath=t,l.javascriptMapPath=n,l.declarationPath=r,l.declarationMapPath=o,l.buildInfoPath=i;const c=new Map,d=t=>{if(void 0===t)return;let n=c.get(t);return void 0===n&&(n=e(t),c.set(t,void 0!==n&&n)),!1!==n?n:void 0},u=e=>{const t=d(e);return void 0!==t?t:`/* Input file ${e} was missing */\r\n`};let p;return Object.defineProperties(l,{javascriptText:{get:()=>u(t)},javascriptMapText:{get:()=>d(n)},declarationText:{get:()=>u(In.checkDefined(r))},declarationMapText:{get:()=>d(o)},buildInfo:{get:()=>{if(void 0===p&&i)if(null==a?void 0:a.getBuildInfo)p=a.getBuildInfo(i,s.configFilePath)??!1;else{const e=d(i);p=void 0!==e&&(VV(i,e)??!1)}return p||void 0}}}),l}function aI(e,t,n,r,o,i,a,s,l,c,d){const u=Rk.createInputFiles();return u.javascriptPath=e,u.javascriptText=t,u.javascriptMapPath=n,u.javascriptMapText=r,u.declarationPath=o,u.declarationText=i,u.declarationMapPath=a,u.declarationMapText=s,u.buildInfoPath=l,u.buildInfo=c,u.oldFileOfCurrentEmit=d,u}function sI(e,t,n){return new(HA||(HA=Wp.getSourceMapSourceConstructor()))(e,t,n)}function lI(e,t){if(e.original!==t&&(e.original=t,t)){const n=t.emitNode;n&&(e.emitNode=function(e,t){const{flags:n,internalFlags:r,leadingComments:o,trailingComments:i,commentRange:a,sourceMapRange:s,tokenSourceMapRanges:l,constantValue:c,helpers:d,startsOnNewLine:u,snippetElement:p,classThis:f,assignedName:m}=e;t||(t={});n&&(t.flags=n);r&&(t.internalFlags=-9&r);o&&(t.leadingComments=xe(o.slice(),t.leadingComments));i&&(t.trailingComments=xe(i.slice(),t.trailingComments));a&&(t.commentRange=a);s&&(t.sourceMapRange=s);l&&(t.tokenSourceMapRanges=function(e,t){t||(t=[]);for(const n in e)t[n]=e[n];return t}(l,t.tokenSourceMapRanges));void 0!==c&&(t.constantValue=c);if(d)for(const _ of d)t.helpers=Ie(t.helpers,_);void 0!==u&&(t.startsOnNewLine=u);void 0!==p&&(t.snippetElement=p);f&&(t.classThis=f);m&&(t.assignedName=m);return t}(n,e.emitNode))}return e}var cI=b({"src/compiler/factory/nodeFactory.ts"(){JJ(),WA=0,zA=(e=>(e[e.None=0]="None",e[e.NoParenthesizerRules=1]="NoParenthesizerRules",e[e.NoNodeConverters=2]="NoNodeConverters",e[e.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",e[e.NoOriginalNode=8]="NoOriginalNode",e))(zA||{}),BA=[],jA={},VA=MA(),UA=JA(4,{createBaseSourceFileNode:e=>nI(VA.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>nI(VA.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>nI(VA.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>nI(VA.createBaseTokenNode(e)),createBaseNode:e=>nI(VA.createBaseNode(e))})}});function dI(e){if(e.emitNode)In.assert(!(8&e.emitNode.internalFlags),"Invalid attempt to mutate an immutable node.");else{if(Dl(e)){if(312===e.kind)return e.emitNode={annotatedNodes:[e]};dI(Yf(Nl(Yf(e)))??In.fail("Could not determine parsed source file.")).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function uI(e){var t,n;const r=null==(n=null==(t=Yf(Nl(e)))?void 0:t.emitNode)?void 0:n.annotatedNodes;if(r)for(const o of r)o.emitNode=void 0}function pI(e){const t=dI(e);return t.flags|=3072,t.leadingComments=void 0,t.trailingComments=void 0,e}function fI(e,t){return dI(e).flags=t,e}function mI(e,t){const n=dI(e);return n.flags=n.flags|t,e}function _I(e,t){return dI(e).internalFlags=t,e}function hI(e,t){const n=dI(e);return n.internalFlags=n.internalFlags|t,e}function gI(e){var t;return(null==(t=e.emitNode)?void 0:t.sourceMapRange)??e}function yI(e,t){return dI(e).sourceMapRange=t,e}function vI(e,t){var n,r;return null==(r=null==(n=e.emitNode)?void 0:n.tokenSourceMapRanges)?void 0:r[t]}function bI(e,t,n){const r=dI(e);return(r.tokenSourceMapRanges??(r.tokenSourceMapRanges=[]))[t]=n,e}function EI(e){var t;return null==(t=e.emitNode)?void 0:t.startsOnNewLine}function SI(e,t){return dI(e).startsOnNewLine=t,e}function TI(e){var t;return(null==(t=e.emitNode)?void 0:t.commentRange)??e}function xI(e,t){return dI(e).commentRange=t,e}function AI(e){var t;return null==(t=e.emitNode)?void 0:t.leadingComments}function II(e,t){return dI(e).leadingComments=t,e}function RI(e,t,n,r){return II(e,Ee(AI(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:r,text:n}))}function CI(e){var t;return null==(t=e.emitNode)?void 0:t.trailingComments}function DI(e,t){return dI(e).trailingComments=t,e}function NI(e,t,n,r){return DI(e,Ee(CI(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:r,text:n}))}function MI(e,t){II(e,AI(t)),DI(e,CI(t));const n=dI(t);return n.leadingComments=void 0,n.trailingComments=void 0,e}function LI(e){var t;return null==(t=e.emitNode)?void 0:t.constantValue}function kI(e,t){return dI(e).constantValue=t,e}function PI(e,t){const n=dI(e);return n.helpers=Ee(n.helpers,t),e}function wI(e,t){if(se(t)){const n=dI(e);for(const e of t)n.helpers=Ie(n.helpers,e)}return e}function OI(e,t){var n;const r=null==(n=e.emitNode)?void 0:n.helpers;return!!r&&tn(r,t)}function FI(e){var t;return null==(t=e.emitNode)?void 0:t.helpers}function WI(e,t,n){const r=e.emitNode,o=r&&r.helpers;if(!se(o))return;const i=dI(t);let a=0;for(let s=0;s<o.length;s++){const e=o[s];n(e)?(a++,i.helpers=Ie(i.helpers,e)):a>0&&(o[s-a]=e)}a>0&&(o.length-=a)}function zI(e){var t;return null==(t=e.emitNode)?void 0:t.snippetElement}function BI(e,t){return dI(e).snippetElement=t,e}function GI(e){return dI(e).internalFlags|=4,e}function jI(e,t){return dI(e).typeNode=t,e}function VI(e){var t;return null==(t=e.emitNode)?void 0:t.typeNode}function UI(e,t){return dI(e).identifierTypeArguments=t,e}function HI(e){var t;return null==(t=e.emitNode)?void 0:t.identifierTypeArguments}function KI(e,t){return dI(e).autoGenerate=t,e}function qI(e){var t;return null==(t=e.emitNode)?void 0:t.autoGenerate}function JI(e,t){return dI(e).generatedImportReference=t,e}function XI(e){var t;return null==(t=e.emitNode)?void 0:t.generatedImportReference}var $I,YI,QI,ZI,eR,tR,nR,rR,oR,iR,aR,sR,lR,cR,dR,uR,pR,fR,mR,_R,hR,gR,yR,vR,bR,ER,SR,TR,xR,AR,IR,RR,CR,DR,NR=b({"src/compiler/factory/emitNode.ts"(){JJ()}});function MR(e){const t=e.factory,n=Ct((()=>_I(t.createTrue(),8))),r=Ct((()=>_I(t.createFalse(),8)));return{getUnscopedHelperName:o,createDecorateHelper:function(n,r,i,a){e.requestEmitHelper(YI);const s=[];s.push(t.createArrayLiteralExpression(n,!0)),s.push(r),i&&(s.push(i),a&&s.push(a));return t.createCallExpression(o("__decorate"),void 0,s)},createMetadataHelper:function(n,r){return e.requestEmitHelper(QI),t.createCallExpression(o("__metadata"),void 0,[t.createStringLiteral(n),r])},createParamHelper:function(n,r,i){return e.requestEmitHelper(ZI),yk(t.createCallExpression(o("__param"),void 0,[t.createNumericLiteral(r+""),n]),i)},createESDecorateHelper:function(n,r,i,s,l,c){return e.requestEmitHelper(eR),t.createCallExpression(o("__esDecorate"),void 0,[n??t.createNull(),r??t.createNull(),i,a(s),l,c])},createRunInitializersHelper:function(n,r,i){return e.requestEmitHelper(tR),t.createCallExpression(o("__runInitializers"),void 0,i?[n,r,i]:[n,r])},createAssignHelper:function(n){if(jp(e.getCompilerOptions())>=2)return t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"assign"),void 0,n);return e.requestEmitHelper(nR),t.createCallExpression(o("__assign"),void 0,n)},createAwaitHelper:function(n){return e.requestEmitHelper(rR),t.createCallExpression(o("__await"),void 0,[n])},createAsyncGeneratorHelper:function(n,r){return e.requestEmitHelper(rR),e.requestEmitHelper(oR),(n.emitNode||(n.emitNode={})).flags|=1572864,t.createCallExpression(o("__asyncGenerator"),void 0,[r?t.createThis():t.createVoidZero(),t.createIdentifier("arguments"),n])},createAsyncDelegatorHelper:function(n){return e.requestEmitHelper(rR),e.requestEmitHelper(iR),t.createCallExpression(o("__asyncDelegator"),void 0,[n])},createAsyncValuesHelper:function(n){return e.requestEmitHelper(aR),t.createCallExpression(o("__asyncValues"),void 0,[n])},createRestHelper:function(n,r,i,a){e.requestEmitHelper(sR);const s=[];let l=0;for(let e=0;e<r.length-1;e++){const n=wL(r[e]);if(n)if(yC(n)){In.assertIsDefined(i,"Encountered computed property name but 'computedTempVariables' argument was not provided.");const e=i[l];l++,s.push(t.createConditionalExpression(t.createTypeCheck(e,"symbol"),void 0,e,void 0,t.createAdd(e,t.createStringLiteral(""))))}else s.push(t.createStringLiteralFromNode(n))}return t.createCallExpression(o("__rest"),void 0,[n,yk(t.createArrayLiteralExpression(s),a)])},createAwaiterHelper:function(n,r,i,a,s){e.requestEmitHelper(lR);const l=t.createFunctionExpression(void 0,t.createToken(42),void 0,void 0,a??[],void 0,s);return(l.emitNode||(l.emitNode={})).flags|=1572864,t.createCallExpression(o("__awaiter"),void 0,[n?t.createThis():t.createVoidZero(),r??t.createVoidZero(),i?aL(t,i):t.createVoidZero(),l])},createExtendsHelper:function(n){return e.requestEmitHelper(cR),t.createCallExpression(o("__extends"),void 0,[n,t.createUniqueName("_super",48)])},createTemplateObjectHelper:function(n,r){return e.requestEmitHelper(dR),t.createCallExpression(o("__makeTemplateObject"),void 0,[n,r])},createSpreadArrayHelper:function(i,a,s){return e.requestEmitHelper(pR),t.createCallExpression(o("__spreadArray"),void 0,[i,a,s?n():r()])},createPropKeyHelper:function(n){return e.requestEmitHelper(fR),t.createCallExpression(o("__propKey"),void 0,[n])},createSetFunctionNameHelper:function(t,n,r){return e.requestEmitHelper(mR),e.factory.createCallExpression(o("__setFunctionName"),void 0,r?[t,n,e.factory.createStringLiteral(r)]:[t,n])},createValuesHelper:function(n){return e.requestEmitHelper(_R),t.createCallExpression(o("__values"),void 0,[n])},createReadHelper:function(n,r){return e.requestEmitHelper(uR),t.createCallExpression(o("__read"),void 0,void 0!==r?[n,t.createNumericLiteral(r+"")]:[n])},createGeneratorHelper:function(n){return e.requestEmitHelper(hR),t.createCallExpression(o("__generator"),void 0,[t.createThis(),n])},createCreateBindingHelper:function(n,r,i){return e.requestEmitHelper(gR),t.createCallExpression(o("__createBinding"),void 0,[t.createIdentifier("exports"),n,r,...i?[i]:[]])},createImportStarHelper:function(n){return e.requestEmitHelper(vR),t.createCallExpression(o("__importStar"),void 0,[n])},createImportStarCallbackHelper:function(){return e.requestEmitHelper(vR),o("__importStar")},createImportDefaultHelper:function(n){return e.requestEmitHelper(bR),t.createCallExpression(o("__importDefault"),void 0,[n])},createExportStarHelper:function(n,r=t.createIdentifier("exports")){return e.requestEmitHelper(ER),e.requestEmitHelper(gR),t.createCallExpression(o("__exportStar"),void 0,[n,r])},createClassPrivateFieldGetHelper:function(n,r,i,a){let s;e.requestEmitHelper(SR),s=a?[n,r,t.createStringLiteral(i),a]:[n,r,t.createStringLiteral(i)];return t.createCallExpression(o("__classPrivateFieldGet"),void 0,s)},createClassPrivateFieldSetHelper:function(n,r,i,a,s){let l;e.requestEmitHelper(TR),l=s?[n,r,i,t.createStringLiteral(a),s]:[n,r,i,t.createStringLiteral(a)];return t.createCallExpression(o("__classPrivateFieldSet"),void 0,l)},createClassPrivateFieldInHelper:function(n,r){return e.requestEmitHelper(xR),t.createCallExpression(o("__classPrivateFieldIn"),void 0,[n,r])},createAddDisposableResourceHelper:function(n,r,i){return e.requestEmitHelper(AR),t.createCallExpression(o("__addDisposableResource"),void 0,[n,r,i?t.createTrue():t.createFalse()])},createDisposeResourcesHelper:function(n){return e.requestEmitHelper(IR),t.createCallExpression(o("__disposeResources"),void 0,[n])}};function o(e){return fI(t.createIdentifier(e),8196)}function i(e,n){const r=[];return r.push(function(e){const n=e.computed?e.name:nC(e.name)?t.createStringLiteralFromNode(e.name):e.name;return t.createPropertyAssignment("has",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,t.createBinaryExpression(n,103,t.createIdentifier("obj"))))}(e)),n.get&&r.push(function(e){const n=e.computed?t.createElementAccessExpression(t.createIdentifier("obj"),e.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),e.name);return t.createPropertyAssignment("get",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,n))}(e)),n.set&&r.push(function(e){const n=e.computed?t.createElementAccessExpression(t.createIdentifier("obj"),e.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),e.name);return t.createPropertyAssignment("set",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj")),t.createParameterDeclaration(void 0,void 0,t.createIdentifier("value"))],void 0,void 0,t.createBlock([t.createExpressionStatement(t.createAssignment(n,t.createIdentifier("value")))])))}(e)),t.createObjectLiteralExpression(r)}function a(e){return"class"===e.kind?function(e){const n=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral("class")),t.createPropertyAssignment(t.createIdentifier("name"),e.name),t.createPropertyAssignment(t.createIdentifier("metadata"),e.metadata)];return t.createObjectLiteralExpression(n)}(e):function(e){const n=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral(e.kind)),t.createPropertyAssignment(t.createIdentifier("name"),e.name.computed?e.name.name:t.createStringLiteralFromNode(e.name.name)),t.createPropertyAssignment(t.createIdentifier("static"),e.static?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("private"),e.private?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("access"),i(e.name,e.access)),t.createPropertyAssignment(t.createIdentifier("metadata"),e.metadata)];return t.createObjectLiteralExpression(n)}(e)}}function LR(e,t){return e===t||e.priority===t.priority?0:void 0===e.priority?1:void 0===t.priority?-1:Ft(e.priority,t.priority)}function kR(e,...t){return n=>{let r="";for(let o=0;o<t.length;o++)r+=e[o],r+=n(t[o]);return r+=e[e.length-1],r}}function PR(){return RR||(RR=et([YI,QI,ZI,eR,tR,nR,rR,oR,iR,aR,sR,lR,cR,dR,pR,_R,uR,fR,mR,hR,vR,bR,ER,SR,TR,xR,gR,yR,AR,IR],(e=>e.name)))}function wR(e,t){return dD(e)&&nC(e.expression)&&0!==(8192&Rm(e.expression))&&e.expression.escapedText===t}var OR=b({"src/compiler/factory/emitHelpers.ts"(){JJ(),$I=(e=>(e.Field="f",e.Method="m",e.Accessor="a",e))($I||{}),YI={name:"typescript:decorate",importName:"__decorate",scoped:!1,priority:2,text:'\n var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n };'},QI={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:'\n var __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);\n };'},ZI={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:"\n var __param = (this && this.__param) || function (paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n };"},eR={name:"typescript:esDecorate",importName:"__esDecorate",scoped:!1,priority:2,text:'\n var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }\n var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";\n var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for (var i = decorators.length - 1; i >= 0; i--) {\n var context = {};\n for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\n context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };\n var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\n if (kind === "accessor") {\n if (result === void 0) continue;\n if (result === null || typeof result !== "object") throw new TypeError("Object expected");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n }\n else if (_ = accept(result)) {\n if (kind === "field") initializers.unshift(_);\n else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n };'},tR={name:"typescript:runInitializers",importName:"__runInitializers",scoped:!1,priority:2,text:"\n var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for (var i = 0; i < initializers.length; i++) {\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n }\n return useValue ? value : void 0;\n };"},nR={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:"\n var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n };"},oR={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[rR={name:"typescript:await",importName:"__await",scoped:!1,text:"\n var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }"}],text:'\n var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume("next", value); }\n function reject(value) { resume("throw", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n };'},iR={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[rR],text:'\n var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {\n var i, p;\n return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\n };'},aR={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:'\n var __asyncValues = (this && this.__asyncValues) || function (o) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n };'},sR={name:"typescript:rest",importName:"__rest",scoped:!1,text:'\n var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === "function")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n };'},lR={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:'\n var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n };'},cR={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:'\n var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n\n return function (d, b) {\n if (typeof b !== "function" && b !== null)\n throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n })();'},dR={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:'\n var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n };'},uR={name:"typescript:read",importName:"__read",scoped:!1,text:'\n var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === "function" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i["return"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n };'},pR={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:"\n var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n };"},fR={name:"typescript:propKey",importName:"__propKey",scoped:!1,text:'\n var __propKey = (this && this.__propKey) || function (x) {\n return typeof x === "symbol" ? x : "".concat(x);\n };'},mR={name:"typescript:setFunctionName",importName:"__setFunctionName",scoped:!1,text:'\n var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) {\n if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";\n return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });\n };'},_R={name:"typescript:values",importName:"__values",scoped:!1,text:'\n var __values = (this && this.__values) || function(o) {\n var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === "number") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");\n };'},hR={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:'\n var __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError("Generator is already executing.");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n };'},vR={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[gR={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:'\n var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n }) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n }));'},yR={name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:'\n var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, "default", { enumerable: true, value: v });\n }) : function(o, v) {\n o["default"] = v;\n });'}],priority:2,text:'\n var __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n };'},bR={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:'\n var __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { "default": mod };\n };'},ER={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[gR],priority:2,text:'\n var __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n };'},SR={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:'\n var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");\n return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);\n };'},TR={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:'\n var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {\n if (kind === "m") throw new TypeError("Private method is not writable");\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");\n return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n };'},xR={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:'\n var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) {\n if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use \'in\' operator on non-object");\n return typeof state === "function" ? receiver === state : state.has(receiver);\n };'},AR={name:"typescript:addDisposableResource",importName:"__addDisposableResource",scoped:!1,text:'\n var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) {\n if (value !== null && value !== void 0) {\n if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");\n var dispose;\n if (async) {\n if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");\n dispose = value[Symbol.asyncDispose];\n }\n if (dispose === void 0) {\n if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");\n dispose = value[Symbol.dispose];\n }\n if (typeof dispose !== "function") throw new TypeError("Object not disposable.");\n env.stack.push({ value: value, dispose: dispose, async: async });\n }\n else if (async) {\n env.stack.push({ async: true });\n }\n return value;\n };'},IR={name:"typescript:disposeResources",importName:"__disposeResources",scoped:!1,text:'\n var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) {\n return function (env) {\n function fail(e) {\n env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;\n env.hasError = true;\n }\n function next() {\n while (env.stack.length) {\n var rec = env.stack.pop();\n try {\n var result = rec.dispose && rec.dispose.call(rec.value);\n if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\n }\n catch (e) {\n fail(e);\n }\n }\n if (env.hasError) throw env.error;\n }\n return next();\n };\n })(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {\n var e = new Error(message);\n return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;\n });'},CR={name:"typescript:async-super",scoped:!0,text:kR` +(()=>{var e={146:(e,t,n)=>{"use strict";n.d(t,{V0:()=>o,aI:()=>r,kT:()=>i});Object.prototype.hasOwnProperty;function r(e,t){if(e===t)return!0;if(null===e||void 0===e||null===t||void 0===t)return!1;if(typeof e!==typeof t)return!1;if("object"!==typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;let n,o;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else{const i=[];for(o in e)i.push(o);i.sort();const a=[];for(o in t)a.push(o);if(a.sort(),!r(i,a))return!1;for(n=0;n<i.length;n++)if(!r(e[i[n]],t[i[n]]))return!1}return!0}function o(e){const t=[];for(const n of function(e){let t=[];for(;Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}(e))"function"===typeof e[n]&&t.push(n);return t}function i(e,t){const n=e=>function(){const n=Array.prototype.slice.call(arguments,0);return t(e,n)},r={};for(const o of e)r[o]=n(o);return r}},154:(e,t,n)=>{"use strict";n.d(t,{L:()=>r});const r=(0,n(3591).u1)("languageService")},360:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITextResourceConfigurationService:()=>o,ITextResourcePropertiesService:()=>i});var r=n(3591);const o=(0,r.u1)("textResourceConfigurationService"),i=(0,r.u1)("textResourcePropertiesService")},448:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MarkerDecorationsService:()=>T});var r,o=n(1508);!function(e){e[e.Ignore=0]="Ignore",e[e.Info=1]="Info",e[e.Warning=2]="Warning",e[e.Error=3]="Error"}(r||(r={})),function(e){const t="error",n="warning",r="info";e.fromValue=function(i){return i?o.Q_(t,i)?e.Error:o.Q_(n,i)||o.Q_("warn",i)?e.Warning:o.Q_(r,i)?e.Info:e.Ignore:e.Ignore},e.toString=function(o){switch(o){case e.Error:return t;case e.Warning:return n;case e.Info:return r;default:return"ignore"}}}(r||(r={}));const i=r;var a,s,l=n(8209),c=n(3591);!function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(a||(a={})),function(e){e.compare=function(e,t){return t-e};const t=Object.create(null);t[e.Error]=(0,l.kg)("sev.error","Error"),t[e.Warning]=(0,l.kg)("sev.warning","Warning"),t[e.Info]=(0,l.kg)("sev.info","Info"),e.toString=function(e){return t[e]||""},e.fromSeverity=function(t){switch(t){case i.Error:return e.Error;case i.Warning:return e.Warning;case i.Info:return e.Info;case i.Ignore:return e.Hint}},e.toSeverity=function(t){switch(t){case e.Error:return i.Error;case e.Warning:return i.Warning;case e.Info:return i.Info;case e.Hint:return i.Ignore}}}(a||(a={})),function(e){const t="";function n(e,n){const r=[t];return e.source?r.push(e.source.replace("\xa6","\\\xa6")):r.push(t),e.code?"string"===typeof e.code?r.push(e.code.replace("\xa6","\\\xa6")):r.push(e.code.value.replace("\xa6","\\\xa6")):r.push(t),void 0!==e.severity&&null!==e.severity?r.push(a.toString(e.severity)):r.push(t),e.message&&n?r.push(e.message.replace("\xa6","\\\xa6")):r.push(t),void 0!==e.startLineNumber&&null!==e.startLineNumber?r.push(e.startLineNumber.toString()):r.push(t),void 0!==e.startColumn&&null!==e.startColumn?r.push(e.startColumn.toString()):r.push(t),void 0!==e.endLineNumber&&null!==e.endLineNumber?r.push(e.endLineNumber.toString()):r.push(t),void 0!==e.endColumn&&null!==e.endColumn?r.push(e.endColumn.toString()):r.push(t),r.push(t),r.join("\xa6")}e.makeKey=function(e){return n(e,!0)},e.makeKeyOptionalMessage=n}(s||(s={}));const d=(0,c.u1)("markerService");var u=n(1484),p=n(6223),f=n(5724),m=n(7119),_=n(3750),h=n(6677),g=n(6456),y=n(1234),v=n(5845),b=n(4320);var E=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},S=function(e,t){return function(n,r){t(n,r,e)}};let T=class extends u.jG{constructor(e,t){super(),this._markerService=t,this._onDidChangeMarker=this._register(new y.vl),this._markerDecorations=new b.fT,e.getModels().forEach((e=>this._onModelAdded(e))),this._register(e.onModelAdded(this._onModelAdded,this)),this._register(e.onModelRemoved(this._onModelRemoved,this)),this._register(this._markerService.onMarkerChanged(this._handleMarkerChange,this))}dispose(){super.dispose(),this._markerDecorations.forEach((e=>e.dispose())),this._markerDecorations.clear()}getMarker(e,t){const n=this._markerDecorations.get(e);return n&&n.getMarker(t)||null}_handleMarkerChange(e){e.forEach((e=>{const t=this._markerDecorations.get(e);t&&this._updateDecorations(t)}))}_onModelAdded(e){const t=new x(e);this._markerDecorations.set(e.uri,t),this._updateDecorations(t)}_onModelRemoved(e){const t=this._markerDecorations.get(e.uri);t&&(t.dispose(),this._markerDecorations.delete(e.uri)),e.uri.scheme!==g.ny.inMemory&&e.uri.scheme!==g.ny.internal&&e.uri.scheme!==g.ny.vscode||this._markerService?.read({resource:e.uri}).map((e=>e.owner)).forEach((t=>this._markerService.remove(t,[e.uri])))}_updateDecorations(e){const t=this._markerService.read({resource:e.model.uri,take:500});e.update(t)&&this._onDidChangeMarker.fire(e.model)}};T=E([S(0,_.IModelService),S(1,d)],T);class x extends u.jG{constructor(e){super(),this.model=e,this._map=new b.cO,this._register((0,u.s)((()=>{this.model.deltaDecorations([...this._map.values()],[]),this._map.clear()})))}update(e){const{added:t,removed:n}=function(e,t){const n=[],r=[];for(const o of e)t.has(o)||n.push(o);for(const o of t)e.has(o)||r.push(o);return{removed:n,added:r}}(new Set(this._map.keys()),new Set(e));if(0===t.length&&0===n.length)return!1;const r=n.map((e=>this._map.get(e))),o=t.map((e=>({range:this._createDecorationRange(this.model,e),options:this._createDecorationOption(e)}))),i=this.model.deltaDecorations(r,o);for(const a of n)this._map.delete(a);for(let a=0;a<i.length;a++)this._map.set(t[a],i[a]);return!0}getMarker(e){return this._map.getKey(e.id)}_createDecorationRange(e,t){let n=h.Q.lift(t);if(t.severity!==a.Hint||this._hasMarkerTag(t,1)||this._hasMarkerTag(t,2)||(n=n.setEndPosition(n.startLineNumber,n.startColumn+2)),n=e.validateRange(n),n.isEmpty()){const t=e.getLineLastNonWhitespaceColumn(n.startLineNumber)||e.getLineMaxColumn(n.startLineNumber);if(1===t||n.endColumn>=t)return n;const r=e.getWordAtPosition(n.getStartPosition());r&&(n=new h.Q(n.startLineNumber,r.startColumn,n.endLineNumber,r.endColumn))}else if(t.endColumn===Number.MAX_VALUE&&1===t.startColumn&&n.startLineNumber===n.endLineNumber){const r=e.getLineFirstNonWhitespaceColumn(t.startLineNumber);r<n.endColumn&&(n=new h.Q(n.startLineNumber,r,n.endLineNumber,n.endColumn),t.startColumn=r)}return n}_createDecorationOption(e){let t,n,r,o,i;switch(e.severity){case a.Hint:t=this._hasMarkerTag(e,2)?void 0:this._hasMarkerTag(e,1)?"squiggly-unnecessary":"squiggly-hint",r=0;break;case a.Info:t="squiggly-info",n=(0,f.Yf)(m.AQ),r=10,i={color:(0,f.Yf)(v.KoI),position:1};break;case a.Warning:t="squiggly-warning",n=(0,f.Yf)(m.aZ),r=20,i={color:(0,f.Yf)(v.uMG),position:1};break;case a.Error:default:t="squiggly-error",n=(0,f.Yf)(m.yI),r=30,i={color:(0,f.Yf)(v.yLC),position:1}}return e.tags&&(-1!==e.tags.indexOf(1)&&(o="squiggly-inline-unnecessary"),-1!==e.tags.indexOf(2)&&(o="squiggly-inline-deprecated")),{description:"marker-decoration",stickiness:1,className:t,showIfCollapsed:!0,overviewRuler:{color:n,position:p.A5.Right},minimap:i,zIndex:r,inlineClassName:o}}_hasMarkerTag(e,t){return!!e.tags&&e.tags.indexOf(t)>=0}}},534:(e,t,n)=>{"use strict";n.d(t,{V:()=>o});var r=n(5152);class o{constructor(e){const t=(0,r.W)(e);this._defaultValue=t,this._asciiMap=o._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){const t=new Uint8Array(256);return t.fill(e),t}set(e,t){const n=(0,r.W)(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()}}},631:(e,t,n)=>{"use strict";function r(e){return"string"===typeof e}function o(e){return"object"===typeof e&&null!==e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function i(e){return"undefined"===typeof e}function a(e){return i(e)||null===e}n.d(t,{Gv:()=>o,Kg:()=>r,b0:()=>i,z:()=>a})},718:(e,t,n)=>{"use strict";n.r(t),n.d(t,{EditorWorkerHost:()=>r});class r{static{this.CHANNEL_NAME="editorWorkerHost"}static getChannel(e){return e.getChannel(r.CHANNEL_NAME)}static setChannel(e,t){e.setChannel(r.CHANNEL_NAME,t)}}},796:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MirrorModel:()=>g,STOP_SYNC_MODEL_DELTA_TIME_MS:()=>m,WorkerTextModelSyncClient:()=>_,WorkerTextModelSyncServer:()=>h});var r=n(1940),o=n(1484),i=n(9400),a=n(3069),s=n(6677),l=n(6486),c=n(1508),d=(n(9861),n(5152));class u{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=(0,d.j)(e);const n=this.values,r=this.prefixSum,o=t.length;return 0!==o&&(this.values=new Uint32Array(n.length+o),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+o),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=(0,d.j)(e),t=(0,d.j)(t),this.values[e]!==t&&(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,t){e=(0,d.j)(e),t=(0,d.j)(t);const n=this.values,r=this.prefixSum;if(e>=n.length)return!1;const o=n.length-e;return t>=o&&(t=o),0!==t&&(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 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=(0,d.j)(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;0===t&&(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,o=0,i=0;for(;t<=n;)if(r=t+(n-t)/2|0,o=this.prefixSum[r],i=o-this.values[r],e<i)n=r-1;else{if(!(e>=o))break;t=r+1}return new p(r,e-i)}}class p{constructor(e,t){this.index=e,this.remainder=t,this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=t}}class f{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 null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const t=e.changes;for(const n of t)this._acceptDeleteRange(n.range),this._acceptInsertText(new a.y(n.range.startLineNumber,n.range.startColumn),n.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const 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 u(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)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);else{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))}}_acceptInsertText(e,t){if(0===t.length)return;const n=(0,c.uz)(t);if(1===n.length)return void 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));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]);const r=new Uint32Array(n.length-1);for(let o=1;o<n.length;o++)this._lines.splice(e.lineNumber+o-1,0,n[o]),r[o-1]=n[o].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,r)}}const m=6e4;class _ extends o.jG{constructor(e,t,n=!1){if(super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=e,this._modelService=t,!n){const e=new r.vb;e.cancelAndSet((()=>this._checkStopModelSync()),Math.round(m/2)),this._register(e)}}dispose(){for(const e in this._syncedModels)(0,o.AS)(this._syncedModels[e]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(e,t=!1){for(const n of e){const e=n.toString();this._syncedModels[e]||this._beginModelSync(n,t),this._syncedModels[e]&&(this._syncedModelsLastUsedTime[e]=(new Date).getTime())}}_checkStopModelSync(){const e=(new Date).getTime(),t=[];for(const n in this._syncedModelsLastUsedTime){e-this._syncedModelsLastUsedTime[n]>m&&t.push(n)}for(const n of t)this._stopModelSync(n)}_beginModelSync(e,t){const n=this._modelService.getModel(e);if(!n)return;if(!t&&n.isTooLargeForSyncing())return;const r=e.toString();this._proxy.$acceptNewModel({url:n.uri.toString(),lines:n.getLinesContent(),EOL:n.getEOL(),versionId:n.getVersionId()});const i=new o.Cm;i.add(n.onDidChangeContent((e=>{this._proxy.$acceptModelChanged(r.toString(),e)}))),i.add(n.onWillDispose((()=>{this._stopModelSync(r)}))),i.add((0,o.s)((()=>{this._proxy.$acceptRemovedModel(r)}))),this._syncedModels[r]=i}_stopModelSync(e){const t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],(0,o.AS)(t)}}class h{constructor(){this._models=Object.create(null)}getModel(e){return this._models[e]}getModels(){const e=[];return Object.keys(this._models).forEach((t=>e.push(this._models[t]))),e}$acceptNewModel(e){this._models[e.url]=new g(i.r.parse(e.url),e.lines,e.EOL,e.versionId)}$acceptModelChanged(e,t){if(!this._models[e])return;this._models[e].onEvents(t)}$acceptRemovedModel(e){this._models[e]&&delete this._models[e]}}class g extends f{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){const t=[];for(let n=0;n<this._lines.length;n++){const r=this._lines[n],o=this.offsetAt(new a.y(n+1,1)),i=r.matchAll(e);for(const e of i)(e.index||0===e.index)&&(e.index=e.index+o),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){const n=(0,l.Th)(e.column,(0,l.Io)(t),this._lines[e.lineNumber-1],0);return n?new s.Q(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null}words(e){const t=this._lines,n=this._wordenize.bind(this);let r=0,o="",i=0,a=[];return{*[Symbol.iterator](){for(;;)if(i<a.length){const e=o.substring(a[i].start,a[i].end);i+=1,yield e}else{if(!(r<t.length))break;o=t[r],a=n(o,e),i=0,r+=1}}}}getLineWords(e,t){const n=this._lines[e-1],r=this._wordenize(n,t),o=[];for(const i of r)o.push({word:n.substring(i.start,i.end),startColumn:i.start+1,endColumn:i.end+1});return o}_wordenize(e,t){const n=[];let r;for(t.lastIndex=0;(r=t.exec(e))&&0!==r[0].length;)n.push({start:r.index,end:r.index+r[0].length});return n}getValueInRange(e){if((e=this._validateRange(e)).startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);const t=this._eol,n=e.startLineNumber-1,r=e.endLineNumber-1,o=[];o.push(this._lines[n].substring(e.startColumn-1));for(let i=n+1;i<r;i++)o.push(this._lines[i]);return o.push(this._lines[r].substring(0,e.endColumn-1)),o.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();const 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){const 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(!a.y.isIPosition(e))throw new 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{const 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}}},920:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IEditorWorkerService:()=>r});const r=(0,n(3591).u1)("editorWorkerService")},973:(e,t,n)=>{"use strict";n.d(t,{W:()=>i});var r=n(3069),o=n(6677);class i{static{this.zero=new i(0,0)}static betweenPositions(e,t){return e.lineNumber===t.lineNumber?new i(0,t.column-e.column):new i(t.lineNumber-e.lineNumber,t.column-1)}static ofRange(e){return i.betweenPositions(e.getStartPosition(),e.getEndPosition())}static ofText(e){let t=0,n=0;for(const r of e)"\n"===r?(t++,n=0):n++;return new i(t,n)}constructor(e,t){this.lineCount=e,this.columnCount=t}isGreaterThanOrEqualTo(e){return this.lineCount!==e.lineCount?this.lineCount>e.lineCount:this.columnCount>=e.columnCount}createRange(e){return 0===this.lineCount?new o.Q(e.lineNumber,e.column,e.lineNumber,e.column+this.columnCount):new o.Q(e.lineNumber,e.column,e.lineNumber+this.lineCount,this.columnCount+1)}addToPosition(e){return 0===this.lineCount?new r.y(e.lineNumber,e.column+this.columnCount):new r.y(e.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}}},1090:(e,t,n)=>{"use strict";n.d(t,{d:()=>r});class r{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}},1234:(e,t,n)=>{"use strict";n.d(t,{Jh:()=>a,vl:()=>m});var r=n(4383),o=n(1484),i=(n(8925),n(8381));var a;!function(e){function t(e){false}function n(e){return(t,n=null,r)=>{let o,i=!1;return o=e((e=>{if(!i)return o?o.dispose():i=!0,t.call(n,e)}),null,r),i&&o.dispose(),o}}function r(e,t,n){return a(((n,r=null,o)=>e((e=>n.call(r,t(e))),null,o)),n)}function i(e,t,n){return a(((n,r=null,o)=>e((e=>t(e)&&n.call(r,e)),null,o)),n)}function a(e,n){let r;const o={onWillAddFirstListener(){r=e(i.fire,i)},onDidRemoveLastListener(){r?.dispose()}};n||t();const i=new m(o);return n?.add(i),i.event}function s(e,n,r=100,o=!1,i=!1,a,s){let l,c,d,u,p=0;const f={leakWarningThreshold:a,onWillAddFirstListener(){l=e((e=>{p++,c=n(c,e),o&&!d&&(_.fire(c),c=void 0),u=()=>{const e=c;c=void 0,d=void 0,(!o||p>1)&&_.fire(e),p=0},"number"===typeof r?(clearTimeout(d),d=setTimeout(u,r)):void 0===d&&(d=0,queueMicrotask(u))}))},onWillRemoveListener(){i&&p>0&&u?.()},onDidRemoveLastListener(){u=void 0,l.dispose()}};s||t();const _=new m(f);return s?.add(_),_.event}e.None=()=>o.jG.None,e.defer=function(e,t){return s(e,(()=>{}),0,void 0,!0,void 0,t)},e.once=n,e.onceIf=function(t,n){return e.once(e.filter(t,n))},e.map=r,e.forEach=function(e,t,n){return a(((n,r=null,o)=>e((e=>{t(e),n.call(r,e)}),null,o)),n)},e.filter=i,e.signal=function(e){return e},e.any=function(...e){return(t,n=null,r)=>function(e,t){t instanceof Array?t.push(e):t&&t.add(e);return e}((0,o.qE)(...e.map((e=>e((e=>t.call(n,e)))))),r)},e.reduce=function(e,t,n,o){let i=n;return r(e,(e=>(i=t(i,e),i)),o)},e.debounce=s,e.accumulate=function(t,n=0,r){return e.debounce(t,((e,t)=>e?(e.push(t),e):[t]),n,void 0,!0,void 0,r)},e.latch=function(e,t=(e,t)=>e===t,n){let r,o=!0;return i(e,(e=>{const n=o||!t(e,r);return o=!1,r=e,n}),n)},e.split=function(t,n,r){return[e.filter(t,n,r),e.filter(t,(e=>!n(e)),r)]},e.buffer=function(e,t=!1,n=[],r){let o=n.slice(),i=e((e=>{o?o.push(e):s.fire(e)}));r&&r.add(i);const a=()=>{o?.forEach((e=>s.fire(e))),o=null},s=new m({onWillAddFirstListener(){i||(i=e((e=>s.fire(e))),r&&r.add(i))},onDidAddFirstListener(){o&&(t?setTimeout(a):a())},onDidRemoveLastListener(){i&&i.dispose(),i=null}});return r&&r.add(s),s.event},e.chain=function(e,t){return(n,r,o)=>{const i=t(new c);return e((function(e){const t=i.evaluate(e);t!==l&&n.call(r,t)}),void 0,o)}};const l=Symbol("HaltChainable");class c{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:l)),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,n=!0;return this.steps.push((r=>{const o=n||!e(r,t);return n=!1,t=r,o?r:l})),this}evaluate(e){for(const t of this.steps)if((e=t(e))===l)break;return e}}e.fromNodeEventEmitter=function(e,t,n=e=>e){const r=(...e)=>o.fire(n(...e)),o=new m({onWillAddFirstListener:()=>e.on(t,r),onDidRemoveLastListener:()=>e.removeListener(t,r)});return o.event},e.fromDOMEventEmitter=function(e,t,n=e=>e){const r=(...e)=>o.fire(n(...e)),o=new m({onWillAddFirstListener:()=>e.addEventListener(t,r),onDidRemoveLastListener:()=>e.removeEventListener(t,r)});return o.event},e.toPromise=function(e){return new Promise((t=>n(e)(t)))},e.fromPromise=function(e){const t=new m;return e.then((e=>{t.fire(e)}),(()=>{t.fire(void 0)})).finally((()=>{t.dispose()})),t.event},e.forward=function(e,t){return e((e=>t.fire(e)))},e.runAndSubscribe=function(e,t,n){return t(n),e((e=>t(e)))};class d{constructor(e,n){this._observable=e,this._counter=0,this._hasChanged=!1;const r={onWillAddFirstListener:()=>{e.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{e.removeObserver(this)}};n||t(),this.emitter=new m(r),n&&n.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,0===this._counter&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}e.fromObservable=function(e,t){return new d(e,t).emitter.event},e.fromObservableLight=function(e){return(t,n,r)=>{let i=0,a=!1;const s={beginUpdate(){i++},endUpdate(){i--,0===i&&(e.reportChanges(),a&&(a=!1,t.call(n)))},handlePossibleChange(){},handleChange(){a=!0}};e.addObserver(s),e.reportChanges();const l={dispose(){e.removeObserver(s)}};return r instanceof o.Cm?r.add(l):Array.isArray(r)&&r.push(l),l}}}(a||(a={}));class s{static{this.all=new Set}static{this._idPool=0}constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${s._idPool++}`,s.all.add(this)}start(e){this._stopWatch=new i.W,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}class l{static{this._idPool=1}constructor(e,t,n=(l._idPool++).toString(16).padStart(3,"0")){this._errorHandler=e,this.threshold=t,this.name=n,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(e,t){const n=this.threshold;if(n<=0||t<n)return;this._stacks||(this._stacks=new Map);const r=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,r+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=.5*n;const[e,r]=this.getMostFrequentStack(),o=`[${this.name}] potential listener LEAK detected, having ${t} listeners already. MOST frequent listener (${r}):`;console.warn(o),console.warn(e);const i=new d(o,e);this._errorHandler(i)}return()=>{const t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}getMostFrequentStack(){if(!this._stacks)return;let e,t=0;for(const[n,r]of this._stacks)(!e||t<r)&&(e=[n,r],t=r);return e}}class c{static create(){const e=new Error;return new c(e.stack??"")}constructor(e){this.value=e}print(){console.warn(this.value.split("\n").slice(2).join("\n"))}}class d extends Error{constructor(e,t){super(e),this.name="ListenerLeakError",this.stack=t}}class u extends Error{constructor(e,t){super(e),this.name="ListenerRefusalError",this.stack=t}}class p{constructor(e){this.value=e}}let f;class m{constructor(e){this._size=0,this._options=e,this._leakageMon=this._options?.leakWarningThreshold?new l(e?.onListenerError??r.dz,this._options?.leakWarningThreshold??-1):void 0,this._perfMon=this._options?._profName?new s(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,t,n)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const 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);const t=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],n=new u(`${e}. HINT: Stack shows most frequent listener (${t[1]}-times)`,t[0]);return(this._options?.onListenerError||r.dz)(n),o.jG.None}if(this._disposed)return o.jG.None;t&&(e=e.bind(t));const i=new p(e);let a;this._leakageMon&&this._size>=Math.ceil(.2*this._leakageMon.threshold)&&(i.stack=c.create(),a=this._leakageMon.check(i.stack,this._size+1)),this._listeners?this._listeners instanceof p?(this._deliveryQueue??=new _,this._listeners=[this._listeners,i]):this._listeners.push(i):(this._options?.onWillAddFirstListener?.(this),this._listeners=i,this._options?.onDidAddFirstListener?.(this)),this._size++;const s=(0,o.s)((()=>{f?.unregister(s),a?.(),this._removeListener(i)}));if(n instanceof o.Cm?n.add(s):Array.isArray(n)&&n.push(s),f){const e=(new Error).stack.split("\n").slice(2,3).join("\n").trim(),t=/(file:|vscode-file:\/\/vscode-app)?(\/[^:]*:\d+:\d+)/.exec(e);f.register(s,t?.[2]??e,s)}return s},this._event}_removeListener(e){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(1===this._size)return this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),void(this._size=0);const t=this._listeners,n=t.indexOf(e);if(-1===n)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,t[n]=void 0;const r=this._deliveryQueue.current===this;if(2*this._size<=t.length){let e=0;for(let n=0;n<t.length;n++)t[n]?t[e++]=t[n]:r&&(this._deliveryQueue.end--,e<this._deliveryQueue.i&&this._deliveryQueue.i--);t.length=e}}_deliver(e,t){if(!e)return;const n=this._options?.onListenerError||r.dz;if(n)try{e.value(t)}catch(o){n(o)}else e.value(t)}_deliverQueue(e){const 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 p)this._deliver(this._listeners,e);else{const t=this._deliveryQueue;t.enqueue(this,e,this._listeners.length),this._deliverQueue(t)}else;this._perfMon?.stop()}hasListeners(){return this._size>0}}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}}},1484:(e,t,n)=>{"use strict";function r(e,t){const n=this;let r,o=!1;return function(){if(o)return r;if(o=!0,t)try{r=e.apply(n,arguments)}finally{t()}else r=e.apply(n,arguments);return r}}n.d(t,{jG:()=>f,$w:()=>_,Cm:()=>p,HE:()=>m,qE:()=>d,AS:()=>c,VD:()=>s,s:()=>u,Ay:()=>a});var o=n(2522);let i=null;function a(e){return i?.trackDisposable(e),e}function s(e){i?.markAsDisposed(e)}function l(e,t){i?.setParent(e,t)}function c(e){if(o.f.is(e)){const n=[];for(const r of e)if(r)try{r.dispose()}catch(t){n.push(t)}if(1===n.length)throw n[0];if(n.length>1)throw new AggregateError(n,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function d(...e){const t=u((()=>c(e)));return function(e,t){if(i)for(const n of e)i.setParent(n,t)}(e,t),t}function u(e){const t=a({dispose:r((()=>{s(t),e()}))});return t}class p{static{this.DISABLE_DISPOSED_WARNING=!1}constructor(){this._toDispose=new Set,this._isDisposed=!1,a(this)}dispose(){this._isDisposed||(s(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(0!==this._toDispose.size)try{c(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return l(e,this),this._isDisposed?p.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}deleteAndLeak(e){e&&this._toDispose.has(e)&&(this._toDispose.delete(e),l(e,null))}}class f{static{this.None=Object.freeze({dispose(){}})}constructor(){this._store=new p,a(this),l(this._store,this)}dispose(){s(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}class m{constructor(){this._isDisposed=!1,a(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){this._isDisposed||e===this._value||(this._value?.dispose(),e&&l(e,this),this._value=e)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,s(this),this._value?.dispose(),this._value=void 0}}class _{constructor(){this._store=new Map,this._isDisposed=!1,a(this)}dispose(){s(this),this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{c(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,t,n=!1){this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),n||this._store.get(e)?.dispose(),this._store.set(e,t)}deleteAndDispose(e){this._store.get(e)?.dispose(),this._store.delete(e)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}},1508:(e,t,n)=>{"use strict";n.d(t,{$X:()=>L,AV:()=>i,E_:()=>C,HG:()=>p,LJ:()=>S,LU:()=>O,NB:()=>l,OS:()=>c,Q_:()=>v,Ss:()=>P,UD:()=>m,Wv:()=>y,Z5:()=>x,_J:()=>M,aC:()=>N,bm:()=>s,eY:()=>d,jy:()=>a,km:()=>I,lT:()=>f,ne:()=>k,ns:()=>b,pc:()=>E,r_:()=>w,tk:()=>F,tl:()=>B,uz:()=>u,y_:()=>G,z_:()=>T});var r=n(1788),o=n(1090);function i(e){return!e||"string"!==typeof e||0===e.trim().length}function a(e){return e.replace(/[<>"'&]/g,(e=>{switch(e){case"<":return"<";case">":return">";case'"':return""";case"'":return"'";case"&":return"&"}return e}))}function s(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function l(e,t){if(!e||!t)return e;const n=t.length;if(0===n||0===e.length)return e;let r=0;for(;e.indexOf(t,r)===r;)r+=n;return e.substring(r)}function c(e,t,n={}){if(!e)throw new Error("Cannot create regex from empty string");t||(e=s(e)),n.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));let r="";return n.global&&(r+="g"),n.matchCase||(r+="i"),n.multiline&&(r+="m"),n.unicode&&(r+="u"),new RegExp(e,r)}function d(e){if("^"===e.source||"^$"===e.source||"$"===e.source||"^\\s*$"===e.source)return!1;return!(!e.exec("")||0!==e.lastIndex)}function u(e){return e.split(/\r\n|\r|\n/)}function p(e){for(let t=0,n=e.length;t<n;t++){const n=e.charCodeAt(t);if(32!==n&&9!==n)return t}return-1}function f(e,t=e.length-1){for(let n=t;n>=0;n--){const t=e.charCodeAt(n);if(32!==t&&9!==t)return n}return-1}function m(e,t){return e<t?-1:e>t?1:0}function _(e,t,n=0,r=e.length,o=0,i=t.length){for(;n<r&&o<i;n++,o++){const r=e.charCodeAt(n),i=t.charCodeAt(o);if(r<i)return-1;if(r>i)return 1}const a=r-n,s=i-o;return a<s?-1:a>s?1:0}function h(e,t,n=0,r=e.length,o=0,i=t.length){for(;n<r&&o<i;n++,o++){let a=e.charCodeAt(n),s=t.charCodeAt(o);if(a===s)continue;if(a>=128||s>=128)return _(e.toLowerCase(),t.toLowerCase(),n,r,o,i);g(a)&&(a-=32),g(s)&&(s-=32);const l=a-s;if(0!==l)return l}const a=r-n,s=i-o;return a<s?-1:a>s?1:0}function g(e){return e>=97&&e<=122}function y(e){return e>=65&&e<=90}function v(e,t){return e.length===t.length&&0===h(e,t)}function b(e,t){const n=t.length;return!(t.length>e.length)&&0===h(e,t,0,n)}function E(e){return 55296<=e&&e<=56319}function S(e){return 56320<=e&&e<=57343}function T(e,t){return t-56320+(e-55296<<10)+65536}function x(e,t,n){const r=e.charCodeAt(n);if(E(r)&&n+1<t){const t=e.charCodeAt(n+1);if(S(t))return T(r,t)}return r}class A{get offset(){return this._offset}constructor(e,t=0){this._str=e,this._len=e.length,this._offset=t}setOffset(e){this._offset=e}prevCodePoint(){const e=function(e,t){const n=e.charCodeAt(t-1);if(S(n)&&t>1){const r=e.charCodeAt(t-2);if(E(r))return T(r,n)}return n}(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){const e=x(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class I{get offset(){return this._iterator.offset}constructor(e,t=0){this._iterator=new A(e,t)}nextGraphemeLength(){const e=z.getInstance(),t=this._iterator,n=t.offset;let r=e.getGraphemeBreakType(t.nextCodePoint());for(;!t.eol();){const n=t.offset,o=e.getGraphemeBreakType(t.nextCodePoint());if(W(r,o)){t.setOffset(n);break}r=o}return t.offset-n}prevGraphemeLength(){const e=z.getInstance(),t=this._iterator,n=t.offset;let r=e.getGraphemeBreakType(t.prevCodePoint());for(;t.offset>0;){const n=t.offset,o=e.getGraphemeBreakType(t.prevCodePoint());if(W(o,r)){t.setOffset(n);break}r=o}return n-t.offset}eol(){return this._iterator.eol()}}let R;function C(e){return R||(R=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/),R.test(e)}const D=/^[\t\n\r\x20-\x7E]*$/;function N(e){return D.test(e)}const M=/[\u2028\u2029]/;function L(e){return M.test(e)}function k(e){return e>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function P(e){return e>=127462&&e<=127487||8986===e||8987===e||9200===e||9203===e||e>=9728&&e<=10175||11088===e||11093===e||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129008||e>=129280&&e<=129535||e>=129648&&e<=129782}const w=String.fromCharCode(65279);function O(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}function F(e){return(e%=52)<26?String.fromCharCode(97+e):String.fromCharCode(65+e-26)}function W(e,t){return 0===e?5!==t&&7!==t:(2!==e||3!==t)&&(4===e||2===e||3===e||(4===t||2===t||3===t||(8!==e||8!==t&&9!==t&&11!==t&&12!==t)&&((11!==e&&9!==e||9!==t&&10!==t)&&((12!==e&&10!==e||10!==t)&&(5!==t&&13!==t&&(7!==t&&(1!==e&&((13!==e||14!==t)&&(6!==e||6!==t)))))))))}class z{static{this._INSTANCE=null}static getInstance(){return z._INSTANCE||(z._INSTANCE=new z),z._INSTANCE}constructor(){this._data=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]")}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;const t=this._data,n=t.length/3;let r=1;for(;r<=n;)if(e<t[3*r])r*=2;else{if(!(e>t[3*r+1]))return t[3*r+2];r=2*r+1}return 0}}class B{static{this.ambiguousCharacterData=new o.d((()=>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,8218,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,8242,96,1370,96,1523,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,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,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,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,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,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,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,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,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,71922,67,71913,67,65315,67,8557,67,8450,67,8493,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,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,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,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,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,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,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,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,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,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,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,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,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,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,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,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,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,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,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,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,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,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,71919,87,71910,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,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,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,66293,90,71909,90,65338,90,8484,90,8488,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,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,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,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,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,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,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,65283,35,65292,44,65307,59],"ko":[8211,45,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,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,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,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[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,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,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,65283,35,65307,59]}')))}static{this.cache=new r.o5({getCacheKey:JSON.stringify},(e=>{function t(e){const t=new Map;for(let n=0;n<e.length;n+=2)t.set(e[n],e[n+1]);return t}function n(e,t){if(!e)return t;const n=new Map;for(const[r,o]of e)t.has(r)&&n.set(r,o);return n}const r=this.ambiguousCharacterData.value;let o,i=e.filter((e=>!e.startsWith("_")&&e in r));0===i.length&&(i=["_default"]);for(const s of i){o=n(o,t(r[s]))}const a=function(e,t){const n=new Map(e);for(const[r,o]of t)n.set(r,o);return n}(t(r._common),o);return new B(a)}))}static getInstance(e){return B.cache.get(Array.from(e))}static{this._locales=new o.d((()=>Object.keys(B.ambiguousCharacterData.value).filter((e=>!e.startsWith("_")))))}static getLocales(){return B._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())}}class G{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,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,12288,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]")}static{this._data=void 0}static getData(){return this._data||(this._data=new Set(G.getRawData())),this._data}static isInvisibleCharacter(e){return G.getData().has(e)}static get codePoints(){return G.getData()}}},1646:(e,t,n)=>{"use strict";n.d(t,{Fd:()=>d});var r=n(9861),o=n(1234),i=n(631),a=n(8209),s=n(4001),l=n(8748),c=n(6359);const d={Configuration:"base.contributions.configuration"},u={properties:{},patternProperties:{}},p={properties:{},patternProperties:{}},f={properties:{},patternProperties:{}},m={properties:{},patternProperties:{}},_={properties:{},patternProperties:{}},h={properties:{},patternProperties:{}},g="vscode://schemas/settings/resourceLanguage",y=c.O.as(l.F.JSONContribution);const v="\\[([^\\]]+)\\]",b=new RegExp(v,"g"),E=`^(${v})+$`,S=new RegExp(E);function T(e){const t=[];if(S.test(e)){let n=b.exec(e);for(;n?.length;){const r=n[1].trim();r&&t.push(r),n=b.exec(e)}}return(0,r.dM)(t)}const x=new class{constructor(){this.registeredConfigurationDefaults=[],this.overrideIdentifiers=new Set,this._onDidSchemaChange=new o.vl,this._onDidUpdateConfiguration=new o.vl,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:a.kg("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!0,allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.policyConfigurations=new Map,this.excludedConfigurationProperties={},y.registerSchema(g,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(e,t=!0){this.registerConfigurations([e],t)}registerConfigurations(e,t=!0){const n=new Set;this.doRegisterConfigurations(e,t,n),y.registerSchema(g,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:n})}registerDefaultConfigurations(e){const t=new Set;this.doRegisterDefaultConfigurations(e,t),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:t,defaultsOverrides:!0})}doRegisterDefaultConfigurations(e,t){this.registeredConfigurationDefaults.push(...e);const n=[];for(const{overrides:r,source:o}of e)for(const e in r){t.add(e);const i=this.configurationDefaultsOverrides.get(e)??this.configurationDefaultsOverrides.set(e,{configurationDefaultOverrides:[]}).get(e),a=r[e];if(i.configurationDefaultOverrides.push({value:a,source:o}),S.test(e)){const t=this.mergeDefaultConfigurationsForOverrideIdentifier(e,a,o,i.configurationDefaultOverrideValue);if(!t)continue;i.configurationDefaultOverrideValue=t,this.updateDefaultOverrideProperty(e,t,o),n.push(...T(e))}else{const t=this.mergeDefaultConfigurationsForConfigurationProperty(e,a,o,i.configurationDefaultOverrideValue);if(!t)continue;i.configurationDefaultOverrideValue=t;const n=this.configurationProperties[e];n&&(this.updatePropertyDefaultValue(e,n),this.updateSchema(e,n))}}this.doRegisterOverrideIdentifiers(n)}updateDefaultOverrideProperty(e,t,n){const r={type:"object",default:t.value,description:a.kg("defaultLanguageConfiguration.description","Configure settings to be overridden for the {0} language.",(0,s.Mo)(e)),$ref:g,defaultDefaultValue:t.value,source:n,defaultValueSource:n};this.configurationProperties[e]=r,this.defaultLanguageConfigurationOverridesNode.properties[e]=r}mergeDefaultConfigurationsForOverrideIdentifier(e,t,n,r){const o=r?.value||{},a=r?.source??new Map;if(a instanceof Map){for(const e of Object.keys(t)){const r=t[e];if(i.Gv(r)&&(i.b0(o[e])||i.Gv(o[e]))){if(o[e]={...o[e]??{},...r},n)for(const t in r)a.set(`${e}.${t}`,n)}else o[e]=r,n?a.set(e,n):a.delete(e)}return{value:o,source:a}}console.error("objectConfigurationSources is not a Map")}mergeDefaultConfigurationsForConfigurationProperty(e,t,n,r){const o=this.configurationProperties[e],a=r?.value??o?.defaultDefaultValue;let s=n;if(i.Gv(t)&&(void 0!==o&&"object"===o.type||void 0===o&&(i.b0(a)||i.Gv(a)))){if(s=r?.source??new Map,!(s instanceof Map))return void console.error("defaultValueSource is not a Map");for(const r in t)n&&s.set(`${e}.${r}`,n);t={...i.Gv(a)?a:{},...t}}return{value:t,source:s}}registerOverrideIdentifiers(e){this.doRegisterOverrideIdentifiers(e),this._onDidSchemaChange.fire()}doRegisterOverrideIdentifiers(e){for(const t of e)this.overrideIdentifiers.add(t);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(e,t,n){e.forEach((e=>{this.validateAndRegisterProperties(e,t,e.extensionInfo,e.restrictedProperties,void 0,n),this.configurationContributors.push(e),this.registerJSONConfiguration(e)}))}validateAndRegisterProperties(e,t=!0,n,r,o=3,a){o=i.z(e.scope)?o:e.scope;const s=e.properties;if(s)for(const c in s){const e=s[c];t&&A(c,e)?delete s[c]:(e.source=n,e.defaultDefaultValue=s[c].default,this.updatePropertyDefaultValue(c,e),S.test(c)?e.scope=void 0:(e.scope=i.z(e.scope)?o:e.scope,e.restricted=i.z(e.restricted)?!!r?.includes(c):e.restricted),!s[c].hasOwnProperty("included")||s[c].included?(this.configurationProperties[c]=s[c],s[c].policy?.name&&this.policyConfigurations.set(s[c].policy.name,c),!s[c].deprecationMessage&&s[c].markdownDeprecationMessage&&(s[c].deprecationMessage=s[c].markdownDeprecationMessage),a.add(c)):(this.excludedConfigurationProperties[c]=s[c],delete s[c]))}const l=e.allOf;if(l)for(const i of l)this.validateAndRegisterProperties(i,t,n,r,o,a)}getConfigurationProperties(){return this.configurationProperties}getPolicyConfigurations(){return this.policyConfigurations}registerJSONConfiguration(e){const t=e=>{const n=e.properties;if(n)for(const t in n)this.updateSchema(t,n[t]);const r=e.allOf;r?.forEach(t)};t(e)}updateSchema(e,t){switch(u.properties[e]=t,t.scope){case 1:p.properties[e]=t;break;case 2:f.properties[e]=t;break;case 6:m.properties[e]=t;break;case 3:_.properties[e]=t;break;case 4:h.properties[e]=t;break;case 5:h.properties[e]=t,this.resourceLanguageSettingsSchema.properties[e]=t}}updateOverridePropertyPatternKey(){for(const e of this.overrideIdentifiers.values()){const t=`[${e}]`,n={type:"object",description:a.kg("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:a.kg("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:g};this.updatePropertyDefaultValue(t,n),u.properties[t]=n,p.properties[t]=n,f.properties[t]=n,m.properties[t]=n,_.properties[t]=n,h.properties[t]=n}}registerOverridePropertyPatternKey(){const e={type:"object",description:a.kg("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:a.kg("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:g};u.patternProperties[E]=e,p.patternProperties[E]=e,f.patternProperties[E]=e,m.patternProperties[E]=e,_.patternProperties[E]=e,h.patternProperties[E]=e,this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,t){const n=this.configurationDefaultsOverrides.get(e)?.configurationDefaultOverrideValue;let r,o;!n||t.disallowConfigurationDefault&&n.source||(r=n.value,o=n.source),i.b0(r)&&(r=t.defaultDefaultValue,o=void 0),i.b0(r)&&(r=function(e){switch(Array.isArray(e)?e[0]:e){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}(t.type)),t.default=r,t.defaultValueSource=o}};function A(e,t){return e.trim()?S.test(e)?a.kg("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e):void 0!==x.getConfigurationProperties()[e]?a.kg("config.property.duplicate","Cannot register '{0}'. This property is already registered.",e):t.policy?.name&&void 0!==x.getPolicyConfigurations().get(t.policy?.name)?a.kg("config.policy.duplicate","Cannot register '{0}'. The associated policy {1} is already registered with {2}.",e,t.policy?.name,x.getPolicyConfigurations().get(t.policy?.name)):null:a.kg("config.property.empty","Cannot register an empty property")}c.O.add(d.Configuration,x)},1674:(e,t,n)=>{"use strict";n.d(t,{$l:()=>s,Gs:()=>p,MB:()=>a,Sw:()=>d,bb:()=>c,gN:()=>l,pJ:()=>u});var r=n(1090);const o="undefined"!==typeof Buffer;new r.d((()=>new Uint8Array(256)));let i;class a{static wrap(e){return o&&!Buffer.isBuffer(e)&&(e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),new a(e)}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}toString(){return o?this.buffer.toString():(i||(i=new TextDecoder),i.decode(this.buffer))}}function s(e,t){return(e[t+0]|0)>>>0|e[t+1]<<8>>>0}function l(e,t,n){e[n+0]=255&t,t>>>=8,e[n+1]=255&t}function c(e,t){return e[t]*2**24+65536*e[t+1]+256*e[t+2]+e[t+3]}function d(e,t,n){e[n+3]=t,t>>>=8,e[n+2]=t,t>>>=8,e[n+1]=t,t>>>=8,e[n]=t}function u(e,t){return e[t]}function p(e,t,n){e[n]=t}},1773:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DefaultModelSHA1Computer:()=>To,ModelService:()=>So});var r=n(1234),o=n(1484),i=n(8067),a=n(9861),s=n(7661),l=n(4383),c=n(1508),d=n(9400),u=n(4454);class p{static _nextVisibleColumn(e,t,n){return 9===e?p.nextRenderTabStop(t,n):c.ne(e)||c.Ss(e)?t+2:t+1}static visibleColumnFromColumn(e,t,n){const r=Math.min(t-1,e.length),o=e.substring(0,r),i=new c.km(o);let a=0;for(;!i.eol();){const e=c.Z5(o,r,i.offset);i.nextGraphemeLength(),a=this._nextVisibleColumn(e,a,n)}return a}static columnFromVisibleColumn(e,t,n){if(t<=0)return 1;const r=e.length,o=new c.km(e);let i=0,a=1;for(;!o.eol();){const s=c.Z5(e,r,o.offset);o.nextGraphemeLength();const l=this._nextVisibleColumn(s,i,n),d=o.offset+1;if(l>=t){return l-t<t-i?d:a}i=l,a=d}return r+1}static nextRenderTabStop(e,t){return e+t-e%t}static nextIndentTabStop(e,t){return e+t-e%t}static prevRenderTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}static prevIndentTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}}function f(e,t,n){let r=c.HG(e);return-1===r&&(r=e.length),function(e,t,n){let r=0;for(let i=0;i<e.length;i++)"\t"===e.charAt(i)?r=p.nextIndentTabStop(r,t):r++;let o="";if(!n){const e=Math.floor(r/t);r%=t;for(let t=0;t<e;t++)o+="\t"}for(let i=0;i<r;i++)o+=" ";return o}(e.substring(0,r),t,n)+e.substring(r)}var m=n(3069),_=n(6677),h=n(5326);const g={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}};var y,v=n(154),b=n(6486);!function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(y||(y={}));class E{constructor(e){if(this._neutralCharacter=null,this._neutralCharacterSearched=!1,this.open=e.open,this.close=e.close,this._inString=!0,this._inComment=!0,this._inRegEx=!0,Array.isArray(e.notIn))for(let t=0,n=e.notIn.length;t<n;t++){switch(e.notIn[t]){case"string":this._inString=!1;break;case"comment":this._inComment=!1;break;case"regex":this._inRegEx=!1}}}isOK(e){switch(e){case 0:return!0;case 1:return this._inComment;case 2:return this._inString;case 3:return this._inRegEx}}shouldAutoClose(e,t){if(0===e.getTokenCount())return!0;const n=e.findTokenIndexAtOffset(t-2),r=e.getStandardTokenType(n);return this.isOK(r)}_findNeutralCharacterInRange(e,t){for(let n=e;n<=t;n++){const e=String.fromCharCode(n);if(!this.open.includes(e)&&!this.close.includes(e))return e}return null}findNeutralCharacter(){return this._neutralCharacterSearched||(this._neutralCharacterSearched=!0,this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(48,57)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(97,122)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(65,90))),this._neutralCharacter}}class S{constructor(e){this.autoClosingPairsOpenByStart=new Map,this.autoClosingPairsOpenByEnd=new Map,this.autoClosingPairsCloseByStart=new Map,this.autoClosingPairsCloseByEnd=new Map,this.autoClosingPairsCloseSingleChar=new Map;for(const t of e)T(this.autoClosingPairsOpenByStart,t.open.charAt(0),t),T(this.autoClosingPairsOpenByEnd,t.open.charAt(t.open.length-1),t),T(this.autoClosingPairsCloseByStart,t.close.charAt(0),t),T(this.autoClosingPairsCloseByEnd,t.close.charAt(t.close.length-1),t),1===t.close.length&&1===t.open.length&&T(this.autoClosingPairsCloseSingleChar,t.close,t)}}function T(e,t,n){e.has(t)?e.get(t).push(n):e.set(t,[n])}class x{static{this.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES=";:.,=}])> \n\t"}static{this.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS="'\"`;:.,=}])> \n\t"}constructor(e){if(e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map((e=>new E(e))):e.brackets?this._autoClosingPairs=e.brackets.map((e=>new E({open:e[0],close:e[1]}))):this._autoClosingPairs=[],e.__electricCharacterSupport&&e.__electricCharacterSupport.docComment){const t=e.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new E({open:t.open,close:t.close||""}))}this._autoCloseBeforeForQuotes="string"===typeof e.autoCloseBefore?e.autoCloseBefore:x.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES,this._autoCloseBeforeForBrackets="string"===typeof e.autoCloseBefore?e.autoCloseBefore:x.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS,this._surroundingPairs=e.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(e){return e?this._autoCloseBeforeForQuotes:this._autoCloseBeforeForBrackets}getSurroundingPairs(){return this._surroundingPairs}}function A(e){return 0!==(3&e)}var I=n(1674);let R,C,D;function N(){return R||(R=new TextDecoder("UTF-16LE")),R}function M(){return D||(D=i.cm()?N():(C||(C=new TextDecoder("UTF-16BE")),C)),D}function L(e,t,n){const r=new Uint16Array(e.buffer,t,n);return n>0&&(65279===r[0]||65534===r[0])?function(e,t,n){const r=[];let o=0;for(let i=0;i<n;i++){const n=I.$l(e,t);t+=2,r[o++]=String.fromCharCode(n)}return r.join("")}(e,t,n):N().decode(r)}class k{constructor(e,t,n,r,o,i){this._richEditBracketBrand=void 0,this.languageId=e,this.index=t,this.open=n,this.close=r,this.forwardRegex=o,this.reversedRegex=i,this._openSet=k._toSet(this.open),this._closeSet=k._toSet(this.close)}isOpen(e){return this._openSet.has(e)}isClose(e){return this._closeSet.has(e)}static _toSet(e){const t=new Set;for(const n of e)t.add(n);return t}}class P{constructor(e,t){this._richEditBracketsBrand=void 0;const n=function(e){const t=e.length;e=e.map((e=>[e[0].toLowerCase(),e[1].toLowerCase()]));const n=[];for(let a=0;a<t;a++)n[a]=a;const r=(e,t)=>{const[n,r]=e,[o,i]=t;return n===o||n===i||r===o||r===i},o=(e,r)=>{const o=Math.min(e,r),i=Math.max(e,r);for(let a=0;a<t;a++)n[a]===i&&(n[a]=o)};for(let a=0;a<t;a++){const i=e[a];for(let s=a+1;s<t;s++)r(i,e[s])&&o(n[a],n[s])}const i=[];for(let a=0;a<t;a++){const r=[],o=[];for(let i=0;i<t;i++)if(n[i]===a){const[t,n]=e[i];r.push(t),o.push(n)}r.length>0&&i.push({open:r,close:o})}return i}(t);this.brackets=n.map(((t,r)=>new k(e,r,t.open,t.close,function(e,t,n,r){let o=[];o=o.concat(e),o=o.concat(t);for(let i=0,a=o.length;i<a;i++)w(o[i],n,r,o);return o=F(o),o.sort(O),o.reverse(),z(o)}(t.open,t.close,n,r),function(e,t,n,r){let o=[];o=o.concat(e),o=o.concat(t);for(let i=0,a=o.length;i<a;i++)w(o[i],n,r,o);return o=F(o),o.sort(O),o.reverse(),z(o.map(B))}(t.open,t.close,n,r)))),this.forwardRegex=function(e){let t=[];for(const n of e){for(const e of n.open)t.push(e);for(const e of n.close)t.push(e)}return t=F(t),z(t)}(this.brackets),this.reversedRegex=function(e){let t=[];for(const n of e){for(const e of n.open)t.push(e);for(const e of n.close)t.push(e)}return t=F(t),z(t.map(B))}(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(const r of this.brackets){for(const e of r.open)this.textIsBracket[e]=r,this.textIsOpenBracket[e]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,e.length);for(const e of r.close)this.textIsBracket[e]=r,this.textIsOpenBracket[e]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,e.length)}}}function w(e,t,n,r){for(let o=0,i=t.length;o<i;o++){if(o===n)continue;const i=t[o];for(const t of i.open)t.indexOf(e)>=0&&r.push(t);for(const t of i.close)t.indexOf(e)>=0&&r.push(t)}}function O(e,t){return e.length-t.length}function F(e){if(e.length<=1)return e;const t=[],n=new Set;for(const r of e)n.has(r)||(t.push(r),n.add(r));return t}function W(e){const t=/^[\w ]+$/.test(e);return e=c.bm(e),t?`\\b${e}\\b`:e}function z(e,t){const n=`(${e.map(W).join(")|(")})`;return c.OS(n,!0,t)}const B=function(){let e=null,t=null;return function(n){return e!==n&&(e=n,t=function(e){const t=new Uint16Array(e.length);let n=0;for(let r=e.length-1;r>=0;r--)t[n++]=e.charCodeAt(r);return M().decode(t)}(e)),t}}();class G{static _findPrevBracketInText(e,t,n,r){const o=n.match(e);if(!o)return null;const i=n.length-(o.index||0),a=o[0].length,s=r+i;return new _.Q(t,s-a+1,t,s+1)}static findPrevBracketInRange(e,t,n,r,o){const i=B(n).substring(n.length-o,n.length-r);return this._findPrevBracketInText(e,t,i,r)}static findNextBracketInText(e,t,n,r){const o=n.match(e);if(!o)return null;const i=o.index||0,a=o[0].length;if(0===a)return null;const s=r+i;return new _.Q(t,s+1,t,s+1+a)}static findNextBracketInRange(e,t,n,r,o){const i=n.substring(r,o);return this.findNextBracketInText(e,t,i,r)}}class j{constructor(e){this._richEditBrackets=e}getElectricCharacters(){const e=[];if(this._richEditBrackets)for(const t of this._richEditBrackets.brackets)for(const n of t.close){const t=n.charAt(n.length-1);e.push(t)}return(0,a.dM)(e)}onElectricCharacter(e,t,n){if(!this._richEditBrackets||0===this._richEditBrackets.brackets.length)return null;const r=t.findTokenIndexAtOffset(n-1);if(A(t.getStandardTokenType(r)))return null;const o=this._richEditBrackets.reversedRegex,i=t.getLineContent().substring(0,n-1)+e,a=G.findPrevBracketInRange(o,1,i,0,i.length);if(!a)return null;const s=i.substring(a.startColumn-1,a.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[s])return null;const l=t.getActualLineContentBefore(a.startColumn-1);return/^\s*$/.test(l)?{matchOpenBracket:s}:null}}function V(e){return e.global&&(e.lastIndex=0),!0}class U{constructor(e){this._indentationRules=e}shouldIncrease(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&V(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(e))}shouldDecrease(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&V(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(e))}shouldIndentNextLine(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&V(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(e))}shouldIgnore(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&V(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(e))}getIndentMetadata(e){let t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t}}class H{constructor(e){(e=e||{}).brackets=e.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],e.brackets.forEach((e=>{const t=H._createOpenBracketRegExp(e[0]),n=H._createCloseBracketRegExp(e[1]);t&&n&&this._brackets.push({open:e[0],openRegExp:t,close:e[1],closeRegExp:n})})),this._regExpRules=e.onEnterRules||[]}onEnter(e,t,n,r){if(e>=3)for(let o=0,i=this._regExpRules.length;o<i;o++){const e=this._regExpRules[o];if([{reg:e.beforeText,text:n},{reg:e.afterText,text:r},{reg:e.previousLineText,text:t}].every((e=>!e.reg||(e.reg.lastIndex=0,e.reg.test(e.text)))))return e.action}if(e>=2&&n.length>0&&r.length>0)for(let o=0,i=this._brackets.length;o<i;o++){const e=this._brackets[o];if(e.openRegExp.test(n)&&e.closeRegExp.test(r))return{indentAction:y.IndentOutdent}}if(e>=2&&n.length>0)for(let o=0,i=this._brackets.length;o<i;o++){if(this._brackets[o].openRegExp.test(n))return{indentAction:y.Indent}}return null}static _createOpenBracketRegExp(e){let t=c.bm(e);return/\B/.test(t.charAt(0))||(t="\\b"+t),t+="\\s*$",H._safeRegExp(t)}static _createCloseBracketRegExp(e){let t=c.bm(e);return/\B/.test(t.charAt(t.length-1))||(t+="\\b"),t="^\\s*"+t,H._safeRegExp(t)}static _safeRegExp(e){try{return new RegExp(e)}catch(t){return(0,l.dz)(t),null}}}var K=n(3591),q=n(4001),J=n(4621),X=n(3941),$=n(1788);class Y{constructor(e,t){this.languageId=e;const n=t.brackets?Q(t.brackets):[],r=new $.VV((e=>{const t=new Set;return{info:new ee(this,e,t),closing:t}})),o=new $.VV((e=>{const t=new Set,n=new Set;return{info:new te(this,e,t,n),opening:t,openingColorized:n}}));for(const[a,s]of n){const e=r.get(a),t=o.get(s);e.closing.add(t.info),t.opening.add(e.info)}const i=t.colorizedBracketPairs?Q(t.colorizedBracketPairs):n.filter((e=>!("<"===e[0]&&">"===e[1])));for(const[a,s]of i){const e=r.get(a),t=o.get(s);e.closing.add(t.info),t.openingColorized.add(e.info),t.opening.add(e.info)}this._openingBrackets=new Map([...r.cachedValues].map((([e,t])=>[e,t.info]))),this._closingBrackets=new Map([...o.cachedValues].map((([e,t])=>[e,t.info])))}get openingBrackets(){return[...this._openingBrackets.values()]}get closingBrackets(){return[...this._closingBrackets.values()]}getOpeningBracketInfo(e){return this._openingBrackets.get(e)}getClosingBracketInfo(e){return this._closingBrackets.get(e)}getBracketInfo(e){return this.getOpeningBracketInfo(e)||this.getClosingBracketInfo(e)}getBracketRegExp(e){return z(Array.from([...this._openingBrackets.keys(),...this._closingBrackets.keys()]),e)}}function Q(e){return e.filter((([e,t])=>""!==e&&""!==t))}class Z{constructor(e,t){this.config=e,this.bracketText=t}get languageId(){return this.config.languageId}}class ee extends Z{constructor(e,t,n){super(e,t),this.openedBrackets=n,this.isOpeningBracket=!0}}class te extends Z{constructor(e,t,n,r){super(e,t),this.openingBrackets=n,this.openingColorizedBrackets=r,this.isOpeningBracket=!1}closes(e){return e.config===this.config&&this.openingBrackets.has(e)}closesColorized(e){return e.config===this.config&&this.openingColorizedBrackets.has(e)}getOpeningBrackets(){return[...this.openingBrackets]}}var ne=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},re=function(e,t){return function(n,r){t(n,r,e)}};class oe{constructor(e){this.languageId=e}affects(e){return!this.languageId||this.languageId===e}}const ie=(0,K.u1)("languageConfigurationService");let ae=class extends o.jG{constructor(e,t){super(),this.configurationService=e,this.languageService=t,this._registry=this._register(new fe),this.onDidChangeEmitter=this._register(new r.vl),this.onDidChange=this.onDidChangeEmitter.event,this.configurations=new Map;const n=new Set(Object.values(se));this._register(this.configurationService.onDidChangeConfiguration((e=>{const t=e.change.keys.some((e=>n.has(e))),r=e.change.overrides.filter((([e,t])=>t.some((e=>n.has(e))))).map((([e])=>e));if(t)this.configurations.clear(),this.onDidChangeEmitter.fire(new oe(void 0));else for(const n of r)this.languageService.isRegisteredLanguageId(n)&&(this.configurations.delete(n),this.onDidChangeEmitter.fire(new oe(n)))}))),this._register(this._registry.onDidChange((e=>{this.configurations.delete(e.languageId),this.onDidChangeEmitter.fire(new oe(e.languageId))})))}register(e,t,n){return this._registry.register(e,t,n)}getLanguageConfiguration(e){let t=this.configurations.get(e);return t||(t=function(e,t,n,r){let o=t.getLanguageConfiguration(e);if(!o){if(!r.isRegisteredLanguageId(e))return new me(e,{});o=new me(e,{})}const i=function(e,t){const n=t.getValue(se.brackets,{overrideIdentifier:e}),r=t.getValue(se.colorizedBracketPairs,{overrideIdentifier:e});return{brackets:le(n),colorizedBracketPairs:le(r)}}(o.languageId,n),a=de([o.underlyingConfig,i]);return new me(o.languageId,a)}(e,this._registry,this.configurationService,this.languageService),this.configurations.set(e,t)),t}};ae=ne([re(0,q.pG),re(1,v.L)],ae);const se={brackets:"editor.language.brackets",colorizedBracketPairs:"editor.language.colorizedBracketPairs"};function le(e){if(Array.isArray(e))return e.map((e=>{if(Array.isArray(e)&&2===e.length)return[e[0],e[1]]})).filter((e=>!!e))}class ce{constructor(e){this.languageId=e,this._resolved=null,this._entries=[],this._order=0,this._resolved=null}register(e,t){const n=new ue(e,t,++this._order);return this._entries.push(n),this._resolved=null,(0,o.s)((()=>{for(let e=0;e<this._entries.length;e++)if(this._entries[e]===n){this._entries.splice(e,1),this._resolved=null;break}}))}getResolvedConfiguration(){if(!this._resolved){const e=this._resolve();e&&(this._resolved=new me(this.languageId,e))}return this._resolved}_resolve(){return 0===this._entries.length?null:(this._entries.sort(ue.cmp),de(this._entries.map((e=>e.configuration))))}}function de(e){let t={comments:void 0,brackets:void 0,wordPattern:void 0,indentationRules:void 0,onEnterRules:void 0,autoClosingPairs:void 0,surroundingPairs:void 0,autoCloseBefore:void 0,folding:void 0,colorizedBracketPairs:void 0,__electricCharacterSupport:void 0};for(const n of e)t={comments:n.comments||t.comments,brackets:n.brackets||t.brackets,wordPattern:n.wordPattern||t.wordPattern,indentationRules:n.indentationRules||t.indentationRules,onEnterRules:n.onEnterRules||t.onEnterRules,autoClosingPairs:n.autoClosingPairs||t.autoClosingPairs,surroundingPairs:n.surroundingPairs||t.surroundingPairs,autoCloseBefore:n.autoCloseBefore||t.autoCloseBefore,folding:n.folding||t.folding,colorizedBracketPairs:n.colorizedBracketPairs||t.colorizedBracketPairs,__electricCharacterSupport:n.__electricCharacterSupport||t.__electricCharacterSupport};return t}class ue{constructor(e,t,n){this.configuration=e,this.priority=t,this.order=n}static cmp(e,t){return e.priority===t.priority?e.order-t.order:e.priority-t.priority}}class pe{constructor(e){this.languageId=e}}class fe extends o.jG{constructor(){super(),this._entries=new Map,this._onDidChange=this._register(new r.vl),this.onDidChange=this._onDidChange.event,this._register(this.register(X.vH,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],colorizedBracketPairs:[],folding:{offSide:!0}},0))}register(e,t,n=0){let r=this._entries.get(e);r||(r=new ce(e),this._entries.set(e,r));const i=r.register(t,n);return this._onDidChange.fire(new pe(e)),(0,o.s)((()=>{i.dispose(),this._onDidChange.fire(new pe(e))}))}getLanguageConfiguration(e){const t=this._entries.get(e);return t?.getResolvedConfiguration()||null}}class me{constructor(e,t){this.languageId=e,this.underlyingConfig=t,this._brackets=null,this._electricCharacter=null,this._onEnterSupport=this.underlyingConfig.brackets||this.underlyingConfig.indentationRules||this.underlyingConfig.onEnterRules?new H(this.underlyingConfig):null,this.comments=me._handleComments(this.underlyingConfig),this.characterPair=new x(this.underlyingConfig),this.wordDefinition=this.underlyingConfig.wordPattern||b.Ld,this.indentationRules=this.underlyingConfig.indentationRules,this.underlyingConfig.indentationRules?this.indentRulesSupport=new U(this.underlyingConfig.indentationRules):this.indentRulesSupport=null,this.foldingRules=this.underlyingConfig.folding||{},this.bracketsNew=new Y(e,this.underlyingConfig)}getWordDefinition(){return(0,b.Io)(this.wordDefinition)}get brackets(){return!this._brackets&&this.underlyingConfig.brackets&&(this._brackets=new P(this.languageId,this.underlyingConfig.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new j(this.brackets)),this._electricCharacter}onEnter(e,t,n,r){return this._onEnterSupport?this._onEnterSupport.onEnter(e,t,n,r):null}getAutoClosingPairs(){return new S(this.characterPair.getAutoClosingPairs())}getAutoCloseBeforeSet(e){return this.characterPair.getAutoCloseBeforeSet(e)}getSurroundingPairs(){return this.characterPair.getSurroundingPairs()}static _handleComments(e){const t=e.comments;if(!t)return null;const n={};if(t.lineComment&&(n.lineCommentToken=t.lineComment),t.blockComment){const[e,r]=t.blockComment;n.blockCommentStartToken=e,n.blockCommentEndToken=r}return n}}(0,J.v)(ie,ae,1);var _e=n(6223);class he{constructor(e,t,n,r){this.range=e,this.nestingLevel=t,this.nestingLevelOfEqualBracketType=n,this.isInvalid=r}}class ge{constructor(e,t,n,r,o,i){this.range=e,this.openingBracketRange=t,this.closingBracketRange=n,this.nestingLevel=r,this.nestingLevelOfEqualBracketType=o,this.bracketPairNode=i}get openingBracketInfo(){return this.bracketPairNode.openingBracket.bracketInfo}}class ye extends ge{constructor(e,t,n,r,o,i,a){super(e,t,n,r,o,i),this.minVisibleColumnIndentation=a}}var ve=n(973);function be(e){return 0===e}const Ee=2**26;function Se(e,t){return e*Ee+t}function Te(e){const t=e,n=Math.floor(t/Ee),r=t-n*Ee;return new ve.W(n,r)}function xe(e,t){let n=e+t;return t>=Ee&&(n-=e%Ee),n}function Ae(e,t){return e.reduce(((e,n)=>xe(e,t(n))),0)}function Ie(e,t){return e===t}function Re(e,t){const n=e,r=t;if(r-n<=0)return 0;const o=Math.floor(n/Ee),i=Math.floor(r/Ee),a=r-i*Ee;if(o===i){return Se(0,a-(n-o*Ee))}return Se(i-o,a)}function Ce(e,t){return e<t}function De(e,t){return e<=t}function Ne(e,t){return e>=t}function Me(e){return Se(e.lineNumber-1,e.column-1)}function Le(e,t){const n=e,r=Math.floor(n/Ee),o=n-r*Ee,i=t,a=Math.floor(i/Ee),s=i-a*Ee;return new _.Q(r+1,o+1,a+1,s+1)}class ke{static fromModelContentChanges(e){return e.map((e=>{const t=_.Q.lift(e.range);return new ke(Me(t.getStartPosition()),Me(t.getEndPosition()),function(e){const t=(0,c.uz)(e);return Se(t.length-1,t[t.length-1].length)}(e.text))})).reverse()}constructor(e,t,n){this.startOffset=e,this.endOffset=t,this.newLength=n}toString(){return`[${Te(this.startOffset)}...${Te(this.endOffset)}) -> ${Te(this.newLength)}`}}class Pe{constructor(e){this.nextEditIdx=0,this.deltaOldToNewLineCount=0,this.deltaOldToNewColumnCount=0,this.deltaLineIdxInOld=-1,this.edits=e.map((e=>we.from(e)))}getOffsetBeforeChange(e){return this.adjustNextEdit(e),this.translateCurToOld(e)}getDistanceToNextChange(e){this.adjustNextEdit(e);const t=this.edits[this.nextEditIdx],n=t?this.translateOldToCur(t.offsetObj):null;return null===n?null:Re(e,n)}translateOldToCur(e){return e.lineCount===this.deltaLineIdxInOld?Se(e.lineCount+this.deltaOldToNewLineCount,e.columnCount+this.deltaOldToNewColumnCount):Se(e.lineCount+this.deltaOldToNewLineCount,e.columnCount)}translateCurToOld(e){const t=Te(e);return t.lineCount-this.deltaOldToNewLineCount===this.deltaLineIdxInOld?Se(t.lineCount-this.deltaOldToNewLineCount,t.columnCount-this.deltaOldToNewColumnCount):Se(t.lineCount-this.deltaOldToNewLineCount,t.columnCount)}adjustNextEdit(e){for(;this.nextEditIdx<this.edits.length;){const t=this.edits[this.nextEditIdx],n=this.translateOldToCur(t.endOffsetAfterObj);if(!De(n,e))break;{this.nextEditIdx++;const e=Te(n),r=Te(this.translateOldToCur(t.endOffsetBeforeObj)),o=e.lineCount-r.lineCount;this.deltaOldToNewLineCount+=o;const i=this.deltaLineIdxInOld===t.endOffsetBeforeObj.lineCount?this.deltaOldToNewColumnCount:0,a=e.columnCount-r.columnCount;this.deltaOldToNewColumnCount=i+a,this.deltaLineIdxInOld=t.endOffsetBeforeObj.lineCount}}}}class we{static from(e){return new we(e.startOffset,e.endOffset,e.newLength)}constructor(e,t,n){this.endOffsetBeforeObj=Te(t),this.endOffsetAfterObj=Te(xe(e,n)),this.offsetObj=Te(e)}}const Oe=[];class Fe{static{this.cache=new Array(129)}static create(e,t){if(e<=128&&0===t.length){let n=Fe.cache[e];return n||(n=new Fe(e,t),Fe.cache[e]=n),n}return new Fe(e,t)}static{this.empty=Fe.create(0,Oe)}static getEmpty(){return this.empty}constructor(e,t){this.items=e,this.additionalItems=t}add(e,t){const n=t.getKey(e);let r=n>>5;if(0===r){const e=1<<n|this.items;return e===this.items?this:Fe.create(e,this.additionalItems)}r--;const o=this.additionalItems.slice(0);for(;o.length<r;)o.push(0);return o[r]|=1<<(31&n),Fe.create(this.items,o)}merge(e){const t=this.items|e.items;if(this.additionalItems===Oe&&e.additionalItems===Oe)return t===this.items?this:t===e.items?e:Fe.create(t,Oe);const n=[];for(let r=0;r<Math.max(this.additionalItems.length,e.additionalItems.length);r++){const t=this.additionalItems[r]||0,o=e.additionalItems[r]||0;n.push(t|o)}return Fe.create(t,n)}intersects(e){if(0!==(this.items&e.items))return!0;for(let t=0;t<Math.min(this.additionalItems.length,e.additionalItems.length);t++)if(0!==(this.additionalItems[t]&e.additionalItems[t]))return!0;return!1}}const We={getKey:e=>e};class ze{constructor(){this.items=new Map}getKey(e){let t=this.items.get(e);return void 0===t&&(t=this.items.size,this.items.set(e,t)),t}}class Be{get length(){return this._length}constructor(e){this._length=e}}class Ge extends Be{static create(e,t,n){let r=e.length;return t&&(r=xe(r,t.length)),n&&(r=xe(r,n.length)),new Ge(r,e,t,n,t?t.missingOpeningBracketIds:Fe.getEmpty())}get kind(){return 2}get listHeight(){return 0}get childrenLength(){return 3}getChild(e){switch(e){case 0:return this.openingBracket;case 1:return this.child;case 2:return this.closingBracket}throw new Error("Invalid child index")}get children(){const e=[];return e.push(this.openingBracket),this.child&&e.push(this.child),this.closingBracket&&e.push(this.closingBracket),e}constructor(e,t,n,r,o){super(e),this.openingBracket=t,this.child=n,this.closingBracket=r,this.missingOpeningBracketIds=o}canBeReused(e){return null!==this.closingBracket&&!e.intersects(this.missingOpeningBracketIds)}deepClone(){return new Ge(this.length,this.openingBracket.deepClone(),this.child&&this.child.deepClone(),this.closingBracket&&this.closingBracket.deepClone(),this.missingOpeningBracketIds)}computeMinIndentation(e,t){return this.child?this.child.computeMinIndentation(xe(e,this.openingBracket.length),t):Number.MAX_SAFE_INTEGER}}class je extends Be{static create23(e,t,n,r=!1){let o=e.length,i=e.missingOpeningBracketIds;if(e.listHeight!==t.listHeight)throw new Error("Invalid list heights");if(o=xe(o,t.length),i=i.merge(t.missingOpeningBracketIds),n){if(e.listHeight!==n.listHeight)throw new Error("Invalid list heights");o=xe(o,n.length),i=i.merge(n.missingOpeningBracketIds)}return r?new Ue(o,e.listHeight+1,e,t,n,i):new Ve(o,e.listHeight+1,e,t,n,i)}static getEmpty(){return new Ke(0,0,[],Fe.getEmpty())}get kind(){return 4}get missingOpeningBracketIds(){return this._missingOpeningBracketIds}constructor(e,t,n){super(e),this.listHeight=t,this._missingOpeningBracketIds=n,this.cachedMinIndentation=-1}throwIfImmutable(){}makeLastElementMutable(){this.throwIfImmutable();const e=this.childrenLength;if(0===e)return;const t=this.getChild(e-1),n=4===t.kind?t.toMutable():t;return t!==n&&this.setChild(e-1,n),n}makeFirstElementMutable(){this.throwIfImmutable();if(0===this.childrenLength)return;const e=this.getChild(0),t=4===e.kind?e.toMutable():e;return e!==t&&this.setChild(0,t),t}canBeReused(e){if(e.intersects(this.missingOpeningBracketIds))return!1;if(0===this.childrenLength)return!1;let t=this;for(;4===t.kind;){const e=t.childrenLength;if(0===e)throw new l.D7;t=t.getChild(e-1)}return t.canBeReused(e)}handleChildrenChanged(){this.throwIfImmutable();const e=this.childrenLength;let t=this.getChild(0).length,n=this.getChild(0).missingOpeningBracketIds;for(let r=1;r<e;r++){const e=this.getChild(r);t=xe(t,e.length),n=n.merge(e.missingOpeningBracketIds)}this._length=t,this._missingOpeningBracketIds=n,this.cachedMinIndentation=-1}computeMinIndentation(e,t){if(-1!==this.cachedMinIndentation)return this.cachedMinIndentation;let n=Number.MAX_SAFE_INTEGER,r=e;for(let o=0;o<this.childrenLength;o++){const e=this.getChild(o);e&&(n=Math.min(n,e.computeMinIndentation(r,t)),r=xe(r,e.length))}return this.cachedMinIndentation=n,n}}class Ve extends je{get childrenLength(){return null!==this._item3?3:2}getChild(e){switch(e){case 0:return this._item1;case 1:return this._item2;case 2:return this._item3}throw new Error("Invalid child index")}setChild(e,t){switch(e){case 0:return void(this._item1=t);case 1:return void(this._item2=t);case 2:return void(this._item3=t)}throw new Error("Invalid child index")}get children(){return this._item3?[this._item1,this._item2,this._item3]:[this._item1,this._item2]}get item1(){return this._item1}get item2(){return this._item2}get item3(){return this._item3}constructor(e,t,n,r,o,i){super(e,t,i),this._item1=n,this._item2=r,this._item3=o}deepClone(){return new Ve(this.length,this.listHeight,this._item1.deepClone(),this._item2.deepClone(),this._item3?this._item3.deepClone():null,this.missingOpeningBracketIds)}appendChildOfSameHeight(e){if(this._item3)throw new Error("Cannot append to a full (2,3) tree node");this.throwIfImmutable(),this._item3=e,this.handleChildrenChanged()}unappendChild(){if(!this._item3)throw new Error("Cannot remove from a non-full (2,3) tree node");this.throwIfImmutable();const e=this._item3;return this._item3=null,this.handleChildrenChanged(),e}prependChildOfSameHeight(e){if(this._item3)throw new Error("Cannot prepend to a full (2,3) tree node");this.throwIfImmutable(),this._item3=this._item2,this._item2=this._item1,this._item1=e,this.handleChildrenChanged()}unprependChild(){if(!this._item3)throw new Error("Cannot remove from a non-full (2,3) tree node");this.throwIfImmutable();const e=this._item1;return this._item1=this._item2,this._item2=this._item3,this._item3=null,this.handleChildrenChanged(),e}toMutable(){return this}}class Ue extends Ve{toMutable(){return new Ve(this.length,this.listHeight,this.item1,this.item2,this.item3,this.missingOpeningBracketIds)}throwIfImmutable(){throw new Error("this instance is immutable")}}class He extends je{get childrenLength(){return this._children.length}getChild(e){return this._children[e]}setChild(e,t){this._children[e]=t}get children(){return this._children}constructor(e,t,n,r){super(e,t,r),this._children=n}deepClone(){const e=new Array(this._children.length);for(let t=0;t<this._children.length;t++)e[t]=this._children[t].deepClone();return new He(this.length,this.listHeight,e,this.missingOpeningBracketIds)}appendChildOfSameHeight(e){this.throwIfImmutable(),this._children.push(e),this.handleChildrenChanged()}unappendChild(){this.throwIfImmutable();const e=this._children.pop();return this.handleChildrenChanged(),e}prependChildOfSameHeight(e){this.throwIfImmutable(),this._children.unshift(e),this.handleChildrenChanged()}unprependChild(){this.throwIfImmutable();const e=this._children.shift();return this.handleChildrenChanged(),e}toMutable(){return this}}class Ke extends He{toMutable(){return new He(this.length,this.listHeight,[...this.children],this.missingOpeningBracketIds)}throwIfImmutable(){throw new Error("this instance is immutable")}}const qe=[];class Je extends Be{get listHeight(){return 0}get childrenLength(){return 0}getChild(e){return null}get children(){return qe}deepClone(){return this}}class Xe extends Je{get kind(){return 0}get missingOpeningBracketIds(){return Fe.getEmpty()}canBeReused(e){return!0}computeMinIndentation(e,t){const n=Te(e),r=(0===n.columnCount?n.lineCount:n.lineCount+1)+1,o=(i=xe(e,this.length),Math.floor(i/Ee)+1);var i;let a=Number.MAX_SAFE_INTEGER;for(let s=r;s<=o;s++){const e=t.getLineFirstNonWhitespaceColumn(s),n=t.getLineContent(s);if(0===e)continue;const r=p.visibleColumnFromColumn(n,e,t.getOptions().tabSize);a=Math.min(a,r)}return a}}class $e extends Je{static create(e,t,n){return new $e(e,t,n)}get kind(){return 1}get missingOpeningBracketIds(){return Fe.getEmpty()}constructor(e,t,n){super(e),this.bracketInfo=t,this.bracketIds=n}get text(){return this.bracketInfo.bracketText}get languageId(){return this.bracketInfo.languageId}canBeReused(e){return!1}computeMinIndentation(e,t){return Number.MAX_SAFE_INTEGER}}class Ye extends Je{get kind(){return 3}constructor(e,t){super(t),this.missingOpeningBracketIds=e}canBeReused(e){return!e.intersects(this.missingOpeningBracketIds)}computeMinIndentation(e,t){return Number.MAX_SAFE_INTEGER}}var Qe=n(5982);class Ze{constructor(e,t,n,r,o){this.length=e,this.kind=t,this.bracketId=n,this.bracketIds=r,this.astNode=o}}class et{constructor(e,t){this.textModel=e,this.bracketTokens=t,this.reader=new tt(this.textModel,this.bracketTokens),this._offset=0,this.didPeek=!1,this.peeked=null,this.textBufferLineCount=e.getLineCount(),this.textBufferLastLineLength=e.getLineLength(this.textBufferLineCount)}get offset(){return this._offset}get length(){return Se(this.textBufferLineCount-1,this.textBufferLastLineLength)}skip(e){this.didPeek=!1,this._offset=xe(this._offset,e);const t=Te(this._offset);this.reader.setPosition(t.lineCount,t.columnCount)}read(){let e;return this.peeked?(this.didPeek=!1,e=this.peeked):e=this.reader.read(),e&&(this._offset=xe(this._offset,e.length)),e}peek(){return this.didPeek||(this.peeked=this.reader.read(),this.didPeek=!0),this.peeked}}class tt{constructor(e,t){this.textModel=e,this.bracketTokens=t,this.lineIdx=0,this.line=null,this.lineCharOffset=0,this.lineTokens=null,this.lineTokenOffset=0,this.peekedToken=null,this.textBufferLineCount=e.getLineCount(),this.textBufferLastLineLength=e.getLineLength(this.textBufferLineCount)}setPosition(e,t){e===this.lineIdx?(this.lineCharOffset=t,null!==this.line&&(this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset))):(this.lineIdx=e,this.lineCharOffset=t,this.line=null),this.peekedToken=null}read(){if(this.peekedToken){const e=this.peekedToken;return this.peekedToken=null,this.lineCharOffset+=e.length,e}if(this.lineIdx>this.textBufferLineCount-1||this.lineIdx===this.textBufferLineCount-1&&this.lineCharOffset>=this.textBufferLastLineLength)return null;null===this.line&&(this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.line=this.lineTokens.getLineContent(),this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset));const e=this.lineIdx,t=this.lineCharOffset;let n=0;for(;;){const r=this.lineTokens,o=r.getCount();let i=null;if(this.lineTokenOffset<o){const a=r.getMetadata(this.lineTokenOffset);for(;this.lineTokenOffset+1<o&&a===r.getMetadata(this.lineTokenOffset+1);)this.lineTokenOffset++;const s=0===Qe.x.getTokenType(a),l=Qe.x.containsBalancedBrackets(a),c=r.getEndOffset(this.lineTokenOffset);if(l&&s&&this.lineCharOffset<c){const e=r.getLanguageId(this.lineTokenOffset),t=this.line.substring(this.lineCharOffset,c),n=this.bracketTokens.getSingleLanguageBracketTokens(e),o=n.regExpGlobal;if(o){o.lastIndex=0;const e=o.exec(t);e&&(i=n.getToken(e[0]),i&&(this.lineCharOffset+=e.index))}}if(n+=c-this.lineCharOffset,i){if(e!==this.lineIdx||t!==this.lineCharOffset){this.peekedToken=i;break}return this.lineCharOffset+=i.length,i}this.lineTokenOffset++,this.lineCharOffset=c}else{if(this.lineIdx===this.textBufferLineCount-1)break;if(this.lineIdx++,this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.lineTokenOffset=0,this.line=this.lineTokens.getLineContent(),this.lineCharOffset=0,n+=33,n>1e3)break}if(n>1500)break}const r=(o=e,i=t,a=this.lineIdx,s=this.lineCharOffset,o!==a?Se(a-o,s):Se(0,s-i));var o,i,a,s;return new Ze(r,0,-1,Fe.getEmpty(),new Xe(r))}}class nt{constructor(e,t){this.text=e,this._offset=0,this.idx=0;const n=t.getRegExpStr(),r=n?new RegExp(n+"|\n","gi"):null,o=[];let i,a=0,s=0,l=0,c=0;const d=[];for(let f=0;f<60;f++)d.push(new Ze(Se(0,f),0,-1,Fe.getEmpty(),new Xe(Se(0,f))));const u=[];for(let f=0;f<60;f++)u.push(new Ze(Se(1,f),0,-1,Fe.getEmpty(),new Xe(Se(1,f))));if(r)for(r.lastIndex=0;null!==(i=r.exec(e));){const e=i.index,n=i[0];if("\n"===n)a++,s=e+1;else{if(l!==e){let t;if(c===a){const n=e-l;if(n<d.length)t=d[n];else{const e=Se(0,n);t=new Ze(e,0,-1,Fe.getEmpty(),new Xe(e))}}else{const n=a-c,r=e-s;if(1===n&&r<u.length)t=u[r];else{const e=Se(n,r);t=new Ze(e,0,-1,Fe.getEmpty(),new Xe(e))}}o.push(t)}o.push(t.getToken(n)),l=e+n.length,c=a}}const p=e.length;if(l!==p){const e=c===a?Se(0,p-l):Se(a-c,p-s);o.push(new Ze(e,0,-1,Fe.getEmpty(),new Xe(e)))}this.length=Se(a,p-s),this.tokens=o}get offset(){return this._offset}read(){return this.tokens[this.idx++]||null}peek(){return this.tokens[this.idx]||null}skip(e){throw new l.EM}}class rt{static createFromLanguage(e,t){function n(e){return t.getKey(`${e.languageId}:::${e.bracketText}`)}const r=new Map;for(const o of e.bracketsNew.openingBrackets){const e=Se(0,o.bracketText.length),t=n(o),i=Fe.getEmpty().add(t,We);r.set(o.bracketText,new Ze(e,1,t,i,$e.create(e,o,i)))}for(const o of e.bracketsNew.closingBrackets){const e=Se(0,o.bracketText.length);let t=Fe.getEmpty();const i=o.getOpeningBrackets();for(const r of i)t=t.add(n(r),We);r.set(o.bracketText,new Ze(e,2,n(i[0]),t,$e.create(e,o,t)))}return new rt(r)}constructor(e){this.map=e,this.hasRegExp=!1,this._regExpGlobal=null}getRegExpStr(){if(this.isEmpty)return null;{const e=[...this.map.keys()];return e.sort(),e.reverse(),e.map((e=>function(e){let t=(0,c.bm)(e);/^[\w ]+/.test(e)&&(t=`\\b${t}`);/[\w ]+$/.test(e)&&(t=`${t}\\b`);return t}(e))).join("|")}}get regExpGlobal(){if(!this.hasRegExp){const e=this.getRegExpStr();this._regExpGlobal=e?new RegExp(e,"gi"):null,this.hasRegExp=!0}return this._regExpGlobal}getToken(e){return this.map.get(e.toLowerCase())}findClosingTokenText(e){for(const[t,n]of this.map)if(2===n.kind&&n.bracketIds.intersects(e))return t}get isEmpty(){return 0===this.map.size}}class ot{constructor(e,t){this.denseKeyProvider=e,this.getLanguageConfiguration=t,this.languageIdToBracketTokens=new Map}didLanguageChange(e){return this.languageIdToBracketTokens.has(e)}getSingleLanguageBracketTokens(e){let t=this.languageIdToBracketTokens.get(e);return t||(t=rt.createFromLanguage(this.getLanguageConfiguration(e),this.denseKeyProvider),this.languageIdToBracketTokens.set(e,t)),t}}function it(e,t=!1){if(0===e.length)return null;if(1===e.length)return e[0];let n=e.length;for(;n>3;){const r=n>>1;for(let o=0;o<r;o++){const r=o<<1;e[o]=je.create23(e[r],e[r+1],r+3===n?e[r+2]:null,t)}n=r}return je.create23(e[0],e[1],n>=3?e[2]:null,t)}function at(e,t){return Math.abs(e.listHeight-t.listHeight)}function st(e,t){return e.listHeight===t.listHeight?je.create23(e,t,null,!1):e.listHeight>t.listHeight?function(e,t){let n=e=e.toMutable();const r=[];let o;for(;;){if(t.listHeight===n.listHeight){o=t;break}if(4!==n.kind)throw new Error("unexpected");r.push(n),n=n.makeLastElementMutable()}for(let i=r.length-1;i>=0;i--){const e=r[i];o?e.childrenLength>=3?o=je.create23(e.unappendChild(),o,null,!1):(e.appendChildOfSameHeight(o),o=void 0):e.handleChildrenChanged()}return o?je.create23(e,o,null,!1):e}(e,t):function(e,t){let n=e=e.toMutable();const r=[];for(;t.listHeight!==n.listHeight;){if(4!==n.kind)throw new Error("unexpected");r.push(n),n=n.makeFirstElementMutable()}let o=t;for(let i=r.length-1;i>=0;i--){const e=r[i];o?e.childrenLength>=3?o=je.create23(o,e.unprependChild(),null,!1):(e.prependChildOfSameHeight(o),o=void 0):e.handleChildrenChanged()}return o?je.create23(o,e,null,!1):e}(t,e)}class lt{constructor(e){this.lastOffset=0,this.nextNodes=[e],this.offsets=[0],this.idxs=[]}readLongestNodeAt(e,t){if(Ce(e,this.lastOffset))throw new Error("Invalid offset");for(this.lastOffset=e;;){const n=dt(this.nextNodes);if(!n)return;const r=dt(this.offsets);if(Ce(e,r))return;if(Ce(r,e))if(xe(r,n.length)<=e)this.nextNodeAfterCurrent();else{const e=ct(n);-1!==e?(this.nextNodes.push(n.getChild(e)),this.offsets.push(r),this.idxs.push(e)):this.nextNodeAfterCurrent()}else{if(t(n))return this.nextNodeAfterCurrent(),n;{const e=ct(n);if(-1===e)return void this.nextNodeAfterCurrent();this.nextNodes.push(n.getChild(e)),this.offsets.push(r),this.idxs.push(e)}}}}nextNodeAfterCurrent(){for(;;){const e=dt(this.offsets),t=dt(this.nextNodes);if(this.nextNodes.pop(),this.offsets.pop(),0===this.idxs.length)break;const n=dt(this.nextNodes),r=ct(n,this.idxs[this.idxs.length-1]);if(-1!==r){this.nextNodes.push(n.getChild(r)),this.offsets.push(xe(e,t.length)),this.idxs[this.idxs.length-1]=r;break}this.idxs.pop()}}}function ct(e,t=-1){for(;;){if(++t>=e.childrenLength)return-1;if(e.getChild(t))return t}}function dt(e){return e.length>0?e[e.length-1]:void 0}function ut(e,t,n,r){return new pt(e,t,n,r).parseDocument()}class pt{constructor(e,t,n,r){if(this.tokenizer=e,this.createImmutableLists=r,this._itemsConstructed=0,this._itemsFromCache=0,n&&r)throw new Error("Not supported");this.oldNodeReader=n?new lt(n):void 0,this.positionMapper=new Pe(t)}parseDocument(){this._itemsConstructed=0,this._itemsFromCache=0;let e=this.parseList(Fe.getEmpty(),0);return e||(e=je.getEmpty()),e}parseList(e,t){const n=[];for(;;){let r=this.tryReadChildFromCache(e);if(!r){const n=this.tokenizer.peek();if(!n||2===n.kind&&n.bracketIds.intersects(e))break;r=this.parseChild(e,t+1)}4===r.kind&&0===r.childrenLength||n.push(r)}const r=this.oldNodeReader?function(e){if(0===e.length)return null;if(1===e.length)return e[0];let t=0;function n(){if(t>=e.length)return null;const n=t,r=e[n].listHeight;for(t++;t<e.length&&e[t].listHeight===r;)t++;return t-n>=2?it(0===n&&t===e.length?e:e.slice(n,t),!1):e[n]}let r=n(),o=n();if(!o)return r;for(let i=n();i;i=n())at(r,o)<=at(o,i)?(r=st(r,o),o=i):o=st(o,i);return st(r,o)}(n):it(n,this.createImmutableLists);return r}tryReadChildFromCache(e){if(this.oldNodeReader){const t=this.positionMapper.getDistanceToNextChange(this.tokenizer.offset);if(null===t||!be(t)){const n=this.oldNodeReader.readLongestNodeAt(this.positionMapper.getOffsetBeforeChange(this.tokenizer.offset),(n=>{if(null!==t&&!Ce(n.length,t))return!1;return n.canBeReused(e)}));if(n)return this._itemsFromCache++,this.tokenizer.skip(n.length),n}}}parseChild(e,t){this._itemsConstructed++;const n=this.tokenizer.read();switch(n.kind){case 2:return new Ye(n.bracketIds,n.length);case 0:return n.astNode;case 1:{if(t>300)return new Xe(n.length);const r=e.merge(n.bracketIds),o=this.parseList(r,t+1),i=this.tokenizer.peek();return i&&2===i.kind&&(i.bracketId===n.bracketId||i.bracketIds.intersects(n.bracketIds))?(this.tokenizer.read(),Ge.create(n.astNode,o,i.astNode)):Ge.create(n.astNode,o,null)}default:throw new Error("unexpected")}}}function ft(e,t){if(0===e.length)return t;if(0===t.length)return e;const n=new a.j3(_t(e)),r=_t(t);r.push({modified:!1,lengthBefore:void 0,lengthAfter:void 0});let o=n.dequeue();function i(e){if(void 0===e){const e=n.takeWhile((e=>!0))||[];return o&&e.unshift(o),e}const t=[];for(;o&&!be(e);){const[r,i]=o.splitAt(e);t.push(r),e=Re(r.lengthAfter,e),o=i??n.dequeue()}return be(e)||t.push(new mt(!1,e,e)),t}const s=[];function l(e,t,n){if(s.length>0&&Ie(s[s.length-1].endOffset,e)){const e=s[s.length-1];s[s.length-1]=new ke(e.startOffset,t,xe(e.newLength,n))}else s.push({startOffset:e,endOffset:t,newLength:n})}let c=0;for(const a of r){const e=i(a.lengthBefore);if(a.modified){const t=xe(c,Ae(e,(e=>e.lengthBefore)));l(c,t,a.lengthAfter),c=t}else for(const t of e){const e=c;c=xe(c,t.lengthBefore),t.modified&&l(e,c,t.lengthAfter)}}return s}class mt{constructor(e,t,n){this.modified=e,this.lengthBefore=t,this.lengthAfter=n}splitAt(e){const t=Re(e,this.lengthAfter);return Ie(t,0)?[this,void 0]:this.modified?[new mt(this.modified,this.lengthBefore,e),new mt(this.modified,0,t)]:[new mt(this.modified,e,e),new mt(this.modified,t,t)]}toString(){return`${this.modified?"M":"U"}:${Te(this.lengthBefore)} -> ${Te(this.lengthAfter)}`}}function _t(e){const t=[];let n=0;for(const r of e){const e=Re(n,r.startOffset);be(e)||t.push(new mt(!1,e,e));const o=Re(r.startOffset,r.endOffset);t.push(new mt(!0,o,r.newLength)),n=r.endOffset}return t}class ht extends o.jG{didLanguageChange(e){return this.brackets.didLanguageChange(e)}constructor(e,t){if(super(),this.textModel=e,this.getLanguageConfiguration=t,this.didChangeEmitter=new r.vl,this.denseKeyProvider=new ze,this.brackets=new ot(this.denseKeyProvider,this.getLanguageConfiguration),this.onDidChange=this.didChangeEmitter.event,this.queuedTextEditsForInitialAstWithoutTokens=[],this.queuedTextEdits=[],e.tokenization.hasTokens)2===e.tokenization.backgroundTokenizationState?(this.initialAstWithoutTokens=void 0,this.astWithTokens=this.parseDocumentFromTextBuffer([],void 0,!1)):(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer([],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens);else{const e=this.brackets.getSingleLanguageBracketTokens(this.textModel.getLanguageId()),t=new nt(this.textModel.getValue(),e);this.initialAstWithoutTokens=ut(t,[],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens}}handleDidChangeBackgroundTokenizationState(){if(2===this.textModel.tokenization.backgroundTokenizationState){const e=void 0===this.initialAstWithoutTokens;this.initialAstWithoutTokens=void 0,e||this.didChangeEmitter.fire()}}handleDidChangeTokens({ranges:e}){const t=e.map((e=>new ke(Se(e.fromLineNumber-1,0),Se(e.toLineNumber,0),Se(e.toLineNumber-e.fromLineNumber+1,0))));this.handleEdits(t,!0),this.initialAstWithoutTokens||this.didChangeEmitter.fire()}handleContentChanged(e){const t=ke.fromModelContentChanges(e.changes);this.handleEdits(t,!1)}handleEdits(e,t){const n=ft(this.queuedTextEdits,e);this.queuedTextEdits=n,this.initialAstWithoutTokens&&!t&&(this.queuedTextEditsForInitialAstWithoutTokens=ft(this.queuedTextEditsForInitialAstWithoutTokens,e))}flushQueue(){this.queuedTextEdits.length>0&&(this.astWithTokens=this.parseDocumentFromTextBuffer(this.queuedTextEdits,this.astWithTokens,!1),this.queuedTextEdits=[]),this.queuedTextEditsForInitialAstWithoutTokens.length>0&&(this.initialAstWithoutTokens&&(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer(this.queuedTextEditsForInitialAstWithoutTokens,this.initialAstWithoutTokens,!1)),this.queuedTextEditsForInitialAstWithoutTokens=[])}parseDocumentFromTextBuffer(e,t,n){const r=t;return ut(new et(this.textModel,this.brackets),e,r,n)}getBracketsInRange(e,t){this.flushQueue();const n=Se(e.startLineNumber-1,e.startColumn-1),r=Se(e.endLineNumber-1,e.endColumn-1);return new a.c1((e=>{const o=this.initialAstWithoutTokens||this.astWithTokens;vt(o,0,o.length,n,r,e,0,0,new Map,t)}))}getBracketPairsInRange(e,t){this.flushQueue();const n=Me(e.getStartPosition()),r=Me(e.getEndPosition());return new a.c1((e=>{const o=this.initialAstWithoutTokens||this.astWithTokens,i=new bt(e,t,this.textModel);Et(o,0,o.length,n,r,i,0,new Map)}))}getFirstBracketAfter(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return yt(t,0,t.length,Me(e))}getFirstBracketBefore(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return gt(t,0,t.length,Me(e))}}function gt(e,t,n,r){if(4===e.kind||2===e.kind){const o=[];for(const r of e.children)n=xe(t,r.length),o.push({nodeOffsetStart:t,nodeOffsetEnd:n}),t=n;for(let t=o.length-1;t>=0;t--){const{nodeOffsetStart:n,nodeOffsetEnd:i}=o[t];if(Ce(n,r)){const o=gt(e.children[t],n,i,r);if(o)return o}}return null}if(3===e.kind)return null;if(1===e.kind){const r=Le(t,n);return{bracketInfo:e.bracketInfo,range:r}}return null}function yt(e,t,n,r){if(4===e.kind||2===e.kind){for(const o of e.children){if(Ce(r,n=xe(t,o.length))){const e=yt(o,t,n,r);if(e)return e}t=n}return null}if(3===e.kind)return null;if(1===e.kind){const r=Le(t,n);return{bracketInfo:e.bracketInfo,range:r}}return null}function vt(e,t,n,r,o,i,a,s,l,c,d=!1){if(a>200)return!0;e:for(;;)switch(e.kind){case 4:{const s=e.childrenLength;for(let d=0;d<s;d++){const s=e.getChild(d);if(s){if(n=xe(t,s.length),De(t,o)&&Ne(n,r)){if(Ne(n,o)){e=s;continue e}if(!vt(s,t,n,r,o,i,a,0,l,c))return!1}t=n}}return!0}case 2:{const d=!c||!e.closingBracket||e.closingBracket.bracketInfo.closesColorized(e.openingBracket.bracketInfo);let u=0;if(l){let t=l.get(e.openingBracket.text);void 0===t&&(t=0),u=t,d&&(t++,l.set(e.openingBracket.text,t))}const p=e.childrenLength;for(let f=0;f<p;f++){const p=e.getChild(f);if(p){if(n=xe(t,p.length),De(t,o)&&Ne(n,r)){if(Ne(n,o)&&1!==p.kind){e=p,d?(a++,s=u+1):s=u;continue e}if(d||1!==p.kind||!e.closingBracket){if(!vt(p,t,n,r,o,i,d?a+1:a,d?u+1:u,l,c,!e.closingBracket))return!1}}t=n}}return l?.set(e.openingBracket.text,u),!0}case 3:{const e=Le(t,n);return i(new he(e,a-1,0,!0))}case 1:{const e=Le(t,n);return i(new he(e,a-1,s-1,d))}case 0:return!0}}class bt{constructor(e,t,n){this.push=e,this.includeMinIndentation=t,this.textModel=n}}function Et(e,t,n,r,o,i,a,s){if(a>200)return!0;let l=!0;if(2===e.kind){let c=0;if(s){let t=s.get(e.openingBracket.text);void 0===t&&(t=0),c=t,t++,s.set(e.openingBracket.text,t)}const d=xe(t,e.openingBracket.length);let u=-1;if(i.includeMinIndentation&&(u=e.computeMinIndentation(t,i.textModel)),l=i.push(new ye(Le(t,n),Le(t,d),e.closingBracket?Le(xe(d,e.child?.length||0),n):void 0,a,c,e,u)),t=d,l&&e.child){const c=e.child;if(n=xe(t,c.length),De(t,o)&&Ne(n,r)&&(l=Et(c,t,n,r,o,i,a+1,s),!l))return!1}s?.set(e.openingBracket.text,c)}else{let n=t;for(const t of e.children){const e=n;if(n=xe(n,t.length),De(e,o)&&De(r,n)&&(l=Et(t,e,n,r,o,i,a,s),!l))return!1}}return l}class St extends o.jG{get canBuildAST(){return this.textModel.getValueLength()<=5e6}constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t,this.bracketPairsTree=this._register(new o.HE),this.onDidChangeEmitter=new r.vl,this.onDidChange=this.onDidChangeEmitter.event,this.bracketsRequested=!1}handleLanguageConfigurationServiceChange(e){e.languageId&&!this.bracketPairsTree.value?.object.didLanguageChange(e.languageId)||(this.bracketPairsTree.clear(),this.updateBracketPairsTree())}handleDidChangeOptions(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeLanguage(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeContent(e){this.bracketPairsTree.value?.object.handleContentChanged(e)}handleDidChangeBackgroundTokenizationState(){this.bracketPairsTree.value?.object.handleDidChangeBackgroundTokenizationState()}handleDidChangeTokens(e){this.bracketPairsTree.value?.object.handleDidChangeTokens(e)}updateBracketPairsTree(){if(this.bracketsRequested&&this.canBuildAST){if(!this.bracketPairsTree.value){const n=new o.Cm;this.bracketPairsTree.value=(e=n.add(new ht(this.textModel,(e=>this.languageConfigurationService.getLanguageConfiguration(e)))),t=n,{object:e,dispose:()=>t?.dispose()}),n.add(this.bracketPairsTree.value.object.onDidChange((e=>this.onDidChangeEmitter.fire(e)))),this.onDidChangeEmitter.fire()}}else this.bracketPairsTree.value&&(this.bracketPairsTree.clear(),this.onDidChangeEmitter.fire());var e,t}getBracketPairsInRange(e){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketPairsInRange(e,!1)||a.c1.empty}getBracketPairsInRangeWithMinIndentation(e){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketPairsInRange(e,!0)||a.c1.empty}getBracketsInRange(e,t=!1){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketsInRange(e,t)||a.c1.empty}findMatchingBracketUp(e,t,n){const r=this.textModel.validatePosition(t),o=this.textModel.getLanguageIdAtPosition(r.lineNumber,r.column);if(this.canBuildAST){const n=this.languageConfigurationService.getLanguageConfiguration(o).bracketsNew.getClosingBracketInfo(e);if(!n)return null;const r=this.getBracketPairsInRange(_.Q.fromPositions(t,t)).findLast((e=>n.closes(e.openingBracketInfo)));return r?r.openingBracketRange:null}{const t=e.toLowerCase(),i=this.languageConfigurationService.getLanguageConfiguration(o).brackets;if(!i)return null;const a=i.textIsBracket[t];return a?At(this._findMatchingBracketUp(a,r,Tt(n))):null}}matchBracket(e,t){if(this.canBuildAST){const t=this.getBracketPairsInRange(_.Q.fromPositions(e,e)).filter((t=>void 0!==t.closingBracketRange&&(t.openingBracketRange.containsPosition(e)||t.closingBracketRange.containsPosition(e)))).findLastMaxBy((0,a.VE)((t=>t.openingBracketRange.containsPosition(e)?t.openingBracketRange:t.closingBracketRange),_.Q.compareRangesUsingStarts));return t?[t.openingBracketRange,t.closingBracketRange]:null}{const n=Tt(t);return this._matchBracket(this.textModel.validatePosition(e),n)}}_establishBracketSearchOffsets(e,t,n,r){const o=t.getCount(),i=t.getLanguageId(r);let a=Math.max(0,e.column-1-n.maxBracketLength);for(let l=r-1;l>=0;l--){const e=t.getEndOffset(l);if(e<=a)break;if(A(t.getStandardTokenType(l))||t.getLanguageId(l)!==i){a=e;break}}let s=Math.min(t.getLineContent().length,e.column-1+n.maxBracketLength);for(let l=r+1;l<o;l++){const e=t.getStartOffset(l);if(e>=s)break;if(A(t.getStandardTokenType(l))||t.getLanguageId(l)!==i){s=e;break}}return{searchStartOffset:a,searchEndOffset:s}}_matchBracket(e,t){const n=e.lineNumber,r=this.textModel.tokenization.getLineTokens(n),o=this.textModel.getLineContent(n),i=r.findTokenIndexAtOffset(e.column-1);if(i<0)return null;const a=this.languageConfigurationService.getLanguageConfiguration(r.getLanguageId(i)).brackets;if(a&&!A(r.getStandardTokenType(i))){let{searchStartOffset:s,searchEndOffset:l}=this._establishBracketSearchOffsets(e,r,a,i),c=null;for(;;){const r=G.findNextBracketInRange(a.forwardRegex,n,o,s,l);if(!r)break;if(r.startColumn<=e.column&&e.column<=r.endColumn){const e=o.substring(r.startColumn-1,r.endColumn-1).toLowerCase(),n=this._matchFoundBracket(r,a.textIsBracket[e],a.textIsOpenBracket[e],t);if(n){if(n instanceof xt)return null;c=n}}s=r.endColumn-1}if(c)return c}if(i>0&&r.getStartOffset(i)===e.column-1){const a=i-1,s=this.languageConfigurationService.getLanguageConfiguration(r.getLanguageId(a)).brackets;if(s&&!A(r.getStandardTokenType(a))){const{searchStartOffset:i,searchEndOffset:l}=this._establishBracketSearchOffsets(e,r,s,a),c=G.findPrevBracketInRange(s.reversedRegex,n,o,i,l);if(c&&c.startColumn<=e.column&&e.column<=c.endColumn){const e=o.substring(c.startColumn-1,c.endColumn-1).toLowerCase(),n=this._matchFoundBracket(c,s.textIsBracket[e],s.textIsOpenBracket[e],t);if(n)return n instanceof xt?null:n}}}return null}_matchFoundBracket(e,t,n,r){if(!t)return null;const o=n?this._findMatchingBracketDown(t,e.getEndPosition(),r):this._findMatchingBracketUp(t,e.getStartPosition(),r);return o?o instanceof xt?o:[e,o]:null}_findMatchingBracketUp(e,t,n){const r=e.languageId,o=e.reversedRegex;let i=-1,a=0;const s=(t,r,s,l)=>{for(;;){if(n&&++a%100===0&&!n())return xt.INSTANCE;const c=G.findPrevBracketInRange(o,t,r,s,l);if(!c)break;const d=r.substring(c.startColumn-1,c.endColumn-1).toLowerCase();if(e.isOpen(d)?i++:e.isClose(d)&&i--,0===i)return c;l=c.startColumn-1}return null};for(let l=t.lineNumber;l>=1;l--){const e=this.textModel.tokenization.getLineTokens(l),n=e.getCount(),o=this.textModel.getLineContent(l);let i=n-1,a=o.length,c=o.length;l===t.lineNumber&&(i=e.findTokenIndexAtOffset(t.column-1),a=t.column-1,c=t.column-1);let d=!0;for(;i>=0;i--){const t=e.getLanguageId(i)===r&&!A(e.getStandardTokenType(i));if(t)d?a=e.getStartOffset(i):(a=e.getStartOffset(i),c=e.getEndOffset(i));else if(d&&a!==c){const e=s(l,o,a,c);if(e)return e}d=t}if(d&&a!==c){const e=s(l,o,a,c);if(e)return e}}return null}_findMatchingBracketDown(e,t,n){const r=e.languageId,o=e.forwardRegex;let i=1,a=0;const s=(t,r,s,l)=>{for(;;){if(n&&++a%100===0&&!n())return xt.INSTANCE;const c=G.findNextBracketInRange(o,t,r,s,l);if(!c)break;const d=r.substring(c.startColumn-1,c.endColumn-1).toLowerCase();if(e.isOpen(d)?i++:e.isClose(d)&&i--,0===i)return c;s=c.endColumn-1}return null},l=this.textModel.getLineCount();for(let c=t.lineNumber;c<=l;c++){const e=this.textModel.tokenization.getLineTokens(c),n=e.getCount(),o=this.textModel.getLineContent(c);let i=0,a=0,l=0;c===t.lineNumber&&(i=e.findTokenIndexAtOffset(t.column-1),a=t.column-1,l=t.column-1);let d=!0;for(;i<n;i++){const t=e.getLanguageId(i)===r&&!A(e.getStandardTokenType(i));if(t)d||(a=e.getStartOffset(i)),l=e.getEndOffset(i);else if(d&&a!==l){const e=s(c,o,a,l);if(e)return e}d=t}if(d&&a!==l){const e=s(c,o,a,l);if(e)return e}}return null}findPrevBracket(e){const t=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getFirstBracketBefore(t)||null;let n=null,r=null,o=null;for(let i=t.lineNumber;i>=1;i--){const e=this.textModel.tokenization.getLineTokens(i),a=e.getCount(),s=this.textModel.getLineContent(i);let l=a-1,c=s.length,d=s.length;if(i===t.lineNumber){l=e.findTokenIndexAtOffset(t.column-1),c=t.column-1,d=t.column-1;const i=e.getLanguageId(l);n!==i&&(n=i,r=this.languageConfigurationService.getLanguageConfiguration(n).brackets,o=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew)}let u=!0;for(;l>=0;l--){const t=e.getLanguageId(l);if(n!==t){if(r&&o&&u&&c!==d){const e=G.findPrevBracketInRange(r.reversedRegex,i,s,c,d);if(e)return this._toFoundBracket(o,e);u=!1}n=t,r=this.languageConfigurationService.getLanguageConfiguration(n).brackets,o=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew}const a=!!r&&!A(e.getStandardTokenType(l));if(a)u?c=e.getStartOffset(l):(c=e.getStartOffset(l),d=e.getEndOffset(l));else if(o&&r&&u&&c!==d){const e=G.findPrevBracketInRange(r.reversedRegex,i,s,c,d);if(e)return this._toFoundBracket(o,e)}u=a}if(o&&r&&u&&c!==d){const e=G.findPrevBracketInRange(r.reversedRegex,i,s,c,d);if(e)return this._toFoundBracket(o,e)}}return null}findNextBracket(e){const t=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getFirstBracketAfter(t)||null;const n=this.textModel.getLineCount();let r=null,o=null,i=null;for(let a=t.lineNumber;a<=n;a++){const e=this.textModel.tokenization.getLineTokens(a),n=e.getCount(),s=this.textModel.getLineContent(a);let l=0,c=0,d=0;if(a===t.lineNumber){l=e.findTokenIndexAtOffset(t.column-1),c=t.column-1,d=t.column-1;const n=e.getLanguageId(l);r!==n&&(r=n,o=this.languageConfigurationService.getLanguageConfiguration(r).brackets,i=this.languageConfigurationService.getLanguageConfiguration(r).bracketsNew)}let u=!0;for(;l<n;l++){const t=e.getLanguageId(l);if(r!==t){if(i&&o&&u&&c!==d){const e=G.findNextBracketInRange(o.forwardRegex,a,s,c,d);if(e)return this._toFoundBracket(i,e);u=!1}r=t,o=this.languageConfigurationService.getLanguageConfiguration(r).brackets,i=this.languageConfigurationService.getLanguageConfiguration(r).bracketsNew}const n=!!o&&!A(e.getStandardTokenType(l));if(n)u||(c=e.getStartOffset(l)),d=e.getEndOffset(l);else if(i&&o&&u&&c!==d){const e=G.findNextBracketInRange(o.forwardRegex,a,s,c,d);if(e)return this._toFoundBracket(i,e)}u=n}if(i&&o&&u&&c!==d){const e=G.findNextBracketInRange(o.forwardRegex,a,s,c,d);if(e)return this._toFoundBracket(i,e)}}return null}findEnclosingBrackets(e,t){const n=this.textModel.validatePosition(e);if(this.canBuildAST){const e=_.Q.fromPositions(n),t=this.getBracketPairsInRange(_.Q.fromPositions(n,n)).findLast((t=>void 0!==t.closingBracketRange&&t.range.strictContainsRange(e)));return t?[t.openingBracketRange,t.closingBracketRange]:null}const r=Tt(t),o=this.textModel.getLineCount(),i=new Map;let a=[];const s=(e,t)=>{if(!i.has(e)){const n=[];for(let e=0,r=t?t.brackets.length:0;e<r;e++)n[e]=0;i.set(e,n)}a=i.get(e)};let l=0;const c=(e,t,n,o,i)=>{for(;;){if(r&&++l%100===0&&!r())return xt.INSTANCE;const s=G.findNextBracketInRange(e.forwardRegex,t,n,o,i);if(!s)break;const c=n.substring(s.startColumn-1,s.endColumn-1).toLowerCase(),d=e.textIsBracket[c];if(d&&(d.isOpen(c)?a[d.index]++:d.isClose(c)&&a[d.index]--,-1===a[d.index]))return this._matchFoundBracket(s,d,!1,r);o=s.endColumn-1}return null};let d=null,u=null;for(let p=n.lineNumber;p<=o;p++){const e=this.textModel.tokenization.getLineTokens(p),t=e.getCount(),r=this.textModel.getLineContent(p);let o=0,i=0,a=0;if(p===n.lineNumber){o=e.findTokenIndexAtOffset(n.column-1),i=n.column-1,a=n.column-1;const t=e.getLanguageId(o);d!==t&&(d=t,u=this.languageConfigurationService.getLanguageConfiguration(d).brackets,s(d,u))}let l=!0;for(;o<t;o++){const t=e.getLanguageId(o);if(d!==t){if(u&&l&&i!==a){const e=c(u,p,r,i,a);if(e)return At(e);l=!1}d=t,u=this.languageConfigurationService.getLanguageConfiguration(d).brackets,s(d,u)}const n=!!u&&!A(e.getStandardTokenType(o));if(n)l||(i=e.getStartOffset(o)),a=e.getEndOffset(o);else if(u&&l&&i!==a){const e=c(u,p,r,i,a);if(e)return At(e)}l=n}if(u&&l&&i!==a){const e=c(u,p,r,i,a);if(e)return At(e)}}return null}_toFoundBracket(e,t){if(!t)return null;let n=this.textModel.getValueInRange(t);n=n.toLowerCase();const r=e.getBracketInfo(n);return r?{range:t,bracketInfo:r}:null}}function Tt(e){if("undefined"===typeof e)return()=>!0;{const t=Date.now();return()=>Date.now()-t<=e}}class xt{static{this.INSTANCE=new xt}constructor(){this._searchCanceledBrand=void 0}}function At(e){return e instanceof xt?null:e}var It=n(7119),Rt=n(5724);class Ct extends o.jG{constructor(e){super(),this.textModel=e,this.colorProvider=new Dt,this.onDidChangeEmitter=new r.vl,this.onDidChange=this.onDidChangeEmitter.event,this.colorizationOptions=e.getOptions().bracketPairColorizationOptions,this._register(e.bracketPairs.onDidChange((e=>{this.onDidChangeEmitter.fire()})))}handleDidChangeOptions(e){this.colorizationOptions=this.textModel.getOptions().bracketPairColorizationOptions}getDecorationsInRange(e,t,n,r){if(r)return[];if(void 0===t)return[];if(!this.colorizationOptions.enabled)return[];return this.textModel.bracketPairs.getBracketsInRange(e,!0).map((e=>({id:`bracket${e.range.toString()}-${e.nestingLevel}`,options:{description:"BracketPairColorization",inlineClassName:this.colorProvider.getInlineClassName(e,this.colorizationOptions.independentColorPoolPerBracketType)},ownerId:0,range:e.range}))).toArray()}getAllDecorations(e,t){return void 0===e?[]:this.colorizationOptions.enabled?this.getDecorationsInRange(new _.Q(1,1,this.textModel.getLineCount(),1),e,t):[]}}class Dt{constructor(){this.unexpectedClosingBracketClassName="unexpected-closing-bracket"}getInlineClassName(e,t){return e.isInvalid?this.unexpectedClosingBracketClassName:this.getInlineClassNameOfLevel(t?e.nestingLevelOfEqualBracketType:e.nestingLevel)}getInlineClassNameOfLevel(e){return"bracket-highlighting-"+e%30}}(0,Rt.zy)(((e,t)=>{const n=[It.sN,It.lQ,It.ss,It.l5,It.sH,It.zp],r=new Dt;t.addRule(`.monaco-editor .${r.unexpectedClosingBracketClassName} { color: ${e.getColor(It.s7)}; }`);const o=n.map((t=>e.getColor(t))).filter((e=>!!e)).filter((e=>!e.isTransparent()));for(let i=0;i<30;i++){const e=o[i%o.length];t.addRule(`.monaco-editor .${r.getInlineClassNameOfLevel(i)} { color: ${e}; }`)}}));var Nt=n(8209);function Mt(e){return e.replace(/\n/g,"\\n").replace(/\r/g,"\\r")}class Lt{get oldLength(){return this.oldText.length}get oldEnd(){return this.oldPosition+this.oldText.length}get newLength(){return this.newText.length}get newEnd(){return this.newPosition+this.newText.length}constructor(e,t,n,r){this.oldPosition=e,this.oldText=t,this.newPosition=n,this.newText=r}toString(){return 0===this.oldText.length?`(insert@${this.oldPosition} "${Mt(this.newText)}")`:0===this.newText.length?`(delete@${this.oldPosition} "${Mt(this.oldText)}")`:`(replace@${this.oldPosition} "${Mt(this.oldText)}" with "${Mt(this.newText)}")`}static _writeStringSize(e){return 4+2*e.length}static _writeString(e,t,n){const r=t.length;I.Sw(e,r,n),n+=4;for(let o=0;o<r;o++)I.gN(e,t.charCodeAt(o),n),n+=2;return n}static _readString(e,t){const n=I.bb(e,t);return L(e,t+=4,n)}writeSize(){return 8+Lt._writeStringSize(this.oldText)+Lt._writeStringSize(this.newText)}write(e,t){return I.Sw(e,this.oldPosition,t),t+=4,I.Sw(e,this.newPosition,t),t+=4,t=Lt._writeString(e,this.oldText,t),t=Lt._writeString(e,this.newText,t)}static read(e,t,n){const r=I.bb(e,t);t+=4;const o=I.bb(e,t);t+=4;const i=Lt._readString(e,t);t+=Lt._writeStringSize(i);const a=Lt._readString(e,t);return t+=Lt._writeStringSize(a),n.push(new Lt(r,i,o,a)),t}}class kt{constructor(e,t){this._prevEdits=e,this._currEdits=t,this._result=[],this._resultLen=0,this._prevLen=this._prevEdits.length,this._prevDeltaOffset=0,this._currLen=this._currEdits.length,this._currDeltaOffset=0}compress(){let e=0,t=0,n=this._getPrev(e),r=this._getCurr(t);for(;e<this._prevLen||t<this._currLen;){if(null===n){this._acceptCurr(r),r=this._getCurr(++t);continue}if(null===r){this._acceptPrev(n),n=this._getPrev(++e);continue}if(r.oldEnd<=n.newPosition){this._acceptCurr(r),r=this._getCurr(++t);continue}if(n.newEnd<=r.oldPosition){this._acceptPrev(n),n=this._getPrev(++e);continue}if(r.oldPosition<n.newPosition){const[e,t]=kt._splitCurr(r,n.newPosition-r.oldPosition);this._acceptCurr(e),r=t;continue}if(n.newPosition<r.oldPosition){const[e,t]=kt._splitPrev(n,r.oldPosition-n.newPosition);this._acceptPrev(e),n=t;continue}let o,i;if(r.oldEnd===n.newEnd)o=n,i=r,n=this._getPrev(++e),r=this._getCurr(++t);else if(r.oldEnd<n.newEnd){const[e,a]=kt._splitPrev(n,r.oldLength);o=e,i=r,n=a,r=this._getCurr(++t)}else{const[t,a]=kt._splitCurr(r,n.newLength);o=n,i=t,n=this._getPrev(++e),r=a}this._result[this._resultLen++]=new Lt(o.oldPosition,o.oldText,i.newPosition,i.newText),this._prevDeltaOffset+=o.newLength-o.oldLength,this._currDeltaOffset+=i.newLength-i.oldLength}const o=kt._merge(this._result);return kt._removeNoOps(o)}_acceptCurr(e){this._result[this._resultLen++]=kt._rebaseCurr(this._prevDeltaOffset,e),this._currDeltaOffset+=e.newLength-e.oldLength}_getCurr(e){return e<this._currLen?this._currEdits[e]:null}_acceptPrev(e){this._result[this._resultLen++]=kt._rebasePrev(this._currDeltaOffset,e),this._prevDeltaOffset+=e.newLength-e.oldLength}_getPrev(e){return e<this._prevLen?this._prevEdits[e]:null}static _rebaseCurr(e,t){return new Lt(t.oldPosition-e,t.oldText,t.newPosition,t.newText)}static _rebasePrev(e,t){return new Lt(t.oldPosition,t.oldText,t.newPosition+e,t.newText)}static _splitPrev(e,t){const n=e.newText.substr(0,t),r=e.newText.substr(t);return[new Lt(e.oldPosition,e.oldText,e.newPosition,n),new Lt(e.oldEnd,"",e.newPosition+t,r)]}static _splitCurr(e,t){const n=e.oldText.substr(0,t),r=e.oldText.substr(t);return[new Lt(e.oldPosition,n,e.newPosition,e.newText),new Lt(e.oldPosition+t,r,e.newEnd,"")]}static _merge(e){if(0===e.length)return e;const t=[];let n=0,r=e[0];for(let o=1;o<e.length;o++){const i=e[o];r.oldEnd===i.oldPosition?r=new Lt(r.oldPosition,r.oldText+i.oldText,r.newPosition,r.newText+i.newText):(t[n++]=r,r=i)}return t[n++]=r,t}static _removeNoOps(e){if(0===e.length)return e;const t=[];let n=0;for(let r=0;r<e.length;r++){const o=e[r];o.oldText!==o.newText&&(t[n++]=o)}return t}}var Pt=n(9403);function wt(e){return e.toString()}class Ot{static create(e,t){const n=e.getAlternativeVersionId(),r=zt(e);return new Ot(n,n,r,r,t,t,[])}constructor(e,t,n,r,o,i,a){this.beforeVersionId=e,this.afterVersionId=t,this.beforeEOL=n,this.afterEOL=r,this.beforeCursorState=o,this.afterCursorState=i,this.changes=a}append(e,t,n,r,o){var i,a;t.length>0&&(this.changes=(i=this.changes,a=t,null===i||0===i.length?a:new kt(i,a).compress())),this.afterEOL=n,this.afterVersionId=r,this.afterCursorState=o}static _writeSelectionsSize(e){return 4+16*(e?e.length:0)}static _writeSelections(e,t,n){if(I.Sw(e,t?t.length:0,n),n+=4,t)for(const r of t)I.Sw(e,r.selectionStartLineNumber,n),n+=4,I.Sw(e,r.selectionStartColumn,n),n+=4,I.Sw(e,r.positionLineNumber,n),n+=4,I.Sw(e,r.positionColumn,n),n+=4;return n}static _readSelections(e,t,n){const r=I.bb(e,t);t+=4;for(let o=0;o<r;o++){const r=I.bb(e,t);t+=4;const o=I.bb(e,t);t+=4;const i=I.bb(e,t);t+=4;const a=I.bb(e,t);t+=4,n.push(new h.L(r,o,i,a))}return t}serialize(){let e=10+Ot._writeSelectionsSize(this.beforeCursorState)+Ot._writeSelectionsSize(this.afterCursorState)+4;for(const r of this.changes)e+=r.writeSize();const t=new Uint8Array(e);let n=0;I.Sw(t,this.beforeVersionId,n),n+=4,I.Sw(t,this.afterVersionId,n),n+=4,I.Gs(t,this.beforeEOL,n),n+=1,I.Gs(t,this.afterEOL,n),n+=1,n=Ot._writeSelections(t,this.beforeCursorState,n),n=Ot._writeSelections(t,this.afterCursorState,n),I.Sw(t,this.changes.length,n),n+=4;for(const r of this.changes)n=r.write(t,n);return t.buffer}static deserialize(e){const t=new Uint8Array(e);let n=0;const r=I.bb(t,n);n+=4;const o=I.bb(t,n);n+=4;const i=I.pJ(t,n);n+=1;const a=I.pJ(t,n);n+=1;const s=[];n=Ot._readSelections(t,n,s);const l=[];n=Ot._readSelections(t,n,l);const c=I.bb(t,n);n+=4;const d=[];for(let u=0;u<c;u++)n=Lt.read(t,n,d);return new Ot(r,o,i,a,s,l,d)}}class Ft{get type(){return 0}get resource(){return d.r.isUri(this.model)?this.model:this.model.uri}constructor(e,t,n,r){this.label=e,this.code=t,this.model=n,this._data=Ot.create(n,r)}toString(){return(this._data instanceof Ot?this._data:Ot.deserialize(this._data)).changes.map((e=>e.toString())).join(", ")}matchesResource(e){return(d.r.isUri(this.model)?this.model:this.model.uri).toString()===e.toString()}setModel(e){this.model=e}canAppend(e){return this.model===e&&this._data instanceof Ot}append(e,t,n,r,o){this._data instanceof Ot&&this._data.append(e,t,n,r,o)}close(){this._data instanceof Ot&&(this._data=this._data.serialize())}open(){this._data instanceof Ot||(this._data=Ot.deserialize(this._data))}undo(){if(d.r.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof Ot&&(this._data=this._data.serialize());const e=Ot.deserialize(this._data);this.model._applyUndo(e.changes,e.beforeEOL,e.beforeVersionId,e.beforeCursorState)}redo(){if(d.r.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof Ot&&(this._data=this._data.serialize());const e=Ot.deserialize(this._data);this.model._applyRedo(e.changes,e.afterEOL,e.afterVersionId,e.afterCursorState)}heapSize(){return this._data instanceof Ot&&(this._data=this._data.serialize()),this._data.byteLength+168}}class Wt{get resources(){return this._editStackElementsArr.map((e=>e.resource))}constructor(e,t,n){this.label=e,this.code=t,this.type=1,this._isOpen=!0,this._editStackElementsArr=n.slice(0),this._editStackElementsMap=new Map;for(const r of this._editStackElementsArr){const e=wt(r.resource);this._editStackElementsMap.set(e,r)}this._delegate=null}prepareUndoRedo(){if(this._delegate)return this._delegate.prepareUndoRedo(this)}matchesResource(e){const t=wt(e);return this._editStackElementsMap.has(t)}setModel(e){const t=wt(d.r.isUri(e)?e:e.uri);this._editStackElementsMap.has(t)&&this._editStackElementsMap.get(t).setModel(e)}canAppend(e){if(!this._isOpen)return!1;const t=wt(e.uri);if(this._editStackElementsMap.has(t)){return this._editStackElementsMap.get(t).canAppend(e)}return!1}append(e,t,n,r,o){const i=wt(e.uri);this._editStackElementsMap.get(i).append(e,t,n,r,o)}close(){this._isOpen=!1}open(){}undo(){this._isOpen=!1;for(const e of this._editStackElementsArr)e.undo()}redo(){for(const e of this._editStackElementsArr)e.redo()}heapSize(e){const t=wt(e);if(this._editStackElementsMap.has(t)){return this._editStackElementsMap.get(t).heapSize()}return 0}split(){return this._editStackElementsArr}toString(){const e=[];for(const t of this._editStackElementsArr)e.push(`${(0,Pt.P8)(t.resource)}: ${t}`);return`{${e.join(", ")}}`}}function zt(e){return"\n"===e.getEOL()?0:1}function Bt(e){return!!e&&(e instanceof Ft||e instanceof Wt)}class Gt{constructor(e,t){this._model=e,this._undoRedoService=t}pushStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);Bt(e)&&e.close()}popStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);Bt(e)&&e.open()}clear(){this._undoRedoService.removeElements(this._model.uri)}_getOrCreateEditStackElement(e,t){const n=this._undoRedoService.getLastElement(this._model.uri);if(Bt(n)&&n.canAppend(this._model))return n;const r=new Ft(Nt.kg("edit","Typing"),"undoredo.textBufferEdit",this._model,e);return this._undoRedoService.pushElement(r,t),r}pushEOL(e){const t=this._getOrCreateEditStackElement(null,void 0);this._model.setEOL(e),t.append(this._model,[],zt(this._model),this._model.getAlternativeVersionId(),null)}pushEditOperation(e,t,n,r){const o=this._getOrCreateEditStackElement(e,r),i=this._model.applyEdits(t,!0),a=Gt._computeCursorState(n,i),s=i.map(((e,t)=>({index:t,textChange:e.textChange})));return s.sort(((e,t)=>e.textChange.oldPosition===t.textChange.oldPosition?e.index-t.index:e.textChange.oldPosition-t.textChange.oldPosition)),o.append(this._model,s.map((e=>e.textChange)),zt(this._model),this._model.getAlternativeVersionId(),a),a}static _computeCursorState(e,t){try{return e?e(t):null}catch(n){return(0,l.dz)(n),null}}}var jt,Vt=n(6041);class Ut extends o.jG{constructor(){super(...arguments),this._isDisposed=!1}dispose(){super.dispose(),this._isDisposed=!0}assertNotDisposed(){if(this._isDisposed)throw new Error("TextModelPart is disposed!")}}!function(e){e[e.Disabled=0]="Disabled",e[e.EnabledForActive=1]="EnabledForActive",e[e.Enabled=2]="Enabled"}(jt||(jt={}));class Ht{constructor(e,t,n,r,o,i){if(this.visibleColumn=e,this.column=t,this.className=n,this.horizontalLine=r,this.forWrappedLinesAfterColumn=o,this.forWrappedLinesBeforeOrAtColumn=i,-1!==e===(-1!==t))throw new Error}}class Kt{constructor(e,t){this.top=e,this.endColumn=t}}class qt extends Ut{constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t}getLanguageConfiguration(e){return this.languageConfigurationService.getLanguageConfiguration(e)}_computeIndentLevel(e){return function(e,t){let n=0,r=0;const o=e.length;for(;r<o;){const o=e.charCodeAt(r);if(32===o)n++;else{if(9!==o)break;n=n-n%t+t}r++}return r===o?-1:n}(this.textModel.getLineContent(e+1),this.textModel.getOptions().tabSize)}getActiveIndentGuide(e,t,n){this.assertNotDisposed();const r=this.textModel.getLineCount();if(e<1||e>r)throw new l.D7("Illegal value for lineNumber");const o=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,i=Boolean(o&&o.offSide);let a=-2,s=-1,c=-2,d=-1;const u=e=>{if(-1!==a&&(-2===a||a>e-1)){a=-1,s=-1;for(let t=e-2;t>=0;t--){const e=this._computeIndentLevel(t);if(e>=0){a=t,s=e;break}}}if(-2===c){c=-1,d=-1;for(let t=e;t<r;t++){const e=this._computeIndentLevel(t);if(e>=0){c=t,d=e;break}}}};let p=-2,f=-1,m=-2,_=-1;const h=e=>{if(-2===p){p=-1,f=-1;for(let t=e-2;t>=0;t--){const e=this._computeIndentLevel(t);if(e>=0){p=t,f=e;break}}}if(-1!==m&&(-2===m||m<e-1)){m=-1,_=-1;for(let t=e;t<r;t++){const e=this._computeIndentLevel(t);if(e>=0){m=t,_=e;break}}}};let g=0,y=!0,v=0,b=!0,E=0,S=0;for(let l=0;y||b;l++){const o=e-l,a=e+l;l>1&&(o<1||o<t)&&(y=!1),l>1&&(a>r||a>n)&&(b=!1),l>5e4&&(y=!1,b=!1);let m=-1;if(y&&o>=1){const e=this._computeIndentLevel(o-1);e>=0?(c=o-1,d=e,m=Math.ceil(e/this.textModel.getOptions().indentSize)):(u(o),m=this._getIndentLevelForWhitespaceLine(i,s,d))}let T=-1;if(b&&a<=r){const e=this._computeIndentLevel(a-1);e>=0?(p=a-1,f=e,T=Math.ceil(e/this.textModel.getOptions().indentSize)):(h(a),T=this._getIndentLevelForWhitespaceLine(i,f,_))}if(0!==l){if(1===l){if(a<=r&&T>=0&&S+1===T){y=!1,g=a,v=a,E=T;continue}if(o>=1&&m>=0&&m-1===S){b=!1,g=o,v=o,E=m;continue}if(g=e,v=e,E=S,0===E)return{startLineNumber:g,endLineNumber:v,indent:E}}y&&(m>=E?g=o:y=!1),b&&(T>=E?v=a:b=!1)}else S=m}return{startLineNumber:g,endLineNumber:v,indent:E}}getLinesBracketGuides(e,t,n,r){const o=[];for(let c=e;c<=t;c++)o.push([]);const i=!0,a=this.textModel.bracketPairs.getBracketPairsInRangeWithMinIndentation(new _.Q(e,1,t,this.textModel.getLineMaxColumn(t))).toArray();let s;if(n&&a.length>0){const r=(e<=n.lineNumber&&n.lineNumber<=t?a:this.textModel.bracketPairs.getBracketPairsInRange(_.Q.fromPositions(n)).toArray()).filter((e=>_.Q.strictContainsPosition(e.range,n)));s=(0,Vt.Uk)(r,(e=>i))?.range}const l=this.textModel.getOptions().bracketPairColorizationOptions.independentColorPoolPerBracketType,d=new Jt;for(const u of a){if(!u.closingBracketRange)continue;const n=s&&u.range.equalsRange(s);if(!n&&!r.includeInactive)continue;const i=d.getInlineClassName(u.nestingLevel,u.nestingLevelOfEqualBracketType,l)+(r.highlightActive&&n?" "+d.activeClassName:""),a=u.openingBracketRange.getStartPosition(),p=u.closingBracketRange.getStartPosition(),f=r.horizontalGuides===jt.Enabled||r.horizontalGuides===jt.EnabledForActive&&n;if(u.range.startLineNumber===u.range.endLineNumber){f&&o[u.range.startLineNumber-e].push(new Ht(-1,u.openingBracketRange.getEndPosition().column,i,new Kt(!1,p.column),-1,-1));continue}const m=this.getVisibleColumnFromPosition(p),_=this.getVisibleColumnFromPosition(u.openingBracketRange.getStartPosition()),h=Math.min(_,m,u.minVisibleColumnIndentation+1);let g=!1;c.HG(this.textModel.getLineContent(u.closingBracketRange.startLineNumber))<u.closingBracketRange.startColumn-1&&(g=!0);const y=Math.max(a.lineNumber,e),v=Math.min(p.lineNumber,t),b=g?1:0;for(let t=y;t<v+b;t++)o[t-e].push(new Ht(h,-1,i,null,t===a.lineNumber?a.column:-1,t===p.lineNumber?p.column:-1));f&&(a.lineNumber>=e&&_>h&&o[a.lineNumber-e].push(new Ht(h,-1,i,new Kt(!1,a.column),-1,-1)),p.lineNumber<=t&&m>h&&o[p.lineNumber-e].push(new Ht(h,-1,i,new Kt(!g,p.column),-1,-1)))}for(const c of o)c.sort(((e,t)=>e.visibleColumn-t.visibleColumn));return o}getVisibleColumnFromPosition(e){return p.visibleColumnFromColumn(this.textModel.getLineContent(e.lineNumber),e.column,this.textModel.getOptions().tabSize)+1}getLinesIndentGuides(e,t){this.assertNotDisposed();const n=this.textModel.getLineCount();if(e<1||e>n)throw new Error("Illegal value for startLineNumber");if(t<1||t>n)throw new Error("Illegal value for endLineNumber");const r=this.textModel.getOptions(),o=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,i=Boolean(o&&o.offSide),a=new Array(t-e+1);let s=-2,l=-1,c=-2,d=-1;for(let u=e;u<=t;u++){const t=u-e,o=this._computeIndentLevel(u-1);if(o>=0)s=u-1,l=o,a[t]=Math.ceil(o/r.indentSize);else{if(-2===s){s=-1,l=-1;for(let e=u-2;e>=0;e--){const t=this._computeIndentLevel(e);if(t>=0){s=e,l=t;break}}}if(-1!==c&&(-2===c||c<u-1)){c=-1,d=-1;for(let e=u;e<n;e++){const t=this._computeIndentLevel(e);if(t>=0){c=e,d=t;break}}}a[t]=this._getIndentLevelForWhitespaceLine(i,l,d)}}return a}_getIndentLevelForWhitespaceLine(e,t,n){const r=this.textModel.getOptions();return-1===t||-1===n?0:t<n?1+Math.floor(t/r.indentSize):t===n||e?Math.ceil(n/r.indentSize):1+Math.floor(n/r.indentSize)}}class Jt{constructor(){this.activeClassName="indent-active"}getInlineClassName(e,t,n){return this.getInlineClassNameOfLevel(n?t:e)}getInlineClassNameOfLevel(e){return"bracket-indent-guide lvl-"+e%30}}class Xt{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}}function $t(e,t,n,r,o){let i;for(o.spacesDiff=0,o.looksLikeAlignment=!1,i=0;i<t&&i<r;i++){if(e.charCodeAt(i)!==n.charCodeAt(i))break}let a=0,s=0;for(let p=i;p<t;p++){32===e.charCodeAt(p)?a++:s++}let l=0,c=0;for(let p=i;p<r;p++){32===n.charCodeAt(p)?l++:c++}if(a>0&&s>0)return;if(l>0&&c>0)return;const d=Math.abs(s-c),u=Math.abs(a-l);if(0===d)return o.spacesDiff=u,void(u>0&&0<=l-1&&l-1<e.length&&l<n.length&&32!==n.charCodeAt(l)&&32===e.charCodeAt(l-1)&&44===e.charCodeAt(e.length-1)&&(o.looksLikeAlignment=!0));u%d!==0||(o.spacesDiff=u/d)}function Yt(e,t,n){const r=Math.min(e.getLineCount(),1e4);let o=0,i=0,a="",s=0;const l=[2,4,6,8,3,5,7],c=[0,0,0,0,0,0,0,0,0],d=new Xt;for(let f=1;f<=r;f++){const r=e.getLineLength(f),l=e.getLineContent(f),u=r<=65536;let p=!1,m=0,_=0,h=0;for(let t=0,n=r;t<n;t++){const n=u?l.charCodeAt(t):e.getLineCharCode(f,t);if(9===n)h++;else{if(32!==n){p=!0,m=t;break}_++}}if(!p)continue;if(h>0?o++:_>1&&i++,$t(a,s,l,m,d),d.looksLikeAlignment&&(!n||t!==d.spacesDiff))continue;const g=d.spacesDiff;g<=8&&c[g]++,a=l,s=m}let u=n;o!==i&&(u=o<i);let p=t;if(u){let e=u?0:.1*r;l.forEach((t=>{const n=c[t];n>e&&(e=n,p=t)})),4===p&&c[4]>0&&c[2]>0&&c[2]>=c[4]/2&&(p=2)}return{insertSpaces:u,tabSize:p}}function Qt(e){return(1&e.metadata)>>>0}function Zt(e,t){e.metadata=254&e.metadata|t}function en(e){return(2&e.metadata)>>>1===1}function tn(e,t){e.metadata=253&e.metadata|(t?1:0)<<1}function nn(e){return(4&e.metadata)>>>2===1}function rn(e,t){e.metadata=251&e.metadata|(t?1:0)<<2}function on(e){return(64&e.metadata)>>>6===1}function an(e,t){e.metadata=191&e.metadata|(t?1:0)<<6}function sn(e,t){e.metadata=231&e.metadata|t<<3}function ln(e,t){e.metadata=223&e.metadata|(t?1:0)<<5}class cn{constructor(e,t,n){this.metadata=0,this.parent=this,this.left=this,this.right=this,Zt(this,1),this.start=t,this.end=n,this.delta=0,this.maxEnd=n,this.id=e,this.ownerId=0,this.options=null,rn(this,!1),an(this,!1),sn(this,1),ln(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=null,tn(this,!1)}reset(e,t,n,r){this.start=t,this.end=n,this.maxEnd=n,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=r}setOptions(e){this.options=e;const t=this.options.className;rn(this,"squiggly-error"===t||"squiggly-warning"===t||"squiggly-info"===t),an(this,null!==this.options.glyphMarginClassName),sn(this,this.options.stickiness),ln(this,this.options.collapseOnReplaceEdit)}setCachedOffsets(e,t,n){this.cachedVersionId!==n&&(this.range=null),this.cachedVersionId=n,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t}detach(){this.parent=null,this.left=null,this.right=null}}const dn=new cn(null,0,0);dn.parent=dn,dn.left=dn,dn.right=dn,Zt(dn,0);class un{constructor(){this.root=dn,this.requestNormalizeDelta=!1}intervalSearch(e,t,n,r,o,i){return this.root===dn?[]:function(e,t,n,r,o,i,a){let s=e.root,l=0,c=0,d=0,u=0;const p=[];let f=0;for(;s!==dn;)if(en(s))tn(s.left,!1),tn(s.right,!1),s===s.parent.right&&(l-=s.parent.delta),s=s.parent;else{if(!en(s.left)){if(c=l+s.maxEnd,c<t){tn(s,!0);continue}if(s.left!==dn){s=s.left;continue}}if(d=l+s.start,d>n)tn(s,!0);else{if(u=l+s.end,u>=t){s.setCachedOffsets(d,u,i);let e=!0;r&&s.ownerId&&s.ownerId!==r&&(e=!1),o&&nn(s)&&(e=!1),a&&!on(s)&&(e=!1),e&&(p[f++]=s)}tn(s,!0),s.right===dn||en(s.right)||(l+=s.delta,s=s.right)}}return tn(e.root,!1),p}(this,e,t,n,r,o,i)}search(e,t,n,r){return this.root===dn?[]:function(e,t,n,r,o){let i=e.root,a=0,s=0,l=0;const c=[];let d=0;for(;i!==dn;){if(en(i)){tn(i.left,!1),tn(i.right,!1),i===i.parent.right&&(a-=i.parent.delta),i=i.parent;continue}if(i.left!==dn&&!en(i.left)){i=i.left;continue}s=a+i.start,l=a+i.end,i.setCachedOffsets(s,l,r);let e=!0;t&&i.ownerId&&i.ownerId!==t&&(e=!1),n&&nn(i)&&(e=!1),o&&!on(i)&&(e=!1),e&&(c[d++]=i),tn(i,!0),i.right===dn||en(i.right)||(a+=i.delta,i=i.right)}return tn(e.root,!1),c}(this,e,t,n,r)}collectNodesFromOwner(e){return function(e,t){let n=e.root;const r=[];let o=0;for(;n!==dn;)en(n)?(tn(n.left,!1),tn(n.right,!1),n=n.parent):n.left===dn||en(n.left)?(n.ownerId===t&&(r[o++]=n),tn(n,!0),n.right===dn||en(n.right)||(n=n.right)):n=n.left;return tn(e.root,!1),r}(this,e)}collectNodesPostOrder(){return function(e){let t=e.root;const n=[];let r=0;for(;t!==dn;)en(t)?(tn(t.left,!1),tn(t.right,!1),t=t.parent):t.left===dn||en(t.left)?t.right===dn||en(t.right)?(n[r++]=t,tn(t,!0)):t=t.right:t=t.left;return tn(e.root,!1),n}(this)}insert(e){mn(this,e),this._normalizeDeltaIfNecessary()}delete(e){_n(this,e),this._normalizeDeltaIfNecessary()}resolveNode(e,t){const n=e;let r=0;for(;e!==this.root;)e===e.parent.right&&(r+=e.parent.delta),e=e.parent;const o=n.start+r,i=n.end+r;n.setCachedOffsets(o,i,t)}acceptReplace(e,t,n,r){const o=function(e,t,n){let r=e.root,o=0,i=0,a=0,s=0;const l=[];let c=0;for(;r!==dn;)if(en(r))tn(r.left,!1),tn(r.right,!1),r===r.parent.right&&(o-=r.parent.delta),r=r.parent;else{if(!en(r.left)){if(i=o+r.maxEnd,i<t){tn(r,!0);continue}if(r.left!==dn){r=r.left;continue}}a=o+r.start,a>n?tn(r,!0):(s=o+r.end,s>=t&&(r.setCachedOffsets(a,s,0),l[c++]=r),tn(r,!0),r.right===dn||en(r.right)||(o+=r.delta,r=r.right))}return tn(e.root,!1),l}(this,e,e+t);for(let i=0,a=o.length;i<a;i++){_n(this,o[i])}this._normalizeDeltaIfNecessary(),function(e,t,n,r){let o=e.root,i=0,a=0,s=0;const l=r-(n-t);for(;o!==dn;)if(en(o))tn(o.left,!1),tn(o.right,!1),o===o.parent.right&&(i-=o.parent.delta),bn(o),o=o.parent;else{if(!en(o.left)){if(a=i+o.maxEnd,a<t){tn(o,!0);continue}if(o.left!==dn){o=o.left;continue}}s=i+o.start,s>n?(o.start+=l,o.end+=l,o.delta+=l,(o.delta<-1073741824||o.delta>1073741824)&&(e.requestNormalizeDelta=!0),tn(o,!0)):(tn(o,!0),o.right===dn||en(o.right)||(i+=o.delta,o=o.right))}tn(e.root,!1)}(this,e,e+t,n),this._normalizeDeltaIfNecessary();for(let i=0,a=o.length;i<a;i++){const a=o[i];a.start=a.cachedAbsoluteStart,a.end=a.cachedAbsoluteEnd,fn(a,e,e+t,n,r),a.maxEnd=a.end,mn(this,a)}this._normalizeDeltaIfNecessary()}_normalizeDeltaIfNecessary(){this.requestNormalizeDelta&&(this.requestNormalizeDelta=!1,function(e){let t=e.root,n=0;for(;t!==dn;)t.left===dn||en(t.left)?t.right===dn||en(t.right)?(t.start=n+t.start,t.end=n+t.end,t.delta=0,bn(t),tn(t,!0),tn(t.left,!1),tn(t.right,!1),t===t.parent.right&&(n-=t.parent.delta),t=t.parent):(n+=t.delta,t=t.right):t=t.left;tn(e.root,!1)}(this))}}function pn(e,t,n,r){return e<n||!(e>n)&&(1!==r&&(2===r||t))}function fn(e,t,n,r,o){const i=function(e){return(24&e.metadata)>>>3}(e),a=0===i||2===i,s=1===i||2===i,l=n-t,c=r,d=Math.min(l,c),u=e.start;let p=!1;const f=e.end;let m=!1;t<=u&&f<=n&&function(e){return(32&e.metadata)>>>5===1}(e)&&(e.start=t,p=!0,e.end=t,m=!0);{const e=o?1:l>0?2:0;!p&&pn(u,a,t,e)&&(p=!0),!m&&pn(f,s,t,e)&&(m=!0)}if(d>0&&!o){const e=l>c?2:0;!p&&pn(u,a,t+d,e)&&(p=!0),!m&&pn(f,s,t+d,e)&&(m=!0)}{const r=o?1:0;!p&&pn(u,a,n,r)&&(e.start=t+c,p=!0),!m&&pn(f,s,n,r)&&(e.end=t+c,m=!0)}const _=c-l;p||(e.start=Math.max(0,u+_)),m||(e.end=Math.max(0,f+_)),e.start>e.end&&(e.end=e.start)}function mn(e,t){if(e.root===dn)return t.parent=dn,t.left=dn,t.right=dn,Zt(t,0),e.root=t,e.root;!function(e,t){let n=0,r=e.root;const o=t.start,i=t.end;for(;;){if(Sn(o,i,r.start+n,r.end+n)<0){if(r.left===dn){t.start-=n,t.end-=n,t.maxEnd-=n,r.left=t;break}r=r.left}else{if(r.right===dn){t.start-=n+r.delta,t.end-=n+r.delta,t.maxEnd-=n+r.delta,r.right=t;break}n+=r.delta,r=r.right}}t.parent=r,t.left=dn,t.right=dn,Zt(t,1)}(e,t),En(t.parent);let n=t;for(;n!==e.root&&1===Qt(n.parent);)if(n.parent===n.parent.parent.left){const t=n.parent.parent.right;1===Qt(t)?(Zt(n.parent,0),Zt(t,0),Zt(n.parent.parent,1),n=n.parent.parent):(n===n.parent.right&&(n=n.parent,gn(e,n)),Zt(n.parent,0),Zt(n.parent.parent,1),yn(e,n.parent.parent))}else{const t=n.parent.parent.left;1===Qt(t)?(Zt(n.parent,0),Zt(t,0),Zt(n.parent.parent,1),n=n.parent.parent):(n===n.parent.left&&(n=n.parent,yn(e,n)),Zt(n.parent,0),Zt(n.parent.parent,1),gn(e,n.parent.parent))}return Zt(e.root,0),t}function _n(e,t){let n,r;if(t.left===dn?(n=t.right,r=t,n.delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta):t.right===dn?(n=t.left,r=t):(r=function(e){for(;e.left!==dn;)e=e.left;return e}(t.right),n=r.right,n.start+=r.delta,n.end+=r.delta,n.delta+=r.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),r.start+=t.delta,r.end+=t.delta,r.delta=t.delta,(r.delta<-1073741824||r.delta>1073741824)&&(e.requestNormalizeDelta=!0)),r===e.root)return e.root=n,Zt(n,0),t.detach(),hn(),bn(n),void(e.root.parent=dn);const o=1===Qt(r);if(r===r.parent.left?r.parent.left=n:r.parent.right=n,r===t?n.parent=r.parent:(r.parent===t?n.parent=r:n.parent=r.parent,r.left=t.left,r.right=t.right,r.parent=t.parent,Zt(r,Qt(t)),t===e.root?e.root=r:t===t.parent.left?t.parent.left=r:t.parent.right=r,r.left!==dn&&(r.left.parent=r),r.right!==dn&&(r.right.parent=r)),t.detach(),o)return En(n.parent),r!==t&&(En(r),En(r.parent)),void hn();let i;for(En(n),En(n.parent),r!==t&&(En(r),En(r.parent));n!==e.root&&0===Qt(n);)n===n.parent.left?(i=n.parent.right,1===Qt(i)&&(Zt(i,0),Zt(n.parent,1),gn(e,n.parent),i=n.parent.right),0===Qt(i.left)&&0===Qt(i.right)?(Zt(i,1),n=n.parent):(0===Qt(i.right)&&(Zt(i.left,0),Zt(i,1),yn(e,i),i=n.parent.right),Zt(i,Qt(n.parent)),Zt(n.parent,0),Zt(i.right,0),gn(e,n.parent),n=e.root)):(i=n.parent.left,1===Qt(i)&&(Zt(i,0),Zt(n.parent,1),yn(e,n.parent),i=n.parent.left),0===Qt(i.left)&&0===Qt(i.right)?(Zt(i,1),n=n.parent):(0===Qt(i.left)&&(Zt(i.right,0),Zt(i,1),gn(e,i),i=n.parent.left),Zt(i,Qt(n.parent)),Zt(n.parent,0),Zt(i.left,0),yn(e,n.parent),n=e.root));Zt(n,0),hn()}function hn(){dn.parent=dn,dn.delta=0,dn.start=0,dn.end=0}function gn(e,t){const n=t.right;n.delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta,t.right=n.left,n.left!==dn&&(n.left.parent=t),n.parent=t.parent,t.parent===dn?e.root=n:t===t.parent.left?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n,bn(t),bn(n)}function yn(e,t){const n=t.left;t.delta-=n.delta,(t.delta<-1073741824||t.delta>1073741824)&&(e.requestNormalizeDelta=!0),t.start-=n.delta,t.end-=n.delta,t.left=n.right,n.right!==dn&&(n.right.parent=t),n.parent=t.parent,t.parent===dn?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n,bn(t),bn(n)}function vn(e){let t=e.end;if(e.left!==dn){const n=e.left.maxEnd;n>t&&(t=n)}if(e.right!==dn){const n=e.right.maxEnd+e.delta;n>t&&(t=n)}return t}function bn(e){e.maxEnd=vn(e)}function En(e){for(;e!==dn;){const t=vn(e);if(e.maxEnd===t)return;e.maxEnd=t,e=e.parent}}function Sn(e,t,n,r){return e===n?t-r:e-n}class Tn{constructor(e,t){this.piece=e,this.color=t,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}next(){if(this.right!==xn)return An(this.right);let e=this;for(;e.parent!==xn&&e.parent.left!==e;)e=e.parent;return e.parent===xn?xn:e.parent}prev(){if(this.left!==xn)return In(this.left);let e=this;for(;e.parent!==xn&&e.parent.right!==e;)e=e.parent;return e.parent===xn?xn:e.parent}detach(){this.parent=null,this.left=null,this.right=null}}const xn=new Tn(null,0);function An(e){for(;e.left!==xn;)e=e.left;return e}function In(e){for(;e.right!==xn;)e=e.right;return e}function Rn(e){return e===xn?0:e.size_left+e.piece.length+Rn(e.right)}function Cn(e){return e===xn?0:e.lf_left+e.piece.lineFeedCnt+Cn(e.right)}function Dn(){xn.parent=xn}function Nn(e,t){const n=t.right;n.size_left+=t.size_left+(t.piece?t.piece.length:0),n.lf_left+=t.lf_left+(t.piece?t.piece.lineFeedCnt:0),t.right=n.left,n.left!==xn&&(n.left.parent=t),n.parent=t.parent,t.parent===xn?e.root=n:t.parent.left===t?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n}function Mn(e,t){const n=t.left;t.left=n.right,n.right!==xn&&(n.right.parent=t),n.parent=t.parent,t.size_left-=n.size_left+(n.piece?n.piece.length:0),t.lf_left-=n.lf_left+(n.piece?n.piece.lineFeedCnt:0),t.parent===xn?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n}function Ln(e,t){let n,r;if(t.left===xn?(r=t,n=r.right):t.right===xn?(r=t,n=r.left):(r=An(t.right),n=r.right),r===e.root)return e.root=n,n.color=0,t.detach(),Dn(),void(e.root.parent=xn);const o=1===r.color;if(r===r.parent.left?r.parent.left=n:r.parent.right=n,r===t?(n.parent=r.parent,wn(e,n)):(r.parent===t?n.parent=r:n.parent=r.parent,wn(e,n),r.left=t.left,r.right=t.right,r.parent=t.parent,r.color=t.color,t===e.root?e.root=r:t===t.parent.left?t.parent.left=r:t.parent.right=r,r.left!==xn&&(r.left.parent=r),r.right!==xn&&(r.right.parent=r),r.size_left=t.size_left,r.lf_left=t.lf_left,wn(e,r)),t.detach(),n.parent.left===n){const t=Rn(n),r=Cn(n);if(t!==n.parent.size_left||r!==n.parent.lf_left){const o=t-n.parent.size_left,i=r-n.parent.lf_left;n.parent.size_left=t,n.parent.lf_left=r,Pn(e,n.parent,o,i)}}if(wn(e,n.parent),o)return void Dn();let i;for(;n!==e.root&&0===n.color;)n===n.parent.left?(i=n.parent.right,1===i.color&&(i.color=0,n.parent.color=1,Nn(e,n.parent),i=n.parent.right),0===i.left.color&&0===i.right.color?(i.color=1,n=n.parent):(0===i.right.color&&(i.left.color=0,i.color=1,Mn(e,i),i=n.parent.right),i.color=n.parent.color,n.parent.color=0,i.right.color=0,Nn(e,n.parent),n=e.root)):(i=n.parent.left,1===i.color&&(i.color=0,n.parent.color=1,Mn(e,n.parent),i=n.parent.left),0===i.left.color&&0===i.right.color?(i.color=1,n=n.parent):(0===i.left.color&&(i.right.color=0,i.color=1,Nn(e,i),i=n.parent.left),i.color=n.parent.color,n.parent.color=0,i.left.color=0,Mn(e,n.parent),n=e.root));n.color=0,Dn()}function kn(e,t){for(wn(e,t);t!==e.root&&1===t.parent.color;)if(t.parent===t.parent.parent.left){const n=t.parent.parent.right;1===n.color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.right&&Nn(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,Mn(e,t.parent.parent))}else{const n=t.parent.parent.left;1===n.color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.left&&Mn(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,Nn(e,t.parent.parent))}e.root.color=0}function Pn(e,t,n,r){for(;t!==e.root&&t!==xn;)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=r),t=t.parent}function wn(e,t){let n=0,r=0;if(t!==e.root){for(;t!==e.root&&t===t.parent.right;)t=t.parent;if(t!==e.root)for(n=Rn((t=t.parent).left)-t.size_left,r=Cn(t.left)-t.lf_left,t.size_left+=n,t.lf_left+=r;t!==e.root&&(0!==n||0!==r);)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=r),t=t.parent}}xn.parent=xn,xn.left=xn,xn.right=xn,xn.color=0;var On=n(7729);const Fn=65535;function Wn(e){let t;return t=e[e.length-1]<65536?new Uint16Array(e.length):new Uint32Array(e.length),t.set(e,0),t}class zn{constructor(e,t,n,r,o){this.lineStarts=e,this.cr=t,this.lf=n,this.crlf=r,this.isBasicASCII=o}}function Bn(e,t=!0){const n=[0];let r=1;for(let o=0,i=e.length;o<i;o++){const t=e.charCodeAt(o);13===t?o+1<i&&10===e.charCodeAt(o+1)?(n[r++]=o+2,o++):n[r++]=o+1:10===t&&(n[r++]=o+1)}return t?Wn(n):n}class Gn{constructor(e,t,n,r,o){this.bufferIndex=e,this.start=t,this.end=n,this.lineFeedCnt=r,this.length=o}}class jn{constructor(e,t){this.buffer=e,this.lineStarts=t}}class Vn{constructor(e,t){this._pieces=[],this._tree=e,this._BOM=t,this._index=0,e.root!==xn&&e.iterate(e.root,(e=>(e!==xn&&this._pieces.push(e.piece),!0)))}read(){return 0===this._pieces.length?0===this._index?(this._index++,this._BOM):null:this._index>this._pieces.length-1?null:0===this._index?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])}}class Un{constructor(e){this._limit=e,this._cache=[]}get(e){for(let t=this._cache.length-1;t>=0;t--){const n=this._cache[t];if(n.nodeStartOffset<=e&&n.nodeStartOffset+n.node.piece.length>=e)return n}return null}get2(e){for(let t=this._cache.length-1;t>=0;t--){const n=this._cache[t];if(n.nodeStartLineNumber&&n.nodeStartLineNumber<e&&n.nodeStartLineNumber+n.node.piece.lineFeedCnt>=e)return n}return null}set(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)}validate(e){let t=!1;const n=this._cache;for(let r=0;r<n.length;r++){const o=n[r];(null===o.node.parent||o.nodeStartOffset>=e)&&(n[r]=null,t=!0)}if(t){const e=[];for(const t of n)null!==t&&e.push(t);this._cache=e}}}class Hn{constructor(e,t,n){this.create(e,t,n)}create(e,t,n){this._buffers=[new jn("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=xn,this._lineCnt=1,this._length=0,this._EOL=t,this._EOLLength=t.length,this._EOLNormalized=n;let r=null;for(let o=0,i=e.length;o<i;o++)if(e[o].buffer.length>0){e[o].lineStarts||(e[o].lineStarts=Bn(e[o].buffer));const t=new Gn(o+1,{line:0,column:0},{line:e[o].lineStarts.length-1,column:e[o].buffer.length-e[o].lineStarts[e[o].lineStarts.length-1]},e[o].lineStarts.length-1,e[o].buffer.length);this._buffers.push(e[o]),r=this.rbInsertRight(r,t)}this._searchCache=new Un(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()}normalizeEOL(e){const t=Fn,n=t-Math.floor(21845),r=2*n;let o="",i=0;const a=[];if(this.iterate(this.root,(t=>{const s=this.getNodeContent(t),l=s.length;if(i<=n||i+l<r)return o+=s,i+=l,!0;const c=o.replace(/\r\n|\r|\n/g,e);return a.push(new jn(c,Bn(c))),o=s,i=l,!0})),i>0){const t=o.replace(/\r\n|\r|\n/g,e);a.push(new jn(t,Bn(t)))}this.create(a,e,!0)}getEOL(){return this._EOL}setEOL(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)}createSnapshot(e){return new Vn(this,e)}getOffsetAt(e,t){let n=0,r=this.root;for(;r!==xn;)if(r.left!==xn&&r.lf_left+1>=e)r=r.left;else{if(r.lf_left+r.piece.lineFeedCnt+1>=e){n+=r.size_left;return n+(this.getAccumulatedValue(r,e-r.lf_left-2)+t-1)}e-=r.lf_left+r.piece.lineFeedCnt,n+=r.size_left+r.piece.length,r=r.right}return n}getPositionAt(e){e=Math.floor(e),e=Math.max(0,e);let t=this.root,n=0;const r=e;for(;t!==xn;)if(0!==t.size_left&&t.size_left>=e)t=t.left;else{if(t.size_left+t.piece.length>=e){const o=this.getIndexOf(t,e-t.size_left);if(n+=t.lf_left+o.index,0===o.index){const e=r-this.getOffsetAt(n+1,1);return new m.y(n+1,e+1)}return new m.y(n+1,o.remainder+1)}if(e-=t.size_left+t.piece.length,n+=t.lf_left+t.piece.lineFeedCnt,t.right===xn){const t=r-e-this.getOffsetAt(n+1,1);return new m.y(n+1,t+1)}t=t.right}return new m.y(1,1)}getValueInRange(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";const n=this.nodeAt2(e.startLineNumber,e.startColumn),r=this.nodeAt2(e.endLineNumber,e.endColumn),o=this.getValueInRange2(n,r);return t?t===this._EOL&&this._EOLNormalized&&t===this.getEOL()&&this._EOLNormalized?o:o.replace(/\r\n|\r|\n/g,t):o}getValueInRange2(e,t){if(e.node===t.node){const n=e.node,r=this._buffers[n.piece.bufferIndex].buffer,o=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return r.substring(o+e.remainder,o+t.remainder)}let n=e.node;const r=this._buffers[n.piece.bufferIndex].buffer,o=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);let i=r.substring(o+e.remainder,o+n.piece.length);for(n=n.next();n!==xn;){const e=this._buffers[n.piece.bufferIndex].buffer,r=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);if(n===t.node){i+=e.substring(r,r+t.remainder);break}i+=e.substr(r,n.piece.length),n=n.next()}return i}getLinesContent(){const e=[];let t=0,n="",r=!1;return this.iterate(this.root,(o=>{if(o===xn)return!0;const i=o.piece;let a=i.length;if(0===a)return!0;const s=this._buffers[i.bufferIndex].buffer,l=this._buffers[i.bufferIndex].lineStarts,c=i.start.line,d=i.end.line;let u=l[c]+i.start.column;if(r&&(10===s.charCodeAt(u)&&(u++,a--),e[t++]=n,n="",r=!1,0===a))return!0;if(c===d)return this._EOLNormalized||13!==s.charCodeAt(u+a-1)?n+=s.substr(u,a):(r=!0,n+=s.substr(u,a-1)),!0;n+=this._EOLNormalized?s.substring(u,Math.max(u,l[c+1]-this._EOLLength)):s.substring(u,l[c+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=n;for(let r=c+1;r<d;r++)n=this._EOLNormalized?s.substring(l[r],l[r+1]-this._EOLLength):s.substring(l[r],l[r+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=n;return this._EOLNormalized||13!==s.charCodeAt(l[d]+i.end.column-1)?n=s.substr(l[d],i.end.column):(r=!0,0===i.end.column?t--:n=s.substr(l[d],i.end.column-1)),!0})),r&&(e[t++]=n,n=""),e[t++]=n,e}getLength(){return this._length}getLineCount(){return this._lineCnt}getLineContent(e){return this._lastVisitedLine.lineNumber===e||(this._lastVisitedLine.lineNumber=e,e===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(e):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(e,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(e).replace(/(\r\n|\r|\n)$/,"")),this._lastVisitedLine.value}_getCharCode(e){if(e.remainder===e.node.piece.length){const t=e.node.next();if(!t)return 0;const n=this._buffers[t.piece.bufferIndex],r=this.offsetInBuffer(t.piece.bufferIndex,t.piece.start);return n.buffer.charCodeAt(r)}{const t=this._buffers[e.node.piece.bufferIndex],n=this.offsetInBuffer(e.node.piece.bufferIndex,e.node.piece.start)+e.remainder;return t.buffer.charCodeAt(n)}}getLineCharCode(e,t){const n=this.nodeAt2(e,t+1);return this._getCharCode(n)}getLineLength(e){if(e===this.getLineCount()){const t=this.getOffsetAt(e,1);return this.getLength()-t}return this.getOffsetAt(e+1,1)-this.getOffsetAt(e,1)-this._EOLLength}findMatchesInNode(e,t,n,r,o,i,a,s,l,c,d){const u=this._buffers[e.piece.bufferIndex],p=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start),f=this.offsetInBuffer(e.piece.bufferIndex,o),m=this.offsetInBuffer(e.piece.bufferIndex,i);let h;const g={line:0,column:0};let y,v;t._wordSeparators?(y=u.buffer.substring(f,m),v=e=>e+f,t.reset(0)):(y=u.buffer,v=e=>e,t.reset(f));do{if(h=t.next(y),h){if(v(h.index)>=m)return c;this.positionInBuffer(e,v(h.index)-p,g);const t=this.getLineFeedCnt(e.piece.bufferIndex,o,g),i=g.line===o.line?g.column-o.column+r:g.column+1,a=i+h[0].length;if(d[c++]=(0,On.dr)(new _.Q(n+t,i,n+t,a),h,s),v(h.index)+h[0].length>=m)return c;if(c>=l)return c}}while(h);return c}findMatchesLineByLine(e,t,n,r){const o=[];let i=0;const a=new On.W5(t.wordSeparators,t.regex);let s=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===s)return[];const l=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===l)return[];let c=this.positionInBuffer(s.node,s.remainder);const d=this.positionInBuffer(l.node,l.remainder);if(s.node===l.node)return this.findMatchesInNode(s.node,a,e.startLineNumber,e.startColumn,c,d,t,n,r,i,o),o;let u=e.startLineNumber,p=s.node;for(;p!==l.node;){const l=this.getLineFeedCnt(p.piece.bufferIndex,c,p.piece.end);if(l>=1){const s=this._buffers[p.piece.bufferIndex].lineStarts,d=this.offsetInBuffer(p.piece.bufferIndex,p.piece.start),f=s[c.line+l],m=u===e.startLineNumber?e.startColumn:1;if(i=this.findMatchesInNode(p,a,u,m,c,this.positionInBuffer(p,f-d),t,n,r,i,o),i>=r)return o;u+=l}const d=u===e.startLineNumber?e.startColumn-1:0;if(u===e.endLineNumber){const s=this.getLineContent(u).substring(d,e.endColumn-1);return i=this._findMatchesInLine(t,a,s,e.endLineNumber,d,i,o,n,r),o}if(i=this._findMatchesInLine(t,a,this.getLineContent(u).substr(d),u,d,i,o,n,r),i>=r)return o;u++,s=this.nodeAt2(u,1),p=s.node,c=this.positionInBuffer(s.node,s.remainder)}if(u===e.endLineNumber){const s=u===e.startLineNumber?e.startColumn-1:0,l=this.getLineContent(u).substring(s,e.endColumn-1);return i=this._findMatchesInLine(t,a,l,e.endLineNumber,s,i,o,n,r),o}const f=u===e.startLineNumber?e.startColumn:1;return i=this.findMatchesInNode(l.node,a,u,f,c,d,t,n,r,i,o),o}_findMatchesInLine(e,t,n,r,o,i,a,s,l){const c=e.wordSeparators;if(!s&&e.simpleSearch){const t=e.simpleSearch,s=t.length,d=n.length;let u=-s;for(;-1!==(u=n.indexOf(t,u+s));)if((!c||(0,On.wC)(c,n,d,u,s))&&(a[i++]=new _e.Dg(new _.Q(r,u+1+o,r,u+1+s+o),null),i>=l))return i;return i}let d;t.reset(0);do{if(d=t.next(n),d&&(a[i++]=(0,On.dr)(new _.Q(r,d.index+1+o,r,d.index+1+d[0].length+o),d,s),i>=l))return i}while(d);return i}insert(e,t,n=!1){if(this._EOLNormalized=this._EOLNormalized&&n,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==xn){const{node:n,remainder:r,nodeStartOffset:o}=this.nodeAt(e),i=n.piece,a=i.bufferIndex,s=this.positionInBuffer(n,r);if(0===n.piece.bufferIndex&&i.end.line===this._lastChangeBufferPos.line&&i.end.column===this._lastChangeBufferPos.column&&o+i.length===e&&t.length<Fn)return this.appendToNode(n,t),void this.computeBufferMetadata();if(o===e)this.insertContentToNodeLeft(t,n),this._searchCache.validate(e);else if(o+n.piece.length>e){const e=[];let o=new Gn(i.bufferIndex,s,i.end,this.getLineFeedCnt(i.bufferIndex,s,i.end),this.offsetInBuffer(a,i.end)-this.offsetInBuffer(a,s));if(this.shouldCheckCRLF()&&this.endWithCR(t)){if(10===this.nodeCharCodeAt(n,r)){const e={line:o.start.line+1,column:0};o=new Gn(o.bufferIndex,e,o.end,this.getLineFeedCnt(o.bufferIndex,e,o.end),o.length-1),t+="\n"}}if(this.shouldCheckCRLF()&&this.startWithLF(t)){if(13===this.nodeCharCodeAt(n,r-1)){const o=this.positionInBuffer(n,r-1);this.deleteNodeTail(n,o),t="\r"+t,0===n.piece.length&&e.push(n)}else this.deleteNodeTail(n,s)}else this.deleteNodeTail(n,s);const l=this.createNewPieces(t);o.length>0&&this.rbInsertRight(n,o);let c=n;for(let t=0;t<l.length;t++)c=this.rbInsertRight(c,l[t]);this.deleteNodes(e)}else this.insertContentToNodeRight(t,n)}else{const e=this.createNewPieces(t);let n=this.rbInsertLeft(null,e[0]);for(let t=1;t<e.length;t++)n=this.rbInsertRight(n,e[t])}this.computeBufferMetadata()}delete(e,t){if(this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",t<=0||this.root===xn)return;const n=this.nodeAt(e),r=this.nodeAt(e+t),o=n.node,i=r.node;if(o===i){const i=this.positionInBuffer(o,n.remainder),a=this.positionInBuffer(o,r.remainder);if(n.nodeStartOffset===e){if(t===o.piece.length){const e=o.next();return Ln(this,o),this.validateCRLFWithPrevNode(e),void this.computeBufferMetadata()}return this.deleteNodeHead(o,a),this._searchCache.validate(e),this.validateCRLFWithPrevNode(o),void this.computeBufferMetadata()}return n.nodeStartOffset+o.piece.length===e+t?(this.deleteNodeTail(o,i),this.validateCRLFWithNextNode(o),void this.computeBufferMetadata()):(this.shrinkNode(o,i,a),void this.computeBufferMetadata())}const a=[],s=this.positionInBuffer(o,n.remainder);this.deleteNodeTail(o,s),this._searchCache.validate(e),0===o.piece.length&&a.push(o);const l=this.positionInBuffer(i,r.remainder);this.deleteNodeHead(i,l),0===i.piece.length&&a.push(i);for(let d=o.next();d!==xn&&d!==i;d=d.next())a.push(d);const c=0===o.piece.length?o.prev():o;this.deleteNodes(a),this.validateCRLFWithNextNode(c),this.computeBufferMetadata()}insertContentToNodeLeft(e,t){const n=[];if(this.shouldCheckCRLF()&&this.endWithCR(e)&&this.startWithLF(t)){const r=t.piece,o={line:r.start.line+1,column:0},i=new Gn(r.bufferIndex,o,r.end,this.getLineFeedCnt(r.bufferIndex,o,r.end),r.length-1);t.piece=i,e+="\n",Pn(this,t,-1,-1),0===t.piece.length&&n.push(t)}const r=this.createNewPieces(e);let o=this.rbInsertLeft(t,r[r.length-1]);for(let i=r.length-2;i>=0;i--)o=this.rbInsertLeft(o,r[i]);this.validateCRLFWithPrevNode(o),this.deleteNodes(n)}insertContentToNodeRight(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+="\n");const n=this.createNewPieces(e),r=this.rbInsertRight(t,n[0]);let o=r;for(let i=1;i<n.length;i++)o=this.rbInsertRight(o,n[i]);this.validateCRLFWithPrevNode(r)}positionInBuffer(e,t,n){const r=e.piece,o=e.piece.bufferIndex,i=this._buffers[o].lineStarts,a=i[r.start.line]+r.start.column+t;let s=r.start.line,l=r.end.line,c=0,d=0,u=0;for(;s<=l&&(c=s+(l-s)/2|0,u=i[c],c!==l);)if(d=i[c+1],a<u)l=c-1;else{if(!(a>=d))break;s=c+1}return n?(n.line=c,n.column=a-u,null):{line:c,column:a-u}}getLineFeedCnt(e,t,n){if(0===n.column)return n.line-t.line;const r=this._buffers[e].lineStarts;if(n.line===r.length-1)return n.line-t.line;const o=r[n.line+1],i=r[n.line]+n.column;if(o>i+1)return n.line-t.line;const a=i-1;return 13===this._buffers[e].buffer.charCodeAt(a)?n.line-t.line+1:n.line-t.line}offsetInBuffer(e,t){return this._buffers[e].lineStarts[t.line]+t.column}deleteNodes(e){for(let t=0;t<e.length;t++)Ln(this,e[t])}createNewPieces(e){if(e.length>Fn){const t=[];for(;e.length>Fn;){const n=e.charCodeAt(65534);let r;13===n||n>=55296&&n<=56319?(r=e.substring(0,65534),e=e.substring(65534)):(r=e.substring(0,Fn),e=e.substring(Fn));const o=Bn(r);t.push(new Gn(this._buffers.length,{line:0,column:0},{line:o.length-1,column:r.length-o[o.length-1]},o.length-1,r.length)),this._buffers.push(new jn(r,o))}const n=Bn(e);return t.push(new Gn(this._buffers.length,{line:0,column:0},{line:n.length-1,column:e.length-n[n.length-1]},n.length-1,e.length)),this._buffers.push(new jn(e,n)),t}let t=this._buffers[0].buffer.length;const n=Bn(e,!1);let r=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===t&&0!==t&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},r=this._lastChangeBufferPos;for(let e=0;e<n.length;e++)n[e]+=t+1;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(n.slice(1)),this._buffers[0].buffer+="_"+e,t+=1}else{if(0!==t)for(let e=0;e<n.length;e++)n[e]+=t;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(n.slice(1)),this._buffers[0].buffer+=e}const o=this._buffers[0].buffer.length,i=this._buffers[0].lineStarts.length-1,a={line:i,column:o-this._buffers[0].lineStarts[i]},s=new Gn(0,r,a,this.getLineFeedCnt(0,r,a),o-t);return this._lastChangeBufferPos=a,[s]}getLineRawContent(e,t=0){let n=this.root,r="";const o=this._searchCache.get2(e);if(o){n=o.node;const i=this.getAccumulatedValue(n,e-o.nodeStartLineNumber-1),a=this._buffers[n.piece.bufferIndex].buffer,s=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);if(o.nodeStartLineNumber+n.piece.lineFeedCnt!==e){const r=this.getAccumulatedValue(n,e-o.nodeStartLineNumber);return a.substring(s+i,s+r-t)}r=a.substring(s+i,s+n.piece.length)}else{let o=0;const i=e;for(;n!==xn;)if(n.left!==xn&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){const r=this.getAccumulatedValue(n,e-n.lf_left-2),a=this.getAccumulatedValue(n,e-n.lf_left-1),s=this._buffers[n.piece.bufferIndex].buffer,l=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return o+=n.size_left,this._searchCache.set({node:n,nodeStartOffset:o,nodeStartLineNumber:i-(e-1-n.lf_left)}),s.substring(l+r,l+a-t)}if(n.lf_left+n.piece.lineFeedCnt===e-1){const t=this.getAccumulatedValue(n,e-n.lf_left-2),o=this._buffers[n.piece.bufferIndex].buffer,i=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);r=o.substring(i+t,i+n.piece.length);break}e-=n.lf_left+n.piece.lineFeedCnt,o+=n.size_left+n.piece.length,n=n.right}}for(n=n.next();n!==xn;){const e=this._buffers[n.piece.bufferIndex].buffer;if(n.piece.lineFeedCnt>0){const o=this.getAccumulatedValue(n,0),i=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return r+=e.substring(i,i+o-t),r}{const t=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);r+=e.substr(t,n.piece.length)}n=n.next()}return r}computeBufferMetadata(){let e=this.root,t=1,n=0;for(;e!==xn;)t+=e.lf_left+e.piece.lineFeedCnt,n+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=n,this._searchCache.validate(this._length)}getIndexOf(e,t){const n=e.piece,r=this.positionInBuffer(e,t),o=r.line-n.start.line;if(this.offsetInBuffer(n.bufferIndex,n.end)-this.offsetInBuffer(n.bufferIndex,n.start)===t){const t=this.getLineFeedCnt(e.piece.bufferIndex,n.start,r);if(t!==o)return{index:t,remainder:0}}return{index:o,remainder:r.column}}getAccumulatedValue(e,t){if(t<0)return 0;const n=e.piece,r=this._buffers[n.bufferIndex].lineStarts,o=n.start.line+t+1;return o>n.end.line?r[n.end.line]+n.end.column-r[n.start.line]-n.start.column:r[o]-r[n.start.line]-n.start.column}deleteNodeTail(e,t){const n=e.piece,r=n.lineFeedCnt,o=this.offsetInBuffer(n.bufferIndex,n.end),i=t,a=this.offsetInBuffer(n.bufferIndex,i),s=this.getLineFeedCnt(n.bufferIndex,n.start,i),l=s-r,c=a-o,d=n.length+c;e.piece=new Gn(n.bufferIndex,n.start,i,s,d),Pn(this,e,c,l)}deleteNodeHead(e,t){const n=e.piece,r=n.lineFeedCnt,o=this.offsetInBuffer(n.bufferIndex,n.start),i=t,a=this.getLineFeedCnt(n.bufferIndex,i,n.end),s=a-r,l=o-this.offsetInBuffer(n.bufferIndex,i),c=n.length+l;e.piece=new Gn(n.bufferIndex,i,n.end,a,c),Pn(this,e,l,s)}shrinkNode(e,t,n){const r=e.piece,o=r.start,i=r.end,a=r.length,s=r.lineFeedCnt,l=t,c=this.getLineFeedCnt(r.bufferIndex,r.start,l),d=this.offsetInBuffer(r.bufferIndex,t)-this.offsetInBuffer(r.bufferIndex,o);e.piece=new Gn(r.bufferIndex,r.start,l,c,d),Pn(this,e,d-a,c-s);const u=new Gn(r.bufferIndex,n,i,this.getLineFeedCnt(r.bufferIndex,n,i),this.offsetInBuffer(r.bufferIndex,i)-this.offsetInBuffer(r.bufferIndex,n)),p=this.rbInsertRight(e,u);this.validateCRLFWithPrevNode(p)}appendToNode(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+="\n");const n=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),r=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;const o=Bn(t,!1);for(let u=0;u<o.length;u++)o[u]+=r;if(n){const e=this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-2];this._buffers[0].lineStarts.pop(),this._lastChangeBufferPos={line:this._lastChangeBufferPos.line-1,column:r-e}}this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(o.slice(1));const i=this._buffers[0].lineStarts.length-1,a={line:i,column:this._buffers[0].buffer.length-this._buffers[0].lineStarts[i]},s=e.piece.length+t.length,l=e.piece.lineFeedCnt,c=this.getLineFeedCnt(0,e.piece.start,a),d=c-l;e.piece=new Gn(e.piece.bufferIndex,e.piece.start,a,c,s),this._lastChangeBufferPos=a,Pn(this,e,t.length,d)}nodeAt(e){let t=this.root;const n=this._searchCache.get(e);if(n)return{node:n.node,nodeStartOffset:n.nodeStartOffset,remainder:e-n.nodeStartOffset};let r=0;for(;t!==xn;)if(t.size_left>e)t=t.left;else{if(t.size_left+t.piece.length>=e){r+=t.size_left;const n={node:t,remainder:e-t.size_left,nodeStartOffset:r};return this._searchCache.set(n),n}e-=t.size_left+t.piece.length,r+=t.size_left+t.piece.length,t=t.right}return null}nodeAt2(e,t){let n=this.root,r=0;for(;n!==xn;)if(n.left!==xn&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){const o=this.getAccumulatedValue(n,e-n.lf_left-2),i=this.getAccumulatedValue(n,e-n.lf_left-1);return r+=n.size_left,{node:n,remainder:Math.min(o+t-1,i),nodeStartOffset:r}}if(n.lf_left+n.piece.lineFeedCnt===e-1){const o=this.getAccumulatedValue(n,e-n.lf_left-2);if(o+t-1<=n.piece.length)return{node:n,remainder:o+t-1,nodeStartOffset:r};t-=n.piece.length-o;break}e-=n.lf_left+n.piece.lineFeedCnt,r+=n.size_left+n.piece.length,n=n.right}for(n=n.next();n!==xn;){if(n.piece.lineFeedCnt>0){const e=this.getAccumulatedValue(n,0),r=this.offsetOfNode(n);return{node:n,remainder:Math.min(t-1,e),nodeStartOffset:r}}if(n.piece.length>=t-1){return{node:n,remainder:t-1,nodeStartOffset:this.offsetOfNode(n)}}t-=n.piece.length,n=n.next()}return null}nodeCharCodeAt(e,t){if(e.piece.lineFeedCnt<1)return-1;const n=this._buffers[e.piece.bufferIndex],r=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return n.buffer.charCodeAt(r)}offsetOfNode(e){if(!e)return 0;let t=e.size_left;for(;e!==this.root;)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t}shouldCheckCRLF(){return!(this._EOLNormalized&&"\n"===this._EOL)}startWithLF(e){if("string"===typeof e)return 10===e.charCodeAt(0);if(e===xn||0===e.piece.lineFeedCnt)return!1;const t=e.piece,n=this._buffers[t.bufferIndex].lineStarts,r=t.start.line,o=n[r]+t.start.column;if(r===n.length-1)return!1;return!(n[r+1]>o+1)&&10===this._buffers[t.bufferIndex].buffer.charCodeAt(o)}endWithCR(e){return"string"===typeof e?13===e.charCodeAt(e.length-1):e!==xn&&0!==e.piece.lineFeedCnt&&13===this.nodeCharCodeAt(e,e.piece.length-1)}validateCRLFWithPrevNode(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){const t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}}validateCRLFWithNextNode(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}}fixCRLF(e,t){const n=[],r=this._buffers[e.piece.bufferIndex].lineStarts;let o;o=0===e.piece.end.column?{line:e.piece.end.line-1,column:r[e.piece.end.line]-r[e.piece.end.line-1]-1}:{line:e.piece.end.line,column:e.piece.end.column-1};const i=e.piece.length-1,a=e.piece.lineFeedCnt-1;e.piece=new Gn(e.piece.bufferIndex,e.piece.start,o,a,i),Pn(this,e,-1,-1),0===e.piece.length&&n.push(e);const s={line:t.piece.start.line+1,column:0},l=t.piece.length-1,c=this.getLineFeedCnt(t.piece.bufferIndex,s,t.piece.end);t.piece=new Gn(t.piece.bufferIndex,s,t.piece.end,c,l),Pn(this,t,-1,-1),0===t.piece.length&&n.push(t);const d=this.createNewPieces("\r\n");this.rbInsertRight(e,d[0]);for(let u=0;u<n.length;u++)Ln(this,n[u])}adjustCarriageReturnFromNext(e,t){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const n=t.next();if(this.startWithLF(n)){if(e+="\n",1===n.piece.length)Ln(this,n);else{const e=n.piece,t={line:e.start.line+1,column:0},r=e.length-1,o=this.getLineFeedCnt(e.bufferIndex,t,e.end);n.piece=new Gn(e.bufferIndex,t,e.end,o,r),Pn(this,n,-1,-1)}return!0}}return!1}iterate(e,t){if(e===xn)return t(xn);const n=this.iterate(e.left,t);return n?t(e)&&this.iterate(e.right,t):n}getNodeContent(e){if(e===xn)return"";const t=this._buffers[e.piece.bufferIndex],n=e.piece,r=this.offsetInBuffer(n.bufferIndex,n.start),o=this.offsetInBuffer(n.bufferIndex,n.end);return t.buffer.substring(r,o)}getPieceContent(e){const t=this._buffers[e.bufferIndex],n=this.offsetInBuffer(e.bufferIndex,e.start),r=this.offsetInBuffer(e.bufferIndex,e.end);return t.buffer.substring(n,r)}rbInsertRight(e,t){const n=new Tn(t,1);n.left=xn,n.right=xn,n.parent=xn,n.size_left=0,n.lf_left=0;if(this.root===xn)this.root=n,n.color=0;else if(e.right===xn)e.right=n,n.parent=e;else{const t=An(e.right);t.left=n,n.parent=t}return kn(this,n),n}rbInsertLeft(e,t){const n=new Tn(t,1);if(n.left=xn,n.right=xn,n.parent=xn,n.size_left=0,n.lf_left=0,this.root===xn)this.root=n,n.color=0;else if(e.left===xn)e.left=n,n.parent=e;else{const t=In(e.left);t.right=n,n.parent=t}return kn(this,n),n}}class Kn extends o.jG{constructor(e,t,n,o,i,a,s){super(),this._onDidChangeContent=this._register(new r.vl),this._BOM=t,this._mightContainNonBasicASCII=!a,this._mightContainRTL=o,this._mightContainUnusualLineTerminators=i,this._pieceTree=new Hn(e,n,s)}mightContainRTL(){return this._mightContainRTL}mightContainUnusualLineTerminators(){return this._mightContainUnusualLineTerminators}resetMightContainUnusualLineTerminators(){this._mightContainUnusualLineTerminators=!1}mightContainNonBasicASCII(){return this._mightContainNonBasicASCII}getBOM(){return this._BOM}getEOL(){return this._pieceTree.getEOL()}createSnapshot(e){return this._pieceTree.createSnapshot(e?this._BOM:"")}getOffsetAt(e,t){return this._pieceTree.getOffsetAt(e,t)}getPositionAt(e){return this._pieceTree.getPositionAt(e)}getRangeAt(e,t){const n=e+t,r=this.getPositionAt(e),o=this.getPositionAt(n);return new _.Q(r.lineNumber,r.column,o.lineNumber,o.column)}getValueInRange(e,t=0){if(e.isEmpty())return"";const n=this._getEndOfLine(t);return this._pieceTree.getValueInRange(e,n)}getValueLengthInRange(e,t=0){if(e.isEmpty())return 0;if(e.startLineNumber===e.endLineNumber)return e.endColumn-e.startColumn;const n=this.getOffsetAt(e.startLineNumber,e.startColumn),r=this.getOffsetAt(e.endLineNumber,e.endColumn);let o=0;const i=this._getEndOfLine(t),a=this.getEOL();if(i.length!==a.length){o=(i.length-a.length)*(e.endLineNumber-e.startLineNumber)}return r-n+o}getCharacterCountInRange(e,t=0){if(this._mightContainNonBasicASCII){let n=0;const r=e.startLineNumber,o=e.endLineNumber;for(let t=r;t<=o;t++){const i=this.getLineContent(t),a=t===r?e.startColumn-1:0,s=t===o?e.endColumn-1:i.length;for(let e=a;e<s;e++)c.pc(i.charCodeAt(e))?(n+=1,e+=1):n+=1}return n+=this._getEndOfLine(t).length*(o-r),n}return this.getValueLengthInRange(e,t)}getLength(){return this._pieceTree.getLength()}getLineCount(){return this._pieceTree.getLineCount()}getLinesContent(){return this._pieceTree.getLinesContent()}getLineContent(e){return this._pieceTree.getLineContent(e)}getLineCharCode(e,t){return this._pieceTree.getLineCharCode(e,t)}getLineLength(e){return this._pieceTree.getLineLength(e)}getLineFirstNonWhitespaceColumn(e){const t=c.HG(this.getLineContent(e));return-1===t?0:t+1}getLineLastNonWhitespaceColumn(e){const t=c.lT(this.getLineContent(e));return-1===t?0:t+2}_getEndOfLine(e){switch(e){case 1:return"\n";case 2:return"\r\n";case 0:return this.getEOL();default:throw new Error("Unknown EOL preference")}}setEOL(e){this._pieceTree.setEOL(e)}applyEdits(e,t,n){let r=this._mightContainRTL,o=this._mightContainUnusualLineTerminators,i=this._mightContainNonBasicASCII,a=!0,s=[];for(let h=0;h<e.length;h++){const t=e[h];a&&t._isTracked&&(a=!1);const n=t.range;if(t.text){let e=!0;i||(e=!c.aC(t.text),i=e),!r&&e&&(r=c.E_(t.text)),!o&&e&&(o=c.$X(t.text))}let l="",d=0,p=0,f=0;if(t.text){let e;[d,p,f,e]=(0,u.W)(t.text);const n=this.getEOL();l=0===e||e===("\r\n"===n?2:1)?t.text:t.text.replace(/\r\n|\r|\n/g,n)}s[h]={sortIndex:h,identifier:t.identifier||null,range:n,rangeOffset:this.getOffsetAt(n.startLineNumber,n.startColumn),rangeLength:this.getValueLengthInRange(n),text:l,eolCount:d,firstLineLength:p,lastLineLength:f,forceMoveMarkers:Boolean(t.forceMoveMarkers),isAutoWhitespaceEdit:t.isAutoWhitespaceEdit||!1}}s.sort(Kn._sortOpsAscending);let l=!1;for(let c=0,u=s.length-1;c<u;c++){const e=s[c].range.getEndPosition(),t=s[c+1].range.getStartPosition();if(t.isBeforeOrEqual(e)){if(t.isBefore(e))throw new Error("Overlapping ranges are not allowed!");l=!0}}a&&(s=this._reduceOperations(s));const d=n||t?Kn._getInverseEditRanges(s):[],p=[];if(t)for(let u=0;u<s.length;u++){const e=s[u],t=d[u];if(e.isAutoWhitespaceEdit&&e.range.isEmpty())for(let n=t.startLineNumber;n<=t.endLineNumber;n++){let r="";n===t.startLineNumber&&(r=this.getLineContent(e.range.startLineNumber),-1!==c.HG(r))||p.push({lineNumber:n,oldContent:r})}}let f=null;if(n){let e=0;f=[];for(let t=0;t<s.length;t++){const n=s[t],r=d[t],o=this.getValueInRange(n.range),i=n.rangeOffset+e;e+=n.text.length-o.length,f[t]={sortIndex:n.sortIndex,identifier:n.identifier,range:r,text:o,textChange:new Lt(n.rangeOffset,o,i,n.text)}}l||f.sort(((e,t)=>e.sortIndex-t.sortIndex))}this._mightContainRTL=r,this._mightContainUnusualLineTerminators=o,this._mightContainNonBasicASCII=i;const m=this._doApplyEdits(s);let _=null;if(t&&p.length>0){p.sort(((e,t)=>t.lineNumber-e.lineNumber)),_=[];for(let e=0,t=p.length;e<t;e++){const t=p[e].lineNumber;if(e>0&&p[e-1].lineNumber===t)continue;const n=p[e].oldContent,r=this.getLineContent(t);0!==r.length&&r!==n&&-1===c.HG(r)&&_.push(t)}}return this._onDidChangeContent.fire(),new _e.F4(f,m,_)}_reduceOperations(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]}_toSingleEditOperation(e){let t=!1;const n=e[0].range,r=e[e.length-1].range,o=new _.Q(n.startLineNumber,n.startColumn,r.endLineNumber,r.endColumn);let i=n.startLineNumber,a=n.startColumn;const s=[];for(let u=0,f=e.length;u<f;u++){const n=e[u],r=n.range;t=t||n.forceMoveMarkers,s.push(this.getValueInRange(new _.Q(i,a,r.startLineNumber,r.startColumn))),n.text.length>0&&s.push(n.text),i=r.endLineNumber,a=r.endColumn}const l=s.join(""),[c,d,p]=(0,u.W)(l);return{sortIndex:0,identifier:e[0].identifier,range:o,rangeOffset:this.getOffsetAt(o.startLineNumber,o.startColumn),rangeLength:this.getValueLengthInRange(o,0),text:l,eolCount:c,firstLineLength:d,lastLineLength:p,forceMoveMarkers:t,isAutoWhitespaceEdit:!1}}_doApplyEdits(e){e.sort(Kn._sortOpsDescending);const t=[];for(let n=0;n<e.length;n++){const r=e[n],o=r.range.startLineNumber,i=r.range.startColumn,a=r.range.endLineNumber,s=r.range.endColumn;if(o===a&&i===s&&0===r.text.length)continue;r.text?(this._pieceTree.delete(r.rangeOffset,r.rangeLength),this._pieceTree.insert(r.rangeOffset,r.text,!0)):this._pieceTree.delete(r.rangeOffset,r.rangeLength);const l=new _.Q(o,i,a,s);t.push({range:l,rangeLength:r.rangeLength,text:r.text,rangeOffset:r.rangeOffset,forceMoveMarkers:r.forceMoveMarkers})}return t}findMatchesLineByLine(e,t,n,r){return this._pieceTree.findMatchesLineByLine(e,t,n,r)}static _getInverseEditRanges(e){const t=[];let n=0,r=0,o=null;for(let i=0,a=e.length;i<a;i++){const a=e[i];let s,l,c;if(o?o.range.endLineNumber===a.range.startLineNumber?(s=n,l=r+(a.range.startColumn-o.range.endColumn)):(s=n+(a.range.startLineNumber-o.range.endLineNumber),l=a.range.startColumn):(s=a.range.startLineNumber,l=a.range.startColumn),a.text.length>0){const e=a.eolCount+1;c=1===e?new _.Q(s,l,s,l+a.firstLineLength):new _.Q(s,l,s+e-1,a.lastLineLength+1)}else c=new _.Q(s,l,s,l);n=c.endLineNumber,r=c.endColumn,t.push(c),o=a}return t}static _sortOpsAscending(e,t){const n=_.Q.compareRangesUsingEnds(e.range,t.range);return 0===n?e.sortIndex-t.sortIndex:n}static _sortOpsDescending(e,t){const n=_.Q.compareRangesUsingEnds(e.range,t.range);return 0===n?t.sortIndex-e.sortIndex:-n}}class qn{constructor(e,t,n,r,o,i,a,s,l){this._chunks=e,this._bom=t,this._cr=n,this._lf=r,this._crlf=o,this._containsRTL=i,this._containsUnusualLineTerminators=a,this._isBasicASCII=s,this._normalizeEOL=l}_getEOL(e){const t=this._cr+this._lf+this._crlf,n=this._cr+this._crlf;return 0===t?1===e?"\n":"\r\n":n>t/2?"\r\n":"\n"}create(e){const t=this._getEOL(e),n=this._chunks;if(this._normalizeEOL&&("\r\n"===t&&(this._cr>0||this._lf>0)||"\n"===t&&(this._cr>0||this._crlf>0)))for(let o=0,i=n.length;o<i;o++){const e=n[o].buffer.replace(/\r\n|\r|\n/g,t),r=Bn(e);n[o]=new jn(e,r)}const r=new Kn(n,this._bom,t,this._containsRTL,this._containsUnusualLineTerminators,this._isBasicASCII,this._normalizeEOL);return{textBuffer:r,disposable:r}}}class Jn{constructor(){this.chunks=[],this.BOM="",this._hasPreviousChar=!1,this._previousChar=0,this._tmpLineStarts=[],this.cr=0,this.lf=0,this.crlf=0,this.containsRTL=!1,this.containsUnusualLineTerminators=!1,this.isBasicASCII=!0}acceptChunk(e){if(0===e.length)return;0===this.chunks.length&&c.LU(e)&&(this.BOM=c.r_,e=e.substr(1));const t=e.charCodeAt(e.length-1);13===t||t>=55296&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0,this._previousChar=t):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1,this._previousChar=t)}_acceptChunk1(e,t){(t||0!==e.length)&&(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))}_acceptChunk2(e){const t=function(e,t){e.length=0,e[0]=0;let n=1,r=0,o=0,i=0,a=!0;for(let l=0,c=t.length;l<c;l++){const s=t.charCodeAt(l);13===s?l+1<c&&10===t.charCodeAt(l+1)?(i++,e[n++]=l+2,l++):(r++,e[n++]=l+1):10===s?(o++,e[n++]=l+1):a&&9!==s&&(s<32||s>126)&&(a=!1)}const s=new zn(Wn(e),r,o,i,a);return e.length=0,s}(this._tmpLineStarts,e);this.chunks.push(new jn(e,t.lineStarts)),this.cr+=t.cr,this.lf+=t.lf,this.crlf+=t.crlf,t.isBasicASCII||(this.isBasicASCII=!1,this.containsRTL||(this.containsRTL=c.E_(e)),this.containsUnusualLineTerminators||(this.containsUnusualLineTerminators=c.$X(e)))}finish(e=!0){return this._finish(),new qn(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,e)}_finish(){if(0===this.chunks.length&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;const e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);const t=Bn(e.buffer);e.lineStarts=t,13===this._previousChar&&this.cr++}}}var Xn=n(6571),$n=n(2083),Yn=n(1940),Qn=n(8381),Zn=n(4444);const er=new class{clone(){return this}equals(e){return this===e}};class tr{constructor(e){this._default=e,this._store=[]}get(e){return e<this._store.length?this._store[e]:this._default}set(e,t){for(;e>=this._store.length;)this._store[this._store.length]=this._default;this._store[e]=t}replace(e,t,n){if(e>=this._store.length)return;if(0===t)return void this.insert(e,n);if(0===n)return void this.delete(e,t);const r=this._store.slice(0,e),o=this._store.slice(e+t),i=function(e,t){const n=[];for(let r=0;r<e;r++)n[r]=t;return n}(n,this._default);this._store=r.concat(i,o)}delete(e,t){0===t||e>=this._store.length||this._store.splice(e,t)}insert(e,t){if(0===t||e>=this._store.length)return;const n=[];for(let r=0;r<t;r++)n[r]=this._default;this._store=(0,a.nK)(this._store,e,n)}}class nr{get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._startLineNumber+this._tokens.length-1}constructor(e,t){this._startLineNumber=e,this._tokens=t}getLineTokens(e){return this._tokens[e-this._startLineNumber]}appendLineTokens(e){this._tokens.push(e)}}class rr{constructor(){this._tokens=[]}add(e,t){if(this._tokens.length>0){const n=this._tokens[this._tokens.length-1];if(n.endLineNumber+1===e)return void n.appendLineTokens(t)}this._tokens.push(new nr(e,[t]))}finalize(){return this._tokens}}class or{static{this.defaultTokenMetadata=33587200}static createEmpty(e,t){const n=or.defaultTokenMetadata,r=new Uint32Array(2);return r[0]=e.length,r[1]=n,new or(r,e,t)}static createFromTextAndMetadata(e,t){let n=0,r="";const o=new Array;for(const{text:i,metadata:a}of e)o.push(n+i.length,a),n+=i.length,r+=i;return new or(new Uint32Array(o),r,t)}constructor(e,t,n){this._lineTokensBrand=void 0,this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t,this.languageIdCodec=n}equals(e){return e instanceof or&&this.slicedEquals(e,0,this._tokensCount)}slicedEquals(e,t,n){if(this._text!==e._text)return!1;if(this._tokensCount!==e._tokensCount)return!1;const r=t<<1,o=r+(n<<1);for(let i=r;i<o;i++)if(this._tokens[i]!==e._tokens[i])return!1;return!0}getLineContent(){return this._text}getCount(){return this._tokensCount}getStartOffset(e){return e>0?this._tokens[e-1<<1]:0}getMetadata(e){return this._tokens[1+(e<<1)]}getLanguageId(e){const t=this._tokens[1+(e<<1)],n=Qe.x.getLanguageId(t);return this.languageIdCodec.decodeLanguageId(n)}getStandardTokenType(e){const t=this._tokens[1+(e<<1)];return Qe.x.getTokenType(t)}getForeground(e){const t=this._tokens[1+(e<<1)];return Qe.x.getForeground(t)}getClassName(e){const t=this._tokens[1+(e<<1)];return Qe.x.getClassNameFromMetadata(t)}getInlineStyle(e,t){const n=this._tokens[1+(e<<1)];return Qe.x.getInlineStyleFromMetadata(n,t)}getPresentation(e){const t=this._tokens[1+(e<<1)];return Qe.x.getPresentationFromMetadata(t)}getEndOffset(e){return this._tokens[e<<1]}findTokenIndexAtOffset(e){return or.findIndexInTokensArray(this._tokens,e)}inflate(){return this}sliceAndInflate(e,t,n){return new ir(this,e,t,n)}static convertToEndOffset(e,t){const n=(e.length>>>1)-1;for(let r=0;r<n;r++)e[r<<1]=e[r+1<<1];e[n<<1]=t}static findIndexInTokensArray(e,t){if(e.length<=2)return 0;let n=0,r=(e.length>>>1)-1;for(;n<r;){const o=n+Math.floor((r-n)/2),i=e[o<<1];if(i===t)return o+1;i<t?n=o+1:i>t&&(r=o)}return n}withInserted(e){if(0===e.length)return this;let t=0,n=0,r="";const o=new Array;let i=0;for(;;){const a=t<this._tokensCount?this._tokens[t<<1]:-1,s=n<e.length?e[n]:null;if(-1!==a&&(null===s||a<=s.offset)){r+=this._text.substring(i,a);const e=this._tokens[1+(t<<1)];o.push(r.length,e),t++,i=a}else{if(!s)break;if(s.offset>i){r+=this._text.substring(i,s.offset);const e=this._tokens[1+(t<<1)];o.push(r.length,e),i=s.offset}r+=s.text,o.push(r.length,s.tokenMetadata),n++}}return new or(new Uint32Array(o),r,this.languageIdCodec)}getTokenText(e){const t=this.getStartOffset(e),n=this.getEndOffset(e);return this._text.substring(t,n)}forEach(e){const t=this.getCount();for(let n=0;n<t;n++)e(n)}}class ir{constructor(e,t,n,r){this._source=e,this._startOffset=t,this._endOffset=n,this._deltaOffset=r,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this.languageIdCodec=e.languageIdCodec,this._tokensCount=0;for(let o=this._firstTokenIndex,i=e.getCount();o<i;o++){if(e.getStartOffset(o)>=n)break;this._tokensCount++}}getMetadata(e){return this._source.getMetadata(this._firstTokenIndex+e)}getLanguageId(e){return this._source.getLanguageId(this._firstTokenIndex+e)}getLineContent(){return this._source.getLineContent().substring(this._startOffset,this._endOffset)}equals(e){return e instanceof ir&&(this._startOffset===e._startOffset&&this._endOffset===e._endOffset&&this._deltaOffset===e._deltaOffset&&this._source.slicedEquals(e._source,this._firstTokenIndex,this._tokensCount))}getCount(){return this._tokensCount}getStandardTokenType(e){return this._source.getStandardTokenType(this._firstTokenIndex+e)}getForeground(e){return this._source.getForeground(this._firstTokenIndex+e)}getEndOffset(e){const t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset}getClassName(e){return this._source.getClassName(this._firstTokenIndex+e)}getInlineStyle(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)}getPresentation(e){return this._source.getPresentation(this._firstTokenIndex+e)}findTokenIndexAtOffset(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex}getTokenText(e){const t=this._firstTokenIndex+e,n=this._source.getStartOffset(t),r=this._source.getEndOffset(t);let o=this._source.getTokenText(t);return n<this._startOffset&&(o=o.substring(this._startOffset-n)),r>this._endOffset&&(o=o.substring(0,o.length-(r-this._endOffset))),o}forEach(e){for(let t=0;t<this.getCount();t++)e(t)}}class ar{constructor(e,t){this.tokenizationSupport=t,this.initialState=this.tokenizationSupport.getInitialState(),this.store=new lr(e)}getStartState(e){return this.store.getStartState(e,this.initialState)}getFirstInvalidLine(){return this.store.getFirstInvalidLine(this.initialState)}}class sr extends ar{constructor(e,t,n,r){super(e,t),this._textModel=n,this._languageIdCodec=r}updateTokensUntilLine(e,t){const n=this._textModel.getLanguageId();for(;;){const r=this.getFirstInvalidLine();if(!r||r.lineNumber>t)break;const o=this._textModel.getLineContent(r.lineNumber),i=ur(this._languageIdCodec,n,this.tokenizationSupport,o,!0,r.startState);e.add(r.lineNumber,i.tokens),this.store.setEndState(r.lineNumber,i.endState)}}getTokenTypeIfInsertingCharacter(e,t){const n=this.getStartState(e.lineNumber);if(!n)return 0;const r=this._textModel.getLanguageId(),o=this._textModel.getLineContent(e.lineNumber),i=o.substring(0,e.column-1)+t+o.substring(e.column-1),a=ur(this._languageIdCodec,r,this.tokenizationSupport,i,!0,n),s=new or(a.tokens,i,this._languageIdCodec);if(0===s.getCount())return 0;const l=s.findTokenIndexAtOffset(e.column-1);return s.getStandardTokenType(l)}tokenizeLineWithEdit(e,t,n){const r=e.lineNumber,o=e.column,i=this.getStartState(r);if(!i)return null;const a=this._textModel.getLineContent(r),s=a.substring(0,o-1)+n+a.substring(o-1+t),l=this._textModel.getLanguageIdAtPosition(r,0),c=ur(this._languageIdCodec,l,this.tokenizationSupport,s,!0,i);return new or(c.tokens,s,this._languageIdCodec)}hasAccurateTokensForLine(e){return e<this.store.getFirstInvalidEndStateLineNumberOrMax()}isCheapToTokenize(e){const t=this.store.getFirstInvalidEndStateLineNumberOrMax();return e<t||e===t&&this._textModel.getLineLength(e)<2048}tokenizeHeuristically(e,t,n){if(n<=this.store.getFirstInvalidEndStateLineNumberOrMax())return{heuristicTokens:!1};if(t<=this.store.getFirstInvalidEndStateLineNumberOrMax())return this.updateTokensUntilLine(e,n),{heuristicTokens:!1};let r=this.guessStartState(t);const o=this._textModel.getLanguageId();for(let i=t;i<=n;i++){const t=this._textModel.getLineContent(i),n=ur(this._languageIdCodec,o,this.tokenizationSupport,t,!0,r);e.add(i,n.tokens),r=n.endState}return{heuristicTokens:!0}}guessStartState(e){let t=this._textModel.getLineFirstNonWhitespaceColumn(e);const n=[];let r=null;for(let a=e-1;t>1&&a>=1;a--){const e=this._textModel.getLineFirstNonWhitespaceColumn(a);if(0!==e&&(e<t&&(n.push(this._textModel.getLineContent(a)),t=e,r=this.getStartState(a),r)))break}r||(r=this.tokenizationSupport.getInitialState()),n.reverse();const o=this._textModel.getLanguageId();let i=r;for(const a of n){i=ur(this._languageIdCodec,o,this.tokenizationSupport,a,!1,i).endState}return i}}class lr{constructor(e){this.lineCount=e,this._tokenizationStateStore=new cr,this._invalidEndStatesLineNumbers=new dr,this._invalidEndStatesLineNumbers.addRange(new Zn.L(1,e+1))}getEndState(e){return this._tokenizationStateStore.getEndState(e)}setEndState(e,t){if(!t)throw new l.D7("Cannot set null/undefined state");this._invalidEndStatesLineNumbers.delete(e);const n=this._tokenizationStateStore.setEndState(e,t);return n&&e<this.lineCount&&this._invalidEndStatesLineNumbers.addRange(new Zn.L(e+1,e+2)),n}acceptChange(e,t){this.lineCount+=t-e.length,this._tokenizationStateStore.acceptChange(e,t),this._invalidEndStatesLineNumbers.addRangeAndResize(new Zn.L(e.startLineNumber,e.endLineNumberExclusive),t)}acceptChanges(e){for(const t of e){const[e]=(0,u.W)(t.text);this.acceptChange(new Xn.M(t.range.startLineNumber,t.range.endLineNumber+1),e+1)}}invalidateEndStateRange(e){this._invalidEndStatesLineNumbers.addRange(new Zn.L(e.startLineNumber,e.endLineNumberExclusive))}getFirstInvalidEndStateLineNumber(){return this._invalidEndStatesLineNumbers.min}getFirstInvalidEndStateLineNumberOrMax(){return this.getFirstInvalidEndStateLineNumber()||Number.MAX_SAFE_INTEGER}allStatesValid(){return null===this._invalidEndStatesLineNumbers.min}getStartState(e,t){return 1===e?t:this.getEndState(e-1)}getFirstInvalidLine(e){const t=this.getFirstInvalidEndStateLineNumber();if(null===t)return null;const n=this.getStartState(t,e);if(!n)throw new l.D7("Start state must be defined");return{lineNumber:t,startState:n}}}class cr{constructor(){this._lineEndStates=new tr(null)}getEndState(e){return this._lineEndStates.get(e)}setEndState(e,t){const n=this._lineEndStates.get(e);return(!n||!n.equals(t))&&(this._lineEndStates.set(e,t),!0)}acceptChange(e,t){let n=e.length;t>0&&n>0&&(n--,t--),this._lineEndStates.replace(e.startLineNumber,n,t)}}class dr{constructor(){this._ranges=[]}get min(){return 0===this._ranges.length?null:this._ranges[0].start}delete(e){const t=this._ranges.findIndex((t=>t.contains(e)));if(-1!==t){const n=this._ranges[t];n.start===e?n.endExclusive===e+1?this._ranges.splice(t,1):this._ranges[t]=new Zn.L(e+1,n.endExclusive):n.endExclusive===e+1?this._ranges[t]=new Zn.L(n.start,e):this._ranges.splice(t,1,new Zn.L(n.start,e),new Zn.L(e+1,n.endExclusive))}}addRange(e){Zn.L.addRange(e,this._ranges)}addRangeAndResize(e,t){let n=0;for(;!(n>=this._ranges.length||e.start<=this._ranges[n].endExclusive);)n++;let r=n;for(;!(r>=this._ranges.length||e.endExclusive<this._ranges[r].start);)r++;const o=t-e.length;for(let i=r;i<this._ranges.length;i++)this._ranges[i]=this._ranges[i].delta(o);if(n===r){const r=new Zn.L(e.start,e.start+t);r.isEmpty||this._ranges.splice(n,0,r)}else{const t=Math.min(e.start,this._ranges[n].start),i=Math.max(e.endExclusive,this._ranges[r-1].endExclusive),a=new Zn.L(t,i+o);a.isEmpty?this._ranges.splice(n,r-n):this._ranges.splice(n,r-n,a)}}toString(){return this._ranges.map((e=>e.toString())).join(" + ")}}function ur(e,t,n,r,o,i){let a=null;if(n)try{a=n.tokenizeEncoded(r,o,i.clone())}catch(s){(0,l.dz)(s)}return a||(a=function(e,t){const n=new Uint32Array(2);return n[0]=0,n[1]=(32768|e|2<<24)>>>0,new $n.rY(n,null===t?er:t)}(e.encodeLanguageId(t),i)),or.convertToEndOffset(a.tokens,r.length),a}class pr{constructor(e,t){this._tokenizerWithStateStore=e,this._backgroundTokenStore=t,this._isDisposed=!1,this._isScheduled=!1}dispose(){this._isDisposed=!0}handleChanges(){this._beginBackgroundTokenization()}_beginBackgroundTokenization(){!this._isScheduled&&this._tokenizerWithStateStore._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&(this._isScheduled=!0,(0,Yn.$6)((e=>{this._isScheduled=!1,this._backgroundTokenizeWithDeadline(e)})))}_backgroundTokenizeWithDeadline(e){const t=Date.now()+e.timeRemaining(),n=()=>{!this._isDisposed&&this._tokenizerWithStateStore._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&(this._backgroundTokenizeForAtLeast1ms(),Date.now()<t?(0,i._p)(n):this._beginBackgroundTokenization())};n()}_backgroundTokenizeForAtLeast1ms(){const e=this._tokenizerWithStateStore._textModel.getLineCount(),t=new rr,n=Qn.W.create(!1);do{if(n.elapsed()>1)break;if(this._tokenizeOneInvalidLine(t)>=e)break}while(this._hasLinesToTokenize());this._backgroundTokenStore.setTokens(t.finalize()),this.checkFinished()}_hasLinesToTokenize(){return!!this._tokenizerWithStateStore&&!this._tokenizerWithStateStore.store.allStatesValid()}_tokenizeOneInvalidLine(e){const t=this._tokenizerWithStateStore?.getFirstInvalidLine();return t?(this._tokenizerWithStateStore.updateTokensUntilLine(e,t.lineNumber),t.lineNumber):this._tokenizerWithStateStore._textModel.getLineCount()+1}checkFinished(){this._isDisposed||this._tokenizerWithStateStore.store.allStatesValid()&&this._backgroundTokenStore.backgroundTokenizationFinished()}requestTokens(e,t){this._tokenizerWithStateStore.store.invalidateEndStateRange(new Xn.M(e,t))}}class fr{constructor(){this._onDidChangeVisibleRanges=new r.vl,this.onDidChangeVisibleRanges=this._onDidChangeVisibleRanges.event,this._views=new Set}attachView(){const e=new mr((t=>{this._onDidChangeVisibleRanges.fire({view:e,state:t})}));return this._views.add(e),e}detachView(e){this._views.delete(e),this._onDidChangeVisibleRanges.fire({view:e,state:void 0})}}class mr{constructor(e){this.handleStateChange=e}setVisibleLines(e,t){const n=e.map((e=>new Xn.M(e.startLineNumber,e.endLineNumber+1)));this.handleStateChange({visibleLineRanges:n,stabilized:t})}}class _r extends o.jG{get lineRanges(){return this._lineRanges}constructor(e){super(),this._refreshTokens=e,this.runner=this._register(new Yn.uC((()=>this.update()),50)),this._computedLineRanges=[],this._lineRanges=[]}update(){(0,a.aI)(this._computedLineRanges,this._lineRanges,((e,t)=>e.equals(t)))||(this._computedLineRanges=this._lineRanges,this._refreshTokens())}handleStateChange(e){this._lineRanges=e.visibleLineRanges,e.stabilized?(this.runner.cancel(),this.update()):this.runner.schedule()}}class hr extends o.jG{get backgroundTokenizationState(){return this._backgroundTokenizationState}constructor(e,t,n){super(),this._languageIdCodec=e,this._textModel=t,this.getLanguageId=n,this._backgroundTokenizationState=1,this._onDidChangeBackgroundTokenizationState=this._register(new r.vl),this.onDidChangeBackgroundTokenizationState=this._onDidChangeBackgroundTokenizationState.event,this._onDidChangeTokens=this._register(new r.vl),this.onDidChangeTokens=this._onDidChangeTokens.event}tokenizeIfCheap(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)}}class gr extends hr{constructor(e,t,n,r){super(t,n,r),this._treeSitterService=e,this._tokenizationSupport=null,this._initialize()}_initialize(){const e=this.getLanguageId();this._tokenizationSupport&&this._lastLanguageId===e||(this._lastLanguageId=e,this._tokenizationSupport=$n.OB.get(e))}getLineTokens(e){const t=this._textModel.getLineContent(e);if(this._tokenizationSupport){const n=this._tokenizationSupport.tokenizeEncoded(e,this._textModel);if(n)return new or(n,t,this._languageIdCodec)}return or.createEmpty(t,this._languageIdCodec)}resetTokenization(e=!0){e&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]}),this._initialize()}handleDidChangeAttached(){}handleDidChangeContent(e){e.isFlush&&this.resetTokenization(!1)}forceTokenization(e){}hasAccurateTokensForLine(e){return!0}isCheapToTokenize(e){return!0}getTokenTypeIfInsertingCharacter(e,t,n){return 0}tokenizeLineWithEdit(e,t,n){return null}get hasTokens(){return void 0!==this._treeSitterService.getParseResult(this._textModel)}}var yr=n(4432);const vr=new Uint32Array(0).buffer;class br{static deleteBeginning(e,t){return null===e||e===vr?e:br.delete(e,0,t)}static deleteEnding(e,t){if(null===e||e===vr)return e;const n=Er(e),r=n[n.length-2];return br.delete(e,t,r)}static delete(e,t,n){if(null===e||e===vr||t===n)return e;const r=Er(e),o=r.length>>>1;if(0===t&&r[r.length-2]===n)return vr;const i=or.findIndexInTokensArray(r,t),a=i>0?r[i-1<<1]:0;if(n<r[i<<1]){const a=n-t;for(let e=i;e<o;e++)r[e<<1]-=a;return e}let s,l;a!==t?(r[i<<1]=t,s=i+1<<1,l=t):(s=i<<1,l=a);const c=n-t;for(let u=i+1;u<o;u++){const e=r[u<<1]-c;e>l&&(r[s++]=e,r[s++]=r[1+(u<<1)],l=e)}if(s===r.length)return e;const d=new Uint32Array(s);return d.set(r.subarray(0,s),0),d.buffer}static append(e,t){if(t===vr)return e;if(e===vr)return t;if(null===e)return e;if(null===t)return null;const n=Er(e),r=Er(t),o=r.length>>>1,i=new Uint32Array(n.length+r.length);i.set(n,0);let a=n.length;const s=n[n.length-2];for(let l=0;l<o;l++)i[a++]=r[l<<1]+s,i[a++]=r[1+(l<<1)];return i.buffer}static insert(e,t,n){if(null===e||e===vr)return e;const r=Er(e),o=r.length>>>1;let i=or.findIndexInTokensArray(r,t);if(i>0){r[i-1<<1]===t&&i--}for(let a=i;a<o;a++)r[a<<1]+=n;return e}}function Er(e){return e instanceof Uint32Array?e:new Uint32Array(e)}class Sr{constructor(e){this._lineTokens=[],this._len=0,this._languageIdCodec=e}flush(){this._lineTokens=[],this._len=0}get hasTokens(){return this._lineTokens.length>0}getTokens(e,t,n){let r=null;if(t<this._len&&(r=this._lineTokens[t]),null!==r&&r!==vr)return new or(Er(r),n,this._languageIdCodec);const o=new Uint32Array(2);return o[0]=n.length,o[1]=Tr(this._languageIdCodec.encodeLanguageId(e)),new or(o,n,this._languageIdCodec)}static _massageTokens(e,t,n){const r=n?Er(n):null;if(0===t){let t=!1;if(r&&r.length>1&&(t=Qe.x.getLanguageId(r[1])!==e),!t)return vr}if(!r||0===r.length){const n=new Uint32Array(2);return n[0]=t,n[1]=Tr(e),n.buffer}return r[r.length-2]=t,0===r.byteOffset&&r.byteLength===r.buffer.byteLength?r.buffer:r}_ensureLine(e){for(;e>=this._len;)this._lineTokens[this._len]=null,this._len++}_deleteLines(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._lineTokens.splice(e,t),this._len-=t)}_insertLines(e,t){if(0===t)return;const n=[];for(let r=0;r<t;r++)n[r]=null;this._lineTokens=a.nK(this._lineTokens,e,n),this._len+=t}setTokens(e,t,n,r,o){const i=Sr._massageTokens(this._languageIdCodec.encodeLanguageId(e),n,r);this._ensureLine(t);const a=this._lineTokens[t];return this._lineTokens[t]=i,!!o&&!Sr._equals(a,i)}static _equals(e,t){if(!e||!t)return!e&&!t;const n=Er(e),r=Er(t);if(n.length!==r.length)return!1;for(let o=0,i=n.length;o<i;o++)if(n[o]!==r[o])return!1;return!0}acceptEdit(e,t,n){this._acceptDeleteRange(e),this._acceptInsertText(new m.y(e.startLineNumber,e.startColumn),t,n)}_acceptDeleteRange(e){const t=e.startLineNumber-1;if(t>=this._len)return;if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;return void(this._lineTokens[t]=br.delete(this._lineTokens[t],e.startColumn-1,e.endColumn-1))}this._lineTokens[t]=br.deleteEnding(this._lineTokens[t],e.startColumn-1);const n=e.endLineNumber-1;let r=null;n<this._len&&(r=br.deleteBeginning(this._lineTokens[n],e.endColumn-1)),this._lineTokens[t]=br.append(this._lineTokens[t],r),this._deleteLines(e.startLineNumber,e.endLineNumber-e.startLineNumber)}_acceptInsertText(e,t,n){if(0===t&&0===n)return;const r=e.lineNumber-1;r>=this._len||(0!==t?(this._lineTokens[r]=br.deleteEnding(this._lineTokens[r],e.column-1),this._lineTokens[r]=br.insert(this._lineTokens[r],e.column-1,n),this._insertLines(e.lineNumber,t)):this._lineTokens[r]=br.insert(this._lineTokens[r],e.column-1,n))}setMultilineTokens(e,t){if(0===e.length)return{changes:[]};const n=[];for(let r=0,o=e.length;r<o;r++){const o=e[r];let i=0,a=0,s=!1;for(let e=o.startLineNumber;e<=o.endLineNumber;e++)if(s)this.setTokens(t.getLanguageId(),e-1,t.getLineLength(e),o.getLineTokens(e),!1),a=e;else{this.setTokens(t.getLanguageId(),e-1,t.getLineLength(e),o.getLineTokens(e),!0)&&(s=!0,i=e,a=e)}s&&n.push({fromLineNumber:i,toLineNumber:a})}return{changes:n}}}function Tr(e){return(32768|e|2<<24|1024)>>>0}class xr{constructor(e){this._pieces=[],this._isComplete=!1,this._languageIdCodec=e}flush(){this._pieces=[],this._isComplete=!1}isEmpty(){return 0===this._pieces.length}set(e,t){this._pieces=e||[],this._isComplete=t}setPartial(e,t){let n=e;if(t.length>0){const r=t[0].getRange(),o=t[t.length-1].getRange();if(!r||!o)return e;n=e.plusRange(r).plusRange(o)}let r=null;for(let o=0,i=this._pieces.length;o<i;o++){const e=this._pieces[o];if(e.endLineNumber<n.startLineNumber)continue;if(e.startLineNumber>n.endLineNumber){r=r||{index:o};break}if(e.removeTokens(n),e.isEmpty()){this._pieces.splice(o,1),o--,i--;continue}if(e.endLineNumber<n.startLineNumber)continue;if(e.startLineNumber>n.endLineNumber){r=r||{index:o};continue}const[t,a]=e.split(n);t.isEmpty()?r=r||{index:o}:a.isEmpty()||(this._pieces.splice(o,1,t,a),o++,i++,r=r||{index:o})}return r=r||{index:this._pieces.length},t.length>0&&(this._pieces=a.nK(this._pieces,r.index,t)),n}isComplete(){return this._isComplete}addSparseTokens(e,t){if(0===t.getLineContent().length)return t;const n=this._pieces;if(0===n.length)return t;const r=n[xr._findFirstPieceWithLine(n,e)].getLineTokens(e);if(!r)return t;const o=t.getCount(),i=r.getCount();let a=0;const s=[];let l=0,c=0;const d=(e,t)=>{e!==c&&(c=e,s[l++]=e,s[l++]=t)};for(let u=0;u<i;u++){const e=r.getStartCharacter(u),n=r.getEndCharacter(u),i=r.getMetadata(u),s=((1&i?2048:0)|(2&i?4096:0)|(4&i?8192:0)|(8&i?16384:0)|(16&i?16744448:0)|(32&i?4278190080:0))>>>0,l=~s>>>0;for(;a<o&&t.getEndOffset(a)<=e;)d(t.getEndOffset(a),t.getMetadata(a)),a++;for(a<o&&t.getStartOffset(a)<e&&d(e,t.getMetadata(a));a<o&&t.getEndOffset(a)<n;)d(t.getEndOffset(a),t.getMetadata(a)&l|i&s),a++;if(a<o)d(n,t.getMetadata(a)&l|i&s),t.getEndOffset(a)===n&&a++;else{const e=Math.min(Math.max(0,a-1),o-1);d(n,t.getMetadata(e)&l|i&s)}}for(;a<o;)d(t.getEndOffset(a),t.getMetadata(a)),a++;return new or(new Uint32Array(s),t.getLineContent(),this._languageIdCodec)}static _findFirstPieceWithLine(e,t){let n=0,r=e.length-1;for(;n<r;){let o=n+Math.floor((r-n)/2);if(e[o].endLineNumber<t)n=o+1;else{if(!(e[o].startLineNumber>t)){for(;o>n&&e[o-1].startLineNumber<=t&&t<=e[o-1].endLineNumber;)o--;return o}r=o-1}}return n}acceptEdit(e,t,n,r,o){for(const i of this._pieces)i.acceptEdit(e,t,n,r,o)}}var Ar,Ir=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Rr=function(e,t){return function(n,r){t(n,r,e)}};let Cr=Ar=class extends Ut{constructor(e,t,n,i,a,s,l){super(),this._textModel=e,this._bracketPairsTextModelPart=t,this._languageId=n,this._attachedViews=i,this._languageService=a,this._languageConfigurationService=s,this._treeSitterService=l,this._semanticTokens=new xr(this._languageService.languageIdCodec),this._onDidChangeLanguage=this._register(new r.vl),this.onDidChangeLanguage=this._onDidChangeLanguage.event,this._onDidChangeLanguageConfiguration=this._register(new r.vl),this.onDidChangeLanguageConfiguration=this._onDidChangeLanguageConfiguration.event,this._onDidChangeTokens=this._register(new r.vl),this.onDidChangeTokens=this._onDidChangeTokens.event,this._tokensDisposables=this._register(new o.Cm),this._register(this._languageConfigurationService.onDidChange((e=>{e.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})}))),this._register(r.Jh.filter($n.OB.onDidChange,(e=>e.changedLanguages.includes(this._languageId)))((()=>{this.createPreferredTokenProvider()}))),this.createPreferredTokenProvider()}createGrammarTokens(){return this._register(new Dr(this._languageService.languageIdCodec,this._textModel,(()=>this._languageId),this._attachedViews))}createTreeSitterTokens(){return this._register(new gr(this._treeSitterService,this._languageService.languageIdCodec,this._textModel,(()=>this._languageId)))}createTokens(e){const t=void 0!==this._tokens;this._tokens?.dispose(),this._tokens=e?this.createTreeSitterTokens():this.createGrammarTokens(),this._tokensDisposables.clear(),this._tokensDisposables.add(this._tokens.onDidChangeTokens((e=>{this._emitModelTokensChangedEvent(e)}))),this._tokensDisposables.add(this._tokens.onDidChangeBackgroundTokenizationState((e=>{this._bracketPairsTextModelPart.handleDidChangeBackgroundTokenizationState()}))),t&&this._tokens.resetTokenization()}createPreferredTokenProvider(){$n.OB.get(this._languageId)?this._tokens instanceof gr||this.createTokens(!0):this._tokens instanceof Dr||this.createTokens(!1)}handleLanguageConfigurationServiceChange(e){e.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})}handleDidChangeContent(e){if(e.isFlush)this._semanticTokens.flush();else if(!e.isEolChange)for(const t of e.changes){const[e,n,r]=(0,u.W)(t.text);this._semanticTokens.acceptEdit(t.range,e,n,r,t.text.length>0?t.text.charCodeAt(0):0)}this._tokens.handleDidChangeContent(e)}handleDidChangeAttached(){this._tokens.handleDidChangeAttached()}getLineTokens(e){this.validateLineNumber(e);const t=this._tokens.getLineTokens(e);return this._semanticTokens.addSparseTokens(e,t)}_emitModelTokensChangedEvent(e){this._textModel._isDisposing()||(this._bracketPairsTextModelPart.handleDidChangeTokens(e),this._onDidChangeTokens.fire(e))}validateLineNumber(e){if(e<1||e>this._textModel.getLineCount())throw new l.D7("Illegal value for lineNumber")}get hasTokens(){return this._tokens.hasTokens}resetTokenization(){this._tokens.resetTokenization()}get backgroundTokenizationState(){return this._tokens.backgroundTokenizationState}forceTokenization(e){this.validateLineNumber(e),this._tokens.forceTokenization(e)}hasAccurateTokensForLine(e){return this.validateLineNumber(e),this._tokens.hasAccurateTokensForLine(e)}isCheapToTokenize(e){return this.validateLineNumber(e),this._tokens.isCheapToTokenize(e)}tokenizeIfCheap(e){this.validateLineNumber(e),this._tokens.tokenizeIfCheap(e)}getTokenTypeIfInsertingCharacter(e,t,n){return this._tokens.getTokenTypeIfInsertingCharacter(e,t,n)}tokenizeLineWithEdit(e,t,n){return this._tokens.tokenizeLineWithEdit(e,t,n)}setSemanticTokens(e,t){this._semanticTokens.set(e,t),this._emitModelTokensChangedEvent({semanticTokensApplied:null!==e,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]})}hasCompleteSemanticTokens(){return this._semanticTokens.isComplete()}hasSomeSemanticTokens(){return!this._semanticTokens.isEmpty()}setPartialSemanticTokens(e,t){if(this.hasCompleteSemanticTokens())return;const n=this._textModel.validateRange(this._semanticTokens.setPartial(e,t));this._emitModelTokensChangedEvent({semanticTokensApplied:!0,ranges:[{fromLineNumber:n.startLineNumber,toLineNumber:n.endLineNumber}]})}getWordAtPosition(e){this.assertNotDisposed();const t=this._textModel.validatePosition(e),n=this._textModel.getLineContent(t.lineNumber),r=this.getLineTokens(t.lineNumber),o=r.findTokenIndexAtOffset(t.column-1),[i,a]=Ar._findLanguageBoundaries(r,o),s=(0,b.Th)(t.column,this.getLanguageConfiguration(r.getLanguageId(o)).getWordDefinition(),n.substring(i,a),i);if(s&&s.startColumn<=e.column&&e.column<=s.endColumn)return s;if(o>0&&i===t.column-1){const[i,a]=Ar._findLanguageBoundaries(r,o-1),s=(0,b.Th)(t.column,this.getLanguageConfiguration(r.getLanguageId(o-1)).getWordDefinition(),n.substring(i,a),i);if(s&&s.startColumn<=e.column&&e.column<=s.endColumn)return s}return null}getLanguageConfiguration(e){return this._languageConfigurationService.getLanguageConfiguration(e)}static _findLanguageBoundaries(e,t){const n=e.getLanguageId(t);let r=0;for(let i=t;i>=0&&e.getLanguageId(i)===n;i--)r=e.getStartOffset(i);let o=e.getLineContent().length;for(let i=t,a=e.getCount();i<a&&e.getLanguageId(i)===n;i++)o=e.getEndOffset(i);return[r,o]}getWordUntilPosition(e){const t=this.getWordAtPosition(e);return t?{word:t.word.substr(0,e.column-t.startColumn),startColumn:t.startColumn,endColumn:e.column}:{word:"",startColumn:e.column,endColumn:e.column}}getLanguageId(){return this._languageId}getLanguageIdAtPosition(e,t){const n=this._textModel.validatePosition(new m.y(e,t)),r=this.getLineTokens(n.lineNumber);return r.getLanguageId(r.findTokenIndexAtOffset(n.column-1))}setLanguageId(e,t="api"){if(this._languageId===e)return;const n={oldLanguage:this._languageId,newLanguage:e,source:t};this._languageId=e,this._bracketPairsTextModelPart.handleDidChangeLanguage(n),this._tokens.resetTokenization(),this.createPreferredTokenProvider(),this._onDidChangeLanguage.fire(n),this._onDidChangeLanguageConfiguration.fire({})}};Cr=Ar=Ir([Rr(4,v.L),Rr(5,ie),Rr(6,yr.ITreeSitterParserService)],Cr);class Dr extends hr{constructor(e,t,n,r){super(e,t,n),this._tokenizer=null,this._defaultBackgroundTokenizer=null,this._backgroundTokenizer=this._register(new o.HE),this._tokens=new Sr(this._languageIdCodec),this._debugBackgroundTokenizer=this._register(new o.HE),this._attachedViewStates=this._register(new o.$w),this._register($n.dG.onDidChange((e=>{const t=this.getLanguageId();-1!==e.changedLanguages.indexOf(t)&&this.resetTokenization()}))),this.resetTokenization(),this._register(r.onDidChangeVisibleRanges((({view:e,state:t})=>{if(t){let n=this._attachedViewStates.get(e);n||(n=new _r((()=>this.refreshRanges(n.lineRanges))),this._attachedViewStates.set(e,n)),n.handleStateChange(t)}else this._attachedViewStates.deleteAndDispose(e)})))}resetTokenization(e=!0){this._tokens.flush(),this._debugBackgroundTokens?.flush(),this._debugBackgroundStates&&(this._debugBackgroundStates=new lr(this._textModel.getLineCount())),e&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]});const[t,n]=(()=>{if(this._textModel.isTooLargeForTokenization())return[null,null];const e=$n.dG.get(this.getLanguageId());if(!e)return[null,null];let t;try{t=e.getInitialState()}catch(n){return(0,l.dz)(n),[null,null]}return[e,t]})();if(this._tokenizer=t&&n?new sr(this._textModel.getLineCount(),t,this._textModel,this._languageIdCodec):null,this._backgroundTokenizer.clear(),this._defaultBackgroundTokenizer=null,this._tokenizer){const e={setTokens:e=>{this.setTokens(e)},backgroundTokenizationFinished:()=>{if(2===this._backgroundTokenizationState)return;this._backgroundTokenizationState=2,this._onDidChangeBackgroundTokenizationState.fire()},setEndState:(e,t)=>{if(!this._tokenizer)return;const n=this._tokenizer.store.getFirstInvalidEndStateLineNumber();null!==n&&e>=n&&this._tokenizer?.store.setEndState(e,t)}};t&&t.createBackgroundTokenizer&&!t.backgroundTokenizerShouldOnlyVerifyTokens&&(this._backgroundTokenizer.value=t.createBackgroundTokenizer(this._textModel,e)),this._backgroundTokenizer.value||this._textModel.isTooLargeForTokenization()||(this._backgroundTokenizer.value=this._defaultBackgroundTokenizer=new pr(this._tokenizer,e),this._defaultBackgroundTokenizer.handleChanges()),t?.backgroundTokenizerShouldOnlyVerifyTokens&&t.createBackgroundTokenizer?(this._debugBackgroundTokens=new Sr(this._languageIdCodec),this._debugBackgroundStates=new lr(this._textModel.getLineCount()),this._debugBackgroundTokenizer.clear(),this._debugBackgroundTokenizer.value=t.createBackgroundTokenizer(this._textModel,{setTokens:e=>{this._debugBackgroundTokens?.setMultilineTokens(e,this._textModel)},backgroundTokenizationFinished(){},setEndState:(e,t)=>{this._debugBackgroundStates?.setEndState(e,t)}})):(this._debugBackgroundTokens=void 0,this._debugBackgroundStates=void 0,this._debugBackgroundTokenizer.value=void 0)}this.refreshAllVisibleLineTokens()}handleDidChangeAttached(){this._defaultBackgroundTokenizer?.handleChanges()}handleDidChangeContent(e){if(e.isFlush)this.resetTokenization(!1);else if(!e.isEolChange){for(const t of e.changes){const[e,n]=(0,u.W)(t.text);this._tokens.acceptEdit(t.range,e,n),this._debugBackgroundTokens?.acceptEdit(t.range,e,n)}this._debugBackgroundStates?.acceptChanges(e.changes),this._tokenizer&&this._tokenizer.store.acceptChanges(e.changes),this._defaultBackgroundTokenizer?.handleChanges()}}setTokens(e){const{changes:t}=this._tokens.setMultilineTokens(e,this._textModel);return t.length>0&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:t}),{changes:t}}refreshAllVisibleLineTokens(){const e=Xn.M.joinMany([...this._attachedViewStates].map((([e,t])=>t.lineRanges)));this.refreshRanges(e)}refreshRanges(e){for(const t of e)this.refreshRange(t.startLineNumber,t.endLineNumberExclusive-1)}refreshRange(e,t){if(!this._tokenizer)return;e=Math.max(1,Math.min(this._textModel.getLineCount(),e)),t=Math.min(this._textModel.getLineCount(),t);const n=new rr,{heuristicTokens:r}=this._tokenizer.tokenizeHeuristically(n,e,t),o=this.setTokens(n.finalize());if(r)for(const i of o.changes)this._backgroundTokenizer.value?.requestTokens(i.fromLineNumber,i.toLineNumber+1);this._defaultBackgroundTokenizer?.checkFinished()}forceTokenization(e){const t=new rr;this._tokenizer?.updateTokensUntilLine(t,e),this.setTokens(t.finalize()),this._defaultBackgroundTokenizer?.checkFinished()}hasAccurateTokensForLine(e){return!this._tokenizer||this._tokenizer.hasAccurateTokensForLine(e)}isCheapToTokenize(e){return!this._tokenizer||this._tokenizer.isCheapToTokenize(e)}getLineTokens(e){const t=this._textModel.getLineContent(e),n=this._tokens.getTokens(this._textModel.getLanguageId(),e-1,t);if(this._debugBackgroundTokens&&this._debugBackgroundStates&&this._tokenizer&&this._debugBackgroundStates.getFirstInvalidEndStateLineNumberOrMax()>e&&this._tokenizer.store.getFirstInvalidEndStateLineNumberOrMax()>e){const r=this._debugBackgroundTokens.getTokens(this._textModel.getLanguageId(),e-1,t);!n.equals(r)&&this._debugBackgroundTokenizer.value?.reportMismatchingTokens&&this._debugBackgroundTokenizer.value.reportMismatchingTokens(e)}return n}getTokenTypeIfInsertingCharacter(e,t,n){if(!this._tokenizer)return 0;const r=this._textModel.validatePosition(new m.y(e,t));return this.forceTokenization(r.lineNumber),this._tokenizer.getTokenTypeIfInsertingCharacter(r,n)}tokenizeLineWithEdit(e,t,n){if(!this._tokenizer)return null;const r=this._textModel.validatePosition(e);return this.forceTokenization(r.lineNumber),this._tokenizer.tokenizeLineWithEdit(r,t,n)}get hasTokens(){return this._tokens.hasTokens}}class Nr{constructor(){this.changeType=1}}class Mr{static applyInjectedText(e,t){if(!t||0===t.length)return e;let n="",r=0;for(const o of t)n+=e.substring(r,o.column-1),r=o.column-1,n+=o.options.content;return n+=e.substring(r),n}static fromDecorations(e){const t=[];for(const n of e)n.options.before&&n.options.before.content.length>0&&t.push(new Mr(n.ownerId,n.range.startLineNumber,n.range.startColumn,n.options.before,0)),n.options.after&&n.options.after.content.length>0&&t.push(new Mr(n.ownerId,n.range.endLineNumber,n.range.endColumn,n.options.after,1));return t.sort(((e,t)=>e.lineNumber===t.lineNumber?e.column===t.column?e.order-t.order:e.column-t.column:e.lineNumber-t.lineNumber)),t}constructor(e,t,n,r,o){this.ownerId=e,this.lineNumber=t,this.column=n,this.options=r,this.order=o}}class Lr{constructor(e,t,n){this.changeType=2,this.lineNumber=e,this.detail=t,this.injectedText=n}}class kr{constructor(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t}}class Pr{constructor(e,t,n,r){this.changeType=4,this.injectedTexts=r,this.fromLineNumber=e,this.toLineNumber=t,this.detail=n}}class wr{constructor(){this.changeType=5}}class Or{constructor(e,t,n,r){this.changes=e,this.versionId=t,this.isUndoing=n,this.isRedoing=r,this.resultingSelection=null}containsEvent(e){for(let t=0,n=this.changes.length;t<n;t++){if(this.changes[t].changeType===e)return!0}return!1}static merge(e,t){const n=[].concat(e.changes).concat(t.changes),r=t.versionId,o=e.isUndoing||t.isUndoing,i=e.isRedoing||t.isRedoing;return new Or(n,r,o,i)}}class Fr{constructor(e){this.changes=e}}class Wr{constructor(e,t){this.rawContentChangedEvent=e,this.contentChangedEvent=t}merge(e){const t=Or.merge(this.rawContentChangedEvent,e.rawContentChangedEvent),n=Wr._mergeChangeEvents(this.contentChangedEvent,e.contentChangedEvent);return new Wr(t,n)}static _mergeChangeEvents(e,t){const n=[].concat(e.changes).concat(t.changes),r=t.eol,o=t.versionId,i=e.isUndoing||t.isUndoing,a=e.isRedoing||t.isRedoing,s=e.isFlush||t.isFlush;return{changes:n,eol:r,isEolChange:e.isEolChange&&t.isEolChange,versionId:o,isUndoing:i,isRedoing:a,isFlush:s}}}const zr=(0,K.u1)("undoRedoService");class Br{static{this._ID=0}constructor(){this.id=Br._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}static{this.None=new Br}}class Gr{static{this._ID=0}constructor(){this.id=Gr._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}static{this.None=new Gr}}var jr,Vr=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ur=function(e,t){return function(n,r){t(n,r,e)}};function Hr(e,t){let n;return n="string"===typeof e?function(e){const t=new Jn;return t.acceptChunk(e),t.finish()}(e):_e.nk(e)?function(e){const t=new Jn;let n;for(;"string"===typeof(n=e.read());)t.acceptChunk(n);return t.finish()}(e):e,n.create(t)}let Kr=0;class qr{constructor(e){this._source=e,this._eos=!1}read(){if(this._eos)return null;const e=[];let t=0,n=0;for(;;){const r=this._source.read();if(null===r)return this._eos=!0,0===t?null:e.join("");if(r.length>0&&(e[t++]=r,n+=r.length),n>=65536)return e.join("")}}}const Jr=()=>{throw new Error("Invalid change accessor")};let Xr=class extends o.jG{static{jr=this}static{this._MODEL_SYNC_LIMIT=52428800}static{this.LARGE_FILE_SIZE_THRESHOLD=20971520}static{this.LARGE_FILE_LINE_COUNT_THRESHOLD=3e5}static{this.LARGE_FILE_HEAP_OPERATION_THRESHOLD=268435456}static{this.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:g.tabSize,indentSize:g.indentSize,insertSpaces:g.insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:g.trimAutoWhitespace,largeFileOptimizations:g.largeFileOptimizations,bracketPairColorizationOptions:g.bracketPairColorizationOptions}}static resolveOptions(e,t){if(t.detectIndentation){const n=Yt(e,t.tabSize,t.insertSpaces);return new _e.X2({tabSize:n.tabSize,indentSize:"tabSize",insertSpaces:n.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL,bracketPairColorizationOptions:t.bracketPairColorizationOptions})}return new _e.X2(t)}get onDidChangeLanguage(){return this._tokenizationTextModelPart.onDidChangeLanguage}get onDidChangeLanguageConfiguration(){return this._tokenizationTextModelPart.onDidChangeLanguageConfiguration}get onDidChangeTokens(){return this._tokenizationTextModelPart.onDidChangeTokens}onDidChangeContent(e){return this._eventEmitter.slowEvent((t=>e(t.contentChangedEvent)))}onDidChangeContentOrInjectedText(e){return(0,o.qE)(this._eventEmitter.fastEvent((t=>e(t))),this._onDidChangeInjectedText.event((t=>e(t))))}_isDisposing(){return this.__isDisposing}get tokenization(){return this._tokenizationTextModelPart}get bracketPairs(){return this._bracketPairs}get guides(){return this._guidesTextModelPart}constructor(e,t,n,i=null,a,s,l,u){super(),this._undoRedoService=a,this._languageService=s,this._languageConfigurationService=l,this.instantiationService=u,this._onWillDispose=this._register(new r.vl),this.onWillDispose=this._onWillDispose.event,this._onDidChangeDecorations=this._register(new lo((e=>this.handleBeforeFireDecorationsChangedEvent(e)))),this.onDidChangeDecorations=this._onDidChangeDecorations.event,this._onDidChangeOptions=this._register(new r.vl),this.onDidChangeOptions=this._onDidChangeOptions.event,this._onDidChangeAttached=this._register(new r.vl),this.onDidChangeAttached=this._onDidChangeAttached.event,this._onDidChangeInjectedText=this._register(new r.vl),this._eventEmitter=this._register(new co),this._languageSelectionListener=this._register(new o.HE),this._deltaDecorationCallCnt=0,this._attachedViews=new fr,Kr++,this.id="$model"+Kr,this.isForSimpleWidget=n.isForSimpleWidget,this._associatedResource="undefined"===typeof i||null===i?d.r.parse("inmemory://model/"+Kr):i,this._attachedEditorCount=0;const{textBuffer:p,disposable:f}=Hr(e,n.defaultEOL);this._buffer=p,this._bufferDisposable=f,this._options=jr.resolveOptions(this._buffer,n);const m="string"===typeof t?t:t.languageId;"string"!==typeof t&&(this._languageSelectionListener.value=t.onDidChange((()=>this._setLanguage(t.languageId)))),this._bracketPairs=this._register(new St(this,this._languageConfigurationService)),this._guidesTextModelPart=this._register(new qt(this,this._languageConfigurationService)),this._decorationProvider=this._register(new Ct(this)),this._tokenizationTextModelPart=this.instantiationService.createInstance(Cr,this,this._bracketPairs,m,this._attachedViews);const h=this._buffer.getLineCount(),g=this._buffer.getValueLengthInRange(new _.Q(1,1,h,this._buffer.getLineLength(h)+1),0);n.largeFileOptimizations?(this._isTooLargeForTokenization=g>jr.LARGE_FILE_SIZE_THRESHOLD||h>jr.LARGE_FILE_LINE_COUNT_THRESHOLD,this._isTooLargeForHeapOperation=g>jr.LARGE_FILE_HEAP_OPERATION_THRESHOLD):(this._isTooLargeForTokenization=!1,this._isTooLargeForHeapOperation=!1),this._isTooLargeForSyncing=g>jr._MODEL_SYNC_LIMIT,this._versionId=1,this._alternativeVersionId=1,this._initialUndoRedoSnapshot=null,this._isDisposed=!1,this.__isDisposing=!1,this._instanceId=c.tk(Kr),this._lastDecorationId=0,this._decorations=Object.create(null),this._decorationsTree=new Qr,this._commandManager=new Gt(this,this._undoRedoService),this._isUndoing=!1,this._isRedoing=!1,this._trimAutoWhitespaceLines=null,this._register(this._decorationProvider.onDidChange((()=>{this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._onDidChangeDecorations.endDeferredEmit()}))),this._languageService.requestRichLanguageFeatures(m),this._register(this._languageConfigurationService.onDidChange((e=>{this._bracketPairs.handleLanguageConfigurationServiceChange(e),this._tokenizationTextModelPart.handleLanguageConfigurationServiceChange(e)})))}dispose(){this.__isDisposing=!0,this._onWillDispose.fire(),this._tokenizationTextModelPart.dispose(),this._isDisposed=!0,super.dispose(),this._bufferDisposable.dispose(),this.__isDisposing=!1;const e=new Kn([],"","\n",!1,!1,!0,!0);e.dispose(),this._buffer=e,this._bufferDisposable=o.jG.None}_assertNotDisposed(){if(this._isDisposed)throw new l.D7("Model is disposed!")}_emitContentChangedEvent(e,t){this.__isDisposing||(this._tokenizationTextModelPart.handleDidChangeContent(t),this._bracketPairs.handleDidChangeContent(t),this._eventEmitter.fire(new Wr(e,t)))}setValue(e){if(this._assertNotDisposed(),null===e||void 0===e)throw(0,l.Qg)();const{textBuffer:t,disposable:n}=Hr(e,this._options.defaultEOL);this._setValueFromTextBuffer(t,n)}_createContentChanged2(e,t,n,r,o,i,a,s){return{changes:[{range:e,rangeOffset:t,rangeLength:n,text:r}],eol:this._buffer.getEOL(),isEolChange:s,versionId:this.getVersionId(),isUndoing:o,isRedoing:i,isFlush:a}}_setValueFromTextBuffer(e,t){this._assertNotDisposed();const n=this.getFullModelRange(),r=this.getValueLengthInRange(n),o=this.getLineCount(),i=this.getLineMaxColumn(o);this._buffer=e,this._bufferDisposable.dispose(),this._bufferDisposable=t,this._increaseVersionId(),this._decorations=Object.create(null),this._decorationsTree=new Qr,this._commandManager.clear(),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new Or([new Nr],this._versionId,!1,!1),this._createContentChanged2(new _.Q(1,1,o,i),0,r,this.getValue(),!1,!1,!0,!1))}setEOL(e){this._assertNotDisposed();const t=1===e?"\r\n":"\n";if(this._buffer.getEOL()===t)return;const n=this.getFullModelRange(),r=this.getValueLengthInRange(n),o=this.getLineCount(),i=this.getLineMaxColumn(o);this._onBeforeEOLChange(),this._buffer.setEOL(t),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new Or([new wr],this._versionId,!1,!1),this._createContentChanged2(new _.Q(1,1,o,i),0,r,this.getValue(),!1,!1,!1,!0))}_onBeforeEOLChange(){this._decorationsTree.ensureAllNodesHaveRanges(this)}_onAfterEOLChange(){const e=this.getVersionId(),t=this._decorationsTree.collectNodesPostOrder();for(let n=0,r=t.length;n<r;n++){const r=t[n],o=r.range,i=r.cachedAbsoluteStart-r.start,a=this._buffer.getOffsetAt(o.startLineNumber,o.startColumn),s=this._buffer.getOffsetAt(o.endLineNumber,o.endColumn);r.cachedAbsoluteStart=a,r.cachedAbsoluteEnd=s,r.cachedVersionId=e,r.start=a-i,r.end=s-i,bn(r)}}onBeforeAttached(){return this._attachedEditorCount++,1===this._attachedEditorCount&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0)),this._attachedViews.attachView()}onBeforeDetached(e){this._attachedEditorCount--,0===this._attachedEditorCount&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0)),this._attachedViews.detachView(e)}isAttachedToEditor(){return this._attachedEditorCount>0}getAttachedEditorCount(){return this._attachedEditorCount}isTooLargeForSyncing(){return this._isTooLargeForSyncing}isTooLargeForTokenization(){return this._isTooLargeForTokenization}isTooLargeForHeapOperation(){return this._isTooLargeForHeapOperation}isDisposed(){return this._isDisposed}isDominatedByLongLines(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;let e=0,t=0;const n=this._buffer.getLineCount();for(let r=1;r<=n;r++){const n=this._buffer.getLineLength(r);n>=1e4?t+=n:e+=n}return t>e}get uri(){return this._associatedResource}getOptions(){return this._assertNotDisposed(),this._options}getFormattingOptions(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}}updateOptions(e){this._assertNotDisposed();const t="undefined"!==typeof e.tabSize?e.tabSize:this._options.tabSize,n="undefined"!==typeof e.indentSize?e.indentSize:this._options.originalIndentSize,r="undefined"!==typeof e.insertSpaces?e.insertSpaces:this._options.insertSpaces,o="undefined"!==typeof e.trimAutoWhitespace?e.trimAutoWhitespace:this._options.trimAutoWhitespace,i="undefined"!==typeof e.bracketColorizationOptions?e.bracketColorizationOptions:this._options.bracketPairColorizationOptions,a=new _e.X2({tabSize:t,indentSize:n,insertSpaces:r,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:o,bracketPairColorizationOptions:i});if(this._options.equals(a))return;const s=this._options.createChangeEvent(a);this._options=a,this._bracketPairs.handleDidChangeOptions(s),this._decorationProvider.handleDidChangeOptions(s),this._onDidChangeOptions.fire(s)}detectIndentation(e,t){this._assertNotDisposed();const n=Yt(this._buffer,t,e);this.updateOptions({insertSpaces:n.insertSpaces,tabSize:n.tabSize,indentSize:n.tabSize})}normalizeIndentation(e){return this._assertNotDisposed(),f(e,this._options.indentSize,this._options.insertSpaces)}getVersionId(){return this._assertNotDisposed(),this._versionId}mightContainRTL(){return this._buffer.mightContainRTL()}mightContainUnusualLineTerminators(){return this._buffer.mightContainUnusualLineTerminators()}removeUnusualLineTerminators(e=null){const t=this.findMatches(c._J.source,!1,!0,!1,null,!1,1073741824);this._buffer.resetMightContainUnusualLineTerminators(),this.pushEditOperations(e,t.map((e=>({range:e.range,text:null}))),(()=>null))}mightContainNonBasicASCII(){return this._buffer.mightContainNonBasicASCII()}getAlternativeVersionId(){return this._assertNotDisposed(),this._alternativeVersionId}getInitialUndoRedoSnapshot(){return this._assertNotDisposed(),this._initialUndoRedoSnapshot}getOffsetAt(e){this._assertNotDisposed();const t=this._validatePosition(e.lineNumber,e.column,0);return this._buffer.getOffsetAt(t.lineNumber,t.column)}getPositionAt(e){this._assertNotDisposed();const t=Math.min(this._buffer.getLength(),Math.max(0,e));return this._buffer.getPositionAt(t)}_increaseVersionId(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId}_overwriteVersionId(e){this._versionId=e}_overwriteAlternativeVersionId(e){this._alternativeVersionId=e}_overwriteInitialUndoRedoSnapshot(e){this._initialUndoRedoSnapshot=e}getValue(e,t=!1){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new l.D7("Operation would exceed heap memory limits");const n=this.getFullModelRange(),r=this.getValueInRange(n,e);return t?this._buffer.getBOM()+r:r}createSnapshot(e=!1){return new qr(this._buffer.createSnapshot(e))}getValueLength(e,t=!1){this._assertNotDisposed();const n=this.getFullModelRange(),r=this.getValueLengthInRange(n,e);return t?this._buffer.getBOM().length+r:r}getValueInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(e),t)}getValueLengthInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(e),t)}getCharacterCountInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(e),t)}getLineCount(){return this._assertNotDisposed(),this._buffer.getLineCount()}getLineContent(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineContent(e)}getLineLength(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineLength(e)}getLinesContent(){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new l.D7("Operation would exceed heap memory limits");return this._buffer.getLinesContent()}getEOL(){return this._assertNotDisposed(),this._buffer.getEOL()}getEndOfLineSequence(){return this._assertNotDisposed(),"\n"===this._buffer.getEOL()?0:1}getLineMinColumn(e){return this._assertNotDisposed(),1}getLineMaxColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineLength(e)+1}getLineFirstNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)}getLineLastNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)}_validateRangeRelaxedNoAllocations(e){const t=this._buffer.getLineCount(),n=e.startLineNumber,r=e.startColumn;let o=Math.floor("number"!==typeof n||isNaN(n)?1:n),i=Math.floor("number"!==typeof r||isNaN(r)?1:r);if(o<1)o=1,i=1;else if(o>t)o=t,i=this.getLineMaxColumn(o);else if(i<=1)i=1;else{const e=this.getLineMaxColumn(o);i>=e&&(i=e)}const a=e.endLineNumber,s=e.endColumn;let l=Math.floor("number"!==typeof a||isNaN(a)?1:a),c=Math.floor("number"!==typeof s||isNaN(s)?1:s);if(l<1)l=1,c=1;else if(l>t)l=t,c=this.getLineMaxColumn(l);else if(c<=1)c=1;else{const e=this.getLineMaxColumn(l);c>=e&&(c=e)}return n===o&&r===i&&a===l&&s===c&&e instanceof _.Q&&!(e instanceof h.L)?e:new _.Q(o,i,l,c)}_isValidPosition(e,t,n){if("number"!==typeof e||"number"!==typeof t)return!1;if(isNaN(e)||isNaN(t))return!1;if(e<1||t<1)return!1;if((0|e)!==e||(0|t)!==t)return!1;if(e>this._buffer.getLineCount())return!1;if(1===t)return!0;if(t>this.getLineMaxColumn(e))return!1;if(1===n){const n=this._buffer.getLineCharCode(e,t-2);if(c.pc(n))return!1}return!0}_validatePosition(e,t,n){const r=Math.floor("number"!==typeof e||isNaN(e)?1:e),o=Math.floor("number"!==typeof t||isNaN(t)?1:t),i=this._buffer.getLineCount();if(r<1)return new m.y(1,1);if(r>i)return new m.y(i,this.getLineMaxColumn(i));if(o<=1)return new m.y(r,1);const a=this.getLineMaxColumn(r);if(o>=a)return new m.y(r,a);if(1===n){const e=this._buffer.getLineCharCode(r,o-2);if(c.pc(e))return new m.y(r,o-1)}return new m.y(r,o)}validatePosition(e){return this._assertNotDisposed(),e instanceof m.y&&this._isValidPosition(e.lineNumber,e.column,1)?e:this._validatePosition(e.lineNumber,e.column,1)}_isValidRange(e,t){const n=e.startLineNumber,r=e.startColumn,o=e.endLineNumber,i=e.endColumn;if(!this._isValidPosition(n,r,0))return!1;if(!this._isValidPosition(o,i,0))return!1;if(1===t){const e=r>1?this._buffer.getLineCharCode(n,r-2):0,t=i>1&&i<=this._buffer.getLineLength(o)?this._buffer.getLineCharCode(o,i-2):0,a=c.pc(e),s=c.pc(t);return!a&&!s}return!0}validateRange(e){if(this._assertNotDisposed(),e instanceof _.Q&&!(e instanceof h.L)&&this._isValidRange(e,1))return e;const t=this._validatePosition(e.startLineNumber,e.startColumn,0),n=this._validatePosition(e.endLineNumber,e.endColumn,0),r=t.lineNumber,o=t.column,i=n.lineNumber,a=n.column;{const e=o>1?this._buffer.getLineCharCode(r,o-2):0,t=a>1&&a<=this._buffer.getLineLength(i)?this._buffer.getLineCharCode(i,a-2):0,n=c.pc(e),s=c.pc(t);return n||s?r===i&&o===a?new _.Q(r,o-1,i,a-1):n&&s?new _.Q(r,o-1,i,a+1):n?new _.Q(r,o-1,i,a):new _.Q(r,o,i,a+1):new _.Q(r,o,i,a)}}modifyPosition(e,t){this._assertNotDisposed();const n=this.getOffsetAt(e)+t;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,n)))}getFullModelRange(){this._assertNotDisposed();const e=this.getLineCount();return new _.Q(1,1,e,this.getLineMaxColumn(e))}findMatchesLineByLine(e,t,n,r){return this._buffer.findMatchesLineByLine(e,t,n,r)}findMatches(e,t,n,r,o,i,a=999){this._assertNotDisposed();let s=null;null!==t&&(Array.isArray(t)||(t=[t]),t.every((e=>_.Q.isIRange(e)))&&(s=t.map((e=>this.validateRange(e))))),null===s&&(s=[this.getFullModelRange()]),s=s.sort(((e,t)=>e.startLineNumber-t.startLineNumber||e.startColumn-t.startColumn));const l=[];let c;if(l.push(s.reduce(((e,t)=>_.Q.areIntersecting(e,t)?e.plusRange(t):(l.push(e),t)))),!n&&e.indexOf("\n")<0){const t=new On.lt(e,n,r,o).parseSearchRequest();if(!t)return[];c=e=>this.findMatchesLineByLine(e,t,i,a)}else c=t=>On.hB.findMatches(this,new On.lt(e,n,r,o),t,i,a);return l.map(c).reduce(((e,t)=>e.concat(t)),[])}findNextMatch(e,t,n,r,o,i){this._assertNotDisposed();const a=this.validatePosition(t);if(!n&&e.indexOf("\n")<0){const t=new On.lt(e,n,r,o).parseSearchRequest();if(!t)return null;const s=this.getLineCount();let l=new _.Q(a.lineNumber,a.column,s,this.getLineMaxColumn(s)),c=this.findMatchesLineByLine(l,t,i,1);return On.hB.findNextMatch(this,new On.lt(e,n,r,o),a,i),c.length>0?c[0]:(l=new _.Q(1,1,a.lineNumber,this.getLineMaxColumn(a.lineNumber)),c=this.findMatchesLineByLine(l,t,i,1),c.length>0?c[0]:null)}return On.hB.findNextMatch(this,new On.lt(e,n,r,o),a,i)}findPreviousMatch(e,t,n,r,o,i){this._assertNotDisposed();const a=this.validatePosition(t);return On.hB.findPreviousMatch(this,new On.lt(e,n,r,o),a,i)}pushStackElement(){this._commandManager.pushStackElement()}popStackElement(){this._commandManager.popStackElement()}pushEOL(e){if(("\n"===this.getEOL()?0:1)!==e)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEOL(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_validateEditOperation(e){return e instanceof _e.Wo?e:new _e.Wo(e.identifier||null,this.validateRange(e.range),e.text,e.forceMoveMarkers||!1,e.isAutoWhitespaceEdit||!1,e._isTracked||!1)}_validateEditOperations(e){const t=[];for(let n=0,r=e.length;n<r;n++)t[n]=this._validateEditOperation(e[n]);return t}pushEditOperations(e,t,n,r){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(e,this._validateEditOperations(t),n,r)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_pushEditOperations(e,t,n,r){if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){const n=t.map((e=>({range:this.validateRange(e.range),text:e.text})));let r=!0;if(e)for(let t=0,o=e.length;t<o;t++){const o=e[t];let i=!1;for(let e=0,t=n.length;e<t;e++){const t=n[e].range,r=t.startLineNumber>o.endLineNumber,a=o.startLineNumber>t.endLineNumber;if(!r&&!a){i=!0;break}}if(!i){r=!1;break}}if(r)for(let e=0,o=this._trimAutoWhitespaceLines.length;e<o;e++){const r=this._trimAutoWhitespaceLines[e],o=this.getLineMaxColumn(r);let i=!0;for(let e=0,t=n.length;e<t;e++){const t=n[e].range,a=n[e].text;if(!(r<t.startLineNumber||r>t.endLineNumber)&&(!(r===t.startLineNumber&&t.startColumn===o&&t.isEmpty()&&a&&a.length>0&&"\n"===a.charAt(0))&&!(r===t.startLineNumber&&1===t.startColumn&&t.isEmpty()&&a&&a.length>0&&"\n"===a.charAt(a.length-1)))){i=!1;break}}if(i){const e=new _.Q(r,1,r,o);t.push(new _e.Wo(null,e,null,!1,!1,!1))}}this._trimAutoWhitespaceLines=null}return null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEditOperation(e,t,n,r)}_applyUndo(e,t,n,r){const o=e.map((e=>{const t=this.getPositionAt(e.newPosition),n=this.getPositionAt(e.newEnd);return{range:new _.Q(t.lineNumber,t.column,n.lineNumber,n.column),text:e.oldText}}));this._applyUndoRedoEdits(o,t,!0,!1,n,r)}_applyRedo(e,t,n,r){const o=e.map((e=>{const t=this.getPositionAt(e.oldPosition),n=this.getPositionAt(e.oldEnd);return{range:new _.Q(t.lineNumber,t.column,n.lineNumber,n.column),text:e.newText}}));this._applyUndoRedoEdits(o,t,!1,!0,n,r)}_applyUndoRedoEdits(e,t,n,r,o,i){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._isUndoing=n,this._isRedoing=r,this.applyEdits(e,!1),this.setEOL(t),this._overwriteAlternativeVersionId(o)}finally{this._isUndoing=!1,this._isRedoing=!1,this._eventEmitter.endDeferredEmit(i),this._onDidChangeDecorations.endDeferredEmit()}}applyEdits(e,t=!1){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit();const n=this._validateEditOperations(e);return this._doApplyEdits(n,t)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_doApplyEdits(e,t){const n=this._buffer.getLineCount(),r=this._buffer.applyEdits(e,this._options.trimAutoWhitespace,t),o=this._buffer.getLineCount(),i=r.changes;if(this._trimAutoWhitespaceLines=r.trimAutoWhitespaceLineNumbers,0!==i.length){for(let n=0,r=i.length;n<r;n++){const e=i[n];this._decorationsTree.acceptReplace(e.rangeOffset,e.rangeLength,e.text.length,e.forceMoveMarkers)}const e=[];this._increaseVersionId();let t=n;for(let n=0,r=i.length;n<r;n++){const r=i[n],[s]=(0,u.W)(r.text);this._onDidChangeDecorations.fire();const l=r.range.startLineNumber,c=r.range.endLineNumber,d=c-l,p=s,f=Math.min(d,p),_=p-d,h=o-t-_+l,g=h,y=h+p,v=this._decorationsTree.getInjectedTextInInterval(this,this.getOffsetAt(new m.y(g,1)),this.getOffsetAt(new m.y(y,this.getLineMaxColumn(y))),0),b=Mr.fromDecorations(v),E=new a.j3(b);for(let t=f;t>=0;t--){const n=l+t,r=h+t;E.takeFromEndWhile((e=>e.lineNumber>r));const o=E.takeFromEndWhile((e=>e.lineNumber===r));e.push(new Lr(n,this.getLineContent(r),o))}if(f<d){const t=l+f;e.push(new kr(t+1,c))}if(f<p){const n=new a.j3(b),r=l+f,i=p-f,s=o-t-i+r+1,c=[],d=[];for(let e=0;e<i;e++){const t=s+e;d[e]=this.getLineContent(t),n.takeWhile((e=>e.lineNumber<t)),c[e]=n.takeWhile((e=>e.lineNumber===t))}e.push(new Pr(r+1,l+p,d,c))}t+=_}this._emitContentChangedEvent(new Or(e,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:i,eol:this._buffer.getEOL(),isEolChange:!1,versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return null===r.reverseEdits?void 0:r.reverseEdits}undo(){return this._undoRedoService.undo(this.uri)}canUndo(){return this._undoRedoService.canUndo(this.uri)}redo(){return this._undoRedoService.redo(this.uri)}canRedo(){return this._undoRedoService.canRedo(this.uri)}handleBeforeFireDecorationsChangedEvent(e){if(null===e||0===e.size)return;const t=Array.from(e).map((e=>new Lr(e,this.getLineContent(e),this._getInjectedTextInLine(e))));this._onDidChangeInjectedText.fire(new Fr(t))}changeDecorations(e,t=0){this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(t,e)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_changeDecorations(e,t){const n={addDecoration:(t,n)=>this._deltaDecorationsImpl(e,[],[{range:t,options:n}])[0],changeDecoration:(e,t)=>{this._changeDecorationImpl(e,t)},changeDecorationOptions:(e,t)=>{this._changeDecorationOptionsImpl(e,so(t))},removeDecoration:t=>{this._deltaDecorationsImpl(e,[t],[])},deltaDecorations:(t,n)=>0===t.length&&0===n.length?[]:this._deltaDecorationsImpl(e,t,n)};let r=null;try{r=t(n)}catch(o){(0,l.dz)(o)}return n.addDecoration=Jr,n.changeDecoration=Jr,n.changeDecorationOptions=Jr,n.removeDecoration=Jr,n.deltaDecorations=Jr,r}deltaDecorations(e,t,n=0){if(this._assertNotDisposed(),e||(e=[]),0===e.length&&0===t.length)return[];try{return this._deltaDecorationCallCnt++,this._deltaDecorationCallCnt>1&&(console.warn("Invoking deltaDecorations recursively could lead to leaking decorations."),(0,l.dz)(new Error("Invoking deltaDecorations recursively could lead to leaking decorations."))),this._onDidChangeDecorations.beginDeferredEmit(),this._deltaDecorationsImpl(n,e,t)}finally{this._onDidChangeDecorations.endDeferredEmit(),this._deltaDecorationCallCnt--}}_getTrackedRange(e){return this.getDecorationRange(e)}_setTrackedRange(e,t,n){const r=e?this._decorations[e]:null;if(!r)return t?this._deltaDecorationsImpl(0,[],[{range:t,options:ao[n]}],!0)[0]:null;if(!t)return this._decorationsTree.delete(r),delete this._decorations[r.id],null;const o=this._validateRangeRelaxedNoAllocations(t),i=this._buffer.getOffsetAt(o.startLineNumber,o.startColumn),a=this._buffer.getOffsetAt(o.endLineNumber,o.endColumn);return this._decorationsTree.delete(r),r.reset(this.getVersionId(),i,a,o),r.setOptions(ao[n]),this._decorationsTree.insert(r),r.id}removeAllDecorationsWithOwnerId(e){if(this._isDisposed)return;const t=this._decorationsTree.collectNodesFromOwner(e);for(let n=0,r=t.length;n<r;n++){const e=t[n];this._decorationsTree.delete(e),delete this._decorations[e.id]}}getDecorationOptions(e){const t=this._decorations[e];return t?t.options:null}getDecorationRange(e){const t=this._decorations[e];return t?this._decorationsTree.getNodeRange(this,t):null}getLineDecorations(e,t=0,n=!1){return e<1||e>this.getLineCount()?[]:this.getLinesDecorations(e,e,t,n)}getLinesDecorations(e,t,n=0,r=!1,o=!1){const i=this.getLineCount(),s=Math.min(i,Math.max(1,e)),l=Math.min(i,Math.max(1,t)),c=this.getLineMaxColumn(l),d=new _.Q(s,1,l,c),u=this._getDecorationsInRange(d,n,r,o);return(0,a.E4)(u,this._decorationProvider.getDecorationsInRange(d,n,r)),u}getDecorationsInRange(e,t=0,n=!1,r=!1,o=!1){const i=this.validateRange(e),s=this._getDecorationsInRange(i,t,n,o);return(0,a.E4)(s,this._decorationProvider.getDecorationsInRange(i,t,n,r)),s}getOverviewRulerDecorations(e=0,t=!1){return this._decorationsTree.getAll(this,e,t,!0,!1)}getInjectedTextDecorations(e=0){return this._decorationsTree.getAllInjectedText(this,e)}_getInjectedTextInLine(e){const t=this._buffer.getOffsetAt(e,1),n=t+this._buffer.getLineLength(e),r=this._decorationsTree.getInjectedTextInInterval(this,t,n,0);return Mr.fromDecorations(r).filter((t=>t.lineNumber===e))}getAllDecorations(e=0,t=!1){let n=this._decorationsTree.getAll(this,e,t,!1,!1);return n=n.concat(this._decorationProvider.getAllDecorations(e,t)),n}getAllMarginDecorations(e=0){return this._decorationsTree.getAll(this,e,!1,!1,!0)}_getDecorationsInRange(e,t,n,r){const o=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),i=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn);return this._decorationsTree.getAllInInterval(this,o,i,t,n,r)}getRangeAt(e,t){return this._buffer.getRangeAt(e,t-e)}_changeDecorationImpl(e,t){const n=this._decorations[e];if(!n)return;if(n.options.after){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.endLineNumber)}if(n.options.before){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.startLineNumber)}const r=this._validateRangeRelaxedNoAllocations(t),o=this._buffer.getOffsetAt(r.startLineNumber,r.startColumn),i=this._buffer.getOffsetAt(r.endLineNumber,r.endColumn);this._decorationsTree.delete(n),n.reset(this.getVersionId(),o,i,r),this._decorationsTree.insert(n),this._onDidChangeDecorations.checkAffectedAndFire(n.options),n.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(r.endLineNumber),n.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(r.startLineNumber)}_changeDecorationOptionsImpl(e,t){const n=this._decorations[e];if(!n)return;const r=!(!n.options.overviewRuler||!n.options.overviewRuler.color),o=!(!t.overviewRuler||!t.overviewRuler.color);if(this._onDidChangeDecorations.checkAffectedAndFire(n.options),this._onDidChangeDecorations.checkAffectedAndFire(t),n.options.after||t.after){const e=this._decorationsTree.getNodeRange(this,n);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(n.options.before||t.before){const e=this._decorationsTree.getNodeRange(this,n);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}const i=r!==o,a=function(e){return!!e.after||!!e.before}(t)!==Yr(n);i||a?(this._decorationsTree.delete(n),n.setOptions(t),this._decorationsTree.insert(n)):n.setOptions(t)}_deltaDecorationsImpl(e,t,n,r=!1){const o=this.getVersionId(),i=t.length;let a=0;const s=n.length;let l=0;this._onDidChangeDecorations.beginDeferredEmit();try{const c=new Array(s);for(;a<i||l<s;){let d=null;if(a<i){do{d=this._decorations[t[a++]]}while(!d&&a<i);if(d){if(d.options.after){const e=this._decorationsTree.getNodeRange(this,d);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(d.options.before){const e=this._decorationsTree.getNodeRange(this,d);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}this._decorationsTree.delete(d),r||this._onDidChangeDecorations.checkAffectedAndFire(d.options)}}if(l<s){if(!d){const e=++this._lastDecorationId,t=`${this._instanceId};${e}`;d=new cn(t,0,0),this._decorations[t]=d}const t=n[l],i=this._validateRangeRelaxedNoAllocations(t.range),a=so(t.options),s=this._buffer.getOffsetAt(i.startLineNumber,i.startColumn),u=this._buffer.getOffsetAt(i.endLineNumber,i.endColumn);d.ownerId=e,d.reset(o,s,u,i),d.setOptions(a),d.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(i.endLineNumber),d.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(i.startLineNumber),r||this._onDidChangeDecorations.checkAffectedAndFire(a),this._decorationsTree.insert(d),c[l]=d.id,l++}else d&&delete this._decorations[d.id]}return c}finally{this._onDidChangeDecorations.endDeferredEmit()}}getLanguageId(){return this.tokenization.getLanguageId()}setLanguage(e,t){"string"===typeof e?(this._languageSelectionListener.clear(),this._setLanguage(e,t)):(this._languageSelectionListener.value=e.onDidChange((()=>this._setLanguage(e.languageId,t))),this._setLanguage(e.languageId,t))}_setLanguage(e,t){this.tokenization.setLanguageId(e,t),this._languageService.requestRichLanguageFeatures(e)}getLanguageIdAtPosition(e,t){return this.tokenization.getLanguageIdAtPosition(e,t)}getWordAtPosition(e){return this._tokenizationTextModelPart.getWordAtPosition(e)}getWordUntilPosition(e){return this._tokenizationTextModelPart.getWordUntilPosition(e)}normalizePosition(e,t){return e}getLineIndentColumn(e){return function(e){let t=0;for(const n of e){if(" "!==n&&"\t"!==n)break;t++}return t}(this.getLineContent(e))+1}};function $r(e){return!(!e.options.overviewRuler||!e.options.overviewRuler.color)}function Yr(e){return!!e.options.after||!!e.options.before}Xr=jr=Vr([Ur(4,zr),Ur(5,v.L),Ur(6,ie),Ur(7,K._Y)],Xr);class Qr{constructor(){this._decorationsTree0=new un,this._decorationsTree1=new un,this._injectedTextDecorationsTree=new un}ensureAllNodesHaveRanges(e){this.getAll(e,0,!1,!1,!1)}_ensureNodesHaveRanges(e,t){for(const n of t)null===n.range&&(n.range=e.getRangeAt(n.cachedAbsoluteStart,n.cachedAbsoluteEnd));return t}getAllInInterval(e,t,n,r,o,i){const a=e.getVersionId(),s=this._intervalSearch(t,n,r,o,a,i);return this._ensureNodesHaveRanges(e,s)}_intervalSearch(e,t,n,r,o,i){const a=this._decorationsTree0.intervalSearch(e,t,n,r,o,i),s=this._decorationsTree1.intervalSearch(e,t,n,r,o,i),l=this._injectedTextDecorationsTree.intervalSearch(e,t,n,r,o,i);return a.concat(s).concat(l)}getInjectedTextInInterval(e,t,n,r){const o=e.getVersionId(),i=this._injectedTextDecorationsTree.intervalSearch(t,n,r,!1,o,!1);return this._ensureNodesHaveRanges(e,i).filter((e=>e.options.showIfCollapsed||!e.range.isEmpty()))}getAllInjectedText(e,t){const n=e.getVersionId(),r=this._injectedTextDecorationsTree.search(t,!1,n,!1);return this._ensureNodesHaveRanges(e,r).filter((e=>e.options.showIfCollapsed||!e.range.isEmpty()))}getAll(e,t,n,r,o){const i=e.getVersionId(),a=this._search(t,n,r,i,o);return this._ensureNodesHaveRanges(e,a)}_search(e,t,n,r,o){if(n)return this._decorationsTree1.search(e,t,r,o);{const n=this._decorationsTree0.search(e,t,r,o),i=this._decorationsTree1.search(e,t,r,o),a=this._injectedTextDecorationsTree.search(e,t,r,o);return n.concat(i).concat(a)}}collectNodesFromOwner(e){const t=this._decorationsTree0.collectNodesFromOwner(e),n=this._decorationsTree1.collectNodesFromOwner(e),r=this._injectedTextDecorationsTree.collectNodesFromOwner(e);return t.concat(n).concat(r)}collectNodesPostOrder(){const e=this._decorationsTree0.collectNodesPostOrder(),t=this._decorationsTree1.collectNodesPostOrder(),n=this._injectedTextDecorationsTree.collectNodesPostOrder();return e.concat(t).concat(n)}insert(e){Yr(e)?this._injectedTextDecorationsTree.insert(e):$r(e)?this._decorationsTree1.insert(e):this._decorationsTree0.insert(e)}delete(e){Yr(e)?this._injectedTextDecorationsTree.delete(e):$r(e)?this._decorationsTree1.delete(e):this._decorationsTree0.delete(e)}getNodeRange(e,t){const n=e.getVersionId();return t.cachedVersionId!==n&&this._resolveNode(t,n),null===t.range&&(t.range=e.getRangeAt(t.cachedAbsoluteStart,t.cachedAbsoluteEnd)),t.range}_resolveNode(e,t){Yr(e)?this._injectedTextDecorationsTree.resolveNode(e,t):$r(e)?this._decorationsTree1.resolveNode(e,t):this._decorationsTree0.resolveNode(e,t)}acceptReplace(e,t,n,r){this._decorationsTree0.acceptReplace(e,t,n,r),this._decorationsTree1.acceptReplace(e,t,n,r),this._injectedTextDecorationsTree.acceptReplace(e,t,n,r)}}function Zr(e){return e.replace(/[^a-z0-9\-_]/gi," ")}class eo{constructor(e){this.color=e.color||"",this.darkColor=e.darkColor||""}}class to extends eo{constructor(e){super(e),this._resolvedColor=null,this.position="number"===typeof e.position?e.position:_e.A5.Center}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=null}_resolveColor(e,t){if("string"===typeof e)return e;const n=e?t.getColor(e.id):null;return n?n.toString():""}}class no{constructor(e){this.position=e?.position??_e.ZS.Center,this.persistLane=e?.persistLane}}class ro extends eo{constructor(e){super(e),this.position=e.position,this.sectionHeaderStyle=e.sectionHeaderStyle??null,this.sectionHeaderText=e.sectionHeaderText??null}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=void 0}_resolveColor(e,t){return"string"===typeof e?s.Q1.fromHex(e):t.getColor(e.id)}}class oo{static from(e){return e instanceof oo?e:new oo(e)}constructor(e){this.content=e.content||"",this.inlineClassName=e.inlineClassName||null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.attachedData=e.attachedData||null,this.cursorStops=e.cursorStops||null}}class io{static register(e){return new io(e)}static createDynamic(e){return new io(e)}constructor(e){this.description=e.description,this.blockClassName=e.blockClassName?Zr(e.blockClassName):null,this.blockDoesNotCollapse=e.blockDoesNotCollapse??null,this.blockIsAfterEnd=e.blockIsAfterEnd??null,this.blockPadding=e.blockPadding??null,this.stickiness=e.stickiness||0,this.zIndex=e.zIndex||0,this.className=e.className?Zr(e.className):null,this.shouldFillLineOnLineBreak=e.shouldFillLineOnLineBreak??null,this.hoverMessage=e.hoverMessage||null,this.glyphMarginHoverMessage=e.glyphMarginHoverMessage||null,this.lineNumberHoverMessage=e.lineNumberHoverMessage||null,this.isWholeLine=e.isWholeLine||!1,this.showIfCollapsed=e.showIfCollapsed||!1,this.collapseOnReplaceEdit=e.collapseOnReplaceEdit||!1,this.overviewRuler=e.overviewRuler?new to(e.overviewRuler):null,this.minimap=e.minimap?new ro(e.minimap):null,this.glyphMargin=e.glyphMarginClassName?new no(e.glyphMargin):null,this.glyphMarginClassName=e.glyphMarginClassName?Zr(e.glyphMarginClassName):null,this.linesDecorationsClassName=e.linesDecorationsClassName?Zr(e.linesDecorationsClassName):null,this.lineNumberClassName=e.lineNumberClassName?Zr(e.lineNumberClassName):null,this.linesDecorationsTooltip=e.linesDecorationsTooltip?c.jy(e.linesDecorationsTooltip):null,this.firstLineDecorationClassName=e.firstLineDecorationClassName?Zr(e.firstLineDecorationClassName):null,this.marginClassName=e.marginClassName?Zr(e.marginClassName):null,this.inlineClassName=e.inlineClassName?Zr(e.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=e.beforeContentClassName?Zr(e.beforeContentClassName):null,this.afterContentClassName=e.afterContentClassName?Zr(e.afterContentClassName):null,this.after=e.after?oo.from(e.after):null,this.before=e.before?oo.from(e.before):null,this.hideInCommentTokens=e.hideInCommentTokens??!1,this.hideInStringTokens=e.hideInStringTokens??!1}}io.EMPTY=io.register({description:"empty"});const ao=[io.register({description:"tracked-range-always-grows-when-typing-at-edges",stickiness:0}),io.register({description:"tracked-range-never-grows-when-typing-at-edges",stickiness:1}),io.register({description:"tracked-range-grows-only-when-typing-before",stickiness:2}),io.register({description:"tracked-range-grows-only-when-typing-after",stickiness:3})];function so(e){return e instanceof io?e:io.createDynamic(e)}class lo extends o.jG{constructor(e){super(),this.handleBeforeFire=e,this._actual=this._register(new r.vl),this.event=this._actual.event,this._affectedInjectedTextLines=null,this._deferredCnt=0,this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._affectsLineNumber=!1}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(){this._deferredCnt--,0===this._deferredCnt&&(this._shouldFireDeferred&&this.doFire(),this._affectedInjectedTextLines?.clear(),this._affectedInjectedTextLines=null)}recordLineAffectedByInjectedText(e){this._affectedInjectedTextLines||(this._affectedInjectedTextLines=new Set),this._affectedInjectedTextLines.add(e)}checkAffectedAndFire(e){this._affectsMinimap||=!!e.minimap?.position,this._affectsOverviewRuler||=!!e.overviewRuler?.color,this._affectsGlyphMargin||=!!e.glyphMarginClassName,this._affectsLineNumber||=!!e.lineNumberClassName,this.tryFire()}fire(){this._affectsMinimap=!0,this._affectsOverviewRuler=!0,this._affectsGlyphMargin=!0,this.tryFire()}tryFire(){0===this._deferredCnt?this.doFire():this._shouldFireDeferred=!0}doFire(){this.handleBeforeFire(this._affectedInjectedTextLines);const e={affectsMinimap:this._affectsMinimap,affectsOverviewRuler:this._affectsOverviewRuler,affectsGlyphMargin:this._affectsGlyphMargin,affectsLineNumber:this._affectsLineNumber};this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._actual.fire(e)}}class co extends o.jG{constructor(){super(),this._fastEmitter=this._register(new r.vl),this.fastEvent=this._fastEmitter.event,this._slowEmitter=this._register(new r.vl),this.slowEvent=this._slowEmitter.event,this._deferredCnt=0,this._deferredEvent=null}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(e=null){if(this._deferredCnt--,0===this._deferredCnt&&null!==this._deferredEvent){this._deferredEvent.rawContentChangedEvent.resultingSelection=e;const t=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(t),this._slowEmitter.fire(t)}}fire(e){this._deferredCnt>0?this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e:(this._fastEmitter.fire(e),this._slowEmitter.fire(e))}}var uo,po=n(360),fo=n(5600),mo=n(6456),_o=n(146),ho=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},go=function(e,t){return function(n,r){t(n,r,e)}};function yo(e){return e.toString()}class vo{constructor(e,t,n){this.model=e,this._modelEventListeners=new o.Cm,this.model=e,this._modelEventListeners.add(e.onWillDispose((()=>t(e)))),this._modelEventListeners.add(e.onDidChangeLanguage((t=>n(e,t))))}dispose(){this._modelEventListeners.dispose()}}const bo=i.j9||i.zx?1:2;class Eo{constructor(e,t,n,r,o,i,a,s){this.uri=e,this.initialUndoRedoSnapshot=t,this.time=n,this.sharesUndoRedoStack=r,this.heapSize=o,this.sha1=i,this.versionId=a,this.alternativeVersionId=s}}let So=class extends o.jG{static{uo=this}static{this.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK=20971520}constructor(e,t,n,o){super(),this._configurationService=e,this._resourcePropertiesService=t,this._undoRedoService=n,this._instantiationService=o,this._onModelAdded=this._register(new r.vl),this.onModelAdded=this._onModelAdded.event,this._onModelRemoved=this._register(new r.vl),this.onModelRemoved=this._onModelRemoved.event,this._onModelModeChanged=this._register(new r.vl),this.onModelLanguageChanged=this._onModelModeChanged.event,this._modelCreationOptionsByLanguageAndResource=Object.create(null),this._models={},this._disposedModels=new Map,this._disposedModelsHeapSize=0,this._register(this._configurationService.onDidChangeConfiguration((e=>this._updateModelOptions(e)))),this._updateModelOptions(void 0)}static _readModelOptions(e,t){let n=g.tabSize;if(e.editor&&"undefined"!==typeof e.editor.tabSize){const t=parseInt(e.editor.tabSize,10);isNaN(t)||(n=t),n<1&&(n=1)}let r="tabSize";if(e.editor&&"undefined"!==typeof e.editor.indentSize&&"tabSize"!==e.editor.indentSize){const t=parseInt(e.editor.indentSize,10);isNaN(t)||(r=Math.max(t,1))}let o=g.insertSpaces;e.editor&&"undefined"!==typeof e.editor.insertSpaces&&(o="false"!==e.editor.insertSpaces&&Boolean(e.editor.insertSpaces));let i=bo;const a=e.eol;"\r\n"===a?i=2:"\n"===a&&(i=1);let s=g.trimAutoWhitespace;e.editor&&"undefined"!==typeof e.editor.trimAutoWhitespace&&(s="false"!==e.editor.trimAutoWhitespace&&Boolean(e.editor.trimAutoWhitespace));let l=g.detectIndentation;e.editor&&"undefined"!==typeof e.editor.detectIndentation&&(l="false"!==e.editor.detectIndentation&&Boolean(e.editor.detectIndentation));let c=g.largeFileOptimizations;e.editor&&"undefined"!==typeof e.editor.largeFileOptimizations&&(c="false"!==e.editor.largeFileOptimizations&&Boolean(e.editor.largeFileOptimizations));let d=g.bracketPairColorizationOptions;return e.editor?.bracketPairColorization&&"object"===typeof e.editor.bracketPairColorization&&(d={enabled:!!e.editor.bracketPairColorization.enabled,independentColorPoolPerBracketType:!!e.editor.bracketPairColorization.independentColorPoolPerBracketType}),{isForSimpleWidget:t,tabSize:n,indentSize:r,insertSpaces:o,detectIndentation:l,defaultEOL:i,trimAutoWhitespace:s,largeFileOptimizations:c,bracketPairColorizationOptions:d}}_getEOL(e,t){if(e)return this._resourcePropertiesService.getEOL(e,t);const n=this._configurationService.getValue("files.eol",{overrideIdentifier:t});return n&&"string"===typeof n&&"auto"!==n?n:3===i.OS||2===i.OS?"\n":"\r\n"}_shouldRestoreUndoStack(){const e=this._configurationService.getValue("files.restoreUndoStack");return"boolean"!==typeof e||e}getCreationOptions(e,t,n){const r="string"===typeof e?e:e.languageId;let o=this._modelCreationOptionsByLanguageAndResource[r+t];if(!o){const e=this._configurationService.getValue("editor",{overrideIdentifier:r,resource:t}),i=this._getEOL(t,r);o=uo._readModelOptions({editor:e,eol:i},n),this._modelCreationOptionsByLanguageAndResource[r+t]=o}return o}_updateModelOptions(e){const t=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);const n=Object.keys(this._models);for(let r=0,o=n.length;r<o;r++){const o=n[r],i=this._models[o],a=i.model.getLanguageId(),s=i.model.uri;if(e&&!e.affectsConfiguration("editor",{overrideIdentifier:a,resource:s})&&!e.affectsConfiguration("files.eol",{overrideIdentifier:a,resource:s}))continue;const l=t[a+s],c=this.getCreationOptions(a,s,i.model.isForSimpleWidget);uo._setModelOptionsForModel(i.model,c,l)}}static _setModelOptionsForModel(e,t,n){n&&n.defaultEOL!==t.defaultEOL&&1===e.getLineCount()&&e.setEOL(1===t.defaultEOL?0:1),n&&n.detectIndentation===t.detectIndentation&&n.insertSpaces===t.insertSpaces&&n.tabSize===t.tabSize&&n.indentSize===t.indentSize&&n.trimAutoWhitespace===t.trimAutoWhitespace&&(0,_o.aI)(n.bracketPairColorizationOptions,t.bracketPairColorizationOptions)||(t.detectIndentation?(e.detectIndentation(t.insertSpaces,t.tabSize),e.updateOptions({trimAutoWhitespace:t.trimAutoWhitespace,bracketColorizationOptions:t.bracketPairColorizationOptions})):e.updateOptions({insertSpaces:t.insertSpaces,tabSize:t.tabSize,indentSize:t.indentSize,trimAutoWhitespace:t.trimAutoWhitespace,bracketColorizationOptions:t.bracketPairColorizationOptions}))}_insertDisposedModel(e){this._disposedModels.set(yo(e.uri),e),this._disposedModelsHeapSize+=e.heapSize}_removeDisposedModel(e){const t=this._disposedModels.get(yo(e));return t&&(this._disposedModelsHeapSize-=t.heapSize),this._disposedModels.delete(yo(e)),t}_ensureDisposedModelsHeapSize(e){if(this._disposedModelsHeapSize>e){const t=[];for(this._disposedModels.forEach((e=>{e.sharesUndoRedoStack||t.push(e)})),t.sort(((e,t)=>e.time-t.time));t.length>0&&this._disposedModelsHeapSize>e;){const e=t.shift();this._removeDisposedModel(e.uri),null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}}}_createModelData(e,t,n,r){const o=this.getCreationOptions(t,n,r),i=this._instantiationService.createInstance(Xr,e,t,o,n);if(n&&this._disposedModels.has(yo(n))){const e=this._removeDisposedModel(n),t=this._undoRedoService.getElements(n),r=this._getSHA1Computer(),o=!!r.canComputeSHA1(i)&&r.computeSHA1(i)===e.sha1;if(o||e.sharesUndoRedoStack){for(const e of t.past)Bt(e)&&e.matchesResource(n)&&e.setModel(i);for(const e of t.future)Bt(e)&&e.matchesResource(n)&&e.setModel(i);this._undoRedoService.setElementsValidFlag(n,!0,(e=>Bt(e)&&e.matchesResource(n))),o&&(i._overwriteVersionId(e.versionId),i._overwriteAlternativeVersionId(e.alternativeVersionId),i._overwriteInitialUndoRedoSnapshot(e.initialUndoRedoSnapshot))}else null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}const a=yo(i.uri);if(this._models[a])throw new Error("ModelService: Cannot add model because it already exists!");const s=new vo(i,(e=>this._onWillDispose(e)),((e,t)=>this._onDidChangeLanguage(e,t)));return this._models[a]=s,s}createModel(e,t,n,r=!1){let o;return o=t?this._createModelData(e,t,n,r):this._createModelData(e,X.vH,n,r),this._onModelAdded.fire(o.model),o.model}getModels(){const e=[],t=Object.keys(this._models);for(let n=0,r=t.length;n<r;n++){const r=t[n];e.push(this._models[r].model)}return e}getModel(e){const t=yo(e),n=this._models[t];return n?n.model:null}_schemaShouldMaintainUndoRedoElements(e){return e.scheme===mo.ny.file||e.scheme===mo.ny.vscodeRemote||e.scheme===mo.ny.vscodeUserData||e.scheme===mo.ny.vscodeNotebookCell||"fake-fs"===e.scheme}_onWillDispose(e){const t=yo(e.uri),n=this._models[t],r=this._undoRedoService.getUriComparisonKey(e.uri)!==e.uri.toString();let o=!1,i=0;if(r||this._shouldRestoreUndoStack()&&this._schemaShouldMaintainUndoRedoElements(e.uri)){const t=this._undoRedoService.getElements(e.uri);if(t.past.length>0||t.future.length>0){for(const n of t.past)Bt(n)&&n.matchesResource(e.uri)&&(o=!0,i+=n.heapSize(e.uri),n.setModel(e.uri));for(const n of t.future)Bt(n)&&n.matchesResource(e.uri)&&(o=!0,i+=n.heapSize(e.uri),n.setModel(e.uri))}}const a=uo.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK,s=this._getSHA1Computer();if(o)if(r||!(i>a)&&s.canComputeSHA1(e))this._ensureDisposedModelsHeapSize(a-i),this._undoRedoService.setElementsValidFlag(e.uri,!1,(t=>Bt(t)&&t.matchesResource(e.uri))),this._insertDisposedModel(new Eo(e.uri,n.model.getInitialUndoRedoSnapshot(),Date.now(),r,i,s.computeSHA1(e),e.getVersionId(),e.getAlternativeVersionId()));else{const e=n.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}else if(!r){const e=n.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}delete this._models[t],n.dispose(),delete this._modelCreationOptionsByLanguageAndResource[e.getLanguageId()+e.uri],this._onModelRemoved.fire(e)}_onDidChangeLanguage(e,t){const n=t.oldLanguage,r=e.getLanguageId(),o=this.getCreationOptions(n,e.uri,e.isForSimpleWidget),i=this.getCreationOptions(r,e.uri,e.isForSimpleWidget);uo._setModelOptionsForModel(e,i,o),this._onModelModeChanged.fire({model:e,oldLanguageId:n})}_getSHA1Computer(){return new To}};So=uo=ho([go(0,q.pG),go(1,po.ITextResourcePropertiesService),go(2,zr),go(3,K._Y)],So);class To{static{this.MAX_MODEL_SIZE=10485760}canComputeSHA1(e){return e.getValueLength()<=To.MAX_MODEL_SIZE}computeSHA1(e){const t=new fo.v7,n=e.createSnapshot();let r;for(;r=n.read();)t.update(r);return t.digest()}}},1788:(e,t,n)=>{"use strict";function r(e){return e}n.d(t,{VV:()=>i,o5:()=>o});class o{constructor(e,t){this.lastCache=void 0,this.lastArgKey=void 0,"function"===typeof e?(this._fn=e,this._computeKey=r):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this._fn(e)),this.lastCache}}class i{get cachedValues(){return this._map}constructor(e,t){this._map=new Map,this._map2=new Map,"function"===typeof e?(this._fn=e,this._computeKey=r):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);if(this._map2.has(t))return this._map2.get(t);const n=this._fn(e);return this._map.set(e,n),this._map2.set(t,n),n}}},1929:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SimpleWorkerClient:()=>v,SimpleWorkerServer:()=>S,create:()=>T,logOnceWebWorkerWarning:()=>p});var r=n(4383),o=n(1234),i=n(1484),a=n(6456),s=n(8067),l=n(1508);const c="default",d="$initialize";let u=!1;function p(e){s.HZ&&(u||(u=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(e.message))}class f{constructor(e,t,n,r,o){this.vsWorker=e,this.req=t,this.channel=n,this.method=r,this.args=o,this.type=0}}class m{constructor(e,t,n,r){this.vsWorker=e,this.seq=t,this.res=n,this.err=r,this.type=1}}class _{constructor(e,t,n,r,o){this.vsWorker=e,this.req=t,this.channel=n,this.eventName=r,this.arg=o,this.type=2}}class h{constructor(e,t,n){this.vsWorker=e,this.req=t,this.event=n,this.type=3}}class g{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class y{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,t,n){const r=String(++this._lastSentReq);return new Promise(((o,i)=>{this._pendingReplies[r]={resolve:o,reject:i},this._send(new f(this._workerId,r,e,t,n))}))}listen(e,t,n){let r=null;const i=new o.vl({onWillAddFirstListener:()=>{r=String(++this._lastSentReq),this._pendingEmitters.set(r,i),this._send(new _(this._workerId,r,e,t,n))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(r),this._send(new g(this._workerId,r)),r=null}});return i.event}handleMessage(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))}createProxyToRemoteChannel(e,t){const n={get:(n,r)=>("string"!==typeof r||n[r]||(E(r)?n[r]=t=>this.listen(e,r,t):b(r)?n[r]=this.listen(e,r,void 0):36===r.charCodeAt(0)&&(n[r]=async(...n)=>(await(t?.()),this.sendMessage(e,r,n)))),n[r])};return new Proxy(Object.create(null),n)}_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])return void console.warn("Got reply to unknown seq");const t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let n=e.err;return e.err.$isError&&(n=new Error,n.name=e.err.name,n.message=e.err.message,n.stack=e.err.stack),void t.reject(n)}t.resolve(e.res)}_handleRequestMessage(e){const t=e.req;this._handler.handleMessage(e.channel,e.method,e.args).then((e=>{this._send(new m(this._workerId,t,e,void 0))}),(e=>{e.detail instanceof Error&&(e.detail=(0,r.cU)(e.detail)),this._send(new m(this._workerId,t,void 0,(0,r.cU)(e)))}))}_handleSubscribeEventMessage(e){const t=e.req,n=this._handler.handleEvent(e.channel,e.eventName,e.arg)((e=>{this._send(new h(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){const t=[];if(0===e.type)for(let n=0;n<e.args.length;n++)e.args[n]instanceof ArrayBuffer&&t.push(e.args[n]);else 1===e.type&&e.res instanceof ArrayBuffer&&t.push(e.res);this._handler.sendMessage(e,t)}}class v extends i.jG{constructor(e,t){super(),this._localChannels=new Map,this._worker=this._register(e.create({amdModuleId:"vs/base/common/worker/simpleWorker",esmModuleLocation:t.esmModuleLocation,label:t.label},(e=>{this._protocol.handleMessage(e)}),(e=>{(0,r.dz)(e)}))),this._protocol=new y({sendMessage:(e,t)=>{this._worker.postMessage(e,t)},handleMessage:(e,t,n)=>this._handleMessage(e,t,n),handleEvent:(e,t,n)=>this._handleEvent(e,t,n)}),this._protocol.setWorkerId(this._worker.getId());let n=null;const o=globalThis.require;"undefined"!==typeof o&&"function"===typeof o.getConfig?n=o.getConfig():"undefined"!==typeof globalThis.requirejs&&(n=globalThis.requirejs.s.contexts._.config),this._onModuleLoaded=this._protocol.sendMessage(c,d,[this._worker.getId(),JSON.parse(JSON.stringify(n)),t.amdModuleId]),this.proxy=this._protocol.createProxyToRemoteChannel(c,(async()=>{await this._onModuleLoaded})),this._onModuleLoaded.catch((e=>{this._onError("Worker failed to load "+t.amdModuleId,e)}))}_handleMessage(e,t,n){const r=this._localChannels.get(e);if(!r)return Promise.reject(new Error(`Missing channel ${e} on main thread`));if("function"!==typeof r[t])return Promise.reject(new Error(`Missing method ${t} on main thread channel ${e}`));try{return Promise.resolve(r[t].apply(r,n))}catch(o){return Promise.reject(o)}}_handleEvent(e,t,n){const r=this._localChannels.get(e);if(!r)throw new Error(`Missing channel ${e} on main thread`);if(E(t)){const o=r[t].call(r,n);if("function"!==typeof o)throw new Error(`Missing dynamic event ${t} on main thread channel ${e}.`);return o}if(b(t)){const n=r[t];if("function"!==typeof n)throw new Error(`Missing event ${t} on main thread channel ${e}.`);return n}throw new Error(`Malformed event name ${t}`)}setChannel(e,t){this._localChannels.set(e,t)}_onError(e,t){console.error(e),console.info(t)}}function b(e){return"o"===e[0]&&"n"===e[1]&&l.Wv(e.charCodeAt(2))}function E(e){return/^onDynamic/.test(e)&&l.Wv(e.charCodeAt(9))}class S{constructor(e,t){this._localChannels=new Map,this._remoteChannels=new Map,this._requestHandlerFactory=t,this._requestHandler=null,this._protocol=new y({sendMessage:(t,n)=>{e(t,n)},handleMessage:(e,t,n)=>this._handleMessage(e,t,n),handleEvent:(e,t,n)=>this._handleEvent(e,t,n)})}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,t,n){if(e===c&&t===d)return this.initialize(n[0],n[1],n[2]);const r=e===c?this._requestHandler:this._localChannels.get(e);if(!r)return Promise.reject(new Error(`Missing channel ${e} on worker thread`));if("function"!==typeof r[t])return Promise.reject(new Error(`Missing method ${t} on worker thread channel ${e}`));try{return Promise.resolve(r[t].apply(r,n))}catch(o){return Promise.reject(o)}}_handleEvent(e,t,n){const r=e===c?this._requestHandler:this._localChannels.get(e);if(!r)throw new Error(`Missing channel ${e} on worker thread`);if(E(t)){const e=r[t].call(r,n);if("function"!==typeof e)throw new Error(`Missing dynamic event ${t} on request handler.`);return e}if(b(t)){const e=r[t];if("function"!==typeof e)throw new Error(`Missing event ${t} on request handler.`);return e}throw new Error(`Malformed event name ${t}`)}getChannel(e){if(!this._remoteChannels.has(e)){const t=this._protocol.createProxyToRemoteChannel(e);this._remoteChannels.set(e,t)}return this._remoteChannels.get(e)}async initialize(e,t,r){if(this._protocol.setWorkerId(e),!this._requestHandlerFactory){t&&("undefined"!==typeof t.baseUrl&&delete t.baseUrl,"undefined"!==typeof t.paths&&"undefined"!==typeof t.paths.vs&&delete t.paths.vs,"undefined"!==typeof t.trustedTypesPolicy&&delete t.trustedTypesPolicy,t.catchError=!0,globalThis.require.config(t));{const e=a.zl.asBrowserUri(`${r}.js`).toString(!0);return n(5890)(`${e}`).then((e=>{if(this._requestHandler=e.create(this),!this._requestHandler)throw new Error("No RequestHandler!")}))}}this._requestHandler=this._requestHandlerFactory(this)}}function T(e){return new S(e,null)}},1939:(e,t,n)=>{"use strict";n.d(t,{K:()=>r});const r=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"})},1940:(e,t,n)=>{"use strict";n.d(t,{vb:()=>l,uC:()=>c,Qg:()=>s,$6:()=>d});n(8447);var r=n(4383),o=n(1234),i=n(1484),a=n(8067);Symbol("MicrotaskDelay");function s(e){return!!e&&"function"===typeof e.then}class l{constructor(){this.disposable=void 0,this.isDisposed=!1}cancel(){this.disposable?.dispose(),this.disposable=void 0}cancelAndSet(e,t,n=globalThis){if(this.isDisposed)throw new r.D7("Calling 'cancelAndSet' on a disposed IntervalTimer");this.cancel();const o=n.setInterval((()=>{e()}),t);this.disposable=(0,i.s)((()=>{n.clearInterval(o),this.disposable=void 0}))}dispose(){this.cancel(),this.isDisposed=!0}}class c{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return-1!==this.timeoutToken}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner?.()}}let d,u;u="function"!==typeof globalThis.requestIdleCallback||"function"!==typeof globalThis.cancelIdleCallback?(e,t)=>{(0,a._p)((()=>{if(n)return;const e=Date.now()+15,r={didTimeout:!0,timeRemaining:()=>Math.max(0,e-Date.now())};t(Object.freeze(r))}));let n=!1;return{dispose(){n||(n=!0)}}}:(e,t,n)=>{const r=e.requestIdleCallback(t,"number"===typeof n?{timeout:n}:void 0);let o=!1;return{dispose(){o||(o=!0,e.cancelIdleCallback(r))}}},d=e=>u(globalThis,e);var p;!function(e){e.settled=async function(e){let t;const n=await Promise.all(e.map((e=>e.then((e=>e),(e=>{t||(t=e)})))));if("undefined"!==typeof t)throw t;return n},e.withAsyncBody=function(e){return new Promise((async(t,n)=>{try{await e(t,n)}catch(r){n(r)}}))}}(p||(p={}));class f{static fromArray(e){return new f((t=>{t.emitMany(e)}))}static fromPromise(e){return new f((async t=>{t.emitMany(await e)}))}static fromPromises(e){return new f((async t=>{await Promise.all(e.map((async e=>t.emitOne(await e))))}))}static merge(e){return new f((async t=>{await Promise.all(e.map((async e=>{for await(const n of e)t.emitOne(n)})))}))}static{this.EMPTY=f.fromArray([])}constructor(e,t){this._state=0,this._results=[],this._error=null,this._onReturn=t,this._onStateChanged=new o.vl,queueMicrotask((async()=>{const t={emitOne:e=>this.emitOne(e),emitMany:e=>this.emitMany(e),reject:e=>this.reject(e)};try{await Promise.resolve(e(t)),this.resolve()}catch(n){this.reject(n)}finally{t.emitOne=void 0,t.emitMany=void 0,t.reject=void 0}}))}[Symbol.asyncIterator](){let e=0;return{next:async()=>{for(;;){if(2===this._state)throw this._error;if(e<this._results.length)return{done:!1,value:this._results[e++]};if(1===this._state)return{done:!0,value:void 0};await o.Jh.toPromise(this._onStateChanged.event)}},return:async()=>(this._onReturn?.(),{done:!0,value:void 0})}}static map(e,t){return new f((async n=>{for await(const r of e)n.emitOne(t(r))}))}map(e){return f.map(this,e)}static filter(e,t){return new f((async n=>{for await(const r of e)t(r)&&n.emitOne(r)}))}filter(e){return f.filter(this,e)}static coalesce(e){return f.filter(e,(e=>!!e))}coalesce(){return f.coalesce(this)}static async toPromise(e){const t=[];for await(const n of e)t.push(n);return t}toPromise(){return f.toPromise(this)}emitOne(e){0===this._state&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){0===this._state&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){0===this._state&&(this._state=1,this._onStateChanged.fire())}reject(e){0===this._state&&(this._state=2,this._error=e,this._onStateChanged.fire())}}},2083:(e,t,n)=>{"use strict";n.d(t,{rY:()=>h,ou:()=>_,dG:()=>T,OB:()=>x});var r=n(9493),o=(n(9400),n(1234)),i=n(1484);class a{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new o.vl,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]),(0,i.s)((()=>{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();const n=new s(this,e,t);return this._factories.set(e,n),(0,i.s)((()=>{const t=this._factories.get(e);t&&t===n&&(this._factories.delete(e),t.dispose())}))}async getOrCreate(e){const t=this.get(e);if(t)return t;const n=this._factories.get(e);return!n||n.isResolved?null:(await n.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;const 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}}class s extends i.jG{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._resolvePromise=this._create()),this._resolvePromise}async _create(){const e=await this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}}var l,c,d,u,p,f,m=n(8209);class _{constructor(e,t,n){this.offset=e,this.type=t,this.language=n,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}class h{constructor(e,t){this.tokens=e,this.endState=t,this._encodedTokenizationResultBrand=void 0}}!function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(l||(l={})),function(e){const t=new Map;t.set(0,r.W.symbolMethod),t.set(1,r.W.symbolFunction),t.set(2,r.W.symbolConstructor),t.set(3,r.W.symbolField),t.set(4,r.W.symbolVariable),t.set(5,r.W.symbolClass),t.set(6,r.W.symbolStruct),t.set(7,r.W.symbolInterface),t.set(8,r.W.symbolModule),t.set(9,r.W.symbolProperty),t.set(10,r.W.symbolEvent),t.set(11,r.W.symbolOperator),t.set(12,r.W.symbolUnit),t.set(13,r.W.symbolValue),t.set(15,r.W.symbolEnum),t.set(14,r.W.symbolConstant),t.set(15,r.W.symbolEnum),t.set(16,r.W.symbolEnumMember),t.set(17,r.W.symbolKeyword),t.set(27,r.W.symbolSnippet),t.set(18,r.W.symbolText),t.set(19,r.W.symbolColor),t.set(20,r.W.symbolFile),t.set(21,r.W.symbolReference),t.set(22,r.W.symbolCustomColor),t.set(23,r.W.symbolFolder),t.set(24,r.W.symbolTypeParameter),t.set(25,r.W.account),t.set(26,r.W.issues),e.toIcon=function(e){let n=t.get(e);return n||(console.info("No codicon found for CompletionItemKind "+e),n=r.W.symbolProperty),n};const n=new Map;n.set("method",0),n.set("function",1),n.set("constructor",2),n.set("field",3),n.set("variable",4),n.set("class",5),n.set("struct",6),n.set("interface",7),n.set("module",8),n.set("property",9),n.set("event",10),n.set("operator",11),n.set("unit",12),n.set("value",13),n.set("constant",14),n.set("enum",15),n.set("enum-member",16),n.set("enumMember",16),n.set("keyword",17),n.set("snippet",27),n.set("text",18),n.set("color",19),n.set("file",20),n.set("reference",21),n.set("customcolor",22),n.set("folder",23),n.set("type-parameter",24),n.set("typeParameter",24),n.set("account",25),n.set("issue",26),e.fromString=function(e,t){let r=n.get(e);return"undefined"!==typeof r||t||(r=9),r}}(c||(c={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(d||(d={}));!function(e){e[e.Automatic=0]="Automatic",e[e.PasteAs=1]="PasteAs"}(u||(u={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(p||(p={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(f||(f={}));(0,m.kg)("Array","array"),(0,m.kg)("Boolean","boolean"),(0,m.kg)("Class","class"),(0,m.kg)("Constant","constant"),(0,m.kg)("Constructor","constructor"),(0,m.kg)("Enum","enumeration"),(0,m.kg)("EnumMember","enumeration member"),(0,m.kg)("Event","event"),(0,m.kg)("Field","field"),(0,m.kg)("File","file"),(0,m.kg)("Function","function"),(0,m.kg)("Interface","interface"),(0,m.kg)("Key","key"),(0,m.kg)("Method","method"),(0,m.kg)("Module","module"),(0,m.kg)("Namespace","namespace"),(0,m.kg)("Null","null"),(0,m.kg)("Number","number"),(0,m.kg)("Object","object"),(0,m.kg)("Operator","operator"),(0,m.kg)("Package","package"),(0,m.kg)("Property","property"),(0,m.kg)("String","string"),(0,m.kg)("Struct","struct"),(0,m.kg)("TypeParameter","type parameter"),(0,m.kg)("Variable","variable");var g,y,v,b,E;!function(e){const t=new Map;t.set(0,r.W.symbolFile),t.set(1,r.W.symbolModule),t.set(2,r.W.symbolNamespace),t.set(3,r.W.symbolPackage),t.set(4,r.W.symbolClass),t.set(5,r.W.symbolMethod),t.set(6,r.W.symbolProperty),t.set(7,r.W.symbolField),t.set(8,r.W.symbolConstructor),t.set(9,r.W.symbolEnum),t.set(10,r.W.symbolInterface),t.set(11,r.W.symbolFunction),t.set(12,r.W.symbolVariable),t.set(13,r.W.symbolConstant),t.set(14,r.W.symbolString),t.set(15,r.W.symbolNumber),t.set(16,r.W.symbolBoolean),t.set(17,r.W.symbolArray),t.set(18,r.W.symbolObject),t.set(19,r.W.symbolKey),t.set(20,r.W.symbolNull),t.set(21,r.W.symbolEnumMember),t.set(22,r.W.symbolStruct),t.set(23,r.W.symbolEvent),t.set(24,r.W.symbolOperator),t.set(25,r.W.symbolTypeParameter),e.toIcon=function(e){let n=t.get(e);return n||(console.info("No codicon found for SymbolKind "+e),n=r.W.symbolProperty),n}}(g||(g={}));class S{static{this.Comment=new S("comment")}static{this.Imports=new S("imports")}static{this.Region=new S("region")}static fromValue(e){switch(e){case"comment":return S.Comment;case"imports":return S.Imports;case"region":return S.Region}return new S(e)}constructor(e){this.value=e}}!function(e){e[e.AIGenerated=1]="AIGenerated"}(y||(y={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(v||(v={})),function(e){e.is=function(e){return!(!e||"object"!==typeof e)&&("string"===typeof e.id&&"string"===typeof e.title)}}(b||(b={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(E||(E={}));const T=new a,x=new a;var A;!function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(A||(A={}))},2522:(e,t,n)=>{"use strict";var r;n.d(t,{f:()=>r}),function(e){function t(e){return e&&"object"===typeof e&&"function"===typeof e[Symbol.iterator]}e.is=t;const n=Object.freeze([]);function*r(e){yield e}e.empty=function(){return n},e.single=r,e.wrap=function(e){return t(e)?e:r(e)},e.from=function(e){return e||n},e.reverse=function*(e){for(let t=e.length-1;t>=0;t--)yield e[t]},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){let n=0;for(const r of e)if(t(r,n++))return!0;return!1},e.find=function(e,t){for(const n of e)if(t(n))return n},e.filter=function*(e,t){for(const n of e)t(n)&&(yield n)},e.map=function*(e,t){let n=0;for(const r of e)yield t(r,n++)},e.flatMap=function*(e,t){let n=0;for(const r of e)yield*t(r,n++)},e.concat=function*(...e){for(const t of e)yield*t},e.reduce=function(e,t,n){let r=n;for(const o of e)r=t(r,o);return r},e.slice=function*(e,t,n=e.length){for(t<0&&(t+=e.length),n<0?n+=e.length:n>e.length&&(n=e.length);t<n;t++)yield e[t]},e.consume=function(t,n=Number.POSITIVE_INFINITY){const r=[];if(0===n)return[r,t];const o=t[Symbol.iterator]();for(let i=0;i<n;i++){const t=o.next();if(t.done)return[r,e.empty()];r.push(t.value)}return[r,{[Symbol.iterator]:()=>o}]},e.asyncToArray=async function(e){const t=[];for await(const n of e)t.push(n);return Promise.resolve(t)}}(r||(r={}))},2661:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LanguageFeaturesService:()=>_});var r=n(1234),o=n(1484),i=n(6223),a=n(6958),s=n(8821);function l(e,t,n,r,o,i){if(Array.isArray(e)){let a=0;for(const s of e){const e=l(s,t,n,r,o,i);if(10===e)return e;e>a&&(a=e)}return a}if("string"===typeof e)return r?"*"===e?5:e===n?10:0:0;if(e){const{language:l,pattern:c,scheme:d,hasAccessToAllModels:u,notebookType:p}=e;if(!r&&!u)return 0;p&&o&&(t=o);let f=0;if(d)if(d===t.scheme)f=10;else{if("*"!==d)return 0;f=5}if(l)if(l===n)f=10;else{if("*"!==l)return 0;f=Math.max(f,5)}if(p)if(p===i)f=10;else{if("*"!==p||void 0===i)return 0;f=Math.max(f,5)}if(c){let e;if(e="string"===typeof c?c:{...c,base:(0,s.S8)(c.base)},e!==t.fsPath&&!(0,a.YW)(e,t.fsPath))return 0;f=10}return f}return 0}function c(e){return"string"!==typeof e&&(Array.isArray(e)?e.every(c):!!e.exclusive)}class d{constructor(e,t,n,r,o){this.uri=e,this.languageId=t,this.notebookUri=n,this.notebookType=r,this.recursive=o}equals(e){return this.notebookType===e.notebookType&&this.languageId===e.languageId&&this.uri.toString()===e.uri.toString()&&this.notebookUri?.toString()===e.notebookUri?.toString()&&this.recursive===e.recursive}}class u{constructor(e){this._notebookInfoResolver=e,this._clock=0,this._entries=[],this._onDidChange=new r.vl,this.onDidChange=this._onDidChange.event}register(e,t){let n={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(n),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),(0,o.s)((()=>{if(n){const e=this._entries.indexOf(n);e>=0&&(this._entries.splice(e,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),n=void 0)}}))}has(e){return this.all(e).length>0}all(e){if(!e)return[];this._updateScores(e,!1);const t=[];for(const n of this._entries)n._score>0&&t.push(n.provider);return t}ordered(e,t=!1){const n=[];return this._orderedForEach(e,t,(e=>n.push(e.provider))),n}orderedGroups(e){const t=[];let n,r;return this._orderedForEach(e,!1,(e=>{n&&r===e._score?n.push(e.provider):(r=e._score,n=[e.provider],t.push(n))})),t}_orderedForEach(e,t,n){this._updateScores(e,t);for(const r of this._entries)r._score>0&&n(r)}_updateScores(e,t){const n=this._notebookInfoResolver?.(e.uri),r=n?new d(e.uri,e.getLanguageId(),n.uri,n.type,t):new d(e.uri,e.getLanguageId(),void 0,void 0,t);if(!this._lastCandidate?.equals(r)){this._lastCandidate=r;for(const n of this._entries)if(n._score=l(n.selector,r.uri,r.languageId,(0,i.vd)(e),r.notebookUri,r.notebookType),c(n.selector)&&n._score>0){if(!t){for(const e of this._entries)e._score=0;n._score=1e3;break}n._score=0}this._entries.sort(u._compareByScoreAndTime)}}static _compareByScoreAndTime(e,t){return e._score<t._score?1:e._score>t._score?-1:p(e.selector)&&!p(t.selector)?1:!p(e.selector)&&p(t.selector)?-1:e._time<t._time?1:e._time>t._time?-1:0}}function p(e){return"string"!==typeof e&&(Array.isArray(e)?e.some(p):Boolean(e.isBuiltin))}var f=n(6942),m=n(4621);class _{constructor(){this.referenceProvider=new u(this._score.bind(this)),this.renameProvider=new u(this._score.bind(this)),this.newSymbolNamesProvider=new u(this._score.bind(this)),this.codeActionProvider=new u(this._score.bind(this)),this.definitionProvider=new u(this._score.bind(this)),this.typeDefinitionProvider=new u(this._score.bind(this)),this.declarationProvider=new u(this._score.bind(this)),this.implementationProvider=new u(this._score.bind(this)),this.documentSymbolProvider=new u(this._score.bind(this)),this.inlayHintsProvider=new u(this._score.bind(this)),this.colorProvider=new u(this._score.bind(this)),this.codeLensProvider=new u(this._score.bind(this)),this.documentFormattingEditProvider=new u(this._score.bind(this)),this.documentRangeFormattingEditProvider=new u(this._score.bind(this)),this.onTypeFormattingEditProvider=new u(this._score.bind(this)),this.signatureHelpProvider=new u(this._score.bind(this)),this.hoverProvider=new u(this._score.bind(this)),this.documentHighlightProvider=new u(this._score.bind(this)),this.multiDocumentHighlightProvider=new u(this._score.bind(this)),this.selectionRangeProvider=new u(this._score.bind(this)),this.foldingRangeProvider=new u(this._score.bind(this)),this.linkProvider=new u(this._score.bind(this)),this.inlineCompletionsProvider=new u(this._score.bind(this)),this.inlineEditProvider=new u(this._score.bind(this)),this.completionProvider=new u(this._score.bind(this)),this.linkedEditingRangeProvider=new u(this._score.bind(this)),this.documentRangeSemanticTokensProvider=new u(this._score.bind(this)),this.documentSemanticTokensProvider=new u(this._score.bind(this)),this.documentDropEditProvider=new u(this._score.bind(this)),this.documentPasteEditProvider=new u(this._score.bind(this))}_score(e){return this._notebookTypeResolver?.(e)}}(0,m.v)(f.ILanguageFeaturesService,_,1)},3069:(e,t,n)=>{"use strict";n.d(t,{y:()=>r});class r{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new r(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return r.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return r.isBefore(this,e)}static isBefore(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column}isBeforeOrEqual(e){return r.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<=t.column}static compare(e,t){const n=0|e.lineNumber,r=0|t.lineNumber;if(n===r){return(0|e.column)-(0|t.column)}return n-r}clone(){return new r(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new r(e.lineNumber,e.column)}static isIPosition(e){return e&&"number"===typeof e.lineNumber&&"number"===typeof e.column}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}}},3511:(e,t,n)=>{"use strict";n.d(t,{rr:()=>X,$b:()=>$});n(1234);var r=n(1484),o=n(8067),i=n(1508),a=n(4383),s=n(8209);function l(...e){switch(e.length){case 1:return(0,s.kg)("contextkey.scanner.hint.didYouMean1","Did you mean {0}?",e[0]);case 2:return(0,s.kg)("contextkey.scanner.hint.didYouMean2","Did you mean {0} or {1}?",e[0],e[1]);case 3:return(0,s.kg)("contextkey.scanner.hint.didYouMean3","Did you mean {0}, {1} or {2}?",e[0],e[1],e[2]);default:return}}const c=(0,s.kg)("contextkey.scanner.hint.didYouForgetToOpenOrCloseQuote","Did you forget to open or close the quote?"),d=(0,s.kg)("contextkey.scanner.hint.didYouForgetToEscapeSlash","Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'.");class u{constructor(){this._input="",this._start=0,this._current=0,this._tokens=[],this._errors=[],this.stringRe=/[a-zA-Z0-9_<>\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(e){switch(e.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return e.isTripleEq?"===":"==";case 4:return e.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:case 8:return">=";case 9:return"=~";case 10:case 17:case 18:case 19:return e.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 20:return"EOF";default:throw(0,a.iH)(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}static{this._regexFlags=new Set(["i","g","s","m","y","u"].map((e=>e.charCodeAt(0))))}static{this._keywords=new Map([["not",14],["in",13],["false",12],["true",11]])}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();){this._start=this._current;switch(this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){const e=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:e})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){const e=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:e})}else this._match(126)?this._addToken(9):this._error(l("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(l("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(l("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return!this._isAtEnd()&&(this._input.charCodeAt(this._current)===e&&(this._current++,!0))}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){const t=this._start,n=this._input.substring(this._start,this._current),r={type:19,offset:this._start,lexeme:n};this._errors.push({offset:t,lexeme:n,additionalInfo:e}),this._tokens.push(r)}_string(){this.stringRe.lastIndex=this._start;const e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;const t=this._input.substring(this._start,this._current),n=u._keywords.get(t);n?this._addToken(n):this._tokens.push({type:17,lexeme:t,offset:this._start})}}_quotedString(){for(;39!==this._peek()&&!this._isAtEnd();)this._advance();this._isAtEnd()?this._error(c):(this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1}))}_regex(){let e=this._current,t=!1,n=!1;for(;;){if(e>=this._input.length)return this._current=e,void this._error(d);const r=this._input.charCodeAt(e);if(t)t=!1;else{if(47===r&&!n){e++;break}91===r?n=!0:92===r?t=!0:93===r&&(n=!1)}e++}for(;e<this._input.length&&u._regexFlags.has(this._input.charCodeAt(e));)e++;this._current=e;const r=this._input.substring(this._start,this._current);this._tokens.push({type:10,lexeme:r,offset:this._start})}_isAtEnd(){return this._current>=this._input.length}}var p=n(3591);const f=new Map;f.set("false",!1),f.set("true",!0),f.set("isMac",o.zx),f.set("isLinux",o.j9),f.set("isWindows",o.uF),f.set("isWeb",o.HZ),f.set("isMacNative",o.zx&&!o.HZ),f.set("isEdge",o.UP),f.set("isFirefox",o.gm),f.set("isChrome",o.H8),f.set("isSafari",o.nr);const m=Object.prototype.hasOwnProperty,_={regexParsingWithErrorRecovery:!0},h=(0,s.kg)("contextkey.parser.error.emptyString","Empty context key expression"),g=(0,s.kg)("contextkey.parser.error.emptyString.hint","Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),y=(0,s.kg)("contextkey.parser.error.noInAfterNot","'in' after 'not'."),v=(0,s.kg)("contextkey.parser.error.closingParenthesis","closing parenthesis ')'"),b=(0,s.kg)("contextkey.parser.error.unexpectedToken","Unexpected token"),E=(0,s.kg)("contextkey.parser.error.unexpectedToken.hint","Did you forget to put && or || before the token?"),S=(0,s.kg)("contextkey.parser.error.unexpectedEOF","Unexpected end of expression"),T=(0,s.kg)("contextkey.parser.error.unexpectedEOF.hint","Did you forget to put a context key?");class x{static{this._parseError=new Error}constructor(e=_){this._config=e,this._scanner=new u,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(""!==e){this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{const e=this._expr();if(!this._isAtEnd()){const e=this._peek(),t=17===e.type?E:void 0;throw this._parsingErrors.push({message:b,offset:e.offset,lexeme:u.getLexeme(e),additionalInfo:t}),x._parseError}return e}catch(t){if(t!==x._parseError)throw t;return}}else this._parsingErrors.push({message:h,offset:0,lexeme:"",additionalInfo:g})}_expr(){return this._or()}_or(){const e=[this._and()];for(;this._matchOne(16);){const t=this._and();e.push(t)}return 1===e.length?e[0]:A.or(...e)}_and(){const e=[this._term()];for(;this._matchOne(15);){const t=this._term();e.push(t)}return 1===e.length?e[0]:A.and(...e)}_term(){if(this._matchOne(2)){const e=this._peek();switch(e.type){case 11:return this._advance(),R.INSTANCE;case 12:return this._advance(),C.INSTANCE;case 0:{this._advance();const e=this._expr();return this._consume(1,v),e?.negate()}case 17:return this._advance(),P.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){const e=this._peek();switch(e.type){case 11:return this._advance(),A.true();case 12:return this._advance(),A.false();case 0:{this._advance();const e=this._expr();return this._consume(1,v),e}case 17:{const r=e.lexeme;if(this._advance(),this._matchOne(9)){const e=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),10!==e.type)throw this._errExpectedButGot("REGEX",e);const n=e.lexeme,o=n.lastIndexOf("/"),i=o===n.length-1?void 0:this._removeFlagsGY(n.substring(o+1));let a;try{a=new RegExp(n.substring(1,o),i)}catch(t){throw this._errExpectedButGot("REGEX",e)}return B.create(r,a)}switch(e.type){case 10:case 19:{const n=[e.lexeme];this._advance();let o=this._peek(),i=0;for(let t=0;t<e.lexeme.length;t++)40===e.lexeme.charCodeAt(t)?i++:41===e.lexeme.charCodeAt(t)&&i--;for(;!this._isAtEnd()&&15!==o.type&&16!==o.type;){switch(o.type){case 0:i++;break;case 1:i--;break;case 10:case 18:for(let t=0;t<o.lexeme.length;t++)40===o.lexeme.charCodeAt(t)?i++:41===e.lexeme.charCodeAt(t)&&i--}if(i<0)break;n.push(u.getLexeme(o)),this._advance(),o=this._peek()}const a=n.join(""),s=a.lastIndexOf("/"),l=s===a.length-1?void 0:this._removeFlagsGY(a.substring(s+1));let c;try{c=new RegExp(a.substring(1,s),l)}catch(t){throw this._errExpectedButGot("REGEX",e)}return A.regex(r,c)}case 18:{const t=e.lexeme;this._advance();let o=null;if(!(0,i.AV)(t)){const r=t.indexOf("/"),i=t.lastIndexOf("/");if(r!==i&&r>=0){const a=t.slice(r+1,i),s="i"===t[i+1]?"i":"";try{o=new RegExp(a,s)}catch(n){throw this._errExpectedButGot("REGEX",e)}}}if(null===o)throw this._errExpectedButGot("REGEX",e);return B.create(r,o)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,y);const e=this._value();return A.notIn(r,e)}switch(this._peek().type){case 3:{this._advance();const e=this._value();if(18===this._previous().type)return A.equals(r,e);switch(e){case"true":return A.has(r);case"false":return A.not(r);default:return A.equals(r,e)}}case 4:{this._advance();const e=this._value();if(18===this._previous().type)return A.notEquals(r,e);switch(e){case"true":return A.not(r);case"false":return A.has(r);default:return A.notEquals(r,e)}}case 5:return this._advance(),W.create(r,this._value());case 6:return this._advance(),z.create(r,this._value());case 7:return this._advance(),O.create(r,this._value());case 8:return this._advance(),F.create(r,this._value());case 13:return this._advance(),A.in(r,this._value());default:return A.has(r)}}case 20:throw this._parsingErrors.push({message:S,offset:e.offset,lexeme:"",additionalInfo:T}),x._parseError;default:throw this._errExpectedButGot("true | false | KEY \n\t| KEY '=~' REGEX \n\t| KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value",this._peek())}}_value(){const e=this._peek();switch(e.type){case 17:case 18:return this._advance(),e.lexeme;case 11:return this._advance(),"true";case 12:return this._advance(),"false";case 13:return this._advance(),"in";default:return""}}_removeFlagsGY(e){return e.replaceAll(this._flagsGYRe,"")}_previous(){return this._tokens[this._current-1]}_matchOne(e){return!!this._check(e)&&(this._advance(),!0)}_advance(){return this._isAtEnd()||this._current++,this._previous()}_consume(e,t){if(this._check(e))return this._advance();throw this._errExpectedButGot(t,this._peek())}_errExpectedButGot(e,t,n){const r=(0,s.kg)("contextkey.parser.error.expectedButGot","Expected: {0}\nReceived: '{1}'.",e,u.getLexeme(t)),o=t.offset,i=u.getLexeme(t);return this._parsingErrors.push({message:r,offset:o,lexeme:i,additionalInfo:n}),x._parseError}_check(e){return this._peek().type===e}_peek(){return this._tokens[this._current]}_isAtEnd(){return 20===this._peek().type}}class A{static false(){return R.INSTANCE}static true(){return C.INSTANCE}static has(e){return D.create(e)}static equals(e,t){return N.create(e,t)}static notEquals(e,t){return k.create(e,t)}static regex(e,t){return B.create(e,t)}static in(e,t){return M.create(e,t)}static notIn(e,t){return L.create(e,t)}static not(e){return P.create(e)}static and(...e){return V.create(e,null,!0)}static or(...e){return U.create(e,null,!0)}static{this._parser=new x({regexParsingWithErrorRecovery:!1})}static deserialize(e){if(void 0===e||null===e)return;return this._parser.parse(e)}}function I(e,t){return e.cmp(t)}class R{static{this.INSTANCE=new R}constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!1}serialize(){return"false"}keys(){return[]}negate(){return C.INSTANCE}}class C{static{this.INSTANCE=new C}constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!0}serialize(){return"true"}keys(){return[]}negate(){return R.INSTANCE}}class D{static create(e,t=null){const n=f.get(e);return"boolean"===typeof n?n?C.INSTANCE:R.INSTANCE:new D(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=2}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=f.get(this.key);return"boolean"===typeof e?e?C.INSTANCE:R.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=P.create(this.key,this)),this.negated}}class N{static create(e,t,n=null){if("boolean"===typeof t)return t?D.create(e,n):P.create(e,n);const r=f.get(e);if("boolean"===typeof r){return t===(r?"true":"false")?C.INSTANCE:R.INSTANCE}return new N(e,t,n)}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=4}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=f.get(this.key);if("boolean"===typeof e){const t=e?"true":"false";return this.value===t?C.INSTANCE:R.INSTANCE}return this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=k.create(this.key,this.value,this)),this.negated}}class M{static create(e,t){return new M(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=10,this.negated=null}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type&&(this.key===e.key&&this.valueKey===e.valueKey)}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.valueKey),n=e.getValue(this.key);return Array.isArray(t)?t.includes(n):"string"===typeof n&&"object"===typeof t&&null!==t&&m.call(t,n)}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=L.create(this.key,this.valueKey)),this.negated}}class L{static create(e,t){return new L(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=11,this._negated=M.create(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:this._negated.cmp(e._negated)}equals(e){return e.type===this.type&&this._negated.equals(e._negated)}substituteConstants(){return this}evaluate(e){return!this._negated.evaluate(e)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}negate(){return this._negated}}class k{static create(e,t,n=null){if("boolean"===typeof t)return t?P.create(e,n):D.create(e,n);const r=f.get(e);if("boolean"===typeof r){return t===(r?"true":"false")?R.INSTANCE:C.INSTANCE}return new k(e,t,n)}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=5}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=f.get(this.key);if("boolean"===typeof e){const t=e?"true":"false";return this.value===t?R.INSTANCE:C.INSTANCE}return this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=N.create(this.key,this.value,this)),this.negated}}class P{static create(e,t=null){const n=f.get(e);return"boolean"===typeof n?n?R.INSTANCE:C.INSTANCE:new P(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=3}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=f.get(this.key);return"boolean"===typeof e?e?R.INSTANCE:C.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=D.create(this.key,this)),this.negated}}function w(e,t){if("string"===typeof e){const t=parseFloat(e);isNaN(t)||(e=t)}return"string"===typeof e||"number"===typeof e?t(e):R.INSTANCE}class O{static create(e,t,n=null){return w(t,(t=>new O(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=12}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=z.create(this.key,this.value,this)),this.negated}}class F{static create(e,t,n=null){return w(t,(t=>new F(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=13}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=W.create(this.key,this.value,this)),this.negated}}class W{static create(e,t,n=null){return w(t,(t=>new W(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=14}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=F.create(this.key,this.value,this)),this.negated}}class z{static create(e,t,n=null){return w(t,(t=>new z(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=15}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=O.create(this.key,this.value,this)),this.negated}}class B{static create(e,t){return new B(e,t)}constructor(e,t){this.key=e,this.regexp=t,this.type=7,this.negated=null}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.key<e.key)return-1;if(this.key>e.key)return 1;const t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return t<n?-1:t>n?1:0}equals(e){if(e.type===this.type){const t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return this.key===e.key&&t===n}return!1}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.key);return!!this.regexp&&this.regexp.test(t)}serialize(){const e=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=G.create(this)),this.negated}}class G{static create(e){return new G(e)}constructor(e){this._actual=e,this.type=8}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type&&this._actual.equals(e._actual)}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){return`!(${this._actual.serialize()})`}keys(){return this._actual.keys()}negate(){return this._actual}}function j(e){let t=null;for(let n=0,r=e.length;n<r;n++){const r=e[n].substituteConstants();if(e[n]!==r&&null===t){t=[];for(let r=0;r<n;r++)t[r]=e[r]}null!==t&&(t[n]=r)}return null===t?e:t}class V{static create(e,t,n){return V._normalizeArr(e,t,n)}constructor(e,t){this.expr=e,this.negated=t,this.type=6}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,n=this.expr.length;t<n;t++){const n=I(this.expr[t],e.expr[t]);if(0!==n)return n}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){const e=j(this.expr);return e===this.expr?this:V.create(e,this.negated,!1)}evaluate(e){for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].evaluate(e))return!1;return!0}static _normalizeArr(e,t,n){const r=[];let o=!1;for(const i of e)if(i)if(1!==i.type){if(0===i.type)return R.INSTANCE;6!==i.type?r.push(i):r.push(...i.expr)}else o=!0;if(0===r.length&&o)return C.INSTANCE;if(0!==r.length){if(1===r.length)return r[0];r.sort(I);for(let e=1;e<r.length;e++)r[e-1].equals(r[e])&&(r.splice(e,1),e--);if(1===r.length)return r[0];for(;r.length>1;){const e=r[r.length-1];if(9!==e.type)break;r.pop();const t=r.pop(),o=0===r.length,i=U.create(e.expr.map((e=>V.create([e,t],null,n))),null,o);i&&(r.push(i),r.sort(I))}if(1===r.length)return r[0];if(n){for(let e=0;e<r.length;e++)for(let t=e+1;t<r.length;t++)if(r[e].negate().equals(r[t]))return R.INSTANCE;if(1===r.length)return r[0]}return new V(r,t)}}serialize(){return this.expr.map((e=>e.serialize())).join(" && ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());this.negated=U.create(e,this,!0)}return this.negated}}class U{static create(e,t,n){return U._normalizeArr(e,t,n)}constructor(e,t){this.expr=e,this.negated=t,this.type=9}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,n=this.expr.length;t<n;t++){const n=I(this.expr[t],e.expr[t]);if(0!==n)return n}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){const e=j(this.expr);return e===this.expr?this:U.create(e,this.negated,!1)}evaluate(e){for(let t=0,n=this.expr.length;t<n;t++)if(this.expr[t].evaluate(e))return!0;return!1}static _normalizeArr(e,t,n){let r=[],o=!1;if(e){for(let t=0,n=e.length;t<n;t++){const n=e[t];if(n)if(0!==n.type){if(1===n.type)return C.INSTANCE;9!==n.type?r.push(n):r=r.concat(n.expr)}else o=!0}if(0===r.length&&o)return R.INSTANCE;r.sort(I)}if(0!==r.length){if(1===r.length)return r[0];for(let e=1;e<r.length;e++)r[e-1].equals(r[e])&&(r.splice(e,1),e--);if(1===r.length)return r[0];if(n){for(let e=0;e<r.length;e++)for(let t=e+1;t<r.length;t++)if(r[e].negate().equals(r[t]))return C.INSTANCE;if(1===r.length)return r[0]}return new U(r,t)}}serialize(){return this.expr.map((e=>e.serialize())).join(" || ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());for(;e.length>1;){const t=e.shift(),n=e.shift(),r=[];for(const e of J(t))for(const t of J(n))r.push(V.create([e,t],null,!1));e.unshift(U.create(r,null,!1))}this.negated=U.create(e,this,!0)}return this.negated}}class H extends D{static{this._info=[]}static all(){return H._info.values()}constructor(e,t,n){super(e,null),this._defaultValue=t,"object"===typeof n?H._info.push({...n,key:e}):!0!==n&&H._info.push({key:e,description:n,type:null!==t&&void 0!==t?typeof t:void 0})}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return N.create(this.key,e)}}(0,p.u1)("contextKeyService");function K(e,t){return e<t?-1:e>t?1:0}function q(e,t,n,r){return e<n?-1:e>n?1:t<r?-1:t>r?1:0}function J(e){return 9===e.type?e.expr:[e]}const X=(0,p.u1)("logService");var $;!function(e){e[e.Off=0]="Off",e[e.Trace=1]="Trace",e[e.Debug=2]="Debug",e[e.Info=3]="Info",e[e.Warning=4]="Warning",e[e.Error=5]="Error"}($||($={}));$.Info;r.jG;new H("logLevel",function(e){switch(e){case $.Trace:return"trace";case $.Debug:return"debug";case $.Info:return"info";case $.Warning:return"warn";case $.Error:return"error";case $.Off:return"off"}}($.Info))},3591:(e,t,n)=>{"use strict";var r;n.d(t,{_Y:()=>o,u1:()=>i}),function(e){e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=function(t){return t[e.DI_DEPENDENCIES]||[]}}(r||(r={}));const o=i("instantiationService");function i(e){if(r.serviceIds.has(e))return r.serviceIds.get(e);const t=function(e,n,o){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");!function(e,t,n){t[r.DI_TARGET]===t?t[r.DI_DEPENDENCIES].push({id:e,index:n}):(t[r.DI_DEPENDENCIES]=[{id:e,index:n}],t[r.DI_TARGET]=t)}(t,e,o)};return t.toString=()=>e,r.serviceIds.set(e,t),t}},3750:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IModelService:()=>r});const r=(0,n(3591).u1)("modelService")},3941:(e,t,n)=>{"use strict";n.d(t,{W6:()=>l,vH:()=>c});var r=n(8209),o=n(1234),i=n(6359),a=n(1939),s=n(1646);const l=new class{constructor(){this._onDidChangeLanguages=new o.vl,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[]}registerLanguage(e){return this._languages.push(e),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let t=0,n=this._languages.length;t<n;t++)if(this._languages[t]===e)return void this._languages.splice(t,1)}}}getLanguages(){return this._languages}};i.O.add("editor.modesRegistry",l);const c="plaintext";l.registerLanguage({id:c,extensions:[".txt"],aliases:[r.kg("plainText.alias","Plain Text"),"text"],mimetypes:[a.K.text]}),i.O.as(s.Fd.Configuration).registerDefaultConfigurations([{overrides:{"[plaintext]":{"editor.unicodeHighlight.ambiguousCharacters":!1,"editor.unicodeHighlight.invisibleCharacters":!1}}}])},4001:(e,t,n)=>{"use strict";n.d(t,{Mo:()=>o,pG:()=>r});const r=(0,n(3591).u1)("configurationService");function o(e){return e.replace(/[\[\]]/g,"")}},4243:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ISemanticTokensStylingService:()=>r});const r=(0,n(3591).u1)("semanticTokensStylingService")},4272:(e,t,n)=>{"use strict";n.r(t),n.d(t,{KeyMod:()=>me,createMonacoBaseAPI:()=>_e});var r=n(8447),o=n(1234);class i{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}}const a=new i,s=new i,l=new i,c=new Array(230),d={},u=[],p=Object.create(null),f=Object.create(null),m=[],_=[];for(let he=0;he<=193;he++)m[he]=-1;for(let he=0;he<=132;he++)_[he]=-1;var h;!function(){const e="",t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[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,e,0,e,e,e],[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",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],n=[],r=[];for(const o of t){const[e,t,i,h,g,y,v,b,E]=o;if(r[t]||(r[t]=!0,u[t]=i,p[i]=t,f[i.toLowerCase()]=t,e&&(m[t]=h,0!==h&&3!==h&&5!==h&&4!==h&&6!==h&&57!==h&&(_[h]=t))),!n[h]){if(n[h]=!0,!g)throw new Error(`String representation missing for key code ${h} around scan code ${i}`);a.define(h,g),s.define(h,b||g),l.define(h,E||b||g)}y&&(c[y]=h),v&&(d[v]=h)}_[3]=46}(),function(e){e.toString=function(e){return a.keyCodeToStr(e)},e.fromString=function(e){return a.strToKeyCode(e)},e.toUserSettingsUS=function(e){return s.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return l.keyCodeToStr(e)},e.fromUserSettings=function(e){return s.strToKeyCode(e)||l.strToKeyCode(e)},e.toElectronAccelerator=function(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 a.keyCodeToStr(e)}}(h||(h={}));var g,y,v,b,E,S,T,x,A,I,R,C,D,N,M,L,k,P,w,O,F,W,z,B,G,j,V,U,H,K,q,J,X,$,Y,Q,Z,ee,te,ne,re,oe,ie,ae,se,le,ce=n(9400),de=n(3069),ue=n(6677),pe=n(5326),fe=n(2083);!function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"}(g||(g={})),function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"}(y||(y={})),function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(v||(v={})),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.Snippet=27]="Snippet"}(b||(b={})),function(e){e[e.Deprecated=1]="Deprecated"}(E||(E={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(S||(S={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(T||(T={})),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"}(x||(x={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(A||(A={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(I||(I={})),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"}(R||(R={})),function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.ariaRequired=5]="ariaRequired",e[e.autoClosingBrackets=6]="autoClosingBrackets",e[e.autoClosingComments=7]="autoClosingComments",e[e.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=9]="autoClosingDelete",e[e.autoClosingOvertype=10]="autoClosingOvertype",e[e.autoClosingQuotes=11]="autoClosingQuotes",e[e.autoIndent=12]="autoIndent",e[e.automaticLayout=13]="automaticLayout",e[e.autoSurround=14]="autoSurround",e[e.bracketPairColorization=15]="bracketPairColorization",e[e.guides=16]="guides",e[e.codeLens=17]="codeLens",e[e.codeLensFontFamily=18]="codeLensFontFamily",e[e.codeLensFontSize=19]="codeLensFontSize",e[e.colorDecorators=20]="colorDecorators",e[e.colorDecoratorsLimit=21]="colorDecoratorsLimit",e[e.columnSelection=22]="columnSelection",e[e.comments=23]="comments",e[e.contextmenu=24]="contextmenu",e[e.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",e[e.cursorBlinking=26]="cursorBlinking",e[e.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",e[e.cursorStyle=28]="cursorStyle",e[e.cursorSurroundingLines=29]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",e[e.cursorWidth=31]="cursorWidth",e[e.disableLayerHinting=32]="disableLayerHinting",e[e.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",e[e.domReadOnly=34]="domReadOnly",e[e.dragAndDrop=35]="dragAndDrop",e[e.dropIntoEditor=36]="dropIntoEditor",e[e.emptySelectionClipboard=37]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",e[e.extraEditorClassName=39]="extraEditorClassName",e[e.fastScrollSensitivity=40]="fastScrollSensitivity",e[e.find=41]="find",e[e.fixedOverflowWidgets=42]="fixedOverflowWidgets",e[e.folding=43]="folding",e[e.foldingStrategy=44]="foldingStrategy",e[e.foldingHighlight=45]="foldingHighlight",e[e.foldingImportsByDefault=46]="foldingImportsByDefault",e[e.foldingMaximumRegions=47]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=49]="fontFamily",e[e.fontInfo=50]="fontInfo",e[e.fontLigatures=51]="fontLigatures",e[e.fontSize=52]="fontSize",e[e.fontWeight=53]="fontWeight",e[e.fontVariations=54]="fontVariations",e[e.formatOnPaste=55]="formatOnPaste",e[e.formatOnType=56]="formatOnType",e[e.glyphMargin=57]="glyphMargin",e[e.gotoLocation=58]="gotoLocation",e[e.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",e[e.hover=60]="hover",e[e.inDiffEditor=61]="inDiffEditor",e[e.inlineSuggest=62]="inlineSuggest",e[e.inlineEdit=63]="inlineEdit",e[e.letterSpacing=64]="letterSpacing",e[e.lightbulb=65]="lightbulb",e[e.lineDecorationsWidth=66]="lineDecorationsWidth",e[e.lineHeight=67]="lineHeight",e[e.lineNumbers=68]="lineNumbers",e[e.lineNumbersMinChars=69]="lineNumbersMinChars",e[e.linkedEditing=70]="linkedEditing",e[e.links=71]="links",e[e.matchBrackets=72]="matchBrackets",e[e.minimap=73]="minimap",e[e.mouseStyle=74]="mouseStyle",e[e.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=76]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",e[e.multiCursorModifier=78]="multiCursorModifier",e[e.multiCursorPaste=79]="multiCursorPaste",e[e.multiCursorLimit=80]="multiCursorLimit",e[e.occurrencesHighlight=81]="occurrencesHighlight",e[e.overviewRulerBorder=82]="overviewRulerBorder",e[e.overviewRulerLanes=83]="overviewRulerLanes",e[e.padding=84]="padding",e[e.pasteAs=85]="pasteAs",e[e.parameterHints=86]="parameterHints",e[e.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",e[e.placeholder=88]="placeholder",e[e.definitionLinkOpensInPeek=89]="definitionLinkOpensInPeek",e[e.quickSuggestions=90]="quickSuggestions",e[e.quickSuggestionsDelay=91]="quickSuggestionsDelay",e[e.readOnly=92]="readOnly",e[e.readOnlyMessage=93]="readOnlyMessage",e[e.renameOnType=94]="renameOnType",e[e.renderControlCharacters=95]="renderControlCharacters",e[e.renderFinalNewline=96]="renderFinalNewline",e[e.renderLineHighlight=97]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=98]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=99]="renderValidationDecorations",e[e.renderWhitespace=100]="renderWhitespace",e[e.revealHorizontalRightPadding=101]="revealHorizontalRightPadding",e[e.roundedSelection=102]="roundedSelection",e[e.rulers=103]="rulers",e[e.scrollbar=104]="scrollbar",e[e.scrollBeyondLastColumn=105]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=106]="scrollBeyondLastLine",e[e.scrollPredominantAxis=107]="scrollPredominantAxis",e[e.selectionClipboard=108]="selectionClipboard",e[e.selectionHighlight=109]="selectionHighlight",e[e.selectOnLineNumbers=110]="selectOnLineNumbers",e[e.showFoldingControls=111]="showFoldingControls",e[e.showUnused=112]="showUnused",e[e.snippetSuggestions=113]="snippetSuggestions",e[e.smartSelect=114]="smartSelect",e[e.smoothScrolling=115]="smoothScrolling",e[e.stickyScroll=116]="stickyScroll",e[e.stickyTabStops=117]="stickyTabStops",e[e.stopRenderingLineAfter=118]="stopRenderingLineAfter",e[e.suggest=119]="suggest",e[e.suggestFontSize=120]="suggestFontSize",e[e.suggestLineHeight=121]="suggestLineHeight",e[e.suggestOnTriggerCharacters=122]="suggestOnTriggerCharacters",e[e.suggestSelection=123]="suggestSelection",e[e.tabCompletion=124]="tabCompletion",e[e.tabIndex=125]="tabIndex",e[e.unicodeHighlighting=126]="unicodeHighlighting",e[e.unusualLineTerminators=127]="unusualLineTerminators",e[e.useShadowDOM=128]="useShadowDOM",e[e.useTabStops=129]="useTabStops",e[e.wordBreak=130]="wordBreak",e[e.wordSegmenterLocales=131]="wordSegmenterLocales",e[e.wordSeparators=132]="wordSeparators",e[e.wordWrap=133]="wordWrap",e[e.wordWrapBreakAfterCharacters=134]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=135]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=136]="wordWrapColumn",e[e.wordWrapOverride1=137]="wordWrapOverride1",e[e.wordWrapOverride2=138]="wordWrapOverride2",e[e.wrappingIndent=139]="wrappingIndent",e[e.wrappingStrategy=140]="wrappingStrategy",e[e.showDeprecated=141]="showDeprecated",e[e.inlayHints=142]="inlayHints",e[e.editorClassName=143]="editorClassName",e[e.pixelRatio=144]="pixelRatio",e[e.tabFocusMode=145]="tabFocusMode",e[e.layoutInfo=146]="layoutInfo",e[e.wrappingInfo=147]="wrappingInfo",e[e.defaultColorDecorators=148]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=149]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=150]="inlineCompletionsAccessibilityVerbose"}(C||(C={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(D||(D={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}(N||(N={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(M||(M={})),function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(L||(L={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(k||(k={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(P||(P={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(w||(w={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(O||(O={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(F||(F={})),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"}(W||(W={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(z||(z={})),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(B||(B={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(G||(G={})),function(e){e[e.Normal=1]="Normal",e[e.Underlined=2]="Underlined"}(j||(j={})),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"}(V||(V={})),function(e){e[e.AIGenerated=1]="AIGenerated"}(U||(U={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(H||(H={})),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"}(K||(K={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(q||(q={})),function(e){e[e.Word=0]="Word",e[e.Line=1]="Line",e[e.Suggest=2]="Suggest"}(J||(J={})),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"}(X||(X={})),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"}($||($={})),function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"}(Y||(Y={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"}(Q||(Q={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(Z||(Z={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(ee||(ee={})),function(e){e.Off="off",e.OnCode="onCode",e.On="on"}(te||(te={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(ne||(ne={})),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"}(re||(re={})),function(e){e[e.Deprecated=1]="Deprecated"}(oe||(oe={})),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"}(ie||(ie={})),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"}(ae||(ae={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(se||(se={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(le||(le={}));class me{static{this.CtrlCmd=2048}static{this.Shift=1024}static{this.Alt=512}static{this.WinCtrl=256}static chord(e,t){return function(e,t){return(e|(65535&t)<<16>>>0)>>>0}(e,t)}}function _e(){return{editor:void 0,languages:void 0,CancellationTokenSource:r.Qi,Emitter:o.vl,KeyCode:W,KeyMod:me,Position:de.y,Range:ue.Q,Selection:pe.L,SelectionDirection:ee,MarkerSeverity:z,MarkerTag:B,Uri:ce.r,Token:fe.ou}}},4320:(e,t,n)=>{"use strict";var r,o;n.d(t,{cO:()=>d,db:()=>u,fT:()=>a,qK:()=>c});class i{constructor(e,t){this.uri=e,this.value=t}}class a{static{this.defaultToKey=e=>e.toString()}constructor(e,t){if(this[r]="ResourceMap",e instanceof a)this.map=new Map(e.map),this.toKey=t??a.defaultToKey;else if(function(e){return Array.isArray(e)}(e)){this.map=new Map,this.toKey=t??a.defaultToKey;for(const[t,n]of e)this.set(t,n)}else this.map=new Map,this.toKey=e??a.defaultToKey}set(e,t){return this.map.set(this.toKey(e),new i(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){"undefined"!==typeof t&&(e=e.bind(t));for(const[n,r]of this.map)e(r.value,r.uri,this)}*values(){for(const e of this.map.values())yield e.value}*keys(){for(const e of this.map.values())yield e.uri}*entries(){for(const e of this.map.values())yield[e.uri,e.value]}*[(r=Symbol.toStringTag,Symbol.iterator)](){for(const[,e]of this.map)yield[e.uri,e.value]}}class s{constructor(){this[o]="LinkedMap",this._map=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){const n=this._map.get(e);if(n)return 0!==t&&this.touch(n,t),n.value}set(e,t,n=0){let r=this._map.get(e);if(r)r.value=t,0!==n&&this.touch(r,n);else{switch(r={key:e,value:t,next:void 0,previous:void 0},n){case 0:case 2:default:this.addItemLast(r);break;case 1:this.addItemFirst(r)}this._map.set(e,r),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const 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 new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const n=this._state;let 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 new Error("LinkedMap got modified during iteration.");r=r.next}}keys(){const e=this,t=this._state;let n=this._head;const r={[Symbol.iterator]:()=>r,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.key,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return r}values(){const e=this,t=this._state;let n=this._head;const r={[Symbol.iterator]:()=>r,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.value,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return r}entries(){const e=this,t=this._state;let n=this._head;const r={[Symbol.iterator]:()=>r,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:[n.key,n.value],done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return r}[(o=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();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(0===e)return void this.clear();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){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;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 new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,n=e.previous;if(!t||!n)throw new 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 new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;const 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(2===t){if(e===this._tail)return;const 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(){const e=[];return this.forEach(((t,n)=>{e.push([n,t])})),e}fromJSON(e){this.clear();for(const[t,n]of e)this.set(t,n)}}class l extends s{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))}}class c extends l{constructor(e,t=1){super(e,t)}trim(e){this.trimOld(e)}set(e,t){return super.set(e,t),this.checkTrim(),this}}class d{constructor(e){if(this._m1=new Map,this._m2=new Map,e)for(const[t,n]of e)this.set(t,n)}clear(){this._m1.clear(),this._m2.clear()}set(e,t){this._m1.set(e,t),this._m2.set(t,e)}get(e){return this._m1.get(e)}getKey(e){return this._m2.get(e)}delete(e){const t=this._m1.get(e);return void 0!==t&&(this._m1.delete(e),this._m2.delete(t),!0)}keys(){return this._m1.keys()}values(){return this._m1.values()}}class u{constructor(){this.map=new Map}add(e,t){let n=this.map.get(e);n||(n=new Set,this.map.set(e,n)),n.add(t)}delete(e,t){const n=this.map.get(e);n&&(n.delete(t),0===n.size&&this.map.delete(e))}forEach(e,t){const n=this.map.get(e);n&&n.forEach(t)}get(e){const t=this.map.get(e);return t||new Set}}},4383:(e,t,n)=>{"use strict";n.d(t,{D7:()=>f,EM:()=>u,Qg:()=>c,cU:()=>i,dz:()=>o,iH:()=>d});const r=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((()=>{if(e.stack){if(p.isErrorNoTelemetry(e))throw new p(e.message+"\n\n"+e.stack);throw new Error(e.message+"\n\n"+e.stack)}throw e}),0)}}emit(e){this.listeners.forEach((t=>{t(e)}))}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function o(e){s(e)||r.onUnexpectedError(e)}function i(e){if(e instanceof Error){const{name:t,message:n}=e;return{$isError:!0,name:t,message:n,stack:e.stacktrace||e.stack,noTelemetry:p.isErrorNoTelemetry(e)}}return e}const a="Canceled";function s(e){return e instanceof l||e instanceof Error&&e.name===a&&e.message===a}class l extends Error{constructor(){super(a),this.name=this.message}}function c(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")}function d(e){return e?new Error(`Illegal state: ${e}`):new Error("Illegal state")}class u extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class p extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof p)return e;const t=new p;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return"CodeExpectedError"===e.name}}class f extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,f.prototype)}}},4432:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITreeSitterParserService:()=>r});const r=(0,n(3591).u1)("treeSitterParserService")},4444:(e,t,n)=>{"use strict";n.d(t,{L:()=>o});var r=n(4383);class o{static addRange(e,t){let n=0;for(;n<t.length&&t[n].endExclusive<e.start;)n++;let r=n;for(;r<t.length&&t[r].start<=e.endExclusive;)r++;if(n===r)t.splice(n,0,e);else{const i=Math.min(e.start,t[n].start),a=Math.max(e.endExclusive,t[r-1].endExclusive);t.splice(n,r-n,new o(i,a))}}static tryCreate(e,t){if(!(e>t))return new o(e,t)}static ofLength(e){return new o(0,e)}static ofStartAndLength(e,t){return new o(e,e+t)}constructor(e,t){if(this.start=e,this.endExclusive=t,e>t)throw new r.D7(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new o(this.start+e,this.endExclusive+e)}deltaStart(e){return new o(this.start+e,this.endExclusive)}deltaEnd(e){return new o(this.start,this.endExclusive+e)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}contains(e){return this.start<=e&&e<this.endExclusive}join(e){return new o(Math.min(this.start,e.start),Math.max(this.endExclusive,e.endExclusive))}intersect(e){const t=Math.max(this.start,e.start),n=Math.min(this.endExclusive,e.endExclusive);if(t<=n)return new o(t,n)}intersects(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 r.D7(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,e))}clipCyclic(e){if(this.isEmpty)throw new r.D7(`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)}}},4454:(e,t,n)=>{"use strict";function r(e){let t=0,n=0,r=0,o=0;for(let i=0,a=e.length;i<a;i++){const s=e.charCodeAt(i);13===s?(0===t&&(n=i),t++,i+1<a&&10===e.charCodeAt(i+1)?(o|=2,i++):o|=3,r=i+1):10===s&&(o|=1,0===t&&(n=i),t++,r=i+1)}return 0===t&&(n=e.length),[t,n,e.length-r,o]}n.d(t,{W:()=>r})},4621:(e,t,n)=>{"use strict";n.d(t,{v:()=>i});class r{constructor(e,t=[],n=!1){this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=n}}const o=[];function i(e,t,n){t instanceof r||(t=new r(t,[],Boolean(n))),o.push([e,t])}},4855:(e,t,n)=>{"use strict";n.r(t),n.d(t,{UnicodeTextModelHighlighter:()=>l});var r=n(6677),o=n(7729),i=n(1508),a=n(6782),s=n(6486);class l{static computeUnicodeHighlights(e,t,n){const l=n?n.startLineNumber:1,d=n?n.endLineNumber:e.getLineCount(),u=new c(t),p=u.getCandidateCodePoints();let f;var m;f="allNonBasicAscii"===p?new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):new RegExp(""+(m=Array.from(p),`[${i.bm(m.map((e=>String.fromCodePoint(e))).join(""))}]`),"g");const _=new o.W5(null,f),h=[];let g,y=!1,v=0,b=0,E=0;e:for(let o=l,c=d;o<=c;o++){const t=e.getLineContent(o),n=t.length;_.reset(0);do{if(g=_.next(t),g){let e=g.index,l=g.index+g[0].length;if(e>0){const n=t.charCodeAt(e-1);i.pc(n)&&e--}if(l+1<n){const e=t.charCodeAt(l-1);i.pc(e)&&l++}const c=t.substring(e,l);let d=(0,s.Th)(e+1,s.Ld,t,0);d&&d.endColumn<=e+1&&(d=null);const p=u.shouldHighlightNonBasicASCII(c,d?d.word:null);if(0!==p){3===p?v++:2===p?b++:1===p?E++:(0,a.xb)(p);const t=1e3;if(h.length>=t){y=!0;break e}h.push(new r.Q(o,e+1,o,l+1))}}}while(g)}return{ranges:h,hasMore:y,ambiguousCharacterCount:v,invisibleCharacterCount:b,nonBasicAsciiCharacterCount:E}}static computeUnicodeHighlightReason(e,t){const n=new c(t);switch(n.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const r=e.codePointAt(0),o=n.ambiguousCharacters.getPrimaryConfusable(r),a=i.tl.getLocales().filter((e=>!i.tl.getInstance(new Set([...t.allowedLocales,e])).isAmbiguous(r)));return{kind:0,confusableWith:String.fromCodePoint(o),notAmbiguousInLocales:a}}case 1:return{kind:2}}}}class c{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=i.tl.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const t of i.y_.codePoints)d(String.fromCodePoint(t))||e.add(t);if(this.options.ambiguousCharacters)for(const t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(const t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e,t){const n=e.codePointAt(0);if(this.allowedCodePoints.has(n))return 0;if(this.options.nonBasicASCII)return 1;let r=!1,o=!1;if(t)for(const a of t){const e=a.codePointAt(0),t=i.aC(a);r=r||t,t||this.ambiguousCharacters.isAmbiguous(e)||i.y_.isInvisibleCharacter(e)||(o=!0)}return!r&&o?0:this.options.invisibleCharacters&&!d(e)&&i.y_.isInvisibleCharacter(n)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(n)?3:0}}function d(e){return" "===e||"\n"===e||"\t"===e}},5152:(e,t,n)=>{"use strict";function r(e){return e<0?0:e>255?255:0|e}function o(e){return e<0?0:e>4294967295?4294967295:0|e}n.d(t,{W:()=>r,j:()=>o})},5196:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BaseEditorSimpleWorker:()=>We,EditorSimpleWorker:()=>ze,create:()=>Be});class r{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}}var o=n(5600);class i{constructor(e){this.source=e}getElements(){const 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 a(e,t,n){return new d(new i(e),new i(t)).ComputeDiff(n).changes}class s{static Assert(e,t){if(!e)throw new Error(t)}}class l{static Copy(e,t,n,r,o){for(let i=0;i<o;i++)n[r+i]=e[t+i]}static Copy2(e,t,n,r,o){for(let i=0;i<o;i++)n[r+i]=e[t+i]}}class c{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 r(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}}class d{constructor(e,t,n=null){this.ContinueProcessingPredicate=n,this._originalSequence=e,this._modifiedSequence=t;const[r,o,i]=d._getElements(e),[a,s,l]=d._getElements(t);this._hasStrings=i&&l,this._originalStringElements=r,this._originalElementsOrHash=o,this._modifiedStringElements=a,this._modifiedElementsOrHash=s,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"===typeof e[0]}static _getElements(e){const t=e.getElements();if(d._isStringArray(t)){const e=new Int32Array(t.length);for(let n=0,r=t.length;n<r;n++)e[n]=(0,o.e2)(t[n],0);return[t,e,!0]}return t instanceof Int32Array?[[],t,!1]:[[],new Int32Array(t),!1]}ElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._modifiedStringElements[t])}ElementsAreStrictEqual(e,t){if(!this.ElementsAreEqual(e,t))return!1;return d._getStrictElement(this._originalSequence,e)===d._getStrictElement(this._modifiedSequence,t)}static _getStrictElement(e,t){return"function"===typeof e.getStrictElement?e.getStrictElement(t):null}OriginalElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._originalElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._originalStringElements[t])}ModifiedElementsAreEqual(e,t){return this._modifiedElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._modifiedStringElements[e]===this._modifiedStringElements[t])}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,t,n,r,o){const i=[!1];let a=this.ComputeDiffRecursive(e,t,n,r,i);return o&&(a=this.PrettifyChanges(a)),{quitEarly:i[0],changes:a}}ComputeDiffRecursive(e,t,n,o,i){for(i[0]=!1;e<=t&&n<=o&&this.ElementsAreEqual(e,n);)e++,n++;for(;t>=e&&o>=n&&this.ElementsAreEqual(t,o);)t--,o--;if(e>t||n>o){let i;return n<=o?(s.Assert(e===t+1,"originalStart should only be one more than originalEnd"),i=[new r(e,0,n,o-n+1)]):e<=t?(s.Assert(n===o+1,"modifiedStart should only be one more than modifiedEnd"),i=[new r(e,t-e+1,n,0)]):(s.Assert(e===t+1,"originalStart should only be one more than originalEnd"),s.Assert(n===o+1,"modifiedStart should only be one more than modifiedEnd"),i=[]),i}const a=[0],l=[0],c=this.ComputeRecursionPoint(e,t,n,o,a,l,i),d=a[0],u=l[0];if(null!==c)return c;if(!i[0]){const a=this.ComputeDiffRecursive(e,d,n,u,i);let s=[];return s=i[0]?[new r(d+1,t-(d+1)+1,u+1,o-(u+1)+1)]:this.ComputeDiffRecursive(d+1,t,u+1,o,i),this.ConcatenateChanges(a,s)}return[new r(e,t-e+1,n,o-n+1)]}WALKTRACE(e,t,n,o,i,a,s,l,d,u,p,f,m,_,h,g,y,v){let b=null,E=null,S=new c,T=t,x=n,A=m[0]-g[0]-o,I=-1073741824,R=this.m_forwardHistory.length-1;do{const t=A+e;t===T||t<x&&d[t-1]<d[t+1]?(_=(p=d[t+1])-A-o,p<I&&S.MarkNextChange(),I=p,S.AddModifiedElement(p+1,_),A=t+1-e):(_=(p=d[t-1]+1)-A-o,p<I&&S.MarkNextChange(),I=p-1,S.AddOriginalElement(p,_+1),A=t-1-e),R>=0&&(e=(d=this.m_forwardHistory[R])[0],T=1,x=d.length-1)}while(--R>=-1);if(b=S.getReverseChanges(),v[0]){let e=m[0]+1,t=g[0]+1;if(null!==b&&b.length>0){const n=b[b.length-1];e=Math.max(e,n.getOriginalEnd()),t=Math.max(t,n.getModifiedEnd())}E=[new r(e,f-e+1,t,h-t+1)]}else{S=new c,T=a,x=s,A=m[0]-g[0]-l,I=1073741824,R=y?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=A+i;e===T||e<x&&u[e-1]>=u[e+1]?(_=(p=u[e+1]-1)-A-l,p>I&&S.MarkNextChange(),I=p+1,S.AddOriginalElement(p+1,_+1),A=e+1-i):(_=(p=u[e-1])-A-l,p>I&&S.MarkNextChange(),I=p,S.AddModifiedElement(p+1,_+1),A=e-1-i),R>=0&&(i=(u=this.m_reverseHistory[R])[0],T=1,x=u.length-1)}while(--R>=-1);E=S.getChanges()}return this.ConcatenateChanges(b,E)}ComputeRecursionPoint(e,t,n,o,i,a,s){let c=0,d=0,u=0,p=0,f=0,m=0;e--,n--,i[0]=0,a[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const _=t-e+(o-n),h=_+1,g=new Int32Array(h),y=new Int32Array(h),v=o-n,b=t-e,E=e-n,S=t-o,T=(b-v)%2===0;g[v]=e,y[b]=t,s[0]=!1;for(let x=1;x<=_/2+1;x++){let _=0,A=0;u=this.ClipDiagonalBound(v-x,x,v,h),p=this.ClipDiagonalBound(v+x,x,v,h);for(let e=u;e<=p;e+=2){c=e===u||e<p&&g[e-1]<g[e+1]?g[e+1]:g[e-1]+1,d=c-(e-v)-E;const n=c;for(;c<t&&d<o&&this.ElementsAreEqual(c+1,d+1);)c++,d++;if(g[e]=c,c+d>_+A&&(_=c,A=d),!T&&Math.abs(e-b)<=x-1&&c>=y[e])return i[0]=c,a[0]=d,n<=y[e]&&x<=1448?this.WALKTRACE(v,u,p,E,b,f,m,S,g,y,c,t,i,d,o,a,T,s):null}const I=(_-e+(A-n)-x)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(_,I))return s[0]=!0,i[0]=_,a[0]=A,I>0&&x<=1448?this.WALKTRACE(v,u,p,E,b,f,m,S,g,y,c,t,i,d,o,a,T,s):(e++,n++,[new r(e,t-e+1,n,o-n+1)]);f=this.ClipDiagonalBound(b-x,x,b,h),m=this.ClipDiagonalBound(b+x,x,b,h);for(let r=f;r<=m;r+=2){c=r===f||r<m&&y[r-1]>=y[r+1]?y[r+1]-1:y[r-1],d=c-(r-b)-S;const l=c;for(;c>e&&d>n&&this.ElementsAreEqual(c,d);)c--,d--;if(y[r]=c,T&&Math.abs(r-v)<=x&&c<=g[r])return i[0]=c,a[0]=d,l>=g[r]&&x<=1448?this.WALKTRACE(v,u,p,E,b,f,m,S,g,y,c,t,i,d,o,a,T,s):null}if(x<=1447){let e=new Int32Array(p-u+2);e[0]=v-u+1,l.Copy2(g,u,e,1,p-u+1),this.m_forwardHistory.push(e),e=new Int32Array(m-f+2),e[0]=b-f+1,l.Copy2(y,f,e,1,m-f+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(v,u,p,E,b,f,m,S,g,y,c,t,i,d,o,a,T,s)}PrettifyChanges(e){for(let t=0;t<e.length;t++){const n=e[t],r=t<e.length-1?e[t+1].originalStart:this._originalElementsOrHash.length,o=t<e.length-1?e[t+1].modifiedStart:this._modifiedElementsOrHash.length,i=n.originalLength>0,a=n.modifiedLength>0;for(;n.originalStart+n.originalLength<r&&n.modifiedStart+n.modifiedLength<o&&(!i||this.OriginalElementsAreEqual(n.originalStart,n.originalStart+n.originalLength))&&(!a||this.ModifiedElementsAreEqual(n.modifiedStart,n.modifiedStart+n.modifiedLength));){const e=this.ElementsAreStrictEqual(n.originalStart,n.modifiedStart);if(this.ElementsAreStrictEqual(n.originalStart+n.originalLength,n.modifiedStart+n.modifiedLength)&&!e)break;n.originalStart++,n.modifiedStart++}const 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--){const n=e[t];let r=0,o=0;if(t>0){const n=e[t-1];r=n.originalStart+n.originalLength,o=n.modifiedStart+n.modifiedLength}const i=n.originalLength>0,a=n.modifiedLength>0;let s=0,l=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let e=1;;e++){const t=n.originalStart-e,c=n.modifiedStart-e;if(t<r||c<o)break;if(i&&!this.OriginalElementsAreEqual(t,t+n.originalLength))break;if(a&&!this.ModifiedElementsAreEqual(c,c+n.modifiedLength))break;const d=(t===r&&c===o?5:0)+this._boundaryScore(t,n.originalLength,c,n.modifiedLength);d>l&&(l=d,s=e)}n.originalStart-=s,n.modifiedStart-=s;const c=[null];t>0&&this.ChangesOverlap(e[t-1],e[t],c)&&(e[t-1]=c[0],e.splice(t,1),t++)}if(this._hasStrings)for(let t=1,n=e.length;t<n;t++){const n=e[t-1],r=e[t],o=r.originalStart-n.originalStart-n.originalLength,i=n.originalStart,a=r.originalStart+r.originalLength,s=a-i,l=n.modifiedStart,c=r.modifiedStart+r.modifiedLength,d=c-l;if(o<5&&s<20&&d<20){const e=this._findBetterContiguousSequence(i,s,l,d,o);if(e){const[t,i]=e;t===n.originalStart+n.originalLength&&i===n.modifiedStart+n.modifiedLength||(n.originalLength=t-n.originalStart,n.modifiedLength=i-n.modifiedStart,r.originalStart=t+o,r.modifiedStart=i+o,r.originalLength=a-r.originalStart,r.modifiedLength=c-r.modifiedStart)}}}return e}_findBetterContiguousSequence(e,t,n,r,o){if(t<o||r<o)return null;const i=e+t-o+1,a=n+r-o+1;let s=0,l=0,c=0;for(let d=e;d<i;d++)for(let e=n;e<a;e++){const t=this._contiguousSequenceScore(d,e,o);t>0&&t>s&&(s=t,l=d,c=e)}return s>0?[l,c]:null}_contiguousSequenceScore(e,t,n){let r=0;for(let o=0;o<n;o++){if(!this.ElementsAreEqual(e+o,t+o))return 0;r+=this._originalStringElements[e+o].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){const 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){const 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)?1:0)+(this._ModifiedRegionIsBoundary(n,r)?1:0)}ConcatenateChanges(e,t){const n=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){const r=new Array(e.length+t.length-1);return l.Copy(e,0,r,0,e.length-1),r[e.length-1]=n[0],l.Copy(t,1,r,e.length,t.length-1),r}{const n=new Array(e.length+t.length);return l.Copy(e,0,n,0,e.length),l.Copy(t,0,n,e.length,t.length),n}}ChangesOverlap(e,t,n){if(s.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),s.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){const o=e.originalStart;let i=e.originalLength;const a=e.modifiedStart;let s=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(i=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(s=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new r(o,i,a,s),!0}return n[0]=null,!1}ClipDiagonalBound(e,t,n,r){if(e>=0&&e<r)return e;const o=t%2===0;if(e<0){return o===(n%2===0)?0:1}return o===((r-n-1)%2===0)?r-1:r-2}}var u=n(6677),p=n(534);class f{constructor(e,t,n){const r=new Uint8Array(e*t);for(let o=0,i=e*t;o<i;o++)r[o]=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}}class m{constructor(e){let t=0,n=0;for(let o=0,i=e.length;o<i;o++){const[r,i,a]=e[o];i>t&&(t=i),r>n&&(n=r),a>n&&(n=a)}t++,n++;const r=new f(n,t,0);for(let o=0,i=e.length;o<i;o++){const[t,n,i]=e[o];r.set(t,n,i)}this._states=r,this._maxCharCode=t}nextState(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)}}let _=null;let h=null;class g{static _createLink(e,t,n,r,o){let i=o-1;do{const n=t.charCodeAt(i);if(2!==e.get(n))break;i--}while(i>r);if(r>0){const e=t.charCodeAt(r-1),n=t.charCodeAt(i);(40===e&&41===n||91===e&&93===n||123===e&&125===n)&&i--}return{range:{startLineNumber:n,startColumn:r+1,endLineNumber:n,endColumn:i+2},url:t.substring(r,i+1)}}static computeLinks(e,t=function(){return null===_&&(_=new m([[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]])),_}()){const n=function(){if(null===h){h=new p.V(0);const e=" \t<>'\"\u3001\u3002\uff61\uff64\uff0c\uff0e\uff1a\uff1b\u2018\u3008\u300c\u300e\u3014\uff08\uff3b\uff5b\uff62\uff63\uff5d\uff3d\uff09\u3015\u300f\u300d\u3009\u2019\uff40\uff5e\u2026";for(let n=0;n<e.length;n++)h.set(e.charCodeAt(n),1);const t=".,;:";for(let n=0;n<t.length;n++)h.set(t.charCodeAt(n),2)}return h}(),r=[];for(let o=1,i=e.getLineCount();o<=i;o++){const i=e.getLineContent(o),a=i.length;let s=0,l=0,c=0,d=1,u=!1,p=!1,f=!1,m=!1;for(;s<a;){let e=!1;const a=i.charCodeAt(s);if(13===d){let t;switch(a){case 40:u=!0,t=0;break;case 41:t=u?0:1;break;case 91:f=!0,p=!0,t=0;break;case 93:f=!1,t=p?0:1;break;case 123:m=!0,t=0;break;case 125:t=m?0:1;break;case 39:case 34:case 96:t=c===a?1:39===c||34===c||96===c?0:1;break;case 42:t=42===c?1:0;break;case 124:t=124===c?1:0;break;case 32:t=f?0:1;break;default:t=n.get(a)}1===t&&(r.push(g._createLink(n,i,o,l,s)),e=!0)}else if(12===d){let t;91===a?(p=!0,t=0):t=n.get(a),1===t?e=!0:d=13}else d=t.nextState(d,a),0===d&&(e=!0);e&&(d=1,u=!1,p=!1,m=!1,l=s+1,c=a),s++}13===d&&r.push(g._createLink(n,i,o,l,a))}return r}}class y{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}static{this.INSTANCE=new y}navigateValueSet(e,t,n,r,o){if(e&&t){const n=this.doNavigateValueSet(t,o);if(n)return{range:e,value:n}}if(n&&r){const e=this.doNavigateValueSet(r,o);if(e)return{range:n,value:e}}return null}doNavigateValueSet(e,t){const n=this.numberReplace(e,t);return null!==n?n:this.textReplace(e,t)}numberReplace(e,t){const n=Math.pow(10,e.length-(e.lastIndexOf(".")+1));let r=Number(e);const o=parseFloat(e);return isNaN(r)||isNaN(o)||r!==o?null:0!==r||t?(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 o=0,i=e.length;null===r&&o<i;o++)r=this.valueSetReplace(e[o],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}}var v=n(4272),b=n(718),E=n(8381),S=n(4855);class T{constructor(e,t,n){this.changes=e,this.moves=t,this.hitTimeout=n}}class x{constructor(e,t){this.lineRangeMapping=e,this.changes=t}}var A=n(4383),I=n(6571),R=n(3069),C=n(6782),D=n(4444);n(973);class N{constructor(e,t){this.range=e,this.text=t}toSingleEditOperation(){return{range:this.range,text:this.text}}}class M{static inverse(e,t,n){const r=[];let o=1,i=1;for(const s of e){const e=new M(new I.M(o,s.original.startLineNumber),new I.M(i,s.modified.startLineNumber));e.modified.isEmpty||r.push(e),o=s.original.endLineNumberExclusive,i=s.modified.endLineNumberExclusive}const a=new M(new I.M(o,t+1),new I.M(i,n+1));return a.modified.isEmpty||r.push(a),r}static clip(e,t,n){const r=[];for(const o of e){const e=o.original.intersect(t),i=o.modified.intersect(n);e&&!e.isEmpty&&i&&!i.isEmpty&&r.push(new M(e,i))}return r}constructor(e,t){this.original=e,this.modified=t}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new M(this.modified,this.original)}join(e){return new M(this.original.join(e.original),this.modified.join(e.modified))}toRangeMapping(){const e=this.original.toInclusiveRange(),t=this.modified.toInclusiveRange();if(e&&t)return new w(e,t);if(1===this.original.startLineNumber||1===this.modified.startLineNumber){if(1!==this.modified.startLineNumber||1!==this.original.startLineNumber)throw new A.D7("not a valid diff");return new w(new u.Q(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new u.Q(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}return new w(new u.Q(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new u.Q(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}toRangeMapping2(e,t){if(k(this.original.endLineNumberExclusive,e)&&k(this.modified.endLineNumberExclusive,t))return new w(new u.Q(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new u.Q(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1));if(!this.original.isEmpty&&!this.modified.isEmpty)return new w(u.Q.fromPositions(new R.y(this.original.startLineNumber,1),L(new R.y(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),u.Q.fromPositions(new R.y(this.modified.startLineNumber,1),L(new R.y(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)));if(this.original.startLineNumber>1&&this.modified.startLineNumber>1)return new w(u.Q.fromPositions(L(new R.y(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER),e),L(new R.y(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),u.Q.fromPositions(L(new R.y(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER),t),L(new R.y(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)));throw new A.D7}}function L(e,t){if(e.lineNumber<1)return new R.y(1,1);if(e.lineNumber>t.length)return new R.y(t.length,t[t.length-1].length+1);const n=t[e.lineNumber-1];return e.column>n.length+1?new R.y(e.lineNumber,n.length+1):e}function k(e,t){return e>=1&&e<=t.length}class P extends M{static fromRangeMappings(e){const t=I.M.join(e.map((e=>I.M.fromRangeInclusive(e.originalRange)))),n=I.M.join(e.map((e=>I.M.fromRangeInclusive(e.modifiedRange))));return new P(t,n,e)}constructor(e,t,n){super(e,t),this.innerChanges=n}flip(){return new P(this.modified,this.original,this.innerChanges?.map((e=>e.flip())))}withInnerChangesFromLineRanges(){return new P(this.original,this.modified,[this.toRangeMapping()])}}class w{static assertSorted(e){for(let t=1;t<e.length;t++){const n=e[t-1],r=e[t];if(!n.originalRange.getEndPosition().isBeforeOrEqual(r.originalRange.getStartPosition())||!n.modifiedRange.getEndPosition().isBeforeOrEqual(r.modifiedRange.getStartPosition()))throw new A.D7("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 w(this.modifiedRange,this.originalRange)}toTextEdit(e){const t=e.getValueOfRange(this.modifiedRange);return new N(this.originalRange,t)}}var O=n(1508);class F{computeDiff(e,t,n){const r=new V(e,t,{maxComputationTime:n.maxComputationTimeMs,shouldIgnoreTrimWhitespace:n.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),o=[];let i=null;for(const a of r.changes){let e,t;e=0===a.originalEndLineNumber?new I.M(a.originalStartLineNumber+1,a.originalStartLineNumber+1):new I.M(a.originalStartLineNumber,a.originalEndLineNumber+1),t=0===a.modifiedEndLineNumber?new I.M(a.modifiedStartLineNumber+1,a.modifiedStartLineNumber+1):new I.M(a.modifiedStartLineNumber,a.modifiedEndLineNumber+1);let n=new P(e,t,a.charChanges?.map((e=>new w(new u.Q(e.originalStartLineNumber,e.originalStartColumn,e.originalEndLineNumber,e.originalEndColumn),new u.Q(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)))));i&&(i.modified.endLineNumberExclusive!==n.modified.startLineNumber&&i.original.endLineNumberExclusive!==n.original.startLineNumber||(n=new P(i.original.join(n.original),i.modified.join(n.modified),i.innerChanges&&n.innerChanges?i.innerChanges.concat(n.innerChanges):void 0),o.pop())),o.push(n),i=n}return(0,C.Ft)((()=>(0,C.Xo)(o,((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 T(o,[],r.quitEarly)}}function W(e,t,n,r){return new d(e,t,n).ComputeDiff(r)}class z{constructor(e){const t=[],n=[];for(let r=0,o=e.length;r<o;r++)t[r]=U(e[r],1),n[r]=H(e[r],1);this.lines=e,this._startColumns=t,this._endColumns=n}getElements(){const 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){const r=[],o=[],i=[];let a=0;for(let s=t;s<=n;s++){const t=this.lines[s],l=e?this._startColumns[s]:1,c=e?this._endColumns[s]:t.length+1;for(let e=l;e<c;e++)r[a]=t.charCodeAt(e-1),o[a]=s+1,i[a]=e,a++;!e&&s<n&&(r[a]=10,o[a]=s+1,i[a]=t.length+1,a++)}return new B(r,o,i)}}class B{constructor(e,t,n){this._charCodes=e,this._lineNumbers=t,this._columns=n}toString(){return"["+this._charCodes.map(((e,t)=>(10===e?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[t]},${this._columns[t]})`)).join(", ")+"]"}_assertIndex(e,t){if(e<0||e>=t.length)throw new 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-1===e?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),10===this._charCodes[e]?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-1===e?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),10===this._charCodes[e]?1:this._columns[e]+1)}}class G{constructor(e,t,n,r,o,i,a,s){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=n,this.originalEndColumn=r,this.modifiedStartLineNumber=o,this.modifiedStartColumn=i,this.modifiedEndLineNumber=a,this.modifiedEndColumn=s}static createFromDiffChange(e,t,n){const r=t.getStartLineNumber(e.originalStart),o=t.getStartColumn(e.originalStart),i=t.getEndLineNumber(e.originalStart+e.originalLength-1),a=t.getEndColumn(e.originalStart+e.originalLength-1),s=n.getStartLineNumber(e.modifiedStart),l=n.getStartColumn(e.modifiedStart),c=n.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),d=n.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new G(r,o,i,a,s,l,c,d)}}class j{constructor(e,t,n,r,o){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=n,this.modifiedEndLineNumber=r,this.charChanges=o}static createFromDiffResult(e,t,n,r,o,i,a){let s,l,c,d,u;if(0===t.originalLength?(s=n.getStartLineNumber(t.originalStart)-1,l=0):(s=n.getStartLineNumber(t.originalStart),l=n.getEndLineNumber(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(c=r.getStartLineNumber(t.modifiedStart)-1,d=0):(c=r.getStartLineNumber(t.modifiedStart),d=r.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),i&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&o()){const i=n.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),s=r.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);if(i.getElements().length>0&&s.getElements().length>0){let e=W(i,s,o,!0).changes;a&&(e=function(e){if(e.length<=1)return e;const t=[e[0]];let n=t[0];for(let r=1,o=e.length;r<o;r++){const o=e[r],i=o.originalStart-(n.originalStart+n.originalLength),a=o.modifiedStart-(n.modifiedStart+n.modifiedLength);Math.min(i,a)<3?(n.originalLength=o.originalStart+o.originalLength-n.originalStart,n.modifiedLength=o.modifiedStart+o.modifiedLength-n.modifiedStart):(t.push(o),n=o)}return t}(e)),u=[];for(let t=0,n=e.length;t<n;t++)u.push(G.createFromDiffChange(e[t],i,s))}}return new j(s,l,c,d,u)}}class V{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 z(e),this.modified=new z(t),this.continueLineDiff=K(n.maxComputationTime),this.continueCharDiff=K(0===n.maxComputationTime?0:Math.min(n.maxComputationTime,5e3))}computeDiff(){if(1===this.original.lines.length&&0===this.original.lines[0].length)return 1===this.modified.lines.length&&0===this.modified.lines[0].length?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(1===this.modified.lines.length&&0===this.modified.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const e=W(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=e.changes,n=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){const e=[];for(let n=0,r=t.length;n<r;n++)e.push(j.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[n],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:n,changes:e}}const r=[];let o=0,i=0;for(let a=-1,s=t.length;a<s;a++){const e=a+1<s?t[a+1]:null,n=e?e.originalStart:this.originalLines.length,l=e?e.modifiedStart:this.modifiedLines.length;for(;o<n&&i<l;){const e=this.originalLines[o],t=this.modifiedLines[i];if(e!==t){{let n=U(e,1),a=U(t,1);for(;n>1&&a>1;){if(e.charCodeAt(n-2)!==t.charCodeAt(a-2))break;n--,a--}(n>1||a>1)&&this._pushTrimWhitespaceCharChange(r,o+1,1,n,i+1,1,a)}{let n=H(e,1),a=H(t,1);const s=e.length+1,l=t.length+1;for(;n<s&&a<l;){if(e.charCodeAt(n-1)!==e.charCodeAt(a-1))break;n++,a++}(n<s||a<l)&&this._pushTrimWhitespaceCharChange(r,o+1,n,s,i+1,a,l)}}o++,i++}e&&(r.push(j.createFromDiffResult(this.shouldIgnoreTrimWhitespace,e,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),o+=e.originalLength,i+=e.modifiedLength)}return{quitEarly:n,changes:r}}_pushTrimWhitespaceCharChange(e,t,n,r,o,i,a){if(this._mergeTrimWhitespaceCharChange(e,t,n,r,o,i,a))return;let s;this.shouldComputeCharChanges&&(s=[new G(t,n,t,r,o,i,o,a)]),e.push(new j(t,t,o,o,s))}_mergeTrimWhitespaceCharChange(e,t,n,r,o,i,a){const s=e.length;if(0===s)return!1;const l=e[s-1];return 0!==l.originalEndLineNumber&&0!==l.modifiedEndLineNumber&&(l.originalEndLineNumber===t&&l.modifiedEndLineNumber===o?(this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new G(t,n,t,r,o,i,o,a)),!0):l.originalEndLineNumber+1===t&&l.modifiedEndLineNumber+1===o&&(l.originalEndLineNumber=t,l.modifiedEndLineNumber=o,this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new G(t,n,t,r,o,i,o,a)),!0))}}function U(e,t){const n=O.HG(e);return-1===n?t:n+1}function H(e,t){const n=O.lT(e);return-1===n?t:n+2}function K(e){if(0===e)return()=>!0;const t=Date.now();return()=>Date.now()-t<e}var q=n(9861);class J{static trivial(e,t){return new J([new X(D.L.ofLength(e.length),D.L.ofLength(t.length))],!1)}static trivialTimedOut(e,t){return new J([new X(D.L.ofLength(e.length),D.L.ofLength(t.length))],!0)}constructor(e,t){this.diffs=e,this.hitTimeout=t}}class X{static invert(e,t){const n=[];return(0,q.pN)(e,((e,r)=>{n.push(X.fromOffsetPairs(e?e.getEndExclusives():$.zero,r?r.getStarts():new $(t,(e?e.seq2Range.endExclusive-e.seq1Range.endExclusive:0)+t)))})),n}static fromOffsetPairs(e,t){return new X(new D.L(e.offset1,t.offset1),new D.L(e.offset2,t.offset2))}static assertSorted(e){let t;for(const n of e){if(t&&!(t.seq1Range.endExclusive<=n.seq1Range.start&&t.seq2Range.endExclusive<=n.seq2Range.start))throw new A.D7("Sequence diffs must be sorted");t=n}}constructor(e,t){this.seq1Range=e,this.seq2Range=t}swap(){return new X(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(e){return new X(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}delta(e){return 0===e?this:new X(this.seq1Range.delta(e),this.seq2Range.delta(e))}deltaStart(e){return 0===e?this:new X(this.seq1Range.deltaStart(e),this.seq2Range.deltaStart(e))}deltaEnd(e){return 0===e?this:new X(this.seq1Range.deltaEnd(e),this.seq2Range.deltaEnd(e))}intersect(e){const t=this.seq1Range.intersect(e.seq1Range),n=this.seq2Range.intersect(e.seq2Range);if(t&&n)return new X(t,n)}getStarts(){return new $(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new $(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}class ${static{this.zero=new $(0,0)}static{this.max=new $(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER)}constructor(e,t){this.offset1=e,this.offset2=t}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(e){return 0===e?this:new $(this.offset1+e,this.offset2+e)}equals(e){return this.offset1===e.offset1&&this.offset2===e.offset2}}class Y{static{this.instance=new Y}isValid(){return!0}}class Q{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new A.D7("timeout must be positive")}isValid(){return!(Date.now()-this.startTime<this.timeout)&&this.valid&&(this.valid=!1),this.valid}}class Z{constructor(e,t){this.width=e,this.height=t,this.array=[],this.array=new 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 ee(e){return 32===e||9===e}class te{static{this.chrKeys=new Map}static getKey(e){let t=this.chrKeys.get(e);return void 0===t&&(t=this.chrKeys.size,this.chrKeys.set(e,t)),t}constructor(e,t,n){this.range=e,this.lines=t,this.source=n,this.histogram=[];let r=0;for(let o=e.startLineNumber-1;o<e.endLineNumberExclusive-1;o++){const e=t[o];for(let t=0;t<e.length;t++){r++;const n=e[t],o=te.getKey(n);this.histogram[o]=(this.histogram[o]||0)+1}r++;const n=te.getKey("\n");this.histogram[n]=(this.histogram[n]||0)+1}this.totalCount=r}computeSimilarity(e){let t=0;const 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)}}class ne{compute(e,t,n=Y.instance,r){if(0===e.length||0===t.length)return J.trivial(e,t);const o=new Z(e.length,t.length),i=new Z(e.length,t.length),a=new Z(e.length,t.length);for(let f=0;f<e.length;f++)for(let s=0;s<t.length;s++){if(!n.isValid())return J.trivialTimedOut(e,t);const l=0===f?0:o.get(f-1,s),c=0===s?0:o.get(f,s-1);let d;e.getElement(f)===t.getElement(s)?(d=0===f||0===s?0:o.get(f-1,s-1),f>0&&s>0&&3===i.get(f-1,s-1)&&(d+=a.get(f-1,s-1)),d+=r?r(f,s):1):d=-1;const u=Math.max(l,c,d);if(u===d){const e=f>0&&s>0?a.get(f-1,s-1):0;a.set(f,s,e+1),i.set(f,s,3)}else u===l?(a.set(f,s,0),i.set(f,s,1)):u===c&&(a.set(f,s,0),i.set(f,s,2));o.set(f,s,u)}const s=[];let l=e.length,c=t.length;function d(e,t){e+1===l&&t+1===c||s.push(new X(new D.L(e+1,l),new D.L(t+1,c))),l=e,c=t}let u=e.length-1,p=t.length-1;for(;u>=0&&p>=0;)3===i.get(u,p)?(d(u,p),u--,p--):1===i.get(u,p)?u--:p--;return d(-1,-1),s.reverse(),new J(s,!1)}}class re{compute(e,t,n=Y.instance){if(0===e.length||0===t.length)return J.trivial(e,t);const r=e,o=t;function i(e,t){for(;e<r.length&&t<o.length&&r.getElement(e)===o.getElement(t);)e++,t++;return e}let a=0;const s=new ie;s.set(0,i(0,0));const l=new ae;l.set(0,0===s.get(0)?null:new oe(null,0,0,s.get(0)));let c=0;e:for(;;){if(a++,!n.isValid())return J.trivialTimedOut(r,o);const e=-Math.min(a,o.length+a%2),t=Math.min(a,r.length+a%2);for(c=e;c<=t;c+=2){let n=0;const a=c===t?-1:s.get(c+1),d=c===e?-1:s.get(c-1)+1;n++;const u=Math.min(Math.max(a,d),r.length),p=u-c;if(n++,u>r.length||p>o.length)continue;const f=i(u,p);s.set(c,f);const m=u===a?l.get(c+1):l.get(c-1);if(l.set(c,f!==u?new oe(m,u,p,f-u):m),s.get(c)===r.length&&s.get(c)-c===o.length)break e}}let d=l.get(c);const u=[];let p=r.length,f=o.length;for(;;){const e=d?d.x+d.length:0,t=d?d.y+d.length:0;if(e===p&&t===f||u.push(new X(new D.L(e,p),new D.L(t,f))),!d)break;p=d.x,f=d.y,d=d.prev}return u.reverse(),new J(u,!1)}}class oe{constructor(e,t,n,r){this.prev=e,this.x=t,this.y=n,this.length=r}}class ie{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=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)>=this.negativeArr.length){const e=this.negativeArr;this.negativeArr=new Int32Array(2*e.length),this.negativeArr.set(e)}this.negativeArr[e]=t}else{if(e>=this.positiveArr.length){const e=this.positiveArr;this.positiveArr=new Int32Array(2*e.length),this.positiveArr.set(e)}this.positiveArr[e]=t}}}class ae{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}}var se=n(6041),le=n(4320);class ce{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 r=this.range.startLineNumber;r<=this.range.endLineNumber;r++){let t=e[r-1],o=0;r===this.range.startLineNumber&&this.range.startColumn>1&&(o=this.range.startColumn-1,t=t.substring(o)),this.lineStartOffsets.push(o);let i=0;if(!n){const e=t.trimStart();i=t.length-e.length,t=e.trimEnd()}this.trimmedWsLengthsByLineIdx.push(i);const a=r===this.range.endLineNumber?Math.min(this.range.endColumn-1-o-i,t.length):t.length;for(let e=0;e<a;e++)this.elements.push(t.charCodeAt(e));r<this.range.endLineNumber&&(this.elements.push("\n".charCodeAt(0)),this.firstElementOffsetByLineIdx.push(this.elements.length))}}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new D.L(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){const t=fe(e>0?this.elements[e-1]:-1),n=fe(e<this.elements.length?this.elements[e]:-1);if(7===t&&8===n)return 0;if(8===t)return 150;let r=0;return t!==n&&(r+=10,0===t&&1===n&&(r+=1)),r+=pe(t),r+=pe(n),r}translateOffset(e,t="right"){const n=(0,se.iM)(this.firstElementOffsetByLineIdx,(t=>t<=e)),r=e-this.firstElementOffsetByLineIdx[n];return new R.y(this.range.startLineNumber+n,1+this.lineStartOffsets[n]+r+(0===r&&"left"===t?0:this.trimmedWsLengthsByLineIdx[n]))}translateRange(e){const t=this.translateOffset(e.start,"right"),n=this.translateOffset(e.endExclusive,"left");return n.isBefore(t)?u.Q.fromPositions(n,n):u.Q.fromPositions(t,n)}findWordContaining(e){if(e<0||e>=this.elements.length)return;if(!de(this.elements[e]))return;let t=e;for(;t>0&&de(this.elements[t-1]);)t--;let n=e;for(;n<this.elements.length&&de(this.elements[n]);)n++;return new D.L(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){const t=(0,se.lx)(this.firstElementOffsetByLineIdx,(t=>t<=e.start))??0,n=(0,se.XP)(this.firstElementOffsetByLineIdx,(t=>e.endExclusive<=t))??this.elements.length;return new D.L(t,n)}}function de(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}const ue={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function pe(e){return ue[e]}function fe(e){return 10===e?8:13===e?7:ee(e)?6:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:-1===e?3:44===e||59===e?5:4}function me(e,t,n,r,o,i){let{moves:a,excludedChanges:s}=function(e,t,n,r){const o=[],i=e.filter((e=>e.modified.isEmpty&&e.original.length>=3)).map((e=>new te(e.original,t,e))),a=new Set(e.filter((e=>e.original.isEmpty&&e.modified.length>=3)).map((e=>new te(e.modified,n,e)))),s=new Set;for(const l of i){let e,t=-1;for(const n of a){const r=l.computeSimilarity(n);r>t&&(t=r,e=n)}if(t>.9&&e&&(a.delete(e),o.push(new M(l.range,e.range)),s.add(l.source),s.add(e.source)),!r.isValid())return{moves:o,excludedChanges:s}}return{moves:o,excludedChanges:s}}(e,t,n,i);if(!i.isValid())return[];const l=function(e,t,n,r,o,i){const a=[],s=new le.db;for(const p of e)for(let e=p.original.startLineNumber;e<p.original.endLineNumberExclusive-2;e++){const n=`${t[e-1]}:${t[e+1-1]}:${t[e+2-1]}`;s.add(n,{range:new I.M(e,e+3)})}const l=[];e.sort((0,q.VE)((e=>e.modified.startLineNumber),q.U9));for(const p of e){let e=[];for(let t=p.modified.startLineNumber;t<p.modified.endLineNumberExclusive-2;t++){const r=`${n[t-1]}:${n[t+1-1]}:${n[t+2-1]}`,o=new I.M(t,t+3),i=[];s.forEach(r,(({range:t})=>{for(const r of e)if(r.originalLineRange.endLineNumberExclusive+1===t.endLineNumberExclusive&&r.modifiedLineRange.endLineNumberExclusive+1===o.endLineNumberExclusive)return r.originalLineRange=new I.M(r.originalLineRange.startLineNumber,t.endLineNumberExclusive),r.modifiedLineRange=new I.M(r.modifiedLineRange.startLineNumber,o.endLineNumberExclusive),void i.push(r);const n={modifiedLineRange:o,originalLineRange:t};l.push(n),i.push(n)})),e=i}if(!i.isValid())return[]}l.sort((0,q.Hw)((0,q.VE)((e=>e.modifiedLineRange.length),q.U9)));const c=new I.S,d=new I.S;for(const p of l){const e=p.modifiedLineRange.startLineNumber-p.originalLineRange.startLineNumber,t=c.subtractFrom(p.modifiedLineRange),n=d.subtractFrom(p.originalLineRange).getWithDelta(e),r=t.getIntersection(n);for(const o of r.ranges){if(o.length<3)continue;const t=o,n=o.delta(-e);a.push(new M(n,t)),c.addRange(t),d.addRange(n)}}a.sort((0,q.VE)((e=>e.original.startLineNumber),q.U9));const u=new se.vJ(e);for(let p=0;p<a.length;p++){const t=a[p],n=u.findLastMonotonous((e=>e.original.startLineNumber<=t.original.startLineNumber)),s=(0,se.lx)(e,(e=>e.modified.startLineNumber<=t.modified.startLineNumber)),l=Math.max(t.original.startLineNumber-n.original.startLineNumber,t.modified.startLineNumber-s.modified.startLineNumber),f=u.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive)),m=(0,se.lx)(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)),_=Math.max(f.original.endLineNumberExclusive-t.original.endLineNumberExclusive,m.modified.endLineNumberExclusive-t.modified.endLineNumberExclusive);let h,g;for(h=0;h<l;h++){const e=t.original.startLineNumber-h-1,n=t.modified.startLineNumber-h-1;if(e>r.length||n>o.length)break;if(c.contains(n)||d.contains(e))break;if(!_e(r[e-1],o[n-1],i))break}for(h>0&&(d.addRange(new I.M(t.original.startLineNumber-h,t.original.startLineNumber)),c.addRange(new I.M(t.modified.startLineNumber-h,t.modified.startLineNumber))),g=0;g<_;g++){const e=t.original.endLineNumberExclusive+g,n=t.modified.endLineNumberExclusive+g;if(e>r.length||n>o.length)break;if(c.contains(n)||d.contains(e))break;if(!_e(r[e-1],o[n-1],i))break}g>0&&(d.addRange(new I.M(t.original.endLineNumberExclusive,t.original.endLineNumberExclusive+g)),c.addRange(new I.M(t.modified.endLineNumberExclusive,t.modified.endLineNumberExclusive+g))),(h>0||g>0)&&(a[p]=new M(new I.M(t.original.startLineNumber-h,t.original.endLineNumberExclusive+g),new I.M(t.modified.startLineNumber-h,t.modified.endLineNumberExclusive+g)))}return a}(e.filter((e=>!s.has(e))),r,o,t,n,i);return(0,q.E4)(a,l),a=function(e){if(0===e.length)return e;e.sort((0,q.VE)((e=>e.original.startLineNumber),q.U9));const t=[e[0]];for(let n=1;n<e.length;n++){const r=t[t.length-1],o=e[n],i=o.original.startLineNumber-r.original.endLineNumberExclusive,a=o.modified.startLineNumber-r.modified.endLineNumberExclusive;i>=0&&a>=0&&i+a<=2?t[t.length-1]=r.join(o):t.push(o)}return t}(a),a=a.filter((e=>{const n=e.original.toOffsetRange().slice(t).map((e=>e.trim()));return n.join("\n").length>=15&&function(e,t){let n=0;for(const r of e)t(r)&&n++;return n}(n,(e=>e.length>=2))>=2})),a=function(e,t){const n=new se.vJ(e);return t=t.filter((t=>(n.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive))||new M(new I.M(1,1),new I.M(1,1)))!==(0,se.lx)(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)))),t}(e,a),a}function _e(e,t,n){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;const r=(new re).compute(new ce([e],new u.Q(1,1,1,e.length),!1),new ce([t],new u.Q(1,1,1,t.length),!1),n);let o=0;const i=X.invert(r.diffs,e.length);for(const s of i)s.seq1Range.forEach((t=>{ee(e.charCodeAt(t))||o++}));const a=function(t){let n=0;for(let r=0;r<e.length;r++)ee(t.charCodeAt(r))||n++;return n}(e.length>t.length?e:t);return o/a>.6&&a>10}function he(e,t,n){let r=n;return r=ge(e,t,r),r=ge(e,t,r),r=function(e,t,n){if(!e.getBoundaryScore||!t.getBoundaryScore)return n;for(let r=0;r<n.length;r++){const o=r>0?n[r-1]:void 0,i=n[r],a=r+1<n.length?n[r+1]:void 0,s=new D.L(o?o.seq1Range.endExclusive+1:0,a?a.seq1Range.start-1:e.length),l=new D.L(o?o.seq2Range.endExclusive+1:0,a?a.seq2Range.start-1:t.length);i.seq1Range.isEmpty?n[r]=ye(i,e,t,s,l):i.seq2Range.isEmpty&&(n[r]=ye(i.swap(),t,e,l,s).swap())}return n}(e,t,r),r}function ge(e,t,n){if(0===n.length)return n;const r=[];r.push(n[0]);for(let i=1;i<n.length;i++){const o=r[r.length-1];let a=n[i];if(a.seq1Range.isEmpty||a.seq2Range.isEmpty){const n=a.seq1Range.start-o.seq1Range.endExclusive;let i;for(i=1;i<=n&&(e.getElement(a.seq1Range.start-i)===e.getElement(a.seq1Range.endExclusive-i)&&t.getElement(a.seq2Range.start-i)===t.getElement(a.seq2Range.endExclusive-i));i++);if(i--,i===n){r[r.length-1]=new X(new D.L(o.seq1Range.start,a.seq1Range.endExclusive-n),new D.L(o.seq2Range.start,a.seq2Range.endExclusive-n));continue}a=a.delta(-i)}r.push(a)}const o=[];for(let i=0;i<r.length-1;i++){const n=r[i+1];let a=r[i];if(a.seq1Range.isEmpty||a.seq2Range.isEmpty){const o=n.seq1Range.start-a.seq1Range.endExclusive;let s;for(s=0;s<o&&(e.isStronglyEqual(a.seq1Range.start+s,a.seq1Range.endExclusive+s)&&t.isStronglyEqual(a.seq2Range.start+s,a.seq2Range.endExclusive+s));s++);if(s===o){r[i+1]=new X(new D.L(a.seq1Range.start+o,n.seq1Range.endExclusive),new D.L(a.seq2Range.start+o,n.seq2Range.endExclusive));continue}s>0&&(a=a.delta(s))}o.push(a)}return r.length>0&&o.push(r[r.length-1]),o}function ye(e,t,n,r,o){let i=1;for(;e.seq1Range.start-i>=r.start&&e.seq2Range.start-i>=o.start&&n.isStronglyEqual(e.seq2Range.start-i,e.seq2Range.endExclusive-i)&&i<100;)i++;i--;let a=0;for(;e.seq1Range.start+a<r.endExclusive&&e.seq2Range.endExclusive+a<o.endExclusive&&n.isStronglyEqual(e.seq2Range.start+a,e.seq2Range.endExclusive+a)&&a<100;)a++;if(0===i&&0===a)return e;let s=0,l=-1;for(let c=-i;c<=a;c++){const r=e.seq2Range.start+c,o=e.seq2Range.endExclusive+c,i=e.seq1Range.start+c,a=t.getBoundaryScore(i)+n.getBoundaryScore(r)+n.getBoundaryScore(o);a>l&&(l=a,s=c)}return e.delta(s)}class ve{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-((0===e?0:be(this.lines[e-1]))+(e===this.lines.length?0:be(this.lines[e])))}getText(e){return this.lines.slice(e.start,e.endExclusive).join("\n")}isStronglyEqual(e,t){return this.lines[e]===this.lines[t]}}function be(e){let t=0;for(;t<e.length&&(32===e.charCodeAt(t)||9===e.charCodeAt(t));)t++;return t}class Ee{constructor(){this.dynamicProgrammingDiffing=new ne,this.myersDiffingAlgorithm=new re}computeDiff(e,t,n){if(e.length<=1&&(0,q.aI)(e,t,((e,t)=>e===t)))return new T([],[],!1);if(1===e.length&&0===e[0].length||1===t.length&&0===t[0].length)return new T([new P(new I.M(1,e.length+1),new I.M(1,t.length+1),[new w(new u.Q(1,1,e.length,e[e.length-1].length+1),new u.Q(1,1,t.length,t[t.length-1].length+1))])],[],!1);const r=0===n.maxComputationTimeMs?Y.instance:new Q(n.maxComputationTimeMs),o=!n.ignoreTrimWhitespace,i=new Map;function a(e){let t=i.get(e);return void 0===t&&(t=i.size,i.set(e,t)),t}const s=e.map((e=>a(e.trim()))),l=t.map((e=>a(e.trim()))),c=new ve(s,e),d=new ve(l,t),p=(()=>c.length+d.length<1700?this.dynamicProgrammingDiffing.compute(c,d,r,((n,r)=>e[n]===t[r]?0===t[r].length?.1:1+Math.log(1+t[r].length):.99)):this.myersDiffingAlgorithm.compute(c,d,r))();let f=p.diffs,m=p.hitTimeout;f=he(c,d,f),f=function(e,t,n){let r=n;if(0===r.length)return r;let o,i=0;do{o=!1;const a=[r[0]];for(let s=1;s<r.length;s++){const l=r[s],c=a[a.length-1];function d(t,n){const r=new D.L(c.seq1Range.endExclusive,l.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)}d(c,l)?(o=!0,a[a.length-1]=a[a.length-1].join(l)):a.push(l)}r=a}while(i++<10&&o);return r}(c,0,f);const _=[],h=n=>{if(o)for(let i=0;i<n;i++){const n=g+i,a=y+i;if(e[n]!==t[a]){const i=this.refineDiff(e,t,new X(new D.L(n,n+1),new D.L(a,a+1)),r,o);for(const e of i.mappings)_.push(e);i.hitTimeout&&(m=!0)}}};let g=0,y=0;for(const u of f){(0,C.Ft)((()=>u.seq1Range.start-g===u.seq2Range.start-y));h(u.seq1Range.start-g),g=u.seq1Range.endExclusive,y=u.seq2Range.endExclusive;const n=this.refineDiff(e,t,u,r,o);n.hitTimeout&&(m=!0);for(const e of n.mappings)_.push(e)}h(e.length-g);const v=Se(_,e,t);let b=[];return n.computeMoves&&(b=this.computeMoves(v,e,t,s,l,r,o)),(0,C.Ft)((()=>{function n(e,t){if(e.lineNumber<1||e.lineNumber>t.length)return!1;const 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(const o of v){if(!o.innerChanges)return!1;for(const r of o.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(o.modified,t)||!r(o.original,e))return!1}return!0})),new T(v,b,m)}computeMoves(e,t,n,r,o,i,a){return me(e,t,n,r,o,i).map((e=>{const r=Se(this.refineDiff(t,n,new X(e.original.toOffsetRange(),e.modified.toOffsetRange()),i,a).mappings,t,n,!0);return new x(e,r)}))}refineDiff(e,t,n,r,o){var i;const a=(i=n,new M(new I.M(i.seq1Range.start+1,i.seq1Range.endExclusive+1),new I.M(i.seq2Range.start+1,i.seq2Range.endExclusive+1))).toRangeMapping2(e,t),s=new ce(e,a.originalRange,o),l=new ce(t,a.modifiedRange,o),c=s.length+l.length<500?this.dynamicProgrammingDiffing.compute(s,l,r):this.myersDiffingAlgorithm.compute(s,l,r),d=!1;let u=c.diffs;u=he(s,l,u),u=function(e,t,n){const r=X.invert(n,e.length),o=[];let i=new $(0,0);function a(n,a){if(n.offset1<i.offset1||n.offset2<i.offset2)return;const s=e.findWordContaining(n.offset1),l=t.findWordContaining(n.offset2);if(!s||!l)return;let c=new X(s,l);const d=c.intersect(a);let u=d.seq1Range.length,p=d.seq2Range.length;for(;r.length>0;){const n=r[0];if(!n.seq1Range.intersects(c.seq1Range)&&!n.seq2Range.intersects(c.seq2Range))break;const o=e.findWordContaining(n.seq1Range.start),i=t.findWordContaining(n.seq2Range.start),a=new X(o,i),s=a.intersect(n);if(u+=s.seq1Range.length,p+=s.seq2Range.length,c=c.join(a),!(c.seq1Range.endExclusive>=n.seq1Range.endExclusive))break;r.shift()}u+p<2*(c.seq1Range.length+c.seq2Range.length)/3&&o.push(c),i=c.getEndExclusives()}for(;r.length>0;){const e=r.shift();e.seq1Range.isEmpty||(a(e.getStarts(),e),a(e.getEndExclusives().delta(-1),e))}return function(e,t){const n=[];for(;e.length>0||t.length>0;){const r=e[0],o=t[0];let i;i=r&&(!o||r.seq1Range.start<o.seq1Range.start)?e.shift():t.shift(),n.length>0&&n[n.length-1].seq1Range.endExclusive>=i.seq1Range.start?n[n.length-1]=n[n.length-1].join(i):n.push(i)}return n}(n,o)}(s,l,u),u=function(e,t,n){const r=[];for(const o of n){const e=r[r.length-1];e&&(o.seq1Range.start-e.seq1Range.endExclusive<=2||o.seq2Range.start-e.seq2Range.endExclusive<=2)?r[r.length-1]=new X(e.seq1Range.join(o.seq1Range),e.seq2Range.join(o.seq2Range)):r.push(o)}return r}(0,0,u),u=function(e,t,n){let r=n;if(0===r.length)return r;let o,i=0;do{o=!1;const s=[r[0]];for(let l=1;l<r.length;l++){const c=r[l],d=s[s.length-1];function u(n,r){const o=new D.L(d.seq1Range.endExclusive,c.seq1Range.start);if(e.countLinesIn(o)>5||o.length>500)return!1;const i=e.getText(o).trim();if(i.length>20||i.split(/\r\n|\r|\n/).length>1)return!1;const a=e.countLinesIn(n.seq1Range),s=n.seq1Range.length,l=t.countLinesIn(n.seq2Range),u=n.seq2Range.length,p=e.countLinesIn(r.seq1Range),f=r.seq1Range.length,m=t.countLinesIn(r.seq2Range),_=r.seq2Range.length;function h(e){return Math.min(e,130)}return Math.pow(Math.pow(h(40*a+s),1.5)+Math.pow(h(40*l+u),1.5),1.5)+Math.pow(Math.pow(h(40*p+f),1.5)+Math.pow(h(40*m+_),1.5),1.5)>74184.96480721243}u(d,c)?(o=!0,s[s.length-1]=s[s.length-1].join(c)):s.push(c)}r=s}while(i++<10&&o);const a=[];return(0,q.kj)(r,((t,n,r)=>{let o=n;function i(e){return e.length>0&&e.trim().length<=3&&n.seq1Range.length+n.seq2Range.length>100}const s=e.extendToFullLines(n.seq1Range),l=e.getText(new D.L(s.start,n.seq1Range.start));i(l)&&(o=o.deltaStart(-l.length));const c=e.getText(new D.L(n.seq1Range.endExclusive,s.endExclusive));i(c)&&(o=o.deltaEnd(c.length));const d=X.fromOffsetPairs(t?t.getEndExclusives():$.zero,r?r.getStarts():$.max),u=o.intersect(d);a.length>0&&u.getStarts().equals(a[a.length-1].getEndExclusives())?a[a.length-1]=a[a.length-1].join(u):a.push(u)})),a}(s,l,u);const p=u.map((e=>new w(s.translateRange(e.seq1Range),l.translateRange(e.seq2Range))));return{mappings:p,hitTimeout:c.hitTimeout}}}function Se(e,t,n,r=!1){const o=[];for(const i of(0,q.n)(e.map((e=>function(e,t,n){let r=0,o=0;1===e.modifiedRange.endColumn&&1===e.originalRange.endColumn&&e.originalRange.startLineNumber+r<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+r<=e.modifiedRange.endLineNumber&&(o=-1);e.modifiedRange.startColumn-1>=n[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+o&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+o&&(r=1);const i=new I.M(e.originalRange.startLineNumber+r,e.originalRange.endLineNumber+1+o),a=new I.M(e.modifiedRange.startLineNumber+r,e.modifiedRange.endLineNumber+1+o);return new P(i,a,[e])}(e,t,n))),((e,t)=>e.original.overlapOrTouch(t.original)||e.modified.overlapOrTouch(t.modified)))){const e=i[0],t=i[i.length-1];o.push(new P(e.original.join(t.original),e.modified.join(t.modified),i.map((e=>e.innerChanges[0]))))}return(0,C.Ft)((()=>{if(!r&&o.length>0){if(o[0].modified.startLineNumber!==o[0].original.startLineNumber)return!1;if(n.length-o[o.length-1].modified.endLineNumberExclusive!==t.length-o[o.length-1].original.endLineNumberExclusive)return!1}return(0,C.Xo)(o,((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))})),o}const Te=()=>new F,xe=()=>new Ee;var Ae=n(146),Ie=n(6456),Re=n(7661);function Ce(e){const t=[];for(const n of e){const e=Number(n);(e||0===e&&""!==n.replace(/\s/g,""))&&t.push(e)}return t}function De(e,t,n,r){return{red:e/255,blue:n/255,green:t/255,alpha:r}}function Ne(e,t){const n=t.index,r=t[0].length;if(!n)return;const o=e.positionAt(n);return{startLineNumber:o.lineNumber,startColumn:o.column,endLineNumber:o.lineNumber,endColumn:o.column+r}}function Me(e,t){if(!e)return;const n=Re.Q1.Format.CSS.parseHex(t);return n?{range:e,color:De(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}:void 0}function Le(e,t,n){if(!e||1!==t.length)return;const r=Ce(t[0].values());return{range:e,color:De(r[0],r[1],r[2],n?r[3]:1)}}function ke(e,t,n){if(!e||1!==t.length)return;const r=Ce(t[0].values()),o=new Re.Q1(new Re.hB(r[0],r[1]/100,r[2]/100,n?r[3]:1));return{range:e,color:De(o.rgba.r,o.rgba.g,o.rgba.b,o.rgba.a)}}function Pe(e,t){return"string"===typeof e?[...e.matchAll(t)]:e.findMatches(t)}function we(e){return e&&"function"===typeof e.getValue&&"function"===typeof e.positionAt?function(e){const t=[],n=Pe(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/gm);if(n.length>0)for(const r of n){const n=r.filter((e=>void 0!==e)),o=n[1],i=n[2];if(!i)continue;let a;if("rgb"===o){const t=/^\(\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;a=Le(Ne(e,r),Pe(i,t),!1)}else if("rgba"===o){const t=/^\(\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;a=Le(Ne(e,r),Pe(i,t),!0)}else if("hsl"===o){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;a=ke(Ne(e,r),Pe(i,t),!1)}else if("hsla"===o){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;a=ke(Ne(e,r),Pe(i,t),!0)}else"#"===o&&(a=Me(Ne(e,r),o+i));a&&t.push(a)}return t}(e):[]}var Oe=n(6691),Fe=n(796);class We{constructor(){this._workerTextModelSyncServer=new Fe.WorkerTextModelSyncServer}dispose(){}_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){const r=this._getModel(e);return r?S.UnicodeTextModelHighlighter.computeUnicodeHighlights(r,t,n):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async $findSectionHeaders(e,t){const n=this._getModel(e);return n?(0,Oe.findSectionHeaders)(n,t):[]}async $computeDiff(e,t,n,r){const o=this._getModel(e),i=this._getModel(t);if(!o||!i)return null;return ze.computeDiff(o,i,n,r)}static computeDiff(e,t,n,r){const o="advanced"===r?xe():Te(),i=e.getLinesContent(),a=t.getLinesContent(),s=o.computeDiff(i,a,n);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:!(s.changes.length>0)&&this._modelsAreIdentical(e,t),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){const 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(e,t,n){const r=this._getModel(e);if(!r)return t;const o=[];let i;t=t.slice(0).sort(((e,t)=>{if(e.range&&t.range)return u.Q.compareRangesUsingStarts(e.range,t.range);return(e.range?0:1)-(t.range?0:1)}));let s=0;for(let a=1;a<t.length;a++)u.Q.getEndPosition(t[s].range).equals(u.Q.getStartPosition(t[a].range))?(t[s].range=u.Q.fromPositions(u.Q.getStartPosition(t[s].range),u.Q.getEndPosition(t[a].range)),t[s].text+=t[a].text):(s++,t[s]=t[a]);t.length=s+1;for(let{range:l,text:c,eol:d}of t){if("number"===typeof d&&(i=d),u.Q.isEmpty(l)&&!c)continue;const e=r.getValueInRange(l);if(c=c.replace(/\r\n|\n|\r/g,r.eol),e===c)continue;if(Math.max(c.length,e.length)>ze._diffLimit){o.push({range:l,text:c});continue}const t=a(e,c,n),s=r.offsetAt(u.Q.lift(l).getStartPosition());for(const n of t){const e=r.positionAt(s+n.originalStart),t=r.positionAt(s+n.originalStart+n.originalLength),i={text:c.substr(n.modifiedStart,n.modifiedLength),range:{startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:t.lineNumber,endColumn:t.column}};r.getValueInRange(i.range)!==i.text&&o.push(i)}}return"number"===typeof i&&o.push({eol:i,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),o}async $computeLinks(e){const t=this._getModel(e);return t?function(e){return e&&"function"===typeof e.getLineCount&&"function"===typeof e.getLineContent?g.computeLinks(e):[]}(t):null}async $computeDefaultDocumentColors(e){const t=this._getModel(e);return t?we(t):null}static{this._suggestionsLimit=1e4}async $textualSuggest(e,t,n,r){const o=new E.W,i=new RegExp(n,r),a=new Set;e:for(const s of e){const e=this._getModel(s);if(e)for(const n of e.words(i))if(n!==t&&isNaN(Number(n))&&(a.add(n),a.size>ze._suggestionsLimit))break e}return{words:Array.from(a),duration:o.elapsed()}}async $computeWordRanges(e,t,n,r){const o=this._getModel(e);if(!o)return Object.create(null);const i=new RegExp(n,r),a=Object.create(null);for(let s=t.startLineNumber;s<t.endLineNumber;s++){const e=o.getLineWords(s,i);for(const t of e){if(!isNaN(Number(t.word)))continue;let e=a[t.word];e||(e=[],a[t.word]=e),e.push({startLineNumber:s,startColumn:t.startColumn,endLineNumber:s,endColumn:t.endColumn})}}return a}async $navigateValueSet(e,t,n,r,o){const i=this._getModel(e);if(!i)return null;const a=new RegExp(r,o);t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1});const s=i.getValueInRange(t),l=i.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},a);if(!l)return null;const c=i.getValueInRange(l);return y.INSTANCE.navigateValueSet(t,s,l,c,n)}}class ze extends We{constructor(e,t){super(),this._host=e,this._foreignModuleFactory=t,this._foreignModule=null}async $ping(){return"pong"}$loadForeignModule(e,t,r){const o={host:(0,Ae.kT)(r,((e,t)=>this._host.$fhr(e,t))),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(o,t),Promise.resolve((0,Ae.V0)(this._foreignModule))):new Promise(((r,i)=>{const a=e=>{this._foreignModule=e.create(o,t),r((0,Ae.V0)(this._foreignModule))};{const t=Ie.zl.asBrowserUri(`${e}.js`).toString(!0);n(9204)(`${t}`).then(a).catch(i)}}))}$fmr(e,t){if(!this._foreignModule||"function"!==typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(n){return Promise.reject(n)}}}function Be(e){return new ze(b.EditorWorkerHost.getChannel(e),null)}"function"===typeof importScripts&&(globalThis.monaco=(0,v.createMonacoBaseAPI)())},5326:(e,t,n)=>{"use strict";n.d(t,{L:()=>i});var r=n(3069),o=n(6677);class i extends o.Q{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(e){return i.selectionsEqual(this,e)}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(e,t){return 0===this.getDirection()?new i(this.startLineNumber,this.startColumn,e,t):new i(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new r.y(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new r.y(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return 0===this.getDirection()?new i(e,t,this.endLineNumber,this.endColumn):new i(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new i(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return 0===t?new i(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new i(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new i(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.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&&"number"===typeof e.selectionStartLineNumber&&"number"===typeof e.selectionStartColumn&&"number"===typeof e.positionLineNumber&&"number"===typeof e.positionColumn}static createWithDirection(e,t,n,r,o){return 0===o?new i(e,t,n,r):new i(n,r,e,t)}}},5538:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SemanticTokensProviderStyling:()=>_,toMultilineTokens2:()=>h});n(5982);var r=n(5724),o=n(3511),i=n(3069),a=n(6677),s=n(4454);class l{static create(e,t){return new l(e,new c(t))}get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._endLineNumber}constructor(e,t){this._startLineNumber=e,this._tokens=t,this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}toString(){return this._tokens.toString(this._startLineNumber)}_updateEndLineNumber(){this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}isEmpty(){return this._tokens.isEmpty()}getLineTokens(e){return this._startLineNumber<=e&&e<=this._endLineNumber?this._tokens.getLineTokens(e-this._startLineNumber):null}getRange(){const e=this._tokens.getRange();return e?new a.Q(this._startLineNumber+e.startLineNumber,e.startColumn,this._startLineNumber+e.endLineNumber,e.endColumn):e}removeTokens(e){const t=e.startLineNumber-this._startLineNumber,n=e.endLineNumber-this._startLineNumber;this._startLineNumber+=this._tokens.removeTokens(t,e.startColumn-1,n,e.endColumn-1),this._updateEndLineNumber()}split(e){const t=e.startLineNumber-this._startLineNumber,n=e.endLineNumber-this._startLineNumber,[r,o,i]=this._tokens.split(t,e.startColumn-1,n,e.endColumn-1);return[new l(this._startLineNumber,r),new l(this._startLineNumber+i,o)]}applyEdit(e,t){const[n,r,o]=(0,s.W)(t);this.acceptEdit(e,n,r,o,t.length>0?t.charCodeAt(0):0)}acceptEdit(e,t,n,r,o){this._acceptDeleteRange(e),this._acceptInsertText(new i.y(e.startLineNumber,e.startColumn),t,n,r,o),this._updateEndLineNumber()}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return;const t=e.startLineNumber-this._startLineNumber,n=e.endLineNumber-this._startLineNumber;if(n<0){const e=n-t;return void(this._startLineNumber-=e)}const r=this._tokens.getMaxDeltaLine();if(!(t>=r+1)){if(t<0&&n>=r+1)return this._startLineNumber=0,void this._tokens.clear();if(t<0){const r=-t;this._startLineNumber-=r,this._tokens.acceptDeleteRange(e.startColumn-1,0,0,n,e.endColumn-1)}else this._tokens.acceptDeleteRange(0,t,e.startColumn-1,n,e.endColumn-1)}}_acceptInsertText(e,t,n,r,o){if(0===t&&0===n)return;const i=e.lineNumber-this._startLineNumber;if(i<0)return void(this._startLineNumber+=t);i>=this._tokens.getMaxDeltaLine()+1||this._tokens.acceptInsertText(i,e.column-1,t,n,r,o)}}class c{constructor(e){this._tokens=e,this._tokenCount=e.length/4}toString(e){const t=[];for(let n=0;n<this._tokenCount;n++)t.push(`(${this._getDeltaLine(n)+e},${this._getStartCharacter(n)}-${this._getEndCharacter(n)})`);return`[${t.join(",")}]`}getMaxDeltaLine(){const e=this._getTokenCount();return 0===e?-1:this._getDeltaLine(e-1)}getRange(){const e=this._getTokenCount();if(0===e)return null;const t=this._getStartCharacter(0),n=this._getDeltaLine(e-1),r=this._getEndCharacter(e-1);return new a.Q(0,t+1,n,r+1)}_getTokenCount(){return this._tokenCount}_getDeltaLine(e){return this._tokens[4*e]}_getStartCharacter(e){return this._tokens[4*e+1]}_getEndCharacter(e){return this._tokens[4*e+2]}isEmpty(){return 0===this._getTokenCount()}getLineTokens(e){let t=0,n=this._getTokenCount()-1;for(;t<n;){const r=t+Math.floor((n-t)/2),o=this._getDeltaLine(r);if(o<e)t=r+1;else{if(!(o>e)){let o=r;for(;o>t&&this._getDeltaLine(o-1)===e;)o--;let i=r;for(;i<n&&this._getDeltaLine(i+1)===e;)i++;return new d(this._tokens.subarray(4*o,4*i+4))}n=r-1}}return this._getDeltaLine(t)===e?new d(this._tokens.subarray(4*t,4*t+4)):null}clear(){this._tokenCount=0}removeTokens(e,t,n,r){const o=this._tokens,i=this._tokenCount;let a=0,s=!1,l=0;for(let c=0;c<i;c++){const i=4*c,d=o[i],u=o[i+1],p=o[i+2],f=o[i+3];if((d>e||d===e&&p>=t)&&(d<n||d===n&&u<=r))s=!0;else{if(0===a&&(l=d),s){const e=4*a;o[e]=d-l,o[e+1]=u,o[e+2]=p,o[e+3]=f}a++}}return this._tokenCount=a,l}split(e,t,n,r){const o=this._tokens,i=this._tokenCount,a=[],s=[];let l=a,d=0,u=0;for(let c=0;c<i;c++){const i=4*c,a=o[i],p=o[i+1],f=o[i+2],m=o[i+3];if(a>e||a===e&&f>=t){if(a<n||a===n&&p<=r)continue;l!==s&&(l=s,d=0,u=a)}l[d++]=a-u,l[d++]=p,l[d++]=f,l[d++]=m}return[new c(new Uint32Array(a)),new c(new Uint32Array(s)),u]}acceptDeleteRange(e,t,n,r,o){const i=this._tokens,a=this._tokenCount,s=r-t;let l=0,c=!1;for(let d=0;d<a;d++){const u=4*d;let p=i[u],f=i[u+1],m=i[u+2];const _=i[u+3];if(p<t||p===t&&m<=n){l++;continue}if(p===t&&f<n)p===r&&m>o?m-=o-n:m=n;else if(p===t&&f===n){if(!(p===r&&m>o)){c=!0;continue}m-=o-n}else if(p<r||p===r&&f<o){if(!(p===r&&m>o)){c=!0;continue}p=t,f=n,m=f+(m-o)}else if(p>r){if(0===s&&!c){l=a;break}p-=s}else{if(!(p===r&&f>=o))throw new Error("Not possible!");e&&0===p&&(f+=e,m+=e),p-=s,f-=o-n,m-=o-n}const h=4*l;i[h]=p,i[h+1]=f,i[h+2]=m,i[h+3]=_,l++}this._tokenCount=l}acceptInsertText(e,t,n,r,o,i){const a=0===n&&1===r&&(i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122),s=this._tokens,l=this._tokenCount;for(let c=0;c<l;c++){const i=4*c;let l=s[i],d=s[i+1],u=s[i+2];if(!(l<e||l===e&&u<t)){if(l===e&&u===t){if(!a)continue;u+=1}else if(l===e&&d<t&&t<u)0===n?u+=r:u=t;else{if(l===e&&d===t&&a)continue;if(l===e)if(l+=n,0===n)d+=r,u+=r;else{const e=u-d;d=o+(d-t),u=d+e}else l+=n}s[i]=l,s[i+1]=d,s[i+2]=u}}}}class d{constructor(e){this._tokens=e}getCount(){return this._tokens.length/4}getStartCharacter(e){return this._tokens[4*e+1]}getEndCharacter(e){return this._tokens[4*e+2]}getMetadata(e){return this._tokens[4*e+3]}}var u=n(154),p=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},f=function(e,t){return function(n,r){t(n,r,e)}};const m=!1;let _=class{constructor(e,t,n,r){this._legend=e,this._themeService=t,this._languageService=n,this._logService=r,this._hasWarnedOverlappingTokens=!1,this._hasWarnedInvalidLengthTokens=!1,this._hasWarnedInvalidEditStart=!1,this._hashTable=new y}getMetadata(e,t,n){const r=this._languageService.languageIdCodec.encodeLanguageId(n),o=this._hashTable.get(e,t,r);let i;if(o)i=o.metadata;else{let o=this._legend.tokenTypes[e];const a=[];if(o){let e=t;for(let t=0;e>0&&t<this._legend.tokenModifiers.length;t++)1&e&&a.push(this._legend.tokenModifiers[t]),e>>=1;m;const r=this._themeService.getColorTheme().getTokenStyleMetadata(o,a,n);if("undefined"===typeof r)i=2147483647;else{if(i=0,"undefined"!==typeof r.italic){i|=1|(r.italic?1:0)<<11}if("undefined"!==typeof r.bold){i|=2|(r.bold?2:0)<<11}if("undefined"!==typeof r.underline){i|=4|(r.underline?4:0)<<11}if("undefined"!==typeof r.strikethrough){i|=8|(r.strikethrough?8:0)<<11}if(r.foreground){i|=16|r.foreground<<15}0===i&&(i=2147483647)}}else i=2147483647,o="not-in-legend";this._hashTable.add(e,t,r,i)}return i}warnOverlappingSemanticTokens(e,t){this._hasWarnedOverlappingTokens||(this._hasWarnedOverlappingTokens=!0,this._logService.warn(`Overlapping semantic tokens detected at lineNumber ${e}, column ${t}`))}warnInvalidLengthSemanticTokens(e,t){this._hasWarnedInvalidLengthTokens||(this._hasWarnedInvalidLengthTokens=!0,this._logService.warn(`Semantic token with invalid length detected at lineNumber ${e}, column ${t}`))}warnInvalidEditStart(e,t,n,r,o){this._hasWarnedInvalidEditStart||(this._hasWarnedInvalidEditStart=!0,this._logService.warn(`Invalid semantic tokens edit detected (previousResultId: ${e}, resultId: ${t}) at edit #${n}: The provided start offset ${r} is outside the previous data (length ${o}).`))}};function h(e,t,n){const r=e.data,o=e.data.length/5|0,i=Math.max(Math.ceil(o/1024),400),a=[];let s=0,c=1,d=0;for(;s<o;){const e=s;let u=Math.min(e+i,o);if(u<o){let t=u;for(;t-1>e&&0===r[5*t];)t--;if(t-1===e){let e=u;for(;e+1<o&&0===r[5*e];)e++;u=e}else u=t}let p=new Uint32Array(4*(u-e)),f=0,m=0,_=0,h=0;for(;s<u;){const e=5*s,o=r[e],i=r[e+1],a=c+o|0,l=0===o?d+i|0:i,u=l+r[e+2]|0,g=r[e+3],y=r[e+4];if(u<=l)t.warnInvalidLengthSemanticTokens(a,l+1);else if(_===a&&h>l)t.warnOverlappingSemanticTokens(a,l+1);else{const e=t.getMetadata(g,y,n);2147483647!==e&&(0===m&&(m=a),p[f]=a-m,p[f+1]=l,p[f+2]=u,p[f+3]=e,f+=4,_=a,h=u)}c=a,d=l,s++}f!==p.length&&(p=p.subarray(0,f));const g=l.create(m,p);a.push(g)}return a}_=p([f(1,r.Gy),f(2,u.L),f(3,o.rr)],_);class g{constructor(e,t,n,r){this.tokenTypeIndex=e,this.tokenModifierSet=t,this.languageId=n,this.metadata=r,this.next=null}}class y{static{this._SIZES=[3,7,13,31,61,127,251,509,1021,2039,4093,8191,16381,32749,65521,131071,262139,524287,1048573,2097143]}constructor(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=y._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<y._SIZES.length?2/3*this._currentLength:0),this._elements=[],y._nullOutEntries(this._elements,this._currentLength)}static _nullOutEntries(e,t){for(let n=0;n<t;n++)e[n]=null}_hash2(e,t){return(e<<5)-e+t|0}_hashFunc(e,t,n){return this._hash2(this._hash2(e,t),n)%this._currentLength}get(e,t,n){const r=this._hashFunc(e,t,n);let o=this._elements[r];for(;o;){if(o.tokenTypeIndex===e&&o.tokenModifierSet===t&&o.languageId===n)return o;o=o.next}return null}add(e,t,n,r){if(this._elementsCount++,0!==this._growCount&&this._elementsCount>=this._growCount){const e=this._elements;this._currentLengthIndex++,this._currentLength=y._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<y._SIZES.length?2/3*this._currentLength:0),this._elements=[],y._nullOutEntries(this._elements,this._currentLength);for(const t of e){let e=t;for(;e;){const t=e.next;e.next=null,this._add(e),e=t}}}this._add(new g(e,t,n,r))}_add(e){const t=this._hashFunc(e.tokenTypeIndex,e.tokenModifierSet,e.languageId);e.next=this._elements[t],this._elements[t]=e}}},5600:(e,t,n)=>{"use strict";n.d(t,{e2:()=>a,sN:()=>o,v7:()=>d});var r=n(1508);function o(e,t){switch(typeof e){case"object":return null===e?i(349,t):Array.isArray(e)?(n=e,r=i(104579,r=t),n.reduce(((e,t)=>o(t,e)),r)):function(e,t){return t=i(181387,t),Object.keys(e).sort().reduce(((t,n)=>(t=a(n,t),o(e[n],t))),t)}(e,t);case"string":return a(e,t);case"boolean":return function(e,t){return i(e?433:863,t)}(e,t);case"number":return i(e,t);case"undefined":return i(937,t);default:return i(617,t)}var n,r}function i(e,t){return(t<<5)-t+e|0}function a(e,t){t=i(149417,t);for(let n=0,r=e.length;n<r;n++)t=i(e.charCodeAt(n),t);return t}function s(e,t,n=32){const r=n-t;return(e<<t|(~((1<<r)-1)&e)>>>r)>>>0}function l(e,t=0,n=e.byteLength,r=0){for(let o=0;o<n;o++)e[t+o]=r}function c(e,t=32){return e instanceof ArrayBuffer?Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join(""):function(e,t,n="0"){for(;e.length<t;)e=n+e;return e}((e>>>0).toString(16),t/4)}class d{static{this._bigBlock32=new DataView(new ArrayBuffer(320))}constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(0===t)return;const n=this._buff;let o,i,a=this._buffLen,s=this._leftoverHighSurrogate;for(0!==s?(o=s,i=-1,s=0):(o=e.charCodeAt(0),i=0);;){let l=o;if(r.pc(o)){if(!(i+1<t)){s=o;break}{const t=e.charCodeAt(i+1);r.LJ(t)?(i++,l=r.z_(o,t)):l=65533}}else r.LJ(o)&&(l=65533);if(a=this._push(n,a,l),i++,!(i<t))break;o=e.charCodeAt(i)}this._buffLen=a,this._leftoverHighSurrogate=s}_push(e,t,n){return n<128?e[t++]=n:n<2048?(e[t++]=192|(1984&n)>>>6,e[t++]=128|(63&n)>>>0):n<65536?(e[t++]=224|(61440&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0):(e[t++]=240|(1835008&n)>>>18,e[t++]=128|(258048&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>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()),c(this._h0)+c(this._h1)+c(this._h2)+c(this._h3)+c(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,l(this._buff,this._buffLen),this._buffLen>56&&(this._step(),l(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=d._bigBlock32,t=this._buffDV;for(let s=0;s<64;s+=4)e.setUint32(s,t.getUint32(s,!1),!1);for(let d=64;d<320;d+=4)e.setUint32(d,s(e.getUint32(d-12,!1)^e.getUint32(d-32,!1)^e.getUint32(d-56,!1)^e.getUint32(d-64,!1),1),!1);let n,r,o,i=this._h0,a=this._h1,l=this._h2,c=this._h3,u=this._h4;for(let d=0;d<80;d++)d<20?(n=a&l|~a&c,r=1518500249):d<40?(n=a^l^c,r=1859775393):d<60?(n=a&l|a&c|l&c,r=2400959708):(n=a^l^c,r=3395469782),o=s(i,5)+n+u+r+e.getUint32(4*d,!1)&4294967295,u=c,c=l,l=s(a,30),a=i,i=o;this._h0=this._h0+i&4294967295,this._h1=this._h1+a&4294967295,this._h2=this._h2+l&4294967295,this._h3=this._h3+c&4294967295,this._h4=this._h4+u&4294967295}}},5628:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getIconClasses:()=>p});var r,o=n(6456),i=n(9403),a=n(9400),s=n(3941);!function(e){e[e.FILE=0]="FILE",e[e.FOLDER=1]="FOLDER",e[e.ROOT_FOLDER=2]="ROOT_FOLDER"}(r||(r={}));var l,c,d=n(9493);!function(e){e.isThemeColor=function(e){return e&&"object"===typeof e&&"string"===typeof e.id}}(l||(l={})),function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9-]+",e.iconModifierExpression="~[A-Za-z]+",e.iconNameCharacter="[A-Za-z0-9~-]";const t=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function n(e){const r=t.exec(e.id);if(!r)return n(d.W.error);const[,o,i]=r,a=["codicon","codicon-"+o];return i&&a.push("codicon-modifier-"+i.substring(1)),a}e.asClassNameArray=n,e.asClassName=function(e){return n(e).join(" ")},e.asCSSSelector=function(e){return"."+n(e).join(".")},e.isThemeIcon=function(e){return e&&"object"===typeof e&&"string"===typeof e.id&&("undefined"===typeof e.color||l.isThemeColor(e.color))};const r=new RegExp(`^\\$\\((${e.iconNameExpression}(?:${e.iconModifierExpression})?)\\)$`);e.fromString=function(e){const t=r.exec(e);if(!t)return;const[,n]=t;return{id:n}},e.fromId=function(e){return{id:e}},e.modify=function(e,t){let n=e.id;const r=n.lastIndexOf("~");return-1!==r&&(n=n.substring(0,r)),t&&(n=`${n}~${t}`),{id:n}},e.getModifier=function(e){const t=e.id.lastIndexOf("~");if(-1!==t)return e.id.substring(t+1)},e.isEqual=function(e,t){return e.id===t.id&&e.color?.id===t.color?.id}}(c||(c={}));const u=/(?:\/|^)(?:([^\/]+)\/)?([^\/]+)$/;function p(e,t,n,l,d){if(c.isThemeIcon(d))return[`codicon-${d.id}`,"predefined-file-icon"];if(a.r.isUri(d))return[];const p=l===r.ROOT_FOLDER?["rootfolder-icon"]:l===r.FOLDER?["folder-icon"]:["file-icon"];if(n){let a;if(n.scheme===o.ny.data){a=i.B6.parseMetaData(n).get(i.B6.META_DATA_LABEL)}else{const e=n.path.match(u);e?(a=f(e[2].toLowerCase()),e[1]&&p.push(`${f(e[1].toLowerCase())}-name-dir-icon`)):a=f(n.authority.toLowerCase())}if(l===r.ROOT_FOLDER)p.push(`${a}-root-name-folder-icon`);else if(l===r.FOLDER)p.push(`${a}-name-folder-icon`);else{if(a){if(p.push(`${a}-name-file-icon`),p.push("name-file-icon"),a.length<=255){const e=a.split(".");for(let t=1;t<e.length;t++)p.push(`${e.slice(t).join(".")}-ext-file-icon`)}p.push("ext-file-icon")}const r=function(e,t,n){if(!n)return null;let r=null;if(n.scheme===o.ny.data){const e=i.B6.parseMetaData(n).get(i.B6.META_DATA_MIME);e&&(r=t.getLanguageIdByMimeType(e))}else{const t=e.getModel(n);t&&(r=t.getLanguageId())}if(r&&r!==s.vH)return r;return t.guessLanguageIdByFilepathOrFirstLine(n)}(e,t,n);r&&p.push(`${f(r)}-lang-file-icon`)}}return p}function f(e){return e.replace(/[\s]/g,"/")}},5724:(e,t,n)=>{"use strict";n.d(t,{Gy:()=>l,zy:()=>u,Yf:()=>c});var r,o=n(1234),i=n(1484),a=n(3591),s=n(6359);!function(e){e.DARK="dark",e.LIGHT="light",e.HIGH_CONTRAST_DARK="hcDark",e.HIGH_CONTRAST_LIGHT="hcLight"}(r||(r={}));const l=(0,a.u1)("themeService");function c(e){return{id:e}}const d=new class{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new o.vl}onColorThemeChange(e){return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),(0,i.s)((()=>{const t=this.themingParticipants.indexOf(e);this.themingParticipants.splice(t,1)}))}getThemingParticipants(){return this.themingParticipants}};function u(e){return d.onColorThemeChange(e)}s.O.add("base.contributions.theming",d);i.jG},5845:(e,t,n)=>{"use strict";n.d(t,{buw:()=>A,b1q:()=>x,YtV:()=>M,Ubg:()=>j,IIb:()=>B,pOz:()=>z,whs:()=>O,Stt:()=>W,Hng:()=>F,yLC:()=>le,KoI:()=>ae,uMG:()=>se,x1A:()=>u});var r=n(6782),o=n(1940),i=n(7661),a=n(1234),s=n(8748),l=n(6359),c=n(8209);const d=new class{constructor(){this._onDidChangeSchema=new a.vl,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}registerColor(e,t,n,r=!1,o){const i={id:e,description:n,defaults:t,needsTransparency:r,deprecationMessage:o};this.colorsById[e]=i;const a={type:"string",format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return o&&(a.deprecationMessage=o),r&&(a.pattern="^#(?:(?<rgba>[0-9a-fA-f]{3}[0-9a-eA-E])|(?:[0-9a-fA-F]{6}(?:(?![fF]{2})(?:[0-9a-fA-F]{2}))))?$",a.patternErrorMessage=c.kg("transparecyRequired","This color must be transparent or it will obscure content")),this.colorSchema.properties[e]={description:n,oneOf:[a,{type:"string",const:"default",description:c.kg("useDefault","Use the default color.")}]},this.colorReferenceSchema.enum.push(e),this.colorReferenceSchema.enumDescriptions.push(n),this._onDidChangeSchema.fire(),e}getColors(){return Object.keys(this.colorsById).map((e=>this.colorsById[e]))}resolveDefaultColor(e,t){const n=this.colorsById[e];if(n?.defaults){return g(null!==(r=n.defaults)&&"object"===typeof r&&"light"in r&&"dark"in r?n.defaults[t.type]:n.defaults,t)}var r}getColorSchema(){return this.colorSchema}toString(){return Object.keys(this.colorsById).sort(((e,t)=>{const n=-1===e.indexOf(".")?0:1,r=-1===t.indexOf(".")?0:1;return n!==r?n-r:e.localeCompare(t)})).map((e=>`- \`${e}\`: ${this.colorsById[e].description}`)).join("\n")}};function u(e,t,n,r,o){return d.registerColor(e,t,n,r,o)}function p(e,t){return{op:0,value:e,factor:t}}function f(e,t){return{op:1,value:e,factor:t}}function m(e,t){return{op:2,value:e,factor:t}}function _(...e){return{op:4,values:e}}function h(e,t,n,r){return{op:5,value:e,background:t,factor:n,transparency:r}}function g(e,t){if(null!==e)return"string"===typeof e?"#"===e[0]?i.Q1.fromHex(e):t.getColor(e):e instanceof i.Q1?e:"object"===typeof e?function(e,t){switch(e.op){case 0:return g(e.value,t)?.darken(e.factor);case 1:return g(e.value,t)?.lighten(e.factor);case 2:return g(e.value,t)?.transparent(e.factor);case 3:{const n=g(e.background,t);return n?g(e.value,t)?.makeOpaque(n):g(e.value,t)}case 4:for(const n of e.values){const e=g(n,t);if(e)return e}return;case 6:return g(t.defines(e.if)?e.then:e.else,t);case 5:{const n=g(e.value,t);if(!n)return;const r=g(e.background,t);return r?n.isDarkerThan(r)?i.Q1.getLighterColor(n,r,e.factor).transparent(e.transparency):i.Q1.getDarkerColor(n,r,e.factor).transparent(e.transparency):n.transparent(e.factor*e.transparency)}default:throw(0,r.xb)(e)}}(e,t):void 0}l.O.add("base.contributions.colors",d);const y="vscode://schemas/workbench-colors",v=l.O.as(s.F.JSONContribution);v.registerSchema(y,d.getColorSchema());const b=new o.uC((()=>v.notifySchemaChanged(y)),200);d.onDidChangeSchema((()=>{b.isScheduled()||b.schedule()}));const E=u("foreground",{dark:"#CCCCCC",light:"#616161",hcDark:"#FFFFFF",hcLight:"#292929"},c.kg("foreground","Overall foreground color. This color is only used if not overridden by a component.")),S=(u("disabledForeground",{dark:"#CCCCCC80",light:"#61616180",hcDark:"#A5A5A5",hcLight:"#7F7F7F"},c.kg("disabledForeground","Overall foreground for disabled elements. This color is only used if not overridden by a component.")),u("errorForeground",{dark:"#F48771",light:"#A1260D",hcDark:"#F48771",hcLight:"#B5200D"},c.kg("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),u("descriptionForeground",{light:"#717171",dark:m(E,.7),hcDark:m(E,.7),hcLight:m(E,.7)},c.kg("descriptionForeground","Foreground color for description text providing additional information, for example for a label.")),u("icon.foreground",{dark:"#C5C5C5",light:"#424242",hcDark:"#FFFFFF",hcLight:"#292929"},c.kg("iconForeground","The default color for icons in the workbench."))),T=u("focusBorder",{dark:"#007FD4",light:"#0090F1",hcDark:"#F38518",hcLight:"#006BBD"},c.kg("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),x=u("contrastBorder",{light:null,dark:null,hcDark:"#6FC3DF",hcLight:"#0F4A85"},c.kg("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),A=u("contrastActiveBorder",{light:null,dark:null,hcDark:T,hcLight:T},c.kg("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),I=(u("selection.background",null,c.kg("selectionBackground","The background color of text selections in the workbench (e.g. for input fields or text areas). Note that this does not apply to selections within the editor.")),u("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},c.kg("textLinkForeground","Foreground color for links in text.")),u("textLink.activeForeground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},c.kg("textLinkActiveForeground","Foreground color for links in text when clicked on and on mouse hover.")),u("textSeparator.foreground",{light:"#0000002e",dark:"#ffffff2e",hcDark:i.Q1.black,hcLight:"#292929"},c.kg("textSeparatorForeground","Color for text separators.")),u("textPreformat.foreground",{light:"#A31515",dark:"#D7BA7D",hcDark:"#000000",hcLight:"#FFFFFF"},c.kg("textPreformatForeground","Foreground color for preformatted text segments.")),u("textPreformat.background",{light:"#0000001A",dark:"#FFFFFF1A",hcDark:"#FFFFFF",hcLight:"#09345f"},c.kg("textPreformatBackground","Background color for preformatted text segments.")),u("textBlockQuote.background",{light:"#f2f2f2",dark:"#222222",hcDark:null,hcLight:"#F2F2F2"},c.kg("textBlockQuoteBackground","Background color for block quotes in text.")),u("textBlockQuote.border",{light:"#007acc80",dark:"#007acc80",hcDark:i.Q1.white,hcLight:"#292929"},c.kg("textBlockQuoteBorder","Border color for block quotes in text.")),u("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hcDark:i.Q1.black,hcLight:"#F2F2F2"},c.kg("textCodeBlockBackground","Background color for code blocks in text.")),u("sash.hoverBorder",T,c.kg("sashActiveBorder","Border color of active sashes.")),u("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hcDark:i.Q1.black,hcLight:"#0F4A85"},c.kg("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count."))),R=(u("badge.foreground",{dark:i.Q1.white,light:"#333",hcDark:i.Q1.white,hcLight:i.Q1.white},c.kg("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),u("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hcDark:null,hcLight:null},c.kg("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled."))),C=u("scrollbarSlider.background",{dark:i.Q1.fromHex("#797979").transparent(.4),light:i.Q1.fromHex("#646464").transparent(.4),hcDark:m(x,.6),hcLight:m(x,.4)},c.kg("scrollbarSliderBackground","Scrollbar slider background color.")),D=u("scrollbarSlider.hoverBackground",{dark:i.Q1.fromHex("#646464").transparent(.7),light:i.Q1.fromHex("#646464").transparent(.7),hcDark:m(x,.8),hcLight:m(x,.8)},c.kg("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),N=u("scrollbarSlider.activeBackground",{dark:i.Q1.fromHex("#BFBFBF").transparent(.4),light:i.Q1.fromHex("#000000").transparent(.6),hcDark:x,hcLight:x},c.kg("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),M=(u("progressBar.background",{dark:i.Q1.fromHex("#0E70C0"),light:i.Q1.fromHex("#0E70C0"),hcDark:x,hcLight:x},c.kg("progressBarBackground","Background color of the progress bar that can show for long running operations.")),u("editor.background",{light:"#ffffff",dark:"#1E1E1E",hcDark:i.Q1.black,hcLight:i.Q1.white},c.kg("editorBackground","Editor background color."))),L=(u("editor.foreground",{light:"#333333",dark:"#BBBBBB",hcDark:i.Q1.white,hcLight:E},c.kg("editorForeground","Editor default foreground color.")),u("editorStickyScroll.background",M,c.kg("editorStickyScrollBackground","Background color of sticky scroll in the editor")),u("editorStickyScrollHover.background",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:null,hcLight:i.Q1.fromHex("#0F4A85").transparent(.1)},c.kg("editorStickyScrollHoverBackground","Background color of sticky scroll on hover in the editor")),u("editorStickyScroll.border",{dark:null,light:null,hcDark:x,hcLight:x},c.kg("editorStickyScrollBorder","Border color of sticky scroll in the editor")),u("editorStickyScroll.shadow",R,c.kg("editorStickyScrollShadow"," Shadow color of sticky scroll in the editor")),u("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hcDark:"#0C141F",hcLight:i.Q1.white},c.kg("editorWidgetBackground","Background color of editor widgets, such as find/replace."))),k=u("editorWidget.foreground",E,c.kg("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),P=u("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hcDark:x,hcLight:x},c.kg("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),w=(u("editorWidget.resizeBorder",null,c.kg("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),u("editorError.background",null,c.kg("editorError.background","Background color of error text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),u("editorError.foreground",{dark:"#F14C4C",light:"#E51400",hcDark:"#F48771",hcLight:"#B5200D"},c.kg("editorError.foreground","Foreground color of error squigglies in the editor."))),O=(u("editorError.border",{dark:null,light:null,hcDark:i.Q1.fromHex("#E47777").transparent(.8),hcLight:"#B5200D"},c.kg("errorBorder","If set, color of double underlines for errors in the editor.")),u("editorWarning.background",null,c.kg("editorWarning.background","Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0)),F=u("editorWarning.foreground",{dark:"#CCA700",light:"#BF8803",hcDark:"#FFD370",hcLight:"#895503"},c.kg("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),W=u("editorWarning.border",{dark:null,light:null,hcDark:i.Q1.fromHex("#FFCC00").transparent(.8),hcLight:i.Q1.fromHex("#FFCC00").transparent(.8)},c.kg("warningBorder","If set, color of double underlines for warnings in the editor.")),z=(u("editorInfo.background",null,c.kg("editorInfo.background","Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),u("editorInfo.foreground",{dark:"#3794FF",light:"#1a85ff",hcDark:"#3794FF",hcLight:"#1a85ff"},c.kg("editorInfo.foreground","Foreground color of info squigglies in the editor."))),B=u("editorInfo.border",{dark:null,light:null,hcDark:i.Q1.fromHex("#3794FF").transparent(.8),hcLight:"#292929"},c.kg("infoBorder","If set, color of double underlines for infos in the editor.")),G=(u("editorHint.foreground",{dark:i.Q1.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hcDark:null,hcLight:null},c.kg("editorHint.foreground","Foreground color of hint squigglies in the editor.")),u("editorHint.border",{dark:null,light:null,hcDark:i.Q1.fromHex("#eeeeee").transparent(.8),hcLight:"#292929"},c.kg("hintBorder","If set, color of double underlines for hints in the editor.")),u("editorLink.activeForeground",{dark:"#4E94CE",light:i.Q1.blue,hcDark:i.Q1.cyan,hcLight:"#292929"},c.kg("activeLinkForeground","Color of active links.")),u("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hcDark:"#f3f518",hcLight:"#0F4A85"},c.kg("editorSelectionBackground","Color of the editor selection."))),j=(u("editor.selectionForeground",{light:null,dark:null,hcDark:"#000000",hcLight:i.Q1.white},c.kg("editorSelectionForeground","Color of the selected text for high contrast.")),u("editor.inactiveSelectionBackground",{light:m(G,.5),dark:m(G,.5),hcDark:m(G,.7),hcLight:m(G,.5)},c.kg("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),u("editor.selectionHighlightBackground",{light:h(G,M,.3,.6),dark:h(G,M,.3,.6),hcDark:null,hcLight:null},c.kg("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),u("editor.selectionHighlightBorder",{light:null,dark:null,hcDark:A,hcLight:A},c.kg("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),u("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hcDark:null,hcLight:null},c.kg("editorFindMatch","Color of the current search match.")),u("editor.findMatchForeground",null,c.kg("editorFindMatchForeground","Text color of the current search match.")),u("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hcDark:null,hcLight:null},c.kg("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0)),V=(u("editor.findMatchHighlightForeground",null,c.kg("findMatchHighlightForeground","Foreground color of the other search matches."),!0),u("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hcDark:null,hcLight:null},c.kg("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),u("editor.findMatchBorder",{light:null,dark:null,hcDark:A,hcLight:A},c.kg("editorFindMatchBorder","Border color of the current search match.")),u("editor.findMatchHighlightBorder",{light:null,dark:null,hcDark:A,hcLight:A},c.kg("findMatchHighlightBorder","Border color of the other search matches."))),U=(u("editor.findRangeHighlightBorder",{dark:null,light:null,hcDark:m(A,.4),hcLight:m(A,.4)},c.kg("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),u("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hcDark:"#ADD6FF26",hcLight:null},c.kg("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),u("editorHoverWidget.background",L,c.kg("hoverBackground","Background color of the editor hover."))),H=(u("editorHoverWidget.foreground",k,c.kg("hoverForeground","Foreground color of the editor hover.")),u("editorHoverWidget.border",P,c.kg("hoverBorder","Border color of the editor hover.")),u("editorHoverWidget.statusBarBackground",{dark:f(U,.2),light:p(U,.05),hcDark:L,hcLight:L},c.kg("statusBarBackground","Background color of the editor hover status bar.")),u("editorInlayHint.foreground",{dark:"#969696",light:"#969696",hcDark:i.Q1.white,hcLight:i.Q1.black},c.kg("editorInlayHintForeground","Foreground color of inline hints"))),K=u("editorInlayHint.background",{dark:m(I,.1),light:m(I,.1),hcDark:m(i.Q1.white,.1),hcLight:m(I,.1)},c.kg("editorInlayHintBackground","Background color of inline hints")),q=(u("editorInlayHint.typeForeground",H,c.kg("editorInlayHintForegroundTypes","Foreground color of inline hints for types")),u("editorInlayHint.typeBackground",K,c.kg("editorInlayHintBackgroundTypes","Background color of inline hints for types")),u("editorInlayHint.parameterForeground",H,c.kg("editorInlayHintForegroundParameter","Foreground color of inline hints for parameters")),u("editorInlayHint.parameterBackground",K,c.kg("editorInlayHintBackgroundParameter","Background color of inline hints for parameters")),u("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hcDark:"#FFCC00",hcLight:"#007ACC"},c.kg("editorLightBulbForeground","The color used for the lightbulb actions icon."))),J=(u("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},c.kg("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),u("editorLightBulbAi.foreground",q,c.kg("editorLightBulbAiForeground","The color used for the lightbulb AI icon.")),u("editor.snippetTabstopHighlightBackground",{dark:new i.Q1(new i.bU(124,124,124,.3)),light:new i.Q1(new i.bU(10,50,100,.2)),hcDark:new i.Q1(new i.bU(124,124,124,.3)),hcLight:new i.Q1(new i.bU(10,50,100,.2))},c.kg("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),u("editor.snippetTabstopHighlightBorder",null,c.kg("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),u("editor.snippetFinalTabstopHighlightBackground",null,c.kg("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),u("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new i.Q1(new i.bU(10,50,100,.5)),hcDark:"#525252",hcLight:"#292929"},c.kg("snippetFinalTabstopHighlightBorder","Highlight border color of the final tabstop of a snippet.")),new i.Q1(new i.bU(155,185,85,.2))),X=new i.Q1(new i.bU(255,0,0,.2)),$=(u("diffEditor.insertedTextBackground",{dark:"#9ccc2c33",light:"#9ccc2c40",hcDark:null,hcLight:null},c.kg("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),u("diffEditor.removedTextBackground",{dark:"#ff000033",light:"#ff000033",hcDark:null,hcLight:null},c.kg("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),u("diffEditor.insertedLineBackground",{dark:J,light:J,hcDark:null,hcLight:null},c.kg("diffEditorInsertedLines","Background color for lines that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),u("diffEditor.removedLineBackground",{dark:X,light:X,hcDark:null,hcLight:null},c.kg("diffEditorRemovedLines","Background color for lines that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),u("diffEditorGutter.insertedLineBackground",null,c.kg("diffEditorInsertedLineGutter","Background color for the margin where lines got inserted.")),u("diffEditorGutter.removedLineBackground",null,c.kg("diffEditorRemovedLineGutter","Background color for the margin where lines got removed.")),u("diffEditorOverview.insertedForeground",null,c.kg("diffEditorOverviewInserted","Diff overview ruler foreground for inserted content.")),u("diffEditorOverview.removedForeground",null,c.kg("diffEditorOverviewRemoved","Diff overview ruler foreground for removed content.")),u("diffEditor.insertedTextBorder",{dark:null,light:null,hcDark:"#33ff2eff",hcLight:"#374E06"},c.kg("diffEditorInsertedOutline","Outline color for the text that got inserted.")),u("diffEditor.removedTextBorder",{dark:null,light:null,hcDark:"#FF008F",hcLight:"#AD0707"},c.kg("diffEditorRemovedOutline","Outline color for text that got removed.")),u("diffEditor.border",{dark:null,light:null,hcDark:x,hcLight:x},c.kg("diffEditorBorder","Border color between the two text editors.")),u("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hcDark:null,hcLight:null},c.kg("diffDiagonalFill","Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.")),u("diffEditor.unchangedRegionBackground","sideBar.background",c.kg("diffEditor.unchangedRegionBackground","The background color of unchanged blocks in the diff editor.")),u("diffEditor.unchangedRegionForeground","foreground",c.kg("diffEditor.unchangedRegionForeground","The foreground color of unchanged blocks in the diff editor.")),u("diffEditor.unchangedCodeBackground",{dark:"#74747429",light:"#b8b8b829",hcDark:null,hcLight:null},c.kg("diffEditor.unchangedCodeBackground","The background color of unchanged code in the diff editor.")),u("widget.shadow",{dark:m(i.Q1.black,.36),light:m(i.Q1.black,.16),hcDark:null,hcLight:null},c.kg("widgetShadow","Shadow color of widgets such as find/replace inside the editor."))),Y=(u("widget.border",{dark:null,light:null,hcDark:x,hcLight:x},c.kg("widgetBorder","Border color of widgets such as find/replace inside the editor.")),u("toolbar.hoverBackground",{dark:"#5a5d5e50",light:"#b8b8b850",hcDark:null,hcLight:null},c.kg("toolbarHoverBackground","Toolbar background when hovering over actions using the mouse"))),Q=(u("toolbar.hoverOutline",{dark:null,light:null,hcDark:A,hcLight:A},c.kg("toolbarHoverOutline","Toolbar outline when hovering over actions using the mouse")),u("toolbar.activeBackground",{dark:f(Y,.1),light:p(Y,.1),hcDark:null,hcLight:null},c.kg("toolbarActiveBackground","Toolbar background when holding the mouse over actions")),u("breadcrumb.foreground",m(E,.8),c.kg("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),u("breadcrumb.background",M,c.kg("breadcrumbsBackground","Background color of breadcrumb items.")),u("breadcrumb.focusForeground",{light:p(E,.2),dark:f(E,.1),hcDark:f(E,.1),hcLight:f(E,.1)},c.kg("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),u("breadcrumb.activeSelectionForeground",{light:p(E,.2),dark:f(E,.1),hcDark:f(E,.1),hcLight:f(E,.1)},c.kg("breadcrumbsSelectedForeground","Color of selected breadcrumb items.")),u("breadcrumbPicker.background",L,c.kg("breadcrumbsSelectedBackground","Background color of breadcrumb item picker.")),i.Q1.fromHex("#40C8AE").transparent(.5)),Z=i.Q1.fromHex("#40A6FF").transparent(.5),ee=i.Q1.fromHex("#606060").transparent(.4),te=u("merge.currentHeaderBackground",{dark:Q,light:Q,hcDark:null,hcLight:null},c.kg("mergeCurrentHeaderBackground","Current header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),ne=(u("merge.currentContentBackground",m(te,.4),c.kg("mergeCurrentContentBackground","Current content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),u("merge.incomingHeaderBackground",{dark:Z,light:Z,hcDark:null,hcLight:null},c.kg("mergeIncomingHeaderBackground","Incoming header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0)),re=(u("merge.incomingContentBackground",m(ne,.4),c.kg("mergeIncomingContentBackground","Incoming content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),u("merge.commonHeaderBackground",{dark:ee,light:ee,hcDark:null,hcLight:null},c.kg("mergeCommonHeaderBackground","Common ancestor header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0)),oe=(u("merge.commonContentBackground",m(re,.4),c.kg("mergeCommonContentBackground","Common ancestor content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),u("merge.border",{dark:null,light:null,hcDark:"#C3DF6F",hcLight:"#007ACC"},c.kg("mergeBorder","Border color on headers and the splitter in inline merge-conflicts."))),ie=(u("editorOverviewRuler.currentContentForeground",{dark:m(te,1),light:m(te,1),hcDark:oe,hcLight:oe},c.kg("overviewRulerCurrentContentForeground","Current overview ruler foreground for inline merge-conflicts.")),u("editorOverviewRuler.incomingContentForeground",{dark:m(ne,1),light:m(ne,1),hcDark:oe,hcLight:oe},c.kg("overviewRulerIncomingContentForeground","Incoming overview ruler foreground for inline merge-conflicts.")),u("editorOverviewRuler.commonContentForeground",{dark:m(re,1),light:m(re,1),hcDark:oe,hcLight:oe},c.kg("overviewRulerCommonContentForeground","Common ancestor overview ruler foreground for inline merge-conflicts.")),u("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hcDark:"#AB5A00",hcLight:"#AB5A00"},c.kg("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0),u("editorOverviewRuler.selectionHighlightForeground","#A0A0A0CC",c.kg("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),u("problemsErrorIcon.foreground",w,c.kg("problemsErrorIconForeground","The color used for the problems error icon.")),u("problemsWarningIcon.foreground",F,c.kg("problemsWarningIconForeground","The color used for the problems warning icon.")),u("problemsInfoIcon.foreground",z,c.kg("problemsInfoIconForeground","The color used for the problems info icon.")),u("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hcDark:"#AB5A00",hcLight:"#0F4A85"},c.kg("minimapFindMatchHighlight","Minimap marker color for find matches."),!0)),ae=(u("minimap.selectionOccurrenceHighlight",{light:"#c9c9c9",dark:"#676767",hcDark:"#ffffff",hcLight:"#0F4A85"},c.kg("minimapSelectionOccurrenceHighlight","Minimap marker color for repeating editor selections."),!0),u("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hcDark:"#ffffff",hcLight:"#0F4A85"},c.kg("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),u("minimap.infoHighlight",{dark:z,light:z,hcDark:B,hcLight:B},c.kg("minimapInfo","Minimap marker color for infos."))),se=u("minimap.warningHighlight",{dark:F,light:F,hcDark:W,hcLight:W},c.kg("overviewRuleWarning","Minimap marker color for warnings.")),le=u("minimap.errorHighlight",{dark:new i.Q1(new i.bU(255,18,18,.7)),light:new i.Q1(new i.bU(255,18,18,.7)),hcDark:new i.Q1(new i.bU(255,50,50,1)),hcLight:"#B5200D"},c.kg("minimapError","Minimap marker color for errors.")),ce=(u("minimap.background",null,c.kg("minimapBackground","Minimap background color.")),u("minimap.foregroundOpacity",i.Q1.fromHex("#000f"),c.kg("minimapForegroundOpacity",'Opacity of foreground elements rendered in the minimap. For example, "#000000c0" will render the elements with 75% opacity.')),u("minimapSlider.background",m(C,.5),c.kg("minimapSliderBackground","Minimap slider background color.")),u("minimapSlider.hoverBackground",m(D,.5),c.kg("minimapSliderHoverBackground","Minimap slider background color when hovering.")),u("minimapSlider.activeBackground",m(N,.5),c.kg("minimapSliderActiveBackground","Minimap slider background color when clicked on.")),u("charts.foreground",E,c.kg("chartsForeground","The foreground color used in charts.")),u("charts.lines",m(E,.5),c.kg("chartsLines","The color used for horizontal lines in charts.")),u("charts.red",w,c.kg("chartsRed","The red color used in chart visualizations.")),u("charts.blue",z,c.kg("chartsBlue","The blue color used in chart visualizations.")),u("charts.yellow",F,c.kg("chartsYellow","The yellow color used in chart visualizations.")),u("charts.orange",ie,c.kg("chartsOrange","The orange color used in chart visualizations.")),u("charts.green",{dark:"#89D185",light:"#388A34",hcDark:"#89D185",hcLight:"#374e06"},c.kg("chartsGreen","The green color used in chart visualizations.")),u("charts.purple",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},c.kg("chartsPurple","The purple color used in chart visualizations.")),u("input.background",{dark:"#3C3C3C",light:i.Q1.white,hcDark:i.Q1.black,hcLight:i.Q1.white},c.kg("inputBoxBackground","Input box background.")),u("input.foreground",E,c.kg("inputBoxForeground","Input box foreground.")),u("input.border",{dark:null,light:null,hcDark:x,hcLight:x},c.kg("inputBoxBorder","Input box border.")),u("inputOption.activeBorder",{dark:"#007ACC",light:"#007ACC",hcDark:x,hcLight:x},c.kg("inputBoxActiveOptionBorder","Border color of activated options in input fields."))),de=u("inputOption.hoverBackground",{dark:"#5a5d5e80",light:"#b8b8b850",hcDark:null,hcLight:null},c.kg("inputOption.hoverBackground","Background color of activated options in input fields.")),ue=u("inputOption.activeBackground",{dark:m(T,.4),light:m(T,.2),hcDark:i.Q1.transparent,hcLight:i.Q1.transparent},c.kg("inputOption.activeBackground","Background hover color of options in input fields.")),pe=u("inputOption.activeForeground",{dark:i.Q1.white,light:i.Q1.black,hcDark:E,hcLight:E},c.kg("inputOption.activeForeground","Foreground color of activated options in input fields.")),fe=(u("input.placeholderForeground",{light:m(E,.5),dark:m(E,.5),hcDark:m(E,.7),hcLight:m(E,.7)},c.kg("inputPlaceholderForeground","Input box foreground color for placeholder text.")),u("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hcDark:i.Q1.black,hcLight:i.Q1.white},c.kg("inputValidationInfoBackground","Input validation background color for information severity.")),u("inputValidation.infoForeground",{dark:null,light:null,hcDark:null,hcLight:E},c.kg("inputValidationInfoForeground","Input validation foreground color for information severity.")),u("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hcDark:x,hcLight:x},c.kg("inputValidationInfoBorder","Input validation border color for information severity.")),u("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hcDark:i.Q1.black,hcLight:i.Q1.white},c.kg("inputValidationWarningBackground","Input validation background color for warning severity.")),u("inputValidation.warningForeground",{dark:null,light:null,hcDark:null,hcLight:E},c.kg("inputValidationWarningForeground","Input validation foreground color for warning severity.")),u("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hcDark:x,hcLight:x},c.kg("inputValidationWarningBorder","Input validation border color for warning severity.")),u("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hcDark:i.Q1.black,hcLight:i.Q1.white},c.kg("inputValidationErrorBackground","Input validation background color for error severity.")),u("inputValidation.errorForeground",{dark:null,light:null,hcDark:null,hcLight:E},c.kg("inputValidationErrorForeground","Input validation foreground color for error severity.")),u("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hcDark:x,hcLight:x},c.kg("inputValidationErrorBorder","Input validation border color for error severity.")),u("dropdown.background",{dark:"#3C3C3C",light:i.Q1.white,hcDark:i.Q1.black,hcLight:i.Q1.white},c.kg("dropdownBackground","Dropdown background."))),me=(u("dropdown.listBackground",{dark:null,light:null,hcDark:i.Q1.black,hcLight:i.Q1.white},c.kg("dropdownListBackground","Dropdown list background.")),u("dropdown.foreground",{dark:"#F0F0F0",light:E,hcDark:i.Q1.white,hcLight:E},c.kg("dropdownForeground","Dropdown foreground."))),_e=u("dropdown.border",{dark:fe,light:"#CECECE",hcDark:x,hcLight:x},c.kg("dropdownBorder","Dropdown border.")),he=u("button.foreground",i.Q1.white,c.kg("buttonForeground","Button foreground color.")),ge=(u("button.separator",m(he,.4),c.kg("buttonSeparator","Button separator color.")),u("button.background",{dark:"#0E639C",light:"#007ACC",hcDark:null,hcLight:"#0F4A85"},c.kg("buttonBackground","Button background color."))),ye=(u("button.hoverBackground",{dark:f(ge,.2),light:p(ge,.2),hcDark:ge,hcLight:ge},c.kg("buttonHoverBackground","Button background color when hovering.")),u("button.border",x,c.kg("buttonBorder","Button border color.")),u("button.secondaryForeground",{dark:i.Q1.white,light:i.Q1.white,hcDark:i.Q1.white,hcLight:E},c.kg("buttonSecondaryForeground","Secondary button foreground color.")),u("button.secondaryBackground",{dark:"#3A3D41",light:"#5F6A79",hcDark:null,hcLight:i.Q1.white},c.kg("buttonSecondaryBackground","Secondary button background color."))),ve=(u("button.secondaryHoverBackground",{dark:f(ye,.2),light:p(ye,.2),hcDark:null,hcLight:null},c.kg("buttonSecondaryHoverBackground","Secondary button background color when hovering.")),u("radio.activeForeground",pe,c.kg("radioActiveForeground","Foreground color of active radio option."))),be=(u("radio.activeBackground",ue,c.kg("radioBackground","Background color of active radio option.")),u("radio.activeBorder",ce,c.kg("radioActiveBorder","Border color of the active radio option.")),u("radio.inactiveForeground",null,c.kg("radioInactiveForeground","Foreground color of inactive radio option.")),u("radio.inactiveBackground",null,c.kg("radioInactiveBackground","Background color of inactive radio option.")),u("radio.inactiveBorder",{light:m(ve,.2),dark:m(ve,.2),hcDark:m(ve,.4),hcLight:m(ve,.2)},c.kg("radioInactiveBorder","Border color of the inactive radio option.")),u("radio.inactiveHoverBackground",de,c.kg("radioHoverBackground","Background color of inactive active radio option when hovering.")),u("checkbox.background",fe,c.kg("checkbox.background","Background color of checkbox widget.")),u("checkbox.selectBackground",L,c.kg("checkbox.select.background","Background color of checkbox widget when the element it's in is selected.")),u("checkbox.foreground",me,c.kg("checkbox.foreground","Foreground color of checkbox widget.")),u("checkbox.border",_e,c.kg("checkbox.border","Border color of checkbox widget.")),u("checkbox.selectBorder",S,c.kg("checkbox.select.border","Border color of checkbox widget when the element it's in is selected.")),u("keybindingLabel.background",{dark:new i.Q1(new i.bU(128,128,128,.17)),light:new i.Q1(new i.bU(221,221,221,.4)),hcDark:i.Q1.transparent,hcLight:i.Q1.transparent},c.kg("keybindingLabelBackground","Keybinding label background color. The keybinding label is used to represent a keyboard shortcut.")),u("keybindingLabel.foreground",{dark:i.Q1.fromHex("#CCCCCC"),light:i.Q1.fromHex("#555555"),hcDark:i.Q1.white,hcLight:E},c.kg("keybindingLabelForeground","Keybinding label foreground color. The keybinding label is used to represent a keyboard shortcut.")),u("keybindingLabel.border",{dark:new i.Q1(new i.bU(51,51,51,.6)),light:new i.Q1(new i.bU(204,204,204,.4)),hcDark:new i.Q1(new i.bU(111,195,223)),hcLight:x},c.kg("keybindingLabelBorder","Keybinding label border color. The keybinding label is used to represent a keyboard shortcut.")),u("keybindingLabel.bottomBorder",{dark:new i.Q1(new i.bU(68,68,68,.6)),light:new i.Q1(new i.bU(187,187,187,.4)),hcDark:new i.Q1(new i.bU(111,195,223)),hcLight:E},c.kg("keybindingLabelBottomBorder","Keybinding label border bottom color. The keybinding label is used to represent a keyboard shortcut.")),u("list.focusBackground",null,c.kg("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),u("list.focusForeground",null,c.kg("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),u("list.focusOutline",{dark:T,light:T,hcDark:A,hcLight:A},c.kg("listFocusOutline","List/Tree outline color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),u("list.focusAndSelectionOutline",null,c.kg("listFocusAndSelectionOutline","List/Tree outline color for the focused item when the list/tree is active and selected. An active list/tree has keyboard focus, an inactive does not.")),u("list.activeSelectionBackground",{dark:"#04395E",light:"#0060C0",hcDark:null,hcLight:i.Q1.fromHex("#0F4A85").transparent(.1)},c.kg("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not."))),Ee=u("list.activeSelectionForeground",{dark:i.Q1.white,light:i.Q1.white,hcDark:null,hcLight:null},c.kg("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Se=u("list.activeSelectionIconForeground",null,c.kg("listActiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Te=(u("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hcDark:null,hcLight:i.Q1.fromHex("#0F4A85").transparent(.1)},c.kg("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),u("list.inactiveSelectionForeground",null,c.kg("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),u("list.inactiveSelectionIconForeground",null,c.kg("listInactiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),u("list.inactiveFocusBackground",null,c.kg("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),u("list.inactiveFocusOutline",null,c.kg("listInactiveFocusOutline","List/Tree outline color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),u("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:i.Q1.white.transparent(.1),hcLight:i.Q1.fromHex("#0F4A85").transparent(.1)},c.kg("listHoverBackground","List/Tree background when hovering over items using the mouse.")),u("list.hoverForeground",null,c.kg("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),u("list.dropBackground",{dark:"#062F4A",light:"#D6EBFF",hcDark:null,hcLight:null},c.kg("listDropBackground","List/Tree drag and drop background when moving items over other items when using the mouse.")),u("list.dropBetweenBackground",{dark:S,light:S,hcDark:null,hcLight:null},c.kg("listDropBetweenBackground","List/Tree drag and drop border color when moving items between items when using the mouse.")),u("list.highlightForeground",{dark:"#2AAAFF",light:"#0066BF",hcDark:T,hcLight:T},c.kg("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")));u("list.focusHighlightForeground",{dark:Te,light:(xe=be,Ae=Te,Ie="#BBE7FF",{op:6,if:xe,then:Ae,else:Ie}),hcDark:Te,hcLight:Te},c.kg("listFocusHighlightForeground","List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree."));var xe,Ae,Ie;u("list.invalidItemForeground",{dark:"#B89500",light:"#B89500",hcDark:"#B89500",hcLight:"#B5200D"},c.kg("invalidItemForeground","List/Tree foreground color for invalid items, for example an unresolved root in explorer.")),u("list.errorForeground",{dark:"#F88070",light:"#B01011",hcDark:null,hcLight:null},c.kg("listErrorForeground","Foreground color of list items containing errors.")),u("list.warningForeground",{dark:"#CCA700",light:"#855F00",hcDark:null,hcLight:null},c.kg("listWarningForeground","Foreground color of list items containing warnings.")),u("listFilterWidget.background",{light:p(L,0),dark:f(L,0),hcDark:L,hcLight:L},c.kg("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),u("listFilterWidget.outline",{dark:i.Q1.transparent,light:i.Q1.transparent,hcDark:"#f38518",hcLight:"#007ACC"},c.kg("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),u("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hcDark:x,hcLight:x},c.kg("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),u("listFilterWidget.shadow",$,c.kg("listFilterWidgetShadow","Shadow color of the type filter widget in lists and trees.")),u("list.filterMatchBackground",{dark:j,light:j,hcDark:null,hcLight:null},c.kg("listFilterMatchHighlight","Background color of the filtered match.")),u("list.filterMatchBorder",{dark:V,light:V,hcDark:x,hcLight:A},c.kg("listFilterMatchHighlightBorder","Border color of the filtered match.")),u("list.deemphasizedForeground",{dark:"#8C8C8C",light:"#8E8E90",hcDark:"#A7A8A9",hcLight:"#666666"},c.kg("listDeemphasizedForeground","List/Tree foreground color for items that are deemphasized."));const Re=u("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hcDark:"#a9a9a9",hcLight:"#a5a5a5"},c.kg("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),Ce=(u("tree.inactiveIndentGuidesStroke",m(Re,.4),c.kg("treeInactiveIndentGuidesStroke","Tree stroke color for the indentation guides that are not active.")),u("tree.tableColumnsBorder",{dark:"#CCCCCC20",light:"#61616120",hcDark:null,hcLight:null},c.kg("tableColumnsBorder","Table border color between columns.")),u("tree.tableOddRowsBackground",{dark:m(E,.04),light:m(E,.04),hcDark:null,hcLight:null},c.kg("tableOddRowsBackgroundColor","Background color for odd table rows.")),u("editorActionList.background",L,c.kg("editorActionListBackground","Action List background color.")),u("editorActionList.foreground",k,c.kg("editorActionListForeground","Action List foreground color.")),u("editorActionList.focusForeground",Ee,c.kg("editorActionListFocusForeground","Action List foreground color for the focused item.")),u("editorActionList.focusBackground",be,c.kg("editorActionListFocusBackground","Action List background color for the focused item.")),u("menu.border",{dark:null,light:null,hcDark:x,hcLight:x},c.kg("menuBorder","Border color of menus.")),u("menu.foreground",me,c.kg("menuForeground","Foreground color of menu items.")),u("menu.background",fe,c.kg("menuBackground","Background color of menu items.")),u("menu.selectionForeground",Ee,c.kg("menuSelectionForeground","Foreground color of the selected menu item in menus.")),u("menu.selectionBackground",be,c.kg("menuSelectionBackground","Background color of the selected menu item in menus.")),u("menu.selectionBorder",{dark:null,light:null,hcDark:A,hcLight:A},c.kg("menuSelectionBorder","Border color of the selected menu item in menus.")),u("menu.separatorBackground",{dark:"#606060",light:"#D4D4D4",hcDark:x,hcLight:x},c.kg("menuSeparatorBackground","Color of a separator menu item in menus.")),u("quickInput.background",L,c.kg("pickerBackground","Quick picker background color. The quick picker widget is the container for pickers like the command palette.")),u("quickInput.foreground",k,c.kg("pickerForeground","Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")),u("quickInputTitle.background",{dark:new i.Q1(new i.bU(255,255,255,.105)),light:new i.Q1(new i.bU(0,0,0,.06)),hcDark:"#000000",hcLight:i.Q1.white},c.kg("pickerTitleBackground","Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")),u("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hcDark:i.Q1.white,hcLight:"#0F4A85"},c.kg("pickerGroupForeground","Quick picker color for grouping labels.")),u("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hcDark:i.Q1.white,hcLight:"#0F4A85"},c.kg("pickerGroupBorder","Quick picker color for grouping borders.")),u("quickInput.list.focusBackground",null,"",void 0,c.kg("quickInput.list.focusBackground deprecation","Please use quickInputList.focusBackground instead")));u("quickInputList.focusForeground",Ee,c.kg("quickInput.listFocusForeground","Quick picker foreground color for the focused item.")),u("quickInputList.focusIconForeground",Se,c.kg("quickInput.listFocusIconForeground","Quick picker icon foreground color for the focused item.")),u("quickInputList.focusBackground",{dark:_(Ce,be),light:_(Ce,be),hcDark:null,hcLight:null},c.kg("quickInput.listFocusBackground","Quick picker background color for the focused item.")),u("search.resultsInfoForeground",{light:E,dark:m(E,.65),hcDark:E,hcLight:E},c.kg("search.resultsInfoForeground","Color of the text in the search viewlet's completion message.")),u("searchEditor.findMatchBackground",{light:m(j,.66),dark:m(j,.66),hcDark:j,hcLight:j},c.kg("searchEditor.queryMatch","Color of the Search Editor query matches.")),u("searchEditor.findMatchBorder",{light:m(V,.66),dark:m(V,.66),hcDark:V,hcLight:V},c.kg("searchEditor.editorFindMatchBorder","Border color of the Search Editor query matches."))},5890:(e,t,n)=>{var r={"./simpleWorker":1929,"./simpleWorker.js":1929,"monaco-editor/esm/vs/base/common/worker/simpleWorker":1929,"monaco-editor/esm/vs/base/common/worker/simpleWorker.js":1929};function o(e){return Promise.resolve().then((()=>{if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n(r[e])}))}o.keys=()=>Object.keys(r),o.id=5890,e.exports=o},5982:(e,t,n)=>{"use strict";n.d(t,{x:()=>r});class r{static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return 0!==(1024&e)}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(16744448&e)>>>15}static getBackground(e){return(4278190080&e)>>>24}static getClassNameFromMetadata(e){let t="mtk"+this.getForeground(e);const n=this.getFontStyle(e);return 1&n&&(t+=" mtki"),2&n&&(t+=" mtkb"),4&n&&(t+=" mtku"),8&n&&(t+=" mtks"),t}static getInlineStyleFromMetadata(e,t){const n=this.getForeground(e),r=this.getFontStyle(e);let o=`color: ${t[n]};`;1&r&&(o+="font-style: italic;"),2&r&&(o+="font-weight: bold;");let i="";return 4&r&&(i+=" underline"),8&r&&(i+=" line-through"),i&&(o+=`text-decoration:${i};`),o}static getPresentationFromMetadata(e){const t=this.getForeground(e),n=this.getFontStyle(e);return{foreground:t,italic:Boolean(1&n),bold:Boolean(2&n),underline:Boolean(4&n),strikethrough:Boolean(8&n)}}}},6041:(e,t,n)=>{"use strict";function r(e,t){const n=function(e,t,n=e.length-1){for(let r=n;r>=0;r--){if(t(e[r]))return r}return-1}(e,t);if(-1!==n)return e[n]}function o(e,t){const n=i(e,t);return-1===n?void 0:e[n]}function i(e,t,n=0,r=e.length){let o=n,i=r;for(;o<i;){const n=Math.floor((o+i)/2);t(e[n])?o=n+1:i=n}return o-1}function a(e,t){const n=s(e,t);return n===e.length?void 0:e[n]}function s(e,t,n=0,r=e.length){let o=n,i=r;for(;o<i;){const n=Math.floor((o+i)/2);t(e[n])?i=n:o=n+1}return o}n.d(t,{Uk:()=>r,XP:()=>a,hw:()=>s,iM:()=>i,lx:()=>o,vJ:()=>l});class l{static{this.assertInvariants=!1}constructor(e){this._array=e,this._findLastMonotonousLastIdx=0}findLastMonotonous(e){if(l.assertInvariants){if(this._prevFindLastPredicate)for(const t of this._array)if(this._prevFindLastPredicate(t)&&!e(t))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.");this._prevFindLastPredicate=e}const t=i(this._array,e,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=t+1,-1===t?void 0:this._array[t]}}},6223:(e,t,n)=>{"use strict";n.d(t,{A5:()=>r,Dg:()=>l,F4:()=>p,L5:()=>u,Wo:()=>d,X2:()=>s,ZS:()=>o,nk:()=>c,vd:()=>f});var r,o,i,a=n(146);!function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(r||(r={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(o||(o={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(i||(i={}));class s{get originalIndentSize(){return this._indentSizeIsTabSize?"tabSize":this.indentSize}constructor(e){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,0|e.tabSize),"tabSize"===e.indentSize?(this.indentSize=this.tabSize,this._indentSizeIsTabSize=!0):(this.indentSize=Math.max(1,0|e.indentSize),this._indentSizeIsTabSize=!1),this.insertSpaces=Boolean(e.insertSpaces),this.defaultEOL=0|e.defaultEOL,this.trimAutoWhitespace=Boolean(e.trimAutoWhitespace),this.bracketPairColorizationOptions=e.bracketPairColorizationOptions}equals(e){return this.tabSize===e.tabSize&&this._indentSizeIsTabSize===e._indentSizeIsTabSize&&this.indentSize===e.indentSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace&&(0,a.aI)(this.bracketPairColorizationOptions,e.bracketPairColorizationOptions)}createChangeEvent(e){return{tabSize:this.tabSize!==e.tabSize,indentSize:this.indentSize!==e.indentSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}}}class l{constructor(e,t){this._findMatchBrand=void 0,this.range=e,this.matches=t}}function c(e){return e&&"function"===typeof e.read}class d{constructor(e,t,n,r,o,i){this.identifier=e,this.range=t,this.text=n,this.forceMoveMarkers=r,this.isAutoWhitespaceEdit=o,this._isTracked=i}}class u{constructor(e,t,n){this.regex=e,this.wordSeparators=t,this.simpleSearch=n}}class p{constructor(e,t,n){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=n}}function f(e){return!e.isTooLargeForSyncing()&&!e.isForSimpleWidget}},6359:(e,t,n)=>{"use strict";n.d(t,{O:()=>i});var r=n(6782),o=n(631);const i=new class{constructor(){this.data=new Map}add(e,t){r.ok(o.Kg(e)),r.ok(o.Gv(t)),r.ok(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)}as(e){return this.data.get(e)||null}}},6456:(e,t,n)=>{"use strict";n.d(t,{ny:()=>r,v$:()=>c,zl:()=>p});var r,o=n(4383),i=n(8067),a=n(1508),s=n(9400),l=n(8821);function c(e,t){return s.r.isUri(e)?(0,a.Q_)(e.scheme,t):(0,a.ns)(e,t+":")}!function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command",e.vscodeRemote="vscode-remote",e.vscodeRemoteResource="vscode-remote-resource",e.vscodeManagedRemoteResource="vscode-managed-remote-resource",e.vscodeUserData="vscode-userdata",e.vscodeCustomEditor="vscode-custom-editor",e.vscodeNotebookCell="vscode-notebook-cell",e.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",e.vscodeNotebookCellMetadataDiff="vscode-notebook-cell-metadata-diff",e.vscodeNotebookCellOutput="vscode-notebook-cell-output",e.vscodeNotebookCellOutputDiff="vscode-notebook-cell-output-diff",e.vscodeNotebookMetadata="vscode-notebook-metadata",e.vscodeInteractiveInput="vscode-interactive-input",e.vscodeSettings="vscode-settings",e.vscodeWorkspaceTrust="vscode-workspace-trust",e.vscodeTerminal="vscode-terminal",e.vscodeChatCodeBlock="vscode-chat-code-block",e.vscodeChatCodeCompareBlock="vscode-chat-code-compare-block",e.vscodeChatSesssion="vscode-chat-editor",e.webviewPanel="webview-panel",e.vscodeWebview="vscode-webview",e.extension="extension",e.vscodeFileResource="vscode-file",e.tmp="tmp",e.vsls="vsls",e.vscodeSourceControl="vscode-scm",e.commentsInput="comment",e.codeSetting="code-setting",e.outputChannel="output"}(r||(r={}));const d=new class{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(e){this._preferredWebSchema=e}get _remoteResourcesPath(){return l.SA.join(this._serverRootPath,r.vscodeRemoteResource)}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(d){return o.dz(d),e}const t=e.authority;let n=this._hosts[t];n&&-1!==n.indexOf(":")&&-1===n.indexOf("[")&&(n=`[${n}]`);const a=this._ports[t],l=this._connectionTokens[t];let c=`path=${encodeURIComponent(e.path)}`;return"string"===typeof l&&(c+=`&tkn=${encodeURIComponent(l)}`),s.r.from({scheme:i.HZ?this._preferredWebSchema:r.vscodeRemoteResource,authority:`${n}:${a}`,path:this._remoteResourcesPath,query:c})}};class u{static{this.FALLBACK_AUTHORITY="vscode-app"}asBrowserUri(e){const t=this.toUri(e);return this.uriToBrowserUri(t)}uriToBrowserUri(e){return e.scheme===r.vscodeRemote?d.rewrite(e):e.scheme!==r.file||!i.ib&&i.lg!==`${r.vscodeFileResource}://${u.FALLBACK_AUTHORITY}`?e:e.with({scheme:r.vscodeFileResource,authority:e.authority||u.FALLBACK_AUTHORITY,query:null,fragment:null})}toUri(e,t){if(s.r.isUri(e))return e;if(globalThis._VSCODE_FILE_ROOT){const t=globalThis._VSCODE_FILE_ROOT;if(/^\w[\w\d+.-]*:\/\//.test(t))return s.r.joinPath(s.r.parse(t,!0),e);const n=l.fj(t,e);return s.r.file(n)}return s.r.parse(t.toUrl(e))}}const p=new u;var f;!function(e){const t=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);e.CoopAndCoep=Object.freeze(t.get("3"));const n="vscode-coi";e.getHeadersFromQuery=function(e){let r;"string"===typeof e?r=new URL(e).searchParams:e instanceof URL?r=e.searchParams:s.r.isUri(e)&&(r=new URL(e.toString(!0)).searchParams);const o=r?.get(n);if(o)return t.get(o)},e.addSearchParam=function(e,t,r){if(!globalThis.crossOriginIsolated)return;const o=t&&r?"3":r?"2":"1";e instanceof URLSearchParams?e.set(n,o):e[n]=o}}(f||(f={}))},6486:(e,t,n)=>{"use strict";n.d(t,{Io:()=>a,Ld:()=>i,Th:()=>l});var r=n(2522),o=n(8925);const i=function(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const n of"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?")e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}();function a(e){let t=i;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}const s=new o.w;function l(e,t,n,o,i){if(t=a(t),i||(i=r.f.first(s)),n.length>i.maxLen){let r=e-i.maxLen/2;return r<0?r=0:o+=r,l(e,t,n=n.substring(r,e+i.maxLen/2),o,i)}const d=Date.now(),u=e-1-o;let p=-1,f=null;for(let r=1;!(Date.now()-d>=i.timeBudget);r++){const e=u-i.windowSize*r;t.lastIndex=Math.max(0,e);const o=c(t,n,u,p);if(!o&&f)break;if(f=o,e<=0)break;p=e}if(f){const e={word:f[0],startColumn:o+1+f.index,endColumn:o+1+f.index+f[0].length};return t.lastIndex=0,e}return null}function c(e,t,n,r){let o;for(;o=e.exec(t);){const t=o.index||0;if(t<=n&&e.lastIndex>=n)return o;if(r>0&&t>r)return null}return null}s.unshift({maxLen:1e3,windowSize:15,timeBudget:150})},6571:(e,t,n)=>{"use strict";n.d(t,{M:()=>s,S:()=>l});var r=n(4383),o=n(4444),i=n(6677),a=n(6041);class s{static fromRangeInclusive(e){return new s(e.startLineNumber,e.endLineNumber+1)}static joinMany(e){if(0===e.length)return[];let t=new l(e[0].slice());for(let n=1;n<e.length;n++)t=t.getUnion(new l(e[n].slice()));return t.ranges}static join(e){if(0===e.length)throw new r.D7("lineRanges cannot be empty");let t=e[0].startLineNumber,n=e[0].endLineNumberExclusive;for(let r=1;r<e.length;r++)t=Math.min(t,e[r].startLineNumber),n=Math.max(n,e[r].endLineNumberExclusive);return new s(t,n)}static ofLength(e,t){return new s(e,e+t)}static deserialize(e){return new s(e[0],e[1])}constructor(e,t){if(e>t)throw new r.D7(`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(e){return new s(this.startLineNumber+e,this.endLineNumberExclusive+e)}deltaLength(e){return new s(this.startLineNumber,this.endLineNumberExclusive+e)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(e){return new s(Math.min(this.startLineNumber,e.startLineNumber),Math.max(this.endLineNumberExclusive,e.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(e){const t=Math.max(this.startLineNumber,e.startLineNumber),n=Math.min(this.endLineNumberExclusive,e.endLineNumberExclusive);if(t<=n)return new s(t,n)}intersectsStrict(e){return this.startLineNumber<e.endLineNumberExclusive&&e.startLineNumber<this.endLineNumberExclusive}overlapOrTouch(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 i.Q(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new i.Q(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(e){const 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]}includes(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}toOffsetRange(){return new o.L(this.startLineNumber-1,this.endLineNumberExclusive-1)}}class l{constructor(e=[]){this._normalizedRanges=e}get ranges(){return this._normalizedRanges}addRange(e){if(0===e.length)return;const t=(0,a.hw)(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),n=(0,a.iM)(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===n)this._normalizedRanges.splice(t,0,e);else if(t===n-1){const n=this._normalizedRanges[t];this._normalizedRanges[t]=n.join(e)}else{const r=this._normalizedRanges[t].join(this._normalizedRanges[n-1]).join(e);this._normalizedRanges.splice(t,n-t,r)}}contains(e){const t=(0,a.lx)(this._normalizedRanges,(t=>t.startLineNumber<=e));return!!t&&t.endLineNumberExclusive>e}intersects(e){const t=(0,a.lx)(this._normalizedRanges,(t=>t.startLineNumber<e.endLineNumberExclusive));return!!t&&t.endLineNumberExclusive>e.startLineNumber}getUnion(e){if(0===this._normalizedRanges.length)return e;if(0===e._normalizedRanges.length)return this;const t=[];let n=0,r=0,o=null;for(;n<this._normalizedRanges.length||r<e._normalizedRanges.length;){let i=null;if(n<this._normalizedRanges.length&&r<e._normalizedRanges.length){const t=this._normalizedRanges[n],o=e._normalizedRanges[r];t.startLineNumber<o.startLineNumber?(i=t,n++):(i=o,r++)}else n<this._normalizedRanges.length?(i=this._normalizedRanges[n],n++):(i=e._normalizedRanges[r],r++);null===o?o=i:o.endLineNumberExclusive>=i.startLineNumber?o=new s(o.startLineNumber,Math.max(o.endLineNumberExclusive,i.endLineNumberExclusive)):(t.push(o),o=i)}return null!==o&&t.push(o),new l(t)}subtractFrom(e){const t=(0,a.hw)(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),n=(0,a.iM)(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===n)return new l([e]);const r=[];let o=e.startLineNumber;for(let i=t;i<n;i++){const e=this._normalizedRanges[i];e.startLineNumber>o&&r.push(new s(o,e.startLineNumber)),o=e.endLineNumberExclusive}return o<e.endLineNumberExclusive&&r.push(new s(o,e.endLineNumberExclusive)),new l(r)}toString(){return this._normalizedRanges.map((e=>e.toString())).join(", ")}getIntersection(e){const t=[];let n=0,r=0;for(;n<this._normalizedRanges.length&&r<e._normalizedRanges.length;){const o=this._normalizedRanges[n],i=e._normalizedRanges[r],a=o.intersect(i);a&&!a.isEmpty&&t.push(a),o.endLineNumberExclusive<i.endLineNumberExclusive?n++:r++}return new l(t)}getWithDelta(e){return new l(this._normalizedRanges.map((t=>t.delta(e))))}}},6677:(e,t,n)=>{"use strict";n.d(t,{Q:()=>o});var r=n(3069);class o{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 o.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return o.containsPosition(this,e)}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(e){return o.containsRange(this,e)}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(e){return o.strictContainsRange(this,e)}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(e){return o.plusRange(this,e)}static plusRange(e,t){let n,r,i,a;return t.startLineNumber<e.startLineNumber?(n=t.startLineNumber,r=t.startColumn):t.startLineNumber===e.startLineNumber?(n=t.startLineNumber,r=Math.min(t.startColumn,e.startColumn)):(n=e.startLineNumber,r=e.startColumn),t.endLineNumber>e.endLineNumber?(i=t.endLineNumber,a=t.endColumn):t.endLineNumber===e.endLineNumber?(i=t.endLineNumber,a=Math.max(t.endColumn,e.endColumn)):(i=e.endLineNumber,a=e.endColumn),new o(n,r,i,a)}intersectRanges(e){return o.intersectRanges(this,e)}static intersectRanges(e,t){let n=e.startLineNumber,r=e.startColumn,i=e.endLineNumber,a=e.endColumn;const s=t.startLineNumber,l=t.startColumn,c=t.endLineNumber,d=t.endColumn;return n<s?(n=s,r=l):n===s&&(r=Math.max(r,l)),i>c?(i=c,a=d):i===c&&(a=Math.min(a,d)),n>i||n===i&&r>a?null:new o(n,r,i,a)}equalsRange(e){return o.equalsRange(this,e)}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 o.getEndPosition(this)}static getEndPosition(e){return new r.y(e.endLineNumber,e.endColumn)}getStartPosition(){return o.getStartPosition(this)}static getStartPosition(e){return new r.y(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new o(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new o(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return o.collapseToStart(this)}static collapseToStart(e){return new o(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return o.collapseToEnd(this)}static collapseToEnd(e){return new o(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new o(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,t=e){return new o(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new o(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"===typeof e.startLineNumber&&"number"===typeof e.startColumn&&"number"===typeof e.endLineNumber&&"number"===typeof e.endColumn}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 compareRangesUsingStarts(e,t){if(e&&t){const n=0|e.startLineNumber,r=0|t.startLineNumber;if(n===r){const n=0|e.startColumn,r=0|t.startColumn;if(n===r){const n=0|e.endLineNumber,r=0|t.endLineNumber;if(n===r){return(0|e.endColumn)-(0|t.endColumn)}return n-r}return n-r}return n-r}return(e?1:0)-(t?1:0)}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}}},6691:(e,t,n)=>{"use strict";n.r(t),n.d(t,{findSectionHeaders:()=>i});const r=new RegExp("\\bMARK:\\s*(.*)$","d"),o=/^-+|-+$/g;function i(e,t){let n=[];if(t.findRegionSectionHeaders&&t.foldingRules?.markers){const r=function(e,t){const n=[],r=e.getLineCount();for(let o=1;o<=r;o++){const r=e.getLineContent(o),i=r.match(t.foldingRules.markers.start);if(i){const e={startLineNumber:o,startColumn:i[0].length+1,endLineNumber:o,endColumn:r.length+1};if(e.endColumn>e.startColumn){const t={range:e,...s(r.substring(i[0].length)),shouldBeInComments:!1};(t.text||t.hasSeparatorLine)&&n.push(t)}}}return n}(e,t);n=n.concat(r)}if(t.findMarkSectionHeaders){const t=function(e){const t=[],n=e.getLineCount();for(let r=1;r<=n;r++){a(e.getLineContent(r),r,t)}return t}(e);n=n.concat(t)}return n}function a(e,t,n){r.lastIndex=0;const o=r.exec(e);if(o){const e={startLineNumber:t,startColumn:o.indices[1][0]+1,endLineNumber:t,endColumn:o.indices[1][1]+1};if(e.endColumn>e.startColumn){const t={range:e,...s(o[1]),shouldBeInComments:!0};(t.text||t.hasSeparatorLine)&&n.push(t)}}}function s(e){const t=(e=e.trim()).startsWith("-");return{text:e=e.replace(o,""),hasSeparatorLine:t}}},6723:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DraggedTreeItemsIdentifier:()=>o,TreeViewsDnDService:()=>r});class r{constructor(){this._dragOperations=new Map}removeDragOperationTransfer(e){if(e&&this._dragOperations.has(e)){const t=this._dragOperations.get(e);return this._dragOperations.delete(e),t}}}class o{constructor(e){this.identifier=e}}},6782:(e,t,n)=>{"use strict";n.d(t,{Ft:()=>a,Xo:()=>s,ok:()=>o,xb:()=>i});var r=n(4383);function o(e,t){if(!e)throw new Error(t?`Assertion failed (${t})`:"Assertion Failed")}function i(e,t="Unreachable"){throw new Error(t)}function a(e){e()||(e(),(0,r.dz)(new r.D7("Assertion Failed")))}function s(e,t){let n=0;for(;n<e.length-1;){if(!t(e[n],e[n+1]))return!1;n++}return!0}},6942:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ILanguageFeaturesService:()=>r});const r=(0,n(3591).u1)("ILanguageFeaturesService")},6958:(e,t,n)=>{"use strict";n.d(t,{YW:()=>N,qg:()=>M});var r=n(1940),o=n(9326),i=n(4320),a=n(8821),s=n(8067),l=n(1508);const c="**",d="/",u="[/\\\\]",p="[^/\\\\]",f=/\//g;function m(e,t){switch(e){case 0:return"";case 1:return`${p}*?`;default:return`(?:${u}|${p}+${u}${t?`|${u}${p}+`:""})*?`}}function _(e,t){if(!e)return[];const n=[];let r=!1,o=!1,i="";for(const a of e){switch(a){case t:if(!r&&!o){n.push(i),i="";continue}break;case"{":r=!0;break;case"}":r=!1;break;case"[":o=!0;break;case"]":o=!1}i+=a}return i&&n.push(i),n}function h(e){if(!e)return"";let t="";const n=_(e,d);if(n.every((e=>e===c)))t=".*";else{let e=!1;n.forEach(((r,o)=>{if(r===c){if(e)return;t+=m(2,o===n.length-1)}else{let e=!1,i="",a=!1,s="";for(const n of r)if("}"!==n&&e)i+=n;else if(!a||"]"===n&&s)switch(n){case"{":e=!0;continue;case"[":a=!0;continue;case"}":{const n=`(?:${_(i,",").map((e=>h(e))).join("|")})`;t+=n,e=!1,i="";break}case"]":t+="["+s+"]",a=!1,s="";break;case"?":t+=p;continue;case"*":t+=m(1);continue;default:t+=(0,l.bm)(n)}else{let e;e="-"===n?n:"^"!==n&&"!"!==n||s?n===d?"":(0,l.bm)(n):"^",s+=e}o<n.length-1&&(n[o+1]!==c||o+2<n.length)&&(t+=u)}e=r===c}))}return t}const g=/^\*\*\/\*\.[\w\.-]+$/,y=/^\*\*\/([\w\.-]+)\/?$/,v=/^{\*\*\/\*?[\w\.-]+\/?(,\*\*\/\*?[\w\.-]+\/?)*}$/,b=/^{\*\*\/\*?[\w\.-]+(\/(\*\*)?)?(,\*\*\/\*?[\w\.-]+(\/(\*\*)?)?)*}$/,E=/^\*\*((\/[\w\.-]+)+)\/?$/,S=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,T=new i.qK(1e4),x=function(){return!1},A=function(){return null};function I(e,t){if(!e)return A;let n;n="string"!==typeof e?e.pattern:e,n=n.trim();const r=`${n}_${!!t.trimForExclusions}`;let o,i=T.get(r);return i||(i=g.test(n)?function(e,t){return function(n,r){return"string"===typeof n&&n.endsWith(e)?t:null}}(n.substr(4),n):(o=y.exec(C(n,t)))?function(e,t){const n=`/${e}`,r=`\\${e}`,o=function(o,i){return"string"!==typeof o?null:i?i===e?t:null:o===e||o.endsWith(n)||o.endsWith(r)?t:null},i=[e];return o.basenames=i,o.patterns=[t],o.allBasenames=i,o}(o[1],n):(t.trimForExclusions?b:v).test(n)?function(e,t){const n=L(e.slice(1,-1).split(",").map((e=>I(e,t))).filter((e=>e!==A)),e),r=n.length;if(!r)return A;if(1===r)return n[0];const o=function(t,r){for(let o=0,i=n.length;o<i;o++)if(n[o](t,r))return e;return null},i=n.find((e=>!!e.allBasenames));i&&(o.allBasenames=i.allBasenames);const a=n.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);a.length&&(o.allPaths=a);return o}(n,t):(o=E.exec(C(n,t)))?D(o[1].substr(1),n,!0):(o=S.exec(C(n,t)))?D(o[1],n,!1):function(e){try{const t=new RegExp(`^${h(e)}$`);return function(n){return t.lastIndex=0,"string"===typeof n&&t.test(n)?e:null}}catch(t){return A}}(n),T.set(r,i)),R(i,e)}function R(e,t){if("string"===typeof t)return e;const n=function(n,r){return(0,o._1)(n,t.base,!s.j9)?e((0,l.NB)(n.substr(t.base.length),a.Vn),r):null};return n.allBasenames=e.allBasenames,n.allPaths=e.allPaths,n.basenames=e.basenames,n.patterns=e.patterns,n}function C(e,t){return t.trimForExclusions&&e.endsWith("/**")?e.substr(0,e.length-2):e}function D(e,t,n){const r=a.Vn===a.SA.sep,o=r?e:e.replace(f,a.Vn),i=a.Vn+o,s=a.SA.sep+e;let l;return l=n?function(n,a){return"string"!==typeof n||n!==o&&!n.endsWith(i)&&(r||n!==e&&!n.endsWith(s))?null:t}:function(n,i){return"string"!==typeof n||n!==o&&(r||n!==e)?null:t},l.allPaths=[(n?"*/":"./")+e],l}function N(e,t,n){return!(!e||"string"!==typeof t)&&M(e)(t,void 0,n)}function M(e,t={}){if(!e)return x;if("string"===typeof e||function(e){const t=e;if(!t)return!1;return"string"===typeof t.base&&"string"===typeof t.pattern}(e)){const n=I(e,t);if(n===A)return x;const r=function(e,t){return!!n(e,t)};return n.allBasenames&&(r.allBasenames=n.allBasenames),n.allPaths&&(r.allPaths=n.allPaths),r}return function(e,t){const n=L(Object.getOwnPropertyNames(e).map((n=>function(e,t,n){if(!1===t)return A;const o=I(e,n);if(o===A)return A;if("boolean"===typeof t)return o;if(t){const n=t.when;if("string"===typeof n){const t=(t,i,a,s)=>{if(!s||!o(t,i))return null;const l=s(n.replace("$(basename)",(()=>a)));return(0,r.Qg)(l)?l.then((t=>t?e:null)):l?e:null};return t.requiresSiblings=!0,t}}return o}(n,e[n],t))).filter((e=>e!==A))),o=n.length;if(!o)return A;if(!n.some((e=>!!e.requiresSiblings))){if(1===o)return n[0];const e=function(e,t){let o;for(let i=0,a=n.length;i<a;i++){const a=n[i](e,t);if("string"===typeof a)return a;(0,r.Qg)(a)&&(o||(o=[]),o.push(a))}return o?(async()=>{for(const e of o){const t=await e;if("string"===typeof t)return t}return null})():null},t=n.find((e=>!!e.allBasenames));t&&(e.allBasenames=t.allBasenames);const i=n.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);return i.length&&(e.allPaths=i),e}const i=function(e,t,o){let i,s;for(let l=0,c=n.length;l<c;l++){const c=n[l];c.requiresSiblings&&o&&(t||(t=(0,a.P8)(e)),i||(i=t.substr(0,t.length-(0,a.LC)(e).length)));const d=c(e,t,i,o);if("string"===typeof d)return d;(0,r.Qg)(d)&&(s||(s=[]),s.push(d))}return s?(async()=>{for(const e of s){const t=await e;if("string"===typeof t)return t}return null})():null},s=n.find((e=>!!e.allBasenames));s&&(i.allBasenames=s.allBasenames);const l=n.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);l.length&&(i.allPaths=l);return i}(e,t)}function L(e,t){const n=e.filter((e=>!!e.basenames));if(n.length<2)return e;const r=n.reduce(((e,t)=>{const n=t.basenames;return n?e.concat(n):e}),[]);let o;if(t){o=[];for(let e=0,n=r.length;e<n;e++)o.push(t)}else o=n.reduce(((e,t)=>{const n=t.patterns;return n?e.concat(n):e}),[]);const i=function(e,t){if("string"!==typeof e)return null;if(!t){let n;for(n=e.length;n>0;n--){const t=e.charCodeAt(n-1);if(47===t||92===t)break}t=e.substr(n)}const n=r.indexOf(t);return-1!==n?o[n]:null};i.basenames=r,i.patterns=o,i.allBasenames=r;const a=e.filter((e=>!e.basenames));return a.push(i),a}},7004:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SemanticTokensStylingService:()=>p});var r=n(1484),o=n(154),i=n(5724),a=n(3511),s=n(5538),l=n(4243),c=n(4621),d=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},u=function(e,t){return function(n,r){t(n,r,e)}};let p=class extends r.jG{constructor(e,t,n){super(),this._themeService=e,this._logService=t,this._languageService=n,this._caches=new WeakMap,this._register(this._themeService.onDidColorThemeChange((()=>{this._caches=new WeakMap})))}getStyling(e){return this._caches.has(e)||this._caches.set(e,new s.SemanticTokensProviderStyling(e.getLegend(),this._themeService,this._languageService,this._logService)),this._caches.get(e)}};p=d([u(0,i.Gy),u(1,a.rr),u(2,o.L)],p),(0,c.v)(l.ISemanticTokensStylingService,p,1)},7119:(e,t,n)=>{"use strict";n.d(t,{AQ:()=>g,aZ:()=>h,l5:()=>E,lQ:()=>v,s7:()=>x,sH:()=>S,sN:()=>y,ss:()=>b,yI:()=>_,zp:()=>T});var r=n(8209),o=n(7661),i=n(5845),a=n(5724);const s=(0,i.x1A)("editor.lineHighlightBackground",null,r.kg("lineHighlight","Background color for the highlight of line at the cursor position.")),l=((0,i.x1A)("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hcDark:"#f38518",hcLight:i.b1q},r.kg("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),(0,i.x1A)("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hcDark:null,hcLight:null},r.kg("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),(0,i.x1A)("editor.rangeHighlightBorder",{dark:null,light:null,hcDark:i.buw,hcLight:i.buw},r.kg("rangeHighlightBorder","Background color of the border around highlighted ranges.")),(0,i.x1A)("editor.symbolHighlightBackground",{dark:i.Ubg,light:i.Ubg,hcDark:null,hcLight:null},r.kg("symbolHighlight","Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."),!0),(0,i.x1A)("editor.symbolHighlightBorder",{dark:null,light:null,hcDark:i.buw,hcLight:i.buw},r.kg("symbolHighlightBorder","Background color of the border around highlighted symbols.")),(0,i.x1A)("editorCursor.foreground",{dark:"#AEAFAD",light:o.Q1.black,hcDark:o.Q1.white,hcLight:"#0F4A85"},r.kg("caret","Color of the editor cursor."))),c=(0,i.x1A)("editorCursor.background",null,r.kg("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),d=((0,i.x1A)("editorMultiCursor.primary.foreground",l,r.kg("editorMultiCursorPrimaryForeground","Color of the primary editor cursor when multiple cursors are present.")),(0,i.x1A)("editorMultiCursor.primary.background",c,r.kg("editorMultiCursorPrimaryBackground","The background color of the primary editor cursor when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),(0,i.x1A)("editorMultiCursor.secondary.foreground",l,r.kg("editorMultiCursorSecondaryForeground","Color of secondary editor cursors when multiple cursors are present.")),(0,i.x1A)("editorMultiCursor.secondary.background",c,r.kg("editorMultiCursorSecondaryBackground","The background color of secondary editor cursors when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),(0,i.x1A)("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hcDark:"#e3e4e229",hcLight:"#CCCCCC"},r.kg("editorWhitespaces","Color of whitespace characters in the editor."))),u=((0,i.x1A)("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hcDark:o.Q1.white,hcLight:"#292929"},r.kg("editorLineNumbers","Color of editor line numbers.")),(0,i.x1A)("editorIndentGuide.background",d,r.kg("editorIndentGuides","Color of the editor indentation guides."),!1,r.kg("deprecatedEditorIndentGuides","'editorIndentGuide.background' is deprecated. Use 'editorIndentGuide.background1' instead."))),p=(0,i.x1A)("editorIndentGuide.activeBackground",d,r.kg("editorActiveIndentGuide","Color of the active editor indentation guides."),!1,r.kg("deprecatedEditorActiveIndentGuide","'editorIndentGuide.activeBackground' is deprecated. Use 'editorIndentGuide.activeBackground1' instead.")),f=((0,i.x1A)("editorIndentGuide.background1",u,r.kg("editorIndentGuides1","Color of the editor indentation guides (1).")),(0,i.x1A)("editorIndentGuide.background2","#00000000",r.kg("editorIndentGuides2","Color of the editor indentation guides (2).")),(0,i.x1A)("editorIndentGuide.background3","#00000000",r.kg("editorIndentGuides3","Color of the editor indentation guides (3).")),(0,i.x1A)("editorIndentGuide.background4","#00000000",r.kg("editorIndentGuides4","Color of the editor indentation guides (4).")),(0,i.x1A)("editorIndentGuide.background5","#00000000",r.kg("editorIndentGuides5","Color of the editor indentation guides (5).")),(0,i.x1A)("editorIndentGuide.background6","#00000000",r.kg("editorIndentGuides6","Color of the editor indentation guides (6).")),(0,i.x1A)("editorIndentGuide.activeBackground1",p,r.kg("editorActiveIndentGuide1","Color of the active editor indentation guides (1).")),(0,i.x1A)("editorIndentGuide.activeBackground2","#00000000",r.kg("editorActiveIndentGuide2","Color of the active editor indentation guides (2).")),(0,i.x1A)("editorIndentGuide.activeBackground3","#00000000",r.kg("editorActiveIndentGuide3","Color of the active editor indentation guides (3).")),(0,i.x1A)("editorIndentGuide.activeBackground4","#00000000",r.kg("editorActiveIndentGuide4","Color of the active editor indentation guides (4).")),(0,i.x1A)("editorIndentGuide.activeBackground5","#00000000",r.kg("editorActiveIndentGuide5","Color of the active editor indentation guides (5).")),(0,i.x1A)("editorIndentGuide.activeBackground6","#00000000",r.kg("editorActiveIndentGuide6","Color of the active editor indentation guides (6).")),(0,i.x1A)("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hcDark:i.buw,hcLight:i.buw},r.kg("editorActiveLineNumber","Color of editor active line number"),!1,r.kg("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead."))),m=((0,i.x1A)("editorLineNumber.activeForeground",f,r.kg("editorActiveLineNumber","Color of editor active line number")),(0,i.x1A)("editorLineNumber.dimmedForeground",null,r.kg("editorDimmedLineNumber","Color of the final editor line when editor.renderFinalNewline is set to dimmed.")),(0,i.x1A)("editorRuler.foreground",{dark:"#5A5A5A",light:o.Q1.lightgrey,hcDark:o.Q1.white,hcLight:"#292929"},r.kg("editorRuler","Color of the editor rulers.")),(0,i.x1A)("editorCodeLens.foreground",{dark:"#999999",light:"#919191",hcDark:"#999999",hcLight:"#292929"},r.kg("editorCodeLensForeground","Foreground color of editor CodeLens")),(0,i.x1A)("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hcDark:"#0064001a",hcLight:"#0000"},r.kg("editorBracketMatchBackground","Background color behind matching brackets")),(0,i.x1A)("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hcDark:i.b1q,hcLight:i.b1q},r.kg("editorBracketMatchBorder","Color for matching brackets boxes")),(0,i.x1A)("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hcDark:"#7f7f7f4d",hcLight:"#666666"},r.kg("editorOverviewRulerBorder","Color of the overview ruler border.")),(0,i.x1A)("editorOverviewRuler.background",null,r.kg("editorOverviewRulerBackground","Background color of the editor overview ruler.")),(0,i.x1A)("editorGutter.background",i.YtV,r.kg("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),(0,i.x1A)("editorUnnecessaryCode.border",{dark:null,light:null,hcDark:o.Q1.fromHex("#fff").transparent(.8),hcLight:i.b1q},r.kg("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),(0,i.x1A)("editorUnnecessaryCode.opacity",{dark:o.Q1.fromHex("#000a"),light:o.Q1.fromHex("#0007"),hcDark:null,hcLight:null},r.kg("unnecessaryCodeOpacity","Opacity of unnecessary (unused) source code in the editor. For example, \"#000000c0\" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out.")),(0,i.x1A)("editorGhostText.border",{dark:null,light:null,hcDark:o.Q1.fromHex("#fff").transparent(.8),hcLight:o.Q1.fromHex("#292929").transparent(.8)},r.kg("editorGhostTextBorder","Border color of ghost text in the editor.")),(0,i.x1A)("editorGhostText.foreground",{dark:o.Q1.fromHex("#ffffff56"),light:o.Q1.fromHex("#0007"),hcDark:null,hcLight:null},r.kg("editorGhostTextForeground","Foreground color of the ghost text in the editor.")),(0,i.x1A)("editorGhostText.background",null,r.kg("editorGhostTextBackground","Background color of the ghost text in the editor.")),new o.Q1(new o.bU(0,122,204,.6))),_=((0,i.x1A)("editorOverviewRuler.rangeHighlightForeground",m,r.kg("overviewRulerRangeHighlight","Overview ruler marker color for range highlights. The color must not be opaque so as not to hide underlying decorations."),!0),(0,i.x1A)("editorOverviewRuler.errorForeground",{dark:new o.Q1(new o.bU(255,18,18,.7)),light:new o.Q1(new o.bU(255,18,18,.7)),hcDark:new o.Q1(new o.bU(255,50,50,1)),hcLight:"#B5200D"},r.kg("overviewRuleError","Overview ruler marker color for errors."))),h=(0,i.x1A)("editorOverviewRuler.warningForeground",{dark:i.Hng,light:i.Hng,hcDark:i.Stt,hcLight:i.Stt},r.kg("overviewRuleWarning","Overview ruler marker color for warnings.")),g=(0,i.x1A)("editorOverviewRuler.infoForeground",{dark:i.pOz,light:i.pOz,hcDark:i.IIb,hcLight:i.IIb},r.kg("overviewRuleInfo","Overview ruler marker color for infos.")),y=(0,i.x1A)("editorBracketHighlight.foreground1",{dark:"#FFD700",light:"#0431FAFF",hcDark:"#FFD700",hcLight:"#0431FAFF"},r.kg("editorBracketHighlightForeground1","Foreground color of brackets (1). Requires enabling bracket pair colorization.")),v=(0,i.x1A)("editorBracketHighlight.foreground2",{dark:"#DA70D6",light:"#319331FF",hcDark:"#DA70D6",hcLight:"#319331FF"},r.kg("editorBracketHighlightForeground2","Foreground color of brackets (2). Requires enabling bracket pair colorization.")),b=(0,i.x1A)("editorBracketHighlight.foreground3",{dark:"#179FFF",light:"#7B3814FF",hcDark:"#87CEFA",hcLight:"#7B3814FF"},r.kg("editorBracketHighlightForeground3","Foreground color of brackets (3). Requires enabling bracket pair colorization.")),E=(0,i.x1A)("editorBracketHighlight.foreground4","#00000000",r.kg("editorBracketHighlightForeground4","Foreground color of brackets (4). Requires enabling bracket pair colorization.")),S=(0,i.x1A)("editorBracketHighlight.foreground5","#00000000",r.kg("editorBracketHighlightForeground5","Foreground color of brackets (5). Requires enabling bracket pair colorization.")),T=(0,i.x1A)("editorBracketHighlight.foreground6","#00000000",r.kg("editorBracketHighlightForeground6","Foreground color of brackets (6). Requires enabling bracket pair colorization.")),x=(0,i.x1A)("editorBracketHighlight.unexpectedBracket.foreground",{dark:new o.Q1(new o.bU(255,18,18,.8)),light:new o.Q1(new o.bU(255,18,18,.8)),hcDark:"new Color(new RGBA(255, 50, 50, 1))",hcLight:"#B5200D"},r.kg("editorBracketHighlightUnexpectedBracketForeground","Foreground color of unexpected brackets."));(0,i.x1A)("editorBracketPairGuide.background1","#00000000",r.kg("editorBracketPairGuide.background1","Background color of inactive bracket pair guides (1). Requires enabling bracket pair guides.")),(0,i.x1A)("editorBracketPairGuide.background2","#00000000",r.kg("editorBracketPairGuide.background2","Background color of inactive bracket pair guides (2). Requires enabling bracket pair guides.")),(0,i.x1A)("editorBracketPairGuide.background3","#00000000",r.kg("editorBracketPairGuide.background3","Background color of inactive bracket pair guides (3). Requires enabling bracket pair guides.")),(0,i.x1A)("editorBracketPairGuide.background4","#00000000",r.kg("editorBracketPairGuide.background4","Background color of inactive bracket pair guides (4). Requires enabling bracket pair guides.")),(0,i.x1A)("editorBracketPairGuide.background5","#00000000",r.kg("editorBracketPairGuide.background5","Background color of inactive bracket pair guides (5). Requires enabling bracket pair guides.")),(0,i.x1A)("editorBracketPairGuide.background6","#00000000",r.kg("editorBracketPairGuide.background6","Background color of inactive bracket pair guides (6). Requires enabling bracket pair guides.")),(0,i.x1A)("editorBracketPairGuide.activeBackground1","#00000000",r.kg("editorBracketPairGuide.activeBackground1","Background color of active bracket pair guides (1). Requires enabling bracket pair guides.")),(0,i.x1A)("editorBracketPairGuide.activeBackground2","#00000000",r.kg("editorBracketPairGuide.activeBackground2","Background color of active bracket pair guides (2). Requires enabling bracket pair guides.")),(0,i.x1A)("editorBracketPairGuide.activeBackground3","#00000000",r.kg("editorBracketPairGuide.activeBackground3","Background color of active bracket pair guides (3). Requires enabling bracket pair guides.")),(0,i.x1A)("editorBracketPairGuide.activeBackground4","#00000000",r.kg("editorBracketPairGuide.activeBackground4","Background color of active bracket pair guides (4). Requires enabling bracket pair guides.")),(0,i.x1A)("editorBracketPairGuide.activeBackground5","#00000000",r.kg("editorBracketPairGuide.activeBackground5","Background color of active bracket pair guides (5). Requires enabling bracket pair guides.")),(0,i.x1A)("editorBracketPairGuide.activeBackground6","#00000000",r.kg("editorBracketPairGuide.activeBackground6","Background color of active bracket pair guides (6). Requires enabling bracket pair guides.")),(0,i.x1A)("editorUnicodeHighlight.border",i.Hng,r.kg("editorUnicodeHighlight.border","Border color used to highlight unicode characters.")),(0,i.x1A)("editorUnicodeHighlight.background",i.whs,r.kg("editorUnicodeHighlight.background","Background color used to highlight unicode characters."));(0,a.zy)(((e,t)=>{const n=e.getColor(i.YtV),r=e.getColor(s),o=r&&!r.isTransparent()?r:n;o&&t.addRule(`.monaco-editor .inputarea.ime-input { background-color: ${o}; }`)}))},7550:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IMarkerDecorationsService:()=>r});const r=(0,n(3591).u1)("markerDecorationsService")},7596:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LanguageService:()=>L});var r=n(1234),o=n(1484),i=n(9259),a=n(9861),s=n(2083),l=n(3941);const c=(e,t)=>e===t;new WeakMap;class d{constructor(e,t,n){this.owner=e,this.debugNameSource=t,this.referenceFn=n}getDebugName(e){return function(e,t){const n=p.get(e);if(n)return n;const r=function(e,t){const n=p.get(e);if(n)return n;const r=t.owner?function(e){const t=m.get(e);if(t)return t;const n=function(e){const t=e.constructor;if(t)return t.name;return"Object"}(e);let r=f.get(n)??0;r++,f.set(n,r);const o=1===r?n:`${n}#${r}`;return m.set(e,o),o}(t.owner)+".":"";let o;const i=t.debugNameSource;if(void 0!==i){if("function"!==typeof i)return r+i;if(o=i(),void 0!==o)return r+o}const a=t.referenceFn;if(void 0!==a&&(o=_(a),void 0!==o))return r+o;if(void 0!==t.owner){const n=function(e,t){for(const n in e)if(e[n]===t)return n;return}(t.owner,e);if(void 0!==n)return r+n}return}(e,t);if(r){let t=u.get(r)??0;t++,u.set(r,t);const n=1===t?r:`${r}#${t}`;return p.set(e,n),n}return}(e,this)}}const u=new Map,p=new WeakMap;const f=new Map,m=new WeakMap;function _(e){const t=e.toString(),n=/\/\*\*\s*@description\s*([^*]*)\*\//.exec(t),r=n?n[1]:void 0;return r?.trim()}let h,g,y,v;function b(){return h}class E{get TChange(){return null}reportChanges(){this.get()}read(e){return e?e.readObservable(this):this.get()}map(e,t){const n=void 0===t?void 0:e,r=void 0===t?e:t;return v({owner:n,debugName:()=>{const e=_(r);if(void 0!==e)return e;const t=/^\s*\(?\s*([a-zA-Z_$][a-zA-Z_$0-9]*)\s*\)?\s*=>\s*\1(?:\??)\.([a-zA-Z_$][a-zA-Z_$0-9]*)\s*$/.exec(r.toString());return t?`${this.debugName}.${t[2]}`:n?void 0:`${this.debugName} (mapped)`},debugReferenceFn:r},(e=>r(this.read(e),e)))}flatten(){return v({owner:void 0,debugName:()=>`${this.debugName} (flattened)`},(e=>this.read(e).read(e)))}recomputeInitiallyAndOnChange(e,t){return e.add(g(this,t)),this}keepObserved(e){return e.add(y(this)),this}}class S extends E{constructor(){super(...arguments),this.observers=new Set}addObserver(e){const t=this.observers.size;this.observers.add(e),0===t&&this.onFirstObserverAdded()}removeObserver(e){this.observers.delete(e)&&0===this.observers.size&&this.onLastObserverRemoved()}onFirstObserverAdded(){}onLastObserverRemoved(){}}function T(e,t){const n=new x(e,t);try{e(n)}finally{n.finish()}}class x{constructor(e,t){this._fn=e,this._getDebugName=t,this.updatingObservers=[],b()?.handleBeginTransaction(this)}getDebugName(){return this._getDebugName?this._getDebugName():_(this._fn)}updateObserver(e,t){this.updatingObservers.push({observer:e,observable:t}),e.beginUpdate(t)}finish(){const e=this.updatingObservers;for(let t=0;t<e.length;t++){const{observer:n,observable:r}=e[t];n.endUpdate(r)}this.updatingObservers=null,b()?.handleEndTransaction()}}var A=n(6782);!function(e){v=e}((function(e,t){return new I(new d(e.owner,e.debugName,e.debugReferenceFn),t,void 0,void 0,e.onLastObserverRemoved,e.equalsFn??c)}));class I extends S{get debugName(){return this._debugNameData.getDebugName(this)??"(anonymous)"}constructor(e,t,n,r,o=void 0,i){super(),this._debugNameData=e,this._computeFn=t,this.createChangeSummary=n,this._handleChange=r,this._handleLastObserverRemoved=o,this._equalityComparator=i,this.state=0,this.value=void 0,this.updateCount=0,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=void 0,this.changeSummary=this.createChangeSummary?.(),b()?.handleDerivedCreated(this)}onLastObserverRemoved(){this.state=0,this.value=void 0;for(const e of this.dependencies)e.removeObserver(this);this.dependencies.clear(),this._handleLastObserverRemoved?.()}get(){if(0===this.observers.size){const e=this._computeFn(this,this.createChangeSummary?.());return this.onLastObserverRemoved(),e}do{if(1===this.state)for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break;1===this.state&&(this.state=3),this._recomputeIfNeeded()}while(3!==this.state);return this.value}_recomputeIfNeeded(){if(3===this.state)return;const e=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=e;const t=0!==this.state,n=this.value;this.state=3;const r=this.changeSummary;this.changeSummary=this.createChangeSummary?.();try{this.value=this._computeFn(this,r)}finally{for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}const o=t&&!this._equalityComparator(n,this.value);if(b()?.handleDerivedRecomputed(this,{oldValue:n,newValue:this.value,change:void 0,didChange:o,hadValue:t}),o)for(const i of this.observers)i.handleChange(this,void 0)}toString(){return`LazyDerived<${this.debugName}>`}beginUpdate(e){this.updateCount++;const t=1===this.updateCount;if(3===this.state&&(this.state=1,!t))for(const n of this.observers)n.handlePossibleChange(this);if(t)for(const n of this.observers)n.beginUpdate(this)}endUpdate(e){if(this.updateCount--,0===this.updateCount){const e=[...this.observers];for(const t of e)t.endUpdate(this)}(0,A.Ft)((()=>this.updateCount>=0))}handlePossibleChange(e){if(3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){this.state=1;for(const e of this.observers)e.handlePossibleChange(this)}}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){const n=!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary),r=3===this.state;if(n&&(1===this.state||r)&&(this.state=2,r))for(const e of this.observers)e.handlePossibleChange(this)}}readObservable(e){e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}addObserver(e){const t=!this.observers.has(e)&&this.updateCount>0;super.addObserver(e),t&&e.beginUpdate(this)}removeObserver(e){const t=this.observers.has(e)&&this.updateCount>0;super.removeObserver(e),t&&e.endUpdate(this)}}function R(e){return new C(new d(void 0,void 0,e),e,void 0,void 0)}class C{get debugName(){return this._debugNameData.getDebugName(this)??"(anonymous)"}constructor(e,t,n,r){this._debugNameData=e,this._runFn=t,this.createChangeSummary=n,this._handleChange=r,this.state=2,this.updateCount=0,this.disposed=!1,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=this.createChangeSummary?.(),b()?.handleAutorunCreated(this),this._runIfNeeded(),(0,o.Ay)(this)}dispose(){this.disposed=!0;for(const e of this.dependencies)e.removeObserver(this);this.dependencies.clear(),(0,o.VD)(this)}_runIfNeeded(){if(3===this.state)return;const e=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=e,this.state=3;const t=this.disposed;try{if(!t){b()?.handleAutorunTriggered(this);const e=this.changeSummary;this.changeSummary=this.createChangeSummary?.(),this._runFn(this,e)}}finally{t||b()?.handleAutorunFinished(this);for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}}toString(){return`Autorun<${this.debugName}>`}beginUpdate(){3===this.state&&(this.state=1),this.updateCount++}endUpdate(){if(1===this.updateCount)do{if(1===this.state){this.state=3;for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break}this._runIfNeeded()}while(3!==this.state);this.updateCount--,(0,A.Ft)((()=>this.updateCount>=0))}handlePossibleChange(e){3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)&&(this.state=1)}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){(!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary))&&(this.state=2)}}readObservable(e){if(this.disposed)return e.get();e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}}!function(e){e.Observer=C}(R||(R={}));function D(...e){let t,n,r;return 3===e.length?[t,n,r]=e:[n,r]=e,new N(new d(t,void 0,r),n,r,(()=>N.globalTransaction),c)}class N extends S{constructor(e,t,n,r,o){super(),this._debugNameData=e,this.event=t,this._getValue=n,this._getTransaction=r,this._equalityComparator=o,this.hasValue=!1,this.handleEvent=e=>{const t=this._getValue(e),n=this.value,r=!this.hasValue||!this._equalityComparator(n,t);let o=!1;r&&(this.value=t,this.hasValue&&(o=!0,function(e,t,n){e?t(e):T(t,n)}(this._getTransaction(),(e=>{b()?.handleFromEventObservableTriggered(this,{oldValue:n,newValue:t,change:void 0,didChange:r,hadValue:this.hasValue});for(const t of this.observers)e.updateObserver(t,this),t.handleChange(this,void 0)}),(()=>{const e=this.getDebugName();return"Event fired"+(e?`: ${e}`:"")}))),this.hasValue=!0),o||b()?.handleFromEventObservableTriggered(this,{oldValue:n,newValue:t,change:void 0,didChange:r,hadValue:this.hasValue})}}getDebugName(){return this._debugNameData.getDebugName(this)}get debugName(){const e=this.getDebugName();return"From Event"+(e?`: ${e}`:"")}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0,this.hasValue=!1,this.value=void 0}get(){if(this.subscription)return this.hasValue||this.handleEvent(void 0),this.value;return this._getValue(void 0)}}!function(e){e.Observer=N,e.batchEventsGlobally=function(e,t){let n=!1;void 0===N.globalTransaction&&(N.globalTransaction=e,n=!0);try{t()}finally{n&&(N.globalTransaction=void 0)}}}(D||(D={}));!function(e){y=e}((function(e){const t=new M(!1,void 0);return e.addObserver(t),(0,o.s)((()=>{e.removeObserver(t)}))})),function(e){g=e}((function(e,t){const n=new M(!0,t);return e.addObserver(n),t?t(e.get()):e.reportChanges(),(0,o.s)((()=>{e.removeObserver(n)}))}));class M{constructor(e,t){this._forceRecompute=e,this._handleValue=t,this._counter=0}beginUpdate(e){this._counter++}endUpdate(e){this._counter--,0===this._counter&&this._forceRecompute&&(this._handleValue?this._handleValue(e.get()):e.reportChanges())}handlePossibleChange(e){}handleChange(e,t){}}n(4383);class L extends o.jG{static{this.instanceCount=0}constructor(e=!1){super(),this._onDidRequestBasicLanguageFeatures=this._register(new r.vl),this.onDidRequestBasicLanguageFeatures=this._onDidRequestBasicLanguageFeatures.event,this._onDidRequestRichLanguageFeatures=this._register(new r.vl),this.onDidRequestRichLanguageFeatures=this._onDidRequestRichLanguageFeatures.event,this._onDidChange=this._register(new r.vl({leakWarningThreshold:200})),this.onDidChange=this._onDidChange.event,this._requestedBasicLanguages=new Set,this._requestedRichLanguages=new Set,L.instanceCount++,this._registry=this._register(new i.LanguagesRegistry(!0,e)),this.languageIdCodec=this._registry.languageIdCodec,this._register(this._registry.onDidChange((()=>this._onDidChange.fire())))}dispose(){L.instanceCount--,super.dispose()}isRegisteredLanguageId(e){return this._registry.isRegisteredLanguageId(e)}getLanguageIdByLanguageName(e){return this._registry.getLanguageIdByLanguageName(e)}getLanguageIdByMimeType(e){return this._registry.getLanguageIdByMimeType(e)}guessLanguageIdByFilepathOrFirstLine(e,t){const n=this._registry.guessLanguageIdByFilepathOrFirstLine(e,t);return(0,a.Fy)(n,null)}createById(e){return new k(this.onDidChange,(()=>this._createAndGetLanguageIdentifier(e)))}createByFilepathOrFirstLine(e,t){return new k(this.onDidChange,(()=>{const n=this.guessLanguageIdByFilepathOrFirstLine(e,t);return this._createAndGetLanguageIdentifier(n)}))}_createAndGetLanguageIdentifier(e){return e&&this.isRegisteredLanguageId(e)||(e=l.vH),e}requestBasicLanguageFeatures(e){this._requestedBasicLanguages.has(e)||(this._requestedBasicLanguages.add(e),this._onDidRequestBasicLanguageFeatures.fire(e))}requestRichLanguageFeatures(e){this._requestedRichLanguages.has(e)||(this._requestedRichLanguages.add(e),this.requestBasicLanguageFeatures(e),s.dG.getOrCreate(e),this._onDidRequestRichLanguageFeatures.fire(e))}}class k{constructor(e,t){this._value=D(this,e,(()=>t())),this.onDidChange=r.Jh.fromObservable(this._value)}get languageId(){return this._value.get()}}},7614:(e,t,n)=>{var r={"./editorBaseApi":4272,"./editorBaseApi.js":4272,"./editorSimpleWorker":5196,"./editorSimpleWorker.js":5196,"./editorWorker":920,"./editorWorker.js":920,"./editorWorkerHost":718,"./editorWorkerHost.js":718,"./findSectionHeaders":6691,"./findSectionHeaders.js":6691,"./getIconClasses":5628,"./getIconClasses.js":5628,"./languageFeatureDebounce":8709,"./languageFeatureDebounce.js":8709,"./languageFeatures":6942,"./languageFeatures.js":6942,"./languageFeaturesService":2661,"./languageFeaturesService.js":2661,"./languageService":7596,"./languageService.js":7596,"./languagesAssociations":9908,"./languagesAssociations.js":9908,"./languagesRegistry":9259,"./languagesRegistry.js":9259,"./markerDecorations":7550,"./markerDecorations.js":7550,"./markerDecorationsService":448,"./markerDecorationsService.js":448,"./model":3750,"./model.js":3750,"./modelService":1773,"./modelService.js":1773,"./resolverService":8938,"./resolverService.js":8938,"./semanticTokensDto":8232,"./semanticTokensDto.js":8232,"./semanticTokensProviderStyling":5538,"./semanticTokensProviderStyling.js":5538,"./semanticTokensStyling":4243,"./semanticTokensStyling.js":4243,"./semanticTokensStylingService":7004,"./semanticTokensStylingService.js":7004,"./textModelSync/textModelSync.impl":796,"./textModelSync/textModelSync.impl.js":796,"./textModelSync/textModelSync.protocol":8868,"./textModelSync/textModelSync.protocol.js":8868,"./textResourceConfiguration":360,"./textResourceConfiguration.js":360,"./treeSitterParserService":4432,"./treeSitterParserService.js":4432,"./treeViewsDnd":6723,"./treeViewsDnd.js":6723,"./treeViewsDndService":9100,"./treeViewsDndService.js":9100,"./unicodeTextModelHighlighter":4855,"./unicodeTextModelHighlighter.js":4855,"monaco-editor/esm/vs/editor/common/services/editorBaseApi":4272,"monaco-editor/esm/vs/editor/common/services/editorBaseApi.js":4272,"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker":5196,"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker.js":5196,"monaco-editor/esm/vs/editor/common/services/editorWorker":920,"monaco-editor/esm/vs/editor/common/services/editorWorker.js":920,"monaco-editor/esm/vs/editor/common/services/editorWorkerHost":718,"monaco-editor/esm/vs/editor/common/services/editorWorkerHost.js":718,"monaco-editor/esm/vs/editor/common/services/findSectionHeaders":6691,"monaco-editor/esm/vs/editor/common/services/findSectionHeaders.js":6691,"monaco-editor/esm/vs/editor/common/services/getIconClasses":5628,"monaco-editor/esm/vs/editor/common/services/getIconClasses.js":5628,"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce":8709,"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce.js":8709,"monaco-editor/esm/vs/editor/common/services/languageFeatures":6942,"monaco-editor/esm/vs/editor/common/services/languageFeatures.js":6942,"monaco-editor/esm/vs/editor/common/services/languageFeaturesService":2661,"monaco-editor/esm/vs/editor/common/services/languageFeaturesService.js":2661,"monaco-editor/esm/vs/editor/common/services/languageService":7596,"monaco-editor/esm/vs/editor/common/services/languageService.js":7596,"monaco-editor/esm/vs/editor/common/services/languagesAssociations":9908,"monaco-editor/esm/vs/editor/common/services/languagesAssociations.js":9908,"monaco-editor/esm/vs/editor/common/services/languagesRegistry":9259,"monaco-editor/esm/vs/editor/common/services/languagesRegistry.js":9259,"monaco-editor/esm/vs/editor/common/services/markerDecorations":7550,"monaco-editor/esm/vs/editor/common/services/markerDecorations.js":7550,"monaco-editor/esm/vs/editor/common/services/markerDecorationsService":448,"monaco-editor/esm/vs/editor/common/services/markerDecorationsService.js":448,"monaco-editor/esm/vs/editor/common/services/model":3750,"monaco-editor/esm/vs/editor/common/services/model.js":3750,"monaco-editor/esm/vs/editor/common/services/modelService":1773,"monaco-editor/esm/vs/editor/common/services/modelService.js":1773,"monaco-editor/esm/vs/editor/common/services/resolverService":8938,"monaco-editor/esm/vs/editor/common/services/resolverService.js":8938,"monaco-editor/esm/vs/editor/common/services/semanticTokensDto":8232,"monaco-editor/esm/vs/editor/common/services/semanticTokensDto.js":8232,"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling":5538,"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling.js":5538,"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling":4243,"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling.js":4243,"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService":7004,"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService.js":7004,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl":796,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl.js":796,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol":8868,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol.js":8868,"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration":360,"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration.js":360,"monaco-editor/esm/vs/editor/common/services/treeSitterParserService":4432,"monaco-editor/esm/vs/editor/common/services/treeSitterParserService.js":4432,"monaco-editor/esm/vs/editor/common/services/treeViewsDnd":6723,"monaco-editor/esm/vs/editor/common/services/treeViewsDnd.js":6723,"monaco-editor/esm/vs/editor/common/services/treeViewsDndService":9100,"monaco-editor/esm/vs/editor/common/services/treeViewsDndService.js":9100,"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter":4855,"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter.js":4855};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=7614},7661:(e,t,n)=>{"use strict";function r(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}n.d(t,{Q1:()=>s,bU:()=>o,hB:()=>i});class o{constructor(e,t,n,o=1){this._rgbaBrand=void 0,this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,t)),this.b=0|Math.min(255,Math.max(0,n)),this.a=r(Math.max(Math.min(1,o),0),3)}static equals(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}}class i{constructor(e,t,n,o){this._hslaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=r(Math.max(Math.min(1,t),0),3),this.l=r(Math.max(Math.min(1,n),0),3),this.a=r(Math.max(Math.min(1,o),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(e){const t=e.r/255,n=e.g/255,r=e.b/255,o=e.a,a=Math.max(t,n,r),s=Math.min(t,n,r);let l=0,c=0;const d=(s+a)/2,u=a-s;if(u>0){switch(c=Math.min(d<=.5?u/(2*d):u/(2-2*d),1),a){case t:l=(n-r)/u+(n<r?6:0);break;case n:l=(r-t)/u+2;break;case r:l=(t-n)/u+4}l*=60,l=Math.round(l)}return new i(l,c,d,o)}static _hue2rgb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}static toRGBA(e){const t=e.h/360,{s:n,l:r,a:a}=e;let s,l,c;if(0===n)s=l=c=r;else{const e=r<.5?r*(1+n):r+n-r*n,o=2*r-e;s=i._hue2rgb(o,e,t+1/3),l=i._hue2rgb(o,e,t),c=i._hue2rgb(o,e,t-1/3)}return new o(Math.round(255*s),Math.round(255*l),Math.round(255*c),a)}}class a{constructor(e,t,n,o){this._hsvaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=r(Math.max(Math.min(1,t),0),3),this.v=r(Math.max(Math.min(1,n),0),3),this.a=r(Math.max(Math.min(1,o),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(e){const t=e.r/255,n=e.g/255,r=e.b/255,o=Math.max(t,n,r),i=o-Math.min(t,n,r),s=0===o?0:i/o;let l;return l=0===i?0:o===t?((n-r)/i%6+6)%6:o===n?(r-t)/i+2:(t-n)/i+4,new a(Math.round(60*l),s,o,e.a)}static toRGBA(e){const{h:t,s:n,v:r,a:i}=e,a=r*n,s=a*(1-Math.abs(t/60%2-1)),l=r-a;let[c,d,u]=[0,0,0];return t<60?(c=a,d=s):t<120?(c=s,d=a):t<180?(d=a,u=s):t<240?(d=s,u=a):t<300?(c=s,u=a):t<=360&&(c=a,u=s),c=Math.round(255*(c+l)),d=Math.round(255*(d+l)),u=Math.round(255*(u+l)),new o(c,d,u,i)}}class s{static fromHex(e){return s.Format.CSS.parseHex(e)||s.red}static equals(e,t){return!e&&!t||!(!e||!t)&&e.equals(t)}get hsla(){return this._hsla?this._hsla:i.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:a.fromRGBA(this.rgba)}constructor(e){if(!e)throw new Error("Color needs a value");if(e instanceof o)this.rgba=e;else if(e instanceof i)this._hsla=e,this.rgba=i.toRGBA(e);else{if(!(e instanceof a))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=a.toRGBA(e)}}equals(e){return!!e&&o.equals(this.rgba,e.rgba)&&i.equals(this.hsla,e.hsla)&&a.equals(this.hsva,e.hsva)}getRelativeLuminance(){return r(.2126*s._relativeLuminanceForComponent(this.rgba.r)+.7152*s._relativeLuminanceForComponent(this.rgba.g)+.0722*s._relativeLuminanceForComponent(this.rgba.b),4)}static _relativeLuminanceForComponent(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}isLighter(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128}isLighterThan(e){return this.getRelativeLuminance()>e.getRelativeLuminance()}isDarkerThan(e){return this.getRelativeLuminance()<e.getRelativeLuminance()}lighten(e){return new s(new i(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*e,this.hsla.a))}darken(e){return new s(new i(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*e,this.hsla.a))}transparent(e){const{r:t,g:n,b:r,a:i}=this.rgba;return new s(new o(t,n,r,i*e))}isTransparent(){return 0===this.rgba.a}isOpaque(){return 1===this.rgba.a}opposite(){return new s(new o(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(e){if(this.isOpaque()||1!==e.rgba.a)return this;const{r:t,g:n,b:r,a:i}=this.rgba;return new s(new o(e.rgba.r-i*(e.rgba.r-t),e.rgba.g-i*(e.rgba.g-n),e.rgba.b-i*(e.rgba.b-r),1))}toString(){return this._toString||(this._toString=s.Format.CSS.format(this)),this._toString}static getLighterColor(e,t,n){if(e.isLighterThan(t))return e;n=n||.5;const r=e.getRelativeLuminance(),o=t.getRelativeLuminance();return n=n*(o-r)/o,e.lighten(n)}static getDarkerColor(e,t,n){if(e.isDarkerThan(t))return e;n=n||.5;const r=e.getRelativeLuminance();return n=n*(r-t.getRelativeLuminance())/r,e.darken(n)}static{this.white=new s(new o(255,255,255,1))}static{this.black=new s(new o(0,0,0,1))}static{this.red=new s(new o(255,0,0,1))}static{this.blue=new s(new o(0,0,255,1))}static{this.green=new s(new o(0,255,0,1))}static{this.cyan=new s(new o(0,255,255,1))}static{this.lightgrey=new s(new o(211,211,211,1))}static{this.transparent=new s(new o(0,0,0,0))}}!function(e){let t;!function(t){let n;!function(t){function n(e){const t=e.toString(16);return 2!==t.length?"0"+t:t}function r(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:case 65:return 10;case 98:case 66:return 11;case 99:case 67:return 12;case 100:case 68:return 13;case 101:case 69:return 14;case 102:case 70:return 15}return 0}t.formatRGB=function(t){return 1===t.rgba.a?`rgb(${t.rgba.r}, ${t.rgba.g}, ${t.rgba.b})`:e.Format.CSS.formatRGBA(t)},t.formatRGBA=function(e){return`rgba(${e.rgba.r}, ${e.rgba.g}, ${e.rgba.b}, ${+e.rgba.a.toFixed(2)})`},t.formatHSL=function(t){return 1===t.hsla.a?`hsl(${t.hsla.h}, ${(100*t.hsla.s).toFixed(2)}%, ${(100*t.hsla.l).toFixed(2)}%)`:e.Format.CSS.formatHSLA(t)},t.formatHSLA=function(e){return`hsla(${e.hsla.h}, ${(100*e.hsla.s).toFixed(2)}%, ${(100*e.hsla.l).toFixed(2)}%, ${e.hsla.a.toFixed(2)})`},t.formatHex=function(e){return`#${n(e.rgba.r)}${n(e.rgba.g)}${n(e.rgba.b)}`},t.formatHexA=function(t,r=!1){return r&&1===t.rgba.a?e.Format.CSS.formatHex(t):`#${n(t.rgba.r)}${n(t.rgba.g)}${n(t.rgba.b)}${n(Math.round(255*t.rgba.a))}`},t.format=function(t){return t.isOpaque()?e.Format.CSS.formatHex(t):e.Format.CSS.formatRGBA(t)},t.parseHex=function(t){const n=t.length;if(0===n)return null;if(35!==t.charCodeAt(0))return null;if(7===n){const n=16*r(t.charCodeAt(1))+r(t.charCodeAt(2)),i=16*r(t.charCodeAt(3))+r(t.charCodeAt(4)),a=16*r(t.charCodeAt(5))+r(t.charCodeAt(6));return new e(new o(n,i,a,1))}if(9===n){const n=16*r(t.charCodeAt(1))+r(t.charCodeAt(2)),i=16*r(t.charCodeAt(3))+r(t.charCodeAt(4)),a=16*r(t.charCodeAt(5))+r(t.charCodeAt(6)),s=16*r(t.charCodeAt(7))+r(t.charCodeAt(8));return new e(new o(n,i,a,s/255))}if(4===n){const n=r(t.charCodeAt(1)),i=r(t.charCodeAt(2)),a=r(t.charCodeAt(3));return new e(new o(16*n+n,16*i+i,16*a+a))}if(5===n){const n=r(t.charCodeAt(1)),i=r(t.charCodeAt(2)),a=r(t.charCodeAt(3)),s=r(t.charCodeAt(4));return new e(new o(16*n+n,16*i+i,16*a+a,(16*s+s)/255))}return null}}(n=t.CSS||(t.CSS={}))}(t=e.Format||(e.Format={}))}(s||(s={}))},7729:(e,t,n)=>{"use strict";n.d(t,{lt:()=>u,W5:()=>h,hB:()=>m,dr:()=>p,wC:()=>_});var r=n(1508),o=n(4320),i=n(534);class a extends i.V{constructor(e,t){super(0),this._segmenter=null,this._cachedLine=null,this._cachedSegments=[],this.intlSegmenterLocales=t,this.intlSegmenterLocales.length>0?this._segmenter=new Intl.Segmenter(this.intlSegmenterLocales,{granularity:"word"}):this._segmenter=null;for(let n=0,r=e.length;n<r;n++)this.set(e.charCodeAt(n),2);this.set(32,1),this.set(9,1)}findPrevIntlWordBeforeOrAtOffset(e,t){let n=null;for(const r of this._getIntlSegmenterWordsOnLine(e)){if(r.index>t)break;n=r}return n}findNextIntlWordAtOrAfterOffset(e,t){for(const n of this._getIntlSegmenterWordsOnLine(e))if(!(n.index<t))return n;return null}_getIntlSegmenterWordsOnLine(e){return this._segmenter?(this._cachedLine===e||(this._cachedLine=e,this._cachedSegments=this._filterWordSegments(this._segmenter.segment(e))),this._cachedSegments):[]}_filterWordSegments(e){const t=[];for(const n of e)this._isWordLike(n)&&t.push(n);return t}_isWordLike(e){return!!e.isWordLike}}const s=new o.qK(10);var l=n(3069),c=n(6677),d=n(6223);class u{constructor(e,t,n,r){this.searchString=e,this.isRegex=t,this.matchCase=n,this.wordSeparators=r}parseSearchRequest(){if(""===this.searchString)return null;let e;e=this.isRegex?function(e){if(!e||0===e.length)return!1;for(let t=0,n=e.length;t<n;t++){const r=e.charCodeAt(t);if(10===r)return!0;if(92===r){if(t++,t>=n)break;const r=e.charCodeAt(t);if(110===r||114===r||87===r)return!0}}return!1}(this.searchString):this.searchString.indexOf("\n")>=0;let t=null;try{t=r.OS(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0,unicode:!0})}catch(o){return null}if(!t)return null;let n=!this.isRegex&&!e;return n&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(n=this.matchCase),new d.L5(t,this.wordSeparators?function(e,t){const n=`${e}/${t.join(",")}`;let r=s.get(n);return r||(r=new a(e,t),s.set(n,r)),r}(this.wordSeparators,[]):null,n?this.searchString:null)}}function p(e,t,n){if(!n)return new d.Dg(e,null);const r=[];for(let o=0,i=t.length;o<i;o++)r[o]=t[o];return new d.Dg(e,r)}class f{constructor(e){const t=[];let n=0;for(let r=0,o=e.length;r<o;r++)10===e.charCodeAt(r)&&(t[n++]=r);this._lineFeedsOffsets=t}findLineFeedCountBeforeOffset(e){const t=this._lineFeedsOffsets;let n=0,r=t.length-1;if(-1===r)return 0;if(e<=t[0])return 0;for(;n<r;){const o=n+((r-n)/2|0);t[o]>=e?r=o-1:t[o+1]>=e?(n=o,r=o):n=o+1}return n+1}}class m{static findMatches(e,t,n,r,o){const i=t.parseSearchRequest();return i?i.regex.multiline?this._doFindMatchesMultiline(e,n,new h(i.wordSeparators,i.regex),r,o):this._doFindMatchesLineByLine(e,n,i,r,o):[]}static _getMultilineMatchRange(e,t,n,r,o,i){let a,s,l=0;if(r?(l=r.findLineFeedCountBeforeOffset(o),a=t+o+l):a=t+o,r){const e=r.findLineFeedCountBeforeOffset(o+i.length)-l;s=a+i.length+e}else s=a+i.length;const d=e.getPositionAt(a),u=e.getPositionAt(s);return new c.Q(d.lineNumber,d.column,u.lineNumber,u.column)}static _doFindMatchesMultiline(e,t,n,r,o){const i=e.getOffsetAt(t.getStartPosition()),a=e.getValueInRange(t,1),s="\r\n"===e.getEOL()?new f(a):null,l=[];let c,d=0;for(n.reset(0);c=n.next(a);)if(l[d++]=p(this._getMultilineMatchRange(e,i,a,s,c.index,c[0]),c,r),d>=o)return l;return l}static _doFindMatchesLineByLine(e,t,n,r,o){const i=[];let a=0;if(t.startLineNumber===t.endLineNumber){const s=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return a=this._findMatchesInLine(n,s,t.startLineNumber,t.startColumn-1,a,i,r,o),i}const s=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);a=this._findMatchesInLine(n,s,t.startLineNumber,t.startColumn-1,a,i,r,o);for(let l=t.startLineNumber+1;l<t.endLineNumber&&a<o;l++)a=this._findMatchesInLine(n,e.getLineContent(l),l,0,a,i,r,o);if(a<o){const s=e.getLineContent(t.endLineNumber).substring(0,t.endColumn-1);a=this._findMatchesInLine(n,s,t.endLineNumber,0,a,i,r,o)}return i}static _findMatchesInLine(e,t,n,r,o,i,a,s){const l=e.wordSeparators;if(!a&&e.simpleSearch){const a=e.simpleSearch,u=a.length,p=t.length;let f=-u;for(;-1!==(f=t.indexOf(a,f+u));)if((!l||_(l,t,p,f,u))&&(i[o++]=new d.Dg(new c.Q(n,f+1+r,n,f+1+u+r),null),o>=s))return o;return o}const u=new h(e.wordSeparators,e.regex);let f;u.reset(0);do{if(f=u.next(t),f&&(i[o++]=p(new c.Q(n,f.index+1+r,n,f.index+1+f[0].length+r),f,a),o>=s))return o}while(f);return o}static findNextMatch(e,t,n,r){const o=t.parseSearchRequest();if(!o)return null;const i=new h(o.wordSeparators,o.regex);return o.regex.multiline?this._doFindNextMatchMultiline(e,n,i,r):this._doFindNextMatchLineByLine(e,n,i,r)}static _doFindNextMatchMultiline(e,t,n,r){const o=new l.y(t.lineNumber,1),i=e.getOffsetAt(o),a=e.getLineCount(),s=e.getValueInRange(new c.Q(o.lineNumber,o.column,a,e.getLineMaxColumn(a)),1),d="\r\n"===e.getEOL()?new f(s):null;n.reset(t.column-1);const u=n.next(s);return u?p(this._getMultilineMatchRange(e,i,s,d,u.index,u[0]),u,r):1!==t.lineNumber||1!==t.column?this._doFindNextMatchMultiline(e,new l.y(1,1),n,r):null}static _doFindNextMatchLineByLine(e,t,n,r){const o=e.getLineCount(),i=t.lineNumber,a=e.getLineContent(i),s=this._findFirstMatchInLine(n,a,i,t.column,r);if(s)return s;for(let l=1;l<=o;l++){const t=(i+l-1)%o,a=e.getLineContent(t+1),s=this._findFirstMatchInLine(n,a,t+1,1,r);if(s)return s}return null}static _findFirstMatchInLine(e,t,n,r,o){e.reset(r-1);const i=e.next(t);return i?p(new c.Q(n,i.index+1,n,i.index+1+i[0].length),i,o):null}static findPreviousMatch(e,t,n,r){const o=t.parseSearchRequest();if(!o)return null;const i=new h(o.wordSeparators,o.regex);return o.regex.multiline?this._doFindPreviousMatchMultiline(e,n,i,r):this._doFindPreviousMatchLineByLine(e,n,i,r)}static _doFindPreviousMatchMultiline(e,t,n,r){const o=this._doFindMatchesMultiline(e,new c.Q(1,1,t.lineNumber,t.column),n,r,9990);if(o.length>0)return o[o.length-1];const i=e.getLineCount();return t.lineNumber!==i||t.column!==e.getLineMaxColumn(i)?this._doFindPreviousMatchMultiline(e,new l.y(i,e.getLineMaxColumn(i)),n,r):null}static _doFindPreviousMatchLineByLine(e,t,n,r){const o=e.getLineCount(),i=t.lineNumber,a=e.getLineContent(i).substring(0,t.column-1),s=this._findLastMatchInLine(n,a,i,r);if(s)return s;for(let l=1;l<=o;l++){const t=(o+i-l-1)%o,a=e.getLineContent(t+1),s=this._findLastMatchInLine(n,a,t+1,r);if(s)return s}return null}static _findLastMatchInLine(e,t,n,r){let o,i=null;for(e.reset(0);o=e.next(t);)i=p(new c.Q(n,o.index+1,n,o.index+1+o[0].length),o,r);return i}}function _(e,t,n,r,o){return function(e,t,n,r,o){if(0===r)return!0;const i=t.charCodeAt(r-1);if(0!==e.get(i))return!0;if(13===i||10===i)return!0;if(o>0){const n=t.charCodeAt(r);if(0!==e.get(n))return!0}return!1}(e,t,0,r,o)&&function(e,t,n,r,o){if(r+o===n)return!0;const i=t.charCodeAt(r+o);if(0!==e.get(i))return!0;if(13===i||10===i)return!0;if(o>0){const n=t.charCodeAt(r+o-1);if(0!==e.get(n))return!0}return!1}(e,t,n,r,o)}class h{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){const t=e.length;let n;do{if(this._prevMatchStartIndex+this._prevMatchLength===t)return null;if(n=this._searchRegex.exec(e),!n)return null;const o=n.index,i=n[0].length;if(o===this._prevMatchStartIndex&&i===this._prevMatchLength){if(0===i){r.Z5(e,t,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=o,this._prevMatchLength=i,!this._wordSeparators||_(this._wordSeparators,e,t,o,i))return n}while(n);return null}}},8067:(e,t,n)=>{"use strict";n.d(t,{H8:()=>W,HZ:()=>D,OS:()=>P,UP:()=>G,_p:()=>k,cm:()=>F,gm:()=>z,ib:()=>C,j9:()=>R,lg:()=>N,nr:()=>B,uF:()=>A,zx:()=>I});var r=n(8209);const o="en";let i,a,s=!1,l=!1,c=!1,d=!1,u=!1,p=!1,f=!1,m=!1,_=!1,h=!1,g=null,y=null,v=null;const b=globalThis;let E;"undefined"!==typeof b.vscode&&"undefined"!==typeof b.vscode.process?E=b.vscode.process:"undefined"!==typeof process&&"string"===typeof process?.versions?.node&&(E=process);const S="string"===typeof E?.versions?.electron,T=S&&"renderer"===E?.type;if("object"===typeof E){s="win32"===E.platform,l="darwin"===E.platform,c="linux"===E.platform,d=c&&!!E.env.SNAP&&!!E.env.SNAP_REVISION,f=S,_=!!E.env.CI||!!E.env.BUILD_ARTIFACTSTAGINGDIRECTORY,i=o,g=o;const e=E.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e);i=t.userLocale,y=t.osLocale,g=t.resolvedLanguage||o,v=t.languagePack?.translationsConfigFile}catch(j){}u=!0}else"object"!==typeof navigator||T?console.error("Unable to resolve platform."):(a=navigator.userAgent,s=a.indexOf("Windows")>=0,l=a.indexOf("Macintosh")>=0,m=(a.indexOf("Macintosh")>=0||a.indexOf("iPad")>=0||a.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,c=a.indexOf("Linux")>=0,h=a?.indexOf("Mobi")>=0,p=!0,g=r.i8()||o,i=navigator.language.toLowerCase(),y=i);let x=0;l?x=1:s?x=3:c&&(x=2);const A=s,I=l,R=c,C=u,D=p,N=p&&"function"===typeof b.importScripts?b.origin:void 0,M=a,L="function"===typeof b.postMessage&&!b.importScripts,k=(()=>{if(L){const e=[];b.addEventListener("message",(t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let n=0,r=e.length;n<r;n++){const r=e[n];if(r.id===t.data.vscodeScheduleAsyncWork)return e.splice(n,1),void r.callback()}}));let t=0;return n=>{const r=++t;e.push({id:r,callback:n}),b.postMessage({vscodeScheduleAsyncWork:r},"*")}}return e=>setTimeout(e)})(),P=l||m?2:s?1:3;let w=!0,O=!1;function F(){if(!O){O=!0;const e=new Uint8Array(2);e[0]=1,e[1]=2;const t=new Uint16Array(e.buffer);w=513===t[0]}return w}const W=!!(M&&M.indexOf("Chrome")>=0),z=!!(M&&M.indexOf("Firefox")>=0),B=!!(!W&&M&&M.indexOf("Safari")>=0),G=!!(M&&M.indexOf("Edg/")>=0);M&&M.indexOf("Android")},8209:(e,t,n)=>{"use strict";function r(){return globalThis._VSCODE_NLS_LANGUAGE}n.d(t,{i8:()=>r,kg:()=>a});const o="pseudo"===r()||"undefined"!==typeof document&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function i(e,t){let n;return n=0===t.length?e:e.replace(/\{(\d+)\}/g,((e,n)=>{const r=n[0],o=t[r];let i=e;return"string"===typeof o?i=o:"number"!==typeof o&&"boolean"!==typeof o&&void 0!==o&&null!==o||(i=String(o)),i})),o&&(n="\uff3b"+n.replace(/[aouei]/g,"$&$&")+"\uff3d"),n}function a(e,t,...n){return i("number"===typeof e?s(e,t):t,n)}function s(e,t){const n=globalThis._VSCODE_NLS_MESSAGES?.[e];if("string"!==typeof n){if("string"===typeof t)return t;throw new Error(`!!! NLS MISSING: ${e} !!!`)}return n}},8232:(e,t,n)=>{"use strict";n.r(t),n.d(t,{encodeSemanticTokensDto:()=>i});var r=n(1674),o=n(8067);function i(e){const t=new Uint32Array(function(e){let t=0;if(t+=2,"full"===e.type)t+=1+e.data.length;else{t+=1,t+=3*e.deltas.length;for(const n of e.deltas)n.data&&(t+=n.data.length)}return t}(e));let n=0;if(t[n++]=e.id,"full"===e.type)t[n++]=1,t[n++]=e.data.length,t.set(e.data,n),n+=e.data.length;else{t[n++]=2,t[n++]=e.deltas.length;for(const r of e.deltas)t[n++]=r.start,t[n++]=r.deleteCount,r.data?(t[n++]=r.data.length,t.set(r.data,n),n+=r.data.length):t[n++]=0}return function(e){const t=new Uint8Array(e.buffer,e.byteOffset,4*e.length);return o.cm()||function(e){for(let t=0,n=e.length;t<n;t+=4){const n=e[t+0],r=e[t+1],o=e[t+2],i=e[t+3];e[t+0]=i,e[t+1]=o,e[t+2]=r,e[t+3]=n}}(t),r.MB.wrap(t)}(t)}},8381:(e,t,n)=>{"use strict";n.d(t,{W:()=>o});const r=globalThis.performance&&"function"===typeof globalThis.performance.now;class o{static create(e){return new o(e)}constructor(e){this._now=r&&!1===e?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}}},8447:(e,t,n)=>{"use strict";n.d(t,{Qi:()=>s});var r=n(1234);const o=Object.freeze((function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}}));var i;!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||(t instanceof a||!(!t||"object"!==typeof t)&&("boolean"===typeof t.isCancellationRequested&&"function"===typeof t.onCancellationRequested))},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:r.Jh.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:o})}(i||(i={}));class a{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?o:(this._emitter||(this._emitter=new r.vl),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class s{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new a),this._token}cancel(){this._token?this._token instanceof a&&this._token.cancel():this._token=i.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof a&&this._token.dispose():this._token=i.None}}},8709:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ILanguageFeatureDebounceService:()=>_,LanguageFeatureDebounceService:()=>v});var r=n(5600),o=n(4320);function i(e,t,n){return Math.min(Math.max(e,t),n)}class a{constructor(){this._n=1,this._val=0}update(e){return this._val=this._val+(e-this._val)/this._n,this._n+=1,this._val}get value(){return this._val}}class s{constructor(e){this._n=0,this._val=0,this._values=[],this._index=0,this._sum=0,this._values=new Array(e),this._values.fill(0,0,e)}update(e){const t=this._values[this._index];return this._values[this._index]=e,this._index=(this._index+1)%this._values.length,this._sum-=t,this._sum+=e,this._n<this._values.length&&(this._n+=1),this._val=this._sum/this._n,this._val}get value(){return this._val}}var l=n(3591);const c=(0,l.u1)("environmentService");var d=n(4621),u=n(3511),p=n(6456),f=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},m=function(e,t){return function(n,r){t(n,r,e)}};const _=(0,l.u1)("ILanguageFeatureDebounceService");var h;!function(e){const t=new WeakMap;let n=0;e.of=function(e){let r=t.get(e);return void 0===r&&(r=++n,t.set(e,r)),r}}(h||(h={}));class g{constructor(e){this._default=e}get(e){return this._default}update(e,t){return this._default}default(){return this._default}}class y{constructor(e,t,n,r,i,a){this._logService=e,this._name=t,this._registry=n,this._default=r,this._min=i,this._max=a,this._cache=new o.qK(50,.7)}_key(e){return e.id+this._registry.all(e).reduce(((e,t)=>(0,r.sN)(h.of(t),e)),0)}get(e){const t=this._key(e),n=this._cache.get(t);return n?i(n.value,this._min,this._max):this.default()}update(e,t){const n=this._key(e);let r=this._cache.get(n);r||(r=new s(6),this._cache.set(n,r));const o=i(r.update(t),this._min,this._max);return(0,p.v$)(e.uri,"output")||this._logService.trace(`[DEBOUNCE: ${this._name}] for ${e.uri.toString()} is ${o}ms`),o}_overall(){const e=new a;for(const[,t]of this._cache)e.update(t.value);return e.value}default(){return i(0|this._overall()||this._default,this._min,this._max)}}let v=class{constructor(e,t){this._logService=e,this._data=new Map,this._isDev=t.isExtensionDevelopment||!t.isBuilt}for(e,t,n){const r=n?.min??50,o=n?.max??r**2,i=n?.key??void 0,a=`${h.of(e)},${r}${i?","+i:""}`;let s=this._data.get(a);return s||(this._isDev?(this._logService.debug(`[DEBOUNCE: ${t}] is disabled in developed mode`),s=new g(1.5*r)):s=new y(this._logService,t,e,0|this._overallAverage()||1.5*r,r,o),this._data.set(a,s)),s}_overallAverage(){const e=new a;for(const t of this._data.values())e.update(t.default());return e.value}};v=f([m(0,u.rr),m(1,c)],v),(0,d.v)(_,v,1)},8748:(e,t,n)=>{"use strict";n.d(t,{F:()=>i});var r=n(1234),o=n(6359);const i={JSONContribution:"base.contributions.json"};const a=new class{constructor(){this._onDidChangeSchema=new r.vl,this.schemasById={}}registerSchema(e,t){var n;this.schemasById[(n=e,n.length>0&&"#"===n.charAt(n.length-1)?n.substring(0,n.length-1):n)]=t,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}};o.O.add(i.JSONContribution,a)},8821:(e,t,n)=>{"use strict";n.d(t,{P8:()=>C,pD:()=>R,LC:()=>D,fj:()=>x,S8:()=>T,SA:()=>S,V8:()=>I,hd:()=>A,Vn:()=>N,IN:()=>b});var r=n(8067);let o;const i=globalThis.vscode;if("undefined"!==typeof i&&"undefined"!==typeof i.process){const e=i.process;o={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd:()=>e.cwd()}}else o="undefined"!==typeof process&&"string"===typeof process?.versions?.node?{get platform(){return process.platform},get arch(){return process.arch},get env(){return{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}},cwd:()=>({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}.VSCODE_CWD||process.cwd())}:{get platform(){return r.uF?"win32":r.zx?"darwin":"linux"},get arch(){},get env(){return{}},cwd:()=>"/"};const a=o.cwd,s=(o.env,o.platform),l=46,c=47,d=92,u=58;class p extends Error{constructor(e,t,n){let r;"string"===typeof t&&0===t.indexOf("not ")?(r="must not be",t=t.replace(/^not /,"")):r="must be";const o=-1!==e.indexOf(".")?"property":"argument";let i=`The "${e}" ${o} ${r} of type ${t}`;i+=". Received type "+typeof n,super(i),this.code="ERR_INVALID_ARG_TYPE"}}function f(e,t){if("string"!==typeof e)throw new p(t,"string",e)}const m="win32"===s;function _(e){return e===c||e===d}function h(e){return e===c}function g(e){return e>=65&&e<=90||e>=97&&e<=122}function y(e,t,n,r){let o="",i=0,a=-1,s=0,d=0;for(let u=0;u<=e.length;++u){if(u<e.length)d=e.charCodeAt(u);else{if(r(d))break;d=c}if(r(d)){if(a===u-1||1===s);else if(2===s){if(o.length<2||2!==i||o.charCodeAt(o.length-1)!==l||o.charCodeAt(o.length-2)!==l){if(o.length>2){const e=o.lastIndexOf(n);-1===e?(o="",i=0):(o=o.slice(0,e),i=o.length-1-o.lastIndexOf(n)),a=u,s=0;continue}if(0!==o.length){o="",i=0,a=u,s=0;continue}}t&&(o+=o.length>0?`${n}..`:"..",i=2)}else o.length>0?o+=`${n}${e.slice(a+1,u)}`:o=e.slice(a+1,u),i=u-a-1;a=u,s=0}else d===l&&-1!==s?++s:s=-1}return o}function v(e,t){!function(e,t){if(null===e||"object"!==typeof e)throw new p(t,"Object",e)}(t,"pathObject");const n=t.dir||t.root,r=t.base||`${t.name||""}${o=t.ext,o?`${"."===o[0]?"":"."}${o}`:""}`;var o;return n?n===t.root?`${n}${r}`:`${n}${e}${r}`:r}const b={resolve(...e){let t="",n="",r=!1;for(let o=e.length-1;o>=-1;o--){let i;if(o>=0){if(i=e[o],f(i,`paths[${o}]`),0===i.length)continue}else 0===t.length?i=a():(i={NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}[`=${t}`]||a(),(void 0===i||i.slice(0,2).toLowerCase()!==t.toLowerCase()&&i.charCodeAt(2)===d)&&(i=`${t}\\`));const s=i.length;let l=0,c="",p=!1;const m=i.charCodeAt(0);if(1===s)_(m)&&(l=1,p=!0);else if(_(m))if(p=!0,_(i.charCodeAt(1))){let e=2,t=e;for(;e<s&&!_(i.charCodeAt(e));)e++;if(e<s&&e!==t){const n=i.slice(t,e);for(t=e;e<s&&_(i.charCodeAt(e));)e++;if(e<s&&e!==t){for(t=e;e<s&&!_(i.charCodeAt(e));)e++;e!==s&&e===t||(c=`\\\\${n}\\${i.slice(t,e)}`,l=e)}}}else l=1;else g(m)&&i.charCodeAt(1)===u&&(c=i.slice(0,2),l=2,s>2&&_(i.charCodeAt(2))&&(p=!0,l=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=`${i.slice(l)}\\${n}`,r=p,p&&t.length>0)break}return n=y(n,!r,"\\",_),r?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){f(e,"path");const t=e.length;if(0===t)return".";let n,r=0,o=!1;const i=e.charCodeAt(0);if(1===t)return h(i)?"\\":e;if(_(i))if(o=!0,_(e.charCodeAt(1))){let o=2,i=o;for(;o<t&&!_(e.charCodeAt(o));)o++;if(o<t&&o!==i){const a=e.slice(i,o);for(i=o;o<t&&_(e.charCodeAt(o));)o++;if(o<t&&o!==i){for(i=o;o<t&&!_(e.charCodeAt(o));)o++;if(o===t)return`\\\\${a}\\${e.slice(i)}\\`;o!==i&&(n=`\\\\${a}\\${e.slice(i,o)}`,r=o)}}}else r=1;else g(i)&&e.charCodeAt(1)===u&&(n=e.slice(0,2),r=2,t>2&&_(e.charCodeAt(2))&&(o=!0,r=3));let a=r<t?y(e.slice(r),!o,"\\",_):"";return 0!==a.length||o||(a="."),a.length>0&&_(e.charCodeAt(t-1))&&(a+="\\"),void 0===n?o?`\\${a}`:a:o?`${n}\\${a}`:`${n}${a}`},isAbsolute(e){f(e,"path");const t=e.length;if(0===t)return!1;const n=e.charCodeAt(0);return _(n)||t>2&&g(n)&&e.charCodeAt(1)===u&&_(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let t,n;for(let i=0;i<e.length;++i){const r=e[i];f(r,"path"),r.length>0&&(void 0===t?t=n=r:t+=`\\${r}`)}if(void 0===t)return".";let r=!0,o=0;if("string"===typeof n&&_(n.charCodeAt(0))){++o;const e=n.length;e>1&&_(n.charCodeAt(1))&&(++o,e>2&&(_(n.charCodeAt(2))?++o:r=!1))}if(r){for(;o<t.length&&_(t.charCodeAt(o));)o++;o>=2&&(t=`\\${t.slice(o)}`)}return b.normalize(t)},relative(e,t){if(f(e,"from"),f(t,"to"),e===t)return"";const n=b.resolve(e),r=b.resolve(t);if(n===r)return"";if((e=n.toLowerCase())===(t=r.toLowerCase()))return"";let o=0;for(;o<e.length&&e.charCodeAt(o)===d;)o++;let i=e.length;for(;i-1>o&&e.charCodeAt(i-1)===d;)i--;const a=i-o;let s=0;for(;s<t.length&&t.charCodeAt(s)===d;)s++;let l=t.length;for(;l-1>s&&t.charCodeAt(l-1)===d;)l--;const c=l-s,u=a<c?a:c;let p=-1,m=0;for(;m<u;m++){const n=e.charCodeAt(o+m);if(n!==t.charCodeAt(s+m))break;n===d&&(p=m)}if(m!==u){if(-1===p)return r}else{if(c>u){if(t.charCodeAt(s+m)===d)return r.slice(s+m+1);if(2===m)return r.slice(s+m)}a>u&&(e.charCodeAt(o+m)===d?p=m:2===m&&(p=3)),-1===p&&(p=0)}let _="";for(m=o+p+1;m<=i;++m)m!==i&&e.charCodeAt(m)!==d||(_+=0===_.length?"..":"\\..");return s+=p,_.length>0?`${_}${r.slice(s,l)}`:(r.charCodeAt(s)===d&&++s,r.slice(s,l))},toNamespacedPath(e){if("string"!==typeof e||0===e.length)return e;const t=b.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===d){if(t.charCodeAt(1)===d){const e=t.charCodeAt(2);if(63!==e&&e!==l)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(g(t.charCodeAt(0))&&t.charCodeAt(1)===u&&t.charCodeAt(2)===d)return`\\\\?\\${t}`;return e},dirname(e){f(e,"path");const t=e.length;if(0===t)return".";let n=-1,r=0;const o=e.charCodeAt(0);if(1===t)return _(o)?e:".";if(_(o)){if(n=r=1,_(e.charCodeAt(1))){let o=2,i=o;for(;o<t&&!_(e.charCodeAt(o));)o++;if(o<t&&o!==i){for(i=o;o<t&&_(e.charCodeAt(o));)o++;if(o<t&&o!==i){for(i=o;o<t&&!_(e.charCodeAt(o));)o++;if(o===t)return e;o!==i&&(n=r=o+1)}}}}else g(o)&&e.charCodeAt(1)===u&&(n=t>2&&_(e.charCodeAt(2))?3:2,r=n);let i=-1,a=!0;for(let s=t-1;s>=r;--s)if(_(e.charCodeAt(s))){if(!a){i=s;break}}else a=!1;if(-1===i){if(-1===n)return".";i=n}return e.slice(0,i)},basename(e,t){void 0!==t&&f(t,"suffix"),f(e,"path");let n,r=0,o=-1,i=!0;if(e.length>=2&&g(e.charCodeAt(0))&&e.charCodeAt(1)===u&&(r=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let a=t.length-1,s=-1;for(n=e.length-1;n>=r;--n){const l=e.charCodeAt(n);if(_(l)){if(!i){r=n+1;break}}else-1===s&&(i=!1,s=n+1),a>=0&&(l===t.charCodeAt(a)?-1===--a&&(o=n):(a=-1,o=s))}return r===o?o=s:-1===o&&(o=e.length),e.slice(r,o)}for(n=e.length-1;n>=r;--n)if(_(e.charCodeAt(n))){if(!i){r=n+1;break}}else-1===o&&(i=!1,o=n+1);return-1===o?"":e.slice(r,o)},extname(e){f(e,"path");let t=0,n=-1,r=0,o=-1,i=!0,a=0;e.length>=2&&e.charCodeAt(1)===u&&g(e.charCodeAt(0))&&(t=r=2);for(let s=e.length-1;s>=t;--s){const t=e.charCodeAt(s);if(_(t)){if(!i){r=s+1;break}}else-1===o&&(i=!1,o=s+1),t===l?-1===n?n=s:1!==a&&(a=1):-1!==n&&(a=-1)}return-1===n||-1===o||0===a||1===a&&n===o-1&&n===r+1?"":e.slice(n,o)},format:v.bind(null,"\\"),parse(e){f(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.length;let r=0,o=e.charCodeAt(0);if(1===n)return _(o)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(_(o)){if(r=1,_(e.charCodeAt(1))){let t=2,o=t;for(;t<n&&!_(e.charCodeAt(t));)t++;if(t<n&&t!==o){for(o=t;t<n&&_(e.charCodeAt(t));)t++;if(t<n&&t!==o){for(o=t;t<n&&!_(e.charCodeAt(t));)t++;t===n?r=t:t!==o&&(r=t+1)}}}}else if(g(o)&&e.charCodeAt(1)===u){if(n<=2)return t.root=t.dir=e,t;if(r=2,_(e.charCodeAt(2))){if(3===n)return t.root=t.dir=e,t;r=3}}r>0&&(t.root=e.slice(0,r));let i=-1,a=r,s=-1,c=!0,d=e.length-1,p=0;for(;d>=r;--d)if(o=e.charCodeAt(d),_(o)){if(!c){a=d+1;break}}else-1===s&&(c=!1,s=d+1),o===l?-1===i?i=d:1!==p&&(p=1):-1!==i&&(p=-1);return-1!==s&&(-1===i||0===p||1===p&&i===s-1&&i===a+1?t.base=t.name=e.slice(a,s):(t.name=e.slice(a,i),t.base=e.slice(a,s),t.ext=e.slice(i,s))),t.dir=a>0&&a!==r?e.slice(0,a-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},E=(()=>{if(m){const e=/\\/g;return()=>{const t=a().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>a()})(),S={resolve(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const o=r>=0?e[r]:E();f(o,`paths[${r}]`),0!==o.length&&(t=`${o}/${t}`,n=o.charCodeAt(0)===c)}return t=y(t,!n,"/",h),n?`/${t}`:t.length>0?t:"."},normalize(e){if(f(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===c,n=e.charCodeAt(e.length-1)===c;return 0===(e=y(e,!t,"/",h)).length?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute:e=>(f(e,"path"),e.length>0&&e.charCodeAt(0)===c),join(...e){if(0===e.length)return".";let t;for(let n=0;n<e.length;++n){const r=e[n];f(r,"path"),r.length>0&&(void 0===t?t=r:t+=`/${r}`)}return void 0===t?".":S.normalize(t)},relative(e,t){if(f(e,"from"),f(t,"to"),e===t)return"";if((e=S.resolve(e))===(t=S.resolve(t)))return"";const n=e.length,r=n-1,o=t.length-1,i=r<o?r:o;let a=-1,s=0;for(;s<i;s++){const n=e.charCodeAt(1+s);if(n!==t.charCodeAt(1+s))break;n===c&&(a=s)}if(s===i)if(o>i){if(t.charCodeAt(1+s)===c)return t.slice(1+s+1);if(0===s)return t.slice(1+s)}else r>i&&(e.charCodeAt(1+s)===c?a=s:0===s&&(a=0));let l="";for(s=1+a+1;s<=n;++s)s!==n&&e.charCodeAt(s)!==c||(l+=0===l.length?"..":"/..");return`${l}${t.slice(1+a)}`},toNamespacedPath:e=>e,dirname(e){if(f(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===c;let n=-1,r=!0;for(let o=e.length-1;o>=1;--o)if(e.charCodeAt(o)===c){if(!r){n=o;break}}else r=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename(e,t){void 0!==t&&f(t,"ext"),f(e,"path");let n,r=0,o=-1,i=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let a=t.length-1,s=-1;for(n=e.length-1;n>=0;--n){const l=e.charCodeAt(n);if(l===c){if(!i){r=n+1;break}}else-1===s&&(i=!1,s=n+1),a>=0&&(l===t.charCodeAt(a)?-1===--a&&(o=n):(a=-1,o=s))}return r===o?o=s:-1===o&&(o=e.length),e.slice(r,o)}for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===c){if(!i){r=n+1;break}}else-1===o&&(i=!1,o=n+1);return-1===o?"":e.slice(r,o)},extname(e){f(e,"path");let t=-1,n=0,r=-1,o=!0,i=0;for(let a=e.length-1;a>=0;--a){const s=e.charCodeAt(a);if(s!==c)-1===r&&(o=!1,r=a+1),s===l?-1===t?t=a:1!==i&&(i=1):-1!==t&&(i=-1);else if(!o){n=a+1;break}}return-1===t||-1===r||0===i||1===i&&t===r-1&&t===n+1?"":e.slice(t,r)},format:v.bind(null,"/"),parse(e){f(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.charCodeAt(0)===c;let r;n?(t.root="/",r=1):r=0;let o=-1,i=0,a=-1,s=!0,d=e.length-1,u=0;for(;d>=r;--d){const t=e.charCodeAt(d);if(t!==c)-1===a&&(s=!1,a=d+1),t===l?-1===o?o=d:1!==u&&(u=1):-1!==o&&(u=-1);else if(!s){i=d+1;break}}if(-1!==a){const r=0===i&&n?1:i;-1===o||0===u||1===u&&o===a-1&&o===i+1?t.base=t.name=e.slice(r,a):(t.name=e.slice(r,o),t.base=e.slice(r,a),t.ext=e.slice(o,a))}return i>0?t.dir=e.slice(0,i-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};S.win32=b.win32=b,S.posix=b.posix=S;const T=m?b.normalize:S.normalize,x=m?b.join:S.join,A=m?b.resolve:S.resolve,I=m?b.relative:S.relative,R=m?b.dirname:S.dirname,C=m?b.basename:S.basename,D=m?b.extname:S.extname,N=m?b.sep:S.sep},8868:(e,t,n)=>{"use strict";n.r(t)},8925:(e,t,n)=>{"use strict";n.d(t,{w:()=>o});class r{static{this.Undefined=new r(void 0)}constructor(e){this.element=e,this.next=r.Undefined,this.prev=r.Undefined}}class o{constructor(){this._first=r.Undefined,this._last=r.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===r.Undefined}clear(){let e=this._first;for(;e!==r.Undefined;){const t=e.next;e.prev=r.Undefined,e.next=r.Undefined,e=t}this._first=r.Undefined,this._last=r.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new r(e);if(this._first===r.Undefined)this._first=n,this._last=n;else if(t){const e=this._last;this._last=n,n.prev=e,e.next=n}else{const e=this._first;this._first=n,n.next=e,e.prev=n}this._size+=1;let o=!1;return()=>{o||(o=!0,this._remove(n))}}shift(){if(this._first!==r.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==r.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==r.Undefined&&e.next!==r.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===r.Undefined&&e.next===r.Undefined?(this._first=r.Undefined,this._last=r.Undefined):e.next===r.Undefined?(this._last=this._last.prev,this._last.next=r.Undefined):e.prev===r.Undefined&&(this._first=this._first.next,this._first.prev=r.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==r.Undefined;)yield e.element,e=e.next}}},8938:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITextModelService:()=>r});const r=(0,n(3591).u1)("textModelService")},9100:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITreeViewsDnDService:()=>a});var r=n(4621),o=n(3591),i=n(6723);const a=(0,o.u1)("treeViewsDndService");(0,r.v)(a,i.TreeViewsDnDService,1)},9204:(e,t,n)=>{var r={"./editorBaseApi":[4272],"./editorBaseApi.js":[4272],"./editorSimpleWorker":[5196],"./editorSimpleWorker.js":[5196],"./editorWorker":[920,792],"./editorWorker.js":[920,792],"./editorWorkerHost":[718],"./editorWorkerHost.js":[718],"./findSectionHeaders":[6691],"./findSectionHeaders.js":[6691],"./getIconClasses":[5628,792],"./getIconClasses.js":[5628,792],"./languageFeatureDebounce":[8709,792],"./languageFeatureDebounce.js":[8709,792],"./languageFeatures":[6942,792],"./languageFeatures.js":[6942,792],"./languageFeaturesService":[2661,792],"./languageFeaturesService.js":[2661,792],"./languageService":[7596,792],"./languageService.js":[7596,792],"./languagesAssociations":[9908,792],"./languagesAssociations.js":[9908,792],"./languagesRegistry":[9259,792],"./languagesRegistry.js":[9259,792],"./markerDecorations":[7550,792],"./markerDecorations.js":[7550,792],"./markerDecorationsService":[448,792],"./markerDecorationsService.js":[448,792],"./model":[3750,792],"./model.js":[3750,792],"./modelService":[1773,792],"./modelService.js":[1773,792],"./resolverService":[8938,792],"./resolverService.js":[8938,792],"./semanticTokensDto":[8232,792],"./semanticTokensDto.js":[8232,792],"./semanticTokensProviderStyling":[5538,792],"./semanticTokensProviderStyling.js":[5538,792],"./semanticTokensStyling":[4243,792],"./semanticTokensStyling.js":[4243,792],"./semanticTokensStylingService":[7004,792],"./semanticTokensStylingService.js":[7004,792],"./textModelSync/textModelSync.impl":[796],"./textModelSync/textModelSync.impl.js":[796],"./textModelSync/textModelSync.protocol":[8868,792],"./textModelSync/textModelSync.protocol.js":[8868,792],"./textResourceConfiguration":[360,792],"./textResourceConfiguration.js":[360,792],"./treeSitterParserService":[4432,792],"./treeSitterParserService.js":[4432,792],"./treeViewsDnd":[6723,792],"./treeViewsDnd.js":[6723,792],"./treeViewsDndService":[9100,792],"./treeViewsDndService.js":[9100,792],"./unicodeTextModelHighlighter":[4855],"./unicodeTextModelHighlighter.js":[4855],"monaco-editor/esm/vs/editor/common/services/editorBaseApi":[4272],"monaco-editor/esm/vs/editor/common/services/editorBaseApi.js":[4272],"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker":[5196],"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker.js":[5196],"monaco-editor/esm/vs/editor/common/services/editorWorker":[920,792],"monaco-editor/esm/vs/editor/common/services/editorWorker.js":[920,792],"monaco-editor/esm/vs/editor/common/services/editorWorkerHost":[718],"monaco-editor/esm/vs/editor/common/services/editorWorkerHost.js":[718],"monaco-editor/esm/vs/editor/common/services/findSectionHeaders":[6691],"monaco-editor/esm/vs/editor/common/services/findSectionHeaders.js":[6691],"monaco-editor/esm/vs/editor/common/services/getIconClasses":[5628,792],"monaco-editor/esm/vs/editor/common/services/getIconClasses.js":[5628,792],"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce":[8709,792],"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce.js":[8709,792],"monaco-editor/esm/vs/editor/common/services/languageFeatures":[6942,792],"monaco-editor/esm/vs/editor/common/services/languageFeatures.js":[6942,792],"monaco-editor/esm/vs/editor/common/services/languageFeaturesService":[2661,792],"monaco-editor/esm/vs/editor/common/services/languageFeaturesService.js":[2661,792],"monaco-editor/esm/vs/editor/common/services/languageService":[7596,792],"monaco-editor/esm/vs/editor/common/services/languageService.js":[7596,792],"monaco-editor/esm/vs/editor/common/services/languagesAssociations":[9908,792],"monaco-editor/esm/vs/editor/common/services/languagesAssociations.js":[9908,792],"monaco-editor/esm/vs/editor/common/services/languagesRegistry":[9259,792],"monaco-editor/esm/vs/editor/common/services/languagesRegistry.js":[9259,792],"monaco-editor/esm/vs/editor/common/services/markerDecorations":[7550,792],"monaco-editor/esm/vs/editor/common/services/markerDecorations.js":[7550,792],"monaco-editor/esm/vs/editor/common/services/markerDecorationsService":[448,792],"monaco-editor/esm/vs/editor/common/services/markerDecorationsService.js":[448,792],"monaco-editor/esm/vs/editor/common/services/model":[3750,792],"monaco-editor/esm/vs/editor/common/services/model.js":[3750,792],"monaco-editor/esm/vs/editor/common/services/modelService":[1773,792],"monaco-editor/esm/vs/editor/common/services/modelService.js":[1773,792],"monaco-editor/esm/vs/editor/common/services/resolverService":[8938,792],"monaco-editor/esm/vs/editor/common/services/resolverService.js":[8938,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensDto":[8232,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensDto.js":[8232,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling":[5538,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling.js":[5538,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling":[4243,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling.js":[4243,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService":[7004,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService.js":[7004,792],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl":[796],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl.js":[796],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol":[8868,792],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol.js":[8868,792],"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration":[360,792],"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration.js":[360,792],"monaco-editor/esm/vs/editor/common/services/treeSitterParserService":[4432,792],"monaco-editor/esm/vs/editor/common/services/treeSitterParserService.js":[4432,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDnd":[6723,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDnd.js":[6723,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDndService":[9100,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDndService.js":[9100,792],"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter":[4855],"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter.js":[4855]};function o(e){if(!n.o(r,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],o=t[0];return Promise.all(t.slice(1).map(n.e)).then((()=>n(o)))}o.keys=()=>Object.keys(r),o.id=9204,e.exports=o},9259:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LanguageIdCodec:()=>p,LanguagesRegistry:()=>f});var r=n(1234),o=n(1484),i=n(1508),a=n(9908),s=n(3941),l=n(1646),c=n(6359);const d=Object.prototype.hasOwnProperty,u="vs.editor.nullLanguage";class p{constructor(){this._languageIdToLanguage=[],this._languageToLanguageId=new Map,this._register(u,0),this._register(s.vH,1),this._nextLanguageId=2}_register(e,t){this._languageIdToLanguage[t]=e,this._languageToLanguageId.set(e,t)}register(e){if(this._languageToLanguageId.has(e))return;const t=this._nextLanguageId++;this._register(e,t)}encodeLanguageId(e){return this._languageToLanguageId.get(e)||0}decodeLanguageId(e){return this._languageIdToLanguage[e]||u}}class f extends o.jG{static{this.instanceCount=0}constructor(e=!0,t=!1){super(),this._onDidChange=this._register(new r.vl),this.onDidChange=this._onDidChange.event,f.instanceCount++,this._warnOnOverwrite=t,this.languageIdCodec=new p,this._dynamicLanguages=[],this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},e&&(this._initializeFromRegistry(),this._register(s.W6.onDidChangeLanguages((e=>{this._initializeFromRegistry()}))))}dispose(){f.instanceCount--,super.dispose()}_initializeFromRegistry(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},(0,a.clearPlatformLanguageAssociations)();const e=[].concat(s.W6.getLanguages()).concat(this._dynamicLanguages);this._registerLanguages(e)}_registerLanguages(e){for(const t of e)this._registerLanguage(t);this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach((e=>{const t=this._languages[e];t.name&&(this._nameMap[t.name]=t.identifier),t.aliases.forEach((e=>{this._lowercaseNameMap[e.toLowerCase()]=t.identifier})),t.mimetypes.forEach((e=>{this._mimeTypesMap[e]=t.identifier}))})),c.O.as(l.Fd.Configuration).registerOverrideIdentifiers(this.getRegisteredLanguageIds()),this._onDidChange.fire()}_registerLanguage(e){const t=e.id;let n;d.call(this._languages,t)?n=this._languages[t]:(this.languageIdCodec.register(t),n={identifier:t,name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[],icons:[]},this._languages[t]=n),this._mergeLanguage(n,e)}_mergeLanguage(e,t){const n=t.id;let r=null;if(Array.isArray(t.mimetypes)&&t.mimetypes.length>0&&(e.mimetypes.push(...t.mimetypes),r=t.mimetypes[0]),r||(r=`text/x-${n}`,e.mimetypes.push(r)),Array.isArray(t.extensions)){t.configuration?e.extensions=t.extensions.concat(e.extensions):e.extensions=e.extensions.concat(t.extensions);for(const e of t.extensions)(0,a.registerPlatformLanguageAssociation)({id:n,mime:r,extension:e},this._warnOnOverwrite)}if(Array.isArray(t.filenames))for(const i of t.filenames)(0,a.registerPlatformLanguageAssociation)({id:n,mime:r,filename:i},this._warnOnOverwrite),e.filenames.push(i);if(Array.isArray(t.filenamePatterns))for(const i of t.filenamePatterns)(0,a.registerPlatformLanguageAssociation)({id:n,mime:r,filepattern:i},this._warnOnOverwrite);if("string"===typeof t.firstLine&&t.firstLine.length>0){let e=t.firstLine;"^"!==e.charAt(0)&&(e="^"+e);try{const t=new RegExp(e);(0,i.eY)(t)||(0,a.registerPlatformLanguageAssociation)({id:n,mime:r,firstline:t},this._warnOnOverwrite)}catch(l){console.warn(`[${t.id}]: Invalid regular expression \`${e}\`: `,l)}}e.aliases.push(n);let o=null;if("undefined"!==typeof t.aliases&&Array.isArray(t.aliases)&&(o=0===t.aliases.length?[null]:t.aliases),null!==o)for(const i of o)i&&0!==i.length&&e.aliases.push(i);const s=null!==o&&o.length>0;if(s&&null===o[0]);else{const t=(s?o[0]:null)||n;!s&&e.name||(e.name=t)}t.configuration&&e.configurationFiles.push(t.configuration),t.icon&&e.icons.push(t.icon)}isRegisteredLanguageId(e){return!!e&&d.call(this._languages,e)}getRegisteredLanguageIds(){return Object.keys(this._languages)}getLanguageIdByLanguageName(e){const t=e.toLowerCase();return d.call(this._lowercaseNameMap,t)?this._lowercaseNameMap[t]:null}getLanguageIdByMimeType(e){return e&&d.call(this._mimeTypesMap,e)?this._mimeTypesMap[e]:null}guessLanguageIdByFilepathOrFirstLine(e,t){return e||t?(0,a.getLanguageIds)(e,t):[]}}},9326:(e,t,n)=>{"use strict";n.d(t,{TH:()=>a,Zn:()=>l,_1:()=>c,kb:()=>s});var r=n(8821),o=(n(8067),n(1508));function i(e){return 47===e||92===e}function a(e){return e.replace(/[\\/]/g,r.SA.sep)}function s(e){return-1===e.indexOf("/")&&(e=a(e)),/^[a-zA-Z]:(\/|$)/.test(e)&&(e="/"+e),e}function l(e,t=r.SA.sep){if(!e)return"";const n=e.length,o=e.charCodeAt(0);if(i(o)){if(i(e.charCodeAt(1))&&!i(e.charCodeAt(2))){let r=3;const o=r;for(;r<n&&!i(e.charCodeAt(r));r++);if(o!==r&&!i(e.charCodeAt(r+1)))for(r+=1;r<n;r++)if(i(e.charCodeAt(r)))return e.slice(0,r+1).replace(/[\\/]/g,t)}return t}if(d(o)&&58===e.charCodeAt(1))return i(e.charCodeAt(2))?e.slice(0,2)+t:e.slice(0,2);let a=e.indexOf("://");if(-1!==a)for(a+=3;a<n;a++)if(i(e.charCodeAt(a)))return e.slice(0,a+1);return""}function c(e,t,n,i=r.Vn){if(e===t)return!0;if(!e||!t)return!1;if(t.length>e.length)return!1;if(n){if(!(0,o.ns)(e,t))return!1;if(t.length===e.length)return!0;let n=t.length;return t.charAt(t.length-1)===i&&n--,e.charAt(n)===i}return t.charAt(t.length-1)!==i&&(t+=i),0===e.indexOf(t)}function d(e){return e>=65&&e<=90||e>=97&&e<=122}},9400:(e,t,n)=>{"use strict";n.d(t,{I:()=>g,r:()=>u});var r=n(8821),o=n(8067);const i=/^\w[\w\d+.-]*$/,a=/^\//,s=/^\/\//;const l="",c="/",d=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class u{static isUri(e){return e instanceof u||!!e&&("string"===typeof e.authority&&"string"===typeof e.fragment&&"string"===typeof e.path&&"string"===typeof e.query&&"string"===typeof e.scheme&&"string"===typeof e.fsPath&&"function"===typeof e.with&&"function"===typeof e.toString)}constructor(e,t,n,r,o,d=!1){"object"===typeof e?(this.scheme=e.scheme||l,this.authority=e.authority||l,this.path=e.path||l,this.query=e.query||l,this.fragment=e.fragment||l):(this.scheme=function(e,t){return e||t?e:"file"}(e,d),this.authority=t||l,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==c&&(t=c+t):t=c}return t}(this.scheme,n||l),this.query=r||l,this.fragment=o||l,function(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!i.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!a.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(s.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,d))}get fsPath(){return g(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:o,fragment:i}=e;return void 0===t?t=this.scheme:null===t&&(t=l),void 0===n?n=this.authority:null===n&&(n=l),void 0===r?r=this.path:null===r&&(r=l),void 0===o?o=this.query:null===o&&(o=l),void 0===i?i=this.fragment:null===i&&(i=l),t===this.scheme&&n===this.authority&&r===this.path&&o===this.query&&i===this.fragment?this:new f(t,n,r,o,i)}static parse(e,t=!1){const n=d.exec(e);return n?new f(n[2]||l,E(n[4]||l),E(n[5]||l),E(n[7]||l),E(n[9]||l),t):new f(l,l,l,l,l)}static file(e){let t=l;if(o.uF&&(e=e.replace(/\\/g,c)),e[0]===c&&e[1]===c){const n=e.indexOf(c,2);-1===n?(t=e.substring(2),e=c):(t=e.substring(2,n),e=e.substring(n)||c)}return new f("file",t,e,l,l)}static from(e,t){return new f(e.scheme,e.authority,e.path,e.query,e.fragment,t)}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let n;return n=o.uF&&"file"===e.scheme?u.file(r.IN.join(g(e,!0),...t)).path:r.SA.join(e.path,...t),e.with({path:n})}toString(e=!1){return y(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof u)return e;{const t=new f(e);return t._formatted=e.external??null,t._fsPath=e._sep===p?e.fsPath??null:null,t}}return e}}const p=o.uF?1:void 0;class f extends u{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=g(this,!1)),this._fsPath}toString(e=!1){return e?y(this,!0):(this._formatted||(this._formatted=y(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=p),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}}const m={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 _(e,t,n){let r,o=-1;for(let i=0;i<e.length;i++){const a=e.charCodeAt(i);if(a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||45===a||46===a||95===a||126===a||t&&47===a||n&&91===a||n&&93===a||n&&58===a)-1!==o&&(r+=encodeURIComponent(e.substring(o,i)),o=-1),void 0!==r&&(r+=e.charAt(i));else{void 0===r&&(r=e.substr(0,i));const t=m[a];void 0!==t?(-1!==o&&(r+=encodeURIComponent(e.substring(o,i)),o=-1),r+=t):-1===o&&(o=i)}}return-1!==o&&(r+=encodeURIComponent(e.substring(o))),void 0!==r?r:e}function h(e){let t;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);35===r||63===r?(void 0===t&&(t=e.substr(0,n)),t+=m[r]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function g(e,t){let n;return n=e.authority&&e.path.length>1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,o.uF&&(n=n.replace(/\//g,"\\")),n}function y(e,t){const n=t?h:_;let r="",{scheme:o,authority:i,path:a,query:s,fragment:l}=e;if(o&&(r+=o,r+=":"),(i||"file"===o)&&(r+=c,r+=c),i){let e=i.indexOf("@");if(-1!==e){const t=i.substr(0,e);i=i.substr(e+1),e=t.lastIndexOf(":"),-1===e?r+=n(t,!1,!1):(r+=n(t.substr(0,e),!1,!1),r+=":",r+=n(t.substr(e+1),!1,!0)),r+="@"}i=i.toLowerCase(),e=i.lastIndexOf(":"),-1===e?r+=n(i,!1,!0):(r+=n(i.substr(0,e),!1,!0),r+=i.substr(e))}if(a){if(a.length>=3&&47===a.charCodeAt(0)&&58===a.charCodeAt(2)){const e=a.charCodeAt(1);e>=65&&e<=90&&(a=`/${String.fromCharCode(e+32)}:${a.substr(3)}`)}else if(a.length>=2&&58===a.charCodeAt(1)){const e=a.charCodeAt(0);e>=65&&e<=90&&(a=`${String.fromCharCode(e+32)}:${a.substr(2)}`)}r+=n(a,!0,!1)}return s&&(r+="?",r+=n(s,!1,!1)),l&&(r+="#",r+=t?l:_(l,!1,!1)),r}function v(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+v(e.substr(3)):e}}const b=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function E(e){return e.match(b)?e.replace(b,(e=>v(e))):e}},9403:(e,t,n)=>{"use strict";n.d(t,{B6:()=>_,P8:()=>p});var r=n(9326),o=n(6456),i=n(8821),a=n(8067),s=n(1508),l=n(9400);function c(e){return(0,l.I)(e,!0)}class d{constructor(e){this._ignorePathCasing=e}compare(e,t,n=!1){return e===t?0:(0,s.UD)(this.getComparisonKey(e,n),this.getComparisonKey(t,n))}isEqual(e,t,n=!1){return e===t||!(!e||!t)&&this.getComparisonKey(e,n)===this.getComparisonKey(t,n)}getComparisonKey(e,t=!1){return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:t?null:void 0}).toString()}isEqualOrParent(e,t,n=!1){if(e.scheme===t.scheme){if(e.scheme===o.ny.file)return r._1(c(e),c(t),this._ignorePathCasing(e))&&e.query===t.query&&(n||e.fragment===t.fragment);if(f(e.authority,t.authority))return r._1(e.path,t.path,this._ignorePathCasing(e),"/")&&e.query===t.query&&(n||e.fragment===t.fragment)}return!1}joinPath(e,...t){return l.r.joinPath(e,...t)}basenameOrAuthority(e){return p(e)||e.authority}basename(e){return i.SA.basename(e.path)}extname(e){return i.SA.extname(e.path)}dirname(e){if(0===e.path.length)return e;let t;return e.scheme===o.ny.file?t=l.r.file(i.pD(c(e))).path:(t=i.SA.dirname(e.path),e.authority&&t.length&&47!==t.charCodeAt(0)&&(console.error(`dirname("${e.toString})) resulted in a relative path`),t="/")),e.with({path:t})}normalizePath(e){if(!e.path.length)return e;let t;return t=e.scheme===o.ny.file?l.r.file(i.S8(c(e))).path:i.SA.normalize(e.path),e.with({path:t})}relativePath(e,t){if(e.scheme!==t.scheme||!f(e.authority,t.authority))return;if(e.scheme===o.ny.file){const n=i.V8(c(e),c(t));return a.uF?r.TH(n):n}let n=e.path||"/";const s=t.path||"/";if(this._ignorePathCasing(e)){let e=0;for(const t=Math.min(n.length,s.length);e<t&&(n.charCodeAt(e)===s.charCodeAt(e)||n.charAt(e).toLowerCase()===s.charAt(e).toLowerCase());e++);n=s.substr(0,e)+n.substr(e)}return i.SA.relative(n,s)}resolvePath(e,t){if(e.scheme===o.ny.file){const n=l.r.file(i.hd(c(e),t));return e.with({authority:n.authority,path:n.path})}return t=r.kb(t),e.with({path:i.SA.resolve(e.path,t)})}isAbsolutePath(e){return!!e.path&&"/"===e.path[0]}isEqualAuthority(e,t){return e===t||void 0!==e&&void 0!==t&&(0,s.Q_)(e,t)}hasTrailingPathSeparator(e,t=i.Vn){if(e.scheme===o.ny.file){const n=c(e);return n.length>r.Zn(n).length&&n[n.length-1]===t}{const t=e.path;return t.length>1&&47===t.charCodeAt(t.length-1)&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}}removeTrailingPathSeparator(e,t=i.Vn){return m(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e,t=i.Vn){let n=!1;if(e.scheme===o.ny.file){const o=c(e);n=void 0!==o&&o.length===r.Zn(o).length&&o[o.length-1]===t}else{t="/";const r=e.path;n=1===r.length&&47===r.charCodeAt(r.length-1)}return n||m(e,t)?e:e.with({path:e.path+"/"})}}const u=new d((()=>!1)),p=(new d((e=>e.scheme!==o.ny.file||!a.j9)),new d((e=>!0)),u.isEqual.bind(u),u.isEqualOrParent.bind(u),u.getComparisonKey.bind(u),u.basenameOrAuthority.bind(u),u.basename.bind(u)),f=(u.extname.bind(u),u.dirname.bind(u),u.joinPath.bind(u),u.normalizePath.bind(u),u.relativePath.bind(u),u.resolvePath.bind(u),u.isAbsolutePath.bind(u),u.isEqualAuthority.bind(u)),m=u.hasTrailingPathSeparator.bind(u);u.removeTrailingPathSeparator.bind(u),u.addTrailingPathSeparator.bind(u);var _;!function(e){e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=function(t){const n=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach((e=>{const[t,r]=e.split(":");t&&r&&n.set(t,r)}));const r=t.path.substring(0,t.path.indexOf(";"));return r&&n.set(e.META_DATA_MIME,r),n}}(_||(_={}))},9493:(e,t,n)=>{"use strict";n.d(t,{W:()=>a});var r=n(631);const o=Object.create(null);function i(e,t){if((0,r.Kg)(t)){const n=o[t];if(void 0===n)throw new Error(`${e} references an unknown codicon: ${t}`);t=n}return o[e]=t,{id:e}}const a={...{add:i("add",6e4),plus:i("plus",6e4),gistNew:i("gist-new",6e4),repoCreate:i("repo-create",6e4),lightbulb:i("lightbulb",60001),lightBulb:i("light-bulb",60001),repo:i("repo",60002),repoDelete:i("repo-delete",60002),gistFork:i("gist-fork",60003),repoForked:i("repo-forked",60003),gitPullRequest:i("git-pull-request",60004),gitPullRequestAbandoned:i("git-pull-request-abandoned",60004),recordKeys:i("record-keys",60005),keyboard:i("keyboard",60005),tag:i("tag",60006),gitPullRequestLabel:i("git-pull-request-label",60006),tagAdd:i("tag-add",60006),tagRemove:i("tag-remove",60006),person:i("person",60007),personFollow:i("person-follow",60007),personOutline:i("person-outline",60007),personFilled:i("person-filled",60007),gitBranch:i("git-branch",60008),gitBranchCreate:i("git-branch-create",60008),gitBranchDelete:i("git-branch-delete",60008),sourceControl:i("source-control",60008),mirror:i("mirror",60009),mirrorPublic:i("mirror-public",60009),star:i("star",60010),starAdd:i("star-add",60010),starDelete:i("star-delete",60010),starEmpty:i("star-empty",60010),comment:i("comment",60011),commentAdd:i("comment-add",60011),alert:i("alert",60012),warning:i("warning",60012),search:i("search",60013),searchSave:i("search-save",60013),logOut:i("log-out",60014),signOut:i("sign-out",60014),logIn:i("log-in",60015),signIn:i("sign-in",60015),eye:i("eye",60016),eyeUnwatch:i("eye-unwatch",60016),eyeWatch:i("eye-watch",60016),circleFilled:i("circle-filled",60017),primitiveDot:i("primitive-dot",60017),closeDirty:i("close-dirty",60017),debugBreakpoint:i("debug-breakpoint",60017),debugBreakpointDisabled:i("debug-breakpoint-disabled",60017),debugHint:i("debug-hint",60017),terminalDecorationSuccess:i("terminal-decoration-success",60017),primitiveSquare:i("primitive-square",60018),edit:i("edit",60019),pencil:i("pencil",60019),info:i("info",60020),issueOpened:i("issue-opened",60020),gistPrivate:i("gist-private",60021),gitForkPrivate:i("git-fork-private",60021),lock:i("lock",60021),mirrorPrivate:i("mirror-private",60021),close:i("close",60022),removeClose:i("remove-close",60022),x:i("x",60022),repoSync:i("repo-sync",60023),sync:i("sync",60023),clone:i("clone",60024),desktopDownload:i("desktop-download",60024),beaker:i("beaker",60025),microscope:i("microscope",60025),vm:i("vm",60026),deviceDesktop:i("device-desktop",60026),file:i("file",60027),fileText:i("file-text",60027),more:i("more",60028),ellipsis:i("ellipsis",60028),kebabHorizontal:i("kebab-horizontal",60028),mailReply:i("mail-reply",60029),reply:i("reply",60029),organization:i("organization",60030),organizationFilled:i("organization-filled",60030),organizationOutline:i("organization-outline",60030),newFile:i("new-file",60031),fileAdd:i("file-add",60031),newFolder:i("new-folder",60032),fileDirectoryCreate:i("file-directory-create",60032),trash:i("trash",60033),trashcan:i("trashcan",60033),history:i("history",60034),clock:i("clock",60034),folder:i("folder",60035),fileDirectory:i("file-directory",60035),symbolFolder:i("symbol-folder",60035),logoGithub:i("logo-github",60036),markGithub:i("mark-github",60036),github:i("github",60036),terminal:i("terminal",60037),console:i("console",60037),repl:i("repl",60037),zap:i("zap",60038),symbolEvent:i("symbol-event",60038),error:i("error",60039),stop:i("stop",60039),variable:i("variable",60040),symbolVariable:i("symbol-variable",60040),array:i("array",60042),symbolArray:i("symbol-array",60042),symbolModule:i("symbol-module",60043),symbolPackage:i("symbol-package",60043),symbolNamespace:i("symbol-namespace",60043),symbolObject:i("symbol-object",60043),symbolMethod:i("symbol-method",60044),symbolFunction:i("symbol-function",60044),symbolConstructor:i("symbol-constructor",60044),symbolBoolean:i("symbol-boolean",60047),symbolNull:i("symbol-null",60047),symbolNumeric:i("symbol-numeric",60048),symbolNumber:i("symbol-number",60048),symbolStructure:i("symbol-structure",60049),symbolStruct:i("symbol-struct",60049),symbolParameter:i("symbol-parameter",60050),symbolTypeParameter:i("symbol-type-parameter",60050),symbolKey:i("symbol-key",60051),symbolText:i("symbol-text",60051),symbolReference:i("symbol-reference",60052),goToFile:i("go-to-file",60052),symbolEnum:i("symbol-enum",60053),symbolValue:i("symbol-value",60053),symbolRuler:i("symbol-ruler",60054),symbolUnit:i("symbol-unit",60054),activateBreakpoints:i("activate-breakpoints",60055),archive:i("archive",60056),arrowBoth:i("arrow-both",60057),arrowDown:i("arrow-down",60058),arrowLeft:i("arrow-left",60059),arrowRight:i("arrow-right",60060),arrowSmallDown:i("arrow-small-down",60061),arrowSmallLeft:i("arrow-small-left",60062),arrowSmallRight:i("arrow-small-right",60063),arrowSmallUp:i("arrow-small-up",60064),arrowUp:i("arrow-up",60065),bell:i("bell",60066),bold:i("bold",60067),book:i("book",60068),bookmark:i("bookmark",60069),debugBreakpointConditionalUnverified:i("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:i("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:i("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:i("debug-breakpoint-data-unverified",60072),debugBreakpointData:i("debug-breakpoint-data",60073),debugBreakpointDataDisabled:i("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:i("debug-breakpoint-log-unverified",60074),debugBreakpointLog:i("debug-breakpoint-log",60075),debugBreakpointLogDisabled:i("debug-breakpoint-log-disabled",60075),briefcase:i("briefcase",60076),broadcast:i("broadcast",60077),browser:i("browser",60078),bug:i("bug",60079),calendar:i("calendar",60080),caseSensitive:i("case-sensitive",60081),check:i("check",60082),checklist:i("checklist",60083),chevronDown:i("chevron-down",60084),chevronLeft:i("chevron-left",60085),chevronRight:i("chevron-right",60086),chevronUp:i("chevron-up",60087),chromeClose:i("chrome-close",60088),chromeMaximize:i("chrome-maximize",60089),chromeMinimize:i("chrome-minimize",60090),chromeRestore:i("chrome-restore",60091),circleOutline:i("circle-outline",60092),circle:i("circle",60092),debugBreakpointUnverified:i("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:i("terminal-decoration-incomplete",60092),circleSlash:i("circle-slash",60093),circuitBoard:i("circuit-board",60094),clearAll:i("clear-all",60095),clippy:i("clippy",60096),closeAll:i("close-all",60097),cloudDownload:i("cloud-download",60098),cloudUpload:i("cloud-upload",60099),code:i("code",60100),collapseAll:i("collapse-all",60101),colorMode:i("color-mode",60102),commentDiscussion:i("comment-discussion",60103),creditCard:i("credit-card",60105),dash:i("dash",60108),dashboard:i("dashboard",60109),database:i("database",60110),debugContinue:i("debug-continue",60111),debugDisconnect:i("debug-disconnect",60112),debugPause:i("debug-pause",60113),debugRestart:i("debug-restart",60114),debugStart:i("debug-start",60115),debugStepInto:i("debug-step-into",60116),debugStepOut:i("debug-step-out",60117),debugStepOver:i("debug-step-over",60118),debugStop:i("debug-stop",60119),debug:i("debug",60120),deviceCameraVideo:i("device-camera-video",60121),deviceCamera:i("device-camera",60122),deviceMobile:i("device-mobile",60123),diffAdded:i("diff-added",60124),diffIgnored:i("diff-ignored",60125),diffModified:i("diff-modified",60126),diffRemoved:i("diff-removed",60127),diffRenamed:i("diff-renamed",60128),diff:i("diff",60129),diffSidebyside:i("diff-sidebyside",60129),discard:i("discard",60130),editorLayout:i("editor-layout",60131),emptyWindow:i("empty-window",60132),exclude:i("exclude",60133),extensions:i("extensions",60134),eyeClosed:i("eye-closed",60135),fileBinary:i("file-binary",60136),fileCode:i("file-code",60137),fileMedia:i("file-media",60138),filePdf:i("file-pdf",60139),fileSubmodule:i("file-submodule",60140),fileSymlinkDirectory:i("file-symlink-directory",60141),fileSymlinkFile:i("file-symlink-file",60142),fileZip:i("file-zip",60143),files:i("files",60144),filter:i("filter",60145),flame:i("flame",60146),foldDown:i("fold-down",60147),foldUp:i("fold-up",60148),fold:i("fold",60149),folderActive:i("folder-active",60150),folderOpened:i("folder-opened",60151),gear:i("gear",60152),gift:i("gift",60153),gistSecret:i("gist-secret",60154),gist:i("gist",60155),gitCommit:i("git-commit",60156),gitCompare:i("git-compare",60157),compareChanges:i("compare-changes",60157),gitMerge:i("git-merge",60158),githubAction:i("github-action",60159),githubAlt:i("github-alt",60160),globe:i("globe",60161),grabber:i("grabber",60162),graph:i("graph",60163),gripper:i("gripper",60164),heart:i("heart",60165),home:i("home",60166),horizontalRule:i("horizontal-rule",60167),hubot:i("hubot",60168),inbox:i("inbox",60169),issueReopened:i("issue-reopened",60171),issues:i("issues",60172),italic:i("italic",60173),jersey:i("jersey",60174),json:i("json",60175),kebabVertical:i("kebab-vertical",60176),key:i("key",60177),law:i("law",60178),lightbulbAutofix:i("lightbulb-autofix",60179),linkExternal:i("link-external",60180),link:i("link",60181),listOrdered:i("list-ordered",60182),listUnordered:i("list-unordered",60183),liveShare:i("live-share",60184),loading:i("loading",60185),location:i("location",60186),mailRead:i("mail-read",60187),mail:i("mail",60188),markdown:i("markdown",60189),megaphone:i("megaphone",60190),mention:i("mention",60191),milestone:i("milestone",60192),gitPullRequestMilestone:i("git-pull-request-milestone",60192),mortarBoard:i("mortar-board",60193),move:i("move",60194),multipleWindows:i("multiple-windows",60195),mute:i("mute",60196),noNewline:i("no-newline",60197),note:i("note",60198),octoface:i("octoface",60199),openPreview:i("open-preview",60200),package:i("package",60201),paintcan:i("paintcan",60202),pin:i("pin",60203),play:i("play",60204),run:i("run",60204),plug:i("plug",60205),preserveCase:i("preserve-case",60206),preview:i("preview",60207),project:i("project",60208),pulse:i("pulse",60209),question:i("question",60210),quote:i("quote",60211),radioTower:i("radio-tower",60212),reactions:i("reactions",60213),references:i("references",60214),refresh:i("refresh",60215),regex:i("regex",60216),remoteExplorer:i("remote-explorer",60217),remote:i("remote",60218),remove:i("remove",60219),replaceAll:i("replace-all",60220),replace:i("replace",60221),repoClone:i("repo-clone",60222),repoForcePush:i("repo-force-push",60223),repoPull:i("repo-pull",60224),repoPush:i("repo-push",60225),report:i("report",60226),requestChanges:i("request-changes",60227),rocket:i("rocket",60228),rootFolderOpened:i("root-folder-opened",60229),rootFolder:i("root-folder",60230),rss:i("rss",60231),ruby:i("ruby",60232),saveAll:i("save-all",60233),saveAs:i("save-as",60234),save:i("save",60235),screenFull:i("screen-full",60236),screenNormal:i("screen-normal",60237),searchStop:i("search-stop",60238),server:i("server",60240),settingsGear:i("settings-gear",60241),settings:i("settings",60242),shield:i("shield",60243),smiley:i("smiley",60244),sortPrecedence:i("sort-precedence",60245),splitHorizontal:i("split-horizontal",60246),splitVertical:i("split-vertical",60247),squirrel:i("squirrel",60248),starFull:i("star-full",60249),starHalf:i("star-half",60250),symbolClass:i("symbol-class",60251),symbolColor:i("symbol-color",60252),symbolConstant:i("symbol-constant",60253),symbolEnumMember:i("symbol-enum-member",60254),symbolField:i("symbol-field",60255),symbolFile:i("symbol-file",60256),symbolInterface:i("symbol-interface",60257),symbolKeyword:i("symbol-keyword",60258),symbolMisc:i("symbol-misc",60259),symbolOperator:i("symbol-operator",60260),symbolProperty:i("symbol-property",60261),wrench:i("wrench",60261),wrenchSubaction:i("wrench-subaction",60261),symbolSnippet:i("symbol-snippet",60262),tasklist:i("tasklist",60263),telescope:i("telescope",60264),textSize:i("text-size",60265),threeBars:i("three-bars",60266),thumbsdown:i("thumbsdown",60267),thumbsup:i("thumbsup",60268),tools:i("tools",60269),triangleDown:i("triangle-down",60270),triangleLeft:i("triangle-left",60271),triangleRight:i("triangle-right",60272),triangleUp:i("triangle-up",60273),twitter:i("twitter",60274),unfold:i("unfold",60275),unlock:i("unlock",60276),unmute:i("unmute",60277),unverified:i("unverified",60278),verified:i("verified",60279),versions:i("versions",60280),vmActive:i("vm-active",60281),vmOutline:i("vm-outline",60282),vmRunning:i("vm-running",60283),watch:i("watch",60284),whitespace:i("whitespace",60285),wholeWord:i("whole-word",60286),window:i("window",60287),wordWrap:i("word-wrap",60288),zoomIn:i("zoom-in",60289),zoomOut:i("zoom-out",60290),listFilter:i("list-filter",60291),listFlat:i("list-flat",60292),listSelection:i("list-selection",60293),selection:i("selection",60293),listTree:i("list-tree",60294),debugBreakpointFunctionUnverified:i("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:i("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:i("debug-breakpoint-function-disabled",60296),debugStackframeActive:i("debug-stackframe-active",60297),circleSmallFilled:i("circle-small-filled",60298),debugStackframeDot:i("debug-stackframe-dot",60298),terminalDecorationMark:i("terminal-decoration-mark",60298),debugStackframe:i("debug-stackframe",60299),debugStackframeFocused:i("debug-stackframe-focused",60299),debugBreakpointUnsupported:i("debug-breakpoint-unsupported",60300),symbolString:i("symbol-string",60301),debugReverseContinue:i("debug-reverse-continue",60302),debugStepBack:i("debug-step-back",60303),debugRestartFrame:i("debug-restart-frame",60304),debugAlt:i("debug-alt",60305),callIncoming:i("call-incoming",60306),callOutgoing:i("call-outgoing",60307),menu:i("menu",60308),expandAll:i("expand-all",60309),feedback:i("feedback",60310),gitPullRequestReviewer:i("git-pull-request-reviewer",60310),groupByRefType:i("group-by-ref-type",60311),ungroupByRefType:i("ungroup-by-ref-type",60312),account:i("account",60313),gitPullRequestAssignee:i("git-pull-request-assignee",60313),bellDot:i("bell-dot",60314),debugConsole:i("debug-console",60315),library:i("library",60316),output:i("output",60317),runAll:i("run-all",60318),syncIgnored:i("sync-ignored",60319),pinned:i("pinned",60320),githubInverted:i("github-inverted",60321),serverProcess:i("server-process",60322),serverEnvironment:i("server-environment",60323),pass:i("pass",60324),issueClosed:i("issue-closed",60324),stopCircle:i("stop-circle",60325),playCircle:i("play-circle",60326),record:i("record",60327),debugAltSmall:i("debug-alt-small",60328),vmConnect:i("vm-connect",60329),cloud:i("cloud",60330),merge:i("merge",60331),export:i("export",60332),graphLeft:i("graph-left",60333),magnet:i("magnet",60334),notebook:i("notebook",60335),redo:i("redo",60336),checkAll:i("check-all",60337),pinnedDirty:i("pinned-dirty",60338),passFilled:i("pass-filled",60339),circleLargeFilled:i("circle-large-filled",60340),circleLarge:i("circle-large",60341),circleLargeOutline:i("circle-large-outline",60341),combine:i("combine",60342),gather:i("gather",60342),table:i("table",60343),variableGroup:i("variable-group",60344),typeHierarchy:i("type-hierarchy",60345),typeHierarchySub:i("type-hierarchy-sub",60346),typeHierarchySuper:i("type-hierarchy-super",60347),gitPullRequestCreate:i("git-pull-request-create",60348),runAbove:i("run-above",60349),runBelow:i("run-below",60350),notebookTemplate:i("notebook-template",60351),debugRerun:i("debug-rerun",60352),workspaceTrusted:i("workspace-trusted",60353),workspaceUntrusted:i("workspace-untrusted",60354),workspaceUnknown:i("workspace-unknown",60355),terminalCmd:i("terminal-cmd",60356),terminalDebian:i("terminal-debian",60357),terminalLinux:i("terminal-linux",60358),terminalPowershell:i("terminal-powershell",60359),terminalTmux:i("terminal-tmux",60360),terminalUbuntu:i("terminal-ubuntu",60361),terminalBash:i("terminal-bash",60362),arrowSwap:i("arrow-swap",60363),copy:i("copy",60364),personAdd:i("person-add",60365),filterFilled:i("filter-filled",60366),wand:i("wand",60367),debugLineByLine:i("debug-line-by-line",60368),inspect:i("inspect",60369),layers:i("layers",60370),layersDot:i("layers-dot",60371),layersActive:i("layers-active",60372),compass:i("compass",60373),compassDot:i("compass-dot",60374),compassActive:i("compass-active",60375),azure:i("azure",60376),issueDraft:i("issue-draft",60377),gitPullRequestClosed:i("git-pull-request-closed",60378),gitPullRequestDraft:i("git-pull-request-draft",60379),debugAll:i("debug-all",60380),debugCoverage:i("debug-coverage",60381),runErrors:i("run-errors",60382),folderLibrary:i("folder-library",60383),debugContinueSmall:i("debug-continue-small",60384),beakerStop:i("beaker-stop",60385),graphLine:i("graph-line",60386),graphScatter:i("graph-scatter",60387),pieChart:i("pie-chart",60388),bracket:i("bracket",60175),bracketDot:i("bracket-dot",60389),bracketError:i("bracket-error",60390),lockSmall:i("lock-small",60391),azureDevops:i("azure-devops",60392),verifiedFilled:i("verified-filled",60393),newline:i("newline",60394),layout:i("layout",60395),layoutActivitybarLeft:i("layout-activitybar-left",60396),layoutActivitybarRight:i("layout-activitybar-right",60397),layoutPanelLeft:i("layout-panel-left",60398),layoutPanelCenter:i("layout-panel-center",60399),layoutPanelJustify:i("layout-panel-justify",60400),layoutPanelRight:i("layout-panel-right",60401),layoutPanel:i("layout-panel",60402),layoutSidebarLeft:i("layout-sidebar-left",60403),layoutSidebarRight:i("layout-sidebar-right",60404),layoutStatusbar:i("layout-statusbar",60405),layoutMenubar:i("layout-menubar",60406),layoutCentered:i("layout-centered",60407),target:i("target",60408),indent:i("indent",60409),recordSmall:i("record-small",60410),errorSmall:i("error-small",60411),terminalDecorationError:i("terminal-decoration-error",60411),arrowCircleDown:i("arrow-circle-down",60412),arrowCircleLeft:i("arrow-circle-left",60413),arrowCircleRight:i("arrow-circle-right",60414),arrowCircleUp:i("arrow-circle-up",60415),layoutSidebarRightOff:i("layout-sidebar-right-off",60416),layoutPanelOff:i("layout-panel-off",60417),layoutSidebarLeftOff:i("layout-sidebar-left-off",60418),blank:i("blank",60419),heartFilled:i("heart-filled",60420),map:i("map",60421),mapHorizontal:i("map-horizontal",60421),foldHorizontal:i("fold-horizontal",60421),mapFilled:i("map-filled",60422),mapHorizontalFilled:i("map-horizontal-filled",60422),foldHorizontalFilled:i("fold-horizontal-filled",60422),circleSmall:i("circle-small",60423),bellSlash:i("bell-slash",60424),bellSlashDot:i("bell-slash-dot",60425),commentUnresolved:i("comment-unresolved",60426),gitPullRequestGoToChanges:i("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:i("git-pull-request-new-changes",60428),searchFuzzy:i("search-fuzzy",60429),commentDraft:i("comment-draft",60430),send:i("send",60431),sparkle:i("sparkle",60432),insert:i("insert",60433),mic:i("mic",60434),thumbsdownFilled:i("thumbsdown-filled",60435),thumbsupFilled:i("thumbsup-filled",60436),coffee:i("coffee",60437),snake:i("snake",60438),game:i("game",60439),vr:i("vr",60440),chip:i("chip",60441),piano:i("piano",60442),music:i("music",60443),micFilled:i("mic-filled",60444),repoFetch:i("repo-fetch",60445),copilot:i("copilot",60446),lightbulbSparkle:i("lightbulb-sparkle",60447),robot:i("robot",60448),sparkleFilled:i("sparkle-filled",60449),diffSingle:i("diff-single",60450),diffMultiple:i("diff-multiple",60451),surroundWith:i("surround-with",60452),share:i("share",60453),gitStash:i("git-stash",60454),gitStashApply:i("git-stash-apply",60455),gitStashPop:i("git-stash-pop",60456),vscode:i("vscode",60457),vscodeInsiders:i("vscode-insiders",60458),codeOss:i("code-oss",60459),runCoverage:i("run-coverage",60460),runAllCoverage:i("run-all-coverage",60461),coverage:i("coverage",60462),githubProject:i("github-project",60463),mapVertical:i("map-vertical",60464),foldVertical:i("fold-vertical",60464),mapVerticalFilled:i("map-vertical-filled",60465),foldVerticalFilled:i("fold-vertical-filled",60465),goToSearch:i("go-to-search",60466),percentage:i("percentage",60467),sortPercentage:i("sort-percentage",60467),attach:i("attach",60468)},...{dialogError:i("dialog-error","error"),dialogWarning:i("dialog-warning","warning"),dialogInfo:i("dialog-info","info"),dialogClose:i("dialog-close","close"),treeItemExpanded:i("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:i("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:i("tree-filter-on-type-off","list-selection"),treeFilterClear:i("tree-filter-clear","close"),treeItemLoading:i("tree-item-loading","loading"),menuSelection:i("menu-selection","check"),menuSubmenu:i("menu-submenu","chevron-right"),menuBarMore:i("menubar-more","more"),scrollbarButtonLeft:i("scrollbar-button-left","triangle-left"),scrollbarButtonRight:i("scrollbar-button-right","triangle-right"),scrollbarButtonUp:i("scrollbar-button-up","triangle-up"),scrollbarButtonDown:i("scrollbar-button-down","triangle-down"),toolBarMore:i("toolbar-more","more"),quickInputBack:i("quick-input-back","arrow-left"),dropDownButton:i("drop-down-button",60084),symbolCustomColor:i("symbol-customcolor",60252),exportIcon:i("export",60332),workspaceUnspecified:i("workspace-unspecified",60355),newLine:i("newline",60394),thumbsDownFilled:i("thumbsdown-filled",60435),thumbsUpFilled:i("thumbsup-filled",60436),gitFetch:i("git-fetch",60445),lightbulbSparkleAutofix:i("lightbulb-sparkle-autofix",60447),debugBreakpointPending:i("debug-breakpoint-pending",60377)}}},9861:(e,t,n)=>{"use strict";function r(e,t,n=(e,t)=>e===t){if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(let r=0,o=e.length;r<o;r++)if(!n(e[r],t[r]))return!1;return!0}function*o(e,t){let n,r;for(const o of e)void 0!==r&&t(r,o)?n.push(o):(n&&(yield n),n=[o]),r=o;n&&(yield n)}function i(e,t){for(let n=0;n<=e.length;n++)t(0===n?void 0:e[n-1],n===e.length?void 0:e[n])}function a(e,t){for(let n=0;n<e.length;n++)t(0===n?void 0:e[n-1],e[n],n+1===e.length?void 0:e[n+1])}function s(e,t=e=>e){const n=new Set;return e.filter((e=>{const r=t(e);return!n.has(r)&&(n.add(r),!0)}))}function l(e,t){return e.length>0?e[0]:t}function c(e,t,n){const r=e.slice(0,t),o=e.slice(t);return r.concat(n,o)}function d(e,t){for(const n of t)e.push(n)}var u;function p(e,t){return(n,r)=>t(e(n),e(r))}n.d(t,{E4:()=>d,Fy:()=>l,Hw:()=>m,U9:()=>f,VE:()=>p,aI:()=>r,c1:()=>h,dM:()=>s,j3:()=>_,kj:()=>a,n:()=>o,nK:()=>c,pN:()=>i}),function(e){e.isLessThan=function(e){return e<0},e.isLessThanOrEqual=function(e){return e<=0},e.isGreaterThan=function(e){return e>0},e.isNeitherLessOrGreaterThan=function(e){return 0===e},e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0}(u||(u={}));const f=(e,t)=>e-t;function m(e){return(t,n)=>-e(t,n)}class _{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t<this.items.length&&e(this.items[t]);)t++;const n=t===this.firstIdx?null:this.items.slice(this.firstIdx,t);return this.firstIdx=t,n}takeFromEndWhile(e){let t=this.lastIdx;for(;t>=0&&e(this.items[t]);)t--;const n=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,n}peek(){if(0!==this.length)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class h{static{this.empty=new h((e=>{}))}constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate((t=>(e.push(t),!0))),e}filter(e){return new h((t=>this.iterate((n=>!e(n)||t(n)))))}map(e){return new h((t=>this.iterate((n=>t(e(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||u.isGreaterThan(e(r,t)))&&(n=!1,t=r),!0))),t}}},9908:(e,t,n)=>{"use strict";n.r(t),n.d(t,{clearPlatformLanguageAssociations:()=>m,getLanguageIds:()=>_,registerPlatformLanguageAssociation:()=>f});var r=n(6958),o=n(1939),i=n(6456),a=n(8821),s=n(9403),l=n(1508),c=n(3941);let d=[],u=[],p=[];function f(e,t=!1){!function(e,t,n){const o=function(e,t){return{id:e.id,mime:e.mime,filename:e.filename,extension:e.extension,filepattern:e.filepattern,firstline:e.firstline,userConfigured:t,filenameLowercase:e.filename?e.filename.toLowerCase():void 0,extensionLowercase:e.extension?e.extension.toLowerCase():void 0,filepatternLowercase:e.filepattern?(0,r.qg)(e.filepattern.toLowerCase()):void 0,filepatternOnPath:!!e.filepattern&&e.filepattern.indexOf(a.SA.sep)>=0}}(e,t);d.push(o),o.userConfigured?p.push(o):u.push(o);n&&!o.userConfigured&&d.forEach((e=>{e.mime===o.mime||e.userConfigured||(o.extension&&e.extension===o.extension&&console.warn(`Overwriting extension <<${o.extension}>> to now point to mime <<${o.mime}>>`),o.filename&&e.filename===o.filename&&console.warn(`Overwriting filename <<${o.filename}>> to now point to mime <<${o.mime}>>`),o.filepattern&&e.filepattern===o.filepattern&&console.warn(`Overwriting filepattern <<${o.filepattern}>> to now point to mime <<${o.mime}>>`),o.firstline&&e.firstline===o.firstline&&console.warn(`Overwriting firstline <<${o.firstline}>> to now point to mime <<${o.mime}>>`))}))}(e,!1,t)}function m(){d=d.filter((e=>e.userConfigured)),u=[]}function _(e,t){return function(e,t){let n;if(e)switch(e.scheme){case i.ny.file:n=e.fsPath;break;case i.ny.data:n=s.B6.parseMetaData(e).get(s.B6.META_DATA_LABEL);break;case i.ny.vscodeNotebookCell:n=void 0;break;default:n=e.path}if(!n)return[{id:"unknown",mime:o.K.unknown}];n=n.toLowerCase();const r=(0,a.P8)(n),f=h(n,r,p);if(f)return[f,{id:c.vH,mime:o.K.text}];const m=h(n,r,u);if(m)return[m,{id:c.vH,mime:o.K.text}];if(t){const e=function(e){(0,l.LU)(e)&&(e=e.substr(1));if(e.length>0)for(let t=d.length-1;t>=0;t--){const n=d[t];if(!n.firstline)continue;const r=e.match(n.firstline);if(r&&r.length>0)return n}return}(t);if(e)return[e,{id:c.vH,mime:o.K.text}]}return[{id:"unknown",mime:o.K.unknown}]}(e,t).map((e=>e.id))}function h(e,t,n){let r,o,i;for(let a=n.length-1;a>=0;a--){const s=n[a];if(t===s.filenameLowercase){r=s;break}if(s.filepattern&&(!o||s.filepattern.length>o.filepattern.length)){const n=s.filepatternOnPath?e:t;s.filepatternLowercase?.(n)&&(o=s)}s.extension&&(!i||s.extension.length>i.extension.length)&&t.endsWith(s.extensionLowercase)&&(i=s)}return r||(o||(i||void 0))}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.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.e=()=>Promise.resolve(),n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=n(1929),t=n(5196),r=n(718);let o=!1;function i(n){if(o)return;o=!0;const i=new e.SimpleWorkerServer((e=>{globalThis.postMessage(e)}),(e=>new t.EditorSimpleWorker(r.EditorWorkerHost.getChannel(e),n)));globalThis.onmessage=e=>{i.onmessage(e.data)}}globalThis.onmessage=e=>{o||i(null)};var a="/index.js",s=Object.defineProperty,l={};((e,t)=>{for(var n in t)s(e,n,{get:t[n],enumerable:!0})})(l,{EndOfLineState:()=>_,IndentStyle:()=>g,ScriptKind:()=>y,ScriptTarget:()=>v,TokenClass:()=>b,createClassifier:()=>p,createLanguageService:()=>f,displayPartsToString:()=>m,flattenDiagnosticMessageText:()=>h,typescript:()=>E});var c=void 0,d={exports:{}},u=(()=>{var e,t,r,o,i,s,l,u,p,f,m,_,h,g,y=Object.defineProperty,v=Object.getOwnPropertyNames,b=(e,t)=>function(){return e&&(t=(0,e[v(e)[0]])(e=0)),t},E=(e,t)=>{for(var n in t)y(e,n,{get:t[n],enumerable:!0})},S=b({"src/compiler/corePublic.ts"(){e="5.4",t="5.4.5",r=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(r||{})}});function T(e){return e?e.length:0}function x(e,t){if(e)for(let n=0;n<e.length;n++){const r=t(e[n],n);if(r)return r}}function A(e,t){if(e)for(let n=e.length-1;n>=0;n--){const r=t(e[n],n);if(r)return r}}function I(e,t){if(void 0!==e)for(let n=0;n<e.length;n++){const r=t(e[n],n);if(void 0!==r)return r}}function R(e,t){for(const n of e){const e=t(n);if(void 0!==e)return e}}function C(e,t,n){let r=n;if(e){let n=0;for(const o of e)r=t(r,o,n),n++}return r}function D(e,t,n){const r=[];In.assertEqual(e.length,t.length);for(let o=0;o<e.length;o++)r.push(n(e[o],t[o],o));return r}function N(e,t){if(e.length<=1)return e;const n=[];for(let r=0,o=e.length;r<o;r++)r&&n.push(t),n.push(e[r]);return n}function M(e,t){if(e)for(let n=0;n<e.length;n++)if(!t(e[n],n))return!1;return!0}function L(e,t,n){if(void 0!==e)for(let r=n??0;r<e.length;r++){const n=e[r];if(t(n,r))return n}}function k(e,t,n){if(void 0!==e)for(let r=n??e.length-1;r>=0;r--){const n=e[r];if(t(n,r))return n}}function P(e,t,n){if(void 0===e)return-1;for(let r=n??0;r<e.length;r++)if(t(e[r],r))return r;return-1}function w(e,t,n){if(void 0===e)return-1;for(let r=n??e.length-1;r>=0;r--)if(t(e[r],r))return r;return-1}function O(e,t){for(let n=0;n<e.length;n++){const r=t(e[n],n);if(r)return r}return In.fail()}function F(e,t,n=kt){if(e)for(const r of e)if(n(r,t))return!0;return!1}function W(e,t,n=kt){return e.length===t.length&&e.every(((e,r)=>n(e,t[r])))}function z(e,t,n){for(let r=n||0;r<e.length;r++)if(F(t,e.charCodeAt(r)))return r;return-1}function B(e,t){let n=0;if(e)for(let r=0;r<e.length;r++){t(e[r],r)&&n++}return n}function G(e,t){if(e){const n=e.length;let r=0;for(;r<n&&t(e[r]);)r++;if(r<n){const o=e.slice(0,r);for(r++;r<n;){const n=e[r];t(n)&&o.push(n),r++}return o}}return e}function j(e,t){let n=0;for(let r=0;r<e.length;r++)t(e[r],r,e)&&(e[n]=e[r],n++);e.length=n}function V(e){e.length=0}function U(e,t){let n;if(e){n=[];for(let r=0;r<e.length;r++)n.push(t(e[r],r))}return n}function*H(e,t){for(const n of e)yield t(n)}function K(e,t){if(e)for(let n=0;n<e.length;n++){const r=e[n],o=t(r,n);if(r!==o){const r=e.slice(0,n);for(r.push(o),n++;n<e.length;n++)r.push(t(e[n],n));return r}}return e}function q(e){const t=[];for(const n of e)n&&(mt(n)?xe(t,n):t.push(n));return t}function J(e,t){let n;if(e)for(let r=0;r<e.length;r++){const o=t(e[r],r);o&&(n=mt(o)?xe(n,o):Ee(n,o))}return n||o}function X(e,t){const n=[];if(e)for(let r=0;r<e.length;r++){const o=t(e[r],r);o&&(mt(o)?xe(n,o):n.push(o))}return n}function*$(e,t){for(const n of e){const e=t(n);e&&(yield*e)}}function Y(e,t){let n;if(e)for(let r=0;r<e.length;r++){const o=e[r],i=t(o,r);(n||o!==i||mt(i))&&(n||(n=e.slice(0,r)),mt(i)?xe(n,i):n.push(i))}return n||e}function Q(e,t){const n=[];for(let r=0;r<e.length;r++){const o=t(e[r],r);if(void 0===o)return;n.push(o)}return n}function Z(e,t){const n=[];if(e)for(let r=0;r<e.length;r++){const o=t(e[r],r);void 0!==o&&n.push(o)}return n}function*ee(e,t){for(const n of e){const e=t(n);void 0!==e&&(yield e)}}function te(e,t){if(!e)return;const n=new Map;return e.forEach(((e,r)=>{const o=t(r,e);if(void 0!==o){const[e,t]=o;void 0!==e&&void 0!==t&&n.set(e,t)}})),n}function ne(e,t,n){if(e.has(t))return e.get(t);const r=n();return e.set(t,r),r}function re(e,t){return!e.has(t)&&(e.add(t),!0)}function*oe(e){yield e}function ie(e,t,n){let r;if(e){r=[];const o=e.length;let i,a,s=0,l=0;for(;s<o;){for(;l<o;){if(a=t(e[l],l),0===l)i=a;else if(a!==i)break;l++}if(s<l){const t=n(e.slice(s,l),i,s,l);t&&r.push(t),s=l}i=a,l++}}return r}function ae(e,t){if(!e)return;const n=new Map;return e.forEach(((e,r)=>{const[o,i]=t(r,e);n.set(o,i)})),n}function se(e,t){if(e){if(!t)return e.length>0;for(const n of e)if(t(n))return!0}return!1}function le(e,t,n){let r;for(let o=0;o<e.length;o++)t(e[o])?r=void 0===r?o:r:void 0!==r&&(n(r,o),r=void 0);void 0!==r&&n(r,e.length)}function ce(e,t){return se(t)?se(e)?[...e,...t]:t:e}function de(e,t){return t}function ue(e){return e.map(de)}function pe(e,t,n){return 0===e.length?[]:1===e.length?e.slice():n?function(e,t,n){const r=ue(e);Re(e,r,n);let o=e[r[0]];const i=[r[0]];for(let a=1;a<r.length;a++){const n=r[a],s=e[n];t(o,s)||(i.push(n),o=s)}return i.sort(),i.map((t=>e[t]))}(e,t,n):function(e,t){const n=[];for(const r of e)Ae(n,r,t);return n}(e,t)}function fe(){return[]}function me(e,t,n,r){if(0===e.length)return e.push(t),!0;const o=je(e,t,xt,n);return o<0?(e.splice(~o,0,t),!0):!!r&&(e.splice(o,0,t),!0)}function _e(e,t,n){return function(e,t){if(0===e.length)return o;let n=e[0];const r=[n];for(let o=1;o<e.length;o++){const i=e[o];switch(t(i,n)){case!0:case 0:continue;case-1:return In.fail("Array is unsorted.")}r.push(n=i)}return r}(Ce(e,t),n||t||jt)}function he(e,t){if(e.length<2)return!0;for(let n=1,r=e.length;n<r;n++)if(1===t(e[n-1],e[n]))return!1;return!0}function ge(e,t,n,r){let o=3;if(e.length<2)return o;let i=t(e[0]);for(let a=1,s=e.length;a<s&&0!==o;a++){const s=t(e[a]);1&o&&n(i,s)>0&&(o&=-2),2&o&&r(i,s)>0&&(o&=-3),i=s}return o}function ye(e,t,n=kt){if(!e||!t)return e===t;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r],r))return!1;return!0}function ve(e){let t;if(e)for(let n=0;n<e.length;n++){const r=e[n];!t&&r||(t||(t=e.slice(0,n)),r&&t.push(r))}return t||e}function be(e,t,n){if(!t||!e||0===t.length||0===e.length)return t;const r=[];e:for(let o=0,i=0;i<t.length;i++){i>0&&In.assertGreaterThanOrEqual(n(t[i],t[i-1]),0);t:for(const a=o;o<e.length;o++)switch(o>a&&In.assertGreaterThanOrEqual(n(e[o],e[o-1]),0),n(t[i],e[o])){case-1:r.push(t[i]);continue e;case 0:continue e;case 1:continue t}}return r}function Ee(e,t){return void 0===t?e:void 0===e?[t]:(e.push(t),e)}function Se(e,t){return void 0===e?t:void 0===t?e:mt(e)?mt(t)?ce(e,t):Ee(e,t):mt(t)?Ee(t,e):[e,t]}function Te(e,t){return t<0?e.length+t:t}function xe(e,t,n,r){if(void 0===t||0===t.length)return e;if(void 0===e)return t.slice(n,r);n=void 0===n?0:Te(t,n),r=void 0===r?t.length:Te(t,r);for(let o=n;o<r&&o<t.length;o++)void 0!==t[o]&&e.push(t[o]);return e}function Ae(e,t,n){return!F(e,t,n)&&(e.push(t),!0)}function Ie(e,t,n){return e?(Ae(e,t,n),e):[t]}function Re(e,t,n){t.sort(((t,r)=>n(e[t],e[r])||Ft(t,r)))}function Ce(e,t){return 0===e.length?e:e.slice().sort(t)}function*De(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function Ne(e,t){const n=ue(e);return Re(e,n,t),n.map((t=>e[t]))}function Me(e,t,n,r){for(;n<r;){if(e[n]!==t[n])return!1;n++}return!0}function Le(e){return void 0===e||0===e.length?void 0:e[0]}function ke(e){if(e)for(const t of e)return t}function Pe(e){return In.assert(0!==e.length),e[0]}function we(e){for(const t of e)return t;In.fail("iterator is empty")}function Oe(e){return void 0===e||0===e.length?void 0:e[e.length-1]}function Fe(e){return In.assert(0!==e.length),e[e.length-1]}function We(e){return e&&1===e.length?e[0]:void 0}function ze(e){return In.checkDefined(We(e))}function Be(e){return e&&1===e.length?e[0]:e}function Ge(e,t,n){const r=e.slice(0);return r[t]=n,r}function je(e,t,n,r,o){return Ve(e,n(t),n,r,o)}function Ve(e,t,n,r,o){if(!se(e))return-1;let i=o||0,a=e.length-1;for(;i<=a;){const o=i+(a-i>>1);switch(r(n(e[o],o),t)){case-1:i=o+1;break;case 0:return o;case 1:a=o-1}}return~i}function Ue(e,t,n,r,o){if(e&&e.length>0){const i=e.length;if(i>0){let a=void 0===r||r<0?0:r;const s=void 0===o||a+o>i-1?i-1:a+o;let l;for(arguments.length<=2?(l=e[a],a++):l=n;a<=s;)l=t(l,e[a],a),a++;return l}}return n}function He(e,t){return p.call(e,t)}function Ke(e,t){return p.call(e,t)?e[t]:void 0}function qe(e){const t=[];for(const n in e)p.call(e,n)&&t.push(n);return t}function Je(e){const t=[];do{const n=Object.getOwnPropertyNames(e);for(const e of n)Ae(t,e)}while(e=Object.getPrototypeOf(e));return t}function Xe(e){const t=[];for(const n in e)p.call(e,n)&&t.push(e[n]);return t}function $e(e,t){const n=new Array(e);for(let r=0;r<e;r++)n[r]=t(r);return n}function Ye(e,t){const n=[];for(const r of e)n.push(t?t(r):r);return n}function Qe(e,...t){for(const n of t)if(void 0!==n)for(const t in n)He(n,t)&&(e[t]=n[t]);return e}function Ze(e,t,n=kt){if(e===t)return!0;if(!e||!t)return!1;for(const r in e)if(p.call(e,r)){if(!p.call(t,r))return!1;if(!n(e[r],t[r]))return!1}for(const r in t)if(p.call(t,r)&&!p.call(e,r))return!1;return!0}function et(e,t,n=xt){const r=new Map;for(const o of e){const e=t(o);void 0!==e&&r.set(e,n(o))}return r}function tt(e,t,n=xt){const r=[];for(const o of e)r[t(o)]=n(o);return r}function nt(e,t,n=xt){const r=ct();for(const o of e)r.add(t(o),n(o));return r}function rt(e,t,n=xt){return Ye(nt(e,t).values(),n)}function ot(e,t){const n={};if(e)for(const r of e){const e=`${t(r)}`;(n[e]??(n[e]=[])).push(r)}return n}function it(e){const t={};for(const n in e)p.call(e,n)&&(t[n]=e[n]);return t}function at(e,t){const n={};for(const r in t)p.call(t,r)&&(n[r]=t[r]);for(const r in e)p.call(e,r)&&(n[r]=e[r]);return n}function st(e,t){for(const n in t)p.call(t,n)&&(e[n]=t[n])}function lt(e,t){return t?t.bind(e):void 0}function ct(){const e=new Map;return e.add=dt,e.remove=ut,e}function dt(e,t){let n=this.get(e);return n?n.push(t):this.set(e,n=[t]),n}function ut(e,t){const n=this.get(e);n&&(on(n,t),n.length||this.delete(e))}function pt(e){const t=(null==e?void 0:e.slice())||[];let n=0;function r(){return n===t.length}return{enqueue:function(...e){t.push(...e)},dequeue:function(){if(r())throw new Error("Queue is empty");const e=t[n];if(t[n]=void 0,n++,n>100&&n>t.length>>1){const e=t.length-n;t.copyWithin(0,n),t.length=e,n=0}return e},isEmpty:r}}function ft(e,t){const n=new Map;let r=0;function*o(){for(const e of n.values())mt(e)?yield*e:yield e}const i={has(r){const o=e(r);if(!n.has(o))return!1;const i=n.get(o);if(!mt(i))return t(i,r);for(const e of i)if(t(e,r))return!0;return!1},add(o){const i=e(o);if(n.has(i)){const e=n.get(i);if(mt(e))F(e,o,t)||(e.push(o),r++);else{const a=e;t(a,o)||(n.set(i,[a,o]),r++)}}else n.set(i,o),r++;return this},delete(o){const i=e(o);if(!n.has(i))return!1;const a=n.get(i);if(mt(a)){for(let e=0;e<a.length;e++)if(t(a[e],o))return 1===a.length?n.delete(i):2===a.length?n.set(i,a[1-e]):rn(a,e),r--,!0}else{if(t(a,o))return n.delete(i),r--,!0}return!1},clear(){n.clear(),r=0},get size(){return r},forEach(e){for(const t of Ye(n.values()))if(mt(t))for(const n of t)e(n,n,i);else{e(t,t,i)}},keys:()=>o(),values:()=>o(),*entries(){for(const e of o())yield[e,e]},[Symbol.iterator]:()=>o(),[Symbol.toStringTag]:n[Symbol.toStringTag]};return i}function mt(e){return Array.isArray(e)}function _t(e){return mt(e)?e:[e]}function ht(e){return"string"===typeof e}function gt(e){return"number"===typeof e}function yt(e,t){return void 0!==e&&t(e)?e:void 0}function vt(e,t){return void 0!==e&&t(e)?e:In.fail(`Invalid cast. The supplied value ${e} did not pass the test '${In.getFunctionName(t)}'.`)}function bt(e){}function Et(){return!1}function St(){return!0}function Tt(){}function xt(e){return e}function At(e){return e.toLowerCase()}function It(e){return f.test(e)?e.replace(f,At):e}function Rt(){throw new Error("Not implemented")}function Ct(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function Dt(e){const t=new Map;return n=>{const r=`${typeof n}:${n}`;let o=t.get(r);return void 0!==o||t.has(r)||(o=e(n),t.set(r,o)),o}}function Nt(e){const t=new WeakMap;return n=>{let r=t.get(n);return void 0!==r||t.has(n)||(r=e(n),t.set(n,r)),r}}function Mt(e,t){return(...n)=>{let r=t.get(n);return void 0!==r||t.has(n)||(r=e(...n),t.set(n,r)),r}}function Lt(e,t,n,r,o){if(o){const e=[];for(let t=0;t<arguments.length;t++)e[t]=arguments[t];return t=>Ue(e,((e,t)=>t(e)),t)}return r?o=>r(n(t(e(o)))):n?r=>n(t(e(r))):t?n=>t(e(n)):e?t=>e(t):e=>e}function kt(e,t){return e===t}function Pt(e,t){return e===t||void 0!==e&&void 0!==t&&e.toUpperCase()===t.toUpperCase()}function wt(e,t){return kt(e,t)}function Ot(e,t){return e===t?0:void 0===e?-1:void 0===t?1:e<t?-1:1}function Ft(e,t){return Ot(e,t)}function Wt(e,t){return Ft(null==e?void 0:e.start,null==t?void 0:t.start)||Ft(null==e?void 0:e.length,null==t?void 0:t.length)}function zt(e,t){return Ue(e,((e,n)=>-1===t(e,n)?e:n))}function Bt(e,t){return e===t?0:void 0===e?-1:void 0===t?1:(e=e.toUpperCase())<(t=t.toUpperCase())?-1:e>t?1:0}function Gt(e,t){return e===t?0:void 0===e?-1:void 0===t?1:(e=e.toLowerCase())<(t=t.toLowerCase())?-1:e>t?1:0}function jt(e,t){return Ot(e,t)}function Vt(e){return e?Bt:jt}function Ut(){return g}function Ht(e){g!==e&&(g=e,h=void 0)}function Kt(e,t){return(h||(h=_(g)))(e,t)}function qt(e,t,n,r){return e===t?0:void 0===e?-1:void 0===t?1:r(e[n],t[n])}function Jt(e,t){return Ft(e?1:0,t?1:0)}function Xt(e,t,n){const r=Math.max(2,Math.floor(.34*e.length));let o,i=Math.floor(.4*e.length)+1;for(const a of t){const t=n(a);if(void 0!==t&&Math.abs(t.length-e.length)<=r){if(t===e)continue;if(t.length<3&&t.toLowerCase()!==e.toLowerCase())continue;const n=$t(e,t,i-.1);if(void 0===n)continue;In.assert(n<i),i=n,o=a}}return o}function $t(e,t,n){let r=new Array(t.length+1),o=new Array(t.length+1);const i=n+.01;for(let s=0;s<=t.length;s++)r[s]=s;for(let s=1;s<=e.length;s++){const a=e.charCodeAt(s-1),l=Math.ceil(s>n?s-n:1),c=Math.floor(t.length>n+s?n+s:t.length);o[0]=s;let d=s;for(let e=1;e<l;e++)o[e]=i;for(let n=l;n<=c;n++){const i=e[s-1].toLowerCase()===t[n-1].toLowerCase()?r[n-1]+.1:r[n-1]+2,l=a===t.charCodeAt(n-1)?r[n-1]:Math.min(r[n]+1,o[n-1]+1,i);o[n]=l,d=Math.min(d,l)}for(let e=c+1;e<=t.length;e++)o[e]=i;if(d>n)return;const u=r;r=o,o=u}const a=r[t.length];return a>n?void 0:a}function Yt(e,t,n){const r=e.length-t.length;return r>=0&&(n?Pt(e.slice(r),t):e.indexOf(t,r)===r)}function Qt(e,t){return Yt(e,t)?e.slice(0,e.length-t.length):e}function Zt(e,t){return Yt(e,t)?e.slice(0,e.length-t.length):void 0}function en(e){let t=e.length;for(let n=t-1;n>0;n--){let r=e.charCodeAt(n);if(r>=48&&r<=57)do{--n,r=e.charCodeAt(n)}while(n>0&&r>=48&&r<=57);else{if(!(n>4)||110!==r&&78!==r)break;if(--n,r=e.charCodeAt(n),105!==r&&73!==r)break;if(--n,r=e.charCodeAt(n),109!==r&&77!==r)break;--n,r=e.charCodeAt(n)}if(45!==r&&46!==r)break;t=n}return t===e.length?e:e.slice(0,t)}function tn(e,t){for(let n=0;n<e.length;n++)if(e[n]===t)return nn(e,n),!0;return!1}function nn(e,t){for(let n=t;n<e.length-1;n++)e[n]=e[n+1];e.pop()}function rn(e,t){e[t]=e[e.length-1],e.pop()}function on(e,t){return function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return rn(e,n),!0;return!1}(e,(e=>e===t))}function an(e){return e?xt:It}function sn({prefix:e,suffix:t}){return`${e}*${t}`}function ln(e,t){return In.assert(fn(e,t)),t.substring(e.prefix.length,t.length-e.suffix.length)}function cn(e,t,n){let r,o=-1;for(const i of e){const e=t(i);fn(e,n)&&e.prefix.length>o&&(o=e.prefix.length,r=i)}return r}function dn(e,t,n){return n?Pt(e.slice(0,t.length),t):0===e.lastIndexOf(t,0)}function un(e,t){return dn(e,t)?e.substr(t.length):e}function pn(e,t,n=xt){return dn(n(e),n(t))?e.substring(t.length):void 0}function fn({prefix:e,suffix:t},n){return n.length>=e.length+t.length&&dn(n,e)&&Yt(n,t)}function mn(e,t){return n=>e(n)&&t(n)}function _n(...e){return(...t)=>{let n;for(const r of e)if(n=r(...t),n)return n;return n}}function hn(e){return(...t)=>!e(...t)}function gn(e){}function yn(e){return void 0===e?void 0:[e]}function vn(e,t,n,r,o,i){i=i||bt;let a=0,s=0;const l=e.length,c=t.length;let d=!1;for(;a<l&&s<c;){const l=e[a],c=t[s],u=n(l,c);-1===u?(r(l),a++,d=!0):1===u?(o(c),s++,d=!0):(i(c,l),a++,s++)}for(;a<l;)r(e[a++]),d=!0;for(;s<c;)o(t[s++]),d=!0;return d}function bn(e){const t=[];return En(e,t,void 0,0),t}function En(e,t,n,r){for(const o of e[r]){let i;n?(i=n.slice(),i.push(o)):i=[o],r===e.length-1?t.push(i):En(e,t,i,r+1)}}function Sn(e,t){if(e){const n=e.length;let r=0;for(;r<n&&t(e[r]);)r++;return e.slice(0,r)}}function Tn(e,t){if(e){const n=e.length;let r=0;for(;r<n&&t(e[r]);)r++;return e.slice(r)}}function xn(){return"undefined"!==typeof process&&!!process.nextTick&&!process.browser&&"object"===typeof d}var An,In,Rn,Cn,Dn,Nn,Mn,Ln,kn,Pn,wn,On,Fn,Wn,zn,Bn,Gn=b({"src/compiler/core.ts"(){JJ(),o=[],i=new Map,s=new Set,l=(e=>(e[e.None=0]="None",e[e.CaseSensitive=1]="CaseSensitive",e[e.CaseInsensitive=2]="CaseInsensitive",e[e.Both=3]="Both",e))(l||{}),u=Array.prototype.at?(e,t)=>null==e?void 0:e.at(t):(e,t)=>{if(e&&(t=Te(e,t))<e.length)return e[t]},p=Object.prototype.hasOwnProperty,f=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_. ]+/g,m=(e=>(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(m||{}),_=(()=>function(e){const t=new Intl.Collator(e,{usage:"sort",sensitivity:"variant"}).compare;return(e,n)=>function(e,t,n){if(e===t)return 0;if(void 0===e)return-1;if(void 0===t)return 1;const r=n(e,t);return r<0?-1:r>0?1:0}(e,n,t)})()}}),jn=b({"src/compiler/debug.ts"(){JJ(),JJ(),An=(e=>(e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose",e))(An||{}),(e=>{let t=0;function n(t){return e.currentLogLevel<=t}function r(t,r){e.loggingHost&&n(t)&&e.loggingHost.log(t,r)}function o(e){r(3,e)}var i;e.currentLogLevel=2,e.isDebugging=!1,e.shouldLog=n,e.log=o,(i=o=e.log||(e.log={})).error=function(e){r(1,e)},i.warn=function(e){r(2,e)},i.log=function(e){r(3,e)},i.trace=function(e){r(4,e)};const a={};function s(e){return t>=e}function l(t,n){return!!s(t)||(a[n]={level:t,assertion:e[n]},e[n]=bt,!1)}function c(e,t){const n=new Error(e?`Debug Failure. ${e}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(n,t||c),n}function d(e,t,n,r){e||(t=t?`False expression: ${t}`:"False expression.",n&&(t+="\r\nVerbose Debug Information: "+("string"===typeof n?n:n())),c(t,r||d))}function u(e,t,n){void 0!==e&&null!==e||c(t,n||u)}function p(e,t,n){for(const r of e)u(r,t,n||p)}function f(e,t="Illegal value:",n){return c(`${t} ${"object"===typeof e&&He(e,"kind")&&He(e,"pos")?"SyntaxKind: "+y(e.kind):JSON.stringify(e)}`,n||f)}function m(e){}function _(e){if("function"!==typeof e)return"";if(He(e,"name"))return e.name;{const t=Function.prototype.toString.call(e),n=/^function\s+([\w$]+)\s*\(/.exec(t);return n?n[1]:""}}function h(e=0,t,n){const r=function(e){const t=g.get(e);if(t)return t;const n=[];for(const o in e){const t=e[o];"number"===typeof t&&n.push([t,o])}const r=Ne(n,((e,t)=>Ft(e[0],t[0])));return g.set(e,r),r}(t);if(0===e)return r.length>0&&0===r[0][0]?r[0][1]:"0";if(n){const t=[];let n=e;for(const[o,i]of r){if(o>e)break;0!==o&&o&e&&(t.push(i),n&=~o)}if(0===n)return t.join("|")}else for(const[o,i]of r)if(o===e)return i;return e.toString()}e.getAssertionLevel=function(){return t},e.setAssertionLevel=function(n){const r=t;if(t=n,n>r)for(const t of qe(a)){const r=a[t];void 0!==r&&e[t]!==r.assertion&&n>=r.level&&(e[t]=r,a[t]=void 0)}},e.shouldAssert=s,e.fail=c,e.failBadSyntaxKind=function e(t,n,r){return c(`${n||"Unexpected node."}\r\nNode ${y(t.kind)} was unexpected.`,r||e)},e.assert=d,e.assertEqual=function e(t,n,r,o,i){if(t!==n){c(`Expected ${t} === ${n}. ${r?o?`${r} ${o}`:r:""}`,i||e)}},e.assertLessThan=function e(t,n,r,o){t>=n&&c(`Expected ${t} < ${n}. ${r||""}`,o||e)},e.assertLessThanOrEqual=function e(t,n,r){t>n&&c(`Expected ${t} <= ${n}`,r||e)},e.assertGreaterThanOrEqual=function e(t,n,r){t<n&&c(`Expected ${t} >= ${n}`,r||e)},e.assertIsDefined=u,e.checkDefined=function e(t,n,r){return u(t,n,r||e),t},e.assertEachIsDefined=p,e.checkEachDefined=function e(t,n,r){return p(t,n,r||e),t},e.assertNever=f,e.assertEachNode=function e(t,n,r,o){l(1,"assertEachNode")&&d(void 0===n||M(t,n),r||"Unexpected node.",(()=>`Node array did not pass test '${_(n)}'.`),o||e)},e.assertNode=function e(t,n,r,o){l(1,"assertNode")&&d(void 0!==t&&(void 0===n||n(t)),r||"Unexpected node.",(()=>`Node ${y(null==t?void 0:t.kind)} did not pass test '${_(n)}'.`),o||e)},e.assertNotNode=function e(t,n,r,o){l(1,"assertNotNode")&&d(void 0===t||void 0===n||!n(t),r||"Unexpected node.",(()=>`Node ${y(t.kind)} should not have passed test '${_(n)}'.`),o||e)},e.assertOptionalNode=function e(t,n,r,o){l(1,"assertOptionalNode")&&d(void 0===n||void 0===t||n(t),r||"Unexpected node.",(()=>`Node ${y(null==t?void 0:t.kind)} did not pass test '${_(n)}'.`),o||e)},e.assertOptionalToken=function e(t,n,r,o){l(1,"assertOptionalToken")&&d(void 0===n||void 0===t||t.kind===n,r||"Unexpected node.",(()=>`Node ${y(null==t?void 0:t.kind)} was not a '${y(n)}' token.`),o||e)},e.assertMissingNode=function e(t,n,r){l(1,"assertMissingNode")&&d(void 0===t,n||"Unexpected node.",(()=>`Node ${y(t.kind)} was unexpected'.`),r||e)},e.type=m,e.getFunctionName=_,e.formatSymbol=function(e){return`{ name: ${Ll(e.escapedName)}; flags: ${T(e.flags)}; declarations: ${U(e.declarations,(e=>y(e.kind)))} }`},e.formatEnum=h;const g=new Map;function y(e){return h(e,Fr,!1)}function v(e){return h(e,Wr,!0)}function b(e){return h(e,zr,!0)}function E(e){return h(e,Ho,!0)}function S(e){return h(e,qo,!0)}function T(e){return h(e,lo,!0)}function x(e){return h(e,mo,!0)}function A(e){return h(e,So,!0)}function I(e){return h(e,_o,!0)}function R(e){return h(e,Ur,!0)}e.formatSyntaxKind=y,e.formatSnippetKind=function(e){return h(e,Ko,!1)},e.formatScriptKind=function(e){return h(e,zo,!1)},e.formatNodeFlags=v,e.formatModifierFlags=b,e.formatTransformFlags=E,e.formatEmitFlags=S,e.formatSymbolFlags=T,e.formatTypeFlags=x,e.formatSignatureFlags=A,e.formatObjectFlags=I,e.formatFlowFlags=R,e.formatRelationComparisonResult=function(e){return h(e,Gr,!0)},e.formatCheckMode=function(e){return h(e,Oz,!0)},e.formatSignatureCheckMode=function(e){return h(e,Fz,!0)},e.formatTypeFacts=function(e){return h(e,Pz,!0)};let C,N,L=!1;function k(e){"__debugFlowFlags"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value(){const e=2&this.flags?"FlowStart":4&this.flags?"FlowBranchLabel":8&this.flags?"FlowLoopLabel":16&this.flags?"FlowAssignment":32&this.flags?"FlowTrueCondition":64&this.flags?"FlowFalseCondition":128&this.flags?"FlowSwitchClause":256&this.flags?"FlowArrayMutation":512&this.flags?"FlowCall":1024&this.flags?"FlowReduceLabel":1&this.flags?"FlowUnreachable":"UnknownFlow",t=-2048&this.flags;return`${e}${t?` (${R(t)})`:""}`}},__debugFlowFlags:{get(){return h(this.flags,Ur,!0)}},__debugToString:{value(){return O(this)}}})}function P(e){"__tsDebuggerDisplay"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value:e=>`NodeArray ${e=String(e).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]")}`}})}e.attachFlowNodeDebugInfo=function(e){L&&("function"===typeof Object.setPrototypeOf?(C||(C=Object.create(Object.prototype),k(C)),Object.setPrototypeOf(e,C)):k(e))},e.attachNodeArrayDebugInfo=function(e){L&&("function"===typeof Object.setPrototypeOf?(N||(N=Object.create(Array.prototype),P(N)),Object.setPrototypeOf(e,N)):P(e))},e.enableDebugInfo=function(){if(L)return;const e=new WeakMap,t=new WeakMap;Object.defineProperties(Wp.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){const e=33554432&this.flags?"TransientSymbol":"Symbol",t=-33554433&this.flags;return`${e} '${wl(this)}'${t?` (${T(t)})`:""}`}},__debugFlags:{get(){return T(this.flags)}}}),Object.defineProperties(Wp.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){const e=67359327&this.flags?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:98304&this.flags?"NullableType":384&this.flags?`LiteralType ${JSON.stringify(this.value)}`:2048&this.flags?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:8192&this.flags?"UniqueESSymbolType":32&this.flags?"EnumType":1048576&this.flags?"UnionType":2097152&this.flags?"IntersectionType":4194304&this.flags?"IndexType":8388608&this.flags?"IndexedAccessType":16777216&this.flags?"ConditionalType":33554432&this.flags?"SubstitutionType":262144&this.flags?"TypeParameter":524288&this.flags?3&this.objectFlags?"InterfaceType":4&this.objectFlags?"TypeReference":8&this.objectFlags?"TupleType":16&this.objectFlags?"AnonymousType":32&this.objectFlags?"MappedType":1024&this.objectFlags?"ReverseMappedType":256&this.objectFlags?"EvolvingArrayType":"ObjectType":"Type",t=524288&this.flags?-1344&this.objectFlags:0;return`${e}${this.symbol?` '${wl(this.symbol)}'`:""}${t?` (${I(t)})`:""}`}},__debugFlags:{get(){return x(this.flags)}},__debugObjectFlags:{get(){return 524288&this.flags?I(this.objectFlags):""}},__debugTypeToString:{value(){let t=e.get(this);return void 0===t&&(t=this.checker.typeToString(this),e.set(this,t)),t}}}),Object.defineProperties(Wp.getSignatureConstructor().prototype,{__debugFlags:{get(){return A(this.flags)}},__debugSignatureToString:{value(){var e;return null==(e=this.checker)?void 0:e.signatureToString(this)}}});const n=[Wp.getNodeConstructor(),Wp.getIdentifierConstructor(),Wp.getTokenConstructor(),Wp.getSourceFileConstructor()];for(const r of n)He(r.prototype,"__debugKind")||Object.defineProperties(r.prototype,{__tsDebuggerDisplay:{value(){return`${ud(this)?"GeneratedIdentifier":nC(this)?`Identifier '${kl(this)}'`:rC(this)?`PrivateIdentifier '${kl(this)}'`:zR(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:FR(this)?`NumericLiteral ${this.text}`:WR(this)?`BigIntLiteral ${this.text}n`:vC(this)?"TypeParameterDeclaration":bC(this)?"ParameterDeclaration":RC(this)?"ConstructorDeclaration":CC(this)?"GetAccessorDeclaration":DC(this)?"SetAccessorDeclaration":NC(this)?"CallSignatureDeclaration":MC(this)?"ConstructSignatureDeclaration":LC(this)?"IndexSignatureDeclaration":kC(this)?"TypePredicateNode":PC(this)?"TypeReferenceNode":wC(this)?"FunctionTypeNode":OC(this)?"ConstructorTypeNode":FC(this)?"TypeQueryNode":WC(this)?"TypeLiteralNode":zC(this)?"ArrayTypeNode":BC(this)?"TupleTypeNode":jC(this)?"OptionalTypeNode":VC(this)?"RestTypeNode":UC(this)?"UnionTypeNode":HC(this)?"IntersectionTypeNode":KC(this)?"ConditionalTypeNode":qC(this)?"InferTypeNode":JC(this)?"ParenthesizedTypeNode":XC(this)?"ThisTypeNode":$C(this)?"TypeOperatorNode":YC(this)?"IndexedAccessTypeNode":QC(this)?"MappedTypeNode":ZC(this)?"LiteralTypeNode":GC(this)?"NamedTupleMember":eD(this)?"ImportTypeNode":y(this.kind)}${this.flags?` (${v(this.flags)})`:""}`}},__debugKind:{get(){return y(this.kind)}},__debugNodeFlags:{get(){return v(this.flags)}},__debugModifierFlags:{get(){return b(oE(this))}},__debugTransformFlags:{get(){return E(this.transformFlags)}},__debugIsParseTreeNode:{get(){return Dl(this)}},__debugEmitFlags:{get(){return S(Rm(this))}},__debugGetText:{value(e){if(Sv(this))return"";let n=t.get(this);if(void 0===n){const r=Nl(this),o=r&&Yf(r);n=o?Em(o,r,e):"",t.set(this,n)}return n}}});L=!0},e.formatVariance=function(e){const t=7&e;let n=0===t?"in out":3===t?"[bivariant]":2===t?"in":1===t?"out":4===t?"[independent]":"";return 8&e?n+=" (unmeasurable)":16&e&&(n+=" (unreliable)"),n};class w{__debugToString(){var e;switch(this.kind){case 3:return(null==(e=this.debugInfo)?void 0:e.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return D(this.sources,this.targets||U(this.sources,(()=>"any")),((e,t)=>`${e.__debugTypeToString()} -> ${"string"===typeof t?t:t.__debugTypeToString()}`)).join(", ");case 2:return D(this.sources,this.targets,((e,t)=>`${e.__debugTypeToString()} -> ${t().__debugTypeToString()}`)).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split("\n").join("\n ")}\nm2: ${this.mapper2.__debugToString().split("\n").join("\n ")}`;default:return f(this)}}}function O(e){let t,n=-1;function r(e){return e.id||(e.id=n,n--),e.id}var o;let i;var a;(o=t||(t={})).lr="\u2500",o.ud="\u2502",o.dr="\u256d",o.dl="\u256e",o.ul="\u256f",o.ur="\u2570",o.udr="\u251c",o.udl="\u2524",o.dlr="\u252c",o.ulr="\u2534",o.udlr="\u256b",(a=i||(i={}))[a.None=0]="None",a[a.Up=1]="Up",a[a.Down=2]="Down",a[a.Left=4]="Left",a[a.Right=8]="Right",a[a.UpDown=3]="UpDown",a[a.LeftRight=12]="LeftRight",a[a.UpLeft=5]="UpLeft",a[a.UpRight=9]="UpRight",a[a.DownLeft=6]="DownLeft",a[a.DownRight=10]="DownRight",a[a.UpDownLeft=7]="UpDownLeft",a[a.UpDownRight=11]="UpDownRight",a[a.UpLeftRight=13]="UpLeftRight",a[a.DownLeftRight=14]="DownLeftRight",a[a.UpDownLeftRight=15]="UpDownLeftRight",a[a.NoChildren=16]="NoChildren";const s=Object.create(null),l=[],c=[],d=_(e,new Set);for(const T of l)T.text=v(T.flowNode,T.circular),g(T);const u=function e(t){let n=0;for(const r of f(t))n=Math.max(n,e(r));return n+1}(d),p=function(e){const t=E(Array(e),0);for(const n of l)t[n.level]=Math.max(t[n.level],n.text.length);return t}(u);return function e(t,n){if(-1===t.lane){t.lane=n,t.endLane=n;const r=f(t);for(let o=0;o<r.length;o++){o>0&&n++;const i=r[o];e(i,n),i.endLane>t.endLane&&(n=i.endLane)}t.endLane=n}}(d,0),function(){const e=p.length,t=l.reduce(((e,t)=>Math.max(e,t.lane)),0)+1,n=E(Array(t),""),r=p.map((()=>Array(t))),o=p.map((()=>E(Array(t),0)));for(const a of l){r[a.level][a.lane]=a;const e=f(a);for(let n=0;n<e.length;n++){const t=e[n];let r=8;t.lane===a.lane&&(r|=4),n>0&&(r|=1),n<e.length-1&&(r|=2),o[a.level][t.lane]|=r}0===e.length&&(o[a.level][a.lane]|=16);const t=m(a);for(let n=0;n<t.length;n++){const e=t[n];let r=4;n>0&&(r|=1),n<t.length-1&&(r|=2),o[a.level-1][e.lane]|=r}}for(let a=0;a<e;a++)for(let e=0;e<t;e++){const t=a>0?o[a-1][e]:0,n=e>0?o[a][e-1]:0;let r=o[a][e];r||(8&t&&(r|=12),2&n&&(r|=3),o[a][e]=r)}for(let a=0;a<e;a++)for(let t=0;t<n.length;t++){const n=o[a][t],s=4&n?"\u2500":" ",l=r[a][t];l?(i(t,l.text),a<e-1&&(i(t," "),i(t,S(s,p[a]-l.text.length)))):a<e-1&&i(t,S(s,p[a]+1)),i(t,b(n)),i(t,8&n&&a<e-1&&!r[a+1][t]?"\u2500":" ")}return`\n${n.join("\n")}\n`;function i(e,t){n[e]+=t}}();function f(e){const t=[];for(const n of e.edges)n.source===e&&t.push(n.target);return t}function m(e){const t=[];for(const n of e.edges)n.target===e&&t.push(n.source);return t}function _(e,t){const n=r(e);let o=s[n];if(o&&t.has(e))return o.circular=!0,o={id:-1,flowNode:e,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},l.push(o),o;if(t.add(e),!o)if(s[n]=o={id:n,flowNode:e,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},l.push(o),12&(i=e).flags&&i.antecedents)for(const r of e.antecedents)h(o,r,t);else(function(e){return!!(2032&e.flags)})(e)&&h(o,e.antecedent,t);var i;return t.delete(e),o}function h(e,t,n){const r=_(t,n),o={source:e,target:r};c.push(o),e.edges.push(o),r.edges.push(o)}function g(e){if(-1!==e.level)return e.level;let t=0;for(const n of m(e))t=Math.max(t,g(n)+1);return e.level=t}function y(e){return Em(Yf(e),e,!1)}function v(e,t){let n=function(e){if(2&e)return"Start";if(4&e)return"Branch";if(8&e)return"Loop";if(16&e)return"Assignment";if(32&e)return"True";if(64&e)return"False";if(128&e)return"SwitchClause";if(256&e)return"ArrayMutation";if(512&e)return"Call";if(1024&e)return"ReduceLabel";if(1&e)return"Unreachable";throw new Error}(e.flags);if(t&&(n=`${n}#${r(e)}`),882&e.flags)e.node&&(n+=` (${y(e.node)})`);else if(function(e){return!!(128&e.flags)}(e)){const t=[];for(let n=e.clauseStart;n<e.clauseEnd;n++){const r=e.switchStatement.caseBlock.clauses[n];XN(r)?t.push("default"):t.push(y(r.expression))}n+=` (${t.join(", ")})`}return"circularity"===t?`Circular(${n})`:n}function b(e){switch(e){case 3:return"\u2502";case 12:return"\u2500";case 5:return"\u256f";case 9:return"\u2570";case 6:return"\u256e";case 10:return"\u256d";case 7:return"\u2524";case 11:return"\u251c";case 13:return"\u2534";case 14:return"\u252c";case 15:return"\u256b"}return" "}function E(e,t){if(e.fill)e.fill(t);else for(let n=0;n<e.length;n++)e[n]=t;return e}function S(e,t){if(e.repeat)return t>0?e.repeat(t):"";let n="";for(;n.length<t;)n+=e;return n}}e.DebugTypeMapper=w,e.attachDebugPrototypeIfDebug=function(t){return e.isDebugging?Object.setPrototypeOf(t,w.prototype):t},e.printControlFlowGraph=function(e){return console.log(O(e))},e.formatControlFlowGraph=O})(In||(In={}))}});function Vn(e){const t=Rn.exec(e);if(!t)return;const[,n,r="0",o="0",i="",a=""]=t;return i&&!Cn.test(i)||a&&!Nn.test(a)?void 0:{major:parseInt(n,10),minor:parseInt(r,10),patch:parseInt(o,10),prerelease:i,build:a}}function Un(e){const t=[];for(let n of e.trim().split(On)){if(!n)continue;const e=[];n=n.trim();const r=zn.exec(n);if(r){if(!Kn(r[1],r[2],e))return}else for(const t of n.split(Fn)){const n=Bn.exec(t.trim());if(!n||!qn(n[1],n[2],e))return}t.push(e)}return t}function Hn(e){const t=Wn.exec(e);if(!t)return;const[,n,r="*",o="*",i,a]=t;return{version:new Pn(Jn(n)?0:parseInt(n,10),Jn(n)||Jn(r)?0:parseInt(r,10),Jn(n)||Jn(r)||Jn(o)?0:parseInt(o,10),i,a),major:n,minor:r,patch:o}}function Kn(e,t,n){const r=Hn(e);if(!r)return!1;const o=Hn(t);return!!o&&(Jn(r.major)||n.push(Xn(">=",r.version)),Jn(o.major)||n.push(Jn(o.minor)?Xn("<",o.version.increment("major")):Jn(o.patch)?Xn("<",o.version.increment("minor")):Xn("<=",o.version)),!0)}function qn(e,t,n){const r=Hn(t);if(!r)return!1;const{version:o,major:i,minor:a,patch:s}=r;if(Jn(i))"<"!==e&&">"!==e||n.push(Xn("<",Pn.zero));else switch(e){case"~":n.push(Xn(">=",o)),n.push(Xn("<",o.increment(Jn(a)?"major":"minor")));break;case"^":n.push(Xn(">=",o)),n.push(Xn("<",o.increment(o.major>0||Jn(a)?"major":o.minor>0||Jn(s)?"minor":"patch")));break;case"<":case">=":n.push(Jn(a)||Jn(s)?Xn(e,o.with({prerelease:"0"})):Xn(e,o));break;case"<=":case">":n.push(Jn(a)?Xn("<="===e?"<":">=",o.increment("major").with({prerelease:"0"})):Jn(s)?Xn("<="===e?"<":">=",o.increment("minor").with({prerelease:"0"})):Xn(e,o));break;case"=":case void 0:Jn(a)||Jn(s)?(n.push(Xn(">=",o.with({prerelease:"0"}))),n.push(Xn("<",o.increment(Jn(a)?"major":"minor").with({prerelease:"0"})))):n.push(Xn("=",o));break;default:return!1}return!0}function Jn(e){return"*"===e||"x"===e||"X"===e}function Xn(e,t){return{operator:e,operand:t}}function $n(e,t){for(const n of t)if(!Yn(e,n.operator,n.operand))return!1;return!0}function Yn(e,t,n){const r=e.compareTo(n);switch(t){case"<":return r<0;case"<=":return r<=0;case">":return r>0;case">=":return r>=0;case"=":return 0===r;default:return In.assertNever(t)}}function Qn(e){return U(e,Zn).join(" ")}function Zn(e){return`${e.operator}${e.operand}`}var er,tr,nr,rr=b({"src/compiler/semver.ts"(){JJ(),Rn=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,Cn=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,Dn=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,Nn=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,Mn=/^[a-z0-9-]+$/i,Ln=/^(0|[1-9]\d*)$/,(kn=class e{constructor(e,t=0,n=0,r="",i=""){if("string"===typeof e){const o=In.checkDefined(Vn(e),"Invalid version");({major:e,minor:t,patch:n,prerelease:r,build:i}=o)}In.assert(e>=0,"Invalid argument: major"),In.assert(t>=0,"Invalid argument: minor"),In.assert(n>=0,"Invalid argument: patch");const a=r?mt(r)?r:r.split("."):o,s=i?mt(i)?i:i.split("."):o;In.assert(M(a,(e=>Dn.test(e))),"Invalid argument: prerelease"),In.assert(M(s,(e=>Mn.test(e))),"Invalid argument: build"),this.major=e,this.minor=t,this.patch=n,this.prerelease=a,this.build=s}static tryParse(t){const n=Vn(t);if(!n)return;const{major:r,minor:o,patch:i,prerelease:a,build:s}=n;return new e(r,o,i,a,s)}compareTo(e){return this===e?0:void 0===e?1:Ft(this.major,e.major)||Ft(this.minor,e.minor)||Ft(this.patch,e.patch)||function(e,t){if(e===t)return 0;if(0===e.length)return 0===t.length?0:1;if(0===t.length)return-1;const n=Math.min(e.length,t.length);for(let r=0;r<n;r++){const n=e[r],o=t[r];if(n===o)continue;const i=Ln.test(n),a=Ln.test(o);if(i||a){if(i!==a)return i?-1:1;const e=Ft(+n,+o);if(e)return e}else{const e=jt(n,o);if(e)return e}}return Ft(e.length,t.length)}(this.prerelease,e.prerelease)}increment(t){switch(t){case"major":return new e(this.major+1,0,0);case"minor":return new e(this.major,this.minor+1,0);case"patch":return new e(this.major,this.minor,this.patch+1);default:return In.assertNever(t)}}with(t){const{major:n=this.major,minor:r=this.minor,patch:o=this.patch,prerelease:i=this.prerelease,build:a=this.build}=t;return new e(n,r,o,i,a)}toString(){let e=`${this.major}.${this.minor}.${this.patch}`;return se(this.prerelease)&&(e+=`-${this.prerelease.join(".")}`),se(this.build)&&(e+=`+${this.build.join(".")}`),e}}).zero=new kn(0,0,0,["0"]),Pn=kn,wn=class e{constructor(e){this._alternatives=e?In.checkDefined(Un(e),"Invalid range spec."):o}static tryParse(t){const n=Un(t);if(n){const t=new e("");return t._alternatives=n,t}}test(e){return"string"===typeof e&&(e=new Pn(e)),function(e,t){if(0===t.length)return!0;for(const n of t)if($n(e,n))return!0;return!1}(e,this._alternatives)}toString(){return U(this._alternatives,Qn).join(" || ")||"*"}},On=/\|\|/g,Fn=/\s+/g,Wn=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,zn=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,Bn=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i}});function or(e,t){return"object"===typeof e&&"number"===typeof e.timeOrigin&&"function"===typeof e.mark&&"function"===typeof e.measure&&"function"===typeof e.now&&"function"===typeof e.clearMarks&&"function"===typeof e.clearMeasures&&"function"===typeof t}function ir(){return er}var ar,sr,lr,cr,dr,ur,pr,fr,mr,_r,hr=b({"src/compiler/performanceCore.ts"(){JJ(),er=function(){if("object"===typeof performance&&"function"===typeof PerformanceObserver&&or(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance:performance,PerformanceObserver:PerformanceObserver}}()||function(){if(xn())try{const{performance:e,PerformanceObserver:t}=c("perf_hooks");if(or(e,t))return{shouldWriteNativeEvents:!1,performance:e,PerformanceObserver:t}}catch{}}(),tr=null==er?void 0:er.performance,nr=tr?()=>tr.now():Date.now?Date.now:()=>+new Date}}),gr=b({"src/compiler/perfLogger.ts"(){try{ar=c({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}.TS_ETW_MODULE_PATH??"./node_modules/@microsoft/typescript-etw")}catch(e){ar=void 0}sr=(null==ar?void 0:ar.logEvent)?ar:void 0}});function yr(e,t,n,r){return e?vr(t,n,r):dr}function vr(e,t,n){let r=0;return{enter:function(){1===++r&&br(t)},exit:function(){0===--r?(br(n),Er(e,t,n)):r<0&&In.fail("enter/exit count does not match.")}}}function br(e){if(ur){const t=mr.get(e)??0;mr.set(e,t+1),fr.set(e,nr()),null==cr||cr.mark(e),"function"===typeof onProfilerEvent&&onProfilerEvent(e)}}function Er(e,t,n){if(ur){const r=(void 0!==n?fr.get(n):void 0)??nr(),o=(void 0!==t?fr.get(t):void 0)??pr,i=_r.get(e)||0;_r.set(e,i+(r-o)),null==cr||cr.measure(e,t,n)}}function Sr(e){return mr.get(e)||0}function Tr(e){return _r.get(e)||0}function xr(e){_r.forEach(((t,n)=>e(n,t)))}function Ar(e){fr.forEach(((t,n)=>e(n)))}function Ir(e){void 0!==e?_r.delete(e):_r.clear(),null==cr||cr.clearMeasures(e)}function Rr(e){void 0!==e?(mr.delete(e),fr.delete(e)):(mr.clear(),fr.clear()),null==cr||cr.clearMarks(e)}function Cr(){return ur}function Dr(e=hi){var t;return ur||(ur=!0,lr||(lr=ir()),lr&&(pr=lr.performance.timeOrigin,(lr.shouldWriteNativeEvents||(null==(t=null==e?void 0:e.cpuProfilingEnabled)?void 0:t.call(e))||(null==e?void 0:e.debugMode))&&(cr=lr.performance))),!0}function Nr(){ur&&(fr.clear(),mr.clear(),_r.clear(),cr=void 0,ur=!1)}var Mr=b({"src/compiler/performance.ts"(){JJ(),dr={enter:bt,exit:bt},ur=!1,pr=nr(),fr=new Map,mr=new Map,_r=new Map}}),Lr={};E(Lr,{clearMarks:()=>Rr,clearMeasures:()=>Ir,createTimer:()=>vr,createTimerIf:()=>yr,disable:()=>Nr,enable:()=>Dr,forEachMark:()=>Ar,forEachMeasure:()=>xr,getCount:()=>Sr,getDuration:()=>Tr,isEnabled:()=>Cr,mark:()=>br,measure:()=>Er,nullTimer:()=>dr});var kr,Pr,wr,Or,Fr,Wr,zr,Br,Gr,jr,Vr,Ur,Hr,Kr,qr,Jr,Xr,$r,Yr,Qr,Zr,eo,to,no,ro,oo,io,ao,so,lo,co,uo,po,fo,mo,_o,ho,go,yo,vo,bo,Eo,So,To,xo,Ao,Io,Ro,Co,Do,No,Mo,Lo,ko,Po,wo,Oo,Fo,Wo,zo,Bo,Go,jo,Vo,Uo,Ho,Ko,qo,Jo,Xo,$o,Yo,Qo,Zo,ei,ti,ni,ri,oi=b({"src/compiler/_namespaces/ts.performance.ts"(){Mr()}}),ii=b({"src/compiler/tracing.ts"(){JJ(),oi(),(e=>{let t,n,r=0,o=0;const i=[];let a;const s=[];let l;var d;e.startTracing=function(l,d,u){if(In.assert(!kr,"Tracing already started"),void 0===t)try{t=c("fs")}catch(h){throw new Error(`tracing requires having fs\n(original error: ${h.message||h})`)}n=l,i.length=0,void 0===a&&(a=ua(d,"legend.json")),t.existsSync(d)||t.mkdirSync(d,{recursive:!0});const p="build"===n?`.${process.pid}-${++r}`:"server"===n?`.${process.pid}`:"",f=ua(d,`trace${p}.json`),m=ua(d,`types${p}.json`);s.push({configFilePath:u,tracePath:f,typesPath:m}),o=t.openSync(f,"w"),kr=e;const _={cat:"__metadata",ph:"M",ts:1e3*nr(),pid:1,tid:1};t.writeSync(o,"[\n"+[{name:"process_name",args:{name:"tsc"},..._},{name:"thread_name",args:{name:"Main"},..._},{name:"TracingStartedInBrowser",..._,cat:"disabled-by-default-devtools.timeline"}].map((e=>JSON.stringify(e))).join(",\n"))},e.stopTracing=function(){In.assert(kr,"Tracing is not in progress"),In.assert(!!i.length===("server"!==n)),t.writeSync(o,"\n]\n"),t.closeSync(o),kr=void 0,i.length?function(e){var n,r,o,i,a,l,c,d,u,p,f,m,h,g,y,v,b,E,S;br("beginDumpTypes");const T=s[s.length-1].typesPath,x=t.openSync(T,"w"),A=new Map;t.writeSync(x,"[");const I=e.length;for(let s=0;s<I;s++){const T=e[s],R=T.objectFlags,C=T.aliasSymbol??T.symbol;let D;if(16&R|2944&T.flags)try{D=null==(n=T.checker)?void 0:n.typeToString(T)}catch{D=void 0}let N={};if(8388608&T.flags){const e=T;N={indexedAccessObjectType:null==(r=e.objectType)?void 0:r.id,indexedAccessIndexType:null==(o=e.indexType)?void 0:o.id}}let M={};if(4&R){const e=T;M={instantiatedType:null==(i=e.target)?void 0:i.id,typeArguments:null==(a=e.resolvedTypeArguments)?void 0:a.map((e=>e.id)),referenceLocation:_(e.node)}}let L={};if(16777216&T.flags){const e=T;L={conditionalCheckType:null==(l=e.checkType)?void 0:l.id,conditionalExtendsType:null==(c=e.extendsType)?void 0:c.id,conditionalTrueType:(null==(d=e.resolvedTrueType)?void 0:d.id)??-1,conditionalFalseType:(null==(u=e.resolvedFalseType)?void 0:u.id)??-1}}let k={};if(33554432&T.flags){const e=T;k={substitutionBaseType:null==(p=e.baseType)?void 0:p.id,constraintType:null==(f=e.constraint)?void 0:f.id}}let P={};if(1024&R){const e=T;P={reverseMappedSourceType:null==(m=e.source)?void 0:m.id,reverseMappedMappedType:null==(h=e.mappedType)?void 0:h.id,reverseMappedConstraintType:null==(g=e.constraintType)?void 0:g.id}}let w,O={};if(256&R){const e=T;O={evolvingArrayElementType:e.elementType.id,evolvingArrayFinalType:null==(y=e.finalArrayType)?void 0:y.id}}const F=T.checker.getRecursionIdentity(T);F&&(w=A.get(F),w||(w=A.size,A.set(F,w)));const W={id:T.id,intrinsicName:T.intrinsicName,symbolName:(null==C?void 0:C.escapedName)&&Ll(C.escapedName),recursionId:w,isTuple:!!(8&R)||void 0,unionTypes:1048576&T.flags?null==(v=T.types)?void 0:v.map((e=>e.id)):void 0,intersectionTypes:2097152&T.flags?T.types.map((e=>e.id)):void 0,aliasTypeArguments:null==(b=T.aliasTypeArguments)?void 0:b.map((e=>e.id)),keyofType:4194304&T.flags?null==(E=T.type)?void 0:E.id:void 0,...N,...M,...L,...k,...P,...O,destructuringPattern:_(T.pattern),firstDeclaration:_(null==(S=null==C?void 0:C.declarations)?void 0:S[0]),flags:In.formatTypeFlags(T.flags).split("|"),display:D};t.writeSync(x,JSON.stringify(W)),s<I-1&&t.writeSync(x,",\n")}t.writeSync(x,"]\n"),t.closeSync(x),br("endDumpTypes"),Er("Dump types","beginDumpTypes","endDumpTypes")}(i):s[s.length-1].typesPath=void 0},e.recordType=function(e){"server"!==n&&i.push(e)},(d=l=e.Phase||(e.Phase={})).Parse="parse",d.Program="program",d.Bind="bind",d.Check="check",d.CheckTypes="checkTypes",d.Emit="emit",d.Session="session",e.instant=function(e,t,n){m("I",e,t,n,'"s":"g"')};const u=[];e.push=function(e,t,n,r=!1){r&&m("B",e,t,n),u.push({phase:e,name:t,args:n,time:1e3*nr(),separateBeginAndEnd:r})},e.pop=function(e){In.assert(u.length>0),f(u.length-1,1e3*nr(),e),u.length--},e.popAll=function(){const e=1e3*nr();for(let t=u.length-1;t>=0;t--)f(t,e);u.length=0};const p=1e4;function f(e,t,n){const{phase:r,name:o,args:i,time:a,separateBeginAndEnd:s}=u[e];s?(In.assert(!n,"`results` are not supported for events with `separateBeginAndEnd`"),m("E",r,o,i,void 0,t)):p-a%p<=t-a&&m("X",r,o,{...i,results:n},'"dur":'+(t-a),a)}function m(e,r,i,a,s,l=1e3*nr()){"server"===n&&"checkTypes"===r||(br("beginTracing"),t.writeSync(o,`,\n{"pid":1,"tid":1,"ph":"${e}","cat":"${r}","ts":${l},"name":"${i}"`),s&&t.writeSync(o,`,${s}`),a&&t.writeSync(o,`,"args":${JSON.stringify(a)}`),t.writeSync(o,"}"),br("endTracing"),Er("Tracing","beginTracing","endTracing"))}function _(e){const t=Yf(e);return t?{path:t.path,start:n(_s(t,e.pos)),end:n(_s(t,e.end))}:void 0;function n(e){return{line:e.line+1,character:e.character+1}}}e.dumpLegend=function(){a&&t.writeFileSync(a,JSON.stringify(s))}})(Pr||(Pr={})),wr=Pr.startTracing,Or=Pr.dumpLegend}});function ai(e,t=!0){const n=Do[e.category];return t?n.toLowerCase():n}var si,li,ci,di,ui,pi,fi,mi,_i,hi,gi=b({"src/compiler/types.ts"(){Fr=(e=>(e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",e[e.NumericLiteral=9]="NumericLiteral",e[e.BigIntLiteral=10]="BigIntLiteral",e[e.StringLiteral=11]="StringLiteral",e[e.JsxText=12]="JsxText",e[e.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=14]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=16]="TemplateHead",e[e.TemplateMiddle=17]="TemplateMiddle",e[e.TemplateTail=18]="TemplateTail",e[e.OpenBraceToken=19]="OpenBraceToken",e[e.CloseBraceToken=20]="CloseBraceToken",e[e.OpenParenToken=21]="OpenParenToken",e[e.CloseParenToken=22]="CloseParenToken",e[e.OpenBracketToken=23]="OpenBracketToken",e[e.CloseBracketToken=24]="CloseBracketToken",e[e.DotToken=25]="DotToken",e[e.DotDotDotToken=26]="DotDotDotToken",e[e.SemicolonToken=27]="SemicolonToken",e[e.CommaToken=28]="CommaToken",e[e.QuestionDotToken=29]="QuestionDotToken",e[e.LessThanToken=30]="LessThanToken",e[e.LessThanSlashToken=31]="LessThanSlashToken",e[e.GreaterThanToken=32]="GreaterThanToken",e[e.LessThanEqualsToken=33]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=35]="EqualsEqualsToken",e[e.ExclamationEqualsToken=36]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",e[e.PlusToken=40]="PlusToken",e[e.MinusToken=41]="MinusToken",e[e.AsteriskToken=42]="AsteriskToken",e[e.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",e[e.SlashToken=44]="SlashToken",e[e.PercentToken=45]="PercentToken",e[e.PlusPlusToken=46]="PlusPlusToken",e[e.MinusMinusToken=47]="MinusMinusToken",e[e.LessThanLessThanToken=48]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=51]="AmpersandToken",e[e.BarToken=52]="BarToken",e[e.CaretToken=53]="CaretToken",e[e.ExclamationToken=54]="ExclamationToken",e[e.TildeToken=55]="TildeToken",e[e.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",e[e.BarBarToken=57]="BarBarToken",e[e.QuestionToken=58]="QuestionToken",e[e.ColonToken=59]="ColonToken",e[e.AtToken=60]="AtToken",e[e.QuestionQuestionToken=61]="QuestionQuestionToken",e[e.BacktickToken=62]="BacktickToken",e[e.HashToken=63]="HashToken",e[e.EqualsToken=64]="EqualsToken",e[e.PlusEqualsToken=65]="PlusEqualsToken",e[e.MinusEqualsToken=66]="MinusEqualsToken",e[e.AsteriskEqualsToken=67]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=69]="SlashEqualsToken",e[e.PercentEqualsToken=70]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=74]="AmpersandEqualsToken",e[e.BarEqualsToken=75]="BarEqualsToken",e[e.BarBarEqualsToken=76]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=79]="CaretEqualsToken",e[e.Identifier=80]="Identifier",e[e.PrivateIdentifier=81]="PrivateIdentifier",e[e.JSDocCommentTextToken=82]="JSDocCommentTextToken",e[e.BreakKeyword=83]="BreakKeyword",e[e.CaseKeyword=84]="CaseKeyword",e[e.CatchKeyword=85]="CatchKeyword",e[e.ClassKeyword=86]="ClassKeyword",e[e.ConstKeyword=87]="ConstKeyword",e[e.ContinueKeyword=88]="ContinueKeyword",e[e.DebuggerKeyword=89]="DebuggerKeyword",e[e.DefaultKeyword=90]="DefaultKeyword",e[e.DeleteKeyword=91]="DeleteKeyword",e[e.DoKeyword=92]="DoKeyword",e[e.ElseKeyword=93]="ElseKeyword",e[e.EnumKeyword=94]="EnumKeyword",e[e.ExportKeyword=95]="ExportKeyword",e[e.ExtendsKeyword=96]="ExtendsKeyword",e[e.FalseKeyword=97]="FalseKeyword",e[e.FinallyKeyword=98]="FinallyKeyword",e[e.ForKeyword=99]="ForKeyword",e[e.FunctionKeyword=100]="FunctionKeyword",e[e.IfKeyword=101]="IfKeyword",e[e.ImportKeyword=102]="ImportKeyword",e[e.InKeyword=103]="InKeyword",e[e.InstanceOfKeyword=104]="InstanceOfKeyword",e[e.NewKeyword=105]="NewKeyword",e[e.NullKeyword=106]="NullKeyword",e[e.ReturnKeyword=107]="ReturnKeyword",e[e.SuperKeyword=108]="SuperKeyword",e[e.SwitchKeyword=109]="SwitchKeyword",e[e.ThisKeyword=110]="ThisKeyword",e[e.ThrowKeyword=111]="ThrowKeyword",e[e.TrueKeyword=112]="TrueKeyword",e[e.TryKeyword=113]="TryKeyword",e[e.TypeOfKeyword=114]="TypeOfKeyword",e[e.VarKeyword=115]="VarKeyword",e[e.VoidKeyword=116]="VoidKeyword",e[e.WhileKeyword=117]="WhileKeyword",e[e.WithKeyword=118]="WithKeyword",e[e.ImplementsKeyword=119]="ImplementsKeyword",e[e.InterfaceKeyword=120]="InterfaceKeyword",e[e.LetKeyword=121]="LetKeyword",e[e.PackageKeyword=122]="PackageKeyword",e[e.PrivateKeyword=123]="PrivateKeyword",e[e.ProtectedKeyword=124]="ProtectedKeyword",e[e.PublicKeyword=125]="PublicKeyword",e[e.StaticKeyword=126]="StaticKeyword",e[e.YieldKeyword=127]="YieldKeyword",e[e.AbstractKeyword=128]="AbstractKeyword",e[e.AccessorKeyword=129]="AccessorKeyword",e[e.AsKeyword=130]="AsKeyword",e[e.AssertsKeyword=131]="AssertsKeyword",e[e.AssertKeyword=132]="AssertKeyword",e[e.AnyKeyword=133]="AnyKeyword",e[e.AsyncKeyword=134]="AsyncKeyword",e[e.AwaitKeyword=135]="AwaitKeyword",e[e.BooleanKeyword=136]="BooleanKeyword",e[e.ConstructorKeyword=137]="ConstructorKeyword",e[e.DeclareKeyword=138]="DeclareKeyword",e[e.GetKeyword=139]="GetKeyword",e[e.InferKeyword=140]="InferKeyword",e[e.IntrinsicKeyword=141]="IntrinsicKeyword",e[e.IsKeyword=142]="IsKeyword",e[e.KeyOfKeyword=143]="KeyOfKeyword",e[e.ModuleKeyword=144]="ModuleKeyword",e[e.NamespaceKeyword=145]="NamespaceKeyword",e[e.NeverKeyword=146]="NeverKeyword",e[e.OutKeyword=147]="OutKeyword",e[e.ReadonlyKeyword=148]="ReadonlyKeyword",e[e.RequireKeyword=149]="RequireKeyword",e[e.NumberKeyword=150]="NumberKeyword",e[e.ObjectKeyword=151]="ObjectKeyword",e[e.SatisfiesKeyword=152]="SatisfiesKeyword",e[e.SetKeyword=153]="SetKeyword",e[e.StringKeyword=154]="StringKeyword",e[e.SymbolKeyword=155]="SymbolKeyword",e[e.TypeKeyword=156]="TypeKeyword",e[e.UndefinedKeyword=157]="UndefinedKeyword",e[e.UniqueKeyword=158]="UniqueKeyword",e[e.UnknownKeyword=159]="UnknownKeyword",e[e.UsingKeyword=160]="UsingKeyword",e[e.FromKeyword=161]="FromKeyword",e[e.GlobalKeyword=162]="GlobalKeyword",e[e.BigIntKeyword=163]="BigIntKeyword",e[e.OverrideKeyword=164]="OverrideKeyword",e[e.OfKeyword=165]="OfKeyword",e[e.QualifiedName=166]="QualifiedName",e[e.ComputedPropertyName=167]="ComputedPropertyName",e[e.TypeParameter=168]="TypeParameter",e[e.Parameter=169]="Parameter",e[e.Decorator=170]="Decorator",e[e.PropertySignature=171]="PropertySignature",e[e.PropertyDeclaration=172]="PropertyDeclaration",e[e.MethodSignature=173]="MethodSignature",e[e.MethodDeclaration=174]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=175]="ClassStaticBlockDeclaration",e[e.Constructor=176]="Constructor",e[e.GetAccessor=177]="GetAccessor",e[e.SetAccessor=178]="SetAccessor",e[e.CallSignature=179]="CallSignature",e[e.ConstructSignature=180]="ConstructSignature",e[e.IndexSignature=181]="IndexSignature",e[e.TypePredicate=182]="TypePredicate",e[e.TypeReference=183]="TypeReference",e[e.FunctionType=184]="FunctionType",e[e.ConstructorType=185]="ConstructorType",e[e.TypeQuery=186]="TypeQuery",e[e.TypeLiteral=187]="TypeLiteral",e[e.ArrayType=188]="ArrayType",e[e.TupleType=189]="TupleType",e[e.OptionalType=190]="OptionalType",e[e.RestType=191]="RestType",e[e.UnionType=192]="UnionType",e[e.IntersectionType=193]="IntersectionType",e[e.ConditionalType=194]="ConditionalType",e[e.InferType=195]="InferType",e[e.ParenthesizedType=196]="ParenthesizedType",e[e.ThisType=197]="ThisType",e[e.TypeOperator=198]="TypeOperator",e[e.IndexedAccessType=199]="IndexedAccessType",e[e.MappedType=200]="MappedType",e[e.LiteralType=201]="LiteralType",e[e.NamedTupleMember=202]="NamedTupleMember",e[e.TemplateLiteralType=203]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=204]="TemplateLiteralTypeSpan",e[e.ImportType=205]="ImportType",e[e.ObjectBindingPattern=206]="ObjectBindingPattern",e[e.ArrayBindingPattern=207]="ArrayBindingPattern",e[e.BindingElement=208]="BindingElement",e[e.ArrayLiteralExpression=209]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=210]="ObjectLiteralExpression",e[e.PropertyAccessExpression=211]="PropertyAccessExpression",e[e.ElementAccessExpression=212]="ElementAccessExpression",e[e.CallExpression=213]="CallExpression",e[e.NewExpression=214]="NewExpression",e[e.TaggedTemplateExpression=215]="TaggedTemplateExpression",e[e.TypeAssertionExpression=216]="TypeAssertionExpression",e[e.ParenthesizedExpression=217]="ParenthesizedExpression",e[e.FunctionExpression=218]="FunctionExpression",e[e.ArrowFunction=219]="ArrowFunction",e[e.DeleteExpression=220]="DeleteExpression",e[e.TypeOfExpression=221]="TypeOfExpression",e[e.VoidExpression=222]="VoidExpression",e[e.AwaitExpression=223]="AwaitExpression",e[e.PrefixUnaryExpression=224]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=225]="PostfixUnaryExpression",e[e.BinaryExpression=226]="BinaryExpression",e[e.ConditionalExpression=227]="ConditionalExpression",e[e.TemplateExpression=228]="TemplateExpression",e[e.YieldExpression=229]="YieldExpression",e[e.SpreadElement=230]="SpreadElement",e[e.ClassExpression=231]="ClassExpression",e[e.OmittedExpression=232]="OmittedExpression",e[e.ExpressionWithTypeArguments=233]="ExpressionWithTypeArguments",e[e.AsExpression=234]="AsExpression",e[e.NonNullExpression=235]="NonNullExpression",e[e.MetaProperty=236]="MetaProperty",e[e.SyntheticExpression=237]="SyntheticExpression",e[e.SatisfiesExpression=238]="SatisfiesExpression",e[e.TemplateSpan=239]="TemplateSpan",e[e.SemicolonClassElement=240]="SemicolonClassElement",e[e.Block=241]="Block",e[e.EmptyStatement=242]="EmptyStatement",e[e.VariableStatement=243]="VariableStatement",e[e.ExpressionStatement=244]="ExpressionStatement",e[e.IfStatement=245]="IfStatement",e[e.DoStatement=246]="DoStatement",e[e.WhileStatement=247]="WhileStatement",e[e.ForStatement=248]="ForStatement",e[e.ForInStatement=249]="ForInStatement",e[e.ForOfStatement=250]="ForOfStatement",e[e.ContinueStatement=251]="ContinueStatement",e[e.BreakStatement=252]="BreakStatement",e[e.ReturnStatement=253]="ReturnStatement",e[e.WithStatement=254]="WithStatement",e[e.SwitchStatement=255]="SwitchStatement",e[e.LabeledStatement=256]="LabeledStatement",e[e.ThrowStatement=257]="ThrowStatement",e[e.TryStatement=258]="TryStatement",e[e.DebuggerStatement=259]="DebuggerStatement",e[e.VariableDeclaration=260]="VariableDeclaration",e[e.VariableDeclarationList=261]="VariableDeclarationList",e[e.FunctionDeclaration=262]="FunctionDeclaration",e[e.ClassDeclaration=263]="ClassDeclaration",e[e.InterfaceDeclaration=264]="InterfaceDeclaration",e[e.TypeAliasDeclaration=265]="TypeAliasDeclaration",e[e.EnumDeclaration=266]="EnumDeclaration",e[e.ModuleDeclaration=267]="ModuleDeclaration",e[e.ModuleBlock=268]="ModuleBlock",e[e.CaseBlock=269]="CaseBlock",e[e.NamespaceExportDeclaration=270]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=271]="ImportEqualsDeclaration",e[e.ImportDeclaration=272]="ImportDeclaration",e[e.ImportClause=273]="ImportClause",e[e.NamespaceImport=274]="NamespaceImport",e[e.NamedImports=275]="NamedImports",e[e.ImportSpecifier=276]="ImportSpecifier",e[e.ExportAssignment=277]="ExportAssignment",e[e.ExportDeclaration=278]="ExportDeclaration",e[e.NamedExports=279]="NamedExports",e[e.NamespaceExport=280]="NamespaceExport",e[e.ExportSpecifier=281]="ExportSpecifier",e[e.MissingDeclaration=282]="MissingDeclaration",e[e.ExternalModuleReference=283]="ExternalModuleReference",e[e.JsxElement=284]="JsxElement",e[e.JsxSelfClosingElement=285]="JsxSelfClosingElement",e[e.JsxOpeningElement=286]="JsxOpeningElement",e[e.JsxClosingElement=287]="JsxClosingElement",e[e.JsxFragment=288]="JsxFragment",e[e.JsxOpeningFragment=289]="JsxOpeningFragment",e[e.JsxClosingFragment=290]="JsxClosingFragment",e[e.JsxAttribute=291]="JsxAttribute",e[e.JsxAttributes=292]="JsxAttributes",e[e.JsxSpreadAttribute=293]="JsxSpreadAttribute",e[e.JsxExpression=294]="JsxExpression",e[e.JsxNamespacedName=295]="JsxNamespacedName",e[e.CaseClause=296]="CaseClause",e[e.DefaultClause=297]="DefaultClause",e[e.HeritageClause=298]="HeritageClause",e[e.CatchClause=299]="CatchClause",e[e.ImportAttributes=300]="ImportAttributes",e[e.ImportAttribute=301]="ImportAttribute",e[e.AssertClause=300]="AssertClause",e[e.AssertEntry=301]="AssertEntry",e[e.ImportTypeAssertionContainer=302]="ImportTypeAssertionContainer",e[e.PropertyAssignment=303]="PropertyAssignment",e[e.ShorthandPropertyAssignment=304]="ShorthandPropertyAssignment",e[e.SpreadAssignment=305]="SpreadAssignment",e[e.EnumMember=306]="EnumMember",e[e.UnparsedPrologue=307]="UnparsedPrologue",e[e.UnparsedPrepend=308]="UnparsedPrepend",e[e.UnparsedText=309]="UnparsedText",e[e.UnparsedInternalText=310]="UnparsedInternalText",e[e.UnparsedSyntheticReference=311]="UnparsedSyntheticReference",e[e.SourceFile=312]="SourceFile",e[e.Bundle=313]="Bundle",e[e.UnparsedSource=314]="UnparsedSource",e[e.InputFiles=315]="InputFiles",e[e.JSDocTypeExpression=316]="JSDocTypeExpression",e[e.JSDocNameReference=317]="JSDocNameReference",e[e.JSDocMemberName=318]="JSDocMemberName",e[e.JSDocAllType=319]="JSDocAllType",e[e.JSDocUnknownType=320]="JSDocUnknownType",e[e.JSDocNullableType=321]="JSDocNullableType",e[e.JSDocNonNullableType=322]="JSDocNonNullableType",e[e.JSDocOptionalType=323]="JSDocOptionalType",e[e.JSDocFunctionType=324]="JSDocFunctionType",e[e.JSDocVariadicType=325]="JSDocVariadicType",e[e.JSDocNamepathType=326]="JSDocNamepathType",e[e.JSDoc=327]="JSDoc",e[e.JSDocComment=327]="JSDocComment",e[e.JSDocText=328]="JSDocText",e[e.JSDocTypeLiteral=329]="JSDocTypeLiteral",e[e.JSDocSignature=330]="JSDocSignature",e[e.JSDocLink=331]="JSDocLink",e[e.JSDocLinkCode=332]="JSDocLinkCode",e[e.JSDocLinkPlain=333]="JSDocLinkPlain",e[e.JSDocTag=334]="JSDocTag",e[e.JSDocAugmentsTag=335]="JSDocAugmentsTag",e[e.JSDocImplementsTag=336]="JSDocImplementsTag",e[e.JSDocAuthorTag=337]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=338]="JSDocDeprecatedTag",e[e.JSDocClassTag=339]="JSDocClassTag",e[e.JSDocPublicTag=340]="JSDocPublicTag",e[e.JSDocPrivateTag=341]="JSDocPrivateTag",e[e.JSDocProtectedTag=342]="JSDocProtectedTag",e[e.JSDocReadonlyTag=343]="JSDocReadonlyTag",e[e.JSDocOverrideTag=344]="JSDocOverrideTag",e[e.JSDocCallbackTag=345]="JSDocCallbackTag",e[e.JSDocOverloadTag=346]="JSDocOverloadTag",e[e.JSDocEnumTag=347]="JSDocEnumTag",e[e.JSDocParameterTag=348]="JSDocParameterTag",e[e.JSDocReturnTag=349]="JSDocReturnTag",e[e.JSDocThisTag=350]="JSDocThisTag",e[e.JSDocTypeTag=351]="JSDocTypeTag",e[e.JSDocTemplateTag=352]="JSDocTemplateTag",e[e.JSDocTypedefTag=353]="JSDocTypedefTag",e[e.JSDocSeeTag=354]="JSDocSeeTag",e[e.JSDocPropertyTag=355]="JSDocPropertyTag",e[e.JSDocThrowsTag=356]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=357]="JSDocSatisfiesTag",e[e.SyntaxList=358]="SyntaxList",e[e.NotEmittedStatement=359]="NotEmittedStatement",e[e.PartiallyEmittedExpression=360]="PartiallyEmittedExpression",e[e.CommaListExpression=361]="CommaListExpression",e[e.SyntheticReferenceExpression=362]="SyntheticReferenceExpression",e[e.Count=363]="Count",e[e.FirstAssignment=64]="FirstAssignment",e[e.LastAssignment=79]="LastAssignment",e[e.FirstCompoundAssignment=65]="FirstCompoundAssignment",e[e.LastCompoundAssignment=79]="LastCompoundAssignment",e[e.FirstReservedWord=83]="FirstReservedWord",e[e.LastReservedWord=118]="LastReservedWord",e[e.FirstKeyword=83]="FirstKeyword",e[e.LastKeyword=165]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=182]="FirstTypeNode",e[e.LastTypeNode=205]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=165]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=9]="FirstLiteralToken",e[e.LastLiteralToken=15]="LastLiteralToken",e[e.FirstTemplateToken=15]="FirstTemplateToken",e[e.LastTemplateToken=18]="LastTemplateToken",e[e.FirstBinaryOperator=30]="FirstBinaryOperator",e[e.LastBinaryOperator=79]="LastBinaryOperator",e[e.FirstStatement=243]="FirstStatement",e[e.LastStatement=259]="LastStatement",e[e.FirstNode=166]="FirstNode",e[e.FirstJSDocNode=316]="FirstJSDocNode",e[e.LastJSDocNode=357]="LastJSDocNode",e[e.FirstJSDocTagNode=334]="FirstJSDocTagNode",e[e.LastJSDocTagNode=357]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=165]="LastContextualKeyword",e))(Fr||{}),Wr=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.Using=4]="Using",e[e.AwaitUsing=6]="AwaitUsing",e[e.NestedNamespace=8]="NestedNamespace",e[e.Synthesized=16]="Synthesized",e[e.Namespace=32]="Namespace",e[e.OptionalChain=64]="OptionalChain",e[e.ExportContext=128]="ExportContext",e[e.ContainsThis=256]="ContainsThis",e[e.HasImplicitReturn=512]="HasImplicitReturn",e[e.HasExplicitReturn=1024]="HasExplicitReturn",e[e.GlobalAugmentation=2048]="GlobalAugmentation",e[e.HasAsyncFunctions=4096]="HasAsyncFunctions",e[e.DisallowInContext=8192]="DisallowInContext",e[e.YieldContext=16384]="YieldContext",e[e.DecoratorContext=32768]="DecoratorContext",e[e.AwaitContext=65536]="AwaitContext",e[e.DisallowConditionalTypesContext=131072]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=262144]="ThisNodeHasError",e[e.JavaScriptFile=524288]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=1048576]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=2097152]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=4194304]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=8388608]="PossiblyContainsImportMeta",e[e.JSDoc=16777216]="JSDoc",e[e.Ambient=33554432]="Ambient",e[e.InWithStatement=67108864]="InWithStatement",e[e.JsonFile=134217728]="JsonFile",e[e.TypeCached=268435456]="TypeCached",e[e.Deprecated=536870912]="Deprecated",e[e.BlockScoped=7]="BlockScoped",e[e.Constant=6]="Constant",e[e.ReachabilityCheckFlags=1536]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=5632]="ReachabilityAndEmitFlags",e[e.ContextFlags=101441536]="ContextFlags",e[e.TypeExcludesFlags=81920]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=12582912]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=256]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=4096]="IdentifierIsInJSDocNamespace",e))(Wr||{}),zr=(e=>(e[e.None=0]="None",e[e.Public=1]="Public",e[e.Private=2]="Private",e[e.Protected=4]="Protected",e[e.Readonly=8]="Readonly",e[e.Override=16]="Override",e[e.Export=32]="Export",e[e.Abstract=64]="Abstract",e[e.Ambient=128]="Ambient",e[e.Static=256]="Static",e[e.Accessor=512]="Accessor",e[e.Async=1024]="Async",e[e.Default=2048]="Default",e[e.Const=4096]="Const",e[e.In=8192]="In",e[e.Out=16384]="Out",e[e.Decorator=32768]="Decorator",e[e.Deprecated=65536]="Deprecated",e[e.JSDocPublic=8388608]="JSDocPublic",e[e.JSDocPrivate=16777216]="JSDocPrivate",e[e.JSDocProtected=33554432]="JSDocProtected",e[e.JSDocReadonly=67108864]="JSDocReadonly",e[e.JSDocOverride=134217728]="JSDocOverride",e[e.SyntacticOrJSDocModifiers=31]="SyntacticOrJSDocModifiers",e[e.SyntacticOnlyModifiers=65504]="SyntacticOnlyModifiers",e[e.SyntacticModifiers=65535]="SyntacticModifiers",e[e.JSDocCacheOnlyModifiers=260046848]="JSDocCacheOnlyModifiers",e[e.JSDocOnlyModifiers=65536]="JSDocOnlyModifiers",e[e.NonCacheOnlyModifiers=131071]="NonCacheOnlyModifiers",e[e.HasComputedJSDocModifiers=268435456]="HasComputedJSDocModifiers",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=7]="AccessibilityModifier",e[e.ParameterPropertyModifier=31]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=6]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=28895]="TypeScriptModifier",e[e.ExportDefault=2080]="ExportDefault",e[e.All=131071]="All",e[e.Modifier=98303]="Modifier",e))(zr||{}),Br=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(Br||{}),Gr=(e=>(e[e.None=0]="None",e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.Reported=4]="Reported",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e))(Gr||{}),jr=(e=>(e[e.None=0]="None",e[e.Auto=1]="Auto",e[e.Loop=2]="Loop",e[e.Unique=3]="Unique",e[e.Node=4]="Node",e[e.KindMask=7]="KindMask",e[e.ReservedInNestedScopes=8]="ReservedInNestedScopes",e[e.Optimistic=16]="Optimistic",e[e.FileLevel=32]="FileLevel",e[e.AllowNameSubstitution=64]="AllowNameSubstitution",e))(jr||{}),Vr=(e=>(e[e.None=0]="None",e[e.PrecedingLineBreak=1]="PrecedingLineBreak",e[e.PrecedingJSDocComment=2]="PrecedingJSDocComment",e[e.Unterminated=4]="Unterminated",e[e.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",e[e.Scientific=16]="Scientific",e[e.Octal=32]="Octal",e[e.HexSpecifier=64]="HexSpecifier",e[e.BinarySpecifier=128]="BinarySpecifier",e[e.OctalSpecifier=256]="OctalSpecifier",e[e.ContainsSeparator=512]="ContainsSeparator",e[e.UnicodeEscape=1024]="UnicodeEscape",e[e.ContainsInvalidEscape=2048]="ContainsInvalidEscape",e[e.HexEscape=4096]="HexEscape",e[e.ContainsLeadingZero=8192]="ContainsLeadingZero",e[e.ContainsInvalidSeparator=16384]="ContainsInvalidSeparator",e[e.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.WithSpecifier=448]="WithSpecifier",e[e.StringLiteralFlags=7176]="StringLiteralFlags",e[e.NumericLiteralFlags=25584]="NumericLiteralFlags",e[e.TemplateLiteralLikeFlags=7176]="TemplateLiteralLikeFlags",e[e.IsInvalid=26656]="IsInvalid",e))(Vr||{}),Ur=(e=>(e[e.Unreachable=1]="Unreachable",e[e.Start=2]="Start",e[e.BranchLabel=4]="BranchLabel",e[e.LoopLabel=8]="LoopLabel",e[e.Assignment=16]="Assignment",e[e.TrueCondition=32]="TrueCondition",e[e.FalseCondition=64]="FalseCondition",e[e.SwitchClause=128]="SwitchClause",e[e.ArrayMutation=256]="ArrayMutation",e[e.Call=512]="Call",e[e.ReduceLabel=1024]="ReduceLabel",e[e.Referenced=2048]="Referenced",e[e.Shared=4096]="Shared",e[e.Label=12]="Label",e[e.Condition=96]="Condition",e))(Ur||{}),Hr=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(Hr||{}),Kr=class{},qr=(e=>(e[e.RootFile=0]="RootFile",e[e.SourceFromProjectReference=1]="SourceFromProjectReference",e[e.OutputFromProjectReference=2]="OutputFromProjectReference",e[e.Import=3]="Import",e[e.ReferenceFile=4]="ReferenceFile",e[e.TypeReferenceDirective=5]="TypeReferenceDirective",e[e.LibFile=6]="LibFile",e[e.LibReferenceDirective=7]="LibReferenceDirective",e[e.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile",e))(qr||{}),Jr=(e=>(e[e.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.ResolutionDiagnostics=2]="ResolutionDiagnostics",e))(Jr||{}),Xr=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e))(Xr||{}),$r=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))($r||{}),Yr=(e=>(e[e.Success=0]="Success",e[e.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",e[e.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",e[e.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",e[e.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",e))(Yr||{}),Qr=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(Qr||{}),Zr=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(Zr||{}),eo=(e=>(e[e.None=0]="None",e[e.Signature=1]="Signature",e[e.NoConstraints=2]="NoConstraints",e[e.Completions=4]="Completions",e[e.SkipBindingPatterns=8]="SkipBindingPatterns",e))(eo||{}),to=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",e[e.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",e[e.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",e[e.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",e[e.AllowEmptyTuple=524288]="AllowEmptyTuple",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",e[e.WriteComputedProps=1073741824]="WriteComputedProps",e[e.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",e[e.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",e[e.IgnoreErrors=70221824]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName",e))(to||{}),no=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AddUndefined=131072]="AddUndefined",e[e.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",e[e.InArrayType=524288]="InArrayType",e[e.InElementType=2097152]="InElementType",e[e.InFirstTypeArgument=4194304]="InFirstTypeArgument",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.NodeBuilderFlagsMask=848330095]="NodeBuilderFlagsMask",e))(no||{}),ro=(e=>(e[e.None=0]="None",e[e.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",e[e.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",e[e.AllowAnyNodeKind=4]="AllowAnyNodeKind",e[e.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",e[e.WriteComputedProps=16]="WriteComputedProps",e[e.DoNotIncludeSymbolChain=32]="DoNotIncludeSymbolChain",e))(ro||{}),oo=(e=>(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e))(oo||{}),io=(e=>(e[e.UnionOrIntersection=0]="UnionOrIntersection",e[e.Spread=1]="Spread",e))(io||{}),ao=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(ao||{}),so=(e=>(e[e.Unknown=0]="Unknown",e[e.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",e[e.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",e[e.NumberLikeType=3]="NumberLikeType",e[e.BigIntLikeType=4]="BigIntLikeType",e[e.StringLikeType=5]="StringLikeType",e[e.BooleanType=6]="BooleanType",e[e.ArrayLikeType=7]="ArrayLikeType",e[e.ESSymbolType=8]="ESSymbolType",e[e.Promise=9]="Promise",e[e.TypeWithCallSignature=10]="TypeWithCallSignature",e[e.ObjectType=11]="ObjectType",e))(so||{}),lo=(e=>(e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=-1]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.AccessorExcludes=13247]="AccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer",e))(lo||{}),co=(e=>(e[e.Numeric=0]="Numeric",e[e.Literal=1]="Literal",e))(co||{}),uo=(e=>(e[e.None=0]="None",e[e.Instantiated=1]="Instantiated",e[e.SyntheticProperty=2]="SyntheticProperty",e[e.SyntheticMethod=4]="SyntheticMethod",e[e.Readonly=8]="Readonly",e[e.ReadPartial=16]="ReadPartial",e[e.WritePartial=32]="WritePartial",e[e.HasNonUniformType=64]="HasNonUniformType",e[e.HasLiteralType=128]="HasLiteralType",e[e.ContainsPublic=256]="ContainsPublic",e[e.ContainsProtected=512]="ContainsProtected",e[e.ContainsPrivate=1024]="ContainsPrivate",e[e.ContainsStatic=2048]="ContainsStatic",e[e.Late=4096]="Late",e[e.ReverseMapped=8192]="ReverseMapped",e[e.OptionalParameter=16384]="OptionalParameter",e[e.RestParameter=32768]="RestParameter",e[e.DeferredType=65536]="DeferredType",e[e.HasNeverType=131072]="HasNeverType",e[e.Mapped=262144]="Mapped",e[e.StripOptional=524288]="StripOptional",e[e.Unresolved=1048576]="Unresolved",e[e.Synthetic=6]="Synthetic",e[e.Discriminant=192]="Discriminant",e[e.Partial=48]="Partial",e))(uo||{}),po=(e=>(e.Call="__call",e.Constructor="__constructor",e.New="__new",e.Index="__index",e.ExportStar="__export",e.Global="__global",e.Missing="__missing",e.Type="__type",e.Object="__object",e.JSXAttributes="__jsxAttributes",e.Class="__class",e.Function="__function",e.Computed="__computed",e.Resolving="__resolving__",e.ExportEquals="export=",e.Default="default",e.This="this",e.InstantiationExpression="__instantiationExpression",e.ImportAttributes="__importAttributes",e))(po||{}),fo=(e=>(e[e.None=0]="None",e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=16]="SuperInstance",e[e.SuperStatic=32]="SuperStatic",e[e.ContextChecked=64]="ContextChecked",e[e.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",e[e.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",e[e.CaptureArguments=512]="CaptureArguments",e[e.EnumValuesComputed=1024]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",e[e.NeedsLoopOutParameter=65536]="NeedsLoopOutParameter",e[e.AssignmentsMarked=131072]="AssignmentsMarked",e[e.ContainsConstructorReference=262144]="ContainsConstructorReference",e[e.ConstructorReference=536870912]="ConstructorReference",e[e.ContainsClassWithPrivateIdentifiers=1048576]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=2097152]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=4194304]="InCheckIdentifier",e))(fo||{}),mo=(e=>(e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.Reserved1=536870912]="Reserved1",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109472]="Unit",e[e.Freshable=2976]="Freshable",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.StringLike=402653316]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.Primitive=402784252]="Primitive",e[e.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=3899393]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=473694207]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.IncludesConstrainedTypeVariable=536870912]="IncludesConstrainedTypeVariable",e[e.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",e))(mo||{}),_o=(e=>(e[e.None=0]="None",e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.InstantiatedMapped=96]="InstantiatedMapped",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection",e[e.IsConstrainedTypeVariable=67108864]="IsConstrainedTypeVariable",e))(_o||{}),ho=(e=>(e[e.Invariant=0]="Invariant",e[e.Covariant=1]="Covariant",e[e.Contravariant=2]="Contravariant",e[e.Bivariant=3]="Bivariant",e[e.Independent=4]="Independent",e[e.VarianceMask=7]="VarianceMask",e[e.Unmeasurable=8]="Unmeasurable",e[e.Unreliable=16]="Unreliable",e[e.AllowsStructuralFallback=24]="AllowsStructuralFallback",e))(ho||{}),go=(e=>(e[e.Required=1]="Required",e[e.Optional=2]="Optional",e[e.Rest=4]="Rest",e[e.Variadic=8]="Variadic",e[e.Fixed=3]="Fixed",e[e.Variable=12]="Variable",e[e.NonRequired=14]="NonRequired",e[e.NonRest=11]="NonRest",e))(go||{}),yo=(e=>(e[e.None=0]="None",e[e.IncludeUndefined=1]="IncludeUndefined",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.Writing=4]="Writing",e[e.CacheSymbol=8]="CacheSymbol",e[e.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",e[e.ExpressionPosition=32]="ExpressionPosition",e[e.ReportDeprecated=64]="ReportDeprecated",e[e.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",e[e.Contextual=256]="Contextual",e[e.Persistent=1]="Persistent",e))(yo||{}),vo=(e=>(e[e.None=0]="None",e[e.StringsOnly=1]="StringsOnly",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.NoReducibleCheck=4]="NoReducibleCheck",e))(vo||{}),bo=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))(bo||{}),Eo=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))(Eo||{}),So=(e=>(e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.IsNonInferrable=64]="IsNonInferrable",e[e.IsSignatureCandidateForOverloadFailure=128]="IsSignatureCandidateForOverloadFailure",e[e.PropagatingFlags=167]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))(So||{}),To=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(To||{}),xo=(e=>(e[e.Simple=0]="Simple",e[e.Array=1]="Array",e[e.Deferred=2]="Deferred",e[e.Function=3]="Function",e[e.Composite=4]="Composite",e[e.Merged=5]="Merged",e))(xo||{}),Ao=(e=>(e[e.None=0]="None",e[e.NakedTypeVariable=1]="NakedTypeVariable",e[e.SpeculativeTuple=2]="SpeculativeTuple",e[e.SubstituteSource=4]="SubstituteSource",e[e.HomomorphicMappedType=8]="HomomorphicMappedType",e[e.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",e[e.MappedTypeConstraint=32]="MappedTypeConstraint",e[e.ContravariantConditional=64]="ContravariantConditional",e[e.ReturnType=128]="ReturnType",e[e.LiteralKeyof=256]="LiteralKeyof",e[e.NoConstraints=512]="NoConstraints",e[e.AlwaysStrict=1024]="AlwaysStrict",e[e.MaxValue=2048]="MaxValue",e[e.PriorityImpliesCombination=416]="PriorityImpliesCombination",e[e.Circularity=-1]="Circularity",e))(Ao||{}),Io=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(Io||{}),Ro=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))(Ro||{}),Co=(e=>(e[e.None=0]="None",e[e.ExportsProperty=1]="ExportsProperty",e[e.ModuleExports=2]="ModuleExports",e[e.PrototypeProperty=3]="PrototypeProperty",e[e.ThisProperty=4]="ThisProperty",e[e.Property=5]="Property",e[e.Prototype=6]="Prototype",e[e.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",e[e.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",e[e.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",e))(Co||{}),Do=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(Do||{}),No=(e=>(e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs",e[e.Node10=2]="Node10",e[e.Node16=3]="Node16",e[e.NodeNext=99]="NodeNext",e[e.Bundler=100]="Bundler",e))(No||{}),Mo=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))(Mo||{}),Lo=(e=>(e[e.FixedPollingInterval=0]="FixedPollingInterval",e[e.PriorityPollingInterval=1]="PriorityPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e[e.UseFsEvents=4]="UseFsEvents",e[e.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory",e))(Lo||{}),ko=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(ko||{}),Po=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))(Po||{}),wo=(e=>(e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ES2020=6]="ES2020",e[e.ES2022=7]="ES2022",e[e.ESNext=99]="ESNext",e[e.Node16=100]="Node16",e[e.NodeNext=199]="NodeNext",e[e.Preserve=200]="Preserve",e))(wo||{}),Oo=(e=>(e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative",e[e.ReactJSX=4]="ReactJSX",e[e.ReactJSXDev=5]="ReactJSXDev",e))(Oo||{}),Fo=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))(Fo||{}),Wo=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(Wo||{}),zo=(e=>(e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred",e))(zo||{}),Bo=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(Bo||{}),Go=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(Go||{}),jo=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))(jo||{}),Vo=(e=>(e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.backtick=96]="backtick",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.hash=35]="hash",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab",e))(Vo||{}),Uo=(e=>(e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo",e.Mjs=".mjs",e.Mts=".mts",e.Dmts=".d.mts",e.Cjs=".cjs",e.Cts=".cts",e.Dcts=".d.cts",e))(Uo||{}),Ho=(e=>(e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2022=8]="ContainsES2022",e[e.ContainsES2021=16]="ContainsES2021",e[e.ContainsES2020=32]="ContainsES2020",e[e.ContainsES2019=64]="ContainsES2019",e[e.ContainsES2018=128]="ContainsES2018",e[e.ContainsES2017=256]="ContainsES2017",e[e.ContainsES2016=512]="ContainsES2016",e[e.ContainsES2015=1024]="ContainsES2015",e[e.ContainsGenerator=2048]="ContainsGenerator",e[e.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=16384]="ContainsLexicalThis",e[e.ContainsRestOrSpread=32768]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=524288]="ContainsBindingPattern",e[e.ContainsYield=1048576]="ContainsYield",e[e.ContainsAwait=2097152]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=8388608]="ContainsDynamicImport",e[e.ContainsClassFields=16777216]="ContainsClassFields",e[e.ContainsDecorators=33554432]="ContainsDecorators",e[e.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",e[e.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",e[e.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",e[e.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",e[e.HasComputedFlags=-2147483648]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2022=8]="AssertES2022",e[e.AssertES2021=16]="AssertES2021",e[e.AssertES2020=32]="AssertES2020",e[e.AssertES2019=64]="AssertES2019",e[e.AssertES2018=128]="AssertES2018",e[e.AssertES2017=256]="AssertES2017",e[e.AssertES2016=512]="AssertES2016",e[e.AssertES2015=1024]="AssertES2015",e[e.AssertGenerator=2048]="AssertGenerator",e[e.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",e[e.NodeExcludes=-2147483648]="NodeExcludes",e[e.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",e[e.FunctionExcludes=-1937940480]="FunctionExcludes",e[e.ConstructorExcludes=-1937948672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",e[e.PropertyExcludes=-2013249536]="PropertyExcludes",e[e.ClassExcludes=-2147344384]="ClassExcludes",e[e.ModuleExcludes=-1941676032]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",e[e.ParameterExcludes=-2147483648]="ParameterExcludes",e[e.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",e[e.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",e[e.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",e[e.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",e))(Ho||{}),Ko=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(Ko||{}),qo=(e=>(e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.MultiLine=2]="MultiLine",e[e.AdviseOnEmitNode=4]="AdviseOnEmitNode",e[e.NoSubstitution=8]="NoSubstitution",e[e.CapturesThis=16]="CapturesThis",e[e.NoLeadingSourceMap=32]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=64]="NoTrailingSourceMap",e[e.NoSourceMap=96]="NoSourceMap",e[e.NoNestedSourceMaps=128]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=768]="NoTokenSourceMaps",e[e.NoLeadingComments=1024]="NoLeadingComments",e[e.NoTrailingComments=2048]="NoTrailingComments",e[e.NoComments=3072]="NoComments",e[e.NoNestedComments=4096]="NoNestedComments",e[e.HelperName=8192]="HelperName",e[e.ExportName=16384]="ExportName",e[e.LocalName=32768]="LocalName",e[e.InternalName=65536]="InternalName",e[e.Indented=131072]="Indented",e[e.NoIndentation=262144]="NoIndentation",e[e.AsyncFunctionBody=524288]="AsyncFunctionBody",e[e.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",e[e.CustomPrologue=2097152]="CustomPrologue",e[e.NoHoisting=4194304]="NoHoisting",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e))(qo||{}),Jo=(e=>(e[e.None=0]="None",e[e.TypeScriptClassWrapper=1]="TypeScriptClassWrapper",e[e.NeverApplyImportHelper=2]="NeverApplyImportHelper",e[e.IgnoreSourceNewlines=4]="IgnoreSourceNewlines",e[e.Immutable=8]="Immutable",e[e.IndirectCall=16]="IndirectCall",e[e.TransformPrivateStaticElements=32]="TransformPrivateStaticElements",e))(Jo||{}),Xo=(e=>(e[e.Extends=1]="Extends",e[e.Assign=2]="Assign",e[e.Rest=4]="Rest",e[e.Decorate=8]="Decorate",e[e.ESDecorateAndRunInitializers=8]="ESDecorateAndRunInitializers",e[e.Metadata=16]="Metadata",e[e.Param=32]="Param",e[e.Awaiter=64]="Awaiter",e[e.Generator=128]="Generator",e[e.Values=256]="Values",e[e.Read=512]="Read",e[e.SpreadArray=1024]="SpreadArray",e[e.Await=2048]="Await",e[e.AsyncGenerator=4096]="AsyncGenerator",e[e.AsyncDelegator=8192]="AsyncDelegator",e[e.AsyncValues=16384]="AsyncValues",e[e.ExportStar=32768]="ExportStar",e[e.ImportStar=65536]="ImportStar",e[e.ImportDefault=131072]="ImportDefault",e[e.MakeTemplateObject=262144]="MakeTemplateObject",e[e.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",e[e.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",e[e.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",e[e.CreateBinding=4194304]="CreateBinding",e[e.SetFunctionName=8388608]="SetFunctionName",e[e.PropKey=16777216]="PropKey",e[e.AddDisposableResourceAndDisposeResources=33554432]="AddDisposableResourceAndDisposeResources",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=33554432]="LastEmitHelper",e[e.ForOfIncludes=256]="ForOfIncludes",e[e.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",e[e.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",e[e.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",e[e.SpreadIncludes=1536]="SpreadIncludes",e))(Xo||{}),$o=(e=>(e[e.SourceFile=0]="SourceFile",e[e.Expression=1]="Expression",e[e.IdentifierName=2]="IdentifierName",e[e.MappedTypeParameter=3]="MappedTypeParameter",e[e.Unspecified=4]="Unspecified",e[e.EmbeddedStatement=5]="EmbeddedStatement",e[e.JsxAttributeValue=6]="JsxAttributeValue",e[e.ImportTypeNodeAttributes=7]="ImportTypeNodeAttributes",e))($o||{}),Yo=(e=>(e[e.Parentheses=1]="Parentheses",e[e.TypeAssertions=2]="TypeAssertions",e[e.NonNullAssertions=4]="NonNullAssertions",e[e.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",e[e.Assertions=6]="Assertions",e[e.All=15]="All",e[e.ExcludeJSDocTypeAssertion=16]="ExcludeJSDocTypeAssertion",e))(Yo||{}),Qo=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))(Qo||{}),Zo=(e=>(e.Prologue="prologue",e.EmitHelpers="emitHelpers",e.NoDefaultLib="no-default-lib",e.Reference="reference",e.Type="type",e.TypeResolutionModeRequire="type-require",e.TypeResolutionModeImport="type-import",e.Lib="lib",e.Prepend="prepend",e.Text="text",e.Internal="internal",e))(Zo||{}),ei=(e=>(e[e.None=0]="None",e[e.SingleLine=0]="SingleLine",e[e.MultiLine=1]="MultiLine",e[e.PreserveLines=2]="PreserveLines",e[e.LinesMask=3]="LinesMask",e[e.NotDelimited=0]="NotDelimited",e[e.BarDelimited=4]="BarDelimited",e[e.AmpersandDelimited=8]="AmpersandDelimited",e[e.CommaDelimited=16]="CommaDelimited",e[e.AsteriskDelimited=32]="AsteriskDelimited",e[e.DelimitersMask=60]="DelimitersMask",e[e.AllowTrailingComma=64]="AllowTrailingComma",e[e.Indented=128]="Indented",e[e.SpaceBetweenBraces=256]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",e[e.Braces=1024]="Braces",e[e.Parenthesis=2048]="Parenthesis",e[e.AngleBrackets=4096]="AngleBrackets",e[e.SquareBrackets=8192]="SquareBrackets",e[e.BracketsMask=15360]="BracketsMask",e[e.OptionalIfUndefined=16384]="OptionalIfUndefined",e[e.OptionalIfEmpty=32768]="OptionalIfEmpty",e[e.Optional=49152]="Optional",e[e.PreferNewLine=65536]="PreferNewLine",e[e.NoTrailingNewLine=131072]="NoTrailingNewLine",e[e.NoInterveningComments=262144]="NoInterveningComments",e[e.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",e[e.SingleElement=1048576]="SingleElement",e[e.SpaceAfterList=2097152]="SpaceAfterList",e[e.Modifiers=2359808]="Modifiers",e[e.HeritageClauses=512]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",e[e.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",e[e.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",e[e.UnionTypeConstituents=516]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",e[e.ImportAttributes=526226]="ImportAttributes",e[e.ImportClauseEntries=526226]="ImportClauseEntries",e[e.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",e[e.CommaListElements=528]="CommaListElements",e[e.CallExpressionArguments=2576]="CallExpressionArguments",e[e.NewExpressionArguments=18960]="NewExpressionArguments",e[e.TemplateExpressionSpans=262144]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=768]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=129]="MultiLineBlockStatements",e[e.VariableDeclarationList=528]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=0]="ClassHeritageClauses",e[e.ClassMembers=129]="ClassMembers",e[e.InterfaceMembers=129]="InterfaceMembers",e[e.EnumMembers=145]="EnumMembers",e[e.CaseBlockClauses=129]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",e[e.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",e[e.JsxElementAttributes=262656]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=528]="HeritageClauseTypes",e[e.SourceFileStatements=131073]="SourceFileStatements",e[e.Decorators=2146305]="Decorators",e[e.TypeArguments=53776]="TypeArguments",e[e.TypeParameters=53776]="TypeParameters",e[e.Parameters=2576]="Parameters",e[e.IndexSignatureParameters=8848]="IndexSignatureParameters",e[e.JSDocComment=33]="JSDocComment",e))(ei||{}),ti=(e=>(e[e.None=0]="None",e[e.TripleSlashXML=1]="TripleSlashXML",e[e.SingleLine=2]="SingleLine",e[e.MultiLine=4]="MultiLine",e[e.All=7]="All",e[e.Default=7]="Default",e))(ti||{}),ni={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0},{name:"resolution-mode",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}},ri=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))(ri||{})}});function yi(e){let t=5381;for(let n=0;n<e.length;n++)t=(t<<5)+t+e.charCodeAt(n);return t.toString()}function vi(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100)}function bi(e,t){return e.getModifiedTime(t)||ci}function Ei(e){return{250:e.Low,500:e.Medium,2e3:e.High}}function Si(e){if(!e.getEnvironmentVariable)return;const t=function(e,t){const r=n(e);if(r)return o("Low"),o("Medium"),o("High"),!0;return!1;function o(e){t[e]=r[e]||t[e]}}("TSC_WATCH_POLLINGINTERVAL",li);function n(t){let n;return r("Low"),r("Medium"),r("High"),n;function r(r){const o=function(t,n){return e.getEnvironmentVariable(`${t}_${n.toUpperCase()}`)}(t,r);o&&((n||(n={}))[r]=Number(o))}}function r(e,r){const o=n(e);return(t||o)&&Ei(o?{...r,...o}:r)}ui=r("TSC_WATCH_POLLINGCHUNKSIZE",di)||ui,pi=r("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",di)||pi}function Ti(e,t,n,r,o){let i=n;for(let s=t.length;r&&s;a(),s--){const a=t[n];if(!a)continue;if(a.isClosed){t[n]=void 0;continue}r--;const s=Ri(a,bi(e,a.fileName));a.isClosed?t[n]=void 0:(null==o||o(a,n,s),t[n]&&(i<n&&(t[i]=a,t[n]=void 0),i++))}return n;function a(){++n===t.length&&(i<n&&(t.length=i),n=0,i=0)}}function xi(e){const t=[],n=[],r=a(250),o=a(500),i=a(2e3);return function(n,r,o){const i={fileName:n,callback:r,unchangedPolls:0,mtime:bi(e,n)};return t.push(i),u(i,o),{close:()=>{i.isClosed=!0,on(t,i)}}};function a(e){const t=[];return t.pollingInterval=e,t.pollIndex=0,t.pollScheduled=!1,t}function s(e,t){t.pollIndex=c(t,t.pollingInterval,t.pollIndex,ui[t.pollingInterval]),t.length?f(t.pollingInterval):(In.assert(0===t.pollIndex),t.pollScheduled=!1)}function l(e,t){c(n,250,0,n.length),s(0,t),!t.pollScheduled&&n.length&&f(250)}function c(t,r,o,i){return Ti(e,t,o,i,(function(e,o,i){i?(e.unchangedPolls=0,t!==n&&(t[o]=void 0,a=e,n.push(a),p(250))):e.unchangedPolls!==pi[r]?e.unchangedPolls++:t===n?(e.unchangedPolls=1,t[o]=void 0,u(e,250)):2e3!==r&&(e.unchangedPolls++,t[o]=void 0,u(e,250===r?500:2e3));var a}))}function d(e){switch(e){case 250:return r;case 500:return o;case 2e3:return i}}function u(e,t){d(t).push(e),p(t)}function p(e){d(e).pollScheduled||f(e)}function f(t){d(t).pollScheduled=e.setTimeout(250===t?l:s,t,250===t?"pollLowPollingIntervalQueue":"pollPollingIntervalQueue",d(t))}}function Ai(e,t,n,r){const o=ct(),i=r?new Map:void 0,a=new Map,s=an(t);return function(t,r,l,c){const d=s(t);1===o.add(d,r).length&&i&&i.set(d,n(t)||ci);const u=ra(d)||".",p=a.get(u)||function(t,r,l){const c=e(t,1,((e,r)=>{if(!ht(r))return;const a=ma(r,t),l=s(a),c=a&&o.get(l);if(c){let t,r=1;if(i){const o=i.get(l);if("change"===e&&(t=n(a)||ci,t.getTime()===o.getTime()))return;t||(t=n(a)||ci),i.set(l,t),o===ci?r=0:t===ci&&(r=2)}for(const e of c)e(a,r,t)}}),!1,500,l);return c.referenceCount=0,a.set(r,c),c}(ra(t)||".",u,c);return p.referenceCount++,{close:()=>{1===p.referenceCount?(p.close(),a.delete(u)):p.referenceCount--,o.remove(d,r)}}}}function Ii(e,t,n,r,o){const i=an(t)(n),a=e.get(i);return a?a.callbacks.push(r):e.set(i,{watcher:o(((t,n,r)=>{var o;return null==(o=e.get(i))?void 0:o.callbacks.slice().forEach((e=>e(t,n,r)))})),callbacks:[r]}),{close:()=>{const t=e.get(i);t&&tn(t.callbacks,r)&&!t.callbacks.length&&(e.delete(i),lU(t))}}}function Ri(e,t){const n=e.mtime.getTime(),r=t.getTime();return n!==r&&(e.mtime=t,e.callback(e.fileName,Ci(n,r),t),!0)}function Ci(e,t){return 0===e?0:0===t?2:1}function Di(e){return mi(e)}function Ni(e){mi=e}function Mi({watchDirectory:e,useCaseSensitiveFileNames:t,getCurrentDirectory:n,getAccessibleSortedChildDirectories:r,fileSystemEntryExists:i,realpath:a,setTimeout:s,clearTimeout:l}){const c=new Map,d=ct(),u=new Map;let p;const f=Vt(!t),m=an(t);return(t,n,r,o)=>r?_(t,o,n):e(t,n,r,o);function _(t,n,r){const a=m(t);let f=c.get(a);f?f.refCount++:(f={watcher:e(t,(e=>{b(e,n)||((null==n?void 0:n.synchronousWatchDirectory)?(h(a,e),v(t,a,n)):function(e,t,n,r){const o=c.get(t);if(o&&i(e,1))return void function(e,t,n,r){const o=u.get(t);o?o.fileNames.push(n):u.set(t,{dirName:e,options:r,fileNames:[n]});p&&(l(p),p=void 0);p=s(g,1e3,"timerToUpdateChildWatches")}(e,t,n,r);h(t,n),y(o)}(t,a,e,n))}),!1,n),refCount:1,childWatches:o},c.set(a,f),v(t,a,n));const _=r&&{dirName:t,callback:r};return _&&d.add(a,_),{dirName:t,close:()=>{const e=In.checkDefined(c.get(a));_&&d.remove(a,_),e.refCount--,e.refCount||(c.delete(a),lU(e),e.childWatches.forEach(fS))}}}function h(e,t,n){let r,o;ht(t)?r=t:o=t,d.forEach(((t,i)=>{if((!o||!0!==o.get(i))&&(i===e||dn(e,i)&&e[i.length]===Fi))if(o)if(n){const e=o.get(i);e?e.push(...n):o.set(i,n.slice())}else o.set(i,!0);else t.forEach((({callback:e})=>e(r)))}))}function g(){p=void 0,Di(`sysLog:: onTimerToUpdateChildWatches:: ${u.size}`);const e=nr(),t=new Map;for(;!p&&u.size;){const e=u.entries().next();In.assert(!e.done);const{value:[n,{dirName:r,options:o,fileNames:i}]}=e;u.delete(n);const a=v(r,n,o);h(n,t,a?void 0:i)}Di(`sysLog:: invokingWatchers:: Elapsed:: ${nr()-e}ms:: ${u.size}`),d.forEach(((e,n)=>{const r=t.get(n);r&&e.forEach((({callback:e,dirName:t})=>{mt(r)?r.forEach(e):e(t)}))}));Di(`sysLog:: Elapsed:: ${nr()-e}ms:: onTimerToUpdateChildWatches:: ${u.size} ${p}`)}function y(e){if(!e)return;const t=e.childWatches;e.childWatches=o;for(const n of t)n.close(),y(c.get(m(n.dirName)))}function v(e,t,n){const s=c.get(t);if(!s)return!1;let l;const d=vn(i(e,1)?Z(r(e),(t=>{const r=ma(t,e);return b(r,n)||0!==f(r,_a(a(r)))?void 0:r})):o,s.childWatches,((e,t)=>f(e,t.dirName)),(function(e){u(_(e,n))}),fS,u);return s.childWatches=l||o,d;function u(e){(l||(l=[])).push(e)}}function b(e,r){return se(fi,(n=>function(e,n){return!!e.includes(n)||!t&&m(e).includes(n)}(e,n)))||Li(e,r,t,n)}}function Li(e,t,n,r){return((null==t?void 0:t.excludeDirectories)||(null==t?void 0:t.excludeFiles))&&(NO(e,null==t?void 0:t.excludeFiles,n,r())||NO(e,null==t?void 0:t.excludeDirectories,n,r()))}function ki(e,t,n,r,o){return(i,a)=>{if("rename"===i){const i=a?_a(ua(e,a)):e;a&&Li(i,n,r,o)||t(i)}}}function Pi({pollingWatchFileWorker:e,getModifiedTime:t,setTimeout:n,clearTimeout:r,fsWatchWorker:o,fileSystemEntryExists:i,useCaseSensitiveFileNames:a,getCurrentDirectory:s,fsSupportsRecursiveFsWatch:l,getAccessibleSortedChildDirectories:c,realpath:d,tscWatchFile:u,useNonPollingWatchers:p,tscWatchDirectory:f,inodeWatching:m,fsWatchWithTimestamp:_,sysLog:h}){const g=new Map,y=new Map,v=new Map;let b,E,S,T,x=!1;return{watchFile:A,watchDirectory:function(e,t,o,u){if(l)return M(e,1,ki(e,t,u,a,s),o,500,sU(u));T||(T=Mi({useCaseSensitiveFileNames:a,getCurrentDirectory:s,fileSystemEntryExists:i,getAccessibleSortedChildDirectories:c,watchDirectory:D,realpath:d,setTimeout:n,clearTimeout:r}));return T(e,t,o,u)}};function A(e,n,r,o){o=function(e,t){if(e&&void 0!==e.watchFile)return e;switch(u){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return C(4,1,e);case"UseFsEventsWithFallbackDynamicPolling":return C(4,2,e);case"UseFsEventsOnParentDirectory":t=!0;default:return t?C(5,1,e):{watchFile:4}}}(o,p);const i=In.checkDefined(o.watchFile);switch(i){case 0:return N(e,n,250,void 0);case 1:return N(e,n,r,void 0);case 2:return I()(e,n,r,void 0);case 3:return R()(e,n,void 0,void 0);case 4:return M(e,0,function(e,t,n){return(r,o,i)=>{"rename"===r?(i||(i=n(e)||ci),t(e,i!==ci?0:2,i)):t(e,1,i)}}(e,n,t),!1,r,sU(o));case 5:return S||(S=Ai(M,a,t,_)),S(e,n,r,sU(o));default:In.assertNever(i)}}function I(){return b||(b=xi({getModifiedTime:t,setTimeout:n}))}function R(){return E||(E=function(e){const t=[];let n,r=0;return function(n,r){const o={fileName:n,callback:r,mtime:bi(e,n)};return t.push(o),i(),{close:()=>{o.isClosed=!0,on(t,o)}}};function o(){n=void 0,r=Ti(e,t,r,ui[250]),i()}function i(){t.length&&!n&&(n=e.setTimeout(o,2e3,"pollQueue"))}}({getModifiedTime:t,setTimeout:n}))}function C(e,t,n){const r=null==n?void 0:n.fallbackPolling;return{watchFile:e,fallbackPolling:void 0===r?t:r}}function D(e,t,n,r){In.assert(!n);const o=function(e){if(e&&void 0!==e.watchDirectory)return e;switch(f){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:const t=null==e?void 0:e.fallbackPolling;return{watchDirectory:0,fallbackPolling:void 0!==t?t:void 0}}}(r),i=In.checkDefined(o.watchDirectory);switch(i){case 1:return N(e,(()=>t(e)),500,void 0);case 2:return I()(e,(()=>t(e)),500,void 0);case 3:return R()(e,(()=>t(e)),void 0,void 0);case 0:return M(e,1,ki(e,t,r,a,s),n,500,sU(o));default:In.assertNever(i)}}function N(t,n,r,o){return Ii(g,a,t,n,(n=>e(t,n,r,o)))}function M(e,n,r,s,l,c){return Ii(s?v:y,a,e,r,(r=>function(e,n,r,a,s,l){let c,d;m&&(c=e.substring(e.lastIndexOf(Fi)),d=c.slice(Fi.length));let u=i(e,n)?f():v();return{close:()=>{u&&(u.close(),u=void 0)}};function p(t){u&&(h(`sysLog:: ${e}:: Changing watcher to ${t===f?"Present":"Missing"}FileSystemEntryWatcher`),u.close(),u=t())}function f(){if(x)return h(`sysLog:: ${e}:: Defaulting to watchFile`),y();try{const t=(1!==n&&_?L:o)(e,a,m?g:r);return t.on("error",(()=>{r("rename",""),p(v)})),t}catch(t){return x||(x="ENOSPC"===t.code),h(`sysLog:: ${e}:: Changing to watchFile`),y()}}function g(n,o){let i;if(o&&Yt(o,"~")&&(i=o,o=o.slice(0,o.length-1)),"rename"!==n||o&&o!==d&&!Yt(o,c))i&&r(n,i),r(n,o);else{const a=t(e)||ci;i&&r(n,i,a),r(n,o,a),m?p(a===ci?v:f):a===ci&&p(v)}}function y(){return A(e,function(e){return(t,n,r)=>e(1===n?"change":"rename","",r)}(r),s,l)}function v(){return A(e,((n,o,i)=>{0===o&&(i||(i=t(e)||ci),i!==ci&&(r("rename","",i),p(f)))}),s,l)}}(e,n,r,s,l,c)))}function L(e,n,r){let i=t(e)||ci;return o(e,n,((n,o,a)=>{"change"===n&&(a||(a=t(e)||ci),a.getTime()===i.getTime())||(i=a||t(e)||ci,r(n,o,i))}))}}function wi(e){const t=e.writeFile;e.writeFile=(n,r,o)=>pb(n,r,!!o,((n,r,o)=>t.call(e,n,r,o)),(t=>e.createDirectory(t)),(t=>e.directoryExists(t)))}function Oi(e){hi=e}var Fi,Wi,zi,Bi,Gi,ji=b({"src/compiler/sys.ts"(){JJ(),si=(e=>(e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",e))(si||{}),li=(e=>(e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low",e))(li||{}),ci=new Date(0),ui=Ei(di={Low:32,Medium:64,High:256}),pi=Ei(di),fi=["/node_modules/.","/.git","/.#"],mi=bt,_i=(e=>(e[e.File=0]="File",e[e.Directory=1]="Directory",e))(_i||{}),(hi=(()=>{let e;return xn()&&(e=function(){const e=/^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/,t=c("fs"),r=c("path"),o=c("os");let i,s;try{i=c("crypto")}catch{i=void 0}let l="./profile.cpuprofile";const d=c("buffer").Buffer,u="darwin"===process.platform,p="linux"===process.platform||u,f=o.platform(),m=function(){return"win32"!==f&&"win64"!==f&&!R((e=a,e.replace(/\w/g,(e=>{const t=e.toUpperCase();return e===t?e.toLowerCase():t}))));var e}(),_=t.realpathSync.native?"win32"===process.platform?function(e){return e.length<260?t.realpathSync.native(e):t.realpathSync(e)}:t.realpathSync.native:t.realpathSync,h=a.endsWith("sys.js")?r.join(r.dirname("/"),"__fake__.js"):a,g="win32"===process.platform||u,y=Ct((()=>process.cwd())),{watchFile:v,watchDirectory:b}=Pi({pollingWatchFileWorker:function(e,n,r){let o;return t.watchFile(e,{persistent:!0,interval:r},i),{close:()=>t.unwatchFile(e,i)};function i(t,r){const i=0===+r.mtime||2===o;if(0===+t.mtime){if(i)return;o=2}else if(i)o=0;else{if(+t.mtime===+r.mtime)return;o=1}n(e,o,t.mtime)}},getModifiedTime:D,setTimeout:setTimeout,clearTimeout:clearTimeout,fsWatchWorker:function(e,n,r){return t.watch(e,g?{persistent:!0,recursive:!!n}:{persistent:!0},r)},useCaseSensitiveFileNames:m,getCurrentDirectory:y,fileSystemEntryExists:I,fsSupportsRecursiveFsWatch:g,getAccessibleSortedChildDirectories:e=>A(e).directories,realpath:C,tscWatchFile:{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}.TSC_WATCHFILE,useNonPollingWatchers:!!{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}.TSC_NONPOLLING_WATCHER,tscWatchDirectory:{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}.TSC_WATCHDIRECTORY,inodeWatching:p,fsWatchWithTimestamp:u,sysLog:Di}),E={args:process.argv.slice(2),newLine:o.EOL,useCaseSensitiveFileNames:m,write(e){process.stdout.write(e)},getWidthOfTerminal:()=>process.stdout.columns,writeOutputIsTTY:()=>process.stdout.isTTY,readFile:function(e,n){var r,o;null==(r=sr)||r.logStartReadFile(e);const i=function(e){let n;try{n=t.readFileSync(e)}catch(o){return}let r=n.length;if(r>=2&&254===n[0]&&255===n[1]){r&=-2;for(let e=0;e<r;e+=2){const t=n[e];n[e]=n[e+1],n[e+1]=t}return n.toString("utf16le",2)}return r>=2&&255===n[0]&&254===n[1]?n.toString("utf16le",2):r>=3&&239===n[0]&&187===n[1]&&191===n[2]?n.toString("utf8",3):n.toString("utf8")}(e);return null==(o=sr)||o.logStopReadFile(),i},writeFile:function(e,n,r){var o;let i;null==(o=sr)||o.logEvent("WriteFile: "+e),r&&(n="\ufeff"+n);try{i=t.openSync(e,"w"),t.writeSync(i,n,void 0,"utf8")}finally{void 0!==i&&t.closeSync(i)}},watchFile:v,watchDirectory:b,resolvePath:e=>r.resolve(e),fileExists:R,directoryExists:function(e){return I(e,1)},getAccessibleFileSystemEntries:A,createDirectory(e){if(!E.directoryExists(e))try{t.mkdirSync(e)}catch(n){if("EEXIST"!==n.code)throw n}},getExecutingFilePath:()=>h,getCurrentDirectory:y,getDirectories:function(e){return A(e).directories.slice()},getEnvironmentVariable:e=>({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}[e]||""),readDirectory:function(e,t,n,r,o){return XT(e,t,n,r,m,process.cwd(),o,A,C)},getModifiedTime:D,setModifiedTime:function(e,n){try{t.utimesSync(e,n,n)}catch(r){return}},deleteFile:function(e){try{return t.unlinkSync(e)}catch(n){return}},createHash:i?N:yi,createSHA256Hash:i?N:void 0,getMemoryUsage:()=>(n.g.gc&&n.g.gc(),process.memoryUsage().heapUsed),getFileSize(e){try{const t=S(e);if(null==t?void 0:t.isFile())return t.size}catch{}return 0},exit(e){T((()=>process.exit(e)))},enableCPUProfiler:function(e,t){if(s)return t(),!1;const n=c("inspector");if(!n||!n.Session)return t(),!1;const r=new n.Session;return r.connect(),r.post("Profiler.enable",(()=>{r.post("Profiler.start",(()=>{s=r,l=e,t()}))})),!0},disableCPUProfiler:T,cpuProfilingEnabled:()=>!!s||F(process.execArgv,"--cpu-prof")||F(process.execArgv,"--prof"),realpath:C,debugMode:!!{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}.NODE_INSPECTOR_IPC||!!{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}.VSCODE_INSPECTOR_OPTIONS||se(process.execArgv,(e=>/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(e)))||!!process.recordreplay,tryEnableSourceMapsForHost(){try{c("source-map-support").install()}catch{}},setTimeout:setTimeout,clearTimeout:clearTimeout,clearScreen:()=>{process.stdout.write("\x1bc")},setBlocking:()=>{var e;const t=null==(e=process.stdout)?void 0:e._handle;t&&t.setBlocking&&t.setBlocking(!0)},bufferFrom:x,base64decode:e=>x(e,"base64").toString("utf8"),base64encode:e=>x(e).toString("base64"),require:(e,t)=>{try{const n=FF(t,e,E);return{module:c(n),modulePath:n,error:void 0}}catch(n){return{module:void 0,modulePath:void 0,error:n}}}};return E;function S(e){return t.statSync(e,{throwIfNoEntry:!1})}function T(n){if(s&&"stopping"!==s){const o=s;return s.post("Profiler.stop",((i,{profile:a})=>{var c;if(!i){try{(null==(c=S(l))?void 0:c.isDirectory())&&(l=r.join(l,`${(new Date).toISOString().replace(/:/g,"-")}+P${process.pid}.cpuprofile`))}catch{}try{t.mkdirSync(r.dirname(l),{recursive:!0})}catch{}t.writeFileSync(l,JSON.stringify(function(t){let n=0;const o=new Map,i=ca(r.dirname(h)),a=`file://${1===na(i)?"":"/"}${i}`;for(const r of t.nodes)if(r.callFrame.url){const t=ca(r.callFrame.url);Ra(a,t,m)?r.callFrame.url=ka(a,t,a,an(m),!0):e.test(t)||(r.callFrame.url=(o.has(t)?o:o.set(t,`external${n}.js`)).get(t),n++)}return t}(a)))}s=void 0,o.disconnect(),n()})),s="stopping",!0}return n(),!1}function x(e,t){return d.from&&d.from!==Int8Array.from?d.from(e,t):new d(e,t)}function A(e){var n;null==(n=sr)||n.logEvent("ReadDir: "+(e||"."));try{const n=t.readdirSync(e||".",{withFileTypes:!0}),o=[],i=[];for(const t of n){const n="string"===typeof t?t:t.name;if("."===n||".."===n)continue;let a;if("string"===typeof t||t.isSymbolicLink()){const t=ua(e,n);try{if(a=S(t),!a)continue}catch(r){continue}}else a=t;a.isFile()?o.push(n):a.isDirectory()&&i.push(n)}return o.sort(),i.sort(),{files:o,directories:i}}catch(r){return If}}function I(e,t){const n=Error.stackTraceLimit;Error.stackTraceLimit=0;try{const n=S(e);if(!n)return!1;switch(t){case 0:return n.isFile();case 1:return n.isDirectory();default:return!1}}catch(r){return!1}finally{Error.stackTraceLimit=n}}function R(e){return I(e,0)}function C(e){try{return _(e)}catch{return e}}function D(e){var t;const n=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return null==(t=S(e))?void 0:t.mtime}catch(r){return}finally{Error.stackTraceLimit=n}}function N(e){const t=i.createHash("sha256");return t.update(e),t.digest("hex")}}()),e&&wi(e),e})())&&hi.getEnvironmentVariable&&(Si(hi),In.setAssertionLevel(/^development$/i.test(hi.getEnvironmentVariable("NODE_ENV"))?1:0)),hi&&hi.debugMode&&(In.isDebugging=!0)}});function Vi(e){return 47===e||92===e}function Ui(e){return ta(e)<0}function Hi(e){return ta(e)>0}function Ki(e){const t=ta(e);return t>0&&t===e.length}function qi(e){return 0!==ta(e)}function Ji(e){return/^\.\.?($|[\\/])/.test(e)}function Xi(e){return!qi(e)&&!Ji(e)}function $i(e){return oa(e).includes(".")}function Yi(e,t){return e.length>t.length&&Yt(e,t)}function Qi(e,t){for(const n of t)if(Yi(e,n))return!0;return!1}function Zi(e){return e.length>0&&Vi(e.charCodeAt(e.length-1))}function ea(e){return e>=97&&e<=122||e>=65&&e<=90}function ta(e){if(!e)return 0;const t=e.charCodeAt(0);if(47===t||92===t){if(e.charCodeAt(1)!==t)return 1;const n=e.indexOf(47===t?Fi:Wi,2);return n<0?e.length:n+1}if(ea(t)&&58===e.charCodeAt(1)){const t=e.charCodeAt(2);if(47===t||92===t)return 3;if(2===e.length)return 2}const n=e.indexOf(zi);if(-1!==n){const t=n+zi.length,r=e.indexOf(Fi,t);if(-1!==r){const o=e.slice(0,n),i=e.slice(t,r);if("file"===o&&(""===i||"localhost"===i)&&ea(e.charCodeAt(r+1))){const t=function(e,t){const n=e.charCodeAt(t);if(58===n)return t+1;if(37===n&&51===e.charCodeAt(t+1)){const n=e.charCodeAt(t+2);if(97===n||65===n)return t+3}return-1}(e,r+2);if(-1!==t){if(47===e.charCodeAt(t))return~(t+1);if(t===e.length)return~t}}return~(r+1)}return~e.length}return 0}function na(e){const t=ta(e);return t<0?~t:t}function ra(e){const t=na(e=ca(e));return t===e.length?e:(e=ya(e)).slice(0,Math.max(t,e.lastIndexOf(Fi)))}function oa(e,t,n){if(na(e=ca(e))===e.length)return"";const r=(e=ya(e)).slice(Math.max(na(e),e.lastIndexOf(Fi)+1)),o=void 0!==t&&void 0!==n?aa(r,t,n):void 0;return o?r.slice(0,r.length-o.length):r}function ia(e,t,n){if(dn(t,".")||(t="."+t),e.length>=t.length&&46===e.charCodeAt(e.length-t.length)){const r=e.slice(e.length-t.length);if(n(r,t))return r}}function aa(e,t,n){if(t)return function(e,t,n){if("string"===typeof t)return ia(e,t,n)||"";for(const r of t){const t=ia(e,r,n);if(t)return t}return""}(ya(e),t,n?Pt:wt);const r=oa(e),o=r.lastIndexOf(".");return o>=0?r.substring(o):""}function sa(e,t=""){return function(e,t){const n=e.substring(0,t),r=e.substring(t).split(Fi);return r.length&&!Oe(r)&&r.pop(),[n,...r]}(e=ua(t,e),na(e))}function la(e,t){if(0===e.length)return"";return(e[0]&&va(e[0]))+e.slice(1,t).join(Fi)}function ca(e){return e.includes("\\")?e.replace(Bi,Fi):e}function da(e){if(!se(e))return[];const t=[e[0]];for(let n=1;n<e.length;n++){const r=e[n];if(r&&"."!==r){if(".."===r)if(t.length>1){if(".."!==t[t.length-1]){t.pop();continue}}else if(t[0])continue;t.push(r)}}return t}function ua(e,...t){e&&(e=ca(e));for(let n of t)n&&(n=ca(n),e=e&&0===na(n)?va(e)+n:n);return e}function pa(e,...t){return _a(se(t)?ua(e,...t):ca(e))}function fa(e,t){return da(sa(e,t))}function ma(e,t){return la(fa(e,t))}function _a(e){if(e=ca(e),!Gi.test(e))return e;const t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!Gi.test(e)))return e;const n=la(da(sa(e)));return n&&Zi(e)?va(n):n}function ha(e,t){return 0===(n=fa(e,t)).length?"":n.slice(1).join(Fi);var n}function ga(e,t,n){return n(Hi(e)?_a(e):ma(e,t))}function ya(e){return Zi(e)?e.substr(0,e.length-1):e}function va(e){return Zi(e)?e:e+Fi}function ba(e){return qi(e)||Ji(e)?e:"./"+e}function Ea(e,t,n,r){const o=void 0!==n&&void 0!==r?aa(e,n,r):aa(e);return o?e.slice(0,e.length-o.length)+(dn(t,".")?t:"."+t):e}function Sa(e,t){const n=hP(e);return n?e.slice(0,e.length-n.length)+(dn(t,".")?t:"."+t):Ea(e,t)}function Ta(e,t,n){if(e===t)return 0;if(void 0===e)return-1;if(void 0===t)return 1;const r=e.substring(0,na(e)),o=t.substring(0,na(t)),i=Bt(r,o);if(0!==i)return i;const a=e.substring(r.length),s=t.substring(o.length);if(!Gi.test(a)&&!Gi.test(s))return n(a,s);const l=da(sa(e)),c=da(sa(t)),d=Math.min(l.length,c.length);for(let u=1;u<d;u++){const e=n(l[u],c[u]);if(0!==e)return e}return Ft(l.length,c.length)}function xa(e,t){return Ta(e,t,jt)}function Aa(e,t){return Ta(e,t,Bt)}function Ia(e,t,n,r){return"string"===typeof n?(e=ua(n,e),t=ua(n,t)):"boolean"===typeof n&&(r=n),Ta(e,t,Vt(r))}function Ra(e,t,n,r){if("string"===typeof n?(e=ua(n,e),t=ua(n,t)):"boolean"===typeof n&&(r=n),void 0===e||void 0===t)return!1;if(e===t)return!0;const o=da(sa(e)),i=da(sa(t));if(i.length<o.length)return!1;const a=r?Pt:wt;for(let s=0;s<o.length;s++){if(!(0===s?Pt:a)(o[s],i[s]))return!1}return!0}function Ca(e,t,n){const r=n(e),o=n(t);return dn(r,o+"/")||dn(r,o+"\\")}function Da(e,t,n,r){const o=da(sa(e)),i=da(sa(t));let a;for(a=0;a<o.length&&a<i.length;a++){if(!(0===a?Pt:n)(r(o[a]),r(i[a])))break}if(0===a)return i;const s=i.slice(a),l=[];for(;a<o.length;a++)l.push("..");return["",...l,...s]}function Na(e,t,n){In.assert(na(e)>0===na(t)>0,"Paths must either both be absolute or both be relative");return la(Da(e,t,"boolean"===typeof n&&n?Pt:wt,"function"===typeof n?n:xt))}function Ma(e,t,n){return Hi(e)?ka(t,e,t,n,!1):e}function La(e,t,n){return ba(Na(ra(e),t,n))}function ka(e,t,n,r,o){const i=Da(pa(n,e),pa(n,t),wt,r),a=i[0];if(o&&Hi(a)){const e=a.charAt(0)===Fi?"file://":"file:///";i[0]=e+a}return la(i)}function Pa(e,t){for(;;){const n=t(e);if(void 0!==n)return n;const r=ra(e);if(r===e)return;e=r}}function wa(e){return Yt(e,"/node_modules")}var Oa,Fa=b({"src/compiler/path.ts"(){JJ(),Fi="/",Wi="\\",zi="://",Bi=/\\/g,Gi=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/}});function Wa(e,t,n,r,o,i,a){return{code:e,category:t,key:n,message:r,reportsUnnecessary:o,elidedInCompatabilityPyramid:i,reportsDeprecated:a}}var za,Ba,Ga,ja,Va,Ua,Ha,Ka,qa,Ja,Xa,$a,Ya,Qa,Za,es,ts=b({"src/compiler/diagnosticInformationMap.generated.ts"(){gi(),Oa={Unterminated_string_literal:Wa(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:Wa(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:Wa(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:Wa(1006,1,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:Wa(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:Wa(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:Wa(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:Wa(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:Wa(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:Wa(1013,1,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:Wa(1014,1,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:Wa(1015,1,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:Wa(1016,1,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:Wa(1017,1,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:Wa(1018,1,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:Wa(1019,1,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:Wa(1020,1,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:Wa(1021,1,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:Wa(1022,1,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:Wa(1024,1,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:Wa(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:Wa(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:Wa(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:Wa(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:Wa(1031,1,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:Wa(1034,1,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:Wa(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:Wa(1036,1,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:Wa(1038,1,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:Wa(1039,1,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:Wa(1040,1,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:Wa(1042,1,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:Wa(1044,1,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:Wa(1046,1,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:Wa(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:Wa(1048,1,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:Wa(1049,1,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:Wa(1051,1,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:Wa(1052,1,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:Wa(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:Wa(1054,1,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:Wa(1055,1,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055","Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:Wa(1056,1,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:Wa(1058,1,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:Wa(1059,1,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:Wa(1060,1,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:Wa(1061,1,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:Wa(1062,1,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:Wa(1063,1,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:Wa(1064,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise<T> type. Did you mean to write 'Promise<{0}>'?"),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:Wa(1065,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065","The return type of an async function or method must be the global Promise<T> type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:Wa(1066,1,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:Wa(1068,1,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:Wa(1069,1,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:Wa(1070,1,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:Wa(1071,1,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:Wa(1079,1,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:Wa(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:Wa(1089,1,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:Wa(1090,1,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:Wa(1091,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:Wa(1092,1,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:Wa(1093,1,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:Wa(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:Wa(1095,1,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:Wa(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:Wa(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:Wa(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:Wa(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:Wa(1100,1,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:Wa(1101,1,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:Wa(1102,1,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:Wa(1103,1,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:Wa(1104,1,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:Wa(1105,1,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:Wa(1106,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:Wa(1107,1,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:Wa(1108,1,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:Wa(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:Wa(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:Wa(1111,1,"Private_field_0_must_be_declared_in_an_enclosing_class_1111","Private field '{0}' must be declared in an enclosing class."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:Wa(1113,1,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:Wa(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:Wa(1115,1,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:Wa(1116,1,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name:Wa(1117,1,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:Wa(1118,1,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:Wa(1119,1,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:Wa(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:Wa(1121,1,"Octal_literals_are_not_allowed_Use_the_syntax_0_1121","Octal literals are not allowed. Use the syntax '{0}'."),Variable_declaration_list_cannot_be_empty:Wa(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:Wa(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:Wa(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:Wa(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:Wa(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:Wa(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:Wa(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:Wa(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:Wa(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:Wa(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:Wa(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:Wa(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:Wa(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:Wa(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:Wa(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:Wa(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:Wa(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:Wa(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:Wa(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:Wa(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:Wa(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:Wa(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:Wa(1147,1,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:Wa(1148,1,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:Wa(1149,1,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),_0_declarations_must_be_initialized:Wa(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:Wa(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:Wa(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:Wa(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:Wa(1162,1,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:Wa(1163,1,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:Wa(1164,1,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:Wa(1165,1,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:Wa(1166,1,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:Wa(1168,1,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:Wa(1169,1,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:Wa(1170,1,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:Wa(1171,1,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:Wa(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:Wa(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:Wa(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:Wa(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:Wa(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:Wa(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:Wa(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:Wa(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:Wa(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:Wa(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:Wa(1182,1,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:Wa(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:Wa(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:Wa(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:Wa(1186,1,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:Wa(1187,1,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:Wa(1188,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:Wa(1189,1,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:Wa(1190,1,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:Wa(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:Wa(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:Wa(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:Wa(1194,1,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:Wa(1195,1,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:Wa(1196,1,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:Wa(1197,1,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:Wa(1198,1,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:Wa(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:Wa(1200,1,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:Wa(1202,1,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202","Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from \"mod\"', 'import {a} from \"mod\"', 'import d from \"mod\"', or another module format instead."),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:Wa(1203,1,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_0_is_enabled_requires_using_export_type:Wa(1205,1,"Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205","Re-exporting a type when '{0}' is enabled requires using 'export type'."),Decorators_are_not_valid_here:Wa(1206,1,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:Wa(1207,1,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:Wa(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:Wa(1210,1,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:Wa(1211,1,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:Wa(1212,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:Wa(1213,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:Wa(1214,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:Wa(1215,1,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:Wa(1216,1,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:Wa(1218,1,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Generators_are_not_allowed_in_an_ambient_context:Wa(1221,1,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:Wa(1222,1,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:Wa(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:Wa(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:Wa(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:Wa(1226,1,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:Wa(1227,1,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:Wa(1228,1,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:Wa(1229,1,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:Wa(1230,1,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:Wa(1231,1,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:Wa(1232,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:Wa(1233,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:Wa(1234,1,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module:Wa(1235,1,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:Wa(1236,1,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:Wa(1237,1,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:Wa(1238,1,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:Wa(1239,1,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:Wa(1240,1,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:Wa(1241,1,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:Wa(1242,1,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:Wa(1243,1,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:Wa(1244,1,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:Wa(1245,1,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:Wa(1246,1,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:Wa(1247,1,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:Wa(1248,1,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:Wa(1249,1,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5:Wa(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:Wa(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:Wa(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."),Abstract_properties_can_only_appear_within_an_abstract_class:Wa(1253,1,"Abstract_properties_can_only_appear_within_an_abstract_class_1253","Abstract properties can only appear within an abstract class."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:Wa(1254,1,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:Wa(1255,1,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:Wa(1257,1,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:Wa(1258,1,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:Wa(1259,1,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:Wa(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:Wa(1261,1,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:Wa(1262,1,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:Wa(1263,1,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:Wa(1264,1,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:Wa(1265,1,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:Wa(1266,1,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:Wa(1267,1,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:Wa(1268,1,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled:Wa(1269,1,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269","Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled."),Decorator_function_return_type_0_is_not_assignable_to_type_1:Wa(1270,1,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:Wa(1271,1,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:Wa(1272,1,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:Wa(1273,1,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:Wa(1274,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:Wa(1275,1,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:Wa(1276,1,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class:Wa(1277,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277","'{0}' modifier can only appear on a type parameter of a function, method or class"),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:Wa(1278,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278","The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}."),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:Wa(1279,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279","The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}."),Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement:Wa(1280,1,"Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280","Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement."),Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead:Wa(1281,1,"Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281","Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead."),An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:Wa(1282,1,"An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282","An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:Wa(1283,1,"An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283","An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:Wa(1284,1,"An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284","An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:Wa(1285,1,"An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285","An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:Wa(1286,1,"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286","ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:Wa(1287,1,"A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287","A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:Wa(1288,1,"An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288","An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:Wa(1289,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:Wa(1290,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:Wa(1291,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:Wa(1292,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),with_statements_are_not_allowed_in_an_async_function_block:Wa(1300,1,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:Wa(1308,1,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:Wa(1309,1,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:Wa(1312,1,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:Wa(1313,1,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:Wa(1314,1,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:Wa(1315,1,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:Wa(1316,1,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:Wa(1317,1,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:Wa(1318,1,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:Wa(1319,1,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:Wa(1320,1,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:Wa(1321,1,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:Wa(1322,1,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext:Wa(1323,1,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext:Wa(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', or 'nodenext'."),Argument_of_dynamic_import_cannot_be_spread_element:Wa(1325,1,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:Wa(1326,1,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:Wa(1327,1,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:Wa(1328,1,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:Wa(1329,1,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:Wa(1330,1,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:Wa(1331,1,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:Wa(1332,1,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:Wa(1333,1,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:Wa(1334,1,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:Wa(1335,1,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:Wa(1337,1,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:Wa(1338,1,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:Wa(1339,1,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:Wa(1340,1,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Class_constructor_may_not_be_an_accessor:Wa(1341,1,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext:Wa(1343,1,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."),A_label_is_not_allowed_here:Wa(1344,1,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:Wa(1345,1,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:Wa(1346,1,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:Wa(1347,1,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:Wa(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:Wa(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:Wa(1350,3,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:Wa(1351,1,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:Wa(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:Wa(1353,1,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:Wa(1354,1,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:Wa(1355,1,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:Wa(1356,1,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:Wa(1357,1,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:Wa(1358,1,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:Wa(1359,1,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:Wa(1360,1,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:Wa(1361,1,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:Wa(1362,1,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:Wa(1363,1,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:Wa(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:Wa(1365,3,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:Wa(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:Wa(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:Wa(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:Wa(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error:Wa(1371,1,"This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371","This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:Wa(1375,1,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:Wa(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:Wa(1377,3,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:Wa(1378,1,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:Wa(1379,1,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:Wa(1380,1,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:Wa(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:Wa(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:Wa(1385,1,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:Wa(1386,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:Wa(1387,1,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:Wa(1388,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:Wa(1389,1,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:Wa(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:Wa(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:Wa(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:Wa(1394,3,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:Wa(1395,3,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:Wa(1396,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:Wa(1397,3,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:Wa(1398,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:Wa(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:Wa(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:Wa(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:Wa(1402,3,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:Wa(1403,3,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:Wa(1404,3,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:Wa(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:Wa(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:Wa(1407,3,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:Wa(1408,3,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:Wa(1409,3,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:Wa(1410,3,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:Wa(1411,3,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:Wa(1412,3,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:Wa(1413,3,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:Wa(1414,3,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:Wa(1415,3,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:Wa(1416,3,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:Wa(1417,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:Wa(1418,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:Wa(1419,3,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:Wa(1420,3,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:Wa(1421,3,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:Wa(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:Wa(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:Wa(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:Wa(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:Wa(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:Wa(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:Wa(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:Wa(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:Wa(1430,3,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:Wa(1431,1,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:Wa(1432,1,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:Wa(1433,1,"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433","Neither decorators nor modifiers may be applied to 'this' parameters."),Unexpected_keyword_or_identifier:Wa(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:Wa(1435,1,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:Wa(1436,1,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:Wa(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:Wa(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:Wa(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:Wa(1440,1,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:Wa(1441,1,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:Wa(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:Wa(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443","Module declaration names may only use ' or \" quoted strings."),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:Wa(1444,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444","'{0}' is a type and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:Wa(1446,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:Wa(1448,1,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:Wa(1449,3,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments:Wa(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional set of attributes as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:Wa(1451,1,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_should_be_either_require_or_import:Wa(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:Wa(1454,1,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:Wa(1455,1,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:Wa(1456,1,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:Wa(1457,3,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:Wa(1458,3,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",'File is ECMAScript module because \'{0}\' has field "type" with value "module"'),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:Wa(1459,3,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",'File is CommonJS module because \'{0}\' has field "type" whose value is not "module"'),File_is_CommonJS_module_because_0_does_not_have_field_type:Wa(1460,3,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460","File is CommonJS module because '{0}' does not have field \"type\""),File_is_CommonJS_module_because_package_json_was_not_found:Wa(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),resolution_mode_is_the_only_valid_key_for_type_import_attributes:Wa(1463,1,"resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463","'resolution-mode' is the only valid key for type import attributes."),Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:Wa(1464,1,"Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464","Type import attributes should have exactly one key - 'resolution-mode' - with value 'import' or 'require'."),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:Wa(1470,1,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:Wa(1471,1,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:Wa(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:Wa(1473,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:Wa(1474,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:Wa(1475,3,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:Wa(1476,3,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:Wa(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:Wa(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:Wa(1479,1,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479","The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"{0}\")' call instead."),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:Wa(1480,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:Wa(1481,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481","To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field `\"type\": \"module\"` to '{1}'."),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:Wa(1482,3,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:Wa(1483,3,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:Wa(1484,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484","'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:Wa(1485,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),Decorator_used_before_export_here:Wa(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:Wa(1487,1,"Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487","Octal escape sequences are not allowed. Use the syntax '{0}'."),Escape_sequence_0_is_not_allowed:Wa(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:Wa(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:Wa(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:Wa(1491,1,"_0_modifier_cannot_appear_on_a_using_declaration_1491","'{0}' modifier cannot appear on a 'using' declaration."),_0_declarations_may_not_have_binding_patterns:Wa(1492,1,"_0_declarations_may_not_have_binding_patterns_1492","'{0}' declarations may not have binding patterns."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:Wa(1493,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493","The left-hand side of a 'for...in' statement cannot be a 'using' declaration."),The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration:Wa(1494,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494","The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."),_0_modifier_cannot_appear_on_an_await_using_declaration:Wa(1495,1,"_0_modifier_cannot_appear_on_an_await_using_declaration_1495","'{0}' modifier cannot appear on an 'await using' declaration."),Identifier_string_literal_or_number_literal_expected:Wa(1496,1,"Identifier_string_literal_or_number_literal_expected_1496","Identifier, string literal, or number literal expected."),The_types_of_0_are_incompatible_between_these_types:Wa(2200,1,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:Wa(2201,1,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:Wa(2202,1,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:Wa(2203,1,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:Wa(2204,1,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:Wa(2205,1,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:Wa(2206,1,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:Wa(2207,1,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:Wa(2208,1,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:Wa(2209,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:Wa(2210,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:Wa(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:Wa(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:Wa(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:Wa(2301,1,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:Wa(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:Wa(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:Wa(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:Wa(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:Wa(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:Wa(2307,1,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:Wa(2308,1,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:Wa(2309,1,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:Wa(2310,1,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:Wa(2311,1,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:Wa(2312,1,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:Wa(2313,1,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:Wa(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:Wa(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:Wa(2316,1,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:Wa(2317,1,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:Wa(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:Wa(2319,1,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:Wa(2320,1,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:Wa(2321,1,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:Wa(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:Wa(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:Wa(2324,1,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:Wa(2325,1,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:Wa(2326,1,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:Wa(2327,1,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:Wa(2328,1,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:Wa(2329,1,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:Wa(2330,1,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:Wa(2331,1,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:Wa(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:Wa(2333,1,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:Wa(2334,1,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:Wa(2335,1,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:Wa(2336,1,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:Wa(2337,1,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:Wa(2338,1,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:Wa(2339,1,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:Wa(2340,1,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:Wa(2341,1,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:Wa(2343,1,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:Wa(2344,1,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:Wa(2345,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Untyped_function_calls_may_not_accept_type_arguments:Wa(2347,1,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:Wa(2348,1,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:Wa(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:Wa(2350,1,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:Wa(2351,1,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:Wa(2352,1,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:Wa(2353,1,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:Wa(2354,1,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value:Wa(2355,1,"A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:Wa(2356,1,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:Wa(2357,1,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:Wa(2358,1,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method:Wa(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359","The right-hand side of an 'instanceof' expression must be either of type 'any', a class, function, or other type assignable to the 'Function' interface type, or an object type with a 'Symbol.hasInstance' method."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:Wa(2362,1,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:Wa(2363,1,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:Wa(2364,1,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:Wa(2365,1,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:Wa(2366,1,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:Wa(2367,1,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:Wa(2368,1,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:Wa(2369,1,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:Wa(2370,1,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:Wa(2371,1,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:Wa(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:Wa(2373,1,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:Wa(2374,1,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:Wa(2375,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:Wa(2376,1,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:Wa(2377,1,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:Wa(2378,1,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:Wa(2379,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),Overload_signatures_must_all_be_exported_or_non_exported:Wa(2383,1,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:Wa(2384,1,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:Wa(2385,1,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:Wa(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:Wa(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:Wa(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:Wa(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:Wa(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:Wa(2391,1,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:Wa(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:Wa(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:Wa(2394,1,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:Wa(2395,1,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:Wa(2396,1,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:Wa(2397,1,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:Wa(2398,1,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:Wa(2399,1,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:Wa(2400,1,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:Wa(2401,1,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:Wa(2402,1,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:Wa(2403,1,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:Wa(2404,1,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:Wa(2405,1,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:Wa(2406,1,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:Wa(2407,1,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:Wa(2408,1,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:Wa(2409,1,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:Wa(2410,1,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:Wa(2412,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:Wa(2411,1,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:Wa(2413,1,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:Wa(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:Wa(2415,1,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:Wa(2416,1,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:Wa(2417,1,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:Wa(2418,1,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:Wa(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:Wa(2420,1,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:Wa(2422,1,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:Wa(2423,1,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:Wa(2425,1,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:Wa(2426,1,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:Wa(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:Wa(2428,1,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:Wa(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:Wa(2431,1,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:Wa(2432,1,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:Wa(2433,1,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:Wa(2434,1,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:Wa(2435,1,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:Wa(2436,1,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:Wa(2437,1,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:Wa(2438,1,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:Wa(2439,1,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:Wa(2440,1,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:Wa(2441,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:Wa(2442,1,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:Wa(2443,1,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:Wa(2444,1,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:Wa(2445,1,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:Wa(2446,1,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:Wa(2447,1,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:Wa(2448,1,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:Wa(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:Wa(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:Wa(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:Wa(2452,1,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:Wa(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:Wa(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:Wa(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:Wa(2458,1,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:Wa(2459,1,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:Wa(2460,1,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:Wa(2461,1,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:Wa(2462,1,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:Wa(2463,1,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:Wa(2464,1,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:Wa(2465,1,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:Wa(2466,1,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:Wa(2467,1,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:Wa(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:Wa(2469,1,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:Wa(2472,1,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:Wa(2473,1,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_must_be_constant_expressions:Wa(2474,1,"const_enum_member_initializers_must_be_constant_expressions_2474","const enum member initializers must be constant expressions."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:Wa(2475,1,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:Wa(2476,1,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:Wa(2477,1,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:Wa(2478,1,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:Wa(2480,1,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:Wa(2481,1,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:Wa(2483,1,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:Wa(2484,1,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:Wa(2487,1,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:Wa(2488,1,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:Wa(2489,1,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:Wa(2490,1,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:Wa(2491,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:Wa(2492,1,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:Wa(2493,1,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:Wa(2494,1,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:Wa(2495,1,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression:Wa(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:Wa(2497,1,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:Wa(2498,1,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:Wa(2499,1,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:Wa(2500,1,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:Wa(2501,1,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:Wa(2502,1,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:Wa(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:Wa(2504,1,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:Wa(2505,1,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:Wa(2506,1,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:Wa(2507,1,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:Wa(2508,1,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:Wa(2509,1,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:Wa(2510,1,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:Wa(2511,1,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:Wa(2512,1,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:Wa(2513,1,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),A_tuple_type_cannot_be_indexed_with_a_negative_value:Wa(2514,1,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:Wa(2515,1,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:Wa(2516,1,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:Wa(2517,1,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:Wa(2518,1,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:Wa(2519,1,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:Wa(2520,1,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:Wa(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522","The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:Wa(2523,1,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:Wa(2524,1,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:Wa(2525,1,"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525","Initializer provides no value for this binding element and the binding element has no default value."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:Wa(2526,1,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:Wa(2527,1,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:Wa(2528,1,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:Wa(2529,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:Wa(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:Wa(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:Wa(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:Wa(2533,1,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:Wa(2534,1,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Type_0_cannot_be_used_to_index_type_1:Wa(2536,1,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:Wa(2537,1,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:Wa(2538,1,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:Wa(2539,1,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:Wa(2540,1,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:Wa(2542,1,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:Wa(2543,1,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:Wa(2544,1,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:Wa(2545,1,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:Wa(2547,1,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:Wa(2548,1,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:Wa(2549,1,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:Wa(2550,1,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:Wa(2551,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:Wa(2552,1,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:Wa(2553,1,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:Wa(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:Wa(2555,1,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:Wa(2556,1,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:Wa(2558,1,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:Wa(2559,1,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:Wa(2560,1,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:Wa(2561,1,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:Wa(2562,1,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:Wa(2563,1,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:Wa(2564,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:Wa(2565,1,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:Wa(2566,1,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:Wa(2567,1,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:Wa(2568,1,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:Wa(2570,1,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:Wa(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:Wa(2574,1,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:Wa(2575,1,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:Wa(2576,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:Wa(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:Wa(2578,1,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:Wa(2580,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:Wa(2581,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:Wa(2582,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:Wa(2583,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:Wa(2584,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:Wa(2585,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:Wa(2588,1,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:Wa(2589,1,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:Wa(2590,1,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:Wa(2591,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:Wa(2592,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:Wa(2593,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:Wa(2594,1,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:Wa(2595,1,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:Wa(2596,1,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:Wa(2597,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:Wa(2598,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:Wa(2602,1,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:Wa(2603,1,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:Wa(2604,1,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:Wa(2606,1,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:Wa(2607,1,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:Wa(2608,1,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:Wa(2609,1,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:Wa(2610,1,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:Wa(2611,1,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:Wa(2612,1,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:Wa(2613,1,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:Wa(2614,1,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:Wa(2615,1,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:Wa(2616,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:Wa(2617,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:Wa(2618,1,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:Wa(2619,1,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:Wa(2620,1,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:Wa(2621,1,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:Wa(2623,1,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:Wa(2624,1,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:Wa(2625,1,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:Wa(2626,1,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:Wa(2627,1,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:Wa(2628,1,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:Wa(2629,1,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:Wa(2630,1,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:Wa(2631,1,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:Wa(2632,1,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:Wa(2633,1,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:Wa(2634,1,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:Wa(2635,1,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:Wa(2636,1,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:Wa(2637,1,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:Wa(2638,1,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),React_components_cannot_include_JSX_namespace_names:Wa(2639,1,"React_components_cannot_include_JSX_namespace_names_2639","React components cannot include JSX namespace names"),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:Wa(2649,1,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:Wa(2651,1,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:Wa(2652,1,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:Wa(2653,1,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),JSX_expressions_must_have_one_parent_element:Wa(2657,1,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:Wa(2658,1,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:Wa(2659,1,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:Wa(2660,1,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:Wa(2661,1,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:Wa(2662,1,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:Wa(2663,1,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:Wa(2664,1,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:Wa(2665,1,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:Wa(2666,1,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:Wa(2667,1,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:Wa(2668,1,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:Wa(2669,1,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:Wa(2670,1,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:Wa(2671,1,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:Wa(2672,1,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:Wa(2673,1,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:Wa(2674,1,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:Wa(2675,1,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:Wa(2676,1,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:Wa(2677,1,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:Wa(2678,1,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:Wa(2679,1,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:Wa(2680,1,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:Wa(2681,1,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:Wa(2683,1,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:Wa(2684,1,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:Wa(2685,1,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:Wa(2686,1,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:Wa(2687,1,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:Wa(2688,1,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:Wa(2689,1,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:Wa(2690,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:Wa(2692,1,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:Wa(2693,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:Wa(2694,1,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:Wa(2695,1,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:Wa(2696,1,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:Wa(2697,1,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:Wa(2698,1,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:Wa(2699,1,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:Wa(2700,1,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:Wa(2701,1,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:Wa(2702,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:Wa(2703,1,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:Wa(2704,1,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:Wa(2705,1,"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705","An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:Wa(2706,1,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:Wa(2707,1,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:Wa(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:Wa(2709,1,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:Wa(2710,1,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:Wa(2711,1,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:Wa(2712,1,"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712","A dynamic import call in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:Wa(2713,1,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713","Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}[\"{1}\"]'?"),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:Wa(2714,1,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:Wa(2715,1,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:Wa(2716,1,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:Wa(2717,1,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:Wa(2718,1,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:Wa(2719,1,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:Wa(2720,1,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:Wa(2721,1,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:Wa(2722,1,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:Wa(2723,1,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:Wa(2724,1,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:Wa(2725,1,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:Wa(2726,1,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:Wa(2727,1,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:Wa(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:Wa(2729,1,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:Wa(2730,1,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:Wa(2731,1,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:Wa(2732,1,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:Wa(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:Wa(2734,1,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:Wa(2735,1,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:Wa(2736,1,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:Wa(2737,1,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:Wa(2738,3,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:Wa(2739,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:Wa(2740,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:Wa(2741,1,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:Wa(2742,1,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:Wa(2743,1,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:Wa(2744,1,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:Wa(2745,1,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:Wa(2746,1,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:Wa(2747,1,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_0_is_enabled:Wa(2748,1,"Cannot_access_ambient_const_enums_when_0_is_enabled_2748","Cannot access ambient const enums when '{0}' is enabled."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:Wa(2749,1,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:Wa(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:Wa(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:Wa(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:Wa(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:Wa(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:Wa(2755,1,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:Wa(2756,1,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:Wa(2757,1,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:Wa(2758,1,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:Wa(2759,1,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:Wa(2760,1,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:Wa(2761,1,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:Wa(2762,1,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:Wa(2763,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:Wa(2764,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:Wa(2765,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:Wa(2766,1,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:Wa(2767,1,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:Wa(2768,1,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:Wa(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:Wa(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:Wa(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:Wa(2772,1,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:Wa(2773,1,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:Wa(2774,1,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:Wa(2775,1,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:Wa(2776,1,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:Wa(2777,1,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:Wa(2778,1,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:Wa(2779,1,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:Wa(2780,1,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:Wa(2781,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:Wa(2782,3,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:Wa(2783,1,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:Wa(2784,1,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:Wa(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:Wa(2786,1,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:Wa(2787,1,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:Wa(2788,1,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:Wa(2789,1,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:Wa(2790,1,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:Wa(2791,1,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:Wa(2792,1,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:Wa(2793,1,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:Wa(2794,1,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:Wa(2795,1,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:Wa(2796,1,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:Wa(2797,1,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:Wa(2798,1,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:Wa(2799,1,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:Wa(2800,1,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:Wa(2801,1,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:Wa(2802,1,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:Wa(2803,1,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:Wa(2804,1,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:Wa(2806,1,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:Wa(2807,1,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:Wa(2808,1,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses:Wa(2809,1,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:Wa(2810,1,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:Wa(2811,1,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:Wa(2812,1,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:Wa(2813,1,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:Wa(2814,1,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:Wa(2815,1,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:Wa(2816,1,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:Wa(2817,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:Wa(2818,1,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:Wa(2819,1,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:Wa(2820,1,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:Wa(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2821","Import assertions are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:Wa(2822,1,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:Wa(2823,1,"Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2823","Import attributes are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),Cannot_find_namespace_0_Did_you_mean_1:Wa(2833,1,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:Wa(2834,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:Wa(2835,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:Wa(2836,1,"Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836","Import assertions are not allowed on statements that compile to CommonJS 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:Wa(2837,1,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:Wa(2838,1,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:Wa(2839,1,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types:Wa(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840","An interface cannot extend a primitive type like '{0}'. It can only extend other named object types."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:Wa(2842,1,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:Wa(2843,1,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:Wa(2844,1,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:Wa(2845,1,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead:Wa(2846,1,"A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846","A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression:Wa(2848,1,"The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848","The right-hand side of an 'instanceof' expression must not be an instantiation expression."),Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1:Wa(2849,1,"Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849","Target signature provides too few arguments. Expected {0} or more, but got {1}."),The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined:Wa(2850,1,"The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850","The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined:Wa(2851,1,"The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851","The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:Wa(2852,1,"await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852","'await using' statements are only allowed within async functions and at the top levels of modules."),await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:Wa(2853,1,"await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853","'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:Wa(2854,1,"Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854","Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super:Wa(2855,1,"Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855","Class field '{0}' defined by the parent class is not accessible in the child class via super."),Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:Wa(2856,1,"Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856","Import attributes are not allowed on statements that compile to CommonJS 'require' calls."),Import_attributes_cannot_be_used_with_type_only_imports_or_exports:Wa(2857,1,"Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857","Import attributes cannot be used with type-only imports or exports."),Import_attribute_values_must_be_string_literal_expressions:Wa(2858,1,"Import_attribute_values_must_be_string_literal_expressions_2858","Import attribute values must be string literal expressions."),Excessive_complexity_comparing_types_0_and_1:Wa(2859,1,"Excessive_complexity_comparing_types_0_and_1_2859","Excessive complexity comparing types '{0}' and '{1}'."),The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method:Wa(2860,1,"The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860","The left-hand side of an 'instanceof' expression must be assignable to the first argument of the right-hand side's '[Symbol.hasInstance]' method."),An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression:Wa(2861,1,"An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861","An object's '[Symbol.hasInstance]' method must return a boolean value for it to be used on the right-hand side of an 'instanceof' expression."),Type_0_is_generic_and_can_only_be_indexed_for_reading:Wa(2862,1,"Type_0_is_generic_and_can_only_be_indexed_for_reading_2862","Type '{0}' is generic and can only be indexed for reading."),A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values:Wa(2863,1,"A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863","A class cannot extend a primitive type like '{0}'. Classes can only extend constructable values."),A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types:Wa(2864,1,"A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864","A class cannot implement a primitive type like '{0}'. It can only implement other named object types."),Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:Wa(2865,1,"Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865","Import '{0}' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled."),Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:Wa(2866,1,"Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866","Import '{0}' conflicts with global value used in this file, so must be declared with a type-only import when 'isolatedModules' is enabled."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun:Wa(2867,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_and_then_add_bun_to_the_types_field_in_your_tsconfig:Wa(2868,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2868","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun` and then add 'bun' to the types field in your tsconfig."),Import_declaration_0_is_using_private_name_1:Wa(4e3,1,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:Wa(4002,1,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:Wa(4004,1,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:Wa(4006,1,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:Wa(4008,1,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:Wa(4010,1,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:Wa(4012,1,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:Wa(4014,1,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:Wa(4016,1,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:Wa(4019,1,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:Wa(4020,1,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:Wa(4021,1,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:Wa(4022,1,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Wa(4023,1,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:Wa(4024,1,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:Wa(4025,1,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Wa(4026,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:Wa(4027,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:Wa(4028,1,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Wa(4029,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:Wa(4030,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:Wa(4031,1,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:Wa(4032,1,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:Wa(4033,1,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:Wa(4034,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:Wa(4035,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:Wa(4036,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:Wa(4037,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Wa(4038,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:Wa(4039,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:Wa(4040,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Wa(4041,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:Wa(4042,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:Wa(4043,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:Wa(4044,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:Wa(4045,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:Wa(4046,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:Wa(4047,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:Wa(4048,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:Wa(4049,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:Wa(4050,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:Wa(4051,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:Wa(4052,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:Wa(4053,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:Wa(4054,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:Wa(4055,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:Wa(4056,1,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:Wa(4057,1,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:Wa(4058,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:Wa(4059,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:Wa(4060,1,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Wa(4061,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:Wa(4062,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:Wa(4063,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:Wa(4064,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:Wa(4065,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:Wa(4066,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:Wa(4067,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Wa(4068,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:Wa(4069,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:Wa(4070,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Wa(4071,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:Wa(4072,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:Wa(4073,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:Wa(4074,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:Wa(4075,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Wa(4076,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:Wa(4077,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:Wa(4078,1,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:Wa(4081,1,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:Wa(4082,1,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:Wa(4083,1,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:Wa(4084,1,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1:Wa(4085,1,"Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085","Extends clause for inferred type '{0}' has or is using private name '{1}'."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:Wa(4090,1,"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090","Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:Wa(4091,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:Wa(4092,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_class_expression_may_not_be_private_or_protected:Wa(4094,1,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Wa(4095,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:Wa(4096,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:Wa(4097,1,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Wa(4098,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:Wa(4099,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:Wa(4100,1,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:Wa(4101,1,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:Wa(4102,1,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:Wa(4103,1,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:Wa(4104,1,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:Wa(4105,1,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:Wa(4106,1,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:Wa(4107,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Wa(4108,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:Wa(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:Wa(4110,1,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:Wa(4111,1,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:Wa(4112,1,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:Wa(4113,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:Wa(4114,1,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:Wa(4115,1,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:Wa(4116,1,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:Wa(4117,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:Wa(4118,1,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:Wa(4119,1,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:Wa(4120,1,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:Wa(4121,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:Wa(4122,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:Wa(4123,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:Wa(4124,1,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given:Wa(4125,1,"Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125","Each declaration of '{0}.{1}' differs in its value, where '{2}' was expected but '{3}' was given."),One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value:Wa(4126,1,"One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126","One value of '{0}.{1}' is the string '{2}', and the other is assumed to be an unknown numeric value."),The_current_host_does_not_support_the_0_option:Wa(5001,1,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:Wa(5009,1,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:Wa(5010,1,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:Wa(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:Wa(5014,1,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:Wa(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:Wa(5024,1,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:Wa(5025,1,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:Wa(5033,1,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:Wa(5042,1,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:Wa(5047,1,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_cannot_be_specified_when_option_target_is_ES3:Wa(5048,1,"Option_0_cannot_be_specified_when_option_target_is_ES3_5048","Option '{0}' cannot be specified when option 'target' is 'ES3'."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:Wa(5051,1,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:Wa(5052,1,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:Wa(5053,1,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:Wa(5054,1,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:Wa(5055,1,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:Wa(5056,1,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:Wa(5057,1,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:Wa(5058,1,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:Wa(5059,1,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:Wa(5061,1,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:Wa(5062,1,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:Wa(5063,1,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:Wa(5064,1,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:Wa(5065,1,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:Wa(5066,1,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:Wa(5067,1,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:Wa(5068,1,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:Wa(5069,1,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic:Wa(5070,1,"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070","Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd:Wa(5071,1,"Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071","Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'."),Unknown_build_option_0:Wa(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:Wa(5073,1,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:Wa(5074,1,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:Wa(5075,1,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:Wa(5076,1,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:Wa(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:Wa(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:Wa(5079,1,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:Wa(5080,1,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:Wa(5081,1,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:Wa(5082,1,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:Wa(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:Wa(5085,1,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:Wa(5086,1,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:Wa(5087,1,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:Wa(5088,1,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:Wa(5089,1,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:Wa(5090,1,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled:Wa(5091,1,"Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled."),The_root_value_of_a_0_file_must_be_an_object:Wa(5092,1,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:Wa(5093,1,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:Wa(5094,1,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later:Wa(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'preserve' or to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:Wa(5096,1,"Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096","Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:Wa(5097,1,"An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097","An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler:Wa(5098,1,"Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098","Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error:Wa(5101,1,"Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101","Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '\"ignoreDeprecations\": \"{2}\"' to silence this error."),Option_0_has_been_removed_Please_remove_it_from_your_configuration:Wa(5102,1,"Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102","Option '{0}' has been removed. Please remove it from your configuration."),Invalid_value_for_ignoreDeprecations:Wa(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:Wa(5104,1,"Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104","Option '{0}' is redundant and cannot be specified with option '{1}'."),Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System:Wa(5105,1,"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105","Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'."),Use_0_instead:Wa(5106,3,"Use_0_instead_5106","Use '{0}' instead."),Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error:Wa(5107,1,"Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107","Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '\"ignoreDeprecations\": \"{3}\"' to silence this error."),Option_0_1_has_been_removed_Please_remove_it_from_your_configuration:Wa(5108,1,"Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108","Option '{0}={1}' has been removed. Please remove it from your configuration."),Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1:Wa(5109,1,"Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109","Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."),Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1:Wa(5110,1,"Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110","Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:Wa(6e3,3,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:Wa(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:Wa(6002,3,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:Wa(6004,3,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:Wa(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:Wa(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:Wa(6007,3,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:Wa(6008,3,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:Wa(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:Wa(6010,3,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:Wa(6011,3,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:Wa(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:Wa(6013,3,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:Wa(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:Wa(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:Wa(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:Wa(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:Wa(6019,3,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:Wa(6020,3,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:Wa(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:Wa(6024,3,"options_6024","options"),file:Wa(6025,3,"file_6025","file"),Examples_Colon_0:Wa(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:Wa(6027,3,"Options_Colon_6027","Options:"),Version_0:Wa(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:Wa(6030,3,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:Wa(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:Wa(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:Wa(6034,3,"KIND_6034","KIND"),FILE:Wa(6035,3,"FILE_6035","FILE"),VERSION:Wa(6036,3,"VERSION_6036","VERSION"),LOCATION:Wa(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:Wa(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:Wa(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:Wa(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:Wa(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:Wa(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:Wa(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:Wa(6045,1,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:Wa(6046,1,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:Wa(6048,1,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form <language> or <language>-<territory>. For example '{0}' or '{1}'."),Unable_to_open_file_0:Wa(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:Wa(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:Wa(6052,3,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:Wa(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:Wa(6054,1,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:Wa(6055,3,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:Wa(6056,3,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:Wa(6058,3,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:Wa(6059,1,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:Wa(6060,3,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:Wa(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:Wa(6064,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:Wa(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:Wa(6066,3,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:Wa(6070,3,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:Wa(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:Wa(6072,3,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:Wa(6073,3,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:Wa(6074,3,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:Wa(6075,3,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:Wa(6076,3,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:Wa(6077,3,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:Wa(6078,3,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:Wa(6079,3,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:Wa(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),Only_amd_and_system_modules_are_supported_alongside_0:Wa(6082,1,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:Wa(6083,3,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:Wa(6084,3,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:Wa(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:Wa(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:Wa(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:Wa(6088,3,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:Wa(6089,3,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:Wa(6090,3,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:Wa(6091,3,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:Wa(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:Wa(6093,3,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:Wa(6094,3,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1:Wa(6095,3,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095","Loading module as file / folder, candidate module location '{0}', target file types: {1}."),File_0_does_not_exist:Wa(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:Wa(6097,3,"File_0_exists_use_it_as_a_name_resolution_result_6097","File '{0}' exists - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_types_Colon_1:Wa(6098,3,"Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098","Loading module '{0}' from 'node_modules' folder, target file types: {1}."),Found_package_json_at_0:Wa(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:Wa(6100,3,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:Wa(6101,3,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:Wa(6102,3,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:Wa(6104,3,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:Wa(6105,3,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:Wa(6106,3,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:Wa(6107,3,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:Wa(6108,3,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:Wa(6109,3,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:Wa(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:Wa(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:Wa(6112,3,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:Wa(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:Wa(6114,1,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:Wa(6115,3,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:Wa(6116,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:Wa(6119,3,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:Wa(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:Wa(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:Wa(6122,3,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:Wa(6123,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:Wa(6124,3,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:Wa(6125,3,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:Wa(6126,3,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:Wa(6127,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:Wa(6128,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:Wa(6130,3,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:Wa(6131,1,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:Wa(6132,3,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:Wa(6133,1,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:Wa(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:Wa(6135,3,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:Wa(6136,3,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:Wa(6137,1,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:Wa(6138,1,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:Wa(6139,3,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:Wa(6140,1,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:Wa(6141,3,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:Wa(6142,1,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:Wa(6144,3,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:Wa(6145,3,"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145","Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:Wa(6146,3,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:Wa(6147,3,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:Wa(6148,3,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:Wa(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:Wa(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:Wa(6151,3,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:Wa(6152,3,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:Wa(6153,3,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:Wa(6154,3,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:Wa(6155,3,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:Wa(6156,3,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:Wa(6157,3,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:Wa(6158,3,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:Wa(6159,3,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:Wa(6160,3,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:Wa(6161,3,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:Wa(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:Wa(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1:Wa(6164,3,"Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164","Skipping module '{0}' that looks like an absolute URI, target file types: {1}."),Do_not_truncate_error_messages:Wa(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:Wa(6166,3,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:Wa(6167,3,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:Wa(6168,3,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:Wa(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:Wa(6170,3,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:Wa(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:Wa(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."),Enable_all_strict_type_checking_options:Wa(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:Wa(6182,3,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:Wa(6183,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:Wa(6184,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:Wa(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:Wa(6187,3,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:Wa(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:Wa(6189,1,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:Wa(6191,3,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:Wa(6192,1,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:Wa(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:Wa(6194,3,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:Wa(6195,3,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:Wa(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:Wa(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:Wa(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:Wa(6199,1,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:Wa(6200,1,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:Wa(6201,3,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:Wa(6202,1,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:Wa(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:Wa(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:Wa(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:Wa(6206,3,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:Wa(6207,3,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:Wa(6208,3,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:Wa(6209,3,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:Wa(6210,3,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:Wa(6211,3,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:Wa(6212,3,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:Wa(6213,3,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:Wa(6214,3,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:Wa(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:Wa(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:Wa(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:Wa(6218,3,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:Wa(6219,3,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:Wa(6220,3,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:Wa(6221,3,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:Wa(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:Wa(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:Wa(6224,3,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:Wa(6225,3,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:Wa(6226,3,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:Wa(6227,3,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:Wa(6229,1,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:Wa(6230,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:Wa(6231,1,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:Wa(6232,1,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:Wa(6233,1,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:Wa(6234,1,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:Wa(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:Wa(6236,1,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:Wa(6237,3,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:Wa(6238,1,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:Wa(6239,3,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:Wa(6240,3,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:Wa(6241,3,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:Wa(6242,3,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:Wa(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:Wa(6244,3,"Modules_6244","Modules"),File_Management:Wa(6245,3,"File_Management_6245","File Management"),Emit:Wa(6246,3,"Emit_6246","Emit"),JavaScript_Support:Wa(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:Wa(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:Wa(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:Wa(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:Wa(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:Wa(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:Wa(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:Wa(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:Wa(6255,3,"Projects_6255","Projects"),Output_Formatting:Wa(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:Wa(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:Wa(6258,1,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_0:Wa(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:Wa(6260,3,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:Wa(6261,3,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),File_name_0_has_a_1_extension_looking_up_2_instead:Wa(6262,3,"File_name_0_has_a_1_extension_looking_up_2_instead_6262","File name '{0}' has a '{1}' extension - looking up '{2}' instead."),Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set:Wa(6263,1,"Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263","Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set."),Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present:Wa(6264,3,"Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264","Enable importing files with any extension, provided a declaration file is present."),Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder:Wa(6265,3,"Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265","Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder."),Option_0_can_only_be_specified_on_command_line:Wa(6266,1,"Option_0_can_only_be_specified_on_command_line_6266","Option '{0}' can only be specified on command line."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:Wa(6270,3,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:Wa(6271,3,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:Wa(6272,3,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:Wa(6273,3,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:Wa(6274,3,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:Wa(6275,3,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:Wa(6276,3,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update:Wa(6277,3,"Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277","Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings:Wa(6278,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278","There are types at '{0}', but this result could not be resolved when respecting package.json \"exports\". The '{1}' library may need to update its package.json or typings."),Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update:Wa(6279,3,"Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279","Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler:Wa(6280,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280","There are types at '{0}', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'."),Enable_project_compilation:Wa(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:Wa(6304,1,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:Wa(6305,1,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:Wa(6306,1,"Referenced_project_0_must_have_setting_composite_Colon_true_6306","Referenced project '{0}' must have setting \"composite\": true."),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:Wa(6307,1,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Cannot_prepend_project_0_because_it_does_not_have_outFile_set:Wa(6308,1,"Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308","Cannot prepend project '{0}' because it does not have 'outFile' set"),Output_file_0_from_project_1_does_not_exist:Wa(6309,1,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),Referenced_project_0_may_not_disable_emit:Wa(6310,1,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:Wa(6350,3,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:Wa(6351,3,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:Wa(6352,3,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:Wa(6353,3,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:Wa(6354,3,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:Wa(6355,3,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:Wa(6356,3,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:Wa(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:Wa(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:Wa(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:Wa(6361,3,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:Wa(6362,3,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:Wa(6363,3,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:Wa(6364,3,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:Wa(6365,3,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:Wa(6367,3,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:Wa(6369,1,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:Wa(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:Wa(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed:Wa(6372,3,"Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372","Project '{0}' is out of date because output of its dependency '{1}' has changed"),Updating_output_of_project_0:Wa(6373,3,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:Wa(6374,3,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),A_non_dry_build_would_update_output_of_project_0:Wa(6375,3,"A_non_dry_build_would_update_output_of_project_0_6375","A non-dry build would update output of project '{0}'"),Cannot_update_output_of_project_0_because_there_was_error_reading_file_1:Wa(6376,3,"Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376","Cannot update output of project '{0}' because there was error reading file '{1}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:Wa(6377,1,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Composite_projects_may_not_disable_incremental_compilation:Wa(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:Wa(6380,3,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:Wa(6381,3,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:Wa(6382,3,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:Wa(6383,3,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:Wa(6384,3,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:Wa(6385,2,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:Wa(6386,3,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:Wa(6387,2,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:Wa(6388,3,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:Wa(6389,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:Wa(6390,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:Wa(6391,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:Wa(6392,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:Wa(6393,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:Wa(6394,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:Wa(6395,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:Wa(6396,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:Wa(6397,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:Wa(6398,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:Wa(6399,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:Wa(6400,3,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:Wa(6401,3,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:Wa(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:Wa(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:Wa(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:Wa(6405,3,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions:Wa(6406,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406","Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions"),Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set:Wa(6407,3,"Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407","Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set."),Use_the_package_json_exports_field_when_resolving_package_imports:Wa(6408,3,"Use_the_package_json_exports_field_when_resolving_package_imports_6408","Use the package.json 'exports' field when resolving package imports."),Use_the_package_json_imports_field_when_resolving_imports:Wa(6409,3,"Use_the_package_json_imports_field_when_resolving_imports_6409","Use the package.json 'imports' field when resolving imports."),Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports:Wa(6410,3,"Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410","Conditions to set in addition to the resolver-specific defaults when resolving imports."),true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false:Wa(6411,3,"true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411","`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more:Wa(6412,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412","Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more."),Entering_conditional_exports:Wa(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:Wa(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:Wa(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:Wa(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:Wa(6417,3,"Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417","Searching all ancestor node_modules directories for preferred extensions: {0}."),Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0:Wa(6418,3,"Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418","Searching all ancestor node_modules directories for fallback extensions: {0}."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:Wa(6500,3,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:Wa(6501,3,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:Wa(6502,3,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:Wa(6503,3,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:Wa(6504,1,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:Wa(6505,3,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:Wa(6506,3,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:Wa(6600,3,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:Wa(6601,3,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:Wa(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:Wa(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:Wa(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:Wa(6605,3,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:Wa(6606,3,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:Wa(6607,3,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:Wa(6608,3,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:Wa(6609,3,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:Wa(6611,3,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:Wa(6612,3,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:Wa(6613,3,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:Wa(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:Wa(6615,3,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:Wa(6616,3,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:Wa(6617,3,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:Wa(6618,3,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:Wa(6619,3,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:Wa(6620,3,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:Wa(6621,3,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:Wa(6622,3,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:Wa(6623,3,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:Wa(6624,3,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:Wa(6625,3,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:Wa(6626,3,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:Wa(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:Wa(6628,3,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:Wa(6629,3,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_legacy_experimental_decorators:Wa(6630,3,"Enable_experimental_support_for_legacy_experimental_decorators_6630","Enable experimental support for legacy experimental decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:Wa(6631,3,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:Wa(6632,3,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:Wa(6633,3,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:Wa(6634,3,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:Wa(6635,3,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:Wa(6636,3,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:Wa(6637,3,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:Wa(6638,3,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:Wa(6639,3,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:Wa(6641,3,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:Wa(6642,3,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:Wa(6643,3,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:Wa(6644,3,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:Wa(6645,3,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:Wa(6646,3,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:Wa(6647,3,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:Wa(6648,3,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:Wa(6649,3,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:Wa(6650,3,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:Wa(6651,3,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:Wa(6652,3,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:Wa(6653,3,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:Wa(6654,3,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:Wa(6655,3,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:Wa(6656,3,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:Wa(6657,3,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:Wa(6658,3,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:Wa(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:Wa(6660,3,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:Wa(6661,3,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:Wa(6662,3,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:Wa(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:Wa(6664,3,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:Wa(6665,3,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:Wa(6666,3,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:Wa(6667,3,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:Wa(6668,3,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:Wa(6669,3,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:Wa(6670,3,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:Wa(6671,3,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:Wa(6672,3,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:Wa(6673,3,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:Wa(6674,3,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:Wa(6675,3,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:Wa(6676,3,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:Wa(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:Wa(6678,3,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:Wa(6679,3,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:Wa(6680,3,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:Wa(6681,3,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:Wa(6682,3,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:Wa(6683,3,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:Wa(6684,3,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:Wa(6685,3,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:Wa(6686,3,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:Wa(6687,3,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:Wa(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:Wa(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:Wa(6690,3,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:Wa(6691,3,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:Wa(6692,3,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:Wa(6693,3,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:Wa(6694,3,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:Wa(6695,3,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:Wa(6697,3,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:Wa(6698,3,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:Wa(6699,3,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:Wa(6700,3,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:Wa(6701,3,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:Wa(6702,3,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:Wa(6703,3,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:Wa(6704,3,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:Wa(6705,3,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:Wa(6706,3,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:Wa(6707,3,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:Wa(6709,3,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:Wa(6710,3,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:Wa(6711,3,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:Wa(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:Wa(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:Wa(6714,3,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:Wa(6715,3,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:Wa(6717,3,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:Wa(6718,3,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Default_catch_clause_variables_as_unknown_instead_of_any:Wa(6803,3,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting:Wa(6804,3,"Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804","Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),one_of_Colon:Wa(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:Wa(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:Wa(6902,3,"type_Colon_6902","type:"),default_Colon:Wa(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:Wa(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:Wa(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:Wa(6906,3,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:Wa(6907,3,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:Wa(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:Wa(6909,3,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:Wa(69010,3,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:Wa(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:Wa(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:Wa(6913,3,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:Wa(6914,3,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:Wa(6915,3,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:Wa(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:Wa(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:Wa(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:Wa(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:Wa(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:Wa(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:Wa(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:Wa(6923,3,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:Wa(6924,3,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:Wa(6925,3,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:Wa(6926,3,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:Wa(6927,3,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:Wa(6928,3,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:Wa(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:Wa(6930,3,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:Wa(6931,1,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:Wa(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:Wa(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:Wa(7008,1,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:Wa(7009,1,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:Wa(7010,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:Wa(7011,1,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation:Wa(7012,1,"This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012","This overload implicitly returns the type '{0}' because it lacks a return type annotation."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:Wa(7013,1,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:Wa(7014,1,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:Wa(7015,1,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:Wa(7016,1,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:Wa(7017,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:Wa(7018,1,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:Wa(7019,1,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:Wa(7020,1,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:Wa(7022,1,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:Wa(7023,1,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:Wa(7024,1,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:Wa(7025,1,"Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025","Generator implicitly has yield type '{0}' because it does not yield any values. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:Wa(7026,1,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:Wa(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:Wa(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:Wa(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:Wa(7030,1,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:Wa(7031,1,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:Wa(7032,1,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:Wa(7033,1,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:Wa(7034,1,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:Wa(7035,1,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:Wa(7036,1,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:Wa(7037,3,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:Wa(7038,3,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:Wa(7039,1,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:Wa(7040,1,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:Wa(7041,1,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:Wa(7042,1,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:Wa(7043,2,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:Wa(7044,2,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:Wa(7045,2,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:Wa(7046,2,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:Wa(7047,2,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:Wa(7048,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:Wa(7049,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:Wa(7050,2,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:Wa(7051,1,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:Wa(7052,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:Wa(7053,1,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:Wa(7054,1,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:Wa(7055,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:Wa(7056,1,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:Wa(7057,1,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:Wa(7058,1,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:Wa(7059,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:Wa(7060,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:Wa(7061,1,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:Wa(8e3,1,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:Wa(8001,1,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:Wa(8002,1,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:Wa(8003,1,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:Wa(8004,1,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:Wa(8005,1,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:Wa(8006,1,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:Wa(8008,1,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:Wa(8009,1,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:Wa(8010,1,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:Wa(8011,1,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:Wa(8012,1,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:Wa(8013,1,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:Wa(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Signature_declarations_can_only_be_used_in_TypeScript_files:Wa(8017,1,"Signature_declarations_can_only_be_used_in_TypeScript_files_8017","Signature declarations can only be used in TypeScript files."),Report_errors_in_js_files:Wa(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:Wa(8020,1,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:Wa(8021,1,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:Wa(8022,1,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:Wa(8023,1,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:Wa(8024,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:Wa(8025,1,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:Wa(8026,1,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:Wa(8027,1,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:Wa(8028,1,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:Wa(8029,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:Wa(8030,1,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:Wa(8031,1,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:Wa(8032,1,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:Wa(8033,1,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:Wa(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:Wa(8035,1,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:Wa(8036,1,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:Wa(8037,1,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export:Wa(8038,1,"Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038","Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag:Wa(8039,1,"A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039","A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag"),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:Wa(9005,1,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:Wa(9006,1,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:Wa(17e3,1,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:Wa(17001,1,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:Wa(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:Wa(17004,1,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:Wa(17005,1,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:Wa(17006,1,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:Wa(17007,1,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:Wa(17008,1,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:Wa(17009,1,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:Wa(17010,1,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:Wa(17011,1,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:Wa(17012,1,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:Wa(17013,1,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:Wa(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:Wa(17015,1,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:Wa(17016,1,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:Wa(17017,1,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:Wa(17018,1,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:Wa(17019,1,"_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019","'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:Wa(17020,1,"_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020","'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),Unicode_escape_sequence_cannot_appear_here:Wa(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),Circularity_detected_while_resolving_configuration_Colon_0:Wa(18e3,1,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:Wa(18002,1,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:Wa(18003,1,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:Wa(80001,2,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:Wa(80002,2,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:Wa(80003,2,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:Wa(80004,2,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:Wa(80005,2,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:Wa(80006,2,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:Wa(80007,2,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:Wa(80008,2,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),JSDoc_typedef_may_be_converted_to_TypeScript_type:Wa(80009,2,"JSDoc_typedef_may_be_converted_to_TypeScript_type_80009","JSDoc typedef may be converted to TypeScript type."),JSDoc_typedefs_may_be_converted_to_TypeScript_types:Wa(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:Wa(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:Wa(90002,3,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:Wa(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:Wa(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:Wa(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:Wa(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:Wa(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:Wa(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:Wa(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:Wa(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:Wa(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:Wa(90013,3,"Import_0_from_1_90013","Import '{0}' from \"{1}\""),Change_0_to_1:Wa(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:Wa(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:Wa(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:Wa(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:Wa(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:Wa(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:Wa(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:Wa(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:Wa(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:Wa(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:Wa(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:Wa(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:Wa(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:Wa(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:Wa(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:Wa(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:Wa(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:Wa(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:Wa(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:Wa(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:Wa(90037,3,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:Wa(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:Wa(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:Wa(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:Wa(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:Wa(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:Wa(90055,3,"Remove_type_from_import_declaration_from_0_90055","Remove 'type' from import declaration from \"{0}\""),Remove_type_from_import_of_0_from_1:Wa(90056,3,"Remove_type_from_import_of_0_from_1_90056","Remove 'type' from import of '{0}' from \"{1}\""),Add_import_from_0:Wa(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:Wa(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:Wa(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:Wa(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Convert_function_to_an_ES2015_class:Wa(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:Wa(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:Wa(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:Wa(95005,3,"Extract_function_95005","Extract function"),Extract_constant:Wa(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:Wa(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:Wa(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:Wa(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:Wa(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:Wa(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:Wa(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:Wa(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:Wa(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:Wa(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:Wa(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:Wa(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:Wa(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:Wa(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:Wa(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:Wa(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:Wa(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:Wa(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:Wa(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:Wa(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:Wa(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:Wa(95028,3,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:Wa(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:Wa(95030,3,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:Wa(95031,3,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:Wa(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:Wa(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:Wa(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:Wa(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:Wa(95036,3,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:Wa(95037,3,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:Wa(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:Wa(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:Wa(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:Wa(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:Wa(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:Wa(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:Wa(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:Wa(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:Wa(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:Wa(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:Wa(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:Wa(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:Wa(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:Wa(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:Wa(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:Wa(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:Wa(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:Wa(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:Wa(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:Wa(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:Wa(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:Wa(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:Wa(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:Wa(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:Wa(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:Wa(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:Wa(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:Wa(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:Wa(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:Wa(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:Wa(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:Wa(95069,3,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:Wa(95070,3,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:Wa(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:Wa(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:Wa(95073,3,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:Wa(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:Wa(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:Wa(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:Wa(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:Wa(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:Wa(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:Wa(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:Wa(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:Wa(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:Wa(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:Wa(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:Wa(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:Wa(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:Wa(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:Wa(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:Wa(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:Wa(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:Wa(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:Wa(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:Wa(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:Wa(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:Wa(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:Wa(95097,3,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:Wa(95098,3,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:Wa(95099,3,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:Wa(95100,3,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:Wa(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:Wa(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:Wa(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:Wa(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:Wa(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:Wa(95108,3,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:Wa(95109,3,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:Wa(95110,3,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:Wa(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:Wa(95112,3,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:Wa(95113,3,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:Wa(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:Wa(95115,3,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:Wa(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:Wa(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:Wa(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:Wa(95119,3,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:Wa(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:Wa(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:Wa(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:Wa(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:Wa(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:Wa(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:Wa(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:Wa(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:Wa(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:Wa(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:Wa(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:Wa(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:Wa(95132,3,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:Wa(95133,3,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:Wa(95134,3,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:Wa(95135,3,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:Wa(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:Wa(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:Wa(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:Wa(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:Wa(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:Wa(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:Wa(95142,3,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:Wa(95143,3,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:Wa(95144,3,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:Wa(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:Wa(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:Wa(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:Wa(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:Wa(95149,3,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:Wa(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:Wa(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:Wa(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:Wa(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenations_and_string_literals:Wa(95154,3,"Can_only_convert_string_concatenations_and_string_literals_95154","Can only convert string concatenations and string literals"),Selection_is_not_a_valid_statement_or_statements:Wa(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:Wa(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:Wa(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:Wa(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:Wa(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:Wa(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:Wa(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:Wa(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:Wa(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:Wa(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:Wa(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:Wa(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:Wa(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:Wa(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:Wa(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:Wa(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:Wa(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:Wa(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:Wa(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:Wa(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:Wa(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:Wa(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:Wa(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:Wa(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:Wa(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:Wa(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:Wa(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:Wa(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:Wa(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:Wa(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:Wa(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:Wa(95186,3,"Variables_with_multiple_declarations_cannot_be_inlined_95186","Variables with multiple declarations cannot be inlined."),Add_missing_comma_for_object_member_completion_0:Wa(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),Add_missing_parameter_to_0:Wa(95188,3,"Add_missing_parameter_to_0_95188","Add missing parameter to '{0}'"),Add_missing_parameters_to_0:Wa(95189,3,"Add_missing_parameters_to_0_95189","Add missing parameters to '{0}'"),Add_all_missing_parameters:Wa(95190,3,"Add_all_missing_parameters_95190","Add all missing parameters"),Add_optional_parameter_to_0:Wa(95191,3,"Add_optional_parameter_to_0_95191","Add optional parameter to '{0}'"),Add_optional_parameters_to_0:Wa(95192,3,"Add_optional_parameters_to_0_95192","Add optional parameters to '{0}'"),Add_all_optional_parameters:Wa(95193,3,"Add_all_optional_parameters_95193","Add all optional parameters"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:Wa(18004,1,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:Wa(18006,1,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:Wa(18007,1,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:Wa(18009,1,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:Wa(18010,1,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:Wa(18011,1,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:Wa(18012,1,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:Wa(18013,1,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:Wa(18014,1,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:Wa(18015,1,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:Wa(18016,1,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:Wa(18017,1,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:Wa(18018,1,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:Wa(18019,1,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:Wa(18024,1,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:Wa(18026,1,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:Wa(18027,1,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:Wa(18028,1,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:Wa(18029,1,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:Wa(18030,1,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:Wa(18031,1,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:Wa(18032,1,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values:Wa(18033,1,"Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033","Type '{0}' is not assignable to type '{1}' as required for computed enum member values."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:Wa(18034,3,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:Wa(18035,1,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:Wa(18036,1,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),await_expression_cannot_be_used_inside_a_class_static_block:Wa(18037,1,"await_expression_cannot_be_used_inside_a_class_static_block_18037","'await' expression cannot be used inside a class static block."),for_await_loops_cannot_be_used_inside_a_class_static_block:Wa(18038,1,"for_await_loops_cannot_be_used_inside_a_class_static_block_18038","'for await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:Wa(18039,1,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:Wa(18041,1,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:Wa(18042,1,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:Wa(18043,1,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:Wa(18044,3,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:Wa(18045,1,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:Wa(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:Wa(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:Wa(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:Wa(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:Wa(18050,1,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here."),Compiler_option_0_cannot_be_given_an_empty_string:Wa(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string."),Non_abstract_class_0_does_not_implement_all_abstract_members_of_1:Wa(18052,1,"Non_abstract_class_0_does_not_implement_all_abstract_members_of_1_18052","Non-abstract class '{0}' does not implement all abstract members of '{1}'"),Its_type_0_is_not_a_valid_JSX_element_type:Wa(18053,1,"Its_type_0_is_not_a_valid_JSX_element_type_18053","Its type '{0}' is not a valid JSX element type."),await_using_statements_cannot_be_used_inside_a_class_static_block:Wa(18054,1,"await_using_statements_cannot_be_used_inside_a_class_static_block_18054","'await using' statements cannot be used inside a class static block.")}}});function ns(e){return e>=80}function rs(e){return 32===e||ns(e)}function os(e,t){if(e<t[0])return!1;let n,r=0,o=t.length;for(;r+1<o;){if(n=r+(o-r)/2,n-=n%2,t[n]<=e&&e<=t[n+1])return!0;e<t[n]?o=n:r=n+2}return!1}function is(e,t){return os(e,t>=2?Ka:1===t?Ua:ja)}function as(e){return Ya[e]}function ss(e){return Ga.get(e)}function ls(e){const t=[];let n=0,r=0;for(;n<e.length;){const o=e.charCodeAt(n);switch(n++,o){case 13:10===e.charCodeAt(n)&&n++;case 10:t.push(r),r=n;break;default:o>127&&ys(o)&&(t.push(r),r=n)}}return t.push(r),t}function cs(e,t,n,r){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,n,r):ds(us(e),t,n,e.text,r)}function ds(e,t,n,r,o){(t<0||t>=e.length)&&(o?t=t<0?0:t>=e.length?e.length-1:t:In.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${void 0!==r?W(e,ls(r)):"unknown"}`));const i=e[t]+n;return o?i>e[t+1]?e[t+1]:"string"===typeof r&&i>r.length?r.length:i:(t<e.length-1?In.assert(i<e[t+1]):void 0!==r&&In.assert(i<=r.length),i)}function us(e){return e.lineMap||(e.lineMap=ls(e.text))}function ps(e,t){const n=fs(e,t);return{line:n,character:t-e[n]}}function fs(e,t,n){let r=je(e,t,xt,Ft,n);return r<0&&(r=~r-1,In.assert(-1!==r,"position cannot precede the beginning of the file")),r}function ms(e,t,n){if(t===n)return 0;const r=us(e),o=Math.min(t,n),i=o===n,a=i?t:n,s=fs(r,o),l=fs(r,a,s);return i?s-l:l-s}function _s(e,t){return ps(us(e),t)}function hs(e){return gs(e)||ys(e)}function gs(e){return 32===e||9===e||11===e||12===e||160===e||133===e||5760===e||e>=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function ys(e){return 10===e||13===e||8232===e||8233===e}function vs(e){return e>=48&&e<=57}function bs(e){return vs(e)||e>=65&&e<=70||e>=97&&e<=102}function Es(e){return e>=48&&e<=55}function Ss(e,t){const n=e.charCodeAt(t);switch(n){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return 0===t;default:return n>127}}function Ts(e,t,n,r,o){if(_x(t))return t;let i=!1;for(;;){const a=e.charCodeAt(t);switch(a){case 13:10===e.charCodeAt(t+1)&&t++;case 10:if(t++,n)return t;i=!!o;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(r)break;if(47===e.charCodeAt(t+1)){for(t+=2;t<e.length&&!ys(e.charCodeAt(t));)t++;i=!1;continue}if(42===e.charCodeAt(t+1)){for(t+=2;t<e.length;){if(42===e.charCodeAt(t)&&47===e.charCodeAt(t+1)){t+=2;break}t++}i=!1;continue}break;case 60:case 124:case 61:case 62:if(xs(e,t)){t=As(e,t),i=!1;continue}break;case 35:if(0===t&&Is(e,t)){t=Rs(e,t),i=!1;continue}break;case 42:if(i){t++,i=!1;continue}break;default:if(a>127&&hs(a)){t++;continue}}return t}}function xs(e,t){if(In.assert(t>=0),0===t||ys(e.charCodeAt(t-1))){const n=e.charCodeAt(t);if(t+Qa<e.length){for(let r=0;r<Qa;r++)if(e.charCodeAt(t+r)!==n)return!1;return 61===n||32===e.charCodeAt(t+Qa)}}return!1}function As(e,t,n){n&&n(Oa.Merge_conflict_marker_encountered,t,Qa);const r=e.charCodeAt(t),o=e.length;if(60===r||62===r)for(;t<o&&!ys(e.charCodeAt(t));)t++;else for(In.assert(124===r||61===r);t<o;){const n=e.charCodeAt(t);if((61===n||62===n)&&n!==r&&xs(e,t))break;t++}return t}function Is(e,t){return In.assert(0===t),Za.test(e)}function Rs(e,t){return t+=Za.exec(e)[0].length}function Cs(e,t,n,r,o,i,a){let s,l,c,d,u=!1,p=r,f=a;if(0===n){p=!0;const e=Os(t);e&&(n=e.length)}e:for(;n>=0&&n<t.length;){const a=t.charCodeAt(n);switch(a){case 13:10===t.charCodeAt(n+1)&&n++;case 10:if(n++,r)break e;p=!0,u&&(d=!0);continue;case 9:case 11:case 12:case 32:n++;continue;case 47:const m=t.charCodeAt(n+1);let _=!1;if(47===m||42===m){const r=47===m?2:3,a=n;if(n+=2,47===m)for(;n<t.length;){if(ys(t.charCodeAt(n))){_=!0;break}n++}else for(;n<t.length;){if(42===t.charCodeAt(n)&&47===t.charCodeAt(n+1)){n+=2;break}n++}if(p){if(u&&(f=o(s,l,c,d,i,f),!e&&f))return f;s=a,l=n,c=r,d=_,u=!0}continue}break e;default:if(a>127&&hs(a)){u&&ys(a)&&(d=!0),n++;continue}break e}}return u&&(f=o(s,l,c,d,i,f)),f}function Ds(e,t,n,r){return Cs(!1,e,t,!1,n,r)}function Ns(e,t,n,r){return Cs(!1,e,t,!0,n,r)}function Ms(e,t,n,r,o){return Cs(!0,e,t,!1,n,r,o)}function Ls(e,t,n,r,o){return Cs(!0,e,t,!0,n,r,o)}function ks(e,t,n,r,o,i=[]){return i.push({kind:n,pos:e,end:t,hasTrailingNewLine:r}),i}function Ps(e,t){return Ms(e,t,ks,void 0,void 0)}function ws(e,t){return Ls(e,t,ks,void 0,void 0)}function Os(e){const t=Za.exec(e);if(t)return t[0]}function Fs(e,t){return e>=65&&e<=90||e>=97&&e<=122||36===e||95===e||e>127&&is(e,t)}function Ws(e,t,n){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||36===e||95===e||1===n&&(45===e||58===e)||e>127&&function(e,t){return os(e,t>=2?qa:1===t?Ha:Va)}(e,t)}function zs(e,t,n){let r=Gs(e,0);if(!Fs(r,t))return!1;for(let o=js(r);o<e.length;o+=js(r))if(!Ws(r=Gs(e,o),t,n))return!1;return!0}function Bs(e,t,n=0,r,o,i,a){var s,l,c,d,u,p,f,m,_=r,h=0,g=0,y=0;U(_,i,a);var v={getTokenFullStart:()=>c,getStartPos:()=>c,getTokenEnd:()=>s,getTextPos:()=>s,getToken:()=>u,getTokenStart:()=>d,getTokenPos:()=>d,getTokenText:()=>_.substring(d,s),getTokenValue:()=>p,hasUnicodeEscape:()=>0!==(1024&f),hasExtendedUnicodeEscape:()=>0!==(8&f),hasPrecedingLineBreak:()=>0!==(1&f),hasPrecedingJSDocComment:()=>0!==(2&f),isIdentifier:()=>80===u||u>118,isReservedWord:()=>u>=83&&u<=118,isUnterminated:()=>0!==(4&f),getCommentDirectives:()=>m,getNumericLiteralFlags:()=>25584&f,getTokenFlags:()=>f,reScanGreaterToken:function(){if(32===u){if(62===_.charCodeAt(s))return 62===_.charCodeAt(s+1)?61===_.charCodeAt(s+2)?(s+=3,u=73):(s+=2,u=50):61===_.charCodeAt(s+1)?(s+=2,u=72):(s++,u=49);if(61===_.charCodeAt(s))return s++,u=34}return u},reScanAsteriskEqualsToken:function(){return In.assert(67===u,"'reScanAsteriskEqualsToken' should only be called on a '*='"),s=d+1,u=64},reScanSlashToken:function(){if(44===u||69===u){let t=d+1,n=!1,r=!1;for(;;){if(t>=l){f|=4,b(Oa.Unterminated_regular_expression_literal);break}const e=_.charCodeAt(t);if(ys(e)){f|=4,b(Oa.Unterminated_regular_expression_literal);break}if(n)n=!1;else{if(47===e&&!r){t++;break}91===e?r=!0:92===e?n=!0:93===e&&(r=!1)}t++}for(;t<l&&Ws(_.charCodeAt(t),e);)t++;s=t,p=_.substring(d,s),u=14}return u},reScanTemplateToken:function(e){return s=d,u=R(!e)},reScanTemplateHeadOrNoSubstitutionTemplate:function(){return s=d,u=R(!0)},scanJsxIdentifier:function(){if(ns(u)){for(;s<l;){if(45===_.charCodeAt(s)){p+="-",s++;continue}const e=s;if(p+=L(),s===e)break}return k()}return u},scanJsxAttributeValue:G,reScanJsxAttributeValue:function(){return s=d=c,G()},reScanJsxToken:function(e=!0){return s=d=c,u=B(e)},reScanLessThanToken:function(){if(48===u)return s=d+1,u=30;return u},reScanHashToken:function(){if(81===u)return s=d+1,u=63;return u},reScanQuestionToken:function(){return In.assert(61===u,"'reScanQuestionToken' should only be called on a '??'"),s=d+1,u=58},reScanInvalidIdentifier:function(){In.assert(0===u,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),s=d=c,f=0;const e=Gs(_,s),t=W(e,99);if(t)return u=t;return s+=js(e),u},scanJsxToken:B,scanJsDocToken:j,scanJSDocCommentTextToken:function(e){if(c=d=s,f=0,s>=l)return u=1;for(let t=_.charCodeAt(s);s<l&&!ys(t)&&96!==t;t=Gs(_,++s))if(!e){if(123===t)break;if(64===t&&s-1>=0&&gs(_.charCodeAt(s-1))&&!(s+1<l&&hs(_.charCodeAt(s+1))))break}if(s===d)return j();return p=_.substring(d,s),u=82},scan:O,getText:function(){return _},clearCommentDirectives:function(){m=void 0},setText:U,setScriptTarget:function(t){e=t},setLanguageVariant:function(e){n=e},setScriptKind:function(e){g=e},setJSDocParsingMode:function(e){y=e},setOnError:function(e){o=e},resetTokenState:H,setTextPos:H,setInJSDocType:function(e){h+=e?1:-1},tryScan:function(e){return V(e,!1)},lookAhead:function(e){return V(e,!0)},scanRange:function(e,t,n){const r=l,o=s,i=c,a=d,h=u,g=p,y=f,v=m;U(_,e,t);const b=n();return l=r,s=o,c=i,d=a,u=h,p=g,f=y,m=v,b}};return In.isDebugging&&Object.defineProperty(v,"__debugShowCurrentPositionInText",{get:()=>{const e=v.getText();return e.slice(0,v.getTokenFullStart())+"\u2551"+e.slice(v.getTokenFullStart())}}),v;function b(e,t=s,n,r){if(o){const i=s;s=t,o(e,n||0,r),s=i}}function E(){let e=s,t=!1,n=!1,r="";for(;;){const o=_.charCodeAt(s);if(95!==o){if(!vs(o))break;t=!0,n=!1,s++}else f|=512,t?(t=!1,n=!0,r+=_.substring(e,s)):(f|=16384,b(n?Oa.Multiple_consecutive_numeric_separators_are_not_permitted:Oa.Numeric_separators_are_not_allowed_here,s,1)),e=++s}return 95===_.charCodeAt(s-1)&&(f|=16384,b(Oa.Numeric_separators_are_not_allowed_here,s-1,1)),r+_.substring(e,s)}function S(){let e,t,n,r=s;if(48===_.charCodeAt(s))if(s++,95===_.charCodeAt(s))f|=16896,b(Oa.Numeric_separators_are_not_allowed_here,s,1),s--,e=E();else if(function(){const e=s;let t=!0;for(;vs(_.charCodeAt(s));)Es(_.charCodeAt(s))||(t=!1),s++;return p=_.substring(e,s),t}()){if(p){p=""+parseInt(p,8),f|=32;const e=41===u,t=(e?"-":"")+"0o"+(+p).toString(8);return e&&r--,b(Oa.Octal_literals_are_not_allowed_Use_the_syntax_0,r,s-r,t),9}e="0"}else f|=8192,e=""+ +p;else e=E();46===_.charCodeAt(s)&&(s++,t=E());let o,i=s;if(69===_.charCodeAt(s)||101===_.charCodeAt(s)){s++,f|=16,43!==_.charCodeAt(s)&&45!==_.charCodeAt(s)||s++;const e=s,t=E();t?(n=_.substring(i,e)+t,i=s):b(Oa.Digit_expected)}if(512&f?(o=e,t&&(o+="."+t),n&&(o+=n)):o=_.substring(r,i),8192&f)return b(Oa.Decimals_with_leading_zeros_are_not_allowed,r,i-r),p=""+ +o,9;if(void 0!==t||16&f)return T(r,void 0===t&&!!(16&f)),p=""+ +o,9;{p=o;const e=w();return T(r),e}}function T(t,n){if(!Fs(Gs(_,s),e))return;const r=s,{length:o}=L();1===o&&"n"===_[r]?b(n?Oa.A_bigint_literal_cannot_use_exponential_notation:Oa.A_bigint_literal_must_be_an_integer,t,r-t+1):(b(Oa.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,r,o),s=r)}function x(e,t){return A(e,!0,t)}function A(e,t,n){let r=[],o=!1,i=!1;for(;r.length<e||t;){let e=_.charCodeAt(s);if(n&&95===e)f|=512,o?(o=!1,i=!0):b(i?Oa.Multiple_consecutive_numeric_separators_are_not_permitted:Oa.Numeric_separators_are_not_allowed_here,s,1),s++;else{if(o=n,e>=65&&e<=70)e+=32;else if(!(e>=48&&e<=57||e>=97&&e<=102))break;r.push(e),s++,i=!1}}return r.length<e&&(r=[]),95===_.charCodeAt(s-1)&&b(Oa.Numeric_separators_are_not_allowed_here,s-1,1),String.fromCharCode(...r)}function I(e=!1){const t=_.charCodeAt(s);let n="",r=++s;for(;;){if(s>=l){n+=_.substring(r,s),f|=4,b(Oa.Unterminated_string_literal);break}const o=_.charCodeAt(s);if(o===t){n+=_.substring(r,s),s++;break}if(92!==o||e){if((10===o||13===o)&&!e){n+=_.substring(r,s),f|=4,b(Oa.Unterminated_string_literal);break}s++}else n+=_.substring(r,s),n+=C(!0),r=s}return n}function R(e){const t=96===_.charCodeAt(s);let n,r=++s,o="";for(;;){if(s>=l){o+=_.substring(r,s),f|=4,b(Oa.Unterminated_template_literal),n=t?15:18;break}const i=_.charCodeAt(s);if(96===i){o+=_.substring(r,s),s++,n=t?15:18;break}if(36===i&&s+1<l&&123===_.charCodeAt(s+1)){o+=_.substring(r,s),s+=2,n=t?16:17;break}92!==i?13!==i?s++:(o+=_.substring(r,s),++s<l&&10===_.charCodeAt(s)&&s++,o+="\n",r=s):(o+=_.substring(r,s),o+=C(e),r=s)}return In.assert(void 0!==n),p=o,n}function C(e){const t=s;if(++s>=l)return b(Oa.Unexpected_end_of_text),"";const n=_.charCodeAt(s);switch(s++,n){case 48:if(s>=l||!vs(_.charCodeAt(s)))return"\0";case 49:case 50:case 51:s<l&&Es(_.charCodeAt(s))&&s++;case 52:case 53:case 54:case 55:if(s<l&&Es(_.charCodeAt(s))&&s++,f|=2048,e){const e=parseInt(_.substring(t+1,s),8);return b(Oa.Octal_escape_sequences_are_not_allowed_Use_the_syntax_0,t,s-t,"\\x"+e.toString(16).padStart(2,"0")),String.fromCharCode(e)}return _.substring(t,s);case 56:case 57:return f|=2048,e?(b(Oa.Escape_sequence_0_is_not_allowed,t,s-t,_.substring(t,s)),String.fromCharCode(n)):_.substring(t,s);case 98:return"\b";case 116:return"\t";case 110:return"\n";case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:if(s<l&&123===_.charCodeAt(s)){s++;const n=x(1,!1),r=n?parseInt(n,16):-1;return r<0?(f|=2048,e&&b(Oa.Hexadecimal_digit_expected),_.substring(t,s)):r<=1114111?s>=l?(f|=2048,e&&b(Oa.Unexpected_end_of_text),_.substring(t,s)):125!==_.charCodeAt(s)?(f|=2048,e&&b(Oa.Unterminated_Unicode_escape_sequence),_.substring(t,s)):(s++,f|=8,Us(r)):(f|=2048,e&&b(Oa.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),_.substring(t,s))}for(;s<t+6;s++)if(!(s<l&&bs(_.charCodeAt(s))))return f|=2048,e&&b(Oa.Hexadecimal_digit_expected),_.substring(t,s);return f|=1024,String.fromCharCode(parseInt(_.substring(t+2,s),16));case 120:for(;s<t+4;s++)if(!(s<l&&bs(_.charCodeAt(s))))return f|=2048,e&&b(Oa.Hexadecimal_digit_expected),_.substring(t,s);return f|=4096,String.fromCharCode(parseInt(_.substring(t+2,s),16));case 13:s<l&&10===_.charCodeAt(s)&&s++;case 10:case 8232:case 8233:return"";default:return String.fromCharCode(n)}}function D(){const e=x(1,!1),t=e?parseInt(e,16):-1;let n=!1;return t<0?(b(Oa.Hexadecimal_digit_expected),n=!0):t>1114111&&(b(Oa.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),n=!0),s>=l?(b(Oa.Unexpected_end_of_text),n=!0):125===_.charCodeAt(s)?s++:(b(Oa.Unterminated_Unicode_escape_sequence),n=!0),n?"":Us(t)}function N(){if(s+5<l&&117===_.charCodeAt(s+1)){const e=s;s+=2;const t=function(e,t){const n=A(e,!1,t);return n?parseInt(n,16):-1}(4,!1);return s=e,t}return-1}function M(){if(117===Gs(_,s+1)&&123===Gs(_,s+2)){const e=s;s+=3;const t=x(1,!1),n=t?parseInt(t,16):-1;return s=e,n}return-1}function L(){let t="",n=s;for(;s<l;){let r=Gs(_,s);if(Ws(r,e))s+=js(r);else{if(92!==r)break;if(r=M(),r>=0&&Ws(r,e)){s+=3,f|=8,t+=D(),n=s;continue}if(r=N(),!(r>=0&&Ws(r,e)))break;f|=1024,t+=_.substring(n,s),t+=Us(r),n=s+=6}}return t+=_.substring(n,s),t}function k(){const e=p.length;if(e>=2&&e<=12){const e=p.charCodeAt(0);if(e>=97&&e<=122){const e=Ba.get(p);if(void 0!==e)return u=e}}return u=80}function P(e){let t="",n=!1,r=!1;for(;;){const o=_.charCodeAt(s);if(95!==o){if(n=!0,!vs(o)||o-48>=e)break;t+=_[s],s++,r=!1}else f|=512,n?(n=!1,r=!0):b(r?Oa.Multiple_consecutive_numeric_separators_are_not_permitted:Oa.Numeric_separators_are_not_allowed_here,s,1),s++}return 95===_.charCodeAt(s-1)&&b(Oa.Numeric_separators_are_not_allowed_here,s-1,1),t}function w(){if(110===_.charCodeAt(s))return p+="n",384&f&&(p=Nx(p)+"n"),s++,10;{const e=128&f?parseInt(p.slice(2),2):256&f?parseInt(p.slice(2),8):+p;return p=""+e,9}}function O(){c=s,f=0;let r=!1;for(;;){if(d=s,s>=l)return u=1;const o=Gs(_,s);if(0===s){if(_.slice(0,256).includes("\ufffd"))return b(Oa.File_appears_to_be_binary),s=l,u=8;if(35===o&&Is(_,s)){if(s=Rs(_,s),t)continue;return u=6}}switch(o){case 10:case 13:if(f|=1,t){s++;continue}return 13===o&&s+1<l&&10===_.charCodeAt(s+1)?s+=2:s++,u=4;case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8203:case 8239:case 8287:case 12288:case 65279:if(t){s++;continue}for(;s<l&&gs(_.charCodeAt(s));)s++;return u=5;case 33:return 61===_.charCodeAt(s+1)?61===_.charCodeAt(s+2)?(s+=3,u=38):(s+=2,u=36):(s++,u=54);case 34:case 39:return p=I(),u=11;case 96:return u=R(!1);case 37:return 61===_.charCodeAt(s+1)?(s+=2,u=70):(s++,u=45);case 38:return 38===_.charCodeAt(s+1)?61===_.charCodeAt(s+2)?(s+=3,u=77):(s+=2,u=56):61===_.charCodeAt(s+1)?(s+=2,u=74):(s++,u=51);case 40:return s++,u=21;case 41:return s++,u=22;case 42:if(61===_.charCodeAt(s+1))return s+=2,u=67;if(42===_.charCodeAt(s+1))return 61===_.charCodeAt(s+2)?(s+=3,u=68):(s+=2,u=43);if(s++,h&&!r&&1&f){r=!0;continue}return u=42;case 43:return 43===_.charCodeAt(s+1)?(s+=2,u=46):61===_.charCodeAt(s+1)?(s+=2,u=65):(s++,u=40);case 44:return s++,u=28;case 45:return 45===_.charCodeAt(s+1)?(s+=2,u=47):61===_.charCodeAt(s+1)?(s+=2,u=66):(s++,u=41);case 46:return vs(_.charCodeAt(s+1))?(S(),u=9):46===_.charCodeAt(s+1)&&46===_.charCodeAt(s+2)?(s+=3,u=26):(s++,u=25);case 47:if(47===_.charCodeAt(s+1)){for(s+=2;s<l&&!ys(_.charCodeAt(s));)s++;if(m=z(m,_.slice(d,s),Ja,d),t)continue;return u=2}if(42===_.charCodeAt(s+1)){s+=2;const e=42===_.charCodeAt(s)&&47!==_.charCodeAt(s+1);let n=!1,r=d;for(;s<l;){const e=_.charCodeAt(s);if(42===e&&47===_.charCodeAt(s+1)){s+=2,n=!0;break}s++,ys(e)&&(r=s,f|=1)}if(e&&F()&&(f|=2),m=z(m,_.slice(r,s),Xa,r),n||b(Oa.Asterisk_Slash_expected),t)continue;return n||(f|=4),u=3}return 61===_.charCodeAt(s+1)?(s+=2,u=69):(s++,u=44);case 48:if(s+2<l&&(88===_.charCodeAt(s+1)||120===_.charCodeAt(s+1)))return s+=2,(p=x(1,!0))||(b(Oa.Hexadecimal_digit_expected),p="0"),p="0x"+p,f|=64,u=w();if(s+2<l&&(66===_.charCodeAt(s+1)||98===_.charCodeAt(s+1)))return s+=2,(p=P(2))||(b(Oa.Binary_digit_expected),p="0"),p="0b"+p,f|=128,u=w();if(s+2<l&&(79===_.charCodeAt(s+1)||111===_.charCodeAt(s+1)))return s+=2,(p=P(8))||(b(Oa.Octal_digit_expected),p="0"),p="0o"+p,f|=256,u=w();case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return u=S();case 58:return s++,u=59;case 59:return s++,u=27;case 60:if(xs(_,s)){if(s=As(_,s,b),t)continue;return u=7}return 60===_.charCodeAt(s+1)?61===_.charCodeAt(s+2)?(s+=3,u=71):(s+=2,u=48):61===_.charCodeAt(s+1)?(s+=2,u=33):1===n&&47===_.charCodeAt(s+1)&&42!==_.charCodeAt(s+2)?(s+=2,u=31):(s++,u=30);case 61:if(xs(_,s)){if(s=As(_,s,b),t)continue;return u=7}return 61===_.charCodeAt(s+1)?61===_.charCodeAt(s+2)?(s+=3,u=37):(s+=2,u=35):62===_.charCodeAt(s+1)?(s+=2,u=39):(s++,u=64);case 62:if(xs(_,s)){if(s=As(_,s,b),t)continue;return u=7}return s++,u=32;case 63:return 46!==_.charCodeAt(s+1)||vs(_.charCodeAt(s+2))?63===_.charCodeAt(s+1)?61===_.charCodeAt(s+2)?(s+=3,u=78):(s+=2,u=61):(s++,u=58):(s+=2,u=29);case 91:return s++,u=23;case 93:return s++,u=24;case 94:return 61===_.charCodeAt(s+1)?(s+=2,u=79):(s++,u=53);case 123:return s++,u=19;case 124:if(xs(_,s)){if(s=As(_,s,b),t)continue;return u=7}return 124===_.charCodeAt(s+1)?61===_.charCodeAt(s+2)?(s+=3,u=76):(s+=2,u=57):61===_.charCodeAt(s+1)?(s+=2,u=75):(s++,u=52);case 125:return s++,u=20;case 126:return s++,u=55;case 64:return s++,u=60;case 92:const i=M();if(i>=0&&Fs(i,e))return s+=3,f|=8,p=D()+L(),u=k();const a=N();return a>=0&&Fs(a,e)?(s+=6,f|=1024,p=String.fromCharCode(a)+L(),u=k()):(b(Oa.Invalid_character),s++,u=0);case 35:if(0!==s&&"!"===_[s+1])return b(Oa.can_only_be_used_at_the_start_of_a_file),s++,u=0;const c=Gs(_,s+1);if(92===c){s++;const t=M();if(t>=0&&Fs(t,e))return s+=3,f|=8,p="#"+D()+L(),u=81;const n=N();if(n>=0&&Fs(n,e))return s+=6,f|=1024,p="#"+String.fromCharCode(n)+L(),u=81;s--}return Fs(c,e)?(s++,W(c,e)):(p="#",b(Oa.Invalid_character,s++,js(o))),u=81;default:const g=W(o,e);if(g)return u=g;if(gs(o)){s+=js(o);continue}if(ys(o)){f|=1,s+=js(o);continue}const y=js(o);return b(Oa.Invalid_character,s,y),s+=y,u=0}}}function F(){switch(y){case 0:return!0;case 1:return!1}return 3!==g&&4!==g||3!==y&&$a.test(_.slice(c,s))}function W(e,t){let n=e;if(Fs(n,t)){for(s+=js(n);s<l&&Ws(n=Gs(_,s),t);)s+=js(n);return p=_.substring(d,s),92===n&&(p+=L()),k()}}function z(e,t,n,r){const o=function(e,t){const n=t.exec(e);if(!n)return;switch(n[1]){case"ts-expect-error":return 0;case"ts-ignore":return 1}return}(t.trimStart(),n);return void 0===o?e:Ee(e,{range:{pos:r,end:s},type:o})}function B(e=!0){if(c=d=s,s>=l)return u=1;let t=_.charCodeAt(s);if(60===t)return 47===_.charCodeAt(s+1)?(s+=2,u=31):(s++,u=30);if(123===t)return s++,u=19;let n=0;for(;s<l&&(t=_.charCodeAt(s),123!==t);){if(60===t){if(xs(_,s))return s=As(_,s,b),u=7;break}if(62===t&&b(Oa.Unexpected_token_Did_you_mean_or_gt,s,1),125===t&&b(Oa.Unexpected_token_Did_you_mean_or_rbrace,s,1),ys(t)&&0===n)n=-1;else{if(!e&&ys(t)&&n>0)break;hs(t)||(n=s)}s++}return p=_.substring(c,s),-1===n?13:12}function G(){switch(c=s,_.charCodeAt(s)){case 34:case 39:return p=I(!0),u=11;default:return O()}}function j(){if(c=d=s,f=0,s>=l)return u=1;const t=Gs(_,s);switch(s+=js(t),t){case 9:case 11:case 12:case 32:for(;s<l&&gs(_.charCodeAt(s));)s++;return u=5;case 64:return u=60;case 13:10===_.charCodeAt(s)&&s++;case 10:return f|=1,u=4;case 42:return u=42;case 123:return u=19;case 125:return u=20;case 91:return u=23;case 93:return u=24;case 60:return u=30;case 62:return u=32;case 61:return u=64;case 44:return u=28;case 46:return u=25;case 96:return u=62;case 35:return u=63;case 92:s--;const t=M();if(t>=0&&Fs(t,e))return s+=3,f|=8,p=D()+L(),u=k();const n=N();return n>=0&&Fs(n,e)?(s+=6,f|=1024,p=String.fromCharCode(n)+L(),u=k()):(s++,u=0)}if(Fs(t,e)){let n=t;for(;s<l&&Ws(n=Gs(_,s),e)||45===_.charCodeAt(s);)s+=js(n);return p=_.substring(d,s),92===n&&(p+=L()),u=k()}return u=0}function V(e,t){const n=s,r=c,o=d,i=u,a=p,l=f,m=e();return m&&!t||(s=n,c=r,d=o,u=i,p=a,f=l),m}function U(e,t,n){_=e||"",l=void 0===n?_.length:t+n,H(t||0)}function H(e){In.assert(e>=0),s=e,c=e,d=e,u=0,p=void 0,f=0}}function Gs(e,t){return e.codePointAt(t)}function js(e){return e>=65536?2:1}function Vs(e){if(In.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);const t=Math.floor((e-65536)/1024)+55296,n=(e-65536)%1024+56320;return String.fromCharCode(t,n)}function Us(e){return es(e)}var Hs,Ks,qs,Js=b({"src/compiler/scanner.ts"(){JJ(),za={abstract:128,accessor:129,any:133,as:130,asserts:131,assert:132,bigint:163,boolean:136,break:83,case:84,catch:85,class:86,continue:88,const:87,constructor:137,debugger:89,declare:138,default:90,delete:91,do:92,else:93,enum:94,export:95,extends:96,false:97,finally:98,for:99,from:161,function:100,get:139,if:101,implements:119,import:102,in:103,infer:140,instanceof:104,interface:120,intrinsic:141,is:142,keyof:143,let:121,module:144,namespace:145,never:146,new:105,null:106,number:150,object:151,package:122,private:123,protected:124,public:125,override:164,out:147,readonly:148,require:149,global:162,return:107,satisfies:152,set:153,static:126,string:154,super:108,switch:109,symbol:155,this:110,throw:111,true:112,try:113,type:156,typeof:114,undefined:157,unique:158,unknown:159,using:160,var:115,void:116,while:117,with:118,yield:127,async:134,await:135,of:165},Ba=new Map(Object.entries(za)),Ga=new Map(Object.entries({...za,"{":19,"}":20,"(":21,")":22,"[":23,"]":24,".":25,"...":26,";":27,",":28,"<":30,">":32,"<=":33,">=":34,"==":35,"!=":36,"===":37,"!==":38,"=>":39,"+":40,"-":41,"**":43,"*":42,"/":44,"%":45,"++":46,"--":47,"<<":48,"</":31,">>":49,">>>":50,"&":51,"|":52,"^":53,"!":54,"~":55,"&&":56,"||":57,"?":58,"??":61,"?.":29,":":59,"=":64,"+=":65,"-=":66,"*=":67,"**=":68,"/=":69,"%=":70,"<<=":71,">>=":72,">>>=":73,"&=":74,"|=":75,"^=":79,"||=":76,"&&=":77,"??=":78,"@":60,"#":63,"`":62})),ja=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1569,1594,1600,1610,1649,1747,1749,1749,1765,1766,1786,1788,1808,1808,1810,1836,1920,1957,2309,2361,2365,2365,2384,2384,2392,2401,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2784,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2877,2908,2909,2911,2913,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3294,3294,3296,3297,3333,3340,3342,3344,3346,3368,3370,3385,3424,3425,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3805,3840,3840,3904,3911,3913,3946,3976,3979,4096,4129,4131,4135,4137,4138,4176,4181,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6067,6176,6263,6272,6312,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12329,12337,12341,12344,12346,12353,12436,12445,12446,12449,12538,12540,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65138,65140,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],Va=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,768,846,864,866,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1155,1158,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1425,1441,1443,1465,1467,1469,1471,1471,1473,1474,1476,1476,1488,1514,1520,1522,1569,1594,1600,1621,1632,1641,1648,1747,1749,1756,1759,1768,1770,1773,1776,1788,1808,1836,1840,1866,1920,1968,2305,2307,2309,2361,2364,2381,2384,2388,2392,2403,2406,2415,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2492,2494,2500,2503,2504,2507,2509,2519,2519,2524,2525,2527,2531,2534,2545,2562,2562,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2649,2652,2654,2654,2662,2676,2689,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2784,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2876,2883,2887,2888,2891,2893,2902,2903,2908,2909,2911,2913,2918,2927,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3010,3014,3016,3018,3021,3031,3031,3047,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3134,3140,3142,3144,3146,3149,3157,3158,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3395,3398,3400,3402,3405,3415,3415,3424,3425,3430,3439,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3805,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3946,3953,3972,3974,3979,3984,3991,3993,4028,4038,4038,4096,4129,4131,4135,4137,4138,4140,4146,4150,4153,4160,4169,4176,4185,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4969,4977,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6099,6112,6121,6160,6169,6176,6263,6272,6313,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8319,8319,8400,8412,8417,8417,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12335,12337,12341,12344,12346,12353,12436,12441,12442,12445,12446,12449,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65056,65059,65075,65076,65101,65103,65136,65138,65140,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500],Ua=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],Ha=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],Ka=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2208,2228,2230,2237,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42943,42946,42950,42999,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69376,69404,69415,69415,69424,69445,69600,69622,69635,69687,69763,69807,69840,69864,69891,69926,69956,69956,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70751,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71680,71723,71840,71903,71935,71935,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72384,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,123136,123180,123191,123197,123214,123214,123584,123627,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101],qa=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2208,2228,2230,2237,2259,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3162,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3328,3331,3333,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7673,7675,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42943,42946,42950,42999,43047,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69376,69404,69415,69415,69424,69456,69600,69622,69632,69702,69734,69743,69759,69818,69840,69864,69872,69881,69888,69940,69942,69951,69956,69958,69968,70003,70006,70006,70016,70084,70089,70092,70096,70106,70108,70108,70144,70161,70163,70199,70206,70206,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70751,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71680,71738,71840,71913,71935,71935,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72384,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92768,92777,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,123136,123180,123184,123197,123200,123209,123214,123214,123584,123641,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101,917760,917999],Ja=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,Xa=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,$a=/@(?:see|link)/i,Ya=function(e){const t=[];return e.forEach(((e,n)=>{t[e]=n})),t}(Ga),Qa=7,Za=/^#!.*/,es=String.fromCodePoint?e=>String.fromCodePoint(e):Vs}});function Xs(e){return Ji(e)||Hi(e)}function $s(e){return _e(e,pT)}function Ys(e){switch(jp(e)){case 99:return"lib.esnext.full.d.ts";case 9:return"lib.es2022.full.d.ts";case 8:return"lib.es2021.full.d.ts";case 7:return"lib.es2020.full.d.ts";case 6:return"lib.es2019.full.d.ts";case 5:return"lib.es2018.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}}function Qs(e){return e.start+e.length}function Zs(e){return 0===e.length}function el(e,t){return t>=e.start&&t<Qs(e)}function tl(e,t){return t>=e.pos&&t<=e.end}function nl(e,t){return t.start>=e.start&&Qs(t)<=Qs(e)}function rl(e,t){return void 0!==ol(e,t)}function ol(e,t){const n=cl(e,t);return n&&0===n.length?void 0:n}function il(e,t){return sl(e.start,e.length,t.start,t.length)}function al(e,t,n){return sl(e.start,e.length,t,n)}function sl(e,t,n,r){return n<=e+t&&n+r>=e}function ll(e,t){return t<=Qs(e)&&t>=e.start}function cl(e,t){const n=Math.max(e.start,t.start),r=Math.min(Qs(e),Qs(t));return n<=r?ul(n,r):void 0}function dl(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function ul(e,t){return dl(e,t-e)}function pl(e){return dl(e.span.start,e.newLength)}function fl(e){return Zs(e.span)&&0===e.newLength}function ml(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function _l(e){if(0===e.length)return Hs;if(1===e.length)return e[0];const t=e[0];let n=t.span.start,r=Qs(t.span),o=n+t.newLength;for(let i=1;i<e.length;i++){const t=e[i],a=n,s=r,l=o,c=t.span.start,d=Qs(t.span),u=c+t.newLength;n=Math.min(a,c),r=Math.max(s,s+(d-l)),o=Math.max(u,u+(l-d))}return ml(ul(n,r),o-n)}function hl(e){if(e&&168===e.kind)for(let t=e;t;t=t.parent)if(Td(t)||Md(t)||264===t.kind)return t}function gl(e,t){return bC(e)&&Gb(e,31)&&176===t.kind}function yl(e){return!!Vd(e)&&M(e.elements,vl)}function vl(e){return!!DD(e)||yl(e.name)}function bl(e){let t=e.parent;for(;iD(t.parent);)t=t.parent.parent;return t.parent}function El(e,t){iD(e)&&(e=bl(e));let n=t(e);return 260===e.kind&&(e=e.parent),e&&261===e.kind&&(n|=t(e),e=e.parent),e&&243===e.kind&&(n|=t(e)),n}function Sl(e){return El(e,Zb)}function Tl(e){return El(e,eE)}function xl(e){return El(e,Al)}function Al(e){return e.flags}function Il(e,t,n){const r=e.toLowerCase(),o=/^([a-z]+)([_-]([a-z]+))?$/.exec(r);if(!o)return void(n&&n.push(sT(Oa.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1,"en","ja-jp")));const i=o[1],a=o[3];function s(e,n,r){let o=ua(ra(_a(t.getExecutingFilePath())),e);if(n&&(o=o+"-"+n),o=t.resolvePath(ua(o,"diagnosticMessages.generated.json")),!t.fileExists(o))return!1;let i="";try{i=t.readFile(o)}catch(a){return r&&r.push(sT(Oa.Unable_to_open_file_0,o)),!1}try{QS(JSON.parse(i))}catch{return r&&r.push(sT(Oa.Corrupted_locale_file_0,o)),!1}return!0}F(Ks,r)&&!s(i,a,n)&&s(i,void 0,n),Ht(e)}function Rl(e,t){if(e)for(;void 0!==e.original;)e=e.original;return e&&t?t(e)?e:void 0:e}function Cl(e,t){for(;e;){const n=t(e);if("quit"===n)return;if(n)return e;e=e.parent}}function Dl(e){return 0===(16&e.flags)}function Nl(e,t){if(void 0===e||Dl(e))return e;for(e=e.original;e;){if(Dl(e))return!t||t(e)?e:void 0;e=e.original}}function Ml(e){return e.length>=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e}function Ll(e){const t=e;return t.length>=3&&95===t.charCodeAt(0)&&95===t.charCodeAt(1)&&95===t.charCodeAt(2)?t.substr(1):t}function kl(e){return Ll(e.escapedText)}function Pl(e){const t=ss(e.escapedText);return t?yt(t,Vy):void 0}function wl(e){return e.valueDeclaration&&md(e.valueDeclaration)?kl(e.valueDeclaration.name):Ll(e.escapedName)}function Ol(e){const t=e.parent.parent;if(t){if(Lu(t))return Fl(t);switch(t.kind){case 243:if(t.declarationList&&t.declarationList.declarations[0])return Fl(t.declarationList.declarations[0]);break;case 244:let e=t.expression;switch(226===e.kind&&64===e.operatorToken.kind&&(e=e.left),e.kind){case 211:return e.name;case 212:const t=e.argumentExpression;if(nC(t))return t}break;case 217:return Fl(t.expression);case 256:if(Lu(t.statement)||uu(t.statement))return Fl(t.statement)}}}function Fl(e){const t=jl(e);return t&&nC(t)?t:void 0}function Wl(e,t){return!(!Bl(e)||!nC(e.name)||kl(e.name)!==kl(t))||!(!GD(e)||!se(e.declarationList.declarations,(e=>Wl(e,t))))}function zl(e){return e.name||Ol(e)}function Bl(e){return!!e.name}function Gl(e){switch(e.kind){case 80:return e;case 355:case 348:{const{name:t}=e;if(166===t.kind)return t.right;break}case 213:case 226:{const t=e;switch(Eg(t)){case 1:case 4:case 5:case 3:return Dg(t.left);case 7:case 8:case 9:return t.arguments[1];default:return}}case 353:return zl(e);case 347:return Ol(e);case 277:{const{expression:t}=e;return nC(t)?t:void 0}case 212:const t=e;if(Ig(t))return t.argumentExpression}return e.name}function jl(e){if(void 0!==e)return Gl(e)||(_D(e)||hD(e)||CD(e)?Vl(e):void 0)}function Vl(e){if(e.parent){if(QN(e.parent)||iD(e.parent))return e.parent.name;if(TD(e.parent)&&e===e.parent.right){if(nC(e.parent.left))return e.parent.left;if(wS(e.parent.left))return Dg(e.parent.left)}else if(iN(e.parent)&&nC(e.parent.name))return e.parent.name}}function Ul(e){if(Xb(e))return G(e.modifiers,EC)}function Hl(e){if(Gb(e,98303))return G(e.modifiers,vd)}function Kl(e,t){if(e.name){if(nC(e.name)){const n=e.name.escapedText;return Ec(e.parent,t).filter((e=>OM(e)&&nC(e.name)&&e.name.escapedText===n))}{const n=e.parent.parameters.indexOf(e);In.assert(n>-1,"Parameters should always be in their parents' parameter list");const r=Ec(e.parent,t).filter(OM);if(n<r.length)return[r[n]]}}return o}function ql(e){return Kl(e,!1)}function Jl(e){return Kl(e,!0)}function Xl(e,t){const n=e.name.escapedText;return Ec(e.parent,t).filter((e=>BM(e)&&e.typeParameters.some((e=>e.name.escapedText===n))))}function $l(e){return Xl(e,!1)}function Yl(e){return Xl(e,!0)}function Ql(e){return!!xc(e,OM)}function Zl(e){return xc(e,TM)}function ec(e){return Ac(e,UM)}function tc(e){return xc(e,AM)}function nc(e){return xc(e,RM)}function rc(e){return xc(e,RM,!0)}function oc(e){return xc(e,CM)}function ic(e){return xc(e,CM,!0)}function ac(e){return xc(e,DM)}function sc(e){return xc(e,DM,!0)}function lc(e){return xc(e,NM)}function cc(e){return xc(e,NM,!0)}function dc(e){return xc(e,MM,!0)}function uc(e){return xc(e,kM)}function pc(e){return xc(e,kM,!0)}function fc(e){return xc(e,wM)}function mc(e){return xc(e,WM)}function _c(e){return xc(e,FM)}function hc(e){return xc(e,BM)}function gc(e){return xc(e,HM)}function yc(e){const t=xc(e,zM);if(t&&t.typeExpression&&t.typeExpression.type)return t}function vc(e){let t=xc(e,zM);return!t&&bC(e)&&(t=L(ql(e),(e=>!!e.typeExpression))),t&&t.typeExpression&&t.typeExpression.type}function bc(e){const t=_c(e);if(t&&t.typeExpression)return t.typeExpression.type;const n=yc(e);if(n&&n.typeExpression){const e=n.typeExpression.type;if(WC(e)){const t=L(e.members,NC);return t&&t.type}if(wC(e)||gM(e))return e.type}}function Ec(e,t){var n;if(!Zg(e))return o;let r=null==(n=e.jsDoc)?void 0:n.jsDocCache;if(void 0===r||t){const n=ey(e,t);In.assert(n.length<2||n[0]!==n[1]),r=J(n,(e=>bM(e)?e.tags:e)),t||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=r)}return r}function Sc(e){return Ec(e,!1)}function Tc(e){return Ec(e,!0)}function xc(e,t,n){return L(Ec(e,n),t)}function Ac(e,t){return Sc(e).filter(t)}function Ic(e,t){return Sc(e).filter((e=>e.kind===t))}function Rc(e){return"string"===typeof e?e:null==e?void 0:e.map((e=>328===e.kind?e.text:function(e){const t=331===e.kind?"link":332===e.kind?"linkcode":"linkplain",n=e.name?c_(e.name):"",r=e.name&&e.text.startsWith("://")?"":" ";return`{@${t} ${n}${r}${e.text}}`}(e))).join("")}function Cc(e){if(SM(e)){if(LM(e.parent)){const t=cy(e.parent);if(t&&T(t.tags))return J(t.tags,(e=>BM(e)?e.typeParameters:void 0))}return o}if(Kg(e))return In.assert(327===e.parent.kind),J(e.parent.tags,(e=>BM(e)?e.typeParameters:void 0));if(e.typeParameters)return e.typeParameters;if(GL(e)&&e.typeParameters)return e.typeParameters;if($h(e)){const t=Cb(e);if(t.length)return t;const n=vc(e);if(n&&wC(n)&&n.typeParameters)return n.typeParameters}return o}function Dc(e){return e.constraint?e.constraint:BM(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function Nc(e){return 80===e.kind||81===e.kind}function Mc(e){return 178===e.kind||177===e.kind}function Lc(e){return lD(e)&&!!(64&e.flags)}function kc(e){return cD(e)&&!!(64&e.flags)}function Pc(e){return dD(e)&&!!(64&e.flags)}function wc(e){const t=e.kind;return!!(64&e.flags)&&(211===t||212===t||213===t||235===t)}function Oc(e){return wc(e)&&!kD(e)&&!!e.questionDotToken}function Fc(e){return Oc(e.parent)&&e.parent.expression===e}function Wc(e){return!wc(e.parent)||Oc(e.parent)||e!==e.parent.expression}function zc(e){return 226===e.kind&&61===e.operatorToken.kind}function Bc(e){return PC(e)&&nC(e.typeName)&&"const"===e.typeName.escapedText&&!e.typeArguments}function Gc(e){return EL(e,8)}function jc(e){return kD(e)&&!!(64&e.flags)}function Vc(e){return 252===e.kind||251===e.kind}function Uc(e){return 280===e.kind||279===e.kind}function Hc(e){switch(e.kind){case 309:case 310:return!0;default:return!1}}function Kc(e){return Hc(e)||307===e.kind||311===e.kind}function qc(e){return 355===e.kind||348===e.kind}function Jc(e){return Xc(e.kind)}function Xc(e){return e>=166}function $c(e){return e>=0&&e<=165}function Yc(e){return $c(e.kind)}function Qc(e){return He(e,"pos")&&He(e,"end")}function Zc(e){return 9<=e&&e<=15}function ed(e){return Zc(e.kind)}function td(e){switch(e.kind){case 210:case 209:case 14:case 218:case 231:return!0}return!1}function nd(e){return 15<=e&&e<=18}function rd(e){return nd(e.kind)}function od(e){const t=e.kind;return 17===t||18===t}function id(e){return RN(e)||MN(e)}function ad(e){switch(e.kind){case 276:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 274:return e.parent.isTypeOnly;case 273:case 271:return e.isTypeOnly}return!1}function sd(e){switch(e.kind){case 281:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 278:return e.isTypeOnly&&!!e.moduleSpecifier&&!e.exportClause;case 280:return e.parent.isTypeOnly}return!1}function ld(e){return ad(e)||sd(e)}function cd(e){return 11===e.kind||nd(e.kind)}function dd(e){return zR(e)||nC(e)}function ud(e){var t;return nC(e)&&void 0!==(null==(t=e.emitNode)?void 0:t.autoGenerate)}function pd(e){var t;return rC(e)&&void 0!==(null==(t=e.emitNode)?void 0:t.autoGenerate)}function fd(e){const t=e.emitNode.autoGenerate.flags;return!!(32&t)&&!!(16&t)&&!!(8&t)}function md(e){return(TC(e)||wd(e))&&rC(e.name)}function _d(e){return lD(e)&&rC(e.name)}function hd(e){switch(e){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 164:return!0}return!1}function gd(e){return!!(31&sE(e))}function yd(e){return gd(e)||126===e||164===e||129===e}function vd(e){return hd(e.kind)}function bd(e){const t=e.kind;return 166===t||80===t}function Ed(e){const t=e.kind;return 80===t||81===t||11===t||9===t||167===t}function Sd(e){const t=e.kind;return 80===t||206===t||207===t}function Td(e){return!!e&&Cd(e.kind)}function xd(e){return!!e&&(Cd(e.kind)||IC(e))}function Ad(e){return e&&Rd(e.kind)}function Id(e){return 112===e.kind||97===e.kind}function Rd(e){switch(e){case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function Cd(e){switch(e){case 173:case 179:case 330:case 180:case 181:case 184:case 324:case 185:return!0;default:return Rd(e)}}function Dd(e){return rM(e)||fN(e)||BD(e)&&Td(e.parent)}function Nd(e){const t=e.kind;return 176===t||172===t||174===t||177===t||178===t||181===t||175===t||240===t}function Md(e){return e&&(263===e.kind||231===e.kind)}function Ld(e){return e&&(177===e.kind||178===e.kind)}function kd(e){return TC(e)&&qb(e)}function Pd(e){return $h(e)&&IA(e)?(!Ag(e)||!IE(e.expression))&&!Rg(e,!0):e.parent&&Md(e.parent)&&TC(e)&&!qb(e)}function wd(e){switch(e.kind){case 174:case 177:case 178:return!0;default:return!1}}function Od(e){switch(e.kind){case 174:case 177:case 178:case 172:return!0;default:return!1}}function Fd(e){return vd(e)||EC(e)}function Wd(e){const t=e.kind;return 180===t||179===t||171===t||173===t||181===t||177===t||178===t}function zd(e){return Wd(e)||Nd(e)}function Bd(e){const t=e.kind;return 303===t||304===t||305===t||174===t||177===t||178===t}function Gd(e){return PS(e.kind)}function jd(e){switch(e.kind){case 184:case 185:return!0}return!1}function Vd(e){if(e){const t=e.kind;return 207===t||206===t}return!1}function Ud(e){const t=e.kind;return 209===t||210===t}function Hd(e){const t=e.kind;return 208===t||232===t}function Kd(e){switch(e.kind){case 260:case 169:case 208:return!0}return!1}function qd(e){return iN(e)||bC(e)||$d(e)||Qd(e)}function Jd(e){return Xd(e)||Yd(e)}function Xd(e){switch(e.kind){case 206:case 210:return!0}return!1}function $d(e){switch(e.kind){case 208:case 303:case 304:case 305:return!0}return!1}function Yd(e){switch(e.kind){case 207:case 209:return!0}return!1}function Qd(e){switch(e.kind){case 208:case 232:case 230:case 209:case 210:case 80:case 211:case 212:return!0}return gE(e,!0)}function Zd(e){const t=e.kind;return 211===t||166===t||205===t}function eu(e){const t=e.kind;return 211===t||166===t}function tu(e){return nu(e)||eA(e)}function nu(e){switch(e.kind){case 286:case 285:case 213:case 214:case 215:case 170:return!0;default:return!1}}function ru(e){return 213===e.kind||214===e.kind}function ou(e){const t=e.kind;return 228===t||15===t}function iu(e){return au(Gc(e).kind)}function au(e){switch(e){case 211:case 212:case 214:case 213:case 284:case 285:case 288:case 215:case 209:case 217:case 210:case 231:case 218:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 228:case 97:case 106:case 110:case 112:case 108:case 235:case 233:case 236:case 102:case 282:return!0;default:return!1}}function su(e){return lu(Gc(e).kind)}function lu(e){switch(e){case 224:case 225:case 220:case 221:case 222:case 223:case 216:return!0;default:return au(e)}}function cu(e){switch(e.kind){case 225:return!0;case 224:return 46===e.operator||47===e.operator;default:return!1}}function du(e){switch(e.kind){case 106:case 112:case 97:case 224:return!0;default:return ed(e)}}function uu(e){return function(e){switch(e){case 227:case 229:case 219:case 226:case 230:case 234:case 232:case 361:case 360:case 238:return!0;default:return lu(e)}}(Gc(e).kind)}function pu(e){const t=e.kind;return 216===t||234===t}function fu(e){return kN(e)||OD(e)}function mu(e,t){switch(e.kind){case 248:case 249:case 250:case 246:case 247:return!0;case 256:return t&&mu(e.statement,t)}return!1}function _u(e){return CN(e)||DN(e)}function hu(e){return se(e,_u)}function gu(e){return!e_(e)&&!CN(e)&&!Gb(e,32)&&!Pm(e)}function yu(e){return e_(e)||CN(e)||Gb(e,32)}function vu(e){return 249===e.kind||250===e.kind}function bu(e){return BD(e)||uu(e)}function Eu(e){return BD(e)}function Su(e){return aN(e)||uu(e)}function Tu(e){const t=e.kind;return 268===t||267===t||80===t}function xu(e){const t=e.kind;return 268===t||267===t}function Au(e){const t=e.kind;return 80===t||267===t}function Iu(e){const t=e.kind;return 275===t||274===t}function Ru(e){return 267===e.kind||266===e.kind}function Cu(e){switch(e.kind){case 219:case 226:case 208:case 213:case 179:case 263:case 231:case 175:case 176:case 185:case 180:case 212:case 266:case 306:case 277:case 278:case 281:case 262:case 218:case 184:case 177:case 80:case 273:case 271:case 276:case 181:case 264:case 345:case 347:case 324:case 348:case 355:case 330:case 353:case 329:case 291:case 292:case 293:case 200:case 174:case 173:case 267:case 202:case 280:case 270:case 274:case 214:case 15:case 9:case 210:case 169:case 211:case 303:case 172:case 171:case 178:case 304:case 312:case 305:case 11:case 265:case 187:case 168:case 260:return!0;default:return!1}}function Du(e){switch(e.kind){case 219:case 241:case 179:case 269:case 299:case 175:case 194:case 176:case 185:case 180:case 248:case 249:case 250:case 262:case 218:case 184:case 177:case 181:case 345:case 347:case 324:case 330:case 353:case 200:case 174:case 173:case 267:case 178:case 312:case 265:return!0;default:return!1}}function Nu(e){return 262===e||282===e||263===e||264===e||265===e||266===e||267===e||272===e||271===e||278===e||277===e||270===e}function Mu(e){return 252===e||251===e||259===e||246===e||244===e||242===e||249===e||250===e||248===e||245===e||256===e||253===e||255===e||257===e||258===e||243===e||247===e||254===e||359===e}function Lu(e){return 168===e.kind?e.parent&&352!==e.parent.kind||$h(e):219===(t=e.kind)||208===t||263===t||231===t||175===t||176===t||266===t||306===t||281===t||262===t||218===t||177===t||273===t||271===t||276===t||264===t||291===t||174===t||173===t||267===t||270===t||274===t||280===t||169===t||303===t||172===t||171===t||178===t||304===t||265===t||168===t||260===t||353===t||345===t||355===t;var t}function ku(e){return Nu(e.kind)}function Pu(e){return Mu(e.kind)}function wu(e){const t=e.kind;return Mu(t)||Nu(t)||function(e){if(241!==e.kind)return!1;if(void 0!==e.parent&&(258===e.parent.kind||299===e.parent.kind))return!1;return!rh(e)}(e)}function Ou(e){const t=e.kind;return Mu(t)||Nu(t)||241===t}function Fu(e){const t=e.kind;return 283===t||166===t||80===t}function Wu(e){const t=e.kind;return 110===t||80===t||211===t||295===t}function zu(e){const t=e.kind;return 284===t||294===t||285===t||12===t||288===t}function Bu(e){const t=e.kind;return 291===t||293===t}function Gu(e){const t=e.kind;return 11===t||294===t}function ju(e){const t=e.kind;return 286===t||285===t}function Vu(e){const t=e.kind;return 296===t||297===t}function Uu(e){return e.kind>=316&&e.kind<=357}function Hu(e){return 327===e.kind||326===e.kind||328===e.kind||rp(e)||Ku(e)||EM(e)||SM(e)}function Ku(e){return e.kind>=334&&e.kind<=357}function qu(e){return 178===e.kind}function Ju(e){return 177===e.kind}function Xu(e){if(!Zg(e))return!1;const{jsDoc:t}=e;return!!t&&t.length>0}function $u(e){return!!e.type}function Yu(e){return!!e.initializer}function Qu(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:case 306:return!0;default:return!1}}function Zu(e){return 291===e.kind||293===e.kind||Bd(e)}function ep(e){return 183===e.kind||233===e.kind}function tp(e){let t=qs;for(const n of e){if(!n.length)continue;let e=0;for(;e<n.length&&e<t&&hs(n.charCodeAt(e));e++);if(e<t&&(t=e),0===t)return 0}return t===qs?void 0:t}function np(e){return 11===e.kind||15===e.kind}function rp(e){return 331===e.kind||332===e.kind||333===e.kind}function op(e){const t=Oe(e.parameters);return!!t&&ip(t)}function ip(e){const t=OM(e)?e.typeExpression&&e.typeExpression.type:e.type;return void 0!==e.dotDotDotToken||!!t&&325===t.kind}function ap(e,t){return t.text.substring(e.pos,e.end).includes("@internal")}function sp(e,t){t??(t=Yf(e));const n=Nl(e);if(n&&169===n.kind){const r=n.parent.parameters.indexOf(n),o=r>0?n.parent.parameters[r-1]:void 0,i=t.text,a=o?ce(ws(i,Ts(i,o.end+1,!1,!0)),Ps(i,e.pos)):ws(i,Ts(i,e.pos,!1,!0));return se(a)&&ap(Fe(a),t)}return!!x(n&&B_(n,t),(e=>ap(e,t)))}var lp,cp,dp,up,pp,fp,mp,_p,hp,gp,yp,vp,bp,Ep,Sp,Tp,xp,Ap,Ip,Rp,Cp,Dp,Np,Mp,Lp,kp,Pp,wp,Op,Fp,Wp,zp,Bp,Gp,jp,Vp,Up,Hp,Kp,qp,Jp,Xp,$p,Yp,Qp,Zp,ef,tf,nf,rf,of,af,sf,lf,cf,df,uf,pf,ff,mf,_f,hf,gf,yf,vf,bf,Ef,Sf,Tf,xf,Af,If,Rf,Cf=b({"src/compiler/utilitiesPublic.ts"(){JJ(),Hs=ml(dl(0,0),0),Ks=["cs","de","es","fr","it","ja","ko","pl","pt-br","ru","tr","zh-cn","zh-tw"],qs=1073741823}});function Df(e,t){const n=e.declarations;if(n)for(const r of n)if(r.kind===t)return r}function Nf(e,t){return G(e.declarations||o,(e=>e.kind===t))}function Mf(e){const t=new Map;if(e)for(const n of e)t.set(n.escapedName,n);return t}function Lf(e){return 0!==(33554432&e.flags)}function kf(e,t){return e.configFilePath!==t.configFilePath||Pf(e,t)}function Pf(e,t){return Of(e,t,WP)}function wf(e,t){return Of(e,t,BP)}function Of(e,t,n){return e!==t&&n.some((n=>!Dx(MT(e,n),MT(t,n))))}function Ff(e,t){for(;;){const n=t(e);if("quit"===n)return;if(void 0!==n)return n;if(rM(e))return;e=e.parent}}function Wf(e,t){const n=e.entries();for(const[r,o]of n){const e=t(o,r);if(e)return e}}function zf(e,t){const n=e.keys();for(const r of n){const e=t(r);if(e)return e}}function Bf(e,t){e.forEach(((e,n)=>{t.set(n,e)}))}function Gf(e){const t=pp.getText();try{return e(pp),pp.getText()}finally{pp.clear(),pp.writeKeyword(t)}}function jf(e){return e.end-e.pos}function Vf(e,t){return e.path===t.path&&!e.prepend===!t.prepend&&!e.circular===!t.circular}function Uf(e,t){return e===t||e.resolvedModule===t.resolvedModule||!!e.resolvedModule&&!!t.resolvedModule&&e.resolvedModule.isExternalLibraryImport===t.resolvedModule.isExternalLibraryImport&&e.resolvedModule.extension===t.resolvedModule.extension&&e.resolvedModule.resolvedFileName===t.resolvedModule.resolvedFileName&&e.resolvedModule.originalPath===t.resolvedModule.originalPath&&(n=e.resolvedModule.packageId,r=t.resolvedModule.packageId,n===r||!!n&&!!r&&n.name===r.name&&n.subModuleName===r.subModuleName&&n.version===r.version)&&e.alternateResult===t.alternateResult;var n,r}function Hf(e,t,n,r,o){var i;const a=null==(i=t.getResolvedModule(e,n,r))?void 0:i.alternateResult,s=a&&(2===Up(t.getCompilerOptions())?[Oa.There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler,[a]]:[Oa.There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings,[a,a.includes(HO+"@types/")?`@types/${xW(o)}`:o]]),l=s?cT(void 0,s[0],...s[1]):t.typesPackageExists(o)?cT(void 0,Oa.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,o,xW(o)):t.packageBundlesTypes(o)?cT(void 0,Oa.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,o,n):cT(void 0,Oa.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,n,xW(o));return l&&(l.repopulateInfo=()=>({moduleReference:n,mode:r,packageName:o===n?void 0:o})),l}function Kf({name:e,subModuleName:t}){return t?`${e}/${t}`:e}function qf(e){return`${Kf(e)}@${e.version}`}function Jf(e,t){return e===t||e.resolvedTypeReferenceDirective===t.resolvedTypeReferenceDirective||!!e.resolvedTypeReferenceDirective&&!!t.resolvedTypeReferenceDirective&&e.resolvedTypeReferenceDirective.resolvedFileName===t.resolvedTypeReferenceDirective.resolvedFileName&&!!e.resolvedTypeReferenceDirective.primary===!!t.resolvedTypeReferenceDirective.primary&&e.resolvedTypeReferenceDirective.originalPath===t.resolvedTypeReferenceDirective.originalPath}function Xf(e,t,n,r){In.assert(e.length===t.length);for(let o=0;o<e.length;o++){const i=t[o],a=n(e[o]);if(a?!i||!r(a,i):i)return!0}return!1}function $f(e){return function(e){if(!(2097152&e.flags)){(0!==(262144&e.flags)||oP(e,$f))&&(e.flags|=1048576),e.flags|=2097152}}(e),0!==(1048576&e.flags)}function Yf(e){for(;e&&312!==e.kind;)e=e.parent;return e}function Qf(e){return Yf(e.valueDeclaration||Vm(e))}function Zf(e,t){return!!e&&(1===e.scriptKind||2===e.scriptKind)&&!e.checkJsDirective&&void 0===t}function em(e){switch(e.kind){case 241:case 269:case 248:case 249:case 250:return!0}return!1}function tm(e,t){return In.assert(e>=0),us(t)[e]}function nm(e){const t=Yf(e),n=_s(t,e.pos);return`${t.fileName}(${n.line+1},${n.character+1})`}function rm(e,t){In.assert(e>=0);const n=us(t),r=e,o=t.text;if(r+1===n.length)return o.length-1;{const e=n[r];let t=n[r+1]-1;for(In.assert(ys(o.charCodeAt(t)));e<=t&&ys(o.charCodeAt(t));)t--;return t}}function om(e,t,n){return!(n&&n(t))&&!e.identifiers.has(t)}function im(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function am(e){return!im(e)}function sm(e,t){return vC(e)?t===e.expression:IC(e)?t===e.modifiers:SC(e)?t===e.initializer:TC(e)?t===e.questionToken&&kd(e):QN(e)?t===e.modifiers||t===e.questionToken||t===e.exclamationToken||lm(e.modifiers,t,Fd):ZN(e)?t===e.equalsToken||t===e.modifiers||t===e.questionToken||t===e.exclamationToken||lm(e.modifiers,t,Fd):AC(e)?t===e.exclamationToken:RC(e)?t===e.typeParameters||t===e.type||lm(e.typeParameters,t,vC):CC(e)?t===e.typeParameters||lm(e.typeParameters,t,vC):DC(e)?t===e.typeParameters||t===e.type||lm(e.typeParameters,t,vC):!!_N(e)&&(t===e.modifiers||lm(e.modifiers,t,Fd))}function lm(e,t,n){return!(!e||mt(t)||!n(t))&&F(e,t)}function cm(e,t,n){if(void 0===t||0===t.length)return e;let r=0;for(;r<e.length&&n(e[r]);++r);return e.splice(r,0,...t),e}function dm(e,t,n){if(void 0===t)return e;let r=0;for(;r<e.length&&n(e[r]);++r);return e.splice(r,0,t),e}function um(e){return w_(e)||!!(2097152&Rm(e))}function pm(e,t){return cm(e,t,w_)}function fm(e,t){return cm(e,t,um)}function mm(e,t){return dm(e,t,w_)}function _m(e,t){return dm(e,t,um)}function hm(e,t,n){if(47===e.charCodeAt(t+1)&&t+2<n&&47===e.charCodeAt(t+2)){const r=e.substring(t,n);return!!(_p.test(r)||yp.test(r)||vp.test(r)||hp.test(r)||gp.test(r)||bp.test(r))}return!1}function gm(e,t){return 42===e.charCodeAt(t+1)&&33===e.charCodeAt(t+2)}function ym(e,t){const n=new Map(t.map((t=>[`${_s(e,t.range.end).line}`,t]))),r=new Map;return{getUnusedExpectations:function(){return Ye(n.entries()).filter((([e,t])=>0===t.type&&!r.get(e))).map((([e,t])=>t))},markUsed:function(e){if(!n.has(`${e}`))return!1;return r.set(`${e}`,!0),!0}}}function vm(e,t,n){return im(e)?e.pos:Uu(e)||12===e.kind?Ts((t||Yf(e)).text,e.pos,!1,!0):n&&Xu(e)?vm(e.jsDoc[0],t):358===e.kind&&e._children.length>0?vm(e._children[0],t,n):Ts((t||Yf(e)).text,e.pos,!1,!1,Zh(e))}function bm(e,t){const n=!im(e)&&vk(e)?k(e.modifiers,EC):void 0;return n?Ts((t||Yf(e)).text,n.end):vm(e,t)}function Em(e,t,n=!1){return Tm(e.text,t,n)}function Sm(e){return!!(DN(e)&&e.exportClause&&AN(e.exportClause)&&"default"===e.exportClause.name.escapedText)}function Tm(e,t,n=!1){if(im(t))return"";let r=e.substring(n?t.pos:Ts(e,t.pos),t.end);return function(e){return!!Cl(e,aM)}(t)&&(r=r.split(/\r\n|\n|\r/).map((e=>e.replace(/^\s*\*/,"").trimStart())).join("\n")),r}function xm(e,t=!1){return Em(Yf(e),e,t)}function Am(e){return e.pos}function Im(e,t){return je(e,t,Am,Ft)}function Rm(e){const t=e.emitNode;return t&&t.flags||0}function Cm(e){const t=e.emitNode;return t&&t.internalFlags||0}function Dm(e,t,n){if(t&&function(e,t){if(Sv(e)||!e.parent||4&t&&e.isUnterminated)return!1;if(FR(e)){if(26656&e.numericLiteralFlags)return!1;if(512&e.numericLiteralFlags)return!!(8&t)}return!WR(e)}(e,n))return Em(t,e);switch(e.kind){case 11:{const t=2&n?Bv:1&n||16777216&Rm(e)?Fv:Wv;return e.singleQuote?"'"+t(e.text,39)+"'":'"'+t(e.text,34)+'"'}case 15:case 16:case 17:case 18:{const t=1&n||16777216&Rm(e)?Fv:Wv,r=e.rawText??Lv(t(e.text,96));switch(e.kind){case 15:return"`"+r+"`";case 16:return"`"+r+"${";case 17:return"}"+r+"${";case 18:return"}"+r+"`"}break}case 9:case 10:return e.text;case 14:return 4&n&&e.isUnterminated?e.text+(92===e.text.charCodeAt(e.text.length-1)?" /":"/"):e.text}return In.fail(`Literal kind '${e.kind}' not accounted for.`)}function Nm(e){return ht(e)?'"'+Wv(e)+'"':""+e}function Mm(e){return oa(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function Lm(e){return 0!==(7&xl(e))||km(e)}function km(e){const t=bv(e);return 260===t.kind&&299===t.parent.kind}function Pm(e){return pN(e)&&(11===e.name.kind||Bm(e))}function wm(e){return pN(e)&&11===e.name.kind}function Om(e){return pN(e)&&zR(e.name)}function Fm(e){return pN(e)||nC(e)}function Wm(e){return!!(t=e.valueDeclaration)&&267===t.kind&&!t.body;var t}function zm(e){return 312===e.kind||267===e.kind||xd(e)}function Bm(e){return!!(2048&e.flags)}function Gm(e){return Pm(e)&&jm(e)}function jm(e){switch(e.parent.kind){case 312:return uP(e.parent);case 268:return Pm(e.parent.parent)&&rM(e.parent.parent.parent)&&!uP(e.parent.parent.parent)}return!1}function Vm(e){var t;return null==(t=e.declarations)?void 0:t.find((e=>!Gm(e)&&!(pN(e)&&Bm(e))))}function Um(e,t){return uP(e)||(1===(n=Vp(t))||100===n||199===n)&&!!e.commonJsModuleIndicator;var n}function Hm(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return!e.isDeclarationFile&&(!!IT(t,"alwaysStrict")||(!!_L(e.statements)||!(!uP(e)&&!Kp(t))&&(Vp(t)>=5||!t.noImplicitUseStrict)))}function Km(e){return!!(33554432&e.flags)||Gb(e,128)}function qm(e,t){switch(e.kind){case 312:case 269:case 299:case 267:case 248:case 249:case 250:case 176:case 174:case 177:case 178:case 262:case 218:case 219:case 172:case 175:return!0;case 241:return!xd(t)}return!1}function Jm(e){switch(In.type(e),e.kind){case 345:case 353:case 330:return!0;default:return Xm(e)}}function Xm(e){switch(In.type(e),e.kind){case 179:case 180:case 173:case 181:case 184:case 185:case 324:case 263:case 231:case 264:case 265:case 352:case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function $m(e){switch(e.kind){case 272:case 271:return!0;default:return!1}}function Ym(e){return $m(e)||rg(e)}function Qm(e){switch(e.kind){case 272:case 271:case 243:case 263:case 262:case 267:case 265:case 264:case 266:return!0;default:return!1}}function Zm(e){return e_(e)||pN(e)||eD(e)||L_(e)}function e_(e){return $m(e)||DN(e)}function t_(e){return Cl(e.parent,(e=>!!(1&qW(e))))}function n_(e){return Cl(e.parent,(e=>qm(e,e.parent)))}function r_(e,t){let n=n_(e);for(;n;)t(n),n=n_(n)}function o_(e){return e&&0!==jf(e)?xm(e):"(Missing)"}function i_(e){return e.declaration?o_(e.declaration.parameters[0].name):void 0}function a_(e){return 167===e.kind&&!tv(e.expression)}function s_(e){var t;switch(e.kind){case 80:case 81:return(null==(t=e.emitNode)?void 0:t.autoGenerate)?void 0:e.escapedText;case 11:case 9:case 15:return Ml(e.text);case 167:return tv(e.expression)?Ml(e.expression.text):void 0;case 295:return EA(e);default:return In.assertNever(e)}}function l_(e){return In.checkDefined(s_(e))}function c_(e){switch(e.kind){case 110:return"this";case 81:case 80:return 0===jf(e)?kl(e):xm(e);case 166:return c_(e.left)+"."+c_(e.right);case 211:return nC(e.name)||rC(e.name)?c_(e.expression)+"."+c_(e.name):In.assertNever(e.name);case 318:return c_(e.left)+c_(e.right);case 295:return c_(e.namespace)+":"+c_(e.name);default:return In.assertNever(e)}}function d_(e,t,...n){return p_(Yf(e),e,t,...n)}function u_(e,t,n,...r){const o=Ts(e.text,t.pos);return iT(e,o,t.end-o,n,...r)}function p_(e,t,n,...r){const o=S_(e,t);return iT(e,o.start,o.length,n,...r)}function f_(e,t,n,r){const o=S_(e,t);return h_(e,o.start,o.length,n,r)}function m_(e,t,n,r){const o=Ts(e.text,t.pos);return h_(e,o,t.end-o,n,r)}function __(e,t,n){In.assertGreaterThanOrEqual(t,0),In.assertGreaterThanOrEqual(n,0),In.assertLessThanOrEqual(t,e.length),In.assertLessThanOrEqual(t+n,e.length)}function h_(e,t,n,r,o){return __(e.text,t,n),{file:e,start:t,length:n,code:r.code,category:r.category,messageText:r.next?r:r.messageText,relatedInformation:o}}function g_(e,t,n){return{file:e,start:0,length:0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:n}}function y_(e){return"string"===typeof e.messageText?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function v_(e,t,n){return{file:e,start:t.pos,length:t.end-t.pos,code:n.code,category:n.category,messageText:n.message}}function b_(e,t){const n=Bs(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);n.scan();return ul(n.getTokenStart(),n.getTokenEnd())}function E_(e,t){const n=Bs(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return n.scan(),n.getToken()}function S_(e,t){let n=t;switch(t.kind){case 312:{const t=Ts(e.text,0,!1);return t===e.text.length?dl(0,0):b_(e,t)}case 260:case 208:case 263:case 231:case 264:case 267:case 266:case 306:case 262:case 218:case 174:case 177:case 178:case 265:case 172:case 171:case 274:n=t.name;break;case 219:return function(e,t){const n=Ts(e.text,t.pos);if(t.body&&241===t.body.kind){const{line:r}=_s(e,t.body.pos),{line:o}=_s(e,t.body.end);if(r<o)return dl(n,rm(r,e)-n+1)}return ul(n,t.end)}(e,t);case 296:case 297:return ul(Ts(e.text,t.pos),t.statements.length>0?t.statements[0].pos:t.end);case 253:case 229:return b_(e,Ts(e.text,t.pos));case 238:return b_(e,Ts(e.text,t.expression.end));case 357:return b_(e,Ts(e.text,t.tagName.pos))}if(void 0===n)return b_(e,t.pos);In.assert(!bM(n));const r=im(n),o=r||BR(t)?n.pos:Ts(e.text,n.pos);return r?(In.assert(o===n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),In.assert(o===n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(In.assert(o>=n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),In.assert(o<=n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),ul(o,n.end)}function T_(e){return void 0!==(e.externalModuleIndicator||e.commonJsModuleIndicator)}function x_(e){return 6===e.scriptKind}function A_(e){return!!(4096&Sl(e))}function I_(e){return!(!(8&Sl(e))||gl(e,e.parent))}function R_(e){return 6===(7&xl(e))}function C_(e){return 4===(7&xl(e))}function D_(e){return 2===(7&xl(e))}function N_(e){return 1===(7&xl(e))}function M_(e){return 213===e.kind&&108===e.expression.kind}function L_(e){return 213===e.kind&&102===e.expression.kind}function k_(e){return PD(e)&&102===e.keywordToken&&"meta"===e.name.escapedText}function P_(e){return eD(e)&&ZC(e.argument)&&zR(e.argument.literal)}function w_(e){return 244===e.kind&&11===e.expression.kind}function O_(e){return!!(2097152&Rm(e))}function F_(e){return O_(e)&&sN(e)}function W_(e){return nC(e.name)&&!e.initializer}function z_(e){return O_(e)&&GD(e)&&M(e.declarationList.declarations,W_)}function B_(e,t){return 12!==e.kind?Ps(t.text,e.pos):void 0}function G_(e,t){return G(169===e.kind||168===e.kind||218===e.kind||219===e.kind||217===e.kind||260===e.kind||281===e.kind?ce(ws(t,e.pos),Ps(t,e.pos)):Ps(t,e.pos),(e=>42===t.charCodeAt(e.pos+1)&&42===t.charCodeAt(e.pos+2)&&47!==t.charCodeAt(e.pos+3)))}function j_(e){if(182<=e.kind&&e.kind<=205)return!0;switch(e.kind){case 133:case 159:case 150:case 163:case 154:case 136:case 155:case 151:case 157:case 106:case 146:return!0;case 116:return 222!==e.parent.kind;case 233:return V_(e);case 168:return 200===e.parent.kind||195===e.parent.kind;case 80:(166===e.parent.kind&&e.parent.right===e||211===e.parent.kind&&e.parent.name===e)&&(e=e.parent),In.assert(80===e.kind||166===e.kind||211===e.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 166:case 211:case 110:{const{parent:t}=e;if(186===t.kind)return!1;if(205===t.kind)return!t.isTypeOf;if(182<=t.kind&&t.kind<=205)return!0;switch(t.kind){case 233:return V_(t);case 168:case 352:return e===t.constraint;case 172:case 171:case 169:case 260:case 262:case 218:case 219:case 176:case 174:case 173:case 177:case 178:case 179:case 180:case 181:case 216:return e===t.type;case 213:case 214:case 215:return F(t.typeArguments,e)}}}return!1}function V_(e){return UM(e.parent)||TM(e.parent)||$N(e.parent)&&!bE(e)}function U_(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent}return!1}function H_(e,t){return function e(n){switch(n.kind){case 253:return t(n);case 269:case 241:case 245:case 246:case 247:case 248:case 249:case 250:case 254:case 255:case 296:case 297:case 256:case 258:case 299:return oP(n,e)}}(e)}function K_(e,t){return function e(n){switch(n.kind){case 229:t(n);const r=n.expression;return void(r&&e(r));case 266:case 264:case 267:case 265:return;default:if(Td(n)){if(n.name&&167===n.name.kind)return void e(n.name.expression)}else j_(n)||oP(n,e)}}(e)}function q_(e){return e&&188===e.kind?e.elementType:e&&183===e.kind?We(e.typeArguments):void 0}function J_(e){switch(e.kind){case 264:case 263:case 231:case 187:return e.members;case 210:return e.properties}}function X_(e){if(e)switch(e.kind){case 208:case 306:case 169:case 303:case 172:case 171:case 304:case 260:return!0}return!1}function $_(e){return X_(e)||Ld(e)}function Y_(e){return 261===e.parent.kind&&243===e.parent.parent.kind}function Q_(e){return!!$h(e)&&(sD(e.parent)&&TD(e.parent.parent)&&2===Eg(e.parent.parent)||Z_(e.parent))}function Z_(e){return!!$h(e)&&(TD(e)&&1===Eg(e))}function eh(e){return(iN(e)?D_(e)&&nC(e.name)&&Y_(e):TC(e)?Jb(e)&&Vb(e):SC(e)&&Jb(e))||Z_(e)}function th(e){switch(e.kind){case 174:case 173:case 176:case 177:case 178:case 262:case 218:return!0}return!1}function nh(e,t){for(;;){if(t&&t(e),256!==e.statement.kind)return e.statement;e=e.statement}}function rh(e){return e&&241===e.kind&&Td(e.parent)}function oh(e){return e&&174===e.kind&&210===e.parent.kind}function ih(e){return(174===e.kind||177===e.kind||178===e.kind)&&(210===e.parent.kind||231===e.parent.kind)}function ah(e){return e&&1===e.kind}function sh(e){return e&&0===e.kind}function lh(e,t,n,r){return x(null==e?void 0:e.properties,(e=>{if(!QN(e))return;const o=s_(e.name);return t===o||r&&r===o?n(e):void 0}))}function ch(e,t,n){return lh(e,t,(e=>aD(e.initializer)?L(e.initializer.elements,(e=>zR(e)&&e.text===n)):void 0))}function dh(e){if(e&&e.statements.length){return yt(e.statements[0].expression,sD)}}function uh(e,t,n){return ph(e,t,(e=>aD(e.initializer)?L(e.initializer.elements,(e=>zR(e)&&e.text===n)):void 0))}function ph(e,t,n){return lh(dh(e),t,n)}function fh(e){return Cl(e.parent,Td)}function mh(e){return Cl(e.parent,Ad)}function _h(e){return Cl(e.parent,Md)}function hh(e){return Cl(e.parent,(e=>Md(e)||Td(e)?"quit":IC(e)))}function gh(e){return Cl(e.parent,xd)}function yh(e){const t=Cl(e.parent,(e=>Md(e)?"quit":EC(e)));return t&&Md(t.parent)?_h(t.parent):_h(t??e)}function vh(e,t,n){for(In.assert(312!==e.kind);;){if(!(e=e.parent))return In.fail();switch(e.kind){case 167:if(n&&Md(e.parent.parent))return e;e=e.parent.parent;break;case 170:169===e.parent.kind&&Nd(e.parent.parent)?e=e.parent.parent:Nd(e.parent)&&(e=e.parent);break;case 219:if(!t)continue;case 262:case 218:case 267:case 175:case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 179:case 180:case 181:case 266:case 312:return e}}}function bh(e){switch(e.kind){case 219:case 262:case 218:case 172:return!0;case 241:switch(e.parent.kind){case 176:case 174:case 177:case 178:return!0;default:return!1}default:return!1}}function Eh(e){nC(e)&&(lN(e.parent)||sN(e.parent))&&e.parent.name===e&&(e=e.parent);return rM(vh(e,!0,!1))}function Sh(e){const t=vh(e,!1,!1);if(t)switch(t.kind){case 176:case 262:case 218:return t}}function Th(e,t){for(;;){if(!(e=e.parent))return;switch(e.kind){case 167:e=e.parent;break;case 262:case 218:case 219:if(!t)continue;case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 175:return e;case 170:169===e.parent.kind&&Nd(e.parent.parent)?e=e.parent.parent:Nd(e.parent)&&(e=e.parent)}}}function xh(e){if(218===e.kind||219===e.kind){let t=e,n=e.parent;for(;217===n.kind;)t=n,n=n.parent;if(213===n.kind&&n.expression===t)return n}}function Ah(e){return 108===e.kind||Ih(e)}function Ih(e){const t=e.kind;return(211===t||212===t)&&108===e.expression.kind}function Rh(e){const t=e.kind;return(211===t||212===t)&&110===e.expression.kind}function Ch(e){var t;return!!e&&iN(e)&&110===(null==(t=e.initializer)?void 0:t.kind)}function Dh(e){return!!e&&(ZN(e)||QN(e))&&TD(e.parent.parent)&&64===e.parent.parent.operatorToken.kind&&110===e.parent.parent.right.kind}function Nh(e){switch(e.kind){case 183:return e.typeName;case 233:return EE(e.expression)?e.expression:void 0;case 80:case 166:return e}}function Mh(e){switch(e.kind){case 215:return e.tag;case 286:case 285:return e.tagName;case 226:return e.right;default:return e.expression}}function Lh(e,t,n,r){if(e&&Bl(t)&&rC(t.name))return!1;switch(t.kind){case 263:return!0;case 231:return!e;case 172:return void 0!==n&&(e?lN(n):Md(n)&&!Hb(t)&&!Kb(t));case 177:case 178:case 174:return void 0!==t.body&&void 0!==n&&(e?lN(n):Md(n));case 169:return!!e&&(void 0!==n&&void 0!==n.body&&(176===n.kind||174===n.kind||178===n.kind)&&yb(n)!==t&&void 0!==r&&263===r.kind)}return!1}function kh(e,t,n,r){return Xb(t)&&Lh(e,t,n,r)}function Ph(e,t,n,r){return kh(e,t,n,r)||wh(e,t,n)}function wh(e,t,n){switch(t.kind){case 263:return se(t.members,(r=>Ph(e,r,t,n)));case 231:return!e&&se(t.members,(r=>Ph(e,r,t,n)));case 174:case 178:case 176:return se(t.parameters,(r=>kh(e,r,t,n)));default:return!1}}function Oh(e,t){if(kh(e,t))return!0;const n=_b(t);return!!n&&wh(e,n,t)}function Fh(e,t,n){let r;if(Ld(t)){const{firstAccessor:e,secondAccessor:o,setAccessor:i}=xb(n.members,t),a=Xb(e)?e:o&&Xb(o)?o:void 0;if(!a||t!==a)return!1;r=null==i?void 0:i.parameters}else AC(t)&&(r=t.parameters);if(kh(e,t,n))return!0;if(r)for(const o of r)if(!vb(o)&&kh(e,o,t,n))return!0;return!1}function Wh(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 11:return Wh(e.textSourceNode);case 15:return""===e.text}return!1}return""===e.text}function zh(e){const{parent:t}=e;return(286===t.kind||285===t.kind||287===t.kind)&&t.tagName===e}function Bh(e){switch(e.kind){case 108:case 106:case 112:case 97:case 14:case 209:case 210:case 211:case 212:case 213:case 214:case 215:case 234:case 216:case 238:case 235:case 217:case 218:case 231:case 219:case 222:case 220:case 221:case 224:case 225:case 226:case 227:case 230:case 228:case 232:case 284:case 285:case 288:case 229:case 223:case 236:return!0;case 233:return!$N(e.parent)&&!TM(e.parent);case 166:for(;166===e.parent.kind;)e=e.parent;return 186===e.parent.kind||rp(e.parent)||sM(e.parent)||lM(e.parent)||zh(e);case 318:for(;lM(e.parent);)e=e.parent;return 186===e.parent.kind||rp(e.parent)||sM(e.parent)||lM(e.parent)||zh(e);case 81:return TD(e.parent)&&e.parent.left===e&&103===e.parent.operatorToken.kind;case 80:if(186===e.parent.kind||rp(e.parent)||sM(e.parent)||lM(e.parent)||zh(e))return!0;case 9:case 10:case 11:case 15:case 110:return Gh(e);default:return!1}}function Gh(e){const{parent:t}=e;switch(t.kind){case 260:case 169:case 172:case 171:case 306:case 303:case 208:return t.initializer===e;case 244:case 245:case 246:case 247:case 253:case 254:case 255:case 296:case 257:return t.expression===e;case 248:const n=t;return n.initializer===e&&261!==n.initializer.kind||n.condition===e||n.incrementor===e;case 249:case 250:const r=t;return r.initializer===e&&261!==r.initializer.kind||r.expression===e;case 216:case 234:case 239:case 167:case 238:return e===t.expression;case 170:case 294:case 293:case 305:return!0;case 233:return t.expression===e&&!j_(t);case 304:return t.objectAssignmentInitializer===e;default:return Bh(t)}}function jh(e){for(;166===e.kind||80===e.kind;)e=e.parent;return 186===e.kind}function Vh(e){return AN(e)&&!!e.parent.moduleSpecifier}function Uh(e){return 271===e.kind&&283===e.moduleReference.kind}function Hh(e){return In.assert(Uh(e)),e.moduleReference.expression}function Kh(e){return rg(e)&&zS(e.initializer).arguments[0]}function qh(e){return 271===e.kind&&283!==e.moduleReference.kind}function Jh(e){return $h(e)}function Xh(e){return!$h(e)}function $h(e){return!!e&&!!(524288&e.flags)}function Yh(e){return!!e&&!!(134217728&e.flags)}function Qh(e){return!x_(e)}function Zh(e){return!!e&&!!(16777216&e.flags)}function eg(e){return PC(e)&&nC(e.typeName)&&"Object"===e.typeName.escapedText&&e.typeArguments&&2===e.typeArguments.length&&(154===e.typeArguments[0].kind||150===e.typeArguments[0].kind)}function tg(e,t){if(213!==e.kind)return!1;const{expression:n,arguments:r}=e;if(80!==n.kind||"require"!==n.escapedText)return!1;if(1!==r.length)return!1;const o=r[0];return!t||np(o)}function ng(e){return ig(e,!1)}function rg(e){return ig(e,!0)}function og(e){return iD(e)&&rg(e.parent.parent)}function ig(e,t){return iN(e)&&!!e.initializer&&tg(t?zS(e.initializer):e.initializer,!0)}function ag(e){return GD(e)&&e.declarationList.declarations.length>0&&M(e.declarationList.declarations,(e=>ng(e)))}function sg(e){return 39===e||34===e}function lg(e,t){return 34===Em(t,e).charCodeAt(0)}function cg(e){return TD(e)||wS(e)||nC(e)||dD(e)}function dg(e){return $h(e)&&e.initializer&&TD(e.initializer)&&(57===e.initializer.operatorToken.kind||61===e.initializer.operatorToken.kind)&&e.name&&EE(e.name)&&hg(e.name,e.initializer.left)?e.initializer.right:e.initializer}function ug(e){const t=dg(e);return t&&fg(t,IE(e.name))}function pg(e){if(e&&e.parent&&TD(e.parent)&&64===e.parent.operatorToken.kind){const t=IE(e.parent.left);return fg(e.parent.right,t)||function(e,t,n){const r=TD(t)&&(57===t.operatorToken.kind||61===t.operatorToken.kind)&&fg(t.right,n);if(r&&hg(e,t.left))return r}(e.parent.left,e.parent.right,t)}if(e&&dD(e)&&Sg(e)){const t=function(e,t){return x(e.properties,(e=>QN(e)&&nC(e.name)&&"value"===e.name.escapedText&&e.initializer&&fg(e.initializer,t)))}(e.arguments[2],"prototype"===e.arguments[1].text);if(t)return t}}function fg(e,t){if(dD(e)){const t=Ty(e.expression);return 218===t.kind||219===t.kind?e:void 0}return 218===e.kind||231===e.kind||219===e.kind||sD(e)&&(0===e.properties.length||t)?e:void 0}function mg(e){const t=iN(e.parent)?e.parent.name:TD(e.parent)&&64===e.parent.operatorToken.kind?e.parent.left:void 0;return t&&fg(e.right,IE(t))&&EE(t)&&hg(t,e.left)}function _g(e){if(TD(e.parent)){const t=57!==e.parent.operatorToken.kind&&61!==e.parent.operatorToken.kind||!TD(e.parent.parent)?e.parent:e.parent.parent;if(64===t.operatorToken.kind&&nC(t.left))return t.left}else if(iN(e.parent))return e.parent.name}function hg(e,t){return av(e)&&av(t)?sv(e)===sv(t):Nc(e)&&Tg(t)&&(110===t.expression.kind||nC(t.expression)&&("window"===t.expression.escapedText||"self"===t.expression.escapedText||"global"===t.expression.escapedText))?hg(e,Cg(t)):!(!Tg(e)||!Tg(t))&&(Ng(e)===Ng(t)&&hg(e.expression,t.expression))}function gg(e){for(;gE(e,!0);)e=e.right;return e}function yg(e){return nC(e)&&"exports"===e.escapedText}function vg(e){return nC(e)&&"module"===e.escapedText}function bg(e){return(lD(e)||xg(e))&&vg(e.expression)&&"exports"===Ng(e)}function Eg(e){const t=function(e){if(dD(e)){if(!Sg(e))return 0;const t=e.arguments[0];return yg(t)||bg(t)?8:Ag(t)&&"prototype"===Ng(t)?9:7}if(64!==e.operatorToken.kind||!wS(e.left)||(t=gg(e),vD(t)&&FR(t.expression)&&"0"===t.expression.text))return 0;var t;if(Rg(e.left.expression,!0)&&"prototype"===Ng(e.left)&&sD(Lg(e)))return 6;return Mg(e.left)}(e);return 5===t||$h(e)?t:0}function Sg(e){return 3===T(e.arguments)&&lD(e.expression)&&nC(e.expression.expression)&&"Object"===kl(e.expression.expression)&&"defineProperty"===kl(e.expression.name)&&tv(e.arguments[1])&&Rg(e.arguments[0],!0)}function Tg(e){return lD(e)||xg(e)}function xg(e){return cD(e)&&tv(e.argumentExpression)}function Ag(e,t){return lD(e)&&(!t&&110===e.expression.kind||nC(e.name)&&Rg(e.expression,!0))||Ig(e,t)}function Ig(e,t){return xg(e)&&(!t&&110===e.expression.kind||EE(e.expression)||Ag(e.expression,!0))}function Rg(e,t){return EE(e)||Ag(e,t)}function Cg(e){return lD(e)?e.name:e.argumentExpression}function Dg(e){if(lD(e))return e.name;const t=Ty(e.argumentExpression);return FR(t)||np(t)?t:e}function Ng(e){const t=Dg(e);if(t){if(nC(t))return t.escapedText;if(np(t)||FR(t))return Ml(t.text)}}function Mg(e){if(110===e.expression.kind)return 4;if(bg(e))return 2;if(Rg(e.expression,!0)){if(IE(e.expression))return 3;let t=e;for(;!nC(t.expression);)t=t.expression;const n=t.expression;if(("exports"===n.escapedText||"module"===n.escapedText&&"exports"===Ng(t))&&Ag(e))return 1;if(Rg(e,!0)||cD(e)&&ov(e))return 5}return 0}function Lg(e){for(;TD(e.right);)e=e.right;return e.right}function kg(e){return TD(e)&&3===Eg(e)}function Pg(e){return $h(e)&&e.parent&&244===e.parent.kind&&(!cD(e)||xg(e))&&!!yc(e.parent)}function wg(e,t){const{valueDeclaration:n}=e;(!n||(!(33554432&t.flags)||$h(t)||33554432&n.flags)&&cg(n)&&!cg(t)||n.kind!==t.kind&&Fm(n))&&(e.valueDeclaration=t)}function Og(e){if(!e||!e.valueDeclaration)return!1;const t=e.valueDeclaration;return 262===t.kind||iN(t)&&t.initializer&&Td(t.initializer)}function Fg(e){var t,n;switch(e.kind){case 260:case 208:return null==(t=Cl(e.initializer,(e=>tg(e,!0))))?void 0:t.arguments[0];case 272:case 278:return yt(e.moduleSpecifier,np);case 271:return yt(null==(n=yt(e.moduleReference,wN))?void 0:n.expression,np);case 273:case 280:return yt(e.parent.moduleSpecifier,np);case 274:case 281:return yt(e.parent.parent.moduleSpecifier,np);case 276:return yt(e.parent.parent.parent.moduleSpecifier,np);case 205:return P_(e)?e.argument.literal:void 0;default:In.assertNever(e)}}function Wg(e){return zg(e)||In.failBadSyntaxKind(e.parent)}function zg(e){switch(e.parent.kind){case 272:case 278:return e.parent;case 283:return e.parent.parent;case 213:return L_(e.parent)||tg(e.parent,!1)?e.parent:void 0;case 201:return In.assert(zR(e)),yt(e.parent.parent,eD);default:return}}function Bg(e){switch(e.kind){case 272:case 278:return e.moduleSpecifier;case 271:return 283===e.moduleReference.kind?e.moduleReference.expression:void 0;case 205:return P_(e)?e.argument.literal:void 0;case 213:return e.arguments[0];case 267:return 11===e.name.kind?e.name:void 0;default:return In.assertNever(e)}}function Gg(e){switch(e.kind){case 272:return e.importClause&&yt(e.importClause.namedBindings,xN);case 271:return e;case 278:return e.exportClause&&yt(e.exportClause,AN);default:return In.assertNever(e)}}function jg(e){return 272===e.kind&&!!e.importClause&&!!e.importClause.name}function Vg(e,t){if(e.name){const n=t(e);if(n)return n}if(e.namedBindings){const n=xN(e.namedBindings)?t(e.namedBindings):x(e.namedBindings.elements,t);if(n)return n}}function Ug(e){if(e)switch(e.kind){case 169:case 174:case 173:case 304:case 303:case 172:case 171:return void 0!==e.questionToken}return!1}function Hg(e){const t=gM(e)?Le(e.parameters):void 0,n=yt(t&&t.name,nC);return!!n&&"new"===n.escapedText}function Kg(e){return 353===e.kind||345===e.kind||347===e.kind}function qg(e){return Kg(e)||dN(e)}function Jg(e){return VD(e)&&TD(e.expression)&&0!==Eg(e.expression)&&TD(e.expression.right)&&(57===e.expression.right.operatorToken.kind||61===e.expression.right.operatorToken.kind)?e.expression.right.right:void 0}function Xg(e){switch(e.kind){case 243:const t=$g(e);return t&&t.initializer;case 172:case 303:return e.initializer}}function $g(e){return GD(e)?Le(e.declarationList.declarations):void 0}function Yg(e){return pN(e)&&e.body&&267===e.body.kind?e.body:void 0}function Qg(e){if(e.kind>=243&&e.kind<=259)return!0;switch(e.kind){case 80:case 110:case 108:case 166:case 236:case 212:case 211:case 208:case 218:case 219:case 174:case 177:case 178:return!0;default:return!1}}function Zg(e){switch(e.kind){case 219:case 226:case 241:case 252:case 179:case 296:case 263:case 231:case 175:case 176:case 185:case 180:case 251:case 259:case 246:case 212:case 242:case 1:case 266:case 306:case 277:case 278:case 281:case 244:case 249:case 250:case 248:case 262:case 218:case 184:case 177:case 80:case 245:case 272:case 271:case 181:case 264:case 324:case 330:case 256:case 174:case 173:case 267:case 202:case 270:case 210:case 169:case 217:case 211:case 303:case 172:case 171:case 253:case 240:case 178:case 304:case 305:case 255:case 257:case 258:case 265:case 168:case 260:case 243:case 247:case 254:return!0;default:return!1}}function ey(e,t){let n;X_(e)&&Yu(e)&&Xu(e.initializer)&&(n=xe(n,ty(e,e.initializer.jsDoc)));let r=e;for(;r&&r.parent;){if(Xu(r)&&(n=xe(n,ty(e,r.jsDoc))),169===r.kind){n=xe(n,(t?Jl:ql)(r));break}if(168===r.kind){n=xe(n,(t?Yl:$l)(r));break}r=ny(r)}return n||o}function ty(e,t){const n=Fe(t);return J(t,(t=>{if(t===n){const n=G(t.tags,(t=>function(e,t){return!(zM(t)||HM(t))||!t.parent||!bM(t.parent)||!mD(t.parent.parent)||t.parent.parent===e}(e,t)));return t.tags===n?[t]:n}return G(t.tags,LM)}))}function ny(e){const t=e.parent;return 303===t.kind||277===t.kind||172===t.kind||244===t.kind&&211===e.kind||253===t.kind||Yg(t)||gE(e)?t:t.parent&&($g(t.parent)===e||gE(t))?t.parent:t.parent&&t.parent.parent&&($g(t.parent.parent)||Xg(t.parent.parent)===e||Jg(t.parent.parent))?t.parent.parent:void 0}function ry(e){if(e.symbol)return e.symbol;if(!nC(e.name))return;const t=e.name.escapedText,n=ay(e);if(!n)return;const r=L(n.parameters,(e=>80===e.name.kind&&e.name.escapedText===t));return r&&r.symbol}function oy(e){if(bM(e.parent)&&e.parent.tags){const t=L(e.parent.tags,Kg);if(t)return t}return ay(e)}function iy(e){return Ac(e,LM)}function ay(e){const t=sy(e);if(t)return SC(t)&&t.type&&Td(t.type)?t.type:Td(t)?t:void 0}function sy(e){const t=ly(e);if(t)return Jg(t)||function(e){return VD(e)&&TD(e.expression)&&64===e.expression.operatorToken.kind?gg(e.expression):void 0}(t)||Xg(t)||$g(t)||Yg(t)||t}function ly(e){const t=cy(e);if(!t)return;const n=t.parent;return n&&n.jsDoc&&t===Oe(n.jsDoc)?n:void 0}function cy(e){return Cl(e.parent,bM)}function dy(e){const t=e.name.escapedText,{typeParameters:n}=e.parent.parent.parent;return n&&L(n,(e=>e.name.escapedText===t))}function uy(e){return!!e.typeArguments}function py(e){let t=e.parent;for(;;){switch(t.kind){case 226:const n=t;return mE(n.operatorToken.kind)&&n.left===e?n:void 0;case 224:case 225:const r=t,o=r.operator;return 46===o||47===o?r:void 0;case 249:case 250:const i=t;return i.initializer===e?i:void 0;case 217:case 209:case 230:case 235:e=t;break;case 305:e=t.parent;break;case 304:if(t.name!==e)return;e=t.parent;break;case 303:if(t.name===e)return;e=t.parent;break;default:return}t=e.parent}}function fy(e){const t=py(e);if(!t)return 0;switch(t.kind){case 226:const e=t.operatorToken.kind;return 64===e||dE(e)?1:2;case 224:case 225:return 2;case 249:case 250:return 1}}function my(e){return!!py(e)}function _y(e){const t=py(e);return!!t&&gE(t,!0)&&function(e){const t=Ty(e.right);return 226===t.kind&&$L(t.operatorToken.kind)}(t)}function hy(e){switch(e.kind){case 241:case 243:case 254:case 245:case 255:case 269:case 296:case 297:case 256:case 248:case 249:case 250:case 246:case 247:case 258:case 299:return!0}return!1}function gy(e){return _D(e)||hD(e)||wd(e)||sN(e)||RC(e)}function yy(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function vy(e){return yy(e,196)}function by(e){return yy(e,217)}function Ey(e){let t;for(;e&&196===e.kind;)t=e,e=e.parent;return[t,e]}function Sy(e){for(;JC(e);)e=e.type;return e}function Ty(e,t){return EL(e,t?17:1)}function xy(e){return(211===e.kind||212===e.kind)&&((e=by(e.parent))&&220===e.kind)}function Ay(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function Iy(e){return!rM(e)&&!Vd(e)&&Lu(e.parent)&&e.parent.name===e}function Ry(e){const t=e.parent;switch(e.kind){case 11:case 15:case 9:if(yC(t))return t.parent;case 80:if(Lu(t))return t.name===e?t:void 0;if(gC(t)){const e=t.parent;return OM(e)&&e.name===t?e:void 0}{const n=t.parent;return TD(n)&&0!==Eg(n)&&(n.left.symbol||n.symbol)&&jl(n)===e?n:void 0}case 81:return Lu(t)&&t.name===e?t:void 0;default:return}}function Cy(e){return tv(e)&&167===e.parent.kind&&Lu(e.parent.parent)}function Dy(e){const t=e.parent;switch(t.kind){case 172:case 171:case 174:case 173:case 177:case 178:case 306:case 303:case 211:return t.name===e;case 166:return t.right===e;case 208:case 276:return t.propertyName===e;case 281:case 291:case 285:case 286:case 287:return!0}return!1}function Ny(e){return!!(271===e.kind||270===e.kind||273===e.kind&&e.name||274===e.kind||280===e.kind||276===e.kind||281===e.kind||277===e.kind&&ky(e))||$h(e)&&(TD(e)&&2===Eg(e)&&ky(e)||lD(e)&&TD(e.parent)&&e.parent.left===e&&64===e.parent.operatorToken.kind&&Ly(e.parent.right))}function My(e){switch(e.parent.kind){case 273:case 276:case 274:case 281:case 277:case 271:case 280:return e.parent;case 166:do{e=e.parent}while(166===e.parent.kind);return My(e)}}function Ly(e){return EE(e)||CD(e)}function ky(e){return Ly(Py(e))}function Py(e){return CN(e)?e.expression:e.right}function wy(e){return 304===e.kind?e.name:303===e.kind?e.initializer:e.parent.right}function Oy(e){const t=Fy(e);if(t&&$h(e)){const t=Zl(e);if(t)return t.class}return t}function Fy(e){const t=Gy(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function Wy(e){if($h(e))return ec(e).map((e=>e.class));{const t=Gy(e.heritageClauses,119);return null==t?void 0:t.types}}function zy(e){return cN(e)?By(e)||o:Md(e)&&ce(yn(Oy(e)),Wy(e))||o}function By(e){const t=Gy(e.heritageClauses,96);return t?t.types:void 0}function Gy(e,t){if(e)for(const n of e)if(n.token===t)return n}function jy(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function Vy(e){return 83<=e&&e<=165}function Uy(e){return 19<=e&&e<=79}function Hy(e){return Vy(e)||Uy(e)}function Ky(e){return 128<=e&&e<=165}function qy(e){return Vy(e)&&!Ky(e)}function Jy(e){return 119<=e&&e<=127}function Xy(e){const t=ss(e);return void 0!==t&&qy(t)}function $y(e){const t=ss(e);return void 0!==t&&Vy(t)}function Yy(e){const t=Pl(e);return!!t&&!Ky(t)}function Qy(e){return 2<=e&&e<=7}function Zy(e){if(!e)return 4;let t=0;switch(e.kind){case 262:case 218:case 174:e.asteriskToken&&(t|=1);case 219:Gb(e,1024)&&(t|=2)}return e.body||(t|=4),t}function ev(e){switch(e.kind){case 262:case 218:case 219:case 174:return void 0!==e.body&&void 0===e.asteriskToken&&Gb(e,1024)}return!1}function tv(e){return np(e)||FR(e)}function nv(e){return ED(e)&&(40===e.operator||41===e.operator)&&FR(e.operand)}function rv(e){const t=jl(e);return!!t&&ov(t)}function ov(e){if(167!==e.kind&&212!==e.kind)return!1;const t=cD(e)?Ty(e.argumentExpression):e.expression;return!tv(t)&&!nv(t)}function iv(e){switch(e.kind){case 80:case 81:return e.escapedText;case 11:case 15:case 9:return Ml(e.text);case 167:const t=e.expression;return tv(t)?Ml(t.text):nv(t)?41===t.operator?as(t.operator)+t.operand.text:t.operand.text:void 0;case 295:return EA(e);default:return In.assertNever(e)}}function av(e){switch(e.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function sv(e){return Nc(e)?kl(e):qN(e)?SA(e):e.text}function lv(e){return Nc(e)?e.escapedText:qN(e)?EA(e):Ml(e.text)}function cv(e){return`__@${Kz(e)}@${e.escapedName}`}function dv(e,t){return`__#${Kz(e)}@${t}`}function uv(e){return dn(e.escapedName,"__@")}function pv(e){return dn(e.escapedName,"__#")}function fv(e){return 80===e.kind&&"Symbol"===e.escapedText}function mv(e){return nC(e)?"__proto__"===kl(e):zR(e)&&"__proto__"===e.text}function _v(e,t){switch((e=EL(e)).kind){case 231:if(zG(e))return!1;break;case 218:if(e.name)return!1;break;case 219:break;default:return!1}return"function"!==typeof t||t(e)}function hv(e){switch(e.kind){case 303:return!mv(e.name);case 304:return!!e.objectAssignmentInitializer;case 260:return nC(e.name)&&!!e.initializer;case 169:case 208:return nC(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 172:return!!e.initializer;case 226:switch(e.operatorToken.kind){case 64:case 77:case 76:case 78:return nC(e.left)}break;case 277:return!0}return!1}function gv(e,t){if(!hv(e))return!1;switch(e.kind){case 303:case 260:case 169:case 208:case 172:return _v(e.initializer,t);case 304:return _v(e.objectAssignmentInitializer,t);case 226:return _v(e.right,t);case 277:return _v(e.expression,t)}}function yv(e){return"push"===e.escapedText||"unshift"===e.escapedText}function vv(e){return 169===bv(e).kind}function bv(e){for(;208===e.kind;)e=e.parent.parent;return e}function Ev(e){const t=e.kind;return 176===t||218===t||262===t||219===t||174===t||177===t||178===t||267===t||312===t}function Sv(e){return _x(e.pos)||_x(e.end)}function Tv(e){return Nl(e,rM)||e}function xv(e){const t=Rv(e),n=214===e.kind&&void 0!==e.arguments;return Av(e.kind,t,n)}function Av(e,t,n){switch(e){case 214:return n?0:1;case 224:case 221:case 222:case 220:case 223:case 227:case 229:return 1;case 226:switch(t){case 43:case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 1}}return 0}function Iv(e){const t=Rv(e),n=214===e.kind&&void 0!==e.arguments;return Cv(e.kind,t,n)}function Rv(e){return 226===e.kind?e.operatorToken.kind:224===e.kind||225===e.kind?e.operator:e.kind}function Cv(e,t,n){switch(e){case 361:return 0;case 230:return 1;case 229:return 2;case 227:return 4;case 226:switch(t){case 28:return 0;case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 3;default:return Dv(t)}case 216:case 235:case 224:case 221:case 222:case 220:case 223:return 16;case 225:return 17;case 213:return 18;case 214:return n?19:18;case 215:case 211:case 212:case 236:return 19;case 234:case 238:return 11;case 110:case 108:case 80:case 81:case 106:case 112:case 97:case 9:case 10:case 11:case 209:case 210:case 218:case 219:case 231:case 14:case 15:case 228:case 217:case 232:case 284:case 285:case 288:return 20;default:return-1}}function Dv(e){switch(e){case 61:return 4;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function Nv(e){return G(e,(e=>{switch(e.kind){case 294:return!!e.expression;case 12:return!e.containsOnlyTriviaWhiteSpaces;default:return!0}}))}function Mv(){let e=[];const t=[],n=new Map;let r=!1;return{add:function(o){let i;o.file?(i=n.get(o.file.fileName),i||(i=[],n.set(o.file.fileName,i),me(t,o.file.fileName,jt))):(r&&(r=!1,e=e.slice()),i=e);me(i,o,fT)},lookup:function(t){let r;r=t.file?n.get(t.file.fileName):e;if(!r)return;const o=je(r,t,xt,fT);if(o>=0)return r[o];return},getGlobalDiagnostics:function(){return r=!0,e},getDiagnostics:function(r){if(r)return n.get(r)||[];const o=X(t,(e=>n.get(e)));if(!e.length)return o;return o.unshift(...e),o}}}function Lv(e){return e.replace(Ap,"\\${")}function kv(e){return!!(2048&(e.templateFlags||0))}function Pv(e){return e&&!!(jR(e)?kv(e):kv(e.head)||se(e.templateSpans,(e=>kv(e.literal))))}function wv(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function Ov(e,t,n){if(0===e.charCodeAt(0)){const r=n.charCodeAt(t+e.length);return r>=48&&r<=57?"\\x00":"\\0"}return Dp.get(e)||wv(e.charCodeAt(0))}function Fv(e,t){const n=96===t?Cp:39===t?Rp:Ip;return e.replace(n,Ov)}function Wv(e,t){return e=Fv(e,t),Np.test(e)?e.replace(Np,(e=>wv(e.charCodeAt(0)))):e}function zv(e){return 0===e.charCodeAt(0)?"�":kp.get(e)||"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function Bv(e,t){const n=39===t?Lp:Mp;return e.replace(n,zv)}function Gv(e){const t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&(39===(n=e.charCodeAt(0))||34===n||96===n)?e.substring(1,t-1):e;var n}function jv(e){const t=e.charCodeAt(0);return t>=97&&t<=122||e.includes("-")}function Vv(e){const t=Pp[1];for(let n=Pp.length;n<=e;n++)Pp.push(Pp[n-1]+t);return Pp[e]}function Uv(){return Pp[1].length}function Hv(e){var t,n,r,o,i,a=!1;function s(e){const n=ls(e);n.length>1?(o=o+n.length-1,i=t.length-e.length+Fe(n),r=i-t.length===0):r=!1}function l(e){e&&e.length&&(r&&(e=Vv(n)+e,r=!1),t+=e,s(e))}function c(e){e&&(a=!1),l(e)}function d(){t="",n=0,r=!0,o=0,i=0,a=!1}return d(),{write:c,rawWrite:function(e){void 0!==e&&(t+=e,s(e),a=!1)},writeLiteral:function(e){e&&e.length&&c(e)},writeLine:function(n){r&&!n||(o++,i=(t+=e).length,r=!0,a=!1)},increaseIndent:()=>{n++},decreaseIndent:()=>{n--},getIndent:()=>n,getTextPos:()=>t.length,getLine:()=>o,getColumn:()=>r?n*Uv():t.length-i,getText:()=>t,isAtStartOfLine:()=>r,hasTrailingComment:()=>a,hasTrailingWhitespace:()=>!!t.length&&hs(t.charCodeAt(t.length-1)),clear:d,writeKeyword:c,writeOperator:c,writeParameter:c,writeProperty:c,writePunctuation:c,writeSpace:c,writeStringLiteral:c,writeSymbol:(e,t)=>c(e),writeTrailingSemicolon:c,writeComment:function(e){e&&(a=!0),l(e)},getTextPosWithWriteLine:function(){return r?t.length:t.length+e.length}}}function Kv(e){let t=!1;function n(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return{...e,writeTrailingSemicolon(){t=!0},writeLiteral(t){n(),e.writeLiteral(t)},writeStringLiteral(t){n(),e.writeStringLiteral(t)},writeSymbol(t,r){n(),e.writeSymbol(t,r)},writePunctuation(t){n(),e.writePunctuation(t)},writeKeyword(t){n(),e.writeKeyword(t)},writeOperator(t){n(),e.writeOperator(t)},writeParameter(t){n(),e.writeParameter(t)},writeSpace(t){n(),e.writeSpace(t)},writeProperty(t){n(),e.writeProperty(t)},writeComment(t){n(),e.writeComment(t)},writeLine(){n(),e.writeLine()},increaseIndent(){n(),e.increaseIndent()},decreaseIndent(){n(),e.decreaseIndent()}}}function qv(e){return!!e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames()}function Jv(e){return an(qv(e))}function Xv(e,t,n){return t.moduleName||Qv(e,t.fileName,n&&n.fileName)}function $v(e,t){return e.getCanonicalFileName(ma(t,e.getCurrentDirectory()))}function Yv(e,t,n){const r=t.getExternalModuleFileFromDeclaration(n);if(!r||r.isDeclarationFile)return;const o=Bg(n);return!o||!np(o)||Ji(o.text)||$v(e,r.path).includes($v(e,va(e.getCommonSourceDirectory())))?Xv(e,r):void 0}function Qv(e,t,n){const r=t=>e.getCanonicalFileName(t),o=ga(n?ra(n):e.getCommonSourceDirectory(),e.getCurrentDirectory(),r),i=cx(ka(o,ma(t,e.getCurrentDirectory()),o,r,!1));return n?ba(i):i}function Zv(e,t,n){const r=t.getCompilerOptions();let o;return o=r.outDir?cx(lb(e,t,r.outDir)):cx(e),o+n}function eb(e,t){return tb(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),(e=>t.getCanonicalFileName(e)))}function tb(e,t,n,r,o){const i=t.declarationDir||t.outDir,a=i?cb(e,i,n,r,o):e,s=nb(a);return cx(a)+s}function nb(e){return Qi(e,[".mjs",".mts"])?".d.mts":Qi(e,[".cjs",".cts"])?".d.cts":Qi(e,[".json"])?".d.json.ts":".d.ts"}function rb(e){return Qi(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:Qi(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:Qi(e,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function ob(e){return e.outFile||e.out}function ib(e,t){var n;if(e.paths)return e.baseUrl??In.checkDefined(e.pathsBasePath||(null==(n=t.getCurrentDirectory)?void 0:n.call(t)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function ab(e,t,n){const r=e.getCompilerOptions();if(ob(r)){const t=Vp(r),o=r.emitDeclarationOnly||2===t||4===t;return G(e.getSourceFiles(),(t=>(o||!uP(t))&&sb(t,e,n)))}return G(void 0===t?e.getSourceFiles():[t],(t=>sb(t,e,n)))}function sb(e,t,n){const r=t.getCompilerOptions();if(r.noEmitForJsFiles&&Jh(e))return!1;if(e.isDeclarationFile)return!1;if(t.isSourceFileFromExternalLibrary(e))return!1;if(n)return!0;if(t.isSourceOfProjectReferenceRedirect(e.fileName))return!1;if(!x_(e))return!0;if(t.getResolvedProjectReferenceToRedirect(e.fileName))return!1;if(ob(r))return!0;if(!r.outDir)return!1;if(r.rootDir||r.composite&&r.configFilePath){const n=ma(wV(r,(()=>[]),t.getCurrentDirectory(),t.getCanonicalFileName),t.getCurrentDirectory()),o=cb(e.fileName,r.outDir,t.getCurrentDirectory(),n,t.getCanonicalFileName);if(0===Ia(e.fileName,o,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames()))return!1}return!0}function lb(e,t,n){return cb(e,n,t.getCurrentDirectory(),t.getCommonSourceDirectory(),(e=>t.getCanonicalFileName(e)))}function cb(e,t,n,r,o){let i=ma(e,n);return i=0===o(i).indexOf(o(r))?i.substring(r.length):i,ua(t,i)}function db(e,t,n,r,o,i,a){e.writeFile(n,r,o,(e=>{t.add(sT(Oa.Could_not_write_file_0_Colon_1,n,e))}),i,a)}function ub(e,t,n){if(e.length>na(e)&&!n(e)){ub(ra(e),t,n),t(e)}}function pb(e,t,n,r,o,i){try{r(e,t,n)}catch{ub(ra(_a(e)),o,i),r(e,t,n)}}function fb(e,t){return fs(us(e),t)}function mb(e,t){return fs(e,t)}function _b(e){return L(e.members,(e=>RC(e)&&am(e.body)))}function hb(e){if(e&&e.parameters.length>0){const t=2===e.parameters.length&&vb(e.parameters[0]);return e.parameters[t?1:0]}}function gb(e){const t=hb(e);return t&&t.type}function yb(e){if(e.parameters.length&&!SM(e)){const t=e.parameters[0];if(vb(t))return t}}function vb(e){return bb(e.name)}function bb(e){return!!e&&80===e.kind&&Tb(e)}function Eb(e){return!!Cl(e,(e=>186===e.kind||80!==e.kind&&166!==e.kind&&"quit"))}function Sb(e){if(!bb(e))return!1;for(;gC(e.parent)&&e.parent.left===e;)e=e.parent;return 186===e.parent.kind}function Tb(e){return"this"===e.escapedText}function xb(e,t){let n,r,o,i;return rv(t)?(n=t,177===t.kind?o=t:178===t.kind?i=t:In.fail("Accessor has wrong kind")):x(e,(e=>{if(Ld(e)&&jb(e)===jb(t)){iv(e.name)===iv(t.name)&&(n?r||(r=e):n=e,177!==e.kind||o||(o=e),178!==e.kind||i||(i=e))}})),{firstAccessor:n,secondAccessor:r,getAccessor:o,setAccessor:i}}function Ab(e){if(!$h(e)&&sN(e))return;const t=e.type;return t||!$h(e)?t:qc(e)?e.typeExpression&&e.typeExpression.type:vc(e)}function Ib(e){return e.type}function Rb(e){return SM(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||($h(e)?bc(e):void 0)}function Cb(e){return J(Sc(e),(e=>function(e){return BM(e)&&!(327===e.parent.kind&&(e.parent.tags.some(Kg)||e.parent.tags.some(LM)))}(e)?e.typeParameters:void 0))}function Db(e){const t=hb(e);return t&&Ab(t)}function Nb(e,t,n,r){Mb(e,t,n.pos,r)}function Mb(e,t,n,r){r&&r.length&&n!==r[0].pos&&mb(e,n)!==mb(e,r[0].pos)&&t.writeLine()}function Lb(e,t,n,r){n!==r&&mb(e,n)!==mb(e,r)&&t.writeLine()}function kb(e,t,n,r,o,i,a,s){if(r&&r.length>0){o&&n.writeSpace(" ");let l=!1;for(const o of r)l&&(n.writeSpace(" "),l=!1),s(e,t,n,o.pos,o.end,a),o.hasTrailingNewLine?n.writeLine():l=!0;l&&i&&n.writeSpace(" ")}}function Pb(e,t,n,r,o,i,a){let s,l;if(a?0===o.pos&&(s=G(Ps(e,o.pos),(function(t){return gm(e,t.pos)}))):s=Ps(e,o.pos),s){const a=[];let c;for(const e of s){if(c){const n=mb(t,c.end);if(mb(t,e.pos)>=n+2)break}a.push(e),c=e}if(a.length){const c=mb(t,Fe(a).end);mb(t,Ts(e,o.pos))>=c+2&&(Nb(t,n,o,s),kb(e,t,n,a,!1,!0,i,r),l={nodePos:o.pos,detachedCommentEndPos:Fe(a).end})}}return l}function wb(e,t,n,r,o,i){if(42===e.charCodeAt(r+1)){const a=ps(t,r),s=t.length;let l;for(let c=r,d=a.line;c<o;d++){const u=d+1===s?e.length+1:t[d+1];if(c!==r){void 0===l&&(l=Fb(e,t[a.line],r));const o=n.getIndent()*Uv()-l+Fb(e,c,u);if(o>0){let e=o%Uv();const t=Vv((o-e)/Uv());for(n.rawWrite(t);e;)n.rawWrite(" "),e--}else n.rawWrite("")}Ob(e,o,n,i,c,u),c=u}}else n.writeComment(e.substring(r,o))}function Ob(e,t,n,r,o,i){const a=Math.min(t,i-1),s=e.substring(o,a).trim();s?(n.writeComment(s),a!==t&&n.writeLine()):n.rawWrite(r)}function Fb(e,t,n){let r=0;for(;t<n&&gs(e.charCodeAt(t));t++)9===e.charCodeAt(t)?r+=Uv()-r%Uv():r++;return r}function Wb(e){return 0!==Zb(e)}function zb(e){return 0!==tE(e)}function Bb(e,t){return!!$b(e,t)}function Gb(e,t){return!!Yb(e,t)}function jb(e){return Nd(e)&&Vb(e)||IC(e)}function Vb(e){return Gb(e,256)}function Ub(e){return Bb(e,16)}function Hb(e){return Gb(e,64)}function Kb(e){return Gb(e,128)}function qb(e){return Gb(e,512)}function Jb(e){return Bb(e,8)}function Xb(e){return Gb(e,32768)}function $b(e,t){return Zb(e)&t}function Yb(e,t){return tE(e)&t}function Qb(e,t,n){return e.kind>=0&&e.kind<=165?0:(536870912&e.modifierFlagsCache||(e.modifierFlagsCache=536870912|iE(e)),n||t&&$h(e)?(268435456&e.modifierFlagsCache||!e.parent||(e.modifierFlagsCache|=268435456|nE(e)),rE(e.modifierFlagsCache)):65535&e.modifierFlagsCache)}function Zb(e){return Qb(e,!0)}function eE(e){return Qb(e,!0,!0)}function tE(e){return Qb(e,!1)}function nE(e){let t=0;return e.parent&&!bC(e)&&($h(e)&&(rc(e)&&(t|=8388608),ic(e)&&(t|=16777216),sc(e)&&(t|=33554432),cc(e)&&(t|=67108864),dc(e)&&(t|=134217728)),pc(e)&&(t|=65536)),t}function rE(e){return 131071&e|(260046848&e)>>>23}function oE(e){return iE(e)|function(e){return rE(nE(e))}(e)}function iE(e){let t=vk(e)?aE(e.modifiers):0;return(8&e.flags||80===e.kind&&4096&e.flags)&&(t|=32),t}function aE(e){let t=0;if(e)for(const n of e)t|=sE(n.kind);return t}function sE(e){switch(e){case 126:return 256;case 125:return 1;case 124:return 4;case 123:return 2;case 128:return 64;case 129:return 512;case 95:return 32;case 138:return 128;case 87:return 4096;case 90:return 2048;case 134:return 1024;case 148:return 8;case 164:return 16;case 103:return 8192;case 147:return 16384;case 170:return 32768}return 0}function lE(e){return 57===e||56===e}function cE(e){return lE(e)||54===e}function dE(e){return 76===e||77===e||78===e}function uE(e){return TD(e)&&dE(e.operatorToken.kind)}function pE(e){return lE(e)||61===e}function fE(e){return TD(e)&&pE(e.operatorToken.kind)}function mE(e){return e>=64&&e<=79}function _E(e){const t=hE(e);return t&&!t.isImplements?t.class:void 0}function hE(e){if(ND(e)){if($N(e.parent)&&Md(e.parent.parent))return{class:e.parent.parent,isImplements:119===e.parent.token};if(TM(e.parent)){const t=sy(e.parent);if(t&&Md(t))return{class:t,isImplements:!1}}}}function gE(e,t){return TD(e)&&(t?64===e.operatorToken.kind:mE(e.operatorToken.kind))&&iu(e.left)}function yE(e){return gE(e.parent)&&e.parent.left===e}function vE(e){if(gE(e,!0)){const t=e.left.kind;return 210===t||209===t}return!1}function bE(e){return void 0!==_E(e)}function EE(e){return 80===e.kind||xE(e)}function SE(e){switch(e.kind){case 80:return e;case 166:do{e=e.left}while(80!==e.kind);return e;case 211:do{e=e.expression}while(80!==e.kind);return e}}function TE(e){return 80===e.kind||110===e.kind||108===e.kind||236===e.kind||211===e.kind&&TE(e.expression)||217===e.kind&&TE(e.expression)}function xE(e){return lD(e)&&nC(e.name)&&EE(e.expression)}function AE(e){if(lD(e)){const t=AE(e.expression);if(void 0!==t)return t+"."+c_(e.name)}else if(cD(e)){const t=AE(e.expression);if(void 0!==t&&Ed(e.argumentExpression))return t+"."+iv(e.argumentExpression)}else{if(nC(e))return Ll(e.escapedText);if(qN(e))return SA(e)}}function IE(e){return Ag(e)&&"prototype"===Ng(e)}function RE(e){return 166===e.parent.kind&&e.parent.right===e||211===e.parent.kind&&e.parent.name===e||236===e.parent.kind&&e.parent.name===e}function CE(e){return!!e.parent&&(lD(e.parent)&&e.parent.name===e||cD(e.parent)&&e.parent.argumentExpression===e)}function DE(e){return gC(e.parent)&&e.parent.right===e||lD(e.parent)&&e.parent.name===e||lM(e.parent)&&e.parent.right===e}function NE(e){return TD(e)&&104===e.operatorToken.kind}function ME(e){return NE(e.parent)&&e===e.parent.right}function LE(e){return 210===e.kind&&0===e.properties.length}function kE(e){return 209===e.kind&&0===e.elements.length}function PE(e){if(function(e){return e&&T(e.declarations)>0&&Gb(e.declarations[0],2048)}(e)&&e.declarations)for(const t of e.declarations)if(t.localSymbol)return t.localSymbol}function wE(e){return L(hf,(t=>Yi(e,t)))}function OE(e){let t="";const n=function(e){const t=[],n=e.length;for(let r=0;r<n;r++){const n=e.charCodeAt(r);n<128?t.push(n):n<2048?(t.push(n>>6|192),t.push(63&n|128)):n<65536?(t.push(n>>12|224),t.push(n>>6&63|128),t.push(63&n|128)):n<131072?(t.push(n>>18|240),t.push(n>>12&63|128),t.push(n>>6&63|128),t.push(63&n|128)):In.assert(!1,"Unexpected code point")}return t}(e);let r=0;const o=n.length;let i,a,s,l;for(;r<o;)i=n[r]>>2,a=(3&n[r])<<4|n[r+1]>>4,s=(15&n[r+1])<<2|n[r+2]>>6,l=63&n[r+2],r+1>=o?s=l=64:r+2>=o&&(l=64),t+=wp.charAt(i)+wp.charAt(a)+wp.charAt(s)+wp.charAt(l),r+=3;return t}function FE(e,t){return e&&e.base64encode?e.base64encode(t):OE(t)}function WE(e,t){if(e&&e.base64decode)return e.base64decode(t);const n=t.length,r=[];let o=0;for(;o<n&&t.charCodeAt(o)!==wp.charCodeAt(64);){const e=wp.indexOf(t[o]),n=wp.indexOf(t[o+1]),i=wp.indexOf(t[o+2]),a=wp.indexOf(t[o+3]),s=(63&e)<<2|n>>4&3,l=(15&n)<<4|i>>2&15,c=(3&i)<<6|63&a;0===l&&0!==i?r.push(s):0===c&&0!==a?r.push(s,l):r.push(s,l,c),o+=4}return function(e){let t="",n=0;const r=e.length;for(;n<r;){const r=e[n];if(r<128)t+=String.fromCharCode(r),n++;else if(192===(192&r)){let o=63&r;n++;let i=e[n];for(;128===(192&i);)o=o<<6|63&i,n++,i=e[n];t+=String.fromCharCode(o)}else t+=String.fromCharCode(r),n++}return t}(r)}function zE(e,t){const n=ht(t)?t:t.readFile(e);if(!n)return;const r=Mw(e,n);return r.error?void 0:r.config}function BE(e,t){return zE(e,t)||{}}function GE(e){try{return JSON.parse(e)}catch{return}}function jE(e,t){return!t.directoryExists||t.directoryExists(e)}function VE(e){switch(e.newLine){case 0:return Op;case 1:case void 0:return Fp}}function UE(e,t=e){return In.assert(t>=e||-1===t),{pos:e,end:t}}function HE(e,t){return UE(e.pos,t)}function KE(e,t){return UE(t,e.end)}function qE(e){const t=vk(e)?k(e.modifiers,EC):void 0;return t&&!_x(t.end)?KE(e,t.end):e}function JE(e){if(TC(e)||AC(e))return KE(e,e.name.pos);const t=vk(e)?Oe(e.modifiers):void 0;return t&&!_x(t.end)?KE(e,t.end):qE(e)}function XE(e){return e.pos===e.end}function $E(e,t){return UE(e,e+as(t).length)}function YE(e,t){return eS(e,e,t)}function QE(e,t,n){return iS(aS(e,n,!1),aS(t,n,!1),n)}function ZE(e,t,n){return iS(e.end,t.end,n)}function eS(e,t,n){return iS(aS(e,n,!1),t.end,n)}function tS(e,t,n){return iS(e.end,aS(t,n,!1),n)}function nS(e,t,n,r){const o=aS(t,n,r);return ms(n,e.end,o)}function rS(e,t,n){return ms(n,e.end,t.end)}function oS(e,t){return!iS(e.pos,e.end,t)}function iS(e,t,n){return 0===ms(n,e,t)}function aS(e,t,n){return _x(e.pos)?-1:Ts(t.text,e.pos,!1,n)}function sS(e,t,n,r){const o=Ts(n.text,e,!1,r),i=function(e,t=0,n){for(;e-- >t;)if(!hs(n.text.charCodeAt(e)))return e}(o,t,n);return ms(n,i??t,o)}function lS(e,t,n,r){const o=Ts(n.text,e,!1,r);return ms(n,e,Math.min(t,o))}function cS(e){const t=Nl(e);if(t)switch(t.parent.kind){case 266:case 267:return t===t.parent.name}return!1}function dS(e){return G(e.declarations,uS)}function uS(e){return iN(e)&&void 0!==e.initializer}function pS(e){return e.watch&&He(e,"watch")}function fS(e){e.close()}function mS(e){return 33554432&e.flags?e.links.checkFlags:0}function _S(e,t=!1){if(e.valueDeclaration){const n=Sl(t&&e.declarations&&L(e.declarations,DC)||32768&e.flags&&L(e.declarations,CC)||e.valueDeclaration);return e.parent&&32&e.parent.flags?n:-8&n}if(6&mS(e)){const t=e.links.checkFlags;return(1024&t?2:256&t?1:4)|(2048&t?256:0)}return 4194304&e.flags?257:0}function hS(e,t){return 2097152&e.flags?t.getAliasedSymbol(e):e}function gS(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function yS(e){return 1===bS(e)}function vS(e){return 0!==bS(e)}function bS(e){const{parent:t}=e;switch(null==t?void 0:t.kind){case 217:case 209:return bS(t);case 225:case 224:const{operator:n}=t;return 46===n||47===n?2:0;case 226:const{left:r,operatorToken:o}=t;return r===e&&mE(o.kind)?64===o.kind?1:2:0;case 211:return t.name!==e?0:bS(t);case 303:{const n=bS(t.parent);return e===t.name?function(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return In.assertNever(e)}}(n):n}case 304:return e===t.objectAssignmentInitializer?0:bS(t.parent);default:return 0}}function ES(e,t){if(!e||!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if("object"===typeof e[n]){if(!ES(e[n],t[n]))return!1}else if("function"!==typeof e[n]&&e[n]!==t[n])return!1;return!0}function SS(e,t){e.forEach(t),e.clear()}function TS(e,t,n){const{onDeleteValue:r,onExistingValue:o}=n;e.forEach(((n,i)=>{var a;(null==t?void 0:t.has(i))?o&&o(n,null==(a=t.get)?void 0:a.call(t,i),i):(e.delete(i),r(n,i))}))}function xS(e,t,n){TS(e,t,n);const{createNewValue:r}=n;null==t||t.forEach(((t,n)=>{e.has(n)||e.set(n,r(n,t))}))}function AS(e){if(32&e.flags){const t=IS(e);return!!t&&Gb(t,64)}return!1}function IS(e){var t;return null==(t=e.declarations)?void 0:t.find(Md)}function RS(e){return 3899393&e.flags?e.objectFlags:0}function CS(e,t){return!!Pa(e,(e=>!!t(e)||void 0))}function DS(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&_N(e.declarations[0])}function NS({moduleSpecifier:e}){return zR(e)?e.text:xm(e)}function MS(e){let t;return oP(e,(e=>{am(e)&&(t=e)}),(e=>{for(let n=e.length-1;n>=0;n--)if(am(e[n])){t=e[n];break}})),t}function LS(e,t,n=!0){return!e.has(t)&&(e.set(t,n),!0)}function kS(e){return Md(e)||cN(e)||WC(e)}function PS(e){return e>=182&&e<=205||133===e||159===e||150===e||163===e||151===e||136===e||154===e||155===e||116===e||157===e||146===e||141===e||233===e||319===e||320===e||321===e||322===e||323===e||324===e||325===e}function wS(e){return 211===e.kind||212===e.kind}function OS(e){return 211===e.kind?e.name:(In.assert(212===e.kind),e.argumentExpression)}function FS(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}}function WS(e){return 275===e.kind||279===e.kind}function zS(e){for(;wS(e);)e=e.expression;return e}function BS(e,t){if(wS(e.parent)&&CE(e))return function e(n){if(211===n.kind){const e=t(n.name);if(void 0!==e)return e}else if(212===n.kind){if(!nC(n.argumentExpression)&&!np(n.argumentExpression))return;{const e=t(n.argumentExpression);if(void 0!==e)return e}}if(wS(n.expression))return e(n.expression);if(nC(n.expression))return t(n.expression);return}(e.parent)}function GS(e,t){for(;;){switch(e.kind){case 225:e=e.operand;continue;case 226:e=e.left;continue;case 227:e=e.condition;continue;case 215:e=e.tag;continue;case 213:if(t)return e;case 234:case 212:case 211:case 235:case 360:case 238:e=e.expression;continue}return e}}function jS(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.lastAssignmentPos=void 0,this.links=void 0}function VS(e,t){this.flags=t,(In.isDebugging||kr)&&(this.checker=e)}function US(e,t){this.flags=t,In.isDebugging&&(this.checker=e)}function HS(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function KS(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function qS(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function JS(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n||(e=>e)}function XS(e){zp.push(e),e(Wp)}function $S(e){Object.assign(Wp,e),x(zp,(e=>e(Wp)))}function YS(e,t){return e.replace(/{(\d+)}/g,((e,n)=>""+In.checkDefined(t[+n])))}function QS(e){Bp=e}function ZS(e){!Bp&&e&&(Bp=e())}function eT(e){return Bp&&Bp[e.key]||e.message}function tT(e,t,n,r,o,...i){n+r>t.length&&(r=t.length-n),__(t,n,r);let a=eT(o);return se(i)&&(a=YS(a,i)),{file:void 0,start:n,length:r,messageText:a,category:o.category,code:o.code,reportsUnnecessary:o.reportsUnnecessary,fileName:e}}function nT(e){return void 0===e.file&&void 0!==e.start&&void 0!==e.length&&"string"===typeof e.fileName}function rT(e,t){const n=t.fileName||"",r=t.text.length;In.assertEqual(e.fileName,n),In.assertLessThanOrEqual(e.start,r),In.assertLessThanOrEqual(e.start+e.length,r);const o={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){o.relatedInformation=[];for(const i of e.relatedInformation)nT(i)&&i.fileName===n?(In.assertLessThanOrEqual(i.start,r),In.assertLessThanOrEqual(i.start+i.length,r),o.relatedInformation.push(rT(i,t))):o.relatedInformation.push(i)}return o}function oT(e,t){const n=[];for(const r of e)n.push(rT(r,t));return n}function iT(e,t,n,r,...o){__(e.text,t,n);let i=eT(r);return se(o)&&(i=YS(i,o)),{file:e,start:t,length:n,messageText:i,category:r.category,code:r.code,reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated}}function aT(e,...t){let n=eT(e);return se(t)&&(n=YS(n,t)),n}function sT(e,...t){let n=eT(e);return se(t)&&(n=YS(n,t)),{file:void 0,start:void 0,length:void 0,messageText:n,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function lT(e,t){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText,relatedInformation:t}}function cT(e,t,...n){let r=eT(t);return se(n)&&(r=YS(r,n)),{messageText:r,category:t.category,code:t.code,next:void 0===e||Array.isArray(e)?e:[e]}}function dT(e,t){let n=e;for(;n.next;)n=n.next[0];n.next=[t]}function uT(e){return e.file?e.file.path:void 0}function pT(e,t){return fT(e,t)||function(e,t){if(!e.relatedInformation&&!t.relatedInformation)return 0;if(e.relatedInformation&&t.relatedInformation)return Ft(e.relatedInformation.length,t.relatedInformation.length)||x(e.relatedInformation,((e,n)=>pT(e,t.relatedInformation[n])))||0;return e.relatedInformation?-1:1}(e,t)||0}function fT(e,t){return jt(uT(e),uT(t))||Ft(e.start,t.start)||Ft(e.length,t.length)||Ft(e.code,t.code)||mT(e.messageText,t.messageText)||0}function mT(e,t){if("string"===typeof e&&"string"===typeof t)return jt(e,t);if("string"===typeof e)return-1;if("string"===typeof t)return 1;let n=jt(e.messageText,t.messageText);if(n)return n;if(!e.next&&!t.next)return 0;if(!e.next)return-1;if(!t.next)return 1;const r=Math.min(e.next.length,t.next.length);for(let o=0;o<r;o++)if(n=mT(e.next[o],t.next[o]),n)return n;return e.next.length<t.next.length?-1:e.next.length>t.next.length?1:0}function _T(e){return 4===e||2===e||1===e||6===e?1:0}function hT(e){if(2&e.transformFlags)return ju(e)||BN(e)?e:oP(e,hT)}function gT(e){return e.isDeclarationFile?void 0:hT(e)}function yT(e){return!(99!==e.impliedNodeFormat&&!Qi(e.fileName,[".cjs",".cts",".mjs",".mts"])||e.isDeclarationFile)||void 0}function vT(e){switch(Hp(e)){case 3:return e=>{e.externalModuleIndicator=Wk(e)||!e.isDeclarationFile||void 0};case 1:return e=>{e.externalModuleIndicator=Wk(e)};case 2:const t=[Wk];4!==e.jsx&&5!==e.jsx||t.push(gT),t.push(yT);const n=_n(...t);return e=>{e.externalModuleIndicator=n(e)}}}function bT(e){return e>=5&&e<=99}function ET(e){switch(Vp(e)){case 0:case 4:case 3:return!1}return!0}function ST(e){return e.verbatimModuleSyntax||e.isolatedModules&&e.preserveValueImports}function TT(e){return!1===e.allowUnreachableCode}function xT(e){return!1===e.allowUnusedLabels}function AT(e){return e>=3&&e<=99||100===e}function IT(e,t){return void 0===e[t]?!!e.strict:!!e[t]}function RT(e){return!1!==e.useDefineForClassFields&&jp(e)>=9}function CT(e,t){return Of(t,e,wP)}function DT(e,t){return Of(t,e,OP)}function NT(e,t){return Of(t,e,FP)}function MT(e,t){return t.strictFlag?IT(e,t.name):t.allowJsFlag?nf(e):e[t.name]}function LT(e){const t=e.jsx;return 2===t||4===t||5===t}function kT(e,t){const n=null==t?void 0:t.pragmas.get("jsximportsource"),r=mt(n)?n[n.length-1]:n;return 4===e.jsx||5===e.jsx||e.jsxImportSource||r?(null==r?void 0:r.arguments.factory)||e.jsxImportSource||"react":void 0}function PT(e,t){return e?`${e}/${5===t.jsx?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function wT(e){let t=!1;for(let n=0;n<e.length;n++)if(42===e.charCodeAt(n)){if(t)return!1;t=!0}return!0}function OT(e,t){let n,r,i,a=!1;return{getSymlinkedFiles:()=>i,getSymlinkedDirectories:()=>n,getSymlinkedDirectoriesByRealpath:()=>r,setSymlinkedFile:(e,t)=>(i||(i=new Map)).set(e,t),setSymlinkedDirectory:(o,i)=>{let a=ga(o,e,t);Xx(a)||(a=va(a),!1===i||(null==n?void 0:n.has(a))||(r||(r=ct())).add(i.realPath,o),(n||(n=new Map)).set(a,i))},setSymlinksFromResolutions(e,t,n){In.assert(!a),a=!0,e((e=>s(this,e.resolvedModule))),t((e=>s(this,e.resolvedTypeReferenceDirective))),n.forEach((e=>s(this,e.resolvedTypeReferenceDirective)))},hasProcessedResolutions:()=>a};function s(n,r){if(!r||!r.originalPath||!r.resolvedFileName)return;const{resolvedFileName:i,originalPath:a}=r;n.setSymlinkedFile(ga(a,e,t),i);const[s,l]=function(e,t,n,r){const o=sa(ma(e,n)),i=sa(ma(t,n));let a=!1;for(;o.length>=2&&i.length>=2&&!FT(o[o.length-2],r)&&!FT(i[i.length-2],r)&&r(o[o.length-1])===r(i[i.length-1]);)o.pop(),i.pop(),a=!0;return a?[la(o),la(i)]:void 0}(i,a,e,t)||o;s&&l&&n.setSymlinkedDirectory(l,{real:va(s),realPath:va(ga(s,e,t))})}}function FT(e,t){return void 0!==e&&("node_modules"===t(e)||dn(e,"@"))}function WT(e,t,n){const r=pn(e,t,n);return void 0===r?void 0:Vi((o=r).charCodeAt(0))?o.slice(1):void 0;var o}function zT(e){return e.replace(of,BT)}function BT(e){return"\\"+e}function GT(e,t,n){const r=jT(e,t,n);if(!r||!r.length)return;return`^(${r.map((e=>`(${e})`)).join("|")})${"exclude"===n?"($|/)":"$"}`}function jT(e,t,n){if(void 0!==e&&0!==e.length)return J(e,(e=>e&&HT(e,t,n,pf[n])))}function VT(e){return!/[.*?]/.test(e)}function UT(e,t,n){const r=e&&HT(e,t,n,pf[n]);return r&&`^(${r})${"exclude"===n?"($|/)":"$"}`}function HT(e,t,n,{singleAsteriskRegexFragment:r,doubleAsteriskRegexFragment:o,replaceWildcardCharacter:i}=pf[n]){let a="",s=!1;const l=fa(e,t),c=Fe(l);if("exclude"!==n&&"**"===c)return;l[0]=ya(l[0]),VT(c)&&l.push("**","*");let d=0;for(let u of l){if("**"===u)a+=o;else if("directories"===n&&(a+="(",d++),s&&(a+=Fi),"exclude"!==n){let e="";42===u.charCodeAt(0)?(e+="([^./]"+r+")?",u=u.substr(1)):63===u.charCodeAt(0)&&(e+="[^./]",u=u.substr(1)),e+=u.replace(of,i),e!==u&&(a+=lf),a+=e}else a+=u.replace(of,i);s=!0}for(;d>0;)a+=")?",d--;return a}function KT(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function qT(e,t,n,r,o){e=_a(e);const i=ua(o=_a(o),e);return{includeFilePatterns:U(jT(n,i,"files"),(e=>`^${e}$`)),includeFilePattern:GT(n,i,"files"),includeDirectoryPattern:GT(n,i,"directories"),excludePattern:GT(t,i,"exclude"),basePaths:$T(e,n,r)}}function JT(e,t){return new RegExp(e,t?"":"i")}function XT(e,t,n,r,o,i,a,s,l){e=_a(e),i=_a(i);const c=qT(e,n,r,o,i),d=c.includeFilePatterns&&c.includeFilePatterns.map((e=>JT(e,o))),u=c.includeDirectoryPattern&&JT(c.includeDirectoryPattern,o),p=c.excludePattern&&JT(c.excludePattern,o),f=d?d.map((()=>[])):[[]],m=new Map,_=an(o);for(const g of c.basePaths)h(g,ua(i,g),a);return q(f);function h(e,n,r){const o=_(l(n));if(m.has(o))return;m.set(o,!0);const{files:i,directories:a}=s(e);for(const s of Ce(i,jt)){const r=ua(e,s),o=ua(n,s);if((!t||Qi(r,t))&&(!p||!p.test(o)))if(d){const e=P(d,(e=>e.test(o)));-1!==e&&f[e].push(r)}else f[0].push(r)}if(void 0===r||0!==--r)for(const t of Ce(a,jt)){const o=ua(e,t),i=ua(n,t);u&&!u.test(i)||p&&p.test(i)||h(o,i,r)}}}function $T(e,t,n){const r=[e];if(t){const o=[];for(const n of t){const t=Hi(n)?n:_a(ua(e,n));o.push(YT(t))}o.sort(Vt(!n));for(const t of o)M(r,(r=>!Ra(r,t,e,!n)))&&r.push(t)}return r}function YT(e){const t=z(e,af);return t<0?$i(e)?ya(ra(e)):e:e.substring(0,e.lastIndexOf(Fi,t))}function QT(e,t){return t||ZT(e)||3}function ZT(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}function ex(e,t){const n=e&&nf(e);if(!t||0===t.length)return n?vf:ff;const r=n?vf:ff,o=q(r);return[...r,...Z(t,(e=>{return 7===e.scriptKind||n&&(1===(t=e.scriptKind)||2===t)&&!o.includes(e.extension)?[e.extension]:void 0;var t}))]}function tx(e,t){return e&&Yp(e)?t===vf?bf:t===ff?_f:[...t,[".json"]]:t}function nx(e){return se(yf,(t=>Yi(e,t)))}function rx(e){return se(mf,(t=>Yi(e,t)))}function ox({imports:e},t=_n(nx,rx)){return I(e,(({text:e})=>Ji(e)&&!Qi(e,Tf)?t(e):void 0))||!1}function ix(e,t,n,r){const i=Up(n),a=3<=i&&i<=99;return"js"===e||99===t&&a?NW(n)&&2!==s()?3:2:"minimal"===e?0:"index"===e?1:NW(n)?s():ox(r)?2:0;function s(){let e=!1;const i=r.imports.length?r.imports:Jh(r)?function(e){let t,n=0;for(const r of e.statements){if(n>3)break;ag(r)?t=ce(t,r.declarationList.declarations.map((e=>e.initializer))):VD(r)&&tg(r.expression,!0)?t=Ee(t,r.expression):n++}return t||o}(r).map((e=>e.arguments[0])):o;for(const o of i)if(Ji(o.text)){if(a&&1===t&&99===VU(r,o,n))continue;if(Qi(o.text,Tf))continue;if(rx(o.text))return 3;nx(o.text)&&(e=!0)}return e?2:0}}function ax(e,t,n){if(!e)return!1;const r=ex(t,n);for(const o of q(tx(t,r)))if(Yi(e,o))return!0;return!1}function sx(e){const t=e.match(/\//g);return t?t.length:0}function lx(e,t){return Ft(sx(e),sx(t))}function cx(e){for(const t of Af){const n=dx(e,t);if(void 0!==n)return n}return e}function dx(e,t){return Yi(e,t)?ux(e,t):void 0}function ux(e,t){return e.substring(0,e.length-t.length)}function px(e,t){return Ea(e,t,Af,!1)}function fx(e){const t=e.indexOf("*");return-1===t?e:-1!==e.indexOf("*",t+1)?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function mx(e){return Z(qe(e),(e=>fx(e)))}function _x(e){return!(e>=0)}function hx(e){return".ts"===e||".tsx"===e||".d.ts"===e||".cts"===e||".mts"===e||".d.mts"===e||".d.cts"===e||dn(e,".d.")&&Yt(e,".ts")}function gx(e){return hx(e)||".json"===e}function yx(e){const t=bx(e);return void 0!==t?t:In.fail(`File ${e} has unknown extension.`)}function vx(e){return void 0!==bx(e)}function bx(e){return L(Af,(t=>Yi(e,t)))}function Ex(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}function Sx(e,t){const n=[];for(const r of e){if(r===t)return t;ht(r)||n.push(r)}return cn(n,(e=>e),t)}function Tx(e,t){const n=e.indexOf(t);return In.assert(-1!==n),e.slice(n)}function xx(e,...t){return t.length?(e.relatedInformation||(e.relatedInformation=[]),In.assert(e.relatedInformation!==o,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t),e):e}function Ax(e,t){In.assert(0!==e.length);let n=t(e[0]),r=n;for(let o=1;o<e.length;o++){const i=t(e[o]);i<n?n=i:i>r&&(r=i)}return{min:n,max:r}}function Ix(e){return{pos:vm(e),end:e.end}}function Rx(e,t){return{pos:t.pos-1,end:Math.min(e.text.length,Ts(e.text,t.end)+1)}}function Cx(e,t,n){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||n.isSourceOfProjectReferenceRedirect(e.fileName)}function Dx(e,t){return e===t||"object"===typeof e&&null!==e&&"object"===typeof t&&null!==t&&Ze(e,t,Dx)}function Nx(e){let t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:const n=e.length-1;let r=0;for(;48===e.charCodeAt(r);)r++;return e.slice(r,n)||"0"}const n=e.length-1,r=(n-2)*t,o=new Uint16Array((r>>>4)+(15&r?1:0));for(let l=n-1,c=0;l>=2;l--,c+=t){const t=c>>>4,n=e.charCodeAt(l),r=(n<=57?n-48:10+n-(n<=70?65:97))<<(15&c);o[t]|=r;const i=r>>>16;i&&(o[t+1]|=i)}let i="",a=o.length-1,s=!0;for(;s;){let e=0;s=!1;for(let t=a;t>=0;t--){const n=e<<16|o[t],r=n/10|0;o[t]=r,e=n-10*r,r&&!s&&(a=t,s=!0)}i=e+i}return i}function Mx({negative:e,base10Value:t}){return(e&&"0"!==t?"-":"")+t}function Lx(e){if(Px(e,!1))return kx(e)}function kx(e){const t=e.startsWith("-");return{negative:t,base10Value:Nx(`${t?e.slice(1):e}n`)}}function Px(e,t){if(""===e)return!1;const n=Bs(99,!1);let r=!0;n.setOnError((()=>r=!1)),n.setText(e+"n");let o=n.scan();const i=41===o;i&&(o=n.scan());const a=n.getTokenFlags();return r&&10===o&&n.getTokenEnd()===e.length+1&&!(512&a)&&(!t||e===Mx({negative:i,base10Value:Nx(n.getTokenValue())}))}function wx(e){return!!(33554432&e.flags)||jh(e)||function(e){if(80!==e.kind)return!1;const t=Cl(e.parent,(e=>{switch(e.kind){case 298:return!0;case 211:case 233:return!1;default:return"quit"}}));return 119===(null==t?void 0:t.token)||264===(null==t?void 0:t.parent.kind)}(e)||function(e){for(;80===e.kind||211===e.kind;)e=e.parent;if(167!==e.kind)return!1;if(Gb(e.parent,64))return!0;const t=e.parent.parent.kind;return 264===t||187===t}(e)||!(Bh(e)||function(e){return nC(e)&&ZN(e.parent)&&e.parent.name===e}(e))}function Ox(e){return PC(e)&&nC(e.typeName)}function Fx(e,t=kt){if(e.length<2)return!0;const n=e[0];for(let r=1,o=e.length;r<o;r++){if(!t(n,e[r]))return!1}return!0}function Wx(e,t){return e.pos=t,e}function zx(e,t){return e.end=t,e}function Bx(e,t,n){return zx(Wx(e,t),n)}function Gx(e,t,n){return Bx(e,t,t+n)}function jx(e,t){return e&&(e.flags=t),e}function Vx(e,t){return e&&t&&(e.parent=t),e}function Ux(e,t){if(e)for(const n of e)Vx(n,t);return e}function Hx(e,t){return e?(iP(e,Uu(e)?n:function(e,t){return n(e,t)||function(e){if(Xu(e))for(const t of e.jsDoc)n(t,e),iP(t,n)}(e)}),e):e;function n(e,n){if(t&&e.parent===n)return"skip";Vx(e,n)}}function Kx(e){return!DD(e)}function qx(e){return aD(e)&&M(e.elements,Kx)}function Jx(e){for(In.assertIsDefined(e.parent);;){const t=e.parent;if(mD(t))e=t;else{if(VD(t)||vD(t)||qD(t)&&(t.initializer===e||t.incrementor===e))return!0;if(FD(t)){if(e!==Fe(t.elements))return!0;e=t}else{if(!TD(t)||28!==t.operatorToken.kind)return!1;if(e===t.left)return!0;e=t}}}}function Xx(e){return se(fi,(t=>e.includes(t)))}function $x(e){if(!e.parent)return;switch(e.kind){case 168:const{parent:t}=e;return 195===t.kind?void 0:t.typeParameters;case 169:return e.parent.parameters;case 204:case 239:return e.parent.templateSpans;case 170:{const{parent:t}=e;return bk(t)?t.modifiers:void 0}case 298:return e.parent.heritageClauses}const{parent:t}=e;if(Ku(e))return EM(e.parent)?void 0:e.parent.tags;switch(t.kind){case 187:case 264:return Wd(e)?t.members:void 0;case 192:case 193:return t.types;case 189:case 209:case 361:case 275:case 279:return t.elements;case 210:case 292:return t.properties;case 213:case 214:return Gd(e)?t.typeArguments:t.expression===e?void 0:t.arguments;case 284:case 288:return zu(e)?t.children:void 0;case 286:case 285:return Gd(e)?t.typeArguments:void 0;case 241:case 296:case 297:case 268:case 312:return t.statements;case 269:return t.clauses;case 263:case 231:return Nd(e)?t.members:void 0;case 266:return tM(e)?t.members:void 0}}function Yx(e){if(!e.typeParameters){if(se(e.parameters,(e=>!Ab(e))))return!0;if(219!==e.kind){const t=Le(e.parameters);if(!t||!vb(t))return!0}}return!1}function Qx(e){return"Infinity"===e||"-Infinity"===e||"NaN"===e}function Zx(e){return 260===e.kind&&299===e.parent.kind}function eA(e){return 218===e.kind||219===e.kind}function tA(e){return e.replace(/\$/gm,(()=>"\\$"))}function nA(e){return(+e).toString()===e}function rA(e,t,n,r,o){const i=o&&"new"===e;return!i&&zs(e,t)?UA.createIdentifier(e):!r&&!i&&nA(e)&&+e>=0?UA.createNumericLiteral(+e):UA.createStringLiteral(e,!!n)}function oA(e){return!!(262144&e.flags&&e.isThisType)}function iA(e){let t,n=0,r=0,o=0,i=0;var a;(a=t||(t={}))[a.BeforeNodeModules=0]="BeforeNodeModules",a[a.NodeModules=1]="NodeModules",a[a.Scope=2]="Scope",a[a.PackageContent=3]="PackageContent";let s=0,l=0,c=0;for(;l>=0;)switch(s=l,l=e.indexOf("/",s+1),c){case 0:e.indexOf(HO,s)===s&&(n=s,r=l,c=1);break;case 1:case 2:1===c&&"@"===e.charAt(s+1)?c=2:(o=l,c=3);break;case 3:c=e.indexOf(HO,s)===s?1:3}return i=s,c>1?{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:r,packageRootIndex:o,fileNameIndex:i}:void 0}function aA(e){var t;return 348===e.kind?null==(t=e.typeExpression)?void 0:t.type:e.type}function sA(e){switch(e.kind){case 168:case 263:case 264:case 265:case 266:case 353:case 345:case 347:return!0;case 273:return e.isTypeOnly;case 276:case 281:return e.parent.parent.isTypeOnly;default:return!1}}function lA(e){return uN(e)||GD(e)||sN(e)||lN(e)||cN(e)||sA(e)||pN(e)&&!Gm(e)&&!Bm(e)}function cA(e){if(!qc(e))return!1;const{isBracketed:t,typeExpression:n}=e;return t||!!n&&323===n.type.kind}function dA(e,t){if(0===e.length)return!1;const n=e.charCodeAt(0);return 35===n?e.length>1&&Fs(e.charCodeAt(1),t):Fs(n,t)}function uA(e){var t;return 0===(null==(t=zI(e))?void 0:t.kind)}function pA(e){return $h(e)&&(e.type&&323===e.type.kind||ql(e).some((({isBracketed:e,typeExpression:t})=>e||!!t&&323===t.type.kind)))}function fA(e){switch(e.kind){case 172:case 171:return!!e.questionToken;case 169:return!!e.questionToken||pA(e);case 355:case 348:return cA(e);default:return!1}}function mA(e){const t=e.kind;return(211===t||212===t)&&kD(e.expression)}function _A(e){return $h(e)&&mD(e)&&Xu(e)&&!!gc(e)}function hA(e){return In.checkDefined(gA(e))}function gA(e){const t=gc(e);return t&&t.typeExpression&&t.typeExpression.type}function yA(e){return nC(e)?e.escapedText:EA(e)}function vA(e){return nC(e)?kl(e):SA(e)}function bA(e){const t=e.kind;return 80===t||295===t}function EA(e){return`${e.namespace.escapedText}:${kl(e.name)}`}function SA(e){return`${kl(e.namespace)}:${kl(e.name)}`}function TA(e){return nC(e)?kl(e):SA(e)}function xA(e){return!!(8576&e.flags)}function AA(e){return 8192&e.flags?e.escapedName:384&e.flags?Ml(""+e.value):In.fail()}function IA(e){return!!e&&(lD(e)||cD(e)||TD(e))}function RA(e){return void 0!==e&&!!HU(e.attributes)}function CA(e,t){return Rf.call(e,"*",t)}function DA(e){return nC(e.name)?e.name.escapedText:Ml(e.name.text)}var NA=b({"src/compiler/utilities.ts"(){JJ(),lp=[],cp="tslib",dp=160,up=1e6,pp=function(){var e="";const t=t=>e+=t;return{getText:()=>e,write:t,rawWrite:t,writeKeyword:t,writeOperator:t,writePunctuation:t,writeSpace:t,writeStringLiteral:t,writeLiteral:t,writeParameter:t,writeProperty:t,writeSymbol:(e,n)=>t(e),writeTrailingSemicolon:t,writeComment:t,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&hs(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:bt,decreaseIndent:bt,clear:()=>e=""}}(),fp=Ct((()=>new Map(Object.entries({Array:new Map(Object.entries({es2015:["find","findIndex","fill","copyWithin","entries","keys","values"],es2016:["includes"],es2019:["flat","flatMap"],es2022:["at"],es2023:["findLastIndex","findLast"]})),Iterator:new Map(Object.entries({es2015:o})),AsyncIterator:new Map(Object.entries({es2015:o})),Atomics:new Map(Object.entries({es2017:o})),SharedArrayBuffer:new Map(Object.entries({es2017:o})),AsyncIterable:new Map(Object.entries({es2018:o})),AsyncIterableIterator:new Map(Object.entries({es2018:o})),AsyncGenerator:new Map(Object.entries({es2018:o})),AsyncGeneratorFunction:new Map(Object.entries({es2018:o})),RegExp:new Map(Object.entries({es2015:["flags","sticky","unicode"],es2018:["dotAll"]})),Reflect:new Map(Object.entries({es2015:["apply","construct","defineProperty","deleteProperty","get","getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"]})),ArrayConstructor:new Map(Object.entries({es2015:["from","of"]})),ObjectConstructor:new Map(Object.entries({es2015:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],es2017:["values","entries","getOwnPropertyDescriptors"],es2019:["fromEntries"],es2022:["hasOwn"]})),NumberConstructor:new Map(Object.entries({es2015:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"]})),Math:new Map(Object.entries({es2015:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"]})),Map:new Map(Object.entries({es2015:["entries","keys","values"]})),Set:new Map(Object.entries({es2015:["entries","keys","values"]})),PromiseConstructor:new Map(Object.entries({es2015:["all","race","reject","resolve"],es2020:["allSettled"],es2021:["any"]})),Symbol:new Map(Object.entries({es2015:["for","keyFor"],es2019:["description"]})),WeakMap:new Map(Object.entries({es2015:["entries","keys","values"]})),WeakSet:new Map(Object.entries({es2015:["entries","keys","values"]})),String:new Map(Object.entries({es2015:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],es2017:["padStart","padEnd"],es2019:["trimStart","trimEnd","trimLeft","trimRight"],es2020:["matchAll"],es2021:["replaceAll"],es2022:["at"]})),StringConstructor:new Map(Object.entries({es2015:["fromCodePoint","raw"]})),DateTimeFormat:new Map(Object.entries({es2017:["formatToParts"]})),Promise:new Map(Object.entries({es2015:o,es2018:["finally"]})),RegExpMatchArray:new Map(Object.entries({es2018:["groups"]})),RegExpExecArray:new Map(Object.entries({es2018:["groups"]})),Intl:new Map(Object.entries({es2018:["PluralRules"]})),NumberFormat:new Map(Object.entries({es2018:["formatToParts"]})),SymbolConstructor:new Map(Object.entries({es2020:["matchAll"]})),DataView:new Map(Object.entries({es2020:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"]})),BigInt:new Map(Object.entries({es2020:o})),RelativeTimeFormat:new Map(Object.entries({es2020:["format","formatToParts","resolvedOptions"]})),Int8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint8ClampedArray:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Int16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Int32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Float32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Float64Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),BigInt64Array:new Map(Object.entries({es2020:o,es2022:["at"],es2023:["findLastIndex","findLast"]})),BigUint64Array:new Map(Object.entries({es2020:o,es2022:["at"],es2023:["findLastIndex","findLast"]})),Error:new Map(Object.entries({es2022:["cause"]}))})))),mp=(e=>(e[e.None=0]="None",e[e.NeverAsciiEscape=1]="NeverAsciiEscape",e[e.JsxAttributeEscape=2]="JsxAttributeEscape",e[e.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",e[e.AllowNumericSeparator=8]="AllowNumericSeparator",e))(mp||{}),_p=/^(\/\/\/\s*<reference\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,hp=/^(\/\/\/\s*<reference\s+types\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,gp=/^(\/\/\/\s*<reference\s+lib\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,yp=/^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,vp=/^\/\/\/\s*<amd-module\s+.*?\/>/,bp=/^(\/\/\/\s*<reference\s+no-default-lib\s*=\s*)(('[^']*')|("[^"]*"))\s*\/>/,Ep=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))(Ep||{}),Sp=(e=>(e[e.Normal=0]="Normal",e[e.Generator=1]="Generator",e[e.Async=2]="Async",e[e.Invalid=4]="Invalid",e[e.AsyncGenerator=3]="AsyncGenerator",e))(Sp||{}),Tp=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(Tp||{}),xp=(e=>(e[e.Comma=0]="Comma",e[e.Spread=1]="Spread",e[e.Yield=2]="Yield",e[e.Assignment=3]="Assignment",e[e.Conditional=4]="Conditional",e[e.Coalesce=4]="Coalesce",e[e.LogicalOR=5]="LogicalOR",e[e.LogicalAND=6]="LogicalAND",e[e.BitwiseOR=7]="BitwiseOR",e[e.BitwiseXOR=8]="BitwiseXOR",e[e.BitwiseAND=9]="BitwiseAND",e[e.Equality=10]="Equality",e[e.Relational=11]="Relational",e[e.Shift=12]="Shift",e[e.Additive=13]="Additive",e[e.Multiplicative=14]="Multiplicative",e[e.Exponentiation=15]="Exponentiation",e[e.Unary=16]="Unary",e[e.Update=17]="Update",e[e.LeftHandSide=18]="LeftHandSide",e[e.Member=19]="Member",e[e.Primary=20]="Primary",e[e.Highest=20]="Highest",e[e.Lowest=0]="Lowest",e[e.Invalid=-1]="Invalid",e))(xp||{}),Ap=/\$\{/g,Ip=/[\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Rp=/[\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Cp=/\r\n|[\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,Dp=new Map(Object.entries({"\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085","\r\n":"\\r\\n"})),Np=/[^\u0000-\u007F]/g,Mp=/["\u0000-\u001f\u2028\u2029\u0085]/g,Lp=/['\u0000-\u001f\u2028\u2029\u0085]/g,kp=new Map(Object.entries({'"':""","'":"'"})),Pp=[""," "],wp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Op="\r\n",Fp="\n",Wp={getNodeConstructor:()=>HS,getTokenConstructor:()=>KS,getIdentifierConstructor:()=>qS,getPrivateIdentifierConstructor:()=>HS,getSourceFileConstructor:()=>HS,getSymbolConstructor:()=>jS,getTypeConstructor:()=>VS,getSignatureConstructor:()=>US,getSourceMapSourceConstructor:()=>JS},zp=[],jp=(Gp={target:{dependencies:["module"],computeValue:e=>e.target??((100===e.module?9:199===e.module&&99)||1)},module:{dependencies:["target"],computeValue:e=>"number"===typeof e.module?e.module:Gp.target.computeValue(e)>=2?5:1},moduleResolution:{dependencies:["module","target"],computeValue:e=>{let t=e.moduleResolution;if(void 0===t)switch(Gp.module.computeValue(e)){case 1:t=2;break;case 100:t=3;break;case 199:t=99;break;case 200:t=100;break;default:t=1}return t}},moduleDetection:{dependencies:["module","target"],computeValue:e=>e.moduleDetection||(100===Gp.module.computeValue(e)||199===Gp.module.computeValue(e)?3:2)},isolatedModules:{dependencies:["verbatimModuleSyntax"],computeValue:e=>!(!e.isolatedModules&&!e.verbatimModuleSyntax)},esModuleInterop:{dependencies:["module","target"],computeValue:e=>{if(void 0!==e.esModuleInterop)return e.esModuleInterop;switch(Gp.module.computeValue(e)){case 100:case 199:case 200:return!0}return!1}},allowSyntheticDefaultImports:{dependencies:["module","target","moduleResolution"],computeValue:e=>void 0!==e.allowSyntheticDefaultImports?e.allowSyntheticDefaultImports:Gp.esModuleInterop.computeValue(e)||4===Gp.module.computeValue(e)||100===Gp.moduleResolution.computeValue(e)},resolvePackageJsonExports:{dependencies:["moduleResolution"],computeValue:e=>{const t=Gp.moduleResolution.computeValue(e);if(!AT(t))return!1;if(void 0!==e.resolvePackageJsonExports)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolvePackageJsonImports:{dependencies:["moduleResolution","resolvePackageJsonExports"],computeValue:e=>{const t=Gp.moduleResolution.computeValue(e);if(!AT(t))return!1;if(void 0!==e.resolvePackageJsonExports)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolveJsonModule:{dependencies:["moduleResolution","module","target"],computeValue:e=>void 0!==e.resolveJsonModule?e.resolveJsonModule:100===Gp.moduleResolution.computeValue(e)},declaration:{dependencies:["composite"],computeValue:e=>!(!e.declaration&&!e.composite)},preserveConstEnums:{dependencies:["isolatedModules","verbatimModuleSyntax"],computeValue:e=>!(!e.preserveConstEnums&&!Gp.isolatedModules.computeValue(e))},incremental:{dependencies:["composite"],computeValue:e=>!(!e.incremental&&!e.composite)},declarationMap:{dependencies:["declaration","composite"],computeValue:e=>!(!e.declarationMap||!Gp.declaration.computeValue(e))},allowJs:{dependencies:["checkJs"],computeValue:e=>void 0===e.allowJs?!!e.checkJs:e.allowJs},useDefineForClassFields:{dependencies:["target","module"],computeValue:e=>void 0===e.useDefineForClassFields?Gp.target.computeValue(e)>=9:e.useDefineForClassFields},noImplicitAny:{dependencies:["strict"],computeValue:e=>IT(e,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:e=>IT(e,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:e=>IT(e,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:e=>IT(e,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:e=>IT(e,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:e=>IT(e,"strictPropertyInitialization")},alwaysStrict:{dependencies:["strict"],computeValue:e=>IT(e,"alwaysStrict")},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:e=>IT(e,"useUnknownInCatchVariables")}}).target.computeValue,Vp=Gp.module.computeValue,Up=Gp.moduleResolution.computeValue,Hp=Gp.moduleDetection.computeValue,Kp=Gp.isolatedModules.computeValue,qp=Gp.esModuleInterop.computeValue,Jp=Gp.allowSyntheticDefaultImports.computeValue,Xp=Gp.resolvePackageJsonExports.computeValue,$p=Gp.resolvePackageJsonImports.computeValue,Yp=Gp.resolveJsonModule.computeValue,Qp=Gp.declaration.computeValue,Zp=Gp.preserveConstEnums.computeValue,ef=Gp.incremental.computeValue,tf=Gp.declarationMap.computeValue,nf=Gp.allowJs.computeValue,rf=Gp.useDefineForClassFields.computeValue,of=/[^\w\s/]/g,af=[42,63],lf=`(?!(${(sf=["node_modules","bower_components","jspm_packages"]).join("|")})(/|$))`,pf={files:cf={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${lf}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>KT(e,cf.singleAsteriskRegexFragment)},directories:df={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${lf}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>KT(e,df.singleAsteriskRegexFragment)},exclude:uf={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:e=>KT(e,uf.singleAsteriskRegexFragment)}},mf=q(ff=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]]),_f=[...ff,[".json"]],hf=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],yf=q(gf=[[".js",".jsx"],[".mjs"],[".cjs"]]),vf=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],bf=[...vf,[".json"]],Ef=[".d.ts",".d.cts",".d.mts"],Sf=[".ts",".cts",".mts",".tsx"],Tf=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"],xf=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))(xf||{}),Af=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"],If={files:o,directories:o},Rf=String.prototype.replace}});function MA(){let e,t,n,r,o;return{createBaseSourceFileNode:function(e){return new(o||(o=Wp.getSourceFileConstructor()))(e,-1,-1)},createBaseIdentifierNode:function(e){return new(n||(n=Wp.getIdentifierConstructor()))(e,-1,-1)},createBasePrivateIdentifierNode:function(e){return new(r||(r=Wp.getPrivateIdentifierConstructor()))(e,-1,-1)},createBaseTokenNode:function(e){return new(t||(t=Wp.getTokenConstructor()))(e,-1,-1)},createBaseNode:function(t){return new(e||(e=Wp.getNodeConstructor()))(t,-1,-1)}}}var LA,kA=b({"src/compiler/factory/baseNodeFactory.ts"(){JJ()}});function PA(e){let t,n;return{getParenthesizeLeftSideOfBinaryForOperator:function(e){t||(t=new Map);let n=t.get(e);n||(n=t=>i(e,t),t.set(e,n));return n},getParenthesizeRightSideOfBinaryForOperator:function(e){n||(n=new Map);let t=n.get(e);t||(t=t=>a(e,void 0,t),n.set(e,t));return t},parenthesizeLeftSideOfBinary:i,parenthesizeRightSideOfBinary:a,parenthesizeExpressionOfComputedPropertyName:function(t){return gL(t)?e.createParenthesizedExpression(t):t},parenthesizeConditionOfConditionalExpression:function(t){const n=Cv(227,58),r=Gc(t);if(1!==Ft(Iv(r),n))return e.createParenthesizedExpression(t);return t},parenthesizeBranchOfConditionalExpression:function(t){return gL(Gc(t))?e.createParenthesizedExpression(t):t},parenthesizeExpressionOfExportDefault:function(t){const n=Gc(t);let r=gL(n);if(!r)switch(GS(n,!1).kind){case 231:case 218:r=!0}return r?e.createParenthesizedExpression(t):t},parenthesizeExpressionOfNew:function(t){const n=GS(t,!0);switch(n.kind){case 213:return e.createParenthesizedExpression(t);case 214:return n.arguments?t:e.createParenthesizedExpression(t)}return s(t)},parenthesizeLeftSideOfAccess:s,parenthesizeOperandOfPostfixUnary:function(t){return iu(t)?t:yk(e.createParenthesizedExpression(t),t)},parenthesizeOperandOfPrefixUnary:function(t){return su(t)?t:yk(e.createParenthesizedExpression(t),t)},parenthesizeExpressionsOfCommaDelimitedList:function(t){const n=K(t,l);return yk(e.createNodeArray(n,t.hasTrailingComma),t)},parenthesizeExpressionForDisallowedComma:l,parenthesizeExpressionOfExpressionStatement:function(t){const n=Gc(t);if(dD(n)){const r=n.expression,o=Gc(r).kind;if(218===o||219===o){const o=e.updateCallExpression(n,yk(e.createParenthesizedExpression(r),r),n.typeArguments,n.arguments);return e.restoreOuterExpressions(t,o,8)}}const r=GS(n,!1).kind;if(210===r||218===r)return yk(e.createParenthesizedExpression(t),t);return t},parenthesizeConciseBodyOfArrowFunction:function(t){if(!BD(t)&&(gL(t)||210===GS(t,!1).kind))return yk(e.createParenthesizedExpression(t),t);return t},parenthesizeCheckTypeOfConditionalType:c,parenthesizeExtendsTypeOfConditionalType:function(t){if(194===t.kind)return e.createParenthesizedType(t);return t},parenthesizeConstituentTypesOfUnionType:function(t){return e.createNodeArray(K(t,d))},parenthesizeConstituentTypeOfUnionType:d,parenthesizeConstituentTypesOfIntersectionType:function(t){return e.createNodeArray(K(t,u))},parenthesizeConstituentTypeOfIntersectionType:u,parenthesizeOperandOfTypeOperator:p,parenthesizeOperandOfReadonlyTypeOperator:function(t){if(198===t.kind)return e.createParenthesizedType(t);return p(t)},parenthesizeNonArrayTypeOfPostfixType:f,parenthesizeElementTypesOfTupleType:function(t){return e.createNodeArray(K(t,m))},parenthesizeElementTypeOfTupleType:m,parenthesizeTypeOfOptionalType:function(t){return _(t)?e.createParenthesizedType(t):f(t)},parenthesizeTypeArguments:function(t){if(se(t))return e.createNodeArray(K(t,g))},parenthesizeLeadingTypeArgument:h};function r(e){if(Zc((e=Gc(e)).kind))return e.kind;if(226===e.kind&&40===e.operatorToken.kind){if(void 0!==e.cachedLiteralKind)return e.cachedLiteralKind;const t=r(e.left),n=Zc(t)&&t===r(e.right)?t:0;return e.cachedLiteralKind=n,n}return 0}function o(t,n,o,i){return 217===Gc(n).kind?n:function(e,t,n,o){const i=Cv(226,e),a=Av(226,e),s=Gc(t);if(!n&&219===t.kind&&i>3)return!0;switch(Ft(Iv(s),i)){case-1:return!(!n&&1===a&&229===t.kind);case 1:return!1;case 0:if(n)return 1===a;if(TD(s)&&s.operatorToken.kind===e){if(function(e){return 42===e||52===e||51===e||53===e||28===e}(e))return!1;if(40===e){const e=o?r(o):0;if(Zc(e)&&e===r(s))return!1}}return 0===xv(s)}}(t,n,o,i)?e.createParenthesizedExpression(n):n}function i(e,t){return o(e,t,!0)}function a(e,t,n){return o(e,n,!1,t)}function s(t,n){const r=Gc(t);return!iu(r)||214===r.kind&&!r.arguments||!n&&wc(r)?yk(e.createParenthesizedExpression(t),t):t}function l(t){return Iv(Gc(t))>Cv(226,28)?t:yk(e.createParenthesizedExpression(t),t)}function c(t){switch(t.kind){case 184:case 185:case 194:return e.createParenthesizedType(t)}return t}function d(t){switch(t.kind){case 192:case 193:return e.createParenthesizedType(t)}return c(t)}function u(t){switch(t.kind){case 192:case 193:return e.createParenthesizedType(t)}return d(t)}function p(t){return 193===t.kind?e.createParenthesizedType(t):u(t)}function f(t){switch(t.kind){case 195:case 198:case 186:return e.createParenthesizedType(t)}return p(t)}function m(t){return _(t)?e.createParenthesizedType(t):t}function _(e){return mM(e)?e.postfix:GC(e)||wC(e)||OC(e)||$C(e)?_(e.type):KC(e)?_(e.falseType):UC(e)||HC(e)?_(Fe(e.types)):!!qC(e)&&(!!e.typeParameter.constraint&&_(e.typeParameter.constraint))}function h(t){return jd(t)&&t.typeParameters?e.createParenthesizedType(t):t}function g(e,t){return 0===t?h(e):e}}var wA,OA=b({"src/compiler/factory/parenthesizerRules.ts"(){JJ(),LA={getParenthesizeLeftSideOfBinaryForOperator:e=>xt,getParenthesizeRightSideOfBinaryForOperator:e=>xt,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,n)=>n,parenthesizeExpressionOfComputedPropertyName:xt,parenthesizeConditionOfConditionalExpression:xt,parenthesizeBranchOfConditionalExpression:xt,parenthesizeExpressionOfExportDefault:xt,parenthesizeExpressionOfNew:e=>vt(e,iu),parenthesizeLeftSideOfAccess:e=>vt(e,iu),parenthesizeOperandOfPostfixUnary:e=>vt(e,iu),parenthesizeOperandOfPrefixUnary:e=>vt(e,su),parenthesizeExpressionsOfCommaDelimitedList:e=>vt(e,Qc),parenthesizeExpressionForDisallowedComma:xt,parenthesizeExpressionOfExpressionStatement:xt,parenthesizeConciseBodyOfArrowFunction:xt,parenthesizeCheckTypeOfConditionalType:xt,parenthesizeExtendsTypeOfConditionalType:xt,parenthesizeConstituentTypesOfUnionType:e=>vt(e,Qc),parenthesizeConstituentTypeOfUnionType:xt,parenthesizeConstituentTypesOfIntersectionType:e=>vt(e,Qc),parenthesizeConstituentTypeOfIntersectionType:xt,parenthesizeOperandOfTypeOperator:xt,parenthesizeOperandOfReadonlyTypeOperator:xt,parenthesizeNonArrayTypeOfPostfixType:xt,parenthesizeElementTypesOfTupleType:e=>vt(e,Qc),parenthesizeElementTypeOfTupleType:xt,parenthesizeTypeOfOptionalType:xt,parenthesizeTypeArguments:e=>e&&vt(e,Qc),parenthesizeLeadingTypeArgument:xt}}});function FA(e){return{convertToFunctionBlock:function(t,n){if(BD(t))return t;const r=e.createReturnStatement(t);yk(r,t);const o=e.createBlock([r],n);return yk(o,t),o},convertToFunctionExpression:function(t){var n;if(!t.body)return In.fail("Cannot convert a FunctionDeclaration without a body");const r=e.createFunctionExpression(null==(n=Hl(t))?void 0:n.filter((e=>!oC(e)&&!iC(e))),t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);lI(r,t),yk(r,t),EI(t)&&SI(r,!0);return r},convertToClassExpression:function(t){var n;const r=e.createClassExpression(null==(n=t.modifiers)?void 0:n.filter((e=>!oC(e)&&!iC(e))),t.name,t.typeParameters,t.heritageClauses,t.members);lI(r,t),yk(r,t),EI(t)&&SI(r,!0);return r},convertToArrayAssignmentElement:t,convertToObjectAssignmentElement:n,convertToAssignmentPattern:r,convertToObjectAssignmentPattern:o,convertToArrayAssignmentPattern:i,convertToAssignmentElementTarget:a};function t(t){if(iD(t)){if(t.dotDotDotToken)return In.assertNode(t.name,nC),lI(yk(e.createSpreadElement(t.name),t),t);const n=a(t.name);return t.initializer?lI(yk(e.createAssignment(n,t.initializer),t),t):n}return vt(t,uu)}function n(t){if(iD(t)){if(t.dotDotDotToken)return In.assertNode(t.name,nC),lI(yk(e.createSpreadAssignment(t.name),t),t);if(t.propertyName){const n=a(t.name);return lI(yk(e.createPropertyAssignment(t.propertyName,t.initializer?e.createAssignment(n,t.initializer):n),t),t)}return In.assertNode(t.name,nC),lI(yk(e.createShorthandPropertyAssignment(t.name,t.initializer),t),t)}return vt(t,Bd)}function r(e){switch(e.kind){case 207:case 209:return i(e);case 206:case 210:return o(e)}}function o(t){return rD(t)?lI(yk(e.createObjectLiteralExpression(U(t.elements,n)),t),t):vt(t,sD)}function i(n){return oD(n)?lI(yk(e.createArrayLiteralExpression(U(n.elements,t)),n),n):vt(n,aD)}function a(e){return Vd(e)?r(e):vt(e,uu)}}var WA,zA,BA,GA,jA,VA,UA,HA,KA=b({"src/compiler/factory/nodeConverters.ts"(){JJ(),wA={convertToFunctionBlock:Rt,convertToFunctionExpression:Rt,convertToClassExpression:Rt,convertToArrayAssignmentElement:Rt,convertToObjectAssignmentElement:Rt,convertToAssignmentPattern:Rt,convertToObjectAssignmentPattern:Rt,convertToArrayAssignmentPattern:Rt,convertToAssignmentElementTarget:Rt}}});function qA(e){BA.push(e)}function JA(e,t){const n=8&e?xt:lI,r=Ct((()=>1&e?LA:PA(y))),i=Ct((()=>2&e?wA:FA(y))),a=Dt((e=>(t,n)=>Pt(t,e,n))),s=Dt((e=>t=>Lt(e,t))),l=Dt((e=>t=>kt(t,e))),c=Dt((e=>()=>function(e){return b(e)}(e))),d=Dt((e=>t=>ur(e,t))),u=Dt((e=>(t,n)=>function(e,t,n){return t.type!==n?ko(ur(e,n),t):t}(e,t,n))),p=Dt((e=>(t,n)=>dr(e,t,n))),f=Dt((e=>(t,n)=>function(e,t,n){return t.type!==n?ko(dr(e,n,t.postfix),t):t}(e,t,n))),m=Dt((e=>(t,n)=>kr(e,t,n))),_=Dt((e=>(t,n,r)=>function(e,t,n=hr(t),r){return t.tagName!==n||t.comment!==r?ko(kr(e,n,r),t):t}(e,t,n,r))),h=Dt((e=>(t,n,r)=>Pr(e,t,n,r))),g=Dt((e=>(t,n,r,o)=>function(e,t,n=hr(t),r,o){return t.tagName!==n||t.typeExpression!==r||t.comment!==o?ko(Pr(e,n,r,o),t):t}(e,t,n,r,o))),y={get parenthesizer(){return r()},get converters(){return i()},baseFactory:t,flags:e,createNodeArray:v,createNumericLiteral:T,createBigIntLiteral:A,createStringLiteral:R,createStringLiteralFromNode:function(e){const t=I(sv(e),void 0);return t.textSourceNode=e,t},createRegularExpressionLiteral:C,createLiteralLikeNode:function(e,t){switch(e){case 9:return T(t,0);case 10:return A(t);case 11:return R(t,void 0);case 12:return Ur(t,!1);case 13:return Ur(t,!0);case 14:return C(t);case 15:return Gt(e,t,void 0,0)}},createIdentifier:L,createTempVariable:k,createLoopVariable:function(e){let t=2;e&&(t|=8);return N("",t,void 0,void 0)},createUniqueName:function(e,t=0,n,r){return In.assert(!(7&t),"Argument out of range: flags"),In.assert(32!==(48&t),"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),N(e,3|t,n,r)},getGeneratedNameForNode:P,createPrivateIdentifier:function(e){dn(e,"#")||In.fail("First character of private identifier must be #: "+e);return w(Ml(e))},createUniquePrivateName:function(e,t,n){e&&!dn(e,"#")&&In.fail("First character of private identifier must be #: "+e);return O(e??"",8|(e?3:1),t,n)},getGeneratedPrivateNameForNode:function(e,t,n){const r=Nc(e)?ck(!0,t,e,n,kl):`#generated@${Hz(e)}`,o=O(r,4|(t||n?16:0),t,n);return o.original=e,o},createToken:W,createSuper:function(){return W(108)},createThis:z,createNull:B,createTrue:G,createFalse:j,createModifier:V,createModifiersFromModifierFlags:U,createQualifiedName:H,updateQualifiedName:function(e,t,n){return e.left!==t||e.right!==n?ko(H(t,n),e):e},createComputedPropertyName:K,updateComputedPropertyName:function(e,t){return e.expression!==t?ko(K(t),e):e},createTypeParameterDeclaration:q,updateTypeParameterDeclaration:J,createParameterDeclaration:X,updateParameterDeclaration:$,createDecorator:Q,updateDecorator:function(e,t){return e.expression!==t?ko(Q(t),e):e},createPropertySignature:Z,updatePropertySignature:ee,createPropertyDeclaration:te,updatePropertyDeclaration:ne,createMethodSignature:re,updateMethodSignature:oe,createMethodDeclaration:ie,updateMethodDeclaration:ae,createConstructorDeclaration:ce,updateConstructorDeclaration:de,createGetAccessorDeclaration:ue,updateGetAccessorDeclaration:pe,createSetAccessorDeclaration:fe,updateSetAccessorDeclaration:me,createCallSignature:_e,updateCallSignature:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?S(_e(t,n,r),e):e},createConstructSignature:he,updateConstructSignature:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?S(he(t,n,r),e):e},createIndexSignature:ge,updateIndexSignature:ye,createClassStaticBlockDeclaration:le,updateClassStaticBlockDeclaration:function(e,t){return e.body!==t?function(e,t){e!==t&&(e.modifiers=t.modifiers);return ko(e,t)}(le(t),e):e},createTemplateLiteralTypeSpan:ve,updateTemplateLiteralTypeSpan:function(e,t,n){return e.type!==t||e.literal!==n?ko(ve(t,n),e):e},createKeywordTypeNode:function(e){return W(e)},createTypePredicateNode:be,updateTypePredicateNode:function(e,t,n,r){return e.assertsModifier!==t||e.parameterName!==n||e.type!==r?ko(be(t,n,r),e):e},createTypeReferenceNode:Se,updateTypeReferenceNode:function(e,t,n){return e.typeName!==t||e.typeArguments!==n?ko(Se(t,n),e):e},createFunctionTypeNode:Te,updateFunctionTypeNode:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?function(e,t){e!==t&&(e.modifiers=t.modifiers);return S(e,t)}(Te(t,n,r),e):e},createConstructorTypeNode:xe,updateConstructorTypeNode:function(...e){return 5===e.length?Ie(...e):4===e.length?function(e,t,n,r){return Ie(e,e.modifiers,t,n,r)}(...e):In.fail("Incorrect number of arguments specified.")},createTypeQueryNode:Re,updateTypeQueryNode:function(e,t,n){return e.exprName!==t||e.typeArguments!==n?ko(Re(t,n),e):e},createTypeLiteralNode:Ce,updateTypeLiteralNode:function(e,t){return e.members!==t?ko(Ce(t),e):e},createArrayTypeNode:De,updateArrayTypeNode:function(e,t){return e.elementType!==t?ko(De(t),e):e},createTupleTypeNode:Ne,updateTupleTypeNode:function(e,t){return e.elements!==t?ko(Ne(t),e):e},createNamedTupleMember:Me,updateNamedTupleMember:function(e,t,n,r,o){return e.dotDotDotToken!==t||e.name!==n||e.questionToken!==r||e.type!==o?ko(Me(t,n,r,o),e):e},createOptionalTypeNode:Le,updateOptionalTypeNode:function(e,t){return e.type!==t?ko(Le(t),e):e},createRestTypeNode:ke,updateRestTypeNode:function(e,t){return e.type!==t?ko(ke(t),e):e},createUnionTypeNode:function(e){return Pe(192,e,r().parenthesizeConstituentTypesOfUnionType)},updateUnionTypeNode:function(e,t){return we(e,t,r().parenthesizeConstituentTypesOfUnionType)},createIntersectionTypeNode:function(e){return Pe(193,e,r().parenthesizeConstituentTypesOfIntersectionType)},updateIntersectionTypeNode:function(e,t){return we(e,t,r().parenthesizeConstituentTypesOfIntersectionType)},createConditionalTypeNode:Fe,updateConditionalTypeNode:function(e,t,n,r,o){return e.checkType!==t||e.extendsType!==n||e.trueType!==r||e.falseType!==o?ko(Fe(t,n,r,o),e):e},createInferTypeNode:ze,updateInferTypeNode:function(e,t){return e.typeParameter!==t?ko(ze(t),e):e},createImportTypeNode:Ge,updateImportTypeNode:function(e,t,n,r,o,i=e.isTypeOf){return e.argument!==t||e.attributes!==n||e.qualifier!==r||e.typeArguments!==o||e.isTypeOf!==i?ko(Ge(t,n,r,o,i),e):e},createParenthesizedType:je,updateParenthesizedType:function(e,t){return e.type!==t?ko(je(t),e):e},createThisTypeNode:function(){const e=b(197);return e.transformFlags=1,e},createTypeOperatorNode:Ve,updateTypeOperatorNode:function(e,t){return e.type!==t?ko(Ve(e.operator,t),e):e},createIndexedAccessTypeNode:Ke,updateIndexedAccessTypeNode:function(e,t,n){return e.objectType!==t||e.indexType!==n?ko(Ke(t,n),e):e},createMappedTypeNode:qe,updateMappedTypeNode:function(e,t,n,r,o,i,a){return e.readonlyToken!==t||e.typeParameter!==n||e.nameType!==r||e.questionToken!==o||e.type!==i||e.members!==a?ko(qe(t,n,r,o,i,a),e):e},createLiteralTypeNode:Je,updateLiteralTypeNode:function(e,t){return e.literal!==t?ko(Je(t),e):e},createTemplateLiteralType:Be,updateTemplateLiteralType:function(e,t,n){return e.head!==t||e.templateSpans!==n?ko(Be(t,n),e):e},createObjectBindingPattern:Xe,updateObjectBindingPattern:function(e,t){return e.elements!==t?ko(Xe(t),e):e},createArrayBindingPattern:$e,updateArrayBindingPattern:function(e,t){return e.elements!==t?ko($e(t),e):e},createBindingElement:Ye,updateBindingElement:function(e,t,n,r,o){return e.propertyName!==n||e.dotDotDotToken!==t||e.name!==r||e.initializer!==o?ko(Ye(t,n,r,o),e):e},createArrayLiteralExpression:Qe,updateArrayLiteralExpression:function(e,t){return e.elements!==t?ko(Qe(t,e.multiLine),e):e},createObjectLiteralExpression:Ze,updateObjectLiteralExpression:function(e,t){return e.properties!==t?ko(Ze(t,e.multiLine),e):e},createPropertyAccessExpression:4&e?(e,t)=>fI(tt(e,t),262144):tt,updatePropertyAccessExpression:function(e,t,n){if(Lc(e))return rt(e,t,e.questionDotToken,vt(n,nC));return e.expression!==t||e.name!==n?ko(tt(t,n),e):e},createPropertyAccessChain:4&e?(e,t,n)=>fI(nt(e,t,n),262144):nt,updatePropertyAccessChain:rt,createElementAccessExpression:it,updateElementAccessExpression:function(e,t,n){if(kc(e))return st(e,t,e.questionDotToken,n);return e.expression!==t||e.argumentExpression!==n?ko(it(t,n),e):e},createElementAccessChain:at,updateElementAccessChain:st,createCallExpression:ct,updateCallExpression:function(e,t,n,r){if(Pc(e))return ut(e,t,e.questionDotToken,n,r);return e.expression!==t||e.typeArguments!==n||e.arguments!==r?ko(ct(t,n,r),e):e},createCallChain:dt,updateCallChain:ut,createNewExpression:pt,updateNewExpression:function(e,t,n,r){return e.expression!==t||e.typeArguments!==n||e.arguments!==r?ko(pt(t,n,r),e):e},createTaggedTemplateExpression:ft,updateTaggedTemplateExpression:function(e,t,n,r){return e.tag!==t||e.typeArguments!==n||e.template!==r?ko(ft(t,n,r),e):e},createTypeAssertion:_t,updateTypeAssertion:ht,createParenthesizedExpression:gt,updateParenthesizedExpression:yt,createFunctionExpression:bt,updateFunctionExpression:Et,createArrowFunction:Tt,updateArrowFunction:At,createDeleteExpression:It,updateDeleteExpression:function(e,t){return e.expression!==t?ko(It(t),e):e},createTypeOfExpression:Rt,updateTypeOfExpression:function(e,t){return e.expression!==t?ko(Rt(t),e):e},createVoidExpression:Nt,updateVoidExpression:function(e,t){return e.expression!==t?ko(Nt(t),e):e},createAwaitExpression:Mt,updateAwaitExpression:function(e,t){return e.expression!==t?ko(Mt(t),e):e},createPrefixUnaryExpression:Lt,updatePrefixUnaryExpression:function(e,t){return e.operand!==t?ko(Lt(e.operator,t),e):e},createPostfixUnaryExpression:kt,updatePostfixUnaryExpression:function(e,t){return e.operand!==t?ko(kt(t,e.operator),e):e},createBinaryExpression:Pt,updateBinaryExpression:function(e,t,n,r){return e.left!==t||e.operatorToken!==n||e.right!==r?ko(Pt(t,n,r),e):e},createConditionalExpression:Ot,updateConditionalExpression:function(e,t,n,r,o,i){return e.condition!==t||e.questionToken!==n||e.whenTrue!==r||e.colonToken!==o||e.whenFalse!==i?ko(Ot(t,n,r,o,i),e):e},createTemplateExpression:Ft,updateTemplateExpression:function(e,t,n){return e.head!==t||e.templateSpans!==n?ko(Ft(t,n),e):e},createTemplateHead:function(e,t,n){return Gt(16,e=Wt(16,e,t,n),t,n)},createTemplateMiddle:function(e,t,n){return Gt(17,e=Wt(16,e,t,n),t,n)},createTemplateTail:function(e,t,n){return Gt(18,e=Wt(16,e,t,n),t,n)},createNoSubstitutionTemplateLiteral:function(e,t,n){return Bt(15,e=Wt(16,e,t,n),t,n)},createTemplateLiteralLikeNode:Gt,createYieldExpression:jt,updateYieldExpression:function(e,t,n){return e.expression!==n||e.asteriskToken!==t?ko(jt(t,n),e):e},createSpreadElement:Vt,updateSpreadElement:function(e,t){return e.expression!==t?ko(Vt(t),e):e},createClassExpression:Ut,updateClassExpression:Ht,createOmittedExpression:function(){return b(232)},createExpressionWithTypeArguments:Kt,updateExpressionWithTypeArguments:function(e,t,n){return e.expression!==t||e.typeArguments!==n?ko(Kt(t,n),e):e},createAsExpression:qt,updateAsExpression:Jt,createNonNullExpression:Xt,updateNonNullExpression:$t,createSatisfiesExpression:Yt,updateSatisfiesExpression:Qt,createNonNullChain:Zt,updateNonNullChain:en,createMetaProperty:tn,updateMetaProperty:function(e,t){return e.name!==t?ko(tn(e.keywordToken,t),e):e},createTemplateSpan:nn,updateTemplateSpan:function(e,t,n){return e.expression!==t||e.literal!==n?ko(nn(t,n),e):e},createSemicolonClassElement:function(){const e=b(240);return e.transformFlags|=1024,e},createBlock:rn,updateBlock:function(e,t){return e.statements!==t?ko(rn(t,e.multiLine),e):e},createVariableStatement:on,updateVariableStatement:an,createEmptyStatement:sn,createExpressionStatement:ln,updateExpressionStatement:function(e,t){return e.expression!==t?ko(ln(t),e):e},createIfStatement:cn,updateIfStatement:function(e,t,n,r){return e.expression!==t||e.thenStatement!==n||e.elseStatement!==r?ko(cn(t,n,r),e):e},createDoStatement:un,updateDoStatement:function(e,t,n){return e.statement!==t||e.expression!==n?ko(un(t,n),e):e},createWhileStatement:pn,updateWhileStatement:function(e,t,n){return e.expression!==t||e.statement!==n?ko(pn(t,n),e):e},createForStatement:fn,updateForStatement:function(e,t,n,r,o){return e.initializer!==t||e.condition!==n||e.incrementor!==r||e.statement!==o?ko(fn(t,n,r,o),e):e},createForInStatement:mn,updateForInStatement:function(e,t,n,r){return e.initializer!==t||e.expression!==n||e.statement!==r?ko(mn(t,n,r),e):e},createForOfStatement:_n,updateForOfStatement:function(e,t,n,r,o){return e.awaitModifier!==t||e.initializer!==n||e.expression!==r||e.statement!==o?ko(_n(t,n,r,o),e):e},createContinueStatement:hn,updateContinueStatement:function(e,t){return e.label!==t?ko(hn(t),e):e},createBreakStatement:gn,updateBreakStatement:function(e,t){return e.label!==t?ko(gn(t),e):e},createReturnStatement:yn,updateReturnStatement:function(e,t){return e.expression!==t?ko(yn(t),e):e},createWithStatement:vn,updateWithStatement:function(e,t,n){return e.expression!==t||e.statement!==n?ko(vn(t,n),e):e},createSwitchStatement:bn,updateSwitchStatement:function(e,t,n){return e.expression!==t||e.caseBlock!==n?ko(bn(t,n),e):e},createLabeledStatement:En,updateLabeledStatement:Sn,createThrowStatement:Tn,updateThrowStatement:function(e,t){return e.expression!==t?ko(Tn(t),e):e},createTryStatement:xn,updateTryStatement:function(e,t,n,r){return e.tryBlock!==t||e.catchClause!==n||e.finallyBlock!==r?ko(xn(t,n,r),e):e},createDebuggerStatement:function(){const e=b(259);return e.jsDoc=void 0,e.flowNode=void 0,e},createVariableDeclaration:An,updateVariableDeclaration:function(e,t,n,r,o){return e.name!==t||e.type!==r||e.exclamationToken!==n||e.initializer!==o?ko(An(t,n,r,o),e):e},createVariableDeclarationList:Rn,updateVariableDeclarationList:function(e,t){return e.declarations!==t?ko(Rn(t,e.flags),e):e},createFunctionDeclaration:Cn,updateFunctionDeclaration:Dn,createClassDeclaration:Nn,updateClassDeclaration:Mn,createInterfaceDeclaration:Ln,updateInterfaceDeclaration:kn,createTypeAliasDeclaration:Pn,updateTypeAliasDeclaration:wn,createEnumDeclaration:On,updateEnumDeclaration:Fn,createModuleDeclaration:Wn,updateModuleDeclaration:zn,createModuleBlock:Bn,updateModuleBlock:function(e,t){return e.statements!==t?ko(Bn(t),e):e},createCaseBlock:Gn,updateCaseBlock:function(e,t){return e.clauses!==t?ko(Gn(t),e):e},createNamespaceExportDeclaration:jn,updateNamespaceExportDeclaration:function(e,t){return e.name!==t?function(e,t){e!==t&&(e.modifiers=t.modifiers);return ko(e,t)}(jn(t),e):e},createImportEqualsDeclaration:Vn,updateImportEqualsDeclaration:Un,createImportDeclaration:Hn,updateImportDeclaration:Kn,createImportClause:qn,updateImportClause:function(e,t,n,r){return e.isTypeOnly!==t||e.name!==n||e.namedBindings!==r?ko(qn(t,n,r),e):e},createAssertClause:Jn,updateAssertClause:function(e,t,n){return e.elements!==t||e.multiLine!==n?ko(Jn(t,n),e):e},createAssertEntry:Xn,updateAssertEntry:function(e,t,n){return e.name!==t||e.value!==n?ko(Xn(t,n),e):e},createImportTypeAssertionContainer:$n,updateImportTypeAssertionContainer:function(e,t,n){return e.assertClause!==t||e.multiLine!==n?ko($n(t,n),e):e},createImportAttributes:Yn,updateImportAttributes:function(e,t,n){return e.elements!==t||e.multiLine!==n?ko(Yn(t,n,e.token),e):e},createImportAttribute:Qn,updateImportAttribute:function(e,t,n){return e.name!==t||e.value!==n?ko(Qn(t,n),e):e},createNamespaceImport:Zn,updateNamespaceImport:function(e,t){return e.name!==t?ko(Zn(t),e):e},createNamespaceExport:er,updateNamespaceExport:function(e,t){return e.name!==t?ko(er(t),e):e},createNamedImports:tr,updateNamedImports:function(e,t){return e.elements!==t?ko(tr(t),e):e},createImportSpecifier:nr,updateImportSpecifier:function(e,t,n,r){return e.isTypeOnly!==t||e.propertyName!==n||e.name!==r?ko(nr(t,n,r),e):e},createExportAssignment:rr,updateExportAssignment:or,createExportDeclaration:ir,updateExportDeclaration:ar,createNamedExports:sr,updateNamedExports:function(e,t){return e.elements!==t?ko(sr(t),e):e},createExportSpecifier:lr,updateExportSpecifier:function(e,t,n,r){return e.isTypeOnly!==t||e.propertyName!==n||e.name!==r?ko(lr(t,n,r),e):e},createMissingDeclaration:function(){const e=E(282);return e.jsDoc=void 0,e},createExternalModuleReference:cr,updateExternalModuleReference:function(e,t){return e.expression!==t?ko(cr(t),e):e},get createJSDocAllType(){return c(319)},get createJSDocUnknownType(){return c(320)},get createJSDocNonNullableType(){return p(322)},get updateJSDocNonNullableType(){return f(322)},get createJSDocNullableType(){return p(321)},get updateJSDocNullableType(){return f(321)},get createJSDocOptionalType(){return d(323)},get updateJSDocOptionalType(){return u(323)},get createJSDocVariadicType(){return d(325)},get updateJSDocVariadicType(){return u(325)},get createJSDocNamepathType(){return d(326)},get updateJSDocNamepathType(){return u(326)},createJSDocFunctionType:pr,updateJSDocFunctionType:function(e,t,n){return e.parameters!==t||e.type!==n?ko(pr(t,n),e):e},createJSDocTypeLiteral:fr,updateJSDocTypeLiteral:function(e,t,n){return e.jsDocPropertyTags!==t||e.isArrayType!==n?ko(fr(t,n),e):e},createJSDocTypeExpression:mr,updateJSDocTypeExpression:function(e,t){return e.type!==t?ko(mr(t),e):e},createJSDocSignature:_r,updateJSDocSignature:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?ko(_r(t,n,r),e):e},createJSDocTemplateTag:vr,updateJSDocTemplateTag:function(e,t=hr(e),n,r,o){return e.tagName!==t||e.constraint!==n||e.typeParameters!==r||e.comment!==o?ko(vr(t,n,r,o),e):e},createJSDocTypedefTag:br,updateJSDocTypedefTag:function(e,t=hr(e),n,r,o){return e.tagName!==t||e.typeExpression!==n||e.fullName!==r||e.comment!==o?ko(br(t,n,r,o),e):e},createJSDocParameterTag:Er,updateJSDocParameterTag:function(e,t=hr(e),n,r,o,i,a){return e.tagName!==t||e.name!==n||e.isBracketed!==r||e.typeExpression!==o||e.isNameFirst!==i||e.comment!==a?ko(Er(t,n,r,o,i,a),e):e},createJSDocPropertyTag:Sr,updateJSDocPropertyTag:function(e,t=hr(e),n,r,o,i,a){return e.tagName!==t||e.name!==n||e.isBracketed!==r||e.typeExpression!==o||e.isNameFirst!==i||e.comment!==a?ko(Sr(t,n,r,o,i,a),e):e},createJSDocCallbackTag:Tr,updateJSDocCallbackTag:function(e,t=hr(e),n,r,o){return e.tagName!==t||e.typeExpression!==n||e.fullName!==r||e.comment!==o?ko(Tr(t,n,r,o),e):e},createJSDocOverloadTag:xr,updateJSDocOverloadTag:function(e,t=hr(e),n,r){return e.tagName!==t||e.typeExpression!==n||e.comment!==r?ko(xr(t,n,r),e):e},createJSDocAugmentsTag:Ar,updateJSDocAugmentsTag:function(e,t=hr(e),n,r){return e.tagName!==t||e.class!==n||e.comment!==r?ko(Ar(t,n,r),e):e},createJSDocImplementsTag:Ir,updateJSDocImplementsTag:function(e,t=hr(e),n,r){return e.tagName!==t||e.class!==n||e.comment!==r?ko(Ir(t,n,r),e):e},createJSDocSeeTag:Rr,updateJSDocSeeTag:function(e,t,n,r){return e.tagName!==t||e.name!==n||e.comment!==r?ko(Rr(t,n,r),e):e},createJSDocNameReference:Cr,updateJSDocNameReference:function(e,t){return e.name!==t?ko(Cr(t),e):e},createJSDocMemberName:Dr,updateJSDocMemberName:function(e,t,n){return e.left!==t||e.right!==n?ko(Dr(t,n),e):e},createJSDocLink:Nr,updateJSDocLink:function(e,t,n){return e.name!==t?ko(Nr(t,n),e):e},createJSDocLinkCode:Mr,updateJSDocLinkCode:function(e,t,n){return e.name!==t?ko(Mr(t,n),e):e},createJSDocLinkPlain:Lr,updateJSDocLinkPlain:function(e,t,n){return e.name!==t?ko(Lr(t,n),e):e},get createJSDocTypeTag(){return h(351)},get updateJSDocTypeTag(){return g(351)},get createJSDocReturnTag(){return h(349)},get updateJSDocReturnTag(){return g(349)},get createJSDocThisTag(){return h(350)},get updateJSDocThisTag(){return g(350)},get createJSDocAuthorTag(){return m(337)},get updateJSDocAuthorTag(){return _(337)},get createJSDocClassTag(){return m(339)},get updateJSDocClassTag(){return _(339)},get createJSDocPublicTag(){return m(340)},get updateJSDocPublicTag(){return _(340)},get createJSDocPrivateTag(){return m(341)},get updateJSDocPrivateTag(){return _(341)},get createJSDocProtectedTag(){return m(342)},get updateJSDocProtectedTag(){return _(342)},get createJSDocReadonlyTag(){return m(343)},get updateJSDocReadonlyTag(){return _(343)},get createJSDocOverrideTag(){return m(344)},get updateJSDocOverrideTag(){return _(344)},get createJSDocDeprecatedTag(){return m(338)},get updateJSDocDeprecatedTag(){return _(338)},get createJSDocThrowsTag(){return h(356)},get updateJSDocThrowsTag(){return g(356)},get createJSDocSatisfiesTag(){return h(357)},get updateJSDocSatisfiesTag(){return g(357)},createJSDocEnumTag:Or,updateJSDocEnumTag:function(e,t=hr(e),n,r){return e.tagName!==t||e.typeExpression!==n||e.comment!==r?ko(Or(t,n,r),e):e},createJSDocUnknownTag:wr,updateJSDocUnknownTag:function(e,t,n){return e.tagName!==t||e.comment!==n?ko(wr(t,n),e):e},createJSDocText:Fr,updateJSDocText:function(e,t){return e.text!==t?ko(Fr(t),e):e},createJSDocComment:Wr,updateJSDocComment:function(e,t,n){return e.comment!==t||e.tags!==n?ko(Wr(t,n),e):e},createJsxElement:zr,updateJsxElement:function(e,t,n,r){return e.openingElement!==t||e.children!==n||e.closingElement!==r?ko(zr(t,n,r),e):e},createJsxSelfClosingElement:Br,updateJsxSelfClosingElement:function(e,t,n,r){return e.tagName!==t||e.typeArguments!==n||e.attributes!==r?ko(Br(t,n,r),e):e},createJsxOpeningElement:Gr,updateJsxOpeningElement:function(e,t,n,r){return e.tagName!==t||e.typeArguments!==n||e.attributes!==r?ko(Gr(t,n,r),e):e},createJsxClosingElement:jr,updateJsxClosingElement:function(e,t){return e.tagName!==t?ko(jr(t),e):e},createJsxFragment:Vr,createJsxText:Ur,updateJsxText:function(e,t,n){return e.text!==t||e.containsOnlyTriviaWhiteSpaces!==n?ko(Ur(t,n),e):e},createJsxOpeningFragment:function(){const e=b(289);return e.transformFlags|=2,e},createJsxJsxClosingFragment:function(){const e=b(290);return e.transformFlags|=2,e},updateJsxFragment:function(e,t,n,r){return e.openingFragment!==t||e.children!==n||e.closingFragment!==r?ko(Vr(t,n,r),e):e},createJsxAttribute:Hr,updateJsxAttribute:function(e,t,n){return e.name!==t||e.initializer!==n?ko(Hr(t,n),e):e},createJsxAttributes:Kr,updateJsxAttributes:function(e,t){return e.properties!==t?ko(Kr(t),e):e},createJsxSpreadAttribute:qr,updateJsxSpreadAttribute:function(e,t){return e.expression!==t?ko(qr(t),e):e},createJsxExpression:Jr,updateJsxExpression:function(e,t){return e.expression!==t?ko(Jr(e.dotDotDotToken,t),e):e},createJsxNamespacedName:Xr,updateJsxNamespacedName:function(e,t,n){return e.namespace!==t||e.name!==n?ko(Xr(t,n),e):e},createCaseClause:$r,updateCaseClause:function(e,t,n){return e.expression!==t||e.statements!==n?ko($r(t,n),e):e},createDefaultClause:Yr,updateDefaultClause:function(e,t){return e.statements!==t?ko(Yr(t),e):e},createHeritageClause:Qr,updateHeritageClause:function(e,t){return e.types!==t?ko(Qr(e.token,t),e):e},createCatchClause:Zr,updateCatchClause:function(e,t,n){return e.variableDeclaration!==t||e.block!==n?ko(Zr(t,n),e):e},createPropertyAssignment:eo,updatePropertyAssignment:to,createShorthandPropertyAssignment:no,updateShorthandPropertyAssignment:function(e,t,n){return e.name!==t||e.objectAssignmentInitializer!==n?function(e,t){e!==t&&(e.modifiers=t.modifiers,e.questionToken=t.questionToken,e.exclamationToken=t.exclamationToken,e.equalsToken=t.equalsToken);return ko(e,t)}(no(t,n),e):e},createSpreadAssignment:ro,updateSpreadAssignment:function(e,t){return e.expression!==t?ko(ro(t),e):e},createEnumMember:oo,updateEnumMember:function(e,t,n){return e.name!==t||e.initializer!==n?ko(oo(t,n),e):e},createSourceFile:function(e,n,r){const o=t.createBaseSourceFileNode(312);return o.statements=v(e),o.endOfFileToken=n,o.flags|=r,o.text="",o.fileName="",o.path="",o.resolvedPath="",o.originalFileName="",o.languageVersion=0,o.languageVariant=0,o.scriptKind=0,o.isDeclarationFile=!1,o.hasNoDefaultLib=!1,o.transformFlags|=ZA(o.statements)|QA(o.endOfFileToken),o.locals=void 0,o.nextContainer=void 0,o.endFlowNode=void 0,o.nodeCount=0,o.identifierCount=0,o.symbolCount=0,o.parseDiagnostics=void 0,o.bindDiagnostics=void 0,o.bindSuggestionDiagnostics=void 0,o.lineMap=void 0,o.externalModuleIndicator=void 0,o.setExternalModuleIndicator=void 0,o.pragmas=void 0,o.checkJsDirective=void 0,o.referencedFiles=void 0,o.typeReferenceDirectives=void 0,o.libReferenceDirectives=void 0,o.amdDependencies=void 0,o.commentDirectives=void 0,o.identifiers=void 0,o.packageJsonLocations=void 0,o.packageJsonScope=void 0,o.imports=void 0,o.moduleAugmentations=void 0,o.ambientModuleNames=void 0,o.classifiableNames=void 0,o.impliedNodeFormat=void 0,o},updateSourceFile:function(e,t,n=e.isDeclarationFile,r=e.referencedFiles,o=e.typeReferenceDirectives,i=e.hasNoDefaultLib,a=e.libReferenceDirectives){return e.statements!==t||e.isDeclarationFile!==n||e.referencedFiles!==r||e.typeReferenceDirectives!==o||e.hasNoDefaultLib!==i||e.libReferenceDirectives!==a?ko(function(e,t,n,r,o,i,a){const s=ao(e);return s.statements=v(t),s.isDeclarationFile=n,s.referencedFiles=r,s.typeReferenceDirectives=o,s.hasNoDefaultLib=i,s.libReferenceDirectives=a,s.transformFlags=ZA(s.statements)|QA(s.endOfFileToken),s}(e,t,n,r,o,i,a),e):e},createRedirectedSourceFile:io,createBundle:so,updateBundle:function(e,t,n=o){return e.sourceFiles!==t||e.prepends!==n?ko(so(t,n),e):e},createUnparsedSource:function(e,t,n){const r=b(314);return r.prologues=e,r.syntheticReferences=t,r.texts=n,r.fileName="",r.text="",r.referencedFiles=o,r.libReferenceDirectives=o,r.getLineAndCharacterOfPosition=e=>_s(r,e),r},createUnparsedPrologue:function(e){return lo(307,e)},createUnparsedPrepend:function(e,t){const n=lo(308,e);return n.texts=t,n},createUnparsedTextLike:function(e,t){return lo(t?310:309,e)},createUnparsedSyntheticReference:function(e){const t=b(311);return t.data=e.data,t.section=e,t},createInputFiles:function(){const e=b(315);return e.javascriptText="",e.declarationText="",e},createSyntheticExpression:function(e,t=!1,n){const r=b(237);return r.type=e,r.isSpread=t,r.tupleNameSource=n,r},createSyntaxList:function(e){const t=b(358);return t._children=e,t},createNotEmittedStatement:function(e){const t=b(359);return t.original=e,yk(t,e),t},createPartiallyEmittedExpression:co,updatePartiallyEmittedExpression:uo,createCommaListExpression:fo,updateCommaListExpression:function(e,t){return e.elements!==t?ko(fo(t),e):e},createSyntheticReferenceExpression:mo,updateSyntheticReferenceExpression:function(e,t,n){return e.expression!==t||e.thisArg!==n?ko(mo(t,n),e):e},cloneNode:_o,get createComma(){return a(28)},get createAssignment(){return a(64)},get createLogicalOr(){return a(57)},get createLogicalAnd(){return a(56)},get createBitwiseOr(){return a(52)},get createBitwiseXor(){return a(53)},get createBitwiseAnd(){return a(51)},get createStrictEquality(){return a(37)},get createStrictInequality(){return a(38)},get createEquality(){return a(35)},get createInequality(){return a(36)},get createLessThan(){return a(30)},get createLessThanEquals(){return a(33)},get createGreaterThan(){return a(32)},get createGreaterThanEquals(){return a(34)},get createLeftShift(){return a(48)},get createRightShift(){return a(49)},get createUnsignedRightShift(){return a(50)},get createAdd(){return a(40)},get createSubtract(){return a(41)},get createMultiply(){return a(42)},get createDivide(){return a(44)},get createModulo(){return a(45)},get createExponent(){return a(43)},get createPrefixPlus(){return s(40)},get createPrefixMinus(){return s(41)},get createPrefixIncrement(){return s(46)},get createPrefixDecrement(){return s(47)},get createBitwiseNot(){return s(55)},get createLogicalNot(){return s(54)},get createPostfixIncrement(){return l(46)},get createPostfixDecrement(){return l(47)},createImmediatelyInvokedFunctionExpression:function(e,t,n){return ct(bt(void 0,void 0,void 0,void 0,t?[t]:[],void 0,rn(e,!0)),void 0,n?[n]:[])},createImmediatelyInvokedArrowFunction:function(e,t,n){return ct(Tt(void 0,void 0,t?[t]:[],void 0,void 0,rn(e,!0)),void 0,n?[n]:[])},createVoidZero:ho,createExportDefault:function(e){return rr(void 0,!1,e)},createExternalModuleExport:function(e){return ir(void 0,!1,sr([lr(!1,void 0,e)]))},createTypeCheck:function(e,t){return"null"===t?y.createStrictEquality(e,B()):"undefined"===t?y.createStrictEquality(e,ho()):y.createStrictEquality(Rt(e),R(t))},createIsNotTypeCheck:function(e,t){return"null"===t?y.createStrictInequality(e,B()):"undefined"===t?y.createStrictInequality(e,ho()):y.createStrictInequality(Rt(e),R(t))},createMethodCall:go,createGlobalMethodCall:yo,createFunctionBindCall:function(e,t,n){return go(e,"bind",[t,...n])},createFunctionCallCall:function(e,t,n){return go(e,"call",[t,...n])},createFunctionApplyCall:function(e,t,n){return go(e,"apply",[t,n])},createArraySliceCall:function(e,t){return go(e,"slice",void 0===t?[]:[No(t)])},createArrayConcatCall:function(e,t){return go(e,"concat",t)},createObjectDefinePropertyCall:function(e,t,n){return yo("Object","defineProperty",[e,No(t),n])},createObjectGetOwnPropertyDescriptorCall:function(e,t){return yo("Object","getOwnPropertyDescriptor",[e,No(t)])},createReflectGetCall:function(e,t,n){return yo("Reflect","get",n?[e,t,n]:[e,t])},createReflectSetCall:function(e,t,n,r){return yo("Reflect","set",r?[e,t,n,r]:[e,t,n])},createPropertyDescriptor:function(e,t){const n=[];vo(n,"enumerable",No(e.enumerable)),vo(n,"configurable",No(e.configurable));let r=vo(n,"writable",No(e.writable));r=vo(n,"value",e.value)||r;let o=vo(n,"get",e.get);return o=vo(n,"set",e.set)||o,In.assert(!(r&&o),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),Ze(n,!t)},createCallBinding:function(e,t,n,o=!1){const i=EL(e,15);let a,s;Ih(i)?(a=z(),s=i):mC(i)?(a=z(),s=void 0!==n&&n<2?yk(L("_super"),i):i):8192&Rm(i)?(a=ho(),s=r().parenthesizeLeftSideOfAccess(i,!1)):lD(i)?bo(i.expression,o)?(a=k(t),s=tt(yk(y.createAssignment(a,i.expression),i.expression),i.name),yk(s,i)):(a=i.expression,s=i):cD(i)?bo(i.expression,o)?(a=k(t),s=it(yk(y.createAssignment(a,i.expression),i.expression),i.argumentExpression),yk(s,i)):(a=i.expression,s=i):(a=ho(),s=r().parenthesizeLeftSideOfAccess(e,!1));return{target:s,thisArg:a}},createAssignmentTargetWrapper:function(e,t){return tt(gt(Ze([fe(void 0,"value",[X(void 0,void 0,e,void 0,void 0,void 0)],rn([ln(t)]))])),"value")},inlineExpressions:function(e){return e.length>10?fo(e):Ue(e,y.createComma)},getInternalName:function(e,t,n){return Eo(e,t,n,98304)},getLocalName:function(e,t,n,r){return Eo(e,t,n,32768,r)},getExportName:So,getDeclarationName:function(e,t,n){return Eo(e,t,n)},getNamespaceMemberName:To,getExternalModuleOrNamespaceExportName:function(e,t,n,r){if(e&&Gb(t,32))return To(e,Eo(t),n,r);return So(t,n,r)},restoreOuterExpressions:function e(t,n,r=15){if(t&&bL(t,r)&&(o=t,!(mD(o)&&Sv(o)&&Sv(gI(o))&&Sv(TI(o)))||se(AI(o))||se(CI(o))))return function(e,t){switch(e.kind){case 217:return yt(e,t);case 216:return ht(e,e.type,t);case 234:return Jt(e,t,e.type);case 238:return Qt(e,t,e.type);case 235:return $t(e,t);case 360:return uo(e,t)}}(t,e(t.expression,n));var o;return n},restoreEnclosingLabel:function e(t,n,r){if(!n)return t;const o=Sn(n,n.label,tN(n.statement)?e(t,n.statement):t);r&&r(n);return o},createUseStrictPrologue:xo,copyPrologue:function(e,t,n,r){const o=Ao(e,t,0,n);return Io(e,t,o,r)},copyStandardPrologue:Ao,copyCustomPrologue:Io,ensureUseStrict:function(e){if(!mL(e))return yk(v([xo(),...e]),e);return e},liftToBlock:function(e){return In.assert(M(e,Ou),"Cannot lift nodes to a Block."),We(e)||rn(e)},mergeLexicalEnvironment:function(e,t){if(!se(t))return e;const n=Ro(e,w_,0),r=Ro(e,F_,n),o=Ro(e,z_,r),i=Ro(t,w_,0),a=Ro(t,F_,i),s=Ro(t,z_,a),l=Ro(t,O_,s);In.assert(l===t.length,"Expected declarations to be valid standard or custom prologues");const c=Qc(e)?e.slice():e;l>s&&c.splice(o,0,...t.slice(s,l));s>a&&c.splice(r,0,...t.slice(a,s));a>i&&c.splice(n,0,...t.slice(i,a));if(i>0)if(0===n)c.splice(0,0,...t.slice(0,i));else{const r=new Map;for(let t=0;t<n;t++){const n=e[t];r.set(n.expression.text,!0)}for(let e=i-1;e>=0;e--){const n=t[e];r.has(n.expression.text)||c.unshift(n)}}if(Qc(e))return yk(v(c,e.hasTrailingComma),e);return e},replaceModifiers:function(e,t){let n;n="number"===typeof t?U(t):t;return vC(e)?J(e,n,e.name,e.constraint,e.default):bC(e)?$(e,n,e.dotDotDotToken,e.name,e.questionToken,e.type,e.initializer):OC(e)?Ie(e,n,e.typeParameters,e.parameters,e.type):SC(e)?ee(e,n,e.name,e.questionToken,e.type):TC(e)?ne(e,n,e.name,e.questionToken??e.exclamationToken,e.type,e.initializer):xC(e)?oe(e,n,e.name,e.questionToken,e.typeParameters,e.parameters,e.type):AC(e)?ae(e,n,e.asteriskToken,e.name,e.questionToken,e.typeParameters,e.parameters,e.type,e.body):RC(e)?de(e,n,e.parameters,e.body):CC(e)?pe(e,n,e.name,e.parameters,e.type,e.body):DC(e)?me(e,n,e.name,e.parameters,e.body):LC(e)?ye(e,n,e.parameters,e.type):_D(e)?Et(e,n,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body):hD(e)?At(e,n,e.typeParameters,e.parameters,e.type,e.equalsGreaterThanToken,e.body):CD(e)?Ht(e,n,e.name,e.typeParameters,e.heritageClauses,e.members):GD(e)?an(e,n,e.declarationList):sN(e)?Dn(e,n,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body):lN(e)?Mn(e,n,e.name,e.typeParameters,e.heritageClauses,e.members):cN(e)?kn(e,n,e.name,e.typeParameters,e.heritageClauses,e.members):dN(e)?wn(e,n,e.name,e.typeParameters,e.type):uN(e)?Fn(e,n,e.name,e.members):pN(e)?zn(e,n,e.name,e.body):hN(e)?Un(e,n,e.isTypeOnly,e.name,e.moduleReference):gN(e)?Kn(e,n,e.importClause,e.moduleSpecifier,e.attributes):CN(e)?or(e,n,e.expression):DN(e)?ar(e,n,e.isTypeOnly,e.exportClause,e.moduleSpecifier,e.attributes):In.assertNever(e)},replaceDecoratorsAndModifiers:function(e,t){return bC(e)?$(e,t,e.dotDotDotToken,e.name,e.questionToken,e.type,e.initializer):TC(e)?ne(e,t,e.name,e.questionToken??e.exclamationToken,e.type,e.initializer):AC(e)?ae(e,t,e.asteriskToken,e.name,e.questionToken,e.typeParameters,e.parameters,e.type,e.body):CC(e)?pe(e,t,e.name,e.parameters,e.type,e.body):DC(e)?me(e,t,e.name,e.parameters,e.body):CD(e)?Ht(e,t,e.name,e.typeParameters,e.heritageClauses,e.members):lN(e)?Mn(e,t,e.name,e.typeParameters,e.heritageClauses,e.members):In.assertNever(e)},replacePropertyName:function(e,t){switch(e.kind){case 177:return pe(e,e.modifiers,t,e.parameters,e.type,e.body);case 178:return me(e,e.modifiers,t,e.parameters,e.body);case 174:return ae(e,e.modifiers,e.asteriskToken,t,e.questionToken,e.typeParameters,e.parameters,e.type,e.body);case 173:return oe(e,e.modifiers,t,e.questionToken,e.typeParameters,e.parameters,e.type);case 172:return ne(e,e.modifiers,t,e.questionToken??e.exclamationToken,e.type,e.initializer);case 171:return ee(e,e.modifiers,t,e.questionToken,e.type);case 303:return to(e,t,e.initializer)}}};return x(BA,(e=>e(y))),y;function v(e,t){if(void 0===e||e===o)e=[];else if(Qc(e)){if(void 0===t||e.hasTrailingComma===t)return void 0===e.transformFlags&&eI(e),In.attachNodeArrayDebugInfo(e),e;const n=e.slice();return n.pos=e.pos,n.end=e.end,n.hasTrailingComma=t,n.transformFlags=e.transformFlags,In.attachNodeArrayDebugInfo(n),n}const n=e.length,r=n>=1&&n<=4?e.slice():e;return r.pos=-1,r.end=-1,r.hasTrailingComma=!!t,r.transformFlags=0,eI(r),In.attachNodeArrayDebugInfo(r),r}function b(e){return t.createBaseNode(e)}function E(e){const t=b(e);return t.symbol=void 0,t.localSymbol=void 0,t}function S(e,t){return e!==t&&(e.typeArguments=t.typeArguments),ko(e,t)}function T(e,t=0){const n="number"===typeof e?e+"":e;In.assert(45!==n.charCodeAt(0),"Negative numbers should be created in combination with createPrefixUnaryExpression");const r=E(9);return r.text=n,r.numericLiteralFlags=t,384&t&&(r.transformFlags|=1024),r}function A(e){const t=F(10);return t.text="string"===typeof e?e:Mx(e)+"n",t.transformFlags|=32,t}function I(e,t){const n=E(11);return n.text=e,n.singleQuote=t,n}function R(e,t,n){const r=I(e,t);return r.hasExtendedUnicodeEscape=n,n&&(r.transformFlags|=1024),r}function C(e){const t=F(14);return t.text=e,t}function D(e){const n=t.createBaseIdentifierNode(80);return n.escapedText=e,n.jsDoc=void 0,n.flowNode=void 0,n.symbol=void 0,n}function N(e,t,n,r){const o=D(Ml(e));return KI(o,{flags:t,id:WA,prefix:n,suffix:r}),WA++,o}function L(e,t,n){void 0===t&&e&&(t=ss(e)),80===t&&(t=void 0);const r=D(Ml(e));return n&&(r.flags|=256),"await"===r.escapedText&&(r.transformFlags|=67108864),256&r.flags&&(r.transformFlags|=1024),r}function k(e,t,n,r){let o=1;t&&(o|=8);const i=N("",o,n,r);return e&&e(i),i}function P(e,t=0,n,r){In.assert(!(7&t),"Argument out of range: flags");(n||r)&&(t|=16);const o=N(e?Nc(e)?ck(!1,n,e,r,kl):`generated@${Hz(e)}`:"",4|t,n,r);return o.original=e,o}function w(e){const n=t.createBasePrivateIdentifierNode(81);return n.escapedText=e,n.transformFlags|=16777216,n}function O(e,t,n,r){const o=w(Ml(e));return KI(o,{flags:t,id:WA,prefix:n,suffix:r}),WA++,o}function F(e){return t.createBaseTokenNode(e)}function W(e){In.assert(e>=0&&e<=165,"Invalid token"),In.assert(e<=15||e>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),In.assert(e<=9||e>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),In.assert(80!==e,"Invalid token. Use 'createIdentifier' to create identifiers");const t=F(e);let n=0;switch(e){case 134:n=384;break;case 160:n=4;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 163:case 146:case 151:case 103:case 147:case 164:case 154:case 136:case 155:case 116:case 159:case 157:n=1;break;case 108:n=134218752,t.flowNode=void 0;break;case 126:n=1024;break;case 129:n=16777216;break;case 110:n=16384,t.flowNode=void 0}return n&&(t.transformFlags|=n),t}function z(){return W(110)}function B(){return W(106)}function G(){return W(112)}function j(){return W(97)}function V(e){return W(e)}function U(e){const t=[];return 32&e&&t.push(V(95)),128&e&&t.push(V(138)),2048&e&&t.push(V(90)),4096&e&&t.push(V(87)),1&e&&t.push(V(125)),2&e&&t.push(V(123)),4&e&&t.push(V(124)),64&e&&t.push(V(128)),256&e&&t.push(V(126)),16&e&&t.push(V(164)),8&e&&t.push(V(148)),512&e&&t.push(V(129)),1024&e&&t.push(V(134)),8192&e&&t.push(V(103)),16384&e&&t.push(V(147)),t.length?t:void 0}function H(e,t){const n=b(166);return n.left=e,n.right=Do(t),n.transformFlags|=QA(n.left)|YA(n.right),n.flowNode=void 0,n}function K(e){const t=b(167);return t.expression=r().parenthesizeExpressionOfComputedPropertyName(e),t.transformFlags|=132096|QA(t.expression),t}function q(e,t,n,r){const o=E(168);return o.modifiers=Co(e),o.name=Do(t),o.constraint=n,o.default=r,o.transformFlags=1,o.expression=void 0,o.jsDoc=void 0,o}function J(e,t,n,r,o){return e.modifiers!==t||e.name!==n||e.constraint!==r||e.default!==o?ko(q(t,n,r,o),e):e}function X(e,t,n,r,o,i){const a=E(169);return a.modifiers=Co(e),a.dotDotDotToken=t,a.name=Do(n),a.questionToken=r,a.type=o,a.initializer=Mo(i),bb(a.name)?a.transformFlags=1:a.transformFlags=ZA(a.modifiers)|QA(a.dotDotDotToken)|$A(a.name)|QA(a.questionToken)|QA(a.initializer)|(a.questionToken??a.type?1:0)|(a.dotDotDotToken??a.initializer?1024:0)|(31&aE(a.modifiers)?8192:0),a.jsDoc=void 0,a}function $(e,t,n,r,o,i,a){return e.modifiers!==t||e.dotDotDotToken!==n||e.name!==r||e.questionToken!==o||e.type!==i||e.initializer!==a?ko(X(t,n,r,o,i,a),e):e}function Q(e){const t=b(170);return t.expression=r().parenthesizeLeftSideOfAccess(e,!1),t.transformFlags|=33562625|QA(t.expression),t}function Z(e,t,n,r){const o=E(171);return o.modifiers=Co(e),o.name=Do(t),o.type=r,o.questionToken=n,o.transformFlags=1,o.initializer=void 0,o.jsDoc=void 0,o}function ee(e,t,n,r,o){return e.modifiers!==t||e.name!==n||e.questionToken!==r||e.type!==o?function(e,t){e!==t&&(e.initializer=t.initializer);return ko(e,t)}(Z(t,n,r,o),e):e}function te(e,t,n,r,o){const i=E(172);i.modifiers=Co(e),i.name=Do(t),i.questionToken=n&&QR(n)?n:void 0,i.exclamationToken=n&&YR(n)?n:void 0,i.type=r,i.initializer=Mo(o);const a=33554432&i.flags||128&aE(i.modifiers);return i.transformFlags=ZA(i.modifiers)|$A(i.name)|QA(i.initializer)|(a||i.questionToken||i.exclamationToken||i.type?1:0)|(yC(i.name)||256&aE(i.modifiers)&&i.initializer?8192:0)|16777216,i.jsDoc=void 0,i}function ne(e,t,n,r,o,i){return e.modifiers!==t||e.name!==n||e.questionToken!==(void 0!==r&&QR(r)?r:void 0)||e.exclamationToken!==(void 0!==r&&YR(r)?r:void 0)||e.type!==o||e.initializer!==i?ko(te(t,n,r,o,i),e):e}function re(e,t,n,r,o,i){const a=E(173);return a.modifiers=Co(e),a.name=Do(t),a.questionToken=n,a.typeParameters=Co(r),a.parameters=Co(o),a.type=i,a.transformFlags=1,a.jsDoc=void 0,a.locals=void 0,a.nextContainer=void 0,a.typeArguments=void 0,a}function oe(e,t,n,r,o,i,a){return e.modifiers!==t||e.name!==n||e.questionToken!==r||e.typeParameters!==o||e.parameters!==i||e.type!==a?S(re(t,n,r,o,i,a),e):e}function ie(e,t,n,r,o,i,a,s){const l=E(174);if(l.modifiers=Co(e),l.asteriskToken=t,l.name=Do(n),l.questionToken=r,l.exclamationToken=void 0,l.typeParameters=Co(o),l.parameters=v(i),l.type=a,l.body=s,l.body){const e=1024&aE(l.modifiers),t=!!l.asteriskToken,n=e&&t;l.transformFlags=ZA(l.modifiers)|QA(l.asteriskToken)|$A(l.name)|QA(l.questionToken)|ZA(l.typeParameters)|ZA(l.parameters)|QA(l.type)|-67108865&QA(l.body)|(n?128:e?256:t?2048:0)|(l.questionToken||l.typeParameters||l.type?1:0)|1024}else l.transformFlags=1;return l.typeArguments=void 0,l.jsDoc=void 0,l.locals=void 0,l.nextContainer=void 0,l.flowNode=void 0,l.endFlowNode=void 0,l.returnFlowNode=void 0,l}function ae(e,t,n,r,o,i,a,s,l){return e.modifiers!==t||e.asteriskToken!==n||e.name!==r||e.questionToken!==o||e.typeParameters!==i||e.parameters!==a||e.type!==s||e.body!==l?function(e,t){e!==t&&(e.exclamationToken=t.exclamationToken);return ko(e,t)}(ie(t,n,r,o,i,a,s,l),e):e}function le(e){const t=E(175);return t.body=e,t.transformFlags=16777216|QA(e),t.modifiers=void 0,t.jsDoc=void 0,t.locals=void 0,t.nextContainer=void 0,t.endFlowNode=void 0,t.returnFlowNode=void 0,t}function ce(e,t,n){const r=E(176);return r.modifiers=Co(e),r.parameters=v(t),r.body=n,r.transformFlags=ZA(r.modifiers)|ZA(r.parameters)|-67108865&QA(r.body)|1024,r.typeParameters=void 0,r.type=void 0,r.typeArguments=void 0,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.endFlowNode=void 0,r.returnFlowNode=void 0,r}function de(e,t,n,r){return e.modifiers!==t||e.parameters!==n||e.body!==r?function(e,t){e!==t&&(e.typeParameters=t.typeParameters,e.type=t.type);return S(e,t)}(ce(t,n,r),e):e}function ue(e,t,n,r,o){const i=E(177);return i.modifiers=Co(e),i.name=Do(t),i.parameters=v(n),i.type=r,i.body=o,i.body?i.transformFlags=ZA(i.modifiers)|$A(i.name)|ZA(i.parameters)|QA(i.type)|-67108865&QA(i.body)|(i.type?1:0):i.transformFlags=1,i.typeArguments=void 0,i.typeParameters=void 0,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.flowNode=void 0,i.endFlowNode=void 0,i.returnFlowNode=void 0,i}function pe(e,t,n,r,o,i){return e.modifiers!==t||e.name!==n||e.parameters!==r||e.type!==o||e.body!==i?function(e,t){e!==t&&(e.typeParameters=t.typeParameters);return S(e,t)}(ue(t,n,r,o,i),e):e}function fe(e,t,n,r){const o=E(178);return o.modifiers=Co(e),o.name=Do(t),o.parameters=v(n),o.body=r,o.body?o.transformFlags=ZA(o.modifiers)|$A(o.name)|ZA(o.parameters)|-67108865&QA(o.body)|(o.type?1:0):o.transformFlags=1,o.typeArguments=void 0,o.typeParameters=void 0,o.type=void 0,o.jsDoc=void 0,o.locals=void 0,o.nextContainer=void 0,o.flowNode=void 0,o.endFlowNode=void 0,o.returnFlowNode=void 0,o}function me(e,t,n,r,o){return e.modifiers!==t||e.name!==n||e.parameters!==r||e.body!==o?function(e,t){e!==t&&(e.typeParameters=t.typeParameters,e.type=t.type);return S(e,t)}(fe(t,n,r,o),e):e}function _e(e,t,n){const r=E(179);return r.typeParameters=Co(e),r.parameters=Co(t),r.type=n,r.transformFlags=1,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function he(e,t,n){const r=E(180);return r.typeParameters=Co(e),r.parameters=Co(t),r.type=n,r.transformFlags=1,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function ge(e,t,n){const r=E(181);return r.modifiers=Co(e),r.parameters=Co(t),r.type=n,r.transformFlags=1,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function ye(e,t,n,r){return e.parameters!==n||e.type!==r||e.modifiers!==t?S(ge(t,n,r),e):e}function ve(e,t){const n=b(204);return n.type=e,n.literal=t,n.transformFlags=1,n}function be(e,t,n){const r=b(182);return r.assertsModifier=e,r.parameterName=Do(t),r.type=n,r.transformFlags=1,r}function Se(e,t){const n=b(183);return n.typeName=Do(e),n.typeArguments=t&&r().parenthesizeTypeArguments(v(t)),n.transformFlags=1,n}function Te(e,t,n){const r=E(184);return r.typeParameters=Co(e),r.parameters=Co(t),r.type=n,r.transformFlags=1,r.modifiers=void 0,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function xe(...e){return 4===e.length?Ae(...e):3===e.length?function(e,t,n){return Ae(void 0,e,t,n)}(...e):In.fail("Incorrect number of arguments specified.")}function Ae(e,t,n,r){const o=E(185);return o.modifiers=Co(e),o.typeParameters=Co(t),o.parameters=Co(n),o.type=r,o.transformFlags=1,o.jsDoc=void 0,o.locals=void 0,o.nextContainer=void 0,o.typeArguments=void 0,o}function Ie(e,t,n,r,o){return e.modifiers!==t||e.typeParameters!==n||e.parameters!==r||e.type!==o?S(xe(t,n,r,o),e):e}function Re(e,t){const n=b(186);return n.exprName=e,n.typeArguments=t&&r().parenthesizeTypeArguments(t),n.transformFlags=1,n}function Ce(e){const t=E(187);return t.members=v(e),t.transformFlags=1,t}function De(e){const t=b(188);return t.elementType=r().parenthesizeNonArrayTypeOfPostfixType(e),t.transformFlags=1,t}function Ne(e){const t=b(189);return t.elements=v(r().parenthesizeElementTypesOfTupleType(e)),t.transformFlags=1,t}function Me(e,t,n,r){const o=E(202);return o.dotDotDotToken=e,o.name=t,o.questionToken=n,o.type=r,o.transformFlags=1,o.jsDoc=void 0,o}function Le(e){const t=b(190);return t.type=r().parenthesizeTypeOfOptionalType(e),t.transformFlags=1,t}function ke(e){const t=b(191);return t.type=e,t.transformFlags=1,t}function Pe(e,t,n){const r=b(e);return r.types=y.createNodeArray(n(t)),r.transformFlags=1,r}function we(e,t,n){return e.types!==t?ko(Pe(e.kind,t,n),e):e}function Fe(e,t,n,o){const i=b(194);return i.checkType=r().parenthesizeCheckTypeOfConditionalType(e),i.extendsType=r().parenthesizeExtendsTypeOfConditionalType(t),i.trueType=n,i.falseType=o,i.transformFlags=1,i.locals=void 0,i.nextContainer=void 0,i}function ze(e){const t=b(195);return t.typeParameter=e,t.transformFlags=1,t}function Be(e,t){const n=b(203);return n.head=e,n.templateSpans=v(t),n.transformFlags=1,n}function Ge(e,t,n,o,i=!1){const a=b(205);return a.argument=e,a.attributes=t,a.assertions&&a.assertions.assertClause&&a.attributes&&(a.assertions.assertClause=a.attributes),a.qualifier=n,a.typeArguments=o&&r().parenthesizeTypeArguments(o),a.isTypeOf=i,a.transformFlags=1,a}function je(e){const t=b(196);return t.type=e,t.transformFlags=1,t}function Ve(e,t){const n=b(198);return n.operator=e,n.type=148===e?r().parenthesizeOperandOfReadonlyTypeOperator(t):r().parenthesizeOperandOfTypeOperator(t),n.transformFlags=1,n}function Ke(e,t){const n=b(199);return n.objectType=r().parenthesizeNonArrayTypeOfPostfixType(e),n.indexType=t,n.transformFlags=1,n}function qe(e,t,n,r,o,i){const a=E(200);return a.readonlyToken=e,a.typeParameter=t,a.nameType=n,a.questionToken=r,a.type=o,a.members=i&&v(i),a.transformFlags=1,a.locals=void 0,a.nextContainer=void 0,a}function Je(e){const t=b(201);return t.literal=e,t.transformFlags=1,t}function Xe(e){const t=b(206);return t.elements=v(e),t.transformFlags|=525312|ZA(t.elements),32768&t.transformFlags&&(t.transformFlags|=65664),t}function $e(e){const t=b(207);return t.elements=v(e),t.transformFlags|=525312|ZA(t.elements),t}function Ye(e,t,n,r){const o=E(208);return o.dotDotDotToken=e,o.propertyName=Do(t),o.name=Do(n),o.initializer=Mo(r),o.transformFlags|=QA(o.dotDotDotToken)|$A(o.propertyName)|$A(o.name)|QA(o.initializer)|(o.dotDotDotToken?32768:0)|1024,o.flowNode=void 0,o}function Qe(e,t){const n=b(209),o=e&&Oe(e),i=v(e,!(!o||!DD(o))||void 0);return n.elements=r().parenthesizeExpressionsOfCommaDelimitedList(i),n.multiLine=t,n.transformFlags|=ZA(n.elements),n}function Ze(e,t){const n=E(210);return n.properties=v(e),n.multiLine=t,n.transformFlags|=ZA(n.properties),n.jsDoc=void 0,n}function et(e,t,n){const r=E(211);return r.expression=e,r.questionDotToken=t,r.name=n,r.transformFlags=QA(r.expression)|QA(r.questionDotToken)|(nC(r.name)?YA(r.name):536870912|QA(r.name)),r.jsDoc=void 0,r.flowNode=void 0,r}function tt(e,t){const n=et(r().parenthesizeLeftSideOfAccess(e,!1),void 0,Do(t));return mC(e)&&(n.transformFlags|=384),n}function nt(e,t,n){const o=et(r().parenthesizeLeftSideOfAccess(e,!0),t,Do(n));return o.flags|=64,o.transformFlags|=32,o}function rt(e,t,n,r){return In.assert(!!(64&e.flags),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),e.expression!==t||e.questionDotToken!==n||e.name!==r?ko(nt(t,n,r),e):e}function ot(e,t,n){const r=E(212);return r.expression=e,r.questionDotToken=t,r.argumentExpression=n,r.transformFlags|=QA(r.expression)|QA(r.questionDotToken)|QA(r.argumentExpression),r.jsDoc=void 0,r.flowNode=void 0,r}function it(e,t){const n=ot(r().parenthesizeLeftSideOfAccess(e,!1),void 0,No(t));return mC(e)&&(n.transformFlags|=384),n}function at(e,t,n){const o=ot(r().parenthesizeLeftSideOfAccess(e,!0),t,No(n));return o.flags|=64,o.transformFlags|=32,o}function st(e,t,n,r){return In.assert(!!(64&e.flags),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),e.expression!==t||e.questionDotToken!==n||e.argumentExpression!==r?ko(at(t,n,r),e):e}function lt(e,t,n,r){const o=E(213);return o.expression=e,o.questionDotToken=t,o.typeArguments=n,o.arguments=r,o.transformFlags|=QA(o.expression)|QA(o.questionDotToken)|ZA(o.typeArguments)|ZA(o.arguments),o.typeArguments&&(o.transformFlags|=1),Ih(o.expression)&&(o.transformFlags|=16384),o}function ct(e,t,n){const o=lt(r().parenthesizeLeftSideOfAccess(e,!1),void 0,Co(t),r().parenthesizeExpressionsOfCommaDelimitedList(v(n)));return _C(o.expression)&&(o.transformFlags|=8388608),o}function dt(e,t,n,o){const i=lt(r().parenthesizeLeftSideOfAccess(e,!0),t,Co(n),r().parenthesizeExpressionsOfCommaDelimitedList(v(o)));return i.flags|=64,i.transformFlags|=32,i}function ut(e,t,n,r,o){return In.assert(!!(64&e.flags),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),e.expression!==t||e.questionDotToken!==n||e.typeArguments!==r||e.arguments!==o?ko(dt(t,n,r,o),e):e}function pt(e,t,n){const o=E(214);return o.expression=r().parenthesizeExpressionOfNew(e),o.typeArguments=Co(t),o.arguments=n?r().parenthesizeExpressionsOfCommaDelimitedList(n):void 0,o.transformFlags|=QA(o.expression)|ZA(o.typeArguments)|ZA(o.arguments)|32,o.typeArguments&&(o.transformFlags|=1),o}function ft(e,t,n){const o=b(215);return o.tag=r().parenthesizeLeftSideOfAccess(e,!1),o.typeArguments=Co(t),o.template=n,o.transformFlags|=QA(o.tag)|ZA(o.typeArguments)|QA(o.template)|1024,o.typeArguments&&(o.transformFlags|=1),Pv(o.template)&&(o.transformFlags|=128),o}function _t(e,t){const n=b(216);return n.expression=r().parenthesizeOperandOfPrefixUnary(t),n.type=e,n.transformFlags|=QA(n.expression)|QA(n.type)|1,n}function ht(e,t,n){return e.type!==t||e.expression!==n?ko(_t(t,n),e):e}function gt(e){const t=b(217);return t.expression=e,t.transformFlags=QA(t.expression),t.jsDoc=void 0,t}function yt(e,t){return e.expression!==t?ko(gt(t),e):e}function bt(e,t,n,r,o,i,a){const s=E(218);s.modifiers=Co(e),s.asteriskToken=t,s.name=Do(n),s.typeParameters=Co(r),s.parameters=v(o),s.type=i,s.body=a;const l=1024&aE(s.modifiers),c=!!s.asteriskToken,d=l&&c;return s.transformFlags=ZA(s.modifiers)|QA(s.asteriskToken)|$A(s.name)|ZA(s.typeParameters)|ZA(s.parameters)|QA(s.type)|-67108865&QA(s.body)|(d?128:l?256:c?2048:0)|(s.typeParameters||s.type?1:0)|4194304,s.typeArguments=void 0,s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.flowNode=void 0,s.endFlowNode=void 0,s.returnFlowNode=void 0,s}function Et(e,t,n,r,o,i,a,s){return e.name!==r||e.modifiers!==t||e.asteriskToken!==n||e.typeParameters!==o||e.parameters!==i||e.type!==a||e.body!==s?S(bt(t,n,r,o,i,a,s),e):e}function Tt(e,t,n,o,i,a){const s=E(219);s.modifiers=Co(e),s.typeParameters=Co(t),s.parameters=v(n),s.type=o,s.equalsGreaterThanToken=i??W(39),s.body=r().parenthesizeConciseBodyOfArrowFunction(a);const l=1024&aE(s.modifiers);return s.transformFlags=ZA(s.modifiers)|ZA(s.typeParameters)|ZA(s.parameters)|QA(s.type)|QA(s.equalsGreaterThanToken)|-67108865&QA(s.body)|(s.typeParameters||s.type?1:0)|(l?16640:0)|1024,s.typeArguments=void 0,s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.flowNode=void 0,s.endFlowNode=void 0,s.returnFlowNode=void 0,s}function At(e,t,n,r,o,i,a){return e.modifiers!==t||e.typeParameters!==n||e.parameters!==r||e.type!==o||e.equalsGreaterThanToken!==i||e.body!==a?S(Tt(t,n,r,o,i,a),e):e}function It(e){const t=b(220);return t.expression=r().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=QA(t.expression),t}function Rt(e){const t=b(221);return t.expression=r().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=QA(t.expression),t}function Nt(e){const t=b(222);return t.expression=r().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=QA(t.expression),t}function Mt(e){const t=b(223);return t.expression=r().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=2097536|QA(t.expression),t}function Lt(e,t){const n=b(224);return n.operator=e,n.operand=r().parenthesizeOperandOfPrefixUnary(t),n.transformFlags|=QA(n.operand),46!==e&&47!==e||!nC(n.operand)||ud(n.operand)||uL(n.operand)||(n.transformFlags|=268435456),n}function kt(e,t){const n=b(225);return n.operator=t,n.operand=r().parenthesizeOperandOfPostfixUnary(e),n.transformFlags|=QA(n.operand),!nC(n.operand)||ud(n.operand)||uL(n.operand)||(n.transformFlags|=268435456),n}function Pt(e,t,n){const o=E(226),i="number"===typeof(a=t)?W(a):a;var a;const s=i.kind;return o.left=r().parenthesizeLeftSideOfBinary(s,e),o.operatorToken=i,o.right=r().parenthesizeRightSideOfBinary(s,o.left,n),o.transformFlags|=QA(o.left)|QA(o.operatorToken)|QA(o.right),61===s?o.transformFlags|=32:64===s?sD(o.left)?o.transformFlags|=5248|wt(o.left):aD(o.left)&&(o.transformFlags|=5120|wt(o.left)):43===s||68===s?o.transformFlags|=512:dE(s)&&(o.transformFlags|=16),103===s&&rC(o.left)&&(o.transformFlags|=536870912),o.jsDoc=void 0,o}function wt(e){return hk(e)?65536:0}function Ot(e,t,n,o,i){const a=b(227);return a.condition=r().parenthesizeConditionOfConditionalExpression(e),a.questionToken=t??W(58),a.whenTrue=r().parenthesizeBranchOfConditionalExpression(n),a.colonToken=o??W(59),a.whenFalse=r().parenthesizeBranchOfConditionalExpression(i),a.transformFlags|=QA(a.condition)|QA(a.questionToken)|QA(a.whenTrue)|QA(a.colonToken)|QA(a.whenFalse),a}function Ft(e,t){const n=b(228);return n.head=e,n.templateSpans=v(t),n.transformFlags|=QA(n.head)|ZA(n.templateSpans)|1024,n}function Wt(e,t,n,r=0){let o;if(In.assert(!(-7177&r),"Unsupported template flags."),void 0!==n&&n!==t&&(o=function(e,t){GA||(GA=Bs(99,!1,0));switch(e){case 15:GA.setText("`"+t+"`");break;case 16:GA.setText("`"+t+"${");break;case 17:GA.setText("}"+t+"${");break;case 18:GA.setText("}"+t+"`")}let n,r=GA.scan();20===r&&(r=GA.reScanTemplateToken(!1));if(GA.isUnterminated())return GA.setText(void 0),jA;switch(r){case 15:case 16:case 17:case 18:n=GA.getTokenValue()}if(void 0===n||1!==GA.scan())return GA.setText(void 0),jA;return GA.setText(void 0),n}(e,n),"object"===typeof o))return In.fail("Invalid raw text");if(void 0===t){if(void 0===o)return In.fail("Arguments 'text' and 'rawText' may not both be undefined.");t=o}else void 0!==o&&In.assert(t===o,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return t}function zt(e){let t=1024;return e&&(t|=128),t}function Bt(e,t,n,r){const o=E(e);return o.text=t,o.rawText=n,o.templateFlags=7176&r,o.transformFlags=zt(o.templateFlags),o}function Gt(e,t,n,r){return 15===e?Bt(e,t,n,r):function(e,t,n,r){const o=F(e);return o.text=t,o.rawText=n,o.templateFlags=7176&r,o.transformFlags=zt(o.templateFlags),o}(e,t,n,r)}function jt(e,t){In.assert(!e||!!t,"A `YieldExpression` with an asteriskToken must have an expression.");const n=b(229);return n.expression=t&&r().parenthesizeExpressionForDisallowedComma(t),n.asteriskToken=e,n.transformFlags|=1049728|(QA(n.expression)|QA(n.asteriskToken)),n}function Vt(e){const t=b(230);return t.expression=r().parenthesizeExpressionForDisallowedComma(e),t.transformFlags|=33792|QA(t.expression),t}function Ut(e,t,n,r,o){const i=E(231);return i.modifiers=Co(e),i.name=Do(t),i.typeParameters=Co(n),i.heritageClauses=Co(r),i.members=v(o),i.transformFlags|=ZA(i.modifiers)|$A(i.name)|ZA(i.typeParameters)|ZA(i.heritageClauses)|ZA(i.members)|(i.typeParameters?1:0)|1024,i.jsDoc=void 0,i}function Ht(e,t,n,r,o,i){return e.modifiers!==t||e.name!==n||e.typeParameters!==r||e.heritageClauses!==o||e.members!==i?ko(Ut(t,n,r,o,i),e):e}function Kt(e,t){const n=b(233);return n.expression=r().parenthesizeLeftSideOfAccess(e,!1),n.typeArguments=t&&r().parenthesizeTypeArguments(t),n.transformFlags|=QA(n.expression)|ZA(n.typeArguments)|1024,n}function qt(e,t){const n=b(234);return n.expression=e,n.type=t,n.transformFlags|=QA(n.expression)|QA(n.type)|1,n}function Jt(e,t,n){return e.expression!==t||e.type!==n?ko(qt(t,n),e):e}function Xt(e){const t=b(235);return t.expression=r().parenthesizeLeftSideOfAccess(e,!1),t.transformFlags|=1|QA(t.expression),t}function $t(e,t){return jc(e)?en(e,t):e.expression!==t?ko(Xt(t),e):e}function Yt(e,t){const n=b(238);return n.expression=e,n.type=t,n.transformFlags|=QA(n.expression)|QA(n.type)|1,n}function Qt(e,t,n){return e.expression!==t||e.type!==n?ko(Yt(t,n),e):e}function Zt(e){const t=b(235);return t.flags|=64,t.expression=r().parenthesizeLeftSideOfAccess(e,!0),t.transformFlags|=1|QA(t.expression),t}function en(e,t){return In.assert(!!(64&e.flags),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),e.expression!==t?ko(Zt(t),e):e}function tn(e,t){const n=b(236);switch(n.keywordToken=e,n.name=t,n.transformFlags|=QA(n.name),e){case 105:n.transformFlags|=1024;break;case 102:n.transformFlags|=32;break;default:return In.assertNever(e)}return n.flowNode=void 0,n}function nn(e,t){const n=b(239);return n.expression=e,n.literal=t,n.transformFlags|=QA(n.expression)|QA(n.literal)|1024,n}function rn(e,t){const n=b(241);return n.statements=v(e),n.multiLine=t,n.transformFlags|=ZA(n.statements),n.jsDoc=void 0,n.locals=void 0,n.nextContainer=void 0,n}function on(e,t){const n=b(243);return n.modifiers=Co(e),n.declarationList=mt(t)?Rn(t):t,n.transformFlags|=ZA(n.modifiers)|QA(n.declarationList),128&aE(n.modifiers)&&(n.transformFlags=1),n.jsDoc=void 0,n.flowNode=void 0,n}function an(e,t,n){return e.modifiers!==t||e.declarationList!==n?ko(on(t,n),e):e}function sn(){const e=b(242);return e.jsDoc=void 0,e}function ln(e){const t=b(244);return t.expression=r().parenthesizeExpressionOfExpressionStatement(e),t.transformFlags|=QA(t.expression),t.jsDoc=void 0,t.flowNode=void 0,t}function cn(e,t,n){const r=b(245);return r.expression=e,r.thenStatement=Lo(t),r.elseStatement=Lo(n),r.transformFlags|=QA(r.expression)|QA(r.thenStatement)|QA(r.elseStatement),r.jsDoc=void 0,r.flowNode=void 0,r}function un(e,t){const n=b(246);return n.statement=Lo(e),n.expression=t,n.transformFlags|=QA(n.statement)|QA(n.expression),n.jsDoc=void 0,n.flowNode=void 0,n}function pn(e,t){const n=b(247);return n.expression=e,n.statement=Lo(t),n.transformFlags|=QA(n.expression)|QA(n.statement),n.jsDoc=void 0,n.flowNode=void 0,n}function fn(e,t,n,r){const o=b(248);return o.initializer=e,o.condition=t,o.incrementor=n,o.statement=Lo(r),o.transformFlags|=QA(o.initializer)|QA(o.condition)|QA(o.incrementor)|QA(o.statement),o.jsDoc=void 0,o.locals=void 0,o.nextContainer=void 0,o.flowNode=void 0,o}function mn(e,t,n){const r=b(249);return r.initializer=e,r.expression=t,r.statement=Lo(n),r.transformFlags|=QA(r.initializer)|QA(r.expression)|QA(r.statement),r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.flowNode=void 0,r}function _n(e,t,n,o){const i=b(250);return i.awaitModifier=e,i.initializer=t,i.expression=r().parenthesizeExpressionForDisallowedComma(n),i.statement=Lo(o),i.transformFlags|=QA(i.awaitModifier)|QA(i.initializer)|QA(i.expression)|QA(i.statement)|1024,e&&(i.transformFlags|=128),i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.flowNode=void 0,i}function hn(e){const t=b(251);return t.label=Do(e),t.transformFlags|=4194304|QA(t.label),t.jsDoc=void 0,t.flowNode=void 0,t}function gn(e){const t=b(252);return t.label=Do(e),t.transformFlags|=4194304|QA(t.label),t.jsDoc=void 0,t.flowNode=void 0,t}function yn(e){const t=b(253);return t.expression=e,t.transformFlags|=4194432|QA(t.expression),t.jsDoc=void 0,t.flowNode=void 0,t}function vn(e,t){const n=b(254);return n.expression=e,n.statement=Lo(t),n.transformFlags|=QA(n.expression)|QA(n.statement),n.jsDoc=void 0,n.flowNode=void 0,n}function bn(e,t){const n=b(255);return n.expression=r().parenthesizeExpressionForDisallowedComma(e),n.caseBlock=t,n.transformFlags|=QA(n.expression)|QA(n.caseBlock),n.jsDoc=void 0,n.flowNode=void 0,n.possiblyExhaustive=!1,n}function En(e,t){const n=b(256);return n.label=Do(e),n.statement=Lo(t),n.transformFlags|=QA(n.label)|QA(n.statement),n.jsDoc=void 0,n.flowNode=void 0,n}function Sn(e,t,n){return e.label!==t||e.statement!==n?ko(En(t,n),e):e}function Tn(e){const t=b(257);return t.expression=e,t.transformFlags|=QA(t.expression),t.jsDoc=void 0,t.flowNode=void 0,t}function xn(e,t,n){const r=b(258);return r.tryBlock=e,r.catchClause=t,r.finallyBlock=n,r.transformFlags|=QA(r.tryBlock)|QA(r.catchClause)|QA(r.finallyBlock),r.jsDoc=void 0,r.flowNode=void 0,r}function An(e,t,n,r){const o=E(260);return o.name=Do(e),o.exclamationToken=t,o.type=n,o.initializer=Mo(r),o.transformFlags|=$A(o.name)|QA(o.initializer)|(o.exclamationToken??o.type?1:0),o.jsDoc=void 0,o}function Rn(e,t=0){const n=b(261);return n.flags|=7&t,n.declarations=v(e),n.transformFlags|=4194304|ZA(n.declarations),7&t&&(n.transformFlags|=263168),4&t&&(n.transformFlags|=4),n}function Cn(e,t,n,r,o,i,a){const s=E(262);if(s.modifiers=Co(e),s.asteriskToken=t,s.name=Do(n),s.typeParameters=Co(r),s.parameters=v(o),s.type=i,s.body=a,!s.body||128&aE(s.modifiers))s.transformFlags=1;else{const e=1024&aE(s.modifiers),t=!!s.asteriskToken,n=e&&t;s.transformFlags=ZA(s.modifiers)|QA(s.asteriskToken)|$A(s.name)|ZA(s.typeParameters)|ZA(s.parameters)|QA(s.type)|-67108865&QA(s.body)|(n?128:e?256:t?2048:0)|(s.typeParameters||s.type?1:0)|4194304}return s.typeArguments=void 0,s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.endFlowNode=void 0,s.returnFlowNode=void 0,s}function Dn(e,t,n,r,o,i,a,s){return e.modifiers!==t||e.asteriskToken!==n||e.name!==r||e.typeParameters!==o||e.parameters!==i||e.type!==a||e.body!==s?function(e,t){e!==t&&e.modifiers===t.modifiers&&(e.modifiers=t.modifiers);return S(e,t)}(Cn(t,n,r,o,i,a,s),e):e}function Nn(e,t,n,r,o){const i=E(263);return i.modifiers=Co(e),i.name=Do(t),i.typeParameters=Co(n),i.heritageClauses=Co(r),i.members=v(o),128&aE(i.modifiers)?i.transformFlags=1:(i.transformFlags|=ZA(i.modifiers)|$A(i.name)|ZA(i.typeParameters)|ZA(i.heritageClauses)|ZA(i.members)|(i.typeParameters?1:0)|1024,8192&i.transformFlags&&(i.transformFlags|=1)),i.jsDoc=void 0,i}function Mn(e,t,n,r,o,i){return e.modifiers!==t||e.name!==n||e.typeParameters!==r||e.heritageClauses!==o||e.members!==i?ko(Nn(t,n,r,o,i),e):e}function Ln(e,t,n,r,o){const i=E(264);return i.modifiers=Co(e),i.name=Do(t),i.typeParameters=Co(n),i.heritageClauses=Co(r),i.members=v(o),i.transformFlags=1,i.jsDoc=void 0,i}function kn(e,t,n,r,o,i){return e.modifiers!==t||e.name!==n||e.typeParameters!==r||e.heritageClauses!==o||e.members!==i?ko(Ln(t,n,r,o,i),e):e}function Pn(e,t,n,r){const o=E(265);return o.modifiers=Co(e),o.name=Do(t),o.typeParameters=Co(n),o.type=r,o.transformFlags=1,o.jsDoc=void 0,o.locals=void 0,o.nextContainer=void 0,o}function wn(e,t,n,r,o){return e.modifiers!==t||e.name!==n||e.typeParameters!==r||e.type!==o?ko(Pn(t,n,r,o),e):e}function On(e,t,n){const r=E(266);return r.modifiers=Co(e),r.name=Do(t),r.members=v(n),r.transformFlags|=ZA(r.modifiers)|QA(r.name)|ZA(r.members)|1,r.transformFlags&=-67108865,r.jsDoc=void 0,r}function Fn(e,t,n,r){return e.modifiers!==t||e.name!==n||e.members!==r?ko(On(t,n,r),e):e}function Wn(e,t,n,r=0){const o=E(267);return o.modifiers=Co(e),o.flags|=2088&r,o.name=t,o.body=n,128&aE(o.modifiers)?o.transformFlags=1:o.transformFlags|=ZA(o.modifiers)|QA(o.name)|QA(o.body)|1,o.transformFlags&=-67108865,o.jsDoc=void 0,o.locals=void 0,o.nextContainer=void 0,o}function zn(e,t,n,r){return e.modifiers!==t||e.name!==n||e.body!==r?ko(Wn(t,n,r,e.flags),e):e}function Bn(e){const t=b(268);return t.statements=v(e),t.transformFlags|=ZA(t.statements),t.jsDoc=void 0,t}function Gn(e){const t=b(269);return t.clauses=v(e),t.transformFlags|=ZA(t.clauses),t.locals=void 0,t.nextContainer=void 0,t}function jn(e){const t=E(270);return t.name=Do(e),t.transformFlags|=1|YA(t.name),t.modifiers=void 0,t.jsDoc=void 0,t}function Vn(e,t,n,r){const o=E(271);return o.modifiers=Co(e),o.name=Do(n),o.isTypeOnly=t,o.moduleReference=r,o.transformFlags|=ZA(o.modifiers)|YA(o.name)|QA(o.moduleReference),wN(o.moduleReference)||(o.transformFlags|=1),o.transformFlags&=-67108865,o.jsDoc=void 0,o}function Un(e,t,n,r,o){return e.modifiers!==t||e.isTypeOnly!==n||e.name!==r||e.moduleReference!==o?ko(Vn(t,n,r,o),e):e}function Hn(e,t,n,r){const o=b(272);return o.modifiers=Co(e),o.importClause=t,o.moduleSpecifier=n,o.attributes=o.assertClause=r,o.transformFlags|=QA(o.importClause)|QA(o.moduleSpecifier),o.transformFlags&=-67108865,o.jsDoc=void 0,o}function Kn(e,t,n,r,o){return e.modifiers!==t||e.importClause!==n||e.moduleSpecifier!==r||e.attributes!==o?ko(Hn(t,n,r,o),e):e}function qn(e,t,n){const r=E(273);return r.isTypeOnly=e,r.name=t,r.namedBindings=n,r.transformFlags|=QA(r.name)|QA(r.namedBindings),e&&(r.transformFlags|=1),r.transformFlags&=-67108865,r}function Jn(e,t){const n=b(300);return n.elements=v(e),n.multiLine=t,n.token=132,n.transformFlags|=4,n}function Xn(e,t){const n=b(301);return n.name=e,n.value=t,n.transformFlags|=4,n}function $n(e,t){const n=b(302);return n.assertClause=e,n.multiLine=t,n}function Yn(e,t,n){const r=b(300);return r.token=n??118,r.elements=v(e),r.multiLine=t,r.transformFlags|=4,r}function Qn(e,t){const n=b(301);return n.name=e,n.value=t,n.transformFlags|=4,n}function Zn(e){const t=E(274);return t.name=e,t.transformFlags|=QA(t.name),t.transformFlags&=-67108865,t}function er(e){const t=E(280);return t.name=e,t.transformFlags|=32|QA(t.name),t.transformFlags&=-67108865,t}function tr(e){const t=b(275);return t.elements=v(e),t.transformFlags|=ZA(t.elements),t.transformFlags&=-67108865,t}function nr(e,t,n){const r=E(276);return r.isTypeOnly=e,r.propertyName=t,r.name=n,r.transformFlags|=QA(r.propertyName)|QA(r.name),r.transformFlags&=-67108865,r}function rr(e,t,n){const o=E(277);return o.modifiers=Co(e),o.isExportEquals=t,o.expression=t?r().parenthesizeRightSideOfBinary(64,void 0,n):r().parenthesizeExpressionOfExportDefault(n),o.transformFlags|=ZA(o.modifiers)|QA(o.expression),o.transformFlags&=-67108865,o.jsDoc=void 0,o}function or(e,t,n){return e.modifiers!==t||e.expression!==n?ko(rr(t,e.isExportEquals,n),e):e}function ir(e,t,n,r,o){const i=E(278);return i.modifiers=Co(e),i.isTypeOnly=t,i.exportClause=n,i.moduleSpecifier=r,i.attributes=i.assertClause=o,i.transformFlags|=ZA(i.modifiers)|QA(i.exportClause)|QA(i.moduleSpecifier),i.transformFlags&=-67108865,i.jsDoc=void 0,i}function ar(e,t,n,r,o,i){return e.modifiers!==t||e.isTypeOnly!==n||e.exportClause!==r||e.moduleSpecifier!==o||e.attributes!==i?function(e,t){e!==t&&e.modifiers===t.modifiers&&(e.modifiers=t.modifiers);return ko(e,t)}(ir(t,n,r,o,i),e):e}function sr(e){const t=b(279);return t.elements=v(e),t.transformFlags|=ZA(t.elements),t.transformFlags&=-67108865,t}function lr(e,t,n){const r=b(281);return r.isTypeOnly=e,r.propertyName=Do(t),r.name=Do(n),r.transformFlags|=QA(r.propertyName)|QA(r.name),r.transformFlags&=-67108865,r.jsDoc=void 0,r}function cr(e){const t=b(283);return t.expression=e,t.transformFlags|=QA(t.expression),t.transformFlags&=-67108865,t}function dr(e,t,n=!1){const o=ur(e,n?t&&r().parenthesizeNonArrayTypeOfPostfixType(t):t);return o.postfix=n,o}function ur(e,t){const n=b(e);return n.type=t,n}function pr(e,t){const n=E(324);return n.parameters=Co(e),n.type=t,n.transformFlags=ZA(n.parameters)|(n.type?1:0),n.jsDoc=void 0,n.locals=void 0,n.nextContainer=void 0,n.typeArguments=void 0,n}function fr(e,t=!1){const n=E(329);return n.jsDocPropertyTags=Co(e),n.isArrayType=t,n}function mr(e){const t=b(316);return t.type=e,t}function _r(e,t,n){const r=E(330);return r.typeParameters=Co(e),r.parameters=v(t),r.type=n,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r}function hr(e){const t=XA(e.kind);return e.tagName.escapedText===Ml(t)?e.tagName:L(t)}function gr(e,t,n){const r=b(e);return r.tagName=t,r.comment=n,r}function yr(e,t,n){const r=E(e);return r.tagName=t,r.comment=n,r}function vr(e,t,n,r){const o=gr(352,e??L("template"),r);return o.constraint=t,o.typeParameters=v(n),o}function br(e,t,n,r){const o=yr(353,e??L("typedef"),r);return o.typeExpression=t,o.fullName=n,o.name=zL(n),o.locals=void 0,o.nextContainer=void 0,o}function Er(e,t,n,r,o,i){const a=yr(348,e??L("param"),i);return a.typeExpression=r,a.name=t,a.isNameFirst=!!o,a.isBracketed=n,a}function Sr(e,t,n,r,o,i){const a=yr(355,e??L("prop"),i);return a.typeExpression=r,a.name=t,a.isNameFirst=!!o,a.isBracketed=n,a}function Tr(e,t,n,r){const o=yr(345,e??L("callback"),r);return o.typeExpression=t,o.fullName=n,o.name=zL(n),o.locals=void 0,o.nextContainer=void 0,o}function xr(e,t,n){const r=gr(346,e??L("overload"),n);return r.typeExpression=t,r}function Ar(e,t,n){const r=gr(335,e??L("augments"),n);return r.class=t,r}function Ir(e,t,n){const r=gr(336,e??L("implements"),n);return r.class=t,r}function Rr(e,t,n){const r=gr(354,e??L("see"),n);return r.name=t,r}function Cr(e){const t=b(317);return t.name=e,t}function Dr(e,t){const n=b(318);return n.left=e,n.right=t,n.transformFlags|=QA(n.left)|QA(n.right),n}function Nr(e,t){const n=b(331);return n.name=e,n.text=t,n}function Mr(e,t){const n=b(332);return n.name=e,n.text=t,n}function Lr(e,t){const n=b(333);return n.name=e,n.text=t,n}function kr(e,t,n){return gr(e,t??L(XA(e)),n)}function Pr(e,t,n,r){const o=gr(e,t??L(XA(e)),r);return o.typeExpression=n,o}function wr(e,t){return gr(334,e,t)}function Or(e,t,n){const r=yr(347,e??L(XA(347)),n);return r.typeExpression=t,r.locals=void 0,r.nextContainer=void 0,r}function Fr(e){const t=b(328);return t.text=e,t}function Wr(e,t){const n=b(327);return n.comment=e,n.tags=Co(t),n}function zr(e,t,n){const r=b(284);return r.openingElement=e,r.children=v(t),r.closingElement=n,r.transformFlags|=QA(r.openingElement)|ZA(r.children)|QA(r.closingElement)|2,r}function Br(e,t,n){const r=b(285);return r.tagName=e,r.typeArguments=Co(t),r.attributes=n,r.transformFlags|=QA(r.tagName)|ZA(r.typeArguments)|QA(r.attributes)|2,r.typeArguments&&(r.transformFlags|=1),r}function Gr(e,t,n){const r=b(286);return r.tagName=e,r.typeArguments=Co(t),r.attributes=n,r.transformFlags|=QA(r.tagName)|ZA(r.typeArguments)|QA(r.attributes)|2,t&&(r.transformFlags|=1),r}function jr(e){const t=b(287);return t.tagName=e,t.transformFlags|=2|QA(t.tagName),t}function Vr(e,t,n){const r=b(288);return r.openingFragment=e,r.children=v(t),r.closingFragment=n,r.transformFlags|=QA(r.openingFragment)|ZA(r.children)|QA(r.closingFragment)|2,r}function Ur(e,t){const n=b(12);return n.text=e,n.containsOnlyTriviaWhiteSpaces=!!t,n.transformFlags|=2,n}function Hr(e,t){const n=E(291);return n.name=e,n.initializer=t,n.transformFlags|=QA(n.name)|QA(n.initializer)|2,n}function Kr(e){const t=E(292);return t.properties=v(e),t.transformFlags|=2|ZA(t.properties),t}function qr(e){const t=b(293);return t.expression=e,t.transformFlags|=2|QA(t.expression),t}function Jr(e,t){const n=b(294);return n.dotDotDotToken=e,n.expression=t,n.transformFlags|=QA(n.dotDotDotToken)|QA(n.expression)|2,n}function Xr(e,t){const n=b(295);return n.namespace=e,n.name=t,n.transformFlags|=QA(n.namespace)|QA(n.name)|2,n}function $r(e,t){const n=b(296);return n.expression=r().parenthesizeExpressionForDisallowedComma(e),n.statements=v(t),n.transformFlags|=QA(n.expression)|ZA(n.statements),n.jsDoc=void 0,n}function Yr(e){const t=b(297);return t.statements=v(e),t.transformFlags=ZA(t.statements),t}function Qr(e,t){const n=b(298);switch(n.token=e,n.types=v(t),n.transformFlags|=ZA(n.types),e){case 96:n.transformFlags|=1024;break;case 119:n.transformFlags|=1;break;default:return In.assertNever(e)}return n}function Zr(e,t){const n=b(299);return n.variableDeclaration=function(e){if("string"===typeof e||e&&!iN(e))return An(e,void 0,void 0,void 0);return e}(e),n.block=t,n.transformFlags|=QA(n.variableDeclaration)|QA(n.block)|(e?0:64),n.locals=void 0,n.nextContainer=void 0,n}function eo(e,t){const n=E(303);return n.name=Do(e),n.initializer=r().parenthesizeExpressionForDisallowedComma(t),n.transformFlags|=$A(n.name)|QA(n.initializer),n.modifiers=void 0,n.questionToken=void 0,n.exclamationToken=void 0,n.jsDoc=void 0,n}function to(e,t,n){return e.name!==t||e.initializer!==n?function(e,t){e!==t&&(e.modifiers=t.modifiers,e.questionToken=t.questionToken,e.exclamationToken=t.exclamationToken);return ko(e,t)}(eo(t,n),e):e}function no(e,t){const n=E(304);return n.name=Do(e),n.objectAssignmentInitializer=t&&r().parenthesizeExpressionForDisallowedComma(t),n.transformFlags|=YA(n.name)|QA(n.objectAssignmentInitializer)|1024,n.equalsToken=void 0,n.modifiers=void 0,n.questionToken=void 0,n.exclamationToken=void 0,n.jsDoc=void 0,n}function ro(e){const t=E(305);return t.expression=r().parenthesizeExpressionForDisallowedComma(e),t.transformFlags|=65664|QA(t.expression),t.jsDoc=void 0,t}function oo(e,t){const n=E(306);return n.name=Do(e),n.initializer=t&&r().parenthesizeExpressionForDisallowedComma(t),n.transformFlags|=QA(n.name)|QA(n.initializer)|1,n.jsDoc=void 0,n}function io(e){const t=Object.create(e.redirectTarget);return Object.defineProperties(t,{id:{get(){return this.redirectInfo.redirectTarget.id},set(e){this.redirectInfo.redirectTarget.id=e}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(e){this.redirectInfo.redirectTarget.symbol=e}}}),t.redirectInfo=e,t}function ao(e){const r=e.redirectInfo?function(e){const t=io(e.redirectInfo);return t.flags|=-17&e.flags,t.fileName=e.fileName,t.path=e.path,t.resolvedPath=e.resolvedPath,t.originalFileName=e.originalFileName,t.packageJsonLocations=e.packageJsonLocations,t.packageJsonScope=e.packageJsonScope,t.emitNode=void 0,t}(e):function(e){const n=t.createBaseSourceFileNode(312);n.flags|=-17&e.flags;for(const t in e)!He(n,t)&&He(e,t)&&("emitNode"!==t?n[t]=e[t]:n.emitNode=void 0);return n}(e);return n(r,e),r}function so(e,t=o){const n=b(313);return n.prepends=t,n.sourceFiles=e,n.syntheticFileReferences=void 0,n.syntheticTypeReferences=void 0,n.syntheticLibReferences=void 0,n.hasNoDefaultLib=void 0,n}function lo(e,t){const n=b(e);return n.data=t,n}function co(e,t){const n=b(360);return n.expression=e,n.original=t,n.transformFlags|=1|QA(n.expression),yk(n,t),n}function uo(e,t){return e.expression!==t?ko(co(t,e.original),e):e}function po(e){if(Sv(e)&&!Dl(e)&&!e.original&&!e.emitNode&&!e.id){if(FD(e))return e.elements;if(TD(e)&&qR(e.operatorToken))return[e.left,e.right]}return e}function fo(e){const t=b(361);return t.elements=v(Y(e,po)),t.transformFlags|=ZA(t.elements),t}function mo(e,t){const n=b(362);return n.expression=e,n.thisArg=t,n.transformFlags|=QA(n.expression)|QA(n.thisArg),n}function _o(e){if(void 0===e)return e;if(rM(e))return ao(e);if(ud(e))return function(e){const t=D(e.escapedText);return t.flags|=-17&e.flags,t.transformFlags=e.transformFlags,n(t,e),KI(t,{...e.emitNode.autoGenerate}),t}(e);if(nC(e))return function(e){const t=D(e.escapedText);t.flags|=-17&e.flags,t.jsDoc=e.jsDoc,t.flowNode=e.flowNode,t.symbol=e.symbol,t.transformFlags=e.transformFlags,n(t,e);const r=HI(e);return r&&UI(t,r),t}(e);if(pd(e))return function(e){const t=w(e.escapedText);return t.flags|=-17&e.flags,t.transformFlags=e.transformFlags,n(t,e),KI(t,{...e.emitNode.autoGenerate}),t}(e);if(rC(e))return function(e){const t=w(e.escapedText);return t.flags|=-17&e.flags,t.transformFlags=e.transformFlags,n(t,e),t}(e);const r=Xc(e.kind)?t.createBaseNode(e.kind):t.createBaseTokenNode(e.kind);r.flags|=-17&e.flags,r.transformFlags=e.transformFlags,n(r,e);for(const t in e)!He(r,t)&&He(e,t)&&(r[t]=e[t]);return r}function ho(){return Nt(T("0"))}function go(e,t,n){return Pc(e)?dt(nt(e,void 0,t),void 0,void 0,n):ct(tt(e,t),void 0,n)}function yo(e,t,n){return go(L(e),t,n)}function vo(e,t,n){return!!n&&(e.push(eo(t,n)),!0)}function bo(e,t){const n=Ty(e);switch(n.kind){case 80:return t;case 110:case 9:case 10:case 11:return!1;case 209:return 0!==n.elements.length;case 210:return n.properties.length>0;default:return!0}}function Eo(e,t,n,r=0,o){const i=o?e&&Gl(e):jl(e);if(i&&nC(i)&&!ud(i)){const e=Vx(yk(_o(i),i),i.parent);return r|=Rm(i),n||(r|=96),t||(r|=3072),r&&fI(e,r),e}return P(e)}function So(e,t,n){return Eo(e,t,n,16384)}function To(e,t,n,r){const o=tt(e,Sv(t)?t:_o(t));yk(o,t);let i=0;return r||(i|=96),n||(i|=3072),i&&fI(o,i),o}function xo(){return xL(ln(R("use strict")))}function Ao(e,t,n=0,r){In.assert(0===t.length,"Prologue directives should be at the first statement in the target statements array");let o=!1;const i=e.length;for(;n<i;){const r=e[n];if(!w_(r))break;zR((a=r).expression)&&"use strict"===a.expression.text&&(o=!0),t.push(r),n++}var a;return r&&!o&&t.push(xo()),n}function Io(e,t,n,r,o=St){const i=e.length;for(;void 0!==n&&n<i;){const i=e[n];if(!(2097152&Rm(i)&&o(i)))break;Ee(t,r?rB(i,r,wu):i),n++}return n}function Ro(e,t,n){let r=n;for(;r<e.length&&t(e[r]);)r++;return r}function Co(e){return e?v(e):void 0}function Do(e){return"string"===typeof e?L(e):e}function No(e){return"string"===typeof e?R(e):"number"===typeof e?T(e):"boolean"===typeof e?e?G():j():e}function Mo(e){return e&&r().parenthesizeExpressionForDisallowedComma(e)}function Lo(e){return e&&kN(e)?yk(n(sn(),e),e):e}function ko(e,t){return e!==t&&(n(e,t),yk(e,t)),e}}function XA(e){switch(e){case 351:return"type";case 349:return"returns";case 350:return"this";case 347:return"enum";case 337:return"author";case 339:return"class";case 340:return"public";case 341:return"private";case 342:return"protected";case 343:return"readonly";case 344:return"override";case 352:return"template";case 353:return"typedef";case 348:return"param";case 355:return"prop";case 345:return"callback";case 346:return"overload";case 335:return"augments";case 336:return"implements";default:return In.fail(`Unsupported kind: ${In.formatSyntaxKind(e)}`)}}function $A(e){return e&&nC(e)?YA(e):QA(e)}function YA(e){return-67108865&QA(e)}function QA(e){if(!e)return 0;const t=e.transformFlags&~tI(e.kind);return Bl(e)&&Ed(e.name)?(n=e.name,t|134234112&n.transformFlags):t;var n}function ZA(e){return e?e.transformFlags:0}function eI(e){let t=0;for(const n of e)t|=QA(n);e.transformFlags=t}function tI(e){if(e>=182&&e<=205)return-2;switch(e){case 213:case 214:case 209:case 206:case 207:return-2147450880;case 267:return-1941676032;case 169:case 216:case 238:case 234:case 360:case 217:case 108:case 211:case 212:default:return-2147483648;case 219:return-2072174592;case 218:case 262:return-1937940480;case 261:return-2146893824;case 263:case 231:return-2147344384;case 176:return-1937948672;case 172:return-2013249536;case 174:case 177:case 178:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 168:case 171:case 173:case 179:case 180:case 181:case 264:case 265:return-2;case 210:return-2147278848;case 299:return-2147418112}}function nI(e){return e.flags|=16,e}function rI(e,t,n){let r,i,a,s,l,c,d,u,p,f;ht(e)?(a="",s=e,l=e.length,c=t,d=n):(In.assert("js"===t||"dts"===t),a=("js"===t?e.javascriptPath:e.declarationPath)||"",c="js"===t?e.javascriptMapPath:e.declarationMapPath,u=()=>"js"===t?e.javascriptText:e.declarationText,p=()=>"js"===t?e.javascriptMapText:e.declarationMapText,l=()=>u().length,e.buildInfo&&e.buildInfo.bundle&&(In.assert(void 0===n||"boolean"===typeof n),r=n,i="js"===t?e.buildInfo.bundle.js:e.buildInfo.bundle.dts,f=e.oldFileOfCurrentEmit));const m=f?function(e){let t,n;for(const o of e.sections)switch(o.kind){case"internal":case"text":t=Ee(t,yk(UA.createUnparsedTextLike(o.data,"internal"===o.kind),o));break;case"no-default-lib":case"reference":case"type":case"type-import":case"type-require":case"lib":n=Ee(n,yk(UA.createUnparsedSyntheticReference(o),o));break;case"prologue":case"emitHelpers":case"prepend":break;default:In.assertNever(o)}const r=UA.createUnparsedSource(o,n,t??o);return Ux(n,r),Ux(t,r),r.helpers=U(e.sources&&e.sources.helpers,(e=>PR().get(e))),r}(In.checkDefined(i)):function(e,t,n){let r,i,a,s,l,c,d,u;for(const f of e?e.sections:o)switch(f.kind){case"prologue":r=Ee(r,yk(UA.createUnparsedPrologue(f.data),f));break;case"emitHelpers":i=Ee(i,PR().get(f.data));break;case"no-default-lib":u=!0;break;case"reference":a=Ee(a,{pos:-1,end:-1,fileName:f.data});break;case"type":s=Ee(s,{pos:-1,end:-1,fileName:f.data});break;case"type-import":s=Ee(s,{pos:-1,end:-1,fileName:f.data,resolutionMode:99});break;case"type-require":s=Ee(s,{pos:-1,end:-1,fileName:f.data,resolutionMode:1});break;case"lib":l=Ee(l,{pos:-1,end:-1,fileName:f.data});break;case"prepend":let e;for(const n of f.texts)t&&"internal"===n.kind||(e=Ee(e,yk(UA.createUnparsedTextLike(n.data,"internal"===n.kind),n)));c=xe(c,e),d=Ee(d,UA.createUnparsedPrepend(f.data,e??o));break;case"internal":if(t){d||(d=[]);break}case"text":d=Ee(d,yk(UA.createUnparsedTextLike(f.data,"internal"===f.kind),f));break;default:In.assertNever(f)}if(!d){const e=UA.createUnparsedTextLike(void 0,!1);Gx(e,0,"function"===typeof n?n():n),d=[e]}const p=Rk.createUnparsedSource(r??o,void 0,d);return Ux(r,p),Ux(d,p),Ux(c,p),p.hasNoDefaultLib=u,p.helpers=i,p.referencedFiles=a||o,p.typeReferenceDirectives=s,p.libReferenceDirectives=l||o,p}(i,r,l);return m.fileName=a,m.sourceMapPath=c,m.oldFileOfCurrentEmit=f,u&&p?(Object.defineProperty(m,"text",{get:u}),Object.defineProperty(m,"sourceMapText",{get:p})):(In.assert(!f),m.text=s??"",m.sourceMapText=d),m}function oI(e,t,n,r,o,i){return ht(e)?aI(void 0,e,n,r,void 0,t,o,i):iI(e,t,n,r,o,i)}function iI(e,t,n,r,o,i,a,s){const l=Rk.createInputFiles();l.javascriptPath=t,l.javascriptMapPath=n,l.declarationPath=r,l.declarationMapPath=o,l.buildInfoPath=i;const c=new Map,d=t=>{if(void 0===t)return;let n=c.get(t);return void 0===n&&(n=e(t),c.set(t,void 0!==n&&n)),!1!==n?n:void 0},u=e=>{const t=d(e);return void 0!==t?t:`/* Input file ${e} was missing */\r\n`};let p;return Object.defineProperties(l,{javascriptText:{get:()=>u(t)},javascriptMapText:{get:()=>d(n)},declarationText:{get:()=>u(In.checkDefined(r))},declarationMapText:{get:()=>d(o)},buildInfo:{get:()=>{if(void 0===p&&i)if(null==a?void 0:a.getBuildInfo)p=a.getBuildInfo(i,s.configFilePath)??!1;else{const e=d(i);p=void 0!==e&&(VV(i,e)??!1)}return p||void 0}}}),l}function aI(e,t,n,r,o,i,a,s,l,c,d){const u=Rk.createInputFiles();return u.javascriptPath=e,u.javascriptText=t,u.javascriptMapPath=n,u.javascriptMapText=r,u.declarationPath=o,u.declarationText=i,u.declarationMapPath=a,u.declarationMapText=s,u.buildInfoPath=l,u.buildInfo=c,u.oldFileOfCurrentEmit=d,u}function sI(e,t,n){return new(HA||(HA=Wp.getSourceMapSourceConstructor()))(e,t,n)}function lI(e,t){if(e.original!==t&&(e.original=t,t)){const n=t.emitNode;n&&(e.emitNode=function(e,t){const{flags:n,internalFlags:r,leadingComments:o,trailingComments:i,commentRange:a,sourceMapRange:s,tokenSourceMapRanges:l,constantValue:c,helpers:d,startsOnNewLine:u,snippetElement:p,classThis:f,assignedName:m}=e;t||(t={});n&&(t.flags=n);r&&(t.internalFlags=-9&r);o&&(t.leadingComments=xe(o.slice(),t.leadingComments));i&&(t.trailingComments=xe(i.slice(),t.trailingComments));a&&(t.commentRange=a);s&&(t.sourceMapRange=s);l&&(t.tokenSourceMapRanges=function(e,t){t||(t=[]);for(const n in e)t[n]=e[n];return t}(l,t.tokenSourceMapRanges));void 0!==c&&(t.constantValue=c);if(d)for(const _ of d)t.helpers=Ie(t.helpers,_);void 0!==u&&(t.startsOnNewLine=u);void 0!==p&&(t.snippetElement=p);f&&(t.classThis=f);m&&(t.assignedName=m);return t}(n,e.emitNode))}return e}var cI=b({"src/compiler/factory/nodeFactory.ts"(){JJ(),WA=0,zA=(e=>(e[e.None=0]="None",e[e.NoParenthesizerRules=1]="NoParenthesizerRules",e[e.NoNodeConverters=2]="NoNodeConverters",e[e.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",e[e.NoOriginalNode=8]="NoOriginalNode",e))(zA||{}),BA=[],jA={},VA=MA(),UA=JA(4,{createBaseSourceFileNode:e=>nI(VA.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>nI(VA.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>nI(VA.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>nI(VA.createBaseTokenNode(e)),createBaseNode:e=>nI(VA.createBaseNode(e))})}});function dI(e){if(e.emitNode)In.assert(!(8&e.emitNode.internalFlags),"Invalid attempt to mutate an immutable node.");else{if(Dl(e)){if(312===e.kind)return e.emitNode={annotatedNodes:[e]};dI(Yf(Nl(Yf(e)))??In.fail("Could not determine parsed source file.")).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function uI(e){var t,n;const r=null==(n=null==(t=Yf(Nl(e)))?void 0:t.emitNode)?void 0:n.annotatedNodes;if(r)for(const o of r)o.emitNode=void 0}function pI(e){const t=dI(e);return t.flags|=3072,t.leadingComments=void 0,t.trailingComments=void 0,e}function fI(e,t){return dI(e).flags=t,e}function mI(e,t){const n=dI(e);return n.flags=n.flags|t,e}function _I(e,t){return dI(e).internalFlags=t,e}function hI(e,t){const n=dI(e);return n.internalFlags=n.internalFlags|t,e}function gI(e){var t;return(null==(t=e.emitNode)?void 0:t.sourceMapRange)??e}function yI(e,t){return dI(e).sourceMapRange=t,e}function vI(e,t){var n,r;return null==(r=null==(n=e.emitNode)?void 0:n.tokenSourceMapRanges)?void 0:r[t]}function bI(e,t,n){const r=dI(e);return(r.tokenSourceMapRanges??(r.tokenSourceMapRanges=[]))[t]=n,e}function EI(e){var t;return null==(t=e.emitNode)?void 0:t.startsOnNewLine}function SI(e,t){return dI(e).startsOnNewLine=t,e}function TI(e){var t;return(null==(t=e.emitNode)?void 0:t.commentRange)??e}function xI(e,t){return dI(e).commentRange=t,e}function AI(e){var t;return null==(t=e.emitNode)?void 0:t.leadingComments}function II(e,t){return dI(e).leadingComments=t,e}function RI(e,t,n,r){return II(e,Ee(AI(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:r,text:n}))}function CI(e){var t;return null==(t=e.emitNode)?void 0:t.trailingComments}function DI(e,t){return dI(e).trailingComments=t,e}function NI(e,t,n,r){return DI(e,Ee(CI(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:r,text:n}))}function MI(e,t){II(e,AI(t)),DI(e,CI(t));const n=dI(t);return n.leadingComments=void 0,n.trailingComments=void 0,e}function LI(e){var t;return null==(t=e.emitNode)?void 0:t.constantValue}function kI(e,t){return dI(e).constantValue=t,e}function PI(e,t){const n=dI(e);return n.helpers=Ee(n.helpers,t),e}function wI(e,t){if(se(t)){const n=dI(e);for(const e of t)n.helpers=Ie(n.helpers,e)}return e}function OI(e,t){var n;const r=null==(n=e.emitNode)?void 0:n.helpers;return!!r&&tn(r,t)}function FI(e){var t;return null==(t=e.emitNode)?void 0:t.helpers}function WI(e,t,n){const r=e.emitNode,o=r&&r.helpers;if(!se(o))return;const i=dI(t);let a=0;for(let s=0;s<o.length;s++){const e=o[s];n(e)?(a++,i.helpers=Ie(i.helpers,e)):a>0&&(o[s-a]=e)}a>0&&(o.length-=a)}function zI(e){var t;return null==(t=e.emitNode)?void 0:t.snippetElement}function BI(e,t){return dI(e).snippetElement=t,e}function GI(e){return dI(e).internalFlags|=4,e}function jI(e,t){return dI(e).typeNode=t,e}function VI(e){var t;return null==(t=e.emitNode)?void 0:t.typeNode}function UI(e,t){return dI(e).identifierTypeArguments=t,e}function HI(e){var t;return null==(t=e.emitNode)?void 0:t.identifierTypeArguments}function KI(e,t){return dI(e).autoGenerate=t,e}function qI(e){var t;return null==(t=e.emitNode)?void 0:t.autoGenerate}function JI(e,t){return dI(e).generatedImportReference=t,e}function XI(e){var t;return null==(t=e.emitNode)?void 0:t.generatedImportReference}var $I,YI,QI,ZI,eR,tR,nR,rR,oR,iR,aR,sR,lR,cR,dR,uR,pR,fR,mR,_R,hR,gR,yR,vR,bR,ER,SR,TR,xR,AR,IR,RR,CR,DR,NR=b({"src/compiler/factory/emitNode.ts"(){JJ()}});function MR(e){const t=e.factory,n=Ct((()=>_I(t.createTrue(),8))),r=Ct((()=>_I(t.createFalse(),8)));return{getUnscopedHelperName:o,createDecorateHelper:function(n,r,i,a){e.requestEmitHelper(YI);const s=[];s.push(t.createArrayLiteralExpression(n,!0)),s.push(r),i&&(s.push(i),a&&s.push(a));return t.createCallExpression(o("__decorate"),void 0,s)},createMetadataHelper:function(n,r){return e.requestEmitHelper(QI),t.createCallExpression(o("__metadata"),void 0,[t.createStringLiteral(n),r])},createParamHelper:function(n,r,i){return e.requestEmitHelper(ZI),yk(t.createCallExpression(o("__param"),void 0,[t.createNumericLiteral(r+""),n]),i)},createESDecorateHelper:function(n,r,i,s,l,c){return e.requestEmitHelper(eR),t.createCallExpression(o("__esDecorate"),void 0,[n??t.createNull(),r??t.createNull(),i,a(s),l,c])},createRunInitializersHelper:function(n,r,i){return e.requestEmitHelper(tR),t.createCallExpression(o("__runInitializers"),void 0,i?[n,r,i]:[n,r])},createAssignHelper:function(n){if(jp(e.getCompilerOptions())>=2)return t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"assign"),void 0,n);return e.requestEmitHelper(nR),t.createCallExpression(o("__assign"),void 0,n)},createAwaitHelper:function(n){return e.requestEmitHelper(rR),t.createCallExpression(o("__await"),void 0,[n])},createAsyncGeneratorHelper:function(n,r){return e.requestEmitHelper(rR),e.requestEmitHelper(oR),(n.emitNode||(n.emitNode={})).flags|=1572864,t.createCallExpression(o("__asyncGenerator"),void 0,[r?t.createThis():t.createVoidZero(),t.createIdentifier("arguments"),n])},createAsyncDelegatorHelper:function(n){return e.requestEmitHelper(rR),e.requestEmitHelper(iR),t.createCallExpression(o("__asyncDelegator"),void 0,[n])},createAsyncValuesHelper:function(n){return e.requestEmitHelper(aR),t.createCallExpression(o("__asyncValues"),void 0,[n])},createRestHelper:function(n,r,i,a){e.requestEmitHelper(sR);const s=[];let l=0;for(let e=0;e<r.length-1;e++){const n=wL(r[e]);if(n)if(yC(n)){In.assertIsDefined(i,"Encountered computed property name but 'computedTempVariables' argument was not provided.");const e=i[l];l++,s.push(t.createConditionalExpression(t.createTypeCheck(e,"symbol"),void 0,e,void 0,t.createAdd(e,t.createStringLiteral(""))))}else s.push(t.createStringLiteralFromNode(n))}return t.createCallExpression(o("__rest"),void 0,[n,yk(t.createArrayLiteralExpression(s),a)])},createAwaiterHelper:function(n,r,i,a,s){e.requestEmitHelper(lR);const l=t.createFunctionExpression(void 0,t.createToken(42),void 0,void 0,a??[],void 0,s);return(l.emitNode||(l.emitNode={})).flags|=1572864,t.createCallExpression(o("__awaiter"),void 0,[n?t.createThis():t.createVoidZero(),r??t.createVoidZero(),i?aL(t,i):t.createVoidZero(),l])},createExtendsHelper:function(n){return e.requestEmitHelper(cR),t.createCallExpression(o("__extends"),void 0,[n,t.createUniqueName("_super",48)])},createTemplateObjectHelper:function(n,r){return e.requestEmitHelper(dR),t.createCallExpression(o("__makeTemplateObject"),void 0,[n,r])},createSpreadArrayHelper:function(i,a,s){return e.requestEmitHelper(pR),t.createCallExpression(o("__spreadArray"),void 0,[i,a,s?n():r()])},createPropKeyHelper:function(n){return e.requestEmitHelper(fR),t.createCallExpression(o("__propKey"),void 0,[n])},createSetFunctionNameHelper:function(t,n,r){return e.requestEmitHelper(mR),e.factory.createCallExpression(o("__setFunctionName"),void 0,r?[t,n,e.factory.createStringLiteral(r)]:[t,n])},createValuesHelper:function(n){return e.requestEmitHelper(_R),t.createCallExpression(o("__values"),void 0,[n])},createReadHelper:function(n,r){return e.requestEmitHelper(uR),t.createCallExpression(o("__read"),void 0,void 0!==r?[n,t.createNumericLiteral(r+"")]:[n])},createGeneratorHelper:function(n){return e.requestEmitHelper(hR),t.createCallExpression(o("__generator"),void 0,[t.createThis(),n])},createCreateBindingHelper:function(n,r,i){return e.requestEmitHelper(gR),t.createCallExpression(o("__createBinding"),void 0,[t.createIdentifier("exports"),n,r,...i?[i]:[]])},createImportStarHelper:function(n){return e.requestEmitHelper(vR),t.createCallExpression(o("__importStar"),void 0,[n])},createImportStarCallbackHelper:function(){return e.requestEmitHelper(vR),o("__importStar")},createImportDefaultHelper:function(n){return e.requestEmitHelper(bR),t.createCallExpression(o("__importDefault"),void 0,[n])},createExportStarHelper:function(n,r=t.createIdentifier("exports")){return e.requestEmitHelper(ER),e.requestEmitHelper(gR),t.createCallExpression(o("__exportStar"),void 0,[n,r])},createClassPrivateFieldGetHelper:function(n,r,i,a){let s;e.requestEmitHelper(SR),s=a?[n,r,t.createStringLiteral(i),a]:[n,r,t.createStringLiteral(i)];return t.createCallExpression(o("__classPrivateFieldGet"),void 0,s)},createClassPrivateFieldSetHelper:function(n,r,i,a,s){let l;e.requestEmitHelper(TR),l=s?[n,r,i,t.createStringLiteral(a),s]:[n,r,i,t.createStringLiteral(a)];return t.createCallExpression(o("__classPrivateFieldSet"),void 0,l)},createClassPrivateFieldInHelper:function(n,r){return e.requestEmitHelper(xR),t.createCallExpression(o("__classPrivateFieldIn"),void 0,[n,r])},createAddDisposableResourceHelper:function(n,r,i){return e.requestEmitHelper(AR),t.createCallExpression(o("__addDisposableResource"),void 0,[n,r,i?t.createTrue():t.createFalse()])},createDisposeResourcesHelper:function(n){return e.requestEmitHelper(IR),t.createCallExpression(o("__disposeResources"),void 0,[n])}};function o(e){return fI(t.createIdentifier(e),8196)}function i(e,n){const r=[];return r.push(function(e){const n=e.computed?e.name:nC(e.name)?t.createStringLiteralFromNode(e.name):e.name;return t.createPropertyAssignment("has",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,t.createBinaryExpression(n,103,t.createIdentifier("obj"))))}(e)),n.get&&r.push(function(e){const n=e.computed?t.createElementAccessExpression(t.createIdentifier("obj"),e.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),e.name);return t.createPropertyAssignment("get",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,n))}(e)),n.set&&r.push(function(e){const n=e.computed?t.createElementAccessExpression(t.createIdentifier("obj"),e.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),e.name);return t.createPropertyAssignment("set",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj")),t.createParameterDeclaration(void 0,void 0,t.createIdentifier("value"))],void 0,void 0,t.createBlock([t.createExpressionStatement(t.createAssignment(n,t.createIdentifier("value")))])))}(e)),t.createObjectLiteralExpression(r)}function a(e){return"class"===e.kind?function(e){const n=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral("class")),t.createPropertyAssignment(t.createIdentifier("name"),e.name),t.createPropertyAssignment(t.createIdentifier("metadata"),e.metadata)];return t.createObjectLiteralExpression(n)}(e):function(e){const n=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral(e.kind)),t.createPropertyAssignment(t.createIdentifier("name"),e.name.computed?e.name.name:t.createStringLiteralFromNode(e.name.name)),t.createPropertyAssignment(t.createIdentifier("static"),e.static?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("private"),e.private?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("access"),i(e.name,e.access)),t.createPropertyAssignment(t.createIdentifier("metadata"),e.metadata)];return t.createObjectLiteralExpression(n)}(e)}}function LR(e,t){return e===t||e.priority===t.priority?0:void 0===e.priority?1:void 0===t.priority?-1:Ft(e.priority,t.priority)}function kR(e,...t){return n=>{let r="";for(let o=0;o<t.length;o++)r+=e[o],r+=n(t[o]);return r+=e[e.length-1],r}}function PR(){return RR||(RR=et([YI,QI,ZI,eR,tR,nR,rR,oR,iR,aR,sR,lR,cR,dR,pR,_R,uR,fR,mR,hR,vR,bR,ER,SR,TR,xR,gR,yR,AR,IR],(e=>e.name)))}function wR(e,t){return dD(e)&&nC(e.expression)&&0!==(8192&Rm(e.expression))&&e.expression.escapedText===t}var OR=b({"src/compiler/factory/emitHelpers.ts"(){JJ(),$I=(e=>(e.Field="f",e.Method="m",e.Accessor="a",e))($I||{}),YI={name:"typescript:decorate",importName:"__decorate",scoped:!1,priority:2,text:'\n var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n };'},QI={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:'\n var __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);\n };'},ZI={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:"\n var __param = (this && this.__param) || function (paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n };"},eR={name:"typescript:esDecorate",importName:"__esDecorate",scoped:!1,priority:2,text:'\n var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }\n var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";\n var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for (var i = decorators.length - 1; i >= 0; i--) {\n var context = {};\n for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\n context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };\n var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\n if (kind === "accessor") {\n if (result === void 0) continue;\n if (result === null || typeof result !== "object") throw new TypeError("Object expected");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n }\n else if (_ = accept(result)) {\n if (kind === "field") initializers.unshift(_);\n else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n };'},tR={name:"typescript:runInitializers",importName:"__runInitializers",scoped:!1,priority:2,text:"\n var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for (var i = 0; i < initializers.length; i++) {\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n }\n return useValue ? value : void 0;\n };"},nR={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:"\n var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n };"},oR={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[rR={name:"typescript:await",importName:"__await",scoped:!1,text:"\n var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }"}],text:'\n var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume("next", value); }\n function reject(value) { resume("throw", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n };'},iR={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[rR],text:'\n var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {\n var i, p;\n return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\n };'},aR={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:'\n var __asyncValues = (this && this.__asyncValues) || function (o) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n };'},sR={name:"typescript:rest",importName:"__rest",scoped:!1,text:'\n var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === "function")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n };'},lR={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:'\n var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n };'},cR={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:'\n var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n\n return function (d, b) {\n if (typeof b !== "function" && b !== null)\n throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n })();'},dR={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:'\n var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n };'},uR={name:"typescript:read",importName:"__read",scoped:!1,text:'\n var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === "function" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i["return"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n };'},pR={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:"\n var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n };"},fR={name:"typescript:propKey",importName:"__propKey",scoped:!1,text:'\n var __propKey = (this && this.__propKey) || function (x) {\n return typeof x === "symbol" ? x : "".concat(x);\n };'},mR={name:"typescript:setFunctionName",importName:"__setFunctionName",scoped:!1,text:'\n var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) {\n if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";\n return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });\n };'},_R={name:"typescript:values",importName:"__values",scoped:!1,text:'\n var __values = (this && this.__values) || function(o) {\n var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === "number") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");\n };'},hR={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:'\n var __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError("Generator is already executing.");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n };'},vR={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[gR={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:'\n var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n }) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n }));'},yR={name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:'\n var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, "default", { enumerable: true, value: v });\n }) : function(o, v) {\n o["default"] = v;\n });'}],priority:2,text:'\n var __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n };'},bR={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:'\n var __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { "default": mod };\n };'},ER={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[gR],priority:2,text:'\n var __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n };'},SR={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:'\n var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");\n return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);\n };'},TR={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:'\n var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {\n if (kind === "m") throw new TypeError("Private method is not writable");\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");\n return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n };'},xR={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:'\n var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) {\n if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use \'in\' operator on non-object");\n return typeof state === "function" ? receiver === state : state.has(receiver);\n };'},AR={name:"typescript:addDisposableResource",importName:"__addDisposableResource",scoped:!1,text:'\n var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) {\n if (value !== null && value !== void 0) {\n if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");\n var dispose;\n if (async) {\n if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");\n dispose = value[Symbol.asyncDispose];\n }\n if (dispose === void 0) {\n if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");\n dispose = value[Symbol.dispose];\n }\n if (typeof dispose !== "function") throw new TypeError("Object not disposable.");\n env.stack.push({ value: value, dispose: dispose, async: async });\n }\n else if (async) {\n env.stack.push({ async: true });\n }\n return value;\n };'},IR={name:"typescript:disposeResources",importName:"__disposeResources",scoped:!1,text:'\n var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) {\n return function (env) {\n function fail(e) {\n env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;\n env.hasError = true;\n }\n function next() {\n while (env.stack.length) {\n var rec = env.stack.pop();\n try {\n var result = rec.dispose && rec.dispose.call(rec.value);\n if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\n }\n catch (e) {\n fail(e);\n }\n }\n if (env.hasError) throw env.error;\n }\n return next();\n };\n })(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {\n var e = new Error(message);\n return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;\n });'},CR={name:"typescript:async-super",scoped:!0,text:kR` const ${"_superIndex"} = name => super[name];`},DR={name:"typescript:advanced-async-super",scoped:!0,text:kR` const ${"_superIndex"} = (function (geti, seti) { const cache = Object.create(null); diff --git a/ydb/core/viewer/ya.make b/ydb/core/viewer/ya.make index def2de7c21..e2243e61d6 100644 --- a/ydb/core/viewer/ya.make +++ b/ydb/core/viewer/ya.make @@ -124,21 +124,21 @@ IF (NOT EXPORT_CMAKE) monitoring/index.html monitoring/index.html monitoring/json.worker.js monitoring/json.worker.js monitoring/json.worker.js.LICENSE.txt monitoring/json.worker.js.LICENSE.txt - monitoring/static/css/114.1e565ac5.chunk.css monitoring/static/css/114.1e565ac5.chunk.css - monitoring/static/css/3456.a5760e03.chunk.css monitoring/static/css/3456.a5760e03.chunk.css + monitoring/static/css/2031.1e565ac5.chunk.css monitoring/static/css/2031.1e565ac5.chunk.css monitoring/static/css/3779.66c0ef83.chunk.css monitoring/static/css/3779.66c0ef83.chunk.css monitoring/static/css/3812.440ff245.chunk.css monitoring/static/css/3812.440ff245.chunk.css - monitoring/static/css/3940.0971684f.chunk.css monitoring/static/css/3940.0971684f.chunk.css - monitoring/static/css/4905.028ad14b.chunk.css monitoring/static/css/4905.028ad14b.chunk.css - monitoring/static/css/535.c6fb8cd9.chunk.css monitoring/static/css/535.c6fb8cd9.chunk.css + monitoring/static/css/431.3826ea2f.chunk.css monitoring/static/css/431.3826ea2f.chunk.css monitoring/static/css/5438.615bd68a.chunk.css monitoring/static/css/5438.615bd68a.chunk.css monitoring/static/css/5652.261c3a7a.chunk.css monitoring/static/css/5652.261c3a7a.chunk.css - monitoring/static/css/7145.90fbb646.chunk.css monitoring/static/css/7145.90fbb646.chunk.css - monitoring/static/css/8155.fd13e90a.chunk.css monitoring/static/css/8155.fd13e90a.chunk.css + monitoring/static/css/6030.05f92b81.chunk.css monitoring/static/css/6030.05f92b81.chunk.css + monitoring/static/css/684.a4d29f42.chunk.css monitoring/static/css/684.a4d29f42.chunk.css + monitoring/static/css/8393.09a78946.chunk.css monitoring/static/css/8393.09a78946.chunk.css monitoring/static/css/8593.95df9723.chunk.css monitoring/static/css/8593.95df9723.chunk.css + monitoring/static/css/9393.c6fb8cd9.chunk.css monitoring/static/css/9393.c6fb8cd9.chunk.css monitoring/static/css/9796.828f7385.chunk.css monitoring/static/css/9796.828f7385.chunk.css + monitoring/static/css/9802.d30d0ff3.chunk.css monitoring/static/css/9802.d30d0ff3.chunk.css monitoring/static/css/99.7cffb936.chunk.css monitoring/static/css/99.7cffb936.chunk.css - monitoring/static/css/main.bc1b7571.css monitoring/static/css/main.bc1b7571.css + monitoring/static/css/main.8f03af14.css monitoring/static/css/main.8f03af14.css monitoring/static/favicon.png monitoring/static/favicon.png monitoring/static/js/1053.f976b474.chunk.js monitoring/static/js/1053.f976b474.chunk.js monitoring/static/js/108.d2d9c180.chunk.js monitoring/static/js/108.d2d9c180.chunk.js @@ -147,8 +147,6 @@ IF (NOT EXPORT_CMAKE) monitoring/static/js/1094.b5bb2475.chunk.js.LICENSE.txt monitoring/static/js/1094.b5bb2475.chunk.js.LICENSE.txt monitoring/static/js/110.2c798565.chunk.js monitoring/static/js/110.2c798565.chunk.js monitoring/static/js/110.2c798565.chunk.js.LICENSE.txt monitoring/static/js/110.2c798565.chunk.js.LICENSE.txt - monitoring/static/js/114.7d7ab57f.chunk.js monitoring/static/js/114.7d7ab57f.chunk.js - monitoring/static/js/114.7d7ab57f.chunk.js.LICENSE.txt monitoring/static/js/114.7d7ab57f.chunk.js.LICENSE.txt monitoring/static/js/118.112f7e2f.chunk.js monitoring/static/js/118.112f7e2f.chunk.js monitoring/static/js/118.112f7e2f.chunk.js.LICENSE.txt monitoring/static/js/118.112f7e2f.chunk.js.LICENSE.txt monitoring/static/js/1187.c5435886.chunk.js monitoring/static/js/1187.c5435886.chunk.js @@ -160,9 +158,9 @@ IF (NOT EXPORT_CMAKE) monitoring/static/js/132.cf00f1e7.chunk.js.LICENSE.txt monitoring/static/js/132.cf00f1e7.chunk.js.LICENSE.txt monitoring/static/js/1321.401aa9b8.chunk.js monitoring/static/js/1321.401aa9b8.chunk.js monitoring/static/js/1321.401aa9b8.chunk.js.LICENSE.txt monitoring/static/js/1321.401aa9b8.chunk.js.LICENSE.txt + monitoring/static/js/1329.d6e31925.chunk.js monitoring/static/js/1329.d6e31925.chunk.js monitoring/static/js/1414.4cfda0bc.chunk.js monitoring/static/js/1414.4cfda0bc.chunk.js monitoring/static/js/1414.4cfda0bc.chunk.js.LICENSE.txt monitoring/static/js/1414.4cfda0bc.chunk.js.LICENSE.txt - monitoring/static/js/1434.b8423300.chunk.js monitoring/static/js/1434.b8423300.chunk.js monitoring/static/js/1486.8a488ae4.chunk.js monitoring/static/js/1486.8a488ae4.chunk.js monitoring/static/js/1496.18b1eb19.chunk.js monitoring/static/js/1496.18b1eb19.chunk.js monitoring/static/js/1606.0041ed7d.chunk.js monitoring/static/js/1606.0041ed7d.chunk.js @@ -172,13 +170,15 @@ IF (NOT EXPORT_CMAKE) monitoring/static/js/1696.6120f4a8.chunk.js monitoring/static/js/1696.6120f4a8.chunk.js monitoring/static/js/1747.f01c9fd8.chunk.js monitoring/static/js/1747.f01c9fd8.chunk.js monitoring/static/js/1756.b612458a.chunk.js monitoring/static/js/1756.b612458a.chunk.js - monitoring/static/js/1836.f49bfd4f.chunk.js monitoring/static/js/1836.f49bfd4f.chunk.js + monitoring/static/js/1836.1a1c6d4b.chunk.js monitoring/static/js/1836.1a1c6d4b.chunk.js monitoring/static/js/1865.72c933c8.chunk.js monitoring/static/js/1865.72c933c8.chunk.js monitoring/static/js/1917.e3ac9c6d.chunk.js monitoring/static/js/1917.e3ac9c6d.chunk.js monitoring/static/js/1956.c11f9b8a.chunk.js monitoring/static/js/1956.c11f9b8a.chunk.js monitoring/static/js/1975.e3066826.chunk.js monitoring/static/js/1975.e3066826.chunk.js monitoring/static/js/2016.397296b7.chunk.js monitoring/static/js/2016.397296b7.chunk.js monitoring/static/js/2016.397296b7.chunk.js.LICENSE.txt monitoring/static/js/2016.397296b7.chunk.js.LICENSE.txt + monitoring/static/js/2031.d8f098f9.chunk.js monitoring/static/js/2031.d8f098f9.chunk.js + monitoring/static/js/2031.d8f098f9.chunk.js.LICENSE.txt monitoring/static/js/2031.d8f098f9.chunk.js.LICENSE.txt monitoring/static/js/2042.81e83eeb.chunk.js monitoring/static/js/2042.81e83eeb.chunk.js monitoring/static/js/2042.81e83eeb.chunk.js.LICENSE.txt monitoring/static/js/2042.81e83eeb.chunk.js.LICENSE.txt monitoring/static/js/2053.b4294b46.chunk.js monitoring/static/js/2053.b4294b46.chunk.js @@ -206,8 +206,8 @@ IF (NOT EXPORT_CMAKE) monitoring/static/js/2568.5bec7af3.chunk.js monitoring/static/js/2568.5bec7af3.chunk.js monitoring/static/js/2612.55127fa0.chunk.js monitoring/static/js/2612.55127fa0.chunk.js monitoring/static/js/2626.a5b0d58c.chunk.js monitoring/static/js/2626.a5b0d58c.chunk.js - monitoring/static/js/2726.e753cb7c.chunk.js monitoring/static/js/2726.e753cb7c.chunk.js - monitoring/static/js/2726.e753cb7c.chunk.js.LICENSE.txt monitoring/static/js/2726.e753cb7c.chunk.js.LICENSE.txt + monitoring/static/js/2726.abc3a0c2.chunk.js monitoring/static/js/2726.abc3a0c2.chunk.js + monitoring/static/js/2726.abc3a0c2.chunk.js.LICENSE.txt monitoring/static/js/2726.abc3a0c2.chunk.js.LICENSE.txt monitoring/static/js/2742.d5c8fae8.chunk.js monitoring/static/js/2742.d5c8fae8.chunk.js monitoring/static/js/2742.d5c8fae8.chunk.js.LICENSE.txt monitoring/static/js/2742.d5c8fae8.chunk.js.LICENSE.txt monitoring/static/js/2775.9105769d.chunk.js monitoring/static/js/2775.9105769d.chunk.js @@ -234,7 +234,6 @@ IF (NOT EXPORT_CMAKE) monitoring/static/js/3338.83fe4e63.chunk.js monitoring/static/js/3338.83fe4e63.chunk.js monitoring/static/js/3338.83fe4e63.chunk.js.LICENSE.txt monitoring/static/js/3338.83fe4e63.chunk.js.LICENSE.txt monitoring/static/js/3410.6391755f.chunk.js monitoring/static/js/3410.6391755f.chunk.js - monitoring/static/js/3456.72251ae0.chunk.js monitoring/static/js/3456.72251ae0.chunk.js monitoring/static/js/3478.480dafa6.chunk.js monitoring/static/js/3478.480dafa6.chunk.js monitoring/static/js/3478.480dafa6.chunk.js.LICENSE.txt monitoring/static/js/3478.480dafa6.chunk.js.LICENSE.txt monitoring/static/js/3510.0740f36d.chunk.js monitoring/static/js/3510.0740f36d.chunk.js @@ -253,21 +252,21 @@ IF (NOT EXPORT_CMAKE) monitoring/static/js/3756.9a440b73.chunk.js monitoring/static/js/3756.9a440b73.chunk.js monitoring/static/js/3761.dd957fd1.chunk.js monitoring/static/js/3761.dd957fd1.chunk.js monitoring/static/js/3769.860e8d58.chunk.js monitoring/static/js/3769.860e8d58.chunk.js - monitoring/static/js/3779.31972bdb.chunk.js monitoring/static/js/3779.31972bdb.chunk.js + monitoring/static/js/3779.1d869a05.chunk.js monitoring/static/js/3779.1d869a05.chunk.js monitoring/static/js/3812.368eb751.chunk.js monitoring/static/js/3812.368eb751.chunk.js monitoring/static/js/3822.00ab6aaa.chunk.js monitoring/static/js/3822.00ab6aaa.chunk.js monitoring/static/js/3822.00ab6aaa.chunk.js.LICENSE.txt monitoring/static/js/3822.00ab6aaa.chunk.js.LICENSE.txt monitoring/static/js/3872.a25d87b5.chunk.js monitoring/static/js/3872.a25d87b5.chunk.js monitoring/static/js/3879.17f211ad.chunk.js monitoring/static/js/3879.17f211ad.chunk.js monitoring/static/js/3902.973b73c6.chunk.js monitoring/static/js/3902.973b73c6.chunk.js - monitoring/static/js/3940.f5079e40.chunk.js monitoring/static/js/3940.f5079e40.chunk.js monitoring/static/js/3952.ce1b4fad.chunk.js monitoring/static/js/3952.ce1b4fad.chunk.js monitoring/static/js/3977.4c33ec16.chunk.js monitoring/static/js/3977.4c33ec16.chunk.js monitoring/static/js/3977.4c33ec16.chunk.js.LICENSE.txt monitoring/static/js/3977.4c33ec16.chunk.js.LICENSE.txt monitoring/static/js/4096.33f702a0.chunk.js monitoring/static/js/4096.33f702a0.chunk.js - monitoring/static/js/4130.e9433987.chunk.js monitoring/static/js/4130.e9433987.chunk.js + monitoring/static/js/4130.4d4b9fad.chunk.js monitoring/static/js/4130.4d4b9fad.chunk.js monitoring/static/js/4169.f2243012.chunk.js monitoring/static/js/4169.f2243012.chunk.js monitoring/static/js/4180.1de6c8ba.chunk.js monitoring/static/js/4180.1de6c8ba.chunk.js + monitoring/static/js/431.f23349ec.chunk.js monitoring/static/js/431.f23349ec.chunk.js monitoring/static/js/4324.c69948f7.chunk.js monitoring/static/js/4324.c69948f7.chunk.js monitoring/static/js/4349.9c8d20fd.chunk.js monitoring/static/js/4349.9c8d20fd.chunk.js monitoring/static/js/4401.f46d19f6.chunk.js monitoring/static/js/4401.f46d19f6.chunk.js @@ -291,26 +290,23 @@ IF (NOT EXPORT_CMAKE) monitoring/static/js/4847.63c73f0a.chunk.js monitoring/static/js/4847.63c73f0a.chunk.js monitoring/static/js/4870.1916a88d.chunk.js monitoring/static/js/4870.1916a88d.chunk.js monitoring/static/js/4870.1916a88d.chunk.js.LICENSE.txt monitoring/static/js/4870.1916a88d.chunk.js.LICENSE.txt - monitoring/static/js/4872.2eea7e0a.chunk.js monitoring/static/js/4872.2eea7e0a.chunk.js - monitoring/static/js/4872.2eea7e0a.chunk.js.LICENSE.txt monitoring/static/js/4872.2eea7e0a.chunk.js.LICENSE.txt + monitoring/static/js/4872.bbf7ab34.chunk.js monitoring/static/js/4872.bbf7ab34.chunk.js + monitoring/static/js/4872.bbf7ab34.chunk.js.LICENSE.txt monitoring/static/js/4872.bbf7ab34.chunk.js.LICENSE.txt monitoring/static/js/4891.c441be74.chunk.js monitoring/static/js/4891.c441be74.chunk.js - monitoring/static/js/4905.8121426d.chunk.js monitoring/static/js/4905.8121426d.chunk.js monitoring/static/js/5027.9e6325ef.chunk.js monitoring/static/js/5027.9e6325ef.chunk.js monitoring/static/js/5047.ebc9f1b2.chunk.js monitoring/static/js/5047.ebc9f1b2.chunk.js monitoring/static/js/5050.ffa3921f.chunk.js monitoring/static/js/5050.ffa3921f.chunk.js monitoring/static/js/5050.ffa3921f.chunk.js.LICENSE.txt monitoring/static/js/5050.ffa3921f.chunk.js.LICENSE.txt monitoring/static/js/513.46a664ad.chunk.js monitoring/static/js/513.46a664ad.chunk.js monitoring/static/js/5161.20e37d15.chunk.js monitoring/static/js/5161.20e37d15.chunk.js - monitoring/static/js/5168.5c3dfc04.chunk.js monitoring/static/js/5168.5c3dfc04.chunk.js monitoring/static/js/523.17013d4e.chunk.js monitoring/static/js/523.17013d4e.chunk.js monitoring/static/js/5252.991dcab8.chunk.js monitoring/static/js/5252.991dcab8.chunk.js monitoring/static/js/5252.991dcab8.chunk.js.LICENSE.txt monitoring/static/js/5252.991dcab8.chunk.js.LICENSE.txt - monitoring/static/js/535.688ceefb.chunk.js monitoring/static/js/535.688ceefb.chunk.js monitoring/static/js/5382.3a2e6ac6.chunk.js monitoring/static/js/5382.3a2e6ac6.chunk.js monitoring/static/js/5382.3a2e6ac6.chunk.js.LICENSE.txt monitoring/static/js/5382.3a2e6ac6.chunk.js.LICENSE.txt monitoring/static/js/5401.dfb63825.chunk.js monitoring/static/js/5401.dfb63825.chunk.js monitoring/static/js/5418.00d0c5d1.chunk.js monitoring/static/js/5418.00d0c5d1.chunk.js - monitoring/static/js/5438.179dc201.chunk.js monitoring/static/js/5438.179dc201.chunk.js + monitoring/static/js/5438.91fe1c76.chunk.js monitoring/static/js/5438.91fe1c76.chunk.js monitoring/static/js/5453.921caa82.chunk.js monitoring/static/js/5453.921caa82.chunk.js monitoring/static/js/5454.e8f64f1a.chunk.js monitoring/static/js/5454.e8f64f1a.chunk.js monitoring/static/js/5454.e8f64f1a.chunk.js.LICENSE.txt monitoring/static/js/5454.e8f64f1a.chunk.js.LICENSE.txt @@ -322,7 +318,7 @@ IF (NOT EXPORT_CMAKE) monitoring/static/js/5636.da9c4c85.chunk.js monitoring/static/js/5636.da9c4c85.chunk.js monitoring/static/js/5636.da9c4c85.chunk.js.LICENSE.txt monitoring/static/js/5636.da9c4c85.chunk.js.LICENSE.txt monitoring/static/js/5647.0920ef73.chunk.js monitoring/static/js/5647.0920ef73.chunk.js - monitoring/static/js/5652.6c4f054d.chunk.js monitoring/static/js/5652.6c4f054d.chunk.js + monitoring/static/js/5652.40b9a7d3.chunk.js monitoring/static/js/5652.40b9a7d3.chunk.js monitoring/static/js/5685.c0a21a10.chunk.js monitoring/static/js/5685.c0a21a10.chunk.js monitoring/static/js/5759.52418ea5.chunk.js monitoring/static/js/5759.52418ea5.chunk.js monitoring/static/js/5816.144b5755.chunk.js monitoring/static/js/5816.144b5755.chunk.js @@ -341,6 +337,7 @@ IF (NOT EXPORT_CMAKE) monitoring/static/js/60.85d957cd.chunk.js monitoring/static/js/60.85d957cd.chunk.js monitoring/static/js/6012.aac08e72.chunk.js monitoring/static/js/6012.aac08e72.chunk.js monitoring/static/js/6012.aac08e72.chunk.js.LICENSE.txt monitoring/static/js/6012.aac08e72.chunk.js.LICENSE.txt + monitoring/static/js/6030.b30fca36.chunk.js monitoring/static/js/6030.b30fca36.chunk.js monitoring/static/js/6047.328b41a5.chunk.js monitoring/static/js/6047.328b41a5.chunk.js monitoring/static/js/6114.c74edf11.chunk.js monitoring/static/js/6114.c74edf11.chunk.js monitoring/static/js/6210.69d6a30a.chunk.js monitoring/static/js/6210.69d6a30a.chunk.js @@ -371,16 +368,16 @@ IF (NOT EXPORT_CMAKE) monitoring/static/js/6658.b22172da.chunk.js.LICENSE.txt monitoring/static/js/6658.b22172da.chunk.js.LICENSE.txt monitoring/static/js/6664.b4dbf019.chunk.js monitoring/static/js/6664.b4dbf019.chunk.js monitoring/static/js/6786.28af14f6.chunk.js monitoring/static/js/6786.28af14f6.chunk.js - monitoring/static/js/6820.73ff230e.chunk.js monitoring/static/js/6820.73ff230e.chunk.js - monitoring/static/js/6820.73ff230e.chunk.js.LICENSE.txt monitoring/static/js/6820.73ff230e.chunk.js.LICENSE.txt + monitoring/static/js/6820.bff2520f.chunk.js monitoring/static/js/6820.bff2520f.chunk.js + monitoring/static/js/6820.bff2520f.chunk.js.LICENSE.txt monitoring/static/js/6820.bff2520f.chunk.js.LICENSE.txt monitoring/static/js/6833.584b7806.chunk.js monitoring/static/js/6833.584b7806.chunk.js + monitoring/static/js/684.9346e985.chunk.js monitoring/static/js/684.9346e985.chunk.js monitoring/static/js/6879.2965a366.chunk.js monitoring/static/js/6879.2965a366.chunk.js monitoring/static/js/6881.7e6434c9.chunk.js monitoring/static/js/6881.7e6434c9.chunk.js monitoring/static/js/6990.70257b9b.chunk.js monitoring/static/js/6990.70257b9b.chunk.js monitoring/static/js/710.87e9f2e0.chunk.js monitoring/static/js/710.87e9f2e0.chunk.js monitoring/static/js/7118.ce0cd05f.chunk.js monitoring/static/js/7118.ce0cd05f.chunk.js monitoring/static/js/7118.ce0cd05f.chunk.js.LICENSE.txt monitoring/static/js/7118.ce0cd05f.chunk.js.LICENSE.txt - monitoring/static/js/7145.7676c06d.chunk.js monitoring/static/js/7145.7676c06d.chunk.js monitoring/static/js/7148.ef54cd41.chunk.js monitoring/static/js/7148.ef54cd41.chunk.js monitoring/static/js/7148.ef54cd41.chunk.js.LICENSE.txt monitoring/static/js/7148.ef54cd41.chunk.js.LICENSE.txt monitoring/static/js/7206.6b7278f5.chunk.js monitoring/static/js/7206.6b7278f5.chunk.js @@ -390,8 +387,6 @@ IF (NOT EXPORT_CMAKE) monitoring/static/js/7329.514640a4.chunk.js monitoring/static/js/7329.514640a4.chunk.js monitoring/static/js/734.3fe325e9.chunk.js monitoring/static/js/734.3fe325e9.chunk.js monitoring/static/js/734.3fe325e9.chunk.js.LICENSE.txt monitoring/static/js/734.3fe325e9.chunk.js.LICENSE.txt - monitoring/static/js/7341.6e678529.chunk.js monitoring/static/js/7341.6e678529.chunk.js - monitoring/static/js/7341.6e678529.chunk.js.LICENSE.txt monitoring/static/js/7341.6e678529.chunk.js.LICENSE.txt monitoring/static/js/7348.eac33db2.chunk.js monitoring/static/js/7348.eac33db2.chunk.js monitoring/static/js/7357.a518ad9e.chunk.js monitoring/static/js/7357.a518ad9e.chunk.js monitoring/static/js/7380.38a8eedf.chunk.js monitoring/static/js/7380.38a8eedf.chunk.js @@ -425,14 +420,14 @@ IF (NOT EXPORT_CMAKE) monitoring/static/js/8103.00c9e9c1.chunk.js monitoring/static/js/8103.00c9e9c1.chunk.js monitoring/static/js/811.a0c1e1ce.chunk.js monitoring/static/js/811.a0c1e1ce.chunk.js monitoring/static/js/8119.196e82ef.chunk.js monitoring/static/js/8119.196e82ef.chunk.js - monitoring/static/js/8155.654c40b5.chunk.js monitoring/static/js/8155.654c40b5.chunk.js monitoring/static/js/8234.7512920e.chunk.js monitoring/static/js/8234.7512920e.chunk.js monitoring/static/js/8234.7512920e.chunk.js.LICENSE.txt monitoring/static/js/8234.7512920e.chunk.js.LICENSE.txt monitoring/static/js/8256.a2ce240a.chunk.js monitoring/static/js/8256.a2ce240a.chunk.js - monitoring/static/js/8452.551c16c8.chunk.js monitoring/static/js/8452.551c16c8.chunk.js + monitoring/static/js/8393.2e643149.chunk.js monitoring/static/js/8393.2e643149.chunk.js + monitoring/static/js/8452.3bfa9018.chunk.js monitoring/static/js/8452.3bfa9018.chunk.js monitoring/static/js/8517.cf981031.chunk.js monitoring/static/js/8517.cf981031.chunk.js monitoring/static/js/8534.f7aec532.chunk.js monitoring/static/js/8534.f7aec532.chunk.js - monitoring/static/js/856.78147a4f.chunk.js monitoring/static/js/856.78147a4f.chunk.js + monitoring/static/js/856.36f195a5.chunk.js monitoring/static/js/856.36f195a5.chunk.js monitoring/static/js/8633.da605a09.chunk.js monitoring/static/js/8633.da605a09.chunk.js monitoring/static/js/8704.87492da1.chunk.js monitoring/static/js/8704.87492da1.chunk.js monitoring/static/js/8706.755fcb81.chunk.js monitoring/static/js/8706.755fcb81.chunk.js @@ -450,6 +445,8 @@ IF (NOT EXPORT_CMAKE) monitoring/static/js/902.a1b90b1b.chunk.js.LICENSE.txt monitoring/static/js/902.a1b90b1b.chunk.js.LICENSE.txt monitoring/static/js/9025.6ae28867.chunk.js monitoring/static/js/9025.6ae28867.chunk.js monitoring/static/js/9067.254af4a9.chunk.js monitoring/static/js/9067.254af4a9.chunk.js + monitoring/static/js/9172.f332051f.chunk.js monitoring/static/js/9172.f332051f.chunk.js + monitoring/static/js/9172.f332051f.chunk.js.LICENSE.txt monitoring/static/js/9172.f332051f.chunk.js.LICENSE.txt monitoring/static/js/9174.ae7682da.chunk.js monitoring/static/js/9174.ae7682da.chunk.js monitoring/static/js/9176.3f08336f.chunk.js monitoring/static/js/9176.3f08336f.chunk.js monitoring/static/js/9176.3f08336f.chunk.js.LICENSE.txt monitoring/static/js/9176.3f08336f.chunk.js.LICENSE.txt @@ -457,8 +454,10 @@ IF (NOT EXPORT_CMAKE) monitoring/static/js/9220.a9f48eb9.chunk.js monitoring/static/js/9220.a9f48eb9.chunk.js monitoring/static/js/9222.a1913f85.chunk.js monitoring/static/js/9222.a1913f85.chunk.js monitoring/static/js/9243.cb95c73b.chunk.js monitoring/static/js/9243.cb95c73b.chunk.js + monitoring/static/js/9300.89daa9ec.chunk.js monitoring/static/js/9300.89daa9ec.chunk.js monitoring/static/js/9312.5eb8d4b1.chunk.js monitoring/static/js/9312.5eb8d4b1.chunk.js monitoring/static/js/9312.5eb8d4b1.chunk.js.LICENSE.txt monitoring/static/js/9312.5eb8d4b1.chunk.js.LICENSE.txt + monitoring/static/js/9393.b0a1bf0a.chunk.js monitoring/static/js/9393.b0a1bf0a.chunk.js monitoring/static/js/9394.ca56f408.chunk.js monitoring/static/js/9394.ca56f408.chunk.js monitoring/static/js/9394.ca56f408.chunk.js.LICENSE.txt monitoring/static/js/9394.ca56f408.chunk.js.LICENSE.txt monitoring/static/js/9433.4cf14d1c.chunk.js monitoring/static/js/9433.4cf14d1c.chunk.js @@ -481,18 +480,19 @@ IF (NOT EXPORT_CMAKE) monitoring/static/js/9748.e711e962.chunk.js.LICENSE.txt monitoring/static/js/9748.e711e962.chunk.js.LICENSE.txt monitoring/static/js/9778.52ad76ce.chunk.js monitoring/static/js/9778.52ad76ce.chunk.js monitoring/static/js/9778.52ad76ce.chunk.js.LICENSE.txt monitoring/static/js/9778.52ad76ce.chunk.js.LICENSE.txt - monitoring/static/js/9796.47d2388f.chunk.js monitoring/static/js/9796.47d2388f.chunk.js + monitoring/static/js/9796.23c68f38.chunk.js monitoring/static/js/9796.23c68f38.chunk.js monitoring/static/js/9801.b9143d43.chunk.js monitoring/static/js/9801.b9143d43.chunk.js + monitoring/static/js/9802.b15025e5.chunk.js monitoring/static/js/9802.b15025e5.chunk.js monitoring/static/js/9842.b8ba19ad.chunk.js monitoring/static/js/9842.b8ba19ad.chunk.js monitoring/static/js/9842.b8ba19ad.chunk.js.LICENSE.txt monitoring/static/js/9842.b8ba19ad.chunk.js.LICENSE.txt monitoring/static/js/9872.65a6fae7.chunk.js monitoring/static/js/9872.65a6fae7.chunk.js monitoring/static/js/9872.65a6fae7.chunk.js.LICENSE.txt monitoring/static/js/9872.65a6fae7.chunk.js.LICENSE.txt monitoring/static/js/9882.b983931a.chunk.js monitoring/static/js/9882.b983931a.chunk.js - monitoring/static/js/99.dd803d0d.chunk.js monitoring/static/js/99.dd803d0d.chunk.js + monitoring/static/js/99.73d10ff1.chunk.js monitoring/static/js/99.73d10ff1.chunk.js monitoring/static/js/9908.4bd3acb1.chunk.js monitoring/static/js/9908.4bd3acb1.chunk.js monitoring/static/js/9922.367b63b0.chunk.js monitoring/static/js/9922.367b63b0.chunk.js - monitoring/static/js/main.9d6586d0.js monitoring/static/js/main.9d6586d0.js - monitoring/static/js/main.9d6586d0.js.LICENSE.txt monitoring/static/js/main.9d6586d0.js.LICENSE.txt + monitoring/static/js/main.806ca619.js monitoring/static/js/main.806ca619.js + monitoring/static/js/main.806ca619.js.LICENSE.txt monitoring/static/js/main.806ca619.js.LICENSE.txt monitoring/static/media/403.271ae19f0d1101a2c67a904146bbd4d3.svg monitoring/static/media/403.271ae19f0d1101a2c67a904146bbd4d3.svg monitoring/static/media/403.6367e52f9464706633f52a2488a41958.svg monitoring/static/media/403.6367e52f9464706633f52a2488a41958.svg monitoring/static/media/codicon.f6283f7ccaed1249d9eb.ttf monitoring/static/media/codicon.f6283f7ccaed1249d9eb.ttf |